New module 'logf-ieee'.
[gnulib.git] / ChangeLog
1 2012-03-10  Bruno Haible  <bruno@clisp.org>
2
3         New module 'logf-ieee'.
4         * modules/logf-ieee: New file.
5
6 2012-03-10  Bruno Haible  <bruno@clisp.org>
7
8         log: Fix bug introduced on 2012-03-09.
9         * m4/log.m4 (gl_FUNC_LOG): Require gl_MATH_H_DEFAULTS.
10
11 2012-03-10  Pádraig Brady  <P@draigBrady.com>
12
13         timer-time: link explicitly with pthreads on glibc
14         * m4/timer_time.m4 (LIB_TIMER_TIME): Add -lpthread
15         to support static linking, when newer glibc is
16         detected, as that contains pthread emulation of
17         POSIX timer functions where required.
18         * modules/timer-time: Depend on threadlib to
19         pull in the appropriate library to link.
20
21 2012-03-10  Bruno Haible  <bruno@clisp.org>
22
23         log* tests: More tests.
24         * tests/test-log.h: New file.
25         * tests/test-log.c: Include <float.h>, minus-zero.h, test-log.h.
26         (main): Invoke test_function.
27         * tests/test-logf.c: Include <float.h>, minus-zero.h, test-log.h.
28         (main): Invoke test_function.
29         * tests/test-logl.c: Include <float.h>, minus-zero.h, test-log.h.
30         (main): Invoke test_function.
31         * modules/log-tests (Files): Add tests/test-log.h, tests/minus-zero.h,
32         tests/randomd.c.
33         (Makefile.am): Add randomd.c to test_log_SOURCES.
34         * modules/logf-tests (Files): Add tests/test-log.h, tests/minus-zero.h,
35         tests/randomf.c.
36         (Makefile.am): Add randomf.c to test_logf_SOURCES.
37         * modules/logl-tests (Files): Add tests/test-log.h, tests/minus-zero.h,
38         tests/randoml.c.
39         (Depends-on): Add 'float'.
40         (Makefile.am): Add randoml.c to test_logl_SOURCES.
41
42 2012-03-09  Bruno Haible  <bruno@clisp.org>
43
44         logl: Work around OSF/1 5.1 bug.
45         * lib/math.in.h (logl): Override if REPLACE_LOGL is 1.
46         * lib/logl.c (logl): If logf exists, use it and provide just the
47         workaround.
48         * m4/logl.m4 (gl_FUNC_LOGL_WORKS): New macro.
49         (gl_FUNC_LOGL): Invoke it. Set REPLACE_LOGL.
50         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_LOGL.
51         * modules/math (Makefile.am): Substitute REPLACE_LOGL.
52         * modules/logl (configure.ac): Consider REPLACE_LOGL.
53         (Depends-on): Update conditions.
54         * doc/posix-functions/logl.texi: Mention the OSF/1 5.1 problem.
55
56 2012-03-09  Bruno Haible  <bruno@clisp.org>
57
58         logf: Work around OSF/1 5.1 bug.
59         * lib/math.in.h (logf): Override if REPLACE_LOGF is 1.
60         * lib/logf.c (logf): If logf exists, use it and provide just the
61         workaround.
62         * m4/logf.m4 (gl_FUNC_LOGF_WORKS): New macro.
63         (gl_FUNC_LOGF): Invoke it. Set REPLACE_LOGF.
64         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_LOGF.
65         * modules/math (Makefile.am): Substitute REPLACE_LOGF.
66         * modules/logf (configure.ac): Consider REPLACE_LOGF.
67         (Depends-on): Update conditions.
68         * doc/posix-functions/logf.texi: Mention the OSF/1 5.1 problem.
69
70 2012-03-09  Bruno Haible  <bruno@clisp.org>
71
72         log: Work around OSF/1 5.1 bug.
73         * lib/math.in.h (log): New declaration.
74         * lib/log.c: New file.
75         * m4/log.m4 (gl_FUNC_LOG_WORKS): New macro.
76         (gl_FUNC_LOG): Invoke it. Set REPLACE_LOG.
77         * m4/math_h.m4 (gl_MATH_H): Test whether log is declared.
78         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG, REPLACE_LOG.
79         * modules/math (Makefile.am): Substitute GNULIB_LOG, REPLACE_LOG.
80         * modules/log (Files): Add lib/log.c.
81         (Depends-on): Add math.
82         (configure.ac): If REPLACE_LOG is 1, compile an override.
83         * tests/test-math-c++.cc: Check the declaration of log.
84         * doc/posix-functions/log.texi: Mention the OSF/1 5.1 problem.
85
86 2012-03-09  Jim Meyering  <meyering@redhat.com>
87
88         readtokens.c: adjust wording in a comment
89         * lib/readtokens.c: Insert omitted "that" in a comment.
90
91 2012-03-08  Paul Eggert  <eggert@cs.ucla.edu>
92
93         modechange: add notations +40, 00440, etc.
94         * lib/modechange.c (mode_compile): Support new notations
95         +40, -40, =440, 00440.  See <http://debbugs.gnu.org/8391>.
96
97 2012-03-08  Bruno Haible  <bruno@clisp.org>
98
99         exp2l-ieee: Work around test failure on OpenBSD 4.9 and IRIX 6.5.
100         * m4/exp2l-ieee.m4: New file.
101         * m4/exp2l.m4 (gl_FUNC_EXP2L): If gl_FUNC_EXP2L_IEEE is present,
102         test whether exp2l works with a NaN argument and with a negative
103         infinity argument. Replace it if not.
104         * lib/math.in.h (exp2l): Override if REPLACE_EXP2L is 1.
105         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_EXP2L.
106         * modules/math (Makefile.am): Substitute REPLACE_EXP2L.
107         * modules/exp2l (configure.ac): Consider REPLACE_EXP2L.
108         (Depends-on): Update conditions.
109         * modules/exp2l-ieee (Files): Add m4/exp2l-ieee.m4.
110         (configure.ac): Invoke gl_FUNC_EXP2L_IEEE.
111         * doc/posix-functions/exp2l.texi: Mention the exp2l-ieee module.
112
113         Tests for module 'exp2l-ieee'.
114         * modules/exp2l-ieee-tests: New file.
115         * tests/test-exp2l-ieee.c: New file.
116
117         New module 'exp2l-ieee'.
118         * modules/exp2l-ieee: New file.
119
120         Tests for module 'exp2-ieee'.
121         * modules/exp2-ieee-tests: New file.
122         * tests/test-exp2-ieee.c: New file.
123
124         New module 'exp2-ieee'.
125         * modules/exp2-ieee: New file.
126
127         Tests for module 'exp2f-ieee'.
128         * modules/exp2f-ieee-tests: New file.
129         * tests/test-exp2f-ieee.c: New file.
130         * tests/test-exp2-ieee.h: New file.
131
132         New module 'exp2f-ieee'.
133         * modules/exp2f-ieee: New file.
134
135 2012-03-08  Bruno Haible  <bruno@clisp.org>
136
137         Tests for module 'exp2l'.
138         * modules/exp2l-tests: New file.
139         * tests/test-exp2l.c: New file.
140
141         New module 'exp2l'.
142         * lib/math.in.h (exp2l): New declaration.
143         * lib/exp2l.c: New file.
144         * lib/expl-table.c: New file, extracted from lib/expl.c.
145         * lib/expl.c (gl_expl_table): New declaration.
146         (expl): Remove expl_table. Update reference.
147         * m4/exp2l.m4: New file.
148         * m4/math_h.m4 (gl_MATH_H): Test whether exp2l is declared.
149         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXP2L, HAVE_DECL_EXP2L.
150         * modules/math (Makefile.am): Substitute GNULIB_EXP2L, HAVE_DECL_EXP2L.
151         * modules/exp2l: New file.
152         * modules/expl (Files): Add lib/expl-table.c.
153         (configure.ac): Compile also expl-table.c.
154         * tests/test-math-c++.cc: Check the declaration of exp2l.
155         * doc/posix-functions/exp2l.texi: Mention the new module and the IRIX
156         problem.
157
158 2012-03-08  Bruno Haible  <bruno@clisp.org>
159
160         Tests for module 'exp2f'.
161         * modules/exp2f-tests: New file.
162         * tests/test-exp2f.c: New file.
163
164         New module 'exp2f'.
165         * lib/math.in.h (exp2f): New declaration.
166         * lib/exp2f.c: New file.
167         * m4/exp2f.m4: New file.
168         * m4/math_h.m4 (gl_MATH_H): Test whether exp2f is declared.
169         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXP2F, HAVE_DECL_EXP2F.
170         * modules/math (Makefile.am): Substitute GNULIB_EXP2F, HAVE_DECL_EXP2F.
171         * modules/exp2f: New file.
172         * tests/test-math-c++.cc: Check the declaration of exp2f.
173         * doc/posix-functions/exp2f.texi: Mention the new module and the
174         IRIX problem.
175
176 2012-03-08  Bruno Haible  <bruno@clisp.org>
177
178         Tests for module 'exp2'.
179         * modules/exp2-tests: New file.
180         * tests/test-exp2.c: New file.
181         * tests/test-exp2.h: New file.
182
183         New module 'exp2'.
184         * lib/math.in.h (exp2): New declaration.
185         * lib/exp2.c: New file.
186         * m4/exp2.m4: New file.
187         * m4/math_h.m4 (gl_MATH_H): Test whether exp2 is declared.
188         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXP2, HAVE_DECL_EXP2,
189         REPLACE_EXP2.
190         * modules/math (Makefile.am): Substitute GNULIB_EXP2, HAVE_DECL_EXP2,
191         REPLACE_EXP2.
192         * modules/exp2: New file.
193         * tests/test-math-c++.cc: Check the declaration of exp2.
194         * doc/posix-functions/exp2.texi: Mention the new module and the IRIX
195         and OpenBSD problems.
196
197 2012-03-08  Paul Eggert  <eggert@cs.ucla.edu>
198
199         savedir: fix comment typo
200         * lib/savedir.c (savedirstream): Fix typo in comment.
201
202 2012-03-08  Bruno Haible  <bruno@clisp.org>
203
204         test-readtokens.c: use const; remove unwarranted cast
205         * tests/test-readtokens.c: Declare delim to be const, to avoid a cast.
206
207 2012-03-08  Bruno Haible  <bruno@clisp.org>
208
209         fmal: Avoid compilation error on AIX.
210         * lib/math.in.h (fmal): Undefine macro before declaration. Needed on
211         AIX 5.2..7.1.
212
213 2012-03-08  Bruno Haible  <bruno@clisp.org>
214
215         fma, fmaf, fmal: Override undeclared system functions on IRIX 6.5.
216         * m4/fma.m4 (gl_FUNC_FMA): If fma() exists but is not declared,
217         arrange to set REPLACE_FMA=1, not HAVE_FMA=0.
218         * m4/fmaf.m4 (gl_FUNC_FMAF): If fmaf() exists but is not declared,
219         arrange to set REPLACE_FMAF=1, not HAVE_FMAF=0.
220         * m4/fmal.m4 (gl_FUNC_FMAL): If fmal() exists but is not declared,
221         arrange to set REPLACE_FMAL=1, not HAVE_FMAL=0.
222
223 2012-03-08  Bruno Haible  <bruno@clisp.org>
224
225         remainderf: Override buggy system function on IRIX 6.5.
226         * m4/remainderf.m4 (gl_FUNC_REMAINDERF_WORKS): New macro.
227         (gl_FUNC_REMAINDERF): Invoke it. Don't assume remainderf() is declared
228         when it exists.
229         * doc/posix-functions/remainderf.texi: Mention the IRIX problems.
230
231 2012-03-08  Jim Meyering  <meyering@redhat.com>
232
233         test-readtokens.c: avoid const-related compilation warnings
234         * tests/test-readtokens.c: Avoid const-related compilation warnings.
235
236 2012-03-07  Jim Meyering  <meyering@redhat.com>
237             Bruno Haible  <bruno@clisp.org>
238
239         frexp-nolibm, frexpl-nolibm tests: Fix bug introduced on 2012-03-03.
240         * modules/frexp-nolibm-tests (Files): Add tests/test-frexp.h,
241         tests/randomd.c.
242         (Makefile.am): Add randomd.c to test_frexp_nolibm_SOURCES.
243         * modules/frexpl-nolibm-tests (Files): Add tests/test-frexp.h,
244         tests/randoml.c.
245         (Makefile.am): Add randoml.c to test_frexpl_nolibm_SOURCES.
246
247 2012-03-07  Bruno Haible  <bruno@clisp.org>
248
249         expm1l: Avoid compilation error on AIX.
250         * lib/math.in.h (expm1l): Undefine macro before declaration. Needed on
251         AIX 5.2..7.1.
252
253 2012-03-07  Bruno Haible  <bruno@clisp.org>
254
255         expm1l: Don't override undeclared system function on IRIX 6.5.
256         * lib/math.in.h (expm1l): Test HAVE_DECL_EXPM1L, not HAVE_EXPM1L.
257         * m4/expm1l.m4 (gl_FUNC_EXPM1L): Don't assume expm1l() is declared when
258         it exists. Set HAVE_DECL_EXPM1L.
259         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize HAVE_DECL_EXPM1L, not
260         HAVE_EXPM1L.
261         * modules/math (Makefile.am): Substitute HAVE_DECL_EXPM1L, not
262         HAVE_EXPM1L.
263         * doc/posix-functions/expm1l.texi: Mention missing declaration problem.
264
265 2012-03-07  Bruno Haible  <bruno@clisp.org>
266
267         remainderl: Don't override undeclared system function on IRIX 6.5.
268         * lib/math.in.h (remainderl): Test HAVE_DECL_REMAINDERL, not
269         HAVE_REMAINDERL.
270         * m4/remainderl.m4 (gl_FUNC_REMAINDERL): Don't assume remainderl() is
271         declared when it exists. Set HAVE_DECL_REMAINDERL.
272         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize HAVE_DECL_REMAINDERL,
273         not HAVE_REMAINDERL.
274         * modules/math (Makefile.am): Substitute HAVE_DECL_REMAINDERL, not
275         HAVE_REMAINDERL.
276         * doc/posix-functions/remainderl.texi: Mention missing declaration
277         problem.
278
279 2012-03-07  Bruno Haible  <bruno@clisp.org>
280
281         rintf: Don't override undeclared system function on IRIX 6.5.
282         * lib/math.in.h (rintf): Test HAVE_DECL_RINTF, not HAVE_RINTF.
283         * m4/rintf.m4 (gl_FUNC_RINTF): Don't assume rintf() is declared when it
284         exists. Set HAVE_DECL_RINTF.
285         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize HAVE_DECL_RINTF, not
286         HAVE_RINTF.
287         * modules/math (Makefile.am): Substitute HAVE_DECL_RINTF, not
288         HAVE_RINTF.
289         * doc/posix-functions/rintf.texi: Mention missing declaration problem.
290
291 2012-03-07  Bruno Haible  <bruno@clisp.org>
292
293         roundl: Avoid compilation error on AIX.
294         * lib/math.in.h (roundl): Undefine macro before declaration. Needed on
295         AIX 5.2..7.1.
296
297 2012-03-07  Bruno Haible  <bruno@clisp.org>
298
299         roundl: Don't override undeclared system function on IRIX 6.5.
300         * m4/roundl.m4 (gl_FUNC_ROUNDL): Search for roundl() in the libraries
301         also when it is not declared. Set HAVE_ROUNDL. For replacement code,
302         test HAVE_ROUNDL, not HAVE_DECL_ROUNDL.
303         * modules/roundl (configure.ac): For replacement code, test
304         HAVE_ROUNDL, not HAVE_DECL_ROUNDL.
305         (Depends-on): Update conditions.
306         * doc/posix-functions/roundl.texi: Mention the IRIX problem.
307
308 2012-03-07  Bruno Haible  <bruno@clisp.org>
309
310         roundf: Don't override undeclared system function on IRIX 6.5.
311         * m4/roundf.m4 (gl_FUNC_ROUNDF): Search for roundf() in the libraries
312         also when it is not declared. Set HAVE_ROUNDF. For replacement code,
313         test HAVE_ROUNDF, not HAVE_DECL_ROUNDF.
314         * modules/roundf (configure.ac): For replacement code, test
315         HAVE_ROUNDF, not HAVE_DECL_ROUNDF.
316         (Depends-on): Update conditions.
317         * modules/roundf-ieee (Depends-on): Update conditions.
318         * doc/posix-functions/roundf.texi: Mention the IRIX problem.
319
320 2012-03-07  Bruno Haible  <bruno@clisp.org>
321
322         round: Don't override undeclared system function on IRIX 6.5.
323         * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): Accept an optional third
324         argument.
325         * m4/round.m4 (gl_FUNC_ROUND): Search for round() in the libraries
326         also when it is not declared. Set HAVE_ROUND. For replacement code,
327         test HAVE_ROUND, not HAVE_DECL_ROUND.
328         * modules/round (configure.ac): For replacement code, test HAVE_ROUND,
329         not HAVE_DECL_ROUND.
330         (Depends-on): Update conditions.
331         * modules/round-ieee (Depends-on): Update conditions.
332         * doc/posix-functions/round.texi: Mention the IRIX problem.
333
334 2012-03-07  Bruno Haible  <bruno@clisp.org>
335
336         copysignf: Don't override undeclared system function on IRIX 6.5.
337         * lib/math.in.h (copysignf): Test HAVE_DECL_COPYSIGNF, not
338         HAVE_COPYSIGNF.
339         * m4/copysignf.m4 (gl_FUNC_COPYSIGNF): Don't assume copysignf() is
340         declared when it exists. Set HAVE_DECL_COPYSIGNF.
341         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize HAVE_DECL_COPYSIGNF,
342         not HAVE_COPYSIGNF.
343         * modules/math (Makefile.am): Substitute HAVE_DECL_COPYSIGNF, not
344         HAVE_COPYSIGNF.
345         * doc/posix-functions/copysignf.texi: Mention missing declaration
346         problem.
347
348 2012-03-07  Jim Meyering  <meyering@redhat.com>
349
350         readtokens: add tests
351         * modules/readtokens-tests: New file.
352         * tests/test-readtokens.c: New file.
353
354 2012-03-07  Jim Meyering  <meyering@redhat.com>
355
356         quotearg: the module must now include quote.h
357         With commit v0.0-7133-g6417476, quotearg.c includes "quote.h".
358         So must the module.
359         * modules/quotearg (Files): Add quote.h.
360
361 2012-03-06  Paul Eggert  <eggert@cs.ucla.edu>
362
363         readtokens: avoid core dumps with unusual calling patterns
364         Reported by Xu Zhongxing in <http://debbugs.gnu.org/10953>.
365         * lib/readtokens.c: Include limits.h.
366         (word, bits_per_word, get_nth_bit, set_nth_bit): New.
367         (readtoken): Don't cache the delimiters; the cache code was buggy
368         if !delim && saved_delim, or if the new n_delim differs from the old.
369         Also, it wasn't thread-safe.
370
371 2012-03-07  Bruno Haible  <bruno@clisp.org>
372
373         quote: Adhere to common module description layout.
374         * modules/quote (Makefile.am): Add back empty section.
375
376 2012-03-06  Akim Demaille  <demaille@gostai.com>
377
378         quote: fuse into quotearg
379         This patch is made for the benefit of Bison.
380         quote does not leave the choice of the quoting style to the user.
381         quoting_style provides poor customizability, yet quoting_options,
382         which is very rich, is hidden inside quotearg.c.  So in order to
383         allow quote customization, move its implementation to quotearg.c.
384         * lib/quote.c: Remove.
385         * modules/quote: Adjust.
386         * lib/quotearg.c (quoting_options_from_style): Fix a compiler
387         warning: provide all the members of literal structs.
388         (quote_quoting_options): New.
389         (quote, quote_n): Import implementation from quote.c.
390         * lib/quote.h: Import the comments from quote.c.
391         (quote_quoting_options): New.
392
393 2012-03-06  Bruno Haible  <bruno@clisp.org>
394
395         Tests for module 'expm1l-ieee'.
396         * modules/expm1l-ieee-tests: New file.
397         * tests/test-expm1l-ieee.c: New file.
398
399         New module 'expm1l-ieee'.
400         * modules/expm1l-ieee: New file.
401
402         Tests for module 'expm1f-ieee'.
403         * modules/expm1f-ieee-tests: New file.
404         * tests/test-expm1f-ieee.c: New file.
405
406         New module 'expm1f-ieee'.
407         * modules/expm1f-ieee: New file.
408
409         Tests for module 'expm1-ieee'.
410         * modules/expm1-ieee-tests: New file.
411         * tests/test-expm1-ieee.c: New file.
412         * tests/test-expm1-ieee.h: New file.
413
414         New module 'expm1-ieee'.
415         * modules/expm1-ieee: New file.
416         * m4/expm1-ieee.m4: New file.
417         * m4/expm1.m4 (gl_FUNC_EXPM1): If gl_FUNC_EXPM1_IEEE is present, test
418         whether expm1 works with a minus zero argument. Replace it if not.
419         * lib/math.in.h (expm1): Override if REPLACE_EXPM1 is 1.
420         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_EXPM1.
421         * modules/math (Makefile.am): Substitute REPLACE_EXPM1.
422         * modules/expm1 (configure.ac): Consider REPLACE_EXPM1.
423         (Depends-on): Update conditions.
424         * doc/posix-functions/expm1.texi: Mention the expm1-ieee module and the
425         AIX problem.
426
427 2012-03-06  Bruno Haible  <bruno@clisp.org>
428
429         Work around expm1f bug on IRIX 6.5.
430         * lib/math.in.h (expm1f): Override if REPLACE_EXPM1F is 1.
431         * m4/expm1f.m4 (gl_FUNC_EXPM1F_WORKS): New macro.
432         (gl_FUNC_EXPM1F): Invoke it. Set REPLACE_EXPM1F to 1 if expm1f() does
433         not work.
434         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_EXPM1F.
435         * modules/math (Makefile.am): Substitute REPLACE_EXPM1F.
436         * modules/expm1f (configure.ac): Consider REPLACE_EXPM1F.
437         (Depends-on): Update conditions.
438         * doc/posix-functions/expm1f.texi: Mention the IRIX 6.5 bug.
439
440 2012-03-06  Bruno Haible  <bruno@clisp.org>
441
442         Tests for module 'expm1l'.
443         * modules/expm1l-tests: New file.
444         * tests/test-expm1l.c: New file.
445
446         New module 'expm1l'.
447         * lib/math.in.h (expm1l): New declaration.
448         * lib/expm1l.c: New file.
449         * m4/expm1l.m4: New file.
450         * m4/math_h.m4 (gl_MATH_H): Test whether expm1l is declared.
451         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXPM1L, HAVE_EXPM1L.
452         * modules/math (Makefile.am): Substitute GNULIB_EXPM1L, HAVE_EXPM1L.
453         * modules/expm1l: New file.
454         * tests/test-math-c++.cc: Check the declaration of expm1l.
455         * doc/posix-functions/expm1l.texi: Mention the new module.
456
457 2012-03-06  Bruno Haible  <bruno@clisp.org>
458
459         Tests for module 'expm1f'.
460         * modules/expm1f-tests: New file.
461         * tests/test-expm1f.c: New file.
462
463         New module 'expm1f'.
464         * lib/math.in.h (expm1f): New declaration.
465         * lib/expm1f.c: New file.
466         * m4/expm1f.m4: New file.
467         * m4/math_h.m4 (gl_MATH_H): Test whether expm1f is declared.
468         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXPM1F, HAVE_EXPM1F.
469         * modules/math (Makefile.am): Substitute GNULIB_EXPM1F, HAVE_EXPM1F.
470         * modules/expm1f: New file.
471         * tests/test-math-c++.cc: Check the declaration of expm1f.
472         * doc/posix-functions/expm1f.texi: Mention the new module.
473
474 2012-03-06  Bruno Haible  <bruno@clisp.org>
475
476         Tests for module 'expm1'.
477         * modules/expm1-tests: New file.
478         * tests/test-expm1.c: New file.
479         * tests/test-expm1.h: New file.
480
481         New module 'expm1'.
482         * lib/math.in.h (expm1): New declaration.
483         * lib/expm1.c: New file.
484         * m4/expm1.m4: New file.
485         * m4/math_h.m4 (gl_MATH_H): Test whether expm1 is declared.
486         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXPM1, HAVE_EXPM1.
487         * modules/math (Makefile.am): Substitute GNULIB_EXPM1, HAVE_EXPM1.
488         * modules/expm1: New file.
489         * tests/test-math-c++.cc: Check the declaration of expm1.
490         * doc/posix-functions/expm1.texi: Mention the new module.
491
492 2012-03-06  Bruno Haible  <bruno@clisp.org>
493
494         math: Ensure declarations of math functions.
495         * modules/acosf (Depends-on): Add 'extensions'.
496         * modules/asinf (Depends-on): Likewise.
497         * modules/atan2f (Depends-on): Likewise.
498         * modules/atanf (Depends-on): Likewise.
499         * modules/cbrt (Depends-on): Likewise.
500         * modules/cbrtf (Depends-on): Likewise.
501         * modules/cbrtl (Depends-on): Likewise.
502         * modules/copysignf (Depends-on): Likewise.
503         * modules/copysignl (Depends-on): Likewise.
504         * modules/cosf (Depends-on): Likewise.
505         * modules/coshf (Depends-on): Likewise.
506         * modules/expf (Depends-on): Likewise.
507         * modules/fabsf (Depends-on): Likewise.
508         * modules/fabsl (Depends-on): Likewise.
509         * modules/fmaf (Depends-on): Likewise.
510         * modules/fmal (Depends-on): Likewise.
511         * modules/fmodf (Depends-on): Likewise.
512         * modules/fmodl (Depends-on): Likewise.
513         * modules/frexpf (Depends-on): Likewise.
514         * modules/frexpl (Depends-on): Likewise.
515         * modules/hypot (Depends-on): Likewise.
516         * modules/hypotf (Depends-on): Likewise.
517         * modules/hypotl (Depends-on): Likewise.
518         * modules/ldexpf (Depends-on): Likewise.
519         * modules/ldexpl (Depends-on): Likewise.
520         * modules/log10f (Depends-on): Likewise.
521         * modules/log10l (Depends-on): Likewise.
522         * modules/log1p (Depends-on): Likewise.
523         * modules/logb (Depends-on): Likewise.
524         * modules/logf (Depends-on): Likewise.
525         * modules/modff (Depends-on): Likewise.
526         * modules/modfl (Depends-on): Likewise.
527         * modules/powf (Depends-on): Likewise.
528         * modules/remainderf (Depends-on): Likewise.
529         * modules/remainderl (Depends-on): Likewise.
530         * modules/rintf (Depends-on): Likewise.
531         * modules/rintl (Depends-on): Likewise.
532         * modules/sinf (Depends-on): Likewise.
533         * modules/sinhf (Depends-on): Likewise.
534         * modules/sqrtf (Depends-on): Likewise.
535         * modules/tanf (Depends-on): Likewise.
536         * modules/tanhf (Depends-on): Likewise.
537         * m4/acosf.m4 (gl_FUNC_ACOSF): Require gl_USE_SYSTEM_EXTENSIONS.
538         * m4/asinf.m4 (gl_FUNC_ASINF): Likewise.
539         * m4/atan2f.m4 (gl_FUNC_ATAN2F): Likewise.
540         * m4/atanf.m4 (gl_FUNC_ATANF): Likewise.
541         * m4/cbrt.m4 (gl_FUNC_CBRT): Likewise.
542         * m4/cbrtf.m4 (gl_FUNC_CBRTF): Likewise.
543         * m4/cbrtl.m4 (gl_FUNC_CBRTL): Likewise.
544         * m4/copysignf.m4 (gl_FUNC_COPYSIGNF): Likewise.
545         * m4/copysignl.m4 (gl_FUNC_COPYSIGNL): Likewise.
546         * m4/cosf.m4 (gl_FUNC_COSF): Likewise.
547         * m4/coshf.m4 (gl_FUNC_COSHF): Likewise.
548         * m4/expf.m4 (gl_FUNC_EXPF): Likewise.
549         * m4/fabsf.m4 (gl_FUNC_FABSF): Likewise.
550         * m4/fabsl.m4 (gl_FUNC_FABSL): Likewise.
551         * m4/fmaf.m4 (gl_FUNC_FMAF): Likewise.
552         * m4/fmal.m4 (gl_FUNC_FMAL): Likewise.
553         * m4/fmodf.m4 (gl_FUNC_FMODF): Likewise.
554         * m4/fmodl.m4 (gl_FUNC_FMODL): Likewise.
555         * m4/frexpf.m4 (gl_FUNC_FREXPF): Likewise.
556         * m4/frexpl.m4 (gl_FUNC_FREXPL): Likewise.
557         * m4/hypot.m4 (gl_FUNC_HYPOT): Likewise.
558         * m4/hypotf.m4 (gl_FUNC_HYPOTF): Likewise.
559         * m4/hypotl.m4 (gl_FUNC_HYPOTL): Likewise.
560         * m4/ldexpf.m4 (gl_FUNC_LDEXPF): Likewise.
561         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Likewise.
562         * m4/log10f.m4 (gl_FUNC_LOG10F): Likewise.
563         * m4/log10l.m4 (gl_FUNC_LOF10L): Likewise.
564         * m4/logb.m4 (gl_FUNC_LOGB): Likewise.
565         * m4/logf.m4 (gl_FUNC_LOGF): Likewise.
566         * m4/modff.m4 (gl_FUNC_MODFF): Likewise.
567         * m4/modfl.m4 (gl_FUNC_MODFL): Likewise.
568         * m4/powf.m4 (gl_FUNC_POWF): Likewise.
569         * m4/remainderf.m4 (gl_FUNC_REMAINDERF): Likewise.
570         * m4/remainderl.m4 (gl_FUNC_REMAINDERL): Likewise.
571         * m4/rintf.m4 (gl_FUNC_RINTF): Likewise.
572         * m4/rintl.m4 (gl_FUNC_RINTL): Likewise.
573         * m4/sinf.m4 (gl_FUNC_SINF): Likewise.
574         * m4/sinhf.m4 (gl_FUNC_SINHF): Likewise.
575         * m4/sqrtf.m4 (gl_FUNC_SQRTF): Likewise.
576         * m4/tanf.m4 (gl_FUNC_TANF): Likewise.
577         * m4/tanhf.m4 (gl_FUNC_TANHF): Likewise.
578
579 2012-03-06  Bruno Haible  <bruno@clisp.org>
580
581         math: Update module names in warnings.
582         * lib/math.in.h (acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl,
583         tanl): Use specific module name in warn-on-use warning.
584
585 2012-03-06  Bruno Haible  <bruno@clisp.org>
586
587         expl: Simplify computation.
588         * lib/expl.c (expl): Simplify computation of exp_y. Fix comment.
589
590 2012-03-05  Bruno Haible  <bruno@clisp.org>
591
592         exp* tests: More tests.
593         * tests/test-exp.h: New file.
594         * tests/test-exp.c: Include <float.h> and test-exp.h.
595         (main): Invoke test_function.
596         * tests/test-expf.c: Include <float.h> and test-exp.h.
597         (main): Invoke test_function.
598         * tests/test-expl.c: Include <float.h> and test-exp.h.
599         (main): Invoke test_function.
600         * modules/exp-tests (Files): Add tests/test-exp.h, tests/randomd.c.
601         (Makefile.am): Add randomd.c to test_exp_SOURCES.
602         * modules/expf-tests (Files): Add tests/test-exp.h, tests/randomf.c.
603         (Makefile.am): Add randomf.c to test_expf_SOURCES.
604         * modules/expl-tests (Files): Add tests/test-exp.h, tests/randoml.c.
605         (Depends-on): Add 'float'.
606         (Makefile.am): Add randoml.c to test_expl_SOURCES.
607
608         expl: Fix precision of computed result.
609         * lib/expl.c: Completely rewritten.
610         * modules/expl (Depends-on): Add isnanl, roundl, ldexpl. Remove floorl.
611         (Maintainer): Add me.
612         * m4/expl.m4 (gl_FUNC_EXPL): Update computation of EXPL_LIBM.
613
614 2012-03-05  Bruno Haible  <bruno@clisp.org>
615
616         cbrt* tests: More tests.
617         * tests/test-cbrt.h: New file.
618         * tests/test-cbrt.c: Include <float.h> and test-cbrt.h.
619         (main): Invoke test_function.
620         * tests/test-cbrtf.c: Include <float.h> and test-cbrt.h.
621         (main): Invoke test_function.
622         * tests/test-cbrtl.c: Include <float.h> and test-cbrt.h.
623         (main): Invoke test_function.
624         * modules/cbrt-tests (Files): Add tests/test-cbrt.h, tests/randomd.c.
625         (Makefile.am): Add randomd.c to test_cbrt_SOURCES.
626         * modules/cbrtf-tests (Files): Add tests/test-cbrt.h, tests/randomf.c.
627         (Makefile.am): Add randomf.c to test_cbrtf_SOURCES.
628         * modules/cbrtl-tests (Files): Add tests/test-cbrt.h, tests/randoml.c.
629         (Depends-on): Add 'float'.
630         (Makefile.am): Add randoml.c to test_cbrtl_SOURCES.
631
632 2012-03-05  Bruno Haible  <bruno@clisp.org>
633
634         hypot* tests: More tests.
635         * tests/test-hypot.h: New file, partially extracted from
636         tests/test-hypotl.c.
637         * tests/test-hypot.c: Include test-hypot.h.
638         (main): Invoke test_function.
639         * tests/test-hypotf.c: Include test-hypot.h.
640         (main): Invoke test_function.
641         * tests/test-hypotl.c: Include fpucw.h and test-hypot.h.
642         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING and test_function.
643         * modules/hypot-tests (Files): Add tests/test-hypot.h, tests/randomd.c.
644         (Makefile.am): Add randomd.c to test_hypot_SOURCES.
645         * modules/hypotf-tests (Files): Add tests/test-hypot.h,
646         tests/randomf.c.
647         (Makefile.am): Add randomf.c to test_hypotf_SOURCES.
648         * modules/hypotl-tests (Files): Add tests/test-hypot.h,
649         tests/randoml.c.
650         (Depends-on): Add 'fpucw', 'float'.
651         (Makefile.am): Add randoml.c to test_hypotl_SOURCES.
652
653 2012-03-05  Bruno Haible  <bruno@clisp.org>
654
655         fpucw: Doc about FreeBSD.
656         * lib/fpucw.h: Mention FreeBSD in comments.
657
658 2012-03-04  Bruno Haible  <bruno@clisp.org>
659
660         sqrt* tests: More tests.
661         * tests/test-sqrt.h: New file.
662         * tests/test-sqrt.c: Include <float.h> and test-sqrt.h.
663         (main): Invoke test_function.
664         * tests/test-sqrtf.c: Include <float.h> and test-sqrt.h.
665         (main): Invoke test_function.
666         * tests/test-sqrtl.c: Include <float.h> and test-sqrt.h.
667         (main): Invoke test_function.
668         * modules/sqrt-tests (Files): Add tests/test-sqrt.h, tests/randomd.c.
669         (Makefile.am): Add randomd.c to test_sqrt_SOURCES.
670         * modules/sqrtf-tests (Files): Add tests/test-sqrt.h, tests/randomf.c.
671         (Makefile.am): Add randomf.c to test_sqrtf_SOURCES.
672         * modules/sqrtl-tests (Files): Add tests/test-sqrt.h, tests/randoml.c.
673         (Depends-on): Add 'float'.
674         (Makefile.am): Add randoml.c to test_sqrtl_SOURCES.
675
676 2012-03-04  Bruno Haible  <bruno@clisp.org>
677
678         remainder* tests: More tests.
679         * tests/test-remainder.h: New file, based on tests/test-fmod.h.
680         * tests/test-remainder.c: Include <float.h> and test-remainder.h.
681         (main): Invoke test_function.
682         * tests/test-remainderf.c: Include <float.h> and test-remainder.h.
683         (main): Invoke test_function.
684         * tests/test-remainderl.c: Include <float.h> and test-remainder.h.
685         (main): Invoke test_function.
686         * modules/remainder-tests (Files): Add tests/test-remainder.h,
687         tests/randomd.c.
688         (Makefile.am): Add randomd.c to test_remainder_SOURCES.
689         * modules/remainderf-tests (Files): Add tests/test-remainder.h,
690         tests/randomf.c.
691         (Makefile.am): Add randomf.c to test_remainderf_SOURCES.
692         * modules/remainderl-tests (Files): Add tests/test-remainder.h,
693         tests/randoml.c.
694         (Depends-on): Add 'float'.
695         (Makefile.am): Add randoml.c to test_remainderl_SOURCES.
696
697 2012-03-04  Bruno Haible  <bruno@clisp.org>
698
699         remainder, remainderf, remainderl: Fix computation for large quotients.
700         * lib/remainder.c: Completely rewritten.
701         * lib/remainderf.c (remainderf): Use implementation of remainder.c with
702         USE_FLOAT.
703         * lib/remainderl.c (remainderl): Use implementation of remainder.c with
704         USE_LONG_DOUBLE.
705         * modules/remainder (Depends-on): Add isfinite, signbit, fabs, fmod,
706         isnand, isinf. Remove round, fma.
707         * modules/remainderf (Files): Add lib/remainder.c.
708         (Depends-on): Add isfinite, signbit, fabsf, fmodf, isnanf, isinf.
709         Remove roundf, fmaf.
710         * modules/remainderl (Files): Add lib/remainder.c.
711         (Depends-on): Add float, isfinite, signbit, fabsl, fmodl, isnanl,
712         isinf. Remove roundl, fmal.
713         * m4/remainder.m4 (gl_FUNC_REMAINDER): Update computation of
714         REMAINDER_LIBM.
715         * m4/remainderf.m4 (gl_FUNC_REMAINDERF): Update computation of
716         REMAINDERF_LIBM.
717         * m4/remainderl.m4 (gl_FUNC_REMAINDERL): Update computation of
718         REMAINDERL_LIBM.
719
720 2012-03-04  Bruno Haible  <bruno@clisp.org>
721
722         fmod* tests: More tests.
723         * tests/test-fmod.h (my_ldexp): New function.
724         (test_function): Reduce amount of random numbers to test. Add tests
725         of very large quotients x / y.
726         * tests/test-fmod.c (MAX_EXP): New macro.
727         * tests/test-fmodf.c (MAX_EXP): Likewise.
728         * tests/test-fmodl.c (MAX_EXP): Likewise.
729
730 2012-03-04  Bruno Haible  <bruno@clisp.org>
731
732         fmod, fmodl: Fix computation for large quotients x / y.
733         * lib/fmod.c: Completely rewritten.
734         * lib/fmodl.c (fmodl): Use implementation of fmod.c with
735         USE_LONG_DOUBLE.
736         * modules/fmod (Depends-on): Add isfinite, signbit, fabs, frexp, ldexp,
737         isnand. Remove fma.
738         * modules/fmodl (Files): Add lib/fmod.c.
739         (Depends-on): Add float, isfinite, signbit, fabsl,
740         frexpl, ldexpl, isnanl. Remove fma.
741         * m4/fmod.m4 (gl_FUNC_FMOD): Update computation of FMOD_LIBM.
742         * m4/fmodl.m4 (gl_FUNC_FMODL): Update computation of FMODL_LIBM.
743
744 2012-03-03  Bruno Haible  <bruno@clisp.org>
745
746         fmod* tests: More tests.
747         * tests/test-fmod.h: New file.
748         * tests/test-fmod.c: Include <float.h> and test-fmod.h.
749         (main): Invoke test_function.
750         * tests/test-fmodf.c: Include <float.h> and test-fmod.h.
751         (main): Invoke test_function.
752         * tests/test-fmodl.c: Include <float.h> and test-fmod.h.
753         (main): Invoke test_function.
754         * modules/fmod-tests (Files): Add tests/test-fmod.h, tests/randomd.c.
755         (Makefile.am): Add randomd.c to test_fmod_SOURCES.
756         * modules/fmodf-tests (Files): Add tests/test-fmod.h, tests/randomf.c.
757         (Makefile.am): Add randomf.c to test_fmodf_SOURCES.
758         * modules/fmodl-tests (Files): Add tests/test-fmod.h, tests/randoml.c.
759         (Depends-on): Add 'float'.
760         (Makefile.am): Add randoml.c to test_fmodl_SOURCES.
761
762 2012-03-03  Bruno Haible  <bruno@clisp.org>
763
764         rint* tests: More tests.
765         * tests/test-rint.h: New file, partially extracted from
766         tests/test-rintl.c.
767         * tests/test-rint.c: Include test-rint.h.
768         (main): Invoke test_function.
769         * tests/test-rintf.c: Include test-rint.h.
770         (main): Invoke test_function.
771         * tests/test-rintl.c: Include test-rint.h.
772         (main): Invoke test_function.
773         * modules/rint-tests (Files): Add tests/test-rint.h, tests/randomd.c.
774         (Makefile.am): Add randomd.c to test_rint_SOURCES.
775         * modules/rintf-tests (Files): Add tests/test-rint.h, tests/randomf.c.
776         (Makefile.am): Add randomf.c to test_rintf_SOURCES.
777         * modules/rintl-tests (Files): Add tests/test-rint.h, tests/randoml.c.
778         (Makefile.am): Add randoml.c to test_rintl_SOURCES.
779
780 2012-03-03  Bruno Haible  <bruno@clisp.org>
781
782         modf* tests: More tests.
783         * tests/test-modf.h: New file.
784         * tests/test-modf.c: Include <float.h> and test-modf.h.
785         (main): Invoke test_function.
786         * tests/test-modff.c: Include <float.h> and test-modf.h.
787         (main): Invoke test_function.
788         * tests/test-modfl.c: Include <float.h> and test-modf.h.
789         (main): Invoke test_function.
790         * modules/modf-tests (Files): Add tests/test-modf.h, tests/randomd.c.
791         (Makefile.am): Add randomd.c to test_modf_SOURCES.
792         * modules/modff-tests (Files): Add tests/test-modf.h, tests/randomf.c.
793         (Makefile.am): Add randomf.c to test_modff_SOURCES.
794         * modules/modfl-tests (Files): Add tests/test-modf.h, tests/randoml.c.
795         (Depends-on): Add 'float'.
796         (Makefile.am): Add randoml.c to test_modfl_SOURCES.
797
798 2012-03-03  Bruno Haible  <bruno@clisp.org>
799
800         fabs* tests: More tests.
801         * tests/test-fabs.h: New file, partially extracted from
802         tests/test-fabsl.c.
803         * tests/test-fabs.c (RANDOM): New macro.
804         * tests/test-fabsf.c (RANDOM): New macro.
805         * tests/test-fabsl.c (RANDOM): New macro.
806         * modules/fabs-tests (Files): Add tests/randomd.c.
807         (Makefile.am): Add randomd.c to test_fabs_SOURCES.
808         * modules/fabsf-tests (Files): Add tests/randomf.c.
809         (Makefile.am): Add randomf.c to test_fabsf_SOURCES.
810         * modules/fabsl-tests (Files): Add tests/randoml.c.
811         (Makefile.am): Add randoml.c to test_fabsl_SOURCES.
812
813 2012-03-03  Bruno Haible  <bruno@clisp.org>
814
815         ldexp* tests: More tests.
816         * tests/test-ldexp.h (test_function): Add some pseudo-randomized tests.
817         * tests/test-ldexp.c (RANDOM): New macro.
818         * tests/test-ldexpf.c (RANDOM): New macro.
819         * tests/test-ldexpl.c (RANDOM): New macro.
820         * modules/ldexp-tests (Files): Add tests/randomd.c.
821         (Makefile.am): Add randomd.c to test_ldexp_SOURCES.
822         * modules/ldexpf-tests (Files): Add tests/randomf.c.
823         (Makefile.am): Add randomf.c to test_ldexpf_SOURCES.
824         * modules/ldexpl-tests (Files): Add tests/randoml.c.
825         (Makefile.am): Add randoml.c to test_ldexpl_SOURCES.
826
827 2012-03-03  Bruno Haible  <bruno@clisp.org>
828
829         frexp* tests: More tests.
830         * tests/test-frexp.h (test_function): Add some pseudo-randomized tests.
831         * tests/test-frexp.c (RANDOM): New macro.
832         * tests/test-frexpf.c (RANDOM): New macro.
833         * tests/test-frexpl.c (RANDOM): New macro.
834         * modules/frexp-tests (Files): Add tests/randomd.c.
835         (Makefile.am): Add randomd.c to test_frexp_SOURCES.
836         * modules/frexpf-tests (Files): Add tests/randomf.c.
837         (Makefile.am): Add randomf.c to test_frexpf_SOURCES.
838         * modules/frexpl-tests (Files): Add tests/randoml.c.
839         (Makefile.am): Add randoml.c to test_frexpl_SOURCES.
840
841 2012-03-03  Bruno Haible  <bruno@clisp.org>
842
843         Support for pseudo-random numbers in tests.
844         * tests/randomf.c: New file.
845         * tests/randomd.c: New file.
846         * tests/randoml.c: New file.
847         * tests/macros.h (randomf, randomd, randoml): New declarations.
848
849 2012-03-03  Bruno Haible  <bruno@clisp.org>
850
851         frexp* tests: Refactor.
852         * tests/test-frexp.h: New file, extracted from tests/test-frexpl.c.
853         * tests/test-frexp.c: Include and use it.
854         * tests/test-frexpf.c: Likewise.
855         * tests/test-frexpl.c: Likewise.
856         * modules/frexp-tests (Files): Add tests/test-frexp.h.
857         * modules/frexpf-tests (Files): Likewise.
858         * modules/frexpl-tests (Files): Likewise.
859
860 2012-03-02  Jim Meyering  <meyering@redhat.com>
861
862         maint: don't specify XZ_OPT=-9ev in dist-related rule
863         Using xz's -9 option is warranted only if you have a very large
864         tarball (see xz's documentation for the sizes vs. presets), and
865         requires 64MiB of memory at decompression time.
866         * top/maint.mk (alpha beta stable): Don't specify XZ_OPT=-9ev.
867         Automake's default of just "-e" is fine.  Override on a
868         per-package basis by setting XZ_OPT e.g., in cfg.mk.
869
870 2012-03-01  Eric Blake  <eblake@redhat.com>
871
872         maint.mk: allow announcement for non-gnulib project
873         * maint.mk (announcement): Skip gnulib version if not used.
874
875 2012-03-01  Jim Meyering  <meyering@redhat.com>
876
877         maint.mk: avoid spurious failure of _sc_search_regexp-using tests
878         * top/maint.mk: Initialize _sc_search_regexp parameters, so that
879         envvar settings cannot interfere.  Otherwise, setting envvars like
880         prohibit=foo require=bar, etc. would cause spurious test failures.
881
882 2012-03-01  Eric Blake  <eblake@redhat.com>
883
884         maint.mk: add per-line exclusions to prohibitions
885         * maint.mk (_sc_search_regexp): Add $exclude parameter.
886         (sc_prohibit_strcmp, sc_unmarked_diagnostics)
887         (sc_const_long_option): Use it.
888
889 2012-03-01  Bruno Haible  <bruno@clisp.org>
890
891         Tests for module 'expl-ieee'.
892         * modules/expl-ieee-tests: New file.
893         * tests/test-expl-ieee.c: New file.
894
895         New module 'expl-ieee'.
896         * modules/expl-ieee: New file.
897
898         Tests for module 'exp-ieee'.
899         * modules/exp-ieee-tests: New file.
900         * tests/test-exp-ieee.c: New file.
901
902         New module 'exp-ieee'.
903         * modules/exp-ieee: New file.
904
905         Tests for module 'expf-ieee'.
906         * modules/expf-ieee-tests: New file.
907         * tests/test-expf-ieee.c: New file.
908         * tests/test-exp-ieee.h: New file.
909
910         New module 'expf-ieee'.
911         * modules/expf-ieee: New file.
912
913 2012-02-29  Bruno Haible  <bruno@clisp.org>
914
915         cbrtl-ieee: Work around test failure on IRIX 6.5.
916         * m4/cbrtl-ieee.m4: New file.
917         * m4/cbrtl.m4 (gl_FUNC_CBRTL): If gl_FUNC_CBRTL_IEEE is present,
918         test whether cbrtl works with a minus zero argument. Replace it if not.
919         * lib/math.in.h (cbrtl): Override if REPLACE_CBRTL is 1.
920         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_CBRTL.
921         * modules/math (Makefile.am): Substitute REPLACE_CBRTL.
922         * modules/cbrtl (configure.ac): Consider REPLACE_CBRTL.
923         (Depends-on): Update conditions.
924         * modules/cbrtl-ieee (Files): Add m4/cbrtl-ieee.m4, m4/minus-zero.m4,
925         m4/signbit.m4.
926         (configure.ac): Invoke gl_FUNC_CBRTL_IEEE.
927         * lib/cbrtl.c (cbrtl) [IRIX]: Avoid an unnecessary addition.
928         * doc/posix-functions/cbrtl.texi: Mention the cbrtl-ieee module.
929
930         Tests for module 'cbrtl-ieee'.
931         * modules/cbrtl-ieee-tests: New file.
932         * tests/test-cbrtl-ieee.c: New file.
933
934         New module 'cbrtl-ieee'.
935         * modules/cbrtl-ieee: New file.
936
937         Tests for module 'cbrt-ieee'.
938         * modules/cbrt-ieee-tests: New file.
939         * tests/test-cbrt-ieee.c: New file.
940
941         New module 'cbrt-ieee'.
942         * modules/cbrt-ieee: New file.
943
944         Tests for module 'cbrtf-ieee'.
945         * modules/cbrtf-ieee-tests: New file.
946         * tests/test-cbrtf-ieee.c: New file.
947         * tests/test-cbrt-ieee.h: New file.
948
949         New module 'cbrtf-ieee'.
950         * modules/cbrtf-ieee: New file.
951
952 2012-02-29  Bruno Haible  <bruno@clisp.org>
953
954         cbrtf: Work around bug in IRIX 6.5 system function.
955         * lib/math.in.h (cbrtf): Override if REPLACE_CBRTF is 1.
956         * m4/cbrtf.m4 (gl_FUNC_CBRTF_WORKS): New macro.
957         (gl_FUNC_CBRTF): Invoke it. Set REPLACE_CBRTF to 1 if cbrtf() does not
958         work.
959         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_CBRTF.
960         * modules/math (Makefile.am): Substitute REPLACE_CBRTF.
961         * modules/cbrtf (configure.ac): Consider REPLACE_CBRTF.
962         (Depends-on): Update conditions.
963         * doc/posix-functions/cbrtf.texi: Mention the IRIX 6.5 problem.
964
965 2012-02-29  Bruno Haible  <bruno@clisp.org>
966
967         Tests for module 'cbrtl'.
968         * modules/cbrtl-tests: New file.
969         * tests/test-cbrtl.c: New file.
970
971         New module 'cbrtl'.
972         * lib/math.in.h (cbrtl): New declaration.
973         * lib/cbrtl.c: New file.
974         * m4/cbrtl.m4: New file.
975         * m4/math_h.m4 (gl_MATH_H): Test whether cbrtl is declared.
976         (gl_MATH_H_DEFAULTS): Initialize GNULIB_CBRTL, HAVE_CBRTL,
977         HAVE_DECL_CBRTL.
978         * modules/math (Makefile.am): Substitute GNULIB_CBRTL, HAVE_CBRTL,
979         HAVE_DECL_CBRTL.
980         * modules/cbrtl: New file.
981         * tests/test-math-c++.cc: Check the declaration of cbrtl.
982         * doc/posix-functions/cbrtl.texi: Mention the new module.
983
984 2012-02-29  Bruno Haible  <bruno@clisp.org>
985
986         Tests for module 'cbrtf'.
987         * modules/cbrtf-tests: New file.
988         * tests/test-cbrtf.c: New file.
989
990         New module 'cbrtf'.
991         * lib/math.in.h (cbrtf): New declaration.
992         * lib/cbrtf.c: New file.
993         * m4/cbrtf.m4: New file.
994         * m4/math_h.m4 (gl_MATH_H): Test whether cbrtf is declared.
995         (gl_MATH_H_DEFAULTS): Initialize GNULIB_CBRTF, HAVE_CBRTF,
996         HAVE_DECL_CBRTF.
997         * modules/math (Makefile.am): Substitute GNULIB_CBRTF, HAVE_CBRTF,
998         HAVE_DECL_CBRTF.
999         * modules/cbrtf: New file.
1000         * tests/test-math-c++.cc: Check the declaration of cbrtf.
1001         * doc/posix-functions/cbrtf.texi: Mention the new module.
1002
1003 2012-02-29  Bruno Haible  <bruno@clisp.org>
1004
1005         cbrt: Provide replacement on MSVC and Minix.
1006         * lib/math.in.h (cbrt): New declaration.
1007         * lib/cbrt.c: New file.
1008         * m4/cbrt.m4: New file.
1009         * m4/math_h.m4 (gl_MATH_H): Test whether cbrt is declared.
1010         (gl_MATH_H_DEFAULTS): Initialize GNULIB_CBRT, HAVE_CBRT.
1011         * modules/math (Makefile.am): Substitute GNULIB_CBRT, HAVE_CBRT.
1012         * modules/cbrt (Files): Add lib/cbrt.c, m4/cbrt.m4.
1013         (Depends-on): Add dependencies.
1014         (configure.ac): Arrange to compile replacement if HAVE_CBRT is 0.
1015         * tests/test-math-c++.cc: Check the declaration of cbrt.
1016         * doc/posix-functions/cbrt.texi: Mention that the module provides a
1017         replacement.
1018
1019 2012-02-29  Bruno Haible  <bruno@clisp.org>
1020
1021         hypotl-ieee: Work around test failure on OSF/1 and native Windows.
1022         * m4/hypotl-ieee.m4: New file.
1023         * m4/hypotl.m4 (gl_FUNC_HYPOTL): If gl_FUNC_HYPOTL_IEEE is present,
1024         test whether hypotl works with mixed NaN and Infinity arguments.
1025         Replace it if not.
1026         * lib/math.in.h (hypotl): Override if REPLACE_HYPOTL is 1.
1027         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_HYPOTL.
1028         * modules/math (Makefile.am): Substitute REPLACE_HYPOTL.
1029         * modules/hypotl (configure.ac): Consider REPLACE_HYPOTL.
1030         (Depends-on): Update conditions.
1031         * modules/hypotl-ieee (Files): Add m4/hypotl-ieee.m4.
1032         (Depends-on): Add hypot-ieee.
1033         (configure.ac): Invoke gl_FUNC_HYPOTL_IEEE.
1034         * doc/posix-functions/hypotl.texi: Mention the hypotl-ieee module.
1035
1036         hypotf-ieee: Work around test failure on OSF/1 and native Windows.
1037         * m4/hypotf-ieee.m4: New file.
1038         * m4/hypotf.m4 (gl_FUNC_HYPOTF): If gl_FUNC_HYPOTF_IEEE is present,
1039         test whether hypotf works with mixed NaN and Infinity arguments.
1040         Replace it if not.
1041         * modules/hypotf-ieee (Files): Add m4/hypotf-ieee.m4.
1042         (Depends-on): Add hypot-ieee.
1043         (configure.ac): Invoke gl_FUNC_HYPOTF_IEEE.
1044         * doc/posix-functions/hypotf.texi: Mention the hypotf-ieee module.
1045
1046         hypot-ieee: Work around test failure on OSF/1 and native Windows.
1047         * lib/math.in.h (hypot): New declaration.
1048         * lib/hypot.c: New file.
1049         * m4/hypot-ieee.m4: New file.
1050         * m4/hypot.m4 (gl_FUNC_HYPOT): If gl_FUNC_HYPOT_IEEE is present, test
1051         whether hypot works with mixed NaN and Infinity arguments. Replace it
1052         if not.
1053         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_HYPOT,
1054         REPLACE_HYPOT.
1055         * modules/math (Makefile.am): Substitute GNULIB_HYPOT, REPLACE_HYPOT.
1056         * modules/hypot (Files): Add lib/hypot.c.
1057         (Depends-on): Add dependencies.
1058         (configure.ac): Arrange to compile replacement if REPLACE_HYPOT is 1.
1059         * modules/hypot-ieee (Files): Add m4/hypot-ieee.m4.
1060         (configure.ac): Invoke gl_FUNC_HYPOT_IEEE.
1061         * tests/test-math-c++.cc: Check the declaration of hypot.
1062         * doc/posix-functions/hypot.texi: Mention the hypot-ieee module.
1063
1064         Tests for module 'hypotl-ieee'.
1065         * modules/hypotl-ieee-tests: New file.
1066         * tests/test-hypotl-ieee.c: New file.
1067
1068         New module 'hypotl-ieee'.
1069         * modules/hypotl-ieee: New file.
1070
1071         Tests for module 'hypot-ieee'.
1072         * modules/hypot-ieee-tests: New file.
1073         * tests/test-hypot-ieee.c: New file.
1074
1075         New module 'hypot-ieee'.
1076         * modules/hypot-ieee: New file.
1077
1078         Tests for module 'hypotf-ieee'.
1079         * modules/hypotf-ieee-tests: New file.
1080         * tests/test-hypotf-ieee.c: New file.
1081         * tests/test-hypot-ieee.h: New file.
1082
1083         New module 'hypotf-ieee'.
1084         * modules/hypotf-ieee: New file.
1085
1086 2012-02-29  Bruno Haible  <bruno@clisp.org>
1087
1088         Remove unused variables.
1089         * m4/fmod.m4 (gl_FUNC_FMOD): Remove unused variable 'i'.
1090         * m4/fmodl.m4 (gl_FUNC_FMODL): Likewise.
1091         * m4/remainder.m4 (gl_FUNC_REMAINDER): Likewise.
1092         * m4/remainderl.m4 (gl_FUNC_REMAINDERL): Likewise.
1093
1094 2012-02-29  Eric Blake  <eblake@redhat.com>
1095
1096         termios: fix pid_t always, not just for tcgetsid
1097         * doc/posix-headers/termios.texi (termios.h): Mention problem.
1098         * lib/termios.in.h (include): Ensure pid_t on all platforms, not
1099         just when building tcgetsid.
1100
1101 2012-02-29  Bruno Haible  <bruno@clisp.org>
1102
1103         Tests for module 'hypotl'.
1104         * modules/hypotl-tests: New file.
1105         * tests/test-hypotl.c: New file.
1106
1107         New module 'hypotl'.
1108         * lib/math.in.h (hypotl): New declaration.
1109         * lib/hypotl.c: New file.
1110         * m4/hypotl.m4: New file.
1111         * m4/math_h.m4 (gl_MATH_H): Test whether hypotf is declared.
1112         (gl_MATH_H_DEFAULTS): Initialize GNULIB_HYPOTL, HAVE_HYPOTL.
1113         * modules/math (Makefile.am): Substitute GNULIB_HYPOTL, HAVE_HYPOTL.
1114         * modules/hypotl: New file.
1115         * tests/test-math-c++.cc: Check the hypotl declaration.
1116         * doc/posix-functions/hypotl.texi: Mention the new module.
1117
1118 2012-02-29  Eric Blake  <eblake@redhat.com>
1119
1120         tcgetsid: fix cygwin header bug
1121         * lib/termios.in.h (includes) [Cygwin]: Ensure pid_t is defined.
1122
1123         docs: update cygwin progress
1124         * doc/posix-functions/llround.texi (llround): Added in cygwin
1125         1.7.8.
1126         * doc/posix-functions/llroundf.texi (llroundf): Likewise.
1127         * doc/glibc-functions/program_invocation_name.texi
1128         (program_invocation_name): Likewise.
1129         * doc/glibc-functions/program_invocation_short_name.texi
1130         (program_invocation_short_name): Likewise.
1131         * doc/glibc-functions/madvise.texi (madvise): Likewise.
1132         * doc/glibc-functions/pthread_yield.texi (pthread_yield):
1133         Likewise.
1134         * doc/posix-functions/pthread_spin_destroy.texi
1135         (pthread_spin_destroy): Added in cygwin 1.7.10.
1136         * doc/posix-functions/pthread_spin_init.texi (pthread_spin_init):
1137         Likewise.
1138         * doc/posix-functions/pthread_spin_lock.texi (pthread_spin_lock):
1139         Likewise.
1140         * doc/posix-functions/pthread_spin_trylock.texi
1141         (pthread_spin_trylock): Likewise.
1142         * doc/posix-functions/pthread_spin_unlock.texi
1143         (pthread_spin_unlock): Likewise.
1144         * doc/posix-functions/pthread_setschedprio.texi
1145         (pthread_setschedprio): Likewise.
1146         * doc/posix-functions/pthread_attr_getstack.texi
1147         (pthread_attr_getstack): Likewise.
1148         * doc/pastposix-functions/pthread_attr_getstackaddr.texi
1149         (pthread_attr_getstackaddr): Likewise.
1150         * doc/glibc-functions/pthread_getattr_np.texi
1151         (pthread_getattr_np): Likewise.
1152         * doc/glibc-functions/sys_siglist.texi (sys_siglist): Likewise.
1153         * doc/glibc-functions/sysinfo.texi (sysinfo): Likewise.
1154         * doc/posix-functions/clock_settime.texi (clock_settime):
1155         Likewise.
1156         * doc/posix-functions/pthread_attr_getguardsize.texi
1157         (pthread_attr_getguardsize): Likewise.
1158         * doc/posix-functions/pthread_attr_setguardsize.texi
1159         (pthread_attr_setguardsize): Likewise.
1160         * doc/posix-functions/pthread_attr_setstack.texi
1161         (pthread_attr_setstack): Likewise.
1162         * doc/pastposix-functions/pthread_attr_setstackaddr.texi
1163         (pthread_attr_setstackaddr): Likewise.
1164         * doc/posix-functions/clock_getcpuclockid.texi
1165         (clock_getcpuclockid): Likewise.
1166         * doc/posix-functions/pthread_getcpuclockid.texi
1167         (pthread_getcpuclockid): Likewise.
1168         * doc/glibc-functions/error.texi (error): Likewise.
1169         * doc/glibc-functions/error_at_line.texi (error_at_line):
1170         Likewise.
1171         * doc/glibc-functions/error_message_count.texi
1172         (error_message_count): Likewise.
1173         * doc/glibc-functions/error_one_per_line.texi
1174         (error_one_per_line): Likewise.
1175         * doc/glibc-functions/error_print_progname.texi
1176         (error_print_progname): Likewise.
1177         * doc/posix-functions/pthread_condattr_getclock.texi
1178         (pthread_condattr_getclock): Likewise.
1179         * doc/posix-functions/pthread_condattr_setclock.texi
1180         (pthread_condattr_setclock): Likewise.
1181         * doc/posix-functions/clock_nanosleep.texi (clock_nanosleep):
1182         Likewise.
1183         * doc/glibc-functions/getgrouplist.texi (getgrouplist): Likewise.
1184         * doc/glibc-functions/getpt.texi (getpt): Likewise.
1185         * doc/glibc-functions/get_current_dir_name.texi
1186         (get_current_dir_name): Likewise.
1187         * doc/glibc-functions/pthread_sigqueue.texi (pthread_sigqueue):
1188         Likewise.
1189         * doc/posix-functions/tcgetsid.texi (tcgetsid): Likewise, but with
1190         wrong return type.
1191         * doc/glibc-functions/scandirat.texi (scandirat): Added in cygwin
1192         1.7.11.
1193
1194 2012-02-29  Bruno Haible  <bruno@clisp.org>
1195
1196         Tests for module 'hypotf'.
1197         * modules/hypotf-tests: New file.
1198         * tests/test-hypotf.c: New file.
1199
1200         New module 'hypotf'.
1201         * lib/math.in.h (hypotf): New declaration.
1202         * lib/hypotf.c: New file.
1203         * m4/hypotf.m4: New file.
1204         * m4/math_h.m4 (gl_MATH_H): Test whether hypotf is declared.
1205         (gl_MATH_H_DEFAULTS): Initialize GNULIB_HYPOTF, HAVE_HYPOTF,
1206         REPLACE_HYPOTF.
1207         * modules/math (Makefile.am): Substitute GNULIB_HYPOTF, HAVE_HYPOTF,
1208         REPLACE_HYPOTF.
1209         * modules/hypotf: New file.
1210         * tests/test-math-c++.cc: Check the hypotf declaration.
1211         * doc/posix-functions/hypotf.texi: Mention the new module.
1212
1213         hypot: Prepare for hypotf module.
1214         * m4/hypot.m4: New file.
1215         * modules/hypot (Files): Add m4/hypot.m4.
1216         (configure.ac): Invoke gl_FUNC_HYPOT.
1217
1218 2012-02-29  Bruno Haible  <bruno@clisp.org>
1219
1220         hypot tests: More tests.
1221         * tests/test-hypot.c: Include <float.h>.
1222         (main): Add tests about overflow and underflow.
1223
1224 2012-02-29  Bruno Haible  <bruno@clisp.org>
1225
1226         math code: Add comments.
1227         * lib/acosl.c: Add comment about related glibc source files.
1228         * lib/asinl.c: Likewise.
1229         * lib/atanl.c: Likewise.
1230         * lib/expl.c: Likewise.
1231         * lib/logl.c: Likewise.
1232         * lib/sincosl.c: Likewise.
1233         * lib/sinl.c: Likewise.
1234         * lib/tanl.c: Likewise.
1235         * lib/trigl.c: Likewise.
1236         * lib/cosl.c: Likewise. Fix comments.
1237
1238 2012-02-28  Bruno Haible  <bruno@clisp.org>
1239
1240         math: Ensure HUGE_VAL, HUGE_VALF, HUGE_VALL are defined.
1241         * lib/math.in.h (HUGE_VAL, HUGE_VALF, HUGE_VALL): Define fallbacks.
1242         * tests/test-math.c: Include macros.h. Check that HUGE_VAL, HUGE_VALF,
1243         HUGE_VALL are defined.
1244         (numeric_equald): Renamed from numeric_equal.
1245         (numeric_equalf, numeric_equall): New functions.
1246         (main): Check also HUGE_VALF, HUGE_VALL.
1247         * modules/math-tests (Files): Add tests/macros.h.
1248         * doc/posix-headers/math.texi: Document the problems with HUGE_VALF and
1249         HUGE_VALL.
1250
1251 2012-02-28  Bruno Haible  <bruno@clisp.org>
1252
1253         doc: Move ISO C11 feature notes into POSIX chapters.
1254         * doc/posix-functions/aligned_alloc.texi: Renamed from
1255         doc/glibc-functions/aligned_alloc.texi.
1256         * doc/posix-functions/quick_exit.texi: Renamed from
1257         doc/glibc-functions/quick_exit.texi.
1258         * doc/posix-headers/uchar.texi: Renamed from
1259         doc/glibc-headers/uchar.texi.
1260         * doc/posix-functions/c16rtomb.texi: Renamed from
1261         doc/glibc-functions/c16rtomb.texi.
1262         * doc/posix-functions/c32rtomb.texi: Renamed from
1263         doc/glibc-functions/c32rtomb.texi.
1264         * doc/posix-functions/mbrtoc16.texi: Renamed from
1265         doc/glibc-functions/mbrtoc16.texi.
1266         * doc/posix-functions/mbrtoc32.texi: Renamed from
1267         doc/glibc-functions/mbrtoc32.texi.
1268         * doc/gnulib.texi: Update.
1269         (Glibc uchar.h): Remove section.
1270         Suggested by Eric Blake.
1271
1272 2012-02-29  Paul Eggert  <eggert@cs.ucla.edu>
1273
1274         stdnoreturn: port to MSVC better
1275         MSVC standard headers use __declspec(noreturn), so #define noreturn
1276         to empty on that platform.  Reported by Bruno Haible in
1277         <http://lists.gnu.org/archive/html/bug-gnulib/2012-02/msg00152.html>.
1278         * lib/stdnoreturn.in.h (noreturn): Define to empty on MSVC.
1279         * doc/posix-headers/stdnoreturn.texi (stdnoreturn.h): Document this.
1280
1281 2012-02-28  Bruno Haible  <bruno@clisp.org>
1282
1283         doc: Mention new glibc headers and functions.
1284         * doc/glibc-headers/uchar.texi: New file.
1285         * doc/glibc-functions/aligned_alloc.texi: New file.
1286         * doc/glibc-functions/c16rtomb.texi: New file.
1287         * doc/glibc-functions/c32rtomb.texi: New file.
1288         * doc/glibc-functions/clock_adjtime.texi: New file.
1289         * doc/glibc-functions/fanotify_init.texi: New file.
1290         * doc/glibc-functions/fanotify_mark.texi: New file.
1291         * doc/glibc-functions/inet6_opt_append.texi: New file.
1292         * doc/glibc-functions/inet6_opt_find.texi: New file.
1293         * doc/glibc-functions/inet6_opt_finish.texi: New file.
1294         * doc/glibc-functions/inet6_opt_get_val.texi: New file.
1295         * doc/glibc-functions/inet6_opt_init.texi: New file.
1296         * doc/glibc-functions/inet6_opt_next.texi: New file.
1297         * doc/glibc-functions/inet6_opt_set_val.texi: New file.
1298         * doc/glibc-functions/inet6_rth_add.texi: New file.
1299         * doc/glibc-functions/inet6_rth_getaddr.texi: New file.
1300         * doc/glibc-functions/inet6_rth_init.texi: New file.
1301         * doc/glibc-functions/inet6_rth_reverse.texi: New file.
1302         * doc/glibc-functions/inet6_rth_segments.texi: New file.
1303         * doc/glibc-functions/inet6_rth_space.texi: New file.
1304         * doc/glibc-functions/login.texi: New file.
1305         * doc/glibc-functions/mbrtoc16.texi: New file.
1306         * doc/glibc-functions/mbrtoc32.texi: New file.
1307         * doc/glibc-functions/name_to_handle_at.texi: New file.
1308         * doc/glibc-functions/ntp_gettimex.texi: New file.
1309         * doc/glibc-functions/open_by_handle_at.texi: New file.
1310         * doc/glibc-functions/prlimit.texi: New file.
1311         * doc/glibc-functions/process_vm_readv.texi: New file.
1312         * doc/glibc-functions/process_vm_writev.texi: New file.
1313         * doc/glibc-functions/recvmmsg.texi: New file.
1314         * doc/glibc-functions/scandirat.texi: New file.
1315         * doc/glibc-functions/sendmmsg.texi: New file.
1316         * doc/glibc-functions/setns.texi: New file.
1317         * doc/glibc-functions/timespec_get.texi: New file.
1318         * doc/gnulib.texi: Include them.
1319         (Glibc sys/fanotify.h, Glibc sys/resource.h, Glibc uchar.h): New
1320         sections.
1321         Reported by Eric Blake.
1322
1323 2012-02-28  Bruno Haible  <bruno@clisp.org>
1324
1325         Avoid compilation errors with MSVC option -fp:strict.
1326         * lib/floor.c: Use MSVC specific pragma fenv_access.
1327         * lib/ceil.c: Likewise.
1328         * lib/trunc.c: Likewise.
1329         * lib/round.c: Likewise.
1330         * lib/rint.c: Likewise.
1331         * lib/fma.c: Likewise.
1332         * lib/integer_length.c: Likewise.
1333         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
1334         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
1335         * tests/test-floor2.c: Likewise.
1336         * tests/test-floorf2.c: Likewise.
1337         * tests/test-ceil2.c: Likewise.
1338         * tests/test-ceilf2.c: Likewise.
1339         * tests/test-trunc2.c: Likewise.
1340         * tests/test-truncf2.c: Likewise.
1341         Reported by Michael Goffioul <michael.goffioul@gmail.com>.
1342
1343 2012-02-27  Bruno Haible  <bruno@clisp.org>
1344
1345         Tests for module 'sqrtl-ieee'.
1346         * modules/sqrtl-ieee-tests: New file.
1347         * tests/test-sqrtl-ieee.c: New file.
1348
1349         New module 'sqrtl-ieee'.
1350         * modules/sqrtl-ieee: New file.
1351
1352         Tests for module 'sqrt-ieee'.
1353         * modules/sqrt-ieee-tests: New file.
1354         * tests/test-sqrt-ieee.c: New file.
1355
1356         New module 'sqrt-ieee'.
1357         * modules/sqrt-ieee: New file.
1358
1359         Tests for module 'sqrtf-ieee'.
1360         * modules/sqrtf-ieee-tests: New file.
1361         * tests/test-sqrtf-ieee.c: New file.
1362         * tests/test-sqrt-ieee.h: New file.
1363
1364         New module 'sqrtf-ieee'.
1365         * modules/sqrtf-ieee: New file.
1366
1367 2012-02-27  Bruno Haible  <bruno@clisp.org>
1368
1369         remainderl-ieee: Work around test failure on OSF/1.
1370         * m4/remainderl-ieee.m4: New file.
1371         * m4/remainderl.m4 (gl_FUNC_REMAINDERL): If gl_FUNC_REMAINDERL_IEEE is
1372         present, test whether remainderl works with a zero second argument.
1373         Replace it if not.
1374         * lib/math.in.h (remainderl): Override if REPLACE_REMAINDERL is 1.
1375         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_REMAINDERL.
1376         * modules/math (Makefile.am): Substitute REPLACE_REMAINDERL.
1377         * modules/remainderl (configure.ac): Consider REPLACE_REMAINDERL.
1378         (Depends-on): Update conditions.
1379         * modules/remainderl-ieee (Files): Add m4/remainderl-ieee.m4.
1380         (Depends-on): Add remainder-ieee.
1381         (configure.ac): Invoke gl_FUNC_REMAINDERL_IEEE.
1382         * doc/posix-functions/remainderl.texi: Mention the remainderl-ieee
1383         module.
1384
1385         remainderf-ieee: Work around test failure on OSF/1.
1386         * m4/remainderf-ieee.m4: New file.
1387         * m4/remainderf.m4 (gl_FUNC_REMAINDERF): If gl_FUNC_REMAINDERF_IEEE is
1388         present, test whether remainderf works with a zero second argument.
1389         Replace it if not.
1390         * lib/math.in.h (remainderf): Override if REPLACE_REMAINDERF is 1.
1391         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_REMAINDERF.
1392         * modules/math (Makefile.am): Substitute REPLACE_REMAINDERF.
1393         * modules/remainderf (configure.ac): Consider REPLACE_REMAINDERF.
1394         (Depends-on): Update conditions.
1395         * modules/remainderf-ieee (Files): Add m4/remainderf-ieee.m4.
1396         (Depends-on): Add remainder-ieee.
1397         (configure.ac): Invoke gl_FUNC_REMAINDERF_IEEE.
1398         * doc/posix-functions/remainderf.texi: Mention the remainderf-ieee
1399         module.
1400
1401         remainder-ieee: Work around test failure on OSF/1.
1402         * m4/remainder-ieee.m4: New file.
1403         * m4/remainder.m4 (gl_FUNC_REMAINDER): If gl_FUNC_REMAINDER_IEEE is
1404         present, test whether remainder works with a zero second argument.
1405         Replace it if not.
1406         * lib/math.in.h (remainder): Override if REPLACE_REMAINDER is 1.
1407         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_REMAINDER.
1408         * modules/math (Makefile.am): Substitute REPLACE_REMAINDER.
1409         * modules/remainder (configure.ac): Consider REPLACE_REMAINDER.
1410         (Depends-on): Update dependencies.
1411         * modules/remainder-ieee (Files): Add m4/remainder-ieee.m4.
1412         (configure.ac): Invoke gl_FUNC_REMAINDER_IEEE.
1413         * doc/posix-functions/remainder.texi: Mention the remainder-ieee module.
1414
1415         Tests for module 'remainderl-ieee'.
1416         * modules/remainderl-ieee-tests: New file.
1417         * tests/test-remainderl-ieee.c: New file.
1418
1419         New module 'remainderl-ieee'.
1420         * modules/remainderl-ieee: New file.
1421
1422         Tests for module 'remainder-ieee'.
1423         * modules/remainder-ieee-tests: New file.
1424         * tests/test-remainder-ieee.c: New file.
1425
1426         New module 'remainder-ieee'.
1427         * modules/remainder-ieee: New file.
1428
1429         Tests for module 'remainderf-ieee'.
1430         * modules/remainderf-ieee-tests: New file.
1431         * tests/test-remainderf-ieee.c: New file.
1432         * tests/test-remainder-ieee.h: New file.
1433
1434         New module 'remainderf-ieee'.
1435         * modules/remainderf-ieee: New file.
1436
1437 2012-02-27  Bruno Haible  <bruno@clisp.org>
1438
1439         modff, modfl: Fix configure syntax error.
1440         * m4/modff.m4 (gl_FUNC_MODFF): Insert ':' command in 'if'.
1441         * m4/modfl.m4 (gl_FUNC_MODFL): Likewise.
1442
1443 2012-02-27  Bruno Haible  <bruno@clisp.org>
1444
1445         fmodl-ieee: Work around test failures on OSF/1, MSVC 9.
1446         * m4/fmodl-ieee.m4: New file.
1447         * m4/fmodl.m4 (gl_FUNC_FMODL): If gl_FUNC_FMODL_IEEE is present, test
1448         whether fmodl works with zero arguments. Replace it if not.
1449         * modules/fmodl-ieee (Files): Add m4/fmodl-ieee.m4.
1450         (Depends-on): Add fmod-ieee.
1451         (configure.ac): Invoke gl_FUNC_FMODL_IEEE.
1452         * doc/posix-functions/fmodl.texi: Mention the fmodl-ieee module.
1453
1454         fmodf-ieee: Work around test failure on OSF/1.
1455         * m4/fmodf-ieee.m4: New file.
1456         * m4/fmodf.m4 (gl_FUNC_FMODF): If gl_FUNC_FMODF_IEEE is present, test
1457         whether fmodf works with zero arguments. Replace it if not.
1458         * lib/math.in.h (fmodf): Override if REPLACE_FMODF is 1.
1459         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_FMODF.
1460         * modules/math (Makefile.am): Substitute REPLACE_FMODF.
1461         * modules/fmodf (configure.ac): Consider REPLACE_FMODF.
1462         (Depends-on): Update dependencies.
1463         * modules/fmodf-ieee (Files): Add m4/fmodf-ieee.m4.
1464         (configure.ac): Invoke gl_FUNC_FMODF_IEEE.
1465         * doc/posix-functions/fmodf.texi: Mention the problem on OSF/1.
1466
1467         fmodf-ieee: Work around test failure on MSVC 9.
1468         * modules/fmodf-ieee (Depends-on): Add fmod-ieee.
1469         * doc/posix-functions/fmodf.texi: Mention the fmodf-ieee module.
1470
1471         fmod-ieee: Work around test failures on OSF/1, mingw.
1472         * m4/fmod-ieee.m4: New file.
1473         * m4/fmod.m4 (gl_FUNC_FMOD): If gl_FUNC_FMOD_IEEE is present, test
1474         whether fmod works with zero arguments. Replace it if not.
1475         * lib/math.in.h (fmod): New declaration.
1476         * lib/fmod.c: New file.
1477         * m4/math_h.m4 (gl_MATH_H): Test whether fmod is declared.
1478         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMOD, REPLACE_FMOD.
1479         * modules/math (Makefile.am): Substitute GNULIB_FMOD, REPLACE_FMOD.
1480         * modules/fmod (Files): Add lib/fmod.c.
1481         (Depends-on): Add math, isinf, trunc, fma.
1482         (configure.ac): Arrange to compile lib/fmod.c if needed.
1483         * modules/fmod-ieee (Files): Add m4/fmod-ieee.m4, m4/minus-zero.m4,
1484         m4/signbit.m4.
1485         (configure.ac): Invoke gl_FUNC_FMOD_IEEE.
1486         * tests/test-math-c++.cc: Check the declaration of fmod.
1487         * doc/posix-functions/fmod.texi: Mention the fmod-ieee module.
1488
1489         fmodl-ieee: Fix test failures.
1490         * lib/fmodl.c (fmodl): Treat Inf specially.
1491         * modules/fmodl (Depends-on): Add isinf.
1492
1493         Tests for module 'fmodl-ieee'.
1494         * modules/fmodl-ieee-tests: New file.
1495         * tests/test-fmodl-ieee.c: New file.
1496
1497         New module 'fmodl-ieee'.
1498         * modules/fmodl-ieee: New file.
1499
1500         Tests for module 'fmod-ieee'.
1501         * modules/fmod-ieee-tests: New file.
1502         * tests/test-fmod-ieee.c: New file.
1503
1504         New module 'fmod-ieee'.
1505         * modules/fmod-ieee: New file.
1506
1507         Tests for module 'fmodf-ieee'.
1508         * modules/fmodf-ieee-tests: New file.
1509         * tests/test-fmodf-ieee.c: New file.
1510         * tests/test-fmod-ieee.h: New file.
1511
1512         New module 'fmodf-ieee'.
1513         * modules/fmodf-ieee: New file.
1514
1515 2012-02-27  Bruno Haible  <bruno@clisp.org>
1516
1517         Tests for module 'rintl-ieee'.
1518         * modules/rintl-ieee-tests: New file.
1519         * tests/test-rintl-ieee.c: New file.
1520
1521         New module 'rintl-ieee'.
1522         * modules/rintl-ieee: New file.
1523
1524         Tests for module 'rint-ieee'.
1525         * modules/rint-ieee-tests: New file.
1526         * tests/test-rint-ieee.c: New file.
1527
1528         New module 'rint-ieee'.
1529         * modules/rint-ieee: New file.
1530
1531         Tests for module 'rintf-ieee'.
1532         * modules/rintf-ieee-tests: New file.
1533         * tests/test-rintf-ieee.c: New file.
1534         * tests/test-rint-ieee.h: New file.
1535
1536         New module 'rintf-ieee'.
1537         * modules/rintf-ieee: New file.
1538
1539 2012-02-26  Paul Eggert  <eggert@cs.ucla.edu>
1540
1541         regex: re_search etc. should return -2 when memory exhausted
1542         This bug was uncovered when testing 'grep'.  Without the fix,
1543         re_search and friends return -1 when memory is exhausted, but -1
1544         means no match, and this causes grep to falsely report no-match
1545         instead of memory-exhaustion.  See
1546         <http://sources.redhat.com/bugzilla/show_bug.cgi?id=13762>.
1547         * lib/regexec.c (re_search_stub): Return -2 (not -1) if there is
1548         trouble; this can occur if re_search_internal ran out of memory.
1549
1550 2012-02-26  Bruno Haible  <bruno@clisp.org>
1551
1552         modfl-ieee: Work around test failures on IRIX, OSF/1, mingw.
1553         * m4/modfl-ieee.m4: New file.
1554         * m4/modfl.m4 (gl_FUNC_MODFL): If gl_FUNC_MODFL_IEEE is present, test
1555         whether modfl works with Inf. Replace it if not.
1556         * lib/math.in.h (modfl): Override if REPLACE_MODFF is 1.
1557         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_MODFL.
1558         * modules/math (Makefile.am): Substitute REPLACE_MODFL.
1559         * modules/modfl (configure.ac): Consider REPLACE_MODFL.
1560         (Depends-on): Update dependencies.
1561         * modules/modfl-ieee (Files): Add m4/modfl-ieee.m4, m4/minus-zero.m4,
1562         m4/signbit.m4.
1563         (configure.ac): Invoke gl_FUNC_MODFL_IEEE.
1564         * doc/posix-functions/modfl.texi: Mention the modfl-ieee module.
1565
1566         modfl-ieee: Fix dependencies.
1567         * modules/modfl-ieee (Depends-on): Add modf-ieee.
1568
1569         modfl-ieee: Fix test failures.
1570         * lib/modfl.c (modfl): Treat NaN and Inf specially.
1571         * modules/modfl (Depends-on): Add isfinite, isinf.
1572
1573         modff-ieee: Work around test failures on *BSD, IRIX, OSF/1, etc.
1574         * m4/modff-ieee.m4: New file.
1575         * m4/modff.m4 (gl_FUNC_MODFF): If gl_FUNC_MODFF_IEEE is present, test
1576         whether modff works with NaN and Inf. Replace it if not.
1577         * lib/math.in.h (modff): Override if REPLACE_MODFF is 1.
1578         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_MODFF.
1579         * modules/math (Makefile.am): Substitute REPLACE_MODFF.
1580         * modules/modff (configure.ac): Consider REPLACE_MODFF.
1581         (Depends-on): Update dependencies.
1582         * modules/modff-ieee (Files): Add m4/modff-ieee.m4, m4/minus-zero.m4,
1583         m4/signbit.m4.
1584         (Depends-on): Add modf-ieee.
1585         (configure.ac): Invoke gl_FUNC_MODFF_IEEE.
1586         * doc/posix-functions/modff.texi: Mention the modff-ieee module.
1587
1588         modf-ieee: Work around test failures on *BSD, IRIX, OSF/1, Cygwin.
1589         * m4/modf-ieee.m4: New file.
1590         * m4/modf.m4 (gl_FUNC_MODF): If gl_FUNC_MODF_IEEE is present, test
1591         whether modf works with NaN and Inf. Replace it if not.
1592         * lib/math.in.h (modf): New declaration.
1593         * lib/modf.c: New file.
1594         * m4/math_h.m4 (gl_MATH_H): Test whether modf is declared.
1595         (gl_MATH_H_DEFAULTS): Initialize GNULIB_MODF, REPLACE_MODF.
1596         * modules/math (Makefile.am): Substitute GNULIB_MODF, REPLACE_MODF.
1597         * modules/modf (Files): Add lib/modf.c.
1598         (Depends-on): Add math, isfinite, trunc, isinf.
1599         (configure.ac): Addrange to compile lib/modf.c if needed.
1600         * modules/modf-ieee (Files): Add m4/modf-ieee.m4, m4/minus-zero.m4,
1601         m4/signbit.m4.
1602         (configure.ac): Invoke gl_FUNC_MODF_IEEE.
1603         * tests/test-math-c++.cc: Check the declaration of modf.
1604         * doc/posix-functions/modf.texi: Mention the modf-ieee module.
1605
1606         Tests for module 'modfl-ieee'.
1607         * modules/modfl-ieee-tests: New file.
1608         * tests/test-modfl-ieee.c: New file.
1609
1610         New module 'modfl-ieee'.
1611         * modules/modfl-ieee: New file.
1612
1613         Tests for module 'modf-ieee'.
1614         * modules/modf-ieee-tests: New file.
1615         * tests/test-modf-ieee.c: New file.
1616
1617         New module 'modf-ieee'.
1618         * modules/modf-ieee: New file.
1619
1620         Tests for module 'modff-ieee'.
1621         * modules/modff-ieee-tests: New file.
1622         * tests/test-modff-ieee.c: New file.
1623         * tests/test-modf-ieee.h: New file.
1624
1625         New module 'modff-ieee'.
1626         * modules/modff-ieee: New file.
1627
1628 2012-02-26  Bruno Haible  <bruno@clisp.org>
1629
1630         Tests for module 'fabsl-ieee'.
1631         * modules/fabsl-ieee-tests: New file.
1632         * tests/test-fabsl-ieee.c: New file.
1633
1634         New module 'fabsl-ieee'.
1635         * modules/fabsl-ieee: New file.
1636
1637         Tests for module 'fabs-ieee'.
1638         * modules/fabs-ieee-tests: New file.
1639         * tests/test-fabs-ieee.c: New file.
1640
1641         New module 'fabs-ieee'.
1642         * modules/fabs-ieee: New file.
1643
1644         Tests for module 'fabsf-ieee'.
1645         * modules/fabsf-ieee-tests: New file.
1646         * tests/test-fabsf-ieee.c: New file.
1647         * tests/test-fabs-ieee.h: New file.
1648
1649         New module 'fabsf-ieee'.
1650         * modules/fabsf-ieee: New file.
1651
1652 2012-02-26  Bruno Haible  <bruno@clisp.org>
1653
1654         Tests for module 'fmal-ieee'.
1655         * modules/fmal-ieee-tests: New file.
1656         * tests/test-fmal-ieee.c: New file.
1657
1658         New module 'fmal-ieee'.
1659         * modules/fmal-ieee: New file.
1660
1661         Tests for module 'fma-ieee'.
1662         * modules/fma-ieee-tests: New file.
1663         * tests/test-fma-ieee.c: New file.
1664
1665         New module 'fma-ieee'.
1666         * modules/fma-ieee: New file.
1667
1668         Tests for module 'fmaf-ieee'.
1669         * modules/fmaf-ieee-tests: New file.
1670         * tests/test-fmaf-ieee.c: New file.
1671         * tests/test-fma-ieee.h: New file.
1672
1673         New module 'fmaf-ieee'.
1674         * modules/fmaf-ieee: New file.
1675
1676 2012-02-26  Bruno Haible  <bruno@clisp.org>
1677
1678         Tests for module 'ldexpl-ieee'.
1679         * modules/ldexpl-ieee-tests: New file.
1680         * tests/test-ldexpl-ieee.c: New file.
1681
1682         New module 'ldexpl-ieee'.
1683         * modules/ldexpl-ieee: New file.
1684
1685         Tests for module 'ldexp-ieee'.
1686         * modules/ldexp-ieee-tests: New file.
1687         * tests/test-ldexp-ieee.c: New file.
1688
1689         New module 'ldexp-ieee'.
1690         * modules/ldexp-ieee: New file.
1691
1692         Tests for module 'ldexpf-ieee'.
1693         * modules/ldexpf-ieee-tests: New file.
1694         * tests/test-ldexpf-ieee.c: New file.
1695         * tests/test-ldexp-ieee.h: New file.
1696
1697         New module 'ldexpf-ieee'.
1698         * modules/ldexpf-ieee: New file.
1699
1700 2012-02-26  Bruno Haible  <bruno@clisp.org>
1701
1702         Refactor frexp*-ieee tests.
1703         * tests/test-frexp-ieee.h: New file.
1704         * tests/test-frexpf-ieee.c: Include test-frexp-ieee.h.
1705         (main): Just call test_function.
1706         * tests/test-frexp-ieee.c: Include test-frexp-ieee.h.
1707         (main): Just call test_function.
1708         * tests/test-frexpl-ieee.c: Include test-frexp-ieee.h.
1709         (main): Just call test_function.
1710         * modules/frexpf-ieee-tests (Files): Add tests/test-frexp-ieee.h.
1711         * modules/frexp-ieee-tests (Files): Likewise.
1712         * modules/frexpl-ieee-tests (Files): Likewise.
1713
1714         Tests for module 'frexpl-ieee'.
1715         * modules/frexpl-ieee-tests: New file.
1716         * tests/test-frexpl-ieee.c: New file.
1717
1718         New module 'frexpl-ieee'.
1719         * modules/frexpl-ieee: New file.
1720
1721         Tests for module 'frexp-ieee'.
1722         * modules/frexp-ieee-tests: New file.
1723         * tests/test-frexp-ieee.c: New file.
1724
1725         New module 'frexp-ieee'.
1726         * modules/frexp-ieee: New file.
1727
1728         Tests for module 'frexpf-ieee'.
1729         * modules/frexpf-ieee-tests: New file.
1730         * tests/test-frexpf-ieee.c: New file.
1731
1732         New module 'frexpf-ieee'.
1733         * modules/frexpf-ieee: New file.
1734
1735 2012-02-26  Bruno Haible  <bruno@clisp.org>
1736
1737         roundl-ieee tests: More tests.
1738         * tests/test-roundl-ieee.c: Include isnanl-nolibm.h, infinity.h, nan.h.
1739         (main): Add tests for [MX] shaded specification in POSIX.
1740         * modules/roundl-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
1741         (Depends-on): Add isnanl-nolibm.
1742
1743         round-ieee tests: More tests.
1744         * tests/test-round-ieee.c: Include isnand-nolibm.h, infinity.h, nan.h.
1745         (main): Add tests for [MX] shaded specification in POSIX.
1746         * modules/round-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
1747         (Depends-on): Add isnand-nolibm.
1748
1749         roundf-ieee tests: More tests.
1750         * tests/test-roundf-ieee.c: Include isnanf-nolibm.h, infinity.h, nan.h.
1751         (main): Add tests for [MX] shaded specification in POSIX.
1752         * modules/roundf-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
1753         (Depends-on): Add isnanf-nolibm.
1754
1755         truncl-ieee tests: More tests.
1756         * tests/test-truncl-ieee.c: Include isnanl-nolibm.h, infinity.h, nan.h.
1757         (main): Add tests for [MX] shaded specification in POSIX.
1758         * modules/truncl-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
1759         (Depends-on): Add isnanl-nolibm.
1760
1761         trunc-ieee tests: More tests.
1762         * tests/test-trunc-ieee.c: Include isnand-nolibm.h, infinity.h, nan.h.
1763         (main): Add tests for [MX] shaded specification in POSIX.
1764         * modules/trunc-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
1765         (Depends-on): Add isnand-nolibm.
1766
1767         truncf-ieee tests: More tests.
1768         * tests/test-truncf-ieee.c: Include isnanf-nolibm.h, infinity.h, nan.h.
1769         (main): Add tests for [MX] shaded specification in POSIX.
1770         * modules/truncf-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
1771         (Depends-on): Add isnanf-nolibm.
1772
1773         ceill-ieee tests: More tests.
1774         * tests/test-ceill-ieee.c: Include isnanl-nolibm.h, infinity.h, nan.h.
1775         (main): Add tests for [MX] shaded specification in POSIX.
1776         * modules/ceill-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
1777         (Depends-on): Add isnanl-nolibm.
1778
1779         ceil-ieee tests: More tests.
1780         * tests/test-ceil-ieee.c: Include isnand-nolibm.h, infinity.h, nan.h.
1781         (main): Add tests for [MX] shaded specification in POSIX.
1782         * modules/ceil-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
1783         (Depends-on): Add isnand-nolibm.
1784
1785         ceilf-ieee tests: More tests.
1786         * tests/test-ceilf-ieee.c: Include isnanf-nolibm.h, infinity.h, nan.h.
1787         (main): Add tests for [MX] shaded specification in POSIX.
1788         * modules/ceilf-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
1789         (Depends-on): Add isnanf-nolibm.
1790
1791         floorl-ieee tests: More tests.
1792         * tests/test-floorl-ieee.c: Include isnanl-nolibm.h, infinity.h, nan.h.
1793         (main): Add tests for [MX] shaded specification in POSIX.
1794         * modules/floorl-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
1795         (Depends-on): Add isnanl-nolibm.
1796
1797         floor-ieee tests: More tests.
1798         * tests/test-floor-ieee.c: Include isnand-nolibm.h, infinity.h, nan.h.
1799         (main): Add tests for [MX] shaded specification in POSIX.
1800         * modules/floor-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
1801         (Depends-on): Add isnand-nolibm.
1802
1803         floorf-ieee tests: More tests.
1804         * tests/test-floorf-ieee.c: Include isnanf-nolibm.h, infinity.h, nan.h.
1805         (main): Add tests for [MX] shaded specification in POSIX.
1806         * modules/floorf-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
1807         (Depends-on): Add isnanf-nolibm.
1808
1809 2012-02-26  Bruno Haible  <bruno@clisp.org>
1810
1811         fpieee: More comments.
1812         * m4/fpieee.m4 (gl_FP_IEEE): Add more comments.
1813
1814 2012-02-25  Bruno Haible  <bruno@clisp.org>
1815
1816         Tests for module 'log10l'.
1817         * modules/log10l-tests: New file.
1818         * tests/test-log10l.c: New file.
1819         * tests/test-math-c++.cc: Check the declaration of log10l.
1820
1821         New module 'log10l'.
1822         * lib/math.in.h (log10l): New declaration.
1823         * lib/log10l.c: New file.
1824         * m4/log10l.m4: New file.
1825         * modules/log10l: New file.
1826         * m4/math_h.m4 (gl_MATH_H): Test whether log10l is declared.
1827         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG10L, HAVE_LOG10L,
1828         HAVE_DECL_LOG10L.
1829         * modules/math (Makefile.am): Substitute GNULIB_LOG10L, HAVE_LOG10L,
1830         HAVE_DECL_LOG10L.
1831         * doc/posix-functions/log10l.texi: Mention the new module.
1832
1833 2012-02-25  Bruno Haible  <bruno@clisp.org>
1834
1835         fmodl, remainder*: Avoid wrong results due to rounding errors.
1836         * lib/fmodl.c (fmodl): Correct the result if it is not within the
1837         expected bounds.
1838         * lib/remainderf.c (remainderf): Likewise.
1839         * lib/remainder.c (remainder): Likewise.
1840         * lib/remainderl.c (remainderl): Likewise.
1841
1842 2012-02-25  Bruno Haible  <bruno@clisp.org>
1843
1844         Tests for module 'remainderl'.
1845         * modules/remainderl-tests: New file.
1846         * tests/test-remainderl.c: New file.
1847         * tests/test-math-c++.cc: Check the declaration of remainderl.
1848
1849         New module 'remainderl'.
1850         * lib/math.in.h (remainderl): New declaration.
1851         * lib/remainderl.c: New file.
1852         * m4/remainderl.m4: New file.
1853         * modules/remainderl: New file.
1854         * m4/math_h.m4 (gl_MATH_H): Test whether remainderl is declared.
1855         (gl_MATH_H_DEFAULTS): Initialize GNULIB_REMAINDERL, HAVE_REMAINDERL.
1856         * modules/math (Makefile.am): Substitute GNULIB_REMAINDERL,
1857         HAVE_REMAINDERL.
1858         * doc/posix-functions/remainderl.texi: Mention the new module.
1859
1860 2012-02-25  Bruno Haible  <bruno@clisp.org>
1861
1862         Tests for module 'remainderf'.
1863         * modules/remainderf-tests: New file.
1864         * tests/test-remainderf.c: New file.
1865         * tests/test-math-c++.cc: Check the declaration of remainderf.
1866
1867         New module 'remainderf'.
1868         * lib/math.in.h (remainderf): New declaration.
1869         * lib/remainderf.c: New file.
1870         * m4/remainderf.m4: New file.
1871         * modules/remainderf: New file.
1872         * m4/math_h.m4 (gl_MATH_H): Test whether remainderf is declared.
1873         (gl_MATH_H_DEFAULTS): Initialize GNULIB_REMAINDERF, HAVE_REMAINDERF.
1874         * modules/math (Makefile.am): Substitute GNULIB_REMAINDERF,
1875         HAVE_REMAINDERF.
1876         * doc/posix-functions/remainderf.texi: Mention the new module.
1877
1878 2012-02-25  Bruno Haible  <bruno@clisp.org>
1879
1880         remainder: Support for MSVC.
1881         * lib/math.in.h (remainder): New declaration.
1882         * lib/remainder.c: New file.
1883         * m4/remainder.m4: New file.
1884         * modules/remainder (Files): Add lib/remainder.c, m4/remainder.m4.
1885         (Depends-on): Add math, round, fma.
1886         (configure.ac): Use results of gl_FUNC_REMAINDER.
1887         * m4/math_h.m4 (gl_MATH_H): Test whether remainder is declared.
1888         (gl_MATH_H_DEFAULTS): Initialize GNULIB_REMAINDER, HAVE_REMAINDER,
1889         HAVE_DECL_REMAINDER.
1890         * modules/math (Makefile.am): Substitute GNULIB_REMAINDER,
1891         HAVE_REMAINDER, HAVE_DECL_REMAINDER.
1892         * tests/test-math-c++.cc: Check the declaration of remainder.
1893         * doc/posix-functions/remainder.texi: Mention that the MSVC and IRIX 5
1894         problems are fixed.
1895
1896 2012-02-25  Bruno Haible  <bruno@clisp.org>
1897
1898         Tests for module 'fmodl'.
1899         * modules/fmodl-tests: New file.
1900         * tests/test-fmodl.c: New file.
1901         * tests/test-math-c++.cc: Check the declaration of fmodl.
1902
1903         New module 'fmodl'.
1904         * lib/math.in.h (fmodl): New declaration.
1905         * lib/fmodl.c: New file.
1906         * m4/fmodl.m4: New file.
1907         * m4/math_h.m4 (gl_MATH_H): Test whether fmodl is declared.
1908         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMODL, HAVE_FMODL,
1909         REPLACE_FMODL.
1910         * modules/math (Makefile.am): Substitute GNULIB_FMODL, HAVE_FMODL,
1911         REPLACE_FMODL.
1912         * modules/fmodl: New file.
1913         * doc/posix-functions/fmodl.texi: Mention the new module.
1914
1915 2012-02-25  Bruno Haible  <bruno@clisp.org>
1916
1917         Tests for module 'modfl'.
1918         * modules/modfl-tests: New file.
1919         * tests/test-modfl.c: New file.
1920         * tests/test-math-c++.cc: Check the declaration of modfl.
1921
1922         New module 'modfl'.
1923         * lib/math.in.h (modfl): New declaration.
1924         * lib/modfl.c: New file.
1925         * m4/modfl.m4: New file.
1926         * m4/math_h.m4 (gl_MATH_H): Test whether modfl is declared.
1927         (gl_MATH_H_DEFAULTS): Initialize GNULIB_MODFL, HAVE_MODFL.
1928         * modules/math (Makefile.am): Substitute GNULIB_MODFL, HAVE_MODFL.
1929         * modules/modfl: New file.
1930         * doc/posix-functions/modfl.texi: Mention the new module.
1931
1932 2012-02-25  Bruno Haible  <bruno@clisp.org>
1933
1934         Tests for module 'fabsl'.
1935         * modules/fabsl-tests: New file.
1936         * tests/test-fabsl.c: New file.
1937         * tests/test-math-c++.cc: Check the declaration of fabsl.
1938
1939         New module 'fabsl'.
1940         * lib/math.in.h (fabsl): New declaration.
1941         * lib/fabsl.c: New file.
1942         * m4/fabsl.m4: New file.
1943         * m4/math_h.m4 (gl_MATH_H): Test whether fabsl is declared.
1944         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FABSL, HAVE_FABSL,
1945         REPLACE_FABSL.
1946         * modules/math (Makefile.am): Substitute GNULIB_FABSL, HAVE_FABSL,
1947         REPLACE_FABSL.
1948         * modules/fabsl: New file.
1949         * doc/posix-functions/fabsl.texi: Mention the new module.
1950
1951 2012-02-25  Bruno Haible  <bruno@clisp.org>
1952
1953         fabs tests: More tests.
1954         * tests/test-fabs.c: Include <string.h>, minus-zero.h.
1955         (zero): New variable.
1956         (main): Add tests for signed zero.
1957         * modules/fabs-tests (Files): Add tests/minus-zero.h.
1958
1959         fabsf tests: More tests.
1960         * tests/test-fabsf.c: Include <string.h>, minus-zero.h.
1961         (zero): New variable.
1962         (main): Add tests for signed zero.
1963         * modules/fabsf-tests (Files): Add tests/minus-zero.h.
1964
1965 2012-02-24  Bruno Haible  <bruno@clisp.org>
1966
1967         atanl: Provide function definition on MSVC.
1968         * m4/atanl.m4 (gl_FUNC_ATANL): Test also whether atanl can be used as a
1969         function pointer.
1970         * lib/math.in.h (atanl): Undefine if it does not exist as a function.
1971
1972 2012-02-24  Bruno Haible  <bruno@clisp.org>
1973
1974         acosl: Provide function definition on MSVC.
1975         * m4/acosl.m4 (gl_FUNC_ACOSL): Test also whether acosl can be used as a
1976         function pointer.
1977         * lib/math.in.h (acosl): Undefine if it does not exist as a function.
1978
1979 2012-02-24  Bruno Haible  <bruno@clisp.org>
1980
1981         asinl: Provide function definition on MSVC.
1982         * m4/asinl.m4 (gl_FUNC_ASINL): Test also whether asinl can be used as a
1983         function pointer.
1984         * lib/math.in.h (asinl): Undefine if it does not exist as a function.
1985
1986 2012-02-24  Bruno Haible  <bruno@clisp.org>
1987
1988         tanl: Provide function definition on MSVC.
1989         * m4/tanl.m4 (gl_FUNC_TANL): Test also whether tanl can be used as a
1990         function pointer.
1991         * lib/math.in.h (tanl): Undefine if it does not exist as a function.
1992
1993 2012-02-24  Bruno Haible  <bruno@clisp.org>
1994
1995         cosl: Provide function definition on MSVC.
1996         * m4/cosl.m4 (gl_FUNC_COSL): Test also whether cosl can be used as a
1997         function pointer.
1998         * lib/math.in.h (cosl): Undefine if it does not exist as a function.
1999
2000 2012-02-24  Bruno Haible  <bruno@clisp.org>
2001
2002         sinl: Provide function definition on MSVC.
2003         * m4/sinl.m4 (gl_FUNC_SINL): Test also whether sinl can be used as a
2004         function pointer.
2005         * lib/math.in.h (sinl): Undefine if it does not exist as a function.
2006
2007 2012-02-24  Bruno Haible  <bruno@clisp.org>
2008
2009         logl: Provide function definition on MSVC.
2010         * m4/logl.m4 (gl_FUNC_LOGL): Test also whether logl can be used as a
2011         function pointer.
2012         * lib/math.in.h (logl): Undefine if it does not exist as a function.
2013
2014 2012-02-24  Bruno Haible  <bruno@clisp.org>
2015
2016         expl: Provide function definition on MSVC.
2017         * m4/expl.m4 (gl_FUNC_EXPL): Test also whether expl can be used as a
2018         function pointer.
2019         * lib/math.in.h (expl): Undefine if it does not exist as a function.
2020
2021 2012-02-24  Bruno Haible  <bruno@clisp.org>
2022
2023         sqrtl: Provide function definition on MSVC.
2024         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Test also whether sqrtl can be used as
2025         a function pointer.
2026         * lib/math.in.h (sqrtl): Undefine if it does not exist as a function.
2027
2028 2012-02-24  Bruno Haible  <bruno@clisp.org>
2029
2030         ceill: Provide function definition on MSVC.
2031         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Test also whether ceill can be
2032         used as a function pointer.
2033         * lib/math.in.h (ceill): Undefine if it is not declared as a function.
2034
2035 2012-02-24  Bruno Haible  <bruno@clisp.org>
2036
2037         floorl: Provide function definition on MSVC.
2038         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Test also whether floorl can be
2039         used as a function pointer.
2040         * lib/math.in.h (floorl): Undefine if it is not declared as a function.
2041
2042 2012-02-24  Bruno Haible  <bruno@clisp.org>
2043
2044         ceilf: Provide function definition on MSVC.
2045         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Test also whether ceilf can be
2046         used as a function pointer.
2047         * lib/math.in.h (ceilf): Undefine if it is not declared as a function.
2048
2049 2012-02-24  Bruno Haible  <bruno@clisp.org>
2050
2051         floorf: Provide function definition on MSVC.
2052         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Test also whether floorf can be
2053         used as a function pointer.
2054         * lib/math.in.h (floorf): Undefine if it is not declared as a function.
2055
2056 2012-02-24  Paul Eggert  <eggert@cs.ucla.edu>
2057
2058         stdnoreturn: new module
2059         This implements a replacement for C11's <stdnoreturn.h>.
2060         * doc/gnulib.texi (Header File Substitutes): Add stdnoreturn.
2061         * doc/posix-headers/stdnoreturn.texi, lib/stdnoreturn.in.h:
2062         * m4/stdnoreturn.m4, modules/stdnoreturn, modules/stdnoreturn-tests:
2063         * tests/test-stdnoreturn.c: New files.
2064
2065 2012-02-24  Stanislav Brabec  <sbrabec@suse.cz>  (tiny change)
2066
2067         regex: fix false multibyte matches in some regular expressions
2068         See <http://sourceware.org/bugzilla/show_bug.cgi?id=13637>
2069         and <http://sourceware.org/ml/libc-alpha/2012-02/msg00521.html>.
2070         * lib/regex_internal.c (re_string_skip_chars):
2071         Fix miscomputation of remain_len that may cause incomplete
2072         multi-byte character and false match.
2073
2074 2012-02-24  Jim Meyering  <meyering@redhat.com>
2075
2076         maint.mk: tell sc_prohibit_strcmp to ding "0 == strcmp (...)", too
2077         * top/maint.mk (sc_prohibit_strcmp): Also prohibit uses of strcmp
2078         uses with "==" *before* the call, e.g., 0 == strcmp (...)
2079         Remove now-unnecessary str''cmp obfuscation.
2080         Suggested by Akim Demaille.
2081
2082 2012-02-24  Bruno Haible  <bruno@clisp.org>
2083
2084         streq: Rename macro.
2085         * lib/streq.h (STREQ_OPT): Renamed from STREQ.
2086         * NEWS: Mention the change.
2087         * lib/mbrtowc.c (mbrtowc): Update.
2088         * lib/uniwidth/cjk.h (is_cjk_encoding): Update.
2089         * lib/wcwidth.c (wcwidth): Update.
2090         Suggested by Akim Demaille and Jim Meyering.
2091
2092 2012-02-20  Paul Eggert  <eggert@cs.ucla.edu>
2093
2094         regex: fix typo in definition of MIN
2095         * lib/regex_internal.h (MIN): Fix typo.  Problem reported by Thomas
2096         Schwinge in <http://sourceware.org/bugzilla/show_bug.cgi?id=11638#c4>.
2097
2098 2012-02-19  Paul Eggert  <eggert@cs.ucla.edu>
2099             Bruno Haible  <bruno@clisp.org>
2100
2101         acl: Don't use ACL_CNT and similar ops, since they are unreliable.
2102         * lib/file-has-acl.c (file_has_acl) [HP-UX, NonStop Kernel]: Read the
2103         entries into a stack-allocated buffer directly.
2104         * lib/copy-acl.c (qcopy_acl) [HP-UX, NonStop Kernel]: Likewise.
2105
2106 2012-02-19  Paul Eggert  <eggert@cs.ucla.edu>
2107             Bruno Haible  <bruno@clisp.org>
2108
2109         acl: Don't use GETACLCNT and similar ops, since they are unreliable.
2110
2111          - There were several instances of this pattern:
2112
2113              for (;;) {
2114                n = acl (f, GETACLCNT, 0, NULL);
2115                [ allocate an array A of size N ]
2116                if (acl (f, GETACL, n, a) == n)
2117                  break;
2118              }
2119
2120            This loop might never terminate if some other process is constantly
2121            manipulating the file's ACL.  The loop should be rewritten to
2122            terminate.
2123
2124          - The acl (... GETACLNT ...) call is merely an optimization; its value
2125            is merely a hint as to how big to make the array.  A better
2126            optimization is to avoid the acl (... GETACLNT ...)  call entirely,
2127            and just guess a reasonably-big size, growing the size and trying
2128            again if it's not large enough.  This guarantees termination, and
2129            saves a system call.
2130
2131         * lib/acl-internal.h: Include <limits.h>.
2132         (MIN, SIZE_MAX): New macros.
2133         * lib/file-has-acl.c (file_has_acl) [Solaris]: Read the entries into
2134         a stack-allocated buffer, and use malloc if it does not fit. Don't
2135         use GETACLCNT.
2136         * lib/set-mode-acl.c (qset_acl) [Solaris]: Likewise.
2137
2138 2012-02-19  Bruno Haible  <bruno@clisp.org>
2139
2140         acl: Fix endless loop on Solaris with vxfs.
2141         * lib/file-has-acl.c (file_has_acl) [Solaris]: Treat a failing
2142         acl()/facl() call for ACE_GETACL like a failing call for ACE_GETACLCNT.
2143         * lib/set-mode-acl.c (qset_acl) [Solaris]: Likewise.
2144         * lib/copy-acl.c (qcopy_acl)[Solaris]: Likewise.
2145         * tests/test-sameacls.c (main)[Solaris]: Likewise.
2146         Reported by Bill Jones in
2147         <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=10639>, via Paul Eggert.
2148
2149 2012-02-19  Bruno Haible  <bruno@clisp.org>
2150
2151         acl: Fix copy-acl test failure on Solaris 11 2011-11.
2152         * lib/file-has-acl.c (NEW_ACE_WRITEA_DATA): New macro.
2153         (acl_ace_nontrivial): Relax the restrictions on access_masks[] so
2154         that this function returns 0 in some more cases.
2155
2156 2012-02-19  Bruno Haible  <bruno@clisp.org>
2157
2158         acl: Update doc references.
2159         * doc/acl-resources.txt: Update links to Solaris documentation.
2160
2161 2012-02-19  Bruno Haible  <bruno@clisp.org>
2162
2163         Fix test failure in many locales on Solaris 11.
2164         * tests/test-pipe-filter-gi1.c (main): Don't use range expression in
2165         'tr' arguments.
2166         * tests/test-pipe-filter-ii1.c (main): Likewise.
2167         * build-aux/bootstrap (check_versions): Run 'tr' command with range
2168         expressions in the C locale.
2169         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): Likewise.
2170         * m4/host-os.m4 (gl_HOST_OS): Likewise.
2171
2172 2012-02-19  Bruno Haible  <bruno@clisp.org>
2173
2174         gnulib-tool: Improve usage message.
2175         * gnulib-tool (func_usage): Move doc of --help and --version to the
2176         section "Operation modes".
2177
2178 2012-02-18  Reuben Thomas  <rrt@sc3d.org>
2179
2180         README-release: make it easier to execute commands
2181         * top/README-release: break commands out on to separate lines.
2182
2183 2012-02-16  Stefano Lattarini  <stefano.lattarini@gmail.com>
2184
2185         GNUmakefile: simplify detection of unconfigured trees
2186         * top/GNUmakefile: Use $(wildcard) instead of $(shell) to determine
2187         whether the tree make is being run from is already configured or
2188         not.  Related simplifications.
2189
2190 2012-02-13  Simon Josefsson  <simon@josefsson.org>
2191
2192         * gnulib-tool (func_usage): Document --help and --version.
2193
2194 2012-02-11  Jim Meyering  <meyering@redhat.com>
2195
2196         bootstrap: don't exit 0 upon gnulib-tool failure
2197         * build-aux/bootstrap (gnulib_tool): If gnulib-tool fails, exit with
2198         its exit status, not 0.
2199
2200 2011-12-19  Reuben Thomas  <rrt@sc3d.org>
2201
2202         README-release: various improvements
2203         * top/README-release: Give a command to push changes for the
2204         release.  Add "distcheck" to list of other pre-release checks.
2205         Fix instance of "make stable" which should be "make TYPE".
2206
2207 2012-02-09  Paul Eggert  <eggert@cs.ucla.edu>
2208
2209         maint: replace FSF snail-mail addresses with URLs
2210         * config/argz.mk, lib/accept4.c, lib/alignof.h, lib/alloca.in.h:
2211         * lib/alphasort.c, lib/arcfour.c, lib/arcfour.h, lib/arctwo.c:
2212         * lib/arctwo.h, lib/argz.c, lib/arpa_inet.in.h, lib/asnprintf.c:
2213         * lib/asprintf.c, lib/assert.in.h, lib/base32.c, lib/base32.h:
2214         * lib/base64.c, lib/base64.h, lib/c-ctype.c, lib/c-ctype.h:
2215         * lib/c-strcase.h, lib/c-strcasecmp.c, lib/c-strncasecmp.c:
2216         * lib/check-version.c, lib/check-version.h, lib/config.charset:
2217         * lib/ctype.in.h, lib/des.c, lib/des.h, lib/dup3.c, lib/errno.in.h:
2218         * lib/float+.h, lib/fnmatch.c, lib/fnmatch.in.h, lib/fnmatch_loop.c:
2219         * lib/fseeko.c, lib/gai_strerror.c, lib/gc-gnulib.c:
2220         * lib/gc-libgcrypt.c, lib/gc-pbkdf2-sha1.c, lib/gc.h:
2221         * lib/getaddrinfo.c, lib/getdelim.c, lib/getfilecon.c, lib/getline.c:
2222         * lib/getlogin_r.c, lib/getpass.c, lib/getpass.h, lib/gettext.h:
2223         * lib/gettimeofday.c, lib/glob.in.h, lib/glthread/cond.c:
2224         * lib/glthread/cond.h, lib/glthread/lock.c, lib/glthread/lock.h:
2225         * lib/glthread/thread.c, lib/glthread/thread.h:
2226         * lib/glthread/threadlib.c, lib/glthread/yield.h, lib/hmac-md5.c:
2227         * lib/hmac-sha1.c, lib/hmac.h, lib/iconv.c, lib/iconv.in.h:
2228         * lib/iconv_close.c, lib/iconv_open.c, lib/inet_ntop.c, lib/isfinite.c:
2229         * lib/isinf.c, lib/iswblank.c, lib/langinfo.in.h, lib/link.c:
2230         * lib/localcharset.c, lib/localcharset.h, lib/lseek.c, lib/malloc.c:
2231         * lib/malloca.c, lib/malloca.h, lib/md2.c, lib/md2.h, lib/md4.c:
2232         * lib/md4.h, lib/md5.c, lib/md5.h, lib/memmem.c, lib/mempcpy.c:
2233         * lib/memset.c, lib/memxor.c, lib/memxor.h, lib/minmax.h, lib/mktime.c:
2234         * lib/msvc-inval.c, lib/msvc-inval.h, lib/msvc-nothrow.c:
2235         * lib/msvc-nothrow.h, lib/netdb.in.h, lib/netinet_in.in.h, lib/nproc.c:
2236         * lib/nproc.h, lib/obstack_printf.c, lib/pathmax.h, lib/pipe.c:
2237         * lib/pipe2.c, lib/poll.c, lib/poll.in.h, lib/printf-args.c:
2238         * lib/printf-args.h, lib/printf-parse.c, lib/printf-parse.h:
2239         * lib/pselect.c, lib/pthread.in.h, lib/pty-private.h, lib/pty.in.h:
2240         * lib/read-file.c, lib/read-file.h, lib/ref-add.sin, lib/ref-del.sin:
2241         * lib/regcomp.c, lib/regex.c, lib/regex.h, lib/regex_internal.c:
2242         * lib/regex_internal.h, lib/regexec.c, lib/rijndael-alg-fst.c:
2243         * lib/rijndael-alg-fst.h, lib/rijndael-api-fst.c:
2244         * lib/rijndael-api-fst.h, lib/rint.c, lib/rintf.c, lib/rintl.c:
2245         * lib/round.c, lib/roundf.c, lib/roundl.c, lib/scandir.c, lib/select.c:
2246         * lib/sha1.c, lib/sha1.h, lib/size_max.h, lib/snprintf.c:
2247         * lib/stdalign.in.h, lib/stdarg.in.h, lib/stdbool.in.h:
2248         * lib/stddef.in.h, lib/stdint.in.h, lib/stdio.in.h, lib/str-kmp.h:
2249         * lib/str-two-way.h, lib/strcasecmp.c, lib/strcasestr.c, lib/strdup.c:
2250         * lib/striconv.c, lib/striconv.h, lib/string.in.h, lib/strings.in.h:
2251         * lib/strncasecmp.c, lib/strndup.c, lib/strnlen.c, lib/strpbrk.c:
2252         * lib/strptime.c, lib/strsep.c, lib/strstr.c, lib/strverscmp.c:
2253         * lib/sys_file.in.h, lib/sys_ioctl.in.h, lib/sys_select.in.h:
2254         * lib/sys_socket.in.h, lib/sys_stat.in.h, lib/sys_time.in.h:
2255         * lib/sys_times.in.h, lib/sys_types.in.h, lib/sys_uio.in.h:
2256         * lib/sys_utsname.in.h, lib/sys_wait.in.h, lib/tcgetsid.c:
2257         * lib/termios.in.h, lib/time.in.h, lib/time_r.c, lib/timegm.c:
2258         * lib/times.c, lib/unictype/3level.h, lib/unictype/3levelbit.h:
2259         * lib/unistd.in.h, lib/vasnprintf.c, lib/vasnprintf.h, lib/vasprintf.c:
2260         * lib/vsnprintf.c, lib/waitpid.c, lib/wchar.in.h, lib/wctype.in.h:
2261         * lib/xsize.h, tests/test-closein.c, tests/test-des.c:
2262         * tests/test-fclose.c, tests/test-fgetc.c, tests/test-filevercmp.c:
2263         * tests/test-fputc.c, tests/test-fread.c, tests/test-fwrite.c:
2264         * tests/test-gc-arcfour.c, tests/test-gc-arctwo.c, tests/test-gc-des.c:
2265         * tests/test-gc-hmac-md5.c, tests/test-gc-hmac-sha1.c:
2266         * tests/test-gc-md2.c, tests/test-gc-md4.c, tests/test-gc-md5.c:
2267         * tests/test-gc-pbkdf2-sha1.c, tests/test-gc-rijndael.c:
2268         * tests/test-gc-sha1.c, tests/test-gc.c, tests/test-getdelim.c:
2269         * tests/test-getline.c, tests/test-getndelim2.c, tests/test-md2.c:
2270         * tests/test-md4.c, tests/test-parse-datetime.c, tests/test-perror.c:
2271         * tests/test-perror2.c, tests/test-pipe.c, tests/test-pipe2.c:
2272         * tests/test-poll.c, tests/test-quotearg-simple.c:
2273         * tests/test-quotearg.c, tests/test-quotearg.h:
2274         * tests/test-round-ieee.c, tests/test-round1.c:
2275         * tests/test-roundf-ieee.c, tests/test-roundf1.c:
2276         * tests/test-roundl-ieee.c, tests/test-roundl.c:
2277         * tests/test-safe-alloc.c, tests/test-sigpipe.c:
2278         * tests/test-spawn-pipe-child.c, tests/test-spawn-pipe-main.c:
2279         * tests/test-strerror.c, tests/test-strerror_r.c:
2280         * tests/test-strsignal.c, tests/test-strverscmp.c:
2281         * tests/test-xmemdup0.c:
2282         Replace FSF snail mail addresses with URLs, as per GNU coding
2283         standards.  See glibc bug
2284         <http://sourceware.org/bugzilla/show_bug.cgi?id=13673>.
2285
2286 2011-12-22  Reuben Thomas  <rrt@sc3d.org>
2287
2288         README-release: capitalize a word and split a line
2289         * top/README-release: Fix punctuation and spacing.
2290
2291 2012-02-08  Akim Demaille  <demaille@gostai.com>
2292
2293         fatal-signal: use C prototypes (with explicit void).
2294         * lib/fatal-signal.c (uninstall_handlers, install_handlers)
2295         (init_fatal_signal_set, block_fatal_signals): Fix signatures.
2296
2297 2012-02-07  Paul Eggert  <eggert@cs.ucla.edu>
2298
2299         regex: spelling fix
2300         * lib/regexec.c: spelling fix
2301
2302         regex: rely on stdint.h for SIZE_MAX
2303         * lib/regex_internal.h (SIZE_MAX): Remove; stdint.h supplies this now.
2304
2305 2012-02-07  Paul Eggert  <eggert@cs.ucla.edu>
2306
2307         regex: merge glibc changes
2308
2309         * lib/regcomp.c (init_dfa): Tighten overflow checks to test
2310         for IDX_MAX too, since IDX_MAX can be much less than SIZE_MAX.
2311         (init_word_char): Work even if bitset words are not exactly 32 or
2312         64 bits wide.  Don't assume there are no padding bits.
2313         * lib/regex.c [_LIBC]: Do not include <config.h>.
2314         [!_LIBC]: Add pragmas to ignore -Wsuggest-attributes=pure
2315         and -Wtype-limits.
2316         * lib/regex.h (__USE_GNU): Renamed from __USE_GNU_REGEX, to avoid
2317         needless disagreement with glibc.  All uses changed.  Define it to
2318         1 only if _GNU_SOURCE, to match glibc.
2319         (_REG_RM_NAME): Remove; no longer needed, since the names in
2320         question are now all protected by __USE_GNU.
2321         (_REG_RE_NAME): Remove; replaced by glibc's __REPB_PREFIX.
2322         (REG_TRANSLATE_TYPE): Remove; replaced by glibc's __RE_TRANSLATE_TYPE.
2323         * lib/regex_internal.h (MIN): New macro.
2324
2325         2012-01-03 Ulrich Drepper <drepper@gmail.com>
2326         * lib/regcomp.c (init_word_char): Optimize regex a bit.
2327
2328         2011-12-30 Jakub Jelinek <jakub@redhat.com>
2329         * lib/regex_internal.c (re_string_fetch_byte_case):
2330         Fix up regcomp/regexec.  The problem is that parse_bracket_symbol
2331         is miscompiled, and it turns out it is because of an incorrect
2332         attribute on re_string_fetch_byte_case.  Unlike
2333         re_string_peek_byte_case, this one is really not pure, it modifies
2334         memory (increments pstr->cur_idx), and with the pure attribute GCC
2335         assumed it doesn't and it cached the presumed value of
2336         regexp->cur_idx in a variable across the
2337          for (;; ++i)
2338            {
2339              if (i >= BRACKET_NAME_BUF_SIZE)
2340                return REG_EBRACK;
2341              if (token->type == OP_OPEN_CHAR_CLASS)
2342                ch = re_string_fetch_byte_case (regexp);
2343              else
2344                ch = re_string_fetch_byte (regexp);
2345              if (re_string_eoi(regexp))
2346                return REG_EBRACK;
2347              if (ch == delim && re_string_peek_byte (regexp, 0) == ']')
2348                break;
2349              elem->opr.name[i] = ch;
2350            }
2351
2352         2011-11-29 Andreas Schwab <schwab@redhat.com>
2353         * lib/regcomp.c (build_equiv_class):
2354         Fix access after end of search string in regex matcher.
2355
2356         2011-11-12 Ulrich Drepper <drepper@redhat.com>
2357         * lib/regex_internal.c, lib/regex_internal.h: Fix warnings in regex.
2358
2359         2011-10-12 Ulrich Drepper <drepper@redhat.com>
2360         * lib/regcomp.c (parse_branch): One more regex memory leak fixed.
2361
2362         2011-10-11 Ulrich Drepper <drepper@redhat.com>
2363         * lib/regcomp.c (parse_branch, parse_sub_exp):
2364         More regex memory leak fixes and tests.
2365         (parse_sub_exp, parse_bracket_exp):
2366         Fix memory leak for some invalid regular expressions.
2367
2368         2011-05-28 Ulrich Drepper <drepper@gmail.com>
2369         * lib/regex_internal.c, lib/regexec.c:
2370         Fix unnecessary overallocation due to incomplete character.  When
2371         incomplete characters are found at the end of a string the code
2372         ran amok and allocated lots of memory.  Stricter limits are now in
2373         place.
2374
2375         2011-05-20 Reuben Thomas <rrt@sc3d.org>
2376         * lib/regex.h: Update documentation.
2377
2378         2011-05-16 Aharon Robbins <arnold@skeeve.com>
2379         * lib/regex.h: Update RE_SYNTAX*_AWK constants.
2380
2381         2010-05-05 Andreas Schwab <schwab@redhat.com>
2382         * lib/regexec.c (find_collation_sequence_value):
2383         Fix lookup of collation sequence value during regexp matching.
2384
2385         2010-01-22 Ulrich Drepper <drepper@redhat.com>
2386         * lib/regex_internal.c (re_dfa_add_node): Extend overflow detection.
2387
2388         2008-01-16 Ulrich Drepper <drepper@redhat.com>
2389         * lib/regex.h: Cleanup namespace.
2390
2391         2007-11-26 Ulrich Drepper <drepper@redhat.com>
2392         * lib/regex.h (REG_ENOSYS): Define REG_ENOSYS also for __USE_XOPEN2K.
2393
2394         2007-08-26 Ulrich Drepper <drepper@redhat.com>
2395         * lib/regex_internal.h: Prevent some declarations and definitions
2396         to be seen when used in tests.
2397
2398         2005-05-06 Ulrich Drepper <drepper@redhat.com>
2399         * lib/regex_internal.h: Include bits/libc-lock.h or define dummy
2400         __libc_lock_* macros if not _LIBC.
2401         (struct re_dfa_t): Add lock.
2402
2403 2012-02-07  Eric Blake  <eblake@redhat.com>
2404
2405         maint.mk: also prohibit lower-case @var@
2406         * top/maint.mk (sc_makefile_at_at_check): Enhance check to cover
2407         lower case, like @top_srcdir@.
2408
2409 2012-02-04  Eric Blake  <eblake@redhat.com>
2410
2411         canonicalize: avoid uninitialized memory use
2412         * lib/canonicalize-lgpl.c (__realpath): Avoid possibility of
2413         random '/' left in dest.
2414         * lib/canonicalize.c (canonicalize_filename_mode): Likewise.
2415
2416 2012-02-04  Bruno Haible  <bruno@clisp.org>
2417
2418         isatty: Fix test failure of ptsname_r on native Windows.
2419         * lib/isatty.c (_isatty_nothrow): Upon exception, return 0, not -1,
2420         and don't set errno.
2421         (isatty): Test first whether fd is valid. Set errno when returning 0.
2422
2423 2012-02-04  Bruno Haible  <bruno@clisp.org>
2424
2425         spawn-pipe tests: Fix a NULL program name in a diagnostic.
2426         * tests/test-spawn-pipe-main.c: Include progname.h.
2427         (main): Invoke set_program_name.
2428         * modules/spawn-pipe-tests (Depends-on): Add progname.
2429
2430         nonblocking-socket tests: Fix a NULL program name in a diagnostic.
2431         * tests/test-nonblocking-socket-main.c: Include progname.h.
2432         (main): Invoke set_program_name.
2433         * modules/nonblocking-socket-tests (Depends-on): Add progname.
2434
2435         nonblocking-pipe tests: Fix a NULL program name in a diagnostic.
2436         * tests/test-nonblocking-pipe-main.c: Include progname.h.
2437         (main): Invoke set_program_name.
2438         * modules/nonblocking-pipe-tests (Depends-on): Add progname.
2439
2440 2012-02-04  Eric Blake  <eblake@redhat.com>
2441
2442         canonicalize-lgpl: fix // handling
2443         * lib/canonicalize-lgpl.c (__realpath): Don't convert /// to //.
2444
2445         canonicalize: fix // handling
2446         * lib/canonicalize.c (canonicalize_filename_mode): Don't convert
2447         /// to //, since only // is special.
2448
2449 2012-02-04  Bruno Haible  <bruno@clisp.org>
2450
2451         ioctl: Fix test failure on native Windows.
2452         * lib/ioctl.c: Include msvc-nothrow.h.
2453         (primary_ioctl): If fd is not a valid handle, set errno to EBADF.
2454
2455 2012-02-04  Bruno Haible  <bruno@clisp.org>
2456
2457         fsync: Avoid test failure on native Windows.
2458         * lib/fsync.c (fsync) [Windows]: Don't fail if the handle is merely
2459         read-only.
2460
2461 2012-02-04  Bruno Haible  <bruno@clisp.org>
2462
2463         sys_select: Avoid syntax error on OpenBSD 5.0.
2464         * lib/sys_select.in.h [OpenBSD]: When /usr/include/pthread.h is
2465         currently being included, just include the system's <sys/select.h>.
2466
2467 2012-02-04  Bruno Haible  <bruno@clisp.org>
2468
2469         sys_select: Avoid syntax error on OpenBSD 5.0.
2470         * lib/sys_select.in.h: Include <signal.h> only after the include_next
2471         <sys/select.h>, not before.
2472         Reported by Jiri B <jirib@devio.us>.
2473
2474 2012-02-04  Bruno Haible  <bruno@clisp.org>
2475
2476         get-rusage-as, get-rusage-data tests: Avoid test failure with gcc-4.7.
2477         * tests/test-get-rusage-as.c (main): Assign the malloc() results to
2478         global variables.
2479         * tests/test-get-rusage-data.c (main): Likewise.
2480         Reported by Jim Meyering.
2481
2482 2012-02-04  Bruno Haible  <bruno@clisp.org>
2483
2484         stdioext: Fix last commit.
2485         * lib/fwritable.c [EPLAN9]: Include <fcntl.h>.
2486
2487 2012-02-03  Bruno Haible  <bruno@clisp.org>
2488
2489         stdioext: Add tentative support for Plan9.
2490         * lib/stdio-impl.h: Include <errno.h>.
2491         * lib/fseterr.c (fseterr) [EPLAN9]: Add conditional code.
2492         * lib/freadable.c (freadable): Likewise.
2493         * lib/fwritable.c (fwritable): Likewise.
2494         * lib/fbufmode.c (fbufmode): Likewise.
2495         * lib/freading.c (freading): Likewise.
2496         * lib/fwriting.c (fwriting): Likewise.
2497         * lib/freadptr.c (freadptr): Likewise.
2498         * lib/freadseek.c (freadptrinc): Likewise.
2499         * lib/freadahead.c (freadahead): Likewise.
2500         * lib/fpurge.c (fpurge): Likewise.
2501         * lib/fseeko.c (rpl_fseeko): Likewise.
2502         * m4/fpending.m4 (gl_PREREQ_FPENDING): Add a variant for Plan9.
2503         Reported by Jens Staal <staal1978@gmail.com>.
2504
2505 2012-02-02  Jim Meyering  <meyering@redhat.com>
2506
2507         file-has-acl: suppress a warning from gcc -Wsuggest-attribute=const
2508         * lib/file-has-acl.c (file_has_acl): This function (for some #ifdefs)
2509         would evoke a new gcc warning.  Given all of the #ifdefs, it is better
2510         not even to try to add the attribute.  Instead, add a pragma to suppress
2511         the suggestion/warning.
2512
2513 2012-01-31  Karl Berry  <karl@gnu.org>
2514
2515         setstate doc: typo.
2516         * doc/posix-functions/setstate.texi (setstate): { not (.
2517
2518 2012-01-31  Bruno Haible  <bruno@clisp.org>
2519
2520         popen: Make more robust on Windows.
2521         * lib/popen.c: On native Windows, use the _popen based code even if
2522         HAVE_POPEN is set.
2523         * doc/posix-functions/popen.texi: Mention necessity of COMSPEC
2524         environment variable on native Windows.
2525
2526 2012-01-30  Bruno Haible  <bruno@clisp.org>
2527
2528         pclose: Fix typo.
2529         * lib/stdio.in.h (pclose): Fix typo in warning message.
2530
2531 2012-01-30  Bruno Haible  <bruno@clisp.org>
2532
2533         doc about getlogin_r, setstate.
2534         * doc/posix-functions/getlogin_r.texi: List the incompatible
2535         declaration problem under "not fixed by gnulib".
2536         * doc/posix-functions/setstate.texi: Mention incompatible declaration
2537         problem on Solaris 11 and other platforms.
2538
2539 2012-01-30  Chuanchang Jia  <chuanchang.jia@gmail.com>  (tiny change)
2540             Bruno Haible  <bruno@clisp.org>
2541
2542         poll tests: Make test more robust.
2543         * tests/test-poll.c: Include macros.h.
2544         (test_accept_first, test_pair, test_socket_pair, test_pipe): Verify
2545         return value of various I/O operations.
2546         * modules/poll-tests (Files): Add tests/macros.h.
2547
2548 2012-01-30  Bruno Haible  <bruno@clisp.org>
2549
2550         sys_stat: Fix support for mingw64 and MSVC.
2551         * lib/sys_stat.in.h (stat) [AIX]: Don't redefine 'stat' if the system
2552         header files already do it.
2553         (stat) [mingw, msvc]: Redefine the symbol to which stat is defined, not
2554         stat itself.
2555         Reported by Marc-André Lureau <marcandre.lureau@redhat.com>.
2556
2557 2012-01-30  Bruno Haible  <bruno@clisp.org>
2558
2559         wcwidth: Work around bug in UTF-8 locale on OpenBSD 5.0.
2560         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Test also wcwidth of U+05B0.
2561         * doc/posix-functions/wcwidth.texi: Mention the OpenBSD 5.0 bug.
2562
2563 2012-01-29  Bruno Haible  <bruno@clisp.org>
2564
2565         quotearg: Fix test failure on MacOS X 10.5.
2566         * tests/test-quotearg-simple.c: Include localcharset.h.
2567         (main): If the locale encoding is not ASCII, bypass the tests of
2568         locale_quoting_style and clocale_quoting_style.
2569         * modules/quotearg-tests (Depends-on): Add 'localcharset'.
2570
2571 2012-01-29  Jim Meyering  <meyering@redhat.com>
2572
2573         maint.mk: sc_prohibit_canonicalize_without_use: avoid false positive
2574         * top/maint.mk (sc_prohibit_canonicalize_without_use): Also
2575         detect uses of canonicalize_file_name.
2576
2577 2012-01-28  Bruno Haible  <bruno@clisp.org>
2578
2579         test-framework-sh: Fix test failure with AIX 7.1 diff.
2580         * tests/init.sh (compare_): Don't use 'diff -u' if it inserts a space
2581         in column 1, like 'diff -c' does.
2582         * tests/test-init.sh (test_compare): Don't repeat the test from init.sh
2583         whether 'diff -u' is used. Instead, test whether the output contains
2584         some '@' character.
2585
2586 2012-01-28  Paul Eggert  <eggert@cs.ucla.edu>
2587
2588         strtoimax: eliminate need for stdint.h, inttypes.h checks
2589         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Don't use
2590         gl_AC_HEADER_STDINT_H or gl_AC_HEADER_INTTYPES_H.  This reduces
2591         the prerequisites for a recently-introduced strtoimax test.
2592         I guess this might cause strtoimax to be replaced when not
2593         strictly necessary on older hosts, but this shouldn't introduce
2594         any bugs and it should make Emacs 'configure' faster on typical
2595         modern hosts.  Problem discovered when importing the latest gnulib
2596         to an Emacs test version.
2597         * modules/strtoimax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4.
2598
2599 2012-01-28  Bruno Haible  <bruno@clisp.org>
2600
2601         sys_time: Override 'struct timeval' on some native Windows platforms.
2602         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Test whether tv_sec
2603         has the right type. Set REPLACE_STRUCT_TIMEVAL if not.
2604         (gl_HEADER_SYS_TIME_H_DEFAULTS): Initialize REPLACE_STRUCT_TIMEVAL.
2605         * lib/sys_time.in.h: Include <winsock2.h> also when 'struct timeval'
2606         needs to be overridden.
2607         (timeval): Override if REPLACE_STRUCT_TIMEVAL is set.
2608         * modules/sys_time (Makefile.am): Substitute REPLACE_STRUCT_TIMEVAL.
2609         * tests/test-sys_select.c: Check that the tv_sec member has the same
2610         size as a 'time_t'.
2611         * tests/test-sys_time.c: Likewise.
2612         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): If REPLACE_STRUCT_TIMEVAL
2613         is set, set also REPLACE_GETTIMEOFDAY.
2614         * lib/gettimeofday.c (gettimeofday): If 'struct timeval' is overridden,
2615         convert the resulting 'struct timeval' before returning.
2616         * lib/select.c: Include <sys/time.h>.
2617         (select, timeval): Undefine at the right place.
2618         * modules/select (Depends-on): Add sys_time.
2619         * doc/posix-headers/sys_time.texi: Mention the problem with tv_sec on
2620         some Windows platforms.
2621         Reported by Marc-André Lureau <marcandre.lureau@redhat.com>.
2622
2623 2012-01-28  Marc-André Lureau  <marcandre.lureau@redhat.com>  (tiny change)
2624
2625         accept4, fcntl, socket modules: Avoid warnings on x86_64 mingw64.
2626         * lib/accept4.c (accept4): Use intptr_t to convert handle pointer to
2627         an integer.
2628         * lib/fcntl.c (dupfd): Likewise.
2629         * lib/w32sock.h (SOCKET_TO_FD): Likewise.
2630
2631 2012-01-28  Bruno Haible  <bruno@clisp.org>
2632
2633         fcntl: Avoid compilation error on native Windows.
2634         * modules/fcntl (Depends-on): Add 'close'.
2635
2636 2012-01-28  Marc-André Lureau  <marcandre.lureau@redhat.com>  (tiny change)
2637
2638         select, poll, isatty: Avoid warnings on x86_64 mingw64.
2639         * lib/select.c (IsConsoleHandle): Use intptr_t to convert handle
2640         pointer to an integer.
2641         * lib/poll.c (IsConsoleHandle): Likewise.
2642         * lib/isatty.c (IsConsoleHandle): Likewise.
2643
2644 2012-01-28  Jim Meyering  <meyering@redhat.com>
2645
2646         doc: clarify README-release
2647         * top/README-release: Clarify: you should make a point to have
2648         the latest stable versions of build tools in your PATH, and the
2649         reference to buildreq is solely for its list of tool names, not
2650         for its minimal-functional version numbers.
2651         Prompted by discussion with Reuben Thomas and Gary V. Vaughan.
2652
2653         maint.mk: use more readable (yet functionally equivalent) quoting
2654         It is common to quote a single quote in a single quoted string like
2655         this:  '...'\''...'.  Unless you know the idiom, that looks like
2656         gibberish, so prefer to double-quote the string when possible.
2657         Then you can use a more readable, lone single quote: "...'..."
2658         * top/maint.mk (sc_cast_of_argument_to_free): Quoting like this
2659         "don't" is more readable than the equivalent 'don'\''t'.
2660         (sc_cast_of_x_alloc_return_value): Likewise.
2661         (sc_cast_of_alloca_return_value): Likewise.
2662         (sc_makefile_path_separator_check): Similar: use ":" in '...',
2663         rather than '\'':'\''.
2664
2665 2012-01-27  Paul Eggert  <eggert@cs.ucla.edu>
2666
2667         stdalign: relax _Alignof and tighten _Alignas test
2668         * m4/stdalign.m4 (gl_STDALIGN_H): Relax the _Alignof test,
2669         as it was too strict: alignof must divide offsetof, but it need
2670         not equal offsetof.  Inspired by Joseph S. Myers's comment
2671         <http://gcc.gnu.org/bugzilla/show_bug.cgi?id=52023#c10>.
2672         Conversely, tighten the _Alignas test a bit, as the resulting
2673         alignment must be exactly 8.
2674
2675 2012-01-27  Bruno Haible  <bruno@clisp.org>
2676
2677         stdalign: Document the last change.
2678         * doc/posix-headers/stdalign.texi: Mention GCC bug 52023.
2679
2680 2012-01-27  Paul Eggert  <eggert@cs.ucla.edu>
2681
2682         stdalign: check that alignof and offsetof are consistent
2683         * m4/stdalign.m4 (gl_STDALIGN_H): Check for GCC bug 52023.
2684         Problem reported for gnulib by Richard W.M. Jones in
2685         <http://lists.gnu.org/archive/html/bug-gnulib/2012-01/msg00340.html>.
2686
2687 2012-01-27  Jim Meyering  <meyering@redhat.com>
2688
2689         update-copyright: accept new option: UPDATE_COPYRIGHT_USE_INTERVALS=2
2690         * build-aux/update-copyright: When UPDATE_COPYRIGHT_USE_INTERVALS=2,
2691         convert a sequence with gaps to the minimal containing range.
2692         For example, convert 2000, 2004-2007, 2009 to 2000-2009.
2693         * tests/test-update-copyright.sh: Test for this.
2694         The FSF confirmed it is ok to do this, assuming there is at
2695         least one significant change per year in the affected range:
2696         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/29554/focus=29860
2697
2698 2012-01-26  Bruno Haible  <bruno@clisp.org>
2699
2700         pipe2: refine doc about thread-safety
2701         * doc/glibc-functions/pipe2.texi: Clarify the extent of the
2702         multithread-safety problem.
2703         * doc/glibc-functions/accept4.texi: Likewise.
2704
2705 2012-01-26  Bruno Haible  <bruno@clisp.org>
2706
2707         posix_spawn_file_actions_addopen: Fix 2012-01-08 commit.
2708         * m4/posix_spawn.m4 (gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN):
2709         In the test program, include <fcntl.h>, for O_RDONLY.
2710
2711 2012-01-26  Eric Blake  <eblake@redhat.com>
2712
2713         pipe2: document lack of thread-safety in replacement
2714         * doc/glibc-functions/pipe2.texi (pipe2): Mention thread safety
2715         issue in replacement.
2716         * doc/glibc-functions/accept4.texi (accept4): Likewise.
2717         Based on a report by Eric Wong.
2718
2719 2012-01-24  Marc-André Lureau  <marcandre.lureau@redhat.com>  (tiny change)
2720             Bruno Haible  <bruno@clisp.org>
2721
2722         malloca: Avoid warnings on x86_64 mingw64.
2723         * lib/malloca.c: Include <stdint.h>.
2724         (mmalloca, freea): Use uintptr_t to convert pointers to integers.
2725         * modules/malloca (Depends-on): Add stdint.
2726         * modules/relocatable-prog-wrapper (Depends-on): Likewise.
2727
2728 2012-01-25  Paul Eggert  <eggert@cs.ucla.edu>
2729
2730         obstack: remove __STDC__ conditionals
2731         * lib/obstack.h: Remove __STDC__ conditionals, as suggested by Joseph
2732         S. Myers in <http://cygwin.com/ml/libc-alpha/2012-01/msg00104.html>.
2733         This leaves lib/localcharset.c, m4/iconv.m4, and a confusing comment in
2734         m4/include_next.m4 as the only gnulib-maintained places that still
2735         refer to __STDC__.
2736
2737 2012-01-24  Bruno Haible  <bruno@clisp.org>
2738
2739         havelib: Modern quoting.
2740         * build-aux/config.rpath: Quote 'like this', not `like this', as per
2741         the recent change to the GNU coding standards.
2742
2743 2012-01-24  Bruno Haible  <bruno@clisp.org>
2744
2745         stdint: Improve support for Android.
2746         * lib/stdint.in.h: Test __ANDROID__, not __BIONIC__.
2747         Reported by Simon Josefsson <simon@josefsson.org>.
2748
2749 2012-01-23  Paul Eggert  <eggert@cs.ucla.edu>
2750
2751         doc: omit trailing empty lines from INSTALL etc.
2752         * doc/Makefile (INSTALL): Omit trailing empty lines.
2753         (INSTALL.ISO, INSTALL.UTF-8): Build from INSTALL, so that these also
2754         omit trailing empty lines.  This simplifies the build procedure.
2755
2756 2012-01-23  Jim Meyering  <meyering@redhat.com>
2757
2758         tests: avoid spurious warnings about gl_sockets_startup
2759         Fedora rawhide's gcc version 4.7.0 20120119 with -Wunused-value
2760         would warn about every use of "gl_sockets_startup (SOCKETS_1_1);"
2761         reporting a "statement with no effect".
2762         * tests/test-accept.c (main): Mark as "(void)".
2763         * tests/test-accept4.c (main): Likewise.
2764         * tests/test-bind.c (main): Likewise.
2765         * tests/test-connect.c (main): Likewise.
2766         * tests/test-getpeername.c (main): Likewise.
2767         * tests/test-getsockname.c (main): Likewise.
2768         * tests/test-getsockopt.c (main): Likewise.
2769         * tests/test-listen.c (main): Likewise.
2770         * tests/test-recv.c (main): Likewise.
2771         * tests/test-recvfrom.c (main): Likewise.
2772         * tests/test-send.c (main): Likewise.
2773         * tests/test-sendto.c (main): Likewise.
2774         * tests/test-setsockopt.c (main): Likewise.
2775         * tests/test-shutdown.c (main): Likewise.
2776
2777 2012-01-21  Bruno Haible  <bruno@clisp.org>
2778
2779         locale-fr.m4: Fix for Android.
2780         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Avoid compilation
2781         failure of the test program on Bionic libc.
2782
2783 2012-01-21  Jim Meyering  <meyering@redhat.com>
2784
2785         bootstrap: fail when bootstrap_post_import_hook fails
2786         Otherwise, it's far too easy to miss diagnostics emitted
2787         between gnulib-tool's output and that of running configure.
2788         * build-aux/bootstrap: Fail when bootstrap_post_import_hook fails.
2789
2790 2012-01-17  Jim Meyering  <meyering@redhat.com>
2791
2792         maint: enable sc_trailing_blank
2793         * build-aux/pmccabe.css: Remove trailing blanks.
2794         * doc/acl-cygwin.txt: Likewise.
2795         * doc/gnu-oids.texi: Likewise
2796         * cfg.mk: Enable sc_trailing_blank.
2797         Exempt build-aux/texinfo.tex and doc/Copyright/assign.future.manual.
2798
2799 2012-01-17  Jim Meyering  <meyering@redhat.com>
2800
2801         maint: enable sc_prohibit_openat_without_use
2802         * cfg.mk: Enable sc_prohibit_openat_without_use.
2803         Exempt lib/selinux-at.c.
2804
2805 2012-01-17  Jim Meyering  <meyering@redhat.com>
2806
2807         maint: enable sc_prohibit_cloexec_without_use
2808         * cfg.mk: Enable sc_prohibit_cloexec_without_use.
2809         * lib/dup-safer-flag.c: Don't include "cloexec.h".  Not needed.
2810
2811 2012-01-17  Jim Meyering  <meyering@redhat.com>
2812
2813         maint: enable sc_prohibit_intprops_without_use
2814         * cfg.mk: Enable sc_prohibit_intprops_without_use
2815         * tests/test-nanosleep.c: Don't include "intprops.h".  Not needed.
2816
2817 2012-01-17  Jim Meyering  <meyering@redhat.com>
2818
2819         maint: enable sc_prohibit_hash_pjw_without_use
2820         * cfg.mk: Enable sc_prohibit_hash_pjw_without_use.
2821         * top/maint.mk (sc_prohibit_hash_pjw_without_use): Adjust regexp
2822         to match any use of \<hash_pjw\>, i.e., not necessarily with a
2823         following " (".
2824
2825 2012-01-17  Jim Meyering  <meyering@redhat.com>
2826
2827         maint: enable double-word-prohibiting rule
2828         * cfg.mk (local-checks-to-skip): Enable sc_prohibit_doubled_word.
2829         Exempt three files.
2830
2831 2012-01-17  Jim Meyering  <meyering@redhat.com>
2832
2833         maint: remove empty lines at EOF, but excluding modules/*
2834         Apply syntax rules at home as well as abroad.  Most changes
2835         were induced by running this:
2836           make srcdir=. _build-aux=build-aux -f top/maint.mk \
2837             sc_prohibit_empty_lines_at_EOF | grep -v modules/ \
2838             | xargs perl -pi -0777 -e 's/\n\n+$/\n/'
2839         * cfg.mk (local-checks-to-skip): Enable sc_prohibit_empty_lines_at_EOF.
2840         Exempt modules/* and two binary files.
2841         Also exempt doc/INSTALL*, per request from Bruno Haible.
2842         * doc/regexprops-generic.texi: *Add* a newline at EOF.  There was none.
2843         * doc/Copyright/assign.translation.manual: Remove empty lines at EOF.
2844         * doc/Copyright/request-assign.future: Likewise.
2845         * doc/Copyright/request-disclaim.changes: Likewise.
2846         * doc/INSTALL: Likewise.
2847         * doc/INSTALL.ISO: Likewise.
2848         * doc/INSTALL.UTF-8: Likewise.
2849         * doc/acl-cygwin.txt: Likewise.
2850         * doc/acl-resources.txt: Likewise.
2851         * doc/fdl-1.2.texi: Likewise.
2852         * doc/fdl-1.3.texi: Likewise.
2853         * doc/fdl.texi: Likewise.
2854         * lib/argp-pin.c: Likewise.
2855         * lib/round.c: Likewise.
2856         * lib/unicase/u16-totitle.c: Likewise.
2857         * lib/unictype/block_test.c: Likewise.
2858         * lib/uninorm/canonical-decomposition.c: Likewise.
2859         * m4/README: Likewise.
2860         * m4/relocatable-lib.m4: Likewise.
2861         * tests/test-isnand-nolibm.c: Likewise.
2862         * tests/test-isnand.c: Likewise.
2863         * tests/uninorm/NormalizationTest.txt: Likewise.
2864
2865 2012-01-17  Jim Meyering  <meyering@redhat.com>
2866
2867         maint: add framework to run syntax-check rules against gnulib sources
2868         * cfg.mk: New file, to disable all currently-failing tests.
2869         We'll enable them one by one, as they are made to pass.
2870         * Makefile (sc_maint): New rule.
2871
2872 2012-01-21  Bruno Haible  <bruno@clisp.org>
2873
2874         stdint: Add support for Android.
2875         * lib/stdint.in.h: When included from Bionic <sys/types.h>, just
2876         include the system's <stdint.h>.
2877         Reported by Simon Josefsson <simon@josefsson.org>.
2878
2879 2012-01-19  Jim Meyering  <meyering@redhat.com>
2880
2881         bootstrap: add bootstrap_post_import_hook
2882         Bison does still need something like the gnulib_mk_hook whose
2883         invocation I had to remove along with slurp in commit 767ccd40.
2884         Technically, we could get along without it, but doing so would
2885         have required living with a warning and a mandatory post-bootstrap
2886         automake rerun.
2887         * build-aux/bootstrap (gnulib_mk_hook): Remove definition, too.
2888         (bootstrap_post_import_hook): New function.
2889         Invoke it after gnulib-tool --import and before autoreconf.
2890
2891 2012-01-18  Jim Meyering  <meyering@redhat.com>
2892
2893         gitlog-to-changelog: don't use "no_"-prefixed variable name
2894         * build-aux/gitlog-to-changelog (main): Use getopt's "!" attribute
2895         to enable both --cluster and --no-cluster.  Change variable name,
2896         s/\$no_cluster/$cluster/, and reverse usage to match.
2897
2898         gitlog-to-changelog: use "||", not "or" in expressions
2899         * build-aux/gitlog-to-changelog (main): Use "||", not "or" in
2900         expressions.
2901
2902 2012-01-17  Joel E. Denny  <joeldenny@joeldenny.org>
2903
2904         gitlog-to-changelog: new option --no-cluster
2905         * build-aux/gitlog-to-changelog: New option --no-cluster, disables
2906         clustering of adjacent commit messages.
2907
2908 2012-01-17  Jim Meyering  <meyering@redhat.com>
2909
2910         maint: spell file systems with two words, not one
2911         * m4/ls-mntd-fs.m4 (MOUNTED_INTERIX_STATVFS): Spell file systems with
2912         two words, not one.
2913
2914 2012-01-16  Jim Meyering  <meyering@redhat.com>
2915
2916         bootstrap: add a FIXME comment to ensure we eventually remove the hack
2917         * build-aux/bootstrap (gnulib_tool_options): Add comment.
2918
2919 2012-01-16  Eric Blake  <eblake@redhat.com>
2920
2921         bootstrap: cater to autoconf 2.59
2922         * build-aux/bootstrap (AUTORECONF): Work even when --no-recursive
2923         is not available.
2924
2925         bootstrap: properly check for libtool
2926         * build-aux/bootstrap (libtoolize): Also run libtool when older
2927         usage is detected.
2928
2929 2012-01-15  Bruno Haible  <bruno@clisp.org>
2930
2931         Improve support for MSVC 9.
2932         * lib/unistd.in.h: Include <io.h> when needed to avoid redefinition
2933         clashes on MSVC.
2934         * lib/fcntl.in.h: Likewise.
2935         * lib/stdlib.in.h: Likewise.
2936         * lib/sys_stat.in.h: Likewise.
2937
2938 2011-01-15  Stefano Lattarini  <stefano.lattarini@gmail.com>
2939
2940         gnupload: we hold the master copy of this script now
2941         For motivation and more information, see:
2942         <http://lists.gnu.org/archive/html/bug-gnulib/2012-01/msg00222.html>
2943         * build-aux/gnupload: Make it clear in the heading comments that the
2944         master copy of this file is maintained by gnulib.  Since we are at
2945         it, bump its copyright year and ...
2946         ($scriptversion): ... the date in its version.
2947         ($usage): Patches and bug reports should be sent to the gnulib list,
2948         not the automake one.
2949         * config/srclist.txt: Don't try to sync 'gnupload' from automake
2950         anymore.
2951
2952 2012-01-15  Bruno Haible  <bruno@clisp.org>
2953
2954         Fix module 'random'.
2955         * m4/stdlib_h.m4 (gl_STDLIB_H): Test whether random, srandom,
2956         initstate, setstate are declared.
2957
2958 2012-01-14  Bruno Haible  <bruno@clisp.org>
2959
2960         Tests for module 'random'.
2961         * modules/random-tests: New file.
2962         * tests/test-random.c: New file, based on tests/test-random_r.c.
2963
2964         New module 'random'.
2965         * lib/stdlib.in.h (random, srandom, initstate, setstate): New
2966         declarations.
2967         * lib/random.c: New file, based on glibc/stdlib/random.c.
2968         * m4/random.m4: New file.
2969         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_RANDOM,
2970         HAVE_RANDOM.
2971         * modules/stdlib (Makefile.am): Substitute GNULIB_RANDOM, HAVE_RANDOM.
2972         * modules/random: New file.
2973         * config/srclist.txt: Add an entry for random.c.
2974         * doc/posix-functions/random.texi: Mention the 'random' module.
2975         * doc/posix-functions/initstate.texi: Likewise.
2976         * doc/posix-functions/setstate.texi: Likewise.
2977         * doc/posix-functions/srandom.texi: Likewise.
2978
2979 2012-01-12  Bruno Haible  <bruno@clisp.org>
2980
2981         random_r: Use common idioms.
2982         * lib/random_r.c: Include <stdlib.h> first.
2983
2984         random_r: Override incompatible API on AIX, OSF/1.
2985         * lib/stdlib.in.h (random_r, srandom_r, initstate_r, setstate_r):
2986         Override the system function if REPLACE_RANDOM_R is 1.
2987         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Require AC_CANONICAL_HOST. On AIX
2988         and OSF/1, set REPLACE_RANDOM_R.
2989         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_RANDOM_R.
2990         * modules/stdlib (Makefile.am): Substitute REPLACE_RANDOM_R.
2991         * modules/random_r (configure.ac): Test REPLACE_RANDOM_R.
2992         * doc/glibc-functions/initstate_r.texi: Mention the AIX, OSF/1 problem.
2993         * doc/glibc-functions/random_r.texi: Likewise.
2994         * doc/glibc-functions/setstate_r.texi: Likewise.
2995
2996         random_r: Support for MSVC 9.
2997         * lib/random_r.c: Include stdint.h, not inttypes.h.
2998
2999 2012-01-12  Eric Blake  <eblake@redhat.com>
3000
3001         inet_ntop: guard extra work by IF_LINT
3002         * lib/inet_ntop.c (inet_ntop6): Mark spurious initialization, for
3003         better code generation when not checking for warnings.
3004         Suggested by Paul Eggert and Jim Meyering.
3005
3006         strptime: fix regression on mingw
3007         * lib/strptime.c (__strptime_internal) [!_LIBC && !HAVE_TM_GMTOFF]:
3008         Fix regression.  Reported by Bruno Haible.
3009
3010 2012-01-11  Reuben Thomas  <rrt@sc3d.org>
3011             Bruno Haible  <bruno@clisp.org>
3012
3013         copy-file: add error-code-returning variant.
3014         * lib/copy-file.h (GL_COPY_ERR_*): New enumeration items.
3015         (qcopy_file_preserving): New declaration.
3016         * lib/copy-file.c (qcopy_file_preserving): Renamed from
3017         copy_file_preserving. Change return type to 'int'. Don't emit an error
3018         message here.
3019         (copy_file_preserving): New function.
3020         * tests/test-copy-file.c: Include <stdlib.h>.
3021         (main): Test qcopy_file_preserving if the environment variable
3022         NO_STDERR_OUTPUT is set.
3023         * tests/test-copy-file-1.sh: Invoke test-copy-file.sh a second time,
3024         with NO_STDERR_OUTPUT
3025         * tests/test-copy-file-2.sh: Likewise.
3026
3027 2012-01-10  Bruno Haible  <bruno@clisp.org>
3028
3029         copy-file: Use 'quote' module consistently.
3030         * lib/copy-file.c (copy_file_preserving): Use quote().
3031
3032         copy-file: Refactor.
3033         * lib/copy-file.c: Include quote.h.
3034         (copy_file_preserving): Call qcopy_acl instead of copy_acl. Emit error
3035         message here.
3036         * modules/copy-file (Depends-on): Add quote.
3037
3038         acl: Export qcopy_acl.
3039         * lib/acl.h (qcopy_acl): New declaration.
3040         * lib/copy-acl.c (qcopy_acl): Make non-static.
3041
3042         acl: Rename a local variable.
3043         * lib/set-mode-acl.c (set_acl): Use same variable name as in copy_acl.
3044
3045         acl: Align return values of copy_acl and qcopy_acl.
3046         * lib/copy-acl.c (copy_acl): Return the same value as qcopy_acl,
3047         maybe < -1.
3048
3049 2012-01-11  Eric Blake  <eblake@redhat.com>
3050
3051         strptime: silence gcc warnings
3052         * lib/strptime.c (__strptime_internal) [!_NL_CURRENT],
3053         [!_LIBC && !HAVE_TM_GMTOFF]: Avoid unused variables.
3054         Reported by Daniel P. Berrange.
3055
3056         inet_ntop: silence gcc warning
3057         * lib/inet_ntop.c (inet_ntop6): Initialize best.base.
3058         Reported by Daniel P. Berrange.
3059
3060 2012-01-11  Dmitry V. Levin  <ldv@altlinux.org>
3061
3062         getloadavg test: skip the test on GNU/Linux without /proc mounted
3063         GNU libc implements getloadavg(3) on Linux by parsing /proc/loadavg
3064         file.  When /proc is not mounted, it always fails with ENOENT.
3065         * tests/test-getloadavg.c (main): Treat ENOENT return code from
3066         getloadavg(3) the same way as ENOSYS and ENOTSUP.
3067
3068 2012-01-10  Bruno Haible  <bruno@clisp.org>
3069
3070         regex: Avoid link error on MSVC 9.
3071         * modules/regex (Depends-on): Add wctype.
3072
3073 2012-01-10  Bruno Haible  <bruno@clisp.org>
3074
3075         doc: Mention --with-tests option.
3076         * gnulib-tool (func_usage): Suggest --with-tests for --test etc.
3077         * doc/gnulib.texi (Extra tests modules): Mention the need to pass
3078         --with-tests.
3079         Reported by Reuben Thomas.
3080
3081 2012-01-10  Reuben Thomas  <rrt@sc3d.org>
3082
3083         users.txt: order package names lexicographically.
3084         * users.txt: Order package names lexicographically.
3085
3086 2012-01-10  Jim Meyering  <meyering@redhat.com>
3087
3088         maint.mk: fix description in comment
3089         * top/maint.mk (require_exactly_one_NL_at_EOF_): Fix comment.
3090
3091         ignore-value: remove deprecated ignore_ptr function
3092         * lib/ignore-value.h (ignore_ptr): Remove deprecated function.
3093         * NEWS: Note this.
3094
3095 2012-01-09  Jim Meyering  <meyering@redhat.com>
3096
3097         test-init.sh: avoid a subshell
3098         * tests/test-init.sh: Remove protective subshell.
3099         Suggested by Bernhard Voelker.  While a subshell is normally
3100         required to protect against older shells (Solaris, FreeBSD) that
3101         warn about a missing program before performing redirection, the
3102         shell-selection tests performed by init.sh probably exclude any
3103         offending shell.
3104
3105 2012-01-08  Bruno Haible  <bruno@clisp.org>
3106
3107         setlocale tests: Avoid test failure on Solaris 11 2011-11.
3108         * tests/test-setlocale2.sh: Use 'env' to set the LC_ALL environment
3109         variable.
3110
3111 2012-01-08  Bruno Haible  <bruno@clisp.org>
3112
3113         posix_spawn_file_actions_addopen: Work around Solaris 11 2011-11 bug.
3114         * m4/spawn_h.m4 (gl_SPAWN_H_DEFAULTS): Initialize
3115         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN.
3116         * m4/posix_spawn.m4 (gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN): New
3117         macro.
3118         * lib/spawn.in.h (posix_spawn_file_actions_addopen): Test
3119         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN, not REPLACE_POSIX_SPAWN.
3120         * lib/spawn_faction_addopen.c: Add workaround implementation if
3121         HAVE_WORKING_POSIX_SPAWN.
3122         * modules/spawn (Makefile): Substitute
3123         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN.
3124         * modules/posix_spawn_file_actions_addopen (configure.ac): Invoke
3125         gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN. Test
3126         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN, not REPLACE_POSIX_SPAWN.
3127         (Depends-on): Update conditions.
3128         * doc/posix-functions/posix_spawn_file_actions_addopen.texi: Mention
3129         the Solaris 11 bug.
3130
3131 2012-01-08  Bruno Haible  <bruno@clisp.org>
3132
3133         posix_spawn_file_actions_adddup2: Work around Solaris 11 2011-11 bug.
3134         * m4/spawn_h.m4 (gl_SPAWN_H_DEFAULTS): Initialize
3135         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2.
3136         * m4/posix_spawn.m4 (gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2): New
3137         macro.
3138         * lib/spawn.in.h (posix_spawn_file_actions_adddup2): Test
3139         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2, not REPLACE_POSIX_SPAWN.
3140         * lib/spawn_faction_adddup2.c: Add workaround implementation if
3141         HAVE_WORKING_POSIX_SPAWN.
3142         * modules/spawn (Makefile): Substitute
3143         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2.
3144         * modules/posix_spawn_file_actions_adddup2 (configure.ac): Invoke
3145         gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2. Test
3146         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2, not REPLACE_POSIX_SPAWN.
3147         (Depends-on): Update conditions.
3148         * doc/posix-functions/posix_spawn_file_actions_adddup2.texi: Mention
3149         the Solaris 11 bug.
3150
3151 2012-01-08  Bruno Haible  <bruno@clisp.org>
3152
3153         posix_spawn_file_actions_addclose: Work around Solaris 11 2011-11 bug.
3154         * m4/spawn_h.m4 (gl_SPAWN_H_DEFAULTS): Initialize
3155         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE.
3156         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): Define
3157         HAVE_WORKING_POSIX_SPAWN.
3158         (gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE): New macro.
3159         * lib/spawn.in.h (posix_spawn_file_actions_addclose): Test
3160         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE, not REPLACE_POSIX_SPAWN.
3161         * lib/spawn_faction_addclose.c: Add workaround implementation if
3162         HAVE_WORKING_POSIX_SPAWN.
3163         * modules/spawn (Makefile): Substitute
3164         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE.
3165         * modules/posix_spawn_file_actions_addclose (configure.ac): Invoke
3166         gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE. Test
3167         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE, not REPLACE_POSIX_SPAWN.
3168         (Depends-on): Update conditions.
3169         * doc/posix-functions/posix_spawn_file_actions_addclose.texi: Mention
3170         the Solaris 11 bug.
3171
3172 2012-01-08  Bruno Haible  <bruno@clisp.org>
3173
3174         doc: Update for Solaris 11 2011-11.
3175         * doc/*/*.texi: Mention Solaris 11 2011-11 where appropriate.
3176         * m4/printf.m4: Update comments.
3177
3178 2012-01-08  Bruno Haible  <bruno@clisp.org>
3179
3180         mktime: Avoid compilation error on Solaris 11.
3181         * lib/mktime.c (WRAPV): Define to 0 on all non-glibc systems.
3182
3183 2012-01-08  Bruno Haible  <bruno@clisp.org>
3184
3185         doc: Small fix.
3186         * doc/posix-headers/nl_types.texi: Correct platforms list.
3187
3188 2012-01-08  Simon Josefsson  <simon@josefsson.org>
3189
3190         Add lgpl-3.0 module.
3191         * MODULES.html.sh (Support for building documentation): Add
3192         lgpl-3.0.
3193         * modules/lgpl-3.0: New file.
3194
3195 2012-01-08  Jim Meyering  <meyering@redhat.com>
3196
3197         select.c: indent with spaces, not TABs
3198         * lib/select.c (windows_poll_handle): Indent with spaces, not TABs.
3199
3200 2012-01-07  Paolo Bonzini  <bonzini@gnu.org>
3201
3202         quotearg: do not use grave accent for left quote
3203         * lib/quotearg.c (gettext_quote): Map "`" to "'" for
3204         locale_quoting_style.
3205         (quotearg_buffer_restyled): Fix example.
3206         * tests/test-quotearg-simple.c (results_g): Adjust test vectors.
3207
3208 2012-01-07  Paolo Bonzini  <bonzini@gnu.org>
3209
3210         quotearg: fall back to Unicode single quotes in UTF-8, GB-18030 locales
3211         Most programs do not have translation catalogs for English and much
3212         less separate catalogs for British and American English.  Drop the
3213         suggestion to translators about these two, and provide it
3214         automatically for Unicode locales.  Like most programs, even those
3215         using American English, we use single quotation marks.  This conflicts
3216         with the American typographic convention, but works better when you
3217         cite the entire error message within double quotes.  It also tries not
3218         to clash with established practice and with what non-gnulib programs
3219         will usually do.
3220         * lib/quotearg.c (gettext_quote): Hard-code U+2018 and U+2019 when
3221         using an UTF-8 or GB-18030 locale.  The list of other locales with
3222         quotes was provided by Bruno Haible.
3223         (quotearg_buffer_restyled): Adjust instructions to translators.
3224         * lib/quotearg.h (locale_quoting_style): Do not put an example in the
3225         text, since this would be wrong when using Unicode.
3226         * modules/quotearg: Depend on c-strcaseeq.
3227
3228 2012-01-07  Paolo Bonzini  <bonzini@gnu.org>
3229
3230         quotearg: fix Wikipedia link
3231         * lib/quotearg.c (quotearg_buffer_restyled): Fix link to Wikipedia.
3232
3233 2012-01-07  Simon Josefsson  <simon@josefsson.org>
3234
3235         Fix for mingw with MSVC9.
3236         * m4/ld-version-script.m4: Check that compiler rejects version
3237         scripts with syntax errors.  Reported by Bruno Haible
3238         <bruno@clisp.org>.
3239
3240 2012-01-06  Bruno Haible  <bruno@clisp.org>
3241
3242         Talk about "native Windows API", not "Woe32".
3243         * lib/accept4.c: Update comments to mention native Windows.
3244         * lib/execute.c: Likewise.
3245         * lib/fatal-signal.c: Likewise.
3246         * lib/localcharset.c: Likewise.
3247         * lib/nanosleep.c: Likewise.
3248         * lib/nl_langinfo.c: Likewise.
3249         * lib/pclose.c: Likewise.
3250         * lib/pipe-filter-gi.c: Likewise.
3251         * lib/pipe-filter-ii.c: Likewise.
3252         * lib/pipe.c: Likewise.
3253         * lib/pipe2.c: Likewise.
3254         * lib/popen.c: Likewise.
3255         * lib/progreloc.c: Likewise.
3256         * lib/relocatable.c: Likewise.
3257         * lib/sigaction.c: Likewise.
3258         * lib/sigprocmask.c: Likewise.
3259         * lib/spawn-pipe.h: Likewise.
3260         * lib/spawn-pipe.c: Likewise.
3261         * lib/spawni.c: Likewise.
3262         * lib/stat-time.h: Likewise.
3263         * lib/w32spawn.h: Likewise.
3264         * tests/test-isatty.c: Likewise.
3265         * lib/config.charset: More comments.
3266         * doc/gnulib-intro.texi: Mention native Windows.
3267         * doc/posix-functions/_Exit_C99.texi: Likewise.
3268         * doc/posix-headers/fcntl.texi: Likewise.
3269
3270 2012-01-06  Guillem Jover  <guillem@hadrons.org>  (tiny change)
3271
3272         argp: Avoid crash if translator uses % characters in a translation.
3273         * lib/argp-parse.c (argp_version_parser): Use a "%s" format string.
3274         Reported by Mats Erik Andersson <gnu@gisladisker.se>.
3275
3276 2012-01-06  Paul Eggert  <eggert@cs.ucla.edu>
3277
3278         doc: C11 and C++11 are now official
3279         * doc/posix-headers/assert.texi, doc/posix-headers/stdalign.texi:
3280         * doc/verify.texi, stdalign.in.h, verify.h, m4/gnulib-common.m4:
3281         * m4/stdalign.m4, modules/assert-h, modules/snippet/_Noreturn:
3282         * modules/stdalign:
3283         Replace references to draft C1X to C11, and to draft C++0X to C++11.
3284
3285 2012-01-06  Bruno Haible  <bruno@clisp.org>
3286
3287         uc-is-grapheme-break tests: Tweak.
3288         * tests/unigbrk/test-uc-is-grapheme-break.c (main): Fix an error
3289         message.
3290
3291 2012-01-06  Bruno Haible  <bruno@clisp.org>
3292
3293         test-init.sh: correct the test for diff -u
3294         * tests/test-init.sh: Also redirect stdout to /dev/null.
3295
3296 2012-01-05  Paul Eggert  <eggert@cs.ucla.edu>
3297
3298         Use ', not `, for quoting output.
3299         * build-aux/announce-gen (usage, sizes, print_news_deltas)
3300         (print_changelog_deltas, get_tool_versions, main program):
3301         * build-aux/git-version-gen:
3302         * build-aux/gitlog-to-changelog (usage, parse_amend_file):
3303         * build-aux/move-if-change (help):
3304         * build-aux/useless-if-before-free (usage, main program):
3305         * check-module (parse_module_file, usage)
3306         (find_included_lib_files, check_module):
3307         * lib/argmatch.c (main) [TEST]:
3308         * lib/argp-help.c (_help):
3309         * lib/getopt1.c (main) [TEST]:
3310         * lib/git-merge-changelog.c (usage):
3311         * lib/xstrtol-error.c (xstrtol_error):
3312         * m4/alloca.m4 (_AC_LIBOBJ_ALLOCA):
3313         * m4/argz.m4 (gl_FUNC_ARGZ):
3314         * m4/bison.m4 (gl_BISON):
3315         * m4/calloc.m4 (gl_FUNC_CALLOC_GNU):
3316         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS):
3317         * m4/flexmember.m4 (AC_C_FLEXIBLE_ARRAY_MEMBER):
3318         * m4/fpending.m4 (gl_PREREQ_FPENDING):
3319         * m4/gc-random.m4 (gl_GC_RANDOM):
3320         * m4/intl.m4 (gt_CHECK_DECL):
3321         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK):
3322         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT)
3323         (AC_TYPE_UNSIGNED_LONG_LONG_INT):
3324         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS):
3325         * m4/lstat.m4 (gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK):
3326         * m4/onceonly.m4 (AC_CHECK_FUNCS_ONCE):
3327         * m4/posixver.m4 (gl_DEFAULT_POSIX2_VERSION):
3328         * tests/test-dirname.c (main):
3329         * tests/test-getpass.c (main):
3330         * tests/test-iconvme.c (main):
3331         * tests/test-parse-datetime.c (LOG):
3332         * tests/test-xstrtoimax.sh:
3333         * tests/test-xstrtol.sh:
3334         * tests/test-xstrtoll.sh:
3335         * tests/test-xstrtoumax.sh:
3336         * tests/unigbrk/test-uc-is-grapheme-break.c (main):
3337         * top/GNUmakefile (abort-due-to-no-makefile):
3338         Quote 'like this', not `like this', as per the recent change to
3339         the GNU coding standards.
3340
3341 2012-01-05  Bruno Haible  <bruno@clisp.org>
3342
3343         strtoimax: Don't force a replacement on systems where intmax_t is int.
3344         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Use a different test if
3345         'intmax_t' is not larger than 'int'.
3346         Reported by Pádraig Brady <P@draigBrady.com>.
3347
3348 2012-01-05  Bruno Haible  <bruno@clisp.org>
3349
3350         doc: Mention NetBSD bugs.
3351         * doc/posix-functions/*printf.texi: Mention a NetBSD 5.1 bug.
3352         * doc/posix-functions/nl_langinfo.texi: Mention another NetBSD 5.1 bug.
3353
3354 2012-01-05  Bruno Haible  <bruno@clisp.org>
3355
3356         strtoumax tests: Enhance tests.
3357         * tests/test-strtoumax.c (main): Add tests for large values.
3358
3359 2012-01-05  Bruno Haible  <bruno@clisp.org>
3360
3361         strtoimax: Work around AIX 5.1 bug.
3362         * lib/inttypes.in.h (strtoimax): Allow overriding the system's
3363         definition.
3364         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Check against the AIX 5.1 bug.
3365         Set HAVE_STRTOIMAX.
3366         * m4/inttypes.m4 (gl_INTTYPES_H_DEFAULTS): Initialize
3367         REPLACE_STRTOIMAX.
3368         * modules/inttypes-incomplete (Makefile.am): Substitute
3369         REPLACE_STRTOIMAX.
3370         * modules/strtoimax (Files): Add m4/stdint_h.m4, m4/inttypes_h.m4.
3371         (configure.ac): Test HAVE_STRTOIMAX, REPLACE_STRTOIMAX.
3372         (Depends-on): Update conditions.
3373         * tests/test-strtoimax.c (main): Add tests for large values.
3374         * doc/posix-functions/strtoimax.texi: Mention the AIX 5.1 bug.
3375
3376 2012-01-05  Bruno Haible  <bruno@clisp.org>
3377
3378         inttypes: Modernize.
3379         * lib/inttypes.in.h (strtoimax, strtoumax): Use the C++ safe idioms.
3380         * modules/inttypes-incomplete (Depends-on): Add snippet/c++defs.
3381         (Makefile.am): Update inttypes.h rule.
3382
3383 2012-01-05  Jim Meyering  <meyering@redhat.com>
3384
3385         init.sh: don't waste a subshell just to redirect stderr
3386         * tests/init.sh: In testing for diff -u and diff -c, use a
3387         stderr-redirecting exec inside `...` rather than a subshell.
3388
3389         test-init.sh: avoid failure on HP-UX 11.00
3390         * tests/test-init.sh: Skip "diff -u"-comparing step when compare
3391         resolves to diff -c or cmp.  Reported by Bruno Haible.
3392
3393 2012-01-05  Bruno Haible  <bruno@clisp.org>
3394
3395         Tests for module 'strtoull'.
3396         * modules/strtoull-tests: New file.
3397         * tests/test-strtoull.c: New file, based on tests/test-strtoumax.c.
3398
3399 2012-01-05  Bruno Haible  <bruno@clisp.org>
3400
3401         Tests for module 'strtoll'.
3402         * modules/strtoll-tests: New file.
3403         * tests/test-strtoll.c: New file, based on tests/test-strtoimax.c.
3404
3405 2012-01-05  Bruno Haible  <bruno@clisp.org>
3406
3407         Tests for module 'strtoul'.
3408         * modules/strtoul-tests: New file.
3409         * tests/test-strtoul.c: New file, based on tests/test-strtoumax.c.
3410
3411 2012-01-05  Bruno Haible  <bruno@clisp.org>
3412
3413         Tests for module 'strtol'.
3414         * modules/strtol-tests: New file.
3415         * tests/test-strtol.c: New file, based on tests/test-strtoimax.c.
3416
3417 2012-01-04  Jim Meyering  <meyering@redhat.com>
3418
3419         test-init.sh: accommodate Solaris 5.10's different diff -u output
3420         * tests/test-init.sh: Also exempt @@ lines from the comparison
3421         of diff output, since Solaris 5.10 and GNU diff formats differ.
3422         Reported by Stefano Lattarini.
3423
3424 2012-01-04  Paul Eggert  <eggert@cs.ucla.edu>
3425
3426         test-posixtm: don't assume signed integer wraparound
3427         * tests/test-posixtm.c (main): Don't assume wraparound semantics
3428         after signed integer overflow.  Inspired by (though it may not
3429         fix) Bruno Haible's bug report in
3430         <http://lists.gnu.org/archive/html/bug-gnulib/2012-01/msg00066.html>.
3431
3432         Spell out "Windows 9x" and "Windows XP".
3433         * lib/poll.c, lib/select.c: In comments, replace "Win9x" with
3434         "Windows 9x" and "WinXP" with "Windows XP".
3435
3436 2012-01-04  Jim Meyering  <meyering@redhat.com>
3437
3438         test-vc-list-files-cvs.sh: remove obsolete comment
3439         * tests/test-vc-list-files-cvs.sh: Remove obsolete comment about
3440         double exit.  Now that's all encapsulated via skip_ and Exit.
3441
3442 2012-01-04  Bruno Haible  <bruno@clisp.org>
3443
3444         Talk about "native Windows API", not "Win32".
3445         * lib/classpath.c: Update comments to mention native Windows.
3446         * lib/csharpexec.c: Likewise.
3447         * lib/dup2.c: Likewise.
3448         * lib/error.c: Likewise.
3449         * lib/fcntl.c: Likewise.
3450         * lib/filename.h: Likewise.
3451         * lib/findprog.c: Likewise.
3452         * lib/get-rusage-as.c: Likewise.
3453         * lib/get-rusage-data.c: Likewise.
3454         * lib/getpagesize.c: Likewise.
3455         * lib/javaexec.c: Likewise.
3456         * lib/msvc-inval.c: Likewise.
3457         * lib/msvc-nothrow.c: Likewise.
3458         * lib/nanosleep.c: Likewise.
3459         * lib/nonblocking.c: Likewise.
3460         * lib/printf-parse.c: Likewise.
3461         * lib/setlocale.c: Likewise.
3462         * lib/sigaction.c: Likewise.
3463         * lib/strerror_r.c: Likewise.
3464         * lib/tmpdir.c: Likewise.
3465         * lib/vasnprintf.c: Likewise.
3466         * lib/w32spawn.h: Likewise.
3467         * lib/waitpid.c: Likewise.
3468         * lib/stdio.in.h (fdopen, fopen, freopen): Likewise.
3469         * m4/locale-ar.m4: Likewise.
3470         * m4/locale-fr.m4: Likewise.
3471         * m4/locale-ja.m4: Likewise.
3472         * m4/locale-tr.m4: Likewise.
3473         * m4/locale-zh.m4: Likewise.
3474         * m4/printf.m4: Likewise.
3475         * tests/test-cloexec.c: Likewise.
3476         * tests/test-copy-acl.sh: Likewise.
3477         * tests/test-copy-file.sh: Likewise.
3478         * tests/test-file-has-acl.sh: Likewise.
3479         * tests/test-set-mode-acl.sh: Likewise.
3480         * tests/test-dup-safer.c: Likewise.
3481         * tests/test-dup2.c: Likewise.
3482         * tests/test-dup3.c: Likewise.
3483         * tests/test-fcntl.c: Likewise.
3484         * tests/test-nonblocking-pipe.h: Likewise.
3485         * tests/test-nonblocking-socket.h: Likewise.
3486         * tests/test-pipe.c: Likewise.
3487         * tests/test-pipe2.c: Likewise.
3488         * tests/test-spawn-pipe-child.c: Likewise.
3489         * doc/acl-resources.txt: Likewise.
3490         * lib/getaddrinfo.c (WINDOWS_NATIVE): Renamed from WIN32_NATIVE.
3491         * tests/test-poll.c (WINDOWS_NATIVE): Likewise.
3492         * tests/test-select.h (WINDOWS_NATIVE): Likewise.
3493         * lib/localcharset.c: Update comments to mention native Windows.
3494         (WINDOWS_NATIVE): Renamed from WIN32_NATIVE.
3495         * lib/localename.c: Likewise.
3496         * lib/progreloc.c: Likewise.
3497         * lib/relocatable.c: Likewise.
3498         * lib/poll.c (WINDOWS_NATIVE): Renamed from WIN32_NATIVE.
3499         (windows_compute_revents): Renamed from win32_compute_revents.
3500         (windows_compute_revents_socket): Renamed from
3501         win32_compute_revents_socket.
3502         * lib/select.c: Update comments to mention native Windows.
3503         (windows_poll_handle): Renamed from win32_poll_handle.
3504         * m4/threadlib.m4: Update comments to mention native Windows.
3505         (gl_THREADLIB_EARLY_BODY, gl_THREADLIB_BODY): Expect
3506         --enable-threads=windows instead of --enable-threads=win32. Set
3507         USE_WINDOWS_THREADS, not USE_WIN32_THREADS.
3508         * lib/glthread/lock.h: Update comments to mention native Windows.
3509         (USE_WINDOWS_THREADS): Renamed from USE_WIN32_THREADS.
3510         * lib/glthread/lock.c (USE_WINDOWS_THREADS): Renamed from
3511         USE_WIN32_THREADS.
3512         * lib/glthread/cond.h (USE_WINDOWS_THREADS): Likewise.
3513         * lib/glthread/cond.c (USE_WINDOWS_THREADS): Likewise.
3514         * lib/glthread/thread.h (USE_WINDOWS_THREADS): Likewise.
3515         * lib/glthread/thread.c (USE_WINDOWS_THREADS): Likewise.
3516         * lib/glthread/tls.h (USE_WINDOWS_THREADS): Likewise.
3517         * lib/glthread/tls.c (USE_WINDOWS_THREADS): Likewise.
3518         * lib/glthread/yield.h (USE_WINDOWS_THREADS): Likewise.
3519         * tests/test-cond.c (USE_WINDOWS_THREADS): Likewise.
3520         * tests/test-thread_create.c (USE_WINDOWS_THREADS): Likewise.
3521         * tests/test-lock.c (USE_WINDOWS_THREADS): Likewise.
3522         (TEST_WINDOWS_THREADS): Renamed from TEST_WIN32_THREADS.
3523         * tests/test-tls.c: Likewise.
3524         Rationale:
3525         Microsoft renamed the "Win32 API" to "Windows API", as it is available
3526         on both 32-bit and 64-bit Windows systems.
3527         But in gnulib, we treat Cygwin like a Unix platform, therefore the main
3528         line of distinction is between "native Windows" on one side and Unix/
3529         POSIX systems on the other side. More details in
3530         <https://lists.gnu.org/archive/html/bug-gnulib/2012-01/msg00027.html>.
3531         Suggested by Paul Eggert.
3532
3533 2012-01-03  Bruno Haible  <bruno@clisp.org>
3534
3535         isatty: Support for MSVC 9.
3536         * doc/posix-functions/isatty.texi: Mention the MSVC problem.
3537         * lib/isatty.c: Include <errno.h>, msvc-inval.h.
3538         (_isatty_nothrow): New function.
3539         (isatty): Use it instead of _isatty.
3540         (IsConsoleHandle): Add comment, from Paolo Bonzini.
3541         * lib/poll.c (IsConsoleHandle): Likewise.
3542         * lib/select.c (IsConsoleHandle): Likewise.
3543         * m4/isatty.m4 (gl_FUNC_ISATTY): Fix comment. Reported by Eli Zaretskii.
3544         (gl_PREREQ_ISATTY): New macro.
3545         * modules/isatty (Depends-on): Add msvc-inval.
3546         (configure.ac): Invoke gl_PREREQ_ISATTY.
3547
3548 2012-01-03  Jim Meyering  <meyering@redhat.com>
3549
3550         maint.mk: remove temporary transition aid from over 1.5 years ago
3551         * top/maint.mk (_prohibit_regexp): Remove definition whose sole
3552         purpose was to aid in the transition (avoiding silent malfunction)
3553         from that old name to the new _sc_search_regexp.  This shim was
3554         added by commit 219c504b.
3555
3556         init.sh: do not try to accommodate compare arguments starting with "-"
3557         * tests/init.sh (compare_dev_null_): Do not try to accommodate
3558         compare arguments that start with "-".  Besides, we do not worry
3559         about this when invoking diff or cmp; why start now with sed?
3560         Using "--" to separate options from argument would trigger sed
3561         failure in at least Solaris 7, HP-UX 11.00, IRIX 6.5, FreeBSD 6.4,
3562         OpenBSD 4.9 and NetBSD 5.1.  Reported by Bruno Haible.
3563
3564 2012-01-02  Bruno Haible  <bruno@clisp.org>
3565
3566         Enhance tests for module 'isatty'.
3567         * modules/isatty-tests (Depends-on): Add pipe-posix.
3568         * tests/test-isatty.c: Include <fcntl.h>.
3569         (DEV_NULL): New macro.
3570         (main): Test the resut of isatty() also on regular files, pipes, and
3571         /dev/null.
3572
3573         New module 'isatty'.
3574         * lib/unistd.in.h (isatty): New declaration.
3575         * lib/isatty.c: New file, based on an idea of
3576         Bastien Roucariès <roucaries.bastien@gmail.com>.
3577         * m4/isatty.m4: New file.
3578         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether isatty is declared.
3579         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_ISATTY, REPLACE_ISATTY.
3580         * modules/unistd (Makefile.am): Substitute GNULIB_ISATTY,
3581         REPLACE_ISATTY.
3582         * modules/isatty: New file.
3583         * doc/posix-functions/isatty.texi: Mention the new module.
3584         Suggested by Paolo Bonzini.
3585
3586 2012-01-02  Bruno Haible  <bruno@clisp.org>
3587
3588         canonicalize: Tweak 2011-12-29 commit.
3589         * lib/canonicalize.c (canonicalize_filename_mode): Fix typo in comment.
3590         * lib/canonicalize.h (canonicalize_filename_mode): Update specification.
3591
3592 2012-01-02  Jim Meyering  <meyering@redhat.com>
3593
3594         gitlog-to-changelog: describe input syntax in --help output
3595         * build-aux/gitlog-to-changelog (usage) [SPECIAL SYNTAX]: New section.
3596
3597         gitlog-to-changelog: fix typo in --help: show backslash before email @
3598         * build-aux/gitlog-to-changelog (usage): An "@" was backslash-escaped
3599         in sources, but not in actual output.
3600
3601 2011-12-30  Jim Meyering  <meyering@redhat.com>
3602
3603         gitlog-to-changelog: don't malfunction when name contains %-directive
3604         * build-aux/gitlog-to-changelog (main): Don't let a %-directive
3605         in a name string cause trouble.  E.g., with a user name of "%s",
3606         gitlog-to-changelog would fail with "Missing argument in sprintf at..."
3607
3608 2011-12-30  Gary V. Vaughan  <gary@gnu.org>
3609
3610         gitlog-to-changelog: Copyright-paperwork-exempt: yes == (tiny change)
3611         * build-aux/gitlog-to-changelog (main): Map the string, at beginning
3612         of line in a git commit log, "Copyright-paperwork-exempt: yes", to
3613         the "  (tiny change)" notation that is appended to the standard
3614         ChangeLog "date  name  email" header line.
3615
3616 2012-01-01  Jim Meyering  <meyering@redhat.com>
3617
3618         test-framework-sh: init.sh: fix "make dist" failure
3619         When using gnulib-tool's --with-tests option and any module that
3620         depends on test-framework-sh, "make dist" would fail due to the
3621         lack of init.sh *in lib/*.  The EXTRA_DIST += init.sh is required
3622         in the gltests directory, and not in the gllib/ directory.
3623         One way to work around that is to move the EXTRA_DIST += init.sh
3624         from the primary module to the -tests one:
3625         * modules/test-framework-sh-tests (EXTRA_DIST): Add init.sh here, ...
3626         * modules/test-framework-sh (Makefile.am): ...not here.
3627         Reported by Tom G. Christensen in
3628         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/29519
3629
3630         version-etc: update copyright year reported by --version
3631         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2012.
3632
3633 2011-12-31  Pádraig Brady  <P@draigBrady.com>
3634
3635         canonicalize: only stat() if required
3636         * lib/canonicalize.c (canonicalize_filename_mode):
3637         Avoid calling l?stat() when both CAN_MISSING,
3638         and CAN_NOLINKS are set, as we neither need
3639         to resolve symlinks or test component existence.
3640
3641 2011-12-31  Paul Eggert  <eggert@cs.ucla.edu>
3642
3643         doc: cover st_ino issues once; add OpenVMS etc.
3644         * doc/posix-functions/stat.texi (stat):
3645         * doc/posix-functions/lstat.texi (lstat):
3646         * doc/posix-functions/fstatat.texi (fstatat):
3647         * doc/posix-functions/fstat.texi (fstat):
3648         Move general 'struct stat' stuff to sys_stat.texi,
3649         leaving behind a pointer.
3650         * doc/posix-headers/sys_stat.texi (sys/stat.h):
3651         Merge duplicate info about 'struct stat' problems into here.
3652         Mention issues with OpenVMS, GNU/Linux NFS, NetApp, ClearCase,
3653         and suggest partial workarounds.
3654
3655         same-inode: port to OpenVMS
3656         * lib/same-inode.h (SAME_INODE): Port to OpenVMS by checking all
3657         three st_ino values.
3658
3659 2011-12-30  Pádraig Brady  <P@draigBrady.com>
3660
3661         canonicalize: fix references to stat() and lstat()
3662         * lib/canonicalize.c (canonicalize_filename_mode):
3663         Ensure references always resolve to a replacement
3664         function if required (even via a macro).
3665
3666 2011-12-30  Jim Meyering  <meyering@redhat.com>
3667
3668         gitlog-to-changelog: remove a little duplication
3669         * build-aux/gitlog-to-changelog (main): Grep @lines once,
3670         rather than twice.
3671
3672 2011-12-29  Pádraig Brady  <P@draigBrady.com>
3673
3674         canonicalize: add support for not resolving symlinks
3675         * lib/canonicalize.h: Add the CAN_NOLINKS flag to
3676         indicate we don't want to follow symlinks.  Also
3677         provide CAN_MODE_MASK to aid setting these existing
3678         mutually exclusive values.
3679         * lib/canonicalize.c (canonicalize_filename_mode):
3680         Extract the flags from can_mode parameter, which
3681         are currently just used to select between stat()
3682         and lstat().  Also ensure that mutually exclusive
3683         values are flagged immediately as invalid.
3684         * tests/test-canonicalize.c: Verify symlinks are
3685         not followed, and that invalid flag combinations
3686         are diagnosed.
3687
3688 2011-12-25  Jim Meyering  <meyering@redhat.com>
3689
3690         gitlog-to-changelog: do not clump multi-paragraph entries
3691         Identical header lines (date,name,email+coauthors) are suppressed,
3692         thus putting all entries with those same characteristics under
3693         a single header.  However, when a log entry consists of two or
3694         more paragraphs, it may not be clear where it starts and ends.
3695         This change makes it so that such an entry is always separated
3696         from others by a header line, even when that header would
3697         otherwise be suppressed.
3698         * build-aux/gitlog-to-changelog: Implement the above.
3699         Inspired by a related request from Stefano Lattarini in
3700         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/29456
3701
3702 2011-12-25  Paul Eggert  <eggert@cs.ucla.edu>
3703
3704         announce-gen: fix `cmd' typo in diagnostic
3705         * build-aux/announce-gen (print_changelog_deltas): Fix typo in
3706         diagnostic: a missing '$' meant that the command was not output.
3707
3708 2011-12-23  Jim Meyering  <meyering@redhat.com>
3709
3710         test-framework-sh: distribute init.sh
3711         * modules/test-framework-sh (EXTRA_DIST): Append init.sh.
3712         Otherwise, "make -C gnulib-tests check" (at least in grep) would
3713         fail due to the lack of init.sh.
3714
3715         maint: remove explicit Files: tests/init.sh; depend on test-framework-sh
3716         * modules/atexit-tests: Rather than listing tests/init.sh,
3717         now that there's a module for it, simply depend on that new module.
3718         * modules/closein-tests: Likewise.
3719         * modules/exclude-tests: Likewise.
3720         * modules/getcwd-tests: Likewise.
3721         * modules/perror-tests: Likewise.
3722         * modules/pread-tests: Likewise.
3723         * modules/pwrite-tests: Likewise.
3724         * modules/vc-list-files-tests: Likewise.
3725         * modules/verify-tests: Likewise.
3726         * modules/xalloc-die-tests: Likewise.
3727         * modules/xstrtoimax-tests: Likewise.
3728         * modules/xstrtol-tests: Likewise.
3729         * modules/xstrtoll-tests: Likewise.
3730         * modules/xstrtoumax-tests: Likewise.
3731         * modules/yesno-tests: Likewise.
3732
3733 2011-12-22  Jim Meyering  <meyering@redhat.com>
3734
3735         test-framework-sh: add minimal tests of init.sh's compare function
3736         * modules/test-framework-sh-tests: New file.
3737         * tests/test-init.sh: New file.
3738
3739         test-framework-sh: new module
3740         * modules/test-framework-sh: New file.
3741         * MODULES.html.sh (Support for maintaining and releasing projects):
3742         List it.
3743
3744         init.sh: do not emit simulated diff output to stderr
3745         * tests/init.sh (compare_dev_null_): Print to stdout, not stderr.
3746
3747 2011-12-22  Reuben Thomas  <rrt@sc3d.org>
3748
3749         .gitignore: ignore gnulib.dvi and regex.info
3750         * doc/.gitignore:add gnulib.dvi and regex.info
3751
3752 2011-12-22  Jim Meyering  <meyering@redhat.com>
3753
3754         init.sh: correct previous change
3755         * tests/init.sh (compare): My previous change was wrong.
3756         Don't clobber "$?".  Spotted by Stefano Lattarini and Pádraig Brady.
3757
3758         init.sh: avoid unwarranted test failure when using "set -e"
3759         * tests/init.sh (compare): Ignore nonzero exit from compare_dev_null_.
3760         Otherwise, in a test script that uses "set -e" (like many in vc-dwim)
3761         a use like "compare exp out" would get evoke an unconditional failure.
3762
3763 2011-12-21  Alfred M. Szmidt  <ams@gnu.org>
3764
3765         bootstrap: fix it to honor $ACLOCAL_FLAGS once again
3766         The 2011-12-17 change, commit 767ccd40, replaced a manual invocation
3767         of aclocal that used explicit $ACLOCAL_FLAGS with an invocation of
3768         autoreconf that did not.
3769         * build-aux/bootstrap: Use $ACLOCAL_FLAGS when invoking autoreconf.
3770         Reported by Mats Erik Andersson <gnu@gisladisker.se>.
3771
3772 2011-12-17  Jim Meyering  <meyering@redhat.com>
3773
3774         bootstrap: remove some now-unneeded code
3775         This script arose back when gnulib-tool was young.
3776         Since then, it has seen improvements that render much of this
3777         script unnecessary.  In particular, it can now make symlinks
3778         to the files it uses.  Also, I no longer see as much value in
3779         marking files as read-only via comments.
3780         If you relied on the symlink-creation feature of the preceding
3781         version of this script, you can get most of that functionality
3782         by adding the --symlink option to the definition of
3783         gnulib_tool_option_extras in your bootstrap.conf file.
3784         * build-aux/bootstrap (AUTOPOINT, AUTORECONF): Factor out definitions.
3785         Run autopoint and libtoolize *before* gnulib-tool.
3786         After it, run an abbreviated autoreconf, rather than a loop around
3787         all tools.
3788         (slirp, bt_mark_as_generated): Remove functions.
3789
3790 2011-12-18  Paul Eggert  <eggert@cs.ucla.edu>
3791
3792         ftoastr: fix typo
3793         * lib/ftoastr.h: Fix misspelling in comment.
3794
3795 2011-12-18  Reuben Thomas  <rrt@sc3d.org>
3796
3797         * top/README-release: fix punctuation.
3798
3799 2011-12-17  Jim Meyering  <meyering@redhat.com>
3800
3801         bootstrap: correct the recent buildreq change
3802         The 2011-12-07 commit, 39f5f1e4, omitted some '*'s, and thus
3803         had no effect.
3804         * build-aux/bootstrap (buildreq): Bracket each search term with
3805         "*...*", so that the shell "case" statement works as intended.
3806         Add comments.
3807
3808 2011-12-17  Bernhard Voelker  <mail@bernhard-voelker.de>
3809
3810         build: let bootstrap resort to wget when downloading .po files
3811         * build-aux/bootstrap (download_po_files): Fallback to wget when
3812         downloading the .po files via rsync fails.  This is necessary to
3813         bootstrap from behind a strict firewall.
3814
3815 2011-12-15  Paul Eggert  <eggert@cs.ucla.edu>
3816
3817         stdint: don't assume C++11 when compiling with g++
3818         Problem reported for glibc 2.14 and g++ by Alexander V. Lukyanov in
3819         <http://lists.gnu.org/archive/html/bug-gnulib/2011-12/msg00099.html>.
3820         * m4/stdint.m4 (gl_STDINT_H): Don't go to extra work to make it
3821         work also in C++ before C++11, as that improperly inhibits
3822         generating a substitute stdint.h for that case.
3823
3824 2011-12-15  Paul Eggert  <eggert@cs.ucla.edu>
3825
3826         alloca: protect comment from gnulib-tool
3827         * lib/alloca.c: Change "GCC version 2" to "GCC 2" in comment, so
3828         that gnulib-tool doesn't think it's a license, and munge it to
3829         say "GCC version 3".
3830
3831 2011-12-15  Ludovic Courtès  <ludo@gnu.org>  (tiny change)
3832
3833         localcharset: Use an absolute path in TESTS_ENVIRONMENT.
3834         * modules/localcharset (LOCALCHARSET_TESTS_ENVIRONMENT): Use
3835         $(abs_top_builddir) instead of $(top_builddir).
3836
3837 2011-12-14  Alex Nelson  <ajnelson@cs.ucsc.edu>  (tiny change)
3838
3839         strftime-tests: also test nanoseconds
3840         * tests/test-strftime.c (T): Add a test of %N.
3841
3842 2011-12-13  Paul Eggert  <eggert@cs.ucla.edu>
3843
3844         inttypes, stdint: add C++11 support
3845         C++11 says there's no need to define __STDC_CONSTANT_MACROS etc.
3846         when including inttypes.h and stdint.h.  Support this change to
3847         the standard.
3848         * doc/posix-headers/inttypes.texi (inttypes.h):
3849         * doc/posix-headers/stdint.texi (stdint.h): Document this.
3850         * lib/inttypes.in.h (__STDC_FORMAT_MACROS) [! __cplusplus]:
3851         Define if not defined already, for the benefit of pre-C++11 hosts.
3852         Define the standard format macros (e.g., PRId8) always.
3853         * lib/stdint.in.h (__STDC_CONSTANT_MACROS, __STDC_LIMIT_MACROS):
3854         Likewise, if __cpluspus.  Define the standard constant and limit
3855         macros (e.g., INT8_C, INT8_MAX) always.
3856         * m4/inttypes.m4 (gl_INTTYPES_INCOMPLETE): Do not define
3857         GL_TRIGGER_STDC_LIMIT_MACROS or __STDC_LIMIT_MACROS; no longer needed.
3858         * m4/stdint.m4 (gl_STDINT_H): Update comments about these macros.
3859         * tests/test-inttypes.c (__STDC_LIMIT_MACROS, __STDC_CONSTANT_MACROS)
3860         (__STDC_FORMAT_MACROS): Do not define, since we assume C++11 API now.
3861         * tests/test-stdint.c (__STDC_LIMIT_MACROS, __STDC_CONSTANT_MACROS):
3862         Likewise.
3863
3864 2011-12-12  Paul Eggert  <eggert@cs.ucla.edu>
3865
3866         nonblocking tests: Fix test failure on Linux/PPC.
3867         Suggested by Prerna Saxena in
3868         <http://lists.gnu.org/archive/html/bug-gnulib/2011-12/msg00080.html>.
3869         * tests/test-nonblocking-pipe.h (PIPE_DATA_BLOCK_SIZE) [Linux/PPC64]:
3870         Set to 1100000.
3871
3872 2011-12-12  Jim Meyering  <meyering@redhat.com>
3873
3874         argmatch: don't hard-code `' when listing valid option arguments
3875         * lib/argmatch.c (argmatch_valid): Don't hard-code `%s'.  Instead,
3876         use the quote function to add quotes.  Use fputs rather than
3877         fprintf for the format string with no format directive.
3878
3879 2011-12-07  Eric Blake  <eblake@redhat.com>
3880
3881         bootstrap: detect tools required by gnulib-tool
3882         * build-aux/bootstrap (buildreq): Provide minimum implicit
3883         dependencies.
3884         * DEPENDENCIES: Mention patch as a prereq.
3885
3886 2011-12-04  Bruno Haible  <bruno@clisp.org>
3887
3888         sethostname: Port to Windows platforms.
3889         * lib/sethostname.c: Provide an alternate implementation for Windows
3890         platforms.
3891         * tests/test-sethostname2.c (geteuid): Redefine on Cygwin.
3892         (main): Skip the test if sethostname() fails with EPERM. On Windows
3893         platforms, don't check the result of gethostname().
3894
3895 2011-12-04  Bruno Haible  <bruno@clisp.org>
3896             Jim Meyering  <meyering@redhat.com>
3897
3898         tests: Avoid spurious error message on platforms without mktemp program.
3899         * tests/init.sh (mktempd_): Run mktemp in a subcommand.
3900
3901 2011-12-04  Bruno Haible  <bruno@clisp.org>
3902
3903         sethostname: Fix documentation.
3904         * doc/glibc-functions/sethostname.texi: Move the Solaris problem to the
3905         "not fixed" section.
3906
3907 2011-12-03  Bruno Haible  <bruno@clisp.org>
3908
3909         gnulib-tool: Verify that the License field is present and non-empty.
3910         * gnulib-tool (func_get_license_raw): New function, extracted from
3911         func_get_license.
3912         (func_get_license): Use it. Warn if the module is not a test module and
3913         has no license.
3914         Suggested by Jim Meyering.
3915
3916 2011-12-03  Bruno Haible  <bruno@clisp.org>
3917
3918         sethostname tests: Fix link error on mingw.
3919         * tests/test-sethostname1.c: New file, extracted from
3920         tests/test-sethostname.c.
3921         * tests/test-sethostname2.c: New file, extracted from
3922         tests/test-sethostname.c.
3923         * tests/test-sethostname.c: Remove file.
3924         * modules/sethostname-tests (Files): Add tests/test-sethostname1.c,
3925         tests/test-sethostname2.c. Remove tests/test-sethostname.c.
3926         (Depends-on): Add gethostname.
3927         (Makefile.am): Compile both test-sethostname1 and test-sethostname2.
3928         Link the latter with $(GETHOSTNAME_LIB).
3929
3930         sethostname tests: Fix compilation error on mingw.
3931         * tests/test-sethostname.c: Don't include <sys/types.h>.
3932         (geteuid): Use a dummy value without uid_t.
3933         * modules/sethostname-tests (Depends-on): Remove sys_types.
3934
3935         sethostname tests: Avoid a gcc warning.
3936         * tests/test-sethostname.c (main): Remove an unused variable.
3937
3938         Tweak last commit.
3939         * modules/sethostname-tests (Files): Sort by decreasing importance.
3940         (configure.ac): Check for geteuid.
3941         * tests/test-sethostname.c (main): Emit error messages to stderr. Skip
3942         the test when there's nothing to test. Drop an unnecessary cast.
3943         Improve an error message. Verify that the final sethostname() call
3944         succeeds.
3945
3946 2011-12-01  Ben Walton  <bwalton@artsci.utoronto.ca>
3947
3948         Add a test suite for the sethostname module.
3949         * modules/sethostname-tests: New file.  A test program
3950         for the sethostname module.
3951         * tests/test-sethostname.c: Likewise.
3952
3953 2011-12-03  Bruno Haible  <bruno@clisp.org>
3954
3955         Tweak last commit.
3956         * lib/unistd.in.h (sethostname): Keep declarations in alphabetic order.
3957         Fix preprocessor directives indentation. Fix typos.
3958         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Keep alphabetic order.
3959         * modules/unistd (Makefile): Likewise.
3960
3961 2011-12-01  Ben Walton  <bwalton@artsci.utoronto.ca>
3962
3963         Integrate the sethostname module into unistd.
3964         * lib/unistd.in.h: Integrate the SETHOSTNAME preprocessor handling
3965         into the unistd.h header.
3966         * m4/unistd_h.m4: Setup the autoconf handling for the SETHOSTNAME
3967         preprocessor directives.
3968         * modules/unistd: Setup the Makefile substitutions of the
3969         SETHOSTNAME preprocessor directives.
3970
3971 2011-12-03  Bruno Haible  <bruno@clisp.org>
3972
3973         Tweak last commit.
3974         * lib/sethostname.c: Don't include <string.h>.
3975         (sethostname): No need to copy the argument string to the stack. Don't
3976         call clearerr. Preserve errno when fprintf failed.
3977         * m4/sethostname.m4 (gl_FUNC_SETHOSTNAME): Comment about HOST_NAME_MAX.
3978         Don't invoke AC_REPLACE_FUNCS.
3979         * modules/sethostname (Link): Remove empty section.
3980         * doc/glibc-functions/sethostname.texi: Gnulib does not fix the ENOSYS
3981         failure problem.
3982
3983 2011-12-01  Ben Walton  <bwalton@artsci.utoronto.ca>
3984
3985         New module 'sethostname'.
3986         * lib/sethostname.c (sethostname): New file.  Provide sethostname
3987         for systems that lack it.
3988         * m4/sethostname.m4 (gl_FUNC_SETHOSTNAME): New file.  Detection of
3989         sethostname declaration and function.
3990         * modules/sethostname: New file.  Define the sethostname module.
3991
3992 2011-12-03  Bruno Haible  <bruno@clisp.org>
3993
3994         Tweak last commit.
3995         * m4/gethostname.m4 (gl_PREREQ_HOST_NAME_MAX): Trim blank line.
3996
3997 2011-12-01  Ben Walton  <bwalton@artsci.utoronto.ca>
3998
3999         Split the HOST_NAME_MAX detection into a separate m4 macro.
4000         * m4/gethostname.m4 (gl_PREREQ_HOST_NAME_MAX): Make this a separate
4001         macro so it can be used by the pending sethostname module.
4002
4003 2011-12-03  Bruno Haible  <bruno@clisp.org>
4004
4005         Fix module descriptions syntax.
4006         * modules/argv-iter (License): Fix syntax.
4007         * modules/di-set (License): Likewise.
4008         * modules/ino-map (License): Likewise.
4009         Reported by Stefano Lattarini <stefano.lattarini@gmail.com>.
4010
4011 2011-12-02  Paul Eggert  <eggert@cs.ucla.edu>
4012
4013         stdalign: port to Clang 3.0
4014         Problem reported by Simon Josefsson in
4015         <http://lists.gnu.org/archive/html/bug-gnulib/2011-12/msg00005.html>.
4016         * doc/posix-headers/stdalign.texi (stdalign.h): Mention Clang 3.0,
4017         which has <stdalign.h> but which does not define alignof.
4018         * m4/stdalign.m4 (gl_STDALIGN_H): Check for Clang 3.0's problem.
4019
4020 2011-12-01  Eric Blake  <eblake@redhat.com>
4021
4022         mktempd: silence dd usage
4023         * build-aux/mktempd (rand_bytes): Silence dd.
4024
4025 2011-11-30  Simon Josefsson  <simon@josefsson.org>
4026
4027         manywarnings: Don't mention gcc version in docstring.
4028         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Doc fix.  Suggested by
4029         Jim Meyering <meyering@redhat.com>.
4030
4031 2011-11-30  Jim Meyering  <meyering@redhat.com>
4032
4033         hash: mark a few floating point constants with "f" suffix
4034         * lib/hash.c (DEFAULT_GROWTH_THRESHOLD, DEFAULT_GROWTH_FACTOR)
4035         (DEFAULT_SHRINK_THRESHOLD, DEFAULT_SHRINK_FACTOR): Mark literal
4036         floating point constants with "f", since they're destined to be
4037         saved/used as "float"s.
4038
4039 2011-11-29  Paolo Bonzini  <bonzini@gnu.org>
4040
4041         float tests: Correct and re-enable assertion about LDBL_MIN_EXP.
4042         * tests/test-float.c (test_long_double): Correct and re-enable the
4043         assertion about LDBL_MIN_EXP that was disabled on 2011-08-31.
4044
4045 2011-11-29  Matthew Wala  <wala1@illinois.edu>  (tiny change)
4046
4047         Avoid subtracting two pointers that don't point into the same block.
4048         * lib/argp-help.c (hol_append): Reorder pointer subtractions so that
4049         only pointers into the same memory block are subtracted. We cannot
4050         assume that sizeof (ptrdiff_t) == sizeof (void *).
4051
4052 2011-11-29  Eric Blake  <eblake@redhat.com>
4053
4054         maint.mk: add syntax check for use of compare from init.sh
4055         * top/maint.mk (sc_prohibit_reversed_compare_failure): New rule,
4056         moved here from coreutils.
4057
4058         manywarnings: drop -Wunsuffixed-float-constants
4059         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): C99 does not allow
4060         '1.0D', which is the only way to silence this warning for 'double'.
4061
4062 2011-11-29  Jim Meyering  <meyering@redhat.com>
4063
4064         hash: mark compute_bucket_size with the pure attribute
4065         * lib/hash.c (compute_bucket_size): Use _GL_ATTRIBUTE_PURE.
4066
4067         quotearg, propername: correct pragma guard expression
4068         * lib/quotearg.c: Enable pragma for gcc-4.6 and newer, not 4.3 and newer.
4069         * lib/propername.c: Likewise.  Reported by Bernhard Voelker.
4070
4071 2011-11-28  Jim Meyering  <meyering@redhat.com>
4072
4073         propername: do not mark proper_name with the const attribute
4074         * lib/propername.h (proper_name): Do *not* mark as _GL_ATTRIBUTE_CONST,
4075         since it examines data pointed to by its parameter.
4076         * lib/propername.c (proper_name): Instead, add a pragma to suppress
4077         the suggestion from -Wsuggest-attribute=const.
4078
4079         propername: mark one more function as const
4080         * lib/propername.h (proper_name): Mark as _GL_ATTRIBUTE_CONST.
4081
4082 2011-11-27  Jim Meyering  <meyering@redhat.com>
4083
4084         mark functions with const and pure attributes
4085
4086         Mark functions per suggestions from gcc-4.6 when using these options:
4087         -Wsuggest-attribute=pure -Wsuggest-attribute=const.
4088         Use gnulib's _GL_ATTRIBUTE_PURE and _GL_ATTRIBUTE_CONST macros.
4089         Follow these guidelines: when possible, apply the attribute to
4090         an extern declaration, not to its definition.  Apply it to the
4091         definition only when the definition is static.
4092         * lib/argmatch.h (argmatch, argmatch_to_argument): Mark.
4093         * lib/argv-iter.h (argv_iter_n_args): Likewise.
4094         * lib/base64.h (isbase64): Likewise.
4095         * lib/basename-lgpl.c (last_component, base_len): Likewise.
4096         * lib/c-ctype.h (c_isascii, c_isalnum, c_isalpha): Likewise.
4097         (c_isblank, c_iscntrl, c_isdigit, c_islower, c_isgraph): Likewise.
4098         (c_isprint, c_ispunct, c_isspace, c_isupper, c_isxdigit): Likewise.
4099         (c_tolower, c_toupper): Likewise.
4100         * lib/c-strcase.h (c_strcasecmp, c_strncasecmp): Likewise.
4101         * lib/chdir-long.c (find_non_slash): Likewise.
4102         * lib/dirname.h (base_len, dir_len, last_component): Likewise.
4103         * lib/exclude.h (fnmatch_pattern_has_wildcards): Likewise.
4104         * lib/file-type.h (file_type): Likewise.
4105         * lib/filenamecat-lgpl.c (longest_relative_suffix): Likewise.
4106         * lib/filevercmp.c (verrevcmp): Likewise.
4107         * lib/freadahead.h (freadahead): Likewise.
4108         * lib/fts.c (fts_maxarglen): Likewise.
4109         * lib/hash-pjw.h (hash_pjw): Likewise.
4110         * lib/hash-triple.h (triple_hash_no_name, triple_compare_ino_str):
4111         * lib/hash.c (is_prime, next_prime): Likewise.
4112         * lib/hash.c (hash_get_n_buckets, hash_get_n_buckets_used): Likewise.
4113         (hash_get_n_entries, hash_get_max_bucket_length): Likewise.
4114         (hash_table_ok, hash_get_first, hash_string): Likewise.
4115         (compute_bucket_size): Likewise.
4116         * lib/i-ring.h (i_ring_empty): Likewise.
4117         * lib/isnan.c (isnanl): Likewise.
4118         * lib/math.h (isnanl, rpl_isnanl): Likewise.
4119         * lib/memcasecmp.h (memcasecmp): Likewise.
4120         * lib/memchr2.h (memchr2): Likewise.
4121         * lib/memcmp2.h (memcmp2): Likewise.
4122         * lib/parse-datetime.y (lookup_zone): Likewise.
4123         * lib/sockets.h (gl_sockets_startup, gl_sockets_cleanup)
4124         [!WINDOWS_SOCKETS]: Likewise.
4125         * lib/strnlen1.h (strnlen1): Likewise.
4126         * lib/uniwidth.in.h (uc_width): Likewise.
4127         * lib/quotearg.c: Add pragma to avoid unwarranted suggestion from
4128         gcc's -Wsuggest-attribute=pure for quoting_options_from_style.
4129         (quoting_options_from_style): Add a comment.
4130         * lib/propername.h (proper_name): Add a comment.
4131
4132 2011-11-27  Bruno Haible  <bruno@clisp.org>
4133
4134         Remove unused macros from !_LIBC code in glibc-borrowed files.
4135         * lib/fnmatch.c (STRCOLL): Remove macro.
4136         * lib/fnmatch_loop.c (STRCOLL): Remove undef.
4137         * lib/glob.c (__stat, __readdir64): Remove macros.
4138         * lib/tempname.c (__open64, __xstat64): Remove macros.
4139         Suggested by Paul Eggert.
4140
4141 2011-11-27  Bruno Haible  <bruno@clisp.org>
4142
4143         getcwd: Fix link error on MSVC 9.
4144         * modules/getcwd (Depends-on): Add readdir, rewinddir.
4145
4146 2011-11-27  Bruno Haible  <bruno@clisp.org>
4147
4148         Don't set REPLACE_FOO to 1 if HAVE_FOO is 0.
4149         * m4/opendir.m4 (gl_FUNC_OPENDIR): Don't set REPLACE_OPENDIR to 1 if
4150         HAVE_OPENDIR is 0.
4151         * m4/closedir.m4 (gl_FUNC_CLOSEDIR): Don't set REPLACE_CLOSEDIR to 1 if
4152         HAVE_CLOSEDIR is 0.
4153         * m4/dup2.m4 (gl_FUNC_DUP2): Don't set REPLACE_DUP2 to 1 if HAVE_DUP2
4154         is 0.
4155         * m4/dup3.m4 (gl_FUNC_DUP3): Update comments.
4156
4157 2011-11-27  Bruno Haible  <bruno@clisp.org>
4158
4159         getcwd: Fix bug from 2011-08-17.
4160         * m4/getcwd.m4 (gl_FUNC_GETCWD): Set REPLACE_GETCWD to 1 only on
4161         platforms that need it.
4162         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): Consider a return
4163         code of 4 to be a failure, not a success. This ensures that
4164         REPLACE_GETCWD becomes 1 on OpenBSD 4.9 and NetBSD 5.1.
4165
4166 2011-11-27  Bruno Haible  <bruno@clisp.org>
4167
4168         binary-io tests: Avoid test failure on mingw when libtool is used.
4169         * tests/test-binary-io.c (main): Don't remove t-bin-out2.tmp here.
4170         Don't verify the size of t-bin-out1.tmp here.
4171         * tests/test-binary-io.sh: Verify it here.
4172         Reported by Simon Josefsson.
4173
4174 2011-11-26  Bruno Haible  <bruno@clisp.org>
4175
4176         Fix conflict between two instantiations of module 'unistd'.
4177         * gnulib-tool (func_emit_autoconf_snippet): Substitute
4178         ${include_guard_prefix} also in the autoconf snippet.
4179         * m4/getopt.m4 (gl_FUNC_GETOPT_POSIX): Don't set GNULIB_UNISTD_H_GETOPT.
4180         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Don't initialize
4181         GNULIB_UNISTD_H_GETOPT.
4182         * modules/getopt-posix (configure.ac): Set the
4183         GNULIB_${gl_include_guard_prefix}_UNISTD_H_GETOPT variable.
4184         * modules/getopt-gnu (configure.ac): Likewise.
4185         * modules/unistd (Makefile.am): Change the substitution value of
4186         GNULIB_UNISTD_H_GETOPT to depend on the include guard prefix.
4187         Reported by Simon Josefsson.
4188
4189 2011-11-25  Bruno Haible  <bruno@clisp.org>
4190
4191         pagealign_alloc: Doc and comments.
4192         * doc/posix-functions/posix_memalign.texi: Refer to the pagealign_alloc
4193         module.
4194         * lib/pagealign_alloc.c (pagealign_alloc): Add comment.
4195
4196 2011-11-25  Jim Meyering  <meyering@redhat.com>
4197
4198         test-update-copyright.sh: avoid false-positive failure
4199         * tests/test-update-copyright.sh: Use $TMP.? (not $TMP.*), to work
4200         around false positive failure on Cygwin/Windows.  The latter was
4201         matching erroneously-created files with names like
4202         update-copyright.test-ex.4.bak.  Reported by Simon Josefsson.
4203
4204 2011-11-25  Simon Josefsson  <simon@josefsson.org>
4205
4206         valgrind-tests.m4: Avoid breakage if valgrind on bash fails.
4207         * m4/valgrind-tests.m4: Check that the parameters that will be
4208         used works, not just a subset of them.  Reported by Bruno Haible
4209         <bruno@clisp.org>.
4210
4211 2011-11-24  Jim Meyering  <meyering@redhat.com>
4212
4213         test-stdalign.c: comment out long double tests
4214         * tests/test-stdalign.c: Don't try to reduce alignment of long double
4215         variables.  That provokes errors like this from gcc-4.7.0 20111124:
4216         error: '_Alignas' specifiers cannot reduce alignment of \
4217         'static_longdouble_alignas'.
4218
4219 2011-11-22  Jim Meyering  <meyering@redhat.com>
4220
4221         init.sh: make "compare /dev/null FILE" output more readable
4222         * tests/init.sh (compare_): Document the preferred order of arguments.
4223         (emit_diff_u_header_): New function.
4224         (compare_dev_null_): Emit a simulated diff, rather than just the
4225         contents of the unexpected file.  Suggestion from Bruno Haible.
4226
4227 2011-11-21  Jim Meyering  <meyering@redhat.com>
4228             Eric Blake  <eblake@redhat.com>
4229
4230         init.sh: work around OSF/1 5.1's mishandling of /dev/null
4231         * tests/init.sh: Make our compare function slightly more portable.
4232         Reported by Bruno Haible in
4233         http://thread.gmane.org/gmane.comp.gnu.grep.bugs/4020
4234
4235 2011-11-21  Simon Josefsson  <simon@josefsson.org>
4236
4237         * m4/gnulib-common.m4 (_Noreturn): Check that _MSC_VER is defined
4238         before using it, in code that ends up in config.h.
4239
4240 2011-11-20  Bruno Haible  <bruno@clisp.org>
4241
4242         getcwd: Work around getcwd bug on AIX 5..7.
4243         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Require
4244         AC_CANONICAL_HOST. Assign exit code 31 to the bug seen on AIX 5.1..7.1.
4245         Use a different value for gl_cv_func_getcwd_path_max. Move the
4246         definition of HAVE_PARTLY_WORKING_GETCWD from here...
4247         * m4/getcwd.m4 (gl_FUNC_GETCWD): ... to here. Invoke
4248         gl_FUNC_GETCWD_PATH_MAX also when $gl_cv_func_getcwd_null is 'no'.
4249         Define HAVE_MINIMALLY_WORKING_GETCWD.
4250         * lib/getcwd.c (__getcwd): Don't use the system's getcwd on platforms
4251         where it is not even minimally working, that is, on AIX.
4252         * tests/test-getcwd.c (test_long_name): Distinguish the same cases as
4253         m4/getcwd-path-max.m4.
4254         (main): Update exit code computation.
4255         * doc/posix-functions/getcwd.texi: Mention list of platforms where
4256         getcwd does not handle long file names.
4257
4258 2011-11-20  Bruno Haible  <bruno@clisp.org>
4259
4260         getcwd: Fix bug from 2009-09-10.
4261         * m4/getcwd.m4 (gl_FUNC_GETCWD): Treat "guessing yes" like "yes", not
4262         like "no".
4263
4264 2011-11-20  Simon Josefsson  <simon@josefsson.org>
4265
4266         * m4/manywarnings.m4: Add more warnings from gcc 4.6.2.
4267
4268 2011-11-20  Bruno Haible  <bruno@clisp.org>
4269
4270         fma tests: Avoid shadowing local variables.
4271         * tests/test-fma2.h (test_function): Reduce scope of x, y, z, result,
4272         expected.
4273
4274 2011-11-20  Bruno Haible  <bruno@clisp.org>
4275
4276         copysignf tests: Fix.
4277         * tests/test-copysignf.c: Fix signature check.
4278
4279 2011-11-20  Bruno Haible  <bruno@clisp.org>
4280
4281         fma: Remove unused code.
4282         * lib/fma.c (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): Remove
4283         unused macros.
4284
4285 2011-11-20  Bruno Haible  <bruno@clisp.org>
4286
4287         sethostname: Fix doc about AIX.
4288         * doc/glibc-functions/sethostname.texi: Drop mention that AIX 5.1 lacks
4289         sethostname; it has it.
4290
4291         sethostname: Mention more portability problems.
4292         * doc/glibc-functions/sethostname.texi: Mention the missing declaration
4293         problem.
4294         Reported by Ben Walton <bwalton@artsci.utoronto.ca>.
4295
4296 2011-11-19  Bruno Haible  <bruno@clisp.org>
4297
4298         Depend on module fcntl-h when AT_FDCWD is used.
4299         * modules/utimens (Depends-on): Add fcntl-h.
4300         * modules/areadlinkat (Depends-on): Likewise.
4301         * modules/areadlinkat-with-size (Depends-on): Likewise.
4302         * modules/faccessat (Depends-on): Likewise.
4303         * modules/fchmodat (Depends-on): Likewise.
4304         * modules/fchownat (Depends-on): Likewise.
4305         * modules/getcwd (Depends-on): Likewise.
4306         * modules/mkdirat (Depends-on): Likewise.
4307         * modules/mkfifoat (Depends-on): Likewise.
4308         * modules/readlinkat (Depends-on): Likewise.
4309         * modules/symlinkat (Depends-on): Likewise.
4310         * modules/dup2-tests (Depends-on): Likewise.
4311         * modules/fdutimensat-tests (Depends-on): Likewise.
4312         * modules/futimens-tests (Depends-on): Likewise.
4313
4314 2011-11-19  Bruno Haible  <bruno@clisp.org>
4315
4316         euidaccess: Update a comment.
4317         * lib/euidaccess.c: Update comment about platforms with faccessat.
4318
4319 2011-11-19  Bruno Haible  <bruno@clisp.org>
4320
4321         openat: Fix file list.
4322         * modules/openat (Files): Remove lib/at-func.c.
4323
4324 2011-11-19  Bruno Haible  <bruno@clisp.org>
4325
4326         fstatat: Simplify.
4327         * lib/fstatat.c (AT_FUNC_NAME): Define as fstatat. On platforms where
4328         gnulib should define rpl_fstatat, there is a
4329         "#define fstatat rpl_fstatat" in <sys/stat.h>.
4330
4331 2011-11-19  Bruno Haible  <bruno@clisp.org>
4332
4333         Ensure 'inline' can be used in tests/test-utimens-common.h.
4334         * modules/fdutimensat-tests (configure.ac): Require AC_C_INLINE.
4335         * modules/futimens-tests (configure.ac): Likewise.
4336         * modules/utimens-tests (configure.ac): Likewise.
4337         * modules/utimensat-tests (configure.ac): Likewise.
4338
4339 2011-11-19  Simon Josefsson  <simon@josefsson.org>
4340
4341         * lib/hash.c (hash_insert): Use hash_insert_if_absent,
4342         not hash_insert0.
4343         (hash_insert_if_absent): Doc fix.
4344
4345 2011-11-19  Simon Josefsson  <simon@josefsson.org>
4346
4347         * m4/readline.m4 (gl_FUNC_READLINE): Check for readline/history.h.
4348
4349 2011-11-18  Paul Eggert  <eggert@cs.ucla.edu>
4350
4351         test-getcwd: disambiguate exit status
4352         * tests/test-getcwd.c (test_long_name): Return 0..7.
4353         (main): Exit with an unambiguous exit status.  The old
4354         code yielded a mysterious mixture of two failure codes.
4355
4356         fstatat: fix configuration bug on mingw, OpenBSD 4, Solaris 8
4357         * lib/fstatat.c (AT_FUNC_NAME): Use HAVE_FSTAT, not
4358         HAVE_WORKING_FSTATAT_ZERO_FLAG, to decide whether to define
4359         rpl_fstatat or fstatat.  This should fix the other problem
4360         reported by Kai Habel in
4361         <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00237.html>.
4362         A similar problem was reported for OpenBSD 4.6 by Mats Erik Andersson
4363         <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00239.html>
4364         and I reproduced it on a Solaris 8 host we still have in production.
4365
4366 2011-11-18  Jim Meyering  <meyering@redhat.com>
4367
4368         hash: deprecate poorly-named hash_insert0: use hash_insert_if_absent
4369         * lib/hash.c (hash_insert_if_absent): Rename from hash_insert0.
4370         Add a sentence to the comment.
4371         (hash_insert0): New function that simply calls hash_insert_if_absent.
4372         * lib/hash.h (hash_insert_if_absent): Declare it.
4373         (hash_insert0): Add deprecation attribute.
4374         (_GL_ATTRIBUTE_DEPRECATED): Define.
4375         * lib/di-set.c (di_set_insert): Use hash_insert_if_absent,
4376         not hash_insert0.
4377         * NEWS: Mention it, even though it's not really an incompatible change.
4378
4379 2011-11-18  Dagobert Michelsen  <dam@opencsw.org>  (tiny change)
4380
4381         openat: avoid compilation failure due to lack of <errno.h> inclusion
4382         * lib/openat.c: Include <errno.h>.
4383
4384 2011-11-17  Paul Eggert  <eggert@cs.ucla.edu>
4385
4386         * modules/getcwd (Depends-on): Add fdopendir.
4387         This fixes one of the two problems reported by Kai Habel in
4388         <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00237.html>.
4389
4390         modules/crypto/gc-*: simplify dependencies and fix stdalign.h bug
4391         stdalign problem reported by Ian Beckwith in
4392         <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00238.html>.
4393         * modules/crypto/gc-arcfour (Depends-on):
4394         Depend conditionally on crypto/arcfour.
4395         * modules/crypto/gc-arctwo (Depends-on):
4396         Depend conditionally on crypto/arctwo.
4397         * modules/crypto/gc-des (Depends-on):
4398         Depend conditionally on crypto/des.
4399         * modules/crypto/gc-hmac-md5 (Depends-on):
4400         Depend conditionally on crypto/hmac-md5.
4401         * modules/crypto/gc-hmac-sha1 (Depends-on):
4402         Depend conditionally on crypto/hmac-sha1.
4403         * modules/crypto/gc-md2 (Depends-on): Remove stdint, minmax.
4404         * modules/crypto/gc-md4 (Depends-on):
4405         Depend conditionally on crypto/md4.
4406         * modules/crypto/gc-md5 (Depends-on):
4407         Depend conditionally on crypto/md5.
4408         * modules/crypto/gc-rijndael (Depends-on):
4409         Depend conditionally on crypto/rijndael.
4410         * modules/crypto/gc-sha1 (Depends-on):
4411         Depend conditionally on crypto/sha1.
4412         * modules/crypto/gc-arcfour:
4413         * modules/crypto/gc-arctwo:
4414         * modules/crypto/gc-des:
4415         * modules/crypto/gc-hmac-md5:
4416         * modules/crypto/gc-hmac-sha1:
4417         * modules/crypto/gc-md2:
4418         * modules/crypto/gc-md4:
4419         * modules/crypto/gc-md5:
4420         * modules/crypto/gc-rijndael:
4421         * modules/crypto/gc-sha1:
4422         (Files, Depends-on, configure.ac): Remove now-unnecessary stuff,
4423         now that the conditional dependencies do the work for us.
4424
4425 2011-11-17  Jim Meyering  <meyering@redhat.com>
4426
4427         tests: factor st_ctime-comparison out of two headers
4428         * tests/test-utimens-common.h (ctime_compare): Define.
4429         * tests/test-futimens.h (test_futimens): Replace open-coded equivalent.
4430         * tests/test-lutimens.h (test_lutimens): Likewise.
4431         * tests/test-utimens.h (test_utimens): Likewise.
4432
4433         test-getcwd: don't leave behind a confdir3/ directory upon interrupt
4434         Invoke the test program via an init.sh-using wrapper.
4435         * tests/test-getcwd.sh: New file.
4436         * modules/getcwd-tests (Files): Add it.
4437         (Makefile.am) [TESTS]: Invoke the shell script wrapper.
4438
4439 2011-11-01  Gary V. Vaughan  <gary@gnu.org>
4440
4441         gitlog-to-changelog: support multi-author commits.
4442         The FSF cares about keeping track of all authors of patches to its
4443         projects, but Git doesn't provide obvious support for multi-author
4444         changesets. Consensus seems to be forming around the use of extra
4445         Signed-off-by inspired lines in the log message formatted as
4446         `Co-authored-by: A U Thor <email@example.com>' for round-tripping
4447         multi-author commits between version control systems.
4448         * gitlog-to-changelog: Extract `Co-authored-by:' lines from the git
4449         log message and output in standard ChangeLog multi-author format.
4450         Reported by Peter Rosin <peda@lysator.liu.se>
4451
4452 2011-11-15  Ben Walton <bwalton@artsci.utoronto.ca>  (tiny change)
4453             Bruno Haible  <bruno@clisp.org>
4454
4455         Fix some modules' file list.
4456         * modules/fstatat (Files): Add m4/lstat.m4.
4457         * modules/openat (Files): Likewise.
4458         * modules/unlinkat (Files): Likewise.
4459
4460 2011-11-15  Gary V. Vaughan  <gary@gnu.org>
4461
4462         maint.mk: fix tight-scope.mk generation in VPATH builds.
4463         * top/maint.mk (tight-scope.mk): Make sure to prefix file
4464         reference with $(srcdir) so that the file is found correctly even
4465         when running `make syntax-check' in a VPATH build.
4466
4467 2011-11-13  Bruno Haible  <bruno@clisp.org>
4468             Jim Meyering  <meyering@redhat.com>
4469
4470         Silence successful tests that use 'compare' on AIX, HP-UX, Solaris.
4471         * tests/init.sh (compare): Remove "No differences encountered" or
4472         synonymous output from the 'diff' program.
4473
4474 2011-11-13  Bruno Haible  <bruno@clisp.org>
4475
4476         Makefile: Tweak indentation.
4477         * Makefile: Use tab as first character in every line that contains rule
4478         commands.
4479
4480 2011-11-13  Bruno Haible  <bruno@clisp.org>
4481
4482         Syntax check for copyright statements.
4483         * check-copyright: New file.
4484         * Makefile (sc_check_copyright): New rule.
4485
4486 2011-11-13  Simon Josefsson  <simon@josefsson.org>
4487
4488         * build-aux/git-version-gen: Add --prefix to configure the tag
4489         match string.
4490
4491 2011-11-13  Simon Josefsson  <simon@josefsson.org>
4492
4493         * build-aux/git-version-gen: Add --help and --version.
4494
4495 2011-11-12  Jim Meyering  <meyering@redhat.com>
4496
4497         revamp the other test-exclude?.sh scripts to use init.sh, too
4498         * tests/test-exclude1.sh: Use init.sh.
4499         * tests/test-exclude2.sh: Likewise.
4500         * tests/test-exclude3.sh: Likewise.
4501         * tests/test-exclude4.sh: Likewise.
4502         * tests/test-exclude5.sh: Likewise.
4503         * tests/test-exclude6.sh: Likewise.
4504         * tests/test-exclude7.sh: Likewise.
4505         * tests/test-exclude8.sh: Likewise.
4506         * modules/exclude-tests (Files): List init.sh.
4507
4508         test-exclude2.sh, test-exclude5.sh: fail if test-exclude fails
4509         These shell scripts ignored failure of the binary test-exclude,
4510         so making the latter return 77 didn't cause them to be skipped.
4511         * tests/test-exclude5.sh: Exit with test-exclude's error status
4512         when that program fails.  Revamp to use init.sh.
4513         * tests/test-exclude2.sh: Likewise.
4514
4515         test-exclude: fix a typo
4516         * tests/test-exclude.c (main): Test for "leading_dir", not "leading-dir".
4517
4518 2011-11-11  Bruno Haible  <bruno@clisp.org>
4519
4520         obstack: Fix compilation error on MSVC 9.
4521         * lib/obstack.c (print_and_abort): Declare with _Noreturn specifier.
4522
4523 2011-11-11  Jim Meyering  <meyering@redhat.com>
4524
4525         test-exclude: skip tests rather than failing on deficient systems
4526         * tests/test-exclude.c (main): Skip tests that use FNM_CASEFOLD
4527         and FNM_LEADING_DIR on systems that lack the definitions.  This affects
4528         at least Solaris 9.  Reported and diagnosed by Dagobert Michelsen in
4529         http://thread.gmane.org/gmane.comp.gnu.grep.bugs/3947/focus=3950
4530
4531 2011-11-10  Bruno Haible  <bruno@clisp.org>
4532
4533         ptsname_r test: Avoid gcc warning on glibc systems.
4534         * tests/test-ptsname_r.c (null_ptr): New function.
4535         (test_errors): Use it.
4536
4537 2011-11-10  Bruno Haible  <bruno@clisp.org>
4538
4539         ptsname_r: Avoid compilation error on OSF/1 5.1.
4540         * lib/stdlib.in.h (ptsname_r): Override if REPLACE_PTSNAME_R is 1.
4541         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_PTSNAME_R.
4542         * m4/ptsname_r.m4 (gl_FUNC_PTSNAME_R): Set REPLACE_PTSNAME_R if the
4543         function is not declared or incompatibly declared.
4544         * modules/stdlib (Makefile.am): Substitute REPLACE_PTSNAME_R.
4545         * modules/ptsname_r (Depends-on, configure.ac): Update.
4546         * doc/glibc-functions/ptsname_r.texi: Mention the OSF/1 problems.
4547
4548 2011-11-10  Bruno Haible  <bruno@clisp.org>
4549
4550         fstatat: Make cross-compilation guess succeed everywhere except on AIX.
4551         * m4/fstatat.m4 (gl_FUNC_FSTATAT): Require AC_CANONICAL_HOST.
4552         When cross-compiling, guess yes on all platforms except AIX.
4553         Reported by Ludovic Courtès <ludo@gnu.org>.
4554
4555 2011-11-09  Bruno Haible  <bruno@clisp.org>
4556
4557         ptsname_r tests: Fix bugs.
4558         * tests/test-ptsname_r.c (test_errors): Change return type to 'void'.
4559         Fix ptsname_r calls. Reduce loop rounds to a reasonable amount.
4560
4561 2011-11-09  Paul Eggert  <eggert@cs.ucla.edu>
4562
4563         fstatat: work with cross-compilation
4564         Problem reported by Ludovic Courtès in
4565         <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00136.html>.
4566         * m4/fstatat.m4 (gl_FUNC_FSTATAT): When cross-compiling, report
4567         "cross-compiling" and assume the bug is present.  Replace
4568         FSTATAT_ZERO_FLAG_BROKEN with HAVE_WORKING_FSTATAT_ZERO_FLAG with
4569         an inverted sense, to be more conservative about our assumptions.
4570         * lib/fstatat.c (rpl_fstatat): Adjust to renamed macro.
4571
4572 2011-11-09  Bruno Haible  <bruno@clisp.org>
4573
4574         Improve MODULES.html output.
4575         * modules/mkfifoat (Description): Use the word "function".
4576         * modules/readlinkat (Description): Likewise.
4577         * modules/symlinkat (Description): Likewise.
4578
4579 2011-11-09  Eric Blake  <eblake@redhat.com>
4580
4581         ptsname_r-tests: new test module
4582         * modules/ptsname_r-tests: New module.
4583         * tests/test-ptsname_r.c: New file.
4584
4585         ptsname_r: new module
4586         * modules/ptsname_r: New module.
4587         * m4/ptsname_r.m4 (gl_FUNC_PTSNAME_R): New file.
4588         * lib/ptsname.c (__ptsname_r): Split...
4589         * lib/ptsname_r.c: ...into new file.
4590         * m4/stdlib_h.m4 (gl_STDLIB_H): Check for decl.
4591         (gl_STDLIB_H_DEFAULTS): Set witness defaults.
4592         * modules/stdlib (Makefile.am): Substitute witnesses.
4593         * lib/stdlib.in.h (ptsname_r): Declare it.
4594         * doc/glibc-functions/ptsname_r.texi (ptsname_r): Document it.
4595         * MODULES.html.sh (Misc): Likewise.
4596         * modules/ptsname (Depends-on): Alter dependency.
4597         * doc/posix-functions/ptsname.texi (ptsname): Mention new module.
4598
4599 2011-11-09  Jim Meyering  <meyering@redhat.com>
4600
4601         announce-gen: be more concise when there's only one URL+tarball
4602         * build-aux/announce-gen (get_tool_versions): When you distribute
4603         only one type of tarball, combine the first two "Here are..."
4604         sections and make the key-checking grammar independent of
4605         how many tarballs there are.
4606
4607 2011-11-09  Eric Blake  <eblake@redhat.com>
4608
4609         openpty: provide a stub on mingw
4610         * lib/pty.in.h (includes): Provide forward declarations.
4611         * lib/openpty.c (openpty) [mingw]: Provide ENOSYS stub.
4612
4613         raise: fix mingw handling of SIGPIPE
4614         * lib/sigprocmask.c (_gl_raise_SIGPIPE): Provide a return value.
4615
4616 2011-11-08  Bruno Haible  <bruno@clisp.org>
4617
4618         More conditional dependencies.
4619         * modules/faccessat (Depends-on): Add conditions.
4620         * modules/fchmodat (Depends-on): Likewise.
4621         * modules/fchownat (Depends-on): Likewise.
4622         * modules/fstatat (Depends-on): Likewise.
4623         * modules/mkfifoat (Depends-on): Likewise.
4624         * modules/readlinkat (Depends-on): Likewise.
4625         * modules/symlinkat (Depends-on): Likewise.
4626         * modules/unlinkat (Depends-on): Likewise.
4627         * modules/utimensat (Depends-on): Likewise.
4628         * modules/mkdirat (Depends-on): Add sys_stat. Add conditions.
4629         * modules/linkat (Depends-on): Refine the conditions.
4630         * modules/renameat (Depends-on): Likewise.
4631
4632 2011-11-08  Bruno Haible  <bruno@clisp.org>
4633
4634         faccessat: Move AC_LIBOBJ invocation to module description.
4635         * m4/faccessat.m4 (gl_PREREQ_FACCESSAT): New macro.
4636         (gl_FUNC_FACESSAT): Don't test for access() here. Move AC_LIBOBJ
4637         invocation from here...
4638         * modules/faccessat (configure.ac): ... to here. Invoke
4639         gl_PREREQ_FACCESSAT.
4640
4641 2011-11-08  Bruno Haible  <bruno@clisp.org>
4642
4643         faccessat: Simplify autoconf macro.
4644         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Don't require gl_FUNC_OPENAT,
4645         gl_FUNC_EUIDACCESS.
4646
4647 2011-11-08  Bruno Haible  <bruno@clisp.org>
4648
4649         renameat: Fix dependencies.
4650         * modules/renameat (Depends-on): Add stdbool.
4651
4652 2011-11-08  Bruno Haible  <bruno@clisp.org>
4653
4654         mkfifoat: Fix module description.
4655         * modules/mkfifoat (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR,
4656         not gl_UNISTD_MODULE_INDICATOR.
4657
4658 2011-11-08  Bruno Haible  <bruno@clisp.org>
4659
4660         fstatat: Remove unused dependency.
4661         * modules/fstatat (Depends-on): Remove fstat.
4662
4663 2011-11-08  Simon Josefsson  <simon@josefsson.org>
4664
4665         GNUmakefile: behave when Makefile is missing.
4666         * top/GNUmakefile: Always initialize _build-aux and _autoreconf.
4667
4668 2011-11-08  Bruno Haible  <bruno@clisp.org>
4669
4670         openat: Conditionalize dependencies.
4671         * lib/openat.c: Reduce the scope of some #includes.
4672         * modules/openat (Depends-on): Add conditions.
4673
4674 2011-11-07  Jim Meyering  <meyering@redhat.com>
4675
4676         maint.mk: extract GPG key ID without using a temporary file
4677         * top/maint.mk (gpg_key_ID): Extract GPG key ID from signed tag, but
4678         without using a temporary file.  Based on a suggestion from Werner Koch
4679         in http://thread.gmane.org/gmane.comp.encryption.gpg.devel/16496
4680
4681 2011-11-07  Eric Blake  <eblake@redhat.com>
4682
4683         grantpt: fix typo
4684         * lib/stdlib.in.h (grantpt): Check correct function.
4685
4686         maint.mk: silence new syntax check
4687         * top/maint.mk (sc_prohibit_dirent_without_use): Add missing @.
4688
4689 2011-11-06  Bruno Haible  <bruno@clisp.org>
4690
4691         Doc about floating-point and math API.
4692         * doc/posix-headers/float.texi: Mention problem with FLT_ROUNDS.
4693         * doc/posix-headers/math.texi: Mention problem with math_errhandling.
4694
4695 2011-11-06  Bruno Haible  <bruno@clisp.org>
4696
4697         stdalign tests: Skip the test when compiled by Sun C.
4698         * tests/test-stdalign.c (main): Skip the test on Sun C.
4699
4700 2011-11-06  Bruno Haible  <bruno@clisp.org>
4701
4702         ansi-c++-opt: Complete the 2011-06-05 change.
4703         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): When a C++ compiler is found but
4704         does not support namespaces, set the variable to "no", not to ":".
4705
4706 2011-11-06  Paul Eggert  <eggert@cs.ucla.edu>
4707
4708         * doc/posix-headers/stdalign.texi (stdalign.h): Mention Sun review ID.
4709
4710 2011-11-06  Bruno Haible  <bruno@clisp.org>
4711
4712         copysignl: Fix result for zero argument on HP-UX 11 with HP C.
4713         * lib/copysignl.c (compute_minus_zerol) [HP-UX]: New function.
4714         (minus_zerol) [HP-UX]: New macro.
4715         (unary_minus) [HP-UX]: New function.
4716         (copysignl) [HP-UX]: Use unary_minus function.
4717
4718 2011-11-06  Bruno Haible  <bruno@clisp.org>
4719
4720         ldexp, ldexpf, ldexpl: Enhance tests.
4721         * tests/test-ldexp.h: New file, combining code from tests/test-ldexp.c
4722         and tests/test-ldexpl.c.
4723         * tests/test-ldexpl.c: (DOUBLE, ISNAN, INFINITY, NAN, L_, MINUS_ZERO,
4724         LDEXP, MIN_EXP, MAX_EXP): New macros.
4725         Include test-ldexp.h.
4726         (main): Just call test_function.
4727         * tests/test-ldexp.c: Include float.h, isnand-nolibm.h, minus-zero.h,
4728         infinity.h, nan.h.
4729         (DOUBLE, ISNAN, INFINITY, NAN, L_, MINUS_ZERO, LDEXP, MIN_EXP,
4730         MAX_EXP): New macros.
4731         Include test-ldexp.h.
4732         (x, y): Remove variables.
4733         (main): Just call test_function.
4734         * tests/test-ldexpf.c: Include float.h, isnanf-nolibm.h, minus-zero.h,
4735         infinity.h, nan.h.
4736         (DOUBLE, ISNAN, INFINITY, NAN, L_, MINUS_ZERO, LDEXP, MIN_EXP,
4737         MAX_EXP): New macros.
4738         Include test-ldexp.h.
4739         (x, y): Remove variables.
4740         (main): Just call test_function.
4741         * modules/ldexpl-tests (Files): Add tests/test-ldexp.h.
4742         * modules/ldexp-tests (Files): Add tests/test-ldexp.h,
4743         tests/minus-zero.h, tests/infinity.h, tests/nan.h.
4744         (Depends-on): Add isnand-nolibm, signbit, float.
4745         * modules/ldexpf-tests (Files): Add tests/test-ldexp.h,
4746         tests/minus-zero.h, tests/infinity.h, tests/nan.h.
4747         (Depends-on): Add isnanf-nolibm, signbit, float.
4748
4749 2011-11-06  Bruno Haible  <bruno@clisp.org>
4750
4751         math tests: Cosmetics.
4752         * tests/test-math-c++.cc: Reorder declarations.
4753
4754 2011-11-05  Bruno Haible  <bruno@clisp.org>
4755
4756         fma*: Simplify test.
4757         * tests/test-fma2.h (FORGIVE_GLIBC_BUG): Remove macro.
4758         (test_function): Remove all if (FORGIVE_GLIBC_BUG) statements.
4759
4760         Tests for module 'fmal'.
4761         * modules/fmal-tests: New file.
4762         * tests/test-fmal1.c: New file.
4763         * tests/test-fmal2.c: New file.
4764
4765         New module 'fmal'.
4766         * lib/math.in.h (fmal): New declaration.
4767         * lib/fmal.c: New file.
4768         * m4/fmal.m4: New file.
4769         * m4/math_h.m4 (gl_MATH_H): Test whethern fmal is declared.
4770         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMAL, HAVE_FMAL, REPLACE_FMAL.
4771         * modules/math (Makefile.am): Substitute GNULIB_FMAL, HAVE_FMAL,
4772         REPLACE_FMAL.
4773         * modules/fmal: New file.
4774         * doc/posix-functions/fmal.texi: Mention the new module and the various
4775         bugs.
4776
4777         Tests for module 'fmaf'.
4778         * modules/fmaf-tests: New file.
4779         * tests/test-fmaf1.c: New file.
4780         * tests/test-fmaf2.c: New file.
4781
4782         New module 'fmaf'.
4783         * lib/math.in.h (fmaf): New declaration.
4784         * lib/fmaf.c: New file.
4785         * m4/fmaf.m4: New file.
4786         * m4/math_h.m4 (gl_MATH_H): Test whethern fmaf is declared.
4787         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMAF, HAVE_FMAF, REPLACE_FMAF.
4788         * modules/math (Makefile.am): Substitute GNULIB_FMAF, HAVE_FMAF,
4789         REPLACE_FMAF.
4790         * modules/fmaf: New file.
4791         * doc/posix-functions/fmaf.texi: Mention the new module and the various
4792         bugs.
4793
4794         Tests for module 'fma'.
4795         * modules/fma-tests: New file.
4796         * tests/test-fma1.c: New file.
4797         * tests/test-fma1.h: New file.
4798         * tests/test-fma2.c: New file.
4799         * tests/test-fma2.h: New file.
4800
4801         New module 'fma'.
4802         * lib/math.in.h (fma): New declaration.
4803         * lib/fma.c: New file.
4804         * m4/fma.m4: New file.
4805         * m4/fegetround.m4: New file.
4806         * m4/math_h.m4 (gl_MATH_H): Test whethern fma is declared.
4807         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMA, HAVE_FMA, REPLACE_FMA.
4808         * modules/math (Makefile.am): Substitute GNULIB_FMA, HAVE_FMA,
4809         REPLACE_FMA.
4810         * modules/fma: New file.
4811         * doc/posix-functions/fma.texi: Mention the new module and the various
4812         bugs.
4813
4814         Extend gl_MATHFUNC.
4815         * m4/mathfunc.m4 (gl_MATHFUNC): Accept an 4th parameter of INCLUDES.
4816         Support 'void' as argument type.
4817         * m4/rint.m4 (gl_FUNC_RINT): Update gl_MATHFUNC invocation.
4818
4819 2011-11-05  Jim Meyering  <meyering@redhat.com>
4820
4821         maint.mk: also prohibit inclusion of dirent.h without use
4822         * top/maint.mk (sc_prohibit_dirent_without_use): New rule.
4823
4824 2011-11-05  Bruno Haible  <bruno@clisp.org>
4825
4826         ldexpl tests: Avoid test failure on MSVC 9.
4827         * tests/test-ldexpl.c (main): Use a temporary variable for the expected
4828         value. Needed in order to enforce the conversion from a value greater
4829         than LDBL_MAX to Infinity.
4830
4831 2011-11-05  Bruno Haible  <bruno@clisp.org>
4832
4833         New modules 'at-internal', 'openat-h', split off from module 'openat'.
4834         * modules/at-internal: New file, extracted from modules/openat.
4835         * modules/openat-h: New file.
4836         * m4/openat.m4 (gl_FUNC_OPENAT): Don't set GNULIB_OPENAT. Don't
4837         invoke gl_PREREQ_OPENAT and gl_MODULE_INDICATOR.
4838         * modules/openat (Description): Add reference to POSIX function.
4839         (Files): Remove lib/openat.h, lib/openat-proc.c.
4840         (Depends-on): Add at-internal, openat-h. Remove fdopendir, gettext-h,
4841         intprops, unistd.
4842         (configure.ac): Remove AC_LIBOBJ of openat-proc. Invoke
4843         gl_PREREQ_OPENAT, gl_MODULE_INDICATOR here. Invoke
4844         gl_FCNTL_MODULE_INDICATOR.
4845         (Include): Remove unistd.h, openat.h.
4846         * modules/areadlinkat (Files): Add lib/at-func.c.
4847         (Depends-on): Add at-internal, dosname, errno, extensions, fchdir,
4848         openat-die, openat-h, save-cwd.
4849         * modules/areadlinkat-with-size (Files): Add lib/at-func.c.
4850         (Depends-on): Add at-internal, dosname, errno, extensions, fchdir,
4851         openat-die, openat-h, save-cwd, unistd.
4852         * modules/faccessat (Files): Add lib/at-func.c, lib/openat-priv.h.
4853         (Depends-on): Add at-internal, dosname, errno, fchdir, openat-die,
4854         openat-h, save-cwd. Remove fcntl-h, openat.
4855         * modules/fchmodat (Files): Remove lib/openat.h.
4856         (Depends-on): Add at-internal, openat-h. Remove dirent, fcntl-h,
4857         openat, stdbool, unistd.
4858         * modules/fchownat (Files): Remove lib/openat.h.
4859         (Depends-on): Add at-internal, openat-h. Remove dirent, fcntl-h,
4860         openat, stdbool, sys_stat.
4861         * modules/fdopendir (Files): Remove lib/openat-priv.h,
4862         lib/openat-proc.c.
4863         (Depends-on): Add at-internal.
4864         (condigure.ac): Remove AC_LIBOBJ of openat-proc.
4865         * modules/fstatat (Files): Remove lib/openat.h.
4866         (Depends-on): Add at-internal, openat-h. Remove dirent, openat,
4867         stdbool, unistd.
4868         * modules/fts (Depends-on): Add openat-h.
4869         * modules/linkat (Depends-on): Add at-internal, openat-h. Remove
4870         openat.
4871         * modules/mkdirat (Files): Remove lib/openat.h.
4872         (Depends-on): Add at-internal, openat-h. Remove dirent, fcntl-h,
4873         openat, stdbool, sys_stat.
4874         * modules/mkfifoat (Files): Add lib/at-func.c.
4875         (Depends-on): Add at-internal, dosname, errno, fchdir, openat-die,
4876         openat-h, save-cwd. Remove fcntl-h, openat.
4877         * modules/openat-die (Depends-on): Add openat-h. Remove openat.
4878         * modules/readlinkat (Files): Add lib/at-func.c.
4879         (Depends-on): Add at-internal, dosname, errno, fchdir, openat-die,
4880         openat-h, save-cwd. Remove fcntl-h, openat.
4881         * modules/renameat (Depends-on): Add at-internal, openat-h. Remove
4882         openat.
4883         * modules/selinux-at (Files): Add lib/at-func.c.
4884         (Depends-on): Add at-internal, dosname, errno, extensions, fchdir,
4885         fcntl-h, openat-die, openat-h, save-cwd, unistd. Remove openat.
4886         * modules/symlinkat (Files): Add lib/at-func.c.
4887         (Depends-on): Add at-internal, dosname, errno, fchdir, openat-die,
4888         openat-h, save-cwd. Remove fcntl-h, openat.
4889         * modules/unlinkat (Files): Remove lib/openat.h.
4890         (Depends-on): Add at-internal, openat-h. Remove dirent, openat,
4891         stdbool.
4892         * modules/utimensat (Files): Add lib/at-func.c.
4893         (Depends-on): Add at-internal, dosname, errno, fchdir, fcntl-h,
4894         openat-die, openat-h, save-cwd.
4895         * modules/fchownat-tests (Depends-on): Add openat-h. Remove openat.
4896         * modules/fdutimensat-tests (Depends-on): Add openat.
4897         * modules/fstatat-tests (Depends-on): Add openat-h.
4898         * modules/readlinkat-tests (Depends-on): Add openat.
4899         * modules/symlinkat-tests (Depends-on): Add openat.
4900
4901 2011-11-05  Bruno Haible  <bruno@clisp.org>
4902
4903         openat: Include <stdbool.h>.
4904         * lib/openat.c: Include <stdbool.h>.
4905
4906 2011-11-04  Bruno Haible  <bruno@clisp.org>
4907
4908         fchownat, renameat, unlinkat: Fix dependencies.
4909         * modules/fchownat (Depends-on): Add fstatat.
4910         * modules/renameat (Depends-on): Likewise.
4911         * modules/unlinkat (Depends-on): Likewise.
4912
4913 2011-11-04  Paul Eggert  <eggert@cs.ucla.edu>
4914
4915         openat: remove direct dependency on dirent
4916         * lib/openat.h: Don't include <dirent.h>; it's no longer needed,
4917         and hasn't been needed ever since fdopendir was split into its own
4918         module on 2009-08-31.
4919         * modules/openat (Depends-on): Remove dirent.
4920
4921 2011-11-04  Bruno Haible  <bruno@clisp.org>
4922
4923         renameat: Optimize code size.
4924         * modules/renameat (configure.ac): Don't compile at-func2.c if
4925         REPLACE_RENAMEAT is 1.
4926
4927 2011-11-04  Bruno Haible  <bruno@clisp.org>
4928
4929         openat tests: Fix file list.
4930         * modules/openat-tests (Files): Add tests/test-open.h.
4931
4932 2011-11-04  Bruno Haible  <bruno@clisp.org>
4933
4934         openat, fchmodat, fchownat, linkat, renameat: Fix dependencies.
4935         * modules/fchmodat (Depends-on): Add openat-die.
4936         * modules/fchownat (Depends-on): Likewise.
4937         * modules/linkat (Depends-on): Likewise.
4938         * modules/renameat (Depends-on): Likewise.
4939         * modules/openat (Depends-on): Add dirent.
4940
4941 2011-11-04  Jim Meyering  <meyering@redhat.com>
4942
4943         at-func*.c: fix comments
4944         * lib/at-func2.c: Correct/improve first-line comment.
4945         * lib/at-func.c: Correct grammar in first-line comment.
4946
4947 2011-11-04  Bruno Haible  <bruno@clisp.org>
4948
4949         New module 'mkdirat', split off from module 'openat'.
4950         * m4/mkdirat.m4: New file. extracted from m4/openat.m4.
4951         * m4/openat.m4 (gl_FUNC_OPENAT): Don't require gl_SYS_STAT_H_DEFAULTS.
4952         Don't test for mkdirat. Don't set GNULIB_MKDIRAT, HAVE_MKDIRAT.
4953         * modules/mkdirat: New file, extracted from modules/openat.
4954         * modules/openat (Files): Remove lib/mkdirat.c.
4955         (Depends-on): Remove mkdir.
4956         (configure.ac): Remove AC_LIBOBJ of mkdirat.
4957         (Include): Remove <sys/stat.h>.
4958         * modules/mkdirat-tests: New file, extracted from modules/openat-tests.
4959         * modules/openat-tests (Files): Remove tests/test-mkdirat.c,
4960         tests/test-mkdir.h.
4961         (Depends-on): Remove ignore-value.
4962         (Makefile.am): Remove rules for test-mkdirat.
4963         * doc/posix-functions/mkdirat.texi: Mention module 'mkdirat' instead
4964         of module 'openat'.
4965         * NEWS: Mention the change.
4966
4967 2011-11-04  Bruno Haible  <bruno@clisp.org>
4968
4969         closedir: Avoid warning on mingw.
4970         * lib/closedir.c: Include <unistd.h>.
4971
4972 2011-11-04  Bruno Haible  <bruno@clisp.org>
4973
4974         New module 'fstatat', split off from module 'openat'.
4975         * lib/openat.h (statat, lstatat): Enable only if GNULIB_FSTATAT is
4976         defined.
4977         * m4/fstatat.m4: New file. extracted from m4/openat.m4.
4978         * m4/openat.m4 (gl_FUNC_OPENAT): Don't set GNULIB_FSTATAT. Don't invoke
4979         gl_FUNC_FSTATAT.
4980         (gl_FUNC_FSTATAT): Moved to m4/fstatat.m4.
4981         * modules/fstatat: New file, extracted from modules/openat.
4982         * modules/openat (Files): Remove lib/fstatat.c.
4983         (Depends-on): Remove lstat.
4984         (configure.ac): Remove AC_LIBOBJ of fstatat.
4985         * modules/fstatat-tests: New file, extracted from modules/openat-tests.
4986         * modules/openat-tests (Files): Remove tests/test-fstatat.c,
4987         tests/test-lstat.h, tests/test-stat.h.
4988         (Depends-on): Remove getcwd-lgpl.
4989         (Makefile.am): Remove rules for test-fstatat.
4990         * doc/posix-functions/fstatat.texi: Mention module 'fstatat' instead
4991         of module 'openat'.
4992         * NEWS: Mention the change.
4993         * modules/getcwd (Depends-on): Add fstatat.
4994         * modules/linkat (Depends-on): Likewise.
4995         * modules/mkfifoat-tests (Depends-on): Likewise.
4996         * modules/utimensat (Depends-on): Add fstatat. Remove openat.
4997
4998 2011-11-03  Bruno Haible  <bruno@clisp.org>
4999
5000         New module 'unlinkat', split off from module 'openat'.
5001         * m4/unlinkat.m4: New file, extracted from m4/openat.m4.
5002         * m4/openat.m4 (gl_FUNC_OPENAT): Don't set GNULIB_UNLINKAT,
5003         REPLACE_UNLINKAT, HAVE_UNLINKAT. Don't test for unlinkat.
5004         * modules/unlinkat: New file, extracted from modules/openat. Correct
5005         the dependency conditions.
5006         * modules/openat (Files): Remove lib/unlinkat.c.
5007         (Depends-on): Remove rmdir, unlink.
5008         (configure.ac): Remove AC_LIBOBJ of unlinkat.
5009         * modules/unlinkat-tests: New file, extracted from modules/openat-tests.
5010         * modules/openat-tests (Files): Remove tests/test-unlinkat.c,
5011         tests/test-rmdir.h, tests/test-unlink.h.
5012         (Depends-on): Remove unlinkdir.
5013         (Makefile.am): Remove rules for test-unlinkat.
5014         * doc/posix-functions/unlinkat.texi: Mention module 'unlinkat' instead
5015         of module 'openat'.
5016         * NEWS: Mention the change.
5017         * modules/linkat-tests (Depends-on): Add unlinkat.
5018         * modules/mkfifoat-tests (Depends-on): Likewise.
5019         * modules/readlinkat-tests (Depends-on): Likewise.
5020
5021 2011-11-02  Bruno Haible  <bruno@clisp.org>
5022
5023         New module 'fchmodat', split off from module 'openat'.
5024         * lib/openat.h (chmodat, lchmodat): Enable only if GNULIB_FCHMODAT is
5025         defined.
5026         * m4/fchmodat.m4: New file, extracted from m4/openat.m4.
5027         * m4/openat.m4 (gl_FUNC_OPENAT): Don't set GNULIB_FCHMODAT. Don't test
5028         for fchmodat, lchmod. Don't set HAVE_FCHMODAT.
5029         * modules/fchmodat: New file, extracted from modules/openat.
5030         * modules/openat (Files): Remove lib/fchmodat.c.
5031         (configure.ac): Remove AC_LIBOBJ of fchmodat.
5032         * modules/fchmodat-tests: New file, extracted from modules/openat-tests.
5033         * modules/openat-tests (Files): Remove tests/test-fchmodat.c.
5034         (Makefile.am): Remove rules for test-fchmodat.
5035         * doc/posix-functions/fchmodat.texi: Mention module 'fchmodat' instead
5036         of module 'openat'.
5037         * NEWS: Mention the change.
5038
5039 2011-11-02  Jim Meyering  <meyering@redhat.com>
5040
5041         putenv: indent #definition of "environ" to placate cppi
5042         * lib/putenv.c (environ): Make indentation reflect cpp nesting.
5043
5044         gitlog-to-changelog: provide a ChangeLog-repair mechanism
5045         Git logs are often treated as immutable, because editing them
5046         changes the SHA1 checksums of all descendants.  Thus, errors in
5047         git logs tend to stay there forever.  However, when we generate
5048         a ChangeLog file -- typically for distribution -- from that git log,
5049         we can actually make corrections in the generated file.  The key
5050         lies in recording in machine-readable/applicable form the desired
5051         corrections.  See --help for description and an example.
5052         * build-aux/gitlog-to-changelog (parse_amend_file): New function.
5053         (usage): Describe it; alphabetize option descriptions.
5054         (main): Honor the new option, carefully.
5055
5056 2011-11-01  Jim Meyering  <meyering@redhat.com>
5057
5058         gitlog-to-changelog: avoid an infloop
5059         * build-aux/gitlog-to-changelog: Don't infloop for a commit log
5060         that ends up being empty.
5061
5062 2011-11-01  Paul Eggert  <eggert@cs.ucla.edu>
5063
5064         * MODULES.html.sh: Fix sed-script shell quoting and locale issues.
5065         (func_module): Replace foo=` ... sed -e COMPLICATED ... ` with
5066         bar=COMPLICATED; foo=` ... sed -e "$bar" ... ` when COMPLICATED
5067         contains (possibly-quoted) backslashes.  This should avoid
5068         all-too-common shell bugs if COMPLICATED contains backslashes in
5069         the "wrong" places.  Reported by David Evans in
5070         <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00013.html>.
5071         When 'sed' uses character ranges like A-Z, invoke it in the C locale,
5072         because we want ASCII ranges.  Is there some reason we don't use
5073         the C locale everywhere in this script?
5074         (func_module, top level): Avoid unwanted pathname expansion when
5075         $repo_url_prefix or $repo_url_suffix_repl contain shell
5076         metacharacters like '?' and '*'.
5077
5078 2011-11-01  Bruno Haible  <bruno@clisp.org>
5079
5080         fchownat: Improve description.
5081         * modules/fchownat (Description): Add link to function.
5082
5083 2011-11-01  Paul Eggert  <eggert@cs.ucla.edu>
5084
5085         * tests/test-stdalign.c (TEST_ALIGNMENT): Shrink back to 8.
5086         mingw supports alignments only up to 8 (!).  Reported by Bruno Haible in
5087         <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00006.html>.
5088         * doc/posix-headers/stdalign.texi (stdalign.h): Document this.
5089
5090 2011-11-01  Bruno Haible  <bruno@clisp.org>
5091
5092         alignof: Avoid collision with stdalign module.
5093         * lib/alignof.h (alignof): Remove macro.
5094         * NEWS: Mention the change.
5095         Reported by Paul Eggert.
5096
5097 2011-11-01  Bruno Haible  <bruno@clisp.org>
5098
5099         New module 'fchownat', split off from module 'openat'.
5100         * lib/openat.h (chownat, lchownat): Enable only if GNULIB_FCHOWNAT is
5101         defined.
5102         * m4/fchownat.m4: New file, extracted from m4/openat.m4.
5103         * m4/openat.m4 (gl_FUNC_OPENAT): Don't set GNULIB_FCHOWNAT. Don't
5104         invoke gl_FUNC_FCHOWNAT.
5105         (gl_FUNC_FCHOWNAT_DEREF_BUG, gl_FUNC_FCHOWNAT_EMPTY_FILENAME_BUG,
5106         gl_FUNC_FCHOWNAT): Moved to m4/fchownat.m4.
5107         * modules/fchownat: New file, extracted from modules/openat.
5108         * modules/openat (Files): Remove lib/fchownat.c.
5109         (Depends-on): Remove lchown.
5110         (configure.ac): Remove AC_LIBOBJ of fchownat.
5111         * modules/fchownat-tests: New file, extracted from modules/openat-tests.
5112         * modules/openat-tests (Files): Remove tests/test-fchownat.c,
5113         tests/test-chown.h, tests/test-lchown.h, tests/nap.h.
5114         (Depends-on): Remove mgetgroups, usleep, stat-time.
5115         (configure.ac): Remove test for getegid.
5116         (Makefile.am): Remove rules for test-fchownat.
5117         * doc/posix-functions/fchownat.texi: Mention module 'fchownat' instead
5118         of module 'openat'.
5119         * NEWS: Mention the change.
5120
5121 2011-10-31  Paul Eggert  <eggert@cs.ucla.edu>
5122
5123         stdalign: port better to MSVC and to Sun C 5.11
5124         This fixes some of the problems reported by Bruno Haible in
5125         <http://lists.gnu.org/archive/html/bug-gnulib/2011-10/msg00300.html>.
5126         * doc/posix-headers/stdalign.texi (stdalign.h): Document more
5127         shortcomings of MSVC and of Sun C 5.11.
5128         * lib/stdalign.in.h (_Alignas): Omit bogus extra parenthesis
5129         around __declspec arg.
5130         * modules/stdalign-tests (Files): Add tests/macros.h.
5131         * tests/test-stdalign.c: Do not include <stdlib.h>; no longer needed.
5132         Include macros.h, for ASSERT.
5133         (DECLARE_ALIGNED): Remove.
5134         (TEST_ALIGNMENT): Define to 16 if alignment is supported (more likely
5135         to catch bug), and to 1 if not (simplifies the rest of the code).
5136         (CHECK_STATIC): Always declare the alignment test vars; that's simpler.
5137         (CHECK_AUTO): Remove.
5138         (CHECK_ALIGNED): Check only the alignment of the static vars,
5139         since auto var alignment isn't supported by Sun C 5.11.
5140         (CHECK_TYPES): Remove.  All uses replaced by inline code, so that
5141         ASSERT failures are easier to diagnose.
5142
5143 2011-10-31  Bruno Haible  <bruno@clisp.org>
5144
5145         doc about some IRIX 5.3 problems.
5146         * doc/posix-functions/getpwnam_r.texi: Mention incompatible declaration
5147         on IRIX 5.3.
5148         * doc/posix-headers/poll.texi: Mention missing nfds_t on IRIX 5.3.
5149         * doc/posix-functions/ptsname.texi: Mention missing declaration on IRIX
5150         5.3.
5151         * doc/posix-functions/grantpt.texi: Likewise.
5152         * doc/posix-functions/unlockpt.texi: Likewise.
5153         * doc/posix-functions/lgamma.texi: Likewise.
5154         * doc/posix-functions/nextafter.texi: Likewise.
5155         * doc/posix-functions/remainder.texi: Likewise.
5156         * doc/posix-functions/select.texi: Mention misplaced declaration on
5157         IRIX 5.3.
5158         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
5159
5160 2011-10-31  Dmitry V. Levin  <ldv@altlinux.org>
5161
5162         gitlog-to-changelog: fix git-log invocation.
5163         git-log mishandles date strings before 1970-01-01 UTC, and there is
5164         no use to specify --since=1970-01-01 by default anyway.
5165         * build-aux/gitlog-to-changelog: By default, when no --since option
5166         was given, do not specify explicit --since option to git-log.
5167
5168 2011-10-30  Dmitry V. Levin  <ldv@altlinux.org>
5169
5170         gitlog-to-changelog: new option --append-dot.
5171         * build-aux/gitlog-to-changelog: New option --append-dot, makes the
5172         first non-blank line of each commit message terminated with a dot.
5173
5174 2011-10-30  Bruno Haible  <bruno@clisp.org>
5175
5176         ffsl, ffsll: Avoid compilation error due to 'restrict'.
5177         * lib/ffsl.h: Include <config.h>.
5178         Suggested by Tom G. Christensen <tgc@jupiterrise.com>.
5179
5180 2011-10-30  Jim Meyering  <meyering@redhat.com>
5181
5182         GNUmakefile: reenable "make syntax-check" for most projects
5183         Since Friday's commit 05e2d798, "maint.mk: don't maintain a second
5184         build-aux variable", "syntax-check" would do nothing but succeed with
5185         the "No version control files detected..." diagnostic (unless you
5186         happened to override _build-aux via cfg.mk).
5187         * top/GNUmakefile (_autoreconf, _build-aux): Move default definitions
5188         to precede inclusion of maint.mk.  Otherwise, these variables would
5189         be used undefined in any project that does not override the default.
5190
5191 2011-10-29  Dmitry V. Levin  <ldv@altlinux.org>
5192
5193         gitlog-to-changelog: treat a message with only blank lines as empty.
5194         * build-aux/gitlog-to-changelog: Move the code that removes leading and
5195         trailing blank lines before the code that issues a warning about an
5196         empty commit message.
5197
5198 2011-10-30  Jim Meyering  <meyering@redhat.com>
5199
5200         test-parse-datetime.c: avoid new DST-related false positive test failure
5201         * tests/test-parse-datetime.c (gmt_offset): Determine the "gmt_offset"
5202         based on the time/date we'll convert, not the current time.
5203         Otherwise, the moment we cross a DST boundary like today's in
5204         Europe, (CEST to CET), that offset ends up being one hour off.
5205
5206 2011-10-27  Bruno Haible  <bruno@clisp.org>
5207
5208         fstat: Tweak documentation.
5209         * modules/fstat (Description): More precise description.
5210
5211 2011-10-27  Bruno Haible  <bruno@clisp.org>
5212
5213         Update documentation regarding 'largefile' module.
5214         * doc/posix-functions/fstat.texi: Tweak wording.
5215         * doc/posix-functions/opendir.texi: Mention that the module fixes the
5216         problems with huge directories and/or small ino_t types.
5217         * doc/posix-functions/readdir.texi: Likewise.
5218         * doc/posix-functions/rewinddir.texi: Likewise.
5219
5220 2011-10-28  Gary V. Vaughan  <gary@gnu.org>
5221
5222         maint.mk: don't maintain a second build-aux variable.
5223         * maint.mk (build_aux): Removed.  The maintainer-makefile module
5224         depends on GNUmakefile, which already maintains a cfg.mk
5225         overridable $(_build-aux) for projects with a non-standard
5226         build-aux directory location, although without the $(srcdir)
5227         prefix.  Use that variable consistently instead of introducing a
5228         second one.  Adjust all call sites.
5229
5230 2011-10-27  Paul Eggert  <eggert@cs.ucla.edu>
5231
5232         Add stdalign module and use it in other modules.
5233         This is based on a previous proposal by Bruno Haible
5234         <https://lists.gnu.org/archive/html/bug-gnulib/2011-07/msg00226.html>.
5235
5236         stdalign: new module
5237         * doc/posix-headers/stdalign.texi, lib/stdalign.in.h, m4/stdalign.m4:
5238         * modules/stdalign: New files.
5239         * MODULES.html.sh (c1x_core_properties): Add stdalign.
5240         * doc/gnulib.texi (Header File Substitutes): Add stdalign.
5241
5242         stdalign-tests: new module
5243         * modules/stdalign-tests, tests/test-stdalign.c: New files.
5244
5245         argp: use stdalign
5246         * lib/argp-parse.c: Include <stdalign.h>.
5247         (alignof): Remove.
5248         * modules/argp (Depends-on): Add stdalign.
5249
5250         crypto libraries: use stdalign
5251         * lib/md4.c, lib/md5.c, lib/sha1.c, lib/sha256.c, lib/sha512.c:
5252         Include <stdalign.h> and <stdint.h>.  Do not include <stddef.h>.
5253         Do not include <stdlib.h> twice, in md4.c.
5254         (UNALIGNED_P): Simplify by using alignof.  Use uintptr_t, not size_t,
5255         because we are accessing a pointer's bit-pattern, not a size.
5256         * modules/crypto/gc-md4 (Depends-on): Add stdalign.
5257         * modules/crypto/gc-md5, modules/crypto/gc-sha1, modules/crypto/md4:
5258         * modules/crypto/md5, modules/crypto/sha1, modules/crypto/sha256:
5259         * modules/crypto/sha512: Likewise.
5260
5261         sys_socket: use stdalign, not alignof
5262         * lib/sys_socket.in.h: Include <stdalign.h> instead of <alignof.h>.
5263         * modules/sys_socket (Depends-on): Depend on stdalign, not alignof.
5264
5265 2011-10-27  Bruno Haible  <bruno@clisp.org>
5266
5267         raise test: Avoid a test failure on Linux/MIPS.
5268         * tests/test-raise.c (main): Try raising signal 199, not 99. Needed
5269         because 99 is a valid signal on Linux/MIPS.
5270
5271 2011-10-27  Bruno Haible  <bruno@clisp.org>
5272
5273         nonblocking tests: Fix test failure on Linux/MIPS.
5274         * tests/test-nonblocking-pipe.h (PIPE_DATA_BLOCK_SIZE) [Linux/MIPS]:
5275         Set to 270000.
5276
5277 2011-10-27  Bruno Haible  <bruno@clisp.org>
5278
5279         utimensat: Work around problem on Linux/hppa.
5280         * lib/utimensat.c (rpl_utimensat) [Linux/hppa]: Reject invalid tv_nsec
5281         values.
5282         * doc/posix-functions/utimensat.texi: Mention the problem on Linux/hppa.
5283
5284 2011-10-25  Jim Meyering  <meyering@redhat.com>
5285
5286         maint.mk: fix a bug in sc_prohibit_stddef_without_use
5287         * top/maint.mk (sc_prohibit_stddef_without_use): Don't require / *\(/
5288         after symbols like NULL, size_t, etc.
5289         Reported by Alfred M. Szmidt.
5290
5291         maint.mk: exempt ENODATA from a syntax-check rule
5292         * top/maint.mk (gl_extract_significant_defines_): Also exempt ENODATA
5293         from the sc_prohibit_always-defined_macros syntax-check rule.
5294         Add a comment.  See this for more details:
5295         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/28739/focus=28795
5296
5297 2011-10-23  Jim Meyering  <meyering@redhat.com>
5298
5299         fts: close parent dir FD before returning from post-traversal fts_read
5300         The problem: the fts-using "mkdir -p A/B; rm -rf A" would attempt to
5301         unlink A, even though an FD open on A remained.  This is suboptimal
5302         (holding a file descriptor open longer than needed), but otherwise not
5303         a problem on Unix-like kernels.  However, on Cygwin with certain Novell
5304         file systems, (see http://cygwin.com/ml/cygwin/2011-10/msg00365.html),
5305         that represents a real problem: it causes the removal of A to fail
5306         with e.g., "rm: cannot remove `A': Device or resource busy"
5307
5308         fts visits each directory twice and keeps a cache (fts_fd_ring) of
5309         directory file descriptors.  After completing the final, FTS_DP,
5310         visit of a directory, RESTORE_INITIAL_CWD intended to clear the FD
5311         cache, but then proceeded to add a new FD to it via the subsequent
5312         FCHDIR (which calls cwd_advance_fd and i_ring_push).  Before, the
5313         final file descriptor would be closed only via fts_close's call to
5314         fd_ring_clear.  Now, it is usually closed earlier, via the final
5315         FTS_DP-returning fts_read call.
5316         * lib/fts.c (restore_initial_cwd): New function, converted from
5317         the macro.  Call fd_ring_clear *after* FCHDIR, not before it.
5318         Update callers.
5319         Reported by Franz Sirl via the above URL, with analysis by Eric Blake
5320         in http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/28739
5321
5322 2011-10-23  Gary V. Vaughan  <gary@gnu.org>
5323             Bruno Haible  <bruno@clisp.org>
5324             Jim Meyering  <jim@meyering.net>
5325
5326         readme-release: improve safety of release prep instructions.
5327         * README-release: Don't git pull all branches when only master
5328         is needed for the release process.
5329         Run make maintainer-clean before changing trees and merging.
5330         Don't try to run ./configure right after git pull in case files
5331         that influence the bootstrap process have changed, move the
5332         ./configure step to after running ./bootstrap.
5333         Don't bootstrap "one last time"... it's the first time!
5334
5335 2011-10-22  Bruno Haible  <bruno@clisp.org>
5336
5337         errno, strerror-override: Support for MSVC 10.
5338         * lib/errno.in.h (GNULIB_defined_ETXTBSY): Remove macro.
5339         (ENOMSG, EIDRM, ENOLINK, EPROTO, EBADMSG, EOVERFLOW, ENOTSUP,
5340         ENETRESET, ECONNABORTED, ECANCELED, EINPROGRESS, EALREADY, ENOTSOCK,
5341         EDESTADDRREQ, EMSGSIZE, EPROTOTYPE, ENOPROTOOPT, EPROTONOSUPPORT,
5342         EOPNOTSUPP, EAFNOSUPPORT, EADDRINUSE, EADDRNOTAVAIL, ENETDOWN,
5343         ENETUNREACH, ECONNRESET, ENOBUFS, EISCONN, ENOTCONN, ETIMEDOUT,
5344         ECONNREFUSED, ELOOP, EHOSTUNREACH, EWOULDBLOCK, ETXTBSY) [Win32]:
5345         Assign values compatible with MSVC 10.
5346         (ENODATA, ENOSR, ENOSTR, ENOTRECOVERABLE, EOWNERDEAD, ETIME, EOTHER):
5347         New macros.
5348         (GNULIB_defined_EWINSOCK): New macro.
5349         * lib/strerror-override.c (strerror_override): Update accordingly.
5350         * lib/strerror-override.h: Likewise.
5351         * lib/w32sock.h (set_winsock_errno): Map those WSA* values that are no
5352         longer equal to the corresponding errno value.
5353         Reported by Michael Goffioul <michael.goffioul@gmail.com>.
5354
5355 2011-10-22  Bruno Haible  <bruno@clisp.org>
5356
5357         perror: Recognize when test program crashes.
5358         * m4/perror.m4 (gl_FUNC_PERROR): If the test program crashes due to
5359         strerror, set gl_cv_func_perror_works to no.
5360         Reported by Daniel Richard G. <skunk@iskunk.org>.
5361
5362         perror: Fix indentation.
5363         * m4/perror.m4 (gl_FUNC_PERROR): Fix indentation.
5364
5365 2011-10-22  Bruno Haible  <bruno@clisp.org>
5366
5367         isfinite, isinf, isnan, signbit: Don't define as a macro in C++.
5368         * lib/math.in.h (_GL_MATH_CXX_REAL_FLOATING_DECL_1,
5369         _GL_MATH_CXX_REAL_FLOATING_DECL_2): nEW MACROS.
5370         (isfinite, isinf, isnan, signbit): In C++, define as overloaded
5371         functions, not as a macro.
5372         * tests/test-math-c++.cc (REAL_FLOATING_CHECK, OVERLOADED_CHECK): New
5373         macros.
5374         (isfinite, isinf, isnan, signbit): Check overloaded functions and
5375         absence of macro.
5376         Suggested by Eric Blake.
5377         Reported by Michael Goffioul <michael.goffioul@gmail.com>.
5378
5379 2011-10-21  Bruno Haible  <bruno@clisp.org>
5380
5381         relocatable-prog-wrapper: Don't leave object files behind.
5382         * build-aux/install-reloc: Re-synchronize list of .o files to be
5383         removed with list of compilation units.
5384
5385 2011-10-20  Bruno Haible  <bruno@clisp.org>
5386
5387         openpty, posix_openpt: Remove code duplication.
5388         * lib/posix_openpt.c: Add comments about platforms, from lib/openpty.c.
5389         * lib/openpty.c: Include <stdlib.h>.
5390         (openpty): Use posix_openpt on all platforms except IRIX.
5391         * modules/openpty (Depends-on): Add posix_openpt. Add conditions.
5392
5393 2011-10-20  Bruno Haible  <bruno@clisp.org>
5394
5395         unlockpt: Detect invalid argument.
5396         * lib/unlockpt.c: Include <fcntl.h>.
5397         (unlockpt): Check whether fd is valid, using fcntl().
5398         * modules/unlockpt (Depends-on): Add fcntl-h.
5399
5400 2011-10-20  Bruno Haible  <bruno@clisp.org>
5401
5402         openpty: Avoid compilation error on AIX 6.1.
5403         * lib/pty.in.h [AIX]: Include <sys/ioctl.h>, for 'struct winsize'.
5404
5405 2011-10-20  Bruno Haible  <bruno@clisp.org>
5406
5407         posix_openpt: Support for OpenBSD.
5408         * lib/posix_openpt.c [OpenBSD]: Include <sys/ioctl.h>, <sys/tty.h>.
5409         (posix_openpt) [OpenBSD]: New code.
5410         * lib/grantpt.c: Include <fcntl.h>.
5411         (grantpt) [OpenBSD]: Only test whether fd is valid, nothing else.
5412         * modules/grantpt (Depends-on): Add fcntl-h.
5413
5414 2011-10-20  Bruno Haible  <bruno@clisp.org>
5415
5416         posix_openpt test: Coding style.
5417         * tests/test-posix_openpt.c: Use GNU coding style.
5418
5419 2011-10-20  Bruno Haible  <bruno@clisp.org>
5420
5421         grantpt: Support --avoid=pt_chown.
5422         * modules/grantpt (Files): Add lib/pty-private.h.
5423
5424 2011-10-20  Bruno Haible  <bruno@clisp.org>
5425
5426         posix_openpt: Fix autoconf macro.
5427         * m4/posix_openpt.m4 (gl_FUNC_POSIX_OPENPT): Fix variable name. Remove
5428         unneeded check for _getpty.
5429
5430 2011-10-20  Bruno Haible  <bruno@clisp.org>
5431
5432         openpty: Update comments.
5433         * lib/openpty.c: Add comments about Minix.
5434
5435 2011-10-19  Eric Blake  <eblake@redhat.com>
5436
5437         openpty: relax license
5438         * modules/openpty (License): Change from LGPLv3+ to LGPLv2+.
5439
5440         pt_chown: use configmake to simplify build
5441         * modules/pt_chown (Makefile.am): Drop line guaranteed by configmake.
5442
5443         ptsname and others: relax license
5444         * modules/grantpt (License): Change from LGPLv3+ to LGPLv2+.
5445         * modules/unlockpt (License): Likewise.
5446         * modules/pt_chown (License): Likewise.
5447         * modules/ptsname (License): Likewise.
5448         * modules/ttyname_r (License): Likewise.
5449
5450 2011-10-19  Jim Meyering  <meyering@redhat.com>
5451
5452         posix_openpt: remove spurious #endif
5453         * lib/posix_openpt.c (posix_openpt): Remove spurious #endif.
5454
5455 2011-10-19  Gary V. Vaughan  <gary@gnu.org>
5456
5457         maint.mk: Respect $(build_aux) in web-manual rule.
5458         * top/maint.mk (web-manual): Find gen-announce script in user's
5459         $(build_aux) directory instead of hard-coding 'build-aux'.
5460
5461 2011-10-19  Bruno Haible  <bruno@clisp.org>
5462
5463         posix_openpt: Fix compilation error.
5464         * lib/posix_openpt.c (posix_openpt): Renamed from posix_openpty.
5465         * doc/posix-functions/posix_openpt.texi: Mention ENOENT error code.
5466         Mention the openpty module as an alternative.
5467
5468 2011-10-19  Bruno Haible  <bruno@clisp.org>
5469
5470         Support for old NeXTstep 3.3 frexp().
5471         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Check for alarm. Limit the
5472         execution time of the test to 5 seconds.
5473         Reported by Daniel Richard G. <skunk@iskunk.org>.
5474
5475 2011-10-19  Bruno Haible  <bruno@clisp.org>
5476
5477         Support for old NeXTstep 3.3 sed.
5478         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER_ONE): In the sed address
5479         part, use /.../, not \|...|. Escape periods in the header file name.
5480         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): Likewise.
5481         Reported by Daniel Richard G. <skunk@iskunk.org>.
5482
5483 2011-10-18  Daniel Richard G.  <skunk@iskunk.org>  (tiny change)
5484
5485         Support for old NeXTstep 3.3 gcc.
5486         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Write
5487         'defined __STRICT_ANSI__', not '__STRICT_ANSI__'.
5488         * lib/math.in.h (_GL_NUM_UINT_WORDS etc.): Likewise.
5489         * lib/spawn.in.h (_Restrict_arr_): Likewise.
5490         * lib/regex.h (_Restrict_arr_): Likewise.
5491         * lib/regex_internal.h (re_token_t): Likewise.
5492         * lib/regexec.c (check_node_accept_bytes): Likewise.
5493         * tests/test-printf-posix.c (func1, func2, func3, func4): Likewise.
5494
5495 2011-10-18  Eric Blake  <eblake@redhat.com>
5496
5497         posix_openpt: new module
5498         * modules/posix_openpt: New module.
5499         * m4/posix_openpt.m4: New file.
5500         * lib/posix_openpt.c: Likewise.
5501         * m4/stdlib_h.m4 (gl_STDLIB_H): Check for decl.
5502         (gl_STDLIB_H_DEFAULTS): Set defaults.
5503         * modules/stdlib (Makefile.am): Substitute macros.
5504         * lib/stdlib.in.h (posix_openpt): Declare.
5505         * MODULES.html.sh (systems lacking POSIX:2008): Document it.
5506         * doc/posix-functions/posix_openpt.texi (posix_openpt): Likewise.
5507         * modules/posix_openpt-tests: New test module.
5508         * tests/test-posix_openpt.c: New test.
5509
5510 2011-10-15  Bruno Haible  <bruno@clisp.org>
5511
5512         xstrtoll: Fix compilation failure.
5513         * lib/xstrtol.c (ULLONG_MAX, LLONG_MAX, LLONG_MIN): New macros, taken
5514         from lib/strtol.c.
5515         * doc/posix-headers/limits.texi: Mention missing numerical limits on
5516         some platforms.
5517         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
5518
5519 2011-10-15  Bruno Haible  <bruno@clisp.org>
5520
5521         vasnprintf: Optimize bit search operation.
5522         * lib/vasnprintf.c (divide): Use optimizations from integer_length.c.
5523         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Require
5524         gl_DOUBLE_EXPONENT_LOCATION.
5525         * modules/vasnprintf (Files): Add m4/exponentd.m4.
5526         * modules/unistdio/u8-vasnprintf (Files): Likewise.
5527         * modules/unistdio/u8-u8-vasnprintf (Files): Likewise.
5528         * modules/unistdio/u16-vasnprintf (Files): Likewise.
5529         * modules/unistdio/u16-u16-vasnprintf (Files): Likewise.
5530         * modules/unistdio/u32-vasnprintf (Files): Likewise.
5531         * modules/unistdio/u32-u32-vasnprintf (Files): Likewise.
5532         * modules/unistdio/ulc-vasnprintf (Files): Likewise.
5533         * m4/isnand.m4 (gl_PREREQ_ISNAND): Use AC_REQUIRE.
5534
5535 2011-10-15  Bruno Haible  <bruno@clisp.org>
5536
5537         vasnprintf: Fix comments.
5538         * lib/vasnprintf.c (decode_long_double, decode_double): Fix comments.
5539
5540 2011-10-14  Bruno Haible  <bruno@clisp.org>
5541
5542         Tests for module 'integer_length_ll'.
5543         * modules/integer_length_ll-tests: New file.
5544         * tests/test-integer_length_ll.c: New file.
5545
5546         New module 'integer_length_ll'.
5547         * lib/integer_length_ll.c: New file.
5548         * modules/integer_length_ll: New file.
5549
5550 2011-10-14  Bruno Haible  <bruno@clisp.org>
5551
5552         Tests for module 'integer_length_l'.
5553         * modules/integer_length_l-tests: New file.
5554         * tests/test-integer_length_l.c: New file.
5555
5556         New module 'integer_length_l'.
5557         * lib/integer_length_l.c: New file.
5558         * modules/integer_length_l: New file.
5559
5560 2011-10-14  Bruno Haible  <bruno@clisp.org>
5561
5562         Tests for module 'integer_length'.
5563         * modules/integer_length-tests: New file.
5564         * tests/test-integer_length.c: New file.
5565
5566         New module 'integer_length'.
5567         * lib/integer_length.h: New file.
5568         * lib/integer_length.c: New file.
5569         * modules/integer_length: New file.
5570
5571 2011-10-14  Daniel Richard G.  <skunk@iskunk.org>  (tiny change)
5572
5573         popen: Fix dependency conditions.
5574         * modules/popen (Depends-on, configure.ac): Fix shell syntax error.
5575
5576 2011-10-14  Daniel Richard G.  <skunk@iskunk.org>  (tiny change)
5577
5578         perror: Fix autoconf test.
5579         * m4/perror.m4 (gl_FUNC_PERROR): In the test program, include
5580         <stdlib.h> and <string.h>.
5581
5582 2011-10-14  Bruno Haible  <bruno@clisp.org>
5583
5584         ffsl: Optimize on 64-bit platforms.
5585         * lib/ffsl.h (FUNC): Omit a test from the last loop round. Do loop
5586         unrolling.
5587
5588 2011-10-13  Bruno Haible  <bruno@clisp.org>
5589
5590         ffsl: Optimize on 32-bit platforms.
5591         * lib/ffsl.h (FUNC): If TYPE has the same representation as 'int', just
5592         use ffs() without a loop.
5593
5594         ffsl, ffsll: Optimize for GCC.
5595         * lib/ffsl.h (FUNC): Use GCC_BUILTIN if defined.
5596         * lib/ffsl.c (GCC_BUILTIN): New macro.
5597         * lib/ffsll.c (GCC_BUILTIN): Likewise.
5598
5599 2011-10-13  Bruno Haible  <bruno@clisp.org>
5600
5601         ffs, bcopy, memset: Support symbol renaming via config.h.
5602         * lib/ffs.c: Include <config.h>.
5603         * lib/bcopy.c: Likewise.
5604         * lib/memset.c: Likewise.
5605
5606 2011-10-10  Bruno Haible  <bruno@clisp.org>
5607
5608         atanl: Simplify for platforms where 'long double' == 'double'.
5609         * lib/atanl.c (atanl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
5610         alternative implementation.
5611         * m4/atanl.m4 (gl_FUNC_ATANL): Require gl_LONG_DOUBLE_VS_DOUBLE.
5612         Determine ATANL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
5613         * modules/atanl (Depends-on): Add atan. Update conditions.
5614
5615 2011-10-10  Bruno Haible  <bruno@clisp.org>
5616
5617         acosl: Simplify for platforms where 'long double' == 'double'.
5618         * lib/acosl.c (acosl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
5619         alternative implementation.
5620         * m4/acosl.m4 (gl_FUNC_ACOSL): Require gl_LONG_DOUBLE_VS_DOUBLE.
5621         Determine ACOSL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
5622         * modules/acosl (Depends-on): Add acos. Update conditions.
5623
5624 2011-10-10  Bruno Haible  <bruno@clisp.org>
5625
5626         asinl: Simplify for platforms where 'long double' == 'double'.
5627         * lib/asinl.c (asinl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
5628         alternative implementation.
5629         * m4/asinl.m4 (gl_FUNC_ASINL): Require gl_LONG_DOUBLE_VS_DOUBLE.
5630         Determine ASINL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
5631         * modules/asinl (Depends-on): Add asin. Update conditions.
5632
5633 2011-10-10  Bruno Haible  <bruno@clisp.org>
5634
5635         tanl: Simplify for platforms where 'long double' == 'double'.
5636         * lib/tanl.c (tanl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
5637         implementation.
5638         * m4/tanl.m4 (gl_FUNC_TANL): Require gl_LONG_DOUBLE_VS_DOUBLE.
5639         Determine TANL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
5640         * modules/tanl (Depends-on): Add tan. Update conditions.
5641         (configure.ac): Don't compile trigl.c if
5642         HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
5643
5644 2011-10-10  Bruno Haible  <bruno@clisp.org>
5645
5646         cosl: Simplify for platforms where 'long double' == 'double'.
5647         * lib/cosl.c (cosl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
5648         implementation.
5649         * m4/cosl.m4 (gl_FUNC_COSL): Require gl_LONG_DOUBLE_VS_DOUBLE.
5650         Determine COSL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
5651         * modules/cosl (Depends-on): Add cos. Update conditions.
5652         (configure.ac): Don't compile sincosl.c and trigl.c if
5653         HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
5654
5655 2011-10-10  Bruno Haible  <bruno@clisp.org>
5656
5657         sinl: Simplify for platforms where 'long double' == 'double'.
5658         * lib/sinl.c (sinl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
5659         implementation.
5660         * m4/sinl.m4 (gl_FUNC_SINL): Require gl_LONG_DOUBLE_VS_DOUBLE.
5661         Determine SINL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
5662         * modules/sinl (Depends-on): Add sin. Update conditions.
5663         (configure.ac): Don't compile sincosl.c and trigl.c if
5664         HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
5665
5666 2011-10-10  Bruno Haible  <bruno@clisp.org>
5667
5668         logl: Simplify for platforms where 'long double' == 'double'.
5669         * lib/logl.c (logl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
5670         implementation.
5671         * m4/logl.m4 (gl_FUNC_LOGL): Require gl_LONG_DOUBLE_VS_DOUBLE.
5672         Determine LOGL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
5673         * modules/logl (Depends-on): Add log. Update conditions.
5674
5675 2011-10-10  Bruno Haible  <bruno@clisp.org>
5676
5677         expl: Simplify for platforms where 'long double' == 'double'.
5678         * lib/expl.c (expl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
5679         implementation.
5680         * m4/expl.m4 (gl_FUNC_EXPL): Require gl_LONG_DOUBLE_VS_DOUBLE.
5681         Determine EXPL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
5682         * modules/expl (Depends-on): Add exp. Update conditions.
5683
5684 2011-10-10  Bruno Haible  <bruno@clisp.org>
5685
5686         sqrtl: Simplify for platforms where 'long double' == 'double'.
5687         * lib/sqrtl.c (sqrtl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
5688         alternative implementation.
5689         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Require gl_LONG_DOUBLE_VS_DOUBLE.
5690         Determine SQRTL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
5691         * modules/sqrtl (Depends-on): Update conditions.
5692
5693 2011-10-10  Bruno Haible  <bruno@clisp.org>
5694
5695         ldexpl: Simplify for platforms where 'long double' == 'double'.
5696         * lib/ldexpl.c (ldexpl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
5697         alternative implementation.
5698         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Require gl_LONG_DOUBLE_VS_DOUBLE.
5699         Determine LDEXPL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
5700         * modules/ldexpl (Depends-on): Add ldexp. Update conditions.
5701
5702 2011-10-10  Tom G. Christensen  <tgc@jupiterrise.com>  (tiny change)
5703
5704         ffsll: set correct witness
5705         * modules/ffsll (configure.ac): Fix typo.
5706
5707 2011-10-10  Bruno Haible  <bruno@clisp.org>
5708
5709         printf-frexpl: Simplify for platforms where 'long double' == 'double'.
5710         * lib/printf-frexpl.c: Include <config.h>.
5711         (printf_frexpl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
5712         * lib/printf-frexp.c [!USE_LONG_DOUBLE]: Don't include <config.h> a
5713         second time.
5714         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Require
5715         gl_LONG_DOUBLE_VS_DOUBLE.
5716         * modules/printf-frexpl (Depends-on): Add printf-frexp. Update
5717         conditions.
5718
5719 2011-10-10  Bruno Haible  <bruno@clisp.org>
5720
5721         frexpl: Simplify for platforms where 'long double' == 'double'.
5722         * lib/frexpl.c: Include <config.h>.
5723         (frexpl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
5724         * lib/frexp.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
5725         time.
5726         * m4/frexpl.m4 (gl_FUNC_FREXPL): Require gl_LONG_DOUBLE_VS_DOUBLE.
5727         Determine FREXPL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
5728         (gl_FUNC_FREXPL_NO_LIBM): Require gl_LONG_DOUBLE_VS_DOUBLE.
5729         * modules/frexpl (Depends-on): Add frexp. Update conditions.
5730         * modules/frexpl-nolibm (Depends-on): Add frexp-nolibm. Update
5731         conditions.
5732
5733 2011-10-10  Jim Meyering  <meyering@redhat.com>
5734
5735         test-renameat: don't leave behind a temporary file
5736         * tests/test-renameat.c (main): Don't forget to remove a temporary file.
5737           ERROR: files left in build directory after distclean:
5738           ./gltests/test-renameat.too
5739           make[1]: *** [distcleancheck] Error 1
5740         Reported by Tom G. Christensen.
5741
5742 2011-10-09  Bruno Haible  <bruno@clisp.org>
5743
5744         rint: Determine RINT_LIBM correctly on AIX 7.
5745         * m4/mathfunc.m4 (gl_MATHFUNC): Try to invoke the function also
5746         directly, not only through a function pointer. Also accept an optional
5747         4th argument with extra code.
5748         * m4/rint.m4 (gl_FUNC_RINT): Pass an extra code that gets turned into a
5749         rintf() call by gcc when optimizing.
5750
5751         mathfunc.m4: Refactor.
5752         * m4/mathfunc.m4 (gl_MATHFUNC): Assign the argument list to a temporary
5753         m4 variable.
5754
5755 2011-10-09  Bruno Haible  <bruno@clisp.org>
5756
5757         rintl: Simplify for platforms where 'long double' == 'double'.
5758         * lib/rintl.c: Include <config.h>.
5759         (rintl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
5760         * lib/rint.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
5761         time.
5762         * m4/rintl.m4 (gl_FUNC_RINTL): Require gl_LONG_DOUBLE_VS_DOUBLE.
5763         Determine RINTL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
5764         * modules/rintl (Depends-on): Add rint. Update conditions.
5765
5766 2011-10-09  Bruno Haible  <bruno@clisp.org>
5767
5768         roundl: Simplify for platforms where 'long double' == 'double'.
5769         * lib/roundl.c: Include <config.h>.
5770         (roundl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
5771         * lib/round.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
5772         time.
5773         * m4/roundl.m4 (gl_FUNC_ROUNDL): Require gl_LONG_DOUBLE_VS_DOUBLE.
5774         Determine ROUNDL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
5775         * modules/roundl (Depends-on): Add round. Update conditions.
5776
5777 2011-10-09  Bruno Haible  <bruno@clisp.org>
5778
5779         truncl: Simplify for platforms where 'long double' == 'double'.
5780         * lib/truncl.c: Include <config.h>.
5781         (truncl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
5782         * lib/trunc.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
5783         time.
5784         * m4/truncl.m4 (gl_FUNC_TRUNCL): Require gl_LONG_DOUBLE_VS_DOUBLE.
5785         Determine TRUNCL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
5786         * modules/truncl (Depends-on): Add trunc. Update conditions.
5787
5788 2011-10-09  Bruno Haible  <bruno@clisp.org>
5789
5790         ceill: Simplify for platforms where 'long double' == 'double'.
5791         * lib/ceill.c: Include <config.h>.
5792         (ceill) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
5793         * lib/ceil.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
5794         time.
5795         * m4/ceill.m4 (gl_FUNC_CEILL): Require gl_LONG_DOUBLE_VS_DOUBLE.
5796         Determine CEILL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
5797         * modules/ceill (Depends-on): Add ceil. Update conditions.
5798
5799 2011-10-09  Bruno Haible  <bruno@clisp.org>
5800
5801         floorl: Simplify for platforms where 'long double' == 'double'.
5802         * lib/floorl.c: Include <config.h>.
5803         (floorl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
5804         * lib/floor.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
5805         time.
5806         * m4/floorl.m4 (gl_FUNC_FLOORL): Require gl_LONG_DOUBLE_VS_DOUBLE.
5807         Determine FLOORL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
5808         * modules/floorl (Depends-on): Add floor. Update conditions.
5809
5810 2011-10-09  Bruno Haible  <bruno@clisp.org>
5811
5812         rint: Fix ordering constraints.
5813         * m4/rint.m4 (gl_FUNC_RINT): Require gl_MATH_H_DEFAULTS.
5814         * m4/rintf.m4 (gl_FUNC_RINTF): Likewise.
5815         * m4/rintl.m4 (gl_FUNC_RINTL): Likewise.
5816
5817 2011-10-09  Bruno Haible  <bruno@clisp.org>
5818
5819         copysignl: Simplify for platforms where 'long double' == 'double'.
5820         * lib/copysignl.c (copysignl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
5821         alternative.
5822         * m4/copysignl.m4 (gl_FUNC_COPYSIGNL): Require gl_LONG_DOUBLE_VS_DOUBLE.
5823         Determine COPYSIGNL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
5824         * modules/copysignl (Depends-on): Add copysign. Update conditions.
5825
5826 2011-10-09  Bruno Haible  <bruno@clisp.org>
5827
5828         Tests for module 'rintl'.
5829         * modules/rintl-tests: New file.
5830         * tests/test-rintl.c: New file.
5831
5832         New module 'rintl'.
5833         * lib/math.in.h (rintl): New declaration.
5834         * lib/rintl.c: New file.
5835         * m4/rintl.m4: New file.
5836         * m4/math_h.m4 (gl_MATH_H): Test whether rintl is declared.
5837         (gl_MATH_H_DEFAULTS): Initialize GNULIB_RINTL, HAVE_RINTL.
5838         * modules/math (Makefile.am): Substitute GNULIB_RINTL, HAVE_RINTL.
5839         * modules/rintl: New file.
5840         * tests/test-math-c++.cc: Check the declaration of rintl.
5841         * modules/math-c++-tests (Makefile.am): Link test-math-c++ against
5842         $(RINTL_LIBM). Needed on IRIX 6.5 with cc.
5843         * doc/posix-functions/rintl.texi: Mention the new module.
5844
5845 2011-10-09  Bruno Haible  <bruno@clisp.org>
5846
5847         Tests for module 'rintf'.
5848         * modules/rintf-tests: New file.
5849         * tests/test-rintf.c: New file.
5850
5851         New module 'rintf'.
5852         * lib/math.in.h (rintf): New declaration.
5853         * lib/rintf.c: New file.
5854         * m4/rintf.m4: New file.
5855         * m4/math_h.m4 (gl_MATH_H): Test whether rintf is declared.
5856         (gl_MATH_H_DEFAULTS): Initialize GNULIB_RINTF, HAVE_RINTF.
5857         * modules/math (Makefile.am): Substitute GNULIB_RINTF, HAVE_RINTF.
5858         * modules/rintf: New file.
5859         * tests/test-math-c++.cc: Check the declaration of rintf.
5860         * doc/posix-functions/rintf.texi: Mention the new module.
5861
5862 2011-10-09  Bruno Haible  <bruno@clisp.org>
5863
5864         rint: Support for MSVC.
5865         * lib/math.in.h (rint): New declaration.
5866         * lib/rint.c: New file.
5867         * m4/rint.m4: New file.
5868         * m4/math_h.m4 (gl_MATH_H): Test whether rint is declared.
5869         (gl_MATH_H_DEFAULTS): Initialize GNULIB_RINT, HAVE_RINT.
5870         * modules/math (Makefile.am): Substitute GNULIB_RINT, HAVE_RINT.
5871         * modules/rint (Description): Fix.
5872         (Files): Add lib/rint.c, m4/rint.m4.
5873         (Depends-on): Add math.
5874         (configure.ac): Invoke gl_FUNC_RINT, AC_LIBOBJ,
5875         gl_MATH_MODULE_INDICATOR.
5876         * tests/test-math-c++.cc: Check the declaration of rint.
5877         * modules/math-c++-tests (Makefile.am): Link test-math-c++ against
5878         $(RINT_LIBM). Needed on IRIX 6.5 with cc.
5879         * doc/posix-functions/rint.texi: Mention the replacement provided by
5880         the module.
5881
5882         rint tests: More tests.
5883         * tests/test-rint.c: Include <float.h>, <stdio.h>, isnand-nolibm.h,
5884         minus-zero.h, infinity.h, nan.h.
5885         (main): Skip the test if the current rounding mode is not standard. Add
5886         tests for negative numbers, minus zero, infinity, NaN.
5887         * modules/rint-tests (Files): Add tests/minus-zero.h, tests/infinity.h,
5888         tests/nan.h.
5889         (Depends-on): Add isnand-nolibm.
5890
5891 2011-10-09  Bruno Haible  <bruno@clisp.org>
5892
5893         Tests for module 'copysignl'.
5894         * modules/copysignl-tests: New file.
5895         * tests/test-copysignl.c: New file.
5896
5897         New module 'copysignl'.
5898         * lib/math.in.h (copysignl): New declaration.
5899         * lib/copysignl.c: New file.
5900         * m4/copysignl.m4: New file.
5901         * m4/math_h.m4 (gl_MATH_H): Test whether copysignl is declared.
5902         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COPYSIGNL, HAVE_COPYSIGNL.
5903         * modules/math (Makefile.am): Substitute GNULIB_COPYSIGNL,
5904         HAVE_COPYSIGNL.
5905         * modules/copysignl: New file.
5906         * tests/test-math-c++.cc: Check the declaration of copysignl.
5907         * modules/math-c++-tests (Makefile.am): Link test-math-c++ against
5908         $(COPYSIGNL_LIBM). Needed on IRIX 6.5 with cc.
5909         * doc/posix-functions/copysignl.texi: Mention the new module.
5910
5911 2011-10-09  Bruno Haible  <bruno@clisp.org>
5912
5913         Tests for module 'copysignf'.
5914         * modules/copysignf-tests: New file.
5915         * tests/test-copysignf.c: New file.
5916
5917         New module 'copysignf'.
5918         * lib/math.in.h (copysignf): New declaration.
5919         * lib/copysignf.c: New file.
5920         * m4/copysignf.m4: New file.
5921         * m4/math_h.m4 (gl_MATH_H): Test whether copysignf is declared.
5922         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COPYSIGNF, HAVE_COPYSIGNF.
5923         * modules/math (Makefile.am): Substitute GNULIB_COPYSIGNF,
5924         HAVE_COPYSIGNF.
5925         * modules/copysignf: New file.
5926         * tests/test-math-c++.cc: Check the declaration of copysignf.
5927         * doc/posix-functions/copysignf.texi: Mention the new module.
5928
5929 2011-10-09  Bruno Haible  <bruno@clisp.org>
5930
5931         Ensure that HAVE_* variables are set to 1 before they are set to 0.
5932         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Require gl_DIRENT_H_DEFAULTS.
5933         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Require gl_ARPA_INET_H_DEFAULTS.
5934         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Likewise.
5935         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Require
5936         gl_SIGNAL_H_DEFAULTS.
5937
5938 2011-10-09  Bruno Haible  <bruno@clisp.org>
5939
5940         poll: Make macro safer.
5941         * m4/poll.m4 (gl_FUNC_POLL): Complain if, after invoking gl_POLL_H,
5942         ac_cv_header_poll_h is not set.
5943
5944 2011-10-09  Bruno Haible  <bruno@clisp.org>
5945
5946         copysign: Provide replacement.
5947         * lib/math.in.h (copysign): New declaration.
5948         * lib/copysign.c: New file.
5949         * m4/copysign.m4: New file.
5950         * m4/math_h.m4 (gl_MATH_H): Test whether copysign is declared.
5951         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COPYSIGN, HAVE_COPYSIGN.
5952         * modules/math (Makefile.am): Substitute GNULIB_COPYSIGN,
5953         HAVE_COPYSIGN.
5954         * modules/copysign (Description): Clarify.
5955         (Files): Add lib/copysign.c, m4/copysign.m4.
5956         (Depends-on): Add math, signbit.
5957         (configure.ac): Invoke gl_FUNC_COPYSIGN, AC_LIBOBJ,
5958         gl_MATH_MODULE_INDICATOR.
5959         * tests/test-math-c++.cc: Check the declaration of copysign.
5960         * doc/posix-functions/copysign.texi: Mention the effects of the module
5961         on Minix and MSVC.
5962
5963 2011-10-09  Bruno Haible  <bruno@clisp.org>
5964
5965         isinf: Ensure macro on AIX 5.1.
5966         * m4/isinf.m4 (gl_ISINF): Also test whether isinf is defined as a
5967         macro.
5968         * doc/posix-functions/isinf.texi: Mention also AIX 5.1 as deficient.
5969
5970 2011-10-09  Bruno Haible  <bruno@clisp.org>
5971
5972         *printf-posix tests: Fix for platforms where 'long double' == 'double'.
5973         * modules/snprintf-posix-tests (configure.ac): Require
5974         gl_LONG_DOUBLE_VS_DOUBLE.
5975         * modules/sprintf-posix-tests (configure.ac): Likewise.
5976         * modules/vasnprintf-posix-tests (configure.ac): Likewise.
5977         * modules/vasprintf-posix-tests (configure.ac): Likewise.
5978         * modules/vsnprintf-posix-tests (configure.ac): Likewise.
5979         * modules/vsprintf-posix-tests (configure.ac): Likewise.
5980         * tests/test-snprintf-posix.h (test_function): Avoid 80-bit long double
5981         tests on platforms where 'long double' is the same as 'double'.
5982         * tests/test-sprintf-posix.h (test_function): Likewise.
5983         * tests/test-vasnprintf-posix.c (test_function): Likewise.
5984         * tests/test-vasprintf-posix.c (test_function): Likewise.
5985
5986         *printf: Fix for platforms where 'long double' == 'double'.
5987         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Require
5988         gl_LONG_DOUBLE_VS_DOUBLE. Don't blindly assume 80-bit 'long double'.
5989         * modules/dprintf-posix (Files): Add m4/math_h.m4.
5990         * modules/fprintf-posix (Files): Likewise.
5991         * modules/obstack-printf-posix (Files): Likewise.
5992         * modules/snprintf-posix (Files): Likewise.
5993         * modules/sprintf-posix (Files): Likewise.
5994         * modules/vasnprintf (Files): Likewise.
5995         * modules/vasnprintf-posix (Files): Likewise.
5996         * modules/vasprintf-posix (Files): Likewise.
5997         * modules/vdprintf-posix (Files): Likewise.
5998         * modules/vfprintf-posix (Files): Likewise.
5999         * modules/vsnprintf-posix (Files): Likewise.
6000         * modules/vsprintf-posix (Files): Likewise.
6001         * modules/unistdio/u8-vasnprintf (Files): Likewise.
6002         * modules/unistdio/u8-u8-vasnprintf (Files): Likewise.
6003         * modules/unistdio/u16-vasnprintf (Files): Likewise.
6004         * modules/unistdio/u16-u16-vasnprintf (Files): Likewise.
6005         * modules/unistdio/u32-vasnprintf (Files): Likewise.
6006         * modules/unistdio/u32-u32-vasnprintf (Files): Likewise.
6007         * modules/unistdio/ulc-vasnprintf (Files): Likewise.
6008
6009         isnanl[-nolibm]: Fix for platforms where 'long double' == 'double'.
6010         * lib/isnan.c (rpl_isnanl): Don't blindly assume 80-bit 'long double'.
6011         * m4/isnanl.m4 (gl_PREREQ_ISNANL): Require gl_LONG_DOUBLE_VS_DOUBLE.
6012         (gl_FUNC_ISNANL_WORKS): Likewise. Don't blindly assume 80-bit
6013         'long double'.
6014         * modules/isnanl-nolibm (Files): Add m4/math_h.m4.
6015
6016         isinf: Fix for platforms where 'long double' == 'double'.
6017         * m4/isinf.m4 (gl_ISINFL_WORKS): Require gl_LONG_DOUBLE_VS_DOUBLE.
6018         Don't blindly assume 80-bit 'long double'.
6019
6020         isfinite: Fix for platforms where 'long double' == 'double'.
6021         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Require gl_LONG_DOUBLE_VS_DOUBLE.
6022         Don't blindly assume 80-bit 'long double'.
6023
6024         isfinite, isinf, isnan tests: Avoid syntax error on MSVC 9.
6025         * m4/math_h.m4 (gl_LONG_DOUBLE_VS_DOUBLE): New macro.
6026         * modules/isfinite-tests (configure.ac): Require
6027         gl_LONG_DOUBLE_VS_DOUBLE.
6028         * modules/isinf-tests (configure.ac): Likewise.
6029         * modules/isnan-tests (configure.ac): Likewise.
6030         * modules/isnanl-tests (configure.ac): Likewise.
6031         * modules/isnanl-nolibm-tests (configure.ac): Likewise.
6032         * tests/test-isfinite.c (test_isfinitel): Avoid 80-bit long double
6033         tests on platforms where 'long double' is the same as 'double'.
6034         * tests/test-isinf.c (test_isinfl): Likewise.
6035         * tests/test-isnan.c (test_long_double): Likewise.
6036         * tests/test-isnanl.h (main): Likewise.
6037
6038 2011-10-08  Bruno Haible  <bruno@clisp.org>
6039
6040         Tests for module 'tanhf'.
6041         * modules/tanhf-tests: New file.
6042         * tests/test-tanhf.c: New file.
6043
6044         New module 'tanhf'.
6045         * lib/math.in.h (tanhf): New declaration.
6046         * lib/tanhf.c: New file.
6047         * m4/tanhf.m4: New file.
6048         * m4/math_h.m4 (gl_MATH_H): Test whether tanhf is declared.
6049         (gl_MATH_H_DEFAULTS): Initialize GNULIB_TANHF, HAVE_TANHF.
6050         * modules/math (Makefile.am): Substitute GNULIB_TANHF, HAVE_TANHF.
6051         * modules/tanhf: New file.
6052         * tests/test-math-c++.cc: Check the declaration of tanhf.
6053         * doc/posix-functions/tanhf.texi: Mention the new module.
6054
6055         tanh: Use a .m4 file.
6056         * m4/tanh.m4: New file.
6057         * modules/tanh (Files): Add it.
6058         (configure.ac): Just invoke gl_FUNC_TANH.
6059
6060 2011-10-08  Bruno Haible  <bruno@clisp.org>
6061
6062         Tests for module 'coshf'.
6063         * modules/coshf-tests: New file.
6064         * tests/test-coshf.c: New file.
6065
6066         New module 'coshf'.
6067         * lib/math.in.h (coshf): New declaration.
6068         * lib/coshf.c: New file.
6069         * m4/coshf.m4: New file.
6070         * m4/math_h.m4 (gl_MATH_H): Test whether coshf is declared.
6071         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COSHF, HAVE_COSHF.
6072         * modules/math (Makefile.am): Substitute GNULIB_COSHF, HAVE_COSHF.
6073         * modules/coshf: New file.
6074         * tests/test-math-c++.cc: Check the declaration of coshf.
6075         * doc/posix-functions/coshf.texi: Mention the new module.
6076
6077         cosh: Use a .m4 file.
6078         * m4/cosh.m4: New file.
6079         * modules/cosh (Files): Add it.
6080         (configure.ac): Just invoke gl_FUNC_COSH.
6081
6082 2011-10-08  Bruno Haible  <bruno@clisp.org>
6083
6084         Tests for module 'sinhf'.
6085         * modules/sinhf-tests: New file.
6086         * tests/test-sinhf.c: New file.
6087
6088         New module 'sinhf'.
6089         * lib/math.in.h (sinhf): New declaration.
6090         * lib/sinhf.c: New file.
6091         * m4/sinhf.m4: New file.
6092         * m4/math_h.m4 (gl_MATH_H): Test whether sinhf is declared.
6093         (gl_MATH_H_DEFAULTS): Initialize GNULIB_SINHF, HAVE_SINHF.
6094         * modules/math (Makefile.am): Substitute GNULIB_SINHF, HAVE_SINHF.
6095         * modules/sinhf: New file.
6096         * tests/test-math-c++.cc: Check the declaration of sinhf.
6097         * doc/posix-functions/sinhf.texi: Mention the new module.
6098
6099         sinh: Use a .m4 file.
6100         * m4/sinh.m4: New file.
6101         * modules/sinh (Files): Add it.
6102         (configure.ac): Just invoke gl_FUNC_SINH.
6103
6104 2011-10-08  Bruno Haible  <bruno@clisp.org>
6105
6106         Tests for module 'atan2f'.
6107         * modules/atan2f-tests: New file.
6108         * tests/test-atan2f.c: New file.
6109
6110         New module 'atan2f'.
6111         * lib/math.in.h (atan2f): New declaration.
6112         * lib/atan2f.c: New file.
6113         * m4/atan2f.m4: New file.
6114         * m4/math_h.m4 (gl_MATH_H): Test whether atan2f is declared.
6115         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ATAN2F, HAVE_ATAN2F.
6116         * modules/math (Makefile.am): Substitute GNULIB_ATAN2F, HAVE_ATAN2F.
6117         * modules/atan2f: New file.
6118         * tests/test-math-c++.cc: Check the declaration of atan2f.
6119         * doc/posix-functions/atan2f.texi: Mention the new module.
6120
6121         atan2: Use a .m4 file.
6122         * m4/atan2.m4: New file.
6123         * modules/atan2 (Files): Add it.
6124         (configure.ac): Just invoke gl_FUNC_ATAN2.
6125
6126 2011-10-08  Bruno Haible  <bruno@clisp.org>
6127
6128         Tests for module 'atanf'.
6129         * modules/atanf-tests: New file.
6130         * tests/test-atanf.c: New file.
6131
6132         New module 'atanf'.
6133         * lib/math.in.h (atanf): New declaration.
6134         * lib/atanf.c: New file.
6135         * m4/atanf.m4: New file.
6136         * m4/math_h.m4 (gl_MATH_H): Test whether atanf is declared.
6137         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ATANF, HAVE_ATANF.
6138         * modules/math (Makefile.am): Substitute GNULIB_ATANF, HAVE_ATANF.
6139         * modules/atanf: New file.
6140         * tests/test-math-c++.cc: Check the declaration of atanf.
6141         * doc/posix-functions/atanf.texi: Mention the new module.
6142
6143         atan: Use a .m4 file.
6144         * m4/atan.m4: New file.
6145         * modules/atan (Files): Add it.
6146         (configure.ac): Just invoke gl_FUNC_ATAN.
6147
6148 2011-10-08  Bruno Haible  <bruno@clisp.org>
6149
6150         Tests for module 'acosf'.
6151         * modules/acosf-tests: New file.
6152         * tests/test-acosf.c: New file.
6153
6154         New module 'acosf'.
6155         * lib/math.in.h (acosf): New declaration.
6156         * lib/acosf.c: New file.
6157         * m4/acosf.m4: New file.
6158         * m4/math_h.m4 (gl_MATH_H): Test whether acosf is declared.
6159         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ACOSF, HAVE_ACOSF.
6160         * modules/math (Makefile.am): Substitute GNULIB_ACOSF, HAVE_ACOSF.
6161         * modules/acosf: New file.
6162         * tests/test-math-c++.cc: Check the declaration of acosf.
6163         * doc/posix-functions/acosf.texi: Mention the new module.
6164
6165         acos: Use a .m4 file.
6166         * m4/acos.m4: New file.
6167         * modules/acos (Files): Add it.
6168         (configure.ac): Just invoke gl_FUNC_ACOS.
6169
6170 2011-10-08  Bruno Haible  <bruno@clisp.org>
6171
6172         Tests for module 'asinf'.
6173         * modules/asinf-tests: New file.
6174         * tests/test-asinf.c: New file.
6175
6176         New module 'asinf'.
6177         * lib/math.in.h (asinf): New declaration.
6178         * lib/asinf.c: New file.
6179         * m4/asinf.m4: New file.
6180         * m4/math_h.m4 (gl_MATH_H): Test whether asinf is declared.
6181         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ASINF, HAVE_ASINF.
6182         * modules/math (Makefile.am): Substitute GNULIB_ASINF, HAVE_ASINF.
6183         * modules/asinf: New file.
6184         * tests/test-math-c++.cc: Check the declaration of asinf.
6185         * doc/posix-functions/asinf.texi: Mention the new module.
6186
6187         asin: Use a .m4 file.
6188         * m4/asin.m4: New file.
6189         * modules/asin (Files): Add it.
6190         (configure.ac): Just invoke gl_FUNC_ASIN.
6191
6192 2011-10-08  Bruno Haible  <bruno@clisp.org>
6193
6194         Tests for module 'tanf'.
6195         * modules/tanf-tests: New file.
6196         * tests/test-tanf.c: New file.
6197
6198         New module 'tanf'.
6199         * lib/math.in.h (tanf): New declaration.
6200         * lib/tanf.c: New file.
6201         * m4/tanf.m4: New file.
6202         * m4/math_h.m4 (gl_MATH_H): Test whether tanf is declared.
6203         (gl_MATH_H_DEFAULTS): Initialize GNULIB_TANF, HAVE_TANF.
6204         * modules/math (Makefile.am): Substitute GNULIB_TANF, HAVE_TANF.
6205         * modules/tanf: New file.
6206         * tests/test-math-c++.cc: Check the declaration of tanf.
6207         * doc/posix-functions/tanf.texi: Mention the new module.
6208
6209         tan: Use a .m4 file.
6210         * m4/tan.m4: New file.
6211         * modules/tan (Files): Add it.
6212         (configure.ac): Just invoke gl_FUNC_TAN.
6213
6214 2011-10-08  Bruno Haible  <bruno@clisp.org>
6215
6216         Tests for module 'cosf'.
6217         * modules/cosf-tests: New file.
6218         * tests/test-cosf.c: New file.
6219
6220         New module 'cosf'.
6221         * lib/math.in.h (cosf): New declaration.
6222         * lib/cosf.c: New file.
6223         * m4/cosf.m4: New file.
6224         * m4/math_h.m4 (gl_MATH_H): Test whether cosf is declared.
6225         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COSF, HAVE_COSF.
6226         * modules/math (Makefile.am): Substitute GNULIB_COSF, HAVE_COSF.
6227         * modules/cosf: New file.
6228         * tests/test-math-c++.cc: Check the declaration of cosf.
6229         * doc/posix-functions/cosf.texi: Mention the new module.
6230
6231         cos: Use a .m4 file.
6232         * m4/cos.m4: New file.
6233         * modules/cos (Files): Add it.
6234         (configure.ac): Just invoke gl_FUNC_COS.
6235
6236 2011-10-08  Bruno Haible  <bruno@clisp.org>
6237
6238         Tests for module 'sinf'.
6239         * modules/sinf-tests: New file.
6240         * tests/test-sinf.c: New file.
6241
6242         New module 'sinf'.
6243         * lib/math.in.h (sinf): New declaration.
6244         * lib/sinf.c: New file.
6245         * m4/sinf.m4: New file.
6246         * m4/math_h.m4 (gl_MATH_H): Test whether sinf is declared.
6247         (gl_MATH_H_DEFAULTS): Initialize GNULIB_SINF, HAVE_SINF.
6248         * modules/math (Makefile.am): Substitute GNULIB_SINF, HAVE_SINF.
6249         * modules/sinf: New file.
6250         * tests/test-math-c++.cc: Check the declaration of sinf.
6251         * doc/posix-functions/sinf.texi: Mention the new module.
6252
6253         sin: Use a .m4 file.
6254         * m4/sin.m4: New file.
6255         * modules/sin (Files): Add it.
6256         (configure.ac): Just invoke gl_FUNC_SIN.
6257
6258 2011-10-08  Bruno Haible  <bruno@clisp.org>
6259
6260         Tests for module 'powf'.
6261         * modules/powf-tests: New file.
6262         * tests/test-powf.c: New file.
6263
6264         New module 'powf'.
6265         * lib/math.in.h (powf): New declaration.
6266         * lib/powf.c: New file.
6267         * m4/powf.m4: New file.
6268         * m4/math_h.m4 (gl_MATH_H): Test whether powf is declared.
6269         (gl_MATH_H_DEFAULTS): Initialize GNULIB_POWF, HAVE_POWF.
6270         * modules/math (Makefile.am): Substitute GNULIB_POWF, HAVE_POWF.
6271         * modules/powf: New file.
6272         * tests/test-math-c++.cc: Check the declaration of powf.
6273         * doc/posix-functions/powf.texi: Mention the new module.
6274
6275         pow: Use a .m4 file.
6276         * m4/pow.m4: New file.
6277         * modules/pow (Files): Add it.
6278         (configure.ac): Just invoke gl_FUNC_POW.
6279
6280 2011-10-08  Bruno Haible  <bruno@clisp.org>
6281
6282         Tests for module 'log10f'.
6283         * modules/log10f-tests: New file.
6284         * tests/test-log10f.c: New file.
6285
6286         New module 'log10f'.
6287         * lib/math.in.h (log10f): New declaration.
6288         * lib/log10f.c: New file.
6289         * m4/log10f.m4: New file.
6290         * m4/math_h.m4 (gl_MATH_H): Test whether log10f is declared.
6291         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG10F, HAVE_LOG10F.
6292         * modules/math (Makefile.am): Substitute GNULIB_LOG10F, HAVE_LOG10F.
6293         * modules/log10f: New file.
6294         * tests/test-math-c++.cc: Check the declaration of log10f.
6295         * doc/posix-functions/log10f.texi: Mention the new module.
6296
6297         log10: Use a .m4 file.
6298         * m4/log10.m4: New file.
6299         * modules/log10 (Files): Add it.
6300         (configure.ac): Just invoke gl_FUNC_LOG10.
6301
6302 2011-10-08  Bruno Haible  <bruno@clisp.org>
6303
6304         Tests for module 'logf'.
6305         * modules/logf-tests: New file.
6306         * tests/test-logf.c: New file.
6307
6308         New module 'logf'.
6309         * lib/math.in.h (logf): New declaration.
6310         * lib/logf.c: New file.
6311         * m4/logf.m4: New file.
6312         * m4/math_h.m4 (gl_MATH_H): Test whether logf is declared.
6313         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOGF, HAVE_LOGF.
6314         * modules/math (Makefile.am): Substitute GNULIB_LOGF, HAVE_LOGF.
6315         * modules/logf: New file.
6316         * tests/test-math-c++.cc: Check the declaration of logf.
6317         * doc/posix-functions/logf.texi: Mention the new module.
6318
6319         log: Use a .m4 file.
6320         * m4/log.m4: New file.
6321         * modules/log (Files): Add it.
6322         (configure.ac): Just invoke gl_FUNC_LOG.
6323
6324 2011-10-08  Bruno Haible  <bruno@clisp.org>
6325
6326         Tests for module 'expf'.
6327         * modules/expf-tests: New file.
6328         * tests/test-expf.c: New file.
6329
6330         New module 'expf'.
6331         * lib/math.in.h (expf): New declaration.
6332         * lib/expf.c: New file.
6333         * m4/expf.m4: New file.
6334         * m4/math_h.m4 (gl_MATH_H): Test whether expf is declared.
6335         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXPF, HAVE_EXPF.
6336         * modules/math (Makefile.am): Substitute GNULIB_EXPF, HAVE_EXPF.
6337         * modules/expf: New file.
6338         * tests/test-math-c++.cc: Check the declaration of expf.
6339         * doc/posix-functions/expf.texi: Mention the new module.
6340
6341         exp: Use a .m4 file.
6342         * m4/exp.m4: New file.
6343         * modules/exp (Files): Add it.
6344         (configure.ac): Just invoke gl_FUNC_EXP.
6345
6346 2011-10-08  Bruno Haible  <bruno@clisp.org>
6347
6348         Tests for module 'sqrtf'.
6349         * modules/sqrtf-tests: New file.
6350         * tests/test-sqrtf.c: New file.
6351
6352         New module 'sqrtf'.
6353         * lib/math.in.h (sqrtf): New declaration.
6354         * lib/sqrtf.c: New file.
6355         * m4/sqrtf.m4: New file.
6356         * m4/math_h.m4 (gl_MATH_H): Test whether sqrtf is declared.
6357         (gl_MATH_H_DEFAULTS): Initialize GNULIB_SQRTF, HAVE_SQRTF.
6358         * modules/math (Makefile.am): Substitute GNULIB_SQRTF, HAVE_SQRTF.
6359         * modules/sqrtf: New file.
6360         * tests/test-math-c++.cc: Check the declaration of sqrtf.
6361         * doc/posix-functions/sqrtf.texi: Mention the new module.
6362
6363 2011-10-08  Bruno Haible  <bruno@clisp.org>
6364
6365         Tests: Avoid link failures w.r.t. libintl.
6366         * modules/faccessat-tests (Makefile.am): Link test-faccessat against
6367         $(LIBINTL).
6368         * modules/fchdir-tests (Makefile.am): Link test-fchdir against
6369         $(LIBINTL).
6370         * modules/getcwd-lgpl-tests (Makefile.am): Link test-getcwd-lgpl
6371         against $(LIBINTL).
6372         * modules/getcwd-tests (Makefile.am): Link test-getcwd against
6373         $(LIBINTL).
6374         * modules/openat-tests (Makefile.am): Link test-fchmodat against
6375         $(LIBINTL).
6376         * modules/stat-tests (Makefile.am): Link test-stat against $(LIBINTL).
6377
6378 2011-10-08  Bruno Haible  <bruno@clisp.org>
6379
6380         pow tests: Defeat compiler optimizations.
6381         * tests/test-pow.c (main): Assign arguments to x and y before use.
6382
6383 2011-10-08  Bruno Haible  <bruno@clisp.org>
6384
6385         gnulib-tool: Improve last commit.
6386         * gnulib-tool (func_modules_transitive_closure): Simplify code.
6387         (func_emit_autoconf_snippets): Instead of invoking func_acceptable,
6388         ignore dependencies that are not among the modules list.
6389
6390 2011-10-07  Paul Eggert  <eggert@cs.ucla.edu>
6391
6392         gnulib-tool: don't follow dependencies to avoided modules
6393         This fixes a bug that is related to the previous one.
6394         * gnulib-tool (func_modules_transitive_closure)
6395         (func_emit_autoconf_snippets):
6396         Check whether a dependency is acceptable before using it.
6397         (--extract-dependencies): Report an error if --avoid is also used,
6398         since this combination of options is not yet supported.
6399
6400         gnulib-tool: fix typo that broke Emacs on powerpc-apple-darwin9.8.0.
6401         Problem reported by Peter Dyballa in
6402         <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=9696>.
6403         * gnulib-tool (func_emit_autoconf_snippets): Quote with "", not '',
6404         when echoing "$condition".
6405
6406 2011-10-07  Bruno Haible  <bruno@clisp.org>
6407
6408         Fix documentation about math functions on MacOS X.
6409         * doc/posix-functions/exp2.texi: Don't say the function is missing on
6410         MacOS X 10.5.
6411         * doc/posix-functions/fdim.texi: Likewise.
6412         * doc/posix-functions/feclearexcept.texi: Likewise.
6413         * doc/posix-functions/fegetenv.texi: Likewise.
6414         * doc/posix-functions/fegetround.texi: Likewise.
6415         * doc/posix-functions/feholdexcept.texi: Likewise.
6416         * doc/posix-functions/feraiseexcept.texi: Likewise.
6417         * doc/posix-functions/fesetenv.texi: Likewise.
6418         * doc/posix-functions/fesetround.texi: Likewise.
6419         * doc/posix-functions/fetestexcept.texi: Likewise.
6420         * doc/posix-functions/feupdateenv.texi: Likewise.
6421         * doc/posix-functions/fmax.texi: Likewise.
6422         * doc/posix-functions/fmin.texi: Likewise.
6423         * doc/posix-functions/log2.texi: Likewise.
6424         * doc/posix-functions/modff.texi: Likewise.
6425         * doc/posix-functions/nan.texi: Likewise.
6426         * doc/posix-functions/nanf.texi: Likewise.
6427         * doc/posix-functions/nextafterf.texi: Likewise.
6428         * doc/posix-functions/remquo.texi: Likewise.
6429
6430 2011-10-07  Bruno Haible  <bruno@clisp.org>
6431
6432         modff: Drop assumption about library that defines modff.
6433         * m4/modff.m4 (gl_FUNC_MODFF): Use gl_MATHFUNC macro instead of
6434         AC_CHECK_FUNCS.
6435         * modules/modff (Files): Add m4/mathfunc.m4.
6436
6437 2011-10-07  Bernhard Voelker  <mail@bernhard-voelker.de>
6438
6439         raise tests: Avoid a GCC warning.
6440         * tests/test-raise.c (handler): Use _Noreturn.
6441
6442 2011-10-07  Bruno Haible  <bruno@clisp.org>
6443
6444         Tests for module 'ldexpf'.
6445         * modules/ldexpf-tests: New file.
6446         * tests/test-ldexpf.c: New file.
6447
6448         New module 'ldexpf'.
6449         * lib/math.in.h (ldexpf): New declaration.
6450         * lib/ldexpf.c: New file.
6451         * m4/ldexpf.m4: New file.
6452         * m4/math_h.m4 (gl_MATH_H): Test whether ldexpf is declared.
6453         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LDEXPF, HAVE_LDEXPF.
6454         * modules/math (Makefile.am): Substitute GNULIB_LDEXPF, HAVE_LDEXPF.
6455         * modules/ldexpf: New file.
6456         * tests/test-math-c++.cc: Check the declaration of ldexpf.
6457         * doc/posix-functions/ldexpf.texi: Mention the new module.
6458
6459 2011-10-06  Bruno Haible  <bruno@clisp.org>
6460
6461         frexpf: Work around problems on IRIX and mingw.
6462         * lib/math.in.h (frexpf): Consider also REPLACE_FREXPF.
6463         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_FREXPF.
6464         * m4/frexpf.m4 (gl_FUNC_FREXPF_WORKS): New macro.
6465         (gl_FUNC_FREXPF): Invoke it. Set REPLACE_FREXPF.
6466         * modules/frexpf (Depends-on, configure.ac): Consider REPLACE_FREXPF.
6467         * modules/math (Makefile.am): Substitute REPLACE_FREXPF.
6468         * doc/posix-functions/frexpf.texi: Mention the IRIX and mingw problems.
6469
6470 2011-10-06  Bruno Haible  <bruno@clisp.org>
6471
6472         fabsf: Drop assumption about library that defines fabsf.
6473         * m4/fabsf.m4 (gl_FUNC_FABSF): Use gl_MATHFUNC macro instead of
6474         AC_CHECK_FUNCS.
6475         * modules/fabsf (Files): Add m4/mathfunc.m4.
6476
6477 2011-10-06  Bruno Haible  <bruno@clisp.org>
6478
6479         frexpf: Drop assumption about library that defines frexpf.
6480         * m4/mathfunc.m4 (gl_MATHFUNC): Support also the argument types
6481         'int *', 'float *', 'long double *', 'float', 'long double'.
6482         * m4/frexpf.m4 (gl_FUNC_FREXPF): Use gl_MATHFUNC macro instead of
6483         AC_CHECK_FUNCS.
6484         * modules/frexpf (Files): Add m4/mathfunc.m4.
6485
6486         Tests for module 'frexpf'.
6487         * modules/frexpf-tests: New file.
6488         * tests/test-frexpf.c: New file.
6489
6490         New module 'frexpf'.
6491         * lib/math.in.h (frexpf): New declaration.
6492         * lib/frexpf.c: New file.
6493         * m4/frexpf.m4: New file.
6494         * m4/math_h.m4 (gl_MATH_H): Test whether frexpf is declared.
6495         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FREXPF, HAVE_FREXPF.
6496         * modules/math (Makefile.am): Substitute GNULIB_FREXPF, HAVE_FREXPF.
6497         * modules/frexpf: New file.
6498         * tests/test-math-c++.cc: Check the declaration of frexpf.
6499         * doc/posix-functions/frexpf.texi: Mention the new module.
6500
6501 2011-10-06  Bruno Haible  <bruno@clisp.org>
6502
6503         math: Sort function declarations of math.in.h.
6504         * lib/math.in.h (frexp, logb): Move declarations.
6505
6506 2011-10-05  Bruno Haible  <bruno@clisp.org>
6507
6508         Tests for module 'modff'.
6509         * modules/modff-tests: New file.
6510         * tests/test-modff.c: New file.
6511
6512         New module 'modff'.
6513         * lib/math.in.h (modff): New declaration.
6514         * lib/modff.c: New file.
6515         * m4/modff.m4: New file.
6516         * m4/math_h.m4 (gl_MATH_H): Test whether modff is declared.
6517         (gl_MATH_H_DEFAULTS): Initialize GNULIB_MODFF, HAVE_MODFF.
6518         * modules/math (Makefile.am): Substitute GNULIB_MODFF, HAVE_MODFF.
6519         * modules/modff: New file.
6520         * tests/test-math-c++.cc: Check the declaration of modff.
6521         * doc/posix-functions/modff.texi: Mention the new module.
6522
6523         modf tests: Make test sharper.
6524         * tests/test-modf.c (main): Strengthen upper bound.
6525
6526         modf: Use a .m4 file.
6527         * m4/modf.m4: New file.
6528         * modules/modf (Files): Add it.
6529         (configure.ac): Just invoke gl_FUNC_MODF.
6530
6531 2011-10-05  Bruno Haible  <bruno@clisp.org>
6532
6533         Tests for module 'fmodf'.
6534         * modules/fmodf-tests: New file.
6535         * tests/test-fmodf.c: New file.
6536
6537         New module 'fmodf'.
6538         * lib/math.in.h (fmodf): New declaration.
6539         * lib/fmodf.c: New file.
6540         * m4/fmodf.m4: New file.
6541         * m4/math_h.m4 (gl_MATH_H): Test whether fmodf is declared.
6542         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMODF, HAVE_FMODF.
6543         * modules/math (Makefile.am): Substitute GNULIB_FMODF, HAVE_FMODF.
6544         * modules/fmodf: New file.
6545         * tests/test-math-c++.cc: Check the declaration of fmodf.
6546         * doc/posix-functions/fmodf.texi: Mention the new module.
6547
6548         fmod: Use a .m4 file.
6549         * m4/fmod.m4: New file.
6550         * modules/fmod (Files): Add it.
6551         (configure.ac): Just invoke gl_FUNC_FMOD.
6552
6553 2011-10-05  Bruno Haible  <bruno@clisp.org>
6554
6555         Tests for module 'fabsf'.
6556         * modules/fabsf-tests: New file.
6557         * tests/test-fabsf.c: New file.
6558
6559         New module 'fabsf'.
6560         * lib/math.in.h (fabsf): New declaration.
6561         * lib/fabsf.c: New file.
6562         * m4/fabsf.m4: New file.
6563         * m4/math_h.m4 (gl_MATH_H): Test whether fabsf is declared.
6564         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FABSF, HAVE_FABSF.
6565         * modules/math (Makefile.am): Substitute GNULIB_FABSF, HAVE_FABSF.
6566         * modules/fabsf: New file.
6567         * tests/test-math-c++.cc: Check the declaration of fabsf.
6568         * doc/posix-functions/fabsf.texi: Mention the new module.
6569
6570         fabs: Use a .m4 file.
6571         * m4/fabs.m4: New file.
6572         * modules/fabs (Files): Add it.
6573         (configure.ac): Just invoke gl_FUNC_FABS.
6574
6575 2011-10-05  Jim Meyering  <meyering@redhat.com>
6576
6577         file-has-acl: revert both recent changes, 80af92af and 95f7c57f
6578         * lib/file-has-acl.c: While the 2011-10-03 change does fix the
6579         ls -lL regression introduced in coreutils-8.12, it does so at the
6580         cost of an additional stat call in the common case.  Besides, now
6581         that the kernel change that prompted commit 95f7c57f has been reverted
6582         (see https://bugzilla.redhat.com/show_bug.cgi?id=720325#c24)
6583         we have no use for commit 95f7c57f, "file-has-acl: use
6584         acl_extended_file_nofollow if available".
6585
6586 2011-10-03  Kamil Dudka  <kdudka@redhat.com>
6587
6588         file-has-acl: revert unintended change in behavior of ls -L
6589         * lib/file-has-acl.c (acl_extended_file_wrap): New function,
6590         derived from...
6591         (file_has_acl): ...code here.  Call it.
6592         This problem was introduced with 2011-07-22 commit 95f7c57f,
6593         "file-has-acl: use acl_extended_file_nofollow if available".
6594         See http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/28538
6595
6596 2011-10-03  Bruno Haible  <bruno@clisp.org>
6597
6598         poll: Avoid link errors on MSVC.
6599         * m4/poll.m4 (gl_FUNC_POLL): Determine LIB_POLL.
6600         * modules/poll (Depends-on): Add sockets.
6601         (Link): New section.
6602         * NEWS: Mention the change.
6603         * modules/poll-tests (Makefile.am): Link test-poll against $(LIB_POLL).
6604         * modules/poll-h-c++-tests (Makefile.am): Link test-poll-h-c++ against
6605         $(LIB_POLL) instead of $(LIBSOCKET).
6606
6607 2011-10-03  Bruno Haible  <bruno@clisp.org>
6608
6609         sys_select tests: Fix link error on MSVC 9.
6610         * modules/sys_select-c++-tests (Makefile.am): Link test-sys_select-c++
6611         with $(LIB_SELECT) instead of $(LIBSOCKET).
6612
6613 2011-10-03  Bruno Haible  <bruno@clisp.org>
6614
6615         sys_select: Fix compilation error on mingw.
6616         * lib/sys_select.in.h: On native Windows, include <io.h>.
6617
6618 2011-10-03  Bruno Haible  <bruno@clisp.org>
6619
6620         wmemset: Support for MSVC.
6621         * m4/wmemset.m4 (gl_FUNC_WMEMSET): Use a small test program to test
6622         whether wmemset() exists.
6623
6624 2011-10-03  Bruno Haible  <bruno@clisp.org>
6625
6626         wmemmove: Support for MSVC.
6627         * m4/wmemmove.m4 (gl_FUNC_WMEMMOVE): Use a small test program to test
6628         whether wmemmove() exists.
6629
6630 2011-10-03  Bruno Haible  <bruno@clisp.org>
6631
6632         wmemcpy: Support for MSVC.
6633         * m4/wmemcpy.m4 (gl_FUNC_WMEMCPY): Use a small test program to test
6634         whether wmemcpy() exists.
6635
6636 2011-10-03  Bruno Haible  <bruno@clisp.org>
6637
6638         wmemcmp: Support for MSVC.
6639         * m4/wmemcmp.m4 (gl_FUNC_WMEMCMP): Use a small test program to test
6640         whether wmemcmp() exists.
6641
6642 2011-10-03  Bruno Haible  <bruno@clisp.org>
6643
6644         wmemchr: Support for MSVC.
6645         * m4/wmemchr.m4 (gl_FUNC_WMEMCHR): Use a small test program to test
6646         whether wmemchr() exists.
6647
6648 2011-10-03  Bruno Haible  <bruno@clisp.org>
6649
6650         glthread/*, strsignal: Support for MSVC.
6651         * lib/glthread/cond.h: Define WIN32_LEAN_AND_MEAN, so as to avoid
6652         including <winsock.h> on MSVC 9.
6653         * lib/glthread/lock.h: Likewise.
6654         * lib/glthread/thread.h: Likewise.
6655         * lib/glthread/tls.h: Likewise.
6656         * lib/glthread/yield.h: Likewise.
6657         * lib/strsignal.c: Include <string.h> first. Don't include <unistd.h>
6658         if HAVE_UNISTD_H is false.
6659         * m4/strsignal.m4 (gl_PREREQ_STRSIGNAL): Test for <unistd.h>.
6660
6661 2011-10-03  Bruno Haible  <bruno@clisp.org>
6662
6663         nonblocking tests: Fix test failure on OpenBSD/SPARC64.
6664         * tests/test-nonblocking-socket.h (SOCKET_DATA_BLOCK_SIZE) [OpenBSD]:
6665         Set to 100000.
6666
6667 2011-10-03  Bruno Haible  <bruno@clisp.org>
6668
6669         acl: Fix specification.
6670         * lib/file-has-acl.c (file_has_acl): Fix specification.
6671
6672 2011-10-03  Bruno Haible  <bruno@clisp.org>
6673
6674         relocatable-lib[-lgpl]: Avoid expensive /proc access on Linux, Cygwin.
6675         * lib/relocatable.c (ENABLE_COSTLY_RELOCATABLE): New macro.
6676         (compute_curr_prefix, shared_library_fullname,
6677         find_shared_library_fullname, get_shared_library_fullname, relocate):
6678         Use it together with PIC && INSTALLDIR.
6679         Reported by <jojelino@gmail.com>
6680         via Charles Wilson <cygwin@cwilson.fastmail.fm>.
6681
6682 2011-10-01  Jim Meyering  <meyering@redhat.com>
6683
6684         maint.mk: adjust a release-related rule not to require use of gzip
6685         * top/maint.mk (writable-files): Don't hard-code use of .tar.gz.
6686         Instead, check each file in $(DIST_ARCHIVES).  This is better for
6687         projects that build only .tar.xz files.  Also fix an erroneous test.
6688
6689         test-linkat: don't leave behind a temporary file
6690         * tests/test-linkat.c (main): Don't forget to remove a temporary file.
6691         Otherwise, coreutils' "make distcheck" would fail with this:
6692           Only in /c/cu/tests/torture/coreutils/test/\
6693             coreutils-8.13.22-d5caf.old/gnulib-tests: test-linkat.too
6694           make[2]: *** [my-distcheck] Error 1
6695
6696         float, math: add omitted file
6697         * lib/itold.c: Add file, required for yesterday's float change.
6698
6699 2011-10-01  Bruno Haible  <bruno@clisp.org>
6700
6701         isinf: Fix for OpenBSD/x86.
6702         * m4/isinf.m4 (gl_ISINFL_WORKS): Also test the behaviour of isinf on
6703         pseudo-NaNs, pseudo-Infinities, and other non-IEEE values.
6704         * doc/posix-functions/isinf.texi: Mention the problem on OpenBSD/x86.
6705
6706 2011-10-01  Bruno Haible  <bruno@clisp.org>
6707
6708         isfinite: Fix syntax error in configure test.
6709         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Fix syntax error.
6710
6711         isfinite: Fix typo.
6712         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): When cross-compiling, set
6713         gl_cv_func_isfinitel_works, not gl_cv_func_isnanl_works.
6714
6715 2011-10-01  Bruno Haible  <bruno@clisp.org>
6716
6717         nonblocking tests: Fix test failure on Linux/IA-64.
6718         * tests/test-nonblocking-pipe.h (PIPE_DATA_BLOCK_SIZE) [Linux/IA-64]:
6719         Set to 270000.
6720
6721 2011-10-01  Bruno Haible  <bruno@clisp.org>
6722
6723         mkfifoat tests: Fix a test failure on mingw.
6724         * tests/test-mkfifoat.c (main): Allow mkfifoat or test_mknodat to fail
6725         with error ENOSYS.
6726
6727 2011-09-30  Bruno Haible  <bruno@clisp.org>
6728
6729         float, math: Fix 'int' to 'long double' conversion on Linux/SPARC64.
6730         * m4/float_h.m4 (gl_FLOAT_H): Test conversion from 'int' to
6731         'long double'. Set REPLACE_ITOLD.
6732         * lib/float.in.h (_Qp_itoq, _gl_float_fix_itold): New declarations.
6733         * lib/math.in.h (_Qp_itoq, _gl_math_fix_itold): New declarations.
6734         * lib/itold.c: New file.
6735         * modules/float (Files): Add lib/itold.c.
6736         (configure.ac): When REPLACE_ITOLD is 1, arrange to compile itold.c.
6737         (Makefile.am): Substitute REPLACE_ITOLD.
6738         * modules/math (Depends-on): Add float.
6739         (Makefile.am): Substitute REPLACE_ITOLD.
6740         * doc/posix-headers/float.texi: Mention problem on Linux/SPARC64.
6741         * doc/posix-headers/math.texi: Likewise.
6742         * doc/posix-functions/logl.texi: Likewise.
6743
6744 2011-09-30  Bruno Haible  <bruno@clisp.org>
6745
6746         nonblocking tests: Fix test failure on Linux/SPARC (32-bit and 64-bit).
6747         * tests/test-nonblocking-pipe.h (PIPE_DATA_BLOCK_SIZE) [Linux/SPARC]:
6748         Set to 140000.
6749
6750 2011-09-30  Bruno Haible  <bruno@clisp.org>
6751
6752         gnulib-tool: Improve suggestion where to put gl_EARLY invocation.
6753         * gnulib-tool (func_import): If the configure.ac has an AC_PROG_CC_STDC
6754         invocation, say "right after AC_PROG_CC_STDC", not "right after
6755         AC_PROG_CC".
6756         Reported by Gary V. Vaughan <gary@gnu.org>.
6757
6758 2011-09-30  Bruno Haible  <bruno@clisp.org>
6759
6760         Centralize C99 requirement.
6761         * m4/gnulib-common.m4 (gl_PROG_CC_C99): New macro.
6762         * modules/stdarg (configure.ac-early): Invoke it instead of
6763         AC_PROG_CC_STDC.
6764         Reported by Gary V. Vaughan and Paul Eggert.
6765
6766 2011-09-29  Bruno Haible  <bruno@clisp.org>
6767
6768         float: Fix LDBL_MAX value on Linux/PowerPC.
6769         * m4/float_h.m4 (gl_FLOAT_H): Set FLOAT_H and REPLACE_FLOAT_LDBL also
6770         on Linux/PowerPC.
6771         * lib/float.in.h (LDBL_MAX): Redefine also on Linux/PowerPC.
6772         * lib/float.c (gl_LDBL_MAX): Also define on Linux/PowerPC.
6773         * doc/posix-headers/float.texi: Mention Linux/PowerPC as an affected
6774         platform.
6775         Reported by Andreas Metzler <ametzler@downhill.at.eu.org>.
6776
6777 2011-09-29  Bruno Haible  <bruno@clisp.org>
6778
6779         doc: Improve doc about gl_EARLY.
6780         * doc/gnulib-tool.texi (Initial import): Mention where to place an
6781         AC_PROG_CC_STDC invocation.
6782         Reported by Gary V. Vaughan <gary@gnu.org>.
6783
6784 2011-09-28  Bruno Haible  <bruno@clisp.org>
6785
6786         fgetc, fputc, fread, fwrite tests: Fix link error.
6787         * tests/test-fgetc.c (main): Don't invoke gl_msvc_inval_ensure_handler
6788         on non-MSVC platforms.
6789         * tests/test-fputc.c (main): Likewise.
6790         * tests/test-fread.c (main): Likewise.
6791         * tests/test-fwrite.c (main): Likewise.
6792         Reported by Jim Meyering.
6793
6794 2011-09-27  Bruno Haible  <bruno@clisp.org>
6795
6796         fputc, fwrite tests: Avoid test failure on MSVC.
6797         * tests/test-fgetc.c: Include msvc-inval.h.
6798         (main): Invoke gl_msvc_inval_ensure_handler.
6799         * tests/test-fputc.c: Include msvc-inval.h.
6800         (main): Invoke gl_msvc_inval_ensure_handler.
6801         * tests/test-fread.c: Include msvc-inval.h.
6802         (main): Invoke gl_msvc_inval_ensure_handler.
6803         * tests/test-fwrite.c: Include msvc-inval.h.
6804         (main): Invoke gl_msvc_inval_ensure_handler.
6805         * modules/fgetc-tests (Depends-on): Add msvc-inval.
6806         * modules/fputc-tests (Depends-on): Likewise.
6807         * modules/fread-tests (Depends-on): Likewise.
6808         * modules/fwrite-tests (Depends-on): Likewise.
6809
6810 2011-09-27  Bruno Haible  <bruno@clisp.org>
6811
6812         raise: Fix double declaration with modules 'sigprocmask' and 'sigpipe'.
6813         * lib/signal.in.h (GNULIB_defined_signal_blocking): New macro.
6814         (raise): Remove older, duplicated declaration.
6815         (_gl_raise_SIGPIPE): New declaration.
6816         * lib/sigprocmask.c (_gl_raise_SIGPIPE): New function.
6817         (rpl_raise): Remove function.
6818         * lib/raise.c (rpl_raise, raise): Merge into a single function. Handle
6819         a gnulib-defined SIGPIPE here.
6820         * m4/raise.m4 (gl_FUNC_RAISE): Set REPLACE_RAISE also if the module
6821         'sigprocmask' has detected missing signal-blocking and the module
6822         'sigpipe' is enabled.
6823         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>.
6824
6825 2011-09-26  Gijs van Tulder  <gvtulder@gmail.com>
6826
6827         base64-tests: avoid memory leak
6828         * tests/test-base64.c (main): Plug memory leak.
6829
6830         base32: new module
6831         * modules/base32: New module.
6832         * lib/base32.c: New file.
6833         * lib/base32.h: Likewise.
6834         * m4/base32.m4: Likewise.
6835         * modules/base32-tests: New test.
6836         * tests/test-base32.c: Likewise.
6837         * MODULES.html.sh (Misc): Mention it.
6838
6839 2011-09-26  Paul Eggert  <eggert@cs.ucla.edu>
6840
6841         gnulib: use more-standard license notice wording
6842         * gnulib-tool (func_emit_copyright_notice): When emitting a
6843         license notice into a file, use the standard wording as suggested
6844         by the current information for GNU maintainers, except say "file"
6845         rather than "program".  The new wording gives a license version
6846         number, which addresses an issue raised by Glenn Morris in
6847         <http://lists.gnu.org/archive/html/bug-gnulib/2011-09/msg00397.html>.
6848         * m4/onceonly.m4: Use that same wording here, too.
6849
6850         dup2: minor simplification
6851         * m4/dup2.m4 (gl_PREREQ_DUP2): Don't require AC_C_INLINE,
6852         as lib/dup2.c no longer uses 'inline'.
6853
6854 2011-09-25  Bruno Haible  <bruno@clisp.org>
6855
6856         strings: Fix compilation error on MSVC.
6857         * lib/strings.in.h: Include <stddef.h> for size_t.
6858
6859 2011-09-25  Bruno Haible  <bruno@clisp.org>
6860
6861         fflush et al.: Document limitation on MSVC.
6862         * doc/posix-functions/fflush.texi: Document possible crash in handling
6863         mode other than DEFAULT_HANDLING.
6864         * doc/posix-functions/fgetc.texi: Likewise.
6865         * doc/posix-functions/fputc.texi: Likewise.
6866         * doc/posix-functions/fread.texi: Likewise.
6867         * doc/posix-functions/fwrite.texi: Likewise.
6868
6869 2011-09-25  Bruno Haible  <bruno@clisp.org>
6870
6871         msvc-inval: Allow three invalid parameter handling modes.
6872         * lib/msvc-inval.h: Don't include <stdlib.h> here.
6873         (DEFAULT_HANDLING, HAIRY_LIBRARY_HANDLING, SANE_LIBRARY_HANDLING): New
6874         macros.
6875         (gl_msvc_inval_ensure_handler, TRY_MSVC_INVAL, CATCH_MSVC_INVAL,
6876         DONE_MSVC_INVAL): Implement DEFAULT_HANDLING. Treat
6877         SANE_LIBRARY_HANDLING as a no-op.
6878         * lib/msvc-inval.c: Treat SANE_LIBRARY_HANDLING as a no-op. Include
6879         <stdlib.h>.
6880         (gl_msvc_invalid_parameter_handler): Implement DEFAULT_HANDLING.
6881
6882 2011-09-25  Bruno Haible  <bruno@clisp.org>
6883
6884         msvc-inval: Make handler multithread-safe.
6885         * lib/msvc-inval.h (struct gl_msvc_inval_per_thread): New type.
6886         (gl_msvc_inval_restart, gl_msvc_inval_restart_valid): Remove
6887         declarations.
6888         (gl_msvc_inval_current): New declaration.
6889         (TRY_MSVC_INVAL, CATCH_MSVC_INVAL, DONE_MSVC_INVAL) [!_MSC_VER]:
6890         Operate on the structure returned by gl_msvc_inval_current().
6891         * lib/msvc-inval.c (gl_msvc_inval_restart, gl_msvc_inval_restart_valid):
6892         Remove varaiables.
6893         (tls_index, tls_initialized): New variables.
6894         (not_per_thread): New variable.
6895         (gl_msvc_inval_current): New function.
6896         (gl_msvc_invalid_parameter_handler) [!_MSC_VER]: Use the structure
6897         returned by gl_msvc_inval_current().
6898
6899 2011-09-25  Bruno Haible  <bruno@clisp.org>
6900
6901         msvc-inval: Install handler globally.
6902         * lib/msvc-inval.h (STATUS_GNULIB_INVALID_PARAMETER): Define also for
6903         !_MSC_VER.
6904         (gl_msvc_invalid_parameter_handler): Remove declaration.
6905         (gl_msvc_inval_restart_valid, gl_msvc_inval_ensure_handler): New
6906         declarations.
6907         (TRY_MSVC_INVAL, CATCH_MSVC_INVAL, DONE_MSVC_INVAL) [!_MSC_VER]:
6908         Install the handler globally, don't uninstall it.
6909         * lib/msvc-inval.c (gl_msvc_inval_restart_valid): New variable.
6910         (gl_msvc_invalid_parameter_handler): Make static. If the restart is not
6911         currently valid, call RaiseException instead.
6912         (gl_msvc_inval_initialized, gl_msvc_inval_ensure_handler): Define also
6913         for !_MSC_VER.
6914
6915 2011-09-25  Bruno Haible  <bruno@clisp.org>
6916
6917         strerror_r-posix: Fix for MSVC 9.
6918         * lib/strerror_r.c (local_snprintf): New function.
6919         (snprintf): Define to local_snprintf, not to _snprintf.
6920
6921 2011-09-25  Bruno Haible  <bruno@clisp.org>
6922
6923         ftruncate: Support for MSVC 9.
6924         * lib/ftruncate.c: Include errno.h, msvc-inval.h.
6925         (chsize_nothrow): New function.
6926         (chsize): Redefine as a macro.
6927         * m4/ftruncate.m4 (gl_PREREQ_FTRUNCATE): Require AC_C_INLINE.
6928         * modules/ftruncate (Depends-on): Add msvc-inval.
6929
6930 2011-09-25  Bruno Haible  <bruno@clisp.org>
6931
6932         New module 'fstat'.
6933         * lib/sys_stat.in.h (fstat): Declare only if GNULIB_FSTAT is set.
6934         * lib/fstat.c: New file, based on a piece of lib/fchdir.c.
6935         * lib/fchdir.c (rpl_fstat): Remove function.
6936         * m4/fstat.m4: New file.
6937         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't set REPLACE_FSTAT.
6938         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Test whether fstat is
6939         declared.
6940         (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_FSTAT.
6941         * modules/sys_stat (Makefile.am): Substitute GNULIB_FSTAT.
6942         * modules/fstat: New file.
6943         * modules/sys_stat-tests (Depends-on): Remove fstat-tests.
6944         * tests/test-sys_stat-c++.cc (fstat): Check only if GNULIB_TEST_FSTAT
6945         is set.
6946         * doc/posix-functions/fstat.texi: Mention the new module and the
6947         problem on MSVC.
6948         * NEWS: Mention the change.
6949         * modules/acl (Depends-on): Add fstat.
6950         * modules/chdir-safer (Depends-on): Likewise.
6951         * modules/chown (Depends-on): Likewise.
6952         * modules/copy-file (Depends-on): Likewise.
6953         * modules/fchdir (Depends-on): Likewise.
6954         * modules/fdopendir (Depends-on): Likewise.
6955         * modules/fopen (Depends-on): Likewise.
6956         * modules/fts (Depends-on): Likewise.
6957         * modules/getcwd (Depends-on): Likewise.
6958         * modules/isapipe (Depends-on): Likewise.
6959         * modules/linkat (Depends-on): Likewise.
6960         * modules/lseek (Depends-on): Likewise.
6961         * modules/mkdir-p (Depends-on): Likewise.
6962         * modules/open (Depends-on): Likewise.
6963         * modules/openat (Depends-on): Likewise.
6964         * modules/read-file (Depends-on): Likewise.
6965         * modules/renameat (Depends-on): Likewise.
6966         * modules/utimens (Depends-on): Likewise.
6967
6968 2011-09-25  Bruno Haible  <bruno@clisp.org>
6969
6970         linkat: Fix compilation on MSVC 9.
6971         * lib/linkat.c: Don't include <stdint.h>.
6972
6973 2011-09-25  Bruno Haible  <bruno@clisp.org>
6974
6975         fclose: Support for MSVC 9.
6976         * lib/fclose.c: Include msvc-inval.h.
6977         (fclose_nothrow): New function.
6978         (rpl_fclose): Use it.
6979         * modules/fclose (Depends-on): Add msvc-inval.
6980         * doc/posix-functions/fclose.texi: Mention the problem on MSVC.
6981
6982 2011-09-24  Paul Eggert  <eggert@cs.ucla.edu>
6983
6984         dup2: minor simplifications
6985         * lib/dup2.c (ms_windows_dup2): Omit 'inline' as it's not clear
6986         that it's a performance win.
6987         (rpl_dup2): Change "if !((defined _WIN32 || defined __WIN32__) &&
6988         ! defined __CYGWIN__)" to "ifdef F_GETFL".
6989
6990 2011-09-24  Jim Meyering  <meyering@redhat.com>
6991
6992         test-futimens: avoid a warning from gcc -Wshadow
6993         * tests/test-futimens.h (test_futimens): Rename inner local, s/fd/fd0/
6994         to avoid a shadowing warning.
6995
6996 2011-09-24  Bruno Haible  <bruno@clisp.org>
6997
6998         fdopen: Support for MSVC 9.
6999         * m4/fdopen.m4 (gl_FUNC_FDOPEN): Set REPLACE_FDOPEN also if
7000         HAVE_MSVC_INVALID_PARAMETER_HANDLER is 1.
7001         * lib/fdopen.c: Include msvc-inval.h.
7002         (fdopen_nothrow): New function.
7003         (rpl_fdopen): Use it.
7004         * modules/fdopen (Depends-on): Add msvc-inval.
7005         * modules/fclose-tests (Depends-on): Add fdopen.
7006         * modules/fflush-tests (Depends-on): Likewise.
7007         * modules/fgetc-tests (Depends-on): Likewise.
7008         * modules/fputc-tests (Depends-on): Likewise.
7009         * modules/fread-tests (Depends-on): Likewise.
7010         * modules/freopen-tests (Depends-on): Likewise.
7011         * modules/fseeko-tests (Depends-on): Likewise.
7012         * modules/ftello-tests (Depends-on): Likewise.
7013         * modules/fwrite-tests  (Depends-on): Likewise.
7014         * doc/posix-functions/fdopen.texi: Mention the problem on MSVC.
7015
7016 2011-09-24  Bruno Haible  <bruno@clisp.org>
7017
7018         fgetc, fputc, fread, fwrite tests: Avoid compilation error on MSVC.
7019         * modules/fgetc-tests (Depends-on): Add unistd.
7020         * modules/fputc-tests (Depends-on): Likewise.
7021         * modules/fread-tests (Depends-on): Likewise.
7022         * modules/fwrite-tests (Depends-on): Likewise.
7023
7024 2011-09-24  Bruno Haible  <bruno@clisp.org>
7025
7026         dup: Simplify autoconf test.
7027         * m4/dup.m4 (gl_FUNC_DUP): Don't run a test program. Instead, just rely
7028         on gl_MSVC_INVAL's result.
7029
7030 2011-09-24  Bruno Haible  <bruno@clisp.org>
7031
7032         Tests for function fwrite().
7033         * modules/fwrite-tests: New file.
7034         * tests/test-fwrite.c: New file.
7035         * modules/stdio-tests (Depends-on): Add fwrite-tests.
7036
7037         Tests for function fread().
7038         * modules/fread-tests: New file.
7039         * tests/test-fread.c: New file.
7040         * modules/stdio-tests (Depends-on): Add fread-tests.
7041
7042         Activate fputc tests.
7043         * modules/stdio-tests (Depends-on): Add fputc-tests.
7044
7045         Enhance fgetc, fputc tests.
7046         * tests/test-fgetc.c (main): Also test the stream's error indicator.
7047         * tests/test-fputc.c (main): Likewise.
7048
7049 2011-09-24  Bruno Haible  <bruno@clisp.org>
7050
7051         write: Support for MSVC 9.
7052         * lib/unistd.in.h (write): Replace also when GNULIB_UNISTD_H_NONBLOCKING
7053         is not 1.
7054         * lib/write.c (write_nothrow): New function.
7055         (rpl_write): Define also when GNULIB_NONBLOCKING or GNULIB_SIGPIPE is
7056         not 1. Use write_nothrow.
7057         * m4/write.m4 (gl_FUNC_WRITE): Replace read if the platform has an
7058         invalid parameter handler.
7059         (gl_PREREQ_WRITE): New macro.
7060         * modules/write (Depends-on): Add msvc-inval.
7061         (configure.ac): Invoke gl_PREREQ_WRITE.
7062         * doc/posix-functions/write.texi: Mention the problem on MSVC.
7063
7064 2011-09-24  Bruno Haible  <bruno@clisp.org>
7065
7066         read: Fix last commit.
7067         * lib/read.c (read_nothrow): Change return type to 'ssize_t'.
7068
7069 2011-09-24  Bruno Haible  <bruno@clisp.org>
7070
7071         dup2: Fix last commit.
7072         * lib/dup2.c: Restore comments. Treat Cygwin like Unix.
7073         (rpl_dup2): Disable fcntl workaround on native Windows.
7074
7075         sigprocmask: Make code safer.
7076         * lib/sigprocmask.c: Move '#include "msvc-inval.h"' before the code
7077         section that changes macro definitions for this compilation unit.
7078
7079 2011-09-23  Paul Eggert  <eggert@cs.ucla.edu>
7080
7081         dup2: clarify by coalescing Windows-specific material
7082         * lib/dup2.c: Move '#include "msvc-inval.h"' and '#include
7083         "msvc-nothrow.h"' to the Windows-specific section, so that the
7084         Emacs source need not contain these include files.
7085         (ms_windows_dup2): Rename from dup2_nothrow, and move all the
7086         Windows-specific fixes into this function rather than just the
7087         nothrow fix, as this shortens and clarifies the code.  Always
7088         define as a function, as that's a bit cleaner than having it be
7089         sometimes a function and sometimes a macro.
7090         (rpl_dup2): Move the Windows-specific stuff out of here and into
7091         ms_windows_dup2.  Don't protect the Haiku-related fix with
7092         "#if !defined __linux__", as the same code also works around
7093         a Linux kernel bug, and it doesn't add any system calls on any
7094         platform.  Add comment about FreeBSD 6.1.
7095
7096         sigprocmask: move #include directive
7097         * lib/sigprocmask.c: Move '#include "msvc-inval.h"' to the
7098         Windows-specific section, so that the Emacs source need not
7099         contain msvc-inval.h.
7100
7101 2011-09-23  Bruno Haible  <bruno@clisp.org>
7102
7103         read: Support for MSVC 9.
7104         * lib/unistd.in.h (read): Replace also when GNULIB_UNISTD_H_NONBLOCKING
7105         is not 1.
7106         * lib/read.c (read_nothrow): New function.
7107         (rpl_read): Define also when GNULIB_NONBLOCKING is not 1. Use
7108         read_nothrow.
7109         * m4/read.m4 (gl_FUNC_READ): Replace read if the platform has an
7110         invalid parameter handler.
7111         (gl_PREREQ_READ): New macro.
7112         * modules/read (Depends-on): Add msvc-inval.
7113         (configure.ac): Invoke gl_PREREQ_READ.
7114         * doc/posix-functions/read.texi: Mention the problem on MSVC.
7115
7116 2011-09-23  Bruno Haible  <bruno@clisp.org>
7117
7118         close: Support for MSVC 9.
7119         * lib/close.c: Include <errno.h>, msvc-inval.h.
7120         (close_nothrow): New function.
7121         (rpl_close): Use it.
7122         * m4/close.m4 (gl_FUNC_CLOSE): Replace close if the platform has an
7123         invalid parameter handler.
7124         * modules/close (Depends-on): Add msvc-inval.
7125         * modules/dup2-tests (Depends-on): Add close.
7126         * modules/dup3-tests (Depends-on): Likewise.
7127         * modules/fcntl-tests (Depends-on): Likewise.
7128         * modules/spawn-pipe-tests (Depends-on): Likewise.
7129         * modules/unistd-safer-tests (Depends-on): Likewise.
7130         * doc/posix-functions/close.texi: Mention the problem on MSVC.
7131
7132 2011-09-23  Bruno Haible  <bruno@clisp.org>
7133
7134         New module 'dup'.
7135         * lib/unistd.in.h (dup): Declare only if the 'dup' module is in use.
7136         Allow replacement.
7137         * lib/dup.c: New file.
7138         * lib/fchdir.c (rpl_dup): Remove function.
7139         * m4/dup.m4: New file.
7140         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't set REPLACE_DUP here.
7141         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether 'dup' is declared.
7142         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_DUP.
7143         * modules/unistd (Makefile.am): Substitute GNULIB_DUP.
7144         * modules/dup: New file.
7145         * tests/test-unistd-c++.cc: Check the signature of 'dup' only if the
7146         'dup' module is in use.
7147         * modules/fdopendir (Depends-on): Add dup.
7148         * modules/fdutimensat-tests (Depends-on): Likewise.
7149         * modules/fts (Depends-on): Likewise.
7150         * modules/futimens-tests (Depends-on): Likewise.
7151         * modules/posix_spawnp-tests (Depends-on): Likewise.
7152         * modules/unistd-safer-tests (Depends-on): Likewise.
7153         * modules/utimens-tests (Depends-on): Likewise.
7154         * doc/posix-functions/dup.texi: Mention the new module and the problem
7155         on MSVC.
7156
7157 2011-09-23  Bruno Haible  <bruno@clisp.org>
7158
7159         getdtablesize: Support for MSVC 9.
7160         * lib/getdtablesize.c: Include msvc-inval.h.
7161         (_setmaxstdio_nothrow): New function.
7162         (_setmaxstdio): Redefine it.
7163         * m4/getdtablesize.m4 (gl_PREREQ_GETDTABLESIZE): New macro.
7164         * modules/getdtablesize (Depends-on): Add msvc-inval.
7165         (configure.ac): Invoke gl_PREREQ_GETDTABLESIZE.
7166
7167 2011-09-23  Bruno Haible  <bruno@clisp.org>
7168
7169         signal-h: Rename from signal.
7170         * modules/signal-h: Renamed from modules/signal.
7171         * modules/pthread_sigmask (Depends-on): Update.
7172         * modules/raise (Depends-on): Likewise.
7173         * modules/sigaction (Depends-on): Likewise.
7174         * modules/sigpipe (Depends-on): Likewise.
7175         * modules/sigprocmask (Depends-on): Likewise.
7176         * modules/sys_select (Depends-on): Likewise.
7177         * modules/signal-h-tests: Renamed from modules/signal-tests.
7178         (Files, Depends-on, Makefile.am): Update.
7179         * tests/test-signal-h.c: Renamed from tests/test-signal.c.
7180         * modules/signal-h-c++-tests: Renamed from modules/signal-c++-tests.
7181         (Files, Makefile.am): Update.
7182         * tests/test-signal-h-c++.cc: Renamed from tests/test-signal-c++.cc.
7183         * tests/test-signal-h-c++2.cc: Renamed from tests/test-signal-c++2.cc.
7184         * modules/signal: New placeholder file.
7185         * MODULES.html.sh (Support for systems lacking POSIX:2008): Update.
7186         * doc/posix-headers/signal.texi: Update.
7187         * NEWS: Mention the change.
7188
7189 2011-09-23  Bruno Haible  <bruno@clisp.org>
7190
7191         sigprocmask: Avoid crashes through signal() on MSVC 9.
7192         * lib/sigprocmask.c: Include msvc-inval.h.
7193         (signal_nothrow): New function.
7194         (signal): Redefine it.
7195         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Require AC_C_INLINE.
7196         * modules/sigprocmask (Depends-on): Add msvc-inval.
7197         * doc/posix-functions/signal.texi: Mention the problem on MSVC.
7198
7199 2011-09-23  Bruno Haible  <bruno@clisp.org>
7200
7201         Tests for module 'raise'.
7202         * modules/raise-tests: New file.
7203         * tests/test-raise.c: New file.
7204
7205         raise: Support for MSVC.
7206         * lib/signal.in.h (raise): New declaration.
7207         * lib/raise.c (raise_nothrow, rpl_raise): New alternate implementation
7208         for native Windows platforms.
7209         * m4/raise.m4: New file.
7210         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize GNULIB_RAISE,
7211         HAVE_RAISE, REPLACE_RAISE.
7212         * modules/signal (Makefile.am): Substitute GNULIB_RAISE, HAVE_RAISE,
7213         REPLACE_RAISE.
7214         * modules/raise (Status, Notice): Remove fields.
7215         (Files): Add m4/raise.m4.
7216         (Depends-on): Add signal, msvc-inval.
7217         (configure.ac): Use the common idioms.
7218         (Maintainer): Add me.
7219         * tests/test-signal-c++.cc: Check the signature of raise.
7220         * doc/posix-functions/raise.texi: Mention the problem on MSVC.
7221
7222 2011-09-23  Bruno Haible  <bruno@clisp.org>
7223
7224         pipe2: Fix compilation on pre-C99 compilers.
7225         * lib/pipe2.c (pipe2): Surround verify(...) declaration with braces.
7226
7227 2011-09-23  Bruno Haible  <bruno@clisp.org>
7228
7229         New module 'msvc-nothrow'. Makes _get_osfhandle safe on MSVC 9.
7230         * lib/msvc-nothrow.h: New file.
7231         * lib/msvc-nothrow.c: New file.
7232         * m4/msvc-nothrow.m4: New file.
7233         * modules/msvc-nothrow: New file.
7234         * lib/dup2.c: Include msvc-nothrow.h.
7235         (rpl_dup2): No need to protect _get_osfhandle call here.
7236         * lib/accept4.c: Include msvc-nothrow.h.
7237         * lib/error.c: Likewise.
7238         * lib/fcntl.c: Likewise.
7239         * lib/lseek.c: Likewise.
7240         * lib/nonblocking.c: Likewise.
7241         * lib/poll.c: Likewise.
7242         * lib/read.c: Likewise.
7243         * lib/select.c: Likewise.
7244         * lib/sockets.h: Likewise.
7245         * lib/sockets.c: Likewise.
7246         * lib/stdio-read.c: Likewise.
7247         * lib/stdio-write.c: Likewise.
7248         * lib/write.c: Likewise.
7249         * lib/w32sock.h: Likewise.
7250         * lib/w32spawn.h: Likewise.
7251         * lib/flock.c: Include msvc-nothrow.h instead of <io.h>.
7252         * lib/fsync.c: Likewise.
7253         * lib/isapipe.c: Likewise.
7254         * modules/dup2 (Depends-on): Add msvc-nothrow.
7255         * modules/accept4 (Depends-on): Likewise.
7256         * modules/error (Depends-on): Likewise.
7257         * modules/fcntl (Depends-on): Likewise.
7258         * modules/lseek (Depends-on): Likewise.
7259         * modules/nonblocking (Depends-on): Likewise.
7260         * modules/poll (Depends-on): Likewise.
7261         * modules/read (Depends-on): Likewise.
7262         * modules/select (Depends-on): Likewise.
7263         * modules/sockets (Depends-on): Likewise.
7264         * modules/sigpipe (Depends-on): Likewise.
7265         * modules/write (Depends-on): Likewise.
7266         * modules/accept (Depends-on): Likewise.
7267         * modules/bind (Depends-on): Likewise.
7268         * modules/connect (Depends-on): Likewise.
7269         * modules/gethostname (Depends-on): Likewise.
7270         * modules/getpeername (Depends-on): Likewise.
7271         * modules/getsockname (Depends-on): Likewise.
7272         * modules/getsockopt (Depends-on): Likewise.
7273         * modules/ioctl (Depends-on): Likewise.
7274         * modules/listen (Depends-on): Likewise.
7275         * modules/recv (Depends-on): Likewise.
7276         * modules/recvfrom (Depends-on): Likewise.
7277         * modules/send (Depends-on): Likewise.
7278         * modules/sendto (Depends-on): Likewise.
7279         * modules/setsockopt (Depends-on): Likewise.
7280         * modules/shutdown (Depends-on): Likewise.
7281         * modules/socket (Depends-on): Likewise.
7282         * modules/execute (Depends-on): Likewise.
7283         * modules/spawn-pipe (Depends-on): Likewise.
7284         * modules/flock (Depends-on): Likewise.
7285         * modules/fsync (Depends-on): Likewise.
7286         * modules/isapipe (Depends-on): Likewise.
7287         * tests/test-cloexec.c: Include msvc-nothrow.h.
7288         * tests/test-dup-safer.c: Likewise.
7289         * tests/test-dup2.c: Likewise.
7290         * tests/test-dup3.c: Likewise.
7291         * tests/test-fcntl.c: Likewise.
7292         * tests/test-pipe.c: Likewise.
7293         * tests/test-pipe2.c: Likewise.
7294         * modules/cloexec-tests (Depends-on): Add msvc-nothrow.
7295         * modules/unistd-safer-tests (Depends-on): Likewise.
7296         * modules/dup2-tests (Depends-on): Likewise.
7297         * modules/dup3-tests (Depends-on): Likewise.
7298         * modules/fcntl-tests (Depends-on): Likewise.
7299         * modules/pipe-posix-tests (Depends-on): Likewise.
7300         * modules/pipe2-tests (Depends-on): Likewise.
7301
7302 2011-09-23  Bruno Haible  <bruno@clisp.org>
7303
7304         dup2: Make code more maintainable.
7305         * lib/dup2.c (dup2_nothrow): New function, extracted from rpl_dup2.
7306         (rpl_dup2): Use it.
7307         * m4/dup2.m4 (gl_PREREQ_DUP2): New macro.
7308         * modules/dup2 (configure.ac): Invoke it.
7309         Reported by Paul Eggert.
7310
7311 2011-09-23  Bruno Haible  <bruno@clisp.org>
7312
7313         msvc-inval: Fix compilation error.
7314         * lib/msvc-inval.h: Include <excpt.h>.
7315
7316 2011-09-23  Bruno Haible  <bruno@clisp.org>
7317
7318         mkdir: Tweak for MSVC 9.
7319         * lib/sys_stat.in.h: Update comments.
7320         * doc/posix-functions/mkdir.texi: Mention problem on MSVC 9.
7321
7322         Tests for module 'chdir'.
7323         * modules/chdir-tests: New file.
7324         * tests/test-chdir.c: New file.
7325
7326         New module 'chdir'.
7327         * modules/chdir: New file.
7328         * lib/unistd.in.h: Include <io.h>, <direct.h> also for chdir.
7329         (chdir): New declaration.
7330         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether chdir is declared.
7331         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_CHDIR.
7332         * modules/unistd (Makefile.am): Substitute GNULIB_CHDIR.
7333         * tests/test-unistd-c++.cc: Check signature of chdir.
7334         * doc/posix-functions/chdir.texi: Mention problem on native Windows.
7335         * modules/chdir-long (Depends-on): Add chdir.
7336         * modules/fchdir (Depends-on): Likewise.
7337         * modules/rename (Depends-on): Likewise.
7338         * modules/savewd (Depends-on): Likewise.
7339
7340         rmdir: Support for mingw, MSVC 9.
7341         * lib/unistd.in.h: Include <io.h> and <direct.h> also for rmdir.
7342         * doc/posix-functions/getcwd.texi: Mention problem on native Windows.
7343
7344         getcwd: Tweak for MSVC 9.
7345         * lib/unistd.in.h: Update comments.
7346         * doc/posix-functions/getcwd.texi: Mention problem on MSVC 9.
7347
7348 2011-09-22  Bruno Haible  <bruno@clisp.org>
7349
7350         strerror_r-posix: Avoid a link error on MSVC.
7351         * m4/strerror_r.m4 (gl_PREREQ_STRERROR_R): Check for snprintf.
7352         * lib/strerror_r.c (snprintf): Define to _snprintf if it doesn't exist.
7353
7354 2011-09-22  Bruno Haible  <bruno@clisp.org>
7355
7356         select: Avoid link errors on MSVC.
7357         * m4/select.m4 (gl_FUNC_SELECT): Determine LIB_SELECT.
7358         * modules/select (Link): Replace $(LIBSOCKET) with $(LIB_SELECT).
7359         * modules/pselect (Link): Likewise.
7360         * NEWS: Mention the change.
7361         * modules/select-tests (Makefile.am): Link test-select, test-select-fd,
7362         test-select-stdin against $(LIB_SELECT).
7363         * modules/pselect-tests (Makefile.am): Link test-pselect against
7364         $(LIB_SELECT).
7365
7366 2011-09-22  Bruno Haible  <bruno@clisp.org>
7367
7368         select: Avoid compilation error on MSVC.
7369         * lib/select.c: Don't include <stdbool.h>.
7370
7371 2011-09-21  Bruno Haible  <bruno@clisp.org>
7372
7373         Consolidate all uses of PATH_MAX in *.m4 files.
7374         * m4/pathmax.m4 (gl_PATHMAX_SNIPPET, gl_PATHMAX_SNIPPET_PREREQ): New
7375         macros.
7376         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Use gl_PATHMAX_SNIPPET_PREREQ
7377         and gl_PATHMAX_SNIPPET.
7378         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): Likewise.
7379         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
7380         * modules/chdir-long (Files): Add m4/pathmax.m4.
7381         * modules/getcwd (Files): Likewise.
7382
7383 2011-09-21  Bruno Haible  <bruno@clisp.org>
7384
7385         ftruncate: Un-deprecate, concentrate on Win32 support.
7386         * modules/ftruncate (Status, Notice): Remove sections.
7387         (Depends-on): Add largefile.
7388         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Drop failure message on
7389         non-mingw platforms.
7390         * lib/ftruncate.c: Remove code for the older platforms. For Win32,
7391         include <io.h>.
7392         * modules/perror-tests (Depends-on): Add ftruncate.
7393         * doc/posix-functions/ftruncate.texi: Mention the MSVC problem and the
7394         'ftruncate' module.
7395
7396 2011-09-21  Bruno Haible  <bruno@clisp.org>
7397
7398         Add dependencies to new dirent related modules.
7399         * modules/opendir (Depends-on): Add closedir.
7400         * modules/getcwd (Depends-on): Add opendir, closedir.
7401         * modules/dirent-safer-tests (Depends-on): Likewise.
7402         * modules/fdopendir-tests (Depends-on): Likewise.
7403         * modules/rename-tests (Depends-on): Add opendir, readdir, closedir.
7404         * modules/renameat-tests (Depends-on): Likewise.
7405
7406 2011-09-21  Bruno Haible  <bruno@clisp.org>
7407
7408         opendir: Avoid compilation error on mingw.
7409         * lib/opendir.c: Include <stddef.h> always. Include <unistd.h> as well.
7410         * modules/opendir (Depends-on): Add unistd.
7411
7412 2011-09-21  Bruno Haible  <bruno@clisp.org>
7413
7414         ftruncate tests: Avoid a test failure on mingw.
7415         * tests/test-ftruncate.c (main): Allow a failure with EACCES.
7416
7417 2011-09-21  Bruno Haible  <bruno@clisp.org>
7418
7419         select tests: Avoid test failures on OSF/1 5.1 and mingw.
7420         * tests/test-select.h (test_bad_fd): Disable all tests on OSF/1 and
7421         native Windows.
7422
7423 2011-09-21  Bruno Haible  <bruno@clisp.org>
7424
7425         New module 'fdopen'.
7426         * lib/stdio.in.h (fdopen): New declaration.
7427         * lib/fdopen.c: New file.
7428         * m4/fdopen.m4: New file.
7429         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FDOPEN,
7430         REPLACE_FDOPEN.
7431         * modules/stdio (Makefile.am): Substitute GNULIB_FDOPEN,
7432         REPLACE_FDOPEN.
7433         * modules/fdopen: New file.
7434         * modules/stdio-tests (Depends-on): Remove fdopen-tests.
7435         * tests/test-stdio-c++.cc: Check signature of fdopen.
7436         * doc/posix-functions/fdopen.texi: Mention the new module.
7437
7438 2011-09-21  Bruno Haible  <bruno@clisp.org>
7439
7440         unlockpt tests: Avoid test failure on NetBSD 5.1.
7441         * tests/test-unlockpt.c (main): Skip the EBADF tests on NetBSD.
7442         * doc/posix-functions/unlockpt.texi: Mention the bug on NetBSD.
7443
7444 2011-09-21  Bruno Haible  <bruno@clisp.org>
7445
7446         getlogin, getlogin_r tests: Avoid test failure on Linux/SPARC.
7447         * tests/test-getlogin.c (main): Allow a failure with EINVAL.
7448         * tests/test-getlogin_r.c (main): Likewise.
7449
7450 2011-09-20  Bruno Haible  <bruno@clisp.org>
7451
7452         time tests: Don't require pid_t.
7453         * doc/posix-headers/time.texi: Revert last change.
7454         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Revert last change.
7455         * tests/test-time.c: Comment out the check for pid_t.
7456
7457 2011-09-20  Bruno Haible  <bruno@clisp.org>
7458
7459         fsync tests: Avoid a test failure on mingw.
7460         * tests/test-fsync.c (main): Allow a failure with EIO.
7461
7462 2011-09-20  Bruno Haible  <bruno@clisp.org>
7463
7464         euidaccess: Update comments.
7465         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Update comments.
7466
7467 2011-09-20  Bruno Haible  <bruno@clisp.org>
7468
7469         Ensure EBADF returns for socket functions on mingw.
7470         * lib/accept.c (rpl_accept): Fail with error EBADF if the file
7471         descriptor is invalid.
7472         * lib/bind.c (rpl_bind): Likewise.
7473         * lib/connect.c (rpl_connect): Likewise.
7474         * lib/getpeername.c (rpl_getpeername): Likewise.
7475         * lib/getsockname.c (rpl_getsockname): Likewise.
7476         * lib/getsockopt.c (rpl_getsockopt): Likewise.
7477         * lib/listen.c (rpl_listen): Likewise.
7478         * lib/recv.c (rpl_recv): Likewise.
7479         * lib/recvfrom.c (rpl_recvfrom): Likewise.
7480         * lib/send.c (rpl_send): Likewise.
7481         * lib/sendto.c (rpl_sendto): Likewise.
7482         * lib/setsockopt.c (rpl_setsockopt): Likewise.
7483         * lib/shutdown.c (rpl_shutdown): Likewise.
7484
7485 2011-09-20  Bruno Haible  <bruno@clisp.org>
7486
7487         select tests: EBADF tests.
7488         * tests/test-select.h (do_select_bad_fd, do_select_bad_fd_nowait,
7489         test_bad_fd): New functions.
7490         (test_function): Invoke also test_bad_fd.
7491
7492 2011-09-20  Bruno Haible  <bruno@clisp.org>
7493
7494         Tests for module 'posix_spawn_file_actions_addopen.
7495         * modules/posix_spawn_file_actions_addopen-tests: New file.
7496         * tests/test-posix_spawn_file_actions_addopen.c: New file.
7497
7498         Tests for module 'posix_spawn_file_actions_adddup2'.
7499         * modules/posix_spawn_file_actions_adddup2-tests: New file.
7500         * tests/test-posix_spawn_file_actions_adddup2.c: New file.
7501
7502         Tests for module 'posix_spawn_file_actions_addclose'.
7503         * modules/posix_spawn_file_actions_addclose-tests: New file.
7504         * tests/test-posix_spawn_file_actions_addclose.c: New file.
7505
7506 2011-09-20  Bruno Haible  <bruno@clisp.org>
7507
7508         Tests for module 'unlockpt'.
7509         * modules/unlockpt-tests: New file.
7510         * tests/test-unlockpt.c: New file.
7511         * doc/posix-functions/unlockpt.texi: Mention the Cygwin 1.7 problem.
7512
7513         Tests for module 'grantpt'.
7514         * modules/grantpt-tests: New file.
7515         * tests/test-grantpt.c: New file.
7516         * doc/posix-functions/grantpt.texi: Mention the Cygwin 1.7 problem.
7517
7518 2011-09-20  Bruno Haible  <bruno@clisp.org>
7519
7520         freopen tests: EBADF tests.
7521         * tests/test-freopen.c: Include errno.h, unistd.h.
7522         (main): Add tests for EBADF, commented out for the moment.
7523
7524         fclose tests: EBADF tests.
7525         * tests/test-fclose.c (main): Add tests for EBADF.
7526
7527         fflush tests: EBADF tests.
7528         * tests/test-fflush.c: Include errno.h, macros.h.
7529         (main): Add tests for EBADF.
7530
7531         ftello tests: EBADF tests.
7532         * tests/test-ftello4.sh: New file.
7533         * tests/test-ftello4.c: New file.
7534         * modules/ftello-tests (Files): Add them.
7535         (Makefile.am): Arrange to compile test-ftello4 and run test-ftello4.sh.
7536
7537         fseeko tests: EBADF tests.
7538         * tests/test-fseeko4.sh: New file.
7539         * tests/test-fseeko4.c: New file.
7540         * modules/fseeko-tests (Files): Add them.
7541         (Makefile.am): Arrange to compile test-fseeko4 and run test-fseeko4.sh.
7542
7543         Tests for function fputc().
7544         * modules/fputc-tests: New file.
7545         * tests/test-fputc.c: New file.
7546         * modules/stdio-tests (Depends-on): Add fputc-tests.
7547
7548         Tests for function fgetc().
7549         * modules/fgetc-tests: New file.
7550         * tests/test-fgetc.c: New file.
7551         * modules/stdio-tests (Depends-on): Add fgetc-tests.
7552
7553         Tests for function fdopen().
7554         * modules/fdopen-tests: New file.
7555         * tests/test-fdopen.c: New file.
7556         * modules/stdio-tests (Depends-on): Add fdopen-tests.
7557
7558         Tests for module 'vdprintf'.
7559         * modules/vdprintf-tests: New file.
7560         * tests/test-vdprintf.c: New file.
7561
7562         Tests for module 'dprintf'.
7563         * modules/dprintf-tests: New file.
7564         * tests/test-dprintf.c: New file.
7565
7566 2011-09-20  Bruno Haible  <bruno@clisp.org>
7567
7568         Tests for module 'ioctl'.
7569         * modules/ioctl-tests: New file.
7570         * tests/test-ioctl.c: New file.
7571
7572 2011-09-20  Bruno Haible  <bruno@clisp.org>
7573
7574         fcntl tests: EBADF tests.
7575         * tests/test-fcntl.c (main): Add more tests for EBADF.
7576
7577 2011-09-20  Bruno Haible  <bruno@clisp.org>
7578
7579         utimensat tests: EBADF tests.
7580         * tests/test-utimensat.c (main): Add tests for EBADF.
7581
7582         renameat tests: EBADF tests.
7583         * tests/test-renameat.c (main): Add tests for EBADF.
7584
7585         mkfifoat tests: EBADF tests.
7586         * tests/test-mkfifoat.c (main): Add tests for EBADF.
7587
7588         readlinkat tests: EBADF tests.
7589         * tests/test-readlinkat.c (main): Add tests for EBADF.
7590
7591         symlinkat tests: EBADF tests.
7592         * tests/test-symlinkat.c (main): Add tests for EBADF.
7593
7594         linkat tests: EBADF tests.
7595         * tests/test-linkat.c (main): Add tests for EBADF.
7596
7597         Tests for module 'faccessat'.
7598         * modules/faccessat-tests: New file.
7599         * tests/test-faccessat.c: New file.
7600
7601         fdopendir tests: EBADF tests.
7602         * tests/test-fdopendir.c (main): Add more tests for EBADF.
7603
7604         openat tests: EBADF tests.
7605         * tests/test-fchownat.c (main): Add tests for EBADF.
7606         * tests/test-fstatat.c (main): Likewise.
7607         * tests/test-mkdirat.c (main): Likewise.
7608         * tests/test-openat.c (main): Likewise.
7609         * tests/test-unlinkat.c (main): Likewise.
7610         * tests/test-fchmodat.c: New file.
7611         * modules/openat-tests (Files): Add tests/test-fchmodat.c.
7612         (Makefile.am): Also run 'test-fchmodat'.
7613
7614 2011-09-20  Bruno Haible  <bruno@clisp.org>
7615
7616         utimens, futimens, fdutimensat tests: EBADF tests.
7617         * tests/test-futimens.h (test_futimens): Add more tests for EBADF.
7618
7619         Tests for function fstat().
7620         * modules/fstat-tests: New file.
7621         * tests/test-fstat.c: New file.
7622         * modules/sys_stat-tests (Depends-on): Add fstat-tests.
7623
7624 2011-09-20  Bruno Haible  <bruno@clisp.org>
7625
7626         test-ttyname_r tests: EBADF tests.
7627         * tests/test-ttyname_r.c (main): Add tests for EBADF.
7628
7629         Tests for module 'isatty'.
7630         * modules/isatty-tests: New file.
7631         * tests/test-isatty.c: New file.
7632
7633         Tests for module 'write'.
7634         * modules/write-tests: New file.
7635         * tests/test-write.c: New file.
7636
7637         Tests for module 'read'.
7638         * modules/read-tests: New file.
7639         * tests/test-read.c: New file.
7640
7641         pwrite tests: EBADF tests.
7642         * tests/test-pwrite.c (main): Add tests for EBADF.
7643
7644         pread tests: EBADF tests.
7645         * tests/test-pread.c (main): Add tests for EBADF.
7646
7647         lseek tests: EBADF tests.
7648         * tests/test-lseek.c (main): Add more tests for EBADF.
7649
7650         Tests for module 'ftruncate'.
7651         * modules/ftruncate-tests: New file.
7652         * tests/test-ftruncate.sh: New file.
7653         * tests/test-ftruncate.c: New file.
7654
7655         fsync tests: EBADF tests.
7656         * tests/test-fsync.c (main): Add more tests for EBADF.
7657
7658         fdatasync tests: EBADF tests.
7659         * tests/test-fdatasync.c (main): Add more tests for EBADF.
7660
7661         Tests for module 'fchown'.
7662         * modules/fchown-tests: New file.
7663         * tests/test-fchown.c: New file.
7664
7665         Tests for module 'fchmod'.
7666         * modules/fchmod-tests: New file.
7667         * tests/test-fchmod.c: New file.
7668
7669         fchdir tests: EBADF tests.
7670         * tests/test-fchdir.c (main): Add more tests for EBADF.
7671
7672         dup2 tests: EBADF tests.
7673         * tests/test-dup2.c (main): Add more tests for EBADF.
7674
7675         Tests for module 'dup'.
7676         * modules/dup-tests: New file.
7677         * tests/test-dup.c: New file.
7678
7679         Tests for module 'close'.
7680         * modules/close-tests: New file.
7681         * tests/test-close.c: New file.
7682
7683 2011-09-20  Bruno Haible  <bruno@clisp.org>
7684
7685         Tests for module 'shutdown'.
7686         * modules/shutdown-tests: New file.
7687         * tests/test-shutdown.c: New file.
7688
7689         Tests for module 'setsockopt'.
7690         * modules/setsockopt-tests: New file.
7691         * tests/test-setsockopt.c: New file.
7692
7693         Tests for module 'sendto'.
7694         * modules/sendto-tests: New file.
7695         * tests/test-sendto.c: New file.
7696
7697         Tests for module 'send'.
7698         * modules/send-tests: New file.
7699         * tests/test-send.c: New file.
7700
7701         Tests for module 'recvfrom'.
7702         * modules/recvfrom-tests: New file.
7703         * tests/test-recvfrom.c: New file.
7704
7705         Tests for module 'recv'.
7706         * modules/recv-tests: New file.
7707         * tests/test-recv.c: New file.
7708
7709         Tests for module 'listen'.
7710         * modules/listen-tests: New file.
7711         * tests/test-listen.c: New file.
7712
7713         Tests for module 'getsockopt'.
7714         * modules/getsockopt-tests: New file.
7715         * tests/test-getsockopt.c: New file.
7716
7717         Tests for module 'getsockname'.
7718         * modules/getsockname-tests: New file.
7719         * tests/test-getsockname.c: New file.
7720
7721         Tests for module 'getpeername'.
7722         * modules/getpeername-tests: New file.
7723         * tests/test-getpeername.c: New file.
7724
7725         Tests for module 'connect'.
7726         * modules/connect-tests: New file.
7727         * tests/test-connect.c: New file.
7728
7729         Tests for module 'bind'.
7730         * modules/bind-tests: New file.
7731         * tests/test-bind.c: New file.
7732
7733         accept4 tests: Fix for native Windows.
7734         * tests/test-accept4.c: Include sockets.h.
7735         (main): Invoke gl_sockets_startup.
7736         * modules/accept4-tests (Depends-on): Add sockets.
7737
7738         accept tests: Fix for native Windows.
7739         * tests/test-accept.c: Include sockets.h.
7740         (main): Invoke gl_sockets_startup.
7741         * modules/accept-tests (Depends-on): Add sockets.
7742
7743 2011-09-19  Bruno Haible  <bruno@clisp.org>
7744
7745         msvc-inval: Require a semicolon after DONE_MSVC_INVAL.
7746         * lib/msvc-inval.h (TRY_MSVC_INVAL, DONE_MSVC_INVAL): Wrap in a
7747         do...while(0).
7748         * lib/dup2.c (rpl_dup2): Add a semicolon after DONE_MSVC_INVAL.
7749         Suggested by Paul Eggert.
7750
7751 2011-09-19  Bruno Haible  <bruno@clisp.org>
7752
7753         sched: Ensure pid_t is defined.
7754         * m4/sched_h.m4 (gl_SCHED_H): Arrange to override <sched.h> if it does
7755         not define pid_t.
7756         * lib/sched.in.h: Include <sys/types.h>.
7757         * doc/posix-headers/sched.texi: Mention the pid_t problem.
7758         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
7759
7760 2011-09-19  Bruno Haible  <bruno@clisp.org>
7761
7762         msvc-inval: Ensure the entire expansion is a single statement.
7763         * lib/msvc-inval.h (TRY_MSVC_INVAL, DONE_MSVC_INVAL): Add an extra pair
7764         of braces.
7765
7766 2011-09-19  Jim Meyering  <meyering@redhat.com>
7767
7768         tests: use printf, not echo in init.sh's warn_ function
7769         * tests/init.sh (warn_): Use printf, not echo.  The latter would
7770         misbehave when given strings containing a backslash or starting
7771         with e.g., -n.  James Youngman suggested setting IFS.
7772
7773 2011-09-19  Eric Blake  <eblake@redhat.com>
7774
7775         futimens: enhance test
7776         * tests/test-futimens.h (test_futimens): Also check for EBADF on
7777         closed non-negative fd.
7778
7779         date: accept 'hence' as opposite of 'ago'
7780         * lib/parse-datetime.y (relative_time_table): Add 'hence'.
7781         * tests/test-parse-datetime.c (main): Enhance test.
7782         Suggested by Jesse Wilson.
7783
7784 2011-09-19  Jim Meyering  <meyering@redhat.com>
7785
7786         getcwd: don't fail in a deep directory on a system without openat
7787         Before this change, getcwd would fail when called from a directory
7788         of depth PATH_MAX / 3 or greater.  That was due to the fact that
7789         the non-openat implementation used "..", "../..", "../../..", etc.
7790         to access ancestor directories.  With too many, that string would
7791         be longer than PATH_MAX.
7792         * lib/getcwd.c (HAVE_OPENAT_SUPPORT): Define also when we are
7793         using gnulib's openat replacement.
7794         * m4/openat.m4: Set GNULIB_OPENAT, so getcwd.c knows when
7795         we're using the replacement function.
7796
7797 2011-09-14  Martin von Gagern  <Martin.vGagern@gmx.net>
7798
7799         maint.mk: avoid warnings from perl about missing files
7800         * top/maint.mk (def_sym_regex): Ignore files listed in
7801         $(gl_other_headers_) that do not exist, say because a project
7802         does not use a corresponding module.
7803
7804 2011-09-18  Paul Eggert  <eggert@cs.ucla.edu>
7805
7806         stat: use pathmax.h only if needed
7807         * lib/stat.c: Include pathmax.h only if REPLACE_FUNC_STAT_DIR.
7808         This is better for Emacs, which does not have a mingw port and
7809         therefore can avoid the pathmax module.
7810
7811         utimens: remove dependency on dup2
7812         * lib/utimens.c (fdutimens): Don't invoke dup2; it's not needed
7813         to work around the Linux kernel bug.
7814         * modules/utimens (Depends-on): Remove dup2.
7815
7816 2011-09-18  Bruno Haible  <bruno@clisp.org>
7817
7818         inet_ntop, inet_pton: Look for it also in libresolv.
7819         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): If the function was not found in
7820         libnsl, search for it in libresolv.
7821         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Likewise.
7822         Needed on Solaris 7.
7823
7824 2011-09-18  Bruno Haible  <bruno@clisp.org>
7825
7826         accept, accept4 tests: Avoid link error on Solaris.
7827         * modules/accept-tests (Makefile.am): Link test-accept against
7828         $(LIBSOCKET).
7829         * modules/accept4-tests (Makefile.am): Link test-accept4 against
7830         $(LIBSOCKET).
7831
7832         accept4: Avoid link error on Solaris.
7833         * modules/accept4 (Link): New section.
7834
7835         socket functions: Avoid link errors on Solaris.
7836         * modules/accept (Depends-on): Add socketlib.
7837         (Link): New section.
7838         * modules/bind (Depends-on): Add socketlib.
7839         (Link): New section.
7840         * modules/connect (Depends-on): Add socketlib.
7841         (Link): New section.
7842         * modules/getpeername (Depends-on): Add socketlib.
7843         (Link): New section.
7844         * modules/getsockname (Depends-on): Add socketlib.
7845         (Link): New section.
7846         * modules/getsockopt (Depends-on): Add socketlib.
7847         (Link): New section.
7848         * modules/listen (Depends-on): Add socketlib.
7849         (Link): New section.
7850         * modules/recv (Depends-on): Add socketlib.
7851         (Link): New section.
7852         * modules/recvfrom (Depends-on): Add socketlib.
7853         (Link): New section.
7854         * modules/send (Depends-on): Add socketlib.
7855         (Link): New section.
7856         * modules/sendto (Depends-on): Add socketlib.
7857         (Link): New section.
7858         * modules/setsockopt (Depends-on): Add socketlib.
7859         (Link): New section.
7860         * modules/shutdown (Depends-on): Add socketlib.
7861         (Link): New section.
7862         * modules/socket (Depends-on): Add socketlib.
7863         (Link): New section.
7864
7865 2011-09-18  Bruno Haible  <bruno@clisp.org>
7866
7867         ptsname tests: Let the test fail rather than hang (e.g. on AIX 5.1).
7868         * tests/test-ptsname.c (main): Terminate the test if it takes longer
7869         than 5 seconds.
7870         * modules/ptsname-tests (configure.ac): Test for alarm.
7871
7872 2011-09-18  Bruno Haible  <bruno@clisp.org>
7873
7874         posix_spawn_file_actions_add*: Fix module dependencies.
7875         * modules/posix_spawn_file_actions_addclose (Dependencies): Add
7876         posix_spawn_file_actions_init.
7877         * modules/posix_spawn_file_actions_adddup2 (Dependencies): Likewise.
7878         * modules/posix_spawn_file_actions_addopen (Dependencies): Likewise.
7879
7880 2011-09-18  Bruno Haible  <bruno@clisp.org>
7881
7882         rename, renameat tests: Avoid test failures on FreeBSD 6.4.
7883         * tests/test-rename.h (test_rename): Allow error code EEXIST.
7884         * tests/test-renameat.c (main): Likewise.
7885
7886 2011-09-18  Bruno Haible  <bruno@clisp.org>
7887
7888         Tests for module 'accept4'.
7889         * modules/accept4-tests: New file.
7890         * tests/test-accept4.c: New file.
7891
7892 2011-09-18  Bruno Haible  <bruno@clisp.org>
7893
7894         Tests for module 'accept'.
7895         * modules/accept-tests: New file.
7896         * tests/test-accept.c: New file.
7897
7898 2011-09-18  Bruno Haible  <bruno@clisp.org>
7899
7900         dup2: Support for MSVC.
7901         * lib/dup2.c: Include msvc-inval.h.
7902         (rpl_dup2): Handle invalid parameter notifications during dup2 and
7903         _get_osfhandle calls.
7904         * modules/dup2 (Depends-on): Add msvc-inval.
7905         * doc/posix-functions/dup2.texi: Mention problem on MSVC.
7906
7907         New module 'msvc-inval'.
7908         * lib/msvc-inval.h: New file.
7909         * lib/msvc-inval.c: New file.
7910         * m4/msvc-inval.m4: New file.
7911         * modules/msvc-inval: New file.
7912
7913 2011-09-17  Bruno Haible  <bruno@clisp.org>
7914
7915         Tests for module 'pclose'.
7916         * modules/pclose-tests: New file.
7917
7918         New module 'pclose'.
7919         * lib/stdio.in.h (pclose): New declaration.
7920         * lib/pclose.c: New file.
7921         * m4/pclose.m4: New file.
7922         * m4/stdio_h.m4 (gl_STDIO_H): Test whether pclose is declared.
7923         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_PCLOSE, HAVE_PCLOSE.
7924         * modules/stdio (Makefile.am): Substitute GNULIB_PCLOSE, HAVE_PCLOSE.
7925         * modules/pclose: New file.
7926         * modules/popen-tests (Depends-on): Add pclose.
7927         * modules/popen-safer-tests (Depends-on): Likewise.
7928         * doc/posix-functions/pclose.texi: Mention the new module.
7929
7930 2011-09-17  Bruno Haible  <bruno@clisp.org>
7931
7932         popen: Support for MSVC.
7933         * lib/stdio.in.h (popen): Declare it if the system lacks this function.
7934         * lib/popen.c (popen): Provide alternate definition for native Windows.
7935         * m4/popen.m4 (gl_FUNC_POPEN): Test if popen exists. Set HAVE_POPEN.
7936         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_POPEN.
7937         * modules/popen (Depends-on, configure.ac): Update condition.
7938         * modules/stdio (Makefile.am): Substitute HAVE_POPEN.
7939         * doc/posix-functions/popen.texi: Mention that the MSVC problem is
7940         fixed.
7941
7942 2011-09-17  Bruno Haible  <bruno@clisp.org>
7943
7944         isnanl, isnand, isnanf: Work around MSVC bug.
7945         * lib/isnan.c (FUNC): Use alternate ways of computing NaN and Infinity.
7946
7947 2011-09-17  Bruno Haible  <bruno@clisp.org>
7948
7949         sys_socket tests: Fix recent mistake.
7950         * tests/test-sys_socket.c (t1): Avoid collision of identifiers.
7951
7952 2011-09-17  Bruno Haible  <bruno@clisp.org>
7953
7954         putenv: Support for MSVC.
7955         * modules/putenv (Depends-on): Add environ.
7956         * lib/putenv.c (environ): Disable declaration.
7957         * lib/unistd.in.h: Update comment.
7958
7959 2011-09-17  Bruno Haible  <bruno@clisp.org>
7960
7961         math: Avoid macro redefinition warnings on MSVC.
7962         * lib/math.in.h (ceilf, ceill, floorf, floorl, frexpl, ldexpl):
7963         Undefine before redefining.
7964
7965 2011-09-17  Bruno Haible  <bruno@clisp.org>
7966
7967         doc: Mention functions which are declared as macros.
7968         * doc/posix-functions/*[fl].texi: Mention that some functions are
7969         defined as macros with arguments only.
7970
7971 2011-09-17  Bruno Haible  <bruno@clisp.org>
7972
7973         Add dependencies to new dirent related modules.
7974         * modules/backupfile (Depends-on): Add opendir, readdir, closedir.
7975         * modules/fts (Depends-on): Likewise.
7976         * modules/glob (Depends-on): Likewise.
7977         * modules/savedir (Depends-on): Likewise.
7978         * modules/scandir (Depends-on): Likewise.
7979         * modules/dirent-safer (Depends-on): Add opendir, closedir.
7980         * modules/fdopendir (Depends-on): Add opendir.
7981
7982 2011-09-17  Bruno Haible  <bruno@clisp.org>
7983
7984         inet_pton: Support for MSVC on Windows Vista or newer.
7985         * lib/arpa_inet.in.h (inet_pton): Also consider REPLACE_INET_PTON.
7986         * lib/inet_pton.c (rpl_inet_pton): Use a simple wrapper if
7987         HAVE_DECL_INET_PTON is defined.
7988         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Invoke gl_PREREQ_SYS_H_WINSOCK2.
7989         On platforms with <winsock2.h>, test whether inet_pton is declared in
7990         <ws2tcpip.h>. If so, arrange to replace it.
7991         * m4/arpa_inet_h.m4 (gl_ARPA_INET_H_DEFAULTS): Initialize
7992         REPLACE_INET_PTON.
7993         * modules/arpa_inet (Makefile.am): Substitute REPLACE_INET_PTON.
7994         * modules/inet_pton (Files): Add m4/sys_socket_h.m4.
7995         (Depends-on, configure.ac): Update condition.
7996         * doc/posix-functions/inet_pton.texi: Mention the MSVC problem.
7997
7998 2011-09-17  Bruno Haible  <bruno@clisp.org>
7999
8000         inet_ntop: Support for MSVC on Windows Vista or newer.
8001         * lib/arpa_inet.in.h (inet_ntop): Also consider REPLACE_INET_NTOP.
8002         * lib/inet_ntop.c (rpl_inet_ntop): Use a simple wrapper if
8003         HAVE_DECL_INET_NTOP is defined.
8004         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Invoke gl_PREREQ_SYS_H_WINSOCK2.
8005         On platforms with <winsock2.h>, test whether inet_ntop is declared in
8006         <ws2tcpip.h>. If so, arrange to replace it.
8007         * m4/arpa_inet_h.m4 (gl_ARPA_INET_H_DEFAULTS): Initialize
8008         REPLACE_INET_NTOP.
8009         * modules/arpa_inet (Makefile.am): Substitute REPLACE_INET_NTOP.
8010         * modules/inet_ntop (Files): Add m4/sys_socket_h.m4.
8011         (Depends-on, configure.ac): Update condition.
8012         * doc/posix-functions/inet_ntop.texi: Mention the MSVC problem.
8013
8014 2011-09-16  Eric Blake  <eblake@redhat.com>
8015
8016         test-fsync: yet another enhancement
8017         * tests/test-fsync.c (main): Also test behavior on read-only text
8018         file.
8019
8020 2011-09-16  Bruno Haible  <bruno@clisp.org>
8021
8022         Enhance fsync, fdatasync tests.
8023         * tests/test-fsync.c (main): Test both STDIN_FILENO and STDOUT_FILENO.
8024         * tests/test-fdatasync.c (main): Likewise.
8025
8026 2011-09-16  Bruno Haible  <bruno@clisp.org>
8027
8028         Support for MSVC compiler: Ensure mode_t gets defined.
8029         * m4/fcntl_h.m4 (gl_FCNTL_H): Require AC_TYPE_MODE_T.
8030         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
8031         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
8032         * m4/sys_types_h.m4 (gl_SYS_TYPES_H): Likewise.
8033         * tests/test-fcntl-h.c: Check that mode_t is defined.
8034         * tests/test-sys_stat.c: Likewise.
8035         * tests/test-sys_types.c: Likewise.
8036         * doc/posix-headers/fcntl.texi: Mention the missing mode_t problem.
8037         * doc/posix-headers/sys_stat.texi: Likewise.
8038         * doc/posix-headers/sys_types.texi: Likewise.
8039
8040 2011-09-16  Bruno Haible  <bruno@clisp.org>
8041
8042         sys_stat: Support for MSVC.
8043         * lib/sys_stat.in.h (S_IFIFO): Define to _S_IFIFO if that exists.
8044         * tests/test-sys_stat.c: Don't assume that S_IFBLK exists.
8045         * doc/posix-headers/sys_stat.texi: Mention missing S_IFIFO, S_IFBLK on
8046         MSVC.
8047
8048 2011-09-16  Bruno Haible  <bruno@clisp.org>
8049
8050         Support for MSVC compiler: Ensure off_t gets defined.
8051         * lib/unistd.in.h: Include <sys/types.h>.
8052         * tests/test-fcntl-h.c: Check that off_t is defined.
8053         * tests/test-sys_stat.c: Likewise.
8054         * tests/test-sys_types.c: Likewise.
8055
8056 2011-09-16  Eric Blake  <eblake@redhat.com>
8057
8058         fdatasync: port to Solaris
8059         * m4/fdatasync.m4 (gl_FUNC_FDATASYNC): Set LIB_FDATASYNC.
8060         * modules/fdatasync (Link): Document it.
8061         * modules/fdatasync-tests (test_fdatasync_LDADD): Link with it.
8062
8063         fdatasync: port to MacOS X 10.7
8064         * m4/fdatasync.m4 (gl_FUNC_FDATASYNC): Check for present but not
8065         declared.
8066         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Another default.
8067         * modules/unistd (Makefile.am): Substitute it.
8068         * lib/unistd.in.h (fdatasync): Declare on MacOS.
8069         * doc/posix-functions/fdatasync.texi (fdatasync): Document it.
8070
8071         fdatasync: minor improvements
8072         * modules/fdatasync (Depends-on): Add condition for fsync.
8073         * lib/fdatasync.c (fdatasync): Add comment.
8074         * tests/test-unistd-c++.cc: Test fdatasync.
8075
8076         unistd: update refs to newer POSIX
8077         * lib/unistd.in.h: Prefer POSIX 2008 over 2001.
8078         Suggested by Bruno Haible.
8079
8080         fdatasync: new module
8081         * modules/fsync (Description): Document difference to fdatasync.
8082         * modules/fdatasync: New module.
8083         * m4/fdatasync.m4 (gl_FUNC_FDATASYNC): New file.
8084         * lib/fdatasync.c (fdatasync): Likewise.
8085         * m4/unistd_h.m4 (gl_UNISTD_H, gl_UNISTD_H_DEFAULTS): Set up
8086         defaults.
8087         * modules/unistd (Makefile.am): Set witnesses.
8088         * lib/unistd.in.h (fdatasync): Declare.
8089         * MODULES.html.sh: Document it.
8090         * doc/posix-functions/fdatasync.texi (fdatasync): Likewise.
8091         * modules/fdatasync-tests: New test.
8092         * tests/test-fdatasync.c: Likewise.
8093
8094 2011-09-16  Eric Blake  <eblake@redhat.com>
8095
8096         test-fsync: enhance tests
8097         * modules/fsync-tests (Depends-on): Add errno, for mingw.
8098         * tests/test-fsync.c (main): Enhance test.
8099
8100 2011-09-15  Bruno Haible  <bruno@clisp.org>
8101
8102         Support for MSVC compiler: Ensure ssize_t gets defined.
8103         * doc/posix-headers/sys_types.texi: Mention the missing ssize_t problem.
8104         * doc/posix-headers/stdio.texi: Likewise.
8105         * modules/stdio (Depends-on): Add ssize_t.
8106         * modules/sys_socket (Depends-on): Likewise.
8107         * modules/sys_types (Depends-on): Likewise.
8108         * modules/sys_uio (Depends-on): Likewise.
8109         * modules/unistd (Depends-on): Likewise.
8110         * tests/test-sys_socket.c: Check that size_t and ssize_t are defined.
8111         * tests/test-sys_types.c: Check that ssize_t is defined.
8112
8113 2011-09-14  Bruno Haible  <bruno@clisp.org>
8114
8115         Avoid using #, the m4 comment starter character, near brackets.
8116         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER_ONE): Use |, not #, as
8117         delimiter character in sed expressions.
8118         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): Likewise.
8119         Suggested by Eric Blake.
8120
8121         Properly quote AC_CHECK_DECLS' 4th argument.
8122         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Double-quote AC_CHECK_DECLS' 4th
8123         argument.
8124         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
8125         * m4/ceill.m4 (gl_FUNC_CEILL): Likewise.
8126         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
8127         * m4/floorf.m4 (gl_FUNC_FLOORF): Likewise.
8128         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
8129         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH): Likewise.
8130         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Likewise.
8131         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Likewise.
8132         * m4/gethrxtime.m4 (gl_GETHRXTIME): Likewise.
8133         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
8134         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Likewise.
8135         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Likewise.
8136         * m4/isfinite.m4 (gl_ISFINITE): Likewise.
8137         * m4/isinf.m4 (gl_ISINF): Likewise.
8138         * m4/logb.m4 (gl_FUNC_LOGB): Likewise.
8139         * m4/readutmp.m4 (gl_READUTMP): Likewise.
8140         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
8141         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
8142         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
8143         * m4/roundl.m4 (gl_FUNC_ROUNDL): Likewise.
8144         * m4/signbit.m4 (gl_SIGNBIT): Likewise.
8145         * m4/sleep.m4 (gl_FUNC_SLEEP): Likewise.
8146         * m4/strsignal.m4 (gl_PREREQ_STRSIGNAL): Likewise.
8147         * m4/trunc.m4 (gl_FUNC_TRUNC): Likewise.
8148         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
8149         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
8150         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Likewise.
8151         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
8152         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
8153         Reported by Eric Blake.
8154
8155         Properly quote AC_CHECK_DECL's 4th argument.
8156         * m4/acosl.m4 (gl_FUNC_ACOSL): Double-quote AC_CHECK_DECL's 4th
8157         argument.
8158         * m4/argp.m4 (gl_ARGP): Likewise.
8159         * m4/asinl.m4 (gl_FUNC_ASINL): Likewise.
8160         * m4/atanl.m4 (gl_FUNC_ATANL): Likewise.
8161         * m4/cosl.m4 (gl_FUNC_COSL): Likewise.
8162         * m4/expl.m4 (gl_FUNC_EXPL): Likewise.
8163         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): Likewise.
8164         * m4/getloadavg.m4 (gl_GETLOADAVG): Likewise.
8165         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Likewise.
8166         * m4/logl.m4 (gl_FUNC_LOGL): Likewise.
8167         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
8168         * m4/sinl.m4 (gl_FUNC_SINL): Likewise.
8169         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Likewise.
8170         * m4/tanl.m4 (gl_FUNC_TANL): Likewise.
8171         Reported by Eric Blake.
8172
8173 2011-09-14  Eric Blake  <eblake@redhat.com>
8174
8175         opendir: avoid compile warning
8176         * lib/opendir.c (includes): Always include errno.h.
8177         Reported by Tatsuro MATSUOKA.
8178
8179 2011-09-14  Jim Meyering  <meyering@redhat.com>
8180
8181         maint.mk: sc_tight_scope: propagate failure from sub-make
8182         * top/maint.mk (sc_tight_scope): Actually initialize and use $fail.
8183         Reported by Martin von Gagern.
8184
8185 2011-09-13  Bruno Haible  <bruno@clisp.org>
8186
8187         tempname: Support for MSVC.
8188         * doc/posix-headers/fcntl.texi: Document the problem with O_ACCMODE on
8189         MSVC.
8190         * modules/tempname (Depends-on): Add fcntl-h.
8191
8192 2011-09-13  Bruno Haible  <bruno@clisp.org>
8193
8194         sys_time: Support for MSVC.
8195         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Invoke
8196         gl_PREREQ_SYS_H_WINSOCK2. When testing for 'struct timeval', also
8197         include <winsock2.h>.
8198         * lib/sys_time.in.h: On MSVC, include <winsock2.h> and hide its
8199         function declarations that collide with POSIX.
8200         * modules/sys_time (Files): Add m4/sys_socket_h.m4.
8201         (Makefile.am): Substitute HAVE_WINSOCK2_H.
8202
8203 2011-09-13  Bruno Haible  <bruno@clisp.org>
8204
8205         stat: Support for MSVC.
8206         * lib/stat.c: Include pathmax.h.
8207         * modules/stat (Depends-on): Add pathmax.
8208
8209         pathmax: Support for native Windows.
8210         * lib/pathmax.h (PATH_MAX): Define to 260 on native Windows.
8211
8212 2011-09-12  Bruno Haible  <bruno@clisp.org>
8213
8214         New modules 'opendir', 'readdir', 'rewinddir', 'closedir'.
8215         * lib/dirent.in.h (struct dirent): New type.
8216         (DT_UNKNOWN, DT_FIFO, DT_CHR, DT_DIR, DT_BLK, DT_REG, DT_LNK, DT_SOCK,
8217         DT_WHT): New macros.
8218         (DIR): New type.
8219         (opendir, closedir): Declare only if the module 'opendir' is enabled.
8220         (readdir, rewinddir): New declarations.
8221         * lib/dirent-private.h: New file.
8222         * lib/opendir.c: New file.
8223         * lib/readdir.c: New file.
8224         * lib/rewinddir.c: New file.
8225         * lib/closedir.c: New file.
8226         * lib/fchdir.c (rpl_closedir, rpl_opendir): Remove functions.
8227         * m4/opendir.m4: New file.
8228         * m4/readdir.m4: New file.
8229         * m4/rewinddir.m4: New file.
8230         * m4/closedir.m4: New file.
8231         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't set REPLACE_OPENDIR,
8232         REPLACE_CLOSEDIR here.
8233         * m4/dirent_h.m4 (gl_DIRENT_H): Also check whether closedir, opendir,
8234         readdir, rewinddir are declared.
8235         (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_OPENDIR, GNULIB_READDIR,
8236         GNULIB_REWINDDIR, GNULIB_CLOSEDIR, HAVE_OPENDIR, HAVE_READDIR,
8237         HAVE_REWINDDIR, HAVE_CLOSEDIR.
8238         * modules/dirent (Makefile.am): Substitute GNULIB_OPENDIR,
8239         GNULIB_READDIR, GNULIB_REWINDDIR, GNULIB_CLOSEDIR, HAVE_OPENDIR,
8240         HAVE_READDIR, HAVE_REWINDDIR, HAVE_CLOSEDIR.
8241         * modules/opendir: New file.
8242         * modules/readdir: New file.
8243         * modules/rewinddir: New file.
8244         * modules/closedir: New file.
8245         * doc/posix-functions/opendir.texi: Mention the 'opendir' module.
8246         * doc/posix-functions/readdir.texi: Mention the 'readdir' module.
8247         * doc/posix-functions/rewinddir.texi: Mention the 'rewinddir' module.
8248         * doc/posix-functions/closedir.texi: Mention the 'closedir' module.
8249         * NEWS: Mention the 'fchdir' change.
8250
8251 2011-09-11  Bruno Haible  <bruno@clisp.org>
8252
8253         asm-underscore.m4: Support for MSVC.
8254         * m4/asm-underscore.m4 (gl_C_ASM): New macro.
8255         (gl_ASM_SYMBOL_PREFIX): Require it. Use its results.
8256
8257 2011-09-11  Reuben Thomas  <rrt@sc3d.org>
8258
8259         Doc about crypt functions.
8260         * doc/posix-functions/crypt.texi: Expand range of glibc versions
8261         needing for _GNU_SOURCE to get crypt.
8262         * doc/posix-functions/encrypt.texi: Likewise.
8263         * doc/posix-functions/setkey.texi: Likewise.
8264
8265 2011-09-11  Bruno Haible  <bruno@clisp.org>
8266
8267         doc: Update regarding MSVC 9.
8268         * doc/gnulib-intro.texi (Target Platforms): Classify MSVC as "rarely
8269         tested".
8270         * doc/posix-functions/*.texi: Update with info about MSVC 9.
8271         * doc/posix-headers/*.texi: Likewise.
8272         * doc/pastposix-functions/*.texi: Likewise.
8273         * doc/glibc-functions/*.texi: Likewise.
8274         * doc/glibc-headers/*.texi: Likewise.
8275
8276 2011-09-11  Bruno Haible  <bruno@clisp.org>
8277
8278         unistd et al.: Don't assume <unistd.h> exists.
8279         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Don't include <unistd.h> if it
8280         does not exist.
8281         * m4/environ.m4 (gl_ENVIRON): Don't include <unistd.h> if it does not
8282         exist. But include <stdlib.h>.
8283         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): If <unistd.h> does not exist,
8284         include <io.h> and <stdlib.h> instead. Don't test symbolink links if
8285         symlink() does not exist.
8286         * m4/fflush.m4 (gl_FUNC_FFLUSH_STDIN): If <unistd.h> does not exist,
8287         include <io.h> instead.
8288         * m4/free.m4 (gl_FUNC_FREE): Assume free(NULL) works on native Windows.
8289         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): If <unistd.h> does not exist,
8290         include <direct.h> instead.
8291         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): Likewise.
8292         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
8293         * m4/lseek.m4 (gl_FUNC_LSEEK): If <unistd.h> does not exist, include
8294         <io.h> instead.
8295         * m4/rename.m4 (gl_FUNC_RENAME): Assume rename() manages hard links
8296         correctly if the system does not have hard links.
8297         * m4/rmdir.m4 (gl_FUNC_RMDIR): If <unistd.h> does not exist, include
8298         <direct.h> instead.
8299         * m4/unistd_h.m4 (gl_UNISTD_H): If <unistd.h> does not exist, bypass
8300         it when looking for function declarations.
8301         * m4/unlink.m4 (gl_FUNC_UNLINK): If <unistd.h> does not exist, include
8302         <direct.h> and <io.h> instead.
8303         * doc/posix-headers/unistd.texi: More details about MSVC problem.
8304
8305 2011-09-11  Bruno Haible  <bruno@clisp.org>
8306
8307         strcase: Support for MSVC.
8308         * modules/strcase (Status, Notice): Remove obsoletion mark.
8309         * doc/posix-functions/strcasecmp.texi: Mention MSVC problem.
8310         * doc/posix-functions/strncasecmp.texi: Likewise.
8311
8312         strings: Don't assume <strings.h> exists.
8313         * lib/strings.in.h: Include <strings.h> only if HAVE_STRINGS_H is 1.
8314         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_BODY): Set HAVE_STRINGS_H.
8315         * modules/strings (Makefile.am): Substitute HAVE_STRINGS_H.
8316         * doc/posix-headers/strings.texi: Mention the MSVC problem.
8317
8318 2011-09-11  Bruno Haible  <bruno@clisp.org>
8319
8320         dirent: Don't assume <dirent.h> exists.
8321         * lib/dirent.in.h: Include <dirent.h> only if HAVE_DIRENT_H is 1.
8322         * m4/dirent_h.m4 (gl_DIRENT_H): Set HAVE_DIRENT_H.
8323         * modules/dirent (Makefile.am): Substitute HAVE_DIRENT_H.
8324         * doc/posix-headers/dirent.texi: Mention the MSVC problem.
8325
8326 2011-09-11  Bruno Haible  <bruno@clisp.org>
8327
8328         Fix wint_t on MSVC.
8329         * lib/wchar.in.h (wint_t): On MSVC, override it.
8330         * lib/wctype.in.h (wint_t): Likewise.
8331         * m4/stdint.m4 (gl_STDINT_TYPE_PROPERTIES): Override BITSIZEOF_WINT_T on
8332         MSVC.
8333         * doc/posix-headers/wchar.texi: Mention the problem with wint_t on MSVC.
8334         * doc/posix-headers/wctype.texi: Likewise.
8335
8336 2011-09-11  Bruno Haible  <bruno@clisp.org>
8337
8338         sys_types: Fix typo.
8339         * lib/sys_types.in.h: Fix typo in comment.
8340         Reported by Paul Eggert.
8341
8342         Support for MSVC compiler: Ensure size_t gets defined.
8343         * modules/strings (Depends-on): Add 'sys_types'.
8344         * modules/sys_uio (Depends-on): Likewise.
8345         * lib/sys_uio.in.h: Update comment.
8346
8347         C++ tests for module 'sys_types'.
8348         * modules/sys_types-c++-tests: New file.
8349         * tests/test-sys_types-c++.cc: New file.
8350
8351         Tests for module 'sys_types'.
8352         * modules/sys_types-tests: New file.
8353         * tests/test-sys_types.c: New file.
8354
8355         New module 'sys_types'.
8356         * lib/sys_types.in.h: New file.
8357         * m4/sys_types_h.m4: New file.
8358         * modules/sys_types: New file.
8359         * doc/posix-headers/sys_types.texi: Mention the new module and the
8360         size_t problem on MSVC 9.
8361
8362 2011-09-11  Bruno Haible  <bruno@clisp.org>
8363
8364         Support for MSVC compiler: Avoid division by a literal 0.
8365         * lib/math.in.h (NAN): Define through a function call also on MSVC.
8366         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Divide by 'zero' instead of 0.0.
8367         * m4/printf.m4 (gl_PRINTF_INFINITE, gl_PRINTF_DIRECTIVE_A,
8368         gl_PRINTF_DIRECTIVE_F, gl_PRINTF_FLAG_ZERO): Likewise.
8369         (gl_PRINTF_INFINITE_LONG_DOUBLE): Divide by 'zeroL' instead of 0.0L.
8370         * tests/infinity.h: New file.
8371         * tests/nan.h (NaNf, NaNd, NaNl): Define through a function call also
8372         on MSVC.
8373         * tests/test-ceilf1.c: Include infinity.h.
8374         (main): Use Infinityf.
8375         * tests/test-ceil1.c: Include infinity.h.
8376         (main): Use Infinityd.
8377         * tests/test-ceill.c: Include infinity.h.
8378         (main): Use Infinityl.
8379         * tests/test-dprintf-posix.c: Include infinity.h.
8380         (test_function): Use Infinityd.
8381         * tests/test-floorf1.c: Include infinity.h.
8382         (main): Use Infinityf.
8383         * tests/test-floor1.c: Include infinity.h.
8384         (main): Use Infinityd.
8385         * tests/test-floorl.c: Include infinity.h.
8386         (main): Use Infinityl.
8387         * tests/test-fprintf-posix.c: Include infinity.h.
8388         (test_function): Use Infinityd.
8389         * tests/test-frexp.c: Include infinity.h.
8390         (main): Use Infinityd.
8391         * tests/test-frexpl.c: Include infinity.h.
8392         (main): Use Infinityl.
8393         * tests/test-isfinite.c: Include infinity.h.
8394         (test_isfinitef): Use Infinityf.
8395         (test_isfinited): Use Infinityd.
8396         (test_isfinitel): Use Infinityl.
8397         * tests/test-isinf.c: Include infinity.h.
8398         (test_isinff): Use Infinityf.
8399         (test_isinfd): Use Infinityd.
8400         (test_isinfl): Use Infinityl.
8401         * tests/test-isnan.c: Include infinity.h.
8402         (test_float): Use Infinityf.
8403         (test_double): Use Infinityd.
8404         (test_long_double): Use Infinityl.
8405         * tests/test-isnanf.h: Include infinity.h.
8406         (main): Use Infinityf.
8407         * tests/test-isnand.h: Include infinity.h.
8408         (main): Use Infinityd.
8409         * tests/test-isnanl.h: Include infinity.h.
8410         (main): Use Infinityl.
8411         * tests/test-ldexpl.c: Include infinity.h.
8412         (main): Use Infinityl.
8413         * tests/test-printf-posix.h: Include infinity.h.
8414         (test_function): Use Infinityd.
8415         * tests/test-roundf1.c: Include infinity.h.
8416         (main): Use Infinityf.
8417         * tests/test-round1.c: Include infinity.h.
8418         (main): Use Infinityd.
8419         * tests/test-roundl.c: Include infinity.h.
8420         (main): Use Infinityl.
8421         * tests/test-signbit.c: Include infinity.h.
8422         (test_signbitf): Use Infinityf.
8423         (test_signbitd): Use Infinityd.
8424         (test_signbitl): Use Infinityl.
8425         * tests/test-snprintf-posix.h: Include infinity.h.
8426         (test_function): Use Infinityd, Infinityl.
8427         * tests/test-sprintf-posix.h: Include infinity.h.
8428         (test_function): Use Infinityd, Infinityl.
8429         * tests/test-truncf1.c: Include infinity.h.
8430         (main): Use Infinityf.
8431         * tests/test-trunc1.c: Include infinity.h.
8432         (main): Use Infinityd.
8433         * tests/test-truncl.c: Include infinity.h.
8434         (main): Use Infinityl.
8435         * tests/test-vasnprintf-posix.c: Include infinity.h.
8436         (test_function): Use Infinityd, Infinityl.
8437         * tests/test-vasprintf-posix.c: Include infinity.h.
8438         (test_function): Use Infinityd, Infinityl.
8439         * modules/ceilf-tests (Files): Add tests/infinity.h.
8440         * modules/ceil-tests (Files): Likewise.
8441         * modules/ceill-tests (Files): Likewise.
8442         * modules/dprintf-posix-tests (Files): Likewise.
8443         * modules/floorf-tests (Files): Likewise.
8444         * modules/floor-tests (Files): Likewise.
8445         * modules/floorl-tests (Files): Likewise.
8446         * modules/fprintf-posix-tests (Files): Likewise.
8447         * modules/frexp-tests (Files): Likewise.
8448         * modules/frexp-nolibm-tests (Files): Likewise.
8449         * modules/frexpl-tests (Files): Likewise.
8450         * modules/frexpl-nolibm-tests (Files): Likewise.
8451         * modules/isfinite-tests (Files): Likewise.
8452         * modules/isinf-tests (Files): Likewise.
8453         * modules/isnan-tests (Files): Likewise.
8454         * modules/isnanf-tests (Files): Likewise.
8455         * modules/isnanf-nolibm-tests (Files): Likewise.
8456         * modules/isnand-tests (Files): Likewise.
8457         * modules/isnand-nolibm-tests (Files): Likewise.
8458         * modules/isnanl-tests (Files): Likewise.
8459         * modules/isnanl-nolibm-tests (Files): Likewise.
8460         * modules/ldexpl-tests (Files): Likewise.
8461         * modules/printf-posix-tests (Files): Likewise.
8462         * modules/roundf-tests (Files): Likewise.
8463         * modules/round-tests (Files): Likewise.
8464         * modules/roundl-tests (Files): Likewise.
8465         * modules/signbit-tests (Files): Likewise.
8466         * modules/snprintf-posix-tests (Files): Likewise.
8467         * modules/sprintf-posix-tests (Files): Likewise.
8468         * modules/truncf-tests (Files): Likewise.
8469         * modules/trunc-tests (Files): Likewise.
8470         * modules/truncl-tests (Files): Likewise.
8471         * modules/vasnprintf-posix-tests (Files): Likewise.
8472         * modules/vasprintf-posix-tests (Files): Likewise.
8473         * modules/vdprintf-posix-tests (Files): Likewise.
8474         * modules/vfprintf-posix-tests (Files): Likewise.
8475         * modules/vprintf-posix-tests (Files): Likewise.
8476         * modules/vsnprintf-posix-tests (Files): Likewise.
8477         * modules/vsprintf-posix-tests (Files): Likewise.
8478         * modules/xprintf-posix-tests (Files): Likewise.
8479
8480 2011-09-11  Bruno Haible  <bruno@clisp.org>
8481
8482         Ensure pid_t gets defined.
8483         * m4/fcntl_h.m4 (gl_FCNTL_H): Require AC_TYPE_PID_T.
8484         * m4/sched_h.m4 (gl_SCHED_H): Likewise.
8485         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
8486         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
8487         * m4/sys_wait_h.m4 (gl_SYS_WAIT_H): Likewise.
8488         * m4/termios_h.m4 (gl_TERMIOS_H): Likewise.
8489         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Likewise.
8490         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
8491         * tests/test-fcntl-h.c: Check that pid_t is defined.
8492         * tests/test-sched.c: Likewise.
8493         * tests/test-termios.c: Likewise.
8494         * tests/test-time.c: Likewise.
8495         * doc/posix-headers/fcntl.texi: Mention lack of pid_t on MSVC platform.
8496         * doc/posix-headers/signal.texi: Likewise.
8497         * doc/posix-headers/sys_types.texi: Likewise.
8498         * doc/posix-headers/time.texi: Likewise.
8499
8500 2011-09-11  Bruno Haible  <bruno@clisp.org>
8501
8502         acl: Fix compilation on Solaris 10 (older version).
8503         * lib/file-has-acl.c (acl_ace_nontrivial): Use NEW_ACE_EVERYONE instead
8504         of ACE_EVERYONE.
8505         * lib/set-mode-acl.c (qset_acl): Likewise.
8506         Reported by Christian Jullien <eligis@orange.fr>.
8507
8508 2011-09-10  Bruno Haible  <bruno@clisp.org>
8509
8510         iconv, unsetenv: Add support for MSVC compiler.
8511         * m4/iconv.m4 (AM_ICONV): Use ISO C declaration syntax on MSVC.
8512         * m4/setenv.m4 (gl_FUNC_UNSETENV): Drop support for K&R C compilers.
8513
8514 2011-09-10  Bruno Haible  <bruno@clisp.org>
8515
8516         *printf: Add support for MSVC compiler.
8517         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_N): On MSVC, install a handler that
8518         handles the exception caused by the %n directive. When cross-compiling,
8519         guess no on native Windows.
8520         (gl_SNPRINTF_TRUNCATION_C99, gl_SNPRINTF_RETVAL_C99,
8521         gl_SNPRINTF_DIRECTIVE_N, gl_SNPRINTF_SIZE1): When snprintf is missing,
8522         emulate it through vsnprintf.
8523         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Update comment.
8524         * doc/posix-functions/dprintf.texi: Update documentation regarding
8525         MSVC 9.
8526         * doc/posix-functions/fprintf.texi: Likewise.
8527         * doc/posix-functions/printf.texi: Likewise.
8528         * doc/posix-functions/snprintf.texi: Likewise.
8529         * doc/posix-functions/sprintf.texi: Likewise.
8530         * doc/posix-functions/swprintf.texi: Likewise.
8531         * doc/posix-functions/vdprintf.texi: Likewise.
8532         * doc/posix-functions/vfprintf.texi: Likewise.
8533         * doc/posix-functions/vprintf.texi: Likewise.
8534         * doc/posix-functions/vsnprintf.texi: Likewise.
8535         * doc/posix-functions/vsprintf.texi: Likewise.
8536         * doc/glibc-functions/asprintf.texi: Likewise.
8537         * doc/glibc-functions/obstack_printf.texi: Likewise.
8538         * doc/glibc-functions/obstack_vprintf.texi: Likewise.
8539         * doc/glibc-functions/vasprintf.texi: Likewise.
8540
8541 2011-09-10  Bruno Haible  <bruno@clisp.org>
8542
8543         nocrash: Add support for native Windows.
8544         * m4/nocrash.m4 (GL_NOCRASH): Avoid a crash also on native Windows.
8545
8546 2011-09-10  Michael Goffioul  <michael.goffioul@gmail.com>  (tiny change)
8547             Bruno Haible  <bruno@clisp.org>
8548
8549         absolute-header, include-next: Add support for MSVC compiler.
8550         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER_ONE): Require
8551         AC_CANONICAL_HOST. On native Windows, recognize also backslash as
8552         directory separator in #line directives.
8553         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): On native Windows,
8554         recognize also backslash as directory separator in #line directives.
8555
8556 2011-09-08  Jim Meyering  <meyering@redhat.com>
8557
8558         maint.mk: mark the post-release commit log with "maint: " prefix
8559         * top/maint.mk (emit-commit-log): Add "maint: " prefix to the
8560         one-line commit-log summary.
8561
8562 2011-09-08  Reuben Thomas  <rrt@sc3d.org>
8563             Bruno Haible  <bruno@clisp.org>
8564
8565         Doc about crypt functions.
8566         * doc/posix-functions/crypt.texi: Mention need for _GNU_SOURCE on glibc
8567         systems.
8568         * doc/posix-functions/encrypt.texi: Likewise.
8569         * doc/posix-functions/setkey.texi: Likewise.
8570
8571 2011-09-08  Simon Josefsson  <simon@josefsson.org>
8572
8573         * lib/gc.h: Fix copyright header.
8574
8575 2011-09-07  Bruno Haible  <bruno@clisp.org>
8576
8577         pthread: Determine $(LIB_PTHREAD) correctly on OSF/1 5.1.
8578         * m4/pthread.m4 (gl_PTHREAD_CHECK): Use AC_CACHE_CHECK and
8579         AC_LINK_IFELSE instead of AC_SEARCH_LIBS.
8580
8581 2011-09-07  Bruno Haible  <bruno@clisp.org>
8582
8583         openat: Work around compilation error with OSF/1 5.1 DTK cc.
8584         * lib/fopen.c: Use different syntax for include of <stdio.h>.
8585         * lib/freopen.c: Likewise.
8586         * lib/fstatat.c: Use different syntax for include of <sys/stat.h>.
8587         * lib/lstat.c: Likewise.
8588         * lib/stat.c: Likewise.
8589         * lib/open.c: Use different syntax for include of <fcntl.h>.
8590         * lib/openat.c: Include fcntl.h again, explicitly.
8591
8592 2011-09-04  J.T. Conklin  <jtc@acorntoolworks.com>
8593
8594         parse-datetime: document the newly accepted format
8595         * doc/parse-datetime.texi (Combined date and time of day items):
8596         New section.
8597
8598 2011-09-06  Bruno Haible  <bruno@clisp.org>
8599
8600         acl: Fix a test failure on newer Solaris 10 with ZFS.
8601         * tests/test-sameacls.c (main): Interpret acl GETACLCNT failure with
8602         ENOSYS as no ACL.
8603         Reported by Jim Meyering.
8604
8605 2011-09-06  Bruno Haible  <bruno@clisp.org>
8606
8607         acl: Update for AIX >= 5.3 with NFS.
8608         * lib/file-has-acl.c (file_has_acl): Interpret aclx_get failure with
8609         ENOSYS as no ACL.
8610
8611         acl: Fix a test failure on AIX >= 5.3 with NFS.
8612         * tests/test-sameacls.c (main): Interpret aclx_get failure with ENOSYS
8613         as no ACL.
8614
8615 2011-09-06  Bruno Haible  <bruno@clisp.org>
8616
8617         acl: Fix a test failure on IRIX 6.5 with NFS.
8618         * lib/acl-internal.h (MODE_INSIDE_ACL): Define to 0 on IRIX.
8619         * lib/set-mode-acl.c (qset_acl): Test !HAVE_ACL_TYPE_EXTENDED instead
8620         of MODE_INSIDE_ACL. If !MODE_INSIDE_ACL, do a chmod_or_fchmod always.
8621         * lib/copy-acl.c (qcopy_acl): Likewise.
8622
8623 2011-09-05  Paul Eggert  <eggert@cs.ucla.edu>
8624
8625         openat: port to AIX 7.1 with large files
8626         AIX 7.1 does a "#define openat open64at" if large files are in use,
8627         so we can't simply #undef openat.  Use the orig_openat trick (similar
8628         to orig_open in lib/open.c) to work around the problem.  Problem
8629         reported by Kevin Brott for GNU tar, in the thread containing
8630         <http://lists.gnu.org/archive/html/bug-tar/2011-09/msg00032.html>.
8631         * lib/openat.c (__need_system_fcntl_h): Define first.
8632         Include <fcntl.h> and <sys/types.h> before undefining.
8633         (orig_openat) [HAVE_OPENAT]: New inline function.
8634         (openat) [HAVE_OPENAT]: Do not undef.
8635         (rpl_openat): Use orig_openat, not openat.
8636
8637 2011-09-05  Joachim Schmitz  <schmitz@hp.com>  (tiny change)
8638             Bruno Haible  <bruno@clisp.org>
8639
8640         acl: Avoid errors on NonStop Kernel.
8641         * lib/file-has-acl.c (file_has_acl) [NonStop Kernel]: Ignore ENOSYS and
8642         ENOTSUP errors.
8643
8644 2011-09-05  Bruno Haible  <bruno@clisp.org>
8645
8646         acl: Clean up Solaris code.
8647         * lib/acl-internal.h: Remove no-op #if.
8648         * lib/file-has-acl.c: Likewise.
8649         * lib/set-mode-acl.c (qset_acl): Remove unused Solaris code.
8650         * lib/copy-acl.c (qcopy_acl): Likewise.
8651
8652 2011-09-05  Bruno Haible  <bruno@clisp.org>
8653
8654         acl: Fix a bug with NFSv4 ACLs on Solaris 10 (newer version) in
8655         binaries built on the original Solaris 10.
8656         * lib/file-has-acl.c (file_has_acl): ACLs with 4..6 ACEs can be
8657         trivial.
8658
8659 2011-09-05  Bruno Haible  <bruno@clisp.org>
8660
8661         acl: Improve support of NFSv4 ACLs on Solaris 10 (newer version).
8662         * lib/acl-internal.h (acl_nontrivial): Declare also on newer Solaris
8663         10.
8664         * lib/file-has-acl.c (acl_nontrivial): Define also on newer Solaris 10.
8665         (acl_ace_nontrivial): Likewise. Recognize the trivial ACLs with 6 ACEs.
8666         * lib/copy-acl.c (qcopy_acl): On newer Solaris 10, use acl or facl
8667         instead of acl_get, facl_get, acl_set, facl_set.
8668
8669 2011-09-05  Bruno Haible  <bruno@clisp.org>
8670
8671         copy-file: Try unit tests on more file systems.
8672         * tests/test-copy-file-1.sh: New file.
8673         * tests/test-copy-file-2.sh: New file.
8674         * modules/copy-file-tests (Files): Add them.
8675         (Makefile.am): Add them to TESTS.
8676
8677         acl: Try unit tests on more file systems.
8678         * tests/test-file-has-acl-1.sh: New file.
8679         * tests/test-file-has-acl-2.sh: New file.
8680         * tests/test-set-mode-acl-1.sh: New file.
8681         * tests/test-set-mode-acl-2.sh: New file.
8682         * tests/test-copy-acl-1.sh: New file.
8683         * tests/test-copy-acl-2.sh: New file.
8684         * modules/acl-tests (Files): Add them.
8685         (Makefile.am): Add them to TESTS.
8686
8687 2011-09-04  Bruno Haible  <bruno@clisp.org>
8688
8689         acl: Improve support of NFSv4 ACLs on Solaris 10 (newer version).
8690         * lib/acl-internal.h (ACE_*, NEW_ACE_*): Define also on newer Solaris
8691         10.
8692         (OLD_ALLOW, OLD_DENY): New macros.
8693         (NEW_ACE_ACCESS_ALLOWED_ACE_TYPE): Renamed from
8694         ACE_ACCESS_ALLOWED_ACE_TYPE.
8695         (NEW_ACE_ACCESS_DENIED_ACE_TYPE): Renamed from
8696         ACE_ACCESS_DENIED_ACE_TYPE.
8697         (OLD_ACE_OWNER, OLD_ACE_GROUP, OLD_ACE_OTHER): New macros.
8698         (NEW_ACE_EXECUTE): Fix value.
8699         (NEW_ACE_APPEND_DATA, NEW_ACE_READ_NAMED_ATTRS,
8700         NEW_ACE_WRITE_NAMED_ATTRS, NEW_ACE_DELETE_CHILD,
8701         NEW_ACE_READ_ATTRIBUTES, NEW_ACE_WRITE_ATTRIBUTES, NEW_ACE_DELETE,
8702         NEW_ACE_READ_ACL, NEW_ACE_WRITE_ACL, NEW_ACE_WRITE_OWNER,
8703         NEW_ACE_SYNCHRONIZE): New macros.
8704         * lib/set-mode-acl.c (qset_acl): On newer Solaris 10, use acl or facl
8705         instead of acl_fromtext, acl_set, facl_set.
8706         Fixes a coreutils/tests/cp/perm failure.
8707
8708 2011-09-03  Paul Eggert  <eggert@cs.ucla.edu>
8709
8710         openat: test for fstatat (..., 0) bug
8711         Further testing with tar suggests that fstatat (..., 0)
8712         does not work in general, on AIX 7.1; see
8713         <http://lists.gnu.org/archive/html/bug-tar/2011-09/msg00023.html>.
8714         So, give up entirely on AIX 7.1's fstatat, and fall back on our
8715         replacement fstatat (which is what older AIX releases were using
8716         anyway).
8717         * lib/fstatat.c (fstatat) [HAVE_FSTATAT]: Do not undef.  The only
8718         use is now changed to orig_fstatat.  This was probably the right
8719         thing to do anyway.
8720         (FSTATAT_AT_FDCWD_0_BROKEN): Remove; no longer used.
8721         (rpl_fstatat) [FSTATAT_ZERO_FLAG_BROKEN]: Remove.
8722         (rpl_fstatat): Simplify, assuming !FSTATAT_ZERO_FLAG_BROKEN.
8723         (AT_FUNC_NAME) [FSTATAT_ZERO_FLAG_BROKEN]: Now rpl_fstatat.
8724         * m4/openat.m4 (gl_FUNC_FSTATAT): Test for the more-general bug
8725         and define FSTATAT_ZERO_FLAG_BROKEN, not FSTATAT_AT_FDCWD_0_BROKEN,
8726         if the bug is found.
8727
8728         openat: test for fstatat (AT_FDCWD, ..., 0) bug
8729         This tests for another fstatat bug on AIX 7.1:
8730         fstatat (AT_FDCWD, ..., 0) does not work.  See
8731         <http://lists.gnu.org/archive/html/bug-tar/2011-09/msg00015.html>.
8732         * lib/fstatat.c (FSTATAT_AT_FDCWD_0_BROKEN)
8733         (LSTAT_FOLLOWS_SLASHED_SYMLINK): Default to 0.
8734         (rpl_fstatat): Adjust so that it works around either (or both)
8735         bugs if present.
8736         * m4/openat.m4 (gl_FUNC_FSTATAT): Test for this fstatat bug.
8737
8738 2011-09-03  Karl Berry  <karl@gnu.org>
8739
8740         * doc/regex.texi (Character Class Operators): Avoid literal ":"
8741         in index entries.
8742
8743 2011-09-02  Bruno Haible  <bruno@clisp.org>
8744
8745         Allow the user to override the choice of AR, ARFLAGS, RANLIB.
8746         * m4/gnulib-common.m4 (gl_PROG_AR_RANLIB): Don't override the given
8747         values of AR, ARFLAGS, RANLIB.
8748         Reported by John W. Eaton <jwe@gnu.org> for Octave.
8749
8750 2011-09-02  Bruno Haible  <bruno@clisp.org>
8751
8752         Find 'ar' program that fits with --host argument.
8753         * m4/gnulib-common.m4 (gl_PROG_AR_RANLIB): Use AC_CHECK_TOOL.
8754
8755 2011-09-02  Bruno Haible  <bruno@clisp.org>
8756
8757         tests: init.sh: Support any non-GNU diff.
8758         * tests/init.sh (compare): If "diff -c" is supported but "diff -u" is
8759         not, use "diff -c". Useful on AIX 6.1, HP-UX 11.31, OSF/1 5.1,
8760         Solaris 8.
8761
8762 2011-09-02  Bruno Haible  <bruno@clisp.org>
8763
8764         tests: init.sh: work also with any non-GNU diff that supports -u
8765         * tests/init.sh: Relax check for diff -u support.
8766         Rather than checking for GNU diff via --version, simply check
8767         for support for -u itself.  Useful at least on OpenBSD 4.9,
8768         AIX 7.1, IRIX 6.5, and Solaris 10.
8769
8770 2011-09-01  Bruno Haible  <bruno@clisp.org>
8771
8772         strtoimax, strtoumax: Document problem on HP-UX 11.
8773         * doc/posix-functions/strtoimax.texi: Mention HP-UX 11.11 problem.
8774         * doc/posix-functions/strtoumax.texi: Likewise.
8775
8776 2011-09-01  Bruno Haible  <bruno@clisp.org>
8777
8778         strtoumax: Avoid link error on OSF/1 with DTK cc.
8779         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Always test whether strtoumax is
8780         defined as a function.
8781         * modules/strtoumax (Depends-on, configure.ac): Test only whether
8782         strtoumax is defined, not whether it is declared.
8783
8784 2011-09-01  Bruno Haible  <bruno@clisp.org>
8785
8786         strtoimax: Avoid link error on OSF/1 with DTK cc.
8787         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Always test whether strtoimax is
8788         defined as a function.
8789         * modules/strtoimax (Depends-on, configure.ac): Test only whether
8790         strtoimax is defined, not whether it is declared.
8791
8792 2011-09-01  Bruno Haible  <bruno@clisp.org>
8793
8794         imaxdiv: Avoid link error on OSF/1 with DTK cc.
8795         * m4/imaxdiv.m4 (gl_FUNC_IMAXDIV): Also test whether imaxdiv is defined
8796         as a function.
8797         * modules/imaxdiv (configure.ac): Test whether imaxdiv is defined, not
8798         whether it is declared.
8799
8800 2011-09-01  Bruno Haible  <bruno@clisp.org>
8801
8802         imaxabs: Avoid link error on OSF/1 with DTK cc.
8803         * m4/imaxabs.m4 (gl_FUNC_IMAXABS): Also test whether imaxabs is defined
8804         as a function.
8805         * modules/imaxabs (configure.ac): Test whether imaxabs is defined, not
8806         whether it is declared.
8807
8808 2011-09-01  Bruno Haible  <bruno@clisp.org>
8809
8810         Tests for module 'strtoumax'.
8811         * modules/strtoumax-tests: New file.
8812         * tests/test-strtoumax.c: New file.
8813
8814         Tests for module 'strtoimax'.
8815         * modules/strtoimax-tests: New file.
8816         * tests/test-strtoimax.c: New file.
8817
8818         Tests for module 'imaxdiv'.
8819         * modules/imaxdiv-tests: New file.
8820         * tests/test-imaxdiv.c: New file.
8821
8822         Tests for module 'imaxabs'.
8823         * modules/imaxabs-tests: New file.
8824         * tests/test-imaxabs.c: New file.
8825
8826 2011-09-01  Bruno Haible  <bruno@clisp.org>
8827
8828         pthread: Determine $(LIB_PTHREAD) correctly on IRIX 6.5.
8829         * m4/pthread.m4 (gl_PTHREAD_CHECK): Check for pthread_join, not
8830         pthread_create.
8831
8832 2011-09-01  Paul Eggert  <eggert@cs.ucla.edu>
8833
8834         openat: work around AIX 7.1 fstatat issue
8835         This should fix the problem that was not properly fixed
8836         in the previous change, dated 2011-08-30.
8837         * lib/fstatat.c: Include <sys/stat.h> twice, the first with
8838         __need_system_stat_h defined.
8839         (orig_fstatat) [HAVE_FSTATAT]: New function.
8840         (rpl_fstatat): Go back to the old way of doing things,
8841         except call orig_fstatat instead of fstatat.
8842         * m4/openat.m4 (gl_FUNC_FSTATAT): Remove unnecessary check for openat.
8843         Remove unnecessary check whether fstatat fills in st_size etc.
8844
8845 2011-09-01  Bruno Haible  <bruno@clisp.org>
8846
8847         sys_select: Avoid a syntax error regarding timespec_t on IRIX 6.5.
8848         * lib/sys_select.in.h [__sgi]: When included from <sys/bsd_types.h>,
8849         just include the system's header.
8850
8851 2011-08-31  Jim Meyering  <meyering@redhat.com>
8852
8853         tests: avoid spurious assertion failure in test-float.c on ppc64
8854         * tests/test-float.c (test_long_double): Comment out an assertion,
8855         LDBL_MIN_EXP <= DBL_MIN_EXP, that is failing at least on PowerPC-64
8856         with gcc-4.4.4.
8857
8858         maint: indent with spaces, not TABs
8859         I need to get in the habit of running gnulib's "make check".
8860         Both of these would have been caught.
8861         * m4/largefile.m4: Indent with spaces, not TABs.
8862         * lib/parse-datetime.y (iso_8601_time): Likewise.
8863         Spotted by Pádraig Brady.
8864
8865         test-parse-datetime.c: accommodate a relatively strict gcc warning
8866         * tests/test-parse-datetime.c (gmt_offset): Declare function "static",
8867         to avoid a warning from gcc's -Werror=missing-declarations.
8868         Insert a few spaces-before-funcall-parenthesis.
8869
8870 2011-08-17  J.T. Conklin  <jtc@acorntoolworks.com>
8871
8872         parse-datetime: accept ISO 8601 date and time rep with "T" separator
8873         The parser now accepts ISO 8601 date-time strings with "T" as the
8874         separator.  It has long parsed dates like "2004-02-29 16:21:42"
8875         with a space between the date and time strings.  Now it also parses
8876         "2004-02-29T16:21:42" and fractional-second and time-zone-annotated
8877         variants like "2004-02-29T16:21:42.333-07:00"
8878         * lib/parse-datetime.y: Parse ISO 8601 extended date and time
8879         of day representation using the 'T' separator character.
8880         * doc/parse-datetime.texi (General date syntax): replace use of
8881         deprecated --iso-8601 option with --rfc-3339 in example of date
8882         command output formats that can be parsed.
8883         * tests/test-parse-datetime.c (tm_diff): New function, taken from
8884         lib/parse-datetime.y.
8885         (gmt_offset): New function.
8886         (main): Add additional test cases to validate ISO8601 extended
8887         date and time of day parsing.
8888
8889 2011-08-31  Bruno Haible  <bruno@clisp.org>
8890
8891         freopen: Documentation.
8892         * doc/posix-functions/freopen.texi: Document the bug with the NULL file
8893         name.
8894         Reported by Claudio Bley <claudio.bley@gmail.com>.
8895
8896 2011-08-31  Claudio Bley  <claudio.bley@gmail.com>  (tiny change)
8897
8898         freopen: Don't crash if the filename argument is NULL.
8899         * lib/freopen.c (rpl_freopen): Don't compare the filename if it is
8900         NULL.
8901
8902 2011-08-30  Paul Eggert  <eggert@cs.ucla.edu>
8903
8904         openat: work around AIX 7.1 fstatat bug
8905         Problem reported by Kevin Brott for GNU tar, in the thread containing
8906         <http://lists.gnu.org/archive/html/bug-tar/2011-08/msg00015.html>.
8907         * lib/fstatat.c (rpl_fstatat): Do not invoke underlying fstatat if
8908         FSTATAT_ST_SIZE_ETC_BROKEN.
8909         (fstatat) [FSTATAT_ST_SIZE_ETC_BROKEN && HAVE_FSTATAT]: #define to
8910         rpl_fstatat.
8911         * m4/openat.m4 (gl_FUNC_FSTATAT): New macro, with the fstatat-relevant
8912         part of gl_FUNC_OPENAT.  Also, check for the AIX 7.1 bug, and use
8913         AC_CHECK_FUNCS_ONCE for fstatat.
8914         (gl_FUNC_OPENAT): Use it.  Use AC_CHECK_FUNCS_ONCE for
8915         fchmodat, mkdirat, openat and unlinkat.
8916
8917 2011-08-30  Bruno Haible  <bruno@clisp.org>
8918
8919         Avoid endless recursions if config.h includes some header files.
8920         * lib/fopen.c (__need_FILE): Define already before including config.h.
8921         * lib/freopen.c (__need_FILE): Likewise.
8922         * lib/open.c (__need_system_fcntl_h): Likewise.
8923         * lib/stat.c (__need_system_sys_stat_h): Likewise.
8924         * lib/lstat.c (__need_system_sys_stat_h): Likewise.
8925         Reported by Michael Goffioul <michael.goffioul@gmail.com>.
8926
8927 2011-08-25  Karl Berry  <karl@gnu.org>
8928
8929         * config/srclist.txt (ylwrap): new try.
8930         * build-aux/ylwrap: new file.
8931
8932 2011-08-23  Bruno Haible  <bruno@clisp.org>
8933
8934         tmpdir: Use a good default directory on native Windows.
8935         * lib/tmpdir.c: Include <windows.h>, pathmax.h.
8936         (P_tmpdir): Default to _P_tmpdir on native Windows.
8937         (path_search): On native Windows, try the value returned by GetTempPath
8938         before trying P_tmpdir.
8939         * modules/tmpdir (Depends-on): Add pathmax.
8940         Suggested by John Darrington <john@darrington.wattle.id.au>.
8941
8942 2011-08-20  Reuben Thomas  <rrt@sc3d.org>
8943
8944         doc: fix typo in README-release
8945         * top/README-release: Capitalize first word of a sentence.
8946
8947 2011-08-19  Jim Meyering  <meyering@redhat.com>
8948
8949         fts: do not exhaust memory when processing million-entry directories
8950         Before this change, traversing (via rm -rf, find, du, etc.) an N-entry
8951         directory would require about 256*N bytes of memory.  Thus, it was
8952         easy to construct a directory too large to be processed by any of
8953         those tools.  With this change, fts' maximum memory utilization is
8954         now limited to around 30MB.
8955         * lib/fts.c (FTS_MAX_READDIR_ENTRIES): Define.
8956         (fts_read): When we've processed the final entry (i.e., when
8957         ->fts_link is NULL) and fts_dirp is non-NULL, call fts_build
8958         using the parent entry to read any remaining entries.  Dispatch
8959         depending on what fts_build returns:
8960         - NULL+stop, aka failure: stop
8961         - NULL otherwise: move up in the dir hierarchy
8962         - non-NULL: handle this new entry
8963         (fts_build): Declare and use new local, continue_readdir.
8964         Prepare to be called from fts_read, when the entries
8965         from a partially-read directory have just been exhausted.
8966         In that case, we'll skip the opendir and instead use the parent's
8967         fts_dirp and derive dir_fd from that.
8968         Finally, in the readdir loop, if we read max_entries entries,
8969         exit the loop ensuring *not* to call closedir.  This is required
8970         so that fts_dirp can be reused on a subsequent call.
8971         Prompted by Ben England's report of memory exhaustion in find
8972         and rm -rf vs. NFS: https://bugzilla.redhat.com/719749.
8973
8974         maint: fts: move decl of `dp' down into while loop; split a long line
8975         * lib/fts.c (fts_build): No semantic change.
8976
8977         fts: add/use new struct member, fts_dirp
8978         We are about to use this to manage any directory with
8979         too many entries to read all of them into memory at once.
8980         To do that, we'll need to save the DIR* pointer in each
8981         affected FTSENT struct.
8982         * lib/fts_.h: Include <dirent.h>.
8983         (struct FTSENT) [fts_dirp]: New member.
8984         * lib/fts.c (closedir_and_clear): Define.
8985         Use it in place of closedir so that we are sure to
8986         clear the new fts_dirp member when done with it.
8987         (fts_alloc): Initialize the new member.
8988         (fts_lfree): Free, if needed.
8989
8990         maint: fts: give __opendir2 a new parameter and rename
8991         * lib/fts.c (__opendir2): Give it a new parameter, Pdir_fd, rather
8992         than surreptitiously using sole caller's "dir_fd".
8993         (fts_opendir): Rename from __opendir2.
8994
8995         maint: fts.c: remove __opendir2's now-unused parameter, oflag
8996         * lib/fts.c (__opendir2): Remove unused parameter, oflag.
8997
8998         maint: fts.c: correct off-by-one indentation
8999         * lib/fts.c (fts_build): Correct indentation, change style
9000         of a couple of block comments, and bracing style.
9001
9002         maint: fts.c: move __opendir2 #define "up" out of function body
9003         * lib/fts.c (__opendir2): Move "up".  No semantic change.
9004
9005         maint: fts.c: remove #if-0'd FTS_WHITEOUT code
9006         * lib/fts.c: Remove #if-0'd FTS_WHITEOUT code.  It's been #if-0'd
9007         out for a long time and besides was useful only on BSD systems.
9008
9009 2011-08-18  Paul Eggert  <eggert@cs.ucla.edu>
9010
9011         regex: port to Stratus OpenVOS
9012         * lib/regex_internal.h (internal_function) [!_LIBC]: Simply
9013         define to empty, rather than attempting nonportable optimizations.
9014         Problem reported by Paul Green in:
9015         http://lists.gnu.org/archive/html/bug-diffutils/2011-08/msg00047.html
9016         and fix suggested by Eric Blake in:
9017         http://lists.gnu.org/archive/html/bug-gnulib/2011-08/msg00143.html
9018
9019 2011-08-17  Eric Blake  <eblake@redhat.com>
9020
9021         getcwd: fix test failures on mingw
9022         * lib/getcwd.c (__getcwd): Early exit for ERANGE.
9023         * tests/test-getcwd.c (test_abort_bug, test_long_name): Don't fail
9024         test if long directory cannot be created, and allow mingw errno.
9025
9026         getcwd-lgpl: fix m4 to match relaxed test for BSD
9027         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Relax probe.
9028         (gl_FUNC_GETCWD_SIGNATURE): New macro.
9029         (gl_FUNC_GETCWD_LGPL, gl_FUNC_GETCWD): Use it.
9030         * doc/posix-functions/getcwd.texi (getcwd): Tweak mentions of
9031         signature problem.
9032
9033         getcwd: fix compilation on mingw64
9034         * lib/unistd.in.h (includes) [mingw]: Include <direct.h> for
9035         getcwd.
9036         Reported by Marc-André Lureau.
9037
9038         pipe2: silence compiler warning
9039         * lib/pipe2.c (pipe2): Hide label if it is not used.
9040
9041 2011-08-15  Ben Pfaff  <blp@cs.stanford.edu>
9042
9043         relocatable-prog: fix link error
9044         * modules/relocatable-prog (configure.ac) [RELOCATABLE]: Also
9045         invoke AC_LIBOBJ([relocatable]).  This invocation was previously
9046         in the gl_RELOCATABLE_LIBRARY macro.  That invocation was moved
9047         into modules/relocatable-lib without noticing that
9048         modules/relocatable-prog also invokes gl_RELOCATABLE_LIBRARY and
9049         also needs to build relocatable.c.
9050
9051 2011-08-12  Paul Eggert  <eggert@cs.ucla.edu>
9052
9053         getaddrinfo: fix sh typo in gai_strerrorA decl checking
9054         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix typo in the generated
9055         shell code: it contained a 'break' that was not in a loop.
9056         Apparently the macro assumed that AC_CHECK_DECLS is implemenented
9057         via a shell-language loop; this may have been true in old Autoconf
9058         versions, but it's not true in Autoconf 2.68.  I found this bug
9059         when testing coreutils git on Solaris 8, whose shell complains
9060         about the syntax error.
9061
9062 2011-08-12  Simon Josefsson  <simon@josefsson.org>
9063
9064         * lib/base64.c: Fix comment to reference RFC 4648.
9065         Suggested by Bruno Haible <bruno@clisp.org> and Gijs van Tulder
9066         <gvtulder@gmail.com>.
9067
9068 2011-08-11  Paul Eggert  <eggert@cs.ucla.edu>
9069
9070         * build-aux/bootstrap (slurp): Remove obsolescent gettext.m4 patch.
9071
9072         po/Makefile.in.in: fix make -q problem
9073         * build-aux/po/Makefile.in.in (check-macro-version): Remove this
9074         rule, since there's no file named 'check-macro-version' and its
9075         use as a file breaks make -q.
9076         (all): Don't depend on check-macro-version.
9077         (CHECK_MACRO_VERSION): New macro.
9078         (stamp-po): Use it.
9079
9080         configmake: fix make -q problem
9081         * modules/configmake (configmake.h): Update configmake.h's time stamp
9082         even if the file does not change.  Otherwise, 'make -q' fails.
9083         Problem reported by Simon Josefsson in
9084         <http://lists.gnu.org/archive/html/bug-gnulib/2011-08/msg00088.html>.
9085
9086 2011-08-11  Jim Meyering  <meyering@redhat.com>
9087
9088         git-version-gen: correct the advice in a comment
9089         * build-aux/git-version-gen: Correct comment.
9090         Don't recommend to list .tarball-version in .gitignore.
9091
9092 2011-08-10  Paul Eggert  <eggert@cs.ucla.edu>
9093
9094         base64: fix off-by-one buffer size bug
9095         Problem and (trivial) fix reported by Gijs van Tulder in
9096         <http://lists.gnu.org/archive/html/bug-gnulib/2011-08/msg00083.html>.
9097         * lib/base64.c (base64_decode_alloc_ctx): Allocate one more byte.
9098         * tests/test-base64.c (main): Catch the bug.
9099
9100 2011-08-10  Eric Blake  <eblake@redhat.com>
9101
9102         closein: correct comments
9103         * lib/closein.c (close_stdin): Improve comments.
9104
9105 2011-08-09  Bruno Haible  <bruno@clisp.org>
9106
9107         More tests for 'fseeko'.
9108         * tests/test-fseeko3.c: New file, from Eric Blake.
9109         * tests/test-fseeko3.sh: New file.
9110         * modules/fseeko-tests (Files): Add them.
9111         (TESTS): Add test-fseeko3.sh.
9112         (check_PROGRAMS): Add test-fseeko3.
9113
9114 2011-08-09  Eric Blake  <eblake@redhat.com>
9115
9116         fseeko: remove unneeded hack
9117         * lib/fseeko.c (fseeko): Don't special-case SEEK_END.
9118
9119         fseeko: fix bug on glibc
9120         * lib/fseeko.c (fseeko): Set stream offset to match fd offset.
9121         Reported by John W. Eaton.
9122
9123 2011-08-08  Bruno Haible  <bruno@clisp.org>
9124
9125         unictype/base: Fix interoperability with preinstalled libunistring.
9126         * modules/unictype/base (configure.ac): Bump minimum version to 0.9.4.
9127         Reported by Simon Josefsson.
9128
9129 2011-08-08  Bruno Haible  <bruno@clisp.org>
9130
9131         iswblank: Detect declaration correctly.
9132         * m4/iswblank.m4 (gl_FUNC_ISWBLANK): Use correct headers in
9133         AC_CHECK_DECLS invocation.
9134
9135 2011-08-08  Bruno Haible  <bruno@clisp.org>
9136
9137         tcgetsid: Detect declaration correctly.
9138         * m4/tcgetsid.m4 (gl_FUNC_TCGETSID): Use correct headers in
9139         AC_CHECK_DECLS invocation.
9140         Reported by Simon Josefsson.
9141
9142 2011-08-08  Eric Blake  <eblake@redhat.com>
9143
9144         largefile: fix typo that regressed large file support
9145         * modules/largefile (configure.ac-early): Fix section name.
9146
9147 2011-08-06  Karl Berry  <karl@gnu.org>
9148
9149         * MODULES.html.sh (func_all_files): _Noreturn is no longer
9150         a separate module.
9151
9152 2011-08-05  Simon Josefsson  <simon@josefsson.org>
9153
9154         openat: Fix warnings and commens when building unlinkat.c on Hurd.
9155         * lib/unlinkat.c: Mention Hurd in comments.  Include stdlib.h to
9156         get prototype for free.
9157
9158 2011-08-04  Bruno Haible  <bruno@clisp.org>
9159
9160         Tests for module 'pathmax'.
9161         * modules/pathmax-tests: New file.
9162         * tests/test-pathmax.c: New file.
9163
9164         canonicalize-lgpl: Support larger filenames on the Hurd.
9165         * lib/canonicalize-lgpl.c (__realpath): Bump path_max fallback to 8192.
9166         Reported by Paul Eggert.
9167
9168         pathmax: Leave PATH_MAX undefined on the Hurd, and a constant otherwise.
9169         * lib/pathmax.h (PATH_MAX): Leave it undefined on GNU/Hurd.
9170         * lib/chdir-long.h: Include pathmax.h.
9171         * lib/clean-temp.c (PATH_MAX): Remove code that is done by pathmax.h.
9172         * lib/getcwd.c: Include pathmax.h instead of <limits.h>.
9173         (PATH_MAX): Remove code that is done by pathmax.h.
9174         * lib/canonicalize.c (PATH_MAX): Provide a fallback value.
9175         * lib/tmpfile.c: Add a comment.
9176         * m4/pathmax.m4 (gl_PATHMAX): Don't test for pathconf.
9177         * modules/chdir-long (Depends-on): Add pathmax.
9178         * modules/getcwd (Depends-on): Add pathmax.
9179         * tests/test-getcwd.c (test_abort_bug): Avoid syntax error when PATH_MAX
9180         is not defined.
9181         * doc/posix-headers/limits.texi: Mention the pathmax module.
9182         * NEWS: Mention the change.
9183
9184 2011-08-02  Bruno Haible  <bruno@clisp.org>
9185
9186         pthread_sigmask: Actually use results of gl_THREADLIB.
9187         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Test and require
9188         gl_THREADLIB, not gl_[]THREADLIB.
9189         Reported by Eric Blake.
9190
9191 2011-08-02  Jim Meyering  <meyering@redhat.com>
9192
9193         maint.mk: relax the default _gl_TS_function_match regexp
9194         * top/maint.mk (_gl_TS_function_match): Don't require at least one
9195         space between function name and "(" in an "extern" declaration.
9196         That would fail to match a decl with no space there: extern void foo();
9197
9198 2011-07-31  Iain Nicol  <iain@thenicols.net>
9199
9200         git-version-gen: document that EXTRA_DIST must include .version
9201         * build-aux/git-version-gen: In the how-to-use comment, document
9202         that EXTRA_DIST must include .version.  Otherwise, "make distcheck"
9203         will fail when run from an unpacked distribution tarball.
9204
9205 2011-08-01  Bruno Haible  <bruno@clisp.org>
9206
9207         wctype-h: Fix last change.
9208         * m4/wctype_h.m4 (gl_WCTYPE_H): If towlower is defined, set
9209         REPLACE_TOWLOWER to 0.
9210         Reported by Sam Steingold <sds@gnu.org>.
9211
9212 2011-07-31  Bruno Haible  <bruno@clisp.org>
9213
9214         frexpl: Update autoconf test.
9215         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Update overrides of <float.h>,
9216         according to changes of 2011-06-20.
9217
9218 2011-07-31  Bruno Haible  <bruno@clisp.org>
9219
9220         sys_utsname: Add support for Minix.
9221         * lib/sys_utsname.in.h [Minix]: Include <stddef.h> before
9222         <sys/utsname.h>.
9223         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
9224         * doc/posix-headers/sys_utsname.texi: Document the Minix problem.
9225
9226 2011-07-31  Bruno Haible  <bruno@clisp.org>
9227
9228         strings: Add support for Minix.
9229         * lib/strings.in.h [Minix]: Include <sys/types.h> before <strings.h>.
9230         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_BODY): Likewise.
9231         * doc/posix-headers/strings.texi: Document the Minix problem.
9232
9233 2011-07-31  Bruno Haible  <bruno@clisp.org>
9234
9235         wctype-h: Add support for Minix.
9236         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether towlower is declared. Set
9237         REPLACE_TOWLOWER.
9238         * modules/wctype-h (Makefile.am): Substitute REPLACE_TOWLOWER.
9239         * lib/wctype.in.h (towlower, towupper): Test REPLACE_TOWLOWER, not
9240         REPLACE_ISWCNTRL.
9241
9242 2011-07-31  Paul Eggert  <eggert@cs.ucla.edu>
9243
9244         * lib/xalloc.h (DEFAULT_MXFAST): Track 64-bit glibc.
9245         This is a performance improvement for 64-bit hosts: it causes the
9246         value of DEFAULT_MXFAST to track what's in glibc on such hosts.
9247
9248 2011-07-31  Bruno Haible  <bruno@clisp.org>
9249
9250         stdioext: Add support for Minix.
9251         * lib/fbufmode.c (fbufmode) [__minix]: Add conditional code.
9252         * lib/fpurge.c (fpurge): Likewise.
9253         * lib/freadahead.c (freadahead): Likewise.
9254         * lib/freadable.c (freadable): Likewise.
9255         * lib/freading.c (freading): Likewise.
9256         * lib/freadptr.c (freadptr): Likewise.
9257         * lib/freadseek.c (freadptrinc): Likewise.
9258         * lib/fseeko.c (rpl_fseeko): Likewise.
9259         * lib/fseterr.c (fseterr): Likewise.
9260         * lib/fwritable.c (fwritable): Likewise.
9261         * lib/fwriting.c (fwriting): Likewise.
9262         * lib/fflush.c (clear_ungetc_buffer): Update comment.
9263         * m4/fpending.m4 (gl_PREREQ_FPENDING): Add a variant for Minix.
9264
9265 2011-07-31  Bruno Haible  <bruno@clisp.org>
9266
9267         errno: Port to Minix.
9268         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Test also whether ENETRESET and
9269         ECONNABORTED are defined.
9270         * lib/errno.in.h (ENETRESET, GNULIB_defined_ENETRESET, ECONNABORTED,
9271         GNULIB_defined_ECONNABORTED): New macros.
9272         * lib/strerror-override.h (strerror_override): Test also
9273         GNULIB_defined_ENETRESET, GNULIB_defined_ECONNABORTED.
9274         * lib/strerror-override.c (strerror_override): Handle also ENETRESET,
9275         ECONNABORTED.
9276         * doc/posix-headers/errno.texi: Mention the Minix problem.
9277
9278 2011-07-31  Bruno Haible  <bruno@clisp.org>
9279
9280         Work around declaration collisions on Minix.
9281         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): If mbsinit is declared but not
9282         defined, set REPLACE_MBSINIT.
9283         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): If mbrtowc is declared but not
9284         defined, set REPLACE_MBRTOWC.
9285         * m4/mbrlen.m4 (gl_FUNC_MBRLEN): If mbrlen is declared but not defined,
9286         set REPLACE_MBRLEN.
9287         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): If mbsrtowcs is declared but not
9288         defined, set REPLACE_MBSRTOWCS.
9289         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): If wcrtomb is declared but not
9290         defined, set REPLACE_WCRTOMB.
9291         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): If wcsrtombs is declared but not
9292         defined, set REPLACE_WCSRTOMBS.
9293
9294 2011-07-31  Bruno Haible  <bruno@clisp.org>
9295
9296         Add support for Minix with ACK compiler.
9297         * m4/gnulib-common.m4 (gl_PROG_AR_RANLIB): New macro.
9298         * gnulib-tool (func_import, func_create_testdir): Emit invocation of
9299         gl_PROG_AR_RANLIB instead of AC_PROG_RANLIB.
9300
9301 2011-07-31  Bruno Haible  <bruno@clisp.org>
9302
9303         Documentation about Minix.
9304         * doc/posix-headers/*.texi: Add info about Minix 3.1.8.
9305         * doc/glibc-headers/*.texi: Likewise.
9306         * doc/posix-functions/*.texi: Likewise.
9307         * doc/glibc-functions/*.texi: Likewise.
9308
9309 2011-07-31  Bruno Haible  <bruno@clisp.org>
9310
9311         snippet/warn-on-use: Fix indentation.
9312         * m4/warn-on-use.m4 (gl_WARN_ON_USE_PREPARE): Fix indentation.
9313
9314 2011-07-25  Jim Meyering  <meyering@redhat.com>
9315
9316         tests: test-update-copyright.sh: remove unnecessary "rm" commands
9317         * tests/test-update-copyright.sh: Remove unused rm -f $TMP.*.bak
9318         commands.
9319
9320 2011-07-27  Jim Meyering  <meyering@redhat.com>
9321
9322         maint.mk: avoid sc_prohibit_always-defined_macros failure in coreutils
9323         * top/maint.mk (gl_extract_significant_defines_): Now that
9324         SA_RESETHAND and SA_RESTART are #defined (albeit conditionally) in
9325         gnulib/lib/signal.in.h, and now that we recommend to
9326         define-if-undefined those two symbols in application code,
9327         we must filter them out of the "significant" list.
9328         This avoids a "make syntax-check" failure in coreutils.
9329
9330 2011-07-26  Eric Blake  <eblake@redhat.com>
9331
9332         warnings: add comments about previous patch
9333         * m4/absolute-header.m4: Document AS_VAR_PUSHDEF limitation.
9334         * m4/include_next.m4: Likewise.
9335         * m4/warn-on-use.m4: Likewise.
9336         * m4/warnings.m4: Likewise, and simplify use.
9337         Suggested by Stefano Lattarini.
9338
9339         include-next, warnings: support older autoconf
9340         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): Use
9341         AS_VAR_PUSHDEF in a way that works with older autoconf.
9342         * m4/warnings.m4 (gl_WARN_ADD): Likewise.
9343         Reported by Daniel P. Berrange.
9344
9345 2011-07-25  Bruno Haible  <bruno@clisp.org>
9346
9347         fseek, ftell: Fix doc.
9348         * doc/posix-functions/fseek.texi: Reword statement about
9349         AC_SYS_LARGEFILE.
9350         * doc/posix-functions/ftell.texi: Likewise.
9351
9352 2011-07-25  Paul Eggert  <eggert@cs.ucla.edu>
9353             Bruno Haible  <bruno@clisp.org>
9354
9355         Add dependencies to the 'largefile' module.
9356         * modules/fopen (Depends-on): Add 'largefile'.
9357         * modules/freopen (Depends-on): Likewise.
9358         * modules/fseeko (Depends-on): Likewise.
9359         * modules/ftello (Depends-on): Likewise.
9360         * modules/glob (Depends-on): Likewise.
9361         * modules/lseek (Depends-on): Likewise.
9362         * modules/lstat (Depends-on): Likewise.
9363         * modules/mkostemp (Depends-on): Likewise.
9364         * modules/mkostemps (Depends-on): Likewise.
9365         * modules/mkstemp (Depends-on): Likewise.
9366         * modules/mkstemps (Depends-on): Likewise.
9367         * modules/open (Depends-on): Likewise.
9368         * modules/openat (Depends-on): Likewise.
9369         * modules/pread (Depends-on): Likewise.
9370         * modules/pwrite (Depends-on): Likewise.
9371         * modules/scandir (Depends-on): Likewise.
9372         * modules/stat (Depends-on): Likewise.
9373         * modules/tmpfile (Depends-on): Likewise.
9374         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Do not require AC_SYS_LARGEFILE,
9375         since the containing module now depends on the largefile module.
9376         * m4/tempname.m4 (gl_FUNC_GEN_TEMPNAME): Likewise.
9377         * doc/posix-functions/fopen.texi: Mention that the problem of 32-bit
9378         off_t is fixed by gnulib.
9379         * doc/posix-functions/freopen.texi: Likewise.
9380         * doc/posix-functions/fseeko.texi: Likewise.
9381         * doc/posix-functions/fstatat.texi: Likewise.
9382         * doc/posix-functions/ftello.texi: Likewise.
9383         * doc/posix-functions/glob.texi: Likewise.
9384         * doc/posix-functions/lseek.texi: Likewise.
9385         * doc/posix-functions/lstat.texi: Likewise.
9386         * doc/posix-functions/mkstemp.texi: Likewise.
9387         * doc/posix-functions/open.texi: Likewise.
9388         * doc/posix-functions/openat.texi: Likewise.
9389         * doc/posix-functions/pread.texi: Likewise.
9390         * doc/posix-functions/pwrite.texi: Likewise.
9391         * doc/posix-functions/scandir.texi: Likewise.
9392         * doc/posix-functions/stat.texi: Likewise.
9393         * doc/posix-functions/tmpfile.texi: Likewise.
9394         * doc/glibc-functions/mkostemp.texi: Likewise.
9395         * doc/glibc-functions/mkostemps.texi: Likewise.
9396         * doc/glibc-functions/mkstemps.texi: Likewise.
9397
9398 2011-07-25  Bruno Haible  <bruno@clisp.org>
9399
9400         fcntl: Move AC_LIBOBJ invocation to module description.
9401         * m4/fcntl.m4 (gl_REPLACE_FCNTL): Don't invoke AC_LIBOBJ.
9402         * modules/fcntl (configure.ac): Invoke AC_LIBOBJ.
9403
9404         fcntl: Remove call-in from fchdir.m4.
9405         * m4/fcntl.m4 (gl_FUNC_FCNTL): Conditionally invoke gl_TEST_FCHDIR.
9406         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't invoke gl_REPLACE_FCNTL.
9407
9408         dup3: Remove potential call-in from fchdir.m4.
9409         * m4/dup3.m4 (gl_FUNC_DUP3): Add comment about fchdir.
9410         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Remove comment about dup3.
9411
9412         dup2: Move AC_LIBOBJ invocation to module description.
9413         * m4/dup2.m4 (gl_REPLACE_DUP2): Remove macro.
9414         (gl_FUNC_DUP2): Instead of gl_REPLACE_DUP2, just set REPLACE_DUP2 to 1.
9415         Don't invoke AC_LIBOBJ.
9416         * modules/dup2 (configure.ac): Invoke AC_LIBOBJ.
9417
9418         dup2: Remove call-in from fchdir.m4.
9419         * m4/dup2.m4 (gl_FUNC_DUP2): Conditionally invoke gl_TEST_FCHDIR.
9420         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't invoke gl_REPLACE_DUP2.
9421
9422         fclose: Move AC_LIBOBJ invocation to module description.
9423         * m4/fclose.m4 (gl_REPLACE_FCLOSE): Remove macro.
9424         (gl_FUNC_FCLOSE): Instead of gl_REPLACE_FCLOSE, just set REPLACE_FCLOSE
9425         to 1.
9426         * modules/fclose (configure.ac): Invoke AC_LIBOBJ.
9427
9428         fclose: Remove call-in from close.m4.
9429         * m4/fclose.m4 (gl_FUNC_FCLOSE): Invoke gl_FUNC_CLOSE.
9430         * m4/close.m4 (gl_FUNC_CLOSE): Don't invoke gl_REPLACE_FCLOSE.
9431
9432         close: Move AC_LIBOBJ invocation to module description.
9433         * m4/close.m4 (gl_REPLACE_CLOSE): Remove macro.
9434         (gl_FUNC_CLOSE): Instead of gl_REPLACE_CLOSE, just set REPLACE_CLOSE to
9435         1.
9436         * modules/close (configure.ac): Invoke AC_LIBOBJ.
9437
9438         close: Remove call-in from fchdir.m4.
9439         * m4/close.m4 (gl_FUNC_CLOSE): Conditionally invoke gl_TEST_FCHDIR.
9440         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't invoke gl_REPLACE_CLOSE.
9441
9442         open: Move AC_LIBOBJ invocation to module description.
9443         * m4/open.m4 (gl_REPLACE_OPEN): Remove macro.
9444         (gl_FUNC_OPEN): Instead of gl_REPLACE_OPEN, just set REPLACE_OPEN to 1.
9445         * modules/open (configure.ac): Invoke AC_LIBOBJ and gl_PREREQ_OPEN.
9446
9447         open: Remove call-in from fchdir.m4.
9448         * m4/open.m4 (gl_FUNC_OPEN): Conditionally invoke gl_TEST_FCHDIR.
9449         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't invoke gl_REPLACE_OPEN.
9450
9451         fchdir: Start to remove gl_REPLACE_* idiom.
9452         * m4/fchdir.m4 (gl_TEST_FCHDIR): New macro.
9453         (gl_FUNC_FCHDIR): Invoke it.
9454
9455 2011-07-25  Paul Eggert  <eggert@cs.ucla.edu>
9456
9457         * lib/ftell.c (ftell): Comment out cast.
9458
9459         close: use gl_REPLACE_FCLOSE only if defined
9460         * m4/close.m4 (gl_REPLACE_CLOSE): Use gl_REPLACE_FCLOSE only if it
9461         is defined.  The close module doesn't depend on the fclose module
9462         any more, so gl_REPLACE_CLOSE's existence cannot be assumed.  See
9463         <http://lists.gnu.org/archive/html/bug-gnulib/2011-07/msg00392.html>.
9464         I reproduced the problem with "./gnulib-tool --test close sys_socket".
9465
9466 2011-07-24  Jim Meyering  <meyering@redhat.com>
9467
9468         test-select.h: avoid warning when using gcc's -Wmissing-declarations
9469         * tests/test-select.h (test_function): Declare as "static".
9470
9471 2011-07-24  Bruno Haible  <bruno@clisp.org>
9472
9473         doc: Mention the effects of AC_SYS_LARGEFILE.
9474         * doc/posix-functions/aio_cancel.texi: Mention the effects of AC_SYS_LARGEFILE
9475         on this function.
9476         * doc/posix-functions/aio_error.texi: Likewise.
9477         * doc/posix-functions/aio_fsync.texi: Likewise.
9478         * doc/posix-functions/aio_read.texi: Likewise.
9479         * doc/posix-functions/aio_return.texi: Likewise.
9480         * doc/posix-functions/aio_suspend.texi: Likewise.
9481         * doc/posix-functions/aio_write.texi: Likewise.
9482         * doc/posix-functions/fgetpos.texi: Likewise.
9483         * doc/posix-functions/fopen.texi: Likewise.
9484         * doc/posix-functions/freopen.texi: Likewise.
9485         * doc/posix-functions/fsetpos.texi: Likewise.
9486         * doc/posix-functions/fstatvfs.texi: Likewise.
9487         * doc/posix-functions/ftruncate.texi: Likewise.
9488         * doc/posix-functions/ftw.texi: Likewise.
9489         * doc/posix-functions/getrlimit.texi: Likewise.
9490         * doc/posix-functions/glob.texi: Likewise.
9491         * doc/posix-functions/lio_listio.texi: Likewise.
9492         * doc/posix-functions/lockf.texi: Likewise.
9493         * doc/posix-functions/mkstemp.texi: Likewise.
9494         * doc/posix-functions/mmap.texi: Likewise.
9495         * doc/posix-functions/nftw.texi: Likewise.
9496         * doc/posix-functions/openat.texi: Likewise.
9497         * doc/posix-functions/opendir.texi: Likewise.
9498         * doc/posix-functions/posix_fadvise.texi: Likewise.
9499         * doc/posix-functions/posix_fallocate.texi: Likewise.
9500         * doc/posix-functions/pread.texi: Likewise.
9501         * doc/posix-functions/pwrite.texi: Likewise.
9502         * doc/posix-functions/readdir.texi: Likewise.
9503         * doc/posix-functions/readdir_r.texi: Likewise.
9504         * doc/posix-functions/rewinddir.texi: Likewise.
9505         * doc/posix-functions/scandir.texi: Likewise.
9506         * doc/posix-functions/seekdir.texi: Likewise.
9507         * doc/posix-functions/setrlimit.texi: Likewise.
9508         * doc/posix-functions/statvfs.texi: Likewise.
9509         * doc/posix-functions/telldir.texi: Likewise.
9510         * doc/posix-functions/tmpfile.texi: Likewise.
9511         * doc/posix-functions/truncate.texi: Likewise.
9512         * doc/glibc-functions/fallocate.texi: Likewise.
9513         * doc/glibc-functions/fstatfs.texi: Likewise.
9514         * doc/glibc-functions/fts_children.texi: Likewise.
9515         * doc/glibc-functions/fts_read.texi: Likewise.
9516         * doc/glibc-functions/getdirentries.texi: Likewise.
9517         * doc/glibc-functions/mkostemp.texi: Likewise.
9518         * doc/glibc-functions/mkostemps.texi: Likewise.
9519         * doc/glibc-functions/mkstemps.texi: Likewise.
9520         * doc/glibc-functions/preadv.texi: Likewise.
9521         * doc/glibc-functions/pwritev.texi: Likewise.
9522         * doc/glibc-functions/sendfile.texi: Likewise.
9523         * doc/glibc-functions/statfs.texi: Likewise.
9524
9525 2011-07-24  Bruno Haible  <bruno@clisp.org>
9526
9527         doc: Fix typo.
9528         * doc/posix-functions/fstat.texi: Talk about fstat, not stat.
9529
9530 2011-07-24  Bruno Haible  <bruno@clisp.org>
9531
9532         doc: Mention fsusage.
9533         * doc/posix-functions/statvfs.texi: Mention the fsusage module.
9534
9535 2011-07-24  Bruno Haible  <bruno@clisp.org>
9536
9537         doc: Mention new glibc headers and functions.
9538         * doc/glibc-headers/gshadow.texi: New file.
9539         * doc/glibc-functions/endsgent.texi: New file.
9540         * doc/glibc-functions/fgetsgent.texi: New file.
9541         * doc/glibc-functions/fgetsgent_r.texi: New file.
9542         * doc/glibc-functions/getsgent.texi: New file.
9543         * doc/glibc-functions/getsgent_r.texi: New file.
9544         * doc/glibc-functions/getsgnam.texi: New file.
9545         * doc/glibc-functions/getsgnam_r.texi: New file.
9546         * doc/glibc-functions/putsgent.texi: New file.
9547         * doc/glibc-functions/setsgent.texi: New file.
9548         * doc/glibc-functions/sgetsgent.texi: New file.
9549         * doc/glibc-functions/sgetsgent_r.texi: New file.
9550         * doc/glibc-functions/malloc_info.texi: New file.
9551         * doc/glibc-functions/preadv.texi: New file.
9552         * doc/glibc-functions/pwritev.texi: New file.
9553         * doc/glibc-functions/register_printf_modifier.texi: New file.
9554         * doc/glibc-functions/register_printf_specifier.texi: New file.
9555         * doc/glibc-functions/register_printf_type.texi: New file.
9556         * doc/glibc-functions/pthread_attr_getaffinity_np.texi: New file.
9557         * doc/glibc-functions/pthread_attr_setaffinity_np.texi: New file.
9558         * doc/glibc-functions/pthread_getaffinity_np.texi: New file.
9559         * doc/glibc-functions/pthread_getname_np.texi: New file.
9560         * doc/glibc-functions/pthread_mutex_consistent_np.texi: New file.
9561         * doc/glibc-functions/pthread_mutexattr_getrobust_np.texi: New file.
9562         * doc/glibc-functions/pthread_mutexattr_setrobust_np.texi: New file.
9563         * doc/glibc-functions/pthread_setaffinity_np.texi: New file.
9564         * doc/glibc-functions/pthread_setname_np.texi: New file.
9565         * doc/glibc-functions/pthread_sigqueue.texi: New file.
9566         * doc/glibc-functions/pthread_timedjoin_np.texi: New file.
9567         * doc/glibc-functions/pthread_tryjoin_np.texi: New file.
9568         * doc/glibc-functions/qsort_r.texi: New file.
9569         * doc/glibc-functions/quick_exit.texi: New file.
9570         * doc/glibc-functions/syncfs.texi: New file.
9571         * doc/gnulib.texi: Include them.
9572         (Glibc gshadow.h, Glibc sys/uio.h): New sections.
9573         * doc/posix-functions/psiginfo.texi: Fix info about glibc version.
9574         * doc/posix-functions/pthread_mutex_consistent.texi: Likewise.
9575         * doc/posix-functions/pthread_mutexattr_getrobust.texi: Likewise.
9576         * doc/posix-functions/pthread_mutexattr_setrobust.texi: Likewise.
9577         * doc/glibc-functions/execvpe.texi: Likewise.
9578
9579 2011-07-24  Paul Eggert  <eggert@cs.ucla.edu>
9580
9581         ftell: don't include <unistd.h>
9582         * lib/ftell.c: Don't include <unistd.h>.  <stdio.h> is now
9583         guaranteed to define off_t, and the ftell module depends on the
9584         stdio module.
9585
9586         ftell: do not assume wraparound signed arithmetic
9587         * lib/ftell.c: Include <limits.h>.
9588         (ftell): Don't assume wraparound signed arithmetic.
9589
9590 2011-07-24  Bruno Haible  <bruno@clisp.org>
9591
9592         close: No longer depend on module 'fclose'.
9593         * modules/close (Depends-on): Remove fclose.
9594         * NEWS: Mention the change.
9595         Suggested by Sam Steingold <sds@gnu.org>.
9596
9597 2011-07-24  Bruno Haible  <bruno@clisp.org>
9598
9599         fsusage: Enable large volume support on AIX >= 5.2.
9600         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): If 'struct statvfs64' has a
9601         larger f_blocks field than 'struct statvfs', define STAT_STATVFS64
9602         instead of STAT_STATVFS.
9603         * lib/fsusage.c (get_fs_usage) [STAT_STATVFS64]: Use statvfs64.
9604
9605         fsusage: Restore previous behaviour on AIX, Cygwin, Interix.
9606         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Enforce a 64-bit struct statvfs
9607         f_blocks field only on MacOS X.
9608
9609         fsusage: Support large volumes on glibc/Hurd, HP-UX, Solaris, MacOS X.
9610         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Require AC_SYS_LARGEFILE.
9611         * modules/fsusage (Depends-on): Add largefile.
9612
9613 2011-07-24  Paul Eggert  <eggert@cs.ucla.edu>
9614
9615         * README: Modernize discussion of signed integers.
9616         Assuming overflow wraparound is no longer safe.
9617         Mention ones' complement and signed magnitude.
9618
9619 2011-07-22  Bruno Haible  <bruno@clisp.org>
9620
9621         select tests, pselect tests: Refactor.
9622         * tests/test-select.h: New file, extracted from tests/test-select.c.
9623         (select_fn): New type.
9624         (test, do_select, do_select_nowait, do_select_wait, test_tty,
9625         test_connect_first, test_accept_first, test_pair, test_socket_pair,
9626         test_pipe): Add my_select argument.
9627         (test_function): Renamed from main. Add my_select argument.
9628         * tests/test-select.c: Move most code to tests/test-select.h. Include
9629         test-select.h.
9630         * modules/select-tests (Files): Add tests/test-select.h.
9631         * tests/test-pselect.c: Include test-select.h instead of test-select.c.
9632         (my_select, main): New functions.
9633         * modules/pselect-tests (Files): Add tests/test-select.h,
9634         tests/macros.h, tests/signature.h.
9635         (Depends-on): Remove select-tests. Add dependencies of test-select.h.
9636         (configure.ac): Check for <sys/wait.h>.
9637
9638 2011-07-22  Bruno Haible  <bruno@clisp.org>
9639
9640         sys_select tests: Check the signature of FD_*.
9641         * tests/test-select.c (FD_CLR, FD_ISSET, FD_SET, FD_ZERO): Move
9642         signature tests from here...
9643         * tests/test-sys_select.c (FD_CLR, FD_ISSET, FD_SET, FD_ZERO): ... to
9644         here.
9645         * modules/sys_select-tests (Files): Add tests/signature.h.
9646
9647 2011-07-22  Paul Eggert  <eggert@cs.ucla.edu>
9648
9649         largefile: new module, replacing large-inode
9650         Pádraig Brady suggested this in        <http://debbugs.gnu.org/9140#20>.
9651         * MODULES.html.sh: Add largefile, remove large-inode.
9652         * modules/largefile, m4/largefile.m4: New files.
9653         * modules/large-inode, m4/large-inode.m4: Remove.
9654
9655         fsusage: port to MacOS X 10.7 with 4 TiB file systems
9656         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Reject statvfs
9657         implementations that use only 32 bits to count blocks.
9658         On typical hosts with 1024-byte blocks, this fails with file
9659         systems as small as 4 TiB.  Problem reported by Herb Wartens
9660         <http://debbugs.gnu.org/9140> and this should also fix a similar
9661         problem reported by Tim Spriggs <http://debbugs.gnu.org/7355>.
9662
9663         large-inode: New module
9664         * MODULES.html.sh: Add it.
9665         * modules/large-inode, m4/large-inode.m4: New files.
9666
9667         extensions: Enable extensions on MacOS X 10.5 and later.
9668         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Define _DARWIN_C_SOURCE.
9669
9670 2011-07-22  Kamil Dudka  <kdudka@redhat.com>
9671
9672         file-has-acl: use acl_extended_file_nofollow if available
9673         * lib/acl-internal.h (HAVE_ACL_EXTENDED_FILE): New macro.
9674         (acl_extended_file): New macro.
9675         * lib/file-has-acl.c (file_has_acl): Use acl_extended_file_nofollow.
9676         * m4/acl.m4 (gl_FUNC_ACL): Check for acl_extended_file_nofollow.
9677
9678 2011-07-21  Bruno Haible  <bruno@clisp.org>
9679
9680         Declare system functions in a way that works with C++.
9681         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR) [C++]: In the test program,
9682         declare fdopendir as extern "C".
9683         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS) [C++]: In the test program,
9684         declare frexpl as extern "C".
9685         * m4/getaddrinfo.m4 (gl_GETADDRINFO) [C++]: In the test program,
9686         declare gai_strerror as extern "C".
9687         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME) [C++]: In the test
9688         programs, declare gai_strerror as extern "C".
9689         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R) [C++]: In the test program,
9690         declare getlogin_r as extern "C".
9691         * m4/ioctl.m4 (gl_FUNC_IOCTL) [C++]: In the test program, declare ioctl
9692         as extern "C".
9693         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS) [C++]: In the test program,
9694         declare ldexpl as extern "C".
9695         * m4/logb.m4 (gl_FUNC_LOGB) [C++]: In the test programs, declare logb
9696         as extern "C".
9697         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS) [C++]: In the test
9698         program, declare getmntinfo as extern "C".
9699         * m4/stpncpy.m4 (gl_FUNC_STPNCPY) [C++]: In the test program, declare
9700         stpncpy as extern "C".
9701         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R_WORKS) [C++]: In the test
9702         program, declare __xpg_strerror_r as extern "C".
9703         * m4/strndup.m4 (gl_FUNC_STRNDUP) [C++]: In the test program, declare
9704         strndup as extern "C".
9705         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT) [C++]: In the test program,
9706         declare memset and bzero as extern "C".
9707         Reported by Sam Steingold <sds@gnu.org>.
9708
9709 2011-07-12  Jim Meyering  <meyering@redhat.com>
9710
9711         maint.mk: prohibit inclusion of "verify.h" without use
9712         * top/maint.mk (sc_prohibit_verify_without_use): New rule.
9713
9714 2011-07-19  Pádraig Brady  <P@draigBrady.com>
9715
9716         timer-time: A new module to check for timer_settime()
9717         * m4/timer_time.m4: Check for the posix function.
9718         * modules/timer-time: Add the new module.
9719         * MODULES.html.sh (Compat checks for POSIX:2008 functions):
9720         Mention it.
9721
9722 2011-07-19  Paul Eggert  <eggert@cs.ucla.edu>
9723             Bruno Haible  <bruno@clisp.org>
9724
9725         pthread_sigmask: assume POSIX threads if --avoid=threadlib
9726         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): If gl_THREADLIB is
9727         not defined, assume POSIX threads and look for pthread_sigmask in
9728         $LIBS, without changing $CPPFLAGS.
9729
9730 2011-07-19  Bruno Haible  <bruno@clisp.org>
9731
9732         strstr: Update cross-compilation guess.
9733         * m4/strstr.m4 (gl_FUNC_STRSTR): On glibc > 2.12 with x86 or x86_64
9734         CPUs, guess no, in view of glibc
9735         BZ #12100 <http://sourceware.org/bugzilla/show_bug.cgi?id=12100>.
9736         Suggested by Eric Blake. Reported by Reuben Thomas.
9737
9738 2011-07-19  Pádraig Brady  <P@draigBrady.com>
9739
9740         getopt-gnu: suppress core dumps from detection code
9741         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Use the nocrash module
9742         to suppress core dumps that may well occur on glibc systems.
9743         * modules/getopt-gnu: Depend on nocrash.
9744
9745 2011-07-16  Paul Eggert  <eggert@cs.ucla.edu>
9746
9747         pthread_sigmask: ensure usleep is declared
9748         * lib/pthread_sigmask.c [PTHREAD_SIGMASK_UNBLOCK_BUG]:
9749         Include <unistd.h>, to declare usleep.  Needed on Solaris 8,
9750
9751 2011-07-15  Paul Eggert  <eggert@cs.ucla.edu>
9752
9753         doc: Document NonStop portability issues.
9754         * doc/posix-functions/sigaction.texi (sigaction):
9755         * doc/posix-headers/signal.texi (signal.h):
9756         Document NonStop.  See Joachim Schmitz in
9757         http://lists.gnu.org/archive/html/bug-coreutils/2011-07/msg00062.html
9758
9759 2011-07-15  Bruno Haible  <bruno@clisp.org>
9760
9761         ffsl, ffsll: Avoid unportable behaviour.
9762         * lib/ffsl.h (FUNC): Use 'unsigned int' instead of 'int'.
9763
9764 2011-07-15  Bruno Haible  <bruno@clisp.org>
9765
9766         ffs: More tests.
9767         * tests/test-ffs.c (NBITS): New macro.
9768         (main): Add more tests.
9769         * tests/test-ffsl.c (NBITS): New macro.
9770         (main): Add more tests.
9771         * tests/test-ffsll.c (NBITS): New macro.
9772         (main): Add more tests.
9773
9774 2011-07-15  Eric Blake  <eblake@redhat.com>
9775
9776         ffsl, ffsll: new modules
9777         * modules/ffsl: New file.
9778         * modules/ffsll: Likewise.
9779         * m4/ffsl.m4: Likewise.
9780         * m4/ffsll.m4: Likewise.
9781         * lib/ffsl.c: Likewise.
9782         * lib/ffsl.h: Likewise.
9783         * lib/ffsll.c: Likewise.
9784         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY)
9785         (gl_HEADER_STRING_H_DEFAULTS): Add defaults.
9786         * modules/string (Makefile.am): Substitute witnesses.
9787         * lib/strings.in.h (ffsl, ffsll): Declare.
9788         * modules/ffsl-tests: New test file.
9789         * modules/ffsll-tests: Likewise.
9790         * tests/test-ffsl.c: Likewise.
9791         * tests/test-ffsll.c: Likewise.
9792         * MODULES.html.sh (Integer arithmetic functions): Mention it.
9793         * doc/glibc-functions/ffsl.texi (ffsl): Likewise.
9794         * doc/glibc-functions/ffsll.texi (ffsll): Likewise.
9795
9796         ffs: fix m4 prerequisite
9797         * m4/ffs.m4 (gl_FUNC_FFS): Require strings.h defaults.
9798
9799         ffs: avoid undefined behavior
9800         * lib/ffs.c (ffs): Provide fallback for non-32-bit int.
9801         * tests/test-ffs.c (naive, main): Avoid signed shifts.
9802         Reported by Bruno Haible.
9803
9804 2011-07-12  Bruno Haible  <bruno@clisp.org>
9805
9806         pthread_sigmask: Rely on module 'threadlib'.
9807         * modules/pthread_sigmask (Depends-on): Add threadlib.
9808         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Assume gl_THREADLIB
9809         is defined.
9810
9811 2011-07-12  Bruno Haible  <bruno@clisp.org>
9812
9813         regex: Depend on module 'strcase'.
9814         * modules/regex (Depends-on): Add strcase, for strcasecmp().
9815
9816 2011-07-12  Jim Meyering  <meyering@redhat.com>
9817
9818         warn-on-use: fix typo in file name
9819         * modules/snippet/warn-on-use (Files): Correct file name:
9820         include /snippet/ component in "build-aux/snippet/warn-on-use.h".
9821
9822 2011-07-12  Bruno Haible  <bruno@clisp.org>
9823
9824         strings: Document module.
9825         * doc/posix-headers/strings.texi: Mention module 'strings'.
9826
9827 2011-07-12  Bruno Haible  <bruno@clisp.org>
9828
9829         Rename module '_Noreturn' to 'snippet/_Noreturn'.
9830         * modules/snippet/_Noreturn: Renamed from modules/_Noreturn.
9831         (Files, Makefile.am): Update.
9832         * build-aux/snippet/_Noreturn.h: Renamed from build-aux/_Noreturn.h.
9833         * modules/stdlib (Depends-on): Update.
9834
9835 2011-07-12  Bruno Haible  <bruno@clisp.org>
9836
9837         * NEWS: Mention the changes.
9838
9839         Rename module 'warn-on-use' to 'snippet/warn-on-use'.
9840         * modules/snippet/warn-on-use: Renamed from modules/warn-on-use.
9841         (Files, Makefile.am): Update.
9842         * build-aux/snippet/warn-on-use.h: Renamed from build-aux/warn-on-use.h.
9843         * modules/arpa_inet (Depends-on): Update.
9844         * modules/ctype (Depends-on): Update.
9845         * modules/dirent (Depends-on): Update.
9846         * modules/fcntl-h (Depends-on): Update.
9847         * modules/glob (Depends-on): Update.
9848         * modules/iconv-h (Depends-on): Update.
9849         * modules/inttypes-incomplete (Depends-on): Update.
9850         * modules/langinfo (Depends-on): Update.
9851         * modules/locale (Depends-on): Update.
9852         * modules/math (Depends-on): Update.
9853         * modules/netdb (Depends-on): Update.
9854         * modules/poll-h (Depends-on): Update.
9855         * modules/pty (Depends-on): Update.
9856         * modules/search (Depends-on): Update.
9857         * modules/signal (Depends-on): Update.
9858         * modules/spawn (Depends-on): Update.
9859         * modules/stdio (Depends-on): Update.
9860         * modules/stdlib (Depends-on): Update.
9861         * modules/string (Depends-on): Update.
9862         * modules/strings (Depends-on): Update.
9863         * modules/sys_file (Depends-on): Update.
9864         * modules/sys_ioctl (Depends-on): Update.
9865         * modules/sys_select (Depends-on): Update.
9866         * modules/sys_socket (Depends-on): Update.
9867         * modules/sys_stat (Depends-on): Update.
9868         * modules/sys_time (Depends-on): Update.
9869         * modules/sys_times (Depends-on): Update.
9870         * modules/sys_utsname (Depends-on): Update.
9871         * modules/sys_wait (Depends-on): Update.
9872         * modules/termios (Depends-on): Update.
9873         * modules/time (Depends-on): Update.
9874         * modules/unistd (Depends-on): Update.
9875         * modules/wchar (Depends-on): Update.
9876         * modules/wctype-h (Depends-on): Update.
9877         * MODULES.html.sh (Support for building libraries and executables):
9878         Update.
9879
9880         Rename module 'unused-parameter' to 'snippet/unused-parameter'.
9881         * modules/snippet/unused-parameter: Renamed from
9882         modules/unused-parameter.
9883         (Files, Makefile.am): Update.
9884         * build-aux/snippet/unused-parameter.h: Renamed from
9885         build-aux/unused-parameter.h.
9886         * modules/selinux-h (Depends-on): Update.
9887         * modules/unistr/base (Depends-on): Update.
9888         * MODULES.html.sh (Core language properties): Update.
9889
9890         Rename module 'link-warning' to 'snippet/link-warning'.
9891         * modules/snippet/link-warning: Renamed from modules/link-warning.
9892         (Files, Makefile.am): Update.
9893         * build-aux/snippet/link-warning.h: Renamed from
9894         build-aux/link-warning.h.
9895         * MODULES.html.sh (Support for building libraries and executables):
9896         Update.
9897
9898         Rename module 'c++defs' to 'snippet/c++defs'.
9899         * modules/snippet/c++defs: Renamed from modules/c++defs.
9900         (Files, Makefile.am): Update.
9901         * build-aux/snippet/c++defs.h: Renamed from build-aux/c++defs.h.
9902         * modules/arpa_inet (Depends-on): Update.
9903         * modules/ctype (Depends-on): Update.
9904         * modules/dirent (Depends-on): Update.
9905         * modules/fcntl-h (Depends-on): Update.
9906         * modules/glob (Depends-on): Update.
9907         * modules/iconv-h (Depends-on): Update.
9908         * modules/langinfo (Depends-on): Update.
9909         * modules/locale (Depends-on): Update.
9910         * modules/math (Depends-on): Update.
9911         * modules/netdb (Depends-on): Update.
9912         * modules/poll-h (Depends-on): Update.
9913         * modules/pty (Depends-on): Update.
9914         * modules/search (Depends-on): Update.
9915         * modules/signal (Depends-on): Update.
9916         * modules/spawn (Depends-on): Update.
9917         * modules/stdio (Depends-on): Update.
9918         * modules/stdlib (Depends-on): Update.
9919         * modules/string (Depends-on): Update.
9920         * modules/strings (Depends-on): Update.
9921         * modules/sys_ioctl (Depends-on): Update.
9922         * modules/sys_select (Depends-on): Update.
9923         * modules/sys_socket (Depends-on): Update.
9924         * modules/sys_stat (Depends-on): Update.
9925         * modules/sys_time (Depends-on): Update.
9926         * modules/sys_wait (Depends-on): Update.
9927         * modules/termios (Depends-on): Update.
9928         * modules/time (Depends-on): Update.
9929         * modules/unistd (Depends-on): Update.
9930         * modules/wchar (Depends-on): Update.
9931         * modules/wctype-h (Depends-on): Update.
9932
9933         Rename module 'arg-nonnull' to 'snippet/arg-nonnull'.
9934         * modules/snippet/arg-nonnull: Renamed from modules/arg-nonnull.
9935         (Files, Makefile.am): Update.
9936         * build-aux/snippet/arg-nonnull.h: Renamed from build-aux/arg-nonnull.h.
9937         * modules/argv-iter (Depends-on): Update.
9938         * modules/arpa_inet (Depends-on): Update.
9939         * modules/dirent (Depends-on): Update.
9940         * modules/fcntl-h (Depends-on): Update.
9941         * modules/fnmatch (Depends-on): Update.
9942         * modules/getopt-posix (Depends-on): Update.
9943         * modules/glob (Depends-on): Update.
9944         * modules/iconv-h (Depends-on): Update.
9945         * modules/inttypes-incomplete (Depends-on): Update.
9946         * modules/locale (Depends-on): Update.
9947         * modules/math (Depends-on): Update.
9948         * modules/netdb (Depends-on): Update.
9949         * modules/search (Depends-on): Update.
9950         * modules/signal (Depends-on): Update.
9951         * modules/spawn (Depends-on): Update.
9952         * modules/stdio (Depends-on): Update.
9953         * modules/stdlib (Depends-on): Update.
9954         * modules/string (Depends-on): Update.
9955         * modules/strings (Depends-on): Update.
9956         * modules/sys_socket (Depends-on): Update.
9957         * modules/sys_stat (Depends-on): Update.
9958         * modules/sys_time (Depends-on): Update.
9959         * modules/sys_times (Depends-on): Update.
9960         * modules/sys_utsname (Depends-on): Update.
9961         * modules/time (Depends-on): Update.
9962         * modules/unistd (Depends-on): Update.
9963         * modules/wchar (Depends-on): Update.
9964         * MODULES.html.sh (Support for building libraries and executables):
9965         Update.
9966
9967 2011-07-12  Paul Eggert  <eggert@cs.ucla.edu>
9968
9969         Improvements on _Noreturn and related modules.
9970
9971         modules/_Exit-tests: test _Noreturn too
9972         * tests/test-_Exit.c (MTA, Charlie): New functions, taken from the
9973         old tests/test-stdnoreturn.c.  This tests the _Noreturn keyword a bit.
9974         (main): Use them.
9975
9976         stdnoreturn, stdnoreturn-tests: remove modules
9977         They're not needed here and a bit premature for use elsewhere.  See
9978         <http://lists.gnu.org/archive/html/bug-gnulib/2011-07/msg00209.html>.
9979         * m4/stdnoreturn.m4, modules/stdnoreturn, modules/stdnoreturn-tests:
9980         * tests/test-stdnoreturn.c: Remove files.
9981         * MODULES.html.sh (_Noreturn <stdnoreturn.h>): Remove section.
9982         * lib/openat.h, lib/sigpipe-die.h, lib/xalloc.h, lib/xmemdup0.h:
9983         * lib/xstrtol.h: Use _Noreturn rather than including <stdnoreturn.h>
9984         and using noreturn.
9985         * modules/openat, modules/sigpipe-die, modules/xalloc:
9986         * modules/xmemdup0, modules/xstrtol:
9987         Remove dependency on stdnoreturn.
9988
9989         _Noreturn: Ignore __STDC_VERSION__; observe _MSC_VER.
9990         * build-aux/_Noreturn.h (_Noreturn): Ignore __STDC_VERSION__.
9991         Reparenthesize to avoid GCC warning.
9992         Support Microsoft's syntax.
9993         * m4/gnulib-common.m4 (gl_COMMON_BODY): Likewise.
9994
9995         _Noreturn-tests: remove module
9996         * modules/_Noreturn-tests: Remove.
9997         * modules/stdnoreturn-tests (Files): Remove tests/test-_Noreturn.c.
9998         * tests/test-_Noreturn.c: Remove.
9999         * tests/test-stdnoreturn.c: Merge from the old
10000         tests/test-_Noreturn.c, testing both noreturn and _Noreturn.
10001
10002 2011-07-12  Paul Eggert  <eggert@cs.ucla.edu>
10003
10004         _Noreturn, stdnoreturn, and related modules.
10005
10006         * top/maint.mk: Adjust to new noreturn support.
10007         (gl_extract_significant_defines_): Omit pattern ATTRIBUTE_NORETURN.
10008         (def_sym_regex): Do not remove ATTRIBUTE_NORETURN.
10009
10010         xalloc: use stdnoreturn.h
10011         * lib/xalloc.h: Include <stdnoreturn.h>.
10012         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
10013         * modules/xalloc (Depends-on): Add stdnoreturn.
10014
10015         xstrtol: use stdnoreturn.h
10016         * lib/xstrtol.h: Include <stdnoreturn.h>.
10017         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
10018         * modules/xstrtol (Depends-on): Add stdnoreturn.
10019
10020         xmemdup0: use stdnoreturn.h
10021         * lib/xmemdup0.h: Include <stdnoreturn.h>.
10022         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
10023         * modules/xmemdup0 (Depends-on): Add stdnoreturn.
10024
10025         sigpipe-die: use stdnoreturn.h
10026         * lib/sigpipe-die.h: Include <stdnoreturn.h>.
10027         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
10028         * modules/sigpipe-die (Depends-on): Add stdnoreturn.
10029
10030         openat: use stdnoreturn.h
10031         * lib/openat.h: Include <stdnoreturn.h>.
10032         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
10033         * modules/openat (Depends-on): Add stdnoreturn.
10034
10035         * lib/openat-die.c (openat_save_fail): Modernize comment.
10036
10037         * lib/xalloc-die.c (xalloc_die): Modernize comment.
10038
10039         * lib/glthread/thread.h: Modernize comment.
10040
10041         obstack: use _Noreturn
10042         * lib/obstack.c (__attribute__): Remove macro.
10043         (print_and_abort): Use _Noreturn.
10044
10045         c-stack: use _Noreturn
10046         * lib/c-stack.c (die, overflow_handler, segv_handler):
10047         Use _Noreturn rather than __attribute__((noreturn)).
10048
10049         argmatch-tests, exclude_tests: use _Noreturn
10050         * tests/test-argmatch.c, tests/test-exclude.c (_GL_ATTRIBUTE_NORETURN):
10051         Remove.
10052         (ARGMATCH_DIE_DECL): Use _Noreturn instead.
10053
10054         stdlib: use _Noreturn
10055         * lib/stdlib.in.h (_GL_ATTRIBUTE_NORETURN): Remove.
10056         (_Exit): Use _Noreturn rather than _GL_ATTRIBUTE_NORETURN.
10057         * modules/stdlib (Depends-on): Add _Noreturn.
10058         (stdlib.h): Depend on $(_NORETURN_H), and copy it in.
10059
10060         stdnoreturn-tests: new module
10061         * modules/stdnoreturn-tests, tests/test-stdnoreturn.c: New files.
10062
10063         stdnoreturn: new module
10064         * MODULES.html.sh (Noreturn <stdnoreturn.h>): New section.
10065         * m4/stdnoreturn.m4, modules/stdnoreturn: New files.
10066
10067         _Noreturn-tests: new module
10068         * modules/_Noreturn-tests, tests/test-_Noreturn.c: New files.
10069
10070         _Noreturn: new module
10071         * MODULES.html.sh (Support for systems lacking draft ISO C 1X):
10072         New section, mentioning it.
10073         * build-aux/_Noreturn.h, modules/_Noreturn: New files.
10074
10075         * m4/gnulib-common.m4 (gl_COMMON_BODY): Add _Noreturn.
10076
10077 2011-07-11  Eric Blake  <eblake@redhat.com>
10078
10079         ffs: new module
10080         * modules/ffs: New file.
10081         * m4/ffs.m4: Likewise.
10082         * lib/ffs.c: Likewise.
10083         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_DEFAULTS): Add default.
10084         * modules/strings (Makefile.am): Substitute witness.
10085         (Depends-on): Add c++defs.
10086         * lib/strings.in.h (ffs): Declare.
10087         * modules/ffs-tests: New test file.
10088         * tests/test-ffs.c: Test new module.
10089         * MODULES.html.sh (Integer arithmetic functions): Mention it.
10090         * doc/posix-functions/ffs.texi (ffs): Likewise.
10091
10092         regex: avoid compiler warning
10093         * lib/regex.c (includes): Include <strings.h>, for use of
10094         strcasecmp in regcomp.c.
10095         Reported by Joachim Schmitz.
10096
10097 2011-07-09  Paul Eggert  <eggert@cs.ucla.edu>
10098
10099         stdint: respect system's intmax_t if INTMAX_MAX
10100         * lib/stdint.in.h (intmax_t, uintmax_t): If the system defines
10101         INTMAX_MAX, assume its intmax_t is OK.  Similarly for and
10102         uintmax_t.  This is for some Mac OS X builds, where intmax_t is
10103         long but int64_t is long long, and where we will clash with the
10104         system intmax_t if we override it.  See
10105         <http://lists.gnu.org/archive/html/bug-gnulib/2011-07/msg00160.html>.
10106         (INTMAX_C, UINTMAX_C): For consistency, respect the system's
10107         INTMAX_C if INTMAX_MAX and INTMAX_C are both defined, and
10108         similarly for UINTMAX_C.
10109
10110 2011-07-08  Bruno Haible  <bruno@clisp.org>
10111
10112         pthread_sigmask tests: Avoid a compiler warning.
10113         * tests/test-pthread_sigmask1.c (main): Complain if system() returns
10114         non-zero.
10115
10116         sigprocmask tests: A better way to avoid a compiler warning.
10117         * tests/test-sigprocmask.c: Don't include "ignore-value.h".
10118         (main): Complain if system() returns non-zero.
10119         * modules/sigprocmask-tests (Depends-on): Remove ignore-value.
10120
10121 2011-07-08  Bruno Haible  <bruno@clisp.org>
10122
10123         pthread_sigmask: Work around IRIX bug.
10124         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Test for the IRIX
10125         bug.
10126         * lib/pthread_sigmask.c (pthread_sigmask): usleep for some time when
10127         there may be unblocked pending signals.
10128         * doc/posix-functions/pthread_sigmask.texi: Mention the IRIX bug.
10129
10130 2011-07-08  Bruno Haible  <bruno@clisp.org>
10131
10132         pthread_sigmask: Work around Cygwin bug.
10133         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Test for the Cygwin
10134         bug.
10135         * lib/pthread_sigmask.c (pthread_sigmask): Fix the return value from
10136         the system's pthread_sigmask function.
10137         * doc/posix-functions/pthread_sigmask.texi: Mention the Cygwin bug.
10138
10139 2011-07-08  Bruno Haible  <bruno@clisp.org>
10140
10141         pthread_sigmask: Work around bug in single-threaded implementation.
10142         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Test for the
10143         FreeBSD, HP-UX, Solaris bug.
10144         (gl_PREREQ_PTHREAD_SIGMASK): New macro.
10145         * lib/pthread_sigmask.c: Include <stddef.h>.
10146         (pthread_sigmask): If HAVE_PTHREAD_SIGMASK, define as a wrapper around
10147         the system's pthread_sigmask function.
10148         * modules/pthread_sigmask (configure.ac): Invoke
10149         gl_PREREQ_PTHREAD_SIGMASK.
10150         * doc/posix-functions/pthread_sigmask.texi: Mention bug on FreeBSD,
10151         HP-UX, Solaris.
10152
10153 2011-07-08  Eric Blake  <eblake@redhat.com>
10154
10155         test-sigprocmask: avoid compiler warning
10156         * modules/sigprocmask-tests (Depends-on): Add ignore-value.
10157         * tests/test-sigprocmask.c (main): Use it to silence warning.
10158         Reported by Jim Meyering.
10159
10160         test-snprintf: avoid compiler warning
10161         * tests/test-snprintf.c (main): Avoid shadowed declaration.
10162         * tests/test-vsnprintf.c (main): Likewise.
10163         Reported by Jim Meyering.
10164
10165 2011-07-08  Bruno Haible  <bruno@clisp.org>
10166
10167         Tests for module 'pthread_sigmask'.
10168         * modules/pthread_sigmask-tests: New file.
10169         * tests/test-pthread_sigmask1.c: New file, based on
10170         tests/test-sigprocmask.c.
10171         * tests/test-pthread_sigmask2.c: New file.
10172
10173 2011-07-08  Jim Meyering  <meyering@redhat.com>
10174
10175         test-getopt.h: avoid warning about an unused variable
10176         * tests/test-getopt.h (test_getopt): Remove unused variable, "c".
10177
10178 2011-07-07  Jim Meyering  <meyering@redhat.com>
10179
10180         maint: reduce list of files exempt from sc_prohibit_leading_TABs
10181         * Makefile (sc_prohibit_leading_TABs): Don't exempt m4/po.m4,
10182         now that it no longer contains leading TABs.
10183         Remove unused "url=FIXME" statement.
10184
10185 2011-07-08  Paul Eggert  <eggert@cs.ucla.edu>
10186
10187         pthread_sigmask: Assume POSIX when not gl_THREADLIB.
10188         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK):
10189         When gl_THREADLIB is not in use, assume that the POSIX sematics
10190         are desired.  This is better for Emacs, which uses POSIX semantics
10191         on GNUish and/or POSIXish platforms, and does not use threads at
10192         all otherwise.
10193
10194         pthread_sigmask: fix typo when testing for libraries
10195         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK):
10196         AC_LINK_IFELSE, not AC_COMPILE_IFELSE.
10197
10198 2011-07-08  Eric Blake  <eblake@redhat.com>
10199
10200         fts: introduce FTS_NOATIME
10201         * lib/fts_.h (FTS_NOATIME): New bit flag.
10202         (FTS_OPTIONMASK): Adjust.
10203         * lib/fts.c (diropen, fts_open, fts_build): Honor it.
10204         (fd_ring_check): Debug code unconditionally uses O_NOATIME.
10205
10206 2011-07-08  Bruno Haible  <bruno@clisp.org>
10207
10208         Tests for module 'thread'.
10209         * modules/thread-tests: New file.
10210         * tests/test-thread_self.c: New file.
10211         * tests/test-thread_create.cc: New file.
10212
10213 2011-07-08  Bruno Haible  <bruno@clisp.org>
10214
10215         thread: Avoid gcc warnings when using gl_thread_self().
10216         * lib/glthread/thread.h (gl_thread_self): Return a pthread_t, not a
10217         'void *'.
10218         (gl_thread_self_pointer): Update.
10219
10220 2011-07-07  Bruno Haible  <bruno@clisp.org>
10221
10222         signal-c++-tests: Check declaration of pthread_sigmask.
10223         * tests/test-signal-c++.cc: Check declaration of pthread_sigmask.
10224         * modules/signal-c++-tests (Makefile.am): Link test-signal-c++ against
10225         $(LIB_PTHREAD_SIGMASK).
10226
10227 2011-07-07  Bruno Haible  <bruno@clisp.org>
10228
10229         pthread_sigmask: Fix link requirements on OSF/1 5.1 and with pth.
10230         * lib/signal.in.h (pthread_sigmask): Override if
10231         REPLACE_PTHREAD_SIGMASK is 1.
10232         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize
10233         REPLACE_PTHREAD_SIGMASK.
10234         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Set also
10235         REPLACE_PTHREAD_SIGMASK. Set and substitute LIB_PTHREAD_SIGMASK.
10236         * modules/signal (Makefile.am): Substitute REPLACE_PTHREAD_SIGMASK.
10237         * modules/pthread_sigmask (Depends-on, configure.ac): Update condition.
10238         (Link): Set to $(LIB_PTHREAD_SIGMASK), not $(LIBMULTITHREAD).
10239
10240 2011-07-07  Bruno Haible  <bruno@clisp.org>
10241
10242         pthread_sigmask: Ensure declaration in <signal.h>.
10243         * lib/signal.in.h: On MacOS X, FreeBSD, OpenBSD, OSF/1, Solaris 2.6,
10244         include <pthread.h>.
10245         * doc/posix-functions/pthread_sigmask.texi: Mention the header file
10246         problem.
10247
10248 2011-07-07  Bruno Haible  <bruno@clisp.org>
10249
10250         pthread_sigmask: Document the module.
10251         * doc/posix-functions/pthread_sigmask.texi: Mention the new module.
10252
10253 2011-07-07  Bruno Haible  <bruno@clisp.org>
10254
10255         pthread_sigmask: Follow gnulib conventions.
10256         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Renamed from
10257         gl_PTHREAD_SIGMASK.
10258         * modules/pthread_sigmask (configure.ac): Update.
10259
10260 2011-07-07  Bruno Haible  <bruno@clisp.org>
10261
10262         pthread_sigmask: Make declaration C++ safe.
10263         * lib/signal.in.h: In two special conditions, just do an #include_next.
10264         (pthread_sigmask): Test HAVE_PTHREAD_SIGMASK, not REPLACE_PTHREAD_MASK.
10265         Invoke _GL_CXXALIAS_SYS and _GL_CXXALIASWARN.
10266         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize
10267         HAVE_PTHREAD_SIGMASK, not REPLACE_PTHREAD_MASK.
10268         * m4/pthread_sigmask.m4 (gl_PTHREAD_SIGMASK): Set HAVE_PTHREAD_SIGMASK,
10269         not REPLACE_PTHREAD_MASK.
10270         * modules/signal (Makefile.am): Substitute HAVE_PTHREAD_SIGMASK,
10271         not REPLACE_PTHREAD_MASK.
10272         * modules/pthread_sigmask (Depends-on, configure.ac): Update condition.
10273
10274 2011-07-07  Bruno Haible  <bruno@clisp.org>
10275
10276         pthread_sigmask: Fix return value.
10277         * lib/signal.in.h (pthread_sigmask): Declare. Don't define as a macro.
10278         * lib/pthread_sigmask.c: New file.
10279         * modules/pthread_sigmask (Files): Add it.
10280         (configure.ac): Invoke AC_LIBOBJ.
10281
10282 2011-07-07  Eric Blake  <eblake@redhat.com>
10283
10284         getopt: more portable argv creation
10285         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADRS): Rather than casting away
10286         const, use char arrays rather than strings.
10287         Suggested by Paul Eggert.
10288
10289 2011-07-07  Bruno Haible  <bruno@clisp.org>
10290
10291         Tests for module 'sigprocmask'.
10292         * modules/sigprocmask-tests: New file.
10293         * tests/test-sigprocmask.c: New file.
10294
10295 2011-07-07  Bruno Haible  <bruno@clisp.org>
10296
10297         float tests: Tweak.
10298         * tests/test-float.c (main): Tweak skip message.
10299
10300 2011-07-07  Eric Blake  <eblake@redhat.com>
10301
10302         getopt: avoid compiler warning during configure
10303         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADRS): Avoid problems with
10304         assigning string literals to non-const pointer.
10305
10306         getopt-gnu: avoid crash in glibc getopt
10307         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADRS): Detect the problem.
10308         * tests/test-getopt.h (test_getopt): Enhance test.
10309         * tests/test-getopt_long.h (test_getopt_long): Likewise.
10310         * doc/posix-functions/getopt.texi (getopt): Document it.
10311         * doc/glibc-functions/getopt_long.texi (getopt_long): Likewise.
10312         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
10313         Likewise.
10314
10315 2011-07-07  Ulrich Drepper  <drepper@gmail.com>
10316
10317         getopt: handle W; without long options in getopt [BZ #12922]
10318         * lib/getopt.c (_getopt_internal_r): When "W;" is in short options
10319         but no long options are defined, just return 'W'.
10320
10321 2011-07-07  Bruno Haible  <bruno@clisp.org>
10322
10323         Avoid literal tabs.
10324         * m4/po,m4 (AM_PO_SUBDIRS, AM_POSTPROCESS_PO_MAKEFILE): Use a shell
10325         variable containing a tab instead of a literal tab.
10326         Reported by Jim Meyering.
10327
10328 2011-07-07  Bruno Haible  <bruno@clisp.org>
10329
10330         Comments.
10331         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Update comments about mingw.
10332
10333 2011-07-06  Bruno Haible  <bruno@clisp.org>
10334
10335         sys_select: Fix compilation error on mingw, introduced on 2011-06-30.
10336         * lib/sys_select.in.h: Don't include <sys/socket.h>. Instead, include
10337         <winsock2.h>.
10338         (rpl_fd_isset, FD_ISSET): New definitions, copied from
10339         lib/sys_socket.in.h.
10340         (close, gethostname): Hide declarations from <winsock2.h>.
10341         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
10342         listen, recv, send, recvfrom, sendto, setsockopt, shutdown): Likewise.
10343         * lib/sys_socket.in.h (close, gethostname): Tweak indentation.
10344         (select): Don't override if gnulib's <sys/select.h> was already
10345         included.
10346         * lib/unistd.in.h (socket, connect, accept, bind, getpeername,
10347         getsockname, getsockopt, listen, recv, send, recvfrom, sendto,
10348         setsockopt, shutdown, select): Tweak indentation.
10349
10350 2011-07-06  Paul Eggert  <eggert@cs.ucla.edu>
10351
10352         * modules/pthread_sigmask (configure.ac): gl_SIGNAL_MODULE_INDICATOR
10353         and not gl_SYS_SELECT_MODULE_INDICATOR, fixing a typo exposed
10354         in an application that does not use the sys_select module.
10355
10356 2011-07-06  Erik Faye-Lund  <kusmabite@gmail.com>
10357
10358         poll: do not return 0 on timeout=-1
10359         * lib/poll.c: Loop with yield if no events occured
10360
10361 2011-07-06  Eric Blake  <eblake@redhat.com>
10362
10363         pthread_sigmask: always replace when not using pthread
10364         * m4/pthread_sigmask.m4 (gl_PTHREAD_SIGMASK): Force sigprocmask
10365         replacement when using some threading other than pthread.  Fix
10366         logic bug.
10367
10368 2011-07-06  Bruno Haible  <bruno@clisp.org>
10369
10370         Comments.
10371         * m4/printf.m4: Update comments about mingw.
10372
10373 2011-07-06  Paul Eggert  <eggert@cs.ucla.edu>
10374
10375         sys_select: define sigset_t more portably
10376         * lib/sys_select.in.h: Always include <sys/types.h>, since
10377         we now need sigset_t and mingw defines it there.
10378         Include <signal.h> before split inclusion guard, to avoid
10379         mishaps on Solaris, whose <signal.h> eventually includes us.
10380         * m4/signal_h.m4 (gl_SIGNAL_H): Require gl_CHECK_TYPE_SIGSET_T.
10381         (gl_CHECK_TYPE_SIGSET_T): New macro, most of the contents of
10382         which come from ...
10383         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Require
10384         gl_CHECK_TYPE_SIGSET_T.
10385         (gl_PREREQ_SIGPROCMASK): Now a no-op, since gl_CHECK_TYPE_SIGSET_T
10386         does the real work.
10387         * modules/sys_select (Depends-on): Add 'signal'.
10388
10389         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Poison pselect.
10390         Suggested by Bruno Haible.
10391
10392         pselect: Use pthread_sigmask, not sigprocmask.
10393         * lib/pselect.c (pselect): Use pthread_sigmask, as it supports
10394         multithreaded apps better than sigprocmask does.
10395         * modules/pselect (Depends-on): Depend on pthread_sigmask, not
10396         sigprocmask directly.
10397
10398 2011-07-05  Paul Eggert  <eggert@cs.ucla.edu>
10399
10400         * lib/pselect.c (pselect): Use plain name, without "rpl_".
10401         Don't #undef,  since we don't need any underlying pselect.
10402         * modules/pselect (configure.ac): Use our pselect.o if !HAVE_PSELECT.
10403         (Depends-on): Add select.
10404         (Link): Add $(LIBSOCKET).
10405         These changes suggested by Bruno Haible.
10406
10407         pselect: document better
10408         * MODULES.html.sh (Support for systems lacking POSIX:2008): Add it.
10409         * doc/posix-functions/pselect.texi (pselect): Document new module.
10410
10411         pthread_sigmask: new module
10412         * MODULES.html.sh (Support for systems lacking POSIX:2008): Add it.
10413         * doc/posix-functions/pthread_sigmask.texi: Document new module.
10414         * lib/signal.in.h (pthread_sigmask): Arrange for replacement.
10415         This is done only as a macro; I don't know how well that'll
10416         work for C++.  Move <sys/types.h> include before the include_next,
10417         to avoid mishap on Solaris.
10418         * m4/signal_h.m4 (gl_SIGNAL_H, gl_SIGNAL_H_DEFAULTS): Check for it.
10419         * modules/signal (Makefile.am): Substitute the check's results.
10420         * modules/pthread_sigmask, m4/pthread_sigmask.m4: New files.
10421
10422         test-pselect: new module
10423         * modules/pselect-tests, tests/test-pselect.c: New files.
10424         * tests/test-select.c, tests/test-sys_select-c++.cc:
10425         If TEST_PSELECT is defined, test pselect instead of testing select.
10426
10427         * tests/test-sys_select.c (sigset_t): Test for it, too.
10428         Suggested by Bruno Haible.
10429
10430 2011-07-05  Eric Blake  <eblake@redhat.com>
10431
10432         snprintf: guarantee %1$d, for libintl
10433         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Require %1$d support.
10434         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Likewise.
10435         * doc/posix-functions/snprintf.texi (snprintf): Update.
10436         * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
10437         * tests/test-snprintf.c (main): Enhance test.
10438         * tests/test-vsnprintf.c (main): Likewise.
10439
10440 2011-07-05  Jim Meyering  <meyering@redhat.com>
10441
10442         maint: exempt stdio-read.c and stdio-write.c from the cppi check
10443         * Makefile (sc_cpp_indent_check): Exempt stdio-read.c and stdio-write.c
10444         per Bruno's request, to accommodate this idiom (no space after "#")
10445         even when the function is inside an #if block:
10446         char *
10447         gets (char *s)
10448         #undef gets
10449         {
10450           ...
10451         }
10452
10453 2011-07-04  Jim Meyering  <meyering@redhat.com>
10454
10455         maint: indent with spaces, not TABs, and add a rule to check this
10456         * tests/test-userspec.c: Indent with spaces, not TABs.
10457         * tests/test-argp.c: Likewise.
10458         * tests/test-c-stack2.sh: Likewise.
10459         * tests/test-parse-duration.sh: Likewise
10460         * m4/strtod.m4: Likewise.
10461         * m4/alloca.m4: Likewise.
10462         * m4/pselect.m4: Likewise.
10463         * Makefile (sc_prohibit_leading_TABs): Prohibit leading TABs.
10464
10465 2011-07-03  Jim Meyering  <meyering@redhat.com>
10466
10467         maint.mk: correct omissions in prohibit_argmatch_without_use check
10468         This rule would mistakenly report that argmatch.h is included without
10469         use even when both the argmatch and invalid_arg macro were used.
10470         * top/maint.mk (sc_prohibit_argmatch_without_use): Also detect uses
10471         of argmatch and invalid_arg.
10472
10473 2011-07-03  Bruno Haible  <bruno@clisp.org>
10474
10475         Comments about EINTR.
10476         * lib/safe-read.h: Explain the purpose of this module.
10477         * lib/safe-write.h: Likewise.
10478         * doc/posix-functions/read.texi: Mention EINTR and the 'safe-read'
10479         module.
10480         * doc/posix-functions/write.texi: Mention EINTR and the 'safe-write'
10481         module.
10482         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
10483
10484 2011-06-30  Paul Eggert  <eggert@cs.ucla.edu>
10485
10486         xnanosleep: Rewrite to use new dtotimespec module.
10487         It has the conversion code that used to be in xnanosleep.
10488         * lib/xnanosleep.c: Do not include limits.h, stdbool.h, stdio.h,
10489         assert.h, sys/types.h, or intprops.h.  Include timespec.h instead.
10490         (TIME_T_MAX): Remove.
10491         (xnanosleep): Rewrite in terms of dtotimespec.
10492         * modules/xnanosleep (Depends-on): Add dtotimespec.
10493         Remove intprops, stdbool.
10494
10495         timespec-add, timespec-sub: new modules
10496         * lib/timespec.h (timespec_add, timespec_sub): New decls.
10497         * lib/timespec-add.c, lib/timespec-sub.c:
10498         * modules/timespec-add, modules/timespec-sub: New files.
10499
10500         dtotimespec: new module
10501         * lib/timespec.h (dtotimespec): New decl.
10502         * lib/dtotimespec.c, modules/dtotimespec: New files.
10503
10504         * lib/timespec.h (timespec_sign, timespectod): New inline functions.
10505
10506         pselect: new module
10507         * lib/sys_select.in.h: Include <signal.h>, for 'sigset_t'.
10508         (pselect): New decls.
10509         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Require AC_C_RESTRICT,
10510         since the standard pselect decl uses 'restrict'.
10511         (gl_SYS_SELECT_H_DEFAULTS): Add defaults for GNULIB_PSELECT,
10512         HAVE_PSELECT, REPLACE_PSELECT.
10513         * modules/sys_select (sys/select.h): Substitute GNULIB_PSELECT,
10514         HAVE_PSELECT, REPLACE_PSELECT.
10515         * lib/pselect.c, m4/pselect.m4, modules/pselect: New files.
10516
10517         sys_select: don't depend on sys_socket
10518         This is so that Emacs doesn't have to drag in m4/sockpfaf.m4 etc; see
10519         <http://lists.gnu.org/archive/html/bug-gnulib/2011-06/msg00358.html>.
10520         This fix works on GNU and GNU-like platforms, but has not been tested
10521         on native Windows.
10522         * lib/sys_select.in.h: Include <sys/socket.h> only if native Windows.
10523         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Do not require
10524         gl_HEADER_SYS_SOCKET.
10525         * modules/sys_select (Files): Add m4/sys_socket_h.m4, for
10526         gl_PREREQ_SYS_H_WINSOCK2.
10527
10528 2011-06-29  Eric Blake  <eblake@redhat.com>
10529
10530         pipe2: fix C89 compile problem
10531         * lib/pipe2.c (pipe2): Avoid C99 array initialization.
10532         Reported by Bruno Haible.
10533
10534         pipe, pipe2: don't corrupt fd on error
10535         * lib/pipe.c (pipe): Leave fd unchanged on error.
10536         * lib/pipe2.c (pipe2): Likewise.
10537         * doc/posix-functions/pipe.texi (pipe): Document cygwin issue.
10538         * doc/glibc-functions/pipe2.texi (pipe2): Likewise.
10539
10540 2011-06-27  Paolo Bonzini  <bonzini@gnu.org>
10541
10542         mmap-anon: do not use regular expressions inadvertently
10543         * m4/mmap-anon.m4: Remove trailing period from strings sought
10544         in the output.
10545
10546 2011-06-25  Paul Eggert  <eggert@cs.ucla.edu>
10547
10548         nanosleep: fix integer overflow problem
10549         * lib/nanosleep.c (my_usleep): Don't assume signed integer
10550         arithmetic wraps around on overflow.
10551
10552         nanosleep: simplify carrying
10553         * lib/nanosleep.c (nanosleep): Use the requested tv_nsec for the
10554         first call to the underyling nanosleep, not for the last one.
10555         This doesn't fix any bugs, but it simplifies the computation of
10556         the remaining delay.  Found while auditing integer overflow issues.
10557
10558         dup2: remove test for existence of fcntl
10559         * m4/dup2.m4 (gl_FUNC_DUP2): Use "#ifdef FD_CLOEXEC", not
10560         "#if HAVE_FCNTL", in the configure-time test program.
10561         This removes the need for the AC_CHECK_FUNCS_ONCE([fcntl]),
10562         and therefore speeds up "configure" a bit.  Found while
10563         adding the dup2 module to Emacs.
10564
10565 2011-06-24  Eric Blake  <eblake@redhat.com>
10566
10567         maint.mk: enhance useless header checks
10568         * top/maint.mk (_sc_header_without_use): Check both include
10569         styles.
10570         (sc_prohibit_assert_without_use)
10571         (sc_prohibit_close_stream_without_use)
10572         (sc_prohibit_getopt_without_use)
10573         (sc_prohibit_quotearg_without_use)
10574         (sc_prohibit_quote_without_use)
10575         (sc_prohibit_long_options_without_use)
10576         (sc_prohibit_inttostr_without_use)
10577         (sc_prohibit_ignore_value_without_use)
10578         (sc_prohibit_error_without_use, sc_prohibit_xalloc_without_use)
10579         (sc_prohibit_hash_without_use, sc_prohibit_cloexec_without_use)
10580         (sc_prohibit_posixver_without_use, sc_prohibit_same_without_use)
10581         (sc_prohibit_hash_pjw_without_use)
10582         (sc_prohibit_safe_read_without_use)
10583         (sc_prohibit_argmatch_without_use)
10584         (sc_prohibit_canonicalize_without_use)
10585         (sc_prohibit_root_dev_ino_without_use)
10586         (sc_prohibit_openat_without_use)
10587         (sc_prohibit_c_ctype_without_use)
10588         (sc_prohibit_signal_without_use)
10589         (sc_prohibit_stdio--_without_use)
10590         (sc_prohibit_stdio-safer_without_use)
10591         (sc_prohibit_strings_without_use)
10592         (sc_prohibit_intprops_without_use)
10593         (sc_prohibit_stddef_without_use)
10594         (sc_prohibit_xfreopen_without_use): Update clients.
10595
10596 2011-06-24  Jim Meyering  <meyering@redhat.com>
10597
10598         syntax-check: keep one maint.mk rule in sync with its header
10599         * Makefile (sc_check_sym_list): Add a rule to prevent a repeat
10600         of the bug Eric has just fixed, with today's commit 25e4c2ec.
10601         I prefer to avoid temporary files here, so use <(...), but that
10602         is not supported by /bin/sh, so...
10603         (SHELL): Define to /bin/bash.
10604
10605 2011-06-24  Eric Blake  <eblake@redhat.com>
10606
10607         maint.mk: update sc_prohibit_intprops_without_use
10608         * top/maint.mk (_intprops_names): Match recent changes.
10609
10610 2011-06-24  Bruno Haible  <bruno@clisp.org>
10611
10612         strerror-override: No-op tweak.
10613         * lib/strerror-override.h (strerror_override): Reorder conditions,
10614         for consistency with lib/strerror-override.c.
10615
10616 2011-06-23  Eric Blake  <eblake@redhat.com>
10617
10618         maint.mk: test further PATH_MAX issues
10619         * top/maint.mk (sc_prohibit_path_max_array): Rename...
10620         (sc_prohibit_path_max_allocation): ...and also test alloca.
10621         Suggested by Jim Meyering.
10622
10623 2011-06-22  Eric Blake  <eblake@redhat.com>
10624
10625         maint.mk: add syntax-check to avoid char[PATH_MAX]
10626         * top/maint.mk (sc_prohibit_path_max_array): New rule.
10627
10628         stat: be robust to PATH_MAX definition
10629         * lib/stat.c (rpl_stat): Require reasonable PATH_MAX.
10630         * modules/stat (Depends-on): Add verify.
10631
10632         link: work around IRIX bug
10633         * m4/link.m4 (gl_FUNC_LINK): Expose the bug.
10634         * lib/link.c (rpl_link): Work around it.
10635         * tests/test-link.h (test_link): Enhance test.
10636         * doc/posix-functions/link.texi (link): Document the bug.
10637
10638         getopt: silence clang warning
10639         * lib/getopt.c (_getopt_internal_r): Avoid unlikely NULL
10640         dereference.
10641         Reported by Gustavo Martin Domato.
10642
10643 2011-06-22  Jim Meyering  <meyering@redhat.com>
10644
10645         bootstrap: do not insert a blank line into each .gitignore file
10646         * build-aux/bootstrap (sort_patterns): Filter out blank lines.
10647
10648 2011-06-21  Eric Blake  <eblake@redhat.com>
10649
10650         perror: test for output mismatch
10651         * m4/perror.m4 (gl_FUNC_PERROR): Add test, in order to replace
10652         perror on IRIX.
10653
10654         strerror_r: fix OpenBSD behavior on out-of-range
10655         * lib/strerror_r.c (strerror_r): Always use maximal string.
10656         * doc/posix-functions/strerror_r.texi (strerror_r): Document it.
10657
10658         strerror_r: fix OpenBSD behavior on 0
10659         * lib/strerror-override.c (strerror_override): Also override 0
10660         when needed.
10661         * lib/strerror-override.h (strerror_override): Likewise.
10662         * lib/strerror.c (strerror): Simplify, now that 0 override is done
10663         earlier.
10664         * lib/strerror_r.c (strerror_r): Likewise.
10665         * m4/strerror.m4 (gl_FUNC_STRERROR): Split detection of 0
10666         behavior...
10667         (gl_FUNC_STRERROR_0): ...into new macro.
10668         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Replace strerror_r if 0
10669         is overridden.
10670         (gl_FUNC_STRERROR_R_WORKS): Avoid extra tests if 0 is broken.
10671         * modules/strerror-override (Files): Add strerror.m4.
10672         (configure.ac): Also provide override for 0 when needed.
10673         * doc/posix-functions/strerror.texi (strerror): Document this.
10674         * doc/posix-functions/perror.texi (perror): Likewise.
10675
10676         perror: adjust array size
10677         * modules/perror (Depends-on): Add strerror-override.
10678         * lib/perror.c (perror): Use it to avoid magic number.
10679
10680         strerror-override: reduce size
10681         * lib/strerror-override.c (strerror_override): Use fewer lines.
10682
10683 2011-06-20  Bruno Haible  <bruno@clisp.org>
10684
10685         pathmax: Ensure correct value for PATH_MAX on HP-UX.
10686         * lib/pathmax.h (PATH_MAX) [HP-UX]: Define to 1024.
10687
10688 2011-06-20  Paul Eggert  <eggert@cs.ucla.edu>
10689
10690         alloca: port to compilers that can optimize like GCC 4.6.0
10691         * lib/alloca.c (find_stack_direction): New signature, taken from
10692         Autoconf git.  This works with GCC 4.6.0.  This code should never
10693         be used with GCC 4.6.0 itself, as GCC has alloca, but it might
10694         be used with other compilers that optimize as well as GCC 4.6.0 does.
10695         (alloca): Adjust to new signature.
10696         * m4/alloca.m4 (__AC_LIBOBJ_ALLOCA) [Autoconf version < 2.69]:
10697         New macro, which patches Autoconf in a similar way.
10698
10699         c-stack: stop worrying about stack direction
10700         * lib/c-stack.c (find_stack_direction): Remove.
10701         (segv_handler): Don't worry about stack direction growth, as it's
10702         too much of a pain to configure this correctly, given how compilers
10703         are optimizing-away our stack-growth detection code.  Instead, assume
10704         that any access to just before or just after the stack is OK.
10705         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC):
10706         Don't require AC_FUNC_ALLOCA; no longer needed.
10707
10708 2011-06-20  Eric Blake  <eblake@redhat.com>
10709
10710         test-stat: don't allocate PATH_MAX bytes
10711         * tests/test-stat.h (test_stat_func): Don't stack-allocate a
10712         PATH_MAX-sized buffer.
10713         * modules/openat-tests (Depends-on): Add getcwd-lgpl, drop pathmax.
10714         * modules/stat-tests (Depends-on): Likewise.
10715         * tests/test-fstatat.c (includes): Drop pathmax.h.
10716         * tests/test-stat.c (includes): Likewise.
10717         Reported by Bruno Haible.
10718
10719 2011-06-20  Bruno Haible  <bruno@clisp.org>
10720
10721         float: Work around <float.h> bugs on FreeBSD/x86, AIX with GCC, IRIX.
10722         * lib/float.in.h: Add workarounds for FreeBSD/x86, AIX with GCC, IRIX.
10723         * lib/float.c: New file.
10724         * m4/float_h.m4 (gl_FLOAT_H): Also handle FreeBSD, AIX, IRIX. Set
10725         REPLACE_FLOAT_LDBL.
10726         * modules/float (Files): Add lib/float.c.
10727         (configure.ac): Invoke AC_LIBOBJ.
10728         * doc/posix-headers/float.texi: Mention problems on FreeBSD, AIX, IRIX.
10729
10730 2011-06-20  Bruno Haible  <bruno@clisp.org>
10731
10732         Tests for module 'float'.
10733         * modules/float-tests: New file.
10734         * tests/test-float.c: New file.
10735
10736 2011-06-19  Bruno Haible  <bruno@clisp.org>
10737
10738         isinf: Coding style.
10739         * lib/isinf.c: Use GNU coding style.
10740
10741 2011-06-19  Bruno Haible  <bruno@clisp.org>
10742
10743         linkat test: Avoid test failure on AIX 7.1.
10744         * tests/test-linkat.c (main): Allow EINVAL as alternate error value.
10745         * tests/test-link.h (test_link): Likewise.
10746
10747 2011-06-19  Bruno Haible  <bruno@clisp.org>
10748
10749         pread test: Avoid test failure on OpenBSD 4.9.
10750         * tests/test-pread.c (main): Allow EFBIG instead of EINBAL.
10751
10752 2011-06-19  Bruno Haible  <bruno@clisp.org>
10753
10754         sprintf-posix: Fix test failure on AIX 7.1.
10755         * m4/printf.m4 (gl_PRINTF_PRECISION): Test against AIX bug.
10756         * doc/posix-functions/dprintf.texi: Mention limited precision problem
10757         on AIX.
10758         * doc/posix-functions/fprintf.texi: Likewise.
10759         * doc/posix-functions/printf.texi: Likewise.
10760         * doc/posix-functions/snprintf.texi: Likewise.
10761         * doc/posix-functions/sprintf.texi: Likewise.
10762         * doc/posix-functions/vdprintf.texi: Likewise.
10763         * doc/posix-functions/vfprintf.texi: Likewise.
10764         * doc/posix-functions/vprintf.texi: Likewise.
10765         * doc/posix-functions/vsnprintf.texi: Likewise.
10766         * doc/posix-functions/vsprintf.texi: Likewise.
10767
10768 2011-06-19  Bruno Haible  <bruno@clisp.org>
10769
10770         roundl-ieee: Fix test failure on AIX 7.1.
10771         * m4/roundl.m4 (gl_FUNC_ROUNDL): Test also the sign of roundl (-0.3L).
10772         * doc/posix-functions/roundl.texi: Mention problem with negative
10773         arguments.
10774
10775 2011-06-19  Bruno Haible  <bruno@clisp.org>
10776
10777         round-ieee: Fix test failures on AIX 7.1 and OSF/1 5.1.
10778         * modules/round-ieee (Depends-on): Add floor-ieee, ceil-ieee.
10779         * doc/posix-functions/round.texi: Mention problem with negative
10780         arguments.
10781         * doc/posix-functions/ceil.texi: Mention problem on OSF/1 5.1.
10782
10783 2011-06-19  Bruno Haible  <bruno@clisp.org>
10784
10785         roundf-ieee: Fix test failures on AIX 7.1 and OSF/1 5.1.
10786         * m4/roundf.m4 (gl_FUNC_ROUNDF): Test also the sign of roundf (-0.3f).
10787         * modules/roundf-ieee (Depends-on): Add floorf-ieee, ceilf-ieee.
10788         * doc/posix-functions/roundf.texi: Mention problem with negative
10789         arguments.
10790         * doc/posix-functions/ceilf.texi: Mention problem on OSF/1 5.1.
10791
10792 2011-06-19  Bruno Haible  <bruno@clisp.org>
10793
10794         ceilf-ieee: Work around bug on MacOS X 10.5.
10795         * doc/posix-functions/ceilf.texi: Mention the MacOS X 10.5 problem.
10796
10797         floor*-ieee, ceil*-ieee, trunc*-ieee, round*-ieee: More robust checks.
10798         * m4/floorf.m4 (gl_FUNC_FLOORF): In the test whether the function is
10799         IEEE compliant, avoid compiler optimizations.
10800         * m4/floor.m4 (gl_FUNC_FLOOR): Likewise.
10801         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
10802         * m4/ceil.m4 (gl_FUNC_CEIL): Likewise.
10803         * m4/ceill.m4 (gl_FUNC_CEILL): Likewise.
10804         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
10805         * m4/trunc.m4 (gl_FUNC_TRUNC): Likewise.
10806         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
10807         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
10808         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
10809         * m4/roundl.m4 (gl_FUNC_ROUNDL): Likewise.
10810
10811 2011-06-19  Bruno Haible  <bruno@clisp.org>
10812
10813         ceilf-ieee: Work around bug on AIX 7.1.
10814         * m4/ceilf.m4 (gl_FUNC_CEILF): Test also the sign of ceilf (-0.3f).
10815         * doc/posix-functions/ceilf.texi: Mention the AIX 7.1 problem.
10816
10817 2011-06-19  Bruno Haible  <bruno@clisp.org>
10818
10819         ceil-ieee: Work around bug on AIX 7.1.
10820         * m4/ceil.m4 (gl_FUNC_CEIL): Test also the sign of ceil (-0.3).
10821         * doc/posix-functions/ceil.texi: Mention the AIX 7.1 problem.
10822
10823 2011-06-18  Bruno Haible  <bruno@clisp.org>
10824
10825         fsync test: Avoid test failure on MacOS X and AIX.
10826         * tests/test-fsync.c (fsync): Allow ENOTSUP and EBADF instead of
10827         EINVAL.
10828
10829 2011-06-18  Bruno Haible  <bruno@clisp.org>
10830
10831         openat, fdopendir tests: Fix link errors.
10832         * modules/openat-tests (Depends-on): Add progname.
10833         * modules/fdopendir-tests (Depends-on): Likewise.
10834         * tests/test-fchownat.c: Include progname.h.
10835         (main): Call set_program_name.
10836         * tests/test-fstatat.c: Include progname.h.
10837         (main): Call set_program_name.
10838         * tests/test-mkdirat.c: Include progname.h.
10839         (main): Call set_program_name.
10840         * tests/test-openat.c: Include progname.h.
10841         (main): Call set_program_name.
10842         * tests/test-unlinkat.c: Include progname.h.
10843         (main): Call set_program_name.
10844         * tests/test-fdopendir.c: Include progname.h.
10845         (main): Call set_program_name.
10846
10847 2011-06-18  Bruno Haible  <bruno@clisp.org>
10848
10849         Doc update.
10850         * doc/posix-functions/pthread_attr_getstack.texi: Update info regarding
10851         HP-UX.
10852         * doc/posix-functions/pthread_attr_setstack.texi: Likewise.
10853
10854 2011-06-18  Bruno Haible  <bruno@clisp.org>
10855
10856         getcwd tests: Avoid compilation error on HP-UX 11.31.
10857         * modules/getcwd-tests (Depends-on): Add pathmax.
10858         * tests/test-getcwd.c: Include pathmax.h.
10859
10860 2011-06-18  Bruno Haible  <bruno@clisp.org>
10861
10862         isfinite, isinf: Fix link error on AIX 6 and 7.
10863         * m4/isfinite.m4 (gl_ISFINITE): When determining whether libm is
10864         needed, also test the macro with a 'float' argument.
10865         * m4/isinf.m4 (gl_ISINF): Likewise.
10866
10867 2011-06-18  Bruno Haible  <bruno@clisp.org>
10868
10869         getloadavg: Don't clobber LIBS. Regression from previous commit.
10870         * m4/getloadavg.m4 (gl_PREREQ_GETLOADAVG): Move tests that use
10871         AC_CHECK_LIB from here...
10872         (gl_GETLOADAVG): ... to here, inside the experiment with LIBS.
10873         (gl_GETLOADAVG, gl_PREREQ_GETLOADAVG): Rename gl_have_func to
10874         gl_func_getloadavg_done.
10875         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
10876
10877 2011-06-18  Bruno Haible  <bruno@clisp.org>
10878
10879         clean-temp: Improve documentation.
10880         * lib/clean-temp.h: Explain better how to use this module.
10881         Reported by John Darrington <john@darrington.wattle.id.au>.
10882
10883 2011-06-17  Bruno Haible  <bruno@clisp.org>
10884
10885         pread, pwrite: Avoid cc warning on AIX.
10886         * lib/unistd.in.h (pread): Undefine before defining as a macro.
10887         (pwrite): Likewise.
10888
10889 2011-06-17  Bruno Haible  <bruno@clisp.org>
10890
10891         spawn-pipe tests: Fix link error.
10892         * tests/test-spawn-pipe-child.c: Undefine fprintf.
10893         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
10894
10895 2011-06-17  Bruno Haible  <bruno@clisp.org>
10896
10897         Tests: Remove unnecessary dependency.
10898         * modules/canonicalize-tests (Depends-on): Remove progname.
10899         * modules/chown-tests (Depends-on): Likewise.
10900         * modules/dirname-tests (Depends-on): Likewise.
10901         * modules/fdopendir-tests (Depends-on): Likewise.
10902         * modules/fdutimensat-tests (Depends-on): Likewise.
10903         * modules/hash-tests (Depends-on): Likewise.
10904         * modules/lchown-tests (Depends-on): Likewise.
10905         * modules/linkat-tests (Depends-on): Likewise.
10906         * modules/renameat-tests (Depends-on): Likewise.
10907         * modules/spawn-pipe-tests (Depends-on): Likewise.
10908         * modules/utimensat-tests (Depends-on): Likewise.
10909
10910 2011-06-17  Bruno Haible  <bruno@clisp.org>
10911
10912         spawn-pipe tests: Fix link error.
10913         * tests/test-spawn-pipe-child.c: Undefine fflush.
10914
10915 2011-06-17  Bruno Haible  <bruno@clisp.org>
10916
10917         Fix tests link errors.
10918         * modules/ceil-ieee-tests (Makefile.am): Use CEIL_LIBM, not FLOOR_LIBM.
10919         * modules/chown-tests (Makefile.am): Don't link test-chown with
10920         LIBINTL.
10921         * modules/lchown-tests (Makefile.am): Don't link test-lchown with
10922         LIBINTL.
10923         * modules/utimens-tests (Makefile.am): Don't link test-utimens with
10924         LIBINTL.
10925         * modules/futimens-tests (Makefile.am): Don't link test-futimens with
10926         LIBINTL.
10927
10928 2011-06-16  Bruno Haible  <bruno@clisp.org>
10929
10930         crypto/gc-sha1: Fix recent regression.
10931         * modules/crypto/gc-sha1 (configure.ac): Invoke AC_LIBOBJ here.
10932         * m4/gc-sha1.m4 (gl_GC_SHA1): Don't invoke gl_SHA1.
10933
10934         crypto/gc-md5: Fix recent regression.
10935         * modules/crypto/gc-md5 (configure.ac): Invoke AC_LIBOBJ here.
10936
10937         crypto/gc-md4: Fix recent regression.
10938         * modules/crypto/gc-md4 (configure.ac): Invoke AC_LIBOBJ here.
10939         * m4/md4.m4 (gl_MD4): Ensure the expansion is non-empty.
10940
10941         crypto/gc-arctwo: Fix recent regression.
10942         * modules/crypto/gc-arctwo (configure.ac): Invoke AC_LIBOBJ here.
10943         * m4/arctwo.m4 (gl_ARCTWO): Ensure the expansion is non-empty.
10944
10945         crypto/gc-rijndael: Fix recent regression.
10946         * modules/crypto/gc-rijndael (Files): Remove m4/rijndael.m4.
10947         (configure.ac): Invoke AC_LIBOBJ here.
10948         * m4/gc-rijndael.m4 (gl_GC_RIJNDAEL): Don't invoke gl_RIJNDAEL.
10949         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
10950
10951         crypto/gc-hmac-sha1: Fix recent regression.
10952         * modules/crypto/gc-hmac-sha1 (Files): Remove m4/hmac-sha1.m4.
10953         (configure.ac): Invoke AC_LIBOBJ here.
10954         * m4/gc-hmac-sha1.m4 (gl_GC_HMAC_SHA1): Don't invoke gl_HMAC_SHA1.
10955         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
10956
10957         crypto/gc-hmac-md5: Fix recent regression.
10958         * modules/crypto/gc-hmac-md5 (Files): Remove m4/hmac-md5.m4.
10959         (configure.ac): Invoke AC_LIBOBJ here.
10960         * m4/gc-hmac-md5.m4 (gl_GC_HMAC_MD5): Don't invoke gl_HMAC_MD5.
10961         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
10962
10963         crypto/gc-des: Fix recent regression.
10964         * modules/crypto/gc-des (Files): Remove m4/des.m4.
10965         (configure.ac): Invoke AC_LIBOBJ here.
10966         * m4/gc-des.m4 (gl_GC_DES): Don't invoke gl_DES.
10967         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
10968
10969         crypto/gc-arcfour: Fix recent regression.
10970         * modules/crypto/gc-arcfour (Files): Remove m4/arcfour.m4.
10971         (configure.ac): Invoke AC_LIBOBJ here.
10972         * m4/gc-arcfour.m4 (gl_GC_ARCFOUR): Don't invoke gl_ARCFOUR.
10973         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
10974
10975 2011-06-16  Paul Eggert  <eggert@cs.ucla.edu>
10976
10977         * m4/lstat.m4 (gl_FUNC_LSTAT): Fix typo in prerequisite.
10978         After the 2011-05-21 change, this macro requires
10979         gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK, not
10980         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
10981
10982 2011-06-16  Bruno Haible  <bruno@clisp.org>
10983
10984         fprintftime: Move AC_LIBOBJ invocations to module description.
10985         * m4/fprintftime.m4: Remove file.
10986         * modules/fprintftime (Files): Remove m4/fprintftime.m4.
10987         (configure.ac): Remove gl_FPRINTFTIME call.
10988         (Makefile.am): Augment lib_SOURCES.
10989         Reported by Jim Meyering.
10990
10991 2011-06-16  Bruno Haible  <bruno@clisp.org>
10992
10993         tmpfile-safer: Finish 2011-05-23 commit.
10994         * m4/stdio-safer.m4: Really remove file.
10995         Reported by Jim Meyering.
10996
10997 2011-06-16  Bruno Haible  <bruno@clisp.org>
10998
10999         syntax-check: Fix typo.
11000         * Makefile (allow_AC_LIBOBJ): Mention printf-posix-rpl.m4, not
11001         printf-posix.m4.
11002         Reported by Jim Meyering.
11003
11004 2011-06-13  Jim Meyering  <meyering@redhat.com>
11005
11006         syntax-check: add a rule to help enforce the no-AC_LIBOBJ-in-m4/ policy
11007         * Makefile (sc_prohibit_AC_LIBOBJ_in_m4): New rule.
11008
11009 2011-05-23  Bruno Haible  <bruno@clisp.org>
11010
11011         yesno: Move AC_LIBOBJ invocations to module description.
11012         * m4/yesno.m4 (gl_YESNO): Remove AC_LIBOBJ invocation.
11013         * modules/yesno (Makefile.am): Augment lib_SOURCES.
11014
11015 2011-05-23  Bruno Haible  <bruno@clisp.org>
11016
11017         xstrtol: Move AC_LIBOBJ invocations to module description.
11018         * m4/xstrtol.m4 (gl_XSTRTOL): Remove AC_LIBOBJ invocations.
11019         * modules/xstrtol (Makefile.am): Augment lib_SOURCES.
11020
11021 2011-05-23  Bruno Haible  <bruno@clisp.org>
11022
11023         xstrtold: Move AC_LIBOBJ invocations to module description.
11024         * m4/xstrtod.m4 (gl_XSTRTOLD): Remove AC_LIBOBJ invocation.
11025         * modules/xstrtold (Makefile.am): Augment lib_SOURCES.
11026
11027 2011-05-23  Bruno Haible  <bruno@clisp.org>
11028
11029         xstrtod: Move AC_LIBOBJ invocations to module description.
11030         * m4/xstrtod.m4 (gl_XSTRTOD): Remove AC_LIBOBJ invocation.
11031         * modules/xstrtod (Makefile.am): Augment lib_SOURCES.
11032
11033 2011-05-23  Bruno Haible  <bruno@clisp.org>
11034
11035         xnanosleep: Move AC_LIBOBJ invocations to module description.
11036         * m4/xnanosleep.m4 (gl_XNANOSLEEP): Remove AC_LIBOBJ invocation.
11037         * modules/xnanosleep (Makefile.am): Augment lib_SOURCES.
11038
11039 2011-05-23  Bruno Haible  <bruno@clisp.org>
11040
11041         xgetcwd: Move AC_LIBOBJ invocations to module description.
11042         * m4/xgetcwd.m4 (gl_XGETCWD): Remove AC_LIBOBJ invocation.
11043         * modules/xgetcwd (Makefile.am): Augment lib_SOURCES.
11044
11045 2011-05-23  Bruno Haible  <bruno@clisp.org>
11046
11047         xalloc: Move AC_LIBOBJ invocations to module description.
11048         * m4/xalloc.m4 (gl_XALLOC): Remove AC_LIBOBJ invocation.
11049         * modules/xalloc (Makefile.am): Augment lib_SOURCES.
11050
11051 2011-05-23  Bruno Haible  <bruno@clisp.org>
11052
11053         write-any-file: Move AC_LIBOBJ invocations to module description.
11054         * m4/write-any-file.m4 (gl_WRITE_ANY_FILE): Remove AC_LIBOBJ
11055         invocation.
11056         * modules/write-any-file (Makefile.am): Augment lib_SOURCES.
11057
11058 2011-05-23  Bruno Haible  <bruno@clisp.org>
11059
11060         utimens: Move AC_LIBOBJ invocations to module description.
11061         * m4/utimens.m4 (gl_UTIMENS): Remove AC_LIBOBJ invocation.
11062         * modules/utimens (Makefile.am): Augment lib_SOURCES.
11063
11064 2011-05-23  Bruno Haible  <bruno@clisp.org>
11065
11066         utimecmp: Move AC_LIBOBJ invocations to module description.
11067         * m4/utimecmp.m4 (gl_UTIMECMP): Remove AC_LIBOBJ invocation.
11068         * modules/utimecmp (Makefile.am): Augment lib_SOURCES.
11069
11070 2011-05-23  Bruno Haible  <bruno@clisp.org>
11071
11072         userspec: Move AC_LIBOBJ invocations to module description.
11073         * m4/userspec.m4 (gl_USERSPEC): Remove AC_LIBOBJ invocation.
11074         * modules/userspec (Makefile.am): Augment lib_SOURCES.
11075
11076 2011-05-23  Bruno Haible  <bruno@clisp.org>
11077
11078         unlinkdir: Move AC_LIBOBJ invocations to module description.
11079         * m4/unlinkdir.m4 (gl_UNLINKDIR): Remove AC_LIBOBJ invocation.
11080         * modules/unlinkdir (Makefile.am): Augment lib_SOURCES.
11081
11082 2011-05-23  Bruno Haible  <bruno@clisp.org>
11083
11084         unistd-safer: Move AC_LIBOBJ invocations to module description.
11085         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Remove AC_LIBOBJ invocations.
11086         * modules/unistd-safer (Makefile.am): Augment lib_SOURCES.
11087
11088 2011-05-23  Bruno Haible  <bruno@clisp.org>
11089
11090         tempname: Move AC_LIBOBJ invocations to module description.
11091         * m4/tempname.m4 (gl_FUNC_GEN_TEMPNAME): Remove AC_LIBOBJ invocation.
11092         * modules/tempname (Makefile.am): Augment lib_SOURCES.
11093
11094 2011-05-23  Bruno Haible  <bruno@clisp.org>
11095
11096         strftime: Move AC_LIBOBJ invocations to module description.
11097         * m4/strftime.m4 (gl_FUNC_STRFTIME): Remove AC_LIBOBJ invocation.
11098         * modules/strftime (Makefile.am): Augment lib_SOURCES.
11099
11100 2011-05-23  Bruno Haible  <bruno@clisp.org>
11101
11102         stdlib-safer: Move AC_LIBOBJ invocations to module description.
11103         * m4/stdlib-safer.m4: Remove file.
11104         * modules/stdlib-safer (Files): Remove m4/stdlib-safer.m4.
11105         (configure.ac): Remove gl_STDLIB_SAFER call.
11106         (Makefile.am): Augment lib_SOURCES.
11107
11108 2011-05-23  Bruno Haible  <bruno@clisp.org>
11109
11110         tmpfile-safer: Move AC_LIBOBJ invocations to module description.
11111         * m4/stdio-safer.m4: Remove file.
11112         * modules/tmpfile-safer (Files): Remove m4/stdio-safer.m4.
11113         (configure.ac): Remove gl_TMPFILE_SAFER call.
11114         (Makefile.am): Augment lib_SOURCES.
11115
11116 2011-05-23  Bruno Haible  <bruno@clisp.org>
11117
11118         popen-safer: Move AC_LIBOBJ invocations to module description.
11119         * m4/stdio-safer.m4 (gl_POPEN_SAFER): Remove macro.
11120         * modules/popen-safer (Files): Remove m4/stdio-safer.m4.
11121         (configure.ac): Remove gl_POPEN_SAFER call.
11122         (Makefile.am): Augment lib_SOURCES.
11123
11124 2011-05-23  Bruno Haible  <bruno@clisp.org>
11125
11126         freopen-safer: Move AC_LIBOBJ invocations to module description.
11127         * m4/stdio-safer.m4 (gl_FREOPEN_SAFER): Remove macro.
11128         * modules/freopen-safer (Files): Remove m4/stdio-safer.m4.
11129         (configure.ac): Remove gl_FREOPEN_SAFER call.
11130         (Makefile.am): Augment lib_SOURCES.
11131
11132 2011-05-23  Bruno Haible  <bruno@clisp.org>
11133
11134         fopen-safer: Move AC_LIBOBJ invocations to module description.
11135         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Remove macro.
11136         * modules/fopen-safer (Files): Remove m4/stdio-safer.m4.
11137         (configure.ac): Remove gl_FOPEN_SAFER call.
11138         (Makefile.am): Augment lib_SOURCES.
11139
11140 2011-05-23  Bruno Haible  <bruno@clisp.org>
11141
11142         crypto/sha512: Move AC_LIBOBJ invocations to module description.
11143         * m4/sha512.m4 (gl_SHA512): Remove AC_LIBOBJ invocation.
11144         * modules/crypto/sha512 (Makefile.am): Augment lib_SOURCES.
11145
11146 2011-05-23  Bruno Haible  <bruno@clisp.org>
11147
11148         crypto/sha256: Move AC_LIBOBJ invocations to module description.
11149         * m4/sha256.m4 (gl_SHA256): Remove AC_LIBOBJ invocation.
11150         * modules/crypto/sha256 (Makefile.am): Augment lib_SOURCES.
11151
11152 2011-05-23  Bruno Haible  <bruno@clisp.org>
11153
11154         crypto/sha1: Move AC_LIBOBJ invocations to module description.
11155         * m4/sha1.m4 (gl_SHA1): Remove AC_LIBOBJ invocation.
11156         * modules/crypto/sha1 (Makefile.am): Augment lib_SOURCES.
11157
11158 2011-05-23  Bruno Haible  <bruno@clisp.org>
11159
11160         settime: Move AC_LIBOBJ invocations to module description.
11161         * m4/settime.m4 (gl_SETTIME): Remove AC_LIBOBJ invocation.
11162         * modules/settime (Makefile.am): Augment lib_SOURCES.
11163
11164 2011-05-23  Bruno Haible  <bruno@clisp.org>
11165
11166         savedir: Move AC_LIBOBJ invocations to module description.
11167         * m4/savedir.m4 (gl_SAVEDIR): Remove AC_LIBOBJ invocation.
11168         * modules/savedir (Makefile.am): Augment lib_SOURCES.
11169
11170 2011-05-23  Bruno Haible  <bruno@clisp.org>
11171
11172         save-cwd: Move AC_LIBOBJ invocations to module description.
11173         * m4/save-cwd.m4 (gl_SAVE_CWD): Remove AC_LIBOBJ invocation.
11174         * modules/save-cwd (Makefile.am): Augment lib_SOURCES.
11175
11176 2011-05-23  Bruno Haible  <bruno@clisp.org>
11177
11178         same: Move AC_LIBOBJ invocations to module description.
11179         * m4/same.m4 (gl_SAME): Remove AC_LIBOBJ invocation.
11180         * modules/same (Makefile.am): Augment lib_SOURCES.
11181
11182 2011-05-23  Bruno Haible  <bruno@clisp.org>
11183
11184         safe-write: Move AC_LIBOBJ invocations to module description.
11185         * m4/safe-write.m4 (gl_SAFE_WRITE): Remove macro.
11186         * modules/safe-write (configure.ac): Invoke gl_PREREQ_SAFE_WRITE
11187         instead of gl_SAFE_WRITE.
11188         (Makefile.am): Augment lib_SOURCES.
11189
11190 2011-05-23  Bruno Haible  <bruno@clisp.org>
11191
11192         safe-read: Move AC_LIBOBJ invocations to module description.
11193         * m4/safe-read.m4 (gl_SAFE_READ): Remove macro.
11194         * modules/safe-read (configure.ac): Invoke gl_PREREQ_SAFE_READ instead
11195         of gl_SAFE_READ.
11196         (Makefile.am): Augment lib_SOURCES.
11197
11198 2011-05-23  Bruno Haible  <bruno@clisp.org>
11199
11200         safe-alloc: Move AC_LIBOBJ invocations to module description.
11201         * m4/safe-alloc.m4 (gl_SAFE_ALLOC): Remove AC_LIBOBJ invocation.
11202         * modules/safe-alloc (Makefile.am): Augment lib_SOURCES.
11203
11204 2011-05-23  Bruno Haible  <bruno@clisp.org>
11205
11206         crypto/rijndael: Move AC_LIBOBJ invocations to module description.
11207         * m4/rijndael.m4: Remove file.
11208         * modules/crypto/rijndael (Files): Remove it.
11209         (configure.ac): Remove gl_RIJNDAEL call.
11210         (Makefile.am): Augment lib_SOURCES.
11211
11212 2011-05-23  Bruno Haible  <bruno@clisp.org>
11213
11214         readtokens: Move AC_LIBOBJ invocations to module description.
11215         * m4/readtokens.m4 (gl_READTOKENS): Remove AC_LIBOBJ invocation.
11216         * modules/readtokens (Makefile.am): Augment lib_SOURCES.
11217
11218 2011-05-23  Bruno Haible  <bruno@clisp.org>
11219
11220         read-file: Move AC_LIBOBJ invocations to module description.
11221         * m4/read-file.m4 (gl_FUNC_READ_FILE): Remove macro.
11222         * modules/read-file (configure.ac): Invoke gl_PREREQ_READ_FILE instead
11223         of gl_FUNC_READ_FILE.
11224         (Makefile.am): Augment lib_SOURCES.
11225
11226 2011-05-23  Bruno Haible  <bruno@clisp.org>
11227
11228         quotearg: Move AC_LIBOBJ invocations to module description.
11229         * m4/quotearg.m4 (gl_QUOTEARG): Remove AC_LIBOBJ invocation.
11230         * modules/quotearg (Makefile.am): Augment lib_SOURCES.
11231
11232 2011-05-23  Bruno Haible  <bruno@clisp.org>
11233
11234         quote: Move AC_LIBOBJ invocations to module description.
11235         * m4/quote.m4 (gl_QUOTE): Remove AC_LIBOBJ invocation.
11236         * modules/quote (Makefile.am): Augment lib_SOURCES.
11237
11238 2011-05-23  Bruno Haible  <bruno@clisp.org>
11239
11240         posixver: Move AC_LIBOBJ invocations to module description.
11241         * m4/posixver.m4 (gl_POSIXVER): Remove AC_LIBOBJ invocation.
11242         * modules/posixver (Makefile.am): Augment lib_SOURCES.
11243
11244 2011-05-23  Bruno Haible  <bruno@clisp.org>
11245
11246         posixtm: Move AC_LIBOBJ invocations to module description.
11247         * m4/posixtm.m4 (gl_POSIXTM): Remove AC_LIBOBJ invocation.
11248         * modules/posixtm (Makefile.am): Augment lib_SOURCES.
11249
11250 2011-05-23  Bruno Haible  <bruno@clisp.org>
11251
11252         physmem: Move AC_LIBOBJ invocations to module description.
11253         * m4/physmem.m4 (gl_PHYSMEM): Remove AC_LIBOBJ invocation.
11254         * modules/physmem (Makefile.am): Augment lib_SOURCES.
11255
11256 2011-05-23  Bruno Haible  <bruno@clisp.org>
11257
11258         pagealign_alloc: Move AC_LIBOBJ invocations to module description.
11259         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC): Remove AC_LIBOBJ
11260         invocation.
11261         * modules/pagealign_alloc (Makefile.am): Augment lib_SOURCES.
11262
11263 2011-05-23  Bruno Haible  <bruno@clisp.org>
11264
11265         mpsort: Move AC_LIBOBJ invocations to module description.
11266         * m4/mpsort.m4 (gl_MPSORT): Remove AC_LIBOBJ invocation.
11267         * modules/mpsort (Makefile.am): Augment lib_SOURCES.
11268
11269 2011-05-23  Bruno Haible  <bruno@clisp.org>
11270
11271         modechange: Move AC_LIBOBJ invocations to module description.
11272         * m4/modechange.m4 (gl_MODECHANGE): Remove AC_LIBOBJ invocation.
11273         * modules/modechange (Makefile.am): Augment lib_SOURCES.
11274
11275 2011-05-23  Bruno Haible  <bruno@clisp.org>
11276
11277         mkdir-p: Move AC_LIBOBJ invocations to module description.
11278         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Remove AC_LIBOBJ invocations.
11279         * modules/mkdir-p (Makefile.am): Augment lib_SOURCES.
11280
11281 2011-05-23  Bruno Haible  <bruno@clisp.org>
11282
11283         mkancesdirs: Move AC_LIBOBJ invocations to module description.
11284         * m4/mkancesdirs.m4 (gl_MKANCESDIRS): Remove AC_LIBOBJ invocation.
11285         * modules/mkancesdirs (Makefile.am): Augment lib_SOURCES.
11286
11287 2011-05-23  Bruno Haible  <bruno@clisp.org>
11288
11289         mgetgroups: Move AC_LIBOBJ invocations to module description.
11290         * m4/mgetgroups.m4 (gl_MGETGROUPS): Remove AC_LIBOBJ invocation.
11291         * modules/mgetgroups (Makefile.am): Augment lib_SOURCES.
11292
11293 2011-05-23  Bruno Haible  <bruno@clisp.org>
11294
11295         memxor: Move AC_LIBOBJ invocations to module description.
11296         * m4/memxor.m4 (gl_MEMXOR): Remove AC_LIBOBJ invocation.
11297         * modules/memxor (Makefile.am): Augment lib_SOURCES.
11298
11299 2011-05-23  Bruno Haible  <bruno@clisp.org>
11300
11301         memcoll: Move AC_LIBOBJ invocations to module description.
11302         * m4/memcoll.m4 (gl_MEMCOLL): Remove AC_LIBOBJ invocation.
11303         * modules/memcoll (Makefile.am): Augment lib_SOURCES.
11304
11305 2011-05-23  Bruno Haible  <bruno@clisp.org>
11306
11307         memcasecmp: Move AC_LIBOBJ invocations to module description.
11308         * m4/memcasecmp.m4 (gl_MEMCASECMP): Remove AC_LIBOBJ invocation.
11309         * modules/memcasecmp (Makefile.am): Augment lib_SOURCES.
11310
11311 2011-05-23  Bruno Haible  <bruno@clisp.org>
11312
11313         crypto/md5: Move AC_LIBOBJ invocations to module description.
11314         * m4/md5.m4 (gl_MD5): Remove AC_LIBOBJ invocation.
11315         * modules/crypto/md5 (Makefile.am): Augment lib_SOURCES.
11316
11317 2011-05-23  Bruno Haible  <bruno@clisp.org>
11318
11319         crypto/md4: Move AC_LIBOBJ invocations to module description.
11320         * m4/md4.m4 (gl_MD4): Remove AC_LIBOBJ invocation.
11321         * modules/crypto/md4 (Makefile.am): Augment lib_SOURCES.
11322
11323 2011-05-23  Bruno Haible  <bruno@clisp.org>
11324
11325         crypto/md2: Move AC_LIBOBJ invocations to module description.
11326         * m4/md2.m4: Remove file.
11327         * modules/crypto/md2 (Files): Remove it.
11328         (configure.ac): Remove gl_MD2 call.
11329         (Makefile.am): Augment lib_SOURCES.
11330
11331 2011-05-23  Bruno Haible  <bruno@clisp.org>
11332
11333         long-options: Move AC_LIBOBJ invocations to module description.
11334         * m4/long-options.m4: Remove file.
11335         * modules/long-options (Files): Remove it.
11336         (configure.ac): Remove gl_LONG_OPTIONS call.
11337         (Makefile.am): Augment lib_SOURCES.
11338
11339 2011-05-23  Bruno Haible  <bruno@clisp.org>
11340
11341         i-ring: Move AC_LIBOBJ invocations to module description.
11342         * m4/i-ring.m4 (gl_I_RING): Remove AC_LIBOBJ invocation.
11343         * modules/i-ring (Makefile.am): Augment lib_SOURCES.
11344
11345 2011-05-23  Bruno Haible  <bruno@clisp.org>
11346
11347         idcache: Move AC_LIBOBJ invocations to module description.
11348         * m4/idcache.m4 (gl_IDCACHE): Remove AC_LIBOBJ invocation.
11349         * modules/idcache (Makefile.am): Augment lib_SOURCES.
11350
11351 2011-05-23  Bruno Haible  <bruno@clisp.org>
11352
11353         human: Move AC_LIBOBJ invocations to module description.
11354         * m4/human.m4 (gl_HUMAN): Remove AC_LIBOBJ invocation.
11355         * modules/human (Makefile.am): Augment lib_SOURCES.
11356
11357 2011-05-23  Bruno Haible  <bruno@clisp.org>
11358
11359         crypto/hmac-sha1: Move AC_LIBOBJ invocations to module description.
11360         * m4/hmac-sha1.m4: Remove file.
11361         * modules/crypto/hmac-sha1 (Files): Remove it.
11362         (configure.ac): Remove gl_HMAC_SHA1 call.
11363         (Makefile.am): Augment lib_SOURCES.
11364
11365 2011-05-23  Bruno Haible  <bruno@clisp.org>
11366
11367         crypto/hmac-md5: Move AC_LIBOBJ invocations to module description.
11368         * m4/hmac-md5.m4: Remove file.
11369         * modules/crypto/hmac-md5 (Files): Remove it.
11370         (configure.ac): Remove gl_HMAC_MD5 call.
11371         (Makefile.am): Augment lib_SOURCES.
11372
11373 2011-05-23  Bruno Haible  <bruno@clisp.org>
11374
11375         hash: Move AC_LIBOBJ invocations to module description.
11376         * m4/hash.m4: Remove file.
11377         * modules/hash (Files): Remove it.
11378         (configure.ac): Remove gl_HASH call.
11379         (Makefile.am): Augment lib_SOURCES.
11380
11381 2011-05-23  Bruno Haible  <bruno@clisp.org>
11382
11383         hard-locale: Move AC_LIBOBJ invocations to module description.
11384         * m4/hard-locale.m4 (gl_HARD_LOCALE): Remove AC_LIBOBJ invocation.
11385         * modules/hard-locale (Makefile.am): Augment lib_SOURCES.
11386
11387 2011-05-23  Bruno Haible  <bruno@clisp.org>
11388
11389         getugroups: Move AC_LIBOBJ invocations to module description.
11390         * m4/getugroups.m4 (gl_GETUGROUPS): Remove AC_LIBOBJ invocation.
11391         * modules/getugroups (Makefile.am): Augment lib_SOURCES.
11392
11393 2011-05-23  Bruno Haible  <bruno@clisp.org>
11394
11395         gettime: Move AC_LIBOBJ invocations to module description.
11396         * m4/gettime.m4 (gl_GETTIME): Remove AC_LIBOBJ invocation.
11397         * modules/gettime (Makefile.am): Augment lib_SOURCES.
11398
11399 2011-05-23  Bruno Haible  <bruno@clisp.org>
11400
11401         getndelim2: Move AC_LIBOBJ invocations to module description.
11402         * m4/getndelim2.m4 (gl_GETNDELIM2): Remove AC_LIBOBJ invocation.
11403         * modules/getndelim2 (Makefile.am): Augment lib_SOURCES.
11404
11405 2011-05-23  Bruno Haible  <bruno@clisp.org>
11406
11407         crypto/gc-pbkdf2-sha1: Move AC_LIBOBJ invocations to module description.
11408         * m4/gc-pbkdf2-sha1.m4: Remove file.
11409         * modules/crypto/gc-pbkdf2-sha1 (Files): Remove it.
11410         (configure.ac): Remove gl_GC_PBKDF2_SHA1 call.
11411         (Makefile.am): Augment lib_SOURCES.
11412
11413 2011-05-23  Bruno Haible  <bruno@clisp.org>
11414
11415         fts: Move AC_LIBOBJ invocations to module description.
11416         * m4/fts.m4 (gl_FUNC_FTS_CORE): Move AC_LIBOBJ invocation from here...
11417         * modules/fts (configure.ac): ... to here.
11418
11419 2011-05-23  Bruno Haible  <bruno@clisp.org>
11420
11421         file-type: Move AC_LIBOBJ invocations to module description.
11422         * m4/file-type.m4: Remove file.
11423         * modules/file-type (Files): Remove it.
11424         (configure.ac): Remove gl_FILE_TYPE call.
11425         (Makefile.am): Augment lib_SOURCES.
11426
11427 2011-05-23  Bruno Haible  <bruno@clisp.org>
11428
11429         filenamecat*: Respect rules for use of AC_LIBOBJ.
11430         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT, gl_FILE_NAME_CONCAT_LGPL):
11431         Remove AC_LIBOBJ invocation.
11432         * modules/filenamecat (Makefile.am): Augment lib_SOURCES.
11433         * modules/filenamecat-lgpl (Makefile.am): Augment lib_SOURCES.
11434
11435 2011-05-23  Bruno Haible  <bruno@clisp.org>
11436
11437         filemode: Move AC_LIBOBJ invocations to module description.
11438         * m4/filemode.m4 (gl_FILEMODE): Remove AC_LIBOBJ invocation.
11439         * modules/filemode (Makefile.am): Augment lib_SOURCES.
11440
11441 2011-05-23  Bruno Haible  <bruno@clisp.org>
11442
11443         openat-safer: Move AC_LIBOBJ invocations to module description.
11444         * m4/fcntl-safer.m4 (gl_OPENAT_SAFER): Remove AC_LIBOBJ invocation.
11445         * modules/openat-safer (Makefile.am): Augment lib_SOURCES.
11446
11447 2011-05-23  Bruno Haible  <bruno@clisp.org>
11448
11449         fcntl-safer: Move AC_LIBOBJ invocations to module description.
11450         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Remove AC_LIBOBJ invocations.
11451         * modules/fcntl-safer (Makefile.am): Augment lib_SOURCES.
11452
11453 2011-05-23  Bruno Haible  <bruno@clisp.org>
11454
11455         exclude: Move AC_LIBOBJ invocations to module description.
11456         * m4/exclude.m4: Remove file.
11457         * modules/exclude (Files): Remove it.
11458         (configure.ac): Remove gl_EXCLUDE call.
11459         (Makefile.am): Augment lib_SOURCES.
11460
11461 2011-05-23  Bruno Haible  <bruno@clisp.org>
11462
11463         dirname*: Respect rules for use of AC_LIBOBJ.
11464         * m4/dirname.m4 (gl_DIRNAME, gl_DIRNAME_LGPL): Remove AC_LIBOBJ
11465         invocations.
11466         * modules/dirname (Makefile.am): Augment lib_SOURCES.
11467         * modules/dirname-lgpl (Makefile.am): Augment lib_SOURCES.
11468
11469 2011-05-23  Bruno Haible  <bruno@clisp.org>
11470
11471         dirent-safer: Move AC_LIBOBJ invocations to module description.
11472         * m4/dirent-safer.m4 (gl_DIRENT_SAFER): Remove AC_LIBOBJ invocation.
11473         * modules/dirent-safer (Makefile.am): Augment lib_SOURCES.
11474
11475 2011-05-23  Bruno Haible  <bruno@clisp.org>
11476
11477         crypto/des: Move AC_LIBOBJ invocations to module description.
11478         * m4/des.m4: Remove file.
11479         * modules/crypto/des (Files): Remove it.
11480         (configure.ac): Remove gl_DES call.
11481         (Makefile.am): Augment lib_SOURCES.
11482
11483 2011-05-23  Bruno Haible  <bruno@clisp.org>
11484
11485         cycle-check: Move AC_LIBOBJ invocations to module description.
11486         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Remove AC_LIBOBJ invocation.
11487         * modules/cycle-check (Makefile.am): Augment lib_SOURCES.
11488
11489 2011-05-23  Bruno Haible  <bruno@clisp.org>
11490
11491         c-strtold: Move AC_LIBOBJ invocations to module description.
11492         * m4/c-strtod.m4 (gl_C_STRTOLD): Remove AC_LIBOBJ invocation.
11493         * modules/c-strtold (Makefile.am): Augment lib_SOURCES.
11494
11495 2011-05-23  Bruno Haible  <bruno@clisp.org>
11496
11497         c-strtod: Move AC_LIBOBJ invocations to module description.
11498         * m4/c-strtod.m4 (gl_C_STRTOD): Remove AC_LIBOBJ invocation.
11499         * modules/c-strtod (Makefile.am): Augment lib_SOURCES.
11500
11501 2011-05-23  Bruno Haible  <bruno@clisp.org>
11502
11503         crc: Move AC_LIBOBJ invocations to module description.
11504         * m4/crc.m4: Remove file.
11505         * modules/crc (Files): Remove it.
11506         (configure.ac): Remove gl_CRC call.
11507         (Makefile.am): Augment lib_SOURCES.
11508
11509 2011-05-23  Bruno Haible  <bruno@clisp.org>
11510
11511         close-stream: Move AC_LIBOBJ invocations to module description.
11512         * m4/close-stream.m4 (gl_CLOSE_STREAM): Remove AC_LIBOBJ invocation.
11513         * modules/close-stream (Makefile.am): Augment lib_SOURCES.
11514
11515 2011-05-23  Bruno Haible  <bruno@clisp.org>
11516
11517         closeout: Move AC_LIBOBJ invocations to module description.
11518         * m4/closeout.m4 (gl_CLOSEOUT): Remove AC_LIBOBJ invocation.
11519         * modules/closeout (Makefile.am): Augment lib_SOURCES.
11520
11521 2011-05-23  Bruno Haible  <bruno@clisp.org>
11522
11523         closein: Move AC_LIBOBJ invocations to module description.
11524         * m4/closein.m4 (gl_CLOSEIN): Remove AC_LIBOBJ invocation.
11525         * modules/closein (Makefile.am): Augment lib_SOURCES.
11526
11527 2011-05-23  Bruno Haible  <bruno@clisp.org>
11528
11529         cloexec: Move AC_LIBOBJ invocations to module description.
11530         * m4/cloexec.m4: Remove file.
11531         * modules/cloexec (Files): Remove it.
11532         (configure.ac): Remove gl_CLOEXEC call.
11533         (Makefile.am): Augment lib_SOURCES.
11534
11535 2011-05-23  Bruno Haible  <bruno@clisp.org>
11536
11537         check-version: Move AC_LIBOBJ invocations to module description.
11538         * m4/check-version.m4: Remove file.
11539         * modules/check-version (Files): Remove it.
11540         (configure.ac): Remove gl_CHECK_VERSION call.
11541         (Makefile.am): Augment lib_SOURCES.
11542
11543 2011-05-23  Bruno Haible  <bruno@clisp.org>
11544
11545         chdir-safer: Move AC_LIBOBJ invocations to module description.
11546         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Remove AC_LIBOBJ invocation.
11547         * modules/chdir-safer (Makefile.am): Augment lib_SOURCES.
11548
11549 2011-05-23  Bruno Haible  <bruno@clisp.org>
11550
11551         canonicalize: Move AC_LIBOBJ invocations to module description.
11552         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE): Remove
11553         AC_LIBOBJ invocation.
11554         * modules/canonicalize (Makefile.am): Augment lib_SOURCES.
11555
11556 2011-05-23  Bruno Haible  <bruno@clisp.org>
11557
11558         canon-host: Move AC_LIBOBJ invocations to module description.
11559         * m4/canon-host.m4 (gl_CANON_HOST): Remove macro.
11560         * modules/canon-host (configure.ac): Invoke gl_PREREQ_CANON_HOST
11561         instead of gl_CANON_HOST.
11562         (Makefile.am): Augment lib_SOURCES.
11563
11564 2011-05-23  Bruno Haible  <bruno@clisp.org>
11565
11566         backupfile: Move AC_LIBOBJ invocations to module description.
11567         * m4/backupfile.m4 (gl_BACKUPFILE): Remove AC_LIBOBJ invocation.
11568         * modules/backupfile (Makefile.am): Augment lib_SOURCES.
11569
11570 2011-05-23  Bruno Haible  <bruno@clisp.org>
11571
11572         argmatch: Move AC_LIBOBJ invocations to module description.
11573         * m4/argmatch.m4: Remove file.
11574         * modules/argmatch (Files): Remove it.
11575         (configure.ac): Remove gl_ARGMATCH call.
11576         (Makefile.am): Augment lib_SOURCES.
11577
11578 2011-05-23  Bruno Haible  <bruno@clisp.org>
11579
11580         crypto/arctwo: Move AC_LIBOBJ invocations to module description.
11581         * m4/arctwo.m4 (gl_ARCTWO): Remove AC_LIBOBJ invocation.
11582         * modules/crypto/arctwo (Makefile.am): Augment lib_SOURCES.
11583
11584 2011-05-23  Bruno Haible  <bruno@clisp.org>
11585
11586         crypto/arcfour: Move AC_LIBOBJ invocations to module description.
11587         * m4/arcfour.m4: Remove file.
11588         * modules/crypto/arcfour (Files): Remove it.
11589         (configure.ac): Remove gl_ARCFOUR call.
11590         (Makefile.am): Augment lib_SOURCES.
11591
11592 2011-05-22  Bruno Haible  <bruno@clisp.org>
11593
11594         write: Move AC_LIBOBJ invocations to module description.
11595         * m4/write.m4 (gl_FUNC_WRITE): Move AC_LIBOBJ invocation from here...
11596         * modules/write (configure.ac): ... to here.
11597
11598 2011-05-22  Bruno Haible  <bruno@clisp.org>
11599
11600         wmemset: Move AC_LIBOBJ invocations to module description.
11601         * m4/wmemset.m4 (gl_FUNC_WMEMSET): Move AC_LIBOBJ invocation from
11602         here...
11603         * modules/wmemset (configure.ac): ... to here.
11604
11605 2011-05-22  Bruno Haible  <bruno@clisp.org>
11606
11607         wmemmove: Move AC_LIBOBJ invocations to module description.
11608         * m4/wmemmove.m4 (gl_FUNC_WMEMMOVE): Move AC_LIBOBJ invocation from
11609         here...
11610         * modules/wmemmove (configure.ac): ... to here.
11611
11612 2011-05-22  Bruno Haible  <bruno@clisp.org>
11613
11614         wmemcpy: Move AC_LIBOBJ invocations to module description.
11615         * m4/wmemcpy.m4 (gl_FUNC_WMEMCPY): Move AC_LIBOBJ invocation from
11616         here...
11617         * modules/wmemcpy (configure.ac): ... to here.
11618
11619 2011-05-22  Bruno Haible  <bruno@clisp.org>
11620
11621         wmemcmp: Move AC_LIBOBJ invocations to module description.
11622         * m4/wmemcmp.m4 (gl_FUNC_WMEMCMP): Move AC_LIBOBJ invocation from
11623         here...
11624         * modules/wmemcmp (configure.ac): ... to here.
11625
11626 2011-05-22  Bruno Haible  <bruno@clisp.org>
11627
11628         wmemchr: Move AC_LIBOBJ invocations to module description.
11629         * m4/wmemchr.m4 (gl_FUNC_WMEMCHR): Move AC_LIBOBJ invocation from
11630         here...
11631         * modules/wmemchr (configure.ac): ... to here.
11632
11633 2011-05-22  Bruno Haible  <bruno@clisp.org>
11634
11635         wcswidth: Move AC_LIBOBJ invocations to module description.
11636         * m4/wcswidth.m4 (gl_FUNC_WCSWIDTH): Move AC_LIBOBJ invocation from
11637         here...
11638         * modules/wcswidth (configure.ac): ... to here.
11639
11640 2011-05-22  Bruno Haible  <bruno@clisp.org>
11641
11642         wcwidth: Respect rules for use of AC_LIBOBJ.
11643         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Set HAVE_WCWIDTH. Move AC_LIBOBJ
11644         invocation from here...
11645         * modules/wcwidth (configure.ac): ... to here.
11646         (Depends-on): Update conditions.
11647
11648 2011-05-22  Bruno Haible  <bruno@clisp.org>
11649
11650         wctype: Move AC_LIBOBJ invocations to module description.
11651         * m4/wctype.m4 (gl_FUNC_WCTYPE): Set HAVE_WCTYPE. Move AC_LIBOBJ
11652         invocation from here...
11653         * modules/wctype (configure.ac): ... to here.
11654         (Depends-on): Update conditions.
11655
11656 2011-05-22  Bruno Haible  <bruno@clisp.org>
11657
11658         wctrans: Move AC_LIBOBJ invocations to module description.
11659         * m4/wctrans.m4 (gl_FUNC_WCTRANS): Set HAVE_WCTRANS. Move AC_LIBOBJ
11660         invocation from here...
11661         * modules/wctrans (configure.ac): ... to here.
11662
11663 2011-05-22  Bruno Haible  <bruno@clisp.org>
11664
11665         wctomb: Move AC_LIBOBJ invocations to module description.
11666         * m4/wctomb.m4 (gl_FUNC_WCTOMB): Move AC_LIBOBJ and gl_PREREQ_WCTOMB
11667         invocations from here...
11668         * modules/wctomb (configure.ac): ... to here.
11669
11670 2011-05-22  Bruno Haible  <bruno@clisp.org>
11671
11672         wctob: Move AC_LIBOBJ invocations to module description.
11673         * m4/wctob.m4 (gl_FUNC_WCTOB): Set HAVE_WCTOB. Move AC_LIBOBJ and
11674         gl_PREREQ_WCTOB invocations from here...
11675         * modules/wctob (configure.ac): ... to here.
11676         (Depends-on): Update conditions.
11677
11678 2011-05-22  Bruno Haible  <bruno@clisp.org>
11679
11680         wcsxfrm: Move AC_LIBOBJ invocations to module description.
11681         * m4/wcsxfrm.m4 (gl_FUNC_WCSXFRM): Move AC_LIBOBJ invocation from
11682         here...
11683         * modules/wcsxfrm (configure.ac): ... to here.
11684
11685 2011-05-22  Bruno Haible  <bruno@clisp.org>
11686
11687         wcstok: Move AC_LIBOBJ invocations to module description.
11688         * m4/wcstok.m4 (gl_FUNC_WCSTOK): Move AC_LIBOBJ invocation from here...
11689         * modules/wcstok (configure.ac): ... to here.
11690
11691 2011-05-22  Bruno Haible  <bruno@clisp.org>
11692
11693         wcsstr: Move AC_LIBOBJ invocations to module description.
11694         * m4/wcsstr.m4 (gl_FUNC_WCSSTR): Move AC_LIBOBJ invocation from here...
11695         * modules/wcsstr (configure.ac): ... to here.
11696
11697 2011-05-22  Bruno Haible  <bruno@clisp.org>
11698
11699         wcsspn: Move AC_LIBOBJ invocations to module description.
11700         * m4/wcsspn.m4 (gl_FUNC_WCSSPN): Move AC_LIBOBJ invocation from here...
11701         * modules/wcsspn (configure.ac): ... to here.
11702
11703 2011-05-22  Bruno Haible  <bruno@clisp.org>
11704
11705         wcsrtombs: Move AC_LIBOBJ invocations to module description.
11706         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): Move AC_LIBOBJ and
11707         gl_PREREQ_WCSRTOMBS invocations from here...
11708         * modules/wcsrtombs (configure.ac): ... to here.
11709
11710 2011-05-22  Bruno Haible  <bruno@clisp.org>
11711
11712         wcsrchr: Move AC_LIBOBJ invocations to module description.
11713         * m4/wcsrchr.m4 (gl_FUNC_WCSRCHR): Move AC_LIBOBJ invocation from
11714         here...
11715         * modules/wcsrchr (configure.ac): ... to here.
11716
11717 2011-05-22  Bruno Haible  <bruno@clisp.org>
11718
11719         wcspbrk: Move AC_LIBOBJ invocations to module description.
11720         * m4/wcspbrk.m4 (gl_FUNC_WCSPBRK): Move AC_LIBOBJ invocation from
11721         here...
11722         * modules/wcspbrk (configure.ac): ... to here.
11723
11724 2011-05-22  Bruno Haible  <bruno@clisp.org>
11725
11726         wcsnrtombs: Move AC_LIBOBJ invocations to module description.
11727         * m4/wcsnrtombs.m4 (gl_FUNC_WCSNRTOMBS): Move AC_LIBOBJ and
11728         gl_PREREQ_WCSNRTOMBS invocations from here...
11729         * modules/wcsnrtombs (configure.ac): ... to here.
11730
11731 2011-05-22  Bruno Haible  <bruno@clisp.org>
11732
11733         wcsnlen: Move AC_LIBOBJ invocations to module description.
11734         * m4/wcsnlen.m4 (gl_FUNC_WCSNLEN): Move AC_LIBOBJ invocation from
11735         here...
11736         * modules/wcsnlen (configure.ac): ... to here.
11737
11738 2011-05-22  Bruno Haible  <bruno@clisp.org>
11739
11740         wcsncpy: Move AC_LIBOBJ invocations to module description.
11741         * m4/wcsncpy.m4 (gl_FUNC_WCSNCPY): Move AC_LIBOBJ invocation from
11742         here...
11743         * modules/wcsncpy (configure.ac): ... to here.
11744
11745 2011-05-22  Bruno Haible  <bruno@clisp.org>
11746
11747         wcsncmp: Move AC_LIBOBJ invocations to module description.
11748         * m4/wcsncmp.m4 (gl_FUNC_WCSNCMP): Move AC_LIBOBJ invocation from
11749         here...
11750         * modules/wcsncmp (configure.ac): ... to here.
11751
11752 2011-05-22  Bruno Haible  <bruno@clisp.org>
11753
11754         wcsncat: Move AC_LIBOBJ invocations to module description.
11755         * m4/wcsncat.m4 (gl_FUNC_WCSNCAT): Move AC_LIBOBJ invocation from
11756         here...
11757         * modules/wcsncat (configure.ac): ... to here.
11758
11759 2011-05-22  Bruno Haible  <bruno@clisp.org>
11760
11761         wcsncasecmp: Move AC_LIBOBJ invocations to module description.
11762         * m4/wcsncasecmp.m4 (gl_FUNC_WCSNCASECMP): Move AC_LIBOBJ invocation
11763         from here...
11764         * modules/wcsncasecmp (configure.ac): ... to here.
11765
11766 2011-05-22  Bruno Haible  <bruno@clisp.org>
11767
11768         wcslen: Move AC_LIBOBJ invocations to module description.
11769         * m4/wcslen.m4 (gl_FUNC_WCSLEN): Move AC_LIBOBJ invocation from here...
11770         * modules/wcslen (configure.ac): ... to here.
11771
11772 2011-05-22  Bruno Haible  <bruno@clisp.org>
11773
11774         wcsdup: Move AC_LIBOBJ invocations to module description.
11775         * m4/wcsdup.m4 (gl_FUNC_WCSDUP): Move AC_LIBOBJ invocation from here...
11776         * modules/wcsdup (configure.ac): ... to here.
11777
11778 2011-05-22  Bruno Haible  <bruno@clisp.org>
11779
11780         wcscspn: Move AC_LIBOBJ invocations to module description.
11781         * m4/wcscspn.m4 (gl_FUNC_WCSCSPN): Move AC_LIBOBJ invocation from
11782         here...
11783         * modules/wcscspn (configure.ac): ... to here.
11784
11785 2011-05-22  Bruno Haible  <bruno@clisp.org>
11786
11787         wcscpy: Move AC_LIBOBJ invocations to module description.
11788         * m4/wcscpy.m4 (gl_FUNC_WCSCPY): Move AC_LIBOBJ invocation from here...
11789         * modules/wcscpy (configure.ac): ... to here.
11790
11791 2011-05-22  Bruno Haible  <bruno@clisp.org>
11792
11793         wcscoll: Move AC_LIBOBJ invocations to module description.
11794         * m4/wcscoll.m4 (gl_FUNC_WCSCOLL): Move AC_LIBOBJ invocation from
11795         here...
11796         * modules/wcscoll (configure.ac): ... to here.
11797
11798 2011-05-22  Bruno Haible  <bruno@clisp.org>
11799
11800         wcscmp: Move AC_LIBOBJ invocations to module description.
11801         * m4/wcscmp.m4 (gl_FUNC_WCSCMP): Move AC_LIBOBJ invocation from here...
11802         * modules/wcscmp (configure.ac): ... to here.
11803
11804 2011-05-22  Bruno Haible  <bruno@clisp.org>
11805
11806         wcschr: Move AC_LIBOBJ invocations to module description.
11807         * m4/wcschr.m4 (gl_FUNC_WCSCHR): Move AC_LIBOBJ invocation from here...
11808         * modules/wcschr (configure.ac): ... to here.
11809
11810 2011-05-22  Bruno Haible  <bruno@clisp.org>
11811
11812         wcscat: Move AC_LIBOBJ invocations to module description.
11813         * m4/wcscat.m4 (gl_FUNC_WCSCAT): Move AC_LIBOBJ invocation from here...
11814         * modules/wcscat (configure.ac): ... to here.
11815
11816 2011-05-22  Bruno Haible  <bruno@clisp.org>
11817
11818         wcscasecmp: Move AC_LIBOBJ invocations to module description.
11819         * m4/wcscasecmp.m4 (gl_FUNC_WCSCASECMP): Move AC_LIBOBJ invocation from
11820         here...
11821         * modules/wcscasecmp (configure.ac): ... to here.
11822
11823 2011-05-22  Bruno Haible  <bruno@clisp.org>
11824
11825         wcrtomb: Move AC_LIBOBJ invocations to module description.
11826         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Move AC_LIBOBJ and gl_PREREQ_WCRTOMB
11827         invocations from here...
11828         * modules/wcrtomb (configure.ac): ... to here.
11829
11830 2011-05-22  Bruno Haible  <bruno@clisp.org>
11831
11832         wcpncpy: Move AC_LIBOBJ invocations to module description.
11833         * m4/wcpncpy.m4 (gl_FUNC_WCPNCPY): Move AC_LIBOBJ invocation from
11834         here...
11835         * modules/wcpncpy (configure.ac): ... to here.
11836
11837 2011-05-22  Bruno Haible  <bruno@clisp.org>
11838
11839         wcpcpy: Move AC_LIBOBJ invocations to module description.
11840         * m4/wcpcpy.m4 (gl_FUNC_WCPCPY): Move AC_LIBOBJ invocation from here...
11841         * modules/wcpcpy (configure.ac): ... to here.
11842
11843 2011-05-22  Bruno Haible  <bruno@clisp.org>
11844
11845         waitpid: Move AC_LIBOBJ invocations to module description.
11846         * m4/waitpid.m4 (gl_FUNC_WAITPID): Set HAVE_WAITPID. Move AC_LIBOBJ
11847         invocation from here...
11848         * modules/waitpid (configure.ac): ... to here.
11849
11850 2011-05-22  Bruno Haible  <bruno@clisp.org>
11851
11852         utimensat: Move AC_LIBOBJ invocations to module description.
11853         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Move AC_LIBOBJ invocations from
11854         here...
11855         * modules/utimensat (configure.ac): ... to here.
11856
11857 2011-05-22  Bruno Haible  <bruno@clisp.org>
11858
11859         usleep: Move AC_LIBOBJ invocations to module description.
11860         * m4/usleep.m4 (gl_FUNC_USLEEP): Move AC_LIBOBJ invocations from
11861         here...
11862         * modules/usleep (configure.ac): ... to here.
11863
11864 2011-05-22  Bruno Haible  <bruno@clisp.org>
11865
11866         unlockpt: Move AC_LIBOBJ invocations to module description.
11867         * m4/unlockpt.m4 (gl_FUNC_UNLOCKPT): Move AC_LIBOBJ and
11868         gl_PREREQ_UNLOCKPT invocations from here...
11869         * modules/unlockpt (configure.ac): ... to here.
11870
11871 2011-05-22  Bruno Haible  <bruno@clisp.org>
11872
11873         unlink: Respect rules for use of AC_LIBOBJ.
11874         * m4/unlink.m4 (gl_FUNC_UNLINK): Move AC_LIBOBJ invocation from here...
11875         * modules/unlink (configure.ac): ... to here.
11876
11877 2011-05-22  Bruno Haible  <bruno@clisp.org>
11878
11879         uname: Move AC_LIBOBJ invocations to module description.
11880         * m4/uname.m4 (gl_FUNC_UNAME): Call AC_CHECK_FUNCS instead of
11881         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_UNAME invocations from
11882         here...
11883         * modules/uname (configure.ac): ... to here.
11884
11885 2011-05-22  Bruno Haible  <bruno@clisp.org>
11886
11887         ttyname_r: Move AC_LIBOBJ invocations to module description.
11888         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Move AC_LIBOBJ and
11889         gl_PREREQ_TTYNAME_R invocations from here...
11890         * modules/ttyname_r (configure.ac): ... to here.
11891
11892 2011-05-22  Bruno Haible  <bruno@clisp.org>
11893
11894         tsearch: Move AC_LIBOBJ invocations to module description.
11895         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Move AC_LIBOBJ and gl_PREREQ_TSEARCH
11896         invocations from here...
11897         * modules/tsearch (configure.ac): ... to here.
11898
11899 2011-05-22  Bruno Haible  <bruno@clisp.org>
11900
11901         towctrans: Move AC_LIBOBJ invocations to module description.
11902         * m4/towctrans.m4 (gl_FUNC_TOWCTRANS): Set HAVE_TOWCTRANS. Move
11903         AC_LIBOBJ invocation from here...
11904         * modules/towctrans (configure.ac): ... to here.
11905
11906 2011-05-22  Bruno Haible  <bruno@clisp.org>
11907
11908         tmpfile: Move AC_LIBOBJ invocations to module description.
11909         * m4/tmpfile.m4 (gl_FUNC_TMPFILE): Move AC_LIBOBJ and gl_PREREQ_TMPFILE
11910         invocations from here...
11911         * modules/tmpfile (configure.ac): ... to here.
11912
11913 2011-05-22  Bruno Haible  <bruno@clisp.org>
11914
11915         times: Move AC_LIBOBJ invocations to module description.
11916         * m4/times.m4 (gl_FUNC_TIMES): Move AC_LIBOBJ invocation from here...
11917         * modules/times (configure.ac): ... to here.
11918
11919 2011-05-22  Bruno Haible  <bruno@clisp.org>
11920
11921         time_r: Move AC_LIBOBJ invocations to module description.
11922         * m4/time_r.m4 (gl_TIME_R): Move AC_LIBOBJ and gl_PREREQ_TIME_R
11923         invocations from here...
11924         * modules/time_r (configure.ac): ... to here.
11925
11926 2011-05-22  Bruno Haible  <bruno@clisp.org>
11927
11928         timegm: Move AC_LIBOBJ invocations to module description.
11929         * m4/timegm.m4 (gl_FUNC_TIMEGM): Move AC_LIBOBJ and gl_PREREQ_TIMEGM
11930         invocations from here...
11931         * modules/timegm (configure.ac): ... to here.
11932
11933 2011-05-22  Bruno Haible  <bruno@clisp.org>
11934
11935         tcgetsid: Move AC_LIBOBJ invocations to module description.
11936         * m4/tcgetsid.m4 (gl_FUNC_TCGETSID): Set HAVE_TCGETSID. Move AC_LIBOBJ
11937         and gl_PREREQ_TCGETSID invocations from here...
11938         * modules/tcgetsid (configure.ac): ... to here.
11939         (Depends-on): Update conditions.
11940
11941 2011-05-22  Bruno Haible  <bruno@clisp.org>
11942
11943         symlinkat: Move AC_LIBOBJ invocations to module description.
11944         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Move AC_LIBOBJ invocation from
11945         here...
11946         * modules/symlinkat (configure.ac): ... to here.
11947
11948 2011-05-22  Bruno Haible  <bruno@clisp.org>
11949
11950         symlink: Move AC_LIBOBJ invocations to module description.
11951         * m4/symlink.m4 (gl_FUNC_SYMLINK): Move AC_LIBOBJ invocations from
11952         here...
11953         * modules/symlink (configure.ac): ... to here.
11954
11955 2011-05-22  Bruno Haible  <bruno@clisp.org>
11956
11957         strverscmp: Move AC_LIBOBJ invocations to module description.
11958         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Call AC_CHECK_FUNCS instead of
11959         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRVERSCMP invocations
11960         from here...
11961         * modules/strverscmp (configure.ac): ... to here.
11962
11963 2011-05-22  Bruno Haible  <bruno@clisp.org>
11964
11965         strtok_r: Move AC_LIBOBJ invocations to module description.
11966         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Set HAVE_STRTOK_R. Move AC_LIBOBJ
11967         and gl_PREREQ_STRTOK_R invocations from here...
11968         * modules/strtok_r (configure.ac): ... to here.
11969         (Depends-on): Update conditions.
11970
11971 2011-05-22  Bruno Haible  <bruno@clisp.org>
11972
11973         strtoumax: Move AC_LIBOBJ invocations to module description.
11974         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Call AC_CHECK_FUNCS instead of
11975         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOUMAX invocations
11976         from here...
11977         * modules/strtoumax (configure.ac): ... to here.
11978
11979 2011-05-22  Bruno Haible  <bruno@clisp.org>
11980
11981         strtoimax: Move AC_LIBOBJ invocations to module description.
11982         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Call AC_CHECK_FUNCS instead of
11983         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOIMAX invocations
11984         from here...
11985         * modules/strtoimax (configure.ac): ... to here.
11986
11987 2011-05-22  Bruno Haible  <bruno@clisp.org>
11988
11989         strtoull: Move AC_LIBOBJ invocations to module description.
11990         * m4/strtoull.m4 (gl_FUNC_STRTOULL): Call AC_CHECK_FUNCS instead of
11991         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOULL invocations
11992         from here...
11993         * modules/strtoull (configure.ac): ... to here.
11994
11995 2011-05-22  Bruno Haible  <bruno@clisp.org>
11996
11997         strtoll: Move AC_LIBOBJ invocations to module description.
11998         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Call AC_CHECK_FUNCS instead of
11999         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOLL invocations from
12000         here...
12001         * modules/strtoll (configure.ac): ... to here.
12002
12003 2011-05-22  Bruno Haible  <bruno@clisp.org>
12004
12005         strtoul: Move AC_LIBOBJ invocations to module description.
12006         * m4/strtoul.m4 (gl_FUNC_STRTOUL): Call AC_CHECK_FUNCS instead of
12007         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocation from here...
12008         * modules/strtoul (configure.ac): ... to here.
12009
12010 2011-05-22  Bruno Haible  <bruno@clisp.org>
12011
12012         strtol: Move AC_LIBOBJ invocations to module description.
12013         * m4/strtol.m4 (gl_FUNC_STRTOL): Call AC_CHECK_FUNCS instead of
12014         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocation from here...
12015         * modules/strtol (configure.ac): ... to here.
12016
12017 2011-05-22  Bruno Haible  <bruno@clisp.org>
12018
12019         strtod: Move AC_LIBOBJ invocations to module description.
12020         * m4/strtod.m4 (gl_FUNC_STRTOD): Move AC_LIBOBJ and gl_PREREQ_STRTOD
12021         invocations from here...
12022         * modules/strtod (configure.ac): ... to here.
12023
12024 2011-05-22  Bruno Haible  <bruno@clisp.org>
12025
12026         strstr*: Move AC_LIBOBJ invocations to module description.
12027         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Move AC_LIBOBJ
12028         invocations from here...
12029         * modules/strstr-simple (configure.ac): ... to here.
12030         * modules/strstr (configure.ac): ... and here.
12031
12032 2011-05-22  Bruno Haible  <bruno@clisp.org>
12033
12034         strsignal: Move AC_LIBOBJ invocations to module description.
12035         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Set HAVE_STRSIGNAL. Move
12036         AC_LIBOBJ and gl_PREREQ_STRSIGNAL invocations from here...
12037         * modules/strsignal (configure.ac): ... to here.
12038         (Depends-on): Update conditions.
12039
12040 2011-05-22  Bruno Haible  <bruno@clisp.org>
12041
12042         strsep: Move AC_LIBOBJ invocations to module description.
12043         * m4/strsep.m4 (gl_FUNC_STRSEP): Call AC_CHECK_FUNCS instead of
12044         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRSEP invocations from
12045         here...
12046         * modules/strsep (configure.ac): ... to here.
12047
12048 2011-05-22  Bruno Haible  <bruno@clisp.org>
12049
12050         strptime: Move AC_LIBOBJ invocations to module description.
12051         * m4/strptime.m4 (gl_FUNC_STRPTIME): Move AC_LIBOBJ and
12052         gl_PREREQ_STRPTIME invocations from here...
12053         * modules/strptime (configure.ac): ... to here.
12054
12055 2011-05-22  Bruno Haible  <bruno@clisp.org>
12056
12057         strpbrk: Move AC_LIBOBJ invocations to module description.
12058         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Call AC_CHECK_FUNCS instead of
12059         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRPBRK invocations from
12060         here...
12061         * modules/strpbrk (configure.ac): ... to here.
12062
12063 2011-05-22  Bruno Haible  <bruno@clisp.org>
12064
12065         strnlen: Move AC_LIBOBJ invocations to module description.
12066         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Move AC_LIBOBJ and gl_PREREQ_STRNLEN
12067         invocations from here...
12068         * modules/strnlen (configure.ac): ... to here.
12069
12070 2011-05-22  Bruno Haible  <bruno@clisp.org>
12071
12072         strndup: Move AC_LIBOBJ invocations to module description.
12073         * m4/strndup.m4 (gl_FUNC_STRNDUP): Set HAVE_STRNDUP. Move AC_LIBOBJ
12074         invocations from here...
12075         * modules/strndup (configure.ac): ... to here.
12076         (Depends-on): Update conditions.
12077
12078 2011-05-22  Bruno Haible  <bruno@clisp.org>
12079
12080         strncat: Move AC_LIBOBJ invocations to module description.
12081         * m4/strncat.m4 (gl_FUNC_STRNCAT): Move AC_LIBOBJ and gl_PREREQ_STRNCAT
12082         invocations from here...
12083         * modules/strncat (configure.ac): ... to here.
12084
12085 2011-05-22  Bruno Haible  <bruno@clisp.org>
12086
12087         strdup, strdup-posix: Move AC_LIBOBJ invocations to module description.
12088         * m4/strdup.m4 (gl_FUNC_STRDUP): Move AC_LIBOBJ and gl_PREREQ_STRDUP
12089         invocations from here...
12090         * modules/strdup (configure.ac): ... to here.
12091         * modules/strdup-posix (configure.ac): ... and here.
12092
12093 2011-05-22  Bruno Haible  <bruno@clisp.org>
12094
12095         strcspn: Move AC_LIBOBJ invocations to module description.
12096         * m4/strcspn.m4 (gl_FUNC_STRCSPN): Call AC_CHECK_FUNCS instead of
12097         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRCSPN invocations from
12098         here...
12099         * modules/strcspn (configure.ac): ... to here.
12100
12101 2011-05-22  Bruno Haible  <bruno@clisp.org>
12102
12103         strchrnul: Move AC_LIBOBJ invocations to module description.
12104         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Move AC_LIBOBJ and
12105         gl_PREREQ_STRCHRNUL invocations from here...
12106         * modules/strchrnul (configure.ac): ... to here.
12107
12108 2011-05-22  Bruno Haible  <bruno@clisp.org>
12109
12110         strcasestr*: Move AC_LIBOBJ invocations to module description.
12111         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE, gl_FUNC_STRCASESTR):
12112         Move AC_LIBOBJ and gl_PREREQ_STRCASESTR invocations from here...
12113         * modules/strcasestr-simple (configure.ac): ... to here.
12114         * modules/strcasestr (configure.ac): ... and here.
12115
12116 2011-05-22  Bruno Haible  <bruno@clisp.org>
12117
12118         strcase: Move AC_LIBOBJ invocations to module description.
12119         * m4/strcase.m4 (gl_FUNC_STRNCASECMP): Set HAVE_STRNCASECMP.
12120         (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP): Call AC_CHECK_FUNCS instead
12121         of AC_REPLACE_FUNCS. Move AC_LIBOBJ, gl_PREREQ_STRCASECMP,
12122         gl_PREREQ_STRNCASECMP invocations from here...
12123         * modules/strcase (configure.ac): ... to here.
12124
12125 2011-05-22  Bruno Haible  <bruno@clisp.org>
12126
12127         stpncpy: Move AC_LIBOBJ invocations to module description.
12128         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Move AC_LIBOBJ invocations from
12129         here...
12130         * modules/stpncpy (configure.ac): ... to here.
12131
12132 2011-05-22  Bruno Haible  <bruno@clisp.org>
12133
12134         stpcpy: Move AC_LIBOBJ invocations to module description.
12135         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Call AC_CHECK_FUNCS instead of
12136         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STPCPY invocations from
12137         here...
12138         * modules/stpcpy (configure.ac): ... to here.
12139
12140 2011-05-21  Bruno Haible  <bruno@clisp.org>
12141
12142         stat: Move AC_LIBOBJ invocations to module description.
12143         * m4/stat.m4 (gl_PREREQ_STAT): New macro, extracted from gl_FUNC_STAT.
12144         (gl_FUNC_STAT): Move AC_LIBOBJ and gl_PREREQ_STAT invocations from
12145         here...
12146         * modules/stat (configure.ac): ... to here.
12147
12148 2011-05-21  Bruno Haible  <bruno@clisp.org>
12149
12150         sleep: Move AC_LIBOBJ invocations to module description.
12151         * m4/sleep.m4 (gl_FUNC_SLEEP): Move AC_LIBOBJ invocations from here...
12152         * modules/sleep (configure.ac): ... to here.
12153
12154 2011-05-21  Bruno Haible  <bruno@clisp.org>
12155
12156         signbit: Move AC_LIBOBJ invocations to module description.
12157         * m4/signbit.m4 (gl_SIGNBIT): Move AC_LIBOBJ invocations from here...
12158         * modules/signbit (configure.ac): ... to here.
12159
12160 2011-05-21  Bruno Haible  <bruno@clisp.org>
12161
12162         sigprocmask: Move AC_LIBOBJ invocations to module description.
12163         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Move AC_LIBOBJ and
12164         gl_PREREQ_SIGPROMASK invocations from here...
12165         * modules/sigprocmask (configure.ac): ... to here.
12166
12167 2011-05-21  Bruno Haible  <bruno@clisp.org>
12168
12169         sigaction: Move AC_LIBOBJ invocations to module description.
12170         * m4/sigaction.m4 (gl_SIGACTION): Move AC_LIBOBJ and
12171         gl_PREREQ_SIGACTION invocations from here...
12172         * modules/sigaction (configure.ac): ... to here.
12173
12174 2011-05-21  Bruno Haible  <bruno@clisp.org>
12175
12176         sig2str: Move AC_LIBOBJ invocations to module description.
12177         * m4/sig2str.m4 (gl_FUNC_SIG2STR): Call AC_CHECK_FUNCS instead of
12178         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_SIG2STR invocations from
12179         here...
12180         * modules/sig2str (configure.ac): ... to here.
12181
12182 2011-05-21  Bruno Haible  <bruno@clisp.org>
12183
12184         setlocale: Move AC_LIBOBJ invocations to module description.
12185         * m4/setlocale.m4 (gl_FUNC_SETLOCALE): Move AC_LIBOBJ and
12186         gl_PREREQ_SETLOCALE invocations from here...
12187         * modules/setlocale (configure.ac): ... to here.
12188
12189 2011-05-21  Bruno Haible  <bruno@clisp.org>
12190
12191         unsetenv: Move AC_LIBOBJ invocations to module description.
12192         * m4/setenv.m4 (gl_FUNC_UNSETENV): Set HAVE_UNSETENV. Move AC_LIBOBJ
12193         and gl_PREREQ_UNSETENV invocations from here...
12194         * modules/unsetenv (configure.ac): ... to here.
12195         (Depends-on): Update.
12196
12197 2011-05-21  Bruno Haible  <bruno@clisp.org>
12198
12199         setenv: Move AC_LIBOBJ invocations to module description.
12200         * m4/setenv.m4 (gl_FUNC_SETENV): Move AC_LIBOBJ invocations from
12201         here...
12202         * modules/setenv (configure.ac): ... to here.
12203
12204 2011-05-21  Bruno Haible  <bruno@clisp.org>
12205
12206         selinux-h: Move AC_LIBOBJ invocations to module description.
12207         * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): Move
12208         AC_LIBOBJ invocation from here...
12209         * modules/selinux-h (configure.ac): ... to here.
12210
12211 2011-05-21  Bruno Haible  <bruno@clisp.org>
12212
12213         select: Respect rules for use of AC_LIBOBJ.
12214         * m4/select.m4 (gl_FUNC_SELECT): Move AC_LIBOBJ invocations from
12215         here...
12216         * modules/select (configure.ac): ... to here.
12217
12218 2011-05-21  Bruno Haible  <bruno@clisp.org>
12219
12220         scandir: Move AC_LIBOBJ invocations to module description.
12221         * m4/scandir.m4 (gl_FUNC_SCANDIR): Move AC_LIBOBJ and gl_PREREQ_SCANDIR
12222         invocations from here...
12223         * modules/scandir (configure.ac): ... to here.
12224
12225 2011-05-21  Bruno Haible  <bruno@clisp.org>
12226
12227         rpmatch: Move AC_LIBOBJ invocations to module description.
12228         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Call AC_CHECK_FUNCS instead of
12229         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_RPMATCH invocations from
12230         here...
12231         * modules/rpmatch (configure.ac): ... to here.
12232
12233 2011-05-21  Bruno Haible  <bruno@clisp.org>
12234
12235         rmdir: Respect rules for use of AC_LIBOBJ.
12236         * m4/rmdir.m4 (gl_FUNC_RMDIR): Move AC_LIBOBJ invocation from here...
12237         * modules/rmdir (configure.ac): ... to here.
12238
12239 2011-05-21  Bruno Haible  <bruno@clisp.org>
12240
12241         renameat: Move AC_LIBOBJ invocations to module description.
12242         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Move AC_LIBOBJ invocations from
12243         here...
12244         * modules/renameat (configure.ac): ... to here.
12245
12246 2011-05-21  Bruno Haible  <bruno@clisp.org>
12247
12248         rename: Respect rules for use of AC_LIBOBJ.
12249         * m4/rename.m4 (gl_FUNC_RENAME): Move AC_LIBOBJ invocations from
12250         here...
12251         * modules/rename (configure.ac): ... to here.
12252
12253 2011-05-21  Bruno Haible  <bruno@clisp.org>
12254
12255         remove: Move AC_LIBOBJ invocations to module description.
12256         * m4/remove.m4 (gl_FUNC_REMOVE): Move AC_LIBOBJ invocations from
12257         here...
12258         * modules/remove (configure.ac): ... to here.
12259
12260 2011-05-21  Bruno Haible  <bruno@clisp.org>
12261
12262         relocatable-lib: Move AC_LIBOBJ invocations to module description.
12263         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY_SEPARATE): Remove
12264         macro.
12265         (gl_RELOCATABLE_LIBRARY): Move AC_LIBOBJ invocation from here...
12266         * modules/relocatable-lib (configure.ac): ... to here.
12267         * modules/relocatable-prog-wrapper (configure.ac): Invoke
12268         gl_RELOCATABLE_LIBRARY instead of gl_RELOCATABLE_LIBRARY_SEPARATE.
12269
12270 2011-05-21  Bruno Haible  <bruno@clisp.org>
12271
12272         relocatable-prog: Move AC_LIBOBJ invocations to module description.
12273         * m4/relocatable.m4 (gl_RELOCATABLE): Move AC_LIBOBJ invocation from
12274         here...
12275         * modules/relocatable-prog (configure.ac): ... to here.
12276
12277 2011-05-21  Bruno Haible  <bruno@clisp.org>
12278
12279         regex: Move AC_LIBOBJ invocations to module description.
12280         * m4/regex.m4 (gl_REGEX): Move AC_LIBOBJ and gl_PREREQ_REGEX
12281         invocations from here...
12282         * modules/regex (configure.ac): ... to here.
12283
12284 2011-05-21  Bruno Haible  <bruno@clisp.org>
12285
12286         realloc-*: Move AC_LIBOBJ invocations to module description.
12287         * m4/realloc.m4 (gl_REPLACE_REALLOC): Remove macro.
12288         (gl_FUNC_REALLOC_GNU, gl_FUNC_REALLOC_POSIX): Inline it here. Move
12289         AC_LIBOBJ invocations from here...
12290         * modules/realloc-gnu (configure.ac): ... to here.
12291         * modules/realloc-posix (configure.ac): ... and here.
12292
12293 2011-05-21  Bruno Haible  <bruno@clisp.org>
12294
12295         readutmp: Move AC_LIBOBJ invocations to module description.
12296         * m4/readutmp.m4 (gl_READUTMP): Move AC_LIBOBJ invocation from here...
12297         * modules/readutmp (configure.ac): ... to here.
12298
12299 2011-05-21  Bruno Haible  <bruno@clisp.org>
12300
12301         readlinkat: Move AC_LIBOBJ invocations to module description.
12302         * m4/readlinkat.m4 (gl_FUNC_READLINKAT): Move AC_LIBOBJ invocation from
12303         here...
12304         * modules/readlinkat (configure.ac): ... to here.
12305
12306 2011-05-21  Bruno Haible  <bruno@clisp.org>
12307
12308         readlink: Move AC_LIBOBJ invocations to module description.
12309         * m4/readlink.m4 (gl_FUNC_READLINK): Move AC_LIBOBJ and
12310         gl_PREREQ_READLINK invocations from here...
12311         * modules/readlink (configure.ac): ... to here.
12312
12313 2011-05-21  Bruno Haible  <bruno@clisp.org>
12314
12315         readline: Move AC_LIBOBJ invocations to module description.
12316         * m4/readline.m4 (gl_FUNC_READLINE): Move AC_LIBOBJ and
12317         gl_PREREQ_READLINE invocations from here...
12318         * modules/readline (configure.ac): ... to here.
12319
12320 2011-05-21  Bruno Haible  <bruno@clisp.org>
12321
12322         read: Move AC_LIBOBJ invocations to module description.
12323         * m4/read.m4 (gl_FUNC_READ): Move AC_LIBOBJ invocation from here...
12324         * modules/read (configure.ac): ... to here.
12325
12326 2011-05-21  Bruno Haible  <bruno@clisp.org>
12327
12328         rawmemchr: Move AC_LIBOBJ invocations to module description.
12329         * m4/rawmemchr.m4 (gl_FUNC_RAWMEMCHR): Call AC_CHECK_FUNCS instead of
12330         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_RAWMEMCHR invocations
12331         from here...
12332         * modules/rawmemchr (configure.ac): ... to here.
12333
12334 2011-05-21  Bruno Haible  <bruno@clisp.org>
12335
12336         random_r: Move AC_LIBOBJ invocations to module description.
12337         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Move AC_LIBOBJ and
12338         gl_PREREQ_RANDOM_R invocations from here...
12339         * modules/random_r (configure.ac): ... to here.
12340
12341 2011-05-21  Bruno Haible  <bruno@clisp.org>
12342
12343         pwrite: Move AC_LIBOBJ invocations to module description.
12344         * m4/pwrite.m4 (gl_FUNC_PWRITE): Move AC_LIBOBJ invocation from here...
12345         * modules/pwrite (configure.ac): ... to here.
12346
12347 2011-05-21  Bruno Haible  <bruno@clisp.org>
12348
12349         putenv: Move AC_LIBOBJ invocations to module description.
12350         * m4/putenv.m4 (gl_FUNC_PUTENV): Move AC_LIBOBJ invocation from here...
12351         * modules/putenv (configure.ac): ... to here.
12352
12353 2011-05-21  Bruno Haible  <bruno@clisp.org>
12354
12355         login_tty: Move AC_LIBOBJ invocations to module description.
12356         * m4/pty.m4 (gl_FUNC_LOGIN_TTY): Move AC_LIBOBJ invocation from here...
12357         * modules/login_tty (configure.ac): ... to here.
12358
12359 2011-05-21  Bruno Haible  <bruno@clisp.org>
12360
12361         openpty: Move AC_LIBOBJ invocations to module description.
12362         * m4/pty.m4 (gl_FUNC_OPENPTY): Move AC_LIBOBJ invocations from here...
12363         * modules/openpty (configure.ac): ... to here.
12364
12365 2011-05-21  Bruno Haible  <bruno@clisp.org>
12366
12367         forkpty: Move AC_LIBOBJ invocations to module description.
12368         * m4/pty.m4 (gl_FUNC_FORKPTY): Move AC_LIBOBJ invocations from here...
12369         * modules/forkpty (configure.ac): ... to here.
12370
12371 2011-05-21  Bruno Haible  <bruno@clisp.org>
12372
12373         ptsname: Move AC_LIBOBJ invocations to module description.
12374         * m4/ptsname.m4 (gl_FUNC_PTSNAME): Move AC_LIBOBJ and gl_PREREQ_PTSNAME
12375         invocations from here...
12376         * modules/ptsname (configure.ac): ... to here.
12377
12378 2011-05-21  Bruno Haible  <bruno@clisp.org>
12379
12380         pread: Move AC_LIBOBJ invocations to module description.
12381         * m4/pread.m4 (gl_FUNC_PREAD): Move AC_LIBOBJ invocation from here...
12382         * modules/pread (configure.ac): ... to here.
12383
12384 2011-05-21  Bruno Haible  <bruno@clisp.org>
12385
12386         posix_spawn*: Move AC_LIBOBJ invocations to module description.
12387         * m4/posix_spawn.m4 (gl_PREREQ_POSIX_SPAWN_INTERNAL): Renamed from
12388         gl_POSIX_SPAWN_INTERNAL. Move AC_LIBOBJ invocation from here...
12389         * modules/posix_spawn (configure.ac): ... to here.
12390         * modules/posix_spawnp (configure.ac): ... and here.
12391
12392 2011-05-21  Bruno Haible  <bruno@clisp.org>
12393
12394         popen: Move AC_LIBOBJ invocations to module description.
12395         * m4/popen.m4 (gl_FUNC_POPEN): Move AC_LIBOBJ and gl_PREREQ_POPEN
12396         invocations from here...
12397         * modules/popen (configure.ac): ... to here.
12398
12399 2011-05-21  Bruno Haible  <bruno@clisp.org>
12400
12401         poll: Move AC_LIBOBJ invocations to module description.
12402         * m4/poll.m4 (gl_FUNC_POLL): Move AC_LIBOBJ and gl_PREREQ_POLL
12403         invocations from here...
12404         * modules/poll (configure.ac): ... to here.
12405
12406 2011-05-21  Bruno Haible  <bruno@clisp.org>
12407
12408         pipe-posix: Move AC_LIBOBJ invocations to module description.
12409         * m4/pipe.m4 (gl_FUNC_PIPE): Move AC_LIBOBJ invocation from here...
12410         * modules/pipe-posix (configure.ac): ... to here.
12411
12412 2011-05-21  Bruno Haible  <bruno@clisp.org>
12413
12414         openat: Respect rules for use of AC_LIBOBJ.
12415         * m4/openat.m4 (gl_FUNC_OPENAT): Call AC_CHECK_FUNCS instead of
12416         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocations from here...
12417         * modules/openat (configure.ac): ... to here.
12418
12419 2011-05-21  Bruno Haible  <bruno@clisp.org>
12420
12421         obstack-printf*: Move AC_LIBOBJ invocations to module description.
12422         * m4/obstack-printf.m4 (gl_REPLACE_OBSTACK_PRINTF): Move AC_LIBOBJ
12423         invocation from here...
12424         * modules/obstack-printf (configure.ac): ... to here.
12425         * modules/obstack-printf-posix (configure.ac): ... and here.
12426
12427 2011-05-21  Bruno Haible  <bruno@clisp.org>
12428
12429         nl_langinfo: Move AC_LIBOBJ invocations to module description.
12430         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Move AC_LIBOBJ invocations
12431         from here...
12432         * modules/nl_langinfo (configure.ac): ... to here.
12433
12434 2011-05-21  Bruno Haible  <bruno@clisp.org>
12435
12436         nanosleep: Move AC_LIBOBJ invocations to module description.
12437         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Move AC_LIBOBJ and
12438         gl_PREREQ_NANOSLEEP invocations from here...
12439         * modules/nanosleep (configure.ac): ... to here.
12440
12441 2011-05-21  Bruno Haible  <bruno@clisp.org>
12442
12443         mountlist: Move AC_LIBOBJ invocations to module description.
12444         * m4/mountlist.m4 (gl_MOUNTLIST): Move AC_LIBOBJ and
12445         gl_PREREQ_MOUNTLIST_EXTRA invocations from here...
12446         * modules/mountlist (configure.ac): ... to here.
12447
12448 2011-05-21  Bruno Haible  <bruno@clisp.org>
12449
12450         mktime: Respect rules for use of AC_LIBOBJ.
12451         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove macro.
12452         (gl_FUNC_MKTIME): Inline it here. Set gl_cv_func_working_mktime. Move
12453         AC_LIBOBJ and gl_PREREQ_MKTIME invocations from here...
12454         (gl_FUNC_MKTIME_INTERNAL): ... and here...
12455         * modules/mktime (configure.ac): ... to here.
12456         * modules/mktime-internal (configure.ac): ... and here.
12457         * m4/timegm.m4 (gl_FUNC_TIMEGM): Update.
12458
12459 2011-05-21  Bruno Haible  <bruno@clisp.org>
12460
12461         mkstemps: Move AC_LIBOBJ invocations to module description.
12462         * m4/mkstemps.m4 (gl_FUNC_MKSTEMPS): Move AC_LIBOBJ invocation from
12463         here...
12464         * modules/mkstemps (configure.ac): ... to here.
12465
12466 2011-05-21  Bruno Haible  <bruno@clisp.org>
12467
12468         mkstemp: Move AC_LIBOBJ invocations to module description.
12469         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Move AC_LIBOBJ and
12470         gl_PREREQ_MKSTEMP invocations from here...
12471         * modules/mkstemp (configure.ac): ... to here.
12472
12473 2011-05-21  Bruno Haible  <bruno@clisp.org>
12474
12475         mkostemps: Move AC_LIBOBJ invocations to module description.
12476         * m4/mkostemps.m4 (gl_FUNC_MKOSTEMPS): Move AC_LIBOBJ invocation from
12477         here...
12478         * modules/mkostemps (configure.ac): ... to here.
12479
12480 2011-05-21  Bruno Haible  <bruno@clisp.org>
12481
12482         mkostemp: Move AC_LIBOBJ invocations to module description.
12483         * m4/mkostemp.m4 (gl_FUNC_MKOSTEMP): Move AC_LIBOBJ and
12484         gl_PREREQ_MKOSTEMP invocations from here...
12485         * modules/mkostemp (configure.ac): ... to here.
12486
12487 2011-05-21  Bruno Haible  <bruno@clisp.org>
12488
12489         mknod: Move AC_LIBOBJ invocations to module description.
12490         * m4/mknod.m4 (gl_FUNC_MKNOD): Move AC_LIBOBJ invocations from here...
12491         * modules/mknod (configure.ac): ... to here.
12492
12493 2011-05-21  Bruno Haible  <bruno@clisp.org>
12494
12495         mkfifoat: Move AC_LIBOBJ invocations to module description.
12496         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Move AC_LIBOBJ invocations from
12497         here...
12498         * modules/mkfifoat (configure.ac): ... to here.
12499
12500 2011-05-21  Bruno Haible  <bruno@clisp.org>
12501
12502         mkfifo: Respect rules for use of AC_LIBOBJ.
12503         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Move AC_LIBOBJ invocations from
12504         here...
12505         * modules/mkfifo (configure.ac): ... to here.
12506
12507 2011-05-21  Bruno Haible  <bruno@clisp.org>
12508
12509         mkdtemp: Move AC_LIBOBJ invocations to module description.
12510         * m4/mkdtemp.m4 (gl_FUNC_MKDTEMP): Move AC_LIBOBJ and gl_PREREQ_MKDTEMP
12511         invocations from here...
12512         * modules/mkdtemp (configure.ac): ... to here.
12513
12514 2011-05-21  Bruno Haible  <bruno@clisp.org>
12515
12516         mkdir: Move AC_LIBOBJ invocations to module description.
12517         * m4/mkdir.m4 (gl_FUNC_MKDIR): Move AC_LIBOBJ invocations from here...
12518         * modules/mkdir (configure.ac): ... to here.
12519
12520 2011-05-21  Bruno Haible  <bruno@clisp.org>
12521
12522         memset: Move AC_LIBOBJ invocations to module description.
12523         * m4/memset.m4 (gl_FUNC_MEMSET): Call AC_CHECK_FUNCS instead of
12524         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMSET invocations from
12525         here...
12526         * modules/memset (configure.ac): ... to here.
12527
12528 2011-05-21  Bruno Haible  <bruno@clisp.org>
12529
12530         memrchr: Move AC_LIBOBJ invocations to module description.
12531         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Call AC_CHECK_FUNCS instead of
12532         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMRCHR invocations from
12533         here...
12534         * modules/memrchr (configure.ac): ... to here.
12535
12536 2011-05-21  Bruno Haible  <bruno@clisp.org>
12537
12538         mempcpy: Move AC_LIBOBJ invocations to module description.
12539         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Call AC_CHECK_FUNCS instead of
12540         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMPCPY invocations from
12541         here...
12542         * modules/mempcpy (configure.ac): ... to here.
12543
12544 2011-05-21  Bruno Haible  <bruno@clisp.org>
12545
12546         memmove: Move AC_LIBOBJ invocations to module description.
12547         * m4/memmove.m4 (gl_FUNC_MEMMOVE): Call AC_CHECK_FUNCS instead of
12548         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMMOVE invocations from
12549         here...
12550         * modules/memmove (configure.ac): ... to here.
12551
12552 2011-05-21  Bruno Haible  <bruno@clisp.org>
12553
12554         memmem*: Move AC_LIBOBJ invocations to module description.
12555         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): Call AC_CHECK_FUNCS instead of
12556         AC_REPLACE_FUNCS. Set HAVE_MEMMEM. Move AC_LIBOBJ invocations from
12557         here...
12558         (gl_FUNC_MEMMEM): ... and here...
12559         * modules/memmem-simple (configure.ac): ... to here.
12560         * modules/memmem (configure.ac): ... and here.
12561
12562 2011-05-21  Bruno Haible  <bruno@clisp.org>
12563
12564         memcpy: Move AC_LIBOBJ invocations to module description.
12565         * m4/memcpy.m4 (gl_FUNC_MEMCPY): Call AC_CHECK_FUNCS instead of
12566         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMCPY invocations from
12567         here...
12568         * modules/memcpy (configure.ac): ... to here.
12569
12570 2011-05-21  Bruno Haible  <bruno@clisp.org>
12571
12572         memcmp: Simplify autoconf macro.
12573         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Merge the cross-compilation code into
12574         the AC_RUN_IFELSE invocation. Set gl_func_memcmp.
12575         * modules/memcmp (Depends-on, configure.ac): Test gl_func_memcmp.
12576
12577 2011-05-21  Bruno Haible  <bruno@clisp.org>
12578
12579         memcmp: Move AC_LIBOBJ invocations to module description.
12580         * m4/memcmp.m4 (AC_FUNC_MEMCMP): Remove macro.
12581         (gl_FUNC_MEMCMP): Inline it here. Set gl_cv_func_memcmp_working. Move
12582         AC_LIBOBJ and gl_PREREQ_MEMCMP invocations from here...
12583         * modules/memcmp (configure.ac): ... to here.
12584         (Depends-on): Update conditions.
12585
12586 2011-05-21  Bruno Haible  <bruno@clisp.org>
12587
12588         memchr: Respect rules for use of AC_LIBOBJ.
12589         * m4/memchr.m4 (gl_FUNC_MEMCHR): Move AC_LIBOBJ and gl_PREREQ_MEMCHR
12590         invocations from here...
12591         * modules/memchr (configure.ac): ... to here.
12592
12593 2011-05-21  Bruno Haible  <bruno@clisp.org>
12594
12595         mbtowc: Move AC_LIBOBJ invocations to module description.
12596         * m4/mbtowc.m4 (gl_FUNC_MBTOWC): Move AC_LIBOBJ and gl_PREREQ_MBTOWC
12597         invocations from here...
12598         * modules/mbtowc (configure.ac): ... to here.
12599
12600 2011-05-21  Bruno Haible  <bruno@clisp.org>
12601
12602         mbsrtowcs: Move AC_LIBOBJ invocations to module description.
12603         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Move AC_LIBOBJ and
12604         gl_PREREQ_MBSRTOWCS invocations from here...
12605         * modules/mbsrtowcs (configure.ac): ... to here.
12606
12607 2011-05-21  Bruno Haible  <bruno@clisp.org>
12608
12609         mbsnrtowcs: Move AC_LIBOBJ invocations to module description.
12610         * m4/mbsnrtowcs.m4 (gl_FUNC_MBSNRTOWCS): Move AC_LIBOBJ and
12611         gl_PREREQ_MBSNRTOWCS invocations from here...
12612         * modules/mbsnrtowcs (configure.ac): ... to here.
12613
12614 2011-05-21  Bruno Haible  <bruno@clisp.org>
12615
12616         mbsinit: Move AC_LIBOBJ invocations to module description.
12617         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Move AC_LIBOBJ and gl_PREREQ_MBSINIT
12618         invocations from here...
12619         * modules/mbsinit (configure.ac): ... to here.
12620
12621 2011-05-21  Bruno Haible  <bruno@clisp.org>
12622
12623         mbrlen: Move AC_LIBOBJ invocations to module description.
12624         * m4/mbrlen.m4 (gl_FUNC_MBRLEN): Move AC_LIBOBJ and gl_PREREQ_MBRLEN
12625         invocations from here...
12626         * modules/mbrlen (configure.ac): ... to here.
12627
12628 2011-05-21  Bruno Haible  <bruno@clisp.org>
12629
12630         mbrtowc: Respect rules for use of AC_LIBOBJ.
12631         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): Move AC_LIBOBJ and gl_PREREQ_MBRTOWC
12632         invocations from here...
12633         * modules/mbrtowc (configure.ac): ... to here.
12634
12635 2011-05-21  Bruno Haible  <bruno@clisp.org>
12636
12637         malloc-*: Move AC_LIBOBJ invocations to module description.
12638         * m4/malloc.m4 (gl_REPLACE_MALLOC): Remove macro.
12639         (gl_FUNC_MALLOC_GNU, gl_FUNC_MALLOC_POSIX): Inline it here. Move
12640         AC_LIBOBJ invocations from here...
12641         * modules/malloc-gnu (configure.ac): ... to here.
12642         * modules/malloc-posix (configure.ac): ... and here.
12643
12644 2011-05-21  Bruno Haible  <bruno@clisp.org>
12645
12646         lstat, openat: Respect rules for use of AC_LIBOBJ.
12647         * m4/lstat.m4 (gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): Renamed from
12648         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK. Set variable
12649         gl_cv_func_lstat_dereferences_slashed_symlink. Don't invoke AC_LIBOBJ.
12650         (gl_PREREQ_LSTAT): New macro, extracted from gl_FUNC_LSTAT.
12651         (gl_FUNC_LSTAT): Update. Remove gl_PREREQ_LSTAT code.
12652         * modules/lstat (configure.ac): Invoke AC_LIBOBJ and gl_PREREQ_LSTAT
12653         here.
12654         * m4/openat.m4 (gl_FUNC_OPENAT): Update.
12655
12656 2011-05-21  Bruno Haible  <bruno@clisp.org>
12657
12658         lseek: Move AC_LIBOBJ invocations to module description.
12659         * m4/lseek.m4 (gl_REPLACE_LSEEK): Remove macro.
12660         (gl_FUNC_LSEEK): Inline it here. Move AC_LIBOBJ invocation from here...
12661         * modules/lseek (configure.ac): ... to here.
12662
12663 2011-05-21  Bruno Haible  <bruno@clisp.org>
12664
12665         linkat: Move AC_LIBOBJ invocations to module description.
12666         * m4/linkat.m4 (gl_FUNC_LINKAT): Move AC_LIBOBJ invocations from
12667         here...
12668         * modules/linkat (configure.ac): ... to here.
12669
12670 2011-05-21  Bruno Haible  <bruno@clisp.org>
12671
12672         link: Respect rules for use of AC_LIBOBJ.
12673         * m4/link.m4 (gl_FUNC_LINK): Move AC_LIBOBJ invocations from here...
12674         * modules/link (configure.ac): ... to here.
12675
12676 2011-05-21  Bruno Haible  <bruno@clisp.org>
12677
12678         lchown: Move AC_LIBOBJ invocations to module description.
12679         * m4/lchown.m4 (gl_FUNC_EUIDACCESS): Call AC_CHECK_FUNCS instead of
12680         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocations from here...
12681         * modules/lchown (configure.ac): ... to here.
12682
12683 2011-05-21  Bruno Haible  <bruno@clisp.org>
12684
12685         iswctype: Move AC_LIBOBJ invocations to module description.
12686         * m4/iswctype.m4 (gl_FUNC_ISWCTYPE): Move AC_LIBOBJ invocation from
12687         here...
12688         * modules/iswctype (configure.ac): ... to here.
12689
12690 2011-05-21  Bruno Haible  <bruno@clisp.org>
12691
12692         iswblank: Move AC_LIBOBJ invocations to module description.
12693         * m4/iswblank.m4 (gl_FUNC_ISWBLANK): Move AC_LIBOBJ invocation from
12694         here...
12695         * modules/iswblank (configure.ac): ... to here.
12696
12697 2011-05-21  Bruno Haible  <bruno@clisp.org>
12698
12699         atanl: Move AC_LIBOBJ invocations to module description.
12700         * m4/atanl.m4 (gl_FUNC_ATANL): Move AC_LIBOBJ invocation from here...
12701         * modules/atanl (configure.ac): ... to here.
12702
12703 2011-05-21  Bruno Haible  <bruno@clisp.org>
12704
12705         acosl: Move AC_LIBOBJ invocations to module description.
12706         * m4/acosl.m4 (gl_FUNC_ACOSL): Move AC_LIBOBJ invocation from here...
12707         * modules/acosl (configure.ac): ... to here.
12708
12709 2011-05-21  Bruno Haible  <bruno@clisp.org>
12710
12711         asinl: Respect rules for use of AC_LIBOBJ.
12712         * m4/asinl.m4 (gl_FUNC_ASINL): Move AC_LIBOBJ invocation from here...
12713         * modules/asinl (configure.ac): ... to here.
12714
12715 2011-05-21  Bruno Haible  <bruno@clisp.org>
12716
12717         tanl: Move AC_LIBOBJ invocations to module description.
12718         * m4/tanl.m4 (gl_FUNC_TANL): Move AC_LIBOBJ invocations from here...
12719         * modules/tanl (configure.ac): ... to here.
12720
12721 2011-05-21  Bruno Haible  <bruno@clisp.org>
12722
12723         cosl: Move AC_LIBOBJ invocations to module description.
12724         * m4/cosl.m4 (gl_FUNC_COSL): Move AC_LIBOBJ invocations from here...
12725         * modules/cosl (configure.ac): ... to here.
12726
12727 2011-05-21  Bruno Haible  <bruno@clisp.org>
12728
12729         sinl: Move AC_LIBOBJ invocations to module description.
12730         * m4/sinl.m4 (gl_FUNC_SINL): Move AC_LIBOBJ invocations from here...
12731         * modules/sinl (configure.ac): ... to here.
12732
12733 2011-05-21  Bruno Haible  <bruno@clisp.org>
12734
12735         logl: Move AC_LIBOBJ invocations to module description.
12736         * m4/logl.m4 (gl_FUNC_LOGL): Move AC_LIBOBJ invocation from here...
12737         * modules/logl (configure.ac): ... to here.
12738
12739 2011-05-21  Bruno Haible  <bruno@clisp.org>
12740
12741         expl: Move AC_LIBOBJ invocations to module description.
12742         * m4/expl.m4 (gl_FUNC_EXPL): Move AC_LIBOBJ invocation from here...
12743         * modules/expl (configure.ac): ... to here.
12744
12745 2011-05-21  Bruno Haible  <bruno@clisp.org>
12746
12747         roundl: Move AC_LIBOBJ invocations to module description.
12748         * m4/roundl.m4 (gl_FUNC_ROUNDL): Move AC_LIBOBJ invocation from here...
12749         * modules/roundl (configure.ac): ... to here.
12750
12751 2011-05-21  Bruno Haible  <bruno@clisp.org>
12752
12753         round: Move AC_LIBOBJ invocations to module description.
12754         * m4/round.m4 (gl_FUNC_ROUND): Move AC_LIBOBJ invocation from here...
12755         * modules/round (configure.ac): ... to here.
12756
12757 2011-05-21  Bruno Haible  <bruno@clisp.org>
12758
12759         roundf: Move AC_LIBOBJ invocations to module description.
12760         * m4/roundf.m4 (gl_FUNC_ROUNDF): Move AC_LIBOBJ invocation from here...
12761         * modules/roundf (configure.ac): ... to here.
12762
12763 2011-05-21  Bruno Haible  <bruno@clisp.org>
12764
12765         truncl: Move AC_LIBOBJ invocations to module description.
12766         * m4/truncl.m4 (gl_FUNC_TRUNCL): Move AC_LIBOBJ invocation from here...
12767         * modules/truncl (configure.ac): ... to here.
12768
12769 2011-05-21  Bruno Haible  <bruno@clisp.org>
12770
12771         trunc: Move AC_LIBOBJ invocations to module description.
12772         * m4/trunc.m4 (gl_FUNC_TRUNC): Move AC_LIBOBJ invocation from here...
12773         * modules/trunc (configure.ac): ... to here.
12774
12775 2011-05-21  Bruno Haible  <bruno@clisp.org>
12776
12777         truncf: Move AC_LIBOBJ invocations to module description.
12778         * m4/truncf.m4 (gl_FUNC_TRUNCF): Move AC_LIBOBJ invocation from here...
12779         * modules/truncf (configure.ac): ... to here.
12780
12781 2011-05-21  Bruno Haible  <bruno@clisp.org>
12782
12783         ceill: Move AC_LIBOBJ invocations to module description.
12784         * m4/ceill.m4 (gl_FUNC_CEILL): Move AC_LIBOBJ invocation from here...
12785         * modules/ceill (configure.ac): ... to here.
12786
12787 2011-05-21  Bruno Haible  <bruno@clisp.org>
12788
12789         ceil: Move AC_LIBOBJ invocations to module description.
12790         * m4/ceil.m4 (gl_FUNC_CEIL): Move AC_LIBOBJ invocation from here...
12791         * modules/ceil (configure.ac): ... to here.
12792
12793 2011-05-21  Bruno Haible  <bruno@clisp.org>
12794
12795         ceilf: Move AC_LIBOBJ invocations to module description.
12796         * m4/ceilf.m4 (gl_FUNC_CEILF): Move AC_LIBOBJ invocation from here...
12797         * modules/ceilf (configure.ac): ... to here.
12798
12799 2011-05-21  Bruno Haible  <bruno@clisp.org>
12800
12801         floorl: Respect rules for use of AC_LIBOBJ.
12802         * m4/floorl.m4 (gl_FUNC_FLOORL): Move AC_LIBOBJ invocation from here...
12803         * modules/floorl (configure.ac): ... to here.
12804
12805 2011-05-21  Bruno Haible  <bruno@clisp.org>
12806
12807         floor: Respect rules for use of AC_LIBOBJ.
12808         * m4/floor.m4 (gl_FUNC_FLOOR): Move AC_LIBOBJ invocation from here...
12809         * modules/floor (configure.ac): ... to here.
12810
12811 2011-05-21  Bruno Haible  <bruno@clisp.org>
12812
12813         floorf: Move AC_LIBOBJ invocations to module description.
12814         * m4/floorf.m4 (gl_FUNC_FLOORF): Move AC_LIBOBJ invocation from here...
12815         * modules/floorf (configure.ac): ... to here.
12816
12817 2011-05-20  Bruno Haible  <bruno@clisp.org>
12818
12819         sqrtl: Respect rules for use of AC_LIBOBJ.
12820         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Move AC_LIBOBJ invocation from here...
12821         * modules/sqrtl (configure.ac): ... to here.
12822
12823 2011-05-20  Bruno Haible  <bruno@clisp.org>
12824
12825         ldexpl: Respect rules for use of AC_LIBOBJ.
12826         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Move AC_LIBOBJ invocation from here...
12827         * modules/ldexpl (configure.ac): ... to here.
12828
12829 2011-05-20  Bruno Haible  <bruno@clisp.org>
12830
12831         frexpl*: Respect rules for use of AC_LIBOBJ.
12832         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): Move AC_LIBOBJ
12833         invocation from here...
12834         * modules/frexpl (configure.ac): ... to here.
12835         * modules/frexpl-nolibm (configure.ac): ... and here.
12836
12837 2011-05-20  Bruno Haible  <bruno@clisp.org>
12838
12839         frexp, frexp-nolibm: Move AC_LIBOBJ invocations to module description.
12840         * m4/frexp.m4 (gl_FUNC_FREXP, gl_FUNC_FREXP_NO_LIBM): Move AC_LIBOBJ
12841         invocation from here...
12842         * modules/frexp (configure.ac): ... to here.
12843         * modules/frexp-nolibm (configure.ac): ... and here.
12844
12845 2011-05-20  Bruno Haible  <bruno@clisp.org>
12846
12847         isnan: Respect rules for use of AC_LIBOBJ.
12848         * m4/isnan.m4 (gl_ISNAN): Don't do the AC_LIBOBJ and gl_PREREQ_ISNAN*
12849         invocations here.
12850         * modules/isnanf (configure.ac): Require gl_ISNAN if it exists. Test
12851         REPLACE_ISNAN.
12852         * modules/isnand (configure.ac): Likewise.
12853         * modules/isnanl (configure.ac): Likewise.
12854
12855 2011-05-20  Bruno Haible  <bruno@clisp.org>
12856
12857         isnanl*: Respect rules for use of AC_LIBOBJ.
12858         * m4/isnanl.m4 (gl_FUNC_ISNANL, gl_FUNC_ISNANL_NO_LIBM): Move AC_LIBOBJ
12859         invocation from here...
12860         * modules/isnanl (configure.ac): ... to here.
12861         * modules/isnanl-nolibm (configure.ac): ... and here.
12862
12863 2011-05-20  Bruno Haible  <bruno@clisp.org>
12864
12865         isnand*: Move AC_LIBOBJ invocations to module description.
12866         * m4/isnand.m4 (gl_FUNC_ISNAND, gl_FUNC_ISNAND_NO_LIBM): Move AC_LIBOBJ
12867         invocation from here...
12868         * modules/isnand (configure.ac): ... to here.
12869         * modules/isnand-nolibm (configure.ac): ... and here.
12870
12871 2011-05-20  Bruno Haible  <bruno@clisp.org>
12872
12873         isnanf*: Move AC_LIBOBJ invocations to module description.
12874         * m4/isnanf.m4 (gl_FUNC_ISNANF, gl_FUNC_ISNANF_NO_LIBM): Move AC_LIBOBJ
12875         invocation from here...
12876         * modules/isnanf (configure.ac): ... to here.
12877         * modules/isnanf-nolibm (configure.ac): ... and here.
12878
12879 2011-05-20  Bruno Haible  <bruno@clisp.org>
12880
12881         isnan*: Separate the AC_LIBOBJ invocations.
12882         * m4/isnanf.m4 (gl_PREREQ_ISNANF): Renamed from gl_BUILD_ISNANF. Remove
12883         AC_LIBOBJ invocation.
12884         (gl_FUNC_ISNANF, gl_FUNC_ISNANF_NO_LIBM): Update. Invoke AC_LIBOBJ
12885         here.
12886         * m4/isnand.m4 (gl_PREREQ_ISNAND): Renamed from gl_BUILD_ISNAND. Remove
12887         AC_LIBOBJ invocation.
12888         (gl_FUNC_ISNAND, gl_FUNC_ISNAND_NO_LIBM): Update. Invoke AC_LIBOBJ
12889         here.
12890         * m4/isnanl.m4 (gl_PREREQ_ISNANL): Renamed from gl_BUILD_ISNANL. Remove
12891         AC_LIBOBJ invocation.
12892         (gl_FUNC_ISNANL, gl_FUNC_ISNANL_NO_LIBM): Update. Invoke AC_LIBOBJ
12893         here.
12894         * m4/isnan.m4 (gl_ISNAN): Update. Invoke AC_LIBOBJ here.
12895
12896 2011-05-08  Bruno Haible  <bruno@clisp.org>
12897
12898         isinf: Move AC_LIBOBJ invocations to module description.
12899         * m4/isinf.m4 (gl_ISINF): Move AC_LIBOBJ invocation from here...
12900         * modules/isinf (configure.ac): ... to here.
12901
12902 2011-05-08  Bruno Haible  <bruno@clisp.org>
12903
12904         isfinite: Move AC_LIBOBJ invocations to module description.
12905         * m4/isfinite.m4 (gl_ISFINITE): Move AC_LIBOBJ invocation from here...
12906         * modules/isfinite (configure.ac): ... to here.
12907
12908 2011-05-08  Bruno Haible  <bruno@clisp.org>
12909
12910         isblank: Move AC_LIBOBJ invocations to module description.
12911         * m4/isblank.m4 (gl_FUNC_ISBLANK): Move AC_LIBOBJ invocation from
12912         here...
12913         * modules/isblank (configure.ac): ... to here.
12914
12915 2011-05-08  Bruno Haible  <bruno@clisp.org>
12916
12917         isapipe: Move AC_LIBOBJ invocations to module description.
12918         * m4/isapipe.m4 (gl_ISAPIPE): Set HAVE_ISAPIPE. Move AC_LIBOBJ and
12919         gl_PREREQ_ISAPIPE invocations from here...
12920         * modules/isapipe (configure.ac): ... to here.
12921         (Depends-on): Update condition.
12922
12923 2011-05-08  Bruno Haible  <bruno@clisp.org>
12924
12925         ioctl: Move AC_LIBOBJ invocations to module description.
12926         * m4/ioctl.m4 (gl_FUNC_IOCTL): Set HAVE_IOCTL. Move AC_LIBOBJ
12927         invocations from here...
12928         * modules/ioctl (configure.ac): ... to here.
12929         (Depends-on): Update condition.
12930
12931 2011-05-08  Bruno Haible  <bruno@clisp.org>
12932
12933         imaxdiv: Move AC_LIBOBJ invocations to module description.
12934         * m4/imaxdiv.m4 (gl_FUNC_IMAXDIV): Move AC_LIBOBJ and gl_PREREQ_IMAXDIV
12935         invocations from here...
12936         * modules/imaxdiv (configure.ac): ... to here.
12937
12938 2011-05-08  Bruno Haible  <bruno@clisp.org>
12939
12940         imaxabs: Move AC_LIBOBJ invocations to module description.
12941         * m4/imaxabs.m4 (gl_FUNC_IMAXABS): Move AC_LIBOBJ and gl_PREREQ_IMAXABS
12942         invocations from here...
12943         * modules/imaxabs (configure.ac): ... to here.
12944
12945 2011-05-08  Bruno Haible  <bruno@clisp.org>
12946
12947         getaddrinfo: Move AC_LIBOBJ invocations to module description.
12948         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Set HAVE_GETADDRINFO, Move
12949         AC_LIBOBJ invocations from here...
12950         * modules/getaddrinfo (configure.ac): ... to here.
12951         (Depends-on): Add conditions.
12952
12953 2011-05-08  Bruno Haible  <bruno@clisp.org>
12954
12955         inet_pton. getaddrinfo: Respect rules for use of AC_LIBOBJ.
12956         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Set HAVE_INET_PTON. Call
12957         AC_CHECK_FUNCS instead of AC_REPLACE_FUNCS. Don't invoke
12958         gl_PREREQ_INET_PTON. Move tests for declaration of inet_pton here...
12959         (gl_PREREQ_INET_PTON): ... from here.
12960         * modules/inet_pton (configure.ac): Invoke AC_LIBOBJ and
12961         gl_PREREQ_INET_PTON here.
12962         (Depends-on): Update condition.
12963
12964 2011-05-08  Bruno Haible  <bruno@clisp.org>
12965
12966         inet_ntop. getaddrinfo: Respect rules for use of AC_LIBOBJ.
12967         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Set HAVE_INET_NTOP. Call
12968         AC_CHECK_FUNCS instead of AC_REPLACE_FUNCS. Don't invoke
12969         gl_PREREQ_INET_NTOP. Move tests for declaration of inet_ntop here...
12970         (gl_PREREQ_INET_NTOP): ... from here.
12971         * modules/inet_ntop (configure.ac): Invoke AC_LIBOBJ and
12972         gl_PREREQ_INET_NTOP here.
12973         (Depends-on): Update condition.
12974
12975 2011-05-08  Bruno Haible  <bruno@clisp.org>
12976
12977         iconv_open: Move AC_LIBOBJ invocations to module description.
12978         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN, gl_REPLACE_ICONV_OPEN): Move
12979         AC_LIBOBJ invocations from here...
12980         * modules/iconv_open (configure.ac): ... to here.
12981
12982 2011-05-08  Bruno Haible  <bruno@clisp.org>
12983
12984         iconv_open, iconv_open-utf: Respect rules for use of AC_LIBOBJ.
12985         If module 'iconv_open' is among the main modules and module
12986         'iconv_open-utf' is among the tests dependencies, then
12987         REPLACE_ICONV_UTF will be defined to 1, hence iconv_open() in lib may
12988         return the special iconv_t values. Therefore iconv() and iconv_close()
12989         must support these special iconv_t values, already in lib, not only in
12990         tests.
12991         * m4/iconv_open-utf.m4: New file, extracted from m4/iconv_open.m4.
12992         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Invoke
12993         gl_FUNC_ICONV_OPEN_UTF_SUPPORT if present.
12994         (gl_FUNC_ICONV_OPEN_UTF): Remove macro.
12995         * modules/iconv_open (Files): Add lib/iconv.c, lib/iconv_close.c.
12996         (Depends-on): Add the dependencies of iconv_open-utf.
12997         * modules/iconv_open-utf (Files): Add m4/iconv_open-utf.m4. Remove
12998         m4/iconv_open.m4, lib/iconv.c, lib/iconv_close.c.
12999         (Depends-on): Remove modules needed by lib/iconv.c, lib/iconv_close.c.
13000
13001 2011-05-08  Bruno Haible  <bruno@clisp.org>
13002
13003         group-member: Move AC_LIBOBJ invocations to module description.
13004         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Move AC_LIBOBJ and
13005         gl_PREREQ_GROUP_MEMBER invocations from here...
13006         * modules/group-member (configure.ac): ... to here.
13007
13008 2011-05-08  Bruno Haible  <bruno@clisp.org>
13009
13010         grantpt: Move AC_LIBOBJ invocations to module description.
13011         * m4/grantpt.m4 (gl_FUNC_GRANTPT): Move AC_LIBOBJ and gl_PREREQ_GRANTPT
13012         invocations from here...
13013         * modules/grantpt (configure.ac): ... to here.
13014
13015 2011-05-08  Bruno Haible  <bruno@clisp.org>
13016
13017         glob: Move AC_LIBOBJ invocations to module description.
13018         * m4/glob.m4 (gl_GLOB): Move AC_LIBOBJ and gl_PREREQ_GLOB invocations
13019         from here...
13020         * modules/glob (configure.ac): ... to here.
13021
13022 2011-05-08  Bruno Haible  <bruno@clisp.org>
13023
13024         getusershell: Move AC_LIBOBJ invocations to module description.
13025         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): Set HAVE_GETUSERSHELL.
13026         Move AC_LIBOBJ invocation from here...
13027         * modules/getusershell (configure.ac): ... to here.
13028         (Depends-on): Update condition.
13029
13030 2011-05-08  Bruno Haible  <bruno@clisp.org>
13031
13032         gettimeofday: Move AC_LIBOBJ invocations to module description.
13033         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY,
13034         gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Move AC_LIBOBJ and
13035         gl_PREREQ_GETTIMEOFDAY invocations from here...
13036         * modules/gettimeofday (configure.ac): ... to here.
13037
13038 2011-05-08  Bruno Haible  <bruno@clisp.org>
13039
13040         gettimeofday, tzset: Respect rules for use of AC_LIBOBJ.
13041         * modules/tzset (configure.ac): Don't invoke gl_FUNC_TZSET_CLOBBER,
13042         just gl_FUNC_TZSET.
13043         * m4/tzset.m4 (gl_FUNC_TZSET): New macro.
13044         (gl_FUNC_TZSET_CLOBBER): Remove actions.
13045         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Invoke
13046         gl_FUNC_TZSET_CLOBBER and its actions here, if present.
13047
13048 2011-05-08  Bruno Haible  <bruno@clisp.org>
13049
13050         getsubopt: Move AC_LIBOBJ invocations to module description.
13051         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Move AC_LIBOBJ and
13052         gl_PREREQ_GETSUBOPT invocations from here...
13053         * modules/getsubopt (configure.ac): ... to here.
13054
13055 2011-05-08  Bruno Haible  <bruno@clisp.org>
13056
13057         getpass-gnu: Move AC_LIBOBJ invocations to module description.
13058         * m4/getpass.m4 (gl_FUNC_GETPASS_GNU): Set REPLACE_GETPASS. Move
13059         AC_LIBOBJ and gl_PREREQ_GETPASS invocations from here...
13060         * modules/getpass-gnu (configure.ac): ... to here.
13061
13062 2011-05-08  Bruno Haible  <bruno@clisp.org>
13063
13064         getpass: Move AC_LIBOBJ invocations to module description.
13065         * m4/getpass.m4 (gl_FUNC_GETPASS): Set HAVE_GETPASS. Move AC_LIBOBJ and
13066         gl_PREREQ_GETPASS invocations from here...
13067         * modules/getpass (configure.ac): ... to here.
13068
13069 2011-05-08  Bruno Haible  <bruno@clisp.org>
13070
13071         getpagesize: Move AC_LIBOBJ invocations to module description.
13072         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Move AC_LIBOBJ invocation
13073         from here...
13074         * modules/getpagesize (configure.ac): ... to here.
13075
13076 2011-05-08  Bruno Haible  <bruno@clisp.org>
13077
13078         getopt: Move AC_LIBOBJ invocations to module description.
13079         * m4/getopt.m4 (gl_REPLACE_GETOPT): Remove macro.
13080         (gl_FUNC_GETOPT): Inline it here. Move AC_LIBOBJ and gl_PREREQ_GETOPT
13081         invocations from here...
13082         * modules/getopt-gnu (configure.ac): ... to here.
13083         * modules/getopt-posix (configure.ac): ... and here.
13084         (Depends-on): Update condition.
13085
13086 2011-05-08  Bruno Haible  <bruno@clisp.org>
13087
13088         getopt, argp: Respect rules for use of AC_LIBOBJ.
13089         * m4/argp.m4 (gl_ARGP): Don't invoke gl_REPLACE_GETOPT.
13090         (gl_REPLACE_GETOPT_ALWAYS): New macro.
13091         * m4/getopt.m4 (gl_FUNC_GETOPT_POSIX): Test whether
13092         gl_REPLACE_GETOPT_ALWAYS is defined. Set REPLACE_GETOPT.
13093
13094 2011-05-08  Bruno Haible  <bruno@clisp.org>
13095
13096         getlogin_r: Move AC_LIBOBJ invocations to module description.
13097         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Move AC_LIBOBJ and
13098         gl_PREREQ_GETLOGIN_R invocations from here...
13099         * modules/getlogin_r (configure.ac): ... to here.
13100
13101 2011-05-08  Bruno Haible  <bruno@clisp.org>
13102
13103         getlogin: Move AC_LIBOBJ invocations to module description.
13104         * m4/getlogin.m4 (gl_FUNC_GETLOGIN): Move AC_LIBOBJ invocation from
13105         here...
13106         * modules/getlogin (configure.ac): ... to here.
13107
13108 2011-05-08  Bruno Haible  <bruno@clisp.org>
13109
13110         getloadavg: Move AC_LIBOBJ invocations to module description.
13111         * m4/getloadavg.m4 (gl_FUNC_GETDELIM): Set HAVE_GETLOADAVG. Move
13112         AC_LIBOBJ and gl_PREREQ_GETLOADAVG invocations from here...
13113         * modules/getloadavg (configure.ac): ... to here.
13114
13115 2011-05-08  Bruno Haible  <bruno@clisp.org>
13116
13117         gethrxtime: Move AC_LIBOBJ invocations to module description.
13118         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Move code that determines
13119         LIB_GETHRXTIME from here...
13120         (gl_GETHRXTIME): ... to here. Move AC_LIBOBJ and gl_PREREQ_GETHRXTIME
13121         invocations from here...
13122         * modules/gethrxtime (configure.ac): ... to here.
13123
13124 2011-05-08  Bruno Haible  <bruno@clisp.org>
13125
13126         gethostname: Move AC_LIBOBJ invocations to module description.
13127         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Move AC_LIBOBJ and
13128         gl_PREREQ_GETHOSTNAME invocations from here...
13129         * modules/gethostname (configure.ac): ... to here.
13130
13131 2011-05-08  Bruno Haible  <bruno@clisp.org>
13132
13133         getgroups: Move AC_LIBOBJ invocations to module description.
13134         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Move AC_LIBOBJ invocations from
13135         here...
13136         * modules/getgroups (configure.ac): ... to here.
13137
13138 2011-05-08  Bruno Haible  <bruno@clisp.org>
13139
13140         getdtablesize: Move AC_LIBOBJ invocations to module description.
13141         * m4/getdtablesize.m4 (gl_FUNC_GETDTABLESIZE): Move AC_LIBOBJ
13142         invocation from here...
13143         * modules/getdtablesize (configure.ac): ... to here.
13144
13145 2011-05-08  Bruno Haible  <bruno@clisp.org>
13146
13147         getdomainname: Move AC_LIBOBJ invocations to module description.
13148         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Move AC_LIBOBJ and
13149         gl_PREREQ_GETDOMAINNAME invocations from here...
13150         * modules/getdomainname (configure.ac): ... to here.
13151
13152 2011-05-08  Bruno Haible  <bruno@clisp.org>
13153
13154         getline: Move AC_LIBOBJ invocations to module description.
13155         * m4/getline.m4 (gl_FUNC_GETLINE): Move AC_LIBOBJ and gl_PREREQ_GETLINE
13156         invocations from here...
13157         * modules/getline (configure.ac): ... to here.
13158
13159 2011-05-08  Bruno Haible  <bruno@clisp.org>
13160
13161         getline: Simplify.
13162         * m4/getline.m4 (gl_PREREQ_GETLINE): Don't invoke gl_FUNC_GETDELIM.
13163         It's already handled through the module dependency.
13164
13165 2011-05-08  Bruno Haible  <bruno@clisp.org>
13166
13167         getdelim: Move AC_LIBOBJ invocations to module description.
13168         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Set HAVE_GETDELIM. Move AC_LIBOBJ
13169         and gl_PREREQ_GETDELIM invocations from here...
13170         * modules/getdelim (configure.ac): ... to here.
13171         (Depends-on): Fix condition.
13172
13173 2011-05-08  Bruno Haible  <bruno@clisp.org>
13174
13175         getcwd: Move AC_LIBOBJ invocations to module description.
13176         * m4/getcwd.m4 (gl_FUNC_GETCWD): Move AC_LIBOBJ and gl_PREREQ_GETCWD
13177         invocations from here...
13178         * modules/getcwd (configure.ac): ... to here.
13179
13180 2011-05-08  Bruno Haible  <bruno@clisp.org>
13181
13182         getcwd-lgpl: Move AC_LIBOBJ invocations to module description.
13183         * m4/getcwd.m4 (gl_FUNC_GETCWD_LGPL): Move AC_LIBOBJ invocation from
13184         here...
13185         * modules/getcwd-lgpl (configure.ac): ... to here.
13186
13187 2011-05-07  Bruno Haible  <bruno@clisp.org>
13188
13189         crypto/gc: Move AC_LIBOBJ invocations to module description.
13190         * m4/gc.m4 (gl_GC): Move AC_LIBOBJ invocations from here...
13191         * modules/crypto/gc (configure.ac): ... to here.
13192
13193 2011-05-07  Bruno Haible  <bruno@clisp.org>
13194
13195         fwriting: Move AC_LIBOBJ invocations to module description.
13196         * m4/fwriting.m4 (gl_FUNC_FWRITINT): Move AC_LIBOBJ invocation from
13197         here...
13198         * modules/fwriting (configure.ac): ... to here.
13199
13200 2011-05-07  Bruno Haible  <bruno@clisp.org>
13201
13202         fwritable: Move AC_LIBOBJ invocations to module description.
13203         * m4/fwritable.m4 (gl_FUNC_FWRITABLE): Move AC_LIBOBJ invocation from
13204         here...
13205         * modules/fwritable (configure.ac): ... to here.
13206
13207 2011-05-07  Bruno Haible  <bruno@clisp.org>
13208
13209         futimens: Move AC_LIBOBJ invocations to module description.
13210         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Move AC_LIBOBJ invocations from
13211         here...
13212         * modules/futimens (configure.ac): ... to here.
13213
13214 2011-05-07  Bruno Haible  <bruno@clisp.org>
13215
13216         ftruncate: Move AC_LIBOBJ invocations to module description.
13217         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Move AC_LIBOBJ and
13218         gl_PREREQ_FTRUNCATE invocations from here...
13219         * modules/ftruncate (configure.ac): ... to here.
13220
13221 2011-05-07  Bruno Haible  <bruno@clisp.org>
13222
13223         fsync: Move AC_LIBOBJ invocations to module description.
13224         * m4/fsync.m4 (gl_FUNC_FSYNC): Move AC_LIBOBJ and gl_PREREQ_FSYNC
13225         invocations from here...
13226         * modules/fsync (configure.ac): ... to here.
13227
13228 2011-05-07  Bruno Haible  <bruno@clisp.org>
13229
13230         fsusage: Move AC_LIBOBJ invocations to module description.
13231         * m4/fsusage.m4 (gl_FUNC_FREOPEN): Move AC_LIBOBJ and
13232         gl_PREREQ_FSUSAGE_EXTRA invocations from here...
13233         * modules/fsusage (configure.ac): ... to here.
13234
13235 2011-05-07  Bruno Haible  <bruno@clisp.org>
13236
13237         freopen: Move AC_LIBOBJ invocations to module description.
13238         * m4/freopen.m4 (gl_FUNC_FREOPEN): Move AC_LIBOBJ and gl_PREREQ_FREOPEN
13239         invocations from here...
13240         * modules/freopen (configure.ac): ... to here.
13241
13242 2011-05-07  Bruno Haible  <bruno@clisp.org>
13243
13244         free: Move AC_LIBOBJ invocations to module description.
13245         * m4/free.m4 (gl_FUNC_FREE): Move AC_LIBOBJ and missing gl_PREREQ_FREE
13246         invocations from here...
13247         * modules/free (configure.ac): ... to here.
13248
13249 2011-05-07  Bruno Haible  <bruno@clisp.org>
13250
13251         freadable: Move AC_LIBOBJ invocations to module description.
13252         * m4/freadable.m4 (gl_FUNC_FREADABLE): Move AC_LIBOBJ invocation from
13253         here...
13254         * modules/freadable (configure.ac): ... to here.
13255
13256 2011-05-07  Bruno Haible  <bruno@clisp.org>
13257
13258         fpurge: Move AC_LIBOBJ invocations to module description.
13259         * m4/fpurge.m4 (gl_FUNC_FPURGE): Set HAVE_FPURGE. Move AC_LIBOBJ
13260         invocations from here...
13261         * modules/fpurge (configure.ac): ... to here.
13262
13263 2011-05-07  Bruno Haible  <bruno@clisp.org>
13264
13265         fpending: Move AC_LIBOBJ invocations to module description.
13266         * m4/fpending.m4 (gl_PREREQ_FPENDING): New macro, extracted from
13267         gl_FUNC_FPENDING.
13268         (gl_FUNC_FPENDING): Move AC_LIBOBJ and gl_PREREQ_FPENDING
13269         invocations from here...
13270         * modules/fpending (configure.ac): ... to here.
13271
13272 2011-05-07  Bruno Haible  <bruno@clisp.org>
13273
13274         fopen: Move AC_LIBOBJ invocations to module description.
13275         * m4/fopen.m4 (gl_FUNC_FOPEN): Move AC_LIBOBJ and gl_PREREQ_FOPEN
13276         invocations from here...
13277         * modules/fopen (configure.ac): ... to here.
13278
13279 2011-05-07  Bruno Haible  <bruno@clisp.org>
13280
13281         fnmatch, fnmatch-gnu: Move AC_LIBOBJ invocations to module description.
13282         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH): New macro, extracted from
13283         gl_FUNC_FNMATCH_POSIX.
13284         (gl_FUNC_FNMATCH_POSIX): Move AC_LIBOBJ and gl_PREREQ_FNMATCH
13285         invocations from here...
13286         * modules/fnmatch (configure.ac): ... to here.
13287         * modules/fnmatch-gnu (configure.ac): ... and here.
13288
13289 2011-05-07  Bruno Haible  <bruno@clisp.org>
13290
13291         flock: Move AC_LIBOBJ invocations to module description.
13292         * m4/flock.m4 (gl_FUNC_FLOCK): Move AC_LIBOBJ and gl_PREREQ_FLOCK
13293         invocations from here...
13294         * modules/flock (configure.ac): ... to here.
13295
13296 2011-05-07  Bruno Haible  <bruno@clisp.org>
13297
13298         fileblocks: Move AC_LIBOBJ invocations to module description.
13299         * m4/fileblocks.m4 (gl_FILEBLOCKS): Move AC_LIBOBJ and
13300         gl_PREREQ_FILEBLOCKS invocations from here...
13301         * modules/fileblocks (configure.ac): ... to here.
13302
13303 2011-05-06  Bruno Haible  <bruno@clisp.org>
13304
13305         fflush: Move AC_LIBOBJ invocations to module description.
13306         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Remove macro.
13307         (gl_FUNC_FFLUSH): Inline it here. Move AC_LIBOBJ and gl_PREREQ_FFLUSH
13308         invocations from here...
13309         * modules/fflush (configure.ac): ... to here.
13310
13311 2011-05-06  Bruno Haible  <bruno@clisp.org>
13312
13313         fdopendir: Move AC_LIBOBJ invocations to module description.
13314         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Move AC_LIBOBJ invocations from
13315         here...
13316         * modules/fdopendir (configure.ac): ... to here.
13317         (Depends-on): Improve conditions.
13318
13319 2011-05-06  Bruno Haible  <bruno@clisp.org>
13320
13321         _Exit: Move AC_LIBOBJ invocations to module description.
13322         * m4/_Exit.m4 (gl_FUNC__EXIT): Move AC_LIBOBJ and gl_PREREQ__EXIT
13323         invocations from here...
13324         * modules/_Exit (configure.ac): ... to here.
13325
13326 2011-05-21  Bruno Haible  <bruno@clisp.org>
13327
13328         euidaccess: Respect rules for use of AC_LIBOBJ.
13329         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Call AC_CHECK_FUNCS instead of
13330         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_EUIDACCESS invocations
13331         from here...
13332         * modules/euidaccess (configure.ac): ... to here.
13333
13334 2011-05-06  Bruno Haible  <bruno@clisp.org>
13335
13336         error: Move AC_LIBOBJ invocations to module description.
13337         * m4/error.m4 (gl_ERROR): Inline AC_FUNC_ERROR_AT_LINE. Remove
13338         AC_LIBSOURCES invocation. Move AC_LIBOBJ and gl_PREREQ_ERROR
13339         invocations from here...
13340         * modules/error (configure.ac): ... to here.
13341
13342 2011-05-06  Bruno Haible  <bruno@clisp.org>
13343
13344         duplocale: Move AC_LIBOBJ invocations to module description.
13345         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Move AC_LIBOBJ and
13346         gl_PREREQ_DUPLOCALE invocations from here...
13347         * modules/duplocale (configure.ac): ... to here.
13348
13349 2011-05-05  Bruno Haible  <bruno@clisp.org>
13350
13351         dirfd: Move AC_LIBOBJ invocations to module description.
13352         * m4/dirfd.m4 (gl_PREREQ_DIRFD): New macro, extracted from
13353         gl_FUNC_DIRFD.
13354         (gl_FUNC_DIRFD): Move AC_LIBOBJ and gl_PREREQ_DIRFD invocations from
13355         here...
13356         * modules/dirfd (configure.ac): ... to here.
13357         (Depends-on): Fix condition.
13358
13359 2011-05-05  Bruno Haible  <bruno@clisp.org>
13360
13361         chown: Respect rules for use of AC_LIBOBJ.
13362         * m4/chown.m4 (gl_FUNC_CHOWN): Move AC_LIBOBJ invocations from here...
13363         * modules/chown (configure.ac): ... to here.
13364
13365 2011-05-05  Bruno Haible  <bruno@clisp.org>
13366
13367         chdir-long: Move AC_LIBOBJ invocations to module description.
13368         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Move AC_LIBOBJ and
13369         gl_PREREQ_CHDIR_LONG invocations from here...
13370         * modules/chdir-long (configure.ac): ... to here.
13371
13372 2011-05-05  Bruno Haible  <bruno@clisp.org>
13373
13374         canonicalize-lgpl: Move AC_LIBOBJ invocations to module description.
13375         * m4/canonicalize.m4 (gl_CANONICALIZE_LGPL): Move AC_LIBOBJ invocation
13376         from here...
13377         * modules/canonicalize-lgpl (configure.ac): ... to here.
13378
13379 2011-05-05  Bruno Haible  <bruno@clisp.org>
13380
13381         calloc-posix, calloc-gnu: Move AC_LIBOBJs to module description.
13382         * m4/calloc.m4 (gl_REPLACE_CALLOC): Remove macro.
13383         (gl_FUNC_CALLOC_GNU, gl_FUNC_CALLOC_POSIX): Instead, just set
13384         REPLACE_CALLOC.
13385         * modules/calloc-posix (configure.ac): Invoke AC_LIBOBJ here.
13386         * modules/calloc-gnu (configure.ac): Likewise.
13387
13388 2011-05-05  Bruno Haible  <bruno@clisp.org>
13389
13390         btowc: Move AC_LIBOBJ invocations to module description.
13391         * m4/btowc.m4 (gl_FUNC_BTOWC): Move AC_LIBOBJ and gl_PREREQ_BTOWC
13392         invocations from here...
13393         * modules/btowc (configure.ac): ... to here.
13394
13395 2011-05-21  Bruno Haible  <bruno@clisp.org>
13396
13397         atexit: Move AC_LIBOBJ invocations to module description.
13398         * m4/atexit.m4 (gl_FUNC_ATEXIT): Call AC_CHECK_FUNCS instead of
13399         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_ATEXIT invocations from
13400         here...
13401         * modules/atexit (configure.ac): ... to here.
13402
13403 2011-05-05  Bruno Haible  <bruno@clisp.org>
13404
13405         atoll: Move AC_LIBOBJ invocations to module description.
13406         * m4/atoll.m4 (gl_FUNC_ATOLL): Move AC_LIBOBJ and gl_PREREQ_ATOLL
13407         invocations from here...
13408         * modules/atoll (configure.ac): ... to here.
13409
13410 2011-05-05  Bruno Haible  <bruno@clisp.org>
13411
13412         argz: Move AC_LIBOBJ invocations to module description.
13413         * m4/argz.m4 (gl_FUNC_ARGZ): Move AC_LIBOBJ invocation from here...
13414         * modules/argz (configure.ac): ... to here.
13415
13416 2011-05-05  Bruno Haible  <bruno@clisp.org>
13417
13418         alphasort: Move AC_LIBOBJ invocations to module description.
13419         * m4/alphasort.m4 (gl_FUNC_ALPHASORT): Move AC_LIBOBJ and
13420         gl_PREREQ_ALPHASORT invocations from here...
13421         * modules/alphasort (configure.ac): ... to here.
13422
13423 2011-06-15  Paul Eggert  <eggert@cs.ucla.edu>
13424
13425         verify: new macro verify_expr; verify_true deprecated
13426         * NEWS: Mention this.
13427         * doc/verify.texi (Compile-time Assertions): Document this.
13428         * lib/verify.h (verify_true): Deprecate.
13429         (verify_expr): New macro.
13430         * tests/test-verify.c (function): Test verify_expr.
13431
13432 2011-06-14  Jim Meyering  <meyering@redhat.com>
13433
13434         init.sh: give more portable redirection-related advice in a comment
13435         * tests/init.sh (stderr_fileno_): Update the advice in comments.
13436         See http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/22488
13437         for lots of discussion.  Stefano Lattarini suggested the solution
13438         of putting "9>&2" after the command.  Reported by Bruno Haible.
13439
13440 2011-06-13  Bruno Haible  <bruno@clisp.org>
13441
13442         locale-zh: Reject zh_CN.GB18030 locale on Solaris 8.
13443         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): On Solaris 8, set LOCALE_ZH_CN to
13444         'none'.
13445
13446 2011-06-13  Paul Eggert  <eggert@cs.ucla.edu>
13447
13448         ftoastr: use strtof only if HAVE_STRTOF
13449         This is needed on HP-UX 11.11 with GCC 4.2.4; see Bruno Haible's report
13450         <http://lists.gnu.org/archive/html/bug-gnulib/2011-06/msg00154.html>.
13451         * lib/ftoastr.c (STRTOF) [LENGTH == 1]: Use strtof only if HAVE_STRTOF.
13452         * modules/ftoastr (configure.ac): Check for strtof.
13453
13454 2011-06-13  Bruno Haible  <bruno@clisp.org>
13455
13456         gnulib-tool: Addendum to 2011-06-08 commit.
13457         * gnulib-tool (func_emit_lib_Makefile_am): If options --makefile-name
13458         and --witness-c-macro have been given, augment AM_CPPFLAGS.
13459
13460 2011-06-13  Bruno Haible  <bruno@clisp.org>
13461
13462         fseeko: Provide a non-inline replacement of fseek().
13463         * lib/stdio.in.h (fseek): Don't provide if module 'fseek' is not used.
13464         * modules/fseeko (Depends-on): Add fseek.
13465         * modules/fseek (License): Change to LGPLv2+.
13466
13467 2011-06-13  Bruno Haible  <bruno@clisp.org>
13468
13469         ftello: Provide a non-inline replacement of ftell().
13470         * lib/stdio.in.h (ftell): Don't provide if module 'ftell' is not used.
13471         * m4/ftell.m4 (gl_FUNC_FTELL): Replace ftell also if the system does
13472         not have ftello() (such as on mingw).
13473         * modules/ftello (Depends-on): Add ftell.
13474         * modules/ftell (License): Change to LGPLv2+.
13475
13476 2011-05-07  Bruno Haible  <bruno@clisp.org>
13477
13478         ftell: Move AC_LIBOBJ invocations to module description.
13479         * m4/ftell.m4 (gl_FUNC_FTELL): Move AC_LIBOBJ invocation from here...
13480         * modules/ftell (configure.ac): ... to here.
13481
13482 2011-05-07  Bruno Haible  <bruno@clisp.org>
13483
13484         ftello: Respect rules for use of AC_LIBOBJ.
13485         * m4/ftello.m4 (gl_REPLACE_FTELLO): Remove macro.
13486         (gl_FUNC_FTELLO): Inline it here. Move AC_LIBOBJ invocation from
13487         here...
13488         * modules/ftello (configure.ac): ... to here.
13489
13490 2011-05-07  Bruno Haible  <bruno@clisp.org>
13491
13492         fseeko: Simplify.
13493         * m4/fseeko.m4 (gl_HAVE_FSEEKO): Remove macro.
13494         (gl_FUNC_FSEEKO): Inline it here.
13495
13496 2011-05-07  Bruno Haible  <bruno@clisp.org>
13497
13498         fseek: Move AC_LIBOBJ invocations to module description.
13499         * m4/fseek.m4 (gl_REPLACE_FSEEK): Remove macro.
13500         (gl_FUNC_FSEEK): Inline it here. Move AC_LIBOBJ invocation from here...
13501         * modules/fseek (configure.ac): ... to here.
13502
13503 2011-05-07  Bruno Haible  <bruno@clisp.org>
13504
13505         fseek: Respect rules for use of AC_LIBOBJ.
13506         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Move gl_REPLACE_FSEEK invocation from
13507         here...
13508         * m4/fseek.m4 (gl_FUNC_FSEEK): ... to here.
13509
13510 2011-05-07  Bruno Haible  <bruno@clisp.org>
13511
13512         fseeko: Respect rules for use of AC_LIBOBJ.
13513         * m4/fseeko.m4 (gl_REPLACE_FSEEKO): Remove macro.
13514         (gl_FUNC_FSEEKO): Inline it here. Move AC_LIBOBJ invocation from
13515         here...
13516         * modules/fseeko (configure.ac): ... to here.
13517
13518 2011-06-13  Bruno Haible  <bruno@clisp.org>
13519
13520         gnulib-tool: Allow comments in the 'Depends-on' section.
13521         * doc/gnulib.texi (Module description): Mention comment syntax in the
13522         Depends-on section.
13523         * gnulib-tool (func_get_dependencies): Filter out comment lines.
13524
13525 2011-06-13  Bruno Haible  <bruno@clisp.org>
13526
13527         file-set.h: guard __attibute__ use, now that it's not always defined
13528         * lib/file-set.h (record_file): Use __attribute__ only with compiler
13529         versions that support it.  This fixes a coreutils build failure with
13530         the vendor cc on HP-UX 11.31.
13531
13532 2011-06-12  Bruno Haible  <bruno@clisp.org>
13533
13534         acl: Add support for HP-UX >= 11.11 JFS ACLs.
13535         * doc/acl-resources.txt: Add info about the ACL APIs on HP-UX.
13536         * m4/acl.m4 (gl_FUNC_ACL): Also test for HP-UX 11.11 API.
13537         * lib/acl-internal.h [HP-UX 11.11]: Include <aclv.h>.
13538         (acl, aclsort): New declarations.
13539         (aclv_nontrivial): New declaration.
13540         * lib/file-has-acl.c (aclv_nontrivial) [HP-UX 11.11]: New function.
13541         (file_has_acl): Read also the second kind of HP-UX ACLs.
13542         * lib/set-mode-acl.c (qset_acl) [HP-UX 11.11]: Try to set the second
13543         kind of HP-UX ACLs if the first kind fails.
13544         * lib/copy-acl.c (qcopy_acl) [HP-UX 11.11]: Read and set also the
13545         second kind of HP-UX ACLs.
13546         * tests/test-sameacls.c [HP-UX 11.11]: Include <aclv.h>.
13547         (main) [HP-UX 11.11]: Test also whether the second kind of HP-UX ACLs
13548         agree.
13549         * tests/test-file-has-acl.sh (acl_flavor) [HP-UX 11.11]: Set to
13550         hpuxjfs.
13551         Handle hpuxjfs.
13552         * tests/test-set-mode-acl.sh (acl_flavor) [HP-UX 11.11]: Set to
13553         hpuxjfs.
13554         Handle hpuxjfs.
13555         * tests/test-copy-acl.sh (acl_flavor) [HP-UX 11.11]: Set to hpuxjfs.
13556         (func_test_same_acls): Use both lsacl and getacl.
13557         Handle hpuxjfs.
13558         * tests/test-copy-file.sh (acl_flavor) [HP-UX 11.11]: Set to hpuxjfs.
13559         (func_test_same_acls): Use both lsacl and getacl.
13560         Handle hpuxjfs.
13561
13562 2011-06-12  Bruno Haible  <bruno@clisp.org>
13563
13564         acl: Complete the 2010-08-10 fix.
13565         * lib/file-has-acl.c (file_has_acl) [HP-UX]: Also test against ENOTSUP.
13566         * lib/set-mode-acl.c (qset_acl) [HP-UX]: Likewise.
13567         * lib/copy-acl.c (qcopy_acl) [HP-UX]: Test for the errno values
13568         explicitly.
13569         * tests/test-sameacls.c (main) [HP-UX]: Also test against ENOTSUP.
13570         Reported in <http://debbugs.gnu.org/db/60/6053.html>.
13571
13572 2011-06-12  Bruno Haible  <bruno@clisp.org>
13573
13574         spawn-pipe tests: Comments.
13575         * tests/test-spawn-pipe-child.c (main): Update comment.
13576         Reported by James Youngman <jay@gnu.org>.
13577
13578 2011-06-11  James Youngman  <jay@gnu.org>
13579
13580         New module 'stat-size'.
13581         * modules/stat-size: New module.  Provides macros for accessing
13582         file size information in instances of struct stat.  Depends on the
13583         fileblocks module because it calls st_blocks.
13584         * lib/stat-size.h: New file, adapted from coreutils' system.h.
13585         * doc/gnulib.texi: Include stat-size.texi.
13586         * doc/stat-size.texi: Documentation for this module.
13587         * m4/stat-size.m4: New file; defines gl_STAT_SIZE.
13588         * m4/fileblocks.m4: Mention that stat-size depends on the call to
13589         AC_STRUCT_ST_BLOCKS.
13590
13591 2011-06-09  Bruno Haible  <bruno@clisp.org>
13592
13593         thread: Support pthreads-win32.
13594         * lib/glthread/thread.h (gl_thread_self): Define differently on
13595         pthreads-win32.
13596         (gl_null_thread): New declaration.
13597         (gl_thread_self_pointer): New macro.
13598         * lib/glthread/thread.c (gl_null_thread): New constant.
13599         * tests/test-lock.c: Use gl_thread_self_pointer instead of
13600         gl_thread_self.
13601         * tests/test-tls.c: Likewise.
13602         Suggested by Paul Eggert. Reported by Eric Blake.
13603
13604 2011-06-09  Bruno Haible  <bruno@clisp.org>
13605
13606         thread: Fix confusion between NULL and 0.
13607         * lib/glthread/thread.h (gl_thread_self): Use NULL and 0 appropriately.
13608         Reported by Paul Eggert.
13609
13610 2011-06-09  Bruno Haible  <bruno@clisp.org>
13611
13612         spawn-pipe tests: Avoid test failure on HP-UX 11.
13613         * tests/test-spawn-pipe-child.c (main) [HP-UX]: Don't assert that fd 2
13614         is closed.
13615
13616 2011-06-09  Bruno Haible  <bruno@clisp.org>
13617
13618         acl tests: Fix compilation error on HP-UX 11.
13619         * tests/test-sameacls.c: Include <sys/acl.h> also on HP-UX.
13620
13621 2011-06-09  Bruno Haible  <bruno@clisp.org>
13622
13623         rmdir: Avoid test failure on HP-UX 10.20.
13624         * tests/test-rmdir.h (test_rmdir_func): Accept ENOTEMPTY error, like
13625         EEXIST.
13626
13627 2011-06-08  Eric Blake  <eblake@redhat.com>
13628
13629         perror: fix test on mingw
13630         * modules/perror-tests (Depends-on): Add dup2.
13631
13632         strerror_r-posix: fix on MacOS
13633         * m4/strerror.m4 (gl_FUNC_STRERROR): Flush out MacOS bug.
13634         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R_WORKS): Likewise, and fix
13635         logic bug.
13636         * lib/strerror_r.c (strerror_r): Fix the bug.
13637         * lib/strerror.c (strerror): Likewise.
13638         * doc/posix-functions/strerror_r.texi (strerror_r): Document the
13639         problem.
13640         * doc/posix-functions/strerror.texi (strerror): Likewise.
13641         * doc/posix-functions/perror.texi (perror): Likewise.
13642         * tests/test-strerror.c (main): Enhance test.
13643         * tests/test-strerror_r.c (main): Likewise.
13644
13645 2011-06-08  Bruno Haible  <bruno@clisp.org>
13646
13647         gnulib-tool: Better isolation between different gnulib-tool invocations.
13648         * gnulib-tool: New option --witness-c-macro.
13649         (witness_c_macro): New variable.
13650         (func_emit_lib_Makefile_am): If --witness-c-macro was specified, let
13651         AM_CPPFLAGS define it as a C macro.
13652         (func_emit_tests_Makefile_am): Likewise.
13653         (func_import): Store witness_c_macro setting in gnulib-cache.m4 and
13654         read it from there.
13655         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_CONDITION): Define through
13656         m4_define, not AC_DEFUN.
13657         (gl_MODULE_INDICATOR_SET_VARIABLE_AUX,
13658         gl_MODULE_INDICATOR_SET_VARIABLE_AUX_OR): New macros.
13659         (gl_MODULE_INDICATOR_SET_VARIABLE): Use them.
13660         * modules/arpa_inet (Makefile.am): Use sed expression s/.../.../, not
13661         s|...|...|, to substitute the values of the GNULIB_* module indicator
13662         variables.
13663         * modules/dirent (Makefile.am): Likewise.
13664         * modules/fcntl-h (Makefile.am): Likewise.
13665         * modules/iconv-h (Makefile.am): Likewise.
13666         * modules/langinfo (Makefile.am): Likewise.
13667         * modules/locale (Makefile.am): Likewise.
13668         * modules/math (Makefile.am): Likewise.
13669         * modules/netdb (Makefile.am): Likewise.
13670         * modules/poll-h (Makefile.am): Likewise.
13671         * modules/pty (Makefile.am): Likewise.
13672         * modules/search (Makefile.am): Likewise.
13673         * modules/signal (Makefile.am): Likewise.
13674         * modules/spawn (Makefile.am): Likewise.
13675         * modules/stdio (Makefile.am): Likewise.
13676         * modules/stdlib (Makefile.am): Likewise.
13677         * modules/string (Makefile.am): Likewise.
13678         * modules/sys_ioctl (Makefile.am): Likewise.
13679         * modules/sys_select (Makefile.am): Likewise.
13680         * modules/sys_socket (Makefile.am): Likewise.
13681         * modules/sys_stat (Makefile.am): Likewise.
13682         * modules/sys_times (Makefile.am): Likewise.
13683         * modules/sys_utsname (Makefile.am): Likewise.
13684         * modules/sys_wait (Makefile.am): Likewise.
13685         * modules/termios (Makefile.am): Likewise.
13686         * modules/time (Makefile.am): Likewise.
13687         * modules/unistd (Makefile.am): Likewise.
13688         * modules/wchar (Makefile.am): Likewise.
13689
13690 2011-06-08  Eric Blake  <eblake@redhat.com>
13691
13692         strerror: simplify replacement
13693         * m4/strerror.m4 (gl_PREREQ_STRERROR): Delete.
13694         * modules/strerror (configure.ac): No prereqs needed here...
13695         * modules/strerror-override (configure.ac): ...but this needs it.
13696         (Files): Add file for needed prereq macro.
13697
13698 2011-06-08  Bruno Haible  <bruno@clisp.org>
13699
13700         strerror_r-posix: Tweaks.
13701         * m4/strerror.m4 (gl_FUNC_STRERROR): Omit the code that tests
13702         gl_cv_func_strerror_r_works if gl_FUNC_STRERROR_R_WORKS is not present.
13703         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R_WORKS): Fix AC_CACHE_CHECK
13704         message. Move gl_HEADER_STRING_H_DEFAULTS invocation from here...
13705         (gl_FUNC_STRERROR_R): ... to here.
13706         (gl_PREREQ_STRERROR_R): Test for __xpg_strerror_r.
13707
13708 2011-06-07  Eric Blake  <eblake@redhat.com>
13709
13710         perror: document fixed bugs
13711         * doc/posix-functions/perror.texi (perror): Document recent
13712         patches.
13713
13714 2011-06-07  Paul Eggert  <eggert@cs.ucla.edu>
13715
13716         stat-time: get_stat_birthtime failure is better-defined
13717         * lib/stat-time.h (get_stat_birthtime): If the time is not available,
13718         return a timestamp whose tv_sec and tv_nsec values are both -1.
13719         Previously, the spec said only that the tv_nsec value was negative.
13720         This upward-compatible change simplifies GNU tar a bit.
13721
13722 2011-06-07  Eric Blake  <eblake@redhat.com>
13723
13724         strerror_r-posix: work around cygwin 1.7.9
13725         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Split...
13726         (gl_FUNC_STRERROR_R_WORKS): ...into new macro, to detect Cygwin
13727         bug without replacing strerror_r.
13728         * m4/strerror.m4 (gl_FUNC_STRERROR): Replace strerror if
13729         strerror_r is buggy, but without requiring strerror_r compilation.
13730         * doc/posix-functions/strerror_r.texi (strerror_r): Fix docs.
13731
13732         test-perror: relax test to ignore cygwin bug
13733         * tests/test-perror2.c (main): Relax test on requiring detection
13734         of stream errors, and use unbuffered stream.
13735         * doc/posix-functions/dprintf.texi (dprintf): Document bug.
13736         * doc/posix-functions/fprintf.texi (fprintf): Likewise.
13737         * doc/posix-functions/fputc.texi (fputc): Likewise.
13738         * doc/posix-functions/fputs.texi (fputs): Likewise.
13739         * doc/posix-functions/fputws.texi (fputws): Likewise.
13740         * doc/posix-functions/fwprintf.texi (fwprintf): Likewise.
13741         * doc/posix-functions/fwrite.texi (fwrite): Likewise.
13742         * doc/posix-functions/getopt.texi (getopt): Likewise.
13743         * doc/posix-functions/perror.texi (perror): Likewise.
13744         * doc/posix-functions/printf.texi (printf): Likewise.
13745         * doc/posix-functions/psiginfo.texi (psiginfo): Likewise.
13746         * doc/posix-functions/psignal.texi (psignal): Likewise.
13747         * doc/posix-functions/putc.texi (putc): Likewise.
13748         * doc/posix-functions/putc_unlocked.texi (putc_unlocked):
13749         Likewise.
13750         * doc/posix-functions/putchar.texi (putchar): Likewise.
13751         * doc/posix-functions/putchar_unlocked.texi (putchar_unlocked):
13752         Likewise.
13753         * doc/posix-functions/puts.texi (puts): Likewise.
13754         * doc/posix-functions/putwc.texi (putwc): Likewise.
13755         * doc/posix-functions/putwchar.texi (putwchar): Likewise.
13756         * doc/posix-functions/vdprintf.texi (vdprintf): Likewise.
13757         * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
13758         * doc/posix-functions/vfwprintf.texi (vfwprintf): Likewise.
13759         * doc/posix-functions/vprintf.texi (vprintf): Likewise.
13760         * doc/posix-functions/vwprintf.texi (vwprintf): Likewise.
13761         * doc/posix-functions/wordexp.texi (wordexp): Likewise.
13762         * doc/posix-functions/wprintf.texi (wprintf): Likewise.
13763
13764 2011-05-22  Bruno Haible  <bruno@clisp.org>
13765
13766         strerror: Move AC_LIBOBJ invocations to module description.
13767         * m4/strerror.m4 (gl_FUNC_STRERROR): Move AC_LIBOBJ and
13768         gl_PREREQ_STRERROR invocations from here...
13769         * modules/strerror (configure.ac): ... to here.
13770
13771 2011-05-21  Bruno Haible  <bruno@clisp.org>
13772
13773         perror: Use common idiom.
13774         * modules/perror (configure.ac): Reorder statements.
13775
13776 2011-06-07  Stefano Lattarini  <stefano.lattarini@gmail.com>
13777
13778         tests: fix usage message in 'mktempd_'
13779         * tests/init.sh (mktempd_): In the usage message, use literal
13780         'mktempd_', not '$ME' (which is even undefined), as the name of
13781         the subroutine.
13782
13783 2011-06-07  Stefano Lattarini  <stefano.lattarini@gmail.com>
13784
13785         tests init: new function 'fatal_', for hard errors
13786         Before this patch, the only way offered by tests/init.sh to
13787         properly signal a hard error was the `framework_failure_'
13788         function.  But the error message issued by that function,
13789         as its name would suggest, refers to a set-up failure in the
13790         testsuite, while hard errors can obviously also be due to
13791         other reasons.  The best way to fix this inconsistency is to
13792         introduce a new function with a more general error message.
13793         * tests/init.sh (fatal_): New function.
13794
13795 2011-06-06  Eric Blake  <eblake@redhat.com>
13796
13797         canonicalize-lgpl: use common idiom
13798         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Prefer older rm -rf
13799         over newer POSIX -Rf.
13800         Reported by Bruno Haible.
13801
13802         canonicalize-lgpl: work around AIX realpath bug
13803         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Expose AIX bug.
13804         * doc/posix-functions/realpath.texi (realpath): Document it.
13805         Reported by Bruno Haible.
13806
13807         strerror: work around FreeBSD bug
13808         * lib/strerror.c (strerror): Special case 0.
13809         Reported by Bruno Haible.
13810
13811         strerror-override: avoid bloating errno module
13812         * modules/errno (Files, configure.ac): Move replacement strings...
13813         * modules/strerror-override: ...to new module.
13814         * modules/strerror (Depends-on): Add strerror-override.
13815         * modules/strerror_r-posix (Depends-on): Likewise.
13816         * MODULES.html.sh: Document new module.
13817         Reported by Bruno Haible.
13818
13819 2011-06-06  Bruno Haible  <bruno@clisp.org>
13820
13821         spawn-pipe tests: Rename program.
13822         * tests/test-spawn-pipe-main.c: Renamed from tests/test-spawn-pipe.c.
13823         * tests/test-spawn-pipe-child.c: Update comment.
13824         * tests/test-spawn-pipe.sh: Update.
13825         * modules/spawn-pipe-tests (Files, Makefile.am): Update.
13826
13827         spawn-pipe tests: Link the child program only against libc.
13828         * tests/test-spawn-pipe-child.c: New file, extracted from
13829         tests/test-spawn-pipe.c.
13830         (main): Expect only one argument.
13831         (is_open): New function, copied from tests/test-pipe.c.
13832         * tests/test-spawn-pipe.c: Don't include <errno.h>.
13833         (child_main): Remove function.
13834         (test_pipe): Pass only one argument to the child program.
13835         (main): Remove child process code. Expect the child program's name as
13836         first argument.
13837         * tests/test-spawn-pipe.sh: Pass the child program's name as first
13838         argument.
13839         * modules/spawn-pipe-tests (Files): Add tests/test-spawn-pipe-child.c.
13840         (Makefile.am): Add test-spawn-pipe-child to check_PROGRAMS. Link
13841         test-spawn-pipe-child against no libraries.
13842
13843 2011-06-06  Bruno Haible  <bruno@clisp.org>
13844
13845         careadlinkat: Avoid mismatch between ssize_t and int.
13846         * lib/careadlinkat.h (careadlinkatcwd): Declare as a function always.
13847         * lib/careadlinkat.c (careadlinkatcwd): Define always.
13848
13849 2011-06-06  Jim Meyering  <meyering@redhat.com>
13850
13851         gnulib-common.m4: add _GL_ATTRIBUTE_CONST and _GL_ATTRIBUTE_PURE
13852         * m4/gnulib-common.m4 (gl_COMMON): Emit definitions of
13853         _GL_ATTRIBUTE_CONST and _GL_ATTRIBUTE_PURE.
13854
13855 2011-06-05  Bruno Haible  <bruno@clisp.org>
13856
13857         ansi-c++-opt: Interoperability with libtool.
13858         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): When a C++ compiler is not found,
13859         set the variable to "no", not to ":".
13860         * NEWS: Mention the change.
13861
13862 2011-06-05  Bruno Haible  <bruno@clisp.org>
13863
13864         acl: Fix test failure on AIX 7.
13865         * tests/test-sameacls.c (main) [AIX]: Fix aclx_printStr invocation.
13866         Based on a patch by Jørn Amundsen <Jorn.Amundsen@ntnu.no>.
13867
13868 2011-06-05  Bruno Haible  <bruno@clisp.org>
13869
13870         pipe-filter-ii: Fix test failure on AIX and IRIX.
13871         * lib/pipe-filter-ii.c (pipe_filter_ii_execute): When write() fails
13872         with EAGAIN, retry with a smaller buffer size.
13873
13874 2011-06-05  Bruno Haible  <bruno@clisp.org>
13875
13876         localename: Fix link dependencies.
13877         * modules/localename (Link): Mention $(LIBTHREAD) or $(LTLIBTHREAD).
13878         * modules/localename-tests (Makefile.am): Link test-localename with
13879         $(LIBTHREAD).
13880
13881 2011-06-05  Bruno Haible  <bruno@clisp.org>
13882
13883         error: Avoid gcc warning.
13884         * lib/error.c (strerror_r): Declare also when its return type is 'int'.
13885
13886 2011-06-05  Bruno Haible  <bruno@clisp.org>
13887
13888         unsetenv: Avoid gcc warning.
13889         * lib/unsetenv.c (unsetenv): Provide declaration if system lacks it.
13890
13891 2011-06-05  Bruno Haible  <bruno@clisp.org>
13892
13893         setenv: Avoid gcc warning.
13894         * lib/setenv.c (setenv): Provide declaration if system lacks it.
13895
13896 2011-06-05  Bruno Haible  <bruno@clisp.org>
13897
13898         sys_select: Ensure memset is declared also on AIX 7.
13899         * lib/sys_select.in.h: Include <string.h> also on AIX.
13900         * doc/posix-headers/sys_select.texi: Mention that <sys/select.h> is not
13901         self-contained also on AIX 7.1.
13902
13903 2011-06-04  Jim Meyering  <meyering@redhat.com>
13904
13905         maint.mk: sc_unmarked_diagnostics: don't hard-code "error"
13906         * top/maint.mk (sc_unmarked_diagnostics): Don't hard-code the
13907         function name, "error".
13908         (_gl_translatable_diag_func_re): New configurable variable.
13909
13910 2011-06-04  Bruno Haible  <bruno@clisp.org>
13911
13912         getopt: Avoid gcc warning.
13913         * lib/getopt.c (_getopt_internal_r): Remove unused variable 'ambig'.
13914
13915 2011-06-04  Bruno Haible  <bruno@clisp.org>
13916
13917         strerror_r: Fix comments.
13918         * lib/strerror_r.c (strerror_r): Update comments after 2011-06-01
13919         commit.
13920
13921 2011-06-04  Bruno Haible  <bruno@clisp.org>
13922
13923         perror: Fix compilation error.
13924         * lib/perror.c: Don't include intprops.h, verify.h, strerror-impl.h.
13925         Undefine fprintf, not sprintf.
13926         * modules/perror (Depends-on): Remove intprops, verify.
13927
13928 2011-06-04  Bruno Haible  <bruno@clisp.org>
13929
13930         setlocale: Enable replacement on Cygwin 1.5.
13931         * m4/setlocale.m4 (gl_FUNC_SETLOCALE): Set REPLACE_SETLOCALE also on
13932         Cygwin 1.5.x.
13933         * doc/posix-functions/setlocale.texi: Mention that the problem with the
13934         LC_CTYPE category also exists on Cygwin 1.5.x.
13935
13936 2011-06-04  Bruno Haible  <bruno@clisp.org>
13937
13938         strerror-override: Don't disable symbol renamings.
13939         * lib/strerror-override.h: Include errno.h and stddef.h, not string.h.
13940         * lib/strerror-override.c: Include config.h.
13941         (strerror_override): Don't undefine.
13942
13943 2011-06-03  Bruno Haible  <bruno@clisp.org>
13944
13945         Copyright: Use LGPL 2.1 instead of LGPL 2.0.
13946         * lib/localename.h: Update copyright header.
13947         * lib/localename.c: Likewise.
13948         * lib/relocatable.h: Likewise.
13949         * lib/relocatable.c: Likewise.
13950
13951 2011-06-02  Bruno Haible  <bruno@clisp.org>
13952
13953         doc: Fix a module name.
13954         * doc/posix-functions/open.texi: Fix module name 'nonblocking'.
13955
13956 2011-06-02  Bruno Haible  <bruno@clisp.org>
13957
13958         pipe2: Remove dependency on 'nonblocking' module.
13959         * lib/pipe2.c: Include verify.h. Include nonblocking.h only if
13960         O_NONBLOCK is defined by gnulib.
13961         (pipe2) [WIN32]: If O_NONBLOCK is not defined by gnulib, verify that it
13962         is zero.
13963         * modules/pipe2 (Depends-on): Add verify. Remove nonblocking.
13964         * tests/test-pipe2.c: Include nonblocking.h only if O_NONBLOCK is
13965         defined by gnulib.
13966         (get_nonblocking_flag): New function.
13967         (main): Test O_NONBLOCK flag only if it is nonzero.
13968         * doc/glibc-functions/pipe2.texi: Mention the 'nonblocking' module.
13969
13970 2011-06-03  Jim Meyering  <meyering@redhat.com>
13971
13972         maint: three new prohibit-header-without-use rules
13973         Prohibit use of cloexec.h, posixver.h, same.h without use.
13974         * top/maint.mk (sc_prohibit_cloexec_without_use): New rule.
13975         (sc_prohibit_posixver_without_use): Likewise.
13976         (sc_prohibit_same_without_use): Likewise.
13977
13978 2011-06-02  Paul Eggert  <eggert@cs.ucla.edu>
13979
13980         allocator: 'die' routine is now given requested size
13981         * lib/allocator.h (struct allocator.die): New size arg.
13982         * lib/careadlinkat.c (careadlinkat): Pass size to 'die' function.
13983         If the actual problem is an ssize_t limitation, not a size_t or
13984         malloc failure, fail with errno==ENAMETOOLONG instead of calling 'die'.
13985
13986 2011-06-01  Eric Blake  <eblake@redhat.com>
13987
13988         strerror: drop strerror_r dependency
13989         * lib/strerror_r.c (strerror_r): Move gnulib replacement strings...
13990         * lib/strerror-override.c (strerror_override): ...to new file.
13991         * lib/strerror-override.h: Add prototype.
13992         * lib/strerror-impl.h: Delete.
13993         * lib/strerror.c (strerror): New implementation.
13994         * modules/errno (Files): Add new files.
13995         (configure.ac): Compile new file as appropriate.
13996         * modules/strerror (Files): Drop unused file.
13997         (Depends-on): Drop strerror_r-posix.
13998         * MODULES.html.sh: Document strerror_r-posix.
13999         Requested by Sam Steingold.
14000
14001         perror: call strerror_r directly
14002         * modules/perror (Files): Drop strerror-impl.h.
14003         * lib/perror.c (perror): Use our own stack buffer, rather than
14004         calling a wrapper that uses static storage.
14005         * doc/posix-functions/perror.texi (perror): Document a limitation
14006         of our replacement.
14007
14008         strerror_r: fix includes for FreeBSD
14009         * lib/strerror_r.c (includes): Use <stdlib.h> unconditionally,
14010         since we use abort on some platforms.
14011         Reported by Matthias Bolte.
14012
14013 2011-05-31  Bruno Haible  <bruno@clisp.org>
14014
14015         Fix link errors in tests: openat-die uses gettext-h.
14016         * modules/areadlinkat-tests (Makefile.am): Link test-areadlinkat
14017         against $(LIBINTL).
14018         * modules/dirent-safer-tests (Makefile.am): Link test-dirent-safer
14019         against $(LIBINTL).
14020         * modules/fdopendir-tests (Makefile.am): Link test-fdopendir against
14021         $(LIBINTL).
14022         * modules/fdutimensat-tests (Makefile.am): Link test-fdutimensat
14023         against $(LIBINTL).
14024         * modules/linkat-tests (Makefile.am): Link test-linkat against
14025         $(LIBINTL).
14026         * modules/mkfifoat-tests (Makefile.am): Link test-mkfifoat against
14027         $(LIBINTL).
14028         * modules/openat-safer-tests (Makefile.am): Link test-openat-safer
14029         against $(LIBINTL).
14030         * modules/openat-tests (Makefile.am): Link test-fchownat, test-fstatat,
14031         test-mkdirat, test-openat, test-unlinkat against $(LIBINTL).
14032         * modules/readlinkat-tests (Makefile.am): Link test-readlinkat against
14033         $(LIBINTL).
14034         * modules/symlinkat-tests (Makefile.am): Link test-symlinkat against
14035         $(LIBINTL).
14036         * modules/utimensat-tests (Makefile.am): Link test-utimensat against
14037         $(LIBINTL).
14038         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
14039
14040 2011-05-31  Bruno Haible  <bruno@clisp.org>
14041
14042         Fix link errors in tests: wait-process uses gettext-h.
14043         * modules/nonblocking-pipe-tests (Makefile.am): Set
14044         test_nonblocking_pipe_main_LDADD.
14045         * modules/nonblocking-socket-tests (Makefile.am): Link
14046         test-nonblocking-socket-main against $(LIBINTL).
14047         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
14048
14049 2011-05-29  Paul Eggert  <eggert@cs.ucla.edu>
14050
14051         assert-h: work around 'verify' incompatibility
14052         * lib/verify.h: Use @...@ directives, not ifdef.
14053         * modules/assert-h (assert.h): Implement the directives.
14054         (assert.h): Substitute the symbol-prefix more consistently.
14055
14056 2011-05-29  Jim Meyering  <meyering@redhat.com>
14057
14058         trim: remove three superfluous assignments
14059         * lib/trim.c (trim2): Remove three superfluous assignments
14060         and correct brace positioning.
14061
14062 2011-05-29  Bruno Haible  <bruno@clisp.org>
14063
14064         wctype-h: Avoid namespace pollution on Solaris 2.6.
14065         * lib/wctype.in.h: On Solaris, undefine 'multibyte' and a few other
14066         identifiers.
14067         * doc/posix-headers/wctype.texi: Mention the problem.
14068         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
14069
14070 2011-05-28  Jim Meyering  <meyering@redhat.com>
14071
14072         parse-datetime.y: accommodate -Wstrict-overflow
14073         * lib/parse-datetime.y (yylex): Rearrange pointer arithmetic to
14074         placate -Wstrict-overflow.
14075
14076         trim: avoid a warning from -O2 -Wstrict-overflow
14077         * lib/trim.c (trim2): Declare local to be "unsigned int", not "int".
14078
14079 2011-05-29  Bruno Haible  <bruno@clisp.org>
14080
14081         gnulib-tool: Fix bug in yesterday's commit.
14082         * gnulib-tool (func_create_testdir): Don't add gltests to $subdirs
14083         twice.
14084
14085 2011-05-29  Bruno Haible  <bruno@clisp.org>
14086
14087         Allow multiple gnulib generated include files to be combined.
14088         * gnulib-tool (func_compute_include_guard_prefix): New function.
14089         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Resolve also
14090         ${gl_include_guard_prefix} references.
14091         (func_import, func_create_testdir): Invoke
14092         func_compute_include_guard_prefix.
14093         * lib/arpa_inet.in.h: Use the @GUARD_PREFIX@ placeholder.
14094         * lib/ctype.in.h: Likewise.
14095         * lib/dirent.in.h: Likewise.
14096         * lib/errno.in.h: Likewise.
14097         * lib/fcntl.in.h: Likewise.
14098         * lib/float.in.h: Likewise.
14099         * lib/getopt.in.h: Likewise.
14100         * lib/iconv.in.h: Likewise.
14101         * lib/langinfo.in.h: Likewise.
14102         * lib/locale.in.h: Likewise.
14103         * lib/math.in.h: Likewise.
14104         * lib/netdb.in.h: Likewise.
14105         * lib/netinet_in.in.h: Likewise.
14106         * lib/poll.in.h: Likewise.
14107         * lib/pthread.in.h: Likewise.
14108         * lib/pty.in.h: Likewise.
14109         * lib/sched.in.h: Likewise.
14110         * lib/se-selinux.in.h: Likewise.
14111         * lib/search.in.h: Likewise.
14112         * lib/signal.in.h: Likewise.
14113         * lib/spawn.in.h: Likewise.
14114         * lib/stdarg.in.h: Likewise.
14115         * lib/stddef.in.h: Likewise.
14116         * lib/stdint.in.h: Likewise.
14117         * lib/stdio.in.h: Likewise.
14118         * lib/stdlib.in.h: Likewise.
14119         * lib/string.in.h: Likewise.
14120         * lib/strings.in.h: Likewise.
14121         * lib/sys_file.in.h: Likewise.
14122         * lib/sys_ioctl.in.h: Likewise.
14123         * lib/sys_select.in.h: Likewise.
14124         * lib/sys_socket.in.h: Likewise.
14125         * lib/sys_stat.in.h: Likewise.
14126         * lib/sys_time.in.h: Likewise.
14127         * lib/sys_times.in.h: Likewise.
14128         * lib/sys_uio.in.h: Likewise.
14129         * lib/sys_utsname.in.h: Likewise.
14130         * lib/sys_wait.in.h: Likewise.
14131         * lib/sysexits.in.h: Likewise.
14132         * lib/termios.in.h: Likewise.
14133         * lib/time.in.h: Likewise.
14134         * lib/unistd.in.h: Likewise.
14135         * lib/wchar.in.h: Likewise.
14136         * lib/wctype.in.h: Likewise.
14137         * modules/arpa_inet (Makefile.am): Substitute @GUARD_PREFIX@.
14138         * modules/ctype (Makefile.am): Likewise.
14139         * modules/dirent (Makefile.am): Likewise.
14140         * modules/errno (Makefile.am): Likewise.
14141         * modules/fcntl-h (Makefile.am): Likewise.
14142         * modules/float (Makefile.am): Likewise.
14143         * modules/getopt-posix (Makefile.am): Likewise.
14144         * modules/iconv-h (Makefile.am): Likewise.
14145         * modules/langinfo (Makefile.am): Likewise.
14146         * modules/locale (Makefile.am): Likewise.
14147         * modules/math (Makefile.am): Likewise.
14148         * modules/netdb (Makefile.am): Likewise.
14149         * modules/netinet_in (Makefile.am): Likewise.
14150         * modules/poll-h (Makefile.am): Likewise.
14151         * modules/pthread (Makefile.am): Likewise.
14152         * modules/pty (Makefile.am): Likewise.
14153         * modules/sched (Makefile.am): Likewise.
14154         * modules/search (Makefile.am): Likewise.
14155         * modules/selinux-h (Makefile.am): Likewise.
14156         * modules/signal (Makefile.am): Likewise.
14157         * modules/spawn (Makefile.am): Likewise.
14158         * modules/stdarg (Makefile.am): Likewise.
14159         * modules/stddef (Makefile.am): Likewise.
14160         * modules/stdint (Makefile.am): Likewise.
14161         * modules/stdio (Makefile.am): Likewise.
14162         * modules/stdlib (Makefile.am): Likewise.
14163         * modules/string (Makefile.am): Likewise.
14164         * modules/strings (Makefile.am): Likewise.
14165         * modules/sys_file (Makefile.am): Likewise.
14166         * modules/sys_ioctl (Makefile.am): Likewise.
14167         * modules/sys_select (Makefile.am): Likewise.
14168         * modules/sys_socket (Makefile.am): Likewise.
14169         * modules/sys_stat (Makefile.am): Likewise.
14170         * modules/sys_time (Makefile.am): Likewise.
14171         * modules/sys_times (Makefile.am): Likewise.
14172         * modules/sys_uio (Makefile.am): Likewise.
14173         * modules/sys_utsname (Makefile.am): Likewise.
14174         * modules/sys_wait (Makefile.am): Likewise.
14175         * modules/sysexits (Makefile.am): Likewise.
14176         * modules/termios (Makefile.am): Likewise.
14177         * modules/time (Makefile.am): Likewise.
14178         * modules/unistd (Makefile.am): Likewise.
14179         * modules/wchar (Makefile.am): Likewise.
14180         * modules/wctype-h (Makefile.am): Likewise.
14181         * modules/assert-h (Makefile.am): Replace _GL_VERIFY_H specially.
14182
14183 2011-05-29  Bruno Haible  <bruno@clisp.org>
14184
14185         assert-h: Allow multiple gnulib generated replacements to coexist.
14186         * lib/verify.h (struct _gl_verify_type): Avoid identical redefinition.
14187
14188 2011-05-29  Bruno Haible  <bruno@clisp.org>
14189
14190         argp: Allow coexistence with strerror_r-posix module.
14191         * lib/argp-help.c (__argp_failure): If strerror_r is defined as a macro
14192         (either to __xpg_strerror_r by glibc's <string.h> or to rpl_strerror_r
14193         by gnulib's <string.h> replacement), assume it has the POSIX signature,
14194         not the glibc signature.
14195
14196 2011-05-28  Bruno Haible  <bruno@clisp.org>
14197
14198         gnulib-tool: Alternative structure of testdirs, similar to --import.
14199         * gnulib-tool: New option --single-configure.
14200         (func_usage): Document it.
14201         (single_configure): New variable.
14202         (func_modules_transitive_closure_separately,
14203         func_modules_transitive_closure_separately,
14204         func_determine_use_libtests, func_modules_add_dummy_separately,
14205         func_modules_to_filelist_separately): New functions, extracted from
14206         func_import.
14207         (func_emit_tests_Makefile_am): Handle $single_configure = true case.
14208         (func_import): Use the new functions.
14209         (func_create_testdir): Set final_modules. Handle $single_configure =
14210         true case.
14211
14212 2011-05-28  Bruno Haible  <bruno@clisp.org>
14213
14214         getloadavg: Remove an unreliable safety check.
14215         * m4/getloadavg.m4 (gl_GETLOADAVG): Drop argument. Remove test whether
14216         getloadavg.c is in place.
14217         * modules/getloadavg (configure.ac): Drop argument of gl_GETLOADAVG.
14218         Reported by Sam Steingold <sds@gnu.org>.
14219
14220 2011-05-28  Bruno Haible  <bruno@clisp.org>
14221
14222         doc: Cleanup yet another file produced by texinfo.tex.
14223         * doc/Makefile (mostlyclean): Remove also gnulib.cn.
14224
14225 2011-05-28  Bruno Haible  <bruno@clisp.org>
14226
14227         Finish the conditional dependencies mechanism.
14228         * gnulib-tool: New option --no-conditional-dependencies.
14229         (func_usage): Document it. Don't mark --conditional-dependencies as
14230         experimental.
14231         (cond_dependencies): The possible values can now be true, false, empty.
14232         (func_modules_transitive_closure, func_emit_autoconf_snippets): Update.
14233         (func_import): Store setting in gnulib-cache.m4 and read it from there.
14234         * doc/gnulib-tool.texi (Conditional dependencies): New section.
14235
14236 2011-05-28  Bruno Haible  <bruno@clisp.org>
14237
14238         doc: Use a recent texinfo.tex.
14239         * doc/Makefile (tex_opts): New variable.
14240         (%.dvi, %.pdf): Pass it to texi2dvi and texi2pdf.
14241
14242 2011-05-28  Jim Meyering  <meyering@redhat.com>
14243
14244         intprops.h: adjust comment to match code change
14245         * lib/intprops.h (_GL_INT_CONVERT): Adjust comment: now that E is used
14246         only once, it *may* have side effects.  Also fix an unrelated typo.
14247         (_GL_INT_SIGNED): Likewise.
14248
14249 2011-05-26  Simon Josefsson  <simon@josefsson.org>
14250
14251         * lib/gen-uni-tables.c: Say "gen-uni-tables.c" consistently.
14252
14253 2011-05-26  Bruno Haible  <bruno@clisp.org>
14254
14255         mbsrchr: Avoid collision with system function on Interix.
14256         * lib/string.in.h (mbsrchr): Define as rpl_mbsrchr also on Interix.
14257         Reported by Markus Duft <mduft@gentoo.org>.
14258
14259 2011-05-15  James Youngman  <jay@gnu.org>
14260
14261         getopt: for ambiguous options, enumerate the possibilities.
14262         * lib/getopt.c (_getopt_internal_r): Merge glibc change printing
14263         the ambiguous options when an ambiguous prefix is given. This was
14264         http://sourceware.org/bugzilla/show_bug.cgi?id=7101.  The merged
14265         glibc change was
14266         http://sourceware.org/git/?p=glibc.git;a=commit;h=bd25564e1e98910ed69043ed6a6f884ce60e5780.
14267
14268 2011-05-25  Eric Blake  <eblake@redhat.com>
14269
14270         getcwd: work around mingw bug
14271         * lib/getcwd-lgpl.c (rpl_getcwd): Guarantee correct error.
14272         * doc/posix-functions/getcwd.texi (getcwd): Document it.
14273         Reported by Matthias Bolte.
14274
14275 2011-05-24  Paul Eggert  <eggert@cs.ucla.edu>
14276
14277         test-intprops: disable -Wtype-limits diagnostics
14278         * tests/test-intprops.c: Use a pragma to ignore -Wtype-limits
14279         diagnostics.  Otherwise, the integer overflow macros generate many
14280         diagnostics.  Reported by Jim Meyering in
14281         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00528.html>.
14282
14283         intprops: shorten, to pacify gcc -Woverlength-strings
14284         * lib/intprops.h (_GL_INT_CONVERT, _GL_INT_NEGATE_CONVERT):
14285         (_GL_BINARY_OP_OVERFLOW): Say "0 * (x)" rather than "(x) - (x)",
14286         so that, for example, verify (INT_MULTIPLY_OVERFLOW (...)) is less
14287         likely to run afoul of C compiler limits for string constant lengths.
14288         See <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00528.html>.
14289
14290 2011-05-24  Eric Blake  <eblake@redhat.com>
14291
14292         docs: document recently fixed glibc printf bug
14293         * doc/posix-functions/fprintf.texi (fprintf): Document it.
14294         * doc/posix-functions/printf.texi (printf): Likewise.
14295         * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
14296         * doc/posix-functions/vprintf.texi (vprintf): Likewise.
14297
14298         closein-tests: convert to init.sh
14299         * modules/closein-tests (Files): Add init.sh
14300         * tests/test-closein.sh Use it.
14301
14302         yesno-tests: convert to init.sh
14303         * modules/yesno-tests (Files): Add init.sh.
14304         * tests/test-yesno.sh: Use it.
14305
14306         atexit-tests: ensure reliable exit status
14307         * tests/test-atexit.sh: Prefer 'Exit' over 'exit'.
14308         Reported by Bruno Haible.
14309
14310 2011-05-24  Bruno Haible  <bruno@clisp.org>
14311
14312         strerror_r-posix: Respect rules for use of AC_LIBOBJ.
14313         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Move AC_LIBOBJ and
14314         gl_PREREQ_STRERROR_R invocations from here...
14315         * modules/strerror_r-posix (configure.ac): ... to here.
14316
14317 2011-05-24  Eric Blake  <eblake@redhat.com>
14318
14319         strerror_r: fix missing header
14320         * lib/strerror_r.c: Avoid compiler warning about snprintf.
14321
14322         strerror_r: fix AIX test failures
14323         * lib/strerror_r.c (strerror_r): Convert silent truncation to
14324         ERANGE failure.
14325
14326         strerror_r: fix Solaris test failures
14327         * lib/strerror_r.c (strerror_r): Partially populate buf on ERANGE
14328         failures.
14329         * doc/posix-functions/strerror_r.texi (strerror_r): Document this.
14330
14331         strerror_r: enforce POSIX recommendations
14332         * lib/strerror_r.c (safe_copy): New helper method.
14333         (strerror_r): Guarantee a non-empty string.
14334         * tests/test-strerror_r.c (main): Enhance tests to incorporate
14335         recent POSIX rulings and to match our strerror guarantees.
14336         * doc/posix-functions/strerror_r.texi (strerror_r): Document this.
14337
14338 2011-05-24  Jim Meyering  <meyering@redhat.com>
14339
14340         test-perror2.c: avoid warning about unused variable
14341         * tests/test-perror2.c (main): Remove declaration of unused "fp".
14342
14343 2011-05-24  Eric Blake  <eblake@redhat.com>
14344
14345         perror: avoid spurious test failure on HP-UX
14346         * tests/test-perror.sh: Use Exit to avoid wrong exit status.
14347
14348         tests: fix logic bug in init.sh
14349         * tests/init.sh: (gl_set_x_corrupts_stderr_): Clear for successful
14350         shell.
14351
14352 2011-05-24  Jim Meyering  <meyering@redhat.com>
14353
14354         utimensat: do not reference an out-of-scope buffer
14355         Otherwise, with __linux__ defined, "times" would point to a buffer, "ts"
14356         declared in an inner scope, yet "times" would be dereferenced outside
14357         the scope in which "ts" was valid.
14358         * lib/utimensat.c (rpl_utimensat) [__linux__]: Move the declaration
14359         of ts[2] "out/up", so that the use of aliased "times" (via
14360         "times = ts;") does not end up referencing an out-of-scope "ts"
14361
14362         opendir-safer.c: don't clobber errno; don't close negative FD
14363         * lib/opendir-safer.c (opendir_safer):
14364         [HAVE_FDOPENDIR || GNULIB_FDOPENDIR]: Don't close a negative
14365         file descriptor, and more importantly, don't clobber the
14366         offending errno value with EINVAL.  Before, upon failure
14367         of dup_safer, we would pass the negative file descriptor to
14368         fdopendir, which would clobber errno.
14369
14370 2011-05-23  Bruno Haible  <bruno@clisp.org>
14371
14372         idcache: Fix module description.
14373         * modules/idcache (Include): Set to "idcache.h".
14374
14375 2011-05-23  Paul Eggert  <eggert@cs.ucla.edu>
14376
14377         gnulib-tool: fix portability problem with MacOS sed
14378         A sed command like "/x/{s/a/b/}" is not portable; a newline is needed
14379         before the "}".  Problem reported by Leo in
14380         <http://lists.gnu.org/archive/html/emacs-devel/2011-05/msg00717.html>.
14381         * gnulib-tool (func_modules_transitive_closure): Insert newlines in
14382         sed_extract_condition1, sed_extract_condition2.
14383
14384 2011-05-23  Bruno Haible  <bruno@clisp.org>
14385
14386         hash: Simplify autoconf macro.
14387         * m4/hash.m4 (gl_HASH): Don't require AM_STDBOOL_H.
14388
14389 2011-05-23  Bruno Haible  <bruno@clisp.org>
14390
14391         getugroups: Fix module description.
14392         * modules/getugroups (Include): Set to "getugroups.h".
14393
14394 2011-05-23  Bruno Haible  <bruno@clisp.org>
14395
14396         linkat: Simplify autoconf macro.
14397         * m4/linkat.m4 (gl_FUNC_LINKAT): Don't require gl_FUNC_LINK.
14398
14399 2011-05-23  Bruno Haible  <bruno@clisp.org>
14400             Eric Blake  <eblake@redhat.com>
14401
14402         linkat, renameat: Update dependencies.
14403         * modules/renameat (Depends-on): Add dosname, save-cwd. Remove stpcpy.
14404         * modules/linkat (Depends-on): Likewise. Remove also readlink,
14405         symlinkat.
14406
14407 2011-05-23  Jim Meyering  <meyering@redhat.com>
14408
14409         maint.mk: more tight_scope improvements
14410         * top/maint.mk: (_gl_TS_var_match): Use $(_gl_TS_extern) here, too.
14411         (_gl_TS_headers): Define only in if-0'd block.
14412         (_gl_TS_dir): Omit the $(srcdir)/ prefix.  Sometimes we need it,
14413         sometimes we must *not* use it.  Adjust uses accordingly.
14414         (sc_tight_scope): Use much simpler grep-based test to determine
14415         whether we skip this rule.
14416
14417         maint.mk: generalize/improve the tight-scope rule
14418         * top/maint.mk: Emit a warning when the test is skipped.
14419         (_gl_TS_dir): Add $(srcdir)/ prefix.
14420         (_gl_TS_function_match): Simplify, rather than trying
14421         to enumerate common types.  Otherwise, it would fail to match an
14422         "extern unsigned char const *" declaration in idutils.
14423         (_gl_TS_extern): Do not endorse use of "XTERN", but do provide
14424         a way to support use of that type of macro.
14425         (_gl_TS_var_match): Simplify regexp.
14426         (_gl_TS_obj_files): New configurable variable.
14427         (_gl_TS_headers): Likewise.
14428
14429 2011-05-22  Paul Eggert  <eggert@cs.ucla.edu>
14430
14431         verify: fix bug when gnulib <assert.h> is also included
14432         * lib/verify.h (verify, verify_true): Define if _GL_VERIFY_H
14433         is defined, not if _GL_STATIC_ASSERT_H is not defined.
14434         Perhaps there's a better way, but this fixes the immediate problem.
14435         Problem reported by Bruno Haible in
14436         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00478.html>.
14437
14438 2011-05-22  Bruno Haible  <bruno@clisp.org>
14439
14440         xgetcwd: Simplify autoconf macro.
14441         * m4/xgetcwd.m4 (gl_XGETCWD): Don't require gl_FUNC_GETCWD.
14442
14443 2011-05-22  Bruno Haible  <bruno@clisp.org>
14444
14445         New module 'mktime-internal'.
14446         * modules/mktime-internal: New file.
14447         * m4/timegm.m4 (gl_PREREQ_TIMEGM): Move contents to ...
14448         * m4/mktime.m4 (gl_FUNC_MKTIME_INTERNAL): New macro. Define
14449         mktime_internal as a C macro if libc has __mktime_internal.
14450         * modules/timegm (Depends-on): Add mktime-internal. Remove mktime. Add
14451         conditions.
14452         * MODULES.html.sh (Date and time <time.h>): Add mktime-internal.
14453
14454 2011-05-22  Bruno Haible  <bruno@clisp.org>
14455
14456         timegm: Correct mktime replacement statements.
14457         * m4/timegm.m4 (gl_PREREQ_TIMEGM): Set REPLACE_MKTIME, instead of
14458         defining mktime as a C macro. This completes a 2009-07-28 commit.
14459
14460 2011-05-22  Bruno Haible  <bruno@clisp.org>
14461
14462         timegm: Simplify autoconf macro.
14463         * m4/timegm.m4 (gl_PREREQ_TIMEGM): Don't require gl_TIME_R.
14464
14465 2011-05-21  Paul Eggert  <eggert@cs.ucla.edu>
14466
14467         clock-time: change to LGPLv2+.
14468         * modules/clock-time: Change from GPL to LGPLv2+.  Actually, it's
14469         BSD-like but we have no mark for that; this is good enough for now.
14470
14471 2011-05-21  Bruno Haible  <bruno@clisp.org>
14472
14473         strerror_r: Fix comments.
14474         * lib/strerror_r.c (strerror_r): Fix comment about Cygwin and sys_nerr.
14475
14476 2011-05-21  Bruno Haible  <bruno@clisp.org>
14477
14478         relocatable-prog-wrapper: Fix possible link error.
14479         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Move determination of
14480         HAVE_SETENV and REPLACE_SETENV and AC_LIBOBJ invocation from here...
14481         (gl_FUNC_SETENV): ... to here.
14482         * m4/canonicalize.m4 (gl_CANONICALIZE_LGPL_SEPARATE): Update comment.
14483         * m4/readlink.m4 (gl_FUNC_READLINK_SEPARATE): Likewise.
14484
14485 2011-05-21  Bruno Haible  <bruno@clisp.org>
14486
14487         relocatable-prog-wrapper: Assume strerror() exists.
14488         * modules/relocatable-prog-wrapper (Files): Remove lib/strerror.c,
14489         m4/strerror.m4.
14490         (configure.ac): Don't invoke gl_FUNC_STRERROR_SEPARATE.
14491         * lib/relocwrapper.c: Remove mention of strerror module.
14492         * lib/strerror.c: Assume REPLACE_STRERROR is 1.
14493         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Remove macro.
14494         (gl_FUNC_STRERROR): Inline it here. Don't define REPLACE_STRERROR as a
14495         C macro.
14496
14497 2011-05-21  Bruno Haible  <bruno@clisp.org>
14498
14499         select: Simplify replacement idiom.
14500         * m4/select.m4 (gl_FUNC_SELECT): Set REPLACE_SELECT also on native
14501         Win32 platforms.
14502         * lib/sys_select.in.h (select): Simplify accordingly.
14503         * modules/select (Depends-on): Likewise.
14504
14505 2011-05-21  Bruno Haible  <bruno@clisp.org>
14506
14507         mkdir-p: Simplify autoconf macro.
14508         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Don't require gl_FUNC_LCHMOD,
14509         gl_FUNC_LCHOWN.
14510
14511 2011-05-21  Eric Blake  <eblake@redhat.com>
14512
14513         strerror_r: avoid clobbering strerror on cygwin
14514         * lib/strerror_r.c (strerror_r): Don't use cygwin's strerror_r;
14515         fall back instead to sys_errlist.
14516         * modules/strerror (configure.ac): Add witness.
14517         * tests/test-strerror_r.c (main): Enhance test.
14518         * doc/posix-functions/strerror_r.texi (strerror_r): Document it.
14519         * tests/test-perror2.c (main): Free memory before exit.
14520
14521 2011-05-21  Bruno Haible  <bruno@clisp.org>
14522
14523         mkdtemp: Use gnulib naming conventions.
14524         * m4/mkdtemp.m4 (gl_FUNC_MKDTEMP): Renamed from gt_FUNC_MKDTEMP.
14525         * modules/mkdtemp (configure.ac): Update.
14526
14527 2011-05-20  Eric Blake  <eblake@redhat.com>
14528
14529         strerror_r: avoid corrupting errno on Solaris
14530         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Check for Solaris behavior.
14531         * doc/posix-functions/strerror_r.texi (strerror_r): Document it.
14532
14533         strerror_r: avoid compiler warning
14534         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Don't return a char*.
14535
14536         strerror_r: simplify AIX code
14537         * lib/strerror_r.c (strerror_r): Filter out buflen of 1 up front.
14538
14539         test-perror: avoid spurious failure on FreeBSD
14540         * modules/perror-tests (Depends-on): Add strerror, now that
14541         strerror_r no longer pulls it in.
14542
14543 2011-05-20  Bruno Haible  <bruno@clisp.org>
14544
14545         strerror_r-posix: Remove unused dependencies.
14546         * modules/strerror_r-posix (Depends-on): Remove strerror.
14547         Reported by Eric Blake.
14548
14549 2011-05-20  Paul Eggert  <eggert@cs.ucla.edu>
14550
14551         intprops: remove assumption about A|B representation
14552         * lib/intprops.h (_GL_BINARY_OP_OVERFLOW): Do not assume that A|B
14553         is a valid integer if both A and B are.  Although this is true for
14554         all known practical hosts, the C standard doesn't guarantee it,
14555         and the code need not assume it.  Also, this change may work around
14556         HP-UX 11.23 and IRIX 6.5 cc bugs reported by Bruno Haible in
14557         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00426.html>.
14558
14559 2011-05-20  Eric Blake  <eblake@redhat.com>
14560
14561         perror: work around FreeBSD bug
14562         * m4/perror.m4 (gl_FUNC_PERROR): Also replace perror if strerror_r
14563         is broken.  Move AC_LIBOBJ...
14564         * modules/perror (configure.ac): Here.
14565         * doc/posix-functions/perror.texi (perror): Document this.
14566         * tests/test-perror2.c (main): Enhance test.
14567
14568         test-perror: check for strerror interactions
14569         * tests/macros.h (STREQ): Add macro.
14570         * modules/perror-tests (Files): Add second test.
14571         * tests/test-perror2.c (main): New file.
14572         * doc/posix-functions/perror.texi (perror): Document glibc bug.
14573
14574         test-perror: rewrite to use init script
14575         * modules/perror-tests (Files): Add init.sh.
14576         * tests/test-perror.sh: Use temporary directory.
14577
14578 2011-05-20  Jim Meyering  <meyering@redhat.com>
14579
14580         maint: replace misused "a" with "an"
14581         * doc/intprops.texi: "a integer"
14582         * doc/regex.texi: "a explanation"
14583         * lib/alignof.h: "a object"
14584         * lib/argmatch.h: "a explanation"
14585         * lib/argp-help.c: "a option" and "a OPTION_DOC"
14586         * lib/stdint.in.h: "a integer"
14587         * lib/userspec.c: "a owner"
14588         * doc/gnulib.texi: Fix "a idea", and reword.
14589
14590 2011-05-19  Jim Meyering  <meyering@redhat.com>
14591
14592         maint: correct misuse of "a" and "an"
14593         * doc/regex.texi (Collating Symbol Operators): s/an close.../a close/
14594         * lib/argp-help.c: "an docum...": s/an/a/
14595         * lib/argp-parse.c: "An vector": s/An/A/
14596         * lib/execute.c: "an native": s/an/a/
14597         * lib/spawn-pipe.c: Likewise.
14598         * lib/gc.h: "an Gc_rc": s/an/a/
14599         * lib/unigbrk.in.h: "an grapheme": s/an/a/
14600         * lib/fts.c: "an stat.st_dev": s/an/a/
14601
14602 2011-05-19  Paul Eggert  <eggert@cs.ucla.edu>
14603
14604         intprops-tests: work around HP-UX 11.23 cc bug with constants
14605         * tests/test-intprops.c (VERIFY): New macro.
14606         (main): Use it, instead of verify, to work around the compiler bug; see
14607         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00401.html>.
14608
14609         intprops: work around IRIX 6.5 cc bug with 0u - 0u + -1
14610         See http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00406.html
14611         * lib/intprops.h (_GL_INT_NEGATE_CONVERT): New macro.
14612         (_GL_INT_SIGNED, _GL_INT_MAXIMUM, _GL_DIVIDE_OVERFLOW):
14613         (_GL_REMAINDER_OVERFLOW): Use it.
14614
14615         intprops-tests: revert unsigned part of previous change
14616         * tests/test-intprops.c (UINT_MAX, ULONG_MAX, UINTMAX_MAX, U0, U1):
14617         Remove; they weren't actually needed.  All uses of U0 and U1 removed,
14618         and other casts to 'unsigned int' reverted to 'u' suffixes.  See
14619         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00406.html>.
14620
14621 2011-05-19  Bruno Haible  <bruno@clisp.org>
14622
14623         strerror_r: Work around strerror_r() change in Cygwin 1.7.8.
14624         * lib/strerror_r.c (strerror_r) [CYGWIN]: Recognize when the system's
14625         strerror_r() returned without filling the buffer.
14626         Reported by Eric Blake.
14627
14628 2011-05-19  Eric Blake  <eblake@redhat.com>
14629
14630         strerror_r: guarantee unchanged errno
14631         * lib/strerror_r.c (strerror_r): Guarantee unchanged errno.
14632         * lib/strerror-impl.h (strerror): Set errno to match strerror_r
14633         failure.
14634         * tests/test-strerror_r.c (main): Enhance test.
14635
14636 2011-05-19  Bruno Haible  <bruno@clisp.org>
14637
14638         strerror_r: Reorder #if blocks.
14639         * lib/strerror_r.c (strerror_r): Reorder conditionals in the function
14640         for consistency with the previous commit.
14641
14642 2011-05-19  Bruno Haible  <bruno@clisp.org>
14643
14644         perror: Avoid clobbering the strerror buffer when possible.
14645         * lib/strerror-impl.h: New file, extracted from lib/strerror.c.
14646         * lib/strerror.c: Include it.
14647         * modules/strerror (Files): Add lib/strerror-impl.h.
14648         * lib/perror.c: Include <stdlib.h>, intprops.h, verify.h.
14649         (my_strerror): New function, defined through lib/strerror-impl.h.
14650         (perror): Use it instead of strerror.
14651         * modules/perror (Files): Add lib/strerror-impl.h.
14652         (Depends-on): Remove strerror. Add intprops, verify, strerror_r-posix.
14653
14654 2011-05-19  Eric Blake  <eblake@redhat.com>
14655
14656         strerror_r: fix on newer cygwin
14657         * lib/strerror_r.c (strerror_r): Cygwin now has
14658         __xpg_strerror_r, use it.
14659
14660 2011-05-19  Bruno Haible  <bruno@clisp.org>
14661
14662         strerror_r: Avoid clobbering the strerror buffer when possible.
14663         * lib/strerror.c: Define _NETBSD_SOURCE. Include <nl_types.h>.
14664         (sys_nerr, sys_errlist): New declarations.
14665         (strerror_r): Be careful not to clobber the strerror buffer on NetBSD,
14666         HP-UX, native Win32, IRIX, and 32-bit Solaris.
14667         * m4/strerror_r.m4 (gl_PREREQ_STRERROR_R): Test whether catgets exists.
14668
14669 2011-05-19  Bruno Haible  <bruno@clisp.org>
14670
14671         strerror_r: Fix test failure on mingw.
14672         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Don't define
14673         EXTEND_STRERROR_R.
14674         * lib/strerror_r.c (strerror_r): Test the various GNULIB_defined_*
14675         macros from errno.in.h instead.
14676
14677 2011-05-19  Eric Blake  <eblake@redhat.com>
14678
14679         strerror: relax test for Solaris
14680         * tests/test-strerror.c (main): Permit Solaris behavior.
14681         * tests/test-strerror_r.c (main): Likewise.
14682
14683         strerror: enforce POSIX ruling on strerror(0)
14684         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Expose BSD bug.
14685         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Likewise.
14686         * lib/strerror_r.c (rpl_strerror_r): Work around it.
14687         * doc/posix-functions/strerror.texi (strerror): Document it.
14688         * doc/posix-functions/strerror_r.texi (strerror_r): Likewise.
14689         * tests/test-strerror.c (main): Strengthen test.
14690         * tests/test-strerror_r.c (main): Likewise.
14691
14692 2011-05-19  Paul Eggert  <eggert@cs.ucla.edu>
14693
14694         intprop-tests: port to older and more-pedantic compilers
14695         * modules/intprops-tests (Files): Add tests/macros.h.
14696         * tests/test-intprops.c: Include macros.h.
14697         (TYPE_IS_INTEGER): Use ASSERT, not verify, to test this macro, as
14698         it's no longer documented to expand to an integer constant expression.
14699         (TYPE_SIGNED): Use ASSERT, not verify, to test this macro when the
14700         argument is floating point, as it's no longer documented to expand
14701         to an integer constant expression in that case.
14702         (UINT_MAX, ULONG_MAX, UINTMAX_MAX): Redefine to work around
14703         compiler bugs reported by Bruno Haible.  See
14704         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00401.html>.
14705         (U0, U1): New constants, to work around the same bugs.  Also,
14706         in tests, use e.g., "(unsigned int) 39" rather than "39u".
14707
14708         intprops: work around C compiler bugs
14709         * lib/intprops.h (INT_MULTIPLY_RANGE_OVERFLOW): Work around compiler
14710         bug in Sun C 5.11 2010/08/13 and other compilers; see
14711         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00401.html>.
14712
14713         intprops: TYPE_IS_INTEGER, TYPE_SIGNED not integer constant exprs
14714         * doc/intprops.texi (Integer Type Determination): Fix
14715         documentation for TYPE_IS_INTEGER: it returns an constant
14716         expression, not an integer constant expression.  Fix doc for
14717         TYPE_SIGNED: it returns an integer constant expression only if its
14718         argument is an integer type.  (TYPE_IS_INTEGER is the same, but is
14719         hardly worth documented that way....)
14720
14721 2011-05-18  Bruno Haible  <bruno@clisp.org>
14722
14723         strerror_r: Avoid clobbering the strerror buffer when possible.
14724         * lib/strerror_r.c (strerror_r): Merge the three implementations.
14725         Handle gnulib defined errno values here. When strerror() returns NULL
14726         or an empty string, return EINVAL.
14727         * lib/strerror.c (strerror): Always call strerror_r. Don't handle
14728         gnulib defined errno values here.
14729         * modules/strerror (Depends-on): Add verify, strerror_r-posix.
14730
14731 2011-05-18  Eric Blake  <eblake@redhat.com>
14732
14733         fnmatch: avoid compiler warning
14734         * lib/fnmatch_loop.c (FCT): Use correct type.
14735         Reported by Matthias Bolte.
14736
14737 2011-05-13  Jim Meyering  <meyering@redhat.com>
14738
14739         maint.mk: three new prohibit_<HDR>_without_use rules
14740         * top/maint.mk (sc_prohibit_stdio--_without_use): New rule.
14741         (sc_prohibit_stdio-safer_without_use): Likewise.
14742         (sc_prohibit_xfreopen_without_use): Likewise.
14743
14744 2011-05-17  Jim Meyering  <meyering@redhat.com>
14745
14746         announce-gen: fail if the NEWS delta is empty
14747         If there's nothing noteworthy in NEWS, then either you forgot
14748         or you shouldn't be releasing.
14749         * build-aux/announce-gen: Die if the NEWS delta is effectively empty.
14750
14751 2011-05-17  Pádraig Brady <P@draigBrady.com>
14752
14753         * top/maint.mk (_gl_tight_scope:): Automatically exclude compiler
14754         reserved symbols starting with double underscore from the check.
14755
14756 2011-05-17  Paul Eggert  <eggert@cs.ucla.edu>
14757
14758         intprops: add doc
14759         * doc/intprops.texi: New file, documenting intprops.
14760         * doc/gnulib.texi (Particular Modules): Include it.
14761
14762         verify: add doc to gnulib manual and fix example
14763         * doc/gnulib.texi (Compile-time Assertions): New node, for 'verify'.
14764         * doc/verify.texi (Compile-time Assertions): Update 'assert' doc.
14765         (Compile-time Assertions): Fix example so it can't overflow.
14766
14767 2011-05-17  Jim Meyering  <meyering@redhat.com>
14768
14769         warnings.m4: don't usurp save_CPPFLAGS variable name
14770         * m4/warnings.m4: Prefix local temporary variable name with gl_.
14771
14772         doc: fix typo
14773         * doc/gnulib-intro.texi (Target Platforms): s/is/are/
14774
14775 2011-05-16  Paul Eggert  <eggert@cs.ucla.edu>
14776             Bruno Haible  <bruno@clisp.org>
14777
14778         doc: Tweak recent change.
14779         * README (Portability guidelines): Tweak new text.
14780         * doc/gnulib-intro.texi (Target Platforms): Likewise. Mention
14781         Interix 6.1.
14782
14783 2011-05-16  Eric Blake  <eblake@redhat.com>
14784
14785         inttypes: avoid autoconf warning
14786         * m4/inttypes.m4 (gl_INTTYPES_INCOMPLETE): Only expand once.
14787         * m4/stdint.m4 (gl_STDINT_H): Likewise.
14788
14789 2011-05-16  Sam Steingold <sds@gnu.org>
14790         and Eric Blake  <eblake@redhat.com>
14791
14792         vc-list-files: accept multiple directory operands
14793         * build-aux/vc-list-files: Iterate over all remaining operands.
14794
14795 2011-05-16  Bruno Haible  <bruno@clisp.org>
14796
14797         Fix confusion regarding deprecated modules.
14798         * modules/calloc (Status, Notice): Mark module as deprecated, not
14799         obsolete.
14800         * modules/fnmatch-posix (Status, Notice): Likewise.
14801         * modules/getdate (Status, Notice): Likewise.
14802         * modules/getopt (Status, Notice): Likewise.
14803         * modules/malloc (Status, Notice): Likewise.
14804         * modules/pipe (Status, Notice): Likewise.
14805         * modules/realloc (Status, Notice): Likewise.
14806         * modules/rename-dest-slash (Status, Notice): Likewise.
14807         * modules/unictype/bidicategory-all (Status, Notice): Likewise.
14808         * modules/unictype/bidicategory-byname (Status, Notice): Likewise.
14809         * modules/unictype/bidicategory-name (Status, Notice): Likewise.
14810         * modules/unictype/bidicategory-of (Status, Notice): Likewise.
14811         * modules/unictype/bidicategory-test (Status, Notice): Likewise.
14812
14813 2011-05-16  Bruno Haible  <bruno@clisp.org>
14814
14815         doc: List the target platforms.
14816         * doc/gnulib-intro.texi (Target Platforms): New section.
14817         * doc/gnulib.texi (Introduction): Update menu.
14818         * README (Portability guidelines): Refer to the new section. Update
14819         statement about oldest supported environment. Remove rationale why
14820         <errno.h>, <string.h>, <stdlib.h> are assumed. Update example of an
14821         unportable C89 function.
14822         Reported by Bastien Roucariès <roucaries.bastien@gmail.com> and
14823         Charles Wilson <cygwin@cwilson.fastmail.fm>. Feedback from Paul Eggert.
14824
14825 2011-05-16  Paul Eggert  <eggert@cs.ucla.edu>
14826
14827         * build-aux/bootstrap (gnulib_tool): Handle symlink timestamps better.
14828
14829 2011-05-13  Paul Eggert  <eggert@cs.ucla.edu>
14830
14831         intprops-tests: new module
14832         * modules/intprops-tests, tests/test-intprops.c: New files.
14833
14834         intprops: add safe, portable integer overflow checking
14835         * lib/intprops.h (_GL_INT_CONVERT, _GL_INT_TWOS_COMPLEMENT):
14836         (_GL_INT_SIGNED, _GL_INT_MINIMUM, _GL_INT_MAXIMUM):
14837         (_GL_SIGNED_INT_MINIMUM, INT_ADD_RANGE_OVERFLOW):
14838         (INT__SUBTRACT__RANGE_OVERFLOW, INT_NEGATE_RANGE_OVERFLOW):
14839         (INT_MULTIPLY_RANGE_OVERFLOW, INT_REMAINDER_RANGE_OVERFLOW):
14840         (INT_LEFT_SHIFT_RANGE_OVERFLOW, _GL_ADD_OVERFLOW):
14841         (_GL__SUBTRACT__OVERFLOW, _GL_MULTIPLY_OVERFLOW, _GL_DIVIDE_OVERFLOW):
14842         (_GL_REMAINDER_OVERFLOW, _GL_UNSIGNED_NEG_MULTIPLE, INT_ADD_OVERFLOW):
14843         (INT__SUBTRACT__OVERFLOW, INT_NEGATE_OVERFLOW, INT_MULTIPLY_OVERFLOW):
14844         (INT_DIVIDE_OVERFLOW, INT_REMAINDER_OVERFLOW):
14845         (INT_LEFT_SHIFT_OVERFLOW, _GL_BINARY_OP_OVERFLOW): New macros.
14846
14847 2011-05-12  James Youngman  <jay@gnu.org>
14848
14849         Add a test for glibc's Bugzilla bug #12378.
14850         * m4/fnmatch.m4: Use gnulib's fnmatch if the system fnmatch
14851         doesn't allow the literal matching of a lone "[" (which is
14852         required by POSIX).
14853         * tests/test-fnmatch.c (main): Check that "[/b" matches itself.
14854
14855 2011-05-11  Ulrich Drepper  <drepper@gmail.com>
14856
14857         Sync glibc change fixing Bugzilla bug #12378.
14858         * lib/fnmatch_loop.c (FCT): When matching '[' keep track of
14859         beginning and fall back to matching as normal character if the
14860         string ends before the matching ']' is found.  This is what POSIX
14861         requires.
14862
14863 2011-05-13  Eric Blake  <eblake@redhat.com>
14864
14865         getcwd-lgpl: relax test for FreeBSD
14866         * doc/posix-functions/getcwd.texi (getcwd): Document portability
14867         issue.
14868         * tests/test-getcwd-lgpl.c (main): Relax test.
14869         Reported by Matthias Bolte.
14870
14871 2011-05-11  Eric Blake  <eblake@redhat.com>
14872
14873         test-fflush: silence compiler warning
14874         * tests/test-fflush.c (main): Don't fclose a NULL pointer.
14875
14876 2011-05-11  Bruno Haible  <bruno@clisp.org>
14877
14878         canonicalize, canonicalize-lgpl: Avoid crash dialog on MacOS X.
14879         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Add GL_NOCRASH code.
14880         * modules/canonicalize (Depends-on): Add 'nocrash'.
14881         * modules/canonicalize-lgpl (Depends-on): Likewise.
14882         * doc/posix-functions/realpath.texi: Update platforms list.
14883         Reported by Ryan Schmidt <ryandesign@macports.org>.
14884
14885 2011-05-11  Bruno Haible  <bruno@clisp.org>
14886
14887         group-member: Declare function in <unistd.h>.
14888         * lib/unistd.in.h (group_member): New declaration.
14889         * lib/group-member.h: Remove file.
14890         * lib/group-member.c: Include <unistd.h> instead of group-member.h.
14891         * tests/test-unistd-c++.cc: Check signature of group_member.
14892         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Require
14893         gl_UNISTD_H_DEFAULTS. Set HAVE_GROUP_MEMBER.
14894         * m4/unistd_h.m4 (gl_UNISTD_H): Check whether group_member is declared.
14895         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GROUP_MEMBER,
14896         HAVE_GROUP_MEMBER.
14897         * modules/group-member (Files): Remove lib/group-member.h.
14898         (Depends-on): Add unistd. Specify conditions.
14899         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
14900         (Include): Change to <unistd.h>.
14901         * modules/unistd (Makefile.am): Substitute GNULIB_GROUP_MEMBER,
14902         HAVE_GROUP_MEMBER.
14903         * NEWS: Mention the change.
14904         * lib/euidaccess.c: Don't include group-member.h.
14905
14906 2011-05-11  Bruno Haible  <bruno@clisp.org>
14907
14908         group-member: Document module.
14909         * doc/glibc-functions/group_member.texi: Mention the 'group-member'
14910         module.
14911
14912 2011-05-11  Bruno Haible  <bruno@clisp.org>
14913
14914         fclose: Fix mistake earlier today.
14915         * lib/fclose.c (rpl_fclose): Don't assume that EOF < 0.
14916
14917 2011-05-11  Eric Blake  <eblake@redhat.com>
14918
14919         fclose: preserve fflush errors
14920         * lib/fclose.c (rpl_fclose): Don't lose fflush errors.
14921         Reported by Jim Meyering.
14922
14923         bootstrap: support a prereq of 'rpcgen -' on RHEL5
14924         * build-aux/bootstrap (check_versions): When no specific version
14925         is required, merely check that the app produces an exit status
14926         that indicates its existence.
14927
14928         maint.mk: drop redundant check
14929         * top/maint.mk (sc_the_the): Delete; sc_prohibit_doubled_word does
14930         the same but better.
14931
14932 2011-05-11  Bruno Haible  <bruno@clisp.org>
14933
14934         fclose: Fix possible link error.
14935         * lib/fclose.c (rpl_fclose): Invoke _gl_unregister_fd, not
14936         unregister_shadow_fd. Improve comments.
14937         * lib/sockets.c (close_fd_maybe_socket): Add comments. Reported by
14938         Eric Blake.
14939
14940 2011-05-11  Jim Meyering  <meyering@redhat.com>
14941
14942         maint.mk: improve "can not" detection and generalize rule name
14943         * top/maint.mk (sc_prohibit_undesirable_word_seq): Renamed from
14944         sc_prohibit_can_not, since we'll probably add a few more word pairs here.
14945         Use the same technique as in sc_prohibit_doubled_word, so that
14946         we recognize "can not" also when the words are separated by a newline.
14947         Suggested by Eric Blake.
14948         (perl_filename_lineno_text_): Define.  Factored out of...
14949         (prohibit_doubled_word_): ...here.  Use the new definition.
14950         (prohibit_undesirable_word_seq_): New var.  Use it here, too.
14951         (prohibit_undesirable_word_seq_RE_): New overridable variable.
14952         (ignore_undesirable_word_sequence_RE_): New overridable variable.
14953
14954 2011-05-10  Eric Blake  <eblake@redhat.com>
14955
14956         fclose: avoid double close race when possible
14957         * lib/fclose.c (rpl_fclose): Rewrite to avoid double-close race on
14958         all but WINDOWS_SOCKETS.
14959
14960 2011-05-10  Bastien Roucariès  <roucaries.bastien@gmail.com>
14961
14962         openat: correct new comment
14963         * lib/openat-proc.c (openat_proc_name): Correct the comment.
14964
14965 2011-05-10  Jim Meyering  <meyering@redhat.com>
14966
14967         openat: add comments
14968         * lib/openat-proc.c (openat_proc_name): Add comments,
14969         mostly from Eric Blake.
14970
14971 2011-05-09  Eric Blake  <eblake@redhat.com>
14972
14973         openat: reduce syscalls in first probe of /proc
14974         * lib/openat-proc.c (openat_proc_name): Require that /proc/self/fd
14975         be a directory.  Simplify the probe for .. bugs.
14976         * modules/openat (Depends-on): Drop same-inode.
14977         Reported by Bastien ROUCARIES.
14978
14979 2011-05-09  Jim Meyering  <meyering@redhat.com>
14980
14981         maint.mk: change semantics/name of tight_scope variables
14982         * top/maint.mk (_gl_TS_var_match, _gl_TS_function_match):
14983         Rename variables to align with semantics that make them more useful.
14984
14985         maint.mk: tweak new rule's name not to impinge
14986         * top/maint.mk (_gl_tight_scope): Rename from sc_tight_scope-0.
14987         (sc_tight_scope): Use new rule name rather than $@-0.
14988
14989         maint.mk: add a syntax-check rule to ensure tightly-scoped symbols
14990         * top/maint.mk (sc_tight_scope): New rule.
14991         (sc_tight_scope-0): New rule, ifdef'd out.
14992         (_gl_TS_dir): Default.
14993         (_gl_TS_unmarked_extern_functions, _gl_TS_function_regex): Define.
14994         (_gl_TS_unmarked_extern_vars, _gl_TS_var_regex): Define.
14995
14996 2011-05-09  Simon Josefsson  <simon@josefsson.org>
14997
14998         * m4/gc.m4: Remove gl_PREREQ_GC (not used).  Reported by Bruno
14999         Haible <bruno@clisp.org>.
15000
15001 2011-05-08  Bruno Haible  <bruno@clisp.org>
15002
15003         Comments.
15004         * m4/isnanf.m4: Add comment.
15005         * m4/isnanl.m4: Likewise.
15006
15007 2011-05-08  Bruno Haible  <bruno@clisp.org>
15008
15009         glob: Remove obsolete macro.
15010         * m4/glob.m4 (gl_GLOB_SUBSTITUTE): Remove macro.
15011
15012 2011-05-08  Paul Eggert  <eggert@cs.ucla.edu>
15013
15014         intprops: Sun C 5.11 supports __typeof__
15015         * lib/intprops.h (_GL_HAVE___TYPEOF__): New macro, which is set
15016         for either GCC 2 or later, as before, or for Sun C 5.11 or later,
15017         which is new.
15018         (_GL_SIGNED_TYPE_OR_EXPR): Use it.
15019
15020         intprops: switch to usual gnulib indenting and naming
15021         * lib/intprops.h (_GL_INTPROPS_H): Rename from GL_INTPROPS_H.
15022         (_GL_SIGNED_TYPE_OR_EXPR): Rename from signed_type_or_expr__.
15023
15024         * tests/test-inttostr.c (IS_TIGHT): Adjust to above renaming.
15025
15026 2011-05-08  Jim Meyering  <meyering@redhat.com>
15027
15028         maint.mk: suppress "Entering/Leaving directory" diag in announcement
15029         * top/maint.mk (release-prep): Use make's --no-print-directory
15030         option when generating the announcement.  This eliminates the
15031         pesky "make[2]: Entering/Leaving directory" diagnostics in the
15032         generated announcement template.
15033
15034 2011-05-08  Bruno Haible  <bruno@clisp.org>
15035
15036         tzset: Fix gettimeofday wrapper on Solaris 2.6.
15037         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): When invoking
15038         gl_GETTIMEOFDAY_REPLACE_LOCALTIME, also set REPLACE_GETTIMEOFDAY.
15039
15040 2011-05-07  Paul Eggert  <eggert@cs.ucla.edu>
15041
15042         ignore-value, verify: Omit include files from lib_SOURCES.
15043         * modules/ignore-value, modules/verify (Makefile.am):
15044         Don't put ignore-value.h, or verify.h, into lib_SOURCES, as
15045         that leads Automake to duplicate use of am__objects_... variables
15046         in Makefile.in.  See
15047         <http://lists.gnu.org/archive/html/emacs-devel/2011-05/msg00257.html>.
15048
15049 2011-05-07  Bruno Haible  <bruno@clisp.org>
15050
15051         fclose: Simplify autoconf macro.
15052         * m4/fclose.m4 (gl_FUNC_FCLOSE): Assume gl_FUNC_FFLUSH_STDIN is
15053         defined.
15054
15055 2011-05-07  Bruno Haible  <bruno@clisp.org>
15056
15057         canonicalize-lgpl: Fix autoconf macro ordering bug.
15058         * m4/canonicalize.m4 (gl_CANONICALIZE_LGPL): Require
15059         gl_STDLIB_H_DEFAULTS.
15060
15061 2011-05-06  Eric Blake  <eblake@redhat.com>
15062
15063         maintainer-makefile: make sc_po_check easier to tune
15064         * top/maint.mk (sc_po_check): Allow overriding which non-VC files
15065         to probe for strings, such as an alternate location for gnulib.
15066
15067         fclose: guarantee behavior on seekable stdin
15068         * modules/fclose (Depends-on): Add fflush.
15069         * doc/posix-functions/fclose.texi (fclose): Document this.
15070         * tests/test-fclose.c (main): Make test for this unconditional.
15071
15072 2011-05-06  Bruno Haible  <bruno@clisp.org>
15073
15074         fflush, fpurge: Relicense under LGPLv2+.
15075         * modules/fflush (License): Change from LGPLv3+ to LGPLv2+.
15076         * modules/fpurge (License): Likewise.
15077         With permission from Eric Blake and Jim Meyering.
15078         Suggested by Eric Blake.
15079
15080 2011-05-06  Karl Berry  <karl@gnu.org>
15081
15082         * MODULES.html.sh (func_all_modules): remove exit.
15083
15084 2011-05-06  Jim Meyering  <meyering@redhat.com>
15085
15086         maint.mk: use info-gnu@ as the default only for a stable release
15087         * top/maint.mk: Don't default to info-gnu for alpha or beta releases.
15088         For those, just use $(PACKAGE_BUGREPORT), in which case we don't have
15089         to set the Mail-Followup-To header.  Prompted by Reuben Thomas in
15090         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/26488
15091
15092 2011-05-05  Paul Eggert  <eggert@cs.ucla.edu>
15093
15094         assert-h: new module, which supports C1X-style static_assert
15095         * lib/assert.in.h, m4/assert_h.m4, modules/assert-h: New files.
15096         * lib/verify.h: Revamp so that this can be copied into assert.h,
15097         while retaining the ability to use it standalone as before.
15098         Rename private identifiers so as not to encroach on the
15099         standard C namespace, since this is now used by assert.h.
15100         (_GL_VERIFY_TYPE): New macro, factoring out differing parts of
15101         the old verify_true.
15102         (_GL_VERIFY_TRUE): New macro, with much of the contents of
15103         the old verify_true.  Use _GL_VERIFY_TYPE.
15104         (_GL_VERIFY): New macro, with much of the contents of the old verify.
15105         (static_assert): New macro, if _GL_STATIC_ASSERT_H
15106         is defined and static_assert is not; _GL_STATIC_ASSERT_H is
15107         defined when this file is copied into the replacement assert.h.
15108         (_Static_assert): New macro, if _GL_STATIC_ASSERT_H is defined
15109         and _Static_assert is not built in.
15110         (verify_true, verify): Define only if _GL_STATIC_ASSERT_H is not
15111         defined, and use the new macros mentioned above.
15112         * doc/posix-headers/assert.texi: Document this.
15113
15114 2011-05-05  Bruno Haible  <bruno@clisp.org>
15115
15116         fclose, fflush: Respect rules for use of AC_LIBOBJ.
15117         * m4/fflush.m4 (gl_FUNC_FFLUSH): Don't invoke gl_REPLACE_FCLOSE.
15118         * m4/fclose.m4 (gl_FUNC_FCLOSE): Invoke gl_FUNC_FFLUSH_STDIN and
15119         gl_REPLACE_FCLOSE here.
15120         * modules/fflush (Depends-on): Remove fclose.
15121         * doc/posix-functions/fclose.texi: Mention module 'fflush' only in
15122         combination with module 'fclose'.
15123
15124 2011-05-05  Bruno Haible  <bruno@clisp.org>
15125
15126         fflush, fseeko: Respect rules for use of AC_LIBOBJ.
15127         * m4/fflush.m4 (gl_FUNC_FFLUSH_STDIN): New macro, extracted from
15128         gl_FUNC_FFLUSH.
15129         (gl_FUNC_FFLUSH): Use it.
15130         (gl_REPLACE_FFLUSH): Don't invoke gl_REPLACE_FSEEKO.
15131         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Invoke gl_FUNC_FFLUSH_STDIN and
15132         gl_REPLACE_FSEEKO here.
15133
15134 2011-05-05  Bruno Haible  <bruno@clisp.org>
15135
15136         tzset: Relicense under LGPL.
15137         * modules/tzset (License): Change to LGPL.
15138         No agreement needed; it's a no-op.
15139
15140         strtoimax, strtoumax: Relicense under LGPL.
15141         * modules/strtoimax (License): Change to LGPL.
15142         * modules/strtoumax (License): Likewise.
15143         With permission from Jim Meyering, Paul Eggert:
15144         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00124.html>
15145         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00109.html>
15146
15147         getgroups: Relicense under LGPL.
15148         * modules/getgroups (License): Change to LGPL.
15149         With permission from Jim Meyering, Paul Eggert, Eric Blake:
15150         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00111.html>
15151         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00148.html>
15152         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00138.html>
15153
15154         nanosleep: Relicense under LGPL.
15155         * modules/nanosleep (License): Change to LGPL.
15156         With permission from Jim Meyering, Paul Eggert, Eric Blake, Bruno
15157         Haible:
15158         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00111.html>
15159         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00148.html>
15160         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00138.html>
15161         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00131.html>
15162
15163         futimens: Relicense under LGPL.
15164         * modules/futimens (License): Change to LGPL.
15165         With permission from Eric Blake:
15166         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00138.html>
15167
15168         fflush: Relicense under LGPL.
15169         * modules/fflush (License): Change to LGPL.
15170         With permission from Eric Blake, Bruno Haible, Jim Meyering:
15171         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00138.html>
15172         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00131.html>
15173         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00133.html>
15174
15175         tmpfile: Relicense under LGPL.
15176         * modules/tmpfile (License): Change to LGPL.
15177         With permission from Ben Pfaff:
15178         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00185.html>
15179
15180         isfinite: Relicense under LGPL.
15181         * modules/isfinite (License): Change to LGPL.
15182         With permission from Ben Pfaff, Bruno Haible:
15183         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00185.html>
15184         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00130.html>
15185
15186         acosl..tanl: Relicense under LGPL.
15187         * modules/acosl (License): Change to LGPL.
15188         * modules/asinl (License): Likewise.
15189         * modules/atanl (License): Likewise.
15190         * modules/cosl (License): Likewise.
15191         * modules/expl (License): Likewise.
15192         * modules/logl (License): Likewise.
15193         * modules/sinl (License): Likewise.
15194         * modules/sqrtl (License): Likewise.
15195         * modules/tanl (License): Likewise.
15196         Source code originally from glibc and Paolo Bonzini. Agreements:
15197         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00137.html>
15198         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00128.html>
15199
15200 2011-05-05  Bruno Haible  <bruno@clisp.org>
15201
15202         signal: Define sighandler_t.
15203         * lib/signal.in.h (sighandler_t): New type.
15204         * m4/signal_h.m4 (gl_SIGNAL_H): Require AC_USE_SYSTEM_EXTENSIONS. Test
15205         whether sighandler_t is defined.
15206         (gl_SIGNAL_H_DEFAULTS): Initialize HAVE_SIGHANDLER_T.
15207         * modules/signal (Depends-on): Add extensions.
15208         (Makefile.am): Substitute HAVE_SIGHANDLER_T.
15209         * doc/posix-headers/signal.texi: Mention the problem with sighandler_t.
15210         Suggested by Markus Steinborn <gnugv_maintainer@yahoo.de>.
15211
15212 2011-05-05  Eric Blake  <eblake@redhat.com>
15213
15214         maint: remove useless REPLACE_*_H macros
15215         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Delete.
15216         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H): Likewise.
15217         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H): Likewise.
15218         * m4/poll_h.m4 (gl_REPLACE_POLL_H): Likewise.
15219         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H): Likewise.
15220         * m4/sys_ioctl_h.m4 (gl_REPLACE_SYS_IOCTL_H): Likewise.
15221         * m4/wchar_h.m4 (gl_REPLACE_WCHAR_H): Likewise.
15222         * m4/btowc.m4: Update callers.
15223         * m4/dirfd.m4: Likewise.
15224         * m4/duplocale.m4: Likewise.
15225         * m4/fchdir.m4: Likewise.
15226         * m4/fdopendir.m4: Likewise.
15227         * m4/inet_ntop.m4: Likewise.
15228         * m4/inet_pton.m4: Likewise.
15229         * m4/ioctl.m4: Likewise.
15230         * m4/mbrlen.m4: Likewise.
15231         * m4/mbrtowc.m4: Likewise.
15232         * m4/mbsinit.m4: Likewise.
15233         * m4/mbsnrtowcs.m4: Likewise.
15234         * m4/mbsrtowcs.m4: Likewise.
15235         * m4/poll.m4: Likewise.
15236         * m4/setlocale.m4: Likewise.
15237         * m4/wcrtomb.m4: Likewise.
15238         * m4/wcsnrtombs.m4: Likewise.
15239         * m4/wcsrtombs.m4: Likewise.
15240         * m4/wctob.m4: Likewise.
15241         * m4/wcwidth.m4: Likewise.
15242         * modules/posix_spawn: Likewise.
15243         * modules/posix_spawn_file_actions_addclose: Likewise.
15244         * modules/posix_spawn_file_actions_adddup2: Likewise.
15245         * modules/posix_spawn_file_actions_addopen: Likewise.
15246         * modules/posix_spawn_file_actions_destroy: Likewise.
15247         * modules/posix_spawn_file_actions_init: Likewise.
15248         * modules/posix_spawnattr_destroy: Likewise.
15249         * modules/posix_spawnattr_getflags: Likewise.
15250         * modules/posix_spawnattr_getpgroup: Likewise.
15251         * modules/posix_spawnattr_getschedparam: Likewise.
15252         * modules/posix_spawnattr_getschedpolicy: Likewise.
15253         * modules/posix_spawnattr_getsigdefault: Likewise.
15254         * modules/posix_spawnattr_getsigmask: Likewise.
15255         * modules/posix_spawnattr_init: Likewise.
15256         * modules/posix_spawnattr_setflags: Likewise.
15257         * modules/posix_spawnattr_setpgroup: Likewise.
15258         * modules/posix_spawnattr_setschedparam: Likewise.
15259         * modules/posix_spawnattr_setschedpolicy: Likewise.
15260         * modules/posix_spawnattr_setsigdefault: Likewise.
15261         * modules/posix_spawnattr_setsigmask: Likewise.
15262         * modules/posix_spawnp: Likewise.
15263
15264 2011-05-04  Reuben Thomas  <rrt@sc3d.org>
15265
15266         Add option to do-release-commit-and-tag to specify branch.
15267         * build-aux/do-release-commit-and-tag: Add --branch.
15268
15269 2011-05-03  Bruno Haible  <bruno@clisp.org>
15270
15271         Avoid unnecessary compilation units, through conditional dependencies.
15272         * modules/accept (Depends-on): Add conditions to the dependencies.
15273         * modules/acosl (Depends-on): Likewise.
15274         * modules/argz (Depends-on): Likewise.
15275         * modules/asinl (Depends-on): Likewise.
15276         * modules/atanl (Depends-on): Likewise.
15277         * modules/atoll (Depends-on): Likewise.
15278         * modules/bind (Depends-on): Likewise.
15279         * modules/btowc (Depends-on): Likewise.
15280         * modules/canonicalize-lgpl (Depends-on): Likewise.
15281         * modules/ceil (Depends-on): Likewise.
15282         * modules/ceilf (Depends-on): Likewise.
15283         * modules/ceill (Depends-on): Likewise.
15284         * modules/chdir-long (Depends-on): Likewise.
15285         * modules/chown (Depends-on): Likewise.
15286         * modules/close (Depends-on): Likewise.
15287         * modules/connect (Depends-on): Likewise.
15288         * modules/cosl (Depends-on): Likewise.
15289         * modules/dirfd (Depends-on): Likewise.
15290         * modules/dprintf (Depends-on): Likewise.
15291         * modules/dprintf-posix (Depends-on): Likewise.
15292         * modules/error (Depends-on): Likewise.
15293         * modules/euidaccess (Depends-on): Likewise.
15294         * modules/expl (Depends-on): Likewise.
15295         * modules/faccessat (Depends-on): Likewise.
15296         * modules/fchdir (Depends-on): Likewise.
15297         * modules/fclose (Depends-on): Likewise.
15298         * modules/fcntl (Depends-on): Likewise.
15299         * modules/fdopendir (Depends-on): Likewise.
15300         * modules/fflush (Depends-on): Likewise.
15301         * modules/floor (Depends-on): Likewise.
15302         * modules/floorf (Depends-on): Likewise.
15303         * modules/floorl (Depends-on): Likewise.
15304         * modules/fnmatch (Depends-on): Likewise.
15305         * modules/fopen (Depends-on): Likewise.
15306         * modules/fprintf-posix (Depends-on): Likewise.
15307         * modules/frexp (Depends-on): Likewise.
15308         * modules/frexp-nolibm (Depends-on): Likewise.
15309         * modules/frexpl (Depends-on): Likewise.
15310         * modules/frexpl-nolibm (Depends-on): Likewise.
15311         * modules/fseek (Depends-on): Likewise.
15312         * modules/fsusage (Depends-on): Likewise.
15313         * modules/ftell (Depends-on): Likewise.
15314         * modules/ftello (Depends-on): Likewise.
15315         * modules/futimens (Depends-on): Likewise.
15316         * modules/getcwd (Depends-on): Likewise.
15317         * modules/getcwd-lgpl (Depends-on): Likewise.
15318         * modules/getdelim (Depends-on): Likewise.
15319         * modules/getdomainname (Depends-on): Likewise.
15320         * modules/getgroups (Depends-on): Likewise.
15321         * modules/gethostname (Depends-on): Likewise.
15322         * modules/getline (Depends-on): Likewise.
15323         * modules/getlogin_r (Depends-on): Likewise.
15324         * modules/getopt-posix (Depends-on): Likewise.
15325         * modules/getpeername (Depends-on): Likewise.
15326         * modules/getsockname (Depends-on): Likewise.
15327         * modules/getsockopt (Depends-on): Likewise.
15328         * modules/getsubopt (Depends-on): Likewise.
15329         * modules/getusershell (Depends-on): Likewise.
15330         * modules/glob (Depends-on): Likewise.
15331         * modules/grantpt (Depends-on): Likewise.
15332         * modules/iconv_open (Depends-on): Likewise.
15333         * modules/iconv_open-utf (Depends-on): Likewise.
15334         * modules/inet_ntop (Depends-on): Likewise.
15335         * modules/inet_pton (Depends-on): Likewise.
15336         * modules/ioctl (Depends-on): Likewise.
15337         * modules/isapipe (Depends-on): Likewise.
15338         * modules/isfinite (Depends-on): Likewise.
15339         * modules/isinf (Depends-on): Likewise.
15340         * modules/lchown (Depends-on): Likewise.
15341         * modules/ldexpl (Depends-on): Likewise.
15342         * modules/link (Depends-on): Likewise.
15343         * modules/linkat (Depends-on): Likewise.
15344         * modules/listen (Depends-on): Likewise.
15345         * modules/logl (Depends-on): Likewise.
15346         * modules/lstat (Depends-on): Likewise.
15347         * modules/mbrlen (Depends-on): Likewise.
15348         * modules/mbrtowc (Depends-on): Likewise.
15349         * modules/mbsinit (Depends-on): Likewise.
15350         * modules/mbsnrtowcs (Depends-on): Likewise.
15351         * modules/mbsrtowcs (Depends-on): Likewise.
15352         * modules/mbtowc (Depends-on): Likewise.
15353         * modules/memcmp (Depends-on): Likewise.
15354         * modules/mkdir (Depends-on): Likewise.
15355         * modules/mkdtemp (Depends-on): Likewise.
15356         * modules/mkfifo (Depends-on): Likewise.
15357         * modules/mkfifoat (Depends-on): Likewise.
15358         * modules/mknod (Depends-on): Likewise.
15359         * modules/mkostemp (Depends-on): Likewise.
15360         * modules/mkostemps (Depends-on): Likewise.
15361         * modules/mkstemp (Depends-on): Likewise.
15362         * modules/mkstemps (Depends-on): Likewise.
15363         * modules/mktime (Depends-on): Likewise.
15364         * modules/nanosleep (Depends-on): Likewise.
15365         * modules/open (Depends-on): Likewise.
15366         * modules/openat (Depends-on): Likewise.
15367         * modules/perror (Depends-on): Likewise.
15368         * modules/poll (Depends-on): Likewise.
15369         * modules/popen (Depends-on): Likewise.
15370         * modules/posix_spawn (Depends-on): Likewise.
15371         * modules/posix_spawn_file_actions_addclose (Depends-on): Likewise.
15372         * modules/posix_spawn_file_actions_adddup2 (Depends-on): Likewise.
15373         * modules/posix_spawn_file_actions_addopen (Depends-on): Likewise.
15374         * modules/posix_spawnp (Depends-on): Likewise.
15375         * modules/pread (Depends-on): Likewise.
15376         * modules/printf-posix (Depends-on): Likewise.
15377         * modules/ptsname (Depends-on): Likewise.
15378         * modules/putenv (Depends-on): Likewise.
15379         * modules/pwrite (Depends-on): Likewise.
15380         * modules/readline (Depends-on): Likewise.
15381         * modules/readlink (Depends-on): Likewise.
15382         * modules/readlinkat (Depends-on): Likewise.
15383         * modules/recv (Depends-on): Likewise.
15384         * modules/recvfrom (Depends-on): Likewise.
15385         * modules/regex (Depends-on): Likewise.
15386         * modules/remove (Depends-on): Likewise.
15387         * modules/rename (Depends-on): Likewise.
15388         * modules/renameat (Depends-on): Likewise.
15389         * modules/rmdir (Depends-on): Likewise.
15390         * modules/round (Depends-on): Likewise.
15391         * modules/roundf (Depends-on): Likewise.
15392         * modules/roundl (Depends-on): Likewise.
15393         * modules/rpmatch (Depends-on): Likewise.
15394         * modules/select (Depends-on): Likewise.
15395         * modules/send (Depends-on): Likewise.
15396         * modules/sendto (Depends-on): Likewise.
15397         * modules/setenv (Depends-on): Likewise.
15398         * modules/setlocale (Depends-on): Likewise.
15399         * modules/setsockopt (Depends-on): Likewise.
15400         * modules/shutdown (Depends-on): Likewise.
15401         * modules/sigaction (Depends-on): Likewise.
15402         * modules/signbit (Depends-on): Likewise.
15403         * modules/sigprocmask (Depends-on): Likewise.
15404         * modules/sinl (Depends-on): Likewise.
15405         * modules/sleep (Depends-on): Likewise.
15406         * modules/snprintf (Depends-on): Likewise.
15407         * modules/snprintf-posix (Depends-on): Likewise.
15408         * modules/socket (Depends-on): Likewise.
15409         * modules/sprintf-posix (Depends-on): Likewise.
15410         * modules/sqrtl (Depends-on): Likewise.
15411         * modules/stat (Depends-on): Likewise.
15412         * modules/strchrnul (Depends-on): Likewise.
15413         * modules/strdup-posix (Depends-on): Likewise.
15414         * modules/strerror (Depends-on): Likewise.
15415         * modules/strerror_r-posix (Depends-on): Likewise.
15416         * modules/strndup (Depends-on): Likewise.
15417         * modules/strnlen (Depends-on): Likewise.
15418         * modules/strptime (Depends-on): Likewise.
15419         * modules/strsep (Depends-on): Likewise.
15420         * modules/strsignal (Depends-on): Likewise.
15421         * modules/strstr-simple (Depends-on): Likewise.
15422         * modules/strtod (Depends-on): Likewise.
15423         * modules/strtoimax (Depends-on): Likewise.
15424         * modules/strtok_r (Depends-on): Likewise.
15425         * modules/strtoumax (Depends-on): Likewise.
15426         * modules/symlink (Depends-on): Likewise.
15427         * modules/symlinkat (Depends-on): Likewise.
15428         * modules/tanl (Depends-on): Likewise.
15429         * modules/tcgetsid (Depends-on): Likewise.
15430         * modules/tmpfile (Depends-on): Likewise.
15431         * modules/trunc (Depends-on): Likewise.
15432         * modules/truncf (Depends-on): Likewise.
15433         * modules/truncl (Depends-on): Likewise.
15434         * modules/uname (Depends-on): Likewise.
15435         * modules/unlink (Depends-on): Likewise.
15436         * modules/unlockpt (Depends-on): Likewise.
15437         * modules/unsetenv (Depends-on): Likewise.
15438         * modules/usleep (Depends-on): Likewise.
15439         * modules/utimensat (Depends-on): Likewise.
15440         * modules/vasprintf (Depends-on): Likewise.
15441         * modules/vdprintf (Depends-on): Likewise.
15442         * modules/vdprintf-posix (Depends-on): Likewise.
15443         * modules/vfprintf-posix (Depends-on): Likewise.
15444         * modules/vprintf-posix (Depends-on): Likewise.
15445         * modules/vsnprintf (Depends-on): Likewise.
15446         * modules/vsnprintf-posix (Depends-on): Likewise.
15447         * modules/vsprintf-posix (Depends-on): Likewise.
15448         * modules/wcrtomb (Depends-on): Likewise.
15449         * modules/wcscasecmp (Depends-on): Likewise.
15450         * modules/wcscspn (Depends-on): Likewise.
15451         * modules/wcsdup (Depends-on): Likewise.
15452         * modules/wcsncasecmp (Depends-on): Likewise.
15453         * modules/wcsnrtombs (Depends-on): Likewise.
15454         * modules/wcspbrk (Depends-on): Likewise.
15455         * modules/wcsrtombs (Depends-on): Likewise.
15456         * modules/wcsspn (Depends-on): Likewise.
15457         * modules/wcsstr (Depends-on): Likewise.
15458         * modules/wcstok (Depends-on): Likewise.
15459         * modules/wcswidth (Depends-on): Likewise.
15460         * modules/wctob (Depends-on): Likewise.
15461         * modules/wctomb (Depends-on): Likewise.
15462         * modules/wctype (Depends-on): Likewise.
15463         * modules/wcwidth (Depends-on): Likewise.
15464         * modules/write (Depends-on): Likewise.
15465
15466 2011-05-03  Bruno Haible  <bruno@clisp.org>
15467
15468         Support for conditional dependencies.
15469         * doc/gnulib.texi (Module description): Document the syntax of
15470         conditional dependencies.
15471         * gnulib-tool: New option --conditional-dependencies.
15472         (func_usage): Document it.
15473         (cond_dependencies): New variable.
15474         (func_get_automake_snippet_conditional,
15475         func_get_automake_snippet_unconditional): New functions, extracted from
15476         func_get_automake_snippet.
15477         (func_get_automake_snippet): Use them.
15478         (sed_first_32_chars): New variable.
15479         (func_module_shellfunc_name): New function.
15480         (func_module_shellvar_name): New function.
15481         (func_module_conditional_name): New function.
15482         (func_uncond_add_module, func_conddep_add_module, func_cond_module_p,
15483         func_cond_module_condition): New functions.
15484         (func_modules_transitive_closure): Add support for conditional
15485         dependencies.
15486         (func_emit_lib_Makefile_am): For a conditional module, enclose the
15487         conditional automake snippet in an automake conditional.
15488         (func_emit_autoconf_snippets): Emit shell functions that contain the
15489         code for conditional modules.
15490         (func_import, func_create_testdir): Update specification.
15491
15492 2011-05-03  Eric Blake  <eblake@redhat.com>
15493
15494         test-getaddrinfo: report error information
15495         * tests/test-getaddrinfo.c (simple): Use err outside of dbprintf.
15496
15497 2011-05-03  Jim Meyering  <meyering@redhat.com>
15498
15499         bootstrap: avoid build failure when $GZIP is set
15500         * build-aux/bootstrap (check_versions): Do not treat $GZIP as a
15501         program name.  If defined at all, it is supposed to list gzip options.
15502         Reported by Alan Curry in http://debbugs.gnu.org/8609
15503
15504 2011-05-03  Reuben Thomas  <rrt@sc3d.org>
15505
15506         readme-release: new module with release instructions
15507         * modules/readme-release: New module.
15508         * top/README-release: New file, from coreutils, grep, diffutils.
15509         * MODULES.html.sh (Support for maintaining and releasing): Add it.
15510
15511 2011-05-02  Eric Blake  <eblake@redhat.com>
15512
15513         fflush: also replace fclose when fixing fflush
15514         * modules/fflush (Depends-on): Add fclose.
15515         * m4/fflush.m4 (gl_FUNC_FFLUSH): Also replace fclose.
15516         * lib/fclose.c (rpl_fclose): Don't cause spurious failures on
15517         memstreams with no backing fd.
15518         * doc/posix-functions/fclose.texi (fclose): Document the use of
15519         fflush module to fix the bug.
15520         * tests/test-fclose.c (main): Relax test when fclose is used in
15521         isolation.
15522
15523         fclose: add some tests
15524         * modules/fclose-tests: New test module.
15525         * tests/test-fclose.c: New file.
15526         * doc/posix-functions/fclose.texi (fclose): Document the bug.
15527
15528         fclose: reduced dependencies
15529         * modules/fclose (Depends-on): Switch from fflush/fseeko to
15530         simpler lseek.
15531         * lib/fclose.c (rpl_fclose): Likewise.
15532         Reported by Simon Josefsson.
15533
15534         exit: drop remaining clients
15535         * modules/argmatch (Depends-on): Replace exit with stdlib.
15536         * modules/copy-file (Depends-on): Likewise.
15537         * modules/execute (Depends-on): Likewise.
15538         * modules/exitfail (Depends-on): Likewise.
15539         * modules/obstack (Depends-on): Likewise.
15540         * modules/pagealign_alloc (Depends-on): Likewise.
15541         * modules/pipe-filter-gi (Depends-on): Likewise.
15542         * modules/pipe-filter-ii (Depends-on): Likewise.
15543         * modules/savewd (Depends-on): Likewise.
15544         * modules/spawn-pipe (Depends-on): Likewise.
15545         * modules/wait-process (Depends-on): Likewise.
15546         * modules/xsetenv (Depends-on): Likewise.
15547         * modules/chdir-long (Depends-on): Add stdlib, for EXIT_FAILURE.
15548         * modules/git-merge-changelog (Depends-on): Likewise.
15549         * modules/long-options (Depends-on): Likewise.
15550         * modules/pt_chown (Depends-on): Likewise.
15551         * modules/sysexits (Depends-on): Likewise.
15552
15553         freading: relax license from LGPLv3+ to LGPLv2+
15554         * modules/freading (License): Relax LGPL version.
15555
15556 2011-05-02  Bruno Haible  <bruno@clisp.org>
15557
15558         fchdir: Remove unused dependencies.
15559         * modules/fchdir (Depends-on): Remove include_next.
15560
15561 2011-05-02  Bruno Haible  <bruno@clisp.org>
15562
15563         gnulib-tool: Refactor.
15564         * gnulib-tool (func_emit_autoconf_snippet): New function, extracted
15565         from func_emit_autoconf_snippets.
15566         (func_emit_autoconf_snippets): Use it.
15567
15568 2011-05-02  Simon Josefsson  <simon@josefsson.org>
15569
15570         * NEWS: Document removal of 'exit'.
15571         * modules/exit: Remove file.
15572
15573 2011-05-01  Bruno Haible  <bruno@clisp.org>
15574
15575         Update DEPENDENCIES.
15576         * DEPENDENCIES (gettext): Recommend the newest release.
15577         Reported by Simon Josefsson.
15578
15579 2011-05-01  Bruno Haible  <bruno@clisp.org>
15580
15581         gnulib-tool: Reduce code duplication.
15582         * gnulib-tool (func_emit_autoconf_snippets): New function.
15583         (func_import, func_create_testdir): Use it.
15584
15585 2011-04-30  Eric Blake  <eblake@redhat.com>
15586
15587         fclose: don't fail on non-seekable input stream
15588         * modules/fclose (Depends-on): Add freading, fflush, fseeko.
15589         * lib/fclose.c (rpl_fclose): Skip fflush for non-seekable input,
15590         since fflush is allowed to fail in that case.
15591
15592 2011-04-30  Bruno Haible  <bruno@clisp.org>
15593
15594         dup3: cleanup
15595         * lib/dup3.c: Remove old code, leftover from 2009-12-16.
15596
15597 2011-04-30  Bruno Haible  <bruno@clisp.org>
15598
15599         netdb: Make it work in C++ mode.
15600         * lib/netdb.in.h (struct addrinfo): In C++, define as a C struct.
15601         (getaddrinfo, freeaddrinfo, getnameinfo): Use macros from c++defs
15602         module.
15603         * m4/netdb_h.m4 (gl_NETDB_MODULE_INDICATOR): Invoke
15604         gl_MODULE_INDICATOR_FOR_TESTS.
15605         * modules/netdb-tests (Depends-on): Add netdb-c++-tests.
15606         * modules/netdb-c++-tests: New file.
15607         * tests/test-netdb-c++.cc: New file.
15608
15609 2011-04-30  Bruno Haible  <bruno@clisp.org>
15610
15611         New modules 'vfscanf', 'vscanf'.
15612         * modules/vfscanf: New file.
15613         * modules/vscanf: New file.
15614         * m4/stdio_h.m4 (gl_STDIO_H): Don't set GNULIB_VFSCANF, GNULIB_VSCANF
15615         here.
15616         * doc/posix-functions/vfscanf.texi: Mention module 'vfscanf'.
15617         * doc/posix-functions/vscanf.texi: Mention module 'vscanf'.
15618
15619 2011-04-30  Bruno Haible  <bruno@clisp.org>
15620
15621         passfd: Add comments.
15622         * lib/passfd.c: Add comments about platforms.
15623
15624 2011-04-30  Bruno Haible  <bruno@clisp.org>
15625
15626         sys_uio: Make <sys/uio.h> self-contained.
15627         * lib/sys_uio.in.h: Include <sys/types.h> before <sys/uio.h>.
15628         * doc/posix-headers/sys_uio.texi: Mention the OpenBSD problem.
15629
15630 2011-04-30  Bruno Haible  <bruno@clisp.org>
15631
15632         sys_socket: Ensure 'struct iovec' definition.
15633         * lib/sys_socket.in.h: Include <sys/uio.h> also on platforms that have
15634         <sys/socket.h>.
15635         * doc/posix-headers/sys_socket.texi: Mention the OpenBSD problem.
15636
15637 2011-04-30  Bruno Haible  <bruno@clisp.org>
15638
15639         sys_uio: Protect definition of 'struct iovec'.
15640         * lib/sys_uio.in.h (struct iovec): Avoid redefinition. In C++, define
15641         it as a C struct.
15642
15643 2011-04-30  Bruno Haible  <bruno@clisp.org>
15644
15645         manywarnings: fix indentation
15646         * m4/manywarnings.m4: Indent by 2 spaces consistently.
15647
15648 2011-04-30  Pádraig Brady <P@draigBrady.com>
15649
15650         manywarnings: add -Wno-missing-field-initializers if needed.
15651         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add the above
15652         option if it's needed to allow initialization with { 0, }
15653
15654 2011-04-29  Reuben Thomas  <rrt@sc3d.org>
15655
15656         announce-gen: cosmetic improvement
15657         * build-aux/announce-gen: Strip any leading ./ from the NEWS file name.
15658
15659 2011-04-29  Jim Meyering  <meyering@redhat.com>
15660
15661         vc-list-files: indent with spaces, not TABs
15662         * build-aux/vc-list-files: Convert leading TABs to spaces,
15663         to match the style of most other files in gnulib.
15664
15665         announce-gen: indent with spaces, not TABs
15666         * build-aux/announce-gen: Convert all TABs to spaces, to match
15667         the style of most other files in gnulib.
15668
15669 2011-04-29  Eric Blake  <eblake@redhat.com>
15670
15671         quotearg: avoid uninitialized variable use
15672         * lib/quotearg.c (quoting_options_from_style): Initialize
15673         remaining fields, and ensure that custom styles are only used via
15674         quoting_options rather than quoting_style.
15675
15676 2011-04-29  Jim Meyering  <meyering@redhat.com>
15677
15678         maint.mk: remove unused VC-tag variable
15679         * top/maint.mk (VC-tag): Remove unused variable.
15680
15681 2011-04-29  Bruno Haible  <bruno@clisp.org>
15682
15683         netdb: fix gai_strerror replacements
15684         * lib/netdb.in.h: Add _GL_FUNCDECL_RPL definitions.
15685         * modules/netdb: Substitute it.
15686
15687 2011-04-29  Jim Meyering  <meyering@redhat.com>
15688
15689         test-getcwd.c: avoid new set-but-not-used warning
15690         * tests/test-getcwd.c (test_abort_bug): Exit nonzero for any problem,
15691         not just the glibc/abort one that getcwd-abort-bug.m4 detects.
15692         * m4/getcwd-abort-bug.m4: Update this now-duplicated code to match,
15693         and adjust the code that sets gl_cv_func_getcwd_abort_bug accordingly.
15694
15695         test-hash.c: avoid a new shadowing warning
15696         * tests/test-hash.c (main): Don't shadow "dup".
15697
15698 2011-04-28  Eric Blake  <eblake@redhat.com>
15699
15700         getaddrinfo: fix gai_strerror signature
15701         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Detect broken signatures,
15702         and work around mingw with UNICODE defined.
15703         (gl_PREREQ_GETADDRINFO): Drop redundant decl check.
15704         * m4/netdb_h.m4 (gl_NETDB_H_DEFAULTS): Add witness.
15705         * modules/netdb (Makefile.am): Substitute it.
15706         * lib/netdb.in.h (gai_strerror): Declare replacement.
15707         * lib/gai_strerror.c (rpl_gai_strerror): Fix signature.
15708         * doc/posix-functions/gai_strerror.texi (gai_strerror): Document
15709         the fix.
15710
15711         getsockopt: avoid compiler warning
15712         * lib/getsockopt.c (rpl_getsockopt): Add a cast for mingw.
15713         Reported by Matthias Bolte.
15714
15715         tests: drop unused link dependency
15716         * modules/areadlinkat-tests (Makefile.am): Drop stale LDADD.
15717         * modules/dirent-safer-tests (Makefile.am): Likewise.
15718         * modules/fdopendir-tests (Makefile.am): Likewise.
15719         * modules/mkfifoat-tests (Makefile.am): Likewise.
15720         * modules/openat-safer-tests (Makefile.am): Likewise.
15721         * modules/openat-tests (Makefile.am): Likewise.
15722         * modules/readlinkat-tests (Makefile.am): Likewise.
15723         * modules/symlinkat-tests (Makefile.am): Likewise.
15724         * modules/linkat-tests (Makefile.am): Likewise.
15725         (Depends-on): Switch to filenamecat-lgpl.
15726         * modules/fdutimensat-tests (test_fdutimensat_LDADD): Drop unused
15727         LIBINTL.
15728         * modules/utimensat-tests (test_utimensat_LDADD): Likewise.
15729         * tests/test-linkat.c (main): Don't require xalloc.
15730
15731         hash, mgetgroups: drop xalloc dependency
15732         * lib/hash.c (includes): Adjust includes.
15733         * lib/mgetgroups.c (includes): Likewise.
15734         (xgetgroups): Move...
15735         * lib/xgetgroups.c: ...to new file.
15736         * lib/mgetgroups.h (xgetgroups): Make declaration conditional.
15737         * modules/xgetgroups: New file, split from...
15738         * modules/mgetgroups: ...here.
15739         (Depends-on): Add xalloc-oversized.
15740         * modules/hash (Depends-on): Likewise.
15741         * modules/hash-tests (Depends-on): Drop xalloc.
15742         (test_hash_LDADD): Drop unused library.
15743         * tests/test-hash.c (main): Break xalloc dependency.
15744         (includes): Drop unused include.
15745
15746         xalloc-oversized: new module
15747         * modules/xalloc-oversized: New module.
15748         * modules/xalloc (Depends-on): Add it.
15749         * lib/xalloc.h (xalloc_oversized): Move...
15750         * lib/xalloc-oversized.h: ...into new file.
15751
15752         utimecmp: drop dependency on xmalloc
15753         * lib/utimecmp.c (utimecmp): Work even if hash table cache fails
15754         due to memory pressure.
15755         * modules/utimecmp (Depends-on): Drop xalloc.
15756
15757 2011-04-27  Eric Blake  <eblake@redhat.com>
15758
15759         getcwd: fix mingw bugs
15760         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Detect one mingw bug.
15761         * doc/posix-functions/getcwd.texi (getcwd): Document the problems.
15762         * lib/getcwd-lgpl.c (rpl_getcwd): Fix return type.
15763
15764 2011-04-27  Bruno Haible  <bruno@clisp.org>
15765
15766         mkstemps: Ensure declaration on MacOS X 10.5.
15767         * lib/stdlib.in.h: Include <unistd.h> when mkstemps is requested.
15768         * doc/glibc-functions/mkstemps.texi: Document header file problem on
15769         MacOS X.
15770
15771 2011-04-27  Bruno Haible  <bruno@clisp.org>
15772
15773         mkstemp: More documentation.
15774         * doc/posix-functions/mkstemp.texi: Document header file problem on
15775         MacOS X.
15776
15777 2011-04-27  Bruno Haible  <bruno@clisp.org>
15778
15779         mkstemp: Tweak configure message when cross-compiling.
15780         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): When cross-compiling, qualify the
15781         result as a guess.
15782
15783 2011-04-27  Bruno Haible  <bruno@clisp.org>
15784
15785         clean-temp: Clarify what it does.
15786         * lib/clean-temp.h: Add more comments.
15787         * doc/posix-functions/mkstemp.texi: Tweak reference to 'clean-temp'
15788         module.
15789         * doc/glibc-functions/mkostemp.texi: Mention 'clean-temp' here too.
15790         * doc/glibc-functions/mkstemps.texi: Likewise.
15791         * doc/glibc-functions/mkostemps.texi: Likewise.
15792
15793 2011-04-27  Eric Blake  <eblake@redhat.com>
15794
15795         fchdir: avoid extra chdir and fix test
15796         * modules/fchdir (Depends-on): Add dosname, filenamecat-lgpl,
15797         getcwd-lgpl.
15798         * lib/fchdir.c (get_name): Any absolute name will do; it does not
15799         have to be canonical.
15800         (canonicalize_file_name): Drop unused macro.
15801         * m4/dup2.m4 (gl_REPLACE_DUP2): Ensure dup2 is replaced.
15802
15803         filenamecat-lgpl: fix licence
15804         * modules/filenamecat-lgpl (License): Mark as LGPLv2+, as intended
15805         when it was first created.
15806
15807         linkat, renameat: add missing dependency
15808         * modules/linkat (Depends-on): Require getcwd-lgpl.
15809         * modules/renameat (Depends-on): Likewise.
15810
15811         tests: reduce dependencies
15812         * tests/test-linkat.c (main): Use lighter-weight getcwd.
15813         * tests/test-renameat.c (main): Likewise.
15814         * modules/linkat-tests (Depends-on): Relax dependency.
15815         * modules/renameat-tests (Depends-on): Likewise.
15816         * modules/fchdir-tests (Depends-on): Likewise.  Also make cloexec
15817         dependency explicit.
15818
15819         save-cwd: reduce default dependency
15820         * modules/save-cwd (Depends-on): Use getcwd-lgpl.
15821         * lib/save-cwd.c: Update comments.
15822         * NEWS: Document the semantic change.
15823
15824         getcwd: enhance tests
15825         * tests/test-getcwd-lgpl.c: New file, taken from...
15826         * tests/test-getcwd.c: ...old contents.  Rewrite this file to
15827         repeat long path stress tests from m4 probe.
15828         * modules/getcwd-lgpl-tests: New module.
15829         * modules/getcwd-tests (Depends-on): Depend on lgpl tests.
15830         * m4/getcwd-abort-bug.m4: Update comment.
15831         * m4/getcwd-path-max.m4: Likewise.
15832
15833         getcwd-lgpl: new module
15834         * modules/getcwd-lgpl: New module.
15835         * lib/getcwd-lgpl.c: New file.
15836         * doc/posix-functions/getcwd.texi (getcwd): Document it.
15837         * MODULES.html.sh (lacking POSIX:2008): Likewise.
15838         * modules/getcwd (configure.ac): Set C witness.
15839         * m4/getcwd.m4 (gl_FUNC_GETCWD_LGPL): New macro.
15840
15841         getcwd: tweak comments
15842         * m4/getcwd-abort-bug.m4: Fix comments.
15843         * m4/getcwd-path-max.m4: Likewise.
15844         * m4/getcwd.m4: Likewise.
15845
15846 2011-04-27  Reuben Thomas  <rrt@sc3d.org>
15847         and Eric Blake  <eblake@redhat.com>
15848
15849         mkstemp: replace if system version uses wrong permissions
15850         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Add test for non-owner
15851         read/write mode bits set in file created by mkstemp.
15852         * doc/posix-functions/mkstemp.texi (mkstemp): Document the fix.
15853
15854 2011-04-27  Eric Blake  <eblake@redhat.com>
15855
15856         passfd: avoid compiler warning
15857         * lib/passfd.c (sendfd, recvfd): Avoid shadowing names.
15858         Reported by Laine Stump.
15859
15860 2011-04-27  J.T. Conklin  <jtc@acorntoolworks.com>  (tiny change)
15861
15862         * gnulib-tool: change "join -a 2" to "join -a2", the latter is
15863         required by the NetBSD (and perhaps other 4.4BSD derived) join.
15864
15865 2011-04-27  Reuben Thomas  <rrt@sc3d.org>
15866         and Eric Blake  <eblake@redhat.com>
15867
15868         mkstemp: mention clean-temp module
15869         * lib/mkstemp.c: Add comment.
15870         * doc/posix-functions/mkstemp.texi (mkstemp): Likewise.
15871
15872 2011-04-26  Paul Eggert  <eggert@cs.ucla.edu>
15873
15874         inttypes: also provide default values for 32-bit tests
15875         * m4/inttypes.m4 (gl_INTTYPES_H_DEFAULTS): Also provide default values
15876         for INT32_MAX_LT_INTMAX_MAX and for UINT32_MAX_LT_UINTMAX_MAX.
15877
15878 2011-04-25  Paul Eggert  <eggert@cs.ucla.edu>
15879
15880         strtoumax: remove dependency on strtoimax
15881         This is like the strtoull change of yesterday.
15882         * modules/strtoumax (Files): Add lib/strtoimax.c.
15883         (Depends-on): Remove strtoimax and add verify.
15884
15885         inttypes-incomplete: new module
15886         * m4/inttypes.m4 (gl_INTTYPES_INCOMPLETE): New macro, containing
15887         all but the PRI* and SCN* parts of gl_INTTYPES_H.
15888         (gl_INTTYPES_PRI_SCN): New macro, containing the PRI* and SCN* parts
15889         of gl_INTTYPES_H.
15890         (gl_INTTYPES_H): Rewrite in terms of these new macros.
15891         (gl_INTTYPES_H_DEFAULTS): Provide defaults for the PRI* and SCN*
15892         parts, in case gl_INTTYPE_PRI_SCN is not invoked.
15893         * modules/imaxabs, modules/imaxdiv, modules/strtoimax (Depends-on):
15894         * modules/strtoumax, modules/xstrtol (Depends-on):
15895         Depend on inttypes-incomplete, not inttypes.
15896         * modules/inttypes-incomplete: New module, containing the contents
15897         of the old modules/inttypes module, except that the Files: section
15898         omits m4/inttypes-pri.m4, and the configure.ac section invokes
15899         gl_INTTYPES_INCOMPLETE rather than gl_INTTYPES_H.
15900         * modules/inttypes (Files): Remove lib/inttypes.in.h, m4/inttypes.m4.
15901         (Depends-on): Depend only on inttypes-incomplete.
15902         (Makefile.am): Remove everything; this is now in inttypes-incomplete.
15903
15904         inttypes: omit now-redundant strtoimax and strtoumax work
15905         * m4/inttypes.m4 (gl_INTTYPES_H): Do not check for strtoimax and
15906         strtoumax decls; gl_FUNC_STRTOIMAX and gl_FUNC_STRTOUMAX now do this.
15907
15908         strtoimax, strtoumax: simplify, port to HP-UX 11.00 64-bit
15909         This supports apps that need pointers to strtoimax and strtoumax,
15910         and ports to HP-UX 11.00 64.bit, which has macros that expand to
15911         nonexistent functions.  See
15912         <http://lists.gnu.org/archive/html/bug-gnulib/2011-04/msg00241.html>
15913         et seq.
15914         * lib/inttypes.in.h (strtoimax, strtoumax): #undef before declaring.
15915         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Don't check whether it's
15916         a macro.
15917         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
15918
15919 2011-04-25  Simon Josefsson  <simon@josefsson.org>
15920
15921         * modules/gnumakefile (configure.ac): Replace TAB with SPCs.
15922
15923 2011-04-25  Bruno Haible  <bruno@clisp.org>
15924
15925         strtol, strtoul: Mark modules as obsolete.
15926         * modules/strtol (Status, Notice): New sections.
15927         * modules/strtoul (Status, Notice): New sections.
15928
15929 2011-04-25  Bruno Haible  <bruno@clisp.org>
15930
15931         strtod: Remove check for strtod, unless supporting old platforms.
15932         * modules/strtod-obsolete: New file.
15933         * m4/strtod-obsolete.m4: New file.
15934         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't check whether strtod is declared
15935         if gl_FUNC_STRTOD_OBSOLETE is not also defined.
15936         * modules/strtod (Depends-on): Add strtod-obsolete.
15937         * doc/posix-functions/strtod.texi: Mention module strtod-obsolete.
15938
15939 2011-04-25  Bruno Haible  <bruno@clisp.org>
15940
15941         strcase: Make module obsolete.
15942         * modules/strcase (Status, Notice): New sections.
15943
15944 2011-04-25  Bruno Haible  <bruno@clisp.org>
15945
15946         dup2: Remove check for dup2, unless supporting old obsolete platforms.
15947         * modules/dup2-obsolete: New file.
15948         * m4/dup2-obsolete.m4: New file.
15949         * m4/dup2.m4 (gl_FUNC_DUP2): Don't check whether dup2 exists if
15950         gl_FUNC_DUP2_OBSOLETE is not also defined.
15951         * modules/dup2 (Depends-on): Add dup2-obsolete.
15952         * doc/posix-functions/dup2.texi: Mention module dup2-obsolete.
15953
15954 2011-04-25  Bruno Haible  <bruno@clisp.org>
15955
15956         strnlen: Avoid memchr related link error on old obsolete platforms.
15957         * modules/memchr-obsolete: New file.
15958         * m4/memchr-obsolete.m4: New file.
15959         * m4/memchr.m4 (gl_FUNC_MEMCHR): Don't check whether memchr exists if
15960         gl_FUNC_MEMCHR_OBSOLETE is not also defined.
15961         * modules/memchr (Depends-on): Add memchr-obsolete.
15962         * modules/strnlen (Depends-on): Likewise.
15963         * doc/posix-functions/memchr.texi: Mention module memchr-obsolete.
15964
15965 2011-04-25  Jim Meyering  <meyering@redhat.com>
15966
15967         maint.mk: makefile_at_at_check extend and clean up
15968         * top/maint.mk (sc_makefile_at_at_check): Check *.mk files
15969         in addition to */Makefile.am.
15970         Exempt legitimate uses of @VAR@ notation, e.g.,
15971         MAKEINFO = env LANG= LC_MESSAGES= LC_ALL= LANGUAGE= @MAKEINFO@
15972         Remove obsolete coreutils-specific comment.
15973         Prompted by discussion here:
15974         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/26074
15975
15976 2011-04-24  Paul Eggert  <eggert@cs.ucla.edu>
15977
15978         strtoul: remove dependency on strtol
15979         This is so that 'configure' need not check for strtol merely because
15980         the application needs strtoul.
15981         * modules/strtoul (Files): Add lib/strtol.c.
15982         (Depends-on): Remove strtol.
15983
15984         strtoull: remove dependency on strtoul
15985         This is like the strtoll change.
15986         * modules/strtoull (Files): Add lib/strtol.c, lib/strtoul.c.
15987         (Depends-on): Remove strtoul.
15988
15989         strtoll: remove dependency on strtol
15990         This is so that 'configure' need not check for strtol merely because
15991         the application needs strtoll.
15992         * modules/strtoll (Files): Add lib/strtol.c.
15993         (Depends-on): Remove strtol.
15994
15995 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
15996
15997         inttypes: Move some configure check to module 'imaxdiv'.
15998         * m4/imaxdiv.m4 (gl_FUNC_IMAXDIV): Require gl_INTTYPES_H_DEFAULTS
15999         instead of gl_INTTYPES_H.  Check for imaxdiv decl here.
16000         * m4/inttypes.m4 (gl_INTTYPES_H): Don't check for imaxdiv decl here.
16001
16002 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
16003
16004         inttypes: Move some configure check to module 'imaxabs'.
16005         * m4/imaxabs.m4 (gl_FUNC_IMAXABS): Require gl_INTTYPES_H_DEFAULTS
16006         instead of gl_INTTYPES_H.  Check for imaxabs decl here.
16007         * m4/inttypes.m4 (gl_INTTYPES_H): Don't check for imaxabs decl here.
16008
16009 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
16010
16011         inttypes: Remove configure tests that are not needed since 2009-12-31.
16012         * m4/inttypes.m4 (gl_INTTYPES_H): Remove determination of
16013         gl_cv_header_working_inttypes_h.
16014
16015 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
16016
16017         * modules/strnlen (Depends-on): Remove memchr.
16018         The strnlen implementation doesn't need the memchr module's fixes; see
16019         <http://lists.gnu.org/archive/html/bug-gnulib/2011-04/msg00237.html>.
16020
16021         strtol: remove dependency on wchar
16022         * lib/strtol.c: Include <wchar.h> only if USE_WIDE_CHAR is defined.
16023         * modules/strtol (Depends-on): Remove wchar.
16024
16025 2011-04-21  Eric Blake  <eblake@redhat.com>
16026
16027         passfd: fix test regression on Linux
16028         * modules/passfd-tests (configure.ac): Correct socketpair check.
16029
16030         passfd: speed up configure and drop unused code
16031         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Rename...
16032         * m4/passfd.m4 (gl_PASSFD): ...to something more fitting of
16033         its use.  Drop test for setting unused HAVE_UNIXSOCKET_SCM_RIGHTS.
16034         Instead of probing at configure for unix_scm_rights_bsd44_way,
16035         instead probe for CMSG_FIRSTHDR at compile time.  Simplify BSD 4.3
16036         check to a struct member probe.
16037         * lib/passfd.c (includes): Nothing here requires <sys/un.h>.
16038         (sendfd, recvfd): Update preprocessor checks.
16039         * modules/passfd (Files): Reflect rename, and drop unused file.
16040         (Depends-on): Drop unused dependency.
16041
16042         passfd: allow compilation on mingw
16043         * modules/sys_socket (Depends-on): Add sys_uio.
16044         * lib/sys_socket.in.h [!@HAVE_SYS_SOCKET_H@]: Use it for struct
16045         iovec and a minimal struct msghdr.
16046         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Detect recvmsg/sendmsg.
16047         * tests/test-sys_socket.c (main): Enhance test.
16048         * lib/passfd.c (include): Drop <sys/uio.h>; <sys/sockets.h> is
16049         guaranteed to provide what we need.
16050         (sendmsg, recvmsg): Declare fallbacks if we lack sendmsg.
16051         * modules/passfd-tests (Depends-on): Add sys_wait.
16052         * tests/test-passfd.c (main): Skip test on mingw, for now.
16053         * doc/posix-headers/sys_socket.texi (sys/socket.h): Document the
16054         partial 'struct msghdr' implementation.
16055
16056         sys_uio: new module
16057         * modules/sys_uio: New module.
16058         * modules/sys_uio-tests: Likewise.
16059         * lib/sys_uio.in.h: New file.
16060         * m4/sys_uio_h.m4: Likewise.
16061         * tests/test-sys_uio.c: Likewise.
16062         * doc/posix-headers/sys_uio.texi (sys/uio.h): Document it.
16063         * MODULES.html.sh (systems lacking POSIX:2008): Likewise.
16064
16065 2011-04-20  Jim Meyering  <meyering@redhat.com>
16066
16067         useless-if-before-free: avoid false-positive
16068         * build-aux/useless-if-before-free: Adjust regexp for the non-brace
16069         disjunct so that it too requires a terminating ";".  Without that,
16070         this script would identify as useless one statement from gcc that
16071         was not:
16072           if (aligned_ptr)
16073             free (((void **) aligned_ptr) [-1]);
16074
16075 2011-04-20  Giuseppe Scrivano  <gscrivano@gnu.org>
16076
16077         doc: update users.txt.
16078         * users.txt: Add barcode.
16079
16080 2011-04-19  Bruno Haible  <bruno@clisp.org>
16081
16082         ioctl: Remove link dependency on native Windows.
16083         * lib/fd-hook.h: Renamed from lib/close-hook.h.
16084         (gl_close_fn, gl_ioctl_fn): New types.
16085         (struct fd_hook): Renamed from struct close_hook. Change type of
16086         private_close_fn field. Add private_ioctl_fn field.
16087         (close_hook_fn): Add parameter for primary close method.
16088         (execute_close_hooks, execute_all_close_hooks): Likewise.
16089         (ioctl_hook_fn): New type.
16090         (execute_ioctl_hooks, execute_all_ioctl_hooks): New declarations.
16091         (register_fd_hook): Renamed from register_close_hook. Add ioctl_hook
16092         argument.
16093         (unregister_fd_hook): Renamed from unregister_close_hook.
16094         * lib/fd-hook.c: Renamed from lib/close-hook.c.
16095         Don't include <unistd.h>.
16096         (close): Remove undef.
16097         (anchor): Update.
16098         (execute_close_hooks): Add argument for primary close method.
16099         (execute_all_close_hooks): Likewise.
16100         (execute_ioctl_hooks, execute_all_ioctl_hooks): New functions.
16101         (register_fd_hook): Renamed from register_close_hook. Add ioctl_hook
16102         argument. Allow each argument to be NULL.
16103         (unregister_fd_hook): Renamed from unregister_close_hook.
16104         * lib/close.c (rpl_close): Pass 'close' function pointer to
16105         execute_all_close_hooks.
16106         * lib/ioctl.c: Include <errno.h>, fd-hook.h.
16107         (primary_ioctl): New function.
16108         (ioctl): Don't call ioctlsocket here. Instead, call
16109         execute_all_ioctl_hooks.
16110         * lib/sockets.c (close_fd_maybe_socket): Add argument for primary
16111         close method.
16112         (ioctl_fd_maybe_socket): New function, with code from lib/ioctl.c.
16113         (fd_sockets_hook): Renamed from close_sockets_hook.
16114         (gl_sockets_startup, gl_sockets_cleanup): Update.
16115         * modules/fd-hook: Renamed from modules/close-hook. Update.
16116         * modules/close (Depends-on): Add fd-hook, remove close-hook.
16117         * modules/sockets (Depends-on): Likewise.
16118         * modules/ioctl (Depends-on): Add fd-hook.
16119         * tests/test-nonblocking.c (main): Use GNULIB_TEST_SOCKET, not
16120         GNULIB_SOCKET.
16121
16122 2011-04-19  Bruno Haible  <bruno@clisp.org>
16123
16124         Move the support of O_NONBLOCK in open() to the 'open' module.
16125         * modules/nonblocking (Depends-on): Remove 'open'.
16126         * m4/nonblocking.m4 (gl_NONBLOCKING_IO_BODY): Set
16127         gl_cv_have_open_O_NONBLOCK.
16128         * m4/open.m4 (gl_FUNC_OPEN): Replace open() also when required for
16129         O_NONBLOCK support.
16130         * doc/posix-functions/open.texi: Document support for O_NONBLOCK.
16131
16132 2011-04-17  Bruno Haible  <bruno@clisp.org>
16133
16134         pipe2: Simplify code.
16135         * lib/pipe2.c (pipe2): Reduce code duplication.
16136
16137 2011-04-17  Bruno Haible  <bruno@clisp.org>
16138
16139         nonblocking: Add comment.
16140         * lib/fcntl.in.h (O_NONBLOCK): Add comment.
16141
16142 2011-04-17  Bruno Haible  <bruno@clisp.org>
16143
16144         nonblocking: Add tests for sockets.
16145         * tests/test-nonblocking-socket.sh: New file.
16146         * tests/test-nonblocking-socket-main.c: New file.
16147         * tests/test-nonblocking-socket-child.c: New file.
16148         * tests/test-nonblocking-socket.h: New file.
16149         * tests/socket-server.h: New file.
16150         * tests/socket-client.h: New file.
16151         * modules/nonblocking-socket-tests: New file.
16152         * modules/nonblocking-tests (Depends-on): Add nonblocking-socket-tests.
16153
16154 2011-04-17  Bruno Haible  <bruno@clisp.org>
16155
16156         nonblocking: Add tests for pipes.
16157         * tests/test-nonblocking-pipe.sh: New file.
16158         * tests/test-nonblocking-pipe-main.c: New file.
16159         * tests/test-nonblocking-pipe-child.c: New file.
16160         * tests/test-nonblocking-pipe.h: New file.
16161         * tests/test-nonblocking-writer.h: New file.
16162         * tests/test-nonblocking-reader.h: New file.
16163         * tests/test-nonblocking-misc.h: New file.
16164         * modules/nonblocking-pipe-tests: New file.
16165         * modules/nonblocking-tests (Depends-on): Add nonblocking-pipe-tests.
16166
16167 2011-04-16  Bruno Haible  <bruno@clisp.org>
16168
16169         gettext: Clarify the needed programmer actions.
16170         * modules/gettext (Notice): New field.
16171         Suggested by Ben Pfaff <blp@cs.stanford.edu>.
16172
16173 2011-04-16  Bruno Haible  <bruno@clisp.org>
16174
16175         strchrnul: Tweak last commit.
16176         * doc/glibc-functions/strchrnul.texi: Add more details about Cygwin
16177         bug.
16178         * lib/string.in.h (strchrnul): Use same arguments in _GL_FUNCDECL_RPL
16179         as in _GL_FUNCDECL_SYS.
16180         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Invoke gl_PREREQ_STRCHRNUL after
16181         AC_LIBOBJ. When cross-compiling, say "guessing yes" not "yes".
16182
16183 2011-04-15  Eric Blake  <eblake@redhat.com>
16184
16185         strchrnul: work around cygwin bug
16186         * doc/glibc-functions/strchrnul.texi (strchrnul): Document bug.
16187         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Detect it.
16188         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): New witness.
16189         * modules/string (Makefile.am): Substitute it.
16190         * lib/string.in.h (strchrnul): Use it.
16191
16192 2011-04-15  Bruno Haible  <bruno@clisp.org>
16193
16194         Don't require lib/stdio-write.c when only module 'stdio' is used.
16195         * m4/stdio_h.m4 (gl_STDIO_H): Move the AC_LIBOBJ back into the m4_ifdef
16196         invocation.
16197         Reported by Rob Vermaas <rob.vermaas@gmail.com>.
16198
16199 2011-04-14  Bruno Haible  <bruno@clisp.org>
16200
16201         Support non-blocking pipe I/O in read() on native Windows.
16202         * lib/unistd.in.h: Include <sys/types.h> also for 'read'.
16203         (read): New declaration.
16204         * lib/read.c: New file.
16205         * lib/stdio.in.h (_GL_ATTRIBUTE_FORMAT_SCANF,
16206         _GL_ATTRIBUTE_FORMAT_SCANF_SYSTEM): New macros.
16207         (fgetc, fgets, fread, fscanf, getc, getchar, gets, scanf, vfscanf,
16208         vscanf): New declarations.
16209         * lib/stdio-read.c: New file.
16210         * m4/read.m4: New file.
16211         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_READ,
16212         REPLACE_READ.
16213         * m4/stdio_h.m4 (gl_STDIO_H): Set GNULIB_FGETC, GNULIB_FGETS,
16214         GNULIB_FREAD, GNULIB_FSCANF, GNULIB_GETC, GNULIB_GETCHAR, GNULIB_GETS,
16215         GNULIB_SCANF, GNULIB_VFSCANF, GNULIB_VSCANF. In non-blocking I/O is
16216         desired and needs workarounds, set REPLACE_STDIO_READ_FUNCS.
16217         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FGETC, GNULIB_FGETS,
16218         GNULIB_FREAD, GNULIB_FSCANF, GNULIB_GETC, GNULIB_GETCHAR, GNULIB_GETS,
16219         GNULIB_SCANF, GNULIB_VFSCANF, GNULIB_VSCANF, REPLACE_STDIO_READ_FUNCS.
16220         * modules/read: New file.
16221         * modules/nonblocking (Files): Add lib/stdio-read.c.
16222         * modules/unistd (Makefile.am): Substitute GNULIB_READ, REPLACE_READ.
16223         * modules/stdio (Makefile.am): Substitute GNULIB_FGETC, GNULIB_FGETS,
16224         GNULIB_FREAD, GNULIB_FSCANF, GNULIB_GETC, GNULIB_GETCHAR, GNULIB_GETS,
16225         GNULIB_SCANF, GNULIB_VFSCANF, GNULIB_VSCANF, REPLACE_STDIO_READ_FUNCS.
16226         * modules/pread (Depends-on): Add read.
16227         * modules/safe-read (Depends-on): Likewise.
16228         * tests/test-stdio-c++.cc (fgetc, fgets, fread, fscanf, getc, getchar,
16229         gets, scanf, vfscanf, vscanf): Verify signatures.
16230         * doc/posix-functions/read.texi: Mention 'nonblocking' module and
16231         problem with non-blocking pipes.
16232         * doc/posix-functions/fgetc.texi: Likewise.
16233         * doc/posix-functions/fgets.texi: Likewise.
16234         * doc/posix-functions/fread.texi: Likewise.
16235         * doc/posix-functions/fscanf.texi: Likewise.
16236         * doc/posix-functions/getc.texi: Likewise.
16237         * doc/posix-functions/getchar.texi: Likewise.
16238         * doc/posix-functions/gets.texi: Likewise.
16239         * doc/posix-functions/scanf.texi: Likewise.
16240         * doc/posix-functions/vfscanf.texi: Likewise.
16241         * doc/posix-functions/vscanf.texi: Likewise.
16242
16243 2011-04-14  Bruno Haible  <bruno@clisp.org>
16244
16245         Support non-blocking pipe I/O in write() on native Windows.
16246         * lib/write.c (rpl_write): Split a write request that failed merely
16247         because the byte count was larger than the pipe buffer's size.
16248         * doc/posix-functions/write.texi: Mention the problem with large byte
16249         counts.
16250
16251 2011-04-14  Bruno Haible  <bruno@clisp.org>
16252
16253         wchar: Ensure that wchar_t gets defined on uClibc.
16254         * lib/wchar.in.h: On uClibc, include <stddef.h>.
16255         Reported by Giuseppe Scrivano <gscrivano@gnu.org>.
16256
16257 2011-04-13  Bruno Haible  <bruno@clisp.org>
16258
16259         safe-write, full-read: Avoid unnecessary compilation units.
16260         * modules/safe-write (Files): Add lib/safe-read.c, m4/safe-read.m4.
16261         (Depends-on): Remove safe-read. Add ssize_t.
16262         * modules/full-read (Files): Add lib/full-write.c.
16263         (Depends-on): Add full-write.
16264
16265 2011-04-13  Bruno Haible  <bruno@clisp.org>
16266
16267         Support non-blocking pipe I/O and SIGPIPE in pwrite().
16268         * modules/pwrite (Depends-on): Add 'write'.
16269
16270 2011-04-13  Bruno Haible  <bruno@clisp.org>
16271
16272         Support non-blocking pipe I/O in write() on native Windows.
16273         * lib/unistd.in.h (write): Enable replacement also if
16274         GNULIB_UNISTD_H_NONBLOCKING is 1.
16275         * lib/write.c: Enable replacement also if GNULIB_NONBLOCKING.
16276         (rpl_write): When failing to write on a non-blocking pipe, change
16277         errno from ENOSPC to EAGAIN.
16278         * lib/stdio.in.h (fprintf, fputc, fputs, fwrite, printf, putc,
16279         putchar, puts, vfprintf, vprintf): Enable replacement also if
16280         GNULIB_STDIO_H_NONBLOCKING is 1.
16281         * lib/stdio-write.c: Enable replacements also if GNULIB_NONBLOCKING.
16282         (CLEAR_ERRNO, HANDLE_ENOSPC): New macros.
16283         (CLEAR_LastError, HANDLE_ERROR_NO_DATA): New macros, extracted from
16284         CALL_WITH_SIGPIPE_EMULATION.
16285         (CALL_WITH_SIGPIPE_EMULATION): Use them.
16286         * m4/nonblocking.m4: New file.
16287         * m4/write.m4 (gl_FUNC_WRITE): Enable REPLACE_WRITE also if required
16288         for non-blocking I/O support.
16289         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
16290         GNULIB_UNISTD_H_NONBLOCKING.
16291         * m4/stdio_h.m4 (gl_STDIO_H): Enable REPLACE_STDIO_WRITE_FUNCS also if
16292         required for non-blocking I/O support.
16293         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_STDIO_H_NONBLOCKING.
16294         * modules/nonblocking (Files): Add m4/nonblocking.m4,
16295         lib/stdio-write.c, m4/asm-underscore.m4.
16296         (Depends-on): Add stdio, unistd.
16297         (configure.ac): Invoke gl_NONBLOCKING_IO. Define GNULIB_NONBLOCKING.
16298         Set GNULIB_STDIO_H_NONBLOCKING, GNULIB_UNISTD_H_NONBLOCKING.
16299         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_NONBLOCKING.
16300         * modules/stdio (Makefile.am): Substitute GNULIB_STDIO_H_NONBLOCKING.
16301         * doc/posix-functions/fprintf.texi: Mention 'nonblocking' module and
16302         problem with non-blocking pipes.
16303         * doc/posix-functions/fputc.texi: Likewise.
16304         * doc/posix-functions/fputs.texi: Likewise.
16305         * doc/posix-functions/fwrite.texi: Likewise.
16306         * doc/posix-functions/printf.texi: Likewise.
16307         * doc/posix-functions/putc.texi: Likewise.
16308         * doc/posix-functions/putchar.texi: Likewise.
16309         * doc/posix-functions/puts.texi: Likewise.
16310         * doc/posix-functions/vfprintf.texi: Likewise.
16311         * doc/posix-functions/vprintf.texi: Likewise.
16312         * doc/posix-functions/write.texi: Likewise.
16313
16314 2011-04-10  Jim Meyering  <meyering@redhat.com>
16315
16316         maint.mk: prohibit doubled words
16317         Detect them also when they're separated by a newline.
16318         There are 3 ways to customize it:
16319           - disable the test on a per file basis, as usual with rules using
16320             $(VC_LIST_EXCEPT)
16321           - replace the default doubled-word-selecting regexp (affects all files)
16322           - ignore a particular file-vs-doubled-word match
16323         I nearly used that last one to ignore the "is is" match in
16324         coreutils' NEWS file, since the text was "ls -is is ..."
16325         To do that, I would have added this line to cfg.mk:
16326           ignore_doubled_word_match_RE_ = ^NEWS:[0-9]+:is[ ]is$
16327         but it would have ignored any "is is" match in NEWS.
16328         Low probability, but still...
16329         Instead, I changed the text, slightly:
16330           -  ls -is is now consistent with ls -lis in ignoring values returned
16331           +  "ls -is" is now consistent with ls -lis in ignoring values returned
16332         * top/maint.mk (prohibit_double_word_RE_): Provide default.
16333         (prohibit_doubled_word_): Define.
16334         (sc_prohibit_doubled_word): New rule.
16335         (sc_prohibit_the_the): Remove.  Subsumed by the above.
16336
16337 2011-04-10  Jim Meyering  <meyering@redhat.com>
16338
16339         maint: fix doubled-word typo in comment
16340         * m4/gethostname.m4: s/is is/it is/
16341         * m4/getdomainname.m4: Likewise.
16342
16343 2011-04-10  Jim Meyering  <meyering@redhat.com>
16344
16345         maint: remove doubled word: s/it it/it/
16346         * lib/stat-time.h (get_stat_birthtime): s/it it/it/
16347
16348 2011-04-10  Jim Meyering  <meyering@redhat.com>
16349
16350         maint.mk: remove useless semicolon and backslash
16351         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Remove stray
16352         semicolon and backslash.
16353
16354 2011-04-10  Bruno Haible  <bruno@clisp.org>
16355
16356         stdint test: Fix compilation failure on OSF/1 with DTK compiler.
16357         * modules/stdint-tests (Depends-on): Add wchar.
16358
16359 2011-04-10  Jim Meyering  <meyering@redhat.com>
16360
16361         maint: remove doubled words in comments, e.g., s/a a/a/
16362         * lib/strptime.c (day_of_the_week): s/the the/the/
16363         * tests/test-chown.h (test_chown): s/a a/a/
16364
16365         test-chown.h: correct a cast
16366         * tests/test-chown.h (test_chown): Cast -1 to gid_t (not uid_t)
16367         when the destination is a stat.st_gid.
16368
16369 2011-04-09  Mats Erik Andersson  <mats.andersson@gisladisker.se>  (tiny change)
16370
16371         getaddrinfo: Fix test for sa_len member.
16372         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): When testing for sa_len,
16373         include <sys/types.h> before <sys/socket.h>.
16374
16375 2011-04-09  Paul Eggert  <eggert@cs.ucla.edu>
16376
16377         maint: change "can not" to "cannot"
16378         * doc/posix-functions/iconv.texi (iconv): This one crossed line
16379         boundaries.
16380
16381 2011-04-09  Jim Meyering  <meyering@redhat.com>
16382
16383         maint: change "a a" to "a"
16384         * tests/test-lchown.h (test_lchown): s/a a/a/
16385
16386         maint.mk: prohibit \<the the\>
16387         * top/maint.mk (sc_prohibit_the_the): New rule.
16388
16389         maint: fix "the the" in comment
16390         * lib/count-one-bits.h: s/the the/the/
16391
16392         maint: change "can not" to "cannot"
16393         But do not change the occurrences in maintain.texi or in
16394         build-aux/po/Makefile.in.in, which I presume comes from gettext.
16395         * doc/gnulib-tool.texi: s/can not/cannot/
16396         * doc/posix-functions/accept.texi (accept): Likewise.
16397         * doc/posix-functions/socket.texi (socket): Likewise.
16398         * lib/mbrtowc.c: Likewise.
16399
16400         maint.mk: prohibit use of "can not"
16401         * top/maint.mk (sc_prohibit_can_not): New rule.
16402         Writing "can not" (rather than "cannot") is too common.  Prohibit it.
16403
16404 2011-04-09  Bruno Haible  <bruno@clisp.org>
16405
16406         careadlinkat: Guard against misuse of careadlinkatcwd.
16407         * lib/careadlinkat.c: Include <stdlib.h>.
16408         (careadlinkatcwd): Check that the fd argument is as expected.
16409
16410 2011-04-09  Bruno Haible  <bruno@clisp.org>
16411
16412         careadlinkat: Use common coding style.
16413         * lib/careadlinkat.c: Move gnulib includes after system includes.
16414
16415 2011-04-09  Bruno Haible  <bruno@clisp.org>
16416
16417         careadlinkat: Clarify specification.
16418         * lib/careadlinkat.h (careadlinkat): Clarify preadlinkat argument.
16419         (careadlinkatcwd): Add comment.
16420         * lib/careadlinkat.c (careadlinkat): Clarify preadlinkat argument.
16421
16422 2011-04-09  Bruno Haible  <bruno@clisp.org>
16423
16424         areadlinkat: Avoid link error on many platforms.
16425         * modules/areadlinkat (Depends-on): Add areadlink.
16426
16427 2011-04-09  Bruno Haible  <bruno@clisp.org>
16428
16429         allocator, careadlinkat: Fix double-inclusion guard.
16430         * lib/allocator.h: Fix double-inclusion guard.
16431         * lib/careadlinkat.h: Likewise.
16432
16433 2011-04-09  Bruno Haible  <bruno@clisp.org>
16434
16435         relocatable-prog-wrapper: Update after module 'areadlink' changed.
16436         * lib/relocwrapper.c: Update dependencies hierarchy.
16437         * build-aux/install-reloc: Update list of files to be compiled.
16438         * modules/relocatable-prog-wrapper (Files): Add lib/careadlinkat.[hc],
16439         lib/allocator.[hc].
16440
16441 2011-04-08  Eric Blake  <eblake@redhat.com>
16442
16443         strftime: silence gnulib-tool warning
16444         * modules/strftime-tests (Depends-on): Drop automatic dependency.
16445
16446 2011-04-08  Bruno Haible  <bruno@clisp.org>
16447
16448         verify: Fix syntax error with GCC 4.6 in C++ mode.
16449         * lib/verify.h (HAVE__STATIC_ASSERT): Don't define in C++ mode.
16450         (HAVE_STATIC_ASSERT): New macro.
16451         (verify_true, verify): Use 'static_assert' if it is supported and
16452         '_Static_assert' is not supported.
16453
16454 2011-04-08  Paul Eggert  <eggert@cs.ucla.edu>
16455
16456         allocator: New module.
16457         * modules/allocator, lib/allocator.c: New files.
16458         * lib/allocator.h (stdlib_allocator): New decl.
16459         * lib/careadlinkat.c (_GL_USE_STDLIB_ALLOC, standard_allocator):
16460         Remove.  Do not include <stdlib.h>.
16461         (careadlinkat): Use stdlib_allocator instead of rolling our own.
16462         * modules/careadlinkat (Files): Remove lib/allocator.h.
16463         (Depends-on): Add allocator.
16464
16465         stdlib: let modules use system malloc, realloc
16466         * lib/stdlib.in.h (malloc, realloc): Don't #define or add warnings
16467         if !_GL_USE_STDLIB_ALLOC.
16468         (malloc, realloc): Limit this change to a smaller scope.
16469
16470         * lib/careadlinkat.c (_GL_USE_STDLIB_ALLOC): Define.
16471         (malloc, realloc): Don't #undef; no longer needed.
16472         * lib/malloca.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
16473         * lib/progreloc.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
16474         * lib/setenv.c (_GL_USE_STDLIB_ALLOC, malloc, realloc): Likewise.
16475         * lib/canonicalize-lgpl.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
16476         * lib/relocatable.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
16477         * lib/relocwrapper.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
16478         * lib/malloc.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
16479         * lib/realloc.c (_GL_USE_STDLIB_ALLOC, malloc, realloc): Likewise.
16480
16481         careadlinkat: rename members to avoid problem
16482         * lib/allocator.h (struct allocator): Rename members from
16483         malloc/realloc to allocate/reallocate, to avoid problems if malloc
16484         and realloc are #define'd.  Reported by Eric Blake in
16485         <http://lists.gnu.org/archive/html/bug-gnulib/2011-04/msg00091.html>.
16486         * lib/careadlinkat.c (careadlinkat): Adjust to renaming.
16487
16488 2011-04-08  Eric Blake  <eblake@redhat.com>
16489
16490         nonblocking: reduce dependency
16491         * tests/test-nonblocking.c: Only test sockets when in use.
16492         * modules/nonblocking-tests (Depends-on): Drop socket.
16493         (Makefile.am): Link even if sockets are not present.
16494         * modules/pipe2-tests (Makefile.am): Likewise.
16495         * lib/ioctl.c (ioctl) [WIN32]: Fail if sockets are not also in use.
16496
16497         pipe2: fix O_NONBLOCK support on mingw
16498         * modules/pipe2 (Depends-on): Add nonblocking.
16499         * lib/pipe2.c (pipe2) [WIN32]: Add O_NONBLOCK support.
16500         * tests/test-pipe2.c (is_nonblocking): Adjust test accordingly.
16501         * tests/test-nonblocking.c (main): Likewise.
16502         * modules/pipe2-tests (Makefile.am): Avoid link failure.
16503
16504         fcntl-h: fix O_ACCMODE on cygwin
16505         * doc/posix-headers/fcntl.texi (fcntl.h): Document the bug.
16506         * lib/fcntl.in.h (O_ACCMODE): Fix it.
16507
16508         pipe-filter: drop O_NONBLOCK workarounds
16509         * modules/pipe-filter-gi (Depends-on): Add fcntl-h.
16510         * modules/pipe-filter-ii (Depends-on): Likewise.
16511         * lib/pipe-filter-aux.h (O_NONBLOCK): Delete workaround.
16512
16513         nonblocking: provide O_NONBLOCK for mingw
16514         * modules/nonblocking (Depends-on): Add open.
16515         (configure.ac): Set new witness macro.
16516         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Provide default for it.
16517         * modules/fcntl-h (Makefile.am): Substitute it.
16518         * lib/fcntl.in.h (O_NONBLOCK): Guarantee non-zero definition when
16519         nonblocking module is in use.
16520         * lib/nonblocking.c: Adjust portability test.
16521         * lib/open.c (open): Don't let native open see gnulib flag.
16522         * tests/test-fcntl-h.c (main): Enhance test.
16523         * tests/test-open.h (test_open): Likewise.
16524         * doc/posix-headers/fcntl.texi (fcntl.h): Document the replacement.
16525
16526         careadlinkat: fix compilation error on mingw
16527         * lib/careadlinkat.c (standard_allocator): Avoid renaming fields
16528         within struct allocator.
16529
16530 2011-04-06  Eric Blake  <eblake@redhat.com>
16531
16532         binary-io: relicense under LGPLv2+
16533         * modules/binary-io (License): Relax to LGPLv2+.
16534         Requested for libvirt, and required by pipe2.
16535
16536 2011-04-06  Paul Eggert  <eggert@cs.ucla.edu>
16537
16538         verify: use _Static_assert if available
16539         * lib/verify.h (HAVE__STATIC_ASSERT): New macro.
16540         (verify_true, verify): Use it if available.  This generates better
16541         diagnostics with GCC 4.6.0 and later.
16542
16543 2011-04-05  Bruno Haible  <bruno@clisp.org>
16544
16545         Remove leftover generated .h files after config.status changed.
16546
16547         * m4/alloca.m4 (gl_FUNC_ALLOCA): New automake conditional
16548         GL_GENERATE_ALLOCA_H.
16549         * modules/alloca-opt (Makefile.am): Remove alloca.h if
16550         GL_GENERATE_ALLOCA_H evaluates to false.
16551
16552         * m4/argz.m4 (gl_FUNC_ARGZ): New automake conditional
16553         GL_GENERATE_ARGZ_H.
16554         * modules/argz (Makefile.am): Remove argz.h if GL_GENERATE_ARGZ_H
16555         evaluates to false.
16556
16557         * m4/byteswap.m4 (gl_BYTESWAP): New automake conditional
16558         GL_GENERATE_BYTESWAP_H.
16559         * modules/byteswap (Makefile.am): Remove byteswap.h if
16560         GL_GENERATE_BYTESWAP_H evaluates to false.
16561
16562         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): New automake conditional
16563         GL_GENERATE_ERRNO_H.
16564         * modules/errno (Makefile.am): Remove errno.h if GL_GENERATE_ERRNO_H
16565         evaluates to false.
16566
16567         * m4/float_h.m4 (gl_FLOAT_H): New automake conditional
16568         GL_GENERATE_FLOAT_H.
16569         * modules/float (Makefile.am): Remove float.h if GL_GENERATE_FLOAT_H
16570         evaluates to false.
16571
16572         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): New automake conditional
16573         GL_GENERATE_FNMATCH_H.
16574         * modules/fnmatch (Makefile.am): Remove fnmatch.h if
16575         GL_GENERATE_FNMATCH_H evaluates to false.
16576
16577         * m4/glob.m4 (gl_GLOB_SUBSTITUTE, gl_GLOB): New automake conditional
16578         GL_GENERATE_GLOB_H.
16579         * modules/glob (Makefile.am): Remove glob.h if GL_GENERATE_GLOB_H
16580         evaluates to false.
16581
16582         * m4/iconv_h.m4 (gl_REPLACE_ICONV_H, gl_ICONV_H_DEFAULTS): New
16583         automake conditional GL_GENERATE_ICONV_H.
16584         * modules/iconv-h (Makefile.am): Remove iconv.h if GL_GENERATE_ICONV_H
16585         evaluates to false.
16586
16587         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): New automake conditional
16588         GL_GENERATE_NETINET_IN_H.
16589         * modules/netinet_in (Makefile.am): Remove netinet/in.h if
16590         GL_GENERATE_NETINET_IN_H evaluates to false.
16591
16592         * m4/pthread.m4 (gl_PTHREAD_CHECK): Set PTHREAD_H here. New automake
16593         conditional GL_GENERATE_PTHREAD_H.
16594         (gl_PTHREAD_DEFAULTS): Don't set PTHREAD_H here.
16595         * modules/pthread (Makefile.am): Remove pthread.h if
16596         GL_GENERATE_PTHREAD_H evaluates to false.
16597
16598         * m4/sched_h.m4 (gl_SCHED_H): New automake conditional
16599         GL_GENERATE_SCHED_H.
16600         * modules/sched (Makefile.am): Remove sched.h if GL_GENERATE_SCHED_H
16601         evaluates to false.
16602
16603         * m4/selinux-context-h.m4 (gl_HEADERS_SELINUX_CONTEXT_H): New automake
16604         conditional GL_GENERATE_SELINUX_CONTEXT_H.
16605         * modules/selinux-h (Makefile.am): Remove selinux/context.h if
16606         GL_GENERATE_SELINUX_CONTEXT_H evaluates to false.
16607
16608         * m4/stdarg.m4 (gl_STDARG_H): New automake conditional
16609         GL_GENERATE_STDARG_H.
16610         * modules/stdarg (Makefile.am): Remove stdarg.h if
16611         GL_GENERATE_STDARG_H evaluates to false.
16612
16613         * m4/stdbool.m4 (AM_STDBOOL_H): New automake conditional
16614         GL_GENERATE_STDBOOL_H.
16615         * modules/stdbool (Makefile.am): Remove stdbool.h if
16616         GL_GENERATE_STDBOOL_H evaluates to false.
16617
16618         * m4/stddef_h.m4 (gl_STDDEF_H): Set STDDEF_H here. New automake
16619         conditional GL_GENERATE_STDDEF_H.
16620         (gl_STDDEF_H_DEFAULTS): Don't set STDDEF_H here.
16621         * modules/stddef (Makefile.am): Remove stddef.h if
16622         GL_GENERATE_STDDEF_H evaluates to false.
16623
16624         * m4/stdint.m4 (gl_STDINT_H): New automake conditional
16625         GL_GENERATE_STDINT_H.
16626         * modules/stdint (Makefile.am): Remove stdint.h if
16627         GL_GENERATE_STDINT_H evaluates to false.
16628
16629         * m4/sysexits.m4 (gl_SYSEXITS): New automake conditional
16630         GL_GENERATE_SYSEXITS_H.
16631         * modules/sysexits (Makefile.am): Remove sysexits.h if
16632         GL_GENERATE_SYSEXITS_H evaluates to false.
16633
16634         Reported by Karl Berry and Ralf Wildenhues.
16635
16636 2011-04-05  Bruno Haible  <bruno@clisp.org>
16637
16638         Ensure to rebuild generated .h files when config.status has changed.
16639         * modules/arpa_inet (Makefile.am): Add dependency from .h file to
16640         config.status.
16641         * modules/ctype (Makefile.am): Likewise.
16642         * modules/dirent (Makefile.am): Likewise.
16643         * modules/errno (Makefile.am): Likewise.
16644         * modules/fcntl-h (Makefile.am): Likewise.
16645         * modules/float (Makefile.am): Likewise.
16646         * modules/getopt-posix (Makefile.am): Likewise.
16647         * modules/glob (Makefile.am): Likewise.
16648         * modules/iconv-h (Makefile.am): Likewise.
16649         * modules/inttypes (Makefile.am): Likewise.
16650         * modules/langinfo (Makefile.am): Likewise.
16651         * modules/locale (Makefile.am): Likewise.
16652         * modules/math (Makefile.am): Likewise.
16653         * modules/netdb (Makefile.am): Likewise.
16654         * modules/netinet_in (Makefile.am): Likewise.
16655         * modules/poll-h (Makefile.am): Likewise.
16656         * modules/pthread (Makefile.am): Likewise.
16657         * modules/pty (Makefile.am): Likewise.
16658         * modules/sched (Makefile.am): Likewise.
16659         * modules/search (Makefile.am): Likewise.
16660         * modules/selinux-h (Makefile.am): Likewise.
16661         * modules/signal (Makefile.am): Likewise.
16662         * modules/spawn (Makefile.am): Likewise.
16663         * modules/stdarg (Makefile.am): Likewise.
16664         * modules/stdbool (Makefile.am): Likewise.
16665         * modules/stddef (Makefile.am): Likewise.
16666         * modules/stdint (Makefile.am): Likewise.
16667         * modules/stdio (Makefile.am): Likewise.
16668         * modules/stdlib (Makefile.am): Likewise.
16669         * modules/string (Makefile.am): Likewise.
16670         * modules/strings (Makefile.am): Likewise.
16671         * modules/sys_file (Makefile.am): Likewise.
16672         * modules/sys_ioctl (Makefile.am): Likewise.
16673         * modules/sys_select (Makefile.am): Likewise.
16674         * modules/sys_socket (Makefile.am): Likewise.
16675         * modules/sys_stat (Makefile.am): Likewise.
16676         * modules/sys_time (Makefile.am): Likewise.
16677         * modules/sys_times (Makefile.am): Likewise.
16678         * modules/sys_utsname (Makefile.am): Likewise.
16679         * modules/sys_wait (Makefile.am): Likewise.
16680         * modules/sysexits (Makefile.am): Likewise.
16681         * modules/termios (Makefile.am): Likewise.
16682         * modules/time (Makefile.am): Likewise.
16683         * modules/unistd (Makefile.am): Likewise.
16684         * modules/wchar (Makefile.am): Likewise.
16685         * modules/wctype-h (Makefile.am): Likewise.
16686         Reported by Karl Berry, Eric Blake, and Ralf Wildenhues.
16687
16688 2011-04-05  Bruno Haible  <bruno@clisp.org>
16689
16690         pipe2: Relicense under LGPLv2+.
16691         * modules/pipe2 (License): Change to LGPLv2+.
16692         Requested by Eric Blake, for libvirt.
16693
16694 2011-04-05  Bruce Korb  <bkorb@gnu.org>
16695
16696         bootstrap: compute gnulib_extra_files after updating build_aux
16697         * build-aux/bootstrap (gnulib_extra_files): bootstrap.conf may
16698         change build_aux or also supply gnulib_extra_files.  Handle correctly.
16699
16700 2011-04-05  Eric Blake  <eblake@redhat.com>
16701
16702         bootstrap: preserve git whitelist item sorting
16703         * build-aux/bootstrap (sort_patterns): New function.
16704         (insert_sorted_if_absent): Use it to sink ! lines to the bottom.
16705
16706 2011-04-05  Simon Josefsson  <simon@josefsson.org>
16707
16708         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Don't trigger
16709         sc_space_tab check.
16710
16711 2011-04-05  Paul Eggert  <eggert@cs.ucla.edu>
16712
16713         areadlink, areadlinkat: rewrite in terms of careadlinkat
16714         * lib/areadlink.c, lib/areadlinkat.c: Include careadlinkat.h
16715         instead of errno.h, limits.h, stdint.h, stdlib.h, string.h, unistd.h.
16716         (SSIZE_MAX, INITIAL_BUF_SIZE): Remove.
16717         (malloc, realloc): Remove #undefs.
16718         (areadlink, areadlinkat): Rewrite in terms of careadlinkat.
16719         * modules/areadlink (Depends-on): Add careadlinkat.  Remove
16720         readlink, ssize_t, stdint, unistd.
16721         * modules/areadlinkat (Depends-on): Add careadlinkat.  Remove
16722         areadlink, stdint.
16723
16724         careadlinkat: new module
16725         * lib/allocator.h, lib/careadlinkat.h, lib/careadlinkat.c:
16726         * modules/careadlinkat: New files, written by me with
16727         a review and feedback from Ben Pfaff in
16728         <http://lists.gnu.org/archive/html/bug-gnulib/2011-04/msg00008.html>.
16729
16730 2011-04-01  Bruno Haible  <bruno@clisp.org>
16731
16732         wmemchr, wcschr, wcsrchr, wcspbrk, wcsstr: Avoid errors in C++ mode.
16733         * lib/wchar.in.h (wmemchr, wcschr, wcsrchr, wcspbrk, wcsstr): Use
16734         _GL_CXXALIAS_SYS_CAST2 instead of _GL_CXXALIAS_SYS. On glibc >= 2.10
16735         systems, use _GL_CXXALIASWARN1 instead of _GL_CXXALIASWARN.
16736         Reported by Bruce Korb <bruce.korb@gmail.com>.
16737
16738 2011-04-01  Bruno Haible  <bruno@clisp.org>
16739
16740         wcpcpy, wcpncpy: Ensure declaration on glibc >= 2.13 systems.
16741         * m4/wcpcpy.m4 (gl_FUNC_WCPCPY): Require AC_USE_SYSTEM_EXTENSIONS.
16742         * m4/wcpncpy.m4 (gl_FUNC_WCPNCPY): Likewise.
16743         * modules/wcpcpy (Depends-on): Add extensions.
16744         * modules/wcpncpy (Depends-on): Likewise.
16745         * doc/posix-functions/wcpcpy.texi: Mention missing declaration on glibc
16746         systems.
16747         * doc/posix-functions/wcpncpy.texi: Likewise.
16748         * doc/posix-functions/wcwidth.texi: Likewise.
16749
16750 2011-03-31  Eric Blake  <eblake@redhat.com>
16751
16752         nonblocking: fix mingw test failures
16753         * lib/nonblocking.c (set_nonblocking_flag): Succeed when clearing
16754         non-blocking flag on regular file.
16755         (get_nonblocking_flag): Set errno on invalid fd.
16756         * tests/test-nonblocking.c (main): Avoid test failure on
16757         directories if fchdir is not active.
16758         * modules/nonblocking-tests (Depends-on): Drop unused dependency.
16759
16760 2011-03-31  Bruno Haible  <bruno@clisp.org>
16761
16762         Fix bug with gl_WARN_ON_USE_PREPARE, introduced on 2011-01-23.
16763         * m4/gnulib-common.m4 (gl_ASSERT_NO_GNULIB_POSIXCHECK): Hide the
16764         gl_WARN_ON_USE_PREPARE definition from 'aclocal'.
16765         Reported by Simon Josefsson <simon@josefsson.org>.
16766
16767 2011-03-31  Bruno Haible  <bruno@clisp.org>
16768         and Eric Blake  <eblake@redhat.com>
16769
16770         nonblocking: new module
16771         * modules/nonblocking: New module.
16772         * modules/nonblocking-tests: Likewise.
16773         * lib/nonblocking.h: New file.
16774         * lib/nonblocking.c: Likewise.
16775         * tests/test-nonblocking.c: New test.
16776         * lib/ioctl.c (ioctl) [mingw]: Update comment.
16777
16778 2011-03-30  Bruno Haible  <bruno@clisp.org>
16779
16780         stdio: Avoid GCC >= 4.4 warnings when using %lld and similar on mingw.
16781         * lib/stdio.in.h (_GL_ATTRIBUTE_FORMAT_PRINTF): Use 'gnu_printf' format
16782         instead of 'printf' format for GCC >= 4.4.
16783         (_GL_ATTRIBUTE_FORMAT_PRINTF_SYSTEM): New macro.
16784         (fprintf, printf, vfprintf, vprintf): Declare with
16785         _GL_ATTRIBUTE_FORMAT_PRINTF_SYSTEM when the function ends up calling
16786         the system's vfprintf() function.
16787         Reported by Daniel P. Berrange <berrange@redhat.com> via Eric Blake.
16788
16789 2011-03-30  Eric Blake  <eblake@redhat.com>
16790
16791         passfd: fix scoping bug
16792         * lib/passfd.c (sendfd, recvfd): Don't let buf go out of scope
16793         before sendmsg/recvmsg.
16794
16795         passfd: standardize coding conventions
16796         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Drop check for something that
16797         can be learned at compile time.
16798         * lib/passfd.c (MSG_CMSG_CLOEXEC): Reduce number of in-function
16799         ifdefs.
16800         (sendfd, recvfd): Follow gnulib code conventions.
16801
16802         passfd: fix incorrect sendmsg arguments
16803         * lib/passfd.c (sendfd): Avoid uninitialized msg_flags field, and
16804         incorrect msg_controllen value.
16805         * modules/passfd-tests (Depends-on): Check for alarm.
16806         * tests/test-passfd.c (main) [HAVE_DECL_ALARM]: Avoid hanging test.
16807         Reported by Bastien ROUCARIES.
16808
16809 2011-03-30  Bruno Haible  <bruno@clisp.org>
16810
16811         c-strcasestr: Relicense under LGPLv2+.
16812         * modules/c-strcasestr (License): Change to LGPLv2+.
16813         Requested by Eric Blake, for libvirt.
16814
16815 2011-03-30  Simon Josefsson  <simon@josefsson.org>
16816
16817         * users.txt: Add libidn2.  Fix libtasn1 link.
16818
16819 2011-03-30  Jim Meyering  <meyering@redhat.com>
16820
16821         tests: readlink* ("",... fails with EINVAL on newer kernels
16822         readlink and readlinkat have typically failed with ENOENT for
16823         the invalid, empty file name,  "".  However, with the advent
16824         of linux-2.6.39, they fail with EINVAL.
16825         * tests/test-areadlink.h (test_areadlink): Also accept EINVAL
16826         when operating on the empty file name.
16827         * tests/test-readlink.h (test_readlink): Likewise.
16828
16829 2011-03-29  Bruno Haible  <bruno@clisp.org>
16830
16831         Relicense some modules under LGPLv2+, for libidn2.
16832         * modules/array-mergesort (License): Change to LGPLv2+.
16833         * modules/c-strcaseeq (License): Likewise.
16834         * modules/striconveh (License): Likewise.
16835         * modules/striconveha (License): Likewise.
16836         * modules/uniconv/base (License): Likewise.
16837         * modules/uniconv/u8-conv-from-enc (License): Likewise.
16838         * modules/uniconv/u8-strconv-from-enc (License): Likewise.
16839         * modules/uniconv/u8-strconv-from-locale (License): Likewise.
16840         * modules/unictype/base (License): Likewise.
16841         * modules/unictype/bidiclass-of (License): Likewise.
16842         * modules/unictype/category-M (License): Likewise.
16843         * modules/unictype/category-none (License): Likewise.
16844         * modules/unictype/category-of (License): Likewise.
16845         * modules/unictype/category-test (License): Likewise.
16846         * modules/unictype/category-test-withtable (License): Likewise.
16847         * modules/unictype/combining-class (License): Likewise.
16848         * modules/unictype/joiningtype-of (License): Likewise.
16849         * modules/unictype/scripts (License): Likewise.
16850         * modules/uninorm/base (License): Likewise.
16851         * modules/uninorm/canonical-decomposition (License): Likewise.
16852         * modules/uninorm/composition (License): Likewise.
16853         * modules/uninorm/decompose-internal (License): Likewise.
16854         * modules/uninorm/decomposition-table (License): Likewise.
16855         * modules/uninorm/nfc (License): Likewise.
16856         * modules/uninorm/nfd (License): Likewise.
16857         * modules/uninorm/u32-normalize (License): Likewise.
16858         * modules/unistr/base (License): Likewise.
16859         * modules/unistr/u32-cpy (License): Likewise.
16860         * modules/unistr/u32-mbtouc-unsafe (License): Likewise.
16861         * modules/unistr/u32-to-u8 (License): Likewise.
16862         * modules/unistr/u32-uctomb (License): Likewise.
16863         * modules/unistr/u8-check (License): Likewise.
16864         * modules/unistr/u8-mblen (License): Likewise.
16865         * modules/unistr/u8-mbtouc (License): Likewise.
16866         * modules/unistr/u8-mbtouc-unsafe (License): Likewise.
16867         * modules/unistr/u8-mbtoucr (License): Likewise.
16868         * modules/unistr/u8-prev (License): Likewise.
16869         * modules/unistr/u8-strlen (License): Likewise.
16870         * modules/unistr/u8-to-u32 (License): Likewise.
16871         * modules/unistr/u8-uctomb (License): Likewise.
16872         * modules/unitypes (License): Likewise.
16873         Requested by Simon Josefsson.
16874
16875 2011-03-29  Simon Josefsson  <simon@josefsson.org>
16876
16877         lib-symbol-visibility: Add a notice.
16878         * modules/lib-symbol-visibility (Notice): New field.
16879
16880 2011-03-29  Bruno Haible  <bruno@clisp.org>
16881
16882         getaddrinfo: Doc fix.
16883         * doc/posix-functions/getaddrinfo.texi: Mention Windows problem in the
16884         section "fixed in Gnulib".
16885
16886 2011-03-28  Simon Josefsson  <simon@josefsson.org>
16887
16888         * doc/posix-functions/getaddrinfo.texi: Drop netdb.h discussion.
16889         Reported by Bastien ROUCARIES <roucaries.bastien@gmail.com>.
16890
16891 2011-03-26  Bruno Haible  <bruno@clisp.org>
16892
16893         unictype/property-byname: Reduce the number of load-time relocations.
16894         * lib/unictype/pr_byname.c: Include <stdlib.h>.
16895         (UC_PROPERTY_INDEX_*): New enumeration values.
16896         (uc_property_byname): Convert an index from the lookup table to an
16897         uc_property_t.
16898         * lib/unictype/pr_byname.gperf: Store indices instead of uc_property_t
16899         values.
16900
16901 2011-03-26  Bruno Haible  <bruno@clisp.org>
16902
16903         unictype/property-byname: Allow omitted word separators and aliases.
16904         * lib/unictype/pr_byname.gperf: Add property names without word
16905         separators. Add aliases from Unicode 6.0 PropertyAliases.txt, except
16906         for 'space'.
16907
16908 2011-03-26  Bruno Haible  <bruno@clisp.org>
16909
16910         unictype/joininggroup-byname: Allow hyphens, omitted word separators.
16911         * lib/unictype/joininggroup_byname.c (uc_joining_group_byname): Convert
16912         also hyphens to space.
16913         * lib/unictype/joininggroup_byname.gperf: Recognize the names also
16914         without spaces.
16915         * tests/unictype/test-joininggroup_byname.c (main): Add more tests.
16916
16917 2011-03-26  Bruno Haible  <bruno@clisp.org>
16918
16919         unictype/joiningtype-byname: Recognize long names as well.
16920         * lib/unictype.in.h (uc_joiningtype_class_byname): Allow argument to be
16921         a long name.
16922         * lib/unictype/joiningtype_byname.c: Include <string.h>,
16923         unictype/joiningtype_byname.h.
16924         (uc_joiningtype_class_byname): Use uc_joining_type_lookup.
16925         * lib/unictype/joiningtype_byname.gperf: New file.
16926         * modules/unictype/joiningtype-byname (Files): Add
16927         lib/unictype/joiningtype_byname.gperf.
16928         (Depends-on): Add gperf.
16929         (Makefile.am): Add rule for generating unictype/joiningtype_byname.h.
16930         * tests/unictype/test-joiningtype_byname.c (main): Test the recognition of
16931         long names.
16932
16933         Tests for module 'unictype/joiningtype-longname'.
16934         * modules/unictype/joiningtype-longname-tests: New file.
16935         * tests/unictype/test-joiningtype_longname.c: New file.
16936
16937         New module 'unictype/joiningtype-longname'.
16938         * lib/unictype.in.h (uc_joiningtype_class_long_name): New declaration.
16939         * lib/unictype/joiningtype_longname.c: New file.
16940         * modules/unictype/joiningtype-longname: New file.
16941         * modules/unictype/joiningtype-all (Depends-on): Add
16942         unictype/joiningtype-longname.
16943
16944 2011-03-26  Bruno Haible  <bruno@clisp.org>
16945
16946         unictype/bidiclass-byname: Recognize long names as well.
16947         * lib/unictype.in.h (uc_bidi_class_byname): Allow argument to be a long
16948         name.
16949         * lib/unictype/bidi_byname.c: Include <string.h>,
16950         unictype/bidi_byname.h.
16951         (uc_bidi_class_byname): Use uc_bidi_class_lookup.
16952         * lib/unictype/bidi_byname.gperf: New file.
16953         * modules/unictype/bidiclass-byname (Files): Add
16954         lib/unictype/bidi_byname.gperf.
16955         (Depends-on): Add gperf.
16956         (Makefile.am): Add rule for generating unictype/bidi_byname.h.
16957         * tests/unictype/test-bidi_byname.c (main): Test the recognition of
16958         long names.
16959
16960         Tests for module 'unictype/bidiclass-longname'.
16961         * modules/unictype/bidiclass-longname-tests: New file.
16962         * tests/unictype/test-bidi_longname.c: New file.
16963
16964         New module 'unictype/bidiclass-longname'.
16965         * lib/unictype.in.h (uc_bidi_class_long_name): New declaration.
16966         * lib/unictype/bidi_longname.c: New file.
16967         * modules/unictype/bidiclass-longname: New file.
16968         * modules/unictype/bidiclass-all (Depends-on): Add
16969         unictype/bidiclass-longname.
16970
16971 2011-03-26  Bruno Haible  <bruno@clisp.org>
16972
16973         unictype/bidi*: Rename modules.
16974         * modules/unictype/bidiclass-all: Renamed from
16975         modules/unictype/bidicategory-all.
16976         * modules/unictype/bidiclass-name: Renamed from
16977         modules/unictype/bidiclass-name.
16978         (Description): Update.
16979         * modules/unictype/bidiclass-name-tests: Renamed from
16980         modules/unictype/bidicategory-name-tests.
16981         * modules/unictype/bidiclass-byname: Renamed from
16982         modules/unictype/bidicategory-byname.
16983         (Description): Update.
16984         * modules/unictype/bidiclass-byname-tests: Renamed from
16985         modules/unictype/bidicategory-byname-tests.
16986         * modules/unictype/bidiclass-of: Renamed from
16987         modules/unictype/bidicategory-of.
16988         (Description): Update.
16989         * modules/unictype/bidiclass-of-tests: Renamed from
16990         modules/unictype/bidicategory-of-tests.
16991         * modules/unictype/bidiclass-test: Renamed from
16992         modules/unictype/bidicategory-test.
16993         (Description): Update.
16994         * modules/unictype/bidiclass-test-tests: Renamed from
16995         modules/unictype/bidicategory-test-tests.
16996         * modules/unictype/bidicategory-all: New file, a simple redirection.
16997         * modules/unictype/bidicategory-name: Likewise.
16998         * modules/unictype/bidicategory-byname: Likewise.
16999         * modules/unictype/bidicategory-of: Likewise.
17000         * modules/unictype/bidicategory-test: Likewise.
17001         * modules/unictype/property-bidi-* (Dependencies): Update.
17002         * lib/unictype/bidi_*.c: Update comment.
17003
17004 2011-03-26  Bruno Haible  <bruno@clisp.org>
17005
17006         unictype/bidi*: Rename functions, part 2.
17007         * modules/unictype/bidicategory-name (configure.ac): Update required
17008         libunistring version.
17009         * modules/unictype/bidicategory-byname (configure.ac): Likewise.
17010
17011 2011-03-25  Bruno Haible  <bruno@clisp.org>
17012
17013         New module 'unictype/combining-class-all'.
17014         * modules/unictype/combining-class-all: New file.
17015
17016         Tests for module 'unictype/combining-class-byname'.
17017         * modules/unictype/combining-class-byname-tests: New file.
17018         * tests/unictype/test-combiningclass_byname.c: New file.
17019
17020         New module 'unictype/combining-class-byname'.
17021         * lib/unictype.in.h (uc_combining_class_byname): New declaration.
17022         * lib/unictype/combiningclass_byname.c: New file.
17023         * lib/unictype/combiningclass_byname.gperf: New file.
17024         * modules/unictype/combining-class-byname: New file.
17025
17026         Tests for module 'unictype/combining-class-longname'.
17027         * modules/unictype/combining-class-longname-tests: New file.
17028         * tests/unictype/test-combiningclass_longname.c: New file.
17029
17030         New module 'unictype/combining-class-longname'.
17031         * lib/unictype.in.h (uc_combining_class_long_name): New declaration.
17032         * lib/unictype/combiningclass_longname.c: New file.
17033         * modules/unictype/combining-class-longname: New file.
17034
17035         Tests for module 'unictype/combining-class-name'.
17036         * modules/unictype/combining-class-name-tests: New file.
17037         * tests/unictype/test-combiningclass_name.c: New file.
17038
17039         New module 'unictype/combining-class-name'.
17040         * lib/unictype.in.h (uc_combining_class_name): New declaration.
17041         * lib/unictype/combiningclass_name.c: New file.
17042         * modules/unictype/combining-class-name: New file.
17043
17044 2011-03-25  Bruno Haible  <bruno@clisp.org>
17045
17046         unictype/combining-class: Rename source files.
17047         * lib/gen-uni-tables.c (main): Emit unictype/combiningclass.h instead
17048         of unictype/combining.h.
17049         * lib/unictype/combiningclass.c: Renamed from lib/unictype/combining.c.
17050         Update.
17051         * lib/unictype/combiningclass.h: Renamed from lib/unictype/combining.h.
17052         * modules/unictype/combining-class (Description): Fix.
17053         (Files, Makefile.am): Update.
17054         * tests/unictype/test-combiningclass.c: Renamed from
17055         tests/unictype/test-combining.c.
17056         * modules/unictype/combining-class-tests (Files, Makefile.am): Update.
17057
17058 2011-03-25  Bruno Haible  <bruno@clisp.org>
17059
17060         unictype: Update list of canonical combining classes.
17061         * lib/unictype.in.h (UC_CCC_ATA): New enumeration value.
17062
17063 2011-03-25  Bruno Haible  <bruno@clisp.org>
17064
17065         unictype/category-byname: Recognize long names as well.
17066         * lib/unictype.in.h (uc_general_category_byname): Allow argument to be
17067         a long name.
17068         * lib/unictype/categ_byname.c: Include <stdlib.h>, <string.h>,
17069         unictype/categ_byname.h.
17070         (UC_CATEGORY_INDEX_*): New enumeration values.
17071         (uc_general_category_byname): Use uc_general_category_lookup and
17072         convert from index to value.
17073         * lib/unictype/categ_byname.gperf: New file.
17074         * modules/unictype/category-byname (Files): Add
17075         lib/unictype/categ_byname.gperf.
17076         (Depends-on): Add gperf.
17077         (Makefile.am): Add rule for generating unictype/categ_byname.h.
17078         * tests/unictype/test-categ_byname.c (main): Test the recognition of
17079         long names.
17080
17081         Tests for module 'unictype/category-longname'.
17082         * modules/unictype/category-longname-tests: New file.
17083         * tests/unictype/test-categ_longname.c: New file.
17084
17085         New module 'unictype/category-longname'.
17086         * lib/unictype.in.h (uc_general_category_long_name): New declaration.
17087         * lib/unictype/categ_longname.c: New file.
17088         * modules/unictype/category-longname: New file.
17089         * modules/unictype/category-all (Depends-on): Add it.
17090
17091 2011-03-25  Bruno Haible  <bruno@clisp.org>
17092
17093         Tests for module 'unictype/category-LC'.
17094         * modules/unictype/category-LC-tests: New file.
17095         * tests/unictype/test-categ_LC.c: New file, automatically generated.
17096
17097         New module 'unictype/category-LC'.
17098         * lib/unictype.in.h (UC_CATEGORY_MASK_LC): New enumeration value.
17099         (UC_CATEGORY_LC): New declaration.
17100         (UC_CASED_LETTER): New macro.
17101         * lib/gen-uni-tables.c (is_category_LC): New function.
17102         (output_categories): Also handle category LC.
17103         (UC_CATEGORY_MASK_LC): New enumeration value.
17104         (general_category_byname): Also handle category LC.
17105         * lib/unictype/categ_LC.c: New file.
17106         * lib/unictype/categ_LC.h: New file, automatically generated.
17107         * lib/unictype/categ_name.c (uc_general_category_name): Also handle
17108         category LC.
17109         * lib/unictype/categ_byname.c (uc_general_category_byname): Likewise.
17110         * modules/unictype/category-LC: New file.
17111         * modules/unictype/category-byname (Depends-on): Add
17112         unictype/category-LC.
17113         * modules/unictype/category-all (Depends-on): Likewise.
17114
17115 2011-03-25  Eric Blake  <eblake@redhat.com>
17116
17117         xmalloc: revert yesterday's regression
17118         * lib/xmalloc.c (xrealloc): Once again forward xrealloc(NULL,0) to
17119         realloc's underlying behavior (allowing allocation of zero-size
17120         objects, especially if malloc-gnu is also in use).
17121
17122 2011-03-25  Reuben Thomas  <rrt@sc3d.org>
17123
17124         maint.mk: add missing version to VC-tag
17125         * top/maint.mk: git tag was missing actual tag name; add it.
17126
17127         valgrind: do leak checking, and exit with code 1 on error (not 0)
17128         * m4/valgrind-tests.m4: Add `--error-exitcode=1 --leak-check=full'
17129         to VALGRIND.
17130
17131 2010-11-30  Reuben Thomas  <rrt@sc3d.org>
17132
17133         posix-modules: say what it does.
17134         * posix-modules: Add a line to the --help output saying what it does.
17135
17136 2011-03-24  Paul Eggert  <eggert@cs.ucla.edu>
17137
17138         xmalloc: Do not leak if underlying realloc is C99 compatible.
17139         * lib/xmalloc.c (xrealloc): If N is zero, call 'free' directly.
17140         This avoids a leak on C99-based systems.  See
17141         <http://lists.gnu.org/archive/html/bug-gnulib/2011-03/msg00243.html>.
17142
17143 2011-03-24  Eric Blake  <eblake@redhat.com>
17144
17145         realloc: document portability problem
17146         * doc/posix-functions/realloc.texi (realloc): Mention pitfalls of
17147         passing 0 size to realloc.
17148
17149 2011-03-23  Ben Walton  <bwalton@artsci.utoronto.ca>
17150
17151         doc: update users.txt
17152         * users.txt: Add cvsps, tmpwatch
17153
17154 2011-03-23  Matt Rice  <ratmice@gmail.com>
17155
17156         doc: update users.txt
17157         * users.txt: Add gdb.
17158
17159 2011-03-23  Jim Meyering  <meyering@redhat.com>
17160
17161         doc: update users.txt
17162         Looking through matches up to the following URL (there are still
17163         several more pages), I found several projects that use gnulib:
17164         http://codesearch.google.com/codesearch?start=50&q=gnulib-cache\.m4
17165         * users.txt: Add nagios plugins (nagiosplug), acct, gengetopt,
17166         gmediaserver, gtkreindeer, jugtail, libunistring, mini-httpd, reindeer.
17167
17168 2011-03-22  Bruno Haible  <bruno@clisp.org>
17169
17170         unictype/bidi*: Rename functions.
17171         * lib/unictype.in.h (uc_bidi_class_name, uc_bidi_class_byname,
17172         uc_bidi_class, uc_is_bidi_class): New declarations.
17173         * lib/unictype/bidi_byname.c (uc_bidi_class_byname): Renamed from
17174         uc_bidi_category_byname.
17175         (uc_bidi_category_byname): New function.
17176         * lib/unictype/bidi_name.c (u_bidi_class_name): Renamed from
17177         u_bidi_category_name.
17178         (uc_bidi_class_name): Renamed from uc_bidi_category_name.
17179         (uc_bidi_category_name): New function.
17180         * lib/unictype/bidi_of.c (uc_bidi_class): Renamed from
17181         uc_bidi_category.
17182         (uc_bidi_category): New function.
17183         * lib/unictype/bidi_test.c (uc_is_bidi_class): Renamed from
17184         uc_is_bidi_category. Invoke uc_bidi_class.
17185         (uc_is_bidi_category): New function.
17186         * tests/unictype/test-bidi_byname.c (main): Test uc_bidi_class_byname
17187         instead of uc_bidi_category_byname.
17188         * tests/unictype/test-bidi_name.c (main): Test uc_bidi_class_name
17189         instead of uc_bidi_category_name.
17190         * tests/unictype/test-bidi_of.c (main): Test uc_bidi_class instead of
17191         uc_bidi_category.
17192         * tests/unictype/test-bidi_test.c (main): Test uc_is_bidi_class
17193         instead of uc_is_bidi_category.
17194
17195 2011-03-21  Bruno Haible  <bruno@clisp.org>
17196
17197         New module 'unictype/joininggroup-all'.
17198         * modules/unictype/joininggroup-all: New file.
17199
17200         Tests for module 'unictype/joininggroup-of'.
17201         * modules/unictype/joininggroup-of-tests: New file.
17202         * tests/unictype/test-joininggroup_of.c: New file.
17203         * tests/unictype/test-joininggroup_of.h: New file, automatically
17204         generated by gen-uni-tables.
17205
17206         New module 'unictype/joininggroup-of'.
17207         * modules/unictype/joininggroup-of: New file.
17208         * lib/unictype/joininggroup_of.c: New file.
17209         * lib/unictype/joininggroup_of.h: New file, automatically generated by
17210         gen-uni-tables.
17211
17212         Tests for module 'unictype/joininggroup-byname'.
17213         * modules/unictype/joininggroup-byname-tests: New file.
17214         * tests/unictype/test-joininggroup_byname.c: New file.
17215
17216         New module 'unictype/joininggroup-byname'.
17217         * modules/unictype/joininggroup-byname: New file.
17218         * lib/unictype/joininggroup_byname.c: New file.
17219         * lib/unictype/joininggroup_byname.gperf: New file.
17220
17221         Tests for module 'unictype/joininggroup-name'.
17222         * modules/unictype/joininggroup-name-tests: New file.
17223         * tests/unictype/test-joininggroup_name.c: New file.
17224
17225         New module 'unictype/joininggroup-name'.
17226         * modules/unictype/joininggroup-name: New file.
17227         * lib/unictype/joininggroup_name.c: New file.
17228         * lib/unictype/joininggroup_name.h: New file.
17229
17230         New module 'unictype/joiningtype-all'.
17231         * modules/unictype/joiningtype-all: New file.
17232
17233         Tests for module 'unictype/joiningtype-of'.
17234         * modules/unictype/joiningtype-of-tests: New file.
17235         * tests/unictype/test-joiningtype_of.c: New file.
17236         * tests/unictype/test-joiningtype_of.h: New file, automatically
17237         generated by gen-uni-tables.
17238
17239         New module 'unictype/joiningtype-of'.
17240         * modules/unictype/joiningtype-of: New file.
17241         * lib/unictype/joiningtype_of.c: New file.
17242         * lib/unictype/joiningtype_of.h: New file, automatically generated by
17243         gen-uni-tables.
17244
17245         Tests for module 'unictype/joiningtype-byname'.
17246         * modules/unictype/joiningtype-byname-tests: New file.
17247         * tests/unictype/test-joiningtype_byname.c: New file.
17248
17249         New module 'unictype/joiningtype-byname'.
17250         * modules/unictype/joiningtype-byname: New file.
17251         * lib/unictype/joiningtype_byname.c: New file.
17252
17253         Tests for module 'unictype/joiningtype-name'.
17254         * modules/unictype/joiningtype-name-tests: New file.
17255         * tests/unictype/test-joiningtype_name.c: New file.
17256
17257         New module 'unictype/joiningtype-name'.
17258         * modules/unictype/joiningtype-name: New file.
17259         * lib/unictype/joiningtype_name.c: New file.
17260
17261         unictype: Add support for Arabic shaping properties.
17262         * lib/unictype.in.h (UC_JOINING_TYPE_*): New enumeration values.
17263         (uc_joining_type_name, uc_joining_type_byname, uc_joining_type): New
17264         declarations.
17265         (UC_JOINING_GROUP_*): New enumeration values.
17266         (uc_joining_group_name, uc_joining_group_byname, uc_joining_group): New
17267         declarations.
17268         * lib/gen-uni-tables.c (UC_JOINING_TYPE_*): New enumeration values.
17269         (unicode_joining_type): New variable.
17270         (UC_JOINING_GROUP_*): New enumeration values.
17271         (unicode_joining_group): New variable.
17272         (fill_arabicshaping, joining_type_as_c_identifier,
17273         output_joining_type_test, output_joining_type,
17274         joining_group_as_c_identifier, output_joining_group_test,
17275         output_joining_group): New functions.
17276         (main); Add an argument denoting the ArabicShaping.txt file. Invoke
17277         fill_arabicshaping and output_joining_type_test, output_joining_type,
17278         output_joining_group_test, output_joining_group.
17279         Reported by Simon Josefsson.
17280
17281 2011-03-21  Jim Meyering  <meyering@redhat.com>
17282
17283         strftime: fix a bug in yesterday's change
17284         * lib/strftime.c (add): Accommodate width's initial value of -1.
17285         Otherwise, nstrftime would copy uninitialized data into
17286         the result buffer.
17287
17288 2011-03-21  Jim Meyering  <meyering@redhat.com>
17289
17290         tests: add strftime-tests module
17291         * tests/test-strftime.c: New file.
17292         * modules/strftime-tests: New module.
17293
17294 2011-03-20  Paul Eggert  <eggert@cs.ucla.edu>
17295
17296         strftime: don't assume a byte count fits in 'int'
17297         * lib/strftime.c (add): Don't assume first arg fits in 'int'.  I
17298         found this problem by static analysis, using gcc -Wstrict-overflow
17299         (GCC 4.5.2, x86-64).  This reported an optimization that depended
17300         on an integer overflow having undefined behavior, but it turns out
17301         that the argument is a size, which might not fit in 'int' anyway,
17302
17303 2011-03-20  Paul Eggert  <eggert@cs.ucla.edu>
17304
17305         stdio: don't require ignore_value around fwrite
17306
17307         This patch works around libc bug 11959
17308         <http://sources.redhat.com/bugzilla/show_bug.cgi?id=11959>.
17309         Without this patch, applications must often write
17310         ignore_value (fwrite (...)) even though the ignore_value is
17311         not helpful here.  It's common to write many objects, using
17312         fwrite/printf/etc., and then use ferror to detect output error.
17313
17314         I considered making this patch optional, but decided against it,
17315         because libc is obviously being inconsistent here: there is no
17316         reason libc should insist that user code must inspect fwrite
17317         return's value without also insisting that it inspect printf's,
17318         putchar's, etc.  If user code wants to have a strict style where
17319         all these functions' values are checked (so that ferror need not
17320         be checked), we could add support for that style in a new gnulib
17321         module, but in the meantime it's better to be consistent and to
17322         support common usage.
17323
17324         * lib/stdio.in.h (rpl_fwrite): Define this wrapper around fwrite,
17325         to work around libc bug 11959, if __USE_FORTIFY_LEVEL indicates
17326         that we are compiling in checking mode, and if not C++, and
17327         if not already wrapping fwrite for some other reason.
17328         (fwrite): #define to rpl_fwrite if the latter is defined.
17329
17330 2011-03-20  Bruno Haible  <bruno@clisp.org>
17331
17332         verror: Fix compilation error introduced on 2011-02-13.
17333         * lib/verror.h (verror, verror_at_line): Use _GL_ATTRIBUTE_FORMAT macro
17334         instead of __attribute__.
17335         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
17336
17337 2011-03-20  Paul Eggert  <eggert@cs.ucla.edu>
17338             Bruno Haible  <bruno@clisp.org>
17339
17340         socklen: do not depend on sys_socket
17341         While trying to modify Emacs to use gnulib's socklen module,
17342         I discovered a circular dependency: socklen depends on sys_socket
17343         and vice versa.  Emacs can use socklen, but it does not need
17344         sys_socket because it has its own substitute for sys/socket.h.
17345         * m4/socklen.m4 (gl_SOCKET_HEADERS): New macro, extracted from
17346         gl_TYPE_SOCKLEN_T.
17347         (gl_CHECK_SOCKET_HEADERS): New macro, taken from parts of
17348         gl_PREREQ_SYS_H_SOCKET.
17349         (gl_TYPE_SOCKLEN_T): Require it instead of requiring
17350         gl_PREREQ_SYS_H_SOCKET.
17351         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_SOCKET): Require
17352         gl_CHECK_SOCKET_HEADERS instead of doing its work ourselves.
17353         * modules/socklen (Depends-on): Do not depend on sys_socket.
17354         (Include): Adjust to match the code used in gl_SOCKET_HEADERS.
17355
17356 2011-03-20  Jim Meyering  <meyering@redhat.com>
17357
17358         maint.mk: sort file names *after* new transformation
17359         * top/maint.mk (sc_po_check): Sorting before removing the $(srcdir)/
17360         prefix would have led to an unwarranted failure in GNU parted.
17361         Sort after that transformation.
17362
17363 2011-03-19  Jim Meyering  <meyering@redhat.com>
17364
17365         maint.mk: fix po-file syntax-check rule
17366         * top/maint.mk (sc_po_check): Fix fatal typo in yesterday's change.
17367         Patch by Bruno Haible.
17368
17369 2011-03-19  Bruno Haible  <bruno@clisp.org>
17370
17371         socklen: Update comment.
17372         * m4/socklen.m4: Update comment about platforms.
17373
17374 2011-03-19  Paul Eggert  <eggert@cs.ucla.edu>
17375             Bruno Haible  <bruno@clisp.org>
17376
17377         inet_ntop, inet_pton: Simplify.
17378         * modules/inet_ntop (Depends-on): Remove socklen, since sys_socket is
17379         documented to provide socklen_t and we already depend on sys_socket.
17380         * modules/inet_pton (Depends-on): Likewise.
17381         * lib/arpa_inet.in.h: Adjust comment.
17382
17383 2011-03-19  Paul Eggert  <eggert@cs.ucla.edu>
17384             Bruno Haible  <bruno@clisp.org>
17385
17386         netdb: Simplify.
17387         * modules/netdb (Depends-on): Remove socklen, since sys_socket is
17388         documented to provide socklen_t and we already depend on sys_socket.
17389         * lib/netdb.in.h: Adjust comment.
17390
17391 2011-03-19  Bruno Haible  <bruno@clisp.org>
17392
17393         sys_socket, netdb: Document problem with socklen_t.
17394         * doc/posix-headers/sys_socket.texi: Mention lack of socklen_t on some
17395         platforms.
17396         * doc/posix-headers/netdb.texi: Likewise.
17397
17398 2011-03-18  Eric Blake  <eblake@redhat.com>
17399
17400         maint.mk: let po check work in VPATH build
17401         * top/maint.mk (po_file): Allow cfg.mk override.
17402         (sc_po_check): Allow VPATH use.
17403         Reported by Jiri Denemark.
17404
17405 2011-03-16  Jim Meyering  <meyering@redhat.com>
17406
17407         maint.mk: allow fine-grained syntax-check exclusion via Make variables
17408         Before, you would have had to create one .x-sc_ file per rule in order
17409         to exempt offending files.  Now, you may instead use a Make variable --
17410         usually defined in cfg.mk -- whose name identifies the affected rule.
17411         * top/maint.mk (_sc_excl): Define.
17412         (VC_LIST_EXCEPT): Use it to exclude names on a per-rule basis.
17413         (_sc_search_regexp): When not using VC_LIST_EXCEPT, exclude here, too.
17414
17415 2011-03-13  Bruno Haible  <bruno@clisp.org>
17416
17417         ignore-value tests: Avoid warnings.
17418         * tests/test-ignore-value.c (_GL_ATTRIBUTE_RETURN_CHECK): Define to
17419         empty for gcc < 3.4.
17420
17421 2011-03-13  Bruno Haible  <bruno@clisp.org>
17422
17423         passfd: Fix link error on Solaris.
17424         * modules/passfd (Description): Correct.
17425         (Depends-on): Add socketlib.
17426         (Link): New section.
17427         * modules/passfd-tests (Makefile.am): Link test-passfd with LIBSOCKET.
17428
17429 2011-03-13  Bruno Haible  <bruno@clisp.org>
17430
17431         passfd: Fix link error on AIX 5.2.
17432         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Define _LINUX_SOURCE_COMPAT.
17433
17434 2011-03-13  Bruno Haible  <bruno@clisp.org>
17435
17436         passfd: Work around bug with CMSG_FIRSTHDR on FreeBSD 6.4.
17437         * lib/sys_socket.in.h: Include <stddef.h>.
17438         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Include <stddef.h> before using
17439         CMSG_FIRSTHDR. Remove unused variable.
17440
17441 2011-03-13  Bruno Haible  <bruno@clisp.org>
17442
17443         passfd: Fix compilation error on OpenBSD.
17444         * lib/passfd.c: Include <sys/uio.h>.
17445
17446 2011-03-13  Bruno Haible  <bruno@clisp.org>
17447
17448         passfd test: Fix warnings.
17449         * tests/test-passfd.c: Include <sys/wait.h>.
17450         (main): Fix typo.
17451
17452 2011-03-13  Bruno Haible  <bruno@clisp.org>
17453
17454         passfd module, part 4, tweaks.
17455         * tests/test-passfd.c: Reorder includes.
17456         (main): Fix perror and printf calls.
17457
17458 2011-03-07  Bastien Roucariès  <roucaries.bastien@gmail.com>
17459
17460         passfd module, part 4.
17461         * modules/passfd-tests: New file.
17462         * tests/test-passfd.c: New file.
17463
17464 2011-03-13  Jim Meyering  <meyering@redhat.com>
17465
17466         Makefile: rely on GNU make; derive syntax-check rule names
17467         Rather than requiring that each sc_ rule be listed as a dependent
17468         of "check", use features of GNU make to derive the list.
17469         * Makefile (syntax-check-rules): Define.
17470         (check): Depend on the new variable, not the hard-coded list.
17471
17472 2011-03-13  Bastien Roucariès  <roucaries.bastien@gmail.com>
17473             Bruno Haible  <bruno@clisp.org>
17474
17475         passfd module, part 3.
17476         * lib/passfd.h (recvfd): Add a flags argument.
17477         * lib/passfd.c: Include <fcntl.h>, cloexec.h.
17478         (recvfd): Add a flags argument.
17479         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Test whether MSG_CMSG_CLOEXEC
17480         exists.
17481         * modules/passfd (Depends-on): Add cloexec.
17482         Suggested by Eric Blake.
17483
17484 2011-03-13  Bruno Haible  <bruno@clisp.org>
17485
17486         passfd module, part 2, tweaks.
17487         * modules/passfd (Files): Reorder.
17488         (Depends-on): Remove errno.
17489         (Include): Remove <sys/socket.h>, <sys/un.h>.
17490         * lib/passfd.h: Use a GPLv3+ header. Make C++ safe.
17491         * lib/passfd.c: Untabify. Use a GPLv3+ header. Really include the
17492         specification header. Include <sys/socket.h> always. Don't include
17493         <winsock2.h>. Use "#if HAVE_..." instead of "#ifdef HAVE_...".
17494         (sendfd): Clarify that it sets errno when it fails.
17495         (recvfd): Fix specification.
17496
17497 2011-03-07  Bastien Roucariès  <roucaries.bastien@gmail.com>
17498
17499         passfd module, part 2.
17500         * modules/passfd: New file.
17501         * lib/passfd.h: New file.
17502         * lib/passfd.c: New file.
17503
17504 2011-03-12  Bruno Haible  <bruno@clisp.org>
17505
17506         wcswidth, mbswidth: Avoid integer overflow.
17507         * lib/wcswidth.c: Include <limits.h>.
17508         * lib/wcswidth-impl.h (wcswidth): Avoid 'int' overflow.
17509         * lib/mbswidth.c: Include <limits.h>.
17510         (mbsnwidth): Avoid 'int' overflow.
17511         Reported by Jim Meyering.
17512
17513 2011-03-12  Bruno Haible  <bruno@clisp.org>
17514
17515         futimens, utimensat: Avoid endless recursion on Solaris 10.
17516         * lib/sys_stat.in.h (futimens, utimensat): Define with rpl_ prefix on
17517         Solaris.
17518         Reported by Ben Walton <bwalton@artsci.utoronto.ca> via Eric Blake
17519         in <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=8230>.
17520
17521 2011-03-11  Jim Meyering  <meyering@redhat.com>
17522
17523         maint.mk: relax a regexp to accommodate other formatting styles
17524         * top/maint.mk (sc_unmarked_diagnostics): Allow 0 or 1 space
17525         between "ngettext" and the following "(".
17526
17527 2011-03-11  Pádraig Brady <P@draigBrady.com>
17528
17529         maint.mk: suppress a false positive warning
17530         * top/maint.mk ((sc_unmarked_diagnostics): Don't warn when
17531         diagnostics are marked with ngettext.
17532
17533 2011-03-10  Eric Blake  <eblake@redhat.com>
17534
17535         wchar: add explicit dependencies, for Tru64
17536         * modules/mbmemcasecoll (Depends-on): Add wchar.
17537         * modules/mbtowc (Depends-on): Likewise.
17538         * modules/vasnprintf (Depends-on): Likewise.
17539         * modules/unistdio/u-printf-args (Depends-on): Likewise.
17540         * modules/wctomb (Depends-on): Likewise.
17541         Reported by Peter O'Gorman.
17542
17543 2011-03-08  Bruno Haible  <bruno@clisp.org>
17544
17545         passfd module, part 1, tweaks.
17546         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Update AC_REQUIRE invocation.
17547         Improve indentation. Improve AC_MSG_CHECKING messages.
17548         * m4/sockpfaf.m4 (gl_SOCKET_FAMILY_UNIX): New macro, extracted from
17549         gl_SOCKET_FAMILIES.
17550
17551 2011-03-07  Bastien Roucariès  <roucaries.bastien@gmail.com>
17552
17553         passfd module, part 1.
17554         * m4/afunix.m4: New file.
17555         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Also test for UNIX domain
17556         sockets.
17557
17558 2011-03-08  Bruno Haible  <bruno@clisp.org>
17559
17560         regex-quote: New API.
17561         * lib/regex-quote.h: Include <stdbool.h>.
17562         (struct regex_quote_spec): New type.
17563         (regex_quote_spec_posix, regex_quote_spec_gnu, regex_quote_spec_pcre):
17564         New declarations.
17565         (regex_quote_length, regex_quote_copy, regex_quote): Take a
17566         'const struct regex_quote_spec *' argument.
17567         * lib/regex-quote.c (RE_*, PCRE_*): New macros.
17568         (pcre_special): New constant.
17569         (regex_quote_spec_posix, regex_quote_spec_gnu, regex_quote_spec_pcre):
17570         New functions.
17571         (regex_quote_length, regex_quote_copy, regex_quote): Take a
17572         'const struct regex_quote_spec *' argument.
17573         * modules/regex-quote (Depends-on): Add stdbool.
17574         * tests/test-regex-quote.c (check): Update for new API. Add test for
17575         anchored results.
17576         * NEWS: Mention the API change.
17577         Reported by Reuben Thomas and Eric Blake.
17578
17579 2011-03-06  Bruno Haible  <bruno@clisp.org>
17580
17581         regex-quote: Fix creation of POSIX extended regular expressions.
17582         * lib/regex-quote.c (ere_special): Add grouping and alternation
17583         operators.
17584
17585 2011-03-05  Bruno Haible  <bruno@clisp.org>
17586
17587         doc: Improve doc regarding autopoint vs. gnulib.
17588         * doc/gnulib-tool.texi (gettextize and autopoint): Recommend to
17589         disable autopoint while running autoreconf.
17590         Suggested by Ralf Wildenhues.
17591
17592 2011-03-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
17593
17594         Update AC_OPENMP macro for Lahey compiler on GNU/Linux.
17595         * m4/openmp.m4 (AC_OPENMP): Sync from Autoconf.
17596
17597 2011-03-03  Bruce Korb  <bkorb@gnu.org>
17598
17599         parse-duration: remove xalloc.h dependency
17600         * lib/parse-duration.c (parse_period): handle NULL return from
17601         strdup instead of calling xstrdup().
17602         * modules/parse-duration: remove "xalloc" dependency
17603
17604 2011-03-03  Matthew Booth  <mbooth@redhat.com>
17605
17606         bootstrap: honor m4_base when running aclocal
17607         * build-aux/bootstrap: Fix hard-coded use of m4 directory name.
17608
17609 2011-03-02  Jim Meyering  <meyering@redhat.com>
17610
17611         getopt-gnu: relax license from LGPLv3+ to LGPLv2+
17612         * modules/getopt-gnu (License): Relax to LGPLv2+, for augeas,
17613         on request from Matt Booth.
17614
17615 2011-03-01  Eric Blake  <eblake@redhat.com>
17616
17617         test-link: work on Hurd
17618         * tests/test-link.h (test_link): Hurd rejects linking directories
17619         with EISDIR instead of the POSIX-mandated EPERM.
17620
17621 2011-02-28  Paul Eggert  <eggert@cs.ucla.edu>
17622
17623         stdio: simplify by moving files to printf-posix, sigpipe
17624         * m4/stdio_h.m4 (gl_STDIO_H): Do not require gl_ASM_SYMBOL_PREFIX,
17625         since this symbol is needed only if printf is replaced.
17626         * m4/printf-posix-rpl.m4 (gl_REPLACE_PRINTF):
17627         Require gl_ASM_SYMBOL_PREFIX.
17628         * modules/printf-posix (Files): Add m4/asm-underscore.m4.
17629         * modules/sigpipe (Files): Likewise.  Also, add m4/stdio-write.c.
17630         (Depends-on): Add 'raise'.
17631         (configure.ac): Require gl_ASM_SYMBOL_PREFIX.
17632         * modules/stdio (Files): Remove lib/stdio-write.c,
17633         m4/asm-underscore.m4.
17634         (Depends-on): Remove 'raise'.
17635
17636         stdio: simplify by moving gl_STDIN_LARGE_OFFSET to fseeko, ftello
17637         * m4/fseeko.m4 (gl_STDIN_LARGE_OFFSET): Moved here, from ...
17638         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET): ... here, because
17639         * modules/ftello (Files): Add m4/fseeko.m4, for gl_STDIN_LARGE_OFFSET.
17640
17641 2011-02-28  Bruno Haible  <bruno@clisp.org>
17642
17643         localcharset: Assume ANSI C behaviour of free().
17644         * lib/localcharset.c (get_charset_aliases): Remove NULL test before
17645         calling free().
17646         Suggested by Simon Josefsson <simon@josefsson.org>.
17647
17648 2011-02-28  Corinna Vinschen  <vinschen@redhat.com>  (tiny change)
17649             Charles Wilson  <cygwin@cwilson.fastmail.fm>  (tiny change)
17650             Bruno Haible  <bruno@clisp.org>  (tiny change)
17651
17652         On Cygwin, use /proc file system instead of win32 API.
17653         * lib/relocatable.c: On Cygwin, use file names from /proc, rather than
17654         Win32 file names.
17655         (DllMain): Simplify by removing Cygwin specific code.
17656         (find_shared_library_fullname): Use Linux specific implementation also
17657         for Cygwin.
17658         (get_shared_library_fullname): Update accordingly.
17659         * lib/progreloc.c: On Cygwin, use file names from /proc, rather than
17660         Win32 file names.
17661         (find_executable): On Cygwin, use /proc, like on Linux. Remove previous
17662         Cygwin specific code.
17663
17664 2011-02-28  Christian Rössel  <christian.roessel@gmx.de>  (tiny change)
17665             Markus Geimer  <m.geimer@fz-juelich.de>  (tiny change)
17666
17667         Fix OpenMP flag detection for various Fortran compilers.
17668         * m4/openmp.m4 (_AC_LANG_OPENMP(Fortran 77)): Use '!$'
17669         OpenMP-conditional compilation construct, to force compile
17670         failure with missing OpenMP flag.
17671         (AC_OPENMP): Add flags for Cray CCE and NEC SX compilers.
17672
17673 2011-02-25  Eric Blake  <eblake@redhat.com>
17674
17675         strstr: expand test coverage
17676         * tests/test-strstr.c (main): Add much shorter trigger.  Fix C89
17677         compilation.
17678         * tests/test-memmem.c (main): Duplicate tests.
17679         * tests/test-strcasestr.c (main): Likewise.
17680         * tests/test-c-strcasestr.c (main): Likewise.
17681
17682 2011-02-25  Jim Meyering  <meyering@redhat.com>
17683
17684         maint.mk: detect missing-NL-at-EOF, too
17685         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Adjust so that
17686         it also detects when a file lacks a newline at EOF.
17687         (require_exactly_one_NL_at_EOF_): Renamed from
17688         detect_empty_lines_at_EOF_.  I opted not to rename the rule,
17689         since people may well have .x-sc_... file names tied to the
17690         existing name.  Suggested by Eric Blake.
17691
17692 2011-02-25  Paul Eggert  <eggert@cs.ucla.edu>
17693
17694         dirname: move m4/dos.m4 functionality into lib/dosname.h
17695
17696         m4/dos.m4 needs to go.  It laboriously invokes the C compiler, and
17697         extracts symbols from it, puts them into config.h; but it's much
17698         easier to use the symbols directly.  filename.h already does this,
17699         but it disagrees with dos.m4 in some respects.  This patch
17700         introduces a different include file dosname.h that packages up
17701         dos.m4, and then later we can work on merging filename.h and
17702         dosname.h.  Applications that need only the easy-to-configure
17703         symbols should consider including dosname.h rather than dirname.h.
17704         * NEWS: Mention incompatible changes.
17705         * m4/dos.m4: Remove.
17706         * lib/dosname.h, modules/dosname: New files.
17707         * lib/dirname.h (ISSLASH, FILE_SYSTEM_PREFIX_LEN):
17708         (FILE_SYSTEM_DRIVE_PREFIX_CAN_BE_RELATIVE):
17709         (IS_ABSOLUTE_FILE_NAME, IS_RELATIVE_FILE_NAME): Move to lib/dosname.h.
17710         * lib/at-func.c, lib/at-func2.c, lib/openat.c, lib/savewd.c:
17711         Include dosname.h, not dirname.h.
17712         * lib/rmdir.c, lib/stat.c, lib/unlink.c, lib/unlinkat.c:
17713         Include dosname.h, for definitions of symbols like ISSLASH
17714         that used to be in config.h.
17715         * m4/dirname.m4 (gl_DIRNAME_LGPL): Do not require gl_AC_DOS.
17716         * m4/rmdir.m4 (gl_FUNC_RMDIR): Likewise.
17717         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
17718         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
17719         * modules/dirname-lgpl (Files): Omit m4/dos.m4.
17720         * modules/rmdir (Files): Likewise.
17721         * modules/stat (Files): Likewise.
17722         * modules/unlink (Files): Likewise.
17723         * modules/dirname-lgpl (Depends-on): Add dosname.
17724         * modules/lstat (Depends-on): Likewise.
17725         * modules/openat (Depends-on): Likewise.
17726         * modules/rmdir (Depends-on): Likewise.
17727         * modules/savewd (Depends-on): Likewise.
17728         * modules/stat (Depends-on): Likewise.
17729         * modules/unlink (Depends-on): Likewise.
17730         * modules/openat (Depends-on): Remove dirname-lgpl.
17731         * modules/savewd (Depends-on): Likewise.
17732         * tests/test-dirname.c: Do not use removed symbols like
17733         FILE_SYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR.  Instead, use
17734         the remaining symbols, e.g., ISSLASH ('\\').
17735
17736 2011-02-25  Eric Blake  <eblake@redhat.com>
17737
17738         strstr: revert patches that introduced bug and pessimization
17739         * lib/str-two-way.h: Add another reference.
17740         (two_way_short_needle, two_way_long_needle): Revert changes from
17741         2011-02-24; they pessimize search speed.
17742         (critical_factorization): Partially revert changes from
17743         2010-06-22; they violate the requirement that the left half of the
17744         needle be smaller than the period of the needle.
17745
17746 2011-02-24  Paul Eggert  <eggert@cs.ucla.edu>
17747
17748         filenamecat: remove unnecessary dependency on dirname-lgpl
17749         * modules/filenamecat (Depends-on): Remove dirname-lgpl, as there
17750         is no direct dependency, just an indirect one via filenamecat-lgpl.
17751
17752         remove: remove unnecessary use of m4/dos.m4
17753         * m4/remove.m4 (gl_FUNC_REMOVE): Don't require gl_AC_DOS; not needed.
17754         * modules/remove (FILES): Remove m4/dos.m4.
17755
17756         * lib/openat-proc.c: Don't include dirname.h; not needed.
17757
17758         backupfile: remove unnecessary use of m4/dos.m4
17759         * m4/backupfile.m4 (gl_BACKUPFILE): Don't require gl_AC_DOS; none
17760         of its symbols are used by the backupfile code.  backupfile.c does
17761         use a symbol HAVE_DOS_FILE_NAMES, but that symbol is meant only
17762         for the rare case of programs that want all their backup file
17763         names to live within 8+3 limits, and dos.m4 doesn't address that.
17764         * modules/backupfile (Files): Remove m4/dos.m4.
17765
17766 2011-02-24  Jim Meyering  <meyering@redhat.com>
17767
17768         strstr: fix a bug whereby strstr would mistakenly return NULL
17769         * lib/str-two-way.h (two_way_short_needle): Correct off-by-one error
17770         in period calculation.
17771         (two_way_long_needle): Likewise.
17772         The original problem was reported by Mike Stump in
17773         http://thread.gmane.org/gmane.comp.sysutils.autoconf.bugs/7834
17774         Ralf Wildenhues provided the short needle and haystack.
17775         * tests/test-strstr.c: Add Ralf's test case to trigger the bug.
17776         Add a more involved test to trigger the bug in two_way_long_needle.
17777
17778 2011-02-24  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
17779
17780         gnulib-tool: remove use of bold display in help screen
17781         * gnulib-tool (func_usage): Do not use bold display anymore in the
17782         help screen.  That was just meant to be a temporary emphasis for a
17783         backward-incompatible change.
17784
17785 2011-02-23  Bruno Haible  <bruno@clisp.org>
17786
17787         Fix misindentation of preprocessor directives.
17788         * lib/argp-namefrob.h: Reindent preprocessor directives.
17789         * lib/getopt_int.h (struct _getopt_data): Likewise.
17790         * lib/progreloc.c (maybe_executable, find_executable): Likewise.
17791         * lib/vasnprintf.c (decode_long_double): Likewise.
17792         * tests/test-argmatch.c: Insert blank lines, for clarity.
17793         * tests/test-exclude.c: Likewise.
17794
17795 2011-02-22  Bruno Haible  <bruno@clisp.org>
17796
17797         ioctl: Fix for MacOS X in 64-bit mode.
17798         * lib/ioctl.c (rpl_ioctl): Zero-extend, not sign-extend, the request
17799         value.
17800         Suggested by Eric Blake.
17801         Reported by Markus Gothe <nietzsche@lysator.liu.se>.
17802
17803 2011-02-22  Jim Meyering  <meyering@redhat.com>
17804
17805         maint: sc_cpp_indent_check: remove the "only in lib/" restriction
17806         * Makefile (sc_cpp_indent_check): Don't limit the check to files
17807         in lib/.
17808
17809 2011-02-22  Eric Blake  <eblake@redhat.com>
17810
17811         maint: avoid any CDPATH issue
17812         * Makefile (sc_cpp_indent_check): Anchor cd argument.
17813
17814         maint: adjust cpp indentation for my modules, as well
17815         * Makefile (sc_cpp_indent_check): Add my name.
17816         * lib/fbufmode.c: Filter through cppi.
17817         * lib/fpurge.c: Likewise.
17818         * lib/freadable.c: Likewise.
17819         * lib/freading.c: Likewise.
17820         * lib/fwritable.c: Likewise.
17821         * lib/fwriting.c: Likewise.
17822         * lib/sigaction.c: Likewise.
17823
17824 2011-02-22  Jim Meyering  <meyering@redhat.com>
17825
17826         maint: adjust cpp indentation to reflect nesting depth
17827         I.e., in a block of code that begins with an unnested "#if",
17828         put one space between the "#" in column 1 and following token.
17829         For example,
17830         -#include <sys/vfs.h>
17831         +# include <sys/vfs.h>
17832         Do this only in .c files that are part of a module I maintain.
17833         * lib/linkat.c: Filter through cppi.
17834         * lib/nanosleep.c: Likewise.
17835         * lib/openat.c: Likewise.
17836         * lib/openat-die.c: Likewise.
17837         * lib/dup3.c: Likewise.
17838         * lib/fchownat.c: Likewise.
17839         * lib/flock.c: Likewise.
17840         * lib/fsync.c: Likewise.
17841         * lib/fts.c: Likewise.
17842         * lib/getpass.c: Likewise.
17843         * lib/gettimeofday.c: Likewise.
17844         * lib/userspec.c: Likewise.
17845         * Makefile (sc_cpp_indent_check): New rule, to check this.
17846
17847 2011-02-22  Bruno Haible  <bruno@clisp.org>
17848
17849         New module 'wctomb'.
17850         * lib/stdlib.in.h (wctomb): New declaration.
17851         * lib/wctomb.c: New file.
17852         * lib/wctomb-impl.h: New file.
17853         * m4/wctomb.m4: New file.
17854         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_WCTOMB,
17855         REPLACE_WCTOMB.
17856         * modules/stdlib (Makefile.am): Substitute GNULIB_WCTOMB,
17857         REPLACE_WCTOMB.
17858         * modules/wctomb: New file.
17859         * tests/test-stdlib-c++.cc: Test signature of wctomb.
17860         * doc/posix-functions/wctomb.texi: Mention the new module.
17861         * modules/wctob (Depends-on): Add wctomb.
17862
17863 2011-02-22  Bruno Haible  <bruno@clisp.org>
17864
17865         New module 'mbtowc'.
17866         * lib/stdlib.in.h (mbtowc): New declaration.
17867         * lib/mbtowc.c: New file.
17868         * lib/mbtowc-impl.h: New file, from libutf8 with modifications.
17869         * m4/mbtowc.m4: New file.
17870         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_MBTOWC,
17871         REPLACE_MBTOWC.
17872         * modules/stdlib (Makefile.am): Substitute GNULIB_MBTOWC,
17873         REPLACE_MBTOWC.
17874         * modules/mbtowc: New file.
17875         * tests/test-stdlib-c++.cc: Test signature of mbtowc.
17876         * doc/posix-functions/mbtowc.texi: Mention the new module.
17877         * modules/btowc (Depends-on): Add mbtowc.
17878
17879 2011-02-22  Bruno Haible  <bruno@clisp.org>
17880
17881         wcrtomb: Add more tests for native Windows platforms.
17882         * tests/test-wcrtomb-w32-1.sh: New file.
17883         * tests/test-wcrtomb-w32-2.sh: New file.
17884         * tests/test-wcrtomb-w32-3.sh: New file.
17885         * tests/test-wcrtomb-w32-4.sh: New file.
17886         * tests/test-wcrtomb-w32-5.sh: New file.
17887         * tests/test-wcrtomb-w32.c: New file.
17888         * modules/wcrtomb-tests (Files): Add them.
17889         (Makefile.am): Arrange to run these tests.
17890         * tests/test-wcrtomb-w32-6.sh: New file, currently unused.
17891         * tests/test-wcrtomb-w32-7.sh: New file, currently unused.
17892
17893 2011-02-20  Bruno Haible  <bruno@clisp.org>
17894
17895         wcrtomb: Enhance test.
17896         * tests/test-wcrtomb.c (main): Add test against bug with NULL argument.
17897
17898 2011-02-20  Bruno Haible  <bruno@clisp.org>
17899
17900         mbrtowc: Tiny optimization.
17901         * lib/mbrtowc.c (mbrtowc): Delay pstate assignment until it is needed.
17902
17903 2011-02-20  Jim Meyering  <meyering@redhat.com>
17904
17905         test-exclude.c: remove unmatched #endif
17906         * tests/test-exclude.c: Remove stray #endif, left over from
17907         the change of a week ago.
17908
17909 2011-02-19  Jim Meyering  <meyering@redhat.com>
17910
17911         git-version-gen: skip "-dirty" check when appropriate
17912         * build-aux/git-version-gen: Don't run any git commands when the
17913         version string comes from .tarball-version.  Prior to this, we
17914         would run git update-index --refresh even from a just-unpacked
17915         tarball directory, and that could affect a .git/ directory in a
17916         parent of the build directory.  Reported by Mike Frysinger.
17917
17918 2011-02-19  Bruno Haible  <bruno@clisp.org>
17919
17920         unictype/property-byname: Reduce the size of the 'data' segment.
17921         * lib/unictype/pr_byname.gperf: Add gperf option '%pic'.
17922
17923 2011-02-19  Bruno Haible  <bruno@clisp.org>
17924
17925         unictype/scripts: Reduce the size of the 'data' segment.
17926         * lib/gen-uni-tables.c (output_scripts_byname): Emit gperf option
17927         '%pic'.
17928         * lib/unictype/scripts_byname.gperf: Regenerated.
17929
17930 2011-02-19  Bruno Haible  <bruno@clisp.org>
17931
17932         stdint: Update documentation.
17933         * doc/posix-headers/stdint.texi: Mention WCHAR_MIN, WCHAR_MAX problem.
17934
17935 2011-02-18  Paul Eggert  <eggert@cs.ucla.edu>
17936
17937         stdint: omit redundant check for wchar.h
17938         * m4/stdint.m4 (gl_STDINT_H): The earlier part of this macro now
17939         always tests whether wchar.h exists, so remove the now-redundant test.
17940
17941 2011-02-18  Bruno Haible  <bruno@clisp.org>
17942
17943         stdint: Cut dependency to module 'wchar'.
17944         * lib/stdint.in.h: Include wchar.h only when HAVE_WCHAR_H is 1. Also
17945         include the necessary prerequisites.
17946         * m4/stdint.m4 (gl_STDINT_H): Test whether wchar.h exists.
17947         * modules/stdint (Depends-on): Remove wchar.
17948         (Makefile.am): Substitute HAVE_WCHAR_H.
17949         This reverts part of a 2007-01-06 commit. Reported by Paul Eggert.
17950
17951 2011-02-18  Eric Blake  <eblake@redhat.com>
17952
17953         longlong: skip, rather than fail, on cross-compilation
17954         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Avoid aborting configure
17955         when cross-compiling; regression from 2011-02-16.
17956
17957 2011-02-17  Paul Eggert  <eggert@cs.ucla.edu>
17958
17959         * NEWS: Mention 2011-02-08 change to stdlib.
17960
17961 2011-02-17  Bruno Haible  <bruno@clisp.org>
17962
17963         getloadavg: Add comments about platforms.
17964         * m4/getloadavg.m4: Add comment.
17965         * lib/getloadavg.c: Likewise.
17966
17967 2011-02-17  Bruno Haible  <bruno@clisp.org>
17968
17969         getloadavg: Fix link error on Solaris 2.6.
17970         * modules/getloadavg (Link): New section.
17971         * modules/getloadavg-tests (Makefile.am): Use GETLOADAVG_LIBS for
17972         linking test-getloadavg.
17973         * doc/glibc-functions/getloadavg.texi: Mention that Solaris 2.6 lacks
17974         getloadavg.
17975
17976 2011-02-17  Paul Eggert  <eggert@cs.ucla.edu>
17977
17978         * lib/getloadavg.c (getloadavg) [sgi]: Make ldav_off of type ptrdiff_t.
17979         It was 'int', but this doesn't match the IRIX 6.5 manual.
17980         Suggested by Bruno Haible in
17981         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00207.html>.
17982
17983 2011-02-17  Bruno Haible  <bruno@clisp.org>
17984
17985         havelib: Fix comments.
17986         * m4/lib-link.m4 (AC_LIB_RPATH): Update comments after 2007-01-02
17987         change.
17988
17989 2011-02-17  Bruno Haible  <bruno@clisp.org>
17990
17991         havelib: Update config.rpath.
17992         * build-aux/config.rpath: Update to match libtool.m4 from libtool-2.4.
17993
17994 2011-02-17  Bruno Haible  <bruno@clisp.org>
17995
17996         getloadavg test: Add some plausibility checks.
17997         * tests/test-getloadavg.c (check_avg): Print a warning when the value
17998         is improbable.
17999
18000 2011-02-16  Eric Blake  <eblake@redhat.com>
18001
18002         maintainer-makefile: make syntax-check a no-op from tarballs
18003         * top/maint.mk (no-vc-detected): New rule.
18004         (local-checks-available): Use it to avoid hanging if someone tries
18005         'make syntax-check' from a tarball.  Also append to any non-syntax
18006         checks already defined in cfg.mk.
18007
18008 2011-02-16  Paul Eggert  <eggert@cs.ucla.edu>
18009
18010         longlong: tune, particularly for common case of c99
18011
18012         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Don't bother compiling
18013         or running anything if c99, or if unsigned long long int does not
18014         work.  In either case, we know the answer without further tests.
18015         Do not compile _AC_TYPE_LONG_LONG_SNIPPET twice.  Instead, compile
18016         it at most once, and use its results for both long long int and
18017         unsigned long long int.  This is more likely to be efficient in
18018         the common case where the program wants to check for both long
18019         long int and unsigned long long int.
18020         (AC_TYPE_UNSIGNED_LONG_LONG_INT): Don't bother compiling if c99,
18021         since the answer is already known.
18022
18023 2011-02-15  Paul Eggert  <eggert@cs.ucla.edu>
18024
18025         getloadavg: set errno
18026         * lib/getloadavg.c: Set errno when returning -1.  If no other
18027         error number looks appropriate, set it to ENOSYS if the getloadavg
18028         looks like it can't possibly ever work, ENOTSUP otherwise.
18029         Suggested by Bruno Haible in
18030         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00187.html>.
18031
18032         getloadavg: trim unused parts and speed up 'configure'
18033         * NEWS: Document this.
18034         * lib/getloadavg.c: Ignore HAVE_GETLOADAVG; this file is now
18035         always compiled if getloadavg is absent.
18036         Move test code to ...
18037         * tests/test-getloadavg.c: New file, containing previous
18038         contents of test from lib/getloadavg.c.  It also contains
18039         suggestions by Bruno Haible in
18040         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00186.html>.
18041         * modules/getloadavg-tests: New file.
18042         * m4/getloadavg.m4 (gl_GETLOADAVG): Do not check for getloadavg twice.
18043         Do tests in the same order as they're needed for getloadavg.c.
18044         Omit setgid-related tests that generate symbols KMEM_GROUP,
18045         NEET_SETGID, GETLOADAVG_PRIVILEGED; nobody seems to use those any more.
18046         Do only the tests that are needed to see whether the system has
18047         getloadavg, moving the other tests into ...
18048         (gl_PREREQ_GETLOADAVG): ... here.  Do not define obsolete symbol
18049         NLIST_NAME_UNION; nobody should be using it.  Do not define
18050         symbols C_GETLOADAVG and HAVE_GETLOADAVG; they're no longer
18051         relevant, as the user of this module shouldn't care how getloadavg
18052         is implemented.
18053
18054         getloadavg: omit unused var
18055         * lib/getloadavg.c (getloadavg): Omit unused local variable.
18056
18057 2011-02-15  Jim Meyering  <meyering@redhat.com>
18058
18059         doc: update users.txt
18060         * users.txt: Update iwhd's URL.
18061
18062 2011-02-13  Bruno Haible  <bruno@clisp.org>
18063
18064         Consistent macro naming for macros that use GCC __attribute__.
18065         * lib/di-set.h (_GL_ATTRIBUTE_NONNULL): Renamed from
18066         _ATTRIBUTE_NONNULL_.
18067         * lib/ino-map.h (_GL_ATTRIBUTE_NONNULL): Likewise.
18068         * lib/hash.h (_GL_ATTRIBUTE_WUR): Renamed from ATTRIBUTE_WUR.
18069         * lib/ignore-value.h (_GL_ATTRIBUTE_DEPRECATED): Renamed from
18070         ATTRIBUTE_DEPRECATED.
18071         * lib/openat.h (_GL_ATTRIBUTE_NORETURN): Renamed from
18072         ATTRIBUTE_NORETURN.
18073         * lib/sigpipe-die.h (_GL_ATTRIBUTE_NORETURN): Likewise.
18074         * lib/xmemdup0.h (_GL_ATTRIBUTE_NORETURN): Likewise.
18075         * lib/xstrtol.h (_GL_ATTRIBUTE_NORETURN): Likewise.
18076         * lib/xalloc.h (_GL_ATTRIBUTE_NORETURN): Likewise.
18077         (_GL_ATTRIBUTE_MALLOC): Renamed from ATTRIBUTE_MALLOC.
18078         (_GL_ATTRIBUTE_ALLOC_SIZE): Renamed from ATTRIBUTE_ALLOC_SIZE.
18079         * lib/version-etc.h (_GL_ATTRIBUTE_SENTINEL): Renamed from
18080         ATTRIBUTE_SENTINEL.
18081         * lib/safe-alloc.h (_GL_ATTRIBUTE_RETURN_CHECK): Renamed from
18082         ATTRIBUTE_RETURN_CHECK.
18083         * tests/test-ignore-value.c (_GL_ATTRIBUTE_RETURN_CHECK): Likewise.
18084         * tests/test-argmatch.c (_GL_ATTRIBUTE_NORETURN): Renamed from
18085         ATTRIBUTE_NORETURN.
18086         * tests/test-exclude.c (_GL_ATTRIBUTE_NORETURN): Likewise.
18087         Reported by Paul Eggert.
18088
18089 2011-02-13  Bruno Haible  <bruno@clisp.org>
18090
18091         Don't interfere with a program's definition of __attribute__.
18092         * lib/argp.h (__attribute__): Remove definition.
18093         (_GL_ATTRIBUTE_FORMAT): New macro.
18094         (argp_error, __argp_error, argp_failure, __argp_failure): Use it.
18095         * lib/argp-fmtstream.h (__attribute__): Remove definition.
18096         (_GL_ATTRIBUTE_FORMAT): New macro.
18097         (__argp_fmtstream_printf, argp_fmtstream_printf): Use it.
18098         * lib/argp-help.c (hol_entry_long_iterate): Use __attribute__ only for
18099         GCC 3 or newer.
18100         * lib/error.h (__attribute__): Remove definition.
18101         (_GL_ATTRIBUTE_FORMAT): New macro.
18102         (error, error_at_line): Use it.
18103         * lib/hash.h (__attribute__): Remove definition.
18104         (ATTRIBUTE_WUR): Update definition. Define always.
18105         * lib/openat.h (__attribute__): Remove definition.
18106         (ATTRIBUTE_NORETURN): Update definition. Define always.
18107         * lib/sigpipe-die.h (__attribute__): Remove definition.
18108         (ATTRIBUTE_NORETURN): Update definition. Define always.
18109         * lib/vasnprintf.h (__attribute__): Remove definition.
18110         (_GL_ATTRIBUTE_FORMAT): New macro.
18111         (asnprintf, vasnprintf): Use it.
18112         * lib/xalloc.h (__attribute__): Remove definition.
18113         (ATTRIBUTE_NORETURN): Update definition. Define always.
18114         (ATTRIBUTE_MALLOC, ATTRIBUTE_ALLOC_SIZE): Define always.
18115         * lib/xmemdup0.h (__attribute__): Remove definition.
18116         (ATTRIBUTE_NORETURN): Update definition. Define always.
18117         * lib/xprintf.h (__attribute__): Remove definition.
18118         (_GL_ATTRIBUTE_FORMAT): New macro.
18119         (xprintf, xvprintf, xfprintf, xvfprintf): Use it.
18120         * lib/xstrtol.h (__attribute__): Remove definition.
18121         (ATTRIBUTE_NORETURN): Update definition. Define always.
18122         * lib/xvasprintf.h (__attribute__): Remove definition.
18123         (_GL_ATTRIBUTE_FORMAT): New macro.
18124         (xasprintf, xvasprintf): Use it.
18125         * tests/test-argmatch.c (__attribute__): Remove definition.
18126         (ATTRIBUTE_NORETURN): Update definition. Define always.
18127         * tests/test-exclude.c (__attribute__): Remove definition.
18128         (ATTRIBUTE_NORETURN): Update definition. Define always.
18129         Reported by Paul Eggert.
18130
18131 2011-02-13  Bruno Haible  <bruno@clisp.org>
18132
18133         mbrtowc: Add more tests for native Windows platforms.
18134         * tests/test-mbrtowc-w32-1.sh: New file.
18135         * tests/test-mbrtowc-w32-2.sh: New file.
18136         * tests/test-mbrtowc-w32-3.sh: New file.
18137         * tests/test-mbrtowc-w32-4.sh: New file.
18138         * tests/test-mbrtowc-w32-5.sh: New file.
18139         * tests/test-mbrtowc-w32.c: New file.
18140         * modules/mbrtowc-tests (Files): Add them.
18141         (Makefile.am): Arrange to run these tests.
18142         * tests/test-mbrtowc-w32-6.sh: New file, currently unused.
18143         * tests/test-mbrtowc-w32-7.sh: New file, currently unused.
18144
18145 2011-02-13  Bruno Haible  <bruno@clisp.org>
18146
18147         mbrtowc: Work around native Windows bug.
18148         * m4/mbrtowc.m4 (gl_MBRTOWC_RETVAL): Detect native Windows bug. Use the
18149         guess when no suitable locale for testing was found.
18150         * doc/posix-functions/mbrtowc.texi: Mention the native Windows bug.
18151
18152 2011-02-13  Bruno Haible  <bruno@clisp.org>
18153
18154         mbsinit: Work around mingw bug.
18155         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Replace mbsinit also on mingw.
18156         * lib/mbsinit.c (mbsinit): Provide an alternate definition for native
18157         Windows.
18158         * doc/posix-functions/mbsinit.texi: Mention the mingw bug.
18159
18160 2011-02-13  Bruno Haible  <bruno@clisp.org>
18161
18162         mbsinit: Don't crash for a NULL argument.
18163         * lib/mbsinit.c (mbsinit): When the argument is NULL, return 1.
18164         * tests/test-mbsinit.c (mbsinit): Check this behaviour.
18165
18166 2011-02-13  Bruno Haible  <bruno@clisp.org>
18167
18168         Don't interfere with a program's definition of __attribute__.
18169         * lib/stdio.in.h (__attribute__): Remove definition.
18170         (_GL_ATTRIBUTE_FORMAT, _GL_ATTRIBUTE_FORMAT_PRINTF): New macros.
18171         (dprintf, fprintf, obstack_printf, obstack_printf, obstack_vprintf,
18172         printf, snprintf, sprintf, asprintf, vasprintf, vdprintf, vfprintf,
18173         vsnprintf, vsprintf): Use _GL_ATTRIBUTE_FORMAT_PRINTF.
18174         * lib/string.in.h (__attribute__): Remove definition.
18175         Reported by Paul Eggert.
18176
18177 2011-02-12  Paul Eggert  <eggert@cs.ucla.edu>
18178
18179         stdlib: don't get in the way of non-GCC __attribute__
18180         See thread starting at
18181         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00161.html>.
18182         Revert previous stdlib change, installing the following instead:
18183         * lib/stdlib.in.h (__attribute__): Remove.  We do not want
18184         to get in the way of a non-GCC compiler that supports __attribute__.
18185         (_GL_ATTRIBUTE_RETURN): New macro.
18186         (_Exit): Use it instead of __attribute__.
18187
18188 2011-02-12  Bruno Haible  <bruno@clisp.org>
18189
18190         quotearg test: Avoid test failure on mingw.
18191         * tests/test-quotearg.sh: Convert the locale identifier from native
18192         Windows syntax to Unix syntax.
18193
18194 2011-02-12  Bruno Haible  <bruno@clisp.org>
18195
18196         setlocale: Prefer gnulib's override over libintl's override.
18197         * lib/locale.in.h (GNULIB_defined_setlocale): New macro.
18198         * lib/gettext.h (setlocale): Redefine to rpl_setlocale if
18199         GNULIB_defined_setlocale is set.
18200
18201 2011-02-12  Paul Eggert  <eggert@cs.ucla.edu>
18202
18203         stdlib: support non-GCC __attribute__
18204
18205         Fix a serious and tricky problem encountered when attempting to
18206         add the getloadavg module to Emacs.  Emacs worked fine on RHEL
18207         5.5, but it crashed due to memory corruption on Solaris 10 with
18208         Sun C 5.11.  Emacs normally ORs 3-bit tags into their low-order
18209         bits that are otherwise zero.  This tagging is optional inside
18210         Emacs but is preferred and is used when __attribute__ ((__aligned
18211         (8))) works, as it does with both recent-enough GCC and with Sun C
18212         5.11.  However, Sun C 5.11 is not GCC and does not #define
18213         __GNUC__ and __GNUC_MINOR__.
18214
18215         When I added the getloadavg module to Emacs, it brought in
18216         stdlib.in.h, which contained this fragment:
18217
18218            #ifndef __attribute__
18219            # if __GNUC__ < 2 || (__GNUC__ == 2 && __GNUC_MINOR__ < 8)
18220            #  define __attribute__(Spec)   /* empty */
18221            # endif
18222            #endif
18223
18224         When files that include <stdlib.h> were compiled with Sun C 5.11,
18225         the above code disabled __attribute__ ((__aligned (8))), which
18226         caused variables to not be properly aligned, which eventually led
18227         to the pointer corruption mentioned above.  (This was a bit hard
18228         to diagnose, unfortunately.)
18229
18230         Several "#define __attribute__(X) /* empty */" code snippets need
18231         to be eradicated from Gnulib to work with non-GCC compilers that
18232         support __attribute__.  The Autoconf way to do this is to test for
18233         each kind of attribute that we want support for, and selectively
18234         enable that in source code.
18235
18236         Fix this problem just for stdlib.h, by adding a test for the
18237         __noreturn__ attribute, and change stdlib.in.h to use that test
18238         when needed.  This technique can be easily generalized to the
18239         other *.in.h files and attributes, and a similar technique can be
18240         used for *.h and *.c files.  This patch is enough to solve the
18241         problem for Emacs + getloadavg, and I thought I'd publish it for
18242         feedback before undertaking further, similar fixes in other
18243         modules.
18244
18245         This patch does not arrange to #define HAVE_ATTRIBUTE_NORETURN
18246         because it's not needed for stdlib.h.  It merely substitutes the
18247         value directly into stdlib.h.  We may well need to #define it, or
18248         similar symbols, for other modules, but it's nice to also have an
18249         option to not #define it for applications like Emacs that do not
18250         need it.
18251
18252         * lib/stdlib.in.h (__attribute__): Do not #define.
18253         (_GL_ATTRIBUTE_NORETURN): New macro, which in stdlib.h needs to
18254         be defined only if the _Exit module is also used.
18255         * m4/_Exit.m4 (gl_FUNC__EXIT): Require gl_ATTRIBUTE_NORETURN.
18256         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Subst
18257         HAVE_ATTRIBUTE_NORETURN and default it to 1, its value on GNU
18258         platforms.
18259         * modules/_Exit (Files): Add m4/attribute.m4.
18260         * modules/stdlib (Makefile.am): Substitute HAVE_ATTRIBUTE_NORETURN.
18261         * m4/attribute.m4: New file.
18262
18263 2011-02-12  Bruno Haible  <bruno@clisp.org>
18264
18265         wcsrtombs: Work around bug on native Windows.
18266         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_NULL): Test against mingw bug.
18267         * lib/wcsrtombs.c (rpl_wcsrtombs): When dest is NULL, pass SIZE_MAX
18268         instead of len.
18269         * doc/posix-functions/wcsrtombs.texi: Document mingw bug.
18270
18271 2011-02-12  Bruno Haible  <bruno@clisp.org>
18272
18273         mbsrtowcs: Work around bug on native Windows.
18274         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Require gt_LOCALE_FR. Test
18275         against mingw bug.
18276         * doc/posix-functions/mbsrtowcs.texi: Document mingw bug.
18277
18278 2011-02-12  Bruno Haible  <bruno@clisp.org>
18279
18280         Avoid setlocale bugs in tests.
18281         * modules/btowc (Dependencies): Add setlocale.
18282         * modules/c-strcase (Dependencies): Likewise.
18283         * modules/mbmemcasecmp (Dependencies): Likewise.
18284         * modules/mbmemcasecoll (Dependencies): Likewise.
18285         * modules/mbrtowc (Dependencies): Likewise.
18286         * modules/mbscasecmp (Dependencies): Likewise.
18287         * modules/mbscasestr (Dependencies): Likewise.
18288         * modules/mbschr (Dependencies): Likewise.
18289         * modules/mbscspn (Dependencies): Likewise.
18290         * modules/mbsinit (Dependencies): Likewise.
18291         * modules/mbsncasecmp (Dependencies): Likewise.
18292         * modules/mbsnrtowcs (Dependencies): Likewise.
18293         * modules/mbspbrk (Dependencies): Likewise.
18294         * modules/mbspcasecmp (Dependencies): Likewise.
18295         * modules/mbsrchr (Dependencies): Likewise.
18296         * modules/mbsrtowcs (Dependencies): Likewise.
18297         * modules/mbsspn (Dependencies): Likewise.
18298         * modules/mbsstr (Dependencies): Likewise.
18299         * modules/nl_langinfo (Dependencies): Likewise.
18300         * modules/quotearg (Dependencies): Likewise.
18301         * modules/unicase/locale-language (Dependencies): Likewise.
18302         * modules/unicase/ulc-casecmp (Dependencies): Likewise.
18303         * modules/unicase/ulc-casecoll (Dependencies): Likewise.
18304         * modules/unigbrk/ulc-grapheme-breaks (Dependencies): Likewise.
18305         * modules/unistdio/u8-vasnprintf (Dependencies): Likewise.
18306         * modules/unistdio/u16-vasnprintf (Dependencies): Likewise.
18307         * modules/unistdio/u32-vasnprintf (Dependencies): Likewise.
18308         * modules/unistdio/ulc-vasnprintf (Dependencies): Likewise.
18309         * modules/uniwbrk/ulc-wordbreaks (Dependencies): Likewise.
18310         * modules/vasnprintf-posix (Dependencies): Likewise.
18311         * modules/wcrtomb (Dependencies): Likewise.
18312         * modules/wcsnrtombs (Dependencies): Likewise.
18313         * modules/wcsrtombs (Dependencies): Likewise.
18314
18315 2011-02-12  Bruno Haible  <bruno@clisp.org>
18316
18317         setlocale: Workaround native Windows bug.
18318         * lib/setlocale.c (rpl_setlocale): On native Windows, when setlocale
18319         succeeds but sets LC_CTYPE to "C", report a failure.
18320         * tests/test-setlocale2.sh: New file.
18321         * tests/test-setlocale2.c: New file.
18322         * modules/setlocale-tests (Files): Add the new files.
18323         (Makefile.am): Enable test-setlocale2.sh test.
18324         * doc/posix-functions/setlocale.texi: Mention workaround.
18325
18326 2011-02-11  Bruno Haible  <bruno@clisp.org>
18327
18328         Tests for module 'setlocale'.
18329         * modules/setlocale-tests: New file.
18330         * tests/test-setlocale1.sh: New file.
18331         * tests/test-setlocale1.c: New file.
18332
18333         New module 'setlocale'.
18334         * lib/locale.in.h (setlocale): New declaration.
18335         * lib/setlocale.c: New file, based on
18336         gettext/gettext-runtime/intl/setlocale.c.
18337         * m4/setlocale.m4: New file.
18338         * m4/locale_h.m4 (gl_LOCALE_H): Test whether setlocale is declared.
18339         (gl_LOCALE_H_DEFAULTS): Initialize GNULIB_SETLOCALE, REPLACE_SETLOCALE.
18340         * modules/locale (Makefile.am): Substitute GNULIB_SETLOCALE,
18341         REPLACE_SETLOCALE.
18342         * modules/setlocale: New file.
18343         * tests/test-locale-c++.cc: Test the declaration of setlocale.
18344         * doc/posix-functions/setlocale.texi: Mention the new module.
18345
18346 2011-02-11  Bruno Haible  <bruno@clisp.org>
18347
18348         Prepare for locale dependent tests on mingw.
18349         * m4/locale-ar.m4 (gt_LOCALE_AR): On native Windows, don't try "ar"
18350         because it has the wrong locale encoding.
18351         * m4/locale-fr.m4 (gt_LOCALE_FR): On native Windows, try
18352         French_France.1252 instead of "fr".
18353         (gt_LOCALE_FR_UTF8): On native Windows, try French_France.65001.
18354         * m4/locale-ja.m4 (gt_LOCALE_JA): On native Windows, don't try "ja"
18355         because it has the wrong locale encoding.
18356         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Require AC_CANONICAL_HOST. On
18357         native Windows, try Turkish_Turkey.65001.
18358         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): On native Windows, try
18359         Chinese_China.54936.
18360
18361         Prepare for locale dependent tests on mingw.
18362         * m4/locale-ar.m4 (gt_LOCALE_AR): On native Windows, call setlocale
18363         differently.
18364         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Likewise.
18365         * m4/locale-ja.m4 (gt_LOCALE_JA): Likewise.
18366         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
18367         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
18368
18369 2011-02-11  Eric Blake  <eblake@redhat.com>
18370
18371         strptime: avoid compiler warnings
18372         * lib/strptime.c (__strptime_internal) [!_NL_CURRENT]: Avoid
18373         compiler warnings about dead code.
18374         Reported by Daniel P. Berrange.
18375
18376 2011-02-11  Thien-Thi Nguyen  <ttn@gnuvola.org>
18377
18378         doc: update users.txt
18379         * users.txt: Add rcs.
18380
18381 2011-02-10  John W. Eaton  <jwe@gnu.org>
18382
18383         doc: update users.txt
18384         * users.txt: Add octave.
18385
18386 2011-02-10  Jim Meyering  <meyering@redhat.com>
18387
18388         doc: update users.txt
18389         * users.txt: Add iwhd.
18390
18391 2011-02-09  Bruno Haible  <bruno@clisp.org>
18392
18393         gnulib-tool: Make copyright notice adjustment more robust.
18394         * gnulib-tool (func_import): In sed_transform_main_lib_file,
18395         sed_transform_build_aux_file, sed_transform_testsrelated_lib_file,
18396         allow a line break to occur after "GNU" in "GNU [Lesser] General Public
18397         License".
18398         Reported by Glenn Morris <rgm@gnu.org> via Paul Eggert.
18399
18400 2011-02-06  Bruno Haible  <bruno@clisp.org>
18401
18402         New module 'towctrans'.
18403         * modules/towctrans: New file.
18404         * lib/wctype.in.h (towctrans): New declaration.
18405         * lib/towctrans.c: New file.
18406         * lib/towctrans-impl.h: New file.
18407         * m4/towctrans.m4: New file.
18408         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether towctrans is declared.
18409         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_TOWCTRANS.
18410         * modules/wctype-h (Makefile.am): Substitute GNULIB_TOWCTRANS.
18411         * tests/test-wctype-h-c++.cc: Test the declaration of towctrans.
18412         * doc/posix-functions/towctrans.texi: Mention the new module.
18413
18414 2011-02-06  Bruno Haible  <bruno@clisp.org>
18415
18416         New module 'wctrans'.
18417         * modules/wctrans: New file.
18418         * lib/wctype.in.h (wctrans): New declaration.
18419         * lib/wctrans.c: New file.
18420         * lib/wctrans-impl.h: New file.
18421         * m4/wctrans.m4: New file.
18422         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether wctrans is declared.
18423         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_WCTRANS.
18424         * modules/wctype-h (Makefile.am): Substitute GNULIB_WCTRANS.
18425         * tests/test-wctype-h-c++.cc: Test the declaration of wctrans.
18426         * doc/posix-functions/wctrans.texi: Mention the new module.
18427
18428 2011-02-06  Bruno Haible  <bruno@clisp.org>
18429
18430         New module 'iswctype'.
18431         * modules/iswctype: New file.
18432         * lib/wctype.in.h (iswctype): New declaration.
18433         * lib/iswctype.c: New file.
18434         * lib/iswctype-impl.h: New file.
18435         * m4/iswctype.m4: New file.
18436         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether iswctype is declared.
18437         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_ISWCTYPE.
18438         * modules/wctype-h (Makefile.am): Substitute GNULIB_ISWCTYPE.
18439         * tests/test-wctype-h-c++.cc: Test the declaration of iswctype.
18440         * doc/posix-functions/iswctype.texi: Mention the new module and the
18441         HP-UX 11.00 problem.
18442
18443 2011-02-06  Bruno Haible  <bruno@clisp.org>
18444
18445         New module 'wctype'.
18446         * modules/wctype: Change to represent the wctype() substitute.
18447         * lib/wctype.in.h (wctype): New declaration.
18448         * lib/wctype.c: New file.
18449         * lib/wctype-impl.h: New file.
18450         * m4/wctype.m4: New file.
18451         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether wctype is declared.
18452         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_WCTYPE.
18453         * modules/wctype-h (Makefile.am): Substitute GNULIB_WCTYPE.
18454         * tests/test-wctype-h-c++.cc: Test the declaration of wctype.
18455         * doc/posix-functions/wctype.texi: Mention the new module and the
18456         HP-UX 11.00 problem.
18457
18458 2011-02-06  Bruno Haible  <bruno@clisp.org>
18459
18460         wctype-h: Ensure wctype_t and wctrans_t are defined.
18461         * lib/wctype.in.h (wctype_t, wctrans_t): New type declarations.
18462         * m4/wctype_h.m4 (gl_WCTYPE_H): Determine HAVE_WCTYPE_T, HAVE_WCTRANS_T.
18463         (gl_WCTYPE_H_DEFAULTS): Initialize HAVE_WCTYPE_T, HAVE_WCTRANS_T.
18464         * modules/wctype-h (Makefile.am): Substitute HAVE_WCTYPE_T,
18465         HAVE_WCTRANS_T.
18466         * tests/test-wctype-h.c: Check that wctype_t and wctrans_t are defined.
18467
18468 2011-02-09  Paul Eggert  <eggert@cs.ucla.edu>
18469
18470         flock: fix license typo
18471
18472         * lib/flock.c: Fix typo in license.  One of the "Lesser"s was
18473         omitted.
18474
18475 2011-02-08  Bruno Haible  <bruno@clisp.org>
18476
18477         Split large sed scripts, for HP-UX sed.
18478         * modules/math (Makefile.am): Split sed scripts around 50 sed commands,
18479         to avoid HP-UX limit of 99 commands, in the near future.
18480         * modules/stdlib (Makefile.am): Likewise.
18481         * modules/unistd (Makefile.am): Likewise.
18482         * modules/wchar (Makefile.am): Likewise.
18483         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
18484         Suggestion by Ralf Wildenhues <Ralf.Wildenhues@gmx.de> in
18485         <http://lists.gnu.org/archive/html/bug-gnulib/2010-01/msg00216.html>.
18486
18487 2011-02-08  Paul Eggert  <eggert@cs.ucla.edu>
18488             Bruno Haible  <bruno@clisp.org>
18489
18490         stdlib: improve random_r modularization
18491         * lib/stdlib.in.h: Encapsulate all the stuff having to do with
18492         random_r inside "#if @GNULIB_RANDOM_R@", so that it's clearer that
18493         you also need the random_r module to get this material right.
18494         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Move check for random.h here ...
18495         * m4/stdlib_h.m4 (gl_STDLIB_H): ... from here.
18496         (gl_STDLIB_H_DEFAULTS): Default HAVE_RANDOM_H to 1, and AC_SUBST it.
18497
18498 2011-02-08  Paul Eggert  <eggert@cs.ucla.edu>
18499
18500         stdlib: don't depend on stdint
18501         * lib/stdlib.in.h: Don't include <stdint.h> merely because
18502         GNULIB_POSIXCHECK is defined.  GNULIB_POSIXCHECK seems to
18503         be independent of whether stdint.h is needed.
18504         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Check for struct random_data
18505         here, instead of ...
18506         * m4/stdlib_h.m4 (gl_STDLIB_H): ... here.  Applications that need
18507         struct random_data should be using the random_r module, not just
18508         the stdlib module (which wouldn't make sense: what package needs
18509         just struct random_data without also needing random_r?).
18510         * modules/stdlib (Depends-on): Remove stdint.
18511
18512         getloadavg: don't depend on c-strtod, cloexec, fcntl-safer
18513         See the thread rooted at
18514         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00090.html>.
18515         * lib/getloadavg.c: Do not include c-strtod.h, cloexec.h, or fcntl--.h.
18516         Include <fcntl.h> only if (defined __linux__ || defined __CYGWIN__
18517         || defined SUNOS_5 || (defined LOAD_AVE_TYPE && !  defined
18518         __VMS)); previously it was always included (via fcntl--.h).
18519         (getloadavg): Do not use c_strtod.  Instead, approximate it by
18520         hand; this is good enough for load averages.  Also, do not use
18521         set_cloexec_flag; instead, use the O_CLOEXEC and F_DUPFD_CLOEXEC
18522         flags directly if available and don't bother otherwise.  (Packages
18523         that need the extra reliability should use the modules that define
18524         these flags on older platforms that lack them.)
18525         * modules/getloadavg (Depends-on): Remove c-strtod, cloexec,
18526         fcntl-safer.
18527
18528 2011-02-08  Jim Meyering  <meyering@redhat.com>
18529
18530         di-set.h, ino-map.h: add multiple-inclusion guard
18531         Technically, the guard is required only for ino-map.h, due to its
18532         INO_MAP_INSERT_FAILURE definition, but do both for consistency.
18533         * lib/di-set.h: Add file-spanning #ifndef _GL_DI_SET_H.
18534         * lib/ino-map.h: Likewise.
18535
18536 2011-02-06  Bruno Haible  <bruno@clisp.org>
18537
18538         iswblank: Ensure declaration on glibc systems.
18539         * m4/iswblank.m4 (gl_FUNC_ISWBLANK): Require gl_USE_SYSTEM_EXTENSIONS.
18540         * modules/iswblank (Dependencies): Add 'extensions'.
18541         * doc/posix-functions/iswblank.texi: Document the glibc problem.
18542
18543 2011-02-06  Bruno Haible  <bruno@clisp.org>
18544
18545         New module 'iswblank'.
18546         * lib/wctype.in.h (iswblank): Don't declare if GNULIB_ISWBLANK is 0.
18547         * modules/iswblank: New file.
18548         * modules/wctype-h (Files): Remove lib/iswblank.c.
18549         (Makefile.am): Substitute GNULIB_ISWBLANK.
18550         * m4/iswblank.m4: New file, partially extracted from m4/wctype_h.m4.
18551         * m4/wctype_h.m4 (gl_WCTYPE_MODULE_INDICATOR): New macro.
18552         (gl_WCTYPE_H_DEFAULTS): New macro.
18553         (gl_WCTYPE_H): Require it. Remove iswblank related code.
18554         * modules/iswblank-tests: New file.
18555         * tests/test-iswblank.c: New file, extraced from tests/test-wctype-h.c.
18556         * tests/test-wctype-h.c (main): Remove iswblank tests.
18557         * tests/test-wctype-h-c++.cc: Guard the signature test of iswblank.
18558         * doc/posix-functions/iswblank.texi: Mention module 'iswblank' instead
18559         of 'wctype-h'.
18560         * NEWS: Mention the change.
18561         * modules/mbchar (Depends-on): Add iswblank.
18562
18563 2011-02-08  Bruno Haible  <bruno@clisp.org>
18564
18565         di-set tests: Refactor.
18566         * tests/test-di-set.c: Include di-set.h early. Include macros.h. Drop
18567         unnecessary includes.
18568         (ASSERT): Remove macro.
18569         (main): Make C90 compliant by avoiding variable declaration after
18570         statement.
18571         * modules/di-set-tests (Files): Add tests/macros.h.
18572
18573 2011-02-08  Bruno Haible  <bruno@clisp.org>
18574
18575         ino-map tests: Refactor.
18576         * tests/test-ino-map.c: Include ino-map.h early. Include macros.h. Drop
18577         unnecessary includes.
18578         (ASSERT): Remove macro.
18579         (main): Make C90 compliant by avoiding variable declaration after
18580         statement.
18581         * modules/ino-map-tests (Files): Add tests/macros.h.
18582
18583 2011-02-08  Jim Meyering  <meyering@redhat.com>
18584
18585         di-set: add "const" to a cast
18586         * lib/di-set.c (di_set_insert): Cast hash_insert0 argument to
18587         "(void const *)", not "(void *)".  Spotted by Bruno Haible.
18588
18589 2011-02-06  Bruno Haible  <bruno@clisp.org>
18590
18591         Rename module 'wctype' to 'wctype-h'.
18592         * modules/wctype-h: Renamed from modules/wctype.
18593         * modules/wctype: Simplyfy to a redirection to 'wctype-h'.
18594         * modules/wctype-h-tests: Renamed from modules/wctype-tests.
18595         (Files, Depends-on, Makefile.am): Update.
18596         * modules/wctype-h-c++-tests: Renamed from modules/wctype-c++-tests.
18597         (Files, Makefile.am): Update.
18598         * tests/test-wctype-h.c: Renamed from tests/test-wctype.c.
18599         * tests/test-wctype-h-c++.cc: Renamed from tests/test-wctype-c++.cc.
18600         * doc/posix-headers/wctype.texi: Update.
18601         * doc/posix-functions/iswalnum.texi: Update.
18602         * doc/posix-functions/iswalpha.texi: Update.
18603         * doc/posix-functions/iswblank.texi: Update.
18604         * doc/posix-functions/iswcntrl.texi: Update.
18605         * doc/posix-functions/iswdigit.texi: Update.
18606         * doc/posix-functions/iswgraph.texi: Update.
18607         * doc/posix-functions/iswlower.texi: Update.
18608         * doc/posix-functions/iswprint.texi: Update.
18609         * doc/posix-functions/iswpunct.texi: Update.
18610         * doc/posix-functions/iswspace.texi: Update.
18611         * doc/posix-functions/iswupper.texi: Update.
18612         * doc/posix-functions/iswxdigit.texi: Update.
18613         * doc/posix-functions/towlower.texi: Update.
18614         * doc/posix-functions/towupper.texi: Update.
18615         * NEWS: Mention the change.
18616         * modules/fnmatch (Dependencies): Add wctype-h, remove wctype.
18617         * modules/mbchar (Dependencies): Likewise.
18618         * modules/mbswidth (Dependencies): Likewise.
18619         * modules/quotearg (Dependencies): Likewise.
18620         * modules/regex (Dependencies): Likewise.
18621         * modules/wcscasecmp (Dependencies): Likewise.
18622         * modules/wcsncasecmp (Dependencies): Likewise.
18623         * modules/wcwidth (Dependencies): Likewise.
18624
18625 2011-02-06  Bruno Haible  <bruno@clisp.org>
18626
18627         New module 'wcswidth'.
18628         * modules/wcswidth: New file.
18629         * lib/wchar.in.h (wcswidth): New declaration.
18630         * lib/wcswidth.c: New file.
18631         * lib/wcswidth-impl.h: New file, from libutf8 with modifications.
18632         * m4/wcswidth.m4: New file.
18633         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcswidth is declared.
18634         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSWIDTH, HAVE_WCSWIDTH,
18635         REPLACE_WCSWIDTH.
18636         * modules/wchar (Makefile.am): Substitute GNULIB_WCSWIDTH,
18637         HAVE_WCSWIDTH, REPLACE_WCSWIDTH.
18638         * tests/test-wchar-c++.cc: Test the declaration of wcswidth.
18639         * doc/posix-functions/wcswidth.texi: Mention the new module.
18640
18641 2011-02-06  Bruno Haible  <bruno@clisp.org>
18642
18643         New module 'wcstok'.
18644         * modules/wcstok: New file.
18645         * lib/wchar.in.h (wcstok): New declaration.
18646         * lib/wcstok.c: New file.
18647         * lib/wcstok-impl.h: New file, from libutf8 with modifications.
18648         * m4/wcstok.m4: New file.
18649         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcstok is declared.
18650         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSTOK, HAVE_WCSTOK.
18651         * modules/wchar (Makefile.am): Substitute GNULIB_WCSTOK, HAVE_WCSTOK.
18652         * tests/test-wchar-c++.cc: Test the declaration of wcstok.
18653         * doc/posix-functions/wcstok.texi: Mention the new module.
18654
18655 2011-02-06  Bruno Haible  <bruno@clisp.org>
18656
18657         New module 'wcsstr'.
18658         * modules/wcsstr: New file.
18659         * lib/wchar.in.h (wcsstr): New declaration.
18660         * lib/wcsstr.c: New file.
18661         * lib/wcsstr-impl.h: New file, from libutf8 with modifications.
18662         * m4/wcsstr.m4: New file.
18663         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsstr is declared.
18664         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSSTR, HAVE_WCSSTR.
18665         * modules/wchar (Makefile.am): Substitute GNULIB_WCSSTR, HAVE_WCSSTR.
18666         * tests/test-wchar-c++.cc: Test the declaration of wcsstr.
18667         * doc/posix-functions/wcsstr.texi: Mention the new module.
18668
18669 2011-02-06  Bruno Haible  <bruno@clisp.org>
18670
18671         New module 'wcspbrk'.
18672         * modules/wcspbrk: New file.
18673         * lib/wchar.in.h (wcspbrk): New declaration.
18674         * lib/wcspbrk.c: New file.
18675         * lib/wcspbrk-impl.h: New file, from libutf8 with modifications.
18676         * m4/wcspbrk.m4: New file.
18677         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcspbrk is declared.
18678         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSPBRK, HAVE_WCSPBRK.
18679         * modules/wchar (Makefile.am): Substitute GNULIB_WCSPBRK, HAVE_WCSPBRK.
18680         * tests/test-wchar-c++.cc: Test the declaration of wcspbrk.
18681         * doc/posix-functions/wcspbrk.texi: Mention the new module.
18682
18683 2011-02-06  Bruno Haible  <bruno@clisp.org>
18684
18685         New module 'wcsspn'.
18686         * modules/wcsspn: New file.
18687         * lib/wchar.in.h (wcsspn): New declaration.
18688         * lib/wcsspn.c: New file.
18689         * lib/wcsspn-impl.h: New file, from libutf8 with modifications.
18690         * m4/wcsspn.m4: New file.
18691         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsspn is declared.
18692         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSSPN, HAVE_WCSSPN.
18693         * modules/wchar (Makefile.am): Substitute GNULIB_WCSSPN, HAVE_WCSSPN.
18694         * tests/test-wchar-c++.cc: Test the declaration of wcsspn.
18695         * doc/posix-functions/wcsspn.texi: Mention the new module.
18696
18697 2011-02-06  Bruno Haible  <bruno@clisp.org>
18698
18699         New module 'wcscspn'.
18700         * modules/wcscspn: New file.
18701         * lib/wchar.in.h (wcscspn): New declaration.
18702         * lib/wcscspn.c: New file.
18703         * lib/wcscspn-impl.h: New file, from libutf8 with modifications.
18704         * m4/wcscspn.m4: New file.
18705         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscspn is declared.
18706         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCSPN, HAVE_WCSCSPN.
18707         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCSPN, HAVE_WCSCSPN.
18708         * tests/test-wchar-c++.cc: Test the declaration of wcscspn.
18709         * doc/posix-functions/wcscspn.texi: Mention the new module.
18710
18711 2011-02-06  Bruno Haible  <bruno@clisp.org>
18712
18713         New module 'wcsrchr'.
18714         * modules/wcsrchr: New file.
18715         * lib/wchar.in.h (wcsrchr): New declaration.
18716         * lib/wcsrchr.c: New file.
18717         * lib/wcsrchr-impl.h: New file, from libutf8 with modifications.
18718         * m4/wcsrchr.m4: New file.
18719         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsrchr is declared.
18720         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSRCHR, HAVE_WCSRCHR.
18721         * modules/wchar (Makefile.am): Substitute GNULIB_WCSRCHR, HAVE_WCSRCHR.
18722         * tests/test-wchar-c++.cc: Test the declaration of wcsrchr.
18723         * doc/posix-functions/wcsrchr.texi: Mention the new module.
18724
18725 2011-02-06  Bruno Haible  <bruno@clisp.org>
18726
18727         New module 'wcschr'.
18728         * modules/wcschr: New file.
18729         * lib/wchar.in.h (wcschr): New declaration.
18730         * lib/wcschr.c: New file.
18731         * lib/wcschr-impl.h: New file, from libutf8 with modifications.
18732         * m4/wcschr.m4: New file.
18733         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcschr is declared.
18734         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCHR, HAVE_WCSCHR.
18735         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCHR, HAVE_WCSCHR.
18736         * tests/test-wchar-c++.cc: Test the declaration of wcschr.
18737         * doc/posix-functions/wcschr.texi: Mention the new module.
18738
18739 2011-02-06  Bruno Haible  <bruno@clisp.org>
18740
18741         New module 'wcsdup'.
18742         * modules/wcsdup: New file.
18743         * lib/wchar.in.h (wcsdup): New declaration.
18744         * lib/wcsdup.c: New file.
18745         * lib/wcsdup-impl.h: New file, from libutf8 with modifications.
18746         * m4/wcsdup.m4: New file.
18747         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsdup is declared.
18748         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSDUP, HAVE_WCSDUP.
18749         * modules/wchar (Makefile.am): Substitute GNULIB_WCSDUP, HAVE_WCSDUP.
18750         * tests/test-wchar-c++.cc: Test the declaration of wcsdup.
18751         * doc/posix-functions/wcsdup.texi: Mention the new module.
18752
18753 2011-02-06  Bruno Haible  <bruno@clisp.org>
18754
18755         New module 'wcsxfrm'.
18756         * modules/wcsxfrm: New file.
18757         * lib/wchar.in.h (wcsxfrm): New declaration.
18758         * lib/wcsxfrm.c: New file.
18759         * lib/wcsxfrm-impl.h: New file.
18760         * m4/wcsxfrm.m4: New file.
18761         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsxfrm is declared.
18762         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSXFRM, HAVE_WCSXFRM.
18763         * modules/wchar (Makefile.am): Substitute GNULIB_WCSXFRM, HAVE_WCSXFRM.
18764         * tests/test-wchar-c++.cc: Test the declaration of wcsxfrm.
18765         * doc/posix-functions/wcsxfrm.texi: Mention the new module.
18766
18767 2011-02-06  Bruno Haible  <bruno@clisp.org>
18768
18769         New module 'wcscoll'.
18770         * modules/wcscoll: New file.
18771         * lib/wchar.in.h (wcscoll): New declaration.
18772         * lib/wcscoll.c: New file.
18773         * lib/wcscoll-impl.h: New file.
18774         * m4/wcscoll.m4: New file.
18775         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscoll is declared.
18776         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCOLL, HAVE_WCSCOLL.
18777         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCOLL, HAVE_WCSCOLL.
18778         * tests/test-wchar-c++.cc: Test the declaration of wcscoll.
18779         * doc/posix-functions/wcscoll.texi: Mention the new module.
18780
18781 2011-02-06  Bruno Haible  <bruno@clisp.org>
18782
18783         New module 'wcsncasecmp'.
18784         * modules/wcsncasecmp: New file.
18785         * lib/wchar.in.h (wcsncasecmp): New declaration.
18786         * lib/wcsncasecmp.c: New file.
18787         * lib/wcsncasecmp-impl.h: New file, from libutf8 with modifications.
18788         * m4/wcsncasecmp.m4: New file.
18789         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncasecmp is declared.
18790         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCASECMP, HAVE_WCSNCASECMP.
18791         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCASECMP,
18792         HAVE_WCSNCASECMP.
18793         * tests/test-wchar-c++.cc: Test the declaration of wcsncasecmp.
18794         * doc/posix-functions/wcsncasecmp.texi: Mention the new module.
18795
18796 2011-02-06  Bruno Haible  <bruno@clisp.org>
18797
18798         New module 'wcscasecmp'.
18799         * modules/wcscasecmp: New file.
18800         * lib/wchar.in.h (wcscasecmp): New declaration.
18801         * lib/wcscasecmp.c: New file.
18802         * lib/wcscasecmp-impl.h: New file, from libutf8 with modifications.
18803         * m4/wcscasecmp.m4: New file.
18804         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscasecmp is declared.
18805         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCASECMP, HAVE_WCSCASECMP.
18806         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCASECMP,
18807         HAVE_WCSCASECMP.
18808         * tests/test-wchar-c++.cc: Test the declaration of wcscasecmp.
18809         * doc/posix-functions/wcscasecmp.texi: Mention the new module.
18810
18811 2011-02-05  Bruno Haible  <bruno@clisp.org>
18812
18813         New module 'wcsncmp'.
18814         * modules/wcsncmp: New file.
18815         * lib/wchar.in.h (wcsncmp): New declaration.
18816         * lib/wcsncmp.c: New file.
18817         * lib/wcsncmp-impl.h: New file, from libutf8 with modifications.
18818         * m4/wcsncmp.m4: New file.
18819         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncmp is declared.
18820         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCMP, HAVE_WCSNCMP.
18821         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCMP, HAVE_WCSNCMP.
18822         * tests/test-wchar-c++.cc: Test the declaration of wcsncmp.
18823         * doc/posix-functions/wcsncmp.texi: Mention the new module.
18824
18825 2011-02-05  Bruno Haible  <bruno@clisp.org>
18826
18827         New module 'wcscmp'.
18828         * modules/wcscmp: New file.
18829         * lib/wchar.in.h (wcscmp): New declaration.
18830         * lib/wcscmp.c: New file.
18831         * lib/wcscmp-impl.h: New file, from libutf8 with modifications.
18832         * m4/wcscmp.m4: New file.
18833         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscmp is declared.
18834         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCMP, HAVE_WCSCMP.
18835         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCMP, HAVE_WCSCMP.
18836         * tests/test-wchar-c++.cc: Test the declaration of wcscmp.
18837         * doc/posix-functions/wcscmp.texi: Mention the new module.
18838
18839 2011-02-05  Bruno Haible  <bruno@clisp.org>
18840
18841         New module 'wcsncat'.
18842         * modules/wcsncat: New file.
18843         * lib/wchar.in.h (wcsncat): New declaration.
18844         * lib/wcsncat.c: New file.
18845         * lib/wcsncat-impl.h: New file, from libutf8 with modifications.
18846         * m4/wcsncat.m4: New file.
18847         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncat is declared.
18848         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCAT, HAVE_WCSNCAT.
18849         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCAT, HAVE_WCSNCAT.
18850         * tests/test-wchar-c++.cc: Test the declaration of wcsncat.
18851         * doc/posix-functions/wcsncat.texi: Mention the new module.
18852
18853 2011-02-05  Bruno Haible  <bruno@clisp.org>
18854
18855         New module 'wcscat'.
18856         * modules/wcscat: New file.
18857         * lib/wchar.in.h (wcscat): New declaration.
18858         * lib/wcscat.c: New file.
18859         * lib/wcscat-impl.h: New file, from libutf8 with modifications.
18860         * m4/wcscat.m4: New file.
18861         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscat is declared.
18862         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCAT, HAVE_WCSCAT.
18863         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCAT, HAVE_WCSCAT.
18864         * tests/test-wchar-c++.cc: Test the declaration of wcscat.
18865         * doc/posix-functions/wcscat.texi: Mention the new module.
18866
18867 2011-02-05  Bruno Haible  <bruno@clisp.org>
18868
18869         New module 'wcpncpy'.
18870         * modules/wcpncpy: New file.
18871         * lib/wchar.in.h (wcpncpy): New declaration.
18872         * lib/wcpncpy.c: New file.
18873         * lib/wcpncpy-impl.h: New file, from libutf8 with modifications.
18874         * m4/wcpncpy.m4: New file.
18875         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcpncpy is declared.
18876         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCPNCPY, HAVE_WCPNCPY.
18877         * modules/wchar (Makefile.am): Substitute GNULIB_WCPNCPY, HAVE_WCPNCPY.
18878         * tests/test-wchar-c++.cc: Test the declaration of wcpncpy.
18879         * doc/posix-functions/wcpncpy.texi: Mention the new module.
18880
18881 2011-02-05  Bruno Haible  <bruno@clisp.org>
18882
18883         New module 'wcsncpy'.
18884         * modules/wcsncpy: New file.
18885         * lib/wchar.in.h (wcsncpy): New declaration.
18886         * lib/wcsncpy.c: New file.
18887         * lib/wcsncpy-impl.h: New file, from libutf8 with modifications.
18888         * m4/wcsncpy.m4: New file.
18889         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncpy is declared.
18890         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCPY, HAVE_WCSNCPY.
18891         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCPY, HAVE_WCSNCPY.
18892         * tests/test-wchar-c++.cc: Test the declaration of wcsncpy.
18893         * doc/posix-functions/wcsncpy.texi: Mention the new module.
18894
18895 2011-02-05  Bruno Haible  <bruno@clisp.org>
18896
18897         New module 'wcpcpy'.
18898         * modules/wcpcpy: New file.
18899         * lib/wchar.in.h (wcpcpy): New declaration.
18900         * lib/wcpcpy.c: New file.
18901         * lib/wcpcpy-impl.h: New file, from libutf8 with modifications.
18902         * m4/wcpcpy.m4: New file.
18903         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcpcpy is declared.
18904         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCPCPY, HAVE_WCPCPY.
18905         * modules/wchar (Makefile.am): Substitute GNULIB_WCPCPY, HAVE_WCPCPY.
18906         * tests/test-wchar-c++.cc: Test the declaration of wcpcpy.
18907         * doc/posix-functions/wcpcpy.texi: Mention the new module.
18908
18909 2011-02-05  Bruno Haible  <bruno@clisp.org>
18910
18911         New module 'wcscpy'.
18912         * modules/wcscpy: New file.
18913         * lib/wchar.in.h (wcscpy): New declaration.
18914         * lib/wcscpy.c: New file.
18915         * lib/wcscpy-impl.h: New file, from libutf8 with modifications.
18916         * m4/wcscpy.m4: New file.
18917         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscpy is declared.
18918         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCPY, HAVE_WCSCPY.
18919         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCPY, HAVE_WCSCPY.
18920         * tests/test-wchar-c++.cc: Test the declaration of wcscpy.
18921         * doc/posix-functions/wcscpy.texi: Mention the new module.
18922
18923 2011-02-05  Bruno Haible  <bruno@clisp.org>
18924
18925         New module 'wcsnlen'.
18926         * modules/wcsnlen: New file.
18927         * lib/wchar.in.h (wcsnlen): New declaration.
18928         * lib/wcsnlen.c: New file.
18929         * lib/wcsnlen-impl.h: New file, from libutf8 with modifications.
18930         * m4/wcsnlen.m4: New file.
18931         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsnlen is declared.
18932         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNLEN, HAVE_WCSNLEN.
18933         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNLEN, HAVE_WCSNLEN.
18934         * tests/test-wchar-c++.cc: Test the declaration of wcsnlen.
18935         * doc/posix-functions/wcsnlen.texi: Mention the new module.
18936
18937 2011-02-05  Bruno Haible  <bruno@clisp.org>
18938
18939         New module 'wcslen'.
18940         * modules/wcslen: New file.
18941         * lib/wchar.in.h (wcslen): New declaration.
18942         * lib/wcslen.c: New file.
18943         * lib/wcslen-impl.h: New file, from libutf8 with modifications.
18944         * m4/wcslen.m4: New file.
18945         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcslen is declared.
18946         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSLEN, HAVE_WCSLEN.
18947         * modules/wchar (Makefile.am): Substitute GNULIB_WCSLEN, HAVE_WCSLEN.
18948         * tests/test-wchar-c++.cc: Test the declaration of wcslen.
18949         * doc/posix-functions/wcslen.texi: Mention the new module.
18950
18951 2011-02-05  Bruno Haible  <bruno@clisp.org>
18952
18953         New module 'wmemset'.
18954         * modules/wmemset: New file.
18955         * lib/wchar.in.h (wmemset): New declaration.
18956         * lib/wmemset.c: New file.
18957         * lib/wmemset-impl.h: New file, from libutf8 with modifications.
18958         * m4/wmemset.m4: New file.
18959         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemset is declared.
18960         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMSET, HAVE_WMEMSET.
18961         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMSET, HAVE_WMEMSET.
18962         * tests/test-wchar-c++.cc: Test the declaration of wmemset.
18963         * doc/posix-functions/wmemset.texi: Mention the new module.
18964
18965 2011-02-05  Bruno Haible  <bruno@clisp.org>
18966
18967         New module 'wmemmove'.
18968         * modules/wmemmove: New file.
18969         * lib/wchar.in.h (wmemmove): New declaration.
18970         * lib/wmemmove.c: New file.
18971         * lib/wmemmove-impl.h: New file, from libutf8 with modifications.
18972         * m4/wmemmove.m4: New file.
18973         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemmove is declared.
18974         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMMOVE, HAVE_WMEMMOVE.
18975         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMMOVE,
18976         HAVE_WMEMMOVE.
18977         * tests/test-wchar-c++.cc: Test the declaration of wmemmove.
18978         * doc/posix-functions/wmemmove.texi: Mention the new module.
18979
18980 2011-02-05  Bruno Haible  <bruno@clisp.org>
18981
18982         New module 'wmemcpy'.
18983         * modules/wmemcpy: New file.
18984         * lib/wchar.in.h (wmemcpy): New declaration.
18985         * lib/wmemcpy.c: New file.
18986         * lib/wmemcpy-impl.h: New file, from libutf8 with modifications.
18987         * m4/wmemcpy.m4: New file.
18988         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemcpy is declared.
18989         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMCPY, HAVE_WMEMCPY.
18990         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMCPY, HAVE_WMEMCPY.
18991         * tests/test-wchar-c++.cc: Test the declaration of wmemcpy.
18992         * doc/posix-functions/wmemcpy.texi: Mention the new module.
18993
18994 2011-02-05  Bruno Haible  <bruno@clisp.org>
18995
18996         New module 'wmemcmp'.
18997         * modules/wmemcmp: New file.
18998         * lib/wchar.in.h (wmemcmp): New declaration.
18999         * lib/wmemcmp.c: New file.
19000         * lib/wmemcmp-impl.h: New file, from libutf8 with modifications.
19001         * m4/wmemcmp.m4: New file.
19002         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemcmp is declared.
19003         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMCMP, HAVE_WMEMCMP.
19004         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMCMP, HAVE_WMEMCMP.
19005         * tests/test-wchar-c++.cc: Test the declaration of wmemcmp.
19006         * doc/posix-functions/wmemcmp.texi: Mention the new module.
19007
19008 2011-02-07  Jim Meyering  <meyering@redhat.com>
19009
19010         di-set, ino-map: new modules, from coreutils
19011         * lib/di-set.c: New file.
19012         * lib/di-set.h: Likewise.
19013         * lib/ino-map.c: Likewise.
19014         * lib/ino-map.h: Likewise.
19015         * modules/di-set: Likewise.
19016         * modules/di-set-tests: Likewise.
19017         * modules/ino-map: Likewise.
19018         * modules/ino-map-tests: Likewise.
19019         * tests/test-di-set.c: Likewise.
19020         * tests/test-ino-map.c: Likewise.
19021
19022 2011-02-06  Paul Eggert  <eggert@cs.ucla.edu>
19023
19024         getloadavg: merge minor changes from Emacs
19025
19026         * lib/getloadavg.c (getloadavg_initialized): More-accurate comment.
19027         (getloadavg): Use memset, not bzero.
19028
19029         2008-07-25  Chong Yidong  <cyd@stupidchicken.com>
19030         * lib/getloadavg.c (nl): Rename to name_list to avoid ncurses.h
19031         clash (bug#86).
19032
19033 2010-11-14  Bruno Haible  <bruno@clisp.org>
19034
19035         Allow multiple gnulib generated replacements to coexist.
19036         * lib/getopt.in.h (struct option): Avoid identical redefinition.
19037         * lib/inttypes.in.h (imaxdiv_t): Likewise.
19038         * lib/langinfo.in.h (nl_item): Likewise.
19039         * lib/math.in.h (_NaN, NAN): Likewise.
19040         * lib/netdb.in.h (struct addrinfo): Likewise.
19041         * lib/poll.in.h (struct pollfd, nfds_t): Likewise.
19042         * lib/pthread.in.h (pthread_t, pthread_attr_t, pthread_barrier_t,
19043         pthread_barrierattr_t, pthread_cond_t, pthread_condattr_t,
19044         pthread_key_t, pthread_mutex_t, pthread_mutexattr_t, pthread_once_t,
19045         pthread_rwlock_t, pthread_rwlockattr_t, pthread_cond_destroy,
19046         pthread_cond_init, pthread_cond_signal, pthread_cond_wait,
19047         pthread_create, pthread_exit, pthread_join, pthread_mutexattr_destroy,
19048         pthread_mutexattr_init, pthread_mutexattr_settype,
19049         pthread_mutex_destroy, pthread_mutex_init, pthread_mutex_lock,
19050         pthread_mutex_trylock, pthread_mutex_unlock, pthread_spinlock_t,
19051         pthread_spin_init, pthread_spin_destroy, pthread_spin_lock,
19052         pthread_spin_trylock, pthread_spin_unlock): Likewise.
19053         * lib/sched.in.h (struct sched_param): Likewise.
19054         * lib/se-selinux.in.h (security_class_t, security_context_t,
19055         is_selinux_enabled, getcon, freecon, getfscreatecon, setfscreatecon,
19056         matchpathcon, getfilecon, lgetfilecon, fgetfilecon, setfilecon,
19057         lsetfilecon, fsetfilecon, security_check_context,
19058         security_check_context_raw, setexeccon, matchpathcon_init_prefix):
19059         Likewise.
19060         * lib/search.in.h (VISIT, _gl_search_compar_fn, _gl_search_action_fn):
19061         Likewise.
19062         * lib/signal.in.h (sig_atomic_t, sigset_t, verify_NSIG_constraint,
19063         _gl_function_taking_int_returning_void_t, union sigval,
19064         struct siginfo_t, siginfo_t, struct sigaction): Likewise.
19065         * lib/spawn.in.h (posix_spawnattr_t, posix_spawn_file_actions_t,
19066         verify_POSIX_SPAWN_USEVFORK_no_overlap): Likewise.
19067         * lib/stdint.in.h (gl_int8_t, gl_uint8_t, gl_int16_t, gl_uint16_t,
19068         gl_int32_t, gl_uint32_t, gl_int64_t, gl_uint64_t, int_least8_t,
19069         uint_least8_t, int_least16_t, uint_least16_t, int_least32_t,
19070         uint_least32_t, int_least64_t, uint_least64_t, gl_int_fast8_t,
19071         gl_uint_fast8_t, gl_int_fast16_t, gl_uint_fast16_t, gl_int_fast32_t,
19072         gl_uint_fast32_t, int_fast64_t, uint_fast64_t, gl_intptr_t,
19073         gl_uintptr_t, intmax_t, uintmax_t, _verify_intmax_size): Likewise.
19074         * lib/stdio.in.h (rpl_fseek, rpl_ftell): Likewise.
19075         * lib/sys_socket.in.h (sa_family_t, struct sockaddr_storage,
19076         socklen_t, rpl_fd_isset): Likewise.
19077         * lib/sys_stat.in.h (rpl_mkdir): Likewise.
19078         * lib/sys_time.in.h (struct timeval): Likewise.
19079         * lib/sys_times.in.h (struct tms): Likewise.
19080         * lib/sys_utsname.in.h (struct utsname):
19081         * lib/time.in.h (struct timespec, __time_t_must_be_integral): Likewise.
19082         * lib/unistd.in.h (getpagesize): Likewise.
19083         * lib/wchar.in.h (mbstate_t): Likewise.
19084         * lib/wctype.in.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
19085         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit,
19086         towlower, towupper): Likewise.
19087         Reported by Sam Steingold <sds@gnu.org>.
19088
19089 2011-02-05  Eric Blake  <eblake@redhat.com>
19090
19091         unsetenv: work around Haiku issues
19092         * m4/setenv.m4 (gl_FUNC_UNSETENV): Also detect Haiku issue.
19093         * doc/posix-functions/unsetenv.texi (unsetenv): Document it.
19094
19095 2010-12-30  Bruce Korb  <bkorb@gnu.org>
19096
19097         libposix: avoid calling error() within libposix
19098         * lib/openat-die.c: remove error module stuff when GNULIB_LIBPOSIX
19099         is defined.
19100
19101 2011-02-05  Eric Blake  <eblake@redhat.com>
19102
19103         strerror_r-posix: port to cygwin
19104         * lib/strerror_r.c (strerror_r) [__CYGWIN__]: Add cygwin
19105         implementation.
19106         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Adjust comment.
19107         * tests/test-strerror_r.c (main): Fix test.
19108         * doc/posix-functions/strerror_r.texi (strerror_r): Document the
19109         issue.
19110
19111 2011-02-05  Bruno Haible  <bruno@clisp.org>
19112
19113         New module 'wmemchr'.
19114         * modules/wmemchr: New file.
19115         * lib/wchar.in.h (wmemchr): New declaration.
19116         * lib/wmemchr.c: New file.
19117         * lib/wmemchr-impl.h: New file, from libutf8 with modifications.
19118         * m4/wmemchr.m4: New file.
19119         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemchr is declared.
19120         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMCHR, HAVE_WMEMCHR.
19121         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMCHR, HAVE_WMEMCHR.
19122         * tests/test-wchar-c++.cc: Test the declaration of wmemchr.
19123         * doc/posix-functions/wmemchr.texi: Mention the new module.
19124
19125 2011-02-04  Eric Blake  <eblake@redhat.com>
19126
19127         fdopendir: detect FreeBSD bug
19128         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Detect bug.
19129         * doc/posix-functions/fdopendir.texi (fdopendir): Document it.
19130
19131 2011-02-04  Paul Eggert  <eggert@cs.ucla.edu>
19132
19133         stdbool: do not define HAVE_STDBOOL_H
19134         * m4/stdbool.m4 (AC_CHECK_HEADER_STDBOOL): Renamed from
19135         AC_HEADER_STDBOOL.  All uses changed.  Do not define
19136         HAVE_STDBOOL_H, as gnulib does not need this.  This change is
19137         imported from the latest Autoconf git.  It was motivated by Emacs,
19138         which uses gnulib but does not need HAVE_STDBOOL_H.
19139
19140 2011-02-04  Bruno Haible  <bruno@clisp.org>
19141
19142         wcsnrtombs: Prepare for new module wwcsnrtombs.
19143         * lib/wcsnrtombs-impl.h: New file, extracted from lib/wcsnrtombs.c.
19144         * lib/wcsnrtombs.c: Include it.
19145         * modules/wcsnrtombs (Files): Add lib/wcsnrtombs-impl.h.
19146
19147         wcsrtombs: Prepare for new module wwcsrtombs.
19148         * lib/wcsrtombs-impl.h: New file, extracted from lib/wcsrtombs.c.
19149         * lib/wcsrtombs.c: Include it.
19150         * modules/wcsrtombs (Files): Add lib/wcsrtombs-impl.h.
19151
19152         mbsnrtowcs: Prepare for new module mbsnrtowwcs.
19153         * lib/mbsnrtowcs-impl.h: New file, extracted from lib/mbsnrtowcs.c.
19154         * lib/mbsnrtowcs.c: Include it.
19155         * modules/mbsnrtowcs (Files): Add lib/mbsnrtowcs-impl.h.
19156
19157         mbsrtowcs: Prepare for new module mbsrtowwcs.
19158         * lib/mbsrtowcs-impl.h: New file, extracted from lib/mbsrtowcs.c.
19159         * lib/mbsrtowcs.c: Include it.
19160         * modules/mbsrtowcs (Files): Add lib/mbsrtowcs-impl.h.
19161
19162 2011-02-04  Bruno Haible  <bruno@clisp.org>
19163
19164         vasnprintf: Reduce use of malloc for small format strings.
19165         * lib/printf-args.h (N_DIRECT_ALLOC_ARGUMENTS): New macro.
19166         (arguments): Add room for the first 7 arguments.
19167         * lib/printf-parse.h (N_DIRECT_ALLOC_DIRECTIVES): New macro.
19168         (char_directives, u8_directives, u16_directives, u32_directives): Add
19169         room for the first 7 directives.
19170         * lib/printf-parse.c: Include <string.h>.
19171         (PRINTF_PARSE): Change memory handling code so that it uses the first
19172         7 preallocated elements in an 'arguments' or 'DIRECTIVES' struct.
19173         * lib/vasnprintf.c (VASNPRINTF): Update memory handling code.
19174         Reported by Pádraig Brady <P@draigbrady.com>.
19175
19176 2011-01-31  Eric Blake  <eblake@redhat.com>
19177
19178         dup2: work around Haiku bug
19179         * m4/dup2.m4 (gl_FUNC_DUP2): Test for bug.
19180         * lib/dup2.c (rpl_dup2) [!WIN32]: Add workaround.
19181         * doc/posix-functions/dup2.texi (dup2): Document the bug.
19182         * tests/test-dup2.c (main): Enhance test.
19183
19184 2011-01-31  Simon Josefsson  <simon@josefsson.org>
19185
19186         doc: off_t is not available in eglibc 2.11.2 stdio.h.
19187         * doc/posix-headers/stdio.texi (stdio.h): Mention that off_t isn't
19188         declared by eglibc 2.11.2.
19189         * lib/stdio.in.h: Likewise.
19190
19191 2011-01-31  Eric Blake  <eblake@redhat.com>
19192
19193         ignore-value: add missing test dependency
19194         * tests/test-ignore-value.c: Revert previous change; stdio.h
19195         provides off_t.
19196         * modules/ignore-value-tests (Depends-on): Add missing dependency.
19197
19198 2011-01-30  Paul Eggert  <eggert@cs.ucla.edu>
19199
19200         mktime: clarify long_int width checking
19201         * lib/mktime.c (long_int_is_wide_enough): Move this assertion to
19202         the top level, to make it clearer that the assumption about
19203         long_int width is being checked.  See
19204         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00554.html>.
19205
19206 2011-01-30  Simon Josefsson  <simon@josefsson.org>
19207
19208         ignore-value: Fix self-test.
19209         * tests/test-ignore-value.c: Include sys/types.h for off_t.
19210
19211 2011-01-29  Paul Eggert  <eggert@cs.ucla.edu>
19212
19213         TYPE_MAXIMUM: avoid theoretically undefined behavior
19214         * lib/intprops.h (TYPE_MINIMUM, TYPE_MAXIMUM): Do not shift a
19215         negative number, which the C Standard says has undefined behavior.
19216         In practice this is not a problem, but might as well do it by the book.
19217         Reported by Rich Felker and Eric Blake; see
19218         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00493.html>.
19219         * lib/strtol.c (TYPE_MINIMUM, TYPE_MAXIMUM): Likewise.
19220         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
19221         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
19222         * m4/parse-datetime.m4 (gl_PARSE_DATETIME): Likewise.
19223         * m4/stdint.m4 (gl_STDINT_H): Likewise.
19224         * lib/mktime.c (TYPE_MAXIMUM): Redo slightly to match the others.
19225
19226         mktime: #undef mktime before #defining it
19227         * lib/mktime.c (mktime) [DEBUG]: #undef mktime before #defining it.
19228
19229         mktime: systematically normalize tm_isdst comparisons
19230         * lib/mktime.c (isdst_differ): New function.
19231         (__mktime_internal): Use it systematically for all isdst comparisons.
19232         This completes the fix for libc BZ #6723, and removes the need for
19233         normalizing tm_isdst.  See
19234         <http://sourceware.org/bugzilla/show_bug.cgi?id=6723>
19235         (not_equal_tm) [DEBUG]: Use isdst_differ here, too.
19236
19237         mktime: fix some integer overflow issues and sidestep the rest
19238
19239         This was prompted by a bug report by Benjamin Lindner for MinGW
19240         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00472.html>.
19241         His bug is due to signed integer overflow (0 - INT_MIN), and I
19242         I scanned through mktime.c looking for other integer overflow
19243         problems, fixing all the bugs I found.
19244
19245         Although the C Standard says the resulting code is still not safe
19246         in the presence of integer overflow, in practice it should be good
19247         enough for all real-world two's-complement implementations, except
19248         for debugging environments that deliberately trap on integer
19249         overflow (e.g., gcc -ftrapv).
19250
19251         * lib/mktime.c (WRAPV): New macro.
19252         (SHR): Also check that long_int and time_t shift right in the
19253         usual way, before using the fast-but-unportable method.
19254         (TYPE_ONES_COMPLEMENT, TYPE_SIGNED_MAGNITUDE): Remove, no longer
19255         used.  The code already assumed two's complement, so there's
19256         no need to test for alternatives.  All uses removed.
19257         (TYPE_MAXIMUM): Don't rely here on overflow behavior not defined by
19258         the C standard.  Problem reported by Rich Felker in
19259         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00488.html>.
19260         (twos_complement_arithmetic): Also check long_int and time_t.
19261         (time_t_avg, time_t_add_ok, time_t_int_add_ok): New functions.
19262         (guess_time_tm, ranged_convert, __mktime_internal): Use them.
19263         (__mktime_internal): Avoid integer overflow with unary subtraction
19264         in two instances where -1 - X is an adequate replacement for -X,
19265         since the calculations are approximate.
19266
19267 2011-01-29  Eric Blake  <eblake@redhat.com>
19268
19269         mktime: avoid infinite loop
19270         * m4/mktime.m4 (AC_FUNC_MKTIME): Avoid overflow on possibly-signed
19271         type; behavior is still undefined but portable to all known targets.
19272         Reported by Rich Felker.
19273
19274 2011-01-29  Simon Josefsson  <simon@josefsson.org>
19275
19276         rename, unlink, same-inode: Relicense.
19277         * modules/rename (License): Relax from LGPLv3+ to LGPLv2+.
19278         * modules/unlink (License): Likewise.
19279         * modules/same-inode (License): Likewise.
19280
19281 2011-01-28  Paul Eggert  <eggert@cs.ucla.edu>
19282
19283         mktime: avoid problems on NetBSD 5 / i386
19284         * lib/mktime.c (long_int): New type.  This works around a problem
19285         on NetBSD 5 / i386, where 'long int' and 'int' are both 32 bits
19286         but time_t is 64 bits, and where I expect the existing code is
19287         wrong in some cases.
19288         (leapyear, ydhms_diff, guess_time_tm, __mktime_internal): Use it.
19289         (ydhms_diff): Bring back the compile-time check for wide-enough
19290         year and yday.
19291
19292         mktime: fix misspelling in comment
19293         * lib/mktime.c (__mktime_internal): Fix misspelling in comment.
19294         This merges all recent glibc changes of importance.
19295
19296 2011-01-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
19297
19298         move-if-change: cope with concurrent mv of identical file.
19299         * build-aux/move-if-change (CMPPROG): Accept environment
19300         variable as an override for `cmp'.
19301         (usage): Document CMPPROG.
19302         Adjust comparison to drop stdout.  Cope with failure of mv if
19303         the target file exists and is identical to the source, for
19304         parallel builds.
19305         Report from H.J. Lu against binutils in PR binutils/12283.
19306
19307 2011-01-28  Bruce Korb  <bkorb@gnu.org>
19308
19309         * users.txt: Mention sharutils.
19310
19311 2011-01-28  Simon Josefsson  <simon@josefsson.org>
19312
19313         * users.txt: Mention OATH Toolkit.
19314
19315 2011-01-27  Bruno Haible  <bruno@clisp.org>
19316
19317         Prepare for supporting FreeBSD 10.
19318         * build-aux/config.libpath: Remove handling of freebsd1*.
19319
19320 2011-01-27  Gerald Pfeifer  <gerald@pfeifer.com>  (tiny change)
19321
19322         Prepare for supporting FreeBSD 10.
19323         * build-aux/config.rpath: Remove handling of freebsd1* which soon would
19324         match FreeBSD 10.0.
19325
19326 2011-01-27  Bruno Haible  <bruno@clisp.org>
19327
19328         vma-iter, get-rusage-as: Add OpenBSD support.
19329         * modules/vma-iter (configure.ac): Test for mquery.
19330         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Define also on OpenBSD.
19331         * lib/vma-iter.c: Include <sys/mman.h>.
19332         (vma_iterate): Add an implementation based on mquery().
19333         * lib/resource-ext.h (get_rusage_as): Update comments.
19334         * lib/get-rusage-as.c: Likewise.
19335         * lib/get-rusage-data.c: Likewise.
19336
19337 2011-01-26  Karl Berry  <karl@gnu.org>
19338
19339         * doc/Makefile (lang_env, makeinfo_prog, manual_opts): new
19340         variables to make it easier to override the makeinfo program used.
19341
19342 2011-01-26  Eric Blake  <eblake@redhat.com>
19343
19344         fcntl: work around Haiku F_DUPFD bugs
19345         * m4/fcntl.m4 (gl_FUNC_FCNTL): Also catch Haiku errno bug.
19346         * lib/fcntl.c (rpl_fcntl) [F_DUPFD]: Work around Haiku losing
19347         cloexec bit on duplication.
19348         * doc/posix-functions/fcntl.texi (fcntl): Document the bug.
19349
19350 2011-01-26  Bruno Haible  <bruno@clisp.org>
19351
19352         Enable memory leak tests on AIX.
19353         * tests/test-dprintf-posix2.c (main): Don't skip the test on AIX.
19354         * tests/test-fprintf-posix3.c (main): Likewise.
19355
19356 2011-01-26  Bruno Haible  <bruno@clisp.org>
19357
19358         Tests for module 'get-rusage-data'.
19359         * modules/get-rusage-data-tests: New file.
19360         * tests/test-get-rusage-data.c: New file.
19361
19362         New module 'get-rusage-data'.
19363         * lib/resource-ext.h (get_rusage_data): New declaration.
19364         * lib/get-rusage-data.c: New file.
19365         * modules/get-rusage-data: New file.
19366
19367 2011-01-25  Bruno Haible  <bruno@clisp.org>
19368
19369         get-rusage-as: Allow for easier testing.
19370         * lib/resource-ext.h (get_rusage_as): Add comment.
19371         * lib/get-rusage-as.c (get_rusage_as_via_setrlimit): Define always.
19372         (main): New function for interactive testing.
19373
19374 2011-01-25  Bruno Haible  <bruno@clisp.org>
19375
19376         vma-iter: Treat Haiku like BeOS.
19377         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Define on Haiku as well.
19378         * lib/vma-iter.c (vma_iterate) [Haiku]: Use the BeOS API.
19379
19380 2011-01-25  Eric Blake  <eblake@redhat.com>
19381
19382         c-stack: fix regression on cygwin when libsigsegv is present
19383         * lib/c-stack.c (die): Don't flatten error if sigsegv is present.
19384
19385 2011-01-24  Bruno Haible  <bruno@clisp.org>
19386
19387         vma-iter: Avoid empty intervals.
19388         * lib/vma-iter.c (vma_iterate) [IRIX, OSF/1]: Don't call the callback
19389         on an empty interval.
19390
19391 2011-01-24  Jim Meyering  <meyering@redhat.com>
19392
19393         u64: remove unnecessary #include
19394         * lib/u64.h: Don't include <stddef.h>.  It was not used.
19395
19396 2011-01-23  Paul Eggert  <eggert@cs.ucla.edu>
19397
19398         Allow the user to avoid the HAVE_RAW_DECL_* macros.
19399         * m4/gnulib-common.m4 (gl_ASSERT_NO_GNULIB_POSIXCHECK): New macro.
19400
19401 2011-01-23  Bruno Haible  <bruno@clisp.org>
19402
19403         New module 'vma-iter'.
19404         * lib/vma-iter.h: New file.
19405         * lib/vma-iter.c: New file, based on lib/get-rusage-as.c.
19406         * modules/vma-iter: New file.
19407         * lib/get-rusage-as.c: Include vma-iter.h. Don't include system headers
19408         for get_rusage_as_via_iterator.
19409         (vma_iterate_callback): New function.
19410         (get_rusage_as_via_iterator): Rewritten to use vma_iterate.
19411         * modules/get-rusage-as (Depends-on): Add vma-iter.
19412
19413 2011-01-23  Bruno Haible  <bruno@clisp.org>
19414
19415         uninorm: Tweak includes.
19416         * lib/uninorm/normalize-internal.h: Don't include <stddef.h>.
19417         Reported by Jim Meyering.
19418
19419 2011-01-23  Bruno Haible  <bruno@clisp.org>
19420
19421         get-rusage-as: Improve on NetBSD.
19422         * lib/get-rusage-as.c (get_rusage_as_via_iterator): On NetBSD, use
19423         /proc, like on FreeBSD.
19424
19425 2011-01-23  Jim Meyering  <meyering@redhat.com>
19426
19427         xreadlink.h: remove unnecessary #include
19428         * lib/xreadlink.h: Don't include <stddef.h>.  It was not used.
19429
19430         maint.mk: add syntax-check rule: detect unnecessary #include <stddef.h>
19431         * top/maint.mk (sc_prohibit_stddef_without_use): New rule.
19432
19433 2011-01-23  Bruno Haible  <bruno@clisp.org>
19434
19435         get-rusage-as: Fix bug.
19436         * lib/get-rusage-as.c (get_rusage_as_via_setrlimit): Restore the
19437         original limit when aborting the first loop.
19438
19439 2011-01-23  Bruno Haible  <bruno@clisp.org>
19440
19441         wctype: Ensure valid C syntax.
19442         * m4/wctype_h.m4 (gl_WCTYPE_H): Invoke gl_CHECK_NEXT_HEADERS
19443         unconditionally, instead of gl_NEXT_HEADERS conditionally.
19444
19445 2011-01-21  Paul Eggert  <eggert@cs.ucla.edu>
19446
19447         getopt: omit HAVE_OPTRESET, HAVE_GETOPT_CLIP from config.h
19448         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Do not put the
19449         symbols HAVE_OPTRESET and HAVE_GETOPT_CLIP into config.h,
19450         as they are needed only for configure's test case.
19451         This removes two unnecessary symbols from config.h.
19452
19453         gl_CHECK_NEXT_HEADERS implies AC_CHECK_HEADERS_ONCE
19454         * m4/include_next.m4 (gl_CHECK_HEXT_HEADERS): Document this.
19455         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Don't bother to invoke
19456         AC_CHECK_HEADERS_ONCE on a header that we also invoke
19457         gl_CHECK_NEXT_HEADERS on, since the latter invokes the former.
19458         * m4/netdb_h.m4 (gl_HEADER_NETDB): Likewise.
19459         * m4/pthread.m4 (gl_PTHREAD_CHECK): Likewise.
19460         * m4/sched_h.m4 (gl_SCHED_H): Likewise.
19461         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
19462         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
19463         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Likewise.
19464         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
19465         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
19466         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
19467         * m4/termios_h.m4 (gl_TERMIOS_H): Likewise.
19468         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
19469         * m4/wchar_h.m4 (gl_WCHAR_H): Likewise.
19470         * m4/wctype_h.m4 (gl_WCTYPE_H): Likewise.
19471
19472 2011-01-21  Eric Blake  <eblake@redhat.com>
19473
19474         maintainer-makefile: work with older git for submodule check
19475         * top/maint.mk (public-submodule-commit): Rewrite to avoid
19476         merge-base --independent, which Ubuntu 10.04 git 1.7.0.4 lacks.
19477         Reported by Matthias Bolte.
19478
19479         bootstrap: minor portability fixes
19480         * build-aux/bootstrap (me): Use $me instead of $0 in functions.
19481         (usage): Omit leading capital and trailing . on help phrases, per
19482         GNU Coding Standards.
19483         (check_versions, top level): Prefix messages with script name.
19484
19485 2011-01-21  Benjamin Lindner  <bjmldn@gmail.com>  (tiny change)
19486
19487         bootstrap: support --no-git option
19488         * build-aux/bootstrap: Add --no-git option, to be used when
19489         --gnulib-srcdir points to the exact desired checkout.
19490
19491 2011-01-21  Eric Blake  <eblake@redhat.com>
19492
19493         strerror_r-posix: work with glibc 2.13
19494         * lib/strerror_r.c (strerror_r): Fix return type.
19495
19496 2011-01-21  Pádraig Brady  <P@draigBrady.com>
19497             Bruno Haible  <bruno@clisp.org>
19498
19499         uN_strstr: New unit tests.
19500         * modules/unistr/u8-strstr-tests: New file.
19501         * modules/unistr/u16-strstr-tests: New file.
19502         * modules/unistr/u32-strstr-tests: New file.
19503         * tests/unistr/test-u-strstr.h: New file, based on tests/test-strstr.c.
19504         * tests/unistr/test-u8-strstr.c: New file.
19505         * tests/unistr/test-u16-strstr.c: New file.
19506         * tests/unistr/test-u32-strstr.c: New file.
19507
19508 2011-01-21  Pádraig Brady  <P@draigBrady.com>
19509             Bruno Haible  <bruno@clisp.org>
19510
19511         Make uN_strstr functions O(n) worst-case.
19512         * lib/unistr/u-strstr.h (FUNC): In the 8-bit case, use strstr. In the
19513         16-bit and 32-bit unit cases, use the unibyte algorithm from
19514         lib/mbsstr.c.
19515         * lib/unistr/u8-strstr.c: Include <string.h>.
19516         (UNIT_IS_UINT8_T): New macro.
19517         * lib/unistr/u16-strstr.c: Include malloca.h and str-kmp.h.
19518         (U_STRLEN, U_STRNLEN): New macros.
19519         * lib/unistr/u32-strstr.c: Include malloca.h and str-kmp.h.
19520         (U_STRLEN, U_STRNLEN): New macros.
19521         * modules/unistr/u8-strstr (Depends-on): Add strstr.
19522         (configure.ac): Update required libunistring version.
19523         * modules/unistr/u16-strstr (Files): Add lib/str-kmp.h.
19524         (Depends-on): Add unistr/u16-strlen, unistr/u16-strnlen, stdbool,
19525         malloca.
19526         (configure.ac): Update required libunistring version.
19527         * modules/unistr/u32-strstr (Files): Add lib/str-kmp.h.
19528         (Depends-on): Add unistr/u32-strlen, unistr/u32-strnlen, stdbool,
19529         malloca.
19530         (configure.ac): Update required libunistring version.
19531
19532 2011-01-21  Pádraig Brady  <P@draigBrady.com>
19533             Bruno Haible  <bruno@clisp.org>
19534
19535         Prepare for faster uN_strstr functions.
19536         * lib/str-kmp.h: Support definable UNITs.
19537         (knuth_morris_pratt): Renamed from knuth_morris_pratt_unibyte. Add
19538         needle_len argument.
19539         * lib/mbsstr.c (mbsstr): Adjust for the changed str-kmp.h.
19540         * lib/mbscasestr.c (mbscasestr): Likewise.
19541
19542 2011-01-21  Pádraig Brady <P@draigBrady.com>
19543
19544         malloca-tests: make faster by unsetting MALLOC_PERTURB_
19545         * tests/test-malloca.c (main): Unset the environment variable
19546         to greatly speed up the test.
19547         * tests/init.sh: Don't say that MALLOC_PERTURB_ is cheap.
19548         * modules/malloca-tests: Depend on unsetenv.
19549
19550 2011-01-21  Pádraig Brady <P@draigBrady.com>
19551
19552         ignore-value: remove stdint dependency
19553         * lib/ignore-value.h: Remove <stdint.h>
19554         * modules/ignore-value: Remove stdint dependency.
19555
19556 2011-01-21  Jim Meyering  <meyering@redhat.com>
19557
19558         maint.mk: adjust variable name to be consistent with other gl_ vars
19559         * top/maint.mk (gl_public_submodule_commit): Rename the variable
19560         to be lower case.
19561
19562 2011-01-20  Jim Meyering  <meyering@redhat.com>
19563
19564         maint.mk: make "check" depend on public-submodule-commit by default
19565         * top/maint.mk (GL_PUBLIC_SUBMODULE_COMMIT): New overridable variable.
19566
19567 2011-01-20  Bruno Haible  <bruno@clisp.org>
19568
19569         mbfile, mbiter: Complete change from 2008-12-21.
19570         * m4/mbfile.m4 (gl_MBFILE): Don't require AC_FUNC_MBRTOWC.
19571         * m4/mbiter.m4 (gl_MBITER): Likewise.
19572
19573 2011-01-20  Jim Meyering  <meyering@redhat.com>
19574
19575         init.sh: insert space between each function name and "()"
19576         * tests/init.sh: Make it a little easier to see that a function's
19577         name is "warn_", and not "warn" when looking at the first part of
19578         its definition: "warn_ ()".  Suggested by Ralf Wildenhues.
19579
19580 2011-01-20  Jim Meyering  <meyering@redhat.com>
19581
19582         mountlist: clean up code formatting
19583         * lib/mountlist.c (read_file_system_list): Split a long line,
19584         correct bracing style, use NULL in place of "(struct statfs *)0",
19585         don't parenthesize return value, add spaces around "=" and after
19586         ";-in-for-stmt".
19587
19588 2011-01-14  Markus Duft <mduft@gentoo.org>
19589
19590         mountlist: add support for Interix
19591         * lib/mountlist.c (read_file_system_list) [MOUNTED_INTERIX_STATVFS]:
19592         Apply statvfs to all entries of /dev/fs.
19593         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Check for statvfs,
19594         and if found, AC_DEFINE MOUNTED_INTERIX_STATVFS.
19595
19596 2011-01-20  Jim Meyering  <meyering@redhat.com>
19597
19598         maint.mk: improve the public-submodule-commit rule
19599         * top/maint.mk (public-submodule-commit): Prefix with $(AM_V_GEN),
19600         to suppress printing of its commands... unless V=1.
19601         Add git submodule's --quiet option to suppress printing of e.g.,
19602         "Entering gnulib" output.
19603         "cd" into $(srcdir) before running git submodule.
19604
19605 2011-01-20  Bruno Haible  <bruno@clisp.org>
19606
19607         include_next: Fix bug introduced on 2011-01-18.
19608         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): New macro, extracted
19609         from gl_CHECK_NEXT_HEADERS and gl_NEXT_HEADERS. Omit test of
19610         ac_cv_header_... variable if the second argument is not 'check'.
19611         (gl_CHECK_NEXT_HEADERS, gl_NEXT_HEADERS): Invoke
19612         gl_NEXT_HEADERS_INTERNAL.
19613
19614 2011-01-20  Bruno Haible  <bruno@clisp.org>
19615
19616         Allow the user to avoid the GNULIB_TEST_* macros.
19617         * m4/gnulib-common.m4 (gl_ASSERT_NO_GNULIB_TESTS): New macro.
19618         Suggested by Paul Eggert.
19619
19620 2011-01-14  Jim Meyering  <meyering@redhat.com>
19621
19622         bootstrap: avoid failure when there is no .gitmodules file
19623         ": ${gnulib_path=gnulib}" fails to set $gnulib_path when that variable
19624         has been assigned to, even when its value is the empty string.
19625         * build-aux/bootstrap (gnulib_path): Test explicitly for an empty
19626         "$gnulib_path", rather than using ${gnulib_path=gnulib}.
19627         Reported by John W. Eaton <jwe@gnu.org>.
19628
19629 2011-01-19  Paul Eggert  <eggert@cs.ucla.edu>
19630
19631         assume <ctype.h>, ..., <time.h> exist
19632         For years gnulib has been assuming the existence of the headers
19633         <ctime.h>, <errno.h>, <fcntl.h>, <locale.h>, <signal.h>,
19634         <stdio.h>, <stdlib.h>, <string.h>, and <time.h>.  Omit checks for
19635         them, since they don't appear to be needed.
19636         * README (Portability guidelines): Document this.
19637         * lib/flock.c: Assume <fcntl.h> exists.
19638         * lib/regex_internal.h: Assume <locale.h> exists.
19639         * m4/ctype.m4 (gl_CTYPE_H): Assume <ctype.h> exists.
19640         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Assume <errno.h> exists.
19641         * m4/fcntl_h.m4 (gl_FCNTL_H): Assume <fcntl.h> exists.
19642         * m4/flock.m4 (gl_PREREQ_FLOCK): Likewise.
19643         * m4/locale_h.m4 (gl_LOCALE_H): Assume <locale.h> exists.
19644         * m4/regex.m4 (gl_REGEX): Likewise.
19645         * m4/signal_h.m4 (gl_SIGNAL_H): Assume <signal.h> exists.
19646         * m4/stdio_h.m4 (gl_STDIO_H): Assume <stdio.h> exists.
19647         * m4/stdlib_h.m4 (gl_STDLIB_H): Assume <stdlib.h> exists.
19648         * m4/string_h.m4 (gl_STRING_H): Assume <string.h> exists.
19649         * tests/test-argp.c: Likewise.
19650         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Assume <time.h> exists.
19651
19652         multiarch: remove AA_APPLE_UNIVERSAL_BUILD
19653         * m4/multiarch.m4 (gl_MULTIARCH): Don't AC_DEFINE
19654         AA_APPLE_UNIVERSAL_BUILD.  See
19655         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00247.html>.
19656         * NEWS: Document this.
19657
19658 2011-01-19  Eric Blake  <eblake@redhat.com>
19659
19660         c-stack: assume stack overflow if SA_SIGINFO unsupported
19661         * lib/c-stack.c (SIGACTION_WORKS): Rename...
19662         (SIGINFO_WORKS): ...since gnulib module guarantees that (most) of
19663         sigaction will work.
19664         (die): Assume stack overflow if siginfo doesn't work, to let Haiku
19665         behavior match Linux.
19666         * tests/test-c-stack.c (main): Prefer NULL for pointers.
19667
19668         stdbool-tests: accomodate Haiku
19669         * tests/test-stdbool.c: Haiku's gcc 2.95 lacks native _Bool.
19670
19671         binary-io: fix O_TEXT on Haiku
19672         * modules/binary-io (Depends-on): Add fcntl-h.
19673         * lib/binary-io.h (O_TEXT): Rely on replacement <fcntl.h> rather
19674         than blindly undefining O_TEXT.
19675         Reported by Scott McCreary.
19676
19677 2011-01-18  Paul Eggert  <eggert@cs.ucla.edu>
19678
19679         include_next: do not check for standard headers like stddef.h
19680
19681         I found this problem when modifying Emacs to use gnulib.
19682         I noticed that it added HAVE_STDDEF_H to config.h, even though
19683         gnulib always assumes <stddef.h> exists as per README and this
19684         symbol is unnecessary.
19685         * m4/include_next.m4 (gl_NEXT_HEADERS): New macro, which does not
19686         use AC_CHECK_HEADERS_ONCE, but which otherwise contains what
19687         gl_CHECK_NEXT_HEADERS used to contain.  This makes 'configure' run
19688         faster for headers like stddef.h that are known to exist.
19689         (gl_CHECK_NEXT_HEADERS): Use it.
19690         * m4/float_h.m4 (gl_FLOAT_H): For float.h, use gl_NEXT_HEADERS
19691         rather than gl_CHECK_NEXT_HEADERS.
19692         * m4/stdarg.m4 (gl_STDARG_H): Likewise, for stdarg.h.
19693         * m4/stddef_h.m4 (gl_STDDEF_H): Likewise, for stddef.h.
19694
19695 2011-01-18  Eric Blake  <eblake@redhat.com>
19696
19697         ansi-c++-opt: skip C++ dependency style if C++ is unused
19698         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): Avoid full-blown dependency
19699         tests when we know C++ compilation is not desired.
19700         Reported by Scott McCreary.
19701
19702 2011-01-18  Bruno Haible  <bruno@clisp.org>
19703
19704         *printf-posix: Avoid test failures. Make tests work on MacOS X, Cygwin.
19705         * tests/test-fprintf-posix3.c: Include "resource-ext.h".
19706         (main): Perform test also when getrlimit and setrlimit don't exist or
19707         when setrlimit of RLIMIT_DATA fails (like on Cygwin). Instead of
19708         limiting the address space size using setrlimit, compare the address
19709         space size before and after the the test.
19710         * tests/test-dprintf-posix2.c: Likewise.
19711         * tests/test-fprintf-posix3.sh: Update skip messages.
19712         * tests/test-dprintf-posix2.sh: Likewise.
19713         * modules/fprintf-posix-tests (Depends-on): Add get-rusage-as.
19714         * modules/dprintf-posix-tests (Depends-on): Likewise.
19715         Reported by Bruce Korb <bkorb@gnu.org> and
19716         Gary V. Vaughan <gary@gnu.org>.
19717
19718 2011-01-18  Bruno Haible  <bruno@clisp.org>
19719
19720         get-rusage-as: Improvement for Cygwin.
19721         * lib/get-rusage-as.c (get_rusage_as_via_iterator): On Windows, ignore
19722         areas that are merely reserved.
19723
19724 2011-01-18  Paul Eggert  <eggert@cs.ucla.edu>
19725
19726         strftime: remove dependencies on multibyte modules
19727
19728         strftime depended on mbrlen, mbsinit, and wchar, but these modules
19729         are needed only if ! MULTIBYTE_IS_FORMAT_SAFE, and that is true
19730         only if __osf__ is defined, and I suspect OSF doesn't need these
19731         other modules.  If my guess is wrong, we'll need to come up with a
19732         variant of strftime that doesn't need the multibyte modules.
19733
19734         I discovered this problem when attempting modify Emacs to use the
19735         strftime module.  With the previous gnulib, this caused Emacs to
19736         need 31 new files, ranging from lib/config.charset to
19737         m4/wint_t.m4.  This was overkill and I expect would be offputting
19738         to the Emacs maintainers.  After this change, only 6 new files are
19739         needed, namely strftime.[ch], srtftime.m4, stdbool.in.h,
19740         stdbool.m4, and tm_gmtoff.m4.
19741
19742         * lib/strftime.c (MULTIBYTE_IS_FORMAT_SAFE): Define to 1 always.
19743         Suggested by Bruno Haible in
19744         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00238.html>.
19745         * m4/strftime.m4 (gl_FUNC_STRFTIME): Do not require AC_TYPE_MBSTATE_T,
19746         and do not check for wchar.h.
19747         * modules/strftime (Files): Remove m4/mbstate_t.m4.
19748         (Depends-on): Remove mbrlen, mbsinit, wchar.
19749
19750 2011-01-18  Bruno Haible  <bruno@clisp.org>
19751
19752         Tests for module 'get-rusage-as'.
19753         * modules/get-rusage-as-tests: New file.
19754         * tests/test-get-rusage-as.c: New file.
19755
19756         New module 'get-rusage-as'.
19757         * modules/get-rusage-as: New file.
19758         * lib/resource-ext.h: New file.
19759         * lib/get-rusage-as.c: New file.
19760
19761 2011-01-17  Eric Blake  <eblake@redhat.com>
19762
19763         sigaction: relax license from LGPLv3+ to LGPLv2+
19764         * modules/sigaction (License): Relax to LGPLv2+.
19765
19766 2011-01-14  Bruno Haible  <bruno@clisp.org>
19767
19768         filemode: Make function declarations usable in C++ mode.
19769         * lib/filemode.h: Enclose function declarations in extern "C" block.
19770         Reported by John W. Eaton <jwe@gnu.org>.
19771
19772 2011-01-12  Rob Vermaas  <rob.vermaas@gmail.com>
19773
19774         save-cwd: no longer include "xgetcwd.h"
19775         * lib/save-cwd.c: Don't include "xgetcwd.h"; it's no longer used.
19776         This avoids a compilation failure in projects that use save-cwd
19777         without also using the xgetcwd module.
19778
19779 2011-01-11  Paul Eggert  <eggert@cs.ucla.edu>
19780
19781         ftoastr: split into 3 modules ftoastr, dtoastr, ldtoastr
19782         This is so that a program like Emacs, which needs only dtoastr,
19783         does not have to bother with distributing and compiling ftoastr
19784         and ldtoastr.
19785         * MODULES.html.sh: Document these modules (ftoastr wasn't documented).
19786         * modules/dtoastr, modules/ldtoastr: New files.
19787         * modules/ftoastr: Now works just for 'float'.
19788         (Files): Remove lib/dtoastr.c, lib/ldtoastr.c.
19789         (Makefile.am): Remove ftoastr.h (not needed and no effect),
19790         dtoastr.c, ldtoastr.c.
19791
19792 2011-01-11  Jim Meyering  <meyering@redhat.com>
19793
19794         save-cwd: remove #if-!HAVE_FCHDIR'd code; use the fchdir module
19795         There is no need to work around the lack of the fchdir function,
19796         since gnulib can now provide a replacement when required.
19797         * lib/save-cwd.c: Remove #if !HAVE_FCHDIR...#endif code.
19798         * modules/save-cwd (Depends-on): Add fchdir.
19799
19800 2011-01-11  Paul Eggert  <eggert@cs.ucla.edu>
19801
19802         openat, save-cwd: avoid xmalloc
19803
19804         This removes a direct (but undocumented) dependency of openat on
19805         xalloc, along with an indirect dependency via save-cwd.  It also
19806         removes a dependency of save-cwd on xgetcwd, and thereby
19807         indirectly on xalloc.  This change causes the openat substitute
19808         to fall back on save_cwd when memory is tight, and for save_cwd to
19809         fail instead of dying when memory is tight, but that's good enough.
19810         Problem and initial idea for fix reported by Bastien Roucaries in
19811         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00170.html>.
19812
19813         * lib/openat-proc.c: Include stdlib.h (for malloc), not
19814         xalloc.h (for xmalloc).
19815         (openat_proc_name): Use malloc, not xmalloc.
19816         * lib/save-cwd.c (save_cwd): Use getcwd, not xgetcwd.
19817         * modules/save-cwd (Files): Depend on getcwd, not xgetcwd.
19818
19819         openat: Increase OPENAT_BUFFER_SIZE from 512 to at least 1024
19820         This avoids heap allocation for file names whose lengths are in
19821         the range 512..1023, with the upper bound increasing to at most
19822         4031 depending on the platform's PATH_MAX.  (We do not want
19823         pathmax.h here as it might supply a non-constant PATH_MAX.)
19824         * lib/openat-priv.h (SAFER_ALLOCA_MAX, SAFER_ALLOCA): New macros.
19825         Perhaps they should be moved to malloca.h?
19826         (OPENAT_BUFFER_SIZE): Use them.
19827
19828 2011-01-10  Bruno Haible  <bruno@clisp.org>
19829
19830         doc: Update users.txt.
19831         * users.txt: Add recutils.
19832
19833 2011-01-09  Karl Berry  <karl@gnu.org>
19834
19835         * doc/posix-functions/gai_strerror.texi: Insert missing @item.
19836
19837         * doc/configmake.texi: New file.
19838         * doc/gnulib.texi: Include it.
19839         * modules/configmake: Move documentation from here.
19840
19841 2011-01-09  Bruno Haible  <bruno@clisp.org>
19842
19843         Update to Unicode 6.0.0.
19844         * lib/gen-uni-tables.c (symbolic_width): Fix bounds of planes.
19845         (get_lbp): Update for Unicode 6.0.0.
19846         * lib/uniwidth/width.c (nonspacing_table_data): Add U+065F,
19847         U+0859..U+085B, U+093A, U+0956..U+0957, U+0F8D..U+0F8F, U+135D..U+135E,
19848         U+1BE6, U+1BE8..U+1BE9, U+1BED, U+1BEF..U+1BF1, U+1DFC, U+2D7F,
19849         U+11001, U+11038..U+11046. Remove U+06DE.
19850         (uc_width): Fix bounds of planes.
19851         * tests/uniwidth/test-uc_width2.sh: Same updates as in
19852         lib/uniwidth/width.c.
19853         * tests/unigbrk/GraphemeBreakTest.txt: Copied from Unicode 6.0.0, with
19854         trailing whitespace removed.
19855         * tests/uninorm/NormalizationTest.txt: Update from Unicode 6.0.0,
19856         without comments, but with the original copyright notice.
19857         * lib/unicase/cased.h: Regenerated for Unicode 6.0.0.
19858         * lib/unicase/ignorable.h: Likewise.
19859         * lib/unicase/tocasefold.h: Likewise.
19860         * lib/unicase/tolower.h: Likewise.
19861         * lib/unicase/totitle.h: Likewise.
19862         * lib/unicase/toupper.h: Likewise.
19863         * lib/unictype/bidi_of.h: Likewise.
19864         * lib/unictype/blocks.h: Likewise.
19865         * lib/unictype/categ_C.h: Likewise.
19866         * lib/unictype/categ_Cn.h: Likewise.
19867         * lib/unictype/categ_L.h: Likewise.
19868         * lib/unictype/categ_Ll.h: Likewise.
19869         * lib/unictype/categ_Lm.h: Likewise.
19870         * lib/unictype/categ_Lo.h: Likewise.
19871         * lib/unictype/categ_Lu.h: Likewise.
19872         * lib/unictype/categ_M.h: Likewise.
19873         * lib/unictype/categ_Mc.h: Likewise.
19874         * lib/unictype/categ_Me.h: Likewise.
19875         * lib/unictype/categ_Mn.h: Likewise.
19876         * lib/unictype/categ_N.h: Likewise.
19877         * lib/unictype/categ_Nd.h: Likewise.
19878         * lib/unictype/categ_No.h: Likewise.
19879         * lib/unictype/categ_P.h: Likewise.
19880         * lib/unictype/categ_Po.h: Likewise.
19881         * lib/unictype/categ_S.h: Likewise.
19882         * lib/unictype/categ_Sc.h: Likewise.
19883         * lib/unictype/categ_Sk.h: Likewise.
19884         * lib/unictype/categ_Sm.h: Likewise.
19885         * lib/unictype/categ_So.h: Likewise.
19886         * lib/unictype/categ_of.h: Likewise.
19887         * lib/unictype/combining.h: Likewise.
19888         * lib/unictype/ctype_alnum.h: Likewise.
19889         * lib/unictype/ctype_alpha.h: Likewise.
19890         * lib/unictype/ctype_graph.h: Likewise.
19891         * lib/unictype/ctype_lower.h: Likewise.
19892         * lib/unictype/ctype_print.h: Likewise.
19893         * lib/unictype/ctype_punct.h: Likewise.
19894         * lib/unictype/ctype_upper.h: Likewise.
19895         * lib/unictype/decdigit.h: Likewise.
19896         * lib/unictype/digit.h: Likewise.
19897         * lib/unictype/numeric.h: Likewise.
19898         * lib/unictype/pr_alphabetic.h: Likewise.
19899         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
19900         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
19901         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
19902         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
19903         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
19904         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
19905         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
19906         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
19907         * lib/unictype/pr_case_ignorable.h: Likewise.
19908         * lib/unictype/pr_cased.h: Likewise.
19909         * lib/unictype/pr_changes_when_casefolded.h: Likewise.
19910         * lib/unictype/pr_changes_when_casemapped.h: Likewise.
19911         * lib/unictype/pr_changes_when_lowercased.h: Likewise.
19912         * lib/unictype/pr_changes_when_titlecased.h: Likewise.
19913         * lib/unictype/pr_changes_when_uppercased.h: Likewise.
19914         * lib/unictype/pr_combining.h: Likewise.
19915         * lib/unictype/pr_composite.h: Likewise.
19916         * lib/unictype/pr_currency_symbol.h: Likewise.
19917         * lib/unictype/pr_decimal_digit.h: Likewise.
19918         * lib/unictype/pr_deprecated.h: Likewise.
19919         * lib/unictype/pr_format_control.h: Likewise.
19920         * lib/unictype/pr_grapheme_base.h: Likewise.
19921         * lib/unictype/pr_grapheme_extend.h: Likewise.
19922         * lib/unictype/pr_grapheme_link.h: Likewise.
19923         * lib/unictype/pr_id_continue.h: Likewise.
19924         * lib/unictype/pr_id_start.h: Likewise.
19925         * lib/unictype/pr_ideographic.h: Likewise.
19926         * lib/unictype/pr_lowercase.h: Likewise.
19927         * lib/unictype/pr_math.h: Likewise.
19928         * lib/unictype/pr_numeric.h: Likewise.
19929         * lib/unictype/pr_other_alphabetic.h: Likewise.
19930         * lib/unictype/pr_other_id_continue.h: Likewise.
19931         * lib/unictype/pr_other_math.h: Likewise.
19932         * lib/unictype/pr_punctuation.h: Likewise.
19933         * lib/unictype/pr_sentence_terminal.h: Likewise.
19934         * lib/unictype/pr_terminal_punctuation.h: Likewise.
19935         * lib/unictype/pr_unassigned_code_value.h: Likewise.
19936         * lib/unictype/pr_unified_ideograph.h: Likewise.
19937         * lib/unictype/pr_uppercase.h: Likewise.
19938         * lib/unictype/pr_xid_continue.h: Likewise.
19939         * lib/unictype/pr_xid_start.h: Likewise.
19940         * lib/unictype/scripts.h: Likewise.
19941         * lib/unictype/scripts_byname.gperf: Likewise.
19942         * lib/unictype/sy_java_ident.h: Likewise.
19943         * lib/unigbrk/gbrkprop.h: Likewise.
19944         * lib/unilbrk/lbrkprop1.h: Likewise.
19945         * lib/unilbrk/lbrkprop2.h: Likewise.
19946         * lib/uninorm/decomposition-table2.h: Likewise.
19947         * lib/uniwbrk/wbrkprop.h: Likewise.
19948         * tests/unicase/test-cased.c: Likewise.
19949         * tests/unicase/test-ignorable.c: Likewise.
19950         * tests/unicase/test-uc_tolower.c: Likewise.
19951         * tests/unicase/test-uc_totitle.c: Likewise.
19952         * tests/unicase/test-uc_toupper.c: Likewise.
19953         * tests/unictype/test-categ_C.c: Likewise.
19954         * tests/unictype/test-categ_Cn.c: Likewise.
19955         * tests/unictype/test-categ_L.c: Likewise.
19956         * tests/unictype/test-categ_Ll.c: Likewise.
19957         * tests/unictype/test-categ_Lm.c: Likewise.
19958         * tests/unictype/test-categ_Lo.c: Likewise.
19959         * tests/unictype/test-categ_Lu.c: Likewise.
19960         * tests/unictype/test-categ_M.c: Likewise.
19961         * tests/unictype/test-categ_Mc.c: Likewise.
19962         * tests/unictype/test-categ_Me.c: Likewise.
19963         * tests/unictype/test-categ_Mn.c: Likewise.
19964         * tests/unictype/test-categ_N.c: Likewise.
19965         * tests/unictype/test-categ_Nd.c: Likewise.
19966         * tests/unictype/test-categ_No.c: Likewise.
19967         * tests/unictype/test-categ_P.c: Likewise.
19968         * tests/unictype/test-categ_Po.c: Likewise.
19969         * tests/unictype/test-categ_S.c: Likewise.
19970         * tests/unictype/test-categ_Sc.c: Likewise.
19971         * tests/unictype/test-categ_Sk.c: Likewise.
19972         * tests/unictype/test-categ_Sm.c: Likewise.
19973         * tests/unictype/test-categ_So.c: Likewise.
19974         * tests/unictype/test-ctype_alnum.c: Likewise.
19975         * tests/unictype/test-ctype_alpha.c: Likewise.
19976         * tests/unictype/test-ctype_graph.c: Likewise.
19977         * tests/unictype/test-ctype_lower.c: Likewise.
19978         * tests/unictype/test-ctype_print.c: Likewise.
19979         * tests/unictype/test-ctype_punct.c: Likewise.
19980         * tests/unictype/test-ctype_upper.c: Likewise.
19981         * tests/unictype/test-decdigit.h: Likewise.
19982         * tests/unictype/test-digit.h: Likewise.
19983         * tests/unictype/test-numeric.h: Likewise.
19984         * tests/unictype/test-pr_alphabetic.c: Likewise.
19985         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
19986         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Likewise.
19987         * tests/unictype/test-pr_bidi_boundary_neutral.c: Likewise.
19988         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
19989         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
19990         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
19991         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
19992         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
19993         * tests/unictype/test-pr_case_ignorable.c: Likewise.
19994         * tests/unictype/test-pr_cased.c: Likewise.
19995         * tests/unictype/test-pr_changes_when_casefolded.c: Likewise.
19996         * tests/unictype/test-pr_changes_when_casemapped.c: Likewise.
19997         * tests/unictype/test-pr_changes_when_lowercased.c: Likewise.
19998         * tests/unictype/test-pr_changes_when_titlecased.c: Likewise.
19999         * tests/unictype/test-pr_changes_when_uppercased.c: Likewise.
20000         * tests/unictype/test-pr_combining.c: Likewise.
20001         * tests/unictype/test-pr_composite.c: Likewise.
20002         * tests/unictype/test-pr_currency_symbol.c: Likewise.
20003         * tests/unictype/test-pr_decimal_digit.c: Likewise.
20004         * tests/unictype/test-pr_deprecated.c: Likewise.
20005         * tests/unictype/test-pr_format_control.c: Likewise.
20006         * tests/unictype/test-pr_grapheme_base.c: Likewise.
20007         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
20008         * tests/unictype/test-pr_grapheme_link.c: Likewise.
20009         * tests/unictype/test-pr_id_continue.c: Likewise.
20010         * tests/unictype/test-pr_id_start.c: Likewise.
20011         * tests/unictype/test-pr_ideographic.c: Likewise.
20012         * tests/unictype/test-pr_lowercase.c: Likewise.
20013         * tests/unictype/test-pr_math.c: Likewise.
20014         * tests/unictype/test-pr_numeric.c: Likewise.
20015         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
20016         * tests/unictype/test-pr_other_id_continue.c: Likewise.
20017         * tests/unictype/test-pr_other_math.c: Likewise.
20018         * tests/unictype/test-pr_punctuation.c: Likewise.
20019         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
20020         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
20021         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
20022         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
20023         * tests/unictype/test-pr_uppercase.c: Likewise.
20024         * tests/unictype/test-pr_xid_continue.c: Likewise.
20025         * tests/unictype/test-pr_xid_start.c: Likewise.
20026         * tests/unigbrk/test-uc-gbrk-prop.h: Likewise.
20027         * lib/unicase/special-casing-table.gperf: Regenerated; only comment
20028         changes.
20029         * lib/unictype/categ_Cc.h: Likewise.
20030         * lib/unictype/categ_Cf.h: Likewise.
20031         * lib/unictype/categ_Co.h: Likewise.
20032         * lib/unictype/categ_Cs.h: Likewise.
20033         * lib/unictype/categ_Lt.h: Likewise.
20034         * lib/unictype/categ_Nl.h: Likewise.
20035         * lib/unictype/categ_Pc.h: Likewise.
20036         * lib/unictype/categ_Pd.h: Likewise.
20037         * lib/unictype/categ_Pe.h: Likewise.
20038         * lib/unictype/categ_Pf.h: Likewise.
20039         * lib/unictype/categ_Pi.h: Likewise.
20040         * lib/unictype/categ_Ps.h: Likewise.
20041         * lib/unictype/categ_Z.h: Likewise.
20042         * lib/unictype/categ_Zl.h: Likewise.
20043         * lib/unictype/categ_Zp.h: Likewise.
20044         * lib/unictype/categ_Zs.h: Likewise.
20045         * lib/unictype/ctype_blank.h: Likewise.
20046         * lib/unictype/ctype_cntrl.h: Likewise.
20047         * lib/unictype/ctype_digit.h: Likewise.
20048         * lib/unictype/ctype_space.h: Likewise.
20049         * lib/unictype/ctype_xdigit.h: Likewise.
20050         * lib/unictype/mirror.h: Likewise.
20051         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
20052         * lib/unictype/pr_bidi_block_separator.h: Likewise.
20053         * lib/unictype/pr_bidi_common_separator.h: Likewise.
20054         * lib/unictype/pr_bidi_control.h: Likewise.
20055         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
20056         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
20057         * lib/unictype/pr_bidi_european_digit.h: Likewise.
20058         * lib/unictype/pr_bidi_pdf.h: Likewise.
20059         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
20060         * lib/unictype/pr_bidi_whitespace.h: Likewise.
20061         * lib/unictype/pr_dash.h: Likewise.
20062         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
20063         * lib/unictype/pr_diacritic.h: Likewise.
20064         * lib/unictype/pr_extender.h: Likewise.
20065         * lib/unictype/pr_hex_digit.h: Likewise.
20066         * lib/unictype/pr_hyphen.h: Likewise.
20067         * lib/unictype/pr_ids_binary_operator.h: Likewise.
20068         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
20069         * lib/unictype/pr_ignorable_control.h: Likewise.
20070         * lib/unictype/pr_iso_control.h: Likewise.
20071         * lib/unictype/pr_join_control.h: Likewise.
20072         * lib/unictype/pr_left_of_pair.h: Likewise.
20073         * lib/unictype/pr_line_separator.h: Likewise.
20074         * lib/unictype/pr_logical_order_exception.h: Likewise.
20075         * lib/unictype/pr_non_break.h: Likewise.
20076         * lib/unictype/pr_not_a_character.h: Likewise.
20077         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
20078         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
20079         * lib/unictype/pr_other_id_start.h: Likewise.
20080         * lib/unictype/pr_other_lowercase.h: Likewise.
20081         * lib/unictype/pr_other_uppercase.h: Likewise.
20082         * lib/unictype/pr_paired_punctuation.h: Likewise.
20083         * lib/unictype/pr_paragraph_separator.h: Likewise.
20084         * lib/unictype/pr_pattern_syntax.h: Likewise.
20085         * lib/unictype/pr_pattern_white_space.h: Likewise.
20086         * lib/unictype/pr_private_use.h: Likewise.
20087         * lib/unictype/pr_quotation_mark.h: Likewise.
20088         * lib/unictype/pr_radical.h: Likewise.
20089         * lib/unictype/pr_soft_dotted.h: Likewise.
20090         * lib/unictype/pr_space.h: Likewise.
20091         * lib/unictype/pr_titlecase.h: Likewise.
20092         * lib/unictype/pr_variation_selector.h: Likewise.
20093         * lib/unictype/pr_white_space.h: Likewise.
20094         * lib/unictype/pr_zero_width.h: Likewise.
20095         * lib/unictype/sy_c_ident.h: Likewise.
20096         * lib/unictype/sy_c_whitespace.h: Likewise.
20097         * lib/unictype/sy_java_whitespace.h: Likewise.
20098         * lib/uninorm/composition-table.gperf: Likewise.
20099         * lib/uninorm/decomposition-table1.h: Likewise.
20100         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Add test for rule
20101         LB8.
20102         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
20103         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
20104         * modules/unictype/*: Bump version number of expected libunistring
20105         version.
20106
20107 2011-01-09  Bruno Haible  <bruno@clisp.org>
20108
20109         Update to Unicode 5.2.0.
20110         * tests/unigbrk/GraphemeBreakTest.txt: Copied from Unicode 5.2.0, with
20111         trailing whitespace removed.
20112
20113 2011-01-09  Bruno Haible  <bruno@clisp.org>
20114
20115         New Unicode character properties, from Unicode 5.2.0.
20116         * lib/unictype.in.h (UC_PROPERTY_CASED, UC_PROPERTY_CASE_IGNORABLE,
20117         UC_PROPERTY_CHANGES_WHEN_LOWERCASED,
20118         UC_PROPERTY_CHANGES_WHEN_UPPERCASED,
20119         UC_PROPERTY_CHANGES_WHEN_TITLECASED,
20120         UC_PROPERTY_CHANGES_WHEN_CASEFOLDED,
20121         UC_PROPERTY_CHANGES_WHEN_CASEMAPPED,
20122         uc_is_property_cased, uc_is_property_case_ignorable,
20123         uc_is_property_changes_when_lowercased,
20124         uc_is_property_changes_when_uppercased,
20125         uc_is_property_changes_when_titlecased,
20126         uc_is_property_changes_when_casefolded,
20127         uc_is_property_changes_when_casemapped): New declarations.
20128         * lib/unictype/pr_byname.gperf: Add the new properties.
20129         * modules/unictype/property-byname (Depends-on): Depend on the new
20130         properties modules.
20131         * modules/unictype/property-all (Depends-on): Likewise.
20132         * MODULES.html.sh (Unicode string functions): Add
20133         unictype/property-case-ignorable, unictype/property-cased,
20134         unictype/property-changes-when-casefolded,
20135         unictype/property-changes-when-casemapped,
20136         unictype/property-changes-when-lowercased,
20137         unictype/property-changes-when-titlecased,
20138         unictype/property-changes-when-uppercased.
20139
20140         New module 'unictype/property-changes-when-casemapped'.
20141         * modules/unictype/property-changes-when-casemapped: New file.
20142         * lib/unictype/pr_changes_when_casemapped.c: New file.
20143         * lib/unictype/pr_changes_when_casemapped.h: New file, automatically
20144         generated by gen-uni-tables.
20145         * modules/unictype/property-changes-when-casemapped-tests: New file.
20146         * tests/unictype/test-pr_changes_when_casemapped.c: New file,
20147         automatically generated by gen-uni-tables.
20148
20149         New module 'unictype/property-changes-when-casefolded'.
20150         * modules/unictype/property-changes-when-casefolded: New file.
20151         * lib/unictype/pr_changes_when_casefolded.c: New file.
20152         * lib/unictype/pr_changes_when_casefolded.h: New file, automatically
20153         generated by gen-uni-tables.
20154         * modules/unictype/property-changes-when-casefolded-tests: New file.
20155         * tests/unictype/test-pr_changes_when_casefolded.c: New file,
20156         automatically generated by gen-uni-tables.
20157
20158         New module 'unictype/property-changes-when-titlecased'.
20159         * modules/unictype/property-changes-when-titlecased: New file.
20160         * lib/unictype/pr_changes_when_titlecased.c: New file.
20161         * lib/unictype/pr_changes_when_titlecased.h: New file, automatically
20162         generated by gen-uni-tables.
20163         * modules/unictype/property-changes-when-titlecased-tests: New file.
20164         * tests/unictype/test-pr_changes_when_titlecased.c: New file,
20165         automatically generated by gen-uni-tables.
20166
20167         New module 'unictype/property-changes-when-uppercased'.
20168         * modules/unictype/property-changes-when-uppercased: New file.
20169         * lib/unictype/pr_changes_when_uppercased.c: New file.
20170         * lib/unictype/pr_changes_when_uppercased.h: New file, automatically
20171         generated by gen-uni-tables.
20172         * modules/unictype/property-changes-when-uppercased-tests: New file.
20173         * tests/unictype/test-pr_changes_when_uppercased.c: New file,
20174         automatically generated by gen-uni-tables.
20175
20176         New module 'unictype/property-changes-when-lowercased'.
20177         * modules/unictype/property-changes-when-lowercased: New file.
20178         * lib/unictype/pr_changes_when_lowercased.c: New file.
20179         * lib/unictype/pr_changes_when_lowercased.h: New file, automatically
20180         generated by gen-uni-tables.
20181         * modules/unictype/property-changes-when-lowercased-tests: New file.
20182         * tests/unictype/test-pr_changes_when_lowercased.c: New file,
20183         automatically generated by gen-uni-tables.
20184
20185         New module 'unictype/property-case-ignorable'.
20186         * modules/unictype/property-case-ignorable: New file.
20187         * lib/unictype/pr_case_ignorable.c: New file.
20188         * lib/unictype/pr_case_ignorable.h: New file, automatically generated
20189         by gen-uni-tables.
20190         * modules/unictype/property-case-ignorable-tests: New file.
20191         * tests/unictype/test-pr_case_ignorable.c: New file, automatically
20192         generated by gen-uni-tables.
20193
20194         New module 'unictype/property-cased'.
20195         * modules/unictype/property-cased: New file.
20196         * lib/unictype/pr_cased.c: New file.
20197         * lib/unictype/pr_cased.h: New file, automatically generated by
20198         gen-uni-tables.
20199         * modules/unictype/property-cased-tests: New file.
20200         * tests/unictype/test-pr_cased.c: New file, automatically generated by
20201         gen-uni-tables.
20202
20203 2011-01-09  Bruno Haible  <bruno@clisp.org>
20204
20205         Update to Unicode 5.2.0.
20206         * lib/gen-uni-tables.c (output_predicate, output_category,
20207         output_combclass, output_bidi_category, output_decimal_digit_test,
20208         output_decimal_digit, output_digit_test, output_digit,
20209         output_numeric_test, output_numeric, output_mirror, output_scripts,
20210         output_scripts_byname, output_blocks, output_ident_category): Fix
20211         comment header.
20212         (is_WBP_MIDNUMLET, is_WBP_MIDLETTER): New functions, extracted from
20213         get_wbp.
20214         (PROP_CASED, PROP_CASE_IGNORABLE, PROP_CHANGES_WHEN_*): New enumeration
20215         items.
20216         (fill_properties): Also fill the peoperties Cased, Case_Ignorable,
20217         Changes_When_Lowercased, Changes_When_Uppercased,
20218         Changes_When_Titlecased, Changes_When_Casefolded,
20219         Changes_When_Casemapped.
20220         (is_property_alphabetic, is_property_default_ignorable_code_point):
20221         Update for Unicode 5.2.0.
20222         (is_property_cased, is_property_case_ignorable,
20223         is_property_changes_when_lowercased,
20224         is_property_changes_when_uppercased,
20225         is_property_changes_when_titlecased,
20226         is_property_changes_when_casefolded,
20227         is_property_changes_when_casemapped): New functions.
20228         (output_properties): Output also the properties cased, case_ignorable,
20229         changes_when_lowercased, changes_when_uppercased,
20230         changes_when_titlecased, changes_when_casefolded,
20231         changes_when_casemapped.
20232         (symbolic_width): Update for Unicode 5.2.0, incorporating changes from
20233         Unicode TR#11 revision 17 -> 19.
20234         (LBP_CP): New enumeration value.
20235         (LBP_*): Adjust values accordingly.
20236         (get_lbp): Update for Unicode 5.2.0, incorporating changes from Unicode
20237         TR#14 revision 22 -> 24.
20238         (debug_output_lbp): Allow for LBP_* bits >= 32. Support LBP_CP.
20239         (fill_org_lbp, debug_output_org_lbp, output_lbp): Support LBP_CP.
20240         (get_wbp): Update for Unicode 5.2.0, incorporating changes from Unicode
20241         TR#29 revision 13 -> 15. Use functions is_WBP_MIDNUMLET,
20242         is_WBP_MIDLETTER.
20243         (output_composition_tables): Allow for 24 bits instead of 16 bits in
20244         the code1 and code2 of each composition rule.
20245         * lib/unicase/cased.h: Regenerated for Unicode 5.2.0.
20246         * lib/unicase/ignorable.h: Likewise.
20247         * lib/unicase/tocasefold.h: Likewise.
20248         * lib/unicase/tolower.h: Likewise.
20249         * lib/unicase/totitle.h: Likewise.
20250         * lib/unicase/toupper.h: Likewise.
20251         * lib/unictype/bidi_of.h: Likewise.
20252         * lib/unictype/blocks.h: Likewise.
20253         * lib/unictype/categ_C.h: Likewise.
20254         * lib/unictype/categ_Cf.h: Likewise.
20255         * lib/unictype/categ_Cn.h: Likewise.
20256         * lib/unictype/categ_L.h: Likewise.
20257         * lib/unictype/categ_Ll.h: Likewise.
20258         * lib/unictype/categ_Lm.h: Likewise.
20259         * lib/unictype/categ_Lo.h: Likewise.
20260         * lib/unictype/categ_Lu.h: Likewise.
20261         * lib/unictype/categ_M.h: Likewise.
20262         * lib/unictype/categ_Mc.h: Likewise.
20263         * lib/unictype/categ_Mn.h: Likewise.
20264         * lib/unictype/categ_N.h: Likewise.
20265         * lib/unictype/categ_Nd.h: Likewise.
20266         * lib/unictype/categ_Nl.h: Likewise.
20267         * lib/unictype/categ_No.h: Likewise.
20268         * lib/unictype/categ_P.h: Likewise.
20269         * lib/unictype/categ_Pd.h: Likewise.
20270         * lib/unictype/categ_Po.h: Likewise.
20271         * lib/unictype/categ_S.h: Likewise.
20272         * lib/unictype/categ_Sc.h: Likewise.
20273         * lib/unictype/categ_So.h: Likewise.
20274         * lib/unictype/categ_of.h: Likewise.
20275         * lib/unictype/combining.h: Likewise.
20276         * lib/unictype/ctype_alnum.h: Likewise.
20277         * lib/unictype/ctype_alpha.h: Likewise.
20278         * lib/unictype/ctype_graph.h: Likewise.
20279         * lib/unictype/ctype_lower.h: Likewise.
20280         * lib/unictype/ctype_print.h: Likewise.
20281         * lib/unictype/ctype_punct.h: Likewise.
20282         * lib/unictype/ctype_upper.h: Likewise.
20283         * lib/unictype/decdigit.h: Likewise.
20284         * lib/unictype/digit.h: Likewise.
20285         * lib/unictype/numeric.h: Likewise.
20286         * lib/unictype/pr_alphabetic.h: Likewise.
20287         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
20288         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
20289         * lib/unictype/pr_bidi_european_digit.h: Likewise.
20290         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
20291         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
20292         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
20293         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
20294         * lib/unictype/pr_combining.h: Likewise.
20295         * lib/unictype/pr_composite.h: Likewise.
20296         * lib/unictype/pr_currency_symbol.h: Likewise.
20297         * lib/unictype/pr_dash.h: Likewise.
20298         * lib/unictype/pr_decimal_digit.h: Likewise.
20299         * lib/unictype/pr_deprecated.h: Likewise.
20300         * lib/unictype/pr_diacritic.h: Likewise.
20301         * lib/unictype/pr_extender.h: Likewise.
20302         * lib/unictype/pr_grapheme_base.h: Likewise.
20303         * lib/unictype/pr_grapheme_extend.h: Likewise.
20304         * lib/unictype/pr_grapheme_link.h: Likewise.
20305         * lib/unictype/pr_id_continue.h: Likewise.
20306         * lib/unictype/pr_id_start.h: Likewise.
20307         * lib/unictype/pr_ideographic.h: Likewise.
20308         * lib/unictype/pr_ignorable_control.h: Likewise.
20309         * lib/unictype/pr_logical_order_exception.h: Likewise.
20310         * lib/unictype/pr_lowercase.h: Likewise.
20311         * lib/unictype/pr_numeric.h: Likewise.
20312         * lib/unictype/pr_other_alphabetic.h: Likewise.
20313         * lib/unictype/pr_punctuation.h: Likewise.
20314         * lib/unictype/pr_sentence_terminal.h: Likewise.
20315         * lib/unictype/pr_terminal_punctuation.h: Likewise.
20316         * lib/unictype/pr_unassigned_code_value.h: Likewise.
20317         * lib/unictype/pr_unified_ideograph.h: Likewise.
20318         * lib/unictype/pr_uppercase.h: Likewise.
20319         * lib/unictype/pr_xid_continue.h: Likewise.
20320         * lib/unictype/pr_xid_start.h: Likewise.
20321         * lib/unictype/pr_zero_width.h: Likewise.
20322         * lib/unictype/scripts.h: Likewise.
20323         * lib/unictype/scripts_byname.gperf: Likewise.
20324         * lib/unictype/sy_java_ident.h: Likewise.
20325         * lib/unigbrk/gbrkprop.h: Likewise.
20326         * lib/unilbrk/lbrkprop1.h: Likewise.
20327         * lib/unilbrk/lbrkprop2.h: Likewise.
20328         * lib/unilbrk/lbrktables.h: Likewise.
20329         * lib/unilbrk/lbrktables.c (unilbrk_table): Add a row and column for
20330         LBP_CP. Implement rule LB30.
20331         * lib/uniwidth/width.c (nonspacing_table_data): Add U+0816..U+0819,
20332         U+081B..U+0823, U+0825..U+0827, U+0829..U+082D, U+0900, U+0955, U+109D,
20333         U+1A56, U+1A58..U+1A5E, U+1A60, U+1A62, U+1A65..U+1A6C, U+1A73..U+1A7C,
20334         U+1A7F, U+1CD0..U+1CD2, U+1CD4..U+1CE0, U+1CE2..U+1CE8, U+1CED, U+1DFD,
20335         U+2CEF..U+2CF1, U+A6F0..U+A6F1, U+A8E0..U+A8F1, U+A980..U+A982, U+A9B3,
20336         U+A9B6..U+A9B9, U+A9BC, U+AAB0, U+AAB2..U+AAB4, U+AAB7..U+AAB8,
20337         U+AABE..U+AABF, U+AAC1, U+ABE5, U+ABE8, U+ABED, U+11080..U+11081,
20338         U+110B3..U+110B6, U+110B9..U+110BA, U+110BD.
20339         (uc_width): Return 2 also for unassigned code points of planes 2 and 3.
20340         * lib/uninorm/composition-table.gperf: Regenerated for Unicode 5.2.0.
20341         * lib/uninorm/composition.c (struct composition_rule): Allow for 24
20342         bits instead of 16 bits in the code1 and code2 of each composition
20343         rule.
20344         (uc_composition): Update for Unicode 5.2.0.
20345         * lib/uninorm/decomposition-table1.h: Regenerated for Unicode 5.2.0.
20346         * lib/uninorm/decomposition-table2.h: Likewise.
20347         * lib/uniwbrk/wbrkprop.h: Likewise.
20348         * tests/unicase/test-cased.c: Likewise.
20349         * tests/unicase/test-ignorable.c: Likewise.
20350         * tests/unicase/test-uc_tolower.c: Likewise.
20351         * tests/unicase/test-uc_totitle.c: Likewise.
20352         * tests/unicase/test-uc_toupper.c: Likewise.
20353         * tests/unictype/test-categ_C.c: Likewise.
20354         * tests/unictype/test-categ_Cf.c: Likewise.
20355         * tests/unictype/test-categ_Cn.c: Likewise.
20356         * tests/unictype/test-categ_L.c: Likewise.
20357         * tests/unictype/test-categ_Ll.c: Likewise.
20358         * tests/unictype/test-categ_Lm.c: Likewise.
20359         * tests/unictype/test-categ_Lo.c: Likewise.
20360         * tests/unictype/test-categ_Lu.c: Likewise.
20361         * tests/unictype/test-categ_M.c: Likewise.
20362         * tests/unictype/test-categ_Mc.c: Likewise.
20363         * tests/unictype/test-categ_Mn.c: Likewise.
20364         * tests/unictype/test-categ_N.c: Likewise.
20365         * tests/unictype/test-categ_Nd.c: Likewise.
20366         * tests/unictype/test-categ_Nl.c: Likewise.
20367         * tests/unictype/test-categ_No.c: Likewise.
20368         * tests/unictype/test-categ_P.c: Likewise.
20369         * tests/unictype/test-categ_Pd.c: Likewise.
20370         * tests/unictype/test-categ_Po.c: Likewise.
20371         * tests/unictype/test-categ_S.c: Likewise.
20372         * tests/unictype/test-categ_Sc.c: Likewise.
20373         * tests/unictype/test-categ_So.c: Likewise.
20374         * tests/unictype/test-ctype_alnum.c: Likewise.
20375         * tests/unictype/test-ctype_alpha.c: Likewise.
20376         * tests/unictype/test-ctype_graph.c: Likewise.
20377         * tests/unictype/test-ctype_lower.c: Likewise.
20378         * tests/unictype/test-ctype_print.c: Likewise.
20379         * tests/unictype/test-ctype_punct.c: Likewise.
20380         * tests/unictype/test-ctype_upper.c: Likewise.
20381         * tests/unictype/test-decdigit.h: Likewise.
20382         * tests/unictype/test-digit.h: Likewise.
20383         * tests/unictype/test-numeric.h: Likewise.
20384         * tests/unictype/test-pr_alphabetic.c: Likewise.
20385         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
20386         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
20387         * tests/unictype/test-pr_bidi_european_digit.c: Likewise.
20388         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
20389         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
20390         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
20391         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
20392         * tests/unictype/test-pr_combining.c: Likewise.
20393         * tests/unictype/test-pr_composite.c: Likewise.
20394         * tests/unictype/test-pr_currency_symbol.c: Likewise.
20395         * tests/unictype/test-pr_dash.c: Likewise.
20396         * tests/unictype/test-pr_decimal_digit.c: Likewise.
20397         * tests/unictype/test-pr_deprecated.c: Likewise.
20398         * tests/unictype/test-pr_diacritic.c: Likewise.
20399         * tests/unictype/test-pr_extender.c: Likewise.
20400         * tests/unictype/test-pr_grapheme_base.c: Likewise.
20401         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
20402         * tests/unictype/test-pr_grapheme_link.c: Likewise.
20403         * tests/unictype/test-pr_id_continue.c: Likewise.
20404         * tests/unictype/test-pr_id_start.c: Likewise.
20405         * tests/unictype/test-pr_ideographic.c: Likewise.
20406         * tests/unictype/test-pr_ignorable_control.c: Likewise.
20407         * tests/unictype/test-pr_logical_order_exception.c: Likewise.
20408         * tests/unictype/test-pr_lowercase.c: Likewise.
20409         * tests/unictype/test-pr_numeric.c: Likewise.
20410         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
20411         * tests/unictype/test-pr_punctuation.c: Likewise.
20412         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
20413         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
20414         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
20415         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
20416         * tests/unictype/test-pr_uppercase.c: Likewise.
20417         * tests/unictype/test-pr_xid_continue.c: Likewise.
20418         * tests/unictype/test-pr_xid_start.c: Likewise.
20419         * tests/unictype/test-pr_zero_width.c: Likewise.
20420         * tests/unigbrk/test-uc-gbrk-prop.h: Likewise.
20421         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Update for
20422         changed behaviour: line breaking is now disallowed between a letter
20423         or '=' and '('.
20424         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
20425         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
20426         * tests/unilbrk/test-ulc-possible-linebreaks.c (main): Likewise.
20427         * tests/unilbrk/test-ulc-width-linebreaks.c (main): Likewise.
20428         * tests/uniwidth/test-uc_width2.sh: Same updates as in
20429         lib/uniwidth/width.c.
20430         * tests/uninorm/NormalizationTest.txt: Update from Unicode 5.2.0,
20431         without comments, but with the original copyright notice.
20432         * lib/unicase/special-casing-table.gperf: Regenerated; only comment
20433         changes.
20434         * lib/unictype/categ_Cc.h: Likewise.
20435         * lib/unictype/categ_Co.h: Likewise.
20436         * lib/unictype/categ_Cs.h: Likewise.
20437         * lib/unictype/categ_Lt.h: Likewise.
20438         * lib/unictype/categ_Me.h: Likewise.
20439         * lib/unictype/categ_Pc.h: Likewise.
20440         * lib/unictype/categ_Pe.h: Likewise.
20441         * lib/unictype/categ_Pf.h: Likewise.
20442         * lib/unictype/categ_Pi.h: Likewise.
20443         * lib/unictype/categ_Ps.h: Likewise.
20444         * lib/unictype/categ_Sk.h: Likewise.
20445         * lib/unictype/categ_Sm.h: Likewise.
20446         * lib/unictype/categ_Z.h: Likewise.
20447         * lib/unictype/categ_Zl.h: Likewise.
20448         * lib/unictype/categ_Zp.h: Likewise.
20449         * lib/unictype/categ_Zs.h: Likewise.
20450         * lib/unictype/ctype_blank.h: Likewise.
20451         * lib/unictype/ctype_cntrl.h: Likewise.
20452         * lib/unictype/ctype_digit.h: Likewise.
20453         * lib/unictype/ctype_space.h: Likewise.
20454         * lib/unictype/ctype_xdigit.h: Likewise.
20455         * lib/unictype/mirror.h: Likewise.
20456         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
20457         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
20458         * lib/unictype/pr_bidi_block_separator.h: Likewise.
20459         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
20460         * lib/unictype/pr_bidi_common_separator.h: Likewise.
20461         * lib/unictype/pr_bidi_control.h: Likewise.
20462         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
20463         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
20464         * lib/unictype/pr_bidi_pdf.h: Likewise.
20465         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
20466         * lib/unictype/pr_bidi_whitespace.h: Likewise.
20467         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
20468         * lib/unictype/pr_format_control.h: Likewise.
20469         * lib/unictype/pr_hex_digit.h: Likewise.
20470         * lib/unictype/pr_hyphen.h: Likewise.
20471         * lib/unictype/pr_ids_binary_operator.h: Likewise.
20472         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
20473         * lib/unictype/pr_iso_control.h: Likewise.
20474         * lib/unictype/pr_join_control.h: Likewise.
20475         * lib/unictype/pr_left_of_pair.h: Likewise.
20476         * lib/unictype/pr_line_separator.h: Likewise.
20477         * lib/unictype/pr_math.h: Likewise.
20478         * lib/unictype/pr_non_break.h: Likewise.
20479         * lib/unictype/pr_not_a_character.h: Likewise.
20480         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
20481         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
20482         * lib/unictype/pr_other_id_continue.h: Likewise.
20483         * lib/unictype/pr_other_id_start.h: Likewise.
20484         * lib/unictype/pr_other_lowercase.h: Likewise.
20485         * lib/unictype/pr_other_math.h: Likewise.
20486         * lib/unictype/pr_other_uppercase.h: Likewise.
20487         * lib/unictype/pr_paired_punctuation.h: Likewise.
20488         * lib/unictype/pr_paragraph_separator.h: Likewise.
20489         * lib/unictype/pr_pattern_syntax.h: Likewise.
20490         * lib/unictype/pr_pattern_white_space.h: Likewise.
20491         * lib/unictype/pr_private_use.h: Likewise.
20492         * lib/unictype/pr_quotation_mark.h: Likewise.
20493         * lib/unictype/pr_radical.h: Likewise.
20494         * lib/unictype/pr_soft_dotted.h: Likewise.
20495         * lib/unictype/pr_space.h: Likewise.
20496         * lib/unictype/pr_titlecase.h: Likewise.
20497         * lib/unictype/pr_variation_selector.h: Likewise.
20498         * lib/unictype/pr_white_space.h: Likewise.
20499         * lib/unictype/sy_c_ident.h: Likewise.
20500         * lib/unictype/sy_c_whitespace.h: Likewise.
20501         * lib/unictype/sy_java_whitespace.h: Likewise.
20502         * modules/uni*/*: Bump version number of expected libunistring version.
20503         Reported by Simon Josefsson.
20504
20505 2011-01-09  Karl Heuer  <kwzh@gnu.org>
20506
20507         useless-if-before-free: fix typo in --help and make the internal,
20508         automatic version date update process work once again.
20509         --help output contained a NUL character instead of the
20510         backslash-zero that was intended.  Also, the "must lie within
20511         the first 8 lines" line is on line 9, and hence not getting
20512         automatically updated.
20513         * build-aux/useless-if-before-free: Fix the former by adding a
20514         backslash, and the latter by condensing the three lines of what-it-does
20515         to a single line, leaving one line of slack for the future.
20516
20517 2011-01-09  Bruno Haible  <bruno@clisp.org>
20518
20519         uniwidth/width: Fix width of U+1D173..U+1D17A.
20520         * lib/gen-uni-tables.c (is_nonspacing, output_nonspacing_property,
20521         symbolic_width, output_width_property_test): New functions.
20522         (main): Invoke output_nonspacing_property, output_width_property_test.
20523         * lib/uniwidth/width.c (nonspacing_table_data): Set bits for
20524         U+1D173..U+1D17A.
20525         * tests/uniwidth/test-uc_width2.sh: For U+1D173..U+1D17A, expect 0, not
20526         1.
20527         * modules/uniwidth/*: Bump version number of expected libunistring
20528         version.
20529         * modules/unilbrk/*: Likewise.
20530
20531 2011-01-08  Bruno Haible  <bruno@clisp.org>
20532
20533         uninorm tests: Preserve copyright of Unicode data file.
20534         * tests/uninorm/NormalizationTest.txt: Re-add original copyright.
20535         Mention modifications.
20536
20537 2011-01-08  Bruno Haible  <bruno@clisp.org>
20538
20539         gen-uni-tables: Prepare for Unicode 5.2.0.
20540         * lib/gen-uni-tables.c (get_lbp): Allow for more than 32 LBP_* values.
20541         (debug_output_lbp, output_lbp): Update.
20542
20543 2011-01-08  Bruno Haible  <bruno@clisp.org>
20544
20545         unilbrk: Clarify gen-uni-tables.c code.
20546         * lib/gen-uni-tables.c (get_lbp): Assume REVISION_22 to be false. These
20547         were mistakes in UAX #14 revision 22 that are corrected in revision 24.
20548         Clarify what to do with unilbrk/lbrkprop.txt and uniwbrk/wbrkprop.txt.
20549
20550 2011-01-07  Bruno Haible  <bruno@clisp.org>
20551
20552         strtod: Restore errno when successfully parsing Infinity or NaN.
20553         * lib/strtod.c (strtod): After successfully parsing an Infinity or NaN,
20554         restore the original errno.
20555
20556 2011-01-07  Bruno Haible  <bruno@clisp.org>
20557
20558         remove test: Avoid failure on HP-UX 11.
20559         * tests/test-remove.c (main): Allow EEXIST as alternative error code.
20560
20561 2011-01-07  Bruno Haible  <bruno@clisp.org>
20562
20563         mkdir, mkdirat tests: Avoid failure on HP-UX 11.11.
20564         * tests/test-mkdir.h (test_mkdir): Allow EOPNOTSUPP as alternative
20565         error code.
20566
20567 2011-01-07  Pádraig Brady <P@draigBrady.com>
20568
20569         ignore-value: fixup comments, and add Eric Blake
20570         as an author since he rewrote the macros.
20571         * lib/ignore-value.h (ignore_value):  State that
20572         we now support aggregates.  Also specify exactly
20573         when the GCC warn_unused_result feature was added.
20574
20575 2011-01-06  Eric Blake  <eblake@redhat.com>
20576
20577         ignore-value: support aggregate types
20578         * lib/ignore-value.h (ignore_value): Provide separate gcc
20579         definition.
20580         * modules/ignore-value-tests: New test module.
20581         * tests/test-ignore-value.c: New test.
20582
20583         maint.mk: improve sc_prohibit_strcmp regex
20584         * top/maint.mk (sc_prohibit_strcmp): Detect strcmp()!=0, as
20585         documented.  Also, detect strcmp((expr),expr) == 0.  Exempt the
20586         definition of STRNEQ.
20587
20588         signal: work around Haiku issue with SIGBUS
20589         * lib/siglist.h: Add comment.
20590         * lib/sig2str.c (numname_table): Swap SIGBUS order, to match
20591         strsignal's favoring of SIGSEGV.
20592         * tests/test-signal.c (main): Avoid test failure.
20593         * doc/posix-headers/signal.texi (signal.h): Document the issue.
20594         Reported by Scott McCreary.
20595
20596         maint.mk: add pre-release check to ensure submodule commits are public
20597         * top/maint.mk (public-submodule-commit): New rule.
20598         (submodule-checks): New variable.
20599         (alpha beta stable): Depend on the variable.
20600
20601 2011-01-05  Pádraig Brady <P@draigBrady.com>
20602         and Jim Meyering  <meyering@redhat.com>
20603
20604         ignore-value: make ignore_value more generic; deprecate ignore_ptr
20605         * lib/ignore-value.h: Include <stdint.h>, for decl of intptr_t.
20606         (ATTRIBUTE_DEPRECATED): Define.
20607         (_ignore_case): New function.
20608         (ignore_value): New macro, to replace the old function.
20609         (ignore_ptr): Arrange for any use to evoke a deprecation warning.
20610         * modules/ignore-value (Depends-on): Add stdint.
20611
20612 2011-01-04  Eric Blake  <eblake@redhat.com>
20613
20614         doc: regenerate INSTALL
20615         * doc/Makefile (INSTALL, INSTALL.ISO, INSTALL.UTF-8): Re-add
20616         @firstparagraphindent support, now that autoconf dropped it.
20617         (INSTALL_PRELUDE): Reinstate old macro.
20618         * doc/install.texi: Resync from autoconf.
20619         * doc/INSTALL: Reflect recent autoconf update.
20620         * doc/INSTALL.ISO: Likewise.
20621         * doc/INSTALL.UTF-8: Likewise.
20622         Reported by Karl Berry.
20623
20624 2011-01-04  Bruce Korb  <address@hidden>
20625
20626         git-version-gen: avoid a sub-shell
20627         * build-aux/git-version-gen: Redirect stderr in `...` via
20628         "exec 2>...", rather than via an added sub-shell.
20629
20630 2011-01-03  Ben Pfaff  <blp@cs.stanford.edu>
20631
20632         git-version-gen: use (...) rather than sh -c '...'
20633         * build-aux/git-version-gen: Rather than hard-coding a shell's name
20634         with "sh -c '...'", just use "(...)".  Less syntax is better, too.
20635
20636 2011-01-03  Jim Meyering  <meyering@redhat.com>
20637
20638         git-version-gen: convert leading TABs to spaces
20639         * build-aux/git-version-gen: Expand leading TABs.
20640
20641         git-version-gen: handle failed "git rev-list"
20642         * build-aux/git-version-gen: Rather than leaking a "fatal" error
20643         from git and proceeding as if it had succeeded but printed no SHA1
20644         checksums, suppress the diagnostic and handle the failure.
20645         Reported by Bruce Korb in http://marc.info/?l=git&m=129399145930450&w=2
20646
20647         git-version-gen: include command name in one more diagnostic
20648         * build-aux/git-version-gen: When the required .tarball-version file
20649         was missing or unreadable, you might see the diagnostic from "cat",
20650         but no trace of the name of the invoking script.  Now, you still see
20651         the diagnostic from cat, but also get one from "git-version-gen: ".
20652         Inspired by a patch from Bruce Korb.
20653
20654         update-copyright: adjust test to match changed code
20655         * tests/test-update-copyright.sh: Change test's expected output
20656         to match new actual output.
20657
20658 2011-01-02  Bruno Haible  <bruno@clisp.org>
20659
20660         getlogin_r: Avoid test failure on HP-UX 11.
20661         * tests/test-getlogin_r.c (main): Allow an error code EINVAL instead of
20662         ERANGE when the second argument is zero.
20663         * doc/posix-functions/getlogin_r.texi: Document the HP-UX 11
20664         portability problem.
20665
20666 2011-01-02  Bruce Korb  <bkorb@gnu.org>
20667
20668         * build-aux/update-copyright: doc Simon's changes
20669
20670 2011-01-02  Simon Josefsson  <simon@josefsson.org>
20671
20672         * build-aux/update-copyright: Support UPDATE_COPYRIGHT_HOLDER
20673         environment variable.
20674
20675 2011-01-02  Bruno Haible  <bruno@clisp.org>
20676
20677         unigbrk: Avoid gcc warnings.
20678         * lib/unigbrk/u16-grapheme-breaks.c (u16_grapheme_breaks): Remove
20679         unused variable.
20680         * lib/unigbrk/u16-grapheme-prev.c (u16_grapheme_prev): Likewise.
20681         * lib/unigbrk/u8-grapheme-prev.c (u8_grapheme_prev): Likewise.
20682         * tests/unigbrk/test-u16-grapheme-breaks.c (main): Likewise.
20683         * tests/unigbrk/test-u32-grapheme-breaks.c (main): Likewise.
20684         * tests/unigbrk/test-u8-grapheme-breaks.c (test_u8_grapheme_breaks):
20685         Change type of first argument to 'const char *'.
20686         (main): Remove unused variable.
20687         * tests/unigbrk/test-u8-grapheme-next.c (test_u8_grapheme_next): Change
20688         type of first argument to 'const char *'.
20689         * tests/unigbrk/test-u8-grapheme-prev.c (test_u8_grapheme_prev):
20690         Likewise.
20691         (main): Change type of variable 's'.
20692         * tests/unigbrk/test-uc-is-grapheme-break.c (main): Cast column number
20693         to 'int'.
20694
20695 2011-01-02  Bruno Haible  <bruno@clisp.org>
20696
20697         pwrite: Fix test whether it works and make it work on HP-UX 11.11.
20698         * m4/pwrite.m4 (gl_FUNC_PWRITE): Use AC_LANG_PROGRAM, not
20699         AC_LANG_SOURCE. Extend the test program to catch another HP-UX 11.11
20700         bug.
20701         * lib/pwrite.c: Undo 2010-12-31 patch.
20702         * doc/posix-functions/pwrite.texi: Document another HP-UX 11.11 bug.
20703
20704 2011-01-02  Bruno Haible  <bruno@clisp.org>
20705
20706         pread: Fix test whether it works.
20707         * m4/pread.m4 (gl_FUNC_PREAD): Use AC_LANG_PROGRAM, not AC_LANG_SOURCE.
20708
20709 2011-01-02  Bruno Haible  <bruno@clisp.org>
20710
20711         Fix detection of traditional Arabic locale on HP-UX, Solaris, Cygwin.
20712         * m4/locale-ar.m4 (gt_LOCALE_AR): Require that the locale encoding name
20713         ends in "6". Don't require a specific month name. Try also the locale
20714         names found on HP-UX 11 and Solaris 7.
20715
20716 2011-01-02  Bruno Haible  <bruno@clisp.org>
20717
20718         tcgetsid: Correct linkage in C++ mode on HP-UX 11.00.
20719         * lib/termios.in.h: In C++ mode, on HP-UX, include <sys/termios.h> with
20720         C linkage.
20721         * doc/posix-functions/tcgetsid.texi: Mention the HP-UX 11.00 bug.
20722
20723 2011-01-01  Ben Pfaff  <blp@cs.stanford.edu>
20724
20725         Rename uc_is_grapheme_cluster_break() to uc_is_grapheme_break()
20726         for consistency, since the "cluster" term is not used elsewhere.
20727         * lib/unigbrk.in.h: Update name.
20728         * lib/unigbrk/u16-grapheme-breaks.c: Update name.
20729         * lib/unigbrk/u16-grapheme-next.c: Update name.
20730         * lib/unigbrk/u16-grapheme-prev.c: Update name.
20731         * lib/unigbrk/u32-grapheme-breaks.c: Update name.
20732         * lib/unigbrk/u32-grapheme-next.c: Update name.
20733         * lib/unigbrk/u32-grapheme-prev.c: Update name.
20734         * lib/unigbrk/u8-grapheme-breaks.c: Update name.
20735         * lib/unigbrk/u8-grapheme-next.c: Update name.
20736         * lib/unigbrk/u8-grapheme-prev.c: Update name.
20737         * lib/unigbrk/uc-is-grapheme-break.c: Update name.
20738         * tests/unigbrk/test-uc-is-grapheme-break.c: Update name.
20739         Suggested by Bruno Haible.
20740
20741 2011-01-01  Ben Pfaff  <blp@cs.stanford.edu>
20742
20743         Remove module 'u8-grapheme-len' as too redundant with
20744         'u8-grapheme-next'.
20745         * modules/unigbrk/u8-grapheme-len: Delete file.
20746         * modules/unigbrk/u8-grapheme-len-tests: Delete file.
20747         * lib/unigbrk.in.h: Remove prototype for deleted function.
20748         * lib/unigbrk/u8-grapheme-len.c: Delete file.
20749         * tests/unigbrk/test-u8-grapheme-len.c: Delete file.
20750
20751         Remove module 'u16-grapheme-len' as too redundant with
20752         'u16-grapheme-next'.
20753         * modules/unigbrk/u16-grapheme-len: Delete file.
20754         * modules/unigbrk/u16-grapheme-len-tests: Delete file.
20755         * lib/unigbrk.in.h: Remove prototype for deleted function.
20756         * lib/unigbrk/u16-grapheme-len.c: Delete file.
20757         * tests/unigbrk/test-u16-grapheme-len.c: Delete file.
20758
20759         Remove module 'u32-grapheme-len' as too redundant with
20760         'u32-grapheme-next'.
20761         * modules/unigbrk/u32-grapheme-len: Delete file.
20762         * modules/unigbrk/u32-grapheme-len-tests: Delete file.
20763         * lib/unigbrk.in.h: Remove prototype for deleted function.
20764         * lib/unigbrk/u32-grapheme-len.c: Delete file.
20765         * tests/unigbrk/test-u32-grapheme-len.c: Delete file.
20766
20767         Suggested by Bruno Haible.
20768
20769 2011-01-01  Ben Pfaff  <blp@cs.stanford.edu>
20770
20771         * unigbrk.in.h: Fix typo: "ben" => "been".
20772         Reported by Bruno Haible.
20773
20774 2011-01-01  Jim Meyering  <meyering@redhat.com>
20775
20776         maint: update almost all copyright ranges to include 2011
20777         Run the new "make update-copyright" rule.
20778
20779 2011-01-01  Jim Meyering  <meyering@redhat.com>
20780
20781         maint: update-copyright: exempt doc/INSTALL*
20782         * Makefile (update-copyright): Also exclude doc/INSTALL*,
20783         since they are generated.  Suggested by Bruno Haible.
20784
20785 2011-01-01  Jim Meyering  <meyering@redhat.com>
20786
20787         maint: refine the update-copyright rule
20788         * Makefile (update-copyright): Also exclude any file that includes
20789         the "GENERATED AUTOMATICALLY" comment, being careful not to exclude
20790         code that merely generates the comment.
20791
20792 2010-12-31  Ben Pfaff  <blp@cs.stanford.edu>
20793
20794         New module 'u8-grapheme-len'.
20795         * modules/unigbrk/u8-grapheme-len: New file.
20796         * modules/unigbrk/u8-grapheme-len-tests: New file.
20797         * lib/unigbrk.in.h: Add prototype for new function.
20798         * lib/unigbrk/u8-grapheme-len.c: New file.
20799         * tests/unigbrk/test-u8-grapheme-len.c: New file.
20800
20801         New module 'u16-grapheme-len'.
20802         * modules/unigbrk/u16-grapheme-len: New file.
20803         * modules/unigbrk/u16-grapheme-len-tests: New file.
20804         * lib/unigbrk.in.h: Add prototype for new function.
20805         * lib/unigbrk/u16-grapheme-len.c: New file.
20806         * tests/unigbrk/test-u16-grapheme-len.c: New file.
20807
20808         New module 'u32-grapheme-len'.
20809         * modules/unigbrk/u32-grapheme-len: New file.
20810         * modules/unigbrk/u32-grapheme-len-tests: New file.
20811         * lib/unigbrk.in.h: Add prototype for new function.
20812         * lib/unigbrk/u32-grapheme-len.c: New file.
20813         * tests/unigbrk/test-u32-grapheme-len.c: New file.
20814
20815         New module 'u8-grapheme-next'.
20816         * modules/unigbrk/u8-grapheme-next: New file.
20817         * modules/unigbrk/u8-grapheme-next-tests: New file.
20818         * lib/unigbrk.in.h: Add prototype for new function.
20819         * lib/unigbrk/u8-grapheme-next.c: New file.
20820         * tests/unigbrk/test-u8-grapheme-next.c: New file.
20821
20822         New module 'u16-grapheme-next'.
20823         * modules/unigbrk/u16-grapheme-next: New file.
20824         * modules/unigbrk/u16-grapheme-next-tests: New file.
20825         * lib/unigbrk.in.h: Add prototype for new function.
20826         * lib/unigbrk/u16-grapheme-next.c: New file.
20827         * tests/unigbrk/test-u16-grapheme-next.c: New file.
20828
20829         New module 'u32-grapheme-next'.
20830         * modules/unigbrk/u32-grapheme-next: New file.
20831         * modules/unigbrk/u32-grapheme-next-tests: New file.
20832         * lib/unigbrk.in.h: Add prototype for new function.
20833         * lib/unigbrk/u32-grapheme-next.c: New file.
20834         * tests/unigbrk/test-u32-grapheme-next.c: New file.
20835
20836         New module 'u8-grapheme-prev'.
20837         * modules/unigbrk/u8-grapheme-prev: New file.
20838         * modules/unigbrk/u8-grapheme-prev-tests: New file.
20839         * lib/unigbrk.in.h: Add prototype for new function.
20840         * lib/unigbrk/u8-grapheme-prev.c: New file.
20841         * tests/unigbrk/test-u8-grapheme-prev.c: New file.
20842
20843         New module 'u16-grapheme-prev'.
20844         * modules/unigbrk/u16-grapheme-prev: New file.
20845         * modules/unigbrk/u16-grapheme-prev-tests: New file.
20846         * lib/unigbrk.in.h: Add prototype for new function.
20847         * lib/unigbrk/u16-grapheme-prev.c: New file.
20848         * tests/unigbrk/test-u16-grapheme-prev.c: New file.
20849
20850         New module 'u32-grapheme-prev'.
20851         * modules/unigbrk/u32-grapheme-prev: New file.
20852         * modules/unigbrk/u32-grapheme-prev-tests: New file.
20853         * lib/unigbrk.in.h: Add prototype for new function.
20854         * lib/unigbrk/u32-grapheme-prev.c: New file.
20855         * tests/unigbrk/test-u32-grapheme-prev.c: New file.
20856
20857         New module 'u8-grapheme-breaks'.
20858         * modules/unigbrk/u8-grapheme-breaks: New file.
20859         * modules/unigbrk/u8-grapheme-breaks-tests: New file.
20860         * lib/unigbrk.in.h: Add prototype for new function.
20861         * lib/unigbrk/u8-grapheme-breaks.c: New file.
20862         * tests/unigbrk/test-u8-grapheme-breaks.c: New file.
20863
20864         New module 'u16-grapheme-breaks'.
20865         * modules/unigbrk/u16-grapheme-breaks: New file.
20866         * modules/unigbrk/u16-grapheme-breaks-tests: New file.
20867         * lib/unigbrk.in.h: Add prototype for new function.
20868         * lib/unigbrk/u16-grapheme-breaks.c: New file.
20869         * tests/unigbrk/test-u16-grapheme-breaks.c: New file.
20870
20871         New module 'u32-grapheme-breaks'.
20872         * modules/unigbrk/u32-grapheme-breaks: New file.
20873         * modules/unigbrk/u32-grapheme-breaks-tests: New file.
20874         * lib/unigbrk.in.h: Add prototype for new function.
20875         * lib/unigbrk/u32-grapheme-breaks.c: New file.
20876         * tests/unigbrk/test-u32-grapheme-breaks.c: New file.
20877
20878         New module 'ulc-grapheme-breaks'.
20879         * modules/unigbrk/ulc-grapheme-breaks: New file.
20880         * modules/unigbrk/ulc-grapheme-breaks-tests: New file.
20881         * m4/locale-ar.m4: New file.
20882         * lib/unigbrk/ulc-grapheme-breaks.c: New file.
20883         * tests/unigbrk/test-ulc-grapheme-breaks.c: New file.
20884         * tests/unigbrk/test-ulc-grapheme-breaks.sh: New file.
20885
20886 2010-12-31  Ben Pfaff  <blp@cs.stanford.edu>
20887
20888         gbrkprop: Fix implementation of uc_graphemeclusterbreak_property.
20889         * lib/unigbrk/gbrkprop.h: Regenerate with gen-uni-tables.c.  I had
20890         modified how this file was generated before I initially submitted
20891         the module, but failed to regenerate it.  This meant that several
20892         of the level2 entries were wrong.
20893         * lib/unigbrk/uc-gbrk-prop.h (uc_graphemeclusterbreak_property):
20894         Remove the division-by-2 that is folded into the table now that
20895         gbrkprop.h has been regenerated properly.  Now -1 entries are
20896         handled correctly.
20897
20898         New module 'unigbrk/uc-gbrk-prop-tests'.
20899         * modules/unigbrk/uc-gbrk-prop-tests: New file.
20900         * lib/gen-uni-tables.c: Generate tests/test-uc-gbrk-prop.h.
20901         * tests/unigbrk/test-uc-gbrk-prop.c: New file.
20902         * tests/unigbrk/test-uc-gbrk-prop.h: New file.
20903
20904 2011-01-01  Bruno Haible  <bruno@clisp.org>
20905
20906         Avoid use of hexadecimal escapes.
20907         * tests/unigbrk/test-uc-is-grapheme-break.c (main): Use octal escapes
20908         instead of hexadecimal escapes.
20909
20910 2011-01-01  Jim Meyering  <meyering@redhat.com>
20911
20912         maint: new rule to update copyright year ranges
20913         * Makefile (update-copyright): New rule.
20914
20915         maint: indent with TABs in Makefile
20916         * Makefile: Expand leading sequences of spaces to TABs
20917
20918         version-etc: update the copyright year it reports
20919         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2011.
20920
20921 2010-12-31  Bruno Haible  <bruno@clisp.org>
20922
20923         isfinite: Avoid compiler bug of "cc -O" on HP-UX 11.11.
20924         * lib/isfinite.c (zerof, zerod, zerol): New variables.
20925         (gl_isfinitef, gl_isfinited, gl_isfinitel): Use them instead of literal
20926         zero.
20927
20928 2010-12-31  Bruno Haible  <bruno@clisp.org>
20929
20930         pwrite: Work around HP-UX 11.11 bug.
20931         * m4/pwrite.m4 (gl_FUNC_PWRITE): When pwrite exists, test whether it
20932         works and set REPLACE_PWRITE if not.
20933         * lib/pwrite.c (pwrite): Add an implementation that uses the system
20934         function.
20935         * doc/posix-functions/pwrite.texi: Document the HP-UX 11 bug.
20936
20937 2010-12-31  Bruno Haible  <bruno@clisp.org>
20938
20939         pread: Work around HP-UX 11 bugs.
20940         * m4/pread.m4 (gl_FUNC_PREAD): When pread exists, test whether it works
20941         and set REPLACE_PREAD if not.
20942         * doc/posix-functions/pread.texi: Document the HP-UX 11 bugs.
20943
20944 2010-12-31  Eric Blake  <eblake@redhat.com>
20945
20946         nl_langinfo: fix YESEXPR on Irix 6.5
20947         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Test for Irix bug.
20948         * lib/nl_langinfo.c (rpl_nl_langinfo): Work around it.
20949         * doc/posix-functions/nl_langinfo.texi (nl_langinfo): Document
20950         it.
20951
20952 2010-12-31  Bruno Haible  <bruno@clisp.org>
20953
20954         iconv: Document HP-UX 11 bug.
20955         * doc/posix-functions/iconv.texi: Document HP-UX 11 return value bug.
20956
20957 2010-12-31  Bruno Haible  <bruno@clisp.org>
20958
20959         ldexpl: Fix link error on HP-UX 11.
20960         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): When replacing ldexpl, set
20961         LDEXPL_LIBM, using $ISNANL_LIBM.
20962
20963 2010-12-31  Eric Blake  <eblake@redhat.com>
20964
20965         ftello: avoid compilation failure with SunStudio c89
20966         * lib/ftello.c (ftello): Use lseek, not llseek.
20967
20968         tests: avoid failing coreutils tests on cygwin
20969         * tests/init.sh (find_exe_basenames_): Exempt [.exe.
20970         (create_exe_shims_): Return 0 when skipping.
20971
20972 2010-12-31  Bruno Haible  <bruno@clisp.org>
20973
20974         sys_select: Avoid warning about missing memset declaration on HP-UX 11.
20975         * lib/sys_select.in.h: On HP-UX, include also <string.h>.
20976
20977 2010-12-31  Bruno Haible  <bruno@clisp.org>
20978
20979         waitpid: Fix link error in C++ mode.
20980         * lib/sys_wait.in.h: Remove extern "C" { ... } group.
20981
20982 2010-12-31  Bruno Haible  <bruno@clisp.org>
20983
20984         isnan: Use GCC built-ins when possible.
20985         * lib/math.in.h (gl_isnan_f): Use __builtin_isnanf instead of
20986         __builtin_isnan.
20987         (gl_isnan_l): Use __builtin_isnanl instead of __builtin_isnan.
20988         (isnan): Define using GCC built-ins for GCC >= 4.0.
20989
20990 2010-12-31  Bruno Haible  <bruno@clisp.org>
20991
20992         isnand: Fix mistake.
20993         * m4/isnand.m4 (gl_HAVE_ISNAND_IN_LIBM): Use __builtin_isnan, not
20994         __builtin_isnand.
20995
20996 2010-12-31  Bruno Haible  <bruno@clisp.org>
20997
20998         open: Avoid C++ error on HP-UX 11.
20999         * lib/fcntl.in.h (open): Disable _GL_CXXALIASWARN invocation on HP-UX.
21000
21001 2010-12-31  Bruno Haible  <bruno@clisp.org>
21002
21003         time_r: Add missing declarations on HP-UX 11.
21004         * lib/time.in.h (localtime_r, gmtime_r): Test HAVE_DECL_LOCALTIME_R
21005         instead of HAVE_LOCALTIME_R.
21006         * m4/time_r.m4 (gl_TIME_R): Test whether localtime_r is declared. Set
21007         HAVE_LOCALTIME_R always.
21008         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize
21009         HAVE_DECL_LOCALTIME_R, not HAVE_LOCALTIME_R.
21010         * modules/time (Makefile.am): Substitute HAVE_DECL_LOCALTIME_R, not
21011         HAVE_LOCALTIME_R.
21012         * doc/posix-functions/gmtime_r.texi: Document the HP-UX 11 problem.
21013         * doc/posix-functions/localtime_r.texi: Likewise.
21014
21015 2010-12-29  Eric Blake  <eblake@redhat.com>
21016
21017         mountlist: tweak previous commit
21018         * lib/mountlist.c (me_remote): Guarantee trailing backslash.
21019         Reported by Paul Eggert.
21020
21021         mountlist: fix local drive detection on cygwin
21022         * lib/mountlist.c (ME_REMOTE) [__CYGWIN__]: Provide implementation
21023         that works for cygwin.
21024
21025 2010-12-29  Paul Eggert  <eggert@cs.ucla.edu>
21026
21027         ftoastr, snprintf: ftoastr + snprintf module
21028         * lib/ftoastr.c: Use GNULIB_SNPRINTF, not GNULIB_SNPRINTF_POSIX,
21029         since the snprintf module now should be good enough here.
21030         * modules/snprintf (configure.ac): Add gl_MODULE_INDICATOR([snprintf]).
21031         It seems odd to have both gl_STDIO_MODULE_INDICATOR([snprintf])
21032         and gl_MODULE_INDICATOR([snprintf]), but the former enables
21033         GNULIB_SNPRINTF only for the test directory, and the latter
21034         doesn't arrange for gl_STDIO_H_DEFAULTS to be called, so neither
21035         seems to suffice by itself.
21036
21037 2010-12-28  Paul Eggert  <eggert@cs.ucla.edu>
21038
21039         alloca: one step towards thread-safety
21040         * lib/alloca.c (find_stack_direction): New arg PTR, to avoid the
21041         need for a static variable.  All callers changed.  This does not
21042         make the alloca replacement thread-safe, but it's one step.
21043
21044         tests: minor indenting change
21045         * tests/init.sh: Sync from coreutils housekeeping patch
21046         <http://lists.gnu.org/archive/html/coreutils/2010-12/msg00116.html>
21047         to keep lines within 80 columns.
21048
21049 2010-12-28  Jim Meyering  <meyering@redhat.com>
21050
21051         regex: don't infloop on persistent failing calloc
21052         * lib/regexec.c (build_trtable): Return failure indication upon
21053         calloc failure.  Otherwise, re_search_internal could infloop on OOM.
21054         In glibc, this was fixed for version 2.13:
21055         http://sourceware.org/bugzilla/show_bug.cgi?id=12348
21056
21057 2010-12-28  Bruno Haible  <bruno@clisp.org>
21058             Paul Eggert <eggert@cs.ucla.edu>
21059
21060         linkat: Make implementation robust against system behaviour variations.
21061         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Define
21062         LINK_FOLLOWS_SYMLINKS to -1 if it needs a runtime test in the Solaris
21063         way, and to -2 if it needs a generic runtime test.
21064         * lib/linkat.c (solaris_optimized_link_immediate,
21065         solaris_optimized_link_follow): New functions.
21066         * tests/test-linkat.c (EXPECT_LINK_HARDLINKS_SYMLINKS): New macro.
21067         (check_same_link): Use it.
21068
21069 2010-12-26  Ben Pfaff  <blp@cs.stanford.edu>
21070
21071         New module 'unigbrk/base'.
21072         * modules/unigbrk/base: New file.
21073         * lib/unigbrk.in.h: New file.
21074
21075         New module 'unigbrk/uc-gbrk-prop'.
21076         * lib/gen-uni-tables.c: Generate lib/unigbrk/gbrkprop.h.
21077         * modules/unigbrk/uc-gbrk-prop: New file.
21078         * lib/unigbrk/gbrkprop.h: New file.
21079         * lib/unigbrk/uc-gbrk-prop.c: New file.
21080
21081         New module 'unigbrk/uc-is-grapheme-break'.
21082         * modules/unigbrk/uc-is-grapheme-break: New file.
21083         * modules/unigbrk/uc-is-grapheme-break-tests: New file.
21084         * lib/unigbrk/uc-is-grapheme-break.c: New file.
21085         * tests/unigbrk/test-uc-is-grapheme-break.c: New file.
21086         * tests/unigbrk/test-uc-is-grapheme-break.sh: New file.
21087         * tests/unigbrk/GraphemeBreakTest.txt: New file.
21088
21089         With corrections and tweaks by Bruno Haible <bruno@clisp.org>.
21090
21091 2010-12-27  Bruno Haible  <bruno@clisp.org>
21092
21093         linkat test: Avoid failure on Solaris 11 2010-11.
21094         * tests/test-linkat.c (main): Allow ENOTDIR as alternative error code.
21095
21096 2010-12-27  Paul Eggert  <eggert@cs.ucla.edu>
21097
21098         utimens: work around glibc rounding bug on more platforms
21099         * lib/utimens.c (fdutimens): Work around rounding bug even if
21100         HAVE_WORKING_UTIMES.  Reported for Linux 2.4.21 by Bruno Haible in
21101         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00298.html>.
21102
21103 2010-12-27  Bruno Haible  <bruno@clisp.org>
21104
21105         select tests: Improve comments.
21106         * tests/test-select.c (do_select): Add comments.
21107
21108 2010-12-27  Bruno Haible  <bruno@clisp.org>
21109
21110         select tests: Safer way of handling timeout.
21111         * tests/test-select.c (do_select_nowait): Zero-initialize the timeout
21112         at every invocation.
21113
21114 2010-12-27  Bruno Haible  <bruno@clisp.org>
21115
21116         select tests: Use 'bool' where appropriate.
21117         * tests/test-select.c (connect_to_socket): Change argument type to
21118         'bool'.
21119
21120 2010-12-27  Bruno Haible  <bruno@clisp.org>
21121
21122         select tests: Use existing modules.
21123         * modules/select-tests (Depends-on): Add pipe-posix, unistd.
21124         (configure.ac): Don't test for unistd.h.
21125         * tests/test-select.c: Include <unistd.h> always. Use pipe() as
21126         declared in <unistd.h>.
21127
21128 2010-12-27  Bruno Haible  <bruno@clisp.org>
21129
21130         mbrtowc: Work around a Solaris 7 bug.
21131         * m4/mbrtowc.m4 (gl_MBRTOWC_NULL_ARG1): New macro.
21132         (gl_MBRTOWC_NULL_ARG2): Renamed from gl_MBRTOWC_NULL_ARG.
21133         (gl_FUNC_MBRTOWC): Update. Define MBRTOWC_NULL_ARG2_BUG instead of
21134         MBRTOWC_NULL_ARG_BUG. Invoke gl_MBRTOWC_NULL_ARG1 and define
21135         MBRTOWC_NULL_ARG1_BUG.
21136         * lib/mbrtowc.c (rpl_mbrtowc): Use MBRTOWC_NULL_ARG2_BUG instead of
21137         MBRTOWC_NULL_ARG_BUG. Handle MBRTOWC_NULL_ARG1_BUG.
21138         * tests/test-mbrtowc.c (main): Test support of a NULL first argument.
21139         * doc/posix-functions/mbrtowc.texi: Mention the Solaris 7 bug.
21140
21141 2010-12-27  Jim Meyering  <meyering@redhat.com>
21142
21143         read-file.c: tweak syntax
21144         * lib/read-file.c (fread_file): Remove space after "*" in function
21145         definitions.
21146
21147 2010-12-27  Bruno Haible  <bruno@clisp.org>
21148
21149         times test: Avoid gcc warnings on OSF/1.
21150         * tests/test-times.c (main): Cast printf arguments from clock_t to
21151         'long int'.
21152
21153 2010-12-27  Paul Eggert  <eggert@cs.ucla.edu>
21154
21155         utimens: work around glibc rounding bug on older Linux kernels
21156         * lib/utimens.c (fdutimens): If invoking futimesat or futimes
21157         on Linux with a glibc whose utimes might not work, then work
21158         around a longstanding glibc bug involving rounding rather than
21159         truncated time stamps.  Reported for Linux 2.4.21 by Bruno Haible in
21160         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00113.html>.
21161
21162 2010-12-26  Bruno Haible  <bruno@clisp.org>
21163
21164         inet_ntop: Hide mismatch of declaration on NonStop Kernel.
21165         * lib/arpa_inet.in.h (inet_ntop): Use _GL_CXXALIAS_SYS_CAST instead of
21166         _GL_CXXALIAS_SYS.
21167         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
21168
21169 2010-12-26  Bruno Haible  <bruno@clisp.org>
21170
21171         inet_ntop, inet_pton: Ensure declaration on NonStop Kernel.
21172         * lib/arpa_inet.in.h: On NonStop Kernel, include also <netdb.h>.
21173         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Likewise.
21174         * m4/inet_ntop.m4 (gl_PREREQ_INET_NTOP): Include also <netdb.h> when
21175         looking for the declaration.
21176         * m4/inet_pton.m4 (gl_PREREQ_INET_PTON): Likewise.
21177         * doc/posix-functions/inet_ntop.texi: Document the NonStop Kernel
21178         problem.
21179         * doc/posix-functions/inet_pton.texi: Likewise.
21180
21181 2010-12-26  Bruno Haible  <bruno@clisp.org>
21182
21183         arpa_inet: Use the common idioms with C++ support.
21184         * lib/arpa_inet.in.h: Include c++defs.h.
21185         (inet_ntop, inet_pton): Declare using the macros with C++ namespace
21186         support.
21187         * modules/arpa_inet (Depends-on): Add c++defs.
21188         (Makefile.am): Substitute the contents of c++defs.h.
21189         * modules/arpa_inet-tests (Depends-on): Add arpa_inet-c++-tests.
21190         * modules/arpa_inet-c++-tests: New file.
21191         * tests/test-arpa_inet-c++.cc: New file.
21192
21193 2010-12-25  Bruno Haible  <bruno@clisp.org>
21194
21195         Fix more C++ link errors on Solaris 8.
21196         * modules/fcntl-h-c++-tests (test_fcntl_h_c___LDADD): Add
21197         $(LIB_EACCESS).
21198         * modules/stdio-c++-tests (test_stdio_c___LDADD): Likewise.
21199         * modules/stdlib-c++-tests (test_stdlib_c___LDADD): Likewise.
21200         * modules/sys_ioctl-c++-tests (test_sys_ioctl_c___LDADD): Likewise.
21201         * modules/wchar-c++-tests (test_wchar_c___LDADD): Likewise.
21202         * modules/wctype-c++-tests (test_wctype_c___LDADD): Likewise.
21203
21204 2010-12-25  Bruno Haible  <bruno@clisp.org>
21205
21206         printf-posix: Fix link error when a non-GCC compiler is used.
21207         * lib/stdio.in.h (printf): When not using GCC, override printf
21208         correctly.
21209         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
21210
21211 2010-12-25  Bruno Haible  <bruno@clisp.org>
21212
21213         strerror_r-posix: Update doc.
21214         * doc/posix-functions/strerror_r.texi: Update doc about the return
21215         value. See <http://sources.redhat.com/bugzilla/show_bug.cgi?id=12204>.
21216
21217 2010-12-25  Paul Eggert  <eggert@cs.ucla.edu>
21218
21219         utimens: simplify the logic of the previous change
21220         * m4/utimes.m4 (gl_FUNC_UTIMES): Simplify the logic a bit.
21221         This should not affect whether the test succeeds or fails.
21222
21223         utimens: configure better on hosts with NFS clock skew
21224         * m4/utimes.m4 (gl_FUNC_UTIMES): Don't assume that utimes (f, NULL)
21225         uses the clock of the local host.  It might use the clock of the
21226         NFS server.  Reported for Linux 2.4.21 client by Bruno Haible in
21227         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00113.html>.
21228
21229 2010-12-25  Bruno Haible  <bruno@clisp.org>
21230
21231         ptsname test: Avoid failure on Solaris.
21232         * tests/test-ptsname.c (main): For Solaris, use the recommended way to
21233         open a pseudo-terminal; don't use BSD-style ptys.
21234         * doc/posix-functions/ptsname.texi: Document the limitation on Solaris.
21235
21236 2010-12-25  Bruno Haible  <bruno@clisp.org>
21237
21238         ptsname: Avoid ERANGE failure on some systems.
21239         * lib/ptsname.c (buffer): Increase size.
21240
21241 2010-12-25  Bruno Haible  <bruno@clisp.org>
21242
21243         rename, renameat: Avoid test failures at NFS mounted locations.
21244         * tests/test-rename.h (assert_nonexistent): Remove the old directory,
21245         so that subsequent mkdir calls succeed.
21246
21247 2010-12-25  Bruno Haible  <bruno@clisp.org>
21248
21249         iswblank: Fix C++ link error on Solaris 8.
21250         * lib/wctype.in.h (iswblank): Declare using _GL_FUNCDECL_RPL or
21251         _GL_FUNCDECL_SYS.
21252
21253 2010-12-25  Bruno Haible  <bruno@clisp.org>
21254
21255         unistd: Fix C++ link error on Solaris 8.
21256         * modules/unistd-c++-tests (test_unistd_c___LDADD): Add $(LIB_EACCESS).
21257
21258 2010-12-25  Bruno Haible  <bruno@clisp.org>
21259
21260         readlink doc: Mention an old glibc bug.
21261         * doc/posix-functions/readlink.texi: Mention glibc 2.4 bug (BZ #2450).
21262
21263 2010-12-25  Bruno Haible  <bruno@clisp.org>
21264
21265         fcntl-h: Fix for use of C++ on glibc systems.
21266         * lib/fcntl.in.h: Include <sys/stat.h> before include_next <fcntl.h>
21267         also on glibc systems in C++ mode.
21268         Reported by Gary V. Vaughan <gary@gnu.org>.
21269
21270 2010-12-25  Bruno Haible  <bruno@clisp.org>
21271
21272         roundl-ieee: Make it work on OSF/1 5.1 with cc.
21273         * modules/roundl-ieee (Depends-on): Add floorl-ieee, ceill-ieee.
21274
21275 2010-12-25  Bruno Haible  <bruno@clisp.org>
21276
21277         truncl-ieee: Make it work on OSF/1 5.1 with cc.
21278         * doc/posix-functions/truncl.texi: Mention the OSF/1 5.1 bug.
21279         * m4/truncl.m4 (gl_FUNC_TRUNCL): If gl_FUNC_TRUNCL_IEEE is also used,
21280         test whether truncl works according to ISO C 99 with IEC 60559.
21281         * m4/truncl-ieee.m4: New file.
21282         * modules/truncl-ieee (Files): Add it and m4/minus-zero.m4,
21283         m4/signbit.m4.
21284         (configure.ac): Invoke gl_FUNC_TRUNCL_IEEE.
21285
21286 2010-12-25  Bruno Haible  <bruno@clisp.org>
21287
21288         ceill-ieee: Make it work on OSF/1 5.1 with cc.
21289         * doc/posix-functions/ceill.texi: Mention the OSF/1 5.1 bug.
21290         * m4/ceill.m4 (gl_FUNC_CEILL): If gl_FUNC_CEILL_IEEE is also used,
21291         test whether ceill works according to ISO C 99 with IEC 60559.
21292         * m4/ceill-ieee.m4: New file.
21293         * modules/ceill-ieee (Files): Add it and m4/minus-zero.m4,
21294         m4/signbit.m4.
21295         (configure.ac): Invoke gl_FUNC_CEILL_IEEE.
21296
21297 2010-12-25  Bruno Haible  <bruno@clisp.org>
21298
21299         Ensure all prerequisites of <wchar.h> are included.
21300         * m4/btowc.m4 (gl_FUNC_BTOWC): Include <stddef.h>, <stdio.h>, <time.h>
21301         before <wchar.h>.
21302         * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL,
21303         gl_MBRLEN_NUL_RETVAL): Likewise.
21304         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
21305         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL,
21306         AC_FUNC_MBRTOWC): Likewise.
21307         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
21308         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Likewise.
21309         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
21310         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION, gl_WCSRTOMBS_NULL):
21311         Likewise.
21312         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
21313         * m4/wchar_h.m4 (gl_WCHAR_H_INLINE_OK): Likewise.
21314         (gl_WCHAR_H): Improve comments.
21315         * m4/wctype_h.m4 (gl_WCTYPE_H): Likewise.
21316
21317 2010-12-25  Bruno Haible  <bruno@clisp.org>
21318
21319         strtok_r: Fix C syntax error in autoconf macro.
21320         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Don't use UTF-8 encoded U+00A0
21321         characters in test program.
21322
21323 2010-12-24  Bruno Haible  <bruno@clisp.org>
21324
21325         ceil, trunc, round: Fix gcc warnings.
21326         * lib/ceil.c (MIN): Undefine before redefining.
21327         * lib/trunc.c (MIN): Likewise.
21328         * lib/round.c (MIN): Likewise.
21329         Include <math.h> first.
21330
21331 2010-12-24  Bruno Haible  <bruno@clisp.org>
21332
21333         select tests: Avoid failures on OSF/1 5.1.
21334         * tests/test-select.c (test_accept_first, test_socket_pair): Ignore
21335         failure of closing the last socket; it may fail with ECONNRESET.
21336
21337 2010-12-24  Eric Blake  <eblake@redhat.com>
21338
21339         stdint: avoid HP-UX 10.20 preprocessor bug
21340         * lib/stdint.in.h (INT64_MAX, UINT64_MAX): Check via #ifdef rather
21341         than #if.
21342         * tests/test-floor2.c (main): Likewise.
21343         Reported by Peter O'Gorman.
21344
21345         pipe: make obsoletion transition easier
21346         * lib/pipe.h: Restore file as thin shim around "spawn-pipe.h".
21347         * modules/pipe (Files): Include revived file.
21348         (Include): Drop reference, to mirror getdate's behavior.
21349
21350 2010-12-24  Bruno Haible  <bruno@clisp.org>
21351
21352         sys_socket: Hide mismatch of declarations on NonStop Kernel.
21353         * lib/sys_socket.in.h (connect, bind, sendto, setsockopt): Use
21354         _GL_CXXALIAS_SYS_CAST instead of _GL_CXXALIAS_SYS.
21355         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
21356
21357 2010-12-24  Bruno Haible  <bruno@clisp.org>
21358
21359         gethostname: Ensure declaration on NonStop Kernel.
21360         * lib/unistd.in.h: Include <netdb.h> also on NonStop Kernel systems.
21361         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
21362
21363 2010-12-24  Bruno Haible  <bruno@clisp.org>
21364
21365         sys_select: Ensure all necessary types on NonStop Kernel.
21366         * lib/sys_select.in.h: If the system does not have <sys/select.h>,
21367         include <sys/time.h>.
21368         * doc/posix-headers/sys_select.texi: Mention that it's missing on
21369         NonStop Kernel.
21370         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
21371
21372 2010-12-24  Bruno Haible  <bruno@clisp.org>
21373
21374         sys_select: Remove unneeded include.
21375         * lib/sys_select.in.h: Don't include <sys/socket.h> on platforms that
21376         have <sys/select.h>.
21377
21378 2010-12-24  Bruno Haible  <bruno@clisp.org>
21379
21380         gethostname: Provide a fallback for HOST_NAME_MAX.
21381         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): When neither HOST_NAME_MAX
21382         nor MAXHOSTNAMELEN is found in the usual system headers, use 256
21383         instead.
21384         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
21385
21386 2010-12-24  Bruno Haible  <bruno@clisp.org>
21387
21388         sigaction tests: Allow missing SA_RESETHAND and SA_RESTART.
21389         * tests/test-sigaction.c (SA_RESETHAND): Fall back to 0.
21390         (SA_RESTART): Likewise.
21391         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
21392
21393 2010-12-24  Bruno Haible  <bruno@clisp.org>
21394
21395         signal: Define NSIG.
21396         * lib/signal.in.h (NSIG): Define to 32 on NonStop Kernel.
21397         * tests/test-signal.c (nsig): New variable.
21398         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
21399
21400 2010-12-24  Bruno Haible  <bruno@clisp.org>
21401
21402         rename, renameat: Avoid test failures on OSF/1 5.1.
21403         * tests/test-rename.h (test_rename): Allow EEXIST and ENOTDIR as
21404         alternative error codes.
21405         * tests/test-renameat.c (main): Likewise.
21406
21407 2010-12-24  Bruno Haible  <bruno@clisp.org>
21408
21409         *printf: Detect large precisions bug on Solaris 10/SPARC.
21410         * m4/printf.m4 (gl_PRINTF_PRECISION): Add one more test code, provided
21411         by Paul Eggert.
21412         * tests/test-snprintf-posix.h (test_function): Add this test code here
21413         too.
21414         * tests/test-sprintf-posix.h (test_function): Likewise.
21415         * tests/test-vasnprintf-posix.c (test_function): Likewise.
21416         * tests/test-vasprintf-posix.c (test_function): Likewise.
21417         * doc/posix-functions/fprintf.texi: Mention Solaris 10 bug as worked
21418         around by gnulib.
21419         * doc/posix-functions/printf.texi: Likewise.
21420         * doc/posix-functions/snprintf.texi: Likewise.
21421         * doc/posix-functions/sprintf.texi: Likewise.
21422         * doc/posix-functions/vfprintf.texi: Likewise.
21423         * doc/posix-functions/vprintf.texi: Likewise.
21424         * doc/posix-functions/vsnprintf.texi: Likewise.
21425         * doc/posix-functions/vsprintf.texi: Likewise.
21426         * doc/posix-functions/dprintf.texi: Undo last commit.
21427         * doc/posix-functions/vdprintf.texi: Likewise.
21428
21429 2010-12-23  Paul Eggert  <eggert@cs.ucla.edu>
21430
21431         tests: port test-fdutimensat.c to Solaris 8
21432         * tests/test-fdutimensat.c (do_fdutimens): Don't assume
21433         fdutimensat works with a nonnegative fd and AT_SYMLINK_NOFOLLOW.
21434         On Solaris 8, it fails with errno == ENOSYS, because there is no
21435         futimens (so it can't use the fd), and there is no lutimens (so it
21436         can't implement AT_SYMLINK_NOFOLLOW on symlinks).
21437
21438         vsnprintf: make more consistent with snprintf; doc fixes
21439
21440         * doc/posix-functions/snprintf.texi (snprintf): The workaround for
21441         the byte count return problem was promoted from the snprintf-posix
21442         to the snprintf module.
21443         * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
21444         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Also check
21445         gl_SNPRINTF_RETVAL_C99, for consistency with gl_FUNC_SNPRINTF.
21446         * tests/test-snprintf.c (main): Check the byte count returned.
21447         * tests/test-vsnprintf.c (main): Likewise.
21448
21449 2010-12-23  Eric Blake  <eblake@redhat.com>
21450
21451         sigpipe: relax to LGPLv2+, since it did not have any LGPLv3+ parts
21452         * modules/sigpipe (License): Relax license.
21453
21454 2010-12-22  Paul Eggert  <eggert@cs.ucla.edu>
21455
21456         doc: document Solaris printf bug with large float precisions
21457         * doc/posix-functions/dprintf.texi (dprintf):
21458         * doc/posix-functions/fprintf.texi (fprintf):
21459         * doc/posix-functions/printf.texi (printf):
21460         * doc/posix-functions/snprintf.texi (snprintf):
21461         * doc/posix-functions/sprintf.texi (sprintf):
21462         * doc/posix-functions/vdprintf.texi (vdprintf):
21463         * doc/posix-functions/vfprintf.texi (vfprintf):
21464         * doc/posix-functions/vprintf.texi (vprintf):
21465         * doc/posix-functions/vsnprintf.texi (vsnprintf):
21466         * doc/posix-functions/vsprintf.texi (vsprintf):
21467         Mention that these functions mishandle large floating point
21468         precisions on Solaris 10.  The same bug is also present in Solaris
21469         8, and I assume earlier.  This causes "cd gnulib-tests; make
21470         check" to fail on Solaris 8 (and I assume, later) when building
21471         the latest coreutils, in test-vasprintf-posix's call to
21472         my_asprintf (&result, "%.4000f %d", 1.0, 99).  I have not checked
21473         the wide flavors (e.g., wprintf) so this patch just updates the
21474         documentation for the narrow ones.
21475
21476         test-posixtm.c: add two tests
21477         * tests/test-posixtm.c: Add two tests, to highlight the
21478         bug in Solaris 10 (and earlier) localtime.  Gnulib doesn't work
21479         around this bug; this is merely to document it.
21480
21481 2010-12-22  Bruno Haible  <bruno@clisp.org>
21482
21483         getlogin_r: Work around portability problem on OSF/1.
21484         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Detect the OSF/1 problem.
21485         * lib/unistd.in.h (getlogin_r): Replace if REPLACE_GETLOGIN_R is set.
21486         * lib/getlogin_r.c (getlogin_r): When getlogin_r exists, invoke it and
21487         test for a truncated result.
21488         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize REPLACE_GETLOGIN_R.
21489         * modules/unistd (Makefile.am): Substitute REPLACE_GETLOGIN_R.
21490         * modules/getlogin_r (Depends-on): Add memchr.
21491         * doc/posix-functions/getlogin_r.texi: Mention the OSF/1 problem.
21492
21493 2010-12-22  Bruno Haible  <bruno@clisp.org>
21494
21495         ptsname: Avoid test failure on OSF/1 5.1.
21496         * modules/ptsname-tests (Depends-on): Add 'same-inode'.
21497         * tests/test-ptsname.c: Include <sys/stat.h>, same-inode.h.
21498         (same_slave): New function.
21499         (main): Use it to compare ptsname's result with the expected file name.
21500
21501 2010-12-22  Bruno Haible  <bruno@clisp.org>
21502
21503         Port extended stdio modules to HP NonStop Kernel.
21504         * lib/stdio-impl.h (_IOERR, _IOREAD, _IOWRT, _IORW) [__TANDEM]: New
21505         macros.
21506         * lib/fbufmode.c: Update comments.
21507         * lib/fflush.c: Likewise.
21508         * lib/fpurge.c: Likewise.
21509         * lib/freadable.c: Likewise.
21510         * lib/freadahead.c: Likewise.
21511         * lib/freading.c: Likewise.
21512         * lib/freadptr.c: Likewise.
21513         * lib/freadseek.c: Likewise.
21514         * lib/fseeko.c: Likewise.
21515         * lib/fseterr.c: Likewise.
21516         * lib/fwritable.c: Likewise.
21517         * lib/fwriting.c: Likewise.
21518         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
21519
21520 2010-12-22  Bruno Haible  <bruno@clisp.org>
21521
21522         ttyname_r: Work around bug on OSF/1 5.1.
21523         * doc/posix-functions/ttyname_r.texi: Mention the OSF/1 bug.
21524         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Detect the OSF/1 bug. Say "no"
21525         instead of "guessing no" when the OSF/1 bug or the Solaris bug is
21526         present.
21527         * lib/ttyname_r.c (ttyname_r): Update comments.
21528
21529 2010-12-22  Bruno Haible  <bruno@clisp.org>
21530
21531         round: Implement result sign according to IEEE 754.
21532         * lib/round.c (MIN, MINUS_ZERO): New macros.
21533         (FLOOR_FREE_ROUND): Return -0.0 for -0.5 < x < 0.
21534         * tests/test-roundf-ieee.c (main): Test also values between -1 and 1.
21535         * tests/test-round-ieee.c (main): Likewise.
21536         * tests/test-roundl-ieee.c (main): Likewise.
21537
21538         trunc: Implement result sign according to IEEE 754.
21539         * lib/trunc.c (MIN, MINUS_ZERO): New macros.
21540         (FUNC): Return +0.0 for 0 < x < 1 and -0.0 for -1 < x < 0.
21541         * tests/test-trunc2.c: Include minus-zero.h.
21542         (MINUS_ZERO): New macro.
21543         (trunc_reference): Keep in sync with lib/trunc.c.
21544         * tests/test-truncf2.c: Include minus-zero.h.
21545         (MINUS_ZERO): New macro.
21546         (truncf_reference): Keep in sync with lib/trunc.c.
21547         * tests/test-truncf-ieee.c (main): Test also values between -1 and 1.
21548         * tests/test-trunc-ieee.c (main): Likewise.
21549         * tests/test-truncl-ieee.c (main): Likewise.
21550
21551         ceil: Implement result sign according to IEEE 754.
21552         * lib/ceil.c (MIN, MINUS_ZERO): New macros.
21553         (FUNC): Return -0.0 for -1 < x < 0.
21554         * tests/test-ceil2.c: Include minus-zero.h.
21555         (MINUS_ZERO): New macro.
21556         (ceil_reference): Keep in sync with lib/ceil.c.
21557         * tests/test-ceilf2.c: Include minus-zero.h.
21558         (MINUS_ZERO): New macro.
21559         (ceilf_reference): Keep in sync with lib/ceil.c.
21560         * tests/test-ceilf-ieee.c (main): Test also values between -1 and 1.
21561         * tests/test-ceil-ieee.c (main): Likewise.
21562         * tests/test-ceill-ieee.c (main): Likewise.
21563
21564         floor: Implement result sign according to IEEE 754.
21565         * lib/floor.c (FUNC): Return +0.0 for 0 < x < 1.
21566         * tests/test-floor2.c (floor_reference): Keep in sync with lib/floor.c.
21567         * tests/test-floorf2.c (floorf_reference): Likewise.
21568         * tests/test-floorf-ieee.c (main): Test also values between -1 and 1.
21569         * tests/test-floor-ieee.c (main): Likewise.
21570         * tests/test-floorl-ieee.c (main): Likewise.
21571
21572 2010-12-22  Bruno Haible  <bruno@clisp.org>
21573
21574         getaddrinfo: Update doc.
21575         * doc/posix-functions/gai_strerror.texi: Return type is also different
21576         on AIX and HP-UX.
21577
21578 2010-12-22  Paul Eggert  <eggert@cs.ucla.edu>
21579
21580         getaddrinfo, inet_ntop: Update doc for Solaris.
21581         * doc/posix-functions/gai_strerror.texi: Return type is also an
21582         issue on Solaris 9 and earlier.
21583         * doc/posix-functions/inet_ntop.texi: 4th arg type is also an issue
21584         on Solaris 10 and earlier.
21585
21586 2010-12-21  Bruno Haible  <bruno@clisp.org>
21587
21588         New module 'roundl-ieee'.
21589         * modules/roundl-ieee: New file.
21590         * m4/roundl.m4 (gl_FUNC_ROUNDL): If gl_FUNC_ROUNDL_IEEE is also used,
21591         test whether roundl works according to ISO C 99 with IEC 60559.
21592         * m4/roundl-ieee.m4: New file.
21593         * modules/roundl-ieee-tests: New file.
21594         * tests/test-roundl-ieee.c: New file, based on tests/test-roundl.c.
21595         * tests/test-roundl.c (main): Remove signbit tests.
21596         * modules/roundl-tests (Depends-on): Remove signbit.
21597         * doc/posix-functions/roundl.texi: Mention the new module.
21598
21599 2010-12-21  Bruno Haible  <bruno@clisp.org>
21600
21601         New module 'truncl-ieee'.
21602         * modules/truncl-ieee: New file.
21603         * modules/truncl-ieee-tests: New file.
21604         * tests/test-truncl-ieee.c: New file, based on tests/test-truncl.c.
21605         * tests/test-truncl.c (main): Remove signbit tests.
21606         * modules/truncl-tests (Depends-on): Remove signbit.
21607         * doc/posix-functions/truncl.texi: Mention the new module.
21608
21609 2010-12-21  Bruno Haible  <bruno@clisp.org>
21610
21611         New module 'ceill-ieee'.
21612         * modules/ceill-ieee: New file.
21613         * modules/ceill-ieee-tests: New file.
21614         * tests/test-ceill-ieee.c: New file, based on tests/test-ceill.c.
21615         * tests/test-ceill.c (main): Remove signbit tests.
21616         * modules/ceill-tests (Depends-on): Remove signbit.
21617         * doc/posix-functions/ceill.texi: Mention the new module.
21618
21619 2010-12-21  Bruno Haible  <bruno@clisp.org>
21620
21621         New module 'floorl-ieee'.
21622         * modules/floorl-ieee: New file.
21623         * modules/floorl-ieee-tests: New file.
21624         * tests/test-floorl-ieee.c: New file, based on tests/test-floorl.c.
21625         * tests/test-floorl.c (main): Remove signbit tests.
21626         * modules/floorl-tests (Depends-on): Remove signbit.
21627         * doc/posix-functions/floorl.texi: Mention the new module.
21628
21629 2010-12-21  Bruno Haible  <bruno@clisp.org>
21630
21631         New module 'round-ieee'.
21632         * modules/round-ieee: New file.
21633         * m4/round.m4 (gl_FUNC_ROUND): If gl_FUNC_ROUND_IEEE is also used, test
21634         whether round works according to ISO C 99 with IEC 60559.
21635         * m4/round-ieee.m4: New file.
21636         * modules/round-ieee-tests: New file.
21637         * tests/test-round-ieee.c: New file, based on tests/test-roundf-ieee.c.
21638         * tests/test-round1.c (main): Remove signbit tests.
21639         * modules/round-tests (Depends-on): Remove 'signbit'.
21640         * doc/posix-functions/round.texi: Mention the new module.
21641
21642 2010-12-21  Bruno Haible  <bruno@clisp.org>
21643
21644         New module 'trunc-ieee'.
21645         * modules/trunc-ieee: New file.
21646         * m4/trunc.m4 (gl_FUNC_TRUNC): If gl_FUNC_TRUNC_IEEE is also used, test
21647         whether trunc works according to ISO C 99 with IEC 60559.
21648         * m4/trunc-ieee.m4: New file.
21649         * lib/math.in.h (trunc): Replace if REPLACE_TRUNC is set.
21650         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNC.
21651         * modules/math (Makefile.am): Substitute REPLACE_TRUNC.
21652         * modules/trunc-ieee-tests: New file.
21653         * tests/test-trunc-ieee.c: New file, based on tests/test-truncf-ieee.c.
21654         * tests/test-trunc1.c (main): Remove signbit tests.
21655         * modules/trunc-tests (Depends-on): Remove 'signbit'.
21656         * doc/posix-functions/trunc.texi: Mention the new module.
21657
21658 2010-12-21  Bruno Haible  <bruno@clisp.org>
21659
21660         New module 'ceil-ieee'.
21661         * modules/ceil-ieee: New file.
21662         * m4/ceil.m4 (gl_FUNC_CEIL): Require gl_MATH_H_DEFAULTS. If
21663         gl_FUNC_CEIL_IEEE is also used, test whether ceil works according to
21664         ISO C 99 with IEC 60559.
21665         * m4/ceil-ieee.m4: New file.
21666         * modules/ceil (Files): Add lib/ceil.c.
21667         (Depends-on): Add 'float'.
21668         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
21669         * lib/math.in.h (ceil): New declaration.
21670         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEIL,
21671         REPLACE_CEIL.
21672         * modules/math (Makefile.am): Substitute GNULIB_CEIL, REPLACE_CEIL.
21673         * modules/ceil-ieee-tests: New file.
21674         * tests/test-ceil-ieee.c: New file, based on tests/test-ceilf-ieee.c.
21675         * tests/test-math-c++.cc: Check the signature of 'ceil'.
21676         * doc/posix-functions/ceil.texi: Mention the new module.
21677
21678 2010-12-21  Bruno Haible  <bruno@clisp.org>
21679
21680         New module 'floor-ieee'.
21681         * modules/floor-ieee: New file.
21682         * m4/floor.m4 (gl_FUNC_FLOOR): Require gl_MATH_H_DEFAULTS. If
21683         gl_FUNC_FLOOR_IEEE is also used, test whether floor works according to
21684         ISO C 99 with IEC 60559.
21685         * m4/floor-ieee.m4: New file.
21686         * modules/floor (Files): Add lib/floor.c.
21687         (Depends-on): Add 'float'.
21688         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
21689         * lib/math.in.h (floor): New declaration.
21690         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOOR,
21691         REPLACE_FLOOR.
21692         * modules/math (Makefile.am): Substitute GNULIB_FLOOR, REPLACE_FLOOR.
21693         * modules/floor-ieee-tests: New file.
21694         * tests/test-floor-ieee.c: New file, based on tests/test-floorf-ieee.c.
21695         * tests/test-math-c++.cc: Check the signature of 'floor'.
21696         * doc/posix-functions/floor.texi: Mention the new module.
21697
21698 2010-12-21  Bruno Haible  <bruno@clisp.org>
21699
21700         New module 'roundf-ieee'.
21701         * modules/roundf-ieee: New file.
21702         * m4/roundf.m4 (gl_FUNC_ROUNDF): If gl_FUNC_ROUNDF_IEEE is also used,
21703         test whether roundf works according to ISO C 99 with IEC 60559.
21704         * m4/roundf-ieee.m4: New file.
21705         * modules/roundf-ieee-tests: New file.
21706         * tests/test-roundf-ieee.c: New file, based on tests/test-roundf1.c.
21707         * tests/test-roundf1.c (main): Remove signbit tests.
21708         * modules/roundf-tests (Depends-on): Remove 'signbit'.
21709         * doc/posix-functions/roundf.texi: Mention the new module.
21710
21711 2010-12-21  Bruno Haible  <bruno@clisp.org>
21712
21713         New module 'truncf-ieee'.
21714         * modules/truncf-ieee: New file.
21715         * m4/truncf.m4 (gl_FUNC_TRUNCF): If gl_FUNC_TRUNCF_IEEE is also used,
21716         test whether truncf works according to ISO C 99 with IEC 60559.
21717         * m4/truncf-ieee.m4: New file.
21718         * lib/math.in.h (truncf): Replace if REPLACE_TRUNCF is set.
21719         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNCF.
21720         * modules/math (Makefile.am): Substitute REPLACE_TRUNCF.
21721         * modules/truncf-ieee-tests: New file.
21722         * tests/test-truncf-ieee.c: New file, based on tests/test-truncf1.c.
21723         * tests/test-truncf1.c (main): Remove signbit tests.
21724         * modules/truncf-tests (Depends-on): Remove 'signbit'.
21725         * doc/posix-functions/truncf.texi: Mention the new module.
21726
21727 2010-12-21  Bruno Haible  <bruno@clisp.org>
21728
21729         New module 'ceilf-ieee'.
21730         * modules/ceilf-ieee: New file.
21731         * m4/ceilf.m4 (gl_FUNC_FLOORF): If gl_FUNC_CEILF_IEEE is also used,
21732         test whether ceilf works according to ISO C 99 with IEC 60559.
21733         * m4/ceilf-ieee.m4: New file.
21734         * modules/ceilf-ieee-tests: New file.
21735         * tests/test-ceilf-ieee.c: New file, based on tests/test-ceilf1.c.
21736         * tests/test-ceilf1.c (main): Remove signbit tests.
21737         * modules/ceilf-tests (Depends-on): Remove 'signbit'.
21738         * doc/posix-functions/ceilf.texi: Mention the new module.
21739
21740 2010-12-21  Bruno Haible  <bruno@clisp.org>
21741
21742         New module 'floorf-ieee'.
21743         * modules/floorf-ieee: New file.
21744         * m4/floorf.m4 (gl_FUNC_FLOORF): If gl_FUNC_FLOORF_IEEE is also used,
21745         test whether floorf works according to ISO C 99 with IEC 60559.
21746         * m4/floorf-ieee.m4: New file.
21747         * modules/floorf-ieee-tests: New file.
21748         * tests/test-floorf-ieee.c: New file, based on tests/test-floorf1.c.
21749         * tests/test-floorf1.c (main): Remove signbit tests.
21750         * modules/floorf-tests (Depends-on): Remove 'signbit'.
21751         * doc/posix-functions/floorf.texi: Mention the new module.
21752
21753 2010-12-21  Bruno Haible  <bruno@clisp.org>
21754
21755         Support for minus zero in autoconf macros.
21756         * m4/minus-zero.m4: New file, based on tests/minus-zero.h.
21757         * m4/signbit.m4 (gl_FLOAT_SIGNBIT_CODE, gl_DOUBLE_SIGNBIT_CODE,
21758         gl_LONG_DOUBLE_SIGNBIT_CODE, gl_FLOATTYPE_SIGNBIT_CODE): New macros.
21759         * tests/minus-zero.h: Update comments.
21760
21761 2010-12-21  Bruno Haible  <bruno@clisp.org>
21762
21763         Tests for module 'ceil'.
21764         * modules/ceil-tests: New file.
21765         * tests/test-ceil1.c: New file, based on tests/test-ceill.c.
21766         * tests/test-ceil2.c: New file, based on tests/test-ceilf2.c.
21767
21768 2010-12-21  Bruno Haible  <bruno@clisp.org>
21769
21770         Tests for module 'floor'.
21771         * modules/floor-tests: New file.
21772         * tests/test-floor1.c: New file, based on tests/test-floorl.c.
21773         * tests/test-floor2.c: New file, based on tests/test-floorf2.c.
21774
21775 2010-12-21  Bruno Haible  <bruno@clisp.org>
21776
21777         math: Fix indentation.
21778         * lib/math.in.h (floorf): Fix indentation.
21779
21780 2010-12-21  Bruno Haible  <bruno@clisp.org>
21781
21782         Fix cross-compilation guesses on Solaris.
21783         * m4/fopen.m4 (gl_FUNC_FOPEN): Correct shell pattern so that it does
21784         not match "solaris2.10".
21785         * m4/open.m4 (gl_FUNC_OPEN): Likewise.
21786         * m4/printf.m4 (gl_SNPRINTF_TRUNCATION_C99, gl_SNPRINTF_DIRECTIVE_N,
21787         gl_VSNPRINTF_ZEROSIZE_C99): Likewise.
21788
21789 2010-12-21  Paul Eggert  <eggert@cs.ucla.edu>
21790
21791         snprintf: port snprintf (NULL, 0, ...) to Solaris 8 and 9
21792         This fixes a problem observed with the latest coreutils snapshot
21793         that caused a test to fail on Solaris 8.  src/csplit.c's call
21794         snprintf (NULL, 0, format, UINT_MAX) returns -1 on Solaris 9 and
21795         earlier, instead of returning the number of bytes that would have
21796         been generated; this causes csplit to incorrectly report memory
21797         exhaustion.
21798         * m4/printf.m4 (gl_SNPRINTF_RETVAL_C99): Also check for
21799         snprintf (NULL, 0, ...) and (for good measure) snprintf (buf, 0, ...).
21800         Guess that it doesn't work on Solaris 2.6 through 9.  Adjust
21801         comments to match.
21802         (gl_PRINTF_SIZES_C99, gl_PRINTF_DIRECTIVE_F, gl_SNPRINTF_RETVAL_C99):
21803         Fix typo in matching older versions of Solaris: "solaris2.10"
21804         is matched by the shell pattern "solaris2.[0-9]*".  This matters
21805         only for guessing while cross-compiling.
21806         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Also check gl_SNPRINTF_RETVAL_C99.
21807
21808 2010-12-20  Paul Eggert  <eggert@cs.ucla.edu>
21809
21810         ftoastr: fix comment again
21811         * lib/ftoastr.h: Fix typo in comment.  Noted by Ben Pfaff in
21812         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00149.html>.
21813         Also, simplify example a bit by using flags = 0.
21814
21815 2010-12-20  Bruno Haible  <bruno@clisp.org>
21816
21817         round*, trunc*: Update documentation regarding glibc.
21818         * doc/posix-functions/roundf.texi: Mention missing declaration problem.
21819         * doc/posix-functions/round.texi: Likewise.
21820         * doc/posix-functions/roundl.texi: Likewise.
21821         * doc/posix-functions/truncf.texi: Likewise.
21822         * doc/posix-functions/trunc.texi: Likewise.
21823         * doc/posix-functions/truncl.texi: Likewise.
21824
21825 2010-12-20  Bruno Haible  <bruno@clisp.org>
21826
21827         roundf, round, roundl: Update documentation regarding OSF/1 5.1.
21828         * doc/posix-functions/roundf.texi: Mention OSF/1 5.1 problem.
21829         * doc/posix-functions/round.texi: Likewise.
21830         * doc/posix-functions/roundl.texi: Likewise.
21831
21832 2010-12-20  Bruno Haible  <bruno@clisp.org>
21833
21834         ttyname_r: Add missing declaration on HP-UX 11.
21835         * lib/unistd.in.h (ttyname_r): Test HAVE_DECL_TTYNAME_R instead of
21836         HAVE_TTYNAME_R.
21837         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Test whether ttyname_r is
21838         declared. Set HAVE_TTYNAME_R always.
21839         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
21840         HAVE_DECL_TTYNAME_R, not HAVE_TTYNAME_R.
21841         * modules/unistd (Makefile.am): Substitute HAVE_DECL_TTYNAME_R, not
21842         HAVE_TTYNAME_R.
21843         * doc/posix-functions/ttyname_r.texi: Document the HP-UX 11 problem.
21844
21845 2010-12-20  Bruno Haible  <bruno@clisp.org>
21846
21847         getlogin, getlogin_r: Document HP-UX 11.11 bugs.
21848         * doc/posix-functions/getlogin.texi: Document HP-UX 11.11 bug.
21849         * doc/posix-functions/getlogin_r.texi: Likewise.
21850         * tests/test-getlogin.c: Include <errno.h>.
21851         (main): Avoid test failure on HP-UX 11.11.
21852         * tests/test-getlogin_r.c (main): Likewise.
21853
21854 2010-12-20  Bruno Haible  <bruno@clisp.org>
21855
21856         getlogin_r: Add missing declaration on HP-UX 11.
21857         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Test whether getlogin_r is
21858         declared also when it exists as a function.
21859         * doc/posix-functions/getlogin_r.texi: Document this workaround.
21860
21861 2010-12-20  Bruno Haible  <bruno@clisp.org>
21862
21863         wcsrtombs: Don't confuse mbstate_t with rpl_mbstate_t.
21864         * lib/wcsrtombs.c: If gnulib overrides mbstate_t, define wcsrtombs
21865         through wcrtomb.
21866
21867 2010-12-19  Paul Eggert  <eggert@cs.ucla.edu>
21868
21869         ftoastr: fix comment
21870         * lib/ftoastr.h: Fix typo in comment.  Noted by Ben Pfaff in
21871         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00130.html>.
21872
21873 2010-12-19  Bruno Haible  <bruno@clisp.org>
21874
21875         isnan: Ensure it is a macro.
21876         * lib/math.in.h (isnan): Define as a macro if not already a macro.
21877         * doc/posix-functions/isnan.texi: Mention problem on IRIX, OSF/1,
21878         Solaris.
21879
21880 2010-12-19  Bruno Haible  <bruno@clisp.org>
21881
21882         ldexpl test: Fix link error on OSF/1 5.1.
21883         * modules/ldexpl-tests (Makefile.am): Define test_ldexpl_LDADD.
21884
21885 2010-12-19  Bruno Haible  <bruno@clisp.org>
21886
21887         wctype: Make it work in C++ mode on OSF/1 5.1.
21888         * lib/wctype.in.h (iswblank): Declare but not define here.
21889         * lib/iswblank.c: New file, extracted from lib/wctype.in.h.
21890         * m4/wctype_h.m4 (gl_WCTYPE_H): Arrange to compile it if needed.
21891         * modules/wctype (Files): Add lib/iswblank.c.
21892
21893 2010-12-19  Bruno Haible  <bruno@clisp.org>
21894
21895         signal: Document problem with type of SIGRTMIN, SIGRTMAX on OSF/1 5.1.
21896         * doc/posix-headers/signal.texi: Document OSF/1 5.1 problem.
21897         * lib/strsignal.c (strsignal): Cast SIGRTMIN to 'int'.
21898
21899 2010-12-19  Bruno Haible  <bruno@clisp.org>
21900
21901         sys_socket: Use POSIX compatible declarations on OSF/1 5.1.
21902         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): On OSF/1, define
21903         _POSIX_PII_SOCKET.
21904         * doc/posix-functions/recv.texi: Document the OSF/1 problem.
21905         * doc/posix-functions/recvfrom.texi: Likewise.
21906         * doc/posix-functions/send.texi: Likewise.
21907         * doc/posix-functions/sendto.texi: Likewise.
21908
21909 2010-12-19  Bruno Haible  <bruno@clisp.org>
21910
21911         tcgetsid: Add missing declaration on OSF/1 5.1.
21912         * lib/termios.in.h (tcgetsid): Test HAVE_DECL_TCGETSID instead of
21913         HAVE_TCGETSID.
21914         * m4/tcgetsid.m4 (gl_FUNC_TCGETSID): Test whether tcgetsid is declared.
21915         Don't set HAVE_TCGETSID.
21916         * m4/termios_h.m4 (gl_TERMIOS_H_DEFAULTS): Initialize
21917         HAVE_DECL_TCGETSID, not HAVE_TCGETSID.
21918         * modules/termios (Makefile.am): Substitute HAVE_DECL_TCGETSID, not
21919         HAVE_TCGETSID.
21920         * doc/posix-functions/tcgetsid.texi: Mention the OSF/1 5.1 problem.
21921
21922 2010-12-19  Bruno Haible  <bruno@clisp.org>
21923
21924         stdio: Fix problem with popen() declaration on OSF/1 5.1.
21925         * lib/stdio.in.h: During the include_next statement, let recursive
21926         includes of this file include only the system header file.
21927
21928 2010-12-19  Bruno Haible  <bruno@clisp.org>
21929
21930         iconv_open: Fix regression from 2010-12-04.
21931         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Fix typo.
21932         Reported by Noah Lavine <noah.b.lavine@gmail.com>.
21933
21934 2010-12-19  Bruno Haible  <bruno@clisp.org>
21935
21936         stdbool test: Avoid a gcc warning.
21937         * tests/test-stdbool.c (main): Fail if e1 is false.
21938         Reported by Jim Meyering.
21939
21940 2010-12-19  Jim Meyering  <meyering@redhat.com>
21941
21942         setenv: restore to working order
21943         $HAVE_SETENV is used in gl_FUNC_SETENV, yet its definitions were
21944         mistakenly removed.
21945         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Restore code to set
21946         HAVE_SETENV.
21947         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Restore code to initialize
21948         HAVE_SETENV.
21949
21950 2010-12-19  Bruno Haible  <bruno@clisp.org>
21951
21952         Document some different function declarations on OSF/1 5.1.
21953         * doc/posix-functions/gai_strerror.texi: Mention different declaration.
21954         * doc/posix-functions/inet_ntop.texi: Likewise.
21955         * doc/posix-functions/gethostname.texi: Likewise.
21956         * lib/unistd.in.h (gethostname): Update comment.
21957
21958 2010-12-19  Bruno Haible  <bruno@clisp.org>
21959
21960         doc: Mention vasprintf-posix module.
21961         * doc/glibc-functions/asprintf.texi: Mention the workarounds present in
21962         the 'vasprintf-posix' module.
21963         * doc/glibc-functions/vasprintf.texi: Likewise.
21964
21965 2010-12-19  Bruno Haible  <bruno@clisp.org>
21966
21967         unsetenv: Add missing declaration on OSF/1 5.1.
21968         * lib/stdlib.in.h (setenv): Test HAVE_DECL_UNSETENV, not HAVE_UNSETENV.
21969         * m4/setenv.m4 (gl_FUNC_UNSETENV): Test whether unsetenv is declared.
21970         Don't set HAVE_UNSETENV. In the test program, set _BSD.
21971         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_DECL_UNSETENV,
21972         not HAVE_UNSETENV.
21973         * modules/stdlib (Makefile.am): Substitute HAVE_DECL_UNSETENV, not
21974         HAVE_UNSETENV.
21975         * doc/posix-functions/unsetenv.texi: Mention the OSF/1 5.1 problem.
21976
21977 2010-12-19  Bruno Haible  <bruno@clisp.org>
21978
21979         setenv: Add missing declaration on OSF/1 5.1.
21980         * lib/stdlib.in.h (setenv): Test HAVE_DECL_SETENV, not HAVE_SETENV.
21981         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Test whether setenv is
21982         declared. Don't set HAVE_SETENV.
21983         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_DECL_SETENV,
21984         not HAVE_SETENV.
21985         * modules/stdlib (Makefile.am): Substitute HAVE_DECL_SETENV, not
21986         HAVE_SETENV.
21987         * doc/posix-functions/setenv.texi: Mention the OSF/1 5.1 problem.
21988
21989 2010-12-19  Bruno Haible  <bruno@clisp.org>
21990
21991         nl_langinfo tests: Avoid gcc warning.
21992         * tests/test-nl_langinfo.c: Don't enable the GCC pragma for GCC 4.2.
21993
21994 2010-12-19  Bruno Haible  <bruno@clisp.org>
21995
21996         mknod: Avoid error in C++ mode on OSF/1 with GCC.
21997         * lib/sys_stat.in.h (mknod): Use _GL_CXXALIAS_SYS_CAST instead of
21998         _GL_CXXALIAS_SYS.
21999
22000 2010-12-19  Bruno Haible  <bruno@clisp.org>
22001
22002         stdbool: Relax test.
22003         * tests/test-stdbool.c (e): Don't require that casts from a variable's
22004         address to 'bool' work in static initializer, for compilers other than
22005         GCC.
22006
22007 2010-12-19  Bruno Haible  <bruno@clisp.org>
22008
22009         ftello: Add missing declaration on OSF/1 5.1.
22010         * lib/stdio.in.h (ftello): Test HAVE_DECL_FTELLO, not HAVE_FTELLO.
22011         * m4/ftello.m4 (gl_FUNC_FTELLO): Test whether ftello is declared.
22012         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_DECL_FTELLO.
22013         * modules/stdio (Makefile.am): Substitute HAVE_DECL_FTELLO.
22014         * doc/posix-functions/ftello.texi: Mention the OSF/1 5.1 problem.
22015
22016 2010-12-19  Bruno Haible  <bruno@clisp.org>
22017
22018         fseeko: Add missing declaration on OSF/1 5.1.
22019         * lib/stdio.in.h (fseeko): Test HAVE_DECL_FSEEKO, not HAVE_FSEEKO.
22020         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Test whether fseeko is declared.
22021         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_DECL_FSEEKO.
22022         * modules/stdio (Makefile.am): Substitute HAVE_DECL_FSEEKO.
22023         * doc/posix-functions/fseeko.texi: Mention the OSF/1 5.1 problem.
22024
22025 2010-12-19  Bruno Haible  <bruno@clisp.org>
22026
22027         fchdir: Add missing declaration on OSF/1 5.1.
22028         * lib/unistd.in.h (fchdir): Provide declaration if systems lacks it.
22029         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Check whether fchdir is declared.
22030         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_DECL_FCHDIR.
22031         * modules/unistd (Makefile.am): Substitute HAVE_DECL_FCHDIR.
22032         * doc/posix-functions/fchdir.texi: Mention the OSF/1 5.1 problem.
22033
22034 2010-12-19  Bruno Haible  <bruno@clisp.org>
22035
22036         relocatable-prog-wrapper: Separate from relocatable-prog.
22037         * modules/relocatable-prog (Makefile.am): Define uninstall-hook and
22038         uninstall-relocwrapper rule here.
22039         * modules/relocatable-prog-wrapper (Makefile.am): ... not here.
22040         Reported by Ian Beckwith <ianb@erislabs.net>.
22041
22042 2010-12-19  Bruno Haible  <bruno@clisp.org>
22043
22044         unistr/u8-mbsnlen: Add missing dependency.
22045         * modules/unistr/u8-mbsnlen (Depends-on): Add unistr/u8-mbtouc.
22046         Reported by Ian Beckwith <ianb@erislabs.net>.
22047
22048 2010-12-19  Bruno Haible  <bruno@clisp.org>
22049
22050         iconv: Make it possible again to use this module without 'iconv-h'.
22051         * modules/iconv (configure.ac): Don't invoke gl_ICONV_MODULE_INDICATOR
22052         if it is not defined.
22053         Reported by Ian Beckwith <ianb@erislabs.net>.
22054
22055 2010-12-18  Paul Eggert  <eggert@cs.ucla.edu>
22056
22057         acl: port to Solaris 8 when copying from tmpfs to ufs
22058         * lib/copy-acl.c (qcopy_acl): Also allow EINVAL as an ignorable
22059         error number.  Problem observed on Solaris 8 with latest
22060         coreutils, with "mv A B", where A is on a tmpfs file system and B
22061         is on a ufs file system.  This caused coreutils' mv/part-symlink
22062         test to fail.
22063
22064         tests: set fail=0 at start
22065         * tests/init.sh (setup_): Move fail=0 initialization here ...
22066         (mktempd_): ... from here, so that tests can rely on fail being
22067         set to 0 initially.  This fixes a problem in coreutils; see:
22068         http://lists.gnu.org/archive/html/coreutils/2010-12/msg00083.html
22069
22070 2010-12-18  Bruno Haible  <bruno@clisp.org>
22071
22072         memmem-simple: Stylistic changes.
22073         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): Avoid possible gcc warning.
22074         Fix preprocessor directive indentation.
22075
22076 2010-12-15  Pádraig Brady <P@draigBrady.com>
22077
22078         memmem, memmem-simple: reorganize and expand empty needle check
22079         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE, gl_FUNC_MEMMEM): Move all
22080         functional checks to memmem-simple so that one has a fully functional
22081         memmem by using just this module.
22082         Restrict the performance only check to the memmem module.
22083         Also expand the empty needle check to ensure the correct
22084         pointer is returned, not just a non NULL pointer.
22085         * doc/glibc-functions/memmem.texi: Rearrange the portability
22086         documentation to correlate with the rearranged checks.
22087         Clarify exactly how the memmem and memmem-simple modules
22088         relate to each other.
22089
22090 2010-12-15  Pádraig Brady <P@draigBrady.com>
22091             Bruno Haible  <bruno@clisp.org>
22092
22093         Improve cross-compilation guesses for uClibc.
22094         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): When cross-compiling, assume
22095         that uClibc does not have the glibc bug.
22096         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Likewise.
22097         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE): Likewise.
22098
22099 2010-12-14  Eric Blake  <eblake@redhat.com>
22100
22101         configmake: provide fallbacks for oldest supported autotools
22102         * m4/configmake.m4: New file.
22103         * modules/configmake (Files): Ship it.
22104         (configure.ac): Use it to guarantee fallbacks.
22105
22106 2010-12-13  Pádraig Brady <P@draigBrady.com>
22107
22108         read-file: Improve handling of large files
22109         * lib/read-file.c (fread_file): Minimize realloc()s
22110         for regular files, and better manage sizes around SIZE_MAX.
22111
22112 2010-12-13  Eric Blake  <eblake@redhat.com>
22113
22114         cloexec, fcntl: relax license
22115         * modules/cloexec (License): Change from LGPLv3+ to LGPLv2+, with
22116         consent from all contributors.
22117         * modules/fcntl (License): Likewise.
22118
22119 2010-12-10  Bruno Haible  <bruno@clisp.org>
22120
22121         Tests for module 'pipe-posix'.
22122         * modules/pipe-posix-tests: New file.
22123         * tests/test-pipe.c: New file, based on tests/test-pipe2.c.
22124
22125 2010-12-10  Bruno Haible  <bruno@clisp.org>
22126
22127         pipe-posix: Make it work in C++ mode.
22128         * lib/unistd.in.h: Don't include <io.h>, <fcntl.h> for pipe.
22129         (pipe): Use common idiom, not a macro definition.
22130         * lib/pipe.c: New file.
22131         * m4/pipe.m4: New file.
22132         * modules/pipe-posix (Description): Enhance.
22133         (Files): Add lib/pipe.c, m4/pipe.m4.
22134         (configure.ac): Invoke gl_FUNC_PIPE.
22135         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_PIPE.
22136         * modules/unistd (Makefile.am): Substitute HAVE_PIPE.
22137         * tests/test-unistd-c++.cc: Check the signature of pipe.
22138
22139 2010-12-10  Bruno Haible  <bruno@clisp.org>
22140
22141         Rename module 'pipe' to 'spawn-pipe'.
22142         * modules/spawn-pipe: New file, renamed from modules/pipe.
22143         (Files, configure.ac, Makefile.am): Update.
22144         (Include): Mention "spawn-pipe.h" instead of "pipe.h".
22145         * modules/pipe: Reduce to an obsolete indirection to 'spawn-pipe'.
22146         * lib/spawn-pipe.h: New file, renamed from lib/pipe.h.
22147         * lib/spawn-pipe.c: New file, renamed from lib/pipe.c. Include
22148         "spawn-pipe.h" instead of "pipe.h".
22149         * m4/spawn-pipe.m4: New file, renamed from m4/pipe.m4. Rename gl_PIPE
22150         to gl_SPAWN_PIPE.
22151         * modules/spawn-pipe-tests: New file, renamed from modules/pipe-tests.
22152         (Files, Makefile.am): Update.
22153         * tests/test-spawn-pipe.sh: New file, renamed from tests/test-pipe.sh.
22154         Update.
22155         * tests/test-spawn-pipe.c: New file, renamed from tests/test-pipe.c.
22156         Include "spawn-pipe.h" instead of "pipe.h".
22157         * lib/csharpcomp.c: Include "spawn-pipe.h" instead of "pipe.h".
22158         * lib/javacomp.c: Likewise.
22159         * lib/javaversion.c: Likewise.
22160         * lib/pipe-filter-gi.c: Likewise.
22161         * lib/pipe-filter-ii.c: Likewise.
22162         * modules/csharpcomp (Depends-on): Add 'spawn-pipe', remove 'pipe'.
22163         * modules/javacomp (Depends-on): Likewise.
22164         * modules/javaversion (Depends-on): Likewise.
22165         * modules/pipe-filter-gi (Depends-on): Likewise.
22166         * modules/pipe-filter-ii (Depends-on): Likewise.
22167         * MODULES.html.sh (Executing programs): Update.
22168         * NEWS: Mention the change.
22169
22170 2010-12-10  Eric Blake  <eblake@redhat.com>
22171
22172         pipe-posix: new module
22173         * modules/pipe-posix: New file.
22174         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set default.
22175         (gl_UNISTD_H): Check for declaration.
22176         * modules/unistd (Makefile.am): Substitute it.
22177         * lib/unistd.in.h (pipe): Provide it for mingw.
22178         * doc/posix-functions/pipe.texi (pipe): Update documentation.
22179         * MODULES.html.sh (File descriptor based Input/Output): Likewise.
22180
22181 2010-12-07  Bruno Haible  <bruno@clisp.org>
22182
22183         unistr/u8-strcmp: Avoid collision with libc function on Solaris 11.
22184         * lib/unistr.in.h (u8_strcmp) [__sun]: Declare with real name
22185         u8_strcmp_gnu.
22186         * modules/unistr/u8-strcmp (configure.ac): Bump version number.
22187
22188 2010-12-06  Bruno Haible  <bruno@clisp.org>
22189
22190         Update internal documentation.
22191         * m4/README: Document new idioms for AC_RUN_IFELSE invocations.
22192
22193 2010-12-04  Bruno Haible  <bruno@clisp.org>
22194
22195         Put more information about failed tests into the test return codes.
22196         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Change test
22197         program so that it returns an enumerated value (0, 1, 2, 3, 4, ...).
22198         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Likewise.
22199         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
22200         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Likewise.
22201         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
22202         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
22203         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
22204         * m4/isapipe.m4 (gl_PREREQ_ISAPIPE): Likewise.
22205         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
22206         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Likewise.
22207         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
22208         * m4/sleep.m4 (gl_FUNC_SLEEP): Likewise.
22209         * m4/stdint.m4 (gl_STDINT_H): Likewise.
22210         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Change test program so that it
22211         returns a bit mask.
22212         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Likewise.
22213         * m4/chown.m4 (gl_FUNC_CHOWN_FOLLOWS_SYMLINK): Likewise.
22214         * m4/dup2.m4 (gl_FUNC_DUP2): Likewise.
22215         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): Likewise.
22216         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): Likewise.
22217         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Likewise.
22218         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
22219         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
22220         * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
22221         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Likewise.
22222         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
22223         * m4/isnanf.m4 (gl_ISNANF_WORKS): Likewise.
22224         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
22225         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Likewise.
22226         * m4/link.m4 (gl_FUNC_LINK): Likewise.
22227         * m4/linkat.m4 (gl_FUNC_LINKAT): Likewise.
22228         * m4/mbrlen.m4 (gl_MBRLEN_RETVAL): Likewise.
22229         * m4/mbrtowc.m4 (gl_MBRTOWC_RETVAL): Likewise.
22230         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
22231         * m4/memchr.m4 (gl_FUNC_MEMCHR): Likewise.
22232         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
22233         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Likewise.
22234         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Likewise.
22235         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
22236         * m4/open.m4 (gl_FUNC_OPEN): Likewise.
22237         * m4/poll.m4 (gl_FUNC_POLL): Likewise.
22238         * m4/popen.m4 (gl_FUNC_POPEN): Likewise.
22239         * m4/printf.m4 (gl_PRINTF_SIZES_C99, gl_PRINTF_LONG_DOUBLE,
22240         gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE,
22241         gl_PRINTF_DIRECTIVE_A, gl_PRINTF_DIRECTIVE_F, gl_PRINTF_DIRECTIVE_LS,
22242         gl_PRINTF_PRECISION): Likewise.
22243         * m4/regex.m4 (gl_REGEX): Likewise.
22244         * m4/rename.m4 (gl_FUNC_RENAME): Likewise.
22245         * m4/rmdir.m4 (gl_FUNC_RMDIR): Likewise.
22246         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Likewise.
22247         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
22248         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
22249         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
22250         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Likewise.
22251         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Likewise.
22252         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
22253         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
22254         * m4/symlink.m4 (gl_FUNC_SYMLINK): Likewise.
22255         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Likewise.
22256         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Likewise.
22257         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Likewise.
22258         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
22259         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
22260         * m4/utimes.m4 (gl_FUNC_UTIMES): Likewise.
22261         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
22262         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
22263         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Likewise.
22264         (gl_FLOATTYPE_SIGN_LOCATION): Change test program so that it returns an
22265         enumerated value.
22266         * m4/acl.m4 (gl_ACL_GET_FILE): Use "if ... return 1; return 0;" style.
22267
22268 2010-12-04  Bruno Haible  <bruno@clisp.org>
22269
22270         Update for Solaris 11 2010-11.
22271         * doc/{glibc,posix}-{functions,headers}: Add info about Solaris 11
22272         Express, released in November 2010.
22273
22274 2010-12-04  Bruno Haible  <bruno@clisp.org>
22275
22276         nproc: Relax license.
22277         * modules/nproc (License): Change to LGPL, with consent by Glen Lenker
22278         and Paul Eggert.
22279         Requested by Ludovic Courtès <ludo@gnu.org>.
22280
22281 2010-12-01  Paul Eggert  <eggert@cs.ucla.edu>
22282
22283         utimecmp: fine-grained src to nearby coarse-grained dest
22284
22285         * lib/utimecmp.c (utimecmp): When UTIMECMP_TRUNCATE_SOURCE is set,
22286         and the source is on a file system with higher-resolution time
22287         stamps, than the destination, and _PC_TIMESTAMP_RESOLUTION does
22288         not work, and the time stamps are close together, the algorithm to
22289         determine the exact resolution from the read-back mtime was buggy:
22290         it had a "!=" where it should have had an "==".  This bug has been
22291         in the code ever since it was introduced to gnulib.
22292         Problem reported by Dan Jacobson in
22293         <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=7529>.
22294
22295 2010-11-30  Bruno Haible  <bruno@clisp.org>
22296
22297         strerror_r-posix: Fix autoconf test.
22298         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Fix typo.
22299
22300 2010-11-28  Bruno Haible  <bruno@clisp.org>
22301             Paul Eggert  <eggert@cs.ucla.edu>
22302
22303         Tests for module 'getdomainname'.
22304         * modules/getdomainname-tests: New file.
22305         * tests/test-getdomainname.c: New file, based on
22306         tests/test-gethostname.c.
22307
22308 2010-11-28  Bruno Haible  <bruno@clisp.org>
22309             Paul Eggert  <eggert@cs.ucla.edu>
22310
22311         getdomainname: Use the system function when possible.
22312         * lib/unistd.in.h: Include <netdb.h>, for getdomainname's declaration.
22313         (getdomainname): Replace if needed. Provide the declaration if it is
22314         missing. Don't use _GL_CXXALIAS_SYS_CAST.
22315         * lib/getdomainname.c: Include <limits.h> and <sys/systeminfo.h>.
22316         (getdomainname): When the system has getdomainname, call the system
22317         function. When sysinfo (SI_SRPC_DOMAIN, ...) is possible, use that.
22318         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Require
22319         gl_HEADER_SYS_SOCKET and gl_HEADER_NETDB. Test whether the function is
22320         found in libnsl. Look for the declaration also in <netdb.h>. Replace
22321         the function if its second argument is of type 'int' or if it is found
22322         in libnsl.
22323         (gl_PREREQ_GETDOMAINNAME): Define HAVE_GETDOMAINNAME. Check for
22324         <sys/systeminfo.h> and sysinfo().
22325         * modules/getdomainname (Depends-on): Add netdb, sys_socket.
22326         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
22327         HAVE_DECL_GETDOMAINNAME and REPLACE_GETDOMAINNAME instead of
22328         HAVE_GETDOMAINNAME.
22329         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETDOMAINNAME and
22330         REPLACE_GETDOMAINNAME instead of HAVE_GETDOMAINNAME.
22331         * doc/glibc-functions/getdomainname.texi: Document the problems with
22332         the getdomainname declaration.
22333
22334 2010-11-28  Bruno Haible  <bruno@clisp.org>
22335
22336         sys_socket: Ensure ss_family field on AIX.
22337         * lib/sys_socket.in.h (ss_family): New macro definition.
22338         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Set
22339         HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY. Set SYS_SOCKET_H if necessary.
22340         (gl_SYS_SOCKET_H_DEFAULTS): Initialize
22341         HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY.
22342         * modules/sys_socket (Makefile.am): Substitute
22343         HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY.
22344         * doc/posix-headers/sys_socket.texi: Mention the AIX bug.
22345
22346 2010-11-27  Bruno Haible  <bruno@clisp.org>
22347
22348         readline: Improve configure output.
22349         * m4/readline.m4 (gl_FUNC_READLINE): Make the
22350         "checking for readline..." result understandable.
22351
22352 2010-11-27  Bruno Haible  <bruno@clisp.org>
22353
22354         *printf-posix: Detect a bug on Solaris 10/x86.
22355         * m4/printf.m4 (gl_PRINTF_PRECISION): Detect crash with large precision
22356         for floating-point output.
22357         * tests/test-vasnprintf-posix.c (test_function): Test precision with %f
22358         directive.
22359         * tests/test-snprintf-posix.h (test_function): Likewise.
22360         * tests/test-sprintf-posix.h (test_function): Likewise.
22361         * tests/test-vasprintf-posix.c (test_function): Likewise.
22362         * doc/posix-functions/fprintf.texi: Mention Solaris/x86 bug.
22363         * doc/posix-functions/printf.texi: Likewise.
22364         * doc/posix-functions/snprintf.texi: Likewise.
22365         * doc/posix-functions/sprintf.texi: Likewise.
22366         * doc/posix-functions/vfprintf.texi: Likewise.
22367         * doc/posix-functions/vprintf.texi: Likewise.
22368         * doc/posix-functions/vsnprintf.texi: Likewise.
22369         * doc/posix-functions/vsprintf.texi: Likewise.
22370         * doc/glibc-functions/obstack_printf.texi: Likewise.
22371         * doc/glibc-functions/obstack_vprintf.texi: Likewise.
22372
22373 2010-11-27  Bruno Haible  <bruno@clisp.org>
22374
22375         Fix link error when module libunistring-optional is in use.
22376         * modules/striconveh-tests (Makefile.am): Link with $(LIBUNISTRING).
22377         * modules/striconveha-tests (Makefile.am): Likewise.
22378
22379 2010-11-27  Bruno Haible  <bruno@clisp.org>
22380
22381         regex: Mention link dependencies.
22382         * modules/regex (Link): New section.
22383         * modules/rpmatch (Link): Likewise.
22384         * modules/regex-quote-tests (Makefile.am): Link with $(LIBINTL).
22385
22386 2010-11-27  Bruno Haible  <bruno@clisp.org>
22387
22388         ftoastr: Fix compilation error on Solaris.
22389         * lib/ftoastr.c: Include <config.h>.
22390
22391 2010-11-27  Bruno Haible  <bruno@clisp.org>
22392
22393         getloadavg: Update documentation.
22394         * doc/glibc-functions/getloadavg.texi: Mention the Solaris problem.
22395
22396 2010-11-27  Bruno Haible  <bruno@clisp.org>
22397
22398         sys_socket: Fix test whether the functions are declared.
22399         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Include <sys/socket.h>,
22400         not <sys/select.h>.
22401
22402 2010-11-27  Bruno Haible  <bruno@clisp.org>
22403
22404         getpass: Make sure to get system declaration on some platforms.
22405         * m4/getpass.m4 (gl_FUNC_GETPASS, gl_FUNC_GETPASS_GNU): Require
22406         gl_USE_SYSTEM_EXTENSIONS.
22407         * modules/getpass (Depends-on): Add extensions.
22408
22409 2010-11-26  Bruno Haible  <bruno@clisp.org>
22410
22411         iconv-h: Fix test-iconv-h-c++ failure on Solaris 11 2010-11.
22412         * lib/iconv.in.h (iconv_open, iconv, iconv_close): Define only if the
22413         'iconv' module is present.
22414         (ICONV_CONST): New macro.
22415         * m4/iconv_h.m4 (gl_ICONV_H_DEFAULTS): Initialize GNULIB_ICONV and
22416         ICONV_CONST.
22417         * m4/iconv.m4 (AM_ICONV): If the gnulib module 'iconv-h' is present,
22418         set ICONV_CONST.
22419         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Don't set ICONV_CONST
22420         here.
22421         * modules/iconv (configure.ac): Invoke gl_ICONV_MODULE_INDICATOR.
22422         * modules/iconv-h (Makefile.am): Substitute GNULIB_ICONV.
22423         * tests/test-iconv-h.c (ICONV_CONST): Don't define here.
22424         * tests/test-iconv-h-c++.cc (ICONV_CONST): Don't define here.
22425         (iconv_open, iconv, iconv_close): Test only if the 'iconv' module is
22426         present.
22427
22428 2010-11-25  Paul Eggert  <eggert@cs.ucla.edu>
22429
22430         ftoastr: comment fix
22431         * lib/ftoastr.c: "little" -> "little or no" in comment
22432
22433 2010-11-24  Paul Eggert  <eggert@cs.ucla.edu>
22434
22435         stdint: port to GCC 4.3 + OSX + Octave
22436         On this platform, stdint.h is buggy and defines int64_t to long
22437         long int.  The replacement defined it to long int, causing
22438         problems with C++ style name mangling.  Instead, trust the system
22439         definition if INT64_MAX is defined, and likewise for the unsigned
22440         variant.   Problem reported by Jarno Rajahalme in
22441         <http://lists.gnu.org/archive/html/bug-gnulib/2010-04/msg00143.html>.
22442         * lib/stdint.in.h (GL_INT64_T): Define if INT64_MAX is defined,
22443         and don't mess with int64_t and INT64_MAX in this case.
22444         (GL_UINT64_T): Likewise for UINT64_MAX and uint64_t.
22445
22446 2010-11-24  Bruno Haible  <bruno@clisp.org>
22447
22448         doc: Corrections regarding MacOS X 10.4 and 10.5.
22449         * doc/{glibc,posix,pastposix}-functions/*.texi: Update info about
22450         MacOS X.
22451         Reported by Simon Josefsson.
22452
22453 2010-11-22  Ben Pfaff  <blp@cs.stanford.edu>
22454
22455         Uninstall ".bin" files installed by relocwrapper.
22456         * modules/relocatable-prog-wrapper (uninstall-relocwrapper):
22457         Recursively run "make uninstall" with ".bin" prefixed to EXEEXT,
22458         unless it is already there.
22459
22460 2010-11-21  Bruno Haible  <bruno@clisp.org>
22461
22462         Update for NetBSD 5.0.
22463         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Don't guess yes on
22464         NetBSD; the test fails on NetBSD 5.0.
22465         * doc/{glibc,posix,pastposix}-{headers,functions}/*.texi: Update info
22466         about NetBSD.
22467
22468 2010-11-21  Bruno Haible  <bruno@clisp.org>
22469
22470         Update for HP-UX 11.23 and HP-UX 11.31.
22471         * doc/{glibc,posix}-{headers,functions}/*.texi: Update info about
22472         HP-UX.
22473
22474 2010-11-21  Bruno Haible  <bruno@clisp.org>
22475
22476         Update for MacOS X 10.5.
22477         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Don't guess yes on
22478         MacOS X; the test fails on MacOS X 10.5.8.
22479         * doc/{glibc,posix,pastposix}-{headers,functions}/*.texi: Update info
22480         about MacOS X.
22481
22482 2010-11-20  Joel E. Denny  <joeldenny@joeldenny.org>
22483
22484         bootstrap: add bootstrap_sync option.
22485         See discussion at
22486         <http://lists.gnu.org/archive/html/bug-gnulib/2010-10/msg00369.html>,
22487         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00200.html>.
22488         * build-aux/bootstrap: Accept --bootstrap-sync to update
22489         bootstrap if it is not identical to the local gnulib's
22490         bootstrap.  Accept bootstrap_sync=true in bootstrap.conf to
22491         enable this by default.  Accept --no-bootstrap-sync to disable
22492         it.
22493
22494 2010-11-20  Bruno Haible  <bruno@clisp.org>
22495
22496         Ensure that <features.h> is included before __GLIBC__ is tested.
22497         * lib/printf-parse.h: Include <features.h>.
22498         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Require gl_FEATURES_H.
22499         Reported by Mike Frysinger <vapier@gentoo.org>.
22500
22501         Ensure that <features.h> is included before __GLIBC__ is tested.
22502         * lib/wchar.in.h: Include <features.h>.
22503         * m4/wchar_h.m4 (gl_WCHAR_H): Require gl_FEATURES_H.
22504         * modules/wchar (Makefile.am): Substitute HAVE_FEATURES_H.
22505         Reported by Mike Frysinger <vapier@gentoo.org>.
22506
22507         Ensure that <features.h> is included before __GLIBC__ is tested.
22508         * lib/arpa_inet.in.h: Include <features.h>.
22509         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Require gl_FEATURES_H.
22510         * modules/arpa_inet (Makefile.am): Substitute HAVE_FEATURES_H.
22511         Reported by Mike Frysinger <vapier@gentoo.org>.
22512
22513         Ensure that <features.h> is included before __GLIBC__ is tested.
22514         * build-aux/link-warning.h: Include <features.h>.
22515         * modules/link-warning (configure.ac): Require gl_FEATURES_H.
22516         (Makefile.am): Substitute HAVE_FEATURES_H into link-warning.h.
22517         Reported by Mike Frysinger <vapier@gentoo.org>.
22518
22519         Ensure that <features.h> is included before __GLIBC__ is tested.
22520         * m4/gnulib-common.m4 (gl_FEATURES_H): New macro.
22521         Reported by Mike Frysinger <vapier@gentoo.org>.
22522
22523 2010-11-20  Bruno Haible  <bruno@clisp.org>
22524
22525         memmem: Fix autoconf test.
22526         * m4/memmem.m4 (gl_FUNC_MEMMEM): Test HAVE_DECL_MEMMEM, not HAVE_MEMMEM.
22527
22528 2010-11-20  Bruno Haible  <bruno@clisp.org>
22529
22530         Port to uClibc.
22531         * build-aux/link-warning.h (GL_LINK_WARNING): Treat uClibc like glibc.
22532         * lib/fcntl.in.h: Likewise.
22533         * lib/hard-locale.c (GLIBC_VERSION): Likewise.
22534         * lib/mbrtowc.c (mbrtowc): Likewise.
22535         * lib/relocatable.c (find_shared_library_fullname): Likewise.
22536         * lib/strerror_r.c: Likewise.
22537         * lib/unistr/u8-strnlen.c: Likewise.
22538         * lib/vasnprintf.c (decimal_point_char): Likewise.
22539         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Likewise.
22540         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Likewise.
22541         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Likewise.
22542         * m4/glibc21.m4 (gl_GLIBC21): Likewise.
22543         * tests/test-sigaction.c (handler, main): Likewise.
22544         * lib/freading.h: Treat uClibc like a non-glibc platform.
22545         * lib/freading.c: Likewise.
22546         * lib/gettext.h: Likewise.
22547         * lib/localename.c (gl_locale_name_thread_unsafe, HAVE_LOCALE_NULL):
22548         Likewise.
22549         * lib/printf-parse.h (FLAG_LOCALIZED): Likewise.
22550         * lib/printf-parse.c (PRINTF_PARSE): Likewise.
22551         * lib/propername.c (proper_name_utf8): Likewise.
22552         * lib/spawn.in.h: Likewise.
22553         * lib/striconv.c (mem_cd_iconv, str_cd_iconv, str_iconv): Likewise.
22554         * lib/striconveh.c (iconveh_open, iconv_carefully, iconv_carefully_1,
22555         mem_cd_iconveh_internal): Likewise.
22556         * lib/striconveha.c (mem_iconveha, str_iconveha): Likewise.
22557         * lib/string.in.h (memchr, memrchr, rawmemchr, strchrnul, strpbrk,
22558         strstr, strcasestr): Likewise.
22559         * lib/unicodeio.c (unicode_to_mb): Likewise.
22560         * lib/uniconv/u16-conv-from-enc.c (UTF16_NAME): Likewise.
22561         * lib/uniconv/u16-conv-to-enc.c (UTF16_NAME): Likewise.
22562         * lib/uniconv/u16-strconv-to-enc.c (UTF16_NAME): Likewise.
22563         * lib/uniconv/u32-conv-from-enc.c (UTF32_NAME): Likewise.
22564         * lib/uniconv/u32-conv-to-enc.c (UTF32_NAME): Likewise.
22565         * lib/uniconv/u32-strconv-to-enc.c (UTF32_NAME): Likewise.
22566         * lib/unistr/u8-stpncpy.c: Likewise.
22567         * lib/vasnprintf.c (VASNPRINTF): Likewise.
22568         * lib/xmalloc.c (HAVE_GNU_CALLOC): Likewise.
22569         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
22570         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
22571         * m4/glibc2.m4 (gt_GLIBC2): Likewise.
22572         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Likewise.
22573         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE, gl_FUNC_MEMMEM): Likewise.
22574         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Likewise.
22575         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE, gl_FUNC_STRCASESTR):
22576         Likewise.
22577         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Likewise.
22578         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
22579         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Likewise.
22580         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
22581         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
22582         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
22583         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
22584         * m4/wchar_h.m4 (gl_WCHAR_H): Likewise.
22585         * tests/test-getopt.h (OPTIND_MIN): Likewise.
22586         * tests/test-striconveha.c (main): Likewise.
22587         * tests/test-vasnprintf-posix.c (test_function): Likewise.
22588         * tests/test-vasnprintf-posix3.c (test_function, main): Likewise.
22589         * doc/posix-functions/getdelim.texi: Mention an uClibc bug.
22590         * doc/posix-functions/getline.texi: Likewise.
22591         Reported by Mike Frysinger <vapier@gentoo.org>.
22592
22593 2010-11-20  Bruno Haible  <bruno@clisp.org>
22594
22595         nproc: Fix condition.
22596         * lib/nproc.c: Test HAVE_PTHREAD_GETAFFINITY_NP, not
22597         HAVE_PTHREAD_AFFINITY_NP.
22598
22599 2010-11-20  Bruno Haible  <bruno@clisp.org>
22600
22601         Fix a comment.
22602         * lib/vasnprintf.c (VASNPRINTF): Fix comment.
22603
22604 2010-11-19  Paul Eggert  <eggert@cs.ucla.edu>
22605
22606         ftoastr: don't assume snprintf
22607         * lib/ftoastr.c (snprintf) [! GNULIB_SNPRINTF_POSIX]:
22608         Implement a subset of snprintf here, by using sprintf safely.
22609         * modules/ftoastr (Depends-on): Remove snprintf.
22610
22611 2010-11-19  Jim Meyering  <meyering@redhat.com>
22612
22613         test-rename.h: fix compilation failure
22614         * tests/test-rename.h (test_rename): Add omitted "}".
22615
22616 2010-11-17  Jim Meyering  <meyering@redhat.com>
22617
22618         maint.mk: add a URL discussing the no-@acronym policy
22619         * top/maint.mk (sc_texinfo_acronym): Add a URL in a comment.
22620
22621 2010-11-18  Paul Eggert  <eggert@cs.ucla.edu>
22622
22623         ftoastr: depend on snprintf, improve comments
22624         * lib/ftoastr.c: Also mention Loitsch's draft.
22625         * lib/ftoastr.h: Require WIDTH to be nonnegative.  This isn't
22626         needed in the current implementation, but it might simplify
22627         speeding up the code later.
22628         * modules/ftoastr: Depend on snprintf; this improves portability.
22629         Suggested by Bruno Haible in the same email.
22630
22631         ftoastr: port to hosts lacking strtof and strtold
22632         Problem reported by Bruno Haible in
22633         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00242.html>.
22634         * lib/ftoastr.c (STRTOF): Define to strtod if in a pre-C99
22635         environment and strtold (and presumably strtof) are not available.
22636         * modules/ftoastr (Files): Add m4/c-strtod.m4.
22637         (configure.ac): Require gl_C99_STRTOLD.
22638
22639 2010-11-18  Bruno Haible  <bruno@clisp.org>
22640
22641         c-strtold: Avoid link error on AIX 7.
22642         * lib/c-strtod.c: Test also HAVE_STRTOD_L or HAVE_STRTOLD_L.
22643         * m4/c-strtod.m4 (gl_C_STRTOD): Test whether strtod_l exists.
22644         (gl_C_STRTOLD): Test whether strtold_l exists.
22645         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
22646
22647 2010-11-17  Paul Eggert  <eggert@cs.ucla.edu>
22648
22649         intprops: new macro INT_BITS_STRLEN_BOUND
22650         * lib/intprops.h (INT_BITS_STRLEN_BOUND): New macro, needed by
22651         ftoastr.h.  This exposes an internal of intprops.h that was formerly
22652         not exposed.  Also, it uses a slightly tighter bound than before;
22653         though this makes no practical difference, we might as well be as
22654         tight as we easily can.
22655
22656         ftoastr: new module, for lossless conversion of floats to short strings
22657         * lib/ftoastr.h, lib/ftoastr.c, lib/dtoastr.c, lib/ldtoastr.c:
22658         * modules/ftoastr: New files.
22659
22660 2010-11-15  Paul Eggert  <eggert@cs.ucla.edu>
22661
22662         bootstrap: port to Solaris sed
22663         * build-aux/bootstrap (get_version): Port to Solaris sed.
22664         See Ralf Wildenhues's note in
22665         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00156.html>.
22666
22667 2010-11-14  Jim Meyering  <meyering@redhat.com>
22668
22669         maint.mk: rename variable: s/noteworthy/gl_noteworthy_news_/
22670         * top/maint.mk (gl_noteworthy_news_): Rename from "noteworthy"
22671         and move definition closer to sole use.
22672
22673 2010-11-13  Jim Meyering  <meyering@redhat.com>
22674
22675         remove autoconf-2.57 work-around requiring AC_PROG_EGREP and AC_PROG_CPP
22676         Now we require at least autoconf-2.59, which means the work-around
22677         is no longer needed.
22678         * m4/alloca.m4 (gl_FUNC_ALLOCA): Remove work-around.
22679         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
22680         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Likewise.
22681         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Likewise.
22682         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
22683
22684 2010-11-13  Bruno Haible  <bruno@clisp.org>
22685
22686         rename, renameat: Avoid test failures at NFS mounted locations.
22687         * tests/test-rename.h (dentry_exists, assert_nonexistent): New
22688         functions.
22689         (test_rename): Use assert_nonexistent.
22690         * tests/test-rename.c: Include <dirent.h>.
22691         * tests/test-renameat.c: Likewise.
22692         Reported by Gary V. Vaughan <gary@gnu.org>.
22693
22694         rename, renameat: Document Linux bug with NFS
22695         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00154.html>.
22696         * doc/posix-functions/rename.texi: Mention the NFS bug on Linux.
22697         * doc/posix-functions/renameat.texi: Likewise.
22698         Suggested by Eric Blake.
22699
22700 2010-11-13  Bruno Haible  <bruno@clisp.org>
22701
22702         rename test: Add comments.
22703         * tests/test-rename.h (test_rename): Add structure and comments.
22704
22705 2010-11-13  Eric Blake  <eblake@redhat.com>
22706
22707         maintainer-makefile: cover a few more files
22708         * top/maint.mk (sc_prohibit_test_double_equal): Also cover shell
22709         scripts generated within C files, for libvirt.
22710
22711 2010-11-13  Bruno Haible  <bruno@clisp.org>
22712
22713         unistr/u8-mbtouc: Improve handling of ill-formed UTF-8 input.
22714         * lib/unistr/u8-mbtouc.c (u8_mbtouc): For an invalid multibyte
22715         character, return the number of bytes that belong together, not always
22716         1.
22717         * lib/unistr/u8-mbtouc-unsafe.c (u8_mbtouc_unsafe): Likewise.
22718         * lib/unistr/u8-mbtouc-aux.c (u8_mbtouc_aux): Likewise.
22719         * lib/unistr/u8-mbtouc-unsafe-aux.c (u8_mbtouc_unsafe_aux): Likewise.
22720         * lib/unistr/u8-mbsnlen.c (u8_mbsnlen): Use u8_mbtouc to determine the
22721         number of bytes of an invalid character.
22722         * tests/unistr/test-u8-mbtouc.c (test_safe_function): New function.
22723         (main): Invoke it.
22724         * tests/unistr/test-u8-mbtouc.h (test_function): Update two test
22725         results.
22726         * tests/unistr/test-u8-mbsnlen.c (main): Test various kinds of
22727         malformed byte sequences.
22728         * modules/unistr/u8-mbtouc (configure.ac): Bump version number.
22729         * modules/unistr/u8-mbtouc-unsafe (configure.ac): Likewise.
22730         * modules/unistr/u8-mbsnlen (configure.ac): Likewise.
22731         Reported by Ben Pfaff and Paolo Bonzini.
22732
22733 2010-11-13  Bruno Haible  <bruno@clisp.org>
22734
22735         openat: Work around glibc bug with fchownat() and empty file names.
22736         * m4/openat.m4 (gl_FUNC_FCHOWNAT_EMPTY_FILENAME_BUG): New macro.
22737         (gl_FUNC_FCHOWNAT): Invoke it.
22738         * lib/fchownat.c (rpl_fchownat): Handle the empty file name specially.
22739         * doc/posix-functions/fchownat.texi: Document the glibc bug.
22740         Reported by Gary V. Vaughan <gary@gnu.org>.
22741
22742 2010-11-13  Bruno Haible  <bruno@clisp.org>
22743
22744         openat: Ensure autoconf macro ordering.
22745         * m4/openat.m4 (gl_FUNC_FCHOWNAT_DEREF_BUG): Require
22746         gl_USE_SYSTEM_EXTENSIONS.
22747         (gl_FUNC_FCHOWNAT): Require gl_UNISTD_H_DEFAULTS.
22748
22749 2010-11-13  Bruno Haible  <bruno@clisp.org>
22750
22751         Update comments.
22752         * lib/unistr/u8-check.c: Update file name in comments.
22753         * lib/unistr/u8-mblen.c: Likewise.
22754         * lib/unistr/u8-prev.c: Likewise.
22755         * lib/unistr/u8-strmblen.c: Likewise.
22756         * lib/unistr/u8-strmbtouc.c: Likewise.
22757
22758 2010-11-13  Jim Meyering  <meyering@redhat.com>
22759
22760         tests: avoid test failure on Solaris 10 due to lack of PATH export
22761         * tests/test-update-copyright.sh: Don't forget to export PATH.
22762
22763         init.sh: ensure that IFS is defined, just in case...
22764         * tests/init.sh (setup_): Ensure that IFS is defined,
22765         so that saving and restoring it works as expected.  This
22766         appears to be useful at least for an old version of dash
22767         from a long time ago (RH 6).  See here for details:
22768         http://thread.gmane.org/gmane.comp.gnu.coreutils.general/436/focus=455
22769
22770         maint.mk: tighten "test a == b" check
22771         * top/maint.mk (sc_prohibit_test_double_equal): Restrict this
22772         test to files that contain something like #!/bin/sh.
22773         Without this, coreutils would get two false positives in
22774         the comments of C source files.
22775
22776 2010-11-12  Eric Blake  <eblake@redhat.com>
22777
22778         bootstrap: fix typo in previous attempt
22779         * build-aux/bootstrap (buildreq): Correct the grouping.
22780         Reported by Paul Eggert.
22781
22782         maintainer-makefile: prohibit test x == x
22783         * top/maint.mk (sc_prohibit_test_double_equal): New rule.
22784         Based on a report by Matthias Bolte.
22785
22786         bootstrap: allow FreeBSD gzip
22787         * build-aux/bootstrap (get_version): Parse FreeBSD gzip version,
22788         which has no '.' and goes to stderr.
22789         * build-aux/bootstrap.conf (buildreq): Improve the sample file.
22790         Reported by Matthias Bolte.
22791
22792         maintainer-makefile: check for i18n setup
22793         * top/maint.mk (sc_bindtextdomain): Check for evidence that _()
22794         will likely work.
22795
22796 2010-11-12  Bruno Haible  <bruno@clisp.org>
22797
22798         sleep, nanosleep: Work around Linux 2.6.9 nanosleep bug.
22799         * lib/sleep.c (rpl_sleep): Split in chunks no larger than 24 days.
22800         * lib/nanosleep.c (nanosleep): Likewise.
22801
22802 2010-11-11  Bruno Haible  <bruno@clisp.org>
22803
22804         fcntl-h: Fix for use of C++ on glibc systems.
22805         * lib/fcntl.in.h: Include <sys/stat.h> before include_next <fcntl.h>
22806         also on glibc systems in C++ mode.
22807         Reported by Gary V. Vaughan <gary@gnu.org>.
22808
22809 2010-11-11  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
22810
22811         mknod: avoid false failure with dash
22812         * m4/mknod.m4 (gl_FUNC_MKNOD): Use portable shell syntax.
22813
22814 2010-11-11  Paul Eggert  <eggert@cs.ucla.edu>
22815
22816         unlink: Fix "is it should" typo in diagnostic.
22817         * m4/unlink.m4 (gl_FUNC_UNLINK): Fix typo, as per Reuben Thomas in
22818         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00106.html>.
22819
22820 2010-11-11  Bruno Haible  <bruno@clisp.org>
22821
22822         Tests for module 'strerror_r-posix'.
22823         * modules/strerror_r-posix-tests: New file.
22824         * tests/test-strerror_r.c: New file.
22825         * tests/test-string-c++.cc: Check the signature of strerror_r.
22826
22827         New module 'strerror_r-posix'.
22828         * lib/string.in.h (strerror_r): New declaration.
22829         * lib/strerror_r.c: New file.
22830         * m4/strerror_r.m4: New file.
22831         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Check for the declaration
22832         of strerror_r.
22833         (gl_HEADER_STRING_H_DEFAULTS): Initialize GNULIB_STRERROR_R,
22834         HAVE_DECL_STRERROR_R, REPLACE_STRERROR_R.
22835         * modules/strerror_r-posix: New file.
22836         * modules/string (Makefile.am): Substitute GNULIB_STRERROR_R,
22837         HAVE_DECL_STRERROR_R, REPLACE_STRERROR_R.
22838         * doc/posix-functions/strerror_r.texi: Mention the new module and the
22839         portability problems.
22840
22841 2010-11-11  Torsten Scheck  <Torsten.Scheck@Leica-Microsystems.com> (tiny change)
22842
22843         * build-aux/pmccabe2html: Fixed a off-by-one error, so last input
22844         line is also considered for output. Quoted function name in shell
22845         command, so temporary files for functions like MyClass::operator()
22846         are removed correctly without errors.
22847
22848 2010-11-09  Bruno Haible  <bruno@clisp.org>
22849
22850         * doc/posix-functions/strerror.texi: List more failing platforms.
22851
22852         * doc/posix-functions/strerror.texi: Add a comment.
22853
22854 2010-11-07  Paul Eggert  <eggert@cs.ucla.edu>
22855
22856         fdopendir: fix bug on MacOS X when low on file descriptors
22857
22858         * lib/fdopendir.c (REPLACE_FCHDIR): #define to 0 if not defined.
22859         (fdopendir_with_dup, fd_clone_opendir): Now have extra CWD arg.
22860         All callers changed.
22861         (fdopendir): Invoke save_cwd at the top level, not after using
22862         multiple dup() calls to use up file descriptors.  Then retry
22863         fdopendir_with_dup.  This avoids failure with EMFILE if FD is 1
22864         less than the maximum number of open file descriptors, because
22865         save_cwd fails with errno == EMFILE.  Problem reported by tsteven4
22866         on Mac OS X 10.6.4 for tar 1.24
22867         <http://lists.gnu.org/archive/html/bug-tar/2010-10/msg00084.html>
22868         <http://lists.gnu.org/archive/html/bug-tar/2010-11/msg00000.html>
22869         and for tar 1.25
22870         <http://lists.gnu.org/archive/html/bug-tar/2010-11/msg00038.html>.
22871
22872 2010-11-07  Bruno Haible  <bruno@clisp.org>
22873
22874         vasnprintf: Support I flag on glibc systems.
22875         * lib/printf-parse.h (FLAG_LOCALIZED): New macro.
22876         * lib/printf-parse.c (PRINTF_PARSE): Handle the 'I' flag.
22877         * lib/vasnprintf.c (VASNPRINTF): Pass the 'I' flag on to the system's
22878         snprintf function.
22879         * tests/test-vasnprintf-posix.c (test_function): Test the 'I' flag on
22880         glibc systems.
22881         * tests/test-vasnprintf-posix3.c: New file.
22882         * modules/vasnprintf-posix-tests (Files): Add it.
22883         (TESTS, check_PROGRAMS): Add test-vasnprintf-posix3.
22884
22885 2010-11-05  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
22886
22887         [html] Fix copy/paste bug: Use unique name for compiler warnings.
22888         * MODULES.html.sh: For compiler warnings, use name
22889         `ansic_ext_compwarn' since `ansic_ext_misc' is already taken.
22890
22891 2010-11-05  Eric Blake  <eblake@redhat.com>
22892
22893         ceil, floor: avoid spurious failure with icc
22894         * tests/test-ceilf2.c (ceilf_reference): Avoid icc's use of DAZ
22895         [denormals-as-zero] when optimizing without -mieee-fp option.
22896         * tests/test-floorf2.c (floorf_reference): Likewise.
22897         * tests/test-ceilf1.c (dummy): New function.
22898         (main): Use it to outsmart icc's optimization.
22899         * tests/test-floorf1.c (dummy, main): Likewise.
22900
22901         tests: require working signbit
22902         * modules/ceilf-tests (Depends-on): Add signbit.
22903         * modules/ceill-tests (Depends-on): Likewise.
22904         * modules/floorf-tests (Depends-on): Likewise.
22905         * modules/floorl-tests (Depends-on): Likewise.
22906         * modules/round-tests (Depends-on): Likewise.
22907         * modules/roundf-tests (Depends-on): Likewise.
22908         * modules/roundl-tests (Depends-on): Likewise.
22909         * modules/trunc-tests (Depends-on): Likewise.
22910         * modules/truncf-tests (Depends-on): Likewise.
22911         * modules/truncl-tests (Depends-on): Likewise.
22912
22913         strtod: work around icc bug
22914         * lib/strtod.c (minus_zero): Define to working value.
22915         (strtod): Use it to avoid icc bug.
22916
22917         copysign: enhance tests
22918         * modules/copysign-tests (Files): Add minus-zero.h.
22919         * tests/test-copysign.c (main): Also test zeros.
22920
22921 2010-11-04  Eric Blake  <eblake@redhat.com>
22922
22923         ceil, floor, round, trunc: enhance tests of -0
22924         * tests/test-ceilf1.c (main): Ensure correct sign of result.
22925         * tests/test-ceill.c (main): Likewise.
22926         * tests/test-floorf1.c (main): Likewise.
22927         * tests/test-floorl.c (main): Likewise.
22928         * tests/test-round1.c (main): Likewise.
22929         * tests/test-roundf1.c (main): Likewise.
22930         * tests/test-roundl.c (main): Likewise.
22931         * tests/test-trunc1.c (main): Likewise.
22932         * tests/test-truncf1.c (main): Likewise.
22933         * tests/test-truncl.c (main): Likewise.
22934
22935 2010-11-04  Eric Blake  <eblake@redhat.com>
22936
22937         frexp, tests: work around ICC bug with -zero
22938         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Compute -0.0 in a way that
22939         works with more compilers.
22940         * tests/minus-zero.h: New file.
22941         * modules/ceilf-tests (Files): Include it.
22942         * modules/ceill-tests (Files): Likewise.
22943         * modules/floorf-tests (Files): Likewise.
22944         * modules/floorl-tests (Files): Likewise.
22945         * modules/frexp-nolibm-tests (Files): Likewise.
22946         * modules/frexp-tests (Files): Likewise.
22947         * modules/frexpl-nolibm-tests (Files): Likewise.
22948         * modules/frexpl-tests (Files): Likewise.
22949         * modules/isnan-tests (Files): Likewise.
22950         * modules/isnand-nolibm-tests (Files): Likewise.
22951         * modules/isnand-tests (Files): Likewise.
22952         * modules/isnanf-nolibm-tests (Files): Likewise.
22953         * modules/isnanf-tests (Files): Likewise.
22954         * modules/isnanl-nolibm-tests (Files): Likewise.
22955         * modules/isnanl-tests (Files): Likewise.
22956         * modules/round-tests (Files): Likewise.
22957         * modules/roundf-tests (Files): Likewise.
22958         * modules/roundl-tests (Files): Likewise.
22959         * modules/ldexpl-tests (Files): Likewise.
22960         * modules/signbit-tests (Files): Likewise.
22961         * modules/snprintf-posix-tests (Files): Likewise.
22962         * modules/sprintf-posix-tests (Files): Likewise.
22963         * modules/strtod-tests (Files): Likewise.
22964         * modules/trunc-tests (Files): Likewise.
22965         * modules/truncf-tests (Files): Likewise.
22966         * modules/truncl-tests (Files): Likewise.
22967         * modules/vsnprintf-posix-tests (Files): Likewise.
22968         * modules/vsprintf-posix-tests (Files): Likewise.
22969         * modules/vasnprintf-posix-tests (Files): Likewise.
22970         * modules/vasprintf-posix-tests (Files): Likewise.
22971         * tests/test-ceilf1.c (main): Use it.
22972         * tests/test-ceill.c (main): Likewise.
22973         * tests/test-floorf1.c (main): Likewise.
22974         * tests/test-floorl.c (main): Likewise.
22975         * tests/test-frexp.c (main): Likewise.
22976         * tests/test-frexpl.c (main): Likewise.
22977         * tests/test-isnan.c (main): Likewise.
22978         * tests/test-isnand.h (main): Likewise.
22979         * tests/test-isnanf.h (main): Likewise.
22980         * tests/test-isnanl.h (main): Likewise.
22981         * tests/test-ldexpl.c (main): Likewise.
22982         * tests/test-round.c (main): Likewise.
22983         * tests/test-roundf.c (main): Likewise.
22984         * tests/test-roundl.c (main): Likewise.
22985         * tests/test-signbit.c (test_signbitf, test_signbitd)
22986         (test_signbitl): Likewise.
22987         * tests/test-snprintf-posix.h (test_function): Likewise.
22988         * tests/test-sprintf-posix.h (test_function): Likewise.
22989         * tests/test-strtod.c (main): Likewise.
22990         * tests/test-trunc1.c (main): Likewise.
22991         * tests/test-truncf1.c (main): Likewise.
22992         * tests/test-truncl.c (main): Likewise.
22993
22994         isnanl: work around icc bug
22995         * lib/isnan.c (FUNC): Compute run-time NaN under ICC as well.
22996
22997 2010-11-03  Eric Blake  <eblake@redhat.com>
22998
22999         tests: fix compiler warnings
23000         * tests/test-getopt.h (test_getopt): Fix condition.
23001         * tests/test-getopt_long.h (test_getopt_long): Likewise.
23002         * tests/test-pipe2.c (main): Likewise.
23003         * tests/test-quotearg-simple.c (main): Avoid icc warning.
23004
23005         utimens: fix broken m4 test
23006         * m4/utimens.m4 (gl_UTIMENS): Include correct headers.
23007
23008 2010-10-28  Bruno Haible  <bruno@clisp.org>
23009
23010         posix_spawn*, getdtablesize: Relax license.
23011         * modules/posix_spawn (License): Change to LGPLv2+.
23012         * modules/posix_spawnp (License): Likewise.
23013         * modules/posix_spawn-internal (License): Likewise.
23014         * modules/posix_spawnattr_init (License): Likewise.
23015         * modules/posix_spawnattr_getflags (License): Likewise.
23016         * modules/posix_spawnattr_setflags (License): Likewise.
23017         * modules/posix_spawnattr_getpgroup (License): Likewise.
23018         * modules/posix_spawnattr_setpgroup (License): Likewise.
23019         * modules/posix_spawnattr_getschedparam (License): Likewise.
23020         * modules/posix_spawnattr_setschedparam (License): Likewise.
23021         * modules/posix_spawnattr_getschedpolicy (License): Likewise.
23022         * modules/posix_spawnattr_setschedpolicy (License): Likewise.
23023         * modules/posix_spawnattr_getsigdefault (License): Likewise.
23024         * modules/posix_spawnattr_setsigdefault (License): Likewise.
23025         * modules/posix_spawnattr_getsigmask (License): Likewise.
23026         * modules/posix_spawnattr_setsigmask (License): Likewise.
23027         * modules/posix_spawnattr_destroy (License): Likewise.
23028         * modules/posix_spawn_file_actions_init (License): Likewise.
23029         * modules/posix_spawn_file_actions_addclose (License): Likewise.
23030         * modules/posix_spawn_file_actions_adddup2 (License): Likewise.
23031         * modules/posix_spawn_file_actions_addopen (License): Likewise.
23032         * modules/posix_spawn_file_actions_destroy (License): Likewise.
23033         * modules/getdtablesize (License): Likewise.
23034         Requested by Adam Stokes <ajs@redhat.com> for use in netcf.
23035
23036 2010-10-26  Bruno Haible  <bruno@clisp.org>
23037
23038         unistd: Refine workaround from 2009-12-23 against Cygwin bug.
23039         * lib/unistd.in.h: Don't include <stdio.h> and <fcntl.h>, except on
23040         Cygwin and mingw.
23041         Suggested by Eric Blake.
23042
23043 2010-10-26  Bruno Haible  <bruno@clisp.org>
23044
23045         stdio: Work around compilation error due to renameat() on Solaris 10.
23046         * lib/stdio.in.h: Include <unistd.h> on Solaris.
23047         * lib/renameat.c: Don't include <unistd.h> here.
23048         * doc/posix-functions/renameat.texi: Mention the Solaris problem.
23049         Reported by Paul Eggert and Eric Blake.
23050
23051 2010-10-26  Paul Eggert  <eggert@cs.ucla.edu>
23052
23053         renameat: port to Solaris 10, which declares renameat in unistd.h
23054
23055         * lib/renameat.c: Include unistd.h before stdio.h, because
23056         Solaris 10 declares renameat in unistd.h.  Problem encountered
23057         when building GNU tar 1.24 on Solaris 10.
23058
23059 2010-10-26  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
23060
23061         fdopendir: fix C89 compilation
23062         * lib/fdopendir.c (fd_clone_opendir): Move declaration for older
23063         compilers.
23064
23065 2010-10-23  Paul Eggert  <eggert@cs.ucla.edu>
23066
23067         inttostr: simplify by removing unnecessary redundancy
23068         * lib/anytostr.c: Don't include verify.h.
23069         (anytostr): Don't verify that TYPE_SIGNED (inttype) equals
23070         inttype_is_signed.  Instead, disable the bogus GCC warnings, so that
23071         there's no need for inttype_is_signed and for calling TYPE_SIGNED.
23072         * lib/imaxtostr.c (inttype_is_signed): Remove; no longer needed.
23073         * lib/inttostr.c, lib/offtostr.c, lib/uinttostr.c, lib/umaxtostr.c:
23074         Likewise.
23075         * modules/inttostr (Depends-on): Remove 'verify'.
23076
23077 2010-10-23  Bruno Haible  <bruno@clisp.org>
23078
23079         nl_langinfo: Mention problem with CRNCYSTR on NetBSD 5.0.
23080         * doc/posix-functions/nl_langinfo.texi: Mention problem with CRNCYSTR.
23081         Reported by Eric Blake.
23082
23083 2010-10-23  Bruno Haible  <bruno@clisp.org>
23084
23085         Tests: Fix LOCALE_JA on MirBSD 10.
23086         * m4/locale-ja.m4 (gt_LOCALE_JA): Reject a locale identifier that leads
23087         to an UTF-8 locale.
23088         * m4/locale-fr.m4 (gt_LOCALE_FR): Likewise.
23089         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
23090         Reported by Eric Blake.
23091
23092 2010-10-21  Bruno Haible  <bruno@clisp.org>
23093
23094         nl_langinfo test: Avoid test failure on NetBSD 5.
23095         * tests/test-nl_langinfo.c (main): Relax test of nl_langinfo(CRNCYSTR).
23096         Reported by Eric Blake.
23097
23098 2010-10-21  Eric Blake  <eblake@redhat.com>
23099
23100         c-stack: work around libsigsegv 2.8 bug
23101         * lib/c-stack.c (SIGSTKSZ): Increase size to avoid alternate stack
23102         overflow on at least PowerPC64.
23103
23104 2010-10-17  Bruno Haible  <bruno@clisp.org>
23105
23106         userspec: Drop redundant file.
23107         * modules/userspec (Files): Remove lib/inttostr.h.
23108
23109 2010-10-17  Bruno Haible  <bruno@clisp.org>
23110
23111         nl_langinfo tests: Silence some warnings.
23112         * tests/test-nl_langinfo.c: Silence -Wtype-limits warnings.
23113         Reported by Jim Meyering.
23114
23115 2010-10-17  Bruno Haible  <bruno@clisp.org>
23116
23117         Make use of GCC's attribute __alloc_size__.
23118         * lib/xalloc.h (ATTRIBUTE_ALLOC_SIZE): New macro.
23119         (xmalloc, xzalloc, xcalloc, xrealloc, xmemdup, xnmalloc, xnrealloc,
23120         xcharalloc): Declare with ATTRIBUTE_ALLOC_SIZE.
23121         * lib/eealloc.h (eemalloc, eerealloc): Declare with attribute
23122         __alloc_size__.
23123         * lib/pagealign_alloc.h (pagealign_alloc, pagealign_xalloc): Likewise.
23124         Suggested by Jim Meyering.
23125
23126 2010-10-16  Joel E. Denny  <joeldenny@joeldenny.org>
23127
23128         bootstrap: anchor .gitignore entries.
23129         * build-aux/bootstrap (insert_sorted_if_absent): Replace all uses
23130         with...
23131         (insert_vc_ignore): ... this new function, which prepends `/' to
23132         all .gitignore entries before passing them to
23133         insert_sorted_if_absent.
23134
23135 2010-10-16  Bruno Haible  <bruno@clisp.org>
23136
23137         nextafter: Fix configure check.
23138         * modules/nextafter (configure.ac): Correct expected prototype.
23139
23140 2010-10-16  Bruno Haible  <bruno@clisp.org>
23141
23142         termios: Update documentation.
23143         * doc/posix-headers/termios.texi: Mention remaining mingw problems.
23144
23145 2010-10-16  Bruno Haible  <bruno@clisp.org>
23146
23147         tests: Make them compile with TinyCC.
23148         * tests/test-strstr.c (main): Remove parentheses around array
23149         initializer.
23150
23151 2010-10-15  Eric Blake  <eblake@redhat.com>
23152
23153         ignore-value: make header idempotent
23154         * lib/ignore-value.h: Add double-inclusion guards.
23155         Reported by Stefan Berger.
23156
23157 2010-10-15  Jim Meyering  <meyering@redhat.com>
23158
23159         GNUmakefile: handle "stable" target, not "major"
23160         * top/GNUmakefile (_is-dist-target): s/major/stable/ to match the
23161         lists in maint.mk and announce-gen.  Without this, "make stable"
23162         would fail to ensure that $(VERSION) is up to date.
23163
23164 2010-10-15  Ludovic Courtès  <ludo@gnu.org>
23165
23166         * lib/isnan.c (FUNC): Treat TinyCC (`__TINYC__') like `__SUNPRO_C'
23167         & co.
23168
23169 2010-10-14  Bruno Haible  <bruno@clisp.org>
23170
23171         vasnprintf: Don't set errno to 0.
23172         * lib/vasnprintf.c (VASNPRINTF): Save and restore errno around the
23173         block that sets it to 0.
23174         Reported by Gianluigi Tiesi <sherpya@netfarm.it>.
23175
23176 2010-10-14  Bruno Haible  <bruno@clisp.org>
23177
23178         socketlib: Fix.
23179         * modules/socketlib (Files): Add m4/sys_socket_h.m4. Needed for
23180         gl_PREREQ_SYS_H_WINSOCK2.
23181         Reported by Ian Beckwith <ianb@erislabs.net>.
23182
23183 2010-10-13  Jim Meyering  <meyering@redhat.com>
23184
23185         test-select-stdin.c: avoid warn_unused_result warnings
23186         * tests/test-select-stdin.c: Include "macros.h".
23187         ASSERT that read and fflush succeed.
23188
23189 2010-10-13  Jim Meyering  <meyering@redhat.com>
23190
23191         git-version-gen: do require git-VC'd files in cwd
23192         * build-aux/git-version-gen: Reject a git version string
23193         if there are no commits associated with the current directory.
23194         This avoids an unlikely false-positive (unrelated dir whose parent
23195         repository also contains a tag matching v*), as pointed out
23196         by Giuseppe Scrivano in
23197         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/21843/focus=23664
23198
23199 2010-10-13  Paul Eggert  <eggert@cs.ucla.edu>
23200
23201         argv-iter: omit nonconforming declaration
23202         * lib/argv-iter.h (enum argv_iter_err): Omit the useless
23203         enum arg_iter_err declaration, which doesn't conform to C99.
23204         Solaris 10 cc warns about this.
23205
23206 2010-10-13  Eric Blake  <eblake@redhat.com>
23207
23208         termios: fix compilation on mingw
23209         * m4/termios_h.m4 (gl_TERMIOS_H_DEFAULTS): Set default.
23210         (gl_TERMIOS_H): Adjust it on mingw.
23211         * modules/termios (Makefile.am): Substitute new key.
23212         * lib/termios.in.h (includes): Make include_next conditional.
23213         * doc/posix-headers/termios.texi (termios.h): Update
23214         documentation.
23215         Reported by Daniel P. Berrange.
23216
23217 2010-10-13  Jim Meyering  <meyering@redhat.com>
23218
23219         git-version-gen: don't require that .git/ be in the current dir
23220         * build-aux/git-version-gen: Adjust this script so that it works
23221         when run from any working directory beneath the top-level .git/-
23222         containing directory.  Inspired by a patch from Giuseppe Scrivano,
23223         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/21843/focus=21847
23224
23225         test-select: avoid warn_unused_result warnings
23226         * tests/test-select.c: Include "macros.h".
23227         ASSERT that each call to read, write, and pipe succeeds.
23228         While not technically required, also check each "close".
23229         * modules/select-tests (Files): Add tests/macros.h.
23230
23231         test-symlinkat: remove declaration of unused local
23232         * tests/test-symlinkat.c (main): Remove unused local, "buf".
23233
23234         test-inttostr: avoid shadowing warnings
23235         * tests/test-inttostr.c (main): Rename local, "buf" to "b",
23236         and use malloc rather than the stack for the same reason as
23237         mentioned in the comment justifying the other allocation.
23238
23239 2010-10-11  Bruno Haible  <bruno@clisp.org>
23240
23241         stdlib: Allow multiple gnulib generated replacements to coexist.
23242         * lib/stdlib.in.h (struct random_data): Avoid identical redefinition.
23243         Reported by Sam Steingold <sds@gnu.org>.
23244
23245 2010-10-11  Jim Meyering  <meyering@redhat.com>
23246
23247         fix a documentation typo
23248         * doc/posix-functions/futimens.texi (futimens): Fix typo: s/itme/item/
23249
23250 2010-10-11  Eric Blake  <eblake@redhat.com>
23251
23252         futimens: work around Solaris 11 bug
23253         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Detect the bug.
23254         * tests/test-futimens.h (test_futimens): Enhance, rather than
23255         weaken test.
23256         * doc/posix-functions/futimens.texi (futimens): Document the bug.
23257
23258 2010-10-11  Paul Eggert  <eggert@cs.ucla.edu>
23259
23260         Indentation.
23261         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Indent
23262         higher-level operators more to the left.
23263
23264 2010-10-11  Jim Meyering  <meyering@redhat.com>
23265
23266         test-futimens: avoid unwarranted test failure on Solaris 5.11
23267         * tests/test-futimens.h (test_futimens): When provoking EBADF, use an
23268         invalid file descriptor, so we don't provoke EFAULT from Solaris 5.11,
23269         because it tries to dereference the NULL name argument.
23270
23271 2010-10-11  Bruno Haible  <bruno@clisp.org>
23272
23273         Indentation.
23274         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Improve
23275         indentation.
23276
23277 2010-10-11  Jim Meyering  <meyering@redhat.com>
23278
23279         spawn.in.h: make indentation consistent with parentheses
23280         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap):
23281         Make indentation consistent with parentheses.
23282
23283 2010-10-11  Gary V. Vaughan  <gary@gnu.org>
23284
23285         Fix mismatched parens in previous commit
23286         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Fix mismatched
23287         parens.
23288
23289 2010-10-10  Paul Eggert  <eggert@cs.ucla.edu>
23290
23291         rewrite int foo[2*X-1] to verify(X) or to int foo[X?1:-1]
23292
23293         * lib/float+.h (verify_sizeof_flt, verify_sizeof_dbl):
23294         (verify_sizeof_ldbl): Rewrite 2*X-1 to X?1:-1.
23295         * lib/malloca.c: Include "verify.h".
23296         (verify1): Remove, replacing with a verify call.
23297         * lib/relocwrapper.c (verify1): Likewise.
23298         * lib/vasnprintf.c (mp_limb_verify, mp_twolimb_verify, TCHAR_T_verify):
23299         Likewise.
23300         * modules/malloca (Depends-on): Add 'verify'.
23301         * modules/relocatable-prog-wrapper (Depends-on): Add 'verify'.
23302         * modules/vasnprintf (Depends-on): Add 'verify'.
23303         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
23304         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
23305         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
23306         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
23307         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
23308         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
23309         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
23310
23311         prefer (X ? 1 : -1) when converting from boolean (1,0) to int (1,-1)
23312
23313         Formerly the style was sometimes 2*X - 1, because the C standard
23314         was wrongly thought to disallow ?: in integral constant expressions.
23315         * lib/inet_ntop.c (verify_int_size): Rewrite 2*X-7 (!) to 4<=X?1:-1.
23316         * lib/signal.in.h (verify_NSIG_constraint): Rewrite 2*X-1 to X?1:-1.
23317         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Likewise.
23318         * lib/stdint.in.h (_verify_intmax_size): Likewise.
23319         * lib/time.in.h (struct __time_t_must_be_integral): Rewrite
23320         2 * ((time_t) 1 / 2 == 0) - 1 to (time_t) 1; this suffices to
23321         verify that time_t cannot be floating.
23322
23323 2010-10-08  Eric Blake  <eblake@redhat.com>
23324
23325         time: enforce recent POSIX ruling that time_t is integral
23326         * lib/time.in.h (__time_t_must_be_integral): Detect any
23327         problematic systems, allowing the rest of gnulib to assume POSIX.
23328
23329 2010-10-08  Jim Meyering  <meyering@redhat.com>
23330
23331         fdopendir: fix a bug on systems lacking openat and /proc support
23332         OpenBSD 4.7 is one such system.  The most noticeable effect was
23333         failure of any application making nontrivial use of fts: rm, du,
23334         chown, chmod etc.  E.g., "mkdir -p a/b; ./rm -rf a" would fail with
23335           ./rm: traversal failed: `a': Bad file descriptor
23336         Debugging that, you see that even though FD 6 was closed just
23337         prior to the opendir call in fd_clone_opendir, its resulting
23338         dir->dd_fd was 8, rather than the expected value of 6:
23339
23340         Breakpoint 3, fdopendir_with_dup (fd=6, older_dupfd=-1) at fdopendir.c:93
23341         93                close (fd);
23342         (gdb) n
23343         94                dir = fd_clone_opendir (dupfd);
23344         (gdb) n
23345         95                saved_errno = errno;
23346         (gdb) p dir->dd_fd
23347         $11 = 8
23348
23349         Notice how it closes FD 6, then gets a DIR* pointer using FD 8.
23350         The problem is that on OpenBSD, fd_clone_opendir has to resort
23351         to using the old-style save/restore CWD mechanism, due to its
23352         lack of openat/proc support, and *that* would steal the FD (6)
23353         that opendir was supposed to use.
23354
23355         The fix is to squirrel away the desired FD so that save_cwd uses a
23356         different one, and then free the dest FD right before calling opendir.
23357         That guarantees opendir will use the required file descriptor.
23358
23359         * lib/fdopendir.c (fd_clone_opendir): Handle the above.
23360
23361 2010-10-08  Bruno Haible  <bruno@clisp.org>
23362
23363         sys_select: Avoid warning due to undeclared memset() on OpenBSD 4.5.
23364         * lib/sys_select.in.h: Include <string.h> also on OpenBSD.
23365
23366 2010-10-08  Bruno Haible  <bruno@clisp.org>
23367
23368         nanosleep: Make replacement POSIX compliant.
23369         * lib/nanosleep.c (nanosleep): Return -1/EINVAL if the delay's tv_nsec
23370         is out of range.
23371         Reported by Jim Meyering.
23372
23373 2010-10-08  Paul Eggert  <eggert@cs.ucla.edu>
23374
23375         bootstrap: add hook for altering gnulib.mk, for Bison
23376         * build-aux/bootstrap (gnulib_mk_hook): New function, so that
23377         the Bison bootstrapping process can rewrite file names and variables
23378         in this file before later parts of 'bootstrap' use the file.
23379         Bison wants to include lib/gnulib.mk from the top-level makefile,
23380         so it needs the file names in this file to be relative to the top
23381         level, not relative to lib; plus it needs variable names to be
23382         rewritten.
23383         (slurp): Use the new function.
23384
23385         bootstrap: reformat for readability
23386         * build-aux/bootstrap: Rewrite to avoid lines longer than 80 columns.
23387
23388 2010-10-08  Eric Blake  <eblake@redhat.com>
23389
23390         docs: update cygwin progress
23391         * doc/posix-functions/cacos.texi (cacos): Added after cygwin
23392         1.7.7.
23393         * doc/posix-functions/cacosf.texi (cacosf): Likewise.
23394         * doc/posix-functions/cacosh.texi (cacosh): Likewise.
23395         * doc/posix-functions/cacoshf.texi (cacoshf): Likewise.
23396         * doc/posix-functions/carg.texi (carg): Likewise.
23397         * doc/posix-functions/cargf.texi (cargf): Likewise.
23398         * doc/posix-functions/casin.texi (casin): Likewise.
23399         * doc/posix-functions/casinf.texi (casinf): Likewise.
23400         * doc/posix-functions/casinh.texi (casinh): Likewise.
23401         * doc/posix-functions/casinhf.texi (casinhf): Likewise.
23402         * doc/posix-functions/catan.texi (catan): Likewise.
23403         * doc/posix-functions/catanf.texi (catanf): Likewise.
23404         * doc/posix-functions/catanh.texi (catanh): Likewise.
23405         * doc/posix-functions/catanhf.texi (catanhf): Likewise.
23406         * doc/posix-functions/ccos.texi (ccos): Likewise.
23407         * doc/posix-functions/ccosf.texi (ccosf): Likewise.
23408         * doc/posix-functions/ccosh.texi (ccosh): Likewise.
23409         * doc/posix-functions/ccoshf.texi (ccoshf): Likewise.
23410         * doc/posix-functions/cexp.texi (cexp): Likewise.
23411         * doc/posix-functions/cexpf.texi (cexpf): Likewise.
23412         * doc/posix-functions/cimag.texi (cimag): Likewise.
23413         * doc/posix-functions/cimagf.texi (cimagf): Likewise.
23414         * doc/posix-functions/clog.texi (clog): Likewise.
23415         * doc/posix-functions/clogf.texi (clogf): Likewise.
23416         * doc/posix-functions/conj.texi (conj): Likewise.
23417         * doc/posix-functions/conjf.texi (conjf): Likewise.
23418         * doc/posix-functions/cpow.texi (cpow): Likewise.
23419         * doc/posix-functions/cpowf.texi (cpowf): Likewise.
23420         * doc/posix-functions/cproj.texi (cproj): Likewise.
23421         * doc/posix-functions/cprojf.texi (cprojf): Likewise.
23422         * doc/posix-functions/creal.texi (creal): Likewise.
23423         * doc/posix-functions/crealf.texi (crealf): Likewise.
23424         * doc/posix-functions/csin.texi (csin): Likewise.
23425         * doc/posix-functions/csinf.texi (csinf): Likewise.
23426         * doc/posix-functions/csinh.texi (csinh): Likewise.
23427         * doc/posix-functions/csinhf.texi (csinhf): Likewise.
23428         * doc/posix-functions/csqrt.texi (csqrt): Likewise.
23429         * doc/posix-functions/csqrtf.texi (csqrtf): Likewise.
23430         * doc/posix-functions/ctan.texi (ctan): Likewise.
23431         * doc/posix-functions/ctanf.texi (ctanf): Likewise.
23432         * doc/posix-functions/ctanh.texi (ctanh): Likewise.
23433         * doc/posix-functions/ctanhf.texi (ctanhf): Likewise.
23434         * doc/posix-headers/complex.texi (complex.h): Likewise.
23435
23436 2010-10-07  Jim Meyering  <meyering@redhat.com>
23437
23438         parse-datetime: avoid compilation failure on OpenBSD 4.7
23439         * lib/parse-datetime.y (_STDLIB_H) [_STDLIB_H_]: Define.
23440         This works around a compilation failure on OpenBSD 4.7:
23441         http://thread.gmane.org/gmane.comp.parsers.bison.bugs/3418
23442
23443 2010-10-07  Eric Blake  <eblake@redhat.com>
23444
23445         docs: update cygwin progress
23446         * doc/glibc-functions/mkostemp.texi (mkostemp): Added in cygwin
23447         1.7.6.
23448         * doc/glibc-functions/mkostemps.texi (mkostemps): Likewise.
23449         * doc/posix-headers/fenv.texi (fenv.h): Added after cygwin 1.7.7.
23450         * doc/posix-functions/feclearexcept.texi (feclearexcept): Likewise.
23451         * doc/posix-functions/fegetenv.texi (fegetenv): Likewise.
23452         * doc/posix-functions/fegetexceptflag.texi (fegetexceptflag):
23453         Likewise.
23454         * doc/posix-functions/fegetround.texi (fegetround): Likewise.
23455         * doc/posix-functions/feholdexcept.texi (feholdexcept): Likewise.
23456         * doc/posix-functions/feraiseexcept.texi (feraiseexcept):
23457         Likewise.
23458         * doc/posix-functions/fesetenv.texi (fesetenv): Likewise.
23459         * doc/posix-functions/fesetexceptflag.texi (fesetexceptflag):
23460         Likewise.
23461         * doc/posix-functions/fesetround.texi (fesetround): Likewise.
23462         * doc/posix-functions/fetestexcept.texi (fetestexcept): Likewise.
23463         * doc/posix-functions/feupdateenv.texi (feupdateenv): Likewise.
23464         * doc/glibc-functions/feenableexcept.texi (feenableexcept):
23465         Likewise.
23466         * doc/glibc-functions/fedisableexcept.texi (fedisableexcept):
23467         Likewise.
23468         * doc/glibc-functions/fegetexcept.texi (fegetexcept): Likewise.
23469
23470         docs: update parse-datetime history
23471         * doc/parse-datetime.texi (Authors of parse_datetime): Better
23472         documentation of this function's history and alternatives.
23473
23474         cygwin: use more robust version check
23475         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE, gl_FUNC_MEMMEM): Don't
23476         exclude an eventual cygwin 1.9.1.
23477         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Likewise.
23478         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE)
23479         (gl_FUNC_STRCASESTR): Likewise.
23480         Reported by Bruno Haible.
23481
23482 2010-10-06  Bruno Haible  <bruno@clisp.org>
23483
23484         string, sys_select: Avoid #including large headers unless necessary.
23485         * lib/string.in.h: Don't include <unistd.h> except on NetBSD.
23486         * lib/sys_select.in.h: Don't include <string.h> except on Solaris,
23487         OSF/1, BeOS, Haiku.
23488         Reported by Jim Meyering.
23489
23490 2010-10-05  Eric Blake  <eblake@redhat.com>
23491
23492         memmem, strstr, strcasestr: fix bug with long periodic needle
23493         * lib/str-two-way.h (two_way_long_needle): Avoid bug with long
23494         periodic needle having false positive.
23495         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): Detect bug in glibc 2.12
23496         and cygwin 1.7.7.
23497         (gl_FUNC_MEMMEM): Be more pessimistic when cross-compiling.
23498         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE)
23499         (gl_FUNC_STRCASESTR): Likewise.
23500         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Likewise.
23501         * tests/test-memmem.c (main): Expose the bug.
23502         * tests/test-strcasestr.c (main): Likewise.
23503         * tests/test-strstr.c (main): Likewise.
23504         * tests/test-c-strcasestr.c (main): Likewise.
23505         * doc/glibc-functions/memmem.texi (memmem): Document the bug.
23506         * doc/posix-functions/strstr.texi (strstr): Likewise.
23507         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
23508         Reported via http://sourceware.org/bugzilla/show_bug.cgi?id=12092
23509
23510 2010-10-05  Paul Eggert  <eggert@cs.ucla.edu>
23511
23512         parse-datetime: do some more renaming
23513         * doc/parse-datetime.texi (Authors of parse_datetime): Call it
23514         parse_datetime, not get_date.  Mention the renaming.
23515         * lib/parse-datetime.y:  Call it parse_datetime, not getdate,
23516         in comments.
23517         * m4/bison.m4: Likewise.
23518
23519 2010-10-05  Eric Blake  <eblake@redhat.com>
23520
23521         parse-datetime: better name than get_date
23522         * NEWS: Reword the deprecation notice.
23523         * modules/get_date: Rename to modules/parse-datetime.
23524         * modules/get_date-tests: Rename to modules/parse-datetime-tests.
23525         * m4/get_date.m4: Rename to m4/parse-datetime.m4.
23526         * lib/get_date.y: Rename to lib/parse-datetime.y.
23527         * tests/test-get_date.c: Rename to tests/test-parse-datetime.c.
23528         * doc/get_date.texi: Rename to doc/parse-datetime.texi.
23529         * doc/getdate.texi: Provide fallback wrapper.
23530         * lib/getdate.h: Move guts, and wrap...
23531         * lib/parse-datetime.h: ...new file.
23532         * lib/parse-datetime.y (get_date): Rename...
23533         (parse_datetime): ...to this.
23534         * m4/parse-datetime.m4 (gl_GET_DATE): Rename...
23535         (gl_PARSE_DATETIME): ...to this.
23536         * doc/posix-functions/getdate.texi (get_date): Provide fallback
23537         documentation.
23538         * modules/getdate (Files): Provide fallback docs and header.
23539         (Notice, Depends-on): Update references.
23540         * tests/test-parse-datetime.c: Likewise.
23541         * DEPENDENCIES: Likewise.
23542         * MODULES.html.sh (Date and time <time.h>): Likewise.
23543         * doc/parse-datetime.texi (Date input formats)
23544         (Authors of parse_datetime): Likewise.
23545         * modules/parse-datetime (Files, configure.ac, Makefile.am)
23546         (Include): Likewise.
23547         * modules/parse-datetime-tests (Files, Makefile.am): Likewise.
23548         * gnulib-tool: Likewise.
23549         * m4/bison.m4 (gl_BISON): Likewise.
23550         Suggested by Bruno Haible.
23551
23552 2010-10-05  Paul Eggert  <eggert@cs.ucla.edu>
23553
23554         more ports to Solaris tr, which needs [] around ranges
23555         * gnulib-tool: Solaris tr needs [] around ranges.
23556         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): Likewise.
23557         * tests/test-pipe-filter-gi1.c (main): Likewise.
23558         * tests/test-pipe-filter-ii1.c (main): Likewise.
23559
23560 2010-10-05  Eric Blake  <eblake@redhat.com>
23561
23562         bootstrap: fix Solaris regression
23563         * build-aux/bootstrap (check_versions): Solaris tr still needs []
23564         around ranges.
23565         Reported by Pádraig Brady.
23566
23567         bootstrap: work with pkg-config
23568         * build-aux/bootstrap (check_versions): Also transliterate - in
23569         prerequisite name.
23570         (print_versions): Be robust to any \ in $buildreq.  Avoid listing
23571         prerequisites that were already found, to avoid confusion.
23572         Reported by Justin Clift.
23573
23574         faccessat: remove unused wrappers
23575         * lib/openat.h (accessat, euidaccesat): Delete, since the mere
23576         presence of these wrappers dragged in -lgen on Solaris.
23577         Reported by Clemens Brogi; fix suggested by Paul Eggert.
23578
23579 2010-10-05  Jim Meyering  <meyering@redhat.com>
23580
23581         tests: require @PRAGMA_COLUMNS@ with each @PRAGMA_SYSTEM_HEADER@
23582         * Makefile (sc_pragma_columns): New syntax-check rule.
23583
23584 2010-10-04  Bruno Haible  <bruno@clisp.org>
23585
23586         gnulib-tool: Synthesize appropriate _LDFLAGS for a libtool library.
23587         * gnulib-tool (func_emit_lib_Makefile_am): When preparing for a libtool
23588         library, put '-no-undefined' and the link dependencies into _LDFLAGS.
23589         Reported by Bruce Korb and Eric Blake.
23590
23591 2010-10-04  Bruno Haible  <bruno@clisp.org>
23592
23593         threadlib: Make option --with-libpth-prefix work.
23594         * m4/threadlib.m4 (gl_THREADLIB_BODY): When testing whether pth works,
23595         use $LIBPTH, not just -lpth.
23596
23597 2010-10-04  Bruno Haible  <bruno@clisp.org>
23598
23599         Avoid line length limitation from HP NonStop system header files.
23600         * m4/include_next.m4 (gl_INCLUDE_NEXT): Define also PRAGMA_COLUMNS.
23601         * lib/arpa_inet.in.h: Use PRAGMA_COLUMNS.
23602         * lib/ctype.in.h: Likewise.
23603         * lib/dirent.in.h: Likewise.
23604         * lib/errno.in.h: Likewise.
23605         * lib/fcntl.in.h: Likewise.
23606         * lib/float.in.h: Likewise.
23607         * lib/getopt.in.h: Likewise.
23608         * lib/iconv.in.h: Likewise.
23609         * lib/inttypes.in.h: Likewise.
23610         * lib/langinfo.in.h: Likewise.
23611         * lib/locale.in.h: Likewise.
23612         * lib/math.in.h: Likewise.
23613         * lib/netdb.in.h: Likewise.
23614         * lib/netinet_in.in.h: Likewise.
23615         * lib/poll.in.h: Likewise.
23616         * lib/pthread.in.h: Likewise.
23617         * lib/pty.in.h: Likewise.
23618         * lib/sched.in.h: Likewise.
23619         * lib/se-selinux.in.h: Likewise.
23620         * lib/search.in.h: Likewise.
23621         * lib/signal.in.h: Likewise.
23622         * lib/spawn.in.h: Likewise.
23623         * lib/stdarg.in.h: Likewise.
23624         * lib/stddef.in.h: Likewise.
23625         * lib/stdint.in.h: Likewise.
23626         * lib/stdio.in.h: Likewise.
23627         * lib/stdlib.in.h: Likewise.
23628         * lib/string.in.h: Likewise.
23629         * lib/strings.in.h: Likewise.
23630         * lib/sys_file.in.h: Likewise.
23631         * lib/sys_ioctl.in.h: Likewise.
23632         * lib/sys_select.in.h: Likewise.
23633         * lib/sys_socket.in.h: Likewise.
23634         * lib/sys_stat.in.h: Likewise.
23635         * lib/sys_time.in.h: Likewise.
23636         * lib/sys_times.in.h: Likewise.
23637         * lib/sys_utsname.in.h: Likewise.
23638         * lib/sys_wait.in.h: Likewise.
23639         * lib/sysexits.in.h: Likewise.
23640         * lib/termios.in.h: Likewise.
23641         * lib/time.in.h: Likewise.
23642         * lib/unistd.in.h: Likewise.
23643         * lib/wchar.in.h: Likewise.
23644         * lib/wctype.in.h: Likewise.
23645         * modules/arpa_inet (Makefile.am): Substitute PRAGMA_COLUMNS.
23646         * modules/ctype (Makefile.am): Likewise.
23647         * modules/dirent (Makefile.am): Likewise.
23648         * modules/errno (Makefile.am): Likewise.
23649         * modules/fcntl-h (Makefile.am): Likewise.
23650         * modules/float (Makefile.am): Likewise.
23651         * modules/getopt-posix (Makefile.am): Likewise.
23652         * modules/iconv-h (Makefile.am): Likewise.
23653         * modules/inttypes (Makefile.am): Likewise.
23654         * modules/langinfo (Makefile.am): Likewise.
23655         * modules/locale (Makefile.am): Likewise.
23656         * modules/math (Makefile.am): Likewise.
23657         * modules/netdb (Makefile.am): Likewise.
23658         * modules/netinet_in (Makefile.am): Likewise.
23659         * modules/poll-h (Makefile.am): Likewise.
23660         * modules/pthread (Makefile.am): Likewise.
23661         * modules/pty (Makefile.am): Likewise.
23662         * modules/sched (Makefile.am): Likewise.
23663         * modules/search (Makefile.am): Likewise.
23664         * modules/selinux-h (Makefile.am): Likewise.
23665         * modules/signal (Makefile.am): Likewise.
23666         * modules/spawn (Makefile.am): Likewise.
23667         * modules/stdarg (Makefile.am): Likewise.
23668         * modules/stddef (Makefile.am): Likewise.
23669         * modules/stdint (Makefile.am): Likewise.
23670         * modules/stdio (Makefile.am): Likewise.
23671         * modules/stdlib (Makefile.am): Likewise.
23672         * modules/string (Makefile.am): Likewise.
23673         * modules/strings (Makefile.am): Likewise.
23674         * modules/sys_file (Makefile.am): Likewise.
23675         * modules/sys_ioctl (Makefile.am): Likewise.
23676         * modules/sys_select (Makefile.am): Likewise.
23677         * modules/sys_socket (Makefile.am): Likewise.
23678         * modules/sys_stat (Makefile.am): Likewise.
23679         * modules/sys_time (Makefile.am): Likewise.
23680         * modules/sys_times (Makefile.am): Likewise.
23681         * modules/sys_utsname (Makefile.am): Likewise.
23682         * modules/sys_wait (Makefile.am): Likewise.
23683         * modules/sysexits (Makefile.am): Likewise.
23684         * modules/termios (Makefile.am): Likewise.
23685         * modules/time (Makefile.am): Likewise.
23686         * modules/unistd (Makefile.am): Likewise.
23687         * modules/wchar (Makefile.am): Likewise.
23688         * modules/wctype (Makefile.am): Likewise.
23689
23690 2010-10-04  Bruno Haible  <bruno@clisp.org>
23691
23692         read-file tests: Avoid a test failure on NonStop Kernel.
23693         * tests/test-read-file.c (main): Don't assume that /etc/resolv.conf is
23694         a regular file.
23695         Reported by Joachim Schmitz <schmitz@hp.com>.
23696
23697 2010-10-03  Bruno Haible  <bruno@clisp.org>
23698
23699         gnulib-tool: Fixes for --create-testdir with --libtool.
23700         * gnulib-tool (func_get_automake_snippet): Don't augment
23701         EXTRA_lib_SOURCES for the pt_chown module, since pt_chown.o goes into
23702         an executable.
23703         (func_create_testdir): Handle module 'alloca' like func_import.
23704         Reported by Bruce Korb <bruce.korb@gmail.com>.
23705
23706 2010-10-03  Paul Eggert  <eggert@cs.ucla.edu>
23707
23708         Avoid some lines longer than 80 characters.
23709         * lib/stdint.in.h: Break long comment lines.
23710         * lib/math.in.h: Likewise.
23711         (_GL_NUM_UINT_WORDS): New macro, for readability.
23712         (gl_signbitf, gl_signbitd, gl_signbitl): Use it.
23713         * lib/stdio.in.h: Break lines in _GL_WARN_ON_USE calls.
23714         * lib/stdlib.in.h: Likewise.
23715         * lib/spawn.in.h: Likewise.
23716         * lib/sys_socket.in.h: Update an URL.
23717         * lib/sys_stat.in.h: Break long line.
23718
23719 2010-10-03  Reuben Thomas  <rrt@sc3d.org>
23720
23721         Improve pmccabe2html.
23722         * build-aux/pmccabe2html: Add CYCLO_SRCS variable, and make
23723         cyclo-$(PACKAGE).html depend on it, so the HTML file is remade
23724         when the sources change. Remove the line in the HTML about "Used
23725         ranges" (which implied that there might be other unused ranges),
23726         rename "Resume" to "Summary" (easier to understand for more users).
23727         * build-aux/pmccabe.css: Removing the dashed dividers, some unused
23728         styles, and some unnecessary blank lines.
23729
23730 2010-10-03  Bruno Haible  <bruno@clisp.org>
23731             Joachim Schmitz  <schmitz@hp.com>  (tiny change)
23732
23733         acl: Add support for ACLs on NonStop Kernel.
23734         * m4/acl.m4 (gl_FUNC_ACL): For Solaris, test for facl(), not for acl().
23735         Check whether the function aclsort() exists.
23736         * lib/acl-internal.h: For Solaris, test HAVE_FACL, not HAVE_ACL.
23737         (acl_nontrivial) [HAVE_ACLSORT]: New declaration.
23738         * lib/file-has-acl.c: For Solaris, test HAVE_FACL, not HAVE_ACL.
23739         (acl_nontrivial [HAVE_ACLSORT]: New function.
23740         (file_has_acl): Implement for NonStop Kernel.
23741         * lib/set-mode-acl.c: For Solaris, test HAVE_FACL, not HAVE_ACL.
23742         (qset_acl): Implement for NonStop Kernel.
23743         * lib/copy-acl.c (qcopy_acl): Implement for NonStop Kernel.
23744         * tests/test-sameacls.c: For Solaris, test HAVE_FACL, not HAVE_ACL.
23745         (main): Implement for NonStop Kernel.
23746         * tests/test-file-has-acl.sh (acl_flavor): Set to 'nsk' on NonStop
23747         Kernel. Handle this flavor.
23748         * tests/test-set-mode-acl.sh: Likewise.
23749         * tests/test-copy-acl.sh: Likewise.
23750         * tests/test-copy-file.sh: Likewise.
23751
23752 2010-10-03  Bruno Haible  <bruno@clisp.org>
23753
23754         Info about ACLs on NonStop Kernel.
23755         * doc/acl-resources.txt: Add info about NonStop Kernel.
23756         References by Joachim Schmitz <schmitz@hp.com>.
23757
23758 2010-10-02  Bruno Haible  <bruno@clisp.org>
23759
23760         Define missing EDQUOT on NonStop Kernel.
23761         * lib/errno.in.h (EDQUOT): Assign a value if missing.
23762         * lib/strerror.c (rpl_strerror): Handle missing EDQUOT.
23763         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Also test whether EDQUOT is
23764         missing.
23765         * doc/posix-headers/errno.texi: Mention the NSK bug.
23766         * doc/posix-functions/strerror.texi: Mention the workaround on NSK.
23767         Reported by Joachim Schmitz <schmitz@hp.com>.
23768
23769 2010-10-02  Bruno Haible  <bruno@clisp.org>
23770
23771         Update doc for POSIX:2008.
23772         * doc/posix-headers/*.texi [except ucontext.texi, sys_timeb.texi]:
23773         Update URL of POSIX specification.
23774
23775 2010-10-02  Bruno Haible  <bruno@clisp.org>
23776
23777         gnulib-tool: In testdirs, use the newest available config.{guess.sub}.
23778         * gnulib-tool (func_create_testdir): Use config.guess and config.sub
23779         from gnulib, not from Automake.
23780
23781 2010-10-02  Bruno Haible  <bruno@clisp.org>
23782
23783         New module 'system-posix'.
23784         * modules/system-posix: New file.
23785         * lib/stdlib.in.h: Include <sys/wait.h> only when the 'system-posix'
23786         module is present.
23787         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
23788         GNULIB_SYSTEM_POSIX.
23789         * modules/stdlib (Depends-on): Remove sys_wait.
23790         (Makefile.am): Substitute GNULIB_SYSTEM_POSIX.
23791         * doc/posix-functions/system.texi: Mention the new module.
23792         * doc/posix-headers/stdlib.texi: Likewise.
23793         * tests/test-stdlib.c: If GNULIB_TEST_SYSTEM_POSIX is not defined,
23794         define test_sys_wait_macros to a no-op.
23795         Reported by Sam Steingold <sds@gnu.org>.
23796
23797 2010-09-30  Bruno Haible  <bruno@clisp.org>
23798
23799         More renaming from 'getdate' to 'get_date'.
23800         * doc/get_date.texi: Renamed from doc/getdate.texi.
23801         * modules/get_date (Files): Update.
23802         * MODULES.html.sh (Date and time <time.h>): Update.
23803         * DEPENDENCIES: Update.
23804         * gnulib-tool: Update comment.
23805         * m4/bison.m4 (gl_BISON): Likewise.
23806         * m4/get_date.m4 (gl_GET_DATE): Likewise.
23807
23808 2010-09-30  Justin Clift  <jclift@redhat.com>  (tiny change)
23809
23810         bootstrap: support ACLOCAL_FLAGS during aclocal
23811         * build-aux/bootstrap (aclocal): Honor ACLOCAL_FLAGS, so the user
23812         can add additional -I dir for third-party .m4 files.
23813
23814 2010-09-30  Eric Blake  <eblake@redhat.com>
23815
23816         bootstrap: use glibtoolize on MacOS
23817         * build-aux/bootstrap (check_versions): Convert libtool into
23818         libtoolize.
23819         (tool search): Move libtool check earlier, and look for
23820         glibtoolize for MacOS.
23821         (gnulib_tool_options): Auto-add --libtool when appropriate.
23822         Reported by Justin Clift.
23823
23824         poll: fix typo that broke test on MacOS
23825         * m4/poll.m4 (gl_FUNC_POLL): Add missing test.
23826         Reported by Justin Clift.
23827
23828         getdate: rename to get_date
23829         Note: getdate.h is not renamed, to minimize client impact.
23830         * modules/getdate: Mark obsolete.  Move old contents...
23831         * modules/get_date: ...to new module name.
23832         * modules/getdate-tests: Move...
23833         * modules/get_date-tests: ...here.
23834         * m4/getdate.m4: Move...
23835         * m4/get_date.m4: ...here, and rename gl_GETDATE to gl_GET_DATE.
23836         * lib/getdate.y: Move...
23837         * lib/get_date.y: ...here.
23838         * tests/test-getdate.c: Move...
23839         * tests/test-get_date.c: ...here.
23840         * doc/posix-functions/getdate.texi (getdate): Update name.
23841         * NEWS: Mention the change.
23842
23843 2010-09-29  Bruno Haible  <bruno@clisp.org>
23844
23845         Separate the module 'waitpid' from the module 'sys_wait'.
23846         * lib/sys_wait.in.h (waitpid): Declare only if the 'waitpid' module is
23847         present.
23848         * m4/sys_wait_h.m4 (gl_SYS_WAIT_MODULE_INDICATOR): Invoke
23849         gl_MODULE_INDICATOR_FOR_TESTS.
23850         (gl_SYS_WAIT_H_DEFAULTS): Initialize GNULIB_WAITPID.
23851         * modules/sys_wait (Depends-on): Remove waitpid.
23852         (Makefile.am): Substitute GNULIB_WAITPID.
23853         * modules/waitpid (configure.ac): Invoke gl_SYS_WAIT_MODULE_INDICATOR.
23854         * tests/test-sys_wait-c++.cc (GNULIB_NAMESPACE::waitpid): Check the
23855         signature only if the 'waitpid' module is present.
23856         * doc/posix-functions/waitpid.texi: Mention the 'waitpid' module.
23857         * NEWS: Mention the change.
23858         * modules/grantpt (Depends-on): Add waitpid.
23859         * modules/wait-process (Depends-on): Likewise.
23860
23861 2010-09-29  Bruno Haible  <bruno@clisp.org>
23862
23863         More tests for module 'sys_wait'.
23864         * modules/sys_wait-c++-tests: New file.
23865         * tests/test-sys_wait-c++.cc: New file.
23866         * modules/sys_wait-tests (Depends-on): Add sys_wait-c++-tests.
23867         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>.
23868
23869 2010-09-29  Bruno Haible  <bruno@clisp.org>
23870
23871         New module 'waitpid'.
23872         * lib/waitpid.c: New file, extracted from lib/sys_wait.in.h.
23873         * lib/sys_wait.in.h: Include <sys/types.h>, c++defs.h, warn-on-use.h.
23874         Don't include <process.h>.
23875         (waitpid): Declare only, using modern idiom.
23876         * m4/waitpid.m4: New file.
23877         * m4/sys_wait_h.m4 (gl_SYS_WAIT_H): Check whether waitpid is declared.
23878         * modules/waitpid: New file.
23879         * modules/sys_wait (Depends-on): Add c++defs, warn-on-use, waitpid.
23880         (Makefile.am): Update.
23881         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>.
23882
23883 2010-09-28  Bruno Haible  <bruno@clisp.org>
23884
23885         poll: Assume ANSI C.
23886         * lib/poll.c (poll): Use an ANSI C declaration.
23887
23888 2010-09-28  Bruno Haible  <bruno@clisp.org>
23889
23890         poll-h: Create poll.h on all platforms.
23891         * lib/poll.in.h: Use double-inclusion guard. Don't define POLL*,
23892         struct pollfd, nfds_t, INFTIM when the system has <poll.h>.
23893         * m4/poll_h.m4 (gl_POLL_H): Set HAVE_POLL_H. Invoke
23894         gl_CHECK_NEXT_HEADERS. Don't set POLL_H.
23895         (gl_REPLACE_POLL_H): Don't set POLL_H.
23896         (gl_POLL_H_DEFAULTS): Don't initialize POLL_H.
23897         * modules/poll-h (Depends-on): Add include_next.
23898         (Makefile.am): Create poll.h unconditionally. Substitute also
23899         HAVE_POLL_H, INCLUDE_NEXT, PRAGMA_SYSTEM_HEADER, NEXT_POLL_H.
23900
23901 2010-09-28  Bruno Haible  <bruno@clisp.org>
23902
23903         Tests for module 'poll-h'.
23904         * modules/poll-h-c++-tests: New file.
23905         * tests/test-poll-h-c++.cc: New file.
23906
23907         Tests for module 'poll-h'.
23908         * modules/poll-h-tests: New file.
23909         * tests/test-poll-h.c: New file.
23910
23911 2010-09-28  Bruno Haible  <bruno@clisp.org>
23912
23913         poll-h: Ensure POLL{RD,WR}{NORM,BAND} are defined on glibc platforms.
23914         * modules/poll-h (Depends-on): Add 'extensions'.
23915
23916 2010-09-28  Bruno Haible  <bruno@clisp.org>
23917
23918         New module 'poll-h'.
23919         * lib/poll.in.h: Include c++defs.h and warn-on-use.h.
23920         (poll): Use modern idiom.
23921         * modules/poll-h: New file.
23922         * modules/poll (Files): Remove lib/poll.in.h.
23923         (Depends-on): Add poll-h.
23924         (configure.ac): Invoke gl_POLL_MODULE_INDICATOR.
23925         (Makefile.am): Move code for generation of poll.h to modules/poll-h.
23926         * m4/poll_h.m4: New file.
23927         * m4/poll.m4 (gl_FUNC_POLL): Require gl_POLL_H. Don't check for poll.h
23928         here. Don't set POLL_H here. Instead, set HAVE_POLL and REPLACE_POLL
23929         and invoke gl_REPLACE_POLL_H.
23930         * lib/poll.c: Use common idiom.
23931         * tests/test-poll.c: Likewise.
23932         * doc/posix-headers/poll.texi: Mention the poll-h module.
23933         Suggested by Eric Blake.
23934
23935 2010-09-26  Bruno Haible  <bruno@clisp.org>
23936
23937         sys_wait: Implement WSTOPSIG.
23938         * lib/sys_wait.in.h (WSTOPSIG): New macro.
23939         Reported by Simon Josefsson.
23940
23941 2010-09-26  Simon Josefsson  <simon@josefsson.org>
23942
23943         stdlib, sys_wait: Avoid compilation error on mingw.
23944         * lib/sys_wait.in.h: Include <signal.h>, for SIGTERM.
23945
23946 2010-09-26  Bruno Haible  <bruno@clisp.org>
23947
23948         stdlib tests: Avoid code duplication.
23949         * modules/stdlib-tests (Files): Add tests/test-sys_wait.h.
23950         * modules/sys_wait-tests (Files): Likewise.
23951         * tests/test-sys_wait.h: New file, extracted from tests/test-stdlib.c.
23952         * tests/test-stdlib.c: Include test-sys_wait.h.
23953         (main): Invoke test_sys_wait_macros.
23954         * tests/test-sys_wait.c: Include test-sys_wait.h.
23955         (main): Invoke test_sys_wait_macros.
23956
23957 2010-09-25  Simon Josefsson  <simon@josefsson.org>
23958
23959         * modules/getaddrinfo (Depends-on): Depend on the sockets module.
23960         * lib/getaddrinfo.c (use_win32_p): Call gl_sockets_startup to make
23961         sure Windows sockets are working before calling getaddrinfo.
23962         * tests/test-getaddrinfo.c (main): Don't call WSAStartup here.
23963         * doc/gnulib.texi (Windows sockets): Fix typo.
23964
23965 2010-09-25  Bruno Haible  <bruno@clisp.org>
23966
23967         Tests for module 'regex-quote'.
23968         * modules/regex-quote-tests: New file.
23969         * tests/test-regex-quote.c: New file.
23970
23971         New module 'regex-quote'.
23972         * lib/regex-quote.h: New file.
23973         * lib/regex-quote.c: New file.
23974         * modules/regex-quote: New file.
23975         Suggested by Reuben Thomas <rrt@sc3d.org>.
23976
23977 2010-09-24  Bruno Haible  <bruno@clisp.org>
23978
23979         unistr/u8-strchr: Fix a test failure on i586 glibc systems.
23980         * tests/unistr/test-strchr.h (test_strchr): Disable an invalid check.
23981
23982 2010-09-23  Bruno Haible  <bruno@clisp.org>
23983
23984         setenv: Relax license.
23985         * modules/setenv (License): Change to LGPLv2+, with consent by Eric
23986         Blake.
23987         Requested by Eric Blake.
23988
23989 2010-09-22  Bruno Haible  <bruno@clisp.org>
23990
23991         termios: Relax license.
23992         * modules/termios (License): Change to LGPLv2+.
23993         Requested by Eric Blake.
23994
23995 2010-09-22  Bruno Haible  <bruno@clisp.org>
23996
23997         threadlib: Allow the package to change the default to 'no'.
23998         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): When
23999         gl_THREADLIB_DEFAULT_NO is defined, change the default to 'no'.
24000         Reported by Paul Eggert.
24001
24002 2010-09-22  Pádraig Brady  <P@draigbrady.com>
24003             Bruno Haible  <bruno@clisp.org>
24004
24005         Fix endless loop in mbmemcasecoll.
24006         * lib/mbmemcasecoll.c (apply_towlower): When mbrtowc returns 0, copy 1
24007         byte.
24008         * tests/test-mbmemcasecmp.h (test_ascii): Test embedded NULs.
24009
24010 2010-09-22  Bruno Haible  <bruno@clisp.org>
24011
24012         Tests for module 'memcoll'.
24013         * modules/memcoll-tests: New file.
24014         * tests/test-memcoll.c: New file, based on tests/test-memcmp.c.
24015
24016         memcoll, xmemcoll: Clarify size vs. length.
24017         * modules/memcoll.c (memcoll0): Clarify specification.
24018         * modules/xmemcoll.c (xmemcoll0): Likewise. Reduce by 1 the lengths
24019         passed to collate_error.
24020
24021 2010-09-22  Bruno Haible  <bruno@clisp.org>
24022
24023         Tests for module 'memcasecmp'.
24024         * modules/memcasecmp-tests: New file.
24025         * tests/test-memcasecmp.c: New file, based on tests/test-memcmp.c.
24026
24027 2010-09-22  Paul Eggert  <eggert@cs.ucla.edu>
24028
24029         * lib/pthread.in.h: Add split double-inclusion guard, and include
24030         system <pthread.h> if there is one.  Use @@-style as in other
24031         .in.h files.  Define PTHREAD_COND_INITIALIZER etc. only if system
24032         pthread.h doesn't.
24033         (pthread_mutexattr_destroy, pthread_mutexattr_init):
24034         (pthread_mutexattr_settype, pthread_mutex_trylock):
24035         New static inline functions, if there's no system <pthread.h>.
24036         (pthread_spinlock_t, pthread_spin_init, pthread_spin_destroy):
24037         (pthread_spin_lock, pthread_spin_trylock, pthread_spin_unlock):
24038         Approximate with mutexes if the system lacks spinlocks, as in
24039         MacOS.
24040         * m4/pthread.m4 (gl_PTHREAD_CHECK): Require gl_PTHREAD_DEFAULTS.
24041         Add gl_CHECK_NEXT_HEADERS for pthread.h, and support the usual
24042         @@-style.  Check for spinlocks separately.
24043         (gl_PTHREAD_DEFAULTS): New macro.
24044         * modules/pthread: Redo to use a more typical style for in.h files.
24045
24046 2010-09-21  Eric Blake  <eblake@redhat.com>
24047
24048         net_if: enhance tests
24049         * tests/test-net_if.c (main): Move signature checks earlier.
24050         Print failures to stderr.
24051         * doc/posix-functions/if_freenameindex.texi (if_freenameindex):
24052         Document the bug that we do not yet fix.
24053
24054 2010-09-21  Reuben Thomas  <rrt@sc3d.org>
24055
24056         * doc/gnulib.texi (Out of memory handling): Rewrite section to be
24057         about gnulib, not GSS.
24058
24059 2010-09-21  Reuben Thomas  <rrt@sc3d.org>
24060
24061         * build-aux/pmccabe2html: Look for sources in src/ instead of lib/.
24062         * build-aux/pmccabe2html: Set cut_dir properly, and add mode line
24063         for Emacs.
24064         * build-aux/pmccabe2html: Make Makefile.am example code more
24065         cut-and-paste friendly.
24066
24067 2010-09-21  Simon Josefsson  <simon@josefsson.org>
24068
24069         * tests/test-net_if.c: New file.
24070         * modules/net_if-tests: New file.
24071
24072 2010-09-20  Paul Eggert  <eggert@cs.ucla.edu>
24073
24074         pthread: add pthread_spin_destroy
24075         * lib/pthread.in.h (pthread_spin_destroy): New function.
24076
24077 2010-09-19  Bruno Haible  <bruno@clisp.org>
24078
24079         gnulib-tool: Fix --help output.
24080         * gnulib-tool (func_usage): Fix help message.
24081         Reported by Reuben Thomas <rrt@sc3d.org>.
24082
24083 2010-09-18  Jim Meyering  <meyering@redhat.com>
24084
24085         maint.mk: avoid unexpanded \n in two diagnostics
24086         * top/maint.mk (sc_prohibit_always_true_header_tests):
24087         Don't use a literal \n in a halt=... assignment.  It would not be
24088         expanded, and the two \n bytes would appear in the diagnostic output
24089         rather than the desired newline.  Use halt=$$(printf ... instead.
24090         (sc_vulnerable_makefile_CVE-2009-4029): Likewise.
24091
24092 2010-09-18  Bruno Haible  <bruno@clisp.org>
24093
24094         netinet_in: Doc tweak.
24095         * doc/posix-headers/netinet_in.texi: Mention an affected platform.
24096         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
24097
24098 2010-09-18  Jim Meyering  <meyering@redhat.com>
24099
24100         init.sh: correct an outdated comment
24101         * tests/init.sh (create_exe_shims_):  s/function/alias/
24102
24103         init.sh: don't let an ephemeral "*.exe" make us skip all dir entries
24104         * tests/init.sh (find_exe_basenames_): Don't give up on a directory if
24105         a file named "*.exe" is removed between the glob expansion and the
24106         processing of that oddly named file.
24107
24108 2010-09-17  Eric Blake  <eblake@redhat.com>
24109
24110         mirbsd: add some more support
24111         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): MirBSD is
24112         in BSD family.
24113         * m4/gc-random.m4 (gl_GC_RANDOM): MirBSD supports same random
24114         devices as OpenBSD.
24115         * m4/host-os.m4 (mirbsd): Add MirBSD.
24116
24117         tests: fix unportable assumption on sys/wait.h
24118         * tests/test-sys_wait.c (main): Relax test.
24119         * tests/test-stdlib.c (main): Likewise.
24120
24121         init.sh: accomodate directory with no .exes
24122         * tests/init.sh: Accomodate directory containing only scripts.
24123
24124         tests: avoid compiler warning
24125         * tests/test-stdlib.c (main): Use the variable.
24126
24127         fdutimens, fdutimensat: update signature, again
24128         * lib/utimens.h (gl_futimens): Delete, and move signature...
24129         (fdutimens): ...here.
24130         (fdutimensat): Rearrange signature.
24131         (lutimensat): Rename variable for clarity.
24132         * lib/fdutimensat.c (fdutimensat): Update signature.
24133         * lib/utimens.c (fdutimens): Likewise.
24134         (gl_futimens): Delete.
24135         (utimens, lutimens): Update callers.
24136         * lib/futimens.c (futimens): Likewise.
24137         * tests/test-fdutimensat.c: Likewise.
24138         * tests/test-utimens.c: Likewise.
24139         * tests/test-futimens.h: Update comment.
24140         * NEWS: Mention this.
24141         Suggested by Paul Eggert.
24142
24143 2010-09-17  Bruno Haible  <bruno@clisp.org>
24144
24145         Take over the maintenance of some older macros from Autoconf.
24146         * m4/error.m4 (AC_FUNC_ERROR_AT_LINE): New macro, from GNU Autoconf.
24147         * m4/lstat.m4 (AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): New macro, from
24148         GNU Autoconf.
24149         * m4/memcmp.m4 (AC_FUNC_MEMCMP): New macro, from GNU Autoconf.
24150         * m4/mktime.m4 (AC_FUNC_MKTIME): Change comment.
24151
24152 2010-09-17  Eric Blake  <eblake@redhat.com>
24153
24154         fdutimensat: drop atflag validation
24155         * lib/fdutimensat.c (fdutimensat): Allow AT_SYMLINK_NOFOLLOW even
24156         with valid fd, to close a race scenario where futimens is
24157         unsupported and FILE was replaced by a symlink.
24158         * tests/test-fdutimensat.c (do_fdutimens, main): Adjust test
24159         accordingly.
24160         Suggested by Paul Eggert.
24161
24162 2010-09-16  Bruno Haible  <bruno@clisp.org>
24163
24164         unlockpt: Fix declaration within GNULIB_POSIXCHECK.
24165         * lib/stdlib.in.h (unlockpt): Fix warning declaration.
24166
24167 2010-09-16  Bruno Haible  <bruno@clisp.org>
24168
24169         login_tty: Fix detection of function on FreeBSD, OpenBSD, NetBSD.
24170         * m4/pty.m4 (gl_FUNC_LOGIN_TTY): Augment LIBS while checking whether
24171         login_tty exists.
24172         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
24173
24174 2010-09-16  Bruno Haible  <bruno@clisp.org>
24175
24176         login_tty: Make the replacement code work on BSD systems.
24177         * lib/login_tty.c: Include <sys/ioctl.h>.
24178         (login_tty): Use ioctl TIOCSCTTY when available.
24179         * modules/login_tty (Depends-on): Add sys_ioctl.
24180         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
24181
24182 2010-09-16  Bruno Haible  <bruno@clisp.org>
24183
24184         login_tty: Stricter unit test.
24185         * modules/login_tty-tests (Depends-on): Add tcgetsid.
24186         * tests/test-login_tty.c (main): Also check the results of tcgetpgrp()
24187         and tcgetsid() after login_tty.
24188         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
24189
24190 2010-09-16  Bruno Haible  <bruno@clisp.org>
24191
24192         New module 'tcgetsid'.
24193         * lib/tcgetsid.c: New file.
24194         * m4/tcgetsid.m4: New file.
24195         * modules/tcgetsid: New file.
24196         * modules/termios (Depends-on): Add c++defs, warn-on-use.
24197         (Makefile.am): Ensure c++defs.h, warn-on-use.h get included. Substitute
24198         GNULIB_TCGETSID, HAVE_TCGETSID.
24199         * lib/termios.in.h: Include <sys/types.h>.
24200         (tcgetsid): New declaration.
24201         * m4/termios_h.m4 (gl_TERMIOS_H): Check whether tcgetsid is declared.
24202         (gl_TERMIOS_H_DEFAULTS): Initialize GNULIB_TCGETSID, HAVE_TCGETSID.
24203         * doc/posix-functions/tcgetsid.texi: Mention the new module.
24204         * tests/test-termios-c++.cc: Check GNULIB_NAMESPACE::tcgetsid.
24205
24206 2010-09-16  Bruno Haible  <bruno@clisp.org>
24207
24208         Tests for module 'termios'.
24209         * modules/termios-c++-tests: New file.
24210         * modules/termios-tests: New file.
24211         * tests/test-termios-c++.cc: New file.
24212         * tests/test-termios.c: New file.
24213
24214         New module 'termios'.
24215         * modules/termios: New file.
24216         * lib/termios.in.h: New file.
24217         * m4/termios_h.m4: New file.
24218         * doc/posix-headers/termios.texi: Mention the new module.
24219
24220 2010-09-16  Eric Blake  <eblake@redhat.com>
24221
24222         fdutimensat: add an atflag parameter
24223         * lib/fdutimensat.c (fdutimensat): Add new parameter.
24224         * lib/utimens.h (fdutimensat): Update prototype.
24225         * tests/test-fdutimensat.c: Adjust test to match.
24226         * NEWS: Document the change.
24227         Suggested by Paul Eggert.
24228
24229 2010-09-16  Bruno Haible  <bruno@clisp.org>
24230
24231         Fix typos in comments.
24232         * lib/striconveh.h: Fix typo in comment.
24233         * lib/login_tty.c (login_tty): Likewise.
24234
24235 2010-09-15  Bruno Haible  <bruno@clisp.org>
24236
24237         stdlib: clarify MirBSD WEXITSTATUS bug
24238         * lib/stdlib.in.h: Clarify the MirBSD bug regarding WEXITSTATUS.
24239         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
24240
24241 2010-09-15  Eric Blake  <eblake@redhat.com>
24242
24243         stdlib: work around MirBSD WEXITSTATUS bug
24244         * lib/stdlib.in.h (includes): Guarantee WEXITSTATUS.
24245         * modules/stdlib (Depends-on): Add sys_wait.
24246         * tests/test-sys_wait.c (main): Enhance test.
24247         * tests/test-stdlib.c (main): Likewise.
24248         * doc/posix-headers/stdlib.texi (stdlib.h): Document the bug.
24249
24250         docs: mention MacOS issue with WEXITSTATUS(constant)
24251         * doc/posix-headers/sys_wait.texi (sys/wait.h): Document the
24252         issue.
24253         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
24254
24255         strnlen: add tests
24256         * modules/strnlen-tests: New file.
24257         * tests/test-strnlen.c: Likewise.
24258
24259 2010-09-14  Bruno Haible  <bruno@clisp.org>
24260
24261         unistr/base: Avoid link errors when module 'libunistring' is also used.
24262         * lib/unistr.in.h (u8_mbtouc_unsafe, u16_mbtouc_unsafe,
24263         u32_mbtouc_unsafe, u8_mbtouc, u16_mbtouc, u32_mbtouc, u8_mbtoucr,
24264         u16_mbtoucr, u32_mbtoucr, u8_uctomb_aux, u16_uctomb_aux, u32_uctomb):
24265         Declare also when HAVE_LIBUNISTRING is set.
24266         Reported by Pádraig Brady <P@draigbrady.com>.
24267
24268 2010-09-14  Eric Blake  <eblake@redhat.com>
24269
24270         test-rawmemchr: make more robust
24271         * modules/rawmemchr-tests (Files): Add zerosize-ptr.h, mmap-anon.m4.
24272         (Depends-on, configure.ac): Add needed prerequisites to use it.
24273         * modules/memchr-tests (Files, Depends-on, configure.ac):
24274         Likewise, to avoid implicit reliance on memchr module prereqs.
24275         * tests/test-memchr.c (main): Ensure proper masking.
24276         * tests/test-rawmemchr.c (main): Likewise.  Detect oversized
24277         reads.
24278
24279         memchr: detect glibc Alpha bug
24280         Avoids http://sourceware.org/bugzilla/show_bug.cgi?id=12019.
24281         * m4/memchr.m4 (gl_FUNC_MEMCHR): Detect glibc 2.11.2 failure on
24282         Alpha.
24283         * doc/posix-functions/memchr.texi (memchr): Tweak wording.
24284         * tests/test-memchr.c (main): Enhance test.
24285         Reported by Nelson H. F. Beebe.
24286
24287 2010-09-13  Paul Eggert  <eggert@cs.ucla.edu>
24288
24289         fts, getcwd, glob: audit for dirfd returning -1
24290         * lib/fts.c (opendir): Remove #define; no longer used.
24291         (opendirat): New arg PDIR_FD.  All callers changed.
24292         (fts_build, _opendir2): Use new opendirat to avoid the need for
24293         dirfd, or for checking whether dirfd returns a negative value.
24294         Don't use opendir; always use openat followed by fdopendir.
24295         * lib/getcwd.c (__getcwd): Don't reset fd; fdopendir no longer clobbers
24296         it.
24297         * lib/glob.c (link_exists_p): Add comment explaining why dirfd never
24298         returns -1 here.
24299         * modules/fts (Depends-on): Remove dirfd.
24300         * modules/getcwd (Depends-on): Likewise.
24301
24302 2010-09-13  Eric Blake  <eblake@redhat.com>
24303
24304         float: fix broken MirBSD header
24305         * m4/float_h.m4 (gl_FLOAT_H): MirBSD copied OpenBSD's bug.
24306         * doc/posix-headers/float.texi (float.h): Document it.
24307
24308 2010-09-13  Paul Eggert  <eggert@cs.ucla.edu>
24309
24310         fts: use O_NOFOLLOW to avoid race condition when opening a directory
24311         * lib/fts.c (opendirat): New arg extra_flags.
24312         (__opendir2): Use it to avoid following symlinks when opening
24313         a directory, if symlinks are not supposed to be followed.  See
24314         <http://lists.gnu.org/archive/html/bug-gnulib/2010-09/msg00213.html>.
24315
24316         fdopendir: preserve argument fd before returning
24317         * lib/fdopendir.c: Adjust comments to say POSIX, not Solaris.
24318         (fdopendir_with_dup, fd_clone_opendir): New static functions.
24319         (fdopendir): Use them, arranging for FD to be open to the same
24320         directory that it was when it started.  (It might be temporarily
24321         closed while fdopendir is running, so this not thread- or
24322         signal-safe.)  Be careful to do the right thing even when file
24323         descriptors are scarce and dup fails with errno == EMFILE.  See
24324         <http://lists.gnu.org/archive/html/bug-gnulib/2010-09/msg00208.html>.
24325
24326 2010-09-10  Paolo Bonzini  <bonzini@gnu.org>
24327
24328         regex: Pass the system regex if its only problem is 32-bit regoff_t.
24329         * NEWS: Document change.
24330         * m4/regex.m4: Disable test for regoff_t size.
24331
24332 2010-09-13  Jim Meyering  <meyering@redhat.com>
24333
24334         fts: don't operate on an invalid file descriptor after failed dup
24335         * lib/fts.c (fts_build): Don't call set_cloexec_flag on a
24336         negative file descriptor.
24337
24338 2010-09-12  Paul Eggert  <eggert@cs.ucla.edu>
24339
24340         savedir: add streamsavedir, deprecate fdsavedir
24341         * NEWS: Mention deprecation of fdsavedir.
24342         * lib/savedir.c (streamsavedir): New extern function, whose name
24343         ends in "savedir" to be consistent with the others.  This differs
24344         from savedirstream in that it doesn't close its argument.  The
24345         next version of GNU tar will use this instead of fdsavedir, to
24346         avoid some race conditions and conserve file descriptors.
24347         (savedirstream): Reimplement as a wrapper around streamsavedir.
24348         (fdsavedir): Add a comment deprecating this function.  As far as
24349         I know, only GNU tar used it, and GNU tar doesn't need it any more.
24350         * lib/savedir.h (streamsavedir): New decl.
24351         (fdsavedir): Add a comment deprecating this.
24352
24353 2010-09-10  Bruno Haible  <bruno@clisp.org>
24354
24355         langinfo: Fix last commit.
24356         * m4/langinfo_h.m4 (gl_LANGINFO_H): Initialize
24357         HAVE_LANGINFO_T_FMT_AMPM, HAVE_LANGINFO_YESEXPR.
24358         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
24359
24360 2010-09-10  Bruno Haible  <bruno@clisp.org>
24361
24362         relocatable-prog-wrapper: Fix compilation failure due to O_EXEC.
24363         * lib/progreloc.c (O_EXEC): Define fallback.
24364
24365 2010-09-10  Paul Eggert  <eggert@cs.ucla.edu>
24366
24367         fcntl-h: define O_CLOEXEC and O_EXEC if not defined; use new defines
24368         * NEWS: Document recent changes to fcntl-h.
24369         * doc/posix-headers/fcntl.texi (fcntl.h): Document that
24370         O_CLOEXEC is now defined to 0 if it is not defined, like other flags.
24371         Also, O_EXEC is now defined to be O_RDONLY if O_EXEC is not defined.
24372         Similarly for O_SEARCH; this last was already true, but not documented.
24373         * lib/fcntl.in.h (O_CLOEXEC): Define to 0 if not defined.
24374         * lib/dup-safer-flag.c (O_CLOEXEC): Remove now-useless #define.
24375         * lib/dup3.c, lib/pipe2.c, tests/test-dup-safer.c, tests/test-fcntl.c:
24376         Likewise.
24377         * lib/popen-safer.c (open_noinherit): Check whether O_CLOEXEC
24378         is zero, not whether it is defined.
24379         * tests/test-dup3.c, tests/test-pipe2.c (main): Likewise.
24380         * lib/progreloc.c (find_executable): Use O_EXEC rather than O_RDONLY.
24381         * lib/open.c (open): Check for O_SEARCH as well as for O_RDONLY.
24382
24383 2010-09-10  Bruno Haible  <bruno@clisp.org>
24384
24385         langinfo, nl_langinfo: Fix for IRIX 5.3.
24386         * m4/langinfo_h.m4 (gl_LANGINFO_H): Test whether langinfo.h defines
24387         T_FMT_AMPM, YESEXPR. Set HAVE_LANGINFO_T_FMT_AMPM,
24388         HAVE_LANGINFO_YESEXPR.
24389         * modules/langinfo (Makefile.am): Substitute HAVE_LANGINFO_T_FMT_AMPM,
24390         HAVE_LANGINFO_YESEXPR.
24391         * lib/langinfo.in.h (T_FMT_AMPM, GNULIB_defined_T_FMT_AMPM): Define if
24392         HAVE_LANGINFO_T_FMT_AMPM is 0.
24393         (YESEXPR, NOEXPR, GNULIB_defined_YESEXPR): Define if
24394         HAVE_LANGINFO_YESEXPR is 0.
24395         * lib/nl_langinfo.c (rpl_nl_langinfo): Handle also T_FMT_AMPM, YESEXPR,
24396         NOEXPR.
24397         * doc/posix-headers/langinfo.texi: Mention the IRIX 5.3 problem.
24398         * doc/posix-functions/nl_langinfo.texi: Likewise.
24399         Reported by Eric Blake.
24400
24401 2010-09-10  Bruno Haible  <bruno@clisp.org>
24402
24403         pty, readutmp: Fix for FreeBSD 8.0 and OpenBSD 4.6.
24404         * doc/glibc-functions/login_tty.texi: Mention the include file problem
24405         on FreeBSD 8.0 and OpenBSD 4.6.
24406         * lib/pty.in.h: Include <sys/types.h> before <libutil.h>.
24407         * m4/pty_h.m4 (gl_PTY_H): Likewise.
24408         * m4/pty.m4 (gl_FUNC_FORKPTY, gl_FUNC_OPENPTY): Likewise.
24409         * m4/readutmp.m4 (gl_READUTMP): Include <sys/types.h> before <utmp.h>.
24410         Invoke AC_INCLUDES_DEFAULT instead of using the undocumented variable
24411         ac_includes_default.
24412         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
24413
24414 2010-09-09  Eric Blake  <eblake@redhat.com>
24415
24416         strsignal: work around NetBSD bug
24417         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Also check in <unistd.h>.
24418         * lib/string.in.h (includes): Likewise.
24419         * doc/posix-functions/strsignal.texi (strsignal): Document the
24420         bug.
24421         Reported by Nelson H. F. Beebe.
24422
24423         gnulib-tool: work with NetBSD /bin/sh
24424         * gnulib-tool (func_cache_var, func_cache_lookup_module)
24425         (func_get_description, func_get_comment, func_get_status)
24426         (func_get_notice, func_get_applicability, func_get_filelist)
24427         (func_get_dependencies, func_get_autoconf_early_snippet)
24428         (func_get_autoconf_snippet, func_get_automake_snippet)
24429         (func_get_include_directive, func_get_link_directive)
24430         (func_get_license, func_get_maintainer, func_import): Avoid
24431         shell syntax errors from parsing syntax extensions.
24432
24433 2010-09-09  Bruno Haible  <bruno@clisp.org>
24434
24435         gnulib-tool: Avoid stderr output on IRIX related to 'alias', 'unalias'.
24436         * gnulib-tool: Don't fiddle with file descriptors 0, 1, 2. Instead, use
24437         a reliable way to determine whether the 'alias' command works.
24438
24439 2010-09-08  Jim Meyering  <meyering@redhat.com>
24440
24441         init.sh: penalize a set-x-impaired shell; don't disqualify it
24442         * tests/init.sh: Too many shells corrupt application stderr when
24443         you set -x, so we can't afford to disqualify them, since at least
24444         on Irix-6.5, that would disqualify all bourne shells.
24445         Instead, use a two-pass approach.
24446         On the first pass, try to find a shell that meets the stricter
24447         condition that set -x does not corrupt stderr.
24448         If no shell meets the stricter condition, retest each candidate
24449         shell, but without that extra condition.  Finally, when
24450         VERBOSE=yes is requested and set -x might cause trouble, simply
24451         issue a warning and refrain from enabling debug output.
24452
24453 2010-09-08  Eric Blake  <eblake@redhat.com>
24454
24455         unsetenv: fix OpenBSD bug
24456         * m4/setenv.m4 (gl_FUNC_UNSETENV): Check for OpenBSD bug.
24457         * doc/posix-functions/unsetenv.texi (unsetenv): Update
24458         documentation.
24459         Reported by Jim Meyering.
24460
24461         strtod: work around IRIX 6.5 bug
24462         * lib/strtod.c (strtod): Reparse number on shorter string if
24463         exponent parse was invalid.
24464         * tests/test-strtod.c (main): Add check for "0x1p 2".
24465         Reported by Tom G. Christensen.
24466
24467         getopt: optimize previous patch
24468         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Correctly check for
24469         empty variable.  Speed up awk script.
24470         Reported by Paolo Bonzini.
24471
24472 2010-09-08  Jim Meyering  <meyering@redhat.com>
24473
24474         test.sh: disqualify shells for which set -x corrupts stderr
24475         * tests/init.sh: Add a test to disqualify /bin/sh from SunOS 5.11
24476         and OpenBSD 4.7.  They make it so with "set -x", environment settings
24477         appear in stderr output.  For example, this command:
24478             /bin/sh -c 'set -x; P=1 true 2> err' 2>/dev/null; cat err
24479         prints "P=1" on those two systems:
24480
24481 2010-09-08  Bruno Haible  <bruno@clisp.org>
24482
24483         gnulib-tool: Avoid stderr output on IRIX related to 'alias', 'unalias'.
24484         * gnulib-tool: Use stderr redirection around the 'alias' and 'unalias'
24485         commands, because some shells ignore redirections when there is an
24486         error in the command lookup.
24487         Reported by Eric Blake.
24488
24489 2010-09-07  Reuben Thomas  <rrt@sc3d.org>
24490
24491         * lib/regex.h: Fix a mention of `regex_compile' (should be
24492         `re_compile_pattern').
24493         Correct and clarify documentation for RE_CONTEXT_INVALID_DUP.
24494         (re_set_registers): Correct name of parameter in comment.
24495
24496         * doc/regex.texi: Add documentation for missing syntax flags.
24497         Remove commented-out documentation of defunct syntax option
24498         RE_NO_EMPTY_ALTS.
24499         Correct name of RE_CHAR_CLASSES in one incorrect occurrence.
24500         Add documentation of re_set_registers.
24501         Document trick to re-use a pattern buffer by setting fastmap manually.
24502         Update documentation of struct re_pattern_buffer per public members.
24503         Uncomment documentation of equivalence class operators and
24504         collating symbol operators, since they are now implemented,
24505         Explain leftmost-longest matching in relation to alternatives.
24506         Tidy documentation of substring matching.
24507         Remove POSIX documentation, which is done better in
24508         glibc, and refer the reader there. Keep BSD API documentation, as
24509         that is not readily available elsewhere.
24510
24511 2010-09-07  Eric Blake  <eblake@redhat.com>
24512
24513         getopt: handle POSIXLY_CORRECT set but not exported
24514         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Restore pre-existing
24515         export state of POSIXLY_CORRECT, due to bash set -o posix.
24516         Reported by Dustin J. Mitchell.
24517
24518 2010-09-05  Bruno Haible  <bruno@clisp.org>
24519
24520         gnulib-tool: Highlight the changed options.
24521         * gnulib-tool (func_usage): Display the --import, --add-import,
24522         --remove-import explanations in bold font.
24523
24524 2010-09-06  Karl Berry  <karl@gnu.org>
24525
24526         * doc/gnulib-tool.texi (Modified imports): doc tweaks.
24527
24528 2010-09-05  Bruno Haible  <bruno@clisp.org>
24529
24530         uniwidth/width: Update comment.
24531         * lib/uniwidth/width.c (uc_width): Update comment for Unicode >= 3.1.
24532         Reported by Emanuele Giaquinta <emanuele.giaquinta@gmail.com>.
24533
24534 2010-09-05  Bruno Haible  <bruno@clisp.org>
24535
24536         isinf, isnan: Relax license.
24537         * modules/isinf (License): Change from GPL to LGPL, with consent from
24538         Ben Pfaff.
24539         * modules/isnan (License): Likewise.
24540         Requested by Ludovic Courtès.
24541
24542 2010-09-04  Bruno Haible  <bruno@clisp.org>
24543
24544         gnulib-tool: Help migration from --import to --add-import or --update.
24545         * gnulib-tool: Emit a verbose error message when --import is used
24546         without any module name.
24547
24548 2010-09-04  Bruno Haible  <bruno@clisp.org>
24549
24550         Update doc about gnulib-tool.
24551         * doc/gnulib-tool.texi (VCS Issues): Explain 'gnulib-tool --import' vs.
24552         'gnulib-tool --update' in more detail.
24553         Reported by Eric Blake.
24554
24555 2010-09-04  Bruno Haible  <bruno@clisp.org>
24556
24557         gnulib-tool: Change --import. New options --add/remove-import.
24558         * gnulib-tool: New options --add-import, --remove-import.
24559         (func_usage): Document them.
24560         (have_associative): Define always.
24561         (func_import): In import mode, don't merge the specified settings with
24562         the cached settings. Implement remove-import mode.
24563         * doc/gnulib-tool.texi (Modified imports): Mention the new options.
24564         Explain when to use them versus --import.
24565         (Simple update): Use --add-import instead of --import.
24566         * NEWS: Mention the change.
24567
24568 2010-09-04  Bruno Haible  <bruno@clisp.org>
24569
24570         * doc/gnulib-tool.texi (Initial import): Update paragraph about
24571         separate gnulib.mk.
24572
24573 2010-09-04  Bruno Haible  <bruno@clisp.org>
24574
24575         gnulib-tool: Don't talk about CVS any more.
24576         * gnulib-tool (func_usage, func_import): Write "version control"
24577         instead of CVS.
24578
24579 2010-09-04  Jim Meyering  <meyering@redhat.com>
24580
24581         maint.mk: avoid obscure sc_copyright_check failure in coreutils
24582         * top/maint.mk (v_etc_file): Prepend $(gnulib_dir)/, to avoid
24583         false positives (whose names may be ill-chosen) when searching
24584         non-VC'd files.  Otherwise, a file named "a b/lib/version-etc.c"
24585         would cause a false-positive.
24586
24587         avoid coreutils "make distcheck" failure
24588         Coreutils tests with an absolute build directory name that contains
24589         a space.  Not quoting this directory name caused a failure.
24590         * tests/test-vc-list-files-git.sh: Quote PATH dir name.
24591         * tests/test-vc-list-files-cvs.sh: Likewise.
24592
24593 2010-09-04  Bruno Haible  <bruno@clisp.org>
24594
24595         gnulib-tool: Avoid error when run in a package without Makefile.am.
24596         * gnulib-tool: When collecting the m4dirs in a package that does not
24597         have a Makefile.am, eliminate those directories that contain no
24598         gnulib-cache.m4. Fix expression that counts these directories.
24599
24600 2010-09-04  Bruno Haible  <bruno@clisp.org>
24601
24602         update-copyright test: Improve output when perl is missing or too old.
24603         * tests/test-update-copyright.sh: Move test of Perl version down after
24604         the test whether Perl exists. Provide an explanation relating Perl's
24605         error message to Automake's SKIP: message.
24606
24607 2010-09-04  Bruno Haible  <bruno@clisp.org>
24608
24609         Don't augment PATH in TESTS_ENVIRONMENT.
24610         * modules/update-copyright-tests (Makefile.am): In TESTS_ENVIRONMENT,
24611         set abs_aux_dir instead of augmenting PATH.
24612         * modules/vc-list-files-tests (Makefile.am): Likewise.
24613         * tests/test-update-copyright.sh: Augment PATH here.
24614         * tests/test-vc-list-files-cvs.sh: Augment PATH here, through
24615         path_prepend_.
24616         * tests/test-vc-list-files-git.sh: Likewise.
24617
24618 2010-09-04  Jim Meyering  <meyering@redhat.com>
24619
24620         tests: prohibit augmenting PATH via TESTS_ENVIRONMENT
24621         * Makefile (sc_prohibit_augmenting_PATH_via_TESTS_ENVIRONMENT): New rule.
24622
24623 2010-09-04  Bruno Haible  <bruno@clisp.org>
24624
24625         strdup: Fix compilation error in C++ mode.
24626         * lib/string.in.h (strdup): In C++ mode with GNULIB_NAMESPACE, undefine
24627         the macro.
24628
24629 2010-09-04  Bruno Haible  <bruno@clisp.org>
24630
24631         dirfd: Fix compilation error in C++ mode on MacOS X, *BSD, IRIX.
24632         * lib/dirent.in.h (dirfd): In C++ mode with GNULIB_NAMESPACE, turn the
24633         macro into a function.
24634         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
24635
24636 2010-09-04  Bruno Haible  <bruno@clisp.org>
24637
24638         Set PATH_SEPARATOR the same way autoconf does.
24639         * build-aux/relocatable.sh.in (func_find_curr_installdir): Determine
24640         the value of PATH_SEPARATOR the same way autoconf-generated configure
24641         scripts do.
24642         * m4/lib-ld.m4 (AC_LIB_PROG_LD): Likewise.
24643         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
24644
24645 2010-09-04  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
24646
24647         Set PATH_SEPARATOR the same way autoconf does.
24648         * gnulib-tool (func_gnulib_dir): Determine the value of PATH_SEPARATOR
24649         the same way autoconf-generated configure scripts do.
24650         * posix-modules: Likewise.
24651
24652 2010-09-02  Paul Eggert  <eggert@cs.ucla.edu>
24653
24654         hash: fix safe_hasher const typo
24655         * lib/hash.c (safe_hasher): Result is pointer, not pointer to
24656         const; otherwise, there is a type error later.
24657
24658 2010-09-02  Jim Meyering  <meyering@redhat.com>
24659
24660         test-update-copyright.sh: require perl 5.8.0
24661         * tests/test-update-copyright.sh: Require 5.8.0,
24662         which Tom G. Christensen has confirmed is adequate,
24663         while 5.6.1 is not.
24664
24665 2010-09-02  Eric Blake  <eblake@redhat.com>
24666
24667         tests: init.sh improvements for re-exec'ing with zsh
24668         * tests/init.sh: Borrow autoconf POSIX-mode sanitization.  Pass
24669         -vx through shell re-exec.
24670         Reported by Tom G. Christensen.
24671
24672         wctype: fix typo in previous commit
24673         * m4/wctype_h.m4 (gl_WCTYPE_H): Fix spelling.
24674         Reported by Ludovic Courtès.
24675
24676 2010-09-02  Jim Meyering  <meyering@redhat.com>
24677
24678         test-update-copyright.sh: skip test if Perl is too old
24679         * tests/test-update-copyright.sh: Exit 77 if Perl is too old.
24680         Reported by Tom G. Christensen.
24681
24682 2010-09-02  Bruno Haible  <bruno@clisp.org>
24683
24684         wctype: Avoid compilation error on IRIX 6.5.30.
24685         * lib/wctype.in.h (iswblank): Declare with a replacement if
24686         REPLACE_ISWBLANK is set.
24687         * m4/wctype_h.m4 (gl_WCTYPE_H): Check also whether iswblank is
24688         declared. Set REPLACE_ISWBLANK.
24689         * modules/wctype (Makefile.am): Substitute REPLACE_ISWBLANK.
24690         * doc/posix-functions/iswblank.texi: Mention the IRIX 6.5.30 problem.
24691         * doc/posix-headers/wctype.texi: Likewise.
24692         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
24693
24694 2010-09-01  Bruno Haible  <bruno@clisp.org>
24695
24696         New module 'socketlib'.
24697         * modules/socketlib: New file.
24698         * m4/socketlib.m4: New file, extracted from m4/sockets.m4.
24699         * m4/sockets.m4 (gl_SOCKETS): Require gl_SOCKETLIB.
24700         * modules/sockets (Depends-on): Add socketlib.
24701         Suggested by Sam Steingold <sds@gnu.org>.
24702
24703 2010-09-01  Paul Eggert  <eggert@cs.ucla.edu>
24704
24705         fcntl-h, etc.: prefer O_SEARCH to O_RDONLY when applicable
24706
24707         POSIX 2008 specifies a new 'open' flag O_SEARCH, which can be used
24708         when one needs search access to a directory but not read access.
24709         On systems where it is available, it works in some cases where
24710         O_RDONLY does not, namely on directories that are searchable but
24711         not readable, and which need only to be searchable.  If O_SEARCH
24712         is not available, fall back to the traditional method of using
24713         O_RDONLY.
24714
24715         * lib/fcntl.in.h (O_SEARCH): #define to O_RDONLY if not defined.
24716         * lib/chdir-long.c (cdb_advance_fd): Use O_SEARCH, not O_RDONLY,
24717         when opening a directory that needs only to be searchable.
24718         * lib/chdir-safer.c (chdir_no_follow): Likewise.
24719         * lib/fts.c (diropen, fts_open, fd_ring_check): Likewise.
24720         * lib/openat-proc.c (openat_proc_name): Likewise.
24721         * lib/openat.c (openat_needs_fchdir): Likewise.
24722         * lib/save-cwd.c (save_cwd): Likewise.
24723         * lib/savewd.c (savewd_save, savewd_chdir): Likewise.
24724
24725 2010-08-28  Bruno Haible  <bruno@clisp.org>
24726
24727         New module 'host-cpu-c-abi'.
24728         * modules/host-cpu-c-abi: New file.
24729         * m4/host-cpu-c-abi.m4: New file, based on part of
24730         clisp/src/m4/general.m4.
24731         Requested by Sam Steingold <sds@gnu.org>.
24732
24733 2010-08-31  Eric Blake  <eblake@redhat.com>
24734         and Jim Meyering  <meyering@redhat.com>
24735
24736         hash: factor, and guard against misbehaving hasher function
24737         * lib/hash.c (safe_hasher): New function, to encapsulate the checking
24738         of table->hasher's return value.  Also protect against a hash value
24739         so large that adding it to table->bucket results in a NULL pointer.
24740         (hash_lookup, hash_get_next, hash_find_entry, transfer_entries):
24741         Use it in place of open-coded check-and-abort.
24742
24743 2010-08-30  Bruno Haible  <bruno@clisp.org>
24744
24745         hash: silence spurious clang warning
24746         * lib/hash.c (hash_get_next): Remove unnecessary test against NULL.
24747         Reported by Eric Blake.
24748
24749 2010-08-30  Eric Blake  <eblake@redhat.com>
24750
24751         strstr, memmem, strcasestr: avoid leaked shell message
24752         * m4/strstr.m4 (gl_FUNC_STRSTR): Avoid "Alarm clock" message from
24753         FreeBSD.
24754         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
24755         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
24756
24757         tests: silence clang warning
24758         * tests/test-malloca.c (do_allocation): Avoid dead store.
24759
24760 2010-08-29  Bruno Haible  <bruno@clisp.org>
24761
24762         gettext: Fix recent mistake.
24763         * m4/intl.m4 (gt_CHECK_DECL): Fix typo introduced on 2010-08-26.
24764
24765 2010-08-29  Bruno Haible  <bruno@clisp.org>
24766
24767         selinux-h: Offer a --without-selinux option.
24768         * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): If
24769         --without-selinux was specified, skip all tests and define
24770         HAVE_SELINUX_SELINUX_H to 0.
24771         (gl_LIBSELINUX): Offer --without-selinux option. If it is specified,
24772         set LIB_SELINUX to empty.
24773         * m4/selinux-context-h.m4 (gl_HEADERS_SELINUX_CONTEXT_H): Require
24774         gl_LIBSELINUX. If --without-selinux was specified, replace
24775         selinux/context.h.
24776         Reported by Johan Hattne <johan.hattne@utsouthwestern.edu>.
24777
24778 2010-08-29  Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
24779             Bruno Haible  <bruno@clisp.org>
24780
24781         Make the module 'realloc-gnu' work again on AIX and OSF/1.
24782         * m4/realloc.m4 (gl_FUNC_REALLOC_GNU): Define HAVE_REALLOC_GNU instead
24783         of HAVE_REALLOC.
24784         * lib/realloc.c (NEED_REALLOC_GNU): Enable behaviour also when
24785         GNULIB_REALLOC_GNU && !HAVE_REALLOC_GNU.
24786         (SYSTEM_MALLOC_GLIBC_COMPATIBLE): Adjust definition.
24787         * modules/realloc-gnu (configure.ac): Use gl_MODULE_INDICATOR.
24788
24789 2010-08-29  Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
24790             Bruno Haible  <bruno@clisp.org>
24791
24792         Make the module 'calloc-gnu' work again on AIX and OSF/1.
24793         * m4/calloc.m4 (gl_FUNC_CALLOC_GNU): Define HAVE_CALLOC_GNU instead of
24794         HAVE_CALLOC.
24795         * lib/xmalloc.c: Update accordingly.
24796         * lib/calloc.c (NEED_CALLOC_GNU): Enable also when
24797         GNULIB_CALLOC_GNU && !HAVE_CALLOC_GNU.
24798         * modules/calloc-gnu (configure.ac): Invoke gl_MODULE_INDICATOR.
24799
24800 2010-08-29  Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
24801             Bruno Haible  <bruno@clisp.org>
24802
24803         Make the module 'malloc-gnu' work again on AIX and OSF/1.
24804         * m4/malloc.m4 (gl_FUNC_MALLOC_GNU): Define HAVE_MALLOC_GNU instead of
24805         HAVE_MALLOC.
24806         * lib/malloc.c (NEED_MALLOC_GNU): Enable behaviour also when
24807         GNULIB_MALLOC_GNU && !HAVE_MALLOC_GNU.
24808         * modules/malloc-gnu (configure.ac): Use gl_MODULE_INDICATOR.
24809
24810 2010-08-29  Bruno Haible  <bruno@clisp.org>
24811
24812         Update modules list.
24813         * MODULES.html.sh (Memory management functions <stdlib.h>): Add
24814         malloc-gnu, calloc-gnu, realloc-gnu. Remove malloc, calloc, realloc.
24815         (String handling <string.h>): Add astrxfrm.
24816         (File system functions): Add readlinkat.
24817
24818 2010-08-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
24819
24820         Tests for module 'realloc-gnu'.
24821         * modules/realloc-gnu-tests: New file.
24822         * tests/test-realloc-gnu.c: New file.
24823
24824         Tests for module 'calloc-gnu'.
24825         * modules/calloc-gnu-tests: New file.
24826         * tests/test-calloc-gnu.c: New file.
24827
24828         Tests for module 'malloc-gnu'.
24829         * modules/malloc-gnu-tests: New file.
24830         * tests/test-malloc-gnu.c: New file.
24831
24832 2010-08-28  Bruno Haible  <bruno@clisp.org>
24833
24834         Rename module 'realloc' -> 'realloc-gnu'.
24835         * modules/realloc-gnu: New file, copied from modules/realloc.
24836         * modules/realloc: Convert to a redirection to 'realloc-gnu'. Mark as
24837         obsolete.
24838         * modules/mgetgroups (Depends-on): Update.
24839         * doc/posix-functions/realloc.texi: Update.
24840         * NEWS: Mention the change.
24841
24842         Rename module 'calloc' -> 'calloc-gnu'.
24843         * modules/calloc-gnu: New file, copied from modules/calloc.
24844         * modules/calloc: Convert to a redirection to 'calloc-gnu'. Mark as
24845         obsolete.
24846         * doc/posix-functions/calloc.texi: Update.
24847         * NEWS: Mention the change.
24848
24849         Rename module 'malloc' -> 'malloc-gnu'.
24850         * modules/malloc-gnu: New file, copied from modules/malloc.
24851         * modules/malloc: Convert to a redirection to 'malloc-gnu'. Mark as
24852         obsolete.
24853         * modules/argp (Depends-on): Update.
24854         * modules/regex (Depends-on): Update.
24855         * doc/posix-functions/malloc.texi: Update.
24856         * NEWS: Mention the change.
24857
24858 2010-08-28  Eric Blake  <eblake@redhat.com>
24859
24860         pread, pwrite: add missing dependency
24861         * modules/pread (Depends-on): Add extensions.
24862         * modules/pwrite (Depends-on): Likewise.
24863
24864 2010-08-28  Bruno Haible  <bruno@clisp.org>
24865
24866         unistr/u*-strchr: Fix tests dependencies.
24867         * modules/unistr/u8-strchr-tests (Depends-on): Add unistr/u32-to-u8.
24868         * modules/unistr/u16-strchr-tests (Depends-on): Add unistr/u32-to-u16.
24869         Reported by Ian Beckwith <ianb@erislabs.net>.
24870
24871 2010-08-28  Bruno Haible  <bruno@clisp.org>
24872
24873         read-file: Don't occupy too much unused memory.
24874         * lib/read-file.c (fread_file): Shrink the buffer at the end.
24875
24876 2010-08-28  Giuseppe Scrivano  <gscrivano@gnu.org>
24877             Eric Blake  <eblake@redhat.com>
24878             Bruno Haible  <bruno@clisp.org>
24879
24880         read-file: Avoid memory reallocations with regular files.
24881         * lib/read-file.c: Include <sys/stat.h>, <stdio.h>, <stdint.h>.
24882         (fread_file): With regular files, use the remaining length as the
24883         initial buffer size.  Check against overflow.
24884         * modules/read-file (Depends-on): Add ftello, malloc-posix, stdint,
24885         sys_stat.
24886
24887 2010-08-28  Bruno Haible  <bruno@clisp.org>
24888
24889         ftello: Relax license.
24890         * modules/ftello (License): Relax to LGPLv2+.
24891         Reported by Eric Blake.
24892
24893 2010-08-28  Bruno Haible  <bruno@clisp.org>
24894
24895         Avoid relocwrapper link errors due to gnulib replacement functions.
24896         * lib/canonicalize-lgpl.c [IN_RELOCWRAPPER]: Use the system's getcwd
24897         function.
24898         Reported by Ben Pfaff <blp@cs.stanford.edu>.
24899
24900 2010-08-28  Bruno Haible  <bruno@clisp.org>
24901
24902         Prefer using AC_DEFUN_ONCE over AC_DEFUN in projects with gnulib.
24903         * m4/iconv.m4 (gl_iconv_AC_DEFUN): Use AC_DEFUN_ONCE if gl_00GNULIB is
24904         defined.
24905         * m4/libunistring.m4 (gl_libunistring_AC_DEFUN): Likewise.
24906         Suggested by Eric Blake.
24907
24908 2010-08-28  Bruno Haible  <bruno@clisp.org>
24909
24910         sys_socket, netdb: Ensure socklen_t gets defined.
24911         * modules/sys_socket (Depends-on): Add socklen.
24912         * modules/netdb (Depends-on): Likewise.
24913         * modules/getaddrinfo (Depends-on): Remove socklen.
24914         * modules/getsockopt (Depends-on): Likewise.
24915         * modules/setsockopt (Depends-on): Likewise.
24916         * tests/test-sys_socket.c: Check that socklen_t is defined.
24917         * tests/test-netdb.c: Likewise.
24918         * m4/socklen.m4: Update comments.
24919         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
24920
24921 2010-08-27  Eric Blake  <eblake@redhat.com>
24922
24923         login_tty: add missing dependency
24924         * modules/login_tty (Depends-on): Add pty.
24925
24926 2010-08-26  Eric Blake  <eblake@redhat.com>
24927
24928         lib-symbol-versions: fix m4 quoting
24929         * m4/ld-version-script.m4 (gl_LD_VERSION_SCRIPT): Use correct
24930         format for AC_LINK_IFELSE.
24931
24932         glob: fix compile test
24933         * m4/glob.m4 (gl_GLOB): Use correct format for AC_COMPILE_IFELSE.
24934
24935         btowc: fix missing file
24936         * modules/btowc (Files): Also ship locale-fr.m4.
24937
24938         lseek: fix link test
24939         * m4/lseek.m4 (gl_FUNC_LSEEK): Use correct format for
24940         AC_LINK_IFELSE.
24941
24942         include_next: silence autoconf 2.68 warning
24943         * m4/include_next.m4 (gl_INCLUDE_NEXT): Mark this use of
24944         AC_COMPILE_IFELSE as special.
24945         (AC_LANG_DEFINES_PROVIDED): Provide dummy implementation for
24946         autoconf < 2.68.
24947
24948         acl: fix compilation test
24949         * m4/acl.m4 (gl_FUNC_ALL): Use correct format for
24950         AC_COMPILE_IFELSE.
24951
24952 2010-08-26  Bruno Haible  <bruno@clisp.org>
24953
24954         Modernize AC_TRY_RUN invocations.
24955         * m4/btowc.m4 (gl_FUNC_BTOWC): Use AC_RUN_IFELSE instead of AC_TRY_RUN.
24956         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Likewise.
24957         * m4/exponentd.m4 (gl_DOUBLE_EXPONENT_LOCATION): Likewise.
24958         * m4/exponentf.m4 (gl_FLOAT_EXPONENT_LOCATION): Likewise.
24959         * m4/exponentl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Likewise.
24960         * m4/fopen.m4 (gl_FUNC_FOPEN): Likewise.
24961         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Likewise.
24962         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
24963         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
24964         * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
24965         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Likewise.
24966         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
24967         * m4/isnanf.m4 (gl_ISNANF_WORKS): Likewise.
24968         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
24969         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Likewise.
24970         * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL,
24971         gl_MBRLEN_NUL_RETVAL): Likewise.
24972         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
24973         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL):
24974         Likewise.
24975         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
24976         * m4/open.m4 (gl_FUNC_OPEN): Likewise.
24977         * m4/printf.m4 (gl_PRINTF_SIZES_C99, gl_PRINTF_LONG_DOUBLE,
24978         gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE,
24979         gl_PRINTF_DIRECTIVE_A, gl_PRINTF_DIRECTIVE_F, gl_PRINTF_DIRECTIVE_N,
24980         gl_PRINTF_DIRECTIVE_LS, gl_PRINTF_POSITIONS, gl_PRINTF_FLAG_GROUPING,
24981         gl_PRINTF_FLAG_LEFTADJUST, gl_PRINTF_FLAG_ZERO, gl_PRINTF_PRECISION,
24982         gl_SNPRINTF_TRUNCATION_C99, gl_SNPRINTF_RETVAL_C99,
24983         gl_SNPRINTF_DIRECTIVE_N, gl_SNPRINTF_SIZE1, gl_VSNPRINTF_ZEROSIZE_C99):
24984         Likewise.
24985         * m4/printf-posix.m4 (gt_PRINTF_POSIX): Likewise.
24986         * m4/signbit.m4 (gl_SIGNBIT, gl_FLOATTYPE_SIGN_LOCATION): Likewise.
24987         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
24988         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
24989         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
24990         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Likewise.
24991         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
24992         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION): Likewise.
24993         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
24994         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
24995
24996 2010-08-26  Bruno Haible  <bruno@clisp.org>
24997
24998         Modernize AC_TRY_LINK invocations.
24999         * m4/acosl.m4 (gl_FUNC_ACOSL): Use AC_LINK_IFELSE instead of
25000         AC_TRY_LINK.
25001         * m4/argp.m4 (gl_ARGP): Likewise.
25002         * m4/asinl.m4 (gl_FUNC_ASINL): Likewise.
25003         * m4/atanl.m4 (gl_FUNC_ATANL): Likewise.
25004         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Likewise.
25005         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
25006         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
25007         * m4/codeset.m4 (AM_LANGINFO_CODESET): Likewise.
25008         * m4/cosl.m4 (gl_FUNC_COSL): Likewise.
25009         * m4/expl.m4 (gl_FUNC_EXPL): Likewise.
25010         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
25011         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Likewise.
25012         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
25013         * m4/frexp.m4 (gl_FUNC_FREXP, gl_CHECK_FREXP_NO_LIBM): Likewise.
25014         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_CHECK_FREXPL_NO_LIBM): Likewise.
25015         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
25016         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
25017         * m4/hostent.m4 (gl_HOSTENT): Likewise.
25018         * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
25019         * m4/intl.m4 (gt_INTL_SUBDIR_CORE): Likewise.
25020         * m4/intlmacosx.m4 (gt_INTL_MACOSX): Likewise.
25021         * m4/isnand.m4 (gl_HAVE_ISNAND_IN_LIBM, gl_HAVE_ISNAND_NO_LIBM):
25022         Likewise.
25023         * m4/isnanf.m4 (gl_HAVE_ISNANF_NO_LIBM, gl_HAVE_ISNANF_IN_LIBM):
25024         Likewise.
25025         * m4/isnanl.m4 (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM):
25026         Likewise.
25027         * m4/lcmessage.m4 (gt_LC_MESSAGES): Likewise.
25028         * m4/ldexpl.m4 (gl_FUNC_LDEXPL, gl_CHECK_LDEXPL_NO_LIBM): Likewise.
25029         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Likewise.
25030         * m4/logb.m4 (gl_FUNC_LOGB): Likewise.
25031         * m4/logl.m4 (gl_FUNC_LOGL): Likewise.
25032         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Likewise.
25033         * m4/servent.m4 (gl_SERVENT): Likewise.
25034         * m4/signbit.m4 (gl_SIGNBIT): Likewise.
25035         * m4/sinl.m4 (gl_FUNC_SINL): Likewise.
25036         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Likewise.
25037         * m4/tanl.m4 (gl_FUNC_TANL): Likewise.
25038         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
25039         * m4/trunc.m4 (gl_FUNC_TRUNC): Likewise.
25040         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
25041         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
25042         * modules/tsearch-tests (configure.ac): Likewise.
25043
25044 2010-08-26  Bruno Haible  <bruno@clisp.org>
25045
25046         Modernize AC_TRY_COMPILE invocations.
25047         * m4/environ.m4 (gt_CHECK_VAR_DECL): Use AC_COMPILE_IFELSE instead of
25048         AC_TRY_COMPILE.
25049         * m4/iconv.m4 (gl_iconv_AC_DEFUN): Likewise.
25050         * m4/intl.m4 (gt_CHECK_DECL): Likewise.
25051         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Likewise.
25052         * m4/intmax_t.m4 (gt_AC_TYPE_INTMAX_T): Likewise.
25053         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Likewise.
25054         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
25055         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
25056         * m4/lock.m4 (gl_LOCK): Likewise.
25057         * m4/malloc.m4 (gl_CHECK_MALLOC_POSIX): Likewise.
25058         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
25059         * m4/minmax.m4 (gl_MINMAX_IN_HEADER): Likewise.
25060         * m4/setenv.m4 (gl_FUNC_UNSETENV): Likewise.
25061         * m4/size_max.m4 (gl_SIZE_MAX): Likewise.
25062         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Likewise.
25063         * m4/stdarg.m4 (gl_STDARG_H): Likewise.
25064         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Likewise.
25065         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Likewise.
25066         * m4/visibility.m4 (gl_VISIBILITY): Likewise.
25067         * m4/wchar_t.m4 (gt_TYPE_WCHAR_T): Likewise.
25068         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
25069         * m4/libunistring.m4 (gl_LIBUNISTRING_CORE): Likewise. Remove
25070         extraneous semicolon.
25071
25072 2010-08-26  Jim Meyering  <meyering@redhat.com>
25073
25074         stat-time: relax license LGPL
25075         * modules/stat-time (License): Change from GPL to LGPL,
25076         with consent from all contributors, for use in libguile.
25077         Requested by Ludovic Courtès.
25078
25079 2010-08-26  Erik Faye-Lund  <kusmabite@gmail.com>
25080
25081         poll: return immediately on POLLHUP.
25082         * lib/poll.c (poll): Always set timeout before wait_timeout is
25083         computed.
25084
25085 2010-08-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
25086
25087         Fix test-unlinkat, test-rmdir failure on AIX 5.3.
25088         * tests/test-rmdir.h (test_rmdir_func): Also accept EEXIST for
25089         rmdir ("dir/.//"), unlinkat.
25090
25091 2010-08-24  Paul Eggert  <eggert@cs.ucla.edu>
25092
25093         stdbool: avoid spurious failure with modern xlc
25094         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Resync with autoconf.
25095
25096 2010-08-24  Bruno Haible  <bruno@clisp.org>
25097
25098         getloadavg: simplify code
25099         * m4/getloadavg.m4 (gl_GETLOADAVG): Remove useless test of
25100         gl_have_func. Update comments.
25101
25102 2010-08-24  Eric Blake  <eblake@redhat.com>
25103
25104         getloadavg: don't define SVR4 on cygwin
25105         * m4/getloadavg.m4 (gl_GETLOADAVG): Sync with autoconf fix, to
25106         only define SVR4 when -lkvm is required.
25107         Reported by Yaakov Selkowitz.
25108
25109 2010-08-24  Bruno Haible  <bruno@clisp.org>
25110
25111         priv-set: fix comment
25112         * lib/priv-set.c (priv_set_restore): Fix typo in comment.
25113
25114 2010-08-23  Paul Eggert  <eggert@cs.ucla.edu>
25115
25116         priv-set: fix comments
25117         * lib/priv-set.c (priv_set_remove, priv_set_restore): Fix comments
25118         to match code, as suggested by David Bartley in:
25119         http://lists.gnu.org/archive/html/bug-tar/2010-08/msg00018.html
25120
25121 2010-08-23  Eric Blake  <eblake@redhat.com>
25122
25123         stdbool: avoid rejecting clang
25124         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Resync with autoconf.
25125         * tests/test-stdbool.c: Enable more tests if using the system
25126         <stdbool.h> instead of the gnulib replacement.
25127         (main): Move xlc bug test to a runtime test for all compilers.
25128         Reported by Anders Kaseorg.
25129
25130         argz: fix shell quoting issue
25131         * m4/argz.m4 (gl_FUNC_ARGZ): Allow for spaces in argument.
25132         Reported by Charles Wilson.
25133
25134 2010-08-22  Paolo Bonzini  <bonzini@gnu.org>
25135             Erik Faye-Lund <kusmabite@gmail.com>
25136
25137         poll, select: handle ERROR_BROKEN_PIPE.
25138         * lib/poll.c (win32_compute_revents): Return POLLHUP when
25139         PeekNamedPipe fails with ERROR_BROKEN_PIPE.
25140         * lib/select.c (win32_compute_revents): Do not mark a pipe
25141         as writeable if PeekNamedPipe fails with ERROR_BROKEN_PIPE.
25142
25143 2010-08-22  Giuseppe Scrivano  <gscrivano@gnu.org>
25144
25145         fts: allow compilation with C++
25146         * lib/fts_.h: Specify extern "C" linkage with C++.
25147
25148 2010-08-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
25149
25150         Fix gnulib-tool sed script de-commentation for AIX sed.
25151         * gnulib-tool (sed_comments): Try indented comments, for AIX 5.3
25152         sed.
25153
25154 2010-08-17  Eric Blake  <eblake@redhat.com>
25155
25156         test-stddef: test for (some) offsetof bugs
25157         * tests/test-stddef.c: Enhance test to ensure correct type of
25158         offsetof.
25159         * doc/posix-headers/stddef.texi (stddef.h): Document a Solaris bug
25160         that we are not fixing at this time.
25161
25162 2010-08-15  Bruno Haible  <bruno@clisp.org>
25163
25164         stpncpy: Allow stpncpy to be defined as a macro.
25165         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Don't attempt to redeclare stpncpy
25166         if it's already correctly declared.
25167         * lib/string.in.h (stpncpy): Undefine before redefining.
25168         Reported by Jeremy Huddleston <jeremyhu@macports.org>.
25169
25170 2010-08-14  Bruno Haible  <bruno@clisp.org>
25171
25172         Rename module 'memxfrm' to 'amemxfrm'.
25173         * lib/amemxfrm.h: Renamed from lib/memxfrm.h.
25174         (amemxfrm): Renamed from memxfrm.
25175         * lib/amemxfrm.c: Renamed from lib/memxfrm.h. Include amemxfrm.h.
25176         (amemxfrm): Renamed from memxfrm.
25177         * modules/amemxfrm: Renamed from modules/memxfrm. Update.
25178         * NEWS: Mention the change.
25179         * MODULES.html.sh (String handling <string.h>): Update.
25180         * lib/unicase/u-casexfrm.h: Invoke amemxfrm instead of memxfrm.
25181         * lib/unicase/u8-casexfrm.c: Include amemxfrm.h instead of memxfrm.h.
25182         * lib/unicase/u16-casexfrm.c: Likewise.
25183         * lib/unicase/u32-casexfrm.c: Likewise.
25184         * lib/uninorm/u-normxfrm.h: Invoke amemxfrm instead of memxfrm.
25185         * lib/uninorm/u8-normxfrm.c: Include amemxfrm.h instead of memxfrm.h.
25186         * lib/uninorm/u16-normxfrm.c: Likewise.
25187         * lib/uninorm/u32-normxfrm.c: Likewise.
25188         * modules/unicase/u8-casexfrm (Depends-on): Add amemxfrm, remove
25189         memxfrm.
25190         * modules/unicase/u16-casexfrm (Depends-on): Likewise.
25191         * modules/unicase/u32-casexfrm (Depends-on): Likewise.
25192         * modules/uninorm/u8-normxfrm (Depends-on): Likewise.
25193         * modules/uninorm/u16-normxfrm (Depends-on): Likewise.
25194         * modules/uninorm/u32-normxfrm (Depends-on): Likewise.
25195         Suggested by Paul Eggert.
25196
25197 2010-08-14  Bruno Haible  <bruno@clisp.org>
25198
25199         Tests for module 'astrxfrm'.
25200         * modules/astrxfrm-tests: New file.
25201         * tests/test-astrxfrm.c: New file.
25202
25203         New module 'astrxfrm'.
25204         * lib/astrxfrm.h: New file.
25205         * lib/astrxfrm.c: New file, based on lib/memxfrm.c.
25206         * modules/astrxfrm: New file.
25207
25208 2010-08-14  Reuben Thomas <rrt@sc3d.org>
25209
25210         regex: Tweak doc.
25211         * doc/regex.texi (Overview): Don't mention regex.c.
25212         (GNU Regular Expression Compiling): Likewise.
25213         (Match-end-of-line Operator): Mention 'not_eol'.
25214
25215 2010-08-14  Brian Gough  <bjg@gnu.org>
25216             Bruno Haible  <bruno@clisp.org>
25217
25218         git-merge-changelog: add doc relating to use with bzr and hg.
25219         * lib/git-merge-changelog.c: Add comments regarding bzr, hg, diff3.
25220
25221 2010-08-14  Matthias Bolte  <matthias.bolte@googlemail.com>
25222
25223         pthread: fix pthread.h creation for srcdir != builddir
25224         * modules/pthread (Makefile.am): Fix the rule to work also in a
25225         non-srcdir build.
25226
25227 2010-08-13  Karl Berry  <karl@gnu.org>
25228
25229         * doc/regex.texi (Predefined Syntaxes): @smallexample.
25230         * doc/posix-*/*: force line break before @url of POSIX
25231         specifications.
25232         Suggested by Werner Lemberg.
25233
25234 2010-08-10  Paul Eggert  <eggert@cs.ucla.edu>
25235
25236         strtod: fix const diagnostic
25237         * lib/strtod.c (strtod): Don't assign const char * to char *,
25238         as this elicits a warning from GCC when warnings are enabled.
25239
25240 2010-08-10  Pádraig Brady <P@draigbrady.com>
25241         and Eric Blake  <eblake@redhat.com>
25242
25243         copy-acl: ignore ENOTSUP on HP-UX
25244         * lib/acl-internal.h (ACL_NOT_WELL_SUPPORTED): Move definition up,
25245         so that it is available for HP-UX.
25246         * lib/copy-acl.c (qcopy_acl): Use it.
25247         Reported by Patrick M. Callahan.
25248
25249 2010-08-10  Eric Blake  <eblake@redhat.com>
25250
25251         open, chown: relax license
25252         * modules/open (License): Change to LGPLv2+, with consent by all
25253         authors, for use in augeas.
25254         * modules/chown (License): Likewise.
25255         * modules/lchown (Likewise): Likewise.
25256         Requested by Adam Stokes.
25257
25258 2010-08-09  Karl Berry  <karl@gnu.org>
25259
25260         * build-aux/ar-lib: new file, import from Automake.
25261         * config/srclist.txt: autocheck for updates.
25262
25263 2010-08-09  Eric Blake  <eblake@redhat.com>
25264
25265         readlinkat: adjust client modules
25266         * modules/areadlinkat (Depends-on): Use readlinkat, not
25267         symlinkat.
25268         * modules/areadlinkat-with-size (Depends-on): Likewise.
25269
25270         mknod: be more vocal about danger of running tests as root
25271         * m4/mknod.m4 (gl_FUNC_MKNOD): Make it harder to run configure as
25272         root, since that is just asking for problems.
25273         Suggested by Bruno Haible, based on a report by Rainer Tammer.
25274
25275         readlinkat: split into its own module
25276         * modules/symlinkat: Split readlinkat...
25277         * modules/readlinkat: ...into separate module.
25278         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Move readlinkat check...
25279         * m4/readlinkat.m4 (gl_FUNC_READLINAT): ...to new file.
25280         * lib/symlinkat.c (readlinkat): Move...
25281         * lib/readlinkat.c: ...into new file.
25282         * modules/symlinkat-tests: Split readlinkat test...
25283         * modules/readlinkat-tests: ...into separate module.
25284         * tests/test-symlinkat.c: Split...
25285         * tests/test-readlinkat.c: ...into new file.
25286         * NEWS: Document the split.
25287         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
25288         * lib/unistd.in.h (readlinkat): Likewise.
25289         Suggested by Bruno Haible.
25290
25291 2010-08-08  Bruno Haible  <bruno@clisp.org>
25292
25293         memxfrm: Speed up.
25294         * lib/memxfrm.c (memxfrm): Allocate enough memory ahead of time, so
25295         that usually only one call to strxfrm is necessary for each string
25296         part.
25297         Reported by Paul Eggert <eggert@cs.ucla.edu>.
25298
25299 2010-08-07  Karl Berry  <karl@gnu.org>
25300
25301         * doc/posix-headers/limits.texi,
25302         * doc/posix-functions/malloc.texi,
25303         * doc/posix-functions/strsignal.texi: missing @item.
25304         * doc/ld-version-script.texi: spurious leading i.
25305         * doc/regex.texi (Interval Operators): no commas inside @var.
25306
25307 2010-08-01  Bruno Haible  <bruno@clisp.org>
25308
25309         Integrate the regex documentation.
25310         * doc/gnulib.texi: Define 'cn' index.
25311         (Regular expressions): New a chapter that includes regex.texi and
25312         regexprops-generic.texi.
25313         * doc/regex.texi: Remove boilerplate stuff. Use simplified @node
25314         syntax.
25315
25316         Whitespace cleanup.
25317         * doc/regex.texi: Remove trailing spaces.
25318
25319         Add regex documentation.
25320         * doc/regex.texi: New file. Taken from regex-0.12/doc/regex.texi in
25321         http://ftp.gnu.org/old-gnu/regex/regex-0.12.tar.gz.
25322         Written by Kathy A. Hargreaves and Karl Berry.
25323
25324 2010-08-01  Bruno Haible  <bruno@clisp.org>
25325
25326         link: Update documentation.
25327         * doc/posix-functions/link.texi: Update regarding Solaris.
25328
25329 2010-07-31  Bruno Haible  <bruno@clisp.org>
25330
25331         Update modules list.
25332         * MODULES.html.sh (Sorting functions <stdlib.h>): Add array-mergesort.
25333         (String handling <string.h>): Add memcmp2, memxfrm.
25334         (Container data structures): Add xlist, xsublist, xoset.
25335         (Core language properties): Add alignof, unused-parameter.
25336         (Process control, Numeric conversion functions <stdlib.h>): Renamed
25337         from Numeric conversion functions <stdlib.h>. Add _Exit, atoll.
25338         (Unibyte characters <ctype.h>): New section.
25339         (String handling <string.h>): New section.
25340         (Mathematics <math.h>): Add acos, acosl, asin, asinl, atan, atan2,
25341         atanl, cbrt, copysign, cos, cosh, cosl, erf, erfc, exp, expl, fabs,
25342         fmod, hypot, j0, j1, jn, ldexp, lgamma, log, log10, log1p, logb, logl,
25343         modf, nextafter, pow, remainder, rint, sin, sinh, sinl, sqrt, sqrtl,
25344         tan, tanh, tanl, y0, y1, yn.
25345         (Support for systems lacking POSIX:2008): Add alphasort, dirent,
25346         dprintf, dprintf-posix, duplocale, fcntl, getlogin, getopt-posix,
25347         grantpt, iconv-h, ioctl, isblank, langinfo, nl_langinfo, pread,
25348         ptsname, pwrite, scandir, servent, sys_utsname, ttyname_r, uname,
25349         unlockpt, vdprintf, vdprintf-posix.
25350         (Enhancements for POSIX:2008 functions): Add getopt-gnu. Remove getopt.
25351         (File system functions): Add concat-filename, sys_file, sys_ioctl,
25352         xconcat-filename.
25353         (File descriptor based Input/Output): Add dup3, fd-safer-flag,
25354         getdtablesize, pipe2, pipe2-safer.
25355         (Security): New section.
25356         (Networking functions): Add accept4.
25357         (Signal handling): Add sigpipe.
25358         (Internationalization functions): Add xstriconveh, mbmemcasecmp,
25359         mbmemcasecoll.
25360         (Unicode string functions): Add libunistring-optional, unistr/u*-cmp2,
25361         unistr/u*-strcoll, uniwbrk/*, uninorm/*, unicase/*.
25362         (Executing programs): Add findprog-lgpl, pipe-filter-gi,
25363         pipe-filter-ii.
25364         (Misc): Add argp-version-etc, login_tty, parse-duration.
25365
25366 2010-07-31  Bruno Haible  <bruno@clisp.org>
25367
25368         Improve doc in MODULES.html.
25369         * modules/linkat (Description): Add the word "function".
25370         * modules/mkfifo (Description): Likewise.
25371         * modules/mknod (Description): Likewise.
25372         * modules/remove (Description): Likewise.
25373         * modules/renameat (Description): Likewise.
25374         * modules/stat (Description): Likewise.
25375         * modules/symlink (Description): Likewise.
25376         * modules/unlink (Description): Likewise.
25377
25378 2010-07-31  Bruno Haible  <bruno@clisp.org>
25379
25380         ansi-c++-opt: Provide option --enable-c++/--disable-c++ when possible.
25381         * m4/ansi-c++.m4 (gl_CXX_CHOICE): In Autoconf 2.66 or newer, provide
25382         option --enable/disable-c++ instead of --enable/disable-cxx.
25383         * NEWS: Mention the change.
25384
25385 2010-07-31  Bruno Haible  <bruno@clisp.org>
25386
25387         readlink, areadlink: Relax test a bit.
25388         * tests/test-readlink.h (test_readlink): Accept EINVAL as an
25389         alternative to ENOTDIR.
25390         * tests/test-areadlink.h (test_areadlink): Likewise.
25391         Reported by Rainer Tammer.
25392
25393 2010-07-31  Bruno Haible  <bruno@clisp.org>
25394
25395         unistr/u8-strstr, unistr/u16-strstr: Optimize the one-character case.
25396         * lib/unistr/u-strstr.h (FUNC): When the needle contains only one
25397         character, perform the search using U_STRCHR.
25398         * lib/unistr/u8-strstr.c (U_STRMBTOUC): New macro.
25399         * lib/unistr/u16-strstr.c (U_STRMBTOUC): Likewise.
25400         * modules/unistr/u8-strstr (Depends-on): Add unistr/u8-strmbtouc.
25401         * modules/unistr/u16-strstr (Depends-on): Add unistr/u16-strmbtouc.
25402         Suggested by Paolo Bonzini.
25403
25404 2010-07-31  Bruno Haible  <bruno@clisp.org>
25405
25406         unistr/u*-strstr: Fix dependencies.
25407         * modules/unistr/u8-strstr (Depends-on): Add unistr/u8-strchr.
25408         * modules/unistr/u16-strstr (Depends-on): Add unistr/u16-strchr.
25409         * modules/unistr/u32-strstr (Depends-on): Add unistr/u32-strchr.
25410
25411 2010-07-31  Bruno Haible  <bruno@clisp.org>
25412
25413         unistr/u8-chr, unistr/u8-strchr: Optimize and add comments.
25414         * lib/unistr/u8-chr.c (u8_chr): Add comments. Remove a useless test at
25415         the beginning of the loop.
25416         * lib/unistr/u8-strchr.c (u8_strchr): Add comments. Don't fall through
25417         cases in 'switch' statement.
25418
25419         unistr/u8-strchr: Fix several bugs.
25420         * lib/unistr/u8-strchr.c (u8_strchr): Don't search beyond the end of
25421         the string. When not found, return NULL, not a pointer near the end.
25422
25423         More tests for unistr/u8-strchr.
25424         * tests/unistr/test-strchr.h (test_strchr): Renamed from main. Check
25425         that the function does not read past the first occurrence of the byte
25426         being searched.
25427         * tests/unistr/test-u8-strchr.c (main): New function, with more tests.
25428         * tests/unistr/test-u16-strchr.c (main): New function.
25429         * tests/unistr/test-u32-strchr.c (main): New function.
25430
25431 2010-07-31  Bruno Haible  <bruno@clisp.org>
25432
25433         posix-modules: Ignore backup files of documentation files.
25434         * posix-modules: grep only through files named *.texi.
25435
25436 2010-07-31  Bruno Haible  <bruno@clisp.org>
25437
25438         symlinkat: Fix documentation.
25439         * doc/posix-functions/readlinkat.texi: Fix module name.
25440
25441 2010-07-31  Bruno Haible  <bruno@clisp.org>
25442
25443         fchownat: Replace also when chown has the trailing slash bug.
25444         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Move the test of REPLACE_CHOWN
25445         outside the gl_FUNC_FCHOWNAT_DEREF_BUG invocation. Fixes regression
25446         introduced on 2010-04-10.
25447         Reported by Rainer Tammer.
25448
25449 2010-07-31  Bruno Haible  <bruno@clisp.org>
25450
25451         linkat: Work around AIX 7.1 bug.
25452         * m4/linkat.m4 (gl_FUNC_LINKAT): Require AC_CANONICAL_HOST. Test
25453         whether linkat handles trailing slash correctly. If not, replace linkat
25454         and define LINKAT_TRAILING_SLASH_BUG.
25455         * lib/linkat.c (rpl_linkat): If LINKAT_TRAILING_SLASH_BUG is defined,
25456         check whether (fd1,file1) points to a directory if file1 or file2 ends
25457         in a slash. Code taken from lib/link.c.
25458         * doc/posix-functions/linkat.texi: Mention trailing slash bug.
25459         Reported by Rainer Tammer.
25460
25461 2010-07-31  Bruno Haible  <bruno@clisp.org>
25462
25463         Correctly determine whether pow is available in libc on AIX 7 with xlc.
25464         * m4/mathfunc.m4 (gl_MATHFUNC): Actually use the 'funcptr' variable.
25465         This disables an xlc optimization that was causing wrong test results.
25466         Reported by Rainer Tammer.
25467
25468 2010-07-31  Bruno Haible  <bruno@clisp.org>
25469
25470         iconv: Work around AIX 6.1..7.1 bug.
25471         * doc/posix-functions/iconv.texi: Mention AIX 6.1, 7.1 bug.
25472         * m4/iconv.m4 (AM_ICONV_LINK): Test against AIX 6.1, 7.1 bug. When
25473         cross-compiling, guess no on all versions of AIX.
25474         Reported by Rainer Tammer.
25475
25476 2010-07-31  Bruno Haible  <bruno@clisp.org>
25477
25478         readlink: Relax test a bit.
25479         * tests/test-readlink.h (test_readlink): Allow different errno value
25480         when readlink is called with a file name that ends in / and refers to
25481         a file.
25482         Suggested by Eric Blake.
25483         Reported by Rainer Tammer.
25484
25485 2010-07-31  Bruno Haible  <bruno@clisp.org>
25486
25487         copysign: Does not require -lm on glibc systems.
25488         * modules/copysign (configure.ac): Use gl_MATHFUNC, not
25489         gl_COMMON_DOUBLE_MATHFUNC.
25490         * m4/mathfunc.m4 (gl_COMMON_DOUBLE_MATHFUNC): Update comments.
25491
25492 2010-07-31  Bruno Haible  <bruno@clisp.org>
25493
25494         duplocale: Work around AIX 7.1 bug.
25495         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Let the test fail also when
25496         duplocale(LC_GLOBAL_LOCALE) returns (locale_t)0.
25497         * lib/duplocale.c (rpl_duplocale): Update comment.
25498         * doc/posix-functions/duplocale.texi: Mention the AIX 7.1 bug.
25499         Reported by Rainer Tammer.
25500
25501 2010-07-30  Bruno Haible  <bruno@clisp.org>
25502
25503         dirfd: Avoid link error on AIX 7.1.
25504         * lib/dirent.in.h (dirfd): Use modern idiom with REPLACE_DIRFD.
25505         * m4/dirfd.m4 (gl_FUNC_DIRFD): If the function is declared but does not
25506         exist, set REPLACE_DIRFD.
25507         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize REPLACE_DIRFD.
25508         * modules/dirent (Makefile.am): Substitute REPLACE_DIRFD.
25509         * doc/posix-functions/dirfd.texi: Update.
25510         Reported by Rainer Tammer.
25511
25512 2010-07-30  Eric Blake  <eblake@redhat.com>
25513
25514         strtod: next round of AIX fixes
25515         * lib/strtod.c (strtod): Work around AIX bug of parsing p with no
25516         exponent.
25517         * tests/test-strtod.c (main): Enhance tests.
25518         * doc/posix-functions/strtod.texi (strtod): Document next bug.
25519         Reported by Rainer Tammer.
25520
25521         futimens: fix configure check
25522         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Use correct logic.
25523         Reported by Bruno Haible.
25524
25525 2010-07-30  Bruno Haible  <bruno@clisp.org>
25526
25527         getline: Update regarding AIX.
25528         * doc/posix-functions/getline.texi: Mention bug on AIX 7.1.
25529         Reported by Rainer Tammer.
25530
25531 2010-07-30  Bruno Haible  <bruno@clisp.org>
25532
25533         wcwidth: Drop replacement on AIX 7.
25534         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): When cross-compiling, guess yes on
25535         AIX 7.
25536         Reported by Rainer Tammer.
25537
25538 2010-07-30  Bruno Haible  <bruno@clisp.org>
25539
25540         strtok_r: Avoid triggering bug in AIX 7.1 xlc compiler.
25541         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Don't cast an invalid address to
25542         a 'char *'.
25543         Reported by Rainer Tammer.
25544
25545 2010-07-30  Bruno Haible  <bruno@clisp.org>
25546
25547         unlink: Update regarding AIX.
25548         * doc/posix-functions/unlink.texi: Mention bug on AIX 7.1.
25549         * m4/unlink.m4 (gl_FUNC_UNLINK): Update comment.
25550         Reported by Rainer Tammer.
25551
25552 2010-07-30  Bruno Haible  <bruno@clisp.org>
25553
25554         symlink: Update regarding AIX.
25555         * doc/posix-functions/symlink.texi: Mention bug on AIX 7.1.
25556         * m4/symlink.m4 (gl_FUNC_SYMLINK): Update comment.
25557         Reported by Rainer Tammer.
25558
25559 2010-07-30  Bruno Haible  <bruno@clisp.org>
25560
25561         strndup: Update regarding AIX.
25562         * m4/strndup.m4 (gl_FUNC_STRNDUP): When cross-compiling, guess yes on
25563         AIX 7.
25564         Reported by Rainer Tammer.
25565
25566 2010-07-30  Bruno Haible  <bruno@clisp.org>
25567
25568         stat: Update regarding AIX.
25569         * doc/posix-functions/stat.texi: Mention bug on AIX 7.1.
25570         * m4/stat.m4 (gl_FUNC_STAT): Update comment.
25571         Reported by Rainer Tammer.
25572
25573 2010-07-30  Bruno Haible  <bruno@clisp.org>
25574
25575         truncl: Fix autoconf test.
25576         * m4/truncl.m4 (gl_FUNC_TRUNCL): Add TRUNCL_LIBM to LIBS while testing
25577         whether truncl works.
25578         Reported by Rainer Tammer.
25579
25580 2010-07-30  Bruno Haible  <bruno@clisp.org>
25581
25582         round: Update regarding AIX.
25583         * m4/round.m4 (gl_FUNC_ROUND): When cross-compiling, guess no on AIX 7.
25584         * doc/posix-functions/round.texi: Mention bug on AIX 7.1.
25585         Reported by Rainer Tammer.
25586
25587 2010-07-30  Bruno Haible  <bruno@clisp.org>
25588
25589         rename: Update regarding AIX.
25590         * doc/posix-functions/rename.texi: Mention bug on AIX 7.1.
25591         * m4/rename.m4 (gl_FUNC_RENAME): Update comment.
25592         Reported by Rainer Tammer.
25593
25594 2010-07-30  Bruno Haible  <bruno@clisp.org>
25595
25596         printf.m4: Update regarding AIX.
25597         * m4/printf.m4: Update comments regarding AIX.
25598         Reported by Rainer Tammer.
25599
25600 2010-07-30  Bruno Haible  <bruno@clisp.org>
25601
25602         iconv: Update regarding AIX.
25603         * m4/iconv.m4 (AM_ICONV_LINK): When cross-compiling, guess yes on
25604         AIX 7.
25605         Reported by Rainer Tammer.
25606
25607 2010-07-30  Bruno Haible  <bruno@clisp.org>
25608
25609         getopt: Update regarding AIX.
25610         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): When cross-compiling, guess
25611         no on AIX.
25612         * doc/posix-functions/getopt.texi: Mention that AIX has the optind bug.
25613         Reported by Rainer Tammer.
25614
25615 2010-07-30  Bruno Haible  <bruno@clisp.org>
25616
25617         ldexpl; Update regarding AIX.
25618         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): When cross-compiling, guess yes
25619         on AIX 7.
25620         Reported by Rainer Tammer.
25621
25622 2010-07-30  Bruno Haible  <bruno@clisp.org>
25623
25624         frexpl: Update regarding AIX.
25625         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): When cross-compiling, guess yes
25626         on AIX 7.
25627         Reported by Rainer Tammer.
25628
25629 2010-07-30  Bruno Haible  <bruno@clisp.org>
25630
25631         open, fopen: Update regarding AIX.
25632         * m4/open.m4 (gl_FUNC_OPEN): Adjust cross-compiling guess for AIX.
25633         * m4/fopen.m4 (gl_FUNC_FOPEN): Likewise.
25634         * doc/posix-functions/open.texi: Mention the trailing-slash bug on AIX.
25635         * doc/posix-functions/fopen.texi: Likewise.
25636         Reported by Rainer Tammer.
25637
25638 2010-07-30  Bruno Haible  <bruno@clisp.org>
25639
25640         chown: Update doc regarding AIX.
25641         * doc/posix-functions/chown.texi: Mention bug on AIX 7.1.
25642         * m4/chown.m4 (gl_FUNC_CHOWN): Update comment.
25643         Reported by Rainer Tammer.
25644
25645 2010-07-30  Eric Blake  <eblake@redhat.com>
25646
25647         strtod: fix bug in replacement function on AIX
25648         * lib/strtod.c (strtod): Special case broken "0x" parse in
25649         underlying strtod.
25650         * tests/test-strtod.c (main): Document AIX 7.1 bugs.
25651         * doc/posix-functions/strtod.texi (strtod): Likewise.
25652         Reported by Rainer Tammer.
25653
25654 2010-07-30  Bruno Haible  <bruno@clisp.org>
25655
25656         mbrlen: Fix cross-compilation guess for AIX.
25657         * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE): Fix cross-compilation
25658         guess. Leftover from 2008-12-22.
25659
25660 2010-07-30  Bruno Haible  <bruno@clisp.org>
25661
25662         mbrtowc: Fix cross-compilation guess for AIX.
25663         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE): Fix cross-compilation
25664         guess. Leftover from 2008-12-21.
25665
25666 2010-07-29  Peter O'Gorman  <pogma@thewrittenword.com>  (tiny change)
25667
25668         init.sh: work around trap limitation of some shells
25669         * tests/init.sh (setup_): Move exit trap outside of shell function.
25670
25671 2010-07-29  Eric Blake  <eblake@redhat.com>
25672
25673         strtod: aid debugging
25674         * m4/strtod.m4(gl_FUNC_STRTOD): Use distinct exit status to aid
25675         understanding why strtod is rejected.
25676
25677 2010-07-28  Bruno Haible  <bruno@clisp.org>
25678
25679         unistr/u*-chr, unistr/u*-strchr: Fix link errors and warnings.
25680         * lib/unistr/u8-chr.c: Include <string.h>.
25681         * tests/unistr/test-u8-chr.c: Likewise.
25682         * tests/unistr/test-u16-chr.c: Likewise.
25683         * tests/unistr/test-u32-chr.c: Likewise.
25684         * tests/unistr/test-u8-strchr.c: Likewise.
25685         * tests/unistr/test-u16-strchr.c: Likewise.
25686         * tests/unistr/test-u32-strchr.c: Likewise.
25687         * modules/unistr/u8-chr-tests (Depends-on): Add unistr/u32-set.
25688         * modules/unistr/u16-chr-tests (Depends-on): Likewise.
25689         * modules/unistr/u8-strchr-tests (Depends-on): Likewise.
25690         * modules/unistr/u16-strchr-tests (Depends-on): Likewise.
25691
25692 2010-07-28  Bruno Haible  <bruno@clisp.org>
25693
25694         Use spaces for indentation, not tabs.
25695         * lib/**/*.[hcy] except lib/reg*.[hc]: Untabify.
25696
25697 2010-07-27  Bruno Haible  <bruno@clisp.org>
25698
25699         mbspcasecmp: Fix function specification.
25700         * lib/string.in.h (mbspcasecmp): Fix specification comment.
25701         * lib/mbspcasecmp.c (mbspcasecmp): Likewise.
25702         Reported by Eric Blake <eblake@redhat.com>.
25703
25704 2010-07-26  Paul R. Eggert  <eggert@cs.ucla.edu>
25705
25706         timespec: use cast and not conditional, as truncation isn't possible
25707         * lib/timespec.h (timespec_cmp): Use cast to pacify gcc -Wconversion
25708         instead of a conditional.  Comment about the situation in more detail.
25709         This undoes most of the 2009-10-29 patch.
25710
25711 2010-07-23  Paolo Bonzini  <pbonzini@redhat.com>
25712
25713         unistr/u8-chr, unistr/u8-strchr: use Boyer-Moore like algorithm.
25714         * lib/unistr/u8-chr.c: Add Boyer-Moore like operation.
25715         * lib/unistr/u8-strchr.c: Likewise.
25716         * modules/unistr/u8-chr: Depend on memchr.
25717
25718         unistr/u*-strchr: add tests
25719         * modules/unistr/u8-strchr-tests: New file.
25720         * modules/unistr/u16-strchr-tests: New file.
25721         * modules/unistr/u32-strchr-tests: New file.
25722         * tests/unistr/test-strchr.h: New file.
25723         * tests/unistr/test-u8-strchr.c: New file.
25724         * tests/unistr/test-u16-strchr.c: New file.
25725         * tests/unistr/test-u32-strchr.c: New file.
25726
25727         unistr/u*-chr: test multibyte sequences more
25728         * tests/unistr/test-chr.h: Do complete testing of the characters in the
25729         test vector.
25730         * tests/unistr/test-u8-chr.c (U_UCTOMB): Define.
25731         * tests/unistr/test-u16-chr.c (U_UCTOMB): Likewise.
25732         * tests/unistr/test-u32-chr.c (U_UCTOMB): Likewise.
25733
25734         unistr/u*-chr: test multibyte sequences
25735         * tests/unistr/test-chr.h: Put characters above 0-127 in the test input.
25736
25737         unistr/u*-chr: prepare for multibyte tests
25738         * modules/unistr/u8-chr-tests: Depend on u32-to-u8.
25739         * modules/unistr/u16-chr-tests: Depend on u32-to-u16.
25740         * tests/unistr/test-chr.h: Build initial version as UCS-4 then convert.
25741         * tests/unistr/test-u8-chr.c (U32_TO_U): Define.
25742         * tests/unistr/test-u16-chr.c (U32_TO_U): Likewise.
25743         * tests/unistr/test-u32-chr.c (U32_TO_U): Likewise.
25744
25745 2010-07-18  Bruno Haible  <bruno@clisp.org>
25746
25747         unistr/u8-strchr: Optimize non-ASCII argument case.
25748         * lib/unistr/u8-strchr.c (u8_strchr): Compare the last byte first,
25749         because the first byte often matches anyway.
25750         Reported by Pádraig Brady <P@draigbrady.com>.
25751
25752 2010-07-15  Karl Berry  <karl@gnu.org>
25753
25754         * config/srclist.txt (fdl.texi): only one copy, from gnustandards.
25755
25756 2010-07-14  Paul R. Eggert  <eggert@cs.ucla.edu>
25757
25758         getcwd: on Solaris, work better if ancestors are inaccessible
25759         * lib/getcwd.c (__getcwd): If getcwd returns EINVAL for zero
25760         buffer and size, try again with a large buffer.  This works better
25761         on Solaris, since its getcwd succeeds even if the path to the root
25762         is inaccessible, and this is helpful in common cases such as .zfs
25763         hidden directories.  Problem reported by J Chapman Flack in
25764         http://lists.gnu.org/archive/html/bug-tar/2010-06/msg00000.html
25765         Use system getcwd if it's declared, not merely if it's partly
25766         working; use the partly-working test only to avoid needless effort
25767         if the system getcwd fails.
25768         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Omit
25769         comment that was already obsolete and is now even more obsolete.
25770         * modules/getcwd (Depends-on): Depend on strdup, since __getcwd
25771         now might call strdup.
25772
25773 2010-07-13  Paul R. Eggert  <eggert@cs.ucla.edu>
25774
25775         pthread: Add enough so that coreutils/src/sort.c compiles.
25776         * lib/pthread.in.h: Add self to author comment.  Conditionalize on
25777         _GL_PTHREAD_H, not PTHREAD_H_, for consistency with the rest of
25778         gnulib. Include <sched.h> and <time.h>, as per POSIX.
25779         Include <sys/types.h>, in case it defines pthread_t.
25780         (pthread_t, pthread_attr_t, pthread_barrier_t, pthread_barrierattr_t):
25781         (pthread_cond_t, pthread_condattr_t, pthread_key_t, pthread_mutex_t):
25782         (pthread_mutexattr_t, pthread_once_t, pthread_rwlock_t):
25783         (pthread_rwlockattr_t, pthread_spinlock_t):
25784         New typedefs, if HAVE_PTHREAD_T is not defined.
25785         (PTHREAD_COND_INITIALIZER, PTHREAD_MUTEX_INITIALIZER):
25786         (PTHREAD_ONCE_INIT, PTHREAD_RWLOCK_INITIALIZER):
25787         (PTHREAD_BARRIER_SERIAL_THREAD, PTHREAD_CANCEL_DEFERRED):
25788         (PTHREAD_CANCEL_ASYNCHRONOUS, PTHREAD_CANCEL_ENABLE):
25789         (PTHREAD_CANCEL_DISABLE, PTHREAD_CANCELED, PTHREAD_CREATE_JOINABLE):
25790         (PTHREAD_CREATE_DETACHED, PTHREAD_INHERIT_SCHED):
25791         (PTHREAD_EXPLICIT_SCHED, PTHREAD_MUTEX_DEFAULT, PTHREAD_MUTEX_NORMAL):
25792         (PTHREAD_MUTEX_ERRORCHECK, PTHREAD_MUTEX_RECURSIVE):
25793         (PTHREAD_MUTEX_STALLED, PTHREAD_MUTEX_ROBUST, PTHREAD_PRIO_NONE):
25794         (PTHREAD_PRIO_INHERIT, PTHREAD_PRIO_PROTECT, PTHREAD_PROCESS_PRIVATE):
25795         (PTHREAD_PROCESS_SHARED, PTHREAD_SCOPE_SYSTEM, PTHREAD_SCOPE_PROCESS):
25796         New macros.
25797         (pthread_cond_destroy, pthread_cond_init, pthread_cond_signal):
25798         (pthread_cond_wait, pthread_exit, pthread_mutex_destroy):
25799         (pthread_mutex_init, pthread_mutex_lock, pthread_mutex_unlock):
25800         (pthread_spin_init, pthread_spin_lock, pthread_spin_trylock);
25801         (pthread_spin_unlock): New dummy functions.
25802         (pthread_create): Return EAGAIN; don't set errno.
25803         * m4/pthread.m4 (gl_PTHREAD_CHECK): Check for pthread_t, and
25804         require AC_C_INLINE.
25805         * modules/pthread (Depends-on): Add sched, time.
25806         (pthread.h): Use AM_V_GEN.
25807
25808 2010-07-13  Bruno Haible  <bruno@clisp.org>
25809
25810         striconveh: Don't malloc memory if the result buffer is sufficient.
25811         * lib/striconveh.c (mem_cd_iconveh_internal): Use the provided result
25812         buffer if its size is sufficient.
25813         Reported by Ludovic Courtès <ludo@gnu.org>.
25814
25815 2010-07-13  Bruno Haible  <bruno@clisp.org>
25816
25817         strtod: Add safety check.
25818         * lib/strtod.c (ldexp): Abort if this dummy replacement gets called.
25819
25820 2010-07-12  Bruno Haible  <bruno@clisp.org>
25821
25822         Unify tests that set gl_cv_func_ldexpl_no_libm.
25823         * m4/ldexpl.m4 (gl_CHECK_LDEXPL_NO_LIBM): New macro, extracted from
25824         gl_FUNC_LDEXPL.
25825         (gl_FUNC_LDEXPL): Invoke it.
25826         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
25827
25828 2010-07-12  Bruno Haible  <bruno@clisp.org>
25829
25830         Unify tests that set gl_cv_func_ldexp_no_libm.
25831         * m4/ldexp.m4: New file, based on m4/mathfunc.m4.
25832         * m4/strtod.m4 (gl_PREREQ_STRTOD): Require gl_CHECK_LDEXP_NO_LIBM.
25833         * modules/ldexp (Files): Remove m4/mathfunc.m4. Add m4/ldexp.m4.
25834         (configure.ac): Simply invoke gl_FUNC_LDEXP.
25835         * modules/strtod (Files): Add m4/ldexp.m4.
25836
25837 2010-07-12  Bruno Haible  <bruno@clisp.org>
25838
25839         Unify tests that set gl_cv_func_frexpl_no_libm.
25840         * m4/frexpl.m4 (gl_CHECK_FREXPL_NO_LIBM): New macro, extracted from
25841         gl_FUNC_FREXPL_NO_LIBM.
25842         (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): Invoke it.
25843         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
25844
25845 2010-07-12  Bruno Haible  <bruno@clisp.org>
25846
25847         Unify tests that set gl_cv_func_frexp_no_libm.
25848         * m4/frexp.m4 (gl_CHECK_FREXP_NO_LIBM): New macro, extracted from
25849         gl_FUNC_FREXP_NO_LIBM.
25850         (gl_FUNC_FREXP, gl_FUNC_FREXP_NO_LIBM): Require it.
25851         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Likewise.
25852
25853 2010-07-12  Paul R. Eggert  <eggert@cs.ucla.edu>
25854
25855         memcoll: clarify sizes versus lengths, document better, and tweak perf
25856         * lib/memcoll.c (strcoll_loop, memcoll0):
25857         Improve quality of descriptive comments.  Name variables
25858         consistently as to whether they are lengths (which do not include
25859         terminating null) versus sizes (which do).
25860         * lib/xmemcoll.c (xmemcoll0): Likewise.
25861         * lib/memcoll.c (strcoll_loop): Tweak the way that the diff is
25862         returned when s1size == 0; this is easier to compile and saves
25863         about 17% of memcoll's code space on x86-64 with GCC 4.1.2.
25864
25865 2010-07-12  Bruno Haible  <bruno@clisp.org>
25866
25867         Tests for module '_Exit'.
25868         * modules/_Exit-tests: New file.
25869         * tests/test-_Exit.sh: New file.
25870         * tests/test-_Exit.c: New file.
25871
25872         New module '_Exit'.
25873         * lib/stdlib.in.h (__attribute__): New macro.
25874         (_Exit): New declaration.
25875         * lib/_Exit.c: New file.
25876         * m4/_Exit.m4: New file.
25877         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether _Exit is declared.
25878         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB__EXIT and HAVE__EXIT.
25879         * modules/stdlib (Makefile.am): Substitute GNULIB__EXIT and HAVE__EXIT.
25880         * modules/_Exit: New file.
25881         * tests/test-stdlib-c++.cc (_Exit): Check signature.
25882         * doc/posix-functions/_Exit_C99.texi: Mention the new module.
25883
25884 2010-07-12  Paul R. Eggert  <eggert@cs.ucla.edu>
25885
25886         strtod: make it more-accurate typically, and don't require libm
25887         * lib/strtod.c (_GL_ARG_NONNULL): Remove; no longer needed.
25888         Include limits.h.  Don't include string.h.
25889         (HAVE_LDEXP_IN_LIBC, HAVE_RAW_DECL_STRTOD): Define to 0 if not defined.
25890         (locale_isspace): New function, so that no casts are needed to
25891         check whether *s is a space.
25892         (ldexp): Provide an unused dummy if not available.
25893         (scale_radix_exp, parse_number, underlying_strtod): New functions.
25894         (strtod): Use them.  This implementation prefers to use the
25895         underlying strtod if available, falling back on our own code
25896         only to fix known bugs.  This is more likely to produce an
25897         accurate result.  Also, it avoids the use of libm functions.
25898         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't invoke _AC_LIBOBJ_STRTOD;
25899         no longer needed.  Invoke AC_LIBOBJ([strtod]); don't know why this
25900         was absent, but it caused a test failure with coreutils.
25901         (gl_PREREQ_STRTOD): Check wither ldexp can be used without linking
25902         with libm.
25903         * modules/strtod (Makefile.am, Link): libm is no longer needed.
25904         * modules/strtod-tests (Makefile.am): Likewise.
25905
25906 2010-07-11  Pádraig Brady  <P@draigBrady.com>
25907             Bruno Haible  <bruno@clisp.org>
25908
25909         unistr/u8-strchr: Optimize ASCII argument case.
25910         * lib/unistr/u8-strchr.c (u8_strchr): For ASCII arguments, use strchr.
25911
25912 2010-07-08  Paul Eggert  <eggert@cs.ucla.edu>
25913
25914         (x)memcoll: minor tweaks
25915         * lib/memcoll.c (strcoll_loop): Prefer the style where 'const'
25916         is after the type that it qualifies.
25917         (memcoll0): Likewise.
25918         * lib/memcoll.h (memcoll0): Likewise.
25919         * lib/xmemcoll.c (collate_error, xmemcoll0): Likewise.
25920         * lib/xmemcoll.h (xmemcoll0): Likewise.
25921         * lib/memcoll.c (memcoll0): Correct the comment.  This function
25922         differs from memcoll in that the NUL byte is part of the argument.
25923         Omit the abort-checks, as performance is a real issue here.  Plus,
25924         the checks were wrong anyway (an off-by-one error).  Omit local
25925         variable 'diff', as it's a bit clearer that way.
25926         * m4/memcoll.m4 (gl_MEMCOLL): Omit AC_FUNC_STRCOLL, as it's
25927         no longer needed.
25928
25929 2010-07-08  Chen Guo <chenguo4@yahoo.com>
25930
25931         (x)memcoll: speedup when input is known to be NUL delimited
25932         * lib/memcoll.c: Include stdlib.
25933         (memcoll0): New function.
25934         (strcoll_loop): New function, refactored for use in both memcoll
25935         and memcoll0.
25936         * lib/memcoll.h (memcoll0): Add prototype.
25937         * lib/xmemcoll.c (xmemcoll0): New function.
25938         (collate_error): New function, refactored for use in both xmemcoll
25939         and xmemcoll0.
25940         * lib/xmemcoll.h (xmemcoll0): Add prototype.
25941         * m4/memcoll.m4: add inline invocation.
25942
25943 2010-07-06  Pádraig Brady  <P@draigBrady.com>
25944
25945         * build-aux/bootstrap: Remove any local translations
25946         from the translation project synchronization directory,
25947         so that local only translations are not distributed.
25948
25949 2010-07-04  Bruno Haible  <bruno@clisp.org>
25950
25951         fsusage: Clarify which code applies to which platforms.
25952         * m4/fsusage.m4 (gl_FSUSAGE): Clarify which test succeeds on which
25953         platform.
25954         * lib/fsusage.c (get_fs_usage): Likewise.
25955
25956 2010-07-04  Bruno Haible  <bruno@clisp.org>
25957
25958         havelib: Fix bug when AC_LIB_FROMPACKAGE is used more than twice.
25959         * m4/lib-link.m4 (AC_LIB_FROMPACKAGE): Use m4_defn.
25960         Reported by Martin Lambers <marlam@marlam.de>.
25961
25962 2010-07-04  Jim Meyering  <meyering@redhat.com>
25963
25964         hash: once again explicitly disallow insertion of NULL
25965         * lib/hash.c (hash_insert0): Reinstate just-removed test:
25966         inserting a NULL pointer cannot work with these functions.
25967         Add a comment with details.
25968         This reverts part of the 2010-07-01 commit, 5bef1a35
25969         "hash: extend module to deal with non-pointer keys".
25970
25971 2010-07-01  Bruno Haible  <bruno@clisp.org>
25972
25973         stdbool: Update doc.
25974         * doc/posix-headers/stdbool.texi: Mention OpenBSD bug.
25975         Info from Christian Weisgerber <naddy@mips.inka.de>.
25976
25977 2010-07-01  Jim Meyering  <meyering@redhat.com>
25978
25979         hash: extend module to deal with non-pointer keys
25980         * lib/hash.c (hash_insert0): New interface, much like hash_insert
25981         but that allows insertion of non-pointer entries.
25982         Do not disallow an ENTRY value of NULL.
25983         (hash_insert): This is now just a thin wrapper.  Call hash_insert0.
25984         * lib/hash.h (hash_insert0): Declare.
25985
25986 2010-07-01  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
25987
25988         gettext: Use AC_GNU_SOURCE as a fallback for AC_USE_SYSTEM_EXTENSIONS.
25989         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): When AC_USE_SYSTEM_EXTENSIONS is
25990         not present (i.e. with autoconf 2.59 and when using gettextize, not
25991         gnulib), require AC_GNU_SOURCE instead.
25992
25993 2010-07-01  Ian Beckwith  <ianb@erislabs.net>
25994
25995         idpriv-drop: Fix tests.
25996         * tests/test-idpriv-drop.su.sh: Refer to the test-idpriv-drop program,
25997         not to the test-idpriv-droptemp program.
25998
25999 2010-06-29  Bruno Haible  <bruno@clisp.org>
26000
26001         string: Fix syntax error with g++ 2.96.
26002         * lib/string.in.h (__pure__): Remove definition.
26003         (_GL_ATTRIBUTE_PURE): New macro.
26004         (memchr, memmem, memrchr, rawmemchr, strchrnul, strnlen, strpbrk,
26005         strstr, strcasestr): Use it instead of __attribute__ ((__pure__)).
26006         Reported by Christian Weisgerber <naddy@mips.inka.de>.
26007
26008 2010-06-28  Ian Beckwith  <ianb@erislabs.net>
26009
26010         unitypes: Fix bug introduced on 2010-05-18.
26011         * modules/unitypes (Files): Really add m4/libunistring-base.m4.
26012
26013 2010-06-22  Eric Blake  <eblake@redhat.com>
26014
26015         memmem: slight optimization
26016         * lib/str-two-way.h (critical_factorization): Update comments.
26017         Reduce work during factorization phase.
26018         Reported by Carlos Bueno <carlos@bueno.org>.
26019
26020 2010-06-21  Bruno Haible  <bruno@clisp.org>
26021
26022         Fix HAVE_CALLOC_POSIX misnomer.
26023         * lib/stdlib.in.h (calloc): Use REPLACE_CALLOC instead of
26024         !HAVE_CALLOC_POSIX.
26025         * m4/calloc.m4 (gl_REPLACE_CALLOC): Set REPLACE_CALLOC instead of
26026         HAVE_CALLOC_POSIX.
26027         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_CALLOC
26028         instead of HAVE_CALLOC_POSIX.
26029         * modules/stdlib (Makefile.am): Substitute REPLACE_CALLOC instead of
26030         HAVE_CALLOC_POSIX.
26031
26032         Use modern idiom for calloc() replacement.
26033         * modules/calloc (configure.ac): Invoke gl_FUNC_CALLOC_GNU instead of
26034         AC_FUNC_CALLOC.
26035         * m4/calloc.m4 (gl_FUNC_CALLOC_GNU): Renamed from AC_FUNC_CALLOC.
26036         Require gl_STDLIB_H_DEFAULTS. Invoke gl_REPLACE_CALLOC.
26037         (gl_FUNC_CALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
26038         HAVE_CALLOC_POSIX. Invoke gl_REPLACE_CALLOC.
26039         (gl_REPLACE_CALLOC): New macro.
26040
26041 2010-06-21  Bruno Haible  <bruno@clisp.org>
26042
26043         Fix HAVE_REALLOC_POSIX misnomer.
26044         * lib/stdlib.in.h (realloc): Use REPLACE_REALLOC instead of
26045         !HAVE_REALLOC_POSIX.
26046         * m4/realloc.m4 (gl_REPLACE_REALLOC): Set REPLACE_REALLOC instead of
26047         HAVE_REALLOC_POSIX.
26048         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_REALLOC
26049         instead of HAVE_REALLOC_POSIX.
26050         * modules/stdlib (Makefile.am): Substitute REPLACE_REALLOC instead of
26051         HAVE_REALLOC_POSIX.
26052
26053         Use modern idiom for realloc() replacement.
26054         * modules/realloc (configure.ac): Invoke gl_FUNC_REALLOC_GNU instead of
26055         AC_FUNC_REALLOC.
26056         * m4/realloc.m4 (gl_FUNC_REALLOC_GNU): New macro, mostly copied from
26057         Autoconf's AC_FUNC_REALLOC.
26058         (gl_FUNC_REALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
26059         HAVE_REALLOC_POSIX. Invoke gl_REPLACE_REALLOC.
26060         (gl_REPLACE_REALLOC): New macro.
26061         Reported by Richard Lloyd <richard.lloyd@connectinternetsolutions.com>.
26062
26063 2010-06-21  Bruno Haible  <bruno@clisp.org>
26064
26065         Fix HAVE_MALLOC_POSIX misnomer.
26066         * lib/stdlib.in.h (malloc): Use REPLACE_MALLOC instead of
26067         !HAVE_MALLOC_POSIX.
26068         * m4/malloc.m4 (gl_REPLACE_MALLOC): Set REPLACE_MALLOC instead of
26069         HAVE_MALLOC_POSIX.
26070         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_MALLOC
26071         instead of HAVE_MALLOC_POSIX.
26072         * modules/stdlib (Makefile.am): Substitute REPLACE_MALLOC instead of
26073         HAVE_MALLOC_POSIX.
26074
26075         Use modern idiom for malloc() replacement.
26076         * modules/malloc (configure.ac): Invoke gl_FUNC_MALLOC_GNU instead of
26077         AC_FUNC_MALLOC.
26078         * m4/malloc.m4 (gl_FUNC_MALLOC_GNU): New macro, mostly copied from
26079         Autoconf's AC_FUNC_MALLOC.
26080         (gl_FUNC_MALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
26081         HAVE_MALLOC_POSIX. Invoke gl_REPLACE_MALLOC.
26082         (gl_REPLACE_MALLOC): New macro.
26083         Reported by Richard Lloyd <richard.lloyd@connectinternetsolutions.com>.
26084
26085 2010-06-20  Richard Lloyd  <richard.lloyd@connectinternetsolutions.com>
26086
26087         stdio.in.h: fix compilation failure when using HP-UX 11's C compiler
26088         * lib/stdio.in.h: Remove excess _GL_CXXALIAS_RPL macro argument.
26089         This macro takes 3 arguments, not 4.
26090
26091 2010-06-15  Giuseppe Scrivano  <gscrivano@gnu.org>
26092
26093         ipv6: fix detection under mingw
26094         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Include <ws2tcpip.h> for struct
26095         in6_addr.
26096
26097 2010-06-14  Ben Pfaff  <blp@cs.stanford.edu>
26098
26099         * m4/strtod.m4 (gl_FUNC_STRTOD): Factor out common code.  Assume
26100         that strtod() works when cross-compiling to a glibc version known
26101         to work.
26102
26103 2010-06-15  Bruno Haible  <bruno@clisp.org>
26104
26105         * m4/strtod.m4 (gl_FUNC_STRTOD): Stop using AC_FUNC_STRTOD.
26106
26107 2010-06-15  René Berber  <r.berber@computer.org>  (tiny change)
26108
26109         select: Correct timeout.
26110         * lib/select.c (rpl_select): Compute wait_timeout correctly.
26111
26112 2010-06-14  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
26113
26114         git-version-gen: init shell var to avoid env var influence
26115         * build-aux/git-version-gen (v): Init shell var to empty.
26116
26117 2010-06-14  Paul Eggert  <eggert@cs.ucla.edu>
26118
26119         priv-set: Don't assume that priv.h exists merely because getppriv does.
26120         See Jan Andersen's bug report about AIX 5L in
26121         http://lists.gnu.org/archive/html/bug-tar/2010-06/msg00019.html
26122         * m4/priv-set.m4 (gl_PRIV_SET): Check for priv.h.
26123         * lib/priv-set.c: Do nothing unless HAVE_PRIV_H.
26124         * lib/priv-set.h: Likewise.
26125         * tests/test-priv-set.c: Likewise.
26126
26127 2010-06-13  Bruno Haible  <bruno@clisp.org>
26128
26129         relocatable: Make it easier to test whether to install wrappers.
26130         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): New automake conditional
26131         RELOCATABLE_VIA_WRAPPER.
26132
26133 2010-06-13  Bruno Haible  <bruno@clisp.org>
26134
26135         gnulib-tool: Display specified modules and dependencies differently.
26136         * gnulib-tool (func_show_module_list): New function.
26137         (func_import, func_create_testdir): Invoke it.
26138         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
26139
26140 2010-06-13  Bruno Haible  <bruno@clisp.org>
26141
26142         gnulib-tool: Align code of func_import and func_create_testdir.
26143         * gnulib-tool (func_create_testdir): Rename variable saved_modules to
26144         specified_modules.
26145
26146 2010-06-12  Jim Meyering  <meyering@redhat.com>
26147
26148         test-inttostr: avoid spurious failure on Solaris 9
26149         * tests/test-inttostr.c (main): Skip the test when snprintf fails
26150         to accept "%ju".  Reported by Bruno Haible.
26151
26152 2010-06-11  Jim Meyering  <meyering@redhat.com>
26153
26154         test-sys_socket: mark variables as used more readably
26155         * tests/test-sys_socket.c (main): Mark otherwise unused variables
26156         as "used" explicitly via (void) statement casts.  This is more
26157         readable than using them in an artificial return expression.
26158         Suggestion from Bruno Haible.
26159
26160 2010-06-11  Bruno Haible  <bruno@clisp.org>
26161
26162         Avoid some more warnings from "gcc -Wwrite-strings".
26163         * tests/test-argp.c (test_optional): Change 5th and 6th argument type
26164         to 'const char *'.
26165         * tests/test-c-strstr.c (main): Add 'const' to variable declaration.
26166         * tests/test-c-strcasestr.c (main): Likewise.
26167         * tests/test-mbscasestr1.c (main): Likewise.
26168         * tests/test-mbscasestr2.c (main): Likewise.
26169         * tests/test-memmem.c (main): Likewise.
26170         * tests/test-strstr.c (main): Likewise.
26171         * tests/test-strcasestr.c (main): Likewise.
26172
26173 2010-06-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
26174
26175         init.sh: change framework_failure_ to fail with status 99, not 1
26176         * tests/init.sh (framework_failure_): Exit 99, not 1.  This informs
26177         automake's parallel-tests rule that this is an unexpected failure,
26178         even if the test is listed in XFAIL_TESTS.
26179
26180 2010-06-11  Jim Meyering  <meyering@redhat.com>
26181
26182         test-inttostr: avoid warnings about 4-6KB literal strings
26183         * tests/test-inttostr.c: Don't use <assert.h>.  Instead, ...
26184         Include "macros.h", for its definition of ASSERT.
26185         (CK): s/assert/ASSERT/
26186         * modules/inttostr-tests (Files): Add macros.h.
26187
26188         init.sh: don't use $ME_ or skip_ before they are defined
26189         * tests/init.sh: Hoist definitions of $ME_ and skip_ to precede
26190         their first uses.  Also hoist their companions: warn_, fail_,
26191         framework_failure_, $stderr_fileno.  Prompted by a patch from
26192         Stefano Lattarini.
26193
26194         test-sys_socket: avoid set-but-not-used warnings from gcc
26195         * tests/test-sys_socket.c (main): Use "i" and "x", in order to
26196         avoid warning about set-but-not-used variables.
26197
26198         test-xvasprintf: avoid 'const' discard warnings
26199         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Use
26200         "const" when assigning from literal strings.
26201         (test_xasprintf): Add "void" in function argument list to placate
26202         -Wstrict-prototypes and to be consistent with test_xvasprintf above.
26203
26204         tests: avoid compilation warnings in argmatch and exclude tests...
26205         in packages that define ARGMATCH_DIE_DECL, like coreutils.
26206         * tests/test-exclude.c [ARGMATCH_DIE_DECL]: Also declare the function.
26207         Since it always exits, declare with the "noreturn" attribute.
26208         * tests/test-argmatch.c: Likewise.
26209
26210         tests: avoid 'const' discard warnings in mbsstr tests
26211         * tests/test-mbsstr1.c (main): Add "const" to avoid trivial warning.
26212         * tests/test-mbsstr2.c (main): Likewise.
26213
26214         test-verify: avoid warning from gcc's -Wmissing-declarations
26215         * tests/test-verify.c (function): Declare to be static.
26216
26217         test-inttostr.c: include <string.h> for use of strcmp
26218         * tests/test-inttostr.c: Include <string.h> for strcmp declaration.
26219
26220         test-linkat: avoid failed assertion on "other" architectures
26221         * tests/test-linkat.c: Include <sys/stat.h>, for declarations of stat,
26222         lstat, mkdir.  Patch by John Rigby, to fix FTBFS on armel, powerpc,
26223         sparc: https://bugs.launchpad.net/bugs/591968
26224
26225 2010-06-11  Jim Meyering  <meyering@redhat.com>
26226
26227         printf.m4: avoid autoconf's "Expanded Before Required" warning
26228         * m4/printf.m4 (gl_SNPRINTF_RETVAL_C99): Define using AC_DEFUN_ONCE,
26229         rather than AC_DEFUN, to avoid the classic "Expanded Before Required"
26230         autoconf warning.
26231
26232 2010-06-10  Ben Pfaff  <blp@cs.stanford.edu>
26233
26234         Replacement header templates are now named with ".in", not "_".
26235         * doc/gnulib-intro.texi: Correct.
26236
26237 2010-06-10  Jim Meyering  <meyering@redhat.com>
26238
26239         inttostr-tests: depend on snprintf, not snprintf-posix
26240         * modules/inttostr-tests (Depends-on): Depend on snprintf, not
26241         snprintf-posix, to avoid this aclocal failure:
26242           missing file gnulib-tests/vasnprintf.c
26243           configure.ac:45: error: expected source file, required through \
26244           AC_LIBSOURCES, not found
26245
26246 2010-06-10  Jim Meyering  <meyering@redhat.com>
26247
26248         inttostr: add a new function, inttostr, and tests
26249         The namesake function was not available.  The existence of the
26250         template file, inttostr.c makes its addition nontrivial.
26251         * lib/anytostr.c: Rename from inttostr.c.
26252         (anytostr): Rename from inttostr.
26253         * lib/inttostr.c: New file.
26254         * modules/inttostr (Files): Add anytostr.c.
26255         (Makefile.am): Set lib_SOURCES instead of ...
26256         * m4/inttostr.m4: Remove uses of AC_LIBOBJ.
26257         * lib/imaxtostr.c: Update use.  s/inttostr/anytostr/
26258         * lib/offtostr.c: Likewise.
26259         * lib/uinttostr.c: Likewise.
26260         * lib/umaxtostr.c: Likewise.
26261         * modules/inttostr-tests: New file.
26262         * tests/test-inttostr.c: New file.  Test these functions.
26263
26264 2010-06-09  Ben Pfaff  <blp@cs.stanford.edu>
26265             Bruno Haible  <bruno@clisp.org>
26266
26267         Add "Extending Gnulib" chapter to manual.
26268         * doc/gnulib.texi (Writing Modules): Add cross-reference to new
26269         chapter.
26270         (Extending Gnulib): New chapter.
26271         * doc/gnulib-intro.texi (Openness): Add cross-reference to new
26272         chapter.
26273
26274 2010-06-09  Bruno Haible  <bruno@clisp.org>
26275
26276         Avoid relocwrapper link errors due to gnulib replacement functions.
26277         * lib/areadlink.c: Use the system's malloc, realloc functions.
26278         (areadlink): Set errno to ENOMEM explicitly.
26279         * modules/areadlink (Depends-on): Remove malloc-posix.
26280         Reported by Ben Pfaff <blp@cs.stanford.edu>.
26281
26282 2010-06-09  Bruno Haible  <bruno@clisp.org>
26283
26284         Avoid relocwrapper link errors due to gnulib replacement functions.
26285         * lib/canonicalize-lgpl.c: Use the system's malloc function.
26286         * lib/malloca.c: Likewise.
26287         * lib/relocatable.c: Likewise.
26288         * lib/progreloc.c: Use the system's malloc, sprintf functions.
26289         * lib/relocwrapper.c: Use the system's fprintf, malloc functions.
26290         * lib/setenv.c: Use the system's malloc, realloc functions.
26291         * lib/strerror.c: Use the system's sprintf function.
26292         Reported by Ben Pfaff <blp@cs.stanford.edu>.
26293
26294 2010-06-04  Bruno Haible  <bruno@clisp.org>
26295
26296         Prefer documented low-level autoconf macro names.
26297         * m4/lib-link.m4: Use m4_translit instead of translit.
26298         * m4/environ.m4: Likewise.
26299         * m4/mathfunc.m4: Likewise.
26300         * m4/onceonly.m4: Likewise.
26301         * m4/stdint.m4: Likewise.
26302         Suggested by Eric Blake.
26303
26304 2010-06-04  Martin Lambers  <marlam@marlam.de>
26305             Bruno Haible  <bruno@clisp.org>
26306
26307         havelib: Allow library names with '+' characters.
26308         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
26309         AC_LIB_FROMPACKAGE, AC_LIB_LINKFLAGS_BODY): Convert '+' in name to '_'.
26310
26311 2010-06-09  Bruno Haible  <bruno@clisp.org>
26312
26313         Module setenv does not depend on 'malloc-posix', 'realloc-posix'.
26314         * lib/setenv.c (__add_to_environ): Set errno to ENOMEM when malloc or
26315         realloc failed.
26316
26317 2010-06-08  Peter Simons  <simons@cryp.to>
26318
26319         maint.mk: make the news-check rule more configurable
26320         * top/maint.mk (news-check-lines-spec): New variable.
26321         (news-check): Use "sed -n 1,10p" in place of "head".
26322
26323 2010-06-07  Jim Meyering  <meyering@redhat.com>
26324
26325         do-release-commit-and-tag: fix typo in --help
26326         * build-aux/do-release-commit-and-tag (Usage): Fix typo in --help.
26327
26328         regex: avoid new dead-code warning with gcc-4.6.0
26329         * lib/regex_internal.c (re_string_reconstruct): #if-0-out a dead
26330         if-block containing a while-loop.  It's been unused for at least
26331         5 years.
26332
26333 2010-06-05  Bruno Haible  <bruno@clisp.org>
26334
26335         * doc/posix-functions/strcoll.texi: Mention Solaris limitation.
26336         Reported by River Tarnell <river.tarnell@wikimedia.de> via Eric Blake.
26337
26338 2010-06-04  Bruno Haible  <bruno@clisp.org>
26339
26340         Update to GNU gettext 0.18.1.
26341         * modules/gettext (configure.ac): Require gettext infrastructure from
26342         version 0.18.1.
26343
26344 2010-06-03  Bruno Haible  <bruno@clisp.org>
26345
26346         Don't use AC_LIBOBJ with file names in subdirectories.
26347         * m4/libunistring-base.m4 (gl_LIBUNISTRING_MODULE): Renamed from
26348         gl_LIBUNISTRING_LIBSOURCE. Take a module name as argument, not a file
26349         name. Define an automake conditional. Don't invoke AC_LIBOBJ.
26350         * m4/libunistring.m4 (gl_LIBUNISTRING): Update AC_BEFORE invocation.
26351         * modules/uni*/* (configure.ac): Use gl_LIBUNISTRING_MODULE instead of
26352         gl_LIBUNISTRING_LIBSOURCE.
26353         (Makefile.am): Augment lib_SOURCES here, conditionally.
26354         * NEWS: Drop requirement for Automake option 'subdir-objects'.
26355
26356 2010-06-03  Bruno Haible  <bruno@clisp.org>
26357
26358         Simplify gl_LIBUNISTRING_VERSION_CMP expansion.
26359         * m4/libunistring-base.m4 (gl_LIBUNISTRING_VERSION_CMP): Ensure
26360         expansion does not end with a newline.
26361         (gl_LIBUNISTRING_LIBSOURCE, gl_LIBUNISTRING_LIBHEADER): Avoid
26362         unnecessary newline.
26363
26364 2010-06-03  Bruno Haible  <bruno@clisp.org>
26365
26366         Reduce dependencies.
26367         * tests/test-quotearg.h: New file, extracted from
26368         tests/test-quotearg.c.
26369         * tests/test-quotearg-simple.c: New file, extracted from
26370         tests/test-quotearg.c.
26371         * tests/test-quotearg.c: Don't include <ctype.h>.
26372         (struct result_strings, struct result_groups, LQ, RQ, LQ_ENC, RQ_ENC,
26373         RQ_ESC, inputs, compare, use_quotearg_buffer, use_quotearg,
26374         use_quote_double_quotes, use_quotearg_colon): Moved to
26375         tests/test-quotearg.h.
26376         (results_g, flag_results, custom_quotes, custom_results): Moved
26377         to tests/test-quotearg-simple.c.
26378         (main): Moved the part that does not depend on gettext to
26379         tests/test-quotearg-simple.c. Return 77 if the test cannot be
26380         performed.
26381         * modules/quotearg-simple: New file.
26382         * modules/quotearg-simple-tests: New file.
26383         * modules/quotearg (Depends-on): Add quotearg-simple.
26384         * modules/quotearg-tests (Status): Mark as gettext-dependent-test.
26385         (Files): Add tests/test-quotearg.h.
26386         Reported by Paolo Bonzini.
26387
26388 2010-06-03  Bruno Haible  <bruno@clisp.org>
26389
26390         Reduce dependencies.
26391         * modules/acl (Depends-on): Add gettext-h. Remove gettext.
26392
26393 2010-06-03  Bruno Haible  <bruno@clisp.org>
26394
26395         time: Undefine more broken macros.
26396         * lib/time.in.h: Undefine broken localtime_r and gmtime_r macros only
26397         for pthread-win32. Undefine also asctime_r, ctime_r, rand_r, strtok_r.
26398         Reported by Eric Blake.
26399
26400 2010-06-03  Bruno Haible  <bruno@clisp.org>
26401
26402         Choose among AC_DEFUN_ONCE, AC_DEFUN in a way that aclocal understands.
26403         * m4/iconv.m4 (gl_iconv_AC_DEFUN): New macro.
26404         (AM_ICONV): Define it through gl_iconv_AC_DEFUN.
26405         * m4/libunistring.m4 (gl_libunistring_AC_DEFUN): New macro.
26406         (gl_LIBUNISTRING): Define it through gl_libunistring_AC_DEFUN.
26407         Reported by Ludovic Courtès <ludo@gnu.org>.
26408
26409 2010-06-02  Eric Blake  <eblake@redhat.com>
26410
26411         time: work with mingw + pthreads-win32 library
26412         * m4/time_h.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Set new variable
26413         if timespec is defined only in pthread.h.
26414         * modules/time (Makefile.am): Substitute it.
26415         * lib/time.in.h (!TIME_H_DEFINES_STRUCT_TIMESPEC): Include
26416         <pthread.h>, when needed.
26417         (GNULIB_TIME_R): Undefine broken localtime_r and gmtime_r macros
26418         from the library.
26419
26420 2010-05-31  Bruno Haible  <bruno@clisp.org>
26421
26422         Avoid expanding two macros in the wrong order.
26423         * m4/libunistring-base.m4 (gl_LIBUNISTRING_LIB_PREPARE): Require
26424         gl_LIBUNISTRING if it is defined.
26425         * m4/libunistring.m4 (gl_LIBUNISTRING): Define using AC_DEFUN_ONCE for
26426         autoconf >= 2.64.
26427         Reported by Ludovic Courtès <ludo@gnu.org>.
26428
26429 2010-05-27  Jim Meyering  <meyering@redhat.com>
26430
26431         maint.mk: also prohibit "#undef" of always-defined symbols
26432         * top/maint.mk (def_sym_regex): Handle #undef as well as #define.
26433         Allow more than one space before the symbol name.
26434         (sc_prohibit_always-defined_macros): Use grep's -E, now that
26435         the regexp uses alternation.
26436
26437 2010-05-26  Eric Blake  <eblake@redhat.com>
26438
26439         maint.mk: avoid echo -e
26440         * top/maint.mk (gzip_rsyncable, _ignore_case, _sc_say_and_exit):
26441         Convert all uses of echo -* to printf.
26442         Reported by Matthias Bolte.
26443
26444 2010-05-25  Bruno Haible  <bruno@clisp.org>
26445
26446         Update to GNU gettext 0.18, part 2.
26447         * build-aux/po/Makefile.in.in: Update to GNU gettext 0.18.
26448         Reported by Martin von Gagern <Martin.vGagern@gmx.net>.
26449
26450 2010-05-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
26451
26452         Add missing include in test-pwrite.c.
26453         * tests/test-pwrite.c: Include string.h, for strcmp.
26454
26455 2010-05-24  Bruno Haible  <bruno@clisp.org>
26456
26457         * NEWS: Mention requirement for Automake option 'subdir-objects'.
26458
26459 2010-05-24  Bruno Haible  <bruno@clisp.org>
26460
26461         Don't use conversion with transliteration in u{8,16,32}_strcoll.
26462         * lib/unistr/u-strcoll.h (FUNC): Use U_STRCONV_TO_ENCODING with
26463         iconveh_error argument.
26464         * lib/unistr/u8-strcoll.c: Define U_STRCONV_TO_ENCODING instead of
26465         U_STRCONV_TO_LOCALE.
26466         * lib/unistr/u16-strcoll.c: Likewise.
26467         * lib/unistr/u32-strcoll.c: Likewise.
26468         * modules/unistr/u8-strcoll (Depends-on): Add
26469         uniconv/u8-strconv-to-enc, localcharset. Remove
26470         uniconv/u8-strconv-to-locale.
26471         (configure.ac): Bump version number.
26472         * modules/unistr/u16-strcoll (Depends-on): Add
26473         uniconv/u16-strconv-to-enc, localcharset. Remove
26474         uniconv/u16-strconv-to-locale.
26475         (configure.ac): Bump version number.
26476         * modules/unistr/u32-strcoll (Depends-on): Add
26477         uniconv/u32-strconv-to-enc, localcharset. Remove
26478         uniconv/u32-strconv-to-locale.
26479         (configure.ac): Bump version number.
26480
26481 2010-05-24  Bruno Haible  <bruno@clisp.org>
26482
26483         Avoid a test failure on NetBSD 5.0.
26484         * tests/test-striconveh.c (main): On NetBSD, skip a test that triggers
26485         an iconv() bug.
26486
26487 2010-05-24  Bruno Haible  <bruno@clisp.org>
26488
26489         Adjust #include directive style.
26490         * modules/regex (Includes): Recommend to write <regex.h>.
26491
26492 2010-05-24  Bruno Haible  <bruno@clisp.org>
26493
26494         regex: Don't require alloca.
26495         * modules/regex (Depends-on): Remove alloca. Add alloca-opt.
26496         * lib/regex_internal.h (alloca): Ensure it's defined even if we call it
26497         only inside if (0).
26498
26499 2010-05-23  Jim Meyering  <meyering@redhat.com>
26500
26501         test-renameat.c: include <sys/stat.h>
26502         * tests/test-renameat.c: Include <sys/stat.h>; required for
26503         definition of S_IS* macros.
26504
26505 2010-05-23  Ben Pfaff  <blp@cs.stanford.edu>
26506
26507         Update maintainer documentation for 'relocatable-prog' module.
26508         * doc/relocatable-maint.texi: Update.
26509         Comments by Bruno Haible.
26510
26511 2010-05-23  Bruno Haible  <bruno@clisp.org>
26512
26513         git-merge-changelog: Enable --split-merged-entry by default.
26514         * lib/git-merge-changelog.c (main): Set split_merged_entry to true.
26515         (usage): Don't mention this option any more.
26516         Reported by Ralf Wildenhues.
26517
26518 2010-05-23  Jim Meyering  <meyering@redhat.com>
26519
26520         test-pwrite: do not leave behind a test file named "out"
26521         Revert commit d8fa18472a54c1cb2674c296b3d82443f234d5f7.
26522         The trivial-looking use of init.sh is really necessary.
26523         It ensures that the temporary file, "out", is created in
26524         a temporary directory, and removed upon termination.
26525         * tests/test-pwrite.sh: Re-add file.
26526         * modules/pwrite-tests: Reference it.
26527
26528 2010-05-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
26529
26530         Fix output redirection buglet in init.sh.
26531         * tests/init.sh: Fix redirection of stderr.
26532
26533 2010-05-20  Simon Josefsson  <simon@josefsson.org>
26534
26535         * modules/valgrind-tests (configure.ac): Invoke gl_VALGRIND_TESTS.
26536
26537 2010-05-17  Simon Josefsson  <simon@josefsson.org>
26538
26539         * modules/valgrind-tests: New file.
26540         * m4/valgrind-tests.m4: New file.
26541         * doc/valgrind-tests.texi: New file.
26542         * doc/gnulib.texi (Running self-tests under valgrind): New
26543         section.
26544
26545 2010-05-19  Bruno Haible  <bruno@clisp.org>
26546
26547         Clean up dead code in recent commit.
26548         * m4/libunistring-base.m4 (gl_LIBUNISTRING_VERSION_CMP): Include the
26549         body of gl_LIBUNISTRING_VERSION_CMP_ORIG as fallback.
26550         (gl_LIBUNISTRING_VERSION_CMP_ORIG): Remove macro.
26551         Suggested by Paolo Bonzini.
26552
26553 2010-05-19  Bruno Haible  <bruno@clisp.org>
26554
26555         Avoid valgrind error reports from libunistring.
26556         * lib/libunistring.valgrind: New file, based on lib/malloca.valgrind.
26557         * modules/libunistring (Files): Add it.
26558         * modules/libunistring-optional (Files): Likewise.
26559
26560 2010-05-18  Paolo Bonzini  <bonzini@gnu.org>
26561             Bruno Haible  <bruno@clisp.org>
26562
26563         New module 'libunistring-optional'.
26564         * modules/libunistring-optional: New file.
26565         * m4/libunistring-base.m4: New file.
26566         * m4/libunistring-optional.m4: New file.
26567         * lib/unicase.in.h: Renamed from lib/unicase.h.
26568         * lib/uniconv.in.h: Renamed from lib/uniconv.h.
26569         * lib/unictype.in.h: Renamed from lib/unictype.h.
26570         * lib/unilbrk.in.h: Renamed from lib/unilbrk.h.
26571         * lib/uniname.in.h: Renamed from lib/uniname.h.
26572         * lib/uninorm.in.h: Renamed from lib/uninorm.h.
26573         * lib/unistdio.in.h: Renamed from lib/unistdio.h.
26574         * lib/unistr.in.h: Renamed from lib/unistr.h.
26575         * lib/unitypes.in.h: Renamed from lib/unitypes.h.
26576         * lib/uniwbrk.in.h: Renamed from lib/uniwbrk.h.
26577         * lib/uniwidth.in.h: Renamed from lib/uniwidth.h.
26578         * m4/libunistring.m4 (gl_LIBUNISTRING_CORE): Renamed from
26579         gl_LIBUNISTRING. If the library was found, determine the installed
26580         version and set LIBUNISTRING_VERSION.
26581         (gl_LIBUNISTRING): New macro, as a wrapper arount it. Document that it
26582         sets LIBUNISTRING_VERSION. If the module libunistring-optional is used,
26583         handle a configuration option --with-included-libunistring.
26584         * modules/libunistring (Files): Add m4/absolute-header.m4.
26585         * modules/unicase/base (Files): Use unicase.in.h instead of unicase.h.
26586         Add m4/libunistring-base.m4.
26587         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
26588         (Makefile.am): Build unicase.h from unicase.in.h.
26589         * modules/uniconv/base (Files): Use uniconv.in.h instead of uniconv.h.
26590         Add m4/libunistring-base.m4.
26591         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
26592         (Makefile.am): Build uniconv.h from uniconv.in.h.
26593         * modules/unictype/base (Files): Use unictype.in.h instead of
26594         unictype.h. Add m4/libunistring-base.m4.
26595         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
26596         (Makefile.am): Build unictype.h from unictype.in.h.
26597         * modules/unilbrk/base (Files): Use unilbrk.in.h instead of unilbrk.h.
26598         Add m4/libunistring-base.m4.
26599         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
26600         (Makefile.am): Build unilbrk.h from unilbrk.in.h.
26601         * modules/uniname/base (Files): Use uniname.in.h instead of uniname.h.
26602         Add m4/libunistring-base.m4.
26603         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
26604         (Makefile.am): Build uniname.h from uniname.in.h.
26605         * modules/uninorm/base (Files): Use uninorm.in.h instead of uninorm.h.
26606         Add m4/libunistring-base.m4.
26607         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
26608         (Makefile.am): Build uninorm.h from uninorm.in.h.
26609         * modules/unistdio/base (Files): Use unistdio.in.h instead of
26610         unistdio.h. Add m4/libunistring-base.m4.
26611         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
26612         (Makefile.am): Build unistdio.h from unistdio.in.h.
26613         * modules/unistr/base (Files): Use unistr.in.h instead of unistr.h.
26614         Add m4/libunistring-base.m4.
26615         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
26616         (Makefile.am): Build unistr.h from unistr.in.h.
26617         * modules/unitypes (Files): Use unitypes.in.h instead of unitypes.h.
26618         Add m4/libunistring-base.m4.
26619         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
26620         (Makefile.am): Build unitypes.h from unitypes.in.h.
26621         * modules/uniwbrk/base (Files): Use uniwbrk.in.h instead of uniwbrk.h.
26622         Add m4/libunistring-base.m4.
26623         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
26624         (Makefile.am): Build uniwbrk.h from uniwbrk.in.h.
26625         * modules/uniwidth/base (Files): Use uniwidth.in.h instead of
26626         uniwidth.h. Add m4/libunistring-base.m4.
26627         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
26628         (Makefile.am): Build uniwidth.h from uniwidth.in.h.
26629         * modules/unicase/empty-prefix-context: Use gl_LIBUNISTRING_LIBSOURCE
26630         instead of augmenting lib_SOURCES.
26631         * modules/unicase/empty-suffix-context: Likewise.
26632         * modules/unicase/locale-language: Likewise.
26633         * modules/unicase/tolower: Likewise.
26634         * modules/unicase/totitle: Likewise.
26635         * modules/unicase/toupper: Likewise.
26636         * modules/unicase/u8-casecmp: Likewise.
26637         * modules/unicase/u8-casecoll: Likewise.
26638         * modules/unicase/u8-casefold: Likewise.
26639         * modules/unicase/u8-casexfrm: Likewise.
26640         * modules/unicase/u8-ct-casefold: Likewise.
26641         * modules/unicase/u8-ct-tolower: Likewise.
26642         * modules/unicase/u8-ct-totitle: Likewise.
26643         * modules/unicase/u8-ct-toupper: Likewise.
26644         * modules/unicase/u8-is-cased: Likewise.
26645         * modules/unicase/u8-is-casefolded: Likewise.
26646         * modules/unicase/u8-is-lowercase: Likewise.
26647         * modules/unicase/u8-is-titlecase: Likewise.
26648         * modules/unicase/u8-is-uppercase: Likewise.
26649         * modules/unicase/u8-prefix-context: Likewise.
26650         * modules/unicase/u8-suffix-context: Likewise.
26651         * modules/unicase/u8-tolower: Likewise.
26652         * modules/unicase/u8-totitle: Likewise.
26653         * modules/unicase/u8-toupper: Likewise.
26654         * modules/unicase/u16-casecmp: Likewise.
26655         * modules/unicase/u16-casecoll: Likewise.
26656         * modules/unicase/u16-casefold: Likewise.
26657         * modules/unicase/u16-casexfrm: Likewise.
26658         * modules/unicase/u16-ct-casefold: Likewise.
26659         * modules/unicase/u16-ct-tolower: Likewise.
26660         * modules/unicase/u16-ct-totitle: Likewise.
26661         * modules/unicase/u16-ct-toupper: Likewise.
26662         * modules/unicase/u16-is-cased: Likewise.
26663         * modules/unicase/u16-is-casefolded: Likewise.
26664         * modules/unicase/u16-is-lowercase: Likewise.
26665         * modules/unicase/u16-is-titlecase: Likewise.
26666         * modules/unicase/u16-is-uppercase: Likewise.
26667         * modules/unicase/u16-prefix-context: Likewise.
26668         * modules/unicase/u16-suffix-context: Likewise.
26669         * modules/unicase/u16-tolower: Likewise.
26670         * modules/unicase/u16-totitle: Likewise.
26671         * modules/unicase/u16-toupper: Likewise.
26672         * modules/unicase/u32-casecmp: Likewise.
26673         * modules/unicase/u32-casecoll: Likewise.
26674         * modules/unicase/u32-casefold: Likewise.
26675         * modules/unicase/u32-casexfrm: Likewise.
26676         * modules/unicase/u32-ct-casefold: Likewise.
26677         * modules/unicase/u32-ct-tolower: Likewise.
26678         * modules/unicase/u32-ct-totitle: Likewise.
26679         * modules/unicase/u32-ct-toupper: Likewise.
26680         * modules/unicase/u32-is-cased: Likewise.
26681         * modules/unicase/u32-is-casefolded: Likewise.
26682         * modules/unicase/u32-is-lowercase: Likewise.
26683         * modules/unicase/u32-is-titlecase: Likewise.
26684         * modules/unicase/u32-is-uppercase: Likewise.
26685         * modules/unicase/u32-prefix-context: Likewise.
26686         * modules/unicase/u32-suffix-context: Likewise.
26687         * modules/unicase/u32-tolower: Likewise.
26688         * modules/unicase/u32-totitle: Likewise.
26689         * modules/unicase/u32-toupper: Likewise.
26690         * modules/unicase/ulc-casecmp: Likewise.
26691         * modules/unicase/ulc-casecoll: Likewise.
26692         * modules/unicase/ulc-casexfrm: Likewise.
26693         * modules/uniconv/u8-conv-from-enc: Likewise.
26694         * modules/uniconv/u8-conv-to-enc: Likewise.
26695         * modules/uniconv/u8-strconv-from-enc: Likewise.
26696         * modules/uniconv/u8-strconv-from-locale: Likewise.
26697         * modules/uniconv/u8-strconv-to-enc: Likewise.
26698         * modules/uniconv/u8-strconv-to-locale: Likewise.
26699         * modules/uniconv/u16-conv-from-enc: Likewise.
26700         * modules/uniconv/u16-conv-to-enc: Likewise.
26701         * modules/uniconv/u16-strconv-from-enc: Likewise.
26702         * modules/uniconv/u16-strconv-from-locale: Likewise.
26703         * modules/uniconv/u16-strconv-to-enc: Likewise.
26704         * modules/uniconv/u16-strconv-to-locale: Likewise.
26705         * modules/uniconv/u32-conv-from-enc: Likewise.
26706         * modules/uniconv/u32-conv-to-enc: Likewise.
26707         * modules/uniconv/u32-strconv-from-enc: Likewise.
26708         * modules/uniconv/u32-strconv-from-locale: Likewise.
26709         * modules/uniconv/u32-strconv-to-enc: Likewise.
26710         * modules/uniconv/u32-strconv-to-locale: Likewise.
26711         * modules/unictype/bidicategory-byname: Likewise.
26712         * modules/unictype/bidicategory-name: Likewise.
26713         * modules/unictype/bidicategory-of: Likewise.
26714         * modules/unictype/bidicategory-test: Likewise.
26715         * modules/unictype/block-list: Likewise.
26716         * modules/unictype/block-test: Likewise.
26717         * modules/unictype/category-C: Likewise.
26718         * modules/unictype/category-Cc: Likewise.
26719         * modules/unictype/category-Cf: Likewise.
26720         * modules/unictype/category-Cn: Likewise.
26721         * modules/unictype/category-Co: Likewise.
26722         * modules/unictype/category-Cs: Likewise.
26723         * modules/unictype/category-L: Likewise.
26724         * modules/unictype/category-Ll: Likewise.
26725         * modules/unictype/category-Lm: Likewise.
26726         * modules/unictype/category-Lo: Likewise.
26727         * modules/unictype/category-Lt: Likewise.
26728         * modules/unictype/category-Lu: Likewise.
26729         * modules/unictype/category-M: Likewise.
26730         * modules/unictype/category-Mc: Likewise.
26731         * modules/unictype/category-Me: Likewise.
26732         * modules/unictype/category-Mn: Likewise.
26733         * modules/unictype/category-N: Likewise.
26734         * modules/unictype/category-Nd: Likewise.
26735         * modules/unictype/category-Nl: Likewise.
26736         * modules/unictype/category-No: Likewise.
26737         * modules/unictype/category-P: Likewise.
26738         * modules/unictype/category-Pc: Likewise.
26739         * modules/unictype/category-Pd: Likewise.
26740         * modules/unictype/category-Pe: Likewise.
26741         * modules/unictype/category-Pf: Likewise.
26742         * modules/unictype/category-Pi: Likewise.
26743         * modules/unictype/category-Po: Likewise.
26744         * modules/unictype/category-Ps: Likewise.
26745         * modules/unictype/category-S: Likewise.
26746         * modules/unictype/category-Sc: Likewise.
26747         * modules/unictype/category-Sk: Likewise.
26748         * modules/unictype/category-Sm: Likewise.
26749         * modules/unictype/category-So: Likewise.
26750         * modules/unictype/category-Z: Likewise.
26751         * modules/unictype/category-Zl: Likewise.
26752         * modules/unictype/category-Zp: Likewise.
26753         * modules/unictype/category-Zs: Likewise.
26754         * modules/unictype/category-and: Likewise.
26755         * modules/unictype/category-and-not: Likewise.
26756         * modules/unictype/category-byname: Likewise.
26757         * modules/unictype/category-name: Likewise.
26758         * modules/unictype/category-none: Likewise.
26759         * modules/unictype/category-of: Likewise.
26760         * modules/unictype/category-or: Likewise.
26761         * modules/unictype/category-test: Likewise.
26762         * modules/unictype/combining-class: Likewise.
26763         * modules/unictype/ctype-alnum: Likewise.
26764         * modules/unictype/ctype-alpha: Likewise.
26765         * modules/unictype/ctype-blank: Likewise.
26766         * modules/unictype/ctype-cntrl: Likewise.
26767         * modules/unictype/ctype-digit: Likewise.
26768         * modules/unictype/ctype-graph: Likewise.
26769         * modules/unictype/ctype-lower: Likewise.
26770         * modules/unictype/ctype-print: Likewise.
26771         * modules/unictype/ctype-punct: Likewise.
26772         * modules/unictype/ctype-space: Likewise.
26773         * modules/unictype/ctype-upper: Likewise.
26774         * modules/unictype/ctype-xdigit: Likewise.
26775         * modules/unictype/decimal-digit: Likewise.
26776         * modules/unictype/digit: Likewise.
26777         * modules/unictype/mirror: Likewise.
26778         * modules/unictype/numeric: Likewise.
26779         * modules/unictype/property-alphabetic: Likewise.
26780         * modules/unictype/property-ascii-hex-digit: Likewise.
26781         * modules/unictype/property-bidi-arabic-digit: Likewise.
26782         * modules/unictype/property-bidi-arabic-right-to-left: Likewise.
26783         * modules/unictype/property-bidi-block-separator: Likewise.
26784         * modules/unictype/property-bidi-boundary-neutral: Likewise.
26785         * modules/unictype/property-bidi-common-separator: Likewise.
26786         * modules/unictype/property-bidi-control: Likewise.
26787         * modules/unictype/property-bidi-embedding-or-override: Likewise.
26788         * modules/unictype/property-bidi-eur-num-separator: Likewise.
26789         * modules/unictype/property-bidi-eur-num-terminator: Likewise.
26790         * modules/unictype/property-bidi-european-digit: Likewise.
26791         * modules/unictype/property-bidi-hebrew-right-to-left: Likewise.
26792         * modules/unictype/property-bidi-left-to-right: Likewise.
26793         * modules/unictype/property-bidi-non-spacing-mark: Likewise.
26794         * modules/unictype/property-bidi-other-neutral: Likewise.
26795         * modules/unictype/property-bidi-pdf: Likewise.
26796         * modules/unictype/property-bidi-segment-separator: Likewise.
26797         * modules/unictype/property-bidi-whitespace: Likewise.
26798         * modules/unictype/property-byname: Likewise.
26799         * modules/unictype/property-combining: Likewise.
26800         * modules/unictype/property-composite: Likewise.
26801         * modules/unictype/property-currency-symbol: Likewise.
26802         * modules/unictype/property-dash: Likewise.
26803         * modules/unictype/property-decimal-digit: Likewise.
26804         * modules/unictype/property-default-ignorable-code-point: Likewise.
26805         * modules/unictype/property-deprecated: Likewise.
26806         * modules/unictype/property-diacritic: Likewise.
26807         * modules/unictype/property-extender: Likewise.
26808         * modules/unictype/property-format-control: Likewise.
26809         * modules/unictype/property-grapheme-base: Likewise.
26810         * modules/unictype/property-grapheme-extend: Likewise.
26811         * modules/unictype/property-grapheme-link: Likewise.
26812         * modules/unictype/property-hex-digit: Likewise.
26813         * modules/unictype/property-hyphen: Likewise.
26814         * modules/unictype/property-id-continue: Likewise.
26815         * modules/unictype/property-id-start: Likewise.
26816         * modules/unictype/property-ideographic: Likewise.
26817         * modules/unictype/property-ids-binary-operator: Likewise.
26818         * modules/unictype/property-ids-trinary-operator: Likewise.
26819         * modules/unictype/property-ignorable-control: Likewise.
26820         * modules/unictype/property-iso-control: Likewise.
26821         * modules/unictype/property-join-control: Likewise.
26822         * modules/unictype/property-left-of-pair: Likewise.
26823         * modules/unictype/property-line-separator: Likewise.
26824         * modules/unictype/property-logical-order-exception: Likewise.
26825         * modules/unictype/property-lowercase: Likewise.
26826         * modules/unictype/property-math: Likewise.
26827         * modules/unictype/property-non-break: Likewise.
26828         * modules/unictype/property-not-a-character: Likewise.
26829         * modules/unictype/property-numeric: Likewise.
26830         * modules/unictype/property-other-alphabetic: Likewise.
26831         * modules/unictype/property-other-default-ignorable-code-point: Likewise.
26832         * modules/unictype/property-other-grapheme-extend: Likewise.
26833         * modules/unictype/property-other-id-continue: Likewise.
26834         * modules/unictype/property-other-id-start: Likewise.
26835         * modules/unictype/property-other-lowercase: Likewise.
26836         * modules/unictype/property-other-math: Likewise.
26837         * modules/unictype/property-other-uppercase: Likewise.
26838         * modules/unictype/property-paired-punctuation: Likewise.
26839         * modules/unictype/property-paragraph-separator: Likewise.
26840         * modules/unictype/property-pattern-syntax: Likewise.
26841         * modules/unictype/property-pattern-white-space: Likewise.
26842         * modules/unictype/property-private-use: Likewise.
26843         * modules/unictype/property-punctuation: Likewise.
26844         * modules/unictype/property-quotation-mark: Likewise.
26845         * modules/unictype/property-radical: Likewise.
26846         * modules/unictype/property-sentence-terminal: Likewise.
26847         * modules/unictype/property-soft-dotted: Likewise.
26848         * modules/unictype/property-space: Likewise.
26849         * modules/unictype/property-terminal-punctuation: Likewise.
26850         * modules/unictype/property-test: Likewise.
26851         * modules/unictype/property-titlecase: Likewise.
26852         * modules/unictype/property-unassigned-code-value: Likewise.
26853         * modules/unictype/property-unified-ideograph: Likewise.
26854         * modules/unictype/property-uppercase: Likewise.
26855         * modules/unictype/property-variation-selector: Likewise.
26856         * modules/unictype/property-white-space: Likewise.
26857         * modules/unictype/property-xid-continue: Likewise.
26858         * modules/unictype/property-xid-start: Likewise.
26859         * modules/unictype/property-zero-width: Likewise.
26860         * modules/unictype/scripts: Likewise.
26861         * modules/unictype/syntax-c-ident: Likewise.
26862         * modules/unictype/syntax-c-whitespace: Likewise.
26863         * modules/unictype/syntax-java-ident: Likewise.
26864         * modules/unictype/syntax-java-whitespace: Likewise.
26865         * modules/unilbrk/u8-possible-linebreaks: Likewise.
26866         * modules/unilbrk/u8-width-linebreaks: Likewise.
26867         * modules/unilbrk/u16-possible-linebreaks: Likewise.
26868         * modules/unilbrk/u16-width-linebreaks: Likewise.
26869         * modules/unilbrk/u32-possible-linebreaks: Likewise.
26870         * modules/unilbrk/u32-width-linebreaks: Likewise.
26871         * modules/unilbrk/ulc-possible-linebreaks: Likewise.
26872         * modules/unilbrk/ulc-width-linebreaks: Likewise.
26873         * modules/uniname/uniname: Likewise.
26874         * modules/uninorm/canonical-decomposition: Likewise.
26875         * modules/uninorm/composition: Likewise.
26876         * modules/uninorm/decomposing-form: Likewise.
26877         * modules/uninorm/decomposition: Likewise.
26878         * modules/uninorm/filter: Likewise.
26879         * modules/uninorm/nfc: Likewise.
26880         * modules/uninorm/nfd: Likewise.
26881         * modules/uninorm/nfkc: Likewise.
26882         * modules/uninorm/nfkd: Likewise.
26883         * modules/uninorm/u8-normalize: Likewise.
26884         * modules/uninorm/u8-normcmp: Likewise.
26885         * modules/uninorm/u8-normcoll: Likewise.
26886         * modules/uninorm/u8-normxfrm: Likewise.
26887         * modules/uninorm/u16-normalize: Likewise.
26888         * modules/uninorm/u16-normcmp: Likewise.
26889         * modules/uninorm/u16-normcoll: Likewise.
26890         * modules/uninorm/u16-normxfrm: Likewise.
26891         * modules/uninorm/u32-normalize: Likewise.
26892         * modules/uninorm/u32-normcmp: Likewise.
26893         * modules/uninorm/u32-normcoll: Likewise.
26894         * modules/uninorm/u32-normxfrm: Likewise.
26895         * modules/unistdio/u8-asnprintf: Likewise.
26896         * modules/unistdio/u8-asprintf: Likewise.
26897         * modules/unistdio/u8-snprintf: Likewise.
26898         * modules/unistdio/u8-sprintf: Likewise.
26899         * modules/unistdio/u8-u8-asnprintf: Likewise.
26900         * modules/unistdio/u8-u8-asprintf: Likewise.
26901         * modules/unistdio/u8-u8-snprintf: Likewise.
26902         * modules/unistdio/u8-u8-sprintf: Likewise.
26903         * modules/unistdio/u8-u8-vasnprintf: Likewise.
26904         * modules/unistdio/u8-u8-vasprintf: Likewise.
26905         * modules/unistdio/u8-u8-vsnprintf: Likewise.
26906         * modules/unistdio/u8-u8-vsprintf: Likewise.
26907         * modules/unistdio/u8-vasnprintf: Likewise.
26908         * modules/unistdio/u8-vasprintf: Likewise.
26909         * modules/unistdio/u8-vsnprintf: Likewise.
26910         * modules/unistdio/u8-vsprintf: Likewise.
26911         * modules/unistdio/u16-asnprintf: Likewise.
26912         * modules/unistdio/u16-asprintf: Likewise.
26913         * modules/unistdio/u16-snprintf: Likewise.
26914         * modules/unistdio/u16-sprintf: Likewise.
26915         * modules/unistdio/u16-u16-asnprintf: Likewise.
26916         * modules/unistdio/u16-u16-asprintf: Likewise.
26917         * modules/unistdio/u16-u16-snprintf: Likewise.
26918         * modules/unistdio/u16-u16-sprintf: Likewise.
26919         * modules/unistdio/u16-u16-vasnprintf: Likewise.
26920         * modules/unistdio/u16-u16-vasprintf: Likewise.
26921         * modules/unistdio/u16-u16-vsnprintf: Likewise.
26922         * modules/unistdio/u16-u16-vsprintf: Likewise.
26923         * modules/unistdio/u16-vasnprintf: Likewise.
26924         * modules/unistdio/u16-vasprintf: Likewise.
26925         * modules/unistdio/u16-vsnprintf: Likewise.
26926         * modules/unistdio/u16-vsprintf: Likewise.
26927         * modules/unistdio/u32-asnprintf: Likewise.
26928         * modules/unistdio/u32-asprintf: Likewise.
26929         * modules/unistdio/u32-snprintf: Likewise.
26930         * modules/unistdio/u32-sprintf: Likewise.
26931         * modules/unistdio/u32-u32-asnprintf: Likewise.
26932         * modules/unistdio/u32-u32-asprintf: Likewise.
26933         * modules/unistdio/u32-u32-snprintf: Likewise.
26934         * modules/unistdio/u32-u32-sprintf: Likewise.
26935         * modules/unistdio/u32-u32-vasnprintf: Likewise.
26936         * modules/unistdio/u32-u32-vasprintf: Likewise.
26937         * modules/unistdio/u32-u32-vsnprintf: Likewise.
26938         * modules/unistdio/u32-u32-vsprintf: Likewise.
26939         * modules/unistdio/u32-vasnprintf: Likewise.
26940         * modules/unistdio/u32-vasprintf: Likewise.
26941         * modules/unistdio/u32-vsnprintf: Likewise.
26942         * modules/unistdio/u32-vsprintf: Likewise.
26943         * modules/unistdio/ulc-asnprintf: Likewise.
26944         * modules/unistdio/ulc-asprintf: Likewise.
26945         * modules/unistdio/ulc-fprintf: Likewise.
26946         * modules/unistdio/ulc-snprintf: Likewise.
26947         * modules/unistdio/ulc-sprintf: Likewise.
26948         * modules/unistdio/ulc-vasnprintf: Likewise.
26949         * modules/unistdio/ulc-vasprintf: Likewise.
26950         * modules/unistdio/ulc-vfprintf: Likewise.
26951         * modules/unistdio/ulc-vsnprintf: Likewise.
26952         * modules/unistdio/ulc-vsprintf: Likewise.
26953         * modules/unistr/u8-check: Likewise.
26954         * modules/unistr/u8-chr: Likewise.
26955         * modules/unistr/u8-cmp: Likewise.
26956         * modules/unistr/u8-cmp2: Likewise.
26957         * modules/unistr/u8-cpy: Likewise.
26958         * modules/unistr/u8-cpy-alloc: Likewise.
26959         * modules/unistr/u8-endswith: Likewise.
26960         * modules/unistr/u8-mblen: Likewise.
26961         * modules/unistr/u8-mbsnlen: Likewise.
26962         * modules/unistr/u8-mbtouc: Likewise.
26963         * modules/unistr/u8-mbtouc-unsafe: Likewise.
26964         * modules/unistr/u8-mbtoucr: Likewise.
26965         * modules/unistr/u8-move: Likewise.
26966         * modules/unistr/u8-next: Likewise.
26967         * modules/unistr/u8-prev: Likewise.
26968         * modules/unistr/u8-set: Likewise.
26969         * modules/unistr/u8-startswith: Likewise.
26970         * modules/unistr/u8-stpcpy: Likewise.
26971         * modules/unistr/u8-stpncpy: Likewise.
26972         * modules/unistr/u8-strcat: Likewise.
26973         * modules/unistr/u8-strchr: Likewise.
26974         * modules/unistr/u8-strcmp: Likewise.
26975         * modules/unistr/u8-strcoll: Likewise.
26976         * modules/unistr/u8-strcpy: Likewise.
26977         * modules/unistr/u8-strcspn: Likewise.
26978         * modules/unistr/u8-strdup: Likewise.
26979         * modules/unistr/u8-strlen: Likewise.
26980         * modules/unistr/u8-strmblen: Likewise.
26981         * modules/unistr/u8-strmbtouc: Likewise.
26982         * modules/unistr/u8-strncat: Likewise.
26983         * modules/unistr/u8-strncmp: Likewise.
26984         * modules/unistr/u8-strncpy: Likewise.
26985         * modules/unistr/u8-strnlen: Likewise.
26986         * modules/unistr/u8-strpbrk: Likewise.
26987         * modules/unistr/u8-strrchr: Likewise.
26988         * modules/unistr/u8-strspn: Likewise.
26989         * modules/unistr/u8-strstr: Likewise.
26990         * modules/unistr/u8-strtok: Likewise.
26991         * modules/unistr/u8-to-u16: Likewise.
26992         * modules/unistr/u8-to-u32: Likewise.
26993         * modules/unistr/u8-uctomb: Likewise.
26994         * modules/unistr/u16-check: Likewise.
26995         * modules/unistr/u16-chr: Likewise.
26996         * modules/unistr/u16-cmp: Likewise.
26997         * modules/unistr/u16-cmp2: Likewise.
26998         * modules/unistr/u16-cpy: Likewise.
26999         * modules/unistr/u16-cpy-alloc: Likewise.
27000         * modules/unistr/u16-endswith: Likewise.
27001         * modules/unistr/u16-mblen: Likewise.
27002         * modules/unistr/u16-mbsnlen: Likewise.
27003         * modules/unistr/u16-mbtouc: Likewise.
27004         * modules/unistr/u16-mbtouc-unsafe: Likewise.
27005         * modules/unistr/u16-mbtoucr: Likewise.
27006         * modules/unistr/u16-move: Likewise.
27007         * modules/unistr/u16-next: Likewise.
27008         * modules/unistr/u16-prev: Likewise.
27009         * modules/unistr/u16-set: Likewise.
27010         * modules/unistr/u16-startswith: Likewise.
27011         * modules/unistr/u16-stpcpy: Likewise.
27012         * modules/unistr/u16-stpncpy: Likewise.
27013         * modules/unistr/u16-strcat: Likewise.
27014         * modules/unistr/u16-strchr: Likewise.
27015         * modules/unistr/u16-strcmp: Likewise.
27016         * modules/unistr/u16-strcoll: Likewise.
27017         * modules/unistr/u16-strcpy: Likewise.
27018         * modules/unistr/u16-strcspn: Likewise.
27019         * modules/unistr/u16-strdup: Likewise.
27020         * modules/unistr/u16-strlen: Likewise.
27021         * modules/unistr/u16-strmblen: Likewise.
27022         * modules/unistr/u16-strmbtouc: Likewise.
27023         * modules/unistr/u16-strncat: Likewise.
27024         * modules/unistr/u16-strncmp: Likewise.
27025         * modules/unistr/u16-strncpy: Likewise.
27026         * modules/unistr/u16-strnlen: Likewise.
27027         * modules/unistr/u16-strpbrk: Likewise.
27028         * modules/unistr/u16-strrchr: Likewise.
27029         * modules/unistr/u16-strspn: Likewise.
27030         * modules/unistr/u16-strstr: Likewise.
27031         * modules/unistr/u16-strtok: Likewise.
27032         * modules/unistr/u16-to-u32: Likewise.
27033         * modules/unistr/u16-to-u8: Likewise.
27034         * modules/unistr/u16-uctomb: Likewise.
27035         * modules/unistr/u32-check: Likewise.
27036         * modules/unistr/u32-chr: Likewise.
27037         * modules/unistr/u32-cmp: Likewise.
27038         * modules/unistr/u32-cmp2: Likewise.
27039         * modules/unistr/u32-cpy: Likewise.
27040         * modules/unistr/u32-cpy-alloc: Likewise.
27041         * modules/unistr/u32-endswith: Likewise.
27042         * modules/unistr/u32-mblen: Likewise.
27043         * modules/unistr/u32-mbsnlen: Likewise.
27044         * modules/unistr/u32-mbtouc: Likewise.
27045         * modules/unistr/u32-mbtouc-unsafe: Likewise.
27046         * modules/unistr/u32-mbtoucr: Likewise.
27047         * modules/unistr/u32-move: Likewise.
27048         * modules/unistr/u32-next: Likewise.
27049         * modules/unistr/u32-prev: Likewise.
27050         * modules/unistr/u32-set: Likewise.
27051         * modules/unistr/u32-startswith: Likewise.
27052         * modules/unistr/u32-stpcpy: Likewise.
27053         * modules/unistr/u32-stpncpy: Likewise.
27054         * modules/unistr/u32-strcat: Likewise.
27055         * modules/unistr/u32-strchr: Likewise.
27056         * modules/unistr/u32-strcmp: Likewise.
27057         * modules/unistr/u32-strcoll: Likewise.
27058         * modules/unistr/u32-strcpy: Likewise.
27059         * modules/unistr/u32-strcspn: Likewise.
27060         * modules/unistr/u32-strdup: Likewise.
27061         * modules/unistr/u32-strlen: Likewise.
27062         * modules/unistr/u32-strmblen: Likewise.
27063         * modules/unistr/u32-strmbtouc: Likewise.
27064         * modules/unistr/u32-strncat: Likewise.
27065         * modules/unistr/u32-strncmp: Likewise.
27066         * modules/unistr/u32-strncpy: Likewise.
27067         * modules/unistr/u32-strnlen: Likewise.
27068         * modules/unistr/u32-strpbrk: Likewise.
27069         * modules/unistr/u32-strrchr: Likewise.
27070         * modules/unistr/u32-strspn: Likewise.
27071         * modules/unistr/u32-strstr: Likewise.
27072         * modules/unistr/u32-strtok: Likewise.
27073         * modules/unistr/u32-to-u16: Likewise.
27074         * modules/unistr/u32-to-u8: Likewise.
27075         * modules/unistr/u32-uctomb: Likewise.
27076         * modules/uniwbrk/u8-wordbreaks: Likewise.
27077         * modules/uniwbrk/u16-wordbreaks: Likewise.
27078         * modules/uniwbrk/u32-wordbreaks: Likewise.
27079         * modules/uniwbrk/ulc-wordbreaks: Likewise.
27080         * modules/uniwbrk/wordbreak-property: Likewise.
27081         * modules/uniwidth/u8-strwidth: Likewise.
27082         * modules/uniwidth/u8-width: Likewise.
27083         * modules/uniwidth/u16-strwidth: Likewise.
27084         * modules/uniwidth/u16-width: Likewise.
27085         * modules/uniwidth/u32-strwidth: Likewise.
27086         * modules/uniwidth/u32-width: Likewise.
27087         * modules/uniwidth/width: Likewise.
27088         * modules/unicase/cased-tests (Makefile.am): Link all test programs
27089         with $(LIBUNISTRING).
27090         * modules/unicase/ignorable-tests: Likewise.
27091         * modules/unicase/locale-language-tests: Likewise.
27092         * modules/unicase/tolower-tests: Likewise.
27093         * modules/unicase/totitle-tests: Likewise.
27094         * modules/unicase/toupper-tests: Likewise.
27095         * modules/unicase/u8-casecmp-tests: Likewise.
27096         * modules/unicase/u8-casecoll-tests: Likewise.
27097         * modules/unicase/u8-casefold-tests: Likewise.
27098         * modules/unicase/u8-is-cased-tests: Likewise.
27099         * modules/unicase/u8-is-casefolded-tests: Likewise.
27100         * modules/unicase/u8-is-lowercase-tests: Likewise.
27101         * modules/unicase/u8-is-titlecase-tests: Likewise.
27102         * modules/unicase/u8-is-uppercase-tests: Likewise.
27103         * modules/unicase/u8-tolower-tests: Likewise.
27104         * modules/unicase/u8-totitle-tests: Likewise.
27105         * modules/unicase/u8-toupper-tests: Likewise.
27106         * modules/unicase/u16-casecmp-tests: Likewise.
27107         * modules/unicase/u16-casecoll-tests: Likewise.
27108         * modules/unicase/u16-casefold-tests: Likewise.
27109         * modules/unicase/u16-is-cased-tests: Likewise.
27110         * modules/unicase/u16-is-casefolded-tests: Likewise.
27111         * modules/unicase/u16-is-lowercase-tests: Likewise.
27112         * modules/unicase/u16-is-titlecase-tests: Likewise.
27113         * modules/unicase/u16-is-uppercase-tests: Likewise.
27114         * modules/unicase/u16-tolower-tests: Likewise.
27115         * modules/unicase/u16-totitle-tests: Likewise.
27116         * modules/unicase/u16-toupper-tests: Likewise.
27117         * modules/unicase/u32-casecmp-tests: Likewise.
27118         * modules/unicase/u32-casecoll-tests: Likewise.
27119         * modules/unicase/u32-casefold-tests: Likewise.
27120         * modules/unicase/u32-is-cased-tests: Likewise.
27121         * modules/unicase/u32-is-casefolded-tests: Likewise.
27122         * modules/unicase/u32-is-lowercase-tests: Likewise.
27123         * modules/unicase/u32-is-titlecase-tests: Likewise.
27124         * modules/unicase/u32-is-uppercase-tests: Likewise.
27125         * modules/unicase/u32-tolower-tests: Likewise.
27126         * modules/unicase/u32-totitle-tests: Likewise.
27127         * modules/unicase/u32-toupper-tests: Likewise.
27128         * modules/unicase/ulc-casecmp-tests: Likewise.
27129         * modules/unicase/ulc-casecoll-tests: Likewise.
27130         * modules/uniconv/u8-conv-from-enc-tests: Likewise.
27131         * modules/uniconv/u8-conv-to-enc-tests: Likewise.
27132         * modules/uniconv/u8-strconv-from-enc-tests: Likewise.
27133         * modules/uniconv/u8-strconv-to-enc-tests: Likewise.
27134         * modules/uniconv/u16-conv-from-enc-tests: Likewise.
27135         * modules/uniconv/u16-conv-to-enc-tests: Likewise.
27136         * modules/uniconv/u16-strconv-from-enc-tests: Likewise.
27137         * modules/uniconv/u16-strconv-to-enc-tests: Likewise.
27138         * modules/uniconv/u32-conv-from-enc-tests: Likewise.
27139         * modules/uniconv/u32-conv-to-enc-tests: Likewise.
27140         * modules/uniconv/u32-strconv-from-enc-tests: Likewise.
27141         * modules/uniconv/u32-strconv-to-enc-tests: Likewise.
27142         * modules/unictype/bidicategory-byname-tests: Likewise.
27143         * modules/unictype/bidicategory-name-tests: Likewise.
27144         * modules/unictype/bidicategory-of-tests: Likewise.
27145         * modules/unictype/bidicategory-test-tests: Likewise.
27146         * modules/unictype/block-list-tests: Likewise.
27147         * modules/unictype/block-of-tests: Likewise.
27148         * modules/unictype/block-test-tests: Likewise.
27149         * modules/unictype/category-C-tests: Likewise.
27150         * modules/unictype/category-Cc-tests: Likewise.
27151         * modules/unictype/category-Cf-tests: Likewise.
27152         * modules/unictype/category-Cn-tests: Likewise.
27153         * modules/unictype/category-Co-tests: Likewise.
27154         * modules/unictype/category-Cs-tests: Likewise.
27155         * modules/unictype/category-L-tests: Likewise.
27156         * modules/unictype/category-Ll-tests: Likewise.
27157         * modules/unictype/category-Lm-tests: Likewise.
27158         * modules/unictype/category-Lo-tests: Likewise.
27159         * modules/unictype/category-Lt-tests: Likewise.
27160         * modules/unictype/category-Lu-tests: Likewise.
27161         * modules/unictype/category-M-tests: Likewise.
27162         * modules/unictype/category-Mc-tests: Likewise.
27163         * modules/unictype/category-Me-tests: Likewise.
27164         * modules/unictype/category-Mn-tests: Likewise.
27165         * modules/unictype/category-N-tests: Likewise.
27166         * modules/unictype/category-Nd-tests: Likewise.
27167         * modules/unictype/category-Nl-tests: Likewise.
27168         * modules/unictype/category-No-tests: Likewise.
27169         * modules/unictype/category-P-tests: Likewise.
27170         * modules/unictype/category-Pc-tests: Likewise.
27171         * modules/unictype/category-Pd-tests: Likewise.
27172         * modules/unictype/category-Pe-tests: Likewise.
27173         * modules/unictype/category-Pf-tests: Likewise.
27174         * modules/unictype/category-Pi-tests: Likewise.
27175         * modules/unictype/category-Po-tests: Likewise.
27176         * modules/unictype/category-Ps-tests: Likewise.
27177         * modules/unictype/category-S-tests: Likewise.
27178         * modules/unictype/category-Sc-tests: Likewise.
27179         * modules/unictype/category-Sk-tests: Likewise.
27180         * modules/unictype/category-Sm-tests: Likewise.
27181         * modules/unictype/category-So-tests: Likewise.
27182         * modules/unictype/category-Z-tests: Likewise.
27183         * modules/unictype/category-Zl-tests: Likewise.
27184         * modules/unictype/category-Zp-tests: Likewise.
27185         * modules/unictype/category-Zs-tests: Likewise.
27186         * modules/unictype/category-and-not-tests: Likewise.
27187         * modules/unictype/category-and-tests: Likewise.
27188         * modules/unictype/category-byname-tests: Likewise.
27189         * modules/unictype/category-name-tests: Likewise.
27190         * modules/unictype/category-none-tests: Likewise.
27191         * modules/unictype/category-of-tests: Likewise.
27192         * modules/unictype/category-or-tests: Likewise.
27193         * modules/unictype/category-test-withtable-tests: Likewise.
27194         * modules/unictype/combining-class-tests: Likewise.
27195         * modules/unictype/ctype-alnum-tests: Likewise.
27196         * modules/unictype/ctype-alpha-tests: Likewise.
27197         * modules/unictype/ctype-blank-tests: Likewise.
27198         * modules/unictype/ctype-cntrl-tests: Likewise.
27199         * modules/unictype/ctype-digit-tests: Likewise.
27200         * modules/unictype/ctype-graph-tests: Likewise.
27201         * modules/unictype/ctype-lower-tests: Likewise.
27202         * modules/unictype/ctype-print-tests: Likewise.
27203         * modules/unictype/ctype-punct-tests: Likewise.
27204         * modules/unictype/ctype-space-tests: Likewise.
27205         * modules/unictype/ctype-upper-tests: Likewise.
27206         * modules/unictype/ctype-xdigit-tests: Likewise.
27207         * modules/unictype/decimal-digit-tests: Likewise.
27208         * modules/unictype/digit-tests: Likewise.
27209         * modules/unictype/mirror-tests: Likewise.
27210         * modules/unictype/numeric-tests: Likewise.
27211         * modules/unictype/property-alphabetic-tests: Likewise.
27212         * modules/unictype/property-ascii-hex-digit-tests: Likewise.
27213         * modules/unictype/property-bidi-arabic-digit-tests: Likewise.
27214         * modules/unictype/property-bidi-arabic-right-to-left-tests: Likewise.
27215         * modules/unictype/property-bidi-block-separator-tests: Likewise.
27216         * modules/unictype/property-bidi-boundary-neutral-tests: Likewise.
27217         * modules/unictype/property-bidi-common-separator-tests: Likewise.
27218         * modules/unictype/property-bidi-control-tests: Likewise.
27219         * modules/unictype/property-bidi-embedding-or-override-tests: Likewise.
27220         * modules/unictype/property-bidi-eur-num-separator-tests: Likewise.
27221         * modules/unictype/property-bidi-eur-num-terminator-tests: Likewise.
27222         * modules/unictype/property-bidi-european-digit-tests: Likewise.
27223         * modules/unictype/property-bidi-hebrew-right-to-left-tests: Likewise.
27224         * modules/unictype/property-bidi-left-to-right-tests: Likewise.
27225         * modules/unictype/property-bidi-non-spacing-mark-tests: Likewise.
27226         * modules/unictype/property-bidi-other-neutral-tests: Likewise.
27227         * modules/unictype/property-bidi-pdf-tests: Likewise.
27228         * modules/unictype/property-bidi-segment-separator-tests: Likewise.
27229         * modules/unictype/property-bidi-whitespace-tests: Likewise.
27230         * modules/unictype/property-byname-tests: Likewise.
27231         * modules/unictype/property-combining-tests: Likewise.
27232         * modules/unictype/property-composite-tests: Likewise.
27233         * modules/unictype/property-currency-symbol-tests: Likewise.
27234         * modules/unictype/property-dash-tests: Likewise.
27235         * modules/unictype/property-decimal-digit-tests: Likewise.
27236         * modules/unictype/property-default-ignorable-code-point-tests: Likewise.
27237         * modules/unictype/property-deprecated-tests: Likewise.
27238         * modules/unictype/property-diacritic-tests: Likewise.
27239         * modules/unictype/property-extender-tests: Likewise.
27240         * modules/unictype/property-format-control-tests: Likewise.
27241         * modules/unictype/property-grapheme-base-tests: Likewise.
27242         * modules/unictype/property-grapheme-extend-tests: Likewise.
27243         * modules/unictype/property-grapheme-link-tests: Likewise.
27244         * modules/unictype/property-hex-digit-tests: Likewise.
27245         * modules/unictype/property-hyphen-tests: Likewise.
27246         * modules/unictype/property-id-continue-tests: Likewise.
27247         * modules/unictype/property-id-start-tests: Likewise.
27248         * modules/unictype/property-ideographic-tests: Likewise.
27249         * modules/unictype/property-ids-binary-operator-tests: Likewise.
27250         * modules/unictype/property-ids-trinary-operator-tests: Likewise.
27251         * modules/unictype/property-ignorable-control-tests: Likewise.
27252         * modules/unictype/property-iso-control-tests: Likewise.
27253         * modules/unictype/property-join-control-tests: Likewise.
27254         * modules/unictype/property-left-of-pair-tests: Likewise.
27255         * modules/unictype/property-line-separator-tests: Likewise.
27256         * modules/unictype/property-logical-order-exception-tests: Likewise.
27257         * modules/unictype/property-lowercase-tests: Likewise.
27258         * modules/unictype/property-math-tests: Likewise.
27259         * modules/unictype/property-non-break-tests: Likewise.
27260         * modules/unictype/property-not-a-character-tests: Likewise.
27261         * modules/unictype/property-numeric-tests: Likewise.
27262         * modules/unictype/property-other-alphabetic-tests: Likewise.
27263         * modules/unictype/property-other-default-ignorable-code-point-tests:
27264         Likewise.
27265         * modules/unictype/property-other-grapheme-extend-tests: Likewise.
27266         * modules/unictype/property-other-id-continue-tests: Likewise.
27267         * modules/unictype/property-other-id-start-tests: Likewise.
27268         * modules/unictype/property-other-lowercase-tests: Likewise.
27269         * modules/unictype/property-other-math-tests: Likewise.
27270         * modules/unictype/property-other-uppercase-tests: Likewise.
27271         * modules/unictype/property-paired-punctuation-tests: Likewise.
27272         * modules/unictype/property-paragraph-separator-tests: Likewise.
27273         * modules/unictype/property-pattern-syntax-tests: Likewise.
27274         * modules/unictype/property-pattern-white-space-tests: Likewise.
27275         * modules/unictype/property-private-use-tests: Likewise.
27276         * modules/unictype/property-punctuation-tests: Likewise.
27277         * modules/unictype/property-quotation-mark-tests: Likewise.
27278         * modules/unictype/property-radical-tests: Likewise.
27279         * modules/unictype/property-sentence-terminal-tests: Likewise.
27280         * modules/unictype/property-soft-dotted-tests: Likewise.
27281         * modules/unictype/property-space-tests: Likewise.
27282         * modules/unictype/property-terminal-punctuation-tests: Likewise.
27283         * modules/unictype/property-test-tests: Likewise.
27284         * modules/unictype/property-titlecase-tests: Likewise.
27285         * modules/unictype/property-unassigned-code-value-tests: Likewise.
27286         * modules/unictype/property-unified-ideograph-tests: Likewise.
27287         * modules/unictype/property-uppercase-tests: Likewise.
27288         * modules/unictype/property-variation-selector-tests: Likewise.
27289         * modules/unictype/property-white-space-tests: Likewise.
27290         * modules/unictype/property-xid-continue-tests: Likewise.
27291         * modules/unictype/property-xid-start-tests: Likewise.
27292         * modules/unictype/property-zero-width-tests: Likewise.
27293         * modules/unictype/scripts-tests: Likewise.
27294         * modules/unictype/syntax-c-ident-tests: Likewise.
27295         * modules/unictype/syntax-c-whitespace-tests: Likewise.
27296         * modules/unictype/syntax-java-ident-tests: Likewise.
27297         * modules/unictype/syntax-java-whitespace-tests: Likewise.
27298         * modules/unilbrk/u8-possible-linebreaks-tests: Likewise.
27299         * modules/unilbrk/u8-width-linebreaks-tests: Likewise.
27300         * modules/unilbrk/u16-possible-linebreaks-tests: Likewise.
27301         * modules/unilbrk/u16-width-linebreaks-tests: Likewise.
27302         * modules/unilbrk/u32-possible-linebreaks-tests: Likewise.
27303         * modules/unilbrk/u32-width-linebreaks-tests: Likewise.
27304         * modules/unilbrk/ulc-possible-linebreaks-tests: Likewise.
27305         * modules/unilbrk/ulc-width-linebreaks-tests: Likewise.
27306         * modules/uniname/uniname-tests: Likewise.
27307         * modules/uninorm/canonical-decomposition-tests: Likewise.
27308         * modules/uninorm/compat-decomposition-tests: Likewise.
27309         * modules/uninorm/composition-tests: Likewise.
27310         * modules/uninorm/decomposing-form-tests: Likewise.
27311         * modules/uninorm/decomposition-tests: Likewise.
27312         * modules/uninorm/filter-tests: Likewise.
27313         * modules/uninorm/nfc-tests: Likewise.
27314         * modules/uninorm/nfd-tests: Likewise.
27315         * modules/uninorm/nfkc-tests: Likewise.
27316         * modules/uninorm/nfkd-tests: Likewise.
27317         * modules/uninorm/u8-normcmp-tests: Likewise.
27318         * modules/uninorm/u8-normcoll-tests: Likewise.
27319         * modules/uninorm/u16-normcmp-tests: Likewise.
27320         * modules/uninorm/u16-normcoll-tests: Likewise.
27321         * modules/uninorm/u32-normcmp-tests: Likewise.
27322         * modules/uninorm/u32-normcoll-tests: Likewise.
27323         * modules/unistdio/u8-asnprintf-tests: Likewise.
27324         * modules/unistdio/u8-vasnprintf-tests: Likewise.
27325         * modules/unistdio/u8-vasprintf-tests: Likewise.
27326         * modules/unistdio/u8-vsnprintf-tests: Likewise.
27327         * modules/unistdio/u8-vsprintf-tests: Likewise.
27328         * modules/unistdio/u16-asnprintf-tests: Likewise.
27329         * modules/unistdio/u16-vasnprintf-tests: Likewise.
27330         * modules/unistdio/u16-vasprintf-tests: Likewise.
27331         * modules/unistdio/u16-vsnprintf-tests: Likewise.
27332         * modules/unistdio/u16-vsprintf-tests: Likewise.
27333         * modules/unistdio/u32-asnprintf-tests: Likewise.
27334         * modules/unistdio/u32-vasnprintf-tests: Likewise.
27335         * modules/unistdio/u32-vasprintf-tests: Likewise.
27336         * modules/unistdio/u32-vsnprintf-tests: Likewise.
27337         * modules/unistdio/u32-vsprintf-tests: Likewise.
27338         * modules/unistdio/ulc-asnprintf-tests: Likewise.
27339         * modules/unistdio/ulc-vasnprintf-tests: Likewise.
27340         * modules/unistdio/ulc-vasprintf-tests: Likewise.
27341         * modules/unistdio/ulc-vsnprintf-tests: Likewise.
27342         * modules/unistdio/ulc-vsprintf-tests: Likewise.
27343         * modules/unistr/u8-check-tests: Likewise.
27344         * modules/unistr/u8-chr-tests: Likewise.
27345         * modules/unistr/u8-cmp-tests: Likewise.
27346         * modules/unistr/u8-cmp2-tests: Likewise.
27347         * modules/unistr/u8-cpy-alloc-tests: Likewise.
27348         * modules/unistr/u8-cpy-tests: Likewise.
27349         * modules/unistr/u8-mblen-tests: Likewise.
27350         * modules/unistr/u8-mbsnlen-tests: Likewise.
27351         * modules/unistr/u8-mbtouc-tests: Likewise.
27352         * modules/unistr/u8-mbtouc-unsafe-tests: Likewise.
27353         * modules/unistr/u8-mbtoucr-tests: Likewise.
27354         * modules/unistr/u8-move-tests: Likewise.
27355         * modules/unistr/u8-next-tests: Likewise.
27356         * modules/unistr/u8-prev-tests: Likewise.
27357         * modules/unistr/u8-set-tests: Likewise.
27358         * modules/unistr/u8-stpcpy-tests: Likewise.
27359         * modules/unistr/u8-stpncpy-tests: Likewise.
27360         * modules/unistr/u8-strcat-tests: Likewise.
27361         * modules/unistr/u8-strcmp-tests: Likewise.
27362         * modules/unistr/u8-strcoll-tests: Likewise.
27363         * modules/unistr/u8-strcpy-tests: Likewise.
27364         * modules/unistr/u8-strdup-tests: Likewise.
27365         * modules/unistr/u8-strlen-tests: Likewise.
27366         * modules/unistr/u8-strmblen-tests: Likewise.
27367         * modules/unistr/u8-strmbtouc-tests: Likewise.
27368         * modules/unistr/u8-strncat-tests: Likewise.
27369         * modules/unistr/u8-strncmp-tests: Likewise.
27370         * modules/unistr/u8-strncpy-tests: Likewise.
27371         * modules/unistr/u8-strnlen-tests: Likewise.
27372         * modules/unistr/u8-to-u16-tests: Likewise.
27373         * modules/unistr/u8-to-u32-tests: Likewise.
27374         * modules/unistr/u8-uctomb-tests: Likewise.
27375         * modules/unistr/u16-check-tests: Likewise.
27376         * modules/unistr/u16-chr-tests: Likewise.
27377         * modules/unistr/u16-cmp-tests: Likewise.
27378         * modules/unistr/u16-cmp2-tests: Likewise.
27379         * modules/unistr/u16-cpy-alloc-tests: Likewise.
27380         * modules/unistr/u16-cpy-tests: Likewise.
27381         * modules/unistr/u16-mblen-tests: Likewise.
27382         * modules/unistr/u16-mbsnlen-tests: Likewise.
27383         * modules/unistr/u16-mbtouc-tests: Likewise.
27384         * modules/unistr/u16-mbtouc-unsafe-tests: Likewise.
27385         * modules/unistr/u16-mbtoucr-tests: Likewise.
27386         * modules/unistr/u16-move-tests: Likewise.
27387         * modules/unistr/u16-next-tests: Likewise.
27388         * modules/unistr/u16-prev-tests: Likewise.
27389         * modules/unistr/u16-set-tests: Likewise.
27390         * modules/unistr/u16-stpcpy-tests: Likewise.
27391         * modules/unistr/u16-stpncpy-tests: Likewise.
27392         * modules/unistr/u16-strcat-tests: Likewise.
27393         * modules/unistr/u16-strcmp-tests: Likewise.
27394         * modules/unistr/u16-strcoll-tests: Likewise.
27395         * modules/unistr/u16-strcpy-tests: Likewise.
27396         * modules/unistr/u16-strdup-tests: Likewise.
27397         * modules/unistr/u16-strlen-tests: Likewise.
27398         * modules/unistr/u16-strmblen-tests: Likewise.
27399         * modules/unistr/u16-strmbtouc-tests: Likewise.
27400         * modules/unistr/u16-strncat-tests: Likewise.
27401         * modules/unistr/u16-strncmp-tests: Likewise.
27402         * modules/unistr/u16-strncpy-tests: Likewise.
27403         * modules/unistr/u16-strnlen-tests: Likewise.
27404         * modules/unistr/u16-to-u32-tests: Likewise.
27405         * modules/unistr/u16-to-u8-tests: Likewise.
27406         * modules/unistr/u16-uctomb-tests: Likewise.
27407         * modules/unistr/u32-check-tests: Likewise.
27408         * modules/unistr/u32-chr-tests: Likewise.
27409         * modules/unistr/u32-cmp-tests: Likewise.
27410         * modules/unistr/u32-cmp2-tests: Likewise.
27411         * modules/unistr/u32-cpy-alloc-tests: Likewise.
27412         * modules/unistr/u32-cpy-tests: Likewise.
27413         * modules/unistr/u32-mblen-tests: Likewise.
27414         * modules/unistr/u32-mbsnlen-tests: Likewise.
27415         * modules/unistr/u32-mbtouc-tests: Likewise.
27416         * modules/unistr/u32-mbtouc-unsafe-tests: Likewise.
27417         * modules/unistr/u32-mbtoucr-tests: Likewise.
27418         * modules/unistr/u32-move-tests: Likewise.
27419         * modules/unistr/u32-next-tests: Likewise.
27420         * modules/unistr/u32-prev-tests: Likewise.
27421         * modules/unistr/u32-set-tests: Likewise.
27422         * modules/unistr/u32-stpcpy-tests: Likewise.
27423         * modules/unistr/u32-stpncpy-tests: Likewise.
27424         * modules/unistr/u32-strcat-tests: Likewise.
27425         * modules/unistr/u32-strcmp-tests: Likewise.
27426         * modules/unistr/u32-strcoll-tests: Likewise.
27427         * modules/unistr/u32-strcpy-tests: Likewise.
27428         * modules/unistr/u32-strdup-tests: Likewise.
27429         * modules/unistr/u32-strlen-tests: Likewise.
27430         * modules/unistr/u32-strmblen-tests: Likewise.
27431         * modules/unistr/u32-strmbtouc-tests: Likewise.
27432         * modules/unistr/u32-strncat-tests: Likewise.
27433         * modules/unistr/u32-strncmp-tests: Likewise.
27434         * modules/unistr/u32-strncpy-tests: Likewise.
27435         * modules/unistr/u32-strnlen-tests: Likewise.
27436         * modules/unistr/u32-to-u16-tests: Likewise.
27437         * modules/unistr/u32-to-u8-tests: Likewise.
27438         * modules/unistr/u32-uctomb-tests: Likewise.
27439         * modules/uniwbrk/u8-wordbreaks-tests: Likewise.
27440         * modules/uniwbrk/u16-wordbreaks-tests: Likewise.
27441         * modules/uniwbrk/u32-wordbreaks-tests: Likewise.
27442         * modules/uniwbrk/ulc-wordbreaks-tests: Likewise.
27443         * modules/uniwidth/u8-strwidth-tests: Likewise.
27444         * modules/uniwidth/u8-width-tests: Likewise.
27445         * modules/uniwidth/u16-strwidth-tests: Likewise.
27446         * modules/uniwidth/u16-width-tests: Likewise.
27447         * modules/uniwidth/u32-strwidth-tests: Likewise.
27448         * modules/uniwidth/u32-width-tests: Likewise.
27449         * modules/uniwidth/width-tests: Likewise.
27450
27451 2010-05-18  Richard Jones  <rjones@redhat.com>
27452
27453         doc: users.txt: list hivex
27454         * users.txt: Add hivex.
27455
27456 2010-05-18  Richard Jones  <rjones@redhat.com>
27457
27458         doc: users.txt: list febootstrap
27459         * users.txt: Add febootstrap.
27460
27461 2010-05-17  Giuseppe Scrivano  <gscrivano@gnu.org>
27462
27463         bootstrap: fix an error when gnulib is not used as a git submodule
27464         * build-aux/bootstrap (gnulib_path): If its length is zero then
27465         assign "gnulib" to it.
27466         * build-aux/bootstrap: Redirect "git clone -h" stderr to stdout.
27467
27468 2010-05-16  Bruno Haible  <bruno@clisp.org>
27469
27470         Avoid autoconf warnings about AM_ICONV.
27471         * m4/iconv.m4 (AM_ICONV): Define using AC_DEFUN_ONCE for autoconf >=
27472         2.64.
27473
27474 2010-05-16  Bruno Haible  <bruno@clisp.org>
27475
27476         absolute-header: Make the macro usable in more situations.
27477         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER_ONE): New macro, extracted
27478         from gl_ABSOLUTE_HEADER.
27479         (gl_ABSOLUTE_HEADER): Use it. Fix comment.
27480
27481 2010-05-16  James Youngman  <jay@gnu.org>
27482
27483         doc: update users.txt
27484         * users.txt: Add CSSC.
27485
27486 2010-05-16  Jim Meyering  <meyering@redhat.com>
27487
27488         init.sh: fix an error in the previous change; add more comments
27489         * tests/init.sh: Compare exit code in loop against 9, not 2.
27490         Patch by Bruno Haible.
27491         Make the two tests more similar by adding an empty "then" clause.
27492         Add comments.
27493
27494         init.sh: avoid unnecessary shell re-exec
27495         * tests/init.sh: Improve the re-exec-required check to first test the
27496         current shell.  If it passes the test, do not search for a shell that
27497         does pass, and do not re-exec.  This test is particularly contorted to
27498         avoid triggering misbehavior in Solaris 10's /bin/sh whereby any use
27499         of $(...) evokes a syntax error and causes immediate shell exit with
27500         status 2.  Bruno Haible reported that the re-exec made it impossible
27501         to single-step through any init.sh-using script.
27502
27503 2010-05-16  Bruno Haible  <bruno@clisp.org>
27504
27505         Fix collision between gnulib's and libintl's printf replacements.
27506         * lib/stdio.in.h (_GL_STDIO_STRINGIZE,
27507         _GL_STDIO_MACROEXPAND_AND_STRINGIZE): New macros.
27508         (printf): When using GNU C, map the __printf__ function to rpl_printf
27509         via __asm__. When not using GNU C, define rpl_printf instead of
27510         __printf__.
27511         * lib/printf.c: Ignore DEPENDS_ON_LIBINTL. Undoes the 2010-03-25
27512         commit.
27513         * lib/stdio-write.c: Ignore DEPENDS_ON_LIBINTL. Undoes the 2009-08-10
27514         commit.
27515         * m4/asm-underscore.m4: New file.
27516         * m4/stdio_h.m4 (gl_STDIO_H): Require gl_ASM_SYMBOL_PREFIX.
27517         * modules/stdio (Files): Add m4/asm-underscore.m4.
27518         (Makefile.am): Substitute ASM_SYMBOL_PREFIX.
27519         Reported by Ben Pfaff.
27520
27521 2010-05-16  Bruno Haible  <bruno@clisp.org>
27522
27523         verify: Avoid skipping the test on openSUSE 11.0.
27524         * tests/test-verify.sh: Unset MALLOC_PERTURB_.
27525
27526 2010-05-13  Bruno Haible  <bruno@clisp.org>
27527
27528         Avoid useless warnings from G++.
27529         * build-aux/c++defs.h (_GL_CXXALIASWARN_2, _GL_CXXALIASWARN1_2): Don't
27530         use _GL_WARN_ON_USE or _GL_WARN_ON_USE_CXX when optimizing.
27531         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
27532
27533 2010-05-11  Jim Meyering  <meyering@redhat.com>
27534
27535         maint.mk: tweak preceding change
27536         * top/maint.mk (gl_extract_significant_defines_): Make exclusion
27537         regexps tighter by anchoring at EOL, and make the new group "shy"
27538         for slightly decreased overhead.
27539
27540 2010-05-11  Eric Blake  <eblake@redhat.com>
27541
27542         maint.mk: gnulib doesn't guarantee NSIG
27543         * top/maint.mk (gl_extract_significant_defines_): Exclude NSIG.
27544
27545 2010-05-10  Peter O'Gorman  <pogma@thewrittenword.com>
27546
27547         test-pwrite.c: Remove unused variable declaration.
27548         * tests/test-pwrite.c (main): Remove read_buf declaration.
27549
27550         Remove useless test-pwrite.sh file.
27551         * tests/test-pwrite.sh: Delete file.
27552         * modules/pwrite-tests: Remove references.
27553         Reported by Bruno Haible.
27554
27555 2010-05-10  Peter O'Gorman  <pogma@thewrittenword.com>
27556
27557         init.sh: fix a typo
27558         * tests/init.sh: Correct typo in MALLOC_PERTURB_ initialization.
27559
27560 2010-05-10  Jim Meyering  <meyering@redhat.com>
27561
27562         maint.mk: avoid using a temporary file in the always-defined-macros check
27563         * top/maint.mk (.re-defmac): Remove rule.
27564         (gl_trap_): Remove definition.
27565         (sc_prohibit_always-defined_macros): Rewrite not to create and
27566         depend on a temporary file.  Instead, depend on GNU grep's ability
27567         to read a list of regular expressions from stdin when given "-f -".
27568
27569 2010-05-09  Bruno Haible  <bruno@clisp.org>
27570
27571         Update to GNU gettext 0.18, part 1.
27572         * m4/gettext.m4: Update to GNU gettext 0.18.
27573         * m4/intl.m4: Likewise.
27574         * m4/po.m4: Likewise.
27575         * modules/gettext (Files): Add m4/fcntl-o.m4.
27576         (configure.ac): Require gettext infrastructure from version 0.18.
27577
27578 2010-05-09  Jim Meyering  <meyering@redhat.com>
27579
27580         init.sh: enable MALLOC_PERTURB_
27581         * tests/init.sh: Enable glibc's malloc-perturbing option.
27582
27583         maint.mk: improve sc_cross_check_PATH_usage_in_tests
27584         With my recent change in init.sh from the two-line form:
27585             -#   : ${srcdir=.}
27586             -#   . "$srcdir/init.sh"; path_prepend_ .
27587             +#   . "${srcdir=.}/init.sh"; path_prepend_ .
27588         I noticed that using the one-line form would cause this test
27589         to fail with a false-positive, or to stop working altogether,
27590         depending on whether help-version changed or all the tests did.
27591         * top/maint.mk (_hv_regex): Remove this definition.
27592         (_hv_regex_weak): Use a weak regex to select all init.sh-sourcing files.
27593         (_hv_regex_strong): Use a stronger regex to check for conformance.
27594         (sc_cross_check_PATH_usage_in_tests): Rewrite to use the above.
27595         Give a separate diagnostic for lack of conforming use.
27596
27597         maint.mk: prohibit definition of symbols defined by gnulib
27598         * top/maint.mk (sc_prohibit_always-defined_macros): Reject the
27599         definition of symbols defined by gnulib.
27600
27601 2010-05-09  Bruno Haible  <bruno@clisp.org>
27602
27603         acl: Avoid test failure on Cygwin-hosted mingw.
27604         * tests/test-set-mode-acl.sh: Skip test if USE_ACL is 0.
27605
27606 2010-05-09  Bruno Haible  <bruno@clisp.org>
27607
27608         error: Use system's fcntl function.
27609         * lib/error.c (fcntl): Undefine.
27610
27611 2010-05-09  Jim Meyering  <meyering@redhat.com>
27612
27613         verify: adjust formatting to be more consistent
27614         * lib/verify.h (_GL_GENSYM): Add a space before each of a few
27615         argument-list '('s, and after one comma.
27616
27617 2010-05-09  Bruno Haible  <bruno@clisp.org>
27618
27619         error: More reliable output on mingw.
27620         * lib/error.c: Include <windows.h>.
27621         (is_open): New function.
27622         (flush_stdout): Call it instead of fcntl, also if F_GETFL is not
27623         defined.
27624
27625 2010-05-09  Bruno Haible  <bruno@clisp.org>
27626
27627         vasnprintf: Fix syntax errors in libintl build on mingw.
27628         * lib/vasnprintf.c (VASNPRINTF): Move a closing brace. Undefine
27629         pad_ourselves and prec_ourselves after use.
27630
27631 2010-05-08  Bruno Haible  <bruno@clisp.org>
27632
27633         * lib/config.charset: Update comments for Cygwin 1.7.
27634         * lib/localcharset.c: Likewise.
27635
27636 2010-05-07  Jim Meyering  <meyering@redhat.com>
27637
27638         init.sh: improve comments
27639         * tests/init.sh: Recommend the one-line init.sh-sourcing idiom:
27640         . "${srcdir=.}/init.sh"; path_prepend_ .
27641         Add a note about path_prepend_ and the alternative of using
27642         TESTS_ENVIRONMENT.
27643
27644 2010-05-06  Sergey Poznyakoff  <gray@gnu.org.ua>
27645
27646         exclude: Unescape hashed patterns in wildcard mode.
27647         * lib/exclude.c (add_exclude): Unescape the pattern before adding it
27648         to the hash list.
27649         * tests/test-exclude8.sh: New test case.
27650         * modules/exclude-tests: Add new test.
27651
27652 2010-05-05  Eric Blake  <eblake@redhat.com>
27653
27654         verify: automate tests
27655         * modules/verify-tests: New module.
27656         * tests/test-verify.sh: New file.
27657         * tests/test-verify.c: Guard each negative test with a unique id.
27658         Also avoid warning about unused left hand of comma expressions.
27659
27660 2010-05-05  Paul Eggert  <eggert@cs.ucla.edu>
27661
27662         Further improvements to verify.h, suggested by Eric Blake.
27663         * lib/verify.h (_GL_CONCAT, _GL_CONCAT0, _GL_GENSYM): Renamed from
27664         the GL_* versions, to avoid collision with OpenGL.
27665         (_GL_COUNTER): New macro, so that we can fall back on __LINE__ if
27666         __COUNTER__ doesn't work.  Test that __COUNTER__ increments rather
27667         than testing merely whether it's defined.
27668
27669         Modify verify.h to pacify gcc -Wredundant_decls.
27670         * lib/verify.h (GL_CONCAT, GL_CONCAT0, GL_GENSYM): New macros.
27671         These use the prefix "GL_" since they're likely to be useful elsewhere.
27672         We may need to break them out into a different .h file.
27673         (__COUNTER__): Define to 0 if the compiler doesn't support it.
27674         (verify) [!defined __cplusplus]: Use them to avoid duplicate decls
27675         of verify_function__.
27676
27677 2010-05-05  Peter O'Gorman  <pogma@thewrittenword.com>
27678
27679         Tests for module pwrite.
27680         * modules/pwrite-tests: New file.
27681         * tests/test-pwrite.sh: New file.
27682         * tests/test-pwrite.c: New file.
27683
27684         New module pwrite.
27685         * lib/unistd.in.h (pwrite): New declaration.
27686         * lib/pwrite.c: New file, from glibc with modifications.
27687         * m4/pwrite.m4: New file.
27688         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether pwrite is declared.
27689         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_PWRITE, HAVE_PWRITE,
27690         REPLACE_PWRITE.
27691         * modules/pwrite: New file.
27692         * modules/unistd (Makefile.am): Substitute GNULIB_PWRITE, HAVE_PWRITE,
27693         REPLACE_PWRITE.
27694         * tests/test-unistd-c++.cc: Check GNULIB_NAMESPACE::pwrite.
27695         * doc/posix-functions/pwrite.texi: Mention the new module.
27696
27697 2010-05-05  Peter O'Gorman  <pogma@thewrittenword.com>
27698
27699         pread: Update documentation.
27700         * doc/posix-functions/pread.texi: Mention the 'pread' module.
27701
27702 2010-05-04  Eric Blake  <eblake@redhat.com>
27703
27704         docs: update cygwin progress
27705         * doc/posix-functions/wctob.texi (wctob): Cygwin 1.7.6 will fix
27706         this bug.
27707         * doc/glibc-functions/get_nprocs_conf.texi (get_nprocs_conf):
27708         Added in cygwin 1.7.2.
27709         * doc/glibc-functions/get_phys_pages.texi (get_phys_pages):
27710         Likewise.
27711         * doc/glibc-functions/get_avphys_pages.texi (get_avphys_pages):
27712         Likewise.
27713         * doc/glibc-functions/dup3.texi (dup3): Likewise.
27714         * doc/glibc-functions/pipe2.texi (pipe2): Likewise.
27715         * doc/glibc-functions/accept4.texi (accept4): Likewise.
27716         * doc/posix-functions/strfmon.texi (strfmon): Likewise.
27717         * doc/glibc-functions/get_nprocs.texi (get_nprocs): Likewise.
27718         Mention nproc module.
27719         * doc/glibc-functions/xdr_uint16_t.texi (xdr_uint16_t): Mention
27720         bug in cygwin 1.7.5 addition.
27721         * doc/glibc-functions/xdr_uint32_t.texi (xdr_uint32_t): Likewise.
27722         * doc/glibc-functions/xdr_uint64_t.texi (xdr_uint64_t): Likewise.
27723         * doc/glibc-functions/xdr_uint8_t.texi (xdr_uint8_t): Likewise.
27724         * doc/glibc-functions/xdr_array.texi (xdr_array): Added in cygwin
27725         1.7.5.
27726         * doc/glibc-functions/xdr_bool.texi (xdr_bool): Likewise.
27727         * doc/glibc-functions/xdr_bytes.texi (xdr_bytes): Likewise.
27728         * doc/glibc-functions/xdr_char.texi (xdr_char): Likewise.
27729         * doc/glibc-functions/xdr_double.texi (xdr_double): Likewise.
27730         * doc/glibc-functions/xdr_enum.texi (xdr_enum): Likewise.
27731         * doc/glibc-functions/xdr_float.texi (xdr_float): Likewise.
27732         * doc/glibc-functions/xdr_free.texi (xdr_free): Likewise.
27733         * doc/glibc-functions/xdr_hyper.texi (xdr_hyper): Likewise.
27734         * doc/glibc-functions/xdr_int.texi (xdr_int): Likewise.
27735         * doc/glibc-functions/xdr_int16_t.texi (xdr_int16_t): Likewise.
27736         * doc/glibc-functions/xdr_int32_t.texi (xdr_int32_t): Likewise.
27737         * doc/glibc-functions/xdr_int64_t.texi (xdr_int64_t): Likewise.
27738         * doc/glibc-functions/xdr_int8_t.texi (xdr_int8_t): Likewise.
27739         * doc/glibc-functions/xdr_long.texi (xdr_long): Likewise.
27740         * doc/glibc-functions/xdr_longlong_t.texi (xdr_longlong_t):
27741         Likewise.
27742         * doc/glibc-functions/xdr_netobj.texi (xdr_netobj): Likewise.
27743         * doc/glibc-functions/xdr_opaque.texi (xdr_opaque): Likewise.
27744         * doc/glibc-functions/xdr_pointer.texi (xdr_pointer): Likewise.
27745         * doc/glibc-functions/xdr_reference.texi (xdr_reference):
27746         Likewise.
27747         * doc/glibc-functions/xdr_short.texi (xdr_short): Likewise.
27748         * doc/glibc-functions/xdr_sizeof.texi (xdr_sizeof): Likewise.
27749         * doc/glibc-functions/xdr_string.texi (xdr_string): Likewise.
27750         * doc/glibc-functions/xdr_u_char.texi (xdr_u_char): Likewise.
27751         * doc/glibc-functions/xdr_u_hyper.texi (xdr_u_hyper): Likewise.
27752         * doc/glibc-functions/xdr_u_int.texi (xdr_u_int): Likewise.
27753         * doc/glibc-functions/xdr_u_long.texi (xdr_u_long): Likewise.
27754         * doc/glibc-functions/xdr_u_longlong_t.texi (xdr_u_longlong_t):
27755         Likewise.
27756         * doc/glibc-functions/xdr_u_short.texi (xdr_u_short): Likewise.
27757         * doc/glibc-functions/xdr_union.texi (xdr_union): Likewise.
27758         * doc/glibc-functions/xdr_vector.texi (xdr_vector): Likewise.
27759         * doc/glibc-functions/xdr_void.texi (xdr_void): Likewise.
27760         * doc/glibc-functions/xdr_wrapstring.texi (xdr_wrapstring):
27761         Likewise.
27762         * doc/glibc-functions/xdrmem_create.texi (xdrmem_create):
27763         Likewise.
27764         * doc/glibc-functions/xdrrec_create.texi (xdrrec_create):
27765         Likewise.
27766         * doc/glibc-functions/xdrrec_endofrecord.texi
27767         (xdrrec_endofrecord): Likewise.
27768         * doc/glibc-functions/xdrrec_eof.texi (xdrrec_eof): Likewise.
27769         * doc/glibc-functions/xdrrec_skiprecord.texi (xdrrec_skiprecord):
27770         Likewise.
27771         * doc/glibc-functions/xdrstdio_create.texi (xdrstdio_create):
27772         Likewise.
27773
27774 2010-05-04  Jim Meyering  <meyering@redhat.com>
27775
27776         gendocs.sh: make its "-s FILE" option more useful
27777         * build-aux/gendocs.sh: When honoring the -s FILE option, update
27778         $PACKAGE to reflect the probably-different basename of "FILE".
27779
27780 2010-05-03  Giuseppe Scrivano  <gscrivano@gnu.org>
27781
27782         bootstrap: don't ignore download_po_files failure
27783         * build-aux/bootstrap (update_po_files): Don't ignore download_po_files
27784         failure.
27785
27786 2010-05-03  Jim Meyering  <meyering@redhat.com>
27787
27788         maint.mk: allow to pass options to gendocs.sh
27789         * top/maint.mk (web-manual): Pass gendocs_options_ to gendocs.sh.
27790         (gendocs_options_): New overridable variable.
27791
27792         gnu-web-doc-update: don't ignore configure or build failure
27793         * build-aux/gnu-web-doc-update: Exit nonzero upon internal failure.
27794
27795         announce-gen: backslash-escape '@'s in --help output
27796         * build-aux/announce-gen: Fix syntax errors.
27797
27798         maint.mk, announce-gen: allow project-specific announcement mail headers
27799         * top/maint.mk (translation_project_): Define default.
27800         (announcement_Cc_, announcement_mail_headers_): Likewise.
27801         (announcement): Invoke announce-gen with new --mail-headers option.
27802         * build-aux/announce-gen: New option: --mail-headers=HEADERS.
27803
27804         test-xalloc-die: avoid unwarranted test failure on OpenSolaris 5.11
27805         * tests/test-xalloc-die.sh: Redirect stdout before stderr, (i.e.,
27806         "> out 2> err", rather than "2> err > out").  Otherwise, with /bin/sh
27807         on OpenSolaris 5.11 snv_134, we would end up with a stray "1> out"
27808         line in the "err2" output file when running "make check" in verbose
27809         mode (i.e., with set -x enabled).
27810
27811 2010-05-03  Bruno Haible  <bruno@clisp.org>
27812
27813         wctob: Fix for weird platforms.
27814         * lib/wctob.c (wctob): When wint_t is larger than wchar_t, check the
27815         argument value.
27816
27817 2010-05-03  Jim Meyering  <meyering@redhat.com>
27818
27819         maint.mk: prohibit unwarranted use of <strings.h>
27820         * top/maint.mk (sc_prohibit_strings_without_use): Reject inclusion of
27821         strings.h in a file that does not also use strcasecmp, strncasecmp,
27822         ffs or ffsll.
27823
27824         maint.mk: remove obsolete comments
27825         * top/maint.mk: Remove stale, commented-out rules.
27826
27827 2010-05-02  Bruno Haible  <bruno@clisp.org>
27828
27829         wcwidth: Declare also when it's aliased.
27830         * lib/wchar.in.h (wcwidth): Don't test whether wcwidth is defined as a
27831         macro.
27832
27833 2010-05-02  Bruno Haible  <bruno@clisp.org>
27834
27835         Fix regression from 2010-04-25.
27836         * gnulib-tool (func_modules_transitive_closure): Check the status of
27837         all modules, not only of the tests that are of the form foo-tests where
27838         foo is a module.
27839
27840 2010-05-02  Bruno Haible  <bruno@clisp.org>
27841
27842         wctob: Work around nasty Cygwin 1.7.2 bug.
27843         * m4/wctob.m4 (gl_FUNC_WCTOB): Detect the Cygwin bug.
27844         * doc/posix-functions/wctob.texi: Mention the Cygwin bug.
27845
27846 2010-05-01  Bruno Haible  <bruno@clisp.org>
27847
27848         fpurge: Sharper test.
27849         * tests/test-fpurge.c (main): Add one more ftell check.
27850         * modules/fpurge-tests (Depends-on): Add ftell.
27851         Suggested by Eric Blake.
27852
27853 2010-05-01  Bruno Haible  <bruno@clisp.org>
27854
27855         ftello: Another test.
27856         * tests/test-ftello3.c: New file.
27857         * modules/ftello-tests (Files): Add it.
27858         (Makefile.am): Add it to TESTS and check_PROGRAMS. Augment
27859         MOSTLYCLEANFILES.
27860
27861         ftell: Another test.
27862         * tests/test-ftell3.c: New file.
27863         * modules/ftell-tests (Files): Add it.
27864         (Makefile.am): Add it to TESTS and check_PROGRAMS. Augment
27865         MOSTLYCLEANFILES.
27866
27867 2010-05-01  Bruno Haible  <bruno@clisp.org>
27868
27869         ftell, ftello: Work around Solaris bug.
27870         * m4/ftello.m4 (gl_FUNC_FTELLO): Detect Solaris bug.
27871         * lib/ftello.c: Include stdio-impl.h.
27872         (ftello): On Solaris, when _IOWRT is set, compute the result without
27873         looking at _IOREAD.
27874         * modules/ftello (Files): Add lib/stdio-impl.h.
27875         * doc/posix-functions/ftell.texi: Mention Solaris bug.
27876         * doc/posix-functions/ftello.texi: Likewise.
27877         Reported by Eric Blake.
27878
27879 2010-05-01  Bruno Haible  <bruno@clisp.org>
27880
27881         freading: Adapt to special meaning of _IOREAD flag on Solaris.
27882         * lib/freading.c (freading): On Solaris, ignore the _IOREAD flag if
27883         the _IOWRT flag is also set.
27884
27885 2010-05-01  Bruno Haible  <bruno@clisp.org>
27886
27887         Fix doc about a HP-UX stdio bug.
27888         * doc/posix-functions/ftell.texi: Mark HP-UX bug as unfixed.
27889         * doc/posix-functions/ftello.texi: Likewise.
27890
27891 2010-05-01  Bruno Haible  <bruno@clisp.org>
27892
27893         lseek test: Fix failure on Solaris.
27894         * tests/test-lseek.sh: Partially revert 2010-04-20 commit. Consume all
27895         output.
27896
27897 2010-04-30  Jim Meyering  <meyering@redhat.com>
27898
27899         bootstrap: don't ignore failure to generate po*/Makevars
27900         * build-aux/bootstrap (with_gettext): Don't ignore failure
27901         to create po/Makevars or runtime-po/Makevars.
27902
27903 2010-04-29  Eric Blake  <eblake@redhat.com>
27904
27905         headers: relax license to LGPLv2+
27906         * modules/fcntl-h (License): Relax license.
27907         * modules/getopt-posix (License): Likewise.
27908         * modules/locale (License): Likewise.
27909         * modules/math (License): Likewise.
27910         * modules/pty (License): Likewise.
27911         * modules/sched (License): Likewise.
27912         * modules/search (License): Likewise.
27913         * modules/spawn (License): Likewise.
27914         * modules/stdarg (License): Likewise.
27915         * modules/sysexits (License): Likewise.
27916
27917 2010-04-29  Jim Meyering  <meyering@redhat.com>
27918
27919         inttypes: relax license to LGPLv2+
27920         * modules/inttypes (License): Relax license.
27921
27922 2010-04-29  Simon Josefsson  <simon@josefsson.org>
27923
27924         * top/maint.mk (indent): Run twice to produce idempotent results.
27925
27926 2010-04-28  Bruno Haible  <bruno@clisp.org>
27927
27928         getdate: Generate getdate.c in the source directory.
27929         * modules/getdate (Makefile.am): Add rule for getdate.c. Augment
27930         MOSTLYCLEANFILES.
27931         Suggested by Daniel Richard G. <skunk@iskunk.org> and Ralf Wildenhues.
27932
27933 2010-04-27  Andreas Gruenbacher  <agruen@suse.de>  (tiny change)
27934
27935         * lib/utimens.c: On Tru64, the timestamp parameter of utimens(2)
27936         is not declared as a const *; avoid warnings in that case.
27937
27938 2010-04-28  Eric Blake  <eblake@redhat.com>
27939
27940         canonicalize-lgpl: avoid compiler warning
27941         * lib/canonicalize-lgpl.c (versioned_symbol): Avoid an 'empty
27942         declaration' / 'extraneous semicolon' warning with some compilers.
27943         Reported by Andreas Gruenbacher.
27944
27945 2010-04-28  Jim Meyering  <meyering@redhat.com>
27946
27947         init.sh: ensure a more reliable exit status when exiting via trap
27948         * tests/init.sh (setup_): Don't rely on $? in signal handler.
27949         Inspired by patches from Dmitry V. Levin.
27950         Also trap on signal 3 (SIGQUIT).
27951
27952 2010-04-27  Bruno Haible  <bruno@clisp.org>
27953
27954         Update doc about utimes().
27955         * doc/posix-functions/utimes.texi: Mention the OSF/1 problem and the
27956         'utimens' module.
27957         Reported by Andreas Gruenbacher <agruen@suse.de>.
27958
27959 2010-04-27  Eric Blake  <eblake@redhat.com>
27960
27961         full-read, full-write: relax license
27962         * modules/full-read (License): Drop to LGPLv2+.
27963         * modules/full-write (License): Likewise.
27964         * modules/safe-read (License): Likewise.
27965         * modules/safe-write (License): Likewise.
27966
27967         pthread: mention library for linking
27968         * modules/pthread (Link): Mention $(LIB_PTHREAD).
27969
27970 2010-04-27  Jim Meyering  <meyering@redhat.com>
27971
27972         maint.mk: fix a bug introduced in last change
27973         * top/maint.mk (gl_assured_headers_): Now that all names are on
27974         one line, use sed's "g" modifier.  Note that while the \.in\.h LHS
27975         is not anchored to end of word, it should be adequate.
27976
27977         maint.mk: avoid side-effect in latest syntax-check
27978         * top/maint.mk (sc_prohibit_always_true_header_tests): Rework not
27979         to run commands via $(shell...), and hence to incur cost only when
27980         the new rule is actually run.
27981
27982         maint.mk: syntax-check: prohibit HAVE_<header>_H that are always true
27983         Derive the list of guaranteed header names from gnulib/lib/*.in.h,
27984         and use that to create a regexp used to detect all #if HAVE_..._H uses.
27985         * top/maint.mk (sc_prohibit_always_true_header_tests): New rule.
27986         (gl_assured_headers_, az_, AZ_): Define.
27987         (gl_header_upper_case_or_, gl_have_header_regex_): Define.
27988
27989 2010-04-26  Jim Meyering  <jim@meyering.net>
27990             Bruno Haible  <bruno@clisp.org>
27991
27992         gnulib-common.m4: make glibc write diagnostics to stderr, not /dev/tty
27993         * m4/gnulib-common.m4 (gl_COMMON_BODY): Set LIBC_FATAL_STDERR_.
27994         Prompted by an exchange with Gilles Espinasse.
27995
27996 2010-04-26  Jim Meyering  <meyering@redhat.com>
27997
27998         git-version-gen: aesthetic tweak
27999         * build-aux/git-version-gen: Use "$nl" rather than a literal,
28000         so that the command remains on a single line.
28001
28002 2010-04-26  Eric Blake  <eblake@redhat.com>
28003
28004         git-version-gen: allow use on EBCDIC hosts
28005         * build-aux/git-version-gen (dirty): Use literal rather than tying
28006         ourselves to ascii.
28007         Reported by Steve Goetze.
28008
28009 2010-04-25  Bruno Haible  <bruno@clisp.org>
28010
28011         netdb: Add support for GNULIB_POSIXCHECK.
28012         * lib/netdb.in.h: Include warn-on-use.h.
28013         (getaddrinfo, freeaddrinfo, gai_strerror, getnameinfo): Warn if these
28014         functions are used when GNULIB_POSIXCHECK is defined and the
28015         getaddrinfo module is not in use.
28016         * m4/netdb_h.m4 (gl_HEADER_NETDB): Test whether getaddrinfo,
28017         freeaddrinfo, gai_strerror, getnameinfo are declared.
28018         * modules/netdb (Depends-on): Add warn-on-use.
28019         (Makefile.am): Include warn-on-use.h in netdb.h.
28020
28021 2010-04-24  Ian Beckwith  <ianb@erislabs.net>
28022
28023         build: avoid "make check" failure without .git/ directory
28024         * Makefile (sc_prefer_ac_check_funcs_once): Skip this test when
28025         there is no .git/ directory.
28026
28027 2010-04-25  Bruno Haible  <bruno@clisp.org>
28028
28029         ptsname: Fix misuse of ttyname_r.
28030         * lib/ptsname.c (__ptsname_r): Use __ttyname_r's return value instead
28031         of errno.
28032
28033 2010-04-25  Bruno Haible  <bruno@clisp.org>
28034
28035         ttyname_r: Make it work on Solaris 10.
28036         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Define HAVE_POSIXDECL_TTYNAME_R
28037         if the system function has the POSIX declaration. Test whether the
28038         function fails if the buffer is less than 128 bytes large.
28039         * lib/ttyname_r.c (ttyname_r): Handle both possible declarations of the
28040         system's ttyname_r function. Provide a reasonably large buffer.
28041         * modules/ttyname_r (Depends-on): Add extensions.
28042         * doc/posix-functions/ttyname_r.texi: Mention the Solaris problem.
28043
28044 2010-04-25  Bruno Haible  <bruno@clisp.org>
28045
28046         Use the 'extensions' module for some more functions on Solaris.
28047         * doc/posix-functions/asctime_r.texi: Recommend to use the 'extensions'
28048         module.
28049         * doc/posix-functions/ctime_r.texi: Likewise.
28050         * doc/posix-functions/getgrgid_r.texi: Likewise.
28051         * doc/posix-functions/getgrnam_r.texi: Likewise.
28052         * doc/posix-functions/getpwnam_r.texi: Likewise.
28053         * doc/posix-functions/getpwuid_r.texi: Likewise.
28054         * doc/posix-functions/readdir_r.texi: Likewise.
28055         * doc/posix-functions/sigwait.texi: Likewise.
28056         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Add comment.
28057         * doc/posix-functions/getlogin_r.texi: Mark Solaris problem as fixed.
28058
28059 2010-04-25  Bruno Haible  <bruno@clisp.org>
28060
28061         ttyname_r: Make it work on MacOS X 10.4 and Solaris 10.
28062         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Test whether the system function
28063         has the POSIX declaration. Set REPLACE_TTYNAME_R if not.
28064         * lib/ttyname_r.c: Include <limits.h>.
28065         (ttyname_r): Define using the system's ttyname_r function, if it exists
28066         and not on Solaris.
28067         * lib/unistd.in.h (ttyname_r): Replace function if REPLACE_TTYNAME_R is
28068         set.
28069         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize REPLACE_TTYNAME_R.
28070         * modules/unistd (Makefile.am): Substitute REPLACE_TTYNAME_R.
28071         * doc/posix-functions/ttyname_r.texi: Mark the problem as fixed.
28072         Reported by Simon Josefsson.
28073
28074 2010-04-25  Bruno Haible  <bruno@clisp.org>
28075
28076         Mention effects of _POSIX_PTHREAD_SEMANTICS on Solaris.
28077         * doc/posix-functions/asctime_r.texi: Mention the Solaris problem.
28078         * doc/posix-functions/ctime_r.texi: Likewise.
28079         * doc/posix-functions/getgrgid_r.texi: Likewise.
28080         * doc/posix-functions/getgrnam_r.texi: Likewise.
28081         * doc/posix-functions/getlogin_r.texi: Likewise.
28082         * doc/posix-functions/getpwnam_r.texi: Likewise.
28083         * doc/posix-functions/getpwuid_r.texi: Likewise.
28084         * doc/posix-functions/readdir_r.texi: Likewise.
28085         * doc/posix-functions/sigwait.texi: Likewise.
28086         * doc/posix-functions/ttyname_r.texi: Likewise.
28087         Reported by Simon Josefsson.
28088
28089 2010-04-25  Bruno Haible  <bruno@clisp.org>
28090
28091         gnulib-tool: Don't include hairy tests of dependencies in testdirs.
28092         * gnulib-tool (func_usage): Document that --with-*-tests options apply
28093         also to --create-testdir.
28094         (func_acceptable): Don't consider the status of *-tests modules here.
28095         (func_modules_transitive_closure): Consider it here, before including a
28096         test module.
28097         (func_import, func_create_testdir): Set inc_all_direct_tests,
28098         inc_all_indirect_tests.
28099         * doc/gnulib.texi (Extra tests modules): Document new behaviour of
28100         --create-testdir and --create-megatestdir.
28101
28102 2010-04-25  Bruno Haible  <bruno@clisp.org>
28103
28104         gnulib-tool: Add --without-*-tests options.
28105         * gnulib-tool (func_usage): Document the --without-*-tests options.
28106         (excl_cxx_tests, excl_longrunning_tests, excl_privileged_tests,
28107         excl_unportable_tests): New variables.
28108         Fail if they are specified with --import or --update.
28109         (func_acceptable): Respect the excl_*_tests variables.
28110         (func_import): Set the excl_*_tests variables to empty.
28111
28112 2010-04-25  Simon Josefsson  <simon@josefsson.org>
28113             Bruno Haible  <bruno@clisp.org>
28114
28115         Work around a MacOS X 10.4 bug with openpty.
28116         * doc/glibc-functions/openpty.texi: Mention the MacOS X 10.4 bug.
28117         * tests/test-openpty.c (main): Close the master side explicitly.
28118
28119 2010-04-25  Bruno Haible  <bruno@clisp.org>
28120
28121         strnlen: Fix a C++ test error on MacOS X and Solaris.
28122         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Don't set REPLACE_STRNLEN to 1 if
28123         the function is not declared.
28124         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com> and
28125         Simon Josefsson.
28126
28127 2010-04-24  Bruno Haible  <bruno@clisp.org>
28128
28129         Avoid a gcc warning.
28130         * tests/test-vasprintf.c (test_vasprintf, test_asprintf): Pass argument
28131         of correct type for %08lx directive.
28132         Reported by Eric Blake.
28133
28134 2010-04-24  Bruno Haible  <bruno@clisp.org>
28135
28136         vasnprintf: Correct errno value in case of out-of-memory.
28137         * lib/vasnprintf.c (VASNPRINTF): Set errno to 0 before calling SNPRINTF
28138         or sprintf. Use the errno value from SNPRINTF or sprintf.
28139         Reported by Ian Beckwith <ianb@erislabs.net>.
28140
28141 2010-04-24  Bruno Haible  <bruno@clisp.org>
28142
28143         ansi-c++-opt: Find correct compiler when cross-compiling.
28144         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): Use AC_CHECK_TOOLS instead of
28145         AC_CHECK_PROGS.
28146         Reported by Simon Josefsson.
28147
28148 2010-04-24  Giuseppe Scrivano  <gscrivano@gnu.org>
28149
28150         vc-list-files: Add support for subversion
28151         * build-aux/vc-list-files: Use "svn list" to generate the list of
28152         files controlled by subversion.
28153
28154 2010-04-23  Jim Meyering  <meyering@redhat.com>
28155
28156         vc-list-files tests: convert to use init.sh
28157         * tests/test-vc-list-files-cvs.sh: Invoke "$srcdir/init.sh" and
28158         path_prepend_.
28159         Use Exit, not exit.
28160         Use skip_ rather than open coding it.
28161         Remove trap set-up and compare definitions.
28162         * tests/test-vc-list-files-git.sh: Likewise.
28163         * modules/vc-list-files-tests (Files): Add tests/init.sh.
28164
28165 2010-04-22  Simon Josefsson  <simon@josefsson.org>
28166
28167         * top/maint.mk (sc_prohibit_backup_files): Prohibit checked in
28168         backup files.
28169
28170 2010-04-21  Simon Josefsson  <simon@josefsson.org>
28171
28172         * tests/test-vasprintf.c (test_vasprintf, test_asprintf): Test %08lx.
28173
28174 2010-04-20  Eric Blake  <eblake@redhat.com>
28175
28176         tests: be robust to ignored SIGPIPE
28177         * tests/test-select-in.sh: Consume all output.
28178         * tests/test-lseek.sh: Check correct exit status, while avoiding
28179         EPIPE.
28180
28181 2010-04-20  Simon Josefsson  <simon@josefsson.org>
28182             Bruno Haible  <bruno@clisp.org>
28183
28184         visibility: Don't use -fvisibility if it leads to a warning.
28185         * m4/visibility.m4 (gl_VISIBILITY): Check whether -Werror is usable. If
28186         yes, don't pretend that visibility works if it leads to a warning.
28187         Reported by Mike Gran <spk121@yahoo.com>.
28188
28189 2010-04-20  Andreas Gruenbacher  <agruen@suse.de>
28190
28191         * build-aux/bootstrap: Use "git -h" for testing for supported options
28192         instead of "git --help".  The short-form option only shows a summary,
28193         and doesn't layout the full man page.  Grep for the full option name
28194         in the summary, too.
28195
28196 2010-04-19  Bruno Haible  <bruno@clisp.org>
28197
28198         relocatable: Drop the need to define RELOCATABLE_STRIP in Makefile.am.
28199         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Set RELOCATABLE_STRIP.
28200         * doc/relocatable-maint.texi (Supporting Relocation): Remove the
28201         mention of RELOCATABLE_STRIP.
28202         Reported by Sylvain Beucler <beuc@beuc.net>.
28203
28204 2010-04-19  Bruno Haible  <bruno@clisp.org>
28205
28206         * lib/diffseq.h: Fix typo in comment.
28207         Reported by Eric Blake.
28208
28209 2010-04-19  Bruno Haible  <bruno@clisp.org>
28210
28211         ioctl: Move autoconf macro to a .m4 file.
28212         * m4/ioctl.m4: New file, extracted from modules/ioctl.
28213         * modules/ioctl (Files): Add it.
28214         (configure.ac): Simply invoke gl_FUNC_IOCTL.
28215         Reported by Ian Beckwith <ianb@erislabs.net>.
28216
28217 2010-04-18  Andreas Gruenbacher  <agruen@suse.de>
28218             Bruno Haible  <bruno@clisp.org>
28219
28220         diffseq: Accommodate use-case with abstract arrays.
28221         * lib/diffseq.h (struct context): Remove xvec, yvec fields if ELEMENT
28222         is not defined.
28223         (diag, compareseq): Remove local variables xv, yv if ELEMENT is not
28224         defined. Use local macro XREF_YREF_EQUAL instead of EQUAL.
28225
28226 2010-04-18  Bruno Haible  <bruno@clisp.org>
28227
28228         * doc/posix-headers/stdbool.texi: More precise wording.
28229
28230 2010-04-17  Jim Meyering  <meyering@redhat.com>
28231
28232         maint.mk: use gnu-style indentation in an embedded perl script
28233         * top/maint.mk (detect_empty_lines_at_EOF_): Clean up formatting.
28234         Rename variable: s/two/last_two_bytes/
28235
28236 2010-04-16  Eric Blake  <eblake@redhat.com>
28237
28238         test-stdbool: skip test that fails with Solaris CC
28239         * tests/test-stdbool.c (f): Skip test that causes compilation
28240         error under buggy C++ compiler.
28241         * lib/stdbool.in.h: Document the limitation.
28242         * doc/posix-headers/stdbool.texi (stdbool.h): Likewise.
28243
28244         setenv: allow compilation with C++
28245         * lib/setenv.c (__add_to_environ): Add a cast.  Also, drop use of
28246         register keyword.
28247
28248         stdint: allow test to pass with C++
28249         * tests/test-stdint.c: Define __STDC_CONSTANT_MACROS, for glibc.
28250
28251         getopt: allow compilation with C++
28252         * lib/getopt_int.h (__ordering): Hoist enum declaration outside
28253         struct.
28254         * lib/getopt.c (_getopt_internal_r): Use correct type.
28255         Reported by Dagobert Michelson, via Joel E. Denny.
28256
28257 2010-04-16  Bruno Haible  <bruno@clisp.org>
28258
28259         Override netdb.h always.
28260         * modules/netdb (Makefile.am): Augment BUILT_SOURCES always.
28261         * m4/netdb_h.m4 (gl_HEADER_NETDB): Don't set NETDB_H.
28262         Reported by Ludovic Courtès <ludo@gnu.org>.
28263
28264 2010-04-15  Bruno Haible  <bruno@clisp.org>
28265
28266         openpty: Fix mistake from 2010-03-21.
28267         * m4/pty.m4 (gl_FUNC_OPENPTY): Define HAVE_OPENPTY when openpty exists.
28268         Reported by Simon Josefsson.
28269
28270 2010-04-15  Eric Blake  <eblake@redhat.com>
28271
28272         test-forkpty: fix expected signature
28273         * tests/test-forkpty.c (SIGNATURE_CHECK): Add appropriate const.
28274         Reported by Simon Josefsson.
28275
28276 2010-04-15  Jim Meyering  <meyering@redhat.com>
28277
28278         maint.mk: texinfo_suffix_re_: correct the default regexp
28279         * top/maint.mk (texinfo_suffix_re_): Fix default regexp.
28280
28281         * top/maint.mk (sc_texinfo_acronym): Improve filename regexp, and
28282         make it configurable via texinfo_suffix_re_.
28283
28284 2010-04-14  Eric Blake  <eblake@redhat.com>
28285
28286         strtok_r: relax license to LGPLv2+
28287         * modules/strtok_r (License): Relax license.
28288         Reported by Matthias Bolte.
28289
28290 2010-04-14  Simon Josefsson  <simon@josefsson.org>
28291
28292         * lib/gc-libgcrypt.c (gc_init): Use MIN_GCRYPT_VERSION set to
28293         version 1.4.4 by default instead of requiring the libgcrypt
28294         version used during build.  This makes it possible to use the
28295         application with older but still binary compatible libgcrypt
28296         versions.
28297
28298 2010-04-13  Eric Blake  <eblake@redhat.com>
28299
28300         getopt-gnu: match recent glibc fixes and posix ruling
28301         * tests/test-getopt.h (test_getopt): Strengthen tests of leading
28302         '+' handling, when requesting extensions.
28303         * tests/test-getopt_long.h (test_getopt_long): Strengthen test of
28304         'W;' handling.
28305         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Detect glibc 2.11 bug.
28306         * doc/posix-functions/getopt.texi (getopt): Document this.
28307         * doc/glibc-functions/getopt_long.texi (getopt_long): Likewise.
28308         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
28309         Likewise.
28310
28311         getopt: merge bug fixes from glibc
28312         * lib/getopt.c (_getopt_internal_r): Use correct message for 'W;'
28313         diagnostics.  Honor '+:' correctly.  Reject ';'.
28314
28315         getopt-posix: detect MacOS bug
28316         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Reject MacOS botch of
28317         optind when missing a required argument.
28318         * doc/posix-functions/getopt.texi (getopt): Document the bug.
28319         * doc/glibc-functions/getopt_long.texi (getopt_long): Likewise.
28320         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
28321         Likewise.
28322
28323         getopt-posix: avoid spurious failure on Solaris
28324         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Check for getopt_clip as
28325         an indicator that setting optind=1 is sufficient for reset.
28326
28327         getopt-posix: avoid spurious failure on FreeBSD
28328         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Check for optreset even
28329         in POSIX mode, since the m4 test uses it.
28330
28331         gnulib-tool: silence warning on BSD sh
28332         * gnulib-tool: Avoid leaking warning about unknown 'declare'.
28333
28334 2010-04-13  Jim Meyering  <meyering@redhat.com>
28335
28336         doc: users.txt: GNU patch now uses gnulib
28337         * users.txt: Add patch.
28338
28339 2010-04-12  Jim Meyering  <meyering@redhat.com>
28340
28341         maint.mk: generate more concise timing data for syntax-check rules
28342         * top/maint.mk ($(sc_z_rules_)): Remove the ":", "sc_" prefix and
28343         " done" from each line that reports a syntax-check test duration.
28344
28345 2010-04-12  Andreas Gruenbacher  <agruen@suse.de>
28346
28347         git-version-gen: use "git update-index..." rather than "git status"
28348         * build-aux/git-version-gen: Use git update-index --refresh, not
28349         "git status".  With some versions of git, "git status" would fail
28350         to update the index and result in an unwarranted "-dirty" suffix.
28351
28352 2010-04-11  Jim Meyering  <meyering@redhat.com>
28353
28354         openat: correct formatting (no semantic change)
28355         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Correct formatting in AC_DEFINE.
28356         Suggested by Bruno Haible.
28357
28358 2010-04-11  Bruno Haible  <bruno@clisp.org>
28359
28360         Stricter declaration checking in testdirs.
28361         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
28362         If for_tests is true, augment AM_CPPFLAGS to define
28363         GNULIB_STRICT_CHECKING.
28364         * build-aux/warn-on-use.h (_GL_WARN_ON_USE, _GL_WARN_ON_USE_CXX): When
28365         GNULIB_STRICT_CHECKING is defined, verify that the function is
28366         declared.
28367
28368 2010-04-11  Paolo Bonzini  <bonzini@gnu.org>
28369             Bruno Haible  <bruno@clisp.org>
28370
28371         libunistring: Improve configure output.
28372         * m4/libunistring.m4 (gl_LIBUNISTRING): Check for libiconv first.
28373         Don't say "consider installing GNU libunistring" when checking again
28374         with libiconv.
28375
28376 2010-04-11  Bruno Haible  <bruno@clisp.org>
28377
28378         libunistring: Correct value of $LTLIBUNISTRING.
28379         * m4/libunistring.m4 (gl_LIBUNISTRING): When it depends on libiconv,
28380         correct the value of $LTLIBUNISTRING.
28381
28382 2010-04-11  Bruno Haible  <bruno@clisp.org>
28383
28384         havelib: Add static libraries to LIBS in the right order.
28385         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): When $LIB[]NAME contains no
28386         -l options, prepend it to $LIBS, instead of appending it to $LIBS.
28387
28388 2010-04-11  Bruno Haible  <bruno@clisp.org>
28389
28390         libunistring: Detect libunistring also when it depends on libiconv.
28391         * m4/libunistring.m4 (gl_LIBUNISTRING): Unset the cached result before
28392         the second AC_LIB_HAVE_LINKFLAGS invocation.
28393
28394 2010-04-11  James Youngman  <jay@gnu.org>
28395
28396         close-stream: declare local scalars to be "const"
28397         * lib/close-stream.c (close_stream): Make boolean variables const
28398         to document the fact that we set but do not change them.
28399
28400 2010-04-11  Bruno Haible  <bruno@clisp.org>
28401
28402         * m4/libunistring.m4 (gl_LIBUNISTRING): Fix typo in comment.
28403
28404 2010-04-11  Jim Meyering  <meyering@redhat.com>
28405
28406         maint.mk: don't include dist-check.mk
28407         * top/maint.mk: Remove bogus include directive.
28408
28409         maint.mk: improve empty-line-at-EOF check
28410         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Use Perl-based
28411         solution, rather than tail+Perl-based one.  The latter would read
28412         a few kilobytes from the end of each file, and did not handle empty
28413         files properly.
28414
28415         maint.mk: print the elapsed time for each syntax-check rule
28416         * top/maint.mk (sc_m_rules_): Save start time in a file.
28417         (sc_z_rules_): New rules: remove temp file and print elapsed time.
28418         (local-check): Interpose the .z rules
28419
28420 2010-04-11  Jim Meyering  <meyering@redhat.com>
28421
28422         maint.mk: detect_empty_lines_at_EOF_: avoid FP for an empty file
28423         * top/maint.mk (detect_empty_lines_at_EOF_): Don't confuse an
28424         empty file with one that ends in an empty line.
28425
28426 2010-04-10  Bruno Haible  <bruno@clisp.org>
28427
28428         mkdir: Make it work on mingw64.
28429         * lib/sys_stat.in.h: Include <direct.h> together with <io.h>.
28430         * lib/mkdir.c: Update comment.
28431         Reported by Roman Donchenko (Роман Донченко) <dxdragon@yandex.ru>.
28432
28433 2010-04-10  Bruno Haible  <bruno@clisp.org>
28434
28435         Don't override improved macro from newer autoconf.
28436         * m4/gnulib-common.m4 (AC_C_RESTRICT): Don't define for
28437         autoconf >= 2.62.
28438         Reported by Joel E. Denny <jdenny@clemson.edu>.
28439
28440 2010-04-10  Jim Meyering  <meyering@redhat.com>
28441
28442         maint.mk: new syntax-check rule: prohibit empty lines at end of file
28443         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): New rule.
28444
28445         maint.mk: correct a diagnostic
28446         * top/maint.mk (sc_prohibit_HAVE_MBRTOWC): Fix obsolete use of $re
28447         in diagnostic; now use $prohibit.
28448
28449 2010-04-10  Bruno Haible  <address@hidden>
28450
28451         fchownat: Fix a C++ test error on Solaris 8.
28452         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Don't set REPLACE_FCHOWNAT to 1 if
28453         the function does not exist.
28454
28455 2010-04-10  Bruno Haible  <bruno@clisp.org>
28456
28457         vasnprintf: Add more tests.
28458         * tests/test-vasnprintf-posix.c: Include <errno.h>.
28459         (test_function): Test converting an invalid wide string.
28460
28461         vasnprintf: Correct handling of unconvertible wide string arguments.
28462         * lib/vasnprintf.c (MAX_ROOM_NEEDED): New function, extracted from
28463         VASNPRINTF.
28464         (VASNPRINTF): Use it. After snprintf failed, allocate more memory only
28465         if HAVE_SNPRINTF_RETVAL_C99 is false and the allocated memory is
28466         smaller than the expected maximum need for the directive. Set errno to
28467         EILSEQ, not EINVAL, when the directive is 'c' or 's'.
28468         (local_strnlen, local_wcslen, local_wcsnlen): Update conditions.
28469         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Require AC_C_INLINE and
28470         gl_SNPRINTF_RETVAL_C99. Define HAVE_SNPRINTF_RETVAL_C99.
28471         * modules/vasnprintf (Files): Add m4/printf.m4.
28472         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
28473
28474 2010-04-10  Bruno Haible  <bruno@clisp.org>
28475
28476         vasnprintf: Fix crash in %ls directive.
28477         * lib/vasnprintf.c (VASNPRINTF): Don't abort when a unconvertible wide
28478         string is passed as argument to %ls, with no precision and no width.
28479         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
28480
28481 2010-04-10  Bruno Haible  <bruno@clisp.org>
28482
28483         vasnprintf: Fix multiple test failures on mingw.
28484         * lib/vasnprintf.c (SNPRINTF) [mingw]: Define to snprintf, not
28485         _snprintf, or snwprintf, not _snwprintf.
28486
28487 2010-04-10  Bruno Haible  <bruno@clisp.org>
28488
28489         write: Fix a C++ test error on mingw.
28490         * lib/unistd.in.h (write): Use _GL_CXXALIAS_SYS_CAST.
28491
28492 2010-04-10  Bruno Haible  <bruno@clisp.org>
28493
28494         vasnprintf test: Reduce code duplication.
28495         * tests/test-vasnprintf.c (test_function): New function, extracted from
28496         test_vasnprintf.
28497         (test_vasnprintf, test_asnprintf): Invoke it.
28498
28499 2010-04-10  Bruno Haible  <bruno@clisp.org>
28500
28501         strnlen: Fix warning in C++ mode on MacOS X.
28502         * lib/string.in.h (strnlen): Use the modern idiom.
28503         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Set REPLACE_STRNLEN to 1, instead of
28504         defining strnlen as a macro already in <config.h>.
28505         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
28506         REPLACE_STRNLEN.
28507         * modules/string (Makefile.am): Substitute REPLACE_STRNLEN.
28508         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
28509
28510 2010-04-08  James Youngman  <jay@gnu.org>
28511
28512         * doc/manywarnings.texi (manywarnings): Add missing parenthesis in
28513         the example.
28514
28515 2010-04-09  Jim Meyering  <meyering@redhat.com>
28516
28517         maint.mk: print better diagnostic when there is no $(_hv_file)
28518         * top/maint.mk (sc_cross_check_PATH_usage_in_tests): Skip test and
28519         announce that when $(_hv_file) (aka help-version) does not exist.
28520
28521         init.sh: run tr in the "C" locale to avoid multibyte interpretation
28522         * tests/init.sh (rand_bytes_): Run tr in the "C" locale so it does
28523         not try to interpret its random input bytes.  Jarno Rajahalme reported
28524         that ./test-xalloc-die.sh would fail with "tr: Illegal byte sequence".
28525         on Darwin 10.3.0 with LC_CTYPE=UTF-8.
28526         (mktempd_): Likewise, just in case.
28527
28528         ftruncate: add two years to projected module removal date: 2012
28529         * m4/ftruncate.m4: Adjust comments.
28530
28531         ftruncate: mark module as obsolete; even MinGW provides it, now
28532         * modules/ftruncate (Status): Obsolete.
28533         (Notice): Say that.
28534         * doc/posix-functions/ftruncate.texi: Don't say MinGW lacks it.
28535         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/9203
28536
28537 2010-04-08  Bruno Haible  <bruno@clisp.org>
28538
28539         Fix side effects from tests-related modules.
28540         * modules/dprintf-posix (Comment): New section.
28541         * modules/fprintf-posix (Comment): Likewise.
28542         * modules/obstack-printf-posix (Comment): Likewise.
28543         * modules/printf-posix (Comment): Likewise.
28544         * modules/snprintf-posix (Comment): Likewise.
28545         * modules/sprintf-posix (Comment): Likewise.
28546         * modules/vasnprintf-posix (Comment): Likewise.
28547         * modules/vasprintf-posix (Comment): Likewise.
28548         * modules/vdprintf-posix (Comment): Likewise.
28549         * modules/vfprintf-posix (Comment): Likewise.
28550         * modules/vprintf-posix (Comment): Likewise.
28551         * modules/vsnprintf-posix (Comment): Likewise.
28552         * modules/vsprintf-posix (Comment): Likewise.
28553         * modules/xprintf-posix (Comment): Likewise.
28554         * modules/xvasprintf-posix (Comment): Likewise.
28555         * modules/ceilf-tests (Depends-on): Remove fprintf-posix.
28556         * modules/floorf-tests (Depends-on): Likewise.
28557         * modules/round-tests (Depends-on): Likewise.
28558         * modules/roundf-tests (Depends-on): Likewise.
28559         * modules/trunc-tests (Depends-on): Likewise.
28560         * modules/truncf-tests (Depends-on): Likewise.
28561         * tests/test-ceilf2.c (check): Don't invoke fprintf if the
28562         'fprintf-posix' module is not present.
28563         * tests/test-floorf2.c (check): Likewise.
28564         * tests/test-trunc2.c (check): Likewise.
28565         * tests/test-truncf2.c (check): Likewise.
28566         * tests/test-round2.c (equal): Likewise.
28567         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
28568
28569 2010-04-07  Karl Berry  <karl@gnu.org>
28570
28571         * config/srclist.txt,
28572         * config/srclistvars.sh,
28573         * config/srclist-update: doc fixes.
28574
28575 2010-04-07  Jim Meyering  <meyering@redhat.com>
28576
28577         maint.mk: add a PATH crosschecking syntax-check rule
28578         * top/maint.mk (sc_cross_check_PATH_usage_in_tests): New rule.
28579         Useful if you use a test like the one in help-version (coreutils,
28580         diffutils, grep, gzip) that ensures $(VERSION) matches what is
28581         printed by prog --version.
28582
28583 2010-04-06  Bruno Haible  <bruno@clisp.org>
28584
28585         Fix link error on mingw.
28586         * modules/unistd-c++-tests (test_unistd_c___LDADD): Add LIBSOCKET.
28587         * modules/fcntl-h-c++-tests (test_fcntl_h_c___LDADD): Likewise.
28588
28589 2010-04-06  Bruno Haible  <bruno@clisp.org>
28590
28591         Assume rmdir exists.
28592         * lib/rmdir.c (rpl_rmdir): Remove code that invokes the rmdir program.
28593
28594 2010-04-06  Giuseppe Scrivano <gscrivano@gnu.org>
28595
28596         doc: update users.txt
28597         * users.txt: Add gcal.
28598
28599 2010-04-06  Jim Meyering  <meyering@redhat.com>
28600
28601         init.sh: simply unset TMPDIR rather than risking env -i
28602         * tests/init.sh (mktempd_): Using env -i is rather harsh, and
28603         although it probably works fine on all Unix-based systems, some
28604         systems (Cygwin?) cannot tolerate a totally cleared environment.
28605         Suggestion from Eric Blake.
28606
28607 2010-04-06  Jim Meyering  <meyering@redhat.com>
28608
28609         init.sh: portability fix: use env's POSIX-specified -i option not -u
28610         * tests/init.sh (mktempd_): Use env -i and set PATH explicitly rather
28611         than unportable env -u.  Solaris 5.11's env lacks support for -u.
28612
28613 2010-04-05  Bruno Haible  <bruno@clisp.org>
28614
28615         btowc: Work around Cygwin 1.7.2 bug.
28616         * m4/btowc.m4 (gl_FUNC_BTOWC): Set REPLACE_BTOWC to 1 if the function
28617         does not map NUL to 0.
28618         * doc/posix-functions/btowc.texi: Mention the Cygwin bug.
28619
28620 2010-04-05  Bruno Haible  <bruno@clisp.org>
28621
28622         Make the multithread modules work on Cygwin 1.7.2.
28623         * m4/threadlib.m4 (gl_THREADLIB_BODY): Improve the test whether
28624         imported symbols can be declared weak, so that it returns "no" on
28625         Cygwin 1.7.2.
28626
28627 2010-04-05  Bruno Haible  <bruno@clisp.org>
28628
28629         Use the module 'strncat'.
28630         * modules/unistr/u8-strncat (Depends-on): Add strncat.
28631
28632         Tests for module 'strncat'.
28633         * modules/strncat-tests: New file.
28634         * tests/test-strncat.c: New file.
28635
28636         New module 'strncat'.
28637         * lib/string.in.h (strncat): New declaration.
28638         * lib/strncat.c: New file, based on lib/unistr/u-strncat.h.
28639         * m4/strncat.m4: New file, based on m4/memchr.m4.
28640         * modules/strncat: New file.
28641         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Also check whether strncat
28642         is declared.
28643         (gl_HEADER_STRING_H_DEFAULTS): Initialize GNULIB_STRNCAT,
28644         REPLACE_STRNCAT.
28645         * modules/string (Makefile.am): Substitute GNULIB_STRNCAT,
28646         REPLACE_STRNCAT.
28647         * doc/posix-functions/strncat.texi: Mention the Solaris bug and the new
28648         module.
28649         * tests/test-string-c++.cc: Check signature of strncat.
28650
28651 2010-04-05  Jim Meyering  <meyering@redhat.com>
28652
28653         xstrtoumax-tests: convert to use init.sh
28654         * modules/xstrtoumax-tests (Files): Add tests/init.sh.
28655         * tests/test-xstrtoumax.sh: Invoke "$srcdir/init.sh" and path_prepend_.
28656         Use Exit, not exit.
28657         Remove uses of $EXEEXT and "./" to run a program in the current dir.
28658
28659         xstrtoimax-tests: convert to use init.sh
28660         * modules/xstrtoimax-tests (Files): Add tests/init.sh.
28661         * tests/test-xstrtoimax.sh: Invoke "$srcdir/init.sh" and path_prepend_.
28662         Use Exit, not exit.
28663         Remove uses of $EXEEXT and "./" to run a program in the current dir.
28664
28665 2010-04-05  Bruno Haible  <bruno@clisp.org>
28666
28667         sys_socket: Avoid #define replacements in C++ mode.
28668         * lib/sys_socket.in.h (close, gethostname, select): In C++, attach a
28669         warning to the function if possible, rather than #defining the symbol
28670         to a dysfunctional alias.
28671
28672 2010-04-05  Bruno Haible  <bruno@clisp.org>
28673
28674         fseeko: Fix C++ test error on mingw.
28675         * m4/fseeko.m4 (gl_HAVE_FSEEKO): New macro, extracted from
28676         gl_FUNC_FSEEKO.
28677         (gl_REPLACE_FSEEKO): Also set REPLACE_FSEEKO if appropriate.
28678         (gl_FUNC_FSEEKO): Require gl_HAVE_FSEEKO. Update.
28679         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Don't fiddle with internals of the
28680         fseeko module. Instead, invoke gl_REPLACE_FSEEKO.
28681
28682 2010-04-05  Bruno Haible  <bruno@clisp.org>
28683
28684         duplocale: Improve test output.
28685         * tests/test-duplocale.c (main): Print reason for skipped test.
28686
28687 2010-04-05  Bruno Haible  <bruno@clisp.org>
28688
28689         Assume rmdir exists.
28690         * m4/rmdir.m4 (gl_FUNC_RMDIR): Remove test whether rmdir exists.
28691         * doc/posix-functions/rmdir.texi: Remove mention of "old platforms".
28692
28693 2010-04-05  Bruno Haible  <bruno@clisp.org>
28694
28695         Fix link error on Solaris 8 with cc.
28696         * modules/pty-c++-tests (test_pty_c___LDADD): Add LIBINTL.
28697
28698 2010-04-05  Bruno Haible  <bruno@clisp.org>
28699
28700         frexpl: Fix a C++ test error on Solaris 8 and Cygwin.
28701         * lib/math.in.h (frexpl): Fix condition on _GL_CXXALIASWARN invocation.
28702
28703 2010-04-05  Bruno Haible  <bruno@clisp.org>
28704
28705         vasprintf: Update documentation.
28706         * doc/glibc-functions/asprintf.texi: Mention the 'vasprintf' module.
28707
28708 2010-04-05  Bruno Haible  <bruno@clisp.org>
28709
28710         ptsname: Improve test.
28711         * tests/test-ptsname.c (main): Also try the various master names of BSD
28712         systems.
28713
28714 2010-04-05  Bruno Haible  <bruno@clisp.org>
28715
28716         memchr: Avoid a possible C++ test error.
28717         * lib/string.in.h (memchr): Provide declaration if function is missing.
28718         * m4/memchr.m4 (gl_FUNC_MEMCHR): If the function is missing, set
28719         HAVE_MEMCHR to 0, not REPLACE_MEMCHR to 1.
28720         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize HAVE_MEMCHR.
28721         * modules/string (Makefile.am): Substitute HAVE_MEMCHR.
28722
28723 2010-04-05  Bruno Haible  <bruno@clisp.org>
28724
28725         strtok_r: Improve idiom.
28726         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Invoke gl_PREREQ_STRDUP only when
28727         AC_LIBOBJ is used.
28728
28729 2010-04-05  Bruno Haible  <bruno@clisp.org>
28730
28731         strdup: Improve idiom.
28732         * m4/strdup.m4 (gl_FUNC_STRDUP): Invoke gl_PREREQ_STRDUP only when
28733         AC_LIBOBJ is used.
28734         (gl_FUNC_STRDUP_POSIX): When strdup is missing and malloc is not POSIX
28735         compliant, don't set REPLACE_STRDUP to 1. Invoke gl_PREREQ_STRDUP only
28736         when AC_LIBOBJ is used.
28737
28738 2010-04-05  Bruno Haible  <bruno@clisp.org>
28739
28740         mbsinit, mbrtowc, wcrtomb: Improve idioms.
28741         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): When the function does not exist,
28742         don't set REPLACE_MBSINIT to 1.
28743         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): When the function does not exist,
28744         don't set REPLACE_MBRTOWC to 1.
28745         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): When the function does not
28746         exist, don't set REPLACE_MBSRTOWCS to 1.
28747         * m4/mbsnrtowcs.m4 (gl_FUNC_MBSNRTOWCS): When the function does not
28748         exist, don't set REPLACE_MBSNRTOWCS to 1.
28749         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): When the function does not exist,
28750         don't set REPLACE_WCRTOMB to 1.
28751         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): When the function does not
28752         exist, don't set REPLACE_WCSRTOMBS to 1.
28753         * m4/wcsnrtombs.m4 (gl_FUNC_WCSNRTOMBS): When the function does not
28754         exist, don't set REPLACE_WCSNRTOMBS to 1.
28755
28756 2010-04-05  Bruno Haible  <bruno@clisp.org>
28757
28758         ldexpl: Improve idiom.
28759         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): When the function is not declared,
28760         make sure to set HAVE_DECL_LDEXPL to 0.
28761
28762 2010-04-05  Jim Meyering  <meyering@redhat.com>
28763
28764         xstrtol-tests: convert to use init.sh
28765         * modules/xstrtol-tests (Files): Add tests/init.sh.
28766         * tests/test-xstrtol.sh: Invoke "$srcdir/init.sh" and path_prepend_.
28767         Use Exit, not exit.
28768         Remove uses of $EXEEXT and "./" to run a program in the current dir.
28769
28770         atexit-tests: convert to use init.sh
28771         * modules/atexit-tests (Files): Add tests/init.sh.
28772         * tests/test-atexit.sh: Invoke "$srcdir/init.sh" and path_prepend_.
28773         Use Exit, not exit.
28774         Remove uses of $EXEEXT and "./" to run a program in the current dir.
28775
28776         init.sh: fix typo
28777         * tests/init.sh: Restore omitted ":" before stderr_fileno_ initialization.
28778
28779         init.sh: make it easier for a test script to write to the tty, ...
28780         when using automake's parallel-tests mode.
28781         * tests/init.sh (stderr_fileno_): Define overridable variable.
28782         (warn_): New function, to use it.
28783         (fail_, skip_, framework_failure_): Use warn_.
28784
28785 2010-04-04  Bruno Haible  <bruno@clisp.org>
28786
28787         btowc: Avoid warning.
28788         * lib/btowc.c: Include <stdlib.h>.
28789         Reported by Hauke Fath <hauke@espresso.rhein-neckar.de>.
28790
28791 2010-04-04  Hauke Fath  <hauke@espresso.rhein-neckar.de>  (tiny change)
28792             Bruno Haible  <bruno@clisp.org>
28793
28794         wchar: Port to NetBSD 1.5.
28795         * lib/wchar.in.h (WEOF): Provide fallback also when wint_t exists.
28796         * lib/wctype.in.h (WEOF): Likewise.
28797
28798 2010-04-04  Hauke Fath  <hauke@espresso.rhein-neckar.de>  (tiny change)
28799             Bruno Haible  <bruno@clisp.org>
28800
28801         Port extended stdio to NetBSD 1.5.
28802         * lib/stdio-impl.h [NetBSD]: Include <sys/param.h>.
28803         (struct __sfileext, fp_ub): Define the "old way" for NetBSD 1.5Z and
28804         older.
28805
28806 2010-04-04  Bruno Haible  <bruno@clisp.org>
28807
28808         string: Remove unused substitution.
28809         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Don't initialize
28810         HAVE_DECL_STRERROR.
28811         * modules/string (Makefile.am): Don't substitute HAVE_DECL_STRERROR.
28812
28813 2010-04-04  Bruno Haible  <bruno@clisp.org>
28814
28815         strtod: Avoid a possible C++ test error.
28816         * m4/strtod.m4 (gl_FUNC_STRTOD): When setting HAVE_STRTOD to 0, don't
28817         set REPLACE_STRTOD.
28818
28819 2010-04-04  Bruno Haible  <bruno@clisp.org>
28820
28821         strerror: Update documentation.
28822         * doc/posix-functions/strerror.texi: Remove mention of old platforms.
28823
28824 2010-04-04  Bruno Haible  <bruno@clisp.org>
28825
28826         stdio: Fix some C++ test errors on Solaris 8 with GCC.
28827         * lib/stdio.in.h (vdprintf, vfprintf, vprintf, vsprintf): Use
28828         _GL_CXXALIAS_SYS_CAST.
28829
28830 2010-04-04  Bruno Haible  <bruno@clisp.org>
28831
28832         frexpl: Fix a C++ test error on Solaris 8 and Cygwin.
28833         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): When the
28834         function is not declared, set HAVE_DECL_FREXPL to 0, instead of setting
28835         REPLACE_FREXPL to 1.
28836         * doc/posix-functions/frexpl.texi: Update documentation.
28837
28838 2010-04-04  Bruno Haible  <bruno@clisp.org>
28839
28840         math: Fix some C++ test errors on Solaris 8 and Cygwin.
28841         * lib/math.in.h (cosl, logl, sinl): Use simpler idiom.
28842
28843 2010-04-04  Bruno Haible  <bruno@clisp.org>
28844
28845         Implement nanosleep for native Windows.
28846         * lib/nanosleep.c (nanosleep): New implementation for native Windows.
28847
28848 2010-04-04  Bruno Haible  <bruno@clisp.org>
28849
28850         math: Fix some C++ test errors on Solaris 8.
28851         * lib/math.in.h (truncf, trunc): Use simpler idiom.
28852
28853 2010-04-04  Bruno Haible  <bruno@clisp.org>
28854
28855         math: Fix some C++ test errors on Cygwin.
28856         * lib/math.in.h (ceilf, ceill, floorf, floorl, roundf, round, roundl,
28857         truncl): Provide declaration if the system does not have it.
28858         * m4/ceilf.m4 (gl_FUNC_CEILF): If the function is not declared, set
28859         HAVE_DECL_CEILF to 0, not REPLACE_CEILF to 1.
28860         * m4/ceill.m4 (gl_FUNC_CEILL): If the function is not declared, set
28861         HAVE_DECL_CEILL to 0, not REPLACE_CEILL to 1.
28862         * m4/floorf.m4 (gl_FUNC_FLOORF): If the function is not declared, set
28863         HAVE_DECL_FLOORF to 0, not REPLACE_FLOORF to 1.
28864         * m4/floorl.m4 (gl_FUNC_FLOORL): If the function is not declared, set
28865         HAVE_DECL_FLOORL to 0, not REPLACE_FLOORL to 1.
28866         * m4/round.m4 (gl_FUNC_ROUND): If the function is not declared, set
28867         HAVE_DECL_ROUND to 0, not REPLACE_ROUND to 1.
28868         * m4/roundf.m4 (gl_FUNC_ROUNDF): If the function is not declared, set
28869         HAVE_DECL_ROUNDF to 0, not REPLACE_ROUNDF to 1.
28870         * m4/roundl.m4 (gl_FUNC_ROUNDL): If the function is not declared, set
28871         HAVE_DECL_ROUNDL to 0, not REPLACE_ROUNDL to 1.
28872         * m4/truncl.m4 (gl_FUNC_TRUNCL): If the function is not declared, set
28873         HAVE_DECL_TRUNCL to 0, not REPLACE_TRUNCL to 1.
28874         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize HAVE_DECL_CEILF,
28875         HAVE_DECL_CEILL, HAVE_DECL_FLOORF, HAVE_DECL_FLOORL, HAVE_DECL_ROUND,
28876         HAVE_DECL_ROUNDF, HAVE_DECL_ROUNDL, HAVE_DECL_TRUNCL.
28877         * modules/math (Makefile.am): Substitute HAVE_DECL_CEILF,
28878         HAVE_DECL_CEILL, HAVE_DECL_FLOORF, HAVE_DECL_FLOORL, HAVE_DECL_ROUND,
28879         HAVE_DECL_ROUNDF, HAVE_DECL_ROUNDL, HAVE_DECL_TRUNCL.
28880
28881 2010-04-04  Bruno Haible  <bruno@clisp.org>
28882
28883         * m4/ceilf.m4 (gl_FUNC_CEILF): Remove redundant AC_SUBST invocation.
28884         * m4/ceill.m4 (gl_FUNC_CEILL): Likewise.
28885         * m4/floorf.m4 (gl_FUNC_FLOORF): Likewise.
28886         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
28887         * m4/isfinite.m4 (gl_ISFINITE): Likewise.
28888         * m4/isinf.m4 (gl_ISINF): Likewise.
28889         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
28890
28891 2010-04-04  Bruno Haible  <bruno@clisp.org>
28892
28893         * m4/trunc.m4 (gl_FUNC_TRUNC): Remove redundant AC_SUBST invocation.
28894         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
28895
28896 2010-04-04  Bruno Haible  <bruno@clisp.org>
28897
28898         * m4/tmpfile.m4 (gl_FUNC_TMPFILE): Renamed from gl_TMPFILE.
28899         * modules/tmpfile (configure.ac): Update.
28900
28901         tmpfile: Fix C++ test error on mingw.
28902         * lib/stdio.in.h (tmpfile): New declaration.
28903         * m4/tmpfile.m4 (gl_TMPFILE): Require gl_STDIO_H_DEFAULTS. Set
28904         REPLACE_TMPFILE instead of defining tmpfile as a macro in config.h.
28905         * modules/tmpfile (Depends-on): Add stdio.
28906         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
28907         * m4/stdio_h.m4 (gl_STDIO_H): Also check whether tmpfile is declared.
28908         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_TMPFILE and REPLACE_TMPFILE.
28909         * modules/stdio (Makefile.am): Substitute GNULIB_TMPFILE and
28910         REPLACE_TMPFILE.
28911         * tests/test-stdio-c++.cc (tmpfile): Verify signature.
28912
28913 2010-04-04  Bruno Haible  <bruno@clisp.org>
28914
28915         ioctl: Fix C++ test error on mingw.
28916         * lib/ioctl.c (ioctl): Renamed from rpl_ioctl.
28917         * lib/sys_ioctl.in.h (ioctl): When SYS_IOCTL_H_HAVE_WINSOCK2_H is 1,
28918         use _GL_FUNCDECL_SYS, not _GL_FUNCDECL_RPL.
28919
28920 2010-04-03  Bruno Haible  <bruno@clisp.org>
28921
28922         wcwidth: Fix C++ test error on mingw.
28923         * lib/wcwidth.c (wcwidth): Renamed from rpl_wcwidth.
28924         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): If the wcwidth function does not
28925         exist, don't set REPLACE_WCWIDTH. Instead, rely on HAVE_DECL_WCWIDTH.
28926
28927 2010-04-03  Bruno Haible  <bruno@clisp.org>
28928
28929         nanosleep: Fix C++ test error on mingw.
28930         * lib/nanosleep.c (nanosleep): Renamed from rpl_nanosleep.
28931         * lib/time.in.h (nanosleep): Use modern idiom.
28932         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): When the system does not have a
28933         nanosleep function, set HAVE_NANOSLEEP to 0, instead of setting
28934         REPLACE_NANOSLEEP to 1.
28935         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_NANOSLEEP.
28936         * modules/time (Makefile.am): Substitute HAVE_NANOSLEEP.
28937
28938 2010-04-03  Bruno Haible  <bruno@clisp.org>
28939
28940         strptime: Fix C++ test error on mingw.
28941         * lib/time.in.h (strptime): Use HAVE_STRPTIME, not REPLACE_STRPTIME.
28942         * m4/strptime.m4 (gl_FUNC_STRPTIME): Set HAVE_STRPTIME, not
28943         REPLACE_STRPTIME. Invoke gl_PREREQ_STRPTIME.
28944         (gl_PREREQ_STRPTIME): New macro, extracted from gl_FUNC_STRPTIME.
28945         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_STRPTIME,
28946         not REPLACE_STRPTIME.
28947         * modules/time (Makefile.am): Substitute HAVE_STRPTIME, not
28948         REPLACE_STRPTIME.
28949
28950 2010-04-03  Bruno Haible  <bruno@clisp.org>
28951
28952         timegm: Fix C++ test error on mingw.
28953         * lib/time.in.h (timegm): Use modern idiom.
28954         * m4/timegm.m4 (gl_FUNC_TIMEGM): When timegm does not exist, set
28955         HAVE_TIMEGM to 0, not REPLACE_TIMEGM to 1.
28956         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_TIMEGM.
28957         * modules/time (Makefile.am): Substitute HAVE_TIMEGM.
28958
28959 2010-04-03  Bruno Haible  <bruno@clisp.org>
28960
28961         timegm: Assume declaration if function exists.
28962         * m4/timegm.m4 (gl_FUNC_TIMEGM): Assume timegm is declared if and only
28963         if it exists. Don't clobber ac_cv_func_timegm.
28964
28965 2010-04-03  Bruno Haible  <bruno@clisp.org>
28966
28967         time_r: Fix C++ test error on mingw.
28968         * lib/time.in.h (localtime_r, gmtime_r): Use modern idiom.
28969         * m4/time_r.m4 (gl_TIME_R): When localtime_r does not exist, set
28970         HAVE_LOCALTIME_R to 0, not REPLACE_LOCALTIME_R to 1.
28971         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_LOCALTIME_R.
28972         * modules/time (Makefile.am): Substitute HAVE_LOCALTIME_R.
28973
28974 2010-04-03  Bruno Haible  <bruno@clisp.org>
28975
28976         time_r: Minor updates.
28977         * modules/time_r (Description): Mention the provided functions.
28978         * lib/time_r.c: Don't include <string.h>.
28979         * doc/posix-functions/gmtime_r.texi: Mention the 'time_r' module.
28980         * doc/posix-functions/localtime_r.texi: Likewise.
28981
28982 2010-04-03  Bruno Haible  <bruno@clisp.org>
28983
28984         time: Fix regression introduced on 2010-03-08.
28985         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Require
28986         gl_HEADER_TIME_H_DEFAULTS, not gl_HEADER_STRING_H_DEFAULTS.
28987
28988 2010-04-03  Jim Meyering  <meyering@redhat.com>
28989
28990         maint.mk: don't silently disable project-specific syntax-check rules
28991         * top/maint.mk (_prohibit_regexp): Define, to help people realize
28992         that they need to convert their project-specific syntax-check rules
28993         to use the new _sc_search_regexp.
28994
28995 2010-04-03  Bruno Haible  <bruno@clisp.org>
28996
28997         fchdir: Fix regression introduced on 2010-03-08.
28998         * lib/unistd.in.h (fchdir): Fix declaration.
28999         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set HAVE_FCHDIR, not REPLACE_FCHDIR.
29000         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_FCHDIR, not
29001         REPLACE_FCHDIR.
29002         * modules/unistd (Makefile.am): Substitute HAVE_FCHDIR, not
29003         REPLACE_FCHDIR.
29004
29005 2010-04-03  Bruno Haible  <bruno@clisp.org>
29006
29007         getpagesize: Fix C++ test error on mingw.
29008         * lib/unistd.in.h (getpagesize): Don't use _GL_CXXALIASWARN if the
29009         system does not declare the function.
29010         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Also check whether it's
29011         declared.
29012         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
29013         HAVE_DECL_GETPAGESIZE.
29014         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETPAGESIZE.
29015
29016 2010-04-03  Bruno Haible  <bruno@clisp.org>
29017
29018         stdio: Make C++ tests work on mingw.
29019         * lib/stdio.in.h (getline): Don't use _GL_CXXALIASWARN if the system
29020         does not declare the function.
29021
29022 2010-04-03  Bruno Haible  <bruno@clisp.org>
29023
29024         ftello: Fix C++ test error on mingw.
29025         * lib/stdio.in.h (ftello): Use modern idiom.
29026         * lib/ftello.c (ftello): Renamed from rpl_ftello.
29027         * m4/ftello.m4 (gl_FUNC_FTELLO): Distinguish the case that the function
29028         is missing and that it needs to be replaced.
29029         (gl_REPLACE_FTELLO): Don't set REPLACE_FTELLO here.
29030         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_FTELLO.
29031         * modules/stdio (Makefile.am): Substitute HAVE_FTELLO.
29032
29033 2010-04-03  Bruno Haible  <bruno@clisp.org>
29034
29035         fseeko: Fix C++ test error on mingw.
29036         * lib/stdio.in.h (fseeko): Use modern idiom.
29037         * lib/fseeko.c (fseeko): Renamed from rpl_fseeko.
29038         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Distinguish the case that the function
29039         is missing and that it needs to be replaced.
29040         (gl_REPLACE_FSEEKO): Don't set REPLACE_FSEEKO here.
29041         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_FSEEKO.
29042         * modules/stdio (Makefile.am): Substitute HAVE_FSEEKO.
29043
29044 2010-04-03  Bruno Haible  <bruno@clisp.org>
29045
29046         mkstemp: Fix C++ test error on mingw.
29047         * lib/stdlib.in.h (mkstemp): Use modern idiom.
29048         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Distinguish the case that the
29049         function is missing and that it needs to be replaced.
29050         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_MKSTEMP.
29051         * modules/stdlib (Makefile.am): Substitute HAVE_MKSTEMP.
29052
29053 2010-04-03  Bruno Haible  <bruno@clisp.org>
29054
29055         stpncpy: Fix C++ test error on mingw.
29056         * lib/string.in.h (stpncpy): Use modern idiom.
29057         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Distinguish the case that the
29058         function is missing and that it needs to be replaced.
29059         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
29060         REPLACE_STPNCPY.
29061         * modules/string (Makefile.am): Substitute REPLACE_STPNCPY.
29062
29063 2010-04-03  Bruno Haible  <bruno@clisp.org>
29064
29065         sys_stat: Fix C++ test error on mingw.
29066         * build-aux/c++defs.h (_GL_CXXALIAS_RPL_CAST_1): New macro.
29067         * lib/sys_stat.in.h (lchmod): Use it instead of _GL_CXXALIAS_RPL_1.
29068
29069 2010-04-03  Bruno Haible  <bruno@clisp.org>
29070
29071         pty: Update doc.
29072         * doc/glibc-headers/pty.texi: Mention changes done since 2010-03-18.
29073
29074 2010-04-03  Bruno Haible  <bruno@clisp.org>
29075
29076         unistd: Fix C++ test error on mingw.
29077         * lib/unistd.in.h (getcwd): Use _GL_CXXALIAS_SYS_CAST.
29078
29079 2010-04-03  Bruno Haible  <bruno@clisp.org>
29080
29081         Update doc regarding mingw.
29082         * doc/glibc-functions/openpty.texi: Update regarding mingw.
29083         * doc/glibc-functions/login_tty.texi: Likewise.
29084         * doc/glibc-functions/forkpty.texi: Likewise.
29085
29086 2010-04-03  Bruno Haible  <bruno@clisp.org>
29087
29088         stdlib: Avoid compilation failure of c-strtold on mingw.
29089         * lib/stdlib.in.h: Don't include <unistd.h> on native Windows systems.
29090
29091 2010-04-03  Bruno Haible  <bruno@clisp.org>
29092
29093         locale: Make C++ tests work on Cygwin and mingw.
29094         * lib/locale.in.h (duplocale): Don't use _GL_CXXALIASWARN if gnulib
29095         cannot provide the function.
29096         Reported by Simon Josefsson.
29097
29098 2010-04-03  Bruno Haible  <bruno@clisp.org>
29099
29100         localename: Port to MacOS X 10.6.
29101         * lib/localename.c (gl_locale_name_thread_unsafe): On MacOS X, try the
29102         memory layout of the locales in MacOS X 10.6 as well.
29103         Reported by Panu Kekäläinen <panu@kekalainen.eu>.
29104
29105 2010-04-02  Bruno Haible  <bruno@clisp.org>
29106
29107         gnulib-tool: Ensure that long-running tests are executed last.
29108         * gnulib-tool (func_emit_tests_Makefile_am): Emit the code for long-
29109         running tests after the one for the other tests.
29110
29111 2010-04-02  Bruno Haible  <bruno@clisp.org>
29112
29113         gnulib-tool: Ensure the tests in the main directory are executed first.
29114         * gnulib-tool (func_emit_tests_Makefile_am): Initialize SUBDIRS to
29115         start with the current directory.
29116
29117 2010-04-02  Bruno Haible  <bruno@clisp.org>
29118
29119         Tests for module 'havelib', moved here from GNU gettext.
29120         * modules/havelib-tests: New file, from gettext/autoconf-lib-link with
29121         modifications.
29122         * tests/havelib/README: New file, from gettext/autoconf-lib-link.
29123         * tests/havelib/Makefile.am: New file, from gettext/autoconf-lib-link
29124         with modifications.
29125         * tests/havelib/rpath-1: New file, from gettext/autoconf-lib-link with
29126         modifications.
29127         * tests/havelib/rpath-1a: New file, from gettext/autoconf-lib-link.
29128         * tests/havelib/rpath-1b: New file, from gettext/autoconf-lib-link.
29129         * tests/havelib/rpath-2_a: New file, from gettext/autoconf-lib-link
29130         with modifications.
29131         * tests/havelib/rpath-2_b: New file, from gettext/autoconf-lib-link
29132         with modifications.
29133         * tests/havelib/rpath-2aaa: New file, from gettext/autoconf-lib-link.
29134         * tests/havelib/rpath-2aab: New file, from gettext/autoconf-lib-link.
29135         * tests/havelib/rpath-2aac: New file, from gettext/autoconf-lib-link.
29136         * tests/havelib/rpath-2aad: New file, from gettext/autoconf-lib-link.
29137         * tests/havelib/rpath-2aba: New file, from gettext/autoconf-lib-link.
29138         * tests/havelib/rpath-2abb: New file, from gettext/autoconf-lib-link.
29139         * tests/havelib/rpath-2abc: New file, from gettext/autoconf-lib-link.
29140         * tests/havelib/rpath-2abd: New file, from gettext/autoconf-lib-link.
29141         * tests/havelib/rpath-2baa: New file, from gettext/autoconf-lib-link.
29142         * tests/havelib/rpath-2bab: New file, from gettext/autoconf-lib-link.
29143         * tests/havelib/rpath-2bac: New file, from gettext/autoconf-lib-link.
29144         * tests/havelib/rpath-2bad: New file, from gettext/autoconf-lib-link.
29145         * tests/havelib/rpath-2bba: New file, from gettext/autoconf-lib-link.
29146         * tests/havelib/rpath-2bbb: New file, from gettext/autoconf-lib-link.
29147         * tests/havelib/rpath-2bbc: New file, from gettext/autoconf-lib-link.
29148         * tests/havelib/rpath-2bbd: New file, from gettext/autoconf-lib-link.
29149         * tests/havelib/rpath-3_a: New file, from gettext/autoconf-lib-link
29150         with modifications.
29151         * tests/havelib/rpath-3_b: New file, from gettext/autoconf-lib-link
29152         with modifications.
29153         * tests/havelib/rpath-3aaa: New file, from gettext/autoconf-lib-link.
29154         * tests/havelib/rpath-3aab: New file, from gettext/autoconf-lib-link.
29155         * tests/havelib/rpath-3aac: New file, from gettext/autoconf-lib-link.
29156         * tests/havelib/rpath-3aad: New file, from gettext/autoconf-lib-link.
29157         * tests/havelib/rpath-3aae: New file, from gettext/autoconf-lib-link.
29158         * tests/havelib/rpath-3aaf: New file, from gettext/autoconf-lib-link.
29159         * tests/havelib/rpath-3aag: New file, from gettext/autoconf-lib-link.
29160         * tests/havelib/rpath-3aah: New file, from gettext/autoconf-lib-link.
29161         * tests/havelib/rpath-3aba: New file, from gettext/autoconf-lib-link.
29162         * tests/havelib/rpath-3abb: New file, from gettext/autoconf-lib-link.
29163         * tests/havelib/rpath-3abc: New file, from gettext/autoconf-lib-link.
29164         * tests/havelib/rpath-3abd: New file, from gettext/autoconf-lib-link.
29165         * tests/havelib/rpath-3abe: New file, from gettext/autoconf-lib-link.
29166         * tests/havelib/rpath-3abf: New file, from gettext/autoconf-lib-link.
29167         * tests/havelib/rpath-3abg: New file, from gettext/autoconf-lib-link.
29168         * tests/havelib/rpath-3abh: New file, from gettext/autoconf-lib-link.
29169         * tests/havelib/rpath-3baa: New file, from gettext/autoconf-lib-link.
29170         * tests/havelib/rpath-3bab: New file, from gettext/autoconf-lib-link.
29171         * tests/havelib/rpath-3bac: New file, from gettext/autoconf-lib-link.
29172         * tests/havelib/rpath-3bad: New file, from gettext/autoconf-lib-link.
29173         * tests/havelib/rpath-3bae: New file, from gettext/autoconf-lib-link.
29174         * tests/havelib/rpath-3baf: New file, from gettext/autoconf-lib-link.
29175         * tests/havelib/rpath-3bag: New file, from gettext/autoconf-lib-link.
29176         * tests/havelib/rpath-3bah: New file, from gettext/autoconf-lib-link.
29177         * tests/havelib/rpath-3bba: New file, from gettext/autoconf-lib-link.
29178         * tests/havelib/rpath-3bbb: New file, from gettext/autoconf-lib-link.
29179         * tests/havelib/rpath-3bbc: New file, from gettext/autoconf-lib-link.
29180         * tests/havelib/rpath-3bbd: New file, from gettext/autoconf-lib-link.
29181         * tests/havelib/rpath-3bbe: New file, from gettext/autoconf-lib-link.
29182         * tests/havelib/rpath-3bbf: New file, from gettext/autoconf-lib-link.
29183         * tests/havelib/rpath-3bbg: New file, from gettext/autoconf-lib-link.
29184         * tests/havelib/rpath-3bbh: New file, from gettext/autoconf-lib-link.
29185         * tests/havelib/rpathx/rpathx.c: New file, from
29186         gettext/autoconf-lib-link.
29187         * tests/havelib/rpathx/Makefile.am: New file, from
29188         gettext/autoconf-lib-link.
29189         * tests/havelib/rpathx/configure.ac: New file, from
29190         gettext/autoconf-lib-link with modifications.
29191         * tests/havelib/rpathy/rpathy.c: New file, from
29192         gettext/autoconf-lib-link.
29193         * tests/havelib/rpathy/Makefile.am: New file, from
29194         gettext/autoconf-lib-link.
29195         * tests/havelib/rpathy/configure.ac: New file, from
29196         gettext/autoconf-lib-link with modifications.
29197         * tests/havelib/rpathz/rpathz.c: New file, from
29198         gettext/autoconf-lib-link.
29199         * tests/havelib/rpathz/Makefile.am: New file, from
29200         gettext/autoconf-lib-link.
29201         * tests/havelib/rpathz/configure.ac: New file, from
29202         gettext/autoconf-lib-link with modifications.
29203         * tests/havelib/rpathlx/usex.c: New file, from
29204         gettext/autoconf-lib-link.
29205         * tests/havelib/rpathlx/Makefile.am: New file, from
29206         gettext/autoconf-lib-link.
29207         * tests/havelib/rpathlx/configure.ac: New file, from
29208         gettext/autoconf-lib-link with modifications.
29209         * tests/havelib/rpathly/usey.c: New file, from
29210         gettext/autoconf-lib-link.
29211         * tests/havelib/rpathly/Makefile.am: New file, from
29212         gettext/autoconf-lib-link.
29213         * tests/havelib/rpathly/configure.ac: New file, from
29214         gettext/autoconf-lib-link with modifications.
29215         * tests/havelib/rpathlz/usez.c: New file, from
29216         gettext/autoconf-lib-link.
29217         * tests/havelib/rpathlz/Makefile.am: New file, from
29218         gettext/autoconf-lib-link.
29219         * tests/havelib/rpathlz/configure.ac: New file, from
29220         gettext/autoconf-lib-link with modifications.
29221         * tests/havelib/rpathlyx/usey.c: New file, from
29222         gettext/autoconf-lib-link.
29223         * tests/havelib/rpathlyx/Makefile.am: New file, from
29224         gettext/autoconf-lib-link.
29225         * tests/havelib/rpathlyx/configure.ac: New file, from
29226         gettext/autoconf-lib-link with modifications.
29227         * tests/havelib/rpathlzyx/usez.c: New file, from
29228         gettext/autoconf-lib-link.
29229         * tests/havelib/rpathlzyx/Makefile.am: New file, from
29230         gettext/autoconf-lib-link.
29231         * tests/havelib/rpathlzyx/configure.ac: New file, from
29232         gettext/autoconf-lib-link with modifications.
29233         * tests/havelib/rpathcfg.sh: New file, from gettext/autoconf-lib-link
29234         with modifications.
29235
29236 2010-04-02  Bruno Haible  <bruno@clisp.org>
29237
29238         gnulib-tool: Create distributed built sources also for the tests.
29239         * gnulib-tool (func_create_testdir): Also generate distributed built
29240         sources in the tests directory.
29241
29242 2010-04-02  Bruno Haible  <bruno@clisp.org>
29243
29244         gnulib-tool: Obey user's environment variables.
29245         * gnulib-tool (func_create_testdir): When creating built sources,
29246         respect the environment variables for autoconf, automake, etc. given by
29247         the user.
29248
29249 2010-04-02  Bruno Haible  <bruno@clisp.org>
29250
29251         gnulib-tool: Provide the value of --m4-base to modules.
29252         * gnulib-tool (func_import, func_create_testdir): Emit a definition
29253         of gl_m4_base.
29254
29255 2010-04-02  Eric Blake  <eblake@redhat.com>
29256
29257         maint.mk: fix some fallout
29258         * NEWS: Document the incompatible change, and its effect on cfg.mk.
29259         * top/maint.mk (sc_prohibit_test_minus_ao): Update.
29260
29261 2010-03-28  Jose E. Marchesi  <jemarch@gnu.org>
29262
29263         maint.mk: _sc_search_regexp: generalize and rename from _prohibit_regexp
29264         * top/maint.mk (_sc_search_regexp): Rename from _prohibit_regexp.
29265         (sc_cast_of_argument_to_free): Adapt to use _sc_search_regexp.
29266         (sc_cast_of_x_alloc_return_value): Likewise.
29267         (sc_cast_of_alloca_return_value): Likewise.
29268         (sc_space_tab): Likewise.
29269         (sc_prohibit_atoi_atof): Likewise.
29270         (sc_prohibit_magic_number_exit): Likewise.
29271         (sc_error_exit_success): Likewise.
29272         (sc_file_system): Likewise.
29273         (sc_prohibit_have_config_h): Likewise.
29274         (sc_require_config_h): Likewise.
29275         (sc_prohibit_HAVE_MBRTOWC): Likewise.
29276         (sc_obsolete_symbols): Likewise.
29277         (sc_changelog): Likewise.
29278         (sc_program_name): Likewise.
29279         (sc_the_the): Likewise.
29280         (sc_trailing_blank): Likewise.
29281         (sc_two_space_separator_in_usage): Likewise.
29282         (sc_useless_cpp_parens): Likewise.
29283         (sc_GPL_version): Likewise.
29284         (sc_GFDL_version): Likewise.
29285         (sc_texinfo_acronym): Likewise.
29286         (sc_prohibit_cvs_keyword): Likewise.
29287         (sc_prohibit_stat_st_blocks): Likewise.
29288         (sc_prohibit_S_IS_definition): Likewise.
29289         (sc_redundant_const): Likewise.
29290         (sc_makefile_TAB_only_indentation): Likewise.
29291         (sc_m4_quote_check): Likewise.
29292         (sc_makefile_path_separator_check): Likewise.
29293         (sc_copyright_check): Likewise.
29294         (sc_Wundef_boolean): Likewise.
29295         (sc_vulnerable_makefile_CVE-2009-4029): Likewise.
29296
29297         maint.mk: match 0 or more whitespace-before-function-call '('
29298         * top/maint.mk (sc_error_exit_success): Relax regexp to match uses
29299         that have zero or two-and-more spaces between the function name
29300         and the open parenthesis.
29301         (sc_error_message_warn_fatal): Likewise.
29302         (sc_error_message_uppercase): Likewise.
29303         (sc_error_message_period): Likewise.
29304
29305 2010-03-31  Eric Blake  <eblake@redhat.com>
29306
29307         maint.mk: check for [ as well as test
29308         * top/maint.mk (sc_prohibit_test_minus_ao): Extend test.
29309         Based on a libvirt report by Matthias Bolte.
29310
29311         gnumakefile: don't squelch _version output
29312         * top/GNUmakefile (_version): Create one-shot dependency rather
29313         than using $(shell) when version must be regenerated.
29314         (_autoreconf): Run verbosely, by default.
29315
29316         sys_time: avoid compiler warnings
29317         * lib/sys_time.in.h (includes): Ensure gcc pragma is
29318         unconditional, fixing regression from 2010-03-29.
29319         Reported by Simon Josefsson.
29320
29321 2010-03-28  Jose E. Marchesi  <jemarch@gnu.org>
29322
29323         maint.mk: s/_header_without_use/_sc_header_without_use/
29324         * top/maint.mk (_sc_header_without_use): Rename from _header_without_use.
29325         (sc_prohibit_assert_without_use): Use the new name.
29326         (sc_prohibit_close_stream_without_use): Likewise.
29327         (sc_prohibit_getopt_without_use): Likewise.
29328         (sc_prohibit_quotearg_without_use): Likewise.
29329         (sc_prohibit_quote_without_use): Likewise.
29330         (sc_prohibit_long_options_without_use): Likewise.
29331         (sc_prohibit_inttostr_without_use): Likewise.
29332         (sc_prohibit_ignore_value_without_use): Likewise.
29333         (sc_prohibit_error_without_use): Likewise.
29334         (sc_prohibit_xalloc_without_use): Likewise.
29335         (sc_prohibit_hash_without_use): Likewise.
29336         (sc_prohibit_hash_pjw_without_use): Likewise.
29337         (sc_prohibit_safe_read_without_use): Likewise.
29338         (sc_prohibit_argmatch_without_use): Likewise.
29339         (sc_prohibit_canonicalize_without_use): Likewise.
29340         (sc_prohibit_root_dev_ino_without_use): Likewise.
29341         (sc_prohibit_openat_without_use): Likewise.
29342         (sc_prohibit_c_ctype_without_use): Likewise.
29343         (sc_prohibit_signal_without_use): Likewise.
29344         (sc_prohibit_intprops_without_use): Likewise.
29345
29346 2010-03-30  Eric Blake  <eblake@redhat.com>
29347
29348         maint: improve module indicators
29349         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_SET_VARIABLE)
29350         (gl_MODULE_INDICATOR, gl_MODULE_INDICATOR_FOR_TESTS): Fit in 80
29351         columns, and avoid extra macro expansion.
29352
29353         fdopendir: work around FreeBSD bug
29354         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): New witness.
29355         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Set it.
29356         * modules/dirent (Makefile.am): Substitute it.
29357         * lib/dirent.in.h (fdopendir): Supply missing FreeBSD
29358         declaration.
29359         * doc/posix-functions/fdopendir.texi (fdopendir): Document the
29360         fix.
29361         Reported by Christian Weisgerber <naddy@mips.inka.de>.
29362
29363 2010-03-29  Bruno Haible  <bruno@clisp.org>
29364
29365         Emit #pragma system_header after the inclusion guard, not before.
29366         * lib/arpa_inet.in.h: Emit #pragma system_header after the inclusion
29367         guard that spans the entire file, not before. This enables an
29368         optimization in GCC's preprocessor.
29369         * lib/ctype.in.h: Likewise.
29370         * lib/dirent.in.h: Likewise.
29371         * lib/errno.in.h: Likewise.
29372         * lib/float.in.h: Likewise.
29373         * lib/getopt.in.h: Likewise.
29374         * lib/iconv.in.h: Likewise.
29375         * lib/langinfo.in.h: Likewise.
29376         * lib/locale.in.h: Likewise.
29377         * lib/math.in.h: Likewise.
29378         * lib/netdb.in.h: Likewise.
29379         * lib/netinet_in.in.h: Likewise.
29380         * lib/pty.in.h: Likewise.
29381         * lib/sched.in.h: Likewise.
29382         * lib/se-selinux.in.h: Likewise.
29383         * lib/search.in.h: Likewise.
29384         * lib/spawn.in.h: Likewise.
29385         * lib/stdarg.in.h: Likewise.
29386         * lib/stdint.in.h: Likewise.
29387         * lib/string.in.h: Likewise.
29388         * lib/strings.in.h: Likewise.
29389         * lib/sys_file.in.h: Likewise.
29390         * lib/sys_ioctl.in.h: Likewise.
29391         * lib/sys_time.in.h: Likewise.
29392         * lib/sys_times.in.h: Likewise.
29393         * lib/sys_utsname.in.h: Likewise.
29394         * lib/sys_wait.in.h: Likewise.
29395         * lib/sysexits.in.h: Likewise.
29396         * lib/wctype.in.h: Likewise.
29397
29398 2010-03-28  James Youngman  <jay@gnu.org>
29399
29400         save-cwd: don't leak a file descriptor when the caller execs.
29401         * lib/save-cwd.c (save_cwd): set the close-on-exec flag for the
29402         saved file descriptor.
29403         * modules/save-cwd (Depends-on): Depend on cloexec.
29404
29405 2010-03-29  Bruno Haible  <bruno@clisp.org>
29406
29407         Remove vestiges of fts-lgpl module.
29408         * lib/fts_.h: Assume GNULIB_FTS is 1.
29409         * lib/fts.c: Likewise.
29410         * modules/fts (configure.ac): Remove gl_MODULE_INDICATOR invocation.
29411
29412 2010-03-28  Bruno Haible  <bruno@clisp.org>
29413
29414         Fix definition of tests witness macro.
29415         * gnulib-tool (func_import): Fix definition of witness macro.
29416
29417 2010-03-28  Bruno Haible  <bruno@clisp.org>
29418
29419         Fix ioctl's protoype on glibc systems.
29420         * lib/sys_ioctl.in.h (ioctl): If REPLACE_IOCTL is 1, use a wrapper. Use
29421         _GL_CXXALIAS_SYS, not _GL_CXXALIAS_SYS_CAST.
29422         * lib/ioctl.c (rpl_ioctl) [HAVE_IOCTL]: New wrapper.
29423         * modules/ioctl (configure.ac): Test whether ioctl has the POSIX
29424         signature. If not, arrange to replace the ioctl function.
29425         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H_DEFAULTS): Initialize
29426         REPLACE_IOCTL.
29427         * modules/sys_ioctl (Makefile.am): Substitute REPLACE_IOCTL.
29428         * doc/posix-functions/ioctl.texi: Mention the glibc problem.
29429         Reported by Ludovic Courtès <ludo@gnu.org>.
29430
29431 2010-03-28  Javier Villavicencio  <the_paya@gentoo.org>
29432
29433         exclude: fix the case of globs vs. EXCLUDE_INCLUDE
29434         * lib/exclude.c (excluded_file_pattern_p): Fix logic error that
29435         made it so grep -r --include=GLOB* ... did not work.
29436
29437 2010-03-26  Jim Meyering  <meyering@redhat.com>
29438             Eric Blake  <eblake@redhat.com>
29439
29440         maint.mk: prohibit use of test's -o and -a operators
29441         * top/maint.mk (sc_prohibit_test_minus_ao): New rule.
29442
29443 2010-03-28  Bruno Haible  <bruno@clisp.org>
29444
29445         Remove unused GNULIB_XYZ macro definitions.
29446         * modules/crypto/gc-camellia (configure.ac): Remove gl_MODULE_INDICATOR
29447         invocation.
29448
29449 2010-03-28  Bruno Haible  <bruno@clisp.org>
29450
29451         Mark privileged tests modules.
29452         * modules/idpriv-drop-tests (Status): New section.
29453         * modules/idpriv-droptemp-tests (Status): New section.
29454
29455 2010-03-28  Bruno Haible  <bruno@clisp.org>
29456
29457         Split C++ tests into separate tests modules.
29458         * modules/dirent-c++-tests: New file, extracted from
29459         modules/dirent-tests.
29460         * modules/dirent-tests: Depend on it.
29461         * modules/fcntl-h-c++-tests: New file, extracted from
29462         modules/fcntl-h-tests.
29463         * modules/fcntl-h-tests: Depend on it.
29464         * modules/glob-c++-tests: New file, extracted from modules/glob-tests.
29465         * modules/glob-tests: Depend on it.
29466         * modules/iconv-h-c++-tests: New file, extracted from
29467         modules/iconv-h-tests.
29468         * modules/iconv-h-tests: Depend on it.
29469         * modules/langinfo-c++-tests: New file, extracted from
29470         modules/langinfo-tests.
29471         * modules/langinfo-tests: Depend on it.
29472         * modules/locale-c++-tests: New file, extracted from
29473         modules/locale-tests.
29474         * modules/locale-tests: Depend on it.
29475         * modules/math-c++-tests: New file, extracted from modules/math-tests.
29476         * modules/math-tests: Depend on it.
29477         * modules/pty-c++-tests: New file, extracted from modules/pty-tests.
29478         * modules/pty-tests: Depend on it.
29479         * modules/search-c++-tests: New file, extracted from
29480         modules/search-tests.
29481         * modules/search-tests: Depend on it.
29482         * modules/signal-c++-tests: New file, extracted from
29483         modules/signal-tests.
29484         * modules/signal-tests: Depend on it.
29485         * modules/spawn-c++-tests: New file, extracted from
29486         modules/spawn-tests.
29487         * modules/spawn-tests: Depend on it.
29488         * modules/stdio-c++-tests: New file, extracted from
29489         modules/stdio-tests.
29490         * modules/stdio-tests: Depend on it.
29491         * modules/stdlib-c++-tests: New file, extracted from
29492         modules/stdlib-tests.
29493         * modules/stdlib-tests: Depend on it.
29494         * modules/string-c++-tests: New file, extracted from
29495         modules/string-tests.
29496         * modules/string-tests: Depend on it.
29497         * modules/sys_ioctl-c++-tests: New file, extracted from
29498         modules/sys_ioctl-tests.
29499         * modules/sys_ioctl-tests: Depend on it.
29500         * modules/sys_select-c++-tests: New file, extracted from
29501         modules/sys_select-tests.
29502         * modules/sys_select-tests: Depend on it.
29503         * modules/sys_socket-c++-tests: New file, extracted from
29504         modules/sys_socket-tests.
29505         * modules/sys_socket-tests: Depend on it.
29506         * modules/sys_stat-c++-tests: New file, extracted from
29507         modules/sys_stat-tests.
29508         * modules/sys_stat-tests: Depend on it.
29509         * modules/sys_time-c++-tests: New file, extracted from
29510         modules/sys_time-tests.
29511         * modules/sys_time-tests: Depend on it.
29512         * modules/time-c++-tests: New file, extracted from modules/time-tests.
29513         * modules/time-tests: Depend on it.
29514         * modules/unistd-c++-tests: New file, extracted from
29515         modules/unistd-tests.
29516         * modules/unistd-tests: Depend on it.
29517         * modules/wchar-c++-tests: New file, extracted from
29518         modules/wchar-tests.
29519         * modules/wchar-tests: Depend on it.
29520         * modules/wctype-c++-tests: New file, extracted from
29521         modules/wctype-tests.
29522         * modules/wctype-tests: Depend on it.
29523         Reported by Simon Josefsson.
29524
29525 2010-03-28  Bruno Haible  <bruno@clisp.org>
29526
29527         gnulib-tool: Allow 'foo-tests' module even if there is no module 'foo'.
29528         * gnulib-tool (func_exists_module): New function, extracted from
29529         func_verify_module.
29530         (func_verify_module): Use it.
29531         (func_get_dependencies): Synthetize a dependency from 'foo-tests' to
29532         'foo' only if 'foo' exists.
29533         * doc/gnulib.texi (Extra tests modules): Explain how to split a tests
29534         module.
29535
29536 2010-03-28  Bruno Haible  <bruno@clisp.org>
29537
29538         gnulib-tool: Add support for special categories of tests.
29539         * gnulib-tool: New options --with-c++-tests, --with-longrunning-tests,
29540         --with-privileged-tests, --with-unportable-tests, --with-all-tests.
29541         (func_usage): Document them.
29542         (inc_cxx_tests, inc_longrunning_tests, inc_privileged_tests,
29543         inc_unportable_tests, inc_all_tests): New variables.
29544         (func_acceptable): Consider these variables.
29545         (func_modules_transitive_closure): Make it work when the 'Status' field
29546         consists of multiple words.
29547         (func_import): Store and restore the values of inc_cxx_tests,
29548         inc_longrunning_tests, inc_privileged_tests, inc_unportable_tests,
29549         inc_all_tests in gnulib-comp.m4.
29550         (func_create_testdir): Set inc_all_tests to true.
29551         * doc/gnulib.texi (Extra tests modules): New section.
29552         Suggested by Jim Meyering.
29553
29554 2010-03-28  Bruno Haible  <bruno@clisp.org>
29555
29556         ansi-c++-opt: Allow turning off the C++ build by default.
29557         * m4/ansi-c++.m4 (gl_CXX_CHOICE): Let CXX_CHOICE default to 'no' if
29558         gl_CXX_CHOICE_DEFAULT_NO is defined.
29559         Requested by Eric Blake.
29560
29561 2010-03-28  Bruno Haible  <bruno@clisp.org>
29562
29563         unistd: Avoid #define replacements in C++ mode.
29564         * lib/unistd.in.h (socket, connect, accept, bind, getpeername,
29565         getsockname, getsockopt, listen, recv, send, recvfrom, sendto,
29566         setsockopt, shutdown, select): In C++, attach a warning to the function
29567         if possible, rather than #defining the symbol to a dysfunctional alias.
29568         Reported by John W. Eaton <jwe@gnu.org>.
29569
29570 2010-03-28  Bruno Haible  <bruno@clisp.org>
29571
29572         Fix link errors on mingw.
29573         * lib/sys_ioctl.in.h (ioctl): Fix declaration idiom.
29574         * modules/sys_ioctl-tests (Makefile.am): Link test-sys_ioctl-c++ with
29575         $(LIBSOCKET).
29576         * modules/sys_select-tests (Makefile.am): Link test-sys_select-c++ with
29577         $(LIBSOCKET).
29578
29579 2010-03-28  Bruno Haible  <bruno@clisp.org>
29580             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
29581
29582         lib-ignore: Determine different options for different compilers.
29583         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Set a variable which
29584         depends on the current language (C/C++/Fortran). Don't set LDFLAGS.
29585         Add comments.
29586         (_gl_IGNORE_UNUSED_LIBRARIES_OPTIONS): New macro.
29587         * NEWS: Mention the change.
29588
29589 2010-03-27  Bruno Haible  <bruno@clisp.org>
29590
29591         Remove unused GNULIB_XYZ macro definitions.
29592         * modules/dup3 (configure.ac): Remove gl_MODULE_INDICATOR invocation.
29593         * modules/fseek (configure.ac): Likewise.
29594         * modules/ioctl (configure.ac): Likewise.
29595         * modules/open (configure.ac): Likewise.
29596         * modules/stdlib-safer (configure.ac): Likewise.
29597
29598 2010-03-27  Bruno Haible  <bruno@clisp.org>
29599
29600         Add a remark about certain modules.
29601         * modules/malloc (Comment): New section.
29602         * modules/realloc (Comment): Likewise.
29603         * modules/sigpipe (Comment): Likewise.
29604
29605 2010-03-27  Bruno Haible  <bruno@clisp.org>
29606
29607         Resolve conflict between the two kinds of module indicators.
29608         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_FOR_TESTS): Define
29609         GNULIB_TEST_XYZ instead of GNULIB_XYZ.
29610         * modules/canonicalize (configure.ac): Invoke
29611         gl_MODULE_INDICATOR_FOR_TESTS.
29612         * tests/test-canonicalize-lgpl.c: Test GNULIB_TEST_XYZ instead of
29613         GNULIB_XYZ.
29614         * tests/test-dirent-c++.cc: Likewise.
29615         * tests/test-dirent-safer.c: Likewise.
29616         * tests/test-dup2.c: Likewise.
29617         * tests/test-fchdir.c: Likewise.
29618         * tests/test-fcntl-h-c++.cc: Likewise.
29619         * tests/test-getopt.c: Likewise.
29620         * tests/test-getopt.h: Likewise.
29621         * tests/test-langinfo-c++.cc: Likewise.
29622         * tests/test-locale-c++.cc: Likewise.
29623         * tests/test-math-c++.cc: Likewise.
29624         * tests/test-pty-c++.cc: Likewise.
29625         * tests/test-search-c++.cc: Likewise.
29626         * tests/test-signal-c++.cc: Likewise.
29627         * tests/test-spawn-c++.cc: Likewise.
29628         * tests/test-stdio-c++.cc: Likewise.
29629         * tests/test-stdlib-c++.cc: Likewise.
29630         * tests/test-string-c++.cc: Likewise.
29631         * tests/test-sys_ioctl-c++.cc: Likewise.
29632         * tests/test-sys_select-c++.cc: Likewise.
29633         * tests/test-sys_socket-c++.cc: Likewise.
29634         * tests/test-sys_stat-c++.cc: Likewise.
29635         * tests/test-sys_time-c++.cc: Likewise.
29636         * tests/test-time-c++.cc: Likewise.
29637         * tests/test-unistd-c++.cc: Likewise.
29638         * tests/test-wchar-c++.cc: Likewise.
29639         * tests/uninorm/test-u8-nfc.c: Likewise.
29640         * tests/uninorm/test-u8-nfd.c: Likewise.
29641         * tests/uninorm/test-u8-nfkc.c: Likewise.
29642         * tests/uninorm/test-u8-nfkd.c: Likewise.
29643         * tests/uninorm/test-u16-nfc.c: Likewise.
29644         * tests/uninorm/test-u16-nfd.c: Likewise.
29645         * tests/uninorm/test-u16-nfkc.c: Likewise.
29646         * tests/uninorm/test-u16-nfkd.c: Likewise.
29647         * tests/uninorm/test-u32-nfc.c: Likewise.
29648         * tests/uninorm/test-u32-nfc-big.c: Likewise.
29649         * tests/uninorm/test-u32-nfd.c: Likewise.
29650         * tests/uninorm/test-u32-nfd-big.c: Likewise.
29651         * tests/uninorm/test-u32-nfkc.c: Likewise.
29652         * tests/uninorm/test-u32-nfkc-big.c: Likewise.
29653         * tests/uninorm/test-u32-nfkd.c: Likewise.
29654         * tests/uninorm/test-u32-nfkd-big.c: Likewise.
29655         * tests/uninorm/test-u32-normalize-big.c: Likewise.
29656
29657 2010-03-27  Bruno Haible  <bruno@clisp.org>
29658
29659         Distinguish two kinds of module indicators.
29660         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_FOR_TESTS): Renamed from
29661         gl_MODULE_INDICATOR.
29662         (gl_MODULE_INDICATOR): New macro.
29663         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Invoke
29664         gl_MODULE_INDICATOR_FOR_TESTS instead of gl_MODULE_INDICATOR.
29665         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Likewise.
29666         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Likewise.
29667         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Likewise.
29668         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Likewise.
29669         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Likewise.
29670         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Likewise.
29671         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Likewise.
29672         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Likewise.
29673         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Likewise.
29674         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Likewise.
29675         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Likewise.
29676         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Likewise.
29677         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Likewise.
29678         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Likewise.
29679         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Likewise.
29680         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Likewise.
29681         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Likewise.
29682         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Likewise.
29683         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Likewise.
29684         * modules/cloexec (configure.ac): Likewise.
29685         * modules/getopt-gnu (configure.ac): Likewise.
29686         * modules/uninorm/u8-normalize (configure.ac): Likewise.
29687         * modules/uninorm/u16-normalize (configure.ac): Likewise.
29688         * modules/uninorm/u32-normalize (configure.ac): Likewise.
29689         * modules/fdopendir (configure.ac): Invoke gl_MODULE_INDICATOR.
29690
29691 2010-03-27  Bruno Haible  <bruno@clisp.org>
29692
29693         New module description field 'Comment'.
29694         * gnulib-tool: New option --extract-comment.
29695         (func_usage): Document it.
29696         (sed_extract_prog, sed_extract_field_header): Support 'Comment' field.
29697         (func_get_comment): New function.
29698         * modules/TEMPLATE-EXTENDED: Add a blank Comment field.
29699
29700 2010-03-27  Bruno Haible  <bruno@clisp.org>
29701
29702         Addendum to 2010-02-07 commit.
29703         * gnulib-tool (func_usage): Document --extract-applicability option.
29704
29705 2010-03-27  Bruno Haible  <bruno@clisp.org>
29706
29707         Use GNULIB_POSIXCHECK instead of GNULIB_PORTCHECK.
29708         * lib/time.in.h (asctime, asctime_r, ctime, ctime_r): Test
29709         GNULIB_POSIXCHECK, not GNULIB_PORTCHECK. Provide compile-time warnings
29710         rather than link errors.
29711
29712 2010-03-27  Bruno Haible  <bruno@clisp.org>
29713
29714         Avoid side effects from tests-related modules on the compilation of lib.
29715         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_CONDITION): New macro.
29716         (gl_MODULE_INDICATOR_SET_VARIABLE): Use its expansion as a value.
29717         * gnulib-tool (func_emit_tests_Makefile_am): Accept a witness_macro
29718         parameter. Emit into AM_CPPFLAGS a definition of the designated C
29719         macro.
29720         (func_import): Define a witness macro. Assign it a value that depends
29721         on the current package. Override gl_MODULE_INDICATOR_CONDITION for the
29722         tests-related modules.
29723         (func_create_testdir): Update func_emit_tests_Makefile_am invocation.
29724         Reported by Jim Meyering.
29725
29726 2010-03-27  Bruno Haible  <bruno@clisp.org>
29727
29728         Factorize common .m4 code.
29729         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_SET_VARIABLE): New macro.
29730         * m4/arpa_inet_h.m4 (gl_ARPA_INET_MODULE_INDICATOR): Use it.
29731         * m4/ctype.m4 (gl_CTYPE_MODULE_INDICATOR): Likewise.
29732         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Likewise.
29733         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Likewise.
29734         * m4/iconv_h.m4 (gl_ICONV_MODULE_INDICATOR): Likewise.
29735         * m4/inttypes.m4 (gl_INTTYPES_MODULE_INDICATOR): Likewise.
29736         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Likewise.
29737         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Likewise.
29738         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Likewise.
29739         * m4/netdb_h.m4 (gl_NETDB_MODULE_INDICATOR): Likewise.
29740         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Likewise.
29741         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Likewise.
29742         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Likewise.
29743         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Likewise.
29744         * m4/stddef_h.m4 (gl_STDDEF_MODULE_INDICATOR): Likewise.
29745         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Likewise.
29746         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Likewise.
29747         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Likewise.
29748         * m4/strings_h.m4 (gl_STRINGS_MODULE_INDICATOR): Likewise.
29749         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_MODULE_INDICATOR): Likewise.
29750         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Likewise.
29751         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Likewise.
29752         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Likewise.
29753         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Likewise.
29754         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Likewise.
29755         * m4/sys_times_h.m4 (gl_SYS_TIMES_MODULE_INDICATOR): Likewise.
29756         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_MODULE_INDICATOR): Likewise.
29757         * m4/sys_wait_h.m4 (gl_SYS_WAIT_MODULE_INDICATOR): Likewise.
29758         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Likewise.
29759         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Likewise.
29760         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Likewise.
29761
29762 2010-03-27  Bruno Haible  <bruno@clisp.org>
29763
29764         Fix a compilation error on Cygwin with g++ >= 4.3.
29765         * lib/sys_stat.in.h (lchmod): Don't warn about the use of this function
29766         if it is undefined or if we alias it to chmod.
29767         (lstat): Don't warn about the use of this function if it is undefined
29768         or if we alias it to stat.
29769         Reported by Simon Josefsson.
29770
29771 2010-03-27  Bruno Haible  <bruno@clisp.org>
29772
29773         * m4/getlogin.m4 (gl_FUNC_GETLOGIN): Renamed from gl_GETLOGIN.
29774         * modules/getlogin (configure.ac): Update.
29775
29776         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Renamed from gl_GETLOGIN_R.
29777         * modules/getlogin_r (configure.ac): Update.
29778
29779         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Renamed from gl_INET_NTOP.
29780         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Update.
29781         * modules/inet_ntop (configure.ac): Update.
29782
29783         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Renamed from gl_INET_PTON.
29784         * modules/inet_pton (configure.ac): Update.
29785
29786         * m4/mbslen.m4 (gl_FUNC_MBSLEN): Renamed from gl_MBSLEN.
29787         * modules/mbslen (configure.ac): Update.
29788
29789         * m4/pty.m4 (gl_FUNC_FORKPTY): Renamed from gl_FORKPTY.
29790         (gl_FUNC_OPENPTY): Renamed from gl_OPENPTY.
29791         * modules/forkpty (configure.ac): Update.
29792         * modules/openpty (configure.ac): Update.
29793
29794 2010-03-26  Simon Josefsson  <simon@josefsson.org>
29795
29796         * top/maint.mk (sc_texinfo_acronym): Don't infloop if there is
29797         no *.texi files.  Reported by Eric Blake <eblake@redhat.com>.
29798
29799 2010-03-25  Eric Blake  <eblake@redhat.com>
29800
29801         maint: use pragma consistently across replacement headers
29802         * lib/ctype.in.h (system_header): Hoist for consistent placement.
29803         * lib/dirent.in.h (system_header): Likewise.
29804         * lib/errno.in.h (system_header): Likewise.
29805         * lib/float.in.h (system_header): Likewise.
29806         * lib/getopt.in.h (system_header): Likewise.
29807         * lib/iconv.in.h (system_header): Likewise.
29808         * lib/inttypes.in.h (system_header): Likewise.
29809         * lib/langinfo.in.h (system_header): Likewise.
29810         * lib/locale.in.h (system_header): Likewise.
29811         * lib/math.in.h (system_header): Likewise.
29812         * lib/netdb.in.h (system_header): Likewise.
29813         * lib/netinet_in.in.h (system_header): Likewise.
29814         * lib/pty.in.h (system_header): Likewise.
29815         * lib/sched.in.h (system_header): Likewise.
29816         * lib/se-selinux.in.h (system_header): Likewise.
29817         * lib/search.in.h (system_header): Likewise.
29818         * lib/spawn.in.h (system_header): Likewise.
29819         * lib/stdarg.in.h (system_header): Likewise.
29820         * lib/stdint.in.h (system_header): Likewise.
29821         * lib/string.in.h (system_header): Likewise.
29822         * lib/strings.in.h (system_header): Likewise.
29823         * lib/sys_file.in.h (system_header): Likewise.
29824         * lib/sys_ioctl.in.h (system_header): Likewise.
29825         * lib/sys_socket.in.h (system_header): Likewise.
29826         * lib/sys_times.in.h (system_header): Likewise.
29827         * lib/sys_utsname.in.h (system_header): Likewise.
29828         * lib/sys_wait.in.h (system_header): Likewise.
29829         * lib/sysexits.in.h (system_header): Likewise.
29830         * lib/unistd.in.h (system_header): Likewise.
29831         * lib/wctype.in.h (system_header): Likewise.
29832
29833         arpa/inet: fix mingw compilation warning
29834         * lib/arpa_inet.in.h (system_header): Hoist to be unconditional.
29835         Reported by Matthew Bolte.
29836
29837 2010-03-25  Bruno Haible  <bruno@clisp.org>
29838
29839         Avoid collision between gnulib wrapper and libintl wrapper.
29840         * lib/printf.c (printf): Don't define if a printf wrapper is already
29841         defined in intl/printf.c.
29842         Reported by Michel Boaventura <michel@michelboaventura.com>.
29843
29844 2010-03-25  Bruno Haible  <bruno@clisp.org>
29845
29846         Use ANSI C.
29847         * lib/readutmp.h (getutent): Provide ANSI C prototype.
29848
29849 2010-03-25  Bruno Haible  <bruno@clisp.org>
29850
29851         Minor formatting changes.
29852         * lib/acosl.c: Insert space before function argument list.
29853         * lib/argz.c: Likewise.
29854         * lib/asinl.c: Likewise.
29855         * lib/expl.c: Likewise.
29856         * lib/gen-uni-tables.c: Likewise.
29857         * lib/gettext.h: Likewise.
29858         * lib/glthread/lock.h: Likewise.
29859         * lib/tanl.c: Likewise.
29860         * lib/uniname/uniname.c: Likewise.
29861         * tests/test-idpriv-drop.c: Likewise.
29862         * tests/test-idpriv-droptemp.c: Likewise.
29863         * tests/test-lock.c: Likewise.
29864         * tests/test-tls.c: Likewise.
29865         * lib/argp-help.c: Insert space before function-like macro argument
29866         list.
29867         * lib/memcmp.c: Likewise.
29868         * tests/test-base64.c: Likewise.
29869         * lib/localename.c: Insert space before sizeof's argument list.
29870         * lib/safe-alloc.h: Likewise.
29871         * lib/file-set.h: Insert space before macro argument list.
29872         * tests/test-argp.c: Likewise.
29873         * lib/argp-namefrob.h: Insert space before function parameter list.
29874         * lib/getaddrinfo.c: Likewise.
29875         * lib/netdb.in.h: Likewise.
29876         * lib/parse-duration.h: Likewise.
29877         * lib/parse-duration.c: Likewise.
29878         * lib/poll.c: Likewise.
29879         * lib/select.c: Likewise.
29880         * lib/trim.h: Likewise.
29881         * tests/test-usleep.c: Likewise.
29882         * lib/ldexpl.c: Insert space before function parameter list and before
29883         function argument list.
29884         * lib/logl.c: Likewise.
29885         * lib/sqrtl.c: Likewise.
29886         * lib/trim.c: Likewise.
29887         * lib/cosl.c: Use GNU style indentation. Insert space before function
29888         argument list.
29889         * lib/sinl.c: Likewise.
29890         * lib/tsearch.c: Insert space after 'for'.
29891         Reported by Jim Meyering.
29892
29893 2010-03-23  Pádraig Brady  <P@draigBrady.com>  (tiny change)
29894
29895         * maint.mk (sc_Wundef_boolean): Check for the presence of the
29896         config header before grepping, as it's not present before
29897         autoreconf/configure are run.  Reported by Simon Josefsson.
29898
29899 2010-03-23  Bruno Haible  <bruno@clisp.org>
29900
29901         pt_chown: Make it work with automake < 1.11.
29902         * modules/pt_chown (Makefile.am): Define pkglibexecdir.
29903         Reported by Simon Josefsson.
29904
29905 2010-03-23  Bruno Haible  <bruno@clisp.org>
29906
29907         pt_chown: Don't depend on GPLed modules.
29908         * lib/pt_chown.c: Don't include idpriv.h.
29909         (main): Don't drop privileges.
29910         * modules/pt_chown (Depends-on): Remove idpriv-drop.
29911         Reported by Simon Josefsson.
29912
29913 2010-03-24  Simon Josefsson  <simon@josefsson.org>
29914
29915         * top/maint.mk (sc_texinfo_acronym): Add rule, based on
29916         suggestions from karl@freefriends.org (Karl Berry).
29917
29918 2010-03-22  Eric Blake  <eblake@redhat.com>
29919
29920         gethostname: further tweaks
29921         * lib/unistd.in.h (includes): Only worry about <winsock2.h> if we
29922         are overriding gethostname.
29923         Suggested by Bruno Haible.
29924
29925 2010-03-21  Bruno Haible  <bruno@clisp.org>
29926
29927         Fix comments.
29928         * lib/forkpty.c (rpl_forkpty): Fix comment.
29929         * lib/openpty.c (rpl_openpty): Likewise.
29930         Reported by Eric Blake.
29931
29932 2010-03-22  Eric Blake  <eblake@redhat.com>
29933
29934         gethostname: fix build on mingw
29935         * lib/unistd.in.h (includes): Work around fact that mingw
29936         <winsock2.h> re-includes <unistd.h>, by avoiding any
29937         redeclarations if we are being included by <winsock2.h>.
29938         Reported by Matthias Bolte.
29939
29940 2010-03-21  Bruno Haible  <bruno@clisp.org>
29941
29942         forkpty: Provide replacement on AIX, HP-UX, IRIX, Solaris.
29943         * lib/forkpty.c (forkpty): New replacement function, from glibc with
29944         modifications.
29945         * lib/pty.in.h (forkpty): Update declaration. Add comments.
29946         * m4/pty.m4 (gl_FORKPTY): If forkpty is not declared, arrange to
29947         provide the replacement.
29948         * modules/forkpty (Depends-on): Add openpty, login_tty.
29949         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Initialize HAVE_FORKPTY.
29950         * modules/pty (Makefile.am): Substitute HAVE_FORKPTY.
29951         * doc/glibc-functions/forkpty.texi: More supported platforms.
29952         * config/srclist.txt: Add forkpty.c (commented).
29953
29954 2010-03-21  Bruno Haible  <bruno@clisp.org>
29955
29956         * modules/forkpty-tests: Use the common TEMPLATE-TESTS.
29957         (Makefile.am): Verify that PTY_LIB is defined.
29958
29959         * modules/openpty-tests: Use the common TEMPLATE-TESTS.
29960
29961 2010-03-21  Bruno Haible  <bruno@clisp.org>
29962
29963         Tests for module 'login_tty'.
29964         * modules/login_tty-tests: New file.
29965         * tests/test-login_tty.c: New file.
29966
29967         New module 'login_tty'.
29968         * lib/login_tty.c: New file.
29969         * m4/pty.m4 (gl_FUNC_LOGIN_TTY): New macro.
29970         * modules/login_tty: New file.
29971         * doc/glibc-functions/login_tty.texi: Mention the new module.
29972
29973 2010-03-21  Bruno Haible  <bruno@clisp.org>
29974
29975         login_tty: Documentation.
29976         * doc/glibc-functions/login_tty.texi: New file.
29977         * doc/gnulib.texi (Glibc <utmp.h>): Include it.
29978
29979 2010-03-21  Bruno Haible  <bruno@clisp.org>
29980
29981         pty: Consistent macro naming.
29982         * m4/pty_h.m4 (gl_PTY_H): Renamed from gl_PTY.
29983         * m4/pty.m4 (gl_FORKPTY, gl_OPENPTY): Update.
29984         * modules/pty (configure.ac): Update.
29985
29986 2010-03-21  Bruno Haible  <bruno@clisp.org>
29987
29988         Tests for openpty: Make stricter.
29989         * tests/test-openpty.c (main): Add test of canonical processing and
29990         erase.
29991         * modules/openpty-tests (Makefile.am): Verify that PTY_LIB is defined.
29992
29993         openpty: Provide replacement on AIX, HP-UX, IRIX, Solaris.
29994         * lib/openpty.c (openpty): New replacement function.
29995         * lib/pty.in.h: Include <termios.h>.
29996         (openpty): Update declaration. Add comments.
29997         * m4/pty.m4 (gl_OPENPTY): Require AC_USE_SYSTEM_EXTENSIONS. If openpty
29998         is not declared, arrange to provide the replacement. Check for _getpty
29999         and posix_openpt.
30000         * modules/openpty (Depends-on): Add extensions, fcntl-h, ioctl.
30001         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Initialize HAVE_OPENPTY.
30002         * modules/pty (Makefile.am): Substitute HAVE_OPENPTY.
30003         * modules/pty-tests (test_pty_c___LDADD): New variable.
30004         * doc/glibc-functions/openpty.texi: More supported platforms.
30005
30006 2010-03-21  Bruno Haible  <bruno@clisp.org>
30007
30008         setenv: Tweaks.
30009         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Include necessary headers in
30010         the test program.
30011         * doc/posix-functions/setenv.texi: Update platforms list.
30012
30013 2010-03-21  Bruno Haible  <bruno@clisp.org>
30014
30015         New module 'unlockpt'.
30016         * lib/unlockpt.c: New file, from glibc with modifications.
30017         * m4/unlockpt.m4: New file.
30018         * modules/unlockpt: New file.
30019         * lib/stdlib.in.h (unlockpt): New declaration.
30020         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether unlockpt is declared.
30021         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_UNLOCKPT, HAVE_UNLOCKPT.
30022         * modules/stdlib (Makefile.am): Substitute GNULIB_UNLOCKPT,
30023         HAVE_UNLOCKPT.
30024         * doc/posix-functions/unlockpt.texi: Mention the new module.
30025         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::unlockpt.
30026         * config/srclist.txt: Add unlockpt.c (commented).
30027
30028 2010-03-21  Jim Meyering  <meyering@redhat.com>
30029
30030         maint.mk: prohibit inclusion of "intprops.h" without use
30031         * top/maint.mk (sc_prohibit_intprops_without_use): New rule.
30032
30033 2010-03-21  Bruno Haible  <bruno@clisp.org>
30034
30035         New module 'grantpt'.
30036         * lib/grantpt.c: New file, from glibc with modifications.
30037         * m4/grantpt.m4: New file.
30038         * modules/grantpt: New file.
30039         * lib/stdlib.in.h (grantpt): New declaration.
30040         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether grantpt is declared.
30041         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_GRANTPT, HAVE_GRANTPT.
30042         * modules/stdlib (Makefile.am): Substitute GNULIB_GRANTPT,
30043         HAVE_GRANTPT.
30044         * doc/posix-functions/grantpt.texi: Mention the new module.
30045         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::grantpt.
30046         * config/srclist.txt: Add grantpt.c (commented).
30047
30048 2010-03-21  Bruno Haible  <bruno@clisp.org>
30049
30050         New module 'pt_chown'.
30051         * lib/pt_chown.c: New file, from glibc with modifications.
30052         * lib/pty-private.h: New file, from glibc with modifications.
30053         * modules/pt_chown: New file.
30054         * config/srclist.txt: Add pt_chown.c, pty-private.h (commented).
30055
30056 2010-03-21  Bruno Haible  <bruno@clisp.org>
30057
30058         Tests for module 'ptsname'.
30059         * modules/ptsname-tests: New file.
30060         * tests/test-ptsname.c: New file.
30061
30062         New module 'ptsname'.
30063         * lib/ptsname.c: New file, from glibc with modifications.
30064         * m4/ptsname.m4: New file.
30065         * modules/ptsname: New file.
30066         * lib/stdlib.in.h (ptsname): New declaration.
30067         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether ptsname is declared.
30068         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_PTSNAME, HAVE_PTSNAME.
30069         * modules/stdlib (Makefile.am): Substitute GNULIB_PTSNAME,
30070         HAVE_PTSNAME.
30071         * doc/posix-functions/ptsname.texi: Mention the new module.
30072         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::ptsname.
30073         * config/srclist.txt: Add ptsname.c (commented).
30074
30075 2010-03-21  Bruno Haible  <bruno@clisp.org>
30076
30077         Tests for module 'ttyname_r'.
30078         * modules/ttyname_r-tests: New file.
30079         * tests/test-ttyname_r.c: New file.
30080
30081         New module 'ttyname_r'.
30082         * lib/ttyname_r.c: New file.
30083         * m4/ttyname_r.m4: New file.
30084         * modules/ttyname_r: New file.
30085         * lib/unistd.in.h (ttyname_r): New declaration.
30086         * m4/unistd_h.m4 (gl_UNISTD_H): Check whether ttyname_r is declared.
30087         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_TTYNAME_R, HAVE_TTYNAME_R.
30088         * modules/unistd (Makefile.am): Substitute GNULIB_TTYNAME_R,
30089         HAVE_TTYNAME_R.
30090         * tests/test-unistd-c++.cc: Check GNULIB_NAMESPACE::ttyname_r.
30091         * doc/posix-functions/ttyname_r.texi: Mention the new module.
30092
30093 2010-03-20  Bruno Haible  <bruno@clisp.org>
30094
30095         signal: Undefine macro definitions in C++ mode.
30096         * lib/signal.in.h (sigismember, sigemptyset, sigaddset, sigdelset,
30097         sigfillset): Undefine macro definitions from the system header in C++
30098         mode.
30099         Reported by John W. Eaton <jwe@gnu.org>.
30100
30101 2010-03-20  Bruno Haible  <bruno@clisp.org>
30102
30103         Ensure no #include statements inside extern "C" { ... }.
30104         * lib/obstack.h: Shrink extern "C" { ... } region so that it does not
30105         contain #include statements.
30106         * lib/time.in.h: Likewise.
30107
30108 2010-03-20  Bruno Haible  <bruno@clisp.org>
30109
30110         Make _GL_WARN_ON_USE usable in C++ and C mode in the same compilation.
30111         * build-aux/warn-on-use.h (_GL_WARN_EXTERN_C): New macro.
30112         (_GL_WARN_ON_USE, _GL_WARN_ON_USE_CXX): Likewise.
30113         Reported by John W. Eaton <jwe@gnu.org>.
30114
30115 2010-03-20  Bruno Haible  <bruno@clisp.org>
30116
30117         * m4/unlink.m4 (gl_FUNC_UNLINK): Fix last commit.
30118         Reported by Jim Meyering.
30119
30120 2010-03-20  Bruno Haible  <bruno@clisp.org>
30121
30122         pipe: Set errno upon failure.
30123         * lib/pipe.h: Specify that when -1 is returned, errno is set.
30124         * lib/pipe.c (create_pipe): Set errno when returning -1. Use the right
30125         errno value in error message.
30126
30127 2010-03-20  Bruno Haible  <bruno@clisp.org>
30128             Jim Meyering  <meyering@redhat.com>
30129
30130         lchown: Avoid "unused variable" warning.
30131         * lib/lchown.c (rpl_lchown): Move variable 'st' into #if block.
30132
30133 2010-03-20  Bruno Haible  <bruno@clisp.org>
30134
30135         Work around unlink() bug on MacOS X 10.5.6.
30136         * lib/unlink.c (rpl_unlink): If UNLINK_PARENT_BUG is defined, fail when
30137         attempting to unlink a parent directory.
30138         * m4/unlink.m4 (gl_FUNC_UNLINK): Require AC_CANONICAL_HOST. Test for
30139         MacOS X 10.5 bug. If the bug is present, define UNLINK_PARENT_BUG and
30140         activate for the replacement function.
30141         * doc/posix-functions/unlink.texi: Mention the MacOS X 10.5 bug.
30142
30143 2010-03-20  Bruno Haible  <bruno@clisp.org>
30144
30145         Fix link errors on Solaris 8.
30146         * modules/dirent-tests (test_dirent_c___LDADD): Add LIB_NANOSLEEP.
30147         * modules/wctype-tests (test_wctype_c___LDADD): Likewise.
30148
30149 2010-03-19  Jim Meyering  <meyering@redhat.com>
30150
30151         regcomp.c: make non-_LIBC implementation of build_range_exp consistent
30152         The _LIBC implementation of build_range_exp correctly honors the
30153         RE_NO_EMPTY_RANGES flag when checking for reversed range endpoints.
30154         However, the non-_LIBC implementation would ignore that syntax-bit
30155         flag and return REG_ERANGE unconditionally.
30156         This change makes it honor that flag.
30157         * lib/regcomp.c (build_range_exp) [!_LIBC]: Add a parameter: "syntax".
30158         Make two pointer parameters "const".
30159         Use "syntax" bits in order to honor RE_NO_EMPTY_RANGES.
30160         (parse_bracket_exp): Update caller.
30161
30162         regex.m4: correct the reversed range endpoint ([b-a]) test
30163         * m4/regex.m4: When requiring that [b-a] evoke failure,
30164         use RE_NO_EMPTY_RANGES.  This makes this entire configure-time
30165         test pass once again for x86-based systems.
30166
30167 2010-03-19  Bruno Haible  <bruno@clisp.org>
30168
30169         scandir: Fix link error on Solaris 8.
30170         * lib/scandir.c (_D_EXACT_NAMLEN, _D_ALLOC_NAMLEN): New fallback
30171         macros.
30172
30173 2010-03-19  Bruno Haible  <bruno@clisp.org>
30174
30175         getusershell: Fix documentation.
30176         * doc/glibc-functions/endusershell.texi: Refer to the getusershell
30177         module.
30178         * doc/glibc-functions/setusershell.texi: Likewise.
30179
30180         getusershell: Provide declaration, missing on Solaris 9.
30181         * lib/unistd.in.h (getusershell, setusershell, endusershell): Declare
30182         also if HAVE_GETUSERSHELL && !HAVE_DECL_GETUSERSHELL.
30183         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): When the function exists,
30184         check whether it is declared. Set HAVE_DECL_GETUSERSHELL.
30185         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
30186         HAVE_DECL_GETUSERSHELL, not HAVE_GETUSERSHELL.
30187         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETUSERSHELL, not
30188         HAVE_GETUSERSHELL.
30189         * doc/glibc-functions/getusershell.texi: Mention the Solaris problem.
30190
30191 2010-03-19  Bruno Haible  <bruno@clisp.org>
30192
30193         wctype: Provide iswblank function.
30194         * lib/wctype.in.h (iswblank): Provide a replacement also when iswcntrl
30195         exists and is fine.
30196         * m4/wctype_h.m4 (gl_WCTYPE_H): Also check whether iswcntrl exists.
30197         * modules/wctype (Makefile.am): Substitute HAVE_ISWBLANK.
30198         * tests/test-wctype.c (main): Re-enable the iswblank tests.
30199         * doc/posix-functions/iswblank.texi: Update.
30200
30201 2010-03-19  Bruno Haible  <bruno@clisp.org>
30202
30203         Tests of module 'pty' in C++ mode.
30204         * modules/pty-tests: New file.
30205         * tests/test-pty-c++.cc: New file.
30206         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
30207
30208 2010-03-19  Eric Blake  <eblake@redhat.com>
30209
30210         logb: fix documentation
30211         * doc/posix-functions/logb.texi (logb): Gnulib fixes the cygwin
30212         1.5 declaration bug.
30213
30214         forkpty, openpty: prefer glibc's const-safe prototype
30215         * lib/forkpty.c (rpl_forkpty): New file.
30216         * lib/openpty.c (rpl_openpty): Likewise.
30217         * modules/forkpty (Files): Distribute it.
30218         * modules/openpty (Files): Likewise.
30219         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Add new witnesses.  Move decl
30220         check...
30221         * m4/pty.m4 (gl_FORKPTY, gl_OPENPTY): ...here.  Request
30222         replacement for for non-const BSD signature.
30223         * modules/pty (Makefile.am): Substitute witnesses.
30224         * lib/pty.in.h (forkpty, openpty): Declare replacements.
30225         * tests/test-forkpty.c: Update signature check.
30226         * tests/test-openpty.c: Likewise.
30227         * doc/glibc-functions/forkpty.texi (forkpty): Document the fix.
30228         * doc/glibc-functions/openpty.texi (openpty): Likewise.
30229
30230         forkpty, openpty: split functions into new modules
30231         * modules/pty (Makefile.am): Substitute new witnesses.
30232         (Libraries): Move library detection...
30233         * modules/forkpty: ...into new module.
30234         * modules/openpty: Another new module.
30235         * modules/pty-tests: Rename and split...
30236         * modules/forkpty-tests: ...to this...
30237         * modules/openpty-tests: ...and this.
30238         * tests/test-pty.c: Rename and split...
30239         * tests/test-forkpty.c: ...to this...
30240         * tests/test-openpty.c: ...and this.
30241         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Add new witnesses.
30242         (gl_PTY): Split library searching...
30243         * m4/pty.m4 (gl_PTY_LIB): ...into new file.
30244         (gl_FORKPTY, gl_OPENPTY): New macros.
30245         * lib/pty.in.h (forkpty, openpty): Honor new witnesses.
30246         * NEWS: Mention the split.
30247         * MODULES.html.sh (Misc): Document the modules.
30248         * doc/glibc-functions/forkpty.texi (forkpty): Likewise.
30249         * doc/glibc-functions/openpty.texi (openpty): Likewise.
30250
30251         pty: improve replacement header
30252         * lib/pty.in.h: New file.
30253         * modules/pty (Files): Ship it.
30254         (Makefile.am): Always build replacement.
30255         * m4/pty.m4: Rename...
30256         * m4/pty_h.m4: ...to this.
30257         (gl_PTY): Modernize setting of witness macros; update check of
30258         forkpty to take proper advantage of cache.
30259         (gl_PTY_MODULE_INDICATOR, gl_PTY_H_DEFAULTS): New macros.
30260
30261         getopt: avoid compiler warning
30262         * lib/getopt.c (attribute_hidden): Remove unused macro.
30263
30264 2010-03-18  Bruno Haible  <bruno@clisp.org>
30265
30266         Fix link errors on Solaris 8.
30267         * modules/iconv-h-tests (test_iconv_h_c___LDADD): Add LIB_NANOSLEEP.
30268         * modules/search-tests (test_search_c___LDADD): Likewise.
30269         * modules/signal-tests (test_signal_c___LDADD): Likewise.
30270         * modules/spawn-tests (test_spawn_c___LDADD): Likewise.
30271         * modules/stdio-tests (test_stdio_c___LDADD): Likewise.
30272         * modules/sys_select-tests (test_sys_select_c___LDADD): Likewise.
30273         * modules/sys_socket-tests (test_sys_socket_c___LDADD): Likewise.
30274         * modules/sys_time-tests (test_sys_time_c___LDADD): Likewise.
30275         * modules/wchar-tests (test_wchar_c___LDADD): Likewise.
30276
30277 2010-03-18  Bruno Haible  <bruno@clisp.org>
30278
30279         Fix bug introduced on 2010-03-14.
30280         * m4/spawn_h.m4 (gl_HAVE_POSIX_SPAWN): New macro.
30281         (gl_SPAWN_H): Require it.
30282         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): Likewise.
30283         Reported by Simon Josefsson.
30284
30285 2010-03-18  Bruno Haible  <bruno@clisp.org>
30286
30287         Fix typo introduced on 2009-12-31.
30288         * m4/spawn_h.m4 (gl_SPAWN_H): Check for the declaration of
30289         posix_spawn_file_actions_adddup2.
30290
30291 2010-03-17  Bert Wesarg  <bert.wesarg@googlemail.com>  (tiny change)
30292         and Eric Blake  <eblake@redhat.com>
30293
30294         test-vc-list-files-git: make more robust
30295         * tests/test-vc-list-files-git.sh: Unset problematic environment
30296         variables.  Chain commands together.
30297
30298 2010-03-17  Ludovic Courtès <ludo@gnu.org>  (tiny change)
30299
30300         * m4/pty.m4: Unset $ac_cv_have_decl_forkpty before the second
30301         `AC_CHECK_DECL' invocation.
30302
30303 2010-03-15  Sergey Poznyakoff  <gray@gnu.org.ua>
30304
30305         * lib/inttostr.c (inttostr): Make sure the invocation of verify
30306         appears before executable statements. Suggested by Petr Sumbera
30307         <Petr.Sumbera@Sun.COM>.
30308
30309 2010-03-14  Bruno Haible  <bruno@clisp.org>
30310
30311         * tests/test-flock.c (test_exclusive): Comment out a test that causes
30312         portability problems. Instead use a simpler test.
30313         (main): Check that invalid arguments are rejected only on Linux.
30314
30315 2010-03-14  Bruno Haible  <bruno@clisp.org>
30316
30317         Fix bug introduced on 2009-12-31.
30318         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Invoke
30319         gl_PREREQ_SYS_H_WINSOCK2 always.
30320         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise. Remove
30321         SYS_SOCKET_H variable.
30322         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Remove test for flock.
30323         Update comments.
30324         * m4/ctype.m4 (gl_CTYPE_H): Update comments.
30325         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
30326         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
30327         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
30328         * m4/sys_wait_h.m4 (gl_SYS_WAIT_H): Likewise.
30329
30330 2010-03-14  Bruno Haible  <bruno@clisp.org>
30331
30332         Fix values returned by sinl, cosl.
30333         * lib/trigl.h: Add specification comments.
30334         * lib/sincosl.c (kernel_sinl, kernel_cosl): Fix comments and formula
30335         that combines the values from the precomputed table with the values of
30336         the Chebyshev polynomials.
30337
30338 2010-03-14  Bruno Haible  <bruno@clisp.org>
30339
30340         Fix compilation error when modules 'posix_spawn[p]' are not used.
30341         * m4/spawn_h.m4 (gl_SPAWN_H): Set HAVE_POSIX_SPAWN here.
30342         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): ... not here.
30343
30344 2010-03-14  Bruno Haible  <bruno@clisp.org>
30345
30346         Fix compilation error on mingw when module 'time_r' is not used.
30347         * lib/time.in.h (localtime_r, gmtime_r): Declare only if GNULIB_TIME_R
30348         is 1.
30349         * tests/test-time-c++.cc (localtime_r, gmtime_r): Likewise.
30350         * modules/time_r (configure.ac): Invoke gl_TIME_MODULE_INDICATOR.
30351         * modules/time (Makefile.am): Substitute GNULIB_TIME_R.
30352         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize GNULIB_TIME_R.
30353
30354 2010-03-14  Bruno Haible  <bruno@clisp.org>
30355
30356         Fix compilation error with Sun C.
30357         * lib/strtol.c: Use LLONG_MIN instead of GCC specific LONG_LONG_MIN.
30358         Use LLONG_MAX instead of GCC specific LONG_LONG_MAX. Use ULLONG_MAX
30359         instead of GCC specific ULONG_LONG_MAX.
30360         * lib/xstrtoll.c: Likewise.
30361         * lib/xstrtoull.c: Likewise.
30362
30363 2010-03-13  Bruno Haible  <bruno@clisp.org>
30364
30365         Allow the user to disable C++ code and tests.
30366         * m4/ansi-c++.m4 (gl_CXX_CHOICE): New macro.
30367         (gl_PROG_ANSI_CXX): Require it.
30368
30369 2010-03-13  Bruno Haible  <bruno@clisp.org>
30370
30371         * DEPENDENCIES (libtool): Mention libtool 2.2.x requirement in special
30372         cases.
30373
30374 2010-03-13  Bruno Haible  <bruno@clisp.org>
30375
30376         Test that gnulib does not break the standard C++ headers.
30377         * tests/test-locale-c++2.cc: New file.
30378         * modules/locale-tests (Files): Add it.
30379         (Makefile.am): Compile it for test-locale-c++.
30380         * tests/test-math-c++2.cc: New file.
30381         * modules/math-tests (Files): Add it.
30382         (Makefile.am): Compile it for test-math-c++.
30383         * tests/test-signal-c++2.cc: New file.
30384         * modules/signal-tests (Files): Add it.
30385         (Makefile.am): Compile it for test-signal-c++.
30386         * tests/test-stdio-c++2.cc: New file.
30387         * modules/stdio-tests (Files): Add it.
30388         (Makefile.am): Compile it for test-stdio-c++.
30389         * tests/test-stdlib-c++2.cc: New file.
30390         * modules/stdlib-tests (Files): Add it.
30391         (Makefile.am): Compile it for test-stdlib-c++.
30392         * tests/test-string-c++2.cc: New file.
30393         * modules/string-tests (Files): Add it.
30394         (Makefile.am): Compile it for test-string-c++.
30395         * tests/test-time-c++2.cc: New file.
30396         * modules/time-tests (Files): Add it.
30397         (Makefile.am): Compile it for test-time-c++.
30398         Reported by John W. Eaton <jwe@gnu.org>.
30399
30400 2010-03-13  Bruno Haible  <bruno@clisp.org>
30401
30402         * gnulib-tool (func_usage): Clarify which options are available for
30403         --create-testdir and --create-megatestdir.
30404
30405 2010-03-13  Bruno Haible  <bruno@clisp.org>
30406
30407         Fix compilation error with glibc >= 2.10 and g++ >= 4.4.
30408         * build-aux/warn-on-use.h (_GL_WARN_ON_USE_CXX): New macro.
30409         * build-aux/c++defs.h (_GL_CXXALIASWARN1): New macro.
30410         * lib/string.in.h (memchr, memrchr, rawmemchr, strchrnul, strpbrk,
30411         strstr, strcasestr): Use _GL_CXXALIASWARN1 instead of _GL_CXXALIASWARN
30412         when appropriate.
30413         Reported by Jim Meyering.
30414
30415 2010-03-12  Simon Josefsson  <simon@josefsson.org>
30416
30417         * gnulib-tool (func_import): Explain origin of code.
30418
30419 2010-03-12  Bruno Haible  <bruno@clisp.org>
30420
30421         Fix problem with automake's definition of CXXLINK.
30422         * gnulib-tool (func_create_testdir): After LT_INIT, also use LT_LANG.
30423         Reported by Simon Josefsson and Ludovic Courtès.
30424
30425 2010-03-12  Bruno Haible  <bruno@clisp.org>
30426
30427         * doc/gnulib-intro.texi (Steady Development): Mention Ian Beckwith's
30428         stable releases.
30429
30430 2010-03-11  Bruno Haible  <bruno@clisp.org>
30431
30432         Fix problems with overloaded C++ definitions of memchr, strpbrk, etc.
30433         * build-aux/c++defs.h (_GL_CXXALIAS_SYS_CAST2): Make it work regardless
30434         whether the system provides one variant or multiple variants of the
30435         function.
30436         * lib/string.in.h (memchr, strpbrk): Use _GL_CXXALIAS_SYS_CAST2 for all
30437         C++ compilers.
30438         (memrchr, rawmemchr, strchrnul, strstr, strcasestr): Use
30439         _GL_CXXALIAS_SYS_CAST2 instead of _GL_CXXALIAS_SYS.
30440         Reported by Jim Meyering.
30441
30442 2010-03-09  Simon Josefsson  <simon@josefsson.org>
30443
30444         * gnulib-tool (LIBTOOLPATH): Fix cut'n'paste bug.
30445
30446 2010-03-08  Bruno Haible  <bruno@clisp.org>
30447
30448         gnulib-tool: Add support for --libtool in --create-testdir.
30449         * gnulib-tool (LIBTOOLPATH, LIBTOOLIZE): New variables.
30450         (func_create_testdir): Emit LT_INIT invocations. Invoke LIBTOOLIZE.
30451
30452 2010-03-08  Eric Blake  <eblake@redhat.com>
30453
30454         gnulib-tool.texi: mention possibility of git submodule
30455         * doc/gnulib-tool.texi (VCS Issues): Add details about using git
30456         submodules.
30457         * doc/.gitignore: Ignore another generated file.
30458
30459 2010-03-08  Karl Berry  <karl@gnu.org>
30460
30461         * doc/gnulib-tool.texi (VCS Issues): Mention third option
30462         of committing gnulib files while skipping others.
30463
30464 2010-03-07  Bruno Haible  <bruno@clisp.org>
30465
30466         Tests of module 'wctype' in C++ mode.
30467         * tests/test-wctype-c++.cc: New file.
30468         * modules/wctype-tests (Files): Add it and tests/signature.h.
30469         (Depends-on): Add ansi-c++-opt.
30470         (Makefile.am): Arrange to compile and run test-wctype-c++.
30471
30472         Tests of module 'wchar' in C++ mode.
30473         * tests/test-wchar-c++.cc: New file.
30474         * modules/wchar-tests (Files): Add it and tests/signature.h.
30475         (Depends-on): Add ansi-c++-opt.
30476         (Makefile.am): Arrange to compile and run test-wchar-c++.
30477         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Invoke
30478         gl_MODULE_INDICATOR.
30479
30480         Tests of module 'unistd' in C++ mode.
30481         * tests/test-unistd-c++.cc: New file.
30482         * modules/unistd-tests (Files): Add it and tests/signature.h.
30483         (Depends-on): Add ansi-c++-opt.
30484         (Makefile.am): Arrange to compile and run test-unistd-c++.
30485         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Invoke
30486         gl_MODULE_INDICATOR.
30487
30488         Tests of module 'time' in C++ mode.
30489         * tests/test-time-c++.cc: New file.
30490         * modules/time-tests (Files): Add it and tests/signature.h.
30491         (Depends-on): Add ansi-c++-opt.
30492         (Makefile.am): Arrange to compile and run test-time-c++.
30493         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
30494
30495         Tests of module 'sys_time' in C++ mode.
30496         * tests/test-sys_time-c++.cc: New file.
30497         * modules/sys_time-tests (Files): Add it and tests/signature.h.
30498         (Depends-on): Add ansi-c++-opt.
30499         (Makefile.am): Arrange to compile and run test-sys_time-c++.
30500         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Invoke
30501         gl_MODULE_INDICATOR.
30502
30503         Tests of module 'sys_stat' in C++ mode.
30504         * tests/test-sys_stat-c++.cc: New file.
30505         * modules/sys_stat-tests (Files): Add it and tests/signature.h.
30506         (Depends-on): Add ansi-c++-opt.
30507         (Makefile.am): Arrange to compile and run test-sys_stat-c++.
30508         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Invoke
30509         gl_MODULE_INDICATOR.
30510
30511         Tests of module 'sys_socket' in C++ mode.
30512         * tests/test-sys_socket-c++.cc: New file.
30513         * modules/sys_socket-tests (Files): Add it and tests/signature.h.
30514         (Depends-on): Add ansi-c++-opt.
30515         (Makefile.am): Arrange to compile and run test-sys_socket-c++.
30516         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Invoke
30517         gl_MODULE_INDICATOR.
30518
30519         Tests of module 'sys_select' in C++ mode.
30520         * tests/test-sys_select-c++.cc: New file.
30521         * modules/sys_select-tests (Files): Add it and tests/signature.h.
30522         (Depends-on): Add ansi-c++-opt.
30523         (Makefile.am): Arrange to compile and run test-sys_select-c++.
30524         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Invoke
30525         gl_MODULE_INDICATOR.
30526
30527         Tests of module 'sys_ioctl' in C++ mode.
30528         * tests/test-sys_ioctl-c++.cc: New file.
30529         * modules/sys_ioctl-tests (Files): Add it and tests/signature.h.
30530         (Depends-on): Add ansi-c++-opt.
30531         (Makefile.am): Arrange to compile and run test-sys_ioctl-c++.
30532         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Invoke
30533         gl_MODULE_INDICATOR.
30534
30535         Tests of module 'string' in C++ mode.
30536         * tests/test-string-c++.cc: New file.
30537         * modules/string-tests (Files): Add it and tests/signature.h.
30538         (Depends-on): Add ansi-c++-opt.
30539         (Makefile.am): Arrange to compile and run test-string-c++.
30540         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Invoke
30541         gl_MODULE_INDICATOR.
30542
30543         Tests of module 'stdlib' in C++ mode.
30544         * tests/test-stdlib-c++.cc: New file.
30545         * modules/stdlib-tests (Files): Add it and tests/signature.h.
30546         (Depends-on): Add ansi-c++-opt.
30547         (Makefile.am): Arrange to compile and run test-stdlib-c++.
30548         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Invoke
30549         gl_MODULE_INDICATOR.
30550
30551         Tests of module 'stdio' in C++ mode.
30552         * tests/test-stdio-c++.cc: New file.
30553         * modules/stdio-tests (Files): Add it and tests/signature.h.
30554         (Depends-on): Add ansi-c++-opt.
30555         (Makefile.am): Arrange to compile and run test-stdio-c++.
30556         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Invoke
30557         gl_MODULE_INDICATOR.
30558
30559         Tests of module 'spawn' in C++ mode.
30560         * tests/test-spawn-c++.cc: New file.
30561         * modules/spawn-tests (Files): Add it and tests/signature.h.
30562         (Depends-on): Add ansi-c++-opt.
30563         (Makefile.am): Arrange to compile and run test-spawn-c++.
30564         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Invoke
30565         gl_MODULE_INDICATOR.
30566
30567         Tests of module 'signal' in C++ mode.
30568         * tests/test-signal-c++.cc: New file.
30569         * modules/signal-tests (Files): Add it and tests/signature.h.
30570         (Depends-on): Add ansi-c++-opt.
30571         (Makefile.am): Arrange to compile and run test-signal-c++.
30572         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Invoke
30573         gl_MODULE_INDICATOR.
30574
30575         Tests of module 'search' in C++ mode.
30576         * tests/test-search-c++.cc: New file.
30577         * modules/search-tests (Files): Add it and tests/signature.h.
30578         (Depends-on): Add ansi-c++-opt.
30579         (Makefile.am): Arrange to compile and run test-search-c++.
30580         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Invoke
30581         gl_MODULE_INDICATOR.
30582
30583         Tests of module 'math' in C++ mode.
30584         * tests/test-math-c++.cc: New file.
30585         * modules/math-tests (Files): Add it and tests/signature.h.
30586         (Depends-on): Add ansi-c++-opt.
30587         (Makefile.am): Arrange to compile and run test-math-c++.
30588         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
30589
30590         Tests of module 'locale' in C++ mode.
30591         * tests/test-locale-c++.cc: New file.
30592         * modules/locale-tests (Files): Add it and tests/signature.h.
30593         (Depends-on): Add ansi-c++-opt.
30594         (Makefile.am): Arrange to compile and run test-locale-c++.
30595         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Invoke
30596         gl_MODULE_INDICATOR.
30597
30598         Tests of module 'langinfo' in C++ mode.
30599         * tests/test-langinfo-c++.cc: New file.
30600         * modules/langinfo-tests (Files): Add it and tests/signature.h.
30601         (Depends-on): Add ansi-c++-opt.
30602         (Makefile.am): Arrange to compile and run test-langinfo-c++.
30603         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Invoke
30604         gl_MODULE_INDICATOR.
30605
30606         Tests of module 'iconv-h' in C++ mode.
30607         * tests/test-iconv-h-c++.cc: New file.
30608         * modules/iconv-h-tests (Files): Add it and tests/signature.h.
30609         (Depends-on): Add ansi-c++-opt.
30610         (Makefile.am): Arrange to compile and run test-iconv-h-c++.
30611
30612         Tests of module 'glob' in C++ mode.
30613         * tests/test-glob-c++.cc: New file.
30614         * modules/glob-tests (Files): Add it.
30615         (Depends-on): Add ansi-c++-opt.
30616         (Makefile.am): Arrange to compile and run test-glob-c++.
30617
30618         Tests of module 'fcntl-h' in C++ mode.
30619         * tests/test-fcntl-h-c++.cc: New file.
30620         * modules/fcntl-h-tests (Files): Add it and tests/signature.h.
30621         (Depends-on): Add ansi-c++-opt.
30622         (Makefile.am): Arrange to compile and run test-fcntl-h-c++.
30623         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Invoke
30624         gl_MODULE_INDICATOR.
30625
30626         Tests of module 'dirent' in C++ mode.
30627         * tests/test-dirent-c++.cc: New file.
30628         * modules/dirent-tests (Files): Add it and tests/signature.h.
30629         (Depends-on): Add ansi-c++-opt.
30630         (Makefile.am): Arrange to compile and run test-dirent-c++.
30631         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Invoke
30632         gl_MODULE_INDICATOR.
30633
30634         New module 'ansi-c++-opt'.
30635         * modules/ansi-c++-opt: New file.
30636         * m4/ansi-c++.m4: New file, from GNU gettext with modifications.
30637
30638         Document C++ namespace mode.
30639         * doc/gnulib.texi (A C++ namespace for gnulib): New section.
30640
30641         wctype: Avoid #define replacements in C++ mode.
30642         * lib/wctype.in.h: Include c++defs.h, warn-on-use.h.
30643         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph, iswlower,
30644         iswprint, iswpunct, iswspace, iswupper, iswxdigit, towlower, towupper):
30645         In C++, define a namespaced alias symbol.
30646         * m4/wctype_h.m4 (gl_WCTYPE_H): Don't set WCTYPE_H.
30647         * modules/wctype (Depends-on): Add c++defs, warn-on-use.
30648         (Makefile.am): Provide a wctype.h replacement always. Update wctype.h
30649         rule.
30650
30651         wchar: Avoid #define replacements in C++ mode.
30652         * lib/wchar.in.h: Include c++defs.h.
30653         (btowc, wctob, mbsinit, mbrtowc, mbrlen, mbsrtowcs, mbsnrtowcs,
30654         wcrtomb, wcsrtombs, wcsnrtombs): In C++, define a namespaced alias
30655         symbol.
30656         (wcwidth): Likewise. Fix prototype to be POSIX compliant.
30657         * modules/wchar (Depends-on): Add c++defs.
30658         (Makefile.am): Update wchar.h rule.
30659
30660         unistd: Avoid #define replacements in C++ mode.
30661         * lib/unistd.in.h: Include c++defs.h.
30662         (chown, close, dup, dup2, dup3, euidaccess, faccessat, fchdir,
30663         fchownat, fsync, ftruncate, getcwd, getdomainname, getdtablesize,
30664         getgroups, gethostname, getlogin, getlogin_r, getpagesize,
30665         getusershell, setusershell, endusershell, lchown, link, linkat, lseek,
30666         pipe2, pread, readlink, readlinkat, rmdir, sleep, symlink, symlinkat,
30667         unlink, unlinkat, usleep, write): In C++, define a namespaced alias
30668         symbol.
30669         (environ): Update.
30670         * modules/unistd (Depends-on): Add c++defs.
30671         (Makefile.am): Update unistd.h rule.
30672
30673         time: Avoid #define replacements in C++ mode.
30674         * lib/time.in.h: Include c++defs.h, warn-on-use.h.
30675         (nanosleep, mktime, localtime_r, gmtime_r, strptime, timegm): In C++,
30676         define a namespaced alias symbol.
30677         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): New macro.
30678         (gl_HEADER_TIME_H_DEFAULTS): Initialize also GNULIB_MKTIME,
30679         GNULIB_NANOSLEEP, GNULIB_STRPTIME, GNULIB_TIMEGM.
30680         * modules/time (Depends-on): Add c++defs, warn-on-use.
30681         (Makefile.am): Update time.h rule.
30682         * modules/mktime (configure.ac): Invoke gl_TIME_MODULE_INDICATOR.
30683         * modules/nanosleep (configure.ac): Likewise.
30684         * modules/strptime (configure.ac): Likewise.
30685         * modules/timegm (configure.ac): Likewise.
30686
30687         sys_time: Avoid #define replacements in C++ mode.
30688         * lib/sys_time.in.h: Include c++defs.h.
30689         (gettimeofday): In C++, define a namespaced alias symbol.
30690         * modules/sys_time (Depends-on): Add c++defs.
30691         (Makefile.am): Update sys/time.h rule.
30692
30693         sys_stat: Avoid #define replacements in C++ mode.
30694         * lib/sys_stat.in.h: Include c++defs.h.
30695         (fchmodat, fstat, fstatat, futimens, lchmod, lstat, mkdir, mkdirat,
30696         mkfifo, mkfifoat, mknod, mknodat, utimensat): In C++, define a
30697         namespaced alias symbol.
30698         In C++, define a namespaced alias symbol.
30699         * modules/sys_stat (Depends-on): Add c++defs.
30700         (Makefile.am): Update sys/stat.h rule.
30701
30702         sys_socket: Avoid #define replacements in C++ mode.
30703         * lib/sys_socket.in.h: Handle the case of recursive include on Cygwin.
30704         Include c++defs.h. Include warn-on-use.h earlier. Enable the function
30705         definitions also when the system has a <sys/socket.h>.
30706         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
30707         listen, recv, send, recvfrom, sendto, setsockopt, shutdown, accept4):
30708         In C++, define a namespaced alias symbol.
30709         * modules/sys_socket (Depends-on): Add c++defs.
30710         (Makefile.am): Update sys/socket.h rule.
30711
30712         sys_select: Avoid #define replacements in C++ mode.
30713         * lib/sys_select.in.h: Include c++defs.h. Enable the function
30714         definitions also when the system has a <sys/select.h>.
30715         (select): In C++, define a namespaced alias symbol.
30716         * modules/sys_select (Depends-on): Add c++defs.
30717         (Makefile.am): Update sys/select.h rule.
30718
30719         sys_ioctl: Avoid #define replacements in C++ mode.
30720         * lib/sys_ioctl.in.h: Include c++defs.h.
30721         (ioctl): In C++, define a namespaced alias symbol.
30722         * modules/sys_ioctl (Depends-on): Add c++defs.
30723         (Makefile.am): Update sys/ioctl.h rule.
30724
30725         string: Avoid #define replacements in C++ mode.
30726         * lib/string.in.h: Include c++defs.h.
30727         (stpncpy): Define to rpl_stpncpy, not gnu_stpncpy.
30728         (memchr, memmem, mempcpy, memrchr, rawmemchr, stpcpy, stpncpy,
30729         strchrnul, strdup, strndup, strnlen, strpbrk, strsep, strstr,
30730         strcasestr, strtok_r, mbslen, mbschr, mbsrchr, mbspbrk, strerror,
30731         strsignal, strverscmp): In C++, define a namespaced alias symbol.
30732         * modules/string (Depends-on): Add c++defs.
30733         (Makefile.am): Update string.h rule.
30734
30735         stdlib: Avoid #define replacements in C++ mode.
30736         * lib/stdlib.in.h: Include c++defs.h.
30737         (atoll, calloc, canonicalize_file_name, getloadavg, getsubopt, malloc,
30738         mkdtemp, mkostemp, mkostemps, mkstemp, mkstemps, putenv, random_r,
30739         srandom_r, initstate_r, setstate_r, realloc, realpath, rpmatch, setenv,
30740         strtod, strtoll, strtoull, unsetenv): In C++, define a namespaced alias
30741         symbol.
30742         * modules/stdlib (Depends-on): Add c++defs.
30743         (Makefile.am): Update stdlib.h rule.
30744
30745         stdio: Avoid #define replacements in C++ mode.
30746         * lib/stdio.in.h: Include c++defs.h.
30747         (dprintf, fclose, fflush, fopen, fprintf, fpurge, fputc, fputs,
30748         freopen, fseek, fseeko, ftell, ftello, fwrite, getdelim, getline,
30749         obstack_printf, obstack_vprintf, perror, popen, printf, fputc, putchar,
30750         puts, remove, rename, renameat, snprintf, sprintf, asprintf, vasprintf,
30751         vdprintf, vfprintf, vprintf, vsnprintf, vsprintf): In C++, define a
30752         namespaced alias symbol.
30753         * modules/stdio (Depends-on): Add c++defs.
30754         (Makefile.am): Update stdio.h rule.
30755
30756         spawn: Avoid #define replacements in C++ mode.
30757         * lib/spawn.in.h: Include c++defs.h.
30758         (posix_spawn, posix_spawnp, posix_spawnattr_init,
30759         posix_spawnattr_destroy, posix_spawnattr_getsigdefault,
30760         posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask,
30761         posix_spawnattr_setsigmask, posix_spawnattr_getflags,
30762         posix_spawnattr_setflags, posix_spawnattr_getpgroup,
30763         posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy,
30764         posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam,
30765         posix_spawnattr_setschedparam, posix_spawn_file_actions_init,
30766         posix_spawn_file_actions_destroy, posix_spawn_file_actions_addopen,
30767         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2):
30768         In C++, define a namespaced alias symbol.
30769         * modules/spawn (Depends-on): Add c++defs.
30770         (Makefile.am): Update spawn.h rule.
30771
30772         signal: Avoid #define replacements in C++ mode.
30773         * lib/signal.in.h: Include c++defs.h.
30774         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset,
30775         sigpending, sigprocmask, signal, raise, sigaction): In C++, define a
30776         namespaced alias symbol.
30777         * modules/signal (Depends-on): Add c++defs.
30778         (Makefile.am): Update signal.h rule.
30779
30780         search: Avoid #define replacements in C++ mode.
30781         * lib/search.in.h: Include c++defs.h.
30782         (_gl_search_compar_fn, _gl_search_action_fn): New types.
30783         (tsearch, tfind, tdelete, twalk): In C++, define a namespaced alias
30784         symbol.
30785         * modules/search (Depends-on): Add c++defs.
30786         (Makefile.am): Update search.h rule.
30787
30788         math: Avoid #define replacements in C++ mode.
30789         * lib/math.in.h: Include c++defs.h.
30790         (frexp, acosl, asinl, atanl, ceilf, ceill, cosl, expl, floorf, floorl,
30791         frexpl, ldexpl, logl, roundf, round, roundl, sinl, sqrtl, tanl, truncf,
30792         trunc, truncl): In C++, define a namespaced alias symbol.
30793         * modules/math (Depends-on): Add c++defs.
30794         (Makefile.am): Update math.h rule.
30795
30796         locale: Avoid #define replacements in C++ mode.
30797         * lib/locale.in.h: Include c++defs.h.
30798         (duplocale): In C++, define a namespaced alias symbol.
30799         * m4/locale_h.m4 (gl_LOCALE_H_DEFAULTS): Initialize HAVE_DUPLOCALE.
30800         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Set HAVE_DUPLOCALE.
30801         * modules/locale (Depends-on): Add c++defs.
30802         (Makefile.am): Update locale.h rule. Substitute HAVE_DUPLOCALE.
30803
30804         langinfo: Avoid #define replacements in C++ mode.
30805         * lib/langinfo.in.h: Include c++defs.h.
30806         (nl_langinfo): In C++, define a namespaced alias symbol.
30807         * modules/langinfo (Depends-on): Add c++defs.
30808         (Makefile.am): Update langinfo.h rule.
30809
30810         iconv-h: Avoid #define replacements in C++ mode.
30811         * lib/iconv.in.h: Include c++defs.h, warn-on-use.h.
30812         (iconv_open, iconv, iconv_close): In C++, define a namespaced alias
30813         symbol.
30814         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Invoke gl_REPLACE_ICONV_H
30815         whenever iconv is present.
30816         * modules/iconv-h (Depends-on): Add c++defs, warn-on-use.
30817         (Makefile.am): Update iconv.h rule.
30818
30819         glob: Avoid #define replacements in C++ mode.
30820         * lib/glob.in.h: Include c++defs.h, warn-on-use.h.
30821         (_gl_glob_errfunc_fn): New type.
30822         (glob, globfree, glob_pattern_p): In C++, define a namespaced alias
30823         symbol.
30824         * modules/glob (Depends-on): Add c++defs, warn-on-use.
30825         (Makefile.am): Update glob.h rule.
30826
30827         fcntl-h: Avoid #define replacements in C++ mode.
30828         * lib/fcntl.in.h: Include c++defs.h.
30829         (fcntl, open, openat): In C++, define a namespaced alias symbol.
30830         * modules/fcntl-h (Depends-on): Add c++defs.
30831         (Makefile.am): Update fcntl.h rule.
30832
30833         dirent: Avoid #define replacements in C++ mode.
30834         * lib/dirent.in.h: Include c++defs.h.
30835         (closedir, fdopendir, opendir, scandir, alphasort): In C++, define a
30836         namespaced alias symbol.
30837         (dirfd): Update declaration.
30838         * modules/dirent (Depends-on): Add c++defs.
30839         (Makefile.am): Update dirent.h rule.
30840
30841         ctype: Make it usable in C++ code.
30842         * lib/ctype.in.h: Include c++defs.h.
30843         (isblank): Declare as extern "C".
30844         * modules/ctype (Depends-on): Add c++defs.
30845         (Makefile.am): Update ctype.h rule.
30846
30847         New module 'c++defs'.
30848         * modules/c++defs: New file.
30849         * build-aux/c++defs.h: New file.
30850         Reported by John W. Eaton <jwe@gnu.org>.
30851
30852 2010-03-07  Bruno Haible  <bruno@clisp.org>
30853
30854         logb: Provide missing declaration for Cygwin.
30855         * lib/math.in.h (logb): New declaration.
30856         * m4/logb.m4: New file.
30857         * modules/logb (Files): Add m4/logb.m4.
30858         (Depends-on): Add math.
30859         (configure.ac): Invoke gl_FUNC_LOGB, gl_MATH_MODULE_INDICATOR.
30860         * m4/math_h.m4 (gl_MATH_H): Check also for logb declaration.
30861         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOGB, HAVE_DECL_LOGB.
30862         * modules/math (Makefile.am): Substitute GNULIB_LOGB, HAVE_DECL_LOGB.
30863         * doc/posix-functions/logb.texi: Mention the Cygwin bug.
30864
30865 2010-03-07  Bruno Haible  <bruno@clisp.org>
30866
30867         Fix test-cond link error.
30868         * tests/test-cond.c: Include <stdio.h>.
30869
30870 2010-03-07  Bruno Haible  <bruno@clisp.org>
30871
30872         Fix test-dirent-safer link error.
30873         * modules/dirent-safer-tests (Makefile.am): Define
30874         test_dirent_safer_LDADD.
30875
30876 2010-03-07  Bruno Haible  <bruno@clisp.org>
30877
30878         * gnulib-tool (func_create_testdir): Don't use 'lib-ignore' module
30879         among default module list.
30880
30881 2010-03-07  Bruno Haible  <bruno@clisp.org>
30882
30883         Fix link error on platforms with GNU libiconv.
30884         * modules/unistr/u8-strcoll-tests (Makefile): Define
30885         test_u8_strcoll_LDADD.
30886         * modules/unistr/u16-strcoll-tests (Makefile): Define
30887         test_u16_strcoll_LDADD.
30888         * modules/unistr/u32-strcoll-tests (Makefile): Define
30889         test_u32_strcoll_LDADD.
30890
30891 2010-03-07  Bruno Haible  <bruno@clisp.org>
30892
30893         Use POSIX declarations for socket functions.
30894         * lib/sys_socket.in.h (rpl_connect, rpl_accept, rpl_bind,
30895         rpl_getpeername, rpl_getsockname, rpl_recv, rpl_send, rpl_recvfrom,
30896         rpl_sendto): Change declaration to match POSIX.
30897         * lib/connect.c (rpl_connect): Likewise.
30898         * lib/accept.c (rpl_accept): Likewise.
30899         * lib/bind.c (rpl_bind): Likewise.
30900         * lib/getpeername.c (rpl_getpeername): Likewise.
30901         * lib/getsockname.c (rpl_getsockname): Likewise.
30902         * lib/recv.c (rpl_recv): Likewise.
30903         * lib/send.c (rpl_send): Likewise.
30904         * lib/recvfrom.c (rpl_recvfrom): Likewise.
30905         * lib/sendto.c (rpl_sendto): Likewise.
30906
30907 2010-03-06  Bruno Haible  <bruno@clisp.org>
30908
30909         Clarify access, euidaccess, faccessat.
30910         * doc/posix-functions/faccessat.texi: Mention security problem under
30911         "Other problems", not "Portability problems".
30912         * doc/posix-functions/access.texi: Likewise. Mention a related security
30913         problem.
30914         * doc/glibc-functions/euidaccess.texi: Mention security problems.
30915         * lib/euidaccess.c: Add comments about platforms.
30916         * lib/unistd.in.h (access, euidaccess): Add warnings.
30917
30918 2010-03-07  Bruno Haible  <bruno@clisp.org>
30919
30920         Ensure posix_spawnattr_{get,set}sched{policy,param} are defined.
30921         * lib/spawn.in.h (POSIX_SPAWN_SETSCHEDPARAM): Define fallback.
30922         (POSIX_SPAWN_SETSCHEDULER): Likewise.
30923         (POSIX_SPAWN_USEVFORK): Define in a way that works when
30924         POSIX_SPAWN_SETSCHEDPARAM and POSIX_SPAWN_SETSCHEDULER are zero.
30925         (posix_spawnattr_getschedpolicy, posix_spawnattr_setschedpolicy): Also
30926         declare when POSIX_SPAWN_SETSCHEDULER is zero.
30927         (posix_spawnattr_getschedparam, posix_spawnattr_setschedparam): Also
30928         declare when POSIX_SPAWN_SETSCHEDPARAM is zero.
30929         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): Test whether
30930         POSIX_SPAWN_SETSCHEDULER or POSIX_SPAWN_SETSCHEDPARAM are zero.
30931         * modules/posix_spawnattr_getschedparam (configure.ac): Enable the
30932         replacement also when POSIX_SPAWN_SETSCHEDPARAM is zero.
30933         * modules/posix_spawnattr_setschedparam (configure.ac): Likewise.
30934         * modules/posix_spawnattr_getschedpolicy (configure.ac): Enable the
30935         replacement also when POSIX_SPAWN_SETSCHEDULER is zero.
30936         * modules/posix_spawnattr_setschedpolicy (configure.ac): Likewise.
30937         * lib/spawnattr_getschedparam.c (posix_spawnattr_getschedparam): Do
30938         nothing if POSIX_SPAWN_SETSCHEDPARAM is zero.
30939         * lib/spawnattr_setschedparam.c (posix_spawnattr_setschedparam):
30940         Likewise.
30941         * lib/spawnattr_getschedpolicy.c (posix_spawnattr_getschedpolicy): Do
30942         nothing if POSIX_SPAWN_SETSCHEDULER is zero.
30943         * lib/spawnattr_setschedpolicy.c (posix_spawnattr_setschedpolicy):
30944         Likewise.
30945         * tests/test-spawn.c (main): Make it work when
30946         POSIX_SPAWN_SETSCHEDPARAM and POSIX_SPAWN_SETSCHEDULER are zero.
30947
30948 2010-03-07  Bruno Haible  <bruno@clisp.org>
30949
30950         Fix incorrect Makefile.am generation in German locale.
30951         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
30952         Execute sed command with character range in C locale.
30953
30954 2010-03-06  Bruno Haible  <bruno@clisp.org>
30955
30956         Tests for module 'iconv-h'.
30957         * modules/iconv-h-tests: New file.
30958         * tests/test-iconv-h.c: New file.
30959
30960         New module 'iconv-h'.
30961         * modules/iconv-h: New file.
30962         * modules/iconv_open (Files): Remove lib/iconv.in.h, m4/iconv_h.m4.
30963         (Depends-on): Add iconv-h. Remove include_next, arg-nonnull.
30964         (configure.ac): Remove gl_ICONV_H.
30965         (Makefile.am): Remove rule for iconv.h.
30966
30967 2010-03-06  Bruno Haible  <bruno@clisp.org>
30968
30969         More consistent naming of *.m4 files.
30970         * m4/wctype_h.m4: Renamed from m4/wctype.m4.
30971         * modules/wctype (Files): Update.
30972
30973         More consistent naming of *.m4 files.
30974         * m4/wchar_h.m4: Renamed from m4/wchar.m4.
30975         * modules/wchar (Files): Update.
30976
30977 2010-03-06  Jim Meyering  <meyering@redhat.com>
30978
30979         euidaccess: relax license to LGPLv2+
30980         * modules/euidaccess (License): Relax to LGPLv2+.
30981
30982 2010-03-06  Bruno Haible  <bruno@clisp.org>
30983
30984         Prefer lib_SOURCES over unconditional AC_LIBOBJ.
30985         * modules/exitfail (configure.ac): Remove AC_LIBOBJ invocation.
30986         (Makefile.am): Augment lib_SOURCES instead.
30987
30988 2010-03-04  Jim Meyering  <meyering@redhat.com>
30989
30990         utime: remove obsolete module
30991         This module, like autoconf's AC_FUNC_UTIME_NULL macro, has been
30992         unnecessary for years, and has been marked as obsolete for 10 months.
30993         * modules/utime: Remove file.
30994         * lib/utime.c: Remove file.
30995         * m4/utime.m4: Remove file.
30996         * m4/utimes-null.m4: Remove file.
30997         * doc/posix-functions/utime.texi (utime): Remove reference to
30998         the module.  Move the sole "fixed by gnulib" item into the
30999         "problems not fixed by Gnulib" list.
31000         * MODULES.html.sh (func_all_modules): Remove reference to "utime".
31001
31002 2010-03-05  Simon Josefsson  <simon@josefsson.org>
31003
31004         * modules/exit (License): Relax license to LGPLv2+.
31005         (Status): Mark as obsolete.
31006         * NEWS: Mention deprecated 'exit' module.
31007         * doc/posix-functions/exit.texi: Recommend 'stdlib' module instead
31008         of now obsolete 'exit'.
31009
31010 2010-03-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
31011
31012         fts-lgpl: remove unused module
31013         * modules/fts-lgpl: Remove.
31014         * MODULES.html.sh (func_all_modules): Adjust.
31015         * check-module (find_included_lib_files): Adjust.
31016         * m4/fts.m4 (gl_FUNC_FTS_LGPL): Remove.
31017
31018 2010-03-02  Ben Walton  <bwalton@artsci.utoronto.ca>  (tiny change)
31019
31020         copy-acl: enhance Solaris ACL error handling
31021         * lib/copy-acl.c (qcopy_acl): Also ignore EOPNOTSUPP.
31022         * lib/set-mode-acl.c (qset_acl): Likewise.
31023
31024 2010-03-02  Bruno Haible  <bruno@clisp.org>
31025
31026         spawn: Don't override the system defined values on FreeBSD 8.
31027         * lib/spawn.in.h (POSIX_SPAWN_RESETIDS, POSIX_SPAWN_SETPGROUP,
31028         POSIX_SPAWN_SETSIGDEF, POSIX_SPAWN_SETSIGMASK,
31029         POSIX_SPAWN_SETSCHEDPARAM, POSIX_SPAWN_SETSCHEDULER): Don't redefine
31030         if HAVE_POSIX_SPAWN is 1.
31031         Reported by Johan van Selst <johans@stack.nl> via Eric Blake.
31032
31033 2010-03-01  Bruno Haible  <bruno@clisp.org>
31034
31035         * doc/gnulib-tool.texi (Initial import): Clarify the requirements
31036         regarding Automake.
31037
31038 2010-02-25  Bruno Haible  <bruno@clisp.org>
31039
31040         Fix breakage of gnulib-tool with ksh, introduced on 2010-02-21.
31041         * gnulib-tool: Define 'echo' as a function only before the ksh alias
31042         setting, not afterwards.
31043         Reported by Ben Walton <bwalton@artsci.utoronto.ca>.
31044
31045 2010-02-24  Eric Blake  <eblake@redhat.com>
31046
31047         bootstrap, git-version-gen: use timestamp
31048         * build-aux/git-version-gen (scriptversion): Force UTC.
31049         * build-aux/bootstrap (scriptversion): New variable.
31050
31051         bootstrap: allow older git
31052         * build-aux/bootstrap (GNULIB_SRCDIR): Add fallback if git is
31053         older than 1.6.4.  Requested by the libvirt project.
31054
31055 2010-02-23  Eric Blake  <eblake@redhat.com>
31056
31057         warn-on-use: work with old autoconf
31058         * m4/warn-on-use.m4 (gl_WARN_ON_USE_PREPARE): Accomodate older
31059         AS_VAR semantics of autoconf 2.60.
31060         Reported by Bruno Haible.
31061
31062         bootstrap: improve some comments
31063         * build-aux/bootstrap: Drop unneeded emacs hint.  Add some
31064         clarification comments.
31065
31066         gettimeofday: provide correct function
31067         * lib/gettimeofday.c (gettimeofday): Provide rpl_gettimeofday only
31068         when replacement is declared, otherwise provide gettimeofday.
31069         Reported by Michael Goffioul.
31070
31071 2010-02-23  Jim Meyering  <meyering@redhat.com>
31072
31073         lib-ignore: relax license to "unlimited", not LGPLv2+
31074         * modules/lib-ignore (License): Relax to "unlimited".
31075
31076 2010-02-23  Jim Meyering  <meyering@redhat.com>
31077
31078         lib-ignore: relax license to LGPLv2+
31079         * modules/lib-ignore (License): Relax to LGPLv2+.
31080
31081 2010-02-22  Eric Blake  <eblake@redhat.com>
31082
31083         lseek: avoid bash 3.2 broken pipe bug
31084         * m4/lseek.m4 (gl_FUNC_LSEEK): Drain pipe, to avoid spurious
31085         warning from bash 3.2.
31086         Reported by Ben Pfaff, with analysis from Bruno Haible.
31087
31088         bootstrap: support non-FSF copyright holder
31089         * build-aux/bootstrap (COPYRIGHT_HOLDER, with_gettext): Allow
31090         bootstrap.conf override of COPYRIGHT_HOLDER.
31091         (MSGID_BUGS_ADDRESS): Allow URL rather than email.
31092
31093         bootstrap: interoperate with gettext 0.14.1
31094         * build-aux/bootstrap (slurp): Fix typo when using older gettext.
31095
31096         bootstrap: allow for alternate submodule location
31097         * build-aux/bootstrap (gnulib_path): New variable; use instead of
31098         hardcoding submodule location.
31099         (gnulib_mk): Allow direct use of Makefile.am.
31100
31101         bootstrap: use GNULIB_SRCDIR to reduce disk usage
31102         * build-aux/bootstrap (GNULIB_SRCDIR): If set, use as a reference,
31103         rather than reconfiguring where the submodule points.
31104
31105         gettimeofday: restore support for platforms that lack function
31106         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Also compile
31107         replacement if function is missing.
31108         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_DEFAULTS): New witness.
31109         * modules/sys_time (Makefile.am): Substitute it.
31110         * lib/sys_time.in.h (gettimeofday): Check it.
31111         Reported by Michael Goffioul.
31112
31113 2010-02-21  Bruno Haible  <bruno@clisp.org>
31114
31115         * lib/stdio.in.h (obstack_printf): Fix typo.
31116
31117 2010-02-21  Jose E. Marchesi  <jemarch@gnu.org>
31118
31119         vc-list-files: use bzr ls's -R option
31120         * build-aux/vc-list-files: Invoke bazaar to generate a recursive
31121         list of versioned files based on 'dir' (usage of -R in 'bzr ls').
31122
31123 2010-02-21  Jim Meyering  <meyering@redhat.com>
31124
31125         init.sh: fix EXEEXT shims to work also for names like test-prog
31126         * tests/init.sh: Re-exec a better shell, when needed.
31127         If the current shell lacks support for posix $(...), an init.sh-using
31128         test will now try to find a shell that supports that.  If EXEEXT is
31129         nonempty, we also require support for hyphen-in-alias-name and shell
31130         substitutions like ${var#glob}.  Failure to find such a shell results
31131         in a skipped test.
31132
31133 2010-02-21  Bruno Haible  <bruno@clisp.org>
31134
31135         Really work around around "broken pipe" error message from bash 3.2.
31136         * gnulib-tool (func_reset_sigpipe): Remove function.
31137         (echo): In bash 3.2, define to a function that uses printf.
31138         Analyzed by Ralf Wildenhues, Chet Ramey, Ben Pfaff.
31139
31140 2010-02-20  Bruno Haible  <bruno@clisp.org>
31141
31142         Restore support for automake 1.9.6 with autoconf 2.61.
31143         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): Ensure MKDIR_P is AC_SUBSTed.
31144         Reported by James Youngman <jay@gnu.org>.
31145
31146 2010-02-20  Bruno Haible  <bruno@clisp.org>
31147
31148         Improve *printf warning condition.
31149         * lib/stdio.in.h (fprintf, printf, vfprintf, vprintf): Emit warning
31150         also if GNULIB_POSIXCHECK is defined, the *-posix module is not used,
31151         and the function is overridden due to SIGPIPE emulation.
31152
31153 2010-02-20  Bruno Haible  <bruno@clisp.org>
31154
31155         * lib/stdio.in.h: Tweak comments.
31156
31157 2010-02-19  Bruno Haible  <bruno@clisp.org>
31158
31159         Make it easier to find modules. New gnulib-tool option '--find'.
31160         * gnulib-tool: New option --find.
31161         (func_usage): Document it.
31162         (func_sanitize_modulelist): New function, extracted from
31163         func_all_modules.
31164         (func_all_modules): Invoke it.
31165         * doc/gnulib-tool.texi (Which modules?): New node.
31166
31167 2010-02-18  Markus Duft <mduft@gentoo.org>  (tiny change)
31168
31169         * lib/sys_select.in.h: Provide select replacement even if
31170         sys/select.h exists on a system, for Interix.
31171
31172 2010-02-18  Jim Meyering  <meyering@redhat.com>
31173
31174         init.sh: don't use $(...) just yet
31175         * tests/init.sh (create_exe_shim_functions_): Use `...`, not $(...),
31176         to accommodate e.g., Solaris' /bin/sh.
31177
31178 2010-02-17  Bruno Haible  <bruno@clisp.org>
31179
31180         * doc/posix-headers/netdb.texi: Mention NetBSD 5.0 problem.
31181         Reported by Ludovic Courtès <ludo@gnu.org>.
31182
31183 2010-02-16  Simon Josefsson  <simon@josefsson.org>
31184
31185         * modules/userspec-tests (test_userspec_LDADD): Add variable, for
31186         linking with -lintl.
31187
31188 2010-02-17  Simon Josefsson  <simon@josefsson.org>
31189
31190         * lib/netdb.in.h (AI_V4MAPPED, AI_ALL, AI_ADDRCONFIG): Define to 0
31191         if not provided by the system's netdb.h.  Reported by
31192         ludo@gnu.org (Ludovic Courtès).
31193
31194 2010-02-15  Jim Meyering  <meyering@redhat.com>
31195
31196         init.sh: improve portability and efficiency
31197         * tests/init.sh (find_exe_basenames_): Remove unnecessary use of
31198         "dummy" in a for loop.
31199         Use '!', not '^' to select the complement of a character set used
31200         in a "case" statement.
31201         Use shell variable manipulation, a la ${...%.exe}, rather than sed.
31202         Suggestions from Eric Blake.
31203
31204         init.sh: automatically accommodate programs with the .exe suffix
31205         Automatically arrange for an invocation of "prog" to execute the
31206         program named "prog$EXEEXT" (usually prog.exe).  Thus, all invocations
31207         may use the simpler "prog", yet still work when built on a system
31208         that requires specifying the added suffix.
31209         Do this by constructing a function named "prog" that invokes
31210         "prog.exe" for each .exe file in selected directories.
31211         * tests/init.sh (find_exe_basenames_): New function.
31212         (create_exe_shim_functions_): New function.
31213         (path_prepend_): Use it.
31214
31215         maint.mk: mark syntax-check sc_*.m rules as .PHONY
31216         * top/maint.mk ($(syntax-check-rules)): Add .PHONY, so that
31217         "make -t syntax-check" doesn't create a ton of sc_*.m files.
31218
31219 2010-02-14  Jim Meyering  <meyering@redhat.com>
31220
31221         maint.mk: prohibit inclusion of "hash-pjw.h" without_use
31222         * top/maint.mk (sc_prohibit_hash_without_use): Re-add "@".
31223         (sc_prohibit_hash_pjw_without_use): New rule.
31224
31225         maint.mk: allow the default upload destination dir to be overridden
31226         * top/maint.mk (upload_dest_dir_): Define with a default that
31227         preserves the status quo.
31228         (emit_upload_commands): Use it, rather than hard-coding $(PACKAGE).
31229         Reported by Peter Simons.
31230
31231         maint.mk: prohibit inclusion of "hash.h" without_use
31232         * top/maint.mk (sc_prohibit_hash_without_use): New rule.
31233
31234 2010-02-10  Jim Meyering  <meyering@redhat.com>
31235
31236         maint.mk: prohibit inclusion of "ignore-value.h" without_use
31237         * top/maint.mk (sc_prohibit_ignore_value_without_use): New rule.
31238
31239 2010-02-09  Eric Blake  <ebb9@byu.net>
31240         and Bruno Haible  <bruno@clisp.org>
31241
31242         obstack-printf-posix: ensure declaration
31243         * m4/obstack-printf.m4 (gl_DECL_OBSTACK_PRINTF): New macro,
31244         extracted from gl_FUNC_OBSTACK_PRINTF.
31245         (gl_FUNC_OBSTACK_PRINTF): Invoke it.
31246         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX):
31247         Likewise.
31248         * lib/stdio.in.h (obstack_printf, obstack_vprintf): Declare also
31249         if GNULIB_OBSTACK_PRINTF_POSIX is 1 and GNULIB_OBSTACK_PRINTF is
31250         0.
31251
31252 2010-02-08  Bruno Haible  <bruno@clisp.org>
31253
31254         gnulib-tool: Fix typo in 2010-02-07 commit.
31255         * gnulib-tool (func_get_dependencies): Fix typo in last commit.
31256         Reported by Eric Blake.
31257
31258 2010-02-07  Bruno Haible  <bruno@clisp.org>
31259
31260         gnulib-tool: Fix up caching patches.
31261         * gnulib-tool: New options --cache-modules, --no-cache-modules. Remove
31262         option --no-cache. Use associative arrays when supported by the shell.
31263         (sed_comments): New variable.
31264         (modcache): Renamed from do_cache.
31265         (sed_extract_field_header): Renamed from sed_extract_cache_prog. Don't
31266         abbreviate unnecessarily.
31267         (have_associative): New variable.
31268         (func_cache_var): Define correctly for bash 1.x. Define in an optimized
31269         way also for ksh and zsh.
31270         (func_init_sed_convert_to_cache_statements): New function, extracted
31271         from func_cache_lookup_module. Add support for associative arrays.
31272         Don't set the c_MODULE_cached variable here. Ignore all lines before
31273         the first field header. Remove only the final newline, not all trailing
31274         newlines. Support empty fields correctly. Limit the use of 'eval' to
31275         assignments.
31276         (func_get_description, func_get_status, func_get_notice,
31277         func_get_applicability, func_get_filelist, func_get_dependencies,
31278         func_get_autoconf_early_snippet, func_get_autoconf_snippet,
31279         func_get_automake_snippet, func_get_include_directive,
31280         func_get_link_directive, func_get_license, func_get_maintainer):
31281         Update documentation. List the unoptimized code first. Add support for
31282         associative arrays. Limit the use of 'eval' to assignments.
31283         (func_get_applicability): Undo stylistic pessimisations.
31284         (func_get_automake_snippet, func_get_include_directive): Reduce code
31285         duplication.
31286         (func_modules_transitive_closure, func_modules_add_dummy,
31287         func_modules_notice, func_modules_to_filelist, func_add_file,
31288         func_update_file, func_emit_lib_Makefile_am, func_emit_po_Makevars,
31289         func_emit_po_POTFILES_in, func_emit_tests_Makefile_am, func_import,
31290         func_create_testdir, func_create_megatestdir): Update documentation.
31291
31292 2010-01-18  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
31293
31294         * gnulib-tool (func_cache_lookup_module): Store the module name
31295         belonging to the cache variable; error out if two different
31296         module names map to the same cache variable name.
31297
31298 2010-01-18  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
31299
31300         gnulib-tool: Make caching optional.
31301         * gnulib-tool: Accept option --no-cache, turning off $do_cache.
31302         Update matching short versions of --no-changelog.
31303         (func_usage): Update.
31304         (sed_extract_cache_prog): Renamed from ...
31305         (sed_extract_prog): ... this; revert to old extraction script.
31306         (func_get_description, func_get_status)
31307         (func_get_notice, func_get_applicability, func_get_filelist)
31308         (func_get_dependencies, func_get_autoconf_early_snippet)
31309         (func_get_autoconf_snippet, func_get_automake_snippet)
31310         (func_get_include_directive, func_get_link_directive)
31311         (func_get_license, func_get_maintainer): If $do_cache is false,
31312         use old, non-caching extraction scripts.
31313         Suggestion by Bruno Haible.
31314
31315 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
31316
31317         gnulib-tool: cache module metainformation.
31318         * gnulib-tool (sed_extract_prog): Match newline before each
31319         header, and rewrite header to a shell variable suffix.
31320         (func_cache_var, func_cache_lookup_module): New functions,
31321         to turn a module name into a cache variable prefix, and to
31322         look up and cache module metainformation.
31323         (func_get_description, func_get_status)
31324         (func_get_notice, func_get_applicability, func_get_filelist)
31325         (func_get_dependencies, func_get_autoconf_early_snippet)
31326         (func_get_autoconf_snippet, func_get_automake_snippet)
31327         (func_get_include_directive, func_get_link_directive)
31328         (func_get_license, func_get_maintainer): Use
31329         func_cache_lookup_module.
31330
31331 2010-02-07  Bruno Haible  <bruno@clisp.org>
31332
31333         fnctl: Fix missing dependency.
31334         * modules/fcntl (Depends-on): Add getdtablesize.
31335         Reported by John W. Eaton <jwe@gnu.org>.
31336
31337 2010-02-05  Sergey Poznyakoff  <gray@gnu.org.ua>
31338
31339         Argp: fix recognition of short alias options.
31340
31341         * lib/argp-parse.c (convert_options): Fix improper use of
31342         `|' between character values.
31343         * tests/test-argp.c (group1_option): New alias option
31344         --read (-r).
31345         (group1_parser): Special handling for 'r'.
31346         (test15): New test case.
31347         (test_fun): Add test15.
31348         * tests/test-argp-2.sh: Update expected --help and --usage
31349         outputs.
31350
31351 2010-02-05  Sergey Poznyakoff  <gray@gnu.org.ua>
31352
31353         * tests/test-argp.c: Fix indentation.
31354
31355 2010-02-04  Eric Blake  <ebb9@byu.net>
31356
31357         gettimeofday: expose type of second argument
31358         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Do better detection
31359         of glibc extension signature, and define GETTIMEOFDAY_TIMEZONE.
31360         * tests/test-gettimeofday.c: Use it to silence warning.
31361         * doc/posix-functions/gettimeofday.texi (gettimeofday): Document
31362         the issue.
31363
31364 2010-02-03  Jim Meyering  <meyering@redhat.com>
31365
31366         regcomp.c: avoid the sole warning from gcc's -Wtype-limits
31367         * lib/regcomp.c (TYPE_SIGNED): Define.
31368         (parse_dup_op): Use it to avoid the sole warning from -Wtype-limits.
31369
31370         regcomp.c: avoid a new -Wshadow warning
31371         * lib/regcomp.c (create_initial_state): Do not shadow local "err".
31372
31373 2010-02-01  Jim Meyering  <meyering@redhat.com>
31374
31375         removing useless parentheses in cpp #define directives
31376         For motivation, see commit c0221df4, "define STREQ(a,b)
31377         consistently, removing useless parentheses"
31378         * lib/memcmp.c (CMP_LT_OR_GT): Remove useless parentheses.
31379         * lib/mountlist.c (MNT_IGNORE): Likewise.
31380         * lib/trim.h (trim, trim_trailing, trim_leading): Likewise.
31381
31382 2010-02-01  Eric Blake  <ebb9@byu.net>
31383
31384         sys_time: use link-warning
31385         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Split defaults...
31386         (gl_HEADER_SYS_TIME_H_DEFAULTS): ...into new macro.
31387         (gl_SYS_TIME_MODULE_INDICATOR): New macro.
31388         * modules/sys_time (Depends-on): Add warn-on-use.
31389         (Makefile.am): Always build replacement.
31390         (configure.ac): Update substitutions.
31391         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY)
31392         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Include defaults, and no longer
31393         bother with SYS_TIME_H.
31394         * modules/gettimeofday (configure.ac): Declare indicator.
31395         * lib/sys_time.in.h (gettimeofday): Warn if gnulib module is not
31396         in use.
31397
31398         closein-tests: silence compiler warning
31399         * tests/test-closein.c (main): Ignore fread result.
31400         * modules/closein-tests (Depends-on): Add ignore-value.
31401
31402         tests: silence warning about system return
31403         * tests/test-areadlink-with-size.c (main): Ignore system result.
31404         * tests/test-areadlink.c (main): Likewise.
31405         * tests/test-areadlinkat-with-size.c (main): Likewise.
31406         * tests/test-areadlinkat.c (main): Likewise.
31407         * tests/test-canonicalize-lgpl.c (main): Likewise.
31408         * tests/test-canonicalize.c (main): Likewise.
31409         * tests/test-chown.c (main): Likewise.
31410         * tests/test-fchownat.c (main): Likewise.
31411         * tests/test-fdutimensat.c (main): Likewise.
31412         * tests/test-fstatat.c (main): Likewise.
31413         * tests/test-futimens.c (main): Likewise.
31414         * tests/test-lchown.c (main): Likewise.
31415         * tests/test-link.c (main): Likewise.
31416         * tests/test-linkat.c (main): Likewise.
31417         * tests/test-lstat.c (main): Likewise.
31418         * tests/test-mkdir.c (main): Likewise.
31419         * tests/test-mkdirat.c (main): Likewise.
31420         * tests/test-mkfifo.c (main): Likewise.
31421         * tests/test-mkfifoat.c (main): Likewise.
31422         * tests/test-mknod.c (main): Likewise.
31423         * tests/test-readlink.c (main): Likewise.
31424         * tests/test-remove.c (main): Likewise.
31425         * tests/test-rename.c (main): Likewise.
31426         * tests/test-renameat.c (main): Likewise.
31427         * tests/test-rmdir.c (main): Likewise.
31428         * tests/test-symlink.c (main): Likewise.
31429         * tests/test-symlinkat.c (main): Likewise.
31430         * tests/test-unlink.c (main): Likewise.
31431         * tests/test-unlinkat.c (main): Likewise.
31432         * tests/test-utimens.c (main): Likewise.
31433         * tests/test-utimensat.c (main): Likewise.
31434         * modules/areadlink-tests (Depends-on): Add ignore-value.
31435         * modules/areadlink-with-size-tests (Depends-on): Likewise.
31436         * modules/areadlinkat-tests (Depends-on): Likewise.
31437         * modules/areadlinkat-with-size-tests (Depends-on): Likewise.
31438         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
31439         * modules/canonicalize-tests (Depends-on): Likewise.
31440         * modules/chown-tests (Depends-on): Likewise.
31441         * modules/fdutimensat-tests (Depends-on): Likewise.
31442         * modules/futimens-tests (Depends-on): Likewise.
31443         * modules/lchown-tests (Depends-on): Likewise.
31444         * modules/link-tests (Depends-on): Likewise.
31445         * modules/linkat-tests (Depends-on): Likewise.
31446         * modules/lstat-tests (Depends-on): Likewise.
31447         * modules/mkdir-tests (Depends-on): Likewise.
31448         * modules/mkfifo-tests (Depends-on): Likewise.
31449         * modules/mkfifoat-tests (Depends-on): Likewise.
31450         * modules/mknod-tests (Depends-on): Likewise.
31451         * modules/openat-tests (Depends-on): Likewise.
31452         * modules/readlink-tests (Depends-on): Likewise.
31453         * modules/remove-tests (Depends-on): Likewise.
31454         * modules/rename-tests (Depends-on): Likewise.
31455         * modules/renameat-tests (Depends-on): Likewise.
31456         * modules/rmdir-tests (Depends-on): Likewise.
31457         * modules/symlink-tests (Depends-on): Likewise.
31458         * modules/symlinkat-tests (Depends-on): Likewise.
31459         * modules/unlink-tests (Depends-on): Likewise.
31460         * modules/utimens-tests (Depends-on): Likewise.
31461         * modules/utimensat-tests (Depends-on): Likewise.
31462
31463 2010-01-31  Bruno Haible  <bruno@clisp.org>
31464
31465         Perform the same test for many <math.h> functions.
31466         * m4/mathfunc.m4 (gl_COMMON_DOUBLE_MATHFUNC,
31467         gl_COMMON_DOUBLE_MATHFUNC_TEST): New macros.
31468         * m4/sqrt.m4 (gl_FUNC_SQRT): Invoke gl_COMMON_DOUBLE_MATHFUNC instead
31469         of gl_MATHFUNC.
31470         * modules/acos (configure.ac): Likewise.
31471         * modules/asin (configure.ac): Likewise.
31472         * modules/atan (configure.ac): Likewise.
31473         * modules/atan2 (configure.ac): Likewise.
31474         * modules/cbrt (configure.ac): Likewise.
31475         * modules/copysign (configure.ac): Likewise.
31476         * modules/cos (configure.ac): Likewise.
31477         * modules/cosh (configure.ac): Likewise.
31478         * modules/erf (configure.ac): Likewise.
31479         * modules/erfc (configure.ac): Likewise.
31480         * modules/exp (configure.ac): Likewise.
31481         * modules/fmod (configure.ac): Likewise.
31482         * modules/hypot (configure.ac): Likewise.
31483         * modules/j0 (configure.ac): Likewise.
31484         * modules/j1 (configure.ac): Likewise.
31485         * modules/jn (configure.ac): Likewise.
31486         * modules/lgamma (configure.ac): Likewise.
31487         * modules/log (configure.ac): Likewise.
31488         * modules/log10 (configure.ac): Likewise.
31489         * modules/log1p (configure.ac): Likewise.
31490         * modules/pow (configure.ac): Likewise.
31491         * modules/remainder (configure.ac): Likewise.
31492         * modules/sin (configure.ac): Likewise.
31493         * modules/sinh (configure.ac): Likewise.
31494         * modules/tan (configure.ac): Likewise.
31495         * modules/tanh (configure.ac): Likewise.
31496         * modules/y0 (configure.ac): Likewise.
31497         * modules/y1 (configure.ac): Likewise.
31498         * modules/yn (configure.ac): Likewise.
31499         Suggested by Paolo Bonzini.
31500
31501 2010-01-31  Bruno Haible  <bruno@clisp.org>
31502
31503         * m4/getline.m4 (gl_FUNC_GETLINE): Add comment about REPLACE_GETLINE.
31504
31505 2010-01-31  Bruno Haible  <bruno@clisp.org>
31506
31507         Work around getdelim() bug on FreeBSD 8.0.
31508         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Test whether getdelim supports an
31509         initially NULL line. Set REPLACE_GETDELIM if getdelim exists but does
31510         not work.
31511         * lib/stdio.in.h (getdelim): Define as an alias if REPLACE_GETDELIM
31512         is 1.
31513         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize REPLACE_GETDELIM.
31514         * modules/stdio (Makefile.am): Also substitute REPLACE_GETDELIM.
31515         * tests/test-getdelim.c (main): Also test result for a NULL buffer and
31516         a non-zero size.
31517         * doc/posix-functions/getdelim.texi: Mention the FreeBSD bug.
31518
31519 2010-01-31  Bruno Haible  <bruno@clisp.org>
31520
31521         Work around getline() bug on FreeBSD 8.0.
31522         * m4/getline.m4 (gl_FUNC_GETLINE): Also test result for a NULL buffer
31523         and a non-zero size.
31524         * tests/test-getline.c (main): Likewise.
31525         * doc/posix-functions/getline.texi: Mention the FreeBSD bug.
31526         Reported by Dennis <noordsij@cs.helsinki.fi> via Eric Blake.
31527
31528 2010-01-28  Eric Blake  <ebb9@byu.net>
31529
31530         regex: fix build failure
31531         * lib/regex_internal.h (__GNUC_PREREQ): Define for non-glibc
31532         platforms.
31533
31534 2010-01-28  Jim Meyering  <meyering@redhat.com>
31535
31536         regex: do not ignore memory allocation failure
31537         * lib/regex_internal.c (create_cd_newstate): Detect
31538         re_node_set_init_copy failure.   Extracted from glibc commit
31539         2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
31540
31541         regex: sync more white-space changes from libc
31542         * lib/regex_internal.c: White-space only changes.
31543         * lib/regexec.c: Likewise.
31544
31545         regex: add many uses of __attribute_warn_unused_result__
31546         * lib/regex_internal.c: Use __attribute_warn_unused_result__.
31547         * lib/regexec.c: Likewise.
31548         Extracted from a messy glibc commit.
31549
31550         regcomp.c: spelling and merge-artifact from glibc
31551         * lib/regcomp.c: Merge remainder of glibc's
31552         2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
31553
31554         regcomp.c: sync white-space changes from glibc
31555         * lib/regcomp.c: Merge to accommodate white space
31556         changes from glibc's 2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
31557
31558         regcomp.c: do not ignore internal return values
31559         * lib/regcomp.c: Do not ignore internal return values.
31560         This is from glibc's 2da42bc06566bc89785e580fa1ac89b4c9f2a63c,
31561         but without its white-space changes and spelling fixes.
31562
31563         regex_internal.h: define __attribute_warn_unused_result__
31564         * lib/regex_internal.h (__attribute_warn_unused_result__): Define.
31565
31566         maint: add a syntax-check rule to check for vulnerable Makefile.in
31567         * top/maint.mk (sc_vulnerable_makefile_CVE-2009-4029): New rule.
31568
31569 2010-01-27  Jim Meyering  <meyering@redhat.com>
31570
31571         ncftpput-ftp: clean up spaces
31572         * build-aux/ncftpput-ftp: Make Copyright line consistent.
31573         Remove trailing blanks.
31574
31575 2010-01-27  Simon Josefsson  <simon@josefsson.org>
31576
31577         * build-aux/git-version-gen: Fix copyright statement.
31578         * build-aux/gnupload: Likewise.
31579         * tests/test-arcfour.c: Likewise.
31580         * tests/test-arctwo.c: Likewise.
31581         * tests/test-count-one-bits.c: Likewise.
31582         * tests/test-crc.c: Likewise.
31583         * tests/test-des.c: Likewise.
31584         * tests/test-gc-arcfour.c: Likewise.
31585         * tests/test-gc-arctwo.c: Likewise.
31586         * tests/test-gc-des.c: Likewise.
31587         * tests/test-gc-hmac-md5.c: Likewise.
31588         * tests/test-gc-hmac-sha1.c: Likewise.
31589         * tests/test-gc-md2.c: Likewise.
31590         * tests/test-gc-md4.c: Likewise.
31591         * tests/test-gc-md5.c: Likewise.
31592         * tests/test-gc-pbkdf2-sha1.c: Likewise.
31593         * tests/test-gc-rijndael.c: Likewise.
31594         * tests/test-gc-sha1.c: Likewise.
31595         * tests/test-gc.c: Likewise.
31596         * tests/test-gethostname.c: Likewise.
31597         * tests/test-gettimeofday.c: Likewise.
31598         * tests/test-hash.c: Likewise.
31599         * tests/test-hmac-md5.c: Likewise.
31600         * tests/test-hmac-sha1.c: Likewise.
31601         * tests/test-md2.c: Likewise.
31602         * tests/test-md4.c: Likewise.
31603         * tests/test-md5.c: Likewise.
31604         * tests/test-memchr.c: Likewise.
31605         * tests/test-memchr2.c: Likewise.
31606         * tests/test-memcmp.c: Likewise.
31607         * tests/test-memmem.c: Likewise.
31608         * tests/test-memrchr.c: Likewise.
31609         * tests/test-rawmemchr.c: Likewise.
31610         * tests/test-read-file.c: Likewise.
31611         * tests/test-rijndael.c: Likewise.
31612         * tests/test-sockets.c: Likewise.
31613         * tests/test-strchrnul.c: Likewise.
31614         * tests/test-strstr.c: Likewise.
31615         * tests/test-strtod.c: Likewise.
31616         * build-aux/ncftpput-ftp: Likewise.
31617
31618 2010-01-26  Eric Blake  <ebb9@byu.net>
31619
31620         ignore-value: update recommended header name
31621         * modules/ignore-value (Include): Only use <> for headers that
31622         exist in glibc.
31623
31624 2010-01-26  Jim Meyering  <meyering@redhat.com>
31625
31626         test-userspec.c: avoid compiler warnings
31627         * tests/test-userspec.c (main): Avoid shadowing ("uid"),
31628         and "initialization discards qualifiers..." warnings.
31629         Put the first "uid" in its own scope, and make char* members "const".
31630
31631 2010-01-25  Bruno Haible  <bruno@clisp.org>
31632
31633         gnulib-tool: Make warning diagnostics consistent.
31634         * gnulib-tool (func_warning): New function.
31635         Use it everywhere where gnulib-tool produces output to stderr and it is
31636         not a fatal error.
31637
31638 2010-01-25  Bruno Haible  <bruno@clisp.org>
31639
31640         Fix test dependencies.
31641         * modules/xstrtol-tests (Depends-on): Add inttypes.
31642         * modules/xstrtoll-tests (Depends-on): Likewise. Remove xstrtoll.
31643
31644 2010-01-25 Pádraig Brady <P@draigBrady.com>
31645
31646         syntax-check: detect incorrect boolean macro values in config.h
31647         * modules/maintainer-makefile (configure.ac): Parameterize the location
31648         of config.h which will be available to makefiles as $(CONFIG_INCLUDE).
31649         The logic is from Eric Blake and the location indicated by Jim Meyering.
31650         Note the more natural CONFIG_HEADER name is prohibited by automake
31651         for backwards compatibility reasons.
31652         * top/maint.mk (sc_Wundef_boolean): New rule.
31653
31654 2010-01-25  Jim Meyering  <meyering@redhat.com>
31655
31656         bootstrap: detect MacOS 10.6's shasum, too
31657         * build-aux/bootstrap: Also recognize MacOS 10.6's shasum.
31658         Suggested by Thomas Treichl <Thomas.Treichl@gmx.net>.
31659
31660 2010-01-23  Jim Meyering  <meyering@redhat.com>
31661
31662         xstrtoll: new module
31663         * modules/xstrtoll: New file.
31664         * MODULES.html.sh (Numeric conversion functions): Add xstrtoll.
31665         * lib/xstrtol.h [HAVE_LONG_LONG_INT]: Declare xstrtoll and xstrtoull.
31666         * lib/xstrtoll.c, lib/xstrtoull.c: New files.
31667         ./configure fails if you use this module and lack "long long".
31668         * modules/xstrtoll-tests: New module.
31669         * tests/test-xstrtoll.c, tests/test-xstrtoull.c: New files.
31670         * tests/test-xstrtoll.sh: Like test-xstrtol.c, but use the
31671         new init.sh-based test framework.
31672
31673 2010-01-24  Bruno Haible  <bruno@clisp.org>
31674
31675         Tests for module 'yn'.
31676         * modules/yn-tests: New file.
31677         * tests/test-yn.c: New file.
31678
31679         Tests for module 'y1'.
31680         * modules/y1-tests: New file.
31681         * tests/test-y1.c: New file.
31682
31683         Tests for module 'y0'.
31684         * modules/y0-tests: New file.
31685         * tests/test-y0.c: New file.
31686
31687         Tests for module 'tanh'.
31688         * modules/tanh-tests: New file.
31689         * tests/test-tanh.c: New file.
31690
31691         Tests for module 'tan'.
31692         * modules/tan-tests: New file.
31693         * tests/test-tan.c: New file.
31694
31695         Tests for module 'sqrt'.
31696         * modules/sqrt-tests: New file.
31697         * tests/test-sqrt.c: New file.
31698
31699         Tests for module 'sinh'.
31700         * modules/sinh-tests: New file.
31701         * tests/test-sinh.c: New file.
31702
31703         Tests for module 'sin'.
31704         * modules/sin-tests: New file.
31705         * tests/test-sin.c: New file.
31706
31707         Tests for module 'rint'.
31708         * modules/rint-tests: New file.
31709         * tests/test-rint.c: New file.
31710
31711         Tests for module 'remainder'.
31712         * modules/remainder-tests: New file.
31713         * tests/test-remainder.c: New file.
31714
31715         Tests for module 'pow'.
31716         * modules/pow-tests: New file.
31717         * tests/test-pow.c: New file.
31718
31719         Tests for module 'nextafter'.
31720         * modules/nextafter-tests: New file.
31721         * tests/test-nextafter.c: New file.
31722
31723         Tests for module 'modf'.
31724         * modules/modf-tests: New file.
31725         * tests/test-modf.c: New file.
31726
31727         Tests for module 'logb'.
31728         * modules/logb-tests: New file.
31729         * tests/test-logb.c: New file.
31730
31731         Tests for module 'log1p'.
31732         * modules/log1p-tests: New file.
31733         * tests/test-log1p.c: New file.
31734
31735         Tests for module 'log10'.
31736         * modules/log10-tests: New file.
31737         * tests/test-log10.c: New file.
31738
31739         Tests for module 'log'.
31740         * modules/log-tests: New file.
31741         * tests/test-log.c: New file.
31742
31743         Tests for module 'lgamma'.
31744         * modules/lgamma-tests: New file.
31745         * tests/test-lgamma.c: New file.
31746
31747         Tests for module 'ldexp'.
31748         * modules/ldexp-tests: New file.
31749         * tests/test-ldexp.c: New file.
31750
31751         Tests for module 'jn'.
31752         * modules/jn-tests: New file.
31753         * tests/test-jn.c: New file.
31754
31755         Tests for module 'j1'.
31756         * modules/j1-tests: New file.
31757         * tests/test-j1.c: New file.
31758
31759         Tests for module 'j0'.
31760         * modules/j0-tests: New file.
31761         * tests/test-j0.c: New file.
31762
31763         Tests for module 'hypot'.
31764         * modules/hypot-tests: New file.
31765         * tests/test-hypot.c: New file.
31766
31767         Tests for module 'fmod'.
31768         * modules/fmod-tests: New file.
31769         * tests/test-fmod.c: New file.
31770
31771         Tests for module 'fabs'.
31772         * modules/fabs-tests: New file.
31773         * tests/test-fabs.c: New file.
31774
31775         Tests for module 'exp'.
31776         * modules/exp-tests: New file.
31777         * tests/test-exp.c: New file.
31778
31779         Tests for module 'erfc'.
31780         * modules/erfc-tests: New file.
31781         * tests/test-erfc.c: New file.
31782
31783         Tests for module 'erf'.
31784         * modules/erf-tests: New file.
31785         * tests/test-erf.c: New file.
31786
31787         Tests for module 'cosh'.
31788         * modules/cosh-tests: New file.
31789         * tests/test-cosh.c: New file.
31790
31791         Tests for module 'cos'.
31792         * modules/cos-tests: New file.
31793         * tests/test-cos.c: New file.
31794
31795         Tests for module 'copysign'.
31796         * modules/copysign-tests: New file.
31797         * tests/test-copysign.c: New file.
31798
31799         Tests for module 'cbrt'.
31800         * modules/cbrt-tests: New file.
31801         * tests/test-cbrt.c: New file.
31802
31803         Tests for module 'atan2'.
31804         * modules/atan2-tests: New file.
31805         * tests/test-atan2.c: New file.
31806
31807         Tests for module 'atan'.
31808         * modules/atan-tests: New file.
31809         * tests/test-atan.c: New file.
31810
31811         Tests for module 'asin'.
31812         * modules/asin-tests: New file.
31813         * tests/test-asin.c: New file.
31814
31815         Tests for module 'acos'.
31816         * modules/acos-tests: New file.
31817         * tests/test-acos.c: New file.
31818
31819 2010-01-24  Bruno Haible  <bruno@clisp.org>
31820
31821         Fix tests for common <math.h> functions.
31822         * m4/mathfunc.m4 (gl_MATHFUNC): Take two additional parameters. Use a
31823         code snippet that references the function pointer, rather than merely
31824         calling the function. Substitute the FUNC_LIBM variable.
31825         * m4/sqrt.m4 (gl_FUNC_SQRT): Update gl_MATHFUNC invocation.
31826         * modules/acos (configure.ac): Likewise.
31827         * modules/asin (configure.ac): Likewise.
31828         * modules/atan (configure.ac): Likewise.
31829         * modules/atan2 (configure.ac): Likewise.
31830         * modules/cbrt (configure.ac): Likewise.
31831         * modules/copysign (configure.ac): Likewise.
31832         * modules/cos (configure.ac): Likewise.
31833         * modules/cosh (configure.ac): Likewise.
31834         * modules/erf (configure.ac): Likewise.
31835         * modules/erfc (configure.ac): Likewise.
31836         * modules/exp (configure.ac): Likewise.
31837         * modules/fabs (configure.ac): Likewise.
31838         * modules/fmod (configure.ac): Likewise.
31839         * modules/hypot (configure.ac): Likewise.
31840         * modules/j0 (configure.ac): Likewise.
31841         * modules/j1 (configure.ac): Likewise.
31842         * modules/jn (configure.ac): Likewise.
31843         * modules/ldexp (configure.ac): Likewise.
31844         * modules/lgamma (configure.ac): Likewise.
31845         * modules/log (configure.ac): Likewise.
31846         * modules/log10 (configure.ac): Likewise.
31847         * modules/log1p (configure.ac): Likewise.
31848         * modules/logb (configure.ac): Likewise.
31849         * modules/modf (configure.ac): Likewise.
31850         * modules/nextafter (configure.ac): Likewise.
31851         * modules/pow (configure.ac): Likewise.
31852         * modules/remainder (configure.ac): Likewise.
31853         * modules/rint (configure.ac): Likewise.
31854         * modules/sin (configure.ac): Likewise.
31855         * modules/sinh (configure.ac): Likewise.
31856         * modules/tan (configure.ac): Likewise.
31857         * modules/tanh (configure.ac): Likewise.
31858         * modules/y0 (configure.ac): Likewise.
31859         * modules/y1 (configure.ac): Likewise.
31860         * modules/yn (configure.ac): Likewise.
31861
31862 2010-01-24  Bruno Haible  <bruno@clisp.org>
31863
31864         Tests: Defeat inlining of math functions by GCC >= 4.3.0.
31865         * tests/test-acosl.c (x): New variable.
31866         (main): Store argument in x and fetch it from x.
31867         * tests/test-asinl.c (x): New variable.
31868         (main): Store argument in x and fetch it from x.
31869         * tests/test-atanl.c (x): New variable.
31870         (main): Store argument in x and fetch it from x.
31871         * tests/test-cosl.c (x): New variable.
31872         (main): Store argument in x and fetch it from x.
31873         * tests/test-expl.c (x): New variable.
31874         (main): Store argument in x and fetch it from x.
31875         * tests/test-logl.c (x): New variable.
31876         (main): Store argument in x and fetch it from x.
31877         * tests/test-sinl.c (x): New variable.
31878         (main): Store argument in x and fetch it from x.
31879         * tests/test-sqrtl.c (x): New variable.
31880         (main): Store argument in x and fetch it from x.
31881         * tests/test-tanl.c (x): New variable.
31882         (main): Store argument in x and fetch it from x.
31883
31884 2010-01-24  Bruno Haible  <bruno@clisp.org>
31885
31886         Provide EXEEXT and srcdir in TESTS_ENVIRONMENT by default.
31887         * gnulib-tool (func_emit_tests_Makefile_am): Add EXEEXT and srcdir
31888         assignments to the initial TESTS_ENVIRONMENT.
31889         * doc/gnulib.texi (Unit test modules): Document it.
31890         * modules/acl-tests (Makefile.am): Drop EXEEXT assignment from
31891         TESTS_ENVIRONMENT.
31892         * modules/btowc-tests (Makefile.am): Likewise.
31893         * modules/c-stack-tests (Makefile.am): Likewise.
31894         * modules/c-strcase-tests (Makefile.am): Likewise.
31895         * modules/copy-file-tests (Makefile.am): Likewise.
31896         * modules/mbmemcasecmp-tests (Makefile.am): Likewise.
31897         * modules/mbmemcasecoll-tests (Makefile.am): Likewise.
31898         * modules/mbrtowc-tests (Makefile.am): Likewise.
31899         * modules/mbscasecmp-tests (Makefile.am): Likewise.
31900         * modules/mbscasestr-tests (Makefile.am): Likewise.
31901         * modules/mbschr-tests (Makefile.am): Likewise.
31902         * modules/mbscspn-tests (Makefile.am): Likewise.
31903         * modules/mbsinit-tests (Makefile.am): Likewise.
31904         * modules/mbsncasecmp-tests (Makefile.am): Likewise.
31905         * modules/mbsnrtowcs-tests (Makefile.am): Likewise.
31906         * modules/mbspbrk-tests (Makefile.am): Likewise.
31907         * modules/mbspcasecmp-tests (Makefile.am): Likewise.
31908         * modules/mbsrchr-tests (Makefile.am): Likewise.
31909         * modules/mbsrtowcs-tests (Makefile.am): Likewise.
31910         * modules/mbsspn-tests (Makefile.am): Likewise.
31911         * modules/mbsstr-tests (Makefile.am): Likewise.
31912         * modules/nl_langinfo-tests (Makefile.am): Likewise.
31913         * modules/unicase/locale-language-tests (Makefile.am): Likewise.
31914         * modules/unistdio/u16-vasnprintf-tests (Makefile.am): Likewise.
31915         * modules/unistdio/u32-vasnprintf-tests (Makefile.am): Likewise.
31916         * modules/unistdio/u8-vasnprintf-tests (Makefile.am): Likewise.
31917         * modules/unistdio/ulc-vasnprintf-tests (Makefile.am): Likewise.
31918         * modules/uniwbrk/ulc-wordbreaks-tests (Makefile.am): Likewise.
31919         * modules/vasnprintf-posix-tests (Makefile.am): Likewise.
31920         * modules/wcrtomb-tests (Makefile.am): Likewise.
31921         * modules/wcsnrtombs-tests (Makefile.am): Likewise.
31922         * modules/wcsrtombs-tests (Makefile.am): Likewise.
31923         * modules/quotearg-tests (Makefile.am): Drop EXEEXT and srcdir
31924         assignments from TESTS_ENVIRONMENT.
31925         * modules/argp-tests (Makefile.am): Drop TESTS_ENVIRONMENT
31926         augmentation.
31927         * modules/argp-version-etc-tests (Makefile.am): Likewise.
31928         * modules/atexit-tests (Makefile.am): Likewise.
31929         * modules/binary-io-tests (Makefile.am): Likewise.
31930         * modules/closein-tests (Makefile.am): Likewise.
31931         * modules/dprintf-posix-tests (Makefile.am): Likewise.
31932         * modules/exclude-tests (Makefile.am): Likewise.
31933         * modules/fflush-tests (Makefile.am): Likewise.
31934         * modules/fpending-tests (Makefile.am): Likewise.
31935         * modules/fprintf-posix-tests (Makefile.am): Likewise.
31936         * modules/freadahead-tests (Makefile.am): Likewise.
31937         * modules/freadptr-tests (Makefile.am): Likewise.
31938         * modules/freadseek-tests (Makefile.am): Likewise.
31939         * modules/fseek-tests (Makefile.am): Likewise.
31940         * modules/fseeko-tests (Makefile.am): Likewise.
31941         * modules/ftell-tests (Makefile.am): Likewise.
31942         * modules/ftello-tests (Makefile.am): Likewise.
31943         * modules/idpriv-drop-tests (Makefile.am): Likewise.
31944         * modules/idpriv-droptemp-tests (Makefile.am): Likewise.
31945         * modules/lseek-tests (Makefile.am): Likewise.
31946         * modules/parse-duration-tests (Makefile.am): Likewise.
31947         * modules/perror-tests (Makefile.am): Likewise.
31948         * modules/pipe-filter-gi-tests (Makefile.am): Likewise.
31949         * modules/pipe-filter-ii-tests (Makefile.am): Likewise.
31950         * modules/pipe-tests (Makefile.am): Likewise.
31951         * modules/pread-tests (Makefile.am): Likewise.
31952         * modules/printf-posix-tests (Makefile.am): Likewise.
31953         * modules/select-tests (Makefile.am): Likewise.
31954         * modules/sigpipe-tests (Makefile.am): Likewise.
31955         * modules/tsearch-tests (Makefile.am): Likewise.
31956         * modules/unicase/ulc-casecmp-tests (Makefile.am): Likewise.
31957         * modules/unicase/ulc-casecoll-tests (Makefile.am): Likewise.
31958         * modules/uniname/uniname-tests (Makefile.am): Likewise.
31959         * modules/uniwidth/width-tests (Makefile.am): Likewise.
31960         * modules/vdprintf-posix-tests (Makefile.am): Likewise.
31961         * modules/version-etc-tests (Makefile.am): Likewise.
31962         * modules/vfprintf-posix-tests (Makefile.am): Likewise.
31963         * modules/vprintf-posix-tests (Makefile.am): Likewise.
31964         * modules/xalloc-die-tests (Makefile.am): Likewise.
31965         * modules/xprintf-posix-tests (Makefile.am): Likewise.
31966         * modules/xstrtoimax-tests (Makefile.am): Likewise.
31967         * modules/xstrtol-tests (Makefile.am): Likewise.
31968         * modules/xstrtoumax-tests (Makefile.am): Likewise.
31969         * modules/yesno-tests (Makefile.am): Likewise.
31970         Suggested by Jim Meyering.
31971
31972 2010-01-24  Bruno Haible  <bruno@clisp.org>
31973
31974         More documentation.
31975         * doc/gnulib.texi (Writing modules): New chapter.
31976         (Miscellaneous Notes): Move sections "Comments" and "Header files" to
31977         the new chapter.
31978
31979 2010-01-24  Jim Meyering  <meyering@redhat.com>
31980
31981         maint.mk: do not prepend "./" after filtering
31982         * top/maint.mk (_prepend_srcdir_prefix): New variable
31983         (VC_LIST_EXCEPT): Use it to avoid prepending (post-filter)
31984         "./" when $(srcdir) is ".".
31985
31986         define STREQ(a,b) consistently, removing useless parentheses
31987         #define STREQ(a, b) (strcmp ((a), (b)) == 0) is over-parenthesized,
31988         since the only risk is that "a" or "b" contains an unparenthesized
31989         comma, but if either did that, STREQ would have 3 or more arguments.
31990         Hence, #define STREQ(a, b) (strcmp (a, b) == 0) is better.
31991         * lib/fts.c (STREQ): Remove unnecessary parentheses.
31992         * lib/hash-triple.c (STREQ): Likewise.
31993         * tests/test-argv-iter.c (STREQ): Use a and b, not s1 and s2.
31994         * lib/getugroups.c (STREQ): Likewise.
31995
31996 2010-01-23  Jim Meyering  <meyering@redhat.com>
31997
31998         maint.mk: fix syntax-check in a non-srcdir build directory
31999         * top/maint.mk (_dot_escaped_srcdir): Remove erroneous backslash,
32000         introduced in my 2010-01-21 commit, a6da6c45.  Reported by Eric Blake.
32001
32002 2010-01-22  Jim Meyering  <meyering@redhat.com>
32003
32004         userspec: add unit tests
32005         * tests/test-userspec.c: New file.
32006         * modules/userspec-tests: Likewise.
32007
32008 2010-01-21  Jim Meyering  <meyering@redhat.com>
32009
32010         maint.mk: handle source file names containing "." robustly
32011         * top/maint.mk (_dot_escaped_srcdir): Define.
32012         (VC_LIST): Use it in LHS of sed substitution.
32013
32014 2010-01-21  Jiri Denemark  <jdenemar@redhat.com>
32015
32016         maint.mk: fix VC_LIST_EXCEPT for srcdir != builddir
32017         * top/maint.mk (VC_LIST_EXCEPT): Preprocess the output of
32018         $(VC_LIST) to remove a prefix of '$(srcdir)/', so that it works
32019         from a non-srcdir build.
32020
32021 2010-01-20  Eric Blake  <ebb9@byu.net>
32022
32023         warn-on-use: use instead of link-warning
32024         * modules/stdio (Depends-on, Makefile.am): Drop link-warning.
32025         * modules/unistd (Depends-on, Makefile.am): Likewise.
32026         * modules/arpa_inet (Depends-on): Replace link-warning with
32027         warn-on-use.
32028         (Makefile.am): Update rules accordingly.
32029         * modules/ctype (Depends-on, Makefile.am): Likewise.
32030         * modules/dirent (Depends-on, Makefile.am): Likewise.
32031         * modules/fcntl-h (Depends-on, Makefile.am): Likewise.
32032         * modules/inttypes (Depends-on, Makefile.am): Likewise.
32033         * modules/langinfo (Depends-on, Makefile.am): Likewise.
32034         * modules/locale (Depends-on, Makefile.am): Likewise.
32035         * modules/math (Depends-on, Makefile.am): Likewise.
32036         * modules/search (Depends-on, Makefile.am): Likewise.
32037         * modules/signal (Depends-on, Makefile.am): Likewise.
32038         * modules/spawn (Depends-on, Makefile.am): Likewise.
32039         * modules/stdlib (Depends-on, Makefile.am): Likewise.
32040         * modules/string (Depends-on, Makefile.am): Likewise.
32041         * modules/strings (Depends-on, Makefile.am): Likewise.
32042         * modules/sys_file (Depends-on, Makefile.am): Likewise.
32043         * modules/sys_ioctl (Depends-on, Makefile.am): Likewise.
32044         * modules/sys_select (Depends-on, Makefile.am): Likewise.
32045         * modules/sys_socket (Depends-on, Makefile.am): Likewise.
32046         * modules/sys_stat (Depends-on, Makefile.am): Likewise.
32047         * modules/sys_times (Depends-on, Makefile.am): Likewise.
32048         * modules/sys_utsname (Depends-on, Makefile.am): Likewise.
32049         * modules/wchar (Depends-on, Makefile.am): Likewise.
32050         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Check which functions
32051         should be poisoned.
32052         * m4/ctype.m4 (gl_CTYPE_H): Likewise.
32053         * m4/dirent_h.m4 (gl_DIRENT_H): Likewise.
32054         * m4/fcntl_h.m4 (gl_FCNTL_H): Likewise.
32055         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
32056         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
32057         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
32058         * m4/math_h.m4 (gl_MATH_H): Likewise.
32059         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
32060         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
32061         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
32062         * m4/stdio_h.m4 (gl_STDIO_H): Likewise.
32063         * m4/stdlib_h.m4 (gl_STDLIB_H): Likewise.
32064         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Likewise.
32065         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_BODY): Likewise.
32066         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H_DEFAULTS): Likewise.
32067         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Likewise.
32068         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
32069         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
32070         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
32071         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
32072         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
32073         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
32074         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
32075         * lib/arpa_inet.in.h: Use _GL_WARN_ON_USE instead of
32076         GL_LINK_WARNING.
32077         * lib/ctype.in.h: Likewise.
32078         * lib/dirent.in.h: Likewise.
32079         * lib/fcntl.in.h: Likewise.
32080         * lib/inttypes.in.h: Likewise.
32081         * lib/langinfo.in.h: Likewise.
32082         * lib/locale.in.h: Likewise.
32083         * lib/math.in.h: Likewise.
32084         * lib/search.in.h: Likewise.
32085         * lib/signal.in.h: Likewise.
32086         * lib/spawn.in.h: Likewise.
32087         * lib/stdio.in.h: Likewise.
32088         * lib/stdlib.in.h: Likewise.
32089         * lib/string.in.h: Likewise.
32090         * lib/strings.in.h: Likewise.
32091         * lib/sys_file.in.h: Likewise.
32092         * lib/sys_ioctl.in.h: Likewise.
32093         * lib/sys_select.in.h: Likewise.
32094         * lib/sys_socket.in.h: Likewise.
32095         * lib/sys_stat.in.h: Likewise.
32096         * lib/sys_times.in.h: Likewise.
32097         * lib/sys_utsname.in.h: Likewise.
32098         * lib/unistd.in.h: Likewise.
32099         * lib/wchar.in.h: Likewise.
32100
32101 2010-01-20  Bruno Haible  <bruno@clisp.org>
32102
32103         Avoid duplicate -lm.
32104         * m4/isnan.m4 (gl_ISNAN): Avoid duplicate -lm in $ISNAN_LIBM.
32105         * m4/round.m4 (gl_FUNC_ROUND): Avoid duplicate -lm in $ROUND_LIBM.
32106         * m4/roundf.m4 (gl_FUNC_ROUNDF): Avoid duplicate -lm in $ROUNDF_LIBM.
32107         * m4/roundl.m4 (gl_FUNC_ROUNDL): Avoid duplicate -lm in $ROUNDL_LIBM.
32108         * m4/acosl.m4 (gl_FUNC_ACOSL): Avoid duplicate -lm in $ACOSL_LIBM.
32109         * m4/cosl.m4 (gl_FUNC_COSL): Avoid duplicate -lm in $COSL_LIBM.
32110         * m4/logl.m4 (gl_FUNC_LOGL): Avoid duplicate -lm in $LOGL_LIBM.
32111         * m4/sinl.m4 (gl_FUNC_SINL): Avoid duplicate -lm in $SINL_LIBM.
32112         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Avoid duplicate -lm in $SQRTL_LIBM.
32113         * m4/tanl.m4 (gl_FUNC_TANL): Avoid duplicate -lm in $TANL_LIBM.
32114         * m4/asinl.m4 (gl_FUNC_ASINL): Same change, for consistency.
32115         * m4/atanl.m4 (gl_FUNC_ATANL): Likewise.
32116         Reported by Paolo Bonzini.
32117
32118 2010-01-19  Bruno Haible  <bruno@clisp.org>
32119
32120         langinfo, nl_langinfo: Relicense under LGPLv2+.
32121         * modules/langinfo (License): Change to LGPLv2+.
32122         * modules/nl_langinfo (License): Likewise.
32123         Patch by David Lutterkort <lutter@redhat.com>.
32124
32125 2010-01-19  Bruno Haible  <bruno@clisp.org>
32126
32127         Avoid compilation error with cc on OSF/1 5.1.
32128         * lib/fcntl.in.h: Include <unistd.h> after the #include_next <fcntl.h>
32129         statement, not before.
32130         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
32131
32132 2010-01-18  Bruno Haible  <bruno@clisp.org>
32133
32134         Avoid a link error due to the __printf__ symbol.
32135         * lib/stdio.in.h (__attribute__): Define to empty also for gcc 2.5.x
32136         and 2.6.x.
32137         (__format__, __printf__): Remove definitions.
32138         * lib/argp-fmtstream.h: Likewise.
32139         * lib/argp.h: Likewise.
32140         * lib/error.h: Likewise.
32141         * lib/vasnprintf.h: Likewise.
32142         * lib/xprintf.h: Likewise.
32143         * lib/xvasprintf.h: Likewise.
32144         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
32145
32146 2010-01-18  Bruno Haible  <bruno@clisp.org>
32147
32148         Tests for module 'tanl'.
32149         * modules/tanl-tests: New file.
32150         * tests/test-tanl.c: New file.
32151
32152         Tests for module 'sqrtl'.
32153         * modules/sqrtl-tests: New file.
32154         * tests/test-sqrtl.c: New file.
32155
32156         Tests for module 'sinl'.
32157         * modules/sinl-tests: New file.
32158         * tests/test-sinl.c: New file.
32159
32160         Tests for module 'logl'.
32161         * modules/logl-tests: New file.
32162         * tests/test-logl.c: New file.
32163
32164         Tests for module 'expl'.
32165         * modules/expl-tests: New file.
32166         * tests/test-expl.c: New file.
32167
32168         Tests for module 'cosl'.
32169         * modules/cosl-tests: New file.
32170         * tests/test-cosl.c: New file.
32171
32172         Tests for module 'atanl'.
32173         * modules/atanl-tests: New file.
32174         * tests/test-atanl.c: New file.
32175
32176         Tests for module 'asinl'.
32177         * modules/asinl-tests: New file.
32178         * tests/test-asinl.c: New file.
32179
32180         Tests for module 'acosl'.
32181         * modules/acosl-tests: New file.
32182         * tests/test-acosl.c: New file.
32183
32184         New modules acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl.
32185         * lib/math.in.h (acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl,
32186         tanl): Use the standard gnulib idiom.
32187         * lib/cosl.c: Don't include trigl.c and sincosl.c.
32188         * lib/sinl.c: Likewise.
32189         * lib/tanl.c: Don't include trigl.c.
32190         (kernel_tanl): Make static.
32191         * lib/sincosl.c: Include trigl.h first.
32192         * lib/trigl.c: Likewise.
32193         * m4/acosl.m4: New file.
32194         * m4/asinl.m4: New file.
32195         * m4/atanl.m4: New file.
32196         * m4/cosl.m4: New file.
32197         * m4/expl.m4: New file.
32198         * m4/logl.m4: New file.
32199         * m4/sinl.m4: New file.
32200         * m4/sqrtl.m4: New file.
32201         * m4/tanl.m4: New file.
32202         * m4/mathl.m4: Remove file.
32203         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_* and HAVE_*
32204         variables for acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl.
32205         Don't initialize GNULIB_MATHL.
32206         * modules/acosl: New file.
32207         * modules/asinl: New file.
32208         * modules/atanl: New file.
32209         * modules/cosl: New file.
32210         * modules/expl: New file.
32211         * modules/logl: New file.
32212         * modules/sinl: New file.
32213         * modules/sqrtl: New file.
32214         * modules/tanl: New file.
32215         * modules/math (Makefile.am): Substitute GNULIB_* and HAVE_* variables
32216         for acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl. Don't
32217         substitute GNULIB_MATHL.
32218         * modules/mathl: Rewritten.
32219         * doc/posix-functions/acosl.texi: Mention the 'acosl' module.
32220         * doc/posix-functions/asinl.texi: Mention the 'asinl' module.
32221         * doc/posix-functions/atanl.texi: Mention the 'atanl' module.
32222         * doc/posix-functions/cosl.texi: Mention the 'cosl' module.
32223         * doc/posix-functions/expl.texi: Mention the 'expl' module.
32224         * doc/posix-functions/logl.texi: Mention the 'logl' module.
32225         * doc/posix-functions/sinl.texi: Mention the 'sinl' module.
32226         * doc/posix-functions/sqrtl.texi: Mention the 'sqrtl' module.
32227         * doc/posix-functions/tanl.texi: Mention the 'tanl' module.
32228
32229 2010-01-18  Bruno Haible  <bruno@clisp.org>
32230
32231         sqrt: Make gl_FUNC_SQRT requirable.
32232         * m4/sqrt.m4: New file.
32233         * modules/sqrt (Files): Add it.
32234         (configure.ac): Invoke gl_FUNC_SQRT.
32235
32236 2010-01-18  Bruno Haible  <bruno@clisp.org>
32237
32238         New modules for common <math.h> functions.
32239         * m4/mathfunc.m4: New file.
32240         * modules/acos: New file.
32241         * modules/asin: New file.
32242         * modules/atan: New file.
32243         * modules/atan2: New file.
32244         * modules/cbrt: New file.
32245         * modules/copysign: New file.
32246         * modules/cos: New file.
32247         * modules/cosh: New file.
32248         * modules/erf: New file.
32249         * modules/erfc: New file.
32250         * modules/exp: New file.
32251         * modules/fabs: New file.
32252         * modules/fmod: New file.
32253         * modules/hypot: New file.
32254         * modules/j0: New file.
32255         * modules/j1: New file.
32256         * modules/jn: New file.
32257         * modules/ldexp: New file.
32258         * modules/lgamma: New file.
32259         * modules/log: New file.
32260         * modules/log10: New file.
32261         * modules/log1p: New file.
32262         * modules/logb: New file.
32263         * modules/modf: New file.
32264         * modules/nextafter: New file.
32265         * modules/pow: New file.
32266         * modules/remainder: New file.
32267         * modules/rint: New file.
32268         * modules/sin: New file.
32269         * modules/sinh: New file.
32270         * modules/sqrt: New file.
32271         * modules/tan: New file.
32272         * modules/tanh: New file.
32273         * modules/y0: New file.
32274         * modules/y1: New file.
32275         * modules/yn: New file.
32276         * doc/posix-functions/acos.texi: Mention the 'acos' module.
32277         * doc/posix-functions/asin.texi: Mention the 'asin' module.
32278         * doc/posix-functions/atan.texi: Mention the 'atan' module.
32279         * doc/posix-functions/atan2.texi: Mention the 'atan2' module.
32280         * doc/posix-functions/cbrt.texi: Mention the 'cbrt' module.
32281         * doc/posix-functions/copysign.texi: Mention the 'copysign' module.
32282         * doc/posix-functions/cos.texi: Mention the 'cos' module.
32283         * doc/posix-functions/cosh.texi: Mention the 'cosh' module.
32284         * doc/posix-functions/erf.texi: Mention the 'erf' module.
32285         * doc/posix-functions/erfc.texi: Mention the 'erfc' module.
32286         * doc/posix-functions/exp.texi: Mention the 'exp' module.
32287         * doc/posix-functions/fabs.texi: Mention the 'fabs' module.
32288         * doc/posix-functions/fmod.texi: Mention the 'fmod' module.
32289         * doc/posix-functions/hypot.texi: Mention the 'hypot' module.
32290         * doc/posix-functions/j0.texi: Mention the 'j0' module.
32291         * doc/posix-functions/j1.texi: Mention the 'j1' module.
32292         * doc/posix-functions/jn.texi: Mention the 'jn' module.
32293         * doc/posix-functions/ldexp.texi: Mention the 'ldexp' module.
32294         * doc/posix-functions/lgamma.texi: Mention the 'lgamma' module.
32295         * doc/posix-functions/log.texi: Mention the 'log' module.
32296         * doc/posix-functions/log10.texi: Mention the 'log10' module.
32297         * doc/posix-functions/log1p.texi: Mention the 'log1p' module.
32298         * doc/posix-functions/logb.texi: Mention the 'logb' module.
32299         * doc/posix-functions/modf.texi: Mention the 'modf' module.
32300         * doc/posix-functions/nextafter.texi: Mention the 'nextafter' module.
32301         * doc/posix-functions/pow.texi: Mention the 'pow' module.
32302         * doc/posix-functions/remainder.texi: Mention the 'remainder' module.
32303         * doc/posix-functions/rint.texi: Mention the 'rint' module.
32304         * doc/posix-functions/sin.texi: Mention the 'sin' module.
32305         * doc/posix-functions/sinh.texi: Mention the 'sinh' module.
32306         * doc/posix-functions/sqrt.texi: Mention the 'sqrt' module.
32307         * doc/posix-functions/tan.texi: Mention the 'tan' module.
32308         * doc/posix-functions/tanh.texi: Mention the 'tanh' module.
32309         * doc/posix-functions/y0.texi: Mention the 'y0' module.
32310         * doc/posix-functions/y1.texi: Mention the 'y1' module.
32311         * doc/posix-functions/yn.texi: Mention the 'yn' module.
32312
32313 2010-01-18  Jim Meyering  <meyering@redhat.com>
32314
32315         ignore-value: relax license to LGPLv2+
32316         * modules/ignore-value (License): Relax to LGPLv2+.
32317
32318         getdate: don't leak when TZ contains two or more '"'s
32319         * lib/getdate.y (get_date): Don't leak a copy of TZ for each
32320         double quote in TZ after the first one.
32321
32322         readtokens: do not leak internal token_lengths buffer
32323         * lib/readtokens.c (readtokens): Free the local, lengths,
32324         when the supplied "token_lengths" parameter is NULL.
32325
32326 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
32327
32328         Fix a couple of missing LIBTHREAD link failures on AIX.
32329         * modules/git-merge-changelog (git_merge_changelog_LDADD): Add
32330         $(LIBTHREAD).
32331         * modules/strsignal-tests (test_strsignal_LDADD): Likewise.
32332
32333         Link test-poll against INET_PTON_LIB.
32334         * modules/poll-tests (test_poll_LDADD): Add $(INET_PTON_LIB),
32335         for inet_pton on Solaris 10.
32336
32337 2010-01-17  Bruno Haible  <bruno@clisp.org>
32338
32339         unistdio/*-sprintf: Fix typo in module description.
32340         * modules/unistdio/u8-sprintf (Depends-on): Fix typo.
32341         * modules/unistdio/u8-u8-sprintf (Depends-on): Likewise.
32342         * modules/unistdio/u16-sprintf (Depends-on): Likewise.
32343         * modules/unistdio/u16-u16-sprintf (Depends-on): Likewise.
32344         * modules/unistdio/u32-sprintf (Depends-on): Likewise.
32345         * modules/unistdio/u32-u32-sprintf (Depends-on): Likewise.
32346         * modules/unistdio/ulc-sprintf (Depends-on): Likewise.
32347         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
32348
32349 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
32350
32351         gnulib-tool: fix filelist for AIX, HP-UX ksh.
32352         * gnulib-tool (func_filter_filelist): Do not quote possibly-empty
32353         variables in shell case patterns, for AIX and HP-UX ksh.
32354
32355         Split large sed scripts, for HP-UX sed.
32356         * modules/stdio: Split sed scripts around 50 sed commands,
32357         to avoid HP-UX limit of 99 commands, in the near future.
32358         * modules/string: Likewise.
32359         * modules/unistd: Likewise.
32360
32361         gnulib-tool: avoid writing in the current directory.
32362         * gnulib-tool (func_emit_lib_Makefile_am)
32363         (func_emit_tests_Makefile_am): Put temporary files in $tmp,
32364         not in the current directory, so concurrent gnulib-tool
32365         instances do not interfere.
32366
32367 2010-01-16  Jim Meyering  <meyering@redhat.com>
32368
32369         doc: update users.txt
32370         * users.txt: Add grep.
32371         (diffutils, gzip): Update URLs.
32372
32373 2010-01-12  Bruno Haible  <bruno@clisp.org>
32374
32375         posix_spawn: Avoid test failure on Cygwin.
32376         * tests/test-posix_spawn3.c (DATA_FILENAME) [CYGWIN]: Use less risky
32377         characters.
32378         Reported by Simon Josefsson.
32379
32380 2010-01-12  Bruno Haible  <bruno@clisp.org>
32381
32382         * tests/test-cond.c (main): When skipping the test, show the reason.
32383
32384 2010-01-12  Simon Josefsson  <simon@josefsson.org>
32385
32386         * lib/striconv.c (str_cd_iconv): Avoid if before free.
32387
32388 2010-01-12  Simon Josefsson  <simon@josefsson.org>
32389
32390         * top/maint.mk (VC_LIST_EXCEPT): Filter list through
32391         VC_LIST_ALWAYS_EXCLUDE_REGEX.
32392
32393 2010-01-12  Eric Blake  <ebb9@byu.net>
32394
32395         build: guarantee AS_VAR_IF
32396         * m4/warnings.m4 (gl_WARN_ADD): Use autoconf name.
32397         (gl_AS_VAR_IF): Move...
32398         * m4/gnulib-common.m4 (AS_VAR_IF): ...here.
32399         Reported by Simon Josefsson.
32400
32401 2010-01-12  Simon Josefsson  <simon@josefsson.org>
32402
32403         * lib/stdio.in.h: Fix typo.
32404
32405 2010-01-12  Simon Josefsson  <simon@josefsson.org>
32406
32407         * m4/gc.m4: Check if linking to libgcrypt also needs linking to
32408         libgpg-error.
32409
32410 2010-01-12  Simon Josefsson  <simon@josefsson.org>
32411
32412         * tests/test-xalloc-die.sh: Use $EXEEXT.
32413
32414 2010-01-12  Simon Josefsson  <simon@josefsson.org>
32415             Bruno Haible  <bruno@clisp.org>
32416
32417         getlogin, getlogin_r: Avoid test failure.
32418         * tests/test-getlogin.c: Include <stdio.h>.
32419         (main): Skip the test when the function fails because stdin is not a
32420         tty.
32421         * tests/test-getlogin_r.c: Include <stdio.h>.
32422         (main): Skip the test when the function fails because stdin is not a
32423         tty.
32424
32425 2010-01-11  Eric Blake  <ebb9@byu.net>
32426
32427         tests: avoid more large file warnings
32428         * tests/test-fflush.c: Avoid warning about ftell use.
32429         * tests/test-fseek.c: Avoid warning about fseek use.
32430
32431 2010-01-10  Bruno Haible  <bruno@clisp.org>
32432
32433         nproc: Work better on Linux when /proc and /sys are not mounted.
32434         * lib/nproc.c (num_processors): Use num_processors_via_affinity_mask ()
32435         as lower bound when, on glibc/Linux systems,
32436         sysconf (_SC_NPROCESSORS_CONF) returns 1.
32437         Suggested by Pádraig Brady <P@draigbrady.com>.
32438         Reported by Dmitry V. Levin <ldv@altlinux.org>.
32439
32440         nproc: Refactor.
32441         * lib/nproc.c (num_processors_via_affinity_mask): New function,
32442         extracted from num_processors.
32443         (num_processors): Call it.
32444
32445 2010-01-11  Jim Meyering  <meyering@redhat.com>
32446
32447         utimecmp: avoid new warning from upcoming gcc-4.5.0
32448         * lib/utimecmp.c (BILLION): Define using #define rather than an
32449         anonymous enum, to placate upcoming gcc-4.5.0's -Wenum-compare.
32450
32451 2010-01-11  Eric Blake  <ebb9@byu.net>
32452
32453         math: add portability warnings for classification macros
32454         * modules/math (Depends-on): Add warn-on-use.
32455         (Makefile.am): Provide new substitutions.
32456         * m4/math_h.m4 (gl_MATH_H): Require inline.
32457         * lib/math.in.h (_GL_WARN_REAL_FLOATING_DECL)
32458         (_GL_WARN_REAL_FLOATING_IMPL): New helper macros.
32459         (isfinite, isinf, isnan, signbit) [GNULIB_POSIXCHECK]: Use them to
32460         implement warnings.
32461
32462         unistd: warn on use of environ without module
32463         * modules/unistd (Depends-on): Add warn-on-use.
32464         (Makefile.am): Provide new substitutions.
32465         * m4/unistd_h.m4 (gl_UNISTD_H): Check for inline and environ.
32466         * lib/unistd.in.h (environ): Wrap with a warning helper function.
32467
32468         stdio: warn on suspicious uses
32469         * modules/stdio (Depends-on): Add warn-on-use.
32470         (Makefile.am): Provide new substitutions.
32471         * m4/stdio_h.m4 (gl_STDIO_H): Check for inline, ftello, and
32472         fseeko.
32473         * lib/stdio.in.h (gets): Always warn on use.
32474         (fseek, ftell): Adjust when warnings are issued, and honor
32475         _GL_NO_LARGE_FILES as a way to silence the warning.
32476         * tests/test-fpurge.c [!GNULIB_FSEEK]: Use new means to squelch
32477         any warning about large file offsets.
32478         * tests/test-freadable.c [!GNULIB_FSEEK]: Likewise.
32479         * tests/test-freading.c [!GNULIB_FSEEK]: Likewise.
32480         * tests/test-fseeko.c [!GNULIB_FSEEK]: Likewise.
32481         * tests/test-ftell.c [!GNULIB_FSEEK]: Likewise.
32482         * tests/test-ftello.c [!GNULIB_FSEEK]: Likewise.
32483         * tests/test-fwritable.c [!GNULIB_FSEEK]: Likewise.
32484         * tests/test-fwriting.c [!GNULIB_FSEEK]: Likewise.
32485         * tests/test-getopt.c [!GNULIB_FTELL]: Likewise.
32486
32487         warn-on-use: new module
32488         * modules/warn-on-use: New file.
32489         * build-aux/warn-on-use.h: Likewise.
32490         * m4/warn-on-use.m4: Likewise.
32491         * MODULES.html.sh (Support for building): Mention it.
32492
32493 2010-01-10  Bruno Haible  <bruno@clisp.org>
32494
32495         Tests for module 'unistr/u32-strdup'.
32496         * modules/unistr/u32-strdup-tests: New file.
32497         * tests/unistr/test-u32-strdup.c: New file.
32498
32499         Tests for module 'unistr/u16-strdup'.
32500         * modules/unistr/u16-strdup-tests: New file.
32501         * tests/unistr/test-u16-strdup.c: New file.
32502
32503         Tests for module 'unistr/u8-strdup'.
32504         * modules/unistr/u8-strdup-tests: New file.
32505         * tests/unistr/test-u8-strdup.c: New file.
32506         * tests/unistr/test-strdup.h: New file.
32507
32508         Tests for module 'unistr/u32-strncmp'.
32509         * modules/unistr/u32-strncmp-tests: New file.
32510         * tests/unistr/test-u32-strncmp.c: New file.
32511
32512         Tests for module 'unistr/u16-strncmp'.
32513         * modules/unistr/u16-strncmp-tests: New file.
32514         * tests/unistr/test-u16-strncmp.c: New file.
32515
32516         Tests for module 'unistr/u8-strncmp'.
32517         * modules/unistr/u8-strncmp-tests: New file.
32518         * tests/unistr/test-u8-strncmp.c: New file.
32519         * tests/unistr/test-strncmp.h: New file.
32520
32521         Tests for module 'unistr/u32-strcoll'.
32522         * modules/unistr/u32-strcoll-tests: New file.
32523         * tests/unistr/test-u32-strcoll.c: New file.
32524
32525         Tests for module 'unistr/u16-strcoll'.
32526         * modules/unistr/u16-strcoll-tests: New file.
32527         * tests/unistr/test-u16-strcoll.c: New file.
32528
32529         Tests for module 'unistr/u8-strcoll'.
32530         * modules/unistr/u8-strcoll-tests: New file.
32531         * tests/unistr/test-u8-strcoll.c: New file.
32532
32533         Tests for module 'unistr/u32-strcmp'.
32534         * modules/unistr/u32-strcmp-tests: New file.
32535         * tests/unistr/test-u32-strcmp.c: New file.
32536         * tests/unistr/test-u32-strcmp.h: New file.
32537
32538         Tests for module 'unistr/u16-strcmp'.
32539         * modules/unistr/u16-strcmp-tests: New file.
32540         * tests/unistr/test-u16-strcmp.c: New file.
32541         * tests/unistr/test-u16-strcmp.h: New file.
32542
32543         Tests for module 'unistr/u8-strcmp'.
32544         * modules/unistr/u8-strcmp-tests: New file.
32545         * tests/unistr/test-u8-strcmp.c: New file.
32546         * tests/unistr/test-u8-strcmp.h: New file.
32547         * tests/unistr/test-strcmp.h: New file.
32548
32549         Tests for module 'unistr/u32-strncat'.
32550         * modules/unistr/u32-strncat-tests: New file.
32551         * tests/unistr/test-u32-strncat.c: New file.
32552
32553         Tests for module 'unistr/u16-strncat'.
32554         * modules/unistr/u16-strncat-tests: New file.
32555         * tests/unistr/test-u16-strncat.c: New file.
32556
32557         Tests for module 'unistr/u8-strncat'.
32558         * modules/unistr/u8-strncat-tests: New file.
32559         * tests/unistr/test-u8-strncat.c: New file.
32560         * tests/unistr/test-strncat.h: New file.
32561
32562         Tests for module 'unistr/u32-strcat'.
32563         * modules/unistr/u32-strcat-tests: New file.
32564         * tests/unistr/test-u32-strcat.c: New file.
32565
32566         Tests for module 'unistr/u16-strcat'.
32567         * modules/unistr/u16-strcat-tests: New file.
32568         * tests/unistr/test-u16-strcat.c: New file.
32569
32570         Tests for module 'unistr/u8-strcat'.
32571         * modules/unistr/u8-strcat-tests: New file.
32572         * tests/unistr/test-u8-strcat.c: New file.
32573         * tests/unistr/test-strcat.h: New file.
32574
32575         Tests for module 'unistr/u32-stpncpy'.
32576         * modules/unistr/u32-stpncpy-tests: New file.
32577         * tests/unistr/test-u32-stpncpy.c: New file.
32578
32579         Tests for module 'unistr/u16-stpncpy'.
32580         * modules/unistr/u16-stpncpy-tests: New file.
32581         * tests/unistr/test-u16-stpncpy.c: New file.
32582
32583         Tests for module 'unistr/u8-stpncpy'.
32584         * modules/unistr/u8-stpncpy-tests: New file.
32585         * tests/unistr/test-u8-stpncpy.c: New file.
32586         * tests/unistr/test-stpncpy.h: New file.
32587
32588         Tests for module 'unistr/u32-strncpy'.
32589         * modules/unistr/u32-strncpy-tests: New file.
32590         * tests/unistr/test-u32-strncpy.c: New file.
32591
32592         Tests for module 'unistr/u16-strncpy'.
32593         * modules/unistr/u16-strncpy-tests: New file.
32594         * tests/unistr/test-u16-strncpy.c: New file.
32595
32596         Tests for module 'unistr/u8-strncpy'.
32597         * modules/unistr/u8-strncpy-tests: New file.
32598         * tests/unistr/test-u8-strncpy.c: New file.
32599         * tests/unistr/test-strncpy.h: New file.
32600
32601         Tests for module 'unistr/u32-stpcpy'.
32602         * modules/unistr/u32-stpcpy-tests: New file.
32603         * tests/unistr/test-u32-stpcpy.c: New file.
32604
32605         Tests for module 'unistr/u16-stpcpy'.
32606         * modules/unistr/u16-stpcpy-tests: New file.
32607         * tests/unistr/test-u16-stpcpy.c: New file.
32608
32609         Tests for module 'unistr/u8-stpcpy'.
32610         * modules/unistr/u8-stpcpy-tests: New file.
32611         * tests/unistr/test-u8-stpcpy.c: New file.
32612         * tests/unistr/test-stpcpy.h: New file.
32613
32614         Tests for module 'unistr/u32-strcpy'.
32615         * modules/unistr/u32-strcpy-tests: New file.
32616         * tests/unistr/test-u32-strcpy.c: New file.
32617
32618         Tests for module 'unistr/u16-strcpy'.
32619         * modules/unistr/u16-strcpy-tests: New file.
32620         * tests/unistr/test-u16-strcpy.c: New file.
32621
32622         Tests for module 'unistr/u8-strcpy'.
32623         * modules/unistr/u8-strcpy-tests: New file.
32624         * tests/unistr/test-u8-strcpy.c: New file.
32625         * tests/unistr/test-strcpy.h: New file.
32626
32627         Tests for module 'unistr/u32-strnlen'.
32628         * modules/unistr/u32-strnlen-tests: New file.
32629         * tests/unistr/test-u32-strnlen.c: New file.
32630
32631         Tests for module 'unistr/u16-strnlen'.
32632         * modules/unistr/u16-strnlen-tests: New file.
32633         * tests/unistr/test-u16-strnlen.c: New file.
32634
32635         Tests for module 'unistr/u8-strnlen'.
32636         * modules/unistr/u8-strnlen-tests: New file.
32637         * tests/unistr/test-u8-strnlen.c: New file.
32638         * tests/unistr/test-strnlen.h: New file.
32639
32640         Tests for module 'unistr/u32-strlen'.
32641         * modules/unistr/u32-strlen-tests: New file.
32642         * tests/unistr/test-u32-strlen.c: New file.
32643
32644         Tests for module 'unistr/u16-strlen'.
32645         * modules/unistr/u16-strlen-tests: New file.
32646         * tests/unistr/test-u16-strlen.c: New file.
32647
32648         Tests for module 'unistr/u8-strlen'.
32649         * modules/unistr/u8-strlen-tests: New file.
32650         * tests/unistr/test-u8-strlen.c: New file.
32651
32652         Tests for module 'unistr/u32-prev'.
32653         * modules/unistr/u32-prev-tests: New file.
32654         * tests/unistr/test-u32-prev.c: New file.
32655
32656         Tests for module 'unistr/u16-prev'.
32657         * modules/unistr/u16-prev-tests: New file.
32658         * tests/unistr/test-u16-prev.c: New file.
32659
32660         Tests for module 'unistr/u8-prev'.
32661         * modules/unistr/u8-prev-tests: New file.
32662         * tests/unistr/test-u8-prev.c: New file.
32663
32664         Tests for module 'unistr/u32-next'.
32665         * modules/unistr/u32-next-tests: New file.
32666         * tests/unistr/test-u32-next.c: New file.
32667
32668         Tests for module 'unistr/u16-next'.
32669         * modules/unistr/u16-next-tests: New file.
32670         * tests/unistr/test-u16-next.c: New file.
32671
32672         Tests for module 'unistr/u8-next'.
32673         * modules/unistr/u8-next-tests: New file.
32674         * tests/unistr/test-u8-next.c: New file.
32675
32676         Tests for module 'unistr/u32-strmbtouc'.
32677         * modules/unistr/u32-strmbtouc-tests: New file.
32678         * tests/unistr/test-u32-strmbtouc.c: New file.
32679
32680         Tests for module 'unistr/u16-strmbtouc'.
32681         * modules/unistr/u16-strmbtouc-tests: New file.
32682         * tests/unistr/test-u16-strmbtouc.c: New file.
32683
32684         Tests for module 'unistr/u8-strmbtouc'.
32685         * modules/unistr/u8-strmbtouc-tests: New file.
32686         * tests/unistr/test-u8-strmbtouc.c: New file.
32687
32688         Tests for module 'unistr/u32-strmblen'.
32689         * modules/unistr/u32-strmblen-tests: New file.
32690         * tests/unistr/test-u32-strmblen.c: New file.
32691
32692         Tests for module 'unistr/u16-strmblen'.
32693         * modules/unistr/u16-strmblen-tests: New file.
32694         * tests/unistr/test-u16-strmblen.c: New file.
32695
32696         Tests for module 'unistr/u8-strmblen'.
32697         * modules/unistr/u8-strmblen-tests: New file.
32698         * tests/unistr/test-u8-strmblen.c: New file.
32699
32700         Tests for module 'unistr/u32-cpy-alloc'.
32701         * modules/unistr/u32-cpy-alloc-tests: New file.
32702         * tests/unistr/test-u32-cpy-alloc.c: New file.
32703
32704         Tests for module 'unistr/u16-cpy-alloc'.
32705         * modules/unistr/u16-cpy-alloc-tests: New file.
32706         * tests/unistr/test-u16-cpy-alloc.c: New file.
32707
32708         Tests for module 'unistr/u8-cpy-alloc'.
32709         * modules/unistr/u8-cpy-alloc-tests: New file.
32710         * tests/unistr/test-u8-cpy-alloc.c: New file.
32711         * tests/unistr/test-cpy-alloc.h: New file.
32712
32713         Tests for module 'unistr/u32-mbsnlen'.
32714         * modules/unistr/u32-mbsnlen-tests: New file.
32715         * tests/unistr/test-u32-mbsnlen.c: New file.
32716
32717         Tests for module 'unistr/u16-mbsnlen'.
32718         * modules/unistr/u16-mbsnlen-tests: New file.
32719         * tests/unistr/test-u16-mbsnlen.c: New file.
32720
32721         Tests for module 'unistr/u8-mbsnlen'.
32722         * modules/unistr/u8-mbsnlen-tests: New file.
32723         * tests/unistr/test-u8-mbsnlen.c: New file.
32724
32725         Tests for module 'unistr/u32-chr'.
32726         * modules/unistr/u32-chr-tests: New file.
32727         * tests/unistr/test-u32-chr.c: New file.
32728
32729         Tests for module 'unistr/u16-chr'.
32730         * modules/unistr/u16-chr-tests: New file.
32731         * tests/unistr/test-u16-chr.c: New file.
32732
32733         Tests for module 'unistr/u8-chr'.
32734         * modules/unistr/u8-chr-tests: New file.
32735         * tests/unistr/test-u8-chr.c: New file.
32736         * tests/unistr/test-chr.h: New file, based on tests/test-memchr.c.
32737
32738         Tests for module 'unistr/u32-cmp2'.
32739         * modules/unistr/u32-cmp2-tests: New file.
32740         * tests/unistr/test-u32-cmp2.c: New file.
32741
32742         Tests for module 'unistr/u16-cmp2'.
32743         * modules/unistr/u16-cmp2-tests: New file.
32744         * tests/unistr/test-u16-cmp2.c: New file.
32745
32746         Tests for module 'unistr/u8-cmp2'.
32747         * modules/unistr/u8-cmp2-tests: New file.
32748         * tests/unistr/test-u8-cmp2.c: New file.
32749         * tests/unistr/test-cmp2.h: New file, based on tests/unistr/test-cmp.h.
32750
32751         Tests for module 'unistr/u32-cmp'.
32752         * modules/unistr/u32-cmp-tests: New file.
32753         * tests/unistr/test-u32-cmp.c: New file.
32754
32755         Tests for module 'unistr/u16-cmp'.
32756         * modules/unistr/u16-cmp-tests: New file.
32757         * tests/unistr/test-u16-cmp.c: New file.
32758
32759         Tests for module 'unistr/u8-cmp'.
32760         * modules/unistr/u8-cmp-tests: New file.
32761         * tests/unistr/test-u8-cmp.c: New file.
32762         * tests/unistr/test-cmp.h: New file, based on tests/test-memcmp.c.
32763
32764         Tests for module 'unistr/u32-set'.
32765         * modules/unistr/u32-set-tests: New file.
32766         * tests/unistr/test-u32-set.c: New file.
32767
32768         Tests for module 'unistr/u16-set'.
32769         * modules/unistr/u16-set-tests: New file.
32770         * tests/unistr/test-u16-set.c: New file.
32771
32772         Tests for module 'unistr/u8-set'.
32773         * modules/unistr/u8-set-tests: New file.
32774         * tests/unistr/test-u8-set.c: New file.
32775         * tests/unistr/test-set.h: New file.
32776
32777         Tests for module 'unistr/u32-move'.
32778         * modules/unistr/u32-move-tests: New file.
32779         * tests/unistr/test-u32-move.c: New file.
32780
32781         Tests for module 'unistr/u16-move'.
32782         * modules/unistr/u16-move-tests: New file.
32783         * tests/unistr/test-u16-move.c: New file.
32784
32785         Tests for module 'unistr/u8-move'.
32786         * modules/unistr/u8-move-tests: New file.
32787         * tests/unistr/test-u8-move.c: New file.
32788         * tests/unistr/test-move.h: New file.
32789
32790         Tests for module 'unistr/u32-cpy'.
32791         * modules/unistr/u32-cpy-tests: New file.
32792         * tests/unistr/test-u32-cpy.c: New file.
32793
32794         Tests for module 'unistr/u16-cpy'.
32795         * modules/unistr/u16-cpy-tests: New file.
32796         * tests/unistr/test-u16-cpy.c: New file.
32797
32798         Tests for module 'unistr/u8-cpy'.
32799         * modules/unistr/u8-cpy-tests: New file.
32800         * tests/unistr/test-u8-cpy.c: New file.
32801         * tests/unistr/test-cpy.h: New file.
32802
32803 2010-01-09  Bruno Haible  <bruno@clisp.org>
32804
32805         Tests for module 'unistr/u32-uctomb'.
32806         * modules/unistr/u32-uctomb-tests: New file.
32807         * tests/unistr/test-u32-uctomb.c: New file.
32808
32809         Tests for module 'unistr/u16-uctomb'.
32810         * modules/unistr/u16-uctomb-tests: New file.
32811         * tests/unistr/test-u16-uctomb.c: New file.
32812
32813         Tests for module 'unistr/u8-uctomb'.
32814         * modules/unistr/u8-uctomb-tests: New file.
32815         * tests/unistr/test-u8-uctomb.c: New file.
32816
32817         Tests for module 'unistr/u32-mbtoucr'.
32818         * modules/unistr/u32-mbtoucr-tests: New file.
32819         * tests/unistr/test-u32-mbtoucr.c: New file.
32820
32821         Tests for module 'unistr/u16-mbtoucr'.
32822         * modules/unistr/u16-mbtoucr-tests: New file.
32823         * tests/unistr/test-u16-mbtoucr.c: New file.
32824
32825         Tests for module 'unistr/u8-mbtoucr'.
32826         * modules/unistr/u8-mbtoucr-tests: New file.
32827         * tests/unistr/test-u8-mbtoucr.c: New file.
32828
32829         Tests for module 'unistr/u32-mbtouc'.
32830         * modules/unistr/u32-mbtouc-tests: New file.
32831         * tests/unistr/test-u32-mbtouc.c: New file.
32832
32833         Tests for module 'unistr/u16-mbtouc'.
32834         * modules/unistr/u16-mbtouc-tests: New file.
32835         * tests/unistr/test-u16-mbtouc.c: New file.
32836
32837         Tests for module 'unistr/u8-mbtouc'.
32838         * modules/unistr/u8-mbtouc-tests: New file.
32839         * tests/unistr/test-u8-mbtouc.c: New file.
32840
32841         Tests for module 'unistr/u32-mbtouc-unsafe'.
32842         * modules/unistr/u32-mbtouc-unsafe-tests: New file.
32843         * tests/unistr/test-u32-mbtouc-unsafe.c: New file.
32844         * tests/unistr/test-u32-mbtouc.h: New file.
32845
32846         Tests for module 'unistr/u16-mbtouc-unsafe'.
32847         * modules/unistr/u16-mbtouc-unsafe-tests: New file.
32848         * tests/unistr/test-u16-mbtouc-unsafe.c: New file.
32849         * tests/unistr/test-u16-mbtouc.h: New file.
32850
32851         Tests for module 'unistr/u8-mbtouc-unsafe'.
32852         * modules/unistr/u8-mbtouc-unsafe-tests: New file.
32853         * tests/unistr/test-u8-mbtouc-unsafe.c: New file.
32854         * tests/unistr/test-u8-mbtouc.h: New file.
32855
32856         Tests for module 'unistr/u32-mblen'.
32857         * modules/unistr/u32-mblen-tests: New file.
32858         * tests/unistr/test-u32-mblen.c: New file.
32859
32860         Tests for module 'unistr/u16-mblen'.
32861         * modules/unistr/u16-mblen-tests: New file.
32862         * tests/unistr/test-u16-mblen.c: New file.
32863
32864         Tests for module 'unistr/u8-mblen'.
32865         * modules/unistr/u8-mblen-tests: New file.
32866         * tests/unistr/test-u8-mblen.c: New file.
32867
32868         Tests for module 'unistr/u32-to-u16'.
32869         * modules/unistr/u32-to-u16-tests: New file.
32870         * tests/unistr/test-u32-to-u16.c: New file.
32871
32872         Tests for module 'unistr/u32-to-u8'.
32873         * modules/unistr/u32-to-u8-tests: New file.
32874         * tests/unistr/test-u32-to-u8.c: New file.
32875
32876         Tests for module 'unistr/u16-to-u32'.
32877         * modules/unistr/u16-to-u32-tests: New file.
32878         * tests/unistr/test-u16-to-u32.c: New file.
32879
32880         Tests for module 'unistr/u16-to-u8'.
32881         * modules/unistr/u16-to-u8-tests: New file.
32882         * tests/unistr/test-u16-to-u8.c: New file.
32883
32884         Tests for module 'unistr/u8-to-u32'.
32885         * modules/unistr/u8-to-u32-tests: New file.
32886         * tests/unistr/test-u8-to-u32.c: New file.
32887
32888         Tests for module 'unistr/u8-to-u16'.
32889         * modules/unistr/u8-to-u16-tests: New file.
32890         * tests/unistr/test-u8-to-u16.c: New file.
32891
32892         Tests for module 'unistr/u32-check'.
32893         * modules/unistr/u32-check-tests: New file.
32894         * tests/unistr/test-u32-check.c: New file.
32895
32896         Tests for module 'unistr/u16-check'.
32897         * modules/unistr/u16-check-tests: New file.
32898         * tests/unistr/test-u16-check.c: New file.
32899
32900         Tests for module 'unistr/u8-check'.
32901         * modules/unistr/u8-check-tests: New file.
32902         * tests/unistr/test-u8-check.c: New file.
32903
32904         * tests/unictype/test-categ_byname.c: Include <stdbool.h>.
32905         (category_equals): New function.
32906         (main): Add more tests.
32907         * modules/unictype/category-byname-tests (Depends-on): Add stdbool.
32908
32909         * tests/unictype/test-bidi_byname.c (main): Add more tests.
32910
32911 2010-01-10  Bruno Haible  <bruno@clisp.org>
32912
32913         unistr/u*-strcoll: Try harder to distinguish different strings.
32914         * lib/unistr/u-strcoll.h (FUNC): When sl1 and sl2 are the same,
32915         compare s1 and s2 to see if they are different.
32916
32917 2010-01-10  Bruno Haible  <bruno@clisp.org>
32918
32919         unistr/u*-stpncpy: Fix the return value.
32920         * lib/unistr.h (u8_stpncpy, u16_stpncpy, u32_stpncpy): Make the
32921         description of the return value consistent with stpncpy in glibc.
32922         * lib/unistr/u-stpncpy.h (FUNC): Return the pointer past the last
32923         written non-NUL unit.
32924
32925 2010-01-10  Bruno Haible  <bruno@clisp.org>
32926
32927         unistr/u*-next: Add missing dependencies.
32928         * modules/unistr/u8-next (Depends-on): Add unistr/u8-strmbtouc.
32929         * modules/unistr/u16-next (Depends-on): Add unistr/u16-strmbtouc.
32930         * modules/unistr/u32-next (Depends-on): Add unistr/u32-strmbtouc.
32931
32932 2010-01-10  Bruno Haible  <bruno@clisp.org>
32933
32934         unistr/u8-mbsnlen: Fix return value for incomplete character.
32935         * lib/unistr/u8-mbsnlen.c (u8_mbsnlen): Use u8_mbtoucr instead of
32936         u8_mblen.
32937         * modules/unistr/u8-mbsnlen (Depends-on): Add unistr/u8-mbtoucr.
32938         Remove unistr/u8-mblen.
32939         * lib/unistr/u16-mbsnlen.c (u16_mbsnlen): Use u16_mbtoucr instead of
32940         u16_mblen.
32941         * modules/unistr/u16-mbsnlen (Depends-on): Add unistr/u16-mbtoucr.
32942         Remove unistr/u16-mblen.
32943
32944 2010-01-10  Bruno Haible  <bruno@clisp.org>
32945
32946         wchar: Fix compilation error when <wchar.h> is used from coreutils.
32947         * lib/wchar.in.h: Treat __need_wint_t like __need_mbstate_t.
32948         Reported by Brian Gough <bjg@gnu.org> and
32949         Chris Clayton <chris2553@googlemail.com> via
32950         Mike Frysinger <vapier@gentoo.org> and Jim Meyering <jim@meyering.net>.
32951
32952 2010-01-09  Bruno Haible  <bruno@clisp.org>
32953
32954         unistr/u16-to-u32: Reject invalid input.
32955         * lib/unistr/u16-to-u32.c (u16_to_u32): Call u16_mbtoucr instead of
32956         u16_mbtouc.
32957         * modules/unistr/u16-to-u32 (Depends-on): Add unistr/u16-mbtoucr.
32958         Remove unistr/u16-mbtouc.
32959
32960         unistr/u16-to-u8: Reject invalid input.
32961         * lib/unistr/u16-to-u8.c (u16_to_u8): Call u16_mbtoucr instead of
32962         u16_mbtouc.
32963         * modules/unistr/u16-to-u8 (Depends-on): Add unistr/u16-mbtoucr.
32964         Remove unistr/u16-mbtouc.
32965
32966         unistr/u8-to-u32: Reject invalid input.
32967         * lib/unistr/u8-to-u32.c (u8_to_u32): Call u8_mbtoucr instead of
32968         u8_mbtouc.
32969         * modules/unistr/u8-to-u32 (Depends-on): Add unistr/u8-mbtoucr.
32970         Remove unistr/u8-mbtouc.
32971
32972         unistr/u8-to-u16: Reject invalid input.
32973         * lib/unistr/u8-to-u16.c (u8_to_u16): Call u8_mbtoucr instead of
32974         u8_mbtouc.
32975         * modules/unistr/u8-to-u16 (Depends-on): Add unistr/u8-mbtoucr.
32976         Remove unistr/u8-mbtouc.
32977
32978 2010-01-09  Bruno Haible  <bruno@clisp.org>
32979
32980         Tests for module 'getlogin'.
32981         * modules/getlogin-tests: New file.
32982         * tests/test-getlogin.c: New file.
32983
32984         New module 'getlogin'.
32985         * lib/unistd.in.h (getlogin): New declaration.
32986         * lib/getlogin.c: New file.
32987         * m4/getlogin.m4: New file.
32988         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETLOGIN,
32989         HAVE_GETLOGIN.
32990         * modules/unistd (Makefile.am): Substitute GNULIB_GETLOGIN,
32991         HAVE_GETLOGIN.
32992         * modules/getlogin: New file.
32993         * doc/posix-functions/getlogin.texi: Mention the new module.
32994         Reported by John W. Eaton <jwe@gnu.org>.
32995
32996 2010-01-09  Bruno Haible  <bruno@clisp.org>
32997
32998         getlogin_r: Support for native Windows.
32999         * lib/getlogin_r.c: Include <windows.h>
33000         (getlogin_r): Implement for native Windows.
33001         * tests/test-getlogin_r.c (main): Also test with a huge buffer.
33002         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>
33003         via John W. Eaton <jwe@gnu.org>.
33004
33005 2010-01-09  Bruno Haible  <bruno@clisp.org>
33006
33007         getlogin_r: Small fixes.
33008         * lib/getlogin_r.c (getlogin_r): Don't set errno if the function
33009         succeeds.
33010         * m4/getlogin_r.m4 (gl_GETLOGIN_R): Require gl_USE_SYSTEM_EXTENSIONS
33011         before testing whether getlogin_r is declared. No need to set
33012         HAVE_DECL_GETLOGIN_R to 1.
33013         (gl_PREREQ_GETLOGIN_R): Don't check for the getlogin_r declaration.
33014
33015 2010-01-09  Bruno Haible  <bruno@clisp.org>
33016
33017         * lib/unistd.in.h (getlogin_r): Add comment.
33018
33019 2010-01-09  Bruno Haible  <bruno@clisp.org>
33020
33021         Tests for module 'getlogin_r'.
33022         * modules/getlogin_r-tests: New file.
33023         * tests/test-getlogin_r.c: New file.
33024
33025 2010-01-09  Jim Meyering  <meyering@redhat.com>
33026
33027         maint.mk: extend proper_name_utf8-vs-LIBICONV-checking rule
33028         * top/maint.mk (sc_proper_name_utf8_requires_ICONV): Adapt to work
33029         also when $(LIBICONV) is part of LDADD, rather than ${prog}_LDADD.
33030
33031 2010-01-08  Simon Josefsson  <simon@josefsson.org>
33032
33033         * lib/dup2.c (rpl_dup2): Improve comment.
33034
33035 2010-01-08  Eric Blake  <ebb9@byu.net>
33036
33037         maint.mk: allow packages to add makefile @@ exceptions
33038         * top/maint.mk (_makefile_at_at_check_exceptions): New hook.
33039         (sc_makefile_check): Rename...
33040         (sc_makefile_at_at_check): ...to this, and use hook.
33041
33042         dup2: work around mingw bug
33043         * lib/dup2.c (rpl_dup2): Sanitize return value on mingw.
33044         Reported by Simon Josefsson.
33045
33046 2010-01-07  John W. Eaton  <jwe@octave.org>  (tiny change)
33047
33048         glob: Fix C++ compilation.
33049         * lib/glob.in.h [__cplusplus]: Define __BEGIN_DECLS and __END_DECLS for
33050         C++.
33051
33052 2010-01-07  Bruno Haible  <bruno@clisp.org>
33053
33054         Fix indentation of wctype.in.h, broken since 2007-01-06.
33055         * lib/wctype.in.h: Fix indentation of preprocessor directives.
33056
33057 2010-01-07  Bruno Haible  <bruno@clisp.org>
33058
33059         mbslen: Avoid collision with system function.
33060         * lib/string.in.h [MirBSD]: Include <wchar.h>.
33061         (mbslen): Undefine first. Alias mbslen to rpl_mbslen.
33062         * m4/mbslen.m4: New file.
33063         * modules/mbslen (Files): Add it.
33064         (configure.ac): Invoke gl_MBSLEN.
33065         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize HAVE_MBSLEN.
33066         * modules/string (Makefile.am): Substitute HAVE_MBSLEN.
33067         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>
33068         via Ian Beckwith <ianb@erislabs.net>.
33069
33070 2010-01-07  Bruno Haible  <bruno@clisp.org>
33071
33072         dirent: Document the last fix.
33073         * doc/posix-headers/dirent.texi: Document the bug of missing 'ino_t'.
33074
33075 2010-01-07  Bruno Haible  <bruno@clisp.org>
33076
33077         stdio: Ensure <stdio.h> defines off_t, ssize_t, va_list.
33078         * lib/stdio.in.h: Include <sys/types.h> unconditionally.
33079         * tests/test-stdio.c: Verify that fpos_t, off_t, size_t, ssize_t,
33080         va_list are defined.
33081         * doc/posix-headers/stdio.texi: Document the bug of missing types.
33082         Reported by Eric Blake.
33083
33084 2010-01-07  Bruno Haible  <bruno@clisp.org>
33085
33086         xlist, xoset: Fix missing dependency bug, introduced on 2009-12-13.
33087         * modules/xlist (Depends-on): Add 'list',
33088         * modules/xoset (Depends-on): Add 'oset'.
33089         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
33090
33091 2010-01-07  Bruno Haible  <bruno@clisp.org>
33092
33093         * doc/posix-functions/strcasecmp.texi: Clarify the platforms.
33094         * doc/posix-functions/strncasecmp.texi: Likewise.
33095
33096 2010-01-07  Bruno Haible  <bruno@clisp.org>
33097
33098         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Simplify logic.
33099
33100 2010-01-07  John W. Eaton  <jwe@octave.org>
33101
33102         wctype: allow C++ use
33103         * lib/wctype.in.h: Add extern "C" block for C++.
33104
33105 2010-01-06  Eric Blake  <ebb9@byu.net>
33106
33107         maint.mk: detect incorrect GFDL usage
33108         * top/maint.mk (_GFDL_regexp, sc_GFDL_version): New rule.
33109
33110 2010-01-06  Jim Meyering  <meyering@redhat.com>
33111         and Eric Blake  <ebb9@byu.net>
33112
33113         maint.mk: ignore multi-line copyright in NEWS
33114         * top/maint.mk (NEWS_hash): Add immunity to multi-line copyright.
33115
33116 2010-01-06  Eric Blake  <ebb9@byu.net>
33117
33118         select: add missing dependency
33119         * modules/select-tests (Depends-on): Move sockets dependency...
33120         * modules/select (Depends-on): ...here.
33121         Reported by Ian Beckwith.
33122
33123         doc: regenerate INSTALL
33124         * doc/INSTALL: Reflect recent autoconf update.
33125         * doc/INSTALL.ISO: Likewise.
33126         * doc/INSTALL.UTF-8: Likewise.
33127
33128         pread: fix compilation on glibc
33129         * m4/pread.m4 (gl_FUNC_PREAD): Request all interfaces.
33130         Reported by Ralf Wildenhues.
33131
33132         dirent: fix test failure
33133         * lib/dirent.in.h (includes): Guarantee ino_t.
33134         Reported by Ralf Wildenhues.
33135
33136 2010-01-06  Petr Salinger  <Petr.Salinger@seznam.cz>  (tiny change)
33137
33138         linkat, renameat: avoid bad free
33139         * lib/at-func2.c (at_func2): Fix typo.
33140         Reported via Ian Beckwith, from http://bugs.debian.org/561117.
33141
33142 2010-01-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
33143
33144         cleanup after gl_FUNC_READLINK, for gl_FUNC_SYMLINK test
33145         * m4/readlink.m4 (gl_FUNC_READLINK): Remove conftest.lnk2,
33146         to avoid failure of symlink test later.
33147
33148 2010-01-06  Eric Blake  <ebb9@byu.net>
33149
33150         stdio, unistd: guarantee ssize_t
33151         * lib/unistd.in.h (includes): Ensure that types required by POSIX
33152         2008 are exposed when needed.
33153         * lib/stdio.in.h (includes): Likewise.
33154         Reported by Ralf Wildenhues.
33155
33156 2010-01-06  Paolo Bonzini  <bonzini@gnu.org>
33157
33158         nl_langinfo: do not call AC_CHECK_FUNC_ONCE inside if.
33159         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Do not call
33160         AC_CHECK_FUNC_ONCE inside if, do not adjust ac_cv_func_nl_langinfo.
33161
33162 2010-01-06  Jim Meyering  <meyering@redhat.com>
33163
33164         readtokens: this module *does* require xalloc.h
33165         It uses only functions that were omitted by the old syntax-check rule.
33166         * lib/readtokens.c: Include "xalloc.h" once again.
33167         * modules/readtokens (Depends-on): Add xalloc.
33168         This reverts part of 0e0f8f12ec241c0f1c1f21f960bb5cf908a0fa3c.
33169
33170 2010-01-05  Eric Blake  <ebb9@byu.net>
33171
33172         maint: support 'make announcement' from a VPATH build
33173         * top/maint.mk (announcement): Look for correct NEWS file.
33174
33175 2010-01-05  Aurelien Jarno  <aurelien@aurel32.net>  (tiny change)
33176
33177         utimens (fdutimens): ignore a negative FD, per contract
33178         * lib/utimens.c (fdutimens) [HAVE_FUTIMENS]: Call futimens only
33179         when we have a valid file descriptor.  Otherwise, using a brand
33180         new glibc (with just-patched futimens that now fails with EBADF)
33181         would cause this function to fail with ENOSYS.
33182         Reported by Guillaume Ayoub in http://bugs.debian.org/563726.
33183         See also http://bugzilla.redhat.com/552320.
33184
33185 2010-01-05  Eric Blake  <ebb9@byu.net>
33186
33187         strcase: document what it provides
33188         * doc/posix-functions/strcasecmp.texi (strcasecmp): Mention the
33189         gnulib module.
33190         * doc/posix-functions/strncasecmp.texi (strncasecmp): Likewise.
33191         Reported by Dilyan Palauzov <Dilyan.Palauzov@aegee.org>.
33192
33193 2010-01-05  Jim Meyering  <meyering@redhat.com>
33194
33195         maint: remove useless inclusions of "xalloc.h"
33196         * lib/getloadavg.c: Remove useless inclusion of "xalloc.h".
33197         * lib/readtokens.c: Likewise.
33198         * lib/same.c: Likewise.
33199         * modules/getloadavg (Depends-on): Remove xalloc.
33200         * modules/readtokens: Likewise.
33201         * modules/same: Likewise.
33202
33203         maint.mk: include 4 more function names in alloca.h-checking regexp
33204         * top/maint.mk (sc_prohibit_xalloc_without_use): Use more complete
33205         regexp.  Before, we would give a false-positive (saying alloca.h
33206         is included unnecessarily) when the only uses involved omitted symbols.
33207
33208         xalloc.h: use consistent formatting
33209         * lib/xalloc.h: Move declarations to start in the first column.
33210
33211 2010-01-05  Eric Blake  <ebb9@byu.net>
33212
33213         mkdir: avoid xalloc
33214         * lib/mkdir.c (includes): Drop unused header.
33215         Reported by John W. Eaton.
33216
33217 2010-01-04  Jim Meyering  <meyering@redhat.com>
33218
33219         nl_langinfo: avoid configure-time syntax error
33220         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): When we've already tested
33221         for nl_langinfo.h, AC_CHECK_FUNCS_ONCE([nl_langinfo]) expands to
33222         the empty string.  Don't let that provoke a shell syntax error.
33223
33224         regcomp, regexec, fnmatch: avoid array bounds read error
33225         * lib/regcomp.c (build_equiv_class): From glibc:
33226         Use only the low 24 bits of a findidx return value as an index
33227         into the weights array.  Patch by Ulrich Drepper:
33228         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commit;h=b7d1c5fa30
33229         * lib/regexec.c (check_node_accept_bytes): Likewise.
33230         * lib/fnmatch_loop.c (FCT): Likewise.
33231
33232         regcomp: skip collseq lookup when there are no rules
33233         * lib/regcomp.c (lookup_collation_sequence_value): From glibc:
33234         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commitdiff;h=a532a41df58
33235
33236         regcomp: recognize ill-formed { } expressions
33237         * lib/regcomp.c (parse_dup_op): From glibc:
33238         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commitdiff;h=a87cd2894cb
33239
33240         regcomp: fix typo in comment
33241         * lib/regcomp.c (duplicate_node_closure): Sync from glibc.
33242         s/satisfy/satisfies/.
33243
33244         regcomp: sync from glibc: remove dead store
33245         * lib/regcomp.c (duplicate_node_closure): Remove useless
33246         search_duplicated_node call and dead store.
33247
33248         regcomp: sync from glibc; always use nl_langinfo
33249         * lib/regcomp.c (init_dfa) [!LIBC]: Always use nl_langinfo (CODESET),
33250         now that gnulib provides it.  Recognize UTF8 as well as UTF-8.
33251         * modules/regex (Depends-on): Add nl_langinfo.
33252
33253 2010-01-04  Eric Blake  <ebb9@byu.net>
33254
33255         fdopendir: fix configure test
33256         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Check for existing file.
33257
33258 2010-01-01  Bruno Haible  <bruno@clisp.org>
33259
33260         wchar: Remove unused configure check.
33261         * m4/wchar.m4 (gl_WCHAR_H): Don't test whether <wchar.h> is standalone.
33262
33263 2010-01-01  Eric Blake  <ebb9@byu.net>
33264
33265         headers: make check of system header explicit
33266         * m4/netdb_h.m4 (gl_HEADER_NETDB): Don't exploit knowledge of
33267         gl_CHECK_NEXT_HEADER internals, but call AC_CHECK_HEADERS_ONCE
33268         ourselves.
33269         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
33270         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
33271         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Likewise.
33272         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise, for gt_INTTYPES_PRI
33273         internals.
33274         * m4/wchar.m4 (gl_WCHAR_H): Skip followup test if header is
33275         missing.
33276         Suggested by Bruno Haible.
33277
33278 2010-01-01  Jim Meyering  <meyering@redhat.com>
33279
33280         ChangeLog: tweak to eliminate unnecessary copyright line
33281         * ChangeLog: Remove a copyright line that was mistakenly updated
33282         by today's update-copyright run.  Reported by Eric Blake.
33283
33284         test-update-copyright: don't let envvar setting cause test failure
33285         * tests/test-update-copyright.sh: Set UPDATE_COPYRIGHT_MAX_LINE_LENGTH.
33286
33287 2010-01-01  Bruno Haible  <bruno@clisp.org>
33288
33289         localename: Avoid gcc warning.
33290         * lib/localename.c (gl_locale_name_thread_unsafe): Don't define this
33291         function if it is not used.
33292
33293 2010-01-01  Jim Meyering  <meyering@redhat.com>
33294
33295         update nearly all FSF copyright year lists to include 2010
33296         Use the same procedure as for 2009, outlined in
33297         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/20081
33298
33299         version-etc: set COPYRIGHT_YEAR to 2010
33300         * lib/version-etc.c (COPYRIGHT_YEAR): Manually update the enum.
33301
33302 2009-12-31  Eric Blake  <ebb9@byu.net>
33303
33304         doc: correct availability of cygwin 1.5.x getopt
33305         * doc/posix-functions/optarg.texi (optarg): Cygwin supplies getopt
33306         variables.
33307         * doc/posix-functions/opterr.texi (opterr): Likewise.
33308         * doc/posix-functions/optind.texi (optind): Likewise.
33309         * doc/posix-functions/optopt.texi (optopt): Likewise.
33310         * doc/posix-functions/tzname.texi (tzname): Likewise.
33311
33312         openat: update maintainer
33313         * modules/openat (Maintainer): Add myself.
33314
33315         utimens: avoid shadowing warning
33316         * lib/utimens.c (fdutimens, lutimens): Consolidate separate stat
33317         buffers into one, to avoid shadowing, as well as avoiding a
33318         redundant stat.
33319         Reported by Jim Meyering.
33320
33321         test-dup2: avoid compiler warning
33322         * tests/test-dup2.c (is_inheritable): Only define if used.
33323
33324 2010-01-01  Bruno Haible  <bruno@clisp.org>
33325
33326         vasnprintf: Avoid passing an 'rpl_mbstate_t *' to the system's wcrtomb.
33327         * lib/vasnprintf.c (VASNPRINTF): If GNULIB_defined_mbstate_t is
33328         defined, use wctomb instead of wcrtomb.
33329
33330 2010-01-01  Bruno Haible  <bruno@clisp.org>
33331
33332         iconv: Reject native Solaris iconv.
33333         * m4/iconv.m4 (AM_ICONV_LINK): Recognize native Solaris iconv() bug.
33334         * doc/posix-functions/iconv.texi: Document native Solaris iconv() bug.
33335
33336 2009-12-31  Bruno Haible  <bruno@clisp.org>
33337
33338         * tests/test-signal.c (main): Remove test of 'SIG'.
33339
33340 2009-12-31  Bruno Haible  <bruno@clisp.org>
33341
33342         spawn: Fix incomplete fix.
33343         * lib/spawn.in.h (posix_spawnattr_getflags, posix_spawnattr_setflags,
33344         posix_spawnattr_getpgroup, posix_spawnattr_setpgroup): Correct the link
33345         warnings for GNULIB_POSIXCHECK again.
33346         Reported by Eric Blake.
33347
33348 2009-12-31  Bruno Haible  <bruno@clisp.org>
33349
33350         Avoid namespace pollution on glibc systems.
33351         * lib/spawn.in.h: Don't include <sched.h>, <signal.h> on glibc systems.
33352         * lib/sys_times.in.h: Don't include <time.h> on glibc systems.
33353         * lib/wchar.in.h: Don't include <stddef.h>, <stdio.h>, <time.h> on
33354         glibc systems.
33355
33356 2009-12-31  Bruno Haible  <bruno@clisp.org>
33357
33358         * m4/wchar.m4 (gl_WCHAR_H): Remove gl_STDDEF_H invocation.
33359         (gl_REPLACE_WCHAR_H): Turn into a no-op.
33360         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Likewise.
33361         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H): Likewise.
33362         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H): Likewise.
33363         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H): Likewise.
33364         * m4/sys_ioctl_h.m4 (gl_REPLACE_SYS_IOCTL_H): Likewise.
33365
33366 2009-12-31  Bruno Haible  <bruno@clisp.org>
33367
33368         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Invoke
33369         gl_CHECK_NEXT_HEADERS before testing ac_cv_header_sys_select_h, not
33370         afterwards.
33371
33372 2009-12-31  Bruno Haible  <bruno@clisp.org>
33373
33374         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H_DEFAULTS): Don't set
33375         SYS_UTSNAME_H.
33376
33377 2009-12-31  Bruno Haible  <bruno@clisp.org>
33378
33379         spawn: Fix misapplied patch.
33380         * lib/spawn.in.h (posix_spawnattr_getflags, posix_spawnattr_setflags,
33381         posix_spawnattr_getpgroup, posix_spawnattr_setpgroup): Correct the link
33382         warnings for GNULIB_POSIXCHECK.
33383
33384 2009-12-31  Bruno Haible  <bruno@clisp.org>
33385
33386         times: Update after sys_times changed.
33387         * m4/times.m4: New file, extracted from modules/times. Set HAVE_TIMES.
33388         * modules/times (Files): Add it.
33389         (configure.ac): Invoke gl_FUNC_TIMES.
33390
33391 2009-12-31  Bruno Haible  <bruno@clisp.org>
33392
33393         Use AC_C_INLINE where necessary.
33394         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Require AC_C_INLINE.
33395         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
33396         * m4/fts.m4 (gl_FUNC_FTS_CORE): Likewise.
33397         * m4/mbchar.m4 (gl_MBCHAR): Likewise.
33398         * m4/mbfile.m4 (gl_MBFILE): Likewise.
33399         * m4/mbiter.m4 (gl_MBITER): Likewise.
33400         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
33401         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
33402         * m4/wait-process.m4 (gl_WAIT_PROCESS): Likewise.
33403         * modules/u64 (configure.ac): Likewise.
33404
33405 2009-12-31  Bruno Haible  <bruno@clisp.org>
33406
33407         Use AC_C_INLINE instead of module 'inline' where possible.
33408         * modules/inline (Description): Clarify purpose.
33409         * m4/count-one-bits.m4 (gl_COUNT_ONE_BITS): Require AC_C_INLINE.
33410         * modules/count-one-bits (Depends-on): Remove inline.
33411         * m4/openat.m4 (gl_PREREQ_OPENAT): Require AC_C_INLINE.
33412         * modules/openat (Depends-on): Remove inline.
33413         * modules/fdutimensat (Depends-on, configure.ac): Require AC_C_INLINE
33414         instead of depending on module 'inline'.
33415         * modules/filevercmp (Depends-on, configure.ac): Likewise.
33416         * modules/unicase/cased (Depends-on, configure.ac): Likewise.
33417         * modules/unicase/ignorable (Depends-on, configure.ac): Likewise.
33418         * modules/unictype/category-of (Depends-on, configure.ac): Likewise.
33419         * modules/unictype/category-test (Depends-on, configure.ac): Likewise.
33420         * modules/unictype/ctype-alnum (Depends-on, configure.ac): Likewise.
33421         * modules/unictype/ctype-alpha (Depends-on, configure.ac): Likewise.
33422         * modules/unictype/ctype-blank (Depends-on, configure.ac): Likewise.
33423         * modules/unictype/ctype-cntrl (Depends-on, configure.ac): Likewise.
33424         * modules/unictype/ctype-digit (Depends-on, configure.ac): Likewise.
33425         * modules/unictype/ctype-graph (Depends-on, configure.ac): Likewise.
33426         * modules/unictype/ctype-lower (Depends-on, configure.ac): Likewise.
33427         * modules/unictype/ctype-print (Depends-on, configure.ac): Likewise.
33428         * modules/unictype/ctype-punct (Depends-on, configure.ac): Likewise.
33429         * modules/unictype/ctype-space (Depends-on, configure.ac): Likewise.
33430         * modules/unictype/ctype-upper (Depends-on, configure.ac): Likewise.
33431         * modules/unictype/ctype-xdigit (Depends-on, configure.ac): Likewise.
33432         * modules/unictype/property-alphabetic (Depends-on, configure.ac):
33433         Likewise.
33434         * modules/unictype/property-ascii-hex-digit (Depends-on,
33435         configure.ac): Likewise.
33436         * modules/unictype/property-bidi-arabic-digit (Depends-on,
33437         configure.ac): Likewise.
33438         * modules/unictype/property-bidi-arabic-right-to-left (Depends-on,
33439         configure.ac): Likewise.
33440         * modules/unictype/property-bidi-block-separator (Depends-on,
33441         configure.ac): Likewise.
33442         * modules/unictype/property-bidi-boundary-neutral (Depends-on,
33443         configure.ac): Likewise.
33444         * modules/unictype/property-bidi-common-separator (Depends-on,
33445         configure.ac): Likewise.
33446         * modules/unictype/property-bidi-control (Depends-on, configure.ac):
33447         Likewise.
33448         * modules/unictype/property-bidi-embedding-or-override (Depends-on,
33449         configure.ac): Likewise.
33450         * modules/unictype/property-bidi-eur-num-separator (Depends-on,
33451         configure.ac): Likewise.
33452         * modules/unictype/property-bidi-eur-num-terminator (Depends-on,
33453         configure.ac): Likewise.
33454         * modules/unictype/property-bidi-european-digit (Depends-on,
33455         configure.ac): Likewise.
33456         * modules/unictype/property-bidi-hebrew-right-to-left (Depends-on,
33457         configure.ac): Likewise.
33458         * modules/unictype/property-bidi-left-to-right (Depends-on,
33459         configure.ac): Likewise.
33460         * modules/unictype/property-bidi-non-spacing-mark (Depends-on,
33461         configure.ac): Likewise.
33462         * modules/unictype/property-bidi-other-neutral (Depends-on,
33463         configure.ac): Likewise.
33464         * modules/unictype/property-bidi-pdf (Depends-on, configure.ac):
33465         Likewise.
33466         * modules/unictype/property-bidi-segment-separator (Depends-on,
33467         configure.ac): Likewise.
33468         * modules/unictype/property-bidi-whitespace (Depends-on,
33469         configure.ac): Likewise.
33470         * modules/unictype/property-combining (Depends-on, configure.ac):
33471         Likewise.
33472         * modules/unictype/property-composite (Depends-on, configure.ac):
33473         Likewise.
33474         * modules/unictype/property-currency-symbol (Depends-on,
33475         configure.ac): Likewise.
33476         * modules/unictype/property-dash (Depends-on, configure.ac): Likewise.
33477         * modules/unictype/property-decimal-digit (Depends-on, configure.ac):
33478         Likewise.
33479         * modules/unictype/property-default-ignorable-code-point (Depends-on,
33480         configure.ac): Likewise.
33481         * modules/unictype/property-deprecated (Depends-on, configure.ac):
33482         Likewise.
33483         * modules/unictype/property-diacritic (Depends-on, configure.ac):
33484         Likewise.
33485         * modules/unictype/property-extender (Depends-on, configure.ac):
33486         Likewise.
33487         * modules/unictype/property-format-control (Depends-on, configure.ac):
33488         Likewise.
33489         * modules/unictype/property-grapheme-base (Depends-on, configure.ac):
33490         Likewise.
33491         * modules/unictype/property-grapheme-extend (Depends-on, configure.ac):
33492         Likewise.
33493         * modules/unictype/property-grapheme-link (Depends-on, configure.ac):
33494         Likewise.
33495         * modules/unictype/property-hex-digit (Depends-on, configure.ac):
33496         Likewise.
33497         * modules/unictype/property-hyphen (Depends-on, configure.ac):
33498         Likewise.
33499         * modules/unictype/property-id-continue (Depends-on, configure.ac):
33500         Likewise.
33501         * modules/unictype/property-id-start (Depends-on, configure.ac):
33502         Likewise.
33503         * modules/unictype/property-ideographic (Depends-on, configure.ac):
33504         Likewise.
33505         * modules/unictype/property-ids-binary-operator (Depends-on,
33506         configure.ac): Likewise.
33507         * modules/unictype/property-ids-trinary-operator (Depends-on,
33508         configure.ac): Likewise.
33509         * modules/unictype/property-ignorable-control (Depends-on,
33510         configure.ac): Likewise.
33511         * modules/unictype/property-iso-control (Depends-on, configure.ac):
33512         Likewise.
33513         * modules/unictype/property-join-control (Depends-on, configure.ac):
33514         Likewise.
33515         * modules/unictype/property-left-of-pair (Depends-on, configure.ac):
33516         Likewise.
33517         * modules/unictype/property-line-separator (Depends-on, configure.ac):
33518         Likewise.
33519         * modules/unictype/property-logical-order-exception (Depends-on,
33520         configure.ac): Likewise.
33521         * modules/unictype/property-lowercase (Depends-on, configure.ac):
33522         Likewise.
33523         * modules/unictype/property-math (Depends-on, configure.ac): Likewise.
33524         * modules/unictype/property-non-break (Depends-on, configure.ac):
33525         Likewise.
33526         * modules/unictype/property-not-a-character (Depends-on, configure.ac):
33527         Likewise.
33528         * modules/unictype/property-numeric (Depends-on, configure.ac):
33529         Likewise.
33530         * modules/unictype/property-other-alphabetic (Depends-on,
33531         configure.ac): Likewise.
33532         * modules/unictype/property-other-default-ignorable-code-point
33533         (Depends-on, configure.ac): Likewise.
33534         * modules/unictype/property-other-grapheme-extend (Depends-on,
33535         configure.ac): Likewise.
33536         * modules/unictype/property-other-id-continue (Depends-on,
33537         configure.ac): Likewise.
33538         * modules/unictype/property-other-id-start (Depends-on, configure.ac):
33539         Likewise.
33540         * modules/unictype/property-other-lowercase (Depends-on, configure.ac):
33541         Likewise.
33542         * modules/unictype/property-other-math (Depends-on, configure.ac):
33543         Likewise.
33544         * modules/unictype/property-other-uppercase (Depends-on, configure.ac):
33545         Likewise.
33546         * modules/unictype/property-paired-punctuation (Depends-on,
33547         configure.ac): Likewise.
33548         * modules/unictype/property-paragraph-separator (Depends-on,
33549         configure.ac): Likewise.
33550         * modules/unictype/property-pattern-syntax (Depends-on, configure.ac):
33551         Likewise.
33552         * modules/unictype/property-pattern-white-space (Depends-on,
33553         configure.ac): Likewise.
33554         * modules/unictype/property-private-use (Depends-on, configure.ac):
33555         Likewise.
33556         * modules/unictype/property-punctuation (Depends-on, configure.ac):
33557         Likewise.
33558         * modules/unictype/property-quotation-mark (Depends-on, configure.ac):
33559         Likewise.
33560         * modules/unictype/property-radical (Depends-on, configure.ac):
33561         Likewise.
33562         * modules/unictype/property-sentence-terminal (Depends-on,
33563         configure.ac): Likewise.
33564         * modules/unictype/property-soft-dotted (Depends-on, configure.ac):
33565         Likewise.
33566         * modules/unictype/property-space (Depends-on, configure.ac): Likewise.
33567         * modules/unictype/property-terminal-punctuation (Depends-on,
33568         configure.ac): Likewise.
33569         * modules/unictype/property-titlecase (Depends-on, configure.ac):
33570         Likewise.
33571         * modules/unictype/property-unassigned-code-value (Depends-on,
33572         configure.ac): Likewise.
33573         * modules/unictype/property-unified-ideograph (Depends-on,
33574         configure.ac): Likewise.
33575         * modules/unictype/property-uppercase (Depends-on, configure.ac):
33576         Likewise.
33577         * modules/unictype/property-variation-selector (Depends-on,
33578         configure.ac): Likewise.
33579         * modules/unictype/property-white-space (Depends-on, configure.ac):
33580         Likewise.
33581         * modules/unictype/property-xid-continue (Depends-on, configure.ac):
33582         Likewise.
33583         * modules/unictype/property-xid-start (Depends-on, configure.ac):
33584         Likewise.
33585         * modules/unictype/property-zero-width (Depends-on, configure.ac):
33586         Likewise.
33587         * modules/unictype/syntax-c-ident (Depends-on, configure.ac): Likewise.
33588         * modules/unictype/syntax-java-ident (Depends-on, configure.ac):
33589         Likewise.
33590
33591 2009-12-31  Bruno Haible  <bruno@clisp.org>
33592
33593         Remove unnecessary AC_C_INLINE invocation.
33594         * m4/popen.m4 (gl_PREREQ_POPEN): Don't invoke AC_C_INLINE. Not needed
33595         since 2009-08-21.
33596
33597 2009-12-31  Jim Meyering  <meyering@redhat.com>
33598
33599         maint.mk: don't require explicit gpg_key_ID in cfg.mk
33600         * top/maint.mk (gpg_key_ID): Derive key ID from signed release tag.
33601         With this change, we can all remove the gpg_key_ID = ... definition
33602         from our respective cfg.mk files.
33603
33604         maint.mk: create announcement template in ~/, not in /tmp
33605         * top/maint.mk (emit_upload_commands): Adjust.
33606         (release-prep): Emit into ~/announce-..., not /tmp/announce-...
33607         Remove temporary file, .ci-msg.
33608
33609 2009-12-31  Eric Blake  <ebb9@byu.net>
33610
33611         link-warning: always build headers with link warnings
33612         * modules/arpa_inet (Makefile.am): Always build replacement
33613         header.
33614         * modules/ctype (Makefile.am): Likewise.
33615         * modules/dirent (Makefile.am): Likewise.
33616         * modules/inttypes (Makefile.am): Likewise.
33617         * modules/langinfo (Makefile.am): Likewise.
33618         * modules/locale (Makefile.am): Likewise.
33619         * modules/spawn (Makefile.am): Likewise.
33620         * modules/sys_file (Makefile.am): Likewise.
33621         * modules/sys_ioctl (Makefile.am): Likewise.
33622         * modules/sys_select (Makefile.am): Likewise.
33623         * modules/sys_socket (Makefile.am): Likewise.
33624         * modules/sys_times (Makefile.am): Likewise.
33625         * modules/sys_utsname (Makefile.am): Likewise.
33626         * modules/sys_wait (Makefile.am): Likewise.
33627         * modules/wchar (Makefile.am): Likewise.
33628         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET)
33629         (gl_ARPA_INET_H_DEFAULTS): Drop unneeded variable.
33630         * m4/ctype.m4 (gl_CTYPE_H_DEFAULTS): Likewise.
33631         * m4/isblank.m4 (gl_FUNC_ISBLANK): Likewise.
33632         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H, gl_DIRENT_H_DEFAULTS):
33633         Likewise.
33634         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
33635         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
33636         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H, gl_LOCALE_H_DEFAULTS):
33637         Likewise.
33638         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H, gl_SPAWN_H_DEFAULTS):
33639         Likewise.
33640         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Likewise.
33641         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H, gl_REPLACE_SYS_IOCTL_H)
33642         (gl_SYS_IOCTL_H_DEFAULTS): Likewise.
33643         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
33644         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
33645         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H)
33646         (gl_SYS_UTSNAME_H_DEFAULTS): Likewise.
33647         * m4/wchar.m4 (gl_WCHAR_H, gl_REPLACE_WCHAR_H)
33648         (gl_WCHAR_H_DEFAULTS): Likewise.
33649
33650 2009-12-31  Eric Blake  <ebb9@byu.net>
33651
33652         signal, spawn: use link warnings
33653         * lib/signal.in.h (sigset_t): Make unconditional.
33654         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset)
33655         (sigpending, sigprocmask, sigaction): Add link warnings.
33656         * lib/spawn.in.h (posix_spawn, posix_spawnp, posix_spawnattr_init)
33657         (posix_spawnattr_destroy, posix_spawnattr_getsigdefault)
33658         (posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask)
33659         (posix_spawnattr_setsigmask, posix_spawnattr_getflags)
33660         (posix_spawnattr_setflags, posix_spawnattr_getpgroup)
33661         (posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy)
33662         (posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam)
33663         (posix_spawnattr_setschedparam, posix_spawn_file_actions_init)
33664         (posix_spawn_file_actions_destroy)
33665         (posix_spawn_file_actions_addopen)
33666         (posix_spawn_file_actions_addclose)
33667         (posix_spawn_file_actions_adddup2): Likewise.
33668         * m4/signal_h.m4 (gl_SIGNAL_H): Guarantee uid_t.
33669         * tests/test-signal.c (main): Enhance test.
33670
33671         spawn: improve wrapper support
33672         * m4/spawn_h.m4 (gl_SPAWN_H): Check for type existence.
33673         (gl_SPAWN_H_DEFAULTS): New defaults.
33674         * modules/spawn (Makefile.am): Substitute them.
33675         * lib/spawn.in.h: (posix_spawnattr_t, posix_spawn_file_actions_t):
33676         Only declare if missing or broken.
33677
33678         sys_times, sys_utsname: use include_next
33679         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Support wrapping an existing
33680         header.
33681         (gl_SYS_TIMES_H_DEFAULTS): Add another variable.
33682         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H)
33683         (gl_SYS_UTSNAME_H_DEFAULTS): Likewise.
33684         * modules/sys_times (Depends-on): Add include_next.
33685         (Makefile.am): Substitute additional values.
33686         * modules/sys_utsname (Depends-on, Makefile.am): Likewise.
33687         * lib/sys_times.in.h (includes): Include native header, if
33688         available.
33689         * lib/sys_utsname.in.h (includes): Likewise.
33690         * tests/test-sys_times.c (main): Enhance test.
33691
33692         fdutimensat: revert prior patch
33693         * modules/fdutimensat (Depends-on): Re-add inline; it is needed by
33694         utimens.h.
33695         Reported by Bruno Haible.
33696
33697 2009-12-30  Eric Blake  <ebb9@byu.net>
33698
33699         sys_wait: drop link-warning dependency
33700         * modules/sys_wait (Depends-on, Makefile.am): Drop unneeded
33701         link-warning efforts.
33702         * lib/sys_wait.in.h: Likewise.
33703
33704         fdutimensat: remove bogus dependency
33705         * modules/fdutimensat (Depends-on): Drop inline.
33706
33707         unistd: fix typo
33708         * lib/unistd.in.h (linkat) [GNULIB_POSIXCHECK]: Fix typo.
33709
33710 2009-12-30  Bruno Haible  <bruno@clisp.org>
33711
33712         Fix compilation error with Solaris cc.
33713         * lib/unicase/u8-is-invariant.c: Include <stdbool.h>.
33714         * lib/unicase/u16-is-invariant.c: Likewise.
33715         * lib/unicase/u32-is-invariant.c: Likewise.
33716         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
33717
33718 2009-12-30  Bruno Haible  <bruno@clisp.org>
33719
33720         Fix test crash.
33721         * tests/test-localename.c (test_locale_name_thread): Skip unavailable
33722         locales.
33723         Reported by Simon Josefsson <simon@josefsson.org>.
33724
33725 2009-12-30  Bruno Haible  <bruno@clisp.org>
33726
33727         Fix compilation error on most platforms.
33728         * tests/test-localename.c (categories): Define only if HAVE_NEWLOCALE.
33729         Reported by Simon Josefsson <simon@josefsson.org>
33730         and Nelson H. F. Beebe <beebe@math.utah.edu>.
33731
33732 2009-12-30  Eric Blake  <ebb9@byu.net>
33733
33734         futimens, utimensat: work around ntfs-3g bug
33735         * lib/utimensat.c (rpl_utimensat): Drop attempts to cache whether
33736         a ctime bug is present, and expand workaround to cover ntfs-3g.
33737         * lib/utimens.c (fdutimens, lutimens): Likewise.
33738         (utimensat_ctime_really, detect_ctime_bug): Drop cache mechanism.
33739         (validate_timespec): Adjust return value.
33740         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Update comment.
33741         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
33742         Reported by ctrn3e8 <ctrn3e8@gmail.com>.
33743
33744 2009-12-29  Eric Blake  <ebb9@byu.net>
33745
33746         link-warning: make usage consistent
33747         * modules/ctype (Depends-on): Add link-warning.
33748         (Makefile.am): Update rules accordingly.
33749         * modules/langinfo (Depends-on, Makefile.am): Likewise.
33750         * modules/locale (Depends-on, Makefile.am): Likewise.
33751         * modules/sys_file (Makefile.am): Likewise.
33752         * modules/getopt-posix (Makefile.am): Delete unused link warning
33753         efforts.
33754         * lib/ctype.in.h (GL_LINK_WARNING): Ensure definition before use.
33755         * lib/langinfo.in.h (GL_LINK_WARNING): Likewise.
33756         * lib/locale.in.h (GL_LINK_WARNING): Likewise.
33757         * lib/sys_file.in.h (GL_LINK_WARNING): Likewise.
33758
33759         stdio: remove unused variables
33760         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Remove unused variables.
33761         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Likewise.
33762         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
33763
33764         tests: test more substitute headers
33765         * modules/ctype-tests: New file.
33766         * modules/dirent-tests: Likewise.
33767         * modules/spawn-tests: Likewise.
33768         * modules/sys_file-tests: Likewise.
33769         * modules/sys_ioctl-tests: Likewise.
33770         * modules/sys_wait-tests: Likewise.
33771         * tests/test-ctype.c: Likewise.
33772         * tests/test-dirent.c: Likewise.
33773         * tests/test-spawn.c: Likewise.
33774         * tests/test-sys_file.c: Likewise.
33775         * tests/test-sys_ioctl.c: Likewise.
33776         * tests/test-sys_wait.c: Likewise.
33777         * m4/spawn_h.m4 (gl_SPAWN_H): Replace header if it is missing.
33778         * lib/sys_file.in.h (LOCK_SH, LOCK_EX, LOCK_UN, LOCK_NB): Provide
33779         whether or not flock is in use.
33780
33781         tests: remove License section from module
33782         * modules/arpa_inet-tests: Remove unneeded section.
33783         * modules/byteswap-tests: Likewise.
33784         * modules/ceilf-tests: Likewise.
33785         * modules/ceill-tests: Likewise.
33786         * modules/crypto/des-tests: Likewise.
33787         * modules/crypto/gc-arcfour-tests: Likewise.
33788         * modules/crypto/gc-arctwo-tests: Likewise.
33789         * modules/crypto/gc-des-tests: Likewise.
33790         * modules/crypto/gc-hmac-md5-tests: Likewise.
33791         * modules/crypto/gc-hmac-sha1-tests: Likewise.
33792         * modules/crypto/gc-md2-tests: Likewise.
33793         * modules/crypto/gc-md4-tests: Likewise.
33794         * modules/crypto/gc-md5-tests: Likewise.
33795         * modules/crypto/gc-pbkdf2-sha1-tests: Likewise.
33796         * modules/crypto/gc-rijndael-tests: Likewise.
33797         * modules/crypto/gc-sha1-tests: Likewise.
33798         * modules/crypto/gc-tests: Likewise.
33799         * modules/crypto/md2-tests: Likewise.
33800         * modules/crypto/md4-tests: Likewise.
33801         * modules/fcntl-h-tests: Likewise.
33802         * modules/floorf-tests: Likewise.
33803         * modules/floorl-tests: Likewise.
33804         * modules/frexp-nolibm-tests: Likewise.
33805         * modules/frexp-tests: Likewise.
33806         * modules/frexpl-nolibm-tests: Likewise.
33807         * modules/frexpl-tests: Likewise.
33808         * modules/getaddrinfo-tests: Likewise.
33809         * modules/inttypes-tests: Likewise.
33810         * modules/isfinite-tests: Likewise.
33811         * modules/isinf-tests: Likewise.
33812         * modules/ldexpl-tests: Likewise.
33813         * modules/locale-tests: Likewise.
33814         * modules/math-tests: Likewise.
33815         * modules/netdb-tests: Likewise.
33816         * modules/netinet_in-tests: Likewise.
33817         * modules/printf-frexp-tests: Likewise.
33818         * modules/printf-frexpl-tests: Likewise.
33819         * modules/priv-set-tests: Likewise.
33820         * modules/random_r-tests: Likewise.
33821         * modules/round-tests: Likewise.
33822         * modules/roundf-tests: Likewise.
33823         * modules/roundl-tests: Likewise.
33824         * modules/search-tests: Likewise.
33825         * modules/select-tests: Likewise.
33826         * modules/signal-tests: Likewise.
33827         * modules/stdbool-tests: Likewise.
33828         * modules/stddef-tests: Likewise.
33829         * modules/stdint-tests: Likewise.
33830         * modules/stdio-tests: Likewise.
33831         * modules/stdlib-tests: Likewise.
33832         * modules/string-tests: Likewise.
33833         * modules/strings-tests: Likewise.
33834         * modules/sys_select-tests: Likewise.
33835         * modules/sys_socket-tests: Likewise.
33836         * modules/sys_stat-tests: Likewise.
33837         * modules/sys_time-tests: Likewise.
33838         * modules/sys_utsname-tests: Likewise.
33839         * modules/sysexits-tests: Likewise.
33840         * modules/time-tests: Likewise.
33841         * modules/trunc-tests: Likewise.
33842         * modules/truncf-tests: Likewise.
33843         * modules/truncl-tests: Likewise.
33844         * modules/tsearch-tests: Likewise.
33845         * modules/unistd-tests: Likewise.
33846         * modules/wchar-tests: Likewise.
33847         * modules/wctype-tests: Likewise.
33848
33849         tests: fix license on several tests
33850         * tests/test-des.c: Update to GPLv3+.
33851         * tests/test-flock.c: Likewise.
33852         * tests/test-fsync.c: Likewise.
33853         * tests/test-futimens.h: Likewise.
33854         * tests/test-gc-arcfour.c: Likewise.
33855         * tests/test-gc-arctwo.c: Likewise.
33856         * tests/test-gc-des.c: Likewise.
33857         * tests/test-gc-hmac-md5.c: Likewise.
33858         * tests/test-gc-hmac-sha1.c: Likewise.
33859         * tests/test-gc-md2.c: Likewise.
33860         * tests/test-gc-md4.c: Likewise.
33861         * tests/test-gc-md5.c: Likewise.
33862         * tests/test-gc-pbkdf2-sha1.c: Likewise.
33863         * tests/test-gc-rijndael.c: Likewise.
33864         * tests/test-gc-sha1.c: Likewise.
33865         * tests/test-gc.c: Likewise.
33866         * tests/test-getcwd.c: Likewise.
33867         * tests/test-link.c: Likewise.
33868         * tests/test-link.h: Likewise.
33869         * tests/test-lutimens.h: Likewise.
33870         * tests/test-md2.c: Likewise.
33871         * tests/test-md4.c: Likewise.
33872         * tests/test-mkdir.h: Likewise.
33873         * tests/test-rename.c: Likewise.
33874         * tests/test-rename.h: Likewise.
33875         * tests/test-safe-alloc.c: Likewise.
33876         * tests/test-utimens-common.h: Likewise.
33877         * tests/test-utimens.h: Likewise.
33878
33879         maint: sync license texts
33880         * config/srclist.txt: Add gpl-1.3.texi, lgpl-1.3.texi.
33881         * doc/gpl-3.0.texi: Revert copyright year update.
33882         * doc/lgpl-3.0.texi: Likewise.
33883
33884 2009-12-29  Jim Meyering  <meyering@redhat.com>
33885
33886         update nearly all FSF copyright year lists to include 2009
33887         The files named by the following are exempted:
33888             grep -v '^#' config/srclist.txt|grep -v '^$' | while read src dst; do
33889               test -f "$dst" && { echo "$dst"; continue; }
33890               test -d "$dst" || continue
33891               echo "$dst"/$(basename "$src")
33892             done > exempt
33893             git ls-files tests/unictype >> exempt
33894         In the remaining files, convert to all-interval notation if
33895         - there is already at least one year interval like 2000-2003
33896         - the file is maintained by me
33897         - the file is in lib/uni*/, where that style already prevails
33898         Otherwise, use update-copyright's default.
33899
33900 2009-12-29  Simon Josefsson  <simon@josefsson.org>
33901         and Eric Blake  <ebb9@byu.net>
33902
33903         tests: don't require debug system() to pass
33904         * tests/test-lstat.h (test_lstat_func): Move debug cleanup...
33905         * tests/test-rmdir.h (test_rmdir_func): Likewise.
33906         * tests/test-unlink.h (test_unlink_func): Likewise.
33907         * tests/test-fstatat.c (main): ...into callers.
33908         * tests/test-lstat.c (main): Likewise.
33909         * tests/test-rmdir.c (main): Likewise.
33910         * tests/test-unlink.c (main): Likewise.
33911         * tests/test-unlinkat.c (main): Likewise.
33912         * tests/test-areadlink-with-size.c (main): Don't require a
33913         debug-only system call to pass, aiding cross-testing to mingw.
33914         * tests/test-areadlink.c (main): Likewise.
33915         * tests/test-areadlinkat-with-size.c (main): Likewise.
33916         * tests/test-areadlinkat.c (main): Likewise.
33917         * tests/test-canonicalize-lgpl.c (main): Likewise.
33918         * tests/test-canonicalize.c (main): Likewise.
33919         * tests/test-chown.c (main): Likewise.
33920         * tests/test-fchownat.c (main): Likewise.
33921         * tests/test-lchown.c (main): Likewise.
33922         * tests/test-fdutimensat.c (main): Likewise.
33923         * tests/test-futimens.c (main): Likewise.
33924         * tests/test-link.c (main): Likewise.
33925         * tests/test-linkat.c (main): Likewise.
33926         * tests/test-mkdir.c (main): Likewise.
33927         * tests/test-mkdirat.c (main): Likewise.
33928         * tests/test-mkfifo.c (main): Likewise.
33929         * tests/test-mkfifoat.c (main): Likewise.
33930         * tests/test-mknod.c (main): Likewise.
33931         * tests/test-readlink.c (main): Likewise.
33932         * tests/test-remove.c (main): Likewise.
33933         * tests/test-rename.c (main): Likewise.
33934         * tests/test-renameat.c (main): Likewise.
33935         * tests/test-symlink.c (main): Likewise.
33936         * tests/test-symlinkat.c (main): Likewise.
33937         * tests/test-utimens.c (main): Likewise.
33938         * tests/test-utimensat.c (main): Likewise.
33939
33940 2009-12-29  Simon Josefsson  <simon@josefsson.org>
33941
33942         * modules/selinux-h (selinux/selinux.h, selinux/context.h): Depend
33943         on $(UNUSED_PARAMETER_H) to avoid build failure.
33944
33945 2009-12-28  Jim Meyering  <meyering@redhat.com>
33946
33947         update-copyright: you may specify a max. line length other than 72
33948         * build-aux/update-copyright: Honor $UPDATE_COPYRIGHT_MAX_LINE_LENGTH.
33949
33950         maint: use consistent FSF copyright line syntax
33951         * lib/posixtm.c: Add missing comma in FSF copyright line.
33952         * lib/posixtm.h: Likewise.
33953         * lib/getugroups.c: Add missing ", Inc.".
33954
33955         pmccabe2html: emit consistent FSF copyright; remove trailing blanks
33956         * build-aux/pmccabe2html: Insert comma before "Inc." in emitted
33957         FSF copyright line.  Remove trailing blanks.
33958
33959 2009-12-28  Eric Blake  <ebb9@byu.net>
33960
33961         test-dup2: reduce dependencies
33962         * modules/cloexec (Configure.ac): Set witness.
33963         * modules/dup2-tests (Depends-on): Drop cloexec.
33964         * tests/test-dup2.c (main): Skip portion of test if cloexec module
33965         not present.
33966         Suggested by Bruno Haible.
33967
33968 2009-12-26  Bruno Haible  <bruno@clisp.org>
33969
33970         Remove an unneeded dependency.
33971         * modules/fseterr (Depends-on): Remove dup2.
33972
33973 2009-12-26  Eric Blake  <ebb9@byu.net>
33974
33975         tests: use macros.h in more places
33976         * tests/macros.h (ASSERT): Depend on ASSERT_STREAM.
33977         (ASSERT_STREAM): Provide default of stderr.
33978         * tests/test-dirent-safer.c: Include macros.h, using alternate
33979         stream for assertions.
33980         * tests/test-dup-safer.c: Likewise.
33981         * tests/test-freopen-safer.c: Likewise.
33982         * tests/test-getopt.c: Likewise.
33983         * tests/test-openat-safer.c: Likewise.
33984         * tests/test-pipe.c: Likewise.
33985         * tests/test-popen-safer.c: Likewise.
33986         * modules/dirent-safer-tests (Files): Include macros.h.
33987         * modules/unistd-safer-tests (Files): Likewise.
33988         * modules/freopen-safer-tests (Files): Likewise.
33989         * modules/getopt-posix-tests (Files): Likewise.
33990         * modules/openat-safer-tests (Files): Likewise.
33991         * modules/pipe-tests (Files): Likewise.
33992
33993 2009-12-26  Bruno Haible  <bruno@clisp.org>
33994
33995         javacomp: Portability fix.
33996         * m4/javacomp.m4 (gt_JAVACOMP): Fix creation of conftestver.class so
33997         that it also works on Solaris.
33998
33999 2009-12-26  Bruno Haible  <bruno@clisp.org>
34000
34001         localename: Fix storage allocation of gl_locale_name_thread's result.
34002         * lib/localename.c (SIZE_BITS, string_hash, struct hash_node,
34003         HASH_TABLE_SIZE, struniq_hash_table, struniq_lock, struniq): Define on
34004         all platforms that have 'uselocale'.
34005         (gl_locale_name_thread_unsafe): New function, extracted from
34006         gl_locale_name_thread.
34007         (gl_locale_name_thread): Call struniq on all platforms that have
34008         'uselocale'.
34009         * tests/test-localename.c (test_locale_name_thread): Check that the
34010         resulting strings are permanently allocated.
34011         * modules/localename-tests (Depends-on): Add strdup.
34012
34013 2009-12-26  Bruno Haible  <bruno@clisp.org>
34014
34015         * tests/test-localename.c (categories): Fill in the strings.
34016
34017 2009-12-26  Jim Meyering  <meyering@redhat.com>
34018
34019         isdir: complete the removal of m4/isdir.m4
34020         * modules/isdir (configure.ac): Remove reference to gl_ISDIR.
34021
34022         isdir: clean up, since at least grep still uses it
34023         * lib/isdir.c: Include "isdir.h".
34024         (S_ISDIR): Remove now-unneeded definition.
34025         * modules/isdir (Files): Add lib/isdir.h.
34026         * lib/isdir.h: New file, with declaration.
34027         * m4/isdir.m4: Remove file -- unneeded.
34028
34029 2009-12-25  Bruno Haible  <bruno@clisp.org>
34030
34031         selinux-h: Make generated .h files standalone.
34032         * lib/se-context.in.h: Arrange to include _GL_UNUSED_PARAMETER
34033         definition. Use _GL_UNUSED_PARAMETER instead of _GL_UNUSED.
34034         * lib/se-selinux.in.h: Likewise.
34035         * modules/selinux-h (Depends-on): Add unused-parameter.
34036         (Makefile.am): Insert definition of _GL_UNUSED_PARAMETER into
34037         selinux/selinux.h and selinux/context.h.
34038         Suggested by Eric Blake.
34039
34040 2009-12-25  Bruno Haible  <bruno@clisp.org>
34041
34042         Move gl_FCNTL_O_FLAGS to a separate .m4 file.
34043         * m4/fcntl-o.m4: New file, extracted from m4/fcntl_h.m4.
34044         * m4/fcntl_h.m4 (gl_FCNTL_O_FLAGS): Remove macro.
34045         * modules/fcntl-h (Files): Add m4/fcntl-o.m4.
34046         * modules/localcharset (Files): Likewise. Remove m4/fcntl_h.m4.
34047
34048 2009-12-24  Bruno Haible  <bruno@clisp.org>
34049
34050         openat: Fix warning.
34051         * lib/openat-proc.c: Include <unistd.h>.
34052
34053 2009-12-24  Bruno Haible  <bruno@clisp.org>
34054
34055         New module 'unused-parameter'.
34056         * build-aux/unused-parameter.h: New file, extracted from earlier
34057         gnulib-common.m4.
34058         * modules/unused-parameter: New file.
34059         * lib/unistr.h: Include unused-parameter.h.
34060         (u32_mbtouc_unsafe, u32_mbtouc): Use _GL_UNUSED_PARAMETER instead of
34061         _GL_UNUSED.
34062         * modules/unistr/base (Depends-on): Add unused-parameter.
34063
34064 2009-12-24  Bruno Haible  <bruno@clisp.org>
34065
34066         Add missing dependencies to 'extensions' module.
34067         * m4/extensions.m4: Add comment.
34068         * modules/accept4 (Depends-on): Add extensions.
34069         * modules/dup3 (Depends-on): Likewise.
34070         * modules/fcntl (Depends-on): Likewise.
34071         * modules/futimens (Depends-on): Likewise.
34072         * modules/mknod (Depends-on): Likewise.
34073         * modules/pipe2 (Depends-on): Likewise.
34074         * modules/stat-time (Depends-on): Likewise.
34075         * modules/strcasestr-simple (Depends-on): Likewise.
34076         * modules/strsignal (Depends-on): Likewise.
34077         * modules/utimensat (Depends-on): Likewise.
34078         * modules/localcharset (Depends-on): Likewise. Needed because of
34079         gl_FCNTL_O_FLAGS.
34080         * modules/wcrtomb (Depends-on): Likewise. Needed because of
34081         AC_TYPE_MBSTATE_T.
34082         * modules/wcsnrtombs (Depends-on): Likewise.
34083         * modules/wcsrtombs (Depends-on): Likewise.
34084
34085 2009-12-24  Bruno Haible  <bruno@clisp.org>
34086
34087         binary-io: Avoid gcc warning due to SET_BINARY.
34088         * lib/binary-io.h (SET_BINARY): Cast the result to void.
34089         Reported by Jim Meyering <jim@meyering.net>. Suggestion by Eric Blake.
34090
34091 2009-12-24  Bruno Haible  <bruno@clisp.org>
34092
34093         Avoid future namespace pollution on glibc systems.
34094         * lib/arpa_inet.in.h: Don't include <sys/socket.h> on glibc systems.
34095         * lib/sys_ioctl.in.h: Don't include <unistd.h> on glibc systems.
34096         * lib/sys_select.in.h: Don't include <sys/time.h> and <string.h> on
34097         glibc systems.
34098
34099 2009-12-24  Bruno Haible  <bruno@clisp.org>
34100
34101         Refactor common macros used in tests.
34102         * tests/macros.h: New file.
34103         * tests/test-areadlink.c: Include macros.h. Don't include <stdio.h>
34104         and/or <stdlib.h>, if appropriate.
34105         (ASSERT, SIZEOF): Remove macros.
34106         * tests/test-areadlink-with-size.c: Likewise.
34107         * tests/test-areadlinkat.c: Likewise.
34108         * tests/test-areadlinkat-with-size.c: Likewise.
34109         * tests/test-argmatch.c: Likewise.
34110         * tests/test-argv-iter.c: Likewise.
34111         * tests/test-array-mergesort.c: Likewise.
34112         * tests/test-array_list.c: Likewise.
34113         * tests/test-array_oset.c: Likewise.
34114         * tests/test-avltree_list.c: Likewise.
34115         * tests/test-avltree_oset.c: Likewise.
34116         * tests/test-avltreehash_list.c: Likewise.
34117         * tests/test-base64.c: Likewise.
34118         * tests/test-binary-io.c: Likewise.
34119         * tests/test-bitrotate.c: Likewise.
34120         * tests/test-btowc.c: Likewise.
34121         * tests/test-byteswap.c: Likewise.
34122         * tests/test-c-ctype.c: Likewise.
34123         * tests/test-c-stack.c: Likewise.
34124         * tests/test-c-strcasecmp.c: Likewise.
34125         * tests/test-c-strcasestr.c: Likewise.
34126         * tests/test-c-strncasecmp.c: Likewise.
34127         * tests/test-c-strstr.c: Likewise.
34128         * tests/test-canonicalize-lgpl.c: Likewise.
34129         * tests/test-canonicalize.c: Likewise.
34130         * tests/test-carray_list.c: Likewise.
34131         * tests/test-ceilf1.c: Likewise.
34132         * tests/test-ceilf2.c: Likewise.
34133         * tests/test-ceill.c: Likewise.
34134         * tests/test-chown.c: Likewise.
34135         * tests/test-cloexec.c: Likewise.
34136         * tests/test-copy-acl.c: Likewise.
34137         * tests/test-copy-file.c: Likewise.
34138         * tests/test-count-one-bits.c: Likewise.
34139         * tests/test-dprintf-posix.c: Likewise.
34140         * tests/test-dup2.c: Likewise.
34141         * tests/test-dup3.c: Likewise.
34142         * tests/test-duplocale.c: Likewise.
34143         * tests/test-fbufmode.c: Likewise.
34144         * tests/test-fchdir.c: Likewise.
34145         * tests/test-fchownat.c: Likewise.
34146         * tests/test-fcntl-safer.c: Likewise.
34147         * tests/test-fcntl.c: Likewise.
34148         * tests/test-fdopendir.c: Likewise.
34149         * tests/test-fdutimensat.c: Likewise.
34150         * tests/test-fflush2.c: Likewise.
34151         * tests/test-file-has-acl.c: Likewise.
34152         * tests/test-filevercmp.c: Likewise.
34153         * tests/test-flock.c: Likewise.
34154         * tests/test-floorf1.c: Likewise.
34155         * tests/test-floorf2.c: Likewise.
34156         * tests/test-floorl.c: Likewise.
34157         * tests/test-fnmatch.c: Likewise.
34158         * tests/test-fopen.h: Likewise.
34159         * tests/test-fpending.c: Likewise.
34160         * tests/test-fprintf-posix.c: Likewise.
34161         * tests/test-fpurge.c: Likewise.
34162         * tests/test-freadable.c: Likewise.
34163         * tests/test-freadahead.c: Likewise.
34164         * tests/test-freading.c: Likewise.
34165         * tests/test-freadptr.c: Likewise.
34166         * tests/test-freadptr2.c: Likewise.
34167         * tests/test-freadseek.c: Likewise.
34168         * tests/test-freopen.c: Likewise.
34169         * tests/test-frexp.c: Likewise.
34170         * tests/test-frexpl.c: Likewise.
34171         * tests/test-fseek.c: Likewise.
34172         * tests/test-fseeko.c: Likewise.
34173         * tests/test-fstatat.c: Likewise.
34174         * tests/test-fstrcmp.c: Likewise.
34175         * tests/test-fsync.c: Likewise.
34176         * tests/test-ftell.c: Likewise.
34177         * tests/test-ftello.c: Likewise.
34178         * tests/test-func.c: Likewise.
34179         * tests/test-futimens.c: Likewise.
34180         * tests/test-fwritable.c: Likewise.
34181         * tests/test-fwriting.c: Likewise.
34182         * tests/test-getcwd.c: Likewise.
34183         * tests/test-getdate.c: Likewise.
34184         * tests/test-getdelim.c: Likewise.
34185         * tests/test-getdtablesize.c: Likewise.
34186         * tests/test-getgroups.c: Likewise.
34187         * tests/test-getline.c: Likewise.
34188         * tests/test-getndelim2.c: Likewise.
34189         * tests/test-glob.c: Likewise.
34190         * tests/test-hash.c: Likewise.
34191         * tests/test-i-ring.c: Likewise.
34192         * tests/test-iconv-utf.c: Likewise.
34193         * tests/test-iconv.c: Likewise.
34194         * tests/test-idpriv-drop.c: Likewise.
34195         * tests/test-idpriv-droptemp.c: Likewise.
34196         * tests/test-inet_ntop.c: Likewise.
34197         * tests/test-inet_pton.c: Likewise.
34198         * tests/test-isblank.c: Likewise.
34199         * tests/test-isfinite.c: Likewise.
34200         * tests/test-isinf.c: Likewise.
34201         * tests/test-isnan.c: Likewise.
34202         * tests/test-isnand.h: Likewise.
34203         * tests/test-isnanf.h: Likewise.
34204         * tests/test-isnanl.h: Likewise.
34205         * tests/test-lchown.c: Likewise.
34206         * tests/test-ldexpl.c: Likewise.
34207         * tests/test-link.c: Likewise.
34208         * tests/test-linkat.c: Likewise.
34209         * tests/test-linked_list.c: Likewise.
34210         * tests/test-linkedhash_list.c: Likewise.
34211         * tests/test-localename.c: Likewise.
34212         * tests/test-lseek.c: Likewise.
34213         * tests/test-lstat.c: Likewise.
34214         * tests/test-mbmemcasecmp.c: Likewise.
34215         * tests/test-mbmemcasecoll.c: Likewise.
34216         * tests/test-mbrtowc.c: Likewise.
34217         * tests/test-mbscasecmp.c: Likewise.
34218         * tests/test-mbscasestr1.c: Likewise.
34219         * tests/test-mbscasestr2.c: Likewise.
34220         * tests/test-mbscasestr3.c: Likewise.
34221         * tests/test-mbscasestr4.c: Likewise.
34222         * tests/test-mbschr.c: Likewise.
34223         * tests/test-mbscspn.c: Likewise.
34224         * tests/test-mbsinit.c: Likewise.
34225         * tests/test-mbsncasecmp.c: Likewise.
34226         * tests/test-mbsnrtowcs.c: Likewise.
34227         * tests/test-mbspbrk.c: Likewise.
34228         * tests/test-mbspcasecmp.c: Likewise.
34229         * tests/test-mbsrchr.c: Likewise.
34230         * tests/test-mbsrtowcs.c: Likewise.
34231         * tests/test-mbsspn.c: Likewise.
34232         * tests/test-mbsstr1.c: Likewise.
34233         * tests/test-mbsstr2.c: Likewise.
34234         * tests/test-mbsstr3.c: Likewise.
34235         * tests/test-memchr.c: Likewise.
34236         * tests/test-memchr2.c: Likewise.
34237         * tests/test-memcmp.c: Likewise.
34238         * tests/test-memmem.c: Likewise.
34239         * tests/test-memrchr.c: Likewise.
34240         * tests/test-mkdir.c: Likewise.
34241         * tests/test-mkdirat.c: Likewise.
34242         * tests/test-mkfifo.c: Likewise.
34243         * tests/test-mkfifoat.c: Likewise.
34244         * tests/test-mknod.c: Likewise.
34245         * tests/test-nanosleep.c: Likewise.
34246         * tests/test-nl_langinfo.c: Likewise.
34247         * tests/test-obstack-printf.c: Likewise.
34248         * tests/test-open.c: Likewise.
34249         * tests/test-openat.c: Likewise.
34250         * tests/test-pipe-filter-gi1.c: Likewise.
34251         * tests/test-pipe-filter-gi2-main.c: Likewise.
34252         * tests/test-pipe-filter-ii1.c: Likewise.
34253         * tests/test-pipe-filter-ii2-main.c: Likewise.
34254         * tests/test-pipe2.c: Likewise.
34255         * tests/test-popen.h: Likewise.
34256         * tests/test-posixtm.c: Likewise.
34257         * tests/test-pread.c: Likewise.
34258         * tests/test-printf-frexp.c: Likewise.
34259         * tests/test-printf-frexpl.c: Likewise.
34260         * tests/test-printf-posix.c: Likewise.
34261         * tests/test-priv-set.c: Likewise.
34262         * tests/test-quotearg.c: Likewise.
34263         * tests/test-random_r.c: Likewise.
34264         * tests/test-rawmemchr.c: Likewise.
34265         * tests/test-rbtree_list.c: Likewise.
34266         * tests/test-rbtree_oset.c: Likewise.
34267         * tests/test-rbtreehash_list.c: Likewise.
34268         * tests/test-readlink.c: Likewise.
34269         * tests/test-remove.c: Likewise.
34270         * tests/test-rename.c: Likewise.
34271         * tests/test-renameat.c: Likewise.
34272         * tests/test-rmdir.c: Likewise.
34273         * tests/test-round1.c: Likewise.
34274         * tests/test-roundf1.c: Likewise.
34275         * tests/test-roundl.c: Likewise.
34276         * tests/test-safe-alloc.c: Likewise.
34277         * tests/test-sameacls.c: Likewise.
34278         * tests/test-set-mode-acl.c: Likewise.
34279         * tests/test-setenv.c: Likewise.
34280         * tests/test-sigaction.c: Likewise.
34281         * tests/test-signbit.c: Likewise.
34282         * tests/test-sleep.c: Likewise.
34283         * tests/test-snprintf-posix.c: Likewise.
34284         * tests/test-snprintf.c: Likewise.
34285         * tests/test-sprintf-posix.c: Likewise.
34286         * tests/test-stat-time.c: Likewise.
34287         * tests/test-stat.c: Likewise.
34288         * tests/test-strcasestr.c: Likewise.
34289         * tests/test-strchrnul.c: Likewise.
34290         * tests/test-strerror.c: Likewise.
34291         * tests/test-striconv.c: Likewise.
34292         * tests/test-striconveh.c: Likewise.
34293         * tests/test-striconveha.c: Likewise.
34294         * tests/test-strsignal.c: Likewise.
34295         * tests/test-strstr.c: Likewise.
34296         * tests/test-strtod.c: Likewise.
34297         * tests/test-strverscmp.c: Likewise.
34298         * tests/test-symlink.c: Likewise.
34299         * tests/test-symlinkat.c: Likewise.
34300         * tests/test-trunc1.c: Likewise.
34301         * tests/test-trunc2.c: Likewise.
34302         * tests/test-truncf1.c: Likewise.
34303         * tests/test-truncf2.c: Likewise.
34304         * tests/test-truncl.c: Likewise.
34305         * tests/test-uname.c: Likewise.
34306         * tests/test-unlink.c: Likewise.
34307         * tests/test-unlinkat.c: Likewise.
34308         * tests/test-unsetenv.c: Likewise.
34309         * tests/test-usleep.c: Likewise.
34310         * tests/test-utimens.c: Likewise.
34311         * tests/test-utimensat.c: Likewise.
34312         * tests/test-vasnprintf-posix.c: Likewise.
34313         * tests/test-vasnprintf-posix2.c: Likewise.
34314         * tests/test-vasnprintf.c: Likewise.
34315         * tests/test-vasprintf-posix.c: Likewise.
34316         * tests/test-vasprintf.c: Likewise.
34317         * tests/test-vdprintf-posix.c: Likewise.
34318         * tests/test-vfprintf-posix.c: Likewise.
34319         * tests/test-vprintf-posix.c: Likewise.
34320         * tests/test-vsnprintf-posix.c: Likewise.
34321         * tests/test-vsnprintf.c: Likewise.
34322         * tests/test-vsprintf-posix.c: Likewise.
34323         * tests/test-wcrtomb.c: Likewise.
34324         * tests/test-wcsnrtombs.c: Likewise.
34325         * tests/test-wcsrtombs.c: Likewise.
34326         * tests/test-wctype.c: Likewise.
34327         * tests/test-wcwidth.c: Likewise.
34328         * tests/test-xfprintf-posix.c: Likewise.
34329         * tests/test-xmemdup0.c: Likewise.
34330         * tests/test-xprintf-posix.c: Likewise.
34331         * tests/test-xvasprintf.c: Likewise.
34332         * tests/unicase/test-locale-language.c: Likewise.
34333         * tests/unicase/test-mapping-part1.h: Likewise.
34334         * tests/unicase/test-predicate-part1.h: Likewise.
34335         * tests/unicase/test-u8-casecmp.c: Likewise.
34336         * tests/unicase/test-u8-casecoll.c: Likewise.
34337         * tests/unicase/test-u8-casefold.c: Likewise.
34338         * tests/unicase/test-u8-is-cased.c: Likewise.
34339         * tests/unicase/test-u8-is-casefolded.c: Likewise.
34340         * tests/unicase/test-u8-is-lowercase.c: Likewise.
34341         * tests/unicase/test-u8-is-titlecase.c: Likewise.
34342         * tests/unicase/test-u8-is-uppercase.c: Likewise.
34343         * tests/unicase/test-u8-tolower.c: Likewise.
34344         * tests/unicase/test-u8-totitle.c: Likewise.
34345         * tests/unicase/test-u8-toupper.c: Likewise.
34346         * tests/unicase/test-u16-casecmp.c: Likewise.
34347         * tests/unicase/test-u16-casecoll.c: Likewise.
34348         * tests/unicase/test-u16-casefold.c: Likewise.
34349         * tests/unicase/test-u16-is-cased.c: Likewise.
34350         * tests/unicase/test-u16-is-casefolded.c: Likewise.
34351         * tests/unicase/test-u16-is-lowercase.c: Likewise.
34352         * tests/unicase/test-u16-is-titlecase.c: Likewise.
34353         * tests/unicase/test-u16-is-uppercase.c: Likewise.
34354         * tests/unicase/test-u16-tolower.c: Likewise.
34355         * tests/unicase/test-u16-totitle.c: Likewise.
34356         * tests/unicase/test-u16-toupper.c: Likewise.
34357         * tests/unicase/test-u32-casecmp.c: Likewise.
34358         * tests/unicase/test-u32-casecoll.c: Likewise.
34359         * tests/unicase/test-u32-casefold.c: Likewise.
34360         * tests/unicase/test-u32-is-cased.c: Likewise.
34361         * tests/unicase/test-u32-is-casefolded.c: Likewise.
34362         * tests/unicase/test-u32-is-lowercase.c: Likewise.
34363         * tests/unicase/test-u32-is-titlecase.c: Likewise.
34364         * tests/unicase/test-u32-is-uppercase.c: Likewise.
34365         * tests/unicase/test-u32-tolower.c: Likewise.
34366         * tests/unicase/test-u32-totitle.c: Likewise.
34367         * tests/unicase/test-u32-toupper.c: Likewise.
34368         * tests/unicase/test-ulc-casecmp.c: Likewise.
34369         * tests/unicase/test-ulc-casecoll.c: Likewise.
34370         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
34371         * tests/uniconv/test-u8-conv-to-enc.c: Likewise.
34372         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
34373         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
34374         * tests/uniconv/test-u16-conv-from-enc.c: Likewise.
34375         * tests/uniconv/test-u16-conv-to-enc.c: Likewise.
34376         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
34377         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
34378         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
34379         * tests/uniconv/test-u32-conv-to-enc.c: Likewise.
34380         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
34381         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
34382         * tests/unictype/test-bidi_byname.c: Likewise.
34383         * tests/unictype/test-bidi_name.c: Likewise.
34384         * tests/unictype/test-bidi_of.c: Likewise.
34385         * tests/unictype/test-bidi_test.c: Likewise.
34386         * tests/unictype/test-block_list.c: Likewise.
34387         * tests/unictype/test-block_of.c: Likewise.
34388         * tests/unictype/test-block_test.c: Likewise.
34389         * tests/unictype/test-categ_and.c: Likewise.
34390         * tests/unictype/test-categ_and_not.c: Likewise.
34391         * tests/unictype/test-categ_byname.c: Likewise.
34392         * tests/unictype/test-categ_name.c: Likewise.
34393         * tests/unictype/test-categ_none.c: Likewise.
34394         * tests/unictype/test-categ_of.c: Likewise.
34395         * tests/unictype/test-categ_or.c: Likewise.
34396         * tests/unictype/test-categ_test_withtable.c: Likewise.
34397         * tests/unictype/test-combining.c: Likewise.
34398         * tests/unictype/test-decdigit.c: Likewise.
34399         * tests/unictype/test-digit.c: Likewise.
34400         * tests/unictype/test-mirror.c: Likewise.
34401         * tests/unictype/test-numeric.c: Likewise.
34402         * tests/unictype/test-pr_byname.c: Likewise.
34403         * tests/unictype/test-pr_test.c: Likewise.
34404         * tests/unictype/test-predicate-part1.h: Likewise.
34405         * tests/unictype/test-scripts.c: Likewise.
34406         * tests/unictype/test-sy_c_ident.c: Likewise.
34407         * tests/unictype/test-sy_java_ident.c: Likewise.
34408         * tests/unilbrk/test-u8-possible-linebreaks.c: Likewise.
34409         * tests/unilbrk/test-u8-width-linebreaks.c: Likewise.
34410         * tests/unilbrk/test-u16-possible-linebreaks.c: Likewise.
34411         * tests/unilbrk/test-u16-width-linebreaks.c: Likewise.
34412         * tests/unilbrk/test-u32-possible-linebreaks.c: Likewise.
34413         * tests/unilbrk/test-u32-width-linebreaks.c: Likewise.
34414         * tests/unilbrk/test-ulc-possible-linebreaks.c: Likewise.
34415         * tests/unilbrk/test-ulc-width-linebreaks.c: Likewise.
34416         * tests/uninorm/test-canonical-decomposition.c: Likewise.
34417         * tests/uninorm/test-compat-decomposition.c: Likewise.
34418         * tests/uninorm/test-composition.c: Likewise.
34419         * tests/uninorm/test-decomposing-form.c: Likewise.
34420         * tests/uninorm/test-decomposition.c: Likewise.
34421         * tests/uninorm/test-u8-nfc.c: Likewise.
34422         * tests/uninorm/test-u8-nfd.c: Likewise.
34423         * tests/uninorm/test-u8-nfkc.c: Likewise.
34424         * tests/uninorm/test-u8-nfkd.c: Likewise.
34425         * tests/uninorm/test-u8-normcmp.c: Likewise.
34426         * tests/uninorm/test-u8-normcoll.c: Likewise.
34427         * tests/uninorm/test-u16-nfc.c: Likewise.
34428         * tests/uninorm/test-u16-nfd.c: Likewise.
34429         * tests/uninorm/test-u16-nfkc.c: Likewise.
34430         * tests/uninorm/test-u16-nfkd.c: Likewise.
34431         * tests/uninorm/test-u16-normcmp.c: Likewise.
34432         * tests/uninorm/test-u16-normcoll.c: Likewise.
34433         * tests/uninorm/test-u32-nfc.c: Likewise.
34434         * tests/uninorm/test-u32-nfd.c: Likewise.
34435         * tests/uninorm/test-u32-nfkc.c: Likewise.
34436         * tests/uninorm/test-u32-nfkd.c: Likewise.
34437         * tests/uninorm/test-u32-normalize-big.c: Likewise.
34438         * tests/uninorm/test-u32-normcmp.c: Likewise.
34439         * tests/uninorm/test-u32-normcoll.c: Likewise.
34440         * tests/uninorm/test-uninorm-filter-nfc.c: Likewise.
34441         * tests/unistdio/test-u8-asnprintf1.c: Likewise.
34442         * tests/unistdio/test-u8-vasnprintf1.c: Likewise.
34443         * tests/unistdio/test-u8-vasnprintf2.c: Likewise.
34444         * tests/unistdio/test-u8-vasnprintf3.c: Likewise.
34445         * tests/unistdio/test-u8-vasprintf1.c: Likewise.
34446         * tests/unistdio/test-u8-vsnprintf1.c: Likewise.
34447         * tests/unistdio/test-u8-vsprintf1.c: Likewise.
34448         * tests/unistdio/test-u16-asnprintf1.c: Likewise.
34449         * tests/unistdio/test-u16-vasnprintf1.c: Likewise.
34450         * tests/unistdio/test-u16-vasnprintf2.c: Likewise.
34451         * tests/unistdio/test-u16-vasnprintf3.c: Likewise.
34452         * tests/unistdio/test-u16-vasprintf1.c: Likewise.
34453         * tests/unistdio/test-u16-vsnprintf1.c: Likewise.
34454         * tests/unistdio/test-u16-vsprintf1.c: Likewise.
34455         * tests/unistdio/test-u32-asnprintf1.c: Likewise.
34456         * tests/unistdio/test-u32-vasnprintf1.c: Likewise.
34457         * tests/unistdio/test-u32-vasnprintf2.c: Likewise.
34458         * tests/unistdio/test-u32-vasnprintf3.c: Likewise.
34459         * tests/unistdio/test-u32-vasprintf1.c: Likewise.
34460         * tests/unistdio/test-u32-vsnprintf1.c: Likewise.
34461         * tests/unistdio/test-u32-vsprintf1.c: Likewise.
34462         * tests/unistdio/test-ulc-asnprintf1.c: Likewise.
34463         * tests/unistdio/test-ulc-vasnprintf1.c: Likewise.
34464         * tests/unistdio/test-ulc-vasnprintf2.c: Likewise.
34465         * tests/unistdio/test-ulc-vasnprintf3.c: Likewise.
34466         * tests/unistdio/test-ulc-vasprintf1.c: Likewise.
34467         * tests/unistdio/test-ulc-vsnprintf1.c: Likewise.
34468         * tests/unistdio/test-ulc-vsprintf1.c: Likewise.
34469         * tests/uniwbrk/test-u8-wordbreaks.c: Likewise.
34470         * tests/uniwbrk/test-u16-wordbreaks.c: Likewise.
34471         * tests/uniwbrk/test-u32-wordbreaks.c: Likewise.
34472         * tests/uniwbrk/test-ulc-wordbreaks.c: Likewise.
34473         * tests/uniwidth/test-u8-strwidth.c: Likewise.
34474         * tests/uniwidth/test-u8-width.c: Likewise.
34475         * tests/uniwidth/test-u16-strwidth.c: Likewise.
34476         * tests/uniwidth/test-u16-width.c: Likewise.
34477         * tests/uniwidth/test-u32-strwidth.c: Likewise.
34478         * tests/uniwidth/test-u32-width.c: Likewise.
34479         * tests/uniwidth/test-uc_width.c: Likewise.
34480         * tests/uniwidth/test-uc_width2.c: Likewise.
34481         * modules/acl-tests (Files): Add tests/macros.h.
34482         * modules/areadlink-tests (Files): Likewise.
34483         * modules/areadlink-with-size-tests (Files): Likewise.
34484         * modules/areadlinkat-tests (Files): Likewise.
34485         * modules/areadlinkat-with-size-tests (Files): Likewise.
34486         * modules/argmatch-tests (Files): Likewise.
34487         * modules/argv-iter-tests (Files): Likewise.
34488         * modules/array-list-tests (Files): Likewise.
34489         * modules/array-mergesort-tests (Files): Likewise.
34490         * modules/array-oset-tests (Files): Likewise.
34491         * modules/avltree-list-tests (Files): Likewise.
34492         * modules/avltree-oset-tests (Files): Likewise.
34493         * modules/avltreehash-list-tests (Files): Likewise.
34494         * modules/base64-tests (Files): Likewise.
34495         * modules/binary-io-tests (Files): Likewise.
34496         * modules/bitrotate-tests (Files): Likewise.
34497         * modules/btowc-tests (Files): Likewise.
34498         * modules/byteswap-tests (Files): Likewise.
34499         * modules/c-ctype-tests (Files): Likewise.
34500         * modules/c-stack-tests (Files): Likewise.
34501         * modules/c-strcase-tests (Files): Likewise.
34502         * modules/c-strcasestr-tests (Files): Likewise.
34503         * modules/c-strstr-tests (Files): Likewise.
34504         * modules/canonicalize-lgpl-tests (Files): Likewise.
34505         * modules/canonicalize-tests (Files): Likewise.
34506         * modules/carray-list-tests (Files): Likewise.
34507         * modules/ceilf-tests (Files): Likewise.
34508         * modules/ceill-tests (Files): Likewise.
34509         * modules/chown-tests (Files): Likewise.
34510         * modules/cloexec-tests (Files): Likewise.
34511         * modules/copy-file-tests (Files): Likewise.
34512         * modules/count-one-bits-tests (Files): Likewise.
34513         * modules/dprintf-posix-tests (Files): Likewise.
34514         * modules/dup2-tests (Files): Likewise.
34515         * modules/dup3-tests (Files): Likewise.
34516         * modules/duplocale-tests (Files): Likewise.
34517         * modules/fbufmode-tests (Files): Likewise.
34518         * modules/fchdir-tests (Files): Likewise.
34519         * modules/fcntl-safer-tests (Files): Likewise.
34520         * modules/fcntl-tests (Files): Likewise.
34521         * modules/fdopendir-tests (Files): Likewise.
34522         * modules/fdutimensat-tests (Files): Likewise.
34523         * modules/fflush-tests (Files): Likewise.
34524         * modules/filevercmp-tests (Files): Likewise.
34525         * modules/flock-tests (Files): Likewise.
34526         * modules/floorf-tests (Files): Likewise.
34527         * modules/floorl-tests (Files): Likewise.
34528         * modules/fnmatch-tests (Files): Likewise.
34529         * modules/fopen-safer-tests (Files): Likewise.
34530         * modules/fopen-tests (Files): Likewise.
34531         * modules/fpending-tests (Files): Likewise.
34532         * modules/fprintf-posix-tests (Files): Likewise.
34533         * modules/fpurge-tests (Files): Likewise.
34534         * modules/freadable-tests (Files): Likewise.
34535         * modules/freadahead-tests (Files): Likewise.
34536         * modules/freading-tests (Files): Likewise.
34537         * modules/freadptr-tests (Files): Likewise.
34538         * modules/freadseek-tests (Files): Likewise.
34539         * modules/freopen-tests (Files): Likewise.
34540         * modules/frexp-nolibm-tests (Files): Likewise.
34541         * modules/frexp-tests (Files): Likewise.
34542         * modules/frexpl-nolibm-tests (Files): Likewise.
34543         * modules/frexpl-tests (Files): Likewise.
34544         * modules/fseek-tests (Files): Likewise.
34545         * modules/fseeko-tests (Files): Likewise.
34546         * modules/fstrcmp-tests (Files): Likewise.
34547         * modules/fsync-tests (Files): Likewise.
34548         * modules/ftell-tests (Files): Likewise.
34549         * modules/ftello-tests (Files): Likewise.
34550         * modules/func-tests (Files): Likewise.
34551         * modules/futimens-tests (Files): Likewise.
34552         * modules/fwritable-tests (Files): Likewise.
34553         * modules/fwriting-tests (Files): Likewise.
34554         * modules/getcwd-tests (Files): Likewise.
34555         * modules/getdate-tests (Files): Likewise.
34556         * modules/getdelim-tests (Files): Likewise.
34557         * modules/getdtablesize-tests (Files): Likewise.
34558         * modules/getgroups-tests (Files): Likewise.
34559         * modules/getline-tests (Files): Likewise.
34560         * modules/getndelim2-tests (Files): Likewise.
34561         * modules/glob-tests (Files): Likewise.
34562         * modules/hash-tests (Files): Likewise.
34563         * modules/i-ring-tests (Files): Likewise.
34564         * modules/iconv-tests (Files): Likewise.
34565         * modules/iconv_open-utf-tests (Files): Likewise.
34566         * modules/idpriv-drop-tests (Files): Likewise.
34567         * modules/idpriv-droptemp-tests (Files): Likewise.
34568         * modules/inet_ntop-tests (Files): Likewise.
34569         * modules/inet_pton-tests (Files): Likewise.
34570         * modules/isblank-tests (Files): Likewise.
34571         * modules/isfinite-tests (Files): Likewise.
34572         * modules/isinf-tests (Files): Likewise.
34573         * modules/isnan-tests (Files): Likewise.
34574         * modules/isnand-nolibm-tests (Files): Likewise.
34575         * modules/isnand-tests (Files): Likewise.
34576         * modules/isnanf-nolibm-tests (Files): Likewise.
34577         * modules/isnanf-tests (Files): Likewise.
34578         * modules/isnanl-nolibm-tests (Files): Likewise.
34579         * modules/isnanl-tests (Files): Likewise.
34580         * modules/lchown-tests (Files): Likewise.
34581         * modules/ldexpl-tests (Files): Likewise.
34582         * modules/link-tests (Files): Likewise.
34583         * modules/linkat-tests (Files): Likewise.
34584         * modules/linked-list-tests (Files): Likewise.
34585         * modules/linkedhash-list-tests (Files): Likewise.
34586         * modules/localename-tests (Files): Likewise.
34587         * modules/lseek-tests (Files): Likewise.
34588         * modules/lstat-tests (Files): Likewise.
34589         * modules/mbmemcasecmp-tests (Files): Likewise.
34590         * modules/mbmemcasecoll-tests (Files): Likewise.
34591         * modules/mbrtowc-tests (Files): Likewise.
34592         * modules/mbscasecmp-tests (Files): Likewise.
34593         * modules/mbscasestr-tests (Files): Likewise.
34594         * modules/mbschr-tests (Files): Likewise.
34595         * modules/mbscspn-tests (Files): Likewise.
34596         * modules/mbsinit-tests (Files): Likewise.
34597         * modules/mbsncasecmp-tests (Files): Likewise.
34598         * modules/mbsnrtowcs-tests (Files): Likewise.
34599         * modules/mbspbrk-tests (Files): Likewise.
34600         * modules/mbspcasecmp-tests (Files): Likewise.
34601         * modules/mbsrchr-tests (Files): Likewise.
34602         * modules/mbsrtowcs-tests (Files): Likewise.
34603         * modules/mbsspn-tests (Files): Likewise.
34604         * modules/mbsstr-tests (Files): Likewise.
34605         * modules/memchr-tests (Files): Likewise.
34606         * modules/memchr2-tests (Files): Likewise.
34607         * modules/memcmp-tests (Files): Likewise.
34608         * modules/memmem-tests (Files): Likewise.
34609         * modules/memrchr-tests (Files): Likewise.
34610         * modules/mkdir-tests (Files): Likewise.
34611         * modules/mkfifo-tests (Files): Likewise.
34612         * modules/mkfifoat-tests (Files): Likewise.
34613         * modules/mknod-tests (Files): Likewise.
34614         * modules/nanosleep-tests (Files): Likewise.
34615         * modules/nl_langinfo-tests (Files): Likewise.
34616         * modules/obstack-printf-tests (Files): Likewise.
34617         * modules/open-tests (Files): Likewise.
34618         * modules/openat-tests (Files): Likewise.
34619         * modules/pipe-filter-gi-tests (Files): Likewise.
34620         * modules/pipe-filter-ii-tests (Files): Likewise.
34621         * modules/pipe2-tests (Files): Likewise.
34622         * modules/popen-safer-tests (Files): Likewise.
34623         * modules/popen-tests (Files): Likewise.
34624         * modules/posixtm-tests (Files): Likewise.
34625         * modules/pread-tests (Files): Likewise.
34626         * modules/printf-frexp-tests (Files): Likewise.
34627         * modules/printf-frexpl-tests (Files): Likewise.
34628         * modules/printf-posix-tests (Files): Likewise.
34629         * modules/priv-set-tests (Files): Likewise.
34630         * modules/quotearg-tests (Files): Likewise.
34631         * modules/random_r-tests (Files): Likewise.
34632         * modules/rawmemchr-tests (Files): Likewise.
34633         * modules/rbtree-list-tests (Files): Likewise.
34634         * modules/rbtree-oset-tests (Files): Likewise.
34635         * modules/rbtreehash-list-tests (Files): Likewise.
34636         * modules/readlink-tests (Files): Likewise.
34637         * modules/remove-tests (Files): Likewise.
34638         * modules/rename-tests (Files): Likewise.
34639         * modules/renameat-tests (Files): Likewise.
34640         * modules/rmdir-tests (Files): Likewise.
34641         * modules/round-tests (Files): Likewise.
34642         * modules/roundf-tests (Files): Likewise.
34643         * modules/roundl-tests (Files): Likewise.
34644         * modules/safe-alloc-tests (Files): Likewise.
34645         * modules/setenv-tests (Files): Likewise.
34646         * modules/sigaction-tests (Files): Likewise.
34647         * modules/signbit-tests (Files): Likewise.
34648         * modules/sleep-tests (Files): Likewise.
34649         * modules/snprintf-posix-tests (Files): Likewise.
34650         * modules/snprintf-tests (Files): Likewise.
34651         * modules/sprintf-posix-tests (Files): Likewise.
34652         * modules/stat-tests (Files): Likewise.
34653         * modules/stat-time-tests (Files): Likewise.
34654         * modules/strcasestr-tests (Files): Likewise.
34655         * modules/strchrnul-tests (Files): Likewise.
34656         * modules/strerror-tests (Files): Likewise.
34657         * modules/striconv-tests (Files): Likewise.
34658         * modules/striconveh-tests (Files): Likewise.
34659         * modules/striconveha-tests (Files): Likewise.
34660         * modules/strsignal-tests (Files): Likewise.
34661         * modules/strstr-tests (Files): Likewise.
34662         * modules/strtod-tests (Files): Likewise.
34663         * modules/strverscmp-tests (Files): Likewise.
34664         * modules/symlink-tests (Files): Likewise.
34665         * modules/symlinkat-tests (Files): Likewise.
34666         * modules/trunc-tests (Files): Likewise.
34667         * modules/truncf-tests (Files): Likewise.
34668         * modules/truncl-tests (Files): Likewise.
34669         * modules/uname-tests (Files): Likewise.
34670         * modules/unicase/cased-tests (Files): Likewise.
34671         * modules/unicase/ignorable-tests (Files): Likewise.
34672         * modules/unicase/locale-language-tests (Files): Likewise.
34673         * modules/unicase/tolower-tests (Files): Likewise.
34674         * modules/unicase/totitle-tests (Files): Likewise.
34675         * modules/unicase/toupper-tests (Files): Likewise.
34676         * modules/unicase/u8-casecmp-tests (Files): Likewise.
34677         * modules/unicase/u8-casecoll-tests (Files): Likewise.
34678         * modules/unicase/u8-casefold-tests (Files): Likewise.
34679         * modules/unicase/u8-is-cased-tests (Files): Likewise.
34680         * modules/unicase/u8-is-casefolded-tests (Files): Likewise.
34681         * modules/unicase/u8-is-lowercase-tests (Files): Likewise.
34682         * modules/unicase/u8-is-titlecase-tests (Files): Likewise.
34683         * modules/unicase/u8-is-uppercase-tests (Files): Likewise.
34684         * modules/unicase/u8-tolower-tests (Files): Likewise.
34685         * modules/unicase/u8-totitle-tests (Files): Likewise.
34686         * modules/unicase/u8-toupper-tests (Files): Likewise.
34687         * modules/unicase/u16-casecmp-tests (Files): Likewise.
34688         * modules/unicase/u16-casecoll-tests (Files): Likewise.
34689         * modules/unicase/u16-casefold-tests (Files): Likewise.
34690         * modules/unicase/u16-is-cased-tests (Files): Likewise.
34691         * modules/unicase/u16-is-casefolded-tests (Files): Likewise.
34692         * modules/unicase/u16-is-lowercase-tests (Files): Likewise.
34693         * modules/unicase/u16-is-titlecase-tests (Files): Likewise.
34694         * modules/unicase/u16-is-uppercase-tests (Files): Likewise.
34695         * modules/unicase/u16-tolower-tests (Files): Likewise.
34696         * modules/unicase/u16-totitle-tests (Files): Likewise.
34697         * modules/unicase/u16-toupper-tests (Files): Likewise.
34698         * modules/unicase/u32-casecmp-tests (Files): Likewise.
34699         * modules/unicase/u32-casecoll-tests (Files): Likewise.
34700         * modules/unicase/u32-casefold-tests (Files): Likewise.
34701         * modules/unicase/u32-is-cased-tests (Files): Likewise.
34702         * modules/unicase/u32-is-casefolded-tests (Files): Likewise.
34703         * modules/unicase/u32-is-lowercase-tests (Files): Likewise.
34704         * modules/unicase/u32-is-titlecase-tests (Files): Likewise.
34705         * modules/unicase/u32-is-uppercase-tests (Files): Likewise.
34706         * modules/unicase/u32-tolower-tests (Files): Likewise.
34707         * modules/unicase/u32-totitle-tests (Files): Likewise.
34708         * modules/unicase/u32-toupper-tests (Files): Likewise.
34709         * modules/unicase/ulc-casecmp-tests (Files): Likewise.
34710         * modules/unicase/ulc-casecoll-tests (Files): Likewise.
34711         * modules/uniconv/u8-conv-from-enc-tests (Files): Likewise.
34712         * modules/uniconv/u8-conv-to-enc-tests (Files): Likewise.
34713         * modules/uniconv/u8-strconv-from-enc-tests (Files): Likewise.
34714         * modules/uniconv/u8-strconv-to-enc-tests (Files): Likewise.
34715         * modules/uniconv/u16-conv-from-enc-tests (Files): Likewise.
34716         * modules/uniconv/u16-conv-to-enc-tests (Files): Likewise.
34717         * modules/uniconv/u16-strconv-from-enc-tests (Files): Likewise.
34718         * modules/uniconv/u16-strconv-to-enc-tests (Files): Likewise.
34719         * modules/uniconv/u32-conv-from-enc-tests (Files): Likewise.
34720         * modules/uniconv/u32-conv-to-enc-tests (Files): Likewise.
34721         * modules/uniconv/u32-strconv-from-enc-tests (Files): Likewise.
34722         * modules/uniconv/u32-strconv-to-enc-tests (Files): Likewise.
34723         * modules/unictype/bidicategory-byname-tests (Files): Likewise.
34724         * modules/unictype/bidicategory-name-tests (Files): Likewise.
34725         * modules/unictype/bidicategory-of-tests (Files): Likewise.
34726         * modules/unictype/bidicategory-test-tests (Files): Likewise.
34727         * modules/unictype/block-list-tests (Files): Likewise.
34728         * modules/unictype/block-of-tests (Files): Likewise.
34729         * modules/unictype/block-test-tests (Files): Likewise.
34730         * modules/unictype/category-C-tests (Files): Likewise.
34731         * modules/unictype/category-Cc-tests (Files): Likewise.
34732         * modules/unictype/category-Cf-tests (Files): Likewise.
34733         * modules/unictype/category-Cn-tests (Files): Likewise.
34734         * modules/unictype/category-Co-tests (Files): Likewise.
34735         * modules/unictype/category-Cs-tests (Files): Likewise.
34736         * modules/unictype/category-L-tests (Files): Likewise.
34737         * modules/unictype/category-Ll-tests (Files): Likewise.
34738         * modules/unictype/category-Lm-tests (Files): Likewise.
34739         * modules/unictype/category-Lo-tests (Files): Likewise.
34740         * modules/unictype/category-Lt-tests (Files): Likewise.
34741         * modules/unictype/category-Lu-tests (Files): Likewise.
34742         * modules/unictype/category-M-tests (Files): Likewise.
34743         * modules/unictype/category-Mc-tests (Files): Likewise.
34744         * modules/unictype/category-Me-tests (Files): Likewise.
34745         * modules/unictype/category-Mn-tests (Files): Likewise.
34746         * modules/unictype/category-N-tests (Files): Likewise.
34747         * modules/unictype/category-Nd-tests (Files): Likewise.
34748         * modules/unictype/category-Nl-tests (Files): Likewise.
34749         * modules/unictype/category-No-tests (Files): Likewise.
34750         * modules/unictype/category-P-tests (Files): Likewise.
34751         * modules/unictype/category-Pc-tests (Files): Likewise.
34752         * modules/unictype/category-Pd-tests (Files): Likewise.
34753         * modules/unictype/category-Pe-tests (Files): Likewise.
34754         * modules/unictype/category-Pf-tests (Files): Likewise.
34755         * modules/unictype/category-Pi-tests (Files): Likewise.
34756         * modules/unictype/category-Po-tests (Files): Likewise.
34757         * modules/unictype/category-Ps-tests (Files): Likewise.
34758         * modules/unictype/category-S-tests (Files): Likewise.
34759         * modules/unictype/category-Sc-tests (Files): Likewise.
34760         * modules/unictype/category-Sk-tests (Files): Likewise.
34761         * modules/unictype/category-Sm-tests (Files): Likewise.
34762         * modules/unictype/category-So-tests (Files): Likewise.
34763         * modules/unictype/category-Z-tests (Files): Likewise.
34764         * modules/unictype/category-Zl-tests (Files): Likewise.
34765         * modules/unictype/category-Zp-tests (Files): Likewise.
34766         * modules/unictype/category-Zs-tests (Files): Likewise.
34767         * modules/unictype/category-and-not-tests (Files): Likewise.
34768         * modules/unictype/category-and-tests (Files): Likewise.
34769         * modules/unictype/category-byname-tests (Files): Likewise.
34770         * modules/unictype/category-name-tests (Files): Likewise.
34771         * modules/unictype/category-none-tests (Files): Likewise.
34772         * modules/unictype/category-of-tests (Files): Likewise.
34773         * modules/unictype/category-or-tests (Files): Likewise.
34774         * modules/unictype/category-test-withtable-tests (Files): Likewise.
34775         * modules/unictype/combining-class-tests (Files): Likewise.
34776         * modules/unictype/ctype-alnum-tests (Files): Likewise.
34777         * modules/unictype/ctype-alpha-tests (Files): Likewise.
34778         * modules/unictype/ctype-blank-tests (Files): Likewise.
34779         * modules/unictype/ctype-cntrl-tests (Files): Likewise.
34780         * modules/unictype/ctype-digit-tests (Files): Likewise.
34781         * modules/unictype/ctype-graph-tests (Files): Likewise.
34782         * modules/unictype/ctype-lower-tests (Files): Likewise.
34783         * modules/unictype/ctype-print-tests (Files): Likewise.
34784         * modules/unictype/ctype-punct-tests (Files): Likewise.
34785         * modules/unictype/ctype-space-tests (Files): Likewise.
34786         * modules/unictype/ctype-upper-tests (Files): Likewise.
34787         * modules/unictype/ctype-xdigit-tests (Files): Likewise.
34788         * modules/unictype/decimal-digit-tests (Files): Likewise.
34789         * modules/unictype/digit-tests (Files): Likewise.
34790         * modules/unictype/mirror-tests (Files): Likewise.
34791         * modules/unictype/numeric-tests (Files): Likewise.
34792         * modules/unictype/property-alphabetic-tests (Files): Likewise.
34793         * modules/unictype/property-ascii-hex-digit-tests (Files): Likewise.
34794         * modules/unictype/property-bidi-arabic-digit-tests (Files): Likewise.
34795         * modules/unictype/property-bidi-arabic-right-to-left-tests (Files):
34796         Likewise.
34797         * modules/unictype/property-bidi-block-separator-tests (Files):
34798         Likewise.
34799         * modules/unictype/property-bidi-boundary-neutral-tests (Files):
34800         Likewise.
34801         * modules/unictype/property-bidi-common-separator-tests (Files):
34802         Likewise.
34803         * modules/unictype/property-bidi-control-tests (Files): Likewise.
34804         * modules/unictype/property-bidi-embedding-or-override-tests (Files):
34805         Likewise.
34806         * modules/unictype/property-bidi-eur-num-separator-tests (Files):
34807         Likewise.
34808         * modules/unictype/property-bidi-eur-num-terminator-tests (Files):
34809         Likewise.
34810         * modules/unictype/property-bidi-european-digit-tests (Files): Likewise.
34811         * modules/unictype/property-bidi-hebrew-right-to-left-tests (Files):
34812         Likewise.
34813         * modules/unictype/property-bidi-left-to-right-tests (Files): Likewise.
34814         * modules/unictype/property-bidi-non-spacing-mark-tests (Files):
34815         Likewise.
34816         * modules/unictype/property-bidi-other-neutral-tests (Files): Likewise.
34817         * modules/unictype/property-bidi-pdf-tests (Files): Likewise.
34818         * modules/unictype/property-bidi-segment-separator-tests (Files):
34819         Likewise.
34820         * modules/unictype/property-bidi-whitespace-tests (Files): Likewise.
34821         * modules/unictype/property-byname-tests (Files): Likewise.
34822         * modules/unictype/property-combining-tests (Files): Likewise.
34823         * modules/unictype/property-composite-tests (Files): Likewise.
34824         * modules/unictype/property-currency-symbol-tests (Files): Likewise.
34825         * modules/unictype/property-dash-tests (Files): Likewise.
34826         * modules/unictype/property-decimal-digit-tests (Files): Likewise.
34827         * modules/unictype/property-default-ignorable-code-point-tests (Files):
34828         Likewise.
34829         * modules/unictype/property-deprecated-tests (Files): Likewise.
34830         * modules/unictype/property-diacritic-tests (Files): Likewise.
34831         * modules/unictype/property-extender-tests (Files): Likewise.
34832         * modules/unictype/property-format-control-tests (Files): Likewise.
34833         * modules/unictype/property-grapheme-base-tests (Files): Likewise.
34834         * modules/unictype/property-grapheme-extend-tests (Files): Likewise.
34835         * modules/unictype/property-grapheme-link-tests (Files): Likewise.
34836         * modules/unictype/property-hex-digit-tests (Files): Likewise.
34837         * modules/unictype/property-hyphen-tests (Files): Likewise.
34838         * modules/unictype/property-id-continue-tests (Files): Likewise.
34839         * modules/unictype/property-id-start-tests (Files): Likewise.
34840         * modules/unictype/property-ideographic-tests (Files): Likewise.
34841         * modules/unictype/property-ids-binary-operator-tests (Files): Likewise.
34842         * modules/unictype/property-ids-trinary-operator-tests (Files):
34843         Likewise.
34844         * modules/unictype/property-ignorable-control-tests (Files): Likewise.
34845         * modules/unictype/property-iso-control-tests (Files): Likewise.
34846         * modules/unictype/property-join-control-tests (Files): Likewise.
34847         * modules/unictype/property-left-of-pair-tests (Files): Likewise.
34848         * modules/unictype/property-line-separator-tests (Files): Likewise.
34849         * modules/unictype/property-logical-order-exception-tests (Files):
34850         Likewise.
34851         * modules/unictype/property-lowercase-tests (Files): Likewise.
34852         * modules/unictype/property-math-tests (Files): Likewise.
34853         * modules/unictype/property-non-break-tests (Files): Likewise.
34854         * modules/unictype/property-not-a-character-tests (Files): Likewise.
34855         * modules/unictype/property-numeric-tests (Files): Likewise.
34856         * modules/unictype/property-other-alphabetic-tests (Files): Likewise.
34857         * modules/unictype/property-other-default-ignorable-code-point-tests
34858         (Files): Likewise.
34859         * modules/unictype/property-other-grapheme-extend-tests (Files):
34860         Likewise.
34861         * modules/unictype/property-other-id-continue-tests (Files): Likewise.
34862         * modules/unictype/property-other-id-start-tests (Files): Likewise.
34863         * modules/unictype/property-other-lowercase-tests (Files): Likewise.
34864         * modules/unictype/property-other-math-tests (Files): Likewise.
34865         * modules/unictype/property-other-uppercase-tests (Files): Likewise.
34866         * modules/unictype/property-paired-punctuation-tests (Files): Likewise.
34867         * modules/unictype/property-paragraph-separator-tests (Files): Likewise.
34868         * modules/unictype/property-pattern-syntax-tests (Files): Likewise.
34869         * modules/unictype/property-pattern-white-space-tests (Files): Likewise.
34870         * modules/unictype/property-private-use-tests (Files): Likewise.
34871         * modules/unictype/property-punctuation-tests (Files): Likewise.
34872         * modules/unictype/property-quotation-mark-tests (Files): Likewise.
34873         * modules/unictype/property-radical-tests (Files): Likewise.
34874         * modules/unictype/property-sentence-terminal-tests (Files): Likewise.
34875         * modules/unictype/property-soft-dotted-tests (Files): Likewise.
34876         * modules/unictype/property-space-tests (Files): Likewise.
34877         * modules/unictype/property-terminal-punctuation-tests (Files):
34878         Likewise.
34879         * modules/unictype/property-test-tests (Files): Likewise.
34880         * modules/unictype/property-titlecase-tests (Files): Likewise.
34881         * modules/unictype/property-unassigned-code-value-tests (Files):
34882         Likewise.
34883         * modules/unictype/property-unified-ideograph-tests (Files): Likewise.
34884         * modules/unictype/property-uppercase-tests (Files): Likewise.
34885         * modules/unictype/property-variation-selector-tests (Files): Likewise.
34886         * modules/unictype/property-white-space-tests (Files): Likewise.
34887         * modules/unictype/property-xid-continue-tests (Files): Likewise.
34888         * modules/unictype/property-xid-start-tests (Files): Likewise.
34889         * modules/unictype/property-zero-width-tests (Files): Likewise.
34890         * modules/unictype/scripts-tests (Files): Likewise.
34891         * modules/unictype/syntax-c-ident-tests (Files): Likewise.
34892         * modules/unictype/syntax-c-whitespace-tests (Files): Likewise.
34893         * modules/unictype/syntax-java-ident-tests (Files): Likewise.
34894         * modules/unictype/syntax-java-whitespace-tests (Files): Likewise.
34895         * modules/unilbrk/u8-possible-linebreaks-tests (Files): Likewise.
34896         * modules/unilbrk/u8-width-linebreaks-tests (Files): Likewise.
34897         * modules/unilbrk/u16-possible-linebreaks-tests (Files): Likewise.
34898         * modules/unilbrk/u16-width-linebreaks-tests (Files): Likewise.
34899         * modules/unilbrk/u32-possible-linebreaks-tests (Files): Likewise.
34900         * modules/unilbrk/u32-width-linebreaks-tests (Files): Likewise.
34901         * modules/unilbrk/ulc-possible-linebreaks-tests (Files): Likewise.
34902         * modules/unilbrk/ulc-width-linebreaks-tests (Files): Likewise.
34903         * modules/uninorm/canonical-decomposition-tests (Files): Likewise.
34904         * modules/uninorm/compat-decomposition-tests (Files): Likewise.
34905         * modules/uninorm/composition-tests (Files): Likewise.
34906         * modules/uninorm/decomposing-form-tests (Files): Likewise.
34907         * modules/uninorm/decomposition-tests (Files): Likewise.
34908         * modules/uninorm/filter-tests (Files): Likewise.
34909         * modules/uninorm/nfc-tests (Files): Likewise.
34910         * modules/uninorm/nfd-tests (Files): Likewise.
34911         * modules/uninorm/nfkc-tests (Files): Likewise.
34912         * modules/uninorm/nfkd-tests (Files): Likewise.
34913         * modules/uninorm/u8-normcmp-tests (Files): Likewise.
34914         * modules/uninorm/u8-normcoll-tests (Files): Likewise.
34915         * modules/uninorm/u16-normcmp-tests (Files): Likewise.
34916         * modules/uninorm/u16-normcoll-tests (Files): Likewise.
34917         * modules/uninorm/u32-normcmp-tests (Files): Likewise.
34918         * modules/uninorm/u32-normcoll-tests (Files): Likewise.
34919         * modules/unistdio/u8-asnprintf-tests (Files): Likewise.
34920         * modules/unistdio/u8-vasnprintf-tests (Files): Likewise.
34921         * modules/unistdio/u8-vasprintf-tests (Files): Likewise.
34922         * modules/unistdio/u8-vsnprintf-tests (Files): Likewise.
34923         * modules/unistdio/u8-vsprintf-tests (Files): Likewise.
34924         * modules/unistdio/u16-asnprintf-tests (Files): Likewise.
34925         * modules/unistdio/u16-vasnprintf-tests (Files): Likewise.
34926         * modules/unistdio/u16-vasprintf-tests (Files): Likewise.
34927         * modules/unistdio/u16-vsnprintf-tests (Files): Likewise.
34928         * modules/unistdio/u16-vsprintf-tests (Files): Likewise.
34929         * modules/unistdio/u32-asnprintf-tests (Files): Likewise.
34930         * modules/unistdio/u32-vasnprintf-tests (Files): Likewise.
34931         * modules/unistdio/u32-vasprintf-tests (Files): Likewise.
34932         * modules/unistdio/u32-vsnprintf-tests (Files): Likewise.
34933         * modules/unistdio/u32-vsprintf-tests (Files): Likewise.
34934         * modules/unistdio/ulc-asnprintf-tests (Files): Likewise.
34935         * modules/unistdio/ulc-vasnprintf-tests (Files): Likewise.
34936         * modules/unistdio/ulc-vasprintf-tests (Files): Likewise.
34937         * modules/unistdio/ulc-vsnprintf-tests (Files): Likewise.
34938         * modules/unistdio/ulc-vsprintf-tests (Files): Likewise.
34939         * modules/uniwbrk/u8-wordbreaks-tests (Files): Likewise.
34940         * modules/uniwbrk/u16-wordbreaks-tests (Files): Likewise.
34941         * modules/uniwbrk/u32-wordbreaks-tests (Files): Likewise.
34942         * modules/uniwbrk/ulc-wordbreaks-tests (Files): Likewise.
34943         * modules/uniwidth/u8-strwidth-tests (Files): Likewise.
34944         * modules/uniwidth/u8-width-tests (Files): Likewise.
34945         * modules/uniwidth/u16-strwidth-tests (Files): Likewise.
34946         * modules/uniwidth/u16-width-tests (Files): Likewise.
34947         * modules/uniwidth/u32-strwidth-tests (Files): Likewise.
34948         * modules/uniwidth/u32-width-tests (Files): Likewise.
34949         * modules/uniwidth/width-tests (Files): Likewise.
34950         * modules/unlink-tests (Files): Likewise.
34951         * modules/unsetenv-tests (Files): Likewise.
34952         * modules/usleep-tests (Files): Likewise.
34953         * modules/utimens-tests (Files): Likewise.
34954         * modules/utimensat-tests (Files): Likewise.
34955         * modules/vasnprintf-posix-tests (Files): Likewise.
34956         * modules/vasnprintf-tests (Files): Likewise.
34957         * modules/vasprintf-posix-tests (Files): Likewise.
34958         * modules/vasprintf-tests (Files): Likewise.
34959         * modules/vdprintf-posix-tests (Files): Likewise.
34960         * modules/vfprintf-posix-tests (Files): Likewise.
34961         * modules/vprintf-posix-tests (Files): Likewise.
34962         * modules/vsnprintf-posix-tests (Files): Likewise.
34963         * modules/vsnprintf-tests (Files): Likewise.
34964         * modules/vsprintf-posix-tests (Files): Likewise.
34965         * modules/wcrtomb-tests (Files): Likewise.
34966         * modules/wcsnrtombs-tests (Files): Likewise.
34967         * modules/wcsrtombs-tests (Files): Likewise.
34968         * modules/wctype-tests (Files): Likewise.
34969         * modules/wcwidth-tests (Files): Likewise.
34970         * modules/xmemdup0-tests (Files): Likewise.
34971         * modules/xprintf-posix-tests (Files): Likewise.
34972         * modules/xvasprintf-tests (Files): Likewise.
34973
34974 2009-12-24  Eric Blake  <ebb9@byu.net>
34975
34976         test-nanosleep: fix typo
34977         * tests/test-nanosleep.c (SIGNATURE_CHECK): Fix typo in previous
34978         patch.
34979         Reported by Bruno Haible.
34980
34981 2009-12-24  Bruno Haible  <bruno@clisp.org>
34982
34983         Reduce namespace pollution on glibc systems.
34984         * lib/inttypes.in.h: Don't include <stdint.h> on glibc systems.
34985         * lib/stdlib.in.h: Don't include <stdint.h>, <unistd.h> on glibc
34986         systems.
34987         * lib/unistd.in.h: Don't include <stdio.h>, <fcntl.h>, <stdlib.h>,
34988         <getopt.h> on glibc systems.
34989         * lib/fcntl.in.h: Don't include <sys/stat.h>, <unistd.h> on glibc
34990         systems.
34991         * lib/fcntl.c: Include <unistd.h> here instead.
34992
34993 2009-12-24  Bruno Haible  <bruno@clisp.org>
34994
34995         * lib/stdlib.in.h (includes): Fix typo in today's commit.
34996
34997 2009-12-24  Eric Blake  <ebb9@byu.net>
34998
34999         tests: add signature checks
35000         * tests/signature.h (SIGNATURE_CHECK): New file.
35001         * modules/atexit-tests (Files): Use it.
35002         * modules/btowc-tests (Files): Likewise.
35003         * modules/canonicalize-lgpl-tests (Files): Likewise.
35004         * modules/ceilf-tests (Files): Likewise.
35005         * modules/ceill-tests (Files): Likewise.
35006         * modules/chown-tests (Files): Likewise.
35007         * modules/dprintf-posix-tests (Files): Likewise.
35008         * modules/dup2-tests (Files): Likewise.
35009         * modules/dup3-tests (Files): Likewise.
35010         * modules/duplocale-tests (Files): Likewise.
35011         * modules/fchdir-tests (Files): Likewise.
35012         * modules/fcntl-tests (Files): Likewise.
35013         * modules/fdopendir-tests (Files): Likewise.
35014         * modules/fflush-tests (Files): Likewise.
35015         * modules/flock-tests (Files): Likewise.
35016         * modules/floorf-tests (Files): Likewise.
35017         * modules/floorl-tests (Files): Likewise.
35018         * modules/fnmatch-tests (Files): Likewise.
35019         * modules/fopen-tests (Files): Likewise.
35020         * modules/fprintf-posix-tests (Files): Likewise.
35021         * modules/freopen-tests (Files): Likewise.
35022         * modules/frexp-nolibm-tests (Files): Likewise.
35023         * modules/frexp-tests (Files): Likewise.
35024         * modules/frexpl-nolibm-tests (Files): Likewise.
35025         * modules/frexpl-tests (Files): Likewise.
35026         * modules/fseek-tests (Files): Likewise.
35027         * modules/fseeko-tests (Files): Likewise.
35028         * modules/fsync-tests (Files): Likewise.
35029         * modules/ftell-tests (Files): Likewise.
35030         * modules/ftello-tests (Files): Likewise.
35031         * modules/futimens-tests (Files): Likewise.
35032         * modules/getaddrinfo-tests (Files): Likewise.
35033         * modules/getcwd-tests (Files): Likewise.
35034         * modules/getdelim-tests (Files): Likewise.
35035         * modules/getdtablesize-tests (Files): Likewise.
35036         * modules/getgroups-tests (Files): Likewise.
35037         * modules/gethostname-tests (Files): Likewise.
35038         * modules/getline-tests (Files): Likewise.
35039         * modules/getopt-posix-tests (Files): Likewise.
35040         * modules/gettimeofday-tests (Files): Likewise.
35041         * modules/glob-tests (Files): Likewise.
35042         * modules/iconv-tests (Files): Likewise.
35043         * modules/inet_ntop-tests (Files): Likewise.
35044         * modules/inet_pton-tests (Files): Likewise.
35045         * modules/isblank-tests (Files): Likewise.
35046         * modules/lchown-tests (Files): Likewise.
35047         * modules/ldexpl-tests (Files): Likewise.
35048         * modules/link-tests (Files): Likewise.
35049         * modules/linkat-tests (Files): Likewise.
35050         * modules/lseek-tests (Files): Likewise.
35051         * modules/lstat-tests (Files): Likewise.
35052         * modules/mbrtowc-tests (Files): Likewise.
35053         * modules/mbsinit-tests (Files): Likewise.
35054         * modules/mbsnrtowcs-tests (Files): Likewise.
35055         * modules/mbsrtowcs-tests (Files): Likewise.
35056         * modules/memchr-tests (Files): Likewise.
35057         * modules/memcmp-tests (Files): Likewise.
35058         * modules/memmem-tests (Files): Likewise.
35059         * modules/memrchr-tests (Files): Likewise.
35060         * modules/mkdir-tests (Files): Likewise.
35061         * modules/mkfifo-tests (Files): Likewise.
35062         * modules/mkfifoat-tests (Files): Likewise.
35063         * modules/mknod-tests (Files): Likewise.
35064         * modules/nanosleep-tests (Files): Likewise.
35065         * modules/nl_langinfo-tests (Files): Likewise.
35066         * modules/obstack-printf-tests (Files): Likewise.
35067         * modules/open-tests (Files): Likewise.
35068         * modules/openat-tests (Files): Likewise.
35069         * modules/perror-tests (Files): Likewise.
35070         * modules/pipe2-tests (Files): Likewise.
35071         * modules/poll-tests (Files): Likewise.
35072         * modules/popen-tests (Files): Likewise.
35073         * modules/posix_spawn-tests (Files): Likewise.
35074         * modules/posix_spawnp-tests (Files): Likewise.
35075         * modules/pread-tests (Files): Likewise.
35076         * modules/printf-posix-tests (Files): Likewise.
35077         * modules/pty-tests (Files): Likewise.
35078         * modules/random_r-tests (Files): Likewise.
35079         * modules/rawmemchr-tests (Files): Likewise.
35080         * modules/readlink-tests (Files): Likewise.
35081         * modules/remove-tests (Files): Likewise.
35082         * modules/rename-tests (Files): Likewise.
35083         * modules/renameat-tests (Files): Likewise.
35084         * modules/rmdir-tests (Files): Likewise.
35085         * modules/round-tests (Files): Likewise.
35086         * modules/roundf-tests (Files): Likewise.
35087         * modules/roundl-tests (Files): Likewise.
35088         * modules/select-tests (Files): Likewise.
35089         * modules/setenv-tests (Files): Likewise.
35090         * modules/sigaction-tests (Files): Likewise.
35091         * modules/sleep-tests (Files): Likewise.
35092         * modules/snprintf-posix-tests (Files): Likewise.
35093         * modules/snprintf-tests (Files): Likewise.
35094         * modules/sprintf-posix-tests (Files): Likewise.
35095         * modules/stat-tests (Files): Likewise.
35096         * modules/strcasestr-tests (Files): Likewise.
35097         * modules/strchrnul-tests (Files): Likewise.
35098         * modules/strerror-tests (Files): Likewise.
35099         * modules/strsignal-tests (Files): Likewise.
35100         * modules/strstr-tests (Files): Likewise.
35101         * modules/strtod-tests (Files): Likewise.
35102         * modules/strverscmp-tests (Files): Likewise.
35103         * modules/symlink-tests (Files): Likewise.
35104         * modules/symlinkat-tests (Files): Likewise.
35105         * modules/times-tests (Files): Likewise.
35106         * modules/trunc-tests (Files): Likewise.
35107         * modules/truncf-tests (Files): Likewise.
35108         * modules/truncl-tests (Files): Likewise.
35109         * modules/tsearch-tests (Files): Likewise.
35110         * modules/uname-tests (Files): Likewise.
35111         * modules/unlink-tests (Files): Likewise.
35112         * modules/unsetenv-tests (Files): Likewise.
35113         * modules/usleep-tests (Files): Likewise.
35114         * modules/utimensat-tests (Files): Likewise.
35115         * modules/vasprintf-tests (Files): Likewise.
35116         * modules/vdprintf-posix-tests (Files): Likewise.
35117         * modules/vfprintf-posix-tests (Files): Likewise.
35118         * modules/vprintf-posix-tests (Files): Likewise.
35119         * modules/vsnprintf-posix-tests (Files): Likewise.
35120         * modules/vsnprintf-tests (Files): Likewise.
35121         * modules/vsprintf-posix-tests (Files): Likewise.
35122         * modules/wcrtomb-tests (Files): Likewise.
35123         * modules/wcsnrtombs-tests (Files): Likewise.
35124         * modules/wcsrtombs-tests (Files): Likewise.
35125         * modules/wcwidth-tests (Files): Likewise.
35126         * tests/test-isfinite.c (isfinite): Ensure macro declaration.
35127         * tests/test-isinf.c (isinf): Likewise.
35128         * tests/test-isnan.c (isnan): Likewise.
35129         * tests/test-signbit.c (signbit): Likewise.
35130         * tests/test-select.c (FD_CLR, FD_ISSET, FD_SET, FD_ZERO): Ensure
35131         declaration, either as macro or with correct signature.
35132         (select): Ensure function under test is declared with correct
35133         signature in correct header.
35134         * tests/test-atexit.c (atexit): Likewise.
35135         * tests/test-btowc.c (btowc): Likewise.
35136         * tests/test-canonicalize-lgpl.c (realpath)
35137         (canonicalize_file_name): Likewise.
35138         * tests/test-ceilf1.c (ceilf): Likewise.
35139         * tests/test-ceill.c (ceill): Likewise.
35140         * tests/test-chown.c (chown): Likewise.
35141         * tests/test-dprintf-posix.c (dprintf): Likewise.
35142         * tests/test-dup2.c (dup2): Likewise.
35143         * tests/test-dup3.c (dup3): Likewise.
35144         * tests/test-duplocale.c (duplocale): Likewise.
35145         * tests/test-fchdir.c (fchdir): Likewise.
35146         * tests/test-fchownat.c (fchownat): Likewise.
35147         * tests/test-fcntl.c (fcntl): Likewise.
35148         * tests/test-fdopendir.c (fdopendir): Likewise.
35149         * tests/test-fflush.c (fflush): Likewise.
35150         * tests/test-flock.c (flock): Likewise.
35151         * tests/test-floorf1.c (floorf): Likewise.
35152         * tests/test-floorl.c (floorl): Likewise.
35153         * tests/test-fnmatch.c (fnmatch): Likewise.
35154         * tests/test-fopen.c (fopen): Likewise.
35155         * tests/test-fprintf-posix.c (fprintf): Likewise.
35156         * tests/test-freopen.c (freopen): Likewise.
35157         * tests/test-frexp.c (frexp): Likewise.
35158         * tests/test-frexpl.c (frexpl): Likewise.
35159         * tests/test-fseek.c (fseek): Likewise.
35160         * tests/test-fseeko.c (fseeko): Likewise.
35161         * tests/test-fstatat.c (fstatat): Likewise.
35162         * tests/test-fsync.c (fsync): Likewise.
35163         * tests/test-ftell.c (ftell): Likewise.
35164         * tests/test-ftello.c (ftello): Likewise.
35165         * tests/test-futimens.c (futimens): Likewise.
35166         * tests/test-getaddrinfo.c (getaddrinfo, freeaddrinfo)
35167         (gai_strerror): Likewise.
35168         * tests/test-getcwd.c (getcwd): Likewise.
35169         * tests/test-getdelim.c (getdelim): Likewise.
35170         * tests/test-getdtablesize.c (getdtablesize): Likewise.
35171         * tests/test-getgroups.c (getgroups): Likewise.
35172         * tests/test-gethostname.c (gethostname): Likewise.
35173         * tests/test-getline.c (getline): Likewise.
35174         * tests/test-getopt.c (getopt, getopt_long, getopt_long_only):
35175         Likewise.
35176         * tests/test-gettimeofday.c (gettimeofday): Likewise.
35177         * tests/test-glob.c (glob, globfree): Likewise.
35178         * tests/test-iconv.c (iconv, iconv_open, iconv_close): Likewise.
35179         * tests/test-inet_ntop.c (inet_ntop): Likewise.
35180         * tests/test-inet_pton.c (inet_pton): Likewise.
35181         * tests/test-isblank.c (isblank): Likewise.
35182         * tests/test-lchown.c (lchown): Likewise.
35183         * tests/test-ldexpl.c (ldexpl): Likewise.
35184         * tests/test-link.c (link): Likewise.
35185         * tests/test-linkat.c (linkat): Likewise.
35186         * tests/test-lseek.c (lseek): Likewise.
35187         * tests/test-lstat.c (lstat): Likewise.
35188         * tests/test-mbrtowc.c (mbrtowc): Likewise.
35189         * tests/test-mbsinit.c (mbsinit): Likewise.
35190         * tests/test-mbsnrtowcs.c (mbsnrtowcs): Likewise.
35191         * tests/test-mbsrtowcs.c (mbsrtowcs): Likewise.
35192         * tests/test-memchr.c (memchr): Likewise.
35193         * tests/test-memcmp.c (memcmp): Likewise.
35194         * tests/test-memmem.c (memmem): Likewise.
35195         * tests/test-memrchr.c (memrchr): Likewise.
35196         * tests/test-mkdir.c (mkdir): Likewise.
35197         * tests/test-mkdirat.c (mkdirat): Likewise.
35198         * tests/test-mkfifo.c (mkfifo): Likewise.
35199         * tests/test-mkfifoat.c (mkfifoat, mknodat): Likewise.
35200         * tests/test-mknod.c (mknod): Likewise.
35201         * tests/test-nanosleep.c (nanosleep): Likewise.
35202         * tests/test-nl_langinfo.c (nl_langinfo): Likewise.
35203         * tests/test-obstack-printf.c (obstack_printf, obstack_vprintf):
35204         Likewise.
35205         * tests/test-open.c (open): Likewise.
35206         * tests/test-openat.c (openat): Likewise.
35207         * tests/test-perror.c (perror): Likewise.
35208         * tests/test-pipe2.c (pipe2): Likewise.
35209         * tests/test-poll.c (poll): Likewise.
35210         * tests/test-popen.c (popen, pclose): Likewise.
35211         * tests/test-posix_spawn1.c (posix_spawnp, posix_spawnattr_init)
35212         (posix_spawnattr_destroy, posix_spawnattr_setsigmask)
35213         (posix_spawnattr_setflags, posix_spawn_file_actions_init)
35214         (posix_spawn_file_actions_destroy)
35215         (posix_spawn_file_actions_addclose)
35216         (posix_spawn_file_actions_addopen)
35217         (posix_spawn_file_actions_adddup2): Likewise.
35218         * tests/test-posix_spawn3.c (posix_spawn): Likewise.
35219         * tests/test-pread.c (pread): Likewise.
35220         * tests/test-printf-posix.c (printf): Likewise.
35221         * tests/test-pty.c (openpty, forkpty): Likewise.
35222         * tests/test-random_r.c (srandom_r, initstate_r, setstate_r)
35223         (random_r): Likewise.
35224         * tests/test-rawmemchr.c (rawmemchr): Likewise.
35225         * tests/test-readlink.c (readlink): Likewise.
35226         * tests/test-remove.c (remove): Likewise.
35227         * tests/test-rename.c (rename): Likewise.
35228         * tests/test-renameat.c (renameat): Likewise.
35229         * tests/test-rmdir.c (rmdir): Likewise.
35230         * tests/test-round1.c (round): Likewise.
35231         * tests/test-roundf1.c (roundf): Likewise.
35232         * tests/test-roundl.c (roundl): Likewise.
35233         * tests/test-setenv.c (setenv): Likewise.
35234         * tests/test-sigaction.c (sigaction): Likewise.
35235         * tests/test-sleep.c (sleep): Likewise.
35236         * tests/test-snprintf.c (snprintf): Likewise.
35237         * tests/test-sprintf-posix.c (sprintf): Likewise.
35238         * tests/test-stat.c (stat): Likewise.
35239         * tests/test-stpncpy.c (stpncpy): Likewise.
35240         * tests/test-strcasestr.c (strcasestr): Likewise.
35241         * tests/test-strchrnul.c (strchrnul): Likewise.
35242         * tests/test-strerror.c (strerror): Likewise.
35243         * tests/test-strsignal.c (strsignal): Likewise.
35244         * tests/test-strstr.c (strstr): Likewise.
35245         * tests/test-strtod.c (strtod): Likewise.
35246         * tests/test-strverscmp.c (strverscmp): Likewise.
35247         * tests/test-symlink.c (symlink): Likewise.
35248         * tests/test-symlinkat.c (symlinkat, readlinkat): Likewise.
35249         * tests/test-times.c (times): Likewise.
35250         * tests/test-trunc1.c (trunc): Likewise.
35251         * tests/test-truncf1.c (truncf): Likewise.
35252         * tests/test-truncl.c (truncl): Likewise.
35253         * tests/test-tsearch.c (tdelete, tfind, tsearch, twalk):
35254         Likewise.
35255         * tests/test-uname.c (uname): Likewise.
35256         * tests/test-unlink.c (unlink): Likewise.
35257         * tests/test-unlinkat.c (unlinkat): Likewise.
35258         * tests/test-unsetenv.c (unsetenv): Likewise.
35259         * tests/test-usleep.c (usleep): Likewise.
35260         * tests/test-utimensat.c (utimensat): Likewise.
35261         * tests/test-vasprintf.c (asprintf, vasprintf): Likewise.
35262         * tests/test-vdprintf-posix.c (vdprintf): Likewise.
35263         * tests/test-vfprintf-posix.c (vfprintf): Likewise.
35264         * tests/test-vprintf-posix.c (vprintf): Likewise.
35265         * tests/test-vsnprintf.c (vsnprintf): Likewise.
35266         * tests/test-vsprintf-posix.c (vsprintf): Likewise.
35267         * tests/test-wcrtomb.c (wcrtomb): Likewise.
35268         * tests/test-wcsnrtombs.c (wcsnrtombs): Likewise.
35269         * tests/test-wcsrtombs.c (wcsrtombs): Likewise.
35270         * tests/test-wcwidth.c (wcwidth): Likewise.
35271
35272         build: pull in conditional headers during GNULIB_POSIXCHECK
35273         * lib/stdio.in.h (includes): Using GNULIB_POSIXCHECK also requires
35274         definitions from any conditionally-included headers.
35275         * lib/stdlib.in.h (includes): Likewise.
35276         * lib/unistd.in.h (includes): Likewise.
35277
35278 2009-12-24  Bruno Haible  <bruno@clisp.org>
35279
35280         * tests/test-argv-iter.c: Include header file being tested immediately
35281         after config.h.
35282         * tests/test-base64.c: Likewise.
35283         * tests/test-flock.c: Likewise.
35284         * tests/test-fsync.c: Likewise.
35285         * tests/test-getdate.c: Likewise.
35286         * tests/test-getndelim2.c: Likewise.
35287         * tests/test-isfinite.c: Likewise.
35288         * tests/test-isinf.c: Likewise.
35289         * tests/test-strerror.c: Likewise.
35290         * tests/test-strsignal.c: Likewise.
35291
35292 2009-12-23  Eric Blake  <ebb9@byu.net>
35293
35294         unistd: work around cygwin bug
35295         * lib/unistd.in.h (includes): Pick up headers needed for cygwin.
35296         * doc/posix-functions/unlinkat.texi (unlinkat): Document the bug.
35297         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
35298
35299 2009-12-23  Bruno Haible  <bruno@clisp.org>
35300
35301         localename: More tests.
35302         * tests/test-localename.c (SIZEOF): New macro.
35303         (categories): New variable.
35304         (test_locale_name, test_locale_name_posix, test_locale_name_environ,
35305         test_locale_name_default): Add test w.r.t. thread locale.
35306         (test_locale_name_thread): New function.
35307         (main): Invoke it.
35308
35309         localename: Make aware of thread locale.
35310         * lib/localename.h (gl_locale_name_thread): New declaration.
35311         (gl_locale_name, gl_locale_name_posix, gl_locale_name_default): Clarify
35312         behaviour with respect to thread locale.
35313         * lib/localename.c: Include <limits.h>, <stddef.h>, <xlocale.h>,
35314         <langinfo.h>, glthread/lock.h.
35315         (SIZE_BITS): New macro.
35316         (string_hash): New function.
35317         (struct hash_node): New type.
35318         (HASH_TABLE_SIZE): New macro.
35319         (struniq_hash_table, struniq_lock): New variables.
35320         (struniq): New function.
35321         (gl_locale_name_thread): New function.
35322         (gl_locale_name): Invoke it.
35323         * m4/localename.m4 (gl_LOCALENAME): Test for uselocale function.
35324         * modules/localename (Depends-on): Add lock.
35325         Reported by Mike Gran <spk121@yahoo.com>.
35326
35327 2009-12-23  Eric Blake  <ebb9@byu.net>
35328
35329         va-args: new module
35330         * modules/va-args: New file.
35331         * m4/va-args.m4 (gl_VA_ARGS): Likewise.
35332         * MODULES.html.sh (Core language properties): Mention it.
35333
35334         gnulib-common: prefer _GL_UNUSED over _UNUSED_PARAMETER_
35335         * m4/gnulib-common.m4 (gl_COMMON): Create a more-appropriately
35336         named alias for __attribute__((__unused__)).
35337         * lib/chown.c: Update client.
35338         * lib/fchmodat.c: Likewise.
35339         * lib/fts.c: Likewise.
35340         * lib/getdate.y: Likewise.
35341         * lib/getgroups.c: Likewise.
35342         * lib/getopt.c: Likewise.
35343         * lib/getugroups.c: Likewise.
35344         * lib/mkdir.c: Likewise.
35345         * lib/mkfifo.c: Likewise.
35346         * lib/mkfifoat.c: Likewise.
35347         * lib/mknod.c: Likewise.
35348         * lib/mknodat.c: Likewise.
35349         * lib/readlink.c: Likewise.
35350         * lib/se-context.in.h: Likewise.
35351         * lib/se-selinux.in.h: Likewise.
35352         * lib/sockets.c: Likewise.
35353         * lib/symlink.c: Likewise.
35354         * lib/symlinkat.c: Likewise.
35355         * lib/unicodeio.c: Likewise.
35356         * lib/unistr.h: Likewise.
35357         * tests/test-areadlink.c: Likewise.
35358         * tests/test-areadlinkat.c: Likewise.
35359         * tests/test-filenamecat.c: Likewise.
35360         * tests/test-fseeko.c: Likewise.
35361         * tests/test-ftello.c: Likewise.
35362         * tests/test-getdate.c: Likewise.
35363         * tests/test-getgroups.c: Likewise.
35364         * tests/test-gethostname.c: Likewise.
35365         * tests/test-quotearg.c: Likewise.
35366         * tests/test-version-etc.c: Likewise.
35367         * tests/test-xalloc-die.c: Likewise.
35368         * tests/test-xfprintf-posix.c: Likewise.
35369         * tests/test-xprintf-posix.c: Likewise.
35370         * tests/test-xvasprintf.c: Likewise.
35371
35372         tests: avoid compiler warnings
35373         * tests/test-fcntl.c (main): Delete unused parameters.
35374         * tests/test-freopen-safer.c (main): Likewise.
35375         * tests/test-xalloc-die.c (main): Mark unused parameters.
35376         * tests/test-fseeko.c (main): Likewise.
35377         * tests/test-ftello.c (main): Likewise.
35378         * tests/test-nanosleep.c (main): Avoid declaration warning.
35379         * tests/test-sleep.c (main): Likewise.
35380         * tests/test-unsetenv.c (main): Silence warning about string
35381         literal.
35382         * m4/setenv.m4 (gl_FUNC_UNSETENV): Likewise.
35383
35384 2009-12-23  Bruno Haible  <bruno@clisp.org>
35385
35386         * tests/test-localename.c (test_locale_name): New function, extracted
35387         from main. Also test mixed situations.
35388         (test_locale_name_posix, test_locale_name_environ,
35389         test_locale_name_default): New functions.
35390         (main): Invoke them all.
35391         * modules/localename-tests (configure.ac): Test for newlocale.
35392
35393 2009-12-23  Bruno Haible  <bruno@clisp.org>
35394
35395         unistd: Ensure getcwd gets declared before being overridden.
35396         * lib/unistd.in.h: Conditionally include <io.h>.
35397
35398 2009-12-22  Bruno Haible  <bruno@clisp.org>
35399
35400         wchar: Diagnose broken combination of glibc and gcc versions and flags.
35401         * m4/wchar.m4 (gl_WCHAR_H_INLINE_OK): New macro.
35402         (gl_WCHAR_H): Invoke it.
35403         * m4/btowc.m4 (gl_FUNC_BTOWC): Require it.
35404         * doc/posix-headers/wchar.texi: Mention the interoperability problem.
35405         Reported by Karl Berry <karl@freefriends.org>.
35406
35407 2009-12-22  Eric Blake  <ebb9@byu.net>
35408
35409         math, unistd: avoid redundant includes
35410         * lib/math.in.h (isnan): No need to re-include <math.h>.
35411         * lib/unistd.in.h (getcwd): Likewise, for <stdlib.h>.
35412
35413         getsubopt: work around cygwin bug
35414         * lib/stdlib.in.h (includes): Move unistd inclusion sooner, to
35415         avoid conflicting with system getsubopt.
35416         * doc/posix-functions/getsubopt.texi (getsubopt): Document the
35417         bug.
35418
35419         getopt: synchronize from glibc
35420         * lib/getopt.c (_getopt_initialize, _getopt_internal_r): Swap
35421         parameter order.  Adjust all callers.
35422         (_getopt_internal_r, main): Adjust quoting in error messages.
35423         Drop considerations for outdated POSIX 1003.2 error message.
35424         * lib/getopt1.c (_getopt_long_r, _getopt_long_only_r): Adjust
35425         callers.
35426         * lib/getopt_int.h (_getopt_internal_r): Adjust prototype.
35427
35428         test-getopt: test stderr behavior
35429         * modules/getopt-posix-tests (Depends-on): Add dup2.
35430         * tests/test-getopt.c (ASSERT): Avoid stderr.
35431         (main): Move stderr to a temporary file.
35432         * tests/test-getopt.h (getopt_loop): No longer manipulate opterr.
35433         Instead, add parameter to inform caller if output occurred.
35434         (test_getopt): Adjust all existing tests to expect silence, and
35435         add new tests of leading ":".
35436         * doc/glibc-functions/getopt_long.texi (getopt_long): Document
35437         glibc shortcomings with leading "-:" or "+:" in optstring.
35438         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
35439         Likewise.
35440         * doc/posix-functions/getopt.texi (getopt): Likewise.
35441
35442         test-getopt: enhance test
35443         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Require that getopt_long
35444         supports optind=0.
35445         * tests/test-getopt.c (OPTIND_MIN): Move...
35446         * tests/test-getopt.h (OPTIND_MIN): ...here.
35447         * tests/test-getopt_long.h (test_getopt_long): Add more coverage.
35448         Require that optind=0 works, since modern BSD supports it in
35449         addition to optreset, and since coreutils expects it.
35450         (test_getopt_long_only): New test.
35451         * doc/glibc-functions/getopt_long.texi (getopt_long): Document
35452         glibc shortcomings with 'W;', and enforcement of optind=0.
35453         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
35454         Likewise.
35455
35456 2009-12-21  Bruno Haible  <bruno@clisp.org>
35457
35458         localename: Improvements for MacOS X and Cygwin.
35459         * lib/localename.h (gl_locale_name_environ): New declaration.
35460         * lib/localename.c (gl_locale_name_environ): New function, extracted from
35461         gl_locale_name_posix. Ignore dummy LANG values on MacOS X and Cygwin.
35462         (gl_locale_name_posix): Invoke it.
35463         (gl_locale_name_default): Add comments. Use Windows native API also on
35464         Cygwin.
35465
35466 2009-12-21  Bruno Haible  <bruno@clisp.org>
35467
35468         Update list of Win32 locale ids.
35469         * lib/localename.c (LANG_ROMANSH): Renamed from LANG_RHAETO_ROMANCE.
35470         (LANG_SAMI): Renamed from LANG_SAAMI.
35471         (LANG_BASHKIR, LANG_LUXEMBOURGISH, LANG_GREENLANDIC,
35472         LANG_MAPUDUNGUN, LANG_MOHAWK, LANG_BRETON, LANG_OCCITAN, LANG_CORSICAN,
35473         LANG_ALSATIAN, LANG_YAKUT, LANG_KICHE, LANG_KINYARWANDA, LANG_WOLOF,
35474         LANG_DARI, LANG_SCOTTISH_GAELIC): New macros.
35475         (SUBLANG_AFRIKAANS_SOUTH_AFRICA, SUBLANG_ALBANIAN_ALBANIA,
35476         SUBLANG_ALSATIAN_FRANCE, SUBLANG_AMHARIC_ETHIOPIA,
35477         SUBLANG_ARMENIAN_ARMENIA, SUBLANG_ASSAMESE_INDIA,
35478         SUBLANG_BASHKIR_RUSSIA, SUBLANG_BASQUE_BASQUE,
35479         SUBLANG_BELARUSIAN_BELARUS, SUBLANG_BRETON_FRANCE,
35480         SUBLANG_BULGARIAN_BULGARIA, SUBLANG_CAMBODIAN_CAMBODIA,
35481         SUBLANG_CATALAN_SPAIN, SUBLANG_CORSICAN_FRANCE,
35482         SUBLANG_CZECH_CZECH_REPUBLIC, SUBLANG_DANISH_DENMARK,
35483         SUBLANG_DARI_AFGHANISTAN, SUBLANG_DIVEHI_MALDIVES,
35484         SUBLANG_DUTCH_SURINAM, SUBLANG_ESTONIAN_ESTONIA,
35485         SUBLANG_FAEROESE_FAROE_ISLANDS, SUBLANG_FARSI_IRAN,
35486         SUBLANG_FINNISH_FINLAND, SUBLANG_FRISIAN_NETHERLANDS,
35487         SUBLANG_GALICIAN_SPAIN, SUBLANG_GEORGIAN_GEORGIA,
35488         SUBLANG_GREEK_GREECE, SUBLANG_GREENLANDIC_GREENLAND,
35489         SUBLANG_GUJARATI_INDIA, SUBLANG_HAUSA_NIGERIA_LATIN,
35490         SUBLANG_HEBREW_ISRAEL, SUBLANG_HINDI_INDIA, SUBLANG_HUNGARIAN_HUNGARY,
35491         SUBLANG_ICELANDIC_ICELAND, SUBLANG_IGBO_NIGERIA,
35492         SUBLANG_INDONESIAN_INDONESIA, SUBLANG_INUKTITUT_CANADA,
35493         SUBLANG_INUKTITUT_CANADA_LATIN, SUBLANG_IRISH_IRELAND,
35494         SUBLANG_JAPANESE_JAPAN, SUBLANG_KANNADA_INDIA,
35495         SUBLANG_KAZAK_KAZAKHSTAN, SUBLANG_KICHE_GUATEMALA,
35496         SUBLANG_KINYARWANDA_RWANDA, SUBLANG_KONKANI_INDIA,
35497         SUBLANG_KYRGYZ_KYRGYZSTAN, SUBLANG_LAO_LAOS, SUBLANG_LATVIAN_LATVIA,
35498         SUBLANG_LITHUANIAN_LITHUANIA, SUBLANG_LOWER_SORBIAN_GERMANY,
35499         SUBLANG_LUXEMBOURGISH_LUXEMBOURG, SUBLANG_MACEDONIAN_MACEDONIA,
35500         SUBLANG_MALAYALAM_INDIA, SUBLANG_MALTESE_MALTA,
35501         SUBLANG_MAORI_NEW_ZEALAND, SUBLANG_MAPUDUNGUN_CHILE,
35502         SUBLANG_MARATHI_INDIA, SUBLANG_MOHAWK_CANADA, SUBLANG_NEPALI_NEPAL,
35503         SUBLANG_OCCITAN_FRANCE, SUBLANG_ORIYA_INDIA,
35504         SUBLANG_PASHTO_AFGHANISTAN, SUBLANG_POLISH_POLAND,
35505         SUBLANG_ROMANSH_SWITZERLAND, SUBLANG_SAMI_NORTHERN_NORWAY,
35506         SUBLANG_SAMI_NORTHERN_SWEDEN, SUBLANG_SAMI_NORTHERN_FINLAND,
35507         SUBLANG_SAMI_LULE_NORWAY, SUBLANG_SAMI_LULE_SWEDEN,
35508         SUBLANG_SAMI_SOUTHERN_NORWAY, SUBLANG_SAMI_SOUTHERN_SWEDEN,
35509         SUBLANG_SAMI_SKOLT_FINLAND, SUBLANG_SAMI_INARI_FINLAND,
35510         SUBLANG_SANSKRIT_INDIA, SUBLANG_SINHALESE_SRI_LANKA,
35511         SUBLANG_SLOVAK_SLOVAKIA, SUBLANG_SLOVENIAN_SLOVENIA,
35512         SUBLANG_SOTHO_SOUTH_AFRICA, SUBLANG_SWAHILI_KENYA,
35513         SUBLANG_SWEDISH_SWEDEN, SUBLANG_SYRIAC_SYRIA,
35514         SUBLANG_TAGALOG_PHILIPPINES, SUBLANG_TAJIK_TAJIKISTAN,
35515         SUBLANG_TAMIL_INDIA, SUBLANG_TATAR_RUSSIA, SUBLANG_TELUGU_INDIA,
35516         SUBLANG_THAI_THAILAND, SUBLANG_TSWANA_SOUTH_AFRICA,
35517         SUBLANG_TURKISH_TURKEY, SUBLANG_TURKMEN_TURKMENISTAN,
35518         SUBLANG_UKRAINIAN_UKRAINE, SUBLANG_UPPER_SORBIAN_GERMANY,
35519         SUBLANG_VIETNAMESE_VIETNAM, SUBLANG_WELSH_UNITED_KINGDOM,
35520         SUBLANG_WOLOF_SENEGAL, SUBLANG_XHOSA_SOUTH_AFRICA,
35521         SUBLANG_YAKUT_RUSSIA, SUBLANG_YI_PRC, SUBLANG_YORUBA_NIGERIA,
35522         SUBLANG_ZULU_SOUTH_AFRICA): New macros.
35523         (gl_locale_name_from_win32_LANGID): Handle also the territory neutral
35524         locale ids. Add support for Alsatian, Bashkir, Breton, Corsican, Dari,
35525         Greenlandic, K'iche', Kinyarwanda, Luxembourgish, Mapudungun, Mohawk,
35526         Occitan, Scottish Gaelic, Wolof, Yakut. Change language code for Yi.
35527         Add more languages and countries for Sami, Sorbian. Add more countries
35528         for Serbian, Dutch. Add more scripts for Inuktitut. Be more precise
35529         for Pashto. Change country for Syriac, Tswana.
35530
35531 2009-12-21  Eric Blake  <ebb9@byu.net>
35532
35533         test-utimens: avoid spurious failure
35534         * tests/test-chown.h (nap): Factor...
35535         * tests/nap.h: ...into new file.
35536         * tests/test-lchown.h (nap): Avoid duplication.
35537         * tests/test-utimens-common.h (nap): Use shared implementation,
35538         necessary on file systems with 1-second resolution.
35539         * modules/chown-tests (Files): Include new file.
35540         * modules/fdutimensat-tests (Files): Likewise.
35541         * modules/futimens-tests (Files): Likewise.
35542         * modules/lchown-tests (Files): Likewise.
35543         * modules/openat-tests (Files): Likewise.
35544         * modules/utimens-tests (Files): Likewise.
35545         * modules/utimensat-tests (Files): Likewise.
35546
35547 2009-12-19  Eric Blake  <ebb9@byu.net>
35548
35549         futimens, utimensat: work around Linux bug
35550         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Detect ctime bug.
35551         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
35552         * lib/utimensat.c (rpl_utimensat): Work around it.
35553         * lib/futimens.c (rpl_futimens): Adjust comment.
35554
35555         utimens: work around Linux ctime bug
35556         * lib/utimens.c (detect_ctime_bug): New helper function.
35557         (update_timespec): Differentiate between workaround needed for
35558         this bug vs. what is needed for systems that lack utimensat.
35559         (fdutimens, lutimens): Work around bug.
35560
35561         utimens: check for ctime update
35562         * tests/test-utimens-common.h (check_ctime): Define.
35563         * tests/test-utimens.h (test_utimens): Expose the Linux bug.
35564         * tests/test-futimens.h (test_futimens): Likewise.
35565         * tests/test-lutimens.h (test_lutimens): Likewise.
35566         * doc/posix-functions/futimens.texi (futimens): Document the bug.
35567         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
35568
35569 2009-12-19  Bruno Haible  <bruno@clisp.org>
35570
35571         dprintf-posix: Check against memory leak fixed on 2009-12-15.
35572         * tests/test-dprintf-posix2.sh: New file.
35573         * tests/test-dprintf-posix2.c: New file.
35574         * modules/dprintf-posix-tests (Files): Add them.
35575         (configure.ac): Check for getrlimit and setrlimit.
35576         (Makefile.am): Augment TESTS and CHECK_PROGRAMS.
35577
35578 2009-12-19  Bruno Haible  <bruno@clisp.org>
35579
35580         fprintf-posix: Check against memory leak fixed on 2009-12-15.
35581         * tests/test-fprintf-posix3.sh: New file.
35582         * tests/test-fprintf-posix3.c: New file.
35583         * modules/fprintf-posix-tests (Files): Add them.
35584         (Makefile.am): Augment TESTS and CHECK_PROGRAMS.
35585
35586 2009-12-19  Eric Blake  <ebb9@byu.net>
35587
35588         dirfd: fix prototype
35589         * lib/dirent.in.h (dirfd): Argument is not const, per POSIX.
35590         * lib/dirfd.c (dirfd): Likewise.
35591
35592         canonicalize: reduce memory usage
35593         * lib/canonicalize.c (canonicalize_filename_mode): Trim the
35594         allocation to size.
35595         Reported by Solar Designer <solar@openwall.com>.
35596
35597 2009-12-19  Bruno Haible  <bruno@clisp.org>
35598
35599         New module attribute 'Applicability'.
35600         * modules/TEMPLATE-EXTENDED: New field 'Applicability'.
35601         * gnulib-tool: New option --extract-applicability.
35602         (func_usage): Document it.
35603         (sed_extract_prog): Recognize it.
35604         (func_get_applicability): New function.
35605         (func_import): Generalize handling of 'link-warning' module.
35606         * modules/link-warning (Applicability): New section.
35607         * modules/arg-nonnull (Applicability): New section.
35608         Repoted by Simon Josefsson <simon@josefsson.org>.
35609
35610 2009-12-19  Bruno Haible  <bruno@clisp.org>
35611
35612         fflush: tweak
35613         * lib/fflush.c (update_fpos_cache): Don't use fpos_t on Cygwin.
35614         * lib/fseeko.c (rpl_fseeko): Likewise.
35615
35616 2009-12-16  José E. Marchesi  <jemarch@gnu.org>  (tiny change)
35617
35618         * lib/gl_list.h: Fix typo in comment.
35619
35620 2009-12-16  Eric Blake  <ebb9@byu.net>
35621
35622         fcntl: use to simplify other modules
35623         * modules/cloexec (Depends-on): Add fcntl.
35624         * modules/fchdir (Depends-on): Likewise.
35625         * modules/fd-safer-flag (Depends-on): Likewise.
35626         * modules/unistd-safer (Depends-on): Likewise.
35627         * modules/dup3 (configure.ac): Set module indicator.
35628         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Replace fcntl if fchdir is
35629         missing.
35630         * lib/fchdir.c (_gl_register_dup): Fix comment.
35631         * lib/cloexec.c (dup_cloexec): Simplify, by relying on fcntl.
35632         * lib/dup-safer.c (dup_safer): Likewise.
35633         * lib/dup-safer-flag.c (dup_safer_flag): Likewise.
35634         * lib/dup3.c (dup3): Likewise.
35635         * tests/test-fchdir.c (main): Enhance test.
35636         Fixes a dup_cloexec bug reported by Ondřej Vašík.
35637
35638         fcntl: port portions of fcntl to mingw
35639         * m4/fcntl.m4 (gl_FUNC_FCNTL): Also build fcntl.c on mingw.
35640         * lib/fcntl.c (fcntl) <F_DUPFD, F_DUPFD_CLOEXEC, F_GETFD>: Provide
35641         replacement for mingw.
35642         * modules/fcntl (Description): Update.
35643         (Depends-on): Add dup2.
35644         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Add witness.
35645         * modules/fcntl-h (Makefile.am): Substitute it.
35646         * lib/fcntl.in.h (fcntl): Update declaration.
35647         (F_DUPFD, F_GETFD): New macros, when needed.
35648         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
35649         * doc/posix-functions/fcntl.texi (fcntl): Likewise.
35650         * tests/test-fcntl.c (check_flags, main): Enhance test for items
35651         we now guarantee.
35652
35653         fcntl: work around cygwin bug in F_DUPFD
35654         * m4/fcntl.m4 (gl_REPLACE_FCNTL): New macro.
35655         (gl_FUNC_FCNTL): Use it.  Test for F_DUPFD bug.
35656         * lib/fcntl.c (rpl_fcntl) <F_DUPFD>: Work around it.
35657         <F_DUPFD_CLOEXEC>: Reduce calls to _gl_register_dup.
35658         * doc/posix-functions/fcntl.texi (fcntl): Document it.
35659
35660         fcntl: support F_DUPFD_CLOEXEC on systems with fcntl
35661         * modules/fcntl (Files): List new files.
35662         (configure.ac): Run a test.
35663         * m4/fcntl.m4 (gl_FUNC_FCNTL): New file.
35664         * lib/fcntl.c (rpl_fcntl): Likewise.
35665         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Add witness defaults.
35666         (gl_FCNTL_H): Always replace fcntl.h.
35667         * modules/fcntl-h (Makefile.am): Substitute witnesses.
35668         * lib/fcntl.in.h (fcntl): Declare replacement.
35669         (F_DUPFD_CLOEXEC, GNULIB_defined_F_DUPFD_CLOEXEC): New macro when
35670         needed, plus a witness.
35671         * doc/posix-functions/fcntl.texi (fcntl): Document this.
35672         * doc/posix-headers/fcntl.texi (fcntl.h): Likewise.
35673         * tests/test-fcntl.c: New file.
35674         * modules/fcntl-tests: Likewise.
35675
35676         binary-io: avoid potential compilation warning
35677         * lib/binary-io.h [__DJGPP__]: Avoid null preprocessor
35678         directives.
35679
35680         fflush: avoid compilation error on NetBSD
35681         * lib/fflush.c (update_fpos_cache): Use a union to safely convert
35682         between off_t and fpos_t, since the latter is sometimes a struct.
35683         * lib/fseeko.c (rpl_fseeko): Likewise.
35684         Reported by Alexander Nasonov <alnsn@yandex.ru>.
35685
35686 2009-12-15  Eric Blake  <ebb9@byu.net>
35687
35688         fcntl-h, stdio, sys_ioctl: fix declarations
35689         * lib/stdio.in.h (dprintf): Use of link warning on a variadic
35690         function must not take arguments.
35691         * lib/sys_ioctl.in.h (ioctl): Likewise.
35692         * lib/fcntl.in.h (openat): Likewise.  Declare extern.
35693         (open): Add a link warning.
35694
35695 2009-12-15  Jim Meyering  <meyering@redhat.com>
35696
35697         areadlink, areadlink-with-size: relax license to LGPLv2+
35698         * modules/areadlink (License): Relax to LGPLv2+.
35699         * modules/areadlink-with-size (License): Likewise.
35700
35701 2009-12-15  Joel E. Denny  <jdenny@clemson.edu>
35702             Bruno Haible  <bruno@clisp.org>
35703
35704         *printf: Fix memory leak.
35705         * lib/fprintf.c (fprintf): Free memory allocated by vasnprintf.
35706         * lib/vfprintf.c (vfprintf): Likewise.
35707         * lib/dprintf.c (dprintf): Likewise.
35708         * lib/vdprintf.c (vdprintf): Likewise.
35709
35710 2009-12-14  Eric Blake  <ebb9@byu.net>
35711
35712         accept4: adjust module dependencies
35713         * modules/accept4 (Depends-on): Use fcntl-h, not fcntl.
35714
35715         utimens: one more try at avoiding compiler warning
35716         * lib/utimens.c (lutimens): Lower scope of result.
35717
35718 2009-12-13  Bruno Haible  <bruno@clisp.org>
35719
35720         Move the malloc checking from module 'list' to new module 'xlist'.
35721         * modules/xlist: New file.
35722         * lib/gl_xlist.h: New file.
35723         * lib/gl_xlist.c: New file.
35724         * lib/gl_list.h (gl_list_create_empty, gl_list_create,
35725         gl_list_node_set_value, gl_list_set_at, gl_list_add_first,
35726         gl_list_add_last, gl_list_add_before, gl_list_add_after,
35727         gl_list_nx_add_at, gl_sortedlist_add): Disable declarations.
35728         (gl_list_nx_create_empty, gl_list_nx_create, gl_list_node_nx_set_value,
35729         gl_list_nx_set_at, gl_list_nx_add_first, gl_list_nx_add_last,
35730         gl_list_nx_add_before, gl_list_nx_add_after, gl_list_nx_add_at,
35731         gl_sortedlist_nx_add): New declarations.
35732         (struct gl_list_implementation): Rename and change methods accordingly.
35733         (gl_list_nx_create_empty): Renamed from gl_list_create_empty.
35734         (gl_list_nx_create): Renamed from gl_list_create.
35735         (gl_list_node_nx_set_value): Renamed from gl_list_node_set_value.
35736         (gl_list_nx_set_at): Renamed from gl_list_set_at.
35737         (gl_list_nx_add_first): Renamed from gl_list_add_first.
35738         (gl_list_nx_add_last): Renamed from gl_list_add_last.
35739         (gl_list_nx_add_before): Renamed from gl_list_add_before.
35740         (gl_list_nx_add_after): Renamed from gl_list_add_after.
35741         (gl_list_nx_add_at): Renamed from gl_list_add_at.
35742         (gl_sortedlist_nx_add): Renamed from gl_sortedlist_add.
35743         * lib/gl_list.c (gl_list_nx_create_empty): Renamed from
35744         gl_list_create_empty.
35745         (gl_list_nx_create): Renamed from gl_list_create.
35746         (gl_list_node_nx_set_value): Renamed from gl_list_node_set_value.
35747         (gl_list_nx_set_at): Renamed from gl_list_set_at.
35748         (gl_list_nx_add_first): Renamed from gl_list_add_first.
35749         (gl_list_nx_add_last): Renamed from gl_list_add_last.
35750         (gl_list_nx_add_before): Renamed from gl_list_add_before.
35751         (gl_list_nx_add_after): Renamed from gl_list_add_after.
35752         (gl_list_nx_add_at): Renamed from gl_list_add_at.
35753         (gl_sortedlist_nx_add): Renamed from gl_sortedlist_add.
35754         * lib/gl_array_list.c: Don't include xalloc.h.
35755         (gl_array_nx_create_empty): Renamed from gl_array_create_empty. Return
35756         NULL upon out-of-memory.
35757         (gl_array_nx_create): Renamed from gl_array_create. Return NULL upon
35758         out-of-memory.
35759         (gl_array_node_nx_set_value): Renamed from gl_array_node_set_value.
35760         Change return type to 'int'.
35761         (gl_array_nx_set_at): Renamed from gl_array_set_at.
35762         (grow): Change return type to 'int'. Return -1 upon out-of-memory.
35763         (gl_array_nx_add_first): Renamed from gl_array_add_first. Return NULL
35764         upon out-of-memory.
35765         (gl_array_nx_add_last): Renamed from gl_array_add_last. Return NULL
35766         upon out-of-memory.
35767         (gl_array_nx_add_before): Renamed from gl_array_add_before. Return NULL
35768         upon out-of-memory.
35769         (gl_array_nx_add_after): Renamed from gl_array_add_after. Return NULL
35770         upon out-of-memory.
35771         (gl_array_nx_add_at): Renamed from gl_array_add_at. Return NULL upon
35772         out-of-memory.
35773         (gl_array_sortedlist_nx_add): Renamed from gl_array_sortedlist_add.
35774         Update.
35775         (gl_array_list_implementation): Update.
35776         * lib/gl_carray_list.c: Don't include xalloc.h.
35777         (gl_carray_nx_create_empty): Renamed from gl_carray_create_empty.
35778         Return NULL upon out-of-memory.
35779         (gl_carray_nx_create): Renamed from gl_carray_create. Return NULL upon
35780         out-of-memory.
35781         (gl_carray_node_nx_set_value): Renamed from gl_carray_node_set_value.
35782         Change return type to 'int'.
35783         (gl_carray_nx_set_at): Renamed from gl_carray_set_at.
35784         (grow): Change return type to 'int'. Return -1 upon out-of-memory.
35785         (gl_carray_nx_add_first): Renamed from gl_carray_add_first. Return NULL
35786         upon out-of-memory.
35787         (gl_carray_nx_add_last): Renamed from gl_carray_add_last. Return NULL
35788         upon out-of-memory.
35789         (gl_carray_nx_add_at): Renamed from gl_carray_add_at. Return NULL upon
35790         out-of-memory.
35791         (gl_carray_nx_add_before): Renamed from gl_carray_add_before. Update.
35792         (gl_carray_nx_add_after): Renamed from gl_carray_add_after. Update.
35793         (gl_carray_sortedlist_nx_add): Renamed from gl_carray_sortedlist_add.
35794         Update.
35795         (gl_carray_list_implementation): Update.
35796         * lib/gl_anyhash_list2.h (hash_resize): Do nothing upon out-of-memory.
35797         * lib/gl_anylinked_list2.h (gl_linked_nx_create_empty): Renamed from
35798         gl_linked_create_empty. Return NULL upon out-of-memory.
35799         (gl_linked_nx_create): Renamed from gl_linked_create. Return NULL upon
35800         out-of-memory.
35801         (gl_linked_node_nx_set_value): Renamed from gl_linked_node_set_value.
35802         Change return type to 'int'. Return -1 upon out-of-memory.
35803         (gl_linked_nx_set_at): Renamed from gl_linked_set_at. Return NULL upon
35804         out-of-memory.
35805         (gl_linked_nx_add_first): Renamed from gl_linked_add_first. Return NULL
35806         upon out-of-memory.
35807         (gl_linked_nx_add_last): Renamed from gl_linked_add_last. Return NULL
35808         upon out-of-memory.
35809         (gl_linked_nx_add_before): Renamed from gl_linked_add_before. Return
35810         NULL upon out-of-memory.
35811         (gl_linked_nx_add_after): Renamed from gl_linked_add_after. Return NULL
35812         upon out-of-memory.
35813         (gl_linked_nx_add_at): Renamed from gl_linked_add_at. Return NULL upon
35814         out-of-memory.
35815         (gl_linked_sortedlist_nx_add): Renamed from gl_linked_sortedlist_add.
35816         Update.
35817         * lib/gl_linked_list.c: Don't include xalloc.h.
35818         (gl_linked_list_implementation): Update.
35819         * lib/gl_linkedhash_list.c: Don't include xalloc.h.
35820         (add_to_bucket): Change return type to 'int'.
35821         (gl_linkedhash_list_implementation): Update.
35822         * lib/gl_anytree_list1.h (free_subtree): New function.
35823         * lib/gl_anytree_list2.h (gl_tree_nx_create_empty): Renamed from
35824         gl_tree_create_empty. Return NULL upon out-of-memory.
35825         (gl_tree_node_nx_set_value): Renamed from gl_tree_node_set_value.
35826         Change return type to 'int'. Return -1 upon out-of-memory.
35827         (gl_tree_nx_set_at): Renamed from gl_tree_set_at. Return NULL upon
35828         out-of-memory.
35829         (gl_tree_nx_add_at): Renamed from gl_tree_add_at. Update.
35830         (gl_tree_remove_node): New function, moved here from
35831         lib/gl_anyavltree_list2.h and lib/gl_anyrbtree_list2.h.
35832         (gl_tree_sortedlist_nx_add): Renamed from gl_tree_sortedlist_add.
35833         Update.
35834         * lib/gl_anyavltree_list2.h (create_subtree_with_contents): Use
35835         malloc, not xmalloc. Return NULL upon out-of-memory.
35836         (gl_tree_nx_create): Renamed from gl_tree_create. Return NULL upon
35837         out-of-memory.
35838         (gl_tree_remove_node_from_tree): New function, extracted from
35839         gl_tree_remove_node.
35840         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Return NULL
35841         upon out-of-memory.
35842         (gl_tree_nx_add_last): Renamed from gl_tree_add_last. Return NULL upon
35843         out-of-memory.
35844         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Return NULL
35845         upon out-of-memory.
35846         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Return NULL
35847         upon out-of-memory.
35848         (gl_tree_remove_node): Remove function. Moved to gl_anytree_list2.h.
35849         * lib/gl_anyrbtree_list2.h (create_subtree_with_contents): Use malloc,
35850         not xmalloc. Return NULL upon out-of-memory.
35851         (gl_tree_nx_create): Renamed from gl_tree_create. Return NULL upon
35852         out-of-memory.
35853         (gl_tree_remove_node_from_tree): New function, extracted from
35854         gl_tree_remove_node.
35855         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Return NULL
35856         upon out-of-memory.
35857         (gl_tree_nx_add_last): Renamed from gl_tree_add_last. Return NULL upon
35858         out-of-memory.
35859         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Return NULL
35860         upon out-of-memory.
35861         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Return NULL
35862         upon out-of-memory.
35863         (gl_tree_remove_node): Remove function. Moved to gl_anytree_list2.h.
35864         * lib/gl_avltree_list.c: Don't include xalloc.h. Include
35865         gl_anytree_list1.h before gl_anyavltree_list2.h.
35866         (gl_avltree_list_implementation): Update.
35867         * lib/gl_rbtree_list.c: Don't include xalloc.h. Include
35868         gl_anytree_list1.h before gl_anyavltree_list2.h.
35869         (gl_rbtree_list_implementation): Update.
35870         * lib/gl_anytreehash_list1.h (add_to_bucket, add_nodes_to_buckets):
35871         Change return type to 'int'. Return -1 upon out-of-memory. Use
35872         __builtin_expect.
35873         * lib/gl_avltreehash_list.c: Don't include xalloc.h.
35874         (gl_avltreehash_list_implementation): Update.
35875         * lib/gl_rbtreehash_list.c: Don't include xalloc.h.
35876         (gl_rbtreehash_list_implementation): Update.
35877         * modules/array-list (Depends-on): Remove xalloc.
35878         * modules/carray-list (Depends-on): Likewise.
35879         * modules/linked-list (Depends-on): Likewise.
35880         * modules/linkedhash-list (Depends-on): Likewise.
35881         * modules/avltree-list (Depends-on): Likewise.
35882         * modules/rbtree-list (Depends-on): Likewise.
35883         * modules/avltreehash-list (Depends-on): Likewise.
35884         * modules/rbtreehash-list (Depends-on): Likewise.
35885
35886         * modules/xsublist: New file.
35887         * lib/gl_xsublist.h: New file.
35888         * lib/gl_xsublist.c: New file.
35889         * lib/gl_sublist.h (gl_sublist_create): Disable declaration.
35890         (gl_sublist_nx_create): New declaration.
35891         * lib/gl_sublist.c: Don't include xalloc.h.
35892         (gl_sublist_nx_create_empty): Renamed from gl_sublist_create_empty.
35893         (gl_sublist_nx_create_fill): Renamed from gl_sublist_create_fill.
35894         (gl_sublist_node_nx_set_value): Renamed from gl_sublist_node_set_value.
35895         Change return type to 'int'. Return -1 upon out-of-memory.
35896         (gl_sublist_nx_set_at): Renamed from gl_sublist_set_at. Return NULL
35897         upon out-of-memory.
35898         (gl_sublist_nx_add_first): Renamed from gl_sublist_add_first. Return
35899         NULL upon out-of-memory.
35900         (gl_sublist_nx_add_last): Renamed from gl_sublist_add_last. Return NULL
35901         upon out-of-memory.
35902         (gl_sublist_nx_add_before): Renamed from gl_sublist_add_before. Return
35903         NULL upon out-of-memory.
35904         (gl_sublist_nx_add_after): Renamed from gl_sublist_add_after. Return
35905         NULL upon out-of-memory.
35906         (gl_sublist_nx_add_at): Renamed from gl_sublist_add_at. Return NULL
35907         upon out-of-memory.
35908         (gl_sublist_sortedlist_nx_add): Renamed from gl_sublist_sortedlist_add.
35909         (gl_sublist_list_implementation): Update.
35910         (gl_sublist_nx_create): Renamed from gl_sublist_create. Return NULL
35911         upon out-of-memory.
35912         * modules/sublist (Depends-on): Remove xalloc.
35913
35914         * tests/test-array_list.c: Use gl_list_nx_* functions where possible.
35915         * tests/test-carray_list.c: Likewise.
35916         * tests/test-linked_list.c: Likewise.
35917         * tests/test-linkedhash_list.c: Likewise.
35918         * tests/test-avltree_list.c: Likewise.
35919         * tests/test-rbtree_list.c: Likewise.
35920         * tests/test-avltreehash_list.c: Likewise.
35921         * tests/test-rbtreehash_list.c: Likewise.
35922         * modules/array-list-tests (Makefile.am): Don't link with @LIBINTL@.
35923         * modules/carray-list-tests (Makefile.am): Likewise.
35924         * modules/linked-list-tests (Makefile.am): Likewise.
35925         * modules/linkedhash-list-tests (Makefile.am): Likewise.
35926         * modules/avltree-list-tests (Makefile.am): Likewise.
35927         * modules/rbtree-list-tests (Makefile.am): Likewise.
35928         * modules/avltreehash-list-tests (Makefile.am): Likewise.
35929         * modules/rbtreehash-list-tests (Makefile.am): Likewise.
35930
35931         * NEWS: Mention the changes.
35932
35933         * lib/clean-temp.c: Include gl_xlist.h.
35934         * modules/clean-temp (Depends-on): Add xlist.
35935
35936         * lib/git-merge-changelog.c: Include gl_xlist.h instead of gl_list.h.
35937         * modules/git-merge-changelog (Depends-on): Add xlist. Remove list.
35938
35939         * tests/test-array_oset.c: Include gl_xlist.h.
35940         * modules/array-oset-tests (Depends-on): Add xlist.
35941
35942         Reported by José E. Marchesi <jemarch@gnu.org>.
35943
35944 2009-12-13  Bruno Haible  <bruno@clisp.org>
35945
35946         Move the malloc checking from module 'oset' to new module 'xoset'.
35947         * modules/xoset: New file.
35948         * lib/gl_xoset.h: New file.
35949         * lib/gl_xoset.c: New file.
35950         * lib/gl_oset.h (gl_oset_create_empty, gl_oset_add): Disable
35951         declarations.
35952         (gl_oset_nx_create_empty, gl_oset_nx_add): New declarations.
35953         (struct gl_oset_implementation): Rename and change methods accordingly.
35954         (gl_oset_nx_create_empty): Renamed from gl_oset_create_empty.
35955         (gl_oset_nx_add): Renamed from gl_oset_add. Change return type to
35956         'int'. Mark as __warn_unused_result__.
35957         * lib/gl_oset.c (gl_oset_nx_create_empty): Renamed from
35958         gl_oset_create_empty.
35959         (gl_oset_nx_add): Renamed from gl_oset_add. Change return type to
35960         'int'.
35961         * lib/gl_array_oset.c: Don't include xalloc.h.
35962         (gl_array_nx_create_empty): Renamed from gl_array_create_empty. Use
35963         malloc, not xmalloc.
35964         (grow): Change return type to 'int'. Don't call xalloc_die.
35965         (gl_array_nx_add_at): Renamed from gl_array_add_at. Change return type
35966         to 'int'.
35967         (gl_array_nx_add): Renamed from gl_array_add. Change return type to
35968         'int'.
35969         (gl_array_oset_implementation): Update.
35970         * lib/gl_anytree_oset.h (gl_tree_nx_create_empty): Renamed from
35971         gl_tree_create_empty.
35972         (gl_tree_nx_add): Renamed from gl_tree_add. Change return type to
35973         'int'.
35974         * lib/gl_avltree_oset.c: Don't include xalloc.h.
35975         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Use malloc, not
35976         xmalloc.
35977         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Use malloc,
35978         not xmalloc.
35979         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Use malloc, not
35980         xmalloc.
35981         (gl_avltree_oset_implementation): Update.
35982         * lib/gl_rbtree_oset.c: Don't include xalloc.h.
35983         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Use malloc, not
35984         xmalloc.
35985         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Use malloc,
35986         not xmalloc.
35987         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Use malloc, not
35988         xmalloc.
35989         (gl_rbtree_oset_implementation): Update.
35990         * modules/array-oset (Depends-on): Remove xalloc.
35991         * modules/avltree-oset (Depends-on): Likewise.
35992         * modules/rbtree-oset (Depends-on): Likewise.
35993         * tests/test-array_oset.c: Use gl_oset_nx_* functions where possible.
35994         * tests/test-avltree_oset.c: Likewise.
35995         * tests/test-rbtree_oset.c: Likewise.
35996         * lib/gl_anytreehash_list1.h (add_to_bucket): Likewise.
35997         * modules/avltree-oset-tests (Makefile.am): Don't link with @LIBINTL@.
35998         * modules/rbtree-oset-tests (Makefile.am): Likewise.
35999         * NEWS: Mention the change.
36000
36001 2009-12-05  Alfred M. Szmidt  <ams@gnu.org>
36002
36003         maint.mk: allow a project to override release-prep commands
36004         * top/maint.mk (alpha, beta, stable): Move release-preparatory
36005         commands into a new rule.
36006         (release-prep): New rule.
36007         (release-prep-hook): New overridable variable.
36008
36009 2009-12-13  Bruno Haible  <bruno@clisp.org>
36010
36011         * lib/localcharset.c (locale_charset): Fix comment about use of GetACP.
36012
36013 2009-12-13  Jim Meyering  <meyering@redhat.com>
36014
36015         maint.mk (null_AM_MAKEFLAGS, built_programs): remove unused definitions
36016         * top/maint.mk (null_AM_MAKEFLAGS, built_programs): Remove definitions.
36017
36018 2009-12-12  Bruno Haible  <bruno@clisp.org>
36019
36020         duplocale: Tweak.
36021         * lib/duplocale.c (rpl_duplocale): Mark categories array as 'const'.
36022
36023 2009-12-12  Karl Berry  <karl@gnu.org>
36024
36025         * config/srclist.txt (strtoll.c): tab changes, no more sync.
36026
36027 2009-12-12  Bruno Haible  <bruno@clisp.org>
36028
36029         * m4/po.m4: Undo incorrect untabification.
36030
36031 2009-12-12  Bruno Haible  <bruno@clisp.org>
36032
36033         c-strtod, c-strtold: Use multithread-safe implementation on MacOS X.
36034         * modules/c-strtod (Depends-on): Add locale.
36035         * modules/c-strtold (Depends-on): Likewise.
36036
36037 2009-12-12  Bruno Haible  <bruno@clisp.org>
36038
36039         * lib/localcharset.c (locale_charset): Add comment about use of GetACP.
36040
36041 2009-12-11  Eric Blake  <ebb9@byu.net>
36042
36043         setenv: relax requirement in light of POSIX ruling
36044         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Test handling of "" but
36045         not NULL.
36046         * tests/test-setenv.c (main): Relax test.
36047         * tests/test-unsetenv.c (main): Likewise.
36048         * doc/posix-functions/setenv.texi (setenv): Document this.
36049         * doc/posix-functions/unsetenv.texi (unsetenv): Likewise.
36050
36051 2009-12-11  Bruno Haible  <bruno@clisp.org>
36052
36053         New module 'fd-safer-flag'.
36054         * lib/dup-safer-flag.c: New file, extracted from lib/dup-safer.c.
36055         * lib/dup-safer.c (dup_safer_flag): Remove function.
36056         * lib/fd-safer-flag.c: New file, extracted from lib/fd-safer.c.
36057         * lib/fd-safer.c (fd_safer_flag): Remove function.
36058         * lib/unistd-safer.h (dup_safer_flag, fd_safer_flag): Update condition.
36059         * modules/cloexec (configure.ac): Drop indicator macro.
36060         * modules/fd-safer-flag: New file.
36061         * modules/pipe2-safer (Depends-on): Add fd-safer-flag. Remove cloexec.
36062         * modules/stdlib-safer (Depends-on): Add fd-safer-flag.
36063         * modules/unistd-safer-tests (Depends-on): Add fd-safer-flag.
36064
36065 2009-12-11  Bruno Haible  <bruno@clisp.org>
36066
36067         Tests for module 'nl_langinfo'.
36068         * modules/nl_langinfo-tests: New file.
36069         * tests/test-nl_langinfo.sh: New file.
36070         * tests/test-nl_langinfo.c: New file.
36071
36072         New module 'nl_langinfo'.
36073         * lib/nl_langinfo.c: New file.
36074         * m4/nl_langinfo.m4: New file.
36075         * modules/nl_langinfo: New file.
36076         * doc/posix-functions/nl_langinfo.texi: Mention the new module.
36077
36078 2009-12-11  Bruno Haible  <bruno@clisp.org>
36079
36080         Tests for module 'langinfo'.
36081         * modules/langinfo-tests: New file.
36082         * tests/test-langinfo.c: New file.
36083
36084         New module 'langinfo'.
36085         * lib/langinfo.in.h: New file.
36086         * m4/langinfo_h.m4: New file.
36087         * modules/langinfo: New file.
36088         * doc/posix-headers/langinfo.texi: Mention the new module.
36089
36090 2009-12-11  Bruno Haible  <bruno@clisp.org>
36091
36092         * lib/config.charset: Untabify.
36093
36094 2009-12-11  Bruno Haible  <bruno@clisp.org>
36095
36096         * modules/unistd-safer (configure.ac): Drop indicator macro.
36097
36098 2009-12-11  Bruno Haible  <bruno@clisp.org>
36099
36100         Move pipe2-safer code to its own file.
36101         * lib/pipe2-safer.c: New file, extracted from lib/pipe-safer.c.
36102         * lib/pipe-safer.c (pipe2_safer): Remove function.
36103         * modules/pipe2-safer (Files): Add lib/pipe2-safer.c.
36104         (Makefile.am): Add it to lib_SOURCES.
36105
36106 2009-12-10  Bruno Haible  <bruno@clisp.org>
36107
36108         * lib/recvfrom.c (rpl_recvfrom): Allow the from argument to be NULL.
36109
36110 2009-12-10  Bruno Haible  <bruno@clisp.org>
36111
36112         Declare which arguments expect non-NULL values, for GCC and clang.
36113         * build-aux/arg-nonnull.h: New file.
36114         * modules/arg-nonnull: New file.
36115         * lib/arpa_inet.in.h (_GL_ARG_NONNULL): New placeholder.
36116         (inet_ntop, inet_pton): Use it.
36117         * lib/dirent.in.h (_GL_ARG_NONNULL): New placeholder.
36118         (closedir, dirfd, opendir, scandir, alphasort): Use it.
36119         * lib/fcntl.in.h (_GL_ARG_NONNULL): New placeholder.
36120         (open, openat): Use it.
36121         * lib/fnmatch.in.h (_GL_ARG_NONNULL): New placeholder.
36122         (fnmatch): Use it.
36123         * lib/getopt.in.h (_GL_ARG_NONNULL): New placeholder.
36124         (getopt, getopt_long, getopt_long_only): Use it.
36125         * lib/glob.in.h (_GL_ARG_NONNULL): New placeholder.
36126         * lib/glob-libc.h (glob, globfree, glob64, globfree64, glob_pattern_p):
36127         Use it.
36128         * lib/iconv.in.h (_GL_ARG_NONNULL): New placeholder.
36129         (iconv_open): Use it.
36130         * lib/inttypes.in.h (_GL_ARG_NONNULL): New placeholder.
36131         (strtoimax, strtoumax): Use it.
36132         * lib/locale.in.h (_GL_ARG_NONNULL): New placeholder.
36133         (duplocale): Use it.
36134         * lib/math.in.h (_GL_ARG_NONNULL): New placeholder.
36135         (frexp, frexpl): Use it.
36136         * lib/netdb.in.h (_GL_ARG_NONNULL): New placeholder.
36137         (getaddrinfo, freeaddrinfo, getnameinfo): Use it.
36138         * lib/search.in.h (_GL_ARG_NONNULL): New placeholder.
36139         (tsearch, tfind, tdelete, twalk): Use it.
36140         * lib/signal.in.h (_GL_ARG_NONNULL): New placeholder.
36141         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset,
36142         sigpending): Use it.
36143         * lib/spawn.in.h (_GL_ARG_NONNULL): New placeholder.
36144         (posix_spawn, posix_spawnp, posix_spawnattr_init,
36145         posix_spawnattr_destroy, posix_spawnattr_getsigdefault,
36146         posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask,
36147         posix_spawnattr_setsigmask, posix_spawnattr_getflags,
36148         posix_spawnattr_setflags, posix_spawnattr_getpgroup,
36149         posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy,
36150         posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam,
36151         posix_spawnattr_setschedparam, posix_spawn_file_actions_init,
36152         posix_spawn_file_actions_destroy, posix_spawn_file_actions_addopen,
36153         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2):
36154         Use it.
36155         * lib/stdio.in.h (_GL_ARG_NONNULL): New placeholder.
36156         (dprintf, fclose, fopen, fprintf, fpurge, fputc, fputs, freopen,
36157         rpl_fseek, fseeko, rpl_ftell, ftello, fwrite, getdelim, getline,
36158         obstack_printf, obstack_vprintf, popen, printf, putc, puts, remove,
36159         rename, renameat, snprintf, sprintf, asprintf, vasprintf, vdprintf,
36160         vfprintf, vprintf, vsnprintf, vsprintf): Use it.
36161         * lib/stdlib.in.h (_GL_ARG_NONNULL): New placeholder.
36162         (atoll, canonicalize_file_name, getloadavg, getsubopt, mkdtemp,
36163         mkostemp, mkostemps, mkstemp, mkstemps, putenv, srandom_r, initstate_r,
36164         setstate_r, random_r, realpath, rpmatch, setenv, strtod, strtoll,
36165         strtoull, unsetenv): Use it.
36166         * lib/string.in.h (_GL_ARG_NONNULL): New placeholder.
36167         (memchr, memmem, mempcpy, memrchr, rawmemchr, stpcpy, stpncpy,
36168         strchrnul, strdup, strndup, strnlen, strpbrk, strsep, strstr,
36169         strcasestr, strtok_r, mbslen, mbsnlen, mbschr, mbsrchr, mbsstr,
36170         mbscasecmp, mbsncasecmp, mbspcasecmp, mbscasestr, mbscspn, mbspbrk,
36171         mbsspn, mbssep, mbstok_r, strverscmp): Use it.
36172         * lib/strings.in.h (_GL_ARG_NONNULL): New placeholder.
36173         (strcasecmp, strncasecmp): Use it.
36174         * lib/sys_socket.in.h (_GL_ARG_NONNULL): New placeholder.
36175         (rpl_connect, rpl_bind, rpl_getpeername, rpl_getsockname,
36176         rpl_getsockopt, rpl_recv, rpl_send, rpl_recvfrom, rpl_sendto,
36177         rpl_setsockopt): Use it.
36178         * lib/sys_stat.in.h (_GL_ARG_NONNULL): New placeholder.
36179         (fchmodat, fstat, fstatat, lchmod, rpl_lstat, mkdir, mkdirat, mkfifo,
36180         mkfifoat, mknod, mknodat, stat, utimensat): Use it.
36181         * lib/sys_time.in.h (_GL_ARG_NONNULL): New placeholder.
36182         (gettimeofday): Use it.
36183         * lib/sys_times.in.h (_GL_ARG_NONNULL): New placeholder.
36184         (times): Use it.
36185         * lib/sys_utsname.in.h (_GL_ARG_NONNULL): New placeholder.
36186         (uname): Use it.
36187         * lib/time.in.h (_GL_ARG_NONNULL): New placeholder.
36188         (nanosleep, mktime, localtime_r, gmtime_r, strptime, timegm): Use it.
36189         * lib/unistd.in.h (_GL_ARG_NONNULL): New placeholder.
36190         (chown, euidaccess, faccessat, _gl_register_fd, fchownat,
36191         getdomainname, gethostname, getlogin_r, lchown, link, linkat, pipe2,
36192         pread, readlink, readlinkat, rmdir, symlink, symlinkat, unlink,
36193         unlinkat, write): Use it.
36194         * lib/wchar.in.h (_GL_ARG_NONNULL): New placeholder.
36195         (mbsrtowcs, mbsnrtowcs, wcsrtombs, wcsnrtombs): Use it.
36196         * lib/argv-iter.h: Include arg-nonnull.h.
36197         (_ATTRIBUTE_NONNULL_): Remove macro.
36198         (argv_iter_init_argv, argv_iter_init_stream, argv_iter,
36199         argv_iter_n_args, argv_iter_free): Use _GL_ARG_NONNULL.
36200         * lib/canonicalize-lgpl.c (_GL_ARG_NONNULL): Define, to defeat gcc
36201         optimization.
36202         * lib/getaddrinfo.c (_GL_ARG_NONNULL): Likewise.
36203         * lib/getdelim.c (_GL_ARG_NONNULL): Likewise.
36204         * lib/glob.c (_GL_ARG_NONNULL): Likewise.
36205         * lib/random_r.c (_GL_ARG_NONNULL): Likewise.
36206         * lib/setenv.c (_GL_ARG_NONNULL): Likewise.
36207         * lib/strtod.c (_GL_ARG_NONNULL): Likewise.
36208         * lib/tsearch.c (_GL_ARG_NONNULL): Likewise.
36209         * lib/unsetenv.c (_GL_ARG_NONNULL): Likewise.
36210         * modules/arpa_inet (Depends-on): Add arg-nonnull.
36211         (Makefile.am): Insert arg-nonnull.h into arpa/inet.h.
36212         * modules/dirent (Depends-on): Add arg-nonnull.
36213         (Makefile.am): Insert arg-nonnull.h into dirent.h.
36214         * modules/fcntl-h (Depends-on): Add arg-nonnull.
36215         (Makefile.am): Insert arg-nonnull.h into fcntl.h.
36216         * modules/fnmatch (Depends-on): Add arg-nonnull.
36217         (Makefile.am): Insert arg-nonnull.h into fnmatch.h.
36218         * modules/getopt-posix (Depends-on): Add arg-nonnull.
36219         (Makefile.am): Insert arg-nonnull.h into getopt.h.
36220         * modules/glob (Depends-on): Add arg-nonnull.
36221         (Makefile.am): Insert arg-nonnull.h into glob.h.
36222         * modules/iconv_open (Depends-on): Add arg-nonnull.
36223         (Makefile.am): Insert arg-nonnull.h into iconv.h.
36224         * modules/inttypes (Depends-on): Add arg-nonnull.
36225         (Makefile.am): Insert arg-nonnull.h into inttypes.h.
36226         * modules/locale (Depends-on): Add arg-nonnull.
36227         (Makefile.am): Insert arg-nonnull.h into locale.h.
36228         * modules/math (Depends-on): Add arg-nonnull.
36229         (Makefile.am): Insert arg-nonnull.h into math.h.
36230         * modules/netdb (Depends-on): Add arg-nonnull.
36231         (Makefile.am): Insert arg-nonnull.h into netdb.h.
36232         * modules/search (Depends-on): Add arg-nonnull.
36233         (Makefile.am): Insert arg-nonnull.h into search.h.
36234         * modules/signal (Depends-on): Add arg-nonnull.
36235         (Makefile.am): Insert arg-nonnull.h into signal.h.
36236         * modules/spawn (Depends-on): Add arg-nonnull.
36237         (Makefile.am): Insert arg-nonnull.h into spawn.h.
36238         * modules/stdio (Depends-on): Add arg-nonnull.
36239         (Makefile.am): Insert arg-nonnull.h into stdio.h.
36240         * modules/stdlib (Depends-on): Add arg-nonnull.
36241         (Makefile.am): Insert arg-nonnull.h into stdlib.h.
36242         * modules/string (Depends-on): Add arg-nonnull.
36243         (Makefile.am): Insert arg-nonnull.h into string.h.
36244         * modules/strings (Depends-on): Add arg-nonnull.
36245         (Makefile.am): Insert arg-nonnull.h into strings.h.
36246         * modules/sys_socket (Depends-on): Add arg-nonnull.
36247         (Makefile.am): Insert arg-nonnull.h into sys/socket.h.
36248         * modules/sys_stat (Depends-on): Add arg-nonnull.
36249         (Makefile.am): Insert arg-nonnull.h into sys/stat.h.
36250         * modules/sys_time (Depends-on): Add arg-nonnull.
36251         (Makefile.am): Insert arg-nonnull.h into sys/time.h.
36252         * modules/sys_times (Depends-on): Add arg-nonnull.
36253         (Makefile.am): Insert arg-nonnull.h into sys/times.h.
36254         * modules/sys_utsname (Depends-on): Add arg-nonnull.
36255         (Makefile.am): Insert arg-nonnull.h into sys/utsname.h.
36256         * modules/time (Depends-on): Add arg-nonnull.
36257         (Makefile.am): Insert arg-nonnull.h into time.h.
36258         * modules/unistd (Depends-on): Add arg-nonnull.
36259         (Makefile.am): Insert arg-nonnull.h into unistd.h.
36260         * modules/wchar (Depends-on): Add arg-nonnull.
36261         (Makefile.am): Insert arg-nonnull.h into wchar.h.
36262         * modules/argv-iter (Depends-on): Add arg-nonnull.
36263         * tests/test-canonicalize.c (null_ptr): New function.
36264         (main): Use it.
36265         * tests/test-canonicalize-lgpl.c (null_ptr): New function.
36266         (main): Use it.
36267         * tests/test-memmem.c (null_ptr): New function.
36268         (main): Use it.
36269         Reported by Jim Meyering.
36270
36271 2009-12-10  Bruno Haible  <bruno@clisp.org>
36272
36273         Use spaces for indentation, not tabs.
36274         * lib/**/*.[hcy] except lib/reg*.[hc]: Untabify.
36275         * m4/*.m4: Untabify.
36276         * build-aux/*.h: Untabify.
36277         * tests/**/*.[hc]: Untabify.
36278         * README: New section "Indent with spaces, not TABs", based on
36279         coreutils/HACKING and comments by Pádraig Brady and Paolo Bonzini.
36280         * NEWS: Mention the change.
36281
36282 2009-12-10  Bruno Haible  <bruno@clisp.org>
36283
36284         pty test: Fix link error.
36285         * modules/pty-tests (Makefile.am): Add the default LDADD value to
36286         test_pty_LDADD.
36287
36288 2009-12-07  Simon Josefsson  <simon@josefsson.org>
36289
36290         * modules/pty: New file.
36291         * modules/pty-tests: New file.
36292         * m4/pty.m4: New file.
36293         * tests/test-pty.c: New file.
36294         * doc/glibc-headers/pty.texi: Modified.
36295         * doc/glibc-functions/forkpty.texi: Modified.
36296         * doc/glibc-functions/openpty.texi: Modified.
36297
36298 2009-12-10  Bruno Haible  <bruno@clisp.org>
36299
36300         Avoid syntax error in C++ mode.
36301         * lib/stdio.in.h (rename): Don't use parameter name 'new'.
36302
36303 2009-12-10  Bruno Haible  <bruno@clisp.org>
36304
36305         Use sed with option -e.
36306         * gnulib-tool (func_version, func_emit_copyright_notice,
36307         func_emit_initmacro_end, func_import, func_create_testdir): Pass
36308         option -e to sed.
36309         * modules/link-warning (Makefile.am): Likewise.
36310
36311 2009-12-10  Jim Meyering  <meyering@redhat.com>
36312
36313         mgetgroups: do not write bytes beyond end of malloc'd buffer
36314         * lib/mgetgroups.c: Fix an off-by-one error.  When we have no
36315         username, we call getgroups with a one-element-shorter buffer,
36316         but still told it the length was original, max_n_groups.
36317
36318 2009-12-09  Eric Blake  <ebb9@byu.net>
36319
36320         cloexec: relax license
36321         * modules/cloexec (Maintainer): Add myself.
36322         (License): Use LGPL, not GPL.
36323
36324         link-warning: optimize generation
36325         * modules/link-warning (Makefile.am): Reduce process usage.
36326
36327 2009-12-09  Bruno Haible  <bruno@clisp.org>
36328
36329         * doc/posix-functions/unsetenv.texi: Mention Solaris 10 bug for which a
36330         workaround was added on 2009-11-17.
36331
36332 2009-12-09  Jim Meyering  <meyering@redhat.com>
36333             Bruno Haible  <bruno@clisp.org>
36334
36335         link-warning: Allow extra lines at the top of build-aux/link-warning.h.
36336         * modules/link-warning (Makefile.am): Make the comment-removing sed
36337         command more robust in the face of bootstrap-prepended comment lines.
36338
36339 2009-12-09  Bruno Haible  <bruno@clisp.org>
36340
36341         * lib/mgetgroups.c (mgetgroups): Don't remove duplicates if there is at
36342         most one group.
36343
36344 2009-12-09  Simon Josefsson <simon@josefsson.org>
36345             Bruno Haible  <bruno@clisp.org>
36346
36347         * build-aux/link-warning.h: Add copyright notice.
36348         * modules/link-warning (Makefile.am): Generate link-warning.h from
36349         build-aux/link-warning.h. Update LINK_WARNING_H accordingly.
36350         * NEWS: Mention change in link-warning module.
36351         * modules/arpa_inet (Makefile.am): Add dependency to arpa/inet.h.
36352         * modules/dirent (Makefile.am): Add dependency to dirent.h.
36353         * modules/fcntl-h (Makefile.am): Add dependency to fcntl.h.
36354         * modules/getopt-posix (Makefile.am): Add dependency to getopt.h.
36355         * modules/inttypes (Makefile.am): Add dependency to inttypes.h.
36356         * modules/math (Makefile.am): Add dependency to math.h.
36357         * modules/search (Makefile.am): Add dependency to search.h.
36358         * modules/signal (Makefile.am): Add dependency to signal.h.
36359         * modules/spawn (Makefile.am): Add dependency to spawn.h.
36360         * modules/stdio (Makefile.am): Add dependency to stdio.h.
36361         * modules/stdlib (Makefile.am): Add dependency to stdlib.h.
36362         * modules/string (Makefile.am): Add dependency to string.h.
36363         * modules/strings (Makefile.am): Add dependency to strings.h.
36364         * modules/sys_ioctl (Makefile.am): Add dependency to sys/ioctl.h.
36365         * modules/sys_select (Makefile.am): Add dependency to sys/select.h.
36366         * modules/sys_socket (Makefile.am): Add dependency to sys/socket.h.
36367         * modules/sys_stat (Makefile.am): Add dependency to sys/stat.h.
36368         * modules/sys_times (Makefile.am): Add dependency to sys/times.h.
36369         * modules/sys_utsname (Makefile.am): Add dependency to sys/utsname.h.
36370         * modules/sys_wait (Makefile.am): Add dependency to sys/wait.h.
36371         * modules/unistd (Makefile.am): Add dependency to unistd.h.
36372         * modules/wchar (Makefile.am): Add dependency to wchar.h.
36373
36374 2009-12-09  Bruno Haible  <bruno@clisp.org>
36375
36376         fchdir: Optimize away rpl_fstat when possible.
36377         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set REPLACE_FSTAT only together with
36378         REPLACE_OPEN_DIRECTORY.
36379         * lib/fchdir.c (rpl_fstat): Define only when REPLACE_OPEN_DIRECTORY.
36380
36381 2009-12-09  Bruno Haible  <bruno@clisp.org>
36382
36383         * lib/fchdir.c: Update comment.
36384
36385 2009-12-09  Bruno Haible  <bruno@clisp.org>
36386
36387         * lib/cloexec.c (set_cloexec_flag): Clarify intent of dup2 call.
36388
36389 2009-12-08  Eric Blake  <ebb9@byu.net>
36390
36391         fchdir: avoid memory leak on re-registration.
36392         * lib/fchdir.c (ensure_dirs_slot): Avoid memory leak.
36393
36394 2009-12-08  Jim Meyering  <meyering@redhat.com>
36395
36396         init.sh: avoid Solaris 10 /bin/sh portability problem
36397         Solaris 10's /bin/sh does not pass '.' arguments 2.. to the
36398         sourced script:
36399           $ printf 'echo "$@"\n' > f; /bin/sh -c '. ./f bar'
36400           $ printf 'echo "$@"\n' > f; /bin/bash -c '. ./f bar'
36401           bar
36402         tests/init.sh relied on that, accepting a --set-path=DIR argument,
36403         and two tests used that idiom.
36404         * tests/init.sh: Update suggested usage comments.
36405         (path_prepend_): New function, to be used in place
36406         of the --src-path=DIR option.
36407         (setup_): Move PATH-prepending code into path_prepend_.
36408         * tests/test-pread.sh: Adapt to new usage.
36409         * tests/test-xalloc-die.sh: Likewise.
36410
36411 2009-12-08  Simon Josefsson  <simon@josefsson.org>
36412
36413         * doc/gnulib.texi (Glibc pty.h): Add.
36414         * doc/glibc-functions/forkpty.texi: Add.
36415         * doc/glibc-functions/openpty.texi: Add.
36416         Suggested by Bruno Haible.
36417
36418 2009-12-08  Eric Blake  <ebb9@byu.net>
36419
36420         fchdir: fix logic bugs
36421         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Fix logic bug.
36422         * tests/test-fchdir.c (main): Enhance test.
36423         * lib/fchdir.c (rpl_fstat): Always provide if fchdir replacement
36424         is in use.
36425
36426         dup2: fix logic bugs
36427         * lib/dup2.c (dup2): Fix logic bugs.  Use HAVE_DUP2 rather than
36428         REPLACE_DUP2 to decide when rpl_dup2 is needed.
36429         * m4/dup2.m4 (gl_REPLACE_DUP2): Only define REPLACE_DUP2 when dup2
36430         exists.
36431         (gl_FUNC_DUP2): Drop unneeded AC_DEFINE.
36432
36433 2009-12-07  Eric Blake  <ebb9@byu.net>
36434
36435         unlink: fix m4 detection
36436         * m4/unlink.m4 (gl_FUNC_UNLINK): Include correct header.
36437
36438         unistd-safer: add unit test
36439         * modules/unistd-safer-tests: New file.
36440         * tests/test-dup-safer.c: Likewise.
36441         * tests/test-cloexec.c (setmode): Avoid compiler warning.
36442         * tests/test-dup2.c (setmode): Likewise.
36443         * lib/cloexec.c (dup_cloexec): Fix mingw compile error.
36444
36445         cloexec: preserve text vs. binary across dup_cloexec
36446         * lib/cloexec.c (dup_cloexec) [W32]: Query and use translation
36447         mode.
36448         * modules/dup2-tests (Depends-on): Add binary-io.
36449         * modules/cloexec-tests (Depends-on): Likewise.
36450         * tests/test-dup2.c (setmode, is_mode): New helpers.
36451         (main): Add tests that translation mode is preserved.
36452         * tests/test-cloexec.c (setmode, is_mode, main): Likewise.
36453         Reported by Bruno Haible.
36454
36455         mgetgroups: reduce duplicate listings
36456         * lib/mgetgroups.c (mgetgroups): Reduce duplicates from the
36457         resulting array.
36458         * tests/test-chown.h (test_chown): Simplify client.
36459         * tests/test-lchown.h (test_lchown): Likewise.
36460
36461 2009-12-06  Bruno Haible  <bruno@clisp.org>
36462
36463         * lib/cloexec.c (dup_cloexec): Fix handling of _gl_register_dup return
36464         value.
36465
36466 2009-12-06  Bruno Haible  <bruno@clisp.org>
36467
36468         * lib/progname.c: Include stdio.h, stdlib.h.
36469         (set_program_name): Reject a NULL argument.
36470
36471 2009-12-05  Eric Blake  <ebb9@byu.net>
36472
36473         pipe2-safer: new module
36474         * modules/pipe2-safer: New file.
36475         * lib/unistd-safer.h (pipe2_safer): New prototype.
36476         * lib/unistd--.h (pipe2): New wrapper.
36477         * lib/pipe-safer.c (pipe2_safer): New function.
36478         * modules/pipe (Depends-on): Add pipe2-safer.
36479         * lib/pipe.c (create_pipe) [WIN32]: Let pipe2_safer do the work.
36480
36481         stdlib-safer: preserve cloexec flag for mkostemp[s]
36482         * lib/mkstemp-safer.c (mkostemp_safer, mkostemps_safer): Use new
36483         fd_safer_flag.
36484
36485         unistd-safer: allow preservation of cloexec status via flag
36486         * lib/unistd-safer.h (dup_safer_flag, fd_safer_flag): New
36487         prototypes.
36488         * lib/dup-safer.c (dup_safer_flag): New function.
36489         * lib/fd-safer.c (fd_safer_flag): Likewise.
36490         * modules/cloexec (configure.ac): Set witness.
36491
36492         test-dup2: enhance test
36493         * modules/dup2-tests (Depends-on): Add cloexec.
36494         * tests/test-dup2.c (main): Enhance test.
36495
36496         cloexec: add dup_cloexec
36497         * lib/cloexec.h (dup_cloexec): New prototype.  Add copyright
36498         header and comments.
36499         * lib/cloexec.c (set_cloexec_flag): Add comments.
36500         (dup_cloexec): New function, with mingw implementation borrowed
36501         from...
36502         * lib/w32spawn.h (dup_noinherit): ...here.
36503         * modules/execute (Depends-on): Add cloexec.
36504         * modules/pipe (Depends-on): Likewise.
36505         * modules/cloexec (Depends-on): Add dup2.
36506         * modules/cloexec-tests (Files): New file.
36507         * tests/test-cloexec.c: Likewise.
36508
36509         test-xalloc-die: fix test for mingw
36510         * modules/xalloc-die-tests (Files): Add tests/init.sh.
36511         * tests/test-xalloc-die.sh: Rewrite to use init.sh.  Strip
36512         directory and .exe suffix off argv[0] output.
36513
36514         test-fseeko: fix test for mingw
36515         * tests/test-fseeko.c (fseek): Redefine GL_LINK_WARNING, rather
36516         than undefining fseek, so test will pass on mingw.
36517
36518 2009-12-05  Bruno Haible  <bruno@clisp.org>
36519
36520         * lib/progname.h (set_program_name): Clarify specification.
36521         * lib/progname.c (set_program_name): Likewise.
36522         Reported by Jim Meyering.
36523
36524 2009-12-05  Jim Meyering  <meyering@redhat.com>
36525
36526         maint.mk: backslash-escape parens in default regexp
36527         * top/maint.mk (news-check-regexp): Now that we're using grep -E,
36528         backslash-escape the literal parentheses.
36529
36530         maint.mk: news-date-check: use grep -E
36531         * top/maint.mk (today): Define a Make variable, not a...
36532         (news-date-check): ...shell variable.
36533         (news-date-regexp): Use the Make variable.
36534         Use grep's -E option.  Change the failing diagnostic to mention
36535         the variable, $(news-date-regexp).
36536
36537 2009-12-04  Alfred M. Szmidt  <ams@gnu.org>
36538
36539         maintainer-makefile: allow customization of NEWS entry format
36540         * top/maint.mk (news-date-regexp): New overridable variable.
36541         (news-date-check): Use it.
36542
36543 2009-12-04  Eric Blake  <ebb9@byu.net>
36544
36545         mgetgroups: add xgetgroups, and avoid ENOSYS failures
36546         * lib/mgetgroups.h (xgetgroups): New prototype.
36547         * lib/mgetgroups.c (xgetgroups): New wrapper.
36548         (mgetgroups): Handle ENOSYS.
36549         * modules/mgetgroups (Depends-on): Add realloc.
36550         Reported by Scott Harrison <scott.gnu.2009@scottrix.co.uk>.
36551
36552         mgetgroups: avoid argument promotion issues with -1
36553         * lib/mgetgroups.c (mgetgroups): A cast is required when checking
36554         for invalid gid_t.
36555         * tests/test-chown.h (getegid, test_chown): Likewise.
36556         * tests/test-lchown.h (getegid, test_lchown): Likewise.
36557
36558 2009-12-03  Paolo Bonzini  <bonzini@gnu.org>
36559
36560         exclude: Fix header file problems.
36561         * lib/exclude.h: Add multiple inclusion guards and include stdbool.h.
36562
36563 2009-12-01  Jim Meyering  <meyering@redhat.com>
36564
36565         fts: fts_open: do not let an empty string cause immediate failure
36566         This is required in support of GNU rm, for which the command
36567         "rm A '' B" must process and remove both A and B, in spite of
36568         the empty string argument.
36569         * lib/fts.c (fts_open): Do not let the presence of an empty string
36570         cause fts_open to fail immediately.  Most fts-using tools must be
36571         able to process all arguments, in order, and can be expected to
36572         diagnose such arguments themselves.
36573
36574 2009-11-30  Eric Blake  <ebb9@byu.net>
36575
36576         utimens: fix compilation error
36577         * lib/utimens.c (lutimens) [!HAVE_UTIMENSAT && HAVE_LUTIMES]:
36578         Declare variable at right scope.
36579
36580 2009-11-29  Jim Meyering  <meyering@redhat.com>
36581
36582         bootstrap: handle perl-5.11's changed --version output
36583         * build-aux/bootstrap (get_version): Handle perl separately,
36584         since perl-5.11's --version output is different.
36585
36586 2009-11-28  Jim Meyering  <meyering@redhat.com>
36587
36588         userspec: depend on the inttostr module, too
36589         * modules/userspec (Depends-on): Add inttostr.
36590
36591         userspec: disallow an ID that maps to (uid_t)-1 or (gid_t)-1
36592         * lib/userspec.c (parse_with_separator): Do not accept a user ID
36593         number of MAXUID when it evaluates to (uid_t) -1.
36594         Likewise for group ID.  Reported by Matt McCutchen in
36595         <http://savannah.gnu.org/bugs/?28113>
36596
36597         userspec: reformat to use spaces, not TABs
36598         * lib/userspec.c: Expand TABs to spaces.
36599         Add Emacs' "indent-tabs-mode: nil" hint.
36600
36601 2009-11-27  Eric Blake  <ebb9@byu.net>
36602
36603         getopt-gnu: flush out another BSD bug
36604         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Test for the bug.
36605         * tests/test-getopt.c (main): Check POSIXLY_CORRECT first, to
36606         flush out BSD bug.
36607         * tests/test-getopt.h (test_getopt): End lists with NULL.
36608         * tests/test-getopt_long.h (test_getopt_long): Likewise.
36609         (test_getopt_long_posix): Enhance test.
36610         * modules/getopt-posix-tests (Depends-on): Add stdbool.
36611         * doc/glibc-functions/getopt_long.texi (getopt_long): Mention
36612         getopt-gnu.
36613         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
36614         Likewise.
36615
36616 2009-11-27  Simon Josefsson  <simon@josefsson.org>
36617
36618         * modules/idpriv-droptemp-tests (Notice): Fix text.
36619
36620 2009-11-27  Jim Meyering  <meyering@redhat.com>
36621
36622         test-xalloc-die: avoid spurious failure due to libtool argv difference
36623         In a libtool-enabled project, this test would fail due to a difference
36624         in the emitted program name, e.g.,
36625         -test-xalloc-die: memory exhausted
36626         +/tmp/.../tests/.libs/lt-test-xalloc-die: memory exhausted
36627         Use program to avoid that.
36628         * modules/xalloc-die-tests (Depends-on): Add progname.
36629         * tests/test-xalloc-die.c: Include progname.h".
36630         (program_name): Remove decl.
36631         (main): Call set_program_name.
36632         * tests/test-xalloc-die.sh (compare): Remove unnecessary ${EXE}.
36633
36634 2009-11-26  Richard Jones  <rjones@redhat.com>
36635
36636         w32sock: leave win32 error in place.
36637         * lib/w32sock.h (set_winsock_errno): Do not call WSASetLastError.
36638
36639 2009-11-26  Eric Blake  <ebb9@byu.net>
36640
36641         init.sh: suggest to use skip_ and fail_ functions in comments
36642         * tests/init.sh: Add a sentence.
36643
36644 2009-11-25  Bruno Haible  <bruno@clisp.org>
36645
36646         init.sh: add documentation in comments
36647         * tests/init.sh: Add some developer and user documentation.
36648
36649 2009-11-26  Jim Meyering  <meyering@redhat.com>
36650
36651         init.sh: accommodate even those who specify bogus srcdir manually
36652         * tests/init.sh: Normally, srcdir is guaranteed by automake and
36653         configure-time tests to be sanitized, so that there is no need to
36654         use "$srcdir" in Makefile rules and shell scripts.  Using $srcdir
36655         (with no double quotes) suffices.  However, since tests may be
36656         invoked manually, and since you may explicitly set srcdir to the
36657         name of a directory containing spaces, do quote its uses here.
36658         * tests/test-pread.sh: Likewise.
36659         Suggested by Bruno Haible.
36660
36661         test-pread.sh: avoid diagnostics for those who ignore SIGPIPE
36662         * tests/test-pread.sh: Write no data into the pipe, because
36663         test-pread actually reads none.  This avoids a diagnostic,
36664         "bash: echo: write error: Broken pipe", that arises in the unusual
36665         event something is ignoring SIGPIPE, and might be interpreted
36666         as some sort of failure.  Reported by Bruno Haible.
36667
36668 2009-11-25  Jim Meyering  <meyering@redhat.com>
36669
36670         test-pread: cover failure with ESPIPE and EINVAL
36671         * tests/test-pread.c (main): Test for failure, too.
36672         * tests/test-pread.sh: Invoke with stdin on a pipe.
36673         Suggested by Eric Blake.
36674
36675         pread: improvement and fix
36676         * modules/pread (Depends-on): Depend on lseek, for portability to
36677         e.g., mingw.  Suggested by Eric Blake.
36678         * lib/pread.c (__libc_read): Define.  Reported by Richard W.M. Jones.
36679
36680         unistd.in.h: correct declaration of pread
36681         * lib/unistd.in.h: Correct type of "buf" parameter: void*, not char*
36682         Reported by Richard W.M. Jones.
36683
36684         test-pread.sh: distribute the test script
36685         * modules/pread-tests (Files): Include test-pread.sh.
36686
36687         test-pread.sh: clean up
36688         * tests/test-pread.sh: Don't refer to $builddir. Just use equivalent ".".
36689         * modules/pread-tests (TESTS_ENVIRONMENT): Don't export builddir.
36690         That is unnecessary, since it's always ".".
36691         Suggestion from Eric Blake.
36692
36693         test-pread.sh: make executable
36694         * tests/test-pread.sh: Set executable bit.
36695         Reported by Eric Blake.
36696
36697         correct typo in test-pread.sh
36698         * tests/test-pread.sh: Add #! line.
36699
36700         test pread
36701         * tests/test-pread.c: New file.
36702         * tests/test-pread.sh: Likewise.
36703         * modules/pread-tests: Likewise.
36704
36705         pread: new module
36706         * modules/pread: New file.
36707         * lib/unistd.in.h (pread): Define/declare.
36708         * lib/pread.c (pread): New file.
36709         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Define defaults.
36710         * modules/unistd (Makefile.am): Substitute witnesses.
36711         * doc/posix-functions/pread.texi (pread): Update.
36712         * MODULES.html.sh: Add pread.
36713
36714 2009-11-25  Jim Meyering  <meyering@redhat.com>
36715
36716         tests/init.sh: new file to be used via most *.sh tests
36717         * tests/init.sh: New file.
36718
36719 2009-11-25  Eric Blake  <ebb9@byu.net>
36720
36721         utimens: work around older Linux failure with symlinks
36722         * lib/utimens.c (lutimensat_works_really): New variable.
36723         (fdutimens, lutimens): Use it to manage kernels that support
36724         nanosecond times on files, but not on symlinks.
36725         Reported by Ondřej Vašík.
36726
36727         utimes: fix configure grammar
36728         * m4/utimes.m4 (gl_FUNC_UTIMES): Delete spurious word.
36729
36730 2009-11-25  Paolo Bonzini  <bonzini@gnu.org>
36731
36732         regex: Fix fastmap for multibyte character ranges.
36733         * lib/regcomp.c (re_compute_fastmap_iter): Add all multibyte lead
36734         characters when a multibyte character range is included.
36735
36736 2009-11-22  Andy Wingo  <wingo@pobox.com>
36737
36738         version-etc: work also with AM_INIT_AUTOMAKE's no-define option
36739         * lib/version-etc.c [!defined PACKAGE]: Define to PACKAGE_TARNAME.
36740
36741 2009-11-24  Bruno Haible  <bruno@clisp.org>
36742
36743         doc: Most *_l functions exist in MacOS X 10.5.
36744         * doc/posix-functions/duplocale.texi: Update platforms list.
36745         * doc/posix-functions/freelocale.texi: Likewise.
36746         * doc/posix-functions/newlocale.texi: Likewise.
36747         * doc/posix-functions/uselocale.texi: Likewise.
36748         * doc/posix-functions/isalnum_l.texi: Likewise.
36749         * doc/posix-functions/isalpha_l.texi: Likewise.
36750         * doc/posix-functions/isblank_l.texi: Likewise.
36751         * doc/posix-functions/iscntrl_l.texi: Likewise.
36752         * doc/posix-functions/isdigit_l.texi: Likewise.
36753         * doc/posix-functions/isgraph_l.texi: Likewise.
36754         * doc/posix-functions/islower_l.texi: Likewise.
36755         * doc/posix-functions/isprint_l.texi: Likewise.
36756         * doc/posix-functions/ispunct_l.texi: Likewise.
36757         * doc/posix-functions/isspace_l.texi: Likewise.
36758         * doc/posix-functions/isupper_l.texi: Likewise.
36759         * doc/posix-functions/iswalnum_l.texi: Likewise.
36760         * doc/posix-functions/iswalpha_l.texi: Likewise.
36761         * doc/posix-functions/iswblank_l.texi: Likewise.
36762         * doc/posix-functions/iswcntrl_l.texi: Likewise.
36763         * doc/posix-functions/iswctype_l.texi: Likewise.
36764         * doc/posix-functions/iswdigit_l.texi: Likewise.
36765         * doc/posix-functions/iswgraph_l.texi: Likewise.
36766         * doc/posix-functions/iswlower_l.texi: Likewise.
36767         * doc/posix-functions/iswprint_l.texi: Likewise.
36768         * doc/posix-functions/iswpunct_l.texi: Likewise.
36769         * doc/posix-functions/iswspace_l.texi: Likewise.
36770         * doc/posix-functions/iswupper_l.texi: Likewise.
36771         * doc/posix-functions/iswxdigit_l.texi: Likewise.
36772         * doc/posix-functions/isxdigit_l.texi: Likewise.
36773         * doc/posix-functions/nl_langinfo_l.texi: Likewise.
36774         * doc/posix-functions/strcasecmp_l.texi: Likewise.
36775         * doc/posix-functions/strcoll_l.texi: Likewise.
36776         * doc/posix-functions/strfmon_l.texi: Likewise.
36777         * doc/posix-functions/strftime_l.texi: Likewise.
36778         * doc/posix-functions/strncasecmp_l.texi: Likewise.
36779         * doc/posix-functions/strxfrm_l.texi: Likewise.
36780         * doc/posix-functions/tolower_l.texi: Likewise.
36781         * doc/posix-functions/toupper_l.texi: Likewise.
36782         * doc/posix-functions/towctrans_l.texi: Likewise.
36783         * doc/posix-functions/towlower_l.texi: Likewise.
36784         * doc/posix-functions/towupper_l.texi: Likewise.
36785         * doc/posix-functions/wcscoll_l.texi: Likewise.
36786         * doc/posix-functions/wcsxfrm_l.texi: Likewise.
36787         * doc/posix-functions/wctrans_l.texi: Likewise.
36788         * doc/posix-functions/wctype_l.texi: Likewise.
36789         * doc/glibc-functions/strptime_l.texi: Likewise.
36790         * doc/glibc-functions/strtod_l.texi: Likewise.
36791         * doc/glibc-functions/strtof_l.texi: Likewise.
36792         * doc/glibc-functions/strtol_l.texi: Likewise.
36793         * doc/glibc-functions/strtold_l.texi: Likewise.
36794         * doc/glibc-functions/strtoll_l.texi: Likewise.
36795         * doc/glibc-functions/strtoul_l.texi: Likewise.
36796         * doc/glibc-functions/strtoull_l.texi: Likewise.
36797         * doc/glibc-functions/wcsftime_l.texi: Likewise.
36798         * doc/glibc-functions/wcstod_l.texi: Likewise.
36799         * doc/glibc-functions/wcstof_l.texi: Likewise.
36800         * doc/glibc-functions/wcstol_l.texi: Likewise.
36801         * doc/glibc-functions/wcstold_l.texi: Likewise.
36802         * doc/glibc-functions/wcstoll_l.texi: Likewise.
36803         * doc/glibc-functions/wcstoul_l.texi: Likewise.
36804         * doc/glibc-functions/wcstoull_l.texi: Likewise.
36805
36806 2009-11-24  Bruno Haible  <bruno@clisp.org>
36807
36808         duplocale: Fix logic bug.
36809         * lib/duplocale.c: Don't include <langinfo.h>.
36810         (_NL_LOCALE_NAME): Remove macro.
36811         (rpl_duplocale): Use setlocale instead of nl_langinfo.
36812         * tests/test-duplocale.c (main): Also test duplocale after uselocale.
36813
36814 2009-11-23  Jim Meyering  <meyering@redhat.com>
36815
36816         test-update-copyright: don't hard-code /usr/bin/perl
36817         * tests/test-update-copyright.sh (YEAR): Use date +%Y, rather than
36818         perl to print the current year.  Gilles Espinasse reported that
36819         the replaced use of perl was hard-coded as /usr/bin/perl.
36820
36821 2009-11-23  Bruno Haible  <bruno@clisp.org>
36822
36823         duplocale: Add support for glibc 2.3.x.
36824         * lib/duplocale.c (rpl_duplocale): Add fallback code for glibc 2.3.x.
36825
36826 2009-11-22  Bruno Haible  <bruno@clisp.org>
36827
36828         vasnprintf: Tiny optimization.
36829         * lib/vasnprintf.c (decimal_point_char): Choose the fast path also on
36830         MacOS X.
36831
36832 2009-11-22  Bruno Haible  <bruno@clisp.org>
36833
36834         Tests for module 'duplocale'.
36835         * modules/duplocale-tests: New file.
36836         * tests/test-duplocale.c: New file.
36837
36838         New module 'duplocale'.
36839         * m4/duplocale.m4: New file.
36840         * lib/locale.in.h (duplocale): New declaration.
36841         * lib/duplocale.c: New file.
36842         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H, gl_LOCALE_MODULE_INDICATOR,
36843         gl_LOCALE_H_DEFAULTS): New macros.
36844         (gl_LOCALE_H): Require gl_LOCALE_H_DEFAULTS. Invoke
36845         gl_CHECK_NEXT_HEADERS unconditionally. Invoke gl_REPLACE_LOCALE_H.
36846         * modules/locale (Makefile.am): Substitute also GNULIB_DUPLOCALE,
36847         REPLACE_DUPLOCALE.
36848         * modules/duplocale: New file.
36849         * doc/posix-functions/duplocale.texi: Mention the glibc bug.
36850
36851 2009-11-22  Bruno Haible  <bruno@clisp.org>
36852
36853         * modules/locale-tests (configure.ac): Test for newlocale function.
36854         * tests/test-locale.c: When the system has extended locale functions,
36855         verify that <locale.h> defines locale_t and LC_GLOBAL_LOCALE.
36856
36857         locale: Make locale_t available when possible.
36858         * lib/locale.in.h: Include <xlocale.h> when it exists.
36859         * m4/locale_h.m4 (gl_LOCALE_H): Check for <xlocale.h> and arrange to
36860         replace <locale.h> if it does not define locale_t but <xlocale.h> does.
36861         * modules/locale (Depends-on): Add extensions.
36862         (Makefile.am): Also substitute HAVE_XLOCALE_H.
36863         * doc/posix-headers/locale.texi: Document the problem with locale_t.
36864
36865 2009-11-22  Bruno Haible  <bruno@clisp.org>
36866
36867         Add comments.
36868         * m4/dirent_h.m4 (gl_DIRENT_H): Add comment about gl_CHECK_NEXT_HEADERS
36869         invocation.
36870         * m4/iconv_h.m4 (gl_ICONV_H): Likewise.
36871         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
36872         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
36873
36874 2009-11-22  Bruno Haible  <bruno@clisp.org>
36875
36876         error: account for the possibility of freopen (stdout).
36877         * lib/error.c: Include <unistd.h>.
36878         (flush_stdout): New function, extracted from error and error_at_line.
36879         Determine stdout's fd dynamically.
36880         (error, error_at_line): Invoke flush_stdout.
36881         * m4/error.m4 (gl_PREREQ_ERROR): Require AC_C_INLINE.
36882         * modules/error (Depends-on): Add unistd.
36883
36884 2009-11-22  Bruno Haible  <bruno@clisp.org>
36885
36886         diffseq: Add comment.
36887         * lib/diffseq.h (IF_LINT): Add comment about pitfall.
36888
36889 2009-11-22  Jim Meyering  <meyering@redhat.com>
36890
36891         c-stack: avoid defining an unused static function
36892         * lib/c-stack.c (find_stack_direction): Do not define this function
36893         when it will not be used.
36894
36895         diffseq: avoid spurious gcc warnings
36896         * lib/diffseq.h (IF_LINT2): Define.
36897         (compareseq): Use it to initialize two members of "part".
36898         This avoids two used-uninitialized warnings.
36899
36900 2009-11-21  Jim Meyering  <meyering@redhat.com>
36901
36902         c-stack: avoid "ignoring return value of `write'" warning
36903         * lib/c-stack.c: Include "ignore-value.h".
36904         (die): Explicitly ignore each write return value.
36905         * modules/c-stack (Depends-on): Add ignore-value.
36906
36907 2009-11-21  Bruno Haible  <bruno@clisp.org>
36908
36909         diffseq: reduce scope of variable 'best'.
36910         * lib/diffseq.h (diag) [USE_HEURISTIC]: Reduce scope of 'best'
36911         variable, earlier used for two different purposes.
36912
36913 2009-11-21  Jim Meyering  <meyering@redhat.com>
36914
36915         diffseq: remove useless assignment to "best"
36916         * lib/diffseq.h (diag) [USE_HEURISTIC]: Remove useless "best = 0"
36917         assignment.  At that point "best" is already guaranteed to be zero.
36918
36919 2009-11-20  Eric Blake  <ebb9@byu.net>
36920
36921         build: mention ftp redirector in release announcements
36922         * top/maint.mk (gnu_rel_host, url_dir_list): Provide defaults for
36923         values that used to come from cfg.mk; mention FTP redirect URL.
36924         * build-aux/announce-gen: Mention the mirror list.
36925         Suggested by Karl Berry.
36926
36927         nanosleep: improve port to mingw
36928         * lib/nanosleep.c (rpl_nanosleep): Reject invalid arguments.
36929         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Incorporate LIBSOCKET into
36930         LIB_NANOSLEEP, but only when needed.
36931         * modules/select (Link): Document LIBSOCKET.
36932         * m4/select.m4 (gl_FUNC_SELECT): Ensure LIBSOCKET is defined early
36933         enough.
36934
36935         nanosleep: work around cygwin bug
36936         * lib/nanosleep.c (rpl_nanosleep) [HAVE_BUG_BIG_NANOSLEEP]:
36937         Fix logic bug when nanosleep fails.  Work around cygwin 1.5.x
36938         bug.
36939         (getnow): Delete, not needed.
36940         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): No longer require
36941         LIB_CLOCK_GETTIME.
36942         * modules/nanosleep (Depends-on): Add intprops and verify.  Drop
36943         clock-time, gettime.
36944         * doc/posix-functions/nanosleep.texi (nanosleep): Document the
36945         bug.
36946         * modules/nanosleep-tests: New test.
36947         * tests/test-nanosleep.c: New file.
36948
36949         sleep: work around cygwin bug
36950         * lib/sleep.c (rpl_sleep): Work around the bug.
36951         * m4/sleep.m4 (gl_FUNC_SLEEP): Detect the bug.
36952         (gl_PREREQ_SLEEP): Delete unused macro.
36953         * modules/sleep (Depends-on): Add verify.
36954         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add default.
36955         * modules/unistd (Makefile.am): Substitute witness.
36956         * lib/unistd.in.h (sleep): Update prototype.
36957         * doc/posix-functions/sleep.texi (sleep): Document the bug.
36958         * tests/test-sleep.c (main) [HAVE_DECL_ALARM]: Test it.
36959         * modules/sleep-tests (Depends-on): Check for alarm.
36960
36961 2009-11-20  Jim Meyering  <meyering@redhat.com>
36962
36963         maint.mk: improve sc_prohibit_magic_number_exit
36964         * top/maint.mk (sc_prohibit_magic_number_exit): Tighten regexp
36965         so it does not match uses like System.exit(1).
36966         Add comments showing how to correct all offenders.
36967
36968 2009-11-19  Eric Blake  <ebb9@byu.net>
36969
36970         xalloc-die-tests: add missing library
36971         * modules/xalloc-die-tests (Makefile.am): Add LDADD line.
36972
36973         test-xvasprintf: silence compiler warnings
36974         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Mask
36975         empty string from gcc.
36976
36977 2009-11-19  Jim Meyering  <meyering@redhat.com>
36978
36979         xfreopen: new module, from coreutils
36980         * modules/xfreopen: New module.
36981         * lib/xfreopen.c: New file.
36982         * lib/xfreopen.h: New file.
36983         * MODULES.html.sh (File stream based Input/Output"): Add it.
36984
36985 2009-11-19  Eric Blake  <ebb9@byu.net>
36986
36987         manywarnings: depend on warnings
36988         * modules/manywarnings (Depends-on): Add warnings.
36989
36990         build: avoid compiler warnings
36991         * lib/select.c (rpl_select): Delete unused variable.
36992         * lib/setsockopt.c (rpl_setsockopt): Avoid incompatible pointer.
36993
36994 2009-11-18  Eric Blake  <ebb9@byu.net>
36995
36996         tests: avoid false negative with --with-packager
36997         * tests/test-version-etc.sh: Discard packager information.
36998         * tests/test-argp-version-etc-1.sh: Likewise.
36999         Reported by Mike Frysinger.
37000
37001         utimens: fix regression on Solaris
37002         * m4/utimens.m4 (gl_UTIMENS): Check for BSD bug.
37003         * lib/utimens.c (fdutimens): Revert 2009-11-08 change; Solaris 10
37004         can only change fd timestamps via futimesat.  Instead, use an
37005         additional witness macro to avoid BSD bug.
37006         Reported by Jim Meyering.
37007
37008 2009-11-17  Eric Blake  <ebb9@byu.net>
37009
37010         usleep: use it to simplify tests
37011         * modules/stat-time-tests (Depends-on): Add usleep.
37012         (configure.ac): Drop usleep check.
37013         * modules/chown-tests (Depends-on, configure.ac): Likewise.
37014         * modules/lchown-tests (Depends-on, configure.ac): Likewise.
37015         * modules/fdutimensat-tests (Depends-on, configure.ac): Likewise.
37016         * modules/futimens-tests (Depends-on, configure.ac): Likewise.
37017         * modules/openat-tests (Depends-on, configure.ac): Likewise.
37018         * modules/utimens-tests (Depends-on, configure.ac): Likewise.
37019         * modules/utimensat-tests (Depends-on, configure.ac): Likewise.
37020         * modules/pipe-filter-gi-tests (Depends-on, configure.ac):
37021         Likewise.
37022         * tests/test-chown.h (nap): Rely on nicer usleep semantics.
37023         * tests/test-lchown.h (nap): Likewise.
37024         * tests/test-pipe-filter-gi2-main.c (small_nap): Likewise.
37025         * tests/test-stat-time.c (nap): Likewise.
37026         * tests/test-utimens-common.h (nap): Update comments.
37027
37028         usleep: new module
37029         * modules/usleep: New file.
37030         * m4/usleep.m4 (gl_FUNC_USLEEP): Likewise.
37031         * lib/usleep.c (usleep): Likewise.
37032         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add defaults.
37033         * modules/unistd (Makefile.am): Substitute witnesses.
37034         * lib/unistd.in.h (usleep): Add declaration.
37035         * doc/pastposix-functions/usleep.texi (usleep): Document this.
37036         * MODULES.html.sh (Date and time): Likewise.
37037         * modules/usleep-tests (Depends-on): New test.
37038         * tests/test-usleep.c: New file.
37039
37040         chown: work around OpenBSD bug
37041         * lib/chown.c (rpl_chown): Work around the bug.
37042         * lib/lchown.c (rpl_lchown): Attempt to do likewise.
37043         * m4/chown.m4 (gl_FUNC_CHOWN): Test for ctime bug.
37044         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check for lchmod.
37045         * modules/chown (Depends-on): Add stdbool.
37046         * modules/lchown (Depends-on): Likewise.
37047         * doc/posix-functions/chown.texi (chown): Document the bug.
37048         * doc/posix-functions/lchown.texi (lchown): Likewise.
37049         * tests/test-lchown.h (test_chown): Relax test.
37050
37051         mkstemp: avoid conflict with C++ keyword template
37052         * lib/mkdtemp.c (mkdtemp): Change spelling of template.
37053         * lib/mkostemp.c (mkostemp): Likewise.
37054         * lib/mkostemps.c (mkostemps): Likewise.
37055         * lib/mkstemp.c (mkstemp): Likewise.
37056         * lib/mkstemps.c (mkstemps): Likewise.
37057
37058         xalloc-die-tests: optimize
37059         * tests/test-xalloc-die.sh: Reduce number of processes.
37060
37061 2009-11-17  Simon Josefsson  <simon@josefsson.org>
37062
37063         * gnulib-tool: Support LGPLv3+ licenses in module files.  Tiny
37064         patch from ludo@gnu.org (Ludovic Courtès).
37065
37066 2009-11-17  Jim Meyering  <meyering@redhat.com>
37067
37068         version-etc: use proper license string
37069         * modules/version-etc (License): Use LGPL, not LGPLv3+.
37070         * modules/version-etc-fsf: Likewise.
37071
37072 2009-11-17  Simon Josefsson  <simon@josefsson.org>
37073
37074         * tests/test-xalloc-die.sh: Add license.  Check that nothing is
37075         printed to stdout.  Deal with EOL differences.
37076
37077 2009-11-17  Eric Blake  <ebb9@byu.net>
37078
37079         unsetenv: work around Solaris bug
37080         * m4/setenv.m4 (gl_FUNC_UNSETENV): Check for bug.
37081         * lib/unsetenv.c (rpl_unsetenv): Work around it.
37082         Reported by Jim Meyering.
37083
37084         vasnprintf: avoid compiler warnings
37085         * lib/vasnprintf.c (VASNPRINTF): Avoid shadowing our own local
37086         variables.
37087         * lib/printf-args.c (PRINTF_FETCHARGS): Avoid type mismatch.
37088
37089 2009-11-17  Simon Josefsson  <simon@josefsson.org>
37090
37091         * modules/xalloc-die-tests (Makefile.am): Drop XFAIL_TESTS
37092         settings since xalloc-die is no longer the self test,
37093         xalloc-die.sh is.
37094
37095 2009-11-17  Jim Meyering  <meyering@redhat.com>
37096
37097         test-xalloc-die.sh: make the code agree with the commit log
37098         * tests/test-xalloc-die.sh: Put "." at the front of $PATH, not
37099         at the end, just in case you happen to have a test-xalloc-die
37100         program in some other PATH directory.
37101
37102         test-xalloc-die.sh: fix a portability bug
37103         * tests/test-xalloc-die.sh: Do not invoke via ./test-xalloc-die.
37104         Instead, set PATH to start with "." and invoke via "test-xalloc-die".
37105         Otherwise, argv[0] (as often seen in diagnostics) would be too
37106         system-dependent, sometimes with, and sometimes without the leading "./".
37107
37108         version-etc-fsf: relax license to LGPLv3+
37109         * modules/version-etc-fsf (License): Relax license.
37110
37111 2009-11-16  Eric Blake  <ebb9@byu.net>
37112
37113         xalloc-die-tests: avoid printing null pointer
37114         * modules/xalloc-die-tests (Files, Makefile.am): Wrap execution in
37115         shell script.
37116         * tests/test-xalloc-die.c (program_name): Declare.
37117         * tests/test-xalloc-die.sh (tmpfiles): New file.
37118
37119         setenv, unsetenv: work around various bugs
37120         * lib/setenv.c (setenv) [!HAVE_SETENV]: Resync from glibc.
37121         (setenv) [HAVE_SETENV]: Work around bugs.
37122         * lib/unsetenv.c (unsetenv) [HAVE_UNSETENV]: Work around bugs.
37123         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE, gl_FUNC_UNSETENV): Check
37124         for bugs.
37125         (gl_FUNC_SETENV): Write in terms of gl_FUNC_SETENV_SEPARATE.
37126         * m4/environ.m4 (gl_ENVIRON): Avoid expand-before-require.
37127         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Update defaults.
37128         * modules/stdlib (Makefile.am): Update substitutions.
37129         * lib/stdlib.in.h (setenv, unsetenv): Update prototypes.
37130         * doc/posix-functions/setenv.texi (setenv): Document the bugs.
37131         * doc/posix-functions/unsetenv.texi (unsetenv): Likewise.
37132         * modules/setenv-tests: New test.
37133         * modules/unsetenv-tests: Likewise.
37134         * tests/test-setenv.c: New file.
37135         * tests/test-unsetenv.c: Likewise.
37136
37137 2009-11-16  Jim Meyering  <meyering@redhat.com>
37138
37139         version-etc: relax license to LGPLv3+
37140         * modules/version-etc (License): Relax license.
37141
37142         better AC_REQUIRE expanded-before-required-warning avoidance
37143         * m4/chown.m4 (gl_FUNC_CHOWN, gl_FUNC_CHOWN_FOLLOWS_SYMLINK): Define
37144         with AC_DEFUN_ONCE, rather than AC_DEFUN, to avoid AC_REQUIRE warnings.
37145         Suggested by Eric Blake.  This change also reverts commit 1b712ba8,
37146         which is no longer needed.
37147
37148 2009-11-16  Eric Blake  <ebb9@byu.net>
37149
37150         test-freading: clean up temporary file
37151         * tests/test-freading.c (main): Remove file on success, and use
37152         ASSERT more liberally.
37153         Reported by Jim Meyering.
37154
37155 2009-11-16  Jim Meyering  <meyering@redhat.com>
37156
37157         avoid new AC_REQUIRE expanded-before-required warnings
37158         * modules/chown (configure.ac): Require gl_FUNC_CHOWN, rather than
37159         merely using it.
37160         * modules/euidaccess (configure.ac): Likewise for gl_FUNC_EUIDACCESS.
37161         * modules/faccessat (configure.ac): Likewise for gl_FUNC_FACCESSAT.
37162
37163 2009-11-15  Simon Josefsson  <simon@josefsson.org>
37164
37165         * tests/test-xalloc-die.c: New file.
37166         * modules/xalloc-die-tests: New file.
37167         * gnulib-tool (func_emit_tests_Makefile_am): Also initialize
37168         XFAIL_TESTS so it can be appended by modules.
37169
37170 2009-11-15  Simon Josefsson  <simon@josefsson.org>
37171
37172         * lib/gc-pbkdf2-sha1.c: Remove comments from RFC 2898.  Reported
37173         by Vladimir 'phcoder' Serbinenko <phcoder@gmail.com>.
37174
37175 2009-11-14  Eric Blake  <ebb9@byu.net>
37176
37177         fnmatch: avoid compiler warning
37178         * lib/fnmatch_loop.c (NEW_PATTERN): Coerce addition to unsigned,
37179         to silence compiler warning about mismatch signedness in ?:.
37180         Reported by Robert Millan.
37181
37182         intprops: add double-inclusion guard
37183         * lib/intprops.h: Allow idempotent includes.
37184         Suggested by Bruce Korb.
37185
37186         openat: detect Solaris fchownat bug
37187         * lib/fchownat.c (rpl_fchownat): Work around Solaris bug.  Avoid
37188         penalizing glibc chownat when only lchownat is broken.
37189         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Replace fchownat if there are
37190         trailing slash bugs.
37191         * doc/posix-functions/fchownat.texi (fchownat): Document the bug.
37192         * modules/openat-tests (Files): Include more files.
37193         (Depends-on): Add mgetgroups, sleep, stat-time.
37194         (configure.ac): Add additional checks.
37195         (Makefile.am): Build new test.
37196         * tests/test-fchownat.c: New file.
37197
37198         lchown: detect Solaris and FreeBSD bug
37199         * lib/lchown.c (rpl_lchown): Work around bug.
37200         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check for trailing slash bugs.
37201         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
37202         * modules/unistd (Makefile.am): Populate it.
37203         * lib/unistd.in.h (lchown): Update declaration.
37204         * doc/posix-functions/lchown.texi (lchown): Document the bug.
37205         * modules/lchown-tests: New file.
37206         * tests/test-lchown.h (test_lchown): Likewise.
37207         * tests/test-lchown.c (main): Likewise.
37208
37209         chown: detect Solaris and FreeBSD bug
37210         * lib/chown.c (rpl_chown): Work around bug.
37211         * m4/chown.m4 (gl_FUNC_CHOWN): Check for trailing slash bugs.
37212         (gl_PREREQ_CHOWN): Delete.
37213         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
37214         * modules/unistd (Makefile.am): Populate it.
37215         * lib/unistd.in.h (chown): Update declaration.
37216         * lib/lchown.c (chown): Update client.
37217         * modules/lchown (Depends-on): Add lstat.
37218         * doc/posix-functions/chown.texi (chown): Document the bug.
37219         * doc/posix-functions/getgroups.texi (getgroups): Document
37220         getgroups pitfall.
37221         * modules/chown-tests: New file.
37222         * tests/test-chown.h (test_chown): Likewise.
37223         * tests/test-chown.c (main): Likewise.
37224
37225 2009-11-14  Robert Millan  <rmh.grub@aybabtu.com>  (tiny change)
37226
37227         gnulib-tool: correctly detect absence of m4 directories
37228         * gnulib-tool: Avoid extra newline on data passed to wc -l.
37229
37230 2009-11-14  Jim Meyering  <meyering@redhat.com>
37231
37232         maint.mk: Prohibit inclusion of "xalloc.h" without use.
37233         * top/maint.mk (sc_prohibit_close_stream_without_use): New rule.
37234
37235 2009-11-14  John W. Eaton  <jwe@gnu.org>
37236
37237         strftime.h: wrap funtion declaration in extern "C" block
37238         * lib/strftime.h (nstrftime) [__cplusplus]: Wrap declaration.
37239
37240 2009-11-13  Eric Blake  <ebb9@byu.net>
37241
37242         getgroups: avoid compiler warning
37243         * lib/getgroups.c (rpl_getgroups): Delete shadowed variable.
37244
37245         getgroups: work around FreeBSD bug
37246         * lib/getgroups.c (rpl_getgroups): Work around the bug.
37247         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Detect the bug.
37248         * doc/posix-functions/getgroups.texi (getgroups): Document it.
37249         * tests/test-getgroups.c (main): Fix buffer overrun.
37250
37251         getgroups: avoid compilation failure
37252         * lib/getgroups.c (includes): Include <stdint.h> for SIZE_MAX.
37253         * modules/getgroups (Depends-on): Add stdint.
37254
37255 2009-11-13  Jim Meyering  <meyering@redhat.com>
37256
37257         test-getgroups: avoid compilation failure
37258         * tests/test-getgroups.c: Include <stdint.h> for use of SIZE_MAX.
37259
37260 2009-11-13  Eric Blake  <ebb9@byu.net>
37261
37262         mgetgroups: new module, taken from coreutils
37263         * modules/mgetgroups: New file.
37264         * lib/mgetgroups.h: Likewise.
37265         * lib/mgetgroups.c (mgetgroups): Likewise.
37266         * m4/mgetgroups.m4 (gl_MGETGROUPS): Likewise.
37267         * MODULES.html.sh (Users and groups): Mention it.
37268
37269         getgroups: don't expose GETGROUPS_T to user
37270         * lib/getgroups.c (rpl_getgroups): Change signature.  Copy array
37271         an element at a time if GETGROUPS_T is wrong size.
37272         * lib/getugroups.h (getugroups): Change signature.
37273         * lib/unistd.in.h (getgroups): Likewise.
37274         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Use replacement if
37275         signature needs fixing.
37276         * m4/getugroups.m4 (gl_GETUGROUPS): No longer need
37277         AC_TYPE_GETGROUPS.
37278         * modules/group-member (Depends-on): Add getgroups.
37279         * lib/group-member.c (group_info, get_group_info): Use gid_t.
37280         (group_member): Rely on getgroups replacement.
37281         * lib/getugroups.c (getugroups): Use gid_t.
37282         * tests/test-getgroups.c (main): Likewise.
37283         * NEWS: Mention the signature change.
37284         * doc/posix-functions/getgroups.texi (getgroups): Mention the
37285         problem with signature.
37286         * doc/glibc-functions/setgroups.texi (setgroups): Mention that
37287         GETGROUPS_T is still useful for setgroups.
37288
37289         getgroups, getugroups: provide stubs for mingw
37290         * lib/getgroups.c (getgroups): Provide ENOSYS stub for mingw.
37291         * lib/getugroups.c (getugroups): Likewise.
37292         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Check for missing
37293         function.  Modernize replacement scheme.
37294         (gl_PREREQ_GETGROUPS): Delete.
37295         * m4/getugroups.m4 (gl_GETUGROUPS): Check for <grp.h>.
37296         * modules/getgroups (configure.ac): Declare witness.
37297         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add default.
37298         * modules/unistd (Depends-on): Substitute witness.
37299         * lib/unistd.in.h (getgroups): Declare replacement.
37300
37301         getgroups: avoid calling exit
37302         * modules/getgroups (Depends-on): Add malloc-posix and unistd,
37303         drop xalloc.
37304         * modules/getgroups-tests (Depends-on, Makefile.am): Drop unneeded
37305         dependencies.
37306         * lib/getgroups.c (rpl_getgroups): Fail with ENOMEM rather than
37307         exiting, in the rare case of malloc failure.
37308
37309         getgroups: fix logic error
37310         * lib/getgroups.c (rpl_getgroups): Don't fail if current process
37311         has more than 20 groups.
37312         * modules/getgroups-tests: New test.
37313         * tests/test-getgroups.c: New file.
37314
37315 2009-11-13  Simon Josefsson  <simon@josefsson.org>
37316
37317         * tests/test-base64.c: Improve.
37318
37319 2009-11-13  Simon Josefsson  <simon@josefsson.org>
37320
37321         * tests/test-xvasprintf.c: Fix memory leak, suggested by Eric
37322         Blake <ebb9@byu.net>.
37323
37324 2009-11-13  Simon Josefsson  <simon@josefsson.org>
37325
37326         * tests/test-xvasprintf.c: Add %s%s related checks.
37327
37328 2009-11-12  Eric Blake  <ebb9@byu.net>
37329
37330         version-etc: match standards.texi style
37331         * lib/version-etc.c (emit_bug_reporting_address): Drop periods,
37332         and use <> only for URLs.
37333
37334 2009-11-10  Kamil Dudka  <kdudka@redhat.com>
37335
37336         fts: do not fail on a submount during traversal
37337         * lib/fts.c (fts_build): Read the stat info again after opening
37338         a directory if the FTS_TIGHT_CYCLE_CHECK flag is set.
37339         Original report at http://bugzilla.redhat.com/501848.
37340
37341 2009-11-12  Jim Meyering  <meyering@redhat.com>
37342
37343         bootstrap: sync from coreutils
37344         * build-aux/bootstrap (bootstrap_epilogue): New function.
37345         Use git_modules_config in one more place.  This make bootstrap's
37346         --gnulib-srcdir option more useful for testing.
37347
37348         bootstrap: generalize autoheader check
37349         * build-aux/bootstrap: Look for AC_CONFIG_HEADER as well as
37350         AC_CONFIG_HEADERS.
37351
37352 2009-11-11  Eric Blake  <ebb9@byu.net>
37353
37354         mkfifoat: use new modules for Solaris and BSD bugs
37355         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Simplify.
37356         * lib/mkfifoat.c (mknodat): Split...
37357         * lib/mknodat.c (mknodat): ...into new file.
37358         * modules/mkfifoat (Files): Ship new file.
37359         (Depends-on): Add mkfifo, mknod.
37360         * modules/mkfifoat-tests (Files): Reuse mkfifo tests.
37361         (Depends-on): Add symlink.
37362         * tests/test-mkfifoat.c (main): Enhance test.  Drop portions now
37363         redundant with test_mkfifo.h.
37364         (do_mkfifoat, do_mknodat): New helpers.
37365
37366         mknod: new module
37367         * modules/mknod: New file.
37368         * m4/mknod.m4 (gl_FUNC_MKNOD): Likewise.
37369         * lib/mknod.c (mknod): Likewise.
37370         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Set witness
37371         defaults.
37372         * modules/sys_stat (Makefile.am): Substitute them.
37373         * lib/sys_stat.in.h (mknod): Declare replacement.
37374         * MODULES.html.sh (Support for systems lacking POSIX:2008):
37375         Document it.
37376         * doc/posix-functions/mknod.texi (mknod): Likewise.
37377         * modules/mknod-tests: New test.
37378         * tests/test-mknod.c: Likewise.
37379
37380         mkfifo: new module
37381         * modules/mkfifo: New file.
37382         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Likewise.
37383         * lib/mkfifo.c (mkfifo): Likewise.
37384         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Set witness
37385         defaults.
37386         * modules/sys_stat (Makefile.am): Substitute them.
37387         * lib/sys_stat.in.h (mkfifo): Declare replacement.
37388         * MODULES.html.sh (Support for systems lacking POSIX:2008):
37389         Document it.
37390         * doc/posix-functions/mkfifo.texi (mkfifo): Likewise.
37391         * modules/mkfifo-tests: New test.
37392         * tests/test-mkfifo.h (test_mkfifo): New file, borrowed in part
37393         from test-mkfifoat.c.
37394         * tests/test-mkfifo.c: New file.
37395
37396         readlink: detect FreeBSD bug
37397         * m4/readlink.m4 (gl_FUNC_READLINK): Also detect FreeBSD bug with
37398         slash on symlink.
37399         * doc/posix-functions/readlink.texi (readlink): Document the bug.
37400         * tests/test-readlink.h (test_readlink): Enhance test.
37401
37402         symlink: detect FreeBSD bug
37403         * m4/symlink.m4 (gl_FUNC_SYMLINK): Also detect FreeBSD bug with
37404         slash on symlink.
37405         * doc/posix-functions/symlink.texi (symlink): Document the bug.
37406         * tests/test-symlink.h (test_symlink): Enhance test.
37407
37408 2009-11-10  Eric Blake  <ebb9@byu.net>
37409
37410         link: detect FreeBSD bug
37411         * m4/link.m4 (gl_FUNC_LINK): Also detect FreeBSD bug with slash on
37412         symlink.
37413         * doc/posix-functions/link.texi (link): Document the bug.
37414         * tests/test-link.h (test_link): Enhance test.
37415         * tests/test-linkat.c (main): Update caller.
37416
37417         unlink, remove: detect FreeBSD bug
37418         * m4/unlink.m4 (gl_FUNC_UNLINK): Also detect FreeBSD bug with
37419         slash on symlink.
37420         * doc/posix-functions/unlink.texi (unlink): Document the bug.
37421         * doc/posix-functions/remove.texi (remove): Likewise.
37422         * tests/test-unlink.h (test_unlink): Enhance test.
37423         * tests/test-remove.c (main): Likewise.
37424
37425 2009-11-09  Eric Blake  <ebb9@byu.net>
37426
37427         rename: detect FreeBSD bug
37428         * m4/rename.m4 (gl_FUNC_RENAME): Also detect FreeBSD bug with
37429         slash on symlink.
37430         * modules/renameat-tests (Depends-on): Add filenamecat.
37431         * tests/test-rename.h (test_rename): Allow one more errno.
37432         * tests/test-renameat.c (main): Likewise.
37433         * doc/posix-functions/rename.texi (rename): Document the bug.
37434
37435         open: detect FreeBSD bug
37436         * m4/open.m4 (gl_FUNC_OPEN): Also detect FreeBSD bug with slash on
37437         symlink.
37438         * doc/posix-functions/open.texi (open): Document the bug.
37439         * doc/posix-functions/utimes.texi (utimes): Likewise.
37440         * tests/test-open.h (test_open): Add parameters, and test symlink
37441         handling.
37442         * tests/test-open.c (main): Adjust caller.
37443         * tests/test-fcntl-safer.c (main): Likewise.
37444         * modules/open-tests (Depends-on): Add stdbool, symlink.
37445         * modules/fcntl-safer-tests (Depends-on): Likewise.
37446         * tests/test-openat.c (main): Add test-open tests.
37447
37448         stat: detect FreeBSD bug
37449         * m4/stat.m4 (gl_FUNC_STAT): Also detect FreeBSD bug with slash on
37450         symlink.
37451         * doc/posix-functions/stat.texi (stat): Document the bug.
37452         * tests/test-stat.h (test_stat_func): Add argument.
37453         * tests/test-stat.c (main): Adjust caller.
37454         * tests/test-fstatat.c (main): Likewise.
37455         * modules/stat-tests (Depends-on): Add stdbool, symlink.
37456         Reported by Jim Meyering.
37457
37458 2009-11-09  James Youngman  <jay@gnu.org>
37459
37460         strftime.c: include ignore-value.h only when FPRINTFTIME is defined
37461         * lib/strftime.c: Correct placement of #include "ignore-value.h".
37462
37463 2009-11-08  Jim Meyering  <meyering@redhat.com>
37464
37465         utimens: remove invalid futimesat call
37466         * lib/utimens.c (fdutimens): Remove invalid futimesat call.
37467         It used the file descriptor of the target file as the DIR_FD
37468         parameter and NULL as the file name.  That caused failure with
37469         errno == EFAULT on FreeBSD-8.0-rc2
37470
37471 2009-11-07  Eric Blake  <ebb9@byu.net>
37472
37473         fflush, freadseek: use fseeko, not fseek
37474         * lib/fflush.c (clear_ungetc_buffer_preserving_position)
37475         (clear_ungetc_buffer): Avoid potential problems on large files.
37476         * lib/freadseek.c (freadseek): Likewise.
37477         * modules/freadseek (Depends-on): Add fseeko.
37478         * modules/fseek (configure.ac): Set a witness.
37479         * tests/test-fflush.c (main): Use fseeko.
37480         * tests/test-fpurge.c (fseek): Disable link warning.
37481         * tests/test-freadable.c (fseek): Likewise.
37482         * tests/test-freading.c (fseek): Likewise.
37483         * tests/test-fseeko.c (fseek): Likewise.
37484         * tests/test-ftell.c (fseek): Likewise.
37485         * tests/test-ftello.c (fseek): Likewise.
37486         * tests/test-fwritable.c (fseek): Likewise.
37487         * tests/test-fwriting.c (fseek): Likewise.
37488
37489 2009-11-06  Simon Josefsson  <simon@josefsson.org>
37490
37491         * modules/memchr (Depends-on): Drop getpagesize dependency.
37492
37493 2009-11-06  Simon Josefsson  <simon@josefsson.org>
37494
37495         * build-aux/pmccabe2html: Disable execute bit.  Suggested by
37496         Reported by Ludovic Courtès.
37497         * build-aux/pmccabe2html: Improve example usage.
37498         * build-aux/pmccabe2html: Drop #! header.  Doc fix.
37499
37500 2009-11-06  Jim Meyering  <meyering@redhat.com>
37501
37502         do-release-commit-and-tag: New module.
37503         Automate the release-commit and tag process.
37504         * build-aux/do-release-commit-and-tag: New script, from coreutils.
37505         * modules/do-release-commit-and-tag: New file.
37506         * MODULES.html.sh (Support for maintaining and releasing): Add it.
37507
37508 2009-11-06  Simon Josefsson  <simon@josefsson.org>
37509
37510         * modules/select-tests (test_select_LDADD): Add $(INET_PTON_LIB)
37511         because test-select.c uses inet_pton.
37512
37513 2009-11-06  Simon Josefsson  <simon@josefsson.org>
37514
37515         * m4/getaddrinfo.m4: Add content of INET_NTOP_LIB to
37516         GETADDRINFO_LIB.  Bump serial number.
37517         * modules/getaddrinfo (Link): Only mention GETADDRINFO_LIB again.
37518         Suggested by Eric Blake <ebb9@byu.net>.
37519
37520 2009-11-05  Eric Blake  <ebb9@byu.net>
37521
37522         strtod: detect darwin bug
37523         * m4/strtod.m4 (gl_FUNC_STRTOD): Filter out darwin bug on "nan(".
37524         Reported by Leo Davis.
37525
37526         freopen-safer: new module
37527         * modules/freopen-safer: New module.
37528         * m4/stdio-safer.m4 (gl_FREOPEN_SAFER): New macro.
37529         * lib/freopen-safer.c (freopen_safer): New file.
37530         * lib/stdio-safer.h (freopen_safer): New declaration.
37531         * lib/stdio--.h (freopen): New override.
37532         * MODULES.html.sh (File stream based Input/Output): Mention it.
37533         * doc/posix-functions/freopen.texi (freopen): Mention pitfalls and
37534         freopen-safer module.
37535         * doc/posix-functions/stderr.texi (stderr): Likewise.
37536         * doc/posix-functions/stdin.texi (stdin): Likewise.
37537         * doc/posix-functions/stdout.texi (stdout): Likewise.
37538         * modules/freopen-safer-tests: New test.
37539         * tests/test-reopen-safer.c: New file.
37540
37541 2009-11-05  Jim Meyering  <meyering@redhat.com>
37542
37543         maint.mk: Prohibit inclusion of "close-stream.h" without use.
37544         * top/maint.mk (sc_prohibit_close_stream_without_use): New rule.
37545
37546 2009-11-05  Simon Josefsson  <simon@josefsson.org>
37547
37548         * modules/pmccabe2html (configure.ac): Check for pmccabe tool.
37549
37550 2009-11-05  Simon Josefsson  <simon@josefsson.org>
37551
37552         * modules/getaddrinfo (Link): Add $(INET_NTOP_LIB).
37553
37554 2009-11-05  Simon Josefsson  <simon@josefsson.org>
37555
37556         Fix link error.
37557         * m4/inet_ntop.m4 (gl_INET_NTOP): Fix test of AC_SEARCH_LIBS result.
37558         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
37559
37560 2009-11-05  Simon Josefsson  <simon@josefsson.org>
37561
37562         * tests/test-func.c: Also test value of __func__.
37563
37564 2009-11-05  Simon Josefsson  <simon@josefsson.org>
37565
37566         * tests/test-sys_socket.c: Use smaller constant value, sa_family_t
37567         may be an 8-bit type.  Reported by Bruno Haible <bruno@clisp.org>.
37568
37569 2009-11-05  Bruno Haible  <bruno@clisp.org>
37570
37571         Fix link error.
37572         * m4/inet_ntop.m4 (gl_INET_NTOP): Fix test of AC_SEARCH_LIBS result.
37573         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
37574         Reported by Brad Hards <bradh@frogmouth.net> via Simon Josefsson.
37575
37576 2009-11-05  Bruno Haible  <bruno@clisp.org>
37577
37578         Tests for module 'inet_pton'.
37579         * modules/inet_pton-tests: New file.
37580         * tests/test-inet_pton.c: New file.
37581
37582 2009-11-05  Bruno Haible  <bruno@clisp.org>
37583
37584         Tests for module 'inet_ntop'.
37585         * modules/inet_ntop-tests: New file.
37586         * tests/test-inet_ntop.c: New file.
37587
37588 2009-11-04  Eric Blake  <ebb9@byu.net>
37589
37590         stdlib-safer: wrap all mkstemp variants
37591         * modules/mkostemp (configure.ac): Set witness.
37592         * modules/mkostemps (configure.ac): Likewise.
37593         * modules/mkstemps (configure.ac): Likewise.
37594         * lib/stdlib-safer.h (mkostemp_safer, mkostemps_safer)
37595         (mkstemps_safer): Wrap more functions.
37596         * lib/stdlib--.h (mkostemp, mkostemps, mkstemps): Default the
37597         wrapping.
37598         * lib/mkstemp-safer.c (mkostemp_safer, mkostemps_safer)
37599         (mkstemps_safer): Implement the wrappers.
37600
37601         mkstemps, mkostemps: new modules
37602         * modules/mkostemps: New module.
37603         * modules/mkstemps: Likewise.
37604         * lib/mkostemps.c (mkostemps): New file.
37605         * lib/mkstemps.c (mkstemps): Likewise.
37606         * m4/mkostemps.m4 (gl_FUNC_MKOSTEMPS): Likewise.
37607         * m4/mkstemps.m4 (gl_FUNC_MKSTEMPS): Likewise.
37608         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Add witnesses.
37609         * modules/stdlib (Makefile.am): Substitute them.
37610         * lib/stdlib.in.h (mkostemps, mkstemps): Declare them.
37611         * doc/glibc-functions/mkstemps.texi (mkstemps): New file.
37612         * doc/glibc-functions/mkostemps.texi (mkostemps): Likewise.
37613         * doc/gnulib.texi (Glibc stdlib.h): Include them.
37614         * MODULES.html.sh (File system functions): Mention them.
37615
37616         tempname: resync from glibc
37617         * lib/tempname.c (__gen_tempname): Add suffixlen argument.  Use
37618         same values for __GT_FILE as glibc.  Abort even when assertions
37619         are disabled.
37620         * lib/tempname.h (GT_FILE): Use glibc __GT_FILE, if available, and
37621         match its value otherwise.  Allow idempotent inclusion.
37622         * lib/mkdtemp.c (mkdtemp): Adjust caller.
37623         * lib/mkostemp.c (mkostemp): Likewise.
37624         * lib/mkstemp.c (mkstemp): Likewise.
37625         * lib/tmpfile.c (tmpfile): Likewise.
37626         * NEWS: Document this.
37627
37628         utimens: fix use of futimens on older Linux
37629         * lib/utimens.c (fdutimens): Use updated, rather than original,
37630         timespec to avoid bug in older Linux kernel.
37631         Reported by Simon Josefsson.
37632
37633 2009-11-04  Bruno Haible  <bruno@clisp.org>
37634
37635         Make num_processors more flexible and consistent.
37636         * lib/nproc.h (enum nproc_query): New type.
37637         (num_processors): Add a 'query' argument.
37638         * lib/nproc.c: Include <stdlib.h>, <sched.h>, c-ctype.h.
37639         (num_processors): Add a 'query' argument. Test the value of the
37640         OMP_NUM_THREADS environment variable if requested. On Linux, NetBSD,
37641         mingw, count the number of CPUs available for the current process.
37642         * m4/nproc.m4 (gl_PREREQ_NPROC): Require AC_USE_SYSTEM_EXTENSIONS.
37643         Check for sched_getaffinity and sched_getaffinity_np.
37644         * modules/nproc (Depends-on): Add c-ctype, extensions.
37645         * NEWS: Mention the change.
37646
37647 2009-11-03  Bruno Haible  <bruno@clisp.org>
37648
37649         * NEWS: Document the new library dependencies of inet_ntop, inet_pton.
37650
37651 2009-11-03  Jim Meyering  <meyering@redhat.com>
37652
37653         test-getaddrinfo: avoid compilation failure on FreeBSD 7.2
37654         * tests/test-getaddrinfo.c (simple): Test for EAI_NODATA only
37655         if it is defined.
37656
37657 2009-11-02  Eric Blake  <ebb9@byu.net>
37658
37659         mktime, timegm: share common declaration
37660         * lib/mktime-internal.h: New file.
37661         * lib/mktime.c: Use it rather than open-coding a declaration.
37662         * lib/timegm.c: Likewise.
37663         * modules/mktime (Files): Ship it.
37664         * modules/timegm (Files): Likewise.
37665         Suggested by Bruno Haible.
37666
37667         test-update-copyright: update test to match script changes
37668         * tests/test-update-copyright.sh: Avoid hard-coding perl
37669         location.  Don't update *.bak created by earlier runs.
37670
37671 2009-11-02  Paul Eggert  <eggert@cs.ucla.edu>
37672             Simon Josefsson  <simon@josefsson.org>
37673             Bruno Haible  <bruno@clisp.org>
37674
37675         Fix link error on Solaris 8.
37676         * m4/inet_pton.m4 (gl_INET_PTON): Search for the function inet_pton
37677         also in libnsl. Define also INET_PTON_LIB.
37678         * modules/inet_pton (Link): New section.
37679
37680 2009-11-02  Simon Josefsson  <simon@josefsson.org>
37681             Bruno Haible  <bruno@clisp.org>
37682
37683         * m4/inet_ntop.m4 (gl_INET_NTOP): Define also INET_NTOP_LIB.
37684         * modules/inet_ntop (Link): New section.
37685         Reported by Boyan Kasarov <bkasarov@gmail.com>.
37686
37687 2009-11-02  Eric Blake  <ebb9@byu.net>
37688
37689         maint: avoid compiler warnings in m4 macros
37690         * m4/ungetc.m4 (gl_FUNC_UNGETC_WORKS): Avoid unused variable.
37691         * m4/rmdir.m4 (gl_FUNC_RMDIR): Include correct header.
37692
37693 2009-11-02  Simon Josefsson  <simon@josefsson.org>
37694
37695         * m4/pmccabe2html.m4: Remove file.
37696         * modules/pmccabe2html: Drop pmccabe2html.m4.  Don't call m4
37697         function.  Change maintainer.
37698         * build-aux/pmccabe2html: Use /bin/sh with magic instead of
37699         hard-coding path to awk.  Tiny patch from ludo@gnu.org (Ludovic
37700         Courtès).
37701
37702 2009-10-31  Eric Blake  <ebb9@byu.net>
37703
37704         fseeko: fix m4 regression
37705         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Use modern macro.  Fixes
37706         regression from 2009-10-27.
37707         Reported by Ralf Wildenhues.
37708
37709 2009-10-31  Jim Meyering  <meyering@redhat.com>
37710
37711         inttostr: aesthetics and improved (compile-time) safety
37712         Define inttype_is_signed rather than inttype_is_unsigned,
37713         since the sole use is via "#if inttype_is_signed".
37714         * lib/imaxtostr.c (inttype_is_signed): Define this, rather than
37715         inttype_is_unsigned.
37716         * lib/offtostr.c (inttype_is_signed): Likewise.
37717         * lib/uinttostr.c (inttype_is_signed): Likewise.
37718         * lib/umaxtostr.c (inttype_is_signed): Likewise.
37719         * lib/inttostr.c (inttostr): Use verify to cross-check the
37720         inttype_is_signed value and the signedness of the actual type.
37721         * modules/inttostr (Depends-on): Add verify.
37722
37723 2009-10-30  Eric Blake  <ebb9@byu.net>
37724
37725         build: avoid compiler warnings
37726         * lib/fchmodat.c (lchmod): Mark unused variables.
37727         * lib/getopt.c (_getopt_initialize): Likewise.
37728         * lib/mktime.c (__mktime_internal): Provide prototype.
37729         * lib/inttostr.c (inttostr): Avoid compiler warning even with
37730         older gcc that do not understand #pragma GCC diagnostic.
37731         * lib/uinttostr.c (inttype_is_unsigned): Define.
37732         * lib/umaxtostr.c (inttype_is_unsigned): Likewise.
37733
37734 2009-10-30  Michael Haubenwallner  <michael.haubenwallner@salomon.at>
37735
37736         stat: fix compilation on AIX
37737         * lib/sys_stat.in.h (stat): Work with fact that large files on AIX
37738         only see struct stat64.
37739
37740 2009-10-30  Eric Blake  <ebb9@byu.net>
37741
37742         exclude: make more robust
37743         * lib/exclude.c (excluded_file_name): Abort on unexpected value,
37744         rather than masking a coding bug.
37745         Suggested by Bruno Haible.
37746
37747 2009-10-30  Jim Meyering  <meyering@redhat.com>
37748
37749         perl scripts: remove #!/usr/bin/perl in favor of more portable...
37750         Rather than putting #!/usr/bin/perl on the first line,
37751         start with a variant of what's recommended by "man perlrun" that
37752         invokes the first "perl" program from your shell's search path.
37753         * build-aux/gitlog-to-changelog: Replace #!... as above.
37754         Add a "Local Variables" perl mode setting.
37755         Prompted by a patch from Ludovic Courtès.
37756         Improved by Eric Blake.
37757         * build-aux/useless-if-before-free: Likewise.
37758         * build-aux/announce-gen: Likewise.
37759         * build-aux/update-copyright: Likewise.
37760
37761 2009-10-29  Eric Blake  <ebb9@byu.net>
37762
37763         filenamecat-lgpl: adjust clients
37764         * modules/linkat (Depends-on): Use filenamecat-lgpl, not
37765         filenamecat.
37766         * modules/renameat (Depends-on): Likewise.
37767
37768         filenamecat: split into filenamecat-lgpl
37769         * modules/filenamecat-lgpl: New module.
37770         * modules/filenamecat (Files): Move library-safe files into
37771         filenamecat-lgpl.
37772         (Depends-on): Add filenamecat-lgpl.
37773         (configure.ac): Declare witness.
37774         * lib/filenamecat.h (file_name_concat): Only declare when using
37775         GPL module.
37776         * lib/filenamecat.c (longest_relative_suffix, mfile_name_concat):
37777         Move...
37778         * lib/filenamecat-lgpl.c: ...into new file.
37779         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT_LGPL): New macro.
37780         (gl_FILE_NAME_CONCAT): Use it.
37781         * MODULES.html.sh (File system functions): Mention new module.
37782
37783         argp: avoid memory leak
37784         * modules/argp (Depends-on): Use dirname-lgpl, not dirname.
37785         * lib/argp-namefrob.h (__argp_base_name): Use last_component, not
37786         base_name, since the latter malloc()s and can call exit().
37787         Leak introduced 2006-07-03.
37788
37789         dirname-lgpl: adjust clients that don't need full dirname
37790         * modules/backupfile (Depends-on): Use dirname-lgpl, not dirname.
37791         * modules/filenamecat (Depends-on): Likewise.
37792         * modules/linkat (Depends-on): Likewise.
37793         * modules/mkancesdirs (Depends-on): Likewise.
37794         * modules/mkdir (Depends-on): Likewise.
37795         * modules/openat (Depends-on): Likewise.
37796         * modules/savewd (Depends-on): Likewise.
37797         * modules/rename (Depends-on): Likewise.
37798         (License): Relax license.
37799         * modules/mkdir-tests (Depends-on): Drop progname.
37800         (Makefile.am): Delete unneeded LDADD.
37801         * modules/rename-tests (Depends-on, Makefile.am): Likewise.
37802
37803         dirname: split into dirname-lgpl
37804         * modules/dirname-lgpl: New module.
37805         * modules/dirname (Files): Move library-safe files into
37806         dirname-lgpl.
37807         (Depends-on): Add dirname-lgpl.
37808         (configure.ac): Declare witness.
37809         * modules/double-slash-root (License): Relax license.
37810         * lib/dirname.h (base_name, dir_name): Only declare when using GPL
37811         module.
37812         * lib/dirname.c (dir_len, mdir_name): Move...
37813         * lib/dirname-lgpl.c: ...into new file.
37814         * lib/basename.c (last_component, base_len): Move...
37815         * lib/basename-lgpl.c: ...into new file.
37816         * m4/dirname.m4 (gl_DIRNAME_LGPL): New macro.
37817         (gl_DIRNAME): Use it.
37818         * MODULES.html.sh (Enhancements for POSIX:2008 functions):
37819         Mention new module.
37820         * modules/dirname-tests (Depends-on): Add progname.
37821         * tests/test-dirname.c (program_name): Delete.
37822
37823         mkdir: make safe for libraries
37824         * modules/mkdir (Depends-on): Drop xalloc.
37825         * lib/mkdir.c (rpl_mkdir): Fail with ENOMEM rather than calling
37826         exit.
37827
37828         tests: avoid some compiler warnings
37829         * tests/test-getaddrinfo.c (simple): Mark static, and allow string
37830         literals.
37831         * tests/test-memchr.c (main): Avoid type mismatch.
37832         * tests/test-arpa_inet.c (main): Avoid unused parameters.
37833         * tests/test-base64.c (main): Likewise.
37834         * tests/test-getdelim.c (main): Likewise.
37835         * tests/test-gethostname.c (main): Likewise.
37836         * tests/test-getline.c (main): Likewise.
37837         * tests/test-netinet_in.c (main): Likewise.
37838         * tests/test-select.c (open_server_socket, main): Likewise.
37839         * tests/test-select-stdin.c (main): Likewise.
37840         * tests/test-sockets.c (main): Likewise.
37841         * tests/test-strsignal.c (main): Likewise.
37842         * tests/test-sys_select.c (main): Likewise.
37843         * tests/test-sys_socket.c (main): Likewise.
37844         * tests/test-u64.c (main): Likewise.
37845         * tests/test-xfprintf-posix.c (main): Likewise.
37846         * tests/test-xvasprintf.c (test_xvasprintf, main): Likewise.
37847
37848         sockets: avoid compiler warning
37849         * lib/sockets.c (gl_sockets_startup): Mark unused parameter.
37850
37851         maint: detect usage(1) and other suspicious exits
37852         * top/maint.mk (sc_prohibit_magic_number_exit): New rule.
37853
37854 2009-10-29  Jim Meyering  <meyering@redhat.com>
37855
37856         timespec: long-to-int truncation could make timespec_cmp malfunction
37857         * lib/timespec.h (timespec_cmp): Do not interpret a difference of
37858         a multiple of 2^32 nanoseconds as no difference.
37859
37860 2009-10-28  Jim Meyering  <meyering@redhat.com>
37861
37862         fprintftime: wrap macro code argument in "do {...} while(0)"
37863         * lib/strftime.c (cpy) [FPRINTFTIME]: The second argument to the
37864         cpy macro must be a statement that can be followed by a semicolon.
37865         Now that the else clause contains a comment and is hence longer
37866         than one line, I require curly braces.  That in turn requires
37867         that we wrap this code block in the standard do...while(0).
37868
37869         fprintftime: remove stray semicolon from previous change
37870         * lib/strftime.c (cpy) [FPRINTFTIME]: Remove trailing semicolon.
37871
37872         fprintftime: avoid a warning about ignored fwrite return value
37873         * lib/strftime.c [FPRINTFTIME]: Include "ignore-value.h".
37874         (cpy) [FPRINTFTIME]: Ignore fwrite failure, even though technically,
37875         that is unsafe.
37876         * modules/fprintftime (Depends-on): Add ignore-value.
37877
37878         exclude: avoid an unwarranted warning
37879         * lib/exclude.c (excluded_file_name): Initialize "rc" before switch.
37880
37881 2009-10-27  Eric Blake  <ebb9@byu.net>
37882
37883         fseek: avoid compilation failure when fflush is replaced
37884         * m4/fseek.m4 (gl_REPLACE_FSEEK): New macro.
37885         * m4/fseeko.m4 (gl_REPLACE_FSEEKO): Also replace fseek, if fseek
37886         module is in use.
37887         * lib/stdio.in.h (GNULIB_FSEEKO): Only poison fseek if fseek
37888         module is not in use; since REPLACE_FSEEK worked otherwise.
37889         (GNULIB_FTELLO): Likewise for ftell.
37890         Reported by Ian Beckwith and others.
37891
37892 2009-10-27  Bruno Haible  <bruno@clisp.org>
37893
37894         * lib/isnan.c (rpl_isnan[fdl]): Repeat the specification declaration.
37895         Reported by Jim Meyering.
37896
37897 2009-10-27  Jim Meyering  <jim@meyering.net>
37898             Bruno Haible  <bruno@clisp.org>
37899
37900         Avoid warning despite dropping the return value of fwrite.
37901         * lib/unicodeio.c: Include ignore-value.h.
37902         (fwrite_success_callback): Explicitly ignore fwrite's return value.
37903         * modules/unicodeio (Depends-on): Add ignore-value.
37904
37905 2009-10-26  Eric Blake  <ebb9@byu.net>
37906
37907         areadlinkat: fix fallback path
37908         * lib/at-func.c (AT_FUNC_NAME): Avoid signed comparison between
37909         pointer and zero.
37910
37911 2009-10-22  Pádraig Brady  <P@draigBrady.com>
37912
37913         Use a better IO block size for modern systems
37914         * lib/copy-file.c (copy_file_preserving): Used a 32KiB malloced buffer.
37915         * lib/md2.c: Likewise.
37916         * lib/md4.c: Likewise.
37917         * lib/md5.c: Likewise.
37918         * lib/sha1.c: Likewise.
37919         * lib/sha256.c: Likewise.
37920         * lib/sha512.c: Likewise.
37921
37922 2009-10-22  Eric Blake  <ebb9@byu.net>
37923
37924         tests: avoid several compiler warnings
37925         * tests/test-getcwd.c (main): Avoid buffer underflow.
37926         * tests/test-getdate.c (main): String literals are not safe with
37927         putenv, so use setenv.  Declare unused argument.
37928         * modules/getdate-tests (Depends-on): Add setenv.
37929         * tests/test-argv-iter.c (main): Declare unused argument.  Avoid
37930         problems with string literals in char *.
37931         * tests/test-hash.c (main): Avoid shadowing declaration.
37932         (insert_new): Treat string literals as char const *.
37933         * tests/test-getopt.h (test_getopt): Likewise.
37934         (getopt_loop): Alter types to minimize casting elsewhere.
37935         * tests/test-getopt_long.h (test_getopt_long, getopt_long_loop)
37936         (test_getopt_long_posix): Likewise.
37937         (do_getopt_long): Add wrapper to minimize casting.
37938         * tests/test-atexit.c (clear_temp_file): Use void.
37939         * tests/test-areadlink-with-size.c (main): Declare unused
37940         arguments.
37941         * tests/test-areadlink.c (main): Likewise.
37942         * tests/test-areadlinkat-with-size.c (main): Likewise.
37943         * tests/test-areadlinkat.c (main): Likewise.
37944         * tests/test-canonicalize-lgpl.c (main): Likewise.
37945         * tests/test-canonicalize.c (main): Likewise.
37946         * tests/test-dirent-safer.c (main): Likewise.
37947         * tests/test-dirname.c (main): Likewise.
37948         * tests/test-dup2.c (main): Likewise.
37949         * tests/test-fchdir.c (main): Likewise.
37950         * tests/test-fcntl-h.c (main): Likewise.
37951         * tests/test-fcntl-safer.c (main): Likewise.
37952         * tests/test-fdopendir.c (main): Likewise.
37953         * tests/test-fdutimensat.c (main): Likewise.
37954         * tests/test-fflush.c (main): Likewise.
37955         * tests/test-filenamecat.c (main): Likewise.
37956         * tests/test-filevercmp.c (main): Likewise.
37957         * tests/test-fopen-safer.c (main): Likewise.
37958         * tests/test-fopen.c (main): Likewise.
37959         * tests/test-fpending.c (main): Likewise.
37960         * tests/test-fpurge.c (main): Likewise.
37961         * tests/test-freading.c (main): Likewise.
37962         * tests/test-fstatat.c (main): Likewise.
37963         * tests/test-fsync.c (main): Likewise.
37964         * tests/test-futimens.c (main): Likewise.
37965         * tests/test-getndelim2.c (main): Likewise.
37966         * tests/test-gettimeofday.c (main): Likewise.
37967         * tests/test-getopt.c (main): Likewise.
37968         * tests/test-i-ring.c (main): Likewise.
37969         * tests/test-inttypes.c (main): Likewise.
37970         * tests/test-link.c (main): Likewise.
37971         * tests/test-lstat.c (main): Likewise.
37972         * tests/test-math.c (main): Likewise.
37973         * tests/test-md5.c (main): Likewise.
37974         * tests/test-memchr2.c (main): Likewise.
37975         * tests/test-memrchr.c (main): Likewise.
37976         * tests/test-mkdir.c (main): Likewise.
37977         * tests/test-mkdirat.c (main): Likewise.
37978         * tests/test-mkfifoat.c (main): Likewise.
37979         * tests/test-open.c (main): Likewise.
37980         * tests/test-openat-safer.c (main): Likewise.
37981         * tests/test-openat.c (main): Likewise.
37982         * tests/test-quotearg.c (main): Likewise.
37983         * tests/test-rawmemchr.c (main): Likewise.
37984         * tests/test-readlink.c (main): Likewise.
37985         * tests/test-remove.c (main): Likewise.
37986         * tests/test-rename.c (main): Likewise.
37987         * tests/test-renameat.c (main): Likewise.
37988         * tests/test-rmdir.c (main): Likewise.
37989         * tests/test-sha1.c (main): Likewise.
37990         * tests/test-signal.c (main): Likewise.
37991         * tests/test-sigaction.c (main): Likewise.
37992         * tests/test-stat.c (main): Likewise.
37993         * tests/test-stat-time.c (main): Likewise.
37994         * tests/test-stddef.c (main): Likewise.
37995         * tests/test-stdint.c (main): Likewise.
37996         * tests/test-stdio.c (main): Likewise.
37997         * tests/test-stdlib.c (main): Likewise.
37998         * tests/test-strchrnul.c (main): Likewise.
37999         * tests/test-strerror.c (main): Likewise.
38000         * tests/test-string.c (main): Likewise.
38001         * tests/test-strtod.c (main): Likewise.
38002         * tests/test-strverscmp.c (main): Likewise.
38003         * tests/test-symlink.c (main): Likewise.
38004         * tests/test-symlinkat.c (main): Likewise.
38005         * tests/test-sys_stat.c (main): Likewise.
38006         * tests/test-sys_time.c (main): Likewise.
38007         * tests/test-time.c (main): Likewise.
38008         * tests/test-unistd.c (main): Likewise.
38009         * tests/test-unlink.c (main): Likewise.
38010         * tests/test-unlinkat.c (main): Likewise.
38011         * tests/test-utimens.c (main): Likewise.
38012         * tests/test-utimensat.c (main): Likewise.
38013         * tests/test-version-etc.c (main): Likewise.
38014         * tests/test-wchar.c (main): Likewise.
38015         * tests/test-wctype.c (main): Likewise.
38016         * tests/test-xprintf-posix.c (main): Likewise.
38017         * tests/test-posixtm.c (main): Likewise.
38018         (STREQ): Delete unused macro.
38019         * tests/test-linkat.c (main): Declare unused arguments.  Avoid
38020         shadowed variables.
38021         * tests/test-memchr.c (main): Likewise.
38022
38023 2009-10-21  Eric Blake  <ebb9@byu.net>
38024
38025         areadlinkat: avoid failure on older glibc
38026         * lib/at-func.c (AT_FUNC_NAME): Check for explicit FUNC_FAIL,
38027         rather than mis-comparing 0 against FUNC_RESULT of char*.
38028
38029 2009-10-21  Bruno Haible  <bruno@clisp.org>
38030
38031         * modules/stpncpy (License): Relicense under LGPLv2+.
38032         Reported by David Lutterkort <lutter@redhat.com>.
38033
38034 2009-10-20  Eric Blake  <ebb9@byu.net>
38035
38036         utimensat: work around Solaris 9 bug
38037         * lib/utimens.c (fdutimens, lutimens): Force a stat if platform
38038         has trailing slash bugs.
38039         * tests/test-lutimens.h (test_lutimens): Enhance test.
38040         * tests/test-utimens.h (test_utimens): Likewise.
38041         * doc/posix-functions/utime.texi (utime): Enhance documentation.
38042         * doc/posix-functions/utimes.texi (utimes): Likewise.
38043         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
38044         * doc/glibc-functions/futimesat.texi (futimesat): Likewise.
38045         * doc/glibc-functions/lutimes.texi (lutimes): Likewise.
38046         * doc/posix-functions/futimens.texi (futimens): Likewise.
38047
38048         fdutimensat: new module
38049         * modules/fdutimensat: New file.
38050         * lib/fdutimensat.c (fdutimensat): Likewise.
38051         * lib/utimens.h (fdutimensat, lutimensat): Declare new functions.
38052         * MODULES.html.sh (File system functions): Mention module.
38053         * modules/fdutimensat-tests: New test.
38054         * tests/test-fdutimensat.c: Likewise.
38055
38056         doc: regenerate INSTALL
38057         * doc/INSTALL: Reflect recent autoconf update.
38058         * doc/INSTALL.ISO: Likewise.
38059         * doc/INSTALL.UTF-8: Likewise.
38060
38061 2009-10-20  Pádraig Brady  <P@draigBrady.com>
38062
38063         acl: warn if ACL support is not detected
38064         * m4/acl.m4 (gl_FUNC_ACL): Output a warning if ACL support is not found.
38065
38066 2009-10-19  Giuseppe Scrivano  <gscrivano@gnu.org>
38067
38068         * lib/nproc.h: Add extern "C" block for C++.
38069
38070 2009-10-18  Reuben Thomas  <rrt@sc3d.org>
38071             Bruno Haible  <bruno@clisp.org>
38072
38073         * doc/posix-functions/isascii.texi: Document the 2 alternative APIs.
38074         * doc/posix-functions/isalnum.texi: Document the 4 alternative APIs.
38075         * doc/posix-functions/isalpha.texi: Likewise.
38076         * doc/posix-functions/isblank.texi: Likewise.
38077         * doc/posix-functions/iscntrl.texi: Likewise.
38078         * doc/posix-functions/isdigit.texi: Likewise.
38079         * doc/posix-functions/isgraph.texi: Likewise.
38080         * doc/posix-functions/islower.texi: Likewise.
38081         * doc/posix-functions/isprint.texi: Likewise.
38082         * doc/posix-functions/ispunct.texi: Likewise.
38083         * doc/posix-functions/isspace.texi: Likewise.
38084         * doc/posix-functions/isupper.texi: Likewise.
38085         * doc/posix-functions/isxdigit.texi: Likewise.
38086
38087 2009-10-18  Bruno Haible  <bruno@clisp.org>
38088
38089         Tests for module 'isblank'.
38090         * modules/isblank-tests: New file.
38091         * tests/test-isblank.c: New file.
38092
38093         New module 'isblank'.
38094         * lib/isblank.c: New file.
38095         * m4/isblank.m4: New file.
38096         * modules/isblank: New file.
38097         * doc/posix-functions/isblank.texi: Mention the new module.
38098
38099 2009-10-18  Bruno Haible  <bruno@clisp.org>
38100
38101         New module 'ctype'.
38102         * lib/ctype.in.h: New file.
38103         * m4/ctype.m4: New file.
38104         * modules/ctype: New file.
38105         * doc/posix-headers/ctype.texi: Mention the new module.
38106
38107 2009-10-18  Jim Meyering  <meyering@redhat.com>
38108
38109         m4: stylistic-only: hoist AC_SUBST to be adjacent to initialization
38110         Declare a variable like LIB_CLOCK_GETTIME to be AC_SUBSTituted
38111         right after its initialization, rather than farther down.
38112         Keeping these in close proximity makes it easier to ensure
38113         that each such variable is initialized.  E.g.,
38114
38115             LIB_CLOCK_GETTIME=
38116             AC_SUBST([LIB_CLOCK_GETTIME])
38117
38118         This change also increments these serial numbers.
38119         * m4/clock_time.m4 (gl_CLOCK_TIME): Hoist AC_SUBST use.
38120         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
38121         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
38122
38123 2009-10-18  Bruno Haible  <bruno@clisp.org>
38124
38125         Don't let environment variables perturb build.
38126         * m4/gethrxtime.m4 (gl_GETHRXTIME): Initialize LIB_GETHRXTIME here...
38127         (gl_PREREQ_GETHRXTIME): ... not here.
38128
38129 2009-10-18  Bruno Haible  <bruno@clisp.org>
38130
38131         Avoid symlink attack in localcharset module.
38132         * lib/localcharset.c: Include <fcntl.h>, <unistd.h>.
38133         (O_NOFOLLOW): Define fallback.
38134         (get_charset_aliases): Don't open the file if it is a symbolic link.
38135         * m4/fcntl_h.m4 (gl_FCNTL_O_FLAGS): New macro, extracted from
38136         gl_FCNTL_H.
38137         (gl_FCNTL_H): Require it.
38138         * m4/localcharset.m4 (gl_LOCALCHARSET): Likewise.
38139         * modules/localcharset (Files): Add m4/fcntl_h.m4.
38140         Reported by Fergal Glynn <fglynn@veracode.com>.
38141
38142 2009-10-18  Bruno Haible  <bruno@clisp.org>
38143
38144         Implement nproc for mingw.
38145         * lib/nproc.c: Include <windows.h>
38146         (num_processors): On native Windows platforms, try GetSystemInfo.
38147
38148 2009-10-18  Bruno Haible  <bruno@clisp.org>
38149
38150         Implement nproc for IRIX.
38151         * lib/nproc.c: Include <sys/sysmp.h>.
38152         (num_processors): On IRIX systems, try sysmp.
38153         * m4/nproc.m4 (gl_PREREQ_NPROC): Check for sys/sysmp.h and sysmp.
38154
38155 2009-10-18  Bruno Haible  <bruno@clisp.org>
38156
38157         Implement nproc for HP-UX.
38158         * lib/nproc.c: Include <sys/pstat.h>
38159         (num_processors): On HP-UX systems, try pstat_getdynamic.
38160         * m4/nproc.m4 (gl_PREREQ_NPROC): Check for sys/pstat.h and
38161         pstat_getdynamic.
38162
38163 2009-10-18  Giuseppe Scrivano  <gscrivano@gnu.org>
38164             Bruno Haible  <bruno@clisp.org>
38165
38166         Implement nproc for NetBSD, OpenBSD.
38167         * lib/nproc.c: Include <sys/types.h>, <sys/param.h>, <sys/sysctl.h>.
38168         (ARRAY_SIZE): New macro.
38169         (num_processors): On BSD systems, try sysctl of HW_NCPU.
38170         * m4/nproc.m4: New file.
38171         * modules/nproc (Files): Add m4/nproc.m4.
38172         (configure.ac): Invoke gl_NPROC. Remove AC_LIBOBJ invocation.
38173         (Makefile.am): Instead, augment lib_SOURCES.
38174
38175 2009-10-18  Bruno Haible  <bruno@clisp.org>
38176
38177         Fix recognition of sys/sysctl.h on OpenBSD 4.0.
38178         * m4/physmem.m4 (gl_PHYSMEM): Before including sys/sysctl.h, include
38179         sys/param.h.
38180
38181 2009-10-16  Eric Blake  <ebb9@byu.net>
38182
38183         utimensat: new module
38184         * modules/utimensat: New file.
38185         * lib/utimensat.c (utimensat): Likewise.
38186         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
38187         * lib/utimens.c (utimensat): Avoid recursion into rpl_utimensat,
38188         so we can work around Linux bugs.
38189         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
38190         * modules/sys_stat (Makefile.am): Substitute them.
38191         * lib/sys_stat.in.h (utimensat): Declare it.
38192         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
38193         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
38194         * modules/utimensat-tests: New test.
38195         * tests/test-utimensat.c: Likewise.
38196
38197         utimens: let lutimens work on non-symlinks
38198         * lib/utimens.c (lutimens): Fall back to utimens rather than
38199         failing with ENOSYS, when file is not a symlink.
38200         (utimens): Reduce redirection.
38201         * tests/test-lutimens.h (test_lutimens): Update test to cover
38202         non-symlinks.
38203         * tests/test-utimens.h (test_utimens): Update test to cover
38204         symlinks.
38205         * tests/test-utimens.c (main): Update caller.
38206
38207         utimens: cache whether utimensat syscall works
38208         * lib/utimens.c (utimensat_works_really): New cache variable.
38209         (fdutimens, lutimens): Use it to avoid failing syscall.
38210
38211         test-stat-time, test-utimens: improve portability
38212         * tests/test-stat-time.c (nap): Lengthen delay to 20ms, for
38213         ext4 on alpha, and for cygwin.
38214         * tests/test-utimens-common.h: New file.
38215         (nap): Factor delays into single function.
38216         * tests/test-lutimens.h (test_lutimens): Use new header.
38217         * tests/test-futimens.h (test_futimens): Likewise.
38218         * tests/test-utimens.h (test_utimens): Likewise.  Also, force NFS
38219         timestamps to occur from same machine, as was done previously for
38220         test_utimens.
38221         * modules/utimens-tests (Files): Ship new file.
38222         * modules/futimens-tests (Files): Likewise.
38223         Reported in part by Jim Meyering.
38224
38225         sys_stat: sort replacement declarations
38226         * lib/sys_stat.in.h: Sort declarations.
38227         * lib/futimens.c (futimens): Fix typo.
38228
38229 2009-10-15  Jim Meyering  <meyering@redhat.com>
38230
38231         don't let environment settings perturb build
38232         Setting the envvars, LIB_CLOCK_GETTIME, LIB_EACCESS or LIB_NANOSLEEP
38233         could cause a configure-time and/or build-time malfunction.
38234         Typically, a configure-time function-in-library test is performed
38235         via code like this:
38236
38237           LIB_VAR=
38238           AC_SUBST([LIB_VAR])
38239           prefix_saved_LIBS=$LIBS
38240             AC_SEARCH_LIBS([FUNC], [LIB_NAME],
38241                        [test "$ac_cv_search_FUNC" = "none required" ||
38242                         LIB_VAR=$ac_cv_search_FUNC])
38243           LIBS=$prefix_saved_LIBS
38244
38245         However, in each of the files affected by this change, the LIB_VAR=
38246         initialization was omitted.  Thus, when set in the environment, its
38247         value would propagate into generated Makefiles when FUNC is not found
38248         in LIB_NAME.
38249         * m4/clock_time.m4 (gl_CLOCK_TIME): Initialize AC_SUBST'd var.
38250         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
38251         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
38252
38253 2009-10-14  Eric Blake  <ebb9@byu.net>
38254
38255         fchdir: avoid infinite recursion in mingw
38256         * lib/fchdir.c (rpl_fstat): Call system fstat, rather than
38257         recursing.
38258
38259         test-stat-time: port to mingw
38260         * tests/test-stat-time.c (force_unlink): Return a value.
38261         (test_ctime) [W32]: Fix compilation error.
38262         (nap): Don't call usleep with too large an argument.  Use
38263         force_unlink.
38264         * doc/pastposix-functions/usleep.texi (usleep): Document the
38265         portability issue.
38266
38267 2009-10-13  Jim Meyering  <meyering@redhat.com>
38268
38269         use AC_CHECK_FUNCS_ONCE, not AC_CHECK_FUNCS in modules/*
38270         * modules/pipe-filter-gi: Use AC_CHECK_FUNCS_ONCE, not AC_CHECK_FUNCS.
38271         * modules/pipe-filter-ii: Likewise.
38272         * modules/sys_socket-tests: Likewise.
38273         * modules/tsearch-tests: Likewise.
38274         * Makefile (sc_prefer_ac_check_funcs_once): New rule.
38275         (check): Depend on it.
38276
38277 2009-10-12  Eric Blake  <ebb9@byu.net>
38278
38279         utimens-tests: port to NFS file systems
38280         * tests/test-utimens.h (test_utimens): Refactor utimecmp
38281         comparisons to avoid spurious failures from timestamp drift
38282         between NFS machines.
38283
38284 2009-10-12  Eric Blake  <ebb9@byu.net>
38285
38286         stat-time-tests: minor cleanups
38287         * modules/stat-time-tests (configure.ac): Use AC_CHECK_FUNCS_ONCE.
38288         * tests/test-stat-time.c (nap): Separate assignment from call.
38289         Suggested by Paolo Bonzini and Bruno Haible.
38290
38291         sys_stat: guarantee struct timespec
38292         * lib/sys_stat.in.h (includes): Always include <time.h>
38293         * modules/sys_stat (Depends-on): Add time.
38294         * tests/test-sys_stat.c: Guarantee struct timespec, as well as
38295         mode_t permission values.
38296         * doc/posix-headers/sys_stat.texi (sys/stat.h): Document how to
38297         get at subsecond timestamps.
38298
38299 2009-10-10  Eric Blake  <ebb9@byu.net>
38300
38301         futimens: new module
38302         * modules/futimens: New file.
38303         * lib/futimens.c (futimens): Likewise.
38304         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Likewise.
38305         * lib/utimens.c (futimens): Avoid recursion into rpl_futimens, so
38306         we can work around Linux bugs.
38307         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
38308         * modules/sys_stat (Makefile.am): Substitute them.
38309         * lib/sys_stat.in.h (futimens): Declare it.
38310         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
38311         * doc/posix-functions/futimens.texi (futimens): Likewise.
38312         * modules/futimens-tests: New test.
38313         * tests/test-futimens.c: Likewise.
38314
38315         utimens: introduce fdutimens
38316         * lib/utimens.h (fdutimens): New prototype.
38317         * lib/utimens.c (gl_futimens): Move guts...
38318         (fdutimens): ...to new interface.
38319         * tests/test-utimens.c (do_fdutimens): Use it.
38320
38321         utimens: add UTIME_NOW and UTIME_OMIT support
38322         * lib/utimens.c (validate_timespec, update_timespec): New helper
38323         functions.
38324         (gl_futimens, lutimens): Use them.
38325         * modules/utimens (Depends-on): Add gettime, lstat, stat-time,
38326         stdbool, sys_stat.
38327         (Link): Mention resulting library dependency.
38328         * modules/utimecmp (Link): Likewise.
38329         * modules/utimens-tests (Depends-on): Drop stat-time, stdbool.
38330         (Makefile.am): Pick up library dependency.
38331         * lib/sys_stat.in.h (UTIME_NOW, UTIME_OMIT): Guarantee a
38332         definition.
38333         * tests/test-sys_stat.c: Test the definitions.
38334         * doc/posix-headers/sys_stat.texi (sys/stat.h): Document this.
38335         * NEWS: Document library dependency.
38336
38337         utimecmp: support symlink timestamps
38338         * lib/utimecmp.c (utimecmp): Use new interface.  Skip effort of
38339         hashing when possible.  Use pathconf when available.
38340         (SYSCALL_RESOLUTION): Recognize tighter resolution.
38341         * modules/utimecmp (Depends-on): Add lstat.
38342
38343         utimens: add lutimens interface
38344         * lib/utimens.c (lutimens): New function.
38345         * m4/utimens.m4 (gl_UTIMENS): Check for lutimes.
38346         * lib/utimens.h (lutimens): Declare new interface.
38347         * tests/test-utimens.c (main): Enhance test.
38348         * tests/test-lutimens.h (test_lutimens): New file.
38349         * modules/utimens-tests (Files): Distribute it.
38350         (Depends-on): Add symlink.
38351         (configure.ac): Check for usleep.
38352
38353         utimens: validate futimens usage
38354         * lib/utimens.c (gl_futimens): Require valid fd up front, using
38355         fewer syscalls on failure later on.  Avoid compiler warning on
38356         mingw.
38357         * modules/utimens (Depends-on): Add dup2.
38358
38359         utimens: add test
38360         * modules/utimens-tests: New test.
38361         * tests/test-utimens.h: New file.
38362         * tests/test-futimens.h: Likewise.
38363         * tests/test-utimens.c: Likewise.
38364
38365         doc: mention timestamp portability issues
38366         * doc/glibc-functions/lutimes.texi (lutimes): Refer to utimensat
38367         instead.
38368         * doc/posix-functions/utime.texi (utime): Likewise.
38369         * doc/posix-functions/utimes.texi (utimes): Likewise.
38370         * doc/glibc-functions/futimes.texi (futimes): Refer to futimens
38371         instead.
38372         * doc/posix-functions/futimens.texi (futimens): Mention utimens
38373         module.
38374         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
38375         Mention weakness with symlink timestamps.
38376         * doc/glibc-functions/futimesat.texi (futimesat): New file; refer
38377         to utimensat/futimens instead.
38378         * doc/gnulib.texi (Glibc sys/time.h): Include new file.
38379
38380         test-dup2: enhance test
38381         * tests/test-dup2.c (main): Also check AT_FDCWD.
38382
38383         test-stat-time: avoid more spurious failures
38384         * tests/test-stat-time.c (nap): Wait for 15ms rather than 2ms, for
38385         xfs; and avoid race if the two timestamps cross quantization edge.
38386
38387         relocatable: prefer 'file system' over 'filesystem'
38388         * m4/relocatable-lib.m4 (gl_RELOCATABLE_NOP): Use AS_HELP_STRING.
38389         (gl_RELOCATABLE_LIBRARY_BODY): Fix spelling.
38390         * doc/relocatable-maint.texi (Supporting Relocation): Likewise.
38391         * doc/relocatable.texi (Enabling Relocatability): Likewise.
38392         * lib/relocatable.c (compute_curr_prefix): Likewise.
38393
38394 2009-10-10  Jim Meyering  <meyering@redhat.com>
38395
38396         stat-time-tests: check for the usleep function
38397         * modules/stat-time-tests (configure.ac): Now that we test HAVE_USLEEP.
38398
38399 2009-10-10  Bruno Haible  <bruno@clisp.org>
38400
38401         * modules/xnanosleep: Put the Link section after the Include section.
38402
38403 2009-10-09  Eric Blake  <ebb9@byu.net>
38404
38405         dup2: work around FreeBSD 6.1 bug
38406         * m4/dup2.m4 (gl_FUNC_DUP2): Detect bug.
38407         * doc/posix-functions/dup2.texi (dup2): Document it.
38408         Reported by Nelson H. F. Beebe and Jim Meyering.
38409
38410         test-stat-time: port to buggy NFS clients
38411         * tests/test-stat-time.c (main) [W32]: Reduce ifdefs.
38412         (test_ctime): Also skip test if mtime and ctime are skewed.
38413
38414         maint: prefer 'file system' over 'filesystem'
38415         * doc/posix-functions/fstatat.texi (fstatat): Likewise.
38416         * doc/posix-functions/lstat.texi (lstat): Likewise.
38417         * lib/file-has-acl.c (file_has_acl): Likewise.
38418         * lib/fwriteerror.c [TEST]: Likewise.
38419         * tests/test-areadlink.h (test_areadlink): Likewise.
38420         * tests/test-areadlinkat-with-size.c (main): Likewise.
38421         * tests/test-areadlinkat.c (main): Likewise.
38422         * tests/test-canonicalize-lgpl.c (main): Likewise.
38423         * tests/test-canonicalize.c (main): Likewise.
38424         * tests/test-fstatat.c (main): Likewise.
38425         * tests/test-linkat.c (main): Likewise.
38426         * tests/test-lstat.h (test_lstat_func): Likewise.
38427         * tests/test-mkdir.h (test_mkdir): Likewise.
38428         * tests/test-readlink.h (test_readlink): Likewise.
38429         * tests/test-remove.c (main): Likewise.
38430         * tests/test-rename.h (test_rename): Likewise.
38431         * tests/test-renameat.c (main): Likewise.
38432         * tests/test-rmdir.h (test_rmdir_func): Likewise.
38433         * tests/test-symlink.h (test_symlink): Likewise.
38434         * tests/test-symlinkat.c (main): Likewise.
38435         * tests/test-unlink.h (test_unlink_func): Likewise.
38436         * tests/test-unlinkat.c (main): Likewise.
38437
38438         maint: make realtime library usage explicit
38439         * modules/gethrxtime (Link): Mention LIB_GETHRXTIME.
38440         * modules/gettime (Link): Mention LIB_CLOCK_GETTIME.
38441         * modules/settime (Link): Likewise.
38442         * modules/xnanosleep (Link): Mention LIB_NANOSLEEP.
38443
38444         test-stat-time: speed up execution
38445         * tests/test-stat-time.c (test_ctime) [!W32]: Avoid compiler
38446         warning on mingw.
38447         (nap): New helper function.
38448         (prepare_test): Use it to reduce sleep time.
38449         (test_mtime, test_ctime, test_birthtime): Allow for subsecond
38450         execution.
38451         * modules/stat-time-tests (configure.ac): Check for usleep.
38452
38453 2009-10-09  Jim Meyering  <meyering@redhat.com>
38454
38455         selinux-h: always use getfilecon wrappers
38456         * lib/getfilecon.c: New file.
38457         * lib/se-selinux.in.h: Use a better inclusion guard symbol name.
38458         [HAVE_SELINUX_SELINUX_H]: Include-next <selinux/selinux.h>.
38459         [!HAVE_SELINUX_SELINUX_H]: Use better parameter names.
38460         (fgetfilecon): Provide a stub.
38461         * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): Don't
38462         AC_SUBST SELINUX_SELINUX_H, since now we're generating that
38463         file unconditionally.
38464         When <selinux/selinux.h> is found, arrange to use wrappers.
38465         * modules/selinux-h (Files): Add getfilecon.c.
38466         (Makefile.am): Substitute include-next-related bits
38467         into the now-always-generated selinux/selinux.h file.
38468         * doc/glibc-functions/lgetfilecon.texi: New file.
38469         * doc/glibc-functions/fgetfilecon.texi: New file.
38470         * doc/glibc-functions/getfilecon.texi: New file.
38471         * doc/glibc-functions/getfilecon-desc.texi: New file.
38472         * doc/gnulib.texi (Glibc selinux/selinux.h): New section, by
38473         which to pull in the new files.
38474         * MODULES.html.sh (Misc): Add selinux-h.
38475
38476 2009-10-08  Jim Meyering  <meyering@redhat.com>
38477
38478         unistd: fix comment typo
38479         * lib/unistd.in.h (euidaccess): Fix a comment typo.
38480
38481 2009-10-08  Eric Blake  <ebb9@byu.net>
38482
38483         areadlink: use SIZE_MAX consistently
38484         * modules/areadlink (Depends-on): Add stdint.
38485         * modules/areadlink-with-size (Depends-on): Likewise.
38486         * lib/areadlink-with-size.c (includes): Drop stdio, since stdlib
38487         gives NULL; drop sys/types, since unistd gives size_t; and add
38488         stdint for SIZE_MAX.
38489         (SIZE_MAX): Rely on headers.
38490         * lib/areadlinkat-with-size.c (includes): Drop stdio, sys/types,
38491         and add stdint.
38492         * lib/areadlink.c (includes): Drop sys/types, and add stdint.
38493         (SIZE_MAX): Likewise.
38494         (INITIAL_BUF_SIZE): Turn into enum.
38495         * lib/areadlinkat.c (INITIAL_BUF_SIZE): Likewise.
38496
38497 2009-10-08  Jim Meyering  <meyering@redhat.com>
38498
38499         areadlinkat: avoid compilation failure
38500         * lib/areadlinkat.c: Include <stdint.h> for use of SIZE_MAX.
38501         Fix typo in comment.
38502
38503 2009-10-07  Eric Blake  <ebb9@byu.net>
38504
38505         areadlinkat-with-size: new module
38506         * modules/areadlinkat-with-size: New module.
38507         * lib/areadlinkat-with-size.c (areadlinkat_with_size): New file.
38508         * lib/areadlink.h (areadlinkat): Declare it.
38509         * MODULES.html.sh (File system functions): Mention it.
38510         * modules/areadlinkat-with-size-tests: New test.
38511         * tests/test-areadlinkat-with-size.c: New file.
38512
38513         xreadlinkat: new module
38514         * modules/xreadlinkat: New module.
38515         * lib/xreadlinkat.c (xreadlinkat): New file.
38516         * lib/xreadlink.h (xreadlinkat): Declare it.
38517         * MODULES.html.sh (File system functions): Mention it.
38518
38519         areadlinkat: new module
38520         * lib/at-func.c (FUNC_FAIL): New define.
38521         (AT_FUNC_NAME, VALIDATE_FLAG): Use it rather than raw -1.
38522         * modules/areadlinkat: New module.
38523         * lib/linkat.c (areadlinkat): Move...
38524         * lib/areadlinkat.c (areadlinkat): ...to new file.
38525         * lib/areadlink.h (areadlinkat): Declare it.
38526         * modules/linkat (Depends-on): Add areadlinkat.
38527         * MODULES.html.sh (File system functions): Mention it.
38528         * modules/areadlinkat-tests: New test.
38529         * tests/test-areadlinkat.c: New file.
38530
38531         areadlink, areadlink-with-size: add tests
38532         * modules/areadlink-tests: New test.
38533         * modules/areadlink-with-size-tests: Likewise.
38534         * tests/test-areadlink.h: New file.
38535         * tests/test-areadlink.c: Likewise.
38536         * tests/test-areadlink-with-size.c: Likewise.
38537
38538         maint: minor cleanups
38539         * lib/fts.c (ATTRIBUTE_UNUSED): Delete; use gnulib-guaranteed
38540         _UNUSED_PARAMETER_ instead.
38541         * lib/getdate.y (ATTRIBUTE_UNUSED): Likewise.
38542         * lib/utimens.c (ATTRIBUTE_UNUSED): Likewise.
38543         * modules/linkat-tests (Files): Distribute test-link.h.
38544
38545         openat, utimens: whitespace cleanup
38546         * lib/openat.c: Prefer space throughout, rather than mix of 8
38547         spaces vs. tabs.
38548         * lib/at-func.c: Likewise.
38549         * lib/utimens.c: Likewise.
38550
38551         openat: avoid using wrong fd
38552         * lib/openat.c (openat_permissive): Reject user's fd if saving the
38553         working directory chooses same fd.
38554         * lib/at-func.c (AT_FUNC_NAME): Likewise.
38555
38556         mkdir, mkdirat: fix cygwin 1.5.x bug
38557         * lib/mkdir.c (rpl_mkdir) [FUNC_MKDIR_DOT_BUG]: Work around bug.
38558         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Move...
38559         * m4/mkdir.m4 (gl_FUNC_MKDIR): ...here, and add check for cygwin
38560         bug.
38561         (gl_PREREQ_MKDIR): Delete unused macro.
38562         * modules/mkdir (Files): Track file rename.
38563         (configure.ac): Update macro name.
38564         * modules/openat (Depends-on): Add mkdir.
38565         * doc/posix-functions/mkdir.texi (mkdir): Document the bug.
38566
38567         mkdir, mkdirat: add tests
38568         * modules/mkdir-tests: New test.
38569         * tests/test-mkdir.h: New file.
38570         * tests/test-mkdir.c: Likewise.
38571         * tests/test-mkdirat.c: Likewise.
38572         * modules/openat-tests (Files): Add new files.
38573         (Makefile.am): Run new test.
38574
38575 2009-10-06  Eric Blake  <ebb9@byu.net>
38576
38577         doc: tweak *at function documentation
38578         * doc/posix-functions/faccessat.texi (faccessat): Mention
38579         known issue with replacement.
38580         * doc/posix-functions/fchdir.texi (fchdir): Likewise.
38581         * doc/posix-functions/linkat.texi (linkat): Likewise.
38582         * doc/posix-functions/mkfifoat.texi (mkfifoat): Likewise.
38583         * doc/posix-functions/mknodat.texi (mknodat): Likewise.
38584         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
38585         * doc/posix-functions/renameat.texi (renameat): Likewise.
38586         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
38587
38588         openat: fix GNU/Hurd bug in unlinkat
38589         * m4/openat.m4 (gl_FUNC_OPENAT): Replace unlinkat if unlink is
38590         broken.
38591         * doc/posix-functions/unlink.texi (unlink): Document this.
38592         * doc/posix-functions/unlinkat.texi (unlinkat): Likewise.
38593
38594         fdopendir: fix GNU/Hurd bug
38595         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Check for Hurd bug in
38596         allowing non-directory fds.
38597         * lib/fdopendir.c (rpl_fdopendir): Work around it.
38598         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): New witness.
38599         * modules/dirent (Makefile.am): Substitute it.
38600         * lib/dirent.in.h (fdopendir): Declare replacement.
38601         * doc/posix-functions/fdopendir.texi (fdopendir): Document this.
38602         * tests/test-fdopendir.c (main): Test something other than
38603         /dev/null, since on Hurd that behaves like a directory.
38604
38605         test-symlink: port to GNU/Hurd
38606         * tests/test-symlink.h (test_symlink): Relax expected errno.
38607
38608         doc: tweak more cygwin information
38609         * doc/glibc-headers/getopt.texi (getopt.h): Cygwin 1.7 getopt is
38610         now compatible with glibc.
38611         * doc/posix-functions/getopt.texi (getopt): Likewise.
38612
38613         getopt-gnu: add another test
38614         * tests/test-getopt_long.h (test_getopt_long_posix): New test, to
38615         guarantee behavior relied on by m4.
38616         * tests/test-getopt.c (main): Use it.
38617         * modules/getopt-posix-tests (Depends-on): Add setenv.
38618         See http://lists.gnu.org/archive/html/bug-m4/2006-09/msg00028.html.
38619
38620         getopt: fix compilation on darwin
38621         * lib/getopt.in.h (includes): Leave breadcrumbs during system
38622         include.
38623         * lib/unistd.in.h (getopt): Use them to avoid recursive include.
38624         Reported by Ludovic Courtès.
38625
38626 2009-10-06  Bruno Haible  <bruno@clisp.org>
38627
38628         * modules/size_max (Description): Discourage its use.
38629         Reported by Simon Josefsson.
38630
38631 2009-10-06  Jim Meyering  <meyering@redhat.com>
38632
38633         linkat: avoid compilation failure
38634         * lib/linkat.c: Include <stdint.h> for use of SIZE_MAX.
38635
38636 2009-10-05  Eric Blake  <ebb9@byu.net>
38637
38638         linkat: support Linux 2.6.17
38639         * m4/linkat.m4 (gl_FUNC_LINKAT): Default to always replacing
38640         linkat on Linux, but allow cache variable override.
38641         * lib/linkat.c (rpl_linkat): Define override.
38642         * modules/linkat (Depends-on): Add symlinkat.
38643         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add new default.
38644         * modules/unistd (Makefile.am): Substitute it.
38645         * lib/unistd.in.h (linkat): Declare replacement.
38646         Reported by Pádraig Brady.
38647
38648         quotearg: port test to systems with C.UTF-8 locale
38649         * tests/test-quotearg.c (struct result_strings): Add another
38650         member, differentiating between C.ASCII and C.UTF-8 handling.
38651         (compare_strings): Add parameter.
38652         (main): Adjust all callers.
38653
38654         getopt: avoid clash with FreeBSD _getopt_internal
38655         * lib/getopt.in.h (_getopt_internal): Override the name.
38656         * lib/getopt_int.h (includes): Pick up any overrides.
38657         Reported by Reuben Thomas.
38658
38659         hash: allow C89 compilation
38660         * lib/hash.c (check_tuning): Move declaration before statement.
38661         Reported by Reuben Thomas.
38662
38663 2009-10-05  Karl Berry  <karl@gnu.org>
38664
38665         * doc/gnulib.texi: @include execvpe.texi, missing for several days.
38666
38667 2009-10-04  Paolo Bonzini  <bonzini@gnu.org>
38668             Bruno Haible  <bruno@clisp.org>
38669
38670         * lib/uname.c (uname): Use a table-driven algorithm to compute
38671         Windows NT versions.
38672
38673 2009-10-04  Bruno Haible  <bruno@clisp.org>
38674
38675         * lib/progname.c (set_program_name): Also remove the "lt-" prefix from
38676         program_invocation_short_name.
38677         * modules/progname (configure.ac): Test for presence of
38678         program_invocation_short_name.
38679         Reported by Sergey Poznyakoff <gray@gnu.org.ua>.
38680
38681 2009-10-04  Bruno Haible  <bruno@clisp.org>
38682
38683         * lib/progname.c (set_program_name): Fix comment.
38684         Reported by Jim Meyering.
38685
38686 2009-10-03  Paolo Bonzini  <bonzini@gnu.org>
38687             Bruno Haible  <bruno@clisp.org>
38688
38689         * lib/uname.c: Include <string.h>.
38690         (uname): Do only one call to GetVersionEx in the common case.
38691
38692 2009-10-03  Paolo Bonzini  <bonzini@gnu.org>
38693             Bruno Haible  <bruno@clisp.org>
38694
38695         * lib/uname.c (VER_PLATFORM_WIN32_CE, PROCESSOR_ARCHITECTURE_AMD64,
38696         PROCESSOR_ARCHITECTURE_IA32_ON_WIN64): Define fallbacks.
38697         (uname): Add support for Windows CE and various non-x86 CPU types.
38698
38699 2009-10-03  Bruno Haible  <bruno@clisp.org>
38700
38701         * gnulib-tool (func_create_testdir): Conditionally emit AM_PROG_CC_C_O
38702         invocation to tests/configure.ac.
38703         Reported by Ian Beckwith <ianb@erislabs.net>.
38704
38705 2009-10-02  Eric Blake  <ebb9@byu.net>
38706
38707         fchdir: avoid compiler warning
38708         * lib/fchdir.c (canonicalize_file_name)
38709         [!HAVE_CANONICALIZE_FILE_NAME]: Avoid compiler warning on mingw.
38710
38711         test-open: support mingw errno values
38712         * tests/test-open.h (test_open): Relax test.
38713         * tests/test-fopen.h (test_fopen): Likewise.
38714         * tests/test-openat-safer.c (main): Likewise.
38715
38716         open: fix opening directory on mingw
38717         * lib/open.c (open) [REPLACE_OPEN_DIRECTORY]: Correct typo.
38718
38719         test-open: on GNU/Hurd, /dev/null is a directory
38720         * tests/test-fopen.h (main): Rename...
38721         (test_fopen): ...to this.  Use a guaranteed non-directory when
38722         confirming open behavior on trailing slash.
38723         * tests/test-openat-safer.c (main): Likewise.
38724         * tests/test-open.h (main): Likewise....
38725         (test_open): ...to this.
38726         * tests/test-fopen.c (main): Adjust caller.
38727         * tests/test-fopen-safer.c (main): Likewise.
38728         * tests/test-open.c (main): Likewise.
38729         * tests/test-fcntl-safer.c (main): Likewise.
38730         Reported by Samuel Thibault.
38731
38732         rename, fchdir: don't ignore chdir failure
38733         * lib/fchdir.c (get_name): Abort on unexpected chdir failure.
38734         * lib/rename.c (rpl_rename) [W32]: Likewise.
38735         (rpl_rename) [RENAME_DEST_EXISTS_BUG]: Avoid one case of losing
38736         an empty destination directory if source cannot be renamed,
38737         although there is still possibility for failure.
38738         * doc/posix-functions/rename.texi (rename): Document the race.
38739         Reported by Jim Meyering.
38740
38741         maint: cleanup whitespace in recent commits
38742         * lib/rename.c (rpl_rename): Remove tabs.
38743         * tests/test-link.h (test_link): Likewise.
38744         * lib/fchdir.c (get_name): Likewise.
38745         Reported by Jim Meyering.
38746
38747 2009-10-02  Ben Pfaff  <blp@gnu.org>
38748
38749         relocatable-prog-wrapper: Add missing dependency on
38750         double-slash-root.
38751         * modules/relocatable-prog-wrapper: Add dependency.
38752         Reported by Ian Beckwith <ianb@erislabs.net>.
38753
38754 2009-10-02  Eric Blake  <ebb9@byu.net>
38755
38756         renameat: fix Solaris bugs
38757         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Replace renameat if rename
38758         needed fixing.
38759         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): New witness.
38760         * modules/stdio (Makefile.am): Substitute it.
38761         * lib/stdio.in.h (renameat): Declare replacement.
38762         * lib/renameat.c (rpl_renameat): Implement fix.
38763
38764         renameat: new module
38765         * modules/renameat: New file.
38766         * lib/renameat.c (renameat): Likewise.
38767         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Likewise.
38768         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add witnesses.
38769         * modules/stdio (Makefile.am): Substitute them.
38770         * lib/stdio.in.h (renameat): Declare it.
38771         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
38772         * doc/posix-functions/renameat.texi (renameat): Likewise.
38773         * modules/renameat-tests: New test.
38774         * tests/test-renameat.c: Likewise.
38775
38776         rename: fix mingw bugs
38777         * lib/rename.c (rpl_rename) [W32]: Fix trailing slash and
38778         directory overwrite bugs.
38779
38780         rename: fix another cygwin 1.5 bug
38781         * m4/rename.m4 (gl_FUNC_RENAME): Split cygwin bugs into two
38782         checks.
38783         * lib/rename.c (rpl_rename): Don't penalize NetBSD with
38784         unnecessary cygwin workarounds.  Also work around bug with moving
38785         full directory onto an empty one.
38786         * modules/rename (Depends-on): Add canonicalize-lgpl, rmdir.
38787
38788         rename-dest-slash: merge into rename module
38789         * modules/rename-dest-slash (Status): Mark obsolete.
38790         (Depends-on): Add rename.
38791         (Files): Let rename do it all.
38792         * m4/rename.m4 (gl_FUNC_RENAME): Also test for NetBSD bugs,
38793         subsuming the test from gl_FUNC_RENAME_TRAILING_DEST_SLASH...
38794         * m4/rename-dest-slash.m4: ...so this file can be deleted.
38795         * lib/rename-dest-slash.c (rpl_rename_dest_slash): Delete.
38796         * lib/rename.c (rpl_rename): Update comments.
38797
38798         rename: fix cygwin 1.5.x bugs
38799         * m4/rename.m4 (gl_FUNC_RENAME): Detect cygwin bugs.
38800         * lib/rename.c (rpl_rename): Work around them.
38801         * modules/rename (Depends-on): Add same-inode.
38802
38803         rename: fix Solaris 10 bug
38804         * m4/rename.m4 (gl_FUNC_RENAME): Detect Solaris bug.
38805         * lib/rename.c (rpl_rename): Don't cripple POSIX behavior if this
38806         was the only bug.
38807
38808         rename: fix Solaris 9 bug
38809         * lib/rename.c (rpl_rename): Rewrite to recognize trailing slash
38810         on non-directory.  Avoid calling exit.
38811         * modules/rename (Depends-on): Drop xalloc; add lstat, stdbool,
38812         strdup.
38813         * modules/rename-tests (Depends-on): Drop lstat.
38814         * m4/rename.m4 (gl_FUNC_RENAME): Detect Solaris bug.
38815         (gl_PREREQ_RENAME): Delete unused macro.
38816
38817         rename-dest-slash: fix NetBSD bug
38818         * lib/rename-dest-slash.c (rpl_rename_dest_slash): Detect hard
38819         links.
38820         * modules/rename-dest-slash (Depends-on): Add same-inode.
38821
38822         rename-tests: new test, exposes several platform bugs
38823         * modules/rename-tests: New file.
38824         * tests/test-rename.h: Likewise.
38825         * tests/test-rename.c: Likewise.
38826         * doc/posix-functions/rename.texi (rename): Improve documentation,
38827         including bugs that will eventually be fixed in gnulib.
38828
38829 2009-10-02  Paolo Bonzini  <bonzini@gnu.org>
38830
38831         * lib/uname.c: Include <stdlib.h>
38832         (uname): Assume version info is available.
38833
38834 2009-10-02  Jim Meyering  <meyering@redhat.com>
38835
38836         gnu-web-doc-update: correct --help output
38837         * build-aux/gnu-web-doc-update: Make --help output relevant.
38838
38839         gnu-web-doc-update: add standard options
38840         * build-aux/gnu-web-doc-update: Add --help, --version, etc.
38841
38842         gnu-web-doc-update: New module.
38843         Use this script to automatically update the on-line web documentation
38844         for your GNU project at http://www.gnu.org/software/$pkg/manual/
38845         * modules/gnu-web-doc-update: New file, from coreutils.
38846         * build-aux/gnu-web-doc-update: New script.
38847
38848 2009-10-01  Paolo Bonzini  <bonzini@gnu.org>
38849
38850         link: LoadLibrary is not needed.
38851         * lib/link.c: Use GetModuleHandle.
38852
38853 2009-10-01  Eric Blake  <ebb9@byu.net>
38854
38855         getopt: bump serial number
38856         * m4/getopt.m4: Increment serial number, to account for 2009-09-24
38857         change.
38858
38859         tests: tighten link, rmdir, and remove tests
38860         * tests/test-link.h (includes): No need to use <config.h> here.
38861         Clean up if directory hard link was created, otherwise test for
38862         trailing '.'.
38863         * tests/test-linkat.c (main): Simplify.
38864         * tests/test-remove.c (main): Enhance test for trailing '.'.
38865         * tests/test-rmdir.h (test_rmdir_func): Likewise.
38866
38867 2009-10-01  Jim Meyering  <meyering@redhat.com>
38868
38869         maint.mk: requiring "make major" was annoying, for a "minor" release.
38870         What is intended is "stable", to contrast with alpha and beta,
38871         so require "make stable", not "make major".
38872         * build-aux/announce-gen (%valid_release_types): s/major/stable/.
38873         (get_tool_versions): Likewise.
38874         * top/maint.mk (ALL_RECURSIVE_TARGETS): s/major/stable/
38875
38876 2009-09-30  Ben Pfaff  <blp@gnu.org>
38877
38878         Fix broken build of replacement for Windows tmpfile().
38879         * lib/tmpfile.c (tmpfile): Fix call to gen_tempname() to provide
38880         flags argument added along with the 'mkostemp' module.
38881
38882 2009-09-28  Bruno Haible  <bruno@clisp.org>
38883
38884         Avoid identifier clash with POSIX function 'remove' defined as a macro.
38885         * lib/gl_list.h (struct gl_list_implementation): Rename field 'remove'
38886         to 'remove_elt'.
38887         (gl_list_remove): Update.
38888         * lib/gl_list.c (gl_list_remove): Update.
38889         * lib/gl_oset.h (struct gl_oset_implementation): Rename field 'remove'
38890         to 'remove_elt'.
38891         (gl_oset_remove): Update.
38892         * lib/gl_list.c (gl_oset_remove): Update.
38893         Reported by Eric Blake.
38894
38895 2009-09-28  Eric Blake  <ebb9@byu.net>
38896
38897         doc: mention yet more cygwin 1.7 status
38898         * doc/posix-functions/fexecve.texi (fexecve): Now implemented in
38899         cygwin.
38900         * doc/glibc-functions/execvpe.texi (execvpe): New file.
38901         * doc/gnulib.texi (Glibc unistd.h): Mention it.
38902
38903         argp: fix test failure
38904         * lib/argp-help.c (hol_entry_cmp): Don't use _tolower on values
38905         that are not upper-case.  Pass correct range to tolower.
38906
38907 2009-09-27  Jim Meyering  <meyering@redhat.com>
38908
38909         test-yesno: work around sparc-dash here-document infelicity
38910         Without this change, the literal \177 byte in a here document
38911         would make dash 0.5.5.1-3 access uninitialized memory.
38912         * tests/test-yesno.sh: Don't put the \177 byte in the here document.
38913         Instead, use a marker, "@", and filter through tr to create the desired
38914         contents.  Reported as <http://bugs.debian.org/548493> by Kurt Roeckx.
38915
38916 2009-09-27  Bruno Haible  <bruno@clisp.org>
38917
38918         Disable untested support for new flavours of ACLs on AIX.
38919         * lib/file-has-acl.c (file_has_acl): Mark newer AIX code as work in
38920         progress.
38921         * lib/set-mode-acl.c (qset_acl): Likewise.
38922
38923 2008-12-07  Bruno Haible  <bruno@clisp.org>
38924
38925         Add support for new flavours of ACLs on AIX. (Untested.)
38926         * lib/file-has-acl.c [AIX] (acl_nfs4_nontrivial): New function.
38927         (file_has_acl): Add support for newer AIX.
38928         * lib/set-mode-acl.c (qset_acl): Likewise.
38929         * tests/test-sameacls.c (main): Fix use of aclx_get function. Hint by
38930         Rainer Tammer <tammer@tammer.net>.
38931
38932 2009-09-26  Eric Blake  <ebb9@byu.net>
38933
38934         argp: fix compilation of getopt
38935         * lib/getopt.in.h (includes): Use different guard than glibc.
38936         Reported by Sergey Poznyakoff.
38937
38938         doc: mention more cygwin 1.7 status
38939         * doc/posix-functions/access.texi (access): Mention cygwin 1.5
38940         bug.
38941         * doc/posix-functions/execl.texi (execl): Likewise.
38942         * doc/posix-functions/execle.texi (execle): Likewise.
38943         * doc/posix-functions/execlp.texi (execlp): Likewise.
38944         * doc/posix-functions/execv.texi (execv): Likewise.
38945         * doc/posix-functions/execve.texi (execve): Likewise.
38946         * doc/posix-functions/execvp.texi (execvp): Likewise.
38947         * doc/glibc-functions/canonicalize_file_name.texi
38948         (canonicalize_file_name): Cygwin 1.7 now provides this.
38949         * doc/glibc-functions/euidaccess.texi (euidaccess): Likewise.
38950         * doc/posix-functions/fchmodat.texi (fchmodat): Mention limitation
38951         on AT_SYMLINK_NOFOLLOW.
38952
38953 2009-09-24  Eric Blake  <ebb9@byu.net>
38954
38955         test-linkat: make test more robust
38956         * tests/test-linkat.c (main): Avoid collision with EEXIST.
38957
38958         getopt: fix inclusion guards for cygwin
38959         * modules/getopt-posix (Depends-on): Add include-next.
38960         (Makefile.am): Substitute more items in replacement header.
38961         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Also check for native
38962         <getopt.h>.
38963         * lib/getopt.in.h (includes): Use split inclusion guard, and
38964         prefer <getopt.h> over include <unistd.h> when one is present.
38965         (option): Also override name of 'struct option'.
38966
38967         same-inode: revert prior change; it is not yet ready
38968         * NEWS: Undo mention of this change.
38969         * lib/same-inode.h (same-inode.h): Undo tri-state change.
38970         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Update caller.
38971         * lib/cycle-check.c (cycle_check): Likewise.
38972         * lib/same.c (same_name): Likewise.
38973         * lib/at-func2.c (at_func2): Likewise.
38974
38975 2009-09-23  Eric Blake  <ebb9@byu.net>
38976
38977         linkat: new module
38978         * modules/linkat: New file.
38979         * lib/at-func2.c (at_func2): Likewise.
38980         * lib/linkat.c (linkat): Likewise.
38981         * m4/linkat.m4 (gl_FUNC_LINKAT): Likewise.
38982         * lib/openat-priv.h (at_func2): Add declaration.
38983         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
38984         * modules/unistd (Makefile.am): Substitute them.
38985         * lib/unistd.in.h (linkat): Declare it.
38986         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
38987         * doc/posix-functions/linkat.texi (linkat): Likewise.
38988         * doc/posix-functions/link.texi (link): Tweak wording.
38989         * tests/test-link.c (main): Move guts...
38990         * tests/test-link.h (test_link): ...into new file.
38991         * modules/linkat-tests: New test.
38992         * tests/test-linkat.c: Likewise.
38993         * modules/link-tests (Files): Ship new file.
38994         (Depends-on): Add stdbool.
38995
38996         dirname: add library-safe mdir_name
38997         * lib/dirname.h (mdir_name): New prototype.
38998         * lib/dirname.c (dir_name): Move guts...
38999         (mdir_name): ...to new function that avoids xalloc_die.
39000
39001         fchdir: another mingw fix
39002         * modules/fchdir (Depends-on): Drop canonicalize-lgpl.
39003         * lib/fchdir.c (get_name): New helper method; skips canonicalize
39004         on mingw (where it has not yet been ported), and make it optional
39005         elsewhere.
39006         (_gl_register_fd): Use it.
39007
39008         same-inode: make SAME_INODE tri-state, to port to mingw
39009         * NEWS: Mention this change.
39010         * lib/same-inode.h (same-inode.h): Recognize mingw limitation of
39011         st_ino always being 0.
39012         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Update caller.
39013         * lib/cycle-check.c (cycle_check): Likewise.
39014         * lib/same.c (same_name): Likewise.
39015
39016         lstat: avoid mingw compilation error
39017         * m4/lstat.m4 (gl_FUNC_LSTAT): Avoid duplicate calls to
39018         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK, and deal with missing
39019         lstat ourselves.
39020         * lib/lstat.c [!HAVE_LSTAT]: Do nothing if <sys/stat.h> override
39021         was adequate.
39022         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Let lstat module handle
39023         the checks for lstat.
39024         (gl_SYS_STAT_H_DEFAULTS): Set default for HAVE_LSTAT.
39025
39026         link: fix test failure on Solaris 9
39027         * lib/link.c (rpl_link): Don't assume link will catch bogus
39028         trailing slash on source.
39029
39030         test-symlinkat: enhance test
39031         * tests/test-readlink.c (main): Move guts...
39032         * tests/test-readlink.h (test_readlink): ...into new file.
39033         * tests/test-symlink.c (main): Move guts...
39034         * tests/test-symlink.h (test_symlink): ...into new file.
39035         * tests/test-symlinkat.c (main): Use new files for further
39036         coverage.
39037         (do_symlink, do_readlink): New helper functions.
39038         * modules/symlink-tests (Files): Ship new file.
39039         (Depends-on): Add stdbool.
39040         * modules/readlink-tests (Files): Ship new file.
39041         (Depends-on): Add stdbool.
39042         * modules/symlinkat-tests (Files): Use new files.
39043
39044 2009-09-23  Eric Blake  <ebb9@byu.net>
39045
39046         readlink: document portability issue with symlink length
39047         * doc/posix-functions/lstat.texi (lstat): Mention that some file
39048         systems have bogus st_size on symlinks, and mention the
39049         areadlink-with-size module.
39050         * doc/posix-functions/fstatat.texi (fstatat): Likewise.
39051         * doc/posix-functions/readlink.texi (readlink): Mention the
39052         areadlink module, and ERANGE failure.
39053         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
39054         * tests/test-readlink.c (main): Relax test for AIX, HP-UX.
39055
39056         readlink: fix Solaris 9 bug with trailing slash
39057         * lib/readlink.c (rpl_readlink): Work around trailing slash bug.
39058         * m4/readlink.m4 (gl_FUNC_READLINK): Detect the bug.
39059         * doc/posix-functions/readlink.texi (readlink): Document this.
39060         * modules/readlink-tests: New test.
39061         * tests/test-readlink.c: Likewise.
39062
39063         readlink: fix cygwin 1.5.x bug with return type
39064         * m4/readlink.m4 (gl_FUNC_READLINK): Require correct signature.
39065         * lib/unistd.in.h (readlink): Use ssize_t.
39066         * lib/readlink.c (readlink): Likewise.
39067         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
39068         * modules/unistd (Makefile.am): Substitute it.
39069         * lib/unistd.in.h (readlink): Declare replacement.
39070         * doc/posix-functions/readlink.texi (readlink): Document this.
39071
39072         symlink: use throughout gnulib
39073         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Omit symlink check.
39074         * lib/symlinkat.c (symlinkat) [!HAVE_SYMLINK]: Document why
39075         symlink is not used.
39076         * modules/symlinkat (Depends-on): Add symlink.
39077         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
39078         * modules/canonicalize-tests (Depends-on): Likewise.
39079         * modules/lstat-tests (Depends-on): Likewise.
39080         * modules/openat-tests (Depends-on): Likewise.
39081         * modules/remove-tests (Depends-on): Likewise.
39082         * modules/rmdir-tests (Depends-on): Likewise.
39083         * modules/unlink-tests (Depends-on): Likewise.
39084         * tests/test-canonicalize-lgpl.c (symlink): Delete stub.
39085         * tests/test-canonicalize.c (symlink): Likewise.
39086         * tests/test-fstatat.c (symlink): Likewise.
39087         * tests/test-lstat.c (symlink): Likewise.
39088         * tests/test-remove.c (symlink): Likewise.
39089         * tests/test-rmdir.c (symlink): Likewise.
39090         * tests/test-unlink.c (symlink): Likewise.
39091         * tests/test-unlinkat.c (symlink): Likewise.
39092
39093         symlink: new module, for Solaris 9 bug
39094         * modules/symlink: New file.
39095         * m4/symlink.m4 (gl_FUNC_SYMLINK): Likewise.
39096         * lib/symlink.c: Likewise.
39097         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add defaults.
39098         * modules/unistd (Makefile.am): Substitute them.
39099         * lib/unistd.in.h (symlink): Declare replacement.
39100         * MODULES.html.sh (File system functions): Mention it.
39101         * doc/posix-functions/symlink.texi (symlink): Likewise.
39102         * modules/symlink-tests: New test.
39103         * tests/test-symlink.c: Likewise.
39104
39105 2009-09-23  Bruno Haible  <bruno@clisp.org>
39106
39107         * gnulib-tool (func_import): Add 'link-warning' to testsrelated_modules
39108         when needed.
39109         Test case: gnulib-tool --import --with-tests atexit inttypes.
39110         Reported by Pauli Miettinen <pauli.miettinen@cs.helsinki.fi>.
39111
39112 2009-09-23  Bruno Haible  <bruno@clisp.org>
39113
39114         * gnulib-tool (func_emit_tests_Makefile_am): Set uses_subdirs in a
39115         subcommand, not in a subshell.
39116
39117 2009-09-22  Eric Blake  <ebb9@byu.net>
39118
39119         unistd: sort replacement declarations
39120         * lib/unistd.in.h: Sort declarations.
39121
39122         open, openat: minor optimization
39123         * lib/open.c (open): If open succeeded, len is non-zero.
39124         * lib/openat.c (rpl_openat): Likewise.
39125
39126         link-follow: ensure correct result
39127         * m4/fcntl_h.m4 (gl_FCNTL_H): Clean up temporary file.
39128         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Likewise, and
39129         distinguish between possible failures.
39130
39131 2009-09-21  Eric Blake  <ebb9@byu.net>
39132
39133         fts: avoid compiler warning
39134         * lib/fts.c (dirent_inode_sort_may_be_useful)
39135         (leaf_optimization_applies) [!__linux__]: Mark unused parameters.
39136
39137 2009-09-19  Bruno Haible  <bruno@clisp.org>
39138
39139         * lib/progreloc.c (canonicalize_file_name): New declaration.
39140
39141 2009-09-19  Eric Blake  <ebb9@byu.net>
39142
39143         link: fix quoting
39144         * m4/link.m4 (gl_FUNC_LINK): Fix shell quoting.
39145
39146         openat: fix openat bugs on Solaris 9
39147         * lib/openat.c (rpl_openat): Work around Solaris 9 bug.
39148         * m4/openat.m4 (gl_FUNC_OPENAT): Also replace openat on Solaris.
39149         * modules/openat (Depends-on): Add open.
39150         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Provide new default.
39151         * modules/fcntl-h (Makefile.am): Substitute it.
39152         * lib/fcntl.in.h (openat): Declare replacement.
39153         * doc/posix-functions/openat.texi (openat): Document this.
39154
39155         openat: move fstatat and unlinkat into correct files
39156         * m4/openat.m4 (gl_FUNC_OPENAT): Adjust which files will be
39157         compiled.
39158         * lib/openat.c (fstatat, unlinkat): Move...
39159         * lib/fstatat.c (fstatat): ...into correct files.
39160         * lib/unlinkat.c (unlinkat): Likewise.
39161
39162         openat: fix unlinkat bugs on Solaris 9
39163         * lib/unlinkat.c (unlinkat): New file.
39164         * modules/openat (Depends-on): Add unlink.
39165         (Files): Distribute it.
39166         * m4/openat.m4 (gl_FUNC_OPENAT): Mark unlinkat for replacement if
39167         trailing slash behavior is broken.
39168         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
39169         * modules/unistd (Makefile.am): Substitute it.
39170         * lib/unistd.in.h (unlinkat): Declare replacement.
39171         * doc/posix-functions/unlinkat.texi (unlinkat): Document this.
39172
39173         openat: fix fstatat bugs on Solaris 9
39174         * lib/fstatat.c (rpl_fstatat): Copy recent fixes from lstat and
39175         stat.
39176         * doc/posix-functions/fstatat.texi (fstatat): Document this.
39177
39178         test-unlinkat: enhance test, to expose Solaris 9 bug
39179         * tests/test-unlink.c (main): Factor guts...
39180         * tests/test-unlink.h (test_rmdir_func): ...into new file.
39181         * tests/test-rmdir.h (test_rmdir_func): Add parameter.
39182         * tests/test-rmdir.c (main): Adjust caller.
39183         * tests/test-unlinkat.c (main): Likewise.  Add unlink tests.
39184         (unlinker): New helper function.
39185         (rmdirat): Enhance check.
39186         * modules/rmdir-tests (Depends-on): Add stdbool.
39187         * modules/unlink-tests (Depends-on): Likewise.
39188         (Files): Add test-unlink.h.
39189         * modules/openat-tests (Files): Likewise.
39190         (Depends-on): Add unlinkdir.
39191
39192         test-fstatat: new test, to expose Solaris 9 bugs
39193         * tests/test-stat.c (main): Factor guts...
39194         * tests/test-stat.h (test_stat_func): ...into new file.
39195         * tests/test-lstat.c (main): Factor guts...
39196         * tests/test-lstat.h (test_lstat_func): ...into new file.
39197         * tests/test-fstatat.c: New file.
39198         * modules/stat-tests (Files): Add test-stat.h.
39199         * modules/lstat-tests (Files): Add test-lstat.h.
39200         (Depends-on): Add stdbool.
39201         * modules/openat-tests (Depends-on): Add pathmax.
39202         (Files): Add test-lstat.h, test-stat.h, test-fstatat.c.
39203         (Makefile.am): Run new test.
39204
39205         remove: new module, for mingw and Solaris 9 bugs
39206         * modules/remove: New file.
39207         * lib/remove.c: Likewise.
39208         * m4/remove.m4 (gl_FUNC_REMOVE): Likewise.
39209         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add witnesses.
39210         * modules/stdio (Makefile.am): Use them.
39211         * lib/stdio.in.h (remove): Declare replacement.
39212         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
39213         * doc/posix-functions/remove.texi (remove): Likewise.
39214         * modules/remove-tests: New test.
39215         * tests/test-remove.c: Likewise.
39216
39217         unlink: new module, for Solaris 9 bug
39218         * modules/unlink: New file.
39219         * lib/unlink.c: Likewise.
39220         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
39221         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
39222         * modules/unistd (Makefile.am): Use them.
39223         * lib/unistd.in.h (stat): Declare replacement.
39224         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
39225         * doc/posix-functions/unlink.texi (unlink): Likewise.
39226         * modules/unlink-tests: New test.
39227         * tests/test-unlink.c: Likewise.
39228
39229         lstat: fix Solaris 9 bug
39230         * lib/lstat.c (lstat): Also check for trailing slash on
39231         non-symlink, non-directories.  Use stat module to simplify logic.
39232         * doc/posix-functions/lstat.texi (lstat): Document it.
39233         * modules/lstat-tests (Depends-on): Add errno, same-inode.
39234         (configure.ac): Check for symlink.
39235         * tests/test-lstat.c (main): Add more tests.
39236
39237         stat: add as dependency to other modules
39238         * modules/chown (Depends-on): Add stat.
39239         * modules/euidaccess (Depends-on): Likewise.
39240         * modules/fchdir (Depends-on): Likewise.
39241         * modules/isdir (Depends-on): Likewise.
39242         * modules/link (Depends-on): Likewise.
39243         * modules/lstat (Depends-on): Likewise.
39244         * modules/mkdir-p (Depends-on): Likewise.
39245         * modules/modechange (Depends-on): Likewise.
39246         * modules/open (Depends-on): Likewise.
39247         * modules/readlink (Depends-on): Likewise.
39248         * modules/same (Depends-on): Likewise.
39249
39250         stat: fix Solaris 9 bug
39251         * m4/stat.m4 (gl_FUNC_STAT): Detect Solaris 9 bug with trailing
39252         slash.
39253         * lib/stat.c (rpl_stat): Work around it.
39254         * doc/posix-functions/stat.texi (stat): Update documentation.
39255
39256         stat: new module, for mingw bug
39257         * modules/stat: New file.
39258         * lib/stat.c: Likewise.
39259         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
39260         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
39261         * modules/sys_stat (Makefile.am): Use them.
39262         * lib/sys_stat.in.h (stat): Declare replacement.
39263         * lib/openat.c (fstatat): Deal with lstat and stat being function
39264         macros.
39265         * modules/openat (Depends-on): Add inline.
39266         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
39267         * doc/posix-functions/stat.texi (stat): Likewise.
39268         * modules/stat-tests: New test.
39269         * tests/test-stat.c: Likewise.
39270
39271 2009-09-19  Jim Meyering  <meyering@redhat.com>
39272
39273         syntax-check: detect unnecessary inclusion of canonicalize.h
39274         * top/maint.mk (sc_prohibit_canonicalize_without_use): New rule.
39275
39276 2009-09-19  Eric Blake  <ebb9@byu.net>
39277
39278         canonicalize-lgpl: adjust clients to use correct header
39279         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE)
39280         (gl_CANONICALIZE_LGPL): Use correct shell quoting.
39281         * modules/relocatable-prog-wrapper (Files): Drop canonicalize.h.
39282         * lib/fchdir.c (includes): Use <stdlib.h>, not "canonicalize.h".
39283         * lib/progreloc.c (includes): Likewise.
39284
39285 2009-09-19  Jim Meyering  <meyering@redhat.com>
39286
39287         test-posixtm.c: correct a comment
39288         * tests/test-posixtm.c: Correct first-line comment.
39289         Spotted by Eric Blake.
39290
39291 2009-09-16  Jim Meyering  <meyering@redhat.com>
39292
39293         posixtm-tests: make T const-correct; add a test case
39294         * tests/test-posixtm.c (T): Declare const.
39295         Add a test for -(2^31+1).
39296         Remove useless can-succeed-only-in-2002 test.
39297
39298         posixtm-tests: adjust the sole failing test
39299         * tests/test-posixtm.c: Correct 0000-01-01 00:00:00 test so that
39300         expected output matches what mktime now produces.  Cross-checked via
39301         erlang's calendar:datetime_to_gregorian_seconds({{1970,1,1},{0,0,0}})
39302
39303         posixtm: move #ifdef'd tests into a new module
39304         * lib/posixtm.c (posixtime): Remove #ifdef'd tests.  Move to...
39305         * tests/test-posixtm.c: ... this new file.
39306         * modules/posixtm-tests: New module.
39307
39308 2009-09-19  Eric Blake  <ebb9@byu.net>
39309
39310         openat: simplify use of at-func.c
39311         * lib/at-func.c (includes): Include prerequisites here, to
39312         simplify requirements on client files.
39313         * lib/openat-priv.h: Add double-inclusion guard.
39314         * lib/faccessat.c (includes): Simplify.
39315         * lib/fchmodat.c (includes): Likewise.
39316         * lib/fchownat.c (includes): Likewise.
39317         * lib/mkdirat.c (includes): Likewise.
39318         * lib/mkfifoat.c (includes): Likewise.
39319         * lib/symlinkat.c (includes): Likewise.
39320
39321         openat: allow return of fd 0
39322         * modules/chdir-long (Depends-on): Relax openat-safer to openat.
39323         * modules/save-cwd (Depends-on): Replace fcntl-safer with
39324         unistd-safer.
39325         * lib/chdir-long.c (includes): Replace "fcntl--.h" with
39326         <fcntl.h>; this module does not leak fds.
39327         * lib/openat.c (includes): Do not use "fcntl_safer"; plain openat
39328         must be allowed to return 0, leaving openat_safer to add the
39329         safety.
39330         (openat_permissive): Avoid writing to just-opened fd 2 if
39331         restoring the current directory fails.
39332         * lib/openat-die.c (openat_restore_fail): Add comment.
39333         * lib/save-cwd.c (includes): Make "fcntl--.h" conditional.
39334         (save_cwd): Guarantee safe fd, but without use of open_safer.
39335         * tests/test-openat.c: New test.
39336         * modules/openat-tests (Files, Makefile.am): Distribute and build
39337         new file.
39338
39339         relocatable-prog-wrapper: fix build
39340         * modules/relocatable-prog-wrapper (Files): Update name of
39341         canonicalize m4 file, broken on 2009-09-17.
39342         Reported by emad hajjar <aleppos@hotmail.com>.
39343
39344 2009-09-19  Bruno Haible  <bruno@clisp.org>
39345
39346         * lib/safe-alloc.h: Use the standard header with GPL copyright.
39347         * lib/safe-alloc.c: Likewise.
39348         Reported by Ian Beckwith <ianb@erislabs.net>.
39349
39350 2009-09-18  Bruno Haible  <bruno@clisp.org>
39351
39352         * gnulib-tool: Add advice to "cannot find configure.ac" error message.
39353         Reported by <erobles@sensacd.com.mx>.
39354
39355 2009-09-17  Eric Blake  <ebb9@byu.net>
39356
39357         canonicalize: in CAN_ALL_BUT_LAST, allow trailing slash
39358         * lib/canonicalize.c (canonicalize_filename_mode): Skip trailing
39359         slashes when checking if last component is missing.
39360         * tests/test-canonicalize.c (main): Test this.
39361
39362         canonicalize, canonicalize-lgpl: honor // if distinct from /
39363         * modules/canonicalize (Files): Add double-slash-root.m4.
39364         * modules/canonicalize-lgpl (Files): Likewise.
39365         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE)
39366         (gl_CANONICALIZE_LGPL_SEPARATE): Add dependency.
39367         * lib/canonicalize.c (DOUBLE_SLASH_IS_DISTINCT_ROOT): Provide
39368         fallback definition.
39369         (canonicalize_filename_mode): Use it to protect //.
39370         * lib/canonicalize-lgpl.c (DOUBLE_SLASH_IS_DISTINCT_ROOT)
39371         (__realpath): Likewise.
39372         * tests/test-canonicalize.c (main): Test this.
39373         * tests/test-canonicalize-lgpl.c (main): Likewise.
39374         * modules/canonicalize-tests (Depends-on): Add same-inode.
39375         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
39376
39377         canonicalize-lgpl: fix glibc bug with trailing slash
39378         * m4/canonicalize-lgpl.m4: Move contents...
39379         * m4/canonicalize.m4: ...here.
39380         (gl_CANONICALIZE_LGPL): Factor realpath check...
39381         (gl_FUNC_REALPATH_WORKS): ...into new macro.  Enhance to catch
39382         glibc 2.3.5 bug, fixed 2005-04-27.
39383         (gl_FUNC_CANONICALIZE_FILENAME_MODE): Use it.
39384         (gl_PREREQ_CANONICALIZE_LGPL): Inline...
39385         (gl_CANONICALIZE_LGPL_SEPARATE): ...into this macro.
39386         * modules/canonicalize-lgpl (Files): Manage file rename.
39387         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide default.
39388         * modules/stdlib (Makefile.am): Substitute witness.
39389         * lib/stdlib.in.h (canonicalize_file_name): Declare if replacement
39390         is needed.
39391         * lib/canonicalize-lgpl.c: Also compile if canonicalize_file_name
39392         replacement is required.
39393         * lib/canonicalize.c (canonicalize_file_name): Likewise.
39394         * doc/glibc-functions/canonicalize_file_name.texi
39395         (canonicalize_file_name): Document this.
39396         * doc/posix-functions/realpath.texi (realpath): Likewise.
39397
39398         canonicalize-lgpl: reject non-directory with trailing slash
39399         * lib/canonicalize-lgpl.c (__realpath): Synchronize with glibc.
39400         * tests/test-canonicalize-lgpl.c (main): Enhance test.  This
39401         catches failures in glibc 2.3.5.
39402         * tests/test-canonicalize.c (main): Likewise.
39403
39404         canonicalize-lgpl: use native realpath if it works
39405         * lib/canonicalize-lgpl.c (realpath): Guard with
39406         FUNC_REALPATH_WORKS.
39407         * lib/stdlib.in.h (realpath): Make declaration optional based on
39408         HAVE_REALPATH.
39409         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL): Check whether
39410         native realpath works.
39411         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide default.
39412         * modules/stdlib (Makefile.am): Substitute witness.
39413
39414         canonicalize, canonicalize-lgpl: use <stdlib.h>
39415         * modules/canonicalize-lgpl (Files): Drop canonicalize.h.
39416         (Include): Mention <stdlib.h>.
39417         (configure.ac): Mention functions we provide.
39418         * modules/canonicalize (configure.ac): Likewise.
39419         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL): Always replace
39420         realpath if canonicalize_file_name is missing.
39421         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide defaults.
39422         * modules/stdlib (Makefile.am): Substitute witnesses.
39423         * lib/stdlib.in.h (canonicalize_file_name, realpath): Declare.
39424         * lib/canonicalize-lgpl.c (includes): Adjust accordingly.
39425         * lib/canonicalize.h (canonicalize_file_name): Drop declaration.
39426         * NEWS: Document this.
39427         * doc/glibc-functions/canonicalize_file_name.texi
39428         (canonicalize_file_name): Likewise.
39429         * doc/posix-functions/realpath.texi (realpath): Likewise.
39430         * tests/test-canonicalize-lgpl.c (includes): Use <stdlib.h>.
39431
39432         test-canonicalize: consolidate into single C program
39433         * tests/test-canonicalize.sh: Delete; move setup into...
39434         * tests/test-canonicalize.c (main): ...the program, making it
39435         easier to run in debugger.  Add some tests.
39436         * modules/canonicalize-tests (Files): Remove unused file.
39437         (Depends-on): Add progname.
39438         (configure.ac, Makefile.am): Simplify.
39439
39440         test-canonicalize-lgpl: consolidate into single C program
39441         * tests/test-canonicalize-lgpl.sh: Delete; move setup into...
39442         * tests/test-canonicalize-lgpl.c (main): ...the program, making it
39443         easier to run in debugger.  Add some tests.
39444         * modules/canonicalize-lgpl-tests (Files): Remove unused file.
39445         (configure.ac, Makefile.am): Simplify.
39446
39447         canonicalize: avoid resolvepath
39448         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE): Delete
39449         unnecessary checks.
39450         * lib/canonicalize.c (includes): Simplify.
39451         (canonicalize_file_name): Drop resolvepath implementation.
39452         * modules/canonicalize (Depends-on): Drop filenamecat.
39453
39454         canonicalize: don't lose errno
39455         * lib/canonicalize.c (canonicalize_filename_mode): Protect errno
39456         over calls to free.
39457
39458         canonicalize: simplify errno handling
39459         * lib/canonicalize.c (__set_errno): Delete macro, and use direct
39460         assignment.
39461
39462         canonicalize, canonicalize-lgpl: update module dependencies
39463         * modules/canonicalize (Depends-on): Add extensions, lstat,
39464         pathmax, stdlib.
39465         (Files): Drop pathmax.h.
39466         (configure.ac): Adjust macro name.
39467         * modules/canonicalize-lgpl (Depends-on): Add errno, extensions,
39468         lstat, stdlib, sys_stat.
39469         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Rename...
39470         (gl_FUNC_CANONICALIZE_FILENAME_MODE): ...to this, and require
39471         extensions.
39472         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL)
39473         (gl_CANONICALIZE_LGPL_SEPARATE): Require extensions.
39474         (gl_PREREQ_CANONICALIZE_LGPL): Assume unistd.h.
39475         * lib/canonicalize.h (canonicalize_file_name): Use <stdlib.h>
39476         declaration, if available.
39477         * lib/canonicalize-lgpl.c [HAVE_READLINK]: Delete this condition;
39478         we can rely on the readlink module.
39479         (MAXSYMLINKS): Also consult SYMLOOP_MAX.
39480         (includes): Use <unistd.h> unconditionally.
39481
39482 2009-09-17  Eric Blake  <ebb9@byu.net>
39483
39484         maint: make Include sections of modules consistent
39485         * modules/alloca: Use only header name; no need to list #include.
39486         * modules/alloca-opt: Likewise.
39487         * modules/arpa_inet: Likewise.
39488         * modules/canon-host: Likewise.
39489         * modules/configmake: Likewise.
39490         * modules/dirent: Likewise.
39491         * modules/eealloc: Likewise.
39492         * modules/environ: Likewise.
39493         * modules/fchdir: Likewise.
39494         * modules/fcntl: Likewise.
39495         * modules/fcntl-h: Likewise.
39496         * modules/gethrxtime: Likewise.
39497         * modules/gettime: Likewise.
39498         * modules/ignore-value: Likewise.
39499         * modules/inet_ntop: Likewise.
39500         * modules/inet_pton: Likewise.
39501         * modules/inttypes: Likewise.
39502         * modules/isnand-nolibm: Likewise.
39503         * modules/isnanf-nolibm: Likewise.
39504         * modules/mbchar: Likewise.
39505         * modules/mbfile: Likewise.
39506         * modules/mbiter: Likewise.
39507         * modules/mbuiter: Likewise.
39508         * modules/netdb: Likewise.
39509         * modules/netinet_in: Likewise.
39510         * modules/nproc: Likewise.
39511         * modules/pagealign_alloc: Likewise.
39512         * modules/poll: Likewise.
39513         * modules/printf-frexp: Likewise.
39514         * modules/pthread: Likewise.
39515         * modules/putenv: Likewise.
39516         * modules/random_r: Likewise.
39517         * modules/relocatable-prog: Likewise.
39518         * modules/search: Likewise.
39519         * modules/select: Likewise.
39520         * modules/selinux-h: Likewise.
39521         * modules/settime: Likewise.
39522         * modules/signal: Likewise.
39523         * modules/size_max: Likewise.
39524         * modules/socklen: Likewise.
39525         * modules/ssize_t: Likewise.
39526         * modules/stdarg: Likewise.
39527         * modules/stdbool: Likewise.
39528         * modules/stddef: Likewise.
39529         * modules/stdint: Likewise.
39530         * modules/stdio: Likewise.
39531         * modules/stdlib: Likewise.
39532         * modules/string: Likewise.
39533         * modules/strings: Likewise.
39534         * modules/sys_file: Likewise.
39535         * modules/sys_ioctl: Likewise.
39536         * modules/sys_select: Likewise.
39537         * modules/sys_socket: Likewise.
39538         * modules/sys_stat: Likewise.
39539         * modules/sys_time: Likewise.
39540         * modules/sys_times: Likewise.
39541         * modules/sys_utsname: Likewise.
39542         * modules/sys_wait: Likewise.
39543         * modules/sysexits: Likewise.
39544         * modules/time: Likewise.
39545         * modules/times: Likewise.
39546         * modules/tmpfile: Likewise.
39547         * modules/trim: Likewise.
39548         * modules/unistd: Likewise.
39549         * modules/wchar: Likewise.
39550         * modules/wctype: Likewise.
39551
39552 2009-09-17  Bruno Haible  <bruno@clisp.org>
39553
39554         Make getdate.y compile on QNX and NetBSD 5 / i386.
39555         * m4/getdate.m4 (gl_GETDATE): Conditionally define
39556         TIME_T_FITS_IN_LONG_INT.
39557         * lib/getdate.y (long_time_t): New type.
39558         (relative_time): Change type of 'seconds' field to long_time_t.
39559         (get_date): Update types of local variables. Check against overflow
39560         during conversion from long_time_t to time_t.
39561         Reported by Matt Kraai <kraai@ftbfs.org>
39562         and Hasso Tepper <hasso@netbsd.org>.
39563
39564 2009-09-17  Bruno Haible  <bruno@clisp.org>
39565
39566         * modules/COPYING: Update copyright years.
39567         * modules/README: Likeiwse.
39568         * doc/gnulib-intro.texi (Copyright): Use a wildcard year.
39569         Reported by Ian Beckwith <ianb@erislabs.net>.
39570
39571 2009-09-17  Ian Beckwith  <ianb@erislabs.net>  (tiny change)
39572
39573         * users.txt: Update references for gnuit package.
39574
39575 2009-09-17  Ian Beckwith  <ianb@erislabs.net>  (tiny change)
39576
39577         * m4/getdelim.m4: Fix typo in copyright line.
39578
39579 2009-09-17  Bruno Haible  <bruno@clisp.org>
39580
39581         * lib/atoll.c: Use the standard header with GPL copyright.
39582         * lib/argz.in.h: Likewise.
39583         * lib/glob.c: Likewise.
39584         * lib/glob-libc.h: Likewise.
39585         * lib/random_r.c: Likewise.
39586         * lib/siglist.h: Likewise.
39587         * lib/strsignal.c: Likewise.
39588         Reported by Ian Beckwith <ianb@erislabs.net>.
39589
39590 2009-09-17  Eric Blake  <ebb9@byu.net>
39591
39592         rmdir: ensure correct dependency order
39593         * m4/rmdir.m4 (gl_FUNC_RMDIR): Require unistd defaults.
39594
39595 2009-09-17  Bruno Haible  <bruno@clisp.org>
39596
39597         Disable assertion that fails on NetBSD 5 / i386.
39598         * lib/mktime.c (ydhms_diff): Disable assertion about time_t size.
39599         Reported by Sam Steingold <sds@gnu.org>
39600         and Hasso Tepper <hasso@netbsd.org>.
39601
39602 2009-09-16  Eric Blake  <ebb9@byu.net>
39603
39604         unlinkdir: port to mingw
39605         * m4/unlinkdir.m4 (gl_UNLINKDIR): Add mingw to list of platforms
39606         on which no one can unlink a directory.
39607
39608         stdlib: sort witness names
39609         * modules/stdlib (Makefile.am): Sort replacements.
39610         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Likewise.
39611         * lib/stdlib.in.h: Likewise.
39612
39613         parse-duration-tests: avoid link failure
39614         * modules/parse-duration-tests (test_parse_duration_LDADD): Add
39615         LIBINTL.
39616         Reported by Tom G. Christensen.
39617
39618         openat-tests: ensure unlinkat behaves like rmdir
39619         * tests/test-rmdir.c (main): Factor guts...
39620         * tests/test-rmdir.h (test_rmdir_func): ...into new file.
39621         * modules/rmdir-tests (Files): Ship new file.
39622         * modules/openat-tests: New test.
39623         * tests/test-unlinkat.c: Likewise.
39624
39625         rmdir-errno: mark obsolete, it is unsafe for cross-compilation
39626         * modules/rmdir-errno (Status, Notice): Now obsolete.
39627
39628         rmdir: work around cygwin 1.5.x and mingw bugs
39629         * m4/rmdir.m4 (gl_FUNC_RMDIR): Detect the bugs.
39630         * lib/rmdir.c (rmdir): Work around it.
39631         * modules/rmdir (Status, Notice): No longer obsolete.
39632         (Files): Add dos.m4.
39633         (Depends-on): Add unistd.
39634         (configure.ac): Set witnesses.
39635         (License): Relax to LGPLv2+.
39636         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set defaults.
39637         * modules/unistd (Makefile.am): Substitute witnesses.
39638         * lib/unistd.in.h (rmdir): Declare replacement.
39639         * doc/posix-functions/rmdir.texi (rmdir): Document this.
39640         * modules/rmdir-tests: New tests.
39641         * tests/test-rmdir.c: Likewise.
39642
39643 2009-09-15  Eric Blake  <ebb9@byu.net>
39644
39645         fchdir: improve use of replacement functions
39646         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set appropriate witnesses.
39647         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add REPLACE_FSTAT.
39648         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Add REPLACE_OPENDIR,
39649         REPLACE_CLOSEDIR.
39650         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add REPLACE_DUP.
39651         * modules/sys_stat (Makefile.am): Substitute correct witness.
39652         * modules/dirent (Makefile.am): Likewise.
39653         * modules/unistd (Makefile.am): Likewise.
39654         * lib/dirent.in.h (opendir, closedir): Use better witnesses.
39655         * lib/unistd.in.h (dup): Likewise.
39656         * lib/sys_stat.in.h (fstat): Likewise.
39657
39658         maint: ignore gnulib-tool temp files
39659         * .gitignore: Ignore files created during gnulib-tool --test.
39660
39661 2009-09-13  Jim Meyering  <meyering@redhat.com>
39662
39663         posixtm: don't reject a time that specify "60" as the number of seconds
39664         * lib/posixtm.c (posixtime): The code to reject invalid dates
39665         would also reject a time specified with the .60 suffix.
39666         But POSIX allows that, in order to accommodate leap seconds.
39667         So don't reject it.
39668         (main): Adjust tests accordingly.
39669         * modules/posixtm (Depends-on): Add stpcpy.
39670
39671 2009-09-11  Jim Meyering  <meyering@redhat.com>
39672
39673         announce-gen: include [$release_type] in emitted Subject:
39674         * build-aux/announce-gen (get_tool_versions): Include [$release_type],
39675         e.g., [stable] in the emitted Subject: line.
39676
39677 2009-09-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
39678
39679         Remove obsolete macros from several modules.
39680         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Replace
39681         obsolete Autoconf macros with their modern counterparts.
39682         * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): Likewise.
39683         * m4/gc-camellia.m4 (gl_GC_CAMELLIA): Likewise.
39684         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Likewise.
39685         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Likewise.
39686         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Likewise.
39687         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
39688         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
39689         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
39690         * m4/poll.m4 (gl_FUNC_POLL): Likewise.
39691         * m4/readline.m4 (gl_FUNC_READLINE): Likewise.
39692         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
39693         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
39694         * m4/select.m4 (gl_FUNC_SELECT): Likewise.
39695         * m4/sockets.m4 (gl_SOCKETS): Likewise.
39696         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Likewise.
39697         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Likewise.
39698         * m4/sysexits.m4 (gl_SYSEXITS): Likewise.
39699         * m4/time_r.m4 (gl_TIME_R): Likewise.
39700         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Likewise.
39701         * m4/vararrays.m4 (AC_C_VARARRAYS): Likewise.
39702         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
39703
39704         Fix copyright header in build-aux scripts.
39705         * build-aux/git-version-gen: Fix copyright header to match GPLv3
39706         recommendation.
39707         * build-aux/ncftpput-ftp: Likewise.
39708         * build-aux/update-copyright: Likewise.
39709
39710 2009-09-09  Eric Blake  <ebb9@byu.net>
39711
39712         test-link: allow Linux choice of errno
39713         * tests/test-link.c (main): Relax test for alternate error.
39714
39715         strndup: fix improper m4 caching
39716         * m4/strndup.m4 (gl_FUNC_STRNDUP): Rework to avoid side effects
39717         inside AC_CACHE_CHECK.  Use REPLACE_STRNDUP, not HAVE_STRNDUP.
39718         (gl_PREREQ_STRNDUP): Delete.
39719         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Update default.
39720         * modules/string (Makefile.am): Substitute it.
39721         * lib/string.in.h (strndup): Modernize prototype.
39722
39723         getcwd: port to mingw
39724         * m4/getcwd.m4 (gl_FUNC_GETCWD): Mingw directories are very
39725         different from the POSIX assumptions made throughout the getcwd
39726         module; fortunately, the mingw getcwd does not need replacement.
39727         (gl_FUNC_GETCWD_NULL): Skip test on mingw.
39728         * modules/getcwd-tests: New test.
39729         * tests/test-getcwd.c: Likewise.
39730
39731         link: fix platform bugs
39732         * m4/link.m4 (gl_FUNC_LINK): Detect Solaris and Cygwin bugs.
39733         * lib/link.c (link): Work around them.  Fix related mingw bug.
39734         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add REPLACE_LINK.
39735         * modules/unistd (Makefile.am): Substitute it.
39736         * lib/unistd.in.h (link): Declare replacement.
39737         * doc/posix-functions/link.texi (link): Document this.
39738         * modules/link (Depends-on): Add strdup-posix, sys_stat.
39739
39740         test-link: consolidate into single C program, test more cases
39741         * tests/test-link.sh: Delete.
39742         * tests/test-link.c: Test more error conditions.  Exposes bugs on
39743         at least Cygwin and Solaris.
39744         * modules/link-tests (Files): Remove unused file.
39745         (Depends-on): Add errno, sys_stat.
39746         (Makefile.am): Simplify.
39747
39748 2009-09-08  Bruno Haible  <bruno@clisp.org>
39749
39750         Work around towlower, towupper bug on mingw.
39751         * lib/wctype.in.h (towlower, towupper) [__MINGW32__]: New replacements.
39752         * m4/wctype.m4 (gl_WCTYPE_H): Replace <wctype.h> also on mingw.
39753         * doc/posix-functions/towlower.texi: Mention the mingw bug.
39754         * doc/posix-functions/towupper.texi: Likewise.
39755         Reported by Eric Blake.
39756
39757 2009-09-08  Jim Meyering  <meyering@redhat.com>
39758
39759         build: don't try to run autoheader if we don't use it
39760         * build-aux/bootstrap: Define AUTOHEADER=true when AC_CONFIG_HEADERS
39761         is not used in configure.ac.
39762
39763 2009-09-08  Eric Blake  <ebb9@byu.net>
39764
39765         euidaccess: fix compilation error
39766         * lib/euidaccess.c (includes): Add <fcntl.h>, for AT_EACCESS.
39767
39768         rawmemchr: relax license
39769         * modules/rawmemchr (License): Derived from glibc, so LGPLv2+ is
39770         okay.
39771         Reported by Jim Meyering.
39772
39773         mkfifoat: new module
39774         * modules/mkfifoat: New file.
39775         * lib/mkfifoat.c: Likewise.
39776         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Likewise.
39777         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
39778         * modules/sys_stat (Makefile.am): Use them.
39779         * lib/sys_stat.in.h (mkfifoat, mknodat): Declare them.
39780         * MODULES.html.sh (File system functions): Mention module.
39781         * doc/posix-functions/mkfifoat.texi (mkfifoat): Likewise.
39782         * doc/posix-functions/mknodat.texi (mknodat): Likewise.
39783         * modules/mkfifoat-tests: New test.
39784         * tests/test-mkfifoat.c: Likewise.
39785
39786         strchrnul: relax license
39787         * modules/strchrnul (License): Derived from glibc, so LGPLv2+ is
39788         okay.
39789         Reported by Jim Meyering.
39790
39791 2009-09-08  Eric Blake  <ebb9@byu.net>
39792
39793         fstatat: fix compilation on Solaris
39794         * lib/fstatat.c (includes): Add fcntl.h.
39795         Reported by Pádraig Brady.
39796
39797 2009-09-07  Eric Blake  <ebb9@byu.net>
39798
39799         rename: modernize replacement
39800         * modules/rename (Depends-on): Add stdio.
39801         (configure.ac): Declare witness.
39802         * m4/rename.m4 (gl_FUNC_RENAME): Ensure dependency order, and let
39803         stdio take care of replacement.
39804         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add new defaults.
39805         * modules/stdio (Makefile.am): Substitute them.
39806         * lib/stdio.in.h (rename): Declare replacement.
39807         * lib/rename.c (includes): Allow cross-compilation to non-windows
39808         machines.
39809         * doc/posix-functions/rename.texi (rename): Improve
39810         documentation.
39811
39812         stdio: sort witness names
39813         * modules/stdio (Makefile.am): Sort replacements.
39814         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
39815         * lib/stdio.in.h: Likewise.
39816
39817         getcwd: minor cleanups
39818         * lib/getcwd.c (AT_FDCWD): Delete; rely on <fcntl.h> instead.
39819         (is_ENAMETOOLONG): Delete; ENAMETOOLONG is portable.
39820
39821         openat: provide more convenience names
39822         * modules/faccessat (configure.ac): Add C witness.
39823         * lib/unistd.in.h (readlinkat): Fix typo.
39824         * lib/openat.h (statat, lstatat, accessat, euidaccessat): New
39825         convenience wrappers.
39826         * top/maint.mk (sc_prohibit_openat_without_use): Allow these
39827         wrappers in syntax checks.
39828
39829 2009-09-06  Eric Blake  <ebb9@byu.net>
39830
39831         doc: fix comments in recent patches
39832         * lib/faccessat.c: Mention correct function.
39833         * lib/fchmodat.c: Likewise.
39834         * lib/fchownat.c: Likewise.
39835         * lib/symlinkat.c: Likewise.
39836         * doc/posix-headers/fcntl.texi (fcntl.h): Cygwin 1.7 has AT_*
39837         constants.
39838
39839         faccessat, symlinkat: continue cleanup of previous patch
39840         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Ensure dependency order.
39841         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Likewise.
39842         * modules/unistd (Makefile.am): Substitute GNULIB_READLINKAT.
39843         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Offer GNULIB_READLINKAT.
39844         * modules/symlinkat (configure.ac): Set GNULIB_READLINKAT.
39845         * lib/unistd.in.h (readlinkat): Declare if GNULIB_READLINKAT is
39846         set.
39847
39848 2009-09-06  Bruno Haible  <bruno@clisp.org>
39849
39850         * lib/sys_stat.in.h (fchmodat): Declare if GNULIB_FCHMODAT is set.
39851         (fstatat): Declare if GNULIB_FSTATAT is set.
39852         (mkdirat): Declare if GNULIB_MKDIRAT is set.
39853         * lib/unistd.in.h (fchownat): Declare if GNULIB_FCHOWNAT is set.
39854         (unlinkat): Declare if GNULIB_UNLINKAT is set.
39855         * modules/fcntl-h (Files): Remove m4/openat.m4.
39856         * modules/sys_stat (Files): Remove m4/openat.m4.
39857         (Makefile.am): Substitute GNULIB_FCHMODAT, GNULIB_FSTATAT,
39858         GNULIB_MKDIRAT instead of GNULIB_OPENAT.
39859         * modules/unistd (Files): Remove m4/openat.m4.
39860         (Makefile.am): Substitute GNULIB_FCHOWNAT, GNULIB_UNLINKAT instead of
39861         GNULIB_OPENAT.
39862         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Initialize GNULIB_OPENAT,
39863         HAVE_OPENAT here. Don't require gl_OPENAT_DEFAULTS.
39864         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize
39865         GNULIB_FCHMODAT, GNULIB_FSTATAT, GNULIB_MKDIRAT, HAVE_FCHMODAT,
39866         HAVE_FSTATAT, HAVE_MKDIRAT, REPLACE_FSTATAT here. Don't require
39867         gl_OPENAT_DEFAULTS.
39868         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_FCHOWNAT,
39869         GNULIB_UNLINKAT, HAVE_FCHOWNAT, HAVE_UNLINKAT, REPLACE_FCHOWNAT here.
39870         Don't require gl_OPENAT_DEFAULTS.
39871         * m4/openat.m4 (gl_FUNC_OPENAT): Require gl_FCNTL_H_DEFAULTS,
39872         gl_SYS_STAT_H_DEFAULTS, gl_UNISTD_H_DEFAULTS. Set GNULIB_FCHMODAT,
39873         GNULIB_FSTATAT, GNULIB_MKDIRAT, GNULIB_FCHOWNAT, GNULIB_UNLINKAT.
39874         (gl_OPENAT_DEFAULTS): Remove macro.
39875
39876 2009-09-06  Bruno Haible  <bruno@clisp.org>
39877
39878         * modules/openat (configure.ac): Remove unneeded witness.
39879
39880 2009-09-06  Bruno Haible  <bruno@clisp.org>
39881
39882         Set errno to ENOSYS when a function is entirely unsupported.
39883         * lib/chown.c (rpl_chown) [!HAVE_CHOWN]: Set errno to ENOSYS instead of
39884         EOPNOTSUPP.
39885         * lib/lchown.c (lchown) [!HAVE_CHOWN]: Likewise.
39886         * modules/chown (Depends-on): Remove errno.
39887
39888 2009-09-06  Bruno Haible  <bruno@clisp.org>
39889
39890         * doc/posix-headers/fcntl.texi (AT_*): Mention affected platforms.
39891
39892 2009-09-06  Bruno Haible  <bruno@clisp.org>
39893
39894         * lib/sys_stat.in.h: Fix preprocessor command indentation.
39895
39896 2009-09-06  Ben Pfaff  <blp@gnu.org>
39897             Bruno Haible  <bruno@clisp.org>
39898
39899         Work around a glibc bug in strtok_r.
39900         * lib/string.in.h (strtok_r): Replace if REPLACE_STRTOK_R is set.
39901         Undefine if UNDEFINE_STRTOK_R is set.
39902         * lib/strtok_r.c (strtok_r, __strtok_r) [!_LIBC]: Don't undefine.
39903         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
39904         REPLACE_STRTOK_R and UNDEFINE_STRTOK_R.
39905         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Check against the glibc bug.
39906         * modules/string (Makefile.am): Substitute REPLACE_STRTOK_R,
39907         UNDEFINE_STRTOK_R.
39908         * doc/posix-functions/strtok_r.texi: Mention the glibc 2.7 bug.
39909
39910 2009-09-06  Sergey Poznyakoff  <gray@gnu.org.ua>
39911
39912         exclude: minor fix
39913         * lib/exclude.c: Include wctype.h
39914
39915 2009-09-06  Akim Demaille  <demaille@gostai.com>
39916
39917         bootstrap: improve error message
39918         * build-aux/bootstrap (find_tool): Upon failure, report the list
39919         of candidates.
39920         Honor the initial value of the envvar.
39921
39922 2009-09-05  Eric Blake  <ebb9@byu.net>
39923
39924         symlinkat: new module
39925         * modules/symlinkat: New file.
39926         * lib/symlinkat.c: Likewise.
39927         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Likewise.
39928         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
39929         * modules/unistd (Makefile.am): Use them.
39930         * lib/unistd.in.h (symlinkat, readlinkat): Declare them.
39931         (faccessat) [GNULIB_POSIXCHECK]: Fix typo.
39932         * lib/at-func.c (FUNC_RESULT): New macro, defaulting to int.
39933         * MODULES.html.sh (File system functions): Mention module.
39934         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
39935         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
39936         * modules/symlinkat-tests: New test.
39937         * tests/test-symlinkat.c: Likewise.
39938
39939         test-openat-safer: add more checks
39940         * tests/test-openat-safer.c (main): Check more code paths.
39941
39942 2009-09-05  Jim Meyering  <meyering@redhat.com>
39943
39944         syntax-check: detect unnecessary inclusion of openat.h
39945         * top/maint.mk (sc_prohibit_openat_without_use): New rule.
39946
39947 2009-09-05  Bruno Haible  <bruno@clisp.org>
39948
39949         Support towlower, towupper.
39950         * doc/posix-functions/towlower.texi: Mention module wctype.
39951         * doc/posix-functions/towupper.texi: Likewise.
39952         * lib/wctype.in.h (towlower, towupper): New functions.
39953         * tests/test-wctype.c: Include stdio.h, stdlib.h.
39954         (ASSERT): New macro.
39955         (e): New variable.
39956         (main): Test also towlower, towupper. Test WEOF argument.
39957         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
39958
39959 2009-09-05  Bruno Haible  <bruno@clisp.org>
39960
39961         Fix conversion behaviour when the input is invalid.
39962         * lib/striconveh.c (mem_cd_iconveh_internal): Fix storing of question
39963         mark occurring in first pass of indirect conversion.
39964         * tests/test-striconveh.c (main): Test conversion of invalid ASCII
39965         input.
39966         Found by clang's static analyzer.
39967
39968 2009-09-05  Bruno Haible  <bruno@clisp.org>
39969
39970         * tests/test-striconveh.c (main): Test indirect conversion on platforms
39971         where direct conversion is possible.
39972
39973 2009-09-04  Eric Blake  <ebb9@byu.net>
39974
39975         openat: fail with ENOENT on empty name
39976         * lib/openat-proc.c (openat_proc_name): Special-case the empty
39977         buffer.
39978
39979         link-follow: fix logic bug in prior patch
39980         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Fix bug that
39981         reversed sense of yes and no in prior patch.  Avoid confusing
39982         compilation failure with desired semantics.
39983
39984         link-follow: accomodate mingw and cross-compilation
39985         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Rename...
39986         (gl_FUNC_LINK_FOLLOWS_SYMLINK): ...to this.  Change
39987         cross-compilation results to -1, to make linkat easier to
39988         implement when cross-compiling.  Trivially support mingw.
39989         * modules/link-follow (configure.ac): Call new name.
39990         * NEWS: Mention this.
39991
39992 2009-09-03  Eric Blake  <ebb9@byu.net>
39993
39994         faccessat: compile replacement
39995         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Build replacement when
39996         needed.
39997
39998         fts: fix compilation error
39999         * lib/fts.c (includes): Re-add "openat.h", for
40000         openat_needs_fchdir.
40001
40002         faccessat: new module
40003         * modules/faccessat: New file.
40004         * lib/faccessat.c: Likewise.
40005         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Likewise.
40006         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
40007         * modules/unistd (Makefile.am): Use it.
40008         * lib/unistd.in.h (faccessat): Declare it.
40009         (F_OK, X_OK, W_OK, R_OK): Provide definitions.
40010         * lib/fcntl.in.h (AT_SYMLINK_FOLLOW, AT_EACCESS): Likewise.
40011         * MODULES.html.sh (File system functions): Mention it.
40012         * doc/posix-functions/faccessat.texi (faccessat): Likewise.
40013         * doc/posix-headers/fcntl.texi (fcntl.h): Likewise.
40014
40015         euidaccess: prefer POSIX over non-standard implementation
40016         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Check for faccessat.
40017         * lib/euidaccess.c (euidaccess): Use it if available.
40018
40019         openat: make template easier to use
40020         * lib/at-func.c (CALL_FUNC): Allow AT_FUNC_USE_F1_COND and
40021         AT_FUNC_F2 to be undefined.
40022         (VALIDATE_FLAG): New macro; use it to reject bad flags.
40023         (AT_FUNC_USE_F1_COND): Change sense to just flag bit.
40024         * lib/fchmodat.c (AT_FUNC_USE_F1_COND): Adjust.
40025         * lib/fchownat.c (AT_FUNC_USE_F1_COND): Likewise.
40026         * lib/openat.c (AT_FUNC_USE_F1_COND) [fstatat, unlinkat]:
40027         Likewise.
40028         * lib/mkdirat.c (AT_FUNC_F2, AT_FUNC_USE_F1_COND): Delete.
40029         * lib/selinux-at.c (AT_FUNC_F2, AT_FUNC_USE_F1_COND)
40030         [getfileconat, lgetfileconat, setfileconat, lsetfileconat]:
40031         Likewise.
40032
40033         openat: declare in POSIX headers
40034         * NEWS: Mention this.
40035         * modules/openat (configure.ac): Declare witnesses.
40036         (Depends-on): Add fcntl-h, sys_stat, unistd.
40037         (Include): Mention correct headers.
40038         * modules/fcntl-h (Depends-on): Add link-warning.
40039         (Files): Add openat.m4.
40040         (Makefile.am): Substitute witnesses.
40041         * modules/sys_stat (Files, Makefile.am): Likewise.
40042         * modules/unistd (Files, Makefile.am): Likewise.
40043         * m4/openat.m4 (gl_FUNC_OPENAT, gl_FUNC_FCHOWNAT): Set witnesses.
40044         (gl_OPENAT_DEFAULTS): New macro.
40045         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Use it.
40046         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Likewise.
40047         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Likewise.
40048         (SYS_STAT_H): Remove unused variable.
40049         * doc/posix-headers/fcntl.texi (fcntl.h): Update content.
40050         * lib/fcntl--.h (includes): Remove unneeded header.
40051         * lib/openat-safer.c (includes): Likewise.
40052         * lib/openat.h (AT_FDCWD, AT_SYMLINK_NOFOLLOW, AT_REMOVEDIR)
40053         (openat, fstatat, unlinkat, mkdirat, fchmodat, fchownat): Move to
40054         appropriate headers.
40055         (__OPENAT_PREFIX): Delete.
40056         * lib/fcntl.in.h (openat): Provide declaration.
40057         (AT_FDCWD): Fix Solaris bug.
40058         (AT_SYMLINK_NOFOLLOW, AT_REMOVEDIR): Provide macros.
40059         * lib/sys_stat.in.h (fstatat, mkdirat): Provide declaration.
40060         * lib/fchmodat.c (includes):  Adjust to find declaration.
40061         * lib/fchownat.c (includes): Likewise.
40062         * lib/mkdirat.c (includes): Likewise.
40063         * lib/fstatat.c (includes): Likewise.  Ensure original fstatat is
40064         still visible.
40065
40066 2009-09-02  Eric Blake  <ebb9@byu.net>
40067
40068         errno: use consistently
40069         * lib/c-stack.c (ENOTSUP): <errno.h> guarantees a definition.
40070         * lib/canonicalize-lgpl.c (ENAMETOOLONG): Likewise.
40071         * lib/canonicalize.c (ELOOP): Likewise.
40072         * lib/inet_ntop.c (EAFNOSUPPORT): Likewise.
40073         * lib/inet_pton.c (EAFNOSUPPORT): Likewise.
40074         * lib/lchown.c (EOPNOTSUPP): Likewise.
40075         * lib/openat-priv.h (ENOSYS, EOPNOTSUPP): Likewise.
40076         * lib/savewd.c (ESTALE): Likewise.
40077         * lib/settime.c (ENOSYS): Likewise.
40078         * lib/utimens.c (ENOSYS): Likewise.
40079         * lib/xgethostname.c (ENAMETOOLONG): Likewise.
40080         * lib/chdir-safer.c (ELOOP): Likewise.
40081         (chdir_no_follow): Use HAVE_READLINK, not ELOOP, as witness.
40082         * modules/c-stack (Depends-on): Add errno.
40083         * modules/canonicalize (Depends-on): Likewise.
40084         * modules/chdir-safer (Depends-on): Likewise.
40085         * modules/fdopendir (Depends-on): Likewise.
40086         * modules/inet_ntop (Depends-on): Likewise.
40087         * modules/inet_pton (Depends-on): Likewise.
40088         * modules/lchown (Depends-on): Likewise.
40089         * modules/openat (Depends-on): Likewise.
40090         * modules/savewd (Depends-on): Likewise.
40091         * modules/settime (Depends-on): Likewise.
40092         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Check for readlink.
40093
40094         fts: avoid leaking fds
40095         * modules/fts (Depends-on): Add cloexec.
40096         * lib/fts.c (opendirat, diropen, fts_build): Set close-on-exec
40097         flag.
40098
40099         fts: make directory fds more robust
40100         * lib/fts.c (O_DIRECTORY): Let <fcntl.h> take care of this.
40101         (opendirat): Specify O_DIRECTORY, and add fallbacks for safety.
40102
40103         backupfile, chdir-long, fts, savedir: make safer
40104         * lib/backupfile.c (includes): Use "dirent--.h", since
40105         numbered_backup can write to stderr during readdir.
40106         * lib/savedir.c (includes): Likewise.
40107         * lib/chdir-long.c (includes): Use "fcntl--.h", since openat
40108         emulation can write to stderr on failure.
40109         * lib/fts.c (includes) [!_LIBC]: Likewise for opendir and openat.
40110         * lib/getcwd.c: Document why opendir_safer is unused.
40111         * lib/glob.c: Likewise.
40112         * lib/scandir.c: Likewise.
40113         * lib/openat-proc.c: Likewise, for open_safer.
40114         * modules/backupfile (Depends-on): Add dirent-safer.
40115         * modules/savedir (Depends-on): Likewise.
40116         * modules/fts (Depends-on): Add dirent-safer and openat-safer.
40117         * modules/chdir-long (Depends-on): Add openat-safer.
40118
40119         openat-safer: new module
40120         * modules/openat-safer: New file.
40121         * lib/openat-safer.c: Likewise.
40122         * m4/fcntl-safer.m4 (gl_OPENAT_SAFER): New macro.
40123         * lib/fcntl-safer.h (openat_safer): Declare.
40124         * lib/fcntl--.h (openat): Override.
40125         * MODULES.html.sh (File descriptor based I/O): Mention it.
40126         * lib/openat.h: Add double-inclusion guards.
40127         * lib/openat.c (includes): Only include "fcntl-safer.h", not
40128         "fcntl--.h", so we can implement openat.
40129         * modules/openat-safer-tests: New test.
40130         * tests/test-openat-safer.c: New file.
40131
40132         dirent-safer: new module
40133         * modules/dirent-safer: New file.
40134         * lib/dirent--.h: Likewise.
40135         * lib/dirent-safer.h: Likewise.
40136         * lib/opendir-safer.c: Likewise.
40137         * m4/dirent-safer.m4: Likewise.
40138         * MODULES.html.sh (Enhancements for POSIX:2008): Mention it.
40139         * modules/dirent-safer-tests: New test.
40140         * tests/test-dirent-safer.c: New file.
40141         * lib/fdopendir.c (includes): Ensure fdopendir is also safe.
40142
40143         fdopendir: optimize on mingw
40144         * lib/unistd.in.h (_gl_directory_name): New prototype.
40145         * lib/fchdir.c (_gl_directory_name): Implement it.
40146         (fchdir): Use it to simplify implementation.
40147         * lib/fdopendir.c (fdopendir) [REPLACE_FCHDIR]: Use metadata from
40148         fchdir, when available, to avoid calling [f]chdir().
40149
40150         fdopendir: split into its own module
40151         * lib/openat.c (fdopendir): Move...
40152         * lib/fdopendir.c: ...into new file.
40153         * modules/fdopendir: New module.
40154         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): New file.
40155         * modules/openat (Depends-on): Add fdopendir.
40156         * m4/openat.m4 (gl_FUNC_OPENAT): No longer need to check for
40157         fdopendir here.
40158         * modules/savedir (Depends-on): Only need fdopendir, not full
40159         openat.
40160         * lib/savedir.c (include): Use <dirent.h>, not "openat.h".
40161         * lib/openat.h (fdopendir): Drop prototype.
40162         * lib/dirent.in.h (fdopendir): Provide prototype.
40163         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Add replacements.
40164         * modules/dirent (Makefile.am): Substitute them.
40165         * MODULES.html.sh (File system functions): Mention it.
40166         * doc/posix-functions/fdopendir.texi (fdopendir): Likewise.
40167         * modules/fdopendir-tests: New file.
40168         * tests/test-fdopendir.c: Likewise.
40169
40170         fchdir: use more consistent macro convention
40171         * lib/fcntl.in.h (_gl_register_fd): Move declaration to unistd.
40172         * lib/sys_stat.in.h (rpl_fstat): Declare via make-time
40173         REPLACE_FCHDIR, rather than relying on config.h macros.
40174         * lib/unistd.in.h (fchdir): Move all fchdir internal declarations
40175         inside a single make-time REPLACE_FCHDIR block, rather than using
40176         the config.h FCHDIR_REPLACEMENT.
40177         * m4/fchdir.m4 (gl_FUNC_FCHDIR): REPLACE_FCHDIR was already
40178         AC_SUBST'd, also AC_DEFINE it.  Don't define FCHDIR_REPLACEMENT.
40179         Manage fstat replacement.
40180         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Pick up
40181         REPLACE_FCHDIR.
40182         * modules/sys_stat (Files): Add m4/unistd_h.m4.
40183         (Makefile.am): Substitute REPLACE_FCHDIR.
40184         * lib/close.c (rpl_close): Use REPLACE_FCHDIR, not
40185         FCHDIR_REPLACEMENT.
40186         * lib/dup-safer.c (dup_safer): Likewise.
40187         * lib/dup2.c (rpl_dup2): Likewise.
40188         * lib/dup3.c (rpl_dup3): Likewise.
40189         * lib/open.c (rpl_open): Likewise.
40190
40191         fchdir: simplify error handling, and support dup3
40192         * modules/fchdir (Depends-on): Use strdup-posix, not strdup.  Add
40193         stdbool, malloc-posix, realloc-posix.
40194         * lib/fchdir.c (struct dir_info_t): Delete saved_errno.
40195         (ensure_dirs_slot): Return false on allocation failure.
40196         (rpl_dup2): Delete.
40197         (_gl_register_dup): New function.
40198         (_gl_unregister_fd, rpl_opendir, rpl_dup): Update callers.
40199         (_gl_register_fd): Close fd on allocation failure.
40200         * lib/fcntl.in.h (_gl_register_fd): Update signature.
40201         * lib/unistd.in.h (_gl_register_dup) [FCHDIR_REPLACEMENT]: New
40202         prototype.
40203         (rpl_dup2_fchdir): Delete prototype.
40204         * lib/open.c (open): Update caller.
40205         * lib/dup2.c (dup2): Track fchdir metadata.
40206         * lib/dup3.c (dup3): Likewise.
40207         * m4/dup2.m4 (gl_REPLACE_DUP2): New macro.
40208         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Use it.
40209
40210 2009-09-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
40211
40212         * gnulib-tool (func_create_testdir, func_create_megatestdir): Use
40213         AC_CONFIG_HEADERS instead of AM_CONFIG_HEADER. Use AC_CONFIG_FILES and
40214         don't pass arguments to AC_OUTPUT.
40215
40216 2009-09-02  Bruno Haible  <bruno@clisp.org>
40217
40218         * modules/mkdtemp (License): Relicense under LGPLv2+.
40219         Reported by Paolo Bonzini.
40220
40221 2009-09-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
40222
40223         Replace uses of obsolete autoconf macros in Jim's modules.
40224         The Autoconf macros AC_TRY_CPP, AC_TRY_COMPILE, AC_TRY_LINK and
40225         AC_TRY_RUN have been obsolete since Autoconf 2.55, and each use
40226         can evoke a warning from autoconf when run with -Wobsolete
40227         enabled.  They were declared obsolete for good reasons (see
40228         the `AC_FOO_IFELSE vs AC_TRY_FOO' node in the Autoconf manual,
40229         recently renamed to `AC_ACT_IFELSE vs AC_TRY_ACT'), and we
40230         should not continue using the deprecated macros.
40231         * m4/d-type.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Replace
40232         obsolete Autoconf macros with modern counterparts.
40233         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
40234         * m4/dos.m4 (gl_AC_DOS): Likewise.
40235         * m4/fpending.m4 (gl_FUNC_FPENDING): Likewise.
40236         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Likewise.
40237         * m4/getloadavg.m4 (gl_PREREQ_GETLOADAVG): Likewise.
40238         * m4/jm-winsz1.m4 (gl_WINSIZE_IN_PTEM): Likewise.
40239         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Likewise.
40240         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Likewise.
40241         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Likewise.
40242         * m4/mode_t.m4 (gl_PROMOTED_TYPE_MODE_T): Likewise.
40243         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH):
40244         Likewise.
40245         * m4/rename.m4 (gl_FUNC_RENAME): Likewise.
40246         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
40247         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Likewise.
40248         * m4/st_dm_mode.m4 (AC_STRUCT_ST_DM_MODE): Likewise.
40249         * m4/stat-time.m4 (gl_STAT_TIME): Likewise.
40250         * m4/utimes-null.m4 (gl_FUNC_UTIMES_NULL): Likewise.
40251
40252 2009-09-01  Eric Blake  <ebb9@byu.net>
40253
40254         fchdir: fix off-by-one bug in previous patch
40255         * lib/fchdir.c (rpl_fstat): Use correct bounds.
40256         (_gl_unregister_fd): Delete useless if.
40257
40258 2009-09-01  Daniel P. Berrange  <berrange@redhat.com>
40259
40260         maint.mk: sort the list of syntax-check rules
40261         * top/maint.mk (syntax-check-rules): Sort syntax-check rules, so it's
40262         easier to get a sense of progress when the rules are run sequentially
40263         and take a long time.
40264
40265 2009-09-01  Simon Josefsson  <simon@josefsson.org>
40266
40267         * modules/arpa_inet: Use $(MKDIR_P) instead of @MKDIR_P@.
40268         * modules/netinet_in: Likewise.
40269         * modules/sys_file: Likewise.
40270         * modules/sys_ioctl: Likewise.
40271         * modules/sys_select: Likewise.
40272         * modules/sys_socket: Likewise.
40273         * modules/sys_stat: Likewise.
40274         * modules/sys_time: Likewise.
40275         * modules/sys_times: Likewise.
40276         * modules/sys_utsname: Likewise.
40277         * modules/sys_wait: Likewise.
40278
40279 2009-09-01  Jim Meyering  <meyering@redhat.com>
40280
40281         fts: help ensure that return values are not ignored
40282         * lib/fts_.h (__GNUC_PREREQ): Define.
40283         (__attribute_warn_unused_result__): Define.
40284         (fts_children, fts_close, fts_open, fts_read): Declare with
40285         __attribute_warn_unused_result__.
40286
40287         fts: fts_close now fails also when closing a dir file descriptor fails
40288         * lib/fts.c (fts_close): Detect close failure, not just fchdir failure,
40289         and propagate to caller, along with errno.
40290
40291         announce-gen: correct formatting in --help output
40292         * build-aux/announce-gen (usage): Move the one-line description in
40293         --help output "up", to where it belongs, just after Usage:.
40294
40295 2009-08-31  Eric Blake  <ebb9@byu.net>
40296
40297         fchdir: port to mingw
40298         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Check for mingw bug.
40299         * lib/open.c (open) [FCHDIR_REPLACEMENT]: If directories can't be
40300         opened, then use a substitute.
40301         * lib/sys_stat.in.h (fstat) [REPLACE_OPEN_DIRECTORY]: Declare
40302         replacement.
40303         * lib/fchdir.c (fstat) [REPLACE_OPEN_DIRECTORY]: Implement it.
40304         (_gl_register_fd): No need to check stat if open already filters
40305         all directories.
40306         (fchdir): Fix error condition to match POSIX.
40307         * modules/fchdir (Depends-on): Add sys_stat.
40308         * doc/posix-functions/open.texi (open): Document the limitation.
40309         * modules/fchdir-tests: New file.
40310         * tests/test-fchdir.c: Likewise.
40311
40312         canonicalize: allow cross-testing from cygwin to mingw
40313         * modules/canonicalize-tests (configure.ac): Define HAVE_SYMLINK.
40314         (Makefile.am): Pass it through TESTS_ENVIRONMENT.
40315         * modules/canonicalize-lgpl-tests (configure.ac, Makefile.am):
40316         Likewise.
40317         * tests/test-canonicalize.sh: Also skip test if 'ln -s' works, but
40318         target does not support symlinks.
40319         * tests/test-canonicalize-lgpl.sh: Likewise.
40320
40321         chown: avoid compilation warning on mingw
40322         * m4/chown.m4 (gl_FUNC_CHOWN): Recognize missing chown.
40323         * lib/chown.c (rpl_chown) [!HAVE_CHOWN]: Always return failure on
40324         mingw.
40325         * lib/lchown.c (lchown) [!HAVE_CHOWN]: Likewise.
40326         * modules/chown (Depends-on): Add errno.
40327
40328 2009-08-31  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
40329
40330         * gnulib-tool: Fix test whether $CONFIG_SHELL has a working 'echo'
40331         command.
40332
40333 2009-08-31  Jim Meyering  <meyering@redhat.com>
40334
40335         canonicalize: remove useless initialization
40336         * lib/canonicalize.c (canonicalize_filename_mode): Remove useless
40337         initialization of local, "end".
40338
40339 2009-08-30  Bruno Haible  <bruno@clisp.org>
40340
40341         Fix an unnecessary error on Solaris 10 on NFSv3 file systems.
40342         * lib/set-mode-acl.c (qset_acl) [Solaris 10 new]: Treat EOPNOTSUPP like
40343         ENOSYS.
40344
40345 2009-08-30  Bruno Haible  <bruno@clisp.org>
40346
40347         * tests/test-pipe-filter-ii1.sh: Prefer /usr/xpg6/bin/tr over
40348         /usr/xpg4/bin/tr when it exists.
40349         * tests/test-pipe-filter-gi1.sh: Likewise.
40350
40351 2009-08-30  Bruno Haible  <bruno@clisp.org>
40352
40353         Work around deficient /usr/bin/id program on Solaris.
40354         * tests/test-file-has-acl.sh (ID): New variable.
40355         * tests/test-set-mode-acl.sh (ID): Likewise.
40356         * tests/test-copy-acl.sh (ID): Likewise.
40357         * tests/test-copy-file.sh (ID): Likewise.
40358
40359 2009-08-30  Bruno Haible  <bruno@clisp.org>
40360
40361         New module 'xstriconveh'.
40362         * lib/xstriconveh.h: New file.
40363         * lib/xstriconveh.c: New file.
40364         * modules/xstriconveh: New file.
40365
40366 2009-08-30  Bruno Haible  <bruno@clisp.org>
40367
40368         Make it easier to use mem_cd_iconveh.
40369         * lib/striconveh.h (iconveh_t): New type.
40370         (iconveh_open, iconveh_close): New declarations.
40371         (mem_cd_iconveh, str_cd_iconveh): Replace the three iconv_t arguments
40372         with a single 'const iconveh_t *' argument.
40373         * lib/striconveh.c (iconveh_open, iconveh_close): New functions.
40374         (mem_cd_iconveh, str_cd_iconveh): Replace the three iconv_t arguments
40375         with a single 'const iconveh_t *' argument.
40376         (mem_iconveh, str_iconveh): Use iconveh_open, iconveh_close.
40377         * tests/test-striconveh.c (main): Update.
40378         * NEWS: Mention the change.
40379
40380 2009-08-30  Bruno Haible  <bruno@clisp.org>
40381
40382         * doc/posix-functions/iconv_open.texi: Mention indirect conversion
40383         problem.
40384
40385 2009-08-30  Bruno Haible  <bruno@clisp.org>
40386
40387         Work around iconv_open problem on Solaris.
40388         * lib/iconv_open-solaris.gperf: New file.
40389         * lib/iconv_open.c (ICONV_FLAVOR_SOLARIS): New macro.
40390         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Also handle Solaris.
40391         * modules/iconv_open (Files): Add lib/iconv_open-solaris.gperf.
40392         (Makefile.am): Add rule for iconv_open-solaris.h. Augment
40393         BUILT_SOURCES, MOSTLYCLEANFILES, MAINTAINERCLEANFILES, EXTRA_DIST.
40394         * doc/posix-functions/iconv_open.texi: Mention the Solaris problem.
40395
40396 2009-08-29  Jim Meyering  <meyering@redhat.com>
40397
40398         maint.mk: remove more coreutils-specific targets; XZ_OPT=-9ev
40399         * top/maint.mk (cvs-check): Remove target; it was just an alias
40400         to the better-named vc-diff-check.
40401         (maintainer-distcheck): Remove rule.  It was used only from
40402         the (alpha/beta/major) target, and all of its commands but one
40403         were coreutils-specific.
40404         (vc-dist): Remove rule.
40405         (alpha beta major): Run "$(MAKE) distcheck" explicitly.
40406         Run vc-diff-check, not vc-dist.
40407         Run $(MAKE) dist with XZ_OPT=-9ev.  Note spelling, with "-".
40408
40409 2009-08-27  Bruno Haible  <bruno@clisp.org>
40410
40411         * tests/test-bitrotate.c (main): Remove test that uses a shift count
40412         of 0.
40413
40414 2009-08-27  Bruno Haible  <bruno@clisp.org>
40415
40416         * tests/test-func.c (main): Don't verify sizeof __func__ on SunPRO C
40417         compilers.
40418         * doc/func.texi: Document the SunPRO C bug.
40419
40420 2009-08-27  Bruno Haible  <bruno@clisp.org>
40421
40422         Fix link error on Solaris.
40423         * tests/test-parse-duration.c (xstrdup): Remove function.
40424
40425 2009-08-26  Pádraig Brady  <P@draigbrady.com>
40426
40427         ignore-value: handle pointer types, too
40428         * lib/ignore-value.h (__attribute__): Remove definition.
40429         (ignore_value): Remove use of "__attribute__ ((unused))" in favor
40430         of a more concise and more-often effective "(void) i" statement.
40431         (ignore_ptr): New function to suppress warnings from functions that
40432         return pointers, and to make it explicit that one function doesn't
40433         handle all cases.
40434
40435 2009-08-25  Bruno Haible  <bruno@clisp.org>
40436
40437         dup2: work around a Linux bug.
40438         * m4/dup2.m4 (gl_FUNC_DUP2): Test for the Linux bug.
40439         * lib/dup2.c (rpl_dup2): Correct the return value if it is -EBADF.
40440         * doc/posix-functions/dup2.texi: Mention the Linux bug.
40441         Reported by Simon Josefsson.
40442
40443 2009-08-25  Jim Meyering  <meyering@redhat.com>
40444
40445         libguestfs uses gnulib
40446         * users.txt: Add libguestfs.
40447
40448 2009-08-24  Eric Blake  <ebb9@byu.net>
40449
40450         dup2, pipe2: fix some recent test failures on cygwin 1.5.x
40451         * lib/pipe2.c (includes): Add binary-io.h.
40452         * lib/dup2.c (rpl_dup2): Correct buggy errno value.
40453
40454 2009-08-24  Bruno Haible  <bruno@clisp.org>
40455
40456         Tolerate declared but missing accept4 syscall.
40457         * lib/accept4.c (accept4): Invoke original accept4 function first, if
40458         available.
40459         * lib/sys_socket.in.h (accept4): If the function is already present,
40460         override it.
40461         * m4/accept4.m4 (gl_FUNC_ACCEPT4): Remove AC_LIBOBJ invocation.
40462         * modules/accept4 (Makefile.am): Compile accept4.c always.
40463         Reported by Paolo Bonzini and Eric Blake.
40464
40465 2009-08-23  Bruno Haible  <bruno@clisp.org>
40466
40467         New module 'accept4'.
40468         * lib/sys_socket.in.h (accept4): New declaration.
40469         * lib/accept4.c: New file.
40470         * m4/accept4.m4: New file.
40471         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Initialize
40472         GNULIB_ACCEPT4, HAVE_ACCEPT4.
40473         * modules/sys_socket (Makefile.am): Substitute GNULIB_ACCEPT4,
40474         HAVE_ACCEPT4.
40475         * modules/accept4: New file.
40476         * doc/glibc-functions/accept4.texi: Mention the new module.
40477
40478 2009-08-24  Jim Meyering  <meyering@redhat.com>
40479
40480         progname: also set global program_invocation_name, when possible
40481         Before this change, a libtool-enabled program that calls glibc's
40482         error function would report the program name as
40483         "/abs/dir/.libs/lt-program_name" rather than the desired program_name.
40484         * modules/progname (configure.ac): Check for a declaration of
40485         program_invocation_name.
40486         * lib/progname.c:  Include <errno.h>.
40487         (set_program_name) [HAVE_DECL_PROGRAM_INVOCATION_NAME]:
40488         Set program_invocation_name.
40489
40490 2009-08-23  Bruno Haible  <bruno@clisp.org>
40491
40492         * lib/dup3.c: Include <string.h>.
40493
40494 2009-08-23  Bruno Haible  <bruno@clisp.org>
40495
40496         * lib/dup3.c (dup3): Test only once whether the system actually exists.
40497         * lib/pipe2.c (pipe2): Likewise.
40498         Suggested by Eric Blake.
40499
40500 2009-08-23  Bruno Haible  <bruno@clisp.org>
40501
40502         Tolerate declared but missing dup3 syscall.
40503         * lib/dup3.c (dup3): Invoke original dup3 function first, if available.
40504         * lib/unistd.in.h (dup3): If the function is already present,
40505         override it.
40506         * m4/dup3.m4 (gl_FUNC_DUP3): Remove AC_LIBOBJ invocation.
40507         * modules/dup3 (Makefile.am): Compile dup3.c always.
40508         Reported by Paolo Bonzini.
40509
40510 2009-08-23  Bruno Haible  <bruno@clisp.org>
40511
40512         Tolerate declared but missing pipe2 syscall.
40513         * lib/pipe2.c (pipe2): Invoke original pipe2 function first, if
40514         available.
40515         * lib/unistd.in.h (pipe2): If the function is already present,
40516         override it.
40517         * m4/pipe2.m4 (gl_FUNC_PIPE2): Remove AC_LIBOBJ invocation.
40518         * modules/pipe2 (Makefile.am): Compile pipe2.c always.
40519         Reported by Paolo Bonzini.
40520
40521 2009-08-23  Bruno Haible  <bruno@clisp.org>
40522
40523         * lib/pipe2.c (pipe2): Move #ifs inside function.
40524
40525 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
40526
40527         quotearg: document limitations of quote_these_too
40528         * lib/quotearg.c (quotearg_buffer_restyled): Add comments where
40529         those limitations are created.
40530         * lib/quotearg.h (set_char_quoting): Document that digits and
40531         letters that are special after backslash are not permitted.
40532         (quotearg_char): Cross-reference set_char_quoting documentation.
40533
40534 2009-08-23  Joel E. Denny  <jdenny@clemson.edu>
40535
40536         quotearg: implement custom_quoting_style
40537         * lib/quotearg.c: (struct quoting_options): Add left_quote and
40538         right_quote fields.
40539         (set_custom_quoting): New public function.
40540         (quotearg_buffer_restyled): Add left_quote and right_quote
40541         arguments, handle them very much like locale quoting, and update
40542         all uses.
40543         (quotearg_n_custom): New public function.
40544         (quotearg_n_custom_mem): New public function.
40545         (quotearg_custom): New public function.
40546         (quotearg_custom_mem): New public function.
40547         * lib/quotearg.h: Prototype and document new public functions.
40548         (enum quoting_style): For escape_quoting_style and
40549         clocale_quoting_style, comment that QA_SPLIT_TRIGRAPHS is
40550         ignored even though they're otherwise like c_quoting_style.
40551         Add custom_quoting_style member and document with comparison to
40552         clocale_quoting_style.
40553         * tests/test-quotearg.c (custom_quotes): New array.
40554         (custom_results): New array.
40555         (main): Extend to test custom quoting.
40556
40557 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
40558
40559         quotearg: fix right quote escaping when it's in quote_these_too
40560         * lib/quotearg.c (quotearg_buffer_restyled): Upon seeing a right
40561         quote, be sure to prepend only one backslash.
40562         * tests/test-quotearg.c (use_quote_double_quotes): New function.
40563         (main): Test it.
40564
40565 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
40566
40567         quotearg-tests: test escaping of embedded locale quotes
40568         * tests/test-quotearg.c (struct result_strings): Add member for
40569         new input.
40570         (LQ_ENC, RQ_ENC, RQ_ESC): New macros.
40571         (inputs): Add new input.
40572         (results_g): Add expected results.
40573         (flag_results): Likewise.
40574         (locale_results): Likewise.
40575         (compare_strings): Check those.
40576
40577 2009-08-23  Bruno Haible  <bruno@clisp.org>
40578
40579         Tests for module 'dup3'.
40580         * modules/dup3-tests: New file.
40581         * tests/test-dup3.c: New file.
40582
40583         New module 'dup3'.
40584         * lib/unistd.in.h (dup3): New declaration.
40585         * lib/dup3.c: New file.
40586         * m4/dup3.m4: New file.
40587         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_DUP3 and
40588         HAVE_DUP3.
40589         * modules/unistd (Makefile.am): Substitute GNULIB_DUP3 and HAVE_DUP3.
40590         * modules/dup3: New file.
40591         * doc/glibc-functions/dup3.texi: Mention the new module.
40592
40593 2009-08-23  Bruno Haible  <bruno@clisp.org>
40594
40595         Tweak the dup2 test.
40596         * tests/test-dup2.c (main): Create the test file empty. Verify that an
40597         out-of-range fd yields EBADF. Verify that after writing to /dev/null,
40598         the test file is still empty. Fix argument order of lseek.
40599
40600 2009-08-23  Bruno Haible  <bruno@clisp.org>
40601
40602         Avoid test link errors when the modules getopt-gnu, gettext are used.
40603         * modules/getopt-posix-tests (Makefile.am): Define test_getopt_LDADD.
40604         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
40605
40606 2009-08-23  Bruno Haible  <bruno@clisp.org>
40607
40608         Fix getdtablesize() on mingw.
40609         * lib/getdtablesize.c (getdtablesize): Implement differently.
40610         * lib/unistd.in.h (getdtablesize): Improve comment.
40611
40612 2009-08-23  Bruno Haible  <bruno@clisp.org>
40613
40614         New module 'mkostemp'.
40615         Based on Ulrich Drepper's 2007-08-10 change in glibc.
40616         * lib/stdlib.in.h (mksotemp): New declaration.
40617         * lib/mkostemp.c: New file, from glibc with modifications.
40618         * lib/tempname.h (GT_FILE): Remove outdated comment.
40619         (gen_tempname): Add flags argument.
40620         * lib/tempname.c (__GT_BIGFILE): Remove macro.
40621         (__GT_FILE): Map to 1.
40622         (small_open, large_open): Remove macros.
40623         (__gen_tempname): Add flags argument. Remove code for __GT_BIGFILE.
40624         * lib/mkstemp.c (mkstemp): Update.
40625         * lib/mkdtemp.c (mkdtemp): Likewise.
40626         * m4/mkostemp.m4: New file.
40627         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_MKOSTEMP,
40628         HAVE_MKOSTEMP.
40629         * modules/stdlib (Makefile.am): Substitute GNULIB_MKOSTEMP,
40630         HAVE_MKOSTEMP.
40631         * modules/mkostemp: New file, based on modules/mkstemp.
40632         * doc/glibc-functions/mkostemp.texi: Mention the new module.
40633         * NEWS: Mention the change.
40634
40635 2009-08-23  Bruno Haible  <bruno@clisp.org>
40636
40637         * lib/pipe2.c (pipe2): Support O_TEXT, O_BINARY on all platforms.
40638         Reported by Eric Blake.
40639
40640 2009-08-23  Bruno Haible  <bruno@clisp.org>
40641
40642         * lib/pipe2.c (pipe2): Fix test of fcntl's return value.
40643         Reported by Eric Blake.
40644
40645 2009-08-23  Bruno Haible  <bruno@clisp.org>
40646
40647         * modules/fchdir (Depends-on): Use fcntl-h instead of fcntl.
40648         * modules/pipe2 (Depends-on): Likewise.
40649
40650 2009-08-23  Eric Blake  <ebb9@byu.net>
40651
40652         fcntl-h: add O_TTY_INIT support
40653         * lib/fcntl.in.h (O_TTY_INIT): Support another POSIX macro.
40654         * tests/test-fcntl-h.c (o): Test it.
40655         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
40656
40657         fcntl-h: rename from fcntl, in preparation for fcntl(2)
40658         * modules/fcntl: Move <fcntl.h> header replacement...
40659         * modules/fcntl-h: ...to new name, so as not to collide with
40660         like-named function.
40661         * tests/test-fcntl.c: Rename...
40662         * tests/test-fcntl-h.c: ...to this.  Test FD_CLOEXEC.
40663         * modules/fcntl-tests: Rename...
40664         * modules/fcntl-h-tests: ...to this.  Update test file name.
40665         * modules/chdir-long (Depends-on): Update clients.
40666         * modules/chdir-safer (Depends-on): Likewise.
40667         * modules/fcntl-safer (Depends-on): Likewise.
40668         * modules/fts (Depends-on): Likewise.
40669         * modules/mkancesdirs (Depends-on): Likewise.
40670         * modules/mkdir-p (Depends-on): Likewise.
40671         * modules/open (Depends-on): Likewise.
40672         * modules/savewd (Depends-on): Likewise.
40673         * MODULES.html.sh (systems lacking POSIX:2008): Update name.
40674         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
40675
40676 2009-08-22  Bruno Haible  <bruno@clisp.org>
40677
40678         * modules/binary-io (License): Relicense under LGPL.
40679         * modules/pipe2 (License): Likewise.
40680
40681 2009-08-22  Bruno Haible  <bruno@clisp.org>
40682
40683         * lib/pipe-filter-ii.c (pipe_filter_ii_execute): Fix test of fcntl's
40684         return value.
40685         * lib/pipe-filter-gi.c (filter_init): Likewise.
40686         Reported by Eric Blake.
40687
40688 2009-08-22  Bruno Haible  <bruno@clisp.org>
40689
40690         * lib/pipe.c (create_pipe): Use pipe2 instead of _pipe.
40691         * modules/pipe (Depends-on): Add pipe2.
40692
40693 2009-08-22  Bruno Haible  <bruno@clisp.org>
40694
40695         Tests for module 'pipe2'.
40696         * modules/pipe2-tests: New file.
40697         * tests/test-pipe2.c: New file.
40698
40699         New module 'pipe2'.
40700         * lib/unistd.in.h (pipe2): New declaration.
40701         * lib/pipe2.c: New file.
40702         * m4/pipe2.m4: New file.
40703         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_PIPE2 and
40704         HAVE_PIPE2.
40705         * modules/unistd (Makefile.am): Substitute GNULIB_PIPE2 and HAVE_PIPE2.
40706         * modules/pipe2: New file.
40707         * doc/glibc-functions/pipe2.texi: Mention the new module.
40708
40709 2009-08-22  Bruno Haible  <bruno@clisp.org>
40710
40711         Reference some new glibc functions.
40712         * doc/glibc-functions/accept4.texi: New file.
40713         * doc/glibc-functions/dup3.texi: New file.
40714         * doc/glibc-functions/mkostemp.texi: New file.
40715         * doc/glibc-functions/pipe2.texi: New file.
40716         * doc/gnulib.texi (Glibc stdlib.h): Refer to mkostemp.
40717         (Glibc sys/socket.h): Refer to accept4.
40718         (Glibc unistd.h): Refer to dup3, pipe2.
40719         Reported by Eric Blake.
40720
40721 2009-08-22  Jim Meyering  <meyering@redhat.com>
40722             Bruno Haible  <bruno@clisp.org>
40723
40724         annotate automake snippets with $(AM_V_GEN) and $(AM_V_at)
40725         This makes it so packages using automake-1.11's silent-rules option
40726         can print e.g., a single "GEN    configmake.h" line, rather than
40727         the 30+ statements that perform the job.  If you want to see the
40728         actual commands, you can still run "make V=1".
40729         * modules/alloca-opt: Add $(AM_V_GEN) and $(AM_V_at) prefixes
40730         so that make output is abbreviated when those variables are defined
40731         appropriately.
40732         * modules/argz: Likewise.
40733         * modules/arpa_inet: Likewise.
40734         * modules/byteswap: Likewise.
40735         * modules/configmake: Likewise.
40736         * modules/dirent: Likewise.
40737         * modules/errno: Likewise.
40738         * modules/fcntl: Likewise.
40739         * modules/float: Likewise.
40740         * modules/fnmatch: Likewise.
40741         * modules/getopt-posix: Likewise.
40742         * modules/glob: Likewise.
40743         * modules/iconv_open: Likewise.
40744         * modules/inttypes: Likewise.
40745         * modules/localcharset: Likewise.
40746         * modules/locale: Likewise.
40747         * modules/math: Likewise.
40748         * modules/netdb: Likewise.
40749         * modules/netinet_in: Likewise.
40750         * modules/poll: Likewise.
40751         * modules/posix_spawnp-tests: Likewise.
40752         * modules/sched: Likewise.
40753         * modules/search: Likewise.
40754         * modules/selinux-h: Likewise.
40755         * modules/signal: Likewise.
40756         * modules/spawn: Likewise.
40757         * modules/stdarg: Likewise.
40758         * modules/stdbool: Likewise.
40759         * modules/stddef: Likewise.
40760         * modules/stdint: Likewise.
40761         * modules/stdio: Likewise.
40762         * modules/stdlib: Likewise.
40763         * modules/string: Likewise.
40764         * modules/strings: Likewise.
40765         * modules/sys_file: Likewise.
40766         * modules/sys_ioctl: Likewise.
40767         * modules/sys_select: Likewise.
40768         * modules/sys_socket: Likewise.
40769         * modules/sys_stat: Likewise.
40770         * modules/sys_time: Likewise.
40771         * modules/sys_times: Likewise.
40772         * modules/sys_utsname: Likewise.
40773         * modules/sys_wait: Likewise.
40774         * modules/sysexits: Likewise.
40775         * modules/time: Likewise.
40776         * modules/unistd: Likewise.
40777         * modules/wchar: Likewise.
40778         * modules/wctype: Likewise.
40779
40780 2009-08-22  Jim Meyering  <meyering@redhat.com>
40781
40782         announce-gen: detect write failure
40783         * build-aux/announce-gen: Add Coda at end.
40784         Remove equivalent-but-more-verbose block at top.
40785
40786 2009-08-19  Akim Demaille  <demaille@gostai.com>
40787
40788         bootstrap: --help to stdout.
40789         * bootstrap (usage): Don't send --help to stderr.
40790         Use a here doc instead of a long string.
40791
40792 2009-08-21  Eric Blake  <ebb9@byu.net>
40793
40794         test-popen-safer: split from test-popen
40795         * tests/test-popen.c (main): Move...
40796         * tests/test-popen.h: ...into new file.
40797         * tests/test-popen-safer2.c: New file.
40798         * modules/popen-tests (Files): Add test-popen.h.
40799         * modules/popen-safer-tests (Files): Add test-popen-safer2.c.
40800         Suggested by Bruno Haible.
40801
40802         test-fcntl-safer: split from test-open
40803         * tests/test-open.c (main): Move...
40804         * tests/test-open.h: ...into new file.
40805         * tests/test-fcntl-safer.c: New file.
40806         * modules/open-tests (Files): Add test-open.h.
40807         * modules/fcntl-safer-tests: New file.
40808         Suggested by Bruno Haible.
40809
40810         test-fopen-safer: split from test-fopen
40811         * tests/test-fopen.c (main): Move...
40812         * tests/test-fopen.h: ...into new file.
40813         * tests/test-fopen-safer.c: New file.
40814         * modules/fopen-tests (Files): Add test-fopen.h.
40815         * modules/fopen-safer-tests: New file.
40816         Suggested by Bruno Haible.
40817
40818 2009-08-21  Paolo Bonzini  <bonzini@gnu.org>
40819
40820         popen-safer: test O_CLOEXEC at run-time.
40821         * lib/popen-safer.c: Test O_CLOEXEC at run-time.
40822
40823 2009-08-21  Paolo Bonzini  <bonzini@gnu.org>
40824
40825         fcntl: move more flags to the header
40826         * lib/cloexec.c: Do not define FD_CLOEXEC here.
40827         * lib/popen-safer.c: Do not alias O_NOINHERIT to O_CLOEXEC here.
40828         * lib/fcntl.in.h: Do both things here.
40829
40830 2009-08-21  Jim Meyering  <meyering@redhat.com>
40831
40832         consistently remove $@-t before redirecting to it
40833         * modules/argz: Remove $@-t and $@ before redirecting to the former.
40834         * modules/alloca-opt: Likewise.
40835         * modules/byteswap: Likewise.
40836         * modules/fnmatch: Likewise.
40837         * modules/getopt-posix: Likewise.
40838         * modules/glob: Likewise.
40839         * modules/poll: Likewise.
40840         * modules/posix_spawnp-tests: Likewise.
40841         * modules/sys_socket: Likewise.
40842         * modules/sysexits: Likewise.
40843
40844 2009-08-21  Eric Blake  <ebb9@byu.net>
40845
40846         popen: simplify access to original popen
40847         * lib/popen.c (rpl_popen): No need to worry about popen being a
40848         macro.
40849         Reported by Bruno Haible.
40850
40851 2009-08-20  Eric Blake  <ebb9@byu.net>
40852
40853         build: avoid some compiler warnings
40854         * lib/selinux-at.h: Use dir_fd, not dirfd, to avoid shadowing.
40855         * lib/exclude.c (fnmatch_pattern_has_wildcards): Use correct
40856         type.
40857         (new_exclude_segment, excluded_file_pattern_p)
40858         (excluded_file_name_p): Reduce scope.
40859         * lib/vasnprintf.c (decimal_point_char): Avoid warning on
40860         old-style declaration.
40861
40862 2009-08-20  Simon Josefsson  <simon@josefsson.org>
40863
40864         * tests/test-exclude1.sh: Handle Windows EOL.
40865         * tests/test-exclude2.sh: Likewise.
40866         * tests/test-exclude3.sh: Likewise.
40867         * tests/test-exclude4.sh: Likewise.
40868         * tests/test-exclude5.sh: Likewise.
40869         * tests/test-exclude6.sh: Likewise.
40870         * tests/test-exclude7.sh: Likewise.
40871
40872 2009-08-19  Akim Demaille  <demaille@gostai.com>
40873
40874         bootstrap: find sha1sum when named gsha1sum.
40875         * bootstrap (find_tool): New.
40876         ($SHA1SUM): New.
40877         Use it.
40878
40879 2009-08-20  Jim Meyering  <meyering@redhat.com>
40880
40881         maint.mk: _header_without_use: fix a quoting bug and remove a bash'ism
40882         * top/maint.mk (_header_without_use): Use "\\\\", not "\\" in the sed
40883         expression that converts "." in a file name to "\." in the resulting
40884         regexp.  Start with a dummy statement, so that prior shell variable
40885         definitions are expanded portably.  Reported by Simon Josefsson.
40886
40887 2009-08-20  Paolo Bonzini  <bonzini@gnu.org>
40888
40889         Fix polling for writeability of a screen buffer.
40890         * lib/poll.c: Distinguish input and screen buffers for the
40891         Win32 implementation.
40892         * lib/select.c: Likewise.
40893
40894 2009-08-19  Eric Blake  <ebb9@byu.net>
40895
40896         popen-safer: prevent popen from clobbering std descriptors
40897         * modules/popen-safer: New file.
40898         * lib/popen-safer.c: Likewise.
40899         * m4/stdio-safer.m4 (gl_POPEN_SAFER): New macro.
40900         * lib/stdio--.h (popen): Provide override.
40901         * lib/stdio-safer.h (popen_safer): Provide declaration.
40902         * tests/test-popen.c (includes): Partially test this.
40903         * modules/popen-safer-tests: New file, for more tests.
40904         * tests/test-popen-safer.c: Likewise.
40905         * MODULES.html.sh (file stream based Input/Output): Mention it.
40906
40907         tests: test some of the *-safer modules
40908         * modules/fopen-safer (Depends-on): Add fopen.
40909         * modules/fcntl-safer (Depends-on): Add fcntl.
40910         * modules/stdlib-safer (Depends-on): Add stdlib.
40911         (configure.ac): Set indicator.
40912         * modules/unistd-safer (configure.ac): Likewise.
40913         * modules/tmpfile-safer (configure.ac): Likewise.
40914         (Depends-on): Add tmpfile.
40915         * lib/stdio--.h (fopen, tmpfile): Don't override unless module is
40916         active.
40917         * tests/test-fopen.c (includes): Test safer versions when they are
40918         in use.
40919         * tests/test-open.c (includes): Likewise.
40920
40921         popen: fix cygwin 1.5 bug when stdin closed
40922         * doc/posix-functions/popen.texi (popen): Document cygwin bugs.
40923         * modules/popen: New file.
40924         * modules/popen-tests: Likewise.
40925         * tests/test-popen.c: Likewise.
40926         * m4/popen.m4: Likewise.
40927         * lib/popen.c: Likewise.
40928         * lib/stdio.in.h (popen): New declaration.
40929         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add popen.
40930         * modules/stdio (Makefile.am): Likewise.
40931         * MODULES.html.sh (systems lacking POSIX:2008): Mention it.
40932
40933 2009-08-17  Joel E. Denny  <jdenny@clemson.edu>
40934
40935         maint.mk: give full control over update-copyright exclusions
40936         * top/maint.mk (VC_LIST_EXCEPT): Instead of ChangeLog, use
40937         ${VC_LIST_EXCEPT_DEFAULT-ChangeLog} as the default exclusion.
40938         (update-copyright): Don't force inclusion of top-level
40939         ChangeLog.  Don't force exclusion of all COPYING files, but make
40940         them the default exclusion instead.
40941
40942 2009-08-16  Bruno Haible  <bruno@clisp.org>
40943
40944         Fix test failures on Solaris 10.
40945         * tests/uniconv/test-u8-conv-from-enc.c (main): Disable autodetect_jp
40946         tests when Solaris iconv() is used.
40947         * tests/uniconv/test-u16-conv-from-enc.c (main): Likewise.
40948         * tests/uniconv/test-u32-conv-from-enc.c (main): Likewise.
40949         * tests/uniconv/test-u8-strconv-from-enc.c (main): Likewise.
40950         * tests/uniconv/test-u16-strconv-from-enc.c (main): Likewise.
40951         * tests/uniconv/test-u32-strconv-from-enc.c (main): Likewise.
40952
40953 2009-08-16  Bruno Haible  <bruno@clisp.org>
40954
40955         Fix test failures on Solaris 10.
40956         * tests/test-pipe-filter-ii1.sh: Determine the filename of a working
40957         'tr' program and pass it as first argument.
40958         * tests/test-pipe-filter-gi1.sh: Likewise.
40959         * tests/test-pipe-filter-ii1.c (main): Except the filename of a 'tr'
40960         program as first argument.
40961         * tests/test-pipe-filter-gi1.c (main): Likewise.
40962
40963 2009-08-16  Eric Blake  <ebb9@byu.net>
40964
40965         fpurge: fix previous commits
40966         * modules/fpurge (Makefile.am): Make replacement conditional,
40967         partially reverting 2007-04-29 change; missed in previous
40968         attempt.
40969         * m4/fpurge.m4 (gl_FUNC_FPURGE): Also compile fpurge.c when fpurge
40970         is missing.
40971
40972 2009-08-16  Bruno Haible  <bruno@clisp.org>
40973
40974         Clarify fpurge's effect on the file position.
40975         * lib/stdio.in.h (fpurge): Specify the file position after fpurge.
40976         * tests/test-fpurge.c (main): Make a second pass for checking the file
40977         position.
40978
40979 2009-08-16  Bruno Haible  <bruno@clisp.org>
40980
40981         * m4/fpurge.m4 (gl_FUNC_FPURGE): Don't compile fpurge.c if only the
40982         declaration of fpurge is missing.
40983         * tests/test-fpurge.c (main): Check that the file has not more contents
40984         than expected. Close the file before removing it.
40985
40986 2009-08-15  Eric Blake  <ebb9@byu.net>
40987
40988         fpurge: don't wrap working cygwin implementation
40989         * lib/fpurge.c (fpurge): Fix comment typo.
40990         * m4/fpurge.m4 (gl_FUNC_FPURGE): Detect BSD bug, allowing cygwin
40991         1.7 to avoid replacement.
40992         * tests/test-fpurge.c (main): Enhance test.
40993
40994 2009-08-15  Eric Blake  <ebb9@byu.net>
40995         and Jim Meyering  <meyering@redhat.com>
40996
40997         test-update-copyright: skip if perl is insufficient
40998         * tests/test-update-copyright.sh: Failure to run maintainer tool
40999         should not cause testsuite failure on cygwin 1.5.
41000
41001 2009-08-14  Eric Blake  <ebb9@byu.net>
41002
41003         doc: mention more functions added in cygwin 1.7.0
41004         * doc/posix-headers/limits.texi (limits.h): Update for recent
41005         cygwin additions.
41006         * doc/posix-headers/wordexp.texi (wordexp.h): Likewise.
41007         * doc/posix-functions/wordexp.texi (wordexp): Likewise.
41008         * doc/posix-functions/wordfree.texi (wordfree): Likewise.
41009         * doc/posix-functions/setlocale.texi (setlocale): Likewise.
41010         * doc/posix-functions/nl_langinfo.texi (nl_langinfo): Likewise.
41011
41012 2009-08-14  Eric Blake  <ebb9@byu.net>
41013
41014         maint.mk: simplify update-copyright rule
41015         * top/maint.mk (update-copyright-local): Delete, and document how
41016         to do it in cfg.mk instead.
41017         (update-copyright-exclude-regexp): Delete, and document how to do
41018         it in .x-update-copyright instead.
41019         (update-copyright): Simplify, thanks to VC_LIST_EXCEPT.  Don't
41020         exclude ChangeLog.
41021
41022 2009-08-14  Bruno Haible  <bruno@clisp.org>
41023
41024         * m4/wchar.m4 (gl_WCHAR_H): Undo invalid optimization in last commit.
41025
41026 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
41027
41028         maint.mk: support update-copyright-env
41029         * top/maint.mk (update-copyright-env): Define place-holder.
41030         (update-copyright): Expand $(update-copyright-env) before
41031         invoking update-copyright.
41032
41033 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
41034
41035         update-copyright: implement forced reformatting
41036         * build-aux/update-copyright: Implement and document
41037         UPDATE_COPYRIGHT_FORCE.
41038         * tests/test-update-copyright.sh: Test it.
41039
41040 2009-08-14  Eric Blake  <ebb9@byu.net>
41041         and Bruno Haible  <bruno@clisp.org>
41042
41043         stddef: fix NetBSD 5.0 NULL bug, rather than working around it
41044         * tests/test-locale.c: Revert previous patch related to NULL.
41045         * tests/test-stdio.c: Likewise.
41046         * tests/test-stdlib.c: Likewise.
41047         * tests/test-string.c: Likewise.
41048         * tests/test-unistd.c: Likewise.
41049         * modules/time-tests (Depends-on): Add verify.
41050         * modules/wchar-tests (Depends-on): Likewise.
41051         * tests/test-time.c: Test for NULL compliance.
41052         * tests/test-wchar.c: Likewise.
41053         * modules/locale (Depends-on): Add stddef.
41054         * modules/stdio (Depends-on): Likewise.
41055         * modules/stdlib (Depends-on): Likewise.
41056         * modules/string (Depends-on): Likewise.
41057         * modules/time (Depends-on): Likewise.
41058         * modules/unistd (Depends-on): Likewise.
41059         * modules/wchar (Depends-on): Likewise.
41060         * lib/locale.in.h (includes): Use <stddef.h> to fix NULL.
41061         * lib/stdlib.in.h (includes): Likewise.
41062         * lib/string.in.h (includes): Likewise.
41063         * lib/time.in.h (includes): Likewise.
41064         * lib/unistd.in.h (includes): Likewise.
41065         * m4/locale_h.m4 (gl_LOCALE_H): Replace locale.h if stddef.h was
41066         replaced.
41067         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
41068         * m4/stddef_h.m4: New file.
41069         * modules/stddef: Likewise.
41070         * lib/stddef.in.h: Likewise.
41071         * modules/stddef-tests: Likewise.
41072         * tests/test-stddef.c: Likewise.
41073         * MODULES.html.sh (Basic types <stddef.h>): Mention new module.
41074         * doc/posix-headers/stddef.texi (stddef.h): Document the bug.
41075         * doc/posix-headers/locale.texi (locale.h): Likewise.
41076         * doc/posix-headers/stdio.texi (stdio.h): Likewise.
41077         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
41078         * doc/posix-headers/string.texi (string.h): Likewise.
41079         * doc/posix-headers/time.texi (time.h): Likewise.
41080         * doc/posix-headers/unistd.texi (unistd.h): Likewise.
41081         * doc/posix-headers/wchar.texi (wchar.h): Likewise.
41082
41083 2009-08-14  Eric Blake  <ebb9@byu.net>
41084
41085         doc: improve git diff of texinfo files
41086         * .gitattributes: Add rule for *.texi files, with hint on how to
41087         use it.
41088         Copied from m4, and based on a report by Bruno Haible.
41089
41090 2009-08-14  Bruno Haible  <bruno@clisp.org>
41091
41092         Disable multithread support by default on Cygwin 1.5.x for real.
41093         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): Fix last commit.
41094
41095 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
41096
41097         update-copyright: much ado about intervals
41098         * build-aux/update-copyright: Implement and document
41099         UPDATE_COPYRIGHT_USE_INTERVALS to control expansion and collapse
41100         of copyright year intervals.
41101         Also, document UPDATE_COPYRIGHT_YEAR.
41102         * tests/test-update-copyright.sh: Test it.
41103
41104         update-copyright: convert 2-digit to 4-digit years
41105         * build-aux/update-copyright: Implement and document.
41106         * tests/test-update-copyright.sh: Update.
41107
41108 2009-08-14  Jim Meyering  <meyering@redhat.com>
41109
41110         test-exclude: avoid coreutils "make check" failure
41111         * tests/test-exclude.c (ARGMATCH_DIE_DECL) [ARGMATCH_DIE_DECL]: Define,
41112         just as in test-argmatch.c.
41113
41114 2009-08-13  Eric Blake  <ebb9@byu.net>
41115
41116         test-dup2: fix bad assumption
41117         * tests/test-dup2.c (main): Tolerate leaked fds from environment.
41118         Reported by Peter Breitenlohner <peb@mppmu.mpg.de>.
41119
41120         test-version-etc: fix CRLF portability issue
41121         * tests/test-version-etc.sh: Use tr, not sed, as not all sed
41122         recognize \r.
41123         * tests/test-argp-version-etc-1.sh: Likewise.
41124
41125         getopt: update client modules
41126         * modules/argp (Depends-on): Use getopt-gnu.
41127         * modules/git-merge-changelog (Depends-on): Likewise.
41128         * modules/long-options (Depends-on): Likewise.
41129         * modules/xstrtol (Depends-on): Likewise.
41130
41131 2009-08-13  Simon Josefsson  <simon@josefsson.org>
41132
41133         * tests/test-version-etc.sh: Don't fail on different
41134         project/version.  Don't fail on CRLF differences.  Rewrite to use
41135         multiple -e instead of multiple sed forks, suggested by Eric Blake
41136         <ebb9@byu.net>.
41137         * tests/test-argp-version-etc-1.sh: Likewise.
41138
41139 2009-08-13  Simon Josefsson  <simon@josefsson.org>
41140
41141         * tests/test-version-etc.sh: Don't fail on different
41142         project/version.
41143
41144 2009-08-12  Bruno Haible  <bruno@clisp.org>
41145
41146         Tests for modules 'getopt-posix', 'getopt-gnu'.
41147         * modules/getopt-posix-tests: New file.
41148         * tests/test-getopt.c: New file.
41149         * tests/test-getopt.h: New file.
41150         * tests/test-getopt_long.h: New file.
41151
41152         New modules 'getopt-posix', 'getopt-gnu'.
41153         * modules/getopt-gnu: New file, renamed from modules/getopt.
41154         * modules/getopt-posix: New file.
41155         * modules/getopt: Turn into an obsolete alias for getopt-gnu.
41156         * m4/getopt.m4 (gl_FUNC_GETOPT_POSIX, gl_FUNC_GETOPT_GNU): New macros.
41157         (gl_GETOPT): Remove macro.
41158         (gl_GETOPT_CHECK_HEADERS): Do some checks only for gl_FUNC_GETOPT_GNU.
41159         Disable the test against BSD systems that declare optreset. Test
41160         against mingw bug. Test against lack of support of optional arguments
41161         on many platforms.
41162         * doc/glibc-headers/getopt.texi: Update module name and list of
41163         relevant platforms.
41164         * doc/posix-functions/getopt.texi: Mention modules 'getopt-posix' and
41165         'getopt-gnu' and more portability problems.
41166         * NEWS: Mention the changes.
41167
41168 2009-08-12  Bruno Haible  <bruno@clisp.org>
41169
41170         Ensure that optarg etc. get declared by <unistd.h>.
41171         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Require
41172         AC_USE_SYSTEM_EXTENSIONS.
41173         * modules/getopt (Depends-on): Add 'extensions'.
41174
41175 2009-08-12  Bruno Haible  <bruno@clisp.org>
41176
41177         Avoid test link errors.
41178         * modules/pipe-filter-ii-tests (Makefile.am): Define
41179         test_pipe_filter_ii1_LDADD and test_pipe_filter_ii2_main_LDADD.
41180         * modules/pipe-filter-gi-tests (Makefile.am): Define
41181         test_pipe_filter_gi1_LDADD and test_pipe_filter_gi2_main_LDADD.
41182         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
41183
41184 2009-08-12  Bruno Haible  <bruno@clisp.org>
41185
41186         * m4/getopt.m4 (gl_REPLACE_GETOPT): New macro, was called
41187         gl_GETOPT_SUBSTITUTE before.
41188         (gl_GETOPT): Use it.
41189         * m4/argp.m4 (gl_ARGP): Update.
41190         Reported by Sergey Poznyakoff.
41191
41192         * m4/getopt.m4: Reorder macros.
41193         (gl_GETOPT): Inline gl_GETOPT_SUBSTITUTE.
41194         (gl_GETOPT_SUBSTITUTE): Remove macro.
41195
41196 2009-08-12  Sergey Poznyakoff  <gray@gnu.org.ua>
41197
41198         Minor improvement in gitlog-to-changelog
41199
41200         * build-aux/gitlog-to-changelog: New option `--format' makes
41201         output format string configurable.
41202
41203 2009-08-12  Sergey Poznyakoff  <gray@gnu.org.ua>
41204
41205         Optimize exclude: use hash tables for non-wildcard patterns.
41206
41207         * lib/exclude.c: Include hash.h and mbuiter.h
41208         (struct exclude_pattern, exclude_segment): New data types.
41209         (struct exclude): Rewrite.
41210         (fnmatch_pattern_has_wildcards): New function.
41211         (new_exclude_segment, free_exclude_segment): New functions.
41212         (excluded_file_pattern_p, excluded_file_name_p): New functions.
41213         (excluded_file_name, add_exclude): Rewrite using new struct exclude.
41214         * lib/exclude.h (is_fnmatch_pattern): New prototype.
41215         * modules/exclude: Depend on hash and mbuiter.
41216
41217         * modules/exclude-tests: New file.
41218         * tests/test-exclude.c: New file.
41219         * tests/test-exclude1.sh: New file.
41220         * tests/test-exclude2.sh: New file.
41221         * tests/test-exclude3.sh: New file.
41222         * tests/test-exclude4.sh: New file.
41223         * tests/test-exclude5.sh: New file.
41224         * tests/test-exclude6.sh: New file.
41225         * tests/test-exclude7.sh: New file.
41226
41227 2009-08-12  Bruno Haible  <bruno@clisp.org>
41228
41229         Ensure that getopt() gets declared by <unistd.h>.
41230         * lib/unistd.in.h: Conditionally include getopt.h.
41231         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): Require gl_UNISTD_H_DEFAULTS.
41232         Set GNULIB_UNISTD_H_GETOPT.
41233         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
41234         GNULIB_UNISTD_H_GETOPT.
41235         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_GETOPT.
41236
41237 2009-08-12  Bruno Haible  <bruno@clisp.org>
41238
41239         Clarify logic.
41240         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS, gl_GETOPT_IFELSE): Use
41241         gl_replace_getopt instead of GETOPT_H.
41242
41243 2009-08-12  Bruno Haible  <bruno@clisp.org>
41244
41245         * m4/getopt.m4: Add comments.
41246
41247 2009-08-12  Bruno Haible  <bruno@clisp.org>
41248
41249         Disable multithread support by default on Cygwin 1.5.x.
41250         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): On Cygwin 1.5.x and older,
41251         set gl_use_threads=no if not specified otherwise.
41252
41253 2009-08-11  Bruno Haible  <bruno@clisp.org>
41254
41255         Avoid compilation error on NetBSD 5.0.
41256         * tests/test-locale.c: Write sizeof (NULL) instead of sizeof NULL.
41257         * tests/test-stdio.c: Likewise.
41258         * tests/test-stdlib.c: Likewise.
41259         * tests/test-string.c: Likewise.
41260         * tests/test-unistd.c: Likewise.
41261         Reported by Greg Troxel <gdt@ir.bbn.com>
41262         at <https://savannah.gnu.org/support/?106973>.
41263
41264 2009-08-11  Bruno Haible  <bruno@clisp.org>
41265
41266         * modules/dup2-tests (Depends-on): Remove close.
41267
41268         Undo 2009-07-19 commit.
41269         * modules/acl-tests (Depends-on): Remove close.
41270         * modules/binary-io-tests (Depends-on): Likewise.
41271         * modules/closein-tests (Depends-on): Likewise.
41272         * modules/flock-tests (Depends-on): Likewise.
41273         * modules/fsync-tests (Depends-on): Likewise.
41274         * modules/lseek-tests (Depends-on): Likewise.
41275         * modules/pipe-tests (Depends-on): Likewise.
41276         * modules/posix_spawn-tests (Depends-on): Likewise.
41277         * modules/posix_spawnp-tests (Depends-on): Likewise.
41278         * modules/stat-time-tests (Depends-on): Likewise.
41279         * modules/yesno-tests (Depends-on): Likewise.
41280
41281 2009-08-10  Bruno Haible  <bruno@clisp.org>
41282
41283         * lib/vasnprintf.c (DCHAR_SET): Undefine at the end.
41284
41285 2009-08-10  Bruno Haible  <bruno@clisp.org>
41286
41287         Fix a gcc warning.
41288         * lib/write.c (rpl_write): Cast result of _get_osfhandle.
41289
41290 2009-08-10  Bruno Haible  <bruno@clisp.org>
41291
41292         Don't optimize AC_LIBOBJs, as they may appear in different contexts.
41293         * m4/close.m4 (gl_REPLACE_CLOSE): Execute AC_LIBOBJ unconditionally,
41294         not only the first time.
41295         * m4/fclose.m4 (gl_REPLACE_FCLOSE): Likewise.
41296         * m4/open.m4 (gl_REPLACE_OPEN): Likewise.
41297         * m4/strstr.m4 (gl_FUNC_STRSTR): Execute AC_LIBOBJ when REPLACE_STRSTR
41298         is 1, not only the the first time.
41299
41300 2009-08-10  Bruno Haible  <bruno@clisp.org>
41301
41302         Make it possible to use module 'gethostname' without module 'close'.
41303         * lib/unistd.in.h (close): Evoke a link error only if
41304         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS is set.
41305         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
41306         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
41307         * modules/unistd (Makefile.am): Substitute
41308         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
41309         * lib/sys_ioctl.in.h (ioctl): Evoke a link error only if
41310         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS is set.
41311         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H_DEFAULTS): Initialize
41312         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
41313         * modules/sys_ioctl (Makefile.am): Substitute
41314         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
41315         * modules/socket (configure.ac): On native Windows, set
41316         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS and
41317         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
41318         Reported by Sam Steingold <sds@gnu.org>.
41319
41320 2009-08-10  Bruno Haible  <bruno@clisp.org>
41321
41322         * m4/close.m4 (gl_FUNC_CLOSE): Add comment.
41323         * modules/ioctl (configure.ac): Likewise.
41324
41325 2009-08-10  Bruno Haible  <bruno@clisp.org>
41326
41327         Avoid collision between gnulib wrapper and libintl wrapper.
41328         * lib/stdio-write.c (printf): Don't define if a printf wrapper is
41329         already defined in intl/printf.c.
41330         (vprintf): Test REPLACE_VPRINTF_POSIX, not REPLACE_VFPRINTF_POSIX.
41331         (vfprintf): Test REPLACE_VFPRINTF_POSIX, not REPLACE_VPRINTF_POSIX.
41332
41333 2009-08-09  Bruno Haible  <bruno@clisp.org>
41334
41335         Make <sys/select.h> really self-contained, also on Solaris 10.
41336         * lib/sys_select.in.h: Include <string.h>.
41337         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Test also against
41338         Solaris 10 problem.
41339         * tests/test-sys_select.c (main): Add check that FD_ZERO can be used.
41340         * doc/posix-headers/sys_select.texi: Mention the Solaris 10 problem.
41341         Reported by Jim Meyering.
41342
41343 2009-08-09  Bruno Haible  <bruno@clisp.org>
41344
41345         Avoid warnings from 'aclocal' that are due to a use of macro name
41346         AM_XGETTEXT_OPTION that is not defined in automake.
41347         * modules/argp (configure.ac): Hide use of AM_XGETTEXT_OPTION from
41348         automake.
41349         * modules/error (configure.ac): Likewise.
41350         * modules/propername (configure.ac): Likewise.
41351         * modules/vasprintf (configure.ac): Likewise.
41352         * modules/verror (configure.ac): Likewise.
41353         * modules/xprintf (configure.ac): Likewise.
41354         * modules/xvasprintf (configure.ac): Likewise.
41355
41356 2009-08-08  Bruno Haible  <bruno@clisp.org>
41357
41358         Avoid compilation error in C++ mode.
41359         * lib/gettimeofday.c (rpl_gettimeofday): Cast timezone argument.
41360         Reported by Sam Steingold <sds@gnu.org>.
41361
41362 2009-08-08  Bruno Haible  <bruno@clisp.org>
41363
41364         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Define HOST_NAME_MAX also
41365         for the various Unix platforms.
41366         * doc/posix-headers/limits.texi: Update platforms list regarding
41367         HOST_NAME_MAX.
41368         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
41369
41370 2009-08-07  Jim Meyering  <meyering@redhat.com>
41371
41372         selinux-at: fix typo in a comment
41373         * lib/selinux-at.h: s/getfileconat/getfilecon/ in a comment.
41374         Spotted by Paolo Bonzini.
41375
41376         selinux-at: remove redundant m4 code, add documentation
41377         * modules/selinux-at (configure.ac): Remove redundant code.
41378         LIB_SELINUX is already set via the dependent module, selinux-h.
41379         (Include): Add quotes around selinux-at.h.
41380         * lib/selinux-at.h: Add documentation.
41381         Reported by Bruno Haible in
41382         http://marc.info/?l=gnulib-bug&m=124958988300749
41383
41384 2009-08-07  Bruno Haible  <bruno@clisp.org>
41385
41386         Avoid link error on MacOS X 10.3 and 10.4.
41387         * lib/argp-ba.c (argp_program_bug_address): Explicitly zero-initialize
41388         on non-ELF systems.
41389         * lib/argp-pv.c (argp_program_version): Likewise.
41390         Reported by Simon Josefsson.
41391
41392 2009-08-07  Simon Josefsson  <simon@josefsson.org>
41393
41394         * tests/test-version-etc.sh: Use $EXEEXT.
41395
41396 2009-08-06  Joel E. Denny  <jdenny@clemson.edu>
41397
41398         update-copyright: update documentation to point to maint.mk
41399         * build-aux/update-copyright: Here.
41400
41401 2009-08-06  Jim Meyering  <meyering@redhat.com>
41402
41403         maint.mk: support update-copyright-local
41404         * top/maint.mk (update-copyright-local): Define place-holder.
41405         (update-copyright): Depend on $(update-copyright-local).
41406
41407 2009-08-06  Jim Meyering  <meyering@redhat.com>
41408
41409         selinux-at: new module
41410         Initially written for coreutils, this module will soon be
41411         used by findutils, too.
41412         * MODULES.html.sh [Misc]: Add selinux-at.
41413         * lib/selinux-at.h: New file, from coreutils.
41414         * lib/selinux-at.c: Likewise.
41415         * modules/selinux-at: Likewise.
41416         (License): Change from LGPL to GPL, since it depends
41417         on the GPL'd openat module.
41418
41419         doc: update README
41420         * README: Remove references to cogito.
41421         Remove cvs-repo-updating instructions from 2007.
41422         Don't imply that CVS is better if you have limited disk space.
41423
41424 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
41425
41426         update-copyright: support C-style comments
41427         * build-aux/update-copyright: Implement and document.
41428         * tests/test-update-copyright.sh: Test.
41429
41430 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
41431
41432         update-copyright: support omitted "(C)"
41433         * build-aux/update-copyright: Implement and document.  Also,
41434         allow variable whitespace before "(C)".
41435         * tests/test-update-copyright.sh: Test.
41436
41437 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
41438
41439         update-copyright: don't trip on non-FSF copyright statements
41440         * build-aux/update-copyright: Fix so that the first correctly
41441         formatted FSF copyright statement is recognized no matter what
41442         appears before it.  Update documentation.
41443         * tests/test-update-copyright.sh: Test that.
41444
41445 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
41446
41447         update-copyright: clean up code a little
41448         * build-aux/update-copyright: Append "_re" to the name of any
41449         variable holding a regular expression.
41450         Replace "old" and "new" with "stmt" in variable names.
41451         Do not accept 2-digit UPDATE_COPYRIGHT_YEAR, which was not
41452         handled correctly.
41453         Format code more consistently.
41454
41455 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
41456
41457         update-copyright-tests: improve portability
41458         * tests/test-update-copyright.sh: Use cmp if diff cannot handle
41459         -u or /dev/null.  Suggested by Jim Meyering and Eric Blake.
41460
41461 2009-08-03  Joel E. Denny  <jdenny@clemson.edu>
41462
41463         update-copyright: support @copyright{} and &copy;
41464         * build-aux/update-copyright: Implement and document.
41465         * tests/test-update-copyright.sh: Test.
41466
41467 2009-08-04  Jim Meyering  <meyering@redhat.com>
41468
41469         update-copyright-tests: correctly test EOL=\r\n handling
41470         * tests/test-update-copyright.sh: Put \r at the end of some lines
41471         for the dos-eol tests.  Based on a patch by Joel E. Denny.
41472
41473         maint.mk: make update-copyright exclusion list more configurable
41474         * top/maint.mk (update-copyright): Default to excluding COPYING,
41475         but allow an override, in case someone does want to update that file.
41476
41477         maint.mk: don't update copyright date in COPYING
41478         * top/maint.mk (update-copyright): Exclude COPYING.
41479
41480         maint.mk: add a copyright-updating rule
41481         * top/maint.mk (update-copyright): New rule.
41482         Derived from coreutils/Makefile.am.
41483
41484         update-copyright: rename some variables
41485         * build-aux/update-copyright: Rename a few variables for clarity.
41486         Tweak syntax.  List Joel E. Denny as coauthor.
41487
41488 2009-08-03  Joel E. Denny  <jdenny@clemson.edu>
41489
41490         update-copyright: fix bug for 2-digit last year and add tests
41491         * build-aux/update-copyright: Fix bug.
41492         Use UPDATE_COPYRIGHT_YEAR from environment as current year if
41493         specified.
41494         * modules/update-copyright-tests: New
41495         * tests/test-update-copyright.sh: New.
41496
41497 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
41498
41499         update-copyright: handle leading tabs in line prefix
41500         * build-aux/update-copyright: Count leading tabs as 8 spaces
41501         when computing margin.  This helps with the formatting of
41502         ChangeLogs, for example.
41503         Fix documentation a little.
41504
41505 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
41506
41507         update-copyright: support EOL=\r\n
41508         * build-aux/update-copyright: Implement that.
41509
41510 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
41511
41512         update-copyright: automatically format copyright statements
41513         * build-aux/update-copyright: Implement that.
41514         Also, be a little more predictable and safer by always failing
41515         when the full copyright format is not perfectly recognized as an
41516         unbroken whole.  Discussed at
41517         <http://lists.gnu.org/archive/html/bug-gnulib/2009-07/msg00131.html>.
41518         Rewrite documentation.
41519
41520 2009-08-03  Bruno Haible  <bruno@clisp.org>
41521
41522         * m4/iconv.m4 (AM_ICONV): Fix displayed message with autoconf-2.64.
41523
41524 2009-08-02  Bruno Haible  <bruno@clisp.org>
41525
41526         Tests for module 'uname'.
41527         * modules/uname-tests: New file.
41528         * tests/test-uname.c: New file.
41529
41530         New module 'uname'.
41531         * lib/uname.c: New file.
41532         * m4/uname.m4: New file.
41533         * modules/uname: New file.
41534         * doc/posix-functions/uname.texi: Mention the new module.
41535
41536 2009-08-02  Bruno Haible  <bruno@clisp.org>
41537
41538         Tests for module 'sys_utsname'.
41539         * modules/sys_utsname-tests: New file.
41540         * tests/test-sys_utsname.c: New file.
41541
41542         New module 'sys_utsname'.
41543         * lib/sys_utsname.in.h: New file, based on glibc's <sys/utsname.h>.
41544         * m4/sys_utsname_h.m4: New file.
41545         * modules/sys_utsname: New file.
41546         * doc/posix-headers/sys_utsname.texi: Mention the new module.
41547
41548 2009-08-02  Bruno Haible  <bruno@clisp.org>
41549
41550         Implicitly initialize the sockets library.
41551         * lib/gethostname.c: Include sockets.h.
41552         (rpl_gethostname): Invoke gl_sockets_startup.
41553         * lib/socket.c: Include sockets.h.
41554         (rpl_socket): Invoke gl_sockets_startup.
41555         * modules/gethostname (Depends-on): Add sockets.
41556         * modules/socket (Depends-on): Likewise.
41557         * tests/test-poll.c: Don't include sockets.h.
41558         (main): Don't invoke gl_sockets_startup.
41559         * tests/test-select.c: Don't include sockets.h.
41560         (main): Don't invoke gl_sockets_startup.
41561
41562 2009-08-02  Bruno Haible  <bruno@clisp.org>
41563
41564         Allow multiple calls to gl_sockets_startup.
41565         * lib/sockets.c (initialized_sockets_version): New variable.
41566         (gl_sockets_startup): Do nothing if already called for this or a higher
41567         version.
41568         (gl_sockets_cleanup): Reset initialized_sockets_version.
41569
41570 2009-08-03  Simon Josefsson  <simon@josefsson.org>
41571
41572         * tests/test-argp-version-etc-1.sh: Use EXEEXT.  Don't fail on
41573         different project/version.
41574
41575 2009-08-02  Paolo Bonzini  <bonzini@gnu.org>
41576             Bruno Haible  <bruno@clisp.org>
41577
41578         Tests for module 'pipe-filter-gi'.
41579         * modules/pipe-filter-gi-tests: New file.
41580         * tests/test-pipe-filter-gi1.sh: New file.
41581         * tests/test-pipe-filter-gi1.c: New file.
41582         * tests/test-pipe-filter-gi2.sh: New file.
41583         * tests/test-pipe-filter-gi2-main.c: New file.
41584         * tests/test-pipe-filter-gi2-child.c: New file.
41585
41586         New module 'pipe-filter-gi'.
41587         * lib/pipe-filter-gi.c: New file.
41588         * modules/pipe-filter-gi: New file.
41589
41590 2009-08-02  Bruno Haible  <bruno@clisp.org>
41591             Paolo Bonzini  <bonzini@gnu.org>
41592
41593         Tests for module 'pipe-filter-ii'.
41594         * modules/pipe-filter-ii-tests: New file.
41595         * tests/test-pipe-filter-ii1.sh: New file.
41596         * tests/test-pipe-filter-ii1.c: New file.
41597         * tests/test-pipe-filter-ii2.sh: New file.
41598         * tests/test-pipe-filter-ii2-main.c: New file.
41599         * tests/test-pipe-filter-ii2-child.c: New file.
41600
41601         New module 'pipe-filter-ii'.
41602         * lib/pipe-filter.h: New file.
41603         * lib/pipe-filter-ii.c: New file.
41604         * lib/pipe-filter-aux.h: New file.
41605         * modules/pipe-filter-ii: New file.
41606
41607 2009-08-02  Simon Josefsson  <simon@josefsson.org>
41608
41609         * lib/gc-libgcrypt.c: Change copyright to FSF.
41610         * lib/gc-gnulib.c: Likewise.
41611
41612 2009-08-02  Martin Lambers  <marlam@marlam.de>  (tiny change)
41613
41614         * lib/gethostname.c: Include limits.h.
41615
41616 2009-08-02  Simon Josefsson  <simon@josefsson.org>
41617             Bruno Haible  <bruno@clisp.org>
41618
41619         Ensure HOST_NAME_MAX as part of the gethostname module.
41620         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): On native Windows platforms,
41621         define also HOST_NAME_MAX.
41622         * tests/test-gethostname.c: Include <limits.h>.
41623         (main): Check also HOST_NAME_MAX.
41624         * doc/posix-headers/limits.texi: Document the mingw problem.
41625
41626 2009-08-02  Bruno Haible  <bruno@clisp.org>
41627
41628         * lib/gethostname.c (gethostname): Fix handling of large len argument.
41629         Add comments.
41630
41631 2009-03-31  Simon Josefsson  <simon@josefsson.org>
41632
41633         * lib/gethostname.c: Add Windows wrapper.
41634         * m4/gethostname.m4: Look for gethostname in -lws2_32.
41635         * modules/gethostname: Depend on sys_socket & errno, for also
41636         added lib/w32sock.h.  Add GETHOSTNAME_LIB link directive.
41637         * modules/gethostname-tests: Link to @GETHOSTNAME_LIB@.
41638
41639 2009-07-31  Jim Meyering  <meyering@redhat.com>
41640
41641         getloadavg: fix symbol name in comment
41642         * lib/getloadavg.c: Correct a typo I introduced when adding
41643         comments to Matt's change: s/NLIST_POINTER/N_NAME_POINTER/.
41644         Matt Kraai spotted the problem.
41645
41646 2009-07-29  Matt Kraai  <mkraai@beckman.com>
41647
41648         getloadavg: check whether n_name is a pointer, for QNX 6.4.1
41649         * lib/getloadavg.c (getloadavg): Use the strcpy-into-nlist.n_name
41650         code also if ! defined N_NAME_POINTER.
41651         * m4/getloadavg.m4 (gl_GETLOADAVG): Add a link-test for N_NAME_POINTER.
41652         This is required on QNX 6.4.1, where /usr/include/nlist.h exists,
41653         but the n_name member is a 12-byte array.
41654
41655 2009-07-29  Joel E. Denny  <jdenny@clemson.edu>
41656
41657         update-copyright: generalize comment handling
41658         * build-aux/update-copyright: Handle copyright statements
41659         within more comment styles.
41660         Document usage.
41661         Report any file with an external copyright holder or parse failure.
41662
41663 2009-07-29  Jim Meyering  <meyering@redhat.com>
41664
41665         mktime: correct setting of REPLACE_MKTIME
41666         * m4/mktime.m4 (gl_FUNC_MKTIME): Set REPLACE_MKTIME=0, when required.
41667
41668         update-copyright: new module
41669         * modules/update-copyright: New file.
41670         * build-aux/update-copyright: New file.
41671         * MODULES.html.sh (maint+release support): Add update-copyright.
41672
41673 2009-07-27  Bruno Haible  <bruno@clisp.org>
41674
41675         Fix compilation error when <ctime> is used and mktime is replaced.
41676         * lib/time.in.h (mktime): New declaration.
41677         * m4/mktime.m4 (gl_FUNC_MKTIME): Require gl_HEADER_TIME_H_DEFAULTS. Set
41678         REPLACE_MKTIME instead of defining mktime in config.h.
41679         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize REPLACE_MKTIME.
41680         * modules/time (Makefile.am): Substitute REPLACE_MKTIME.
41681         Reported by Ross McFarland <rwmcfa1@neces.com>.
41682
41683 2009-07-27  Bruno Haible  <bruno@clisp.org>
41684
41685         * lib/math.in.h (cosl, logl, sinl): Undefine before declaring it.
41686         Reported by Matt Kraai <mkraai@beckman.com>.
41687
41688 2009-07-25  Jim Meyering  <meyering@redhat.com>
41689
41690         maint.mk: avoid warnings about missing files
41691         * top/maint.mk (PREV_VERSION): Suppress stderr, to hide a
41692         diagnostic when .prev-version does not exist.
41693         (_cfg_mk): Define, so it can be empty when cfg.mk does not exist.
41694         (syntax-check-rules): Use $(_cfg_mk) to avoid a diagnostic about
41695         nonexistent cfg.mk.
41696         Suggestions from Simon Josefsson.
41697
41698 2009-07-25  Bruno Haible  <bruno@clisp.org>
41699
41700         * lib/math.in.h (cosl, logl, sinl): Don't declare if they are already
41701         defined as macros. Needed on QNX 6.4.1.
41702         Reported by Matt Kraai <mkraai@beckman.com>.
41703
41704 2009-07-23  Jim Meyering  <meyering@redhat.com>
41705
41706         maint.mk: invoke "make dist" with a working value of XZ_OPT
41707         * top/maint.mk (vc-dist): Use no "-" in the value of XZ_OPT.
41708
41709 2009-07-22  Matt Kraai  <mkraai@beckman.com>  (tiny change)
41710
41711         Make fseeko.c compile on QNX.
41712         * lib/fseeko.c (rpl_fseeko): Use the numerical value of _MWRITE.
41713
41714 2009-07-22  Peter Simons  <simons@cryp.to>
41715
41716         C++: wrap md2,md5,sha1,etc. function declarations in extern "C" scope
41717         * lib/md2.h [__cplusplus]: Wrap declarations in extern "C" scope.
41718         * lib/md4.h: Likewise.
41719         * lib/md5.h: Likewise.
41720         * lib/sha1.h: Likewise.
41721         * lib/sha256.h: Likewise.
41722         * lib/sha512.h: Likewise.
41723
41724         tests-sha1: don't assign literal string to 'char *' variable
41725         * tests/test-sha1.c (main): Declare locals with "const" to match
41726         attributes of the right hand side.
41727
41728 2009-07-21  Eric Blake  <ebb9@byu.net>
41729
41730         dup2: fix more mingw problems
41731         * lib/dup2.c (rpl_dup2) [_WIN32]: Avoid hanging when duplicating
41732         fd to itself.
41733         * doc/posix-functions/dup2.texi (dup2): Document the bug.
41734         * lib/unistd.in.h (dup2) [REPLACE_FCHDIR]: Avoid name collision.
41735         * lib/fchdir.c (dup2): Manage preprocessor macros correctly.
41736         (rpl_dup2_fchdir): Rename from rpl_dup2, and let dup2 module take
41737         care of mingw bugs.
41738
41739 2009-07-21  Jim Meyering  <meyering@redhat.com>
41740
41741         vc-list-files: avoid failure when /bin/sh is dash
41742         * build-aux/vc-list-files: Avoid a shell portability problem with dash.
41743         On some Debian based systems, /bin/sh is a symlink to dash, and running
41744         this command would omit the "/" following each 'tests' prefix:
41745           dash -x build-aux/vc-list-files -C . tests
41746         That is because bash and dash work differently:
41747           $ for i in bash dash; do $i -c 'a=odd; a=ok b=$a; echo '$i' $b'; done
41748           bash ok
41749           dash odd
41750
41751 2009-07-21  Eric Blake  <ebb9@byu.net>
41752
41753         dup2-tests: test previous patch
41754         * modules/dup2-tests: New file.
41755         * tests/test-dup2.c: Likewise.
41756         * tests/test-open.c (main): Avoid unspecified behavior.
41757         * tests/test-pipe.c (child_main): Use dup2 semantics to simplify
41758         test.
41759
41760         dup2: work around mingw and cygwin 1.5 bug
41761         * m4/dup2.m4 (gl_FUNC_DUP2): Detect mingw bug.
41762         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
41763         * modules/unistd (Makefile.am): Substitute it.
41764         * lib/unistd.in.h (dup2): Declare the replacement.
41765         * lib/dup2.c (dup2) [REPLACE_DUP2]: Implement it.
41766         * doc/posix-functions/dup2.texi (dup2): Document the bugs.
41767         * lib/fchdir.c (rpl_dup2): Don't collide with mingw replacement.
41768         * modules/execute (Depends-on): Add dup2.
41769         * modules/fseterr (Depends-on): Likewise.
41770         * modules/pipe (Depends-on): Likewise.
41771         * modules/posix_spawn-internal (Depends-on): Likewise.
41772
41773 2009-07-21  Bruno Haible  <bruno@clisp.org>
41774
41775         * modules/.gitattributes: New file.
41776
41777 2009-07-20  Bruno Haible  <bruno@clisp.org>
41778
41779         * tests/test-pipe.c (BACKUP_STDERR_FILENO): New macro.
41780         (main): Use it.
41781
41782 2009-07-20  Eric Blake  <ebb9@byu.net>
41783
41784         test-pipe: make a bit more robust.
41785         * tests/test-pipe.c (myerr): Allow error messages regardless of
41786         what we do to stderr.
41787         (test_pipe): Rearrange to avoid deadlock.
41788         (child_main): Try a larger read, to ensure we avoided deadlock.
41789         * lib/pipe.c (create_pipe) [_WIN32]: Fix comment.
41790         * lib/pipe.h (create_pipe_bidi): Document potential for deadlock
41791         if misused.
41792
41793 2009-07-19  Jim Meyering  <meyering@redhat.com>
41794
41795         fts: avoid false-positive cycle-detection
41796         * lib/fts.c (fts_read): Reinitialize cycle-detection data structures
41797         for each new command line argument.
41798
41799 2009-07-19  Bruno Haible  <bruno@clisp.org>
41800
41801         Fix build error on mingw with the modules sys_select and unistd.
41802         * modules/acl-tests (Depends-on): Add close.
41803         * modules/binary-io-tests (Depends-on): Likewise.
41804         * modules/closein-tests (Depends-on): Likewise.
41805         * modules/flock-tests (Depends-on): Likewise.
41806         * modules/fsync-tests (Depends-on): Likewise.
41807         * modules/lseek-tests (Depends-on): Likewise.
41808         * modules/pipe-tests (Depends-on): Likewise.
41809         * modules/posix_spawn-tests (Depends-on): Likewise.
41810         * modules/posix_spawnp-tests (Depends-on): Likewise.
41811         * modules/stat-time-tests (Depends-on): Likewise.
41812         * modules/yesno-tests (Depends-on): Likewise.
41813
41814 2009-07-19  Bruno Haible  <bruno@clisp.org>
41815
41816         Unify conditionals.
41817         * lib/pipe.h: Detect native Win32 by looking at _WIN32 and __WIN32__
41818         macros, not at the compiler macros.
41819         * lib/pipe.c: Likewise.
41820         * lib/execute.c: Likewise.
41821         * lib/spawni.c: Likewise.
41822
41823 2009-07-19  Bruno Haible  <bruno@clisp.org>
41824
41825         Fix handling of closed stdin/stdout/stderr on mingw.
41826         * lib/w32spawn.h: Include unistd.h.
41827         (dup_noinherit): Return -1 if the old handle is invalid. Allocate new
41828         file descriptor with O_NOINHERIT flag.
41829         (fd_safer_noinherit): New function, based on fd-safer.c.
41830         (dup_safer_noinherit): New function, based on dup-safer.c.
41831         (undup_safer_noinherit): New function.
41832         * lib/execute.c (execute) [WIN32]: Use dup_safer_noinherit instead of
41833         dup_noinherit. Use undup_safer_noinherit instead of dup2 and close.
41834         * lib/pipe.c (create_pipe) [WIN32]: Likewise. Use fd_safer_noinherit
41835         instead of fd_safer.
41836         * tests/test-pipe.c: Include <windows.h>.
41837         (child_main) [WIN32]: Test the handle of STDERR_FILENO, not its close()
41838         result.
41839
41840         * tests/test-pipe.c (child_main, parent_main): New functions, extracted
41841         from main.
41842         (test_pipe): Pass an extra argument for disambiguation.
41843         (main): Invoke parent_main or child_main.
41844
41845         * tests/test-pipe.c (test_pipe): Pass slave_process = true argument
41846         consistently.
41847
41848 2009-07-18  Eric Blake  <ebb9@byu.net>
41849
41850         test-pipe: fix mingw build
41851         * tests/test-pipe.c (main): Avoid fcntl on mingw.
41852
41853 2009-07-18  Bruno Haible  <bruno@clisp.org>
41854
41855         * modules/pipe-tests (Makefile.am): Fix typo.
41856
41857 2009-07-18  Eric Blake  <ebb9@byu.net>
41858
41859         error: fix mingw build
41860         * lib/error.c (error, error_at_line): Avoid fcntl on mingw.
41861         Reported by Bruno Haible.
41862
41863         error: avoid undefined use of stdout
41864         * lib/error.c (error, error_at_line): Check that fd 1 is open
41865         before flushing stdout.  Avoids a crash on cygwin when libsigsegv
41866         is handling faults and the close_stdout module wants to report the
41867         detection of closed stdout as an error.
41868
41869 2009-07-17  Eric Blake  <ebb9@byu.net>
41870
41871         pipe: be robust in face of closed fds
41872         * lib/pipe.c (create_pipe): Closed standard descriptors in parent
41873         should cause child to misbehave.
41874         * modules/pipe-tests: New module.
41875         * tests/test-pipe.c: New file.
41876         * tests/test-pipe.sh: New file.
41877         Reported by Akim Demaille.
41878
41879 2009-07-14  Bruno Haible  <bruno@clisp.org>
41880
41881         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Guess it works on glibc systems.
41882         Reported by anonymous kc.
41883
41884 2009-07-07  Jim Meyering  <meyering@redhat.com>
41885
41886         maint.mk: don't look for translatable strings in *.m4 or *.mk
41887         * top/maint.mk (sc_po_check): Skip *.m4 and *.mk files,
41888         when searching for translatable strings.
41889
41890 2009-07-05  Jim Meyering  <meyering@redhat.com>
41891
41892         remove superfluous parentheses in STREQ definition
41893         * tests/test-argv-iter.c (STREQ): Remove redundant parentheses.
41894         * lib/getugroups.c (STREQ): Likewise.
41895         * lib/fnmatch.c (STREQ): Likewise.
41896         Spotted by Bruno Haible.
41897
41898 2009-07-04  Jim Meyering  <meyering@redhat.com>
41899
41900         argv-iter: new module
41901         * MODULES.html.sh: Add argv-iter.
41902         * lib/argv-iter.c, lib/argv-iter.h: New files.
41903         * modules/argv-iter: New file.
41904         * modules/argv-iter-tests: New file.
41905         * tests/test-argv-iter.c: Test it.
41906
41907 2009-07-04  Bruno Haible  <bruno@clisp.org>
41908
41909         Fix assertion.
41910         * lib/git-merge-changelog.c (compute_mapping): In the case where file1
41911         contains more exact copies of a given entry than file2, leave the extra
41912         copies unpaired rather than aborting.
41913         Reported by Eric Blake.
41914
41915 2009-07-02  Bruno Haible  <bruno@clisp.org>
41916
41917         Speedup git-merge-changelog for git cherry-pick.
41918         * lib/git-merge-changelog.c (struct entries_mapping): New type.
41919         (entries_mapping_get): New function, extracted from compute_mapping.
41920         (entries_mapping_reverse_get): New function.
41921         (compute_mapping): Add a 'full' argument. Return the result in a
41922         'struct entries_mapping'.
41923         (main): Update. Access the mappings through entries_mapping_get.
41924         Reported by Eric Blake.
41925
41926 2009-07-02  Bruno Haible  <bruno@clisp.org>
41927
41928         * lib/git-merge-changelog.c (compute_mapping): Fix determination of
41929         best_i.
41930
41931 2009-07-02  Bruno Haible  <bruno@clisp.org>
41932
41933         Speed up approximate search for matching ChangeLog entries.
41934         * lib/git-merge-changelog.c (entry_fstrcmp): Add a lower_bound
41935         argument. Call fstrcmp_bounded instead of fstrcmp.
41936         (compute_mapping, try_split_merged_entry, main): Update callers.
41937
41938 2009-07-02  Bruno Haible  <bruno@clisp.org>
41939
41940         * lib/git-merge-changelog.c (main): Add comment about git cherry-pick.
41941
41942 2009-06-30  Bruno Haible  <bruno@clisp.org>
41943
41944         Reduce the number of uc_is_cased calls.
41945         * lib/unicase.h (casing_suffix_context_t): Add
41946         'first_char_except_ignorable' field.
41947         * lib/unicase/context.h (SCC_FINAL_SIGMA_MASK): Remove macro.
41948         (SCC_MORE_ABOVE_MASK, SCC_BEFORE_DOT_MASK): Update.
41949         * lib/unicase/empty-suffix-context.c (unicase_empty_suffix_context):
41950         Update initializer.
41951         * lib/unicase/u-casemap.h (FUNC): Don't invoke uc_is_cased on
41952         case-ignorable characters.
41953         * lib/unicase/u-ct-totitle.h (FUNC): Likewise.
41954         * lib/unicase/u-suffix-context.h (FUNC2): Don't call uc_is_cased here.
41955         * modules/unicase/u8-suffix-context (Depends-on): Remove unicase/cased.
41956         * modules/unicase/u16-suffix-context (Depends-on): Likewise.
41957         * modules/unicase/u32-suffix-context (Depends-on): Likewise.
41958
41959 2009-06-30  Bruno Haible  <bruno@clisp.org>
41960
41961         Tests for module 'unicase/ignorable'.
41962         * modules/unicase/ignorable-tests: New file.
41963         * tests/unicase/test-ignorable.c: New file, generated by
41964         gen-uni-tables.
41965
41966         Tests for module 'unicase/cased'.
41967         * modules/unicase/cased-tests: New file.
41968         * tests/unicase/test-cased.c: New file, generated by gen-uni-tables.
41969         * tests/unicase/test-predicate-part1.h: New file, derived from
41970         tests/unictype/test-predicate-part1.h.
41971         * tests/unicase/test-predicate-part2.h: New file, same as
41972         tests/unictype/test-predicate-part2.h.
41973
41974         Fix evaluation of "Before C" condition of FINAL_SIGMA.
41975         * lib/gen-uni-tables.c (is_cased, is_case_ignorable): New functions.
41976         (output_casing_properties): New function.
41977         (main): Call it.
41978         * lib/unicase/cased.h: New file, generated by gen-uni-tables.
41979         * lib/unicase/cased.c: Include unictype/bitmap.h.
41980         (uc_is_cased): Define through a bitmap lookup.
41981         * lib/unicase/ignorable.h: New file, generated by gen-uni-tables.
41982         * lib/unicase/ignorable.c: Include unictype/bitmap.h.
41983         (uc_is_case_ignorable): Define through a bitmap lookup.
41984         * modules/unicase/cased (Files): Add lib/unicase/cased.h,
41985         lib/unictype/bitmap.h.
41986         (Depends-on): Add inline. Clean up.
41987         * modules/unicase/ignorable (Files): Add lib/unicase/ignorable.h,
41988         lib/unictype/bitmap.h.
41989         (Depends-on): Add inline. Clean up.
41990         * tests/unicase/test-u8-tolower.c (main): Add more tests of FINAL_SIGMA
41991         recognition.
41992         * tests/unicase/test-u16-tolower.c (main): Likewise.
41993         * tests/unicase/test-u32-tolower.c (main): Likewise.
41994
41995 2009-06-30  Bruno Haible  <bruno@clisp.org>
41996
41997         * lib/unicase/u8-casemap.c: Don't include uniwbrk.h.
41998         * lib/unicase/u16-casemap.c: Likewise.
41999         * lib/unicase/u32-casemap.c: Likewise.
42000
42001 2009-06-29  Bruno Haible  <bruno@clisp.org>
42002
42003         Define u32_casefold as a wrapper around u32_ct_casefold.
42004         * lib/unicase/u32-casefold.c: Update.
42005         * modules/unicase/u32-casefold (Depends-on): Add
42006         unicase/u32-ct-casefold, unicase/empty-prefix-context,
42007         unicase/empty-suffix-context. Clean up.
42008
42009         Define u16_casefold as a wrapper around u16_ct_casefold.
42010         * lib/unicase/u16-casefold.c: Update.
42011         * modules/unicase/u16-casefold (Depends-on): Add
42012         unicase/u16-ct-casefold, unicase/empty-prefix-context,
42013         unicase/empty-suffix-context. Clean up.
42014
42015         Define u8_casefold as a wrapper around u8_ct_casefold.
42016         * lib/unicase/u-casefold.h (FUNC): Delegate to U_CT_CASEFOLD.
42017         * lib/unicase/u8-casefold.c: Update.
42018         * modules/unicase/u8-casefold (Depends-on): Add unicase/u8-ct-casefold,
42019         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
42020
42021         Define u32_totitle as a wrapper around u32_ct_totitle.
42022         * lib/unicase/u32-totitle.c: Update.
42023         * modules/unicase/u32-totitle (Depends-on): Add unicase/u32-ct-totitle,
42024         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
42025
42026         Define u16_totitle as a wrapper around u16_ct_totitle.
42027         * lib/unicase/u16-totitle.c: Update.
42028         * modules/unicase/u16-totitle (Depends-on): Add unicase/u16-ct-totitle,
42029         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
42030
42031         Define u8_totitle as a wrapper around u8_ct_totitle.
42032         * lib/unicase/u-totitle.h (is_cased, is_case_ignorable): Remove
42033         functions.
42034         (FUNC): Delegate to U_CT_TOTITLE.
42035         * lib/unicase/u8-totitle.c: Update.
42036         * modules/unicase/u8-totitle (Depends-on): Add unicase/u8-ct-totitle,
42037         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
42038
42039         * lib/unicase/u32-tolower.c (u32_tolower): Update u32_casemap
42040         invocation.
42041         * modules/unicase/u32-tolower (Depends-on): Add
42042         unicase/empty-prefix-context, unicase/empty-suffix-context.
42043
42044         * lib/unicase/u16-tolower.c (u16_tolower): Update u16_casemap
42045         invocation.
42046         * modules/unicase/u16-tolower (Depends-on): Add
42047         unicase/empty-prefix-context, unicase/empty-suffix-context.
42048
42049         * lib/unicase/u8-tolower.c (u8_tolower): Update u8_casemap invocation.
42050         * modules/unicase/u8-tolower (Depends-on): Add
42051         unicase/empty-prefix-context, unicase/empty-suffix-context.
42052
42053         * lib/unicase/u32-toupper.c (u32_toupper): Update u32_casemap
42054         invocation.
42055         * modules/unicase/u32-toupper (Depends-on): Add
42056         unicase/empty-prefix-context, unicase/empty-suffix-context.
42057
42058         * lib/unicase/u16-toupper.c (u16_toupper): Update u16_casemap
42059         invocation.
42060         * modules/unicase/u16-toupper (Depends-on): Add
42061         unicase/empty-prefix-context, unicase/empty-suffix-context.
42062
42063         * lib/unicase/u8-toupper.c (u8_toupper): Update u8_casemap invocation.
42064         * modules/unicase/u8-toupper (Depends-on): Add
42065         unicase/empty-prefix-context, unicase/empty-suffix-context.
42066
42067         New module 'unicase/u32-ct-casefold'.
42068         * lib/unicase/u32-ct-casefold.c: New file.
42069         * modules/unicase/u32-ct-casefold: New file.
42070
42071         New module 'unicase/u16-ct-casefold'.
42072         * lib/unicase/u16-ct-casefold.c: New file.
42073         * modules/unicase/u16-ct-casefold: New file.
42074
42075         New module 'unicase/u8-ct-casefold'.
42076         * lib/unicase/u8-ct-casefold.c: New file.
42077         * lib/unicase/u-ct-casefold.h: New file, derived from
42078         lib/unicase/u-casefold.h.
42079         * modules/unicase/u8-ct-casefold: New file.
42080
42081         New module 'unicase/u32-ct-totitle'.
42082         * lib/unicase/u32-ct-totitle.c: New file.
42083         * modules/unicase/u32-ct-totitle: New file.
42084
42085         New module 'unicase/u16-ct-totitle'.
42086         * lib/unicase/u16-ct-totitle.c: New file.
42087         * modules/unicase/u16-ct-totitle: New file.
42088
42089         New module 'unicase/u8-ct-totitle'.
42090         * lib/unicase/u8-ct-totitle.c: New file.
42091         * lib/unicase/u-ct-totitle.h: New file, derived from
42092         lib/unicase/u-totitle.h.
42093         * modules/unicase/u8-ct-totitle: New file.
42094
42095         New module 'unicase/u32-ct-tolower'.
42096         * lib/unicase/u32-ct-tolower.c: New file.
42097         * modules/unicase/u32-ct-tolower: New file.
42098
42099         New module 'unicase/u16-ct-tolower'.
42100         * lib/unicase/u16-ct-tolower.c: New file.
42101         * modules/unicase/u16-ct-tolower: New file.
42102
42103         New module 'unicase/u8-ct-tolower'.
42104         * lib/unicase/u8-ct-tolower.c: New file.
42105         * modules/unicase/u8-ct-tolower: New file.
42106
42107         New module 'unicase/u32-ct-toupper'.
42108         * lib/unicase/u32-ct-toupper.c: New file.
42109         * modules/unicase/u32-ct-toupper: New file.
42110
42111         New module 'unicase/u16-ct-toupper'.
42112         * lib/unicase/u16-ct-toupper.c: New file.
42113         * modules/unicase/u16-ct-toupper: New file.
42114
42115         New module 'unicase/u8-ct-toupper'.
42116         * lib/unicase/u8-ct-toupper.c: New file.
42117         * modules/unicase/u8-ct-toupper: New file.
42118
42119         Add context arguments to u*_casemap functions.
42120         * lib/unicase/unicasemap.h: Include unicase.h.
42121         (u8_casemap, u16_casemap, u32_casemap): Add prefix_context and
42122         suffix_context arguments.
42123         * lib/unicase/u-casemap.h (is_cased, is_case_ignorable): Remove
42124         functions.
42125         (FUNC): Add prefix_context and suffix_context arguments. Use
42126         uc_is_cased and uc_is_case_ignorable.
42127         * lib/unicase/u8-casemap.c: Include caseprop.h and context.h.
42128         * lib/unicase/u16-casemap.c: Likewise.
42129         * lib/unicase/u32-casemap.c: Likewise.
42130         * modules/unicase/u8-casemap (Files): Add lib/unicase/context.h.
42131         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
42132         * modules/unicase/u16-casemap (Files): Add lib/unicase/context.h.
42133         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
42134         * modules/unicase/u32-casemap (Files): Add lib/unicase/context.h.
42135         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
42136
42137         New module 'unicase/u32-suffix-context'.
42138         * lib/unicase/u32-suffix-context.c: New file.
42139         * modules/unicase/u32-suffix-context: New file.
42140
42141         New module 'unicase/u16-suffix-context'.
42142         * lib/unicase/u16-suffix-context.c: New file.
42143         * modules/unicase/u16-suffix-context: New file.
42144
42145         New module 'unicase/u8-suffix-context'.
42146         * lib/unicase/u8-suffix-context.c: New file.
42147         * lib/unicase/u-suffix-context.h: New file.
42148         * modules/unicase/u8-suffix-context: New file.
42149
42150         New module 'unicase/empty-suffix-context'.
42151         * lib/unicase/empty-suffix-context.c: New file.
42152         * modules/unicase/empty-suffix-context: New file.
42153
42154         New module 'unicase/u32-prefix-context'.
42155         * lib/unicase/u32-prefix-context.c: New file.
42156         * modules/unicase/u32-prefix-context: New file.
42157
42158         New module 'unicase/u16-prefix-context'.
42159         * lib/unicase/u16-prefix-context.c: New file.
42160         * modules/unicase/u16-prefix-context: New file.
42161
42162         New module 'unicase/u8-prefix-context'.
42163         * lib/unicase/u8-prefix-context.c: New file.
42164         * lib/unicase/u-prefix-context.h: New file.
42165         * lib/unicase/context.h: New file.
42166         * modules/unicase/u8-prefix-context: New file.
42167
42168         New module 'unicase/empty-prefix-context'.
42169         * lib/unicase/empty-prefix-context.c: New file.
42170         * modules/unicase/empty-prefix-context: New file.
42171
42172         New module 'unicase/ignorable'.
42173         * lib/unicase/ignorable.c: New file.
42174         * modules/unicase/ignorable: New file.
42175
42176         New module 'unicase/cased'.
42177         * lib/unicase/caseprop.h: New file.
42178         * lib/unicase/cased.c: New file.
42179         * modules/unicase/cased: New file.
42180
42181         New functions for case mapping of substrings.
42182         * lib/unicase.h (casing_prefix_context_t): New type.
42183         (unicase_empty_prefix_context): New variable.
42184         (u8_casing_prefix_context, u16_casing_prefix_context,
42185         u32_casing_prefix_context, u8_casing_prefixes_context,
42186         u16_casing_prefixes_context, u32_casing_prefixes_context): New
42187         declarations.
42188         (casing_suffix_context_t): New type.
42189         (unicase_empty_suffix_context): New variable.
42190         (u8_casing_suffix_context, u16_casing_suffix_context,
42191         u32_casing_suffix_context, u8_casing_suffixes_context,
42192         u16_casing_suffixes_context, u32_casing_suffixes_context,
42193         u8_ct_toupper, u16_ct_toupper, u32_ct_toupper, u8_ct_tolower,
42194         u16_ct_tolower, u32_ct_tolower, u8_ct_totitle, u16_ct_totitle,
42195         u32_ct_totitle, u8_ct_casefold, u16_ct_casefold, u32_ct_casefold): New
42196         declarations.
42197
42198 2009-06-28  Jim Meyering  <meyering@redhat.com>
42199
42200         boostrap: indent only with spaces
42201         * build-aux/bootstrap: Indent only with spaces, never TABs.
42202
42203         bootstrap: split long lines
42204         * build-aux/bootstrap: Keep line length < 80.
42205
42206         bootstrap: sync from coreutils
42207         * build-aux/bootstrap: Honor variables like $ACLOCAL, etc.,
42208         just as autoreconf does.  Verify a list of prerequisite
42209         package-name,version-number pairs if defined in bootstrap.conf.
42210         Refer to README-prereq, if prerequisites are not satisfied.
42211
42212 2009-06-27  Eric Blake  <ebb9@byu.net>
42213
42214         tests: add test for bogus NULL definition
42215         * tests/test-stdio.c: Ensure POSIX 2008 requirement on NULL.
42216         * tests/test-stdlib.c: Likewise.
42217         * tests/test-string.c: Likewise.
42218         * tests/test-locale.c: Likewise.
42219         * tests/test-unistd.c: Likewise.
42220         * modules/stdio-tests (Depends-on): Add verify.
42221         * modules/stdlib-tests (Depends-on): Likewise.
42222         * modules/string-tests (Depends-on): Likewise.
42223         * modules/locale-tests (Depends-on): Likewise.
42224         * modules/unistd-tests (Depends-on): Likewise.
42225
42226 2009-06-27  Paolo Bonzini  <bonzini@gnu.org>
42227
42228         * m4/selinux-context-h (gl_HEADERS_SELINUX_CONTEXT_H): Remove
42229         self-explaining comment.
42230         * m4/selinux-selinux-h: Update serial.
42231         (gl_LIBSELINUX): New macro, adding a warning for missing development
42232         packages to code extracted from...
42233         (gl_HEADERS_SELINUX_SELINUX_H): ... this one.  Require gl_LIBSELINUX.
42234         Add warning for missing development packages here, too.
42235
42236 2009-06-26  Paolo Bonzini  <bonzini@gnu.org>
42237
42238         * build-aux/bootstrap: Do not use GIT_CONFIG_LOCAL.
42239
42240 2009-06-25  Eric Blake  <ebb9@byu.net>
42241
42242         version-etc: fix regression
42243         * lib/version-etc.h (ATTRIBUTE_SENTINEL): Define for new enough
42244         gcc.
42245         (version_etc): Use it, to catch bugs with trailing NULL.
42246         * lib/version-etc.c (version_etc_arn): Delete unused argument.
42247         (version_etc_va): Fix logic bug.
42248         * modules/version-etc-tests: Add test.
42249         * tests/test-version-etc.c: New file.
42250         * tests/test-version-etc.sh: Likewise.
42251
42252 2009-06-25  Sam Steingold  <sds@gnu.org>
42253
42254         * mbrtowc.m4 (gl_MBRTOWC_SANITYCHECK): Include <stdlib.h>, for the
42255         mbtowc declaration.
42256
42257 2009-06-25  Eric Blake  <ebb9@byu.net>
42258
42259         fpurge: migrate into <stdio.h>
42260         * lib/fpurge.h: Delete...
42261         * lib/stdio.in.h (fpurge): ...and declare here, instead.
42262         * lib/fpurge.c (fpurge): Change declaring header.
42263         * modules/fpurge (Files): Drop deleted file.
42264         (Depends-on): Add stdio.
42265         (configure.ac): Set witness.
42266         * modules/stdio (Makefile.am): Support fpurge macros.
42267         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
42268         * m4/fpurge.m4 (gl_FUNC_FPURGE): Set appropriate variables.
42269         * lib/fflush.c: Update client.
42270         * tests/test-fpurge.c: Likewise.
42271         * NEWS: Mention the change.
42272
42273 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
42274
42275         * lib/argp-version-etc.c (program_authors): Add const
42276         qualifier.
42277         * lib/version-etc.c: Fix typos in the comments.
42278         * modules/argp-version-etc: Depends on version-etc.
42279
42280 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
42281
42282         argp-version-etc: new module.
42283
42284         * lib/argp-version-etc.c: New file.
42285         * lib/argp-version-etc.h: New file.
42286         * modules/argp-version-etc: New file.
42287         * modules/argp-version-etc-tests: New file.
42288         * tests/test-argp-version-etc.c: New test.
42289         * tests/test-argp-version-etc-1.sh: New test.
42290
42291 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
42292
42293         Provide additional interfaces and documentation for version-etc
42294         module.
42295
42296         * lib/version-etc.c (version_etc_arn, version_etc_ar): New
42297         interfaces.
42298         * lib/version-etc.h (version_etc_arn, version_etc_ar): New
42299         prototypes.
42300
42301 2009-06-24  Bruno Haible  <bruno@clisp.org>
42302
42303         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Fix description of
42304         HAVE_LIB${NAME} macro.
42305         Reported by Sam Steingold <sds@gnu.org>.
42306
42307 2009-06-23  Simon Josefsson  <simon@josefsson.org>
42308
42309         * modules/hash-tests (test_hash_LDADD): Link to libintl when
42310         needed.
42311
42312 2009-06-21  Bruno Haible  <bruno@clisp.org>
42313
42314         Make two consecutive identical invocations of AC_LIB_HAVE_LINKFLAGS
42315         work.
42316         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Reset HAVE_LIB${NAME}
42317         together with LIB${NAME}, LTLIB${NAME}.
42318         Reported by Sam Steingold <sds@gnu.org>.
42319
42320 2009-06-20  Jim Meyering  <meyering@redhat.com>
42321
42322         tests: make sc_require_test_exit_idiom more generic
42323         * top/maint.mk (Exit_witness_file): New overridable variable.
42324         (sc_require_test_exit_idiom): Don't hard-code tests/test-lib.sh.
42325         Relax test for /^Exit \$fail$$/ to just /^Exit ./.
42326
42327 2009-06-19  Jim Meyering  <meyering@redhat.com>
42328
42329         hash: reverse order of src/dst parameters in an internal interface
42330         * lib/hash.c (transfer_entries): Reverse order of parameters to
42331         put DST before SRC.  Adjust callers.
42332
42333         tests: test-hash: avoid wholesale duplication
42334         * tests/test-hash.c (main): Don't copy/paste a 60-line loop.
42335         Instead, use a loop and add a single conditional.
42336
42337         tests: test-hash: allow seed selection via a command line argument
42338         * tests/test-hash.c (get_seed): New function.
42339         (main): Use it.
42340
42341 2009-06-19  Eric Blake  <ebb9@byu.net>
42342
42343         hash: avoid memory leak on allocation failure
42344         * lib/hash.c: (hash_rehash): Avoid memory leak on allocation
42345         failure.  Factor repeated algorithm...
42346         (transfer_entries): ...into new helper routine.
42347         (hash_delete): React to hash_rehash return value.
42348
42349         hash: reduce memory pressure in hash_rehash no-op case
42350         * lib/hash.c (next_prime): Avoid overflow.
42351         (hash_initialize): Factor bucket size computation...
42352         (compute_bucket_size): ...into new helper function.
42353         (hash_rehash): Use new function and open coding to reduce memory
42354         pressure, and avoid a memory leak in USE_OBSTACK code.
42355         Reported by Jim Meyering.
42356
42357 2009-06-18  Eric Blake  <ebb9@byu.net>
42358
42359         hash: make rotation more obvious
42360         * modules/hash (Depends-on): Add bitrotate and stdint.
42361         * lib/bitrotate.h (rotl_sz, rotr_sz): New functions.
42362         * lib/hash.c (headers): Drop limits.h.  Add stdint.h.
42363         (SIZE_MAX): Rely on headers for definition.
42364         (hash_string) [USE_DIFF_HASH]: Use rotl_sz.
42365         (raw_hasher): Use rotr_sz.
42366         Suggested by Jim Meyering.
42367
42368         hash: fix memory leak in last patch
42369         * lib/hash.c (hash_rehash): Avoid memory leak.
42370
42371         hash: avoid no-op rehashing
42372         * lib/hash.c (hash_rehash): Recognize useless rehash attempts.
42373
42374         hash: provide default callback functions
42375         * lib/hash.c (raw_hasher, raw_comparator): New functions.
42376         (hash_initialize): Use them as defaults.
42377         * tests/test-hash.c (main): Test this.
42378
42379         hash: minor optimization
42380         * lib/hash.c (hash_lookup, hash_find_entry): Avoid function call
42381         when possible.
42382         (hash_initialize): Document this promise.
42383         (hash_do_for_each, hash_clear, hash_free): Use C89 syntax.
42384         * tests/test-hash.c (hash_compare_strings): Test this.
42385
42386 2009-06-18  Bruno Haible  <bruno@clisp.org>
42387
42388         * m4/strstr.m4 (gl_FUNC_STRSTR): Skip linear time test if strstr is
42389         going to be replaced anyway.
42390
42391 2009-06-18  Bruno Haible  <bruno@clisp.org>
42392
42393         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Invoke AC_LIBOBJ only
42394         in one place.
42395         (gl_FUNC_STRCASESTR): Skip linear time test if strcasestr is going to
42396         be replaced anyway.
42397
42398 2009-06-18  Eric Blake  <ebb9@byu.net>
42399
42400         hash: check for resize before insertion
42401         * lib/hash.c (hash_insert): Check whether bucket usage exceeds
42402         threshold before insertion, so that a pathological hash_rehash
42403         that fills every bucket can still trigger another rehash.
42404
42405 2009-06-18  Jim Meyering  <meyering@redhat.com>
42406
42407         hash-tests: add a loop around the small tests
42408         * tests/test-hash.c (main): Repeat small tests with selected
42409         small initial table sizes.
42410
42411 2009-06-17  Eric Blake  <ebb9@byu.net>
42412
42413         hash: minor cleanups
42414         * lib/hash.h (hash_entry): Make opaque, by moving...
42415         * lib/hash.c (hash_entry): ...here.
42416         (hash_insert): Clarify restrictions on what can be inserted.
42417         (hash_get_next): Clarify when it is safe to remove an element
42418         during traversal.
42419         (check_tuning): Skip verification when tuning is known safe.
42420         (hash_initialize): Clarify restrictions on tuning.
42421
42422 2009-06-17  Jim Meyering  <jim@meyering.net>
42423         and Eric Blake  <ebb9@byu.net>
42424
42425         hash-tests: new module
42426         * modules/hash-tests: New file.
42427         * tests/test-hash.c: New file.
42428
42429 2009-06-17  Eric Blake  <ebb9@byu.net>
42430
42431         strstr-simple: document new module
42432         * MODULES.html.sh: Document new module.
42433
42434         strstr, strcasestr: replace on platforms with broken memchr
42435         * modules/strstr: Split into...
42436         * modules/strstr-simple: ...new module that does not care about
42437         performance, but does care about glibc bug.
42438         * m4/strstr.m4 (gl_FUNC_STRSTR): Split...
42439         (gl_FUNC_STRSTR_SIMPLE): ...into new macro, which replaces strstr
42440         if platform memchr is broken, per Debian bug 521737.
42441         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): React to broken
42442         memchr.
42443         * m4/memchr.m4 (gl_FUNC_MEMCHR): Only expand once.
42444         * doc/posix-functions/strstr.texi (strstr): Document the fix.
42445         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
42446         * modules/mountlist (Depends-on): Add strstr-simple.
42447         * modules/gen-uni-tables (Depends-on): Likewise.
42448         * modules/argz (Depends-on): Add strstr.
42449
42450 2009-06-17  Bruno Haible  <bruno@clisp.org>
42451
42452         * modules/posix_spawn-internal (Depends-on): Add errno.
42453
42454 2009-06-17  Bruno Haible  <bruno@clisp.org>
42455
42456         Define missing ESTALE on Interix 3.5.
42457         * lib/errno.in.h (ESTALE): Assign a value if missing.
42458         * lib/strerror.c (rpl_strerror): Handle missing ESTALE and ECANCELED.
42459         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Also test whether ESTALE is
42460         missing.
42461         * doc/posix-headers/errno.texi: Mention the Interix bug.
42462         Reported by Jay Krell <jay.krell@cornell.edu> via Eric Blake.
42463
42464 2009-06-15  Eric Blake  <ebb9@byu.net>
42465
42466         memchr, memchr2: add valgrind exception
42467         * lib/memchr.valgrind: New file.
42468         * lib/memchr2.valgrind: New file.
42469         * modules/memchr (Files): Distribute valgrind file.
42470         * modules/memchr2 (Files): Likewise.
42471
42472         docs: memchr is no longer obsolete
42473         * MODULES.html.sh: Move memchr from obsolete to string.h section.
42474         * lib/string.in.h (memchr): Simplify logic.
42475
42476 2009-06-14  Jim Meyering  <meyering@redhat.com>
42477
42478         link-follow: fix the "checking..." message to not mention trailing slash
42479         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): This test has
42480         never considered trailing slashes.
42481
42482 2009-06-14  Bruno Haible  <bruno@clisp.org>
42483
42484         * m4/memchr.m4: Mention also the bug on IA-64.
42485         * doc/posix-functions/memchr.texi: Likewise.
42486
42487 2009-06-12  Eric Blake  <ebb9@byu.net>
42488
42489         memchr: detect broken x86_64 and alpha implementations
42490         * modules/memchr-tests (Depends-on): Move mmap detection...
42491         * modules/memchr (Depends-on): ...here.
42492         (configure.ac): Set indicator.
42493         * lib/string.in.h (memchr): Declare replacement.
42494         * modules/string (Makefile.am): Trigger replacement.
42495         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Likewise.
42496         * m4/memchr.m4 (gl_FUNC_MEMCHR): Use mmap to detect platform
42497         bugs.
42498         * doc/posix-functions/memchr.texi (memchr): Document the bug.
42499         * modules/getpagesize (License): Relax license.
42500
42501 2009-06-11  Bruno Haible  <bruno@clisp.org>
42502
42503         * lib/idpriv.h: Add more references.
42504
42505 2009-06-08  Bruno Haible  <bruno@clisp.org>
42506
42507         Tests for module 'idpriv-droptemp'.
42508         * modules/idpriv-droptemp-tests: New file.
42509         * tests/test-idpriv-droptemp.sh: New file.
42510         * tests/test-idpriv-droptemp.su.sh: New file.
42511         * tests/test-idpriv-droptemp.c: New file.
42512
42513         New module 'idpriv-droptemp'.
42514         * lib/idpriv-droptemp.c: New file.
42515         * modules/idpriv-droptemp: New file.
42516
42517 2009-06-08  Bruno Haible  <bruno@clisp.org>
42518
42519         Tests for module 'idpriv-drop'.
42520         * modules/idpriv-drop-tests: New file.
42521         * tests/test-idpriv-drop.sh: New file.
42522         * tests/test-idpriv-drop.su.sh: New file.
42523         * tests/test-idpriv-drop.c: New file.
42524
42525         New module 'idpriv-drop'.
42526         * lib/idpriv.h: New file.
42527         * lib-idpriv-drop.c: New file.
42528         * m4/idpriv.m4: New file.
42529         * modules/idpriv-drop: New file.
42530
42531 2009-06-08  Bruno Haible  <bruno@clisp.org>
42532
42533         * modules/unistdio/u8-vasnprintf (Depends-on): Add memchr.
42534         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
42535         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
42536         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
42537         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
42538         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
42539         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
42540
42541 2009-06-08  Eric Blake  <ebb9@byu.net>
42542
42543         test-strstr: use memory fence, when possible
42544         * tests/test-strstr.c (main): Use memory fence, in order to be
42545         more likely to trigger Debian bug 521737.
42546         * modules/strstr-tests (Files): Pull in additional files.
42547
42548         memchr: no longer obsolete, for wider field testing
42549         * modules/memchr (Status, Notice): Delete, this module is no
42550         longer obsolete.
42551         * modules/vasnprintf (Depends-on): Add memchr.
42552
42553 2009-06-07  Jim Meyering  <meyering@redhat.com>
42554
42555         hash: declare some functions with the warn_unused_result attribute
42556         * lib/hash.h (__attribute__, ATTRIBUTE_WUR): Define.
42557
42558 2009-06-07  Bruno Haible  <bruno@clisp.org>
42559
42560         * tests/test-alignof.c: Don't test int64_t if it does not exist.
42561         Reported by Eric Blake.
42562
42563 2009-06-06  Eric Blake  <ebb9@byu.net>
42564
42565         test-alignof: fix typo with long double
42566         * tests/test-alignof.c (CHECK): Use longdouble typedef to avoid
42567         compiler error.
42568
42569 2009-06-06  Neil Jerram  <neil@ossau.uklinux.net>  (tiny change)
42570
42571         Escape non-texinfo { and }s.
42572         * doc/ld-output-def.texi (Visual Studio Compatibility): Fix
42573         markup error.
42574
42575 2009-06-04  Jim Meyering  <meyering@redhat.com>
42576
42577         gitlog-to-changelog: don't infloop on an empty commit log
42578         * build-aux/gitlog-to-changelog: Warn about an empty log message.
42579         Reported by Boris Petersen <transacid@centerim.org>.
42580
42581 2009-06-03  Mike Frysinger  <vapier@gentoo.org>
42582
42583         version-etc: extend for packagers
42584         Add three new configure options, intended for packagers:
42585           --with-packager="packager name"
42586           --with-packager-version="packager-specific version"
42587           --with-packager-bug-reports="packager bug reporting"
42588         An example with coreutils:
42589           $ ./configure \
42590             --with-packager=Gentoo \
42591             --with-packager-bug-report=http://bugs.gentoo.org/ \
42592             --with-packager-version="patchset 1.6"
42593           $ ./src/ls --version | head -n2
42594           ls (GNU coreutils) 7.1-dirty
42595           Packaged by Gentoo (patchset 1.6)
42596         Note that the bug reporting info via --help doesn't show up because
42597         coreutils uses its own custom emit_bug_reporting_address() implementation
42598         in src/system.h.  If it didn't, it'd look like:
42599           $ ./src/ls --help | tail -n4
42600           Report bugs to <bug-coreutils@gnu.org>.
42601           Report Gentoo bugs to <http://bugs.gentoo.org/>.
42602           GNU coreutils home page: <http://www.gnu.org/software/coreutils/>.
42603           General help using GNU software: <http://www.gnu.org/gethelp/>.
42604         * lib/version-etc.c: Print new information, if provided.
42605         * m4/version-etc.m4: New file.
42606         * modules/version-etc (Files): Add m4/version-etc.m4.
42607         (configure.ac): Add gl_VERSION_ETC.
42608
42609 2009-05-31  Bruno Haible  <bruno@clisp.org>
42610
42611         * tests/test-alignof.c: Include <stdint.h>. Check also 'long double'
42612         and 'int64_t'.
42613         * modules/alignof-tests (Dependencies): Add stdint.
42614         Reported by Eric Blake.
42615
42616 2009-05-31  Bruno Haible  <bruno@clisp.org>
42617
42618         * lib/alignof.h (alignof_slot, alignof_type, alignof): Document
42619         restriction due to compiler bugs.
42620         Reported by Eric Blake.
42621
42622 2009-05-31  Simon Josefsson  <simon@josefsson.org>
42623             Bruno Haible  <bruno@clisp.org>
42624
42625         Fix test-alignof failure.
42626         * lib/alignof.h (alignof_slot): New macro.
42627         (alignof_type): New macro, with the same semantics as the previous
42628         'alignof'.
42629         (alignof): Alias to alignof_slot.
42630         * tests/test-alignof.c (CHECK): Check alignof_slot, not alignof. Also
42631         check that the results are usable as constant expressions.
42632
42633 2009-05-31  Bruno Haible  <bruno@clisp.org>
42634
42635         * tests/zerosize-ptr.h (zerosize_ptr): Specify more details.
42636         * tests/test-memchr.c (main): Check that memchr does not read past the
42637         first occurrence of the byte.
42638         * tests/test-strstr.c (main): Update comment.
42639         Suggested by Eric Blake.
42640
42641 2009-05-30  Bruno Haible  <bruno@clisp.org>
42642
42643         * doc/ld-output-def.texi (Visual Studio Compatibility): Explain in more
42644         detail how to use dumpbin.
42645         Reported by David Byron <dbyron@dbyron.com>.
42646
42647 2009-06-02  Simon Josefsson  <simon@josefsson.org>
42648
42649         * tests/test-parse-duration.sh: Don't use non-portable 'read -u3'.
42650
42651 2009-06-02  Simon Josefsson  <simon@josefsson.org>
42652
42653         * m4/manywarnings.m4: Add GCC 4.4 warnings.
42654
42655 2009-05-28  Bruno Haible  <bruno@clisp.org>
42656
42657         * gnulib-tool (func_import): Don't do HAVE_CONFIG_H replacements on
42658         build-aux/ files.
42659
42660 2009-05-28  Simon Josefsson  <simon@josefsson.org>
42661
42662         * gnulib-tool (func_import): Transform license on build-aux/ files too.
42663
42664 2009-05-27  Simon Josefsson  <simon@josefsson.org>
42665
42666         * gnulib-tool (sed_transform_main_lib_file)
42667         (sed_transform_testsrelated_lib_file): : Don't use non-POSIX
42668         regexps.
42669
42670 2009-05-26  Simon Josefsson  <simon@josefsson.org>
42671
42672         * tests/test-strstr.c: Add another self-test.
42673         * tests/test-strstr.c: Rewrite to use malloc/strcpy instead of
42674         strdup.  Suggested by Eric Blake  <ebb9@byu.net>.
42675
42676 2009-05-23  Bruno Haible  <bruno@clisp.org>
42677
42678         * doc/havelib.texi (AC_LIB_HAVE_LINKFLAGS): Update for 2009-04-26
42679         change.
42680
42681 2009-05-21  Bruno Haible  <bruno@clisp.org>
42682
42683         Simplify use of mode_t varargs.
42684         * lib/open.c (open): Use PROMOTED_MODE_T instead of a conditional that
42685         uses 'mode_t' or 'int'.
42686         * lib/openat.c (openat): Likewise.
42687         * lib/open-safer.c (open_safer): Likewise.
42688         * m4/mode_t.m4: New file.
42689         * m4/open.m4 (gl_PREREQ_OPEN): Require gl_PROMOTED_TYPE_MODE_T.
42690         * m4/openat.m4 (gl_PREREQ_OPENAT): Likewise.
42691         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Likewise.
42692         * modules/open (Files): Add m4/mode_t.m4.
42693         * modules/openat (Files): Likewise.
42694         * modules/fcntl-safer (Files): Likewise.
42695         Suggested by Eric Blake.
42696
42697 2009-05-21  Pádraig Brady  <P@draigbrady.com>
42698
42699         * doc/glibc-functions/fallocate.texi: New file.
42700         * doc/gnulib.texi: Include it.
42701
42702 2009-05-21  Eric Blake  <ebb9@byu.net>
42703             Bruno Haible  <bruno@clisp.org>
42704
42705         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Remove redundant m4_quote
42706         invocations.
42707         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
42708
42709 2009-05-21  Eric Blake  <ebb9@byu.net>
42710             Bruno Haible  <bruno@clisp.org>
42711
42712         Second attempt to work around an AIX 5.3, 6.1 compiler bug with
42713         include_next. Fix of 2008-11-20 commit.
42714         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Also set
42715         NEXT_AS_FIRST_DIRECTIVE_FOO_H.
42716         * lib/math.in.h: Use NEXT_AS_FIRST_DIRECTIVE_MATH_H instead of
42717         NEXT_MATH_H.
42718         * modules/math (Makefile.am): Substitute NEXT_AS_FIRST_DIRECTIVE_MATH_H
42719         instead of NEXT_MATH_H.
42720
42721 2009-05-21  Bruno Haible  <bruno@clisp.org>
42722
42723         Avoid redefinition warnings for SIZE_MAX.
42724         * m4/size_max.m4 (gl_SIZE_MAX): Avoid redefining SIZE_MAX in config.h.
42725         Reported by Simon Josefsson.
42726
42727 2009-05-21  Bruno Haible  <bruno@clisp.org>
42728
42729         * m4/size_max.m4 (gl_SIZE_MAX): Use AC_CACHE_CHECK instead of
42730         AC_CACHE_VAL.
42731
42732 2009-05-20  Bruno Haible  <bruno@clisp.org>
42733
42734         Make zeroptr.h work on mingw.
42735         * tests/zerosize-ptr.h: Test for the presence of <sys/mman.h> and
42736         mprotect.
42737         * modules/memchr-tests (configure.ac): Also test for sys/mman.h.
42738         * modules/memchr2-tests (configure.ac): Likewise.
42739         * modules/memcmp-tests (configure.ac): Likewise.
42740         * modules/memmem-tests (configure.ac): Likewise.
42741         * modules/memrchr-tests (configure.ac): Likewise.
42742         Reported by Simon Josefsson.
42743
42744 2009-05-20  Simon Josefsson  <simon@josefsson.org>
42745
42746         * tests/test-glob.c: Include string.h for strcmp prototype.
42747
42748 2009-05-20  Simon Josefsson  <simon@josefsson.org>
42749
42750         * modules/getdelim (Depends-on): Add explicit stdint, although it
42751         was implicitly already pulled in via realloc-posix.
42752         * lib/getdelim.c: Get SIZE_MAX from stdint.h.
42753
42754 2009-05-20  Simon Josefsson  <simon@josefsson.org>
42755
42756         MinGW and IRIX does not have sa_family_t type.  Reported by "Tom
42757         G. Christensen" <tgc@jupiterrise.com>.
42758         * m4/sys_socket_h.m4: Check for sa_family_t.
42759         * lib/sys_socket.in.h: Typedef sa_family_t when needed.
42760         * modules/sys_socket: Substitute HAVE_SA_FAMILY_T.
42761         * tests/test-sys_socket.c: Check that sa_family_t works.
42762
42763 2009-05-18  Eric Blake  <ebb9@byu.net>
42764
42765         maint.mk: allow gnulib_dir in VPATH build
42766         * top/maint.mk (gnulib_dir): Make relative to $(srcdir).
42767
42768 2009-05-15  Jim Meyering  <meyering@redhat.com>
42769
42770         maint.mk: Give gnulib_dir a default definition.
42771         * top/maint.mk (gnulib_dir): Define to 'gnulib', by default.
42772         Thus, most packages no longer need to specify this variable in cfg.mk
42773
42774 2009-05-14  Tom Prince  <tom.prince@ualberta.net>  (tiny change)
42775
42776         rename.m4: fix typos that would make non-mingw cross-configure fail
42777         * m4/rename.m4 (gl_FUNC_RENAME): Fix typos.
42778
42779 2009-05-13  Eric Blake  <ebb9@byu.net>
42780
42781         mmap-anon: avoid out-of-order autoconf expansion
42782         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Use correct
42783         SYSTEM_EXTENSIONS macro to silence warnings from autoconf 2.63b.
42784         * modules/memchr-tests (Depends-on): Add extensions.
42785         * modules/memchr2-tests (Depends-on): Add extensions.
42786         * modules/memcmp-tests (Depends-on): Add extensions.
42787         * modules/memmem-tests (Depends-on): Add extensions.
42788         * modules/memrchr-tests (Depends-on): Add extensions.
42789
42790 2009-05-13  Bruno Haible  <bruno@clisp.org>
42791
42792         Make some tests ISO C 99 compliant.
42793         * tests/zerosize-ptr.h: New file.
42794         * tests/test-memchr.c: Include zerosize-ptr.h.
42795         (main): Use a zero-size object pointer instead of NULL.
42796         * tests/test-memchr2.c: Include zerosize-ptr.h.
42797         (main): Use a zero-size object pointer instead of NULL.
42798         * tests/test-memcmp.c: Include zerosize-ptr.h.
42799         (main): Use a zero-size object pointer instead of NULL.
42800         * tests/test-memmem.c: Include zerosize-ptr.h.
42801         (main): Use a zero-size object pointer instead of NULL.
42802         * tests/test-memrchr.c: Include zerosize-ptr.h.
42803         (main): Use a zero-size object pointer instead of NULL.
42804         * modules/memchr-tests (Files): Add tests/zerosize-ptr.h,
42805         m4/mmap-anon.m4.
42806         (Depends-on): Add getpagesize.
42807         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
42808         * modules/memchr2-tests (Files): Add tests/zerosize-ptr.h,
42809         m4/mmap-anon.m4.
42810         (Depends-on): Add getpagesize.
42811         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
42812         * modules/memcmp-tests (Files): Add tests/zerosize-ptr.h,
42813         m4/mmap-anon.m4.
42814         (Depends-on): Add getpagesize.
42815         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
42816         * modules/memmem-tests (Files): Add tests/zerosize-ptr.h,
42817         m4/mmap-anon.m4.
42818         (Depends-on): Add getpagesize.
42819         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
42820         * modules/memrchr-tests (Files): Add tests/zerosize-ptr.h,
42821         m4/mmap-anon.m4.
42822         (Depends-on): Add getpagesize.
42823         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
42824
42825 2009-05-12  Bruno Haible  <bruno@clisp.org>
42826
42827         Tests for module 'alignof'.
42828         * modules/alignof-tests: New file.
42829         * tests/test-alignof.c: New file.
42830
42831 2009-05-12  Bruno Haible  <bruno@clisp.org>
42832
42833         Fix alignof macro.
42834         * lib/alignof.h (alignof): Remove special cases for AIX and HP-UX
42835         vendor compilers that are always correct.
42836
42837 2009-05-12  Bruno Haible  <bruno@clisp.org>
42838
42839         Make the MAP_ANONYMOUS detection work on HP-UX 11.
42840         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Check whether mmap exists, but
42841         not whether its fully works.
42842
42843 2009-05-12  Bruno Haible  <bruno@clisp.org>
42844
42845         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Add comments.
42846
42847 2009-05-12  Jim Meyering  <meyering@redhat.com>
42848
42849         * top/maint.mk: Adjust backslash alignment.
42850
42851 2009-05-11  Simon Josefsson  <simon@josefsson.org>
42852
42853         * top/maint.mk: Make $(srcdir)/build-aux configurable.
42854
42855 2009-05-11  Eric Blake  <ebb9@byu.net>
42856
42857         argp: avoid undefined behavior
42858         * lib/argp-fmtstream.c (weak_alias): Pass correct types to ctype
42859         macros.
42860
42861 2009-05-08  Simon Josefsson  <simon@josefsson.org>
42862
42863         * tests/test-vc-list-files-git.sh: Do git config of user.email and
42864         user.name to prevent git commit from complaining.
42865
42866 2009-05-10  Bruno Haible  <bruno@clisp.org>
42867
42868         * gnulib-tool (func_import, func_create_testdir, copy-file): Change
42869         sed_rewrite_old_files, sed_rewrite_new_files, sed_rewrite_files so that
42870         it rewrites every file name only once.
42871         Reported by Simon Josefsson. Helped by Ralf Wildenhues.
42872
42873 2009-05-08  Bruno Haible  <bruno@clisp.org>
42874
42875         * lib/sys_socket.in.h (_SS_PADSIZE): Use a conditional expression
42876         instead of 'max'.
42877
42878 2009-05-08  Simon Josefsson  <simon@josefsson.org>
42879
42880         * m4/sys_socket_h.m4: Test for ws2tcpip.h earlier, needed for
42881         sockaddr_storage test.
42882
42883 2009-05-07  Simon Josefsson  <simon@josefsson.org>
42884
42885         * modules/sys_socket (Makefile.am): Substitute
42886         HAVE_STRUCT_SOCKADDR_STORAGE.  Depend on alignof.
42887         * m4/sys_socket_h.m4: Check for sockaddr_storage.
42888         * lib/sys_socket.in.h (sockaddr_storage): Define when needed.
42889         * tests/test-sys_socket.c: Check sockaddr_storage.
42890
42891 2009-05-08  Bruno Haible  <bruno@clisp.org>
42892
42893         New module 'alignof'.
42894         * lib/alignof.h: New file.
42895         * modules/alignof: New file.
42896
42897 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
42898             Bruno Haible  <bruno@clisp.org>
42899
42900         Fix test-file-has-acl on FreeBSD.
42901         * tests/test-file-has-acl.sh: Also test a directory. On FreeBSD, the
42902         mask is implicitly added.
42903         * tests/test-file-has-acl.c: Include <signal.h>.
42904         (main): Terminate the test after 5 seconds.
42905         * modules/acl-tests (configure.ac): Check for alarm function.
42906
42907 2009-05-04  Bruno Haible  <bruno@clisp.org>
42908
42909         Exploit new semantics of AC_DEFUN_ONCE available since 2009-01-26.
42910         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Remove outdated comment.
42911         * modules/errno (configure.ac): Drop AC_REQUIRE.
42912         * m4/multiarch.m4 (gl_MULTIARCH): Remove outdated comment.
42913         * modules/multiarch (configure.ac): Drop AC_REQUIRE.
42914
42915 2009-05-04  Simon Josefsson  <simon@josefsson.org>
42916
42917         * modules/glob-tests: New module.
42918         * tests/test-glob.c: Add.
42919
42920 2009-05-04  Simon Josefsson  <simon@josefsson.org>
42921
42922         * modules/fnmatch-tests: New module.
42923         * tests/test-fnmatch.c: Add.
42924
42925 2009-05-04  Eric Blake  <ebb9@byu.net>
42926
42927         maint: make the new no-submodule-changes rule VPATH-safe
42928         * top/maint.mk (no-submodule-changes): Don't assume a srcdir build.
42929
42930 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
42931             Bruno Haible  <bruno@clisp.org>
42932
42933         acl: Fix infinite loop on FreeBSD.
42934         * lib/acl_entries.c (acl_entries) [Linux, FreeBSD]: Fix interpretation
42935         of return value from acl_get_entry.
42936         * lib/file-has-acl.c (acl_access_nontrivial) [Linux, FreeBSD]:
42937         Likewise.
42938
42939 2009-05-03  Bruno Haible  <bruno@clisp.org>
42940
42941         * lib/acl-internal.h (acl_entries): Clarify return value.
42942         * lib/acl_entries.c (acl_entries): Likewise.
42943
42944 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
42945
42946         Bug fix in acl module.
42947         * lib/set-mode-acl.c: Use correct struct with ACL_SETACL.
42948
42949 2009-05-03  Bruno Haible  <bruno@clisp.org>
42950
42951         Create gperf-generated file in the source dir, not in the build dir.
42952         * modules/iconv_open (iconv_open-aix.h, iconv_open-hpux.h,
42953         iconv_open-irix.h, iconv_open-osf.h): Create file in the source tree.
42954         * modules/unicase/locale-language (unicase/locale-languages.h):
42955         Likewise.
42956         * modules/unicase/special-casing (unicase/special-casing-table.h):
42957         Likewise.
42958         * modules/unictype/property-byname (unictype/pr_byname.h): Likewise.
42959         * modules/unictype/scripts (unictype/scripts_byname.h): Likewise.
42960         * modules/uninorm/composition (uninorm/composition-table.h): Likewise.
42961         Reported by Ralf Wildenhues.
42962
42963 2009-05-03  Bruno Haible  <bruno@clisp.org>
42964
42965         * modules/fnmatch (Description, configure.ac): Taken from
42966         fnmatch-posix.
42967         * modules/fnmatch-posix: Turn into a symbolic reference to the
42968         'fnmatch' module, and deprecate.
42969         * doc/posix-functions/fnmatch.texi: Mention the fnmatch module.
42970
42971 2009-05-03  Bruno Haible  <bruno@clisp.org>
42972
42973         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF,
42974         gl_PREREQ_VASNPRINTF_LONG_DOUBLE): Define through AC_DEFUN_ONCE.
42975         Reported by Ralf Wildenhues.
42976
42977 2009-05-04  Simon Josefsson  <simon@josefsson.org>
42978
42979         * m4/fnmatch.m4: Fix fnmatch re-define.
42980
42981 2009-04-27  David Bartley  <dtbartle@csclub.uwaterloo.ca>
42982
42983         priv-set: new module and tests; adapt write-any-file
42984         * lib/priv-set.c: New file.
42985         * lib/priv-set.h: New file.
42986         * lib/unlinkdir.c: Make cannot_unlink_dir thread-safe.
42987         * lib/write-any-file.c: Simplify by using priv-set module.
42988         * m4/priv-set.m4: New file.
42989         * modules/priv-set: New file.
42990         * modules/unlinkdir: Add dependency on priv-set module.
42991         * modules/write-any-file: Likewise.
42992
42993         Tests for module 'priv-set'.
42994         * modules/priv-set-tests: New file.
42995         * tests/test-priv-set.c: New file.
42996
42997 2009-05-03  Jim Meyering  <meyering@redhat.com>
42998             Bruno Haible  <bruno@clisp.org>
42999
43000         * lib/propername.c (proper_name_utf8): Ignore no-op translations;
43001         use the converted UTF-8 variant of the name instead.
43002
43003 2009-05-03  Jim Meyering  <meyering@redhat.com>
43004
43005         tests: tighten some getdate tests
43006         * tests/test-getdate.c (main): Tighten tests: require equality,
43007         not just greater than.  Set TZ envvar to UTC0.
43008
43009 2009-05-03  Giuseppe Scrivano  <gscrivano@gnu.org>
43010
43011         getdate: correctly interpret "next monday" when run on a Monday
43012         * lib/getdate.y (get_date): Correct the calculation of tm_mday so
43013         that e.g., "next tues" (when run on a tuesday) results in a date
43014         that is one week in the future, and not today's date.
43015         I.e., add a week when the wday is the same as the current one.
43016         Reported by Tom Broadhurst in http://savannah.gnu.org/bugs/?25406,
43017         and earlier by Martin Bernreuther and Jan Minář.
43018         * tests/test-getdate.c (main): Check that "next DAY" is always in
43019         the future and that "last DAY" is always in the past.
43020
43021 2009-05-02  Jim Meyering  <meyering@redhat.com>
43022
43023         build: ensure that a release build fails when a submodule is unclean
43024         * top/maint.mk (no-submodule-changes): New rule.
43025         (alpha beta major): Depend on it.
43026
43027 2009-05-02  Bruno Haible  <bruno@clisp.org>
43028
43029         Remove incompatibility between modules fnmatch-posix and fnmatch-gnu.
43030         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX, gl_FUNC_FNMATCH_GNU): Use a
43031         shell variable gl_fnmatch_required to detect which variant is
43032         requested.
43033         (_AC_FUNC_FNMATCH_IF, _AC_LIBOBJ_FNMATCH): Remove macros. Inlined into
43034         gl_FUNC_FNMATCH_POSIX.
43035         * gnulib-tool (func_create_testdir, func_create_megatestdir): Don't
43036         exclude fnmatch-posix.
43037
43038 2009-05-02  Bruno Haible  <bruno@clisp.org>
43039
43040         Relicense mbsrtowcs and strnlen1 under LGPLv2+.
43041         * modules/mbsrtowcs (License): Change to LGPLv2+.
43042         * modules/strnlen1 (License): Likewise.
43043         Reported by Simon Josefsson.
43044
43045 2009-05-02  Bruno Haible  <bruno@clisp.org>
43046
43047         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Say "guessing no" instead of
43048         "cross".
43049         (gl_FUNC_FNMATCH_POSIX, gl_FUNC_FNMATCH_GNU): Update. Don't assume that
43050         gnulib-tool was called with option --source-base=lib.
43051
43052 2009-05-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
43053
43054         Use automake *-local hooks without commands, for extensibility.
43055         * modules/localcharset (Makefile.am): Rename install-exec-local
43056         rule to install-exec-localcharset, and make it a prerequisite of
43057         install-exec-local.  Likewise, rename the uninstall-local rule to
43058         uninstall-localcharset, and make it a prerequisite of the former.
43059
43060 2009-05-01  Bruno Haible  <bruno@clisp.org>
43061
43062         * lib/wchar.in.h (wcsnrtombs): Define if REPLACE_WCSNRTOMBS is 1.
43063         * m4/wcsnrtombs.m4 (gl_FUNC_WCSRTOMBS): Invoke gl_MBSTATE_T_BROKEN, and
43064         set REPLACE_WCSNRTOMBS if mbstate_t must be replaced.
43065         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCSNRTOMBS.
43066         * modules/wchar (Makefile.am): Substitute REPLACE_WCSNRTOMBS.
43067         * modules/wcsnrtombs (Files): Add m4/mbrtowc.m4, m4/locale-ja.m4,
43068         m4/locale-zh.m4, m4/codeset.m4.
43069
43070         * m4/wcsrtombs.m4 (gl_FUNC_WCSNRTOMBS): Invoke gl_MBSTATE_T_BROKEN, and
43071         set REPLACE_WCSRTOMBS if mbstate_t must be replaced.
43072         * modules/wcsrtombs (Files): Add m4/mbrtowc.m4, m4/locale-ja.m4,
43073         m4/locale-zh.m4.
43074
43075         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Invoke gl_MBSTATE_T_BROKEN, and set
43076         REPLACE_WCRTOMB if mbstate_t must be replaced.
43077         * modules/wcrtomb (Files): Add m4/mbrtowc.m4.
43078         Reported by Jens Rehsack <rehsack@googlemail.com> via Eric Blake.
43079
43080 2009-05-01  Bruno Haible  <bruno@clisp.org>
43081
43082         Avoid compiler warnings when redefining macros defined by <libintl.h>.
43083         * lib/gettext.h [!ENABLE_NLS] (gettext, dgettext, dcgettext, ngettext,
43084         dngettext, dcngettext, textdomain, bindtextdomain,
43085         bind_textdomain_codeset): Undefine before redefining.
43086
43087 2009-04-30  Bruno Haible  <bruno@clisp.org>
43088
43089         Fix bug introduced on 2009-04-25.
43090         * lib/math.in.h (gl_signbitf_OPTIMIZED_MACRO,
43091         gl_signbitd_OPTIMIZED_MACRO, gl_signbitl_OPTIMIZED_MACRO): New macros.
43092         * lib/signbitf.c (gl_signbitd): Undefine if gl_signbitf_OPTIMIZED_MACRO
43093         is defined.
43094         * lib/signbitd.c (gl_signbitd): Undefine if gl_signbitd_OPTIMIZED_MACRO
43095         is defined.
43096         * lib/signbitl.c (gl_signbitd): Undefine if gl_signbitl_OPTIMIZED_MACRO
43097         is defined.
43098         Reported by Elbert_Pol <elbert.pol@gmail.com>.
43099
43100 2009-04-28  Bruno Haible  <bruno@clisp.org>
43101
43102         Comment tweaks.
43103         * lib/unistr.h (u*_cmp2): Clarify what memcmp2 is.
43104         * lib/uninorm.h (u*_normxfrm): Fix description of return value.
43105         * lib/unicase.h (u*_casexfrm): Likewise.
43106         Reported by Paolo Bonzini.
43107
43108 2009-04-28  Bruno Haible  <bruno@clisp.org>
43109
43110         Fix a compilation error.
43111         * lib/mbsrtowcs-state.c (_gl_mbsrtowcs_state): Fix initializer.
43112         * lib/wcsrtombs-state.c (_gl_wcsrtombs_state): Likewise.
43113         Reported by Jim Meyering.
43114
43115 2009-04-27  Bruno Haible  <bruno@clisp.org>
43116
43117         New module 'libunistring'.
43118         * modules/libunistring: New file.
43119         * m4/libunistring.m4: New file.
43120         * MODULES.html.sh (Unicode string functions): Add it.
43121
43122 2009-04-27  Eric Blake  <ebb9@byu.net>
43123
43124         maint.mk: allow package-specific header to provide <config.h>
43125         * top/maint.mk (sc_require_config_h): New variable.
43126         (sc_require_config_h, sc_require_config_h_first): Use it.
43127
43128 2009-04-27  Simon Josefsson  <simon@josefsson.org>
43129
43130         * top/maint.mk (sc_avoid_if_before_free): Except
43131         useless-if-before-free script.
43132
43133 2009-04-27  Eric Blake  <ebb9@byu.net>
43134
43135         maintainer-makefile: depend on all required helper scripts
43136         * modules/maintainer-makefile (Depends-on): Add vc-list-files and
43137         useless-if-before-free.
43138         * top/maint.mk (VC_LIST, sc_avoid_if_before_free): Use local
43139         version, rather than assuming gnulib checkout is available.
43140         Reported by Simen Josefsson.
43141
43142 2009-04-26  Bruno Haible  <bruno@clisp.org>
43143
43144         Make the lib vs. lib64 recognition work on openSUSE 11 with "gcc -m32".
43145         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): Ignore paths that end in
43146         "../" or "..".
43147
43148 2009-04-26  Bruno Haible  <bruno@clisp.org>
43149
43150         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Accept a fifth argument.
43151         * m4/libsigsegv.m4 (gl_LIBSIGSEGV): Simplify by using
43152         AC_LIB_HAVE_LINKFLAGS.
43153
43154 2009-04-26  Bruno Haible  <bruno@clisp.org>
43155
43156         Simplify calling convention of u*_conv_from_encoding.
43157         * lib/uniconv.h (u8_conv_from_encoding, u16_conv_from_encoding,
43158         u32_conv_from_encoding): Expect a resultbuf argument and return the
43159         result directly as a pointer.
43160         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Likewise.
43161         * lib/uniconv/u-conv-from-enc.h (FUNC): Likewise.
43162         * lib/uniconv/u-strconv-from-enc.h (FUNC): Update.
43163         * lib/unicase/ulc-casecmp.c (ulc_u8_casefold): Update.
43164         * lib/unicase/ulc-casexfrm.c (ulc_casexfrm): Update.
43165         * lib/unilbrk/ulc-possible-linebreaks.c (ulc_possible_linebreaks):
43166         Update.
43167         * lib/unilbrk/ulc-width-linebreaks.c (ulc_width_linebreaks): Update.
43168         * lib/uniwbrk/ulc-wordbreaks.c (ulc_wordbreaks): Update.
43169         * lib/vasnprintf.c (VASNPRINTF): Update.
43170         * tests/uniconv/test-u8-conv-from-enc.c (main): Update.
43171         * tests/uniconv/test-u16-conv-from-enc.c (main): Update.
43172         * tests/uniconv/test-u32-conv-from-enc.c (main): Update.
43173         * NEWS: Mention the change.
43174
43175 2009-04-26  Bruno Haible  <bruno@clisp.org>
43176
43177         Simplify calling convention of u*_conv_to_encoding.
43178         * lib/uniconv.h (u8_conv_to_encoding, u16_conv_to_encoding,
43179         u32_conv_to_encoding): Expect a resultbuf argument and return the
43180         result directly as a pointer.
43181         * lib/uniconv/u8-conv-to-enc.c (u8_conv_to_encoding): Likewise.
43182         * lib/uniconv/u-conv-to-enc.h (FUNC): Likewise. Preserve errno while
43183         freeing scaled_offsets if mem_iconveha failed.
43184         * lib/unicase/u-casexfrm.h (FUNC): Update.
43185         * lib/uninorm/u-normxfrm.h (FUNC): Update.
43186         * lib/vasnprintf.c (VASNPRINTF): Update.
43187         * tests/uniconv/test-u8-conv-to-enc.c (main): Update.
43188         * tests/uniconv/test-u16-conv-to-enc.c (main): Update.
43189         * tests/uniconv/test-u32-conv-to-enc.c (main): Update.
43190         * NEWS: Mention the change.
43191
43192 2009-04-26  Bruno Haible  <bruno@clisp.org>
43193
43194         Avoid test failures on AIX and OSF/1.
43195         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Avoid calling
43196         malloc(0).
43197         * lib/uniconv/u8-conv-to-enc.c (u8_conv_to_encoding): Likewise.
43198         * lib/unilbrk/ulc-possible-linebreaks.c (ulc_possible_linebreaks):
43199         Likewise.
43200         * lib/unilbrk/ulc-width-linebreaks.c (ulc_width_linebreaks): Likewise.
43201         * lib/uniwbrk/ulc-wordbreaks.c (ulc_wordbreaks): Likewise.
43202         * lib/uniconv/u-conv-to-enc.h (FUNC): Likewise. Fix memory leak.
43203         * lib/unistr/u-cpy-alloc.h (FUNC): Call malloc(1) instead of malloc(0).
43204         * doc/posix-functions/malloc.texi: Document the portability problem
43205         related to malloc(0).
43206
43207 2009-04-26  Bruno Haible  <bruno@clisp.org>
43208
43209         * modules/unistr/u8-cpy-alloc (Depends-on): Add malloc-posix.
43210         * modules/unistr/u16-cpy-alloc (Depends-on): Likewise.
43211         * modules/unistr/u32-cpy-alloc (Depends-on): Likewise.
43212
43213 2009-04-25  Bruno Haible  <bruno@clisp.org>
43214
43215         Avoid link error when creating a namespace clean library.
43216         * lib/math.in.h (gl_signbitf, gl_signbitd, gl_signbitl): Don't define
43217         as macro with arguments if already defined as an alias.
43218         * lib/signbitf.c (gl_signbitf): Don't undefine.
43219         * lib/signbitd.c (gl_signbitd): Don't undefine.
43220         * lib/signbitl.c (gl_signbitl): Don't undefine.
43221
43222 2009-04-25  Jim Meyering  <meyering@redhat.com>
43223
43224         vc-list-files: fix another quoting bug
43225         * build-aux/vc-list-files: Avoid sed backslash expansion
43226         of pathological directory names.
43227
43228 2009-04-25  Eric Blake  <ebb9@byu.net>
43229
43230         vc-list-files: fix shell quoting error
43231         * build-aux/vc-list-files: Protect against $ in $dir.  Normalize
43232         timestamp.
43233
43234 2009-04-25  Jim Meyering  <meyering@redhat.com>
43235
43236         vc-list-files: restore lost functionality with subdir argument
43237         * build-aux/vc-list-files: When given a non-"." sub-directory
43238         argument, substitute the $dir/ prefix back onto each resulting name.
43239         Otherwise, coreutils' root_tests check would fail.
43240
43241 2009-04-24  Eric Blake  <ebb9@byu.net>
43242
43243         vc-list-files: ignore git symlinks
43244         * build-aux/vc-list-files (.git): Use ls-tree and a filter, rather
43245         than ls-files, to ignore git symlinks.
43246
43247         maint.mk: import improvements from m4
43248         * top/maint.mk (VC-tag): Use signing key from cfg.mk.
43249         (move_if_change): Delete unused macro.
43250         (news-date-check, vc-diff-check): Support VPATH builds.
43251         (announcement): Likewise.  Split --bootstrap-tools list...
43252         (boostrap-tools): ...into separate list, which can be overridden
43253         in cfg.mk.
43254         (sc_avoid_if_before_free): Point to $(gnulib_dir), rather than
43255         requiring dependency on useless-if-before-free module.
43256         (VC_LIST, VC_LIST_EXCEPT): Likewise for vc-list-files module.
43257         Support VPATH builds.
43258
43259 2009-04-24  Jim Meyering  <meyering@redhat.com>
43260
43261         maint.mk: remove coreutils-specific rules and variables
43262         * top/maint.mk (bin, taint-distcheck, coreutils-path-check, t): Remove.
43263         (fake_home, install-transform-check, my-instcheck, pfx, TMPDIR): Remove.
43264         (t_prefix, t_taint, tp, warn_cflags, write_loser, my-distcheck): Remove.
43265
43266         maint.mk: remove obsolete rule
43267         * top/maint.mk (rel-check): Remove rule.
43268         (WGET, WGETFLAGS): Remove now-unused variables.
43269
43270 2009-04-24  Simon Josefsson  <simon@josefsson.org>
43271
43272         * top/maint.mk (makefile-check): Renamed to sc_makefile_check for
43273         consistency.
43274
43275         * modules/vc-list-files-tests (TESTS_ENVIRONMENT): Use
43276         '$(PATH_SEPARATOR)' instead of ':'.
43277
43278 2009-04-24  Simon Josefsson  <simon@josefsson.org>
43279
43280         * lib/getopt1.c (main): Use 'const' for static array.
43281
43282 2009-04-24  Simon Josefsson  <simon@josefsson.org>
43283
43284         * top/maint.mk: Sync with coreutils.
43285         * NEWS: Explain incompatibilities.
43286
43287 2009-04-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
43288             Bruno Haible  <bruno@clisp.org>
43289
43290         Fix cross-compilation results.
43291         * m4/btowc.m4 (gl_FUNC_BTOWC): Use no-op statement, rather than empty
43292         statement, as third argument of AC_TRY_RUN.
43293         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
43294         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL):
43295         Likewise.
43296         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
43297         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION, gl_WCSRTOMBS_NULL):
43298         Likewise.
43299         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
43300         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise. Update for AIX 4.3.
43301         * doc/posix-functions/wcrtomb.texi: Mention the bug on AIX 4.3.
43302
43303 2009-04-20  Bruno Haible  <bruno@clisp.org>
43304
43305         Avoid test failure on mingw.
43306         * tests/uniwidth/test-uc_width2.sh: Convert newlines in output.
43307
43308 2009-04-20  Bruno Haible  <bruno@clisp.org>
43309
43310         Avoid compilation error on mingw.
43311         * modules/localename-tests (Depends-on): Add locale.
43312
43313 2009-04-19  Bruno Haible  <bruno@clisp.org>
43314
43315         Support for building a shared library on Windows platforms.
43316         * tests/uninorm/test-nfc.c (n): Don't define if WOE32DLL.
43317         (main): Test the presence of UNINORM_NFC here.
43318         * tests/uninorm/test-nfd.c (n): Don't define if WOE32DLL.
43319         (main): Test the presence of UNINORM_NFD here.
43320         * tests/uninorm/test-nfkc.c (n): Don't define if WOE32DLL.
43321         (main): Test the presence of UNINORM_NFKC here.
43322         * tests/uninorm/test-nfkd.c (n): Don't define if WOE32DLL.
43323         (main): Test the presence of UNINORM_NFKD here.
43324
43325 2009-04-19  Bruno Haible  <bruno@clisp.org>
43326
43327         Avoid a compiler warning.
43328         * tests/uninorm/test-u32-normalize-big.c (read_normalization_test_file):
43329         Change type of variable 'sequence'.
43330
43331 2009-04-19  Bruno Haible  <bruno@clisp.org>
43332
43333         * modules/configmake (Makefile.am): When the contents of configmake.h
43334         does not change, arrange to preserve its modification time.
43335
43336 2009-04-17  Simon Josefsson  <simon@josefsson.org>
43337
43338         * top/maint.mk (PO_DOMAIN): New variable, allows overriding of
43339         gettext domain.
43340
43341 2009-04-16  Jim Meyering  <meyering@redhat.com>
43342
43343         useless-if-before-free: improve conversion code
43344         * build-aux/useless-if-before-free: Adjust code-in-comment to match
43345         "...!= 0" as well as "...!= NULL".  emacs has one of the former.
43346
43347 2009-04-14  Bruno Haible  <bruno@clisp.org>
43348
43349         * modules/fcntl (Depends-on): Add extensions.
43350         * m4/fcntl_h.m4 (gl_FCNTL_H): Add a comment.
43351
43352 2009-04-12  Ben Pfaff  <blp@gnu.org>
43353
43354         Make fcntl module detect O_NOATIME, O_NOFOLLOW on GNU/Linux.
43355         * m4/fcntl_h.m4 (gl_FCNTL_H): Require AC_USE_SYSTEM_EXTENSIONS.
43356
43357 2009-03-20  Ben Pfaff  <blp@gnu.org>
43358
43359         Make rename replace existing destinations on Windows.
43360         * m4/rename.m4: Add test for Mingw.
43361         * lib/rename.c: Add rename replacement that uses MoveFileEx with
43362         MOVEFILE_REPLACE_EXISTING to replace existing destination files.
43363         * doc/posix-functions/rename.texi: Document.
43364
43365 2009-04-10  Bruno Haible  <bruno@clisp.org>
43366
43367         New include file "iconveh.h".
43368         * lib/iconveh.h: New file, extracted from lib/striconveh.h.
43369         * lib/striconveh.h: Include it.
43370         (enum iconv_ilseq_handler): Remove definition.
43371         * lib/striconveha.h: Include <stddef.h> and iconveh.h instead of
43372         striconveh.h.
43373         * lib/striconveha.c: Include striconveh.h.
43374         * lib/uniconv.h: Include iconveh.h instead of striconveh.h.
43375         * modules/striconveh (Files): Add lib/iconveh.h.
43376         * modules/uniconv/base (Files): Add lib/iconveh.h. Remove
43377         lib/striconveh.h.
43378
43379 2009-04-10  Bruno Haible  <bruno@clisp.org>
43380
43381         * lib/uniconv.h: Update comment.
43382
43383 2009-04-10  Bruno Haible  <bruno@clisp.org>
43384
43385         * lib/unistr/u8-mbtouc-aux.c: Inside libunistring, define the function
43386         always.
43387         * lib/unistr/u8-mbtouc-unsafe-aux.c: Likewise.
43388         * lib/unistr/u16-mbtouc-aux.c: Likewise.
43389         * lib/unistr/u16-mbtouc-unsafe-aux.c: Likewise.
43390         * lib/unistr/u8-mbtouc.c: Inside libunistring, include
43391         "unistring-notinline.h", so that the function gets defined always.
43392         * lib/unistr/u8-mbtouc-unsafe.c: Likewise.
43393         * lib/unistr/u8-uctomb.c: Likewise.
43394         * lib/unistr/u16-mbtouc.c: Likewise.
43395         * lib/unistr/u16-mbtouc-unsafe.c: Likewise.
43396         * lib/unistr/u16-uctomb.c: Likewise.
43397         * lib/unistr/u32-mbtouc.c: Likewise.
43398         * lib/unistr/u32-mbtouc-unsafe.c: Likewise.
43399         * lib/unistr/u32-uctomb.c: Likewise.
43400
43401 2009-04-10  Bruno Haible  <bruno@clisp.org>
43402
43403         Mark 'utime' obsolete.
43404         * modules/utime (Status, Notice): New sections.
43405         Suggested by Jim Meyering.
43406
43407         Fix cross-compile guess for utime test.
43408         * m4/utime.m4 (AC_FUNC_UTIME_NULL): Add definition from newest unstable
43409         autoconf.
43410         * doc/posix-functions/utime.texi: Give more precisions.
43411         Reported by Jan <ipif@ymail.com>.
43412
43413 2009-04-09  Kamil Dudka  <kdudka@redhat.com>
43414
43415         filevercmp: correct today's change
43416         * lib/filevercmp.c: Also handle coreutils' test inputs.
43417         * tests/test-filevercmp.c: Add inputs from one of coreutils' test scripts.
43418
43419         Fix regression in 'filevercmp' module. Thanks Sven Joachim
43420         for reporting it.
43421         * lib/filevercmp.c: Special handle for "", "." and "..".
43422         * tests/test-filevercmp.c: Enlarge the set suite.
43423
43424 2009-04-07  Jim Meyering  <meyering@redhat.com>
43425
43426         useless-if-before-free: show how to remove braced useless free, too
43427         * build-aux/useless-if-before-free: still only in a comment, though.
43428
43429 2009-04-07  Reuben Thomas  <rrt@sc3d.org>
43430
43431         maint.mk: import changes to syntax-check macros from coreutils
43432         * top/maint.mk (_prohibit_regexp, _header_without_use): Define.
43433         Use them in the relevant macros.
43434
43435 2009-04-06  Bruno Haible  <bruno@clisp.org>
43436
43437         Fix unportable use of bit-fields.
43438         * lib/unicase/special-casing.h (struct special_casing_rule): Change the
43439         bit-field type from 'int' to 'signed int'. Otherwise Solaris cc,
43440         AIX xlc, and OSF/1 cc interpret it as 'unsigned int'.
43441
43442 2009-04-06  Bruno Haible  <bruno@clisp.org>
43443
43444         Avoid test failures on AIX and OSF/1.
43445         * tests/unicase/test-u8-casefold.c (check): Account for the possibility
43446         that malloc(0) = NULL.
43447         * tests/unicase/test-u8-tolower.c (check): Likewise.
43448         * tests/unicase/test-u8-totitle.c (check): Likewise.
43449         * tests/unicase/test-u8-toupper.c (check): Likewise.
43450         * tests/unicase/test-u16-casefold.c (check): Likewise.
43451         * tests/unicase/test-u16-tolower.c (check): Likewise.
43452         * tests/unicase/test-u16-totitle.c (check): Likewise.
43453         * tests/unicase/test-u16-toupper.c (check): Likewise.
43454         * tests/unicase/test-u32-casefold.c (check): Likewise.
43455         * tests/unicase/test-u32-tolower.c (check): Likewise.
43456         * tests/unicase/test-u32-totitle.c (check): Likewise.
43457         * tests/unicase/test-u32-toupper.c (check): Likewise.
43458         * tests/uninorm/test-u8-nfc.c (check): Likewise.
43459         * tests/uninorm/test-u8-nfd.c (check): Likewise.
43460         * tests/uninorm/test-u8-nfkc.c (check): Likewise.
43461         * tests/uninorm/test-u8-nfkd.c (check): Likewise.
43462         * tests/uninorm/test-u16-nfc.c (check): Likewise.
43463         * tests/uninorm/test-u16-nfd.c (check): Likewise.
43464         * tests/uninorm/test-u16-nfkc.c (check): Likewise.
43465         * tests/uninorm/test-u16-nfkd.c (check): Likewise.
43466         * tests/uninorm/test-u32-nfc.c (check): Likewise.
43467         * tests/uninorm/test-u32-nfd.c (check): Likewise.
43468         * tests/uninorm/test-u32-nfkc.c (check): Likewise.
43469         * tests/uninorm/test-u32-nfkd.c (check): Likewise.
43470
43471 2009-04-05  Bruno Haible  <bruno@clisp.org>
43472
43473         Work around an autoconf limitation.
43474         * gnulib-tool (func_emit_lib_Makefile_am): Omit the "Reproduce by"
43475         comment line if it would be longer than 3 KB.
43476
43477 2009-04-05  Bruno Haible  <bruno@clisp.org>
43478
43479         Avoid test failure with libiconv-1.13.
43480         * tests/test-striconveh.c (main): Allow result of libiconv 1.13 as one
43481         of the expected test results.
43482
43483 2009-04-05  Bruno Haible  <bruno@clisp.org>
43484
43485         * gnulib-tool (func_emit_lib_Makefile_am): Don't add the library to
43486         noinst_LTLIBRARIES if the Makefile.am in the same directory specifies
43487         that it should be installed.
43488
43489 2009-04-05  Bruno Haible  <bruno@clisp.org>
43490
43491         * gnulib-tool: New option --copy-file.
43492         (func_usage): Document it.
43493         (func_dest_tmpfilename): Moved out of func_import.
43494         (func_add_file, func_update_file): New functions, extracted from
43495         func_import.
43496         (func_import): Update.
43497
43498 2009-04-05  Karl Berry  <karl@gnu.org>
43499
43500         * README: prominently mention gnulib-tool.
43501         Rearrange sections so getting the code is near the top.
43502
43503 2009-04-05  Bruno Haible  <bruno@clisp.org>
43504
43505         * lib/unicase.h: Mention u*_cmp2.
43506         * lib/unicase/u-casecmp.h (FUNC): Invoke U_CMP2 instead of U_CMP.
43507         * lib/unicase/u8-casecmp.c: Use u8_cmp2 instead of u8_cmp.
43508         * lib/unicase/ulc-casecmp.c: Likewise.
43509         * lib/unicase/u16-casecmp.c: Use u16_cmp2 instead of u16_cmp.
43510         * lib/unicase/u32-casecmp.c: Use u32_cmp2 instead of u32_cmp.
43511         * modules/unicase/u8-casecmp (Depends-on): Add unistr/u8-cmp2, remove
43512         unistr/u8-cmp.
43513         * modules/unicase/ulc-casecmp (Depends-on): Likewise.
43514         * modules/unicase/u16-casecmp (Depends-on): Add unistr/u16-cmp2, remove
43515         unistr/u16-cmp.
43516         * modules/unicase/u32-casecmp (Depends-on): Add unistr/u32-cmp2, remove
43517         unistr/u32-cmp.
43518
43519         * lib/uninorm.h: Mention u*_cmp2.
43520         * lib/uninorm/u-normcmp.h (FUNC): Invoke U_CMP2 instead of U_CMP.
43521         * lib/uninorm/u8-normcmp.c: Use u8_cmp2 instead of u8_cmp.
43522         * lib/uninorm/u16-normcmp.c: Use u16_cmp2 instead of u16_cmp.
43523         * lib/uninorm/u32-normcmp.c: Use u32_cmp2 instead of u32_cmp.
43524         * modules/uninorm/u8-normcmp (Depends-on): Add unistr/u8-cmp2, remove
43525         unistr/u8-cmp.
43526         * modules/uninorm/u16-normcmp (Depends-on): Add unistr/u16-cmp2, remove
43527         unistr/u16-cmp.
43528         * modules/uninorm/u32-normcmp (Depends-on): Add unistr/u32-cmp2, remove
43529         unistr/u32-cmp.
43530
43531         New module 'unistr/u32-cmp2'.
43532         * lib/unistr/u32-cmp2.c: New file.
43533         * modules/unistr/u32-cmp2: New file.
43534
43535         New module 'unistr/u16-cmp2'.
43536         * lib/unistr/u16-cmp2.c: New file.
43537         * modules/unistr/u16-cmp2: New file.
43538
43539         New module 'unistr/u8-cmp2'.
43540         * lib/unistr.h (u8_cmp2, u16_cmp2, u32_cmp2): New declarations.
43541         * lib/unistr/u8-cmp2.c: New file.
43542         * lib/unistr/u-cmp2.h: New file.
43543         * modules/unistr/u8-cmp2: New file.
43544
43545 2009-04-05  Bruno Haible  <bruno@clisp.org>
43546
43547         * lib/unictype.h (uc_property_is_valid): New macro.
43548         * tests/unictype/test-pr_byname.c (main): Use it.
43549
43550         * lib/unistr.h: Doc fixes.
43551         * lib/uniconv.h: Doc fixes.
43552         * lib/unictype.h: Doc fixes.
43553
43554 2009-04-03  Paul Eggert  <eggert@cs.ucla.edu>
43555
43556         Port coreutils 7.2 to Solaris 8.
43557
43558         * modules/arpa_inet (arpa/inet.h): Depend on arpa_inet.in.h.
43559         * m4/inet_ntop.m4 (gl_INET_NTOP): Search for inet_ntop in -lnsl,
43560         for Solaris 8.  This is a bit of a hack, as it means it's the
43561         caller's responsibility to add -lnsl if needed, but most likely it
43562         won't be needed since only getaddrinfo uses this and getaddrinfo
43563         isn't needed on Solaris 8.
43564
43565         * modules/fnmatch (Depends-on): Add mbsrtowcs, to fix a porting
43566         problem to Solaris 8 encountered with coreutils 7.2, which
43567         resulted in a message "fnmatch.c:292: warning: passing argument 4
43568         of 'mbsrtowcs' from incompatible pointer type".  Also, add mbsinit
43569         at the suggestion of Bruno Haible, since fnmatch uses mbsinit.
43570
43571 2009-04-03  Simon Josefsson  <simon@josefsson.org>
43572
43573         * m4/ld-version-script.m4: Add FIXME comment.
43574
43575 2009-04-02  Simon Josefsson  <simon@josefsson.org>
43576
43577         * doc/ld-output-def.texi: Use DLL_VERSION instead of confusing
43578         SOVERSION variable.
43579
43580 2009-04-02  Bruno Haible  <bruno@clisp.org>
43581
43582         * Makefile (info, html, dvi, pdf): Combine the rules.
43583         Suggested by Jim Meyering.
43584
43585 2009-04-01  Bruno Haible  <bruno@clisp.org>
43586
43587         * Makefile (info, html, dvi, pdf): New targets.
43588         Reported by Reuben Thomas <rrt@sc3d.org>.
43589
43590 2009-04-01  Bruno Haible  <bruno@clisp.org>
43591
43592         * doc/gnulib-tool.texi (Invoking gnulib-tool): Document how gnulib-tool
43593         can be put into PATH.
43594         Reported by Reuben Thomas <rrt@sc3d.org>. Suggested by Karl Berry.
43595
43596 2009-04-01  Bruno Haible  <bruno@clisp.org>
43597
43598         * doc/lib-symbol-visibility.texi: Follow texinfo style conventions.
43599
43600 2009-04-01  Bruno Haible  <bruno@clisp.org>
43601
43602         Rename module 'visibility'.
43603         * modules/lib-symbol-visibility: Renamed from modules/visibility.
43604         * doc/lib-symbol-visibility.texi: Renamed from visibility.texi.
43605         * doc/gnulib.texi: Update.
43606         * MODULES.html.sh (Misc): Update.
43607         * NEWS: Mention the change.
43608
43609 2009-04-01  Simon Josefsson  <simon@josefsson.org>
43610
43611         * modules/lib-msvc-compat: New module.  Thanks to Bruno Haible
43612         <bruno@clisp.org>, Ralf Wildenhues <Ralf.Wildenhues@gmx.de>, and
43613         Eric Blake <ebb9@byu.net> for review.
43614         * MODULES.html.sh: Add lib-msvc-compat.
43615         * doc/gnulib.texi: Link to new section.
43616         * m4/ld-output-def.m4: New file.
43617         * doc/ld-output-def.texi: New file.
43618
43619 2009-04-01  Simon Josefsson  <simon@josefsson.org>
43620
43621         Rename ld-version-script to lib-symbol-versions.  Suggested by
43622         Bruno Haible <bruno@clisp.org>.
43623         * modules/ld-version-script: Renamed to lib-symbol-versions.
43624         * doc/ld-version-script.texi: Fix module name.
43625         * MODULES.html.sh: Add lib-symbol-versions.
43626
43627 2009-03-31  Simon Josefsson  <simon@josefsson.org>
43628
43629         * modules/u64-tests: New file.
43630         * tests/test-u64.c: New file.
43631
43632 2009-03-04  Simon Josefsson  <simon@josefsson.org>
43633
43634         * MODULES.html.sh: Mention u64.
43635         * modules/u64: New module.
43636         * modules/crypto/sha512: Depend on u64 module instead of providing
43637         u64.h.
43638
43639 2009-03-27  Eric Blake  <ebb9@byu.net>
43640
43641         test-strerror: make debugging EAI_SYSTEM easier
43642         * modules/getaddrinfo-tests (Depends-on): Add strerror.
43643         * test-getaddrinfo.c (simple) [ENABLE_DEBUGGING]: Report errno if
43644         failure was EAI_SYSTEM.
43645
43646 2009-03-25  Bruno Haible  <bruno@clisp.org>
43647
43648         Fix a problem with --enable-relocatable on Solaris 7.
43649         * modules/relocatable-prog-wrapper (Depends-on): Add environ. Needed
43650         since 2008-02-24.
43651
43652 2009-03-25  Eric Blake  <ebb9@byu.net>
43653
43654         test-sockets: avoid gcc warning
43655         * tests/test-sockets.c (main): Silence compiler warning.
43656
43657 2009-03-25  Paul Eggert  <eggert@cs.ucla.edu>
43658
43659         New modules nproc, pthread, contributed by Glen Lenker.
43660
43661         * MODULES.html.sh: Add pthread, nproc.
43662         * lib/nproc.c: New file.
43663         * lib/nproc.h: New file.
43664         * lib/pthread.in.h: New file.
43665         * m4/pthread.m4: New file.
43666         * modules/nproc: New file.
43667         * modules/pthread: New file.
43668
43669 2009-03-24  Simon Josefsson  <simon@josefsson.org>
43670
43671         * modules/unicase/locale-language-tests (test_locale_language_LDADD):
43672         New variable.
43673
43674 2009-03-24  Kamil Dudka  <kdudka@redhat.com>
43675
43676         filevercmp: handle simple~ and numbered.~3~ backup suffixes
43677         * lib/filevercmp.c: Handle simple~ and numbered.~3~ backup suffixes.
43678         * tests/test-filevercmp.c: Add tests for backup suffixes.
43679
43680 2009-03-24  Simon Josefsson  <simon@josefsson.org>
43681
43682         * modules/stdlib (Depends-on): Add stdint, needed when defining
43683         struct random_data on, for example, HP-UX 10.20.  Reported by
43684         Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
43685
43686 2009-03-24  Simon Josefsson  <simon@josefsson.org>
43687
43688         * lib/readline.c (readline): Call fflush on stdout after printing
43689         prompt.
43690
43691 2009-03-20  Bruno Haible  <bruno@clisp.org>
43692
43693         Remove dependency from 'close' module to -lws2_32 on native Windows.
43694         * lib/close-hook.h: New file.
43695         * lib/close-hook.c: New file.
43696         * lib/close.c: Include close-hook.h. Don't include <sys/socket.h>,
43697         w32sock.h.
43698         (_gl_close_fd_maybe_socket): Remove function.
43699         (rpl_close): Invoke execute_all_close_hooks instead of
43700         _gl_close_fd_maybe_socket.
43701         * lib/sockets.c: Include close-hook.h, w32sock.h.
43702         (close_fd_maybe_socket): New function, essentially from lib/close.c.
43703         (close_sockets_hook): New variable.
43704         (gl_sockets_startup): Register close_fd_maybe_socket as a hook.
43705         (gl_sockets_cleanup): Unregister it.
43706         * lib/unistd.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET): Remove macro.
43707         * m4/close.m4 (gl_REPLACE_CLOSE): Undo 2009-02-05 change.
43708         * modules/close-hook: New file.
43709         * modules/close (Files): Remove lib/w32sock.h.
43710         (Depends-on): Add close-hook.
43711         (Link): Remove section.
43712         * modules/sockets (Files): Add lib/w32sock.h.
43713         (Depends-on): Add close-hook.
43714         * modules/sys_socket (configure.ac): Remove gl_MODULE_INDICATOR
43715         invocation.
43716         * NEWS: Mention that LIB_CLOSE is gone.
43717
43718 2009-03-23  Eric Blake  <ebb9@byu.net>
43719
43720         signal-tests: test previous patch
43721         * tests/test-signal.c: New file.
43722         * modules/signal-tests: Likewise.
43723
43724         signal.h: always support 'volatile sig_atomic_t'
43725         * m4/signal_h.m4 (gl_SIGNAL_H): Check for AIX limitation.
43726         (gl_SIGNAL_H_DEFAULTS): Add a default.
43727         * modules/signal (Makefile.am): Substitute if needed.
43728         * lib/signal.in.h (sig_atomic_t): Redefine if needed, so that
43729         users can blindly add volatile.
43730         * doc/posix-headers/signal.texi (signal.h): Document it.
43731         Reported by Matthew Woehlke.
43732
43733 2009-03-23  Jim Meyering  <meyering@redhat.com>
43734
43735         pathmax: PATH_MAX: use pathconf only when available
43736         * lib/pathmax.h (PATH_MAX): Select the pathconf-using definition
43737         only if HAVE_PATHCONF is defined.  Patch by Sylvain Beucler.
43738         * m4/pathmax.m4 (gl_PATHMAX): Check for pathconf.
43739         This avoids a link failure in a PSP cross-compilation environment
43740         described in http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/17048
43741
43742         * lib/vasnprintf.c (divide): Fix typo in comment.
43743
43744 2009-03-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
43745
43746         * gnulib-tool (func_filter_filelist): Fix comment.
43747
43748 2009-03-20  Bruno Haible  <bruno@clisp.org>
43749
43750         Make sockets.h self-contained.
43751         * lib/sockets.c: Include sockets.h first.
43752         * lib/sockets.h: Include <sys/socket.h> before using the SOCKET type.
43753
43754 2009-03-19  Eric Blake  <ebb9@byu.net>
43755
43756         doc: mention more functions added in cygwin 1.7.0
43757         * doc/posix-functions/log2.texi: Mention recent cygwin 1.7.0
43758         addition.
43759         * doc/posix-functions/log2f.texi: Likewise.
43760
43761 2009-03-19  Jim Meyering  <meyering@redhat.com>
43762
43763         fsusage: avoid syntax error due to statement-before-declaration
43764         * lib/fsusage.c (get_fs_usage): Put warning-avoidance statement
43765         after all declarations.  Reported by Matthew Woehlke in
43766         http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/16231
43767
43768 2009-03-18  Eric Blake  <ebb9@byu.net>
43769
43770         build-aux/compile: sync from automake
43771         * build-aux/compile: New file, from automake.
43772         * config/srclist.txt: Mention build-aux/compile.
43773
43774 2009-03-17  Bruno Haible  <bruno@clisp.org>
43775
43776         * lib/git-merge-changelog.c: Fix typo in comment.
43777         Reported by Reuben Thomas <rrt@sc3d.org>.
43778
43779 2009-03-17  Reuben Thomas  <rrt@sc3d.org>
43780
43781         * m4/regex.m4: update and improve help for
43782         --without-included-regex.
43783
43784 2009-03-17  Simon Josefsson  <simon@josefsson.org>
43785
43786         * modules/isnanl-nolibm-tests (Files): Add tests/nan.h to avoid
43787         failure on missing include files.
43788
43789 2009-03-17  Eric Blake  <ebb9@byu.net>
43790
43791         doc: mention more functions added in cygwin 1.7.0
43792         * doc/posix-functions/fwprintf.texi: Mention recent cygwin 1.7.0
43793         addition.
43794         * doc/posix-functions/fwscanf.texi: Likewise.
43795         * doc/posix-functions/swprintf.texi: Likewise.
43796         * doc/posix-functions/swscanf.texi: Likewise.
43797         * doc/posix-functions/vfwprintf.texi: Likewise.
43798         * doc/posix-functions/vfwscanf.texi: Likewise.
43799         * doc/posix-functions/vswprintf.texi: Likewise.
43800         * doc/posix-functions/vswscanf.texi: Likewise.
43801         * doc/posix-functions/vwprintf.texi: Likewise.
43802         * doc/posix-functions/vwscanf.texi: Likewise.
43803         * doc/posix-functions/wcscasecmp.texi: Likewise.
43804         * doc/posix-functions/wcsdup.texi: Likewise.
43805         * doc/posix-functions/wcsftime.texi: Likewise.
43806         * doc/posix-functions/wcsncasecmp.texi: Likewise.
43807         * doc/posix-functions/wprintf.texi: Likewise.
43808         * doc/posix-functions/wscanf.texi: Likewise.
43809         * doc/glibc-functions/gethostbyname2.texi: Likewise.
43810
43811 2009-03-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
43812
43813         maint.mk: really add $(AM_MAKEFLAGS)
43814         * top/maint.mk (init-coverage, build-coverage): `$(AM_MAKEFLAGS)'
43815         was inadvertently omitted in the last commit.
43816         Spotted by Bruno Haible.
43817
43818         maint.mk: use $(MAKE) $(AM_MAKEFLAGS) not make
43819         * top/maint.mk (init-coverage, build-coverage): Use `$(MAKE)
43820         $(AM_MAKEFLAGS)' rather than plain `make'.
43821
43822         gnulib-tool: execute $MAKE not make
43823         * gnulib-tool: Default $MAKE to 'make'.
43824         (func_create_testdir, func_create_megatestdir): Use $MAKE rather
43825         than make.  Initialize $MAKE in the do-autobuild script.
43826
43827         gnulib-tool: use $MAKE not make in generated files
43828         * gnulib-tool (func_create_megatestdir): Use $MAKE rather than
43829         make, in generated files.  Initialize $MAKE in the do-autobuild
43830         script.
43831
43832         * top/GNUmakefile (_have-git-version-gen): Fix typo.
43833
43834         GNUmakefile: disable parallelism only for multiple, recursive targets
43835         * top/GNUmakefile (ALL_RECURSIVE_TARGETS): New macro; allow user
43836         additions in the Makefile.
43837         (AM_RECURSIVE_TARGETS): New macro, override only if not provided
43838         by Automake.
43839         (.NOTPARALLEL): Only disable parallel builds if multiple targets
43840         are listed on the command line and at least one of them is
43841         listed in $(ALL_RECURSIVE_TARGETS).
43842
43843 2009-03-14  Bruno Haible  <bruno@clisp.org>
43844
43845         * modules/unilbrk/u8-possible-linebreaks (Depends-on): Replace
43846         utf8-ucs4-unsafe with unistr/u8-mbtouc-unsafe.
43847         * modules/unilbrk/u8-width-linebreaks (Depends-on): Likewise.
43848         * modules/unilbrk/u16-possible-linebreaks (Depends-on): Replace
43849         utf16-ucs4-unsafe with unistr/u16-mbtouc-unsafe.
43850         * modules/unilbrk/u16-width-linebreaks (Depends-on): Likewise.
43851         * modules/unistr/u8-chr (Depends-on): Replace ucs4-utf8 with
43852         unistr/u8-uctomb.
43853         * modules/unistr/u8-strchr (Depends-on): Likewise.
43854         * modules/unistr/u8-strrchr (Depends-on): Likewise.
43855         * modules/unistr/u16-chr (Depends-on): Replace ucs4-utf16 with
43856         unistr/u16-uctomb.
43857         * modules/unistr/u16-strchr (Depends-on): Likewise.
43858         * modules/unistr/u16-strrchr (Depends-on): Likewise.
43859
43860 2009-03-12  Bruno Haible  <bruno@clisp.org>
43861
43862         Work around select() bug on Interix 3.5.
43863         * lib/sys_select.in.h (select): Also replace if REPLACE_SELECT is 1.
43864         * lib/select.c (rpl_select): Add an implementation for Unix platforms.
43865         * m4/select.m4: New file.
43866         * m4/sys_select_h.m4 (gl_SYS_SELECT_H_DEFAULTS): Initialize REPLACE_SELECT.
43867         * modules/sys_select (Makefile.am): Substitute REPLACE_SELECT.
43868         * modules/select (Files): Add m4/select.m4.
43869         (configure.ac): Move conditional to m4/select.m4. Invoke gl_FUNC_SELECT.
43870         * modules/nanosleep (Depends-on): Add select.
43871         * modules/poll (Depends-on): Likewise.
43872         * doc/posix-functions/select.texi: Mention the Interix bug.
43873         Reported by Markus Duft <mduft@gentoo.org>.
43874
43875         * lib/select.c: Renamed from lib/winsock-select.c.
43876         * modules/select (Files): Add lib/select.c, remove
43877         lib/winsock-select.c.
43878         (configure.ac): Update.
43879
43880 2009-03-12  Jim Meyering  <meyering@redhat.com>
43881
43882         avoid gcc warnings about unused macro definitions
43883         * lib/readtokens.c (STREQ): Remove unused definition.
43884         * lib/xmalloc.c (SIZE_MAX): Likewise.
43885         * lib/openat-die.c (N_): Likewise.
43886         * lib/mountlist.c (SIZE_MAX): Remove definition.
43887         Instead, include <stdint.h>.
43888         * lib/readutmp.c: Likewise.
43889         * modules/readutmp (Depends-on): Add stdint.
43890         * modules/mountlist (Depends-on): Add stdint.
43891         * lib/userspec.c (ISDIGIT): Move definition into #if block where used.
43892
43893 2009-03-10  Bruno Haible  <bruno@clisp.org>
43894
43895         Tests for module 'mbmemcasecoll'.
43896         * modules/mbmemcasecoll-tests: New file.
43897         * tests/test-mbmemcasecoll1.sh: New file.
43898         * tests/test-mbmemcasecoll2.sh: New file.
43899         * tests/test-mbmemcasecoll3.sh: New file.
43900         * tests/test-mbmemcasecoll.c: New file.
43901
43902         New module 'mbmemcasecoll'.
43903         * lib/mbmemcasecoll.h: New file.
43904         * lib/mbmemcasecoll.c: New file.
43905         * modules/mbmemcasecoll: New file.
43906
43907         * tests/test-mbmemcasecmp.h: New file, extracted from
43908         tests/test-mbmemcasecmp.c.
43909         * tests/test-mbmemcasecmp.c: Include test-mbmemcasecmp.h.
43910         (test_ascii, test_iso_8859_1, test_utf_8): Remove functions.
43911         (main): Update.
43912         * modules/mbmemcasecmp-tests (Files): Add tests/test-mbmemcasecmp.h.
43913
43914 2009-03-09  Bruno Haible  <bruno@clisp.org>
43915
43916         Tests for module 'mbmemcasecmp'.
43917         * modules/mbmemcasecmp-tests: New file.
43918         * tests/test-mbmemcasecmp1.sh: New file.
43919         * tests/test-mbmemcasecmp2.sh: New file.
43920         * tests/test-mbmemcasecmp3.sh: New file.
43921         * tests/test-mbmemcasecmp.c: New file.
43922
43923         New module 'mbmemcasecmp'.
43924         * lib/mbmemcasecmp.h: New file.
43925         * lib/mbmemcasecmp.c: New file.
43926         * modules/mbmemcasecmp: New file.
43927
43928 2009-03-09  Bruno Haible  <bruno@clisp.org>
43929
43930         Tests for module 'unicase/ulc-casecoll'.
43931         * modules/unicase/ulc-casecoll-tests: New file.
43932         * tests/unicase/test-ulc-casecoll1.sh: New file.
43933         * tests/unicase/test-ulc-casecoll2.sh: New file.
43934         * tests/unicase/test-ulc-casecoll.c: New file.
43935
43936         New module 'unicase/ulc-casecoll'.
43937         * lib/unicase.h (ulc_casecoll): New declaration.
43938         * lib/unicase/ulc-casecoll.c: New file.
43939         * modules/unicase/ulc-casecoll: New file.
43940
43941         New module 'unicase/ulc-casexfrm'.
43942         * lib/unicase.h (ulc_casexfrm): New declaration.
43943         * lib/unicase/ulc-casexfrm.c: New file.
43944         * modules/unicase/ulc-casexfrm: New file.
43945
43946 2009-03-09  Bruno Haible  <bruno@clisp.org>
43947
43948         Followup to 2008-12-22 commit: Remove unnecessary AC_FUNC_MBRTOWC
43949         invocations.
43950
43951         * m4/mbscasecmp.m4: Remove file.
43952         * modules/mbscasecmp (Files): Remove it and m4/mbrtowc.m4
43953         (configure.ac): Remove gl_FUNC_MBSCASECMP invocation.
43954
43955         * m4/mbscasestr.m4: Remove file.
43956         * modules/mbscasestr (Files): Remove it and m4/mbrtowc.m4
43957         (configure.ac): Remove gl_FUNC_MBSCASESTR invocation.
43958
43959         * m4/mbschr.m4: Remove file.
43960         * modules/mbschr (Files): Remove it and m4/mbrtowc.m4
43961         (configure.ac): Remove gl_FUNC_MBSCHR invocation.
43962
43963         * m4/mbscspn.m4: Remove file.
43964         * modules/mbscspn (Files): Remove it and m4/mbrtowc.m4
43965         (configure.ac): Remove gl_FUNC_MBSCSPN invocation.
43966
43967         * m4/mbslen.m4: Remove file.
43968         * modules/mbslen (Files): Remove it and m4/mbrtowc.m4
43969         (configure.ac): Remove gl_FUNC_MBSLEN invocation.
43970
43971         * m4/mbsncasecmp.m4: Remove file.
43972         * modules/mbsncasecmp (Files): Remove it and m4/mbrtowc.m4
43973         (configure.ac): Remove gl_FUNC_MBSNCASECMP invocation.
43974
43975         * m4/mbsnlen.m4: Remove file.
43976         * modules/mbsnlen (Files): Remove it and m4/mbrtowc.m4
43977         (configure.ac): Remove gl_FUNC_MBSNLEN invocation.
43978
43979         * m4/mbspbrk.m4: Remove file.
43980         * modules/mbspbrk (Files): Remove it and m4/mbrtowc.m4
43981         (configure.ac): Remove gl_FUNC_MBSPBRK invocation.
43982
43983         * m4/mbspcasecmp.m4: Remove file.
43984         * modules/mbspcasecmp (Files): Remove it and m4/mbrtowc.m4
43985         (configure.ac): Remove gl_FUNC_MBSPCASECMP invocation.
43986
43987         * m4/mbsrchr.m4: Remove file.
43988         * modules/mbsrchr (Files): Remove it and m4/mbrtowc.m4
43989         (configure.ac): Remove gl_FUNC_MBSRCHR invocation.
43990
43991         * m4/mbssep.m4: Remove file.
43992         * modules/mbssep (Files): Remove it and m4/mbrtowc.m4
43993         (configure.ac): Remove gl_FUNC_MBSSEP invocation.
43994
43995         * m4/mbsspn.m4: Remove file.
43996         * modules/mbsspn (Files): Remove it and m4/mbrtowc.m4
43997         (configure.ac): Remove gl_FUNC_MBSSPN invocation.
43998
43999         * m4/mbsstr.m4: Remove file.
44000         * modules/mbsstr (Files): Remove it and m4/mbrtowc.m4
44001         (configure.ac): Remove gl_FUNC_MBSSTR invocation.
44002
44003         * m4/mbstok_r.m4: Remove file.
44004         * modules/mbstok_r (Files): Remove it and m4/mbrtowc.m4
44005         (configure.ac): Remove gl_FUNC_MBSTOK_R invocation.
44006
44007         * m4/mbswidth.m4 (gl_MBSWIDTH): Remove AC_FUNC_MBRTOWC invocation.
44008
44009         * m4/quotearg.m4 (gl_QUOTEARG): Remove mbsinit test and
44010         AC_TYPE_MBSTATE_T, AC_FUNC_MBRTOWC invocations.
44011
44012         * modules/trim (configure.ac): Remove AC_FUNC_MBRTOWC invocation.
44013
44014 2009-03-08  Bruno Haible  <bruno@clisp.org>
44015
44016         Tests for module 'unicase/ulc-casecmp'.
44017         * modules/unicase/ulc-casecmp-tests: New file.
44018         * tests/unicase/test-ulc-casecmp1.sh: New file.
44019         * tests/unicase/test-ulc-casecmp2.sh: New file.
44020         * tests/unicase/test-ulc-casecmp.c: New file.
44021
44022         New module 'unicase/ulc-casecmp'.
44023         * lib/unicase.h (ulc_casecmp): New declaration.
44024         * lib/unicase/ulc-casecmp.c: New file.
44025         * lib/unicase/u-casecmp.h (FUNC): Change argument types to
44026         'const SRC_UNIT *'.
44027         * lib/unicase/u8-casecmp.c (SRC_UNIT): Define like UNIT.
44028         * lib/unicase/u16-casecmp.c (SRC_UNIT): Likewise.
44029         * lib/unicase/u32-casecmp.c (SRC_UNIT): Likewise.
44030         * modules/unicase/ulc-casecmp: New file.
44031
44032         Tests for module 'unicase/u32-is-cased'.
44033         * modules/unicase/u32-is-cased-tests: New file.
44034         * tests/unicase/test-u32-is-cased.c: New file.
44035
44036         Tests for module 'unicase/u16-is-cased'.
44037         * modules/unicase/u16-is-cased-tests: New file.
44038         * tests/unicase/test-u16-is-cased.c: New file.
44039
44040         Tests for module 'unicase/u8-is-cased'.
44041         * modules/unicase/u8-is-cased-tests: New file.
44042         * tests/unicase/test-u8-is-cased.c: New file.
44043         * tests/unicase/test-is-cased.h: New file.
44044
44045         New module 'unicase/u32-is-cased'.
44046         * lib/unicase/u32-is-cased.c: New file.
44047         * modules/unicase/u32-is-cased: New file.
44048
44049         New module 'unicase/u16-is-cased'.
44050         * lib/unicase/u16-is-cased.c: New file.
44051         * modules/unicase/u16-is-cased: New file.
44052
44053         New module 'unicase/u8-is-cased'.
44054         * lib/unicase/u8-is-cased.c: New file.
44055         * lib/unicase/u-is-cased.h: New file.
44056         * modules/unicase/u8-is-cased: New file.
44057
44058         Tests for module 'unicase/u32-is-casefolded'.
44059         * modules/unicase/u32-is-casefolded-tests: New file.
44060         * tests/unicase/test-u32-is-casefolded.c: New file.
44061
44062         Tests for module 'unicase/u16-is-casefolded'.
44063         * modules/unicase/u16-is-casefolded-tests: New file.
44064         * tests/unicase/test-u16-is-casefolded.c: New file.
44065
44066         Tests for module 'unicase/u8-is-casefolded'.
44067         * modules/unicase/u8-is-casefolded-tests: New file.
44068         * tests/unicase/test-u8-is-casefolded.c: New file.
44069         * tests/unicase/test-is-casefolded.h: New file.
44070
44071         New module 'unicase/u32-is-casefolded'.
44072         * lib/unicase/u32-is-casefolded.c: New file.
44073         * modules/unicase/u32-is-casefolded: New file.
44074
44075         New module 'unicase/u16-is-casefolded'.
44076         * lib/unicase/u16-is-casefolded.c: New file.
44077         * modules/unicase/u16-is-casefolded: New file.
44078
44079         New module 'unicase/u8-is-casefolded'.
44080         * lib/unicase/u8-is-casefolded.c: New file.
44081         * modules/unicase/u8-is-casefolded: New file.
44082
44083         Tests for module 'unicase/u32-is-titlecase'.
44084         * modules/unicase/u32-is-titlecase-tests: New file.
44085         * tests/unicase/test-u32-is-titlecase.c: New file.
44086
44087         Tests for module 'unicase/u16-is-titlecase'.
44088         * modules/unicase/u16-is-titlecase-tests: New file.
44089         * tests/unicase/test-u16-is-titlecase.c: New file.
44090
44091         Tests for module 'unicase/u8-is-titlecase'.
44092         * modules/unicase/u8-is-titlecase-tests: New file.
44093         * tests/unicase/test-u8-is-titlecase.c: New file.
44094         * tests/unicase/test-is-titlecase.h: New file.
44095
44096         New module 'unicase/u32-is-titlecase'.
44097         * lib/unicase/u32-is-titlecase.c: New file.
44098         * modules/unicase/u32-is-titlecase: New file.
44099
44100         New module 'unicase/u16-is-titlecase'.
44101         * lib/unicase/u16-is-titlecase.c: New file.
44102         * modules/unicase/u16-is-titlecase: New file.
44103
44104         New module 'unicase/u8-is-titlecase'.
44105         * lib/unicase/u8-is-titlecase.c: New file.
44106         * modules/unicase/u8-is-titlecase: New file.
44107
44108         Tests for module 'unicase/u32-is-lowercase'.
44109         * modules/unicase/u32-is-lowercase-tests: New file.
44110         * tests/unicase/test-u32-is-lowercase.c: New file.
44111
44112         Tests for module 'unicase/u16-is-lowercase'.
44113         * modules/unicase/u16-is-lowercase-tests: New file.
44114         * tests/unicase/test-u16-is-lowercase.c: New file.
44115
44116         Tests for module 'unicase/u8-is-lowercase'.
44117         * modules/unicase/u8-is-lowercase-tests: New file.
44118         * tests/unicase/test-u8-is-lowercase.c: New file.
44119         * tests/unicase/test-is-lowercase.h: New file.
44120
44121         New module 'unicase/u32-is-lowercase'.
44122         * lib/unicase/u32-is-lowercase.c: New file.
44123         * modules/unicase/u32-is-lowercase: New file.
44124
44125         New module 'unicase/u16-is-lowercase'.
44126         * lib/unicase/u16-is-lowercase.c: New file.
44127         * modules/unicase/u16-is-lowercase: New file.
44128
44129         New module 'unicase/u8-is-lowercase'.
44130         * lib/unicase/u8-is-lowercase.c: New file.
44131         * modules/unicase/u8-is-lowercase: New file.
44132
44133         Tests for module 'unicase/u32-is-uppercase'.
44134         * modules/unicase/u32-is-uppercase-tests: New file.
44135         * tests/unicase/test-u32-is-uppercase.c: New file.
44136
44137         Tests for module 'unicase/u16-is-uppercase'.
44138         * modules/unicase/u16-is-uppercase-tests: New file.
44139         * tests/unicase/test-u16-is-uppercase.c: New file.
44140
44141         Tests for module 'unicase/u8-is-uppercase'.
44142         * modules/unicase/u8-is-uppercase-tests: New file.
44143         * tests/unicase/test-u8-is-uppercase.c: New file.
44144         * tests/unicase/test-is-uppercase.h: New file.
44145
44146         New module 'unicase/u32-is-uppercase'.
44147         * lib/unicase/u32-is-uppercase.c: New file.
44148         * modules/unicase/u32-is-uppercase: New file.
44149
44150         New module 'unicase/u16-is-uppercase'.
44151         * lib/unicase/u16-is-uppercase.c: New file.
44152         * modules/unicase/u16-is-uppercase: New file.
44153
44154         New module 'unicase/u8-is-uppercase'.
44155         * lib/unicase/u8-is-uppercase.c: New file.
44156         * modules/unicase/u8-is-uppercase: New file.
44157
44158         New module 'unicase/u32-is-invariant'.
44159         * lib/unicase/u32-is-invariant.c: New file.
44160         * modules/unicase/u32-is-invariant: New file.
44161
44162         New module 'unicase/u16-is-invariant'.
44163         * lib/unicase/u16-is-invariant.c: New file.
44164         * modules/unicase/u16-is-invariant: New file.
44165
44166         New module 'unicase/u8-is-invariant'.
44167         * lib/unicase/u8-is-invariant.c: New file.
44168         * lib/unicase/invariant.h: New file.
44169         * lib/unicase/u-is-invariant.h: New file.
44170         * modules/unicase/u8-is-invariant: New file.
44171
44172         Tests for module 'unicase/u32-casecoll'.
44173         * modules/unicase/u32-casecoll-tests: New file.
44174         * tests/unicase/test-u32-casecoll.c: New file.
44175
44176         Tests for module 'unicase/u16-casecoll'.
44177         * modules/unicase/u16-casecoll-tests: New file.
44178         * tests/unicase/test-u16-casecoll.c: New file.
44179
44180         Tests for module 'unicase/u8-casecoll'.
44181         * modules/unicase/u8-casecoll-tests: New file.
44182         * tests/unicase/test-u8-casecoll.c: New file.
44183
44184         New module 'unicase/u32-casecoll'.
44185         * lib/unicase/u32-casecoll.c: New file.
44186         * modules/unicase/u32-casecoll: New file.
44187
44188         New module 'unicase/u16-casecoll'.
44189         * lib/unicase/u16-casecoll.c: New file.
44190         * modules/unicase/u16-casecoll: New file.
44191
44192         New module 'unicase/u8-casecoll'.
44193         * lib/unicase/u8-casecoll.c: New file.
44194         * lib/unicase/u-casecoll.h: New file.
44195         * modules/unicase/u8-casecoll: New file.
44196
44197         New module 'unicase/u32-casexfrm'.
44198         * lib/unicase/u32-casexfrm.c: New file.
44199         * modules/unicase/u32-casexfrm: New file.
44200
44201         New module 'unicase/u16-casexfrm'.
44202         * lib/unicase/u16-casexfrm.c: New file.
44203         * modules/unicase/u16-casexfrm: New file.
44204
44205         New module 'unicase/u8-casexfrm'.
44206         * lib/unicase/u8-casexfrm.c: New file.
44207         * lib/unicase/u-casexfrm.h: New file.
44208         * modules/unicase/u8-casexfrm: New file.
44209
44210         Tests for module 'unicase/u32-casecmp'.
44211         * modules/unicase/u32-casecmp-tests: New file.
44212         * tests/unicase/test-u32-casecmp.c: New file.
44213
44214         Tests for module 'unicase/u16-casecmp'.
44215         * modules/unicase/u16-casecmp-tests: New file.
44216         * tests/unicase/test-u16-casecmp.c: New file.
44217
44218         Tests for module 'unicase/u8-casecmp'.
44219         * modules/unicase/u8-casecmp-tests: New file.
44220         * tests/unicase/test-u8-casecmp.c: New file.
44221         * tests/unicase/test-casecmp.h: New file.
44222
44223         New module 'unicase/u32-casecmp'.
44224         * lib/unicase/u32-casecmp.c: New file.
44225         * modules/unicase/u32-casecmp: New file.
44226
44227         New module 'unicase/u16-casecmp'.
44228         * lib/unicase/u16-casecmp.c: New file.
44229         * modules/unicase/u16-casecmp: New file.
44230
44231         New module 'unicase/u8-casecmp'.
44232         * lib/unicase/u8-casecmp.c: New file.
44233         * lib/unicase/u-casecmp.h: New file.
44234         * modules/unicase/u8-casecmp: New file.
44235
44236         Tests for module 'unicase/u32-casefold'.
44237         * modules/unicase/u32-casefold-tests: New file.
44238         * tests/unicase/test-u32-casefold.c: New file.
44239
44240         Tests for module 'unicase/u16-casefold'.
44241         * modules/unicase/u16-casefold-tests: New file.
44242         * tests/unicase/test-u16-casefold.c: New file.
44243
44244         Tests for module 'unicase/u8-casefold'.
44245         * modules/unicase/u8-casefold-tests: New file.
44246         * tests/unicase/test-u8-casefold.c: New file.
44247
44248         New module 'unicase/u32-casefold'.
44249         * lib/unicase/u32-casefold.c: New file.
44250         * modules/unicase/u32-casefold: New file.
44251
44252         New module 'unicase/u16-casefold'.
44253         * lib/unicase/u16-casefold.c: New file.
44254         * modules/unicase/u16-casefold: New file.
44255
44256         New module 'unicase/u8-casefold'.
44257         * lib/unicase/u8-casefold.c: New file.
44258         * lib/unicase/u-casefold.h: New file.
44259         * modules/unicase/u8-casefold: New file.
44260
44261         New module 'unicase/tocasefold'.
44262         * lib/unicase/casefold.h: New file.
44263         * lib/unicase/tocasefold.c: New file.
44264         * lib/unicase/tocasefold.h: New file, generated by gen-uni-tables.c.
44265         * modules/unicase/tocasefold: New file.
44266
44267         Tests for module 'unicase/u32-totitle'.
44268         * modules/unicase/u32-totitle-tests: New file.
44269         * tests/unicase/test-u32-totitle.c: New file.
44270
44271         Tests for module 'unicase/u16-totitle'.
44272         * modules/unicase/u16-totitle-tests: New file.
44273         * tests/unicase/test-u16-totitle.c: New file.
44274
44275         Tests for module 'unicase/u8-totitle'.
44276         * modules/unicase/u8-totitle-tests: New file.
44277         * tests/unicase/test-u8-totitle.c: New file.
44278
44279         New module 'unicase/u32-totitle'.
44280         * lib/unicase/u32-totitle.c: New file.
44281         * modules/unicase/u32-totitle: New file.
44282
44283         New module 'unicase/u16-totitle'.
44284         * lib/unicase/u16-totitle.c: New file.
44285         * modules/unicase/u16-totitle: New file.
44286
44287         New module 'unicase/u8-totitle'.
44288         * lib/unicase/u8-totitle.c: New file.
44289         * lib/unicase/u-totitle.h: New file.
44290         * modules/unicase/u8-totitle: New file.
44291
44292         Tests for module 'unicase/u32-tolower'.
44293         * modules/unicase/u32-tolower-tests: New file.
44294         * tests/unicase/test-u32-tolower.c: New file.
44295
44296         Tests for module 'unicase/u16-tolower'.
44297         * modules/unicase/u16-tolower-tests: New file.
44298         * tests/unicase/test-u16-tolower.c: New file.
44299
44300         Tests for module 'unicase/u8-tolower'.
44301         * modules/unicase/u8-tolower-tests: New file.
44302         * tests/unicase/test-u8-tolower.c: New file.
44303
44304         New module 'unicase/u32-tolower'.
44305         * lib/unicase/u32-tolower.c: New file.
44306         * modules/unicase/u32-tolower: New file.
44307
44308         New module 'unicase/u16-tolower'.
44309         * lib/unicase/u16-tolower.c: New file.
44310         * modules/unicase/u16-tolower: New file.
44311
44312         New module 'unicase/u8-tolower'.
44313         * lib/unicase/u8-tolower.c: New file.
44314         * modules/unicase/u8-tolower: New file.
44315
44316         Tests for module 'unicase/u32-toupper'.
44317         * modules/unicase/u32-toupper-tests: New file.
44318         * tests/unicase/test-u32-toupper.c: New file.
44319
44320         Tests for module 'unicase/u16-toupper'.
44321         * modules/unicase/u16-toupper-tests: New file.
44322         * tests/unicase/test-u16-toupper.c: New file.
44323
44324         Tests for module 'unicase/u8-toupper'.
44325         * modules/unicase/u8-toupper-tests: New file.
44326         * tests/unicase/test-u8-toupper.c: New file.
44327
44328         New module 'unicase/u32-toupper'.
44329         * lib/unicase/u32-toupper.c: New file.
44330         * modules/unicase/u32-toupper: New file.
44331
44332         New module 'unicase/u16-toupper'.
44333         * lib/unicase/u16-toupper.c: New file.
44334         * modules/unicase/u16-toupper: New file.
44335
44336         New module 'unicase/u8-toupper'.
44337         * lib/unicase/u8-toupper.c: New file.
44338         * modules/unicase/u8-toupper: New file.
44339
44340         New module 'unicase/u32-casemap'.
44341         * lib/unicase/u32-casemap.c: New file.
44342         * modules/unicase/u32-casemap: New file.
44343
44344         New module 'unicase/u16-casemap'.
44345         * lib/unicase/u16-casemap.c: New file.
44346         * modules/unicase/u16-casemap: New file.
44347
44348         New module 'unicase/u8-casemap'.
44349         * lib/unicase/unicasemap.h: New file.
44350         * lib/unicase/u8-casemap.c: New file.
44351         * lib/unicase/u-casemap.h: New file.
44352         * modules/unicase/u8-casemap: New file.
44353
44354         New module 'unicase/special-casing'.
44355         * lib/unicase/special-casing.h: New file.
44356         * lib/unicase/special-casing.c: New file.
44357         * lib/unicase/special-casing-table.gperf: New file, generated by
44358         gen-uni-tables.c.
44359         * modules/unicase/special-casing: New file.
44360
44361         Tests for module 'unicase/locale-language'.
44362         * modules/unicase/locale-language-tests: New file.
44363         * tests/unicase/test-locale-language.sh: New file.
44364         * tests/unicase/test-locale-language.c: New file.
44365
44366         New module 'unicase/locale-language'.
44367         * lib/unicase/locale-language.c: New file.
44368         * lib/unicase/locale-languages.gperf: New file.
44369         * modules/unicase/locale-language: New file.
44370
44371         Generate more tables for case conversion and case folding.
44372         * lib/gen-uni-tables.c (SCC_*): New enum items.
44373         (struct special_casing_rule): New type.
44374         (casing_rules, num_casing_rules, allocated_casing_rules): New
44375         variables.
44376         (add_casing_rule, fill_casing_rules): New functions.
44377         (struct casefold_rule): New type.
44378         (casefolding_rules, num_casefolding_rules,
44379         allocated_casefolding_rules): New variables.
44380         (fill_casefolding_rules): New function.
44381         (unicode_casefold): New variable.
44382         (to_casefold, redistribute_casefolding_rules, compare_casing_rules,
44383         sort_casing_rules, output_casing_rules): New functions.
44384         (main): Accept to more arguments: SpecialCasing.txt and
44385         CaseFolding.txt. Invoke fill_casing_rules, fill_casefolding_rules,
44386         redistribute_casefolding_rules, sort_casing_rules, output_casing_rules.
44387         Output mapping for casefolding.
44388
44389         * lib/unicase.h: Include stdbool.h, uninorm.h.
44390         (u8_toupper, u16_toupper, u32_toupper, u8_tolower, u16_tolower,
44391         u32_tolower, u8_totitle, u16_totitle, u32_totitle): Add nf argument.
44392         (u8_casefold, u16_casefold, u32_casefold): Add iso639_language and nf
44393         arguments.
44394         (u8_casecmp, u16_casecmp, u32_casecmp): Add iso639_language, nf,
44395         resultp arguments.
44396         (u8_casexfrm, u16_casexfrm, u32_casexfrm): New declarations.
44397         (u8_casecoll, u16_casecoll, u32_casecoll): Add iso639_language, nf,
44398         resultp arguments.
44399         (u8_is_uppercase, u16_is_uppercase, u32_is_uppercase, u8_is_lowercase,
44400         u16_is_lowercase, u32_is_lowercase, u8_is_titlecase, u16_is_titlecase,
44401         u32_is_titlecase, u8_is_casefolded, u16_is_casefolded,
44402         u32_is_casefolded, u8_is_cased, u16_is_cased, u32_is_cased): New
44403         declarations.
44404         * modules/unicase/base (Depends-on): Add uninorm/base, stdbool.
44405
44406 2009-03-08  Bruno Haible  <bruno@clisp.org>
44407
44408         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp, u8_normcoll,
44409         u16_normcoll, u32_normcoll): Rename argument 'result' to 'resultp'.
44410         * lib/uninorm/u-normcmp.h (FUNC): Likewise.
44411         * lib/uninorm/u-normcoll.h (FUNC): Likewise.
44412
44413 2009-03-07  Bruno Haible  <bruno@clisp.org>
44414
44415         Adjust u*_normcmp, u*_normcoll API.
44416         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp, u8_normcoll,
44417         u16_normcoll, u32_normcoll): Change failure conventions.
44418         * lib/uninorm/u-normcmp.h (FUNC): Upon failure, store the error code in
44419         errno and return -1.
44420         * lib/uninorm/u-normcoll.h (FUNC): Likewise.
44421
44422 2009-03-07  Bruno Haible  <bruno@clisp.org>
44423
44424         Tests for module 'uninorm/u32-normcoll'.
44425         * modules/uninorm/u32-normcoll-tests: New file.
44426         * tests/uninorm/test-u32-normcoll.c: New file.
44427
44428         Tests for module 'uninorm/u16-normcoll'.
44429         * modules/uninorm/u16-normcoll-tests: New file.
44430         * tests/uninorm/test-u16-normcoll.c: New file.
44431
44432         Tests for module 'uninorm/u8-normcoll'.
44433         * modules/uninorm/u8-normcoll-tests: New file.
44434         * tests/uninorm/test-u8-normcoll.c: New file.
44435
44436 2009-03-07  Bruno Haible  <bruno@clisp.org>
44437
44438         * tests/uninorm/test-u32-normcmp.h: New file, extracted from
44439         tests/uninorm/test-u32-normcmp.c.
44440         * tests/uninorm/test-u32-normcmp.c: Include it.
44441         (test_nonascii): New function, extracted from main. Add some more
44442         tests.
44443         (main): Invoke test_ascii and test_nonascii.
44444         * modules/uninorm/u32-normcmp-tests (Files): Add
44445         tests/uninorm/test-u32-normcmp.h.
44446         (Depends-on): Remove uninorm/u32-normcmp.
44447
44448         * tests/uninorm/test-u16-normcmp.h: New file, extracted from
44449         tests/uninorm/test-u16-normcmp.c.
44450         * tests/uninorm/test-u16-normcmp.c: Include it.
44451         (test_nonascii): New function, extracted from main. Add some more
44452         tests.
44453         (main): Invoke test_ascii and test_nonascii.
44454         * modules/uninorm/u16-normcmp-tests (Files): Add
44455         tests/uninorm/test-u16-normcmp.h.
44456         (Depends-on): Remove uninorm/u16-normcmp.
44457
44458         * tests/uninorm/test-u8-normcmp.h: New file, extracted from
44459         tests/uninorm/test-u8-normcmp.c.
44460         * tests/uninorm/test-u8-normcmp.c: Include it.
44461         (test_nonascii): New function, extracted from main. Add some more
44462         tests.
44463         (main): Invoke test_ascii and test_nonascii.
44464         * modules/uninorm/u8-normcmp-tests (Files): Add
44465         tests/uninorm/test-u8-normcmp.h.
44466         (Depends-on): Remove uninorm/u8-normcmp.
44467
44468 2009-03-07  Bruno Haible  <bruno@clisp.org>
44469
44470         New module 'uninorm/u32-normcoll'.
44471         * lib/uninorm/u32-normcoll.c: New file.
44472         * modules/uninorm/u32-normcoll: New file.
44473
44474         New module 'uninorm/u16-normcoll'.
44475         * lib/uninorm/u16-normcoll.c: New file.
44476         * modules/uninorm/u16-normcoll: New file.
44477
44478         New module 'uninorm/u8-normcoll'.
44479         * lib/uninorm.h (u8_normcoll, u16_normcoll, u32_normcoll): New
44480         declarations.
44481         * lib/uninorm/u8-normcoll.c: New file.
44482         * lib/uninorm/u-normcoll.h: New file.
44483         * modules/uninorm/u8-normcoll: New file.
44484
44485         New module 'uninorm/u32-normxfrm'.
44486         * lib/uninorm/u32-normxfrm.c: New file.
44487         * modules/uninorm/u32-normxfrm: New file.
44488
44489         New module 'uninorm/u16-normxfrm'.
44490         * lib/uninorm/u16-normxfrm.c: New file.
44491         * modules/uninorm/u16-normxfrm: New file.
44492
44493         New module 'uninorm/u8-normxfrm'.
44494         * lib/uninorm.h (u8_normxfrm, u16_normxfrm, u32_normxfrm): New
44495         declarations.
44496         * lib/uninorm/u8-normxfrm.c: New file.
44497         * lib/uninorm/u-normxfrm.h: New file.
44498         * modules/uninorm/u8-normxfrm: New file.
44499
44500 2009-03-07  Bruno Haible  <bruno@clisp.org>
44501
44502         * modules/uninorm/u8-normcmp (Depends-on): Add uninorm/base.
44503         * modules/uninorm/u16-normcmp (Depends-on): Likewise.
44504         * modules/uninorm/u32-normcmp (Depends-on): Likewise.
44505
44506 2009-03-07  Bruno Haible  <bruno@clisp.org>
44507
44508         New module 'memxfrm'.
44509         * lib/memxfrm.h: New file.
44510         * lib/memxfrm.c: New file.
44511         * modules/memxfrm: New file.
44512
44513 2009-03-07  Bruno Haible  <bruno@clisp.org>
44514
44515         New module 'memcmp2'.
44516         * lib/memcmp2.h: New file.
44517         * lib/memcmp2.c: New file.
44518         * modules/memcmp2: New file.
44519
44520 2009-03-07  Bruno Haible  <bruno@clisp.org>
44521
44522         Tests for module 'uninorm/decomposing-form'.
44523         * modules/uninorm/decomposing-form-tests: New file.
44524         * tests/uninorm/test-decomposing-form.c: New file.
44525
44526         New module 'uninorm/decomposing-form'.
44527         * lib/uninorm.h (uninorm_decomposing_form): New declaration.
44528         * lib/uninorm/normalize-internal.h (struct unicode_normalization_form):
44529         Add 'decomposing_variant' field.
44530         * lib/uninorm/decomposing-form.c: New file.
44531         * lib/uninorm/nfc.c (uninorm_nfc): Update.
44532         * lib/uninorm/nfd.c (uninorm_nfd): Update.
44533         * lib/uninorm/nfkc.c (uninorm_nfkc): Update.
44534         * lib/uninorm/nfkd.c (uninorm_nfkd): Update.
44535         * modules/uninorm/decomposing-form: New file.
44536         * modules/uninorm/nfc (Depends-on): Add uninorm/nfd.
44537         * modules/uninorm/nfkc (Depends-on): Add uninorm/nfkd.
44538
44539 2009-03-07  Bruno Haible  <bruno@clisp.org>
44540
44541         * lib/uninorm/u-normcmp.h (FUNC): Use stack=allocated buffers for small
44542         strings.
44543
44544 2009-03-06  Bruno Haible  <bruno@clisp.org>
44545
44546         Tests for module 'uninorm/u32-normcmp'.
44547         * tests/uninorm/test-u32-normcmp.c: New file.
44548         * modules/uninorm/u32-normcmp-tests: New file.
44549
44550         Tests for module 'uninorm/u16-normcmp'.
44551         * tests/uninorm/test-u16-normcmp.c: New file.
44552         * modules/uninorm/u16-normcmp-tests: New file.
44553
44554         Tests for module 'uninorm/u8-normcmp'.
44555         * tests/uninorm/test-u8-normcmp.c: New file.
44556         * modules/uninorm/u8-normcmp-tests: New file.
44557
44558         New module 'uninorm/u32-normcmp'.
44559         * lib/uninorm/u32-normcmp.c: New file.
44560         * modules/uninorm/u32-normcmp: New file.
44561
44562         New module 'uninorm/u16-normcmp'.
44563         * lib/uninorm/u16-normcmp.c: New file.
44564         * modules/uninorm/u16-normcmp: New file.
44565
44566         New module 'uninorm/u8-normcmp'.
44567         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp): New
44568         declarations.
44569         * lib/uninorm/u8-normcmp.c: New file.
44570         * lib/uninorm/u-normcmp.h: New file.
44571         * modules/uninorm/u8-normcmp: New file.
44572
44573 2009-03-06  Bruno Haible  <bruno@clisp.org>
44574
44575         * lib/w32spawn.h (dup_noinherit): Add cast, to avoid gcc warning.
44576         Reported by Eric Blake.
44577
44578 2009-03-06  Eric Blake  <ebb9@byu.net>
44579             Bruno Haible  <bruno@clisp.org>
44580
44581         * lib/spawni.c (__spawni) [WIN32_NATIVE]: Define as a stub.
44582         * modules/posix_spawn-tests (configure.ac): Define POSIX_SPAWN_PORTED
44583         condition.
44584         (Makefile.am): Do nothing if POSIX_SPAWN_PORTED is false.
44585         * modules/posix_spawnp-tests (configure.ac): Define POSIX_SPAWN_PORTED
44586         condition.
44587         (Makefile.am): Do nothing if POSIX_SPAWN_PORTED is false.
44588
44589 2009-03-06  Eric Blake  <ebb9@byu.net>
44590
44591         * lib/execute.c (execute) [WIN32_NATIVE]: Cast arguments of spawnvpe,
44592         to avoid compiler warnings.
44593         * lib/pipe.c (create_pipe) [WIN32_NATIVE]: Likewise.
44594
44595 2009-03-05  Bruno Haible  <bruno@clisp.org>
44596
44597         * tests/test-ftell.c (main): Disable test beyond end of file on
44598         FreeMiNT.
44599         Patch by Alan Hourihane <alanh@fairlite.co.uk>.
44600
44601 2009-03-05  Kamil Dudka  <kdudka@redhat.com>
44602
44603         * lib/filevercmp.c: Move hidden files up in ordering.
44604         * tests/test-filevercmp.c: Add tests for hidden files.
44605
44606 2009-03-04  Bruno Haible  <bruno@clisp.org>
44607
44608         * modules/visibility (Makefile.am): Augment AM_CFLAGS.
44609         * gnulib-tool (func_emit_lib_Makefile_am): Emit initialization of
44610         AM_CFLAGS.
44611         Reported by Simon Josefsson.
44612
44613 2009-03-03  Bruno Haible  <bruno@clisp.org>
44614
44615         * doc/visibility.texi: Recommend to use HAVE_VISIBILITY as a C macro.
44616         Reported by Simon Josefsson.
44617
44618         * doc/ld-version-script.texi: Update node reference.
44619
44620 2009-03-03  Bruno Haible  <bruno@clisp.org>
44621
44622         * modules/visibility (License): Change to 'unlimited'.
44623         Suggested by Simon Josefsson.
44624
44625 2009-03-03  Jim Meyering  <meyering@redhat.com>
44626
44627         unlinkdir: cannot_unlink_dir may modify process state
44628         * lib/unlinkdir.c (cannot_unlink_dir): Add a comment warning that
44629         it's neither thread-safe nor appropriate for use in a library.
44630
44631 2009-03-03  Eric Blake  <ebb9@byu.net>
44632
44633         test-closein: silence test under Darwin
44634         * tests/test-closein.sh: Ignore stderr from cat, since we don't
44635         care if it dies from EPIPE or EBADF.
44636
44637 2009-03-03  Bruno Haible  <bruno@clisp.org>
44638
44639         * doc/gnulib.texi: Include visibility.texi and ld-version-script.texi
44640         earlier.
44641         * doc/visibility.texi: Fix @node and @section.
44642
44643 2009-03-03  Simon Josefsson  <simon@josefsson.org>
44644
44645         * doc/gnulib.texi: Link to sections for ld version script and
44646         visibility.
44647         * doc/visibility.texi: Add @node and @section.
44648         * modules/ld-version-script: New module.
44649         * m4/ld-version-script.m4: New file.
44650         * doc/ld-version-script.texi: New file.
44651
44652 2009-03-02  David Lutterkort  <lutter@redhat.com>
44653
44654         * lib/safe-alloc.h (__GNUC_PREREQ): New macro.
44655         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
44656
44657 2009-03-02  Bruno Haible  <bruno@clisp.org>
44658
44659         * doc/visibility.texi: Mention libtool's -export-symbols option.
44660
44661 2009-03-02  Jim Meyering  <meyering@redhat.com>
44662
44663         announce-gen: new option: --no-print-checksums
44664         * build-aux/announce-gen (usage): Describe it.
44665         (print_checksums): Print a newline here, not in the [*] footnote.
44666         (main): Honor it.
44667
44668 2009-03-01  Bruno Haible  <bruno@clisp.org>
44669
44670         Use socklen_t in the native Windows replacements prototypes.
44671         * lib/sys_socket.in.h (rpl_getsockopt, rpl_setsockopt): Use socklen_t
44672         instead of 'int'.
44673         * lib/getsockopt.c (rpl_getsockopt): Likewise.
44674         * lib/setsockopt.c (rpl_setsockopt): Likewise.
44675         * modules/getsockopt (Depends-on): Add socklen.
44676         * modules/setsockopt (Depends-on): Add socklen.
44677
44678 2009-03-01  Bruno Haible  <bruno@clisp.org>
44679
44680         * gnulib-tool (sed): Do alias as "sed --posix" if sed's version is at
44681         least 4.2.
44682
44683 2009-03-01  Eric Blake  <ebb9@byu.net>
44684             Bruno Haible  <bruno@clisp.org>
44685
44686         * lib/wait-process.h (wait_subprocess): Describe effect of termsigp on
44687         error messages.
44688         * lib/wait-process.c (wait_subprocess): Omit error message about
44689         deadly signal sent to the child of termsigp != NULL.
44690
44691 2009-03-01  Eric Blake  <ebb9@byu.net>
44692
44693         * lib/wait-process.c (wait_subprocess): Remove unnecessary cast.
44694
44695 2009-03-01  Bruno Haible  <bruno@clisp.org>
44696
44697         Avoid a gcc warning.
44698         * tests/test-sched.c (b): Make global.
44699         Reported by Eric Blake.
44700
44701 2009-01-19  Martin Lambers  <marlam@marlam.de>
44702
44703         Provide POSIX semantics for socket timeout options on W32.
44704         * lib/setsockopt.c: Convert struct timeval to milliseconds on W32.
44705         * lib/getsockopt.c: Convert milliseconds to struct timeval on W32.
44706         * modules/setsockopt: Depend on sys_time module for struct timeval.
44707         * modules/getsockopt: Depend on sys_time module for struct timeval.
44708
44709 2009-03-01  Simon Josefsson  <simon@josefsson.org>
44710
44711         * lib/gai_strerror.c (values): Use EAI_INPROGRESS instead of
44712         __USE_GNU, for consistency with netdb.in.h.
44713         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
44714
44715 2009-03-01  Bruno Haible  <bruno@clisp.org>
44716
44717         More support for FreeMiNT.
44718         * lib/fseeko.c (rpl_fseeko): Complete last commit.
44719         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
44720
44721 2009-03-01  Bruno Haible  <bruno@clisp.org>
44722
44723         More support for FreeMiNT.
44724         * lib/fpurge.c (fpurge): Correct last commit.
44725         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
44726
44727 2009-03-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
44728
44729         Fix unportable awk script in vc-list-files.
44730         * build-aux/vc-list-files: In the replacement awk script, use
44731         substr with a second argument of 1, not zero.
44732         Report by Simon Josefsson.
44733
44734 2009-02-28  Bruno Haible  <bruno@clisp.org>
44735
44736         More support for FreeMiNT.
44737         * lib/freading.c (freading) [__MINT__]: Use new macros that were added
44738         to FreeMiNT today.
44739         * lib/fwriting.c (fwriting): Likewise.
44740         Based on patch by Alan Hourihane <alanh@fairlite.co.uk>.
44741
44742 2009-02-28  Bruno Haible  <bruno@clisp.org>
44743
44744         * tests/test-freadseek.c (main): Disable test beyond end of file on
44745         FreeMiNT.
44746         * tests/test-ftello.c (main): Likewise.
44747         Patch by Alan Hourihane <alanh@fairlite.co.uk>.
44748
44749 2009-02-28  Bruno Haible  <bruno@clisp.org>
44750
44751         Add tentative support for FreeMiNT.
44752         * lib/fbufmode.c (fbufmode) [__MINT__]: Add conditional code.
44753         * lib/fpurge.c (fpurge): Likewise.
44754         * lib/freadable.c (freadable): Likewise.
44755         * lib/freading.c (freading): Likewise.
44756         * lib/freadptr.c (freadptr): Likewise.
44757         * lib/freadseek.c (freadptrinc): Likewise.
44758         * lib/fseeko.c (rpl_fseeko): Likewise.
44759         * lib/fseterr.c (fseterr): Likewise.
44760         * lib/fwritable.c (fwritable): Likewise.
44761         * lib/fwriting.c (fwriting): Likewise.
44762         * lib/freadahead.c (freadahead): Likewise, based on code by Alan
44763         Hourihane.
44764         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
44765
44766 2009-02-28  Bruno Haible  <bruno@clisp.org>
44767
44768         * lib/wait-process.h (wait_subprocess): Clarify restriction regarding
44769         SIGCHLD.
44770         Reported by Jim Meyering.
44771
44772 2009-02-28  Bruno Haible  <bruno@clisp.org>
44773
44774         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Separate the two first tests.
44775         Mention the results of these tests on various platforms.
44776         * doc/posix-functions/fprintf.texi: Mention platforms in canonical
44777         order.
44778         * doc/posix-functions/printf.texi: Likewise.
44779         * doc/posix-functions/snprintf.texi: Likewise.
44780         * doc/posix-functions/sprintf.texi: Likewise.
44781         * doc/posix-functions/vfprintf.texi: Likewise.
44782         * doc/posix-functions/vprintf.texi: Likewise.
44783         * doc/posix-functions/vsnprintf.texi: Likewise.
44784         * doc/posix-functions/vsprintf.texi: Likewise.
44785         * doc/glibc-functions/obstack_printf.texi: Likewise.
44786         * doc/glibc-functions/obstack_vprintf.texi: Likewise.
44787
44788 2009-02-28  Bruno Haible  <bruno@clisp.org>
44789
44790         * build-aux/po/Makefile.in.in: Update from GNU gettext 0.17.
44791         Reported by Loïc Minier <lool@dooz.org>.
44792
44793 2009-02-27  Bruno Haible  <bruno@clisp.org>
44794
44795         * gnulib-tool (func_import): Make the sed expression used to create the
44796         sed script for updating the .gitignore file POSIX compliant.
44797         Reported by Eric Blake.
44798
44799 2009-02-27  Bruno Haible  <bruno@clisp.org>
44800
44801         * gnulib-tool (sed): Don't alias as "sed --posix".
44802         Reported by Eric Blake.
44803
44804 2009-02-27  Bruno Haible  <bruno@clisp.org>
44805
44806         Avoid test link errors.
44807         * modules/uninorm/nfc-tests (test_u32_nfc_big_LDADD): New variable.
44808         * modules/uninorm/nfd-tests (test_u32_nfd_big_LDADD): New variable.
44809         * modules/uninorm/nfkc-tests (test_u32_nfkc_big_LDADD): New variable.
44810         * modules/uninorm/nfkd-tests (test_u32_nfkd_big_LDADD): New variable.
44811         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
44812
44813 2009-02-27  Bruno Haible  <bruno@clisp.org>
44814
44815         Avoid spurious "(cached)" in configure output.
44816         * m4/gnulib-common.m4 (gl_CACHE_VAL_SILENT): New macro.
44817         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Use it instead of AC_CACHE_VAL.
44818         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
44819         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
44820         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
44821         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Likewise.
44822         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
44823         * m4/stdarg.m4 (gl_STDARG_H): Likewise.
44824         Reported by Eric Blake.
44825
44826 2009-02-27  Eric Blake  <ebb9@byu.net>
44827
44828         printf: fix regression in previous patch
44829         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Fix compilation error.
44830
44831 2009-02-27  Bruno Haible  <bruno@clisp.org>
44832
44833         * lib/inttypes.in.h: Test merely whether _LP64 is defined, not its
44834         value.
44835         * lib/stdint.in.h: Likewise.
44836         Suggested by Eric Blake. Reported by Peter Bray <pdb_ml@yahoo.com.au>.
44837
44838 2009-02-27  Eric Blake  <ebb9@byu.net>
44839
44840         doc: mention more functions added in cygwin 1.7.0
44841         * doc/posix-functions/mbsnrtowcs.texi: Mention recent cygwin 1.7.0
44842         addition.
44843         * doc/posix-functions/open_wmemstream.texi: Likewise.
44844         * doc/posix-functions/wcsnlen.texi: Likewise.
44845         * doc/posix-functions/wcsnrtombs.texi: Likewise.
44846         * doc/posix-functions/wcstod.texi: Likewise.
44847         * doc/posix-functions/wcstof.texi: Likewise.
44848         * doc/posix-functions/wcstoimax.texi: Likewise.
44849         * doc/posix-functions/wcstok.texi: Likewise.
44850         * doc/posix-functions/wcstoumax.texi: Likewise.
44851
44852         Detect bug in cygwin 1.5.x *printf on 1-character %ls.
44853         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Enhance filter.
44854         * doc/posix-functions/fprintf.texi: Update.
44855         * doc/posix-functions/printf.texi: Update.
44856         * doc/posix-functions/snprintf.texi: Update.
44857         * doc/posix-functions/sprintf.texi: Update.
44858         * doc/posix-functions/vfprintf.texi: Update.
44859         * doc/posix-functions/vprintf.texi: Update.
44860         * doc/posix-functions/vsnprintf.texi: Update.
44861         * doc/posix-functions/vsprintf.texi: Update.
44862         * doc/glibc-functions/obstack_printf.texi: Update.
44863         * doc/glibc-functions/obstack_vprintf.texi: Update.
44864
44865 2009-02-26  Eric Blake  <ebb9@byu.net>
44866
44867         avoid gcc 3.4.3 bug on long double NaN on Irix 6.5
44868         * tests/nan.h (NaNl): Rewrite as function on Irix, to avoid
44869         compilation bug by using runtime conversion.
44870         * m4/isfinite.m4 (gl_ISFINITE): Likewise.
44871         * m4/isnanl.m4 (gl_FUNC_ISNANL): Likewise.
44872         * modules/ceill-tests (Files): Use nan.h.
44873         * modules/floorl-tests (Files): Likewise.
44874         * modules/frexpl-tests (Files): Likewise.
44875         * modules/isnanl-tests (Files): Likewise.
44876         * modules/ldexpl-tests (Files): Likewise.
44877         * modules/roundl-tests (Files): Likewise.
44878         * modules/truncl-tests (Files): Likewise.
44879         * tests/test-ceill.c (main): Use a working NaN.
44880         * tests/test-floorl.c (main): Likewise.
44881         * tests/test-frexpl.c (main): Likewise.
44882         * tests/test-isnan.c (test_long_double): Likewise.
44883         * tests/test-isnanl.h (main): Likewise.
44884         * tests/test-ldexpl.h (main): Likewise.
44885         * tests/test-roundl.h (main): Likewise.
44886         * tests/test-truncl.h (main): Likewise.
44887         See http://lists.gnu.org/archive/html/bug-gnulib/2009-02/msg00190.html.
44888
44889 2009-02-26  Eric Blake  <ebb9@byu.net>
44890             Bruno Haible  <bruno@clisp.org>
44891
44892         Work around a *printf bug with %ls on Solaris.
44893         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Also test whether, when a
44894         precision is specified, sprintf stops converting the wide string
44895         argument when the number of bytes that have been produced by this
44896         conversion equals or exceeds the precision.
44897         * doc/posix-functions/fprintf.texi: Update.
44898         * doc/posix-functions/printf.texi: Update.
44899         * doc/posix-functions/snprintf.texi: Update.
44900         * doc/posix-functions/sprintf.texi: Update.
44901         * doc/posix-functions/vfprintf.texi: Update.
44902         * doc/posix-functions/vprintf.texi: Update.
44903         * doc/posix-functions/vsnprintf.texi: Update.
44904         * doc/posix-functions/vsprintf.texi: Update.
44905         * doc/glibc-functions/obstack_printf.texi: Update.
44906         * doc/glibc-functions/obstack_vprintf.texi: Update.
44907
44908 2009-02-26  Eric Blake  <ebb9@byu.net>
44909
44910         stdlib: favor compiler check of random.h
44911         * m4/stdlib_h.m4 (gl_STDLIB_H): Skip preprocessor check.  Needed
44912         to avoid an ObjC random.h installed by Swarm.
44913
44914 2009-02-26  Bruno Haible  <bruno@clisp.org>
44915
44916         Work around *printf bug with %g directive and 0.0 on HP-UX 10.20.
44917         * m4/printf.m4 (gl_PRINTF_INFINITE): Also test for %g output of -0.0.
44918         Reported by Gary V. Vaughan <gary@gnu.org>.
44919
44920 2009-02-26  Bruno Haible  <bruno@clisp.org>
44921
44922         Fix *printf behaviour regarding the %ls directive.
44923         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): New macro.
44924         * lib/vasnprintf.c (local_wcslen, VASNPRINTF): Handle
44925         NEED_PRINTF_DIRECTIVE_LS.
44926         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_LS): New macro.
44927         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
44928         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
44929         gl_PREREQ_VASNPRINTF_DIRECTIVE_LS and test its result. Invoke
44930         gl_PREREQ_VASNPRINTF_DIRECTIVE_LS.
44931         * m4/dprintf-posix.m4 (gl_FUNC_DPRINTF_POSIX): Likewise.
44932         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX): Likewise.
44933         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
44934         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
44935         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
44936         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
44937         * m4/vdprintf-posix.m4 (gl_FUNC_VDPRINTF_POSIX): Likewise.
44938         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
44939         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
44940         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
44941         * doc/posix-functions/fprintf.texi: Update.
44942         * doc/posix-functions/printf.texi: Update.
44943         * doc/posix-functions/snprintf.texi: Update.
44944         * doc/posix-functions/sprintf.texi: Update.
44945         * doc/posix-functions/vfprintf.texi: Update.
44946         * doc/posix-functions/vprintf.texi: Update.
44947         * doc/posix-functions/vsnprintf.texi: Update.
44948         * doc/posix-functions/vsprintf.texi: Update.
44949         * doc/glibc-functions/obstack_printf.texi: Update.
44950         * doc/glibc-functions/obstack_vprintf.texi: Update.
44951         Reported by Eric Blake.
44952
44953 2009-02-25  Bruno Haible  <bruno@clisp.org>
44954
44955         * m4/mbrtowc.m4 (gl_MBRTOWC_NUL_RETVAL): Update guess for Solaris 8
44956         with known value.
44957         Reported by Gary V. Vaughan <gary@gnu.org>.
44958
44959 2009-02-25  Bruno Haible  <bruno@clisp.org>
44960
44961         Work around mbrtowc bug in zh_CN.GB18030 locale on Solaris 8.
44962         * m4/mbrtowc.m4 (gl_MBRTOWC_SANITYCHECK): New macro.
44963         (gl_MBSTATE_T_BROKEN): Invoke it. Replace mbstate_t when it says "no".
44964         * doc/posix-functions/mbrtowc.texi: Document the Solaris 8 bug.
44965         Reported by Gary V. Vaughan <gary@gnu.org>.
44966
44967 2009-02-25  Bruno Haible  <bruno@clisp.org>
44968
44969         Work around broken INT8_MAX, UINT8_MAX etc. values on HP-UX 11.23.
44970         * m4/stdint.m4 (gl_STDINT_H): Also check whether the expansions of
44971         INT8_MAX, UINT8_MAX etc. contain casts to elementary types.
44972         * doc/posix-headers/stdint.texi: Mention the HP-UX bug.
44973         Reported by Gary V. Vaughan <gary@gnu.org>.
44974
44975 2009-02-25  Eric Blake  <ebb9@byu.net>
44976
44977         tests: skip fseek/ftell tests if ungetc is broken
44978         * m4/ungetc.m4: New file.
44979         * modules/fseek-tests: Split test, so ungetc dependency is
44980         separate from rest of test.
44981         * modules/fseeko-tests: Likewise.
44982         * modules/ftell-tests: Likewise.
44983         * modules/ftello-tests: Likewise.
44984         * tests/test-fseek.c (main): Isolate ungetc dependency.
44985         * tests/test-fseeko.c (main): Likewise.
44986         * tests/test-ftell.c (main): Likewise.
44987         * tests/test-ftello.c (main): Likewise.
44988         * tests/test-fseek2.sh: New file.
44989         * tests/test-fseeko2.sh: Likewise.
44990         * tests/test-ftell2.sh: Likewise.
44991         * tests/test-ftello2.sh: Likewise.
44992
44993 2009-02-25  Ondřej Vašík  <ovasik@redhat.com>
44994
44995         test-getaddrinfo: fix usage of skip return code 77
44996         * tests/test-gettaddrinfo.c: Return skip code 77 only
44997         for first occurance of skip (4x77 is not 77)
44998
44999 2009-02-25  Gary V. Vaughan  <gary@gnu.org>
45000
45001         strtod: avoid C99 decl-after-statement
45002         * m4/strtod.m4 (gl_FUNC_STRTOD): Rearrange declaration.
45003
45004 2009-02-24  Eric Blake  <ebb9@byu.net>
45005
45006         strtod: detect HP-UX 11.31 bug
45007         * m4/strtod.m4 (gl_FUNC_STRTOD): Detect errno handling bug.
45008         Reported by Gary V. Vaughan.
45009
45010 2009-02-23  Bruno Haible  <bruno@clisp.org>
45011
45012         Fix invalid read past end of memory block.
45013         * lib/vasnprintf.c (DCHAR_SET): Define.
45014         (local_wcslen): Define only when needed.
45015         (local_strnlen, local_wcsnlen): New functions.
45016         (VASNPRINTF) [!USE_SNPRINTF && HAVE_WCHAR_T]: Implement the %s and %ls
45017         directives that involve a conversion ourselves.
45018         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Also check for strnlen,
45019         wcsnlen, mbrtowc, wcrtomb.
45020         * tests/test-vasnprintf-posix.c (test_function): Add tests for %.*s.
45021         * tests/test-vasprintf-posix.c (test_function): Likewise.
45022         * tests/test-snprintf-posix.h (test_function): Likewise.
45023         * tests/test-sprintf-posix.h (test_function): Likewise.
45024         Reported by Ben Pfaff <blp@cs.stanford.edu>.
45025
45026 2009-02-22  Bruno Haible  <bruno@clisp.org>
45027
45028         Implement new clarified decomposition of Hangul syllables.
45029         * lib/uninorm/decomposition.c (uc_decomposition): For Hangul syllables
45030         of type LTV, return only a pairwise decomposition.
45031         * lib/uninorm/canonical-decomposition.c (uc_canonical_decomposition):
45032         Likewise.
45033         * tests/uninorm/test-decomposition.c (main): Updated expected result.
45034         * tests/uninorm/test-canonical-decomposition.c (main): Likewise.
45035         * tests/uninorm/test-compat-decomposition.c (main): Likewise.
45036
45037 2009-02-22  Bruno Haible  <bruno@clisp.org>
45038
45039         * lib/uninorm/u-normalize-internal.h (FUNC): At the end, handle
45040         zero-length results and shrink excess allocated memory.
45041         * tests/uninorm/test-u8-nfc.c (test_u8_nfc): Check empty string result.
45042         * tests/uninorm/test-u8-nfd.c (test_u8_nfd): Likewise.
45043         * tests/uninorm/test-u8-nfkc.c (test_u8_nfkc): Likewise.
45044         * tests/uninorm/test-u8-nfkd.c (test_u8_nfkd): Likewise.
45045         * tests/uninorm/test-u16-nfc.c (test_u16_nfc): Likewise.
45046         * tests/uninorm/test-u16-nfd.c (test_u16_nfd): Likewise.
45047         * tests/uninorm/test-u16-nfkc.c (test_u16_nfkc): Likewise.
45048         * tests/uninorm/test-u16-nfkd.c (test_u16_nfkd): Likewise.
45049         * tests/uninorm/test-u32-nfc.c (test_u32_nfc): Likewise.
45050         * tests/uninorm/test-u32-nfd.c (test_u32_nfd): Likewise.
45051         * tests/uninorm/test-u32-nfkc.c (test_u32_nfkc): Likewise.
45052         * tests/uninorm/test-u32-nfkd.c (test_u32_nfkd): Likewise.
45053
45054 2009-02-21  Bruno Haible  <bruno@clisp.org>
45055
45056         * doc/gnulib.texi: Include safe-alloc.texi earlier.
45057         * doc/safe-alloc.texi: Terminate sentences with a period. Use two
45058         spaces after a period. Put a space between a macro name and its
45059         argument list. Trivial rewordings.
45060         * lib/safe-alloc.c: Include safe-alloc.h right after config.h.
45061         * tests/test-safe-alloc.c: Likewise. Include stdlib.h.
45062         (main): Return 0 explicitly.
45063
45064 2009-02-21  Bruno Haible  <bruno@clisp.org>
45065
45066         Tests for module 'uninorm/filter'.
45067         * tests/uninorm/test-uninorm-filter-nfc.c: New file.
45068         * modules/uninorm/filter-tests: New file.
45069
45070         New module 'uninorm/filter'.
45071         * lib/uninorm.h (uninorm_filter_create, uninorm_filter_write,
45072         uninorm_filter_flush, uninorm_filter_free): New declarations.
45073         * lib/uninorm/uninorm-filter.c: New file.
45074         * modules/uninorm/filter: New file.
45075
45076 2009-02-21  Bruno Haible  <bruno@clisp.org>
45077
45078         Tests for module 'uninorm/nfkc'.
45079         * tests/uninorm/test-nfkc.c: New file.
45080         * tests/uninorm/test-u8-nfkc.c: New file.
45081         * tests/uninorm/test-u16-nfkc.c: New file.
45082         * tests/uninorm/test-u32-nfkc.c: New file.
45083         * tests/uninorm/test-u32-nfkc-big.sh: New file.
45084         * tests/uninorm/test-u32-nfkc-big.c: New file.
45085         * modules/uninorm/nfkc-tests: New file.
45086
45087         New module 'uninorm/nfkc'.
45088         * lib/uninorm/nfkc.c: New file.
45089         * modules/uninorm/nfkc: New file.
45090
45091         Tests for module 'uninorm/nfkd'.
45092         * tests/uninorm/test-nfkd.c: New file.
45093         * tests/uninorm/test-u8-nfkd.c: New file.
45094         * tests/uninorm/test-u16-nfkd.c: New file.
45095         * tests/uninorm/test-u32-nfkd.c: New file.
45096         * tests/uninorm/test-u32-nfkd-big.sh: New file.
45097         * tests/uninorm/test-u32-nfkd-big.c: New file.
45098         * modules/uninorm/nfkd-tests: New file.
45099
45100         New module 'uninorm/nfkd'.
45101         * lib/uninorm/nfkd.c: New file.
45102         * modules/uninorm/nfkd: New file.
45103
45104         Tests for module 'uninorm/nfc'.
45105         * tests/uninorm/test-nfc.c: New file.
45106         * tests/uninorm/test-u8-nfc.c: New file.
45107         * tests/uninorm/test-u16-nfc.c: New file.
45108         * tests/uninorm/test-u32-nfc.c: New file.
45109         * tests/uninorm/test-u32-nfc-big.sh: New file.
45110         * tests/uninorm/test-u32-nfc-big.c: New file.
45111         * modules/uninorm/nfc-tests: New file.
45112
45113         New module 'uninorm/nfc'.
45114         * lib/uninorm/nfc.c: New file.
45115         * modules/uninorm/nfc: New file.
45116
45117         Tests for module 'uninorm/nfd'.
45118         * tests/uninorm/test-nfd.c: New file.
45119         * tests/uninorm/test-u8-nfd.c: New file.
45120         * tests/uninorm/test-u16-nfd.c: New file.
45121         * tests/uninorm/test-u32-nfd.c: New file.
45122         * tests/uninorm/test-u32-nfd-big.sh: New file.
45123         * tests/uninorm/test-u32-nfd-big.c: New file.
45124         * tests/uninorm/test-u32-normalize-big.h: New file.
45125         * tests/uninorm/test-u32-normalize-big.c: New file.
45126         * tests/uninorm/NormalizationTest.txt: New file, created from
45127         Unicode 5.1.0 NormalizationTest.txt.
45128         * modules/uninorm/nfd-tests: New file.
45129
45130         New module 'uninorm/nfd'.
45131         * lib/uninorm/nfd.c: New file.
45132         * modules/uninorm/nfd: New file.
45133
45134         New module 'uninorm/u32-normalize'.
45135         * lib/uninorm/u32-normalize.c: New file.
45136         * modules/uninorm/u32-normalize: New file.
45137
45138         New module 'uninorm/u16-normalize'.
45139         * lib/uninorm/u16-normalize.c: New file.
45140         * modules/uninorm/u16-normalize: New file.
45141
45142         New module 'uninorm/u8-normalize'.
45143         * lib/uninorm/u8-normalize.c: New file.
45144         * lib/uninorm/normalize-internal.h: New file.
45145         * lib/uninorm/u-normalize-internal.h: New file.
45146         * modules/uninorm/u8-normalize: New file.
45147
45148         New module 'uninorm/decompose-internal'.
45149         * lib/uninorm/decompose-internal.c: New file.
45150         * modules/uninorm/decompose-internal: New file.
45151
45152         Tests for module 'uninorm/composition'.
45153         * tests/uninorm/test-composition.c: New file.
45154         * modules/uninorm/composition-tests: New file.
45155
45156         New module 'uninorm/composition'.
45157         * lib/uninorm/composition.c: New file.
45158         * lib/uninorm/composition-table.gperf: New file, generated by
45159         gen-uni-tables.
45160         * modules/uninorm/composition: New file.
45161
45162         Tests for module 'uninorm/compat-decomposition'.
45163         * tests/uninorm/test-compat-decomposition.c: New file.
45164         * modules/uninorm/compat-decomposition-tests: New file.
45165
45166         New module 'uninorm/compat-decomposition'.
45167         * lib/uninorm/decompose-internal.h: New file.
45168         * lib/uninorm/compat-decomposition.c: New file.
45169         * modules/uninorm/compat-decomposition: New file.
45170
45171         Tests for module 'uninorm/canonical-decomposition'.
45172         * tests/uninorm/test-canonical-decomposition.c: New file.
45173         * modules/uninorm/canonical-decomposition-tests: New file.
45174
45175         New module 'uninorm/canonical-decomposition'.
45176         * lib/uninorm/canonical-decomposition.c: New file.
45177         * modules/uninorm/canonical-decomposition: New file.
45178
45179         Tests for module 'uninorm/decomposition'.
45180         * tests/uninorm/test-decomposition.c: New file.
45181         * modules/uninorm/decomposition-tests: New file.
45182
45183         New module 'uninorm/decomposition'.
45184         * lib/uninorm/decomposition.c: New file.
45185         * modules/uninorm/decomposition: New file.
45186
45187         New module 'uninorm/decomposition-table'.
45188         * lib/uninorm/decomposition-table.h: New file.
45189         * lib/uninorm/decomposition-table.c: New file.
45190         * lib/uninorm/decomposition-table1.h: New file, generated by
45191         gen-uni-tables.
45192         * lib/uninorm/decomposition-table2.h: New file, generated by
45193         gen-uni-tables.
45194         * modules/uninorm/decomposition-table: New file.
45195
45196         * lib/gen-uni-tables.c (MAX_DECOMP_LENGTH): New macro.
45197         (UC_DECOMP_*): New enumeration items.
45198         (get_decomposition): New function.
45199         (struct decomp_table): New type.
45200         (output_decomposition, output_decomposition_tables): New functions.
45201         (unicode_composition_exclusions): New variable.
45202         (fill_composition_exclusions, debug_output_composition_tables): New
45203         functions.
45204         (main): Accept one more argument. Invoke fill_composition_exclusions.
45205         Output decomposition and composition tables.
45206
45207         New module 'uninorm/base'.
45208         * lib/uninorm.h: New file.
45209         * lib/unictype.h: Update comment.
45210         * modules/uninorm/base: New file.
45211
45212 2009-02-21  David Lutterkort  <lutter@redhat.com>
45213
45214         Tests for module 'safe-alloc'.
45215         * tests/test-safe-alloc.c: New file.
45216         * modules/safe-alloc-tests: New file.
45217
45218         New module 'safe-alloc'.
45219         * lib/safe-alloc.h: New file.
45220         * lib/safe-alloc.c: New file.
45221         * m4/safe-alloc.m4: New file.
45222         * modules/safe-alloc: New file.
45223         * doc/safe-alloc.texi: New file.
45224         * doc/gnulib.texi: Include it.
45225         * MODULES.html.sh (Memory management functions <stdlib.h>): Add
45226         safe-alloc.
45227
45228 2009-02-18  Bruno Haible  <bruno@clisp.org>
45229
45230         Fix link error on non-glibc systems.
45231         * modules/uniwbrk/ulc-wordbreaks-tests (test_ulc_wordbreaks_LDADD): New
45232         variable.
45233         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
45234
45235 2009-02-18  Jim Meyering  <meyering@redhat.com>
45236
45237         fts: avoid used-uninitialized error due to recent change
45238         * lib/fts.c (fts_read): Guard uses of the new member,
45239         parent->fts_n_dirs_remaining, since it's not relevant for
45240         the parent of a directory specified on the command-line.
45241
45242 2009-02-17  James Youngman  <jay@gnu.org>
45243             Bruno Haible  <bruno@clisp.org>
45244
45245         * m4/include_next.m4: Reformulate comment.
45246
45247 2009-02-16  Jim Meyering  <meyering@redhat.com>
45248
45249         fts: add #if guards so that the fts_lgpl module still builds
45250         * lib/fts.c: Guard just-added hash-table-using parts with
45251         #if GNULIB_FTS, so as not to break builds of the fts_lgpl module.
45252         Reported by Simon Josefsson.
45253
45254 2009-02-15  Bruno Haible  <bruno@clisp.org>
45255
45256         * modules/array-mergesort-tests: New file.
45257         * tests/test-array-mergesort.c: New file.
45258
45259         New module 'array-mergesort'.
45260         * modules/array-mergesort: New file.
45261         * lib/array-mergesort.h: New file.
45262
45263 2009-02-15  Bruno Haible  <bruno@clisp.org>
45264
45265         Fix 2009-02-07 commit.
45266         * lib/gen-uni-tables.c (output_predicate, output_category,
45267         output_combclass, output_bidi_category, output_decimal_digit,
45268         output_digit, output_numeric, output_mirror, output_scripts,
45269         output_ident_category, output_simple_mapping): Fix format directives.
45270         (output_lbp, output_wbp): Don't convert -1 to a size_t implicitly.
45271
45272 2009-02-15  Albert Chin-A-Young  <china@thewrittenword.com>
45273
45274         * m4/include_next.m4: Update comment about IBM C 9.0/10.1 bug, now that
45275         fixes are available from IBM.
45276
45277 2009-02-13  Jim Meyering  <meyering@redhat.com>
45278
45279         fts: arrange not to stat non-directories in more cases
45280         This makes GNU find (when it doesn't need to stat each file)
45281         *much* more efficient at traversing reiserfs file systems.
45282         * lib/fts_.h (struct ftsent) [fts_n_dirs_remaining]: New member.
45283         (struct FTS) [fts_leaf_optimization_works_ht]: Add member.
45284         * lib/fts.c (fts_close): Free ->fts_leaf_optimization_works_ht.
45285         (S_MAGIC_REISERFS, S_MAGIC_PROC): Define.
45286         (leaf_optimization_applies): New function.
45287         (LCO_hash, LCO_compare): New helper functions.
45288         (link_count_optimize_ok): New function.
45289         (fts_stat): Initialize new member (if dir).
45290         (fts_read): Decrement parent's fts_n_dirs_remaining count if
45291         we've just stat'ed a directory.  Skip the stat call when possible.
45292         ---
45293         Note this AFS-related exchange:
45294         http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=143111
45295         and note find's pioctl call in find/fstype.c.
45296         But that is necessary only if you want to enable the
45297         optimization for AFS, and for now, I don't.
45298
45299         fts: move a function definition "up" (no semantic change)
45300         * lib/fts.c (dirent_inode_sort_may_be_useful): Move definition
45301         "up" to precede upcoming use of a related function.
45302
45303 2009-02-11  Jim Meyering  <meyering@redhat.com>
45304
45305         fts: correct internal computation of nlinks (optimization-related)
45306         * lib/fts.c (fts_build): ISSET(FTS_NOSTAT) has no bearing on
45307         whether the current entry is a directory, so don't test it.
45308
45309 2009-02-10  Bruno Haible  <bruno@clisp.org>
45310
45311         Tests for module 'uniwbrk/ulc-wordbreaks'.
45312         * modules/uniwbrk/ulc-wordbreaks-tests: New file.
45313         * tests/uniwbrk/test-ulc-wordbreaks.sh: New file.
45314         * tests/uniwbrk/test-ulc-wordbreaks.c: New file.
45315
45316         Tests for module 'uniwbrk/u32-wordbreaks'.
45317         * modules/uniwbrk/u32-wordbreaks-tests: New file.
45318         * tests/uniwbrk/test-u32-wordbreaks.c: New file.
45319
45320         Tests for module 'uniwbrk/u16-wordbreaks'.
45321         * modules/uniwbrk/u16-wordbreaks-tests: New file.
45322         * tests/uniwbrk/test-u16-wordbreaks.c: New file.
45323
45324         Tests for module 'uniwbrk/u8-wordbreaks'.
45325         * modules/uniwbrk/u8-wordbreaks-tests: New file.
45326         * tests/uniwbrk/test-u8-wordbreaks.c: New file.
45327
45328 2009-02-10  Bruno Haible  <bruno@clisp.org>
45329
45330         * modules/uniwbrk/u8-wordbreaks (Depends-on): Add uniwbrk/wordbreak
45331         property.
45332         * modules/uniwbrk/u16-wordbreaks (Depends-on): Likewise.
45333         * modules/uniwbrk/u32-wordbreaks (Depends-on): Likewise.
45334         * modules/uniwbrk/ulc-wordbreaks (Depends-on): Add localcharset.
45335
45336 2009-02-10  Simon Josefsson  <simon@josefsson.org>
45337
45338         * m4/sockets.m4: Call AC_C_INLINE since sockets.h now can use
45339         inline keywords.  Reported by Bruno Haible <bruno@clisp.org>.
45340
45341 2009-02-10  Bruno Haible  <bruno@clisp.org>
45342
45343         * lib/unilbrk/lbrktables.h: Renamed from lib/unilbrk/tables.h.
45344         * lib/unilbrk/lbrktables.c: Renamed from lib/unilbrk/tables.c.
45345         * modules/unilbrk/tables (Files, Makefile.am, Include): Update.
45346         * lib/unilbrk/u8-possible-linebreaks.c: Update.
45347         * lib/unilbrk/u16-possible-linebreaks.c: Likewise.
45348         * lib/unilbrk/u32-possible-linebreaks.c: Likewise.
45349
45350 2009-02-09  Simon Josefsson  <simon@josefsson.org>
45351
45352         * lib/sockets.h (gl_fd_to_handle): New function.
45353
45354         * tests/test-sockets.c: Call gl_fd_to_handle.
45355
45356 2009-02-09  Bruno Haible  <bruno@clisp.org>
45357
45358         * doc/havelib.texi: Document the conventions on bi-arch systems.
45359
45360 2009-02-08  Bruno Haible  <bruno@clisp.org>
45361
45362         Document the AC_LIB_LINKFLAGS macro.
45363         * doc/havelib.texi: New file, mostly written on 2005-05-24.
45364         * doc/gnulib.texi: Include it.
45365
45366 2009-02-08  Bruno Haible  <bruno@clisp.org>
45367
45368         Fix wrong order of sections, compared to TOC.
45369         * doc/gnulib.texi: Include relocatable-maint.texi after the
45370         "Regular expressions" node, not before.
45371
45372 2009-02-08  Bruno Haible  <bruno@clisp.org>
45373
45374         Tests for module 'unicase/totitle'.
45375         * modules/unicase/totitle-tests: New file.
45376
45377         Tests for module 'unicase/tolower'.
45378         * modules/unicase/tolower-tests: New file.
45379
45380         Tests for module 'unicase/toupper'.
45381         * modules/unicase/toupper-tests: New file.
45382         * tests/unicase/test-mapping-part1.h: New file.
45383         * tests/unicase/test-mapping-part2.h: New file.
45384
45385         New module 'unicase/totitle'.
45386         * modules/unicase/totitle: New file.
45387         * lib/unicase/totitle.c: New file.
45388
45389         New module 'unicase/tolower'.
45390         * modules/unicase/tolower: New file.
45391         * lib/unicase/tolower.c: New file.
45392
45393         New module 'unicase/toupper'.
45394         * modules/unicase/toupper: New file.
45395         * lib/unicase/toupper.c: New file.
45396         * lib/unicase/simple-mapping.h: New file.
45397
45398         * lib/gen-uni-tables.c (output_simple_mapping_test): New function.
45399         (mapping_table): New structure.
45400         (output_simple_mapping): New function.
45401         (main): Invoke output_simple_mapping_test and output_simple_mapping.
45402         * modules/gen-uni-tables (Description): Update.
45403         * lib/unicase/toupper.h: New file, automatically generated by
45404         gen-uni-tables.
45405         * lib/unicase/tolower.h: New file, automatically generated by
45406         gen-uni-tables.
45407         * lib/unicase/totitle.h: New file, automatically generated by
45408         gen-uni-tables.
45409         * tests/unicase/test-uc_toupper.c: New file, automatically generated by
45410         gen-uni-tables.
45411         * tests/unicase/test-uc_tolower.c: New file, automatically generated by
45412         gen-uni-tables.
45413         * tests/unicase/test-uc_totitle.c: New file, automatically generated by
45414         gen-uni-tables.
45415
45416         New module 'unicase/base'.
45417         * modules/unicase/base: New file.
45418         * lib/unicase.h: New file.
45419
45420 2009-02-08  Bruno Haible  <bruno@clisp.org>
45421
45422         New module 'uniwbrk/ulc-wordbreaks'.
45423         * modules/uniwbrk/ulc-wordbreaks: New file.
45424         * lib/uniwbrk/ulc-wordbreaks.c: New file.
45425
45426         New module 'uniwbrk/u32-wordbreaks'.
45427         * modules/uniwbrk/u32-wordbreaks: New file.
45428         * lib/uniwbrk/u32-wordbreaks.c: New file.
45429
45430         New module 'uniwbrk/u16-wordbreaks'.
45431         * modules/uniwbrk/u16-wordbreaks: New file.
45432         * lib/uniwbrk/u16-wordbreaks.c: New file.
45433
45434         New module 'uniwbrk/u8-wordbreaks'.
45435         * modules/uniwbrk/u8-wordbreaks: New file.
45436         * lib/uniwbrk/u8-wordbreaks.c: New file.
45437         * lib/uniwbrk/u-wordbreaks.h: New file.
45438
45439         New module 'uniwbrk/table'.
45440         * modules/uniwbrk/table: New file.
45441         * lib/uniwbrk/wbrktable.h: New file.
45442         * lib/uniwbrk/wbrktable.c: New file.
45443
45444         New module 'uniwbrk/wordbreak-property'.
45445         * modules/uniwbrk/wordbreak-property: New file.
45446         * lib/uniwbrk/wordbreak-property.c: New file.
45447
45448         * lib/gen-uni-tables.c (WBP_*): New enum items.
45449         (get_wbp, debug_output_wbp, debug_output_wbrk_tables): New functions.
45450         (unicode_org_wbp): New variable.
45451         (fill_org_wbp, debug_output_org_wbp, debug_output_org_wbrk_tables):
45452         New functions.
45453         (wbp_table): New structure.
45454         (output_wbp, output_wbrk_tables): New functions.
45455         (main): Accept additional argument. Invoke fill_org_wbp,
45456         debug_output_wbrk_tables, debug_output_org_wbrk_tables,
45457         output_wbrk_tables.
45458         * modules/gen-uni-tables (Description): Update.
45459         * lib/uniwbrk/wbrkprop.h: New file, automatically generated by
45460         gen-uni-tables.
45461
45462         New module 'uniwbrk/base'.
45463         * modules/uniwbrk/base: New file.
45464         * lib/uniwbrk.h: New file.
45465
45466 2009-02-08  Bruno Haible  <bruno@clisp.org>
45467
45468         Update to Unicode 5.1.0.
45469         * lib/gen-uni-tables.c (is_property_alphabetic): Include
45470         U+2185..U+2188.
45471         (is_property_default_ignorable_code_point): Don't include characters
45472         of category Cc or Cs and not-a-characters.
45473         (get_lbp): Assume REVISION_22. Special handling of U+0609, U+060A,
45474         U+0D79, U+109E, U+109F, U+A60C.
45475         * lib/unictype/bidi_of.h: Regenerated.
45476         * lib/unictype/blocks.h: Regenerated.
45477         * lib/unictype/categ_C.h: Regenerated.
45478         * lib/unictype/categ_Cf.h: Regenerated.
45479         * lib/unictype/categ_Cn.h: Regenerated.
45480         * lib/unictype/categ_L.h: Regenerated.
45481         * lib/unictype/categ_Ll.h: Regenerated.
45482         * lib/unictype/categ_Lm.h: Regenerated.
45483         * lib/unictype/categ_Lo.h: Regenerated.
45484         * lib/unictype/categ_Lu.h: Regenerated.
45485         * lib/unictype/categ_M.h: Regenerated.
45486         * lib/unictype/categ_Mc.h: Regenerated.
45487         * lib/unictype/categ_Me.h: Regenerated.
45488         * lib/unictype/categ_Mn.h: Regenerated.
45489         * lib/unictype/categ_N.h: Regenerated.
45490         * lib/unictype/categ_Nd.h: Regenerated.
45491         * lib/unictype/categ_Nl.h: Regenerated.
45492         * lib/unictype/categ_No.h: Regenerated.
45493         * lib/unictype/categ_P.h: Regenerated.
45494         * lib/unictype/categ_Pd.h: Regenerated.
45495         * lib/unictype/categ_Pe.h: Regenerated.
45496         * lib/unictype/categ_Pf.h: Regenerated.
45497         * lib/unictype/categ_Pi.h: Regenerated.
45498         * lib/unictype/categ_Po.h: Regenerated.
45499         * lib/unictype/categ_Ps.h: Regenerated.
45500         * lib/unictype/categ_S.h: Regenerated.
45501         * lib/unictype/categ_Sk.h: Regenerated.
45502         * lib/unictype/categ_Sm.h: Regenerated.
45503         * lib/unictype/categ_So.h: Regenerated.
45504         * lib/unictype/categ_of.h: Regenerated.
45505         * lib/unictype/combining.h: Regenerated.
45506         * lib/unictype/ctype_alnum.h: Regenerated.
45507         * lib/unictype/ctype_alpha.h: Regenerated.
45508         * lib/unictype/ctype_graph.h: Regenerated.
45509         * lib/unictype/ctype_lower.h: Regenerated.
45510         * lib/unictype/ctype_print.h: Regenerated.
45511         * lib/unictype/ctype_punct.h: Regenerated.
45512         * lib/unictype/ctype_upper.h: Regenerated.
45513         * lib/unictype/decdigit.h: Regenerated.
45514         * lib/unictype/digit.h: Regenerated.
45515         * lib/unictype/mirror.h: Regenerated.
45516         * lib/unictype/numeric.h: Regenerated.
45517         * lib/unictype/pr_alphabetic.h: Regenerated.
45518         * lib/unictype/pr_bidi_arabic_digit.h: Regenerated.
45519         * lib/unictype/pr_bidi_arabic_right_to_left.h: Regenerated.
45520         * lib/unictype/pr_bidi_boundary_neutral.h: Regenerated.
45521         * lib/unictype/pr_bidi_eur_num_terminator.h: Regenerated.
45522         * lib/unictype/pr_bidi_left_to_right.h: Regenerated.
45523         * lib/unictype/pr_bidi_non_spacing_mark.h: Regenerated.
45524         * lib/unictype/pr_bidi_other_neutral.h: Regenerated.
45525         * lib/unictype/pr_combining.h: Regenerated.
45526         * lib/unictype/pr_dash.h: Regenerated.
45527         * lib/unictype/pr_decimal_digit.h: Regenerated.
45528         * lib/unictype/pr_default_ignorable_code_point.h: Regenerated.
45529         * lib/unictype/pr_deprecated.h: Regenerated.
45530         * lib/unictype/pr_diacritic.h: Regenerated.
45531         * lib/unictype/pr_extender.h: Regenerated.
45532         * lib/unictype/pr_format_control.h: Regenerated.
45533         * lib/unictype/pr_grapheme_base.h: Regenerated.
45534         * lib/unictype/pr_grapheme_extend.h: Regenerated.
45535         * lib/unictype/pr_grapheme_link.h: Regenerated.
45536         * lib/unictype/pr_id_continue.h: Regenerated.
45537         * lib/unictype/pr_id_start.h: Regenerated.
45538         * lib/unictype/pr_ideographic.h: Regenerated.
45539         * lib/unictype/pr_ignorable_control.h: Regenerated.
45540         * lib/unictype/pr_lowercase.h: Regenerated.
45541         * lib/unictype/pr_math.h: Regenerated.
45542         * lib/unictype/pr_numeric.h: Regenerated.
45543         * lib/unictype/pr_other_alphabetic.h: Regenerated.
45544         * lib/unictype/pr_other_default_ignorable_code_point.h: Regenerated.
45545         * lib/unictype/pr_other_grapheme_extend.h: Regenerated.
45546         * lib/unictype/pr_other_id_continue.h: Regenerated.
45547         * lib/unictype/pr_other_lowercase.h: Regenerated.
45548         * lib/unictype/pr_other_math.h: Regenerated.
45549         * lib/unictype/pr_punctuation.h: Regenerated.
45550         * lib/unictype/pr_sentence_terminal.h: Regenerated.
45551         * lib/unictype/pr_soft_dotted.h: Regenerated.
45552         * lib/unictype/pr_terminal_punctuation.h: Regenerated.
45553         * lib/unictype/pr_unassigned_code_value.h: Regenerated.
45554         * lib/unictype/pr_unified_ideograph.h: Regenerated.
45555         * lib/unictype/pr_uppercase.h: Regenerated.
45556         * lib/unictype/pr_xid_continue.h: Regenerated.
45557         * lib/unictype/pr_xid_start.h: Regenerated.
45558         * lib/unictype/pr_zero_width.h: Regenerated.
45559         * lib/unictype/scripts.h: Regenerated.
45560         * lib/unictype/scripts_byname.gperf: Regenerated.
45561         * lib/unictype/sy_java_ident.h: Regenerated.
45562         * lib/unilbrk/lbrkprop1.h: Regenerated.
45563         * lib/unilbrk/lbrkprop2.h: Regenerated.
45564         * tests/unictype/test-categ_C.c: Regenerated.
45565         * tests/unictype/test-categ_Cf.c: Regenerated.
45566         * tests/unictype/test-categ_Cn.c: Regenerated.
45567         * tests/unictype/test-categ_L.c: Regenerated.
45568         * tests/unictype/test-categ_Ll.c: Regenerated.
45569         * tests/unictype/test-categ_Lm.c: Regenerated.
45570         * tests/unictype/test-categ_Lo.c: Regenerated.
45571         * tests/unictype/test-categ_Lu.c: Regenerated.
45572         * tests/unictype/test-categ_M.c: Regenerated.
45573         * tests/unictype/test-categ_Mc.c: Regenerated.
45574         * tests/unictype/test-categ_Me.c: Regenerated.
45575         * tests/unictype/test-categ_Mn.c: Regenerated.
45576         * tests/unictype/test-categ_N.c: Regenerated.
45577         * tests/unictype/test-categ_Nd.c: Regenerated.
45578         * tests/unictype/test-categ_Nl.c: Regenerated.
45579         * tests/unictype/test-categ_No.c: Regenerated.
45580         * tests/unictype/test-categ_P.c: Regenerated.
45581         * tests/unictype/test-categ_Pd.c: Regenerated.
45582         * tests/unictype/test-categ_Pe.c: Regenerated.
45583         * tests/unictype/test-categ_Pf.c: Regenerated.
45584         * tests/unictype/test-categ_Pi.c: Regenerated.
45585         * tests/unictype/test-categ_Po.c: Regenerated.
45586         * tests/unictype/test-categ_Ps.c: Regenerated.
45587         * tests/unictype/test-categ_S.c: Regenerated.
45588         * tests/unictype/test-categ_Sk.c: Regenerated.
45589         * tests/unictype/test-categ_Sm.c: Regenerated.
45590         * tests/unictype/test-categ_So.c: Regenerated.
45591         * tests/unictype/test-ctype_alnum.c: Regenerated.
45592         * tests/unictype/test-ctype_alpha.c: Regenerated.
45593         * tests/unictype/test-ctype_graph.c: Regenerated.
45594         * tests/unictype/test-ctype_lower.c: Regenerated.
45595         * tests/unictype/test-ctype_print.c: Regenerated.
45596         * tests/unictype/test-ctype_punct.c: Regenerated.
45597         * tests/unictype/test-ctype_upper.c: Regenerated.
45598         * tests/unictype/test-decdigit.h: Regenerated.
45599         * tests/unictype/test-digit.h: Regenerated.
45600         * tests/unictype/test-numeric.h: Regenerated.
45601         * tests/unictype/test-pr_alphabetic.c: Regenerated.
45602         * tests/unictype/test-pr_bidi_arabic_digit.c: Regenerated.
45603         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Regenerated.
45604         * tests/unictype/test-pr_bidi_boundary_neutral.c: Regenerated.
45605         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Regenerated.
45606         * tests/unictype/test-pr_bidi_left_to_right.c: Regenerated.
45607         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Regenerated.
45608         * tests/unictype/test-pr_bidi_other_neutral.c: Regenerated.
45609         * tests/unictype/test-pr_combining.c: Regenerated.
45610         * tests/unictype/test-pr_dash.c: Regenerated.
45611         * tests/unictype/test-pr_decimal_digit.c: Regenerated.
45612         * tests/unictype/test-pr_default_ignorable_code_point.c: Regenerated.
45613         * tests/unictype/test-pr_deprecated.c: Regenerated.
45614         * tests/unictype/test-pr_diacritic.c: Regenerated.
45615         * tests/unictype/test-pr_extender.c: Regenerated.
45616         * tests/unictype/test-pr_format_control.c: Regenerated.
45617         * tests/unictype/test-pr_grapheme_base.c: Regenerated.
45618         * tests/unictype/test-pr_grapheme_extend.c: Regenerated.
45619         * tests/unictype/test-pr_grapheme_link.c: Regenerated.
45620         * tests/unictype/test-pr_id_continue.c: Regenerated.
45621         * tests/unictype/test-pr_id_start.c: Regenerated.
45622         * tests/unictype/test-pr_ideographic.c: Regenerated.
45623         * tests/unictype/test-pr_ignorable_control.c: Regenerated.
45624         * tests/unictype/test-pr_lowercase.c: Regenerated.
45625         * tests/unictype/test-pr_math.c: Regenerated.
45626         * tests/unictype/test-pr_numeric.c: Regenerated.
45627         * tests/unictype/test-pr_other_alphabetic.c: Regenerated.
45628         * tests/unictype/test-pr_other_default_ignorable_code_point.c:
45629         Regenerated.
45630         * tests/unictype/test-pr_other_grapheme_extend.c: Regenerated.
45631         * tests/unictype/test-pr_other_id_continue.c: Regenerated.
45632         * tests/unictype/test-pr_other_lowercase.c: Regenerated.
45633         * tests/unictype/test-pr_other_math.c: Regenerated.
45634         * tests/unictype/test-pr_punctuation.c: Regenerated.
45635         * tests/unictype/test-pr_sentence_terminal.c: Regenerated.
45636         * tests/unictype/test-pr_soft_dotted.c: Regenerated.
45637         * tests/unictype/test-pr_terminal_punctuation.c: Regenerated.
45638         * tests/unictype/test-pr_unassigned_code_value.c: Regenerated.
45639         * tests/unictype/test-pr_unified_ideograph.c: Regenerated.
45640         * tests/unictype/test-pr_uppercase.c: Regenerated.
45641         * tests/unictype/test-pr_xid_continue.c: Regenerated.
45642         * tests/unictype/test-pr_xid_start.c: Regenerated.
45643         * tests/unictype/test-pr_zero_width.c: Regenerated.
45644
45645         Update to Unicode 5.1.0.
45646         * lib/uniwidth/width.c (nonspacing_table_data): Add U+0487,
45647         U+0616..U+061A, U+0A51, U+0A75, U+0B44, U+0B62..U+0B63, U+0C62..U+0C63,
45648         U+0D44, U+0D62..U+0D63, U+1033..U+1035, U+103A, U+103D..U+103E,
45649         U+105E..U+1060, U+1071..U+1074, U+1082, U+1085..U+1086, U+108D,
45650         U+1B80..U+1B81, U+1BA2..U+1BA5, U+1BA8..U+1BA9, U+1C2C..U+1C33,
45651         U+1C36..U+1C37, U+1DCB..U+1DE6, U+2064, U+20F0, U+2DE0..U+2DFF,
45652         U+A66F..U+A672, U+A67C..U+A67D, U+A8C4, U+A926..U+A92D, U+A947..U+A951,
45653         U+AA29..U+AA2E, U+AA31..U+AA32, U+AA35..U+AA36, U+AA43, U+AA4C,
45654         U+FE24..U+FE26, U+101FD. Remove U+1929..U+192B.
45655         (nonspacing_table_ind): Update.
45656         * tests/uniwidth/test-uc_width2.sh: Update expected result.
45657
45658         Update to Unicode 5.1.0.
45659         * lib/uniname/gen-uninames.lisp (main): Add the range 0x1Fxxx to the
45660         code transform.
45661         * lib/uniname/uniname.c (unicode_character_name,
45662         unicode_name_character): Add the range 0x1Fxxx to the code transform.
45663         * lib/uniname/uninames.h: Regenerated.
45664         * tests/uniname/UnicodeDataNames.txt: Update to Unicode 5.1.0.
45665
45666 2009-02-07  Bruno Haible  <bruno@clisp.org>
45667
45668         Merge gen-ctype and gen-lbrk into a single program.
45669         * lib/gen-uni-tables.c: New file, incorporating
45670         lib/unictype/gen-ctype.c and lib/unilbrk/gen-lbrk.c.
45671         Add directory prefixes to the names of the generated files.
45672         * lib/unictype/gen-ctype.c: Remove file.
45673         * lib/unilbrk/gen-lbrk.c: Remove file.
45674         * modules/gen-uni-tables: New file.
45675         * modules/unictype/gen-ctype: Remove file.
45676         * modules/unilbrk/gen-lbrk: Remove file.
45677
45678 2009-02-07  Bruno Haible  <bruno@clisp.org>
45679
45680         * lib/unistr.h (u8_strcoll, u16_strcoll, u32_strcoll): New declations.
45681
45682         New module 'unistr/u32-strcoll'.
45683         * modules/unistr/u32-strcoll: New file.
45684         * lib/unistr/u32-strcoll.c: New file.
45685
45686         New module 'unistr/u16-strcoll'.
45687         * modules/unistr/u16-strcoll: New file.
45688         * lib/unistr/u16-strcoll.c: New file.
45689
45690         New module 'unistr/u8-strcoll'.
45691         * modules/unistr/u8-strcoll: New file.
45692         * lib/unistr/u8-strcoll.c: New file.
45693         * lib/unistr/u-strcoll.h: New file.
45694
45695 2009-02-07  Bruno Haible  <bruno@clisp.org>
45696
45697         * test-mbrtowc4.sh (LOCALE_ZH_CN): Fix default value.
45698         * test-mbsnrtowcs4.sh (LOCALE_ZH_CN): Likewise.
45699         * test-mbsrtowcs4.sh (LOCALE_ZH_CN): Likewise.
45700         * test-wcrtomb.sh (LOCALE_ZH_CN): Likewise.
45701         * test-wcsnrtombs4.sh (LOCALE_ZH_CN): Likewise.
45702         * test-wcsrtombs4.sh (LOCALE_ZH_CN): Likewise.
45703
45704 2009-02-07  Bruno Haible  <bruno@clisp.org>
45705
45706         Make 64-bit clean.
45707         * lib/unictype/gen-ctype.c (output_predicate, output_category,
45708         output_combclass, output_bidi_category, output_decimal_digit,
45709         output_digit, output_numeric, output_mirror, output_scripts,
45710         output_ident_category): Use proper width specifier in format strings.
45711
45712 2009-02-07  Bruno Haible  <bruno@clisp.org>
45713
45714         * doc/posix-functions/dirfd.texi: Clarify situation on mingw. Document
45715         failure behaviour.
45716
45717 2009-02-07  Jim Meyering  <meyering@redhat.com>
45718
45719         regex: avoid compilation failure with upcoming gcc-4.4
45720         * lib/regex_internal.h: Revert e48d8b47fb3eee81d341b71c3e006efe9e3433a7
45721         [workaround for PGC prior to 6.1-2].  Otherwise, we'd get this:
45722         "... error: integer overflow in preprocessor expression".
45723
45724 2009-02-05  Ben Pfaff  <blp@gnu.org>
45725
45726         Fix link errors on Windows when close module is used.
45727         * modules/close: Add $(LIB_CLOSE) to Link section.
45728         * m4/close.m4 (gl_REPLACE_CLOSE): Substitute -lws2_32 into
45729         $(LIB_CLOSE) on Windows.
45730
45731 2009-02-05  Jim Meyering  <meyering@redhat.com>
45732
45733         still avoid unused-parameter warnings, but do it cleanly
45734         * lib/fsusage.c (UNUSED_PARAM): Remove definition.
45735         (get_fs_usage): Cast to void instead.
45736         * lib/mountlist.c (UNUSED_PARAM): Remove definition.
45737         (dev_from_mount_options, read_file_system_list): Cast to void.
45738         Prompted by Bruno Haible.
45739
45740 2009-02-04  Jim Meyering  <meyering@redhat.com>
45741
45742         fsusage.c: correct copyright year
45743         * lib/fsusage.c: Reflect year in which the change is pushed into
45744
45745         avoid misc. warnings
45746         * lib/fsusage.c (UNUSED_PARAM): Define.
45747         (get_fs_usage): Mark parameter "disk" as unused.
45748         * lib/getugroups.c (getgrent): Use "void" in prototype.
45749         * lib/mountlist.c: Mark unused parameters.
45750         (read_file_system_list): Declare a local with "const".
45751         * lib/nanosleep.c (getnow): Declare static.
45752         * lib/strftime.c: Include strftime.h, for declaration of nstrftime.
45753
45754         dirfd: set errno upon failure
45755         * lib/dirfd.c: Include <errno.h>.
45756         Set errno to ENOTSUP when returning -1.
45757         * modules/dirfd (Depends-on): Add errno.
45758         Suggested by John Kodis <kodis@comcast.net>.
45759
45760 2009-02-01  Bruno Haible  <bruno@clisp.org>
45761
45762         Don't assume sizeof (long) >= sizeof (void *).
45763         * lib/memcmp.c: Include stdint.h.
45764         (memcmp_bytes): Change argument types to op_t. Change type of srcp1,
45765         srcp2 to 'const byte *'.
45766         (memcmp_common_alignment, memcmp_not_common_alignment): Change argument
45767         types to uintptr_t.
45768         (rpl_memcmp): Change type of srcp1, srcp2 to 'uintptr_t'.
45769         * modules/memcmp (Depends-on): Add stdint.
45770         Reported by Ozkan Sezer <sezeroz@gmail.com>.
45771
45772 2009-01-30  Eric Blake  <ebb9@byu.net>
45773
45774         fix more require-before-expand issues
45775         * m4/pmccabe2html.m4 (gl_PMCCABE2HTML): Require, rather than
45776         expand, AC_PROG_AWK.
45777         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): Use AC_DEFUN_ONCE.
45778
45779 2009-01-28  Eric Blake  <ebb9@byu.net>
45780
45781         version-etc: use consistent URL formatting
45782         * lib/version-etc.c (emit_bug_reporting_address, version_etc_va):
45783         Improve formatting.  Use fputs for string without %.
45784
45785 2009-01-28  Jim Meyering  <meyering@redhat.com>
45786
45787         00gnulib.m4: add m4 quotes in shell comment to avoid autoconf warning
45788         * m4/00gnulib.m4 (AC_DEFUN_ONCE): Add quotes to avoid an
45789         "underquoted definition of NAME" from autoconf-2.59.
45790
45791 2009-01-28  Bruno Haible  <bruno@clisp.org>
45792
45793         * doc/gnulib.texi: Add "Obsolete modules" to index.
45794
45795 2009-01-28  Jim Meyering  <meyering@redhat.com>
45796
45797         useless-if-before-free: recognize more variants
45798         * build-aux/useless-if-before-free: Also recognize e.g.,
45799         if (NULL != p) free (p);
45800
45801 2009-01-27  Mark McLoughlin  <markmc@redhat.com>
45802
45803         test-getaddrinfo: skip (don't fail) this test when there's no network
45804         * tests/test-getaddrinfo.c: Skip test upon failure with EAI_AGAIN,
45805         on the presumption that it means you lack network access.
45806
45807 2009-01-26  Jim Meyering  <meyering@redhat.com>
45808
45809         fflush: avoid warnings on modern systems
45810         * lib/fflush.c (rpl_fflush): Move declarations of locals,
45811         pos and result, into scopes where they're used.
45812
45813 2009-01-26  Eric Blake  <ebb9@byu.net>
45814
45815         Silence warning reintroduced by recent extensions patch.
45816         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS)
45817         (gl_USE_SYSTEM_EXTENSIONS): Use AC_DEFUN_ONCE to silence newer
45818         autoconf.
45819
45820         Backport improved autoconf semantics of AC_DEFUN_ONCE.
45821         * m4/00gnulib.m4: New file.
45822         * gnulib-tool (func_get_filelist): Always use it.
45823         * m4/gnulib-common.m4 (gl_COMMON): Force the file to be used.
45824         Reported by Bruno Haible, with suggestions from Paolo Bonzini.
45825
45826 2009-01-25  Bruno Haible  <bruno@clisp.org>
45827
45828         Make test-quotearg work on MacOS X and AIX.
45829         * tests/test-quotearg.sh: New file.
45830         * tests/locale/fr/LC_MESSAGES/test-quotearg.po: New file.
45831         * tests/locale/fr/LC_MESSAGES/test-quotearg.mo: New file.
45832         * tests/test-quotearg.c: Include <locale.h> and gettext.h. Don't
45833         include <libintl.h>.
45834         (fake_locale): Remove variable.
45835         (gettext, dgettext, dcgettext): Remove functions.
45836         (main): Instead of setting a fake locale, set a real locale. Call
45837         textdomain and bindtextdomain.
45838         * modules/quotearg-tests (Files): Add the new files.
45839         (Depends-on): Add gettext, setenv, unsetenv.
45840         (configure.ac): Invoke gt_LOCALE_FR and gt_LOCALE_FR_UTF8.
45841         (Makefile.am): Add test-quotearg.sh to TESTS, remove test-quotearg.
45842         Augment TESTS_ENVIRONMENT.
45843
45844 2009-01-25  Bruno Haible  <bruno@clisp.org>
45845
45846         * m4/locale-fr.m4 (gt_LOCALE_FR): Remove special code that hid the
45847         fr_FR.ISO8859-1 locale on MacOS X.
45848         * m4/locale-ja.m4 (gt_LOCALE_JA): Remove special code that hid the
45849         ja_JP.eucJP locale on MacOS X.
45850         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Remove special code that hid the
45851         zh_CN.GB18030 locale on MacOS X.
45852
45853 2009-01-25  Bruno Haible  <bruno@clisp.org>
45854
45855         Avoid link errors on MacOS X 10.3.
45856         * lib/mbsrtowcs-state.c (_gl_mbsrtowcs_state): Add initializer.
45857         * lib/wcsrtombs-state.c (_gl_wcsrtombs_state): Likewise.
45858
45859 2009-01-25  Bruno Haible  <bruno@clisp.org>
45860
45861         * lib/pipe.c: On Unix, assume HAVE_POSIX_SPAWN and use posix_spawnp.
45862         * m4/pipe.m4 (gl_PIPE): Remove tests for vfork() based code.
45863         * modules/pipe (Files): Remove m4/posix_spawn.m4.
45864         (Depends-on): Add spawn, posix_spawnp, posix_spawn_file_actions_init,
45865         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2,
45866         posix_spawn_file_actions_addopen, posix_spawn_file_actions_destroy,
45867         posix_spawnattr_init, posix_spawnattr_setsigmask,
45868         posix_spawnattr_setflags, posix_spawnattr_destroy.
45869
45870         * lib/execute.c: On Unix, assume HAVE_POSIX_SPAWN and use posix_spawnp.
45871         * m4/execute.m4 (gl_EXECUTE): Remove tests for vfork() based code.
45872         * modules/execute (Files): Remove m4/posix_spawn.m4.
45873         (Depends-on): Add spawn, posix_spawnp, posix_spawn_file_actions_init,
45874         posix_spawn_file_actions_addopen, posix_spawn_file_actions_destroy,
45875         posix_spawnattr_init, posix_spawnattr_setsigmask,
45876         posix_spawnattr_setflags, posix_spawnattr_destroy.
45877
45878 2009-01-25  Bruno Haible  <bruno@clisp.org>
45879
45880         * lib/glthread/threadlib.c: Include <stdlib.h>.
45881
45882 2009-01-25  Bruno Haible  <bruno@clisp.org>
45883
45884         * lib/glthread/threadlib.c (dummy): New declaration.
45885
45886 2009-01-25  Bruno Haible  <bruno@clisp.org>
45887
45888         * lib/mbrtowc.c (mbrtowc): Distinguish invalid and incomplete
45889         multibyte characters also for the GB18030 encoding. Don't crash when
45890         the encoding is unknown and nstate = 0. Needed on OSF/1 5.1.
45891
45892 2009-01-25  Bruno Haible  <bruno@clisp.org>
45893
45894         Avoid redefining 'struct random_data' on OSF/1 5.1.
45895         * lib/stdlib.in.h: Include <random.h> if it exists.
45896         * m4/stdlib_h.m4 (gl_STDLIB_H): Test whether <random.h> exists. Set
45897         HAVE_RANDOM_H. Include <random.h> when testing whether
45898         'struct random_data' exists.
45899         * modules/stdlib (Makefile.am): Substitute HAVE_RANDOM_H.
45900
45901 2009-01-25  Bruno Haible  <bruno@clisp.org>
45902
45903         Don't install charset.alias on MacOS X >= 10.3.
45904         * lib/localcharset.c (DARWIN7): New macro.
45905         (get_charset_aliases): Hardcode the result for Darwin7.
45906         * modules/localcharset (install-exec-local): Don't install
45907         charset.alias on MacOS X >= 10.3, if the file does not yet exist.
45908
45909 2009-01-25  Bruno Haible  <bruno@clisp.org>
45910
45911         Don't install charset.alias on mingw and Cygwin.
45912         * modules/localcharset (install-exec-local): Don't install
45913         charset.alias on mingw and Cygwin, if the file does not yet exist.
45914         The result for these platforms is hardcoded in localcharset.c.
45915
45916 2009-01-25  Bruno Haible  <bruno@clisp.org>
45917
45918         Make it possible again to use AC_GNU_SOURCE together with gnulib.
45919         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Require AC_GNU_SOURCE
45920         before requiring AC_USE_SYSTEM_EXTENSIONS.
45921
45922 2009-01-25  Jim Meyering  <meyering@redhat.com>
45923
45924         c-strtod: avoid warnings
45925         * lib/c-strtod.c (C_STRTOD): Cast nptr to (char *) to avoid
45926         "assignment discards qualifiers from pointer target type" warnings.
45927
45928 2009-01-24  Bruno Haible  <bruno@clisp.org>
45929
45930         Add support for non-UTF-8 locales on MacOS X.
45931         * lib/config.charset: Add CP1131, ARMSCII-8, PT154 to the list of
45932         canonical encodings. For Darwin 7 and newer, don't map traditional
45933         encodings to UTF-8.
45934         Reported by Vincent Lefevre <vincent@vinc17.org>
45935         at <http://savannah.gnu.org/bugs/?25235>.
45936
45937 2009-01-24  Bruno Haible  <bruno@clisp.org>
45938
45939         * doc/gnulib.texi (Obsolete modules): New section.
45940         Reported by Mike Frysinger <vapier@gentoo.org>.
45941
45942 2009-01-24  Bruno Haible  <bruno@clisp.org>
45943
45944         * doc/Makefile (%.pdf): Clarify where to find texmf.cnf.
45945         (%.dvi): New rule.
45946
45947 2009-01-24  Bruno Haible  <bruno@clisp.org>
45948
45949         * lib/c-strtod.h (c_strtod, c_strtold): Adjust specification.
45950         Reported by Eric Blake.
45951
45952 2009-01-24  Bruno Haible  <bruno@clisp.org>
45953
45954         * lib/c-stack.c (segv_handler): If !HAVE_XSI_STACK_OVERFLOW_HEURISTIC,
45955         set signo = 0 also if info->si_code <= 0. Needed on HP-UX 11.11.
45956         Reported by Gary V. Vaughan <gary@gnu.org>.
45957
45958 2009-01-24  Bruno Haible  <bruno@clisp.org>
45959
45960         * lib/c-strtod.h (c_strtod, c_strtold): Add specification.
45961
45962 2009-01-23  Bruno Haible  <bruno@clisp.org>
45963
45964         Make c-strtod, c-strtold usable in libraries.
45965         * lib/c-strtod.c: Include string.h instead of xalloc.h.
45966         (C_STRTOD): Call strdup instead of xstrdup.
45967         * modules/c-strtod (Depends-on): Add strdup-posix, remove xalloc.
45968         * modules/c-strtold (Depends-on): Likewise.
45969         * doc/c-strtod.texi: Remove the sentence mentioning xalloc_die.
45970         * NEWS: Mention the change.
45971         Reported by Michael Gold <mgold@ncf.ca>.
45972
45973 2009-01-23  Jim Meyering  <meyering@redhat.com>
45974
45975         c-strtod: when ENDPTR is non-NULL, set *ENDPTR in new failure path
45976         * lib/c-strtod.c (C_STRTOD) [LC_ALL_MASKC]: Ensure that when
45977         ENDPTR is non-NULL, *ENDPTR is set to NPTR upon failure.
45978
45979 2009-01-23  Simon Josefsson  <simon@josefsson.org>
45980
45981         * lib/version-etc.c: Add emit_bug_reporting_address, inspired by
45982         GNU CoreUtils.
45983         * lib/version-etc.h: Add prototype for emit_bug_reporting_address.
45984         * modules/version-etc (Description): Update.
45985
45986 2009-01-22  Bruno Haible  <bruno@clisp.org>
45987
45988         Cache the C locale object.
45989         * lib/c-strtod.c (c_locale_cache): New variable.
45990         (c_locale): New function.
45991         (C_STRTOD): Use it, and don't call freelocale.
45992         * m4/c-strtod.m4 (gl_C_STRTOD, gl_C_STRTOLD): Require AC_C_INLINE.
45993         Suggested by Paolo Bonzini.
45994
45995 2009-01-21  Bruno Haible  <bruno@clisp.org>
45996
45997         * lib/getloadavg.c (getloadavg): Check c_strtod result against error
45998         conditions other than overflow.
45999
46000 2009-01-21  Bruno Haible  <bruno@clisp.org>
46001
46002         * lib/c-strtod.c: Include errno.h.
46003         (C_STRTOD): Check against NULL return from newlocale. Preserve errno
46004         value from STRTOD_L and STRTOD.
46005
46006 2009-01-21  Bruno Haible  <bruno@clisp.org>
46007         and Jim Meyering  <meyering@redhat.com>
46008
46009         nanosleep: skip configure test (fail it) for apple universal builds
46010         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require gl_MULTIARCH. In Apple
46011         universal builds, assume that nanosleep does not work.
46012         * modules/nanosleep (Depends-on): Add multiarch.
46013
46014         mktime: skip configure test (fail it) for apple universal builds
46015         * m4/mktime.m4 (AC_FUNC_MKTIME): Require gl_MULTIARCH. In Apple
46016         universal builds, assume that mktime does not work.
46017         * modules/mktime (Depends-on): Add multiarch.
46018
46019 2009-01-21  Eric Blake  <ebb9@byu.net>
46020
46021         multiarch: avoid expand-before-require warning
46022         * modules/multiarch (configure.ac): Require, rather than expand,
46023         gl_MULTIARCH.
46024         * m4/multiarch.m4 (gl_MULTIARCH_BODY): Merge...
46025         (gl_MULTIARCH): ...into this macro, and use AC_DEFUN_ONCE to
46026         enforce that all clients require it.  Partial reversion of
46027         2008-12-29 patch.
46028
46029         error: avoid expand-before-require warning
46030         * modules/errno (configure.ac): Require, rather than expand,
46031         gl_HEADER_ERRNO_H.
46032         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Merge...
46033         (gl_HEADER_ERRNO_H): ...into this macro, and use AC_DEFUN_ONCE to
46034         enforce that all clients require it.
46035
46036         gnulib-tool: avoid warnings from using obsolete AC_GNU_SOURCE
46037         * gnulib-tool (func_dest_tmpfilename, func_create_testdir): Using
46038         obsolete AC_GNU_SOURCE causes out-of-order expansion; avoid it,
46039         and rely solely on gl_USE_SYSTEM_EXTENSIONS.
46040
46041 2009-01-21  Paolo Bonzini  <bonzini@gnu.org>
46042
46043         Revert:
46044         2009-01-20  Paolo Bonzini  <bonzini@gnu.org>
46045
46046         regex: do not depend on obsolete modules.
46047         * modules/regex: Remove memcmp and memmove.
46048
46049 2009-01-20  Bruno Haible  <bruno@clisp.org>
46050
46051         Make the 'link' module link on Windows NT 4.
46052         * lib/link.c (_WIN32_WINNT): Don't define.
46053         (CreateHardLinkFuncType): New type.
46054         (CreateHardLinkFunc, initialized): New variables.
46055         (initialize): New function.
46056         (link): Invoke CreateHardLink indirectly through the function pointer.
46057
46058 2009-01-20  Bruno Haible  <bruno@clisp.org>
46059
46060         Fix compilation failure on mingw.
46061         * tests/test-link.c (main): Don't assume that EOPNOTSUPP exists.
46062
46063 2009-01-20  Michael Gold  <mgold@ncf.ca>  (tiny change)
46064
46065         * doc/c-strtod.texi: Mention a couple of restrictions.
46066
46067 2009-01-20  Jim Meyering  <meyering@redhat.com>
46068
46069         gettimeofday: move more declarations out of functions
46070         * lib/gettimeofday.c: Move extern declarations of tzset and
46071         gmtime out of containing functions.  Prompted by Bruno Haible.
46072
46073 2009-01-20  Paolo Bonzini  <bonzini@gnu.org>
46074
46075         regex: do not depend on obsolete modules.
46076         * modules/regex: Remove memcmp and memmove.
46077
46078 2009-01-19  Bruno Haible  <bruno@clisp.org>
46079
46080         Don't use AC_REQUIRE([AC_C_BIGENDIAN]).
46081         * modules/uniconv/u16-conv-from-enc (configure.ac): Require
46082         gl_BIGENDIAN, not AC_C_BIGENDIAN.
46083         * modules/uniconv/u16-conv-to-enc (configure.ac): Likewise.
46084         * modules/uniconv/u16-strconv-to-enc (configure.ac): Likewise.
46085
46086 2009-01-19  Bruno Haible  <bruno@clisp.org>
46087
46088         * tests/test-link.c: Include <errno.h>.
46089         (main): Exit with code 77 when a hard link cannot be created due to
46090         the file system.
46091         * tests/test-link.sh: Skip test when a hard link cannot be created due
46092         to the file system.
46093         Suggested by Eric Blake.
46094
46095 2009-01-19  Martin Lambers  <marlam@marlam.de>
46096
46097         * modules/link-tests: New file.
46098         * tests/test-link.sh: New file.
46099         * tests/test-link.c: New file.
46100
46101 2009-01-19  Eric Blake  <ebb9@byu.net>
46102
46103         doc: mention another function added in cygwin 1.7.0
46104         * doc/glibc-functions/glob_pattern_p.texi (glob_pattern_p):
46105         Another new function in cygwin 1.7.
46106
46107 2009-01-19  Bruno Haible  <bruno@clisp.org>
46108
46109         Don't use AC_REQUIRE([AC_C_BIGENDIAN]).
46110         * m4/gnulib-common.m4 (gl_BIGENDIAN): New macro.
46111         * m4/exponentl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Require
46112         gl_BIGENDIAN, not AC_C_BIGENDIAN.
46113         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
46114         * m4/isinf.m4 (gl_ISINFL_WORKS): Likewise.
46115         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
46116         * m4/md4.m4 (gl_MD4): Likewise.
46117         * m4/md5.m4 (gl_MD5): Likewise.
46118         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Likewise.
46119         * m4/sha1.m4 (gl_SHA1): Likewise.
46120         * m4/sha256.m4 (gl_SHA256): Likewise.
46121         * m4/sha512.m4 (gl_SHA512): Likewise.
46122
46123 2009-01-19  Bruno Haible  <bruno@clisp.org>
46124
46125         * modules/uniname/uniname-tests (Depends-on): Add progname.
46126         * tests/uniname/test-uninames.c: Include progname.h.
46127         (main): Call set_program_name.
46128
46129         * modules/unistdio/u8-vsprintf-tests (Depends-on): Add progname.
46130         * tests/unistdio/test-u8-vsprintf1.c: Include progname.h.
46131         (main): Call set_program_name.
46132
46133         * modules/unistdio/u8-vsnprintf-tests (Depends-on): Add progname.
46134         * tests/unistdio/test-u8-vsnprintf1.c: Include progname.h.
46135         (main): Call set_program_name.
46136
46137         * modules/unistdio/u16-vsprintf-tests (Depends-on): Add progname.
46138         * tests/unistdio/test-u16-vsprintf1.c: Include progname.h.
46139         (main): Call set_program_name.
46140
46141         * modules/unistdio/u16-vsnprintf-tests (Depends-on): Add progname.
46142         * tests/unistdio/test-u16-vsnprintf1.c: Include progname.h.
46143         (main): Call set_program_name.
46144
46145         * modules/unistdio/u32-vsprintf-tests (Depends-on): Add progname.
46146         * tests/unistdio/test-u32-vsprintf1.c: Include progname.h.
46147         (main): Call set_program_name.
46148
46149         * modules/unistdio/u32-vsnprintf-tests (Depends-on): Add progname.
46150         * tests/unistdio/test-u32-vsnprintf1.c: Include progname.h.
46151         (main): Call set_program_name.
46152
46153         * modules/unistdio/ulc-vsprintf-tests (Depends-on): Add progname.
46154         * tests/unistdio/test-ulc-vsprintf1.c: Include progname.h.
46155         (main): Call set_program_name.
46156
46157         * modules/unistdio/ulc-vsnprintf-tests (Depends-on): Add progname.
46158         * tests/unistdio/test-ulc-vsnprintf1.c: Include progname.h.
46159         (main): Call set_program_name.
46160
46161 2009-01-19  Eric Blake  <ebb9@byu.net>
46162
46163         test-unistd: test previous patch
46164         * tests/test-unistd.c: Test *_FILENO macros.
46165
46166         unistd: guarantee STDIN_FILENO here, for OS/2 EMX
46167         * lib/unistd.in.h (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
46168         Guarantee a definition.
46169         * doc/posix-headers/unistd.texi (unistd.h): Document the bug.
46170         * modules/unistd-safer (Depends-on): Add dependency on unistd.
46171         * lib/c-stack.c (STDERR_FILENO): Rely on <unistd.h>.
46172         * lib/dup-safer.c (STDERR_FILENO): Likewise.
46173         * lib/execute.c (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
46174         Likewise.
46175         * lib/fd-safer.c (STDIN_FILENO, STDERR_FILENO): Likewise.
46176         * lib/fopen-safer.c (STDERR_FILENO): Likewise.
46177         * lib/pipe.c (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
46178         Likewise.
46179         * lib/tmpfile-safer.c (STDERR_FILENO): Likewise.
46180         * tests/test-posix_spawn1.c (STDIN_FILENO, STDOUT_FILENO)
46181         (STDERR_FILENO): Likewise.
46182         * tests/test-posix_spawn2.c (STDIN_FILENO, STDOUT_FILENO)
46183         (STDERR_FILENO): Likewise.
46184         * tests/test-posix_spawn3.c (STDIN_FILENO, STDOUT_FILENO)
46185         (STDERR_FILENO): Likewise.
46186         Reported by Elbert Pol.
46187
46188 2009-01-19  Eric Blake  <ebb9@byu.net>
46189
46190         doc: mention more functions added in cygwin 1.7.0
46191         * doc/posix-functions/abort.texi (abort): Update wording related
46192         to cygwin.
46193         * doc/posix-functions/daylight.texi (daylight): Likewise.
46194         * doc/posix-functions/optarg.texi (optarg): Likewise.
46195         * doc/posix-functions/optarg.texi (opterr): Likewise.
46196         * doc/posix-functions/optarg.texi (optind): Likewise.
46197         * doc/posix-functions/optarg.texi (optopt): Likewise.
46198         * doc/posix-functions/wprintf.texi (wprintf): Cygwin wprintf never
46199         worked in 1.5.x, and was withdrawn in 1.7.
46200         * doc/posix-functions/vwprintf.texi (vwprintf): Likewise.
46201         * doc/posix-functions/fprintf.texi (fprintf): Tighten mention of
46202         cygwin versions.
46203         * doc/posix-functions/perror.texi (perror): Likewise.
46204         * doc/posix-functions/printf.texi (printf): Likewise.
46205         * doc/posix-functions/snprintf.texi (snprintf): Likewise.
46206         * doc/posix-functions/sprintf.texi (sprintf): Likewise.
46207         * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
46208         * doc/posix-functions/vprintf.texi (vprintf): Likewise.
46209         * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
46210         * doc/posix-functions/vsprintf.texi (vsprintf): Likewise.
46211         * doc/glibc-functions/obstack_printf.texi (obstack_printf):
46212         Likewise.
46213         * doc/glibc-functions/obstack_vprintf.texi (obstack_vprintf):
46214         Likewise.
46215         * doc/glibc-functions/cfmakeraw.texi (cfmakeraw): Cygwin 1.7 adds
46216         this function.
46217         * doc/glibc-functions/in6addr_any.texi (in6addr_any): Likewise.
46218         * doc/glibc-functions/in6addr_loopback.texi (in6addr_loopback):
46219         Likewise.
46220         * doc/glibc-functions/updwtmpx.texi (updwtmpx): Likewise.
46221         * doc/posix-functions/_Exit_C99.texi (_Exit): Likewise.
46222         * doc/posix-functions/confstr.texi (confstr): Likewise.
46223         * doc/posix-functions/dprintf.texi (dprintf): Likewise.
46224         * doc/posix-functions/fgetwc.texi (fgetwc): Likewise.
46225         * doc/posix-functions/fgetws.texi (fgetws): Likewise.
46226         * doc/posix-functions/fputwc.texi (fputwc): Likewise.
46227         * doc/posix-functions/fputws.texi (fputws): Likewise.
46228         * doc/posix-functions/fwide.texi (fwide): Likewise.
46229         * doc/posix-functions/getwc.texi (getwc): Likewise.
46230         * doc/posix-functions/getwchar.texi (getwchar): Likewise.
46231         * doc/posix-functions/putwc.texi (putwc): Likewise.
46232         * doc/posix-functions/putwchar.texi (putwchar): Likewise.
46233         * doc/posix-functions/sigignore.texi (sigignore): Likewise.
46234         * doc/posix-functions/ungetwc.texi (ungetwc): Likewise.
46235         * doc/posix-functions/vdprintf.texi (vdprintf): Likewise.
46236         * doc/posix-functions/wcpcpy.texi (wcpcpy): Likewise.
46237         * doc/posix-functions/wcpncpy.texi (wcpncpy): Likewise.
46238         * doc/posix-functions/wcstol.texi (wcstol): Likewise.
46239         * doc/posix-functions/wcstoll.texi (wcstoll): Likewise.
46240         * doc/posix-functions/wcstoul.texi (wcstoul): Likewise.
46241         * doc/posix-functions/wcstoull.texi (wcstoull): Likewise.
46242         * doc/posix-functions/wcsxfrm.texi (wcsxfrm): Likewise.
46243
46244 2009-01-19  Daniel P. Berrange  <berrange@redhat.com>
46245
46246         ioctl: avoid warning: no previous prototype for 'rpl_ioctl'
46247         * lib/ioctl.c: Include <sys/ioctl.h>.
46248
46249 2009-01-19  Simon Josefsson  <simon@josefsson.org>
46250
46251         * modules/getdate-tests (Depends-on): Add progname.
46252         * tests/test-getdate.c: Use progname module, to avoid link errors
46253         on non-glibc systems.
46254
46255 2009-01-18  Simon Josefsson  <simon@josefsson.org>
46256
46257         * modules/filenamecat-tests (Depends-on): Add progname.
46258         * modules/fstrcmp-tests (Depends-on): Likewise.
46259
46260         * tests/test-filenamecat.c: Use progname module, to avoid link
46261         errors on non-glibc systems.
46262         * tests/test-fstrcmp.c: Likewise.
46263
46264 2009-01-19  Daniel P. Berrange  <berrange@redhat.com>
46265
46266         gettimeofday: avoid warning: nested extern declaration of 'localtime'
46267         * lib/gettimeofday.c: Move extern declaration out of function.
46268
46269 2009-01-18  Bruno Haible  <bruno@clisp.org>
46270
46271         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't test for mblen and mbrlen.
46272         * lib/strftime.c (HAVE_MBLEN, HAVE_MBRLEN): Remove macros.
46273         (MULTIBYTE_IS_FORMAT_SAFE): Define to 1 on all platforms except OSF/1.
46274
46275 2009-01-18  Bruno Haible  <bruno@clisp.org>
46276
46277         * lib/strftime.c (MEMPCPY): Remove unused macro.
46278         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't test for mempcpy.
46279
46280 2009-01-18  Martin Lambers  <marlam@marlam.de>
46281
46282         New module 'link'.
46283         * lib/unistd.in.h (link): New declaration.
46284         * lib/link.c: New file.
46285         * m4/link.m4: New file.
46286         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_LINK,
46287         HAVE_LINK.
46288         * modules/unistd (Makefile.am): Substitute GNULIB_LINK, HAVE_LINK.
46289         * modules/link: New file.
46290         * doc/posix-functions/link.texi: Mention the new module.
46291
46292 2009-01-18  Bruno Haible  <bruno@clisp.org>
46293
46294         * tests/test-avltree_list.c (main): Call set_program_name.
46295         * tests/test-avltree_oset.c (main): Likewise.
46296         * tests/test-obstack-printf.c: Include progname.h.
46297         (main): Call set_program_name.
46298         * tests/test-quotearg.c: Include progname.h.
46299         (main): Call set_program_name.
46300         * tests/test-xmemdup0.c: Include progname.h.
46301         (main): Call set_program_name.
46302
46303 2009-01-18  Bruno Haible  <bruno@clisp.org>
46304
46305         New module 'alphasort'.
46306         * lib/dirent.in.h (alphasort): New declaration.
46307         * lib/alphasort.c: New file, from glibc with modifications.
46308         * m4/alphasort.m4: New file.
46309         * modules/alphasort: New file.
46310         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_ALPHASORT,
46311         HAVE_ALPHASORT.
46312         * modules/dirent (Makefile.am): Substitute GNULIB_ALPHASORT,
46313         HAVE_ALPHASORT.
46314         * doc/posix-functions/alphasort.texi: Mention the new module and the
46315         portability problems.
46316
46317 2009-01-18  Bruno Haible  <bruno@clisp.org>
46318
46319         New module 'scandir'.
46320         * lib/dirent.in.h (scandir): New declaration.
46321         * lib/scandir.c: New file, from glibc with modifications.
46322         * m4/scandir.m4: New file.
46323         * modules/scandir: New file.
46324         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_SCANDIR,
46325         HAVE_SCANDIR.
46326         * modules/dirent (Makefile.am): Substitute GNULIB_SCANDIR,
46327         HAVE_SCANDIR.
46328         * doc/posix-functions/scandir.texi: Mention the new module and the
46329         portability problems.
46330
46331 2009-01-17  Bruno Haible  <bruno@clisp.org>
46332
46333         * gnulib-tool (func_remove_prefix): Escape all dots in the prefix.
46334         Update documentation.
46335         (func_remove_suffix): Escape all dots in the suffix. Update
46336         documentation.
46337         (func_filter_filelist): Update documentation.
46338         Reported by Ralf Wildenhues.
46339
46340 2009-01-17  Bruno Haible  <bruno@clisp.org>
46341
46342         * modules/dprintf-posix-tests: New file.
46343         * tests/test-dprintf-posix.sh: New file.
46344         * tests/test-dprintf-posix.c: New file.
46345
46346         New modules 'dprintf', 'dprintf-posix'.
46347         * lib/stdio.in.h (dprintf): New declaration.
46348         * lib/dprintf.c: New file.
46349         * m4/dprintf.m4: New file.
46350         * m4/dprintf-posix.m4: New file.
46351         * modules/dprintf: New file.
46352         * modules/dprintf-posix: New file.
46353         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_DPRINTF,
46354         HAVE_DPRINTF, REPLACE_DPRINTF.
46355         * modules/stdio (Makefile.am): Substitute also GNULIB_DPRINTF,
46356         HAVE_DPRINTF, REPLACE_DPRINTF.
46357         * doc/posix-functions/dprintf.texi: Mention the new modules.
46358
46359 2009-01-17  Bruno Haible  <bruno@clisp.org>
46360
46361         * modules/vdprintf-posix-tests: New file.
46362         * tests/test-vdprintf-posix.sh: New file.
46363         * tests/test-vdprintf-posix.c: New file.
46364
46365         New modules 'vdprintf', 'vdprintf-posix'.
46366         * lib/stdio.in.h (vdprintf): New declaration.
46367         * lib/vdprintf.c: New file.
46368         * m4/vdprintf.m4: New file.
46369         * m4/vdprintf-posix.m4: New file.
46370         * modules/vdprintf: New file.
46371         * modules/vdprintf-posix: New file.
46372         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_VDPRINTF,
46373         HAVE_VDPRINTF, REPLACE_VDPRINTF.
46374         * modules/stdio (Makefile.am): Substitute also GNULIB_VDPRINTF,
46375         HAVE_VDPRINTF, REPLACE_VDPRINTF.
46376         * doc/posix-functions/vdprintf.texi: Mention the new modules.
46377
46378 2009-01-17  Bruno Haible  <bruno@clisp.org>
46379
46380         Fix replacement of fopen on mingw.
46381         * m4/fopen.m4 (gl_FUNC_FOPEN): Define FOPEN_TRAILING_SLASH_BUG also on
46382         mingw.
46383
46384 2009-01-17  Bruno Haible  <bruno@clisp.org>
46385
46386         Fix compilation error on HP-UX 11.00, present since 2008-09-24.
46387         * lib/fopen.c: Include <sys/types.h> and <sys/types.h>.
46388
46389 2009-01-17  Bruno Haible  <bruno@clisp.org>
46390
46391         Avoid test-fflush2.sh failure on mingw.
46392         * tests/test-fflush2.c: Include binary-io.h.
46393         (main): Put standard input into binary mode.
46394         * modules/fflush-tests (Depends-on): Add binary-io.
46395
46396 2009-01-17  Bruno Haible  <bruno@clisp.org>
46397
46398         * lib/wchar.in.h: In another particular situation, include only the
46399         system's <wchar.h> file.
46400         (_GL_ALREADY_INCLUDING_WCHAR_H): New macro.
46401         Reported by Albert Chin-A-Young <china@thewrittenword.com>
46402         and Thomas Guyot-Sionnest <dermoth@aei.ca>.
46403
46404 2009-01-17  Bruno Haible  <bruno@clisp.org>
46405
46406         Support for stripping executables in --enable-relocatable.
46407         * build-aux/install-reloc: Expect one more argument, or an environment
46408         variable RELOC_STRIP_PROG. If set, strip the destination program and
46409         its wrapper.
46410         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): In INSTALL_PROGRAM_ENV, set
46411         RELOC_STRIP_PROG.
46412         * doc/relocatable-maint.texi (Supporting Relocation): Mention the need
46413         to set RELOCATABLE_STRIP.
46414         * NEWS: Mention the new Makefile requirement.
46415
46416 2009-01-17  Bruno Haible  <bruno@clisp.org>
46417
46418         * build-aux/install-reloc: Remove debugging information left over by
46419         C compiler on MacOS X.
46420
46421 2009-01-17  Bruno Haible  <bruno@clisp.org>
46422
46423         Update use of _NSGetExecutablePath after API change in MacOS X 10.4.
46424         * lib/progreloc.c (find_executable): Fix type of pointer passed to
46425         _NSGetExecutablePath.
46426
46427 2009-01-16  Jim Meyering  <meyering@redhat.com>
46428
46429         strerror: avoid warnings about discarding "const"
46430         * lib/strerror.c (rpl_strerror): Instead of returning a const
46431         string from each and every "case", use a variable, and add a single
46432         cast after the switch.
46433
46434 2009-01-16  Albert Chin-A-Young <china@thewrittenword.com>
46435
46436         * lib/arpa_inet.in.h: Add extern "C" block for C++.
46437
46438 2009-01-16  Bruno Haible  <bruno@clisp.org>
46439
46440         * m4/printf.m4 (gl_SNPRINTF_SIZE1, gl_VSNPRINTF_ZEROSIZE_C99): Use an
46441         array initializer syntax that also works in C++ mode.
46442         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
46443
46444 2009-01-16  Jim Meyering  <meyering@redhat.com>
46445
46446         poll: suppress a warning
46447         * lib/poll.c: Use #pragma GCC diagnostic ignored "-Wtype-limits"
46448         to ignore "...unsigned expression < 0 is always false" warnings.
46449
46450 2009-01-16  Daniel P. Berrange  <berrange@redhat.com>
46451
46452         poll: remove declarations of unused variables
46453         * lib/poll.c (poll) [WIN32_NATIVE]: Remove declarations of unused
46454         sockbuf and optlen.
46455
46456 2009-01-15  Bruno Haible  <bruno@clisp.org>
46457
46458         Make fflush-after-ungetc POSIX compliant on BSD systems.
46459         * lib/fflush.c (clear_ungetc_buffer_preserving_position): New function.
46460         (clear_ungetc_buffer): Implement also for other systems.
46461         (rpl_fflush): On glibc systems, invoke
46462         clear_ungetc_buffer_preserving_position. Otherwise, invoke
46463         clear_ungetc_buffer after fetching the stream's position, not before.
46464
46465 2009-01-15  Bruno Haible  <bruno@clisp.org>
46466
46467         Make fflush-after-ungetc POSIX compliant on glibc systems.
46468         * m4/fflush.m4 (gl_FUNC_FFLUSH): Test also the behaviour of fflush
46469         after ungetc.
46470         * lib/fflush.c (clear_ungetc_buffer): Implement for glibc systems.
46471         (rpl_fflush): On glibc systems, simply call the system's fflush
46472         function after clearing the ungetc buffer.
46473         * lib/fseeko.c (rpl_fseeko): Don't try to lseek past the end of file.
46474         Instead, lseek only to the end of file, then use the system's fseeko
46475         for the rest. On glibc systems, reset the EOF indicator bit.
46476
46477 2009-01-15  Jim Meyering  <meyering@redhat.com>
46478
46479         openmp.m4: revert quote-adding change, for portability to older autoconf
46480         * m4/openmp.m4: Remove the quotes added on 2009-01-14.
46481         This reverts part of 42d1eda5dcce2d68deab7a642e7f29bcd7144a0d.
46482         Simon Josefsson noticed the problem when using autoconf-2.61.
46483
46484 2009-01-15  Bruno Haible  <bruno@clisp.org>
46485
46486         * tests/test-fflush2.sh: Invoke test-fflush2 twice.
46487         * tests/test-fflush2.c (ASSERT): Always fail.
46488         (main): Add two tests for fflush() after ungetc(), taking into account
46489         the Austin Group's clarification.
46490         Suggested by Eric Blake.
46491
46492 2009-01-15  Albert Chin-A-Young  <china@thewrittenword.com>
46493
46494         mktime.m4: remove K&R-style function prototypes
46495         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove K&R-style function prototypes
46496         for the Sun C++ compiler.
46497
46498 2009-01-14  Bruno Haible  <bruno@clisp.org>
46499
46500         * lib/stdint.in.h (_GL_JUST_INCLUDE_SYSTEM_WCHAR_H): New macro, defined
46501         while including <wchar.h>.
46502         * lib/wchar.in.h: In two particular situations on HP-UX, include only
46503         the system's <wchar.h> file.
46504         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
46505
46506 2009-01-14  Bruno Haible  <bruno@clisp.org>
46507
46508         * m4/csharp.m4: Don't mention gettext on the serial number line.
46509         * m4/csharpexec.m4: Likewise.
46510         * m4/eaccess.m4: Likewise.
46511         * m4/javaexec.m4: Likewise.
46512         * m4/sig_atomic_t.m4: Likewise.
46513         * m4/tmpdir.m4: Likewise.
46514         * m4/intldir.m4: Bump gettext version.
46515         * m4/lib-ld.m4: Likewise.
46516
46517 2009-01-14  Bruno Haible  <bruno@clisp.org>
46518
46519         * lib/progname.c (set_program_name): Add more comments.
46520         Reported by Sergey Poznyakoff <gray@gnu.org.ua>.
46521
46522 2009-01-14  Simon Josefsson  <simon@josefsson.org>
46523
46524         * lib/sys_stat.in.h: Include sys/types.h for nlink_t on systems
46525         were sys/stat.h does not define it.
46526
46527 2009-01-14  Jim Meyering  <meyering@redhat.com>
46528
46529         many *.m4 files: improve m4 quoting
46530         99% of this change was performed by running the following commands:
46531         git ls-files | grep '\.m4$' | xargs perl -pi \
46532           -e 's/(AC_\w+\()([^[()]+?)([,)])/$1\[$2]$3/g;' \
46533           -e 's/(AC_\w+\((?:\[[^,]+?\], ){1})([^,[()]+?)([,)])/$1\[$2]$3/g;' \
46534           -e 's/(AC_\w+\((?:\[[^,]+?\], ){2})([^,[()]+?)([,)])/$1\[$2]$3/g;' \
46535           -e 's/(AC_\w+\((?:\[[^,]+?\], ){3})([^,[()]+?)([,)])/$1\[$2]$3/g'
46536         perl -pi -e 's/\[\.\.\.\]/.../' m4/onceonly.m4
46537         The remainder were to add Copyright dates, increment serial numbers,
46538         undo some changes in comments, exclude m4/intl.m4, and add quotes
46539         around the "1" in ",1" where the unusual spacing prohibited the
46540         above regexps from doing the job.  For more details, see
46541         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/16175>.
46542         * m4/acl.m4: Modified.
46543         * m4/afs.m4: Likewise.
46544         * m4/alloca.m4: Likewise.
46545         * m4/argp.m4: Likewise.
46546         * m4/argz.m4: Likewise.
46547         * m4/atexit.m4: Likewise.
46548         * m4/bison-i18n.m4: Likewise.
46549         * m4/bison.m4: Likewise.
46550         * m4/byteswap.m4: Likewise.
46551         * m4/c-stack.m4: Likewise.
46552         * m4/c-strtod.m4: Likewise.
46553         * m4/calloc.m4: Likewise.
46554         * m4/canonicalize-lgpl.m4: Likewise.
46555         * m4/chown.m4: Likewise.
46556         * m4/clock_time.m4: Likewise.
46557         * m4/codeset.m4: Likewise.
46558         * m4/copy-file.m4: Likewise.
46559         * m4/csharp.m4: Likewise.
46560         * m4/csharpcomp.m4: Likewise.
46561         * m4/csharpexec.m4: Likewise.
46562         * m4/d-ino.m4: Likewise.
46563         * m4/d-type.m4: Likewise.
46564         * m4/dirfd.m4: Likewise.
46565         * m4/double-slash-root.m4: Likewise.
46566         * m4/eaccess.m4: Likewise.
46567         * m4/eealloc.m4: Likewise.
46568         * m4/environ.m4: Likewise.
46569         * m4/errno_h.m4: Likewise.
46570         * m4/euidaccess.m4: Likewise.
46571         * m4/execute.m4: Likewise.
46572         * m4/fatal-signal.m4: Likewise.
46573         * m4/fchdir.m4: Likewise.
46574         * m4/fcntl_h.m4: Likewise.
46575         * m4/fileblocks.m4: Likewise.
46576         * m4/filenamecat.m4: Likewise.
46577         * m4/findprog.m4: Likewise.
46578         * m4/flexmember.m4: Likewise.
46579         * m4/fnmatch.m4: Likewise.
46580         * m4/fopen.m4: Likewise.
46581         * m4/fpending.m4: Likewise.
46582         * m4/fprintf-posix.m4: Likewise.
46583         * m4/free.m4: Likewise.
46584         * m4/frexp.m4: Likewise.
46585         * m4/frexpl.m4: Likewise.
46586         * m4/fsusage.m4: Likewise.
46587         * m4/ftruncate.m4: Likewise.
46588         * m4/gc-camellia.m4: Likewise.
46589         * m4/gc-random.m4: Likewise.
46590         * m4/gc.m4: Likewise.
46591         * m4/getaddrinfo.m4: Likewise.
46592         * m4/getcwd-abort-bug.m4: Likewise.
46593         * m4/getcwd-path-max.m4: Likewise.
46594         * m4/getdate.m4: Likewise.
46595         * m4/getdomainname.m4: Likewise.
46596         * m4/getgroups.m4: Likewise.
46597         * m4/gethostname.m4: Likewise.
46598         * m4/gethrxtime.m4: Likewise.
46599         * m4/getline.m4: Likewise.
46600         * m4/getloadavg.m4: Likewise.
46601         * m4/getndelim2.m4: Likewise.
46602         * m4/getpass.m4: Likewise.
46603         * m4/gettext.m4: Likewise.
46604         * m4/gettime.m4: Likewise.
46605         * m4/gettimeofday.m4: Likewise.
46606         * m4/gnulib-common.m4: Likewise.
46607         * m4/group-member.m4: Likewise.
46608         * m4/host-os.m4: Likewise.
46609         * m4/iconv.m4: Likewise.
46610         * m4/iconv_open.m4: Likewise.
46611         * m4/inet_ntop.m4: Likewise.
46612         * m4/inet_pton.m4: Likewise.
46613         * m4/inline.m4: Likewise.
46614         * m4/intldir.m4: Likewise.
46615         * m4/intlmacosx.m4: Likewise.
46616         * m4/intmax.m4: Likewise.
46617         * m4/intmax_t.m4: Likewise.
46618         * m4/inttypes.m4: Likewise.
46619         * m4/inttypes_h.m4: Likewise.
46620         * m4/inttypes-pri.m4: Likewise.
46621         * m4/isapipe.m4: Likewise.
46622         * m4/isnand.m4: Likewise.
46623         * m4/isnanf.m4: Likewise.
46624         * m4/isnanl.m4: Likewise.
46625         * m4/javacomp.m4: Likewise.
46626         * m4/javaexec.m4: Likewise.
46627         * m4/jm-winsz1.m4: Likewise.
46628         * m4/jm-winsz2.m4: Likewise.
46629         * m4/lchown.m4: Likewise.
46630         * m4/lcmessage.m4: Likewise.
46631         * m4/ldexpl.m4: Likewise.
46632         * m4/lib-ld.m4: Likewise.
46633         * m4/lib-link.m4: Likewise.
46634         * m4/libsigsegv.m4: Likewise.
46635         * m4/link-follow.m4: Likewise.
46636         * m4/localcharset.m4: Likewise.
46637         * m4/locale-fr.m4: Likewise.
46638         * m4/locale-ja.m4: Likewise.
46639         * m4/locale-tr.m4: Likewise.
46640         * m4/locale-zh.m4: Likewise.
46641         * m4/lock.m4: Likewise.
46642         * m4/longlong.m4: Likewise.
46643         * m4/ls-mntd-fs.m4: Likewise.
46644         * m4/lstat.m4: Likewise.
46645         * m4/malloc.m4: Likewise.
46646         * m4/mathl.m4: Likewise.
46647         * m4/mbrtowc.m4: Likewise.
46648         * m4/mbstate_t.m4: Likewise.
46649         * m4/mbswidth.m4: Likewise.
46650         * m4/memchr.m4: Likewise.
46651         * m4/memcmp.m4: Likewise.
46652         * m4/memcpy.m4: Likewise.
46653         * m4/memmem.m4: Likewise.
46654         * m4/memmove.m4: Likewise.
46655         * m4/mempcpy.m4: Likewise.
46656         * m4/memrchr.m4: Likewise.
46657         * m4/memset.m4: Likewise.
46658         * m4/minmax.m4: Likewise.
46659         * m4/mkdir-slash.m4: Likewise.
46660         * m4/mkdtemp.m4: Likewise.
46661         * m4/mktime.m4: Likewise.
46662         * m4/mmap-anon.m4: Likewise.
46663         * m4/mountlist.m4: Likewise.
46664         * m4/nanosleep.m4: Likewise.
46665         * m4/nls.m4: Likewise.
46666         * m4/nocrash.m4: Likewise.
46667         * m4/open.m4: Likewise.
46668         * m4/openat.m4: Likewise.
46669         * m4/openmp.m4: Likewise.
46670         * m4/pathmax.m4: Likewise.
46671         * m4/perl.m4: Likewise.
46672         * m4/physmem.m4: Likewise.
46673         * m4/pipe.m4: Likewise.
46674         * m4/po.m4: Likewise.
46675         * m4/poll.m4: Likewise.
46676         * m4/posixtm.m4: Likewise.
46677         * m4/posixver.m4: Likewise.
46678         * m4/printf-frexp.m4: Likewise.
46679         * m4/printf-frexpl.m4: Likewise.
46680         * m4/printf-posix.m4: Likewise.
46681         * m4/printf-posix-rpl.m4: Likewise.
46682         * m4/printf.m4: Likewise.
46683         * m4/progtest.m4: Likewise.
46684         * m4/putenv.m4: Likewise.
46685         * m4/readline.m4: Likewise.
46686         * m4/readlink.m4: Likewise.
46687         * m4/readutmp.m4: Likewise.
46688         * m4/realloc.m4: Likewise.
46689         * m4/regex.m4: Likewise.
46690         * m4/relocatable.m4: Likewise.
46691         * m4/relocatable-lib.m4: Likewise.
46692         * m4/rename-dest-slash.m4: Likewise.
46693         * m4/rename.m4: Likewise.
46694         * m4/rmdir-errno.m4: Likewise.
46695         * m4/rmdir.m4: Likewise.
46696         * m4/roundf.m4: Likewise.
46697         * m4/roundl.m4: Likewise.
46698         * m4/rpmatch.m4: Likewise.
46699         * m4/save-cwd.m4: Likewise.
46700         * m4/selinux-selinux-h.m4: Likewise.
46701         * m4/setenv.m4: Likewise.
46702         * m4/settime.m4: Likewise.
46703         * m4/sig2str.m4: Likewise.
46704         * m4/sig_atomic_t.m4: Likewise.
46705         * m4/signalblocking.m4: Likewise.
46706         * m4/signbit.m4: Likewise.
46707         * m4/sigpipe.m4: Likewise.
46708         * m4/sockets.m4: Likewise.
46709         * m4/sockpfaf.m4: Likewise.
46710         * m4/st_dm_mode.m4: Likewise.
46711         * m4/stat-time.m4: Likewise.
46712         * m4/stdbool.m4: Likewise.
46713         * m4/stdint.m4: Likewise.
46714         * m4/stdint_h.m4: Likewise.
46715         * m4/stpcpy.m4: Likewise.
46716         * m4/stpncpy.m4: Likewise.
46717         * m4/strcase.m4: Likewise.
46718         * m4/strchrnul.m4: Likewise.
46719         * m4/strcspn.m4: Likewise.
46720         * m4/strdup.m4: Likewise.
46721         * m4/strftime.m4: Likewise.
46722         * m4/strndup.m4: Likewise.
46723         * m4/strnlen.m4: Likewise.
46724         * m4/strpbrk.m4: Likewise.
46725         * m4/strptime.m4: Likewise.
46726         * m4/strsep.m4: Likewise.
46727         * m4/strtod.m4: Likewise.
46728         * m4/strtoimax.m4: Likewise.
46729         * m4/strtok_r.m4: Likewise.
46730         * m4/strtol.m4: Likewise.
46731         * m4/strtoll.m4: Likewise.
46732         * m4/strtoul.m4: Likewise.
46733         * m4/strtoull.m4: Likewise.
46734         * m4/strtoumax.m4: Likewise.
46735         * m4/strverscmp.m4: Likewise.
46736         * m4/threadlib.m4: Likewise.
46737         * m4/timegm.m4: Likewise.
46738         * m4/tm_gmtoff.m4: Likewise.
46739         * m4/tmpdir.m4: Likewise.
46740         * m4/tmpfile.m4: Likewise.
46741         * m4/tzset.m4: Likewise.
46742         * m4/uintmax_t.m4: Likewise.
46743         * m4/unlinkdir.m4: Likewise.
46744         * m4/unlocked-io.m4: Likewise.
46745         * m4/uptime.m4: Likewise.
46746         * m4/userspec.m4: Likewise.
46747         * m4/utimbuf.m4: Likewise.
46748         * m4/utime.m4: Likewise.
46749         * m4/utimes-null.m4: Likewise.
46750         * m4/utimes.m4: Likewise.
46751         * m4/vararrays.m4: Likewise.
46752         * m4/vasnprintf.m4: Likewise.
46753         * m4/vfprintf-posix.m4: Likewise.
46754         * m4/vprintf-posix.m4: Likewise.
46755         * m4/wait-process.m4: Likewise.
46756         * m4/wchar_t.m4: Likewise.
46757         * m4/wint_t.m4: Likewise.
46758         * m4/write-any-file.m4: Likewise.
46759         * m4/yield.m4: Likewise.
46760
46761 2009-01-13  Bruno Haible  <bruno@clisp.org>
46762
46763         Avoid test-copy-file.sh failures when ACL support insufficient.
46764         * modules/copy-file-tests (Makefile.am): Pass USE_ACL in
46765         TESTS_ENVIRONMENT.
46766         * tests/test-copy-file.sh: Skip the ACL comparisons if USE_ACL is 0.
46767         Reported by Jim Meyering.
46768
46769 2009-01-13  Bruno Haible  <bruno@clisp.org>
46770
46771         * modules/unistdio/u-printf-args (Files): Add m4/stdint_h.m4 and
46772         m4/inttypes_h.m4, needed by m4/intmax_t.m4.
46773         * modules/unistdio/u8-printf-parse (Files): Likewise.
46774         * modules/unistdio/u32-printf-parse (Files): Likewise.
46775         * modules/unistdio/ulc-printf-parse (Files): Likewise.
46776
46777 2009-01-13  Simon Josefsson  <simon@josefsson.org>
46778
46779         * modules/unistdio/u16-printf-parse (Files): Add m4/stdint_h.m4
46780         and m4/inttypes_h.m4 too.
46781
46782 2009-01-12  Eric Blake  <ebb9@byu.net>
46783
46784         tests: IRIX 6.2 cc can't compile -0.0 into .data
46785         * tests/test-ceill.c (minus_zero): Compute -0.0L at runtime,
46786         rather than at compile-time.
46787         * tests/test-floorl.c (minus_zero): Likewise.
46788         * tests/test-frexpl.c (minus_zero): Likewise.
46789         * tests/test-isnan.c (minus_zerol): Likewise.
46790         * tests/test-isnanl.h (minus_zero): Likewise.
46791         * tests/test-ldexpl.c (minus_zero): Likewise.
46792         * tests/test-roundl.c (minus_zero): Likewise.
46793         * tests/test-signbit.c (minus_zerol): Likewise.
46794         * tests/test-snprintf-posix.h (minus_zerol): Likewise.
46795         * tests/test-sprintf-posix.h (minus_zerol): Likewise.
46796         * tests/test-truncl.c (minus_zero): Likewise.
46797         * tests/test-vasnprintf-posix.c (minus_zerol): Likewise.
46798         * tests/test-vasprintf-posix.c (minus_zerol): Likewise.
46799         Reported by Tom G. Christensen and Nelson H. F. Beebe.
46800
46801 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
46802
46803         regex: fix glibc bug 9697
46804         * lib/regcomp.c (re_compile_fastmap_iter): Rewrite COMPLEX_BRACKET
46805         handling.
46806
46807 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
46808
46809         regex: fix glibc bug 697
46810         * lib/regexec.c (prune_impossible_nodes): Handle sifted_states[0]
46811         being NULL also if there are no backreferences.
46812
46813 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
46814
46815         regex: merge glibc changes
46816         * lib/regcomp.c (re_compile_fastmap_iter): Use __mbrtowc.
46817         * lib/regex_internal.c (build_wcs_buffer, build_wcs_upper_buffer,
46818         re_string_skip_chars, re_string_reconstruct): Likewise.
46819         * lib/regex_internal.h [!_LIBC] (__mbrtowc): New #define.
46820
46821 2009-01-07  Jim Meyering  <meyering@redhat.com>
46822
46823         poll: filter through cppi
46824         * lib/poll.c: Indent cpp directives to reflect nesting.
46825
46826 2009-01-07  Daniel P. Berrange  <berrange@redhat.com>
46827
46828         poll: don't return uninitialized
46829         * lib/poll.c (poll) [WIN32_NATIVE]: Initialize "rc".
46830
46831 2009-01-06  Jeremy Olexa <darkside@gentoo.org>  (tiny change)
46832
46833         avoid compile failure on AIX 6.1
46834         * lib/getloadavg.c [HAVE_LIBPERFSTAT]: Include <sys/protosw.h>.
46835         Details in http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/15465
46836
46837 2009-01-04  Jim Meyering  <meyering@redhat.com>
46838
46839         remove duplicate inclusion of <stdio.h>
46840         * tests/test-fprintf-posix.c: Likewise.
46841         * tests/test-printf-posix.c: Likewise.
46842         * tests/test-snprintf-posix.c: Likewise.
46843         * tests/test-sprintf-posix.c: Likewise.
46844         * tests/test-vasprintf-posix.c: Likewise.
46845         * tests/test-vfprintf-posix.c: Likewise.
46846         * tests/test-vprintf-posix.c: Likewise.
46847         * tests/test-vsnprintf-posix.c: Likewise.
46848         * tests/test-vsprintf-posix.c: Likewise.
46849
46850 2009-01-03  Jim Meyering  <meyering@redhat.com>
46851
46852         gnulib-tool: fix sed-based filtering
46853         * gnulib-tool (func_filter_filelist): Remove extra backslash
46854         in sed_fff_filter definition.
46855
46856 2009-01-02  Jim Meyering  <meyering@redhat.com>
46857
46858         strftime: avoid compilation failure on Solaris 2.6
46859         * modules/strftime (Depends-on): Add mbrlen and mbsinit.
46860         * lib/strftime.c [DO_MULTIBYTE]: Include <wchar.h> unconditionally.
46861         Don't #define mbrlen or mbsinit, since now they're guaranteed to
46862         be available.  Reported by Tom G. Christensen.  Details in
46863         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/16180>.
46864
46865 2009-01-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
46866             Bruno Haible  <bruno@clisp.org>
46867
46868         Speed up gnulib-tool by doing more string processing through shell
46869         built-ins.
46870         * gnulib-tool (fast_func_append): New variable.
46871         (func_remove_prefix, func_remove_suffix): New functions.
46872         (fast_func_remove_prefix, fast_func_remove_suffix): New variables.
46873         (func_filter_filelist): New function.
46874         (func_get_dependencies): Use func_remove_suffix instead of sed.
46875         (func_get_automake_snippet): Use func_filter_filelist instead of a
46876         subshell and sed invocation.
46877
46878 2009-01-01  Bruno Haible  <bruno@clisp.org>
46879
46880         Fix a security bug.
46881         * gnulib-tool (func_import, import, update): Don't allow the characters
46882         '"', '$', '`', '\' in macro arguments that become part of commands that
46883         are evaluated.
46884
46885 2009-01-01  Bruno Haible  <bruno@clisp.org>
46886
46887         * gnulib-tool (func_reset_sigpipe): Add more comments.
46888
46889 2009-01-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
46890
46891         * gnulib-tool (func_modules_add_dummy, func_emit_lib_Makefile_am,
46892         func_emit_tests_Makefile_am, func_import): Abort loops early if we
46893         already know the answer.
46894
46895 2009-01-01  Jim Meyering  <meyering@redhat.com>
46896
46897         * lib/version-etc.c (version_etc_va): Update copyright year.
46898
46899 2008-12-30  Bruno Haible  <bruno@clisp.org>
46900
46901         * m4/lib-prefix.m4 (AC_LIB_LINKFLAGS_BODY): Don't overwrite
46902         LIB${NAME}_PREFIX when considering the dependencies of lib${name}.
46903         Reported by Charles Wilson <cygwin@cwilson.fastmail.fm>.
46904
46905 2008-12-29  Eric Blake  <ebb9@byu.net>
46906
46907         multiarch: avoid autoconf AC_REQUIRE bug
46908         * m4/multiarch.m4 (gl_MULTIARCH): Split body...
46909         (gl_MULTIARCH_BODY): ...into new macro, to work around bug in Autoconf
46910         2.63 and older.
46911         Reported by Bruno Haible, and analyzed in
46912         http://lists.gnu.org/archive/html/bug-autoconf/2008-12/msg00039.html
46913
46914 2008-12-29  Bruno Haible  <bruno@clisp.org>
46915
46916         * gnulib-tool (func_import): When generating sed-ignore-removed, handle
46917         files in subdirectories correctly.
46918         Reported by Ralf Wildenhues.
46919
46920 2008-12-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
46921
46922         * gnulib-tool (func_update_ignorelist): Use 'join - FILE'
46923         rather than 'join FILE -', for Solaris join.
46924
46925 2008-12-29  Bruno Haible  <bruno@clisp.org>
46926
46927         * m4/codeset.m4 (AM_LANGINFO_CODESET): More systematic m4 argument
46928         quoting.
46929         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
46930         * m4/glibc2.m4 (gt_GLIBC2): Likewise.
46931         * m4/glibc21.m4 (gl_GLIBC21): Likewise.
46932         * m4/iconv.m4 (AM_ICONV_LINK, AM_ICONV): Likewise.
46933         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
46934         * m4/intlmacosx.m4 (gt_INTL_MACOSX): Likewise.
46935         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Likewise.
46936         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Likewise.
46937         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
46938         * m4/lcmessage.m4 (gt_LC_MESSAGES): Likewise.
46939         * m4/nls.m4 (AM_NLS): Likewise.
46940         * m4/po.m4 (AM_PO_SUBDIRS): Likewise.
46941         * m4/printf-posix.m4 (gt_PRINTF_POSIX): Likewise.
46942         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
46943         * m4/size_max.m4 (gl_SIZE_MAX): Likewise.
46944         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Likewise.
46945         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
46946         * m4/uintmax_t.m4 (gl_AC_TYPE_UINTMAX_T): Likewise.
46947         * m4/visibility.m4 (gl_VISIBILITY): Likewise.
46948         * m4/wchar_t.m4 (gt_TYPE_WCHAR_T): Likewise.
46949         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
46950         * m4/xsize.m4 (gl_XSIZE): Likewise.
46951         Suggested by Jim Meyering.
46952
46953 2008-11-17  Bruce Korb  <bkorb@gnu.org>
46954
46955         * lib/parse-duration.h: non-iso form accepts years, months weeks, too
46956         * lib/parse-duration.c: use a switch instead of cascading if's.
46957
46958 2008-12-29  Eric Blake  <ebb9@byu.net>
46959
46960         wchar.h: supply WEOF on Irix 5.3
46961         * lib/wchar.in.h (wint_t): Also supply WEOF.
46962         * lib/wctype.in.h (wint_t): Likewise.
46963         * doc/posix-headers/wchar.texi (wchar.h): Document the bug.
46964         * doc/posix-headers/wctype.texi (wctype.h): Likewise.
46965         Reported by Tom G. Christensen.
46966
46967 2008-12-26  Bruno Haible  <bruno@clisp.org>
46968
46969         * m4/multiarch.m4 (gl_MULTIARCH): Recognize also the architecture names
46970         i486, i586, i686.
46971
46972 2008-12-26  Bruno Haible  <bruno@clisp.org>
46973
46974         * lib/stdlib.in.h (struct random_data): Fix indentation of comments.
46975
46976 2008-12-26  Bruno Haible  <bruno@clisp.org>
46977
46978         * lib/stdint.in.h: Move the include of <wchar.h> down until after all
46979         the types are defined. Also conditionalize it on __STDC_LIMIT_MACROS,
46980         not __STDC_CONSTANT_MACROS.
46981         Reported by Nelson H. F. Beebe <beebe@math.utah.edu> via Eric Blake.
46982
46983 2008-12-25  Bruno Haible  <bruno@clisp.org>
46984
46985         Add support for universal builds to vasnprintf.
46986         * m4/printf.m4 (gl_PRINTF_ENOMEM): Require gl_MULTIARCH. In Apple
46987         universal builds, guess no.
46988         * modules/vasnprintf-posix (Depends-on): Add multiarch.
46989         * modules/vasprintf-posix (Depends-on): Likewise.
46990         * modules/fprintf-posix (Depends-on): Likewise.
46991         * modules/vfprintf-posix (Depends-on): Likewise.
46992         * modules/snprintf-posix (Depends-on): Likewise.
46993         * modules/vsnprintf-posix (Depends-on): Likewise.
46994         * modules/sprintf-posix (Depends-on): Likewise.
46995         * modules/vsprintf-posix (Depends-on): Likewise.
46996         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
46997         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
46998         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
46999         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
47000         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
47001         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
47002         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
47003
47004         Add support for universal builds to <inttypes.h>.
47005         * lib/inttypes.in.h (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX,
47006         _SCNu64_PREFIX): In Apple
47007         universal builds, define directly, using _LP64.
47008         * m4/inttypes.m4 (gl_INTTYPES_H): In Apple universal builds, set
47009         INT64_MAX_EQ_LONG_MAX and UINT64_MAX_EQ_ULONG_MAX to -1.
47010         * modules/inttypes (Depends-on): Add multiarch.
47011         (Makefile.am): Substitute APPLE_UNIVERSAL_BUILD.
47012
47013         Add support for universal builds to <stdint.h>.
47014         * lib/stdint.in.h (PDFDIFF_MIN, PTRDIFF_MAX, SIZE_MAX): In Apple
47015         universal builds, define directly, using _LP64.
47016         * m4/stdint.m4 (gl_STDINT_TYPE_PROPERTIES): Require gl_MULTIARCH. In
47017         Apple universal builds, don't test for the size and suffix of ptrdiff_t
47018         and size_t.
47019         * modules/stdint (Depends-on): Add multiarch.
47020         (Makefile.am): Substitute APPLE_UNIVERSAL_BUILD.
47021
47022         New module 'multiarch'.
47023         * modules/multiarch: New file.
47024         * m4/multiarch.m4: New file.
47025
47026 2008-12-25  Bruno Haible  <bruno@clisp.org>
47027
47028         * gnulib-tool (func_create_testdir): Avoid failure of mv command.
47029
47030 2008-12-25  Bruno Haible  <bruno@clisp.org>
47031
47032         * modules/btowc (License): Relicense under LGPLv2+.
47033         * modules/mbsinit (License): Likewise.
47034         * modules/mbrtowc (License): Likewise.
47035         * modules/wcrtomb (License): Likewise.
47036         * modules/streq (License): Likewise.
47037         Reported by David Lutterkort <lutter@redhat.com>.
47038
47039 2008-12-23  Bruno Haible  <bruno@clisp.org>
47040
47041         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Fix conditional and comment.
47042
47043 2008-12-23  Bruno Haible  <bruno@clisp.org>
47044
47045         Module getaddrinfo requires linking with $(GETADDRINFO_LIB).
47046         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Put link options into
47047         GETADDRINFO_LIB, not in LIBS.
47048         * modules/getaddrinfo (Link): Set to $(GETADDRINFO_LIB).
47049         * modules/canon-host (Link): Likewise.
47050         * NEWS: Mention the change.
47051         * modules/getaddrinfo-tests (test_getaddrinfo_LDADD): Add the
47052         GETADDRINFO_LIB.
47053
47054 2008-12-22  Bruno Haible  <bruno@clisp.org>
47055
47056         * doc/posix-functions/iswalnum_l.texi: Mention limitation of wchar_t.
47057         * doc/posix-functions/iswalpha_l.texi: Likewise.
47058         * doc/posix-functions/iswblank_l.texi: Likewise.
47059         * doc/posix-functions/iswcntrl_l.texi: Likewise.
47060         * doc/posix-functions/iswctype_l.texi: Likewise.
47061         * doc/posix-functions/iswdigit_l.texi: Likewise.
47062         * doc/posix-functions/iswgraph_l.texi: Likewise.
47063         * doc/posix-functions/iswlower_l.texi: Likewise.
47064         * doc/posix-functions/iswprint_l.texi: Likewise.
47065         * doc/posix-functions/iswpunct_l.texi: Likewise.
47066         * doc/posix-functions/iswspace_l.texi: Likewise.
47067         * doc/posix-functions/iswupper_l.texi: Likewise.
47068         * doc/posix-functions/iswxdigit_l.texi: Likewise.
47069         * doc/posix-functions/mbsnrtowcs.texi: Likewise.
47070         * doc/posix-functions/open_wmemstream.texi: Likewise.
47071         * doc/posix-functions/swscanf.texi: Likewise.
47072         * doc/posix-functions/towctrans_l.texi: Likewise.
47073         * doc/posix-functions/towlower.texi: Likewise.
47074         * doc/posix-functions/towlower_l.texi: Likewise.
47075         * doc/posix-functions/towupper.texi: Likewise.
47076         * doc/posix-functions/towupper_l.texi: Likewise.
47077         * doc/posix-functions/vfwprintf.texi: Likewise.
47078         * doc/posix-functions/vfwscanf.texi: Likewise.
47079         * doc/posix-functions/vswscanf.texi: Likewise.
47080         * doc/posix-functions/vwprintf.texi: Likewise.
47081         * doc/posix-functions/vwscanf.texi: Likewise.
47082         * doc/posix-functions/wcpcpy.texi: Likewise.
47083         * doc/posix-functions/wcpncpy.texi: Likewise.
47084         * doc/posix-functions/wcscasecmp.texi: Likewise.
47085         * doc/posix-functions/wcscasecmp_l.texi: Likewise.
47086         * doc/posix-functions/wcscoll_l.texi: Likewise.
47087         * doc/posix-functions/wcsdup.texi: Likewise.
47088         * doc/posix-functions/wcsncasecmp.texi: Likewise.
47089         * doc/posix-functions/wcsncasecmp_l.texi: Likewise.
47090         * doc/posix-functions/wcsnlen.texi: Likewise.
47091         * doc/posix-functions/wcsnrtombs.texi: Likewise.
47092         * doc/posix-functions/wcsxfrm_l.texi: Likewise.
47093         * doc/posix-functions/wctrans_l.texi: Likewise.
47094         * doc/posix-functions/wctype_l.texi: Likewise.
47095         * doc/glibc-functions/fgetwc_unlocked.texi: Likewise.
47096         * doc/glibc-functions/fgetws_unlocked.texi: Likewise.
47097         * doc/glibc-functions/fputwc_unlocked.texi: Likewise.
47098         * doc/glibc-functions/fputws_unlocked.texi: Likewise.
47099         * doc/glibc-functions/getwc_unlocked.texi: Likewise.
47100         * doc/glibc-functions/getwchar_unlocked.texi: Likewise.
47101         * doc/glibc-functions/putwc_unlocked.texi: Likewise.
47102         * doc/glibc-functions/putwchar_unlocked.texi: Likewise.
47103         * doc/glibc-functions/wcschrnul.texi: Likewise.
47104         * doc/glibc-functions/wcsftime_l.texi: Likewise.
47105         * doc/glibc-functions/wcstod_l.texi: Likewise.
47106         * doc/glibc-functions/wcstof_l.texi: Likewise.
47107         * doc/glibc-functions/wcstol_l.texi: Likewise.
47108         * doc/glibc-functions/wcstold_l.texi: Likewise.
47109         * doc/glibc-functions/wcstoll_l.texi: Likewise.
47110         * doc/glibc-functions/wcstoq.texi: Likewise.
47111         * doc/glibc-functions/wcstoul_l.texi: Likewise.
47112         * doc/glibc-functions/wcstoull_l.texi: Likewise.
47113         * doc/glibc-functions/wcstouq.texi: Likewise.
47114         * doc/glibc-functions/wmempcpy.texi: Likewise.
47115
47116 2008-12-22  Ingo Weinhold  <ingo_weinhold@gmx.de>  (tiny change)
47117             Eric Blake  <ebb9@byu.net>
47118             Paolo Bonzini  <bonzini@gnu.org>
47119             Bruno Haible  <bruno@clisp.org>
47120
47121         Make c-stack work on Haiku.
47122         * lib/c-stack.c (SA_ONSTACK): Define fallback.
47123         (c_stack_action): Use SA_ONSTACK flag.
47124
47125 2008-12-22  Bruno Haible  <bruno@clisp.org>
47126
47127         * m4/locale-fr.m4 (gt_LOCALE_FR_UTF8): Treat Haiku like BeOS.
47128
47129 2008-12-22  Bruno Haible  <bruno@clisp.org>
47130
47131         Work around mbrlen() bugs on AIX, HP-UX, OSF/1, Solaris.
47132         * m4/mbrlen.m4 (gl_FUNC_MBRLEN): Set REPLACE_MBRLEN if mbrtowc is
47133         being overridden.
47134         (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL, gl_MBRLEN_NUL_RETVAL):
47135         New macros.
47136         * lib/wchar.in.h (mbrlen): Override if REPLACE_MBRLEN is set.
47137         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBRLEN.
47138         * modules/wchar (Makefile.am): Substitute REPLACE_MBRLEN.
47139         * doc/posix-functions/mbrlen.texi: Mention the various platform bugs.
47140
47141 2008-12-22  Bruno Haible  <bruno@clisp.org>
47142
47143         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE): Remove unused variable
47144         from test code.
47145
47146 2008-12-22  Eric Blake  <ebb9@byu.net>
47147
47148         Avoid gcc warnings on cygwin.
47149         * lib/regex_internal.c (re_string_reconstruct) [!RE_ENABLE_I18N]:
47150         Avoid unused variable.
47151         * lib/regexec.c (check_arrival_add_next_nodes) [!RE_ENABLE_I18N]:
47152         Likewise.
47153
47154 2008-12-22  Bruno Haible  <bruno@clisp.org>
47155
47156         Remove HAVE_MBRTOWC conditionals.
47157         * lib/mbscasecmp.c: Include mbuiter.h unconditionally.
47158         (mbscasecmp): Assume mbrtowc function.
47159         * lib/mbscasestr.c: Include mbuiter.h unconditionally.
47160         (knuth_morris_pratt_multibyte, mbscasestr): Assume mbrtowc function.
47161         * lib/mbschr.c: Include mbuiter.h unconditionally.
47162         (mbschr): Assume mbrtowc function.
47163         * lib/mbscspn.c: Include mbuiter.h unconditionally.
47164         (mbscspn): Assume mbrtowc function.
47165         * lib/mbslen.c: Include mbuiter.h unconditionally.
47166         (mbslen): Assume mbrtowc function.
47167         * lib/mbsncasecmp.c: Include mbuiter.h unconditionally.
47168         (mbsncasecmp): Assume mbrtowc function.
47169         * lib/mbsnlen.c: Include mbiter.h unconditionally.
47170         (mbsnlen): Assume mbrtowc function.
47171         * lib/mbspbrk.c: Include mbuiter.h unconditionally.
47172         (mbspbrk): Assume mbrtowc function.
47173         * lib/mbspcasecmp.c: Include mbuiter.h unconditionally.
47174         (mbspcasecmp): Assume mbrtowc function.
47175         * lib/mbsrchr.c: Include mbuiter.h unconditionally.
47176         (mbsrchr): Assume mbrtowc function.
47177         * lib/mbssep.c: Include mbuiter.h unconditionally.
47178         (mbssep): Assume mbrtowc function.
47179         * lib/mbsspn.c: Include mbuiter.h unconditionally.
47180         (mbsspn): Assume mbrtowc function.
47181         * lib/mbsstr.c: Include mbuiter.h unconditionally.
47182         (knuth_morris_pratt_multibyte, mbsstr): Assume mbrtowc function.
47183         * lib/mbstok_r.c: Include mbuiter.h unconditionally.
47184         (mbstok_r): Assume mbrtowc function.
47185         * lib/propername.c: Include mbuiter.h unconditionally.
47186         (mbsstr_trimmed_wordbounded): Assume mbrtowc function.
47187         * lib/trim.c: Include mbchar.h, mbiter.h uncondtionally.
47188         (trim2): Assume mbrtowc function.
47189         * lib/mbswidth.c (mbsinit): Remove fallback definition.
47190         (mbsnwidth): Assume mbrtowc function.
47191         * modules/mbswidth (Depends-on): Add mbrtowc, mbsinit.
47192         * lib/quotearg.c (MB_CUR_MAX, mbstate_t, mbrtowc, iswprint): Remove
47193         fallback definitions.
47194         * modules/quotearg (Depends-on): Add mbrtowc, mbsinit.
47195
47196 2008-12-22  Bruno Haible  <bruno@clisp.org>
47197
47198         * doc/posix-functions/mbtowc.texi: Mention a glibc bug.
47199
47200 2008-12-22  Paolo Bonzini  <bonzini@gnu.org>
47201
47202         * modules/regex: Request emulations for the mb*/wc* functions we need.
47203         * m4/regex.m4: Don't look for those functions here.
47204         * lib/regex_internal.h: Do not check HAVE_WCRTOMB and HAVE_MBRTOWC.
47205
47206 2008-12-22  Bruno Haible  <bruno@clisp.org>
47207
47208         * modules/fnmatch (Depends-on): Remove duplicated dependency.
47209
47210 2008-12-21  Bruno Haible  <bruno@clisp.org>
47211
47212         Make mbiter.h, mbuiter.h, mbfile.h usable unconditionally.
47213         * modules/mbiter (Depends-on): Add mbrtowc, mbsinit.
47214         (Include): Remove conditionalization.
47215         * modules/mbuiter (Depends-on): Add mbrtowc, mbsinit.
47216         (Include): Remove conditionalization.
47217         * modules/mbfile (Depends-on): Add mbrtowc, mbsinit.
47218         (Include): Remove conditionalization.
47219         * m4/mbiter.m4 (gl_MBITER): Deprecate the use of AC_FUNC_MBRTOWC.
47220         * m4/mbfile.m4 (gl_MBFILE): Likewise.
47221         * NEWS: Mention the change.
47222         Reported by Alan Hourihane <alanh@fairlite.co.uk>
47223         via Sergey Poznyakoff <gray@gnu.org.ua>.
47224
47225 2008-12-21  Bruno Haible  <bruno@clisp.org>
47226
47227         * MODULES.html.sh (Extended multibyte and wide character utilities
47228         <wchar.h>): Add btowc, wctob, mbsinit, mbrlen, mbrtowc, mbsrtowcs,
47229         wcrtomb, wcsrtombs.
47230         (Support for systems lacking POSIX:2008): Add accept, bind, close,
47231         connect, fclose, getpeername, getsockname, getsockopt, hostent, listen,
47232         mbsnrtowcs, posix_spawn*, recv, recvfrom, sched, select, send, sendto,
47233         setsockopt, shutdown, socket, spawn, sys_wait, wcsnrtombs, write.
47234
47235 2008-12-21  Bruno Haible  <bruno@clisp.org>
47236
47237         * MODULES.html.sh: Change section titles to refer to POSIX:2008.
47238
47239 2008-12-21  Bruno Haible  <bruno@clisp.org>
47240
47241         * modules/wcsnrtombs-tests: New file.
47242         * tests/test-wcsnrtombs1.sh: New file.
47243         * tests/test-wcsnrtombs2.sh: New file.
47244         * tests/test-wcsnrtombs3.sh: New file.
47245         * tests/test-wcsnrtombs4.sh: New file.
47246         * tests/test-wcsnrtombs.c: New file.
47247
47248         New module 'wcsnrtombs'.
47249         * lib/wchar.in.h (wcsnrtombs): New declaration.
47250         * lib/wcsnrtombs.c: New file.
47251         * lib/wcsrtombs-state.c: New file.
47252         * lib/wcsrtombs.c: Refer to _gl_wcsrtombs_state.
47253         (internal_state): Remove variable.
47254         * m4/wcsnrtombs.m4: New file.
47255         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): Add wcsrtombs-state.c to the
47256         compilation units.
47257         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNRTOMBS,
47258         HAVE_WCSNRTOMBS.
47259         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNRTOMBS,
47260         HAVE_WCSNRTOMBS.
47261         * modules/wcsnrtombs: New file.
47262         * modules/wcsrtombs (Files): Add lib/wcsrtombs-state.c.
47263         * doc/posix-functions/wcsnrtombs.texi: Mention the new module.
47264
47265 2008-12-21  Bruno Haible  <bruno@clisp.org>
47266
47267         * modules/wcsrtombs-tests: New file.
47268         * tests/test-wcsrtombs1.sh: New file.
47269         * tests/test-wcsrtombs2.sh: New file.
47270         * tests/test-wcsrtombs3.sh: New file.
47271         * tests/test-wcsrtombs4.sh: New file.
47272         * tests/test-wcsrtombs.c: New file.
47273
47274         New module 'wcsrtombs'.
47275         * lib/wchar.in.h (wcsrtombs): New declaration.
47276         * lib/wcsrtombs.c: New file.
47277         * m4/wcsrtombs.m4: New file.
47278         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSRTOMBS,
47279         HAVE_WCSRTOMBS, REPLACE_WCSRTOMBS.
47280         * modules/wchar (Makefile.am): Substitute GNULIB_WCSRTOMBS,
47281         HAVE_WCSRTOMBS, REPLACE_WCSRTOMBS.
47282         * modules/wcsrtombs: New file.
47283         * doc/posix-functions/wcsrtombs.texi: Mention the new module and the
47284         bugs.
47285
47286 2008-12-21  Bruno Haible  <bruno@clisp.org>
47287
47288         Work around a wcrtomb() bug on Solaris 10 and OSF/1 5.1.
47289         * lib/wchar.in.h (wcrtomb): Override if REPLACE_WCRTOMB is set.
47290         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Test the return value of wcrtomb
47291         with NULL destination argument in various locales. Set REPLACE_WCRTOMB
47292         if not correct.
47293         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCRTOMB.
47294         * modules/wchar (Makefile.am): Substitute REPLACE_WCRTOMB.
47295         * modules/wcrtomb (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
47296         m4/locale-zh.m4, m4/codeset.m4.
47297         * doc/posix-functions/wcrtomb.texi: Document the bug.
47298
47299 2008-12-21  Bruno Haible  <bruno@clisp.org>
47300
47301         Work around a btowc() bug on IRIX 6.5.
47302         * lib/wchar.in.h (btowc): Override if REPLACE_BTOWC is set.
47303         * m4/btowc.m4 (gl_FUNC_BTOWC): Test whether btowc(EOF) is correct. Set
47304         REPLACE_WTOBC if not.
47305         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_BTOWC.
47306         * modules/wchar (Makefile.am): Substitute REPLACE_BTOWC.
47307         * doc/posix-functions/btowc.texi: Mention the IRIX bug.
47308
47309 2008-12-21  Bruno Haible  <bruno@clisp.org>
47310
47311         * modules/wcrtomb-tests: New file.
47312         * tests/test-wcrtomb.sh: New file.
47313         * tests/test-wcrtomb.c: New file.
47314
47315         New module 'wcrtomb'.
47316         * lib/wchar.in.h (wcrtomb): New declaration.
47317         * lib/wcrtomb.c: New file.
47318         * m4/wcrtomb.m4: New file.
47319         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCRTOMB,
47320         HAVE_WCRTOMB.
47321         * modules/wchar (Makefile.am): Substitute GNULIB_WCRTOMB,
47322         HAVE_WCRTOMB.
47323         * modules/wcrtomb: New file.
47324         * doc/posix-functions/wcrtomb.texi: Mention the new module.
47325
47326 2008-12-21  Bruno Haible  <bruno@clisp.org>
47327
47328         * modules/mbrtowc (Files): Add m4/codeset.m4, needed by m4/locale-fr.m4.
47329         * modules/mbsrtowcs (Files): Likewise.
47330         * modules/wctob (Files): Likewise.
47331         * modules/c-strcase-tests (Files): Likewise.
47332         * modules/unistdio/u8-vasnprintf-tests (Files): Likewise.
47333         * modules/unistdio/u16-vasnprintf-tests (Files): Likewise.
47334         * modules/unistdio/u32-vasnprintf-tests (Files): Likewise.
47335         * modules/unistdio/ulc-vasnprintf-tests (Files): Likewise.
47336         * modules/vasnprintf-posix-tests (Files): Likewise.
47337
47338 2008-12-21  William Pursell  <bill.pursell@gmail.com>
47339
47340         gitlog-to-changelog: pass all command-line arguments to git-log
47341         * build-aux/gitlog-to-changelog: When producing a ChangeLog,
47342         it is sometimes convenient to filter the commits in various ways.
47343         gitlog-to-changelog only allows --since to specify a start date,
47344         but git-log itself supports many other filtering mechanisms.
47345         At the moment, I want to filter by branch name.  Rather than
47346         adding a --branch option to gitlog-to-changelog, it seems more
47347         flexible to simply pass all options directly to git-log and let
47348         git do the work.  Notice that this effectively makes --since a
47349         redundant option for gitlog-to-changelog, but removing it would
47350         require current usage to change since calls would then require
47351         an additional '--'.
47352
47353 2008-12-21  Bruno Haible  <bruno@clisp.org>
47354
47355         * modules/mbsnrtowcs-tests: New file.
47356         * tests/test-mbsnrtowcs1.sh: New file.
47357         * tests/test-mbsnrtowcs2.sh: New file.
47358         * tests/test-mbsnrtowcs3.sh: New file.
47359         * tests/test-mbsnrtowcs4.sh: New file.
47360         * tests/test-mbsnrtowcs.c: New file.
47361
47362         New module 'mbsnrtowcs'.
47363         * lib/wchar.in.h (mbsnrtowcs): New declaration.
47364         * lib/mbsnrtowcs.c: New file.
47365         * lib/mbsrtowcs-state.c: New file.
47366         * lib/mbsrtowcs.c: Refer to _gl_mbsrtowcs_state.
47367         (internal_state): Remove variable.
47368         * m4/mbsnrtowcs.m4: New file.
47369         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Add mbsrtowcs-state.c to the
47370         compilation units.
47371         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSNRTOWCS,
47372         HAVE_MBSNRTOWCS, REPLACE_MBSNRTOWCS.
47373         * modules/wchar (Makefile.am): Substitute GNULIB_MBSNRTOWCS,
47374         HAVE_MBSNRTOWCS, REPLACE_MBSNRTOWCS.
47375         * modules/mbsnrtowcs: New file.
47376         * modules/mbsrtowcs (Files): Add lib/mbsrtowcs-state.c.
47377         * doc/posix-functions/mbsnrtowcs.texi: Mention the new module and a
47378         portability problem.
47379
47380 2008-12-21  Bruno Haible  <bruno@clisp.org>
47381
47382         Work around mbsrtowcs bug.
47383         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): New macro.
47384         (gl_FUNC_MBSRTOWCS): Invoke it.
47385         * modules/mbsrtowcs (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
47386         m4/locale-zh.m4.
47387         * doc/posix-functions/mbsrtowcs.texi: Document the bug.
47388
47389 2008-12-21  Bruno Haible  <bruno@clisp.org>
47390
47391         * tests/test-mbsrtowcs.c (main): Execute the loop also for unlimited=1.
47392
47393 2008-12-21  Bruno Haible  <bruno@clisp.org>
47394
47395         Update doc for AIX.
47396         * doc/pastposix-functions/wcswcs.texi: Mention that AIX has only a
47397         16-bit wchar_t type.
47398         * doc/posix-functions/btowc.texi: Likewise.
47399         * doc/posix-functions/fgetwc.texi: Likewise.
47400         * doc/posix-functions/fgetws.texi: Likewise.
47401         * doc/posix-functions/fputwc.texi: Likewise.
47402         * doc/posix-functions/fputws.texi: Likewise.
47403         * doc/posix-functions/fwide.texi: Likewise.
47404         * doc/posix-functions/fwprintf.texi: Likewise.
47405         * doc/posix-functions/fwscanf.texi: Likewise.
47406         * doc/posix-functions/getwchar.texi: Likewise.
47407         * doc/posix-functions/getwc.texi: Likewise.
47408         * doc/posix-functions/iswalnum.texi: Likewise.
47409         * doc/posix-functions/iswalpha.texi: Likewise.
47410         * doc/posix-functions/iswblank.texi: Likewise.
47411         * doc/posix-functions/iswcntrl.texi: Likewise.
47412         * doc/posix-functions/iswctype.texi: Likewise.
47413         * doc/posix-functions/iswdigit.texi: Likewise.
47414         * doc/posix-functions/iswgraph.texi: Likewise.
47415         * doc/posix-functions/iswlower.texi: Likewise.
47416         * doc/posix-functions/iswprint.texi: Likewise.
47417         * doc/posix-functions/iswpunct.texi: Likewise.
47418         * doc/posix-functions/iswspace.texi: Likewise.
47419         * doc/posix-functions/iswupper.texi: Likewise.
47420         * doc/posix-functions/iswxdigit.texi: Likewise.
47421         * doc/posix-functions/mbrtowc.texi: Likewise.
47422         * doc/posix-functions/mbsrtowcs.texi: Likewise.
47423         * doc/posix-functions/mbstowcs.texi: Likewise.
47424         * doc/posix-functions/mbtowc.texi: Likewise.
47425         * doc/posix-functions/putwchar.texi: Likewise.
47426         * doc/posix-functions/putwc.texi: Likewise.
47427         * doc/posix-functions/swprintf.texi: Likewise.
47428         * doc/posix-functions/tolower.texi: Likewise.
47429         * doc/posix-functions/toupper.texi: Likewise.
47430         * doc/posix-functions/towctrans.texi: Likewise.
47431         * doc/posix-functions/ungetwc.texi: Likewise.
47432         * doc/posix-functions/vswprintf.texi: Likewise.
47433         * doc/posix-functions/wcrtomb.texi: Likewise.
47434         * doc/posix-functions/wcscat.texi: Likewise.
47435         * doc/posix-functions/wcschr.texi: Likewise.
47436         * doc/posix-functions/wcscmp.texi: Likewise.
47437         * doc/posix-functions/wcscoll.texi: Likewise.
47438         * doc/posix-functions/wcscpy.texi: Likewise.
47439         * doc/posix-functions/wcscspn.texi: Likewise.
47440         * doc/posix-functions/wcsftime.texi: Likewise.
47441         * doc/posix-functions/wcslen.texi: Likewise.
47442         * doc/posix-functions/wcsncat.texi: Likewise.
47443         * doc/posix-functions/wcsncmp.texi: Likewise.
47444         * doc/posix-functions/wcsncpy.texi: Likewise.
47445         * doc/posix-functions/wcspbrk.texi: Likewise.
47446         * doc/posix-functions/wcsrchr.texi: Likewise.
47447         * doc/posix-functions/wcsrtombs.texi: Likewise.
47448         * doc/posix-functions/wcsspn.texi: Likewise.
47449         * doc/posix-functions/wcsstr.texi: Likewise.
47450         * doc/posix-functions/wcstod.texi: Likewise.
47451         * doc/posix-functions/wcstof.texi: Likewise.
47452         * doc/posix-functions/wcstoimax.texi: Likewise.
47453         * doc/posix-functions/wcstok.texi: Likewise.
47454         * doc/posix-functions/wcstold.texi: Likewise.
47455         * doc/posix-functions/wcstoll.texi: Likewise.
47456         * doc/posix-functions/wcstol.texi: Likewise.
47457         * doc/posix-functions/wcstombs.texi: Likewise.
47458         * doc/posix-functions/wcstoull.texi: Likewise.
47459         * doc/posix-functions/wcstoul.texi: Likewise.
47460         * doc/posix-functions/wcstoumax.texi: Likewise.
47461         * doc/posix-functions/wcswidth.texi: Likewise.
47462         * doc/posix-functions/wcsxfrm.texi: Likewise.
47463         * doc/posix-functions/wctob.texi: Likewise.
47464         * doc/posix-functions/wctomb.texi: Likewise.
47465         * doc/posix-functions/wctrans.texi: Likewise.
47466         * doc/posix-functions/wctype.texi: Likewise.
47467         * doc/posix-functions/wcwidth.texi: Likewise.
47468         * doc/posix-functions/wmemchr.texi: Likewise.
47469         * doc/posix-functions/wmemcmp.texi: Likewise.
47470         * doc/posix-functions/wmemcpy.texi: Likewise.
47471         * doc/posix-functions/wmemmove.texi: Likewise.
47472         * doc/posix-functions/wmemset.texi: Likewise.
47473         * doc/posix-functions/wprintf.texi: Likewise.
47474         * doc/posix-functions/wscanf.texi: Likewise.
47475
47476 2008-12-21  Bruno Haible  <bruno@clisp.org>
47477
47478         Update doc for HP-UX 11.11.
47479         * doc/posix-functions/btowc.texi: Clarify that the function is missing
47480         in HP-UX version 11.00, not in all versions of HP-UX 11.
47481         * doc/posix-functions/fwide.texi: Likewise.
47482         * doc/posix-functions/fwprintf.texi: Likewise.
47483         * doc/posix-functions/fwscanf.texi: Likewise.
47484         * doc/posix-functions/inet_ntop.texi: Likewise.
47485         * doc/posix-functions/inet_pton.texi: Likewise.
47486         * doc/posix-functions/mbrlen.texi: Likewise.
47487         * doc/posix-functions/mbrtowc.texi: Likewise.
47488         * doc/posix-functions/mbsinit.texi: Likewise.
47489         * doc/posix-functions/mbsrtowcs.texi: Likewise.
47490         * doc/posix-functions/swprintf.texi: Likewise.
47491         * doc/posix-functions/swscanf.texi: Likewise.
47492         * doc/posix-functions/towctrans.texi: Likewise.
47493         * doc/posix-functions/vfwprintf.texi: Likewise.
47494         * doc/posix-functions/vswprintf.texi: Likewise.
47495         * doc/posix-functions/vwprintf.texi: Likewise.
47496         * doc/posix-functions/wcrtomb.texi: Likewise.
47497         * doc/posix-functions/wcsrtombs.texi: Likewise.
47498         * doc/posix-functions/wcsstr.texi: Likewise.
47499         * doc/posix-functions/wctob.texi: Likewise.
47500         * doc/posix-functions/wctrans.texi: Likewise.
47501         * doc/posix-functions/wmemchr.texi: Likewise.
47502         * doc/posix-functions/wmemcmp.texi: Likewise.
47503         * doc/posix-functions/wmemcpy.texi: Likewise.
47504         * doc/posix-functions/wmemmove.texi: Likewise.
47505         * doc/posix-functions/wmemset.texi: Likewise.
47506         * doc/posix-functions/wprintf.texi: Likewise.
47507         * doc/posix-functions/wscanf.texi: Likewise.
47508
47509 2008-12-21  Bruno Haible  <bruno@clisp.org>
47510
47511         Work around a portability problem.
47512         * tests/test-mbsrtowcs.c (main): Use a temporary conversion state.
47513         * doc/posix-functions/mbsrtowcs.texi: Document the portability problem.
47514
47515 2008-12-20  Bruno Haible  <bruno@clisp.org>
47516
47517         * lib/wchar.in.h (mbsrtowcs): Redefine if REPLACE_MBSRTOWCS is set.
47518         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Invoke gl_MBSTATE_T_BROKEN. Set
47519         REPLACE_MBSRTOWCS if mbsrtowcs needs to be overridden.
47520         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBSRTOWCS.
47521         * modules/wchar (Makefile.am): Substitute REPLACE_MBSRTOWCS.
47522
47523         Work around mbrtowc bugs on AIX, HP-UX, OSF/1, Solaris.
47524         * lib/wchar.in.h (mbstate_t): Redefine also if REPLACE_MBSTATE_T is
47525         set.
47526         (GNULIB_defined_mbstate_t): New macro.
47527         (mbsinit): Redefine if REPLACE_MBSINIT is set.
47528         (mbrtowc): Redefine if REPLACE_MBRTOWC is set.
47529         * lib/mbrtowc.c (rpl_mbrtowc): Add an alternative implementation that
47530         reuses the system's mbrtowc function but works around the bugs.
47531         * m4/mbrtowc.m4 (gl_MBSTATE_T_BROKEN, gl_MBRTOWC_INCOMPLETE_STATE,
47532         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL): New
47533         macros.
47534         (gl_FUNC_MBRTOWC): Invoke them. Set REPLACE_MBRTOWC if mbrtowc needs to
47535         be overridden. Optionally define MBRTOWC_NULL_ARG_BUG,
47536         MBRTOWC_RETVAL_BUG, MBRTOWC_NUL_RETVAL_BUG.
47537         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Invoke gl_MBSTATE_T_BROKEN. Set
47538         REPLACE_MBSINIT if mbsinit needs to be overridden.
47539         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBSTATE_T,
47540         REPLACE_MBSINIT, REPLACE_MBRTOWC.
47541         * modules/wchar (Makefile.am): Substitute REPLACE_MBSTATE_T,
47542         REPLACE_MBSINIT, REPLACE_MBRTOWC.
47543         * modules/mbrtowc (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
47544         m4/locale-zh.m4.
47545         (Depends): Add mbsinit.
47546         * modules/mbsinit (Depends): Add mbrtowc.
47547         * doc/posix-functions/mbrtowc.texi: Mention the various bugs.
47548
47549 2008-12-20  Bruno Haible  <bruno@clisp.org>
47550
47551         * tests/test-mbrtowc.c (main): Change sample string in EUC-JP encoding
47552         so that there are no conversion errors on AIX.
47553         * tests/test-mbsrtowcs.c (main): LIkewise.
47554
47555 2008-12-20  Bruno Haible  <bruno@clisp.org>
47556
47557         Work around wctob bug on Solaris <= 9.
47558         * lib/wchar.in.h (wctob): Redefine if REPLACE_WCTOB is set.
47559         * m4/wctob.m4 (gl_FUNC_WCTOB): Test whether wctob works.
47560         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCTOB.
47561         * modules/wchar (Makefile.am): Substitute REPLACE_WCTOB.
47562         * modules/wctob (Files): Add m4/locale-fr.m4.
47563         * doc/posix-functions/wctob.texi: Mention the Solaris bug.
47564
47565 2008-12-20  Bruno Haible  <bruno@clisp.org>
47566
47567         * doc/posix-functions/select.texi: Mention Solaris 2.6 bug with
47568         /dev/null.
47569         * tests/test-select-in.sh: Likewise.
47570         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
47571
47572 2008-12-20  Bruno Haible  <bruno@clisp.org>
47573
47574         Don't pretend that Cygwin has a ja_JP.EUC-JP locale.
47575         * m4/locale-ja.m4 (gt_LOCALE_JA): Add test for MB_CUR_MAX. Needed on
47576         Cygwin 1.5.x.
47577
47578 2008-12-20  Bruno Haible  <bruno@clisp.org>
47579
47580         Ensure mbstate_t is defined on HP-UX 11.11.
47581         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Require
47582         AC_CANONICAL_HOST. On HP-UX, define _XOPEN_SOURCE to 500.
47583         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Require
47584         AC_USE_SYSTEM_EXTENSIONS.
47585         * modules/fnmatch (Depends-on): Add extensions.
47586         * modules/mbrlen (Depends-on): Likewise.
47587         * modules/mbrtowc (Depends-on): Likewise.
47588         * modules/mbsinit (Depends-on): Likewise.
47589         * modules/mbsrtowcs (Depends-on): Likewise.
47590         * modules/mbswidth (Depends-on): Likewise.
47591         * modules/quotearg (Depends-on): Likewise.
47592         * modules/strftime (Depends-on): Likewise.
47593
47594 2008-12-20  Bruno Haible  <bruno@clisp.org>
47595
47596         Ensure wctob is declared on IRIX 6.5.
47597         * lib/wchar.in.h (wctob): Declare also when HAVE_DECL_WCTOB is 0.
47598         * m4/wctob.m4 (gl_FUNC_WCTOB): Set HAVE_DECL_WCTOB instead of
47599         HAVE_WCTOB. Also test whether <wchar.h> declares wctob.
47600         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize HAVE_DECL_WCTOB instead
47601         of HAVE_WCTOB.
47602         * modules/wchar (Makefile.am): Substitute HAVE_DECL_WCTOB instead of
47603         HAVE_WCTOB.
47604         * doc/posix-functions/wctob.texi: Mention missing declaration on IRIX.
47605
47606 2008-12-19  Bruno Haible  <bruno@clisp.org>
47607
47608         * modules/mbsrtowcs-tests: New file.
47609         * tests/test-mbsrtowcs1.sh: New file.
47610         * tests/test-mbsrtowcs2.sh: New file.
47611         * tests/test-mbsrtowcs3.sh: New file.
47612         * tests/test-mbsrtowcs4.sh: New file.
47613         * tests/test-mbsrtowcs.c: New file.
47614
47615         New module 'mbsrtowcs'.
47616         * lib/wchar.in.h (mbsrtowcs): New declaration.
47617         * lib/mbsrtowcs.c: New file.
47618         * m4/mbsrtowcs.m4: New file.
47619         * modules/mbsrtowcs: New file.
47620         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSRTOWCS and
47621         HAVE_MBSRTOWCS.
47622         * modules/wchar (Makefile.am): Substitute GNULIB_MBSRTOWCS and
47623         HAVE_MBSRTOWCS.
47624         * doc/posix-functions/mbsrtowcs.texi: Document the new module.
47625
47626 2008-12-19  Bruno Haible  <bruno@clisp.org>
47627
47628         New module 'mbrlen'.
47629         * lib/wchar.in.h (mbrlen): New declaration.
47630         * lib/mbrlen.c: New file.
47631         * m4/mbrlen.m4: New file.
47632         * modules/mbrlen: New file.
47633         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBRLEN and
47634         HAVE_MBRLEN.
47635         * modules/wchar (Makefile.am): Substitute GNULIB_MBRLEN and
47636         HAVE_MBRLEN.
47637         * doc/posix-functions/mbrlen.texi: Document the new module.
47638
47639 2008-12-19  Bruno Haible  <bruno@clisp.org>
47640
47641         * lib/mbrtowc.c: Include verify.h. Verify an assumption.
47642         * modules/mbrtowc (Depends-on): Add verify.
47643         Suggested by Paul Eggert.
47644
47645 2008-12-18  Bruno Haible  <bruno@clisp.org>
47646
47647         * modules/mbsinit-tests: New file.
47648         * tests/test-mbsinit.sh: New file.
47649         * tests/test-mbsinit.c: New file.
47650
47651 2008-12-18  Bruno Haible  <bruno@clisp.org>
47652
47653         * modules/mbrtowc-tests: New file.
47654         * tests/test-mbrtowc1.sh: New file.
47655         * tests/test-mbrtowc2.sh: New file.
47656         * tests/test-mbrtowc3.sh: New file.
47657         * tests/test-mbrtowc4.sh: New file.
47658         * tests/test-mbrtowc.c: New file.
47659
47660         New module 'mbrtowc'.
47661         * lib/wchar.in.h (mbstate_t): Override when the system does not have
47662         mbsinit and mbrtowc.
47663         (mbrtowc): New declaration.
47664         * lib/mbrtowc.c: New file.
47665         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC, gl_PREREQ_MBRTOWC): New macros.
47666         * modules/mbrtowc: New file.
47667         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBRTOWC and
47668         HAVE_MBRTOWC.
47669         * modules/wchar (Makefile.am): Substitute GNULIB_MBRTOWC and
47670         HAVE_MBRTOWC.
47671         * doc/posix-functions/mbrtowc.texi: Document the new module.
47672
47673 2008-12-18  Bruno Haible  <bruno@clisp.org>
47674
47675         New module 'wctob'.
47676         * lib/wchar.in.h (wctob): New declaration.
47677         * lib/wctob.c: New file.
47678         * m4/wctob.m4: New file.
47679         * modules/wctob: New file.
47680         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCTOB and
47681         HAVE_WCTOB.
47682         * modules/wchar (Makefile.am): Substitute GNULIB_WCTOB and HAVE_WCTOB.
47683         * doc/posix-functions/wctob.texi: Document the new module.
47684
47685 2008-12-18  Bruno Haible  <bruno@clisp.org>
47686
47687         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Invoke gl_REPLACE_WCHAR_H.
47688         * m4/btowc.m4 (gl_FUNC_BTOWC): Likewise.
47689
47690 2008-12-18  Simon Josefsson  <simon@josefsson.org>
47691
47692         * lib/flock.c: Use proper #if symbol in check.  Reported by "Tom
47693         G. Christensen" <tgc@jupiterrise.com>.
47694
47695         * lib/flock.c: Need to include errno.h.  Reported by "Tom
47696         G. Christensen" <tgc@jupiterrise.com>.
47697
47698         * lib/flock.c: Need to include string.h.  Reported by "Tom
47699         G. Christensen" <tgc@jupiterrise.com> and Eric Blake
47700         <ebb9@byu.net>.
47701
47702 2008-12-18  Bruno Haible  <bruno@clisp.org>
47703
47704         * m4/locale-ja.m4: New file, from GNU gettext.
47705
47706 2008-12-17  Bruno Haible  <bruno@clisp.org>
47707
47708         * m4/mbrtowc.m4 (AC_FUNC_MBRTOWC): Don't override in autoconf >= 2.60.
47709         Suggested by Eric Blake.
47710
47711 2008-12-17  Bruno Haible  <bruno@clisp.org>
47712
47713         * m4/errno_h.m4 (AC_COMPUTE_INT): Provide fallback definition.
47714
47715 2008-12-17  Bruno Haible  <bruno@clisp.org>
47716
47717         * lib/mbsinit.c: Include verify.h. Verify an assumption.
47718         * modules/mbsinit (Depends-on): Add verify.
47719         Suggested by Paul Eggert.
47720
47721 2008-12-17  Bruno Haible  <bruno@clisp.org>
47722
47723         * m4/mbrtowc.m4 (AC_FUNC_MBRTOWC): Renamed from gl_FUNC_MBRTOWC.
47724         * m4/mbfile.m4 (gl_MBFILE): Use AC_FUNC_MBRTOWC instead of
47725         gl_FUNC_MBRTOWC.
47726         * m4/mbiter.m4 (gl_MBITER): LIkewise.
47727         * m4/mbscasecmp.m4 (gl_PREREQ_MBSCASECMP): Likewise.
47728         * m4/mbscasestr.m4 (gl_PREREQ_MBSCASESTR): Likewise.
47729         * m4/mbschr.m4 (gl_PREREQ_MBSCHR): Likewise.
47730         * m4/mbscspn.m4 (gl_PREREQ_MBSCSPN): Likewise.
47731         * m4/mbslen.m4 (gl_PREREQ_MBSLEN): Likewise.
47732         * m4/mbsncasecmp.m4 (gl_PREREQ_MBSNCASECMP): Likewise.
47733         * m4/mbsnlen.m4 (gl_PREREQ_MBSNLEN): Likewise.
47734         * m4/mbspbrk.m4 (gl_PREREQ_MBSPBRK): Likewise.
47735         * m4/mbspcasecmp.m4 (gl_PREREQ_MBSPCASECMP): Likewise.
47736         * m4/mbsrchr.m4 (gl_PREREQ_MBSRCHR): Likewise.
47737         * m4/mbssep.m4 (gl_PREREQ_MBSSEP): Likewise.
47738         * m4/mbsspn.m4 (gl_PREREQ_MBSSPN): Likewise.
47739         * m4/mbsstr.m4 (gl_PREREQ_MBSSTR): Likewise.
47740         * m4/mbstok_r.m4 (gl_PREREQ_MBSTOK_R): Likewise.
47741         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
47742         * m4/quotearg.m4 (gl_QUOTEARG): Likewise.
47743         * modules/trim (configure.ac): Likewise.
47744
47745 2008-12-17  Bruno Haible  <bruno@clisp.org>
47746
47747         * modules/btowc-tests: New file.
47748         * tests/test-btowc1.sh: New file.
47749         * tests/test-btowc2.sh: New file.
47750         * tests/test-btowc.c: New file.
47751
47752         New module 'btowc'.
47753         * lib/wchar.in.h (btowc): New declaration.
47754         * lib/btowc.c: New file.
47755         * m4/btowc.m4: New file.
47756         * modules/btowc: New file.
47757         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_BTOWC and
47758         HAVE_BTOWC.
47759         * modules/wchar (Makefile.am): Substitute GNULIB_BTOWC and HAVE_BTOWC.
47760         * doc/posix-functions/btowc.texi: Document the new module.
47761
47762 2008-12-17  Bruno Haible  <bruno@clisp.org>
47763
47764         New module 'mbsinit'.
47765         * lib/wchar.in.h (mbsinit): New declaration.
47766         * lib/mbsinit.c: New file.
47767         * m4/mbsinit.m4: New file.
47768         * modules/mbsinit: New file.
47769         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSINIT and
47770         HAVE_MBSINIT.
47771         * modules/wchar (Makefile.am): Substitute GNULIB_MBSINIT and
47772         HAVE_MBSINIT.
47773         * doc/posix-functions/mbsinit.texi: Document the new module.
47774
47775 2008-12-16  Bruno Haible  <bruno@clisp.org>
47776
47777         * lib/unistd.in.h: Add comment.
47778         * tests/test-environ.c: Don't include <stdlib.h>.
47779
47780 2008-12-16  Bruno Haible  <bruno@clisp.org>
47781
47782         * lib/parse-duration.h (parse_duration): Document return value
47783         convention.
47784         * lib/parse-duration.c: Include specification header first. Add
47785         comments.
47786         (_): Remove macro.
47787         (parse_year_month_day, parse_hour_minute_second): Move side effects
47788         outside of strchr call.
47789         (parse_non_iso8601): Move side effects outside of isspace call.
47790         (parse_duration): Don't test errno is res != BAD_TIME. Remove fprintf
47791         call.
47792
47793 2008-12-16  Bruno Haible  <bruno@clisp.org>
47794
47795         * tests/test-parse-duration.sh: Produce no output when the test
47796         succeeds.
47797
47798 2008-12-16  Bruno Haible  <bruno@clisp.org>
47799
47800         * tests/test-parse-duration.sh: Fix quoting of $tmp and $tmpf
47801         expressions.
47802
47803 2008-12-15  Bruno Haible  <bruno@clisp.org>
47804
47805         * doc/glibc-functions/fgetxattr.texi: Tweak wording.
47806         * doc/glibc-functions/flistxattr.texi: Likewise.
47807         * doc/glibc-functions/fopencookie.texi: Likewise.
47808         * doc/glibc-functions/fremovexattr.texi: Likewise.
47809         * doc/glibc-functions/fsetxattr.texi: Likewise.
47810         * doc/glibc-functions/getxattr.texi: Likewise.
47811         * doc/glibc-functions/lgetxattr.texi: Likewise.
47812         * doc/glibc-functions/listxattr.texi: Likewise.
47813         * doc/glibc-functions/llistxattr.texi: Likewise.
47814         * doc/glibc-functions/lremovexattr.texi: Likewise.
47815         * doc/glibc-functions/lsetxattr.texi: Likewise.
47816         * doc/glibc-functions/removexattr.texi: Likewise.
47817         * doc/glibc-functions/setxattr.texi: Likewise.
47818         * doc/posix-functions/open_memstream.texi: Likewise.
47819
47820 2008-12-15  Eric Blake  <ebb9@byu.net>
47821
47822         Update doc for cygwin 1.7.
47823         * doc/posix-functions/faccessat.texi: Cygwin 1.7 added several new
47824         functions.
47825         * doc/posix-functions/fchmodat.texi: Likewise.
47826         * doc/posix-functions/fchownat.texi: Likewise.
47827         * doc/posix-functions/fdopendir.texi: Likewise.
47828         * doc/posix-functions/fmemopen.texi: Likewise.
47829         * doc/posix-functions/freeaddrinfo.texi: Likewise.
47830         * doc/posix-functions/fstatat.texi: Likewise.
47831         * doc/posix-functions/futimens.texi: Likewise.
47832         * doc/posix-functions/gai_strerror.texi: Likewise.
47833         * doc/posix-functions/getaddrinfo.texi: Likewise.
47834         * doc/posix-functions/getnameinfo.texi: Likewise.
47835         * doc/posix-functions/if_freenameindex.texi: Likewise.
47836         * doc/posix-functions/if_indextoname.texi: Likewise.
47837         * doc/posix-functions/if_nameindex.texi: Likewise.
47838         * doc/posix-functions/if_nametoindex.texi: Likewise.
47839         * doc/posix-functions/insque.texi: Likewise.
47840         * doc/posix-functions/linkat.texi: Likewise.
47841         * doc/posix-functions/llrint.texi: Likewise.
47842         * doc/posix-functions/llrintf.texi: Likewise.
47843         * doc/posix-functions/llrintl.texi: Likewise.
47844         * doc/posix-functions/lockf.texi: Likewise.
47845         * doc/posix-functions/lrintl.texi: Likewise.
47846         * doc/posix-functions/mkdirat.texi: Likewise.
47847         * doc/posix-functions/mkfifoat.texi: Likewise.
47848         * doc/posix-functions/mknodat.texi: Likewise.
47849         * doc/posix-functions/mq_close.texi: Likewise.
47850         * doc/posix-functions/mq_getattr.texi: Likewise.
47851         * doc/posix-functions/mq_notify.texi: Likewise.
47852         * doc/posix-functions/mq_open.texi: Likewise.
47853         * doc/posix-functions/mq_receive.texi: Likewise.
47854         * doc/posix-functions/mq_send.texi: Likewise.
47855         * doc/posix-functions/mq_setattr.texi: Likewise.
47856         * doc/posix-functions/mq_timedreceive.texi: Likewise.
47857         * doc/posix-functions/mq_timedsend.texi: Likewise.
47858         * doc/posix-functions/mq_unlink.texi: Likewise.
47859         * doc/posix-functions/open_memstream.texi: Likewise.
47860         * doc/posix-functions/openat.texi: Likewise.
47861         * doc/posix-functions/posix_fadvise.texi: Likewise.
47862         * doc/posix-functions/posix_fallocate.texi: Likewise.
47863         * doc/posix-functions/posix_madvise.texi: Likewise.
47864         * doc/posix-functions/posix_memalign.texi: Likewise.
47865         * doc/posix-functions/posix_openpt.texi: Likewise.
47866         * doc/posix-functions/readlinkat.texi: Likewise.
47867         * doc/posix-functions/remque.texi: Likewise.
47868         * doc/posix-functions/renameat.texi: Likewise.
47869         * doc/posix-functions/rintl.texi: Likewise.
47870         * doc/posix-functions/sem_unlink.texi: Likewise.
47871         * doc/posix-functions/shm_open.texi: Likewise.
47872         * doc/posix-functions/shm_unlink.texi: Likewise.
47873         * doc/posix-functions/signgam.texi: Likewise.
47874         * doc/posix-functions/sigset.texi: Likewise.
47875         * doc/posix-functions/stpcpy.texi: Likewise.
47876         * doc/posix-functions/stpncpy.texi: Likewise.
47877         * doc/posix-functions/strerror.texi: Likewise.
47878         * doc/posix-functions/strtod.texi: Likewise.
47879         * doc/posix-functions/symlinkat.texi: Likewise.
47880         * doc/posix-functions/unlinkat.texi: Likewise.
47881         * doc/posix-functions/utimensat.texi: Likewise.
47882         * doc/glibc-functions/bindresvport.texi: Likewise.
47883         * doc/glibc-functions/dn_expand.texi: Likewise.
47884         * doc/glibc-functions/exp10.texi: Likewise.
47885         * doc/glibc-functions/exp10f.texi: Likewise.
47886         * doc/glibc-functions/fgetxattr.texi: Likewise.
47887         * doc/glibc-functions/flistxattr.texi: Likewise.
47888         * doc/glibc-functions/fopencookie.texi: Likewise.
47889         * doc/glibc-functions/freeifaddrs.texi: Likewise.
47890         * doc/glibc-functions/fremovexattr.texi: Likewise.
47891         * doc/glibc-functions/fsetxattr.texi: Likewise.
47892         * doc/glibc-functions/getifaddrs.texi: Likewise.
47893         * doc/glibc-functions/getxattr.texi: Likewise.
47894         * doc/glibc-functions/lgetxattr.texi: Likewise.
47895         * doc/glibc-functions/listxattr.texi: Likewise.
47896         * doc/glibc-functions/llistxattr.texi: Likewise.
47897         * doc/glibc-functions/lremovexattr.texi: Likewise.
47898         * doc/glibc-functions/lsetxattr.texi: Likewise.
47899         * doc/glibc-functions/pow10.texi: Likewise.
47900         * doc/glibc-functions/pow10f.texi: Likewise.
47901         * doc/glibc-functions/rcmd_af.texi: Likewise.
47902         * doc/glibc-functions/removexattr.texi: Likewise.
47903         * doc/glibc-functions/res_init.texi: Likewise.
47904         * doc/glibc-functions/res_mkquery.texi: Likewise.
47905         * doc/glibc-functions/res_query.texi: Likewise.
47906         * doc/glibc-functions/res_querydomain.texi: Likewise.
47907         * doc/glibc-functions/res_send.texi: Likewise.
47908         * doc/glibc-functions/rresvport_af.texi: Likewise.
47909         * doc/glibc-functions/setxattr.texi: Likewise.
47910         * doc/glibc-functions/strcasestr.texi: Likewise.
47911
47912 2008-12-15  Bruno Haible  <bruno@clisp.org>
47913
47914         Fix compilation error on OSF/1 4.0.
47915         * lib/sys_select.in.h: When invoked from OSF/1 <sys/types.h> or
47916         <sys/time.h>, simply delegate to the system header.
47917         Reported by Daniel Richard G. <oss@teragram.com>.
47918
47919 2008-12-15  Bruno Haible  <bruno@clisp.org>
47920
47921         * doc/posix-functions/openat.texi: Mention the 'openat' module.
47922         * doc/posix-functions/fchmodat.texi: Likewise.
47923         * doc/posix-functions/fchownat.texi: Likewise.
47924         * doc/posix-functions/fdopendir.texi: Likewise.
47925         * doc/posix-functions/fstatat.texi: Likewise.
47926         * doc/posix-functions/mkdirat.texi: Likewise.
47927         * doc/posix-functions/unlinkat.texi: Likewise.
47928
47929 2008-12-14  Bruno Haible  <bruno@clisp.org>
47930
47931         Update doc for POSIX:2008.
47932         * doc/posix-functions/faccessat.texi: New file.
47933         * doc/posix-functions/fchmodat.texi: New file.
47934         * doc/posix-functions/fchownat.texi: New file.
47935         * doc/posix-functions/fdopendir.texi: New file.
47936         * doc/posix-functions/fstatat.texi: New file.
47937         * doc/posix-functions/futimens.texi: New file.
47938         * doc/posix-functions/linkat.texi: New file.
47939         * doc/posix-functions/mkdirat.texi: New file.
47940         * doc/posix-functions/mkfifoat.texi: New file.
47941         * doc/posix-functions/mknodat.texi: New file.
47942         * doc/posix-functions/open_wmemstream.texi: New file.
47943         * doc/posix-functions/openat.texi: New file.
47944         * doc/posix-functions/psiginfo.texi: New file.
47945         * doc/posix-functions/pthread_mutex_consistent.texi: New file.
47946         * doc/posix-functions/pthread_mutexattr_getrobust.texi: New file.
47947         * doc/posix-functions/pthread_mutexattr_setrobust.texi: New file.
47948         * doc/posix-functions/readlinkat.texi: New file.
47949         * doc/posix-functions/renameat.texi: New file.
47950         * doc/posix-functions/strerror_l.texi: New file.
47951         * doc/posix-functions/symlinkat.texi: New file.
47952         * doc/posix-functions/unlinkat.texi: New file.
47953         * doc/posix-functions/utimensat.texi: New file.
47954         * doc/gnulib.texi (Function Substitutes): Add these subsections.
47955
47956 2008-12-14  Bruno Haible  <bruno@clisp.org>
47957
47958         Update doc for POSIX:2008.
47959         * doc/posix-functions/alphasort.texi: Renamed from
47960         doc/glibc-functions/alphasort.texi.
47961         * doc/posix-functions/dirfd.texi: Renamed from
47962         doc/glibc-functions/dirfd.texi.
47963         * doc/posix-functions/dprintf.texi: Renamed from
47964         doc/glibc-functions/dprintf.texi.
47965         * doc/posix-functions/duplocale.texi: Renamed from
47966         doc/glibc-functions/duplocale.texi.
47967         * doc/posix-functions/fexecve.texi: Renamed from
47968         doc/glibc-functions/fexecve.texi.
47969         * doc/posix-functions/fmemopen.texi: Renamed from
47970         doc/glibc-functions/fmemopen.texi.
47971         * doc/posix-functions/freelocale.texi: Renamed from
47972         doc/glibc-functions/freelocale.texi.
47973         * doc/posix-functions/getdate_err.texi: Renamed from
47974         doc/glibc-functions/getdate_err.texi.
47975         * doc/posix-functions/isalnum_l.texi: Renamed from
47976         doc/glibc-functions/isalnum_l.texi.
47977         * doc/posix-functions/isalpha_l.texi: Renamed from
47978         doc/glibc-functions/isalpha_l.texi.
47979         * doc/posix-functions/isblank_l.texi: Renamed from
47980         doc/glibc-functions/isblank_l.texi.
47981         * doc/posix-functions/iscntrl_l.texi: Renamed from
47982         doc/glibc-functions/iscntrl_l.texi.
47983         * doc/posix-functions/isdigit_l.texi: Renamed from
47984         doc/glibc-functions/isdigit_l.texi.
47985         * doc/posix-functions/isgraph_l.texi: Renamed from
47986         doc/glibc-functions/isgraph_l.texi.
47987         * doc/posix-functions/islower_l.texi: Renamed from
47988         doc/glibc-functions/islower_l.texi.
47989         * doc/posix-functions/isprint_l.texi: Renamed from
47990         doc/glibc-functions/isprint_l.texi.
47991         * doc/posix-functions/ispunct_l.texi: Renamed from
47992         doc/glibc-functions/ispunct_l.texi.
47993         * doc/posix-functions/isspace_l.texi: Renamed from
47994         doc/glibc-functions/isspace_l.texi.
47995         * doc/posix-functions/isupper_l.texi: Renamed from
47996         doc/glibc-functions/isupper_l.texi.
47997         * doc/posix-functions/iswalnum_l.texi: Renamed from
47998         doc/glibc-functions/iswalnum_l.texi.
47999         * doc/posix-functions/iswalpha_l.texi: Renamed from
48000         doc/glibc-functions/iswalpha_l.texi.
48001         * doc/posix-functions/iswblank_l.texi: Renamed from
48002         doc/glibc-functions/iswblank_l.texi.
48003         * doc/posix-functions/iswcntrl_l.texi: Renamed from
48004         doc/glibc-functions/iswcntrl_l.texi.
48005         * doc/posix-functions/iswctype_l.texi: Renamed from
48006         doc/glibc-functions/iswctype_l.texi.
48007         * doc/posix-functions/iswdigit_l.texi: Renamed from
48008         doc/glibc-functions/iswdigit_l.texi.
48009         * doc/posix-functions/iswgraph_l.texi: Renamed from
48010         doc/glibc-functions/iswgraph_l.texi.
48011         * doc/posix-functions/iswlower_l.texi: Renamed from
48012         doc/glibc-functions/iswlower_l.texi.
48013         * doc/posix-functions/iswprint_l.texi: Renamed from
48014         doc/glibc-functions/iswprint_l.texi.
48015         * doc/posix-functions/iswpunct_l.texi: Renamed from
48016         doc/glibc-functions/iswpunct_l.texi.
48017         * doc/posix-functions/iswspace_l.texi: Renamed from
48018         doc/glibc-functions/iswspace_l.texi.
48019         * doc/posix-functions/iswupper_l.texi: Renamed from
48020         doc/glibc-functions/iswupper_l.texi.
48021         * doc/posix-functions/iswxdigit_l.texi: Renamed from
48022         doc/glibc-functions/iswxdigit_l.texi.
48023         * doc/posix-functions/isxdigit_l.texi: Renamed from
48024         doc/glibc-functions/isxdigit_l.texi.
48025         * doc/posix-functions/mbsnrtowcs.texi: Renamed from
48026         doc/glibc-functions/mbsnrtowcs.texi.
48027         * doc/posix-functions/mkdtemp.texi: Renamed from
48028         doc/glibc-functions/mkdtemp.texi.
48029         * doc/posix-functions/newlocale.texi: Renamed from
48030         doc/glibc-functions/newlocale.texi.
48031         * doc/posix-functions/nl_langinfo_l.texi: Renamed from
48032         doc/glibc-functions/nl_langinfo_l.texi.
48033         * doc/posix-functions/open_memstream.texi: Renamed from
48034         doc/glibc-functions/open_memstream.texi.
48035         * doc/posix-functions/opterr.texi: Renamed from
48036         doc/glibc-functions/opterr.texi.
48037         * doc/posix-functions/optind.texi: Renamed from
48038         doc/glibc-functions/optind.texi.
48039         * doc/posix-functions/optopt.texi: Renamed from
48040         doc/glibc-functions/optopt.texi.
48041         * doc/posix-functions/psignal.texi: Renamed from
48042         doc/glibc-functions/psignal.texi.
48043         * doc/posix-functions/scandir.texi: Renamed from
48044         doc/glibc-functions/scandir.texi.
48045         * doc/posix-functions/sched_get_priority_min.texi: Renamed from
48046         doc/glibc-functions/sched_get_priority_min.texi.
48047         * doc/posix-functions/signgam.texi: Renamed from
48048         doc/glibc-functions/signgam.texi.
48049         * doc/posix-functions/stpcpy.texi: Renamed from
48050         doc/glibc-functions/stpcpy.texi.
48051         * doc/posix-functions/stpncpy.texi: Renamed from
48052         doc/glibc-functions/stpncpy.texi.
48053         * doc/posix-functions/strcasecmp_l.texi: Renamed from
48054         doc/glibc-functions/strcasecmp_l.texi.
48055         * doc/posix-functions/strcoll_l.texi: Renamed from
48056         doc/glibc-functions/strcoll_l.texi.
48057         * doc/posix-functions/strfmon_l.texi: Renamed from
48058         doc/glibc-functions/strfmon_l.texi.
48059         * doc/posix-functions/strftime_l.texi: Renamed from
48060         doc/glibc-functions/strftime_l.texi.
48061         * doc/posix-functions/strncasecmp_l.texi: Renamed from
48062         doc/glibc-functions/strncasecmp_l.texi.
48063         * doc/posix-functions/strndup.texi: Renamed from
48064         doc/glibc-functions/strndup.texi.
48065         * doc/posix-functions/strnlen.texi: Renamed from
48066         doc/glibc-functions/strnlen.texi.
48067         * doc/posix-functions/strsignal.texi: Renamed from
48068         doc/glibc-functions/strsignal.texi.
48069         * doc/posix-functions/strxfrm_l.texi: Renamed from
48070         doc/glibc-functions/strxfrm_l.texi.
48071         * doc/posix-functions/timer_gettime.texi: Renamed from
48072         doc/glibc-functions/timer_gettime.texi.
48073         * doc/posix-functions/tolower_l.texi: Renamed from
48074         doc/glibc-functions/tolower_l.texi.
48075         * doc/posix-functions/toupper_l.texi: Renamed from
48076         doc/glibc-functions/toupper_l.texi.
48077         * doc/posix-functions/towctrans_l.texi: Renamed from
48078         doc/glibc-functions/towctrans_l.texi.
48079         * doc/posix-functions/towlower_l.texi: Renamed from
48080         doc/glibc-functions/towlower_l.texi.
48081         * doc/posix-functions/towupper_l.texi: Renamed from
48082         doc/glibc-functions/towupper_l.texi.
48083         * doc/posix-functions/uselocale.texi: Renamed from
48084         doc/glibc-functions/uselocale.texi.
48085         * doc/posix-functions/vdprintf.texi: Renamed from
48086         doc/glibc-functions/vdprintf.texi.
48087         * doc/posix-functions/wcpcpy.texi:
48088         Renamed from doc/glibc-functions/wcpcpy.texi.
48089         * doc/posix-functions/wcpncpy.texi: Renamed from
48090         doc/glibc-functions/wcpncpy.texi.
48091         * doc/posix-functions/wcscasecmp.texi: Renamed from
48092         doc/glibc-functions/wcscasecmp.texi.
48093         * doc/posix-functions/wcscasecmp_l.texi: Renamed from
48094         doc/glibc-functions/wcscasecmp_l.texi.
48095         * doc/posix-functions/wcscoll_l.texi: Renamed from
48096         doc/glibc-functions/wcscoll_l.texi.
48097         * doc/posix-functions/wcsdup.texi: Renamed from
48098         doc/glibc-functions/wcsdup.texi.
48099         * doc/posix-functions/wcsncasecmp.texi: Renamed from
48100         doc/glibc-functions/wcsncasecmp.texi.
48101         * doc/posix-functions/wcsncasecmp_l.texi: Renamed from
48102         doc/glibc-functions/wcsncasecmp_l.texi.
48103         * doc/posix-functions/wcsnlen.texi: Renamed from
48104         doc/glibc-functions/wcsnlen.texi.
48105         * doc/posix-functions/wcsnrtombs.texi: Renamed from
48106         doc/glibc-functions/wcsnrtombs.texi.
48107         * doc/posix-functions/wcsxfrm_l.texi: Renamed from
48108         doc/glibc-functions/wcsxfrm_l.texi.
48109         * doc/posix-functions/wctrans_l.texi: Renamed from
48110         doc/glibc-functions/wctrans_l.texi.
48111         * doc/posix-functions/wctype_l.texi: Renamed from
48112         doc/glibc-functions/wctype_l.texi.
48113         * doc/gnulib.texi (Function Substitutes): Add these subsections.
48114         (Glibc ctype.h, Glibc dirent.h, Glibc getopt.h, Glibc math.h,
48115         Glibc sched.h, Glibc signal.h, Glibc stdio.h, Glibc stdlib.h,
48116         Glibc string.h, Glibc time.h, Glibc unistd.h, Glibc wchar.h): Remove
48117         these subsections.
48118         (Glibc langinfo.h, Glibc locale.h, Glibc monetary.h, Glibc wctype.h):
48119         Remove sections.
48120
48121 2008-12-14  Bruno Haible  <bruno@clisp.org>
48122
48123         Update doc for POSIX:2008.
48124         * doc/posix-functions/*.texi: Update URL of POSIX specification.
48125
48126 2008-12-14  Bruno Haible  <bruno@clisp.org>
48127
48128         Update doc for POSIX:2008.
48129         * doc/pastposix-functions/bcmp.texi: Renamed from
48130         doc/posix-functions/bcmp.texi.
48131         * doc/pastposix-functions/bcopy.texi: Renamed from
48132         doc/posix-functions/bcopy.texi.
48133         * doc/pastposix-functions/bsd_signal.texi: Renamed from
48134         doc/posix-functions/bsd_signal.texi.
48135         * doc/pastposix-functions/bzero.texi: Renamed from
48136         doc/posix-functions/bzero.texi.
48137         * doc/pastposix-functions/ecvt.texi: Renamed from
48138         doc/posix-functions/ecvt.texi.
48139         * doc/pastposix-functions/fcvt.texi: Renamed from
48140         doc/posix-functions/fcvt.texi.
48141         * doc/pastposix-functions/ftime.texi: Renamed from
48142         doc/posix-functions/ftime.texi.
48143         * doc/pastposix-functions/gcvt.texi: Renamed from
48144         doc/posix-functions/gcvt.texi.
48145         * doc/pastposix-functions/getcontext.texi: Renamed from
48146         doc/posix-functions/getcontext.texi.
48147         * doc/pastposix-functions/gethostbyaddr.texi: Renamed from
48148         doc/posix-functions/gethostbyaddr.texi.
48149         * doc/pastposix-functions/gethostbyname.texi: Renamed from
48150         doc/posix-functions/gethostbyname.texi.
48151         * doc/pastposix-functions/getwd.texi: Renamed from
48152         doc/posix-functions/getwd.texi.
48153         * doc/pastposix-functions/h_errno.texi: Renamed from
48154         doc/posix-functions/h_errno.texi.
48155         * doc/pastposix-functions/index.texi: Renamed from
48156         doc/posix-functions/index.texi.
48157         * doc/pastposix-functions/makecontext.texi: Renamed from
48158         doc/posix-functions/makecontext.texi.
48159         * doc/pastposix-functions/mktemp.texi: Renamed from
48160         doc/posix-functions/mktemp.texi.
48161         * doc/pastposix-functions/pthread_attr_getstackaddr.texi: Renamed from
48162         doc/posix-functions/pthread_attr_getstackaddr.texi.
48163         * doc/pastposix-functions/pthread_attr_setstackaddr.texi: Renamed from
48164         doc/posix-functions/pthread_attr_setstackaddr.texi.
48165         * doc/pastposix-functions/rindex.texi: Renamed from
48166         doc/posix-functions/rindex.texi.
48167         * doc/pastposix-functions/scalb.texi: Renamed from
48168         doc/posix-functions/scalb.texi.
48169         * doc/pastposix-functions/setcontext.texi: Renamed from
48170         doc/posix-functions/setcontext.texi.
48171         * doc/pastposix-functions/swapcontext.texi: Renamed from
48172         doc/posix-functions/swapcontext.texi.
48173         * doc/pastposix-functions/ualarm.texi: Renamed from
48174         doc/posix-functions/ualarm.texi.
48175         * doc/pastposix-functions/usleep.texi: Renamed from
48176         doc/posix-functions/usleep.texi.
48177         * doc/pastposix-functions/vfork.texi: Renamed from
48178         doc/posix-functions/vfork.texi.
48179         * doc/pastposix-functions/wcswcs.texi: Renamed from
48180         doc/posix-functions/wcswcs.texi.
48181         * doc/gnulib.texi (Legacy Function Substitutes): New chapter.
48182         (Function Substitutes): Update.
48183
48184 2008-12-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
48185
48186         * modules/relocatable-prog-wrapper (Depends-on): Add errno, needed by
48187         m4/strerror.m4.
48188
48189 2008-12-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
48190             Bruno Haible  <bruno@clisp.org>
48191
48192         * modules/unilbrk/tables (Depends-on): Add unilbrk/base.
48193
48194 2008-12-13  Bruno Haible  <bruno@clisp.org>
48195
48196         * modules/strtoull (Depends-on): Remove unistd.
48197
48198 2008-12-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
48199
48200         * modules/strtoull (Depends-on): Add stdlib.
48201
48202 2008-12-11  Simon Josefsson  <simon@josefsson.org>
48203
48204         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add more warnings.
48205
48206 2008-12-10  Jim Meyering  <meyering@redhat.com>
48207
48208         gl_ASSERT: don't say assertions are disabled when they're not
48209         * m4/assert.m4 (gl_ASSERT): Do not make configure report
48210         "checking whether to enable assertions... no", when they are in
48211         fact enabled.  This is solely a bug in the output of configure.
48212         In spite of saying "no", NDEBUG was not defined in that case.
48213         Also, as noted by Eric Blake, leave assertions enabled upon
48214         --enable-assert=INVALID.
48215
48216 2008-12-10  Bruno Haible  <bruno@clisp.org>
48217
48218         Change MODULES.html to refer to POSIX:2008 where possible.
48219         * MODULES.html.sh (POSIX2008_URL): New variable.
48220         (posix_headers): Remove sys/timeb, ucontext.
48221         (posix2001_headers): New variable.
48222         (posix_functions): Remove bcmp, bcopy, bsd_signal, bzero, ecvt, fcvt,
48223         ftime, gcvt, getcontext, gethostbyaddr, gethostbyname, getwd, h_errno,
48224         index, makecontext, mktemp, pthread_attr_getstackaddr,
48225         pthread_attr_setstackaddr, rindex, scalb, setcontext, swapcontext,
48226         ualarm, usleep, vfork, wcswcs. Add the new POSIX:2008 functions.
48227         (posix2001_functions): New variable.
48228         (func_module): Use URLs to POSIX:2008 where possible and to POSIX:2001
48229         otherwise.
48230
48231 2008-12-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
48232
48233         add missing include to parse-duration.c
48234         * lib/parse-duration.c: #include "xalloc.h", for xstrdup.
48235         * modules/parse-duration (Depends-on): Add xalloc.
48236
48237         fix sed script reading maint.mk
48238         * top/maint.mk (MYSELF): New macro, define as $(srcdir)/$(ME).
48239         (syntax-check-rules): Use it.
48240
48241 2008-12-09  Bruno Haible  <bruno@clisp.org>
48242
48243         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Add another check, that fails on
48244         MacOS X 10.4/PowerPC.
48245         Reported by Simon Josefsson.
48246
48247 2008-12-08  Jim Meyering  <meyering@redhat.com>
48248
48249         work around mingw's lack of some S_IF definitions
48250         * lib/fts.c (S_IFLNK, S_IFSOCK): Define if not already defined.
48251         Reported by Simon Josefsson.
48252
48253 2008-12-08  Bruno Haible  <bruno@clisp.org>
48254
48255         * m4/signbitl.m4 (gl_SIGNBIT_TEST_PROGRAM): Add a link check of signbit
48256         applied to variables. Needed on MacOS X 10.4/PowerPC.
48257         Reported by Simon Josefsson.
48258
48259 2008-12-08  William Pursell  <bill.pursell@gmail.com>  (tiny change)
48260         and Eric Blake  <ebb9@byu.net>
48261
48262         assert: honor --enable-assert
48263         * m4/assert.m4 (gl_ASSERT): Synchronize with autoconf 2.64, in
48264         order to honor --enable-assert, rather than treating it as a
48265         synonym for --disable-assert.
48266
48267 2008-12-08  Jim Meyering  <meyering@redhat.com>
48268
48269         * lib/posixtm.c: Remove now-useless declaration of mktime.
48270
48271         * build-aux/announce-gen (get_tool_versions): Accept .xz tarballs.
48272
48273 2008-12-07  Bruno Haible  <bruno@clisp.org>
48274
48275         * tests/test-lock.c (test_lock, test_rwlock, test_recursive_lock,
48276         test_once): Mark functions as static.
48277         * tests/test-tls.c (test_tls): Likewise.
48278
48279 2008-12-07  Bruno Haible  <bruno@clisp.org>
48280
48281         * lib/striconveha.h (uniconv_register_autodetect): Renamed from
48282         iconv_register_autodetect.
48283
48284 2008-12-07  Jim Meyering  <meyering@redhat.com>
48285
48286         posixtm.c: avoid a warning
48287         * lib/posixtm.c (posixtime): Don't initialize tm0.
48288         It's no longer needed to placate gcc4's -Wuninitialized,
48289         and the attempt to placate would elicit a new warning.
48290
48291         unicodeio.c: mark unused parameters
48292         * lib/unicodeio.c (exit_failure_callback): Mark unused parameter.
48293         (fallback_failure_callback): Likewise.
48294
48295 2008-12-07  Bruno Haible  <bruno@clisp.org>
48296
48297         * gnulib-tool (func_create_testdir): When building the tests
48298         subdirectory, ignore the modules gnumakefile and maintainer-makefile.
48299         Reported by Simon Josefsson.
48300
48301 2008-12-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
48302
48303         * doc/manywarnings.texi, doc/gnulib-intro.texi: Fix typos.
48304
48305 2008-12-06  Bruno Haible  <bruno@clisp.org>
48306
48307         * lib/c-stack.h (c_stack_action): Clarify possible side effects.
48308         Suggested by Eric Blake.
48309
48310 2008-12-06  Bruno Haible  <bruno@clisp.org>
48311
48312         Fix a c-stack test failure on MacOS X.
48313         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Require
48314         AC_CANONICAL_HOST. Define FAULT_YIELDS_SIGBUS. If set, install a signal
48315         handler for SIGBUS as well.
48316         * lib/c-stack.c (c_stack_action): If FAULT_YIELDS_SIGBUS is set,
48317         install a signal handler for SIGBUS as well.
48318         Reported by Bruce Dugan <bld0401@gmail.com> via Eric Blake.
48319
48320 2008-12-06  Bruno Haible  <bruno@clisp.org>
48321
48322         Advocacy documentation.
48323         * doc/gnulib-intro.texi (Benefits): New section.
48324         * doc/gnulib.texi: Update.
48325
48326 2008-12-06  Bruno Haible  <bruno@clisp.org>
48327
48328         Document the 'manywarnings' module.
48329         * doc/manywarnings.texi: New file.
48330         * doc/gnulib.texi: Include it.
48331
48332 2008-12-05  Eric Blake  <ebb9@byu.net>
48333
48334         tests: silence some gcc warnings
48335         * tests/test-getdate.c (LOG) [!DEBUG]: Mark no-op void.
48336         * tests/uniwidth/test-uc_width2.c (finish_interval): Avoid printf
48337         type mismatches.
48338
48339 2008-12-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
48340             Bruno Haible  <bruno@clisp.org>
48341
48342         * m4/openmp.m4 (AC_OPENMP): Do not define with Autoconf 2.62 or newer.
48343
48344 2008-11-29  Jim Meyering  <meyering@redhat.com>
48345
48346         unicodeio.c: mark unused parameters
48347         * lib/unicodeio.c (exit_failure_callback): Mark unused parameter.
48348         (fallback_failure_callback): Likewise.
48349
48350         fts: fix a thinko
48351         * lib/fts.c (s_ifmt_shift_bits): Remove function.  Not needed after all.
48352         (set_stat_type): Return S_IF*-valued "type" directly.
48353         Prompted by James Youngman's spotting a related bug.
48354         Confirmed by further testing through find.
48355
48356         fts: provide dirent.d_type via FTSENT.fts_statp, when possible
48357         * lib/fts.c (D_TYPE): Define.
48358         (DT_UNKNOWN, DT_BLK, DT_CHR) [HAVE_STRUCT_DIRENT_D_TYPE]: Define.
48359         (DT_DIR, DT_FIFO, DT_LNK, DT_REG, DT_SOCK): Likewise.
48360         (s_ifmt_shift_bits): New function.
48361         (set_stat_type): New function.
48362         (fts_build): When not calling fts_stat, call set_stat_type
48363         to propagate dirent.d_type info to fts_read caller.
48364         * lib/fts_.h (FTSENT) [FTS_DEFER_STAT]: Mention that
48365         fts_statp->st_mode type information may be valid.
48366
48367 2008-11-28  Simon Josefsson  <simon@josefsson.org>
48368
48369         * lib/sys_time.in.h: Add extern "C" block for C++.  Suggested by
48370         Brian Dessent <brian@dessent.net>.  Reported by Sam Steingold
48371         <sds@gnu.org>.
48372
48373 2008-11-20  Bruno Haible  <bruno@clisp.org>
48374
48375         Attempt to work around an AIX 5.3, 6.1 compiler bug with include_next.
48376         * lib/math.in.h: Use INCLUDE_NEXT_AS_FIRST_DIRECTIVE instead of
48377         INCLUDE_NEXT.
48378         * m4/include_next.m4 (gl_INCLUDE_NEXT): Set also
48379         INCLUDE_NEXT_AS_FIRST_DIRECTIVE.
48380         * modules/math (Makefile.am): Substitute
48381         INCLUDE_NEXT_AS_FIRST_DIRECTIVE instead of INCLUDE_NEXT.
48382         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
48383
48384 2008-11-18  Alexandre Duret-Lutz  <adl@lrde.epita.fr>
48385             Bruno Haible  <bruno@clisp.org>
48386
48387         * lib/stdint.in.h: Define all type macros so that their expansion is
48388         a single typedef'ed token. Fixes a compilation failure in Boost which
48389         does "using ::int8_t;".
48390
48391 2008-11-18  Simon Josefsson  <simon@josefsson.org>
48392
48393         * m4/manywarnings.m4: New file with gl_MANYWARN_COMPLEMENT and
48394         gl_MANYWARN_ALL_GCC.
48395         * m4/warnings.m4: Removed gl_WARN_SUPPORTED and
48396         gl_WARN_COMPLEMENT.  Suggested by Bruno Haible <bruno@clisp.org>.
48397         * modules/manywarnings: New file.
48398         * MODULES.html.sh: Mention manywarnings module.
48399
48400 2008-11-18  Bruno Haible  <bruno@clisp.org>
48401
48402         * doc/gnulib-tool.texi (Unit tests): New section.
48403
48404 2008-11-18  Simon Josefsson  <simon@josefsson.org>
48405
48406         * top/maint.mk (refresh-po): Fix sed regexp to avoid problems with
48407         paths like 'lib/po/foo.po'.
48408
48409 2008-11-17  Simon Josefsson  <simon@josefsson.org>
48410
48411         * m4/warnings.m4: Improve code.  Reported by Ralf Wildenhues
48412         <Ralf.Wildenhues@gmx.de> and Paolo Bonzini <bonzini@gnu.org>.
48413
48414 2008-11-17  Simon Josefsson  <simon@josefsson.org>
48415
48416         * m4/warnings.m4: Use CPPFLAGS to really check whether the
48417         parameter works.
48418
48419 2008-11-17  Simon Josefsson  <simon@josefsson.org>
48420
48421         * m4/warnings.m4: Add gl_WARN_COMPLEMENT and gl_WARN_SUPPORTED.
48422
48423 2008-11-17  Bruce Korb  <bkorb@gnu.org>
48424
48425         * modules/parse-duration-tests: New file.
48426         * tests/test-parse-duration.sh: New file.
48427         * tests/test-parse-duration.c: New file.
48428
48429         New module 'parse-duration'.
48430         * lib/parse-duration.h: New file.
48431         * lib/parse-duration.c: New file.
48432         * modules/parse-duration: New file.
48433
48434 2008-11-17  Bruno Haible  <bruno@clisp.org>
48435
48436         * tests/test-select-out.sh: Comment out the first pipe test.
48437         Reported by Simon Josefsson.
48438
48439 2008-11-17  Bruno Haible  <bruno@clisp.org>
48440
48441         * modules/getaddrinfo (Depends-on): Add servent, hostent.
48442         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Use gl_SERVENT and
48443         gl_HOSTENT.
48444
48445 2008-11-17  Bruno Haible  <bruno@clisp.org>
48446
48447         * m4/sockets.m4 (gl_SOCKETS): After trying -lsocket, try also
48448         -lnetwork and -lnet. Needed for Haiku and BeOS.
48449
48450 2008-11-16  Bruno Haible  <bruno@clisp.org>
48451
48452         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix indentation.
48453
48454 2008-11-16  Bruno Haible  <bruno@clisp.org>
48455
48456         Avoid test failure on Haiku.
48457         * tests/test-fsync.c: Include <errno.h>.
48458         (main): Don't require that fsync (0) fails.
48459
48460 2008-11-15  Bruno Haible  <bruno@clisp.org>
48461
48462         New module 'hostent'.
48463         * modules/hostent: New file.
48464         * m4/hostent.m4: New file, based on code in m4/getaddrinfo.m4.
48465
48466 2008-11-15  Bruno Haible  <bruno@clisp.org>
48467
48468         New module 'servent'.
48469         * modules/servent: New file.
48470         * m4/servent.m4: New file, based on code in m4/getaddrinfo.m4.
48471
48472 2008-11-15  Bruno Haible  <bruno@clisp.org>
48473
48474         Avoid generating same test program with two different rules.
48475         * modules/frexp-nolibm-tests (Makefile.am): Rename test program from
48476         test-frexp to test-frexp-nolibm.
48477         * modules/frexpl-nolibm-tests (Makefile.am): Rename test program from
48478         test-frexpl to test-frexpl-nolibm.
48479
48480 2008-11-15  Bruno Haible  <bruno@clisp.org>
48481
48482         * modules/frexpl-tests (Makefile.am): Link test-frexpl with
48483         $(FREXPL_LIBM).
48484
48485 2008-11-15  Bruno Haible  <bruno@clisp.org>
48486
48487         * lib/netdb.in.h: Activate the definitions also when the system's
48488         <netdb.h> has 'struct addrinfo'.
48489         * m4/netdb_h.m4 (gl_HEADER_NETDB): Replace netdb.h also when it lacks
48490         EAI_OVERFLOW or AI_NUMERICSERV.
48491         * doc/posix-headers/netdb.texi: Document the problem.
48492
48493 2008-11-15  Bruno Haible  <bruno@clisp.org>
48494
48495         * tests/test-sched.c: Test also the existence of the SCHED_* macros.
48496
48497         Make the 'sched' module work on platforms where <sched.h> exists but
48498         is incomplete (such as Haiku).
48499         * lib/sched.in.h; Include the system's <sched.h> if it exists.
48500         (SCHED_FIFO, SCHED_RR, SCHED_OTHER): New macros.
48501         * m4/sched_h.m4 (gl_SCHED_H): Test whether <sched.h> exists and also
48502         defines SCHED_FIFO, SCHED_RR, SCHED_OTHER. Set HAVE_SCHED_H,
48503         HAVE_STRUCT_SCHED_PARAM.
48504         * modules/sched (Depends-on): Add include_next.
48505         (Makefile.am): Substitute HAVE_SCHED_H, INCLUDE_NEXT,
48506         PRAGMA_SYSTEM_HEADER, NEXT_SCHED_H, HAVE_STRUCT_SCHED_PARAM.
48507         * doc/posix-headers/sched.texi: Document the issue.
48508
48509 2008-11-13  Jim Meyering  <meyering@redhat.com>
48510
48511         test-argp-2: avoid test failure when PACKAGE_BUGREPORT is defined
48512         * tests/test-argp-2.sh: When PACKAGE_BUGREPORT was defined, this
48513         test would fail due to the difference in the Report bugs to ...
48514         line.  The expected address is empty, "<>", while the actual
48515         would contain e.g., "<bug-tar@gnu.org>".  Filter out any address.
48516
48517 2008-11-12  Bruno Haible  <bruno@clisp.org>
48518
48519         lstat: don't compile lstat.c on systems lacking lstat
48520         * m4/lstat.m4 (gl_FUNC_LSTAT): Don't compile lstat.c on systems
48521         which don't have lstat; this is handled by lib/sys_stat.in.h already.
48522         Reported by Daniel P. Berrange via Jim Meyering.
48523
48524 2008-11-12  Jim Meyering  <meyering@redhat.com>
48525
48526         * lib/unicodeio.c (unicode_to_mb): Correct spelling of u8_uctomb.
48527
48528 2008-11-12  Simon Josefsson  <simon@josefsson.org>
48529
48530         * modules/warnings (configure.ac): Do AC_SUBST([WARN_CFLAGS]) here
48531         instead.
48532
48533 2008-11-12  Bruno Haible  <bruno@clisp.org>
48534
48535         * lib/unicodeio.c: Include unistr.h.
48536         (utf8_wctomb): Remove function.
48537         (unicode_to_mb): Use utf8_uctomb instead of utf8_wctomb.
48538
48539 2008-11-12  Simon Josefsson  <simon@josefsson.org>
48540
48541         * m4/warnings.m4 (gl_WARN_INIT): Remove, suggested by Ralf
48542         Wildenhues <Ralf.Wildenhues@gmx.de> and Bruno Haible
48543         <bruno@clisp.org>.
48544         * modules/warnings (configure.ac): Don't call gl_WARN_INIT.
48545
48546 2008-11-12  Simon Josefsson  <simon@josefsson.org>
48547
48548         * doc/warnings.texi: New file, from Bruno Haible <bruno@clisp.org>.
48549         * doc/gnulib.texi: Add section for warnings.
48550
48551 2008-11-11  Bruno Haible  <bruno@clisp.org>
48552
48553         * lib/sockets.h: Add a comment.
48554
48555 2008-11-11  Karl Berry  <karl@gnu.org>
48556
48557         * config/srclist.txt (fdl.texi): add, syncing from gnustandards.
48558
48559 2008-11-11  Eric Blake  <ebb9@byu.net>
48560
48561         fdl.texi: avoid git symlinks
48562         * doc/fdl.texi: Copy, rather than link, fdl-1.3.texi.
48563
48564 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
48565
48566         * m4/warnings.m4 (gl_WARN_ADD): Don't AC_SUBST the empty string.
48567
48568 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
48569
48570         * m4/warnings.m4 (gl_WARN_INIT): Substitute WARN_CFLAGS.
48571         (gl_WARN_ADD): Substitute $2 if literal.
48572
48573 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
48574
48575         * m4/warning.m4: Remove.
48576
48577 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
48578
48579         * m4/warnings.m4: Almost complete rewrite. :-)
48580
48581 2008-11-10  Simon Josefsson  <simon@josefsson.org>
48582
48583         * modules/warnings: New module.
48584         * m4/warnings.m4: New file.
48585         * MODULES.html.sh: Mention warnings module.
48586         With review improvements from Paolo Bonzini <bonzini@gnu.org> and
48587         Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
48588
48589 2008-11-10  Eric Blake  <ebb9@byu.net>
48590
48591         fdl.texi: make a symlink to the latest version
48592         * doc/standards.texi: Revert today's earlier change.
48593         * doc/fdl-1.2.texi: Rename from old fdl.texi...
48594         * doc/fdl.texi: ...and replace this with a symlink to the newer
48595         fdl-1.3.texi.
48596
48597 2008-11-10  Bruno Haible  <bruno@clisp.org>
48598
48599         * tests/test-select-fd.c (main): Accept the result file name as fourth
48600         argument.
48601         * tests/test-select-in.sh: Pass t-select-in.tmp as fourth argument.
48602         * tests/test-select-out.sh: Pass t-select-out.tmp as fourth argument.
48603
48604 2008-11-10  Bruno Haible  <bruno@clisp.org>
48605
48606         * lib/netdb.in.h: Use HAVE_STRUCT_ADDRINFO, HAVE_DECL_GETADDRINFO,
48607         HAVE_DECL_FREEADDRINFO, HAVE_DECL_GAI_STRERROR, HAVE_DECL_GETNAMEINFO
48608         as autoconf-substituted macros.
48609         * m4/netdb_h.m4 (gl_NETDB_H_DEFAULTS): Initialize these variables to 1.
48610         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Require
48611         gl_NETDB_H_DEFAULTS. Set these variables.
48612         * modules/netdb (Makefile.am): Substitute these variables.
48613
48614 2008-11-10  Eric Blake  <ebb9@byu.net>
48615
48616         standards.texi: include correct file for FDL 1.3
48617         * doc/standards.texi (GNU Free Documentation License): Change
48618         include file to pull in FDL 1.3, not 1.2.
48619
48620         fdl.texi: revert accidental change to license
48621         * doc/fdl.texi: This is FDL 1.2, not 1.3.
48622
48623 2008-11-10  Bruno Haible  <bruno@clisp.org>
48624
48625         * m4/printf.m4 (gl_PRINTF_ENOMEM): Guess yes on Haiku. Use the
48626         cross-compiling guesses also when the native compile gives no result.
48627
48628 2008-11-10  Bruno Haible  <bruno@clisp.org>
48629
48630         * lib/spawni.c (__spawni): Force variable into the stack.
48631
48632 2008-11-10  Bruno Haible  <bruno@clisp.org>
48633
48634         Add support for Haiku.
48635         * lib/fbufmode.c (fbufmode): Test a symbol that is not only defined on
48636         glibc and BeOS, but also on Haiku.
48637         * lib/fpurge.c (fpurge): Likewise.
48638         * lib/freadable.c (freadable): Likewise.
48639         * lib/freadahead.c (freadahead): Likewise.
48640         * lib/freading.c (freading): Likewise.
48641         * lib/freadptr.c (freadptr): Likewise.
48642         * lib/freadseek.c (freadptrinc): Likewise.
48643         * lib/fseeko.c (rpl_fseeko): Likewise.
48644         * lib/fseterr.c (fseterr): Likewise.
48645         * lib/fwritable.c (fwritable): Likewise.
48646         * lib/fwriting.c (fwriting): Likewise.
48647         Reported by Ingo Weinhold <ingo_weinhold@gmx.de>.
48648
48649 2008-11-10  Ingo Weinhold  <ingo_weinhold@gmx.de>
48650
48651         * lib/config.charset: Treat Haiku like BeOS.
48652
48653 2008-11-10  Ingo Weinhold  <ingo_weinhold@gmx.de>
48654
48655         * lib/binary-io.h (O_BINARY, O_TEXT): Treat Haiku like BeOS.
48656         * lib/fcntl.in.h (O_BINARY, O_TEXT): Likewise.
48657
48658 2008-11-08  Bruno Haible  <bruno@clisp.org>
48659
48660         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Avoid using AC_CHECK_DECL inside
48661         AC_CACHE_CHECK.
48662
48663 2008-11-08  Bruno Haible  <bruno@clisp.org>
48664
48665         * modules/select-tests (configure.ac): Check for unistd.h, sys/wait.h.
48666
48667 2008-11-08  Bruno Haible  <bruno@clisp.org>
48668
48669         * tests/test-select-fd.c: New file.
48670         * tests/test-select-in.sh: New file.
48671         * tests/test-select-out.sh: New file.
48672         * tests/test-select-stdin.c: New file.
48673         * modules/select-tests (Files): Add the new files.
48674         (Depends-on): Add gettimeofday.
48675         (Makefile.am): Add test-select-in.sh, test-select-out.sh to TESTS.
48676         Set TESTS_ENVIRONMENT. Add test-select-fd, test-select-stdin to
48677         check_PROGRAMS. Define test_select_fd_LDADD, test_select_stdin_LDADD.
48678
48679 2008-11-06  Alexander V. Lukyanov  <lav@netis.ru>
48680             Bruno Haible  <bruno@clisp.org>
48681
48682         * lib/sys_stat.in.h: Enclose function definitions in extern "C".
48683
48684 2008-10-12  Giuseppe Scrivano  <gscrivano@gnu.org>
48685
48686         * build-aux/pmccabe2html: Added support for C++ source files.
48687
48688 2008-11-05  Ben Pfaff  <blp@gnu.org>
48689
48690         Fix lib/close.c build on Windows.
48691         * modules/close (Files): Add lib/w32sock.h.
48692
48693 2008-11-05  Joel E. Denny  <jdenny@ces.clemson.edu>
48694
48695         Accept Bison's NEWS format.
48696         * build-aux/announce-gen (print_news_deltas): Tweak
48697         $re_prefix.
48698
48699 2008-11-04  Bruno Haible  <bruno@clisp.org>
48700
48701         * modules/random_r (Maintainer): Add glibc.
48702
48703 2008-11-04  Simon Josefsson  <simon@josefsson.org>
48704
48705         * doc/alloca-opt.texi: Change license to GFDLv1.3+, as suggested
48706         by karl@freefriends.org (Karl Berry).
48707         * doc/alloca.texi: Likewise.
48708         * doc/c-ctype.texi: Likewise.
48709         * doc/c-strcase.texi: Likewise.
48710         * doc/c-strcaseeq.texi: Likewise.
48711         * doc/c-strcasestr.texi: Likewise.
48712         * doc/c-strstr.texi: Likewise.
48713         * doc/c-strtod.texi: Likewise.
48714         * doc/c-strtold.texi: Likewise.
48715         * doc/ctime.texi: Likewise.
48716         * doc/error.texi: Likewise.
48717         * doc/fdl.texi: Likewise.
48718         * doc/gcd.texi: Likewise.
48719         * doc/getdate.texi: Likewise.
48720         * doc/gnulib-intro.texi: Likewise.
48721         * doc/gnulib-tool.texi: Likewise.
48722         * doc/gnulib.texi: Likewise.
48723         * doc/inet_ntoa.texi: Likewise.
48724         * doc/maintain.texi: Likewise.
48725         * doc/make-stds.texi: Likewise.
48726         * doc/quote.texi: Likewise.
48727         * doc/regexprops-generic.texi: Likewise.
48728         * doc/standards.texi: Likewise.
48729         * doc/verify.texi: Likewise.
48730         * doc/visibility.texi: Likewise.
48731         * doc/gnulib.texi (GNU Free Documentation License): Include
48732         fdl-1.3.texi instead of fdl.texi.
48733
48734 2008-11-04  Simon Josefsson  <simon@josefsson.org>
48735
48736         * doc/fdl-1.3.texi: New file, from
48737         <http://www.gnu.org/licenses/fdl-1.3.texi>.
48738         * modules/fdl-1.3: Add.
48739         * MODULES.html.sh: Add fdl-1.3.
48740
48741 2008-11-03  Bruno Haible  <bruno@clisp.org>
48742
48743         Make determination of absolute name of header file work with AIX xlc.
48744         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Require
48745         AC_CANONICAL_HOST. On AIX, use "$CPP -C" rather than "$CPP" for
48746         preprocessing.
48747         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
48748         Reported by Gary V. Vaughan <gary@thewrittenword.com>.
48749
48750 2008-11-03  Simon Josefsson  <simon@josefsson.org>
48751
48752         * top/maint.mk (COVERAGE_CCOPTS): Use --coverage instead of
48753         -fprofile-arcs -ftest-coverage.  Suggested by Ludovic Courtès
48754         <ludo@gnu.org>.
48755
48756 2008-11-02  Bruno Haible  <bruno@clisp.org>
48757
48758         Mark 'strpbrk' obsolete.
48759         * modules/strpbrk (Status, Notice): New sections.
48760         * modules/strtok_r (Depends-on): Add strpbrk.
48761
48762 2008-11-02  Bruno Haible  <bruno@clisp.org>
48763
48764         Mark 'strdup' obsolete.
48765         * modules/strdup (Status, Notice): New sections.
48766         * modules/findprog (Depends-on): Add strdup.
48767         * modules/getaddrinfo (Depends-on): Likewise.
48768         * modules/localename (Depends-on): Likewise.
48769         * modules/relocatable-lib (Depends-on): Likewise.
48770         * modules/relocatable-lib-lgpl (Depends-on): Likewise.
48771         * modules/relocatable-prog (Depends-on): Likewise.
48772         * modules/trim (Depends-on): Likewise.
48773         * modules/unictype/gen-ctype (Depends-on): Likewise.
48774         * modules/unilbrk/gen-lbrk (Depends-on): Likewise.
48775
48776 2008-11-02  Bruno Haible  <bruno@clisp.org>
48777
48778         Mark 'strcspn' obsolete.
48779         * modules/strcspn (Status, Notice): New sections.
48780
48781 2008-11-02  Bruno Haible  <bruno@clisp.org>
48782
48783         Mark 'rmdir' obsolete.
48784         * modules/rmdir (Status, Notice): New sections.
48785         * modules/clean-temp (Depends-on): Add rmdir.
48786         * modules/openat (Depends-on): Likewise.
48787
48788 2008-11-02  Bruno Haible  <bruno@clisp.org>
48789
48790         Mark 'raise' obsolete.
48791         * modules/raise (Status, Notice): New sections.
48792         (Include): Specify <signal.h>.
48793         * modules/stdio (Depends-on): Add raise.
48794         * modules/write (Depends-on): Likewise.
48795
48796 2008-11-02  Bruno Haible  <bruno@clisp.org>
48797
48798         Mark 'memset' obsolete.
48799         * modules/memset (Status, Notice): New sections.
48800
48801 2008-11-02  Bruno Haible  <bruno@clisp.org>
48802
48803         Mark 'memmove' obsolete.
48804         * modules/memmove (Status, Notice): New sections.
48805         * modules/argp (Depends-on): Add memmove.
48806         * modules/argz (Depends-on): Likewise.
48807         * modules/canonicalize (Depends-on): Likewise.
48808         * modules/canonicalize-lgpl (Depends-on): Likewise.
48809         * modules/fts (Depends-on): Likewise.
48810         * modules/getcwd (Depends-on): Likewise.
48811         * modules/human (Depends-on): Likewise.
48812         * modules/regex (Depends-on): Likewise.
48813         * modules/striconveh (Depends-on): Likewise.
48814         * modules/trim (Depends-on): Likewise.
48815         * modules/unistr/u8-move (Depends-on): Likewise.
48816         * modules/unistr/u16-move (Depends-on): Likewise.
48817         * modules/unistr/u32-move (Depends-on): Likewise.
48818
48819 2008-11-02  Bruno Haible  <bruno@clisp.org>
48820
48821         Mark 'memcpy' obsolete.
48822         * modules/memcpy (Status, Notice): New sections.
48823
48824 2008-11-02  Bruno Haible  <bruno@clisp.org>
48825
48826         Mark 'memcmp' obsolete.
48827         * modules/memcmp (Status, Notice): New sections.
48828         * modules/argmatch (Depends-on): Add memchr.
48829         * modules/backupfile (Depends-on): Likewise.
48830         * modules/c-strcasestr (Depends-on): Likewise.
48831         * modules/crypto/des (Depends-on): Likewise.
48832         * modules/csharpcomp (Depends-on): Likewise.
48833         * modules/fnmatch (Depends-on): Likewise.
48834         * modules/git-merge-changelog (Depends-on): Likewise.
48835         * modules/isnand (Depends-on): Likewise.
48836         * modules/isnand-nolibm (Depends-on): Likewise.
48837         * modules/isnanf (Depends-on): Likewise.
48838         * modules/isnanf-nolibm (Depends-on): Likewise.
48839         * modules/isnanl (Depends-on): Likewise.
48840         * modules/isnanl-nolibm (Depends-on): Likewise.
48841         * modules/mbchar (Depends-on): Likewise.
48842         * modules/memcoll (Depends-on): Likewise.
48843         * modules/quotearg (Depends-on): Likewise.
48844         * modules/regex (Depends-on): Likewise.
48845         * modules/relocatable-prog (Depends-on): Likewise.
48846         * modules/same (Depends-on): Likewise.
48847         * modules/signbit (Depends-on): Likewise.
48848         * modules/strcasestr-simple (Depends-on): Likewise.
48849         * modules/unictype/gen-ctype (Depends-on): Likewise.
48850         * modules/unilbrk/gen-lbrk (Depends-on): Likewise.
48851         * modules/uniname/uniname (Depends-on): Likewise.
48852         * modules/unistr/u8-cmp (Depends-on): Likewise.
48853
48854 2008-11-02  Bruno Haible  <bruno@clisp.org>
48855
48856         Mark 'memchr' obsolete.
48857         * modules/memchr (Status, Notice): New sections.
48858         * modules/argp (Depends-on): Add memchr.
48859         * modules/base64 (Depends-on): Likewise.
48860         * modules/c-strcasestr (Depends-on): Likewise.
48861         * modules/chdir-long (Depends-on): Likewise.
48862         * modules/fnmatch (Depends-on): Likewise.
48863         * modules/getsubopt (Depends-on): Likewise.
48864         * modules/git-merge-changelog (Depends-on): Likewise.
48865         * modules/glob (Depends-on): Likewise.
48866         * modules/strcasestr-simple (Depends-on): Likewise.
48867         * modules/strnlen (Depends-on): Likewise.
48868
48869 2008-11-02  Bruno Haible  <bruno@clisp.org>
48870
48871         Mark 'atexit' obsolete.
48872         * modules/atexit (Status, Notice): New sections.
48873         * modules/chdir-long (Depends-on): Add atexit.
48874         * modules/wait-process (Depends-on): Likewise.
48875
48876 2008-11-02  Bruno Haible  <bruno@clisp.org>
48877
48878         * gnulib-tool: New option --with-obsolete.
48879         (func_usage): Document it.
48880         (func_modules_transitive_closure): Drop obsolete dependencies if
48881         incobsolete is not true.
48882         (func_import): Read and save the incobsolete variable to the cache.
48883
48884 2008-11-02  Bruno Haible  <bruno@clisp.org>
48885
48886         * modules/TEMPLATE-EXTENDED: New field 'Status'.
48887         * gnulib-tool: New option --extract-status.
48888         (func_usage): Document it.
48889         (sed_extract_prog): Recognize it.
48890         (func_get_status): New function.
48891
48892 2008-10-30  Simon Josefsson  <simon@josefsson.org>
48893
48894         * modules/sockets (License): Change from LGPL to LGPLv2+.
48895
48896 2008-10-28  Simon Josefsson  <simon@josefsson.org>
48897
48898         * top/maint.mk: Add coverage rules, inspired by scripts in gnupdf.
48899
48900 2008-10-28  Simon Josefsson  <simon@josefsson.org>
48901
48902         * MODULES.html.sh (Support for systems lacking POSIX:2001):
48903         Mention times and sys_times.
48904         * modules/sys_times, modules/sys_times-tests: New modules.
48905         * modules/times, modules/times-tests: Likewise
48906         * m4/sys_times_h.m4: New file.
48907         * lib/sys_times.in.h: Likewise
48908         * lib/times.c: Likewise.
48909         * tests/test-sys_times.c: Likewise.
48910         * tests/test-times.c: Likewise.
48911         * doc/posix-headers/sys_times.texi: Update.
48912         * doc/posix-functions/times.texi: Update.
48913
48914 2008-10-28  Jim Meyering  <meyering@redhat.com>
48915
48916         * modules/tempname (Depends-on): Add lstat.
48917
48918         * modules/lstat (License): Relicense: LGPL -> LGPLv2+.
48919
48920 2008-10-28  Simon Josefsson  <simon@josefsson.org>
48921
48922         * gnulib-tool (func_emit_tests_Makefile_am): Revert last commit.
48923         * modules/argp-tests (test_argp_LDADD): Set EXEEXT here instead,
48924         using idiom used elsewhere in gnulib.
48925
48926 2008-10-27  Jim Meyering  <meyering@redhat.com>
48927
48928         * modules/gethostname (License): Relicense: LGPL -> LGPLv2+.
48929
48930 2008-10-27  Simon Josefsson  <simon@josefsson.org>
48931
48932         * gnulib-tool (func_emit_tests_Makefile_am): Set EXEEXT in
48933         TESTS_ENVIRONMENT, for shell scripts that needs to call built
48934         programs.
48935         * tests/test-argp-2.sh: Use $EXEEXT when needed.
48936
48937 2008-10-27  Simon Josefsson  <simon@josefsson.org>
48938
48939         * lib/sys_stat.in.h (lstat): Fix declaration for mingw.
48940
48941 2008-10-27  Bruno Haible  <bruno@clisp.org>
48942
48943         * tests/test-lstat.c: Include <stdio.h>.
48944
48945 2008-10-27  Simon Josefsson  <simon@josefsson.org>
48946
48947         * modules/lstat-tests: New module.
48948         * tests/test-lstat.c: New file.
48949
48950 2008-10-26  Jim Meyering  <meyering@redhat.com>
48951
48952         * lib/mkdir.c (rpl_mkdir) [_WIN32...]: Mark mode as an unused parameter.
48953
48954 2008-10-26  Simon Josefsson  <simon@josefsson.org>
48955             Bruno Haible  <bruno@clisp.org>
48956
48957         Fix a clash between the type DATADIR on Windows and the macro DATADIR.
48958         * modules/configmake (Include): Add a note that the include must come
48959         after all system headers.
48960         * lib/javaversion.c: Include configmake.h after all other includes.
48961
48962 2008-10-26  Bruno Haible  <bruno@clisp.org>
48963
48964         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Set default of
48965         HAVE_STRUCT_RANDOM_DATA to 1.
48966         (gl_STDLIB_H): Simplify.
48967
48968 2008-10-26  Simon Josefsson  <simon@josefsson.org>
48969
48970         * m4/stdlib_h.m4: Check for struct random_data.  Initialize and
48971         substitute HAVE_STRUCT_RANDOM_DATA.
48972         * lib/stdlib.in.h [!HAVE_STRUCT_RANDOM_DATA]: Provide struct
48973         random_data.
48974         * modules/stdlib (Makefile.am): Substitute
48975         HAVE_STRUCT_RANDOM_DATA.
48976
48977 2008-10-26  Simon Josefsson  <simon@josefsson.org>
48978
48979         * doc/gnulib.texi (@copying): Use GFDLv1.2+.
48980         * doc/gnulib-intro.texi (Copyright): Likewise.
48981
48982 2008-10-26  Simon Josefsson  <simon@josefsson.org>
48983
48984         * doc/gnulib.texi (Header files): C++ fixes, based on Bruno's
48985         findings.
48986
48987 2008-10-25  Ben Pfaff  <blp@cs.stanford.edu>
48988             Bruno Haible  <bruno@clisp.org>
48989
48990         * lib/unistd.in.h: Include <winsock2.h>.
48991         (socket, connect,accept, bind, getpeername, getsockname, getsockopt,
48992         listen, recv, send, recvfrom, sendto, setsockopt, shutdown, select):
48993         Provide dummy declarations.
48994         (gethostname): Override.
48995         * lib/sys_socket.in.h (gethostname): Provide dummy declaration.
48996         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Invoke
48997         gl_PREREQ_SYS_H_WINSOCK2.
48998         * modules/gethostname (Files): Add m4/sys_socket_h.m4.
48999         * doc/posix-functions/gethostname.texi: More details.
49000
49001 2008-10-25  Bruno Haible  <bruno@clisp.org>
49002
49003         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Require
49004         gl_UNISTD_H_DEFAULTS, gl_SYS_IOCTL_H_DEFAULTS only if they exist.
49005         * modules/sys_socket (Files): Remove m4/unistd_h.m4, m4/sys_ioctl_h.m4.
49006
49007         * lib/sys_socket.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET); Move macro from
49008         here ...
49009         * lib/unistd.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET); ... to here.
49010         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Remove invocation of
49011         gl_UNISTD_H_DEFAULTS.
49012
49013 2008-10-25  Eric Blake  <ebb9@byu.net>
49014
49015         signbit: avoid spurious compiler failure
49016         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Move non-constant
49017         declarations inside function.
49018
49019 2008-10-24  Simon Josefsson  <simon@josefsson.org>
49020             Bruno Haible  <bruno@clisp.org>
49021
49022         * lib/stdlib.in.h (@GNULIB_RANDOM_R@): Include stdint.h.
49023         * modules/random_r (Depends-on): Add stdint.
49024
49025 2008-10-24  Bruno Haible  <bruno@clisp.org>
49026
49027         * modules/intprops (License): Change to LGPLv2+, with approval by Paul
49028         Eggert.
49029         * modules/strerror (License): Likewise.
49030
49031 2008-10-24  Jim Meyering  <meyering@redhat.com>
49032
49033         sys_socket: fix typo that inhibited expansion of @GNULIB_SEND@
49034         * modules/sys_socket (Depends-on) [Depends-on]: Fix typo.
49035
49036 2008-10-24  Eric Blake  <ebb9@byu.net>
49037
49038         getgroups: fix compilation when getgroups is available
49039         * lib/getgroups.c (includes): Include <unistd.h> for getgroups,
49040         but with <config.h> override of getgroups disabled.
49041
49042 2008-10-24  Simon Josefsson  <simon@josefsson.org>
49043
49044         * doc/gnulib.texi (Header files): Add note about C++ problems.
49045         Explained by Bruno Haible <bruno@clisp.org>.
49046
49047 2008-10-23  Bruno Haible  <bruno@clisp.org>
49048
49049         Define a dummy SA_NODEFER macro on Interix.
49050         * lib/signal.in.h (SA_NODEFER): Define fallback.
49051         Reported by Aleksey Cheusov <cheusov@tut.by> via
49052         Thomas Klausner <wiz@netbsd.org> and Eric Blake.
49053
49054 2008-10-23  Bruno Haible  <bruno@clisp.org>
49055
49056         * modules/freadahead (License): Change to LGPLv2+.
49057         Suggested by Simon Josefsson.
49058
49059 2008-10-23  Jim Meyering  <meyering@redhat.com>
49060
49061         random_r: new module
49062         * modules/random_r: New file.
49063         * m4/random_r.m4: New file.
49064         * lib/random_r.c: New file, from glibc.
49065         * modules/random_r-tests: New file.
49066         * tests/test-random_r.c: New file.
49067         * lib/stdlib.in.h (srandom_r, initstate_r, setstate_r, random_r):
49068          Declare.
49069         (RAND_MAX): Define.
49070         * m4/stdlib_h.m4: Define and AC_SUBST GNULIB_RANDOM_R and HAVE_RANDOM_R.
49071         * modules/stdlib: Substitute them, too.
49072         * MODULES.html.sh (Extra functions based on POSIX:2001) [Misc]: Add it.
49073         * doc/glibc-functions/initstate_r.texi: Mention the new module.
49074         * doc/glibc-functions/random_r.texi: Likewise.
49075         * doc/glibc-functions/setstate_r.texi: Likewise.
49076         * doc/glibc-functions/srandom_r.texi: Likewise.
49077         * config/srclist.txt: Mention it.
49078
49079 2008-10-23  David Lutterkort  <lutter@redhat.com>
49080
49081         * modules/selinux-h: Search for LIB_SELINUX and mark it as a
49082         link requirement
49083
49084 2008-10-23  Jim Meyering  <meyering@redhat.com>
49085
49086         selinux-h: mark parameters of stub functions as intentionally unused
49087         * lib/se-selinux.in.h: Mark parameters as _UNUSED_PARAMETER_.
49088         * lib/se-context.in.h: Likewise.
49089
49090 2008-10-22  Simon Josefsson  <simon@josefsson.org>
49091
49092         * lib/sys_socket.in.h (FD_ISSET): Fix warnings under mingw.
49093
49094 2008-10-22  Simon Josefsson  <simon@josefsson.org>
49095
49096         * m4/getgroups.m4: Avoid invoking test with wrong parameters.
49097
49098 2008-10-22  Eric Blake  <ebb9@byu.net>
49099
49100         glthread/thread: avoid compiler warning
49101         * lib/glthread/thread.c (gl_thread_exit_func) [USE_WIN32_THREADS]:
49102         Add unreachable abort to silence compiler.
49103
49104 2008-10-22  Eric Blake  <ebb9@byu.net>
49105
49106         netdb: also supply struct addrinfo for cygwin 1.5.x
49107         * m4/netdb_h.m4 (gl_HEADER_NETDB): Check for incomplete header on
49108         older cygwin.
49109         * lib/netdb.in.h [!HAVE_STRUCT_ADDRINFO]: Also supply contents for
49110         cygwin.
49111         * doc/posix-headers/netdb.texi (netdb.h): Document this.
49112
49113 2008-10-22  Bruno Haible  <bruno@clisp.org>
49114
49115         * users.txt: Update entry about pspp.
49116
49117 2008-10-21  Bruno Haible  <bruno@clisp.org>
49118
49119         Simplification.
49120         * lib/sys_socket.in.h (_gl_close_fd_maybe_socket): Remove declaration.
49121         * lib/close.c (_gl_close_fd_maybe_socket): Make static.
49122
49123         Simplification.
49124         * lib/ioctl.c (ioctl): Don't undefine.
49125         * lib/socket.c (socket): Don't undefine.
49126
49127         Remove unused module indicator macros.
49128         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Don't define
49129         GNULIB_$1 as a C macro.
49130
49131         * doc/posix-functions/close.texi: Undo last change.
49132         * doc/posix-functions/ioctl.texi: Merge the two paragraphs about
49133         Windows platforms.
49134
49135 2008-10-21  Bruno Haible  <bruno@clisp.org>
49136
49137         Add gethostname() declaration to <unistd.h>.
49138         * lib/unistd.in.h (gethostname): New declaration.
49139         * lib/gethostname.c: Include <unistd.h>.
49140         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Require
49141         gl_UNISTD_H_DEFAULTS. Set HAVE_GETHOSTNAME.
49142         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETHOSTNAME
49143         and HAVE_GETHOSTNAME.
49144         * modules/gethostname (Depends-on): Add unistd.
49145         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
49146         (Include): Specify <unistd.h>.
49147         * modules/unistd (Makefile.am): Substitute GNULIB_GETHOSTNAME and
49148         HAVE_GETHOSTNAME.
49149         * tests/test-gethostname.c: Include <unistd.h> first.
49150
49151 2008-10-21  Bruno Haible  <bruno@clisp.org>
49152
49153         * modules/poll-tests (Depends-on): Add sys_ioctl, ioctl.
49154         * modules/select-tests (Depends-on): Likewise.
49155         Reported by Simon Josefsson.
49156
49157 2008-10-21  Simon Josefsson  <simon@josefsson.org>
49158
49159         * lib/close.c: Add _gl_close_fd_maybe_socket from winsock.c.
49160         * lib/accept.c: New file, based on winsock.c.
49161         * lib/bind.c: New file, based on winsock.c.
49162         * lib/connect.c: New file, based on winsock.c.
49163         * lib/getpeername.c: New file, based on winsock.c.
49164         * lib/getsockname.c: New file, based on winsock.c.
49165         * lib/getsockopt.c: New file, based on winsock.c.
49166         * lib/ioctl.c: New file, based on winsock.c.
49167         * lib/listen.c: New file, based on winsock.c.
49168         * lib/recv.c: New file, based on winsock.c.
49169         * lib/recvfrom.c: New file, based on winsock.c.
49170         * lib/send.c: New file, based on winsock.c.
49171         * lib/sendto.c: New file, based on winsock.c.
49172         * lib/setsockopt.c: New file, based on winsock.c.
49173         * lib/shutdown.c: New file, based on winsock.c.
49174         * lib/socket.c: New file, based on winsock.c.
49175         * lib/w32sock.h: New file, based on winsock.c.
49176         * lib/winsock.c: Remove file.
49177         * modules/accept: Likewise.
49178         * modules/bind: Likewise.
49179         * modules/connect: Likewise.
49180         * modules/getpeername: Likewise.
49181         * modules/getsockname: Likewise.
49182         * modules/getsockopt: Likewise.
49183         * modules/ioctl: Likewise.
49184         * modules/listen: Likewise.
49185         * modules/recv: Likewise.
49186         * modules/recvfrom: Likewise.
49187         * modules/send: Likewise.
49188         * modules/sendto: Likewise.
49189         * modules/setsockopt: Likewise.
49190         * modules/shutdown: Likewise.
49191         * modules/socket: Use socket.c instead of winsock.c.
49192         * modules/sys_socket: Remove (unneeded?) dependency on winsock.c.
49193         * doc/posix-functions/accept.texi: Doc fix.
49194         * doc/posix-functions/bind.texi: Doc fix.
49195         * doc/posix-functions/close.texi: Doc fix.
49196         * doc/posix-functions/connect.texi: Doc fix.
49197         * doc/posix-functions/getpeername.texi: Doc fix.
49198         * doc/posix-functions/getsockname.texi: Doc fix.
49199         * doc/posix-functions/getsockopt.texi: Doc fix.
49200         * doc/posix-functions/ioctl.texi: Doc fix.
49201         * doc/posix-functions/listen.texi: Doc fix.
49202         * doc/posix-functions/recv.texi: Doc fix.
49203         * doc/posix-functions/recvfrom.texi: Doc fix.
49204         * doc/posix-functions/send.texi: Doc fix.
49205         * doc/posix-functions/sendto.texi: Doc fix.
49206         * doc/posix-functions/setsockopt.texi: Doc fix.
49207         * doc/posix-functions/shutdown.texi: Doc fix.
49208         * doc/posix-functions/socket.texi: Doc fix.
49209
49210 2008-10-20  Bruno Haible  <bruno@clisp.org>
49211
49212         Take into account the role of SIGABRT_COMPAT on Windows 2008.
49213         * lib/sigprocmask.c (SIGABRT_COMPAT, SIGABRT_COMPAT_MASK): New macros.
49214         (sigismember, sigaddset, sigdelset, sigfillset, rpl_signal): Handle it
49215         as an alias for SIGABRT.
49216         * lib/sigaction.c (SIGABRT_COMPAT): New macro.
49217         (sigaction): Map it to SIGABRT.
49218         Reported by Ramiro Polla <ramiro.polla@gmail.com> via Eric Blake.
49219
49220 2008-10-20  Bruno Haible  <bruno@clisp.org>
49221
49222         * lib/fts.c: Don't include lstat.h.
49223         * lib/openat.c: Include <sys/stat.h> instead of lstat.h.
49224
49225         Move the lstat() declaration to <sys/stat.h>.
49226         * lib/lstat.h: Remove file.
49227         * lib/sys_stat.in.h: Add special invocation convention.
49228         (lstat): New declaration.
49229         * lib/lstat.c (orig_lstat): New function.
49230         (rpl_lstat): Use orig_lstat instead of lstat.
49231         * m4/lstat.m4 (gl_FUNC_LSTAT): Require gl_SYS_STAT_H_DEFAULTS and
49232         AC_C_INLINE. Set REPLACE_LSTAT.
49233         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_LSTAT
49234         and REPLACE_LSTAT.
49235         * modules/lstat (Files): Remove lib/lstat.h.
49236         (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR.
49237         (Include): Specify <sys/stat.h> instead of lstat.h.
49238         * modules/sys_stat (Makefile.am): Substitute GNULIB_LSTAT and
49239         REPLACE_LSTAT.
49240         * NEWS: Mention the change.
49241
49242 2008-10-20  Bruno Haible  <bruno@clisp.org>
49243
49244         * modules/posix_spawn-tests: New file.
49245         * tests/test-posix_spawn3.c: New file.
49246
49247 2008-10-20  Bruno Haible  <bruno@clisp.org>
49248
49249         * modules/posix_spawnp-tests (Depends-on): Add sys_wait.
49250         * tests/test-posix_spawn1.c (WTERMSIG, WCOREDUMP, WEXITSTATUS,
49251         WIFSIGNALED, WIFEXITED, WIFSTOPPED): Remove fallback definitions.
49252         * tests/test-posix_spawn2.c (WTERMSIG, WCOREDUMP, WEXITSTATUS,
49253         WIFSIGNALED, WIFEXITED, WIFSTOPPED): Likewise.
49254
49255 2008-10-20  Bruno Haible  <bruno@clisp.org>
49256
49257         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Test against another bug
49258         of posix_spawn on AIX 5.3.
49259
49260 2008-10-20  Bruno Haible  <bruno@clisp.org>
49261
49262         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Make the check on MacOS X.
49263
49264 2008-10-20  Bruno Haible  <bruno@clisp.org>
49265
49266         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Use AC_LANG_SOURCE instead
49267         of AC_LANG_PROGRAM.
49268
49269 2008-10-20  Simon Josefsson  <simon@josefsson.org>
49270
49271         * lib/netdb.in.h: Don't define GNU specific constants until they
49272         are supported or needed.  Reported by Bruno Haible
49273         <bruno@clisp.org>.
49274
49275 2008-10-20  Simon Josefsson  <simon@josefsson.org>
49276
49277         * lib/canon-host.c: Include netdb.h instead of getaddrinfo.h.
49278
49279 2008-10-20  Simon Josefsson  <simon@josefsson.org>
49280
49281         * lib/getaddrinfo.h: Remove file.
49282         * modules/getaddrinfo: Reflect move from getaddrinfo.h to netdb.h.
49283         * m4/getaddrinfo.m4: Call gl_HEADER_NETDB.  Don't check for netdb.h.
49284         * lib/netdb.in.h: Add declarations from getaddrinfo.h.
49285         * m4/netdb_h.m4: Initialize GNULIB_GETADDRINFO to 0.
49286         * modules/netdb: Substitute GNULIB_GETADDRINFO.
49287         * lib/getaddrinfo.c: Include netdb.h instead of getaddrinfo.h.
49288         * tests/test-getaddrinfo.c: Likewise.
49289         * lib/gai_strerror.c: Likewise.  Also drop HAVE_NETDB_H check.
49290         * NEWS: Mention change.
49291
49292 2008-10-19  Bruno Haible  <bruno@clisp.org>
49293
49294         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Remove unneeded code.
49295
49296 2008-10-19  Bruno Haible  <bruno@clisp.org>
49297
49298         * lib/wait-process.c: Include simply <sys/wait.h>.
49299         (waitpid, WTERMSIG, WCOREDUMP, WEXITSTATUS, WIFSIGNALED, WIFEXITED,
49300         WIFSTOPPED): Remove fallback definitions.
49301         * modules/wait-process (Depends-on): Add sys_wait.
49302
49303         New module 'sys_wait'.
49304         * modules/sys_wait: New file.
49305         * lib/sys_wait.in.h: New file, partially copied from
49306         lib/wait-process.c.
49307         * m4/sys_wait_h.m4: New file.
49308         * doc/posix-headers/sys_wait.texi: Mention the new module.
49309
49310 2008-10-19  Bruno Haible  <bruno@clisp.org>
49311
49312         * m4/wait-process.m4 (gl_WAIT_PROCESS): Remove test for unistd.h.
49313
49314 2008-10-19  Bruno Haible  <bruno@clisp.org>
49315
49316         Assume that waitpid() fills an 'int' status, not a 'union wait'.
49317         * lib/wait-process.c (WAIT_T): Remove type.
49318         (WTERMSIG, WCOREDUMP, WEXITSTATUS): Define fallbacks using bit masks.
49319         (wait_subprocess): Update.
49320
49321 2008-10-19  Bruno Haible  <bruno@clisp.org>
49322
49323         New module 'atoll'.
49324         * modules/atoll: New file.
49325         * lib/stdlib.in.h (atoll): New declaration.
49326         * lib/atoll.c: New file, from glibc with modifications.
49327         * m4/atoll.m4: New file.
49328         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_ATOLL,
49329         HAVE_ATOLL.
49330         * modules/stdlib (Makefile.am): Substitute GNULIB_ATOLL, HAVE_ATOLL.
49331         * doc/posix-functions/atoll.texi: Mention the new module.
49332
49333 2008-10-19  Bruno Haible  <bruno@clisp.org>
49334
49335         Add strtoull() declaration to <stdlib.h>.
49336         * lib/stdlib.in.h (strtoull): New declaration.
49337         * m4/strtoull.m4 (gl_FUNC_STRTOLL): Require gl_STDLIB_H_DEFAULTS.
49338         Set HAVE_STRTOULL.
49339         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_STRTOULL,
49340         HAVE_STRTOULL.
49341         * modules/strtoull (Depends-on): Add stdlib.
49342         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
49343         * modules/stdlib (Makefile.am): Substitute GNULIB_STRTOULL,
49344         HAVE_STRTOULL.
49345
49346 2008-10-19  Bruno Haible  <bruno@clisp.org>
49347
49348         Add strtoll() declaration to <stdlib.h>.
49349         * lib/stdlib.in.h (strtoll): New declaration.
49350         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Require gl_STDLIB_H_DEFAULTS.
49351         Set HAVE_STRTOLL.
49352         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_STRTOLL,
49353         HAVE_STRTOLL.
49354         * modules/strtoll (Depends-on): Add stdlib.
49355         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
49356         * modules/stdlib (Makefile.am): Substitute GNULIB_STRTOLL, HAVE_STRTOLL.
49357
49358 2008-10-19  Bruno Haible  <bruno@clisp.org>
49359
49360         * modules/bcopy (Depends-on): Add strings.
49361         (Include): Specify <strings.h>.
49362
49363 2008-10-19  Bruno Haible  <bruno@clisp.org>
49364
49365         * doc/posix-functions/atexit.texi: Update doc regarding mingw.
49366
49367 2008-10-19  Bruno Haible  <bruno@clisp.org>
49368
49369         * lib/openat-die.c (openat_save_fail, openat_restore_fail): Rename
49370         the parameter from 'errno' to 'errnum'. Fixes a compilation error on
49371         mingw.
49372
49373 2008-10-19  Bruno Haible  <bruno@clisp.org>
49374
49375         * lib/atanl.c: Don't include isnanl.h.
49376         * lib/cosl.c: Likewise.
49377         * lib/ldexpl.c: Likewise.
49378         * lib/logl.c: Likewise.
49379         * lib/sinl.c: Likewise.
49380         * lib/sqrtl.c: Likewise.
49381         * lib/tanl.c: Likewise.
49382
49383         Move the isnanf(), isnand(), isnanl() declarations to <math.h>.
49384         * lib/isnanf.h: Remove file.
49385         * lib/isnand.h: Remove file.
49386         * lib/isnanl.h: Remove file.
49387         * lib/math.in.h: Include the contents of lib/isnanf.h, lib/isnand.h,
49388         lib/isnanl.h. Use HAVE_ISNANF, HAVE_ISNAND, HAVE_ISNANL as substituted
49389         macros.
49390         * m4/isnanf.m4 (gl_FUNC_ISNANF): Require gl_MATH_H_DEFAULTS. Set
49391         HAVE_ISNANF, don't define it as a C macro.
49392         * m4/isnand.m4 (gl_FUNC_ISNAND): Require gl_MATH_H_DEFAULTS. Set
49393         HAVE_ISNAND, don't define it as a C macro.
49394         * m4/isnanl.m4 (gl_FUNC_ISNANL): Require gl_MATH_H_DEFAULTS. Set
49395         HAVE_ISNANL, don't define it as a C macro.
49396         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_ISNAN[FDL] and
49397         HAVE_ISNAN[FDL].
49398         * modules/isnanf (Files): Remove lib/isnanf.h.
49399         (Depends-on): Add math.
49400         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
49401         (Include): Specify <math.h> instead of isnanf.h.
49402         * modules/isnand (Files): Remove lib/isnand.h.
49403         (Depends-on): Add math.
49404         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
49405         (Include): Specify <math.h> instead of isnand.h.
49406         * modules/isnanl (Files): Remove lib/isnanl.h.
49407         (Depends-on): Add math.
49408         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
49409         (Include): Specify <math.h> instead of isnanl.h.
49410         * modules/math (Makefile.am): Substitute GNULIB_ISNAN[FDL] and
49411         HAVE_ISNAN[FDL].
49412         * tests/test-isnanf.c: Include <math.h> instead of isnanf.h.
49413         * tests/test-isnand.c: Include <math.h> instead of isnand.h.
49414         * tests/test-isnanl.c: Include <math.h> instead of isnanl.h.
49415         * NEWS: Mention the change.
49416
49417 2008-10-18  Bruno Haible  <bruno@clisp.org>
49418
49419         Add getusershell(), setusershell(), endusershell() declarations to
49420         <unistd.h>.
49421         * lib/unistd.in.h (getusershell, setusershell, endusershell): New
49422         declarations.
49423         * lib/getusershell.c: Include unistd.h.
49424         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): Require
49425         gl_UNISTD_H_DEFAULTS and AC_USE_SYSTEM_EXTENSIONS. Set
49426         HAVE_GETUSERSHELL.
49427         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETUSERSHELL
49428         and HAVE_GETUSERSHELL.
49429         * modules/getusershell (Depends-on): Add unistd, extensions.
49430         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
49431         (Include): Specify <unistd.h>.
49432         * modules/unistd (Makefile.am): Substitute GNULIB_GETUSERSHELL and
49433         HAVE_GETUSERSHELL.
49434
49435 2008-10-18  Bruno Haible  <bruno@clisp.org>
49436
49437         Add a getloadavg() declaration to <stdlib.h>.
49438         * lib/stdlib.in.h; Include <sys/loadavg.h> when needed for the
49439         getloadavg declaration.
49440         (getloadavg): New declaration.
49441         * lib/getloadavg.c: Include <stdlib.h> first.
49442         * m4/getloadavg.m4 (gl_GETLOADAVG): Require gl_STDLIB_H_DEFAULTS and
49443         AC_USE_SYSTEM_EXTENSIONS. Test whether sys/loadavg.h exists. Set
49444         HAVE_SYS_LOADAVG_H and HAVE_DECL_GETLOADAVG.
49445         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_GETLOADAVG,
49446         HAVE_SYS_LOADAVG_H, HAVE_DECL_GETLOADAVG.
49447         * modules/getloadavg (Depends-on): Add stdlib, extensions.
49448         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
49449         (Include): Specify <stdlib.h>.
49450         * modules/stdlib (Makefile.am): Substitute GNULIB_GETLOADAVG,
49451         HAVE_SYS_LOADAVG_H, HAVE_DECL_GETLOADAVG.
49452
49453 2008-10-18  Bruno Haible  <bruno@clisp.org>
49454
49455         * lib/dirchownmod.c: Don't include lchmod.h.
49456
49457         Move the lchmod() declaration to <sys/stat.h>.
49458         * lib/lchmod.h: Remove file.
49459         * lib/sys_stat.in.h: Add placeholder for GL_LINK_WARNING.
49460         (lchmod): New declaration, moved here from lib/lchown.h.
49461         * m4/lchmod.m4 (gl_FUNC_LCHMOD): Require gl_SYS_STAT_H_DEFAULTS and
49462         AC_USE_SYSTEM_EXTENSIONS. Set HAVE_LCHMOD.
49463         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_LCHMOD
49464         and HAVE_LCHMOD.
49465         * modules/lchmod (Files): Remove lib/lchmod.h.
49466         (Depends-on): Add sys_stat, extensions.
49467         (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR.
49468         (Include): Specify <sys/stat.h> instead of lchmod.h.
49469         * modules/sys_stat (Depends-on): Add link-warning.
49470         (Makefile.am): Substitute GNULIB_LCHMOD, HAVE_LCHMOD, and the
49471         definition of GL_LINK_WARNING.
49472         * NEWS: Mention the change.
49473
49474 2008-10-18  Bruno Haible  <bruno@clisp.org>
49475
49476         * lib/fchdir.c: Don't include dirfd.h.
49477         * lib/fts.c: Likewise.
49478         * lib/getcwd.c: Likewise.
49479         * lib/glob.c: Likewise.
49480
49481         Move the dirfd() declaration to <dirent.h>.
49482         * lib/dirfd.h: Remove file.
49483         * lib/dirent.in.h: Add placeholder for GL_LINK_WARNING.
49484         (dirfd): New declaration.
49485         * lib/dirfd.c: Include <dirent.h> instead of dirfd.h.
49486         * m4/dirfd.m4 (gl_FUNC_DIRFD): Require gl_DIRENT_H_DEFAULTS and
49487         AC_USE_SYSTEM_EXTENSIONS. Invoke gl_REPLACE_DIRENT_H. Set
49488         HAVE_DECL_DIRFD.
49489         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_DIRFD and
49490         HAVE_DECL_DIRFD.
49491         * modules/dirfd (Files): Remove lib/dirfd.h.
49492         (Depends-on): Add dirent, extensions.
49493         (configure.ac): Invoke gl_DIRENT_MODULE_INDICATOR.
49494         (Include): Specify <dirent.h> instead of dirfd.h.
49495         * modules/dirent (Depends-on): Add link-warning.
49496         (Makefile.am): Substitute GNULIB_DIRFD, HAVE_DECL_DIRFD, and
49497         definition of GL_LINK_WARNING.
49498         * NEWS: Mention the change.
49499
49500 2008-10-18  Bruno Haible  <bruno@clisp.org>
49501
49502         Move the euidaccess() declaration to <unistd.h>.
49503         * lib/euidaccess.h: Remove file.
49504         * lib/unistd.in.h (euidaccess): New declaration.
49505         * lib/euidaccess.c: Don't include euidaccess.h.
49506         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Require gl_UNISTD_H_DEFAULTS.
49507         Don't check whether euidaccess is declared. Set HAVE_EUIDACCESS.
49508         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_EUIDACCESS
49509         and HAVE_EUIDACCESS.
49510         * modules/euidaccess (Files): Remove lib/euidaccess.h.
49511         (Depends-on): Add unistd.
49512         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
49513         (Include): Specify <unistd.h> instead of euidaccess.h.
49514         * modules/unistd (Makefile.am): Substitute GNULIB_EUIDACCESS and
49515         HAVE_EUIDACCESS.
49516         * NEWS: Mention the change.
49517
49518 2008-10-18  Bruno Haible  <bruno@clisp.org>
49519
49520         * lib/xgetdomainname.c: Include <unistd.h> instead of getdomainname.h.
49521
49522         Move the getdomainname() declaration to <unistd.h>.
49523         * lib/getdomainname.h: Remove file.
49524         * lib/unistd.in.h (getdomainname): New declaration.
49525         * lib/getdomainname.c: Include <unistd.h> instead of getdomainname.h.
49526         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Require
49527         gl_UNISTD_H_DEFAULTS and AC_USE_SYSTEM_EXTENSIONS. Set
49528         HAVE_GETDOMAINNAME.
49529         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
49530         GNULIB_GETDOMAINNAME and HAVE_GETDOMAINNAME.
49531         * modules/getdomainname (Files): Remove lib/getdomainname.h.
49532         (Depends-on): Add unistd, extensions.
49533         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
49534         (Includes): Specify <unistd.h> instead of getdomainname.h.
49535         * modules/unistd (Makefile.am): Substitute GNULIB_GETDOMAINNAME and
49536         HAVE_GETDOMAINNAME.
49537         * NEWS: Mention the change.
49538
49539 2008-10-18  Bruno Haible  <bruno@clisp.org>
49540
49541         * modules/dirent: New file.
49542         * m4/dirent_h.m4: New file.
49543         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_DIRENT_H_DEFAULTS.
49544         Invoke gl_REPLACE_DIRENT_H. Don't assign DIRENT_H directly.
49545         * modules/fchdir (Files): Remove lib/dirent.in.h.
49546         (Depends-on): Add dirent.
49547         (Makefile.am): Move rules to modules/dirent.
49548         * doc/posix-headers/dirent.texi: Mention the new module.
49549
49550 2008-10-18  Bruno Haible  <bruno@clisp.org>
49551
49552         Avoid -Wunused-parameter warnings in public gnulib header files.
49553         * m4/gnulib-common.m4 (gl_COMMON_BODY): Define _UNUSED_PARAMETER_ as a
49554         macro.
49555         * lib/unistr.h (u32_mbtouc_unsafe, u32_mbtouc): Use it.
49556
49557 2008-10-18  Bruno Haible  <bruno@clisp.org>
49558
49559         * doc/glibc-functions/dirfd.texi: Mention the module 'dirfd'.
49560         * doc/glibc-functions/error.texi: Mention the module 'error'.
49561         * doc/glibc-functions/euidaccess.texi: Mention the module 'euidaccess'.
49562         * doc/glibc-functions/getdomainname.texi: Mention the module
49563         'getdomainname'.
49564         * doc/glibc-functions/getloadavg.texi: Mention the module 'getloadavg'.
49565         * doc/glibc-functions/getpagesize.texi: Mention the module
49566         'getpagesize'.
49567         * doc/glibc-functions/getusershell.texi: Mention the module
49568         'getusershell'.
49569         * doc/glibc-functions/isnanl.texi: Mention the module 'isnanl'.
49570         * doc/glibc-functions/lchmod.texi: Mention the module 'lchmod'.
49571         * doc/glibc-functions/mempcpy.texi: Mention the module 'mempcpy'.
49572         * doc/glibc-functions/memrchr.texi: Mention the module 'memrchr'.
49573         * doc/glibc-functions/mkdtemp.texi: Mention the module 'mkdtemp'.
49574         * doc/glibc-functions/rpmatch.texi: Mention the module 'rpmatch'.
49575         * doc/glibc-functions/stpcpy.texi: Mention the module 'stpcpy'.
49576         * doc/glibc-functions/stpncpy.texi: Mention the module 'stpncpy'.
49577         * doc/glibc-functions/strchrnul.texi: Mention the module 'strchrnul'.
49578         * doc/glibc-functions/strndup.texi: Mention the module 'strndup'.
49579         * doc/glibc-functions/strnlen.texi: Mention the module 'strnlen'.
49580         * doc/glibc-functions/strsep.texi: Mention the module 'strsep'.
49581         * doc/glibc-functions/timegm.texi: Mention the module 'timegm'.
49582         * doc/glibc-functions/vasprintf.texi: Mention the module 'vasprintf'.
49583
49584 2008-10-17  Bruno Haible  <bruno@clisp.org>
49585
49586         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): On platforms other than
49587         HP-UX and IRIX, use -0.0L.
49588         * tests/test-ceill.c (minus_zero): Likewise.
49589         * tests/test-floorl.c (minus_zero): Likewise.
49590         * tests/test-frexpl.c (minus_zero): Likewise.
49591         * tests/test-isnan.c (minus_zerol): Likewise.
49592         * tests/test-isnanl.h (minus_zero): Likewise.
49593         * tests/test-ldexpl.c (minus_zero): Likewise.
49594         * tests/test-roundl.c (minus_zero): Likewise.
49595         * tests/test-signbit.c (minus_zerol): Likewise.
49596         * tests/test-snprintf-posix.h (minus_zerol): Likewise.
49597         * tests/test-sprintf-posix.h (minus_zerol): Likewise.
49598         * tests/test-truncl.c (minus_zero): Likewise.
49599         * tests/test-vasnprintf-posix.c (minus_zerol): Likewise.
49600         * tests/test-vasprintf-posix.c (minus_zerol): Likewise.
49601         Reported by Markus Armbruster <armbru@redhat.com> via Jim Meyering
49602         and by Nelson H. F. Beebe <beebe@math.utah.edu> via Eric Blake.
49603
49604 2008-10-17  Bruno Haible  <bruno@clisp.org>
49605
49606         Avoid gcc warnings because of #pragma GCC system_header on older gcc.
49607         * lib/arpa_inet.in.h: Encloses reference to PRAGMA_SYSTEM_HEADER so
49608         that it gets activated only for gcc >= 3.0.
49609         * lib/dirent.in.h: Likewise.
49610         * lib/errno.in.h: Likewise.
49611         * lib/fcntl.in.h: Likewise.
49612         * lib/float.in.h: Likewise.
49613         * lib/iconv.in.h: Likewise.
49614         * lib/inttypes.in.h: Likewise.
49615         * lib/locale.in.h: Likewise.
49616         * lib/math.in.h: Likewise.
49617         * lib/netdb.in.h: Likewise.
49618         * lib/netinet_in.in.h: Likewise.
49619         * lib/search.in.h: Likewise.
49620         * lib/signal.in.h: Likewise.
49621         * lib/spawn.in.h: Likewise.
49622         * lib/stdarg.in.h: Likewise.
49623         * lib/stdint.in.h: Likewise.
49624         * lib/stdio.in.h: Likewise.
49625         * lib/stdlib.in.h: Likewise.
49626         * lib/string.in.h: Likewise.
49627         * lib/strings.in.h: Likewise.
49628         * lib/sys_file.in.h: Likewise.
49629         * lib/sys_ioctl.in.h: Likewise.
49630         * lib/sys_select.in.h: Likewise.
49631         * lib/sys_socket.in.h: Likewise.
49632         * lib/sys_stat.in.h: Likewise.
49633         * lib/sys_time.in.h: Likewise.
49634         * lib/sysexits.in.h: Likewise.
49635         * lib/time.in.h: Likewise.
49636         * lib/unistd.in.h: Likewise.
49637         * lib/wchar.in.h: Likewise.
49638         * lib/wctype.in.h: Likewise.
49639         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
49640
49641 2008-10-17  Jim Meyering  <meyering@redhat.com>
49642
49643         ignore-value: don't depend on inline module
49644         * modules/ignore-value (Depends-on): Remove 'inline'.
49645         (configure.ac): Instead, add AC_REQUIRE([AC_C_INLINE]) here.
49646         Suggestion from Bruno Haible.
49647
49648 2008-10-17  Bruno Haible  <bruno@clisp.org>
49649
49650         New implementation of condition variables for Win32.
49651         * lib/glthread/cond.h (struct gl_waitqueue_link): New type.
49652         (gl_linked_waitqueue_t): New type.
49653         (gl_cond_t): Use it.
49654         * lib/glthread/cond.c (struct gl_waitqueue_element): New type.
49655         (gl_waitqueue_init, gl_waitqueue_add, gl_waitqueue_remove,
49656         gl_waitqueue_notify_first, gl_waitqueue_notify_all): New functions.
49657         (glthread_cond_init_func, glthread_cond_wait_func,
49658         glthread_cond_timedwait_func, glthread_cond_signal_func,
49659         glthread_cond_broadcast_func, glthread_cond_destroy_func):
49660         Reimplemented on the basis of gl_linked_waitqueue_t.
49661         * lib/glthread/lock.h (gl_carray_waitqueue_t): Renamed from
49662         gl_waitqueue_t.
49663         (gl_rwlock_t): Update.
49664         * lib/glthread/lock.c (gl_waitqueue_t): Alias to gl_carray_waitqueue_t.
49665
49666 2008-10-17  Simon Josefsson  <simon@josefsson.org>
49667
49668         * modules/recvfrom (Depends-on): Add dependency on getpeername.
49669         Reported by Yoann Vandoorselaere <yoann@prelude-ids.org>.
49670
49671 2008-10-17  Jim Meyering  <meyering@redhat.com>
49672
49673         ignore-value: new module
49674         * modules/ignore-value: New file.
49675         * lib/ignore-value.h: New file.
49676         * MODULES.html.sh (Compiler warning management): New section,
49677         just for this module.  More to come.
49678
49679 2008-10-16  Paul Eggert  <eggert@cs.ucla.edu>
49680
49681         open-safer.c: avoid 'signed and unsigned in conditional...' warning
49682         * lib/open-safer.c (open_safer): Use an "if/else" statement in place
49683         of the ternary operator.  Reported by Reuben Thomas <rrt@sc3d.org>.
49684
49685 2008-10-16  Jim Meyering  <meyering@redhat.com>
49686
49687         openat-die.c: avoid 'no previous prototype' warning
49688         * lib/openat-die.c: Include "openat.h".
49689         Reported by Reuben Thomas <rrt@sc3d.org>.
49690
49691 2008-10-16  Simon Josefsson  <simon@josefsson.org>
49692
49693         * m4/netdb_h.m4: Assume that if netdb.h exists, it works.
49694         * lib/netdb.in.h: Fix typo.
49695         Reported by Bruno Haible  <bruno@clisp.org>
49696
49697         * lib/netdb.in.h: Include sys/socket.h for platforms without
49698         netdb.h, to get structures like hostent on MinGW.
49699         * modules/netdb (Depends-on): Add sys_socket.
49700
49701 2008-10-15  Simon Josefsson  <simon@josefsson.org>
49702
49703         * modules/netdb, modules/netdb-tests: New file.
49704         * m4/netdb_h.m4: New file.
49705         * lib/netdb.in.h: Add, currently just an empty file pending
49706         definitions.
49707         * tests/test-netdb.c: New file.
49708         * doc/posix-headers/netdb.texi: Mention that we replace it if
49709         needed.
49710         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
49711         netdb.
49712
49713 2008-10-15  Simon Josefsson  <simon@josefsson.org>
49714
49715         * doc/gnulib.texi (Getaddrinfo and WINVER): Sync documentation
49716         with code.
49717
49718 2008-10-13  Bruno Haible  <bruno@clisp.org>
49719
49720         * lib/glthread/cond.c (glthread_cond_wait_func,
49721         glthread_cond_timedwait_func): Add a comment.
49722
49723 2008-10-13  Yoann Vandoorselaere  <yoann@prelude-ids.org>
49724
49725         * tests/test-poll.c: Include <sys/ioctl.h>, for ioctl().
49726         * tests/test-select.c: Likewise,
49727
49728 2008-10-13  Bruno Haible  <bruno@clisp.org>
49729
49730         * lib/glthread/cond.c (glthread_cond_wait_func,
49731         glthread_cond_timedwait_func): Fix variable name.
49732         Reported by Yoann Vandoorselaere <yoann@prelude-ids.org>.
49733
49734 2008-10-13  Paolo Bonzini  <bonzini@gnu.org>
49735
49736         fix getaddrinfo emulation for systems with struct sockaddr.sa_len
49737         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Detect
49738         struct sockaddr.sa_len.
49739         * lib/getaddrinfo.c (getaddrinfo): Set it if appropriate.
49740
49741 2008-10-13  Simon Josefsson  <simon@josefsson.org>
49742
49743         * build-aux/pmccabe2html: Add css and css_url parameters.
49744
49745 2008-10-12  Bruno Haible  <bruno@clisp.org>
49746
49747         * tests/test-sameacls.c (main) [AIX]: Clear type argument before
49748         calling aclx_get.
49749         Reported by Rainer Tammer <tammer@tammer.net>.
49750
49751 2008-10-12  Bruno Haible  <bruno@clisp.org>
49752
49753         Use msvcrt aware primitives for creation/termination of Win32 threads.
49754         * lib/glthread/thread.c: Include <process.h>.
49755         (glthread_create_func): Use _beginthreadex instead of CreateThread.
49756         (wrapper_func): Update signature.
49757         (gl_thread_exit_func): Use _endthreadex instead of EndThread.
49758
49759 2008-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
49760             Bruno Haible  <bruno@clisp.org>
49761
49762         Provide a Win32 implementation of the 'cond' module.
49763         * lib/glthread/cond.h [USE_WIN32]: New implementation.
49764         * lib/glthread/cond.c (glthread_cond_init_func,
49765         glthread_cond_wait_func, glthread_cond_timedwait_func,
49766         glthread_cond_signal_func, glthread_cond_broadcast_func,
49767         glthread_cond_destroy_func) [USE_WIN32]: New functions.
49768         * modules/cond (Dependencies): Add gettimeofday.
49769
49770 2008-10-11  Bruno Haible  <bruno@clisp.org>
49771
49772         Make sleep work on older versions of mingw.
49773         * m4/sleep.m4 (gl_FUNC_SLEEP): Test whether 'sleep' is declared, not
49774         only whether it exists.
49775         * doc/posix-functions/sleep.texi: Mention the problem with older
49776         versions of mingw.
49777
49778 2008-10-11  Bruno Haible  <bruno@clisp.org>
49779
49780         New module 'shutdown'.
49781         * modules/shutdown: New file.
49782         * lib/sys_socket.in.h (shutdown): New declaration.
49783         * lib/winsock.c (shutdown): New function.
49784         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Initialize
49785         GNULIB_SHUTDOWN.
49786         * modules/sys_socket (Makefile.am): Substitute GNULIB_SHUTDOWN.
49787         * doc/posix-functions/shutdown.texi: Document the new module.
49788
49789 2008-10-11  Jim Meyering  <meyering@redhat.com>
49790
49791         * lib/fclose.c: Fix typo in comment: s/close/fclose/.
49792
49793 2008-10-11  Bruno Haible  <bruno@clisp.org>
49794
49795         New module 'fclose'.
49796         * modules/fclose: New file.
49797         * lib/stdio.in.h (fclose): New declaration.
49798         * lib/fclose.c: New file.
49799         * m4/fclose.m4: New file.
49800         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FCLOSE,
49801         REPLACE_FCLOSE.
49802         * m4/close.m4 (gl_REPLACE_CLOSE): Invoke gl_REPLACE_FCLOSE.
49803         * modules/stdio (Makefile.am): Substitute GNULIB_FCLOSE,
49804         REPLACE_FCLOSE.
49805         * modules/close (Depends-on): fclose.
49806         * doc/posix-functions/fclose.texi: Mention the problem on Windows.
49807
49808 2008-10-11  Bruno Haible  <bruno@clisp.org>
49809
49810         * lib/winsock.c (_gl_close_fd_maybe_socket): If closesocket fails,
49811         set errno and don't call _close.
49812
49813 2008-10-10  Bruno Haible  <bruno@clisp.org>
49814
49815         * lib/copy-acl.c (qcopy_acl) [CYGWIN]: Call chmod before setting the
49816         ACL, not afterwards. Fixes test failure on Cygwin.
49817
49818 2008-10-09  Ben Pfaff  <blp@gnu.org>
49819
49820         * build-aux/announce-gen: Fix gnulib version related part of usage
49821         message.  Die with a useful error message if no tarballs are
49822         found.
49823
49824 2008-10-10  Jim Meyering  <meyering@redhat.com>
49825
49826         bootstrap: use git's --depth=N option only if it's supported
49827         * build-aux/bootstrap: Work with git-1.4.4.4, which does not
49828         recognize the --depth option.  Reported by Pádraig Brady.
49829
49830 2008-10-09  Bruno Haible  <bruno@clisp.org>
49831
49832         New module 'ioctl'.
49833         * modules/ioctl: New file.
49834         * lib/sys_socket.in.h (ioctl): Remove declaration.
49835         * lib/winsock.c: Include <sys/ioctl.h>.
49836         (rpl_ioctl): Define only of the gnulib module 'ioctl' is present.
49837         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Require
49838         gl_SYS_IOCTL_H_DEFAULTS. Set also SYS_IOCTL_H_HAVE_WINSOCK2_H.
49839         * modules/sys_socket (Files): Add m4/sys_ioctl_h.m4.
49840         * doc/posix-functions/ioctl.texi: Mention the new module.
49841
49842 2008-10-09  Bruno Haible  <bruno@clisp.org>
49843
49844         New module 'sys_ioctl'.
49845         * lib/sys_ioctl.in.h: New file.
49846         * m4/sys_ioctl_h.m4: New file.
49847         * modules/sys_ioctl: New file.
49848         * doc/glibc-headers/sys_ioctl.texi: Mention the new module.
49849
49850 2008-10-09  Bruno Haible  <bruno@clisp.org>
49851
49852         * lib/sys_socket.in.h (ioctl): Make signature POSIX compliant.
49853         * lib/winsock.c: Include <stdarg.h>.
49854         (rpl_ioctl): Change to second argument 'int' and then varargs.
49855
49856 2008-10-09  Bruno Haible  <bruno@clisp.org>
49857
49858         * m4/close.m4 (gl_FUNC_CLOSE): Arrange to replace the close() function
49859         when the sys_socket module is present and the system has <winsock2.h>.
49860
49861 2008-10-09  Bruno Haible  <bruno@clisp.org>
49862
49863         * doc/posix-functions/close.texi: Mention module 'close' instead of
49864         module 'sys_socket'.
49865
49866 2008-10-09  Bruno Haible  <bruno@clisp.org>
49867
49868         * doc/glibc-headers/sys_ioctl.texi: New file.
49869         * doc/gnulib.texi: Include it.
49870
49871 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
49872             Bruno Haible  <bruno@clisp.org>
49873
49874         Combine the two replacements of 'close'.
49875         * lib/sys_socket.in.h (close): Define to a reminder to include
49876         <unistd.h>.
49877         (_gl_close_fd_maybe_socket): New declaration.
49878         (HAVE__GL_CLOSE_FD_MAYBE_SOCKET): New macro.
49879         * lib/winsock.c (close): Remove undefinition.
49880         (_gl_close_fd_maybe_socket): Renamed from rpl_close. Define only when
49881         needed for the gnulib module 'close'.
49882         * lib/unistd.in.h (close): If the gnulib module 'close' is not used,
49883         define to an error symbol or to a warning, if suitable.
49884         * lib/close.c: Include <sys/socket.h>.
49885         (rpl_close): Invoke _gl_close_fd_maybe_socket when gnulib defines it.
49886         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Set also
49887         UNISTD_H_HAVE_WINSOCK2_H.
49888         (gl_SYS_SOCKET_H_DEFAULTS): Require gl_UNISTD_H_DEFAULTS.
49889         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
49890         UNISTD_H_HAVE_WINSOCK2_H.
49891         * modules/sys_socket (Files): Add m4/unistd_h.m4.
49892         (configure.ac): Set a module indicator.
49893         (Makefile.am): Substitute GNULIB_CLOSE.
49894         * modules/unistd (Makefile.am): Substitute UNISTD_H_HAVE_WINSOCK2_H.
49895         * modules/poll-tests (Depends-on): Add close.
49896         * modules/select-tests (Depends-on): Likewise.
49897
49898 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
49899             Bruno Haible  <bruno@clisp.org>
49900
49901         New module 'close'.
49902         * modules/close: New file.
49903         * lib/unistd.in.h (close): Move declaration out of the
49904         FCHDIR_REPLACEMENT scope.
49905         (_gl_unregister_fd): New declaration.
49906         * lib/close.c: New file.
49907         * lib/fchdir.c (rpl_close): Remove function.
49908         * m4/close.m4: New file.
49909         * m4/fchdir.m4 (gl_FUNC_FCHDIR): When replacing fchdir, also replace
49910         close.
49911         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_CLOSE and
49912         REPLACE_CLOSE.
49913         * modules/unistd (Makefile.am): Substitute GNULIB_CLOSE and
49914         REPLACE_CLOSE.
49915         * modules/fchdir (Depends-on): Add close.
49916
49917 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
49918             Bruno Haible  <bruno@clisp.org>
49919
49920         * lib/fcntl.in.h (open): Simplify conditionals.
49921         (_gl_register_fd): New declaration.
49922         * lib/fchdir.c (rpl_open): Remove function.
49923         * lib/open.c: When FCHDIR_REPLACEMENT is defined, compile the file
49924         also.
49925         (open): When FCHDIR_REPLACEMENT is defined, invoke _gl_register_fd.
49926         * m4/fchdir.m4 (gl_FUNC_FCHDIR): When replacing fchdir, also replace
49927         open.
49928
49929 2008-10-09  Jim Meyering  <meyering@redhat.com>
49930
49931         GNUmakefile: use the more name-space-friendly "_version"
49932         * top/GNUmakefile (_dummy): Update.
49933         (_version): Rename from "version".
49934
49935 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
49936             Bruno Haible  <bruno@clisp.org>
49937
49938         * lib/fchdir.c (_gl_unregister_fd): New functions, extracted from
49939         rpl_close.
49940         (_gl_register_fd): New function, extracted from rpl_open.
49941         (rpl_close, rpl_closedir): Use _gl_unregister_fd.
49942         (rpl_open, rpl_opendir): Use _gl_register_fd.
49943
49944 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
49945
49946         Fix organization of 'open' replacement.
49947         * m4/open.m4 (gl_REPLACE_OPEN): New macro.
49948         (gl_FUNC_OPEN): Use it.
49949         (gl_PREREQ_OPEN): Add a : to make the body non-empty.
49950
49951 2008-10-08  Bruno Haible  <bruno@clisp.org>
49952
49953         * modules/getdate-tests (test_getdata_LDADD): Add LIBINTL.
49954
49955 2008-10-08  Simon Josefsson  <simon@josefsson.org>
49956
49957         * m4/sys_socket_h.m4: Don't AC_LIBOBJ(winsock).  The file is
49958         AC_LIBOBJ'ed by each gnulib module that needs it (e.g., socket,
49959         listen).
49960
49961 2008-10-08  Eric Blake  <ebb9@byu.net>
49962
49963         GNUmakefile: add 'make version' target
49964         * top/GNUmakefile (_curr-ver): Split version update rules...
49965         (version): ...into a target.
49966
49967 2008-10-07  Bruno Haible  <bruno@clisp.org>
49968
49969         Use a more portable replacement expression for -0.0L.
49970         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Use -LDBL_MIN * LDBL_MIN
49971         instead of -0.0L. Fix m4 quotation.
49972
49973         * tests/test-signbit.c: Include <float.h>.
49974         (minus_zero): New variable.
49975         (test_signbitl): Use minus_zero instead of -zero.
49976         * modules/signbit-tests (Depends-on): Add float.
49977
49978         * tests/test-ceill.c: Include <float.h>.
49979         (zero): Remove variable.
49980         (minus_zero): New variable.
49981         (main): Use minus_zero instead of -zero.
49982         * modules/ceill-tests (Depends-on): Add float.
49983
49984         * tests/test-floorl.c: Include <float.h>.
49985         (zero): Remove variable.
49986         (minus_zero): New variable.
49987         (main): Use minus_zero instead of -zero.
49988         * modules/floorl-tests (Depends-on): Add float.
49989
49990         * tests/test-roundl.c: Include <float.h>.
49991         (zero): Remove variable.
49992         (minus_zero): New variable.
49993         (main): Use minus_zero instead of -zero.
49994         * modules/roundl-tests (Depends-on): Add float.
49995
49996         * tests/test-truncl.c: Include <float.h>.
49997         (zero): Remove variable.
49998         (minus_zero): New variable.
49999         (main): Use minus_zero instead of -zero.
50000         * modules/truncl-tests (Depends-on): Add float.
50001
50002         * tests/test-frexpl.c (zero): Remove variable.
50003         (minus_zero): New variable.
50004         (main): Use minus_zero instead of -zero.
50005         * modules/frexpl-tests (Depends-on): Add float.
50006
50007         * tests/test-isnan.c (zerol): Remove variable.
50008         (minus_zerol): New variable.
50009         (test_long_double): Use minus_zerol instead of -zerol.
50010         * modules/isnan-tests (Depends-on): Add float.
50011
50012         * tests/test-isnanl.h (zero): Remove variable.
50013         (minus_zero): New variable.
50014         (main): Use minus_zero instead of -zero.
50015         * modules/isnanl-nolibm-tests (Depends-on): Add float.
50016         * modules/isnanl-tests (Depends-on): Add float.
50017
50018         * tests/test-ldexpl.c (zero): Remove variable.
50019         (minus_zero): New variable.
50020         (main): Use minus_zero instead of -zero.
50021         * modules/ldexpl-tests (Depends-on): Add float.
50022
50023         * tests/test-snprintf-posix.h (zerol): Remove variable.
50024         (minus_zerol): New variable.
50025         (test_function): Use minus_zerol instead of -zerol.
50026         * modules/snprintf-posix-tests (Depends-on): Add float.
50027         * modules/vsnprintf-posix-tests (Depends-on): Add float.
50028
50029         * tests/test-sprintf-posix.h (zerol): Remove variable.
50030         (minus_zerol): New variable.
50031         (test_function): Use minus_zerol instead of -zerol.
50032         * modules/sprintf-posix-tests (Depends-on): Add float.
50033         * modules/vsprintf-posix-tests (Depends-on): Add float.
50034
50035         * tests/test-vasnprintf-posix.c (zerol): Remove variable.
50036         (minus_zerol): New variable.
50037         (test_function): Use minus_zerol instead of -zerol.
50038         * modules/vasnprintf-posix-tests (Depends-on): Add float.
50039
50040         * tests/test-vasprintf-posix.c (zerol): Remove variable.
50041         (minus_zerol): New variable.
50042         (test_function): Use minus_zerol instead of -zerol.
50043         * modules/vasprintf-posix-tests (Depends-on): Add float.
50044
50045 2008-10-07  Simon Josefsson  <simon@josefsson.org>
50046
50047         * MODULES.html.sh (Support for building documentation): Mention
50048         pmccabe2html.  Sort entries.
50049
50050         Add pmccabe2html module, from gnupdf.
50051         * build-aux/pmccabe.css: New file.
50052         * build-aux/pmccabe2html: New file.
50053         * m4/pmccabe2html.m4: New file.
50054         * modules/pmccabe2html: New file.
50055
50056 2008-10-07  Richard W.M. Jones <rjones@redhat.com>
50057
50058         flock: new module
50059         * MODULES.html.sh: Add to list of modules.
50060         * lib/flock.c: flock implementation for Windows and Unix systems
50061         which have fcntl.
50062         * doc/glibc-functions/flock.texi: Update documentation.
50063         * lib/sys_file.in.h: <sys/file.h> header file.
50064         * m4/flock.m4: M4 macros.
50065         * m4/sys_file_h.m4: M4 macros for replacement sys/file.h.
50066         * modules/flock: flock module.
50067         * modules/flock-tests: flock tests module.
50068         * modules/sys_file: sys/file.h module.
50069         * tests/test-flock.c: test suite for flock.
50070
50071 2008-10-06  Jim Meyering  <meyering@redhat.com>
50072
50073         bootstrap: check for LT_INIT more portably still ;-)
50074         * build-aux/bootstrap: Don't rely on \>, since it's not portable.
50075         Spotted by Bruno Haible.
50076
50077 2008-10-06  Eric Blake  <ebb9@byu.net>
50078
50079         test-signbit: avoid tripping Irix cc bug on -0.0L
50080         * tests/test-signbit.c (minus_zerol): Delete, and replace with
50081         '-zerol'.  This may break on HP-UX/hppa, but at least makes the
50082         entire testsuite consistent and avoids an Irix 6.2 bug.
50083
50084 2008-10-05  Bruno Haible  <bruno@clisp.org>
50085             Jim Meyering  <jim@meyering.net>
50086
50087         Add an option for ignoring EPIPE during close_stdout.
50088         * lib/closeout.h: Include <stdbool.h>.
50089         (close_stdout_set_ignore_EPIPE): New declaration.
50090         * lib/closeout.c: Include <stdbool.h>.
50091         (ignore_EPIPE): New variable.
50092         (close_stdout_set_ignore_EPIPE): New function.
50093         (close_stdout): Ignore EPIPE error if ignore_EPIPE is set.
50094         * lib/close-stream.c (close_stream): Mention the possible EPIPE
50095         failure.
50096         * modules/closeout (Depends-on): Add stdbool.
50097
50098 2008-10-05  Bruno Haible  <bruno@clisp.org>
50099
50100         * modules/accept: New file.
50101         * modules/bind: New file.
50102         * modules/connect: New file.
50103         * modules/getpeername: New file.
50104         * modules/getsockname: New file.
50105         * modules/getsockopt: New file.
50106         * modules/listen: New file.
50107         * modules/recv: New file.
50108         * modules/recvfrom: New file.
50109         * modules/send: New file.
50110         * modules/sendto: New file.
50111         * modules/setsockopt: New file.
50112         * modules/socket: New file.
50113         * lib/sys_socket.in.h: Include the GL_LINK_WARNING definition.
50114         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
50115         listen, recv, send, recvfrom, sendto, setsockopt): Declare only when
50116         the particular module is requested. Add a link warning when the
50117         particular module is not requested.
50118         * lib/winsock.c (rpl_socket, rpl_connect, rpl_accept, rpl_bind,
50119         rpl_getpeername, rpl_getsockname, rpl_getsockopt, rpl_listen, rpl_recv,
50120         rpl_send, rpl_recvfrom, rpl_sendto, rpl_setsockopt): Define only when
50121         the particular module is requested.
50122         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR,
50123         gl_SYS_SOCKET_H_DEFAULTS): New macros.
50124         (gl_HEADER_SYS_SOCKET): Require gl_SYS_SOCKET_H_DEFAULTS.
50125         * modules/sys_socket (Depends-on): Add link-warning.
50126         (Makeifle.am): Substitute GNULIB_SOCKET, GNULIB_CONNECT, GNULIB_ACCEPT,
50127         GNULIB_BIND, GNULIB_GETPEERNAME, GNULIB_GETSOCKNAME, GNULIB_GETSOCKOPT,
50128         GNULIB_LISTEN, GNULIB_RECV, GNULIB_SEND, GNULIB_RECVFROM,
50129         GNULIB_SENDTO, GNULIB_SETSOCKOPT, and the definition of
50130         GL_LINK_WARNING.
50131         * doc/posix-functions/accept.texi: Mention the new module 'accept'.
50132         * doc/posix-functions/bind.texi: Mention the new module 'bind'.
50133         * doc/posix-functions/connect.texi: Mention the new module 'connect'.
50134         * doc/posix-functions/getpeername.texi: Mention the new module
50135         'getpeername'.
50136         * doc/posix-functions/getsockname.texi: Mention the new module
50137         'getsockname'.
50138         * doc/posix-functions/getsockopt.texi: Mention the new module
50139         'getsockopt'.
50140         * doc/posix-functions/listen.texi: Mention the new module 'listen'.
50141         * doc/posix-functions/recv.texi: Mention the new module 'recv'.
50142         * doc/posix-functions/recvfrom.texi: Mention the new module 'recvfrom'.
50143         * doc/posix-functions/send.texi: Mention the new module 'send'.
50144         * doc/posix-functions/sendto.texi: Mention the new module 'sendto'.
50145         * doc/posix-functions/setsockopt.texi: Mention the new module
50146         'setsockopt'.
50147         * doc/posix-functions/socket.texi: Mention the new module 'socket'.
50148         * modules/poll-tests (Depends-on): Add socket, bind, getsockopt,
50149         listen, connect, accept.
50150         * modules/select-tests (Depends-on): Likewise.
50151
50152 2008-10-05  Bruno Haible  <bruno@clisp.org>
50153
50154         * lib/winsock.c (strerror): Remove unused #undef.
50155         (rpl_close): Remove unused local variable.
50156
50157         * modules/sys_socket (Depends-on); Add errno.
50158
50159 2008-10-05  Bruno Haible  <bruno@clisp.org>
50160
50161         * lib/sys_select.in.h: Include the GL_LINK_WARNING definition.
50162         (select): Add a link warning when the 'select' module is not used.
50163         * modules/sys_select (Depends-on): Add link-warning.
50164         (Makefile.am): Substitute the definition of GL_LINK_WARNING.
50165         Suggested by Paolo Bonzini.
50166
50167 2008-10-05  Jim Meyering  <meyering@redhat.com>
50168
50169         bootstrap: check for LT_INIT more portably
50170         * build-aux/bootstrap: Avoid using grep -E, since it's not
50171         portable enough.  Suggestion from Bruno Haible.
50172
50173 2008-10-05  Bruno Haible  <bruno@clisp.org>
50174
50175         * doc/posix-headers/sys_select.texi: Mention 'struct timeval' problem
50176         as being fixed by gnulib.
50177
50178 2008-10-05  Bruno Haible  <bruno@clisp.org>
50179
50180         * modules/select-tests: New file, mostly copied from
50181         modules/sys_select-tests.
50182         * tests/test-select.c: New file, mostly copied from
50183         tests/test-sys_select.c.
50184         * tests/test-sys_select.c: Move most of the code to tests/test-select.c.
50185         * modules/sys_select-tests (Depends-on): Remove all dependencies.
50186         (Makefile.am): Remove test_sys_select_LDADD.
50187
50188         * lib/sys_select.in.h (select): If GNULIB_SELECT is not set, define it
50189         to an undefined symbol, for an error message.
50190         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): New macro.
50191         (gl_SYS_SELECT_H_DEFAULTS): New macro.
50192         (gl_HEADER_SYS_SELECT): Require it. Don't require compilation of
50193         winsock-select.c here.
50194         * modules/sys_select (Files): Remove lib/winsock-select.c.
50195         (Depends-on): Remove alloca.
50196         (Makefile.am): Substitute GNULIB_SELECT.
50197         * modules/select: New file.
50198         * doc/posix-functions/select.texi: Update.
50199
50200 2008-10-05  Bruno Haible  <bruno@clisp.org>
50201
50202         * lib/spawn_faction_addclose.c (__sysconf): Use getdtablesize always.
50203         * lib/spawn_faction_adddup2.c (__sysconf): Likewise.
50204         * lib/spawn_faction_addopen.c (__sysconf): Likewise.
50205         * modules/posix_spawn_file_actions_addclose (Depends-on): Add
50206         getdtablesize.
50207         * modules/posix_spawn_file_actions_adddup2 (Depends-on): Likewise.
50208         * modules/posix_spawn_file_actions_addopen (Depends-on): Likewise.
50209
50210 2008-10-05  Bruno Haible  <bruno@clisp.org>
50211
50212         * modules/getdtablesize-tests: New file.
50213         * tests/test-getdtablesize.c: New file.
50214
50215         New module 'getdtablesize'.
50216         * lib/unistd.in.h (getdtablesize): New declaration.
50217         * lib/getdtablesize.c: New file.
50218         * m4/getdtablesize.m4: New file.
50219         * modules/getdtablesize: New file.
50220         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
50221         GNULIB_GETDTABLESIZE, HAVE_GETDTABLESIZE.
50222         * modules/unistd (Makefile.am): Substitute GNULIB_GETDTABLESIZE,
50223         HAVE_GETDTABLESIZE.
50224         * doc/glibc-functions/getdtablesize.texi: Mention the new module.
50225
50226 2008-10-05  Bruno Haible  <bruno@clisp.org>
50227
50228         * modules/sched (Makefile.am): Fix typo.
50229         Reported by Simon Josefsson.
50230
50231 2008-10-05  Jim Meyering  <meyering@redhat.com>
50232
50233         bootstrap: check for LT_INIT, too
50234         * build-aux/bootstrap: Both AC_PROG_LIBTOOL and AM_PROG_LIBTOOL
50235         are deprecated.  Suggestion from Ralf Wildenhues.
50236
50237 2008-10-05  Bruno Haible  <bruno@clisp.org>
50238
50239         * lib/spawn.in.h (POSIX_SPAWN_*): Use the system's values, rather than
50240         overriding them by ours.
50241         (POSIX_SPAWN_USEVFORK): Use the next free bit position.
50242
50243 2008-10-05  Jim Meyering  <meyering@redhat.com>
50244
50245         bootstrap: check for AC_PROG_LIBTOOL as well as AM_PROG_LIBTOOL
50246         * build-aux/bootstrap: Check for AC_PROG_LIBTOOL, as well as the
50247         obsolete AM_PROG_LIBTOOL.  Spotted by Debarshi Ray <rishi@gnu.org>.
50248
50249 2008-10-04  Bruno Haible  <bruno@clisp.org>
50250
50251         * modules/dup2 (License): Change to LGPLv2+.
50252         * modules/sleep (License): Likewise.
50253         * modules/perror (License): Likewise.
50254         * modules/fopen (License): Change to LGPLv2+, with approval by Eric
50255         Blake.
50256         * modules/signal (License): Likewise.
50257         * modules/sigprocmask (License): Likewise.
50258         * modules/raise (License): Change to LGPLv2+, with approval by Jim
50259         Meyering.
50260
50261 2008-10-04  Bruno Haible  <bruno@clisp.org>
50262
50263         * lib/spawn.in.h (POSIX_SPAWN_*): Undefine before redefining.
50264         Reported by Rainer Tammer <tammer@tammer.net>.
50265
50266 2008-10-03  Paolo Bonzini  <bonzini@gnu.org>
50267             Bruno Haible  <bruno@clisp.org>
50268
50269         * lib/errno.in.h (EWOULDBLOCK) [win32]: Define to EAGAIN.
50270         * lib/winsock.c (set_winsock_errno): Map WSAEWOULDBLOCK to EWOULDBLOCK.
50271         * lib/strerror.c (rpl_strerror): Remove error string for EWOULDBLOCK.
50272
50273 2008-10-03  Kamil Dudka  <kdudka@redhat.com>
50274
50275         filevercmp: new module
50276         * lib/filevercmp.h: New function filevercmp comparing version strings.
50277         * lib/filevercmp.c: Implementation of filevercmp function.
50278         * modules/filevercmp: Module metadata.
50279         * tests/test-filevercmp.c: Unit test for new module.
50280         * modules/filevercmp-tests: Unit test metadata.
50281         * MODULES.html.sh: Add filevercmp module.
50282
50283 2008-10-03  Bruno Haible  <bruno@clisp.org>
50284
50285         * lib/c-ctype.h: Add comment.
50286         Reported by Jim Meyering.
50287
50288 2008-10-02  Bruno Haible  <bruno@clisp.org>
50289
50290         * modules/posix_spawn-internal (Depends-on): Add 'open'.
50291
50292 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
50293
50294         * build-aux/bootstrap: Allow renaming bootstrap, and change the
50295         name of bootstrap.conf accordingly.
50296
50297 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
50298
50299         * build-aux/bootstrap: Install git-merge-changelog configuration
50300         items into .gitconfig if needed.
50301
50302 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
50303
50304         * build-aux/bootstrap: Recognize `gnulib' being a submodule in a
50305         git repository, and initialize/update it accordingly.
50306
50307 2008-10-02  Richard W.M. Jones  <rjones@redhat.com>
50308
50309         * modules/fsync-tests: New file.
50310         * tests/test-fsync.c: New file.
50311
50312         New module 'fsync'.
50313         * lib/fsync.c: New file.
50314         * m4/fsync.m4: New file.
50315         * modules/fsync: New file.
50316         * lib/unistd.in.h (fsync): New declaration.
50317         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Define and AC_SUBST both
50318         GNULIB_FSYNC and HAVE_FSYNC.
50319         * modules/unistd: Substitute GNULIB_FSYNC and HAVE_FSYNC.
50320         * MODULES.html.sh (posix_functions): Add fsync.
50321         * doc/posix-functions/fsync.texi: Mention the new module.
50322
50323 2008-10-02  Jim Meyering  <meyering@redhat.com>
50324
50325         fts.c: sync with similar code from coreutils' remove.c
50326         * lib/fts.c (dirent_inode_sort_may_be_useful): Merge from coreutils.
50327         Guard also with "#if defined __linux__", since for now at least,
50328         this code is Linux-kernel-specific.
50329
50330 2008-10-02  Jim Meyering  <meyering@redhat.com>
50331
50332         fts: bug fixes
50333         * lib/fts.c: Remove unnecessary "defined" in cpp directive.
50334         Include <sys/vfs.h>, not <sys/statfs.h>.
50335
50336         * m4/fts.m4 (gl_FUNC_FTS_CORE): Fix typo s/vfs/vfs.h/.
50337         Include <sys/vfs.h>, not <sys/statfs.h>.
50338
50339 2008-10-01  Bruno Haible  <bruno@clisp.org>
50340
50341         Avoid the broken posix_spawn function on AIX 5.3 and 6.1.
50342         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): New macro.
50343         (gl_POSIX_SPAWN_BODY): Invoke it. Set REPLACE_POSIX_SPAWN if needed.
50344         * doc/posix-functions/posix_spawn.texi: Mention the AIX bugs.
50345         * doc/posix-functions/posix_spawnp.texi: Likewise.
50346         * m4/execute.m4 (gl_EXECUTE): Invoke gl_POSIX_SPAWN_WORKS, to check
50347         whether posix_spawn actually works.
50348         * m4/pipe.m4 (gl_PIPE): Likewise.
50349         * modules/execute (Files): Add m4/posix_spawn.m4.
50350         * modules/pipe (Files): Add m4/posix_spawn.m4.
50351         Reported and analyzed by Rainer Tammer <tammer@tammer.net>.
50352
50353 2008-10-01  Jim Meyering  <meyering@redhat.com>
50354
50355         remove trailing spaces
50356         * NEWS: Likewise.
50357         * lib/poll.c (poll): Likewise.
50358         * lib/sys_socket.in.h (SHUT_RDWR): Likewise.
50359         * lib/winsock.c (rpl_close): Likewise.
50360         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Likewise.
50361         * modules/yield: Likewise.
50362         * tests/test-poll.c (connect_to_socket, poll1): Likewise.
50363         * tests/test-sys_select.c (connect_to_socket): Likewise.
50364
50365         fts.c: adjust a new interface to be more generally useful
50366         * lib/fts.c (dirent_inode_sort_may_be_useful): Take an FD parameter.
50367         (fts_build): Adjust caller.
50368
50369 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
50370
50371         * modules/cond-tests: New file.
50372         * tests/test-cond.c: New file.
50373
50374 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
50375             Bruno Haible  <bruno@clisp.org>
50376
50377         * modules/cond (Dependencies): Add errno, time.
50378         * lib/glthread/cond.h: Include <time.h>.
50379         (gl_cond_define, gl_cond_define_initialized): Use the same definition
50380         across platforms.
50381
50382 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
50383             Bruno Haible  <bruno@clisp.org>
50384
50385         * m4/thread.m4 (gl_THREAD): Fix detection of pthread_atfork function.
50386
50387 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
50388             Bruno Haible  <bruno@clisp.org>
50389
50390         * modules/tls-tests (Depends-on): Add thread, yield.
50391         (configure.ac): Remove all checks.
50392         (test_tls_LDADD): Use YIELD_LIB instead of LIBSCHED.
50393         * tests/test-tls.c (gl_thread_t, gl_thread_join, gl_thread_yield,
50394         gl_thread_self): Remove definitions. Include glthread/thread.h and
50395         glthread/yield.h instead.
50396         (test_tls): Pass an additional NULL argument to gl_thread_join.
50397
50398 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
50399             Bruno Haible  <bruno@clisp.org>
50400
50401         * modules/lock-tests (Depends-on): Add thread, yield.
50402         (configure.ac): Remove all checks.
50403         (test_lock_LDADD): Use YIELD_LIB instead of LIBSCHED.
50404         * tests/test-lock.c (gl_thread_t, gl_thread_join, gl_thread_yield,
50405         gl_thread_self): Remove definitions. Include glthread/thread.h and
50406         glthread/yield.h instead.
50407         (test_lock, test_rwlock, test_recursive_lock, test_once): Pass an
50408         additional NULL argument to gl_thread_join.
50409
50410 2008-09-30  Bruno Haible  <bruno@clisp.org>
50411
50412         Fix the Win32 implementation of the 'thread' module.
50413         * lib/glthread/thread.h [USE_WIN32_THREADS] (gl_thread_t): Change to a
50414         pointer type.
50415         (gl_thread_self): Invoke gl_thread_self_func.
50416         (gl_thread_self_func): New declaration.
50417         * lib/glthread/thread.c [USE_WIN32_THREADS] (self_key): New variable.
50418         (do_init_self_key, init_self_key): New functions.
50419         (struct gl_thread_struct): Renamed from 'struct thread_extra'.
50420         Remove some fields.
50421         (running_threads, running_lock): Remove variables.
50422         (get_current_thread_handle): New function.
50423         (gl_thread_self_func, wrapper_func, glthread_create_func,
50424         glthread_join_func, gl_thread_exit_func): Largely rewritten and
50425         simplified.
50426
50427 2008-09-30  Bruno Haible  <bruno@clisp.org>
50428
50429         * lib/winsock-select.c (win32_poll_handle): Add shortcut for regular
50430         files.
50431
50432 2008-09-30  Jim Meyering  <meyering@redhat.com>
50433
50434         fts.m4: correct the test for statfs.f_type
50435         * m4/fts.m4 (gl_FUNC_FTS_CORE): Include <sys/statfs.h>
50436         when checking for statfs.f_type.
50437
50438 2008-09-15  Simon Josefsson  <simon@josefsson.org>
50439
50440         tests: avoid some compiler warnings
50441         * tests/test-memchr.c (main): Pass NULL indirectly.
50442         * tests/test-getdate.c (main): Remove unused variable 'ret'.
50443
50444 2008-09-29  Ondřej Vašík  <ovasik@redhat.com>
50445
50446         getdate.y: disallow countable dayshifts like "4 yesterday ago"
50447         * lib/getdate.y (relative_time_table) [tDAY_SHIFT]: New type for
50448         exactly specified dayshifts.
50449         (dayshift): New rule.
50450         (rel): Add dayshift.
50451         (relative_time_table) [tomorrow, yesterday, today, now]:
50452         Use tDAY_SHIFT in place of tDAY_UNIT.
50453         * tests/test-getdate.c: Add tests for now-disallowed countable
50454         dayshifts, e.g., "4 yesterday ago".
50455
50456 2008-09-29  Bruno Haible  <bruno@clisp.org>
50457
50458         * tests/test-posix_spawn1.c: Renamed from tests/test-posix_spawn.c.
50459         * tests/test-posix_spawn1.in.sh: Renamed from
50460         tests/test-posix_spawn.in.sh.
50461         * tests/test-posix_spawn2.c: New file.
50462         * tests/test-posix_spawn2.in.sh: New file.
50463         * modules/posix_spawnp-tests (Files): Update.
50464         (Makefile.am): Update. Add test-posix_spawn2 to the tests.
50465
50466 2008-09-29  Bruno Haible  <bruno@clisp.org>
50467
50468         Propagate effects of putenv/setenv/unsetenv to child processes.
50469         * lib/execute.c (execute): Use spawnvpe instead of spawnvp.
50470         * lib/pipe.c (create_pipe): Likewise.
50471
50472 2008-09-29  Bruno Haible  <bruno@clisp.org>
50473
50474         Enable use of shell scripts as executables in mingw.
50475         * lib/execute.c (execute): When spawnv fails with error ENOEXEC,
50476         run the program as a shell script.
50477         * lib/pipe.c (create_pipe): Likewise.
50478         * lib/w32spawn.h (prepare_spawn): Add a hidden element in front of the
50479         resulting array.
50480
50481 2008-09-29  Eric Blake  <ebb9@byu.net>
50482
50483         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Fix typo.
50484
50485 2008-08-24  Paolo Bonzini  <bonzini@gnu.org>
50486
50487         * doc/posix-functions/accept.texi: Update mingw problems.
50488         * doc/posix-functions/bind.texi: Update mingw problems.
50489         * doc/posix-functions/close.texi: Update mingw problems.
50490         * doc/posix-functions/connect.texi: Update mingw problems.
50491         * doc/posix-functions/getpeername.texi: Update mingw problems.
50492         * doc/posix-functions/getsockname.texi: Update mingw problems.
50493         * doc/posix-functions/getsockopt.texi: Update mingw problems.
50494         * doc/posix-functions/ioctl.texi: Update mingw problems.
50495         * doc/posix-functions/listen.texi: Update mingw problems.
50496         * doc/posix-functions/recv.texi: Update mingw problems.
50497         * doc/posix-functions/recvfrom.texi: Update mingw problems.
50498         * doc/posix-functions/select.texi: Update mingw problems.
50499         * doc/posix-functions/send.texi: Update mingw problems.
50500         * doc/posix-functions/sendto.texi: Update mingw problems.
50501         * doc/posix-functions/setsockopt.texi: Update mingw problems.
50502         * doc/posix-functions/socket.texi: Update mingw problems.
50503
50504 2008-09-29  Paolo Bonzini  <bonzini@gnu.org>
50505             Bruno Haible  <bruno@clisp.org>
50506
50507         * lib/sys_select.in.h: Include sys/time.h.
50508         * m4/sys_select.h.m4: Test that struct timeval is fully defined.
50509         * modules/sys_select: Depend on sys_time.
50510         * tests/test-sys_select.c: Test that sys/select.h defines struct
50511         timeval fully.
50512
50513 2008-09-29  Bruno Haible  <bruno@clisp.org>
50514
50515         * lib/sys_socket.in.h: Wrap the definitions in 'extern "C"'.
50516         * lib/sys_select.in.h: Likewise.
50517
50518 2008-09-29  Bruno Haible  <bruno@clisp.org>
50519
50520         * lib/winsock.c (rpl_close, rpl_socket): Remove unused variables.
50521
50522 2008-09-29  Bruno Haible  <bruno@clisp.org>
50523
50524         * m4/sockets.m4 (gl_SOCKETS): Check also for the need to use -lsocket.
50525         Set LIBSOCKET instead of augmenting LIBS.
50526         * modules/sockets (Link): New section.
50527         * modules/sockets-tests (test_sockets_LDADD): New variable.
50528         * modules/sys_select-tests (test_sys_select_LDADD): New variable.
50529         * modules/poll-tests (test_poll_LDADD): New variable.
50530         * NEWS: Document the change.
50531
50532 2008-09-29  Bruno Haible  <bruno@clisp.org>
50533
50534         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): New macro.
50535         * m4/inet_ntop.m4 (gl_INET_NTOP): Invoke it instead of assigning
50536         ARPA_INET_H directly.
50537         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
50538
50539 2008-09-28  Bruno Haible  <bruno@clisp.org>
50540
50541         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): New macro, extracted
50542         from gl_HEADER_SYS_SOCKET.
50543         (gl_HEADER_SYS_SOCKET): Invoke it.
50544         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
50545
50546 2008-09-28  Bruno Haible  <bruno@clisp.org>
50547
50548         * doc/posix-headers/sys_select.texi: Mention 'struct timeval' problem.
50549         * tests/test-sys_select.c: Include <sys/time.h>, for struct timeval.
50550         Needed on OSF/1 4.0.
50551
50552 2008-09-28  Bruno Haible  <bruno@clisp.org>
50553
50554         Override open more carefully.
50555         * lib/open.c (orig_open): New function.
50556         (rpl_open): Use orig_open instead of open.
50557         * lib/fcntl.in.h: Add special invocation convention.
50558         * m4/open.m4 (gl_PREREQ_OPEN): New macro.
50559         (gl_FUNC_OPEN): Invoke it.
50560
50561         Override freopen more carefully.
50562         * lib/freopen.c (orig_freopen): New function.
50563         (rpl_freopen): Use orig_freopen instead of freopen.
50564         * m4/freopen.m4 (gl_PREREQ_FREOPEN): New macro.
50565         (gl_FUNC_FREOPEN): Invoke it.
50566
50567         Override fopen more carefully.
50568         * lib/fopen.c (orig_fopen): New function.
50569         (rpl_fopen): Use orig_fopen instead of fopen.
50570         * m4/fopen.m4 (gl_PREREQ_FOPEN): New macro.
50571         (gl_FUNC_FOPEN): Invoke it.
50572         Needed on AIX. Reported by Rainer Tammer <tammer@tammer.net>.
50573
50574 2008-09-28  Bruno Haible  <bruno@clisp.org>
50575
50576         * lib/pipe.h (create_pipe_out, create_pipe_bidi): Add comment about
50577         SIGPIPE.
50578
50579 2008-09-28  Bruno Haible  <bruno@clisp.org>
50580
50581         * tests/test-sigaction.c (handler, main): Disable the check whether
50582         SA_RESETHAND has reverted the installed handler to SIG_DFL. Needed on
50583         glibc systems with LinuxThreads.
50584
50585 2008-09-28  Bruno Haible  <bruno@clisp.org>
50586
50587         * doc/posix-functions/freopen.texi: Mention the trailing slash problem.
50588
50589         * lib/stdio.in.h (fopen, freopen): Undefine before redefining. Needed
50590         with AIX xlc.
50591         * lib/fcntl.in.h (open): Likewise.
50592         Reported by Rainer Tammer <tammer@tammer.net>.
50593
50594 2008-09-28  Bruno Haible  <bruno@clisp.org>
50595
50596         * modules/posix_spawnp-tests: New file.
50597         * tests/test-posix_spawn.c: New file.
50598         * tests/test-posix_spawn.in.sh: New file.
50599
50600         New module 'posix_spawnp'.
50601         * modules/posix_spawnp: New file.
50602         * lib/spawnp.c: New file, from GNU libc with modifications.
50603         * doc/posix-functions/posix_spawnp.texi: Mention the new module.
50604
50605         New module 'posix_spawn'.
50606         * modules/posix_spawn: New file.
50607         * lib/spawn.c: New file, from GNU libc with modifications.
50608         * doc/posix-functions/posix_spawn.texi: Mention the new module.
50609
50610         New module 'posix_spawnattr_destroy'.
50611         * modules/posix_spawnattr_destroy: New file.
50612         * lib/spawnattr_destroy.c: New file, from GNU libc with modifications.
50613         * doc/posix-functions/posix_spawnattr_destroy.texi: Mention the new
50614         module.
50615
50616         New module 'posix_spawnattr_setsigmask'.
50617         * modules/posix_spawnattr_setsigmask: New file.
50618         * lib/spawnattr_setsigmask.c: New file, from GNU libc with
50619         modifications.
50620         * doc/posix-functions/posix_spawnattr_setsigmask.texi: Mention the
50621         new module.
50622
50623         New module 'posix_spawnattr_getsigmask'.
50624         * modules/posix_spawnattr_getsigmask: New file.
50625         * lib/spawnattr_getsigmask.c: New file, from GNU libc with
50626         modifications.
50627         * doc/posix-functions/posix_spawnattr_getsigmask.texi: Mention the
50628         new module.
50629
50630         New module 'posix_spawnattr_setsigdefault'.
50631         * modules/posix_spawnattr_setsigdefault: New file.
50632         * lib/spawnattr_setdefault.c: New file, from GNU libc with
50633         modifications.
50634         * doc/posix-functions/posix_spawnattr_setsigdefault.texi: Mention the
50635         new module.
50636
50637         New module 'posix_spawnattr_getsigdefault'.
50638         * modules/posix_spawnattr_getsigdefault: New file.
50639         * lib/spawnattr_getdefault.c: New file, from GNU libc with
50640         modifications.
50641         * doc/posix-functions/posix_spawnattr_getsigdefault.texi: Mention the
50642         new module.
50643
50644         New module 'posix_spawnattr_setschedpolicy'.
50645         * modules/posix_spawnattr_setschedpolicy: New file.
50646         * lib/spawnattr_setschedpolicy.c: New file, from GNU libc with
50647         modifications.
50648         * doc/posix-functions/posix_spawnattr_setschedpolicy.texi: Mention the
50649         new module.
50650
50651         New module 'posix_spawnattr_getschedpolicy'.
50652         * modules/posix_spawnattr_getschedpolicy: New file.
50653         * lib/spawnattr_getschedpolicy.c: New file, from GNU libc with
50654         modifications.
50655         * doc/posix-functions/posix_spawnattr_getschedpolicy.texi: Mention the
50656         new module.
50657
50658         New module 'posix_spawnattr_setschedparam'.
50659         * modules/posix_spawnattr_setschedparam: New file.
50660         * lib/spawnattr_setschedparam.c: New file, from GNU libc with
50661         modifications.
50662         * doc/posix-functions/posix_spawnattr_setschedparam.texi: Mention the
50663         new module.
50664
50665         New module 'posix_spawnattr_getschedparam'.
50666         * modules/posix_spawnattr_getschedparam: New file.
50667         * lib/spawnattr_getschedparam.c: New file, from GNU libc with
50668         modifications.
50669         * doc/posix-functions/posix_spawnattr_getschedparam.texi: Mention the
50670         new module.
50671
50672         New module 'posix_spawnattr_setpgroup'.
50673         * modules/posix_spawnattr_setpgroup: New file.
50674         * lib/spawnattr_setpgroup.c: New file, from GNU libc with
50675         modifications.
50676         * doc/posix-functions/posix_spawnattr_setpgroup.texi: Mention the new
50677         module.
50678
50679         New module 'posix_spawnattr_getpgroup'.
50680         * modules/posix_spawnattr_getpgroup: New file.
50681         * lib/spawnattr_getpgroup.c: New file, from GNU libc with
50682         modifications.
50683         * doc/posix-functions/posix_spawnattr_getpgroup.texi: Mention the new
50684         module.
50685
50686         New module 'posix_spawnattr_setflags'.
50687         * modules/posix_spawnattr_setflags: New file.
50688         * lib/spawnattr_setflags.c: New file, from GNU libc with modifications.
50689         * doc/posix-functions/posix_spawnattr_setflags.texi: Mention the new
50690         module.
50691
50692         New module 'posix_spawnattr_getflags'.
50693         * modules/posix_spawnattr_getflags: New file.
50694         * lib/spawnattr_getflags.c: New file, from GNU libc with modifications.
50695         * doc/posix-functions/posix_spawnattr_getflags.texi: Mention the new
50696         module.
50697
50698         New module 'posix_spawnattr_init'.
50699         * modules/posix_spawnattr_init: New file.
50700         * lib/spawnattr_init.c: New file, from GNU libc with modifications.
50701         * doc/posix-functions/posix_spawnattr_init.texi: Mention the new
50702         module.
50703
50704         New module 'posix_spawn_file_actions_destroy'.
50705         * modules/posix_spawn_file_actions_destroy: New file.
50706         * lib/spawn_faction_destroy.c: New file, from GNU libc with
50707         modifications.
50708         * doc/posix-functions/posix_spawn_file_actions_destroy.texi: Mention
50709         the new module.
50710
50711         New module 'posix_spawn_file_actions_addopen'.
50712         * modules/posix_spawn_file_actions_addopen: New file.
50713         * lib/spawn_faction_addopen.c: New file, from GNU libc with
50714         modifications.
50715         * doc/posix-functions/posix_spawn_file_actions_addopen.texi: Mention
50716         the new module.
50717
50718         New module 'posix_spawn_file_actions_adddup2'.
50719         * modules/posix_spawn_file_actions_adddup2: New file.
50720         * lib/spawn_faction_adddup2.c: New file, from GNU libc with
50721         modifications.
50722         * doc/posix-functions/posix_spawn_file_actions_adddup2.texi: Mention
50723         the new module.
50724
50725         New module 'posix_spawn_file_actions_addclose'.
50726         * modules/posix_spawn_file_actions_addclose: New file.
50727         * lib/spawn_faction_addclose.c: New file, from GNU libc with
50728         modifications.
50729         * doc/posix-functions/posix_spawn_file_actions_addclose.texi: Mention
50730         the new module.
50731
50732         New module 'posix_spawn_file_actions_init'.
50733         * modules/posix_spawn_file_actions_init: New file.
50734         * lib/spawn_faction_init.c: New file, from GNU libc with modifications.
50735         * doc/posix-functions/posix_spawn_file_actions_init.texi: Mention the
50736         new module.
50737
50738         New module 'posix_spawn-internal'.
50739         * modules/posix_spawn-internal: New file.
50740         * lib/spawn_int.h: New file, from GNU libc with modifications.
50741         * lib/spawni.c: New file, from GNU libc with modifications.
50742         * m4/posix_spawn.m4: New file.
50743
50744         New module 'spawn'.
50745         * modules/spawn: New file.
50746         * lib/spawn.in.h: New file, from GNU libc with modifications.
50747         * m4/spawn_h.m4: New file.
50748         * doc/posix-headers/spawn.texi: Mention the new module.
50749
50750 2008-09-28  Bruno Haible  <bruno@clisp.org>
50751
50752         * modules/sched-tests: New file.
50753         * tests/test-sched.c: New file.
50754
50755         New module 'sched'.
50756         * modules/sched: New file.
50757         * lib/sched.in.h: New file.
50758         * m4/sched_h.m4: New file.
50759         * doc/posix-headers/sched.texi: Mention the new module.
50760
50761 2008-09-27  Eric Blake  <ebb9@byu.net>
50762
50763         Fix previous patch, and tweak references to $0.
50764         * posix-modules: Call func_gnulib_dir before using $gnulib_dir.
50765         (func_version, func_gnulib_dir): Don't call this program
50766         gnulib-tool.
50767         (func_gnulib_dir, func_tmpdir, func_fatal_error): Avoid shell bugs
50768         with using $0 in function.
50769         * gnulib-tool (func_gnulib_dir, func_tmpdir): Likewise.
50770         (func_fatal_error): Reuse the name the user invoked us with.
50771
50772 2008-09-27  Bruno Haible  <bruno@clisp.org>
50773
50774         * m4/iconv_h.m4 (gl_REPLACE_ICONV_H): New macro.
50775         (gl_ICONV_H_DEFAULTS): Initialize ICONV_H here...
50776         (gl_ICONV_H): Not here.
50777         * m4/iconv_open.m4 (gl_REPLACE_ICONV_OPEN): Invoke gl_REPLACE_ICONV_H
50778         instead of assigning ICONV_H directly.
50779
50780         * m4/wchar.m4 (gl_REPLACE_WCHAR_H): New macro.
50781         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Invoke it instead of assigning
50782         WCHAR_H directly.
50783
50784 2008-09-27  Bruno Haible  <bruno@clisp.org>
50785
50786         * lib/arpa_inet.in.h: Include the GL_LINK_WARNING anchor.
50787         * modules/arpa_inet (Depends-on): Add link-warning.
50788         (Makefile.am): Insert the definition of GL_LINK-WARNING.
50789         * modules/unistd (Makefile.am): Likewise.
50790
50791 2008-09-26  Bruno Haible  <bruno@clisp.org>
50792
50793         * posix-modules (cvsdatestamp, last_checkin_date, version): Remove
50794         variables.
50795         (func_version): Essentially copied from gnulib-tool.
50796         (func_exit, func_gnulib_dir, func_tmpdir, func_fatal_error,
50797         func_readlink): Copied from gnulib-tool.
50798
50799 2008-09-26  Bruno Haible  <bruno@clisp.org>
50800
50801         * gnulib-tool (func_version): Change directory to $gnulib_dir before
50802         invoking git-version-gen.
50803
50804 2008-09-26  Bruno Haible  <bruno@clisp.org>
50805
50806         * posix-modules: Update to directory names changed on 2008-01-19.
50807         Remove commas in output before splitting into words. No more need to
50808         avoid 'ftruncate' since 2007-02-19.
50809
50810 2008-09-26  Bruno Haible  <bruno@clisp.org>
50811
50812         * doc/posix-headers/errno.texi: Remove mention of module 'EOVERFLOW'.
50813
50814 2008-09-26  Bruno Haible  <bruno@clisp.org>
50815
50816         * lib/fwriteerror.c (do_fwriteerror): Ignore error EPIPE.
50817         * modules/fwriteerror (Depends-on): Add errno.
50818
50819 2008-09-26  Bruno Haible  <bruno@clisp.org>
50820
50821         * tests/test-vc-list-files-git.sh: Explain reason for skipping test.
50822         * tests/test-vc-list-files-cvs.sh: Likewise.
50823
50824 2008-09-26  Bruno Haible  <bruno@clisp.org>
50825
50826         * doc/posix-headers/sys_resource.texi: Reorder items.
50827
50828 2008-09-26  Jim Meyering  <meyering@redhat.com>
50829
50830         fts: tweak inode comparison function
50831         * lib/fts.c (fts_compare_ino): Sort on increasing, not decreasing
50832         inode numbers, as documented.
50833
50834         fts: sort dirent entries on inode number before traversing
50835         This avoids a quadratic, seek-related performance penalty when
50836         operating on a directory containing many entries (measurable at 10k;
50837         3.5 hours at 2 million entries with a cold cache) on certain types
50838         of file systems, including ext3 and ext4, but not tmpfs.
50839         * lib/fts.c (DT_MUST_BE, NOT_AN_INODE_NUMBER, D_INO): Define.
50840         (FTS_INODE_SORT_DIR_ENTRIES_THRESHOLD): Define if not defined.
50841         (S_MAGIC_TMPFS, S_MAGIC_NFS): Define.
50842         (fs_handles_readdir_ordered_dirents_efficiently): New function.
50843         (dirent_inode_sort_may_be_useful, fts_compare_ino): Likewise.
50844         (fts_build): Set the stat.st_ino member from D_INO.
50845         If it is likely to be useful, sort dirent entries on inode number.
50846
50847         * m4/fts.m4 (gl_FUNC_FTS_CORE): Check for fstatfs, sys/vfs.h,
50848         and the struct statfs.f_type member.
50849         * modules/fts (Depends-on): Add d-ino.
50850
50851 2008-09-26  Bruno Haible  <bruno@clisp.org>
50852
50853         * modules/sigpipe-die (Depends-on): Add sigpipe.
50854
50855         * lib/stdio.in.h (fprintf, vfprintf, printf, vprintf, fputc, putc,
50856         putchar, fputs, puts, fwrite): Replace when REPLACE_STDIO_WRITE_FUNCS
50857         and GNULIB_STDIO_H_SIGPIPE are set.
50858         * lib/stdio-write.c: New file.
50859         * m4/stdio_h.m4 (gl_STDIO_H): Set GNULIB_FPRINTF, GNULIB_PRINTF,
50860         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
50861         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
50862         REPLACE_STDIO_WRITE_FUNCS.
50863         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FPRINTF, GNULIB_PRINTF,
50864         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
50865         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
50866         GNULIB_STDIO_H_SIGPIPE, REPLACE_STDIO_WRITE_FUNCS.
50867         * modules/stdio (Files): Add lib/stdio-write.c.
50868         (Makefile.am): Substitute GNULIB_FPRINTF, GNULIB_PRINTF,
50869         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
50870         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
50871         GNULIB_STDIO_H_SIGPIPE, REPLACE_STDIO_WRITE_FUNCS.
50872         * m4/fprintf-posix.m4 (gl_REPLACE_FPRINTF): Define
50873         REPLACE_FPRINTF_POSIX.
50874         * m4/printf-posix-rpl.m4 (gl_REPLACE_PRINTF): Define
50875         REPLACE_PRINTF_POSIX.
50876         * m4/vfprintf-posix.m4 (gl_REPLACE_VFPRINTF): Define
50877         REPLACE_VFPRINTF_POSIX.
50878         * m4/vprintf-posix.m4 (gl_REPLACE_VPRINTF): Define
50879         REPLACE_VPRINTF_POSIX.
50880         * doc/posix-functions/fprintf.texi: Mention the sigpipe module and the
50881         SIGPIPE issue.
50882         * doc/posix-functions/fputc.texi: Likewise.
50883         * doc/posix-functions/fputs.texi: Likewise.
50884         * doc/posix-functions/fwrite.texi: Likewise.
50885         * doc/posix-functions/printf.texi: Likewise.
50886         * doc/posix-functions/putc.texi: Likewise.
50887         * doc/posix-functions/putchar.texi: Likewise.
50888         * doc/posix-functions/puts.texi: Likewise.
50889         * doc/posix-functions/vfprintf.texi: Likewise.
50890         * doc/posix-functions/vprintf.texi: Likewise.
50891
50892         * modules/safe-write (Depends-on): Add write.
50893
50894         * modules/sigpipe-tests: New file.
50895         * tests/test-sigpipe.c: New file.
50896         * tests/test-sigpipe.sh: New file.
50897
50898         * modules/write: New file.
50899         * lib/unistd.in.h: Include <sys/types.h>.
50900         (write): New declaration.
50901         * lib/write.c: New file.
50902         * m4/write.m4: New file.
50903         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
50904         GNULIB_UNISTD_H_SIGPIPE, GNULIB_WRITE, REPLACE_WRITE.
50905         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_SIGPIPE,
50906         GNULIB_WRITE, REPLACE_WRITE.
50907         * doc/posix-functions/write.texi: Mention the write, sigpipe modules
50908         and the SIGPIPE issue.
50909
50910         * lib/signal.in.h (SIGPIPE): Define to a replacement value.
50911         (raise): New declaration.
50912         * lib/sigprocmask.c (SIGPIPE_handler): New variable.
50913         (ext_signal): New function.
50914         (rpl_raise): New function.
50915         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize
50916         GNULIB_SIGNAL_H_SIGPIPE.
50917         * modules/signal (Makefile.am): Substitute GNULIB_SIGNAL_H_SIGPIPE.
50918         * doc/posix-headers/signal.texi: Mention the SIGPIPE issue.
50919
50920         * modules/sigpipe: New file.
50921         * m4/sigpipe.m4: New file.
50922
50923 2008-09-25  Derek Price  <derek@ximbiot.com>
50924             Bruno Haible  <bruno@clisp.org>
50925
50926         * gnulib-tool (func_import): Report all license incompatibilities, not
50927         just the first one.
50928
50929 2008-09-25  Bruno Haible  <bruno@clisp.org>
50930
50931         * gnulib-tool (func_import): When computing the edits, consider not
50932         only the Makefile.ams that exist but also those that will be generated.
50933
50934 2008-09-25  Simon Josefsson  <simon@josefsson.org>
50935
50936         * modules/sys_select-tests (Depends-on): Remove sys_select itself,
50937         fixes gnulib-tool --test warning about duplicate dependency.
50938
50939 2008-09-25  Bruno Haible  <bruno@clisp.org>
50940
50941         * gnulib-tool: Don't ask the user to perform edits in the generated
50942         Makefile.ams.
50943         (func_emit_lib_Makefile_am): Emit empty SUBDIRS. Execute edits that
50944         apply to the Makefile.am being generated.
50945         (func_emit_tests_Makefile_am): Execute edits that apply to the
50946         Makefile.am being generated.
50947         (func_import): Setup list of Makefile.am edits before emitting the
50948         Makefile.ams, not at the end.
50949         (func_create_testdir): Update.
50950         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
50951
50952 2008-09-25  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
50953
50954         * gnulib-tool (func_import): Store the --tests-base option in the
50955         comment in gnulib-cache.m4.
50956
50957 2008-09-24  Paolo Bonzini  <bonzini@gnu.org>
50958
50959         * NEWS: Document increased portability that sys_select now provides.
50960
50961         * lib/sys_select.in.h: Install select wrapper.
50962         * lib/sys_socket.in.h: Use more descriptive name when there is no
50963         select wrapper.
50964         * lib/winsock-select.c: New.
50965         * m4/sys_select_h.m4: Compile lib/winsock-select.c if WinSock is used.
50966         Require gl_HEADER_SYS_SOCKET.
50967         * modules/sys_select: Depend on alloca, add lib/winsock-select.c.
50968         * modules/sys_select-tests: Copy dependencies from modules/poll-tests.
50969         * tests/test-sys_select.c: Add functional tests.
50970
50971 2008-09-24  Eric Blake  <ebb9@byu.net>
50972
50973         open, fopen: close fd leak in last patch
50974         * lib/open.c (rpl_open): Close fd before returning error.
50975         * lib/fopen.c (rpl_fopen): Close fd before returning error.
50976         * doc/posix-functions/open.texi (open): Document that Irix also
50977         has the bug.
50978         * doc/posix-functions/fopen.texi (fopen): Likewise.
50979         Reported by Paolo Bonzini.
50980
50981 2008-09-24  Bruno Haible  <bruno@clisp.org>
50982
50983         Ensure that a filename ending in a slash cannot be used to access a
50984         non-directory.
50985         * lib/open.c (rpl_open): When the filename ends in a slash, use fstat()
50986         to check whether it's really a directory.
50987         * lib/fopen.c: Include fcntl.h, unistd.h.
50988         (rpl_fopen): When the filename ends in a slash, use open(), fstat(),
50989         and fdopen().
50990         * modules/fopen (Depends-on): Add unistd.
50991         * tests/test-open.c (main): Try to open "/dev/null/" as a directory.
50992         * tests/test-fopen.c (main): Likewise.
50993         * doc/posix-functions/open.texi: Mention the HP-UX, Solaris bug.
50994         * doc/posix-functions/fopen.texi: Likewise.
50995         Reported by Eric Blake.
50996
50997 2008-09-23  Eric Blake  <ebb9@byu.net>
50998
50999         c-stack: avoid compiler optimizations when provoking overflow
51000         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Make
51001         recursion harder to optimize, to ensure a stack overflow occurs.
51002         * tests/test-c-stack.c (recurse): Likewise.
51003         Borrowed from libsigsegv.
51004
51005         c-stack: work around Irix sigaltstack bug
51006         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Check
51007         whether sigaltstack uses wrong end of stack_t (copied in part from
51008         libsigsegv).
51009         * lib/c-stack.c (c_stack_action) [!HAVE_LIBSIGSEGV]: Work around
51010         Irix bug, without requiring an over-allocation.
51011         * doc/posix-functions/sigaltstack.texi (sigaltstack): Document the
51012         bug.
51013
51014         fopen: document mingw bug on directories
51015         * doc/posix-functions/fopen.texi (fopen): Mention mingw bug for
51016         not allowing a stream visiting a directory, even though reading
51017         from such a stream is not portable.
51018
51019 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
51020
51021         * lib/poll.c: Rewrite.
51022         * modules/poll: Depend on alloca.
51023
51024 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
51025
51026         * lib/sys_socket.in.h: Do not implement rpl_setsockopt here,
51027         instead define prototypes for a full set of wrappers.  Ensure
51028         that Cygwin does not use the compatibility code, which is only
51029         for MinGW.
51030         * lib/winsock.c: New.
51031         * m4/sys_socket_h.m4: Compile lib/winsock.c if WinSock is being used.
51032         * modules/sys_socket: Add lib/winsock.c.
51033
51034         * modules/poll-tests: Add errno and perror.
51035         * tests/test-poll.c: Use ioctl, not ioctlsocket.
51036
51037 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
51038
51039         * tests/test-poll.c: Downgrade minimum needed Winsock version.
51040
51041 2008-09-23  Bruno Haible  <bruno@clisp.org>
51042
51043         * doc/posix-functions/*: Add info about functions missing on IRIX 5.3.
51044         * doc/glibc-functions/*: Likewise.
51045
51046 2008-09-23  Simon Josefsson  <simon@josefsson.org>
51047
51048         * tests/test-perror.sh (tmpfiles): Cleanup temporary files on
51049         success.
51050
51051 2008-09-22  Eric Blake  <ebb9@byu.net>
51052             Bruno Haible  <bruno@clisp.org>
51053
51054         vasnprintf: fix x86/glibc regression on printf("%La", 0.0L)
51055         * lib/vasnprintf.c (VASNPRINTF): Support 0.0 on platforms that
51056         supply %A but mishandle pseudo-NaN.
51057         Reported by Simon Josefsson.
51058
51059 2008-09-21  Bruno Haible  <bruno@clisp.org>
51060
51061         * tests/test-lock.c (main): Tweak skip message.
51062         * tests/test-tls.c (main): Likewise.
51063
51064 2008-09-21  Bruno Haible  <bruno@clisp.org>
51065
51066         * m4/sigaction.m4 (gl_SIGACTION): Remove unnecessary AC_SUBST. Check
51067         whether 'struct sigaction' has sa_sigaction here...
51068         (gl_PREREQ_SIG_HANDLER_H): ... not here.
51069         (gl_PREREQ_SIGACTION): Remove unnecessary AC_SUBST.
51070
51071 2008-09-21  Bruno Haible  <bruno@clisp.org>
51072
51073         * MODULES.html.sh (Support for obsolete systems lacking ANSI C 89): New
51074         section.
51075         (Support for systems lacking ANSI C 89): Move stdlib, exit, strtol,
51076         strtoul, memchr, memcmp, memcpy, memmove, memset, strcspn, strpbrk to
51077         the new section.
51078         (Support for obsolete systems lacking POSIX:2001): New section.
51079         (String handling <string.h>): Move strdup to the new section.
51080         Suggested by Simon Josefsson and Paolo Bonzini.
51081
51082 2008-09-21  Bruno Haible  <bruno@clisp.org>
51083
51084         * tests/test-vasnprintf-posix.c (test_function): Allow 3-digit
51085         exponents in %e and %g results on 'long double'. Needed for mingw's
51086         improved *printf functions.
51087         * tests/test-vasprintf-posix.c (test_function): Likewise.
51088         * tests/test-snprintf-posix.h (test_function): Likewise.
51089         * tests/test-sprintf-posix.h (test_function): Likewise.
51090         Reported by Eric Blake.
51091
51092 2008-09-21  Bruno Haible  <bruno@clisp.org>
51093
51094         * tests/test-snprintf-posix.h (test_function): Remove useless ASSERTs.
51095         * tests/test-sprintf-posix.h (test_function): Likewise.
51096
51097 2008-09-21  Bruno Haible  <bruno@clisp.org>
51098
51099         * modules/getpass (Depends-on): Add strdup-posix.
51100
51101         New module 'strdup-posix'.
51102         * modules/strdup-posix: New file.
51103         * m4/strdup.m4 (gl_FUNC_STRDUP_POSIX): New macro.
51104         * lib/string.in.h (strdup): Replace if REPLACE_STRDUP is 1.
51105         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
51106         REPLACE_STRDUP.
51107         * modules/string (Makefile.am): Substitute REPLACE_STRDUP.
51108         * doc/posix-functions/strdup.texi: Mention module strdup-posix.
51109         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
51110         strdup-posix.
51111
51112         * modules/strdup (Depends-on): Remove malloc-posix.
51113
51114 2008-09-20  Bruno Haible  <bruno@clisp.org>
51115
51116         * lib/fstrcmp.c: Add data about branch probabilities, from Ralf
51117         Wildenhues.
51118
51119 2008-09-20  Bruno Haible  <bruno@clisp.org>
51120
51121         Ensure that wint_t gets defined on IRIX 5.3.
51122         * lib/wchar.in.h (wint_t): Define if not defined by the system.
51123         * lib/wctype.in.h (wint_t): Likewise.
51124         (__wctype_wint_t): Remove type.
51125         (isw*): Use wint_t instead of __wctype_wint_t.
51126         * m4/wchar.m4 (gl_WCHAR_H): Invoke gt_TYPE_WINT_T and set HAVE_WINT_T.
51127         * modules/wchar (Files): Add m4/wint_t.m4.
51128         (Makefile.am): Substitute HAVE_WINT_T.
51129         * tests/test-wchar.c: Check that wchar_t and wint_t are defined.
51130         * tests/test-wctype.c: Check that wint_t is defined.
51131         * doc/posix-headers/wchar.texi: Mention the IRIX 5 problem.
51132         * doc/posix-headers/wctype.texi: Likewise.
51133         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
51134
51135 2008-09-18  Bruno Haible  <bruno@clisp.org>
51136
51137         * gnulib-tool (func_exit): Update comment.
51138
51139 2008-09-18  Simon Josefsson  <simon@josefsson.org>
51140
51141         * modules/getaddrinfo (Depends-on): Remove strdup, this module
51142         assumes strdup exists and does not depend on strdup to return
51143         ENOMEM on out of memory conditions.
51144
51145 2008-09-18  Bruno Haible  <bruno@clisp.org>
51146
51147         * lib/vasnprintf.c (VASNPRINTF): When printing ±0.0L in
51148         NEED_PRINTF_INFINITE_LONG_DOUBLE case with 'e' format, always use two
51149         digits for the exponent.
51150
51151 2008-09-18  Jim Meyering  <meyering@redhat.com>
51152             Bruno Haible  <bruno@clisp.org>
51153
51154         * lib/vasnprintf.c (decimal_point_char): Define also if
51155         NEED_PRINTF_INFINITE_LONG_DOUBLE.
51156
51157 2008-09-16  Bruno Haible  <bruno@clisp.org>
51158         and Eric Blake  <ebb9@byu.net>
51159
51160         vasnprintf: support Irix 5.3
51161         * lib/vasnprintf.c (VASNPRINTF): Also handle -0.0L on platforms
51162         that mishandle long double infinity.
51163         Reported by Tom G. Christensen.
51164
51165 2008-09-16  Bruno Haible  <bruno@clisp.org>
51166
51167         * doc/glibc-functions/scandir.texi: Mention the function is missing on
51168         Solaris 9.
51169         * doc/glibc-functions/alphasort.texi: Likewise.
51170         Reported by Michael Haubenwallner <michael.haubenwallner@salomon.at>.
51171
51172 2008-09-16  Jim Meyering  <meyering@redhat.com>
51173
51174         posix-shell.m4: reject opensolaris's "sh (AT&T Research) 1993-12-28 s+"
51175         * m4/posix-shell.m4 (gl_POSIX_SHELL): Reject a shell that lets
51176         a umask modification leak out of a subshell.  Otherwise, the
51177         opensolaris /bin/sh would be accepted and thus cause unwarranted
51178         failures in the coreutils test suite.
51179
51180 2008-09-16  Paolo Bonzini  <bonzini@gnu.org>
51181
51182         * tests/test-poll.c (connect_to_socket): Allow non-blocking connect
51183         to succeed.
51184
51185 2008-09-16  Jim Meyering  <meyering@redhat.com>
51186
51187         avoid spurious test failure when library is built without ACL support
51188         * m4/acl.m4 (USE_ACL): Define as a shell variable, too, for...
51189         * modules/acl-tests (Makefile.am) [TESTS_ENVIRONMENT]: Add USE_ACL.
51190         * tests/test-file-has-acl.sh: Skip if USE_ACL == 0.
51191         * tests/test-copy-acl.sh: Likewise.
51192
51193 2008-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
51194
51195         * lib/fstrcmp.c (fstrcmp_bounded): Use a second, less quick upper bound
51196         based on character occurrence counts.
51197
51198 2008-09-15  Eric Blake  <ebb9@byu.net>
51199
51200         tests: avoid some compiler warnings
51201         * tests/test-memchr.c (main): Pass NULL indirectly.
51202         * tests/test-closein.c (main): Avoid unused variable.
51203
51204 2008-09-15  Bruno Haible  <bruno@clisp.org>
51205
51206         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Test for all the macros that
51207         are missing on OpenBSD 4.0 individually.
51208         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
51209
51210 2008-09-15  Bruno Haible  <bruno@clisp.org>
51211
51212         * doc/posix-headers/errno.texi: Mention the Cygwin problem.
51213         * doc/posix-functions/strerror.texi: Mention also Cygwin.
51214         * doc/posix-functions/perror.texi: Likewise.
51215         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Test also whether ECANCELED
51216         is missing.
51217         Reported by Eric Blake.
51218
51219         * lib/errno.in.h: Use replacement values >= 2000.
51220         Reported by Eric Blake.
51221
51222 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
51223
51224         * lib/fstrcmp.c (EXTRA_CONTEXT_FIELDS): Add field 'edit_count_limit'.
51225         (EARLY_ABORT): Return true when the edit_count has grown too beyond the
51226         limit.
51227         (fstrcmp_bounded): Initialize the edit_count_limit. Return 0 when
51228         compareseq was aborted.
51229
51230 2008-09-14  Bruno Haible  <bruno@clisp.org>
51231
51232         * lib/fstrcmp.c (EXTRA_CONTEXT_FIELDS): Combine xvec_edit_count and
51233         yvec_edit_count.
51234         (NOTE_DELETE, NOTE_INSERT): Increment the combined edit count.
51235         (fstrcmp_bounded): Simplify result computation accordingly.
51236
51237 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
51238
51239         * lib/fstrcmp.h (fstrcmp_bounded): New declaration.
51240         (fstrcmp): Define in terms of fstrcmp_bounded.
51241         * lib/fstrcmp.c (fstrcmp_bounded): Renamed from fstrcmp. Add
51242         lower_bound argument.
51243         Return quickly if the result is certainly < lower_bound.
51244         * tests/test-fstrcmp.c (check_fstrcmp): Test also fstrcmp_bounded.
51245
51246 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
51247
51248         * lib/diffseq.h (EARLY_ABORT): New macro.
51249         (compareseq): Change return type to bool. Return true when EARLY_ABORT
51250         evaluates to true.
51251
51252 2008-09-14  Bruno Haible  <bruno@clisp.org>
51253
51254         * modules/perror-tests: New file.
51255         * tests/test-perror.sh: New file.
51256         * tests/test-perror.c: New file.
51257
51258         New module 'perror'.
51259         * lib/stdio.in.h (perror): New declaration.
51260         * lib/perror.c: New file.
51261         * m4/perror.m4: New file.
51262         * modules/perror: New file.
51263         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add perror.
51264         * doc/posix-functions/perror.texi: Mention the perror module.
51265         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_PERROR,
51266         REPLACE_PERROR.
51267         * modules/stdio (Makefile.am): Substitute GNULIB_PERROR,
51268         REPLACE_PERROR.
51269
51270 2008-09-14  Bruno Haible  <bruno@clisp.org>
51271
51272         * modules/stdio (Makefile.am): Reorder to match the order in
51273         lib/stdio.in.h.
51274         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
51275
51276 2008-09-13  Bruno Haible  <bruno@clisp.org>
51277
51278         * lib/sys_socket.in.h (EINPROGRESS, ...): Remove definitions.
51279
51280 2008-09-13  Bruno Haible  <bruno@clisp.org>
51281
51282         Extend strerror to cover the added errno values.
51283         * lib/strerror.c: Include errno.h and winsock2.h if it exists.
51284         (rpl_strerror): Provide error messages for the added errno values and
51285         for the WSA* values.
51286         * m4/strerror.m4 (gl_FUNC_STRERROR): Test REPLACE_STRERROR.
51287         (gl_FUNC_STRERROR_SEPARATE): If errno.h is replaced, always replace
51288         strerror.
51289         (gl_PREREQ_STRERROR): Test whether winsock2.h exists.
51290         * modules/strerror (Depends-on): Add errno.
51291         * doc/posix-functions/strerror.texi: Document the change.
51292         * tests/test-strerror.c (main): Check also the string for ETIMEDOUT
51293         and EOVERFLOW.
51294
51295 2008-09-13  Bruno Haible  <bruno@clisp.org>
51296
51297         * modules/EOVERFLOW: Remove file.
51298         * m4/eoverflow.m4: Remove file.
51299         * modules/EOVERFLOW-tests: Remove file.
51300         * tests/test-EOVERFLOW.c: Remove file.
51301         * modules/fprintf-posix (Depends-on): Replace EOVERFLOW with errno.
51302         * modules/ftell (Depends-on): Likewise.
51303         * modules/getdelim (Depends-on): Likewise.
51304         * modules/getugroups (Depends-on): Likewise.
51305         * modules/poll (Depends-on): Likewise.
51306         * modules/snprintf (Depends-on): Likewise.
51307         * modules/sprintf-posix (Depends-on): Likewise.
51308         * modules/vasnprintf (Depends-on): Likewise.
51309         * modules/vasprintf (Depends-on): Likewise.
51310         * modules/vfprintf-posix (Depends-on): Likewise.
51311         * modules/vsnprintf (Depends-on): Likewise.
51312         * modules/vsprintf-posix (Depends-on): Likewise.
51313         * modules/xvasprintf (Depends-on): Likewise.
51314         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
51315         * modules/unistdio/u8-vasprintf (Depends-on): Likewise.
51316         * modules/unistdio/u8-vsnprintf (Depends-on): Likewise.
51317         * modules/unistdio/u8-vsprintf (Depends-on): Likewise.
51318         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
51319         * modules/unistdio/u8-u8-vasprintf (Depends-on): Likewise.
51320         * modules/unistdio/u8-u8-vsnprintf (Depends-on): Likewise.
51321         * modules/unistdio/u8-u8-vsprintf (Depends-on): Likewise.
51322         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
51323         * modules/unistdio/u16-u16-vasprintf (Depends-on): Likewise.
51324         * modules/unistdio/u16-u16-vsnprintf (Depends-on): Likewise.
51325         * modules/unistdio/u16-u16-vsprintf (Depends-on): Likewise.
51326         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
51327         * modules/unistdio/u16-vasprintf (Depends-on): Likewise.
51328         * modules/unistdio/u16-vsnprintf (Depends-on): Likewise.
51329         * modules/unistdio/u16-vsprintf (Depends-on): Likewise.
51330         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
51331         * modules/unistdio/u32-vasprintf (Depends-on): Likewise.
51332         * modules/unistdio/u32-vsnprintf (Depends-on): Likewise.
51333         * modules/unistdio/u32-vsprintf (Depends-on): Likewise.
51334         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
51335         * modules/unistdio/u32-u32-vasprintf (Depends-on): Likewise.
51336         * modules/unistdio/u32-u32-vsnprintf (Depends-on): Likewise.
51337         * modules/unistdio/u32-u32-vsprintf (Depends-on): Likewise.
51338         * modules/unistdio/ulc-fprintf (Depends-on): Likewise.
51339         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
51340         * modules/unistdio/ulc-vasprintf (Depends-on): Likewise.
51341         * modules/unistdio/ulc-vfprintf (Depends-on): Likewise.
51342         * modules/unistdio/ulc-vsnprintf (Depends-on): Likewise.
51343         * modules/unistdio/ulc-vsprintf (Depends-on): Likewise.
51344         * MODULES.html.sh: Remove EOVERFLOW.
51345         * NEWS: Mention the change.
51346
51347 2008-09-13  Bruno Haible  <bruno@clisp.org>
51348
51349         * modules/errno-tests: New file.
51350         * tests/test-errno.c: New file, incorporating tests/test-EOVERFLOW.c.
51351
51352         * lib/errno.in.h: New file.
51353         * m4/errno_h.m4: New file, borrowing from m4/eoverflow.m4.
51354         * modules/errno: New file.
51355         * doc/posix-headers/errno.texi: Update documentation.
51356         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add errno.
51357
51358 2008-09-13  Bruno Haible  <bruno@clisp.org>
51359
51360         * tests/test-poll.c: Use #if for native Windows, rather than testing
51361         __MSVCRT__.
51362
51363 2008-09-13  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
51364             Bruno Haible  <bruno@clisp.org>
51365
51366         * lib/glob.c: Don't include <pwd.h> on native Windows.
51367         (WINDOWS32): New macro.
51368         (glob) [WINDOW32]: Provide a reasonable replacement for getenv("HOME").
51369
51370 2008-09-13  Bruno Haible  <bruno@clisp.org>
51371
51372         * lib/glthread/cond.h [USE_SOLARIS_THREADS]
51373         (ETIMEDOUT): Remove macro.
51374         (glthread_cond_timedwait_multithreaded): New declaration.
51375         (glthread_cond_timedwait): Use it.
51376         * lib/glthread/cond.c [USE_SOLARIS_THREADS]
51377         (glthread_cond_timedwait_multithreaded): New function.
51378
51379 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
51380
51381         * modules/poll-tests: Do not check for io.h.
51382         * tests/test-poll.c: Check for __MSVCRT__ instead.
51383
51384 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
51385
51386         * lib/sys_socket.in.h (EINPROGRESS): Define for Winsock case.
51387         * modules/poll-tests: Add inet_pton, stdbool, sockets.
51388         * tests/test-poll.c: Use them.  Use _pipe on Windows.
51389
51390 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
51391
51392         * modules/poll-tests: New.
51393         * tests/test-poll.c: New.
51394
51395 2008-09-12  Eric Blake  <ebb9@byu.net>
51396
51397         frexp: test for NetBSD failure on -0.0
51398         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Enhance test, since some, but
51399         not all, bugs from NetBSD 3.0 have been fixed.
51400         * doc/posix-functions/frexp.texi (frexp): Document bug.
51401         Reported by Thomas Klausner.
51402
51403         signbit: work around bug of HP-UX 10.20 cc with -0.0 literal
51404         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Rewrite test to avoid
51405         literal -0.0.
51406         Reported by Jonathan C. Patschke <jp@centtech.com>.
51407
51408 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
51409
51410         * lib/glthread/cond.h: Use dummy implementation also if
51411         USE_WIN32_THREADS.
51412
51413 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
51414
51415         * modules/fnmatch-posix (License): Change to LGPLv2+.
51416         * modules/fnmatch-gnu (License): Likewise.
51417
51418 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
51419
51420         * lib/poll.c (poll): Fix polling unconnected server sockets on WIN32.
51421
51422 2008-09-11  Jim Meyering  <meyering@redhat.com>
51423
51424         * users.txt: Add gtk-vnc.
51425
51426 2008-09-08  Simon Josefsson  <simon@josefsson.org>
51427
51428         * tests/test-bitrotate.c: Test 8/16-bit rotates with 0 and maximum
51429         rotate amounts.
51430
51431         * lib/bitrotate.h: Doc fix, mention that N can be wider than minimally
51432         required for 16-bit and 8-bit rotates.
51433         * lib/bitrotate.h (rotl64, rotr64, rotl32, rotl32, rotl16, rotr16,
51434         rotl8, rotr8): Use UINT64_MAX, UINT32_MAX, UINT16_MAX, and
51435         UINT8_MAX instead of hard-coded constants.
51436         Suggested by Paul Eggert.
51437
51438 2008-09-07  Bruno Haible  <bruno@clisp.org>
51439
51440         * tests/test-striconveh.c (main): Check behaviour when converting from
51441         UTF-7.
51442
51443         Make striconveh work better with stateful encodings.
51444         * lib/striconveh.c (iconv_carefully, iconv_carefully_1): Don't assume
51445         that iconv does not increment the inptr when returning -1/EINVAL.
51446
51447 2008-09-07  Bruno Haible  <bruno@clisp.org>
51448
51449         * build-aux/config.rpath: Update according to libtool-2.2.6.
51450         * build-aux/config.libpath: Likewise.
51451
51452 2008-09-06  Bruno Haible  <bruno@clisp.org>
51453
51454         * lib/freadahead.c (freadahead): Add conditional for SLOW_BUT_NO_HACKS.
51455         * lib/freadptr.c (freadptr): Likewise.
51456         * lib/freadseek.c (freadptrinc): Likewise.
51457         Reported by Simon Josefsson.
51458
51459 2008-09-06  Bruno Haible  <bruno@clisp.org>
51460
51461         * modules/freadptr (License): Change to LGPLv2+.
51462         * modules/freadseek (License): Likewise.
51463         Suggested by Eric Blake.
51464
51465         * modules/memchr2 (License): Change to LGPLv2+.
51466         Approved by Eric Blake.
51467
51468 2008-09-04  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
51469             Bruno Haible  <bruno@clisp.org>
51470
51471         Make gnulib-tool work with native 'sed' on AIX.
51472         * gnulib-tool (sed_noop): New variable.
51473         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am, func_import,
51474         func_add_or_update, func_create_testdir): Use it to initialize sed
51475         script variables.
51476         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
51477
51478 2008-09-04  Albert Chin  <bug-gnulib@mlists.thewrittenword.com>
51479             Bruno Haible  <bruno@clisp.org>
51480
51481         * m4/include_next.m4 (gl_INCLUDE_NEXT): Add check whether #include_next
51482         also works after #include directives.
51483
51484 2008-09-04  Ondřej Vašík  <ovasik@redhat.com>
51485
51486         getdate.y: reject an out-of-range timezone value
51487         * lib/getdate.y (time_zone_hhmm): Reject any TZ offset that is outside
51488         the range [-24...+24].  When specified with only one or two digits,
51489         * tests/test-getdate.c: Tests for the fix.
51490         * doc/getdate.texi: Document this change.
51491
51492 2008-09-03  Bruno Haible  <bruno@clisp.org>
51493
51494         * doc/glibc-functions/strverscmp.texi: Mention the strverscmp module.
51495
51496 2008-09-02  Simon Josefsson  <simon@josefsson.org>
51497
51498         * lib/bitrotate.h (rotl64, rotr64): Add.  Suggested by Bruce Korb
51499         <bruce.korb@gmail.com> with ideas from Ben Pfaff
51500         <blp@cs.stanford.edu>, Bruno Haible <bruno@clisp.org> and Eric
51501         Blake <ebb9@byu.net>.
51502
51503         * tests/test-bitrotate.c: Add more test vectors.
51504
51505 2008-09-02  Eric Blake  <ebb9@byu.net>
51506
51507         vasnprintf-posix: handle large precision via %.*d
51508         * lib/vasnprintf.c (VASNPRINTF): Don't pass precision to snprintf
51509         when handling it ourselves.
51510         * tests/test-vasnprintf-posix.c (test_function): Add test.
51511         * tests/test-snprintf-posix.h (test_function): Likewise.
51512         * tests/test-sprintf-posix.h (test_function): Likewise.
51513         * tests/test-vasprintf-posix.c (test_function): Likewise.
51514         Reported by Alain Guibert.
51515
51516 2008-09-01  Eric Blake  <ebb9@byu.net>
51517
51518         c-stack: make configure-time check more robust
51519         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Check for
51520         successful sigaction call.
51521         Reported by Tom G. Christensen.
51522
51523 2008-09-01  Bruno Haible  <bruno@clisp.org>
51524
51525         New module 'findprog-lgpl'.
51526         * modules/findprog-lgpl: New file.
51527         * lib/findprog-lgpl.c: New file.
51528         * lib/findprog.c: Compile nothing in findprog.c if findprog-lgpl.c is
51529         also compiled. Consider the possibly defined symbol IN_FINDPROG_LGPL
51530         to decide whether to use strdup or xstrdup, concatenated_filename or
51531         xconcatenated_filename.
51532
51533 2008-09-01  Bruno Haible  <bruno@clisp.org>
51534
51535         Split module 'concat-filename' into 'concat-filename' (LGPL) and
51536         'xconcat-filename' (GPL).
51537         * modules/concat-filename (Depends-on): Add malloc-posix, remove xalloc.
51538         (License): Change to LGPLv2+.
51539         * modules/xconcat-filename: New file.
51540         * lib/concat-filename.h (concatenated_filename): Change specification.
51541         (xconcatenated_filename): New declaration.
51542         * lib/concat-filename.c: Include errno.h, stdlib.h, not xalloc.h.
51543         (concatenated_filename): Use malloc instead of xalloc. Handle out-of-
51544         memory situations.
51545         * lib/xconcat-filename.c: New file.
51546         * NEWS: Mention the change.
51547         * lib/findprog.c: Include concat-filename.h, not filename.h.
51548         (find_in_path): Use xconcatenated_filename instead of
51549         concatenated_filename.
51550         * lib/javacomp.c: Include concat-filename.h, not filename.h.
51551         (is_envjavac_gcj43_usable, is_envjavac_oldgcj_14_14_usable,
51552         is_envjavac_oldgcj_14_13_usable, is_envjavac_nongcj_usable,
51553         is_gcj_present, is_gcj43_usable, is_oldgcj_14_14_usable,
51554         is_oldgcj_14_13_usable, is_javac_usable): Use xconcatenated_filename
51555         instead of concatenated_filename.
51556         * lib/javaexec.c: Include concat-filename.h, not filename.h.
51557         (execute_java_class): Use xconcatenated_filename instead of
51558         concatenated_filename.
51559         * modules/findprog (Depends-on): Add xconcat-filename, remove filename.
51560         * modules/javacomp (Depends-on): Likewise.
51561         * modules/javaexec (Depends-on): Likewise.
51562
51563 2008-09-01  Bruno Haible  <bruno@clisp.org>
51564
51565         Split module 'filename' into 'filename' and 'concat-filename'.
51566         * modules/filename: Keep only lib/filename.h.
51567         (License): Change to LGPLv2+.
51568         * modules/concat-filename: New file, extracted from modules/filename.
51569         * lib/filename.h (concatenated_filename): Remove declaration.
51570         * lib/concat-filename.h: New file, extracted from lib/filename.h.
51571         * lib/concat-filename.c: Include concat-filename.h.
51572         * NEWS: Mention the change.
51573
51574 2008-09-01  Simon Josefsson  <simon@josefsson.org>
51575
51576         * lib/bitrotate.h (rotl8, rotr8): Add.
51577
51578         * modules/bitrotate (configure.ac): Need
51579         AC_REQUIRE([AC_C_INLINE]).
51580         (Description): Mention stdint.h.  Reported by Bruno Haible
51581         <bruno@clisp.org>.
51582
51583         * lib/bitrotate.h (rotr16, rotl16): Fix mask value.  Reported by
51584         Paolo Bonzini <bonzini@gnu.org>.
51585
51586 2008-08-31  Bruno Haible  <bruno@clisp.org>
51587
51588         Assume Solaris specific bi-arch conventions on Solaris systems.
51589         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): On Solaris in 64-bit
51590         mode, set acl_libdirstem to lib/64. Also set acl_libdirstem2.
51591         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): If acl_libdirstem does not
51592         work, try acl_libdirstem2 as fallback. Otherwise treat acl_libdirstem2
51593         like acl_libdirstem.
51594         (AC_LIB_LINKFLAGS_FROM_LIBS): Treat acl_libdirstem2 like
51595         acl_libdirstem.
51596         * NEWS: Mention the change.
51597         Reported by Ben Taylor <bentaylor.solx86@gmail.com>.
51598
51599 2008-08-31  Jim Meyering  <meyering@redhat.com>
51600
51601         * lib/strftime.h: Add comments describing the two added arguments.
51602
51603         remove duplicate #include directives
51604         * lib/chdir-long.c [TEST_CHDIR]: Remove duplicate #include <stdio.h>.
51605         * lib/putenv.c: Remove duplicate #include <stdlib.h>.
51606
51607 2008-08-31  Bruno Haible  <bruno@clisp.org>
51608
51609         New module 'sigpipe-die'.
51610         * modules/sigpipe-die: New file.
51611         * lib/sigpipe-die.h: New file.
51612         * lib/sigpipe-die.c: New file.
51613         * MODULES.html.sh (Signal handling): Add sigpipe-die.
51614
51615 2008-08-31  Bruno Haible  <bruno@clisp.org>
51616
51617         Don't override previously installed signal handlers.
51618         * lib/fatal-signal.c (saved_sigactions): New variable.
51619         (uninstall_handlers): Reset the signal to the saved handler, not
51620         to SIG_DFL (except when ignored).
51621         (install_handlers): Save the previous handlers.
51622
51623 2008-08-30  Bruno Haible  <bruno@clisp.org>
51624
51625         * gnulib-tool (func_reset_sigpipe): New function.
51626         (func_get_automake_snippet, func_modules_transitive_closure,
51627         func_import): Invoke it before a join command that reads from stdin,
51628         to avoid "echo: write error: Broken pipe" error messages on stderr.
51629         Reported by Sam Steingold <sds@gnu.org>.
51630
51631 2008-08-30  Bruno Haible  <bruno@clisp.org>
51632
51633         * m4/fopen.m4 (gl_FUNC_FOPEN): Test against bug with trailing slash.
51634         Code copied from m4/open.m4.
51635         * lib/fopen.c (rpl_fopen): Return NULL if the mode specifies write
51636         access and the filename ends in a slash. Code copied from lib/open.c.
51637         * doc/posix-functions/fopen.texi: Document bug with trailing slash.
51638         * tests/test-fopen.c (main): Check against bug with trailing slash.
51639
51640 2008-08-29  Bruno Haible  <bruno@clisp.org>
51641
51642         Avoid some "gcc -pedantic" warnings.
51643         * m4/include_next.m4 (gl_INCLUDE_NEXT): Set also PRAGMA_SYSTEM_HEADER.
51644         * lib/arpa_inet.in.h: Use PRAGMA_SYSTEM_HEADER.
51645         * lib/dirent.in.h: Likewise.
51646         * lib/fcntl.in.h: Likewise.
51647         * lib/float.in.h: Likewise.
51648         * lib/iconv.in.h: Likewise.
51649         * lib/inttypes.in.h: Likewise.
51650         * lib/locale.in.h: Likewise.
51651         * lib/math.in.h: Likewise.
51652         * lib/netinet_in.in.h: Likewise.
51653         * lib/search.in.h: Likewise.
51654         * lib/signal.in.h: Likewise.
51655         * lib/stdarg.in.h: Likewise.
51656         * lib/stdint.in.h: Likewise.
51657         * lib/stdio.in.h: Likewise.
51658         * lib/stdlib.in.h: Likewise.
51659         * lib/string.in.h: Likewise.
51660         * lib/strings.in.h: Likewise.
51661         * lib/sys_select.in.h: Likewise.
51662         * lib/sys_socket.in.h: Likewise.
51663         * lib/sys_stat.in.h: Likewise.
51664         * lib/sys_time.in.h: Likewise.
51665         * lib/sysexits.in.h: Likewise.
51666         * lib/time.in.h: Likewise.
51667         * lib/unistd.in.h: Likewise.
51668         * lib/wchar.in.h: Likewise.
51669         * lib/wctype.in.h: Likewise.
51670         * modules/arpa_inet (Makefile.am): Also substitute PRAGMA_SYSTEM_HEADER.
51671         * modules/fchdir (Makefile.am): Likewise.
51672         * modules/fcntl (Makefile.am): Likewise.
51673         * modules/float (Makefile.am): Likewise.
51674         * modules/iconv_open (Makefile.am): Likewise.
51675         * modules/inttypes (Makefile.am): Likewise.
51676         * modules/locale (Makefile.am): Likewise.
51677         * modules/math (Makefile.am): Likewise.
51678         * modules/netinet_in (Makefile.am): Likewise.
51679         * modules/search (Makefile.am): Likewise.
51680         * modules/signal (Makefile.am): Likewise.
51681         * modules/stdarg (Makefile.am): Likewise.
51682         * modules/stdint (Makefile.am): Likewise.
51683         * modules/stdio (Makefile.am): Likewise.
51684         * modules/stdlib (Makefile.am): Likewise.
51685         * modules/string (Makefile.am): Likewise.
51686         * modules/strings (Makefile.am): Likewise.
51687         * modules/sys_select (Makefile.am): Likewise.
51688         * modules/sys_socket (Makefile.am): Likewise.
51689         * modules/sys_stat (Makefile.am): Likewise.
51690         * modules/sys_time (Makefile.am): Likewise.
51691         * modules/sysexits (Makefile.am): Likewise.
51692         * modules/time (Makefile.am): Likewise.
51693         * modules/unistd (Makefile.am): Likewise.
51694         * modules/wchar (Makefile.am): Likewise.
51695         * modules/wctype (Makefile.am): Likewise.
51696         Reported by Reuben Thomas <rrt@sc3d.org>.
51697
51698 2008-08-29  Bruno Haible  <bruno@clisp.org>
51699
51700         * m4/include_next.m4 (gl_INCLUDE_NEXT): Don't define HAVE_INCLUDE_NEXT
51701         any more.
51702
51703 2008-08-29  Simon Josefsson  <simon@josefsson.org>
51704
51705         * MODULES.html.sh (Misc): Add bitrotate.
51706
51707         * modules/bitrotate: New file.
51708
51709         * lib/bitrotate.h: New file.
51710
51711         * modules/bitrotate-tests: New file.
51712
51713         * tests/test-bitrotate.c: New file.
51714
51715         * modules/crypto/gc-arctwo, modules/crypto/arctwo: Add dependency
51716         on the bitrotate module.
51717
51718         * lib/arctwo.c: Use new bitrotate module.
51719
51720 2008-08-29  Jim Meyering  <meyering@redhat.com>
51721
51722         bootstrap: merge changes from coreutils
51723         * build-aux/bootstrap (cp_mark_as_generated): Preserve perms
51724         of copied files.  Remove a kludge, now that this is fixed.
51725         * build-aux/bootstrap: Fix unportable expr usage. (by Ralf Wildenhues)
51726         * build-aux/bootstrap: Remove $bt and $bt2 also when not using gettext.
51727         * build-aux/bootstrap: Remove coreutils-specific SUBDIRS-related code.
51728
51729 2008-08-29  Bruno Haible  <bruno@clisp.org>
51730
51731         * MODULES.html.sh: Remove --cvs-urls option.
51732
51733 2008-08-28  Jose E. Marchesi  <jemarch@gnu.org>  (tiny change)
51734
51735         maint.mk: adjust to file name change
51736         * top/maint.mk: s/Makefile.cfg/cfg.mk/.
51737
51738 2008-08-28  Jim Meyering  <meyering@redhat.com>
51739
51740         * modules/getndelim2 (License): Relicense to LGPLv2+.
51741         Approved by Richard Stallman for the version of 1995, and by
51742         Paul Eggert, Bruno Haible, Eric Blake for their contributions.
51743
51744 2008-08-27  Paolo Bonzini  <bonzini@gnu.org>
51745
51746         * lib/getdelim.c (flockfile, funlockfile): Make all of them
51747         dummy if one is not available.  Do not touch them if
51748         USE_UNLOCKED_IO, instead letting unlocked-io.h do that.
51749         (getc_maybe_unlocked): New.
51750         * m4/getdelim.m4 (gl_PREREQ_GETDELIM): Check for getc_unlocked.
51751
51752 2008-08-26  Eric Blake  <ebb9@byu.net>
51753
51754         doc/INSTALL: resync from autoconf
51755         * doc/Makefile (INSTALL, INSTALL.ISO, INSTALL.UTF-8): Simplify.
51756         (INSTALL_PRELUDE): Delete; this is done more efficiently by
51757         moving...
51758         * install.texi [!autoconf]: ...here.  Resync from autoconf.
51759         * INSTALL: Regenerate.
51760         * INSTALL.ISO: New file.
51761         * INSTALL.UTF-8: Likewise.
51762
51763 2008-08-26  Jim Meyering  <meyering@redhat.com>
51764
51765         GNUmakefile: cfg.mk definitions override default autoreconf-rerun policy
51766         * top/GNUmakefile (_is-dist-target, _is-install-target): Make
51767         these definitions conditional, so that they may be overridden, too.
51768
51769 2008-08-26  Bruno Haible  <bruno@clisp.org>
51770
51771         Generate INSTALL file variants with prettier quotes.
51772         * doc/Makefile (INSTALL_PRELUDE): New macro.
51773         (INSTALL): Use it.
51774         (INSTALL.ISO, INSTALL.UTF-8): New rules.
51775
51776 2008-08-26  Bruno Haible  <bruno@clisp.org>
51777
51778         Run makeinfo in an English locale.
51779         * doc/Makefile (MAKEINFO): New variable.
51780
51781 2008-08-26  Bruno Haible  <bruno@clisp.org>
51782
51783         * doc/Makefile (INSTALL): Use --no-validate instead of --no-warn.
51784         Suggested by Eric Blake.
51785
51786 2008-08-25  Bruno Haible  <bruno@clisp.org>
51787
51788         * doc/Makefile (INSTALL): Generate with @firstparagraphindent set.
51789
51790 2008-08-25  Eric Blake  <ebb9@byu.net>
51791
51792         c-stack: test that stack overflow can be caught
51793         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Also check
51794         that platform allows handling stack overflow; at least OS/2 EMX
51795         has sigaltstack, but crashes before transferring control to
51796         handler on stack overflow.
51797         * lib/c-stack.c [HAVE_SIGALTSTACK]: Adjust conditions to also
51798         check for HAVE_STACK_OVERFLOW_HANDLING.
51799         Reported by Elbert Pol.
51800
51801 2008-08-25  Bruno Haible  <bruno@clisp.org>
51802
51803         * doc/posix-functions/strftime.texi: Fix description of strftime
51804         module.
51805
51806 2008-08-24  Bruno Haible  <bruno@clisp.org>
51807
51808         * tests/uniwidth/test-uc_width2.c: New file.
51809         * tests/uniwidth/test-uc_width2.sh: New file.
51810         * modules/uniwidth/width-tests (Files): Add the new files.
51811         (TESTS): Add uniwidth/test-uc_width2.sh.
51812         (TESTS_ENVIRONMENT): New variable.
51813         (check_PROGRAMS): Add test-uc_width2.
51814         (test_uc_width2_SOURCES): New variable.
51815
51816         Fix uc_width(0x00AB) bug, introduced on 2007-07-08.
51817         * lib/uniwidth/width.c (nonspacing_table_data): Set bit for 0x00AD,
51818         not 0x00AB.
51819         Reported by Alexander V. Lukyanov <lav@netis.ru>.
51820
51821 2008-08-22  Eric Blake  <ebb9@byu.net>
51822
51823         test-lock, test-tls: mention why a test is skipped
51824         * tests/test-lock.c (main) [!USE_*_THREADS]: Print why test is
51825         skipped.
51826         * tests/test-tls.c (main) [!USE_*_THREADS]: Likewise.
51827
51828         count-one-bits: relax license
51829         * modules/count-one-bits (License): Relicense to LGPLv2+.
51830         Suggested by Ludovic Courtès, approved by Ben Pfaff.
51831
51832 2008-08-22  Andreas Schwab  <schwab@suse.de>
51833
51834         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX):
51835         Remove spurious space in assignment.
51836
51837 2008-08-21  Simon Josefsson  <simon@josefsson.org>
51838
51839         * m4/autobuild.m4: Use TZ=UTC0 instead of TZ=UTC.  Reported by
51840         Paul Eggert <eggert@CS.UCLA.EDU>.
51841
51842 2008-08-20  Paolo Bonzini  <bonzini@gnu.org>
51843
51844         * modules/gettext: Add m4/threadlib.m4.
51845
51846 2008-08-19  Eric Blake  <ebb9@byu.net>
51847
51848         test-c-stack: fix compilation failure on FreeBSD 5.0
51849         * tests/test-c-stack.c [HAVE_SETRLIMIT]: Include prerequisite
51850         headers before <sys/resource.h>.
51851         * doc/posix-headers/sys_resource.texi (sys/resource.h): Document
51852         the bug.
51853         Reported by Nelson H. F. Beebe.
51854
51855         strverscmp: migrate from "strverscmp.h" to <string.h>
51856         * modules/string (Makefile.am): Add new hooks.
51857         * modules/strverscmp (Files): Remove strverscmp.h.
51858         (Depends-on): Add string.
51859         (configure.ac): Add indicator.
51860         (Include): Mention new header.
51861         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Provide new
51862         defaults.
51863         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Inform string module of
51864         results.
51865         * lib/strverscmp.h: Delete.
51866         * lib/string.in.h (strverscmp): Provide declaration, when needed.
51867         * tests/test-strverscmp.c (includes): Adjust client.
51868         * lib/check-version.c (includes): Likewise.
51869         * NEWS: Document the change.
51870
51871         strverscmp: add unit test
51872         * modules/strverscmp-tests: New file.
51873         * tests/test-strverscmp.c: Likewise.
51874
51875 2008-08-19  Simon Josefsson  <simon@josefsson.org>
51876
51877         * lib/gc-gnulib.c: Indentation cleanup.  Add some comments
51878         regarding Windows crypto stuff, from Mono.
51879
51880 2008-08-19  Adam Strzelecki <ono@java.pl>  (tiny change)
51881
51882         * lib/gc-gnulib.c: Use CRYPT_VERIFY_CONTEXT.  Try to use Intel CSP
51883         if present, for intel RND.  Return error on failures.
51884
51885 2008-08-18  Ben Pfaff  <blp@gnu.org>
51886
51887         gitlog-to-changelog: give better diagnostic for failed pipe-open
51888         * build-aux/gitlog-to-changelog: Improve error message: suggest
51889         that the version of Git may be too old.
51890
51891 2008-08-18  Simon Josefsson  <simon@josefsson.org>
51892
51893         * m4/autobuild.m4: Use TZ=UTC to avoid time zone complexity.  Use
51894         ISO 8601 format.  Suggested by Greg Troxel <gdt@ir.bbn.com>.
51895
51896 2008-08-18  Bruno Haible  <bruno@clisp.org>
51897
51898         * lib/glthread/thread.h [USE_SOLARIS_THREADS]: Use thread_in_use(), not
51899         pthread_in_use().
51900
51901 2008-08-18  Bruno Haible  <bruno@clisp.org>
51902
51903         * lib/glthread/threadlib.c: Include <pthread.h>.
51904
51905 2008-08-18  Bruno Haible  <bruno@clisp.org>
51906
51907         * lib/glthread/lock.h [USE_SOLARIS_THREADS]: Fix
51908         glthread_recursive_lock_* macros.
51909         * lib/glthread/lock.c (glthread_recursive_lock_destroy_multithreaded):
51910         Fix syntax error.
51911
51912 2008-08-18  Bruno Haible  <bruno@clisp.org>
51913
51914         * lib/glthread/thread.c: Avoid forcing a context switch right after
51915         thread creation.
51916
51917 2008-08-17  Bruno Haible  <bruno@clisp.org>
51918
51919         * lib/glthread/thread.c: New file, based on code from tests/test-lock.c.
51920         * lib/glthread/thread.h: Provide Win32 specific implementation.
51921         * modules/thread (Files): Add lib/glthread/thread.c.
51922         (Depends-on): Add lock.
51923         (Makefile.am): Add glthread/thread.c to lib_SOURCES.
51924
51925 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
51926
51927         New module 'yield'.
51928         * modules/yield: New file.
51929         * lib/glthread/yield.h: New file.
51930         * m4/yield.m4: New file.
51931         * MODULES.html.sh (Multithreading): Add yield.
51932
51933 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
51934
51935         New module 'thread'.
51936         * modules/thread: New file.
51937         * lib/glthread/thread.h: New file.
51938         * m4/thread.m4: New file.
51939         * MODULES.html.sh (Multithreading): Add thread.
51940
51941 2008-08-17  Bruno Haible  <bruno@clisp.org>
51942
51943         * lib/glthread/lock.h: Include <stdlib.h> always.
51944         * lib/glthread/tls.h: Likewise.
51945         * lib/glthread/cond.h: Likewise.
51946
51947 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
51948
51949         New module 'cond'.
51950         * modules/cond: New file.
51951         * lib/glthread/cond.h: New file.
51952         * lib/glthread/cond.c: New file.
51953         * m4/cond.m4: New file.
51954         * MODULES.html.sh (Multithreading): Add cond.
51955
51956 2008-08-16  Eric Blake  <ebb9@byu.net>
51957
51958         c-stack: fix regression on Irix 5.3 from 2008-06-21
51959         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Move check for
51960         sa_sigaction...
51961         * m4/sigaction.m4 (gl_PREREQ_SIG_HANDLER_H): ...here.
51962         (gl_PREREQ_SIGACTION): Depend on sig-handler.h prereq's.
51963         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Set the default.
51964         * modules/signal (Makefile.am): Use the value.
51965         * lib/signal.in.h (sa_sigaction) [HAVE_SIGACTION
51966         && !HAVE_STRUCT_SIGACTION_SA_SIGACTION]: Define.
51967         * doc/posix-headers/signal.texi (signal.h): Document this
51968         portability issue.
51969         * doc/posix-functions/sigaction.texi (sigaction): Likewise.
51970         Reported by Tom G. Christensen.
51971
51972 2008-08-17  Bruno Haible  <bruno@clisp.org>
51973
51974         New module 'threadlib'.
51975         * modules/threadlib: New file.
51976         * lib/glthread/threadlib.c: New file, extracted from
51977         lib/glthread/lock.c.
51978         * lib/glthread/lock.c (dummy_thread_func, glthread_in_use): Remove
51979         functions.
51980         * m4/threadlib.m4: New file, from m4/lock.m4, renaming gl_LOCK to
51981         gl_THREADLIB and gl_LOCK_EARLY to gl_THREADLIB_EARLY.
51982         * m4/lock.m4 (gl_LOCK_EARLY, gl_LOCK_EARLY_BODY, gl_LOCK_BODY): Remove
51983         macros.
51984         (gl_LOCK): Just require gl_THREADLIB and perform checks for lock.h.
51985         (gl_DISABLE_THREADS): Remove macro.
51986         * modules/lock (Files): Remove build-aux/config.rpath.
51987         (Depends-on): Remove havelib. Add threadlib.
51988         (configure.ac-early): Remove section.
51989         * m4/tls.m4 (gl_TLS): Require gl_THREADLIB instead of gl_LOCK.
51990         * modules/tls (Depends-on): Remove lock. Add threadlib.
51991         (Link): New section, copied from threadlib.
51992         * MODULES.html.sh (Multithreading): Add threadlib.
51993
51994 2008-08-14  Bruno Haible  <bruno@clisp.org>
51995
51996         * lib/glthread/lock.h (glthread_lock_lock, glthread_lock_unlock,
51997         glthread_lock_destroy, glthread_rwlock_rdlock, glthread_rwlock_wrlock,
51998         glthread_rwlock_unlock, glthread_rwlock_destroy,
51999         glthread_recursive_lock_lock, glthread_recursive_lock_unlock,
52000         glthread_recursive_lock_destroy): Define as macros always.
52001         * lib/glthread/lock.c (glthread_lock_lock_func): Renamed from
52002         glthread_lock_lock.
52003         (glthread_lock_unlock_func): Renamed from glthread_lock_unlock.
52004         (glthread_lock_destroy_func): Renamed from glthread_lock_destroy.
52005         (glthread_rwlock_rdlock_func): Renamed from glthread_rwlock_rdlock.
52006         (glthread_rwlock_wrlock_func): Renamed from glthread_rwlock_wrlock.
52007         (glthread_rwlock_unlock_func): Renamed from glthread_rwlock_unlock.
52008         (glthread_rwlock_destroy_func): Renamed from glthread_rwlock_destroy.
52009         (glthread_recursive_lock_lock_func): Renamed from
52010         glthread_recursive_lock_lock.
52011         (glthread_recursive_lock_unlock_func): Renamed from
52012         glthread_recursive_lock_unlock.
52013         (glthread_recursive_lock_destroy_func): Renamed from
52014         glthread_recursive_lock_destroy.
52015
52016 2008-08-14  Bruno Haible  <bruno@clisp.org>
52017
52018         * lib/glthread/lock.h: Renamed from lib/lock.h.
52019         * lib/glthread/lock.c: Renamed from lib/lock.c. Update includes.
52020         * lib/glthread/tls.h: Renamed from lib/tls.h.
52021         * lib/glthread/tls.c: Renamed from lib/tls.c. Update includes.
52022         * lib/fstrcmp.c: Update includes.
52023         * lib/strsignal.c: Update includes.
52024         * modules/lock (Files, Makefile.am): Update.
52025         (Include): Change to "glthread/lock.h".
52026         * modules/tls (Files, Makefile.am): Update.
52027         (Include): Change to "glthread/tls.h".
52028         * tests/test-lock.c: Update includes.
52029         * tests/test-tls.c: Update includes.
52030         * NEWS: Mention the renamed header files.
52031
52032 2008-08-11  Jim Meyering  <meyering@redhat.com>
52033
52034         * lib/fts_.h: Fix grammar (insert a missing "is") in a comment.
52035
52036 2008-08-11  Eric Blake  <ebb9@byu.net>
52037
52038         test-c-stack: avoid C99-ism
52039         * tests/test-c-stack.c (main): Fix whitespace, move declaration
52040         before statement.
52041         Reported by Alain Guibert.
52042
52043 2008-08-10  Jim Meyering  <meyering@redhat.com>
52044
52045         ensure that return value of uinttostr et al are not ignored
52046         * lib/inttostr.h (__GNUC_PREREQ): Define.
52047         (__attribute_warn_unused_result__): Define.
52048         (offtostr, imaxtostr, umaxtostr, uinttostr): Apply the attribute.
52049
52050 2008-08-07  Paolo Bonzini  <bonzini@gnu.org>
52051
52052         * lib/lock.c (glthread_recursive_lock_init_multithreaded)
52053         [!PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: Fix typo.
52054
52055 2008-08-07  Jim Meyering  <meyering@redhat.com>
52056
52057         * m4/inet_pton.m4: Fix typo in comment: s/inet_ntop/inet_pton/.
52058
52059         * modules/mkstemp (License): Relicense under LGPLv2+.
52060         * modules/tempname (License): Likewise.
52061
52062 2008-08-06  Bruno Haible  <bruno@clisp.org>
52063
52064         * lib/poll.c (poll): Further micro-optimization.
52065
52066 2008-08-06  Jim Meyering  <meyering@redhat.com>
52067
52068         inet_pton.c: use locale-independent tolower
52069         * lib/inet_pton.c: Include <c-ctype.h> rather than <ctype.h>.
52070         (inet_pton6): Use c_tolower rather than tolower.
52071         * modules/inet_pton (Depends-on): Add c-ctype.
52072
52073 2008-08-06  Paolo Bonzini  <bonzini@gnu.org>
52074
52075         * lib/poll.c (poll): Avoid division when timeout is 0, cache
52076         _SC_OPEN_MAX, avoid repeated access to errno.  Check for nfd < 0.
52077
52078 2008-08-06  Jim Meyering  <meyering@redhat.com>
52079
52080         * modules/inet_pton (License): Relicense under LGPLv2+.
52081
52082 2008-08-03  Bruno Haible  <bruno@clisp.org>
52083
52084         Additional non-aborting API for lock and tls.
52085         * lib/lock.h: Include <errno.h>.
52086         (glthread_lock_init): New macro/function.
52087         (gl_lock_init): Define as wrapper around glthread_lock_init.
52088         (glthread_lock_lock): New macro/function.
52089         (gl_lock_lock): Define as wrapper around glthread_lock_lock.
52090         (glthread_lock_unlock): New macro/function.
52091         (gl_lock_unlock): Define as wrapper around glthread_lock_unlock.
52092         (glthread_lock_destroy): New macro/function.
52093         (gl_lock_destroy): Define as wrapper around glthread_lock_destroy.
52094         (glthread_rwlock_init): New macro/function.
52095         (gl_rwlock_init): Define as wrapper around glthread_rwlock_init.
52096         (glthread_rwlock_rdlock): New macro/function.
52097         (gl_rwlock_rdlock): Define as wrapper around glthread_rwlock_rdlock.
52098         (glthread_rwlock_wrlock): New macro/function.
52099         (gl_rwlock_wrlock): Define as wrapper around glthread_rwlock_wrlock.
52100         (glthread_rwlock_unlock): New macro/function.
52101         (gl_rwlock_unlock): Define as wrapper around glthread_rwlock_unlock.
52102         (glthread_rwlock_destroy): New macro/function.
52103         (gl_rwlock_destroy): Define as wrapper around glthread_rwlock_destroy.
52104         (glthread_recursive_lock_init): New macro/function.
52105         (gl_recursive_lock_init): Define as wrapper around
52106         glthread_recursive_lock_init.
52107         (glthread_recursive_lock_lock): New macro/function.
52108         (gl_recursive_lock_lock): Define as wrapper around
52109         glthread_recursive_lock_lock.
52110         (glthread_recursive_lock_unlock): New macro/function.
52111         (gl_recursive_lock_unlock): Define as wrapper around
52112         glthread_recursive_lock_unlock.
52113         (glthread_recursive_lock_destroy): New macro/function.
52114         (gl_recursive_lock_destroy): Define as wrapper around
52115         glthread_recursive_lock_destroy.
52116         (glthread_once): New macro/function.
52117         (gl_once): Define as wrapper around glthread_once.
52118         Update function declarations.
52119         * lib/lock.c (glthread_rwlock_init_multithreaded): Renamed from
52120         glthread_rwlock_init. Return error code.
52121         (glthread_rwlock_rdlock_multithreaded): Renamed from
52122         glthread_rwlock_rdlock. Return error code.
52123         (glthread_rwlock_wrlock_multithreaded): Renamed from
52124         glthread_rwlock_wrlock. Return error code.
52125         (glthread_rwlock_unlock_multithreaded): Renamed from
52126         glthread_rwlock_unlock. Return error code.
52127         (glthread_rwlock_destroy_multithreaded): Renamed from
52128         glthread_rwlock_destroy. Return error code.
52129         (glthread_recursive_lock_init_multithreaded): Renamed from
52130         glthread_recursive_lock_init. Return error code.
52131         (glthread_recursive_lock_lock_multithreaded): Renamed from
52132         glthread_recursive_lock_lock. Return error code.
52133         (glthread_recursive_lock_unlock_multithreaded): Renamed from
52134         glthread_recursive_lock_unlock. Return error code.
52135         (glthread_recursive_lock_destroy_multithreaded): Renamed from
52136         glthread_recursive_lock_destroy. Return error code.
52137         (glthread_once_call): Make static.
52138         (glthread_once_multithreaded): Renamed from glthread_once.
52139         * lib/tls.h: Include <errno.h>.
52140         (glthread_tls_key_init): New macro/function.
52141         (gl_tls_key_init): Define as wrapper around glthread_tls_key_init.
52142         (glthread_tls_set): New macro/function.
52143         (gl_tls_set): Define as wrapper around glthread_tls_set.
52144         (glthread_tls_key_destroy): New macro/function.
52145         (gl_tls_key_destroy): Define as wrapper around glthread_tls_key_destroy.
52146         Update function declarations.
52147         * lib/tls.c (glthread_tls_get_multithreaded): Renamed from
52148         glthread_tls_get.
52149         Suggested by Yoann Vandoorselaere <yoann@prelude-ids.org>.
52150
52151 2008-08-04  Eric Blake  <ebb9@byu.net>
52152
52153         gnumakefile: use space, not TAB, outside of targets
52154         * top/GNUmakefile (_dummy): Fix whitespace error in prior edit.
52155
52156 2008-08-02  Jim Meyering  <meyering@redhat.com>
52157
52158         getdate.y: avoid locale-dependent date parsing failure
52159         In Turkish locales, getdate would fail to recognize keywords
52160         containing a lowercase "i".  The solution is not to rely on
52161         locale-sensitive case-conversion.
52162         * lib/getdate.y: Include <c-ctype.h> rather than <ctype.h>.
52163         (lookup_word): Use c_toupper in place of toupper.
52164         (yylex, get_date): Use c_ prefixed variants of isspace and isalpha, too.
52165         Reported by Vefa Bicakci <bicave@superonline.com> in
52166         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/14184>.
52167         * modules/getdate (Depends-on): Add c-ctype.
52168
52169 2008-08-02  Bruno Haible  <bruno@clisp.org>
52170
52171         * gnulib-tool (func_import): When updating or creating a .gitignore
52172         file, prepend each added line with a slash, and ignore leading slashes
52173         from the existing lines.
52174         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
52175
52176 2008-08-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
52177
52178         Portability fix for GNU make 3.79.1.
52179         * top/GNUmakefile: Avoid 'else COND', which older GNU make
52180         versions do not understand.
52181
52182 2008-08-01  Bruno Haible  <bruno@clisp.org>
52183
52184         Work around bug of HP-UX 10.20 cc with -0.0 literal.
52185         * tests/test-isnanf.h (zero): New variable.
52186         (main): Avoid literal -0.0f.
52187         * tests/test-isnand.h (zero): New variable.
52188         (main): Avoid literal -0.0.
52189         * tests/test-isnanl.h (zero): New variable.
52190         (main): Avoid literal -0.0L.
52191         * tests/test-isnan.c (zerof, zerod, zerol): New variables.
52192         (test_float, test_double, test_long_double): Avoid literals -0.0f,
52193         -0.0, -0.0L.
52194         * tests/test-signbit.c (test_signbitf): Avoid literal -0.0f.
52195         (test_signbitd): Avoid literal -0.0.
52196         (test_signbitl): Avoid literal -0.0L.
52197         * tests/test-ceilf1.c (zero): New variable.
52198         (main): Avoid literal -0.0f.
52199         * tests/test-ceill.c (zero): New variable.
52200         (main): Avoid literal -0.0L.
52201         * tests/test-floorf1.c (zero): New variable.
52202         (main): Avoid literal -0.0f.
52203         * tests/test-floorl.c (zero): New variable.
52204         (main): Avoid literal -0.0L.
52205         * tests/test-roundf1.c (zero): New variable.
52206         (main): Avoid literal -0.0f.
52207         * tests/test-round1.c (zero): New variable.
52208         (main): Avoid literal -0.0.
52209         * tests/test-roundl.c (zero): New variable.
52210         (main): Avoid literal -0.0L.
52211         * tests/test-truncf1.c (zero): New variable.
52212         (main): Avoid literal -0.0f.
52213         * tests/test-trunc1.c (zero): New variable.
52214         (main): Avoid literal -0.0.
52215         * tests/test-truncl.c (zero): New variable.
52216         (main): Avoid literal -0.0L.
52217         * tests/test-frexp.c (zero): New variable.
52218         (main): Avoid literal -0.0.
52219         * tests/test-frexpl.c (zero): New variable.
52220         (main): Avoid literal -0.0L.
52221         * tests/test-ldexpl.c (zero): New variable.
52222         (main): Avoid literal -0.0L.
52223         * tests/test-snprintf-posix.h (have_minus_zero): Avoid literal -0.0.
52224         (zerod, zerol): New variables.
52225         (test_function): Avoid literals -0.0, -0.0L.
52226         * tests/test-sprintf-posix.h (have_minus_zero): Avoid literal -0.0.
52227         (zerod, zerol): New variables.
52228         (test_function): Avoid literals -0.0, -0.0L.
52229         * tests/test-vasnprintf-posix.c (have_minus_zero): Avoid literal -0.0.
52230         (zerod, zerol): New variables.
52231         (test_function): Avoid literals -0.0, -0.0L.
52232         * tests/test-vasprintf-posix.c (have_minus_zero): Avoid literal -0.0.
52233         (zerod, zerol): New variables.
52234         (test_function): Avoid literals -0.0, -0.0L.
52235         * tests/test-strtod.c (zero): New variable.
52236         (main): Avoid literal -0.0.
52237         Reported by Jonathan C. Patschke <jp@centtech.com>.
52238
52239 2008-07-31  Jim Meyering  <meyering@redhat.com>
52240
52241         sha256.h: correct definition of SHA224_DIGEST_SIZE
52242         * lib/sha256.h (SHA224_DIGEST_SIZE): Define to 28, not 24.
52243         Reported by Paulie Pena IV <paulie4@gmail.com>.
52244         Define as 224 / 8, rather than as a literal.
52245         (SHA256_DIGEST_SIZE): Define as 256/8 rather than equivalent literal.
52246         * lib/sha512.h (SHA384_DIGEST_SIZE): Likewise, define as equiv: 384/8.
52247         (SHA512_DIGEST_SIZE): Likewise, define as equivalent quotient: 512/8.
52248
52249 2008-07-31  Bruno Haible  <bruno@clisp.org>
52250
52251         * lib/regex_internal.h (BITSET_WORD_BITS): Make first conditional work
52252         on HP-UX 10.20 with "cc -Ae". Fix second conditional.
52253         Reported by Jonathan Patschke <jp@centtech.com>.
52254
52255 2008-07-31  Bruno Haible  <bruno@clisp.org>
52256
52257         * gnulib-tool (func_import): Make change from 2008-06-23 more robust.
52258         Reported by Paolo Bonzini <bonzini@gnu.org>.
52259
52260 2008-07-30  Eric Blake  <ebb9@byu.net>
52261
52262         test-strtod: allow compilation without -lm
52263         * tests/test-strtod.c (main): Avoid link dependence on fabs.
52264         Reported by Dennis Clarke <blastwave@gmail.com>.
52265
52266 2008-07-28  Jim Meyering  <meyering@redhat.com>
52267
52268         bootstrap: work also when there are no .po files in po/
52269         * build-aux/bootstrap (update_po_files): Complete the change
52270         that I began in bc960df8c789c878f1c1c54a28a3c2648dead8d9.
52271
52272 2008-07-27  Jim Meyering  <meyering@redhat.com>
52273
52274         * users.txt: Add zile.
52275
52276 2008-07-26  Ben Pfaff  <blp@gnu.org>
52277
52278         Add missing dependencies on new m4/exponent[fdl].m4 files.
52279         * modules/isnanf-nolibm: Add m4/exponentf.m4.
52280         * modules/isnand-nolibm: Add m4/exponentd.m4.
52281         * modules/isnanl-nolibm: Add m4/exponentl.m4.
52282         * modules/signbit-tests: Use m4/exponent[fdl].m4 instead of
52283         m4/isnan[fdl].m4, because the macros actually used moved.
52284         Reported by Jim Meyering.
52285
52286 2008-07-14  Ben Pfaff  <blp@gnu.org>
52287
52288         Add isinf module.
52289         * lib/isinf.c: New file.
52290         * lib/math.in.h: Define isinf macro if we have decided to replace
52291         it.
52292         * m4/isinf.m4: New file.
52293         * m4/math_h.m4: Initialize and substitute variables for isinf
52294         module.
52295         * modules/isinf: New file.
52296         * modules/isinf-tests: New file.
52297         * modules/math: Add substitutions for new module.
52298         * tests/test-isinf.c: New file.
52299         * doc/posix-functions/isinf.texi: Mention new module.
52300         * MODULES.html.sh: Mention new module.
52301
52302 2008-07-14  Ben Pfaff  <blp@gnu.org>
52303
52304         Factor out some macros for use by additional modules.
52305         * m4/isnanf.m4 (gl_FLOAT_EXPONENT_LOCATION): Move into new file
52306         exponentf.m4.
52307         * m4/isnand.m4 (gl_DOUBLE_EXPONENT_LOCATION): Move into new file
52308         exponentd.m4.
52309         * m4/isnanl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Move into new
52310         file exponentl.m4.
52311         * m4/exponentf.m4: New file.
52312         * m4/exponentd.m4: New file.
52313         * m4/exponentl.m4: New file.
52314         * modules/isnanf: Use new file m4/exponentf.m4.
52315         * modules/isnand: Use new file m4/exponentd.m4.
52316         * modules/isnanl: Use new file m4/exponentl.m4.
52317
52318 2008-07-23  Ulrich Drepper  <drepper@redhat.com>
52319
52320         mktime.c: normalize tp->tm_isdst value to -1/0/1.
52321         * lib/mktime.c (__mktime_internal): Normalize tp->tm_isdst value.
52322         Reported by Michael Ringe <Michael.Ringe@gmx.de> in
52323         <http://sourceware.org/bugzilla/show_bug.cgi?id=6723>.
52324
52325         * lib/canonicalize-lgpl.c (__realpath): Avoid buffer overflow after
52326         readlink on platforms without PATH_MAX.
52327
52328 2008-07-21  Eric Blake  <ebb9@byu.net>
52329
52330         Warn, not fail, on stale version.
52331         * top/GNUmakefile (_curr-ver): Tone down previous patch.
52332
52333         Don't allow installation with stale devel version number.
52334         * top/GNUmakefile (_is-install-target): New macro.
52335         (_curr-ver): Forbid installation with stale version number.
52336
52337 2008-07-20  Bruno Haible  <bruno@clisp.org>
52338
52339         * modules/c-stack-tests (Makefile.am): Add LIBSIGSEGV to
52340         TESTS_ENVIRONMENT.
52341         * tests/test-c-stack2.sh: React differently if LIBSIGSEGV is in use.
52342
52343 2008-07-20  Bruno Haible  <bruno@clisp.org>
52344
52345         * lib/c-stack.h (c_stack_action): Add documentation.
52346         * lib/c-stack.c (c_stack_action): Remove incomplete documentation.
52347
52348 2008-07-20  Bruno Haible  <bruno@clisp.org>
52349
52350         * modules/canonicalize-lgpl (License): Relicense under LGPLv2+.
52351         * modules/readlink (License): Likewise.
52352
52353 2008-07-17  Eric Blake  <ebb9@byu.net>
52354
52355         * modules/c-stack (Link): Fix typo.
52356
52357         Make c-stack use libsigsegv, when available.
52358         * modules/c-stack (Depends-on): Add libsigsegv.
52359         * modules/c-stack-tests (Makefile.am): Link with libsigsegv, if
52360         needed.
52361         * lib/c-stack.c (SIGSTKSZ): Define fallback.
52362         (segv_handler, overflow_handler, c_stack_action)
52363         [HAVE_LIBSIGSEGV && !HAVE_XSI_STACK_OVERFLOW_HEURISTIC]: Add new
52364         implementation when libsigsegv is available, but only when using
52365         the library is necessary.
52366         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Add
52367         comment, explaining why XSI check fails on Linux.
52368         (gl_PREREQ_C_STACK): Supply LIBCSTACK, LTLIBCSTACK.
52369         * tests/test-c-stack2.sh: Tweak skip message.
52370         * NEWS: Document new link-time requirements.
52371
52372 2008-07-16  Eric Blake  <ebb9@byu.net>
52373
52374         c-stack: Expose false positives when not using libsigsegv.
52375         * modules/c-stack-tests (Files): Expand test.
52376         * tests/test-c-stack.c (main): Add means to conditionally trigger
52377         non-overflow SIGSEGV.
52378         * tests/test-c-stack2.sh: New file.
52379
52380 2008-07-14  Bruno Haible  <bruno@clisp.org>
52381
52382         * m4/libsigsegv.m4: Remove unneeded AC_PREREQ.
52383         Reported by Eric Blake.
52384
52385 2008-07-14  Sam Steingold  <sds@gnu.org>
52386             Bruno Haible  <bruno@clisp.org>
52387
52388         New module libsigsegv.
52389         * modules/libsigsegv: New file.
52390         * m4/libsigsegv.m4: New file, from GNU clisp sigsegv.m4 with
52391         modifications.
52392         * MODULES.html.sh (Signal handling): New section.
52393
52394 2008-07-14  Bruno Haible  <bruno@clisp.org>
52395
52396         * modules/unictype/ctype-* (Description): Add the word "function".
52397         Improves the resulting doc in MODULES.html.
52398
52399 2008-07-12  Ben Pfaff  <blp@gnu.org>
52400
52401         Add longlong module.
52402         * modules/longlong: New file.
52403
52404 2008-07-12  Bruno Haible  <bruno@clisp.org>
52405
52406         * m4/isnan.m4 (gl_ISNAN): When the replacement is used, set ISNAN_LIBM
52407         to empty.
52408
52409 2008-07-10  Ben Pfaff  <blp@gnu.org>
52410
52411         Add isnan module.
52412         * doc/posix-functions/isnan.texi: Mention new module.
52413         * lib/math.in.h: Define isnan macro if we have decided to replace
52414         it.
52415         * m4/isnan.m4: New file.
52416         * m4/isnanl.m4 (gl_FUNC_ISNANL): Factor out some code into new
52417         macro gl_BUILD_ISNANL so that isnan.m4 can use that functionality
52418         also.
52419         (gl_FUNC_ISNANL_NO_LIBM): Factor out same code, to reduce
52420         redundancy.
52421         * m4/math_h.m4: Initialize and substitute variables for isnan
52422         module.
52423         * modules/isnan: New file.
52424         * modules/isnan-tests: New file.
52425         * modules/math: Add substitutions for new module.
52426         * tests/test-isnan.c: New file.
52427         * MODULES.html.sh: Mention new module.
52428
52429 2008-07-10  Ben Pfaff  <blp@gnu.org>
52430
52431         Add isnanf module.
52432         * lib/isnanf.m4: New file.
52433         * m4/isnanf.m4 (gl_FUNC_ISNANF): New macro.
52434         (gl_HAVE_ISNANF_IN_LIBM): New macro.
52435         (gl_BUILD_ISNANF): New macro used by gl_FUNC_ISNANF,
52436         gl_FUNC_ISNANF_NO_LIBM, and gl_FUNC_ISNAN.
52437         * modules/isnanf: New file.
52438         * modules/isnanf-tests: New file.
52439         * modules/isnanf-nolibm-tests: Add tests/test-isnanf.h to list of
52440         files.
52441         * tests/test-isnanf-nolibm.c: factored most of its contents into
52442         new file tests/test-isnanf.h.
52443         * tests/test-isnanf.h: New file.
52444         * tests/test-isnanf.c: New file.
52445         * MODULES.html.sh: Mention new module.
52446         * doc/glibc-functions/isnanf.texi: Mention new module.
52447
52448 2008-07-10  Ben Pfaff  <blp@gnu.org>
52449
52450         Add isnand module.
52451         * lib/isnand.h: New file.
52452         * m4/isnand.m4 (gl_FUNC_ISNAND): New macro.
52453         (gl_FUNC_ISNAND_NO_LIBM): Split partially into new macro
52454         gl_HAVE_ISNAND_NO_LIBM so that gl_FUNC_ISNAND can use that
52455         functionality also.
52456         (gl_BUILD_ISNAND): New macro used by gl_FUNC_ISNAND,
52457         gl_FUNC_ISNAND_NO_LIBM, and gl_FUNC_ISNAN.
52458         (gl_HAVE_ISNAND_IN_LIBM): New macro.
52459         * modules/isnand: New file.
52460         * modules/isnand-tests: New file.
52461         * modules/isnand-nolibm-tests: Add tests/test-isnand.h to list of
52462         files.
52463         * tests/test-isnand-nolibm.c: factored most of its contents into
52464         new file tests/test-isnand.h.
52465         * tests/test-isnand.h: New file.
52466         * tests/test-isnand.c: New file.
52467         * MODULES.html.sh: Mention new module.
52468
52469 2008-07-10  Ben Pfaff  <blp@gnu.org>
52470
52471         * lib/isnanf.h: Rename lib/isnanf-nolibm.h.
52472         * lib/isnand.h: Rename lib/isnand-nolibm.h.
52473         * tests/test-isnanf.c: Rename tests/test-isnanf-nolibm.c.
52474         * tests/test-isnand.c: Rename tests/test-isnand-nolibm.c.
52475         * modules/isnanf-nolibm: Update references to renamed files.
52476         * modules/isnand-nolibm: Likewise.
52477         * modules/isnanf-nolibm-tests: Likewise.
52478         * modules/isnand-nolibm-tests: Likewise.
52479         * lib/frexp.c: Likewise.
52480         * lib/isfinite.c: Likewise.
52481         * lib/signbitd.c: Likewise.
52482         * lib/signbitf.c: Likewise.
52483         * lib/vasnprintf.c: Likewise.
52484         * tests/test-ceilf1.c: Likewise.
52485         * tests/test-ceilf2.c: Likewise.
52486         * tests/test-floorf1.c: Likewise.
52487         * tests/test-floorf2.c: Likewise.
52488         * tests/test-frexp.c: Likewise.
52489         * tests/test-round1.c: Likewise.
52490         * tests/test-round2.c: Likewise.
52491         * tests/test-roundf1.c: Likewise.
52492         * tests/test-strtod.c: Likewise.
52493         * tests/test-trunc1.c: Likewise.
52494         * tests/test-trunc2.c: Likewise.
52495         * tests/test-truncf1.c: Likewise.
52496         * tests/test-truncf2.c: Likewise.
52497         * NEWS: Mention the renamed header files.
52498
52499 2008-07-11  Jim Meyering  <meyering@redhat.com>
52500
52501         vc-list-files: make the last-resort awk code more portable
52502         * build-aux/vc-list-files: Don't rely on awk's "sub" command.
52503         /bin/awk from OpenSolaris 11's SUNWesu version 2008.03.22.10.56
52504         does not support it.
52505
52506 2008-07-10  Eric Blake  <ebb9@byu.net>
52507
52508         Work with tar's bootstrap.
52509         * gnulib-tool (func_emit_initmacro_end): Use m4_defn in the case
52510         where LIBSOURCES_DIR contains .#bootmp but must not be treated as
52511         an m4 comment.
52512
52513 2008-07-09  Jim Meyering  <meyering@redhat.com>
52514
52515         posix-shell.m4: fix typo that made this test malfunction
52516         * m4/posix-shell.m4: Remove capitalization in variable name.
52517
52518 2008-07-08  Bruno Haible  <bruno@clisp.org>
52519
52520         * m4/onceonly.m4: Update comments.
52521         Reported by Ben Pfaff <blp@cs.stanford.edu>.
52522
52523 2008-07-04  Jim Meyering  <meyering@redhat.com>
52524
52525         * users.txt: Add vc-dwim.
52526         (bison, coreutils): Use the gitweb URL.
52527
52528 2008-07-03  Jim Meyering  <meyering@redhat.com>
52529
52530         * users.txt: Add libffcall.  From Sam Steingold.
52531
52532 2008-07-03  Ondřej Vašík  <ovasik@redhat.com>
52533
52534         getdate.y: do not ignore TZ with relative day, month or year offset
52535         * lib/getdate.y (get_date): Move the tz-handling block to follow the
52536         relative-date-handling, since otherwise, the latter would clobber the
52537         sole output (an updated Start value) of the tz-handling block.
52538         * tests/test-getdate.c: Tests for the fix
52539
52540 2008-07-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
52541
52542         Recognize 'foo_LIBRARIES += libgnu.a'.
52543         * gnulib-tool (func_emit_lib_Makefile_am): Recognize if a
52544         makefile snippet has already specified an installation location,
52545         also using '+='.
52546
52547 2008-07-02  Ondřej Vašík  <ovasik@redhat.com>
52548
52549         getdate.y: factor out common actions
52550         * lib/getdate.y (apply_relative_time, set_hhmmss): New functions.
52551         Use them in place of open-coded actions.
52552
52553 2008-07-01  Simon Josefsson  <simon@josefsson.org>
52554
52555         Add self-test for getdate module.
52556         * modules/getdate-tests: New file.
52557         * tests/test-getdate.c: New file.
52558
52559 2008-06-29  Bruno Haible  <bruno@clisp.org>
52560
52561         * gnulib-tool (func_import): Put gnulib-comp.m4 into .cvsignore or
52562         .gitignore.
52563         Reported by Sylvain Beucler <beuc@beuc.net>.
52564
52565 2008-06-29  Bruno Haible  <bruno@clisp.org>
52566
52567         * doc/gnulib-tool.texi (VCS Issues): Mention --no-vc-files option.
52568         * m4/gnulib-tool.m4: Update to match current gnulib-tool.
52569
52570 2008-06-29  Bruno Haible  <bruno@clisp.org>
52571
52572         * gnulib-tool (func_import): Recommend to put gnulib-cache.m4 into
52573         EXTRA_DIST.
52574         Reported by Sylvain Beucler <beuc@beuc.net>.
52575
52576 2008-06-26  Jim Meyering  <meyering@redhat.com>
52577
52578         make several modules depend on the "open" module
52579         This provides slightly increased consistency when opening-for-write
52580         the name of a non-directory spelled with a trailing slash.
52581         * modules/chdir-safer: Likewise.
52582         * modules/chown: Likewise.
52583         * modules/clean-temp: Likewise.
52584         * modules/copy-file: Likewise.
52585         * modules/fchdir: Likewise.
52586         * modules/fcntl-safer: Likewise.
52587         * modules/pipe: Likewise.
52588         * modules/utime: Likewise.
52589         Prompted by Eric Blake and Bruno Haible.
52590
52591 2008-06-24  Andreas Schwab  <schwab@suse.de>
52592
52593         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Don't test whether compound
52594         literals can be used as initializers for global variables.
52595
52596 2008-06-23  Eric Blake  <ebb9@byu.net>
52597
52598         Make gnulib-cache.m4 easier to diff.
52599         * gnulib-tool (func_import): Allow newlines when reading cached
52600         gl_MODULES, and generate newlines when creating gnulib-cache.m4.
52601
52602 2008-06-23  Bruno Haible  <bruno@clisp.org>
52603
52604         * m4/signalblocking.m4 (gl_PREREQ_SIG_HANDLER_H): Remove macro.
52605         (gl_PREREQ_SIGPROCMASK): Don't invoke it.
52606         * m4/sigaction.m4 (gl_PREREQ_SIG_HANDLER_H): New macro, moved here from
52607         m4/signalblocking.m4.
52608         (gl_PREREQ_SIGACTION): Don't invoke it.
52609         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Invoke
52610         gl_PREREQ_SIG_HANDLER_H.
52611         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
52612         Don't check for sigaction here.
52613
52614 2008-06-23  Bruno Haible  <bruno@clisp.org>
52615
52616         * lib/fatal-signal.c (fatal_signal_handler): Update comment.
52617         (install_handlers): Don't set the SA_RESETHAND flag.
52618
52619 2008-06-23  Bruno Haible  <bruno@clisp.org>
52620
52621         * m4/sigaction.m4: Comment fixes.
52622         * lib/signal.in.h: Likewise.
52623
52624 2008-06-23  Eric Blake  <ebb9@byu.net>
52625
52626         Fix typo.
52627         * tests/test-sigaction.c (MASK_SA_FLAGS): Add missing operator.
52628
52629         Avoid SA_ namespace.
52630         * tests/test-sigaction.c (MASK_SA_FLAGS): Rename from SA_MASK.
52631         Reported by Ralf Wildenhues.
52632
52633         Avoid test failure due to SA_RESTORER.
52634         * tests/test-sigaction.c (SA_MASK): New macro.
52635         (main): Avoid failing due to extension flags being set.
52636         Reported by Jim Meyering.
52637
52638         Revert use of sig-handler.h in sigprocmask.c.
52639         * modules/sigprocmask (Files): Don't rely on sig-handler.h, since
52640         it requires the existence of struct sigaction.
52641         * lib/sigprocmask.c (handler_t): Restore typedef.
52642         (rpl_signal, old_handlers): Use local type.
52643
52644 2008-06-22  Bruno Haible  <bruno@clisp.org>
52645
52646         * tests/test-stdint.c: Disable the INTMAX_MAX preprocessor test
52647         conditionally.
52648         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
52649
52650 2008-06-22  Bruno Haible  <bruno@clisp.org>
52651
52652         * doc/posix-functions/siginterrupt.texi: Move note.
52653
52654         * lib/signal.in.h (SA_RESTART): New macro.
52655         * lib/sigaction.c: Update comment.
52656
52657         * m4/sigaction.m4 (gl_SIGACTION): Require gl_SIGNAL_H_DEFAULTS.
52658
52659         * m4/signalblocking.m4 (gl_PREREQ_SIG_HANDLER_H): New macro.
52660         (gl_PREREQ_SIGPROCMASK): Invoke it.
52661         * m4/sigaction.m4 (gl_PREREQ_SIGACTION): Likewise.
52662
52663         * lib/nanosleep.c (rpl_nanosleep): Setup newact only when it is needed.
52664
52665         * lib/sigprocmask.c: Update a comment.
52666
52667 2008-06-21  Eric Blake  <ebb9@byu.net>
52668
52669         Use sigaction module rather than signal().
52670         * modules/c-stack (Depends-on): Add sigaction.
52671         * modules/fatal-signal (Depends-on): Likewise.
52672         * modules/nanosleep (Depends-on): Likewise.
52673         * modules/sigprocmask (Files): Add sig-handler.h.
52674         * modules/sigaction (Files): Likewise.
52675         * lib/sig-handler.h (get_handler): New file, suggested by Paul
52676         Eggert.
52677         * lib/c-stack.c (SIGACTION_WORKS): Simplify conditions.
52678         (c_stack_action) [!SIGACTION_WORKS]: Use sigaction, not signal.
52679         * lib/fatal-signal.c (uninstall_handlers, install_handlers)
52680         (init_fatal_signals): Likewise.
52681         * lib/nanosleep.c (rpl_nanosleep): Likewise.
52682         (siginterrupt): Delete fallback.
52683         * lib/sigprocmask.c (handler_t, old_handlers): Use sa_handler_t
52684         instead.
52685         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Drop check for
52686         siginterrupt.
52687
52688         New module sigaction, for mingw.
52689         * modules/sigaction: New module...
52690         * modules/sigaction-tests: ...and its test.
52691         * m4/sigaction.m4: New file.
52692         * lib/sigaction.c: Likewise.
52693         * tests/test-sigaction.c: Likewise.
52694         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Add sigaction variables.
52695         * modules/signal (Makefile.am): Likewise.
52696         * lib/signal.in.h (!@HAVE_SIGACTION@): Define replacements when
52697         needed.
52698         * doc/posix-headers/signal.texi (signal.h): Mention provided
52699         types.
52700         * doc/posix-functions/siginterrupt.texi (siginterrupt): Mention
52701         that sigaction is preferable.
52702         * doc/posix-functions/sigaction.texi (sigaction): Mention new
52703         module.
52704         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
52705         sigaction.
52706
52707         Improve robustness of sigprocmask by overriding signal.
52708         * lib/signal.in.h (rpl_signal): Override signal when sigprocmask
52709         is in use.
52710         * lib/sigprocmask.c (blocked_handler): Reinstall block handler.
52711         (SIGKILL, SIGSTOP): Provide fallbacks.
52712         (rpl_signal): Implement.
52713         (old_handlers, blocked_set): Mark volatile, since sigprocmask and
52714         signal can be called inside handlers.
52715
52716         Fix nanosleep module on mingw.
52717         * modules/nanosleep (Depends-on): Add sys_select.
52718         * lib/nanosleep.c (HAVE_SYS_SELECT_H): Rely on gnulib module.
52719
52720         Fix licensing of sigprocmask.
52721         * modules/raise (License): Relicense as LGPL.
52722
52723 2008-06-21  Bruno Haible  <bruno@clisp.org>
52724
52725         * lib/propername.c (proper_name_utf8): Don't use the transliterated
52726         result if it contains question marks.
52727         Reported by Michael Geng <linux@michaelgeng.de>.
52728
52729 2008-06-19  Bruno Haible  <bruno@clisp.org>
52730
52731         Fix CVS-ism.
52732         * doc/gnulib.texi: Include updated-stamp.texi.
52733         * doc/Makefile (GNULIB_TEXI_FILES): New variable.
52734         (updated-stamp.texi): New rule.
52735         (gnulib.info): Depend on it.
52736         * doc/.gitignore: Add updated-stamp.texi.
52737         Based on a patch by Thien-Thi Nguyen <ttn@gnuvola.org>.
52738
52739 2008-06-19  Bruno Haible  <bruno@clisp.org>
52740
52741         * doc/Makefile (gnulib.info): Update and simplify dependencies.
52742         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
52743
52744 2008-06-19  Eric Blake  <ebb9@byu.net>
52745
52746         Fix VPATH 'make dist' with GNU make and non-VCS tarball.
52747         * top/GNUmakefile (_curr-ver): Don't use $(srcdir) unnecessarily.
52748         Reported by Stepan Kasal.
52749
52750 2008-06-18  Bruno Haible  <bruno@clisp.org>
52751
52752         * lib/fatal-signal.c (init_fatal_signals): Add comment.
52753         Reported by Eric Blake.
52754
52755 2008-06-18  Eric Blake  <ebb9@byu.net>
52756
52757         Work around cygwin 1.5.25 strsignal bug.
52758         * tests/test-strsignal.c: Allow for const char *.
52759         * doc/glibc-functions/strsignal.texi (strsignal): Document the bug.
52760
52761 2008-06-18  Simon Josefsson  <simon@josefsson.org>
52762
52763         * users.txt: Update URL to article and add author/date
52764         information.
52765
52766 2008-06-17  Bruno Haible  <bruno@clisp.org>
52767
52768         New macro gl_DISABLE_THREADS.
52769         * m4/lock.m4 (gl_LOCK_EARLY_BODY): Use value gl_use_threads_default
52770         if the user did not pass --enable-threads or --disable-threads option.
52771         (gl_DISABLE_THREADS): New macro.
52772         Reported by Eric Blake <ebb9@byu.net>.
52773
52774 2008-06-17  Bruno Haible  <bruno@clisp.org>
52775
52776         * lib/tls.h (gl_tls_key_init): Evaluate the destructor argument also
52777         when the macro ignores it.
52778         Based on a patch by Eric Blake <ebb9@byu.net>.
52779
52780 2008-06-17  Bruno Haible  <bruno@clisp.org>
52781
52782         * modules/tls (License): Change to LGPLv2+.
52783         Reported by Eric Blake.
52784
52785 2008-06-17  Eric Blake  <ebb9@byu.net>
52786
52787         Simplify c-stack prerequisites.
52788         * lib/c-stack.c (includes): Remove unused <sys/resource.h>.
52789         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Posix 200x
52790         no longer requires <ucontext.h> to exist.  Optimize setrlimit
52791         check.
52792         (gl_PREREQ_C_STACK): Remove check for unused getcontext and
52793         <sys/resource.h>.
52794
52795         Move c-stack test into testsuite.
52796         * modules/c-stack-tests: New file.
52797         * lib/c-stack.c [DEBUG]: Move test program...
52798         * tests/test-c-stack.c: ...into this new file.  Skip rather than
52799         fail test if sigaltstack is lacking.
52800         * tests/test-c-stack.sh: New driver file.
52801
52802 2008-06-16  Eric Blake  <ebb9@byu.net>
52803
52804         Use raise module consistently.
52805         * modules/fatal-signal (Depends-on): Add raise.
52806         * modules/sigprocmask (Depends-on): Likewise.
52807         * lib/fatal-signal.c (fatal_signal_handler): Rely on raise.
52808         * lib/sigprocmask.c (sigprocmask): Likewise.
52809         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
52810         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Likewise.
52811
52812         Fix compliance bug in sigpending.
52813         * lib/sigprocmask.c (sigpending): Return pending array via
52814         parameter, not return value.
52815
52816 2008-06-14  Eric Blake  <ebb9@byu.net>
52817
52818         Improve obstack-printf test code.
52819         * tests/test-obstack-printf.c (test_function): Fix comment, and
52820         simplify usage of obstack_* in macros.  Add a test for coverage.
52821         Reported by Bruno Haible.
52822
52823 2008-06-14  Bruno Haible  <bruno@clisp.org>
52824
52825         * lib/obstack_printf.c (obstack_vprintf): Define the stack-allocated
52826         array size as a constant, not as a const variable.
52827         * m4/obstack-printf.m4 (gl_FUNC_OBSTACK_PRINTF): Require
52828         AC_USE_SYSTEM_EXTENSIONS.
52829         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX): Likewise.
52830         Test whether the obstack_printf function actually exists.
52831         * modules/obstack-printf (Depends-on): Add extensions.
52832         (Include): Remove obstack.h.
52833         * modules/obstack-printf-posix (Depends-on): Add extensions.
52834         (Include): Remove obstack.h.
52835
52836 2008-06-13  Eric Blake  <ebb9@byu.net>
52837
52838         Add obstack-printf and obstack-printf-posix modules.
52839         * modules/obstack-printf: New file.
52840         * modules/obstack-printf-posix: Likewise.
52841         * MODULES.html.sh (Misc): Mention them.
52842         * doc/glibc-functions/obstack_printf.texi (obstack_printf):
52843         Likewise.
52844         * doc/glibc-functions/obstack_vprintf.texi (obstack_vprintf):
52845         Likewise.
52846         * modules/stdio (Makefile.am): Accomodate new modules.
52847         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
52848         * lib/stdio.in.h (rpl_obstack_printf, rpl_obstack_vprintf):
52849         Declare.
52850         * lib/obstack_printf.c (obstack_printf, obstack_vprintf): New
52851         functions.
52852         * m4/obstack-printf.m4 (gl_OBSTACK_PRINTF)
52853         (gl_REPLACE_OBSTACK_PRINTF): New macros
52854         * m4/obstack-printf-posix.m4 (gl_OBSTACK_PRINTF_POSIX): Likewise.
52855         * tests/test-obstack-printf.c: New file.
52856         * modules/obstack-printf-tests: Likewise.
52857         * modules/obstack-printf-posix-tests: Likewise.
52858
52859 2008-06-11  Bruno Haible  <bruno@clisp.org>
52860
52861         * m4/open.m4 (gl_FUNC_OPEN): Add test against trailing slash bug.
52862         * lib/open.c: Include errno.h.
52863         (open): Fail when attempting to write to a file that has a trailing
52864         slash.
52865         * tests/test-open.c (main): Test against trailing slash bug.
52866         * doc/posix-functions/open.texi: Mention the trailing slash bug.
52867
52868 2008-06-10  Bruno Haible  <bruno@clisp.org>
52869
52870         * tests/test-vc-list-files-git.sh: Make double use of 'exit'. Needed
52871         for $? to work inside the trap command, with various /bin/sh-s.
52872         * tests/test-vc-list-files-cvs.sh: Likewise.
52873
52874 2008-06-10  Bruno Haible  <bruno@clisp.org>
52875
52876         * lib/acl-internal.h: Don't include gettext.h here.
52877         * lib/set-mode-acl.c: Include gettext.h here.
52878         * lib/copy-acl.c: Likewise.
52879
52880 2008-06-10  Bruno Haible  <bruno@clisp.org>
52881
52882         * lib/wait-process.h (wait_subprocess): Add termsigp argument.
52883         * lib/wait-process.c (wait_subprocess): Likewise.
52884         * lib/execute.h (execute): Add termsigp argument.
52885         * lib/execute.c (execute): Likewise.
52886         * lib/csharpcomp.c (compile_csharp_using_pnet,
52887         compile_csharp_using_mono, compile_csharp_using_sscli): Update.
52888         * lib/csharpexec.c (execute_csharp_using_pnet,
52889         execute_csharp_using_mono, execute_csharp_using_sscli): Update.
52890         * lib/javacomp.c (compile_using_envjavac, compile_using_gcj,
52891         compile_using_javac, compile_using_jikes, is_envjavac_gcj,
52892         is_envjavac_gcj43, is_gcj_present, is_gcj_43, is_javac_present,
52893         is_jikes_present): Update.
52894         * lib/javaexec.c (execute_java_class): Update.
52895         * lib/javaversion.c (execute_and_read_line): Update.
52896         * NEWS: Document the changes.
52897         Reported by Eric Blake.
52898
52899 2008-06-10  Eric Blake  <ebb9@byu.net>
52900
52901         Add missing include.
52902         * tests/test-strstr.c (includes): Add <signal.h>.
52903         * tests/test-strcasestr.c (includes): Likewise.
52904         * tests/test-memmem.c (includes): Likewise.
52905
52906 2008-06-10  Bruno Haible  <bruno@clisp.org>
52907
52908         * lib/wait-process.c (wait_subprocess): Add an assertion.
52909
52910 2008-06-10  Bruno Haible  <bruno@clisp.org>
52911
52912         * lib/wait-process.c (wait_subprocess): Try to fix waitid() based code.
52913
52914 2008-06-10  Bruno Haible  <bruno@clisp.org>
52915
52916         * tests/test-memmem.c (main): Reset SIGALRM to default handling before
52917         using alarm().
52918         * tests/test-strcasestr.c (main): Likewise.
52919         * tests/test-strstr.c (main): Likewise.
52920
52921 2008-06-09  Bruno Haible  <bruno@clisp.org>
52922
52923         Work around the Solaris 10 ACE ACLs ABI change.
52924         * lib/acl-internal.h (acl_nontrivial, acl_ace_nontrivial): Don't
52925         declare if ACL_NO_TRIVIAL is present.
52926         (ACE_ACCESS_ALLOWED_ACE_TYPE, ACE_ACCESS_DENIED_ACE_TYPE,
52927         NEW_ACE_OWNER, NEW_ACE_GROUP, NEW_ACE_IDENTIFIER_GROUP, ACE_EVERYONE,
52928         NEW_ACE_READ_DATA, NEW_ACE_WRITE_DATA, NEW_ACE_EXECUTE): New macros.
52929         * lib/file-has-acl.c (acl_nontrivial, acl_ace_nontrivial): Don't
52930         define if ACL_NO_TRIVIAL is present.
52931         (acl_ace_nontrivial): Detect whether the old or new ABI is in use,
52932         and use the current ABI.
52933         (file_has_acl): Use same #if condition as elsewhere.
52934         * lib/set-mode-acl.c (qset_acl): Detect whether the old or new ABI is
52935         in use, and use the current ABI.
52936         * doc/acl-resources.txt: More doc about newer Solaris 10 versions.
52937         Reported by Jim Meyering.
52938
52939 2008-06-09  Eric Blake  <ebb9@byu.net>
52940
52941         Work around environments that (stupidly) ignore SIGALRM.
52942         * m4/strstr.m4 (gl_FUNC_STRSTR): Reset SIGALRM to default handling
52943         before using alarm().
52944         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
52945         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
52946         Reported by Ian Beckwith <ianb@erislabs.net>.
52947
52948         Produce autobuild blurb earlier in log.
52949         * modules/autobuild (configure.ac-early): Move AB_INIT here.
52950
52951 2008-06-09  Jim Meyering  <meyering@redhat.com>
52952         and Ondřej Vašík  <ovasik@redhat.com>
52953
52954         utimens.c: correct kernel bug work-around
52955         Ondřej Vašík found that the invalid return value of 280 indicates
52956         failure, not success, and the kernel bug we're trying to work
52957         around affects not just the utimensat call, but also the fallback
52958         futimens call.
52959         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT]: Simulate failure,
52960         not success.
52961         [HAVE_FUTIMENS]: Use the same work-around, here.
52962
52963 2008-06-09  Jim Meyering  <meyering@redhat.com>
52964
52965         add more guards around definition of ACE_-related code
52966         * lib/file-has-acl.c (acl_ace_nontrivial): Define only if
52967         ALLOW and ACE_OWNER are also defined.
52968
52969 2008-06-08  Bruno Haible  <bruno@clisp.org>
52970
52971         * lib/acl-internal.h: Add me as co-author.
52972         * lib/file-has-acl.c: Likewise.
52973         * lib/set-mode-acl.c: Likewise.
52974         * lib/copy-acl.c: Likewise.
52975
52976 2008-06-08  Bruno Haible  <bruno@clisp.org>
52977
52978         Add support for AIX ACLs.
52979         * lib/acl-internal.h (acl_nontrivial): New declaration.
52980         * lib/file-has-acl.c (acl_nontrivial): New function.
52981         (file_has_acl): Add implementation using AIX 4 ACL API.
52982         * lib/set-mode-acl.c (qset_acl): Likewise.
52983         * lib/copy-acl.c (qcopy_acl): Likewise.
52984
52985 2008-06-08  Bruno Haible  <bruno@clisp.org>
52986
52987         Add support for HP-UX ACLs.
52988         * lib/acl-internal.h (acl_nontrivial): New declaration.
52989         * lib/file-has-acl.c (acl_nontrivial): New function.
52990         (file_has_acl): Add implementation using HP-UX 11 ACL API.
52991         * lib/set-mode-acl.c (qset_acl): Likewise.
52992         * lib/copy-acl.c (qcopy_acl): Likewise.
52993
52994 2008-06-08  Bruno Haible  <bruno@clisp.org>
52995
52996         Add support for Cygwin ACLs.
52997         * lib/acl-internal.h (MODE_INSIDE_ACL): New macro for Solaris-like API.
52998         * lib/set-mode-acl.c (qset_acl) [!MODE_INSIDE_ACL]: Don't optimize away
52999         the chmod_or_fchmod call.
53000         * lib/copy-acl.c (qcopy_acl) [!MODE_INSIDE_ACL]: Likewise.
53001
53002 2008-06-08  Bruno Haible  <bruno@clisp.org>
53003
53004         Fix bug with setuid modes in Solaris 10+ code.
53005         * lib/set-mode-acl.c (qset_acl): Call chmod_or_fchmod when acl_set
53006         succeeded, when the mode contains some special bits.
53007
53008 2008-06-08  Bruno Haible  <bruno@clisp.org>
53009
53010         Add support for Solaris 7..10 ACLs.
53011         * lib/acl-internal.h (acl_nontrivial, acl_ace_nontrivial): New
53012         declarations.
53013         * lib/file-has-acl.c (acl_nontrivial, acl_ace_nontrivial): New
53014         functions.
53015         (file_has_acl): Add implementation using Solaris 7..10 ACL API.
53016         * lib/set-mode-acl.c (qset_acl): Likewise.
53017         * lib/copy-acl.c (qcopy_acl): Likewise.
53018
53019 2008-06-08  Bruno Haible  <bruno@clisp.org>
53020
53021         * lib/acl-internal.h (acl_extended_nontrivial) [MacOS X]: New
53022         declaration.
53023         * lib/file-has-acl.c (acl_extended_nontrivial) [MacOS X]: New function.
53024         (acl_access_nontrivial): Remove MacOS X case.
53025         (file_has_acl): Use acl_extended_nontrivial.
53026         * lib/copy-acl.c (qcopy_acl): Likewise.
53027
53028 2008-06-08  Bruno Haible  <bruno@clisp.org>
53029
53030         * lib/set-mode-acl.c (qset_acl): Trivial code simplifications.
53031
53032 2008-06-08  Jim Meyering  <meyering@redhat.com>
53033
53034         * modules/acl (Maintainer): Add Bruno Haible.
53035
53036 2008-06-07  Bruno Haible  <bruno@clisp.org>
53037
53038         Improve support for Tru64 ACLs.
53039         * lib/file-has-acl.c (file_has_acl): Don't test the ACL_TYPE_DEFAULT
53040         ACL on OSF/1.
53041
53042 2008-06-07  Bruno Haible  <bruno@clisp.org>
53043
53044         Add support for MacOS X ACLs.
53045         * lib/file-has-acl.c (file_has_acl): Use ACL_TYPE_EXTENDED instead of
53046         ACL_TYPE_ACCESS and ACL_TYPE_DEFAULT.
53047         * lib/set-mode-acl.c (qset_acl): Likewise.
53048         * lib/copy-acl.c (qcopy_acl): Likewise.
53049
53050 2008-06-07  Bruno Haible  <bruno@clisp.org>
53051
53052         Fix memory leak introduced on 2008-05-22.
53053         * lib/set-mode-acl.c (qset_acl) [!MODE_INSIDE_ACL]: Free ACLs after
53054         use.
53055
53056 2008-06-07  Bruno Haible  <bruno@clisp.org>
53057
53058         * lib/set-mode-acl.c (qset_acl): Use acl_init(), not acl_from_text(),
53059         to construct an empty ACL.
53060
53061 2008-06-07  Bruno Haible  <bruno@clisp.org>
53062
53063         * lib/set-mode-acl.c (chmod_or_fchmod): Document return value
53064         precisely.
53065         * lib/copy-acl.c (qcopy_acl): Trivial code simplifications.
53066
53067 2008-06-07  Bruno Haible  <bruno@clisp.org>
53068
53069         * lib/copy-acl.c (qcopy_acl): Make the #if branches independent.
53070         * lib/set-mode-acl.c (qset_acl): Choose better local variable names.
53071
53072 2008-06-07  Bruno Haible  <bruno@clisp.org>
53073
53074         * doc/posix-functions/_setjmp.texi: Explain the use of this function
53075         regardless of POSIX.
53076         * doc/posix-functions/_longjmp.texi: Likewise.
53077         * doc/posix-functions/setjmp.texi: Mention HP-UX as not counting as a
53078         SystemV platform in this case.
53079
53080 2008-06-06  Eric Blake  <ebb9@byu.net>
53081
53082         Document abort() bugs.
53083         * doc/posix-functions/abort.texi (abort): Mention anomalies.
53084
53085         * doc/posix-functions/setjmp.texi (setjmp): Mingw has setjmp.
53086         * doc/posix-functions/sigsetjmp.texi (sigsetjmp): Cygwin has
53087         sigsetjmp.
53088         * doc/posix-functions/siglongjmp.texi (siglongjmp): Cygwin has
53089         siglongjmp, but only as a macro.
53090         * doc/posix-functions/_longjmp.texi (_longjmp): Mention that this
53091         is obsolete.
53092         * doc/posix-functions/_setjmp.texi (_setjmp): Likewise.
53093
53094         Tweak documentation to cover cygwin argz bugs.
53095         * m4/argz.m4 (gl_FUNC_ARGZ): Mention date of last known cygwin
53096         argz bug fix; no code change needed since no cygwin releases
53097         occurred between the last fix and the bug being tested.
53098         * doc/glibc-functions/argz_add.texi (argz_add): Document the argz
53099         module and recently fixed cygwin bugs.
53100         * doc/glibc-functions/argz_add_sep.texi (argz_add_sep): Likewise.
53101         * doc/glibc-functions/argz_append.texi (argz_append): Likewise.
53102         * doc/glibc-functions/argz_count.texi (argz_count): Likewise.
53103         * doc/glibc-functions/argz_create.texi (argz_create): Likewise.
53104         * doc/glibc-functions/argz_create_sep.texi (argz_create_sep):
53105         Likewise.
53106         * doc/glibc-functions/argz_delete.texi (argz_delete): Likewise.
53107         * doc/glibc-functions/argz_extract.texi (argz_extract): Likewise.
53108         * doc/glibc-functions/argz_insert.texi (argz_insert): Likewise.
53109         * doc/glibc-functions/argz_next.texi (argz_next): Likewise.
53110         * doc/glibc-functions/argz_replace.texi (argz_replace): Likewise.
53111         * doc/glibc-functions/argz_stringify.texi (argz_stringify):
53112         Likewise.
53113
53114         Avoid gcc warning on cygwin.
53115         * lib/copy-acl.c (qcopy_acl) [!HAVE_ACL_GET_FILE &&
53116         !ACL_NO_TRIVIAL]: Avoid unused variable.
53117
53118 2008-06-05  Eric Blake  <ebb9@byu.net>
53119
53120         Be tolerant of UNKNOWN version in gnulib-tool test dir.
53121         * top/GNUmakefile (_dummy): Warn rather than reconfigure if
53122         git-version-gen fails to come up with a version.
53123         Reported by Simon Josefsson.
53124
53125 2008-06-05  Jim Meyering  <meyering@redhat.com>
53126             Paul Eggert  <eggert@cs.ucla.edu>
53127
53128         utimens.c: work around a probable Linux kernel bug
53129         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT]: Work around what
53130         appears to be a kernel bug that causes utimensat to return 280
53131         instead of 0, indicating success.
53132
53133 2008-06-04  Bruno Haible  <bruno@clisp.org>
53134
53135         * lib/copy-acl.c (qcopy_acl): Call qset_acl, not set_acl. Fixes
53136         2008-06-01 commit.
53137
53138 2008-06-04  Bruno Haible  <bruno@clisp.org>
53139
53140         * lib/acl-internal.h (acl_access_nontrivial): New declaration.
53141         * lib/file-has-acl.c (acl_access_nontrivial): New function.
53142         (file_has_acl): Use it. Save errno afterwards.
53143         * lib/copy-acl.c (qcopy_acl): Use acl_access_nontrivial.
53144
53145 2008-06-03  Bruno Haible  <bruno@clisp.org>
53146
53147         * lib/file-has-acl.c (file_has_acl): Put Solaris 10 code after POSIX-
53148         draft code. Simplify #ifs.
53149         * lib/set-mode-acl.c (qset_acl): Don't test for symlink if !USE_ACL.
53150         Put Solaris code after POSIX-draft code. Fix comments regarding
53151         Solaris 10, HP-UX. Mention Cygwin.
53152         * lib/copy-acl.c (qcopy_acl): Simplify #ifs.
53153
53154 2008-06-03  Eric Blake  <ebb9@byu.net>
53155
53156         Provide fallback for older kernels.
53157         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT, HAVE_FUTIMENS]:
53158         Provide runtime fallback if kernel lacks support.
53159         Reported by Mike Frysinger.
53160
53161 2008-06-02  Bruno Haible  <bruno@clisp.org>
53162
53163         * lib/acl-internal.h (ACL_NOT_WELL_SUPPORTED): Include EOPNOTSUPP if
53164         it exists.
53165
53166 2008-06-02  Bruno Haible  <bruno@clisp.org>
53167
53168         * lib/acl_entries.c (acl_entries): Rewrite to use acl_get_entry.
53169         * lib/copy-acl.c (qcopy_acl): Update comment.
53170
53171 2008-06-02  Bruno Haible  <bruno@clisp.org>
53172
53173         * lib/acl-entries.h: Enclose most definitions in #ifs for POSIX-draft
53174         like ACL APIs.
53175
53176 2008-06-02  Bruno Haible  <bruno@clisp.org>
53177
53178         * tests/test-file-has-acl.sh: Use different code for Cygwin.
53179         * tests/test-set-mode-acl.sh: Likewise.
53180         * tests/test-copy-acl.sh: Likewise.
53181         * tests/test-copy-file.sh: Likewise.
53182
53183 2008-06-02  Bruno Haible  <bruno@clisp.org>
53184
53185         * tests/test-file-has-acl.sh: Remove unused code.
53186
53187 2008-06-01  Bruno Haible  <bruno@clisp.org>
53188
53189         * lib/copy-acl.c (qcopy_acl): New function, extracted from copy_acl.
53190         (copy_acl): Just a wrapper around qcopy_acl that emits the error
53191         messages.
53192         * lib/set-mode-acl.c (qset_acl): Document return value precisely.
53193
53194 2008-06-01  Bruno Haible  <bruno@clisp.org>
53195
53196         * m4/acl.m4 (gl_FUNC_ACL): Separate the POSIX-like and the Solaris
53197         tests. Test for libpacl, needed for OSF/1. Test for extended ACLs,
53198         needed for MacOS X. Test for HP-UX API. Test for newer and older AIX
53199         APIs.
53200         * modules/acl-tests (configure.ac): Remove tests now contained in
53201         m4/acl.m4.
53202
53203 2008-06-02  Jim Meyering  <meyering@redhat.com>
53204
53205         announce-gen: use a better key-server host name
53206         * build-aux/announce-gen (main): Recommend keys.gnupg.net, since
53207         it may be more consistently reliable.  Suggested by Werner Koch
53208         in <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/13717>.
53209
53210 2008-06-01  Bruno Haible  <bruno@clisp.org>
53211
53212         * lib/stdio-impl.h (fp_ub): Use fp_. Needed for DragonFly BSD.
53213         Reported by Voroskoi Andras <voroskoi@gmail.com>.
53214
53215 2008-06-01  Voroskoi Andras  <voroskoi@gmail.com>  (tiny change)
53216
53217         * lib/stdio-impl.h [__DragonFly__]: Fix typo.
53218
53219 2008-06-01  Bruno Haible  <bruno@clisp.org>
53220
53221         New ACL tests.
53222         * tests/test-file-has-acl.sh: New file.
53223         * tests/test-file-has-acl.c: New file.
53224         * tests/test-set-mode-acl.sh: New file.
53225         * tests/test-set-mode-acl.c: New file.
53226         * tests/test-copy-acl.sh: New file, based on tests/test-copy-file.sh.
53227         * tests/test-copy-acl.c: New file.
53228         * modules/acl-tests: New file, based on modules/copy-file-tests.
53229         * modules/copy-file-tests (Files): Remove tests/test-sameacls.c.
53230         (Depends-on): Add acl-tests.
53231         (configure.ac): Remove checks.
53232         (Makefile.am): Don't create test-sameacls program here any more.
53233
53234 2008-06-01  Bruno Haible  <bruno@clisp.org>
53235
53236         * tests/test-copy-file.sh: Portability fixes for Solaris, HP-UX, IRIX.
53237         * tests/test-sameacls.c: Include progname.h.
53238         (main): Invoke set_program_name. Portability fixes for MacOS X,
53239         Solaris, HP-UX.
53240
53241 2008-06-01  Bruno Haible  <bruno@clisp.org>
53242
53243         * lib/freadahead.c (freadahead) [__DragonFly__]: Use the __sreadahead
53244         function.
53245         Reported by VOROSKOI Andras <voroskoi@gmail.com>.
53246
53247 2008-06-01  Bruno Haible  <bruno@clisp.org>
53248
53249         * modules/rpmatch (Depends-on): Add strdup.
53250
53251 2008-06-01  Bruno Haible  <bruno@clisp.org>
53252
53253         * lib/pipe.c: Include unistd-safer.h.
53254         (create_pipe): Ensure the returned file descriptors are not in {0,1,2}.
53255         * modules/pipe (Depends-on): Add unistd-safer.
53256
53257 2008-05-30  Simon Josefsson  <simon@josefsson.org>
53258
53259         * modules/autobuild (configure.ac): Call AB_INIT.
53260
53261 2008-05-30  Simon Josefsson  <simon@josefsson.org>
53262
53263         * tests/test-getaddrinfo.c: Don't print debug messages by default.
53264         Suggested by Bruno Haible <bruno@clisp.org>.
53265
53266 2008-05-30  Simon Josefsson  <simon@josefsson.org>
53267
53268         * tests/test-base64.c: Cast size_t to unsigned long when invoking
53269         printf.  Use %lu instead of %d.  Reported by Bruno Haible
53270         <bruno@clisp.org>.
53271
53272 2008-05-29  Eric Blake  <ebb9@byu.net>
53273
53274         Prefer new POSIX 200x interfaces over futimesat.
53275         * m4/utimens.m4 (gl_UTIMENS): Check for futimens, utimensat.
53276         * lib/utimens.c (gl_futimens): Use them for nanosecond resolution
53277         when available.
53278         [HAVE_BUGGY_NFS_TIME_STAMPS]: Allow C89 compilation.
53279
53280 2008-05-28  Bruno Haible  <bruno@clisp.org>
53281
53282         * modules/stpcpy (License): Change to LGPLv2+.
53283         Requested by David Lutterkort <dlutter@redhat.com>.
53284
53285 2008-05-27  Bruno Haible  <bruno@clisp.org>
53286
53287         * lib/localename.c (SUBLANG_TIBETAN_BHUTAN): Force value 2. Needed for
53288         current mingw.
53289         Reported by Jose E. Marchesi <jemarch@gnu.org>.
53290
53291 2008-05-27  Bruno Haible  <bruno@clisp.org>
53292
53293         * modules/iconv_open (Link): New section, from module 'iconv'.
53294         * modules/striconv (Link): Likewise.
53295         * modules/striconveh (Link): Likewise.
53296         * modules/xstriconv (Link): Likewise.
53297         * modules/unicodeio (Link): Likewise.
53298         * modules/propername (Link): Likewise.
53299         Reported by Jim Meyering.
53300
53301 2008-05-26  Jim Meyering  <meyering@redhat.com>
53302
53303         sha256: do not artificially restrict buffer length to be < 2^32
53304         * lib/sha256.h (struct sha256_ctx) [buflen]: Change type from
53305         uint32_t to size_t.
53306         * lib/sha256.c (sha256_conclude_ctx): Change type of a local
53307         to match.
53308
53309         avoid unaligned access errors, e.g., on sparc
53310         * lib/sha512.c (sha512_conclude_ctx): Use set_uint64 rather than
53311         direct access through a possibly-unaligned uint64* pointer.
53312         * lib/sha256.c (sha256_conclude_ctx): Use set_uint32 rather than
53313         direct access through a possibly-unaligned uint32* pointer.
53314         Prompted by this patch from Tom "spot" Callaway:
53315         http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/13638
53316
53317         sha512.c: fix typo in comment
53318         * lib/sha512.c (sha512_conclude_ctx): Length is 128-bit, not 64-bit.
53319
53320 2008-05-25  Bruno Haible  <bruno@clisp.org>
53321
53322         * lib/set-mode-acl.c: Renamed from lib/acl.c.
53323         * modules/acl (Files): Add lib/set-mode-acl.c, remove lib/acl.c.
53324         (Makefile.am): Update lib_SOURCES.
53325
53326 2008-05-25  Bruno Haible  <bruno@clisp.org>
53327
53328         * m4/acl.m4 (gl_FUNC_ACL): Don't set LIB_ACL_TRIVIAL.
53329
53330 2008-05-25  Jim Meyering  <meyering@redhat.com>
53331
53332         useless-if-before-free: freed expr may have white-space differences
53333         * build-aux/useless-if-before-free: Recognize cases in which the
53334         freed expression differs from the tested one in embedded white
53335         space, e.g., if (p[i + 1]) free(p[i+1]).  Correct thinko in prev:
53336         $1 was used, so we can't make any regexp shy.  Improved tests now
53337         detect this.
53338
53339         useless-if-before-free: accept white space in the expression.
53340         * build-aux/useless-if-before-free: For now, any white space
53341         in the expression must be identical in the free argument.
53342
53343         useless-if-before-free: efficiency tweak
53344         * build-aux/useless-if-before-free: Make the expression-matching
53345         regexp "shy".
53346         Make the *outer* regexp shy, not the expr-matching one.
53347
53348         update code-in-comment to accept cast of free arg
53349         * build-aux/useless-if-before-free: Update regexp.
53350
53351 2008-05-25  Bruno Haible  <bruno@clisp.org>
53352
53353         * tests/test-sameacls.c: Renamed from tests/test-copy-file-sameacls.c.
53354         * modules/copy-file-tests (Files, Makefile.am): Update.
53355         * tests/test-copy-file.c (func_test_copy): Update.
53356
53357 2008-05-24  Andreas Färber  <andreas.faerber@web.de>  (tiny change)
53358
53359         * lib/stdbool.in.h [__HAIKU__]: Disable __BEOS__ workarounds.
53360
53361 2008-05-23  Bruno Haible  <bruno@clisp.org>
53362
53363         Improve support for ACLs on OSF/1.
53364         * lib/acl.c (qset_acl): For OSF/1, use a string that ends in a comma.
53365         Remove fallback for unknown flavors of ACLs.
53366
53367 2008-05-22  Bruno Haible  <bruno@clisp.org>
53368
53369         Add support for ACLs on OSF/1.
53370         * lib/acl-internal.h (acl_get_fd, acl_set_fd): New inline function
53371         replacements.
53372         (acl_free_text): New macro fallback.
53373         * lib/acl_entries.c (acl_entries): Use acl_free_text instead of
53374         acl_free.
53375         * m4/acl.m4 (gl_FUNC_ACL): Look also in libpacl library. Test for
53376         acl_free_text function. Require AC_C_INLINE.
53377
53378 2008-05-22  Bruno Haible  <bruno@clisp.org>
53379
53380         Make copy_acl work on MacOS X 10.5.
53381         * lib/acl-internal.h (MODE_INSIDE_ACL): New macro.
53382         (ACL_NOT_WELL_SUPPORTED): On MacOS X, also handle ENOENT.
53383         * lib/acl.c (qset_acl): Add different code branch for !MODE_INSIDE_ACL.
53384         If MODE_INSIDE_ACL, don't assume that every system has the same text
53385         representation for ACLs as FreeBSD.
53386         * lib/copy-acl.c (copy_acl): Add support for platforms with
53387         !MODE_INSIDE_ACL.
53388         * lib/file-has-acl.c (file_has_acl): Likewise.
53389         * m4/acl.m4 (gl_FUNC_ACL): Test for some functions that are witness of
53390         FreeBSD, MacOS X, or IRIX, respectively.
53391
53392 2008-05-22  Bruno Haible  <bruno@clisp.org>
53393
53394         * lib/acl.h: Don't include <sys/acl.h>.
53395         (GETACLCNT): Move fallback to lib/acl-internal.h.
53396         * lib/acl-internal.h: Include <sys/acl.h> here.
53397         (GETACLCNT): New macro fallback, moved here from lib/acl.h.
53398
53399 2008-05-22  Bruno Haible  <bruno@clisp.org>
53400
53401         Split off copy_acl function to separate file.
53402         * lib/copy-acl.c: New file, extracted from lib/acl.c.
53403         * lib/acl.c (copy_acl): Moved function to separate file.
53404         * m4/acl.m4 (gl_FUNC_ACL): Remove unconditional AC_LIBOBJs.
53405         * modules/acl (Files): Add lib/copy-acl.c.
53406         (Makefiles.am): Augment lib_SOURCES.
53407
53408 2008-05-22  Bruno Haible  <bruno@clisp.org>
53409
53410         * modules/copy-file-tests: New file.
53411         * tests/test-copy-file.sh: New file.
53412         * tests/test-copy-file.c: New file.
53413         * tests/test-copy-file-sameacls.c: New file.
53414
53415 2008-05-22  Eric Blake  <ebb9@byu.net>
53416
53417         Avoid gcc warning.
53418         * tests/test-memcmp.c (main): Pass NULL indirectly.
53419
53420 2008-05-21  Bruno Haible  <bruno@clisp.org>
53421
53422         Add reference doc about ACLs.
53423         * doc/acl-resources.txt: New file.
53424         * doc/acl-cygwin.txt: New file.
53425
53426 2008-05-21  Bruno Haible  <bruno@clisp.org>
53427
53428         Avoid one more warning from gcc.
53429         * lib/vasnprintf.c (IF_LINT): Update comments.
53430         (VASNPRINTF): Use it also for the 'prefix' array initializer.
53431
53432 2008-05-21  Jim Meyering  <meyering@redhat.com>
53433
53434         avoid a warning from gcc
53435         * lib/vasnprintf.c (IF_LINT): Define.
53436         (scale10_round_decimal_long_double):
53437         Use it to avoid a "may be used uninitialized" warning.
53438         (scale10_round_decimal_double): Likewise.
53439
53440 2008-05-21  Simon Josefsson  <simon@josefsson.org>
53441
53442         * m4/memcmp.m4: When cross-compiling, assume memcmp works if it is
53443         declared.
53444
53445 2008-05-20  Bruno Haible  <bruno@clisp.org>
53446
53447         * tests/test-memcmp.c (main): Test also the sign of the result. Test
53448         against two known bugs; code taken from autoconf's AC_FUNC_MEMCMP.
53449
53450 2008-05-20  Simon Josefsson  <simon@josefsson.org>
53451
53452         * modules/memcmp-tests: New file.
53453         * tests/test-memcmp.c: New file.
53454
53455 2008-05-19  Bruno Haible  <bruno@clisp.org>
53456
53457         * modules/propername (Notice, configure.ac): Put quoted "..." into
53458         --keyword option.
53459         * lib/propername.h: Update comments accordingly.
53460         Reported by Eric Blake.
53461
53462 2008-05-19  Martin Lambers  <marlam@marlam.de>  (tiny change)
53463
53464         * modules/getpass-gnu (Depends-on): Add fseeko.
53465
53466 2008-05-19  Simon Josefsson  <simon@josefsson.org>
53467
53468         * modules/base64-tests: New file.
53469
53470 2008-05-19  Bo Borgerson <gigabo@gmail.com>
53471
53472         * lib/base64.c (base64_decode_ctx): If a decode context structure
53473         was passed in use it to ignore newlines.  If a context structure
53474         was _not_ passed in, continue to treat newlines as garbage (this
53475         is the historical behavior).  Formerly base64_decode.
53476         (base64_decode_alloc_ctx): Formerly base64_decode_alloc.  Now
53477         takes a decode context structure.
53478         * lib/base64.h (base64_decode): Macro for four-argument calls.
53479         (base64_decode_alloc): Likewise.
53480         * lib/base64.c (base64_decode_ctx): If a decode context structure
53481         was passed in use it to ignore newlines.  If a context structure
53482         was _not_ passed in, continue to treat newlines as garbage (this
53483         is the historical behavior).  Formerly base64_decode.
53484         (base64_decode_alloc_ctx): Formerly base64_decode_alloc.  Now
53485         takes a decode context structure.
53486         * lib/base64.h (base64_decode): Macro for four-argument calls.
53487         (base64_decode_alloc): Likewise.
53488
53489 2008-05-19  Jim Meyering  <meyering@redhat.com>
53490
53491         avoid a warning from gcc
53492         * lib/trim.c (IF_LINT): Define.
53493         (trim2): Use it to avoid a "may be used uninitialized" warning.
53494
53495         Fix doc typo.
53496         * doc/glibc-functions/getpass.texi (getpass): s/PATH_MAX/PASS_MAX/.
53497
53498 2008-05-19  Bruno Haible  <bruno@clisp.org>
53499
53500         * doc/glibc-functions/getpass.texi: Document limits of other
53501         implementations.
53502
53503 2008-05-19  Simon Josefsson  <simon@josefsson.org>
53504             Bruno Haible <bruno@clisp.org>
53505
53506         * doc/glibc-functions/getpass.texi: Document gnulib implementation.
53507
53508 2008-05-18  Bruno Haible  <bruno@clisp.org>
53509
53510         * modules/propername: New file, from GNU gettext.
53511         * lib/propername.h: New file, from GNU gettext.
53512         * lib/propername.c: New file, from GNU gettext.
53513         * MODULES.html.sh (Internationalization functions): Add propername.
53514
53515 2008-05-16  Jim Meyering  <meyering@redhat.com>
53516             Bruno Haible  <bruno@clisp.org>
53517
53518         Avoid some warnings from "gcc -Wshadow".
53519         * lib/vasnprintf.c (exp, remainder): Define to different identifiers.
53520
53521 2008-05-15  Eric Blake  <ebb9@byu.net>
53522
53523         Extend previous patch to cygwin 1.7.0.
53524         * m4/memmem.m4 (gl_FUNC_MEMMEM): When cross-compiling, assume a
53525         fast implementation in cygwin >= 1.7.0.
53526         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
53527         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
53528
53529 2008-05-15  Bruno Haible  <bruno@clisp.org>
53530
53531         * m4/memmem.m4 (gl_FUNC_MEMMEM): When cross-compiling, assume a fast
53532         implementation in glibc >= 2.9.
53533         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
53534         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
53535
53536 2008-05-15  Bruno Haible  <bruno@clisp.org>
53537
53538         * MODULES.html.sh (Internationalization functions): Remove linebreak.
53539         (Unicode string functions): Add unilbrk/*.
53540         Reported by Karl Berry.
53541
53542 2008-05-15  Eric Blake  <ebb9@byu.net>
53543
53544         Fix violation of <stdbool.h> replacement in regex.
53545         * lib/regcomp.c (re_compile_internal): Avoid implicit cast to bool.
53546         * lib/regexec.c (re_search_internal): Likewise.
53547         Reported by Heinrich Mislik <Heinrich.Mislik@univie.ac.at>.
53548
53549 2008-05-15  Jim Meyering  <meyering@redhat.com>
53550
53551         avoid distracting test output when git or cvs is not found
53552         * tests/test-vc-list-files-cvs.sh: Suppress 'init' error output.
53553         * tests/test-vc-list-files-git.sh: Likewise.
53554
53555 2008-05-15  Eric Blake  <ebb9@byu.net>
53556
53557         Glibc finally accepted the memmem speedup code, bugzilla #5514.
53558         * doc/glibc-functions/memmem.texi (memmem): Mention last broken
53559         glibc version.
53560         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
53561         * doc/posix-functions/strstr.texi (strstr): Likewise.
53562         * lib/str-two-way.h (MAX): Sychronize with glibc.
53563
53564 2008-05-15  Paolo Bonzini  <bonzini@gnu.org>
53565
53566         * lib/regcomp.c (optimize_utf8): Add a note on why we test
53567         opr.ctx_type.
53568         (calc_first): Initialize constraint field.
53569         (duplicate_node_closure): Use it instead of special casing ANCHORS.
53570         Fix grammar.
53571         (duplicate_node): Merge constraint field for all node types.
53572         (calc_eclosure_iter): Look at constraint field for all node types.
53573         * lib/regex_internal.c (create_cd_newstate): Don't look at
53574         opr.ctx_type.
53575
53576 2008-05-14  Bruno Haible  <bruno@clisp.org>
53577
53578         Help GCC to do better code generation.
53579         * lib/eealloc.h (eemalloc) [GCC >= 3]: Declare with attribute 'malloc'.
53580         * lib/pagealign_alloc.h (pagealign_alloc, pagealign_xalloc): Likewise.
53581         * lib/xalloc.h (ATTRIBUTE_MALLOC): New macro.
53582         (xmalloc, xzalloc, xcalloc, xmemdup, xstrdup, xnmalloc, xcharalloc):
53583         Declare with attribute 'malloc' if supported.
53584
53585 2008-05-14  Lasse Collin  <lasse.collin@tukaani.org>
53586
53587         use "echo STR|wc -c" rather than unportable "expr length STR"
53588         * build-aux/mktempd (mktempd): Vendor-supplied expr from at least
53589         OpenBSD 4.3 and Solaris 10 do not honor expr's "length" function.
53590
53591 2008-05-14  Jim Meyering  <meyering@redhat.com>
53592
53593         use dd ibs=$n count=1 ... rather than less-portable head -c$n
53594         * build-aux/mktempd (rand_bytes): head's -cN option is not accepted
53595         by Solaris 10's /bin/head or by the one from HP-UX 11.x.
53596         Reported in http://sourceforge.net/forum/message.php?msg_id=4960334
53597         via Collin Lasse.
53598
53599 2008-05-14  Eric Blake  <ebb9@byu.net>
53600
53601         Avoid quadratic growth in gl_LIBSOURCES.
53602         * gnulib-tool (func_emit_initmacro_done): s/\(m4_append\)_uniq/\1/.
53603         Suggested by Bruno Haible.
53604
53605         Test xmemdup0.
53606         * modules/xmemdup0-tests: New file.
53607         * tests/test-xmemdup0.c: Likewise.
53608
53609 2008-05-13  Eric Blake  <ebb9@byu.net>
53610
53611         Split xmemdup0 into its own module.
53612         * modules/xmemdup0: New file.
53613         * lib/xmemdup0.h: Likewise.
53614         * lib/xmemdup0.c: Likewise.
53615         * MODULES.html.sh (Memory management functions): Add xmemdup0.
53616         * lib/xalloc.h (xmemdup0): Remove.
53617         * lib/xmalloc.c (xmemdup0): Likewise.
53618
53619 2008-05-13  Eric Blake  <ebb9@byu.net>
53620             Bruno Haible  <bruno@clisp.org>
53621
53622         Reduce number of forks required during autoconf.
53623         * gnulib-tool (func_emit_initmacro_start): Prepare gl_LIBSOURCES_LIST
53624         and gl_LIBSOURCES_DIR.
53625         (func_emit_initmacro_end): Use them here in a single m4_syscmd...
53626         (func_emit_initmacro_done) <gl_LIBSOURCES>: ...rather than in one
53627         m4_syscmd per file.
53628         <m4_foreach_w>: Move...
53629         * m4/gnulib-common.m4 (m4_foreach_w): ...here.
53630
53631 2008-05-13  Eric Blake  <ebb9@byu.net>
53632
53633         * gnulib-tool: Fix various comment typos.
53634
53635 2008-05-12  Bruno Haible  <bruno@clisp.org>
53636
53637         Tailor the linebreaking algorithm.
53638         * lib/unilbrk/tables.c (unilbrk_table): Change (IS,AL) entry.
53639
53640 2008-05-12  Bruno Haible  <bruno@clisp.org>
53641
53642         Update to Unicode 5.0.0.
53643         * lib/unilbrk/tables.h (LBP_*): Add LBP_WJ, LBP_H2, LBP_H3, LBP_JL,
53644         LBP_JV, LBP_JT. Redistribute values.
53645         (unilbrk_table): Change size.
53646         * lib/unilbrk/tables.c (unilbrk_table): Change size. Update to match
53647         Unicode TR#14 rev. 22.
53648         * lib/unilbrk/gen-lbrk.c (LBP_*): Add LBP_WJ, LBP_H2, LBP_H3, LBP_JL,
53649         LBP_JV, LBP_JT. Redistribute values.
53650         (get_lbp): Update to match Unicode TR#14 rev. 21/22 and Unicode 5.0.0.
53651         (debug_output_lbp, fill_org_lbp, debug_output_org_lbp, output_lbp):
53652         Update.
53653         * lib/unilbrk/lbrkprop1.h: Regenerated.
53654         * lib/unilbrk/lbrkprop2.h: Regenerated.
53655         * lib/unilbrk/u8-possible-linebreaks.c (u8_possible_linebreaks):
53656         Change handling of LBP_CM after LBP_ZW. Update for new value of LBP_BK.
53657         * lib/unilbrk/u16-possible-linebreaks.c (u16_possible_linebreaks):
53658         Likewise.
53659         * lib/unilbrk/u32-possible-linebreaks.c (u32_possible_linebreaks):
53660         Likewise.
53661         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Update expected
53662         result.
53663         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
53664         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
53665         * tests/unilbrk/test-ulc-possible-linebreaks.c (main): Likewise.
53666         * tests/unilbrk/test-u8-width-linebreaks.c (main): Likewise.
53667         * tests/unilbrk/test-u16-width-linebreaks.c (main): Likewise.
53668         * tests/unilbrk/test-u32-width-linebreaks.c (main): Likewise.
53669
53670 2008-05-11  Bruno Haible  <bruno@clisp.org>
53671
53672         * lib/unilbrk/gen-lbrk.c (output_lbp): Fix whitespace.
53673
53674 2008-05-11  Bruno Haible  <bruno@clisp.org>
53675
53676         * lib/unilbrk/gen-lbrk.c: New file, from GNU gettext (gen-lbrkprop.c).
53677         * modules/unilbrk/gen-lbrk: New file.
53678
53679 2008-05-11  Bruno Haible  <bruno@clisp.org>
53680
53681         * m4/sha256.m4 (gl_SHA256): Require AC_C_INLINE.
53682         * m4/sha512.m4 (gl_SHA512): Likewise.
53683
53684 2008-05-11  Jim Meyering  <meyering@redhat.com>
53685
53686         New modules: crypto/sha256, crypto/sha512 (from coreutils)
53687         * modules/crypto/sha256: New file.
53688         * modules/crypto/sha512: Likewise.
53689         * lib/sha256.c: Likewise.
53690         * lib/sha256.h: Likewise.
53691         * lib/sha512.c: Likewise.
53692         * lib/sha512.h: Likewise.
53693         * lib/u64.h: Likewise.
53694         * m4/sha256.m4: Likewise.
53695         * m4/sha512.m4: Likewise.
53696         * MODULES.html.sh (Cryptographic computations (low-level)): List them.
53697
53698 2008-05-10  Bruno Haible  <bruno@clisp.org>
53699
53700         * MODULES.html.sh (Environment variables <stdlib.h>): Add unsetenv.
53701         (Input/Output <stdio.h>): Add xprintf.
53702         (Signal handling <signal.h>): Add strsignal.
53703         (Cryptographic computations (high-level)): Add crypto/gc-camellia.
53704         (Core language properties): Add func.
53705         (Mathematics <math.h>): Add ceil, floor, frexp-nolibm.
53706         (Support for systems lacking POSIX:2001): Add environ, EOVERFLOW,
53707         strings.
53708         (Enhancements for POSIX:2001 functions): Add iconv_open-utf.
53709         (Input/output): New section.
53710         (File system functions): Add openat-die, stat-macros.
53711         (Networking functions): Add sockets.
53712         (Unicode string functions): Add unictype/*.
53713         (Support for building libraries and executables): Add gperf.
53714         (Support for building documentation): Add agpl-3.0.
53715         (Misc): Add nocrash.
53716
53717 2008-05-10  Bruno Haible  <bruno@clisp.org>
53718
53719         * modules/unictype/gen-ctype: New file.
53720
53721 2008-05-10  Jim Meyering  <meyering@redhat.com>
53722
53723         Make chdir-safer.c more efficient on a system with no symlinks.
53724         * lib/chdir-safer.c (chdir_no_follow): Skip lstat and fstat calls
53725         also if ELOOP is zero.  Suggested by Bruno Haible.
53726
53727         Make chdir-safer.c slightly safer.
53728         * lib/chdir-safer.c (chdir_no_follow): Test HAVE_WORKING_O_NOFOLLOW,
53729         not O_NOFOLLOW, in case the latter is nonzero and open ignores it.
53730
53731         Avoid compile failure on systems without ELOOP (like mingw).
53732         * lib/chdir-safer.c (ELOOP): Define if not already defined.
53733         Reported by Bruno Haible.
53734
53735 2008-05-10  Bruno Haible  <bruno@clisp.org>
53736
53737         * lib/unilbrk/ulc-common.c: Include c-strcaseeq.h instead of streq.h.
53738         (is_utf8_encoding): Use a case-insensitive comparison.
53739         * modules/unilbrk/ulc-common (Depends-on): Add c-strcaseeq. Remove
53740         streq.
53741
53742 2008-05-10  Bruno Haible  <bruno@clisp.org>
53743
53744         * lib/unilbrk/ulc-common.c: Don't include <stdlib.h>.
53745         (iconv_string_length, iconv_string_keeping_offsets): Remove functions.
53746         * lib/unilbrk/ulc-common.h (iconv_string_length,
53747         iconv_string_keeping_offsets): Remove declarations.
53748         * lib/unilbrk/ulc-possible-linebreaks.c: Include <string.h>, uniconv.h.
53749         Don't include <iconv.h>, streq.h, xsize.h.
53750         (ulc_possible_linebreaks): Use u8_conv_from_encoding for doing the
53751         conversion.
53752         * lib/unilbrk/ulc-width-linebreaks.c: Include uniconv.h. Don't include
53753         <iconv.h>, streq.h, xsize.h.
53754         (ulc_width_linebreaks): Use u8_conv_from_encoding for doing the
53755         conversion.
53756         * modules/unilbrk/ulc-common (Depends-on): Remove iconv.
53757         * modules/unilbrk/ulc-possible-linebreaks (Depends-on): Add
53758         uniconv/u8-conv-from-enc. Remove iconv_open, streq, xsize.
53759         * modules/unilbrk/ulc-width-linebreaks (Depends-on): Likewise.
53760
53761 2008-05-10  Bruno Haible  <bruno@clisp.org>
53762
53763         * modules/unilbrk/ulc-width-linebreaks-tests: New file.
53764         * tests/unilbrk/test-ulc-width-linebreaks.c: New file.
53765
53766         * modules/unilbrk/u32-width-linebreaks-tests: New file.
53767         * tests/unilbrk/test-u32-width-linebreaks.c: New file.
53768
53769         * modules/unilbrk/u16-width-linebreaks-tests: New file.
53770         * tests/unilbrk/test-u16-width-linebreaks.c: New file.
53771
53772         * modules/unilbrk/u8-width-linebreaks-tests: New file.
53773         * tests/unilbrk/test-u8-width-linebreaks.c: New file.
53774
53775         * modules/unilbrk/ulc-possible-linebreaks-tests: New file.
53776         * tests/unilbrk/test-ulc-possible-linebreaks.c: New file.
53777
53778         * modules/unilbrk/u32-possible-linebreaks-tests: New file.
53779         * tests/unilbrk/test-u32-possible-linebreaks.c: New file.
53780
53781         * modules/unilbrk/u16-possible-linebreaks-tests: New file.
53782         * tests/unilbrk/test-u16-possible-linebreaks.c: New file.
53783
53784         * modules/unilbrk/u8-possible-linebreaks-tests: New file.
53785         * tests/unilbrk/test-u8-possible-linebreaks.c: New file.
53786
53787 2008-05-10  Bruno Haible  <bruno@clisp.org>
53788
53789         Split up 'linebreak' module.
53790         * lib/unilbrk.h: New file, based on lib/linebreak.h.
53791         * lib/unilbrk/lbrkprop1.h: New file, extracted from lib/lbrkprop.h.
53792         * lib/unilbrk/lbrkprop2.h: New file, renamed from lib/lbrkprop.h with
53793         modifications.
53794         * lib/unilbrk/tables.h: New file, extracted from lib/linebreak.c.
53795         * lib/unilbrk/tables.c: New file, extracted from lib/linebreak.c.
53796         * lib/unilbrk/u8-possible-linebreaks.c: New file, extracted from
53797         lib/linebreak.c.
53798         * lib/unilbrk/u16-possible-linebreaks.c: New file, extracted from
53799         lib/linebreak.c.
53800         * lib/unilbrk/u32-possible-linebreaks.c: New file, extracted from
53801         lib/linebreak.c.
53802         * lib/unilbrk/ulc-common.h: New file, extracted from lib/linebreak.c.
53803         * lib/unilbrk/ulc-common.c: New file, extracted from lib/linebreak.c.
53804         * lib/unilbrk/ulc-possible-linebreaks.c: New file, extracted from
53805         lib/linebreak.c.
53806         * lib/unilbrk/u8-width-linebreaks.c: New file, extracted from
53807         lib/linebreak.c.
53808         * lib/unilbrk/u16-width-linebreaks.c: New file, extracted from
53809         lib/linebreak.c.
53810         * lib/unilbrk/u32-width-linebreaks.c: New file, extracted from
53811         lib/linebreak.c.
53812         * lib/unilbrk/ulc-width-linebreaks.c: New file, extracted from
53813         lib/linebreak.c.
53814         * modules/unilbrk/base: New file.
53815         * modules/unilbrk/tables: New file.
53816         * modules/unilbrk/u8-possible-linebreaks: New file.
53817         * modules/unilbrk/u16-possible-linebreaks: New file.
53818         * modules/unilbrk/u32-possible-linebreaks: New file.
53819         * modules/unilbrk/ulc-common: New file.
53820         * modules/unilbrk/ulc-possible-linebreaks: New file.
53821         * modules/unilbrk/u8-width-linebreaks: New file.
53822         * modules/unilbrk/u16-width-linebreaks: New file.
53823         * modules/unilbrk/u32-width-linebreaks: New file.
53824         * modules/unilbrk/ulc-width-linebreaks: New file.
53825         * lib/linebreak.h: Remove file.
53826         * lib/linebreak.c: Remove file.
53827         * m4/linebreak.m4: Remove file.
53828         * modules/linebreak: Remove file.
53829         * NEWS: Mention the changes.
53830
53831 2008-05-09  Eric Blake  <ebb9@byu.net>
53832
53833         Add xmemdup0.
53834         * lib/xalloc.h (xmemdup0): New prototype and C++ typesafe
53835         implementation.
53836         * lib/xmalloc.c (xmemdup0): New C implementation.
53837
53838 2008-05-08  Bruno Haible  <bruno@clisp.org>
53839
53840         * m4/wctype.m4 (gl_WCTYPE_H): Correct indentation.
53841
53842 2008-05-07  Eric Blake  <ebb9@byu.net>
53843
53844         Support cross-compilation of <wctype.h>.
53845         * m4/wctype.m4 (gl_WCTYPE_H): Fix improper nesting in
53846         AC_CACHE_CHECK.
53847
53848 2008-05-06  Soren Hansen  <soren@ubuntu.com>  (tiny change)
53849
53850         * build-aux/vc-list-files: Add support for bzr.
53851
53852 2008-05-03  Jim Meyering  <meyering@redhat.com>
53853
53854         avoid failed assertion with tight malloc
53855         * tests/test-getndelim2.c: Correct an off-by-one assertion.
53856
53857 2008-05-03  Simon Josefsson  <simon@josefsson.org>
53858
53859         * m4/inet_pton.m4: Set HAVE_DECL_INET_PTON to 0 when declarations
53860         are needed from arpa/inet.h.
53861         * m4/inet_ntop.m4: Likewise, for HAVE_DECL_INET_NTOP.
53862         Reported by Bruno Haible.
53863
53864 2008-05-02  Jim Meyering  <meyering@redhat.com>
53865
53866         avoid compilation error on FreeBSD 6
53867         * tests/test-getaddrinfo.c [!defined EAI_NODATA] (EAI_NODATA): Define.
53868
53869 2008-05-01  Jim Meyering  <meyering@redhat.com>
53870
53871         useless-if-before-free: correct --help's exit status description
53872         * build-aux/useless-if-before-free (usage): Like grep, exit 0
53873         for one or more matches, etc.  Reported by Bruno Haible.
53874
53875         vc-list-files: make the stand-alone gnulib test work
53876         * modules/vc-list-files-tests (configure.ac):
53877         Define and AC_SUBST abs_aux_dir.
53878         (Makefile.am) [TESTS_ENVIRONMENT]: Rather than passing
53879         $(abs_top_srcdir) to each script and having each of them
53880         duplicate the work of setting PATH, set PATH here, using
53881         the new variable, abs_aux_dir instead.
53882         * tests/test-vc-list-files-cvs.sh: Don't set PATH here.
53883         * tests/test-vc-list-files-git.sh: Likewise.
53884         Reported by Bruno Haible.
53885
53886 2008-05-01  Bruno Haible  <bruno@clisp.org>
53887
53888         * lib/getndelim2.c (getndelim2): Fix newsize computation during
53889         reallocation. Rename 'done' to 'found_delimiter'.
53890
53891 2008-05-01  Jim Meyering  <meyering@redhat.com>
53892
53893         vc-list-files: accommodate /bin/sh like the one from Solaris 10
53894         * build-aux/vc-list-files: Use `...`, not $(...).
53895
53896 2008-04-30  Jim Meyering  <meyering@redhat.com>
53897
53898         add tests for vc-list-files
53899         * modules/vc-list-files-tests: New module.
53900         * tests/test-vc-list-files-cvs.sh: New file.
53901         * tests/test-vc-list-files-git.sh: New file.
53902
53903         avoid a warning from gcc
53904         * lib/getndelim2.c (IF_LINT): Define.
53905         (getndelim2): Use it to avoid a "may be used uninitialized" warning.
53906
53907         vc-list-files: work properly with build-aux/cvsu, too
53908         * build-aux/vc-list-files: Hoist the "./"-removing code to apply
53909         to all cvs-based clauses.
53910
53911         vc-list-files: work properly in the CVS+awk case, too
53912         * build-aux/vc-list-files: In the CVS+awk case, remove "./" prefix.
53913
53914         vc-list-files: avoid use of ${*-*} that fails when /bin/sh is dash
53915         * build-aux/vc-list-files: Simplify ${*-*} to $dir, since we no longer
53916         take more than one file argument, so .  Add quotes, just in case $dir
53917         ever contains a shell meta-character.  Prompted by Soren Hansen in
53918         <http://thread.gmane.org/gmane.comp.emulators.libvirt/6221/focus=6240>.
53919
53920 2008-04-29  Eric Blake  <ebb9@byu.net>
53921
53922         Optimize getndelim2 to use block operations when possible.
53923         * modules/getndelim2 (Depends-on): Add stdbool, freadptr,
53924         freadseek, and memchr2.
53925         * lib/getndelim2.c (getndelim2): Use them for block reads.
53926
53927 2008-04-29  Bruno Haible  <bruno@clisp.org>
53928
53929         * m4/inet_ntop.m4 (gl_INET_NTOP): Require gl_USE_SYSTEM_EXTENSIONS.
53930         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
53931         * modules/inet_ntop (Depends-on): Add extensions.
53932         * modules/inet_pton (Depends-on): Likewise.
53933         Reported by Simon Josefsson.
53934
53935 2008-04-29  Jim Meyering  <meyering@redhat.com>
53936
53937         When the is more than one match in a block, match all of them.
53938         * build-aux/useless-if-before-free: Iterate through each block
53939         until there are no more matches.
53940
53941         Fix broken useless-if-before-free script.
53942         * build-aux/useless-if-before-free: Fix typo: missing "?" after
53943         the expression to match cast of argument to free-like function.
53944
53945 2008-04-29  Eric Blake  <ebb9@byu.net>
53946
53947         Use new header.
53948         * lib/getaddrinfo.c (includes): s/"inet_ntop.h"/<arpa/inet.h>/.
53949
53950 2008-04-29  Jim Meyering  <meyering@redhat.com>
53951
53952         Avoid test segfault on x86_64 due to lack of inet_ntop declaration.
53953         * tests/test-getaddrinfo.c: Include <arpa/inet.h>, now guaranteed
53954         by gnulib to exist and to declare e.g., inet_ntop.
53955         Don't include "inet_ntop.h", now removed.
53956
53957         * m4/arpa_inet_h.m4: Remove trailing blanks.
53958
53959 2008-04-29  Eric Blake  <ebb9@byu.net>
53960
53961         Silence valgrind on safe reads beyond potential array bounds.
53962         * lib/rawmemchr.valgrind: New file.
53963         * lib/strchrnul.valgrind: Likewise.
53964         * modules/rawmemchr (Files): Distribute new file.
53965         * modules/strchrnul (Files): Likewise.
53966         Suggested by Bruno Haible.
53967
53968 2008-04-29  Bruno Haible  <bruno@clisp.org>
53969
53970         * lib/arpa_inet.in.h: Include system's <arpa/inet.h> if it exists.
53971         (inet_ntop, inet_pton): Change portability warning's wording.
53972         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Set HAVE_ARPA_INET_H.
53973         Invoke gl_CHECK_NEXT_HEADERS.
53974         (gl_ARPA_INET_H_DEFAULTS): Initialize ARPA_INET_H.
53975         * m4/inet_ntop.m4 (gl_INET_NTOP): Require gl_ARPA_INET_H_DEFAULTS and
53976         set ARPA_INET_H.
53977         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
53978         * modules/arpa_inet (Description): No longer only for systems that
53979         lack it.
53980         (Depends-on): Add include_next.
53981         (Makeile.am): Substitute INCLUDE_NEXT, NEXT_ARPA_INET_H,
53982         HAVE_ARPA_INET_H.
53983
53984 2008-04-29  Jim Meyering  <meyering@redhat.com>
53985
53986         * modules/mkdir (License): Re-license as LGPLv2+.
53987
53988 2008-04-29  Bruno Haible  <bruno@clisp.org>
53989
53990         * modules/rawmemchr (Maintainer): Set to Eric.
53991         * modules/strchrnul (Maintainer): Likewise.
53992
53993 2008-04-29  Simon Josefsson  <simon@josefsson.org>
53994
53995         * m4/arpa_inet_h.m4 (gl_ARPA_INET_H_DEFAULTS): Set
53996         HAVE_DECL_INET_NTOP and HAVE_DECL_INET_PTON.
53997
53998         * modules/arpa_inet (arpa/inet.h): Use them.
53999
54000 2008-04-28  Eric Blake  <ebb9@byu.net>
54001
54002         Test getndelim2.
54003         * modules/getndelim2-tests: New file.
54004         * tests/test-getndelim2.c: Likewise.
54005         * lib/getndelim2.c (getndelim2): Never return 0.  Lock the
54006         stream.
54007         * m4/getndelim2.m4 (gl_GETNDELIM2): Check for lock functions.
54008
54009         * MODULES.html.sh: Document new module.
54010
54011 2008-04-20  Bruno Haible  <bruno@clisp.org>
54012
54013         * lib/c-stack.c (die): Use raise.
54014         * modules/c-stack (Depends-on): Add raise.
54015
54016 2008-04-28  Bruno Haible  <bruno@clisp.org>
54017
54018         Expect rpmatch to be declared.
54019         * lib/yesno.c (rpmatch): Remove declaration.
54020
54021         Declare rpmatch.
54022         * lib/stdlib.in.h (rpmatch): New declaration.
54023         * lib/rpmatch.c: Include <stdlib.h> first.
54024         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Require AC_USE_SYSTEM_EXTENSIONS and
54025         gl_STDLIB_H_DEFAULTS. Set HAVE_RPMATCH.
54026         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_RPMATCH,
54027         HAVE_RPMATCH.
54028         * modules/rpmatch (Depends-on): Add stdlib, extensions.
54029         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
54030         (Include): Set to <stdlib.h>.
54031         * modules/stdlib (Makefile.am): Substitute GNULIB_RPMATCH and
54032         HAVE_RPMATCH.
54033         * NEWS: Document the change.
54034
54035 2008-04-28  Bruno Haible  <bruno@clisp.org>
54036
54037         Change rpmatch to use nl_langinfo when appropriate.
54038         * lib/rpmatch.c: Include stdbool.h, string.h, langinfo.h.
54039         (N_): New macro.
54040         (localized_pattern): New function/macro.
54041         (try): Remove match, nomatch arguments. Copy the pattern into safe
54042         memory before caching it.
54043         (rpmatch): Use localized_pattern. Add translator comments.
54044         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Test for nl_langinfo and YESEXPR.
54045         Suggested by Eric Blake.
54046         * modules/rpmatch (Depends-on): Add stdbool.
54047
54048 2008-04-28  Eric Blake  <ebb9@byu.net>
54049
54050         Add rawmemchr module, matching glibc.
54051         * modules/string (Makefile.am): New indicator.
54052         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Set it.
54053         * lib/string.in.h (rawmemchr): Declare when appropriate.
54054         * modules/rawmemchr: New file.
54055         * m4/rawmemchr.m4: Likewise.
54056         * lib/rawmemchr.c: Likewise.
54057         * modules/rawmemchr-tests: Likewise.
54058         * tests/test-rawmemchr.c: Likewise.
54059         * doc/glibc-functions/rawmemchr.texi (rawmemchr): Document
54060         module.
54061         * modules/strchrnul (Depends-on): Add rawmemchr.
54062         * lib/strchrnul.c (strchrnul): Optimize a corner case.
54063
54064         Whitespace cleanup.
54065         * tests/test-strchrnul.c: Reindent.
54066         * lib/strchrnul.c: Likewise.
54067
54068         Optimize and test strchrnul.
54069         * lib/strchrnul.c (strchrnul): Rewrite to do parallel search.
54070         * modules/strchrnul-tests: New file.
54071         * tests/test-strchrnul.c: Likewise.
54072
54073         Remove intprops dependency.
54074         * modules/memchr (Depends-on): Remove intprops.
54075         * modules/memrchr (Depends-on): Likewise.
54076         * modules/memchr2 (Depends-on): Likewise.
54077         * lib/memchr.c (__memchr): Hand-inline the TYPE_MAXIMUM check.
54078         * lib/memrchr.c (__memrchr): Likewise.
54079         * lib/memrchr2.c (memchr2): Likewise.
54080         Reported by Simon Josefsson.
54081
54082 2008-04-28  Simon Josefsson  <simon@josefsson.org>
54083
54084         * m4/sys_socket_h.m4: Move AC_REQUIRE([AC_C_INLINE]) to top.
54085         Suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
54086
54087 2008-04-28  Simon Josefsson  <simon@josefsson.org>
54088
54089         * lib/inet_ntop.h, lib/inet_pton.h: Remove files.
54090
54091         * lib/inet_ntop.c: Include arpa/inet.h instead of inet_ntop.h.
54092
54093         * lib/inet_pton.c: Include arpa/inet.h instead of inet_pton.h.
54094
54095         * lib/arpa_inet.in.h [@GNULIB_INET_NTOP@]: Inline inet_ntop.h
54096         declarations.
54097         [@GNULIB_INET_PTON@]: Inline inet_pton.h declarations.
54098
54099         * m4/inet_pton.m4: Don't check for header files.
54100
54101         * m4/inet_ntop.m4: Don't check for header files.
54102
54103 2008-04-28  Simon Josefsson  <simon@josefsson.org>
54104
54105         * m4/sys_socket_h.m4: Require AC_C_INLINE when necessary.
54106         * lib/sys_socket.in.h (setsockopt): Use proper win32 tests (don't
54107         trigger for cygwin).
54108         Reported by Bruno Haible  <bruno@clisp.org>.
54109
54110 2008-04-28  Bruno Haible  <bruno@clisp.org>
54111
54112         * doc/posix-functions/strdup.texi: Mention mingw problem.
54113
54114 2008-04-27  Bruno Haible  <bruno@clisp.org>
54115
54116         * modules/stat-time-tests (Depends-on): Add sleep.
54117         * tests/test-stat-time.c (force_unlink): New function.
54118         (cleanup): Use it.
54119         (test_mtime): Remove the ctime related tests.
54120         (test_ctime): New function, containing the ctime related tests.
54121         (main): Call test_ctime, except on native Windows platforms.
54122
54123 2008-04-27  Bruno Haible  <bruno@clisp.org>
54124
54125         * lib/rpmatch.c (rpmatch): Add some comments.
54126         Reported by James Youngman <jay@gnu.org>.
54127
54128 2008-04-27  Bruno Haible  <bruno@clisp.org>
54129
54130         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Also test the behaviour on
54131         quiet NaNs.
54132
54133 2008-04-27  Bruno Haible  <bruno@clisp.org>
54134
54135         Make test-yesno.sh work on mingw.
54136         * tests/test-yesno.sh: Postprocess the output to convert CR/LF to LF.
54137         * tests/test-yesno.c: Include yesno.h first. Include binary-io.h.
54138         (main): Set stdin to binary mode.
54139         * modules/yesno-tests (Depends-on): Add binary-io.
54140
54141 2008-04-27  Bruno Haible  <bruno@clisp.org>
54142
54143         Fix 'isfinite' on x86, x86_64, ia64 platforms.
54144         * tests/test-isfinite.c (test_isfinitel): Also test the behavior on
54145         argument that lie outside the IEEE 854 domain.
54146         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): New macro.
54147         (gl_ISFINITE): Use it.
54148         * doc/posix-functions/isfinite.texi: Document the fixed bugs.
54149
54150 2008-04-27  Bruno Haible  <bruno@clisp.org>
54151
54152         Allow local renaming in config.h.
54153         * lib/memrchr.c (memrchr): Don't undefine outside libc.
54154
54155 2008-04-27  Bruno Haible  <bruno@clisp.org>
54156
54157         * lib/memchr.c (__memchr): Change type of 'i'.
54158         * lib/memchr2.c (memchr2): Likewise.
54159
54160 2008-04-26  Eric Blake  <ebb9@byu.net>
54161         and Bruno Haible  <bruno@clisp.org>
54162
54163         Optimize and test memrchr.
54164         * modules/memrchr (Depends-on): Add intprops.
54165         * lib/memrchr.c (__memrchr): Avoid false positives in loop.
54166         * modules/memrchr-tests: New file.
54167         * tests/test-memrchr.c: New file.
54168
54169 2008-04-26  Bruno Haible  <bruno@clisp.org>
54170
54171         Add tentative support for DragonFly BSD.
54172         * lib/stdio-impl.h: Add macros for DragonFly BSD.
54173         * lib/fbufmode.c (fbufmode): Update conditionals. Use fp_ instead of
54174         fp.
54175         * lib/fflush.c (clear_ungetc_buffer, disable_seek_optimization,
54176         restore_seek_optimization, update_fpos_cache, rpl_fflush: Likewise.
54177         * lib/fpurge.c (fpurge): Likewise.
54178         * lib/freadable.c (freaadable): Likewise.
54179         * lib/freadahead.c (freadahead): Likewise.
54180         * lib/freading.c (freading): Likewise.
54181         * lib/freadptr.c (freadptr): Likewise.
54182         * lib/freadseek.c (freadptrinc): Likewise.
54183         * lib/fseeko.c (fseeko): Likewise.
54184         * lib/fseterr.c (fseterr): Likewise.
54185         * lib/fwritable.c (fwritable): Likewise.
54186         * lib/fwriting.c (fwriting): Likewise.
54187
54188 2008-04-26  Bruno Haible  <bruno@clisp.org>
54189
54190         * lib/stdio-impl.h: New file.
54191         * lib/fbufmode.c: Include stdio-impl.h.
54192         (fbufmode): Use fp_, remove redundant #defines.
54193         * lib/fflush.c: Include stdio-impl.h.
54194         (clear_ungetc_buffer): Remove redundant #defines.
54195         * lib/fpurge.c: Include stdio-impl.h.
54196         (fpurge): Remove redundant #defines.
54197         * lib/freadable.c: Include stdio-impl.h.
54198         (freadable): Remove redundant #defines.
54199         * lib/freadahead.c: Include stdio-impl.h.
54200         (freadahead): Remove redundant #defines.
54201         * lib/freading.c: Include stdio-impl.h.
54202         (freading): Remove redundant #defines.
54203         * lib/freadptr.c: Include stdio-impl.h.
54204         (freadptr): Remove redundant #defines.
54205         * lib/freadseek.c: Include stdio-impl.h.
54206         (freadptrinc): Remove redundant #defines.
54207         * lib/fseeko.c: Include stdio-impl.h.
54208         (rpl_fseeko): Remove redundant #defines.
54209         * lib/fseterr.c: Include stdio-impl.h.
54210         (fseterr): Remove redundant #defines.
54211         * lib/fwritable.c: Include stdio-impl.h.
54212         (fwritable: Remove redundant #defines.
54213         * lib/fwriting.c: Include stdio-impl.h.
54214         (fwriting): Remove redundant #defines.
54215         * modules/fbufmode (Files): Add lib/stdio-impl.h.
54216         * modules/fflush (Files): Likewise.
54217         * modules/fpurge (Files): Likewise.
54218         * modules/freadable (Files): Likewise.
54219         * modules/freadahead (Files): Likewise.
54220         * modules/freading (Files): Likewise.
54221         * modules/freadptr (Files): Likewise.
54222         * modules/freadseek (Files): Likewise.
54223         * modules/fseeko (Files): Likewise.
54224         * modules/fseterr (Files): Likewise.
54225         * modules/fwritable (Files): Likewise.
54226         * modules/fwriting (Files): Likewise.
54227
54228 2008-04-26  Bruno Haible  <bruno@clisp.org>
54229
54230         * lib/fflush.c (clear_ungetc_buffer, disable_seek_optimization,
54231         restore_seek_optimization, update_fpos_cache): New functions, extracted
54232         from rpl_fflush.
54233         (rpl_fflush): Use them.
54234         * m4/fflush.m4 (gl_PREREQ_FFLUSH): New macro.
54235         (gl_REPLACE_FFLUSH): Use it.
54236
54237 2008-04-26  Bruno Haible  <bruno@clisp.org>
54238
54239         * tests/test-xstrtol.sh: Work around limitation of an old 'tr' program
54240         on Solaris.
54241         * tests/test-xstrtoimax.sh: Likewise.
54242         * tests/test-xstrtoumax.sh: Likewise.
54243         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
54244
54245 2008-04-26  Bruno Haible  <bruno@clisp.org>
54246
54247         * modules/memchr-tests: New file.
54248         * tests/test-memchr.c; New file, based on tests/test-memchr2.c.
54249
54250 2008-04-26  Eric Blake  <ebb9@byu.net>
54251             Bruno Haible  <bruno@clisp.org>
54252
54253         * lib/memchr.c: Include intprops.h.
54254         (__memchr): Optimize parallel detection of matching bytes. Rename local
54255         variables. Add explanatory comments.
54256
54257 2008-04-26  Bruno Haible  <bruno@clisp.org>
54258
54259         Fix module 'memchr', broken since 2000-10-28.
54260         * lib/memchr.c: Outside glibc, define memchr, not __memchr.
54261
54262 2008-04-26  Bruno Haible  <bruno@clisp.org>
54263
54264         * lib/memchr2.c (memchr2): Rename local variables. Add explanatory
54265         comments.
54266
54267 2008-04-25  Eric Blake  <ebb9@byu.net>
54268
54269         Use native fstatat on cygwin 1.7.0.
54270         * m4/openat.m4 (gl_FUNC_OPENAT): Make sure lstat check is made
54271         first.
54272
54273 2008-04-23  Eric Blake  <ebb9@byu.net>
54274
54275         Improve memchr2 performance.
54276         * lib/memchr2.c (memchr2): Further optimize parallel detection of
54277         NUL bytes.
54278         * modules/memchr2 (Depends-on): Use intprops.h.
54279
54280 2008-04-23  Simon Josefsson  <simon@josefsson.org>
54281
54282         * lib/sys_socket.in.h (setsockopt): Be more type safe by declaring
54283         an inline function instead of a CPP macro.  Patch by Ben Pfaff
54284         <blp@cs.stanford.edu>.
54285
54286 2008-04-23  Simon Josefsson  <simon@josefsson.org>
54287
54288         * lib/arpa_inet.in.h: New file.
54289
54290         * modules/arpa_inet (Files): Add lib/arpa_inet.in.h.
54291         (Makefile.am): Sed in substitute header file.
54292
54293         * m4/arpa_inet_h.m4: Add gl_ARPA_INET_H_DEFAULTS and
54294         gl_ARPA_INET_MODULE_INDICATOR.  Use them.
54295
54296         * modules/inet_ntop (configure.ac): Use
54297         gl_ARPA_INET_MODULE_INDICATOR.
54298
54299         * modules/inet_pton (configure.ac): Use
54300         gl_ARPA_INET_MODULE_INDICATOR.
54301
54302 2008-04-22  Jim Meyering  <meyering@redhat.com>
54303
54304         * modules/verify (License): Re-license as LGPLv2+.
54305
54306 2008-04-22  Simon Josefsson  <simon@josefsson.org>
54307
54308         * lib/sys_socket.in.h: Define setsockopt macro to cast fourth
54309         parameter to void* as per POSIX standard (MinGW uses char*).
54310
54311 2008-04-21  Bruno Haible  <bruno@clisp.org>
54312
54313         * lib/wctype.in.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
54314         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit):
54315         Define to replacements if REPLACE_ISWCNTRL is 1.
54316         * m4/wctype.m4 (gl_WCTYPE_H): Test whether the isw* functions work.
54317         If not, set WCTYPE_H to nonempty and REPLACE_ISWCNTRL to 1.
54318         * modules/wctype (Makefile.am): Substitute REPLACE_ISWCNTRL.
54319         * doc/posix-functions/iswalnum.texi: Mention the 'wctype' module and
54320         what it fixes.
54321         * doc/posix-functions/iswalpha.texi: Likewise.
54322         * doc/posix-functions/iswblank.texi: Likewise.
54323         * doc/posix-functions/iswcntrl.texi: Likewise.
54324         * doc/posix-functions/iswdigit.texi: Likewise.
54325         * doc/posix-functions/iswgraph.texi: Likewise.
54326         * doc/posix-functions/iswlower.texi: Likewise.
54327         * doc/posix-functions/iswprint.texi: Likewise.
54328         * doc/posix-functions/iswpunct.texi: Likewise.
54329         * doc/posix-functions/iswspace.texi: Likewise.
54330         * doc/posix-functions/iswupper.texi: Likewise.
54331         * doc/posix-functions/iswxdigit.texi: Likewise.
54332         Reported by Alain Guibert.
54333
54334 2008-04-21  Bruno Haible  <bruno@clisp.org>
54335
54336         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Fix typo in last commit.
54337         Patch by Alain Guibert.
54338
54339 2008-04-21  Bruno Haible  <bruno@clisp.org>
54340
54341         Fix test failures on mingw.
54342         * tests/test-xstrtol.c (print_no_progname): New function.
54343         (main): Install it in error_print_progname hook.
54344         * tests/test-xstrtol.sh: Convert CR/LF to NL in output.
54345         * tests/test-xstrtoimax.sh: Likewise.
54346         * tests/test-xstrtoumax.sh: Likewise.
54347
54348 2008-04-21  Bruno Haible  <bruno@clisp.org>
54349
54350         Fix test failure on mingw.
54351         * tests/test-argp-2.sh (func_compare): Remove CRs from sed's output.
54352
54353 2008-04-21  Bruno Haible  <bruno@clisp.org>
54354
54355         * lib/localename.c (SUBLANG_TIBETAN_PRC, SUBLANG_TIBETAN_BHUTAN):
54356         Actually assign a value.
54357
54358 2008-04-20  Bruno Haible  <bruno@clisp.org>
54359
54360         Fix conflict between modules 'canonicalize' and 'canonicalize-lgpl',
54361         take 2.
54362         * lib/canonicalize.c (canonicalize_file_name): Elide if the
54363         'canonicalize-lgpl' module is also used.
54364         * lib/canonicalize-lgpl.c: Undo last change.
54365         * modules/canonicalize-lgpl (configure.ac): Invoke gl_MODULE_INDICATOR.
54366
54367 2008-04-20  Bruno Haible  <bruno@clisp.org>
54368
54369         * lib/mkdir.c (mkdir): Undefine after the includes, not right after
54370         config.h. Provide _mkdir based fallback for mingw.
54371         * lib/sys_stat.in.h (mkdir): Define through an 'extern' declaration
54372         if REPLACE_MKDIR is 1. Otherwise, test for mingw directly.
54373         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Require
54374         gl_SYS_STAT_H_DEFAULTS. When doing the replacement, set REPLACE_MKDIR
54375         rather than defining mkdir in config.h.
54376         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): New macro.
54377         (gl_SYS_STAT_H_DEFAULTS): New macro.
54378         (gl_HEADER_SYS_STAT_H): Require it. Don't set HAVE_DECL_MKDIR and
54379         HAVE_IO_H any more.
54380         * modules/sys_stat (Makefile.am): Substitute REPLACE_MKDIR instead of
54381         HAVE_DECL_MKDIR and HAVE_IO_H.
54382
54383 2008-04-20  Bruno Haible  <bruno@clisp.org>
54384
54385         * lib/isapipe.c: Port to native Windows platforms.
54386
54387 2008-04-20  Bruno Haible  <bruno@clisp.org>
54388
54389         * lib/gc-gnulib.c: Include <windows.h> before <wincrypt.h>.
54390
54391 2008-04-21  Eric Blake  <ebb9@byu.net>
54392
54393         Work around preprocessors that don't handle UINTMAX_MAX.
54394         * lib/memchr2.c (memchr2): Avoid embedded #if.
54395         Reported by Alain Guibert, fix suggested by Bruno Haible.
54396
54397 2008-04-21  Simon Josefsson  <simon@josefsson.org>
54398
54399         * doc/posix-functions/strftime.texi (strftime): Explain better
54400         Windows incompatibility.  Suggested by Micah Cowan
54401         <micah@cowan.name>.
54402
54403 2008-04-20  Bruno Haible  <bruno@clisp.org>
54404
54405         * modules/uniconv/u32-conv-to-enc (Depends-on): Add unistr/u32-mblen,
54406         unistr/u8-mblen.
54407
54408 2008-04-20  Bruno Haible  <bruno@clisp.org>
54409
54410         Fix test failure on platforms with non-GNU iconv.
54411         * lib/uniconv/u16-conv-to-enc.c (u16_to_u8_lenient): New function.
54412         (U_TO_U8): Use it, rather than u16_to_u8.
54413         * lib/uniconv/u-conv-to-enc.h (FUNC): Allow an incomplete sequence of
54414         units at the end of the input string.
54415         * modules/uniconv/u16-conv-to-enc (Depends-on): Update.
54416
54417 2008-04-20  Bruno Haible  <bruno@clisp.org>
54418
54419         * tests/uniconv/test-u8-conv-to-enc.c (main): Accept result == NULL
54420         when the resulting length is 0.
54421         * tests/uniconv/test-u16-conv-to-enc.c (main): Likewise.
54422
54423 2008-04-20  Bruno Haible  <bruno@clisp.org>
54424
54425         * m4/roundf.m4 (gl_FUNC_ROUNDF): Add test whether roundf actually
54426         works.
54427         * doc/posix-functions/roundf.texi: Mention roundf bug on mingw.
54428
54429 2008-04-20  Bruno Haible  <bruno@clisp.org>
54430
54431         * tests/test-tsearch.c (main): Don't use initstate if it is missing.
54432         * modules/tsearch-tests (configure.ac): Test for initstate function.
54433
54434 2008-04-20  Bruno Haible  <bruno@clisp.org>
54435
54436         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Also provided a substitute
54437         for nlink_t if missing.
54438         * tests/test-sys_stat.c: Check the existence of the nlink_t type.
54439
54440 2008-04-19  Bruno Haible  <bruno@clisp.org>
54441
54442         Work around snprintf bug on Linux libc5.
54443         * m4/printf.m4 (gl_SNPRINTF_SIZE1): New macro.
54444         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
54445         gl_SNPRINTF_SIZE1.
54446         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
54447         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Likewise. Replace snprintf if
54448         that test failed.
54449         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Likewise.
54450         * lib/vasnprintf.c (USE_SNPRINTF): Set to 0 on Linux libc5 systems.
54451         * modules/snprintf (Files): Add m4/printf.m4.
54452         * modules/vsnprintf (Files): Likewise.
54453         * doc/posix-functions/snprintf.texi: Document Linux libc5 problem.
54454         * doc/posix-functions/vsnprintf.texi: Likewise.
54455
54456 2008-04-19  Bruno Haible  <bruno@clisp.org>
54457
54458         * lib/vasnprintf.c (floorlog10l, floorlog10): Reduce maximum error
54459         from 0.0058 to less than 10^-7.
54460
54461 2008-04-19  Bruno Haible  <bruno@clisp.org>
54462
54463         Fix rounding when a precision is given.
54464         * lib/vasnprintf.c (is_borderline): New function.
54465         (VASNPRINTF): For %e and %g, consider replacing the digits 10....0 with
54466         9...9x.
54467         * tests/test-vasnprintf-posix.c (test_function): Test rounding with %f,
54468         %e, %g.
54469         * tests/test-vasprintf-posix.c (test_function): Likewise.
54470         * tests/test-snprintf-posix.h (test_function): Likewise.
54471         * tests/test-sprintf-posix.h (test_function): Likewise.
54472         * tests/test-fprintf-posix.h (test_function): Test rounding with %f.
54473         * tests/test-printf-posix.h (test_function): Likewise.
54474         * tests/test-printf-posix.output: Update.
54475         Reported by John Darrington <john@darrington.wattle.id.au> via
54476         Ben Pfaff <blp@cs.stanford.edu>.
54477
54478 2008-04-18  Simon Josefsson  <simon@josefsson.org>
54479
54480         * doc/posix-functions/strftime.texi (strftime): Clarify platform.
54481         Suggested by Bruno Haible <bruno@clisp.org>.
54482
54483 2008-04-17  Bruno Haible  <bruno@clisp.org>
54484
54485         * lib/lock.h (gl_lock_destroy, gl_rwlock_destroy,
54486         gl_recursive_lock_destroy): Provide no-op definitions for the dummy
54487         implementation.
54488         Patch by Bruce Merry <bmerry@gmail.com>.
54489
54490 2008-04-17  Simon Josefsson  <simon@josefsson.org>
54491
54492         * doc/posix-functions/strftime.texi (strftime): Mention that %e
54493         doesn't work under Windows.
54494
54495 2008-04-16  Bruno Haible  <bruno@clisp.org>
54496
54497         * lib/localename.c (LANG_MAORI, LANG_QUECHUA, LANG_SOTHO, LANG_UIGHUR):
54498         New macros.
54499         (SUBLANG_BOSNIAN_BOSNIA_HERZEGOVINA_LATIN,
54500         SUBLANG_BOSNIAN_BOSNIA_HERZEGOVINA_CYRILLIC,
54501         SUBLANG_CROATIAN_CROATIA, SUBLANG_CROATIAN_BOSNIA_HERZEGOVINA_LATIN,
54502         SUBLANG_MONGOLIAN_CYRILLIC_MONGOLIA, SUBLANG_MONGOLIAN_PRC,
54503         SUBLANG_QUECHUA_BOLIVIA, SUBLANG_QUECHUA_ECUADOR, SUBLANG_QUECHUA_PERU,
54504         SUBLANG_RUSSIAN_RUSSIA, SUBLANG_RUSSIAN_MOLDAVIA, SUBLANG_SPANISH_US,
54505         SUBLANG_TIBETAN_PRC, SUBLANG_TIBETAN_BHUTAN, SUBLANG_UIGHUR_PRC): New
54506         macros.
54507         (gl_locale_name_from_win32_LANGID): Refine code for Croatian/Bosnian,
54508         Mongolian, Russian, Spanish, Tibetan. Add code for Maori, Quechua,
54509         Northern Sotho, Uighur.
54510
54511 2008-04-16  Bruno Haible  <bruno@clisp.org>
54512
54513         * lib/localename.c (SUBLANG_SINDHI_INDIA): New macro.
54514         (SUBLANG_SINDHI_PAKISTAN): Change value from 1 to 2.
54515         (gl_locale_name_from_win32_LANGID): Fix code for Sindhi.
54516         Reported by Daniel Bergström <daniel@octocode.com>.
54517
54518 2007-12-25  KJK::Hyperion  <hackbunny@reactos.com>
54519             Bruno Haible  <bruno@clisp.org>
54520
54521         * lib/localename.c (gl_locale_name_canonicalize) [WIN32_NATIVE]: New
54522         function.
54523         (gl_locale_name_from_win32_LANGID, gl_locale_name_from_win32_LCID):
54524         New functions, mostly extracted from gl_locale_name_default.
54525         (gl_locale_name_default): Use gl_locale_name_from_win32_LCID.
54526
54527 2008-04-16  Eric Blake  <ebb9@byu.net>
54528
54529         Adjust strtod detection to catch glibc 2.7 bug.
54530         * m4/strtod.m4 (gl_FUNC_STRTOD): Test "nan()" behavior.
54531         Reported by John Gatewood Ham.
54532
54533 2008-04-16  Bruno Haible  <bruno@clisp.org>
54534
54535         Add tentative support for Linux libc5.
54536         * lib/fbufmode.c (fbufmode) [__GNU_LIBRARY__==1]: Reuse glibc2 code.
54537         * lib/fpurge.c (fpurge): Likewise.
54538         * lib/freadable.c (freadable): Likewise.
54539         * lib/freadahead.c (freadahead): Likewise.
54540         * lib/freading.c (freading): Likewise.
54541         * lib/freadptr.c (freadptr): Likewise.
54542         * lib/freadseek.c (freadptrinc): Likewise.
54543         * lib/fseeko.c (rpl_fseeko): Likewise.
54544         * lib/fseterr.c (fseterr): Likewise.
54545         * lib/fwritable.c (fwritable): Likewise.
54546         * lib/fwriting.c (fwriting): Likewise.
54547         Reported by Alain Guibert <alguibert+bts@free.fr>.
54548
54549 2008-04-15  Bruno Haible  <bruno@clisp.org>
54550
54551         * modules/mathl (configure.ac): Define module indicator.
54552
54553 2008-04-15  Bruno Haible  <bruno@clisp.org>
54554
54555         * lib/logl.c (logl): Remove unused variables.
54556
54557 2008-04-15  Bruno Haible  <bruno@clisp.org>
54558
54559         * lib/uniconv/u-conv-to-enc.h (FUNC): Fix return value when U_TO_U8
54560         fails.
54561
54562 2008-04-15  Bruno Haible  <bruno@clisp.org>
54563
54564         * lib/trim.c (trim2): Fix argument of isspace() macro.
54565
54566 2008-04-15  Paolo Bonzini  <bonzini@gnu.org>
54567
54568         * lib/tanl.c (kernel_tanl): Rename flag to invert, initialize it
54569         to 0.
54570         * lib/trigl.c (ieee754_rem_pio2l): Fix range checks.
54571
54572 2008-04-14  Bruno Haible  <bruno@clisp.org>
54573
54574         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Fix underquoting of
54575         AC_LANG_PROGRAM argument.
54576         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Likewise.
54577         * m4/gethrxtime.m4 (gl_ARITHMETIC_HRTIME_T): Likewise.
54578         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
54579         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
54580         * m4/math_h.m4 (gl_MATH_H): Likewise.
54581         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Likewise.
54582         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
54583         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Likewise.
54584         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): Likewise.
54585         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
54586         * m4/regex.m4 (gl_REGEX): Likewise.
54587         * m4/stdint.m4 (gl_INTEGER_TYPE_SUFFIX): Likewise.
54588         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET): Likewise.
54589         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
54590         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Likewise.
54591         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
54592         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
54593         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
54594         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
54595
54596 2008-04-14  Jim Meyering  <meyering@redhat.com>
54597
54598         test-strtod: fix typos: s/abs/fabs/
54599         * tests/test-strtod.c (main): Use fabs, not narrowing-to-int "abs".
54600
54601 2008-04-13  Bruno Haible  <bruno@clisp.org>
54602
54603         Fix conflict between modules 'canonicalize' and 'canonicalize-lgpl'.
54604         * lib/canonicalize-lgpl.c: Elide the contents if the 'canonicalize'
54605         module is also used and while not building the reloc-wrapper.
54606
54607 2008-04-13  Bruno Haible  <bruno@clisp.org>
54608
54609         * tests/test-getaddrinfo.c (simple): Ignore EAI_NODATA error.
54610
54611 2008-04-13  Bruno Haible  <bruno@clisp.org>
54612
54613         Fix AIX compilation failure introduced on 2008-04-02.
54614         * tests/test-frexp.c (exp): Undefine before redefining.
54615         * tests/test-frexpl.c (exp): Likewise.
54616
54617 2008-04-13  Bruno Haible  <bruno@clisp.org>
54618
54619         Work around a HP-UX stdio bug.
54620         * tests/test-ftell.c (main): Disable the fseek/ftell test on HP-UX.
54621         * tests/test-ftello.c (main): Likewise.
54622         * doc/posix-functions/ftell.texi: Mention HP-UX bug.
54623         * doc/posix-functions/ftello.texi: Likewise.
54624
54625 2008-04-13  Bruno Haible  <bruno@clisp.org>
54626
54627         Make test-signbit pass on HP-UX/hppa.
54628         * tests/test-signbit.c (minus_zerol): New variable.
54629         (test_signbitl): Use it.
54630
54631 2008-04-13  Bruno Haible  <bruno@clisp.org>
54632
54633         Make truncl work on OSF/1 4.0.
54634         * m4/truncl.m4 (gl_FUNC_TRUNCL): Test whether truncl actually works.
54635         Set REPLACE_TRUNCL, not HAVE_DECL_TRUNCL.
54636         * lib/math.in.h (truncl): Test REPLACE_TRUNCL, not HAVE_DECL_TRUNCL.
54637         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNCL, not
54638         HAVE_DECL_TRUNCL.
54639         * modules/math (Makefile.am): Substitute REPLACE_TRUNCL, not
54640         HAVE_DECL_TRUNCL.
54641         * doc/posix-functions/truncl.texi: Document the OSF/1 4.0 problem.
54642
54643 2008-04-13  Bruno Haible  <bruno@clisp.org>
54644
54645         * lib/unictype.h: Remove trailing comma from enumeration definitions.
54646
54647 2008-04-13  Bruno Haible  <bruno@clisp.org>
54648
54649         * lib/count-one-bits.h (COUNT_ONE_BITS): Rewrite verification
54650         expression, so as to avoid HP-UX 11 cc compiler bug.
54651
54652 2008-04-13  Bruno Haible  <bruno@clisp.org>
54653
54654         * m4/regex.m4 (gl_PREREQ_REGEX): Also check for <libintl.h>.
54655
54656 2008-04-13  Bruno Haible  <bruno@clisp.org>
54657
54658         * lib/git-merge-changelog.c: Remove empty declaration outside of
54659         functions.
54660
54661 2008-04-13  Bruno Haible  <bruno@clisp.org>
54662
54663         * modules/quotearg-tests (Makefile.am): Define test_quotearg_LDADD.
54664
54665 2008-04-13  Bruno Haible  <bruno@clisp.org>
54666
54667         * doc/posix-headers/sys_socket.texi: Document the problem on EMX.
54668         * lib/sys_socket.in.h (SHUT_RD, SHUT_WR, SHUT_RDWR): Define if missing.
54669         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Replace <sys/socket.h>
54670         also if it exists but lacks definitions of the SHUT_* macros.
54671         * modules/sys_socket (Description): Update.
54672         Reported by Elbert Pol <e.pol@chello.nl>.
54673
54674 2008-04-13  Bruno Haible  <bruno@clisp.org>
54675
54676         * lib/localcharset.c (OS2): Don't redefine if already defined.
54677         Reported by Elbert Pol <e.pol@chello.nl>.
54678
54679 2008-04-13  Bruno Haible  <bruno@clisp.org>
54680
54681         * lib/binary-io.h [__EMX__]: Include <io.h>.
54682         Reported by Elbert Pol <e.pol@chello.nl>.
54683
54684 2008-04-12  Bruno Haible  <bruno@clisp.org>
54685
54686         * lib/fpucw.h: Enable the definitions also for x86_64.
54687         Needed for NetBSD/x86_64.
54688         Reported by Thomas Klausner <tk@giga.or.at>.
54689
54690 2008-04-12  Bruno Haible  <bruno@clisp.org>
54691
54692         * tests/test-strtod.c: Include isnand.h.
54693         (main): Use isnand instead of isnan.
54694         Reported by Jim Meyering.
54695
54696 2008-04-12  Bruno Haible  <bruno@clisp.org>
54697
54698         * m4/isnanf.m4 (gl_ISNANF_WORKS): Add a test for a special NaN.
54699         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
54700
54701 2008-04-12  Jim Meyering  <meyering@redhat.com>
54702
54703         * m4/math_h.m4 (gl_MATH_H): Fix typos.
54704
54705 2008-04-12  Bruno Haible  <bruno@clisp.org>
54706
54707         * lib/freadptr.c (freadptr) [__EMX__]: Fix wrong assertion.
54708         Reported by Elbert Pol <e.pol@chello.nl>.
54709
54710 2008-04-12  Eric Blake  <ebb9@byu.net>
54711
54712         Work around Solaris 10 math.h bug.
54713         * m4/math_h.m4 (gl_MATH_H): Check for bug.
54714         (gl_MATH_H_DEFAULTS): Set up default.
54715         * modules/math (Makefile.am): Replace new indicators.
54716         * lib/math.in.h (NAN, HUGE_VAL): Provide replacements.
54717         * tests/test-math.c (main): Test this.
54718         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't rely on HUGE_VAL.
54719         * doc/posix-headers/math.texi (math.h): Mention bug.
54720         Reported by Nelson H. F. Beebe and Jim Meyering.
54721
54722 2008-04-11  Bruno Haible  <bruno@clisp.org>
54723
54724         Adapt to future versions of Apple GCC.
54725         * lib/argp-fmtstream.h (ARGP_FS_EI): Don't test __GNUC_GNU_INLINE__.
54726         Reported by Peter O'Gorman <peter@pogma.com>.
54727
54728 2008-04-11  Bruno Haible  <bruno@clisp.org>
54729
54730         * tests/test-getaddrinfo.c (simple): Ignore EAI_NONAME error.
54731
54732 2008-04-11  Bruno Haible  <bruno@clisp.org>
54733
54734         * modules/strsignal-tests (Makefile.am): Define test_strsignal_LDADD.
54735
54736         * modules/getaddrinfo-tests (Makefile.am): Define
54737         test_getaddrinfo_LDADD.
54738
54739 2008-04-11  Bruno Haible  <bruno@clisp.org>
54740
54741         * lib/strsignal.c (_sys_siglist): Don't declare if already declared.
54742         (init): Fix syntax error.
54743         * m4/strsignal.m4 (gl_PREREQ_STRSIGNAL): Check whether _sys_siglist
54744         is declared.
54745
54746 2008-04-11  Bruno Haible  <bruno@clisp.org>
54747
54748         * lib/glob.c: Include <stdbool.h>. Needed at least with IRIX cc.
54749         * modules/glob (Depends-on): Add stdbool.
54750
54751 2008-04-11  Bruno Haible  <bruno@clisp.org>
54752
54753         * lib/trim.c: Include <string.h>.
54754
54755 2008-04-11  Eric Blake  <ebb9@byu.net>
54756
54757         Avoid compile failure on OS/2.
54758         * lib/regex_internal.h (internal_function): Disable optimization
54759         on OS/2 (__EMX__), where it caused compiler error.
54760         Reported by Elbert Pol.
54761
54762 2008-04-11  Bruno Haible  <bruno@clisp.org>
54763
54764         Flush the standard error stream before aborting. Needed on mingw.
54765         * tests/test-argmatch.c (ASSERT): Call fflush(stderr) before abort().
54766         * tests/test-array_list.c (ASSERT): Likewise.
54767         * tests/test-array_oset.c (ASSERT): Likewise.
54768         * tests/test-avltree_list.c (ASSERT): Likewise.
54769         * tests/test-avltree_oset.c (ASSERT): Likewise.
54770         * tests/test-avltreehash_list.c (ASSERT): Likewise.
54771         * tests/test-binary-io.c (ASSERT): Likewise.
54772         * tests/test-byteswap.c (ASSERT): Likewise.
54773         * tests/test-c-ctype.c (ASSERT): Likewise.
54774         * tests/test-c-strcasecmp.c (ASSERT): Likewise.
54775         * tests/test-c-strcasestr.c (ASSERT): Likewise.
54776         * tests/test-c-strncasecmp.c (ASSERT): Likewise.
54777         * tests/test-c-strstr.c (ASSERT): Likewise.
54778         * tests/test-canonicalize-lgpl.c (ASSERT): Likewise.
54779         * tests/test-canonicalize.c (ASSERT): Likewise.
54780         * tests/test-carray_list.c (ASSERT): Likewise.
54781         * tests/test-ceilf1.c (ASSERT): Likewise.
54782         * tests/test-ceilf2.c (ASSERT): Likewise.
54783         * tests/test-ceill.c (ASSERT): Likewise.
54784         * tests/test-count-one-bits.c (ASSERT): Likewise.
54785         * tests/test-fbufmode.c (ASSERT): Likewise.
54786         * tests/test-fflush2.c (ASSERT): Likewise.
54787         * tests/test-floorf1.c (ASSERT): Likewise.
54788         * tests/test-floorf2.c (ASSERT): Likewise.
54789         * tests/test-floorl.c (ASSERT): Likewise.
54790         * tests/test-fopen.c (ASSERT): Likewise.
54791         * tests/test-fpending.c (ASSERT): Likewise.
54792         * tests/test-fprintf-posix.c (ASSERT): Likewise.
54793         * tests/test-fpurge.c (ASSERT): Likewise.
54794         * tests/test-freadable.c (ASSERT): Likewise.
54795         * tests/test-freadahead.c (ASSERT): Likewise.
54796         * tests/test-freading.c (ASSERT): Likewise.
54797         * tests/test-freadptr.c (ASSERT): Likewise.
54798         * tests/test-freadptr2.c (ASSERT): Likewise.
54799         * tests/test-freadseek.c (ASSERT): Likewise.
54800         * tests/test-freopen.c (ASSERT): Likewise.
54801         * tests/test-frexp.c (ASSERT): Likewise.
54802         * tests/test-frexpl.c (ASSERT): Likewise.
54803         * tests/test-fseek.c (ASSERT): Likewise.
54804         * tests/test-fseeko.c (ASSERT): Likewise.
54805         * tests/test-fstrcmp.c (ASSERT): Likewise.
54806         * tests/test-ftell.c (ASSERT): Likewise.
54807         * tests/test-ftello.c (ASSERT): Likewise.
54808         * tests/test-func.c (ASSERT): Likewise.
54809         * tests/test-fwritable.c (ASSERT): Likewise.
54810         * tests/test-fwriting.c (ASSERT): Likewise.
54811         * tests/test-getdelim.c (ASSERT): Likewise.
54812         * tests/test-getline.c (ASSERT): Likewise.
54813         * tests/test-i-ring.c (ASSERT): Likewise.
54814         * tests/test-iconv-utf.c (ASSERT): Likewise.
54815         * tests/test-iconv.c (ASSERT): Likewise.
54816         * tests/test-isfinite.c (ASSERT): Likewise.
54817         * tests/test-isnand.c (ASSERT): Likewise.
54818         * tests/test-isnanf.c (ASSERT): Likewise.
54819         * tests/test-isnanl.h (ASSERT): Likewise.
54820         * tests/test-ldexpl.c (ASSERT): Likewise.
54821         * tests/test-linked_list.c (ASSERT): Likewise.
54822         * tests/test-linkedhash_list.c (ASSERT): Likewise.
54823         * tests/test-localename.c (ASSERT): Likewise.
54824         * tests/test-lseek.c (ASSERT): Likewise.
54825         * tests/test-mbscasecmp.c (ASSERT): Likewise.
54826         * tests/test-mbscasestr1.c (ASSERT): Likewise.
54827         * tests/test-mbscasestr2.c (ASSERT): Likewise.
54828         * tests/test-mbscasestr3.c (ASSERT): Likewise.
54829         * tests/test-mbscasestr4.c (ASSERT): Likewise.
54830         * tests/test-mbschr.c (ASSERT): Likewise.
54831         * tests/test-mbscspn.c (ASSERT): Likewise.
54832         * tests/test-mbsncasecmp.c (ASSERT): Likewise.
54833         * tests/test-mbspbrk.c (ASSERT): Likewise.
54834         * tests/test-mbspcasecmp.c (ASSERT): Likewise.
54835         * tests/test-mbsrchr.c (ASSERT): Likewise.
54836         * tests/test-mbsspn.c (ASSERT): Likewise.
54837         * tests/test-mbsstr1.c (ASSERT): Likewise.
54838         * tests/test-mbsstr2.c (ASSERT): Likewise.
54839         * tests/test-mbsstr3.c (ASSERT): Likewise.
54840         * tests/test-memchr2.c (ASSERT): Likewise.
54841         * tests/test-memmem.c (ASSERT): Likewise.
54842         * tests/test-open.c (ASSERT): Likewise.
54843         * tests/test-printf-frexp.c (ASSERT): Likewise.
54844         * tests/test-printf-frexpl.c (ASSERT): Likewise.
54845         * tests/test-printf-posix.c (ASSERT): Likewise.
54846         * tests/test-quotearg.c (ASSERT): Likewise.
54847         * tests/test-rbtree_list.c (ASSERT): Likewise.
54848         * tests/test-rbtree_oset.c (ASSERT): Likewise.
54849         * tests/test-rbtreehash_list.c (ASSERT): Likewise.
54850         * tests/test-round1.c (ASSERT): Likewise.
54851         * tests/test-roundf1.c (ASSERT): Likewise.
54852         * tests/test-roundl.c (ASSERT): Likewise.
54853         * tests/test-signbit.c (ASSERT): Likewise.
54854         * tests/test-sleep.c (ASSERT): Likewise.
54855         * tests/test-snprintf-posix.c (ASSERT): Likewise.
54856         * tests/test-snprintf.c (ASSERT): Likewise.
54857         * tests/test-sprintf-posix.c (ASSERT): Likewise.
54858         * tests/test-stat-time.c (ASSERT): Likewise.
54859         * tests/test-strcasestr.c (ASSERT): Likewise.
54860         * tests/test-strerror.c (ASSERT): Likewise.
54861         * tests/test-striconv.c (ASSERT): Likewise.
54862         * tests/test-striconveh.c (ASSERT): Likewise.
54863         * tests/test-striconveha.c (ASSERT): Likewise.
54864         * tests/test-strsignal.c (ASSERT): Likewise.
54865         * tests/test-strstr.c (ASSERT): Likewise.
54866         * tests/test-strtod.c (ASSERT): Likewise.
54867         * tests/test-trunc1.c (ASSERT): Likewise.
54868         * tests/test-trunc2.c (ASSERT): Likewise.
54869         * tests/test-truncf1.c (ASSERT): Likewise.
54870         * tests/test-truncf2.c (ASSERT): Likewise.
54871         * tests/test-truncl.c (ASSERT): Likewise.
54872         * tests/test-vasnprintf-posix.c (ASSERT): Likewise.
54873         * tests/test-vasnprintf-posix2.c (ASSERT): Likewise.
54874         * tests/test-vasnprintf.c (ASSERT): Likewise.
54875         * tests/test-vasprintf-posix.c (ASSERT): Likewise.
54876         * tests/test-vasprintf.c (ASSERT): Likewise.
54877         * tests/test-vfprintf-posix.c (ASSERT): Likewise.
54878         * tests/test-vprintf-posix.c (ASSERT): Likewise.
54879         * tests/test-vsnprintf-posix.c (ASSERT): Likewise.
54880         * tests/test-vsnprintf.c (ASSERT): Likewise.
54881         * tests/test-vsprintf-posix.c (ASSERT): Likewise.
54882         * tests/test-wcwidth.c (ASSERT): Likewise.
54883         * tests/test-xfprintf-posix.c (ASSERT): Likewise.
54884         * tests/test-xprintf-posix.c (ASSERT): Likewise.
54885         * tests/test-xvasprintf.c (ASSERT): Likewise.
54886         * tests/uniconv/test-u16-conv-from-enc.c (ASSERT): Likewise.
54887         * tests/uniconv/test-u16-conv-to-enc.c (ASSERT): Likewise.
54888         * tests/uniconv/test-u16-strconv-from-enc.c (ASSERT): Likewise.
54889         * tests/uniconv/test-u16-strconv-to-enc.c (ASSERT): Likewise.
54890         * tests/uniconv/test-u32-conv-from-enc.c (ASSERT): Likewise.
54891         * tests/uniconv/test-u32-conv-to-enc.c (ASSERT): Likewise.
54892         * tests/uniconv/test-u32-strconv-from-enc.c (ASSERT): Likewise.
54893         * tests/uniconv/test-u32-strconv-to-enc.c (ASSERT): Likewise.
54894         * tests/uniconv/test-u8-conv-from-enc.c (ASSERT): Likewise.
54895         * tests/uniconv/test-u8-conv-to-enc.c (ASSERT): Likewise.
54896         * tests/uniconv/test-u8-strconv-from-enc.c (ASSERT): Likewise.
54897         * tests/uniconv/test-u8-strconv-to-enc.c (ASSERT): Likewise.
54898         * tests/unictype/test-bidi_byname.c (ASSERT): Likewise.
54899         * tests/unictype/test-bidi_name.c (ASSERT): Likewise.
54900         * tests/unictype/test-bidi_of.c (ASSERT): Likewise.
54901         * tests/unictype/test-bidi_test.c (ASSERT): Likewise.
54902         * tests/unictype/test-block_list.c (ASSERT): Likewise.
54903         * tests/unictype/test-block_of.c (ASSERT): Likewise.
54904         * tests/unictype/test-block_test.c (ASSERT): Likewise.
54905         * tests/unictype/test-categ_and.c (ASSERT): Likewise.
54906         * tests/unictype/test-categ_and_not.c (ASSERT): Likewise.
54907         * tests/unictype/test-categ_byname.c (ASSERT): Likewise.
54908         * tests/unictype/test-categ_name.c (ASSERT): Likewise.
54909         * tests/unictype/test-categ_none.c (ASSERT): Likewise.
54910         * tests/unictype/test-categ_of.c (ASSERT): Likewise.
54911         * tests/unictype/test-categ_or.c (ASSERT): Likewise.
54912         * tests/unictype/test-categ_test_withtable.c (ASSERT): Likewise.
54913         * tests/unictype/test-combining.c (ASSERT): Likewise.
54914         * tests/unictype/test-decdigit.c (ASSERT): Likewise.
54915         * tests/unictype/test-digit.c (ASSERT): Likewise.
54916         * tests/unictype/test-mirror.c (ASSERT): Likewise.
54917         * tests/unictype/test-numeric.c (ASSERT): Likewise.
54918         * tests/unictype/test-pr_byname.c (ASSERT): Likewise.
54919         * tests/unictype/test-pr_test.c (ASSERT): Likewise.
54920         * tests/unictype/test-predicate-part1.h (ASSERT): Likewise.
54921         * tests/unictype/test-scripts.c (ASSERT): Likewise.
54922         * tests/unictype/test-sy_c_ident.c (ASSERT): Likewise.
54923         * tests/unictype/test-sy_java_ident.c (ASSERT): Likewise.
54924         * tests/unistdio/test-u16-asnprintf1.c (ASSERT): Likewise.
54925         * tests/unistdio/test-u16-vasnprintf1.c (ASSERT): Likewise.
54926         * tests/unistdio/test-u16-vasnprintf2.c (ASSERT): Likewise.
54927         * tests/unistdio/test-u16-vasnprintf3.c (ASSERT): Likewise.
54928         * tests/unistdio/test-u16-vasprintf1.c (ASSERT): Likewise.
54929         * tests/unistdio/test-u16-vsnprintf1.c (ASSERT): Likewise.
54930         * tests/unistdio/test-u16-vsprintf1.c (ASSERT): Likewise.
54931         * tests/unistdio/test-u32-asnprintf1.c (ASSERT): Likewise.
54932         * tests/unistdio/test-u32-vasnprintf1.c (ASSERT): Likewise.
54933         * tests/unistdio/test-u32-vasnprintf2.c (ASSERT): Likewise.
54934         * tests/unistdio/test-u32-vasnprintf3.c (ASSERT): Likewise.
54935         * tests/unistdio/test-u32-vasprintf1.c (ASSERT): Likewise.
54936         * tests/unistdio/test-u32-vsnprintf1.c (ASSERT): Likewise.
54937         * tests/unistdio/test-u32-vsprintf1.c (ASSERT): Likewise.
54938         * tests/unistdio/test-u8-asnprintf1.c (ASSERT): Likewise.
54939         * tests/unistdio/test-u8-vasnprintf1.c (ASSERT): Likewise.
54940         * tests/unistdio/test-u8-vasnprintf2.c (ASSERT): Likewise.
54941         * tests/unistdio/test-u8-vasnprintf3.c (ASSERT): Likewise.
54942         * tests/unistdio/test-u8-vasprintf1.c (ASSERT): Likewise.
54943         * tests/unistdio/test-u8-vsnprintf1.c (ASSERT): Likewise.
54944         * tests/unistdio/test-u8-vsprintf1.c (ASSERT): Likewise.
54945         * tests/unistdio/test-ulc-asnprintf1.c (ASSERT): Likewise.
54946         * tests/unistdio/test-ulc-vasnprintf1.c (ASSERT): Likewise.
54947         * tests/unistdio/test-ulc-vasnprintf2.c (ASSERT): Likewise.
54948         * tests/unistdio/test-ulc-vasnprintf3.c (ASSERT): Likewise.
54949         * tests/unistdio/test-ulc-vasprintf1.c (ASSERT): Likewise.
54950         * tests/unistdio/test-ulc-vsnprintf1.c (ASSERT): Likewise.
54951         * tests/unistdio/test-ulc-vsprintf1.c (ASSERT): Likewise.
54952         * tests/uniwidth/test-u16-strwidth.c (ASSERT): Likewise.
54953         * tests/uniwidth/test-u16-width.c (ASSERT): Likewise.
54954         * tests/uniwidth/test-u32-strwidth.c (ASSERT): Likewise.
54955         * tests/uniwidth/test-u32-width.c (ASSERT): Likewise.
54956         * tests/uniwidth/test-u8-strwidth.c (ASSERT): Likewise.
54957         * tests/uniwidth/test-u8-width.c (ASSERT): Likewise.
54958         * tests/uniwidth/test-uc_width.c (ASSERT): Likewise.
54959         Reported by Eric Blake.
54960
54961 2008-04-11  Bruno Haible  <bruno@clisp.org>
54962
54963         * lib/wchar.in.h: Tweak comment.
54964
54965 2008-04-11  Bruno Haible  <bruno@clisp.org>
54966
54967         Fix __GNUC_STDC_INLINE__ predefine with Apple GCC on MacOS X 10.5.
54968         * gnulib-tool (func_emit_initmacro_start): Emit an invocation of
54969         gl_COMMON.
54970         * m4/gnulib-common.m4 (gl_COMMON, gl_COMMON_BODY): New macros.
54971
54972 2008-04-11  Bruno Haible  <bruno@clisp.org>
54973
54974         * modules/git-merge-changelog (git_merge_changelog_LDADD): Add LIBINTL.
54975
54976 2008-04-11  Simon Josefsson  <simon@josefsson.org>
54977
54978         * lib/gc-gnulib.c: On Windows, use CryptGenRandom from CSP instead
54979         of attempting to use non-existing /dev/*random.  Based on patch
54980         from Adam Strzelecki <ono@java.pl> in
54981         <http://lists.gnu.org/archive/html/help-gsasl/2008-02/msg00000.html>.
54982
54983 2008-04-08  Bruno Haible  <bruno@clisp.org>
54984
54985         Add tentative support for emx+gcc.
54986         * lib/fbufmode.c (fbufmode) [__EMX__]: Add conditional code.
54987         * lib/fpurge.c (fpurge): Likewise.
54988         * lib/freadable.c (freadable): Likewise.
54989         * lib/freadahead.c (freadahead): Likewise.
54990         * lib/freading.c (freading): Likewise.
54991         * lib/freadptr.c (freadptr): Likewise.
54992         * lib/freadseek.c (freadptrinc): Likewise.
54993         * lib/fseeko.c (rpl_fseeko): Likewise.
54994         * lib/fseterr.c (fseterr): Likewise.
54995         * lib/fwritable.c (fwritable): Likewise.
54996         * lib/fwriting.c (fwriting): Likewise.
54997         * m4/fpending.m4 (gl_FUNC_FPENDING): Add a variant for emx+gcc.
54998
54999 2008-04-09  Eric Blake  <ebb9@byu.net>
55000
55001         Avoid some autoconf warnings.
55002         * m4/regex.m4 (gl_REGEX): s/AC_HELP_STRING/AS_HELP_STRING/.
55003         * m4/acl.m4 (gl_FUNC_ACL): Likewise.
55004         * m4/afs.m4 (gl_AFS): Likewise.
55005         * m4/gc-random.m4 (gl_GC_RANDOM): Likewise.
55006         * m4/include_next.m4 (gl_INCLUDE_NEXT): s/AC_FOREACH/m4_foreach_w/.
55007         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
55008         * m4/stdint.m4 (gl_STDINT_BITSIZEOF, gl_CHECK_TYPES_SIGNED)
55009         (gl_INTEGER_TYPE_SUFFIX): Likewise.
55010         * m4/onceonly_2_57.m4 (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE)
55011         (AC_CHECK_DECLS_ONCE): Likewise.
55012         Rename file...
55013         * m4/onceonly.m4: ...to this, and delete 2.54 variant, now that
55014         gnulib-tool requires autoconf 2.59 or better.
55015         * gnulib-tool (func_get_filelist): s/\(onceonly\)_2_57.m4/\1.m4/.
55016
55017 2008-04-08  Eric Blake  <ebb9@byu.net>
55018
55019         Use 'git describe --match' if present (added in git 1.5.5).
55020         * build-aux/git-version-gen: Limit result to tags that match 'v*'
55021         if possible.
55022
55023 2008-04-08  Bruno Haible  <bruno@clisp.org>
55024
55025         Add tentative support for OpenServer.
55026         * lib/fbufmode.c (fbufmode): Add conditional define for _flag, _base,
55027         _ptr, _cnt.
55028         * lib/fpurge.c (fpurge): Likewise.
55029         * lib/freadable.c (freadable): Likewise.
55030         * lib/freadahead.c (freadahead): Likewise.
55031         * lib/freading.c (freading): Likewise.
55032         * lib/freadptr.c (freadptr): Likewise.
55033         * lib/freadseek.c (freadptrinc): Likewise.
55034         * lib/fseeko.c (rpl_fseeko): Likewise.
55035         * lib/fseterr.c (fseterr): Likewise.
55036         * lib/fwritable.c (fwritable): Likewise.
55037         * lib/fwriting.c (fwriting): Likewise.
55038         Reported by Roger Cornelius <rac@tenzing.org> and
55039         Brian K. White <brian@aljex.com>.
55040
55041 2008-04-06  Jim Meyering  <meyering@redhat.com>
55042
55043         * gnulib-tool (func_add_or_update): s/backuped/backed up/ in diagnostic
55044
55045 2008-04-06  Bruno Haible  <bruno@clisp.org>
55046
55047         Avoid possible error with non-ASCII bytes in UTF-8 locales.
55048         * tests/test-fprintf-posix.sh: Use "LC_ALL=C tr" instead of "tr".
55049         * tests/test-printf-posix.sh: Likewise.
55050         * tests/test-vfprintf-posix.sh: Likewise.
55051         * tests/test-vprintf-posix.sh: Likewise.
55052         * tests/test-xprintf-posix.sh: Likewise.
55053
55054 2008-04-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
55055
55056         * m4/double-slash-root.m4 (gl_DOUBLE_SLASH_ROOT): Fix quoting,
55057         hide error from 'ls', needed on OS/2.
55058         Report by Elbert Pol <elbert.pol@gmail.com>.
55059
55060 2008-04-04  Eric Blake  <ebb9@byu.net>
55061
55062         Make test-fseeko.c failures meaningful.
55063         * tests/test-fseeko.c: Print line number on failure.
55064         * tests/test-fseek.c: Likewise.
55065         Reported by Nelson H. F. Beebe.
55066
55067         Improve strtod bug detection check.
55068         * m4/strtod.m4 (gl_FUNC_STRTOD): Also check for hex-float parsing,
55069         required for Solaris 10.
55070         Reported by Bob Friesenhahn and Nelson H. F. Beebe.
55071
55072 2008-04-04  Bruno Haible  <bruno@clisp.org>
55073
55074         * modules/relocatable-prog-wrapper (Files): Add m4/environ.m4. Needed
55075         by m4/setenv.m4.
55076
55077 2008-04-03  Eric Blake  <ebb9@byu.net>
55078
55079         Ensure sane .version contents.
55080         * top/GNUmakefile (_dummy): Also delete .version when rebuilding
55081         version string.
55082         * build-aux/git-version-gen: Improve documentation.
55083
55084         Make GNU make output nicer.
55085         * top/GNUmakefile [!_have-Makefile]: Add dependency on
55086         MAKECMDGOALS to enforce message for all command line targets.  Set
55087         srcdir for use in maint.mk.
55088
55089         Another maintainer tweak.
55090         * top/GNUmakefile (_is-dist-target): Allow maintainer-distcheck as
55091         a target that regenerates version.
55092
55093 2008-04-03  Jim Meyering  <meyering@redhat.com>
55094
55095         vc-list-files: don't cause coreutils "make po-check" failure
55096         * build-aux/vc-list-files: Skip postprocessing when $2 is '.'
55097
55098 2008-04-03  Eric Blake  <ebb9@byu.net>
55099
55100         Allow VPATH usage of vc-list-files.
55101         * build-aux/vc-list-files (scriptversion): Add timestamp.
55102         (options): Add --help, --version, -C.
55103         (CVS): Support installed cvsu.
55104
55105 2008-04-02  Bruno Haible  <bruno@clisp.org>
55106
55107         Avoid some "statement with no effect" warnings from gcc.
55108         * tests/test-wctype.c (main): Explicitly ignore unused values.
55109         Reported by Jim Meyering.
55110
55111 2008-04-02  Jim Meyering  <meyering@redhat.com>
55112
55113         Avoid some warnings from "gcc -Wshadow".
55114         * tests/test-frexp.c (exp): Define to a different identifier.
55115         * tests/test-frexpl.c (exp): Likewise.
55116
55117 2008-04-03  Jim Meyering  <meyering@redhat.com>
55118
55119         bootstrap: remove dangling *.[ch] symlinks from lib
55120         * build-aux/bootstrap [dangling symlink removal]: Move find's
55121         -depth option to precede all others, to avoid a warning.
55122         Remove *.[ch] files too, and from "$source_base" (usually lib/).
55123
55124 2008-04-02  Bruno Haible  <bruno@clisp.org>
55125
55126         Avoid some warnings from "gcc -Wshadow".
55127         * tests/tests-vfprintf-posix.c (my_fprintf): Move after test_function.
55128         * tests/tests-vprintf-posix.c (my_printf): Move after test_function.
55129         * tests/tests-vsnprintf-posix.c (my_snprintf): Move after test_function.
55130         * tests/tests-vsprintf-posix.c (my_sprintf): Move after test_function.
55131         Reported by Jim Meyering.
55132
55133 2008-04-01  Bruno Haible  <bruno@clisp.org>
55134
55135         Fix test to work on IRIX 6.5 with cc.
55136         * tests/test-math.c (numeric_equal): New function.
55137         (main): Use it.
55138
55139 2008-04-01  Bruno Haible  <bruno@clisp.org>
55140
55141         * doc/posix-headers/math.texi: Refine documentation of NAN problem.
55142
55143 2008-04-01  Bruno Haible  <bruno@clisp.org>
55144
55145         * tests/test-vasnprintf-posix.c: Include nan.h instead of <math.h>.
55146         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
55147         * modules/vasnprintf-posix-tests (Files): Add tests/nan.h.
55148         (Depends-on): Remove math.
55149
55150         * tests/test-vasprintf-posix.c: Include nan.h instead of <math.h>.
55151         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
55152         * modules/vasprintf-posix-tests (Files): Add tests/nan.h.
55153         (Depends-on): Remove math.
55154
55155         * tests/test-snprintf-posix.h: Include nan.h instead of <math.h>.
55156         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
55157         * modules/snprintf-posix-tests (Files): Add tests/nan.h.
55158         (Depends-on): Remove math.
55159         * modules/vsnprintf-posix-tests (Files): Add tests/nan.h.
55160         (Depends-on): Remove math.
55161
55162         * tests/test-sprintf-posix.h: Include nan.h instead of <math.h>.
55163         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
55164         * modules/sprintf-posix-tests (Files): Add tests/nan.h.
55165         (Depends-on): Remove math.
55166         * modules/vsprintf-posix-tests (Files): Add tests/nan.h.
55167         (Depends-on): Remove math.
55168
55169         * tests/test-round1.c: Include nan.h.
55170         (main): Use NaNd instead of NAN.
55171         * modules/round-tests (Files): Add tests/nan.h.
55172
55173         * tests/test-trunc1.c: Include nan.h.
55174         (main): Use NaNd instead of NAN.
55175         * modules/trunc-tests (Files): Add tests/nan.h.
55176
55177         * tests/test-roundf1.c: Include nan.h.
55178         (main): Use NaNf instead of NAN.
55179         * modules/roundf-tests (Files): Add tests/nan.h.
55180
55181         * tests/test-truncf1.c: Include nan.h.
55182         (main): Use NaNf instead of NAN.
55183         * modules/truncf-tests (Files): Add tests/nan.h.
55184
55185         * tests/test-ceilf1.c: Include nan.h.
55186         (main): Use NaNf instead of NAN.
55187         * modules/ceilf-tests (Files): Add tests/nan.h.
55188
55189         * tests/test-floorf1.c: Include nan.h.
55190         (main): Use NaNf instead of NAN.
55191         * modules/floorf-tests (Files): Add tests/nan.h.
55192
55193         * tests/test-isnanf.c: Include nan.h instead of <math.h>.
55194         (main): Use NaNf instead of NAN.
55195         * modules/isnanf-nolibm-tests (Files): Add tests/nan.h.
55196
55197         * tests/test-isnand.c: Include nan.h instead of <math.h>.
55198         (main): Use NaNd instead of NAN.
55199         * modules/isnand-nolibm-tests (Files): Add tests/nan.h.
55200
55201         * tests/test-frexp.c: Include nan.h.
55202         (main): Use NaNd instead of NAN.
55203         * modules/frexp-tests (Files): Add tests/nan.h.
55204
55205         * lib/isnan.c: Don't include <math.h>.
55206         (FUNC): Don't use NAN macro.
55207         * modules/isnand-nolibm (Depends-on): Remove math.
55208         * modules/isnanf-nolibm (Depends-on): Remove math.
55209         * modules/isnanl (Depends-on): Remove math.
55210         * modules/isnanl-nolibm (Depends-on): Remove math.
55211
55212         * tests/nan.h: New file.
55213
55214 2008-04-01  Eric Blake  <ebb9@byu.net>
55215
55216         Fix typos.
55217         * tests/test-strtod.c (main): s/FLT_/DBL_/ for minimum and epsilon
55218         values to be the right type.
55219
55220         For now, cater to gnulib strtod inaccuracies.
55221         * tests/test-strtod.c (main): Allow 1-ulp error on expected
55222         fractional results.  While not as nice from a QoI perspective, it
55223         is a quicker patch than correctly implementing decimal to binary
55224         rounding.
55225
55226 2008-03-31  Eric Blake  <ebb9@byu.net>
55227
55228         Guarantee a definition of NAN.
55229         * lib/math.in.h (NAN): Define if missing.
55230         * tests/test-math.c (main): Test it.
55231         * doc/posix-headers/math.texi (math.h): Document this.
55232         * lib/isnan.c (rpl_isnand): Use it.
55233         * tests/test-ceilf1.c (NaN): Delete, and use NAN instead.
55234         * tests/test-floorf1.c (NaN): Likewise.
55235         * tests/test-frexp.c (NaN): Likewise.
55236         * tests/test-isnand.c (NaN): Likewise.
55237         * tests/test-isnanf.c (NaN): Likewise.
55238         * tests/test-round1.c (NaN): Likewise.
55239         * tests/test-roundf1.c (NaN): Likewise.
55240         * tests/test-snprintf-posix.h (NaN): Likewise.
55241         * tests/test-sprintf-posix.h (NaN): Likewise.
55242         * tests/test-trunc1.c (NaN): Likewise.
55243         * tests/test-truncf1.c (NaN): Likewise.
55244         * tests/test-vasnprintf-posix.c (NaN): Likewise.
55245         * tests/test-vasprintf-posix.c (NaN): Likewise.
55246         * modules/isnand-nolibm (Depends-on): Add math.
55247         * modules/isnanf-nolibm (Depends-on): Likewise.
55248         * modules/isnanl (Depends-on): Likewise.
55249         * modules/isnanl-nolibm (Depends-on): Likewise.
55250         * modules/snprintf-posix-tests (Depends-on): Likewise.
55251         * modules/sprintf-posix-tests (Depends-on): Likewise.
55252         * modules/vsnprintf-posix-tests (Depends-on): Likewise.
55253         * modules/vsprintf-posix-tests (Depends-on): Likewise.
55254         * modules/vasnprintf-posix-tests (Depends-on): Likewise.
55255         * modules/vasprintf-posix-tests (Depends-on): Likewise.
55256
55257 2008-03-31  Bruno Haible  <bruno@clisp.org>
55258
55259         * tests/test-strtod.c (main): Update results for OSF/1 platforms.
55260         * doc/posix-functions/strtod.texi: Likewise.
55261
55262 2008-03-31  Bruno Haible  <bruno@clisp.org>
55263
55264         * tests/test-strtod.c (main): Don't use C99 syntax.
55265
55266 2008-03-31  Bruno Haible  <bruno@clisp.org>
55267
55268         * tests/test-strtod.c (main): Don't test NAN macro. Needed for Solaris.
55269         Reported by Eric Blake.
55270
55271 2008-03-31  Jim Meyering  <meyering@redhat.com>
55272
55273         Don't compare actual signbit return values.
55274         * tests/test-strtod.c (main): Rather, compare only their
55275         zero/non-zero nature.
55276
55277 2008-03-31  Eric Blake  <ebb9@byu.net>
55278
55279         More strtod documentation.
55280         * doc/posix-functions/strtod.texi (strtod): Interpret more test
55281         failures as distinct bugs.
55282
55283 2008-03-30  Paul Eggert  <eggert@cs.ucla.edu>
55284
55285         * lib/wchar.in.h [defined __need_mbstate_t]: Just include <wchar.h>.
55286         Problem reported by Erik Benada in
55287         <http://lists.gnu.org/archive/html/bug-gnulib/2008-03/msg00249.html>.
55288
55289 2008-03-30  Bruno Haible  <bruno@clisp.org>
55290
55291         * tests/test-strtod.c: Add comments about which assertion fails on which
55292         platform.
55293         * doc/posix-functions/strtod.texi: Add info about many more platforms.
55294
55295 2008-03-30  Eric Blake  <ebb9@byu.net>
55296
55297         Test signbit behavior on zeros.
55298         * tests/test-signbit.c (test_signbitf): Add tests for zero.
55299         (test_signbitd, test_signbitl): Likewise.
55300
55301         More strtod touchups.
55302         * tests/test-strtod.c (main): Ignore tests for signbit on NaN, and
55303         sign of negative underflow, for now.  Use .5, not .1.
55304         * doc/posix-functions/strtod.texi (strtod): Mention these
55305         limitations.
55306         Reported by Jim Meyering.
55307
55308 2008-03-30  Bruno Haible  <bruno@clisp.org>
55309
55310         * lib/striconveh.h (mem_iconveh, str_iconveh): Optimize the conversion
55311         from UTF-8 to UTF-8//TRANSLIT in the same way as from UTF-8 to UTF-8.
55312
55313 2008-03-30  Bruno Haible  <bruno@clisp.org>
55314
55315         Avoid failure when attempting to return empty iconv results on some
55316         platforms.
55317         * lib/striconveh.c (mem_cd_iconveh_internal): In the final memory
55318         allocation, don't report ENOMEM when the resulting string is empty.
55319
55320 2008-03-30  Bruno Haible  <bruno@clisp.org>
55321
55322         Fix buffer overrun.
55323         * lib/vasnprintf.c (VASNPRINTF): If !USE_SNPRINTF && pad_ourselves:
55324         Don't consider the width for tmp_length. Check count against tmp_length
55325         before doing the padding. Ensure enough allocation during padding.
55326
55327 2008-03-30  Eric Blake  <ebb9@byu.net>
55328
55329         strtod touchups.
55330         * lib/strtod.c (strtod): Avoid compiler warnings.
55331         Reported by Jim Meyering.
55332
55333 2008-03-30  Bruno Haible  <bruno@clisp.org>
55334
55335         * lib/unistdio/u-vsprintf.h (EOVERFLOW): Remove fallback.
55336         * modules/unistdio/ulc-vsprintf (Depends-on): Add EOVERFLOW.
55337         * modules/unistdio/u8-vsprintf (Depends-on): Add EOVERFLOW.
55338         * modules/unistdio/u8-u8-vsprintf (Depends-on): Add EOVERFLOW.
55339         * modules/unistdio/u16-vsprintf (Depends-on): Add EOVERFLOW.
55340         * modules/unistdio/u16-u16-vsprintf (Depends-on): Add EOVERFLOW.
55341         * modules/unistdio/u32-vsprintf (Depends-on): Add EOVERFLOW.
55342         * modules/unistdio/u32-u32-vsprintf (Depends-on): Add EOVERFLOW.
55343
55344         * lib/unistdio/u-vsnprintf.h (EOVERFLOW): Remove fallback.
55345         * modules/unistdio/ulc-vsnprintf (Depends-on): Add EOVERFLOW.
55346         * modules/unistdio/u8-vsnprintf (Depends-on): Add EOVERFLOW.
55347         * modules/unistdio/u8-u8-vsnprintf (Depends-on): Add EOVERFLOW.
55348         * modules/unistdio/u16-vsnprintf (Depends-on): Add EOVERFLOW.
55349         * modules/unistdio/u16-u16-vsnprintf (Depends-on): Add EOVERFLOW.
55350         * modules/unistdio/u32-vsnprintf (Depends-on): Add EOVERFLOW.
55351         * modules/unistdio/u32-u32-vsnprintf (Depends-on): Add EOVERFLOW.
55352
55353         * lib/unistdio/u-vasprintf.h (EOVERFLOW): Remove fallback.
55354         * modules/unistdio/ulc-vasprintf (Depends-on): Add EOVERFLOW.
55355         * modules/unistdio/u8-vasprintf (Depends-on): Add EOVERFLOW.
55356         * modules/unistdio/u8-u8-vasprintf (Depends-on): Add EOVERFLOW.
55357         * modules/unistdio/u16-vasprintf (Depends-on): Add EOVERFLOW.
55358         * modules/unistdio/u16-u16-vasprintf (Depends-on): Add EOVERFLOW.
55359         * modules/unistdio/u32-vasprintf (Depends-on): Add EOVERFLOW.
55360         * modules/unistdio/u32-u32-vasprintf (Depends-on): Add EOVERFLOW.
55361
55362         * lib/unistdio/ulc-vfprintf.c (EOVERFLOW): Remove fallback.
55363         * modules/unistdio/ulc-vfprintf (Depends-on): Add EOVERFLOW.
55364
55365         * lib/unistdio/ulc-fprintf.c (EOVERFLOW): Remove fallback.
55366         * modules/unistdio/ulc-fprintf (Depends-on): Add EOVERFLOW.
55367
55368         * lib/xvasprintf.c (EOVERFLOW): Remove fallback.
55369         * modules/xvasprintf (Depends-on): Add EOVERFLOW.
55370
55371         * lib/vsprintf.c (EOVERFLOW): Remove fallback.
55372         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Drop gl_EOVERFLOW.
55373         * modules/vsprintf-posix (Depends-on): Add EOVERFLOW.
55374
55375         * lib/vsnprintf.c (EOVERFLOW): Remove fallback.
55376         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Drop gl_EOVERFLOW.
55377         * modules/vsnprintf (Depends-on): Add EOVERFLOW.
55378
55379         * lib/vfprintf.c (EOVERFLOW): Remove fallback.
55380         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Drop gl_EOVERFLOW.
55381         * modules/vfprintf-posix (Depends-on): Add EOVERFLOW.
55382
55383         * lib/vasprintf.c (EOVERFLOW): Remove fallback.
55384         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Drop gl_EOVERFLOW.
55385         * modules/vasprintf (Depends-on): Add EOVERFLOW.
55386
55387         * lib/vasnprintf.c (EOVERFLOW): Remove fallback.
55388         * m4/vasnprintf.m4 (gl_FUNC_VASNPRINTF): Drop gl_EOVERFLOW.
55389         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Drop gl_EOVERFLOW.
55390         * modules/vasnprintf (Files): Remove m4/eoverflow.m4.
55391         (Depends-on): Add EOVERFLOW.
55392         * modules/unistdio/ulc-vasnprintf (Files): Remove m4/eoverflow.m4.
55393         (Depends-on): Add EOVERFLOW.
55394         * modules/unistdio/u8-vasnprintf (Files): Remove m4/eoverflow.m4.
55395         (Depends-on): Add EOVERFLOW.
55396         * modules/unistdio/u8-u8-vasnprintf (Files): Remove m4/eoverflow.m4.
55397         (Depends-on): Add EOVERFLOW.
55398         * modules/unistdio/u16-vasnprintf (Files): Remove m4/eoverflow.m4.
55399         (Depends-on): Add EOVERFLOW.
55400         * modules/unistdio/u16-u16-vasnprintf (Files): Remove m4/eoverflow.m4.
55401         (Depends-on): Add EOVERFLOW.
55402         * modules/unistdio/u32-vasnprintf (Files): Remove m4/eoverflow.m4.
55403         (Depends-on): Add EOVERFLOW.
55404         * modules/unistdio/u32-u32-vasnprintf (Files): Remove m4/eoverflow.m4.
55405         (Depends-on): Add EOVERFLOW.
55406
55407         * lib/sprintf.c (EOVERFLOW): Remove fallback.
55408         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Drop gl_EOVERFLOW.
55409         * modules/sprintf-posix (Depends-on): Add EOVERFLOW.
55410
55411         * lib/snprintf.c (EOVERFLOW): Remove fallback.
55412         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Drop gl_EOVERFLOW.
55413         * modules/snprintf (Depends-on): Add EOVERFLOW.
55414
55415         * lib/poll.c (EOVERFLOW): Remove fallback.
55416         * modules/poll (Depends-on): Add EOVERFLOW.
55417
55418         * lib/getugroups.c (EOVERFLOW): Remove fallback.
55419         * modules/getugroups (Depends-on): Add EOVERFLOW.
55420
55421         * lib/getdelim.c (EOVERFLOW): Remove fallback.
55422         * modules/getdelim (Depends-on): Add EOVERFLOW.
55423
55424         * lib/ftell.c (EOVERFLOW): Remove fallback.
55425         * modules/ftell (Depends-on): Add EOVERFLOW.
55426
55427         * lib/fprintf.c (EOVERFLOW): Remove fallback.
55428         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Drop gl_EOVERFLOW.
55429         * modules/fprintf-posix (Depends-on): Add EOVERFLOW.
55430
55431         * lib/c-stack.c (EOVERFLOW): Remove unused fallback.
55432
55433         * modules/EOVERFLOW-tests: New file.
55434         * tests/test-EOVERFLOW.c: New file.
55435
55436         * modules/EOVERFLOW: New file.
55437         * doc/posix-headers/errno.texi: Mention EOVERFLOW portability problem.
55438
55439 2008-03-30  Bruno Haible  <bruno@clisp.org>
55440
55441         Fix bug introduced on 2007-06-10.
55442         * lib/vasnprintf.c (VASNPRINTF): When performing zero-padding, use
55443         spaces instead of 0 digits for 's' also when ENABLE_UNISTDIO.
55444
55445 2008-03-30  Bruno Haible  <bruno@clisp.org>
55446
55447         Improve freadseek's efficiency after ungetc.
55448         * lib/freadseek.c: Include freadahead.h.
55449         (freadptrinc): New function, extracted from freadseek.
55450         (freadseek): Use it in a loop. Use freadahead to determine the number
55451         of loop iterations.
55452         * modules/freadseek (Depends-on): Add freadahead.
55453         (configure.ac): Require AC_C_INLINE.
55454
55455 2008-03-30  Bruno Haible  <bruno@clisp.org>
55456
55457         * lib/freadseek.c (freadseek): Don't ignore the return value of
55458         freadptr.
55459
55460 2008-03-29  Eric Blake  <ebb9@byu.net>
55461
55462         Add hex float support.
55463         * modules/strtod (Depends-on): Add c-ctype.
55464         (Link): Mention POW_LIB.
55465         * lib/strtod.c (strtod): Recognize hex floats.  Don't allow
55466         whitespace between 'e' and exponent.
55467         * tests/test-strtod.c (main): Enable hex float tests.
55468         * doc/posix-functions/strtod.texi (strtod): Document what gnulib
55469         now provides.
55470
55471         Document various strtod bugs, with some fixes.
55472         * doc/posix-functions/strtod.texi (strtod): Document bugs with
55473         "-0x", "inf", "nan", and hex constants.
55474         * doc/posix-functions/atof.texi (atof): Likewise.
55475         * modules/stdlib (Makefile.am): Support strtod.
55476         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Likewise.
55477         * m4/strtod.m4 (gl_FUNC_STRTOD): Fit in stdlib framework, and
55478         detect additional strtod bugs.
55479         * lib/stdlib.in.h (rpl_strtod): Add declarations.
55480         * lib/strtod.c (strtod): Return -0.0 on negative underflow.  Use
55481         bool where appropriate.  Parse 'inf' and 'nan'.
55482         * tests/test-strtod.c: New file.
55483         * modules/strtod (Depends-on): Add stdbool, stdlib.
55484         (configure.ac): Turn on module indicator.
55485         * modules/strtod-tests: New module.
55486
55487 2008-03-29  Eric Blake  <ebb9@byu.net>
55488
55489         Fix ftell on mingw.
55490         * lib/ftell.c (EOVERFLOW): Define if the system lacks it.
55491         * modules/ftell-tests (Depends-on): Add binary-io.
55492         * modules/ftello-tests (Depends-on): Likewise.
55493         * tests/test-ftell.c (main): Enhance test to cover behavior after
55494         ungetc.  Enforce binary mode.
55495         * tests/test-ftello.c (main): Likewise.
55496
55497         Pass test-freadseek on cygwin.
55498         * modules/freadseek (Depends-on): Use freadptr, not freadahead.
55499         * lib/freadseek.c (freadseek): Don't increment beyond bounds of
55500         ungetc buffer.
55501
55502         * tests/test-fflush2.c (main): Fix typo.
55503
55504 2008-03-29  Bruno Haible  <bruno@clisp.org>
55505
55506         * tests/test-fflush2.c (main): Temporarily disable the contents of
55507         this test.
55508         * m4/fflush.m4 (gl_FUNC_FFLUSH): Add a TODO.
55509         Reported by Eric Blake.
55510
55511 2008-03-28  Simon Josefsson  <simon@josefsson.org>
55512
55513         * lib/gc.h (enum Gc_hash): Add GC_SHA224.
55514         (GC_SHA224_DIGEST_SIZE): Add.
55515
55516         * lib/gc-libgcrypt.c (gc_hash_open): Handle SHA-224.
55517         (gc_hash_digest_length): Likewise.
55518         (gc_hash_buffer): Likewise.
55519
55520 2008-03-25  Bruno Haible  <bruno@clisp.org>
55521
55522         * doc/gnulib-tool.texi (gettextize and autopoint): Explain in more
55523         detail which gettext release to use.
55524         Reported by Simon Josefsson.
55525
55526 2008-03-26  Jim Meyering  <meyering@redhat.com>
55527
55528         gnumakefile: remove file from $(top_builddir), not from $(top_srcdir)
55529         * modules/gnumakefile (clean-GNUmakefile): Also, use
55530         test ... && ... || : syntax rather than if-then ... fi.
55531
55532         gnumakefile: Don't double-quote-expand $(VPATH) value.
55533         * modules/gnumakefile (clean-GNUmakefile): Use single quotes.
55534
55535 2008-03-24  Eric Blake  <ebb9@byu.net>
55536
55537         Alter GNUmakefile to install into top directory.
55538         * modules/maintainer-makefile: Split, and add dependency...
55539         * modules/gnumakefile: to this new module.
55540         * build-aux/GNUmakefile: Move...
55541         * top/GNUmakefile: ...here.
55542         * build-aux/maint.mk: Move...
55543         * top/maint.mk: ...here.
55544         * MODULES.html.sh (Support for maintaining...): Document new
55545         module.
55546
55547 2008-03-23  Bruno Haible  <bruno@clisp.org>
55548
55549         * gnulib-tool: New options --vc-files, --no-vc-files.
55550         (func_usage): Document them.
55551         (vc_files): New variable.
55552         (func_import): Consider vc_files.
55553         (func_create_testdir): Set vc_files to empty.
55554         Suggested by Jim Meyering and Karl Berry.
55555
55556 2008-03-23  Bruno Haible  <bruno@clisp.org>
55557
55558         Fix regex compilation error on HP-UX 11.
55559         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_TYPE_MBSTATE_T.
55560         * modules/regex (Files): Add m4/mbstate_t.m4.
55561         Reported by Ton Voon <ton.voon@altinity.com>.
55562
55563 2008-03-23  Bruno Haible  <bruno@clisp.org>
55564
55565         * doc/gnulib-tool.texi (gettextize and autopoint): New section.
55566
55567 2008-03-23  Eric Blake  <ebb9@byu.net>
55568             Bruno Haible  <bruno@clisp.org>
55569
55570         Install files from top/ in the destination directory.
55571         * gnulib-tool (func_get_automake_snippet): Synthesize an EXTRA_DIST
55572         augmentation also for the files from top/.
55573         (func_import, func_create_testdir): Rewrite file names:
55574         top/filename -> filename.
55575
55576 2008-03-23  Bruno Haible  <bruno@clisp.org>
55577
55578         Tweak "gnulib --version" output.
55579         * gnulib-tool (func_version): Replace "-dirty" suffix with "-modified".
55580
55581 2008-03-23  Bruno Haible  <bruno@clisp.org>
55582
55583         Tweak "gnulib --version" output.
55584         * gnulib-tool (func_version): Use date of last commit to ChangeLog,
55585         rather than contents of ChangeLog, when possible.
55586
55587 2008-03-21  Eric Blake  <ebb9@byu.net>
55588
55589         More --version tweaks.
55590         * gnulib-tool (func_version): Obey GNU Coding Standards.  Output
55591         date of last ChangeLog entry.
55592
55593 2008-03-21  Jim Meyering  <meyering@redhat.com>
55594
55595         * build-aux/GNUmakefile (_have-git-version-gen): Split long line.
55596
55597 2008-03-20  Eric Blake  <ebb9@byu.net>
55598
55599         VPATH fix.
55600         * build-aux/GNUmakefile (_have_git-version-gen): Look in correct dir.
55601
55602 2008-03-20  Simon Josefsson  <simon@josefsson.org>
55603
55604         * build-aux/GNUmakefile: Make git-version-gen optional.  Add
55605         _build-aux variable.  Suggested by Eric Blake <ebb9@byu.net>.
55606
55607 2008-03-20  Eric Blake  <ebb9@byu.net>
55608
55609         Sync GNUmakefile with coreutils.
55610         * build-aux/GNUmakefile (have-Makefile): Rename...
55611         (_have-Makefile): ...to this, for namespace consideration.
55612         (GNUmakefile.cfg): Include, if present.
55613         (_autoreconf): Define a default.
55614         (_is-dist-target): New rule for rebuilds to pick up intra-release
55615         version.
55616         (maint-cfg.mk): Rename...
55617         (cfg.mk): ...to this.
55618
55619 2008-03-18  Jim Meyering  <meyering@redhat.com>
55620
55621         New script and module: mktempd
55622         * MODULES.html.sh (maint+release support): Add mktempd.
55623         * build-aux/mktempd: New file.
55624         * modules/mktempd: New file.
55625
55626 2008-03-15  Jim Meyering  <meyering@redhat.com>
55627
55628         Undo last change.
55629         * lib/sha1.c, lib/md5.c: 63 != ~63.
55630         Reported by Andreas Schwab.
55631
55632         sha1.c, md5.c: Hoist a redundant expression.
55633         * lib/sha1.c (sha1_process_bytes): AND-off the low bits in
55634         "ctx->buflen" only once, before calling *_process_block.
55635         * lib/md5.c (md5_process_bytes): Likewise.
55636
55637 2008-03-14  Eric Blake  <ebb9@byu.net>
55638
55639         Bump copyright year in files generated by gnulib-tool.
55640         * gnulib-tool (func_emit_copyright_notice): Extract copyright from
55641         gnulib-tool, rather than hard-coding it.
55642
55643         Fix 'gnulib-tool --version' output to work with git.
55644         * gnulib-tool (func_gnulib_dir): New function, extracted from...
55645         (startup): ...here.
55646         (func_version): Use it to invoke git-version-gen, rather than
55647         relying on CVS keyword expansion.  Modernize wording.
55648         (cvsdatestamp, last_checkin_date, version): Kill unused
55649         variables.
55650
55651 2008-03-12  Jim Meyering  <meyering@redhat.com>
55652
55653         Recognize optional cast of the argument to free.
55654         * build-aux/useless-if-before-free: Update regexps.
55655
55656         * build-aux/bootstrap (gnulib_tool): Remove trailing blanks.
55657
55658 2008-03-11  Bruno Haible  <bruno@clisp.org>
55659
55660         Extend AC_LIB_LINKFLAGS to the situation of several libraries provided
55661         by a single package.
55662         * m4/lib-link.m4 (AC_LIB_FROMPACKAGE): New macro.
55663         (AC_LIB_LINKFLAGS_BODY): Use the information stored by
55664         AC_LIB_FROMPACKAGE. Use AC_ARG_WITH instead of AC_LIB_ARG_WITH.
55665         Reported by Sam Steingold <sds@gnu.org>.
55666
55667 2008-03-12  Sergey Poznyakoff  <gray@gnu.org.ua>
55668
55669         * build-aux/bootstrap (version_controlled_file): Adapt for SVN
55670         repositories.
55671
55672 2008-03-11  Bruno Haible  <bruno@clisp.org>
55673
55674         Avoid conflicts between local macro definitions.
55675         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
55676         AC_LIB_LINKFLAGS_BODY): Use pushdef/popdef instead of define/undefine.
55677
55678 2008-03-10  Peter O'Gorman  <bug-gnulib@mlists.thewrittenword.com>
55679             Bruno Haible  <bruno@clisp.org>
55680
55681         Make va_copy work with some version of xlc on AIX 5.1.
55682         * lib/stdarg.in.h: New file.
55683         * m4/stdarg.m4 (gl_STDARG_H): Initialize STDARG_H and NEXT_STDARG_H.
55684         On AIX, use a <stdarg.h> file substitute.
55685         * modules/stdarg (Files): Add lib/stdarg.in.h.
55686         (Depends-on): Add include_next.
55687         (Makefile.am): Build a stdarg.h substitute if requested.
55688         * doc/posix-functions/va_copy.texi: Document the platforms lacking it.
55689
55690 2008-03-10  Bruno Haible  <bruno@clisp.org>
55691
55692         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Document a restriction.
55693         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
55694         Reported by Peter O'Gorman <bug-gnulib@mlists.thewrittenword.com>.
55695
55696 2008-03-10  Bruno Haible  <bruno@clisp.org>
55697
55698         * modules/stdlib (Depends-on): Add include_next, remove
55699         absolute-header.
55700
55701 2008-03-09  Bruno Haible  <bruno@clisp.org>
55702
55703         * lib/freadahead.h (freadahead): Document more precisely.
55704         * lib/freadahead.c (freadahead): When an ungetc is in effect, return
55705         the sum of both buffer sizes.
55706         * tests/test-freadahead.c (main): Also test behaviour after ungetc.
55707         * NEWS: Document the change.
55708
55709 2008-03-09  Bruno Haible  <bruno@clisp.org>
55710
55711         Extend freadptr to return also the buffer size.
55712         * lib/freadptr.h (freadptr): Add sizep argument.
55713         * lib/freadptr.c: Include freadptr.h, not freadahead.h.
55714         (freadptr): Add sizep argument. Determine buffer size like freadahead
55715         does.
55716         * tests/test-freadptr.c: Don't include freadahead.h.
55717         (main): Adapt for new calling convention of freadptr.
55718         * tests/test-freadptr2.c: New file, based on tests/test-freadahead.c.
55719         * tests/test-freadptr2.sh: New file, based on tests/test-freadahead.sh.
55720         * modules/freadptr-tests (Files): Add tests/test-freadptr2.c,
55721         tests/test-freadptr2.sh.
55722         (Depends): Remove freadahead.
55723         (TESTS): Add test-freadptr2.sh.
55724         (check_PROGRAMS): Add test-freadptr2.
55725
55726 2008-03-09  Bruno Haible  <bruno@clisp.org>
55727
55728         * doc/Makefile (%.pdf): Explain how to remedy the save_size error.
55729         Report and solution by Simon Josefsson.
55730
55731 2008-03-06  Bruno Haible  <bruno@clisp.org>
55732
55733         Make fflush after ungetc work on BSD platforms.
55734         * lib/fflush.c (rpl_fflush): Discard ungetc buffer if possible.
55735         * tests/test-fflush2.c: New file.
55736         * tests/test-fflush2.sh: New file.
55737         * modules/fflush-tests (Files): Add tests/test-fflush2.sh,
55738         tests/test-fflush2.c.
55739         (Makefile.am): Build test-fflush2 and run test-fflush2.sh.
55740         * doc/posix-functions/fflush.texi: Document fflush after ungetc bug.
55741
55742 2008-03-06  Eric Blake  <ebb9@byu.net>
55743
55744         Likewise for ftello.
55745         * modules/ftello (Dependencies): Add extensions.
55746         * m4/ftello.m4 (gl_FUNC_FTELLO): Require AC_USE_SYSTEM_EXTENSIONS.
55747
55748 2008-03-06  Bruno Haible  <bruno@clisp.org>
55749
55750         * modules/fseeko (Dependencies): Add extensions.
55751         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Require AC_USE_SYSTEM_EXTENSIONS.
55752         Needed on glibc systems.
55753
55754 2008-03-06  Bruno Haible  <bruno@clisp.org>
55755
55756         * doc/gnulib-tool.texi (@nosuchmodulenote): Avoid line break inside
55757         email address.
55758         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
55759
55760 2008-03-06  Bruno Haible  <bruno@clisp.org>
55761
55762         * users.txt: Add libgnupdf.
55763
55764 2008-03-06  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
55765
55766         * doc/gnulib-tool.texi (@nosuchmodulenote): New macro.
55767         (Header File Substitutes, Function Substitutes,
55768         Glibc Header File Substitutes, Glibc Function Substitutes): Use it.
55769         (Build robot for gnulib): Fix typo.
55770
55771 2008-03-06  Bruno Haible  <bruno@clisp.org>
55772
55773         * doc/gnulib-tool.texi (VCS Issues): Small updates.
55774         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
55775
55776 2008-03-06  Bruno Haible  <bruno@clisp.org>
55777
55778         * doc/func.texi: New file, extracted from doc/gnulib.texi.
55779         * doc/gnulib.texi: Include it.
55780
55781 2008-03-06  Simon Josefsson  <simon@josefsson.org>
55782
55783         * modules/func (License): Change license to unlimited; there was
55784         no LGPL parts in the module anyway.
55785
55786 2008-03-06  Simon Josefsson  <simon@josefsson.org>
55787
55788         * modules/__func__: Renamed to modules/func.
55789         * modules/__func__-tests: Renamed to modules/func-tests.
55790         * tests/test-__func__.c: Renamed to tests/test-func.c.
55791         * m4/__func__.m4: Renamed to m4/func.m4.
55792         * doc/gnulib.texi (__func__): Section renamed to func.
55793         Suggested by Eric Blake <ebb9@byu.net>.
55794
55795 2008-03-06  Simon Josefsson  <simon@josefsson.org>
55796
55797         * doc/gnulib.texi (__func__): Use C99 terminology when talking
55798         about __func__.  Make example self-contained.  Suggested by Eric
55799         Blake <ebb9@byu.net>.
55800
55801         * tests/test-__func__.c (main): Avoid extraneous () around __func.
55802         Suggested by Eric Blake <ebb9@byu.net>.
55803
55804 2008-03-06  Simon Josefsson  <simon@josefsson.org>
55805
55806         * modules/__func__: New file.
55807         * modules/__func__-tests: New file.
55808         * tests/test-__func__.c: New file.
55809         * m4/__func__.m4: New file.
55810         * doc/gnulib.texi (__func__): Document __func__ module.
55811
55812 2008-03-05  Simon Josefsson  <simon@josefsson.org>
55813
55814         * modules/byteswap (License): Re-license as LGPLv2+.
55815
55816 2008-03-05  Simon Josefsson  <simon@josefsson.org>
55817
55818         * doc/Makefile: Add pdf target.
55819
55820 2008-03-05  Simon Josefsson  <simon@josefsson.org>
55821
55822         * modules/inline (License): Use 'unlimited', since there are only
55823         *.m4 files in this module.
55824
55825 2008-03-03  John E. Malmberg  <wb8tyw@qsl.net>  (tiny change)
55826             Bruno Haible  <bruno@clisp.org>
55827
55828         Add support for HP C 7.1 on OpenVMS 8.3.
55829         * lib/alloca.in.h (alloca): Define as alias for DEC C on VMS.
55830
55831 2008-03-03  John E. Malmberg  <wb8tyw@qsl.net>  (tiny change)
55832
55833         Update VMS specifics.
55834         * lib/getopt.c [VMS]: Remove include of unixlib.h.
55835
55836 2008-03-02  Jim Meyering  <meyering@redhat.com>
55837
55838         Remove the last dependency on the "free" module.
55839         * m4/readutmp.m4 (gl_READUTMP): Don't require gl_FUNC_FREE.
55840         Reported by Bob Proulx.
55841
55842         * lib/getdelim.c (getdelim): Don't leak memory upon failed realloc.
55843
55844         Remove useless "if" tests before free.  Deprecate "free" module.
55845         * doc/posix-functions/free.texi: Mention that this
55846         module is no longer useful.
55847         * modules/free (Notice): Say this module is obsolete.
55848         * modules/readutmp (Depends-on): Remove free.
55849         * lib/save-cwd.c (free_cwd): Remove useless "if" before free.
55850         * lib/putenv.c (putenv): Likewise.
55851         * lib/gc-gnulib.c (gc_cipher_close): Likewise.
55852         * lib/getaddrinfo.c (freeaddrinfo): Likewise.
55853         * tests/test-c-strcasestr.c (main): Likewise.
55854         * tests/test-c-strstr.c (main): Likewise.
55855         * tests/test-mbscasestr1.c (main): Likewise.
55856         * tests/test-mbscasestr2.c (main): Likewise.
55857         * tests/test-mbsstr1.c (main): Likewise.
55858         * tests/test-mbsstr2.c (main): Likewise.
55859         * tests/test-memmem.c (main): Likewise.
55860         * tests/test-strcasestr.c (main): Likewise.
55861         * tests/test-striconv.c (main): Likewise.
55862         * tests/test-striconveh.c (main): Likewise.
55863         * tests/test-striconveha.c (main): Likewise.
55864         * tests/test-strstr.c (main): Likewise.
55865
55866         * build-aux/git-version-gen: Adjust a comment and the Usage string.
55867
55868         bootstrap: sync from coreutils again
55869         * build-aux/bootstrap: Remove dangling m4/*.m4 symlinks.
55870
55871 2008-03-01  Jim Meyering  <meyering@redhat.com>
55872
55873         bootstrap: sync from coreutils
55874         * build-aux/bootstrap (update_po_files): Copy a .po file into place
55875         also when the target doesn't exist.
55876
55877 2008-03-01  Eric Blake  <ebb9@byu.net>
55878
55879         Fix bugs in last patch.
55880         * lib/memchr2.c (memchr2): Fix typo.
55881         * tests/test-memchr2.c: Test previous bug, and don't use GNU
55882         extension.
55883         Reported by Bruce Korb.
55884
55885         New module 'memchr2'.
55886         * modules/memchr2: New file.
55887         * modules/memchr2-tests: Likewise.
55888         * lib/memchr2.h: Likewise.
55889         * lib/memchr2.c: Likewise, based on memchr.c.
55890         * tests/test-memchr2.c: New test.
55891         * MODULES.html.sh (String handling): Add memchr2.
55892
55893 2008-02-29  Bruno Haible  <bruno@clisp.org>
55894
55895         * modules/freadseek-tests: New file.
55896         * tests/test-freadseek.sh: New file.
55897         * tests/test-freadseek.c: New file.
55898
55899         New module 'freadseek'.
55900         * modules/freadseek: New file.
55901         * lib/freadseek.h: New file.
55902         * lib/freadseek.c: New file.
55903         * MODULES.html.sh (File stream based Input/Output): Add freadseek.
55904
55905 2008-02-29  Sergey Poznyakoff  <gray@gnu.org.ua>
55906
55907         * users.txt: Add anubis, cpio, mailfromd, mailutils, radius,
55908         wydawca.
55909
55910         * m4/argp.m4 (gl_ARGP): Use AC_TRY_LINK to test if
55911         program_invocation_name and program_invocation_short_name are
55912         present.
55913
55914 2008-02-28  Bruno Haible  <bruno@clisp.org>
55915
55916         * tests/test-freadptr.c: Add a test for behaviour after ungetc.
55917         * tests/test-freadptr.sh: Also test non-seekable stdin.
55918
55919 2008-02-28  Sergey Poznyakoff  <gray@gnu.org.ua>
55920
55921         * build-aux/bootstrap (source_base, m4_base)
55922         (doc_base, tests_base): New variables.
55923         (gnulib_tool_options): Do not hardcode base directories, use
55924         the above variables instead.
55925
55926 2008-02-28  Atsushi SAKAI  <sakaia@jp.fujitsu.com>
55927
55928         * lib/xsize.h: Fix typo in comment: s/tupe/type/.
55929
55930 2008-02-28  Bruno Haible  <bruno@clisp.org>
55931
55932         * modules/freadptr-tests: New file.
55933         * tests/test-freadptr.sh: New file.
55934         * tests/test-freadptr.c: New file.
55935
55936         New module 'freadptr'.
55937         * modules/freadptr: New file.
55938         * lib/freadptr.h: New file.
55939         * lib/freadptr.c: New file.
55940         * MODULES.html.sh (File stream based Input/Output): Add freadptr.
55941
55942 2008-02-26  Karl Berry  <karl@freefriends.org>
55943
55944         Sync from Libtool:
55945         * libltdl/argz.c (argz_add, argz_count): New functions.
55946         * libltdl/argz.in.h: Declare them.
55947         Report by Juan Manuel Guerrero <juan.guerrero@gmx.de>.
55948
55949 2008-02-22  Bruno Haible  <bruno@clisp.org>
55950
55951         * m4/time_r.m4 (gl_TIME_R): Also check that localtime_r's return type
55952         is a pointer type.  Needed for HP-UX 10.
55953         * doc/posix-functions/localtime_r.texi: Mention HP-UX 10.
55954         * doc/posix-functions/gmtime_r.texi: Likewise.
55955         Reported by Peter O'Gorman <bug-gnulib@mlists.thewrittenword.com>.
55956
55957 2008-02-24  Bruno Haible  <bruno@clisp.org>
55958
55959         * modules/environ-tests: New file.
55960         * tests/test-environ.c: New file.
55961
55962         New module 'environ'.
55963         * modules/environ: New file.
55964         * lib/unistd.in.h (environ): New declaration.
55965         * m4/environ.m4: New file.
55966         (gt_CHECK_VAR_DECL): Moved here from m4/setenv.m4. Undefine gt_cv_var
55967         after use.
55968         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_ENVIRON and
55969         HAVE_DECL_ENVIRON.
55970         * modules/unistd (Makefile.am): Substitute also GNULIB_ENVIRON and
55971         HAVE_DECL_ENVIRON.
55972         * doc/posix-functions/environ.texi: Mention module 'environ'. Remove
55973         wrong claim that 'environ' is missing on some systems.
55974         * modules/execute (Depends-on): Add environ.
55975         * lib/execute.c (environ): Remove fallback declaration.
55976         * modules/pipe (Depends-on): Add environ.
55977         * lib/pipe.c (environ): Remove fallback declaration.
55978         * modules/setenv (Depends-on): Add environ.
55979         * lib/setenv.c (environ): Remove fallback declaration.
55980         * modules/unsetenv (Depends-on): Add environ.
55981         * lib/unsetenv.c (environ): Remove fallback declaration.
55982         * m4/setenv.m4 (gt_CHECK_VAR_DECL): Remove macro. Moved to
55983         m4/environ.m4.
55984         (gl_PREREQ_SETENV): Require gl_ENVIRON instead of testing for environ.
55985         (gl_PREREQ_UNSETENV): Likewise.
55986
55987 2008-02-24  Bruno Haible  <bruno@clisp.org>
55988
55989         * doc/posix-functions/environ.texi: Document the MacOS X problem.
55990
55991 2008-02-20  Bob Proulx  <bob@proulx.com>
55992
55993         Enable use of older two part flavor 'git describe'.
55994         * build-aux/git-version-gen: If using the older two part flavor of
55995         git version then recreate the third part now present in the
55996         newer three part flavor of git describe.
55997
55998 2008-02-20  Martin Buchholz  <martin@xemacs.org>  (tiny change)
55999
56000         * lib/fts.c (fts_build): Typo correction to comment.
56001
56002 2008-02-17  Bruno Haible  <bruno@clisp.org>
56003
56004         * lib/git-merge-changelog.c (main) [split_merged_entry]: Avoid
56005         generating no-op conflicts.
56006
56007 2008-02-17  Bruno Haible  <bruno@clisp.org>
56008
56009         Speed up by 10%.
56010         * lib/git-merge-changelog.c (main): Use the iterator to iterate through
56011         result_entries, rather than an index-based loop.
56012
56013 2008-02-17  Bruno Haible  <bruno@clisp.org>
56014
56015         Speed up by 25%.
56016         * lib/git-merge-changelog.c (struct entry): New fields 'hashcode',
56017         'hashcode_cached'.
56018         (entry_create): New function.
56019         (entry_hashcode): Use the cached hashcode if possible.
56020         (read_changelog_file, try_split_merged_entry): Use entry_create.
56021
56022 2008-02-17  Bruno Haible  <bruno@clisp.org>
56023
56024         Speed up from O(n^2) to O(n) for long ChangeLog files.
56025         * lib/git-merge-changelog.c: Include gl_rbtreehash_list.h.
56026         (read_changelog_file): Change implementation of entries_reversed list
56027         to rbtreehash.
56028         * modules/git-merge-changelog (Depends-on): Add rbtreehash-list.
56029
56030 2008-02-17  Bruno Haible  <bruno@clisp.org>
56031
56032         New option --split-merged-entry.
56033         * lib/git-merge-changelog.c (FSTRCMP_STRICTER_THRESHOLD): New macro.
56034         (find_paragraph_end, try_split_merged_entry): New functions.
56035         (long_options): Add option --split-merged-entry.
56036         (usage): Document option --split-merged-entry.
56037         (main): Implement option --split-merged-entry.
56038         Reported by Eric Blake.
56039
56040 2008-02-17  Bruno Haible  <bruno@clisp.org>
56041
56042         * lib/git-merge-changelog.c: Include c-strstr.h.
56043         (main): Support the "git pull --rebase" situation.
56044         * modules/git-merge-changelog (Depends-on): Add c-strstr.
56045         Reported by Eric Blake.
56046
56047 2008-02-16  Eric Blake  <ebb9@byu.net>
56048
56049         Avoid doubling \ in common case of "c-maybe" quoting style.
56050         * lib/quotearg.c (quotearg_buffer_restyled): Don't escape \ when
56051         eliding outer quotes.
56052         * lib/quotearg.h: Document this.
56053         * tests/test-quotearg.c (result_strings, inputs, results_g)
56054         (flag_results, locale_results): Test it by adding a new string to
56055         each test group.
56056         (compare_strings): Test new string.
56057
56058 2008-02-13  Eric Blake  <ebb9@byu.net>
56059
56060         Avoid trigraph quoting in default output.
56061         * lib/quotearg.h (enum quoting_flags): Add QA_SPLIT_TRIGRAPHS.
56062         * lib/quotearg.c (quotearg_buffer_restyled): Don't quote trigraphs
56063         unless explicitly requested.
56064         * tests/test-quotearg.c (flag_results, main): Add additional tests.
56065
56066 2008-02-13  Lasse Collin  <lasse.collin@tukaani.org>
56067
56068         Don't rely on signed integer overflowing to negative value.
56069         * lib/getugroups.c (getugroups): Include <limits.h>.
56070         Instead, compare against INT_MAX, and increment only if the test passes.
56071
56072 2008-02-13  Jim Meyering  <meyering@redhat.com>
56073         and Eric Blake  <ebb9@byu.net>
56074
56075         Avoid shadowing warning and compile errors on Linux.
56076         * tests/test-quotearg.c [ENABLE_NLS]: Disable <libintl.h>
56077         forwarding macros on Linux.
56078         (dcgettext): Define a stub, for Linux.
56079         (results_g, main): Avoid warnings.
56080
56081 2008-02-12  Eric Blake  <ebb9@byu.net>
56082
56083         Silence warning in last patch.
56084         * lib/quotearg.c (quotearg_buffer_restyled): Add missing const.
56085
56086         Quotearg part 4: add tests, fix c-maybe colon quoting.
56087         * lib/quotearg.h: Improve documentation.
56088         * lib/quotearg.c (quotearg_buffer_restyled): Don't add extra
56089         escapes when adding outer quotes.  When quoting trigraphs, use
56090         valid C notation.  When quoting NUL, omit extra characters if next
56091         character is not digit.  Alter prototype.
56092         (quotearg_buffer, quotearg_alloc_mem, quotearg_n_options): Adjust
56093         callers.
56094         * modules/quotearg-tests: New module.
56095         * tests/test-quotearg.c: New test.
56096
56097 2008-02-07  Eric Blake  <ebb9@byu.net>
56098
56099         Quotearg part 3: add flag to control outer quote elision.
56100         * lib/quotearg.h (c_maybe_quoting_style): New style.
56101         (enum quoting_flags): Better documentation of flags.
56102         * lib/quotearg.c (quoting_style_args, quoting_style_vals): Add
56103         c-maybe style.
56104         (quotearg_buffer_restyled): Handle new flag to elide outer
56105         quotes.
56106
56107         Quotearg part 2: add flag that can control NUL elision.
56108         * lib/quotearg.h (set_quoting_flags): New prototype.
56109         * lib/quotearg.c (struct quoting_options): Add flag field.
56110         (set_quoting_flags): New function.
56111         (quotearg_buffer_restyled): Add flags parameter.
56112         (quotearg_alloc_mem): Set the flag if length cannot be returned.
56113         (quotearg_n_options): Set the flag, since length cannot be
56114         returned.
56115         (quoting_options_from_style): Default flags correctly.
56116
56117         Quotearg part 1: more wrappers, restore quotearg_char state.
56118         * lib/quotearg.h (quotearg_alloc_mem, quotearg_n_mem)
56119         (quotearg_mem, quotearg_style_mem, quotearg_char_mem)
56120         (quotearg_colon_mem): New wrappers.
56121         * lib/quotearg.c (quotearg_alloc, quotearg_char): Rewrite...
56122         (quotearg_alloc_mem, quotearg_char_mem): ...in terms of these new
56123         functions.
56124         (quotearg_n_mem, quotearg_mem, quotearg_style_mem)
56125         (quotearg_colon_mem): New functions.
56126
56127 2008-02-11  Bruno Haible  <bruno@clisp.org>
56128
56129         * modules/git-merge-changelog (Makefile.am): Don't use -L and -l for a
56130         library in the current directory: it does not work with parallel make.
56131         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
56132
56133 2008-02-11  Bruno Haible  <bruno@clisp.org>
56134
56135         * .gitattributes: New file.
56136
56137 2008-02-11  Jim Meyering  <meyering@redhat.com>
56138
56139         useless-if-before-free: Fix reversed exit values.
56140         * build-aux/useless-if-before-free: Use correct values
56141         for EXIT_MATCH and EXIT_NO_MATCH.
56142
56143         * build-aux/useless-if-before-free: Close stdout carefully.
56144
56145 2008-02-10  Bruno Haible  <bruno@clisp.org>
56146
56147         New module 'git-merge-changelog'.
56148         * modules/git-merge-changelog: New file.
56149         * lib/git-merge-changelog.c: New file.
56150
56151 2008-02-10  Jim Meyering  <meyering@redhat.com>
56152
56153         useless-if-before-free: New option: --list (-l).
56154
56155         useless-if-before-free: Don't exit immediately upon open failure.
56156         * build-aux/useless-if-before-free: Exit 2 for errors.
56157         Upon failure to open a file, don't exit immediately.
56158         Rather, just warn and continue with any remaining files.
56159
56160 2008-02-10  Bruno Haible  <bruno@clisp.org>
56161
56162         New abstract list operation 'node_set_value'.
56163         * lib/gl_list.h (gl_list_node_set_value): New function.
56164         (struct gl_list_implementation): New field node_set_value.
56165         * lib/gl_list.c (gl_list_node_set_value): New function.
56166         * lib/gl_array_list.c (gl_array_node_set_value): New function.
56167         (gl_array_list_implementation): Update.
56168         * lib/gl_carray_list.c (gl_carray_node_set_value): New function.
56169         (gl_carray_list_implementation): Update.
56170         * lib/gl_anylinked_list2.h (gl_linked_node_set_value): New function.
56171         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
56172         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
56173         * lib/gl_anytree_list2.h (gl_tree_node_set_value): New function.
56174         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
56175         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
56176         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
56177         Update.
56178         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Update.
56179         * lib/gl_sublist.c (gl_sublist_node_set_value): New function.
56180         (gl_sublist_list_implementation): Update.
56181
56182 2008-02-10  Bruno Haible  <bruno@clisp.org>
56183
56184         * lib/diffseq.h: Write "ELEMENT const" instead of "const ELEMENT".
56185         Needed when ELEMENT is #defined to 'some_type *'.
56186
56187 2008-02-10  Jim Meyering  <meyering@redhat.com>
56188
56189         New script and module: useless-if-before-free
56190         * MODULES.html.sh (maint+release support): Add useless-if-before-free.
56191         * build-aux/useless-if-before-free: New file.
56192         * modules/useless-if-before-free: New file.
56193
56194         * build-aux/gitlog-to-changelog: Use committer date, not author date.
56195
56196         xstrtol_error: Fix typo.
56197         * lib/xstrtol-error.c (xstrtol_error): The parameter was unused:
56198         s/exit_failure/exit_status/.
56199
56200 2008-02-09  Jim Meyering  <meyering@redhat.com>
56201
56202         New script and module: gitlog-to-changelog
56203         * MODULES.html.sh (maint+release support): Add gitlog-to-changelog.
56204         * modules/gitlog-to-changelog: New file.
56205         * build-aux/gitlog-to-changelog: New file.
56206
56207 2008-02-08  Jim Meyering  <meyering@redhat.com>
56208
56209         Avoid two "parameter unused" warnings.
56210         * lib/stat-time.h (get_stat_birthtime_ns, get_stat_birthtime):
56211         Mark "st" as used.
56212
56213         Use "git COMMAND", not "git-COMMAND".
56214         * build-aux/bootstrap (version_controlled_file): s/git-rm/git-rm/.
56215         * build-aux/announce-gen (get_tool_versions): Correct a diagnostic.
56216         * build-aux/git-version-gen: Use "git status", not "git-status".
56217
56218 2008-02-07  Bruno Haible  <bruno@clisp.org>
56219
56220         * lib/vasnprintf.c (VASNPRINTF): Don't use %n on native Woe32 systems.
56221         Avoids a crash on Windows Vista.
56222         Reported by Adam Strzelecki <ono@java.pl> via
56223         Simon Josefsson <simon@josefsson.org>.
56224
56225 2008-02-06  Bruno Haible  <bruno@clisp.org>
56226
56227         Fix *printf behaviour regarding the left-adjust flag on HP-UX 10.20.
56228         * m4/printf.m4 (gl_PRINTF_FLAG_LEFTADJUST): New macro.
56229         * lib/vasnprintf.c (VASNPRINTF): Handle NEED_PRINTF_FLAG_LEFTADJUST.
56230         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_LEFTADJUST): New macro.
56231         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
56232         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
56233         gl_PRINTF_FLAG_LEFTADJUST and test its result. Invoke
56234         gl_PREREQ_VASNPRINTF_FLAG_LEFTADJUST.
56235         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
56236         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
56237         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
56238         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
56239         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
56240         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
56241         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
56242         * tests/test-vasnprintf-posix.c (test_function): Add testcases for the
56243         left-adjust flag.
56244         * tests/test-snprintf-posix.h (test_function): Likewise.
56245         * tests/test-sprintf-posix.h (test_function): Likewise.
56246         * tests/test-vasprintf-posix.c (test_function): Likewise.
56247         * doc/posix-functions/fprintf.texi: Update.
56248         * doc/posix-functions/printf.texi: Update.
56249         * doc/posix-functions/snprintf.texi: Update.
56250         * doc/posix-functions/sprintf.texi: Update.
56251         * doc/posix-functions/vfprintf.texi: Update.
56252         * doc/posix-functions/vprintf.texi: Update.
56253         * doc/posix-functions/vsnprintf.texi: Update.
56254         * doc/posix-functions/vsprintf.texi: Update.
56255         Reported by Peter Fales <psfales@alcatel-lucent.com>.
56256
56257 2008-02-06  Bruno Haible  <bruno@clisp.org>
56258
56259         Fix bug introduced on 2008-01-26.
56260         * lib/isnan.c (FUNC): Set to rpl_isnand, not rpl_isnan.
56261
56262 2008-02-06  Bruno Haible  <bruno@clisp.org>
56263
56264         Fix bug introduced on 2007-06-10.
56265         * lib/vasnprintf.c (VASNPRINTF): Perform zero-padding also if
56266         !NEED_PRINTF_FLAG_ZERO.
56267
56268 2008-02-05  Peter O'Gorman <pogma@thewrittenword.com>
56269
56270         getloadavg: use libperfstat on AIX5
56271         * lib/getloadavg.c, m4/getloadavg.m4 [aix]: Use libperfstat
56272
56273 2008-02-03  Bruno Haible  <bruno@clisp.org>
56274
56275         * lib/diffseq.h: Add comments about required #includes.
56276         Reported by Michael Biggs <gnulib@doubleplum.net>.
56277
56278 2008-02-01  Bruno Haible  <bruno@clisp.org>
56279
56280         * users.txt: Add gnuit.
56281
56282 2008-01-31  Bruno Haible  <bruno@clisp.org>
56283
56284         * lib/md4.c (set_uint32): Mark as inline.
56285         * lib/md5.c (set_uint32): Likewise.
56286         * lib/sha1.c (set_uint32): Likewise.
56287         * m4/md4.m4 (gl_MD4): Require AC_C_INLINE.
56288         * m4/md5.m4 (gl_MD5): Likewise.
56289         * m4/sha1.m4 (gl_SHA1): Likewise.
56290
56291 2008-01-31  Jim Meyering  <meyering@redhat.com>
56292
56293         Use "sizeof VAR", rather than a literal "4".
56294         * lib/md5.c (md5_read_ctx): Use sizeof ctx->A, not 4.
56295         * lib/md4.c (md4_read_ctx): Likewise.
56296         * lib/sha1.c (sha1_read_ctx): Likewise.
56297
56298 2008-01-31  Simon Josefsson  <simon@josefsson.org>
56299
56300         * tests/test-sha1.c: New file, based on test-md5.c.
56301
56302         * modules/crypto/sha1-tests: New file.
56303
56304 2008-01-31  Simon Josefsson  <simon@josefsson.org>
56305
56306         * lib/sha1.h (SHA1_DIGEST_SIZE): Define.
56307
56308 2008-01-31  Jim Meyering  <meyering@redhat.com>
56309
56310         Prefer "sizeof v" over the equivalent "4".
56311         * lib/md4.c (set_uint32): Use "sizeof v" as memcpy length, not 4.
56312         * lib/md5.c (set_uint32): Likewise.
56313         * lib/sha1.c (set_uint32): Likewise.
56314
56315 2008-01-31  Simon Josefsson  <simon@josefsson.org>
56316
56317         * lib/sha1.c (set_uint32): Mark function as static.
56318
56319 2008-01-31  Simon Josefsson  <simon@josefsson.org>
56320
56321         md2: clarify comments to say that alignment is not required.
56322         * lib/md2.h: Remove warning about alignment in comment.
56323         * lib/md2.c (md2_read_ctx, md2_finish_ctx): Doc fix, alignment has
56324         never been required.
56325
56326 2008-01-31  Simon Josefsson  <simon@josefsson.org>
56327
56328         md4: adapt alignment constraint fix from sha1.
56329         * lib/md4.c (set_uint32): New function, from sha1.c
56330         (md4_read_ctx): Use it.
56331         (md4_finish_ctx): Doc fix.
56332         * lib/md4.h: Doc fix.
56333
56334 2008-01-31  Simon Josefsson  <simon@josefsson.org>
56335
56336         md5: adapt alignment constraint fix from sha1.
56337         * lib/md5.c (set_uint32): New function, from sha1.c
56338         (md5_read_ctx): Use it.
56339         (md5_finish_ctx): Doc fix.
56340         * lib/md5.h: Doc fix.
56341
56342 2008-01-30  Peter Palfrader  <weasel@debian.org>
56343
56344         sha1: remove the result buffer alignment constraint
56345         * lib/sha1.c (set_uint32): New function.
56346         (sha1_read_ctx): Rewrite to remove the result buffer alignment
56347         constraint.
56348         (sha1_finish_ctx): Remove comment warning about alignment constraint.
56349         * lib/sha1.h: Likewise.
56350
56351 2008-01-30  Andreas Schwab  <schwab@suse.de>
56352             Bruno Haible  <bruno@clisp.org>
56353
56354         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Include <float.h> and ensure a
56355         correct definition of LDBL_MIN_EXP.
56356
56357 2008-01-30  Karl Berry  <karl@gnu.org>
56358
56359         * config/srclist-update: try to preserve x bit on updates.
56360         * config/srclistvars.sh: update for karl.
56361
56362 2008-01-29  Jim Meyering  <meyering@redhat.com>
56363
56364         vasnprintf.c: Avoid warning about unused label
56365         * lib/vasnprintf.c (VASNPRINTF) [!USE_SNPRINTF]: Guard the
56366         "overflow" label definition and associated code with the
56367         same cpp condition that guards the sole use of that label.
56368
56369 2008-01-26  Bruno Haible  <bruno@clisp.org>
56370
56371         * m4/isnanl.m4 (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM,
56372         gl_FUNC_ISNANL_WORKS): Test the GCC >= 4.0 built-in.
56373         * lib/isnanl.h (isnanl): Use the GCC >= 4.0 built-in.
56374         * lib/isnanl-nolibm.h (isnanl): Likewise.
56375         Reported by Paul Eggert <eggert@cs.ucla.edu>.
56376
56377 2008-01-26  Bruno Haible  <bruno@clisp.org>
56378
56379         * m4/isnand.m4 (gl_FUNC_ISNAND_NO_LIBM): Test the GCC >= 4.0 built-in.
56380         * lib/isnand.h (isnand): Use the GCC >= 4.0 built-in.
56381
56382 2008-01-26  Bruno Haible  <bruno@clisp.org>
56383
56384         * m4/isnanf.m4 (gl_HAVE_ISNANF_NO_LIBM, gl_ISNANF_WORKS): Test the
56385         GCC >= 4.0 built-in.
56386         * lib/isnanf.h (isnanf): Use the GCC >= 4.0 built-in.
56387
56388 2008-01-26  Bruno Haible  <bruno@clisp.org>
56389
56390         Rename isnan, applicable to 'double' only, to isnand.
56391         * modules/isnand-nolibm: Renamed from modules/isnan-nolibm.
56392         (Files): Add lib/isnand.h, lib/isnand.c. Remove lib/isnan.h.
56393         (configure.ac): Update.
56394         (Include): Replace "isnan.h" with "isnand.h".
56395         * m4/isnand.m4: Renamed from m4/isnan.m4.
56396         (gl_FUNC_ISNAND_NO_LIBM): Renamed from gl_FUNC_ISNAN_NO_LIBM. Set
56397         HAVE_ISNAND_IN_LIBC instead of HAVE_ISNAN_IN_LIBC. Build isnand.c
56398         instead of isnan.c.
56399         * lib/isnand.h: Renamed from lib/isnan.h. Test HAVE_ISNAND_IN_LIBC
56400         instead of HAVE_ISNAN_IN_LIBC.
56401         (isnand): Renamed from isnan.
56402         * lib/isnand.c: New file.
56403         * modules/isnand-nolibm-tests: Renamed from modules/isnan-nolibm-tests.
56404         (Files): Add tests/test-isnand.c. Remove tests/test-isnan.c.
56405         (Makefile.am): Update.
56406         * tests/test-isnand.c: Renamed from tests/test-isnan.c.
56407         Include isnand.h instead of isnan.h.
56408         (main): Test isnand instead of isnan.
56409         * modules/fprintf-posix (Depends-on): Add isnand-nolibm, remove
56410         isnan-nolibm.
56411         * modules/frexp (Depends-on): Likewise.
56412         * modules/frexp-tests (Depends-on): Likewise.
56413         * modules/frexp-nolibm (Depends-on): Likewise.
56414         * modules/frexp-nolibm-tests (Depends-on): Likewise.
56415         * modules/isfinite (Depends-on): Likewise.
56416         * modules/round-tests (Depends-on): Likewise.
56417         * modules/signbit (Depends-on): Likewise.
56418         * modules/signbit-tests (Depends-on): Likewise.
56419         * modules/snprintf-posix (Depends-on): Likewise.
56420         * modules/sprintf-posix (Depends-on): Likewise.
56421         * modules/trunc-tests (Depends-on): Likewise.
56422         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
56423         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
56424         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
56425         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
56426         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
56427         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
56428         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
56429         * modules/vasnprintf-posix (Depends-on): Likewise.
56430         * modules/vasprintf-posix (Depends-on): Likewise.
56431         * modules/vfprintf-posix (Depends-on): Likewise.
56432         * modules/vsnprintf-posix (Depends-on): Likewise.
56433         * modules/vsprintf-posix (Depends-on): Likewise.
56434         * lib/frexp.c: Include isnand.h instead of isnan.h.
56435         (ISNAN): Set to isnand instead of isnan.
56436         * lib/isfinite.c: Include isnand.h instead of isnan.h.
56437         (gl_isfinited): Use isnand instead of isnan.
56438         * lib/signbitd.c: Include isnand.h instead of isnan.h.
56439         (gl_signbitd): Use isnand instead of isnan.
56440         * lib/vasnprintf.c: Include isnand.h instead of isnan.h.
56441         (is_infinite_or_zero, VASNPRINTF): Use isnand instead of isnan.
56442         * tests/test-frexp.c: Include isnand.h instead of isnan.h.
56443         (main): Use isnand instead of isnan.
56444         * tests/test-round1.c: Include isnand.h.
56445         (main): Use isnand instead of isnan.
56446         * tests/test-round2.c: Include isnand.h instead of isnan.h.
56447         (ISNAN): Set to isnand instead of isnan.
56448         * tests/test-trunc1.c: Include isnand.h.
56449         (main): Use isnand instead of isnan.
56450         * tests/test-trunc2.c: Include isnand.h instead of isnan.h.
56451         (equal): Use isnand instead of isnan.
56452         * MODULES.html.sh (Mathematics <math.h>): Replace isnan-nolibm with
56453         isnand-nolibm.
56454         * NEWS: Mention the change.
56455
56456 2008-01-25  Paul Eggert  <eggert@cs.ucla.edu>
56457             Bruno Haible  <bruno@clisp.org>
56458
56459         * m4/signbit.m4 (gl_SIGNBIT): Require a macro definition. Test whether
56460         the GCC builtins for signbits are present and set
56461         REPLACE_SIGNBIT_USING_GCC if so.
56462         * lib/math.in.h (signbit): Define using GCC builtins if
56463         REPLACE_SIGNBIT_USING_GCC is set.
56464         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize
56465         REPLACE_SIGNBIT_USING_GCC.
56466         * modules/math (Makefile.am): Substitute REPLACE_SIGNBIT_USING_GCC.
56467
56468 2008-01-25  Jim Meyering  <meyering@redhat.com>
56469
56470         Prefer <config.h> over "config.h".  See autoconf doc for explanation.
56471         * lib/poll.c: Include <config.h>, not "config.h".
56472         * tests/test-getaddrinfo.c: Likewise.
56473
56474 2008-01-25  Simon Josefsson  <simon@josefsson.org>
56475
56476         * modules/sockets-tests: New file.
56477
56478 2008-01-24  Simon Josefsson  <simon@josefsson.org>
56479
56480         * modules/sockets: New module, can be used to call WSA_Startup and
56481         WSA_Cleanup when needed.
56482
56483         * lib/sockets.h, lib/sockets.c: New files.
56484
56485         * m4/sockets.m4: New file.
56486
56487         * tests/test-sockets.c: New file.
56488
56489 2008-01-19  Bruno Haible  <bruno@clisp.org>
56490
56491         * doc/posix-headers: Renamed from doc/headers.
56492         * doc/posix-functions: Renamed from doc/functions.
56493         * doc/gnulib.texi: Update.
56494
56495 2008-01-19  Bruno Haible  <bruno@clisp.org>
56496
56497         * doc/glibc-functions/strcasestr.texi: Include contents of
56498         doc/functions/strcasestr.texi, fixing the list of platforms.
56499         * doc/functions/strcasestr.texi: Remove file.
56500
56501 2008-01-19  Bruno Haible  <bruno@clisp.org>
56502
56503         * doc/glibc-functions/memmem.texi: Include contents of
56504         doc/functions/memmem.texi.
56505         * doc/functions/memmem.texi: Remove file.
56506
56507 2008-01-18  Bruno Haible  <bruno@clisp.org>
56508
56509         * doc/glibc-functions/*.texi: New files.
56510         * doc/gnulib.texi (Glibc Function Substitutes): Completely rewritten
56511         to use the new files.
56512
56513 2008-01-17  Bruno Haible  <bruno@clisp.org>
56514
56515         * tests/test-gethostname.c (main): Fix printf statement.
56516
56517 2008-01-17  Simon Josefsson  <simon@josefsson.org>
56518
56519         * modules/gethostname-tests: New file.
56520
56521         * tests/test-gethostname.c: New file.
56522
56523 2008-01-17  Simon Josefsson  <simon@josefsson.org>
56524
56525         * lib/gethostname.c: Include string.h unconditionally, strncpy is
56526         used by the UNAME case.  Reported by Bruno Haible
56527         <bruno@clisp.org>.
56528
56529 2008-01-17  Eric Blake  <ebb9@byu.net>
56530
56531         Convert c-strcasestr to be more efficient.
56532         * modules/c-strcasestr (Files): Use Two-Way, not KMP.
56533         (Depends-on): Add c-strcase, remove malloca, strnlen.
56534         * tests/test-c-strcasestr.c (main): Enhance test.
56535         * lib/c-strcasestr.c (c_strcasestr): Rewrite to new algorithm.
56536
56537 2007-01-16  Paolo Bonzini  <bonzini@gnu.org>
56538
56539         * build-aux/bootstrap (MSGID_BUGS_ADDRESS): New overridable variable.
56540         Use it in creating po/Makevars.
56541
56542 2008-01-15  Simon Josefsson  <simon@josefsson.org>
56543
56544         * lib/gc-libgcrypt.c (gc_init): Disable secure memory by default.
56545         Applications that requires it should initialize libgcrypt
56546         manually.
56547
56548 2008-01-16  Simon Josefsson  <simon@josefsson.org>
56549
56550         * lib/gethostname.c [!HAVE_UNAME]: Need string.h for strcpy.
56551
56552 2008-01-15  Paul Eggert  <eggert@cs.ucla.edu>
56553
56554         Fix problem with getdate on mingw32 reported by Simon Josefsson
56555         in <http://lists.gnu.org/archive/html/bug-gnulib/2008-01/msg00192.html>.
56556         * lib/getdate.y (get_date): Check "HAVE_DECL_TZNAME", not "defined
56557         tzname", when deciding whether to declare tzname.
56558         * lib/strftime.c (tzname): Likewise.
56559
56560 2008-01-15  Bruno Haible  <bruno@clisp.org>
56561
56562         Work around a MacOS X 10.5 bug in frexpl().
56563         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Also check denormalized numbers.
56564         * doc/functions/frexpl.texi: Document the bug.
56565         Reported by Elias Pipping <pipping@gentoo.org>.
56566
56567 2008-01-14  Eric Blake  <ebb9@byu.net>
56568
56569         Touch up previous patch.
56570         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Fix typo.
56571         * doc/functions/strcasestr.texi (strcasestr): Document OpenBSD bug.
56572
56573         Convert strcasestr module to use Two-Way algorithm.
56574         * modules/strcasestr-simple: New module, based on the old
56575         strcasestr, but with Two-Way rather than KMP.
56576         * modules/strcasestr (Depends-on): Change to strcasestr-simple.
56577         * lib/string.in.h (rpl_strcasestr): Declare.
56578         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Check for linear
56579         performance.
56580         * lib/strcasestr.c (strcasestr): Simplify, and avoid malloc.
56581         * modules/string (Makefile.am): Support strcasestr.
56582         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Likewise.
56583         * modules/strcasestr-tests (Depends-on): Check for alarm.
56584         * tests/test-strcasestr.c: Augment test.
56585         * lib/str-two-way.h: Clean up stray macro.
56586         * NEWS: Document new module.
56587         * MODULES.html.sh (string handling): Likewise.
56588         * doc/functions/strcasestr.texi: New file.
56589         * doc/gnulib.texi (Function Substitutes): New node.  Move memmem
56590         here, since it is not a POSIX function.
56591
56592 2008-01-14  Colin Watson  <cjwatson@debian.org>
56593             Bruno Haible  <bruno@clisp.org>
56594
56595         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Also check whether strsignal
56596         works fine; if not, set REPLACE_STRSIGNAL.
56597         (gl_PREREQ_STRSIGNAL): Require AC_DECL_SYS_SIGLIST.
56598         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
56599         REPLACE_STRSIGNAL.
56600         * lib/string.in.h (strsignal): Consider REPLACE_STRSIGNAL.
56601         * modules/string (Makefile.am): Substitute REPLACE_STRSIGNAL.
56602         * tests/test-strsignal.c (main): Check out-of-range signal numbers.
56603
56604 2008-01-14  Bruno Haible  <bruno@clisp.org>
56605
56606         * modules/strsignal (Include): Change to <string.h>.
56607
56608 2008-01-14  Colin Watson  <cjwatson@debian.org>
56609
56610         * modules/argp (Notice): Add a notice recommending to change
56611         XGETTEXT_OPTIONS.
56612         (configure.ac): Invoke AM_XGETTEXT_OPTION if it exists.
56613
56614 2008-01-13  Colin Watson  <cjwatson@debian.org>
56615
56616         * modules/strsignal-tests: New file.
56617         * tests/test-strsignal.c: New file.
56618
56619         * lib/strsignal.c: New file, from glibc with modifications.
56620         * lib/siglist.h: New file, from glibc with modifications.
56621         * lib/string.in.h (strsignal): New declaration.
56622         * m4/strsignal.m4: New file.
56623         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
56624         GNULIB_STRSIGNAL and HAVE_DECL_STRSIGNAL.
56625         * modules/strsignal: New file.
56626         * modules/string (Makefile.am): Substitute GNULIB_STRSIGNAL and
56627         HAVE_DECL_STRSIGNAL.
56628
56629 2008-01-13  Bruno Haible  <bruno@clisp.org>
56630
56631         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Check that the
56632         locale encoding is not ASCII. Needed for OpenBSD 4.0.
56633         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
56634         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
56635
56636 2008-01-13  Bruno Haible  <bruno@clisp.org>
56637
56638         * lib/argp-fmtstream.h (__attribute__): Don't redefine if
56639         __STRICT_ANSI__ is set: it's not needed by any version of gcc.
56640         * lib/argp.h (__attribute__): Likewise.
56641         * lib/c-stack.c (__attribute__): Likewise.
56642         * lib/error.h (__attribute__): Likewise.
56643         * lib/fts.c (__attribute__): Likewise.
56644         * lib/openat.h (__attribute__): Likewise.
56645         * lib/stdio.in.h (__attribute__): Likewise.
56646         * lib/string.in.h (__attribute__): Likewise.
56647         * lib/utimens.c (__attribute__): Likewise.
56648         * lib/vasnprintf.h (__attribute__): Likewise.
56649         * lib/xalloc.h (__attribute__): Likewise.
56650         * lib/xprintf.h (__attribute__): Likewise.
56651         * lib/xstrtol.h (__attribute__): Likewise.
56652         * lib/xvasprintf.h (__attribute__): Likewise.
56653
56654 2008-01-12  Bruno Haible  <bruno@clisp.org>
56655
56656         * doc/gnulib.texi (Glibc Header File Substitutes): New chapter.
56657         * doc/glibc-headers/a.out.texi: New file.
56658         * doc/glibc-headers/aliases.texi: New file.
56659         * doc/glibc-headers/alloca.texi: New file.
56660         * doc/glibc-headers/ar.texi: New file.
56661         * doc/glibc-headers/argp.texi: New file.
56662         * doc/glibc-headers/argz.texi: New file.
56663         * doc/glibc-headers/byteswap.texi: New file.
56664         * doc/glibc-headers/crypt.texi: New file.
56665         * doc/glibc-headers/endian.texi: New file.
56666         * doc/glibc-headers/envz.texi: New file.
56667         * doc/glibc-headers/err.texi: New file.
56668         * doc/glibc-headers/error.texi: New file.
56669         * doc/glibc-headers/execinfo.texi: New file.
56670         * doc/glibc-headers/fpu_control.texi: New file.
56671         * doc/glibc-headers/fstab.texi: New file.
56672         * doc/glibc-headers/fts.texi: New file.
56673         * doc/glibc-headers/getopt.texi: New file.
56674         * doc/glibc-headers/ieee754.texi: New file.
56675         * doc/glibc-headers/ifaddrs.texi: New file.
56676         * doc/glibc-headers/libintl.texi: New file.
56677         * doc/glibc-headers/mcheck.texi: New file.
56678         * doc/glibc-headers/mntent.texi: New file.
56679         * doc/glibc-headers/obstack.texi: New file.
56680         * doc/glibc-headers/paths.texi: New file.
56681         * doc/glibc-headers/printf.texi: New file.
56682         * doc/glibc-headers/pty.texi: New file.
56683         * doc/glibc-headers/resolv.texi: New file.
56684         * doc/glibc-headers/shadow.texi: New file.
56685         * doc/glibc-headers/sysexits.texi: New file.
56686         * doc/glibc-headers/ttyent.texi: New file.
56687
56688 2008-01-12  Jim Meyering  <meyering@redhat.com>
56689
56690         announce-gen: emit Gnulib's git-based version string.
56691         * build-aux/announce-gen: Remove option: --gnulib-snapshot-time-stamp=S.
56692         New option --gnulib-version=V, where V is expected to be
56693         the output of running git describe in the gnulib directory.
56694         (get_tool_versions): Request feedback on xdelta.  I suspect it's
56695         not useful, and plan to stop publishing an xdelta file with each
56696         coreutils release.
56697
56698         * build-aux/announce-gen: Also check for lzma-compressed files.
56699
56700 2008-01-11  Bruno Haible  <bruno@clisp.org>
56701
56702         * tests/test-memmem.c (main): Increase maximum allowed time.
56703         * tests/test-strstr.c (main): Likewise.
56704
56705 2008-01-11  Bruno Haible  <bruno@clisp.org>
56706
56707         * doc/functions/memmem.texi: Add more precisions about platforms.
56708         * doc/functions/strstr.texi: Likewise.
56709
56710 2008-01-10  Eric Blake  <ebb9@byu.net>
56711
56712         * m4/strstr.m4: Delete cruft from copy-n-paste.
56713         Reported by Bruno Haible.
56714
56715 2008-01-10  Bruno Haible  <bruno@clisp.org>
56716
56717         Make c-strstr rely on strstr.
56718         * lib/c-strstr.c: Don't include str-kmp.h.
56719         (c_strstr): Define in terms of strstr.
56720         * modules/c-strstr (Files): Remove lib/str-kmp.h.
56721         (Depends-on): Remove stdbool, malloca, strnlen. Add strstr.
56722
56723 2008-01-10  Bruno Haible  <bruno@clisp.org>
56724
56725         * doc/gnulib.texi (String Functions in C Locale): New section.
56726         * doc/c-ctype.texi: New file.
56727         * doc/c-strcase.texi: New file.
56728         * doc/c-strcaseeq.texi: New file.
56729         * doc/c-strcasestr.texi: New file.
56730         * doc/c-strstr.texi: New file.
56731         * doc/c-strtod.texi: New file.
56732         * doc/c-strtold.texi: New file.
56733
56734 2008-01-10  Eric Blake  <ebb9@byu.net>
56735
56736         * lib/relocatable.h: Fix a comment.
56737
56738 2008-01-10  Eric Blake  <ebb9@byu.net>
56739
56740         Share two-way algorithm.
56741         * lib/str-two-way.h: New file, merged from...
56742         * lib/memmem.c: ...here...
56743         * lib/strstr.c: ...and here.
56744         * modules/memmem (Files): Use it.
56745         * modules/strstr (Files): Likewise.
56746
56747         Avoid quadratic strstr implementations.
56748         * lib/strstr.c: New file.
56749         * m4/strstr.m4: Likewise.
56750         * modules/strstr: Likewise.
56751         * modules/strstr-tests: Likewise.
56752         * tests/test-strstr.c: Likewise.
56753         * lib/string.in.h (rpl_strstr): Declare.
56754         (memmem) [GNULIB_POSIXCHECK]: Document speed issue.
56755         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Support strstr.
56756         * modules/string (Makefile.am): Likewise.
56757         * MODULES.html.sh (string handling): Mention new module.
56758         * doc/functions/strstr.texi (strstr): Document the bug.
56759
56760 2008-01-10  Bruno Haible  <bruno@clisp.org>
56761
56762         * lib/relocatable.h (relocate): State whether result is freshly
56763         allocated or not.
56764         * lib/relocatable.c (relocate): Return a freshly allocated string
56765         instead of a pointer to a privately held string.
56766         Reported by Sylvain Beucler <beuc@gnu.org>.
56767
56768 2008-01-10  Colin Watson  <cjwatson@debian.org>
56769
56770         * lib/canonicalize-lgpl.c [!_LIBC]: Fix typo in #if directive:
56771         s/S_ISNLK/S_ISLNK/.
56772
56773 2008-01-09  Bruno Haible  <bruno@clisp.org>
56774
56775         * doc/functions/memmem.texi: Use the same structure as snprintf.texi
56776         and other files.
56777         * m4/memmem.m4 (gl_FUNC_MEMMEM): Say "guessing no" instead of "no"
56778         if it's only a guess.
56779         * modules/memmem: Simplify by depending on memmem-simple.
56780
56781 2008-01-09  Bruno Haible  <bruno@clisp.org>
56782
56783         Work around OpenBSD 4.0 tdelete() bug.
56784         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Also check tdelete's return value.
56785         * lib/search.in.h: If REPLACE_TSEARCH is 1, define tsearch etc. as
56786         macros and don't redefine the enum values.
56787         * m4/search_h.m4 (gl_SEARCH_H_DEFAULTS): Initialize REPLACE_TSEARCH.
56788         * modules/search (Makefile.am): Also substitute REPLACE_TSEARCH.
56789         * doc/functions/tdelete.texi: Document the OpenBSD 4.0 bug.
56790
56791 2008-01-09  Bruno Haible  <bruno@clisp.org>
56792
56793         * tests/test-wcwidth.c: Include <string.h> and localcharset.h.
56794         (main): Don't perform the tests if setlocale did not install a UTF-8
56795         locale. Needed on OpenBSD 4.0.
56796         * modules/wcwidth-tests (Depends-on): Add localcharset.
56797
56798 2008-01-09  Paul Eggert  <eggert@cs.ucla.edu>
56799
56800         gl_FUNC_ALLOCA no longer defines HAVE_ALLOCA_H unconditionally.
56801         See <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00149.html>.
56802         * NEWS: announce this.
56803         * m4/alloca.m4 (gl_FUNC_ALLOCA): Don't define HAVE_ALLOCA_H.
56804
56805 2008-01-09  Simon Josefsson  <simon@josefsson.org>
56806         and Eric Blake  <ebb9@byu.net>
56807
56808         Add memmem-simple module.
56809         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): New macro.
56810         (gl_FUNC_MEMMEM): Separate performance from presence checks.
56811         * modules/memmem-simple: New file.
56812         * modules/memmem (Description): Tweak.
56813         * MODULES.html.sh (string handling): Mention new module.
56814         * doc/functions/memmem.texi (memmem): Distinguish which flaws are
56815         addressed by memmem-simple.
56816         * NEWS: Document the difference.
56817
56818 2008-01-09  Eric Blake  <ebb9@byu.net>
56819
56820         Give gcc some memmem optimization hints.
56821         * lib/string.in.h (memmem, memrchr, strchrnul, strnlen, strpbrk)
56822         (strcasestr): Declare as pure.
56823         * modules/memmem (Maintainer): Claim my implementation.
56824
56825 2008-01-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
56826
56827         Support AIX 6.1 and higher.
56828         * build-aux/config.libpath: Likewise.
56829         * build-aux/config.rpath: Likewise.
56830
56831 2008-01-08  Jim Meyering  <meyering@redhat.com>
56832             Bruno Haible  <bruno@clisp.org>
56833
56834         * lib/printf-parse.c (PRINTF_PARSE): Handle a size specifier "q"
56835         on MacOS X and a size specifier "I64" on mingw. Needed for PRIdMAX.
56836         Reported by Peter Fales in
56837         <http://lists.gnu.org/archive/html/bug-coreutils/2007-12/msg00148.html>.
56838
56839 2008-01-08  Bruno Haible  <bruno@clisp.org>
56840
56841         * modules/unictype/category-of (Depends-on): Add
56842         unictype/category-none.
56843         * modules/unictype/category-and-tests (Depends-on): Add
56844         unictype/category-{L,N,Lu,Nd}.
56845         * modules/unictype/category-and-not-tests (Depends-on): Likewise.
56846         * modules/unictype/category-or-tests (Depends-on): Add
56847         unictype/category-{L,N}.
56848         * modules/unictype/category-name-tests (Depends-on): Add
56849         unictype/category-{Z,Nl}.
56850         Reported by Simon Josefsson.
56851
56852 2008-01-08  Bruno Haible  <bruno@clisp.org>
56853
56854         * lib/str-kmp.h (knuth_morris_pratt_unibyte): Document the calling
56855         convention better.
56856         * lib/mbsstr.c (knuth_morris_pratt_multibyte): Likewise.
56857         * lib/mbscasestr.c (knuth_morris_pratt_multibyte): Likewise.
56858         Reported by Peter Miller <millerp@canb.auug.org.au>.
56859
56860 2008-01-08  Eric Blake  <ebb9@byu.net>
56861
56862         Rewrite memmem to guarantee linear complexity without malloc.
56863         * lib/memmem.c (memmem): Use Two-Way rather than
56864         Knuth-Morris-Pratt, to allow O(1) space usage.
56865         (critical_factorization, two_way_short_needle)
56866         (two_way_long_needle): New functions.
56867         (knuth_morris_pratt): Delete.
56868         * modules/memmem (Depends-on): No longer need malloca or stdbool.
56869         Add stdint.
56870         * tests/test-memmem.c (main): Add tests for periodic needle and
56871         sublinear performance.
56872         * doc/functions/memmem.texi (memmem): Document other deficiencies
56873         in cygwin and older glibc.
56874
56875 2008-01-08  Bruno Haible  <bruno@clisp.org>
56876
56877         * modules/memmem-tests (Makefile.am): Remove TESTS_ENVIRONMENT
56878         augmentation.
56879
56880 2008-01-08  Mike Frysinger  <vapier@gentoo.org>
56881
56882         Add a configure time option: --disable-acl.
56883         * m4/acl.m4 (gl_FUNC_ACL): Wrap all ACL logic in a call to
56884         AC_ARG_ENABLE(acl).
56885
56886 2008-01-06  Simon Josefsson  <simon@josefsson.org>
56887
56888         * tests/test-localename.c: Don't include obsolete "setenv.h".
56889
56890         * modules/localename-tests (Depends-on): Need unsetenv.
56891
56892 2008-01-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
56893
56894         * DEPENDENCIES: Require Texinfo version 4.6 or newer.
56895
56896 2008-01-06  Colin Watson  <cjwatson@debian.org>
56897
56898         * users.txt: Add man-db.
56899
56900 2008-01-07  Bruno Haible  <bruno@clisp.org>
56901
56902         * doc/gnulib-intro.texi (Library vs Reusable Code): Restore the
56903         previous section name.
56904
56905 2008-01-07  Bruno Haible  <bruno@clisp.org>
56906
56907         * lib/progname.c (set_program_name): Don't strip off a leading
56908         "lt-" prefix outside a .libs directory.
56909         Suggested by Paul Eggert.
56910
56911 2008-01-01  Sylvain Beucler  <beuc@gnu.org>
56912             Bruno Haible  <bruno@clisp.org>
56913
56914         Improve memory cleanup in 'relocatable' module.
56915         * lib/relocatable.h (compute_curr_prefix): Change return type to
56916         'char *'.
56917         * lib/relocatable.c (compute_curr_prefix): Change return type to
56918         'char *'. Free curr_installdir after use.
56919         (relocate): Free curr_prefix_better after use.
56920         * lib/progreloc.c (prepare_relocate): Free curr_prefix after use.
56921
56922 2008-01-01  Bruno Haible  <bruno@clisp.org>
56923
56924         * tests/test-wcwidth.c (main): Relax test of U+2060. Avoids a test
56925         failure on older glibc systems.
56926         Reported by Peter Fales <psfales@alcatel-lucent.com>.
56927
56928 2008-01-05  Eric Blake  <ebb9@byu.net>
56929
56930         Avoid quadratic system memmem.
56931         * m4/memmem.m4 (gl_FUNC_MEMMEM): Check for quadratic memmem.
56932         Reported by Ralf Wildenhues.
56933
56934         Fix memmem test for mingw.
56935         * modules/memmem-tests (configure.ac): Check for alarm.
56936         * tests/test-memmem.c (main): Avoid alarm on platforms that lack
56937         it.
56938         * doc/functions/memmem.texi: New file.
56939         * doc/gnulib.texi (Function Substitutes): Add memmem.
56940         Reported by Bruno Haible.
56941
56942 2008-01-04  Bruno Haible  <bruno@clisp.org>
56943
56944         * m4/strcase.m4 (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP):
56945         Require gl_HEADER_STRINGS_H_DEFAULTS, not
56946         gl_HEADER_STRING_H_DEFAULTS.
56947
56948 2008-01-04  Eric Blake  <ebb9@byu.net>
56949
56950         Shorten duration of memmem test.
56951         * tests/test-memmem.c (main): Use alarm to declare failure if test
56952         is taking too long.
56953         Reported by Ralf Wildenhues.
56954
56955 2007-12-21  Simon Josefsson  <simon@josefsson.org>
56956
56957         * modules/relocatable-prog-wrapper (Depends-on): Add intprops and
56958         string, needed by strerror.
56959
56960 2008-01-03  Colin Watson  <cjwatson@debian.org>
56961             Bruno Haible  <bruno@clisp.org>
56962
56963         * doc/gnulib-tool.texi (Localization): New section.
56964
56965 2008-01-02  Bruno Haible  <bruno@clisp.org>
56966
56967         * lib/memmem.c (knuth_morris_pratt, memmem): Change all 'char *'
56968         variables to 'unsigned char *' type.
56969         Reported by Paul Eggert.
56970
56971 2008-01-02  Jim Meyering  <jim@meyering.net>
56972
56973         * lib/version-etc.c (COPYRIGHT_YEAR): Increase for new year.
56974
56975 2007-12-31  Jim Meyering  <jim@meyering.net>
56976
56977         Avoid use of private FTS type name.
56978         * lib/fts.c (fts_sort): Use FTSENT rather than "struct _ftsent".
56979
56980 2007-12-30  Karl Berry  <karl@gnu.org>
56981
56982         * doc/gnulib.texi (Library vs. Reusable Code): remove period, to
56983         work around defect in Texinfo and/or the standalone Info browser.
56984
56985 2007-12-30  Bruno Haible  <bruno@clisp.org>
56986
56987         Unify 5 copies of the KMP code.
56988         * lib/str-kmp.h: New file.
56989         * lib/c-strcasestr.c: Include str-kmp.h.
56990         (knuth_morris_pratt): Remove function.
56991         (c_strcasestr): Update.
56992         * lib/c-strstr.c: Include str-kmp.h.
56993         (knuth_morris_pratt): Remove function.
56994         (c_strcasestr): Update.
56995         * lib/mbscasestr.c: Include str-kmp.h.
56996         (knuth_morris_pratt_unibyte): Remove function.
56997         * lib/mbsstr.c: Include str-kmp.h.
56998         (knuth_morris_pratt_unibyte): Remove function.
56999         * lib/strcasestr.c: Include str-kmp.h.
57000         (knuth_morris_pratt): Remove function.
57001         (strcasestr): Update.
57002         * modules/c-strcasestr (Files): Add lib/str-kmp.h.
57003         * modules/c-strstr (Files): Likewise.
57004         * modules/mbscasestr (Files): Likewise.
57005         * modules/mbsstr (Files): Likewise.
57006         * modules/strcasestr (Files): Likewise.
57007         Suggested by Paul Eggert.
57008
57009 2007-12-30  Bruno Haible  <bruno@clisp.org>
57010
57011         * lib/xmalloca.c (xmmalloca): Don't define if HAVE_ALLOCA is not
57012         defined.
57013
57014 2007-12-30  Bruno Haible  <bruno@clisp.org>
57015
57016         * lib/xmalloca.h: Include xalloc.h.
57017         (xnmalloca): New macro.
57018
57019 2007-12-30  Bruno Haible  <bruno@clisp.org>
57020
57021         * lib/malloca.h (nmalloca): New macro.
57022         * lib/c-strcasestr.c (knuth_morris_pratt): Use it.
57023         * lib/c-strstr.c (knuth_morris_pratt): Likewise.
57024         * lib/mbscasestr.c (knuth_morris_pratt_unibyte,
57025         knuth_morris_pratt_multibyte): Likewise.
57026         * lib/mbsstr.c (knuth_morris_pratt_unibyte,
57027         knuth_morris_pratt_multibyte): Likewise.
57028         * lib/memmem.c (knuth_morris_pratt): Likewise.
57029         * lib/strcasestr.c (knuth_morris_pratt): Likewise.
57030
57031 2007-12-25  Bruno Haible  <bruno@clisp.org>
57032
57033         Fixup after 2007-10-17 commit. Ensure that 'glob' stays under LGPLv2+.
57034         * lib/glob.c: Don't include openat.h.
57035         (link_exists2_p): Add back the code that deals with the
57036         !GLOB_ALTDIRFUNC case.
57037         (link_exists_p) [!_LIBC && !HAVE_FSTATAT]: Just call link_exists2_p and
57038         let it do the filename concatenation.
57039         * m4/glob.m4 (gl_PREREQ_GLOB): Add check for fstatat.
57040         * modules/glob (Depends-on): Remove openat.
57041
57042 2007-12-31  Bruno Haible  <bruno@clisp.org>
57043
57044         * modules/dirfd (License): Change to LGPLv2+.
57045         Approved by Jim Meyering.
57046
57047 2007-12-29  Paul Eggert  <eggert@cs.ucla.edu>
57048
57049         * lib/memmem.c (knuth_morris_pratt): Check for size_t overflow
57050         when multiplying M by sizeof (size_t).
57051
57052 2007-12-10  Martin Lambers  <marlam@marlam.de>
57053
57054         Override getpagesize on mingw.
57055         * lib/getpagesize.c: New file.
57056         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Enable replacement on mingw.
57057         * modules/getpagesize (Files): Add lib/getpagesize.c.
57058         * lib/unistd.in.h (getpagesize): Declare if we are using a replacement.
57059         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
57060         REPLACE_GETPAGESIZE.
57061         * modules/unistd (Makefile.am): Substitute REPLACE_GETPAGESIZE.
57062
57063 2007-12-25  Bruno Haible  <bruno@clisp.org>
57064
57065         * modules/localcharset (Notice): New field.
57066         (configure.ac): Define LOCALCHARSET_TESTS_ENVIRONMENT.
57067         Suggested by Ben Pfaff <blp@cs.stanford.edu>.
57068
57069 2007-12-25  Paul Eggert  <eggert@cs.ucla.edu>
57070             Bruno Haible  <bruno@clisp.org>
57071
57072         Avoid using the syntax symbol() in formatted documentation.
57073         * MODULES.html.sh (func_module): When replacing symbol() with a
57074         hyperlink, remove the parentheses. Show an error if some remain.
57075         Recognize and render the '...' syntax.
57076         * doc/alloca-opt.texi: Remove parentheses from symbol reference.
57077         Rework. Add paragraph about GCC's inlining.
57078         * doc/alloca.texi: Likewise.
57079         * doc/error.texi: Remove parentheses from symbol reference.
57080         * doc/gnulib-intro.texi: Likewise.
57081         * doc/gnulib.texi (alloca, alloca-opt): New nodes.
57082         * modules/fnmatch (Description): Reword to say "the ... function".
57083         * modules/full-read (Description): Likewise.
57084         * modules/full-write (Description): Likewise.
57085         * modules/safe-read (Description): Likewise.
57086         * modules/safe-write (Description): Likewise.
57087         * modules/strchrnul (Description): Likewise.
57088         * modules/trim (Description): Likewise.
57089         * modules/error (Description): Remove parentheses from symbol
57090         references.
57091         * modules/verror (Description): Likewise.
57092         Reported by Karl Berry.
57093
57094 2007-12-25  Bruno Haible  <bruno@clisp.org>
57095
57096         Fixup after 2007-10-16 commit.
57097         * lib/glob.c (glob_in_dir): Don't use ISO C99 syntax.
57098
57099 2007-12-24  Bruno Haible  <bruno@clisp.org>
57100
57101         Make --enable-relocatable work with DESTDIR.
57102         * build-aux/install-reloc: Accept another argument 'destdir'. Use it
57103         to compute installdir from destprog.
57104         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): In INSTALL_PROGRAM_ENV,
57105         also set the RELOC_DESTDIR variable.
57106         Reported by Левашев Иван <octagram@bluebottle.com>.
57107
57108 2007-12-24  Bruno Haible  <bruno@clisp.org>
57109
57110         Fix link error due to xalloc_die().
57111         * lib/progreloc.c: When NO_XMALLOC is defined, use areadlink instead
57112         of xreadlink.
57113         * lib/relocwrapper.c: Update comments.
57114         * build-aux/install-reloc: Remove xreadlink.c from file list.
57115         * modules/relocatable-prog-wrapper (Files): Remove xreadlink.h and
57116         xreadlink.c.
57117         Reported by Левашев Иван <octagram@bluebottle.com>.
57118
57119 2007-12-24  Bruno Haible  <bruno@clisp.org>
57120
57121         Split setenv module into setenv and unsetenv. Get rid of setenv.h.
57122         * lib/setenv.h: Remove file.
57123         * lib/stdlib.in.h (setenv, unsetenv): New declarations, moved here from
57124         lib/setenv.h.
57125         * modules/setenv (Files): Remove lib/setenv.h, lib/unsetenv.c.
57126         (Depends-on): Add stdlib.
57127         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR. Don't invoke
57128         gl_FUNC_UNSETENV.
57129         (Include): Replace setenv.h with <stdlib.h>.
57130         * modules/unsetenv: New file.
57131         * lib/setenv.c: Include <stdlib.h> first, after alloca.h.
57132         * lib/unsetenv.c: Include <stdlib.h> first.
57133         * m4/setenv.m4 (gl_FUNC_SETENV, gl_FUNC_SETENV_SEPARATE): Require
57134         gl_STDLIB_H_DEFAULTS. Conditionally set HAVE_SETENV to 0.
57135         (gl_FUNC_UNSETENV): Require gl_STDLIB_H_DEFAULTS. Conditionally set
57136         HAVE_UNSETENV to 0. Set VOID_UNSETENV as an AC_SUBSTed variable.
57137         * modules/stdlib (Makefile.am): Substitute also GNULIB_SETENV,
57138         HAVE_SETENV, GNULIB_UNSETENV, HAVE_UNSETENV, VOID_UNSETENV.
57139         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_SETENV,
57140         HAVE_SETENV, GNULIB_UNSETENV, HAVE_UNSETENV, VOID_UNSETENV.
57141         * doc/functions/unsetenv.texi: Update.
57142         * modules/xsetenv (Depends-on): Add unsetenv.
57143         * modules/getdate (Depends-on): Likewise.
57144         * lib/xsetenv.h: Include <stdlib.h> instead of setenv.h.
57145         * lib/xsetenv.c: Don't include setenv.h.
57146         * lib/getdate.y: Likewise.
57147         * lib/relocwrapper.c: Likewise.
57148         * modules/relocatable-prog-wrapper (Files): Remove lib/setenv.h.
57149         (Depends-on): Add stdlib.
57150         * NEWS: Mention the changes.
57151         Reported by Левашев Иван <octagram@bluebottle.com>.
57152
57153 2007-12-23  Bruno Haible  <bruno@clisp.org>
57154
57155         * lib/memmem.c (memmem): Use lowercase variable names. Tab
57156         indentation.
57157
57158 2007-12-23  Bruno Haible  <bruno@clisp.org>
57159
57160         * lib/c-strcasestr.c: Add more comments.
57161         * lib/c-strstr.c: Likewise.
57162         * lib/mbscasestr.c: Likewise.
57163         * lib/mbsstr.c: Likewise.
57164         * lib/strcasestr.c: Likewise.
57165         * lib/memmem.c: Likewise.
57166
57167 2007-12-23  Bruno Haible  <bruno@clisp.org>
57168
57169         * tests/test-memmem.c: Include <string.h> first.
57170
57171 2007-12-22  Bruno Haible  <bruno@clisp.org>
57172
57173         * gnulib-tool (func_create_testdir): Change $auxdir while generating
57174         the contents of $testsbase.
57175         Reported by Ralf Wildenhues.
57176
57177 2007-12-22  Bruno Haible  <bruno@clisp.org>
57178
57179         * gnulib-tool (func_emit_tests_Makefile_am): Replace local_ldadd with
57180         two variables local_ldadd_before, local_ldadd_last.
57181
57182 2007-12-20  Eric Blake  <ebb9@byu.net>
57183
57184         Work around circular library issue when cross-compiling.
57185         * lib/progname.c (set_program_name): Use strncmp, not memcmp, so
57186         that progname.o does not need to pull in rpl_memcmp.
57187
57188 2007-12-19  Eric Blake  <ebb9@byu.net>
57189
57190         Fix memmem to avoid O(n^2) worst-case complexity.
57191         * lib/memmem.c (knuth_morris_pratt): New function.
57192         (memmem): Use it if first few naive iterations fail.
57193         * m4/memmem.m4 (gl_FUNC_MEMMEM): Detect cygwin bug.
57194         * modules/memcmp (License): Set to LGPLv2+, not LGPL.
57195         * modules/memchr (License): Likewise.
57196         * modules/memmem (Depends-on): Add memcmp, memchr, stdbool, and
57197         malloca.
57198         * tests/test-memmem.c: Rewrite, borrowing ideas from
57199         test-mbsstr1.c; the old version wouldn't even compile!
57200         * modules/memmem-tests: New file.
57201         * lib/string.in.h (rpl_memmem): Add declaration.
57202         * modules/string (Makefile.am): Substitute REPLACE_MEMMEM.
57203         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Default for
57204         REPLACE_MEMMEM.
57205
57206 2007-12-18  Paul Eggert  <eggert@cs.ucla.edu>
57207
57208         Fix problem with _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H on VMS.
57209         * lib/stdint.in.h (_GL_JUST_INCLUDE_SYSTEM_INTTYPES_H): Define
57210         before any system include files, and undef after them all.  This
57211         should fix a problem on VMS reported by John E. Malmberg in
57212         <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00118.html>.
57213
57214 2007-12-17  Eric Blake  <ebb9@byu.net>
57215
57216         Revert addition of verify, for BSD/OS.
57217         * lib/fseeko.c [!HAVE_FSEEKO]: Allow off_t > long, even though it
57218         can't handle large files, for the sake of obsolete platforms.
57219         * modules/fseeko (Depends-on): Remove verify.
57220         * doc/functions/fseeko.texi (fseeko): Document BSD/OS limitation.
57221         * doc/functions/ftello.texi (ftello): Likewise.
57222         * doc/functions/fgetpos.texi (fgetpos): Likewise.
57223         Reported by Larry Jones.
57224
57225 2007-12-17  Petr Salinger  <Petr.Salinger@seznam.cz>
57226
57227         getcwd.c: Use a more readable witness: HAVE_OPENAT_SUPPORT
57228         * lib/getcwd.c: Define and use HAVE_OPENAT_SUPPORT, in place of AT_FDCWD.
57229
57230 2007-12-17  Jim Meyering  <meyering@redhat.com>
57231
57232         Port to GNU/kFreeBSD - FreeBSD kernel + GNU libc,
57233         which has no openat syscall, yet <fcntl.h> does define AT_FDCWD.
57234         * lib/getcwd.c: Undef AT_FDCWD if there is no openat function.
57235         * modules/getcwd (Depends-on): Add openat.
57236         Reported by Petr Salinger.
57237
57238 2007-12-17  Bruno Haible  <bruno@clisp.org>
57239
57240         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Use GL_NOCRASH to
57241         avoid a segmentation fault of the configure test on x86_64 systems.
57242
57243 2007-12-15  Jim Meyering  <meyering@redhat.com>
57244
57245         * build-aux/gnupload (GPG): Don't hard-code absolute name of gpg binary.
57246
57247 2007-12-13  Eric Blake  <ebb9@byu.net>
57248
57249         Another fseek test.
57250         * tests/test-fseek.c (main): Also test ungetc handling.
57251         * tests/test-fseeko.c (main): Likewise.
57252         * modules/fseeko (Depends-on): Add verify.
57253         * lib/fseeko.c [!HAVE_FSEEKO]: Verify that off_t is not too
57254         large.
57255         Reported by Larry Jones.
57256
57257         Fix fseeko on mingw.
57258         * lib/fseeko.c (rpl_fseeko) [_IOERR]: Reset EOF flag on successful
57259         seek.
57260
57261         Beef up fseek tests.
57262         * tests/test-fseek.c (main): Also test eof handling.
57263         * tests/test-fseeko.c (main): Likewise.
57264         Reported by Larry Jones.
57265
57266 2007-12-13  Larry Jones  <lawrence.jones@siemens.com>  (tiny change)
57267
57268         Fix fseeko on BSD-based platforms.
57269         * lib/fseeko.c (rpl_fseeko) [__sferror]: Reset EOF flag on
57270         successful seek.
57271
57272 2007-12-12  Eric Blake  <ebb9@byu.net>
57273
57274         Allow circular dependency of separate libtests.a
57275         * gnulib-tool (func_emit_tests_Makefile_am): Add AM_LIBTOOLFLAGS
57276         when use_libtests.
57277
57278 2007-12-11  Eric Blake  <ebb9@byu.net>
57279
57280         Fix bug with -0.0L in previous patch.
57281         * lib/isnan.c (rpl_isnanl): Make robust to -0.0L and pad bits.
57282         * tests/test-isnan.c (main): Also test on zeroes.
57283         * tests/test-isnanf.c (main): Likewise.
57284         * tests/test-isnanl.h (main): Likewise.
57285
57286         Detect pseudo-denormals on x86 even when cross-compiling.
57287         * lib/isnan.c (rpl_isnanl) [!KNOWN_EXPBIT0_LOCATION
57288         && USE_LONG_DOUBLE && x86]: Add one more check to filter out
57289         invalid bit patterns that happen to satisfy ==.
57290
57291         Avoid link failures with separate libtests.a.
57292         * gnulib-tool (func_emit_tests_Makefile_am): Also list local_ldadd
57293         last, to satisfy circular dependencies.
57294
57295 2007-12-11  Eric Blake  <ebb9@byu.net>
57296         and Bruno Haible  <bruno@clisp.org>
57297
57298         Fix OpenBSD 4.0 <float.h> handling of long double.
57299         * m4/float_h.m4 (gl_FLOAT_H): Also claim OpenBSD is broken.
57300         * lib/float.in.h [__OpenBSD__]: Add fixes for OpenBSD.
57301         * doc/headers/float.texi (float.h): Document OpenBSD bug.
57302
57303 2007-12-11  Jim Meyering  <meyering@redhat.com>
57304
57305         * users.txt: Add libvirt.
57306
57307         Support versions of autoconf prior to 2.59c.
57308         * gnulib-tool (func_emit_initmacro_done): Define m4_foreach_w
57309         if it is not already defined.
57310
57311 2007-12-09  Bruno Haible  <bruno@clisp.org>
57312
57313         Let 'gnulib-tool --import' collect sources needed for the tests in
57314         tests/ rather than in lib/.
57315         * gnulib-tool (func_emit_tests_Makefile_am): Accept use_libtests
57316         argument. If true, add rules to generate libtests.a, and put libtests.a
57317         into $(LDADD). Consider source files in subdirectories and set
57318         uses_subdirs.
57319         (func_emit_initmacro_start, func_emit_initmacro_end,
57320         func_emit_initmacro_done): Pass all arguments explicitly.
57321         (func_import): Determine two module lists main_modules,
57322         testsrelated_modules. Determine use_libtests. Determine two variables
57323         sed_transform_main_lib_file, sed_transform_testsrelated_lib_file
57324         instead of just sed_transform_lib_file. Determine two variables
57325         main_files and testsrelated_files. Compute 'files' as the union of
57326         both. Adjust sed_rewrite_old_files, sed_rewrite_new_files,
57327         func_add_or_update. In the generated gnulib-comp.m4, collect the
57328         object files for tests/ in different variables than those for lib/.
57329         Substitute LIBTESTS_LIBDEPS.
57330         (func_create_testdir): Combine the uses_subdirs results from
57331         func_emit_lib_Makefile_am and from func_emit_tests_Makefile_am.
57332
57333 2007-12-09  Bruno Haible  <bruno@clisp.org>
57334
57335         * gnulib-tool (func_emit_tests_Makefile_am): Expand references to
57336         the build-aux directory.
57337
57338 2007-12-09  Bruno Haible  <bruno@clisp.org>
57339
57340         * gnulib-tool (func_emit_tests_Makefile_am): Remove redundant code
57341         introduced on 2006-09-09.
57342
57343 2007-12-07  Jim Meyering  <meyering@redhat.com>
57344
57345         Let these macros work also with autoconf-2.59.
57346         * m4/getline.m4 (gl_FUNC_GETLINE): Require only autoconf-2.59.  2.60
57347         is not needed, since gnulib now permits use of AC_CHECK_DECLS_ONCE.
57348         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
57349
57350 2007-12-06  Jim Meyering  <meyering@redhat.com>
57351
57352         Avoid a configure-time syntax error in gl_FUNC_ACL.
57353         * m4/acl.m4 (gl_FUNC_ACL): Be careful to check for the acl_trivial
57354         function in each branch, before testing the cache variable.
57355
57356 2007-12-04  Eric Blake  <ebb9@byu.net>
57357
57358         Make scripts executable.
57359         * build-aux/config.guess: Add execute permissions.
57360         * build-aux/config.sub: Likewise.
57361         * build-aux/gendocs.sh: Likewise.
57362
57363         Fix frexp on mingw.
57364         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Detect mingw bug when
57365         cross-compiling.
57366         * doc/functions/frexp.texi (frexp): Document the bug.
57367
57368         Make cygwin fseeko check more reliable.
57369         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET) [__CYGWIN__]: Use cygwin
57370         version numbers, rather than unrelated feature check.
57371         * doc/functions/fseeko.texi (fseeko): Tweak failure report.
57372         * doc/functions/ftello.texi (ftello): Likewise.
57373         Reported by Bruno Haible.
57374
57375         * m4/strerror.m4: Bump version number.
57376
57377 2007-12-03  Bruno Haible  <bruno@clisp.org>
57378
57379         * doc/functions/mprotect.texi: Mention the mingw problem.
57380
57381 2007-12-03  Eric Blake  <ebb9@byu.net>
57382
57383         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Ensure
57384         REPLACE_STRERROR is initialized before this macro.
57385
57386 2007-12-03  Paul Eggert  <eggert@cs.ucla.edu>
57387
57388         Add support for Solaris 10 ACLs.  Also, ACLs are Gnulib, not Autoconf.
57389         * modules/acl (configure.ac): Rename AC_FUNC_ACL to gl_FUNC_ACL.
57390         * m4/acl.m4 (gl_FUNC_ACL): Renamed from AC_FUNC_ACL.  On Solaris,
57391         put -lsec in even for programs other than 'ls'.  This fixes a problem
57392         for gettext reported by Bruno Haible in
57393         <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00007.html>.
57394         * lib/acl.c (copy_acl, qset_acl) [USE_ACL && defined ACL_NO_TRIVIAL]:
57395         Add support for Solaris 10.  This isn't efficient, but should get the
57396         job done for now.
57397
57398 2007-12-03  James Youngman  <jay@gnu.org>
57399
57400         * doc/regexprops-generic.texi: change "an close-group" to "a
57401         close-group" and "illegal" to "not allowed".
57402
57403 2007-11-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
57404
57405         * lib/unictype/pr_byname.c: Include unictype/pr_byname.h instead of
57406         pr_byname.h. Needed for the rare case when the maintainer has done
57407         "make maintainer-clean" in the source directory and then attempts a
57408         build outside the source directory.
57409         * lib/unictype/scripts.c: Include unictype/scripts_byname.h instead of
57410         scripts_byname.h.
57411
57412 2007-12-02  Martin Lambers <marlam@marlam.de>
57413             Bruno Haible  <bruno@clisp.org>
57414
57415         * lib/getpagesize.h: Remove file.
57416         * lib/unistd.in.h: Include declaration of getpagesize here.
57417         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Renamed from gl_GETPAGESIZE.
57418         Invoke gl_UNISTD_H_DEFAULTS. Set HAVE_GETPAGESIZE, HAVE_OS_H,
57419         HAVE_SYS_PARAM_H.
57420         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETPAGESIZE,
57421         HAVE_GETPAGESIZE, HAVE_OS_H, HAVE_SYS_PARAM_H.
57422         * modules/getpagesize (Files): Remove lib/getpagesize.h.
57423         (Depends-on): Add unistd.
57424         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
57425         (Include): Use <unistd.h> instead of getpagesize.h.
57426         * modules/unistd (Makefile.am): Substitute also GNULIB_GETPAGESIZE,
57427         HAVE_GETPAGESIZE, HAVE_OS_H, HAVE_SYS_PARAM_H.
57428         * m4/pagealign_alloc.m4 (gl_PREREQ_PAGEALIGN_ALLOC): Remove
57429         gl_GETPAGESIZE invocation, already handled by module dependency.
57430         * lib/pagealign_alloc.c: Don't include getpagesize.h.
57431
57432 2007-12-02  Bruno Haible  <bruno@clisp.org>
57433
57434         * modules/strings-tests: New file.
57435         * tests/test-strings.c: New file.
57436
57437         Move declarations of str{,n}casecmp from <string.h> to <strings.h>.
57438         * lib/strings.in.h: New file.
57439         * lib/string.in.h (strcasecmp, strncasecmp): Remove declarations.
57440         * m4/strings_h.m4: New file.
57441         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Remove initialization
57442         of HAVE_STRCASECMP, HAVE_DECL_STRNCASECMP.
57443         * modules/strings: New file.
57444         * modules/string (Makefile.am): Update.
57445         * modules/strcase (Include): Mention <strings.h>, not <string.h>.
57446         Reported by Karl Berry.
57447
57448 2007-12-01  Eric Blake  <ebb9@byu.net>
57449
57450         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET) [__CYGWIN__]: Rewrite to
57451         accomodate fix in cygwin 1.5.25.
57452
57453 2007-12-01  Jim Meyering  <meyering@redhat.com>
57454
57455         Fix a bug that inhibited much of the utf8-optimization in regcomp.c.
57456         * lib/regcomp.c (optimize_utf8): Fix a typo, s/idx/ctx_type/,
57457         that would inhibit utf8-optimization of a regexp containing line-
57458         or buffer-anchors, e.g., `^', `$'.
57459
57460 2007-11-30  Bruno Haible  <bruno@clisp.org>
57461
57462         * lib/lock.h (gl_recursive_lock_init) [PTHREAD &&
57463         PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: Call
57464         glthread_recursive_lock_init.
57465         * lib/lock.c (glthread_recursive_lock_init)
57466         [PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: New function.
57467         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
57468
57469 2007-11-28  Paul Eggert  <eggert@cs.ucla.edu>
57470
57471         New function qset_acl, like set_acl but with syscall semantics.
57472         * lib/acl.h (qset_acl): New decl.
57473         * lib/acl.c (qset_acl): New function.
57474         (set_acl): Use new function.  Use more-consistent diagnostics.
57475
57476 2007-11-28  Jim Meyering  <meyering@redhat.com>
57477
57478         * modules/physmem (License): Change from GPL to LGPLv2+.
57479
57480 2007-11-26  Bruno Haible  <bruno@clisp.org>
57481
57482         * lib/vasnprintf.c (decode_long_double): Don't abort if the
57483         'long double' type has excess precision.
57484         Reported by Jim Meyering in
57485         <http://lists.gnu.org/archive/html/bug-gnulib/2007-11/msg00120.html>.
57486
57487 2007-11-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
57488
57489         * doc/fdl.texi, doc/gpl-3.0.texi, doc/lgpl-3.0.texi:
57490         Sync from <http://gnu.org/licenses>.
57491         * modules/agpl-3.0, doc/agpl-3.0.texi: New module,
57492         with license text from same location.
57493         * doc/maintain.texi, doc/standards.texi:  Sync from
57494         <http://savannah.gnu.org/projects/gnustandards>.
57495
57496 2007-11-22  Ondřej Vašík  <ovasik@redhat.com>
57497         and Jim Meyering  <meyering@redhat.com>
57498
57499         Adjust getdate' grammar to accept a slightly more regular language.
57500         E.g., accept "YYYYMMDD +N days" as well as "YYYYMMDD N days".
57501         Before, the former was rejected.
57502         * lib/getdate.y (digits_to_date_time): New function, factored
57503         out of ...
57504         (number): ...here.  Just call digits_to_date_time.
57505         (hybrid): New non-terminal to handle an <unsigned number,
57506         signed relative offset> sequence consistently.
57507
57508 2007-11-18  Jim Meyering  <meyering@redhat.com>
57509
57510         Pull my changes from coreutils:
57511         bootstrap: fix typo to enable use of $gnulib_tool_option_extras.
57512         * build-aux/bootstrap (gnulib_tool_options): Add a space before the
57513         use of $gnulib_tool_option_extras, so that it's separated from the
57514         preceding argument.
57515
57516         Fix bootstrap failure to handle files like lib/uniwidth/cjk.h.
57517         * build-aux/bootstrap (cp_mark_as_generated): Create any required
57518         parent destination directories before copying a file into place.
57519
57520 2007-11-18  Sergey Poznyakoff  <gray@gnu.org.ua>
57521
57522         bootstrap: work also with 4-argument variant of AC_INIT
57523         * build-aux/bootstrap (gnulib_extra_files): Adjust sed command.
57524
57525 2007-11-16  Paul Eggert  <eggert@cs.ucla.edu>
57526
57527         Port test-getaddrinfo to Solaris.
57528         Problem reported by Bruno Haible in
57529         <http://lists.gnu.org/archive/html/bug-gnulib/2007-03/msg00171.html>.
57530         * tests/test-getaddrinfo.c (simple): Add a comment asking for an
57531         explanation of setting 'hints'.
57532         Don't reject an implementation merely because it returns EAI_SERVICE.
57533         (EAI_SERVICE): Define to 0 if not defined.
57534
57535 2007-11-15  Paul Eggert  <eggert@cs.ucla.edu>
57536
57537         The license of gnu-make and posix-shell is now "GPLed build tool".
57538         * modules/gnu-make (License): Likewise.
57539         * modules/posix-shell (License): Likewise.
57540
57541         New module posix-shell, for determining a POSIX shell
57542         or perhaps something that is close enough to a POSIX shell.
57543         * m4/posix-shell.m4: New file.
57544         * modules/posix-shell: New file.
57545
57546         * MODULES.html.sh: Mention new module.
57547
57548         New module gnu-make, for determining whether we're using GNU Make.
57549         * m4/gnu-make.m4: New file.
57550         * modules/gnu-make: New file.
57551         * MODULES.html.sh: Mention new module.
57552
57553 2007-11-14  Jim Meyering  <meyering@redhat.com>
57554
57555         Define a sometimes-link-required function using ARGMATCH_DIE_DECL.
57556         * tests/test-argmatch.c (ARGMATCH_DIE_DECL): When defined,
57557         use this macro to create a function _definition_.
57558         Remove useless "#undef ARGMATCH_DIE".
57559
57560 2007-11-14  Bruno Haible  <bruno@clisp.org>
57561
57562         * lib/config.charset: Update for OpenBSD 4.1.
57563         Reported and helped by Ben Pfaff <blp@cs.stanford.edu>.
57564
57565 2007-11-12  Paul Eggert  <eggert@cs.ucla.edu>
57566
57567         Document 64-bit #if problems in stdint.texi.
57568         * doc/headers/stdint.texi (stdint.h): Mention problems with
57569         64-bit-#if, and how to work around them.
57570
57571         Don't insist on 'long long int' support in the preprocessor.  It
57572         breaks too many things.  For example, PRIdMAX still uses a 'long
57573         long int' format with the latest Sun compiler, even though
57574         HAVE_LONG_LONG_INT isn't defined due to that compiler's
57575         preprocessor problem.  This causes the latest coreutils to dump
57576         core on Solaris 10 sparc with the Sun C compiler.
57577         Instead, fix the 2007-10-16 problem in a different way, by evaluating
57578         the troublesome expressions at configure-time, not at #if-time.
57579         * m4/longlong.m4 (_AC_TYPE_LONG_LONG_SNIPPET): Don't test the
57580         preprocessor.
57581         * m4/inttypes.m4 (gl_INTTYPES_H): Move the #if checks into
57582         compile-time C checks, done at 'configure'-time.
57583         (gl_INTTYPES_CHECK_LONG_LONG_INT_CONDITION): New macro.
57584         * modules/inttypes (Makefile): Substitute the new symbols that
57585         gl_INTTYPES_H now generates.
57586         * lib/inttypes.in.h: Don't use constants wider than 'long' in #if.
57587
57588 2007-11-12  Bruno Haible  <bruno@clisp.org>
57589
57590         Tests for Unicode character classification functions.
57591
57592         * modules/unictype/bidicategory-byname-tests: New file.
57593         * modules/unictype/bidicategory-name-tests: New file.
57594         * modules/unictype/bidicategory-of-tests: New file.
57595         * modules/unictype/bidicategory-test-tests: New file.
57596         * modules/unictype/block-list-tests: New file.
57597         * modules/unictype/block-of-tests: New file.
57598         * modules/unictype/block-test-tests: New file.
57599         * modules/unictype/category-C-tests: New file.
57600         * modules/unictype/category-Cc-tests: New file.
57601         * modules/unictype/category-Cf-tests: New file.
57602         * modules/unictype/category-Cn-tests: New file.
57603         * modules/unictype/category-Co-tests: New file.
57604         * modules/unictype/category-Cs-tests: New file.
57605         * modules/unictype/category-L-tests: New file.
57606         * modules/unictype/category-Ll-tests: New file.
57607         * modules/unictype/category-Lm-tests: New file.
57608         * modules/unictype/category-Lo-tests: New file.
57609         * modules/unictype/category-Lt-tests: New file.
57610         * modules/unictype/category-Lu-tests: New file.
57611         * modules/unictype/category-M-tests: New file.
57612         * modules/unictype/category-Mc-tests: New file.
57613         * modules/unictype/category-Me-tests: New file.
57614         * modules/unictype/category-Mn-tests: New file.
57615         * modules/unictype/category-N-tests: New file.
57616         * modules/unictype/category-Nd-tests: New file.
57617         * modules/unictype/category-Nl-tests: New file.
57618         * modules/unictype/category-No-tests: New file.
57619         * modules/unictype/category-P-tests: New file.
57620         * modules/unictype/category-Pc-tests: New file.
57621         * modules/unictype/category-Pd-tests: New file.
57622         * modules/unictype/category-Pe-tests: New file.
57623         * modules/unictype/category-Pf-tests: New file.
57624         * modules/unictype/category-Pi-tests: New file.
57625         * modules/unictype/category-Po-tests: New file.
57626         * modules/unictype/category-Ps-tests: New file.
57627         * modules/unictype/category-S-tests: New file.
57628         * modules/unictype/category-Sc-tests: New file.
57629         * modules/unictype/category-Sk-tests: New file.
57630         * modules/unictype/category-Sm-tests: New file.
57631         * modules/unictype/category-So-tests: New file.
57632         * modules/unictype/category-Z-tests: New file.
57633         * modules/unictype/category-Zl-tests: New file.
57634         * modules/unictype/category-Zp-tests: New file.
57635         * modules/unictype/category-Zs-tests: New file.
57636         * modules/unictype/category-and-not-tests: New file.
57637         * modules/unictype/category-and-tests: New file.
57638         * modules/unictype/category-byname-tests: New file.
57639         * modules/unictype/category-name-tests: New file.
57640         * modules/unictype/category-none-tests: New file.
57641         * modules/unictype/category-of-tests: New file.
57642         * modules/unictype/category-or-tests: New file.
57643         * modules/unictype/category-test-withtable-tests: New file.
57644         * modules/unictype/combining-class-tests: New file.
57645         * modules/unictype/ctype-alnum-tests: New file.
57646         * modules/unictype/ctype-alpha-tests: New file.
57647         * modules/unictype/ctype-blank-tests: New file.
57648         * modules/unictype/ctype-cntrl-tests: New file.
57649         * modules/unictype/ctype-digit-tests: New file.
57650         * modules/unictype/ctype-graph-tests: New file.
57651         * modules/unictype/ctype-lower-tests: New file.
57652         * modules/unictype/ctype-print-tests: New file.
57653         * modules/unictype/ctype-punct-tests: New file.
57654         * modules/unictype/ctype-space-tests: New file.
57655         * modules/unictype/ctype-upper-tests: New file.
57656         * modules/unictype/ctype-xdigit-tests: New file.
57657         * modules/unictype/decimal-digit-tests: New file.
57658         * modules/unictype/digit-tests: New file.
57659         * modules/unictype/mirror-tests: New file.
57660         * modules/unictype/numeric-tests: New file.
57661         * modules/unictype/property-alphabetic-tests: New file.
57662         * modules/unictype/property-ascii-hex-digit-tests: New file.
57663         * modules/unictype/property-bidi-arabic-digit-tests: New file.
57664         * modules/unictype/property-bidi-arabic-right-to-left-tests: New file.
57665         * modules/unictype/property-bidi-block-separator-tests: New file.
57666         * modules/unictype/property-bidi-boundary-neutral-tests: New file.
57667         * modules/unictype/property-bidi-common-separator-tests: New file.
57668         * modules/unictype/property-bidi-control-tests: New file.
57669         * modules/unictype/property-bidi-embedding-or-override-tests: New file.
57670         * modules/unictype/property-bidi-eur-num-separator-tests: New file.
57671         * modules/unictype/property-bidi-eur-num-terminator-tests: New file.
57672         * modules/unictype/property-bidi-european-digit-tests: New file.
57673         * modules/unictype/property-bidi-hebrew-right-to-left-tests: New file.
57674         * modules/unictype/property-bidi-left-to-right-tests: New file.
57675         * modules/unictype/property-bidi-non-spacing-mark-tests: New file.
57676         * modules/unictype/property-bidi-other-neutral-tests: New file.
57677         * modules/unictype/property-bidi-pdf-tests: New file.
57678         * modules/unictype/property-bidi-segment-separator-tests: New file.
57679         * modules/unictype/property-bidi-whitespace-tests: New file.
57680         * modules/unictype/property-byname-tests: New file.
57681         * modules/unictype/property-combining-tests: New file.
57682         * modules/unictype/property-composite-tests: New file.
57683         * modules/unictype/property-currency-symbol-tests: New file.
57684         * modules/unictype/property-dash-tests: New file.
57685         * modules/unictype/property-decimal-digit-tests: New file.
57686         * modules/unictype/property-default-ignorable-code-point-tests: New file.
57687         * modules/unictype/property-deprecated-tests: New file.
57688         * modules/unictype/property-diacritic-tests: New file.
57689         * modules/unictype/property-extender-tests: New file.
57690         * modules/unictype/property-format-control-tests: New file.
57691         * modules/unictype/property-grapheme-base-tests: New file.
57692         * modules/unictype/property-grapheme-extend-tests: New file.
57693         * modules/unictype/property-grapheme-link-tests: New file.
57694         * modules/unictype/property-hex-digit-tests: New file.
57695         * modules/unictype/property-hyphen-tests: New file.
57696         * modules/unictype/property-id-continue-tests: New file.
57697         * modules/unictype/property-id-start-tests: New file.
57698         * modules/unictype/property-ideographic-tests: New file.
57699         * modules/unictype/property-ids-binary-operator-tests: New file.
57700         * modules/unictype/property-ids-trinary-operator-tests: New file.
57701         * modules/unictype/property-ignorable-control-tests: New file.
57702         * modules/unictype/property-iso-control-tests: New file.
57703         * modules/unictype/property-join-control-tests: New file.
57704         * modules/unictype/property-left-of-pair-tests: New file.
57705         * modules/unictype/property-line-separator-tests: New file.
57706         * modules/unictype/property-logical-order-exception-tests: New file.
57707         * modules/unictype/property-lowercase-tests: New file.
57708         * modules/unictype/property-math-tests: New file.
57709         * modules/unictype/property-non-break-tests: New file.
57710         * modules/unictype/property-not-a-character-tests: New file.
57711         * modules/unictype/property-numeric-tests: New file.
57712         * modules/unictype/property-other-alphabetic-tests: New file.
57713         * modules/unictype/property-other-default-ignorable-code-point-tests: New file.
57714         * modules/unictype/property-other-grapheme-extend-tests: New file.
57715         * modules/unictype/property-other-id-continue-tests: New file.
57716         * modules/unictype/property-other-id-start-tests: New file.
57717         * modules/unictype/property-other-lowercase-tests: New file.
57718         * modules/unictype/property-other-math-tests: New file.
57719         * modules/unictype/property-other-uppercase-tests: New file.
57720         * modules/unictype/property-paired-punctuation-tests: New file.
57721         * modules/unictype/property-paragraph-separator-tests: New file.
57722         * modules/unictype/property-pattern-syntax-tests: New file.
57723         * modules/unictype/property-pattern-white-space-tests: New file.
57724         * modules/unictype/property-private-use-tests: New file.
57725         * modules/unictype/property-punctuation-tests: New file.
57726         * modules/unictype/property-quotation-mark-tests: New file.
57727         * modules/unictype/property-radical-tests: New file.
57728         * modules/unictype/property-sentence-terminal-tests: New file.
57729         * modules/unictype/property-soft-dotted-tests: New file.
57730         * modules/unictype/property-space-tests: New file.
57731         * modules/unictype/property-terminal-punctuation-tests: New file.
57732         * modules/unictype/property-test-tests: New file.
57733         * modules/unictype/property-titlecase-tests: New file.
57734         * modules/unictype/property-unassigned-code-value-tests: New file.
57735         * modules/unictype/property-unified-ideograph-tests: New file.
57736         * modules/unictype/property-uppercase-tests: New file.
57737         * modules/unictype/property-variation-selector-tests: New file.
57738         * modules/unictype/property-white-space-tests: New file.
57739         * modules/unictype/property-xid-continue-tests: New file.
57740         * modules/unictype/property-xid-start-tests: New file.
57741         * modules/unictype/property-zero-width-tests: New file.
57742         * modules/unictype/scripts-tests: New file.
57743         * modules/unictype/syntax-c-ident-tests: New file.
57744         * modules/unictype/syntax-c-whitespace-tests: New file.
57745         * modules/unictype/syntax-java-ident-tests: New file.
57746         * modules/unictype/syntax-java-whitespace-tests: New file.
57747         * tests/unictype/test-bidi_byname.c: New file.
57748         * tests/unictype/test-bidi_name.c: New file.
57749         * tests/unictype/test-bidi_of.c: New file.
57750         * tests/unictype/test-bidi_test.c: New file.
57751         * tests/unictype/test-block_list.c: New file.
57752         * tests/unictype/test-block_of.c: New file.
57753         * tests/unictype/test-block_test.c: New file.
57754         * tests/unictype/test-categ_and.c: New file.
57755         * tests/unictype/test-categ_and_not.c: New file.
57756         * tests/unictype/test-categ_byname.c: New file.
57757         * tests/unictype/test-categ_name.c: New file.
57758         * tests/unictype/test-categ_none.c: New file.
57759         * tests/unictype/test-categ_of.c: New file.
57760         * tests/unictype/test-categ_or.c: New file.
57761         * tests/unictype/test-categ_test_withtable.c: New file.
57762         * tests/unictype/test-combining.c: New file.
57763         * tests/unictype/test-decdigit.c: New file.
57764         * tests/unictype/test-digit.c: New file.
57765         * tests/unictype/test-mirror.c: New file.
57766         * tests/unictype/test-numeric.c: New file.
57767         * tests/unictype/test-pr_byname.c: New file.
57768         * tests/unictype/test-pr_test.c: New file.
57769         * tests/unictype/test-predicate-part1.h: New file.
57770         * tests/unictype/test-predicate-part2.h: New file.
57771         * tests/unictype/test-scripts.c: New file.
57772         * tests/unictype/test-sy_c_ident.c: New file.
57773         * tests/unictype/test-sy_java_ident.c: New file.
57774
57775         * tests/unictype/test-categ_C.c: New file, generated by gen-ctype.c
57776         for Unicode 5.0.0.
57777         * tests/unictype/test-categ_Cc.c: Likewise.
57778         * tests/unictype/test-categ_Cf.c: Likewise.
57779         * tests/unictype/test-categ_Cn.c: Likewise.
57780         * tests/unictype/test-categ_Co.c: Likewise.
57781         * tests/unictype/test-categ_Cs.c: Likewise.
57782         * tests/unictype/test-categ_L.c: Likewise.
57783         * tests/unictype/test-categ_Ll.c: Likewise.
57784         * tests/unictype/test-categ_Lm.c: Likewise.
57785         * tests/unictype/test-categ_Lo.c: Likewise.
57786         * tests/unictype/test-categ_Lt.c: Likewise.
57787         * tests/unictype/test-categ_Lu.c: Likewise.
57788         * tests/unictype/test-categ_M.c: Likewise.
57789         * tests/unictype/test-categ_Mc.c: Likewise.
57790         * tests/unictype/test-categ_Me.c: Likewise.
57791         * tests/unictype/test-categ_Mn.c: Likewise.
57792         * tests/unictype/test-categ_N.c: Likewise.
57793         * tests/unictype/test-categ_Nd.c: Likewise.
57794         * tests/unictype/test-categ_Nl.c: Likewise.
57795         * tests/unictype/test-categ_No.c: Likewise.
57796         * tests/unictype/test-categ_P.c: Likewise.
57797         * tests/unictype/test-categ_Pc.c: Likewise.
57798         * tests/unictype/test-categ_Pd.c: Likewise.
57799         * tests/unictype/test-categ_Pe.c: Likewise.
57800         * tests/unictype/test-categ_Pf.c: Likewise.
57801         * tests/unictype/test-categ_Pi.c: Likewise.
57802         * tests/unictype/test-categ_Po.c: Likewise.
57803         * tests/unictype/test-categ_Ps.c: Likewise.
57804         * tests/unictype/test-categ_S.c: Likewise.
57805         * tests/unictype/test-categ_Sc.c: Likewise.
57806         * tests/unictype/test-categ_Sk.c: Likewise.
57807         * tests/unictype/test-categ_Sm.c: Likewise.
57808         * tests/unictype/test-categ_So.c: Likewise.
57809         * tests/unictype/test-categ_Z.c: Likewise.
57810         * tests/unictype/test-categ_Zl.c: Likewise.
57811         * tests/unictype/test-categ_Zp.c: Likewise.
57812         * tests/unictype/test-categ_Zs.c: Likewise.
57813         * tests/unictype/test-ctype_alnum.c: Likewise.
57814         * tests/unictype/test-ctype_alpha.c: Likewise.
57815         * tests/unictype/test-ctype_blank.c: Likewise.
57816         * tests/unictype/test-ctype_cntrl.c: Likewise.
57817         * tests/unictype/test-ctype_digit.c: Likewise.
57818         * tests/unictype/test-ctype_graph.c: Likewise.
57819         * tests/unictype/test-ctype_lower.c: Likewise.
57820         * tests/unictype/test-ctype_print.c: Likewise.
57821         * tests/unictype/test-ctype_punct.c: Likewise.
57822         * tests/unictype/test-ctype_space.c: Likewise.
57823         * tests/unictype/test-ctype_upper.c: Likewise.
57824         * tests/unictype/test-ctype_xdigit.c: Likewise.
57825         * tests/unictype/test-decdigit.h: Likewise.
57826         * tests/unictype/test-digit.h: Likewise.
57827         * tests/unictype/test-numeric.h: Likewise.
57828         * tests/unictype/test-pr_alphabetic.c: Likewise.
57829         * tests/unictype/test-pr_ascii_hex_digit.c: Likewise.
57830         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
57831         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Likewise.
57832         * tests/unictype/test-pr_bidi_block_separator.c: Likewise.
57833         * tests/unictype/test-pr_bidi_boundary_neutral.c: Likewise.
57834         * tests/unictype/test-pr_bidi_common_separator.c: Likewise.
57835         * tests/unictype/test-pr_bidi_control.c: Likewise.
57836         * tests/unictype/test-pr_bidi_embedding_or_override.c: Likewise.
57837         * tests/unictype/test-pr_bidi_eur_num_separator.c: Likewise.
57838         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
57839         * tests/unictype/test-pr_bidi_european_digit.c: Likewise.
57840         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
57841         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
57842         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
57843         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
57844         * tests/unictype/test-pr_bidi_pdf.c: Likewise.
57845         * tests/unictype/test-pr_bidi_segment_separator.c: Likewise.
57846         * tests/unictype/test-pr_bidi_whitespace.c: Likewise.
57847         * tests/unictype/test-pr_combining.c: Likewise.
57848         * tests/unictype/test-pr_composite.c: Likewise.
57849         * tests/unictype/test-pr_currency_symbol.c: Likewise.
57850         * tests/unictype/test-pr_dash.c: Likewise.
57851         * tests/unictype/test-pr_decimal_digit.c: Likewise.
57852         * tests/unictype/test-pr_default_ignorable_code_point.c: Likewise.
57853         * tests/unictype/test-pr_deprecated.c: Likewise.
57854         * tests/unictype/test-pr_diacritic.c: Likewise.
57855         * tests/unictype/test-pr_extender.c: Likewise.
57856         * tests/unictype/test-pr_format_control.c: Likewise.
57857         * tests/unictype/test-pr_grapheme_base.c: Likewise.
57858         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
57859         * tests/unictype/test-pr_grapheme_link.c: Likewise.
57860         * tests/unictype/test-pr_hex_digit.c: Likewise.
57861         * tests/unictype/test-pr_hyphen.c: Likewise.
57862         * tests/unictype/test-pr_id_continue.c: Likewise.
57863         * tests/unictype/test-pr_id_start.c: Likewise.
57864         * tests/unictype/test-pr_ideographic.c: Likewise.
57865         * tests/unictype/test-pr_ids_binary_operator.c: Likewise.
57866         * tests/unictype/test-pr_ids_trinary_operator.c: Likewise.
57867         * tests/unictype/test-pr_ignorable_control.c: Likewise.
57868         * tests/unictype/test-pr_iso_control.c: Likewise.
57869         * tests/unictype/test-pr_join_control.c: Likewise.
57870         * tests/unictype/test-pr_left_of_pair.c: Likewise.
57871         * tests/unictype/test-pr_line_separator.c: Likewise.
57872         * tests/unictype/test-pr_logical_order_exception.c: Likewise.
57873         * tests/unictype/test-pr_lowercase.c: Likewise.
57874         * tests/unictype/test-pr_math.c: Likewise.
57875         * tests/unictype/test-pr_non_break.c: Likewise.
57876         * tests/unictype/test-pr_not_a_character.c: Likewise.
57877         * tests/unictype/test-pr_numeric.c: Likewise.
57878         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
57879         * tests/unictype/test-pr_other_default_ignorable_code_point.c: Likewise.
57880         * tests/unictype/test-pr_other_grapheme_extend.c: Likewise.
57881         * tests/unictype/test-pr_other_id_continue.c: Likewise.
57882         * tests/unictype/test-pr_other_id_start.c: Likewise.
57883         * tests/unictype/test-pr_other_lowercase.c: Likewise.
57884         * tests/unictype/test-pr_other_math.c: Likewise.
57885         * tests/unictype/test-pr_other_uppercase.c: Likewise.
57886         * tests/unictype/test-pr_paired_punctuation.c: Likewise.
57887         * tests/unictype/test-pr_paragraph_separator.c: Likewise.
57888         * tests/unictype/test-pr_pattern_syntax.c: Likewise.
57889         * tests/unictype/test-pr_pattern_white_space.c: Likewise.
57890         * tests/unictype/test-pr_private_use.c: Likewise.
57891         * tests/unictype/test-pr_punctuation.c: Likewise.
57892         * tests/unictype/test-pr_quotation_mark.c: Likewise.
57893         * tests/unictype/test-pr_radical.c: Likewise.
57894         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
57895         * tests/unictype/test-pr_soft_dotted.c: Likewise.
57896         * tests/unictype/test-pr_space.c: Likewise.
57897         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
57898         * tests/unictype/test-pr_titlecase.c: Likewise.
57899         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
57900         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
57901         * tests/unictype/test-pr_uppercase.c: Likewise.
57902         * tests/unictype/test-pr_variation_selector.c: Likewise.
57903         * tests/unictype/test-pr_white_space.c: Likewise.
57904         * tests/unictype/test-pr_xid_continue.c: Likewise.
57905         * tests/unictype/test-pr_xid_start.c: Likewise.
57906         * tests/unictype/test-pr_zero_width.c: Likewise.
57907         * tests/unictype/test-sy_c_whitespace.c: Likewise.
57908         * tests/unictype/test-sy_java_whitespace.c: Likewise.
57909
57910 2007-11-12  Bruno Haible  <bruno@clisp.org>
57911
57912         Unicode character classification functions.
57913         * lib/unictype.h: New file.
57914         * modules/unictype/base: New file.
57915         * modules/unictype/category-L: New file.
57916         * modules/unictype/category-Lu: New file.
57917         * modules/unictype/category-Ll: New file.
57918         * modules/unictype/category-Lt: New file.
57919         * modules/unictype/category-Lm: New file.
57920         * modules/unictype/category-Lo: New file.
57921         * modules/unictype/category-M: New file.
57922         * modules/unictype/category-Mn: New file.
57923         * modules/unictype/category-Mc: New file.
57924         * modules/unictype/category-Me: New file.
57925         * modules/unictype/category-N: New file.
57926         * modules/unictype/category-Nd: New file.
57927         * modules/unictype/category-Nl: New file.
57928         * modules/unictype/category-No: New file.
57929         * modules/unictype/category-P: New file.
57930         * modules/unictype/category-Pc: New file.
57931         * modules/unictype/category-Pd: New file.
57932         * modules/unictype/category-Ps: New file.
57933         * modules/unictype/category-Pe: New file.
57934         * modules/unictype/category-Pi: New file.
57935         * modules/unictype/category-Pf: New file.
57936         * modules/unictype/category-Po: New file.
57937         * modules/unictype/category-S: New file.
57938         * modules/unictype/category-Sm: New file.
57939         * modules/unictype/category-Sc: New file.
57940         * modules/unictype/category-Sk: New file.
57941         * modules/unictype/category-So: New file.
57942         * modules/unictype/category-Z: New file.
57943         * modules/unictype/category-Zs: New file.
57944         * modules/unictype/category-Zl: New file.
57945         * modules/unictype/category-Zp: New file.
57946         * modules/unictype/category-C: New file.
57947         * modules/unictype/category-Cc: New file.
57948         * modules/unictype/category-Cf: New file.
57949         * modules/unictype/category-Cs: New file.
57950         * modules/unictype/category-Co: New file.
57951         * modules/unictype/category-Cn: New file.
57952         * modules/unictype/category-or: New file.
57953         * modules/unictype/category-of: New file.
57954         * modules/unictype/category-test: New file.
57955         * modules/unictype/category-test-withtable: New file.
57956         * modules/unictype/category-byname: New file.
57957         * modules/unictype/category-none: New file.
57958         * modules/unictype/category-and: New file.
57959         * modules/unictype/category-and-not: New file.
57960         * modules/unictype/category-name: New file.
57961         * modules/unictype/combining-class: New file.
57962         * modules/unictype/category-all: New file.
57963         * modules/unictype/bidicategory-all: New file.
57964         * modules/unictype/bidicategory-byname: New file.
57965         * modules/unictype/bidicategory-name: New file.
57966         * modules/unictype/bidicategory-of: New file.
57967         * modules/unictype/bidicategory-test: New file.
57968         * modules/unictype/decimal-digit: New file.
57969         * modules/unictype/digit: New file.
57970         * modules/unictype/numeric: New file.
57971         * modules/unictype/mirror: New file.
57972         * modules/unictype/property-white-space: New file.
57973         * modules/unictype/property-alphabetic: New file.
57974         * modules/unictype/property-other-alphabetic: New file.
57975         * modules/unictype/property-not-a-character: New file.
57976         * modules/unictype/property-default-ignorable-code-point: New file.
57977         * modules/unictype/property-other-default-ignorable-code-point: New
57978         file.
57979         * modules/unictype/property-deprecated: New file.
57980         * modules/unictype/property-logical-order-exception: New file.
57981         * modules/unictype/property-variation-selector: New file.
57982         * modules/unictype/property-private-use: New file.
57983         * modules/unictype/property-unassigned-code-value: New file.
57984         * modules/unictype/property-uppercase: New file.
57985         * modules/unictype/property-other-uppercase: New file.
57986         * modules/unictype/property-lowercase: New file.
57987         * modules/unictype/property-other-lowercase: New file.
57988         * modules/unictype/property-titlecase: New file.
57989         * modules/unictype/property-soft-dotted: New file.
57990         * modules/unictype/property-id-start: New file.
57991         * modules/unictype/property-other-id-start: New file.
57992         * modules/unictype/property-id-continue: New file.
57993         * modules/unictype/property-other-id-continue: New file.
57994         * modules/unictype/property-xid-start: New file.
57995         * modules/unictype/property-xid-continue: New file.
57996         * modules/unictype/property-pattern-white-space: New file.
57997         * modules/unictype/property-pattern-syntax: New file.
57998         * modules/unictype/property-join-control: New file.
57999         * modules/unictype/property-grapheme-base: New file.
58000         * modules/unictype/property-grapheme-extend: New file.
58001         * modules/unictype/property-other-grapheme-extend: New file.
58002         * modules/unictype/property-grapheme-link: New file.
58003         * modules/unictype/property-bidi-control: New file.
58004         * modules/unictype/property-bidi-left-to-right: New file.
58005         * modules/unictype/property-bidi-hebrew-right-to-left: New file.
58006         * modules/unictype/property-bidi-arabic-right-to-left: New file.
58007         * modules/unictype/property-bidi-european-digit: New file.
58008         * modules/unictype/property-bidi-eur-num-separator: New file.
58009         * modules/unictype/property-bidi-eur-num-terminator: New file.
58010         * modules/unictype/property-bidi-arabic-digit: New file.
58011         * modules/unictype/property-bidi-common-separator: New file.
58012         * modules/unictype/property-bidi-block-separator: New file.
58013         * modules/unictype/property-bidi-segment-separator: New file.
58014         * modules/unictype/property-bidi-whitespace: New file.
58015         * modules/unictype/property-bidi-non-spacing-mark: New file.
58016         * modules/unictype/property-bidi-boundary-neutral: New file.
58017         * modules/unictype/property-bidi-pdf: New file.
58018         * modules/unictype/property-bidi-embedding-or-override: New file.
58019         * modules/unictype/property-bidi-other-neutral: New file.
58020         * modules/unictype/property-hex-digit: New file.
58021         * modules/unictype/property-ascii-hex-digit: New file.
58022         * modules/unictype/property-ideographic: New file.
58023         * modules/unictype/property-unified-ideograph: New file.
58024         * modules/unictype/property-radical: New file.
58025         * modules/unictype/property-ids-binary-operator: New file.
58026         * modules/unictype/property-ids-trinary-operator: New file.
58027         * modules/unictype/property-zero-width: New file.
58028         * modules/unictype/property-space: New file.
58029         * modules/unictype/property-non-break: New file.
58030         * modules/unictype/property-iso-control: New file.
58031         * modules/unictype/property-format-control: New file.
58032         * modules/unictype/property-dash: New file.
58033         * modules/unictype/property-hyphen: New file.
58034         * modules/unictype/property-punctuation: New file.
58035         * modules/unictype/property-line-separator: New file.
58036         * modules/unictype/property-paragraph-separator: New file.
58037         * modules/unictype/property-quotation-mark: New file.
58038         * modules/unictype/property-sentence-terminal: New file.
58039         * modules/unictype/property-terminal-punctuation: New file.
58040         * modules/unictype/property-currency-symbol: New file.
58041         * modules/unictype/property-math: New file.
58042         * modules/unictype/property-other-math: New file.
58043         * modules/unictype/property-paired-punctuation: New file.
58044         * modules/unictype/property-left-of-pair: New file.
58045         * modules/unictype/property-combining: New file.
58046         * modules/unictype/property-composite: New file.
58047         * modules/unictype/property-decimal-digit: New file.
58048         * modules/unictype/property-numeric: New file.
58049         * modules/unictype/property-diacritic: New file.
58050         * modules/unictype/property-extender: New file.
58051         * modules/unictype/property-ignorable-control: New file.
58052         * modules/unictype/property-test: New file.
58053         * modules/unictype/property-byname: New file.
58054         * modules/unictype/property-all: New file.
58055         * modules/unictype/scripts: New file.
58056         * modules/unictype/scripts-all: New file.
58057         * modules/unictype/block-of: New file.
58058         * modules/unictype/block-test: New file.
58059         * modules/unictype/block-list: New file.
58060         * modules/unictype/block-all: New file.
58061         * modules/unictype/syntax-c-whitespace: New file.
58062         * modules/unictype/syntax-java-whitespace: New file.
58063         * modules/unictype/syntax-c-ident: New file.
58064         * modules/unictype/syntax-java-ident: New file.
58065         * modules/unictype/ctype-alnum: New file.
58066         * modules/unictype/ctype-alpha: New file.
58067         * modules/unictype/ctype-cntrl: New file.
58068         * modules/unictype/ctype-digit: New file.
58069         * modules/unictype/ctype-graph: New file.
58070         * modules/unictype/ctype-lower: New file.
58071         * modules/unictype/ctype-print: New file.
58072         * modules/unictype/ctype-punct: New file.
58073         * modules/unictype/ctype-space: New file.
58074         * modules/unictype/ctype-upper: New file.
58075         * modules/unictype/ctype-xdigit: New file.
58076         * modules/unictype/ctype-blank: New file.
58077         * lib/unictype/bidi_byname.c: New file.
58078         * lib/unictype/bidi_name.c: New file.
58079         * lib/unictype/bidi_of.c: New file.
58080         * lib/unictype/bidi_test.c: New file.
58081         * lib/unictype/bitmap.h: New file.
58082         * lib/unictype/block_test.c: New file.
58083         * lib/unictype/blocks.c: New file.
58084         * lib/unictype/categ_C.c: New file.
58085         * lib/unictype/categ_Cc.c: New file.
58086         * lib/unictype/categ_Cf.c: New file.
58087         * lib/unictype/categ_Cn.c: New file.
58088         * lib/unictype/categ_Co.c: New file.
58089         * lib/unictype/categ_Cs.c: New file.
58090         * lib/unictype/categ_L.c: New file.
58091         * lib/unictype/categ_Ll.c: New file.
58092         * lib/unictype/categ_Lm.c: New file.
58093         * lib/unictype/categ_Lo.c: New file.
58094         * lib/unictype/categ_Lt.c: New file.
58095         * lib/unictype/categ_Lu.c: New file.
58096         * lib/unictype/categ_M.c: New file.
58097         * lib/unictype/categ_Mc.c: New file.
58098         * lib/unictype/categ_Me.c: New file.
58099         * lib/unictype/categ_Mn.c: New file.
58100         * lib/unictype/categ_N.c: New file.
58101         * lib/unictype/categ_Nd.c: New file.
58102         * lib/unictype/categ_Nl.c: New file.
58103         * lib/unictype/categ_No.c: New file.
58104         * lib/unictype/categ_P.c: New file.
58105         * lib/unictype/categ_Pc.c: New file.
58106         * lib/unictype/categ_Pd.c: New file.
58107         * lib/unictype/categ_Pe.c: New file.
58108         * lib/unictype/categ_Pf.c: New file.
58109         * lib/unictype/categ_Pi.c: New file.
58110         * lib/unictype/categ_Po.c: New file.
58111         * lib/unictype/categ_Ps.c: New file.
58112         * lib/unictype/categ_S.c: New file.
58113         * lib/unictype/categ_Sc.c: New file.
58114         * lib/unictype/categ_Sk.c: New file.
58115         * lib/unictype/categ_Sm.c: New file.
58116         * lib/unictype/categ_So.c: New file.
58117         * lib/unictype/categ_Z.c: New file.
58118         * lib/unictype/categ_Zl.c: New file.
58119         * lib/unictype/categ_Zp.c: New file.
58120         * lib/unictype/categ_Zs.c: New file.
58121         * lib/unictype/categ_and.c: New file.
58122         * lib/unictype/categ_and_not.c: New file.
58123         * lib/unictype/categ_byname.c: New file.
58124         * lib/unictype/categ_name.c: New file.
58125         * lib/unictype/categ_none.c: New file.
58126         * lib/unictype/categ_of.c: New file.
58127         * lib/unictype/categ_or.c: New file.
58128         * lib/unictype/categ_test.c: New file.
58129         * lib/unictype/combining.c: New file.
58130         * lib/unictype/ctype_alnum.c: New file.
58131         * lib/unictype/ctype_alpha.c: New file.
58132         * lib/unictype/ctype_blank.c: New file.
58133         * lib/unictype/ctype_cntrl.c: New file.
58134         * lib/unictype/ctype_digit.c: New file.
58135         * lib/unictype/ctype_graph.c: New file.
58136         * lib/unictype/ctype_lower.c: New file.
58137         * lib/unictype/ctype_print.c: New file.
58138         * lib/unictype/ctype_punct.c: New file.
58139         * lib/unictype/ctype_space.c: New file.
58140         * lib/unictype/ctype_upper.c: New file.
58141         * lib/unictype/ctype_xdigit.c: New file.
58142         * lib/unictype/decdigit.c: New file.
58143         * lib/unictype/digit.c: New file.
58144         * lib/unictype/identsyntaxmap.h: New file.
58145         * lib/unictype/mirror.c: New file.
58146         * lib/unictype/numeric.c: New file.
58147         * lib/unictype/pr_alphabetic.c: New file.
58148         * lib/unictype/pr_ascii_hex_digit.c: New file.
58149         * lib/unictype/pr_bidi_arabic_digit.c: New file.
58150         * lib/unictype/pr_bidi_arabic_right_to_left.c: New file.
58151         * lib/unictype/pr_bidi_block_separator.c: New file.
58152         * lib/unictype/pr_bidi_boundary_neutral.c: New file.
58153         * lib/unictype/pr_bidi_common_separator.c: New file.
58154         * lib/unictype/pr_bidi_control.c: New file.
58155         * lib/unictype/pr_bidi_embedding_or_override.c: New file.
58156         * lib/unictype/pr_bidi_eur_num_separator.c: New file.
58157         * lib/unictype/pr_bidi_eur_num_terminator.c: New file.
58158         * lib/unictype/pr_bidi_european_digit.c: New file.
58159         * lib/unictype/pr_bidi_hebrew_right_to_left.c: New file.
58160         * lib/unictype/pr_bidi_left_to_right.c: New file.
58161         * lib/unictype/pr_bidi_non_spacing_mark.c: New file.
58162         * lib/unictype/pr_bidi_other_neutral.c: New file.
58163         * lib/unictype/pr_bidi_pdf.c: New file.
58164         * lib/unictype/pr_bidi_segment_separator.c: New file.
58165         * lib/unictype/pr_bidi_whitespace.c: New file.
58166         * lib/unictype/pr_byname.c: New file.
58167         * lib/unictype/pr_byname.gperf: New file.
58168         * lib/unictype/pr_combining.c: New file.
58169         * lib/unictype/pr_composite.c: New file.
58170         * lib/unictype/pr_currency_symbol.c: New file.
58171         * lib/unictype/pr_dash.c: New file.
58172         * lib/unictype/pr_decimal_digit.c: New file.
58173         * lib/unictype/pr_default_ignorable_code_point.c: New file.
58174         * lib/unictype/pr_deprecated.c: New file.
58175         * lib/unictype/pr_diacritic.c: New file.
58176         * lib/unictype/pr_extender.c: New file.
58177         * lib/unictype/pr_format_control.c: New file.
58178         * lib/unictype/pr_grapheme_base.c: New file.
58179         * lib/unictype/pr_grapheme_extend.c: New file.
58180         * lib/unictype/pr_grapheme_link.c: New file.
58181         * lib/unictype/pr_hex_digit.c: New file.
58182         * lib/unictype/pr_hyphen.c: New file.
58183         * lib/unictype/pr_id_continue.c: New file.
58184         * lib/unictype/pr_id_start.c: New file.
58185         * lib/unictype/pr_ideographic.c: New file.
58186         * lib/unictype/pr_ids_binary_operator.c: New file.
58187         * lib/unictype/pr_ids_trinary_operator.c: New file.
58188         * lib/unictype/pr_ignorable_control.c: New file.
58189         * lib/unictype/pr_iso_control.c: New file.
58190         * lib/unictype/pr_join_control.c: New file.
58191         * lib/unictype/pr_left_of_pair.c: New file.
58192         * lib/unictype/pr_line_separator.c: New file.
58193         * lib/unictype/pr_logical_order_exception.c: New file.
58194         * lib/unictype/pr_lowercase.c: New file.
58195         * lib/unictype/pr_math.c: New file.
58196         * lib/unictype/pr_non_break.c: New file.
58197         * lib/unictype/pr_not_a_character.c: New file.
58198         * lib/unictype/pr_numeric.c: New file.
58199         * lib/unictype/pr_other_alphabetic.c: New file.
58200         * lib/unictype/pr_other_default_ignorable_code_point.c: New file.
58201         * lib/unictype/pr_other_grapheme_extend.c: New file.
58202         * lib/unictype/pr_other_id_continue.c: New file.
58203         * lib/unictype/pr_other_id_start.c: New file.
58204         * lib/unictype/pr_other_lowercase.c: New file.
58205         * lib/unictype/pr_other_math.c: New file.
58206         * lib/unictype/pr_other_uppercase.c: New file.
58207         * lib/unictype/pr_paired_punctuation.c: New file.
58208         * lib/unictype/pr_paragraph_separator.c: New file.
58209         * lib/unictype/pr_pattern_syntax.c: New file.
58210         * lib/unictype/pr_pattern_white_space.c: New file.
58211         * lib/unictype/pr_private_use.c: New file.
58212         * lib/unictype/pr_punctuation.c: New file.
58213         * lib/unictype/pr_quotation_mark.c: New file.
58214         * lib/unictype/pr_radical.c: New file.
58215         * lib/unictype/pr_sentence_terminal.c: New file.
58216         * lib/unictype/pr_soft_dotted.c: New file.
58217         * lib/unictype/pr_space.c: New file.
58218         * lib/unictype/pr_terminal_punctuation.c: New file.
58219         * lib/unictype/pr_test.c: New file.
58220         * lib/unictype/pr_titlecase.c: New file.
58221         * lib/unictype/pr_unassigned_code_value.c: New file.
58222         * lib/unictype/pr_unified_ideograph.c: New file.
58223         * lib/unictype/pr_uppercase.c: New file.
58224         * lib/unictype/pr_variation_selector.c: New file.
58225         * lib/unictype/pr_white_space.c: New file.
58226         * lib/unictype/pr_xid_continue.c: New file.
58227         * lib/unictype/pr_xid_start.c: New file.
58228         * lib/unictype/pr_zero_width.c: New file.
58229         * lib/unictype/scripts.c: New file.
58230         * lib/unictype/sy_c_ident.c: New file.
58231         * lib/unictype/sy_c_whitespace.c: New file.
58232         * lib/unictype/sy_java_ident.c: New file.
58233         * lib/unictype/sy_java_whitespace.c: New file.
58234
58235         * lib/unictype/bidi_of.h: New file, generated by gen-ctype.c for
58236         Unicode 5.0.0.
58237         * lib/unictype/blocks.h: Likewise.
58238         * lib/unictype/categ_C.h: Likewise.
58239         * lib/unictype/categ_Cc.h: Likewise.
58240         * lib/unictype/categ_Cf.h: Likewise.
58241         * lib/unictype/categ_Cn.h: Likewise.
58242         * lib/unictype/categ_Co.h: Likewise.
58243         * lib/unictype/categ_Cs.h: Likewise.
58244         * lib/unictype/categ_L.h: Likewise.
58245         * lib/unictype/categ_Ll.h: Likewise.
58246         * lib/unictype/categ_Lm.h: Likewise.
58247         * lib/unictype/categ_Lo.h: Likewise.
58248         * lib/unictype/categ_Lt.h: Likewise.
58249         * lib/unictype/categ_Lu.h: Likewise.
58250         * lib/unictype/categ_M.h: Likewise.
58251         * lib/unictype/categ_Mc.h: Likewise.
58252         * lib/unictype/categ_Me.h: Likewise.
58253         * lib/unictype/categ_Mn.h: Likewise.
58254         * lib/unictype/categ_N.h: Likewise.
58255         * lib/unictype/categ_Nd.h: Likewise.
58256         * lib/unictype/categ_Nl.h: Likewise.
58257         * lib/unictype/categ_No.h: Likewise.
58258         * lib/unictype/categ_P.h: Likewise.
58259         * lib/unictype/categ_Pc.h: Likewise.
58260         * lib/unictype/categ_Pd.h: Likewise.
58261         * lib/unictype/categ_Pe.h: Likewise.
58262         * lib/unictype/categ_Pf.h: Likewise.
58263         * lib/unictype/categ_Pi.h: Likewise.
58264         * lib/unictype/categ_Po.h: Likewise.
58265         * lib/unictype/categ_Ps.h: Likewise.
58266         * lib/unictype/categ_S.h: Likewise.
58267         * lib/unictype/categ_Sc.h: Likewise.
58268         * lib/unictype/categ_Sk.h: Likewise.
58269         * lib/unictype/categ_Sm.h: Likewise.
58270         * lib/unictype/categ_So.h: Likewise.
58271         * lib/unictype/categ_Z.h: Likewise.
58272         * lib/unictype/categ_Zl.h: Likewise.
58273         * lib/unictype/categ_Zp.h: Likewise.
58274         * lib/unictype/categ_Zs.h: Likewise.
58275         * lib/unictype/categ_of.h: Likewise.
58276         * lib/unictype/combining.h: Likewise.
58277         * lib/unictype/ctype_alnum.h: Likewise.
58278         * lib/unictype/ctype_alpha.h: Likewise.
58279         * lib/unictype/ctype_blank.h: Likewise.
58280         * lib/unictype/ctype_cntrl.h: Likewise.
58281         * lib/unictype/ctype_digit.h: Likewise.
58282         * lib/unictype/ctype_graph.h: Likewise.
58283         * lib/unictype/ctype_lower.h: Likewise.
58284         * lib/unictype/ctype_print.h: Likewise.
58285         * lib/unictype/ctype_punct.h: Likewise.
58286         * lib/unictype/ctype_space.h: Likewise.
58287         * lib/unictype/ctype_upper.h: Likewise.
58288         * lib/unictype/ctype_xdigit.h: Likewise.
58289         * lib/unictype/decdigit.h: Likewise.
58290         * lib/unictype/digit.h: Likewise.
58291         * lib/unictype/mirror.h: Likewise.
58292         * lib/unictype/numeric.h: Likewise.
58293         * lib/unictype/pr_alphabetic.h: Likewise.
58294         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
58295         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
58296         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
58297         * lib/unictype/pr_bidi_block_separator.h: Likewise.
58298         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
58299         * lib/unictype/pr_bidi_common_separator.h: Likewise.
58300         * lib/unictype/pr_bidi_control.h: Likewise.
58301         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
58302         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
58303         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
58304         * lib/unictype/pr_bidi_european_digit.h: Likewise.
58305         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
58306         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
58307         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
58308         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
58309         * lib/unictype/pr_bidi_pdf.h: Likewise.
58310         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
58311         * lib/unictype/pr_bidi_whitespace.h: Likewise.
58312         * lib/unictype/pr_combining.h: Likewise.
58313         * lib/unictype/pr_composite.h: Likewise.
58314         * lib/unictype/pr_currency_symbol.h: Likewise.
58315         * lib/unictype/pr_dash.h: Likewise.
58316         * lib/unictype/pr_decimal_digit.h: Likewise.
58317         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
58318         * lib/unictype/pr_deprecated.h: Likewise.
58319         * lib/unictype/pr_diacritic.h: Likewise.
58320         * lib/unictype/pr_extender.h: Likewise.
58321         * lib/unictype/pr_format_control.h: Likewise.
58322         * lib/unictype/pr_grapheme_base.h: Likewise.
58323         * lib/unictype/pr_grapheme_extend.h: Likewise.
58324         * lib/unictype/pr_grapheme_link.h: Likewise.
58325         * lib/unictype/pr_hex_digit.h: Likewise.
58326         * lib/unictype/pr_hyphen.h: Likewise.
58327         * lib/unictype/pr_id_continue.h: Likewise.
58328         * lib/unictype/pr_id_start.h: Likewise.
58329         * lib/unictype/pr_ideographic.h: Likewise.
58330         * lib/unictype/pr_ids_binary_operator.h: Likewise.
58331         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
58332         * lib/unictype/pr_ignorable_control.h: Likewise.
58333         * lib/unictype/pr_iso_control.h: Likewise.
58334         * lib/unictype/pr_join_control.h: Likewise.
58335         * lib/unictype/pr_left_of_pair.h: Likewise.
58336         * lib/unictype/pr_line_separator.h: Likewise.
58337         * lib/unictype/pr_logical_order_exception.h: Likewise.
58338         * lib/unictype/pr_lowercase.h: Likewise.
58339         * lib/unictype/pr_math.h: Likewise.
58340         * lib/unictype/pr_non_break.h: Likewise.
58341         * lib/unictype/pr_not_a_character.h: Likewise.
58342         * lib/unictype/pr_numeric.h: Likewise.
58343         * lib/unictype/pr_other_alphabetic.h: Likewise.
58344         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
58345         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
58346         * lib/unictype/pr_other_id_continue.h: Likewise.
58347         * lib/unictype/pr_other_id_start.h: Likewise.
58348         * lib/unictype/pr_other_lowercase.h: Likewise.
58349         * lib/unictype/pr_other_math.h: Likewise.
58350         * lib/unictype/pr_other_uppercase.h: Likewise.
58351         * lib/unictype/pr_paired_punctuation.h: Likewise.
58352         * lib/unictype/pr_paragraph_separator.h: Likewise.
58353         * lib/unictype/pr_pattern_syntax.h: Likewise.
58354         * lib/unictype/pr_pattern_white_space.h: Likewise.
58355         * lib/unictype/pr_private_use.h: Likewise.
58356         * lib/unictype/pr_punctuation.h: Likewise.
58357         * lib/unictype/pr_quotation_mark.h: Likewise.
58358         * lib/unictype/pr_radical.h: Likewise.
58359         * lib/unictype/pr_sentence_terminal.h: Likewise.
58360         * lib/unictype/pr_soft_dotted.h: Likewise.
58361         * lib/unictype/pr_space.h: Likewise.
58362         * lib/unictype/pr_terminal_punctuation.h: Likewise.
58363         * lib/unictype/pr_titlecase.h: Likewise.
58364         * lib/unictype/pr_unassigned_code_value.h: Likewise.
58365         * lib/unictype/pr_unified_ideograph.h: Likewise.
58366         * lib/unictype/pr_uppercase.h: Likewise.
58367         * lib/unictype/pr_variation_selector.h: Likewise.
58368         * lib/unictype/pr_white_space.h: Likewise.
58369         * lib/unictype/pr_xid_continue.h: Likewise.
58370         * lib/unictype/pr_xid_start.h: Likewise.
58371         * lib/unictype/pr_zero_width.h: Likewise.
58372         * lib/unictype/scripts.h: Likewise.
58373         * lib/unictype/scripts_byname.gperf: Likewise.
58374         * lib/unictype/sy_c_ident.h: Likewise.
58375         * lib/unictype/sy_c_whitespace.h: Likewise.
58376         * lib/unictype/sy_java_ident.h: Likewise.
58377         * lib/unictype/sy_java_whitespace.h: Likewise.
58378
58379         * lib/unictype/Makefile: New file.
58380         * lib/unictype/gen-ctype.c: New file, based on gen-unicode-ctype.c in
58381         glibc.
58382         * lib/unictype/3level.h: New file, copied from glibc.
58383         * lib/unictype/3levelbit.h: New file.
58384
58385 2007-11-11  Bruno Haible  <bruno@clisp.org>
58386
58387         * modules/gperf: New file.
58388         * modules/iconv_open (Depends-on): Add it.
58389         (Makefile.am): Remove the GPERF definition.
58390
58391 2007-11-11  Bruno Haible  <bruno@clisp.org>
58392
58393         * m4/round.m4 (gl_FUNC_ROUND): Test against NetBSD 3.0 bug.
58394         * doc/functions/round.texi: Mention the NetBSD 3.0 bug.
58395
58396 2007-11-11  Bruno Haible  <bruno@clisp.org>
58397
58398         * tests/test-argmatch.c (ARGMATCH_DIE): Undefine.
58399         (usage): Remove function.
58400
58401 2007-11-11  Bruno Haible  <bruno@clisp.org>
58402
58403         * m4/roundf.m4 (gl_FUNC_ROUNDF): Use gl_FUNC_FLOORF_LIBS and
58404         gl_FUNC_CEILF_LIBS.
58405         * m4/round.m4 (gl_FUNC_ROUND): Use gl_FUNC_FLOOR_LIBS and
58406         gl_FUNC_CEIL_LIBS.
58407         * m4/roundl.m4 (gl_FUNC_ROUNDL): Use gl_FUNC_FLOORL_LIBS and
58408         gl_FUNC_CEILL_LIBS.
58409         * modules/roundf (Files): Add m4/floorf.m4, m4/ceilf.m4.
58410         * modules/round (Files): Add m4/floor.m4, m4/ceil.m4.
58411         * modules/roundl (Files): Add m4/floorl.m4, m4/ceill.m4.
58412
58413 2007-11-11  Bruno Haible  <bruno@clisp.org>
58414
58415         * m4/roundf.m4 (gl_FUNC_ROUNDF): Handle the case that floorf and
58416         roundf were declared but do not exist on functions.
58417         * m4/roundl.m4 (gl_FUNC_ROUNDL): Handle the case that floorl and
58418         roundl were declared but do not exist on functions.
58419         * lib/round.c (HAVE_FLOOR_AND_CEIL): Use HAVE_FLOORF_AND_CEILF and
58420         HAVE_FLOORL_AND_CEILL, respectively.
58421         Needed for Sun C on Solaris 10.
58422
58423 2007-11-11  Bruno Haible  <bruno@clisp.org>
58424
58425         * m4/roundf.m4 (gl_FUNC_ROUNDF): Set REPLACE_ROUNDF instead of
58426         HAVE_DECL_ROUNDF. Remove redundant AC_SUBST.
58427         * m4/round.m4 (gl_FUNC_ROUND): Set REPLACE_ROUND instead of
58428         HAVE_DECL_ROUND. Remove redundant AC_SUBST.
58429         * m4/roundl.m4 (gl_FUNC_ROUNDL): Set REPLACE_ROUNDL instead of
58430         HAVE_DECL_ROUNDL. Remove redundant AC_SUBST.
58431         * lib/math.in.h (roundf): Use REPLACE_ROUNDF instead of
58432         HAVE_DECL_ROUNDF.
58433         (round): Use REPLACE_ROUND instead of HAVE_DECL_ROUND.
58434         (roundl): Use REPLACE_ROUNDL instead of HAVE_DECL_ROUNDL.
58435         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_ROUND* instead
58436         of HAVE_DECL_ROUND*.
58437         * modules/math (Makefile.am): Update.
58438
58439 2007-11-10  Bruno Haible  <bruno@clisp.org>
58440
58441         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Use same check for
58442         ptrdiff_t as m4/intl.m4.
58443
58444 2007-11-10  Jim Meyering  <meyering@redhat.com>
58445
58446         Avoid link failure for the argmatch test.
58447         * tests/test-argmatch.c (usage): Define function to avoid a link
58448         failure: argmatch_die requires a usage function.
58449
58450 2007-11-09  Bruno Haible  <bruno@clisp.org>
58451
58452         * doc/functions/snprintf.texi: Mention BeOS deficiency.
58453         * doc/functions/vsnprintf.texi: Likewise.
58454         * lib/vasnprintf.c (VASNPRINTF): Ensure that we never call snprintf
58455         with a size argument < 2.
58456
58457 2007-11-09  Bruno Haible  <bruno@clisp.org>
58458
58459         * lib/vasnprintf.c (VASNPRINTF): Increase reallocation of snprintf
58460         buffer. Fixes an inefficiency introduced on 2007-11-03.
58461
58462 2007-11-09  Bruno Haible  <bruno@clisp.org>
58463
58464         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8) [BeOS]: Make this test return
58465         none instead of tr_TR. Fixes a failure of test-c-strcasecmp.c.
58466
58467 2007-11-08  Jim Meyering  <meyering@redhat.com>
58468
58469         Change cache variable name prefix "jm_" to "gl_" everywhere.
58470         * m4/d-type.m4, m4/jm-winsz1.m4, m4/jm-winsz2.m4, m4/link-follow.m4:
58471         * m4/putenv.m4, m4/strtoimax.m4, m4/strtoumax.m4, m4/unlink-busy.m4:
58472         * m4/uptime.m4: s/gl_/jm_/
58473
58474 2007-11-07  Bruno Haible  <bruno@clisp.org>
58475
58476         Update to GNU gettext 0.17.
58477         * m4/intl.m4: Update to GNU gettext 0.17.
58478         * m4/po.m4: Likewise.
58479         * modules/gettext (Files): Remove m4/ulonglong.m4.
58480         (configure.ac): Require gettext infrastructure from version 0.17.
58481
58482 2007-11-06  Bruno Haible  <bruno@clisp.org>
58483
58484         * lib/fbufmode.c (fbufmode) [QNX]: Use numerical values for flags; the
58485         symbolic values are not defined in a public header.
58486         * lib/freadable.c (freadable) [QNX]: Likewise.
58487         * lib/freadahead.c (freadahead) [QNX]: Likewise.
58488         * lib/freading.c (freading) [QNX]: Likewise.
58489         * lib/fseterr.c (fseterr) [QNX]: Likewise.
58490         * lib/fwritable.c (fwritable) [QNX]: Likewise.
58491         * lib/fwriting.c (fwriting) [QNX]: Likewise.
58492         * lib/fpurge.c (fpurge) [QNX]: Likewise. Add a return statement.
58493         Reported by Alain Magloire.
58494
58495         * m4/fpending.m4 (gl_FUNC_FPENDING): Add a variant for QNX.
58496
58497 2007-11-05  Bruno Haible  <bruno@clisp.org>
58498
58499         * lib/vasnprintf.c (VASNPRINTF): Expand the NEED_PRINTF_DIRECTIVE_A
58500         code when NEED_PRINTF_LONG_DOUBLE or NEED_PRINTF_DOUBLE is set.
58501         Needed on Cygwin, where !NEED_PRINTF_DIRECTIVE_A && NEED_PRINTF_DOUBLE.
58502         Reported by Eric Blake.
58503
58504 2007-10-27  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
58505             Bruno Haible  <bruno@clisp.org>
58506
58507         * modules/malloc (configure.ac): Define GNULIB_MALLOC_GNU always.
58508         * modules/realloc (configure.ac): Define GNULIB_REALLOC_GNU always.
58509         * lib/realloc.c (SYSTEM_MALLOC_GLIBC_COMPATIBLE): New macro.
58510         (malloc): Undefine also before including <stdlib.h>.
58511         (rpl_realloc): Turn malloc(0) into malloc(1) if necessary.
58512         Needed on OSF/1 4.0.
58513
58514 2007-11-05  Jim Meyering  <meyering@redhat.com>
58515
58516         git-version-gen: sync from coreutils.
58517         * build-aux/git-version-gen: Add comments.
58518         Change the first '-' to '.' in the snapshot version string,
58519         e.g., 6.9-377-08144 -> 6.9.377-08144
58520         Remove first parameter.
58521         Don't declare a version "-dirty" merely because a time
58522         stamp has changed.
58523
58524 2007-11-04  Bruno Haible  <bruno@clisp.org>
58525
58526         * lib/lock.h: Protect all macro definitions containing an 'if'
58527         statement through a "do { ... } while (0)".
58528         * lib/tls.h: Likewise.
58529
58530 2007-11-04  Bruno Haible  <bruno@clisp.org>
58531
58532         * lib/vasnprintf.c (DCHAR_IS_TCHAR, DCHAR_CPY): Undefine at the end.
58533
58534 2007-11-04  Bruno Haible  <bruno@clisp.org>
58535
58536         * m4/printf.m4 (gl_PRINTF_ENOMEM): Use GL_NOCRASH.
58537         * modules/fprintf-posix (Depends-on): Add nocrash.
58538         * modules/snprintf-posix (Depends-on): Likewise.
58539         * modules/sprintf-posix (Depends-on): Likewise.
58540         * modules/vasnprintf-posix (Depends-on): Likewise.
58541         * modules/vasprintf-posix (Depends-on): Likewise.
58542         * modules/vfprintf-posix (Depends-on): Likewise.
58543         * modules/vsnprintf-posix (Depends-on): Likewise.
58544         * modules/vsprintf-posix (Depends-on): Likewise.
58545         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
58546         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
58547         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
58548         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
58549         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
58550         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
58551         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
58552
58553 2007-11-04  Bruno Haible  <bruno@clisp.org>
58554
58555         * modules/nocrash: New file.
58556         * m4/nocrash.m4: New file, taken from GNU clisp. Code taken from
58557         GNU libsigsegv, with permission of GNU libsigsegv's copyright holders.
58558
58559 2007-11-04  Bruno Haible  <bruno@clisp.org>
58560
58561         * tests/test-vasnprintf-posix.c (test_function): Add some tests of
58562         precision handling.
58563         * tests/test-vasprintf-posix.c (test_function): Likewise.
58564         * tests/test-snprintf-posix.h (test_function): Likewise.
58565         * tests/test-sprintf-posix.h (test_function): Likewise.
58566
58567         Fix *printf behaviour for large precisions on mingw and BeOS.
58568         * m4/printf.m4 (gl_PRINTF_PRECISION): New macro.
58569         * lib/vasnprintf.c (VASNPRINTF): Handle NEED_PRINTF_UNBOUNDED_PRECISION.
58570         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_PRECISION): New macro.
58571         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
58572         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
58573         gl_PRINTF_PRECISION and test its result. Invoke
58574         gl_PREREQ_VASNPRINTF_PRECISION.
58575         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
58576         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
58577         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
58578         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
58579         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
58580         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
58581         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
58582         * doc/functions/fprintf.texi: Update.
58583         * doc/functions/printf.texi: Update.
58584         * doc/functions/snprintf.texi: Update.
58585         * doc/functions/sprintf.texi: Update.
58586         * doc/functions/vfprintf.texi: Update.
58587         * doc/functions/vprintf.texi: Update.
58588         * doc/functions/vsnprintf.texi: Update.
58589         * doc/functions/vsprintf.texi: Update.
58590
58591 2007-11-04  Bruno Haible  <bruno@clisp.org>
58592
58593         * lib/vasnprintf.c (scale10_round_decimal_decoded): Fix shift loop.
58594
58595 2007-11-04  Bruno Haible  <bruno@clisp.org>
58596
58597         * modules/relocatable-prog (Files): Add m4/lib-ld.m4.
58598         Reported by Sylvain Beucler <beuc@gnu.org>.
58599
58600 2007-11-03  Bruno Haible  <bruno@clisp.org>
58601
58602         * tests/test-fprintf-posix2.sh: New file.
58603         * tests/test-fprintf-posix2.c: New file.
58604         * modules/fprintf-posix-tests (Files): Add them.
58605         (TESTS): Add test-fprintf-posix2.sh.
58606         (configure.ac): Check for getrlimit and setrlimit.
58607         (check_PROGRAMS): Add test-fprintf-posix2.
58608
58609         * tests/test-printf-posix2.sh: New file.
58610         * tests/test-printf-posix2.c: New file.
58611         * modules/printf-posix-tests (Files): Add them.
58612         (TESTS): Add test-printf-posix2.sh.
58613         (configure.ac): Check for getrlimit and setrlimit.
58614         (check_PROGRAMS): Add test-printf-posix2.
58615
58616         Fix *printf behaviour in out-of-memory situations on MacOS X and *BSD.
58617         * m4/printf.m4 (gl_PRINTF_ENOMEM): New macro.
58618         * lib/vasnprintf.c: Implement NEED_PRINTF_DOUBLE.
58619         (decode_double): New function, copied from decode_long_double.
58620         (scale10_round_decimal_decoded): New function, extracted from
58621         scale10_round_decimal_long_double.
58622         (scale10_round_decimal_long_double): Use it.
58623         (scale10_round_decimal_double): New function.
58624         (floorlog10): New function.
58625         (VASNPRINTF): Handle NEED_PRINTF_DOUBLE case.
58626         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_ENOMEM): New macro.
58627         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
58628         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
58629         gl_PRINTF_ENOMEM and test its result. Invoke
58630         gl_PREREQ_VASNPRINTF_ENOMEM.
58631         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
58632         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
58633         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
58634         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
58635         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
58636         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
58637         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
58638         * modules/fprintf-posix (Depends-on): Add frexp-nolibm.
58639         * modules/snprintf-posix (Depends-on): Likewise.
58640         * modules/sprintf-posix (Depends-on): Likewise.
58641         * modules/vasnprintf-posix (Depends-on): Likewise.
58642         * modules/vasprintf-posix (Depends-on): Likewise.
58643         * modules/vfprintf-posix (Depends-on): Likewise.
58644         * modules/vsnprintf-posix (Depends-on): Likewise.
58645         * modules/vsprintf-posix (Depends-on): Likewise.
58646         * doc/functions/fprintf.texi: Update.
58647         * doc/functions/printf.texi: Update.
58648         * doc/functions/snprintf.texi: Update.
58649         * doc/functions/sprintf.texi: Update.
58650         * doc/functions/vfprintf.texi: Update.
58651         * doc/functions/vprintf.texi: Update.
58652         * doc/functions/vsnprintf.texi: Update.
58653         * doc/functions/vsprintf.texi: Update.
58654
58655 2007-11-03  Bruno Haible  <bruno@clisp.org>
58656
58657         * modules/frexp-nolibm-tests: New file.
58658
58659         * modules/frexp-nolibm: New file.
58660         * m4/frexp.m4 (gl_FUNC_FREXP_NO_LIBM): New macro.
58661
58662 2007-11-03  Bruno Haible  <bruno@clisp.org>
58663
58664         * lib/vasnprintf.c (VASNPRINTF): Don't assume that snprintf's return
58665         value is C99 compliant.
58666         Needed for OSF/1 5.1.
58667
58668 2007-11-03  Bruno Haible  <bruno@clisp.org>
58669
58670         Fix out-of-memory handling of vasnprintf.
58671         * lib/printf-parse.c: Include <errno.h>.
58672         (PRINTF_PARSE): When failing, set errno to EINVAL or ENOMEM.
58673         * lib/vasnprintf.c (VASNPRINTF): When PRINTF_PARSE fails, assume errno
58674         is already set.
58675
58676 2007-11-02  Eric Blake  <ebb9@byu.net>
58677
58678         Fix tests on cygwin.
58679         * modules/xprintf-posix-tests (Makefile.am): Link against -lintl.
58680
58681 2007-11-01  Bruno Haible  <bruno@clisp.org>
58682
58683         * lib/stdlib.in.h (putenv): Remove the "not POSIX compliant everywhere"
58684         warning.
58685         * doc/functions/putenv.texi: Clarify that the 'putenv' module is not
58686         needed for POSIX compatibility.
58687
58688 2007-11-01  Paul Eggert  <eggert@cs.ucla.edu>
58689
58690         * m4/putenv.m4 (gl_FUNC_PUTENV): Also mention that we're checking
58691         for compatibility with GNU.
58692
58693 2007-11-01  Bruno Haible  <bruno@clisp.org>
58694
58695         * lib/putenv.c: Include <stdlib.h>. Remove rpl_putenv declaration.
58696         (putenv): Renamed from rpl_putenv. Change argument type from
58697         'const char *' to 'char *'.
58698         * m4/putenv.m4 (gl_FUNC_PUTENV): Require gl_STDLIB_H_DEFAULTS. Instead
58699         of defining putenv in config.h, just set REPLACE_PUTENV.
58700         * modules/putenv (Depends-on): Add stdlib.
58701         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
58702         (Include): Use <stdlib.h>.
58703         * lib/stdlib.in.h (putenv): New declaration.
58704         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_PUTENV and
58705         REPLACE_PUTENV.
58706         * modules/stdlib (Makefile.am): Substitute GNULIB_PUTENV and
58707         REPLACE_PUTENV.
58708         Needed for MacOS X 10.5.0.
58709         Reported by Peter O'Gorman <peter@pogma.com>.
58710
58711 2007-11-01  Jim Meyering  <meyering@redhat.com>
58712
58713         Treat an empty date string exactly like "0".
58714         * lib/getdate.y (get_date): Once any isspace or TZ= prefix is consumed,
58715         if the remaining date string (to be parsed) is empty, use "0".
58716         Reported by Mischa Molhoek and discussed in this thread:
58717         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/11726>.
58718
58719 2007-10-31  Bruno Haible  <bruno@clisp.org>
58720
58721         * m4/intmax_t.m4 (gl_AC_TYPE_INTMAX_T, gt_AC_TYPE_INTMAX_T): Use
58722         AC_TYPE_LONG_LONG_INT instead of gl_AC_TYPE_LONG_LONG.
58723         * m4/uintmax_t.m4 (gl_AC_TYPE_UINTMAX_T): Use
58724         AC_TYPE_UNSIGNED_LONG_LONG_INT instead of gl_AC_TYPE_UNSIGNED_LONG_LONG.
58725         * m4/longlong.m4 (gl_AC_TYPE_LONG_LONG): Remove macro.
58726         * m4/ulonglong.m4 (gl_AC_TYPE_UNSIGNED_LONG_LONG): Remove macro.
58727
58728 2007-10-31  Bruno Haible  <bruno@clisp.org>
58729
58730         * m4/longlong.m4 (_AC_TYPE_LONG_LONG_SNIPPET): New macro, extracted
58731         from AC_TYPE_LONG_LONG_INT and AC_TYPE_UNSIGNED_LONG_LONG_INT.
58732         (AC_TYPE_LONG_LONG_INT): Use it.
58733         (AC_TYPE_UNSIGNED_LONG_LONG_INT): Moved here from m4/ulonglong.m4. Use
58734         it as well.
58735         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Remove macro; moved
58736         to m4/longlong.m4.
58737         * modules/stdint (Files): Remove m4/ulonglong.m4.
58738         * modules/strtoull (Files): Use m4/longlong.m4 instead of
58739         m4/ulonglong.m4.
58740         * modules/strtoumax (Files): Likewise.
58741
58742 2007-10-30  Bruno Haible  <bruno@clisp.org>
58743
58744         * modules/xvasprintf-posix: New file.
58745         Suggested by Eric Blake.
58746
58747 2007-10-30  Bruno Haible  <bruno@clisp.org>
58748
58749         * modules/xprintf-posix-tests: New file.
58750         * tests/test-xprintf-posix.sh: New file.
58751         * tests/test-xprintf-posix.c: New file.
58752         * tests/test-xfprintf-posix.c: New file.
58753
58754         * modules/xprintf-posix: New file.
58755
58756 2007-10-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
58757
58758         * modules/fbufmode-tests (MOSTLYCLEANFILES): Remove temp files.
58759         * modules/freadable-tests (MOSTLYCLEANFILES): Likewise.
58760         * modules/fwritable-tests (MOSTLYCLEANFILES): Likewise.
58761
58762 2007-10-29  Bruno Haible  <bruno@clisp.org>
58763
58764         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Rename the cache variable to
58765         contain the special marker '_cv_'.
58766         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
58767         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
58768         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
58769         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Likewise.
58770         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
58771         Reported by Ralf Wildenhues.
58772
58773 2007-10-29  Bruno Haible  <bruno@clisp.org>
58774
58775         * gnulib-tool (func_import): When --lgpl is not specified, set
58776         sed_transform_lib_file to convert LGPL and GPLv2+ copyright headers to
58777         GPLv3.
58778         Reported by Simon Josefsson.
58779
58780 2007-10-28  Bruno Haible  <bruno@clisp.org>
58781
58782         * lib/math.in.h: Test REPLACE_ISFINITE instead of HAVE_DECL_ISFINITE.
58783         * m4/isfinite.m4 (gl_ISFINITE): Initialize REPLACE_ISFINITE instead of
58784         HAVE_DECL_ISFINITE.
58785         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Update.
58786         * modules/math (Makefile.am): Substitute REPLACE_ISFINITE instead of
58787         HAVE_DECL_ISFINITE.
58788
58789 2007-10-28  Bruno Haible  <bruno@clisp.org>
58790
58791         * lib/stdint.in.h (_STDINT_MAX): Subtract 1 from an unused signed
58792         integer shift in the signed case. Fixes warnings with OSF/1 5.1 cc.
58793
58794 2007-10-28  Bruno Haible  <bruno@clisp.org>
58795
58796         Fix link errors with Sun C 5.0 on Solaris 10.
58797         * m4/floorf.m4 (gl_FUNC_FLOORF): Consider also the case that the
58798         function is declared but not present in the compiler's libm.
58799         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
58800         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
58801         * m4/ceill.m4 (gl_FUNC_CEILL: Likewise.
58802         * lib/math.in.h: Test REPLACE_CEILF instead of HAVE_DECL_CEILF.
58803         Test REPLACE_CEILL instead of HAVE_DECL_CEILL.
58804         Test REPLACE_FLOORF instead of HAVE_DECL_FLOORF.
58805         Test REPLACE_FLOORL instead of HAVE_DECL_FLOORL.
58806         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Update.
58807         * modules/math (Makefile.am): Substitute REPLACE_CEILF instead of
58808         HAVE_DECL_CEILF, REPLACE_CEILL instead of HAVE_DECL_CEILL,
58809         REPLACE_FLOORF instead of HAVE_DECL_FLOORF, REPLACE_FLOORL instead of
58810         HAVE_DECL_FLOORL.
58811
58812 2007-10-28  Bruno Haible  <bruno@clisp.org>
58813
58814         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): New macro, extracted from
58815         gl_FUNC_FLOORL. Cache the result.
58816         (gl_FUNC_FLOORL): Use it.
58817         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): New macro, extracted from
58818         gl_FUNC_CEILL. Cache the result.
58819         (gl_FUNC_CEILL): Use it.
58820
58821         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): New macro, extracted from
58822         gl_FUNC_FLOOR. Cache the result.
58823         (gl_FUNC_FLOOR): Use it.
58824         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): New macro, extracted from
58825         gl_FUNC_CEIL. Cache the result.
58826         (gl_FUNC_CEIL): Use it.
58827
58828         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): New macro, extracted from
58829         gl_FUNC_FLOORF. Cache the result.
58830         (gl_FUNC_FLOORF): Use it.
58831         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): New macro, extracted from
58832         gl_FUNC_CEILF. Cache the result.
58833         (gl_FUNC_CEILF): Use it.
58834
58835 2007-10-28  Bruno Haible  <bruno@clisp.org>
58836
58837         * gnulib-tool: Allow specifying the LGPL version number through
58838         --lgpl=2 or --lgpl=3.
58839         (func_usage): Document --lgpl with argument.
58840         Handle --lgpl=... arguments.
58841         (func_import): Recognize also gl_LGPL calls with an argument. When
58842         --lgpl=2 is used and the module's license is just LGPL, report an
58843         error. Set sed_transform_lib_file according to the lgpl variable. In
58844         the generated files, use --lgpl or gl_LGPL invocations with argument,
58845         if necessary.
58846         * doc/gnulib-intro.texi (Copyright): Explain how to get modules under
58847         an LGPv2+ license.
58848         * doc/gnulib-tool.texi (Modified imports): Update explanation of
58849         gl_LGPL macro.
58850
58851 2007-10-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
58852             Bruno Haible  <bruno@clisp.org>
58853
58854         * lib/unistr.h (u8_uctomb_aux): Declare also if !HAVE_INLINE.
58855         (u16_uctomb_aux): Likewise.
58856         * lib/unistr/u8-uctomb-aux.c (u8_uctomb_aux): Define also if
58857         !HAVE_INLINE.
58858         * lib/unistr/u16-uctomb-aux.c (u16_uctomb_aux): Likewise
58859
58860 2007-10-28  Bruno Haible  <bruno@clisp.org>
58861
58862         * modules/error: Add a notice recommending to change XGETTEXT_OPTIONS.
58863         Invoke AM_GETTEXT_OPTION if it exists.
58864         * modules/vasprintf: Likewise.
58865         * modules/verror: Likewise.
58866         * modules/xprintf: Likewise.
58867         * modules/xvasprintf: Likewise.
58868
58869 2007-10-27  Ben Pfaff  <blp@gnu.org>
58870
58871         * lib/math.in.h: Define isfinite macro and prototypes for
58872         gl_isfinitef, gl_isfinited, gl_isfinitel if we are providing
58873         implementations.
58874         * m4/math_h.m4: New substitutions for isfinite module.
58875         * lib/isfinite.c: New file.
58876         * m4/isfinite.m4: New file.
58877         * modules/math: Replace isfinite-related @VARS@ in math.in.h.
58878         * modules/isfinite: New file.
58879         * modules/isfinite-tests: New file.
58880         * tests/tests-isfinite.c: New file.
58881         * doc/functions/isfinite.texi: Mention isfinite module.
58882         * MODULES.html.sh: Mention new module.
58883
58884 2007-10-27  Ben Pfaff  <blp@gnu.org>
58885
58886         Ralf Wildenhues reported that Tru64 4.0D declares the round
58887         functions but does not have definitions.
58888         * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): If the target function
58889         cannot be found in any library, set the output variable to
58890         "missing" instead of "".
58891         * m4/round.m4: Also use our substitute if we cannot find round in
58892         any library, even if it is declared.
58893         * m4/roundf.m4: Likewise for roundf.
58894         * m4/roundl.m4: Likewise for roundl.
58895         * lib/math.in.h: Undefine roundf, round, roundl before defining
58896         their replacements, to allow for hypothetical systems where these
58897         may be defined as macros but not available in libraries.
58898
58899 2007-10-27  Bruno Haible  <bruno@clisp.org>
58900
58901         * doc/gnulib.texi: Invoke @firstparagraphindent.
58902         * doc/gnulib-tool.texi (Simple update): Mention possible incompatible
58903         changes in gnulib.
58904         (Source changes): New section.
58905
58906 2007-10-26  Bruno Haible  <bruno@clisp.org>
58907
58908         * m4/gnulib-common.m4 (AC_C_RESTRICT): New overriding definition,
58909         borrowed from autoconf.
58910
58911 2007-10-26  Bruno Haible  <bruno@clisp.org>
58912
58913         * lib/strerror.c (rpl_strerror): Return "Unknown error ..." also if
58914         strerror returned the empty string. Needed on HP-UX 11.00.
58915
58916 2007-10-24  Micah Cowan  <micah@cowan.name>
58917
58918         Remove vestiges of cvs-gnulib-checkout process.  Now we use git.
58919         * build-aux/bootstrap: Remove support for now-unnecessary option,
58920         --cvs-user, and envvars CVS_USER, CVS_RSH.
58921
58922 2007-10-24  Jim Meyering  <meyering@redhat.com>
58923
58924         Avoid diagnostics from sha1sum when there is no cached checksum.
58925         * build-aux/bootstrap (update_po_files): Skip the sha1sum check
58926         if the po.s1 file hasn't been created yet.
58927
58928         * build-aux/bootstrap: Sync from coreutils:
58929         2007-10-24  Jim Meyering  <meyering@redhat.com>
58930         Get gnulib from the git repository, not from an obsolete cvs one.
58931         * build-aux/bootstrap: Suggestion from Micah Cowan.
58932         2007-10-04  Jim Meyering  <jim@meyering.net>
58933         * build-aux/bootstrap (slurp): Adapt to _.h -> .in.h name change.
58934         (update_po_files): Work also when there are no .po files in po/.
58935
58936 2007-10-24  Paul Eggert  <eggert@cs.ucla.edu>
58937
58938         * README: Append ".git" to git and cg examples.
58939         Problem reported by Benoit Sigoure.
58940
58941 2007-10-23  Micah Cowan  <micah@cowan.name>
58942
58943         * users.txt: Add wget.
58944
58945 2007-10-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
58946
58947         Fix linking of some unistdio tests on FreeBSD.
58948         * modules/unistdio/u16-vsnprintf-tests
58949         (test_u16_vsprintf1_LDADD): Add @LIBINTL@.
58950         * modules/unistdio/u16-vsprintf-tests
58951         (test_u16_vsnprintf1_LDADD): Likewise.
58952         * modules/unistdio/u32-vsnprintf-tests
58953         (test_u32_vsnprintf1_LDADD): Likewise.
58954         * modules/unistdio/u32-vsprintf-tests
58955         (test_u32_vsprintf1_LDADD): Likewise.
58956         * modules/unistdio/u8-vsnprintf-tests
58957         (test_u8_vsnprintf1_LDADD): Likewise.
58958         * modules/unistdio/u8-vsprintf-tests
58959         (test_u8_vsprintf1_LDADD): Likewise.
58960         * modules/unistdio/ulc-vsnprintf-tests
58961         (test_ulc_vsnprintf1_LDADD): Likewise.
58962         * modules/unistdio/ulc-vsprintf-tests
58963         (test_ulc_vsprintf1_LDADD): Likewise.
58964
58965         Fix linking of some uniconv tests on FreeBSD.
58966         * modules/uniconv/u16-conv-from-enc-tests
58967         (test_u16_conv_from_enc_LDADD): Link $(LDADD) before @LIBICONV@.
58968         * modules/uniconv/u16-conv-to-enc-tests
58969         (test_u16_conv_to_enc_LDADD): Likewise.
58970         * modules/uniconv/u16-strconv-from-enc-tests
58971         (test_u16_strconv_from_enc_LDADD): Likewise.
58972         * modules/uniconv/u16-strconv-to-enc-tests
58973         (test_u16_strconv_to_enc_LDADD): Likewise.
58974         * modules/uniconv/u32-conv-from-enc-tests
58975         (test_u32_conv_from_enc_LDADD): Likewise.
58976         * modules/uniconv/u32-conv-to-enc-tests
58977         (test_u32_conv_to_enc_LDADD): Likewise.
58978         * modules/uniconv/u32-strconv-from-enc-tests
58979         (test_u32_strconv_from_enc_LDADD): Likewise.
58980         * modules/uniconv/u32-strconv-to-enc-tests
58981         (test_u32_strconv_to_enc_LDADD): Likewise.
58982         * modules/uniconv/u8-conv-from-enc-tests
58983         (test_u8_conv_from_enc_LDADD): Likewise.
58984         * modules/uniconv/u8-conv-to-enc-tests
58985         (test_u8_conv_to_enc_LDADD): Likewise.
58986         * modules/uniconv/u8-strconv-from-enc-tests
58987         (test_u8_strconv_from_enc_LDADD): Likewise.
58988         * modules/uniconv/u8-strconv-to-enc-tests
58989         (test_u8_strconv_to_enc_LDADD): Likewise.
58990
58991 2007-10-22  Bruno Haible  <bruno@clisp.org>
58992
58993         * lib/stdint.in.h: Add check that intmax_t and uintmax_t have the same
58994         size.
58995
58996 2007-10-22  Eric Blake  <ebb9@byu.net>
58997
58998         Tweak x*printf documentation.
58999         * lib/xprintf.c (xprintf, xvprintf, xfprintf, xvfprintf): Adjust
59000         variable name and comments.
59001         Suggested by Bruno Haible.
59002
59003 2007-10-22  Bruno Haible  <bruno@clisp.org>
59004
59005         * lib/acl.c (copy_acl): Fix file name in comment.
59006
59007 2007-10-22  Paul Eggert  <eggert@cs.ucla.edu>
59008
59009         Fix Tru64 problem with stdbool.h.
59010         * lib/stdbool.in.h (false, true):
59011         [! (defined __cplusplus || defined __BEOS__) && !defined __GNUC__]:
59012         Don't declare as an enum in this situation; it runs afoul of Tru64.
59013         Problem reported by Steven M. Schweda in
59014         <http://lists.gnu.org/archive/html/bug-autoconf/2007-10/msg00019.html>.
59015
59016 2007-10-22  Eric Blake  <ebb9@byu.net>
59017
59018         Also wrap vf?printf.
59019         * lib/xprintf.h (xvprintf, xvfprintf): New declarations.
59020         * lib/xprintf.c (xprintf, xfprintf): Work for C89.
59021         (xvprintf, xvfprintf): New functions.
59022
59023 2007-10-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
59024
59025         * modules/fstrcmp-tests (test_fstrcmp_LDADD): New, add
59026         @LIBINTL@ for FreeBSD 6.2, $(LIBTHREAD) for AIX 4.3.3.
59027
59028         * lib/uniconv/u16-conv-to-enc.c (U_MBLEN): Define.
59029         * lib/uniconv/u32-conv-to-enc.c (U_MBLEN): Likewise.
59030
59031 2007-10-22  Paul Eggert  <eggert@cs.ucla.edu>
59032
59033         * lib/acl.c (copy_acl): Adjust to IRIX 6.5.  Problem reported
59034         by Bruno Haible.
59035
59036 2007-10-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
59037
59038         * lib/getloadavg.c
59039         [defined (__osf__) && (defined (__alpha) || defined (__alpha__)]:
59040         Undef `sys' after including sys/table.h, for Tru64 4.0D.
59041
59042         * tests/test-i-ring.c: Work for C89.
59043
59044 2007-10-22  Bruno Haible  <bruno@clisp.org>
59045
59046         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Use -1ull, not
59047         -1u, in preprocessor expression, so that we don't test for the bug
59048         in HP-UX 11.00 cpp.  Testing for this bug caused problems; see
59049         <http://lists.gnu.org/archive/html/bug-gnulib/2007-10/msg00329.html>.
59050
59051 2007-10-22  Eric Blake  <ebb9@byu.net>
59052
59053         * tests/test-yesno.sh: Silence stderr during test.
59054
59055 2007-10-22  Simon Josefsson  <simon@josefsson.org>
59056
59057         * modules/crypto/gc-camellia: New file.
59058
59059         * m4/gc-camellia.m4: New file.
59060
59061         * lib/gc-libgcrypt.c (gc_cipher_open): Support Camellia.
59062
59063         * lib/gc.h (enum Gc_cipher): Add GC_CAMELLIA128, GC_CAMELLIA256.
59064
59065 2007-10-22  Simon Josefsson  <simon@josefsson.org>
59066
59067         * build-aux/maint.mk (gzip_rsyncable): Don't fail if gzip sends
59068         --help to stdout.  Reported by sms@antinode.org (Steven
59069         M. Schweda).
59070
59071 2007-10-22  Simon Josefsson  <simon@josefsson.org>
59072
59073         * users.txt: Fix link to libksba.
59074
59075 2007-10-21  Ben Pfaff  <blp@gnu.org>
59076
59077         * modules/roundf-tests: Add dependency on floorf, ceilf to allow
59078         round.c roundf implementation that depends on floorf and ceilf to
59079         be tested unconditionally.
59080
59081 2007-10-21  Ben Pfaff  <blp@gnu.org>
59082
59083         * m4/check-libm-func.m4: Removed.
59084         * m4/check-math-lib.m4: New file.
59085         * m4/round.m4: Rewrite to use gl_CHECK_MATH_LIB.
59086         * m4/roundf.m4: Ditto, and fix lack of HAVE_DECL_ROUNDF
59087         definition and lack of AC_LIBOBJ([roundf]).
59088         * m4/roundl.m4: Ditto, and similarly for roundl.
59089         * modules/round: Reference new m4 file.
59090         * modules/roundf: Ditto.
59091         * modules/roundl: Ditto.
59092         * tests/test-round2.c (main): Use ROUND instead of round.
59093         Bug report from Bruno Haible.
59094
59095 2007-10-21  Bruno Haible  <bruno@clisp.org>
59096
59097         * lib/printf-parse.c: Don't assume <stdint.h> exists in IN_LIBASPRINTF
59098         context.
59099
59100 2007-10-21  Bruno Haible  <bruno@clisp.org>
59101
59102         * tests/test-wcwidth.c (main): Allow negative result for some control
59103         characters.
59104
59105         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Check also the width of U+200B.
59106         Needed on OSF/1 5.1.
59107
59108 2007-10-21  Bruno Haible  <bruno@clisp.org>
59109
59110         * tests/test-floorf1.c: Include isnanf.h.
59111         (main): Use isnanf() instead of isnan().
59112         * tests/test-ceilf1.c: Include isnanf.h.
59113         (main): Use isnanf() instead of isnan().
59114         * tests/test-truncf1.c: Include isnanf.h.
59115         (main): Use isnanf() instead of isnan().
59116         * tests/test-roundf1.c: Include isnanf.h.
59117         (main): Use isnanf() instead of isnan().
59118
59119 2007-10-21  Eric Blake  <ebb9@byu.net>
59120
59121         * users.txt: Update URL for m4.
59122
59123 2007-10-21  Bruno Haible  <bruno@clisp.org>
59124
59125         * users.txt: Add clisp. Update URLs to Simon Josefsson's projects.
59126
59127 2007-10-21  Bruno Haible  <bruno@clisp.org>
59128
59129         * gnulib-tool (func_create_megatestdir): Determine the cvsdate from
59130         Git's management files if the CVS files are not present.
59131
59132 2007-10-20  Bruno Haible  <bruno@clisp.org>
59133
59134         * lib/count-one-bits.h (COUNT_ONE_BITS): Use the builtin also for
59135         gcc-3.4.x.
59136
59137 2007-10-20  Ben Pfaff  <blp@gnu.org>
59138
59139         * lib/math.in.h: Declare round, roundf, roundl if we are providing
59140         implementations.
59141         * m4/math_h.m4: New substitutions for round, roundf, roundl modules.
59142         * lib/round.c: New file.
59143         * lib/roundf.c: New file.
59144         * lib/roundl.c: New file.
59145         * m4/round.m4: New file.
59146         * m4/roundf.m4: New file.
59147         * m4/roundl.m4: New file.
59148         * m4/check-libm-func-m4: New file.
59149         * modules/math: Replace round, roundf, roundl related @VARS@ in
59150         math.in.h.
59151         * modules/round: New file.
59152         * modules/round-tests: New file.
59153         * modules/roundf: New file.
59154         * modules/roundf-tests: New file.
59155         * modules/roundl: New file.
59156         * modules/roundl-tests: New file.
59157         * tests/test-round1.c: New file.
59158         * tests/test-round2.c: New file.
59159         * tests/test-roundf1.c: New file.
59160         * tests/test-roundf2.c: New file.
59161         * tests/test-roundl.c: New file.
59162         * doc/functions/round.texi: Mention round module.
59163         * doc/functions/roundf.texi: Mention roundf module.
59164         * doc/functions/roundl.texi: Mention roundl module.
59165         * MODULES.html.sh: Mention new modules.
59166         Thanks to Bruno Haible for suggestions.
59167
59168 2007-10-20  Jim Meyering  <meyering@redhat.com>
59169
59170         * lib/xprintf.c: Include <config.h> unconditionally.
59171
59172         Change xprintf's license to GPL.
59173         * modules/xprintf (License): s/LGPL/GPL/, since this module
59174         depends on modules (exit and exitfail) which are GPL.
59175         Suggestion from Bruno Haible.
59176
59177         xprintf fixes.
59178         * lib/xprintf.c (xprintf, xfprintf): Use va_end.
59179         Use a clearer diagnostic.
59180         Patch from Bruno Haible.
59181
59182 2007-10-20  Bruno Haible  <bruno@clisp.org>
59183
59184         * lib/vasnprintf.c (VASNPRINTF): Don't report overflow if the available
59185         length is INT_MAX and sizeof (DCHAR_T) > sizeof (TCHAR_T).
59186         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
59187
59188 2007-10-20  Bruno Haible  <bruno@clisp.org>
59189
59190         * tests/test-floorf2.c (correct_result_p): Don't rely on excess
59191         precision in the comparison result > x - 1 or similar.
59192         * tests/test-ceilf2.c (correct_result_p): Likewise.
59193         * tests/test-truncf2.c (correct_result_p): Likewise.
59194         * tests/test-trunc2.c (correct_result_p): Likewise.
59195         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
59196
59197 2007-10-20  Bruno Haible  <bruno@clisp.org>
59198
59199         * modules/ceil: New file.
59200         * m4/ceil.m4: New file.
59201         * doc/functions/ceil.texi: Mention the 'ceil' module.
59202
59203 2007-10-20  Bruno Haible  <bruno@clisp.org>
59204
59205         * modules/floor: New file.
59206         * m4/floor.m4: New file.
59207         * doc/functions/floor.texi: Mention the 'floor' module.
59208
59209 2007-10-20  Bruno Haible  <bruno@clisp.org>
59210
59211         * modules/ceilf-tests (Depends-on): Add fprintf-posix. Needed for use
59212         of %a.
59213         * modules/floorf-tests (Depends-on): Likewise.
59214         * modules/truncf-tests (Depends-on): Likewise.
59215         * modules/trunc-tests (Depends-on): Likewise.
59216         Reported by Ben Pfaff.
59217
59218 2007-10-19  Jim Meyering  <meyering@redhat.com>
59219
59220         * lib/xprintf.c (xprintf, xfprintf): Test err < 0, not just "err".
59221         Don't bother testing specific errno values.  Just test ferror.
59222
59223         New module: xprintf
59224         * modules/xprintf, lib/xprintf.c, lib/xprintf.h: New files.
59225
59226 2007-10-19  Bruno Haible  <bruno@clisp.org>
59227
59228         * modules/csharpexec (Makefile.am): Use @FOO@ syntax instead of $(FOO)
59229         syntax.
59230         * modules/javaexec (Makefile.am): Likewise.
59231         * modules/relocatable-prog (Makefile.am): Likewise.
59232         Suggested by Jim Meyering.
59233
59234 2007-10-18  Bruno Haible  <bruno@clisp.org>
59235
59236         * lib/vasnprintf.c (VASNPRINTF): Don't use %n on glibc >= 2.3 systems.
59237         Reported by Jim Meyering.
59238
59239 2007-10-18  Eric Blake  <ebb9@byu.net>
59240
59241         * modules/filenamecat-tests (Makefile.am): Link against -lintl.
59242
59243 2007-10-18  Bruno Haible  <bruno@clisp.org>
59244
59245         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_N, gl_SNPRINTF_DIRECTIVE_N): Put
59246         the format string into writable memory. Needed in Fortify conditions.
59247
59248 2007-10-18  Colin Watson <cjwatson@debian.org>  (tiny change)
59249             Bruno Haible  <bruno@clisp.org>
59250
59251         * lib/trim.c: Include config.h unconditionally. Include trim.h always.
59252         Include ctype.h always. Include stdlib.h, not mbuiter.h, for MB_CUR_MAX.
59253         * modules/trim (Depends-on): Add mbchar.
59254         (configure.ac): Add gl_FUNC_MBRTOWC.
59255         (Makefile.am): Augment lib_SOURCES.
59256
59257 2007-10-17  Paul Eggert  <eggert@cs.ucla.edu>
59258
59259         Modify glob.c to use fstatat and dirfd, to simplify it.
59260         Suggested by Eric Blake.
59261         * lib/glob.c (__fxstatat64) [!_LIBC]: New macro.
59262         Don't include <stdbool.h>; not used.
59263         (link_exists2_p, glob_in_dir) [!_LIBC]: No longer a special case.
59264         (link_exists_p): Simplify implementation, since we can now assume
59265         dirfd and fstatat.
59266         * modules/glob (Depends-on): Add dirfd, openat.  Remove stdbool.
59267
59268 2007-10-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
59269
59270         * gnulib-tool (func_get_dependencies): Fix sed script to
59271         match only tests.
59272
59273 2007-10-17  Bruno Haible  <bruno@clisp.org>
59274
59275         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): On Cygwin, don't
59276         allow locale names without encoding suffix.
59277         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
59278         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
59279
59280 2007-10-16  Bruno Haible  <bruno@clisp.org>
59281
59282         * lib/getcwd.c (__getcwd): Define with explicit rpl_ prefix.
59283         * lib/getgroups.c (getgroups): Likewise.
59284         * lib/gettimeofday.c (localtime, gmtime, tzset): Likewise.
59285
59286 2007-10-16  Bruno Haible  <bruno@clisp.org>
59287
59288         * modules/absolute-header (License): Change from LGPL to LGPLv2+.
59289         * modules/malloc-posix (License): Likewise.
59290         * modules/realloc-posix (License): Likewise.
59291         * modules/calloc-posix (License): Likewise.
59292         * modules/intprops (License): Change from GPL to LGPL, with
59293         Paul Eggert's approval.
59294
59295 2007-10-16  Paul Eggert  <eggert@cs.ucla.edu>
59296
59297         Merge glibc changes into lib/glob.c.
59298
59299         * lib/glob.c (glob_in_dir): Sync with glibc/posix/glob.c, dated
59300         2007-10-15 04:59:03 UTC.  Here are the changes:
59301
59302         2007-10-14  Ulrich Drepper  <drepper@redhat.com>
59303
59304         * lib/glob.c: Reimplement link_exists_p to use fstatat64.
59305
59306         * lib/glob.c: Add some branch prediction throughout.
59307
59308         2007-10-07  Ulrich Drepper  <drepper@redhat.com>
59309
59310         [BZ #5103]
59311         * lib/glob.c (glob): Recognize patterns starting \/.
59312
59313         2007-02-14  Jakub Jelinek  <jakub@redhat.com>
59314
59315         [BZ #3996]
59316         * lib/glob.c (attribute_hidden): Define if not defined.
59317         (glob): Unescape dirname, filename or username when needed and not
59318         GLOB_NOESCAPE.  Handle \/ correctly.  Handle GLOB_MARK if filename
59319         is NULL.  Handle unescaped [ in pattern without closing ].
59320         Don't pass GLOB_CHECK down to recursive glob for directories.
59321         (__glob_pattern_type): New function.
59322         (__glob_pattern_p): Implement using __glob_pattern_type.
59323         (glob_in_dir): Handle GLOB_NOCHECK patterns containing no meta
59324         characters and backslashes if not GLOB_NOESCAPE or unterminated [.
59325         Remove unreachable code.
59326
59327         2006-09-30  Ulrich Drepper  <drepper@redhat.com>
59328
59329         * lib/glob.c (glob_in_dir): Add some comments and asserts to
59330         explain why there are no leaks.
59331
59332         2006-09-25  Jakub Jelinek  <jakub@redhat.com>
59333
59334         [BZ #3253]
59335         * lib/glob.c (glob_in_dir): Don't alloca one struct globlink at a
59336         time, rather allocate increasingly bigger arrays of pointers, if
59337         possible with alloca, if too large with malloc.
59338
59339 2007-10-16  Paul Eggert  <eggert@cs.ucla.edu>
59340
59341         Check for 64-bit int errors in HP-UX 10.20 preprocessor.
59342         Problem reported by H.Merijn Brand in
59343         <http://lists.gnu.org/archive/html/bug-tar/2007-10/msg00018.html>.
59344         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Check preprocessor too.
59345         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Likewise.
59346
59347 2007-10-15  Bruno Haible  <bruno@clisp.org>
59348
59349         * lib/fchdir.c (close, open, closedir, opendir, dup, dup2): Define
59350         with explicit rpl_ prefix.
59351         * lib/fopen.c (fopen): Likewise.
59352         * lib/freopen.c (freopen): Likewise.
59353         * lib/iconv.c (iconv): Likewise.
59354         * lib/iconv_close.c (iconv_close): Likewise.
59355
59356 2007-10-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
59357
59358         * m4/iconv_open (gl_FUNC_ICONV_OPEN_UTF): Fix cache variable name.
59359
59360 2007-10-15  Bruno Haible  <bruno@clisp.org>
59361
59362         * m4/getaddrinfo.m4 (gl_GETADDRINFO, gl_PREREQ_GETADDRINFO): Use
59363         <stddef.h> instead of <stdlib.h> since we only need NULL.
59364         Reported by Ben Pfaff <blp@cs.stanford.edu>.
59365
59366 2007-10-15  Bruno Haible  <bruno@clisp.org>
59367
59368         * doc/gnulib-tool.texi (Initial import): Swap order of -I directives.
59369         Replace paragraph talking about LIBOBJS.
59370         Reported by Colin Watson <cjwatson@debian.org>.
59371
59372 2007-10-15  Bruno Haible  <bruno@clisp.org>
59373
59374         * m4/getaddrinfo.m4 (gl_GETADDRINFO, gl_PREREQ_GETADDRINFO): Include
59375         <stdlib.h> before using NULL.
59376
59377 2007-10-15  Simon Josefsson  <simon@josefsson.org>
59378
59379         * m4/getaddrinfo.m4: Use NULL rather than 0 for pointers.
59380         Reported by Albert Chin <china@thewrittenword.com>.
59381
59382 2007-10-14  Bruno Haible  <bruno@clisp.org>
59383
59384         * modules/iconv_open-utf-tests: New file.
59385         * tests/test-iconv-utf.c: New file.
59386
59387         Enhance iconv_open to support UTF-16BE, UTF-16LE, UTF-32BE, UTF-32LE.
59388         * modules/iconv_open-utf: New file.
59389         * lib/iconv.in.h (_ICONV_UTF8_UTF*, _ICONV_UTF*_UTF8): New macros.
59390         (iconv, iconv_close): New declarations.
59391         * lib/iconv_open.c: Include c-strcase.h. Don't require ICONV_FLAVOR to
59392         be defined.
59393         (iconv_open): Add special handling of conversion between UTF-8 and
59394         UTF-{16,32}{BE,LE}.
59395         * lib/iconv.c: New file, incorporating code from GNU libiconv 1.11.
59396         * lib/iconv_close.c: New file.
59397         * m4/iconv_open.m4 (gl_REPLACE_ICONV_OPEN): New macro, extracted from
59398         gl_FUNC_ICONV_OPEN.
59399         (gl_FUNC_ICONV_OPEN): Use it.
59400         (gl_FUNC_ICONV_OPEN_UTF): New macro.
59401         * m4/iconv_h.m4 (gl_ICONV_H_DEFAULTS): Initialize also REPLACE_ICONV
59402         and REPLACE_ICONV_UTF.
59403         * modules/iconv_open (Depends-on): Add c-strcase.
59404         (Makefile.am): Substitute also REPLACE_ICONV, REPLACE_ICONV_UTF,
59405         ICONV_CONST.
59406         * doc/functions/iconv_open.texi: Mention the iconv_open-utf module.
59407
59408 2007-10-13  Albert Chin  <china@thewrittenword.com>
59409             Bruno Haible  <bruno@clisp.org>
59410
59411         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Perform the test for getaddrinfo
59412         through a link check that includes <netdb.h>. Needed for OSF/1 5.1.
59413
59414 2007-10-13  Bruno Haible  <bruno@clisp.org>
59415
59416         * lib/argp-fmtstream.h (ARGP_FS_EI): If __GNUC_STDC_INLINE__ is
59417         defined, use the ISO C99 inline semantics.
59418         * lib/argp.h (ARGP_EI): Likewise.
59419
59420 2007-10-13  Bruno Haible  <bruno@clisp.org>
59421
59422         Handle 'inline' change in gcc 4.3.0.
59423         * lib/argp-fmtstream.h (argp_fmtstream_putc, argp_fmtstream_puts,
59424         argp_fmtstream_write, argp_fmtstream_set_lmargin,
59425         argp_fmtstream_set_rmargin, argp_fmtstream_set_wmargin,
59426         argp_fmtstream_point): Disable 'extern' declaration if the function
59427         definition is going to be provided inline.
59428         (ARGP_FS_EI): If __GNUC_STDC_INLINE__ is defined, use the GNU C inline
59429         semantics, not the ISO C99 inline semantics.
59430         * lib/argp.h (argp_usage, _option_is_short, _option_is_end): Disable
59431         'extern' declaration if the function definition is going to be provided
59432         inline.
59433         (ARGP_EI): Don't assume GNU C. If __GNUC_STDC_INLINE__ is defined, use
59434         the GNU C inline semantics, not the ISO C99 inline semantics. With
59435         GCC 4.2, avoid a warning.
59436
59437 2007-10-13  Bruno Haible  <bruno@clisp.org>
59438
59439         * lib/freading.h (freading): Enable the use of __freading for
59440         glibc >= 2.7.
59441         * lib/freading.c (freading): Likewise.
59442
59443 2007-10-12  Paul Eggert  <eggert@cs.ucla.edu>
59444
59445         * lib/argp-fmtstream.h (ARGP_FS_EI): Work around GCC 4.2.1 diagnostic
59446         "warning: C99 inline functions are not supported; using GNU89".
59447
59448 2007-10-12  Bruno Haible  <bruno@clisp.org>
59449
59450         * lib/ceil.c (FUNC): Avoid rounding errors for values near a power
59451         of 2.
59452         * tests/test-ceilf2.c: New file.
59453         * modules/ceilf-tests: (Files, Depends-on, Makefile.am): Add new test.
59454
59455         * tests/test-ceilf1.c: Renamed from tests/test-ceilf.c.
59456         * modules/ceilf-tests: Update.
59457
59458 2007-10-12  Bruno Haible  <bruno@clisp.org>
59459
59460         * lib/floor.c (FUNC): Avoid rounding errors for values near a power
59461         of 2.
59462         * tests/test-floorf2.c: New file.
59463         * modules/floorf-tests: (Files, Depends-on, Makefile.am): Add new test.
59464
59465         * tests/test-floorf1.c: Renamed from tests/test-floorf.c.
59466         * modules/floorf-tests: Update.
59467
59468 2007-10-12  Bruno Haible  <bruno@clisp.org>
59469
59470         * tests/test-trunc2.c: New file.
59471         * modules/trunc-tests: (Files, Depends-on, Makefile.am): Add new test.
59472
59473         * tests/test-trunc1.c: Renamed from tests/test-trunc.c.
59474         * modules/trunc-tests: Update.
59475
59476 2007-10-12  Bruno Haible  <bruno@clisp.org>
59477
59478         * lib/trunc.c (FUNC): Avoid rounding errors for values near a power
59479         of 2.
59480         * tests/test-truncf2.c: New file.
59481         * modules/truncf-tests: (Files, Depends-on, Makefile.am): Add new test.
59482
59483         * tests/test-truncf1.c: Renamed from tests/test-truncf.c.
59484         * modules/truncf-tests: Update.
59485
59486 2007-10-11  Eric Blake  <ebb9@byu.net>
59487
59488         Don't claim strerror is broken on Interix.
59489         * doc/functions/strerror.texi (strerror): Known broken systems are
59490         now Solaris 8, and not Interix.
59491         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): No longer filter out
59492         Interix on cross-compile.
59493         Reported by Martin Koeppe in
59494         http://lists.gnu.org/archive/html/bug-gnulib/2007-10/msg00005.html.
59495
59496 2007-10-11  Bruno Haible  <bruno@clisp.org>
59497
59498         * modules/i-ring-tests: New file.
59499         * tests/test-i-ring.c: Renamed from lib/i-ring-test.c. Use ASSERT
59500         instead of assert.
59501
59502 2007-10-11  Bruno Haible  <bruno@clisp.org>
59503
59504         * modules/filenamecat-tests: New file.
59505         * tests/test-filenamecat.c: New file, extracted from lib/filenamecat.c.
59506         * lib/filenamecat.c: Remove test code.
59507
59508 2007-10-11  Paul Eggert  <eggert@cs.ucla.edu>
59509
59510         Simplify and modernize strerror substitute, partly to fix Solaris 8 bug.
59511
59512         * lib/strerror.c: Include <string.h> always, to test interface,
59513         and to remove the need for the dummy.
59514         Include intprops.h to compute width instead of doing it ourselves
59515         and missing a CHAR_BIT declaration, which broke tar 1.19 on Solaris 8.
59516         (strerror): Define it to return NULL if there's no system strerror.
59517         (rpl_strerror): Use INT_STRLEN_BOUND to compute bound.
59518         Omit !HAVE_STRERROR code.  We don't need to worry about supporting
59519         ancient pre-strerror Unix systems well any more.  Saying "unknown
59520         system error" is enough.
59521         * lib/string.in.h (strerror): Simplify the ifdef to reflect the
59522         simpler strerror.c implementation.
59523         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE, gl_PREREQ_STDERROR):
59524         Simplify the tests to reflect the simpler strerror implementation.
59525         * modules/strerror (Depends-on): Add intprops.
59526
59527 2007-10-09  Eric Blake  <ebb9@byu.net>
59528
59529         Silence test-fpending.
59530         * modules/fpending-tests (Files): Add wrapper script.
59531         * tests/test-fpending.sh: New file.
59532
59533 2007-10-09  Bruno Haible  <bruno@clisp.org>
59534
59535         * MODULES.html.sh (func_module): Don't create a hyperlink for
59536         function names like 'printf_frexp'.
59537         (Misc): Add crc, memxor.
59538         (Characteristics of floating types): New section.
59539         (Mathematics): Add ceilf, ceill, floorf, floorl, frexpl-nolibm,
59540         isnanf-nolibm, signbit, trunc, truncf, truncl.
59541         (Enhancements for ISO C 99 functions): New subsection Input/output.
59542         (Support for systems lacking POSIX:2001): Add arpa_inet, calloc-posix,
59543         fcntl, fopen, freopen, fseek, fseeko, ftell, ftello, iconv_open,
59544         locale, malloc-posix, netinet_in, open, realloc-posix, signal, sleep.
59545         (Compatibility checks for POSIX:2001 functions): Add clock-time.
59546         (Enhancements for POSIX:2001 functions): Add chdir-long.
59547         (File system functions): Add areadlink, chdir-safer, read-file.
59548         Remove cycle-check.
59549         (File system as inode set): New section.
59550         (Date and time): Add gethrxtime.
59551         (Multithreading): Add openmp.
59552         (Internationalization functions): Add localename.
59553         (Unicode string functions): Add unistr/u*-mbsnlen.
59554         (Support for maintaining and releasing projects): Add git-version-gen.
59555         (Lone files): Remove directories.
59556
59557 2007-10-08  Ben Pfaff  <blp@gnu.org>
59558
59559         * lib/xmalloca.h: Fix typo in comment.
59560
59561 2007-10-08  Paul Eggert  <eggert@cs.ucla.edu>
59562
59563         * lib/xnanosleep.c (xnanosleep): Don't assume GCC 4.3.0 behavior
59564         when avoiding problems with integer overflow.  Use a portable test
59565         instead.
59566
59567 2007-10-08  Simon Josefsson  <simon@josefsson.org>
59568
59569         * modules/dummy (License): Change to LGPLv2+.
59570         * modules/float (License): Likewise
59571         * modules/realloc (License): Likewise
59572         * modules/stdlib (License): Likewise
59573
59574 2007-10-07  Bruno Haible  <bruno@clisp.org>
59575
59576         * trunc.c (TWO_MANT_DIG): Change type to DOUBLE.
59577         * floor.c (TWO_MANT_DIG): Likewise.
59578         * ceil.c (TWO_MANT_DIG): Likewise.
59579         Reported by Ben Pfaff.
59580
59581 2007-10-07  Bruno Haible  <bruno@clisp.org>
59582
59583         Avoid gcc warnings "declaration of 'exp' shadows a global declaration".
59584         * lib/math.in.h (frexp, frexpl): Change parameter name to 'expptr'.
59585         * lib/frexp.c (FUNC): Likewise.
59586         * lib/printf-frexp.h (printf_frexp): Likewise.
59587         * lib/printf-frexpl.h (printf_frexpl): Likewise.
59588         * lib/printf-frexp.c (FUNC): Likewise.
59589         Suggested by Jim Meyering.
59590
59591 2007-10-07  Jim Meyering  <meyering@redhat.com>
59592
59593         Make xnanosleep's integer overflow test more robust.
59594         * lib/xnanosleep.c (xnanosleep): Declare a temporary to be "volatile",
59595         so that gcc-4.3.0 doesn't optimize away this test for overflow.
59596
59597 2007-10-07  Bruno Haible  <bruno@clisp.org>
59598
59599         * NEWS: Mention the license change.
59600
59601         * doc/gnulib-intro.texi (Copyright): Update the meaning of the license
59602         abbreviations in the modules files.
59603
59604         Change copyright notice from GPLv2+ to GPLv3+.
59605         * README: Change copyright notice.
59606         * MODULES.html.sh: Likewise.
59607         * build-aux/bootstrap.conf: Likewise.
59608         * build-aux/config.libpath: Likewise.
59609         * build-aux/csharpcomp.sh.in: Likewise.
59610         * build-aux/csharpexec.sh.in: Likewise.
59611         * build-aux/install-reloc: Likewise.
59612         * build-aux/javacomp.sh.in: Likewise.
59613         * build-aux/javaexec.sh.in: Likewise.
59614         * build-aux/ldd.sh.in: Likewise.
59615         * build-aux/reloc-ldflags: Likewise.
59616         * build-aux/relocatable.sh.in: Likewise.
59617         * build-aux/x-to-1.in: Likewise.
59618         * check-module: Likewise.
59619         * config/srclistvars.sh: Likewise.
59620         * gnulib-tool: Likewise.
59621         * lib/acl-internal.h: Likewise.
59622         * lib/acl.c: Likewise.
59623         * lib/acl.h: Likewise.
59624         * lib/acl_entries.c: Likewise.
59625         * lib/areadlink-with-size.c: Likewise.
59626         * lib/areadlink.c: Likewise.
59627         * lib/areadlink.h: Likewise.
59628         * lib/argmatch.c: Likewise.
59629         * lib/argmatch.h: Likewise.
59630         * lib/argp-ba.c: Likewise.
59631         * lib/argp-eexst.c: Likewise.
59632         * lib/argp-fmtstream.c: Likewise.
59633         * lib/argp-fmtstream.h: Likewise.
59634         * lib/argp-fs-xinl.c: Likewise.
59635         * lib/argp-help.c: Likewise.
59636         * lib/argp-namefrob.h: Likewise.
59637         * lib/argp-parse.c: Likewise.
59638         * lib/argp-pin.c: Likewise.
59639         * lib/argp-pv.c: Likewise.
59640         * lib/argp-pvh.c: Likewise.
59641         * lib/argp-xinl.c: Likewise.
59642         * lib/argp.h: Likewise.
59643         * lib/at-func.c: Likewise.
59644         * lib/atanl.c: Likewise.
59645         * lib/backupfile.c: Likewise.
59646         * lib/backupfile.h: Likewise.
59647         * lib/basename.c: Likewise.
59648         * lib/binary-io.h: Likewise.
59649         * lib/byteswap.in.h: Likewise.
59650         * lib/c-stack.c: Likewise.
59651         * lib/c-stack.h: Likewise.
59652         * lib/c-strcasestr.c: Likewise.
59653         * lib/c-strcasestr.h: Likewise.
59654         * lib/c-strstr.c: Likewise.
59655         * lib/c-strstr.h: Likewise.
59656         * lib/c-strtod.c: Likewise.
59657         * lib/calloc.c: Likewise.
59658         * lib/canon-host.c: Likewise.
59659         * lib/canon-host.h: Likewise.
59660         * lib/canonicalize-lgpl.c: Likewise.
59661         * lib/canonicalize.c: Likewise.
59662         * lib/canonicalize.h: Likewise.
59663         * lib/ceil.c: Likewise.
59664         * lib/ceilf.c: Likewise.
59665         * lib/ceill.c: Likewise.
59666         * lib/chdir-long.c: Likewise.
59667         * lib/chdir-long.h: Likewise.
59668         * lib/chdir-safer.c: Likewise.
59669         * lib/chdir-safer.h: Likewise.
59670         * lib/chown.c: Likewise.
59671         * lib/classpath.c: Likewise.
59672         * lib/classpath.h: Likewise.
59673         * lib/clean-temp.c: Likewise.
59674         * lib/clean-temp.h: Likewise.
59675         * lib/cloexec.c: Likewise.
59676         * lib/close-stream.c: Likewise.
59677         * lib/closein.c: Likewise.
59678         * lib/closein.h: Likewise.
59679         * lib/closeout.c: Likewise.
59680         * lib/closeout.h: Likewise.
59681         * lib/concat-filename.c: Likewise.
59682         * lib/copy-file.c: Likewise.
59683         * lib/copy-file.h: Likewise.
59684         * lib/count-one-bits.h: Likewise.
59685         * lib/crc.c: Likewise.
59686         * lib/crc.h: Likewise.
59687         * lib/creat-safer.c: Likewise.
59688         * lib/csharpcomp.c: Likewise.
59689         * lib/csharpcomp.h: Likewise.
59690         * lib/csharpexec.c: Likewise.
59691         * lib/csharpexec.h: Likewise.
59692         * lib/cycle-check.c: Likewise.
59693         * lib/cycle-check.h: Likewise.
59694         * lib/diacrit.c: Likewise.
59695         * lib/diacrit.h: Likewise.
59696         * lib/diffseq.h: Likewise.
59697         * lib/dirchownmod.c: Likewise.
59698         * lib/dirent.in.h: Likewise.
59699         * lib/dirfd.c: Likewise.
59700         * lib/dirfd.h: Likewise.
59701         * lib/dirname.c: Likewise.
59702         * lib/dirname.h: Likewise.
59703         * lib/dummy.c: Likewise.
59704         * lib/dup-safer.c: Likewise.
59705         * lib/dup2.c: Likewise.
59706         * lib/eealloc.h: Likewise.
59707         * lib/error.c: Likewise.
59708         * lib/error.h: Likewise.
59709         * lib/euidaccess.c: Likewise.
59710         * lib/exclude.c: Likewise.
59711         * lib/exclude.h: Likewise.
59712         * lib/execute.c: Likewise.
59713         * lib/execute.h: Likewise.
59714         * lib/exitfail.c: Likewise.
59715         * lib/exitfail.h: Likewise.
59716         * lib/expl.c: Likewise.
59717         * lib/fatal-signal.c: Likewise.
59718         * lib/fatal-signal.h: Likewise.
59719         * lib/fbufmode.c: Likewise.
59720         * lib/fbufmode.h: Likewise.
59721         * lib/fchdir.c: Likewise.
59722         * lib/fchmodat.c: Likewise.
59723         * lib/fchownat.c: Likewise.
59724         * lib/fcntl--.h: Likewise.
59725         * lib/fcntl-safer.h: Likewise.
59726         * lib/fcntl.in.h: Likewise.
59727         * lib/fd-safer.c: Likewise.
59728         * lib/fflush.c: Likewise.
59729         * lib/file-has-acl.c: Likewise.
59730         * lib/file-set.c: Likewise.
59731         * lib/file-type.c: Likewise.
59732         * lib/file-type.h: Likewise.
59733         * lib/fileblocks.c: Likewise.
59734         * lib/filemode.c: Likewise.
59735         * lib/filemode.h: Likewise.
59736         * lib/filename.h: Likewise.
59737         * lib/filenamecat.c: Likewise.
59738         * lib/filenamecat.h: Likewise.
59739         * lib/findprog.c: Likewise.
59740         * lib/findprog.h: Likewise.
59741         * lib/float.in.h: Likewise.
59742         * lib/floor.c: Likewise.
59743         * lib/floorf.c: Likewise.
59744         * lib/floorl.c: Likewise.
59745         * lib/fopen-safer.c: Likewise.
59746         * lib/fopen.c: Likewise.
59747         * lib/fpending.c: Likewise.
59748         * lib/fpending.h: Likewise.
59749         * lib/fprintf.c: Likewise.
59750         * lib/fprintftime.h: Likewise.
59751         * lib/fpucw.h: Likewise.
59752         * lib/fpurge.c: Likewise.
59753         * lib/fpurge.h: Likewise.
59754         * lib/freadable.c: Likewise.
59755         * lib/freadable.h: Likewise.
59756         * lib/freadahead.c: Likewise.
59757         * lib/freadahead.h: Likewise.
59758         * lib/freading.c: Likewise.
59759         * lib/freading.h: Likewise.
59760         * lib/free.c: Likewise.
59761         * lib/freopen.c: Likewise.
59762         * lib/frexp.c: Likewise.
59763         * lib/frexpl.c: Likewise.
59764         * lib/fseek.c: Likewise.
59765         * lib/fseterr.c: Likewise.
59766         * lib/fseterr.h: Likewise.
59767         * lib/fstatat.c: Likewise.
59768         * lib/fstrcmp.c: Likewise.
59769         * lib/fstrcmp.h: Likewise.
59770         * lib/fsusage.c: Likewise.
59771         * lib/fsusage.h: Likewise.
59772         * lib/ftell.c: Likewise.
59773         * lib/ftello.c: Likewise.
59774         * lib/fts-cycle.c: Likewise.
59775         * lib/fts.c: Likewise.
59776         * lib/fts_.h: Likewise.
59777         * lib/full-read.c: Likewise.
59778         * lib/full-read.h: Likewise.
59779         * lib/full-write.c: Likewise.
59780         * lib/full-write.h: Likewise.
59781         * lib/fwritable.c: Likewise.
59782         * lib/fwritable.h: Likewise.
59783         * lib/fwriteerror.c: Likewise.
59784         * lib/fwriteerror.h: Likewise.
59785         * lib/fwriting.c: Likewise.
59786         * lib/fwriting.h: Likewise.
59787         * lib/gcd.c: Likewise.
59788         * lib/gcd.h: Likewise.
59789         * lib/getcwd.c: Likewise.
59790         * lib/getdate.h: Likewise.
59791         * lib/getdate.y: Likewise.
59792         * lib/getdomainname.c: Likewise.
59793         * lib/getdomainname.h: Likewise.
59794         * lib/getgroups.c: Likewise.
59795         * lib/gethostname.c: Likewise.
59796         * lib/gethrxtime.c: Likewise.
59797         * lib/gethrxtime.h: Likewise.
59798         * lib/getloadavg.c: Likewise.
59799         * lib/getndelim2.c: Likewise.
59800         * lib/getndelim2.h: Likewise.
59801         * lib/getnline.c: Likewise.
59802         * lib/getnline.h: Likewise.
59803         * lib/getopt.c: Likewise.
59804         * lib/getopt.in.h: Likewise.
59805         * lib/getopt1.c: Likewise.
59806         * lib/getopt_int.h: Likewise.
59807         * lib/getpagesize.h: Likewise.
59808         * lib/getsubopt.c: Likewise.
59809         * lib/gettime.c: Likewise.
59810         * lib/getugroups.c: Likewise.
59811         * lib/getugroups.h: Likewise.
59812         * lib/getusershell.c: Likewise.
59813         * lib/gl_anyavltree_list1.h: Likewise.
59814         * lib/gl_anyavltree_list2.h: Likewise.
59815         * lib/gl_anyhash_list1.h: Likewise.
59816         * lib/gl_anyhash_list2.h: Likewise.
59817         * lib/gl_anylinked_list1.h: Likewise.
59818         * lib/gl_anylinked_list2.h: Likewise.
59819         * lib/gl_anyrbtree_list1.h: Likewise.
59820         * lib/gl_anyrbtree_list2.h: Likewise.
59821         * lib/gl_anytree_list1.h: Likewise.
59822         * lib/gl_anytree_list2.h: Likewise.
59823         * lib/gl_anytree_oset.h: Likewise.
59824         * lib/gl_anytreehash_list1.h: Likewise.
59825         * lib/gl_anytreehash_list2.h: Likewise.
59826         * lib/gl_array_list.c: Likewise.
59827         * lib/gl_array_list.h: Likewise.
59828         * lib/gl_array_oset.c: Likewise.
59829         * lib/gl_array_oset.h: Likewise.
59830         * lib/gl_avltree_list.c: Likewise.
59831         * lib/gl_avltree_list.h: Likewise.
59832         * lib/gl_avltree_oset.c: Likewise.
59833         * lib/gl_avltree_oset.h: Likewise.
59834         * lib/gl_avltreehash_list.c: Likewise.
59835         * lib/gl_avltreehash_list.h: Likewise.
59836         * lib/gl_carray_list.c: Likewise.
59837         * lib/gl_carray_list.h: Likewise.
59838         * lib/gl_linked_list.c: Likewise.
59839         * lib/gl_linked_list.h: Likewise.
59840         * lib/gl_linkedhash_list.c: Likewise.
59841         * lib/gl_linkedhash_list.h: Likewise.
59842         * lib/gl_list.c: Likewise.
59843         * lib/gl_list.h: Likewise.
59844         * lib/gl_oset.c: Likewise.
59845         * lib/gl_oset.h: Likewise.
59846         * lib/gl_rbtree_list.c: Likewise.
59847         * lib/gl_rbtree_list.h: Likewise.
59848         * lib/gl_rbtree_oset.c: Likewise.
59849         * lib/gl_rbtree_oset.h: Likewise.
59850         * lib/gl_rbtreehash_list.c: Likewise.
59851         * lib/gl_rbtreehash_list.h: Likewise.
59852         * lib/gl_sublist.c: Likewise.
59853         * lib/gl_sublist.h: Likewise.
59854         * lib/group-member.c: Likewise.
59855         * lib/group-member.h: Likewise.
59856         * lib/hard-locale.c: Likewise.
59857         * lib/hard-locale.h: Likewise.
59858         * lib/hash-pjw.c: Likewise.
59859         * lib/hash-pjw.h: Likewise.
59860         * lib/hash-triple.c: Likewise.
59861         * lib/hash.c: Likewise.
59862         * lib/hash.h: Likewise.
59863         * lib/human.c: Likewise.
59864         * lib/human.h: Likewise.
59865         * lib/i-ring.c: Likewise.
59866         * lib/i-ring.h: Likewise.
59867         * lib/idcache.c: Likewise.
59868         * lib/imaxabs.c: Likewise.
59869         * lib/imaxdiv.c: Likewise.
59870         * lib/inet_pton.c: Likewise.
59871         * lib/inet_pton.h: Likewise.
59872         * lib/intprops.h: Likewise.
59873         * lib/inttostr.c: Likewise.
59874         * lib/inttostr.h: Likewise.
59875         * lib/inttypes.in.h: Likewise.
59876         * lib/isapipe.c: Likewise.
59877         * lib/isdir.c: Likewise.
59878         * lib/isnan.c: Likewise.
59879         * lib/isnan.h: Likewise.
59880         * lib/isnanf.c: Likewise.
59881         * lib/isnanf.h: Likewise.
59882         * lib/isnanl-nolibm.h: Likewise.
59883         * lib/isnanl.c: Likewise.
59884         * lib/isnanl.h: Likewise.
59885         * lib/javacomp.c: Likewise.
59886         * lib/javacomp.h: Likewise.
59887         * lib/javaexec.c: Likewise.
59888         * lib/javaexec.h: Likewise.
59889         * lib/javaversion.c: Likewise.
59890         * lib/javaversion.h: Likewise.
59891         * lib/javaversion.java: Likewise.
59892         * lib/lbrkprop.h: Likewise.
59893         * lib/lchmod.h: Likewise.
59894         * lib/lchown.c: Likewise.
59895         * lib/ldexpl.c: Likewise.
59896         * lib/linebreak.c: Likewise.
59897         * lib/linebreak.h: Likewise.
59898         * lib/linebuffer.c: Likewise.
59899         * lib/linebuffer.h: Likewise.
59900         * lib/locale.in.h: Likewise.
59901         * lib/logl.c: Likewise.
59902         * lib/long-options.c: Likewise.
59903         * lib/long-options.h: Likewise.
59904         * lib/lstat.c: Likewise.
59905         * lib/lstat.h: Likewise.
59906         * lib/math.in.h: Likewise.
59907         * lib/mbchar.c: Likewise.
59908         * lib/mbchar.h: Likewise.
59909         * lib/mbfile.h: Likewise.
59910         * lib/mbiter.h: Likewise.
59911         * lib/mbscasecmp.c: Likewise.
59912         * lib/mbscasestr.c: Likewise.
59913         * lib/mbschr.c: Likewise.
59914         * lib/mbscspn.c: Likewise.
59915         * lib/mbslen.c: Likewise.
59916         * lib/mbsncasecmp.c: Likewise.
59917         * lib/mbsnlen.c: Likewise.
59918         * lib/mbspbrk.c: Likewise.
59919         * lib/mbspcasecmp.c: Likewise.
59920         * lib/mbsrchr.c: Likewise.
59921         * lib/mbssep.c: Likewise.
59922         * lib/mbsspn.c: Likewise.
59923         * lib/mbsstr.c: Likewise.
59924         * lib/mbstok_r.c: Likewise.
59925         * lib/mbswidth.c: Likewise.
59926         * lib/mbswidth.h: Likewise.
59927         * lib/mbuiter.h: Likewise.
59928         * lib/memcasecmp.c: Likewise.
59929         * lib/memcasecmp.h: Likewise.
59930         * lib/memchr.c: Likewise.
59931         * lib/memcmp.c: Likewise.
59932         * lib/memcoll.c: Likewise.
59933         * lib/memcoll.h: Likewise.
59934         * lib/memcpy.c: Likewise.
59935         * lib/memrchr.c: Likewise.
59936         * lib/mkancesdirs.c: Likewise.
59937         * lib/mkdir-p.c: Likewise.
59938         * lib/mkdir-p.h: Likewise.
59939         * lib/mkdir.c: Likewise.
59940         * lib/mkdirat.c: Likewise.
59941         * lib/mkdtemp.c: Likewise.
59942         * lib/mkstemp-safer.c: Likewise.
59943         * lib/mkstemp.c: Likewise.
59944         * lib/modechange.c: Likewise.
59945         * lib/modechange.h: Likewise.
59946         * lib/mountlist.c: Likewise.
59947         * lib/mountlist.h: Likewise.
59948         * lib/mpsort.c: Likewise.
59949         * lib/nanosleep.c: Likewise.
59950         * lib/obstack.c: Likewise.
59951         * lib/obstack.h: Likewise.
59952         * lib/open-safer.c: Likewise.
59953         * lib/open.c: Likewise.
59954         * lib/openat-die.c: Likewise.
59955         * lib/openat-priv.h: Likewise.
59956         * lib/openat-proc.c: Likewise.
59957         * lib/openat.c: Likewise.
59958         * lib/openat.h: Likewise.
59959         * lib/pagealign_alloc.c: Likewise.
59960         * lib/pagealign_alloc.h: Likewise.
59961         * lib/physmem.c: Likewise.
59962         * lib/physmem.h: Likewise.
59963         * lib/pipe-safer.c: Likewise.
59964         * lib/pipe.c: Likewise.
59965         * lib/pipe.h: Likewise.
59966         * lib/posixtm.c: Likewise.
59967         * lib/posixtm.h: Likewise.
59968         * lib/posixver.c: Likewise.
59969         * lib/printf-frexp.c: Likewise.
59970         * lib/printf-frexp.h: Likewise.
59971         * lib/printf-frexpl.c: Likewise.
59972         * lib/printf-frexpl.h: Likewise.
59973         * lib/printf.c: Likewise.
59974         * lib/progname.c: Likewise.
59975         * lib/progname.h: Likewise.
59976         * lib/progreloc.c: Likewise.
59977         * lib/putenv.c: Likewise.
59978         * lib/quote.c: Likewise.
59979         * lib/quote.h: Likewise.
59980         * lib/quotearg.c: Likewise.
59981         * lib/quotearg.h: Likewise.
59982         * lib/raise.c: Likewise.
59983         * lib/readline.c: Likewise.
59984         * lib/readline.h: Likewise.
59985         * lib/readlink.c: Likewise.
59986         * lib/readtokens.c: Likewise.
59987         * lib/readtokens.h: Likewise.
59988         * lib/readtokens0.c: Likewise.
59989         * lib/readtokens0.h: Likewise.
59990         * lib/readutmp.c: Likewise.
59991         * lib/readutmp.h: Likewise.
59992         * lib/realloc.c: Likewise.
59993         * lib/relocwrapper.c: Likewise.
59994         * lib/rename-dest-slash.c: Likewise.
59995         * lib/rename.c: Likewise.
59996         * lib/rmdir.c: Likewise.
59997         * lib/rpmatch.c: Likewise.
59998         * lib/safe-read.c: Likewise.
59999         * lib/safe-read.h: Likewise.
60000         * lib/safe-write.c: Likewise.
60001         * lib/safe-write.h: Likewise.
60002         * lib/same-inode.h: Likewise.
60003         * lib/same.c: Likewise.
60004         * lib/same.h: Likewise.
60005         * lib/save-cwd.c: Likewise.
60006         * lib/save-cwd.h: Likewise.
60007         * lib/savedir.c: Likewise.
60008         * lib/savedir.h: Likewise.
60009         * lib/savewd.c: Likewise.
60010         * lib/savewd.h: Likewise.
60011         * lib/search.in.h: Likewise.
60012         * lib/setenv.c: Likewise.
60013         * lib/setenv.h: Likewise.
60014         * lib/settime.c: Likewise.
60015         * lib/sh-quote.c: Likewise.
60016         * lib/sh-quote.h: Likewise.
60017         * lib/sig2str.c: Likewise.
60018         * lib/sig2str.h: Likewise.
60019         * lib/signal.in.h: Likewise.
60020         * lib/signbitd.c: Likewise.
60021         * lib/signbitf.c: Likewise.
60022         * lib/signbitl.c: Likewise.
60023         * lib/sigprocmask.c: Likewise.
60024         * lib/sincosl.c: Likewise.
60025         * lib/sleep.c: Likewise.
60026         * lib/sprintf.c: Likewise.
60027         * lib/sqrtl.c: Likewise.
60028         * lib/stat-time.h: Likewise.
60029         * lib/stdio--.h: Likewise.
60030         * lib/stdio-safer.h: Likewise.
60031         * lib/stdlib--.h: Likewise.
60032         * lib/stdlib-safer.h: Likewise.
60033         * lib/stdlib.in.h: Likewise.
60034         * lib/stpcpy.c: Likewise.
60035         * lib/stpncpy.c: Likewise.
60036         * lib/strchrnul.c: Likewise.
60037         * lib/strcspn.c: Likewise.
60038         * lib/strerror.c: Likewise.
60039         * lib/strftime.c: Likewise.
60040         * lib/strftime.h: Likewise.
60041         * lib/striconveh.c: Likewise.
60042         * lib/striconveh.h: Likewise.
60043         * lib/striconveha.c: Likewise.
60044         * lib/striconveha.h: Likewise.
60045         * lib/stripslash.c: Likewise.
60046         * lib/strnlen1.c: Likewise.
60047         * lib/strnlen1.h: Likewise.
60048         * lib/strtod.c: Likewise.
60049         * lib/strtoimax.c: Likewise.
60050         * lib/strtok_r.c: Likewise.
60051         * lib/strtol.c: Likewise.
60052         * lib/strtoll.c: Likewise.
60053         * lib/strtoul.c: Likewise.
60054         * lib/strtoull.c: Likewise.
60055         * lib/sysexits.in.h: Likewise.
60056         * lib/tempname.c: Likewise.
60057         * lib/tempname.h: Likewise.
60058         * lib/timespec.h: Likewise.
60059         * lib/tls.c: Likewise.
60060         * lib/tls.h: Likewise.
60061         * lib/tmpdir.c: Likewise.
60062         * lib/tmpdir.h: Likewise.
60063         * lib/tmpfile-safer.c: Likewise.
60064         * lib/tmpfile.c: Likewise.
60065         * lib/trigl.c: Likewise.
60066         * lib/trigl.h: Likewise.
60067         * lib/trim.c: Likewise.
60068         * lib/trim.h: Likewise.
60069         * lib/trunc.c: Likewise.
60070         * lib/truncf.c: Likewise.
60071         * lib/truncl.c: Likewise.
60072         * lib/tsearch.c: Likewise.
60073         * lib/unicodeio.c: Likewise.
60074         * lib/unicodeio.h: Likewise.
60075         * lib/unistd--.h: Likewise.
60076         * lib/unistd-safer.h: Likewise.
60077         * lib/unistdio/ulc-fprintf.c: Likewise.
60078         * lib/unistdio/ulc-vfprintf.c: Likewise.
60079         * lib/unlinkdir.c: Likewise.
60080         * lib/unlinkdir.h: Likewise.
60081         * lib/unlocked-io.h: Likewise.
60082         * lib/unsetenv.c: Likewise.
60083         * lib/userspec.c: Likewise.
60084         * lib/utime.c: Likewise.
60085         * lib/utimecmp.c: Likewise.
60086         * lib/utimecmp.h: Likewise.
60087         * lib/utimens.c: Likewise.
60088         * lib/verify.h: Likewise.
60089         * lib/verror.c: Likewise.
60090         * lib/verror.h: Likewise.
60091         * lib/version-etc-fsf.c: Likewise.
60092         * lib/version-etc.c: Likewise.
60093         * lib/version-etc.h: Likewise.
60094         * lib/vfprintf.c: Likewise.
60095         * lib/vprintf.c: Likewise.
60096         * lib/vsprintf.c: Likewise.
60097         * lib/w32spawn.h: Likewise.
60098         * lib/wait-process.c: Likewise.
60099         * lib/wait-process.h: Likewise.
60100         * lib/wcwidth.c: Likewise.
60101         * lib/write-any-file.c: Likewise.
60102         * lib/xalloc-die.c: Likewise.
60103         * lib/xalloc.h: Likewise.
60104         * lib/xasprintf.c: Likewise.
60105         * lib/xgetcwd.c: Likewise.
60106         * lib/xgetcwd.h: Likewise.
60107         * lib/xgetdomainname.c: Likewise.
60108         * lib/xgetdomainname.h: Likewise.
60109         * lib/xgethostname.c: Likewise.
60110         * lib/xmalloc.c: Likewise.
60111         * lib/xmalloca.c: Likewise.
60112         * lib/xmalloca.h: Likewise.
60113         * lib/xmemcoll.c: Likewise.
60114         * lib/xnanosleep.c: Likewise.
60115         * lib/xreadlink.c: Likewise.
60116         * lib/xreadlink.h: Likewise.
60117         * lib/xsetenv.c: Likewise.
60118         * lib/xsetenv.h: Likewise.
60119         * lib/xstriconv.c: Likewise.
60120         * lib/xstriconv.h: Likewise.
60121         * lib/xstrndup.c: Likewise.
60122         * lib/xstrndup.h: Likewise.
60123         * lib/xstrtod.c: Likewise.
60124         * lib/xstrtod.h: Likewise.
60125         * lib/xstrtol-error.c: Likewise.
60126         * lib/xstrtol.c: Likewise.
60127         * lib/xstrtol.h: Likewise.
60128         * lib/xtime.h: Likewise.
60129         * lib/xvasprintf.c: Likewise.
60130         * lib/xvasprintf.h: Likewise.
60131         * lib/yesno.c: Likewise.
60132         * lib/yesno.h: Likewise.
60133         * posix-modules: Likewise.
60134         * tests/test-alloca-opt.c: Likewise.
60135         * tests/test-arcfour.c: Likewise.
60136         * tests/test-arctwo.c: Likewise.
60137         * tests/test-argmatch.c: Likewise.
60138         * tests/test-argp-2.sh: Likewise.
60139         * tests/test-argp.c: Likewise.
60140         * tests/test-arpa_inet.c: Likewise.
60141         * tests/test-array_list.c: Likewise.
60142         * tests/test-array_oset.c: Likewise.
60143         * tests/test-atexit.c: Likewise.
60144         * tests/test-avltree_list.c: Likewise.
60145         * tests/test-avltree_oset.c: Likewise.
60146         * tests/test-avltreehash_list.c: Likewise.
60147         * tests/test-base64.c: Likewise.
60148         * tests/test-binary-io.c: Likewise.
60149         * tests/test-byteswap.c: Likewise.
60150         * tests/test-c-ctype.c: Likewise.
60151         * tests/test-c-strcasecmp.c: Likewise.
60152         * tests/test-c-strcasestr.c: Likewise.
60153         * tests/test-c-strncasecmp.c: Likewise.
60154         * tests/test-c-strstr.c: Likewise.
60155         * tests/test-canonicalize-lgpl.c: Likewise.
60156         * tests/test-canonicalize.c: Likewise.
60157         * tests/test-carray_list.c: Likewise.
60158         * tests/test-ceilf.c: Likewise.
60159         * tests/test-ceill.c: Likewise.
60160         * tests/test-count-one-bits.c: Likewise.
60161         * tests/test-crc.c: Likewise.
60162         * tests/test-dirname.c: Likewise.
60163         * tests/test-fbufmode.c: Likewise.
60164         * tests/test-fcntl.c: Likewise.
60165         * tests/test-fflush.c: Likewise.
60166         * tests/test-floorf.c: Likewise.
60167         * tests/test-floorl.c: Likewise.
60168         * tests/test-fopen.c: Likewise.
60169         * tests/test-fprintf-posix.c: Likewise.
60170         * tests/test-fprintf-posix.h: Likewise.
60171         * tests/test-fpurge.c: Likewise.
60172         * tests/test-freadable.c: Likewise.
60173         * tests/test-freadahead.c: Likewise.
60174         * tests/test-freading.c: Likewise.
60175         * tests/test-freopen.c: Likewise.
60176         * tests/test-frexp.c: Likewise.
60177         * tests/test-frexpl.c: Likewise.
60178         * tests/test-fseek.c: Likewise.
60179         * tests/test-fseeko.c: Likewise.
60180         * tests/test-fseterr.c: Likewise.
60181         * tests/test-fstrcmp.c: Likewise.
60182         * tests/test-ftell.c: Likewise.
60183         * tests/test-ftello.c: Likewise.
60184         * tests/test-fwritable.c: Likewise.
60185         * tests/test-fwriting.c: Likewise.
60186         * tests/test-getaddrinfo.c: Likewise.
60187         * tests/test-getpass.c: Likewise.
60188         * tests/test-gettimeofday.c: Likewise.
60189         * tests/test-hmac-md5.c: Likewise.
60190         * tests/test-hmac-sha1.c: Likewise.
60191         * tests/test-iconv.c: Likewise.
60192         * tests/test-iconvme.c: Likewise.
60193         * tests/test-inttypes.c: Likewise.
60194         * tests/test-isnan.c: Likewise.
60195         * tests/test-isnanf.c: Likewise.
60196         * tests/test-isnanl-nolibm.c: Likewise.
60197         * tests/test-isnanl.c: Likewise.
60198         * tests/test-isnanl.h: Likewise.
60199         * tests/test-ldexpl.c: Likewise.
60200         * tests/test-linked_list.c: Likewise.
60201         * tests/test-linkedhash_list.c: Likewise.
60202         * tests/test-locale.c: Likewise.
60203         * tests/test-localename.c: Likewise.
60204         * tests/test-lock.c: Likewise.
60205         * tests/test-lseek.c: Likewise.
60206         * tests/test-malloca.c: Likewise.
60207         * tests/test-math.c: Likewise.
60208         * tests/test-mbscasecmp.c: Likewise.
60209         * tests/test-mbscasestr1.c: Likewise.
60210         * tests/test-mbscasestr2.c: Likewise.
60211         * tests/test-mbscasestr3.c: Likewise.
60212         * tests/test-mbscasestr4.c: Likewise.
60213         * tests/test-mbschr.c: Likewise.
60214         * tests/test-mbscspn.c: Likewise.
60215         * tests/test-mbsncasecmp.c: Likewise.
60216         * tests/test-mbspbrk.c: Likewise.
60217         * tests/test-mbspcasecmp.c: Likewise.
60218         * tests/test-mbsrchr.c: Likewise.
60219         * tests/test-mbsspn.c: Likewise.
60220         * tests/test-mbsstr1.c: Likewise.
60221         * tests/test-mbsstr2.c: Likewise.
60222         * tests/test-mbsstr3.c: Likewise.
60223         * tests/test-md5.c: Likewise.
60224         * tests/test-memmem.c: Likewise.
60225         * tests/test-netinet_in.c: Likewise.
60226         * tests/test-open.c: Likewise.
60227         * tests/test-printf-frexp.c: Likewise.
60228         * tests/test-printf-frexpl.c: Likewise.
60229         * tests/test-printf-posix.c: Likewise.
60230         * tests/test-printf-posix.h: Likewise.
60231         * tests/test-rbtree_list.c: Likewise.
60232         * tests/test-rbtree_oset.c: Likewise.
60233         * tests/test-rbtreehash_list.c: Likewise.
60234         * tests/test-read-file.c: Likewise.
60235         * tests/test-rijndael.c: Likewise.
60236         * tests/test-search.c: Likewise.
60237         * tests/test-signbit.c: Likewise.
60238         * tests/test-sleep.c: Likewise.
60239         * tests/test-snprintf-posix.c: Likewise.
60240         * tests/test-snprintf-posix.h: Likewise.
60241         * tests/test-snprintf.c: Likewise.
60242         * tests/test-sprintf-posix.c: Likewise.
60243         * tests/test-sprintf-posix.h: Likewise.
60244         * tests/test-stat-time.c: Likewise.
60245         * tests/test-stdbool.c: Likewise.
60246         * tests/test-stdint.c: Likewise.
60247         * tests/test-stdio.c: Likewise.
60248         * tests/test-stdlib.c: Likewise.
60249         * tests/test-stpncpy.c: Likewise.
60250         * tests/test-strcasestr.c: Likewise.
60251         * tests/test-striconv.c: Likewise.
60252         * tests/test-striconveh.c: Likewise.
60253         * tests/test-striconveha.c: Likewise.
60254         * tests/test-string.c: Likewise.
60255         * tests/test-sys_select.c: Likewise.
60256         * tests/test-sys_socket.c: Likewise.
60257         * tests/test-sys_stat.c: Likewise.
60258         * tests/test-sys_time.c: Likewise.
60259         * tests/test-sysexits.c: Likewise.
60260         * tests/test-time.c: Likewise.
60261         * tests/test-tls.c: Likewise.
60262         * tests/test-trunc.c: Likewise.
60263         * tests/test-truncf.c: Likewise.
60264         * tests/test-truncl.c: Likewise.
60265         * tests/test-unistd.c: Likewise.
60266         * tests/test-vasnprintf-posix.c: Likewise.
60267         * tests/test-vasnprintf-posix2.c: Likewise.
60268         * tests/test-vasnprintf.c: Likewise.
60269         * tests/test-vasprintf-posix.c: Likewise.
60270         * tests/test-vasprintf.c: Likewise.
60271         * tests/test-verify.c: Likewise.
60272         * tests/test-vfprintf-posix.c: Likewise.
60273         * tests/test-vprintf-posix.c: Likewise.
60274         * tests/test-vsnprintf-posix.c: Likewise.
60275         * tests/test-vsnprintf.c: Likewise.
60276         * tests/test-vsprintf-posix.c: Likewise.
60277         * tests/test-wchar.c: Likewise.
60278         * tests/test-wctype.c: Likewise.
60279         * tests/test-wcwidth.c: Likewise.
60280         * tests/test-xstrtol.c: Likewise.
60281         * tests/test-xvasprintf.c: Likewise.
60282         * tests/uniconv/test-u16-conv-from-enc.c: Likewise.
60283         * tests/uniconv/test-u16-conv-to-enc.c: Likewise.
60284         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
60285         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
60286         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
60287         * tests/uniconv/test-u32-conv-to-enc.c: Likewise.
60288         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
60289         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
60290         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
60291         * tests/uniconv/test-u8-conv-to-enc.c: Likewise.
60292         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
60293         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
60294         * tests/uniname/test-uninames.c: Likewise.
60295         * tests/unistdio/test-u16-asnprintf1.c: Likewise.
60296         * tests/unistdio/test-u16-asnprintf1.h: Likewise.
60297         * tests/unistdio/test-u16-printf1.h: Likewise.
60298         * tests/unistdio/test-u16-vasnprintf1.c: Likewise.
60299         * tests/unistdio/test-u16-vasnprintf2.c: Likewise.
60300         * tests/unistdio/test-u16-vasnprintf3.c: Likewise.
60301         * tests/unistdio/test-u16-vasprintf1.c: Likewise.
60302         * tests/unistdio/test-u16-vsnprintf1.c: Likewise.
60303         * tests/unistdio/test-u16-vsprintf1.c: Likewise.
60304         * tests/unistdio/test-u32-asnprintf1.c: Likewise.
60305         * tests/unistdio/test-u32-asnprintf1.h: Likewise.
60306         * tests/unistdio/test-u32-printf1.h: Likewise.
60307         * tests/unistdio/test-u32-vasnprintf1.c: Likewise.
60308         * tests/unistdio/test-u32-vasnprintf2.c: Likewise.
60309         * tests/unistdio/test-u32-vasnprintf3.c: Likewise.
60310         * tests/unistdio/test-u32-vasprintf1.c: Likewise.
60311         * tests/unistdio/test-u32-vsnprintf1.c: Likewise.
60312         * tests/unistdio/test-u32-vsprintf1.c: Likewise.
60313         * tests/unistdio/test-u8-asnprintf1.c: Likewise.
60314         * tests/unistdio/test-u8-asnprintf1.h: Likewise.
60315         * tests/unistdio/test-u8-printf1.h: Likewise.
60316         * tests/unistdio/test-u8-vasnprintf1.c: Likewise.
60317         * tests/unistdio/test-u8-vasnprintf2.c: Likewise.
60318         * tests/unistdio/test-u8-vasnprintf3.c: Likewise.
60319         * tests/unistdio/test-u8-vasprintf1.c: Likewise.
60320         * tests/unistdio/test-u8-vsnprintf1.c: Likewise.
60321         * tests/unistdio/test-u8-vsprintf1.c: Likewise.
60322         * tests/unistdio/test-ulc-asnprintf1.c: Likewise.
60323         * tests/unistdio/test-ulc-asnprintf1.h: Likewise.
60324         * tests/unistdio/test-ulc-printf1.h: Likewise.
60325         * tests/unistdio/test-ulc-vasnprintf1.c: Likewise.
60326         * tests/unistdio/test-ulc-vasnprintf2.c: Likewise.
60327         * tests/unistdio/test-ulc-vasnprintf3.c: Likewise.
60328         * tests/unistdio/test-ulc-vasprintf1.c: Likewise.
60329         * tests/unistdio/test-ulc-vsnprintf1.c: Likewise.
60330         * tests/unistdio/test-ulc-vsprintf1.c: Likewise.
60331         * tests/uniwidth/test-u16-strwidth.c: Likewise.
60332         * tests/uniwidth/test-u16-width.c: Likewise.
60333         * tests/uniwidth/test-u32-strwidth.c: Likewise.
60334         * tests/uniwidth/test-u32-width.c: Likewise.
60335         * tests/uniwidth/test-u8-strwidth.c: Likewise.
60336         * tests/uniwidth/test-u8-width.c: Likewise.
60337         * tests/uniwidth/test-uc_width.c: Likewise.
60338         * config/srclist-update: Likewise.
60339         (fixlicense): Update to GPLv3+.
60340
60341         Change copyright notice from LGPLv2.1+ to LGPLv3+.
60342         * tests/test-tsearch.c: Change copyright notice.
60343
60344         Change copyright notice from LGPLv2.0+ to LGPLv3+.
60345         * lib/c-strcaseeq.h: Change copyright notice.
60346         * lib/streq.h: Likewise.
60347         * lib/uniconv.h: Likewise.
60348         * lib/uniconv/u-conv-from-enc.h: Likewise.
60349         * lib/uniconv/u-conv-to-enc.h: Likewise.
60350         * lib/uniconv/u-strconv-from-enc.h: Likewise.
60351         * lib/uniconv/u-strconv-to-enc.h: Likewise.
60352         * lib/uniconv/u16-conv-from-enc.c: Likewise.
60353         * lib/uniconv/u16-conv-to-enc.c: Likewise.
60354         * lib/uniconv/u16-strconv-from-enc.c: Likewise.
60355         * lib/uniconv/u16-strconv-from-locale.c: Likewise.
60356         * lib/uniconv/u16-strconv-to-enc.c: Likewise.
60357         * lib/uniconv/u16-strconv-to-locale.c: Likewise.
60358         * lib/uniconv/u32-conv-from-enc.c: Likewise.
60359         * lib/uniconv/u32-conv-to-enc.c: Likewise.
60360         * lib/uniconv/u32-strconv-from-enc.c: Likewise.
60361         * lib/uniconv/u32-strconv-from-locale.c: Likewise.
60362         * lib/uniconv/u32-strconv-to-enc.c: Likewise.
60363         * lib/uniconv/u32-strconv-to-locale.c: Likewise.
60364         * lib/uniconv/u8-conv-from-enc.c: Likewise.
60365         * lib/uniconv/u8-conv-to-enc.c: Likewise.
60366         * lib/uniconv/u8-strconv-from-enc.c: Likewise.
60367         * lib/uniconv/u8-strconv-from-locale.c: Likewise.
60368         * lib/uniconv/u8-strconv-to-enc.c: Likewise.
60369         * lib/uniconv/u8-strconv-to-locale.c: Likewise.
60370         * lib/uniname.h: Likewise.
60371         * lib/uniname/uniname.c: Likewise.
60372         * lib/unistdio.h: Likewise.
60373         * lib/unistdio/u-asnprintf.h: Likewise.
60374         * lib/unistdio/u-asprintf.h: Likewise.
60375         * lib/unistdio/u-printf-args.c: Likewise.
60376         * lib/unistdio/u-printf-args.h: Likewise.
60377         * lib/unistdio/u-printf-parse.h: Likewise.
60378         * lib/unistdio/u-snprintf.h: Likewise.
60379         * lib/unistdio/u-sprintf.h: Likewise.
60380         * lib/unistdio/u-vasprintf.h: Likewise.
60381         * lib/unistdio/u-vsnprintf.h: Likewise.
60382         * lib/unistdio/u-vsprintf.h: Likewise.
60383         * lib/unistdio/u16-asnprintf.c: Likewise.
60384         * lib/unistdio/u16-asprintf.c: Likewise.
60385         * lib/unistdio/u16-printf-parse.c: Likewise.
60386         * lib/unistdio/u16-snprintf.c: Likewise.
60387         * lib/unistdio/u16-sprintf.c: Likewise.
60388         * lib/unistdio/u16-u16-asnprintf.c: Likewise.
60389         * lib/unistdio/u16-u16-asprintf.c: Likewise.
60390         * lib/unistdio/u16-u16-snprintf.c: Likewise.
60391         * lib/unistdio/u16-u16-sprintf.c: Likewise.
60392         * lib/unistdio/u16-u16-vasnprintf.c: Likewise.
60393         * lib/unistdio/u16-u16-vasprintf.c: Likewise.
60394         * lib/unistdio/u16-u16-vsnprintf.c: Likewise.
60395         * lib/unistdio/u16-u16-vsprintf.c: Likewise.
60396         * lib/unistdio/u16-vasnprintf.c: Likewise.
60397         * lib/unistdio/u16-vasprintf.c: Likewise.
60398         * lib/unistdio/u16-vsnprintf.c: Likewise.
60399         * lib/unistdio/u16-vsprintf.c: Likewise.
60400         * lib/unistdio/u32-asnprintf.c: Likewise.
60401         * lib/unistdio/u32-asprintf.c: Likewise.
60402         * lib/unistdio/u32-printf-parse.c: Likewise.
60403         * lib/unistdio/u32-snprintf.c: Likewise.
60404         * lib/unistdio/u32-sprintf.c: Likewise.
60405         * lib/unistdio/u32-u32-asnprintf.c: Likewise.
60406         * lib/unistdio/u32-u32-asprintf.c: Likewise.
60407         * lib/unistdio/u32-u32-snprintf.c: Likewise.
60408         * lib/unistdio/u32-u32-sprintf.c: Likewise.
60409         * lib/unistdio/u32-u32-vasnprintf.c: Likewise.
60410         * lib/unistdio/u32-u32-vasprintf.c: Likewise.
60411         * lib/unistdio/u32-u32-vsnprintf.c: Likewise.
60412         * lib/unistdio/u32-u32-vsprintf.c: Likewise.
60413         * lib/unistdio/u32-vasnprintf.c: Likewise.
60414         * lib/unistdio/u32-vasprintf.c: Likewise.
60415         * lib/unistdio/u32-vsnprintf.c: Likewise.
60416         * lib/unistdio/u32-vsprintf.c: Likewise.
60417         * lib/unistdio/u8-asnprintf.c: Likewise.
60418         * lib/unistdio/u8-asprintf.c: Likewise.
60419         * lib/unistdio/u8-printf-parse.c: Likewise.
60420         * lib/unistdio/u8-snprintf.c: Likewise.
60421         * lib/unistdio/u8-sprintf.c: Likewise.
60422         * lib/unistdio/u8-u8-asnprintf.c: Likewise.
60423         * lib/unistdio/u8-u8-asprintf.c: Likewise.
60424         * lib/unistdio/u8-u8-snprintf.c: Likewise.
60425         * lib/unistdio/u8-u8-sprintf.c: Likewise.
60426         * lib/unistdio/u8-u8-vasnprintf.c: Likewise.
60427         * lib/unistdio/u8-u8-vasprintf.c: Likewise.
60428         * lib/unistdio/u8-u8-vsnprintf.c: Likewise.
60429         * lib/unistdio/u8-u8-vsprintf.c: Likewise.
60430         * lib/unistdio/u8-vasnprintf.c: Likewise.
60431         * lib/unistdio/u8-vasprintf.c: Likewise.
60432         * lib/unistdio/u8-vsnprintf.c: Likewise.
60433         * lib/unistdio/u8-vsprintf.c: Likewise.
60434         * lib/unistdio/ulc-asnprintf.c: Likewise.
60435         * lib/unistdio/ulc-asprintf.c: Likewise.
60436         * lib/unistdio/ulc-printf-parse.c: Likewise.
60437         * lib/unistdio/ulc-snprintf.c: Likewise.
60438         * lib/unistdio/ulc-sprintf.c: Likewise.
60439         * lib/unistdio/ulc-vasnprintf.c: Likewise.
60440         * lib/unistdio/ulc-vasprintf.c: Likewise.
60441         * lib/unistdio/ulc-vsnprintf.c: Likewise.
60442         * lib/unistdio/ulc-vsprintf.c: Likewise.
60443         * lib/unistr.h: Likewise.
60444         * lib/unistr/u-cpy-alloc.h: Likewise.
60445         * lib/unistr/u-cpy.h: Likewise.
60446         * lib/unistr/u-endswith.h: Likewise.
60447         * lib/unistr/u-move.h: Likewise.
60448         * lib/unistr/u-set.h: Likewise.
60449         * lib/unistr/u-startswith.h: Likewise.
60450         * lib/unistr/u-stpcpy.h: Likewise.
60451         * lib/unistr/u-stpncpy.h: Likewise.
60452         * lib/unistr/u-strcat.h: Likewise.
60453         * lib/unistr/u-strcpy.h: Likewise.
60454         * lib/unistr/u-strcspn.h: Likewise.
60455         * lib/unistr/u-strdup.h: Likewise.
60456         * lib/unistr/u-strlen.h: Likewise.
60457         * lib/unistr/u-strncat.h: Likewise.
60458         * lib/unistr/u-strncpy.h: Likewise.
60459         * lib/unistr/u-strnlen.h: Likewise.
60460         * lib/unistr/u-strpbrk.h: Likewise.
60461         * lib/unistr/u-strspn.h: Likewise.
60462         * lib/unistr/u-strstr.h: Likewise.
60463         * lib/unistr/u-strtok.h: Likewise.
60464         * lib/unistr/u16-check.c: Likewise.
60465         * lib/unistr/u16-chr.c: Likewise.
60466         * lib/unistr/u16-cmp.c: Likewise.
60467         * lib/unistr/u16-cpy-alloc.c: Likewise.
60468         * lib/unistr/u16-cpy.c: Likewise.
60469         * lib/unistr/u16-endswith.c: Likewise.
60470         * lib/unistr/u16-mblen.c: Likewise.
60471         * lib/unistr/u16-mbsnlen.c: Likewise.
60472         * lib/unistr/u16-mbtouc-aux.c: Likewise.
60473         * lib/unistr/u16-mbtouc-unsafe-aux.c: Likewise.
60474         * lib/unistr/u16-mbtouc-unsafe.c: Likewise.
60475         * lib/unistr/u16-mbtouc.c: Likewise.
60476         * lib/unistr/u16-mbtoucr.c: Likewise.
60477         * lib/unistr/u16-move.c: Likewise.
60478         * lib/unistr/u16-next.c: Likewise.
60479         * lib/unistr/u16-prev.c: Likewise.
60480         * lib/unistr/u16-set.c: Likewise.
60481         * lib/unistr/u16-startswith.c: Likewise.
60482         * lib/unistr/u16-stpcpy.c: Likewise.
60483         * lib/unistr/u16-stpncpy.c: Likewise.
60484         * lib/unistr/u16-strcat.c: Likewise.
60485         * lib/unistr/u16-strchr.c: Likewise.
60486         * lib/unistr/u16-strcmp.c: Likewise.
60487         * lib/unistr/u16-strcpy.c: Likewise.
60488         * lib/unistr/u16-strcspn.c: Likewise.
60489         * lib/unistr/u16-strdup.c: Likewise.
60490         * lib/unistr/u16-strlen.c: Likewise.
60491         * lib/unistr/u16-strmblen.c: Likewise.
60492         * lib/unistr/u16-strmbtouc.c: Likewise.
60493         * lib/unistr/u16-strncat.c: Likewise.
60494         * lib/unistr/u16-strncmp.c: Likewise.
60495         * lib/unistr/u16-strncpy.c: Likewise.
60496         * lib/unistr/u16-strnlen.c: Likewise.
60497         * lib/unistr/u16-strpbrk.c: Likewise.
60498         * lib/unistr/u16-strrchr.c: Likewise.
60499         * lib/unistr/u16-strspn.c: Likewise.
60500         * lib/unistr/u16-strstr.c: Likewise.
60501         * lib/unistr/u16-strtok.c: Likewise.
60502         * lib/unistr/u16-to-u32.c: Likewise.
60503         * lib/unistr/u16-to-u8.c: Likewise.
60504         * lib/unistr/u16-uctomb-aux.c: Likewise.
60505         * lib/unistr/u16-uctomb.c: Likewise.
60506         * lib/unistr/u32-check.c: Likewise.
60507         * lib/unistr/u32-chr.c: Likewise.
60508         * lib/unistr/u32-cmp.c: Likewise.
60509         * lib/unistr/u32-cpy-alloc.c: Likewise.
60510         * lib/unistr/u32-cpy.c: Likewise.
60511         * lib/unistr/u32-endswith.c: Likewise.
60512         * lib/unistr/u32-mblen.c: Likewise.
60513         * lib/unistr/u32-mbsnlen.c: Likewise.
60514         * lib/unistr/u32-mbtouc-unsafe.c: Likewise.
60515         * lib/unistr/u32-mbtouc.c: Likewise.
60516         * lib/unistr/u32-mbtoucr.c: Likewise.
60517         * lib/unistr/u32-move.c: Likewise.
60518         * lib/unistr/u32-next.c: Likewise.
60519         * lib/unistr/u32-prev.c: Likewise.
60520         * lib/unistr/u32-set.c: Likewise.
60521         * lib/unistr/u32-startswith.c: Likewise.
60522         * lib/unistr/u32-stpcpy.c: Likewise.
60523         * lib/unistr/u32-stpncpy.c: Likewise.
60524         * lib/unistr/u32-strcat.c: Likewise.
60525         * lib/unistr/u32-strchr.c: Likewise.
60526         * lib/unistr/u32-strcmp.c: Likewise.
60527         * lib/unistr/u32-strcpy.c: Likewise.
60528         * lib/unistr/u32-strcspn.c: Likewise.
60529         * lib/unistr/u32-strdup.c: Likewise.
60530         * lib/unistr/u32-strlen.c: Likewise.
60531         * lib/unistr/u32-strmblen.c: Likewise.
60532         * lib/unistr/u32-strmbtouc.c: Likewise.
60533         * lib/unistr/u32-strncat.c: Likewise.
60534         * lib/unistr/u32-strncmp.c: Likewise.
60535         * lib/unistr/u32-strncpy.c: Likewise.
60536         * lib/unistr/u32-strnlen.c: Likewise.
60537         * lib/unistr/u32-strpbrk.c: Likewise.
60538         * lib/unistr/u32-strrchr.c: Likewise.
60539         * lib/unistr/u32-strspn.c: Likewise.
60540         * lib/unistr/u32-strstr.c: Likewise.
60541         * lib/unistr/u32-strtok.c: Likewise.
60542         * lib/unistr/u32-to-u16.c: Likewise.
60543         * lib/unistr/u32-to-u8.c: Likewise.
60544         * lib/unistr/u32-uctomb.c: Likewise.
60545         * lib/unistr/u8-check.c: Likewise.
60546         * lib/unistr/u8-chr.c: Likewise.
60547         * lib/unistr/u8-cmp.c: Likewise.
60548         * lib/unistr/u8-cpy-alloc.c: Likewise.
60549         * lib/unistr/u8-cpy.c: Likewise.
60550         * lib/unistr/u8-endswith.c: Likewise.
60551         * lib/unistr/u8-mblen.c: Likewise.
60552         * lib/unistr/u8-mbsnlen.c: Likewise.
60553         * lib/unistr/u8-mbtouc-aux.c: Likewise.
60554         * lib/unistr/u8-mbtouc-unsafe-aux.c: Likewise.
60555         * lib/unistr/u8-mbtouc-unsafe.c: Likewise.
60556         * lib/unistr/u8-mbtouc.c: Likewise.
60557         * lib/unistr/u8-mbtoucr.c: Likewise.
60558         * lib/unistr/u8-move.c: Likewise.
60559         * lib/unistr/u8-next.c: Likewise.
60560         * lib/unistr/u8-prev.c: Likewise.
60561         * lib/unistr/u8-set.c: Likewise.
60562         * lib/unistr/u8-startswith.c: Likewise.
60563         * lib/unistr/u8-stpcpy.c: Likewise.
60564         * lib/unistr/u8-stpncpy.c: Likewise.
60565         * lib/unistr/u8-strcat.c: Likewise.
60566         * lib/unistr/u8-strchr.c: Likewise.
60567         * lib/unistr/u8-strcmp.c: Likewise.
60568         * lib/unistr/u8-strcpy.c: Likewise.
60569         * lib/unistr/u8-strcspn.c: Likewise.
60570         * lib/unistr/u8-strdup.c: Likewise.
60571         * lib/unistr/u8-strlen.c: Likewise.
60572         * lib/unistr/u8-strmblen.c: Likewise.
60573         * lib/unistr/u8-strmbtouc.c: Likewise.
60574         * lib/unistr/u8-strncat.c: Likewise.
60575         * lib/unistr/u8-strncmp.c: Likewise.
60576         * lib/unistr/u8-strncpy.c: Likewise.
60577         * lib/unistr/u8-strnlen.c: Likewise.
60578         * lib/unistr/u8-strpbrk.c: Likewise.
60579         * lib/unistr/u8-strrchr.c: Likewise.
60580         * lib/unistr/u8-strspn.c: Likewise.
60581         * lib/unistr/u8-strstr.c: Likewise.
60582         * lib/unistr/u8-strtok.c: Likewise.
60583         * lib/unistr/u8-to-u16.c: Likewise.
60584         * lib/unistr/u8-to-u32.c: Likewise.
60585         * lib/unistr/u8-uctomb-aux.c: Likewise.
60586         * lib/unistr/u8-uctomb.c: Likewise.
60587         * lib/unitypes.h: Likewise.
60588         * lib/uniwidth.h: Likewise.
60589         * lib/uniwidth/cjk.h: Likewise.
60590         * lib/uniwidth/u16-strwidth.c: Likewise.
60591         * lib/uniwidth/u16-width.c: Likewise.
60592         * lib/uniwidth/u32-strwidth.c: Likewise.
60593         * lib/uniwidth/u32-width.c: Likewise.
60594         * lib/uniwidth/u8-strwidth.c: Likewise.
60595         * lib/uniwidth/u8-width.c: Likewise.
60596         * lib/uniwidth/width.c: Likewise.
60597
60598 2007-10-07  Bruno Haible  <bruno@clisp.org>
60599
60600         * lib/inttypes.in.h: Change copyright notice from LGPL to GPL.
60601         The file is still under LGPL (see modules/inttypes).
60602
60603 2007-10-06  Bruno Haible  <bruno@clisp.org>
60604
60605         * modules/trunc (Dependencies): Add 'extensions'.
60606         * m4/trunc.m4 (gl_FUNC_TRUNC): Require gl_USE_SYSTEM_EXTENSIONS.
60607         Reported by Ben Pfaff <blp@gnu.org>.
60608
60609 2007-10-06  Bruno Haible  <bruno@clisp.org>
60610
60611         * modules/freopen-tests: New file.
60612         * tests/test-freopen.c: New file.
60613
60614         * modules/fopen-tests: New file.
60615         * tests/test-fopen.c: New file.
60616
60617         * modules/fopen: New file.
60618         * lib/fopen.c: New file.
60619         * m4/fopen.m4: New file.
60620         * modules/freopen: New file.
60621         * lib/freopen.c: New file.
60622         * m4/freopen.m4: New file.
60623         * lib/stdio.in.h (fopen, freopen): New declarations.
60624         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize also GNULIB_FOPEN,
60625         GNULIB_FREOPEN, REPLACE_FOPEN, REPLACE_FREOPEN.
60626         * modules/stdio (Makefile.am): Substitute also GNULIB_FOPEN,
60627         GNULIB_FREOPEN, REPLACE_FOPEN, REPLACE_FREOPEN.
60628         * doc/functions/fopen.texi: Mention the 'fopen' module.
60629         * doc/functions/freopen.texi: Mention the 'freopen' module.
60630
60631 2007-10-06  Bruno Haible  <bruno@clisp.org>
60632
60633         * modules/open-tests: New file.
60634         * tests/test-open.c: New file.
60635
60636         * modules/open: New file.
60637         * lib/open.c: New file.
60638         * m4/open.m4: New file.
60639         * lib/fchdir.c (open): If the gnulib module 'open' is used, do what
60640         lib/open.c does.
60641         * lib/fcntl.in.h (open): Declare also if replaced by the 'open' module.
60642         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR, gl_FCNTL_H_DEFAULTS): New
60643         macros.
60644         (gl_FCNTL_H): Require gl_FCNTL_H_DEFAULTS.
60645         * modules/fcntl (Makefile.am): Also substitute GNULIB_OPEN and
60646         REPLACE_OPEN.
60647         * doc/functions/open.texi: Mention the 'open' module.
60648
60649 2007-10-04  Bruno Haible  <bruno@clisp.org>
60650
60651         * modules/ceill-tests: New file.
60652         * tests/test-ceill.c: New file.
60653
60654         * modules/ceill: New file.
60655         * lib/ceill.c: Replace entire file.
60656         * m4/ceill.m4: New file.
60657         * lib/math.in.h (ceill): Replace declaration.
60658         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEILL.
60659         * modules/math (Makefile.am): Substitute also GNULIB_CEILL.
60660         * doc/functions/ceill.texi: Mention the 'ceill' module.
60661         * modules/mathl (Files): Remove lib/ceill.c.
60662         (Depends-on): Add ceill.
60663
60664 2007-10-04  Bruno Haible  <bruno@clisp.org>
60665
60666         * modules/ceilf-tests: New file.
60667         * tests/test-ceilf.c: New file.
60668
60669         * modules/ceilf: New file.
60670         * lib/ceil.c: New file.
60671         * lib/ceilf.c: New file.
60672         * m4/ceilf.m4: New file.
60673         * lib/math.in.h (ceilf): New declaration.
60674         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEILF and
60675         HAVE_DECL_CEILF.
60676         * modules/math (Makefile.am): Substitute also GNULIB_CEILF and
60677         HAVE_DECL_CEILF.
60678         * doc/functions/ceilf.texi: Mention the 'ceilf' module.
60679
60680 2007-10-04  Bruno Haible  <bruno@clisp.org>
60681
60682         * modules/floorl-tests: New file.
60683         * tests/test-floorl.c: New file.
60684
60685         * modules/floorl: New file.
60686         * lib/floorl.c: Replace entire file.
60687         * m4/floorl.m4: New file.
60688         * lib/math.in.h (floorl): Replace declaration.
60689         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOORL.
60690         * modules/math (Makefile.am): Substitute also GNULIB_FLOORL.
60691         * doc/functions/floorl.texi: Mention the 'floorl' module.
60692         * modules/mathl (Files): Remove lib/floorl.c.
60693         (Depends-on): Add floorl.
60694
60695 2007-10-04  Bruno Haible  <bruno@clisp.org>
60696
60697         * modules/floorf-tests: New file.
60698         * tests/test-floorf.c: New file.
60699
60700         * modules/floorf: New file.
60701         * lib/floor.c: New file.
60702         * lib/floorf.c: New file.
60703         * m4/floorf.m4: New file.
60704         * lib/math.in.h (floorf): New declaration.
60705         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOORF and
60706         HAVE_DECL_FLOORF.
60707         * modules/math (Makefile.am): Substitute also GNULIB_FLOORF and
60708         HAVE_DECL_FLOORF.
60709         * doc/functions/floorf.texi: Mention the 'floorf' module.
60710
60711 2007-10-04  Benoit Sigoure  <tsuna@lrde.epita.fr>
60712             Bruno Haible  <bruno@clisp.org>
60713
60714         Advertise for the Git server instead of the CVS server.
60715         * doc/gnulib-intro.texi (Steady Development): Mention the Git
60716         repository instead of the CVS one.
60717         * doc/gnulib-tool.texi (VCS Issues): Renamed from "CVS Issues". Talk
60718         about all VCS systems generically.
60719         * doc/gnulib.texi (Introduction): Capitalize `Git'.
60720
60721 2007-10-04  Bruno Haible  <bruno@clisp.org>
60722
60723         * doc/gnulib.texi (Function Substitutes): Explain what an absent module
60724         means.
60725         Reported by Benoît Sigoure <tsuna@lrde.epita.fr>.
60726
60727 2007-10-04  Bruno Haible  <bruno@clisp.org>
60728
60729         * modules/truncl-tests: New file.
60730         * tests/test-truncl.c: New file.
60731
60732         * modules/truncl: New file.
60733         * lib/truncl.c: New file.
60734         * m4/truncl.m4: New file.
60735         * lib/math.in.h (truncl): New declaration.
60736         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNCL and
60737         HAVE_DECL_TRUNCL.
60738         * modules/math (Makefile.am): Substitute also GNULIB_TRUNCL and
60739         HAVE_DECL_TRUNCL.
60740         * doc/functions/truncl.texi: Mention the 'truncl' module.
60741
60742 2007-10-04  Bruno Haible  <bruno@clisp.org>
60743
60744         * modules/truncf-tests: New file.
60745         * tests/test-truncf.c: New file.
60746
60747         * modules/truncf: New file.
60748         * lib/trunc.c: Make paramerizable through USE_* macros.
60749         * lib/truncf.c: New file.
60750         * m4/truncf.m4: New file.
60751         * lib/math.in.h (truncf): New declaration.
60752         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNCF and
60753         HAVE_DECL_TRUNCF.
60754         * modules/math (Makefile.am): Substitute also GNULIB_TRUNCF and
60755         HAVE_DECL_TRUNCF.
60756         * doc/functions/truncf.texi: Mention the 'truncf' module.
60757
60758 2007-10-03  Bruno Haible  <bruno@clisp.org>
60759
60760         * gnulib-tool (func_get_automake_snippet): Synthesize an EXTRA_DIST
60761         augmentation also for tests modules.
60762         * modules/argp-tests (Makefile.am): Remove EXTRA_DIST augmentation.
60763         * modules/atexit-tests (Makefile.am): Likewise.
60764         * modules/binary-io-tests (Makefile.am): Likewise.
60765         * modules/c-strcase-tests (Makefile.am): Likewise.
60766         * modules/canonicalize-lgpl-tests (Makefile.am): Likewise.
60767         * modules/canonicalize-tests (Makefile.am): Likewise.
60768         * modules/closein-tests (Makefile.am): Likewise.
60769         * modules/fprintf-posix-tests (Makefile.am): Likewise.
60770         * modules/freadahead-tests (Makefile.am): Likewise.
60771         * modules/fseek-tests (Makefile.am): Likewise.
60772         * modules/fseeko-tests (Makefile.am): Likewise.
60773         * modules/ftell-tests (Makefile.am): Likewise.
60774         * modules/ftello-tests (Makefile.am): Likewise.
60775         * modules/isnanl-nolibm-tests (Makefile.am): Likewise.
60776         * modules/isnanl-tests (Makefile.am): Likewise.
60777         * modules/lseek-tests (Makefile.am): Likewise.
60778         * modules/mbscasecmp-tests (Makefile.am): Likewise.
60779         * modules/mbscasestr-tests (Makefile.am): Likewise.
60780         * modules/mbschr-tests (Makefile.am): Likewise.
60781         * modules/mbscspn-tests (Makefile.am): Likewise.
60782         * modules/mbsncasecmp-tests (Makefile.am): Likewise.
60783         * modules/mbspbrk-tests (Makefile.am): Likewise.
60784         * modules/mbspcasecmp-tests (Makefile.am): Likewise.
60785         * modules/mbsrchr-tests (Makefile.am): Likewise.
60786         * modules/mbsspn-tests (Makefile.am): Likewise.
60787         * modules/mbsstr-tests (Makefile.am): Likewise.
60788         * modules/printf-posix-tests (Makefile.am): Likewise.
60789         * modules/snprintf-posix-tests (Makefile.am): Likewise.
60790         * modules/sprintf-posix-tests (Makefile.am): Likewise.
60791         * modules/tsearch-tests (Makefile.am): Likewise.
60792         * modules/uniname/uniname-tests (Makefile.am): Likewise.
60793         * modules/unistdio/u16-vasnprintf-tests (Makefile.am): Likewise.
60794         * modules/unistdio/u32-vasnprintf-tests (Makefile.am): Likewise.
60795         * modules/unistdio/u8-vasnprintf-tests (Makefile.am): Likewise.
60796         * modules/unistdio/ulc-vasnprintf-tests (Makefile.am): Likewise.
60797         * modules/vasnprintf-posix-tests (Makefile.am): Likewise.
60798         * modules/vfprintf-posix-tests (Makefile.am): Likewise.
60799         * modules/vprintf-posix-tests (Makefile.am): Likewise.
60800         * modules/vsnprintf-posix-tests (Makefile.am): Likewise.
60801         * modules/vsprintf-posix-tests (Makefile.am): Likewise.
60802         * modules/xstrtoimax-tests (Makefile.am): Likewise.
60803         * modules/xstrtol-tests (Makefile.am): Likewise.
60804         * modules/xstrtoumax-tests (Makefile.am): Likewise.
60805         * modules/yesno-tests (Makefile.am): Likewise.
60806
60807 2007-10-03  Bruno Haible  <bruno@clisp.org>
60808
60809         * modules/trunc-tests: New file.
60810         * tests/test-trunc.c: New file.
60811
60812         * modules/trunc: New file.
60813         * lib/trunc.c: New file.
60814         * m4/trunc.m4: New file.
60815         * lib/math.in.h (trunc): New declaration.
60816         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNC and
60817         HAVE_DECL_TRUNC.
60818         * modules/math (Makefile.am): Substitute also GNULIB_TRUNC and
60819         HAVE_DECL_TRUNC.
60820         * doc/functions/trunc.texi: Mention the 'trunc' module.
60821
60822 2007-10-03  Bruno Haible  <bruno@clisp.org>
60823
60824         * tests/test-fpending.c: New file, mostly copied
60825         from coreutils/lib/t-fpending.c.
60826         * modules/fpending-tests: New file.
60827
60828 2007-10-03  Bruno Haible  <bruno@clisp.org>
60829
60830         Port the stdio extensions to QNX (untested).
60831         * lib/fseterr.c (fseterr): Add support for QNX.
60832         * lib/fbufmode.c (fbufmode): Likewise.
60833         * lib/freadable.c (freadable): Likewise.
60834         * lib/fwritable.c (fwritable): Likewise.
60835         * lib/freading.c (freading): Likewise.
60836         * lib/fwriting.c (fwriting): Likewise.
60837         * lib/freadahead.c (freadahed): Likewise.
60838         * lib/fpurge.c (fpurge): Likewise.
60839         * lib/fseeko.c (rpl_fseeko): Likewise.
60840
60841 2007-10-03  Bruno Haible  <bruno@clisp.org>
60842             Jim Meyering  <jim@meyering.net>
60843             Eric Blake  <ebb9@byu.net>
60844
60845         * doc/relocatable.texi: Use @command instead of @program.
60846
60847 2007-10-02  Jim Meyering  <jim@meyering.net>
60848
60849         Perform one more "_.h" -> ".in.h" substitution.
60850         * modules/unistd (Makefile.am) [unistd.h]: Use unistd.h.in
60851         instead of unistd_.h here, too.
60852
60853 2007-10-01  Bruno Haible  <bruno@clisp.org>
60854
60855         * gnulib-tool (func_emit_initmacro_done): Special case for alloca.c.
60856         Needed for the alloca-opt module.
60857
60858 2007-09-30  Bruno Haible  <bruno@clisp.org>
60859
60860         * lib/alloca.in.h: Renamed from lib/alloca_.h.
60861         * modules/alloca-opt (Files, Makefile.am): Use alloca.in.h instead of
60862         alloca_.h.
60863         * lib/argz.in.h: Renamed from lib/argz_.h.
60864         * modules/argz (Files, Makefile.am): Use argz.in.h instead of argz_.h.
60865         * lib/byteswap.in.h: Renamed from lib/byteswap_.h.
60866         * modules/byteswap (Files, Makefile.am): Use byteswap.in.h instead of
60867         byteswap_.h.
60868         * lib/dirent.in.h: Renamed from lib/dirent_.h.
60869         * modules/fchdir (Files, Makefile.am): Use dirent.in.h instead of
60870         dirent_.h.
60871         * lib/fcntl.in.h: Renamed from lib/fcntl_.h.
60872         * modules/fcntl (Files, Makefile.am): Use fcntl.in.h instead of
60873         fcntl_.h.
60874         * lib/float.in.h: Renamed from lib/float_.h.
60875         * modules/float (Files, Makefile.am): Use float.in.h instead of
60876         float_.h.
60877         * lib/fnmatch.in.h: Renamed from lib/fnmatch_.h.
60878         * modules/fnmatch (Files, Makefile.am): Use fnmatch.in.h instead of
60879         fnmatch_.h.
60880         * lib/getopt.in.h: Renamed from lib/getopt_.h.
60881         * modules/getopt (Files, Makefile.am): Use getopt.in.h instead of
60882         getopt_.h.
60883         * lib/glob.in.h: Renamed from lib/glob_.h.
60884         * modules/glob (Files, Makefile.am): Use glob.in.h instead of glob_.h.
60885         * lib/iconv.in.h: Renamed from lib/iconv_.h.
60886         * modules/iconv_open (Files, Makefile.am): Use iconv.in.h instead of
60887         iconv_.h.
60888         * lib/inttypes.in.h: Renamed from lib/inttypes_.h.
60889         * modules/inttypes (Files, Makefile.am): Use inttypes.in.h instead of
60890         inttypes_.h.
60891         * lib/locale.in.h: Renamed from lib/locale_.h.
60892         * modules/locale (Files, Makefile.am): Use locale.in.h instead of
60893         locale_.h.
60894         * lib/math.in.h: Renamed from lib/math_.h.
60895         * modules/math (Files, Makefile.am): Use math.in.h instead of math_.h.
60896         * lib/netinet_in.in.h: Renamed from lib/netinet_in_.h.
60897         * modules/netinet_in (Files, Makefile.am): Use netinet_in.in.h instead
60898         of netinet_in_.h. Add dependency.
60899         * lib/poll.in.h: Renamed from lib/poll_.h.
60900         * modules/poll (Files, Makefile.am): Use poll.in.h instead of poll_.h.
60901         * lib/search.in.h: Renamed from lib/search_.h.
60902         * modules/search (Files, Makefile.am): Use search.in.h instead of
60903         search_.h.
60904         * lib/signal.in.h: Renamed from lib/signal_.h.
60905         * modules/signal (Files, Makefile.am): Use signal.in.h instead of
60906         _signal.h.
60907         * lib/stdbool.in.h: Renamed from lib/stdbool_.h.
60908         * modules/stdbool (Files, Makefile.am): Use stdbool.in.h instead of
60909         stdbool_.h.
60910         * lib/stdint.in.h: Renamed from lib/stdint_.h.
60911         * modules/stdint (Files, Makefile.am): Use stdint.in.h instead of
60912         stdint_.h.
60913         * lib/stdio.in.h: Renamed from lib/stdio_.h.
60914         * modules/stdio (Files, Makefile.am): Use stdio.in.h instead of
60915         stdio_.h.
60916         * lib/stdlib.in.h: Renamed from lib/stdlib_.h.
60917         * modules/stdlib (Files, Makefile.am): Use stdlib.in.h instead of
60918         stdlib_.h.
60919         * lib/string.in.h: Renamed from lib/string_.h.
60920         * modules/string (Files, Makefile.am): Use string.in.h instead of
60921         string_.h.
60922         * doc/gnulib-tool.texi (Initial import): Update.
60923         * lib/sys_select.in.h: Renamed from lib/sys_select_.h.
60924         * modules/sys_select (Files, Makefile.am): Use sys_select.in.h instead
60925         of sys_select_.h. Add dependency.
60926         * lib/sys_socket.in.h: Renamed from lib/sys_socket_.h.
60927         * modules/sys_socket (Files, Makefile.am): Use sys_socket.in.h instead
60928         of sys_socket_.h.
60929         * lib/sys_stat.in.h: Renamed from lib/sys_stat_.h.
60930         * modules/sys_stat (Files, Makefile.am): Use sys_stat.in.h instead of
60931         sys_stat_.h.
60932         * lib/sys_time.in.h: Renamed from lib/sys_time_.h.
60933         * modules/sys_time (Files, Makefile.am): Use sys_time.in.h instead of
60934         sys_time_.h.
60935         * lib/sysexits.in.h: Renamed from lib/sysexits_.h.
60936         * modules/sysexits (Files, Makefile.am): Use sysexits.in.h instead of
60937         sysexits_.h.
60938         * lib/time.in.h: Renamed from lib/time_.h.
60939         * modules/time (Files, Makefile.am): Use time.in.h instead of time_.h.
60940         * lib/unistd.in.h: Renamed from lib/unistd_.h.
60941         * modules/unistd (Files, Makefile.am): Use unistd.in.h instead of
60942         unistd_.h.
60943         * lib/wchar.in.h: Renamed from lib/wchar_.h.
60944         * modules/wchar (Files, Makefile.am): Use wchar.in.h instead of
60945         wchar_.h.
60946         * lib/wctype.in.h: Renamed from lib/wctype_.h.
60947         * modules/wctype (Files, Makefile.am): Use wctype.in.h instead of
60948         wctype_.h.
60949         * build-aux/bootstrap (slurp): Update.
60950         * lib/.cppi-disable: Update.
60951
60952 2007-09-30  Bruno Haible  <bruno@clisp.org>
60953
60954         * tests/test-getaddrinfo.c (AF_UNSPEC): Provide a fallback definition.
60955         Needed on BeOS.
60956
60957 2007-09-30  Bruno Haible  <bruno@clisp.org>
60958
60959         * modules/dirname-tests (check_PROGRAMS): Renamed from noinst_PROGRAMS.
60960
60961 2007-09-29  Bruno Haible  <bruno@clisp.org>
60962
60963         * lib/stdio_.h (getdelim, getline): Add identifiers. Doc tweak.
60964
60965 2007-09-29  Bruno Haible  <bruno@clisp.org>
60966
60967         * lib/xreadlink.c (xreadlink): Simplify to a wrapper around areadlink.
60968         * modules/xreadlink (Depends-on): Add areadlink, remove readlink etc.
60969         * build-aux/install-reloc: Compile also areadlink.c.
60970         * modules/relocatable-prog-wrapper (Files): Add lib/areadlink.[hc].
60971
60972 2007-09-29  Bruno Haible  <bruno@clisp.org>
60973
60974         * gnulib-tool (func_emit_initmacro_done): Indentation.
60975
60976 2007-09-29  Bruno Haible  <bruno@clisp.org>
60977
60978         * README: Add CVS checkout update instructions.
60979         Info from Bob Proulx <bob@proulx.com>.
60980
60981 2007-09-28  Eric Blake  <ebb9@byu.net>
60982
60983         Provide move-if-change.
60984         * build-aux/move-if-change: New file, based on best practice
60985         rather than any canonical upstream location.
60986
60987 2007-09-28  Jim Meyering  <jim@meyering.net>
60988
60989         Fix canonicalize loop-detection corner case.
60990         Do not attempt to stat the symlink values stored via seen_triple.
60991         Without this, coreutils' tests/misc/readlink-fp-loop test would fail
60992         on linux-2.6.18, (but not 2.6.22).
60993         * lib/canonicalize.c (seen_triple): Use triple_compare_ino_str, not
60994         triple_compare.  The former compares dev,ino,filename, while the latter
60995         would actually stat dirname(filename) when dev and ino were equal.
60996         * lib/hash-triple.c: Install <string.h>.
60997         (STREQ): Define.
60998         (triple_compare_ino_str): New function.
60999         * lib/hash-triple.h (triple_compare_ino_str): Declare it.
61000
61001 2007-09-28  Eric Blake  <ebb9@byu.net>
61002
61003         Enforce that AC_REPLACE_FUNCS files exist.
61004         * gnulib-tool (func_emit_initmacro_done): Make AC_LIBSOURCES
61005         override check for typos.
61006
61007         Fix test-closein on Solaris 10.
61008         * tests/test-closein.c (main): Don't assume stdin can be inherited
61009         closed on all systems.
61010         * tests/test-closein.sh: Likewise.
61011         Reported by Piotr Tarnowski.
61012
61013 2007-09-28  Jim Meyering  <jim@meyering.net>
61014
61015         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Fix typo in comment.
61016
61017 2007-09-27  Jim Meyering  <jim@meyering.net>
61018
61019         canonicalize: Avoid a false-positive cycle failure.
61020         * modules/canonicalize (Depends-on): Add file-set and hash-triple.
61021         Sort.  Remove cycle-check.
61022         * lib/canonicalize.c: Include file-set.h and hash-triple.h,
61023         not cycle-check.h.
61024         (seen_triple): New function.
61025         (canonicalize_filename_mode): Use it instead of cycle-check.
61026         * tests/test-canonicalize.c: Add a test for this bug.
61027         * tests/test-canonicalize.sh: Set up and run the test.
61028
61029         New module, file-set, from coreutils.
61030         * modules/file-set: Define it.
61031         * lib/file-set.c, lib/file-set.h: Implement.
61032
61033         New module, hash-triple, from coreutils.
61034         * modules/hash-triple: Define it.
61035         * lib/hash-triple.c, lib/hash-triple.h: Implement.
61036
61037 2007-09-25  Eric Blake  <ebb9@byu.net>
61038
61039         Fix strerror on Interix.
61040         * lib/string_.h (strerror): Declare replacement.
61041         * doc/functions/strerror.texi (strerror): Document the Interix
61042         shortcoming.
61043         * modules/string (Makefile.am): Support new hooks.
61044         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Add new hooks.
61045         * m4/strerror.m4 (gl_FUNC_STRERROR): Defer to
61046         gl_FUNC_STRERROR_SEPARATE.
61047         (gl_FUNC_STRERROR_SEPARATE): Check for Interix bug.
61048         * lib/strerror.c (rpl_strerror): Provide replacement.
61049         * modules/strerror (Depends-on): Add string.
61050         (configure.ac): Detect use of module.
61051         * tests/test-strerror.c: New file.
61052         * modules/strerror-tests: New test module.
61053         * modules/argp (Depends-on): Add strerror.
61054         * modules/error (Depends-on): Likewise.
61055         Reported by Martin Koeppe.
61056
61057 2007-09-24  Bruno Haible  <bruno@clisp.org>
61058
61059         * README: Update git instructions.
61060
61061 2007-09-24  Eric Blake  <ebb9@byu.net>
61062
61063         Revert fpending breakage from 2007-09-08.
61064         * m4/fpending.m4 (gl_FUNC_FPENDING): Don't require existence of
61065         __fpending.c.
61066
61067 2007-09-24  Jim Meyering  <jim@meyering.net>
61068
61069         filenamecat.c: Add a test.
61070         * lib/filenamecat.c (main) [TEST_FILE_NAME_CONCAT]: Add a test
61071         showing how the function works when DIR is the empty string.
61072
61073 2007-09-21  Simon Josefsson  <simon@josefsson.org>
61074
61075         * tests/test-canonicalize.sh: Turn on executable bit.
61076
61077 2007-09-19  Eric Blake  <ebb9@byu.net>
61078
61079         * README: Update CVS instructions.
61080
61081 2007-09-18  Bruno Haible  <bruno@clisp.org>
61082
61083         * modules/areadlink: New file.
61084         * lib/areadlink.h (areadlink): New declaration.
61085         * lib/areadlink.c: New file, based on lib/xreadlink.c.
61086
61087 2007-09-17  Jim Meyering  <jim@meyering.net>
61088
61089         * lib/savewd.c (ESTALE) [!defined]: Define.
61090         Reported to be required on Interix by Martin Koeppe.
61091
61092 2007-09-17  Bruno Haible  <bruno@clisp.org>
61093
61094         * gnulib-tool (func_version): Use $version.
61095
61096 2007-09-16  Bruno Haible  <bruno@clisp.org>
61097
61098         * m4/printf.m4 (gl_PRINTF_LONG_DOUBLE, gl_PRINTF_INFINITE,
61099         gl_PRINTF_INFINITE_LONG_DOUBLE): Increase buf's size from 100 to 10000.
61100         Needed on glibc-2.6.1 with -fstack-protector -D_FORTIFY_SOURCE=2.
61101         Reported by Greg Schafer <gschafer@zip.com.au>.
61102
61103 2007-09-15  Bruno Haible  <bruno@clisp.org>
61104
61105         * gnulib-tool (sed): Try a little harder to make bash understand the
61106         alias.
61107         Reported by Bruce Korb <bruce.korb@gmail.com>.
61108
61109 2007-09-13  Eric Blake  <ebb9@byu.net>
61110
61111         * ChangeLog: Remove conflict markers.
61112
61113 2007-09-13  Simon Josefsson  <simon@josefsson.org>
61114
61115         * lib/gc-gnulib.c (gc_hash_open): Catch NULL calloc return value.
61116         Reported by Bruno Haible <bruno@clisp.org>.
61117
61118 2007-09-12  Bruno Haible  <bruno@clisp.org>
61119
61120         * m4/lock.m4: Don't provide an AC_USE_SYSTEM_EXTENSIONS definition.
61121         (gl_LOCK_EARLY_BODY): Use AC_GNU_SOURCE when AC_USE_SYSTEM_EXTENSIONS
61122         is not defined.
61123
61124 2007-09-12  Eric Blake  <ebb9@byu.net>
61125
61126         Track CVS Autoconf on AC_USE_SYSTEM_EXTENSIONS.
61127         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Update to CVS
61128         Autoconf definition.
61129         * modules/euidaccess (Depends-on): Add extensions, for
61130         AC_USE_SYSTEM_EXTENSIONS with autoconf <= 2.59.
61131         * modules/fnmatch (Depends-on): Likewise.
61132         * modules/getaddrinfo (Depends-on): Likewise.
61133         * modules/getdelim (Depends-on): Likewise.
61134         * modules/getline (Depends-on): Likewise.
61135         * modules/getsubopt (Depends-on): Likewise.
61136         * modules/gettext (Depends-on): Likewise.
61137         * modules/group-member (Depends-on): Likewise.
61138         * modules/mbchar (Depends-on): Likewise.
61139         * modules/memmem (Depends-on): Likewise.
61140         * modules/mempcpy (Depends-on): Likewise.
61141         * modules/memrchr (Depends-on): Likewise.
61142         * modules/pagealign_alloc (Depends-on): Likewise.
61143         * modules/readutmp (Depends-on): Likewise.
61144         * modules/stpcpy (Depends-on): Likewise.
61145         * modules/stpncpy (Depends-on): Likewise.
61146         * modules/strchrnul (Depends-on): Likewise.
61147         * modules/strndup (Depends-on): Likewise.
61148         * modules/strsep (Depends-on): Likewise.
61149         * modules/strverscmp (Depends-on): Likewise.
61150         * modules/vasprintf (Depends-on): Likewise.
61151         * modules/wcwidth (Depends-on): Likewise.
61152         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): AC_GNU_SOURCE will be
61153         obsolete in Autoconf 2.62; use AC_USE_SYSTEM_EXTENSIONS instead.
61154         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_GNU): Likewise.
61155         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDR_INFO): Likewise.
61156         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
61157         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
61158         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Likewise.
61159         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
61160         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Likewise.
61161         * m4/mbchar.m4 (gl_MBCHAR): Likewise.
61162         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
61163         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Likewise.
61164         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Likewise.
61165         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Likewise.
61166         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC): Likewise.
61167         * m4/readutmp.m4 (gl_READUTMP): Likewise.
61168         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
61169         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Likewise.
61170         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
61171         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Likewise.
61172         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
61173         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Likewise.
61174         * m4/strsep.m4 (gl_FUNC_STRSEP): Likewise.
61175         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Likewise.
61176         * m4/vasprintf.m4 (gl_PREREQ_VASPRINTF_H): Likewise.
61177         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
61178         * m4/lock.m4 (gl_LOCK_EARLY_BODY): Likewise, but provide fallback,
61179         so that lock.m4 can be used in gettext without extensions module.
61180
61181 2007-09-11  Bruno Haible  <bruno@clisp.org>
61182
61183         * m4/isc-posix.m4: Remove file.
61184         Suggested by Eric Blake.
61185
61186 2007-09-11  Eric Blake  <ebb9@byu.net>
61187
61188         * ChangeLog: Restore lines accidentally truncated 2007-04-06.
61189
61190 2007-09-10  Bruno Haible  <bruno@clisp.org>
61191
61192         * posix-modules: Fix typo in error message.
61193         Reported by Matt <mkraai@beckman.com>.
61194
61195 2007-09-09  Bruno Haible  <bruno@clisp.org>
61196
61197         * doc/functions/getdelim.texi: Update list of platforms lacking the
61198         function.
61199         * doc/functions/getline.texi: Likewise.
61200
61201 2007-09-09  Jim Meyering  <jim@meyering.net>
61202
61203         * lib/hash.c (hash_initialize): Detect calloc failure.
61204         Reported by Bruno Haible.
61205
61206 2007-09-09  Bruno Haible  <bruno@clisp.org>
61207
61208         * lib/canonicalize-lgpl.c (__realpath): Set errno to ENOMEM when
61209         malloc or realloc fails.
61210
61211 2007-09-09  Bruno Haible  <bruno@clisp.org>
61212
61213         * modules/getcwd (Depends-on): Add malloc-posix.
61214         * modules/glob (Depends-on): Likewise.
61215         * modules/putenv (Depends-on): Likewise.
61216         * modules/strdup (Depends-on): Likewise.
61217         * modules/getdelim (Depends-on): Add realloc-posix.
61218         * modules/read-file (Depends-on): Likewise.
61219
61220 2007-09-09  Bruno Haible  <bruno@clisp.org>
61221
61222         * m4/malloc.m4 (gl_CHECK_MALLOC_POSIX): New macro.
61223         (gl_FUNC_MALLOC_POSIX): Require it.
61224         * m4/realloc.m4 (gl_FUNC_REALLOC_POSIX): Likewise.
61225         * m4/calloc.m4 (gl_FUNC_CALLOC_POSIX): Likewise.
61226         * modules/realloc (Files): Add m4/malloc.m4.
61227         * modules/calloc (Files): Likewise.
61228
61229 2007-09-09  Bruno Haible  <bruno@clisp.org>
61230
61231         * modules/malloc-posix: New file.
61232         * modules/malloc (Depends-on): Add malloc-posix.
61233         * lib/malloc.c: Include errno.h.
61234         (rpl_malloc): Merge the requirements of a glibc-compatible malloc
61235         and a POSIX-compatible malloc into a single function. Set ENOMEM
61236         when returning NULL.
61237         * m4/malloc.m4: New file.
61238         * doc/functions/malloc.texi: Mention the malloc-posix module.
61239         * lib/stdlib_.h (malloc): New declaration.
61240         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
61241         GNULIB_MALLOC_POSIX and HAVE_MALLOC_POSIX.
61242         * modules/stdlib (stdlib.h): Substitute also GNULIB_MALLOC_POSIX
61243         and HAVE_MALLOC_POSIX.
61244
61245 2007-09-09  Bruno Haible  <bruno@clisp.org>
61246
61247         * modules/realloc-posix: New file.
61248         * modules/realloc (Depends-on): Add realloc-posix.
61249         * lib/realloc.c: Include errno.h.
61250         (rpl_realloc): Merge the requirements of a glibc-compatible realloc
61251         and a POSIX-compatible realloc into a single function. Set ENOMEM
61252         when returning NULL.
61253         * m4/realloc.m4: New file.
61254         * doc/functions/realloc.texi: Mention the realloc-posix module.
61255         * lib/stdlib_.h (realloc): New declaration.
61256         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
61257         GNULIB_REALLOC_POSIX and HAVE_REALLOC_POSIX.
61258         * modules/stdlib (stdlib.h): Substitute also GNULIB_REALLOC_POSIX
61259         and HAVE_REALLOC_POSIX.
61260
61261 2007-09-09  Bruno Haible  <bruno@clisp.org>
61262
61263         * modules/calloc-posix: New file.
61264         * modules/calloc (Depends-on): Add calloc-posix.
61265         * lib/calloc.c: Include errno.h.
61266         (rpl_calloc): Merge the requirements of a glibc-compatible calloc
61267         and a POSIX-compatible calloc into a single function. Set ENOMEM
61268         when returning NULL.
61269         * m4/calloc.m4 (gl_FUNC_CALLOC_POSIX): New macro.
61270         * doc/functions/calloc.texi: Mention the calloc-posix module.
61271         * lib/stdlib_.h (calloc): New declaration.
61272         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
61273         GNULIB_CALLOC_POSIX and HAVE_CALLOC_POSIX.
61274         * modules/stdlib (stdlib.h): Substitute also GNULIB_CALLOC_POSIX
61275         and HAVE_CALLOC_POSIX.
61276
61277 2007-09-09  Bruno Haible  <bruno@clisp.org>
61278
61279         Allow for modules to show an arbitrary notice.
61280         * modules/TEMPLATE-EXTENDED: Add 'Notice' field.
61281         * gnulib-tool: New option --extract-notice.
61282         (func_usage): Document it.
61283         (sed_extract_prog): Update.
61284         (func_get_notice): New function.
61285         (func_modules_notice): New function.
61286         (func_import, func_create_testdir): Invoke it.
61287         Suggested by Jim Meyering.
61288
61289 2007-09-09  Bruno Haible  <bruno@clisp.org>
61290
61291         * gnulib-tool: New options --verbose, --quiet.
61292         (func_usage): Document them.
61293         (verbose): New variable.
61294         (func_execute_command): New function.
61295         (func_import): Don't show the module list and the file list if
61296         $verbose < 0.
61297         (func_create_testdir): Likewise. Use func_execute_command.
61298         (func_create_megatestdir): Use func_execute_command.
61299
61300 2007-09-08  Bruno Haible  <bruno@clisp.org>
61301
61302         * gnulib-tool (func_import): Prefer rsync over wget when available,
61303         for fetching the PO files.
61304
61305 2007-09-08  Bruno Haible  <bruno@clisp.org>
61306
61307         * posix-modules: New file. Portions copied from gnulib-tool.
61308         * doc/gnulib.texi (POSIX Substitutes Library): New chapter.
61309
61310 2007-09-08  Jim Meyering  <jim@meyering.net>
61311
61312         Rename __fpending.c -> fpending.c and __fpending.h -> fpending.h
61313         * lib/fpending.h: Rename from __fpending.h.
61314         * lib/fpending.c: Rename from __fpending.c.
61315         Include "fpending.h", not "__fpending.h".
61316         * lib/__fpending.h, lib/__fpending.c: Remove files.
61317         * modules/fpending (Files): Reflect new file names.
61318         * lib/close-stream.c: Include "fpending.h", not "__fpending.h".
61319
61320 2007-09-08  Bruno Haible  <bruno@clisp.org>
61321
61322         * m4/inttypes-h.m4: Remove stub file.
61323
61324 2007-09-07  Simon Josefsson  <simon@josefsson.org>
61325
61326         * doc/headers/stdint.texi: Discuss #include_next issue.
61327
61328 2007-09-06  Paul Eggert  <eggert@cs.ucla.edu>
61329
61330         * build-aux/bootstrap: Remove obsolete comment about wget --help.
61331
61332 2007-09-06  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
61333
61334         * m4/time_h.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Fix misspelling
61335         in variable name.
61336
61337 2007-09-03  Jim Meyering  <jim@meyering.net>
61338
61339         New module: git-version-gen.
61340         * modules/git-version-gen: New file.
61341
61342         Import changes from coreutils for bootstrap script.
61343
61344         * build-aux/bootstrap (WGET_COMMAND): Remove code to set this variable.
61345
61346         bootstrap: uses rsync to download the .po files
61347         * build-aux/bootstrap (po_download_command_format): New global.
61348         (download_po_files): Use rsync.
61349         (update_po_files): Don't remove .po files after download,
61350         so future rsync runs can take advantage of the copies.
61351
61352         * build-aux/bootstrap (gnulib_tool): Make sha1sum check quietly.
61353
61354         Solve the unnecessary-.po-file-regeneration problem once and for all.
61355         * build-aux/bootstrap (download_po_files): New function, renamed from
61356         get_translations.  Now, downloads, but doesn't update LINGUAS.
61357         (update_po_files): New function.
61358
61359         bootstrap: Ignore more.
61360         * build-aux/bootstrap (symlink_to_dir): Add a directory name like
61361         uniwidth to e.g., lib/.gitignore.
61362         (slurp): Handle the sys_stat_.h -> sys mapping, too.
61363
61364         * build-aux/bootstrap: New setting: vc_ignore.
61365         (insert_sorted_if_absent): Create $file if absent.
61366         Adapt to new, possibly empty, list: $vc_ignore.
61367
61368         bootstrap: generate more ignorable names
61369         * build-aux/bootstrap (slurp): When generating ignorable names,
61370         also map .sin to .sed, .gperf to .c, and .y to .c.
61371
61372 2007-09-03  Jim Meyering  <jim@meyering.net>
61373
61374         * build-aux/git-version-gen: New file, from coreutils.  For details, see
61375         http://git.sv.gnu.org/gitweb/?p=coreutils.git;a=commitdiff;h=bfe49f506
61376
61377 2007-09-02  Bruno Haible  <bruno@clisp.org>
61378
61379         Fix mis-recognition of 'mcs' on QNX 6.
61380         * m4/csharpcomp.m4 (gt_CSHARPCOMP): Test whether the "mcs --version"
61381         output contains the string "Mono".
61382         * lib/csharpcomp.c (compile_csharp_using_mono): Likewise.
61383         Reported by <kraai@ftbfs.org> at <https://savannah.gnu.org/bugs/?18337>.
61384
61385 2007-09-01  Bruno Haible  <bruno@clisp.org>
61386
61387         Fix collision between uniwidth/* and linebreak modules.
61388         * lib/linebreak.h (locale_charset, uc_width, u8_width, u16_width,
61389         u32_width): Remove declarations.
61390         * lib/linebreak.c: Include uniwidth.h, uniwidth/cjk.h, streq.h.
61391         (u32_mbtouc_unsafe, streq9, streq8, streq7, streq6, streq5, streq4,
61392         streq3, streq2, streq1, streq0): Remove functions.
61393         (STREQ): Remove macro.
61394         (is_cjk_encoding): Remove function.
61395         (nonspacing_table_data, nonspacing_table_ind): Remove constants.
61396         (uc_width, u8_width, u16_width, u32_width): Remove functions.
61397         * modules/linebreak (Depends-on): Add streq, uniwidth/width.
61398         * NEWS: Document the change.
61399
61400 2007-09-01  Bruno Haible  <bruno@clisp.org>
61401
61402         * lib/streq.h: Add double-inclusion guard.
61403
61404 2007-09-01  Karl Berry  <karl@gnu.org>
61405
61406         * MODULES.html.sh: Rename mreadlink_with_size to areadlink_with_size.
61407
61408 2007-08-28  Jim Meyering  <jim@meyering.net>
61409
61410         Rename mreadlink_with_size to areadlink_with_size.
61411         * NEWS: Document the change.
61412         * lib/mreadlink-with-size.c (mreadlink_with_size): Rename this to...
61413         * lib/areadlink-with-size.c (areadlink_with_size): ...this.
61414         * lib/mreadlink.h: Rename this to...
61415         * lib/areadlink.h: ...this.
61416         * modules/mreadlink-with-size: Rename this to...
61417         * modules/areadlink-with-size: ...this.
61418         * lib/canonicalize.c: Reflect the renaming.
61419         * modules/canonicalize: Likewise.
61420
61421 2007-08-26  Bruno Haible  <bruno@clisp.org>
61422
61423         * gnulib-tool (func_import): When deciding which files to remove,
61424         consider also dangling symbolic links.
61425         Reported by Eric Blake.
61426
61427 2007-08-26  Bruno Haible  <bruno@clisp.org>
61428
61429         * gnulib-tool (func_ln_if_changed): Use "test -h", not "test -L".
61430
61431 2007-08-23  Simon Josefsson  <simon@josefsson.org>
61432
61433         * lib/readline.c: Don't include getline.h, the prototype is now
61434         found in stdio.h.
61435
61436 2007-08-23  Jim Meyering  <jim@meyering.net>
61437
61438         Getdelim touchup.
61439         * lib/getdelim.c (getdelim): Don't bother to save/restore errno
61440         around the funlockfile call, since funlockfile never sets errno.
61441         Don't set errno upon failed realloc.
61442
61443 2007-08-22  Eric Blake  <ebb9@byu.net>
61444
61445         Getline touchups.
61446         * lib/getdelim.c (getdelim): Revert regression that required *n to
61447         be 0 when *lineptr is NULL.  Preserve errno across funlockfile.
61448         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Check for declaration of
61449         getdelim, rather than whether implementation is missing.
61450         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise for getline.
61451         * lib/stdio_.h (getline): Also declare if replacement is
61452         required.
61453         * doc/functions/getdelim.texi: New file.
61454         * doc/functions/getline.texi: Likewise.
61455         * doc/gnulib.texi (Function Substitutes): Add new files.
61456         Reported by Bruno Haible.
61457
61458 2007-08-22  Ludovic Courtès  <ludo@gnu.org>
61459
61460         * users.txt: Add Guile.
61461
61462 2007-08-22  Eric Blake  <ebb9@byu.net>
61463
61464         * tests/test-getdelim.c (main): Use remove, not unlink.
61465         * tests/test-getline.c (main): Likewise.
61466
61467         Move getline and getdelim into stdio.h, per POSIX 200x.
61468         * modules/getline (Files): Remove getline.h.
61469         (Depends-on): Add stdio.
61470         (configure.ac): Add module indicator.
61471         * modules/getdelim (Files): Remove getdelim.h.
61472         (Depends-on): Add stdio.
61473         (configure.ac): Add module indicator.
61474         * modules/stdio (Makefile.am): Work with new indicators.
61475         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add new defaults.
61476         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Work with stdio needs.
61477         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
61478         * lib/getdelim.h: Delete.
61479         * lib/getline.h: Delete.
61480         * lib/stdio_.h (getdelim, getline): Declare.
61481         * modules/getdelim-tests: New module.
61482         * modules/getline-tests: Likewise.
61483         * tests/test-getdelim.c: New file.
61484         * tests/test-getline.c: Likewise.
61485         * NEWS: Document the change.
61486         * lib/getline.c: Update choice of header.
61487         * lib/csharpcomp.c: Likewise.
61488         * lib/getpass.c: Likewise.
61489         * lib/javacomp.c: Likewise.
61490         * lib/javaversion.c: Likewise.
61491         * lib/yesno.c: Likewise.
61492         * lib/getdelim.c: Likewise.
61493         (getdelim): Set errno on failure, and avoid memory leak.
61494
61495 2007-08-19  Bruno Haible  <bruno@clisp.org>
61496
61497         * modules/closein (Depends-on): Add freadahead.
61498         * lib/closein.c: Include freadahead.h.
61499         (close_stdin): Skip the fseeko and fflush calls if freadahead(stdin)
61500         is zero.
61501
61502 2007-08-19  Bruno Haible  <bruno@clisp.org>
61503
61504         * modules/freadahead-tests: New file.
61505         * tests/test-freadahead.sh: New file.
61506         * tests/test-freadahead.c: New file.
61507
61508         * modules/freadahead: New file.
61509         * lib/freadahead.h: New file.
61510         * lib/freadahead.c: New file.
61511         * MODULES.html.sh (File stream based Input/Output): Add freadahead,
61512         fbufmode, fpurge, freadable, fwritable.
61513
61514 2007-08-19  Eric Blake  <ebb9@byu.net>
61515
61516         Test yesno in combination with closein.
61517         * lib/yesno.c (yesno): Document use of stdin.
61518         * modules/yesno-tests (Files): New module.
61519         * tests/test-yesno.c (main): New file.
61520         * tests/test-yesno.sh: Likewise.
61521
61522 2007-08-19  Bruno Haible  <bruno@clisp.org>
61523
61524         * lib/fbufmode.c (fbufmode): Add tentative support for Solaris/AMD64.
61525         * lib/fseeko.c (rpl_fseeko): Likewise.
61526         * lib/fseterr.c (fseterr): Likewise.
61527
61528 2007-08-19  Bruno Haible  <bruno@clisp.org>
61529
61530         * tests/test-lseek.c (main): Disable a test for BeOS.
61531         * doc/functions/lseek.texi: Document the BeOS bug.
61532
61533 2007-08-19  Bruno Haible  <bruno@clisp.org>
61534             Eric Blake  <ebb9@byu.net>
61535
61536         * lib/lseek.c: Include <sys/stat.h>.
61537         (rpl_lseek): Add workaround code also for Unix platforms.
61538         Needed for BeOS.
61539         * m4/lseek.m4 (gl_FUNC_LSEEK): When cross-compiling, fail on BeOS.
61540         * doc/functions/lseek.texi: Document BeOS definiency.
61541
61542 2007-08-18  Bruno Haible  <bruno@clisp.org>
61543
61544         * modules/fstrcmp-tests: New file.
61545         * tests/test-fstrcmp.c: New file.
61546
61547 2007-08-18  Bruno Haible  <bruno@clisp.org>
61548
61549         * modules/fstrcmp: New file, from GNU gettext with modifications.
61550         * lib/fstrcmp.h: New file, from GNU gettext.
61551         * lib/fstrcmp.c: New file, from GNU gettext.
61552         * MODULES.html.sh (String handling): Add fstrcmp.
61553
61554 2007-08-18  Bruno Haible  <bruno@clisp.org>
61555
61556         * lib/diffseq.h (struct context): Change type of 'heuristic' field to
61557         'bool'.
61558         (diag, compareseq): Remove const from the ctxt argument.
61559         (USE_HEURISTIC): Undefine at the end.
61560
61561 2007-08-18  Jim Meyering  <jim@meyering.net>
61562
61563         New file: lib/idcache.h
61564         * NEWS: Mention the addition.
61565         * modules/idcache (Files): Add lib/idcache.h
61566         * lib/idcache.c: Include "idcache.h".
61567         Don't include <sys/types.h>.
61568         Add a FIXME comment.
61569         Move file-scoped "static" declarations to the top.
61570         * lib/idcache.h: New file.  Include <sys/types.h> here, instead.
61571
61572 2007-08-17  Bruno Haible  <bruno@clisp.org>
61573         and Paul Eggert  <eggert@cs.ucla.edu>
61574
61575         * MODULES.html.sh: Add diffseq.
61576         * modules/diffseq: New file.
61577         * lib/diffseq.h: New file, from GNU gettext with a few minor changes,
61578         extracted from GNU gettext's fstrcmp.c and GNU diff's analyze.c.
61579
61580 2007-08-15  Paul Eggert  <eggert@cs.ucla.edu>
61581
61582         Import changes from coreutils for bootstrap script.
61583
61584         2007-07-21  Paul Eggert  <eggert@cs.ucla.edu>
61585
61586         * build-aux/bootstrap (slurp): Work even in environments where
61587         "ls" defaults to "ls -A".  Put in a FIXME, though, since the
61588         current code does not slurp files whose names start with ".", and
61589         this looks like it might be a troublesome area.
61590
61591         2007-07-11  Jim Meyering  <jim@meyering.net>
61592
61593         If there's a GPL vN copyright comment, require that N == 3.
61594
61595         2007-07-08  Jim Meyering  <jim@meyering.net>
61596
61597         Run the coreutils-specific code only if tests/Makefile.am.in exists.
61598         * build-aux/bootstrap (mam_template): Move definition out of loop.
61599
61600         Create symlinks for gl/{lib,m4}/*, just as for gnulib/{lib,m4}/*.
61601
61602         * build-aux/bootstrap (symlink_to_dir): Rename function from
61603         symlink_to_gnulib.  Add a directory parameter.  Update all
61604         callers.
61605         (cp_mark_as_generated): Also check for -- and link to -- files in
61606         gl/.
61607
61608         2007-07-08  Jim Meyering  <jim@meyering.net>
61609
61610         Adapt to deeper hierarchy in gnulib.
61611         * build-aux/bootstrap (symlink_to_dir): If the destination
61612         directory doesn't exist, create it. This is required at least for
61613         "lib/uniwidth/cjk.h".
61614
61615         2007-05-15  Jim Meyering  <jim@meyering.net>
61616
61617         * build-aux/bootstrap: Now that generated Makefile.am files
61618         are no longer under version control, they must be created at
61619         bootstrap time.
61620
61621 2007-08-14  Ben Pfaff  <blp@gnu.org>
61622
61623         * lib/count-one-bits.h: Add comments.  From Bruno Haible.
61624
61625 2007-08-14  Paul Eggert  <eggert@cs.ucla.edu>
61626
61627         * lib/count-one-bits.h: Don't include <limits.h>; no longer needed
61628         given the changes below.
61629         (COUNT_ONE_BITS): Use 'verify' rather than 'verify_true'.  Work
61630         even on hosts that have padding bits beyond the supported 64.
61631
61632 2007-08-10  Paul Eggert  <eggert@cs.ucla.edu>
61633
61634         * NEWS: In xstrtol, remove STRTOL_FATAL_ERROR and add xstrtol_fatal.
61635         * lib/xstrtol.h: Don't include exitfail.h; that's now internal to
61636         xstrtol.c.  Include getopt.h, since xstrtol_fatal's signature
61637         depends on it.
61638         (xstrtol_error): Remove.
61639         (xstrtol_fatal): New decl, replacing the functionality of xstrtol_error
61640         but with a different signature.
61641         (ATTRIBUTE_NORETURN, __attribute__): New macros.
61642         * lib/xstrtol-error.c: Include exitfail.h.
61643         (xstrtol_fatal): New function, with a different signature from the
61644         old xstrtol_error, so that the caller need not worry about passing
61645         in an exit status, or about storage management of the option argument.
61646         (xstrtol_error): Now a static function.  Redo signature to
61647         implement xstrtol_fatal.  Output the correct number of hyphens in
61648         front of the option so that the caller need not worry about
61649         storage management.
61650         (N_): New macro.
61651         (_): Remove; not used now.
61652         * modules/xstrtol: Depend on getopt.
61653         * tests/test-xstrtol.c (main): Use new xstrtol_error function instead
61654         of old STRTOL_FATAL_ERROR macro.
61655         * tests/test-xstrtol.sh (t-xstrtol.xo): Adjust to match new behavior
61656         of test program.
61657         * tests/test-xstrtoimax.sh (t-xstrtoimax.xo): Likewise.
61658         * tests/test-xstrtoumax.sh (t-xstrtoumax.xo): Likewise.
61659
61660 2007-08-08  Eric Blake  <ebb9@byu.net>
61661
61662         * lib/xstrtol-error.c: Add missing include.
61663
61664         Move xstrtol messages into gnulib domain, when --pobase is used.
61665         * lib/xstrtol.h (_STRTOL_ERROR): Move messages out of macro...
61666         * lib/xstrtol-error.c (xstrtol_error): ...into new file.
61667         * modules/xstrtol (Files): Distribute new file.
61668         * m4/xstrtol.m4 (gl_XSTRTOL): Build new file.
61669         * lib/xstrtol.c (TESTING_XSTRTO): Move tests...
61670         * tests/test-xstrtol.c: ...into new file.
61671         * tests/test-xstrtoul.c: Also test xstrtoul.
61672         * tests/test-xstrtoimax.c: Also test xstrtoimax.
61673         * tests/test-xstrtoumax.c: Also test xstrtoumax.
61674         * tests/test-xstrtol.sh: Drive the tests.
61675         * tests/test-xstrtoimax.sh: Likewise.
61676         * tests/test-xstrtoumax.sh: Likewise.
61677         * modules/xstrtol-tests: New module.
61678         * modules/xstrtoimax-tests: Likewise.
61679         * modules/xstrtoumax-tests: Likewise.
61680
61681 2007-08-08  Jim Meyering  <jim@meyering.net>
61682
61683         New function: mfile_name_concat.
61684         * lib/filenamecat.c (mfile_name_concat): New function, just like
61685         file_name_concat, but return NULL upon failure rather than exiting
61686         with a diagnostic.
61687         * lib/filenamecat.h: Declare it.
61688
61689 2007-08-07  Bruno Haible  <bruno@clisp.org>
61690
61691         * m4/inttypes.m4 (gl_INTTYPES_H): Use GL_TRIGGER_STDC_LIMIT_MACROS
61692         instead of __STDC_LIMIT_MACROS_TRIGGER. This avoids a redefinition
61693         warning from gcc.
61694         Reported by Eric Blake.
61695
61696 2007-08-07  Simon Josefsson  <simon@josefsson.org>
61697
61698         * modules/crypto/arctwo (License): Use the synonymous term "LGPLv2+".
61699         * modules/crypto/arcfour (License): Likewise.
61700         * modules/crypto/des-tests (License): Likewise.
61701         * modules/crypto/gc-arctwo-tests (License): Likewise.
61702         * modules/crypto/gc-des-tests (License): Likewise.
61703         * modules/crypto/gc-hmac-md5-tests (License): Likewise.
61704         * modules/crypto/gc-hmac-sha1-tests (License): Likewise.
61705         * modules/crypto/gc-md2-tests (License): Likewise.
61706         * modules/crypto/gc-md4-tests (License): Likewise.
61707         * modules/crypto/gc-md5-tests (License): Likewise.
61708         * modules/crypto/gc-pbkdf2-sha1-tests (License): Likewise.
61709         * modules/crypto/gc-rijndael-tests (License): Likewise.
61710         * modules/crypto/gc-sha1-tests (License): Likewise.
61711         * modules/crypto/gc-tests (License): Likewise.
61712         * modules/crypto/hmac-md5 (License): Likewise.
61713         * modules/crypto/hmac-sha1 (License): Likewise.
61714         * modules/crypto/md2-tests (License): Likewise.
61715         * modules/crypto/md4-tests (License): Likewise.
61716         * modules/crypto/md5 (License): Likewise.
61717         * modules/crypto/rijndael (License): Likewise.
61718         * modules/crypto/sha1 (License): Likewise.
61719         * modules/memxor (License): Likewise.
61720
61721 2007-08-06  Paul Eggert  <eggert@cs.ucla.edu>
61722         and Bruno Haible  <bruno@clisp.org>
61723
61724         * NEWS: Describe interface changes to human, xstrtol.
61725         * lib/human.h: Include <xstrtol.h>.
61726         (human_options): Return enum strtol_error, not int.  Remove
61727         bool arg; take int * instead.
61728         * lib/human.c: Don't include "gettext.h".
61729         (_): Remove; no longer used.
61730         Don't include <xstrtol.h>, since human.h does it.
61731         (human_options): Adjust to abovementioned interface changes.
61732         Do not report error to stderr; that's now the caller's
61733         responsibility.
61734         * lib/xstrtol.c (main) [defined TESTING_XSTRTO]: Adjust to
61735         interface change.
61736         * lib/xstrtol.h (_STRTOL_ERROR): Take Option, Arg rather than
61737         Str, Argument_type_string.  All uses changed.  Put " argument"
61738         in diagnostics to make them clearer.  Change wording of suffix
61739         message for clarity.
61740         (STRTOL_FATAL_ERROR): Take Option, Arg rather than Str,
61741         Argument_type_string.
61742         (STRTOL_FATAL_WARN): Remove; no longer used.
61743         * modules/human (Depends-on): Remove gettext-h.
61744
61745 2007-08-06  Simon Josefsson  <simon@josefsson.org>
61746
61747         * build-aux/maint.mk, build-aux/GNUmakefile: Relicense to GPLv3+.
61748
61749 2007-07-31  Bruno Haible  <bruno@clisp.org>
61750
61751         * m4/stdint.m4 (gl_STDINT_H): Test whether WCHAR_MIN and WCHAR_MAX
61752         are defined by <stdint.h> (as opposed to <wchar.h>, as on Dragonfly).
61753         Reported by Joerg Sonnenberger <joerg@britannica.bec.de>.
61754
61755 2007-07-31  Bruno Haible  <bruno@clisp.org>
61756
61757         * lib/fflush.c (rpl_fflush): On BSD systems, use the __SNPT flag.
61758         Suggested by Joerg Sonnenberger <joerg@britannica.bec.de>.
61759
61760 2007-07-30  Bruno Haible  <bruno@clisp.org>
61761
61762         * modules/base64 (License): Use the synonymous term "LGPLv2+".
61763         * modules/c-ctype (License): Likewise.
61764         * modules/c-strcase (License): Likewise.
61765         * modules/check-version (License): Likewise.
61766         * modules/iconv (License): Likewise.
61767         * modules/iconv_open (License): Likewise.
61768         * modules/read-file (License): Likewise.
61769         * modules/striconv (License): Likewise.
61770         * modules/strverscmp (License): Likewise.
61771         * modules/vasprintf (License): Likewise.
61772         * modules/crypto/des (License): Likewise.
61773         * modules/crypto/gc (License): Likewise.
61774         * modules/crypto/gc-arcfour (License): Likewise.
61775         * modules/crypto/gc-arctwo (License): Likewise.
61776         * modules/crypto/gc-des (License): Likewise.
61777         * modules/crypto/gc-hmac-md5 (License): Likewise.
61778         * modules/crypto/gc-hmac-sha1 (License): Likewise.
61779         * modules/crypto/gc-md2 (License): Likewise.
61780         * modules/crypto/gc-md4 (License): Likewise.
61781         * modules/crypto/gc-md5 (License): Likewise.
61782         * modules/crypto/gc-pbkdf2-sha1 (License): Likewise.
61783         * modules/crypto/gc-random (License): Likewise.
61784         * modules/crypto/gc-rijndael (License): Likewise.
61785         * modules/crypto/gc-sha1 (License): Likewise.
61786         * modules/crypto/md2 (License): Likewise.
61787         * modules/crypto/md4 (License): Likewise.
61788
61789 2007-07-30  Jim Meyering  <jim@meyering.net>
61790
61791         * lib/fts.c (fts_read): Upon failure to chdir into a subdirectory,
61792         set fts_info to FTS_DNR, not to FTS_ERR, so that the caller knows
61793         it has valid stat data.  This bug would cause du not to count the
61794         sizes of inaccessible directories.
61795         Patch by Bryan Mason <bmason@redhat.com>, via Jose Maria Plans
61796         in <http://bugzilla.redhat.com/250077>.
61797
61798 2007-07-25  Peter O'Gorman  <peter@pogma.com>
61799             Bruno Haible  <bruno@clisp.org>
61800
61801         * m4/include_next.m4 (gl_INCLUDE_NEXT): Test whether #include_next
61802         really works. Needed because AIX 4.3 "xlc -E" doesn't understand
61803         #include_next, gives a diagnostic about it, but reports no error in
61804         the exit code.
61805         Reported by Gary V. Vaughan <gary@thewrittenword.com>.
61806
61807 2007-07-24  Ben Pfaff  <blp@gnu.org>
61808
61809         Improve name: "count-one-bits" is better than "popcount".
61810         * MODULES.html.sh: Update name.
61811         * lib/popcount.h: Renamed lib/count-one-bits.h.
61812         (popcount): Renamed count_one_bits.
61813         (popcountl): Renamed count_one_bits_l.
61814         (popcountll): Renamed count_one_bits_ll.
61815         * m4/popcount.m4: Renamed m4/count-one-bits.m4.
61816         * modules/popcount: Renamed module/count-one-bits.
61817         * modules/popcount-tests: Renamed module/count-one-bits-tests.
61818         * tests/test-popcount.c: Renamed tests/test-count-one-bits.c.
61819
61820 2007-07-23  Ben Pfaff  <blp@gnu.org>
61821
61822         * lib/popcount.h (popcount32): Reduce size of constants, to allow
61823         better code generation, and add U to large constants to avoid
61824         warnings, in non-GCC case.
61825         Suggested by Bruno Haible.
61826
61827 2007-07-23  Ben Pfaff  <blp@gnu.org>
61828
61829         * lib/popcount.h: Use verify_true instead of if...abort.
61830         * modules/popcount: Depend on verify module.
61831         Suggested by Jim Meyering.
61832
61833 2007-07-23  Bruno Haible  <bruno@clisp.org>
61834
61835         * gnulib-tool (func_import): Create a .cvsignore file also when the
61836         directory is not yet in CVS but the toplevel directory is. When
61837         creating a .cvsignore file, add ".deps" and ".dirstamp" to it.
61838         Reported by Karl Berry.
61839
61840 2007-07-22  Ben Pfaff  <blp@gnu.org>
61841
61842         * lib/popcount.h: Use faster, branchless algorithm for non-GCC
61843         case.
61844         Suggested by Eric Blake.
61845
61846 2007-07-22  Ben Pfaff  <blp@gnu.org>
61847
61848         New module: popcount.
61849         * MODULES.html.sh: Add popcount.
61850         * modules/popcount: New file.
61851         * modules/popcount-tests: New file.
61852         * tests/test-popcount.c: New file.
61853         * lib/popcount.h: New file.
61854         * m4/popcount.m4: New file.
61855
61856 2007-07-22  Paul Eggert  <eggert@cs.ucla.edu>
61857
61858         * build-aux/announce-gen: Update to GPLv3.
61859
61860         * build-aux/config.guess: Update from config.
61861
61862 2007-07-21  Bruno Haible  <bruno@clisp.org>
61863
61864         * lib/error.c (_) [ENABLE_NLS]: Define to gettext.
61865         * lib/verror.c (_) [ENABLE_NLS]: Likewise.
61866
61867 2007-07-20  Jim Meyering  <jim@meyering.net>
61868
61869         * check-module: Diagnose a self-dependency.
61870
61871 2007-07-19  Bruno Haible  <bruno@clisp.org>
61872
61873         * gnulib-tool (func_import): Don't abort if pobase or po_domain is
61874         empty.
61875         Reported by Eric Blake.
61876
61877 2007-07-18  Bruno Haible  <bruno@clisp.org>
61878
61879         * gnulib-tool: New options --po-base, --po-domain.
61880         (func_usage): Document them.
61881         (pobase, po_domain): New variables.
61882         (func_emit_lib_Makefile_am): Augment AM_CPPFLAGS, defining
61883         DEFAULT_TEXT_DOMAIN.
61884         (func_emit_po_Makevars, func_emit_po_POTFILES_in): New functions.
61885         (func_import): Consider pobase and po_domain. Create a po/ directory.
61886         (func_create_testdir): Set pobase and po_domain to empty.
61887         * build-aux/po/Makefile.in.in: New file, from GNU gettext 0.16.1.
61888         * build-aux/po/remove-potcdate.sin: New file, from GNU gettext 0.16.1.
61889
61890 2007-07-18  Bruno Haible  <bruno@clisp.org>
61891
61892         * gnulib-tool (func_get_automake_snippet): Synthesize also an
61893         EXTRA_DIST augmentation for files in build-aux/.
61894
61895 2007-07-16  Bruno Haible  <bruno@clisp.org>
61896
61897         * modules/lseek (License): Use the synonymous term "LGPLv2+".
61898         * modules/getdelim (License): Likewise.
61899
61900 2007-07-16  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
61901
61902         * modules/arpa_inet (License): Use the synonymous term LGPLv2+.
61903         * modules/d-type (License): Likewise.
61904         * modules/extensions (License): Likewise.
61905         * modules/fnmatch (License): Likewise.
61906         * modules/fseeko (License): Likewise.
61907         * modules/getaddrinfo (License): Likewise.
61908         * modules/getline (License): Likewise.
61909         * modules/getlogin_r (License): Likewise.
61910         * modules/getpass (License): Likewise.
61911         * modules/gettimeofday (License): Likewise.
61912         * modules/glob (License): Likewise.
61913         * modules/inet_ntop (License): Likewise.
61914         * modules/malloc (License): Likewise.
61915         * modules/malloca (License): Likewise.
61916         * modules/memmem (License): Likewise.
61917         * modules/mempcpy (License): Likewise.
61918         * modules/memset (License): Likewise.
61919         * modules/minmax (License): Likewise.
61920         * modules/mktime (License): Likewise.
61921         * modules/netinet_in (License): Likewise.
61922         * modules/pathmax (License): Likewise.
61923         * modules/poll (License): Likewise.
61924         * modules/regex (License): Likewise.
61925         * modules/snprintf (License): Likewise.
61926         * modules/stdbool (License): Likewise.
61927         * modules/stdint (License): Likewise.
61928         * modules/stdio (License): Likewise.
61929         * modules/strcase (License): Likewise.
61930         * modules/strcasestr (License): Likewise.
61931         * modules/strdup (License): Likewise.
61932         * modules/string (License): Likewise.
61933         * modules/strndup (License): Likewise.
61934         * modules/strnlen (License): Likewise.
61935         * modules/strpbrk (License): Likewise.
61936         * modules/strptime (License): Likewise.
61937         * modules/strsep (License): Likewise.
61938         * modules/sys_select (License): Likewise.
61939         * modules/sys_socket (License): Likewise.
61940         * modules/sys_stat (License): Likewise.
61941         * modules/sys_time (License): Likewise.
61942         * modules/time (License): Likewise.
61943         * modules/time_r (License): Likewise.
61944         * modules/timegm (License): Likewise.
61945         * modules/unistd (License): Likewise.
61946         * modules/vsnprintf (License): Likewise.
61947         * modules/wctype (License): Likewise.
61948
61949 2007-07-16  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
61950
61951         * modules/argz (License): LGPLv2+.
61952
61953 2007-07-15  Karl Berry  <karl@gnu.org>
61954
61955         * doc/gnulib.texi: revise node structure per new fdl.texi.
61956
61957 2007-07-14  Bruno Haible  <bruno@clisp.org>
61958
61959         * lib/uniname/gen-uninames.lisp (main): Emit a "do not edit" line to
61960         the output file.
61961         * lib/uniname/uninames.h: Regenerated.
61962
61963 2007-07-14  Karl Berry  <karl@gnu.org>
61964
61965         * doc/*gpl*.texi, doc/fdl.texi: new versions, consistently
61966         omitting sectioning and index commands.
61967
61968 2007-07-13  Bruno Haible  <bruno@clisp.org>
61969
61970         New gnulib-tool option --more-symlinks.
61971         * gnulib-tool (func_usage): Document --more-symlinks.
61972         (do_copyrights): New variable.
61973         Recognize option --more-symlinks.
61974         (func_import): Don't add a copyright notice transform to
61975         sed_transform_lib_file if do_copyrights is empty.
61976
61977 2007-07-13  Bruno Haible  <bruno@clisp.org>
61978
61979         * lib/vasnprintf.c (decimal_point_char): Define also if
61980         (NEED_PRINTF_LONG_DOUBLE || NEED_PRINTF_INFINITE_DOUBLE)
61981         && !NEED_PRINTF_DIRECTIVE_A.
61982         Reported by Clemens Koller <clemens.koller@anagramm.de> via
61983         Gary V. Vaughan <gary@gnu.org>.
61984
61985 2007-07-13  Paul Eggert  <eggert@cs.ucla.edu>
61986
61987         * lib/inttypes_.h: Undo previous change, since it was fixed
61988         in a different way in the 2007-07-02 fix to m4/inttypes.m4.
61989
61990 2007-07-13  Bruno Haible  <bruno@clisp.org>
61991
61992         * lib/stdint_.h: Fix typo: _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H was
61993         misspelled as _GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H.
61994
61995 2007-07-13  Jim Meyering  <jim@meyering.net>
61996
61997         df: Don't fail for Tru64's "file-on-file mount".
61998         * m4/fsusage.m4 (gl_FSUSAGE): Reject Tru64's buggy statvfs,
61999         so we fall through and use statfs instead.  Details here:
62000         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/10878>
62001         Reported by Albert Chin.
62002
62003 2007-07-13  Bruno Haible  <bruno@clisp.org>
62004
62005         * modules/alloca-opt (License): Use the synonymous term "LGPLv2+".
62006         * modules/configmake (License): Likewise.
62007         * modules/gettext (License): Likewise.
62008         * modules/gettext-h (License): Likewise.
62009         * modules/include_next (License): Likewise.
62010         * modules/link-warning (License): Likewise.
62011         * modules/localcharset (License): Likewise.
62012         * modules/localename (License): Likewise.
62013         * modules/lock (License): Likewise.
62014         * modules/relocatable-lib-lgpl (License): Likewise.
62015         * modules/size_max (License): Likewise.
62016         * modules/vasnprintf (License): Likewise.
62017         * modules/wchar (License): Likewise.
62018         * modules/xsize (License): Likewise.
62019
62020 2007-07-13  Bruno Haible  <bruno@clisp.org>
62021
62022         * gnulib-tool (func_import): Treat LGPLv2 as synonymous to LGPL.
62023         (func_create_testdir): Handle copying terms "GPLv2+" and "LGPLv2+".
62024
62025 2007-07-12  Bruno Haible  <bruno@clisp.org>
62026
62027         * doc/gnulib-intro.texi (Copyright): Clarify the license abbreviations
62028         in the modules files.
62029
62030 2007-07-11  Karl Berry  <karl@gnu.org>
62031
62032         * MODULES.html.sh (func_module): use
62033          sed -e '\|^'"${includefile}"'$|d'
62034          instead of /.../d, to avoid errors on $includefile's containing /.
62035
62036 2007-07-10  Sergey Poznyakoff  <gray@gnu.org.ua>
62037
62038         * gnulib-tool (func_import): Avoid duplication of --avoid
62039         statements
62040         (func_dest_tmpfilename,func_create_testdir): Translate `-' in file
62041         names to `_' in variable names.
62042
62043 2007-07-10  Eric Blake  <ebb9@byu.net>
62044
62045         * lib/version-etc.c (version_etc_va): Default to GPLv3+.
62046         * NEWS: Document this change.
62047
62048 2007-07-08  Bruno Haible  <bruno@clisp.org>
62049
62050         Update to Unicode 5.0.
62051         * lib/uniwidth/width.c (nonspacing_table_data): Add U+00AD,
62052         U+0350..U+035F, U+05A2, U+05BA, U+05C5, U+05C7, U+0600..U+0603,
62053         U+0610..U+0615, U+0656..U+065E, U+07EB..U+07F3, U+0A01, U+0AE2..U+0AE3,
62054         U+0CBC. Remove U+0CBF, U+0CC6. Add U+0CE2..U+0CE3, U+135F,
62055         U+17B4..U+17B5, U+17DD. Remove U+180E. Add U+1920..U+1922,
62056         U+1927..U+192B, U+1932, U+1939..U+193B, U+1A17..U+1A18, U+1B00..U+1B03,
62057         U+1B34, U+1B36..U+1B3A, U+1B3C, U+1B42, U+1B6B..U+1B73, U+1DC0..U+1DCA,
62058         U+1DFE..U+1DFF, U+20EB..U+20EF, U+A802, U+A806, U+A80B, U+A825..U+A826,
62059         U+10A01..U+10A03, U+10A05..U+10A06, U+10A0C..U+10A0F, U+10A38..U+10A3A,
62060         U+10A3F, U+1D242..U+1D244.
62061         (nonspacing_table_ind): Update.
62062         (uc_width): Assign width 0 to U+E0100..U+E01EF. Assign width 1 to
62063         U+4DC0..U+4DFF. Assign width 2 to U+2329..U+232A, U+FE10..U+FE1F.
62064
62065 2007-07-08  Bruno Haible  <bruno@clisp.org>
62066
62067         Update to Unicode 5.0.
62068         * lib/uniname/gen-uninames.lisp (main): Add the range 0x12xxx to the
62069         code transform. Extend the name index field of unicode_name_to_code and
62070         unicode_code_to_name from 16 to 24 bits.
62071         * lib/uniname/uniname.c (unicode_character_name,
62072         unicode_name_character): Add the range 0x12xxx to the code transform.
62073         * lib/uniname/uninames.h: Regenerated.
62074         * tests/uniname/UnicodeDataNames.txt: Update to Unicode 5.0.
62075
62076 2007-07-07  Bruno Haible  <bruno@clisp.org>
62077
62078         * modules/wcwidth-tests: New file.
62079         * tests/test-wcwidth.c: New file.
62080
62081         Work around MacOS X wcwidth() bug.
62082         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Test against MacOS X 10.3 bug.
62083         * lib/wcwidth.c: Include localcharset.h, streq.h, uniwidth.h.
62084         (rpl_wcwidth): Special-case the UTF-8 locales. Fall back to the
62085         original wcwidth in non-UTF-8 locales.
62086         * modules/wcwidth (Depends-on): Add localcharset, streq,
62087         uniwidth/width.
62088         * doc/functions/wcwidth.texi: Update.
62089
62090 2007-07-07  Bruno Haible  <bruno@clisp.org>
62091
62092         * lib/wchar_.h: Include the GL_LINK_WARNING macro.
62093         (wcwidth): New declaration.
62094         * m4/wchar.m4 (gl_WCHAR_MODULE_INDICATOR, gl_WCHAR_H_DEFAULTS): New
62095         macros.
62096         (gl_WCHAR_H): Require gl_WCHAR_H_DEFAULTS. Don't set WCHAR_H to empty
62097         here. Prepare for creating <wchar.h> unconditionally.
62098         * modules/wchar (Depends-on): Add link-warning.
62099         (Makefile.am): Substitute also GNULIB_WCWIDTH, HAVE_DECL_WCWIDTH,
62100         REPLACE_WCWIDTH, and GL_LINK_WARNING.
62101         * lib/wcwidth.h: Remove file.
62102         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Require gl_WCHAR_H_DEFAULTS. Set
62103         HAVE_DECL_WCWIDTH, REPLACE_WCWIDTH, WCHAR_H.
62104         * modules/wcwidth (Files): Remove lib/wcwidth.h.
62105         (configure.ac): Invoke gl_WCHAR_MODULE_INDICATOR.
62106         (Include): Replace wcwidth.h with <wchar.h>.
62107         * lib/wcwidth.c: Include <wchar.h> instead of wcwidth.h.
62108         * lib/mbchar.h: Don't include wcwidth.h.
62109         * lib/mbswidth.c: Likewise.
62110         * NEWS: Mention the change.
62111
62112 2007-07-07  Bruno Haible  <bruno@clisp.org>
62113
62114         * lib/wcwidth.c: New file, extracted from lib/wcwidth.h.
62115         * lib/wcwidth.h: Don't include wctype.h. Replace inline function
62116         definition with an external declaration.
62117         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Use wcwidth.c when wcwidth is not
62118         defined as a function. Remove AC_C_INLINE requirement.
62119         * modules/wcwidth (Files): Add lib/wcwidth.c.
62120         (Makefile.am): Remove redundant statement.
62121
62122 2007-07-07  Bruno Haible  <bruno@clisp.org>
62123
62124         * MODULES.html.sh (Unicode string functions): Add the new modules.
62125
62126         * tests/uniwidth/test-u32-strwidth.c: New file.
62127         * modules/uniwidth/u32-strwidth-tests: New file.
62128
62129         * lib/uniwidth/u32-strwidth.c: New file.
62130         * modules/uniwidth/u32-strwidth: New file.
62131
62132         * tests/uniwidth/test-u16-strwidth.c: New file.
62133         * modules/uniwidth/u16-strwidth-tests: New file.
62134
62135         * lib/uniwidth/u16-strwidth.c: New file.
62136         * modules/uniwidth/u16-strwidth: New file.
62137
62138         * tests/uniwidth/test-u8-strwidth.c: New file.
62139         * modules/uniwidth/u8-strwidth-tests: New file.
62140
62141         * lib/uniwidth/u8-strwidth.c: New file.
62142         * modules/uniwidth/u8-strwidth: New file.
62143
62144         * tests/uniwidth/test-u32-width.c: New file.
62145         * modules/uniwidth/u32-width-tests: New file.
62146
62147         * lib/uniwidth/u32-width.c: New file.
62148         * modules/uniwidth/u32-width: New file.
62149
62150         * tests/uniwidth/test-u16-width.c: New file.
62151         * modules/uniwidth/u16-width-tests: New file.
62152
62153         * lib/uniwidth/u16-width.c: New file.
62154         * modules/uniwidth/u16-width: New file.
62155
62156         * tests/uniwidth/test-u8-width.c: New file.
62157         * modules/uniwidth/u8-width-tests: New file.
62158
62159         * lib/uniwidth/u8-width.c: New file.
62160         * modules/uniwidth/u8-width: New file.
62161
62162         * tests/uniwidth/test-uc_width.c: New file.
62163         * modules/uniwidth/width-tests: New file.
62164
62165         * lib/uniwidth/width.c: New file, from GNU libiconv.
62166         * lib/uniwidth/cjk.h: New file, from GNU libiconv.
62167         * modules/uniwidth/width: New file.
62168
62169         * lib/uniwidth.h: New file, from GNU libiconv.
62170         * modules/uniwidth/base: New file.
62171
62172 2007-07-07  Bruno Haible  <bruno@clisp.org>
62173
62174         * lib/uniname.h: New file, from GNU gettext.
62175         * lib/uniname/gen-uninames.lisp: New file, from GNU gettext.
62176         * lib/uniname/uninames.h: New file, from GNU gettext.
62177         * lib/uniname/uniname.c: New file, from GNU gettext.
62178         * tests/uniname/test-uninames.sh: New file.
62179         * tests/uniname/test-uninames.c: New file, from GNU gettext.
62180         * tests/uniname/UnicodeDataNames.txt: New file, from GNU gettext.
62181         * modules/uniname/base: New file.
62182         * modules/uniname/uniname: New file.
62183         * modules/uniname/uniname-tests: New file.
62184         * MODULES.html.sh (Unicode string functions): Add the new modules.
62185
62186 2007-07-06  Bruno Haible  <bruno@clisp.org>
62187
62188         * doc/Makefile (TEXI2HTML): Specify a --reference-limit.
62189
62190 2007-07-06  Bruno Haible  <bruno@clisp.org>
62191
62192         * lib/sys_time_.h: Use a recursion-safe inclusion guard rather than
62193         a split double-inclusion guard. Needed for cygwin, where <sys/time.h>
62194         includes <cygwin/sys_time.h> which includes <sys/select.h> which
62195         include <sys/time.h>.
62196         Reported by Eric Blake.
62197
62198 2007-07-06  Eric Blake  <ebb9@byu.net>
62199
62200         Fix testing canonicalize on cygwin.
62201         * modules/canonicalize-lgpl-tests (test_canonicalize_lgpl_LDADD):
62202         Revert patch from 2007-06-19.
62203         * tests/test-canonicalize-lgpl.c (main): Instead, skip test when
62204         canonicalize module is also in use.
62205         * tests/test-canonicalize.c: New file.
62206         * tests/test-canonicalize.sh: Likewise.
62207         * modules/canonicalize-tests: Likewise.
62208
62209 2007-07-06  Jim Meyering  <jim@meyering.net>
62210
62211         * lib/getugroups.c (getugroups): Detect getgrent failure.
62212         Adjust comment to reflect reality: this function may return -1.
62213
62214 2007-07-05  Sergey Poznyakoff  <gray@gnu.org.ua>
62215
62216         * build-aux/bootstrap (TP_URL,get_translations): Update to use
62217         the new TP address.
62218         (usage): Fix typo
62219         (gnulib_mk): New variable.
62220
62221 2007-07-05  Jim Meyering  <jim@meyering.net>
62222
62223         Don't let endgrent clobber errno, no matter how improbable.
62224         * lib/getugroups.c (getugroups): Save and restore errno around
62225         endgrent call.
62226
62227         Close the group DB even when failing with 2^31 or more members.
62228         * lib/getugroups.c (getugroups): Don't return without calling endgrent.
62229
62230 2007-07-04  Jim Meyering  <jim@meyering.net>
62231
62232         * lib/getugroups.h: New file.
62233         * lib/getugroups.c: Include "getugroups.h".
62234         Remove uses of "register" keyword.
62235         Move local variable, "cp", down into scope where used.
62236         Give "username" parameter the "const" attribute.
62237         * modules/getugroups (Files): Add lib/getugroups.h
62238
62239 2007-07-04  Karl Berry  <karl@gnu.org>
62240
62241         * MODULES.html.sh (func_all_modules): Complete rename of
62242         gpl/lgpl to gpl-2.0 and lgpl-2.1, and add gpl-3.0.
62243
62244 2007-07-02  Bruno Haible  <bruno@clisp.org>
62245
62246         * m4/inttypes.m4 (gl_INTTYPES_H): Define __STDC_LIMIT_MACROS in C++
62247         mode, when inttypes.h comes from gnulib.
62248         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
62249
62250 2007-07-02  Simon Josefsson  <simon@josefsson.org>
62251
62252         * NEWS: Mention lgpl module name change.
62253
62254         * modules/lgpl-2.1: Renamed from lgpl.
62255
62256         * NEWS: Mention gpl module name change.
62257
62258         * modules/gpl-3.0: New file, based on gpl-2.0.
62259
62260         * modules/gpl-2.0: Renamed from gpl.
62261
62262         * modules/gpl: Fix filename, doc/gpl.texi is now found at
62263         doc/gpl-2.0.texi.
62264
62265 2007-07-02  Paul Eggert  <eggert@cs.ucla.edu>
62266
62267         * lib/inttypes_.h [defined __cplusplus&&!defined __STDC_LIMIT_MACROS]:
62268         #define __STDC_LIMIT_MACROS temporarily while including
62269         <stdint.h>, so that __STDC_LIMIT_MACROS is defined.
62270         Problem reported by Joel E. Denny in
62271         <http://lists.gnu.org/archive/html/bug-gnulib/2007-07/msg00008.html>.
62272
62273 2007-07-01  Bruno Haible  <bruno@clisp.org>
62274
62275         * lib/unistdio.h: New file.
62276         * lib/unistdio/u-asnprintf.h: New file.
62277         * lib/unistdio/u-asprintf.h: New file.
62278         * lib/unistdio/u-printf-args.c: New file.
62279         * lib/unistdio/u-printf-args.h: New file.
62280         * lib/unistdio/u-printf-parse.h: New file.
62281         * lib/unistdio/u-snprintf.h: New file.
62282         * lib/unistdio/u-sprintf.h: New file.
62283         * lib/unistdio/u-vasprintf.h: New file.
62284         * lib/unistdio/u-vsnprintf.h: New file.
62285         * lib/unistdio/u-vsprintf.h: New file.
62286         * lib/unistdio/ulc-asnprintf.c: New file.
62287         * lib/unistdio/ulc-asprintf.c: New file.
62288         * lib/unistdio/ulc-fprintf.c: New file, based on lib/fprintf.c.
62289         * lib/unistdio/ulc-printf-parse.c: New file.
62290         * lib/unistdio/ulc-snprintf.c: New file.
62291         * lib/unistdio/ulc-sprintf.c: New file.
62292         * lib/unistdio/ulc-vasnprintf.c: New file.
62293         * lib/unistdio/ulc-vasprintf.c: New file.
62294         * lib/unistdio/ulc-vfprintf.c: New file, based on lib/vfprintf.c.
62295         * lib/unistdio/ulc-vsnprintf.c: New file.
62296         * lib/unistdio/ulc-vsprintf.c: New file.
62297         * lib/unistdio/u8-asnprintf.c: New file.
62298         * lib/unistdio/u8-asprintf.c: New file.
62299         * lib/unistdio/u8-printf-parse.c: New file.
62300         * lib/unistdio/u8-snprintf.c: New file.
62301         * lib/unistdio/u8-sprintf.c: New file.
62302         * lib/unistdio/u8-vasnprintf.c: New file.
62303         * lib/unistdio/u8-vasprintf.c: New file.
62304         * lib/unistdio/u8-vsnprintf.c: New file.
62305         * lib/unistdio/u8-vsprintf.c: New file.
62306         * lib/unistdio/u8-u8-asnprintf.c: New file.
62307         * lib/unistdio/u8-u8-asprintf.c: New file.
62308         * lib/unistdio/u8-u8-snprintf.c: New file.
62309         * lib/unistdio/u8-u8-sprintf.c: New file.
62310         * lib/unistdio/u8-u8-vasnprintf.c: New file.
62311         * lib/unistdio/u8-u8-vasprintf.c: New file.
62312         * lib/unistdio/u8-u8-vsnprintf.c: New file.
62313         * lib/unistdio/u8-u8-vsprintf.c: New file.
62314         * lib/unistdio/u16-asnprintf.c: New file.
62315         * lib/unistdio/u16-asprintf.c: New file.
62316         * lib/unistdio/u16-printf-parse.c: New file.
62317         * lib/unistdio/u16-snprintf.c: New file.
62318         * lib/unistdio/u16-sprintf.c: New file.
62319         * lib/unistdio/u16-vasnprintf.c: New file.
62320         * lib/unistdio/u16-vasprintf.c: New file.
62321         * lib/unistdio/u16-vsnprintf.c: New file.
62322         * lib/unistdio/u16-vsprintf.c: New file.
62323         * lib/unistdio/u16-u16-asnprintf.c: New file.
62324         * lib/unistdio/u16-u16-asprintf.c: New file.
62325         * lib/unistdio/u16-u16-snprintf.c: New file.
62326         * lib/unistdio/u16-u16-sprintf.c: New file.
62327         * lib/unistdio/u16-u16-vasnprintf.c: New file.
62328         * lib/unistdio/u16-u16-vasprintf.c: New file.
62329         * lib/unistdio/u16-u16-vsnprintf.c: New file.
62330         * lib/unistdio/u16-u16-vsprintf.c: New file.
62331         * lib/unistdio/u32-asnprintf.c: New file.
62332         * lib/unistdio/u32-asprintf.c: New file.
62333         * lib/unistdio/u32-printf-parse.c: New file.
62334         * lib/unistdio/u32-snprintf.c: New file.
62335         * lib/unistdio/u32-sprintf.c: New file.
62336         * lib/unistdio/u32-vasnprintf.c: New file.
62337         * lib/unistdio/u32-vasprintf.c: New file.
62338         * lib/unistdio/u32-vsnprintf.c: New file.
62339         * lib/unistdio/u32-vsprintf.c: New file.
62340         * lib/unistdio/u32-u32-asnprintf.c: New file.
62341         * lib/unistdio/u32-u32-asprintf.c: New file.
62342         * lib/unistdio/u32-u32-snprintf.c: New file.
62343         * lib/unistdio/u32-u32-sprintf.c: New file.
62344         * lib/unistdio/u32-u32-vasnprintf.c: New file.
62345         * lib/unistdio/u32-u32-vasprintf.c: New file.
62346         * lib/unistdio/u32-u32-vsnprintf.c: New file.
62347         * lib/unistdio/u32-u32-vsprintf.c: New file.
62348         * tests/unistdio/test-ulc-asnprintf1.c: New file.
62349         * tests/unistdio/test-ulc-asnprintf1.h: New file.
62350         * tests/unistdio/test-ulc-printf1.h: New file.
62351         * tests/unistdio/test-ulc-vasnprintf1.c: New file.
62352         * tests/unistdio/test-ulc-vasnprintf2.c: New file.
62353         * tests/unistdio/test-ulc-vasnprintf2.sh: New file.
62354         * tests/unistdio/test-ulc-vasnprintf3.c: New file.
62355         * tests/unistdio/test-ulc-vasnprintf3.sh: New file.
62356         * tests/unistdio/test-ulc-vasprintf1.c: New file.
62357         * tests/unistdio/test-ulc-vsnprintf1.c: New file.
62358         * tests/unistdio/test-ulc-vsprintf1.c: New file.
62359         * tests/unistdio/test-u8-asnprintf1.c: New file.
62360         * tests/unistdio/test-u8-asnprintf1.h: New file.
62361         * tests/unistdio/test-u8-printf1.h: New file.
62362         * tests/unistdio/test-u8-vasnprintf1.c: New file.
62363         * tests/unistdio/test-u8-vasnprintf2.c: New file.
62364         * tests/unistdio/test-u8-vasnprintf2.sh: New file.
62365         * tests/unistdio/test-u8-vasnprintf3.c: New file.
62366         * tests/unistdio/test-u8-vasnprintf3.sh: New file.
62367         * tests/unistdio/test-u8-vasprintf1.c: New file.
62368         * tests/unistdio/test-u8-vsnprintf1.c: New file.
62369         * tests/unistdio/test-u8-vsprintf1.c: New file.
62370         * tests/unistdio/test-u16-asnprintf1.c: New file.
62371         * tests/unistdio/test-u16-asnprintf1.h: New file.
62372         * tests/unistdio/test-u16-printf1.h: New file.
62373         * tests/unistdio/test-u16-vasnprintf1.c: New file.
62374         * tests/unistdio/test-u16-vasnprintf2.c: New file.
62375         * tests/unistdio/test-u16-vasnprintf2.sh: New file.
62376         * tests/unistdio/test-u16-vasnprintf3.c: New file.
62377         * tests/unistdio/test-u16-vasnprintf3.sh: New file.
62378         * tests/unistdio/test-u16-vasprintf1.c: New file.
62379         * tests/unistdio/test-u16-vsnprintf1.c: New file.
62380         * tests/unistdio/test-u16-vsprintf1.c: New file.
62381         * tests/unistdio/test-u32-asnprintf1.c: New file.
62382         * tests/unistdio/test-u32-asnprintf1.h: New file.
62383         * tests/unistdio/test-u32-printf1.h: New file.
62384         * tests/unistdio/test-u32-vasnprintf1.c: New file.
62385         * tests/unistdio/test-u32-vasnprintf2.c: New file.
62386         * tests/unistdio/test-u32-vasnprintf2.sh: New file.
62387         * tests/unistdio/test-u32-vasnprintf3.c: New file.
62388         * tests/unistdio/test-u32-vasnprintf3.sh: New file.
62389         * tests/unistdio/test-u32-vasprintf1.c: New file.
62390         * tests/unistdio/test-u32-vsnprintf1.c: New file.
62391         * tests/unistdio/test-u32-vsprintf1.c: New file.
62392         * modules/unistdio/base: New file.
62393         * modules/unistdio/u-printf-args: New file.
62394         * modules/unistdio/ulc-asnprintf: New file.
62395         * modules/unistdio/ulc-asprintf: New file.
62396         * modules/unistdio/ulc-fprintf: New file.
62397         * modules/unistdio/ulc-printf-parse: New file.
62398         * modules/unistdio/ulc-snprintf: New file.
62399         * modules/unistdio/ulc-sprintf: New file.
62400         * modules/unistdio/ulc-vasnprintf: New file.
62401         * modules/unistdio/ulc-vasprintf: New file.
62402         * modules/unistdio/ulc-vfprintf: New file.
62403         * modules/unistdio/ulc-vsnprintf: New file.
62404         * modules/unistdio/ulc-vsprintf: New file.
62405         * modules/unistdio/u8-asnprintf: New file.
62406         * modules/unistdio/u8-asprintf: New file.
62407         * modules/unistdio/u8-printf-parse: New file.
62408         * modules/unistdio/u8-snprintf: New file.
62409         * modules/unistdio/u8-sprintf: New file.
62410         * modules/unistdio/u8-vasnprintf: New file.
62411         * modules/unistdio/u8-vasprintf: New file.
62412         * modules/unistdio/u8-vsnprintf: New file.
62413         * modules/unistdio/u8-vsprintf: New file.
62414         * modules/unistdio/u8-u8-asnprintf: New file.
62415         * modules/unistdio/u8-u8-asprintf: New file.
62416         * modules/unistdio/u8-u8-snprintf: New file.
62417         * modules/unistdio/u8-u8-sprintf: New file.
62418         * modules/unistdio/u8-u8-vasnprintf: New file.
62419         * modules/unistdio/u8-u8-vasprintf: New file.
62420         * modules/unistdio/u8-u8-vsnprintf: New file.
62421         * modules/unistdio/u8-u8-vsprintf: New file.
62422         * modules/unistdio/u16-asnprintf: New file.
62423         * modules/unistdio/u16-asprintf: New file.
62424         * modules/unistdio/u16-printf-parse: New file.
62425         * modules/unistdio/u16-snprintf: New file.
62426         * modules/unistdio/u16-sprintf: New file.
62427         * modules/unistdio/u16-vasnprintf: New file.
62428         * modules/unistdio/u16-vasprintf: New file.
62429         * modules/unistdio/u16-vsnprintf: New file.
62430         * modules/unistdio/u16-vsprintf: New file.
62431         * modules/unistdio/u16-u16-asnprintf: New file.
62432         * modules/unistdio/u16-u16-asprintf: New file.
62433         * modules/unistdio/u16-u16-snprintf: New file.
62434         * modules/unistdio/u16-u16-sprintf: New file.
62435         * modules/unistdio/u16-u16-vasnprintf: New file.
62436         * modules/unistdio/u16-u16-vasprintf: New file.
62437         * modules/unistdio/u16-u16-vsnprintf: New file.
62438         * modules/unistdio/u16-u16-vsprintf: New file.
62439         * modules/unistdio/u32-asnprintf: New file.
62440         * modules/unistdio/u32-asprintf: New file.
62441         * modules/unistdio/u32-printf-parse: New file.
62442         * modules/unistdio/u32-snprintf: New file.
62443         * modules/unistdio/u32-sprintf: New file.
62444         * modules/unistdio/u32-vasnprintf: New file.
62445         * modules/unistdio/u32-vasprintf: New file.
62446         * modules/unistdio/u32-vsnprintf: New file.
62447         * modules/unistdio/u32-vsprintf: New file.
62448         * modules/unistdio/u32-u32-asnprintf: New file.
62449         * modules/unistdio/u32-u32-asprintf: New file.
62450         * modules/unistdio/u32-u32-snprintf: New file.
62451         * modules/unistdio/u32-u32-sprintf: New file.
62452         * modules/unistdio/u32-u32-vasnprintf: New file.
62453         * modules/unistdio/u32-u32-vasprintf: New file.
62454         * modules/unistdio/u32-u32-vsnprintf: New file.
62455         * modules/unistdio/u32-u32-vsprintf: New file.
62456         * modules/unistdio/ulc-asnprintf-tests: New file.
62457         * modules/unistdio/ulc-vasnprintf-tests: New file.
62458         * modules/unistdio/ulc-vasprintf-tests: New file.
62459         * modules/unistdio/ulc-vsnprintf-tests: New file.
62460         * modules/unistdio/ulc-vsprintf-tests: New file.
62461         * modules/unistdio/u8-asnprintf-tests: New file.
62462         * modules/unistdio/u8-vasnprintf-tests: New file.
62463         * modules/unistdio/u8-vasprintf-tests: New file.
62464         * modules/unistdio/u8-vsnprintf-tests: New file.
62465         * modules/unistdio/u8-vsprintf-tests: New file.
62466         * modules/unistdio/u16-asnprintf-tests: New file.
62467         * modules/unistdio/u16-vasnprintf-tests: New file.
62468         * modules/unistdio/u16-vasprintf-tests: New file.
62469         * modules/unistdio/u16-vsnprintf-tests: New file.
62470         * modules/unistdio/u16-vsprintf-tests: New file.
62471         * modules/unistdio/u32-asnprintf-tests: New file.
62472         * modules/unistdio/u32-vasnprintf-tests: New file.
62473         * modules/unistdio/u32-vasprintf-tests: New file.
62474         * modules/unistdio/u32-vsnprintf-tests: New file.
62475         * modules/unistdio/u32-vsprintf-tests: New file.
62476         * MODULES.html.sh (Unicode string functions): Add the new modules.
62477
62478 2007-07-01  Bruno Haible  <bruno@clisp.org>
62479
62480         * lib/sprintf.c (sprintf): Limit the available length estimation,
62481         to avoid address wraparound.
62482         * lib/vsprintf.c (vsprintf): Likewise.
62483         * modules/sprintf-posix (Dependencies): Add stdint.
62484         * modules/vsprintf-posix (Dependencies): Likewise.
62485
62486 2007-07-01  Bruno Haible  <bruno@clisp.org>
62487
62488         * gnulib-tool (self_abspathname): Determine PATH_SEPARATOR and handle
62489         Windows PATH as well. Conservative double-quoting. Comments.
62490
62491 2007-07-01  Bruno Haible  <bruno@clisp.org>
62492             Eric Blake  <ebb9@byu.net>
62493             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
62494
62495         * gnulib-tool (self_abspathname): Fix algorithm to cope with
62496         empty components in $PATH, denoting '.'.
62497
62498 2007-07-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
62499
62500         * gnulib-tool: Fix indentation.
62501         (func_create_megatestdir): Likewise.
62502         Report by Bruno Haible.
62503
62504 2007-06-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
62505
62506         Sync from Automake.
62507         * build-aux/gnupload: Fix shell portability issues with for loops.
62508         Report by Karl Berry.
62509
62510 2007-06-29  Simon Josefsson  <simon@josefsson.org>
62511
62512         * build-aux/maint.mk (POURL): Use translationproject.org.
62513
62514 2007-06-27  Simon Josefsson  <simon@josefsson.org>
62515             Bruno Haible  <bruno@clisp.org>
62516
62517         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Require gl_HEADER_SYS_SOCKET
62518         before using HAVE_WS2TCPIP_H. Check for gai_strerror through an
62519         explicit link test, rather than AC_REPLACE_FUNCS - for mingw.
62520         (gl_PREREQ_GETADDRINFO): Require gl_HEADER_SYS_SOCKET before using
62521         HAVE_SYS_SOCKET_H and HAVE_WS2TCPIP_H.
62522
62523 2007-06-27  Bruno Haible  <bruno@clisp.org>
62524
62525         * build-aux/config.rpath: Upgrade to libtool-1.5.24.
62526         * build-aux/config.libpath: Upgrade to libtool-1.5.24.
62527
62528 2007-06-26  Karl Berry  <karl@gnu.org>
62529
62530         * MODULES.html.sh: remove xreadlink-with-size.
62531
62532 2007-06-23  Paul Eggert  <eggert@cs.ucla.edu>
62533
62534         * lib/time_.h: Port to Solaris 8 with Sun Studio 11, using a
62535         method that I hope also handles the double-include problem noted
62536         by Bruno Haible in
62537         <http://lists.gnu.org/archive/html/bug-gnulib/2007-05/msg00186.html>.
62538
62539 2007-06-23  Bruno Haible  <bruno@clisp.org>
62540
62541         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
62542         Don't let the 'mostlyclean' target fail if the last subdirectory could
62543         not be removed.
62544         Reported by Karl Berry.
62545
62546 2007-06-23  Bruno Haible  <bruno@clisp.org>
62547
62548         * gnulib-tool (echo): Add a speedier workaround for ksh.
62549         * tests/test-echo.sh: Likewise.
62550
62551 2007-06-23  Bruno Haible  <bruno@clisp.org>
62552
62553         * gnulib-tool (echo): Add workarounds also for bash versions < 2.04.
62554         * tests/test-echo.sh: Likewise.
62555
62556 2007-06-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
62557
62558         * gnulib-tool (IFS): Initialize early, so we don't set it to
62559         empty later.
62560         (self_abspathname): Rewrite algorithm to set it, reindent.
62561         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am)
62562         (func_create_megatestdir): Merge some sed scripts.
62563
62564 2007-06-23  Paul Eggert  <eggert@cs.ucla.edu>
62565
62566         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Check some typos
62567         exposed by Sun Studio 11 cc on Solaris 8.
62568
62569 2007-06-22  Bruno Haible  <bruno@clisp.org>
62570
62571         * gnulib-tool (echo): Ensure the echo primitive does not interpret
62572         backslashes.
62573         * tests/test-echo.sh: New file.
62574
62575 2007-06-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
62576
62577         * gnulib-tool (func_add_or_update, func_create_testdir): Do not
62578         simplify `sed_replace_build_aux' scripts, they are portable but
62579         echoing them with `echo' is not.
62580         Report and analysis by Fernando Ferreira <fernando.prog@netcabo.pt>.
62581
62582 2007-06-21  Karl Berry  <karl@gnu.org>
62583
62584         * config/srclist.txt: guess we can't handle the licenses via
62585         srclist at the moment.
62586
62587 2007-06-21  Paul Eggert  <eggert@cs.ucla.edu>
62588
62589         * MODULES.html.sh: Add include_next.
62590         * modules/include_next: New file.
62591
62592 2007-06-20  Paul Eggert  <eggert@cs.ucla.edu>
62593
62594         * m4/include_next.m4 (gl_INCLUDE_NEXT): Define and AC_SUBST
62595         INCLUDE_NEXT.
62596         (gl_CHECK_NEXT_HEADERS): New macro.
62597         * m4/fcntl_h.m4 (gl_FCNTL_H): use gl_CHECK_NEXT_HEADERS instead of
62598         the obsolescent gl_ABSOLUTE_HEADER.
62599         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Likewise.
62600         * m4/float_h.m4 (gl_FLOAT_H): Likewise.
62601         * m4/iconv_h.m4 (gl_ICONV_H): Likewise.
62602         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
62603         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
62604         * m4/math_h.m4 (gl_MATH_H): Likewise.
62605         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Likewise.
62606         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
62607         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
62608         * m4/stdint.m4 (gl_STDINT_H): Likewise.
62609         * m4/stdio_h.m4 (gl_STDIO_H): Likewise.
62610         * m4/stdlib_h.m4 (gl_STDLIB_H): Likewise.
62611         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Likewise.
62612         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
62613         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
62614         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
62615         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Likewise.
62616         * m4/sysexits.m4 (gl_SYSEXITS): Likewise.
62617         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Likewise.
62618         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
62619         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
62620         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
62621         * m4/inttypes.m4 (gl_INTTYPES_H): Define
62622         _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H to avoid the problem of unclean
62623         builds, since ABSOLUTE_INTTYPES_H is no longer being defined.
62624         * m4/stdint.m4 (gl_STDINT_H): Likewise, for
62625         _GL_JUST_INCLUDE_SYSTEM_STDINT_H.
62626         * lib/fcntl_.h: Use @INCLUDE_NEXT@ @NEXT_foo_H@
62627         rather than @HAVE_INCLUDE_NEXT@ and @ABSOLUTE_foo_H@.
62628         * lib/float_.h: Likewise.
62629         * lib/inttypes_.h: Likewise.
62630         * lib/math_.h: Likewise.
62631         * lib/search_.h: Likewise.
62632         * lib/signal_.h: Likewise.
62633         * lib/stdint_.h: Likewise.
62634         * lib/stdio_.h: Likewise.
62635         * lib/stdlib_.h: Likewise.
62636         * lib/string_.h: Likewise.
62637         * lib/sys_stat_.h: Likewise.
62638         * lib/sys_time_.h: Likewise.
62639         * lib/time_.h: Likewise.
62640         * lib/unistd_.h: Likewise.
62641         * lib/wchar_.h: Likewise.
62642         * lib/wctype_.h: Likewise.
62643         * lib/dirent_.h: Likewise.
62644         * lib/iconv_.h: Likewise.
62645         * lib/locale_.h: Likewise.
62646         * lib/netinet_in_.h: Likewise.
62647         * lib/sys_select_.h: Likewise.
62648         * lib/sys_socket_.h: Likewise.
62649         * lib/sysexits_.h: Likewise.
62650         * modules/fcntl (Depends-on): Depend on include_next, not
62651         absolute_header.
62652         (Makefile): Substitute INCLUDE_NEXT and NEXT_foo_H, not
62653         HAVE_INCLUDE_NEXT and ABSOLUTE_foo_H.
62654         * modules/fchdir: Likewise.
62655         * modules/float: Likewise.
62656         * modules/iconv_open: Likewise.
62657         * modules/inttypes: Likewise.
62658         * modules/locale: Likewise.
62659         * modules/math: Likewise.
62660         * modules/netinet_in: Likewise.
62661         * modules/search: Likewise.
62662         * modules/signal: Likewise.
62663         * modules/stdint: Likewise.
62664         * modules/stdio: Likewise.
62665         * modules/stdlib: Likewise.
62666         * modules/string: Likewise.
62667         * modules/sys_select: Likewise.
62668         * modules/sys_socket: Likewise.
62669         * modules/sys_stat: Likewise.
62670         * modules/sys_time: Likewise.
62671         * modules/sysexits: Likewise.
62672         * modules/time: Likewise.
62673         * modules/unistd: Likewise.
62674         * modules/wchar: Likewise.
62675         * modules/wctype: Likewise.
62676         * modules/sys_stat: Change maintainer to "all".
62677         * modules/unistd: Likewise.
62678
62679 2007-06-20  Karl Berry  <karl@gnu.org>
62680
62681         * config/srclist.txt: track www changes in license files.
62682
62683 2007-06-20  Sergey Poznyakoff  <gray@gnu.org.ua>
62684
62685         * build-aux/bootstrap: Remove stray dot.
62686         Make sure build_aux settings are honored when linking
62687         gnulib_extra_files.
62688
62689 2007-06-19  Eric Blake  <ebb9@byu.net>
62690
62691         * modules/canonicalize-lgpl-tests (test_canonicalize_lgpl_LDADD):
62692         Allow compilation on cygwin.
62693
62694 2007-06-19  Jim Meyering  <jim@meyering.net>
62695
62696         xreadlink-with-size: Remove module.  No longer used.
62697         Ex-callers now use xreadlink or mreadlink-with-size.
62698         * modules/xreadlink-with-size: Remove module.
62699         * lib/xreadlink-with-size.c: Remove file.
62700         * lib/xreadlink.h (xreadlink_with_size): Remove prototype.
62701         (xreadlink): Remove inaccurate comment.  The one in xreadlink.c,
62702         just before the function definition *is* accurate.
62703
62704         Eliminate one way canonicalize_filename_mode could exit.
62705         * lib/canonicalize.c (canonicalize_filename_mode):
62706         Use mreadlink_with_size, not xreadlink_with_size.
62707
62708 2007-06-18  Paul Eggert  <eggert@cs.ucla.edu>
62709
62710         Detect porting problems to FreeBSD/arm, which has time_t wider than
62711         long int.  Original problem reported for GNU diff by Xin Li in
62712         <http://lists.gnu.org/archive/html/bug-gnu-utils/2007-06/msg00091.html>.
62713         * modules/getdate (Depends-on): Add intprops, verify.
62714         * lib/getdate.y: Include intprops.h, verify.h.  Verify that time_t
62715         is an integer type no wider than long int.
62716
62717 2007-06-18  Jim Meyering  <jim@meyering.net>
62718
62719         New module: mreadlink-with-size.
62720         * MODULES.html.sh: Add mreadlink-with-size.
62721         * modules/mreadlink-with-size: New module
62722         * modules/canonicalize (Depends-on): Depend on mreadlink-with-size,
62723         not xreadlink-with-size.
62724         * lib/mreadlink-with-size.c, lib/mreadlink.h: New files.
62725
62726 2007-06-16  Bruno Haible  <bruno@clisp.org>
62727
62728         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Catch the MacOS X 10.4 bug.
62729         * doc/functions/frexpl.texi: Document the MacOS X 10.4 bug.
62730         Reported by Gary V. Vaughan <gary@gnu.org>.
62731
62732 2007-06-15  Paul Eggert  <eggert@cs.ucla.edu>
62733
62734         Revamp lchown so that it lives in unistd.h where it belongs.
62735         * lib/lchown.h: Remove.
62736         * lib/dirchownmod.c: Don't include lib/lchown.h.
62737         * lib/fchownat.c: Likewise.
62738         * lib/openat.c: Likewise.
62739         * lib/lchown.c (REPLACE_CHOWN): Define to 0 if the system chown
62740         does not follow symlinks.
62741         (EOPNOTSUPP): Define if not defined.
62742         * lib/unistd_.h (chown): Do not replace if REPLADE_CHOWN
62743         is defined to 0.
62744         (lchown): New decl.
62745         * m4/lchown.m4 (gl_FUNC_LCHOWN): Require gl_UNISTD_H_DEFAULTS.
62746         Do not check for lchown decl.
62747         Set REPLACE_LCHOWN.
62748         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set GNULIB_LCHOWN,
62749         REPLACE_LCHOWN.
62750         * modules/chown: Make it clear it follows symlinks.
62751         * modules/lchown: Make it clear it doesn't follow symlinks.
62752         (Files): Remove lib/lchown.h
62753         (Depends-on): Add unistd.
62754         (configure.ac): Add gl_UNISTD_MODULE_INDICATOR([lchown]).
62755         (Include): Include <unistd.h>, not "lchown.h".
62756         * modules/unistd (unistd.h): Substitude GNULIB_LCHOWN and
62757         REPLACE_LCHOWN.
62758
62759 2007-06-15  Jim Meyering  <jim@meyering.net>
62760
62761         Change license (GPL to LGPL) of fsusage and dependents.
62762         * modules/fsusage (License): Change to LGPL.
62763         * modules/full-read (License): Likewise.
62764         * modules/full-write (License): Likewise.
62765         * modules/safe-read (License): Likewise.
62766         * modules/safe-write (License): Likewise.
62767
62768 2007-06-14  Ben Pfaff  <blp@gnu.org>
62769
62770         Missing part of allocsa -> malloca transition.
62771         * modules/relocatable-prog-wrapper: gl_ALLOCSA should be
62772         gl_MALLOCA.
62773
62774 2007-06-12  Bruno Haible  <bruno@clisp.org>
62775
62776         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Guess no when cross-compiling
62777         to ia64, x86_64, i386.
62778         Reported by Eric Blake.
62779
62780 2007-06-12  Bruno Haible  <bruno@clisp.org>
62781
62782         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Guess no also when
62783         cross-compiling to x86_64.
62784
62785 2007-06-12  Paul Eggert  <eggert@cs.ucla.edu>
62786
62787         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Fix POSIX sed portability
62788         glitch reported by Ralf Wildenhues in
62789         <http://lists.gnu.org/archive/html/bug-gnulib/2007-06/msg00114.html>.
62790
62791         * m4/regex.m4 (gl_REGEX): Catch a bug with [[:alnum:]_-] reported by
62792         Vin Shelton.
62793
62794 2007-06-11  Bruno Haible  <bruno@clisp.org>
62795
62796         * lib/printf-args.c (PRINTF_FETCHARGS) [ENABLE_UNISTDIO]: Fix NULL
62797         replacement string.
62798         Reported by Eric Blake.
62799
62800 2007-06-10  Bruno Haible  <bruno@clisp.org>
62801
62802         Prepare vasnprintf code for use with Unicode strings.
62803         * lib/printf-args.h (PRINTF_FETCHARGS): New macro.
62804         (arg_type) [ENABLE_UNISTDIO]: Define TYPE_U8_STRING, TYPE_U16_STRING,
62805         TYPE_U32_STRING.
62806         (argument) [ENABLE_UNISTDIO]: Add a_u8_string, a_u16_string,
62807         a_u32_string variants.
62808         (PRINTF_FETCHARGS): Renamed from printf_fetchargs.
62809         * lib/printf-args.c: Don't include config.h and the specification
62810         header if PRINTF_FETCHARGS is already defined.
62811         (PRINTF_FETCHARGS): Renamed from printf_fetchargs.
62812         (PRINTF_FETCHARGS) [ENABLE_UNISTDIO]: Add code for TYPE_U8_STRING,
62813         TYPE_U16_STRING, TYPE_U32_STRING.
62814         * lib/printf-parse.h [ENABLE_UNISTDIO] (u8_directive, u8_directives,
62815         u16_directive, u16_directives, u32_directive, u32_directives): New
62816         types.
62817         (ulc_printf_parse, u8_printf_parse, u16_printf_parse, u32_printf_parse):
62818         New declarations.
62819         * lib/printf-parse.c: Don't include config.h and the specification
62820         header if PRINTF_PARSE is already defined. Eliminate the set of
62821         parameters for WIDE_CHAR_VERSION; the user of this file must provide
62822         them now. Include c-ctype.h.
62823         (PRINTF_PARSE) [ENABLE_UNISTDIO]: Add code implementing the 'U'
62824         directive and CHAR_T_ONLY_ASCII.
62825         * lib/vasnprintf.c: Don't include config.h and the specification header
62826         if VASNPRINTF is already defined.
62827         (DCHAR_IS_TCHAR, DCHAR_CPY): New macros.
62828         (VASNPRINTF): Use PRINTF_FETCHARGS instead of printf_fetchargs. Use
62829         DCHAR_CPY. Handle the case that DCHAR_T and FCHAR_T are not the same
62830         type. Handle the case that TCHAR_T and FCHAR_T are not of the same
62831         size. Handle the case that DCHAR_T and TCHAR_T are not the same type,
62832         add a conversion from TCHAR_T[] to DCHAR_T[], and rework the padding
62833         code accordingly.
62834         (VASNPRINTF) [ENABLE_UNISTDIO]: Implement the 'U' directive. Enable
62835         pad_ourselves also in this case, with the 'c' and 's' directives, and
62836         with a different notion of "width".
62837         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): New macros.
62838
62839 2007-06-10  Bruno Haible  <bruno@clisp.org>
62840
62841         * modules/unistr/u32-mbsnlen: New file.
62842         * lib/unistr/u32-mbsnlen.c: New file.
62843
62844         * modules/unistr/u16-mbsnlen: New file.
62845         * lib/unistr/u16-mbsnlen.c: New file.
62846
62847         * modules/unistr/u8-mbsnlen: New file.
62848         * lib/unistr/u8-mbsnlen.c: New file.
62849
62850         * lib/unistr.h (u8_mbsnlen, u16_mbsnlen, u32_mbsnlen): New
62851         declarations.
62852
62853 2007-06-10  Bruno Haible  <bruno@clisp.org>
62854
62855         * lib/string_.h (mbsnlen): New declaration.
62856         * lib/mbsnlen.c: New file.
62857         * m4/mbsnlen.m4: New file.
62858         * modules/mbsnlen: New file.
62859         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Set GNULIB_MBSNLEN.
62860         * modules/string (string.h): Substitute GNULIB_MBSNLEN.
62861         * MODULES.html.sh (Internationalization functions): Add mbsnlen.
62862
62863 2007-06-10  Bruno Haible  <bruno@clisp.org>
62864
62865         * lib/mbslen.c: Include <stdlib.h>, needed for MB_CUR_MAX.
62866
62867 2007-06-10  Bruno Haible  <bruno@clisp.org>
62868
62869         * lib/mbiter.h: Include <stddef.h>, needed for ptrdiff_t.
62870         * lib/mbuiter.h: Likewise.
62871
62872 2007-06-10  Bruno Haible  <bruno@clisp.org>
62873
62874         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Check for _snprintf
62875         declaration.
62876
62877 2007-06-10  Karl Berry  <karl@gnu.org>
62878
62879         * config/srclist.txt: remove gettext entries, Bruno prefers
62880         to update individually.
62881
62882 2007-06-10  Bruno Haible  <bruno@clisp.org>
62883
62884         * lib/vasnprintf.c (VASNPRINTF) [!USE_SNPRINTF]: Remove variable
62885         'maxlen'. Ensure only length + width bytes are allocated, not
62886         length + 1 + width.
62887
62888 2007-06-09  Bruno Haible  <bruno@clisp.org>
62889
62890         * lib/vasnprintf.c (FCHAR_T, DCHAR_T, TCHAR_T): New macros.
62891         (CHAR_T): Remove macro.
62892         (VASNPRINTF): Update.
62893
62894 2007-06-09  Bruno Haible  <bruno@clisp.org>
62895
62896         * MODULES.html.sh (Unicode string functions): Add the new modules.
62897
62898         * modules/uniconv/u32-conv-to-enc: New file.
62899         * lib/uniconv/u32-conv-to-enc.c: New file.
62900         * modules/uniconv/u32-conv-to-enc-tests: New file.
62901         * tests/uniconv/test-u32-conv-to-enc.c: New file.
62902
62903         * modules/uniconv/u16-conv-to-enc: New file.
62904         * lib/uniconv/u16-conv-to-enc.c: New file.
62905         * lib/uniconv/u-conv-to-enc.h: New file.
62906         * modules/uniconv/u16-conv-to-enc-tests: New file.
62907         * tests/uniconv/test-u16-conv-to-enc.c: New file.
62908
62909         * modules/uniconv/u8-conv-to-enc: New file.
62910         * lib/uniconv/u8-conv-to-enc.c: New file.
62911         * modules/uniconv/u8-conv-to-enc-tests: New file.
62912         * tests/uniconv/test-u8-conv-to-enc.c: New file.
62913
62914         * lib/uniconv.h (u8_conv_to_encoding, u16_conv_to_encoding,
62915         u32_conv_to_encoding): New declarations.
62916
62917 2007-06-09  Bruno Haible  <bruno@clisp.org>
62918
62919         * tests/uniconv/test-u32-strconv-to-enc.c (main): Remove unused code.
62920
62921 2007-06-09  Bruno Haible  <bruno@clisp.org>
62922
62923         Rename 'allocsa' -> 'malloca', 'freesa' -> 'freea'.
62924         * modules/malloca: Renamed from modules/allocsa, updated.
62925         * lib/malloca.h: Renamed from lib/allocsa.h, updated.
62926         * lib/malloca.c: Renamed from lib/allocsa.c, updated.
62927         * lib/malloca.valgrind: Renamed from lib/allocsa.valgrind, updated.
62928         * m4/malloca.m4: Renamed from m4/allocsa.m4, updated.
62929         * modules/malloca-tests: Renamed from modules/allocsa-tests, updated.
62930         * tests/test-malloca.c: Renamed from tests/test-allocsa.c, updated.
62931         * modules/xmalloca: Renamed from modules/xallocsa, updated.
62932         * lib/xmalloca.h: Renamed from lib/xallocsa.h, updated.
62933         * lib/xmalloca.c: Renamed from lib/xallocsa.c, updated.
62934         * modules/c-strcasestr (Depends-on): Update.
62935         * lib/c-strcasestr.c: Update.
62936         * modules/c-strstr (Depends-on): Update.
62937         * lib/c-strstr.c: Update.
62938         * modules/canonicalize-lgpl (Depends-on): Update.
62939         * lib/canonicalize-lgpl.c: Update.
62940         * modules/clean-temp (Depends-on): Update.
62941         * lib/clean-temp.c: Update.
62942         * modules/csharpcomp (Depends-on): Update.
62943         * lib/csharpcomp.c: Update.
62944         * modules/csharpexec (Depends-on): Update.
62945         * lib/csharpexec.c: Update.
62946         * modules/javacomp (Depends-on): Update.
62947         * lib/javacomp.c: Update.
62948         * modules/javaexec (Depends-on): Update.
62949         * lib/javaexec.c: Update.
62950         * modules/mbscasestr (Depends-on): Update.
62951         * lib/mbscasestr.c: Update.
62952         * modules/mbsstr (Depends-on): Update.
62953         * lib/mbsstr.c: Update.
62954         * modules/setenv (Depends-on): Update.
62955         * lib/setenv.c: Update.
62956         * modules/strcasestr (Depends-on): Update.
62957         * lib/strcasestr.c: Update.
62958         * modules/striconveha (Depends-on): Update.
62959         * lib/striconveha.c: Update.
62960         * modules/relocatable-prog-wrapper (Files): Update.
62961         * lib/relocwrapper.c: Update.
62962         * build-aux/install-reloc: Update.
62963         * MODULES.html.sh (Memory management functions <stdlib.h>): Update.
62964
62965 2007-06-08  Bruno Haible  <bruno@clisp.org>
62966
62967         Port to uClibc.
62968         * lib/fbufmode.c (fbufmode): Add special code for uClibc.
62969         * lib/fpurge.c (fpurge): Likewise.
62970         * lib/freading.c (freading): Likewise.
62971         * lib/fseeko.c (rpl_fseeko): Likewise.
62972         * lib/fseterr.c (fseterr): Likewise.
62973         * lib/fwriting.c (fwriting): Likewise.
62974         * tests/test-fflush.c (main): Avoid a failure on uClibc.
62975
62976 2007-06-08  Bruno Haible  <bruno@clisp.org>
62977
62978         * m4/intlmacosx.m4: New file, extracted from gettext.m4.
62979         * m4/gettext.m4 (gt_INTL_MACOSX): Remove macro, moved to intlmacosx.m4.
62980         * modules/gettext (Files): Add m4/intlmacosx.m4.
62981
62982 2007-06-07  Bruno Haible  <bruno@clisp.org>
62983
62984         * modules/localename-tests: New file.
62985         * tests/test-localename.c: New file.
62986
62987         New module 'localename'.
62988         * lib/localename.h: New file.
62989         * lib/localename.c: New file, from GNU gettext.
62990         * m4/localename.m4: New file.
62991         * modules/localename: New file.
62992
62993 2007-06-07  Bruno Haible  <bruno@clisp.org>
62994
62995         Work around the lack of <wchar.h> on some builds of uClibc.
62996         * doc/headers/wchar.texi: Update.
62997         * lib/wchar_.h: Include <wchar.h> only if it exists.
62998         * m4/wchar.m4 (gl_WCHAR_H): Check for <wchar.h>. Set HAVE_WCHAR_H.
62999         * m4/stdint.m4 (gl_STDINT_H): Check for <wchar.h>.
63000         (gl_STDINT_TYPE_PROPERTIES): Don't try to include <wchar.h> if it
63001         doesn't exist.
63002         * modules/wchar (wchar.h): Substitute HAVE_WCHAR_H.
63003         * modules/mbfile (Depends-on): Add wchar.
63004         * modules/mbiter (Depends-on): Likewise.
63005         * modules/mbuiter (Depends-on): Likewise.
63006         Reported by Simon Josefsson.
63007
63008 2007-06-06  Paul Eggert  <eggert@cs.ucla.edu>
63009
63010         Work around problem reported by Steven M. Schweda in
63011         <http://lists.gnu.org/archive/html/bug-tar/2007-06/msg00002.html>:
63012         Tru64 5.1B with the Compaq compiler environment installed declares
63013         an 'isblank' function but does not define it in the C library.
63014         * lib/fnmatch.c (isblank): Check for HAVE_ISBLANK, too.
63015         * lib/regex_internal.h (isblank): Likewise.
63016         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for isblank existence.
63017         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
63018
63019 2007-06-05  Bruno Haible  <bruno@clisp.org>
63020
63021         Fix *printf so that it recognizes non-IEEE numbers on i386, x86_64,
63022         ia64.
63023         * modules/printf-safe: New file.
63024         * modules/fprintf-posix (Depends-on): Add printf-safe.
63025         * modules/printf-posix (Depends-on): Likewise.
63026         * modules/snprintf-posix (Depends-on): Likewise.
63027         * modules/sprintf-posix (Depends-on): Likewise.
63028         * modules/vasnprintf-posix (Depends-on): Likewise.
63029         * modules/vasprintf-posix (Depends-on): Likewise.
63030         * modules/vfprintf-posix (Depends-on): Likewise.
63031         * modules/vprintf-posix (Depends-on): Likewise.
63032         * modules/vsnprintf-posix (Depends-on): Likewise.
63033         * modules/vsprintf-posix (Depends-on): Likewise.
63034         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Require
63035         AC_C_BIGENDIAN. Define CHECK_PRINTF_SAFE if printf-safe is used. Test
63036         non-IEEE numbers on i386, x86_64, ia64. When cross-compiling, guess
63037         "no" on i386, x86_64, ia64.
63038         * tests/test-snprintf-posix.h (LDBL80_WORDS): New macro.
63039         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
63040         on i386, x86_64, ia64.
63041         * tests/test-sprintf-posix.h (LDBL80_WORDS): New macro.
63042         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
63043         on i386, x86_64, ia64.
63044         * tests/test-vasnprintf-posix.c: Include float.h.
63045         (LDBL80_WORDS): New macro.
63046         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
63047         on i386, x86_64, ia64.
63048         * tests/test-vasprintf-posix.c: Include float.h.
63049         (LDBL80_WORDS): New macro.
63050         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
63051         on i386, x86_64, ia64.
63052         * tests/test-snprintf-posix.c: Include float.h.
63053         * tests/test-sprintf-posix.c: Likewise.
63054         * tests/test-vsnprintf-posix.c: Likewise.
63055         * tests/test-vsprintf-posix.c: Likewise.
63056
63057 2007-06-05  Bruno Haible  <bruno@clisp.org>
63058
63059         Fix isnanl so that it recognizes non-IEEE numbers on i386, x86_64, ia64.
63060         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Require AC_C_BIGENDIAN. Test
63061         non-IEEE numbers on i386, x86_64, ia64.
63062         (gl_LONG_DOUBLE_EXPONENT_LOCATION): Require AC_C_BIGENDIAN.
63063         * lib/isnan.c (FUNC): Add special code for i386, x86_64, ia64.
63064         * tests/test-isnanl.h: Include float.h.
63065         (main): Check also non-IEEE numbers on i386, x86_64, ia64.
63066
63067 2007-06-05  Bruno Haible  <bruno@clisp.org>
63068
63069         * lib/vasnprintf.c (VASNPRINTF): Do the extra handling of NaN and Inf
63070         also the %a / %A. Handle the %a / %A code before this extra handling.
63071
63072 2007-06-05  Bruno Haible  <bruno@clisp.org>
63073
63074         * lib/vasnprintf.c [NEED_PRINTF_LONG_DOUBLE ||
63075         NEED_PRINTF_INFINITE_LONG_DOUBLE]: Include fpucw.h.
63076
63077 2007-06-05  Bruno Haible  <bruno@clisp.org>
63078
63079         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE): Fix
63080         typo in variable name.
63081
63082 2007-06-05  Eric Blake  <ebb9@byu.net>
63083
63084         * m4/lseek.m4 (gl_FUNC_LSEEK): Work when cross-compiling.
63085         Reported by Simon Josefsson.
63086
63087 2007-06-04  Bruno Haible  <bruno@clisp.org>
63088
63089         Avoid test failures on some PowerPC platforms.
63090         * tests/test-printf-frexpl.c (MIN_NORMAL_EXP, MIN_SUBNORMAL_EXP):
63091         Define differently for PowerPC.
63092         * tests/test-frexpl.c (MIN_NORMAL_EXP): Likewise.
63093         Reported by Gary V. Vaughan <gary@gnu.org>.
63094
63095 2007-06-02  Bruno Haible  <bruno@clisp.org>
63096
63097         Fix test-stdint failure on FreeBSD/ia64.
63098         * m4/stdint.m4 (gl_STDINT_H): Check the values of PTRDIFF_MIN,
63099         PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX, SIZE_MAX, WCHAR_MIN,
63100         WCHAR_MAX, WINT_MIN, WINT_MAX entirely, not only for plausibility.
63101         * doc/headers/stdint.texi: Update.
63102
63103 2007-06-01  Bruno Haible  <bruno@clisp.org>
63104
63105         * tests/test-binary-io.c (main): Pass a third argument to open().
63106         Reported by Gary V. Vaughan <gary@gnu.org>.
63107
63108 2007-06-01  Bruno Haible  <bruno@clisp.org>
63109
63110         * doc/functions/frexpl.texi: Update for mingw.
63111
63112 2007-06-01  Bruno Haible  <bruno@clisp.org>
63113
63114         * tests/test-lseek.c (main): Disable test of errno for invalid third
63115         argument.
63116         * doc/functions/lseek.texi: Update.
63117         Reported by Gary V. Vaughan <gary@gnu.org>.
63118
63119 2007-05-28  Bruno Haible  <bruno@clisp.org>
63120
63121         * m4/intl.m4 (AM_INTL_SUBDIR): Substitute variables WOE32, WINDRES.
63122
63123 2007-05-31  Eric Blake  <ebb9@byu.net>
63124
63125         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Guess no on mingw when
63126         cross compiling.
63127
63128 2007-05-30  Eric Blake  <ebb9@byu.net>
63129         and Bruno Haible  <bruno@clisp.org>
63130
63131         Work around mingw test failures exposed by m4-1.4.9b.
63132         * m4/stdint.m4 (gl_STDINT_H): Detect mingw bug.
63133         * tests/test-unistd.c: Disable uid_t and git_t tests for the
63134         moment.
63135
63136 2007-05-30  Bruno Haible  <bruno@clisp.org>
63137
63138         * tests/test-lseek.c: Explicitly close file descriptors 0 and 1 before
63139         assuming that they are closed. Needed on HP-UX 11.
63140
63141 2007-05-29  Bruno Haible  <bruno@clisp.org>
63142
63143         Fix a problem with #include_next.
63144         * lib/dirent_.h: Split the double-inclusion guard.
63145         * lib/fcntl_.h: Likewise.
63146         * lib/float_.h: Likewise.
63147         * lib/iconv_.h: Likewise.
63148         * lib/inttypes_.h: Likewise.
63149         * lib/locale_.h: Likewise.
63150         * lib/math_.h: Likewise.
63151         * lib/netinet_in_.h: Likewise.
63152         * lib/search_.h: Likewise.
63153         * lib/signal_.h: Likewise.
63154         * lib/stdint_.h: Likewise.
63155         * lib/stdio_.h: Likewise.
63156         * lib/stdlib_.h: Likewise.
63157         * lib/string_.h: Likewise.
63158         * lib/sys_select_.h: Likewise.
63159         * lib/sys_socket_.h: Likewise.
63160         * lib/sys_stat_.h: Likewise.
63161         * lib/sys_time_.h: Likewise.
63162         * lib/sysexits_.h: Likewise.
63163         * lib/time_.h: Likewise.
63164         * lib/unistd_.h: Likewise.
63165         * lib/wchar_.h: Likewise.
63166         * lib/wctype_.h: Likewise.
63167
63168 2007-05-29  Bruno Haible  <bruno@clisp.org>
63169
63170         * tests/test-unistd.c: Disable the tests for useconds_t and intptr_t
63171         for the moment.
63172
63173 2007-05-29  Bruno Haible  <bruno@clisp.org>
63174
63175         * m4/isnan.m4 (gl_DOUBLE_EXPONENT_LOCATION): Silence the AC_C_BIGENDIAN
63176         invocation.
63177         Reported by Eric Blake.
63178
63179 2007-05-29  Bruno Haible  <bruno@clisp.org>
63180
63181         * m4/isnanf.m4 (gl_FLOAT_EXPONENT_LOCATION): Fix typo in cross-
63182         compiling case.
63183
63184 2007-05-29  Eric Blake  <ebb9@byu.net>
63185             Bruno Haible  <bruno@clisp.org>
63186
63187         * m4/isnanf.m4 (gl_FUNC_ISNANF_NO_LIBM): Avoid syntax error on
63188         cross compiles.
63189
63190 2007-05-28  Eric Blake  <ebb9@byu.net>
63191
63192         * modules/closein-tests (test_closein_LDADD): Support test on
63193         cygwin with libtool.
63194
63195 2007-05-28  Bruno Haible  <bruno@clisp.org>
63196
63197         * tests/uniconv/test-u16-conv-from-enc.c: Remove #ifdef HAVE_CONFIG_H.
63198         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
63199         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
63200         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
63201         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
63202         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
63203         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
63204         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
63205         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
63206
63207 2007-05-28  Eric Blake  <ebb9@byu.net>
63208
63209         Unconditionally include <config.h> in unit tests.
63210         * tests/test-alloca-opt.c: Remove #ifdef HAVE_CONFIG_H.
63211         * tests/test-allocsa.c, tests/test-arcfour.c,
63212         tests/test-arctwo.c, tests/test-argmatch.c, tests/test-argp.c,
63213         tests/test-array_list.c, tests/test-array_oset.c,
63214         tests/test-atexit.c, test-avltree_list.c, test-avltree_oset.c,
63215         test-avltreehash_list.c, test-base64.c, test-binary-io.c,
63216         test-c-ctype.c, test-c-strcasecmp.c, test-c-strcasestr.c,
63217         test-c-strncasecmp.c, test-c-strstr.c, test-canonicalize-lgpl.c,
63218         test-carray_list.c, test-crc.c, test-des.c, test-dirname.c,
63219         test-fflush.c, test-fprintf-posix.c, test-gc-arcfour.c,
63220         test-gc-arctwo.c, test-gc-des.c, test-gc-hmac-md5.c,
63221         test-gc-hmac-sha1.c, test-gc-md2.c, test-gc-md4.c, test-gc-md5.c,
63222         test-gc-pbkdf2-sha1.c, test-gc-rijndael.c, test-gc-sha1.c,
63223         test-gc.c, test-getpass.c, test-hmac-md5.c, test-hmac-sha1.c,
63224         test-iconv.c, test-linked_list.c, test-linkedhash_list.c,
63225         test-lock.c, test-mbscasecmp.c, test-mbscasestr1.c,
63226         test-mbscasestr2.c, test-mbscasestr3.c, test-mbscasestr4.c,
63227         test-mbschr.c, test-mbscspn.c, test-mbsncasecmp.c, test-mbspbrk.c,
63228         test-mbspcasecmp.c, test-mbsrchr.c, test-mbsspn.c, test-mbsstr1.c,
63229         test-mbsstr2.c, test-mbsstr3.c, test-md2.c, test-md4.c,
63230         test-md5.c, test-memmem.c, test-printf-posix.c,
63231         test-rbtree_list.c, test-rbtree_oset.c, test-rbtreehash_list.c,
63232         test-read-file.c, test-rijndael.c, test-snprintf-posix.c,
63233         test-snprintf.c, test-sprintf-posix.c, test-stdint.c,
63234         test-strcasestr.c, test-striconv.c, test-striconveh.c,
63235         test-striconveha.c, test-tls.c, test-vasnprintf-posix.c,
63236         test-vasnprintf-posix2.c, test-vasnprintf.c,
63237         test-vasprintf-posix.c, test-vasprintf.c, test-verify.c,
63238         test-vfprintf-posix.c, test-vprintf-posix.c,
63239         test-vsnprintf-posix.c, test-vsnprintf.c, test-vsprintf-posix.c,
63240         test-xvasprintf.c: Likewise.
63241
63242 2007-05-28  Bruno Haible  <bruno@clisp.org>
63243
63244         * gnulib-tool (func_import): Remember the --with-tests command-line
63245         option through the macro gl_WITH_TESTS in the gnulib-cache.m4.
63246         Reported by Eric Blake.
63247
63248 2007-05-28  Bruno Haible  <bruno@clisp.org>
63249
63250         * modules/ftell-tests: New file.
63251         * tests/test-ftell.c: New file, based on tests/test-ftello.c.
63252         * tests/test-ftell.sh: New file, based on tests/test-ftello.sh.
63253
63254         * lib/ftell.c: New file.
63255         * modules/ftell: New file.
63256         * m4/ftell.m4: New file.
63257         * doc/functions/ftell.texi: Update.
63258         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FTELL,
63259         REPLACE_FTELL.
63260         * lib/stdio_.h (rpl_ftell): New declaration.
63261         * modules/stdio (Makefile.am): Substitute also GNULIB_FTELL,
63262         REPLACE_FTELL.
63263
63264 2007-05-28  Eric Blake  <ebb9@byu.net>
63265
63266         * lib/allocsa.h (safe_alloca): Avoid compiler warning.
63267
63268 2007-05-28  Bruno Haible  <bruno@clisp.org>
63269
63270         * modules/fseek-tests: New file.
63271         * tests/test-fseek.c: New file, based on tests/test-fseeko.c.
63272         * tests/test-fseek.sh: New file, based on tests/test-fseeko.sh.
63273
63274         * lib/fseek.c: New file.
63275         * modules/fseek: New file.
63276         * m4/fseek.m4: New file.
63277         * doc/functions/fseek.texi: Update.
63278         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FSEEK,
63279         REPLACE_FSEEK.
63280         * lib/stdio_.h (rpl_fseek): New declaration.
63281         * modules/stdio (Makefile.am): Substitute also GNULIB_FSEEK,
63282         REPLACE_FSEEK.
63283
63284 2007-05-28  Bruno Haible  <bruno@clisp.org>
63285
63286         * lib/stdio_.h (fflush): More comments.
63287
63288 2007-05-28  Bruno Haible  <bruno@clisp.org>
63289
63290         * m4/lseek.m4 (gl_FUNC_LSEEK): When not cross-compiling, perform a real
63291         runtime test.
63292
63293 2007-05-28  Eric Blake  <ebb9@byu.net>
63294
63295         Improve lseek module.
63296         * lib/lseek.c (rpl_lseek): Detect EBADF on mingw.
63297         * lib/unistd_.h (lseek): Scale back link warning message.
63298         * tests/test-lseek.c: Beef up test.
63299         * tests/test-lseek.sh: Exercise more facets of lseek.
63300         Reported by Bruno Haible.
63301
63302 2007-05-28  Bruno Haible  <bruno@clisp.org>
63303
63304         * tests/test-unistd.c: Test all the types that <unistd.h> is expected
63305         to define.
63306
63307 2007-05-27  Bruno Haible  <bruno@clisp.org>
63308
63309         * m4/iconv.m4 (AM_ICONV_LINK): Fix 2007-03-31 patch.
63310
63311 2007-05-27  Bruno Haible  <bruno@clisp.org>
63312
63313         * modules/openmp: New file.
63314         * m4/openmp.m4: New file, taken from autoconf's CVS with changes by
63315         Noah Misch.
63316
63317 2007-05-26  Bruno Haible  <bruno@clisp.org>
63318
63319         * modules/chdir-long (Depends-on): Add fchdir.
63320         * modules/chdir-safer (Depends-on): Likewise.
63321         * modules/fts (Depends-on): Likewise.
63322         * modules/fts-lgpl (Depends-on): Likewise.
63323         * modules/openat (Depends-on): Likewise.
63324         * modules/savewd (Depends-on): Likewise.
63325
63326 2007-05-24  Eric Blake  <ebb9@byu.net>
63327
63328         Fix lseek on mingw.
63329         * modules/lseek: New module.
63330         * m4/lseek.m4: New file.
63331         * lib/lseek.c: New file.
63332         * modules/lseek-tests: New file.
63333         * tests/test-lseek.c: New file.
63334         * tests/test-lseek.sh: New file.
63335         * MODULES.html.sh: Document lseek module.
63336         * modules/fflush (Depends-on): Add lseek, fseeko.
63337         * modules/fseeko (Depends-on): Likewise.
63338         * modules/ftello (Depends-on): Likewise.
63339         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Replace fseek[o] if lseek is
63340         broken.
63341         * m4/ftello.m4 (gl_FUNC_FTELLO): Replace ftell[o] if lseek is
63342         broken.
63343         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Trigger fseeko module.
63344         * lib/fseeko.c (rpl_fseeko): Quit early on non-seekable files.
63345         * lib/ftello.c (rpl_ftello): Likewise.
63346         * tests/test-fseeko.c (main): Test this.
63347         * tests/test-fseeko.sh: Likewise.
63348         * tests/test-ftello.c (main): Likewise.
63349         * tests/test-ftello.sh: Likewise.
63350         * lib/stdio_.h (fseek, ftell): Simplify, since missing fseeko now
63351         implies replacing fseek.
63352         * modules/stdio (Makefile.am): No longer need HAVE_FSEEKO,
63353         HAVE_FTELLO.
63354         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add lseek info.
63355         * modules/unistd (Makefile.am): Likewise.
63356         * lib/unistd_.h (lseek): Declare a replacement.
63357         * doc/functions/lseek.texi (lseek): Document this fix.
63358         * doc/functions/fseek.texi (fseek): Likewise.
63359         * doc/functions/ftell.texi (ftell): Likewise.
63360
63361 2007-05-24  Bruno Haible  <bruno@clisp.org>
63362
63363         * tests/test-vasnprintf-posix.c (test_function): Allow up to 50 bytes
63364         in the printed representation of a NaN.
63365         * tests/test-vasprintf-posix.c (test_function): Likewise.
63366         * tests/test-snprintf-posix.h (test_function): Likewise.
63367         * tests/test-sprintf-posix.h (test_function): Likewise.
63368         Reported by Eric Blake.
63369
63370 2007-05-23  Eric Blake  <ebb9@byu.net>
63371
63372         Fix fseeko/ftello on cygwin 1.5.24.
63373         * doc/functions/fseeko.texi (fseeko): Document the fix.
63374         * doc/functions/ftello.texi (ftello): Document the fix.
63375         * doc/functions/stdin.texi (stdin): Document the cygwin bug.
63376         * doc/functions/stdout.text (stdout): New file.
63377         * doc/functions/stderr.text (stderr): New file.
63378         * doc/gnulib.texi (Function Substitutes): Use new files.
63379         * tests/test-fseeko.c (main): Check for broken fseeko on cygwin
63380         prior to 1.7.0.
63381         * tests/test-ftello.c (main): Likewise for ftello.
63382         * tests/test-fseeko.sh: New file.
63383         * tests/test-ftello.sh: New file.
63384         * modules/fseeko-tests (Makefile.am): Ensure test-fseeko is run
63385         with seekable stdin.
63386         * modules/ftello-tests (Makefile.am): Likewise for test-ftello.
63387         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Detect the cygwin bug.
63388         (gl_REPLACE_FSEEKO): New macro.
63389         * m4/ftello.m4 (gl_FUNC_FTELLO, gl_REPLACE_FTELLO): Likewise.
63390         * modules/fseeko (Files): Distribute fseeko.c.
63391         * modules/ftello (Files): Distribute ftello.c.
63392         * lib/fseeko.c (rpl_fseeko) [__CYGWIN__]: Convert stdin to 64-bit
63393         mode.
63394         * lib/ftello.c (rpl_ftello): New file.
63395         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Allow replacement of
63396         fseeko, ftello.
63397         (gl_STDIN_LARGE_OFFSET): New macro.
63398         * modules/stdio (Makefile.am): Perform the replacement.
63399         * lib/stdio_.h (rpl_fseeko, rpl_ftello): Define when needed.
63400
63401 2007-05-23  Bruno Haible  <bruno@clisp.org>
63402
63403         * lib/stdio_.h (fseeko, ftello): Provide a link warning only if
63404         GNULIB_POSIXCHECK is defined.
63405
63406 2007-05-21  Bruno Haible  <bruno@clisp.org>
63407
63408         * m4/printf.m4 (gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE):
63409         Check also the output for NaN arguments. When cross-compiling, guess
63410         no on IRIX.
63411         * lib/vasnprintf.c: Update comments.
63412         * tests/test-vasnprintf-posix.c (strisnan): New function.
63413         (test_function): Use it.
63414         * tests/test-vasprintf-posix.c (strisnan): New function.
63415         (test_function): Use it.
63416         * tests/test-snprintf-posix.h (strisnan): New function.
63417         (test_function): Use it.
63418         * tests/test-sprintf-posix.h (strisnan): New function.
63419         (test_function): Use it.
63420         Reported by Eric Blake.
63421
63422 2007-05-20  Bruno Haible  <bruno@clisp.org>
63423
63424         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Add test for large finite
63425         numbers that fails on BeOS.
63426         * doc/functions/frexpl.texi: Update.
63427
63428 2007-05-20  Jim Meyering  <jim@meyering.net>
63429
63430         * NEWS: Mention the incompatible change (s/futimens/gl_futimens/)
63431         forced upon us by glibc-2.6.
63432
63433 2007-05-20  Bruno Haible  <bruno@clisp.org>
63434
63435         Fix *printf result for NaN, Inf on AIX, Solaris, OSF/1.
63436         * m4/printf.m4 (gl_PRINTF_INFINITE): Update cross-compiling guesses.
63437         (gl_PRINTF_INFINITE_LONG_DOUBLE): New macro.
63438         * lib/vasnprintf.c: Use NEED_PRINTF_INFINITE_DOUBLE instead of
63439         NEED_PRINTF_INFINITE.
63440         (is_infinitel): New function.
63441         (VASNPRINTF): Handle NEED_PRINTF_INFINITE_LONG_DOUBLE case.
63442         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE_DOUBLE): Renamed from
63443         gl_PREREQ_VASNPRINTF_INFINITE.
63444         (gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE): New macro.
63445         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
63446         gl_PRINTF_INFINITE_LONG_DOUBLE and test its result. Invoke
63447         gl_PREREQ_VASNPRINTF_INFINITE_DOUBLE and
63448         gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE instead of
63449         gl_PREREQ_VASNPRINTF_INFINITE.
63450         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
63451         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
63452         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
63453         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
63454         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
63455         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
63456         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
63457         * doc/functions/fprintf.texi: Update.
63458         * doc/functions/printf.texi: Update.
63459         * doc/functions/snprintf.texi: Update.
63460         * doc/functions/sprintf.texi: Update.
63461         * doc/functions/vfprintf.texi: Update.
63462         * doc/functions/vprintf.texi: Update.
63463         * doc/functions/vsnprintf.texi: Update.
63464         * doc/functions/vsprintf.texi: Update.
63465
63466 2007-05-20  Bruno Haible  <bruno@clisp.org>
63467
63468         * m4/frexpl.m4 (gl_FUNC_FREXPL_NO_LIBM): Set REPLACE_FREXPL if frexpl
63469         was not found in libc.
63470         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
63471
63472 2007-05-20  Bruno Haible  <bruno@clisp.org>
63473
63474         * tests/test-vasnprintf-posix.c (test_function): Allow NaN to be
63475         printed as "-nan" instead of "nan".
63476         * tests/test-vasprintf-posix.c (test_function): Likewise.
63477         * tests/test-snprintf-posix.h (test_function): Likewise.
63478         * tests/test-sprintf-posix.h (test_function): Likewise.
63479         Needed for HP-UX 11.
63480
63481 2007-05-20  Jim Meyering  <jim@meyering.net>
63482
63483         Fix buggy test for the fchownat-deref bug.
63484         * m4/openat.m4 (gl_FUNC_FCHOWNAT_DEREF_BUG): Create the dangling
63485         symlink required for the run-test.  Without it, this test would
63486         always declare that fchownat doesn't work, and client code would
63487         unnecessarily use the replacement function with fixed libc.
63488         (gl_FUNC_FCHOWNAT): Eliminate a variable that wasn't initialized.
63489         Reported by Greg Schafer.
63490
63491 2007-05-19  Bruno Haible  <bruno@clisp.org>
63492
63493         * m4/isnanf.m4 (gl_ISNANF_WORKS): New macro.
63494         (gl_FUNC_ISNANF_NO_LIBM): Invoke it.
63495         * lib/isnan.c (FUNC): Use run-time expressions for SGI compiler.
63496         Needed for IRIX 6.5 and Solaris 2.5.1.
63497
63498 2007-05-19  Bruno Haible  <bruno@clisp.org>
63499
63500         * tests/test-vasnprintf-posix.c (have_minus_zero): New function.
63501         (test_function): Skip tests involving -0.0 on platforms where
63502         -0.0 = 0.0.
63503         * tests/test-vasprintf-posix.c (have_minus_zero): New function.
63504         (test_function): Skip tests involving -0.0 on platforms where
63505         -0.0 = 0.0.
63506         * tests/test-snprintf-posix.h (have_minus_zero): New function.
63507         (test_function): Skip tests involving -0.0 on platforms where
63508         -0.0 = 0.0.
63509         * tests/test-sprintf-posix.h (have_minus_zero): New function.
63510         (test_function): Skip tests involving -0.0 on platforms where
63511         -0.0 = 0.0.
63512         * tests/test-fprintf-posix.h (test_function): Remove all -0.0 related
63513         tests.
63514         * tests/test-printf-posix.h (test_function): Likewise.
63515         * tests/test-printf-posix.output: Remove all -0.0 related results.
63516         Needed for IRIX 6.5.
63517
63518 2007-05-19  Bruno Haible  <bruno@clisp.org>
63519
63520         * tests/test-vasnprintf-posix.c (test_function): Allow NaN to be
63521         printed as "nan0x7fffffff" instead of "nan".
63522         * tests/test-vasprintf-posix.c (test_function): Likewise.
63523         * tests/test-snprintf-posix.h (test_function): Likewise.
63524         * tests/test-sprintf-posix.h (test_function): Likewise.
63525         * tests/test-fprintf-posix.h (NaN): Remove macro.
63526         (test_function): Remove all NaN related tests.
63527         * tests/test-printf-posix.h (NaN): Remove macro.
63528         (test_function): Remove all NaN related tests.
63529         * tests/test-printf-posix.output: Remove all NaN related results.
63530         Needed for IRIX 6.5.
63531
63532 2007-05-19  Bruno Haible  <bruno@clisp.org>
63533
63534         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Fix C89 syntax error in test code.
63535         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
63536
63537 2007-05-19  Bruno Haible  <bruno@clisp.org>
63538
63539         * lib/float_.h: New file.
63540         * m4/float_h.m4: New file.
63541         * modules/float: New file.
63542         * modules/isnanl (Dependencies): Add float.
63543         * modules/isnanl-nolibm (Dependencies): Likewise.
63544         * modules/mathl (Dependencies): Likewise.
63545         * modules/printf-frexpl (Dependencies): Likewise.
63546         * modules/signbit (Dependencies): Likewise.
63547         * modules/vasnprintf (Dependencies): Likewise.
63548         * doc/headers/float.texi: Update.
63549
63550 2007-05-19  Jim Meyering  <jim@meyering.net>
63551
63552         * lib/utimens.c (gl_futimens): Rename from futimens,
63553         now that glibc-2.6 declares futimens.
63554         * lib/utimens.h: Likewise.
63555
63556 2007-05-19  Bruno Haible  <bruno@clisp.org>
63557
63558         Avoid test failures on mingw.
63559         * tests/test-fprintf-posix.sh: Convert CR/LF to LF in output.
63560         * tests/test-printf-posix.sh: Likewise.
63561         * tests/test-vfprintf-posix.sh: Likewise.
63562         * tests/test-vprintf-posix.sh: Likewise.
63563
63564 2007-05-19  Bruno Haible  <bruno@clisp.org>
63565
63566         Fix *printf result for NaN, Inf, -0.0 on mingw.
63567         * m4/printf.m4 (gl_PRINTF_INFINITE): New macro.
63568         * lib/vasnprintf.c: Include math.h and isnan.h.
63569         (is_infinite_or_zero): New function.
63570         (VASNPRINTF): Fix also the handling of infinite or zero 'double'
63571         values in the %f, %F, %e, %E, %g, %G directives.
63572         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE): New macro.
63573         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
63574         gl_PRINTF_INFINITE and test its result. Invoke
63575         gl_PREREQ_VASNPRINTF_INFINITE.
63576         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
63577         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
63578         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
63579         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
63580         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
63581         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
63582         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
63583         * doc/functions/fprintf.texi: Update.
63584         * doc/functions/printf.texi: Update.
63585         * doc/functions/snprintf.texi: Update.
63586         * doc/functions/sprintf.texi: Update.
63587         * doc/functions/vfprintf.texi: Update.
63588         * doc/functions/vprintf.texi: Update.
63589         * doc/functions/vsnprintf.texi: Update.
63590         * doc/functions/vsprintf.texi: Update.
63591
63592 2007-05-19  Bruno Haible  <bruno@clisp.org>
63593
63594         * lib/vasnprintf.c (convert_to_decimal): Add an extra_zeroes argument.
63595         (scale10_round_decimal_long_double): Inline scale10_round_long_double.
63596         Instead of multiplying with 10^k, set extra_zeroes to k.
63597         (scale10_round_long_double): Remove function.
63598
63599 2007-05-18  Bruno Haible  <bruno@clisp.org>
63600
63601         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_ZERO]: Fix logic bug
63602         introduced on 2007-05-06.
63603
63604 2007-05-18  Bruno Haible  <bruno@clisp.org>
63605
63606         * tests/test-vasnprintf-posix.c (test_function): Also test the %e and
63607         %g directives.
63608         * tests/test-vasprintf-posix.c (test_function): Likewise.
63609         * tests/test-snprintf-posix.h (test_function): Likewise.
63610         * tests/test-sprintf-posix.h (test_function): Likewise.
63611
63612 2007-05-18  Bruno Haible  <bruno@clisp.org>
63613
63614         * tests/test-vasnprintf-posix.c (SIZEOF): New macro.
63615         (strmatch): New function.
63616         (test_function): Test the %f directive on numbers of various exponents.
63617         * tests/test-vasprintf-posix.c (SIZEOF): New macro.
63618         (strmatch): New function.
63619         (test_function): Test the %f directive on numbers of various exponents.
63620         * tests/test-snprintf-posix.h (strmatch): New function.
63621         (test_function): Test the %f directive on numbers of various exponents.
63622         * tests/test-sprintf-posix.h (strmatch): New function.
63623         (test_function): Test the %f directive on numbers of various exponents.
63624         * tests/test-snprintf-posix.c (SIZEOF): New macro.
63625         * tests/test-sprintf-posix.c (SIZEOF): New macro.
63626         * tests/test-vsnprintf-posix.c (SIZEOF): New macro.
63627         * tests/test-vsprintf-posix.c (SIZEOF): New macro.
63628
63629 2007-05-18  Bruno Haible  <bruno@clisp.org>
63630
63631         Add support for 'long double' number output.
63632         * m4/printf.m4 (gl_PRINTF_LONG_DOUBLE): New macro.
63633         * lib/vasnprintf.c: Include math.h and float+.h.
63634         (mp_limb_t): New type.
63635         (GMP_LIMB_BITS): New macro.
63636         (mp_twolimb_t): New type.
63637         (GMP_TWOLIMB_BITS): New macro.
63638         (mpn_t): New type.
63639         (multiply, divide, convert_to_decimal, decode_long_double,
63640         scale10_round_long_double, scale10_round_decimal_long_double,
63641         floorlog10l): New functions.
63642         (VASNPRINTF) [NEED_PRINTF_LONG_DOUBLE]: Implement 'long double' support
63643         for the %f, %F, %e, %E, %g, %G directives.
63644         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_LONG_DOUBLE): New macro.
63645         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
63646         gl_PRINTF_LONG_DOUBLE and test its result. Invoke
63647         gl_PREREQ_VASNPRINTF_LONG_DOUBLE.
63648         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
63649         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
63650         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
63651         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
63652         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
63653         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
63654         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
63655         * modules/fprintf-posix (Depends-on): Add frexpl-nolibm.
63656         * modules/snprintf-posix (Depends-on): Likewise.
63657         * modules/sprintf-posix (Depends-on): Likewise.
63658         * modules/vasnprintf-posix (Depends-on): Likewise.
63659         * modules/vasprintf-posix (Depends-on): Likewise.
63660         * modules/vfprintf-posix (Depends-on): Likewise.
63661         * modules/vsnprintf-posix (Depends-on): Likewise.
63662         * modules/vsprintf-posix (Depends-on): Likewise.
63663         * modules/vasnprintf (Files): Add lib/float+.h.
63664         * doc/functions/fprintf.texi: Update.
63665         * doc/functions/printf.texi: Update.
63666         * doc/functions/snprintf.texi: Update.
63667         * doc/functions/sprintf.texi: Update.
63668         * doc/functions/vfprintf.texi: Update.
63669         * doc/functions/vprintf.texi: Update.
63670         * doc/functions/vsnprintf.texi: Update.
63671         * doc/functions/vsprintf.texi: Update.
63672
63673 2007-05-18  Bruno Haible  <bruno@clisp.org>
63674
63675         * lib/vasnprintf.c (USE_SNPRINTF): Define to 0 on BeOS.
63676
63677 2007-05-18  Bruno Haible  <bruno@clisp.org>
63678
63679         * lib/vasnprintf.c (VASNPRINTF) [WIN32]: Use %I64d instead of %lld
63680         for printing 64-bit integers. Needed for mingw.
63681
63682 2007-05-18  Bruno Haible  <bruno@clisp.org>
63683
63684         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Invoke
63685         gl_FUNC_FREXPL_WORKS.
63686         * modules/printf-frexpl (Files): Add m4/frexpl.m4.
63687
63688 2007-05-18  Bruno Haible  <bruno@clisp.org>
63689
63690         * modules/frexpl-nolibm-tests: New file.
63691
63692         * modules/frexpl-nolibm: New file.
63693         * m4/frexpl.m4 (gl_FUNC_FREXPL_NO_LIBM): New macro.
63694
63695 2007-05-17  Paul Eggert  <eggert@cs.ucla.edu>
63696
63697         * lib/dirent_.h: Prefer #include_next <foo.h> to #include
63698         @ABSOLUTE_FOO_H@ if @HAVE_INCLUDE_NEXT@.  This works better with
63699         GCC 4.2, which otherwise issues a lot of warnings.
63700         * lib/iconv_.h, lib/locale_.h, lib/netinet_in_.h, lib/sys_select_.h:
63701         * lib/sys_socket_.h, lib/sys_stat_.h, lib/sysexits_.h, lib/unistd_.h:
63702         Likewise.
63703         * modules/fchdir (dirent.h): Substitute @HAVE_INCLUDE_NEXT@.
63704         * modules/iconv_open (iconv.h): Likewise.
63705         * modules/locale (locale.h): Likewise.
63706         * modules/netinet_in (netinet/in.h): Likewise.
63707         * modules/sys_select (sys_select.h): Likewise.
63708         * modules/sys_socket (sys/socket.h): Likewise.
63709         * modules/sys_stat (sys/stat.h): Likewise.
63710         * modules/sysexits (sysexits.h): Likewise.
63711         * modules/unistd (unistd.h): Likewise.
63712
63713 2007-05-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
63714
63715         * modules/closein-tests (Makefile.am): Distribute
63716         `test-closein.sh'.
63717
63718 2007-05-17  Bruno Haible  <bruno@clisp.org>
63719
63720         * tests/test-printf-posix.output: Renamed from
63721         tests/test-fprintf-posix.out.
63722         * modules/fprintf-posix-tests: Update.
63723         * modules/printf-posix-tests: Update.
63724         * modules/vfprintf-posix-tests: Update.
63725         * modules/vprintf-posix-tests: Update.
63726         * tests/test-fprintf-posix.sh: Update.
63727         * tests/test-printf-posix.sh: Update.
63728         * tests/test-vfprintf-posix.sh: Update.
63729         * tests/test-vprintf-posix.sh: Update.
63730         Reported by Ralf Wildenhues.
63731
63732 2007-05-16  Paul Eggert  <eggert@cs.ucla.edu>
63733
63734         * lib/fcntl_.h: Prefer #include_next <foo.h> to #include
63735         @ABSOLUTE_FOO_H@ if @HAVE_INCLUDE_NEXT@.  This works better with
63736         GCC 4.2, which otherwise issues a lot of warnings.
63737         * lib/inttypes_.h, lib/math_.h, lib/search_.h, lib/signal_.h:
63738         * lib/stdint_.h, lib/stdio_.h, lib/stdlib_.h, lib/string_.h:
63739         * lib/sys_time_.h, lib/time_.h, lib/wchar_.h, lib/wctype_.h: Likewise.
63740         * lib/stdlib_.h: Don't bother with #pragma GCC system_header, as
63741         it should no longer be needed.
63742         * lib/string_.h: Likewise.
63743         * modules/absolute-header (HAVE_INCLUDE_NEXT): New 'make' define.
63744         * modules/fcntl (fcntl.h): Substitute @HAVE_INCLUDE_NEXT@.
63745         * modules/inttypes (inttypes.h): Likewise.
63746         * modules/math (math.h): Likewise.
63747         * modules/search (search.h): Likewise.
63748         * modules/signal (signal.h): Likewise.
63749         * modules/stdint (stdint.h): Likewise.
63750         * modules/stdio (stdio.h): Likewise.
63751         * modules/stdlib (stdlib.h): Likewise.
63752         * modules/string (string.h): Likewise.
63753         * modules/sys_time (sys/time.h): Likewise.
63754         * modules/time (time.h): Likewise.
63755         * modules/wchar (wchar.h): Likewise.
63756         * modules/wctype (wtype.h): Likewise.
63757
63758 2007-05-16  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
63759
63760         * doc/gnulib-tool.texi (CVS Issues): Fix typo.
63761
63762 2007-05-13  Bruno Haible  <bruno@clisp.org>
63763
63764         * stpcpy.m4 (gl_FUNC_STPCPY): Require AC_C_RESTRICT.
63765         * stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
63766         * strsep.m4 (gl_FUNC_STRSEP): Likewise.
63767         * strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
63768         (gl_PREREQ_STRTOK_R): Don't require it here.
63769
63770 2007-05-13  Bruno Haible  <bruno@clisp.org>
63771
63772         * lib/stdlib_.h (mkdtemp, mkstemp): Comment out argument name. Needed
63773         when used in C++ mode.
63774
63775 2007-05-12  Bruno Haible  <bruno@clisp.org>
63776
63777         * lib/linebuffer.h: Tweak doc.
63778         * lib/linebuffer.c: Likewise.
63779
63780 2007-05-12  James Youngman  <jay@gnu.org>
63781
63782         * lib/linebuffer.c (readlinebuffer_delim): New function,
63783         like readlinebuffer, but use a caller-specified delimiter.
63784         (readlinebuffer): Just call readlinebuffer_delim with '\n'
63785         as the delimiter.
63786         * lib/linebuffer.h (readlinebuffer_delim): Declare it.
63787
63788 2007-05-12  Sergey Poznyakoff  <gray@gnu.org.ua>
63789
63790         * m4/openat.m4 (gl_FUNC_OPENAT): Do not require openat-die.
63791         * modules/openat (Files): Remove openat-die.c.
63792         (Depends-on): Add openat-die.
63793         * modules/openat-die: New module.
63794
63795 2007-05-06  Bruno Haible  <bruno@clisp.org>
63796
63797         * m4/printf.m4 (gl_PRINTF_FLAG_GROUPING, gl_VSNPRINTF_ZEROSIZE_C99):
63798         Update with info about Cygwin.
63799         * doc/functions/fprintf.texi: Update.
63800         * doc/functions/printf.texi: Update.
63801         * doc/functions/snprintf.texi: Update.
63802         * doc/functions/sprintf.texi: Update.
63803         * doc/functions/vfprintf.texi: Update.
63804         * doc/functions/vprintf.texi: Update.
63805         * doc/functions/vsnprintf.texi: Update.
63806         * doc/functions/vsprintf.texi: Update.
63807         Reported by Eric Blake.
63808
63809 2007-05-06  Bruno Haible  <bruno@clisp.org>
63810
63811         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_ZERO]: Perform the
63812         padding ourselves for the floating-point directives.
63813         * m4/printf.m4 (gl_PRINTF_FLAG_ZERO): New macro.
63814         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_ZERO): New macro.
63815         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
63816         gl_PRINTF_FLAG_ZERO and test its result. Invoke
63817         gl_PREREQ_VASNPRINTF_FLAG_ZERO.
63818         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
63819         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Likewise.
63820         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
63821         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
63822         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
63823         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
63824         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
63825         * tests/test-snprintf-posix.h (test_function): Also check the width
63826         and some flags in the %f directive.
63827         * tests/test-sprintf-posix.h (test_function): Likewise.
63828         * tests/test-vasnprintf-posix.c (test_function): Likewise.
63829         * tests/test-vasprintf-posix.c (test_function): Likewise.
63830         * doc/functions/fprintf.texi: Update.
63831         * doc/functions/printf.texi: Update.
63832         * doc/functions/snprintf.texi: Update.
63833         * doc/functions/sprintf.texi: Update.
63834         * doc/functions/vfprintf.texi: Update.
63835         * doc/functions/vprintf.texi: Update.
63836         * doc/functions/vsnprintf.texi: Update.
63837         * doc/functions/vsprintf.texi: Update.
63838
63839 2007-05-06  Bruno Haible  <bruno@clisp.org>
63840
63841         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_GROUPING]: Don't
63842         pass the ' flag character to sprintf or snprintf.
63843         * m4/printf.m4 (gl_PRINTF_FLAG_GROUPING): New macro.
63844         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_GROUPING): New macro.
63845         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
63846         gl_PRINTF_FLAG_GROUPING and test its result. Invoke
63847         gl_PREREQ_VASNPRINTF_FLAG_GROUPING.
63848         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
63849         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Likewise.
63850         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
63851         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
63852         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
63853         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
63854         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
63855         * tests/test-snprintf-posix.h (test_function): Also check the grouping
63856         flag.
63857         * tests/test-sprintf-posix.h (test_function): Likewise.
63858         * tests/test-vasnprintf-posix.c (test_function): Likewise.
63859         * tests/test-vasprintf-posix.c (test_function): Likewise.
63860         * doc/functions/fprintf.texi: Update.
63861         * doc/functions/printf.texi: Update.
63862         * doc/functions/snprintf.texi: Update.
63863         * doc/functions/sprintf.texi: Update.
63864         * doc/functions/vfprintf.texi: Update.
63865         * doc/functions/vprintf.texi: Update.
63866         * doc/functions/vsnprintf.texi: Update.
63867         * doc/functions/vsprintf.texi: Update.
63868
63869 2007-05-01  Bruno Haible  <bruno@clisp.org>
63870
63871         * tests/test-argp-2.sh (func_compare): Drop .exe suffix.
63872
63873 2007-05-03  Paul Eggert  <eggert@cs.ucla.edu>
63874
63875         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Use better
63876         comment for D_INO_IN_DIRENT.  Problem reported by James Youngman.
63877
63878 2007-05-02  Paul Eggert  <eggert@cs.ucla.edu>
63879
63880         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Test whether
63881         readdir returns garbage in d_ino.  Problem reported by Kaz Sasayama in
63882         <http://lists.gnu.org/archive/html/bug-gnulib/2007-05/msg00021.html>.
63883
63884 2007-05-02  Sergey Poznyakoff  <gray@gnu.org.ua>
63885
63886         * lib/argp-help.c (struct hol_entry): New member `ord'.
63887         (HOL_ENTRY_PTRCMP): Use ord for comparison
63888         (hol_sort): Initialize ord.
63889
63890 2007-05-01  Bruno Haible  <bruno@clisp.org>
63891
63892         * doc/functions/_Exit_C99.texi: Renamed from doc/functions/_Exit.texi.
63893         Reported by Eric Blake.
63894         * doc/gnulib.texi (Function Substitutes): Update.
63895
63896 2007-05-01  Bruno Haible  <bruno@clisp.org>
63897
63898         * doc/functions.texi: Remove file, now redundant through
63899         doc/functions/*.texi.
63900
63901 2007-05-01  Bruno Haible  <bruno@clisp.org>
63902
63903         * modules/argp (Depends-on): Add sleep.
63904
63905 2007-05-01  Bruno Haible  <bruno@clisp.org>
63906
63907         * modules/sleep-tests: New file.
63908         * tests/test-sleep.c: New file.
63909
63910         * modules/sleep: New file.
63911         * lib/sleep.c: New file.
63912         * m4/sleep.m4: New file.
63913         * lib/unistd_.h (sleep): New declaration.
63914         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_SLEEP,
63915         HAVE_SLEEP.
63916         * modules/unistd (Makefile.am): Substitute GNULIB_SLEEP, HAVE_SLEEP.
63917         * doc/functions/sleep.texi: Document the sleep module.
63918
63919 2007-05-01  Bruno Haible  <bruno@clisp.org>
63920
63921         * lib/sigprocmask.h: Remove file.
63922         * lib/signal_.h: Incorporate the previous contents of sigprocmask.h.
63923         * lib/sigprocmask.c: Include <signal.h> instead of sigprocmask.h.
63924         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Substitute GNULIB_SIGPROCMASK,
63925         HAVE_POSIX_SIGNALBLOCKING, HAVE_SIGSET_T.
63926         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Require
63927         gl_SIGNAL_H_DEFAULTS. Set HAVE_POSIX_SIGNALBLOCKING as a shell variable.
63928         (gl_PREREQ_SIGPROCMASK): Require gl_SIGNAL_H_DEFAULTS. Set
63929         HAVE_SIGSET_T as a shell variable.
63930         * modules/signal (Makefile.am): Substitute GNULIB_SIGPROCMASK,
63931         HAVE_POSIX_SIGNALBLOCKING, HAVE_SIGSET_T into signal.h.
63932         * modules/sigprocmask (Files): Remove lib/sigprocmask.h.
63933         (Depends-on): Add signal. Remove verify.
63934         (configure.ac): Invoke gl_SIGNAL_MODULE_INDICATOR.
63935         (Include): Mention <signal.h> instead of sigprocmask.h.
63936         * NEWS: Mention the change.
63937         * lib/fatal-signal.c: Don't include sigprocmask.h.
63938
63939 2007-05-01  Bruno Haible  <bruno@clisp.org>
63940
63941         * modules/signal: New file.
63942         * lib/signal_.h: New file.
63943         * m4/signal_h.m4: New file.
63944
63945 2007-05-01  Bruno Haible  <bruno@clisp.org>
63946
63947         * lib/wctype_.h: Test HAVE_ISWCNTRL at configure time.
63948         * m4/wctype.m4 (gl_WCTYPE_H): Substitute HAVE_ISWCNTRL.
63949         * modules/wctype (Makefile.am): Substitute HAVE_ISWCNTRL instead of
63950         HAVE_WCTYPE_CTMP_BUG into wctype.h.
63951
63952 2007-05-01  Bruno Haible  <bruno@clisp.org>
63953
63954         * lib/sys_stat_.h: Test HAVE_LSTAT, HAVE_DECL_MKDIR, HAVE_IO_H at
63955         configure time.
63956         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Substitute HAVE_LSTAT,
63957         HAVE_DECL_MKDIR, HAVE_IO_H via AC_SUBST.
63958         * modules/sys_stat (Makefile.am): Substitute their values into
63959         sys/stat.h.
63960
63961 2007-05-01  Bruno Haible  <bruno@clisp.org>
63962
63963         * lib/glob_.h: Test HAVE_SYS_CDEFS_H at configure time.
63964         * m4/glob.m4 (gl_PREREQ_GLOB): Substitute HAVE_SYS_CDEFS_H via AC_SUBST.
63965         * modules/glob (Makefile.am): Put HAVE_SYS_CDEFS_H value into glob.h.
63966
63967 2007-05-01  Bruno Haible  <bruno@clisp.org>
63968
63969         * doc/header/assert.texi: Undo last change: don't mention the gnulib
63970         'assert' module here.
63971
63972 2007-05-01  Bruno Haible  <bruno@clisp.org>
63973
63974         * doc/functions/*.texi: New files.
63975         * doc/functions/google-ranking.txt: New file.
63976         * doc/gnulib.texi (Function Substitutes): New chapter.
63977         (ctime, inet_ntoa): Remove sections.
63978         * doc/ctime.texi: Remove file.
63979         * doc/inet_ntoa.texi: Remove file.
63980         * doc/Makefile (gnulib.info, gnulib.html, gnulib.dvi): Update
63981         dependencies.
63982         (%.info): New rule, specifying a --reference-limit.
63983
63984 2007-05-01  Bruno Haible  <bruno@clisp.org>
63985
63986         * MODULES.html.sh (posix_functions): Remove 'exec', 'toc'.
63987
63988 2007-05-01  Bruno Haible  <bruno@clisp.org>
63989
63990         * modules/mkdir (Depends-on): Add sys_stat, because sys_stat provides
63991         the portability of 'mkdir' to mingw systems.
63992
63993 2007-05-01  Bruno Haible  <bruno@clisp.org>
63994
63995         * doc/headers/google-ranking.txt: New file.
63996
63997 2007-04-30  Eric Blake  <ebb9@byu.net>
63998
63999         Prefer fseeko to fseek.
64000         * modules/getpass (Depends-on): Add fseeko.
64001         * lib/getpass.c (getpass): Use fseeko, not fseek.
64002
64003 2007-04-30  Sergey Poznyakoff  <gray@gnu.org.ua>
64004
64005         * lib/argp-help.c (hol_entry_cmp): Option sorting algorithm
64006         assumes the sorting is stable, while most qsort implementations
64007         are not.  Use argument addresses to ensure they never compare as
64008         equal.
64009
64010         * tests/test-argp-2.sh (usage-indent test): Fix output
64011         (func_compare): Restore diff options
64012         * tests/test-argp.c: Restore #include "progname.h"
64013
64014 2007-04-29  Bruno Haible  <bruno@clisp.org>
64015
64016         * m4/printf.m4 (gl_VSNPRINTF_ZEROSIZE_C99): New macro.
64017         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
64018         gl_VSNPRINTF_ZEROSIZE_C99. Test gl_cv_func_vsnprintf_zerosize_c99.
64019         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
64020         * modules/snprintf-posix-tests (Files): Add tests/test-snprintf.c.
64021         (configure.ac): Define CHECK_SNPRINTF_POSIX.
64022         (TESTS, check_PROGRAMS): Add test-snprintf.
64023         * modules/vsnprintf-posix-tests (Files): Add tests/test-vsnprintf.c.
64024         (configure.ac): Define CHECK_VSNPRINTF_POSIX.
64025         (TESTS, check_PROGRAMS): Add test-vsnprintf.
64026         * tests/test-snprintf.c (main) [!CHECK_SNPRINTF_POSIX]: Disable
64027         assertions that fail on HP-UX, OSF/1, or IRIX.
64028         * tests/test-vsnprintf.c (main) [!CHECK_VSNPRINTF_POSIX]: Likewise.
64029
64030 2007-04-29  Bruno Haible  <bruno@clisp.org>
64031
64032         * MODULES.html.sh (posix_functions): Remove 'contents'.
64033
64034 2007-04-29  Karl Berry  <karl@gnu.org>
64035
64036         * config/srclist.txt (gendocs_template_min): new entry.
64037
64038 2007-04-29  Bruno Haible  <bruno@clisp.org>
64039
64040         Work around fpurge bug on BSD systems.
64041         * modules/fpurge (Makefile.am): Compile fpurge.c unconditionally.
64042         * m4/fpurge.m4 (gl_FUNC_FPURGE): Don't invoke AC_LIBOBJ.
64043         * lib/fpurge.h (fpurge): Don't handle __fpurge wrapper here. Define
64044         fpurge to rpl_fpurge if the system already has this function.
64045         * lib/fpurge.c (fpurge): Handle also the __fpurge wrapper case and
64046         the case where the system already has this function. Correct invariants
64047         on BSD systems.
64048         * lib/fseeko.c (rpl_fseeko): Update recognition of preceding fflush on
64049         BSD systems.
64050
64051 2007-04-29  Sergey Poznyakoff  <gray@gnu.org.ua>
64052
64053         * lib/argp-help.c (hol_cluster_cmp): Reverse comparison.  Change
64054         proposed by Sven Verdoolaege.
64055
64056         * tests/test-argp.c: Fix option ordering.  Test deeply clustered
64057         options.
64058         * tests/test-argp-2.sh (func_compare): Use diff instead of cmp.
64059         (usage and help tests): Update
64060
64061 2007-04-29  Bruno Haible  <bruno@clisp.org>
64062
64063         * tests/test-fflush.c (main): Use a file of size 17, not 10.
64064         Print more information in case of failure. Disable a test on BeOS.
64065
64066 2007-04-29  Bruno Haible  <bruno@clisp.org>
64067
64068         * tests/**/test-*.[hc] (ASSERT): Use fprintf to show the line number.
64069         This helps debugging on systems on which no gdb is available.
64070
64071 2007-04-29  Bruno Haible  <bruno@clisp.org>
64072
64073         * lib/freading.h: Improve comments.
64074         * lib/fwriting.h: Likewise.
64075         * tests/test-freading.c (main): Don't check freading immediately after
64076         repositioning. Needed for glibc.
64077
64078 2007-04-29  Bruno Haible  <bruno@clisp.org>
64079
64080         * lib/freading.c (freading): Trivial simplification.
64081
64082 2007-04-28  Bruno Haible  <bruno@clisp.org>
64083
64084         * tests/test-fwriting.c (main): Also test the interaction between
64085         fflush and fwriting.
64086         * modules/fwriting-tests (Depends-on): Add fflush.
64087
64088         * tests/test-freading.c (main): Also test the interaction between
64089         fflush and freading.
64090         * modules/freading-tests (Depends-on): Add fflush.
64091
64092 2007-04-28  Bruno Haible  <bruno@clisp.org>
64093
64094         * lib/stdio_.h (fseek, ftell): Provide link warnings suggesting to use
64095         fseeko and ftello.
64096         Suggested by Eric Blake.
64097
64098 2007-04-28  Jim Meyering  <jim@meyering.net>
64099
64100         Avoid false-negative in gl_STDINT_H's C99 conformance test.
64101         * m4/stdint.m4 (gl_STDINT_H): When checking whether stdint.h conforms
64102         to C99, include all of gl_STDINT_INCLUDES, not just <stddef.h>.
64103
64104 2007-04-27  Eric Blake  <ebb9@byu.net>
64105
64106         * doc/headers/assert.texi (assert.h): Document assert module use.
64107
64108 2007-04-27  Bruno Haible  <bruno@clisp.org>
64109
64110         * doc/headers/*.texi: New files.
64111         * doc/gnulib.texi (Header File Substitutes): New chapter.
64112         * doc/Makefile (gnulib.info, gnulib.html, gnulib.dvi): Specify
64113         dependencies.
64114         (standards.info ,standards.html, standards.dvi): Update dependencies.
64115         (mostlyclean, clean): New targets.
64116
64117 2007-04-27  Bruno Haible  <bruno@clisp.org>
64118
64119         * lib/sysexits_.h: Renamed from lib/sysexit_.h.
64120         * modules/sysexits (Files, Makefile.am): Update.
64121
64122         * lib/sys_socket_.h: Renamed from lib/socket_.h.
64123         * modules/sys_socket (Files, Makefile.am): Update.
64124
64125         * lib/sys_stat_.h: Renamed from lib/stat_.h.
64126         * modules/sys_stat (Files, Makefile.am): Update.
64127
64128 2007-04-27  Eric Blake  <ebb9@byu.net>
64129
64130         * lib/freading.h: Improve comments.
64131         * lib/fwriting.h: Likewise.
64132         * lib/fflush.c: Likewise.
64133
64134         Fix closein for mingw.
64135         * modules/closein-tests: Add tests for closein.
64136         * tests/test-closein.c: New file.
64137         * tests/test-closein.sh: Likewise.
64138         * lib/unistd_.h [!SEEK_CUR]: Mingw also needs stdlib.h for _exit.
64139         * lib/closein.c (close_stdin): Don't fflush non-seekable streams.
64140
64141 2007-04-27  Bruno Haible  <bruno@clisp.org>
64142
64143         * lib/inttypes_.h [_DECC]: Don't use #include_next if the compiler
64144         version is < 6.
64145         * lib/math_.h [__DECC]: Likewise.
64146         * lib/stdio_.h [__DECC]: Likewise.
64147         * lib/stdlib_.h [__DECC]: Likewise.
64148         * lib/string_.h [__DECC]: Likewise.
64149         * lib/time_.h [__DECC]: Likewise.
64150         * lib/wchar_.h [__DECC]: Likewise.
64151         * lib/wctype_.h [__DECC]: Likewise.
64152
64153 2007-04-27  Bruno Haible  <bruno@clisp.org>
64154
64155         * tests/test-fbufmode.c (main): Relax test, to avoid failure on mingw.
64156
64157 2007-04-27  Bruno Haible  <bruno@clisp.org>
64158
64159         * lib/fflush.c: Add comments.
64160         * modules/fpurge-tests (Depends-on): Add fflush.
64161         * modules/freadable-tests (Depends-on): Likewise.
64162         * modules/fwritable-tests (Depends-on): Likewise.
64163
64164 2007-04-27  Charles Wilson  <libtool@cwilson.fastmail.fm>
64165
64166         * m4/argz.m4 (gl_FUNC_ARGZ): Use !HAVE_WORKING_ARGZ instead of
64167         SYSTEM_ARGZ_IS_BROKEN.  Also, minor stylistic improvements.
64168         Report by Bruno Haible <bruno@clisp.org>.
64169
64170 2007-04-26  Eric Blake  <ebb9@byu.net>
64171
64172         Fix fflush on mingw.
64173         * modules/fflush (Depends-on): Add freading.
64174         * lib/fflush.c (rpl_fflush): Use freading to avoid losing buffered
64175         but unread data.
64176
64177 2007-04-26  Eric Blake  <ebb9@byu.net>
64178         and Bruno Haible  <bruno@clisp.org>
64179
64180         Implement freading and fwriting.
64181         * lib/freading.c: New file.
64182         * lib/freading.h: Likewise.
64183         * m4/freading.m4: Likewise.
64184         * modules/freading: Likewise.
64185         * modules/freading-tests: Likewise.
64186         * tests/test-freading.c: Likewise.
64187         * lib/fwriting.c: New file.
64188         * lib/fwriting.h: Likewise.
64189         * m4/fwriting.m4: Likewise.
64190         * modules/fwriting: Likewise.
64191         * modules/fwriting-tests: Likewise.
64192         * tests/test-fwriting.c: Likewise.
64193         * MODULES.html.sh (File stream based Input/Output): Mention them.
64194
64195 2007-04-26  Bruno Haible  <bruno@clisp.org>
64196
64197         * lib/stdio_.h (fseeko, ftello): Check that off_t has the same size as
64198         'long' when we assume it.
64199         Suggested by Eric Blake.
64200
64201 2007-04-26  Bruno Haible  <bruno@clisp.org>
64202
64203         Ensure fseeko, ftello are declared on glibc systems.
64204         * modules/fflush (configure.ac-early): Require AC_FUNC_FSEEKO.
64205         * modules/fseeko (configure.ac-early): Likewise.
64206         * modules/ftello (configure.ac-early): Likewise.
64207         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Don't define HAVE_FSEEKO, rely on
64208         AC_FUNC_FSEEKO for this.
64209         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Inline gl_CHECK_FSEEKO.
64210         (gl_CHECK_FSEEKO): Remove macro.
64211
64212 2007-04-26  Bruno Haible  <bruno@clisp.org>
64213
64214         * tests/test-fflush.c (main): Also check the ftell result after
64215         fflush and fseek/fseeko.
64216         * lib/fflush.c (rpl_fflush): For BSD implementations, update the
64217         file descriptor position cache in the stream.
64218         * lib/fseeko.c (rpl_fseeko): Likewise.
64219
64220 2007-04-26  Bruno Haible  <bruno@clisp.org>
64221
64222         * modules/fflush-tests (Depends-on): Add fseeko.
64223
64224 2007-04-25  Charles Wilson  <libtool@cwilson.fastmail.fm>
64225             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
64226
64227         * lib/argz_.h: ensure error_t definition is obtained in same
64228         mechanism system argz.h would have.
64229         * m4/argz.m4 (gl_FUNC_ARGZ): add new test to check if $host's
64230         argz facilities are known bad.  Err on the side of caution if
64231         cross-compiling.
64232
64233 2007-04-25  Eric Blake  <ebb9@byu.net>
64234
64235         * lib/fpurge.c (includes): Use stdlib.h for free.
64236         * tests/test-fflush.c (main): Also test fflush-fseeko.
64237
64238 2007-04-25  Bruno Haible  <bruno@clisp.org>
64239
64240         Make fflush+fseek POSIX-compliant on FreeBSD and MacOS X.
64241         * lib/fseeko.c: New file.
64242         * lib/stdio_.h: Include <sys/types.h> when off_t is needed.
64243         (fseeko, fseek): Define to replacements if REPLACE_FFLUSH.
64244         * m4/fseeko.m4 (gl_CHECK_FSEEKO): New macro, extracted from
64245         gl_FUNC_FSEEKO.
64246         (gl_FUNC_FSEEKO): Invoke it.
64247         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Arrange to compile fseeko.c. Invoke
64248         gl_CHECK_FSEEKO. Define HAVE_FSEEKO.
64249         * modules/fflush (Files): Add lib/fseeko.c, m4/fseeko.m4.
64250
64251 2007-04-25  Bruno Haible  <bruno@clisp.org>
64252
64253         * modules/fflush (Depends-on): Add ftello.
64254
64255 2007-04-25  Bruno Haible  <bruno@clisp.org>
64256
64257         * modules/ftello-tests: New file.
64258         * tests/test-ftello.c: New file.
64259
64260         * modules/ftello: New file.
64261         * m4/ftello.m4: New file.
64262         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FTELLO,
64263         HAVE_FTELLO.
64264         * lib/stdio_.h (ftello): New declaration.
64265         * modules/stdio (Makefile.am): Substitute also GNULIB_FTELLO,
64266         HAVE_FTELLO.
64267
64268 2007-04-25  Bruno Haible  <bruno@clisp.org>
64269
64270         * modules/fseeko-tests: New file.
64271         * tests/test-fseeko.c: New file.
64272
64273         * modules/fseeko: New file.
64274         * m4/fseeko.m4: New file.
64275         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FSEEKO,
64276         HAVE_FSEEKO.
64277         * lib/stdio_.h (fseeko): New declaration.
64278         * modules/stdio (Makefile.am): Substitute also GNULIB_FSEEKO,
64279         HAVE_FSEEKO.
64280
64281 2007-04-25  Bruno Haible  <bruno@clisp.org>
64282
64283         * lib/stdio_.h (fflush): Add support for GNULIB_POSIXCHECK.
64284
64285 2007-04-25  Bruno Haible  <bruno@clisp.org>
64286
64287         * lib/unistd_.h: Include <stdio.h> if needed to get the SEEK_* macros.
64288         * tests/test-stdio.c: Check that the various SEEK_* macros are defined.
64289         * tests/test-unistd.c: Likewise.
64290         * tests/test-fcntl.c: Likewise.
64291
64292 2007-04-23  Eric Blake  <ebb9@byu.net>
64293
64294         * lib/fflush.c: Fix missing include.
64295         Reported by Bruno Haible.
64296
64297 2007-04-23  Bruno Haible  <bruno@clisp.org>
64298
64299         * lib/fpurge.c (fpurge) [glibc, BSD]: Free a malloc()ed ungetc buffer.
64300         Reported by Eric Blake.
64301
64302 2007-04-23  Bruno Haible  <bruno@clisp.org>
64303
64304         * lib/fbufmode.c (fbufmode): Port to Solaris/SPARC64.
64305
64306 2007-04-23  Bruno Haible  <bruno@clisp.org>
64307
64308         * lib/fseterr.c (fseterr): Don't hardcode the value of _IOERR.
64309
64310 2007-04-23  Bruno Haible  <bruno@clisp.org>
64311
64312         * tests/test-fbufmode.c (main): Be prepared to a failure of setvbuf.
64313         Needed on HP-UX 11.
64314
64315 2007-04-16  Eric Blake  <ebb9@byu.net>
64316
64317         Make fflush rely on fpurge.
64318         * lib/fflush.c (rpl_fflush): Rely on fpurge module, rather than
64319         open coding all variants.
64320         * modules/fflush (Depends-on): Add fpurge and unistd.
64321         * modules/fflush-tests (Depends-on): Unistd is no longer extra.
64322         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Simplify.
64323
64324         Fix --with-tests compilation on cygwin.
64325         * modules/argmatch-tests (Makefile.am): List gnulib library first
64326         in LDADD.
64327         * modules/argp-tests (Makefile.am): Likewise.
64328         * modules/array-list-tests (Makefile.am): Likewise.
64329         * modules/array-oset-tests (Makefile.am): Likewise.
64330         * modules/avltree-list-tests (Makefile.am): Likewise.
64331         * modules/avltree-oset-tests (Makefile.am): Likewise.
64332         * modules/avltreehash-list-tests (Makefile.am): Likewise.
64333         * modules/carray-list-tests (Makefile.am): Likewise.
64334         * modules/dirname-tests (Makefile.am): Likewise.
64335         * modules/frexp-tests (Makefile.am): Likewise.
64336         * modules/isnanl-tests (Makefile.am): Likewise.
64337         * modules/linked-list-tests (Makefile.am): Likewise.
64338         * modules/linkedhash-list-tests (Makefile.am): Likewise.
64339         * modules/lock-tests (Makefile.am): Likewise.
64340         * modules/rbtree-list-tests (Makefile.am): Likewise.
64341         * modules/rbtree-oset-tests (Makefile.am): Likewise.
64342         * modules/rbtreehash-list-tests (Makefile.am): Likewise.
64343         * modules/tls-tests (Makefile.am): Likewise.
64344         * modules/tsearch-tests (Makefile.am): Likewise.
64345         * modules/xvasprintf-tests (Makefile.am): Likewise.
64346
64347         Fix fpurge for cygwin.
64348         * lib/fpurge.c (fpurge): Fix order of operation flub, and return a
64349         value.
64350         * modules/fpurge-tests (Depends-on): Clean up trash.
64351
64352 2007-04-16  Simon Josefsson  <simon@josefsson.org>
64353
64354         * lib/gc-libgcrypt.c (gc_hash_open): Shut up compiler warnings.
64355
64356         * m4/autobuild.m4: Re-indent.
64357
64358 2007-04-13  Bruno Haible  <bruno@clisp.org>
64359
64360         * modules/fpurge-tests: New file.
64361         * tests/test-fpurge.c: New file.
64362
64363         * modules/fpurge: New file.
64364         * lib/fpurge.h: New file.
64365         * lib/fpurge.c: New file.
64366         * m4/fpurge.m4: New file.
64367
64368 2007-04-13  Bruno Haible  <bruno@clisp.org>
64369
64370         * modules/fbufmode-tests: New file.
64371         * tests/test-fbufmode.c: New file.
64372
64373         * modules/fbufmode: New file.
64374         * lib/fbufmode.h: New file.
64375         * lib/fbufmode.c: New file.
64376         * m4/fbufmode.m4: New file.
64377
64378 2007-04-13  Bruno Haible  <bruno@clisp.org>
64379
64380         * modules/fwritable-tests: New file.
64381         * tests/test-fwritable.c: New file.
64382
64383         * modules/fwritable: New file.
64384         * lib/fwritable.h: New file.
64385         * lib/fwritable.c: New file.
64386         * m4/fwritable.m4: New file.
64387
64388 2007-04-13  Bruno Haible  <bruno@clisp.org>
64389
64390         * modules/freadable-tests: New file.
64391         * tests/test-freadable.c: New file.
64392
64393         * modules/freadable: New file.
64394         * lib/freadable.h: New file.
64395         * lib/freadable.c: New file.
64396         * m4/freadable.m4: New file.
64397
64398 2007-04-13  Bruno Haible  <bruno@clisp.org>
64399
64400         * modules/fflush-tests (Makefile.am): Remove EXTRA_DIST. Augment
64401         MOSTLYCLEANFILES.
64402
64403 2007-04-13  Paul Eggert  <eggert@cs.ucla.edu>
64404
64405         * build-aux/bootstrap (gnulib_tool_option_extras): New var, used by
64406         gzip bootstrap.conf to avoid dragging in i18n machinery.
64407         (gnulib_tool_option): Use it.
64408
64409 2007-04-13  Bruno Haible  <bruno@clisp.org>
64410
64411         * tests/test-vasnprintf-posix.c (test_function): Add tests for %f and
64412         %F directives.
64413         * tests/test-vasprintf-posix.c (test_function): Likewise.
64414         * tests/test-snprintf-posix.h (test_function): Likewise.
64415         * tests/test-sprintf-posix.h (test_function): Likewise.
64416         * tests/test-fprintf-posix.h (test_function): Likewise.
64417         * tests/test-printf-posix.h (test_function): Likewise.
64418         * tests/test-fprintf-posix.out: Likewise.
64419
64420 2007-04-13  Bruno Haible  <bruno@clisp.org>
64421
64422         * modules/lock-tests (configure.ac): For LIBSCHED, try also -lposix4.
64423         * modules/tls-tests (configure.ac): Likewise.
64424         Reported by Arto C. Nirkko <anirkko@insel.ch>.
64425
64426 2007-04-13  Bruno Haible  <bruno@clisp.org>
64427
64428         * lib/tls.c (glthread_tls_get): Fix return type.
64429         Patch by Arto C. Nirkko <anirkko@insel.ch>.
64430
64431 2007-04-12  Eric Blake  <ebb9@byu.net>
64432
64433         * modules/gettime (Depends-on): Remove gettime.
64434         Reported by Dmitry V. Levin.
64435
64436 2007-04-12  Bruno Haible  <bruno@clisp.org>
64437
64438         * modules/fflush (Include): Mention <stdio.h>.
64439         * modules/strtoimax (Include): Mention <inttypes.h>.
64440         * modules/strtoumax (Include): Likewise.
64441
64442 2007-04-12  Eric Blake  <ebb9@byu.net>
64443
64444         * .cvsignore: New file.
64445         * .gitignore: Likewise.
64446
64447 2007-04-12  Bruno Haible  <bruno@clisp.org>
64448
64449         * modules/iconv-tests (test_iconv_LDADD): Mention -liconv after LDADD,
64450         not before, since $(LDADD) often contains libgnu.a.
64451         * modules/striconv-tests (test_striconv_LDADD): Likewise.
64452         * modules/striconveh-tests (test_striconveh_LDADD): Likewise.
64453         * modules/striconveha-tests (test_striconveha_LDADD): Likewise.
64454         Needed on Cygwin.
64455
64456 2007-04-12  Eric Blake  <ebb9@byu.net>
64457
64458         Work around glibc's failure to flush stdin on fclose.
64459         * lib/closein.c (close_stdin): Flush stdin before closing.
64460
64461         Work around glibc's failure to reset seekable stdin on exit.
64462         * modules/closein: New module.
64463         * lib/closein.c: New file.
64464         * lib/closein.h: Likewise.
64465         * m4/closein.m4: Likewise.
64466         * MODULES.html.sh (File stream based Input/Output): Document it.
64467
64468 2007-04-12  Simon Josefsson  <simon@josefsson.org>
64469
64470         * gnulib-tool: Rename generated 'autobuild' script to
64471         'do-autobuild' in --create-megatestdir output.
64472
64473         * doc/gnulib.texi (Build robot for gnulib): Fix.
64474
64475 2007-04-12  Simon Josefsson  <simon@josefsson.org>
64476
64477         * modules/sysexits (Depends-on): Add absolute-header.
64478
64479 2007-04-12  Eric Blake  <ebb9@byu.net>
64480
64481         No need to preserve errno on success.
64482         * lib/fflush.c (rpl_fflush): Simplify errno tracking.
64483         Reported by Bruno Haible.
64484
64485 2007-04-12  Simon Josefsson  <simon@josefsson.org>
64486
64487         * MODULES.html.sh (Support for maintaining and releasing
64488         projects): Add autobuild.  Suggested by Eric Blake <ebb9@byu.net>.
64489
64490 2007-04-12  Simon Josefsson  <simon@josefsson.org>
64491
64492         * gnulib-tool (func_modules_add_dummy): Respect --avoid=dummy.
64493
64494 2007-04-12  Simon Josefsson  <simon@josefsson.org>
64495
64496         * modules/autobuild: New module.
64497
64498         * m4/autobuild.m4: New file.
64499
64500 2007-04-11  Bruno Haible  <bruno@clisp.org>
64501
64502         * lib/vasnprintf.c (VASNPRINTF): Implement the %F directive using the
64503         %f directive, if NEED_PRINTF_DIRECTIVE_F is defined.
64504         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_F): New macro.
64505         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_F): New macro.
64506         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
64507         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
64508         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
64509         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
64510         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
64511         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
64512         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Invoke
64513         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
64514         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
64515         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Invoke
64516         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
64517         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
64518         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Invoke
64519         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
64520         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
64521         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Invoke
64522         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
64523         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
64524         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Invoke
64525         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
64526         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
64527         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Invoke
64528         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
64529         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
64530         Reported by Eric Blake.
64531
64532 2007-04-11  Bruno Haible  <bruno@clisp.org>
64533
64534         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Fix test. It always failed.
64535
64536 2007-04-10  Bruno Haible  <bruno@clisp.org>
64537
64538         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Add a test for correct result
64539         for NaN and Infinity. Needed on FreeBSD 6.1.
64540         * tests/test-vasnprintf-posix.c (test_function): Undo last change
64541         regarding results for "%010a" of Infinity and NaN.
64542         * tests/test-vasprintf-posix.c (test_function): Likewise.
64543         * tests/test-snprintf-posix.h (test_function): Likewise.
64544         * tests/test-sprintf-posix.h (test_function): Likewise.
64545         * tests/test-fprintf-posix.h (test_function): Likewise.
64546         * tests/test-printf-posix.h (test_function): Likewise.
64547         * tests/test-fprintf-posix.out: Likewise.
64548
64549 2007-04-10  Bruno Haible  <bruno@clisp.org>
64550
64551         * modules/locale-tests: New file.
64552         * tests/test-locale.c: New file.
64553
64554         * modules/locale: New file.
64555         * lib/locale_.h: New file.
64556         * m4/locale_h.m4: New file.
64557
64558 2007-04-10  Paul Eggert  <eggert@cs.ucla.edu>
64559             Bruno Haible  <bruno@clisp.org>
64560
64561         * m4/signbit.m4 (gl_SIGNBIT): When the sign bit position could not
64562         be determined, test for availability of the copysignf, copysign,
64563         copysignl functions.
64564         * lib/signbitf.c (gl_signbitf): Use copysignf if available in libc.
64565         * lib/signbitd.c (gl_signbitd): Use copysign if available in libc.
64566         * lib/signbitl.c (gl_signbitl): Use copysignl if available in libc.
64567
64568 2007-04-09  Eric Blake  <ebb9@byu.net>
64569
64570         * lib/stdio_.h [REPLACE_FFLUSH]: Declare rpl_fflush.
64571         * modules/stdio (Makefile.am): Support fflush.
64572         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
64573         * modules/fflush: New file.
64574         * lib/fflush.c: Likewise.
64575         * m4/fflush.m4: Likewise.
64576         * modules/fflush-tests: New test.
64577         * tests/test-fflush.c: Likewise.
64578         * MODULES.html.sh (Input/output <stdio.h>): Document new module.
64579
64580 2007-04-06  Bruno Haible  <bruno@clisp.org>
64581
64582         * lib/vasnprintf.c: Include <math.h>. Don't include float+.h.
64583         (VASNPRINTF): Use signbit for faster determination whether to print a
64584         minus sign.
64585         * modules/vasnprintf (Files): Remove lib/float+.h.
64586         * modules/fprintf-posix (Depends-on): Add signbit.
64587         * modules/snprintf-posix (Depends-on): Likewise.
64588         * modules/sprintf-posix (Depends-on): Likewise.
64589         * modules/vasnprintf-posix (Depends-on): Likewise.
64590         * modules/vasprintf-posix (Depends-on): Likewise.
64591         * modules/vfprintf-posix (Depends-on): Likewise.
64592         * modules/vsnprintf-posix (Depends-on): Likewise.
64593         * modules/vsprintf-posix (Depends-on): Likewise.
64594
64595 2007-04-06  Bruno Haible  <bruno@clisp.org>
64596
64597         * tests/test-frexp.c (main): Test also the sign bit of zero results.
64598         * tests/test-frexpl.c (main): Likewise.
64599         * tests/test-ldexpl.c (main): Likewise.
64600         * modules/frexp-tests (Depends-on): Add signbit.
64601         * modules/frexpl-tests (Depdends-on): Likewise.
64602         * modules/ldexpl-tests (Depdends-on): Likewise.
64603
64604 2007-04-06  Bruno Haible  <bruno@clisp.org>
64605
64606         * modules/signbit-tests: New file.
64607         * tests/test-signbit.c: New file.
64608
64609         * modules/signbit: New file.
64610         * lib/signbitf.c: New file.
64611         * lib/signbitd.c: New file.
64612         * lib/signbitl.c: New file.
64613         * m4/signbit.m4: New file.
64614         * lib/math_.h (gl_signbitf, gl_signbitd, gl_signbitl): New declarations.
64615         (signbit): New macro.
64616         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_SIGNBIT and
64617         REPLACE_SIGNBIT.
64618         * modules/math (Makefile.am): Substibute also GNULIB_SIGNBIT and
64619         REPLACE_FREXPL into math.h.
64620
64621 2007-04-06  Bruno Haible  <bruno@clisp.org>
64622
64623         * modules/isnanf-nolibm-tests: New file.
64624         * tests/test-isnanf.c: New file.
64625
64626         * modules/isnanf-nolibm: New file.
64627         * lib/isnanf.h: New file.
64628         * lib/isnanf.c: New file.
64629         * lib/isnan.c: Consider the USE_FLOAT macro.
64630         * m4/isnanf.m4: New file.
64631
64632 2007-04-06  Bruno Haible  <bruno@clisp.org>
64633
64634         * modules/gettext-h (configure.ac): AC_SUBST LIBINTL and LTLIBINTL.
64635         (Link): New section.
64636
64637         * modules/canonicalize-lgpl-tests (Makefile.am): Undo last change.
64638
64639 2007-04-06  Bruno Haible  <bruno@clisp.org>
64640
64641         Assume the 'long double' type.
64642         * m4/longdouble.m4: Remove file.
64643         * config/srclist.txt: Don't mention longdouble.m4.
64644         * lib/allocsa.h: Assume HAVE_LONG_DOUBLE to be true.
64645         * lib/float+.h: Likewise.
64646         * lib/frexp.c: Likewise.
64647         * lib/printf-args.h: Likewise.
64648         * lib/printf-args.c: Likewise.
64649         * lib/printf-frexp.c: Likewise.
64650         * lib/printf-parse.c: Likewise.
64651         * lib/vasnprintf.c: Likewise.
64652         * m4/allocsa.m4: Remove gt_TYPE_LONGDOUBLE invocation.
64653         * m4/intl.m4: Likewise.
64654         * m4/isnanl.m4: Likewise.
64655         * m4/printf.m4: Likewise.
64656         * m4/printf-frexpl.m4: Likewise.
64657         * m4/vasnprintf.m4: Likewise.
64658         * modules/allocsa (Files): Remove m4/longdouble.m4.
64659         * modules/gettext (Files): Likewise.
64660         * modules/relocatable-prog-wrapper (Files): Likewise.
64661         * modules/vasnprintf (Files): Likewise.
64662         * modules/isnanl (Files): Likewise.
64663         (Include): Simplify.
64664         * modules/isnanl-nolibm (Files): Remove m4/longdouble.m4.
64665         (Include): Simplify.
64666         * modules/printf-frexpl (Files): Remove m4/longdouble.m4.
64667         (Include): Simplify.
64668         * modules/snprintf-posix-tests (Files): Remove m4/longdouble.m4.
64669         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
64670         * modules/sprintf-posix-tests (Files): Remove m4/longdouble.m4.
64671         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
64672         * modules/vasnprintf-posix-tests (Files): Remove m4/longdouble.m4.
64673         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
64674         * modules/vasprintf-posix-tests (Files): Remove m4/longdouble.m4.
64675         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
64676         * modules/vsnprintf-posix-tests (Files): Remove m4/longdouble.m4.
64677         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
64678         * modules/vsprintf-posix-tests (Files): Remove m4/longdouble.m4.
64679         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
64680         * tests/test-isnanl-nolibm.c: Assume HAVE_LONG_DOUBLE to be true.
64681         * tests/test-isnanl.c: Likewise.
64682         * tests/test-snprintf-posix.h: Likewise.
64683         * tests/test-sprintf-posix.h: Likewise.
64684         * tests/test-vasnprintf-posix.c: Likewise.
64685         * tests/test-vasnprintf-posix2.c: Likewise.
64686         * tests/test-vasprintf-posix.c: Likewise.
64687
64688 2007-04-06  Bruno Haible  <bruno@clisp.org>
64689
64690         Fix problem with Compaq (ex-DEC) Desktop C compiler on Tru64.
64691         * lib/math_.h [__DECC]: Include the overridden include file through
64692         #include_next, outside the double-inclusion guard.
64693         * lib/stdio_.h [__DECC]: Likewise.
64694         * lib/stdlib_.h [__DECC]: Likewise.
64695         * lib/string_.h [__DECC]: Likewise.
64696         * lib/time_.h [__DECC]: Likewise.
64697         * lib/wchar_.h [__DECC]: Likewise.
64698         * lib/wctype_.h [__DECC]: Likewise.
64699         * lib/inttypes_.h [__DECC]: Likewise.
64700         Reported by Albert Chin <china@thewrittenword.com> in
64701         <http://lists.gnu.org/archive/html/bug-gnulib/2007-04/msg00088.html>.
64702
64703 2007-04-04  Eric Blake  <ebb9@byu.net>
64704
64705         * m4/stdint.m4 (gl_STDINT_H): Detect WINT_MAX bug in cygwin
64706         1.5.x.
64707
64708 2007-04-04  Bruno Haible  <bruno@clisp.org>
64709
64710         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Add a test for correct
64711         rounding. Don't assume that FreeBSD 6 and NetBSD 4 pass this test.
64712
64713 2007-04-04  Bruno Haible  <bruno@clisp.org>
64714
64715         * tests/test-vasnprintf-posix.c (test_function): Allow two possible
64716         results for "%010a" of Infinity and NaN.
64717         * tests/test-vasprintf-posix.c (test_function): Likewise.
64718         * tests/test-snprintf-posix.h (test_function): Likewise.
64719         * tests/test-sprintf-posix.h (test_function): Likewise.
64720         * tests/test-fprintf-posix.h (test_function): Remove these tests.
64721         * tests/test-printf-posix.h (test_function): Likewise.
64722         * tests/test-fprintf-posix.out: Update.
64723         Needed for FreeBSD 6.1.
64724
64725 2007-04-04  Bruno Haible  <bruno@clisp.org>
64726
64727         * DEPENDENCIES: Remove mentions of tar and gzip, since they are not
64728         directly used by the gnulib modules nor by gnulib-tool.
64729
64730 2007-04-04  Paul Eggert  <eggert@cs.ucla.edu>
64731
64732         * DEPENDENCIES: Give overall description of version dependency
64733         desirability.  Use more-typical names for apps.
64734         Add shell, coreutils, diffutils, grep, tar, gzip.
64735
64736 2007-04-04  Simon Josefsson  <simon@josefsson.org>
64737
64738         * MODULES.html.sh: Rename crypto modules.  Remove iconvme.
64739
64740 2007-04-04  Karl Berry  <karl@gnu.org>
64741
64742         * MODULES.html.sh (func_module): missing '.
64743
64744 2007-04-03  Bruno Haible  <bruno@clisp.org>
64745
64746         * modules/argmatch-tests (Makefile.am): New variable
64747         test_argmatch_LDADD.
64748         * modules/argp-tests (Makefile.am): New variable test_argp_LDADD.
64749         * modules/array-list-tests (Makefile.am): New variable
64750         test_array_list_LDADD.
64751         * modules/array-oset-tests (Makefile.am): New variable
64752         test_array_oset_LDADD.
64753         * modules/avltree-list-tests (Makefile.am): New variable
64754         test_avltree_list_LDADD.
64755         * modules/avltree-oset-tests (Makefile.am): New variable
64756         test_avltree_oset_LDADD.
64757         * modules/avltreehash-list-tests (Makefile.am): New variable
64758         test_avltreehash_list_LDADD.
64759         * modules/canonicalize-lgpl-tests (Makefile.am): New variable
64760         test_canonicalize_lgpl_LDADD.
64761         * modules/carray-list-tests (Makefile.am): New variable
64762         test_carray_list_LDADD.
64763         * modules/dirname-tests (Makefile.am): New variable
64764         test_dirname_LDADD.
64765         * modules/linked-list-tests (Makefile.am): New variable
64766         test_linked_list_LDADD.
64767         * modules/linkedhash-list-tests (Makefile.am): New variable
64768         test_linkedhash_list_LDADD.
64769         * modules/rbtree-list-tests (Makefile.am): New variable
64770         test_rbtree_list_LDADD.
64771         * modules/rbtree-oset-tests (Makefile.am): New variable
64772         test_rbtree_oset_LDADD.
64773         * modules/rbtreehash-list-tests (Makefile.am): New variable
64774         test_rbtreehash_list_LDADD.
64775         * modules/xvasprintf-tests (Makefile.am): New variable
64776         test_xvasprintf_LDADD.
64777         Reported by Eric Blake.
64778
64779 2007-04-03  Eric Blake  <ebb9@byu.net>
64780
64781         * DEPENDENCIES: Weaken m4 requirements.
64782
64783 2007-04-03  Bruno Haible  <bruno@clisp.org>
64784
64785         * modules/frexp-tests (configure.ac): Remove AC_SUBST.
64786         * modules/isnanl-tests (configure.ac): Likewise.
64787
64788 2007-04-03  Ben Pfaff  <blp@gnu.org>
64789
64790         * modules/iconv_open: Add $(srcdir)/ to source directory
64791         references in Makefile fragments that call gperf, to fix VPATH
64792         builds.
64793
64794 2007-04-03  Bruno Haible  <bruno@clisp.org>
64795
64796         * modules/ldexpl (Depends-on): Add isnanl, remove isnanl-nolibm.
64797         * lib/ldexpl.c: Undo last change.
64798
64799 2007-04-03  Bruno Haible  <bruno@clisp.org>
64800
64801         * modules/printf-frexpl (Depends-on): Undo last change.
64802         (Files): Add m4/ldexpl.m4.
64803
64804 2007-04-03  Bruno Haible  <bruno@clisp.org>
64805
64806         * m4/isnanl.m4 (gl_FUNC_ISNANL): Substitute ISNANL_LIBM.
64807         * modules/isnanl (Link): New section.
64808
64809         * m4/frexp.m4 (gl_FUNC_FREXP): Substitute FREXP_LIBM.
64810         * modules/frexp (Link): New section.
64811
64812         * m4/frexpl.m4 (gl_FUNC_FREXPL): Substitute FREXPL_LIBM.
64813         * modules/frexpl (Link): New section.
64814
64815         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Substitute LDEXPL_LIBM.
64816         * modules/ldexpl (Link): New section.
64817
64818 2007-04-03  Bruno Haible  <bruno@clisp.org>
64819
64820         * modules/TEMPLATE-EXTENDED: New file.
64821         * gnulib-tool (func_all_modules, func_verify_module): Exclude it.
64822
64823 2007-04-03  Bruno Haible  <bruno@clisp.org>
64824
64825         * DEPENDENCIES: New file.
64826         Suggested by Simon Josefsson.
64827
64828 2007-04-03  Bruno Haible  <bruno@clisp.org>
64829
64830         * doc/gnulib.texi: Escape @.
64831
64832 2007-04-03  James Youngman  <jay@gnu.org>
64833         and Paul Eggert  <eggert@cs.ucla.edu>
64834
64835         * lib/stat-time.h (get_stat_birthtime): Check for zero-valued
64836         birthtime on all systems that have birthtime, not just those which
64837         use st_birthtimensec rather than st_birthtim.  Putting zero in
64838         st_birthtim.tv_sec is how (for example) FreeBSD/x86 6.1 indicates
64839         that the birth time is not available for files on an NFS mount.
64840
64841 2007-04-03  Simon Josefsson  <simon@josefsson.org>
64842
64843         * modules/memxor: Move back from crypto/, suggested by Bruno.
64844         * modules/crypto/hmac-sha1: Fix memxor dependency.
64845
64846         * modules/crypto/gc: Moved from ../.
64847
64848 2007-04-02  Eric Blake  <ebb9@byu.net>
64849
64850         * lib/ldexpl.c (includes): Avoid libm.
64851
64852         * modules/printf-frexpl (Depends-on): Depend on ldexpl.
64853
64854 2007-04-02  Bruno Haible  <bruno@clisp.org>
64855
64856         * lib/sysexit_.h (EX_OK): Disable the EX_OK definition from <unistd.h>
64857         on IRIX.
64858
64859 2007-04-02  Bruno Haible  <bruno@clisp.org>
64860
64861         * m4/intdiv0.m4 (gt_INTDIV0): Avoid performing the test for real on
64862         x86 or x86_64 platforms running MacOS X.
64863         Reported by Ryan Schmidt <@ryandesign.com>.
64864
64865 2007-04-02  Bruno Haible  <bruno@clisp.org>
64866
64867         * m4/intdiv0.m4 (gt_INTDIV0): When cross-compiling, treat x86_64 like
64868         i386.
64869
64870 2007-04-01  Simon Josefsson  <simon@josefsson.org>
64871
64872         * modules/crypto/arcfour: Moved from ../.
64873         * modules/crypto/arcfour-tests: Moved from ../.
64874         * modules/crypto/arctwo: Moved from ../.
64875         * modules/crypto/arctwo-tests: Moved from ../.
64876         * modules/crypto/des: Moved from ../.
64877         * modules/crypto/des-tests: Moved from ../.
64878         * modules/crypto/gc-arcfour: Moved from ../.
64879         * modules/crypto/gc-arcfour-tests: Moved from ../.
64880         * modules/crypto/gc-arctwo: Moved from ../.
64881         * modules/crypto/gc-arctwo-tests: Moved from ../.
64882         * modules/crypto/gc-des: Moved from ../.
64883         * modules/crypto/gc-des-tests: Moved from ../.
64884         * modules/crypto/gc-hmac-md5: Moved from ../.
64885         * modules/crypto/gc-hmac-md5-tests: Moved from ../.
64886         * modules/crypto/gc-hmac-sha1: Moved from ../.
64887         * modules/crypto/gc-hmac-sha1-tests: Moved from ../.
64888         * modules/crypto/gc-md2: Moved from ../.
64889         * modules/crypto/gc-md2-tests: Moved from ../.
64890         * modules/crypto/gc-md4: Moved from ../.
64891         * modules/crypto/gc-md4-tests: Moved from ../.
64892         * modules/crypto/gc-md5: Moved from ../.
64893         * modules/crypto/gc-md5-tests: Moved from ../.
64894         * modules/crypto/gc-pbkdf2-sha1: Moved from ../.
64895         * modules/crypto/gc-pbkdf2-sha1-tests: Moved from ../.
64896         * modules/crypto/gc-random: Moved from ../.
64897         * modules/crypto/gc-rijndael: Moved from ../.
64898         * modules/crypto/gc-rijndael-tests: Moved from ../.
64899         * modules/crypto/gc-sha1: Moved from ../.
64900         * modules/crypto/gc-sha1-tests: Moved from ../.
64901         * modules/crypto/gc-tests: Moved from ../.
64902         * modules/crypto/hmac-md5: Moved from ../.
64903         * modules/crypto/hmac-md5-tests: Moved from ../.
64904         * modules/crypto/hmac-sha1: Moved from ../.
64905         * modules/crypto/hmac-sha1-tests: Moved from ../.
64906         * modules/crypto/md2: Moved from ../.
64907         * modules/crypto/md2-tests: Moved from ../.
64908         * modules/crypto/md4: Moved from ../.
64909         * modules/crypto/md4-tests: Moved from ../.
64910         * modules/crypto/md5: Moved from ../.
64911         * modules/crypto/md5-tests: Moved from ../.
64912         * modules/crypto/memxor: Moved from ../.
64913         * modules/crypto/rijndael: Moved from ../.
64914         * modules/crypto/rijndael-tests: Moved from ../.
64915         * modules/crypto/sha1: Moved from ../.
64916
64917 2007-03-30  James Youngman  <jay@gnu.org>
64918
64919         * tests/test-stat-time.c (prepare_test): use chmod() rather than
64920         rename() to change the ctime of a file (because ctime is unaffected
64921         by rename on jfs2 on AIX 5.1).
64922         (main): Start by doing cleanup, in case a previous run failed leaving
64923         test files behind.
64924
64925 2007-03-31  Bruno Haible  <bruno@clisp.org>
64926
64927         Support old proprietary implementations of iconv.
64928         * modules/iconv_open: New file.
64929         * lib/iconv_.h: New file.
64930         * m4/iconv_h.m4: New file.
64931         * lib/iconv_open.c: New file.
64932         * lib/iconv_open-aix.gperf: New file.
64933         * lib/iconv_open-hpux.gperf: New file.
64934         * lib/iconv_open-irix.gperf: New file.
64935         * lib/iconv_open-osf.gperf: New file.
64936         * m4/iconv_open.m4: New file.
64937         * modules/linebreak (Depends-on): Add iconv_open.
64938         * modules/striconv (Depends-on): Likewise.
64939         * modules/striconveh (Depends-on): Likewise.
64940         * modules/unicodeio (Depends-on): Likewise.
64941         * lib/striconveh.h (mem_cd_iconveh, str_cd_iconveh): Allow cd to be
64942         (iconv_t)(-1).
64943         * lib/striconveh.c (mem_cd_iconveh_internal): Use an indirect
64944         conversion if cd is (iconv_t)(-1).
64945         (mem_iconveh, str_iconveh): Don't fail just because a direct conversion
64946         is not possible.
64947
64948 2007-03-31  Bruno Haible  <bruno@clisp.org>
64949
64950         * tests/test-striconveha.c (main): Don't expect "autodetect_jp" to
64951         work on Solaris either. Protect also second use of "autodetect_jp".
64952
64953 2007-03-31  Bruno Haible  <bruno@clisp.org>
64954
64955         * m4/frexpl.m4 (gl_FUNC_FREXPL): Set HAVE_DECL_FREXPL to 0 when
64956         the function is not present.
64957
64958 2007-03-31  Bruno Haible  <bruno@clisp.org>
64959
64960         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Set HAVE_DECL_LDEXPL to 0 when
64961         the function is not present.
64962
64963 2007-03-31  Bruno Haible  <bruno@clisp.org>
64964
64965         * m4/iconv.m4 (AM_ICONV_LINK): Fix 2007-03-29 patch. Test also against
64966         a bug in HP-UX iconv_open().
64967
64968 2007-03-31  Bruno Haible  <bruno@clisp.org>
64969
64970         * MODULES.html.sh (func_module): Don't show gnulib-common.m4.
64971         (Mathematics <math.h>): New section, add fpieee.
64972         (Input/output <stdio.h>): Add fseterr.
64973         (Mathematics <math.h>): New section, add printf-frexp.
64974         (Container data structures): Add sublist.
64975         (Core language properties): Add fpucw, inline.
64976         (Functions for greatest-width integer types <inttypes.h>): Add
64977         imaxabs, imaxdiv, inttypes.
64978         (Mathematics <math.h>): Add frexp, frexpl, isnan-nolibm, isnanl,
64979         isnanl-nolibm, ldexp.
64980         (Mathematics <math.h>): New section, add printf-frexpl.
64981         (Support for systems lacking POSIX:2001): Add fprintf-posix,
64982         printf-posix, snprintf-posix, sprintf-posix, string, search, socklen,
64983         sys_select, sys_socket, vasnprintf-posix, vasprintf-posix,
64984         vfprintf-posix, vprintf-posix, vsnprintf-posix, vsprintf-posix.
64985         (Unicode string functions): Add unistr/u*-mbtoucr.
64986         (Java): Add javacomp-script, javaexec-script.
64987         (C#): Add csharpcomp-script, csharpexec-script.
64988         (Support for building libraries and executables): Add havelib,
64989         relocatable-*.
64990         (Support for maintaining and releasing projects): Renamed from
64991         'Support for maintaining and release projects'. Add announce-gen.
64992
64993 2007-03-31  Bruno Haible  <bruno@clisp.org>
64994
64995         * README: Talk primarily about git.
64996         (git and CVS): Renamed from CVS.
64997         * doc/gnulib.texi (Introduction, Build robot for gnulib): Mention that
64998         gnulib is available through git.
64999         * doc/gnulib-tool.texi (CVS Issues): Mention git and svn as well.
65000
65001 2007-03-30  Bruno Haible  <bruno@clisp.org>
65002
65003         * lib/alloca_.h: Change prefix of double-inclusion guard macro to _GL_.
65004         * lib/poll_.h: Likewise.
65005         * lib/stat_.h: Likewise.
65006         * lib/sys_time_.h: Likewise.
65007         * lib/sysexit_.h: Likewise.
65008         * lib/glob_.h: Prefix double-inclusion guard macro with _GL_.
65009         * lib/stdbool_.h: Likewise.
65010         * lib/byteswap_.h: Add double-inclusion guard.
65011
65012 2007-03-30  Sergey Poznyakoff  <gray@mirddin.farlep.net>
65013
65014         * lib/sysexit_.h: Prefix double-inclusion guard macro with _GNULIB.
65015
65016 2007-03-30  Karl Berry  <karl@gnu.org>
65017
65018         * config/srclist-update: double space after USA in the license
65019         substitution, since that's how it's usually (?) written.
65020
65021 2007-03-30  Paul Eggert  <eggert@cs.ucla.edu>
65022
65023         * lib/write-any-file.c (can_write_any_file): Fix else-else bug
65024         reported by Bruno Haible.
65025
65026 2007-03-29  Bruno Haible  <bruno@clisp.org>
65027
65028         * m4/iconv.m4 (AM_ICONV_LINK): Require AC_CANONICAL_HOST. Test against
65029         a bug in AIX iconv().
65030
65031 2007-03-29  Bruno Haible  <bruno@clisp.org>
65032
65033         * modules/ldexpl-tests: New file.
65034         * tests/test-ldexpl.c: New file.
65035
65036 2007-03-29  Bruno Haible  <bruno@clisp.org>
65037
65038         * lib/ldexpl.c: Include fpucw.h.
65039         (ldexpl): Use BEGIN/END_LONG_DOUBLE_ROUNDING. Skip the last unneeded
65040         multiplication.
65041         * modules/ldexpl (Depends-on): Add fpucw.
65042
65043 2007-03-29  Bruno Haible  <bruno@clisp.org>
65044
65045         * modules/ldexpl: New file.
65046         * m4/ldexpl.m4: New file.
65047         * lib/math_.h (ldexpl): Define to a replacement if REPLACE_LDEXPL is
65048         set.
65049         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize also GNULIB_LDEXPL,
65050         REPLACE_LDEXPL.
65051         * modules/math (Makefile.am): Substitute also GNULIB_LDEXPL,
65052         REPLACE_LDEXPL.
65053         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Invoke
65054         gl_FUNC_LDEXPL_WORKS.
65055         * m4/mathl.m4 (gl_FUNC_LONG_DOUBLE_MATH): Remove test for ldexpl.
65056         * modules/mathl (Files): Remove lib/ldexpl.c.
65057         (Depends-on): Add ldexpl.
65058
65059 2007-03-29  Bruno Haible  <bruno@clisp.org>
65060
65061         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Declare frexpl.
65062
65063 2007-03-29  Bruno Haible  <bruno@clisp.org>
65064
65065         * tests/test-striconveh.c (main): Don't assume that a direct conversion
65066         between ISO-8859-1 and ISO-8859-2 is possible. Needed for OSF/1, IRIX
65067         and possibly also HP-UX.
65068         * tests/test-striconveha.c (main): Don't expect "autodetect_jp" to
65069         work on AIX, IRIX, HP-UX, OSF/1.
65070         * tests/uniconv/test-u16-conv-from-enc.c (main): Likewise.
65071         * tests/uniconv/test-u16-strconv-from-enc.c (main): Likewise.
65072         * tests/uniconv/test-u32-conv-from-enc.c (main): Likewise.
65073         * tests/uniconv/test-u32-strconv-from-enc.c (main): Likewise.
65074         * tests/uniconv/test-u8-conv-from-enc.c (main): Likewise.
65075         * tests/uniconv/test-u8-strconv-from-enc.c (main): Likewise.
65076
65077 2007-03-29  Bruno Haible  <bruno@clisp.org>
65078
65079         * tests/test-stat-time.c: Include <fcntl.h>, not <sys/fcntl.h>.
65080
65081 2007-03-29  Paul Eggert  <eggert@cs.ucla.edu>
65082
65083         * lib/acl-internal.h (acl_get_fd, acl_set_fd): undef before defining,
65084         to work around a problem on OSF/1 5.1 reported by Bruno Haible.
65085
65086 2007-03-29  Eric Blake  <ebb9@byu.net>
65087
65088         * lib/acl-internal.h: Remove redundant include.
65089         (ACL_NOT_WELL_SUPPORTED): Also filter on EBUSY, returned by
65090         Cygwin when a file is locked.
65091
65092 2007-03-29  Bruno Haible  <bruno@clisp.org>
65093
65094         * lib/vasprintf.c [IN_LIBASPRINTF]: Include different specification
65095         file.
65096         * lib/asprintf.c [IN_LIBASPRINTF]: Likewise.
65097
65098 2007-03-29  Paul Eggert  <eggert@cs.ucla.edu>
65099
65100         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Don't bother to
65101         try to remove a parent directory if the child couldn't be removed
65102         (except for the first rmdir, which could fail because the child
65103         doesn't exist).  Problem reported by Jeff Blaine in
65104         <http://lists.gnu.org/archive/html/bug-tar/2007-03/msg00014.html>.
65105
65106 2007-03-28  Bruno Haible  <bruno@clisp.org>
65107
65108         * lib/striconveh.c (utf8conv_carefully): New function.
65109         (mem_cd_iconveh_internal): Invoke it.
65110
65111 2007-03-28  Bruno Haible  <bruno@clisp.org>
65112
65113         * lib/striconveh.c (mem_cd_iconveh_internal): Use u8_mbtoucr instead
65114         of u8_mbtouc in order to distinguish invalid and incomplete UTF-8
65115         input.
65116         * modules/striconveh (Depends-on): Add unistr/u8-mbtoucr. Replace
65117         utf8-ucs4 with unistr/u8-mbtouc. Replace ucs4-utf8 with
65118         unistr/u8-uctomb.
65119
65120 2007-03-28  Bruno Haible  <bruno@clisp.org>
65121
65122         * modules/unistr/u8-mbtoucr: New file.
65123         * lib/unistr/u8-mbtoucr.c: New file.
65124         * modules/unistr/u16-mbtoucr: New file.
65125         * lib/unistr/u16-mbtoucr.c: New file.
65126         * modules/unistr/u16-mbtoucr: New file.
65127         * lib/unistr/u16-mbtoucr.c: New file.
65128         * lib/unistr.h (u8_mbtoucr, u16_mbtoucr, u32_mbtoucr): New declarations.
65129
65130 2007-03-27  Simon Josefsson  <simon@josefsson.org>
65131             Bruno Haible  <bruno@clisp.org>
65132
65133         * m4/vasprintf.m4: Convert AC_SUBST into shell variable for
65134         REPLACE_VASPRINTF.  Set HAVE_VASPRINTF.  Add
65135         AC_REQUIRE([gl_STDIO_H_DEFAULTS]).
65136
65137         * m4/stdio_h.m4: Add stubs for vasprintf too.
65138
65139         * modules/stdio: Support vasprintf in sed command.
65140
65141         * modules/vasprintf: Depend on stdio for prototypes.  Remove
65142         vasprintf.h.  Add stdio module indicator.
65143
65144         * lib/stdio_.h: Declare asprintf and vasprintf, based on
65145         vasprintf.h.
65146
65147         * lib/vasprintf.h: File removed.
65148
65149         * lib/asprintf.c: Use stdio.h instead of vasprintf.h.
65150         * lib/vasprintf.c: Ditto.
65151         * lib/xvasprintf.c: Ditto.
65152         * tests/test-vasprintf-posix.c: Ditto.
65153         * tests/test-vasprintf.c: Ditto.
65154
65155 2007-03-27  Bruno Haible  <bruno@clisp.org>
65156
65157         Make vasnprintf multithread-safe.
65158         * lib/vasnprintf.c (decimal_point_char): New function.
65159         (VASNPRINTF): Use it.
65160         Suggested by Simon Josefsson.
65161
65162 2007-03-27  Eric Blake  <ebb9@byu.net>
65163
65164         Support sub-second birthtime on cygwin.
65165         * m4/stat-time.m4 (gl_STAT_BIRTHTIME): Also check for st_birthtim.
65166         * lib/stat-time.h (STAT_TIMESPEC): Adjust comments.
65167         (get_stat_birthtime): Also work with st_birthtim.
65168
65169 2007-03-27  Paul Eggert  <eggert@cs.ucla.edu>
65170
65171         * lib/stat-time.h (USE_BIRTHTIME): Remove.
65172         (get_stat_atime_ns, get_stat_ctime_ns, get_stat_mtime_ns):
65173         (get_stat_birthtime_ns): Do not try to use "spare" fields.
65174         (get_stat_birthtime_ns): Simplify compile-time tests.
65175         (get_stat_birthtime): Change the API to look like
65176         get_stat_mtime etc., except return a negative tv_nsec on error.
65177         * m4/stat-time.m4 (gl_STAT_TIME, gl_STAT_BIRTHTIME):
65178         Don't check for "spare" fields.
65179         (gl_STAT_BIRTHTIME): Don't check for struct stat.st_birthtimespec.tv_sec
65180         or for struct stat.st_birthtime, as these tests aren't used.
65181         * tests/test-stat-time.c (test_birthtime): Adjust to new API.
65182
65183 2007-03-27  Bruno Haible  <bruno@clisp.org>
65184
65185         * lib/stat-time.h: Include <sys/stat.h>.
65186
65187 2007-03-27  James Youngman  <jay@gnu.org>
65188
65189         * lib/stat-time.h (get_stat_birthtime): New function for
65190           retrieving st_birthtime as provided by UFS2 (hence *BSD).
65191         * m4/stat-time.m4 (gl_STAT_BIRTHTIME): Probe for st_birthtime
65192           and its variants.
65193         * modules/stat-time (configure.ac): call gl_STAT_BIRTHTIME.
65194         * modules/stat-time-test: New file.
65195         * tests/test-stat-time.c: New test, devised by Bruno Haible.
65196
65197 2007-03-26  Bruno Haible  <bruno@clisp.org>
65198
65199         Better support of signalling NaNs.
65200         * lib/atanl.c: Include isnanl.h.
65201         (atanl): Perform test for NaN at the beginning of the function and
65202         through a call to isnanl.
65203         * lib/cosl.c: Include isnanl.h.
65204         (cosl): Perform test for NaN at the beginning of the function and
65205         through a call to isnanl.
65206         * lib/ldexpl.c: Include isnanl.h.
65207         (ldexpl): Perform test for NaN through a call to isnanl.
65208         * lib/logl.c: Include isnanl.h.
65209         (logl): Perform test for NaN at the beginning of the function and
65210         through a call to isnanl.
65211         * lib/sinl.c: Include isnanl.h.
65212         (sinl): Perform test for NaN at the beginning of the function and
65213         through a call to isnanl.
65214         * lib/sqrtl.c: Include isnanl.h.
65215         (sqrtl): Perform test for NaN at the beginning of the function and
65216         through a call to isnanl.
65217         * lib/tanl.c: Include isnanl.h.
65218         (tanl): Perform test for NaN at the beginning of the function and
65219         through a call to isnanl.
65220         * lib/trigl.c (ieee754_rem_pio2l): Remove test for NaN.
65221         * modules/mathl (Depends-on): Add isnanl.
65222
65223 2007-03-26  Eric Blake  <ebb9@byu.net>
65224
65225         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): Fix
65226         regression in logic sense of previous patch.
65227
65228 2007-03-26  Bruno Haible  <bruno@clisp.org>
65229
65230         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): Don't use
65231         unportable shell command "if ! ...".
65232         Reported by Ralf Wildenhues.
65233
65234 2007-03-25  Bruno Haible  <bruno@clisp.org>
65235
65236         * lib/sysexit_,h: If HAVE_SYSEXITS_H is defined, include the original
65237         <sysexits.h> file, and only add EX_CONFIG.
65238         * m4/sysexits.m4 (gl_SYSEXITS): If <sysexits.h> exists, check its
65239         absolute file name and whether it is sufficient. Substitute also
65240         HAVE_SYSEXITS_H and ABSOLUTE_SYSEXITS_H.
65241         * modules/sysexits (Makefile.am): Substitute HAVE_SYSEXITS_H and
65242         ABSOLUTE_SYSEXITS_H into sysexits.h.
65243
65244 2007-03-25  Bruno Haible  <bruno@clisp.org>
65245
65246         * lib/getaddrinfo.c (getaddrinfo): Don't access hints->ai_flags when
65247         hints is NULL.
65248
65249 2007-03-25  Bruno Haible  <bruno@clisp.org>
65250
65251         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Add a cast.
65252         * lib/uniconv/u8-strconv-to-enc.c (u8_strconv_to_encoding): Likewise.
65253
65254 2007-03-25  Bruno Haible  <bruno@clisp.org>
65255
65256         * lib/vasnprintf.c: Include langinfo.h.
65257         (VASNPRINTF): Prefer nl_langinfo over localeconv, since it's more
65258         multithread-safe.
65259         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): New macro.
65260         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke it.
65261         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
65262         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
65263         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
65264         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
65265         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
65266         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX: Likewise.
65267         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
65268         Reported by Simon Josefsson.
65269
65270 2007-03-25  Bruno Haible  <bruno@clisp.org>
65271
65272         * lib/printf-parse.c [!IN_LIBINTL]: Include <stdint.h>, for intmax_t.
65273         (PRINTF_PARSE): Make the support for size specifier 'j' unconditional.
65274         * modules/vasnprintf (Depends-on): Add stdint.
65275
65276 2007-03-25  Bruno Haible  <bruno@clisp.org>
65277
65278         * modules/fpieee: New file.
65279         * m4/fpieee.m4: New file.
65280         * modules/isnan-nolibm (Depends-on): Add fpieee.
65281         * modules/isnanl-nolibm (Depends-on): Add fpieee.
65282         * modules/isnanl (Depends-on): Add fpieee.
65283
65284 2007-03-25  Bruno Haible  <bruno@clisp.org>
65285
65286         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Test also finite numbers.
65287
65288 2007-03-25  Bruno Haible  <bruno@clisp.org>
65289
65290         Avoid test failures on IRIX 6.5.
65291         * tests/test-frexpl.c (MIN_NORMAL_EXP): New macro.
65292         (main): Use it.
65293         * tests/test-printf-frexpl.c (MIN_NORMAL_EXP, MIN_SUBNORMAL_EXP): New
65294         macros.
65295         (main): Use them.
65296
65297 2007-03-25  Bruno Haible  <bruno@clisp.org>
65298
65299         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): New macro.
65300         (gl_FUNC_FREXPL): Invoke it. Set REPLACE_FREXPL to 1 if it frexpl
65301         exists but doesn't work.
65302         * lib/math_.h (frexpl): Define as a replacement macro if REPLACE_FREXPL
65303         is set. Don't provide a prototype if REPLACE_FREXPL is not set.
65304         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_FREXPL.
65305         * modules/math (Makefile.am): Substibute also REPLACE_FREXPL into
65306         math.h.
65307
65308 2007-03-25  Bruno Haible  <bruno@clisp.org>
65309
65310         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Add check whether frexp(inf)
65311         returns inf. Needed on IRIX 6.5.
65312
65313 2007-03-25  Bruno Haible  <bruno@clisp.org>
65314
65315         * tests/test-frexpl.c: Include isnanl-nolibm.h.
65316         (main): Use isnanl instead of x != x idiom.
65317         * modules/frexpl-tests (Depends-on): Add isnanl-nolibm.
65318
65319         * tests/test-frexp.c: Include isnan.h.
65320         (main): Use isnan instead of x != x idiom.
65321         * modules/frexp-tests (Depends-on): Add isnan-nolibm.
65322
65323 2007-03-25  Bruno Haible  <bruno@clisp.org>
65324
65325         * tests/test-frexp.c (NaN): New function/macro.
65326         (main): Use it instead of 0.0 / 0.0.
65327         * tests/test-isnan.c (NaN): New function/macro.
65328         (main): Use it instead of 0.0 / 0.0.
65329         * tests/test-vasnprintf-posix.c (NaN): New function/macro.
65330         (test_function): Use it instead of 0.0 / 0.0.
65331         * tests/test-vasprintf-posix.c (NaN): New function/macro.
65332         (test_function): Use it instead of 0.0 / 0.0.
65333         * tests/test-snprintf-posix.h (NaN): New function/macro.
65334         (test_function): Use it instead of 0.0 / 0.0.
65335         * tests/test-sprintf-posix.h (NaN): New function/macro.
65336         (test_function): Use it instead of 0.0 / 0.0.
65337         * tests/test-fprintf-posix.h (NaN): New function/macro.
65338         (test_function): Use it instead of 0.0 / 0.0.
65339         * tests/test-printf-posix.h (NaN): New function/macro.
65340         (test_function): Use it instead of 0.0 / 0.0.
65341
65342         * lib/isnan.c (FUNC): Work around a DEC C compiler bug.
65343
65344 2007-03-25  Bruno Haible  <bruno@clisp.org>
65345
65346         * lib/glob_.h: Include <sys/stat.h>. Avoids warnings on AIX 5.1.
65347
65348 2007-03-25  Bruno Haible  <bruno@clisp.org>
65349
65350         * lib/regexec.c (merge_state_with_log): Make static.
65351
65352 2007-03-25  Bruno Haible  <bruno@clisp.org>
65353
65354         * lib/trigl.c (kernel_rem_pio2): Make static.
65355
65356 2007-03-25  Bruno Haible  <bruno@clisp.org>
65357
65358         * lib/sincosl.c (sincosl_table): Make static.
65359
65360 2007-03-25  Bruno Haible  <bruno@clisp.org>
65361
65362         * lib/argp.h (__restrict): Define to empty, rather than to 'restrict',
65363         if the compiler does not support C99.
65364
65365 2007-03-25  Bruno Haible  <bruno@clisp.org>
65366
65367         * modules/time (Makefile.am): Ensure all rule action lines start with a
65368         tab.
65369
65370 2007-03-24  Bruno Haible  <bruno@clisp.org>
65371
65372         * modules/tsearch-tests: New file.
65373         * tests/test-tsearch.sh: New file.
65374         * tests/test-tsearch.c: New file, mostly copied from glibc.
65375
65376         * modules/search-tests: New file.
65377         * tests/test-search.c: New file.
65378
65379         * modules/search: New file.
65380         * lib/search_.h: New file, incorporating lib/tsearch.h.
65381         * m4/search_h.m4: New file.
65382         * lib/tsearch.h: Remove file.
65383         * lib/tsearch.c: Include search.h instead of tsearch.h.
65384         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Require gl_SEARCH_H_DEFAULTS. Set
65385         HAVE_TSEARCH.
65386         * modules/tsearch (Files): Remove lib/tsearch.h.
65387         (Depends-on): Add search.
65388         (configure.ac): Invoke gl_SEARCH_MODULE_INDICATOR.
65389         (Include): Change tsearch.h into search.h.
65390
65391 2007-03-24  Bruno Haible  <bruno@clisp.org>
65392
65393         * modules/fpucw: New file.
65394         * lib/fpucw.h: New file.
65395         * lib/frexp.c: Include fpucw.h.
65396         (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): New macros.
65397         (FUNC): Use them.
65398         * lib/printf-frexp.c: Include fpucw.h.
65399         (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): New macros.
65400         (FUNC): Use them.
65401         * lib/vasnprintf.c: Include fpucw.h.
65402         (VASNPRINTF): Invoke BEGIN/END_LONG_DOUBLE_ROUNDING around the
65403         'long double' calculations.
65404         * tests/test-frexpl.c: Include fpucw.h.
65405         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING.
65406         * tests/test-printf-frexpl.c: Include fpucw.h.
65407         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING.
65408         * modules/frexpl (Depends-on): Add fpucw.
65409         * modules/printf-frexpl (Depends-on): Likewise.
65410         * modules/fprintf-posix (Depends-on): Likewise.
65411         * modules/snprintf-posix (Depends-on): Likewise.
65412         * modules/sprintf-posix (Depends-on): Likewise.
65413         * modules/vasnprintf-posix (Depends-on): Likewise.
65414         * modules/vasprintf-posix (Depends-on): Likewise.
65415         * modules/vfprintf-posix (Depends-on): Likewise.
65416         * modules/vsnprintf-posix (Depends-on): Likewise.
65417         * modules/vsprintf-posix (Depends-on): Likewise.
65418         * modules/frexpl-tests (Depends-on): Likewise.
65419         * modules/printf-frexpl-tests (Depends-on): Likewise.
65420
65421 2007-03-24  Bruno Haible  <bruno@clisp.org>
65422
65423         * lib/float+.h: New file.
65424         * lib/isnan.c: Include float+.h.
65425         (SIZE): New macro.
65426         (FUNC): Compare only SIZE bytes of the value.
65427         * lib/vasnprintf.c: Include float+.h.
65428         (VASNPRINTF): When comparing agains +0.0L or +0.0, compare only
65429         SIZEOF_LDBL or SIZEOF_DBL bytes.
65430         * modules/isnan-nolibm (Files): Add lib/float+.h.
65431         * modules/isnanl-nolibm (Files): Add lib/float+.h.
65432         * modules/isnanl (Files): Add lib/float+.h.
65433         * modules/vasnprintf (Files): Add lib/float+.h.
65434
65435 2007-03-24  Bruno Haible  <bruno@clisp.org>
65436
65437         * lib/vasnprintf.c [!HAVE_LONG_DOUBLE]: Include printf-frexp.h. Don't
65438         include isnanl-nolibm.h.
65439
65440 2007-03-24  Bruno Haible  <bruno@clisp.org>
65441
65442         * tests/test-read-file.c (main): Don't produce spurious output for
65443         expected situations. Make the test fail if it encountered unexpected
65444         results.
65445
65446 2007-03-24  Bruno Haible  <bruno@clisp.org>
65447
65448         * m4/locale-fr.m4 (gt_LOCALE_FR): Remove the special-casing of NetBSD,
65449         since its fr_FR.ISO8859-1 locale wouldn't pass the tests.
65450
65451 2007-03-24  Bruno Haible  <bruno@clisp.org>
65452
65453         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Fix last change.
65454
65455 2007-03-24  Bruno Haible  <bruno@clisp.org>
65456
65457         * modules/unistr/base (Depends-on): Remove utf8-ucs4-unsafe,
65458         utf16-ucs4-unsafe, utf8-ucs4, utf16-ucs4, ucs4-utf8, ucs4-utf16.
65459
65460         * modules/unistr/u8-mbtouc: Add source files from module utf8-ucs4.
65461         * modules/utf8-ucs4: Turn into a symbolic link to module
65462         unistr/u8-mbtouc.
65463
65464         * modules/unistr/u8-mbtouc-unsafe: Add source files from module
65465         utf8-ucs4-unsafe.
65466         * modules/utf8-ucs4-unsafe: Turn into a symbolic link to module
65467         unistr/u8-mbtouc-unsafe.
65468
65469         * modules/unistr/u16-mbtouc: Add source files from module utf16-ucs4.
65470         * modules/utf16-ucs4: Turn into a symbolic link to module
65471         unistr/u16-mbtouc.
65472
65473         * modules/unistr/u16-mbtouc-unsafe: Add source files from module
65474         utf16-ucs4-unsafe.
65475         * modules/utf16-ucs4-unsafe: Turn into a symbolic link to module
65476         unistr/u16-mbtouc-unsafe.
65477
65478         * modules/unistr/u8-uctomb: Add source files from module utf4-utf8.
65479         * modules/ucs4-utf8: Turn into a symbolic link to module
65480         unistr/u8-ubtomb.
65481
65482         * modules/unistr/u16-uctomb: Add source files from module utf4-utf16.
65483         * modules/ucs4-utf16: Turn into a symbolic link to module
65484         unistr/u16-ubtomb.
65485
65486 2007-03-24  Bruno Haible  <bruno@clisp.org>
65487
65488         * lib/unistr/u8-mbtouc-aux.c: Renamed from lib/unistr/utf8-ucs4.c.
65489         Enable the function only if HAVE_INLINE.
65490         * lib/unistr/u8-mbtouc-unsafe-aux.c: Renamed from
65491         lib/unistr/utf8-ucs4-unsafe.c. Enable the function only if HAVE_INLINE.
65492         * lib/unistr/u16-mbtouc-aux.c: Renamed from lib/unistr/utf16-ucs4.c.
65493         Enable the function only if HAVE_INLINE.
65494         * lib/unistr/u16-mbtouc-unsafe-aux.c: Renamed from
65495         lib/unistr/utf16-ucs4-unsafe.c. Enable the function only if HAVE_INLINE.
65496         * lib/unistr/u8-uctomb-aux.c: Renamed from lib/unistr/ucs4-utf8.c.
65497         Enable the function only if HAVE_INLINE.
65498         * lib/unistr/u16-uctomb-aux.c: Renamed from lib/unistr/ucs4-utf16.c.
65499         Enable the function only if HAVE_INLINE.
65500         * modules/utf8-ucs4: Update.
65501         * modules/utf8-ucs4-unsafe: Update.
65502         * modules/utf16-ucs4: Update.
65503         * modules/utf16-ucs4-unsafe: Update.
65504         * modules/ucs4-utf8: Update.
65505         * modules/ucs4-utf16: Update.
65506
65507 2007-03-24  Bruno Haible  <bruno@clisp.org>
65508
65509         * lib/utf8-ucs4.h: Remove file.
65510         * lib/utf8-ucs4-unsafe.h: Remove file.
65511         * lib/utf16-ucs4.h: Remove file.
65512         * lib/utf16-ucs4-unsafe.h: Remove file.
65513         * lib/ucs4-utf8.h: Remove file.
65514         * lib/ucs4-utf16.h: Remove file.
65515         * lib/unistr.h: Include their previous contents.
65516         * m4/utf-ucs4.m4: Remove file.
65517         * m4/ucs4-utf.m4: Remove file.
65518         * modules/utf8-ucs4 (Files): Remove lib/utf8-ucs4.h.
65519         (Depends-on): Add unistr/base.
65520         (configure.ac): Remove gl_UTF_UCS4.
65521         (Makefile.am): Update.
65522         (Include): Change to unistr.h.
65523         * modules/utf8-ucs4-unsafe (Files): Remove lib/utf8-ucs4-unsafe.h.
65524         (Depends-on): Add unistr/base.
65525         (configure.ac): Remove gl_UTF_UCS4.
65526         (Makefile.am): Update.
65527         (Include): Change to unistr.h.
65528         * modules/utf16-ucs4 (Files): Remove lib/utf16-ucs4.h.
65529         (Depends-on): Add unistr/base.
65530         (configure.ac): Remove gl_UTF_UCS4.
65531         (Makefile.am): Update.
65532         (Include): Change to unistr.h.
65533         * modules/utf16-ucs4-unsafe (Files): Remove lib/utf16-ucs4-unsafe.h.
65534         (Depends-on): Add unistr/base.
65535         (configure.ac): Remove gl_UTF_UCS4.
65536         (Makefile.am): Update.
65537         (Include): Change to unistr.h.
65538         * modules/ucs4-utf8 (Files): Remove lib/ucs4-utf8.h.
65539         (Depends-on): Add unistr/base.
65540         (configure.ac): Remove gl_UCS4_UTF.
65541         (Makefile.am): Update.
65542         (Include): Change to unistr.h.
65543         * modules/ucs4-utf16 (Files): Remove lib/ucs4-utf16.h.
65544         (Depends-on): Add unistr/base.
65545         (configure.ac): Remove gl_UCS4_UTF.
65546         (Makefile.am): Update.
65547         (Include): Change to unistr.h.
65548         * lib/unistr/utf8-ucs4.c: Include unistr.h instead of utf8-ucs4.h.
65549         * lib/unistr/utf8-ucs4-unsafe.c: Include unistr.h instead of
65550         utf8-ucs4-unsafe.h.
65551         * lib/unistr/utf16-ucs4.c: Include unistr.h instead of utf16-ucs4.h.
65552         * lib/unistr/utf16-ucs4-unsafe.c: Include unistr.h instead of
65553         utf16-ucs4-unsafe.h.
65554         * lib/unistr/ucs4-utf8.c: Include unistr.h instead of ucs4-utf8.h.
65555         * lib/unistr/ucs4-utf16.c: Include unistr.h instead of ucs4-utf16.h.
65556         * lib/unistr/u8-chr.c: Don't include ucs4-utf8.h.
65557         * lib/unistr/u8-strchr.c: Likewise.
65558         * lib/unistr/u8-strrchr.c: Likewise.
65559         * lib/unistr/u16-chr.c: Don't include ucs4-utf16.h.
65560         * lib/unistr/u16-strchr.c: Likewise.
65561         * lib/unistr/u16-strrchr.c: Likewise.
65562         * lib/striconveh.c: Update.
65563         * lib/linebreak.c: Update.
65564
65565 2007-03-24  Bruno Haible  <bruno@clisp.org>
65566
65567         * lib/argp-help.c (fill_in_uparams, canon_doc_option): Cast the
65568         arguments of isspace, isalpha, isalnum, isdigit to 'unsigned char'.
65569
65570 2007-03-22  Bruno Haible  <bruno@clisp.org>
65571
65572         * lib/strptime.c (__strptime_internal): Use ANSI C syntax.
65573
65574 2007-03-23  Paul Eggert  <eggert@cs.ucla.edu>
65575
65576         * MODULES.html.sh (File system functions): New module write-any-file.
65577         * modules/write-any-file, lib/write-any-file.c, lib/write-any-file.h:
65578         * m4/write-any-file.m4: New files.
65579
65580 2007-03-23  Eric Blake  <ebb9@byu.net>
65581
65582         * gnulib-tool: Rearrange space-tab sequences, since some editors
65583         like to eat them.
65584
65585 2007-03-23  Eric Blake  <ebb9@byu.net>
65586
65587         * lib/version-etc.c (version_etc_va): Update license wording to
65588         be more concise.  Recommended by Richard Stallman.
65589
65590 2007-03-22  Bruno Haible  <bruno@clisp.org>
65591
65592         * lib/poll.c (MSG_PEEK): New fallback definition.
65593
65594 2007-03-22  Bruno Haible  <bruno@clisp.org>
65595
65596         * modules/sys_socket-tests (configure.ac): Check for shutdown function.
65597         * tests/test-sys_socket.c (a): Test only if shutdown() exists.
65598         (main): Update.
65599         Fixes a compilation error on BeOS.
65600
65601 2007-03-22  Bruno Haible  <bruno@clisp.org>
65602
65603         * modules/frexpl-tests: New file.
65604         * tests/test-frexpl.c: New file.
65605
65606         * modules/frexpl: New file.
65607         * m4/frexpl.m4: New file.
65608         * modules/math (Makefile.am): Also substitute GNULIB_FREXPL into math.h.
65609         * lib/math_.h (frexpl): Test GNULIB_FREXPL instead of GNULIB_MATHL.
65610         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FREXPL.
65611         * modules/mathl (Files): Remove lib/frexpl.c, lib/frexp.c.
65612         (Depends-on): Add frexpl. Remove isnanl-nolibm.
65613         * m4/mathl.m4 (gl_FUNC_LONG_DOUBLE_MATH): Don't test for frexpl.
65614
65615 2007-03-22  Bruno Haible  <bruno@clisp.org>
65616
65617         * lib/frexpl.c: Share code with lib/frexp.c.
65618         * modules/mathl (Files): Add lib/frexp.c.
65619         (Depends-on): Add isnanl-nolibm.
65620
65621 2007-03-22  Bruno Haible  <bruno@clisp.org>
65622
65623         * modules/printf-frexp (Files): Add m4/frexp.m4.
65624         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Define HAVE_FREXP_IN_LIBC
65625         only if the found frexp function actually works.
65626
65627 2007-03-22  Bruno Haible  <bruno@clisp.org>
65628
65629         * lib/frexp.c: Remove older implementation that uses divisions.
65630
65631 2007-03-21  Bruno Haible  <bruno@clisp.org>
65632
65633         * modules/frexp-tests: New file.
65634         * tests/test-frexp.c: New file.
65635
65636         * modules/frexp: New file.
65637         * lib/frexp.c: New file.
65638         * m4/frexp.m4: New file.
65639         * lib/math_.h (frexp): New declaration.
65640         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Also initialize GNULIB_FREXP and
65641         REPLACE_FREXP.
65642         * modules/math (math.h): Also substitute GNULIB_FREXP, REPLACE_FREXP.
65643
65644 2007-03-21  Bruno Haible  <bruno@clisp.org>
65645
65646         * modules/isnanl-tests: New file.
65647         * tests/test-isnanl.c: New file.
65648
65649         * modules/isnanl: New file.
65650         * lib/isnanl.h: New file.
65651         * m4/isnanl.m4 (gl_FUNC_ISNANL): New macro.
65652         (gl_FUNC_ISNANL_NO_LIBM): Invoke gl_HAVE_ISNANL_NO_LIBM,
65653         gl_FUNC_ISNANL_WORKS.
65654         (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM, gl_FUNC_ISNANL_WORKS):
65655         New macros.
65656
65657 2007-03-21  Bruno Haible  <bruno@clisp.org>
65658
65659         * modules/isnanl-nolibm (Files): Add lib/isnanl-nolibm.h, remove
65660         lib/isnanl.h.
65661         (Include): Update.
65662         * lib/isnanl-nolibm.h: Renamed from lib/isnanl.h.
65663         * lib/vasnprintf.c: Update.
65664         * modules/isnanl-nolibm-tests (Files): Add tests/test-isnanl-nolibm.c,
65665         tests/test-isnanl.h, remove tests/test-isnanl.c.
65666         (Makefile.am): Update.
65667         * tests/test-isnanl-nolibm.c: New file.
65668         * tests/test-isnanl.h: New file.
65669         * tests/test-isnanl.c: Remove file.
65670
65671 2007-03-21  Jim Meyering  <jim@meyering.net>
65672
65673         When trying to open ".", treat ESTALE like EACCES.
65674         * lib/savewd.c (savewd_save): Resort to forking not just upon
65675         failure with EACCES, but also when errno is ESTALE.
65676
65677 2007-03-20  Bruno Haible  <bruno@clisp.org>
65678
65679         * lib/string_.h (strndup): Enable declaration also if HAVE_STRNDUP.
65680         Needed on AIX 5.1. Reported by Matthew Woehlke.
65681
65682 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
65683
65684         Suggestions by Bruno Haible:
65685         * lib/acl-internal.h: Include "gettext.h" rather than rolling
65686         our own.
65687         (ACL_NOT_WELL_SUPPORTED): Parenthesize arg when used.
65688         * modules/acl (Depends-on): Add gettext.
65689
65690 2007-03-19  Bruno Haible  <bruno@clisp.org>
65691
65692         * modules/iconvme: Remove file.
65693         * lib/iconvme.h: Remove file.
65694         * lib/iconvme.c: Remove file.
65695         * m4/iconvme.m4: Remove file.
65696
65697 2007-03-19  Bruno Haible  <bruno@clisp.org>
65698
65699         * doc/relocatable-maint.texi: Break long shell script line.
65700         Suggested by Thien-Thi Nguyen <ttn@gnuvola.org>.
65701
65702 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
65703
65704         Add limited support for Solaris 10 ZFS-style ACLs: just enough to
65705         handle file_has_acl.
65706         * lib/acl-internal.h, lib/acl_entries.c, lib/file-has-acl.c: New files.
65707         * lib/acl.c: Move header inclusions and related macro defns into
65708         lib/acl-internal.h.
65709         (S_ISLNK): Remove defn, since that's now done for us.
65710         (file_has_acl): Move to lib/file-has-acl.c.
65711         Call acl_trivial if available.  This is the crucial part of the fix.
65712         (acl_entries): Move to lib/acl_entries.c.  Now extern, since it's
65713         shared within the library.  Rewrite a bit, partly to make it compatible
65714         with the GNU coding style.
65715         * m4/acl.m4 (AC_FUNC_ACL): Add AC_LIBOBJ([file-has-acl]).
65716         Remove unnecessary double-quotes.
65717         Don't test for acl_to_text; the build will catch that.
65718         Replace acl_entries if it doesn't exist and it is needed.
65719         Check for -lsec and acl_trivial (as used on Solaris 10).
65720         * modules/acl (Files): Add lib/acl-internal.h, lib/acl_entries.c,
65721         lib/file-has-acl.c.
65722         (Depends-on): Add sys_stat, for S_ISLNK.
65723
65724 2007-03-19  Ben Pfaff  <blp@gnu.org>
65725
65726         * doc/gnulib.texi: Fix typos.
65727         Suggested by Thien-Thi Nguyen <ttn@gnuvola.org>.
65728
65729 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
65730
65731         * lib/getcwd.c (__getcwd): Remove redundant comparison of buf to NULL.
65732         If size is zero here, buf must be zero.
65733
65734 2007-03-19  Simon Josefsson  <simon@josefsson.org>
65735
65736         * des.c: Remove weak_keys_chksum.  Reported by Bruno Haible
65737         <bruno@clisp.org>.
65738
65739 2007-03-18  Bruno Haible  <bruno@clisp.org>
65740
65741         * lib/vasnprintf.c (VASNPRINTF): Undo first part of last patch.
65742         Suggested by Eric Blake.
65743
65744 2007-03-18  Ben Pfaff  <blp@gnu.org>
65745
65746         * doc/relocatable.texi: Recommend using as prefix a directory
65747         that does not exist and will never be created.  Based on
65748         discussion with Bruno Haible, Ralf Wildenhues, Matthew Woehlke,
65749         and others.
65750
65751 2007-03-17  Bruno Haible  <bruno@clisp.org>
65752
65753         * lib/fchownat.c: Include lchown.h.
65754
65755 2007-03-17  Bruno Haible  <bruno@clisp.org>
65756
65757         Fix endless loop when the given allocated size was > INT_MAX.
65758         * lib/vasnprintf.c (EOVERFLOW): New fallback definition.
65759         (VASNPRINTF): Fail with EOVERFLOW when the given allocated size is
65760         larger than INT_MAX, or when it grow to a value larger than INT_MAX.
65761         * lib/vsprintf.c (vsprintf): Don't pass a size > INT_MAX to vasnprintf.
65762         * lib/sprintf.c (sprintf): Likewise.
65763
65764 2007-03-17  Bruno Haible  <bruno@clisp.org>
65765
65766         * tests/test-argp-2.sh (func_compare): Output a context diff.
65767
65768 2007-03-17  Bruno Haible  <bruno@clisp.org>
65769
65770         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Check also the
65771         locale's decimal-point character.
65772
65773 2007-03-17  Bruno Haible  <bruno@clisp.org>
65774
65775         * lib/vasnprintf.c (VASNPRINTF): Clear out the memory used for arg_mem
65776         before comparing it. Needed because on some platforms (e.g. x86) a
65777         'long double' occupies less bytes than sizeof (long double).
65778
65779 2007-03-17  Bruno Haible  <bruno@clisp.org>
65780
65781         * tests/test-crc.c (main): Make printf statements 64-bit clean.
65782         * tests/test-gc-pbkdf2-sha1.c (main): Likewise.
65783         * tests/test-getaddrinfo.c (simple): Likewise.
65784         * tests/test-read-file.c (main): Likewise.
65785
65786 2007-03-17  Bruno Haible  <bruno@clisp.org>
65787
65788         * tests/test-dirname.c (main): Make printf statements 64-bit clean.
65789
65790 2007-03-17  Bruno Haible  <bruno@clisp.org>
65791
65792         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Remove
65793         unused variable.
65794
65795 2007-03-17  Bruno Haible  <bruno@clisp.org>
65796
65797         * tests/test-c-strcasecmp.c: Include c-strcase.h.
65798         * tests/test-c-strncasecmp.c: Likewise.
65799
65800 2007-03-17  Bruno Haible  <bruno@clisp.org>
65801
65802         * modules/stdlib (Depends-on): Add unistd.
65803         * lib/stdlib_.h: Include <unistd.h> if mkstemp is desired.
65804         Needed for MacOS X 10.3.
65805
65806 2007-03-17  Bruno Haible  <bruno@clisp.org>
65807
65808         * lib/unistr/u-strdup.h: Include <stdlib.h>.
65809
65810 2007-03-17  Bruno Haible  <bruno@clisp.org>
65811
65812         * lib/unistr/u-cpy-alloc.h: Include <stdlib.h>.
65813
65814 2007-03-17  Bruno Haible  <bruno@clisp.org>
65815
65816         * gnulib-tool (func_import): Update .cvsignore and .gitignore files
65817         to reflect files copied from gnulib (with or without modifications).
65818         Suggested by Jim Meyering.
65819
65820 2007-03-17  Eric Blake  <ebb9@byu.net>
65821
65822         * NEWS: Document stdlib change from 2007-02-18.
65823
65824 2007-03-17  Jim Meyering  <jim@meyering.net>
65825
65826         Detect use of AC_CONFIG_AUX_DIR also when its argument is quoted.
65827         * build-aux/bootstrap: Put ""s around use of $build_aux, in case
65828         someone uses a name containing shell meta-characters.
65829         Reported by Alfred M. Szmidt.
65830
65831         * build-aux/bootstrap: Don't use \> in grep regexp.  For HP-UX.
65832
65833 2007-03-16  Alfred M. Szmidt  <ams@gnu.org>
65834
65835         * build-aux/bootstrap (with_gettext): New variable.  Run autopoint
65836         and copy gettext configuration files only if configure.ac contains
65837         a use of AM_GNU_GETTEXT_VERSION.
65838
65839 2007-03-16  Alfred M. Szmidt  <ams@gnu.org>
65840
65841         * build-aux/bootstrap (gnulib_name): New variable.
65842         (gnulib_tool_options): Use it.
65843
65844 2007-03-13  Simon Josefsson  <simon@josefsson.org>
65845
65846         * tests/test-des.c: Use new namespace.
65847
65848 2007-03-15  Bruno Haible  <bruno@clisp.org>
65849
65850         * lib/dummy.c (gl_dummy_symbol): Renamed from 'dummy'.
65851         Reported by James Youngman <jay@gnu.org>.
65852
65853 2007-03-15  Bruno Haible  <bruno@clisp.org>
65854
65855         * lib/glob.c (glob): Add 'restrict' so that prototype matches the
65856         declared prototype. Needed with cc on OSF/1 5.1.
65857
65858 2007-03-15  Bruno Haible  <bruno@clisp.org>
65859
65860         * lib/gl_list.h (gl_listelement_dispose_fn): New type.
65861         (gl_list_create_empty, gl_list_create): Add dispose_fn argument.
65862         (struct gl_list_implementation): Add dispose_fn argument to the
65863         'create_empty', 'create' methods.
65864         (struct gl_list_impl_base): Add field 'dispose_fn'.
65865         * lib/gl_list.c (gl_list_create_empty, gl_list_create): Add dispose_fn
65866         argument.
65867         * lib/gl_array_list.c (gl_array_create_empty, gl_array_create): Add
65868         dispose_fn argument.
65869         (gl_array_remove_node, gl_array_remove_at, gl_array_list_free): Call
65870         dispose_fn on the dropped values.
65871         * lib/gl_carray_list.c (gl_carray_create_empty, gl_carray_create): Add
65872         dispose_fn argument.
65873         (gl_carray_remove_at, gl_carray_list_free): Call dispose_fn on the
65874         dropped values.
65875         * lib/gl_anyavltree_list2.h (gl_tree_create): Add dispose_fn argument.
65876         (gl_tree_remove_node): Call dispose_fn on the dropped value.
65877         * lib/gl_anyrbtree_list2.h (gl_tree_create): Add dispose_fn argument.
65878         (gl_tree_remove_node): Call dispose_fn on the dropped value.
65879         * lib/gl_anytree_list2.h (gl_tree_create_empty): Add dispose_fn
65880         argument.
65881         (gl_tree_list_free): Call dispose_fn on the dropped values.
65882         * lib/gl_anytreehash_list2.h (gl_tree_list_free): Call dispose_fn on
65883         the dropped values.
65884         * lib/gl_anylinked_list2.h (gl_linked_create_empty, gl_linked_create):
65885         Add dispose_fn argument.
65886         (gl_linked_remove_node, gl_linked_remove_at, gl_linked_list_free):
65887         Call dispose_fn on the dropped values.
65888         * lib/gl_sublist.c (gl_sublist_create_empty, gl_sublist_create_fill):
65889         Add dispose_fn argument.
65890         (gl_sublist_create): Initialize the 'dispose_fn' field.
65891         * lib/clean-temp.c (create_temp_dir, register_fd): Update.
65892         * tests/test-array_list.c (main): Update.
65893         * tests/test-carray_list.c (main): Update.
65894         * tests/test-avltree_list.c (main): Update.
65895         * tests/test-rbtree_list.c (main): Update.
65896         * tests/test-avltreehash_list.c (main): Update.
65897         * tests/test-rbtreehash_list.c (main): Update.
65898         * tests/test-linked_list.c (main): Update.
65899         * tests/test-linkedhash_list.c (main): Update.
65900         * tests/test-array_oset.c (main): Update.
65901
65902 2007-03-15  Bruno Haible  <bruno@clisp.org>
65903
65904         * lib/gl_oset.h (gl_setelement_dispose_fn): New type.
65905         (gl_oset_create_empty): Add dispose_fn argument.
65906         (struct gl_oset_implementation): Add dispose_fn argument to
65907         'create_empty' method.
65908         (struct gl_oset_impl_base): Add dispose_fn field.
65909         * lib/gl_oset.c (gl_oset_create_empty): Add dispose_fn argument.
65910         * lib/gl_array_oset.c (gl_array_create_empty): Add dispose_fn argument.
65911         (gl_array_remove_at, gl_array_free): Call dispose_fn on the dropped
65912         values.
65913         * lib/gl_anytree_oset.h (gl_tree_create_empty): Add dispose_fn argument.
65914         (gl_tree_oset_free): Call dispose_fn on the dropped values.
65915         * lib/gl_avltree_oset.c (gl_tree_remove_node): Call dispose_fn on the
65916         dropped value.
65917         * lib/gl_rbtree_oset.c (gl_tree_remove_node): Call dispose_fn on the
65918         dropped value.
65919         * tests/test-array_oset.c (main): Update.
65920         * tests/test-avltree_oset.c (main): Update.
65921         * tests/test-rbtree_oset.c (main): Update.
65922         * lib/gl_anytreehash_list1.h (add_to_bucket): Update.
65923
65924 2007-03-13  Bruno Haible  <bruno@clisp.org>
65925
65926         * tests/test-stdbool.c (i): Update after last patch.
65927
65928 2007-03-12  Bruno Haible  <bruno@clisp.org>
65929
65930         * lib/quotearg.c: Include <wctype.h> early, before the definition of
65931         the iswprint macro. Needed on Solaris 2.5.1.
65932
65933 2007-03-12  Bruno Haible  <bruno@clisp.org>
65934
65935         * tests/test-printf-frexp.c (main): Declare x as volatile.
65936
65937 2007-03-12  Simon Josefsson  <simon@josefsson.org>
65938
65939         * doc/gnulib.texi (Build robot for gnulib): New section.
65940
65941 2007-03-12  Jim Meyering  <jim@meyering.net>
65942
65943         * build-aux/bootstrap: New file.
65944         * build-aux/bootstrap.conf: New file, from coreutils.
65945
65946 2007-03-11  Bruno Haible  <bruno@clisp.org>
65947
65948         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Require AC_C_INLINE.
65949
65950 2007-03-12  Simon Josefsson  <simon@josefsson.org>
65951
65952         * lib/des.h, lib/des.c, lib/gc-gnulib.c: Use gl_ namespace, to
65953         avoid collisions with 'des_setkey'.  Reported by Bruno Haible
65954         <bruno@clisp.org>.  Also change 'tripledes_' to '3des_'.
65955
65956 2007-03-11  Bruno Haible  <bruno@clisp.org>
65957
65958         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): If the test program fails to
65959         compile, set LOCALE_TR_UTF8 to 'none' instead of empty.
65960
65961 2007-03-11  Bruno Haible  <bruno@clisp.org>
65962
65963         * lib/stdint_.h (INT64_MIN, INTMAX_MIN): Avoid using the ~INT..._MAX
65964         formula. Needed for SunPRO C 5.0.
65965
65966 2007-03-11  Bruno Haible  <bruno@clisp.org>
65967
65968         * modules/long-options (Depends-on): Add getopt.
65969
65970 2007-03-11  Bruno Haible  <bruno@clisp.org>
65971
65972         * modules/modechange (Depends-on): Add stdbool.
65973
65974 2007-03-11  Bruno Haible  <bruno@clisp.org>
65975
65976         * modules/i-ring (Depends-on): Add stdbool.
65977
65978 2007-03-11  Bruno Haible  <bruno@clisp.org>
65979
65980         * modules/gc-des (Depends-on): Add stdbool.
65981
65982 2007-03-11  Bruno Haible  <bruno@clisp.org>
65983
65984         * m4/mktime.m4 (gl_PREREQ_MKTIME): Require AC_C_INLINE.
65985
65986 2007-03-11  Bruno Haible  <bruno@clisp.org>
65987
65988         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Require AC_C_RESTRICT.
65989
65990 2007-03-11  Bruno Haible  <bruno@clisp.org>
65991
65992         * lib/unistr/u32-mbtouc-unsafe.c (u32_mbtouc_unsafe): Fix syntax error.
65993
65994 2007-03-11  Bruno Haible  <bruno@clisp.org>
65995
65996         * lib/vasnprintf.c (sprintf): Undefine.
65997
65998 2007-03-11  Bruno Haible  <bruno@clisp.org>
65999
66000         * lib/isnan.c (rpl_isnan, rpl_isnanl): Work around bug regarding
66001         initializers in SunPRO C and Compaq C compilers.
66002
66003 2007-03-11  Bruno Haible  <bruno@clisp.org>
66004
66005         * lib/gl_array_oset.c (gl_array_iterator_next): Make pointer
66006         decrementing code ANSI C compliant.
66007
66008 2007-03-11  Bruno Haible  <bruno@clisp.org>
66009
66010         * lib/dummy.c [__sun]: Define a dummy variable, not just a typedef.
66011         Needed for Solaris 2.5.1 ranlib and SunPRO C 5.0.
66012
66013 2007-03-11  Bruno Haible  <bruno@clisp.org>
66014
66015         * tests/test-stdbool.c (s, d, e, xlcbug): Disable checks that gnulib's
66016         <stdbool.h> substitute doesn't pass.
66017
66018 2007-03-11  Bruno Haible  <bruno@clisp.org>
66019
66020         * lib/vasnprintf.c (snprintf): Undefine. Avoids an endless recursion.
66021
66022 2007-03-11  Bruno Haible  <bruno@clisp.org>
66023
66024         * gnulib-tool (func_create_megatestdir): Create also an autobuild
66025         script, for submission to autobuild.josefsson.org.
66026
66027 2007-03-10  Bruno Haible  <bruno@clisp.org>
66028
66029         * modules/canonicalize-lgpl-tests: New file.
66030         * tests/test-canonicalize-lgpl.sh: New file.
66031         * tests/test-canonicalize-lgpl.c: New file.
66032
66033         * modules/c-strcase-tests: New file.
66034         * tests/test-c-strcase.sh: New file.
66035         * tests/test-c-strcasecmp.c: New file.
66036         * tests/test-c-strncasecmp.c: New file.
66037
66038         * modules/atexit-tests: New file.
66039         * tests/test-atexit.sh: New file.
66040         * tests/test-atexit.c: New file.
66041
66042 2007-03-10  Bruno Haible  <bruno@clisp.org>
66043
66044         * tests/test-binary-io.sh: Use temporary filenames that are not so
66045         likely to clash with those of other tests (in a parallel make).
66046         * tests/test-binary-io.c: Likewise.
66047
66048 2007-03-10  Bruno Haible  <bruno@clisp.org>
66049
66050         * lib/fseterr.c (fseterr): Port to Solaris/SPARC64. Deactivate the
66051         fallback; use #error instead.
66052         Suggested by Simon Josefsson.
66053
66054 2007-03-10  Bruno Haible  <bruno@clisp.org>
66055
66056         * gnulib-tool (func_create_testdir): Treat MOSTLYCLEANFILES like
66057         CLEANFILES. Put spaces in each line of $cleaned_files, not only the
66058         first and the last.
66059
66060 2007-03-10  Bruno Haible  <bruno@clisp.org>
66061
66062         * lib/stdint_.h (uint_least64_t): Fix typo in last patch.
66063
66064 2007-03-10  Bruno Haible  <bruno@clisp.org>
66065
66066         * modules/snprintf-posix-tests (EXTRA_DIST): New variable. Needed for
66067         "make distcheck".
66068         * modules/sprintf-posix-tests (EXTRA_DIST): Likewise.
66069         * modules/vsnprintf-posix-tests (EXTRA_DIST): Likewise.
66070         * modules/vsprintf-posix-tests (EXTRA_DIST): Likewise.
66071
66072 2007-03-10  Bruno Haible  <bruno@clisp.org>
66073
66074         * modules/allocsa-tests (test_allocsa_SOURCES): Remove redundant
66075         variable.
66076         * modules/dirname-tests (test_dirname_SOURCES): Remove redundant
66077         variable.
66078
66079 2007-03-09  Eric Blake  <ebb9@byu.net>
66080         and Matthew Woehlke  <mw_triad@users.sourceforge.net>  (tiny change)
66081
66082         * lib/stdint_.h (int64_t, uint64_t): Don't undefine if 64-bit
66083         types are not being provided by gnulib.
66084         (GL_INT64_T, GL_UINT64_T): New witnesses of whether gnulib 64-bit
66085         types are supported.
66086
66087 2007-03-10  Bruno Haible  <bruno@clisp.org>
66088
66089         * lib/stdio_.h (__attribute__): New macro.
66090         (fprintf, vfprintf, printf, vprintf, snprintf, vsnprintf, sprintf,
66091         vsprintf): Specify __attribute__ __format__ for GCC.
66092         Suggested by Eric Blake.
66093
66094 2007-03-09  Bruno Haible  <bruno@clisp.org>
66095
66096         * modules/printf-posix-tests: New file.
66097         * tests/test-printf-posix.sh: New file.
66098         * tests/test-printf-posix.c: New file.
66099
66100         * modules/printf-posix: New file.
66101         * lib/printf.c: New file.
66102         * m4/printf-posix-rpl.m4: New file.
66103         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_PRINTF_POSIX,
66104         REPLACE_PRINTF.
66105         * lib/stdio_.h (printf): New declaration.
66106         (format, __format__, ____printf____, ____scanf____, ____strftime____,
66107         ____strfmon____): New macros.
66108         * modules/stdio (Makefile.am): Substitute also GNULIB_PRINTF_POSIX,
66109         REPLACE_PRINTF.
66110
66111 2007-03-09  Bruno Haible  <bruno@clisp.org>
66112
66113         * tests/test-vasnprintf-posix2.sh: New file.
66114         * tests/test-vasnprintf-posix2.c: New file.
66115         * modules/vasnprintf-posix-tests (Files): Add them and m4/locale-fr.m4.
66116         (configure.ac): Invoke gt_LOCALE_FR and gt_LOCALE_FR_UTF8.
66117         (Makefile.am): Activate test-vasnprintf-posix2.sh.
66118
66119         * lib/vasnprintf.c (VASNPRINTF): For the 'a' and 'A' directives, use
66120         a locale dependent decimal point, rather than always '.'.
66121
66122 2007-03-09  Eric Blake  <ebb9@byu.net>
66123
66124         * lib/stdlib_.h (EXIT_FAILURE): GNU code expects this to be 1, in
66125         spite of platforms like Tandem/NSK that define it to -1.
66126
66127 2007-03-08  Bruno Haible  <bruno@clisp.org>
66128
66129         * modules/vprintf-posix-tests: New file.
66130         * tests/test-vprintf-posix.sh: New file.
66131         * tests/test-vprintf-posix.c: New file.
66132         * tests/test-printf-posix.h: New file.
66133
66134         * modules/vprintf-posix: New file.
66135         * lib/vprintf.c: New file.
66136         * m4/vprintf-posix.m4: New file.
66137         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VPRINTF_POSIX,
66138         REPLACE_VPRINTF.
66139         * lib/stdio_.h (vprintf): New declaration.
66140         * modules/stdio (Makefile.am): Substitute also GNULIB_VPRINTF_POSIX,
66141         REPLACE_VPRINTF.
66142
66143 2007-03-08  Bruno Haible  <bruno@clisp.org>
66144
66145         * modules/fprintf-posix-tests: New file.
66146         * tests/test-fprintf-posix.sh: New file.
66147         * tests/test-fprintf-posix.c: New file.
66148
66149         * modules/fprintf-posix: New file.
66150         * lib/fprintf.c: New file.
66151         * m4/fprintf-posix.m4: New file.
66152         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FPRINTF_POSIX,
66153         REPLACE_FPRINTF.
66154         * lib/stdio_.h (fprintf): New declaration.
66155         * modules/stdio (Makefile.am): Substitute also GNULIB_FPRINTF_POSIX,
66156         REPLACE_FPRINTF.
66157
66158 2007-03-08  Bruno Haible  <bruno@clisp.org>
66159
66160         * modules/vfprintf-posix-tests: New file.
66161         * tests/test-vfprintf-posix.sh: New file.
66162         * tests/test-vfprintf-posix.c: New file.
66163         * tests/test-fprintf-posix.h: New file.
66164         * tests/test-fprintf-posix.out: New file.
66165
66166         * modules/vfprintf-posix: New file.
66167         * lib/vfprintf.c: New file.
66168         * m4/vfprintf-posix.m4: New file.
66169         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VFPRINTF_POSIX,
66170         REPLACE_VFPRINTF.
66171         * lib/stdio_.h (vfprintf): New declaration.
66172         * modules/stdio (Makefile.am): Substitute also GNULIB_VFPRINTF_POSIX,
66173         REPLACE_VFPRINTF.
66174
66175 2007-03-08  Bruno Haible  <bruno@clisp.org>
66176
66177         * lib/stdio_.h: Treat __need___FILE like __need_FILE.
66178
66179 2007-03-08  Bruno Haible  <bruno@clisp.org>
66180
66181         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Use 'case' statements
66182         instead of 'expr' invocations.
66183         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
66184         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
66185         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
66186         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
66187         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
66188         Suggested by Paul Eggert.
66189
66190 2007-03-08  Bruno Haible  <bruno@clisp.org>
66191
66192         * modules/fseterr-tests: New file.
66193         * tests/test-fseterr.c: New file.
66194
66195         * modules/fseterr: New file.
66196         * lib/fseterr.h: New file.
66197         * lib/fseterr.c: New file.
66198
66199 2007-03-08  Bruno Haible  <bruno@clisp.org>
66200
66201         * lib/fnmatch_.h: Convert tabs in the middle of lines to spaces.
66202         * lib/getopt_.h: Likewise.
66203         * lib/mbswidth.h: Likewise.
66204         * lib/setenv.h: Likewise.
66205         * lib/vasnprintf.h: Likewise.
66206         * lib/vasprintf.h: Likewise.
66207         * lib/verror.h: Likewise.
66208         * lib/xsetenv.h: Likewise.
66209         * lib/xvasprintf.h: Likewise.
66210
66211 2007-03-08  Jim Meyering  <jim@meyering.net>
66212
66213         * users.txt: Add parted.
66214
66215         * ChangeLog: Restore 1500 lines mistakenly removed from the end.
66216
66217 2007-03-07  Bruno Haible  <bruno@clisp.org>
66218
66219         * m4/printf.m4: Make the shell script snippets copy&pastable.
66220
66221 2007-03-02  Bruno Haible  <bruno@clisp.org>
66222
66223         * lib/netinet_in_.h: New file.
66224         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Test whether netinet/in.h
66225         is self-contained. Set ABSOLUTE_NETINET_IN_H, HAVE_NETINET_IN_H.
66226         * modules/netinet_in (Files): Add lib/netinet_in_.h.
66227         (Depends-on): Add absolute-header.
66228         (Makefile.am): Substitute ABSOLUTE_NETINET_IN_H, HAVE_NETINET_IN_H
66229         into netinet/in.h.
66230
66231 2007-03-03  Bruno Haible  <bruno@clisp.org>
66232
66233         * lib/sys_select_.h: New file.
66234         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SELECT): Test whether sys/select.h
66235         is self-contained. Set ABSOLUTE_SYS_SELECT_H, HAVE_SYS_SELECT_H.
66236         * modules/sys_select (Files): Add lib/sys_select_.h.
66237         (Depends-on): Add absolute-header.
66238         (Makefile.am): Substitute ABSOLUTE_SYS_SELECT_H, HAVE_SYS_SELECT_H
66239         into sys/select.h.
66240
66241 2007-03-02  Bruno Haible  <bruno@clisp.org>
66242
66243         * lib/socket_.h: If sys/socket.h exists, include that and <sys/types.h>
66244         before it. Turn HAVE_WINSOCK2_H and HAVE_WS2TCPIP_H into configute-time
66245         values.
66246         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Test also whether
66247         <sys/socket.h> is self-contained. Set ABSOLUTE_SYS_SOCKET_H,
66248         HAVE_SYS_SOCKET_H, HAVE_WINSOCK2_H, HAVE_WS2TCPIP_H.
66249         * modules/sys_socket (Depends-on): Add absolute-header.
66250         (Makefile.am): Substitute ABSOLUTE_SYS_SOCKET_H, HAVE_SYS_SOCKET_H,
66251         HAVE_WINSOCK2_H, HAVE_WS2TCPIP_H into sys/socket.h.
66252         (Include): Remove requirement of inclusion of <sys/types.h>.
66253
66254 2007-03-02  Bruno Haible  <bruno@clisp.org>
66255
66256         * lib/byteswap_.h (bswap_32): Fix formula.
66257
66258 2007-03-06  Bruno Haible  <bruno@clisp.org>
66259
66260         * modules/sprintf-posix-tests: New file.
66261         * tests/test-sprintf-posix.c: New file.
66262
66263         * modules/sprintf-posix: New file.
66264         * lib/sprintf.c: New file.
66265         * m4/sprintf-posix.m4: New file.
66266         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_SPRINTF_POSIX,
66267         REPLACE_SPRINTF.
66268         * lib/stdio_.h (sprintf): New declaration.
66269         * modules/stdio (Makefile.am): Substitute also GNULIB_SPRINTF_POSIX,
66270         REPLACE_SPRINTF.
66271
66272 2007-03-06  Bruno Haible  <bruno@clisp.org>
66273
66274         * modules/vsprintf-posix-tests: New file.
66275         * tests/test-vsprintf-posix.c: New file.
66276         * tests/test-sprintf-posix.h: New file.
66277
66278         * modules/vsprintf-posix: New file.
66279         * lib/vsprintf.c: New file.
66280         * m4/vsprintf-posix.m4: New file.
66281         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VSPRINTF_POSIX,
66282         REPLACE_VSPRINTF.
66283         * lib/stdio_.h (vsprintf): New declaration.
66284         * modules/stdio (Makefile.am): Substitute also GNULIB_VSPRINTF_POSIX,
66285         REPLACE_VSPRINTF.
66286
66287 2007-03-06  Bruno Haible  <bruno@clisp.org>
66288
66289         * modules/vsnprintf (Depend-on): Remove minmax.
66290
66291 2007-03-06  Bruno Haible  <bruno@clisp.org>
66292
66293         * modules/snprintf-posix-tests: New file.
66294         * tests/test-snprintf-posix.c: New file.
66295
66296         * modules/snprintf-posix: New file.
66297         * m4/snprintf-posix.m4: New file.
66298         * m4/snprintf.m4 (gl_REPLACE_SNPRINTF): New macro, extracted from
66299         gl_FUNC_SNPRINTF.
66300         (gl_FUNC_SNPRINTF): Invoke it.
66301         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also REPLACE_SNPRINTF.
66302         * lib/stdio_.h (snprintf): Define as a replacement if REPLACE_SNPRINTF
66303         is set.
66304         * modules/stdio (Makefile.am): Substitute also REPLACE_SNPRINTF.
66305
66306 2007-03-06  Bruno Haible  <bruno@clisp.org>
66307
66308         * modules/vsnprintf-posix-tests: New file.
66309         * tests/test-vsnprintf-posix.c: New file.
66310         * tests/test-snprintf-posix.h: New file.
66311
66312         * modules/vsnprintf-posix: New file.
66313         * m4/vsnprintf-posix.m4: New file.
66314         * m4/vsnprintf.m4 (gl_REPLACE_VSNPRINTF): New macro, extracted from
66315         gl_FUNC_VSNPRINTF.
66316         (gl_FUNC_VSNPRINTF): Invoke it.
66317         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also REPLACE_VSNPRINTF.
66318         * lib/stdio_.h (vsnprintf): Define as a replacement if
66319         REPLACE_VSNPRINTF is set.
66320         * modules/stdio (Makefile.am): Substitute also REPLACE_VSNPRINTF.
66321
66322 2007-03-06  Bruno Haible  <bruno@clisp.org>
66323
66324         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): Test for vasnprintf here.
66325         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): ... not here.
66326
66327 2007-03-06  Bruno Haible  <bruno@clisp.org>
66328
66329         * lib/math_.h (acosl): Declare also if HAVE_DECL_ACOSL is set.
66330         (asinl): Declare also if HAVE_DECL_ASINL is set.
66331         (atanl): Declare also if HAVE_DECL_ATANL is set.
66332         (ceill): Declare also if HAVE_DECL_CEILL is set.
66333         (cosl): Declare also if HAVE_DECL_COSL is set.
66334         (expl): Declare also if HAVE_DECL_EXPL is set.
66335         (floorl): Declare also if HAVE_DECL_FLOORL is set.
66336         (frexpl): Declare also if HAVE_DECL_FREXPL is set.
66337         (ldexpl): Declare also if HAVE_DECL_LDEXPL is set.
66338         (logl): Declare also if HAVE_DECL_LOGL is set.
66339         (sinl): Declare also if HAVE_DECL_SINL is set.
66340         (sqrtl): Declare also if HAVE_DECL_SQRTL is set.
66341         (tanl): Declare also if HAVE_DECL_TANL is set.
66342         * modules/math (Makefile.am): Substitute the values of HAVE_DECL_*.
66343         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Set HAVE_DECL_* to 1.
66344         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Fix tests for the
66345         declaration of frexpl, ldexpl.
66346         * modules/printf-frexpl (Depends-on): Add math.
66347         * lib/printf-frexp.c (frexpl, ldexpl): Undo last change.
66348
66349 2007-03-05  Bruno Haible  <bruno@clisp.org>
66350
66351         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Also test whether
66352         frexpl and ldexpl are declared.
66353         * lib/printf-frexp.c (frexpl, ldexpl): Provide fallback declarations.
66354
66355 2007-03-05  Bruno Haible  <bruno@clisp.org>
66356
66357         * gnulib-tool (func_get_automake_snippet): Don't synthesize an
66358         EXTRA_lib_SOURCES augmentation for the relocatable-prog-wrapper module.
66359
66360 2007-03-05  Bruno Haible  <bruno@clisp.org>
66361
66362         * lib/stdio_.h: Include <stddef.h>.
66363
66364 2007-03-05  Bruno Haible  <bruno@clisp.org>
66365
66366         * m4/printf.m4 (gl_SNPRINTF_DIRECTIVE_N): New macro.
66367
66368 2007-03-05  Bruno Haible  <bruno@clisp.org>
66369
66370         * m4/printf.m4: Update with info about OpenBSD 3.9, HP-UX 10.20,
66371         NetBSD 4, from Ralf Wildenhues.
66372
66373 2007-03-04  Bruno Haible  <bruno@clisp.org>
66374
66375         * lib/vasprintf.h: Update #if logic for the case when the functions
66376         exist but are overridden.
66377
66378 2007-03-04  Bruno Haible  <bruno@clisp.org>
66379
66380         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Exclude two buggy
66381         implementations: glibc-2.4 and MacOS X 10.3.
66382         * tests/test-vasnprintf-posix.c (test_function): Test also the case
66383         that exhibits the bugs in glibc-2.4 and MacOS X 10.3.
66384         * tests/test-vasprintf-posix.c (test_function): Likewise.
66385
66386 2007-03-04  Bruno Haible  <bruno@clisp.org>
66387
66388         * modules/vasprintf-posix-tests: New file.
66389         * tests/test-vasprintf-posix.c: New file.
66390
66391         * modules/vasprintf-posix: New file.
66392         * lib/vasprintf.h (asprintf, vasprintf): Rename if REPLACE_VASPRINTF is
66393         defined.
66394         * m4/vasprintf-posix.m4: New file.
66395         * m4/vasprintf.m4 (gl_REPLACE_VASPRINTF): New macro, extracted from
66396         gl_FUNC_VASPRINTF.
66397         (gl_FUNC_VASPRINTF): Invoke it.
66398         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): Define REPLACE_VASNPRINTF
66399         here.
66400         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Not here.
66401
66402 2007-03-04  Bruno Haible  <bruno@clisp.org>
66403
66404         * lib/sys_time_.h: Rename GETTIMEOFDAY_REPLACEMENT to
66405         REPLACE_GETTIMEOFDAY.
66406         * modules/sys_time (Makefile.am): Likewise.
66407         * m4/sys_time_h.m4: Likewise.
66408         * m4/gettimeofday.m4: Likewise.
66409
66410 2007-03-04  Bruno Haible  <bruno@clisp.org>
66411
66412         * modules/vasnprintf-posix-tests: New file.
66413         * tests/test-vasnprintf-posix.c: New file.
66414
66415         * modules/vasnprintf-posix: New file.
66416         * lib/vasnprintf.c: Include isnan.h, isnanl.h, printf-frexp.h,
66417         printf-frexpl.h.
66418         (VASNPRINTF): Handle the 'a' and 'A' directives here, if needed.
66419         * lib/vasnprintf.h (asnprintf, vasnprintf): Rename if
66420         REPLACE_VASNPRINTF is defined.
66421         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): New macro, extracted from
66422         gl_FUNC_VASNPRINTF.
66423         (gl_FUNC_VASNPRINTF): Invoke it.
66424         * m4/vasnprintf-posix.m4: New file.
66425         * m4/printf.m4: New file.
66426
66427 2007-03-04  Bruno Haible  <bruno@clisp.org>
66428
66429         Compile progreloc.c only if --enable-relocatable is specified.
66430         * m4/relocatable.m4 (gl_RELOCATABLE): Arrange to compile progreloc.c
66431         if --enable-relocatable was specified.
66432         * modules/relocatable-prog (Makefile.am): Remove progreloc.c from
66433         lib_SOURCES.
66434
66435 2007-03-04  Jim Meyering  <jim@meyering.net>
66436
66437         * lib/acl.c (ACL_NOT_WELL_SUPPORTED): New macro.
66438         Use it consistently, rather than enumerating errno constants.
66439
66440 2007-03-04  Bruno Haible  <bruno@clisp.org>
66441
66442         * modules/xvasprintf-tests: New file.
66443         * tests/test-xvasprintf.c: New file.
66444
66445         * modules/vasprintf-tests: New file.
66446         * tests/test-vasprintf.c: New file.
66447
66448         * modules/vasnprintf-tests: New file.
66449         * tests/test-vasnprintf.c: New file.
66450
66451         * modules/vsnprintf-tests: New file.
66452         * tests/test-vsnprintf.c: New file.
66453
66454         * modules/snprintf-tests: New file.
66455         * tests/test-snprintf.c: New file.
66456
66457 2007-03-04  Bruno Haible  <bruno@clisp.org>
66458
66459         Compile relocatable.c only if --enable-relocatable is specified.
66460         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY_BODY): Renamed from
66461         gl_RELOCATABLE_LIBRARY.
66462         (gl_RELOCATABLE_LIBRARY, gl_RELOCATABLE_LIBRARY_SEPARATE): New macros.
66463         * m4/relocatable.m4 (gl_RELOCATABLE): Invoke gl_RELOCATABLE_LIBRARY.
66464         (gl_RELOCATABLE_BODY): Require gl_RELOCATABLE_LIBRARY_BODY instead of
66465         gl_RELOCATABLE_LIBRARY.
66466         * modules/relocatable-lib (configure.ac): Invoke gl_RELOCATABLE_LIBRARY.
66467         (Makefile.am): Remove lib_SOURCES.
66468         * modules/relocatable-lib-lgpl (configure.ac): Invoke
66469         gl_RELOCATABLE_LIBRARY.
66470         (Makefile.am): Remove lib_SOURCES.
66471         * modules/relocatable-prog (Makefile.am): Don't compile relocatable.c
66472         always.
66473         * modules/relocatable-prog-wrapper (configure.ac): Invoke
66474         gl_RELOCATABLE_LIBRARY_SEPARATE instead of gl_RELOCATABLE_LIBRARY.
66475
66476 2007-03-04  Bruno Haible  <bruno@clisp.org>
66477
66478         * modules/argmatch-tests: New file.
66479         * tests/test-argmatch.c: New file.
66480
66481         * tests/test-allocsa.c (main): Halve the number of loop runs.
66482
66483         * modules/alloca-opt-tests: New file.
66484         * tests/test-alloca-opt.c: New file.
66485
66486 2007-03-04  Jim Meyering  <jim@meyering.net>
66487
66488         Work around difference between Linux ACLs and Solaris 10 ZFS.
66489         * lib/acl.c (set_acl): Revert to using chmod_or_fchmod also
66490         for EINVAL.
66491
66492 2007-03-03  Bruno Haible  <bruno@clisp.org>
66493
66494         * modules/relocatable-prog (Depends-on): Add back progreloc's
66495         dependencies: canonicalize-lgpl, xalloc, xreadlink, stdbool, unistd.
66496
66497 2007-03-03  Bruno Haible  <bruno@clisp.org>
66498
66499         * modules/relocatable-lib-lgpl: Renamed from modules/relocatable-lib.
66500         * modules/relocatable-lib: New file.
66501
66502 2007-03-03  Bruno Haible  <bruno@clisp.org>
66503
66504         * modules/relocatable-prog: Renamed from modules/relocatable.
66505         * doc/relocatable-maint.texi: Talk about module 'relocatable-prog'.
66506
66507 2007-03-03  Bruno Haible  <bruno@clisp.org>
66508
66509         * modules/relocatable-script (Files): Add doc/relocatable.texi,
66510         m4/relocatable-lib.m4.
66511         (Depends-on): Remove 'relocatable'.
66512         (configure.ac): Add gl_RELOCATABLE_NOP.
66513
66514 2007-03-03  Bruno Haible  <bruno@clisp.org>
66515
66516         * modules/relocatable-prog-wrapper: New file.
66517         * modules/relocatable (Depends-on): Add it. Remove all other
66518         dependencies except progname.
66519         (Files): Remove build-aux/install-reloc, lib/relocwrapper.c.
66520
66521         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): New macro.
66522         (gl_FUNC_STRERROR): Nop.
66523         * lib/strerror.c: Compile the file only if !HAVE_STRERROR.
66524
66525         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): New macro.
66526         * lib/setenv.c: Compile the file only if _LIBC || !HAVE_SETENV.
66527
66528         * m4/readlink.m4 (gl_FUNC_READLINK_SEPARATE): New macro.
66529         (gl_FUNC_READLINK): Update.
66530
66531         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL_SEPARATE): New macro.
66532
66533 2007-03-03  Bruno Haible  <bruno@clisp.org>
66534
66535         * lib/xreadlink.c: Include <unistd.h> unconditionally.
66536         * modules/xreadlink (Depends-on): Add unistd.
66537         * modules/xreadlink-with-size (Depends-on): Likewise.
66538
66539 2007-03-03  Bruno Haible  <bruno@clisp.org>
66540
66541         * m4/setenv.m4 (gl_FUNC_SETENV, gl_FUNC_UNSETENV): New macros,
66542         extracted from gt_FUNC_SETENV.
66543         (gt_FUNC_SETENV): Remove macro.
66544         * modules/setenv (configure.ac): Add gl_FUNC_SETENV, gl_FUNC_UNSETENV,
66545         remove gt_FUNC_SETENV.
66546
66547 2007-03-03  Bruno Haible  <bruno@clisp.org>
66548
66549         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY): Define
66550         ENABLE_RELOCATABLE here.
66551         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Don't define it here.
66552
66553 2007-03-03  Bruno Haible  <bruno@clisp.org>
66554
66555         * modules/rbtreehash-list-tests (Depends-on): Add progname.
66556         * tests/test-rbtreehash_list.c: Include progname.h.
66557         (main): Call set_program_name.
66558
66559         * modules/rbtree-oset-tests (Depends-on): Add progname.
66560         * tests/test-rbtree_oset.c: Include progname.h.
66561         (main): Call set_program_name.
66562
66563         * modules/rbtree-list-tests (Depends-on): Add progname.
66564         * tests/test-rbtree_list.c: Include progname.h.
66565         (main): Call set_program_name.
66566
66567         * modules/linked-list-tests (Depends-on): Add progname.
66568         * tests/test-linked_list.c: Include progname.h.
66569         (main): Call set_program_name.
66570
66571 2007-03-03  Bruno Haible  <bruno@clisp.org>
66572
66573         * lib/glob-libc.h (_Restrict_): New macro, copied from lib/regex.h.
66574         All uses of __restrict changed to _Restrict_.
66575         * lib/glob_.h (__restrict): Remove macro.
66576
66577 2007-03-02  Bruno Haible  <bruno@clisp.org>
66578
66579         * modules/gettext (configure.ac): Require gettext infrastructure
66580         from version 0.16.1.
66581
66582 2007-03-02  Bruno Haible  <bruno@clisp.org>
66583
66584         * modules/linkedhash-list-tests (Depends-on): Add progname.
66585         * tests/test-linkedhash_list.c: Include progname.h.
66586         (main): Call set_program_name.
66587
66588         * modules/carray-list-tests (Depends-on): Add progname.
66589         * tests/test-carray_list.c: Include progname.h.
66590         (main): Call set_program_name.
66591
66592         * modules/avltreehash-list-tests (Depends-on): Add progname.
66593         * tests/test-avltreehash_list.c: Include progname.h.
66594         (main): Call set_program_name.
66595
66596         * modules/avltree-oset-tests (Depends-on): Add progname.
66597         * tests/test-avltree_oset.c: Include progname.h.
66598         (main): Call set_program_name.
66599
66600         * modules/avltree-list-tests (Depends-on): Add progname.
66601         * tests/test-avltree_list.c: Include progname.h.
66602         (main): Call set_program_name.
66603
66604         * modules/array-oset-tests (Depends-on): Add progname.
66605         * tests/test-array_oset.c: Include progname.h.
66606         (main): Call set_program_name.
66607
66608         * modules/array-list-tests (Depends-on): Add progname.
66609         * tests/test-array_list.c: Include progname.h.
66610         (main): Call set_program_name.
66611
66612         * modules/argp-tests (Depends-on): Add progname.
66613         * tests/test-argp.c: Include argp.h first. Include progname.h.
66614         (main): Call set_program_name.
66615
66616 2007-03-02  Paul Eggert  <eggert@cs.ucla.edu>
66617
66618         * doc/gnulib-tool.texi (Initial import): Reword description of
66619         _FILE_OFFSET_BITS and _GNU_SOURCE, since they sometimes have a
66620         limited effect even if defined after the first system include.
66621
66622 2007-03-01  Bruno Haible  <bruno@clisp.org>
66623
66624         * build-aux/config.libpath: Update to libtool-1.5.22.
66625         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
66626
66627 2007-03-01  Bruno Haible  <bruno@clisp.org>
66628
66629         * doc/relocatable-maint.texi: Recommend to set foo_CPPFLAGS, not
66630         foo_CFLAGS.
66631         Reported by Ralf Wildenhues.
66632
66633 2007-03-01  Bruno Haible  <bruno@clisp.org>
66634
66635         * build-aux/install-reloc: Remove object files left over by some
66636         compilers.
66637         Reported by Ralf Wildenhues.
66638
66639 2007-03-01  Bruno Haible  <bruno@clisp.org>
66640
66641         * build-aux/install-reloc: Break long lines.
66642
66643 2007-03-01  Bruno Haible  <bruno@clisp.org>
66644
66645         * doc/relocatable.texi: Document that it may not work on OpenBSD.
66646         Reported by Ralf Wildenhues.
66647
66648 2007-03-01  Bruno Haible  <bruno@clisp.org>
66649
66650         * doc/gnulib-tool.texi (Initial import): Remove paragraph about
66651         include ordering constraints.
66652
66653 2007-03-01  Paul Eggert  <eggert@cs.ucla.edu>
66654
66655         Followup to the 2007-02-12 patch, using suggestions from Bruno Haible in
66656         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00136.html>.
66657         * doc/gnulib-tool.texi (Initial import): Mention _FILE_OFFSET_BITS
66658         as another example.
66659         * lib/time_.h: Fix misspelling.
66660         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
66661         Require gl_HEADER_TIME_H_DEFAULTS.
66662         * m4/strptime.m4 (gl_FUNC_STRPTIME): Likewise.
66663         * m4/time_r.m4 (gl_TIME_R): Likewise.
66664         * m4/timegm.m4 (gl_FUNC_TIMEGM): Likewise.
66665
66666 2007-03-01  Bruno Haible  <bruno@clisp.org>
66667
66668         * m4/utimecmp.m4 (gl_UTIMECMP): Don't require gl_TIMESPEC.
66669         * m4/utimens.m4 (gl_UTIMENS): Likewise.
66670
66671 2007-03-01  Jim Meyering  <jim@meyering.net>
66672
66673         * modules/xreadlink (Maintainer): Add my name.
66674         * modules/xreadlink-with-size (Depends-on): Alphabetize.
66675
66676 2007-02-26  Ben Pfaff  <blp@cs.stanford.edu>
66677             Bruno Haible  <bruno@clisp.org>
66678
66679         * build-aux/install-reloc: Compile also c-ctype.c.
66680         * build-aux/relocatable.sh.in: New file.
66681         * doc/relocatable.texi: New file.
66682         * doc/relocatable-maint.texi: New file.
66683         * doc/gnulib.texi: Include relocatable-maint.texi.
66684         * lib/progreloc.c: Include unistd.h unconditionally.
66685         * lib/relocwrapper.c: Include unistd.h unconditionally.
66686         Include c-ctype.h.
66687         (add_dotbin): Use c_tolower.
66688         * m4/relocatable-lib.m4: New file, extracted from m4/relocatable.m4.
66689         (gl_RELOCATABLE_LIBRARY): Renamed from AC_RELOCATABLE_LIBRARY.
66690         (gl_RELOCATABLE_NOP): Renamed from AC_RELOCATABLE_NOP.
66691         * m4/relocatable.m4 (AC_RELOCATABLE_LIBRARY, AC_RELOCATABLE_NOP): Move
66692         to m4/relocatable-lib.m4.
66693         (gl_RELOCATABLE): Renamed from AC_RELOCATABLE. Set also
66694         RELOCATABLE_CONFIG_H_DIR, RELOCATABLE_SRC_DIR, RELOCATABLE_BUILD_DIR.
66695         (gl_RELOCATABLE_BODY): Renamed from AC_RELOCATABLE_BODY. Don't
66696         require obsolete macro AC_EXEEXT. Don't check for unistd.h. Don't set
66697         SET_RELOCATABLE. Instead set RELOCATABLE_LDFLAGS, INSTALL_PROGRAM_ENV.
66698         * modules/relocatable: New file.
66699         * modules/relocatable-lib: New file.
66700         * modules/relocatable-script: New file.
66701
66702 2007-02-28  Bruno Haible  <bruno@clisp.org>
66703
66704         Import --enable-relocatable infrastructure.
66705         * build-aux/config.libpath: New file, from GNU gettext.
66706         * build-aux/install-reloc: New file, from GNU gettext.
66707         * build-aux/reloc-ldflags: New file, from GNU gettext.
66708         * lib/relocatable.h: New file, from GNU gettext.
66709         * lib/relocatable.c: New file, from GNU gettext.
66710         * lib/relocwrapper.c: New file, from GNU gettext.
66711         * m4/relocatable.m4: New file, from GNU gettext.
66712
66713 2007-02-28  Bruno Haible  <bruno@clisp.org>
66714
66715         * MODULES.html.sh (File system functions): Add xreadlink-with-size.
66716
66717         * modules/xreadlink: New file, from GNU gettext with modifications.
66718         * lib/xreadlink.c: New file, from GNU gettext.
66719         * lib/xreadlink.h: Add comments.
66720         (xreadlink): New declaration.
66721
66722         * modules/xreadlink-with-size: Renamed from modules/xreadlink.
66723         (Files): Remove m4/xreadlink.m4. Replace lib/xreadlink.c with
66724         lib/xreadlink-with-size.c.
66725         (configure.ac): Remove gl_XREADLINK invocation.
66726         (Makefile.am): Augment lib_SOURCES.
66727         * m4/xreadlink.m4: Remove file.
66728         * lib/xreadlink-with-size.c: Renamed from lib/xreadlink.c.
66729         (xreadlink_with_size): Renamed from xreadink.
66730         * lib/xreadlink.h (xreadlink_with_size): Renamed from xreadink.
66731         * modules/canonicalize (Depends-on): Replace xreadlink with
66732         xreadlink-with-size.
66733         * lib/canonicalize.c (canonicalize_filename_mode): Update.
66734
66735 2007-02-25  Jim Meyering  <jim@meyering.net>
66736
66737         * build-aux/announce-gen: When complaining about excess arguments,
66738         list them.
66739
66740 2007-02-25  Paul Eggert  <eggert@cs.ucla.edu>
66741
66742         * README: Document signed integer overflow situation more
66743         accurately.
66744
66745 2007-02-25  Bruno Haible  <bruno@clisp.org>
66746
66747         * lib/vasnprintf.c (VASNPRINTF): Fix estimate of size needed for a
66748         'a' or 'A' conversion.
66749
66750 2007-02-25  Bruno Haible  <bruno@clisp.org>
66751
66752         * modules/filename: Renamed from modules/pathname.
66753         (Files): Replace lib/pathname.h with lib/filename.h. Replace
66754         lib/concatpath.c with lib/concat-filename.c.
66755         (Makefile.am): Update.
66756         (Include): Replace pathname.h with filename.h.
66757         * lib/filename.h: Renamed from lib/pathname.h.
66758         (concatenated_filename): Renamed from concatenated_pathname.
66759         * lib/concat-filename.c: Renamed from lib/concatpath.c.
66760         (concatenated_filename): Renamed from concatenated_pathname.
66761         * lib/findprog.c: Include filename.h instead of pathname.h.
66762         (find_in_path): Update.
66763         * lib/javacomp.c: Include filename.h instead of pathname.h.
66764         (is_envjavac_gcj43_usable, is_envjavac_oldgcj_14_14_usable,
66765         is_envjavac_oldgcj_14_13_usable, is_envjavac_nongcj_usable,
66766         is_gcj_present, is_gcj43_usable, is_oldgcj_14_14_usable,
66767         is_oldgcj_14_13_usable, is_javac_usable): Update.
66768         * lib/javaexec.c: Include filename.h instead of pathname.h.
66769         (execute_java_class): Update.
66770         * modules/findprog: Update.
66771         * modules/javacomp: Update.
66772         * modules/javaexec: Update.
66773         * MODULES.html.sh (File system functions): Add 'filename', remove
66774         'pathname'.
66775
66776 2007-02-25  Bruno Haible  <bruno@clisp.org>
66777
66778         * modules/printf-frexpl-tests: New file.
66779         * tests/test-printf-frexpl.c: New file.
66780
66781         * modules/printf-frexpl: New file.
66782         * lib/printf-frexpl.h: New file.
66783         * lib/printf-frexpl.c: New file.
66784         * m4/printf-frexpl.m4: New file.
66785
66786 2007-02-25  Bruno Haible  <bruno@clisp.org>
66787
66788         * modules/printf-frexp-tests: New file.
66789         * tests/test-printf-frexp.c: New file.
66790
66791         * modules/printf-frexp: New file.
66792         * lib/printf-frexp.h: New file.
66793         * lib/printf-frexp.c: New file.
66794         * m4/printf-frexp.m4: New file.
66795
66796 2007-02-25  Bruno Haible  <bruno@clisp.org>
66797
66798         Assume automake >= 1.10 for the tests.
66799         * modules/arcfour-tests (TESTS): Remove $(EXEEXT) suffix.
66800         * modules/arctwo-tests: Likewise.
66801         * modules/argp-tests: Likewise.
66802         * modules/avltree-list-tests: Likewise.
66803         * modules/avltree-oset-tests: Likewise.
66804         * modules/avltreehash-list-tests: Likewise.
66805         * modules/carray-list-tests: Likewise.
66806         * modules/crc-tests: Likewise.
66807         * modules/des-tests: Likewise.
66808         * modules/gc-arcfour-tests: Likewise.
66809         * modules/gc-arctwo-tests: Likewise.
66810         * modules/gc-des-tests: Likewise.
66811         * modules/gc-hmac-md5-tests: Likewise.
66812         * modules/gc-hmac-sha1-tests: Likewise.
66813         * modules/gc-md2-tests: Likewise.
66814         * modules/gc-md4-tests: Likewise.
66815         * modules/gc-md5-tests: Likewise.
66816         * modules/gc-pbkdf2-sha1-tests: Likewise.
66817         * modules/gc-rijndael-tests: Likewise.
66818         * modules/gc-sha1-tests: Likewise.
66819         * modules/gc-tests: Likewise.
66820         * modules/getaddrinfo-tests: Likewise.
66821         * modules/hmac-md5-tests: Likewise.
66822         * modules/hmac-sha1-tests: Likewise.
66823         * modules/linked-list-tests: Likewise.
66824         * modules/linkedhash-list-tests: Likewise.
66825         * modules/lock-tests: Likewise.
66826         * modules/md2-tests: Likewise.
66827         * modules/md4-tests: Likewise.
66828         * modules/md5-tests: Likewise.
66829         * modules/rbtree-list-tests: Likewise.
66830         * modules/rbtree-oset-tests: Likewise.
66831         * modules/rbtreehash-list-tests: Likewise.
66832         * modules/read-file-tests: Likewise.
66833         * modules/rijndael-tests: Likewise.
66834         * modules/stdint-tests: Likewise.
66835         * modules/tls-tests: Likewise.
66836
66837 2007-02-24  Bruno Haible  <bruno@clisp.org>
66838
66839         * lib/isnanl.h (isnanl): Define through isnan if isnan is a macro.
66840         * m4/isnan.m4 (gl_FUNC_ISNAN_NO_LIBM): Don't check for isnan as a
66841         function; instead check whether isnan with a double argument links.
66842         * m4/isnanl.m4 (gl_FUNC_ISNANL_NO_LIBM): Don't check for isnanl as a
66843         function; instead check whether isnan with a 'long double' argument
66844         links.
66845         Reported by Eric Blake <ebb9@byu.net>.
66846
66847 2007-02-24  Bruno Haible  <bruno@clisp.org>
66848
66849         * lib/isnan.c: Support the 'long double' case if USE_LONG_DOUBLE is
66850         defined.
66851         * lib/isnanl.c: Remove all code. Just include isnan.c.
66852         * modules/isnanl-nolibm (Files): Add lib/isnan.c.
66853
66854 2007-02-25  Jim Meyering  <jim@meyering.net>
66855
66856         Avoid conflicting types for 'unsetenv' on FreeBSD.
66857         * lib/putenv.c (_unsetenv): Rename from "unsetenv", to avoid
66858         conflicting with FreeBSD's (5.0 and 6.1) function declaration
66859         in stdlib.h.
66860
66861 2007-02-24  Bruno Haible  <bruno@clisp.org>
66862
66863         * modules/isnanl-nolibm-tests: New file.
66864         * tests/test-isnanl.c: New file.
66865
66866         * modules/isnanl-nolibm: New file.
66867         * lib/isnanl.h: New file.
66868         * lib/isnanl.c: New file.
66869         * m4/isnanl.m4: New file.
66870
66871 2007-02-24  Bruno Haible  <bruno@clisp.org>
66872
66873         * modules/isnan-nolibm-tests: New file.
66874         * tests/test-isnan.c: New file.
66875
66876         * modules/isnan-nolibm: New file.
66877         * lib/isnan.h: New file.
66878         * lib/isnan.c: New file.
66879         * m4/isnan.m4: New file.
66880
66881 2007-02-24  Bruno Haible  <bruno@clisp.org>
66882
66883         * lib/frexpl.c (frexpl): Correct return values for x = 1.0L. Don't
66884         assume that an exponent fits in 20 bits.
66885
66886 2007-02-24  Jim Meyering  <jim@meyering.net>
66887
66888         * m4/regex.m4: Update the description of the configure-time option,
66889         --without-included-regex, to state accurately what the defaults are,
66890         and perhaps to give people an idea why using this option is risky.
66891
66892 2007-02-24  Paul Eggert  <eggert@cs.ucla.edu>
66893
66894         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check for a nanosleep that
66895         loops on small arguments.  This attempts to avoid the problem
66896         Bruno Haible reported for AIX 4.3.2 in
66897         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00309.html>.
66898
66899 2007-02-23  Bruno Haible  <bruno@clisp.org>
66900
66901         * m4/perl.m4 (gl_PERL): Require version 5.005, not 5.003.
66902         Needed for help2man.
66903
66904 2007-02-23  Karl Berry  <karl@gnu.org>
66905
66906         * doc/gnulib-tool.texi (CVS Issues): mention that when foo_.h
66907         exists, foo.h should be cvs-ignored, not committed.
66908
66909 2007-02-23  Eric Blake  <ebb9@byu.net>
66910
66911         * lib/getdate.h (includes):  Include <time.h>, not "timespec.h".
66912         * lib/stat-time.h (includes): Likewise.
66913         * lib/utimecmp.c (includes): Likewise.
66914         * lib/utimens.h (includes): Likewise.
66915         * lib/getdate.y (includes): Also include "timespec.h" for use
66916         internal to the module.
66917         * modules/utimens (Depends-on): Revert yesterday's patch.
66918         * modules/nanosleep (Depends-on): Add missing dependency.
66919
66920 2007-02-22  Bruno Haible  <bruno@clisp.org>
66921
66922         * lib/glob.c: Don't include getlogin_r.h.
66923
66924 2007-02-22  Jim Meyering  <jim@meyering.net>
66925
66926         * modules/utimens (Depends-on): Add timespec, required for
66927         utimens.h's inclusion of timespec.h.
66928
66929 2007-02-21  Paul Eggert  <eggert@cs.ucla.edu>
66930
66931         * lib/getcwd.c (__getcwd): Undo previous change; it mishandled
66932         long unreadable paths in GNU/Linux.  Problem reported by Andreas
66933         Schwab in
66934         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00261.html>.
66935         I'll try to think of a better way to fix the Solaris problem.
66936
66937         * lib/getcwd.c (__getcwd): Don't assume getcwd (NULL, 0) works
66938         like glibc; on Solaris 10, it fails with errno == EINVAL.
66939         POSIX says the behavior is unspecified if the first argument is NULL,
66940         so play it safe and never pass NULL to the system getcwd.
66941
66942 2007-02-21  Jim Meyering  <jim@meyering.net>
66943
66944         * lib/gettimeofday.c (rpl_gettimeofday): Remove declaration
66945         of gettimeofday.  It would conflict with the one now always
66946         provided via sys_time_.h.  Reported by Matthew Woehlke, as
66947         an IRIX 6.5 build failure.
66948
66949 2007-02-20  Paul Eggert  <eggert@cs.ucla.edu>
66950
66951         Minor fixups to port to Solaris 10 with Sun C 5.8.
66952         * lib/getcwd.c [!_LIBC]: Include dirfd.h, since we use dirfd.
66953         * modules/getcwd (Depends-on): Add dirfd.
66954         * lib/putenv.c (putenv): #undef it.
66955         (rpl_putenv): New decl.
66956         (malloc, free): Include <stdlib.h> rather than prototyping separately.
66957
66958 2007-02-20  Bruno Haible  <bruno@clisp.org>
66959
66960         * modules/stdio-tests: New file.
66961         * tests/test-stdio.c: New file.
66962
66963         * modules/vsnprintf (Files): Remove lib/vsnprintf.h.
66964         (Depends-on): Add stdio.
66965         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
66966         (Include): Use <stdio.h> instead of vsnprintf.h.
66967         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Require gl_STDIO_H_DEFAULTS. Set
66968         HAVE_DECL_VSNPRINTF.
66969         * lib/vsnprintf.c: Include <stdio.h> instead of vsnprintf.h.
66970
66971         * modules/snprintf (Files): Remove lib/snprintf.h.
66972         (Depends-on): Add stdio.
66973         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
66974         (Include): Use <stdio.h> instead of snprintf.h.
66975         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Require gl_STDIO_H_DEFAULTS. Set
66976         HAVE_DECL_SNPRINTF.
66977         * lib/snprintf.c: Include <stdio.h> instead of snprintf.h.
66978         * lib/getaddrinfo.c: Likewise.
66979
66980         * modules/stdio: New file.
66981         * lib/stdio_.h: New file, incorporating snprintf.h and vsnprintf.h.
66982         * lib/snprintf.h: Remove file.
66983         * lib/vsnprintf.h: Remove file.
66984         * lib/.cppi-disable: Remove snprintf.h.
66985         * m4/stdio_h.m4: New file.
66986         * MODULES.html.sh (Support for systems lacking ISO C 99): Add stdio.
66987
66988 2007-02-20  Jim Meyering  <jim@meyering.net>
66989
66990         * lib/ftruncate.c [HAVE_CHSIZE]: Document that this code is
66991         used by e.g., mingw.  From Bruno Haible.
66992
66993 2007-02-19  Bruno Haible  <bruno@clisp.org>
66994
66995         * lib/string_.h: Use "#pragma GCC system_header" to suppress some gcc
66996         warnings.
66997         Reported by Ben Pfaff <blp@cs.stanford.edu>.
66998
66999 2007-02-19  Bruno Haible  <bruno@clisp.org>
67000
67001         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Don't request a complaint mail
67002         from mingw users.
67003
67004 2007-02-19  Bruno Haible  <bruno@clisp.org>
67005
67006         * lib/stdlib_.h: Use "#pragma GCC system_header" to suppress some gcc
67007         warnings.
67008         Reported by Joel E. Denny <jdenny@ces.clemson.edu> via Paul Eggert.
67009
67010 2007-02-19  Jim Meyering  <jim@meyering.net>
67011
67012         Don't use FD after a successful "fdopendir (fd)".
67013         * lib/getcwd.c (__getcwd) [AT_FDCWD]: fdopendir (fd) usually closes fd.
67014         Reset it by calling dirfd on the just-obtained DIR*.
67015
67016         * m4/ftruncate.m4: Adjust comment to give this module a 3-year reprieve.
67017         Prompted by a report from Bruno Haible that mingw lacks ftruncate.
67018
67019 2007-02-18  Bruno Haible  <bruno@clisp.org>
67020
67021         * lib/readlink.c: Include <unistd.h>.
67022         * m4/readlink.m4 (gl_FUNC_READLINK): Require gl_UNISTD_H_DEFAULTS. Set
67023         HAVE_READLINK.
67024         * modules/readlink (Depends-on): Add unistd.
67025         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
67026         (Include): Add <unistd.h>.
67027
67028         * lib/getlogin_r.h: Remove file.
67029         * lib/getlogin_r.c: Include <unistd.h> instead of getlogin_r.h.
67030         * m4/getlogin_r.m4 (gl_GETLOGIN_R_SUBSTITUTE): Remove macro.
67031         (gl_GETLOGIN_R): Inline it here. Require gl_UNISTD_H_DEFAULTS. Set
67032         HAVE_DECL_GETLOGIN_R.
67033         * modules/getlogin_r (Files): Remove lib/getlogin_r.h.
67034         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
67035         (Include): Use <unistd.h> instead of getlogin_r.h.
67036
67037         * lib/getcwd.h: Remove file.
67038         * lib/getcwd.c: Include <unistd.h> instead of getcwd.h.
67039         * lib/xgetcwd.c: Likewise.
67040         * m4/getcwd.m4 (gl_FUNC_GETCWD): Require gl_UNISTD_H_DEFAULTS. Set
67041         REPLACE_GETCWD. Don't define __GETCWD_PREFIX.
67042         * modules/getcwd (Files): Remove lib/getcwd.h.
67043         (Depends-on): Add unistd.
67044         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
67045         (Include): Use <unistd.h> instad of getcwd.h.
67046
67047         * lib/ftruncate.c: Include <unistd.h> first.
67048         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Require gl_UNISTD_H_DEFAULTS.
67049         Set HAVE_FTRUNCATE.
67050         * modules/ftruncate (Depends-on): Add unistd.
67051         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
67052
67053         * lib/fchdir.c: Include <unistd.h> first.
67054         * lib/dirent_.h: Test REPLACE_FCHDIR, not FCHDIR_REPLACEMENT.
67055         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_UNISTD_H_DEFAULTS instead
67056         of gl_HEADER_UNISTD_DEFAULTS. Set REPLACE_FCHDIR. Don't set UNISTD_H.
67057         * modules/fchdir (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
67058         (Makefile.am): Substitute also REPLACE_FCHDIR into dirent.h.
67059
67060         * lib/dup2.c: Include <unistd.h> first.
67061         * m4/dup2.m4 (gl_FUNC_DUP2): Require gl_UNISTD_H_DEFAULTS. Set
67062         HAVE_DUP2.
67063         * modules/dup2 (Depends-on): Add unistd.
67064         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
67065
67066         * lib/chown.c: Include <unistd.h> first. Undefine chown later.
67067         * m4/chown.m4 (gl_FUNC_CHOWN): Require gl_UNISTD_H_DEFAULTS. Set
67068         REPLACE_CHOWN. Don't define chown as a macro here.
67069         * modules/chown (Depends-on): Add unistd.
67070         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
67071
67072         * lib/unistd_.h: Test HAVE_UNISTD_H determined at configure time.
67073         Add definition for GL_LINK_WARNING.
67074         (chown, dup2): New declarations.
67075         (fchdir): Test REPLACE_FCHDIR, not FCHDIR_REPLACEMENT. Provide optional
67076         link warning.
67077         (ftruncate): New declaration.
67078         (getcwd): New declaration, taken from old getcwd.h.
67079         (getlogin_r): New declaration, taken from old getlogin_r.h.
67080         (readlink): New declaration.
67081         * m4/unistd_h.m4 (gl_UNISTD_H): Renamed from gl_HEADER_UNISTD. Don't
67082         set UNISTD_H. Inline gl_PREREQ_UNISTD. Set HAVE_UNISTD_H.
67083         (gl_PREREQ_UNISTD): Remove macro.
67084         (gl_UNISTD_MODULE_INDICATOR): New macro.
67085         (gl_UNISTD_H_DEFAULTS): Renamed from gl_HEADER_UNISTD_DEFAULTS. Set
67086         many new variables. Don't set UNISTD_H.
67087         * modules/unistd (Description): Change.
67088         (Depends-on): Add link-warning.
67089         (configure.ac): Update.
67090         (Makefile.am): Create unistd.h always. Substitute many new variables
67091         into it.
67092
67093 2007-02-18  Bruno Haible  <bruno@clisp.org>
67094
67095         * lib/stdlib_.h (getsubopt): New declaration, copied from getsubopt.h.
67096         * modules/stdlib (stdlib.h): Also substitute GNULIB_GETSUBOPT and
67097         HAVE_GETSUBOPT.
67098         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Also initialize
67099         GNULIB_GETSUBOPT and HAVE_GETSUBOPT.
67100         * lib/getsubopt.h: Remove file.
67101         * modules/getsubopt (Files): Remove lib/getsubopt.h.
67102         (Depends-on): Add stdlib.
67103         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
67104         (Includes): Use <stdlib.h> instead of getsubopt.h.
67105         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Require gl_STDLIB_H_DEFAULTS.
67106         Set HAVE_GETSUBOPT.
67107         * lib/getsubopt.c: Don't include getsubopt.h.
67108
67109 2007-02-18  Bruno Haible  <bruno@clisp.org>
67110
67111         * modules/fchdir (Depends-on): Add dup2.
67112
67113 2007-02-18  Bruno Haible  <bruno@clisp.org>
67114
67115         * lib/stdlib_.h: Handle glibc's special invocation convention
67116         specially.
67117
67118 2007-02-18  Bruno Haible  <bruno@clisp.org>
67119
67120         * modules/stdlib-tests: New file.
67121         * tests/test-stdlib.c: New file.
67122
67123         * modules/mkstemp (Files): Remove lib/mkstemp.h.
67124         (Depends-on): Add stdlib.
67125         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
67126         (Includes): Use <stdlib.h> instead of mkstemp.h.
67127         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require gl_STDLIB_H_DEFAULTS. Set
67128         REPLACE_MKSTEMP. Remove definition of __MKSTEMP_PREFIX.
67129         * lib/mkstemp.c: Don't include mkstemp.h.
67130         * lib/mkstemp-safer.c: Include <stdlib.h> instead of mkstemp.h.
67131         * lib/stdlib--.h: Don't include mkstemp.h.
67132
67133         * modules/mkdtemp (Files): Remove lib/mkdtemp.h.
67134         (Depends-on): Add stdlib.
67135         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
67136         (Includes): Use <stdlib.h> instead of mkdtemp.h.
67137         * m4/mkdtemp.m4 (gt_FUNC_MKDTEMP): Require gl_STDLIB_H_DEFAULTS. Set
67138         HAVE_MKDTEMP.
67139         * lib/mkdtemp.c: Don't include mkdtemp.h.
67140         * lib/clean-temp.c: Don't include mkdtemp.h.
67141
67142         * modules/exit (Files): Remove lib/exit.h.
67143         (Depends-on): Add stdlib.
67144         (Makefile.am): Remove lib_SOURCES.
67145         (Include): Use <stdlib.h> instead of exit.h.
67146         * lib/argmatch.c: Don't include exit.h.
67147         * lib/execute.c: Likewise.
67148         * lib/pagealign_alloc.c: Likewise.
67149         * lib/pipe.c: Likewise.
67150         * lib/wait-process.c: Likewise.
67151         * lib/copy-file.c: Include <stdlib.h> instead of exit.h.
67152         * lib/exitfail.c: Likewise.
67153         * lib/savewd.c: Likewise.
67154         * lib/xsetenv.c: Likewise.
67155
67156         * modules/stdlib: New file.
67157         * lib/stdlib_.h: New file, incorporating exit.h, mkdtemp.h, mkstemp.h
67158         and extra comments about mkstemp().
67159         * lib/exit.h: Remove file.
67160         * lib/mkdtemp.h: Remove file.
67161         * lib/mkstemp.h: Remove file.
67162         * m4/stdlib_h.m4: New file.
67163         * MODULES.html.sh (Support for systems lacking ANSI C 89): Add stdlib.
67164
67165 2007-02-18  Bruno Haible  <bruno@clisp.org>
67166
67167         * modules/math-tests: New file.
67168         * tests/test-math.c: New file.
67169
67170         * modules/math: New file.
67171         * modules/mathl (Files): Remove lib/mathl.h.
67172         (Depends-on): Add math.
67173         (Makefile.am): Don't mention mathl.h.
67174         (Include): Use <math.h> instead of mathl.h.
67175         * lib/math_.h: New file.
67176         * lib/mathl.h: Remove file.
67177         * lib/acosl.c: Include <config.h> and <math.h> first. Don't include
67178         mathl.h.
67179         * lib/asinl.c: Likewise.
67180         * lib/atanl.c: Likewise.
67181         * lib/ceill.c: Likewise.
67182         * lib/cosl.c: Likewise.
67183         * lib/expl.c: Likewise.
67184         * lib/floorl.c: Likewise.
67185         * lib/frexpl.c: Likewise.
67186         * lib/ldexpl.c: Likewise.
67187         * lib/logl.c: Likewise.
67188         * lib/sincosl.c: Likewise.
67189         * lib/sinl.c: Likewise.
67190         * lib/sqrtl.c: Likewise.
67191         * lib/tanl.c: Likewise.
67192         * lib/trigl.c: Likewise.
67193         * m4/math_h.m4: New file.
67194         * MODULES.html.sh (Mathematics): Add math.
67195
67196 2007-02-17  Bruno Haible  <bruno@clisp.org>
67197
67198         * modules/wctype-tests: New file.
67199         * tests/test-wctype.c: New file.
67200
67201         * modules/wchar-tests: New file.
67202         * tests/test-wchar.c: New file.
67203
67204         * modules/unistd-tests: New file.
67205         * tests/test-unistd.c: New file.
67206
67207         * modules/time-tests: New file.
67208         * tests/test-time.c: New file.
67209
67210         * modules/sysexits-tests: New file.
67211         * tests/test-sysexits.c: New file.
67212
67213         * modules/sys_time-tests: New file.
67214         * tests/test-sys_time.c: New file.
67215
67216         * modules/sys_stat-tests: New file.
67217         * tests/test-sys_stat.c: New file.
67218
67219         * modules/sys_socket-tests: New file.
67220         * tests/test-sys_socket.c: New file.
67221
67222         * modules/sys_select-tests: New file.
67223         * tests/test-sys_select.c: New file.
67224
67225         * modules/string-tests: New file.
67226         * tests/test-string.c: New file.
67227
67228         * modules/stdbool-tests: New file.
67229         * tests/test-stdbool.c: New file.
67230
67231         * modules/netinet_in-tests: New file.
67232         * tests/test-netinet_in.c: New file.
67233
67234         * modules/inttypes-tests: New file.
67235         * tests/test-inttypes.c: New file.
67236
67237         * modules/fcntl-tests: New file.
67238         * tests/test-fcntl.c: New file.
67239
67240         * modules/byteswap-tests: New file.
67241         * tests/test-byteswap.c: New file.
67242
67243         * modules/arpa_inet-tests: New file.
67244         * tests/test-arpa_inet.c: New file.
67245
67246 2007-02-17  Bruno Haible  <bruno@clisp.org>
67247
67248         * lib/inttypes_.h: Add definition for GL_LINK_WARNING.
67249         (imaxabs, imaxdiv, strtoimax, strtoumax): Don't declare the function
67250         if the corresponding module is not enabled. Emit link warnings if
67251         the function is used nevertheless.
67252         * m4/inttypes.m4 (gl_INTTYPES_H): Never use the existing <inttypes.h>.
67253         Don't AC_SUBST HAVE_DECL_IMAXABS, HAVE_DECL_IMAXDIV,
67254         HAVE_DECL_STRTOIMAX, HAVE_DECL_STRTOUMAX.
67255         (gl_INTTYPES_MODULE_INDICATOR, gl_INTTYPES_H_DEFAULTS): New macros.
67256         * modules/inttypes (Depends-on): Add link-warning.
67257         (Makefile.am): Copy the contents of build-aux/link-warning.h into
67258         inttypes.h. Substitute also GNULIB_IMAXABS, GNULIB_IMAXDIV,
67259         GNULIB_STRTOIMAX, GNULIB_STRTOUMAX.
67260         * modules/imaxabs (configure.ac): Invoke gl_INTTYPES_MODULE_INDICATOR.
67261         * modules/imaxdiv (configure.ac): Likewise.
67262         * modules/strtoimax (configure.ac): Likewise.
67263         * modules/strtoumax (configure.ac): Likewise.
67264
67265 2007-02-17  Bruno Haible  <bruno@clisp.org>
67266
67267         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Include the contents of
67268         gl_STRING_MODULE_INDICATOR_DEFAULTS.
67269         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Remove macro.
67270         (gl_HEADER_STRING_H_BODY, gl_STRING_MODULE_INDICATOR): Update.
67271
67272 2007-02-17  Bruno Haible  <bruno@clisp.org>
67273
67274         * modules/link-warning: New file.
67275         * build-aux/link-warning.h: New file, extracted from lib/string_.h.
67276         * lib/string_.h (GL_LINK_WARNING): Remove definition.
67277         * modules/string (Depends-on): Add link-warning.
67278         (Makefile.am): Copy the contents of build-aux/link-warning.h into
67279         string.h.
67280         * MODULES.html.sh (Support for building libraries and executables): Add
67281         link-warning.
67282
67283 2007-02-17  Bruno Haible  <bruno@clisp.org>
67284
67285         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strcasecmp,
67286         strncasecmp, strchr, strchrnul, strdup, strndup, strnlen, strcspn,
67287         strpbrk, strspn, strrchr, strsep, strstr, strcasestr, strtok_r): Break
67288         long lines.
67289
67290 2007-02-17  Ben Pfaff  <blp@cs.stanford.edu>
67291             Bruno Haible  <bruno@clisp.org>
67292
67293         * modules/tmpfile: New file.
67294         * lib/tmpfile.c: New file.
67295         * m4/tmpfile.m4: New file.
67296         * MODULES.html.sh (func_all_modules): New section "Input/output".
67297
67298 2007-02-15  Bruno Haible  <bruno@clisp.org>
67299
67300         * lib/clean-temp.c [WIN32 && !CYGWIN]: Include <windows.h>.
67301         (supports_delete_on_close): New function.
67302         (open_temp, fopen_temp): Use _O_TEMPORARY when supported.
67303
67304 2007-02-14  Bruno Haible  <bruno@clisp.org>
67305
67306         * modules/mbspcasecmp-tests: New file.
67307         * tests/test-mbspcasecmp.sh: New file.
67308         * tests/test-mbspcasecmp.c: New file.
67309
67310         New module mbspcasecmp.
67311         * modules/mbspcasecmp: New file.
67312         * lib/mbspcasecmp.c: New file.
67313         * lib/string_.h (strncasecmp): Change warning message.
67314         (mbspcasecmp): New declaration.
67315         * m4/mbspcasecmp.m4: New file.
67316         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
67317         GNULIB_MBSPCASECMP.
67318         * modules/string (string.h): Also substitute GNULIB_MBSPCASECMP.
67319         * MODULES.html.sh (Internationalization functions): Add mbspcasecmp.
67320
67321 2007-02-14  Bruno Haible  <bruno@clisp.org>
67322
67323         * modules/mbsncasecmp-tests: New file.
67324         * tests/test-mbsncasecmp.sh: New file.
67325         * tests/test-mbsncasecmp.c: New file.
67326
67327         New module mbsncasecmp.
67328         * modules/mbsncasecmp: New file.
67329         * lib/mbsncasecmp.c: New file.
67330         * lib/string_.h (mbsncasecmp): New declaration.
67331         * m4/mbsncasecmp.m4: New file.
67332         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
67333         GNULIB_MBSNCASECMP.
67334         * modules/string (string.h): Also substitute GNULIB_MBSNCASECMP.
67335         * MODULES.html.sh (Internationalization functions): Add mbsncasecmp.
67336
67337 2007-02-14  Paul Eggert  <eggert@cs.ucla.edu>
67338
67339         * lib/exclude.c (FNM_EXTMATCH): Define if system does not.
67340         Verify that it doesn't overlap with our flags.
67341         (fnmatch_no_wildcards): Don't use strcasecmp or strncasecmp, which
67342         do not have the desired effect in multibyte locales; instead, use
67343         mbscasecmp.
67344         * modules/exclude (Depends-on): Depend on mbscasecmp, not strcase.
67345         Add dependency on xalloc.  Depend on fnmatch, not fnmatch-gnu, since
67346         we don't require GNU fnmatch ourselves (if our users require it, they
67347         should do so explicitly).
67348
67349         Fix regex code so it doesn't rely on strcasecmp.
67350         * lib/regex_internal.h: Include <langinfo.h> only if _LIBC is defined.
67351         Otherwise, include gnulib's langinfo.h.
67352         * lib/regcomp.c (init_dfa): Don't use strcasecmp, as it can have
67353         undesirable behavior in non-C locales.  Instead, rely on localecharset.
67354         * m4/regex.m4 (gl_PREREQ_REGEX): Don't require AM_LANGINFO_CODESET.
67355         * modules/regex (FILES): Remove m4/codeset.m4.
67356         (Depends-on): Add localcharset.  Remove strcase.
67357
67358 2007-02-13  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
67359
67360         * m4/unlinkdir.m4 (gl_UNLINKDIR): Fix m4 quoting bug.
67361         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Likewise.
67362
67363 2007-02-13  Bruno Haible  <bruno@clisp.org>
67364
67365         * m4/intdiv0.m4 (gt_INTDIV0): Assume ANSI C. Fix underquoting bug.
67366         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
67367
67368 2007-02-12  Bruno Haible  <bruno@clisp.org>
67369
67370         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strchrnul,
67371         strdup, strndup, strnlen, strpbrk, strsep, strtok_r): If
67372         GNULIB_POSIXCHECK and the gnulib module not enabled, provoke a link-
67373         time warning rather than a link error.
67374
67375 2007-02-12  Bruno Haible  <bruno@clisp.org>
67376
67377         * m4/locale-fr.m4 (gt_LOCALE_FR): Fix m4 quoting bug.
67378         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
67379         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
67380
67381 2007-02-12  Paul Eggert  <eggert@cs.ucla.edu>
67382
67383         * lib/string_.h (strncasecmp): Fix typo: this macro takes 3
67384         args, not 2.
67385
67386 2007-02-12  Paul Eggert  <eggert@cs.ucla.edu>
67387
67388         New module 'time', so that apps can include <time.h> as per
67389         POSIX and GNU instead of separate include files like time_r.h
67390         and timegm.h.  This implementation tries out a simpler approach
67391         for replacing decls in standard include files (as compared to
67392         the string module), somewhat as an experiment.
67393
67394         * config/srclist.txt: Comment out mktime.c for now.
67395         * doc/gnulib-tool.texi (Initial import): Don't use time_r as an example
67396         since it doesn't apply any more.  Use generic wording instead.
67397         * MODULES.html.sh (Support for systems lacking POSIX:2001): New module
67398         'time'.
67399         * lib/time_.h, m4/time_h.m4, modules/time: New files.
67400         * lib/strptime.h, lib/time_r.h, lib/timegm.h: Remove.
67401         * lib/mktime.c: Include config.h depending on _LIBC, not HAVE_CONFIG_H.
67402         Don't include <sys/types.h>; no longer needed since we assume C89.
67403         * lib/mktime.c: Don't include "time_r.h"; no longer needed.
67404         * lib/strftime.c: Likewise.
67405         * lib/time_r.c: Likewise.
67406         * lib/nanosleep.c (nanosleep): #undef after include files, not before.
67407         * lib/nanosleep.c: Include <time.h> first, to check interface.
67408         * lib/strptime.c: Likewise.
67409         * lib/time_r.c: Likewise.
67410         * lib/timegm.c: Likewise.
67411         * lib/strptime.c: Don't include strptime.h or time_r.h; no longer
67412         needed.
67413         * lib/timegm.c: Don't include timegm.h; no longer needed.
67414         * lib/timespec.h: Don't include <sys/time.h> before <time.h>;
67415         time.h now handles any problems in that area.
67416         (struct timespec, nanosleep): Remove; time.h now arranges for these.
67417         * lib/xnanosleep.c: Don't include timespec.h; no longer needed now
67418         that time.h defines struct timespec.
67419         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check that nanosleep is declared.
67420         Set REPLACE_NANOSLEEP.  Don't AC_DEFINE nanosleep; the time module now
67421         handles that.
67422         * m4/strptime.m4 (gl_FUNC_STPRTIME): Set REPLACE_STRPTIME.
67423         * m4/time_r.m4 (gl_TIME_R): Don't define HAVE_TIME_R_POSIX; no longer
67424         needed.  Set REPLACE_LOCALTIME.
67425         * m4/timegm.m4 (gl_FUNC_TIMEGM): Set REPLACE_TIMEGM.
67426         * m4/timespec.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Move to time_h.m4.
67427         (gl_TIMESPEC): Don't check for sys/time.h or struct timespec or
67428         nanosleep; time_h.m4 now does that.  Don't require
67429         gl_USE_SYSTEM_EXTENSIONS; no longer needed directly, and the time
67430         module handles this now.
67431         * modules/getdate (Depends-on): Remove timespec.  Add time.
67432         * modules/nanosleep (Depends-on): Likewise.
67433         * modules/stat-time (Depends-on): Likewise.
67434         * modules/nanosleep (Include): Include time.h, not timespec.h.
67435         * modules/strptime (Files): Remove lib/strptime.h.
67436         (Depends-on): Add extensions, time.
67437         (Include): Include time.h, not strptime.h.
67438         * modules/time_r (Files): Remove lib/time_r.h.
67439         (Depends-on): Add time.
67440         (Include): Include time.h, not time_r.h.
67441         * modules/timegm: Likewise.
67442         * modules/timespec (Description): Now does timespec-related decls
67443         of our own, instead of struct timespec itself.
67444         (Depends-on): Add time; remove extensions.
67445         (Maintainer): Add self.
67446         * modules/utimecmp (Depends-on): Add time; remove timespec.
67447         * modules/utimens (Depends-on): Likewise.
67448         * modules/xnanosleep (Depends-on): Likewise.
67449
67450 2007-02-11  Bruno Haible  <bruno@clisp.org>
67451
67452         * lib/c-strstr.c: Include allocsa.h.
67453         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
67454         * lib/c-strcasestr.c: Include allocsa.h.
67455         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
67456         * lib/strcasestr.c: Include allocsa.h.
67457         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
67458         * lib/mbsstr.c: Include allocsa.h.
67459         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): Use
67460         allocsa/freesa instead of malloc/free.
67461         * lib/mbscasestr.c: Include allocsa.h.
67462         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): Use
67463         allocsa/freesa instead of malloc/free.
67464         * modules/c-strstr (Depends-on): Add allocsa.
67465         * modules/c-strcasestr (Depends-on): Likewise.
67466         * modules/strcasestr (Depends-on): Likewise.
67467         * modules/mbsstr (Depends-on): Likewise.
67468         * modules/mbscasestr (Depends-on): Likewise.
67469
67470 2007-02-11  Bruno Haible  <bruno@clisp.org>
67471
67472         * lib/mbsspn.c (mbsspn): Fix bug. Remove unnecessary strlen call.
67473
67474         * modules/mbsspn-tests: New file.
67475         * tests/test-mbsspn.sh: New file.
67476         * tests/test-mbsspn.c: New file.
67477
67478 2007-02-11  Bruno Haible  <bruno@clisp.org>
67479
67480         * lib/mbspbrk.c (mbspbrk): Remove unneeded cast.
67481
67482         * modules/mbspbrk-tests: New file.
67483         * tests/test-mbspbrk.sh: New file.
67484         * tests/test-mbspbrk.c: New file.
67485
67486 2007-02-11  Bruno Haible  <bruno@clisp.org>
67487
67488         * lib/mbscspn.c (mbscspn): Remove unnecessary strlen call and
67489         unneeded cast.
67490
67491         * modules/mbscspn-tests: New file.
67492         * tests/test-mbscspn.sh: New file.
67493         * tests/test-mbscspn.c: New file.
67494
67495 2007-02-11  Bruno Haible  <bruno@clisp.org>
67496
67497         * modules/mbscasecmp-tests: New file.
67498         * tests/test-mbscasecmp.sh: New file.
67499         * tests/test-mbscasecmp.c: New file.
67500
67501 2007-02-11  Bruno Haible  <bruno@clisp.org>
67502
67503         Ensure O(n) worst-case complexity of mbscasestr.
67504         * lib/mbscasestr.c: Include stdbool.h.
67505         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): New
67506         functions.
67507         (mbscasestr): Add some bookkeeping. Invoke knuth_morris_pratt_* when
67508         the bookkeeping indicates that it's worth it.
67509         * modules/mbscasestr (Depends-on): Add stdbool, mbslen, strnlen.
67510
67511         * modules/mbscasestr-tests: New file.
67512         * tests/test-mbscasestr1.c: New file.
67513         * tests/test-mbscasestr2.sh: New file.
67514         * tests/test-mbscasestr2.c: New file.
67515         * tests/test-mbscasestr3.sh: New file.
67516         * tests/test-mbscasestr3.c: New file.
67517         * tests/test-mbscasestr4.sh: New file.
67518         * tests/test-mbscasestr4.c: New file.
67519         * m4/locale-tr.m4: New file.
67520
67521 2007-02-11  Bruno Haible  <bruno@clisp.org>
67522
67523         Ensure O(n) worst-case complexity of mbsstr.
67524         * lib/mbsstr.c: Include stdbool.h.
67525         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): New
67526         functions.
67527         (mbsstr): Add some bookkeeping. Invoke knuth_morris_pratt_* when the
67528         bookkeeping indicates that it's worth it.
67529         * modules/mbsstr (Depends-on): Add stdbool, mbslen, strnlen.
67530
67531         * modules/mbsstr-tests: New file.
67532         * tests/test-mbsstr1.c: New file.
67533         * tests/test-mbsstr2.sh: New file.
67534         * tests/test-mbsstr2.c: New file.
67535         * tests/test-mbsstr3.sh: New file.
67536         * tests/test-mbsstr3.c: New file.
67537         * m4/locale-fr.m4: New file.
67538
67539 2007-02-11  Bruno Haible  <bruno@clisp.org>
67540
67541         * lib/mbsrchr.c (mbsrchr): Fix bug.
67542
67543         * modules/mbsrchr-tests: New file.
67544         * tests/test-mbsrchr.sh: New file.
67545         * tests/test-mbsrchr.c: New file.
67546
67547 2007-02-11  Bruno Haible  <bruno@clisp.org>
67548
67549         * lib/mbschr.c (mbschr): Fix bug.
67550
67551         * modules/mbschr-tests: New file.
67552         * tests/test-mbschr.sh: New file.
67553         * tests/test-mbschr.c: New file.
67554         * m4/locale-zh.m4: New file.
67555
67556 2007-02-11  Bruno Haible  <bruno@clisp.org>
67557
67558         Support for copying multibyte string iterators.
67559         * lib/mbiter.h: Include <string.h>.
67560         (mbiter_multi_copy): New function.
67561         (mbi_copy): New macro.
67562         * lib/mbuiter.h: Include <string.h>.
67563         (mbuiter_multi_copy): New function.
67564         (mbui_copy): New macro.
67565
67566 2007-02-11  Bruno Haible  <bruno@clisp.org>
67567
67568         New module mbslen.
67569         * modules/mbslen: New file.
67570         * lib/mbslen.c: New file.
67571         * lib/string_.h (mbslen): New declaration.
67572         * m4/mbslen.m4: New file.
67573         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
67574         GNULIB_MBSLEN.
67575         * modules/string (string.h): Also substitute GNULIB_MBSLEN.
67576         * MODULES.html.sh (Internationalization functions): Add mbslen.
67577
67578 2007-02-11  Bruno Haible  <bruno@clisp.org>
67579
67580         Ensure O(n) worst-case complexity of strcasestr substitute.
67581         * lib/strcasestr.c: Include stdbool.h.
67582         (knuth_morris_pratt): New function.
67583         (strcasestr): Add some bookkeeping. Invoke knuth_morris_pratt when the
67584         bookkeeping indicates that it's worth it.
67585         * modules/strcasestr (Depends-on): Add stdbool, strnlen.
67586
67587         * modules/strcasestr-tests: New file.
67588         * tests/test-strcasestr.c: New file.
67589
67590 2007-02-11  Bruno Haible  <bruno@clisp.org>
67591
67592         Ensure O(n) worst-case complexity of c_strcasestr.
67593         * lib/c-strcasestr.c: Include stdbool.h, string.h.
67594         (knuth_morris_pratt): New function.
67595         (c_strcasestr): Add some bookkeeping. Invoke knuth_morris_pratt when
67596         the bookkeeping indicates that it's worth it.
67597         * modules/c-strcasestr (Depends-on): Add stdbool, strnlen.
67598
67599         * modules/c-strcasestr-tests: New file.
67600         * tests/test-c-strcasestr.c: New file.
67601
67602 2007-02-11  Bruno Haible  <bruno@clisp.org>
67603
67604         Ensure O(n) worst-case complexity of c_strstr.
67605         * lib/c-strstr.c: Include stdbool.h, string.h.
67606         (knuth_morris_pratt): New function.
67607         (c_strstr): Add some bookkeeping. Invoke knuth_morris_pratt when the
67608         bookkeeping indicates that it's worth it.
67609         * modules/c-strstr (Depends-on): Add stdbool, strnlen.
67610
67611         * lib/c-strstr.c: Complete rewrite for maintainability.
67612
67613         * modules/c-strstr-tests: New file.
67614         * tests/test-c-strstr.c: New file.
67615
67616 2007-02-11  Bruno Haible  <bruno@clisp.org>
67617
67618         * m4/javacomp.m4 (gt_JAVACOMP): Work around a 'tr' bug in coreutils
67619         5.2.1 and earlier, whereby \055 was treated just like the range
67620         delimiter '-'.
67621         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
67622
67623 2007-02-08  Bruno Haible  <bruno@clisp.org>
67624
67625         * modules/regex (Depends-on): Add stdbool.
67626         Reported by Dalibor Topic <robilad@kaffe.org>.
67627
67628 2007-02-05  Paul Eggert  <eggert@cs.ucla.edu>
67629
67630         * m4/regex.m4 (gl_REGEX): Check for glibc bug #3957.
67631         Prefer returning from main to exiting from it.
67632         Remove unnecessary parens after sizeof.
67633
67634 2007-02-05  Bruno Haible  <bruno@clisp.org>
67635
67636         New module mbssep.
67637         * modules/mbssep: New file.
67638         * lib/mbssep.c: New file.
67639         * lib/string_.h (strsep): Add a conditional link warning.
67640         (mbssep): New declaration.
67641         * m4/mbssep.m4: New file.
67642         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
67643         GNULIB_MBSSEP.
67644         * modules/string (string.h): Also substitute GNULIB_MBSSEP.
67645         * MODULES.html.sh (Internationalization functions): Add mbssep.
67646
67647 2007-02-05  Bruno Haible  <bruno@clisp.org>
67648
67649         * lib/strsep.c (strsep): Fix actions in case of no delimiters.
67650         Optimize search in case of 1 delimiter.
67651
67652 2007-02-05  Paolo Bonzini  <bonzini@gnu.org>
67653
67654         * lib/acl.h: Include sys/types.h before sys/acl.h.
67655
67656 2007-02-05  Paolo Bonzini  <bonzini@gnu.org>
67657
67658         Merge upstream fix for glibc bugzilla #3957:
67659
67660         2007-02-05  Jakub Jelinek  <jakub@redhat.com>
67661
67662         * lib/regcomp.c (parse_bracket_exp): Set '\n' bit rather than '\0'
67663         bit for RE_HAT_LISTS_NOT_NEWLINE.
67664         (build_charclass_op): Remove bogus comment.
67665
67666 2007-02-05  Simon Josefsson  <simon@josefsson.org>
67667
67668         * lib/gc.h, lib/gc-libgcrypt.c: Support SHA-256/384/512.
67669
67670 2007-02-04  Paul Eggert  <eggert@cs.ucla.edu>
67671
67672         * lib/getsubopt.c [!_LIBC]: Include config.h and getsubopt.h.
67673         * lib/memmem.c [!defined _LIBC]: Include config.h.
67674
67675 2007-02-04  Bruno Haible  <bruno@clisp.org>
67676
67677         * lib/string_.h (GL_LINK_WARNING2): Put the word "warning:" into the
67678         warning message.
67679
67680 2007-02-04  Bruno Haible  <bruno@clisp.org>
67681
67682         New module mbstok_r.
67683         * modules/mbstok_r: New file.
67684         * lib/mbstok_r.c: New file.
67685         * lib/string_.h (strtok_r): Change argument names to match the
67686         comments. Add a conditional link warning.
67687         (mbstok_r): New declaration.
67688         * m4/mbstok_r.m4: New file.
67689         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
67690         GNULIB_MBSTOK_R.
67691         * modules/string (string.h): Also substitute GNULIB_MBSTOK_R.
67692         * MODULES.html.sh (Internationalization functions): Add mbstok_r.
67693
67694 2007-02-04  Bruno Haible  <bruno@clisp.org>
67695
67696         New module mbsspn.
67697         * modules/mbsspn: New file.
67698         * lib/mbsspn.c: New file.
67699         * lib/string_.h (strspn): Add a conditional link warning.
67700         (mbsspn): New declaration.
67701         * m4/mbsspn.m4: New file.
67702         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
67703         GNULIB_MBSSPN.
67704         * modules/string (string.h): Also substitute GNULIB_MBSSPN.
67705         * MODULES.html.sh (Internationalization functions): Add mbsspn.
67706
67707 2007-02-04  Bruno Haible  <bruno@clisp.org>
67708
67709         New module mbspbrk.
67710         * modules/mbspbrk: New file.
67711         * lib/mbspbrk.c: New file.
67712         * lib/string_.h (strpbrk): Add a conditional link warning.
67713         (mbspbrk): New declaration.
67714         * m4/mbspbrk.m4: New file.
67715         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
67716         GNULIB_MBSPBRK.
67717         * modules/string (string.h): Also substitute GNULIB_MBSPBRK.
67718         * MODULES.html.sh (Internationalization functions): Add mbspbrk.
67719
67720 2007-02-04  Bruno Haible  <bruno@clisp.org>
67721
67722         New module mbscspn.
67723         * modules/mbscspn: New file.
67724         * lib/mbscspn.c: New file.
67725         * lib/string_.h (strcspn): Add a conditional link warning.
67726         (mbscspn): New declaration.
67727         * m4/mbscspn.m4: New file.
67728         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
67729         GNULIB_MBSCSPN.
67730         * modules/string (string.h): Also substitute GNULIB_MBSCSPN.
67731         * MODULES.html.sh (Internationalization functions): Add mbscspn.
67732
67733 2007-02-04  Bruno Haible  <bruno@clisp.org>
67734
67735         New module mbscasestr, reduced goal of strcasestr.
67736         * modules/mbscasestr: New file.
67737         * lib/mbscasestr.c: New file, copied from lib/strcasestr.c.
67738         (mbscasestr): Renamed from strcasestr.
67739         * lib/strcasestr.c: Don't include mbuiter.h.
67740         (strcasestr): Remove support for multibyte locales.
67741         * lib/string_.h (strcasestr): Don`t rename. Declare only if missing.
67742         Change the conditional link warning.
67743         (mbscasestr): New declaration.
67744         * m4/mbscasestr.m4: New file.
67745         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Enable the replacement only if
67746         the system does not have strcasestr. Set HAVE_STRCASESTR instead of
67747         REPLACE_STRCASESTR.
67748         (gl_PREREQ_STRCASESTR): Don't require gl_FUNC_MBRTOWC.
67749         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
67750         HAVE_STRCASESTR instead of REPLACE_STRCASESTR.
67751         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize GNULIB_MBSCASESTR.
67752         * modules/string (string.h): Also substitute GNULIB_MBSCASESTR.
67753         Substitute HAVE_STRCASESTR instead of REPLACE_STRCASESTR.
67754         * modules/strcasestr (Files): Remove m4/mbrtowc.m4.
67755         (Depends-on): Remove mbuiter.
67756         * MODULES.html.sh (Internationalization functions): Add mbscasestr.
67757
67758 2007-02-04  Bruno Haible  <bruno@clisp.org>
67759
67760         Simplify handling of strncasecmp.
67761         * lib/string_.h (strncasecmp): Remove test for GNULIB_STRCASE. Change
67762         the conditional link warning.
67763         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
67764         HAVE_STRCASECMP, not REPLACE_STRCASECMP.
67765         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Don't initialize GNULIB_STRCASE.
67766         * modules/strcase (configure.ac): Don't invoke
67767         gl_STRING_MODULE_INDICATOR.
67768         * modules/string (string.h): Don't substitute GNULIB_STRCASE.
67769
67770 2007-02-04  Bruno Haible  <bruno@clisp.org>
67771
67772         New module mbscasecmp, reduced goal of strcasecmp.
67773         * modules/mbscasecmp: New file.
67774         * lib/mbscasecmp.c: New file, copied from lib/strcasecmp.c.
67775         (mbscasecmp): Renamed from strcasecmp.
67776         * lib/strcasecmp.c: Don't include mbuiter.h.
67777         (strcasecmp): Remove support for multibyte locales.
67778         * lib/string_.h (strcasecmp): Don`t rename. Declare only if missing.
67779         Change the conditional link warning.
67780         (mbscasecmp): New declaration.
67781         * m4/mbscasecmp.m4: New file.
67782         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Enable the replacement only if
67783         the system lacks strcasecmp. Set HAVE_STRCASECMP instead of
67784         REPLACE_STRCASECMP.
67785         (gl_PREREQ_STRCASECMP): Don't require gl_FUNC_MBRTOWC.
67786         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
67787         GNULIB_MBSCASECMP.
67788         * modules/string (string.h): Also substitute GNULIB_MBSCASECMP.
67789         Substitute HAVE_STRCASECMP instead of REPLACE_STRCASECMP.
67790         * modules/strcase (Files): Remove m4/mbrtowc.m4.
67791         (Depends-on): Remove mbuiter.
67792         * MODULES.html.sh (Internationalization functions): Add mbscasecmp.
67793
67794 2007-02-04  Bruno Haible  <bruno@clisp.org>
67795
67796         New module mbsstr. Remove module strstr.
67797         * modules/mbsstr: New file.
67798         * modules/strstr: Remove file.
67799         * lib/mbsstr.c: Renamed from lib/strstr.c.
67800         (mbsstr): Renamed from strstr.
67801         * lib/string_.h (strstr): Remove declaration. Change the conditional
67802         link warning.
67803         (mbsstr): New declaration.
67804         * m4/mbsstr.m4: New file.
67805         * m4/strstr.m4: Remove file.
67806         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Don't initialize
67807         REPLACE_STRSTR.
67808         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize GNULIB_MBSSTR.
67809         Don't initialize GNULIB_STRSTR.
67810         * modules/string (string.h): Also substitute GNULIB_MBSSTR. Don't
67811         substitute GNULIB_STRSTR and REPLACE_STRSTR.
67812         * MODULES.html.sh (Internationalization functions): Add mbsstr.
67813         (Support for systems lacking ANSI C 89): Remove strstr.
67814
67815 2007-02-04  Bruno Haible  <bruno@clisp.org>
67816
67817         New module mbsrchr.
67818         * modules/mbsrchr: New file.
67819         * lib/mbsrchr.c: New file.
67820         * lib/string_.h (strrchr): Add a conditional link warning.
67821         (mbsrchr): New declaration.
67822         * m4/mbsrchr.m4: New file.
67823         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
67824         GNULIB_MBSRCHR.
67825         * modules/string (string.h): Also substitute GNULIB_MBSRCHR.
67826         * MODULES.html.sh (Internationalization functions): Add mbsrchr.
67827
67828 2007-02-04  Bruno Haible  <bruno@clisp.org>
67829
67830         New module mbschr.
67831         * modules/mbschr: New file.
67832         * lib/mbschr.c: New file.
67833         * lib/string_.h (strchr): Add a conditional link warning.
67834         (mbschr): New declaration.
67835         * m4/mbschr.m4: New file.
67836         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
67837         GNULIB_MBSCHR.
67838         * modules/string (string.h): Also substitute GNULIB_MBSCHR.
67839         * MODULES.html.sh (Internationalization functions): Add mbschr.
67840
67841 2007-02-04  Paul Eggert  <eggert@cs.ucla.edu>
67842
67843         * lib/stdbool_.h: Mention that bool bit-fields aren't supported.
67844
67845         * modules/stdarg (configure.ac-early): Require AC_PROG_CC_STDC.
67846
67847 2007-02-04  Bruno Haible  <bruno@clisp.org>
67848
67849         New module description section 'configure.ac-early'.
67850         * gnulib-tool (sed_extract_prog): Recognize configure.ac-early.
67851         (func_get_autoconf_early_snippet): New function.
67852         (func_import, func_create_testdir): Use it. Remove special cases for
67853         modules 'extensions' and 'lock'.
67854         * modules/extensions (configure.ac-early): Require
67855         gl_USE_SYSTEM_EXTENSIONS.
67856         * modules/lock (configure.ac-early): Require gl_LOCK_EARLY.
67857
67858 2007-02-04  Bruno Haible  <bruno@clisp.org>
67859
67860         Make use of gcj-4.3's -fsource and -ftarget option.
67861         * m4/javacomp.m4 (gt_JAVACOMP): Test whether gcj is in version >= 4.3,
67862         and if so try the options -fsource and -ftarget.
67863         * lib/javacomp.c (compile_using_gcj): Add fsource_option,
67864         source_version, ftarget_option, target_version arguments.
67865         (is_envjavac_gcj43, is_envjavac_gcj43_usable): New functions.
67866         (is_envjavac_oldgcj_14_14_usable): Renamed from
67867         is_envjavac_gcj_14_14_usable.
67868         (is_envjavac_oldgcj_14_13_usable): Renamed from
67869         is_envjavac_gcj_14_13_usable.
67870         (is_gcj_present): Update.
67871         (is_gcj_43, is_gcj43_usable): New functions.
67872         (is_oldgcj_14_14_usable): Renamed from is_gcj_14_14_usable. Update.
67873         (is_oldgcj_14_13_usable): Renamed from is_gcj_14_13_usable. Update.
67874         (compile_java_class): Test whether gcj is in version >= 4.3, and if so
67875         try the options -fsource and -ftarget.
67876
67877 2007-02-03  Paul Eggert  <eggert@cs.ucla.edu>
67878
67879         * lib/xalloc.h (x2nrealloc): Fix an unlikely bug in the overflow
67880         checking code.  Set N = ceil (1.5 * N) rather than to a slightly
67881         larger value.
67882
67883 2007-02-03  Jim Meyering  <jim@meyering.net>
67884
67885         Give tools a better chance to allocate space for very large buffers.
67886         * lib/xalloc.h (x2nrealloc): Use 3/2, not 2, as buffer size factor.
67887
67888         Make pwd and readlink work also when run with an unreadable parent dir
67889         on systems with openat support.
67890         * lib/getcwd.c (__getcwd) [HAVE_PARTLY_WORKING_GETCWD]: Use the system
67891         provided getcwd function, even when we have openat support.
67892         Reported by Dmitry V. Levin in <http://bugzilla.redhat.com/227168>.
67893
67894 2007-02-02  Bruno Haible  <bruno@clisp.org>
67895
67896         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strchrnul,
67897         strdup, strndup, strnlen, strpbrk, strsep, strtok_r): Provoke a link
67898         error only if GNULIB_POSIXCHECK is defined. Needed to avoid artificial
67899         portability problems if one of these functions is only used on specific
67900         platforms.
67901         Reported by Paul Eggert.
67902
67903 2007-02-02  Paul Eggert  <eggert@cs.ucla.edu>
67904
67905         Avoid mempcpy in the regex code, as the string.h mempcpy stuff
67906         is causing more trouble than it's curing.
67907         * lib/regex_internal.h (__mempcpy): Remove.
67908         * lib/regcomp.c (regerror): Rewrite to avoid the need for mempcpy
67909         (and make the code a tad smaller to boot).
67910         * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for mempcpy.
67911
67912 2007-02-02  Jim Meyering  <jim@meyering.net>
67913
67914         * modules/arpa_inet: Put AC_PROG_MKDIR_P in the configure.ac:
67915         section, not in the Makefile.am: one.
67916
67917 2007-02-02  Eric Blake  <ebb9@byu.net>
67918
67919         * lib/strchrnul.c: Always include config.h first.
67920
67921         * modules/mountlist (Depends-on): Revert 2007-01-31 change,
67922         gnulib strstr is not necessary here.
67923
67924 2007-02-02  Simon Josefsson  <simon@josefsson.org>
67925
67926         * m4/socklen.m4: Fix typo.
67927
67928 2007-02-02  Eric Blake  <ebb9@byu.net>
67929
67930         * modules/arpa_inet (Makefile.am): Use MKDIR_P to avoid races.
67931         * modules/netinet_in (Makefile.am): Likewise.
67932
67933 2007-02-01  Bruno Haible  <bruno@clisp.org>
67934
67935         * lib/string_.h (GL_LINK_WARNING): New macro.
67936         (strcasecmp, strstr, strcasestr): If provided by the system,
67937         conditionally define as a macro that leads to a warning instead of to
67938         an error.
67939         (strncasecmp): Conditionally define as a macro that leads to a warning.
67940
67941 2007-02-01  Karl Berry  <karl@gnu.org>
67942
67943         * config/srclist.txt (strtok_r.c): lose sync, no more strtok_r.h.
67944
67945 2007-02-01  Bruno Haible  <bruno@clisp.org>
67946
67947         * MODULES.html.sh (Unicode string functions): Update after 2007-01-27
67948         renamings.
67949
67950 2007-02-01  Eric Blake  <ebb9@byu.net>
67951
67952         * modules/regex (Depends-on): Revert dependence on mempcpy.
67953         * lib/regex_internal.h [! _LIBC && !__mempcpy]: Undo string
67954         module's definition of mempcpy.
67955         Reported by Paul Eggert.
67956
67957 2007-02-01  Paul Eggert  <eggert@cs.ucla.edu>
67958
67959         * lib/string_.h: If the gnulib module XYZ is not present, undefine
67960         the symbol XYZ before redefining it.  This fixes a problem with
67961         programs that don't use XYZ, when compiled on systems that define
67962         XYZ to something else.
67963
67964 2007-01-31  Paul Eggert  <eggert@cs.ucla.edu>
67965
67966         * lib/mkdir-p.c (make_dir_parents): Close a race condition that
67967         occurs when "mkdir -m foo" creates a setgid directory that is (1)
67968         writeable to group or other and (2) is intended to have a special
67969         mode bit that is set or cleared.  In such a case, the directory
67970         should be neither group- nor other-writeable until the special
67971         mode bits are right.
67972
67973 2007-01-31  Eric Blake  <ebb9@byu.net>
67974
67975         * modules/mountlist (Depends-on): Add strstr.
67976
67977         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Correct m4 usage
67978         bug.
67979         * modules/string (Makefile.am): Remove redundant replacement.
67980         * modules/regex (Depends-on): Add mempcpy.
67981
67982 2007-01-31  Bruno Haible  <bruno@clisp.org>
67983
67984         New module description field 'Link'.
67985         * gnulib-tool (func_usage): Document --extract-link-directive.
67986         (sed_extract_prog): Recognize 'Link' directive.
67987         (func_get_link_directive): New function.
67988         (func_import): Show summary of link directives.
67989         Handle --extract-link-directive option.
67990         * modules/acl (Link): New section.
67991         * modules/clock-time (Link): New section.
67992         * modules/euidaccess (Link): New section.
67993         * modules/gettext (Link): New section.
67994         * modules/iconv (Link): New section.
67995         * modules/lock (Link): New section.
67996         * modules/nanosleep (Link): New section.
67997         * modules/readline (Link): New section.
67998
67999 2007-01-27  Bruno Haible  <bruno@clisp.org>
68000
68001         Enforce the use of gnulib modules for unportable <string.h> functions.
68002         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): New macro.
68003         (gl_STRING_MODULE_INDICATOR_DEFAULTS): New macro.
68004         (gl_HEADER_STRING_H_BODY): Require it.
68005         * lib/string_.h: If the gnulib module XYZ is not present, redefine
68006         the symbol XYZ to one that gives a link error.
68007         * modules/string (Makefile.am): Also substitute the GNULIB_* variables.
68008         * modules/memmem (configure.ac): Invoke gl_STRING_MODULE_INDICATOR.
68009         * modules/mempcpy (configure.ac): Likewise.
68010         * modules/memrchr (configure.ac): Likewise.
68011         * modules/stpcpy (configure.ac): Likewise.
68012         * modules/stpncpy (configure.ac): Likewise.
68013         * modules/strcase (configure.ac): Likewise.
68014         * modules/strcasestr (configure.ac): Likewise.
68015         * modules/strchrnul (configure.ac): Likewise.
68016         * modules/strdup (configure.ac): Likewise.
68017         * modules/strndup (configure.ac): Likewise.
68018         * modules/strnlen (configure.ac): Likewise.
68019         * modules/strpbrk (configure.ac): Likewise.
68020         * modules/strsep (configure.ac): Likewise.
68021         * modules/strstr (configure.ac): Likewise.
68022         * modules/strtok_r (configure.ac): Likewise.
68023
68024 2007-01-31  Jean-Louis Martineau  <martineau@zmanda.com>  (tiny change)
68025
68026         * lib/gai_strerror.c (values): Add EAI_OVERFLOW.
68027
68028 2007-01-30  Jim Meyering  <jim@meyering.net>
68029
68030         * lib/mpsort.c (mpsort): Remove spurious "return" in void function.
68031
68032 2007-01-29  Bruno Haible  <bruno@clisp.org>
68033
68034         * lib/allocsa.h: Use '#if HAVE_*' instead of '#ifdef HAVE_*'.
68035         * lib/execute.c: Likewise.
68036         * lib/pipe.c: Likewise.
68037         * lib/printf-args.h: Likewise.
68038         * lib/printf-args.c: Likewise.
68039         * lib/printf-parse.c: Likewise.
68040         * lib/vasnprintf.c: Likewise.
68041
68042 2007-01-29  Eric Blake  <ebb9@byu.net>
68043
68044         * lib/memrchr.c: Assume <string.h> unconditionally, to pull in
68045         declaration.
68046
68047 2007-01-29  Paul Eggert  <eggert@cs.ucla.edu>
68048
68049         * lib/strptime.h (strptime): Use 'restrict' for args where
68050         POSIX requires this.
68051         * lib/strptime.c (strptime): Likewise.
68052         Change license notice from LGPL to GPL, since gnulib-tool will
68053         change this as needed.
68054         Include <config.h> if _LIBC is not defined, not if HAVE_CONFIG_H is
68055         defined.
68056         Include "strptime.h" first, to check interface.
68057         Do not #undef _LIBC and _NL_CURRENT.
68058         Do not include <stdlib.h>; no longer needed.
68059         Include "time_r.h" and declare ptime_locale_status
68060         only if _LIBC is not defined.
68061         (__P): Remove unused macro.
68062         (match_string): Bring back glibc version, but use it only if _LIBC
68063         is defined.
68064         (__strptime_internal): Compile tm_gmtoff code if _LIBC is defined, too.
68065         Remove unnecessary assertion and abort() call.
68066         Use #ifdef _NL_CURRENT rather than #if 0, for benefit of glibc.
68067         * m4/strptime.m4: Fix serial number comment.
68068         (gl_FUNC_STRPTIME): Require AC_C_RESTRICT, gl_TM_GMTOFF.
68069         * modules/strptime (Files): Add m4/tm_gmtoff.m4.
68070         (Depends-on): Add time_r.
68071
68072 2007-01-29  Bruno Haible  <bruno@clisp.org>
68073
68074         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
68075         strptime.
68076         * modules/strptime (Depends-on): Add stdbool.
68077         * lib/strptime.h: Include <time.h> always. Add comments.
68078
68079 2007-01-29  Yoann Vandoorselaere  <yoann@prelude-ids.org>
68080
68081         * modules/strptime: New file.
68082         * lib/strptime.h: New file.
68083         * lib/strptime.c: New file.
68084         * m4/strptime.m4: New file.
68085
68086 2007-01-28  Paul Eggert  <eggert@cs.ucla.edu>
68087
68088         * MODULES.html.sh: New module mpsort.
68089         * lib/mpsort.c, lib/mpsort.h, m4/mpsort.m4, modules/mpsort: New files.
68090
68091         * lib/regex.h (_Restrict_): Renamed from __restrict, to avoid
68092         a circularity problem with HP-UX ia64 reported by Bob Proulx in
68093         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00394.html>.
68094         All uses changed.
68095         (_Restrict_arr_): Renamed from __restrict_arr, for similar reasons.
68096         All uses changed.
68097         * lib/regcomp.c, lib/regexec.c: Change all uses from __restrict
68098         to _Restrict_.
68099         * lib/regexec.c (regexec): Declare pmatch with _Restrict_arr_, so that
68100         the parameter matches the prototype.
68101
68102 2007-01-28  Jim Meyering  <jim@meyering.net>
68103
68104         * modules/sys_time (Makefile.am) [MOSTLYCLEANFILES]: Do use
68105         sys/time.h here, reverting that part of the previous patch:
68106         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/8959>.
68107
68108 2007-01-28  Bruno Haible  <bruno@clisp.org>
68109
68110         * modules/sys_time (Makefile.am): Build sys/time.h only when it's the
68111         value of $(SYS_TIME_H).
68112         [MOSTLYCLEANFILES]: Now that sys/time.h is created only when needed,
68113         remove it conditionally, too. [added by Jim Meyering]
68114         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Set SYS_TIME_H.
68115         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY):
68116         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Set SYS_TIME_H when setting
68117         GETTIMEOFDAY_REPLACEMENT to 1.
68118
68119 2007-01-28  Bruno Haible  <bruno@clisp.org>
68120
68121         * m4/unistd_h.m4 (gl_HEADER_UNISTD_DEFAULTS): New macro.
68122         (gl_HEADER_UNISTD): Require it. Don't set UNISTD_H to empty here.
68123         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_HEADER_UNISTD_DEFAULTS.
68124         Set UNISTD_H instead of UNISTD_H2.
68125         * modules/fchdir (BUILT_SOURCES): Drop $(UNISTD_H2).
68126
68127 2007-01-28  Bruno Haible  <bruno@clisp.org>
68128
68129         * modules/mbchar (Makefile.am): Add mbchar.c to lib_SOURCES.
68130         * m4/mbchar.m4 (gl_MBCHAR): Remove AC_LIBOBJ invocation.
68131
68132 2007-01-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
68133
68134         * gnulib-tool (func_emit_lib_Makefile_am, func_add_or_update)
68135         (func_create_testdir): Ensure C locale for `grep' and `tr'
68136         character ranges.
68137         (func_create_megatestdir): Avoid one `grep'.  Fix bug in
68138         ACLOCAL_AMFLAGS parsing state machine.
68139
68140 2007-01-27  Bruno Haible  <bruno@clisp.org>
68141
68142         * modules/unistr/base: Update.
68143
68144 2007-01-27  Bruno Haible  <bruno@clisp.org>
68145
68146         Rename u32-mbtouc -> u32-mbtouc-unsafe, u32-mbtouc-safe -> u32-mbtouc,
68147         u32_mbtouc -> u32_mbtouc_unsafe, u32_mbtouc_safe -> u32_mbtouc.
68148         * modules/unistr/u32-mbtouc-unsafe: Renamed from
68149         modules/unistr/u32-mbtouc.
68150         * lib/unistr/u32-mbtouc-unsafe.c: Renamed from lib/unistr/u32-mbtouc.c.
68151         * lib/unistr.h: Update.
68152         * lib/linebreak.c: Update.
68153         * modules/unistr/u32-mbtouc: Renamed from
68154         modules/unistr/u32-mbtouc-safe.
68155         * lib/unistr/u32-mbtouc.c: Renamed from lib/unistr/u32-mbtouc-safe.c.
68156         * lib/unistr.h: Update.
68157         * lib/unistr/u32-to-u8.c: Update.
68158         * lib/unistr/u32-to-u16.c: Update.
68159
68160 2007-01-27  Bruno Haible  <bruno@clisp.org>
68161
68162         Rename utf16-ucs4 -> utf16-ucs4-unsafe, utf16-ucs4-safe -> utf16-ucs4,
68163         u16_mbtouc -> u16_mbtouc_unsafe, u16_mbtouc_safe -> u16_mbtouc.
68164         * modules/utf16-ucs4-unsafe: Renamed from modules/utf16-ucs4.
68165         * lib/utf16-ucs4-unsafe.h: Renamed from lib/utf16-ucs4.h.
68166         * lib/unistr/utf16-ucs4-unsafe.c: Renamed from lib/unistr/utf16-ucs4.c.
68167         * modules/unistr/u16-mbtouc-unsafe: Renamed from
68168         modules/unistr/u16-mbtouc.
68169         * lib/unistr/u16-mbtouc-unsafe.c: Renamed from lib/unistr/u16-mbtouc.c.
68170         * lib/unistr.h: Update.
68171         * lib/linebreak.c: Update.
68172         * modules/linebreak: Update.
68173         * modules/utf16-ucs4: Renamed from modules/utf16-ucs4-safe.
68174         * lib/utf16-ucs4.h: Renamed from lib/utf16-ucs4-safe.h.
68175         * lib/unistr/utf16-ucs4.c: Renamed from lib/unistr/utf16-ucs4-safe.c.
68176         * modules/unistr/u16-mbtouc: Renamed from
68177         modules/unistr/u16-mbtouc-safe.
68178         * lib/unistr/u16-mbtouc.c: Renamed from lib/unistr/u16-mbtouc-safe.c.
68179         * lib/unistr.h: Update.
68180         * lib/unistr/u16-to-u8.c: Update.
68181         * modules/unistr/u16-to-u8: Update.
68182         * lib/unistr/u16-to-u32.c: Update.
68183         * modules/unistr/u16-to-u32: Update.
68184
68185 2007-01-27  Bruno Haible  <bruno@clisp.org>
68186
68187         Rename utf8-ucs4 -> utf8-ucs4-unsafe, utf8-ucs4-safe -> utf8-ucs4,
68188         u8_mbtouc -> u8_mbtouc_unsafe, u8_mbtouc_safe -> u8_mbtouc.
68189         * modules/utf8-ucs4-unsafe: Renamed from modules/utf8-ucs4.
68190         * lib/utf8-ucs4-unsafe.h: Renamed from lib/utf8-ucs4.h.
68191         * lib/unistr/utf8-ucs4-unsafe.c: Renamed from lib/unistr/utf8-ucs4.c.
68192         * modules/unistr/u8-mbtouc-unsafe: Renamed from
68193         modules/unistr/u8-mbtouc.
68194         * lib/unistr/u8-mbtouc-unsafe.c: Renamed from lib/unistr/u8-mbtouc.c.
68195         * lib/unistr.h: Update.
68196         * lib/striconveh.c: Update.
68197         * modules/striconveh: Update.
68198         * lib/linebreak.c: Update.
68199         * modules/linebreak: Update.
68200         * modules/utf8-ucs4: Renamed from modules/utf8-ucs4-safe.
68201         * lib/utf8-ucs4.h: Renamed from lib/utf8-ucs4-safe.h.
68202         * lib/unistr/utf8-ucs4.c: Renamed from lib/unistr/utf8-ucs4-safe.c.
68203         * modules/unistr/u8-mbtouc: Renamed from modules/unistr/u8-mbtouc-safe.
68204         * lib/unistr/u8-mbtouc.c: Renamed from lib/unistr/u8-mbtouc-safe.c.
68205         * lib/unistr.h: Update.
68206         * lib/striconveh.c: Update.
68207         * modules/striconveh: Update.
68208         * lib/unistr/u8-to-u16.c: Update.
68209         * modules/unistr/u8-to-u16: Update.
68210         * lib/unistr/u8-to-u32.c: Update.
68211         * modules/unistr/u8-to-u32: Update.
68212
68213 2007-01-27  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
68214
68215         Sync from Libtool.
68216         * lib/argz.c: Do not include strings.h nor memory.h, include
68217         string.h unconditionally.  Patch by Simon Josefsson.
68218
68219 2007-01-27  Bruno Haible  <bruno@clisp.org>
68220
68221         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): New macro, extracted
68222         from gl_HEADER_STRING_H_BODY.
68223         (gl_HEADER_STRING_H_BODY): Require it.
68224         * m4/memmem.m4 (gl_FUNC_MEMMEM): Require gl_HEADER_STRING_H_DEFAULTS.
68225         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Likewise.
68226         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Likewise.
68227         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Likewise.
68228         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
68229         * m4/strcase.m4 (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP): Likewise.
68230         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
68231         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Likewise.
68232         * m4/strdup.m4 (gl_FUNC_STRDUP): Likewise.
68233         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
68234         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Likewise.
68235         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Likewise.
68236         * m4/strsep.m4 (gl_FUNC_STRSEP): Likewise.
68237         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
68238         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
68239
68240 2007-01-27  Bruno Haible  <bruno@clisp.org>
68241
68242         * gnulib-tool (func_emit_lib_Makefile_am): If $for_test is true, turn
68243         check_PROGRAMS into noinst_PROGRAMS.
68244         (func_emit_tests_Makefile_am): Likewise. Also don't initialize
68245         check_PROGRAMS in this case.
68246         (func_import): Set for_test to false.
68247         (func_create_testdir): Set for_test to true.
68248
68249 2007-01-27  Yoann Vandoorselaere <yoann.v@prelude-ids.com>
68250             Bruno Haible  <bruno@clisp.org>
68251
68252         * modules/strcasestr (Files): Remove lib/strcasestr.h.
68253         (Depends-on): Add string.
68254         (Includes): Use <string.h> instead of strcasestr.h.
68255         * modules/string (Makefile.am): Also substitute the value of
68256         REPLACE_STRCASESTR.
68257         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Don't define strcasestr here;
68258         assume strcasestr is declared in <string.h> not <strings.h>. Also
68259         set REPLACE_STRCASESTR.
68260         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Provide a default value for
68261         REPLACE_STRCASESTR.
68262         * lib/strcasestr.h: Remove file.
68263         * lib/strcasestr.c: Include <string.h> instead of strcasestr.h.
68264         * lib/string_.h (strcasestr): New declaration.
68265
68266 2007-01-27  Bruno Haible  <bruno@clisp.org>
68267
68268         * lib/string_.h: Use 'extern'.
68269
68270 2007-01-27  Jim Meyering  <jim@meyering.net>
68271
68272         * lib/regex_internal.c (re_string_reconstruct): Remove declaration
68273         of set-but-not-used local, "q".
68274
68275         * lib/mempcpy.c: Include <config.h> before <string.h>.
68276         This fixes a compilation error on HP-UX, due to the system's
68277         "restrict"-using mempcpy prototype.
68278
68279 2007-01-26  Bruno Haible  <bruno@clisp.org>
68280
68281         Small optimization.
68282         * lib/javacomp.c: Include c-strstr.h.
68283          (is_envjavac_gcj): Use c_strstr instead of strstr.
68284         * modules/javacomp (Depends-on): Add c-strstr, remove strstr.
68285
68286 2007-01-26  Bruno Haible  <bruno@clisp.org>
68287
68288         * MODULES.html.sh (Unicode string functions): Add the new modules.
68289
68290         * modules/uniconv/u32-strconv-to-locale: New file.
68291         * lib/uniconv/u32-strconv-to-locale.c: New file.
68292
68293         * modules/uniconv/u16-strconv-to-locale: New file.
68294         * lib/uniconv/u16-strconv-to-locale.c: New file.
68295
68296         * modules/uniconv/u8-strconv-to-locale: New file.
68297         * lib/uniconv/u8-strconv-to-locale.c: New file.
68298
68299         * modules/uniconv/u32-strconv-from-locale: New file.
68300         * lib/uniconv/u32-strconv-from-locale.c: New file.
68301
68302         * modules/uniconv/u16-strconv-from-locale: New file.
68303         * lib/uniconv/u16-strconv-from-locale.c: New file.
68304
68305         * modules/uniconv/u8-strconv-from-locale: New file.
68306         * lib/uniconv/u8-strconv-from-locale.c: New file.
68307
68308         * modules/uniconv/u32-strconv-to-enc: New file.
68309         * lib/uniconv/u32-strconv-to-enc.c: New file.
68310         * modules/uniconv/u32-strconv-to-enc-tests: New file.
68311         * tests/uniconv/test-u32-strconv-to-enc.c: New file.
68312
68313         * modules/uniconv/u16-strconv-to-enc: New file.
68314         * lib/uniconv/u16-strconv-to-enc.c: New file.
68315         * lib/uniconv/u-strconv-to-enc.h: New file.
68316         * modules/uniconv/u16-strconv-to-enc-tests: New file.
68317         * tests/uniconv/test-u16-strconv-to-enc.c: New file.
68318
68319         * modules/uniconv/u8-strconv-to-enc: New file.
68320         * lib/uniconv/u8-strconv-to-enc.c: New file.
68321         * modules/uniconv/u8-strconv-to-enc-tests: New file.
68322         * tests/uniconv/test-u8-strconv-to-enc.c: New file.
68323
68324         * modules/uniconv/u32-strconv-from-enc: New file.
68325         * lib/uniconv/u32-strconv-from-enc.c: New file.
68326         * modules/uniconv/u32-strconv-from-enc-tests: New file.
68327         * tests/uniconv/test-u32-strconv-from-enc.c: New file.
68328
68329         * modules/uniconv/u16-strconv-from-enc: New file.
68330         * lib/uniconv/u16-strconv-from-enc.c: New file.
68331         * modules/uniconv/u16-strconv-from-enc-tests: New file.
68332         * tests/uniconv/test-u16-strconv-from-enc.c: New file.
68333
68334         * modules/uniconv/u8-strconv-from-enc: New file.
68335         * lib/uniconv/u8-strconv-from-enc.c: New file.
68336         * lib/uniconv/u-strconv-from-enc.h: New file.
68337         * modules/uniconv/u8-strconv-from-enc-tests: New file.
68338         * tests/uniconv/test-u8-strconv-from-enc.c: New file.
68339
68340         * modules/uniconv/u32-conv-from-enc: New file.
68341         * lib/uniconv/u32-conv-from-enc.c: New file.
68342         * modules/uniconv/u32-conv-from-enc-tests: New file.
68343         * tests/uniconv/test-u32-conv-from-enc.c: New file.
68344
68345         * modules/uniconv/u16-conv-from-enc: New file.
68346         * lib/uniconv/u16-conv-from-enc.c: New file.
68347         * lib/uniconv/u-conv-from-enc.h: New file.
68348         * modules/uniconv/u16-conv-from-enc-tests: New file.
68349         * tests/uniconv/test-u16-conv-from-enc.c: New file.
68350
68351         * modules/uniconv/u8-conv-from-enc: New file.
68352         * lib/uniconv/u8-conv-from-enc.c: New file.
68353         * modules/uniconv/u8-conv-from-enc-tests: New file.
68354         * tests/uniconv/test-u8-conv-from-enc.c: New file.
68355
68356         * modules/uniconv/base: New file.
68357         * lib/uniconv.h: New file.
68358
68359 2007-01-26  Paul Eggert  <eggert@cs.ucla.edu>
68360
68361         * doc/gnulib-tool.texi (Initial import): Update to match current
68362         behavior with strdup module.
68363         * lib/.cppi-disable: Remove strcase.h, strdup.h, strndup.h, strnlen.h.
68364         * lib/memmem.h: Remove; all uses removed.  This is now done
68365         by <string.h>.
68366         * lib/mempcpy.h: Likewise.
68367         * lib/memrchr.h: Likewise.
68368         * lib/stpcpy.h: Likewise.
68369         * lib/stpncpy.h: Likewise.
68370         * lib/strcase.h: Likewise.
68371         * lib/strchrnul.h: Likewise.
68372         * lib/strdup.h: Likewise.
68373         * lib/strndup.h: Likewise.
68374         * lib/strnlen.h: Likewise.
68375         * lib/strpbrk.h: Likewise.
68376         * lib/strsep.h: Likewise.
68377         * lib/strstr.h: Likewise.
68378         * lib/strtok_r.h: Likewise.
68379         * lib/string_.h: New file.
68380         * lib/argp-namefrob.h: Don't include no-longer-existent include files.
68381         Rely on <string.h> instead.
68382         * lib/canon-host.c: Likewise.
68383         * lib/chdir-long.c: Likewise.
68384         * lib/concatpath.c: Likewise.
68385         * lib/exclude.c: Likewise.
68386         * lib/fchdir.c: Likewise.
68387         * lib/getaddrinfo.c: Likewise.
68388         * lib/getcwd.c: Likewise.
68389         * lib/getsubopt.c: Likewise.
68390         * lib/glob.c: Likewise.
68391         * lib/hard-locale.c: Likewise.
68392         * lib/iconvme.c: Likewise.
68393         * lib/javacomp.c: Likewise.
68394         * lib/mempcpy.c: Likewise.
68395         * lib/memrchr.c: Likewise.
68396         * lib/regex_internal.h: Likewise.
68397         * lib/stpncpy.c: Likewise.
68398         * lib/strcasecmp.c: Likewise.
68399         * lib/strchrnul.c: Likewise.
68400         * lib/strdup.c: Likewise.
68401         * lib/striconv.c: Likewise.
68402         * lib/striconveh.c: Likewise.
68403         * lib/striconveha.c: Likewise.
68404         * lib/strncasecmp.c: Likewise.
68405         * lib/strndup.c: Likewise.
68406         * lib/strnlen.c: Likewise.
68407         * lib/strsep.c: Likewise.
68408         * lib/strstr.c: Likewise.
68409         * lib/strtok_r.c: Likewise.
68410         * lib/userspec.c: Likewise.
68411         * lib/w32spawn.h: Likewise.
68412         * lib/xstrndup.c: Likewise.
68413         * lib/mountlist.c (strstr): Remove decl.
68414         * m4/string_h.m4: New file.
68415         * m4/memmem.m4 (gl_FUNC_MEMMEM): Set HAVE_DECL_MEMMEM if necessary.
68416         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Set HAVE_MEMPCPY if necessary.
68417         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Set HAVE_MEMRCHR
68418         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Set HAVE_STPCPY if necessary.
68419         * m4/stpncpy.m4 (gl_PREREQ_STPNCPY): Set HAVE_STPNCPY if necessary.
68420         * m4/strcase.m4 (gl_FUNC_STRCASECMP):
68421         Set REPLACE_STRCASECMP if necessary.
68422         (gl_FUNC_STRNCASECMP): Set HAVE_DECL_STRNCASECMP if necessary.
68423         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Set HAVE_STRCHRNUL if necessary.
68424         * m4/strdup.m4 (gl_FUNC_STRDUP): Set HAVE_DECL_STRDUP if necessary.
68425         * m4/strndup.m4 (gl_FUNC_STRNDUP): Set HAVE_DECL_STRNLEN and
68426         HAVE_DECL_STRDUP if necessary.
68427         (gl_PREREQ_STRNLEN): Don't bother to check for strnlen decl,
68428         since gl_FUNC_STRNDUP does that now.
68429         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Set HAVE_DECL_STRNLEN if necessary.
68430         Check for decl here...
68431         (gl_PREREQ_STRNLEN): ... not here.
68432         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Set HAVE_STRPBRK if necessary.
68433         * m4/strsep.m4 (gl_FUNC_STRSEP): Set HAVE_STRSEP if necessary.
68434         * m4/strstr.m4 (gl_FUNC_STRSTR): Set REPLACE_STRSTR if necessary.
68435         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Set HAVE_DECL_STRTOK_R if
68436         necessary.
68437         * modules/string: New file.
68438         * modules/memmem (Files): Remove special-purpose include file.
68439         (Depends-on): Add string.
68440         (Include): Include <string.h>, not the removed file.
68441         * modules/mempcpy: Likewise.
68442         * modules/memrchr: Likewise.
68443         * modules/stpcpy: Likewise.
68444         * modules/stpncpy: Likewise.
68445         * modules/strcase: Likewise.
68446         * modules/strchrnul: Likewise.
68447         * modules/strdup: Likewise.
68448         * modules/strndup: Likewise.
68449         * modules/strnlen: Likewise.
68450         * modules/strpbrk: Likewise.
68451         * modules/strsep: Likewise.
68452         * modules/strstr: Likewise.
68453         * modules/strtok_r: Likewise.
68454         * tests/test-dirname.c: Don't include "strdup.h", since
68455         <string.h> now suffices.
68456         * tests/test-memmem.c: Don't include "memmem.h", since
68457         <string.h> now suffices.
68458
68459 2007-01-25  Bruno Haible  <bruno@clisp.org>
68460
68461         * lib/striconveh.c (mem_cd_iconveh_internal): Ignore *lengthp if
68462         *resultp is 0.
68463
68464         * lib/unistr/u16-to-u8.c (u16_to_u8): Fix u8_uctomb invocation.
68465         * lib/unistr/u32-to-u8.c (u32_to_u8): Likewise.
68466         * lib/unistr/u8-to-u16.c (u8_to_u16): Fix u16_uctomb invocation.
68467         * lib/unistr/u32-to-u16.c (u32_to_u16): Likewise.
68468
68469         * modules/unistr/u8-to-u16 (Depends-on): Add missing modules.
68470         * modules/unistr/u8-to-u32 (Depends-on): Add missing modules.
68471         * modules/unistr/u16-to-u8 (Depends-on): Add missing modules.
68472         * modules/unistr/u16-to-u32 (Depends-on): Add missing modules.
68473         * modules/unistr/u32-to-u8 (Depends-on): Add missing modules.
68474         * modules/unistr/u32-to-u16 (Depends-on): Add missing modules.
68475
68476 2007-01-24  Bruno Haible  <bruno@clisp.org>
68477
68478         Don't AC_REQUIRE autoconf macros that invoke AC_LIBOBJ. See
68479         <http://lists.gnu.org/archive/html/bug-gnulib/2006-10/msg00279.html>.
68480         * m4/argp.m4 (gl_ARGP): Invoke, don't require, gl_GETOPT_SUBSTITUTE.
68481         * m4/fts.m4 (gl_FUNC_FTS, gl_FUNC_FTS_LGPL): Invoke, don't require,
68482         gl_FUNC_FTS_CORE.
68483         (gl_FUNC_FTS_CORE): Invoke, don't require, gl_FUNC_OPENAT.
68484         * m4/lstat.m4 (gl_FUNC_LSTAT): Invoke, don't require,
68485         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
68486         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Invoke, don't require, AC_FUNC_MEMCMP.
68487         * m4/mktime.m4 (gl_FUNC_MKTIME): Invoke, don't require, AC_FUNC_MKTIME.
68488         * m4/openat.m4 (gl_FUNC_OPENAT): Invoke, don't require,
68489         gl_FUNC_FCHOWNAT.
68490         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Invoke, don't require,
68491         gl_FUNC_STRFTIME.
68492         * m4/strtod.m4 (gl_FUNC_STRTOD): Invoke, don't require, AC_FUNC_STRTOD.
68493         Reported by Ralf Wildenhues.
68494
68495 2007-01-24  Bruno Haible  <bruno@clisp.org>
68496
68497         Drop AC_REQUIRE calls that are redundant with the module dependencies.
68498         * m4/canon-host.m4 (gl_PREREQ_CANON_HOST): Don't require
68499         gl_GETADDRINFO.
68500         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Don't require AM_STDBOOL_H,
68501         gl_FUNC_MEMPCPY, gl_FUNC_OPENAT, gl_FUNC_MEMRCHR.
68502         * m4/openat.m4 (gl_PREREQ_OPENAT): Don't require gl_SAVE_CWD.
68503
68504 2007-01-24  Paul Eggert  <eggert@cs.ucla.edu>
68505
68506         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Add test for glibc bug 361.
68507         Don't use 'exit'; just return from 'main'.
68508         (_AC_LIBOBJ_FNMATCH): Check for headers and functions just once.
68509
68510         * lib/fnmatch_.h: Readjust white space and comments to match
68511         glibc, to avoid spurious diffs.
68512
68513 2007-01-23  Paul Eggert  <eggert@cs.ucla.edu>
68514
68515         * lib/fnmatch_loop.c (internal_fnmatch) [!_LIBC]: #if-out the
68516         2004-12-01 change by Jakub Jelinek, since this code won't compile
68517         if !LIBC.  Problem reported by Bob Proulx.
68518
68519 2007-01-23  Bruno Haible  <bruno@clisp.org>
68520
68521         * lib/striconveh.c: Include c-strcaseeq.h.
68522         (mem_iconveh, str_iconveh): Use STRCASEEQ instead of c_strcasecmp.
68523         * modules/striconveh (Depends-on): Add c-strcaseeq.
68524
68525 2007-01-23  Bruno Haible  <bruno@clisp.org>
68526
68527         * MODULES.html.sh (String handling): Add streq, c-strcaseeq.
68528
68529         * modules/c-strcaseeq: New file.
68530         * lib/c-strcaseeq.h: New file.
68531
68532         * modules/streq: New file.
68533         * lib/streq.h: New file.
68534
68535 2007-01-23  Bruno Haible  <bruno@clisp.org>
68536
68537         * modules/striconveha-tests: New file.
68538         * tests/test-striconveha.c: New file.
68539
68540         * lib/striconveha.h: Include <stdbool.h>.
68541         (mem_iconveha, str_iconveha): Add 'transliterate' argument.
68542         * lib/striconveha.c: Include allocsa.h, strdup.h, c-strcase.h.
68543         (mem_iconveha_notranslit): Renamed from mem_iconveha.
68544         (mem_iconveha): New function.
68545         (str_iconveha_notranslit): Renamed from str_iconveha.
68546         (str_iconveha): New function.
68547         * modules/striconveha (Depends-on): Add stdbool, allocsa, strdup,
68548         c-strcase.
68549
68550 2007-01-23  Bruno Haible  <bruno@clisp.org>
68551
68552         * lib/striconveha.c (mem_iconveha): Fix endless recursion. Try all
68553         encodings without forgiving before trying any encoding with handler.
68554         (str_iconveha): Try all encodings without forgiving before trying any
68555         encoding with handler.
68556
68557 2007-01-23  Paul Eggert  <eggert@cs.ucla.edu>
68558
68559         Import the following changes from libc.
68560
68561         2005-10-14  Ulrich Drepper  <drepper@redhat.com>
68562
68563         * lib/fnmatch_loop.c: Adjust for changed secondary hash function.
68564
68565         2004-12-01  Jakub Jelinek  <jakub@redhat.com>
68566
68567         * lib/fnmatch_loop.c (internal_fnmatch): Clear is_seqval after
68568         normal_bracket label.
68569
68570         2004-09-01  Jakub Jelinek  <jakub@redhat.com>
68571
68572         [BZ #361]
68573         * lib/fnmatch_loop.c (FCT): For backslash between brackets, branch
68574         to normal_bracket after fetching the next character.
68575
68576 2007-01-22  Bruno Haible  <bruno@clisp.org>
68577
68578         * lib/striconveh.h (mem_cd_iconveh, mem_iconveh): Add 'offsets'
68579         argument.
68580         * lib/striconveh.c (iconv_carefully_1): New function.
68581         (mem_cd_iconveh_internal, mem_cd_iconveh, mem_iconveh): Add 'offsets'
68582         argument.
68583         (str_cd_iconveh): Update.
68584         * lib/striconveha.h (mem_iconveha): Add 'offsets' argument.
68585         * lib/striconveha.c (mem_iconveha): Add 'offsets' argument.
68586         * tests/test-striconveh.c (MAGIC): New macro.
68587         (new_offsets): New function.
68588         (main): Test call with and without offsets.
68589
68590 2007-01-22  Bruno Haible  <bruno@clisp.org>
68591
68592         * modules/sys_stat (Makefile.am): Use @MKDIR_P@ instead of $(MKDIR_P).
68593         * modules/sys_select (Makefile.am): Likewise.
68594         * modules/sys_socket (Makefile.am): Likewise.
68595         * modules/sys_time (Makefile.am): Likewise.
68596
68597 2007-01-22  Paul Eggert  <eggert@cs.ucla.edu>
68598
68599         * modules/gettimeofday (License): Change from GPL to LGPL, since
68600         gettimeofday is a library function.
68601
68602 2007-01-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
68603
68604         * lib/poll.c (rpl_poll): Don't check against FD_SETSIZE under Win32.
68605
68606 2007-01-21  Bruno Haible  <bruno@clisp.org>
68607
68608         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): New macro.
68609
68610 2007-01-21  Bruno Haible  <bruno@clisp.org>
68611
68612         * modules/striconveha: New file.
68613         * lib/striconveha.h: New file.
68614         * lib/striconveha.c: New file.
68615         * MODULES.html.sh (Internationalization functions): Add striconveha.
68616         * lib/striconv.c (str_iconv): Optimize the case of an empty input
68617         string.
68618         * lib/striconveh.c (mem_iconveh, str_iconveh): Likewise.
68619
68620 2007-01-21  Bruno Haible  <bruno@clisp.org>
68621
68622         * lib/striconv.c (str_iconv): Guarantee errno is set when strdup fails.
68623         * lib/striconveh.c (str_iconveh): Likewise.
68624
68625 2007-01-21  Bruno Haible  <bruno@clisp.org>
68626
68627         * lib/striconveh.h (mem_iconveh): New declaration.
68628         * lib/striconveh.c (mem_iconveh): New function.
68629         * tests/test-striconveh.c (main): Add tests for mem_iconveh.
68630
68631 2007-01-21  Bruno Haible  <bruno@clisp.org>
68632
68633         * lib/xstriconv.h (xmem_cd_iconv): Change specification.
68634
68635         * lib/striconveh.h (mem_cd_iconveh): Change specification.
68636         * lib/striconveh.c (mem_cd_iconveh): Don't free the user-supplied
68637         original result buffer.
68638         (str_cd_iconveh): Update.
68639         * tests/test-striconveh.c (main): Update.
68640
68641         * lib/striconv.h (mem_cd_iconv): Change specification.
68642         * lib/striconv.c (mem_cd_iconv): Don't free the user-supplied original
68643         result buffer.
68644         (str_cd_iconv): Update.
68645         * tests/test-striconv.c (main): Update.
68646
68647 2007-01-21  Bruno Haible  <bruno@clisp.org>
68648
68649         * gnulib-tool: Fix test whether sed is GNU sed supporting --posix.
68650
68651 2007-01-20  Jim Meyering  <jim@meyering.net>
68652
68653         * lib/userspec.c (parse_with_separator): If a user or group string
68654         starts with "+", skip the corresponding name-to-ID look-up, since
68655         such a look-up must fail: user and group names may not include "+".
68656
68657 2007-01-19  Paul Eggert  <eggert@cs.ucla.edu>
68658
68659         * lib/poll.c: Include sys/time.h and time.h unconditionally,
68660         since we now assume the sys_time module.
68661         * m4/poll.m4 (gl_PREREQ_POLL): Don't require AC_HEADER_TIME or
68662         check for sys/time.h; no longer needed.
68663         * modules/poll (Depends-on): Depend on sys_time.
68664
68665 2007-01-18  Bruno Haible  <bruno@clisp.org>
68666
68667         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove test for <sys/time.h>.
68668         * m4/strftime.m4 (gl_FUNC_STRFTIME): Likewise.
68669
68670         * m4/tempname.m4 (gl_PREREQ_TEMPNAME): Remove tests for sys/time.h and
68671         gettimeofday.
68672
68673         * tests/test-gettimeofday.c: Include <time.h>.
68674         (dummy): Remove variable.
68675
68676         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Renamed from
68677         gl_HEADER_SYS_TIME_H.
68678         (gl_HEADER_SYS_TIME_H): New macro.
68679
68680         * lib/sys_time_.h: Test GETTIMEOFDAY_REPLACEMENT instead of
68681         HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
68682         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY,
68683         gl_FUNC_GETTIMEOFDAY_CLOBBER): Set GETTIMEOFDAY_REPLACEMENT instead of
68684         HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
68685         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H): Initialize
68686         GETTIMEOFDAY_REPLACEMENT instead of HAVE_GETTIMEOFDAY_POSIX_SIGNATURE
68687         and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
68688         * modules/sys_time (sys/time.h): Substitute GETTIMEOFDAY_REPLACEMENT
68689         instead of HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and
68690         GETTIMEOFDAY_CLOBBERS_LOCALTIME.
68691
68692         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Undo the
68693         last change; it caused a compilation error when cross-compiling to
68694         Cygwin.
68695
68696 2007-01-18  Jim Meyering  <jim@meyering.net>
68697
68698         Use "$(MKDIR_P) sys", not race-prone "test -d sys || mkdir sys".
68699         * modules/sys_stat (Makefile.am): Use "$(MKDIR_P) sys", rather
68700         than the race-prone "test -d sys || mkdir sys".
68701         (configure.ac): Use AC_PROG_MKDIR_P.
68702         * modules/sys_select: Likewise.
68703         * modules/sys_socket: Likewise.
68704         * modules/sys_time: Likewise.
68705
68706 2007-01-18  Eric Blake  <ebb9@byu.net>
68707
68708         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Also
68709         replace gettimeofday.
68710         * lib/gettimeofday.c (rpl_gettimeofday): Declare with replacement
68711         name, to avoid infinite recursion.
68712
68713 2007-01-17  Paul Eggert  <eggert@cs.ucla.edu>
68714
68715         * MODULES.html.sh (Support for systems lacking POSIX:2001): New
68716         module sys_time.
68717         * lib/gethrxtime.c: Include <sys/time.h>, since we can no longer
68718         assume timespec.h defines struct timeval.
68719         * lib/settime.c: Likewise.
68720         * lib/utimens.c: Likewise.
68721         * lib/gettime.c (gettime): Remove test against HAVE_GETTIMEOFDAY,
68722         since we now assume the gettimeofday module.
68723         * lib/tempname.c (__gen_tempname): Likewise.
68724         * lib/gettimeofday.h: Remove.
68725         * lib/gettimeofday.c: Include <sys/time.h> instead of "gettimeofday.h".
68726         Don't include <sys/types.h> and <stdlib.h>; shouldn't be needed.
68727         Include <time.h>, for 'time()'.
68728         (localtime_buffer_addr): Also use this workaround if
68729         TZSET_CLOBBERS_LOCALTIME.  Set to a dummy static variable by default,
68730         to simplify the uses.  All uses changed.
68731         (localtime, gmtime, tzset, gettimeofday): Reformat slightly so
68732         that #undef is inside {}, and 'const' follows type name consistently.
68733         (tzset): Define replacement only if TZSET_CLOBBERS_LOCALTIME.
68734         (gettimeofday): Do not use the maximum possible value for
68735         tv->tv_usec, since that might break usages other than ls.c.
68736         Instead, we'll leave ls.c alone.  This undoes today's patch
68737         by Bruno.  Add a compile-time warning for 1s-clock resolution;
68738         we've never observed the problem but might as well keep the
68739         canary.
68740         * lib/nanosleep.c: Include timespec.h first, for interface check.
68741         * lib/nanosleep.c: Include <sys/time.h> unconditionally, since we
68742         now assume the sys_time module.
68743         * lib/tempname.c: Likewise.
68744         * lib/timespec.h: Likewise.
68745         * lib/nanosleep.c: Don't worry about TIME_WITH_SYS_TIME; no longer
68746         needed.
68747         * lib/strftime.c: Likewise.
68748         * lib/timespec.h: Likewise.
68749         * lib/posixtm.c: Include posixtm.h first, for interface check.
68750         Don't worry about TM_IN_SYS_TIME; that's wayyy obsolete.
68751         * lib/posixtm.h: Include stdbool.h and time.h, for proper interface.
68752         * lib/strftime.c: Don't include <sys/types.h>; shouldn't be needed.
68753         * lib/sys_time_.h: New file.
68754         * lib/timespec.h (struct timespec): Use long int, not long.
68755         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY):
68756         (gl_FUNC_GETTIMEOFDAY_CLOBBER, gl_PREREQ_GETTIMEOFDAY):
68757         Remove obsolescent call to AC_HEADER_TIME.
68758         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
68759         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
68760         * m4/strftime.m4 (gl_FUNC_STRFTIME): Likewise.
68761         * m4/timespec.m4 (gl_TIMESPEC, gl_CHECK_TYPE_STRUCT_TIMESPEC):
68762         Likewise.
68763         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Likewise.
68764         * m4/utimbuf.m4 (gl_CHECK_TYPE_STRUCT_UTIMBUF): Likewise.
68765         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Move sys/time.h tests
68766         into the sys_time module.  Check for gettimeofday just once.
68767         Prefix our variables with gl_, not with ac_ or jm_.  Tighten test
68768         for gettimeofday signature to just check the signature.  Merely
68769         compile it, since linking doesn't test signature.  Improve test for
68770         whether gettimeofday.o is actually needed.
68771         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Renamed from
68772         AC_FUNC_GETTIMEOFDAY_CLOBBER.  All uses changed.  Use
68773         AC_RUN_IFELSE rather than AC_TRY_RUN.  If clobbering, set
68774         and define GETTIMEOFDAY_CLOBBERS_LOCALTIME.
68775         (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Don't define
68776         GETTIMEOFDAY_CLOBBERS_LOCALTIME; that's gl_FUNC_GETTIMEOFDAY_CLOBBER's
68777         job.  Don't define tzset; that's gl_FUNC_TZSET_CLOBBER's job.
68778         * m4/mktime.m4 (AC_FUNC_MKTIME): Just include <time.h> rather
68779         than worrying about sys/time.h.
68780         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
68781         Don't bother worrying about TIME_WITH_SYS_TIME.
68782         * m4/stat-time.m4 (gl_STAT_TIME): Likewise.
68783         * m4/posixtm.m4 (gl_POSIXTM): Remove obsolescent call to AC_STRUCT_TM.
68784         * m4/sys_time_h.m4: New file.
68785         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Require gl_HEADER_SYS_TIME_H.
68786         Don't include sys/time.h.  Return from main rather than exiting.
68787         Define TZSET_CLOBBERS_LOCALTIME, for consistency with other names;
68788         all uses changed.
68789         * modules/gethrxtime (Depends-on): Add sys_time.
68790         * modules/gettime (Depends-on): Likewise.
68791         * modules/gettimeofday (Depends-on): Likewise.
68792         * modules/nanosleep (Depends-on): Likewise.
68793         * modules/settime (Depends-on): Likewise.
68794         * modules/tempname (Depends-on): Likewise.
68795         * modules/utimens (Depends-on): Likewise.
68796         * modules/gettimeofday (Files): Remove lib/gettimeofday.h.
68797         (Include): Change back to <sys/time.h>.
68798         (Maintainer): Add self.
68799         * modules/sys_time: New file.
68800         * modules/tempname (Depends-on): Add gettimeofday.
68801         * tests/test-gettimeofday.c: Include <sys/time.h>
68802         rather than gettimeofday.h.
68803
68804 2007-01-17  Bruno Haible  <bruno@clisp.org>
68805
68806         * gnulib-tool (func_get_license): Revert last patch. Instead, let
68807         the license default to GPL.
68808         (func_create_testdir): Don't complain if a module is LGPL and its
68809         tests module depends on GPLed modules.
68810
68811 2007-01-17  Bruno Haible  <bruno@clisp.org>
68812
68813         * lib/gettimeofday.c (gettimeofday): Add code for the case
68814         HAVE_GETTIMEOFDAY && !GETTIMEOFDAY_CLOBBERS_LOCALTIME. Use the
68815         maximum possible value for tv->tv_usec, rather than the minimum one.
68816
68817 2005-10-08  Martin Lambers  <marlam@marlam.de>
68818 2005-10-08  Paul Eggert  <eggert@cs.ucla.edu>
68819 2007-01-16  Bruno Haible  <bruno@clisp.org>
68820
68821         * modules/gettimeofday (Files): Add lib/gettimeofday.h.
68822         (configure.ac): Remove AC_FUNC_GETTIMEOFDAY_CLOBBER. Add
68823         gl_FUNC_GETTIMEOFDAY.
68824         (Include): Add gettimeofday.h.
68825         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): New macro.
68826         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Don't invoke gl_PREREQ_GETTIMEOFDAY.
68827         (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Define
68828         GETTIMEOFDAY_CLOBBERS_LOCALTIME. Invoke gl_PREREQ_GETTIMEOFDAY here.
68829         (gl_PREREQ_GETTIMEOFDAY): Check for <sys/timeb.h> and _ftime.
68830         * lib/gettimeofday.h: New file.
68831         * lib/gettimeofday.c: Include <sys/timeb.h>.
68832         (localtime_buffer_addr, rpl_localtime, rpl_gmtime, rpl_tzset): Define
68833         only if GETTIMEOFDAY_CLOBBERS_LOCALTIME.
68834         (rpl_gettimeofday) [!HAVE_GETTIMEOFDAY]: Use _ftime() when available;
68835         fall back on time().
68836
68837         * tests/test-gettimeofday.c: New file.
68838         * modules/gettimeofday-tests: New file.
68839
68840 2007-01-16  Eric Blake  <ebb9@byu.net>
68841
68842         * modules/fnmatch (Depends-on): Depend on wchar.
68843         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Assume <wchar.h>.
68844         * m4/fnmatch.m4: Likewise.
68845         * modules/mbchar (Makefile.am): Assume <wchar.h>.
68846         * m4/mbchar.m4: Likewise.
68847         * modules/mbswidth (Depends-on): Depend on wchar.
68848         * lib/mbswidth.c: Assume <wchar.h>.
68849         * m4/mbswidth.m4: Likewise.
68850         * modules/quotearg (Depends-on): Depend on wchar.
68851         * lib/quotearg.c: Assume <wchar.h>.
68852         * m4/quotearg.m4: Likewise.
68853         * modules/regex (Depends-on): Depend on wchar.
68854         * lib/regex_internal.h: Assume <wchar.h>.
68855         * m4/regex.m4: Likewise.
68856         * modules/stdint (Depends-on): Depend on wchar.
68857         * lib/stdint_.h [!defined WCHAR_MIN]: Assume <wchar.h>.
68858         * m4/stdint.m4: Likewise.
68859         * tests/test-stdint.c [HAVE_WINT_T]: Likewise.
68860         * modules/strftime (Depends-on): Depend on wchar.
68861         * lib/strftime.c (DO_MULTIBYTE): Assume <wchar.h>.
68862         * modules/strtol (Depends-on): Depend on wchar.
68863         * lib/strtol.c: Assume <wchar.h>.
68864         * modules/wcwidth (Depends-on): Depend on wchar.
68865         * lib/wcwidth.h: Assume <wchar.h>.
68866         * m4/wcwidth.m4: Likewise.
68867
68868 2007-01-16  Bruno Haible  <bruno@clisp.org>
68869
68870         * modules/csharpexec-script: New, created from...
68871         * modules/csharpexec: ... this.
68872
68873 2007-01-16  Paolo Bonzini  <bonzini@gnu.org>
68874
68875         * modules/javaexec-script: New, created from...
68876         * modules/javaexec: ... this.
68877
68878 2007-01-16  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
68879
68880         * modules/poll (Dependencies): Add sys_select.
68881
68882 2007-01-15  Jim Meyering  <jim@meyering.net>
68883
68884         * m4/readutmp.m4 (gl_READUTMP): Work around AIX 4.3 struct-
68885         redefinition bug when using both <utmp.h> and <utmpx.h> headers.
68886         * lib/readutmp.h: Likewise.  Reported by Daniel Richard G. in
68887         <http://article.gmane.org/gmane.comp.gnu.core-utils.bugs/9415>.
68888
68889 2007-01-15  Bruno Haible  <bruno@clisp.org>
68890
68891         * modules/striconveh: New file.
68892         * lib/striconveh.h: New file.
68893         * lib/striconveh.c: New file.
68894         * MODULES.html.sh (Internationalization functions): Add striconveh.
68895
68896         * modules/striconveh-tests: New file.
68897         * tests/test-striconveh.c: New file.
68898
68899 2007-01-15  Bruno Haible  <bruno@clisp.org>
68900
68901         * lib/striconv.c (str_cd_iconv): Use the first algorithm if iconv is
68902         not from GNU libiconv or GNU libc.
68903
68904 2007-01-15  Bruno Haible  <bruno@clisp.org>
68905
68906         * doc/gnulib-intro.texi (Copyright): Explain the different license
68907         terms for module descriptions, autoconf macros, tests, documentation.
68908
68909 2007-01-14  Bruno Haible  <bruno@clisp.org>
68910
68911         * modules/striconv-tests: New file.
68912         * tests/test-striconv.c: New file.
68913
68914 2007-01-14  Bruno Haible  <bruno@clisp.org>
68915
68916         * modules/iconv-tests: New file.
68917         * tests/test-iconv.c: New file.
68918
68919 2007-01-14  Bruno Haible  <bruno@clisp.org>
68920
68921         * gnulib-tool (func_get_license): For test modules, use the license of
68922         the main module.
68923
68924 2007-01-14  Bruno Haible  <bruno@clisp.org>
68925
68926         * modules/iconv (Include): Clarify that <iconv.h> can only be included
68927         if iconv is found to exist.
68928
68929 2007-01-14  Bruno Haible  <bruno@clisp.org>
68930
68931         * modules/c-ctype-tests: New file.
68932         * tests/test-c-ctype.c: New file.
68933
68934 2007-01-14  Bruno Haible  <bruno@clisp.org>
68935
68936         * modules/binary-io-tests: New file.
68937         * tests/test-binary-io.sh: New file.
68938         * tests/test-binary-io.c: New file.
68939
68940 2007-01-14  Bruno Haible  <bruno@clisp.org>
68941
68942         * modules/array-oset-tests: New file.
68943         * tests/test-array_oset.c: New file.
68944
68945 2007-01-14  Bruno Haible  <bruno@clisp.org>
68946
68947         * modules/array-list-tests: New file.
68948         * tests/test-array_list.c: New file.
68949
68950 2007-01-14  Bruno Haible  <bruno@clisp.org>
68951
68952         * gnulib-tool (func_create_testdir): Don't unnecessarily run configure
68953         and make.
68954         Reported by Simon Josefsson in
68955         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00139.html>
68956
68957 2007-01-14  Bruno Haible  <bruno@clisp.org>
68958
68959         * modules/allocsa-tests: New file.
68960         * tests/test-allocsa.c: New file.
68961
68962 2007-01-14  Bruno Haible  <bruno@clisp.org>
68963
68964         * modules/fchdir (Depends-on): Add absolute-header.
68965         * modules/unistd (Depends-on): Likewise.
68966
68967 2006-12-30  Bruno Haible  <bruno@clisp.org>
68968
68969         * modules/fchdir: New file.
68970         * modules/unistd (Files): Add lib/unistd_.h.
68971         (Makefile.am): Generate unistd.h from unistd_.h.
68972         * lib/fchdir.c: New file.
68973         * lib/dirent_.h: New file.
68974         * lib/unistd_.h: New file.
68975         * lib/fcntl_.h (open) [FCHDIR_REPLACEMENT]: New replacement.
68976         * m4/fchdir.m4: New file.
68977         * m4/unistd_h.m4 (gl_PREREQ_UNISTD): New macro.
68978         (gl_HEADER_UNISTD): Invoke it.
68979         * lib/dup-safer.c (dup_safer) [FCHDIR_REPLACEMENT]: Use the dup
68980         function.
68981         * lib/backupfile.c (opendir, closedir): Undefine.
68982         * lib/chown.c (open, close): Undefine.
68983         * lib/clean-temp.c (open, close): Undefine.
68984         * lib/copy-file.c (open, close): Undefine.
68985         * lib/execute.c (open, close): Undefine.
68986         * lib/fsusage.c (open, close): Undefine.
68987         * lib/gc-gnulib.c (open, close): Undefine.
68988         * lib/getcwd.c (opendir, closedir): Undefine.
68989         * lib/glob.c (opendir, closedir): Undefine.
68990         * lib/javacomp.c (open, close): Undefine.
68991         * lib/mountlist.c (open, close, opendir, closedir): Undefine.
68992         * lib/openat-proc.c (open, close): Undefine.
68993         * lib/pagealign_alloc.c (open, close): Undefine.
68994         * lib/pipe.c (open, close): Undefine.
68995         * lib/progreloc.c (open, close): Undefine.
68996         * lib/savedir.c (opendir, closedir): Undefine.
68997         * lib/utime.c (open, close): Undefine.
68998         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add fchdir.
68999
69000 2007-01-10  Bruno Haible  <bruno@clisp.org>
69001
69002         * lib/striconv.c (mem_cd_iconv): Align the temporary buffer.
69003
69004 2007-01-12  Eric Blake  <ebb9@byu.net>
69005
69006         Provide a robust <wchar.h>.  Further simplifications are now
69007         possible in other modules, but not included here.
69008         * modules/wchar: New module.
69009         * m4/wchar.m4: New file.
69010         * lib/wchar_.h: Likewise.
69011         * modules/mbchar (Depends-on): Depend on wchar, as the first use
69012         of the new module.
69013         * MODULES.html.sh (Extended multibyte and wide character utilities):
69014         New section.
69015
69016 2007-01-12  Paul Eggert  <eggert@cs.ucla.edu>
69017
69018         * lib/xreadlink.c (SYMLINK_MAX) [!defined SYMLINK_MAX]: Define
69019         to a reasonable default for memory allocation.
69020         (xreadlink): Don't allocate a huge buffer, to work around a buggy
69021         file system that reports garbage st_size values for symlinks.
69022         Problem reported by Liyang Hu.
69023
69024 2007-01-11  Simon Josefsson  <simon@josefsson.org>
69025
69026         * gnulib-tool (func_all_modules): Exclude all .* files (e.g.,
69027         Emacs .#* auto-save files).
69028
69029 2007-01-11  Bruno Haible  <bruno@clisp.org>
69030
69031         * gnulib-tool (func_all_modules): Exclude all files inside the CVS
69032         directory.
69033
69034 2007-01-10  Paul Eggert  <eggert@cs.ucla.edu>
69035
69036         Use @...@ consistently in lib/wctype_.h.
69037         * lib/wctype_.h [HAVE_WINT_T]: Go back to using @...@, but rely
69038         on it being set to 1 or 0.
69039         * m4/wctype.m4 (gl_WCTYPE_H): Set HAVE_WINT_T to 1 or 0, and
69040         go back to AC_SUBSTing it.
69041         * modules/wctype (Makefile.am): Undo previous change.
69042
69043 2007-01-10  Eric Blake  <ebb9@byu.net>
69044
69045         * lib/wctype_.h [HAVE_WINT_T]: Rely on AC_DEFINE.
69046         * m4/wctype.m4 (gl_WCTYPE_H): No need to AC_SUBST(HAVE_WINT_T).
69047         * modules/wctype (Makefile.am): Likewise.
69048         Reported by Chris McGuire.
69049
69050 2007-01-10  Jim Meyering  <jim@meyering.net>
69051
69052         fts.c: a small readability/maintainability improvement
69053         * lib/fts.c (fts_read): Make this code slightly more readable and
69054         maintainable by hoisting the "sp->fts_cur = p" assignments to
69055         immediately follow the statements that set P.  Derived from
69056         the patch by Miloslav Trmac in http://bugzilla.redhat.com/222089.
69057
69058 2007-01-10  Eric Blake  <ebb9@byu.net>
69059
69060         * lib/wctype_.h [HAVE_WINT_T]: Include <stddef.h> before
69061         <wchar.h>, to work around BSDI bug in BSD/OS 4.0.1.
69062         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
69063         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
69064         Reported by Chris McGuire.
69065
69066 2007-01-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
69067
69068         * gnulib-tool (func_all_modules): Use POSIX conforming escaping
69069         in sed script.
69070
69071 2007-01-09  Bruno Haible  <bruno@clisp.org>
69072
69073         * MODULES.html.sh: Accept options --cvs-urls, --git-urls.
69074         (repo_url_prefix, repo_url_suffix, repo_url_suffix_repl): New
69075         variables.
69076         (func_module): Use them.
69077
69078 2007-01-09  Bruno Haible  <bruno@clisp.org>
69079
69080         * modules/unistr/base: New file.
69081         * lib/unistr.h: New file.
69082
69083         * modules/unistr/u8-to-u16: New file.
69084         * lib/unistr/u8-to-u16.c: New file.
69085
69086         * modules/unistr/u8-to-u32: New file.
69087         * lib/unistr/u8-to-u32.c: New file.
69088
69089         * modules/unistr/u16-to-u8: New file.
69090         * lib/unistr/u16-to-u8.c: New file.
69091
69092         * modules/unistr/u16-to-u32: New file.
69093         * lib/unistr/u16-to-u32.c: New file.
69094
69095         * modules/unistr/u32-to-u8: New file.
69096         * lib/unistr/u32-to-u8.c: New file.
69097
69098         * modules/unistr/u32-to-u16: New file.
69099         * lib/unistr/u32-to-u16.c: New file.
69100
69101         * modules/unistr/u8-check: New file.
69102         * modules/unistr/u16-check: New file.
69103         * modules/unistr/u32-check: New file.
69104         * lib/unistr/u8-check.c: New file.
69105         * lib/unistr/u16-check.c: New file.
69106         * lib/unistr/u32-check.c: New file.
69107
69108         * modules/unistr/u8-chr: New file.
69109         * modules/unistr/u16-chr: New file.
69110         * modules/unistr/u32-chr: New file.
69111         * lib/unistr/u8-chr.c: New file.
69112         * lib/unistr/u16-chr.c: New file.
69113         * lib/unistr/u32-chr.c: New file.
69114
69115         * modules/unistr/u8-cmp: New file.
69116         * modules/unistr/u16-cmp: New file.
69117         * modules/unistr/u32-cmp: New file.
69118         * lib/unistr/u8-cmp.c: New file.
69119         * lib/unistr/u16-cmp.c: New file.
69120         * lib/unistr/u32-cmp.c: New file.
69121
69122         * modules/unistr/u8-cpy: New file.
69123         * modules/unistr/u16-cpy: New file.
69124         * modules/unistr/u32-cpy: New file.
69125         * lib/unistr/u8-cpy.c: New file.
69126         * lib/unistr/u16-cpy.c: New file.
69127         * lib/unistr/u32-cpy.c: New file.
69128         * lib/unistr/u-cpy.h: New file.
69129
69130         * modules/unistr/u8-cpy-alloc: New file.
69131         * modules/unistr/u16-cpy-alloc: New file.
69132         * modules/unistr/u32-cpy-alloc: New file.
69133         * lib/unistr/u8-cpy-alloc.c: New file.
69134         * lib/unistr/u16-cpy-alloc.c: New file.
69135         * lib/unistr/u32-cpy-alloc.c: New file.
69136         * lib/unistr/u-cpy-alloc.h: New file.
69137
69138         * modules/unistr/u8-endswith: New file.
69139         * modules/unistr/u16-endswith: New file.
69140         * modules/unistr/u32-endswith: New file.
69141         * lib/unistr/u8-endswith.c: New file.
69142         * lib/unistr/u16-endswith.c: New file.
69143         * lib/unistr/u32-endswith.c: New file.
69144         * lib/unistr/u-endswith.h: New file.
69145
69146         * modules/unistr/u8-mblen: New file.
69147         * modules/unistr/u16-mblen: New file.
69148         * modules/unistr/u32-mblen: New file.
69149         * lib/unistr/u8-mblen.c: New file.
69150         * lib/unistr/u16-mblen.c: New file.
69151         * lib/unistr/u32-mblen.c: New file.
69152
69153         * modules/unistr/u8-mbtouc: New file.
69154         * modules/unistr/u16-mbtouc: New file.
69155         * modules/unistr/u32-mbtouc: New file.
69156         * lib/unistr/u8-mbtouc.c: New file.
69157         * lib/unistr/u16-mbtouc.c: New file.
69158         * lib/unistr/u32-mbtouc.c: New file.
69159
69160         * modules/unistr/u8-mbtouc-safe: New file.
69161         * modules/unistr/u16-mbtouc-safe: New file.
69162         * modules/unistr/u32-mbtouc-safe: New file.
69163         * lib/unistr/u8-mbtouc-safe.c: New file.
69164         * lib/unistr/u16-mbtouc-safe.c: New file.
69165         * lib/unistr/u32-mbtouc-safe.c: New file.
69166
69167         * modules/unistr/u8-move: New file.
69168         * modules/unistr/u16-move: New file.
69169         * modules/unistr/u32-move: New file.
69170         * lib/unistr/u8-move.c: New file.
69171         * lib/unistr/u16-move.c: New file.
69172         * lib/unistr/u32-move.c: New file.
69173         * lib/unistr/u-move.h: New file.
69174
69175         * modules/unistr/u8-next: New file.
69176         * modules/unistr/u16-next: New file.
69177         * modules/unistr/u32-next: New file.
69178         * lib/unistr/u8-next.c: New file.
69179         * lib/unistr/u16-next.c: New file.
69180         * lib/unistr/u32-next.c: New file.
69181
69182         * modules/unistr/u8-prev: New file.
69183         * modules/unistr/u16-prev: New file.
69184         * modules/unistr/u32-prev: New file.
69185         * lib/unistr/u8-prev.c: New file.
69186         * lib/unistr/u16-prev.c: New file.
69187         * lib/unistr/u32-prev.c: New file.
69188
69189         * modules/unistr/u8-set: New file.
69190         * modules/unistr/u16-set: New file.
69191         * modules/unistr/u32-set: New file.
69192         * lib/unistr/u8-set.c: New file.
69193         * lib/unistr/u16-set.c: New file.
69194         * lib/unistr/u32-set.c: New file.
69195         * lib/unistr/u-set.h: New file.
69196
69197         * modules/unistr/u8-startswith: New file.
69198         * modules/unistr/u16-startswith: New file.
69199         * modules/unistr/u32-startswith: New file.
69200         * lib/unistr/u8-startswith.c: New file.
69201         * lib/unistr/u16-startswith.c: New file.
69202         * lib/unistr/u32-startswith.c: New file.
69203         * lib/unistr/u-startswith.h: New file.
69204
69205         * modules/unistr/u8-stpcpy: New file.
69206         * modules/unistr/u16-stpcpy: New file.
69207         * modules/unistr/u32-stpcpy: New file.
69208         * lib/unistr/u8-stpcpy.c: New file.
69209         * lib/unistr/u16-stpcpy.c: New file.
69210         * lib/unistr/u32-stpcpy.c: New file.
69211         * lib/unistr/u-stpcpy.h: New file.
69212
69213         * modules/unistr/u8-stpncpy: New file.
69214         * modules/unistr/u16-stpncpy: New file.
69215         * modules/unistr/u32-stpncpy: New file.
69216         * lib/unistr/u8-stpncpy.c: New file.
69217         * lib/unistr/u16-stpncpy.c: New file.
69218         * lib/unistr/u32-stpncpy.c: New file.
69219         * lib/unistr/u-stpncpy.h: New file.
69220
69221         * modules/unistr/u8-strcat: New file.
69222         * modules/unistr/u16-strcat: New file.
69223         * modules/unistr/u32-strcat: New file.
69224         * lib/unistr/u8-strcat.c: New file.
69225         * lib/unistr/u16-strcat.c: New file.
69226         * lib/unistr/u32-strcat.c: New file.
69227         * lib/unistr/u-strcat.h: New file.
69228
69229         * modules/unistr/u8-strchr: New file.
69230         * modules/unistr/u16-strchr: New file.
69231         * modules/unistr/u32-strchr: New file.
69232         * lib/unistr/u8-strchr.c: New file.
69233         * lib/unistr/u16-strchr.c: New file.
69234         * lib/unistr/u32-strchr.c: New file.
69235
69236         * modules/unistr/u8-strcmp: New file.
69237         * modules/unistr/u16-strcmp: New file.
69238         * modules/unistr/u32-strcmp: New file.
69239         * lib/unistr/u8-strcmp.c: New file.
69240         * lib/unistr/u16-strcmp.c: New file.
69241         * lib/unistr/u32-strcmp.c: New file.
69242
69243         * modules/unistr/u8-strcpy: New file.
69244         * modules/unistr/u16-strcpy: New file.
69245         * modules/unistr/u32-strcpy: New file.
69246         * lib/unistr/u8-strcpy.c: New file.
69247         * lib/unistr/u16-strcpy.c: New file.
69248         * lib/unistr/u32-strcpy.c: New file.
69249         * lib/unistr/u-strcpy.h: New file.
69250
69251         * modules/unistr/u8-strcspn: New file.
69252         * modules/unistr/u16-strcspn: New file.
69253         * modules/unistr/u32-strcspn: New file.
69254         * lib/unistr/u8-strcspn.c: New file.
69255         * lib/unistr/u16-strcspn.c: New file.
69256         * lib/unistr/u32-strcspn.c: New file.
69257         * lib/unistr/u-strcspn.h: New file.
69258
69259         * modules/unistr/u8-strdup: New file.
69260         * modules/unistr/u16-strdup: New file.
69261         * modules/unistr/u32-strdup: New file.
69262         * lib/unistr/u8-strdup.c: New file.
69263         * lib/unistr/u16-strdup.c: New file.
69264         * lib/unistr/u32-strdup.c: New file.
69265         * lib/unistr/u-strdup.h: New file.
69266
69267         * modules/unistr/u8-strlen: New file.
69268         * modules/unistr/u16-strlen: New file.
69269         * modules/unistr/u32-strlen: New file.
69270         * lib/unistr/u8-strlen.c: New file.
69271         * lib/unistr/u16-strlen.c: New file.
69272         * lib/unistr/u32-strlen.c: New file.
69273         * lib/unistr/u-strlen.h: New file.
69274
69275         * modules/unistr/u8-strmblen: New file.
69276         * modules/unistr/u16-strmblen: New file.
69277         * modules/unistr/u32-strmblen: New file.
69278         * lib/unistr/u8-strmblen.c: New file.
69279         * lib/unistr/u16-strmblen.c: New file.
69280         * lib/unistr/u32-strmblen.c: New file.
69281
69282         * modules/unistr/u8-strmbtouc: New file.
69283         * modules/unistr/u16-strmbtouc: New file.
69284         * modules/unistr/u32-strmbtouc: New file.
69285         * lib/unistr/u8-strmbtouc.c: New file.
69286         * lib/unistr/u16-strmbtouc.c: New file.
69287         * lib/unistr/u32-strmbtouc.c: New file.
69288
69289         * modules/unistr/u8-strncat: New file.
69290         * modules/unistr/u16-strncat: New file.
69291         * modules/unistr/u32-strncat: New file.
69292         * lib/unistr/u8-strncat.c: New file.
69293         * lib/unistr/u16-strncat.c: New file.
69294         * lib/unistr/u32-strncat.c: New file.
69295         * lib/unistr/u-strncat.h: New file.
69296
69297         * modules/unistr/u8-strncmp: New file.
69298         * modules/unistr/u16-strncmp: New file.
69299         * modules/unistr/u32-strncmp: New file.
69300         * lib/unistr/u8-strncmp.c: New file.
69301         * lib/unistr/u16-strncmp.c: New file.
69302         * lib/unistr/u32-strncmp.c: New file.
69303
69304         * modules/unistr/u8-strncpy: New file.
69305         * modules/unistr/u16-strncpy: New file.
69306         * modules/unistr/u32-strncpy: New file.
69307         * lib/unistr/u8-strncpy.c: New file.
69308         * lib/unistr/u16-strncpy.c: New file.
69309         * lib/unistr/u32-strncpy.c: New file.
69310         * lib/unistr/u-strncpy.h: New file.
69311
69312         * modules/unistr/u8-strnlen: New file.
69313         * modules/unistr/u16-strnlen: New file.
69314         * modules/unistr/u32-strnlen: New file.
69315         * lib/unistr/u8-strnlen.c: New file.
69316         * lib/unistr/u16-strnlen.c: New file.
69317         * lib/unistr/u32-strnlen.c: New file.
69318         * lib/unistr/u-strnlen.h: New file.
69319
69320         * modules/unistr/u8-strpbrk: New file.
69321         * modules/unistr/u16-strpbrk: New file.
69322         * modules/unistr/u32-strpbrk: New file.
69323         * lib/unistr/u8-strpbrk.c: New file.
69324         * lib/unistr/u16-strpbrk.c: New file.
69325         * lib/unistr/u32-strpbrk.c: New file.
69326         * lib/unistr/u-strpbrk.h: New file.
69327
69328         * modules/unistr/u8-strrchr: New file.
69329         * modules/unistr/u16-strrchr: New file.
69330         * modules/unistr/u32-strrchr: New file.
69331         * lib/unistr/u8-strrchr.c: New file.
69332         * lib/unistr/u16-strrchr.c: New file.
69333         * lib/unistr/u32-strrchr.c: New file.
69334
69335         * modules/unistr/u8-strspn: New file.
69336         * modules/unistr/u16-strspn: New file.
69337         * modules/unistr/u32-strspn: New file.
69338         * lib/unistr/u8-strspn.c: New file.
69339         * lib/unistr/u16-strspn.c: New file.
69340         * lib/unistr/u32-strspn.c: New file.
69341         * lib/unistr/u-strspn.h: New file.
69342
69343         * modules/unistr/u8-strstr: New file.
69344         * modules/unistr/u16-strstr: New file.
69345         * modules/unistr/u32-strstr: New file.
69346         * lib/unistr/u8-strstr.c: New file.
69347         * lib/unistr/u16-strstr.c: New file.
69348         * lib/unistr/u32-strstr.c: New file.
69349         * lib/unistr/u-strstr.h: New file.
69350
69351         * modules/unistr/u8-strtok: New file.
69352         * modules/unistr/u16-strtok: New file.
69353         * modules/unistr/u32-strtok: New file.
69354         * lib/unistr/u8-strtok.c: New file.
69355         * lib/unistr/u16-strtok.c: New file.
69356         * lib/unistr/u32-strtok.c: New file.
69357         * lib/unistr/u-strtok.h: New file.
69358
69359         * modules/unistr/u8-uctomb: New file.
69360         * modules/unistr/u16-uctomb: New file.
69361         * modules/unistr/u32-uctomb: New file.
69362         * lib/unistr/u8-uctomb.c: New file.
69363         * lib/unistr/u16-uctomb.c: New file.
69364         * lib/unistr/u32-uctomb.c: New file.
69365
69366         * MODULES.html.sh (Unicode string functions): Add the new modules.
69367
69368 2007-01-08  Bruno Haible  <bruno@clisp.org>
69369
69370         * gnulib-tool (func_all_modules): Use find, not ls, to traverse the
69371         modules directory. Filter out CVS, ChangeLog, COPYING, README also from
69372         subdirectories.
69373
69374 2007-01-08  Karl Berry  <karl@gnu.org>
69375
69376         * doc/error.texi: mention that main() fns must set program_name
69377         when progname is used.
69378
69379 2007-01-08  Paul Eggert  <eggert@cs.ucla.edu>
69380
69381         * m4/wctype.m4 (gl_WCTYPE_H): Compute ABSOLUTE_WCTYPE_H even if
69382         WCTYPE_H is empty, for the benefit of builds from non-distclean
69383         directories.  Problem reported by Eric Blake in
69384         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00157.html>.
69385
69386 2007-01-08  Bruno Haible  <bruno@clisp.org>
69387
69388         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Remove
69389         PROVIDE_CANONICALIZE_FILENAME_MODE macro definition.
69390         * lib/canonicalize.h: Test GNULIB_CANONICALIZE instead of
69391         PROVIDE_CANONICALIZE_FILENAME_MODE.
69392         * modules/canonicalize (configure.ac): Use gl_MODULE_INDICATOR.
69393
69394 2007-01-08  Bruno Haible  <bruno@clisp.org>
69395
69396         * m4/fts.m4 (gl_FUNC_FTS_LGPL): Remove _LGPL_PACKAGE macro definition.
69397         * lib/fts_.h (_LGPL_PACKAGE): Remove macro.
69398         Use !GNULIB_FTS instead of _LGPL_PACKAGE.
69399         * lib/fts.c: Likewise.
69400         * modules/fts (configure.ac): Use gl_MODULE_INDICATOR.
69401
69402 2006-12-25  Bruno Haible  <bruno@clisp.org>
69403
69404         * modules/utf8-ucs4-safe: New file.
69405         * lib/utf8-ucs4-safe.h: New file.
69406         * lib/unistr/utf8-ucs4-safe.c: New file.
69407
69408         * modules/utf16-ucs4-safe: New file.
69409         * lib/utf16-ucs4-safe.h: New file.
69410         * lib/unistr/utf16-ucs4-safe.c: New file.
69411
69412         * MODULES.html.sh (Unicode string functions): Add the new modules.
69413
69414 2007-01-08  Bruno Haible  <bruno@clisp.org>
69415
69416         * modules/utf8-ucs4 (Files, lib_SOURCES): Add unistr/utf8-ucs4.c.
69417         (Depends-on): Add unitypes.
69418         * lib/utf8-ucs4.h: Add double-inclusion guard. Include unitypes.h.
69419         (u8_mbtouc_aux): Move out to separate file.
69420         (u8_mbtouc): Use ucs4_t, uint8_t types.
69421         * lib/unistr/utf8-ucs4.c: New file.
69422
69423         * modules/utf16-ucs4 (Files, lib_SOURCES): Add unistr/utf16-ucs4.c.
69424         (Depends-on): Add unitypes.
69425         * lib/utf16-ucs4.h: Add double-inclusion guard. Include unitypes.h.
69426         (u16_mbtouc_aux): Move out to separate file.
69427         (u16_mbtouc): Use ucs4_t, uint16_t types.
69428         * lib/unistr/utf16-ucs4.c: New file.
69429
69430         * modules/ucs4-utf8 (Files, lib_SOURCES): Add unistr/ucs4-utf8.c.
69431         (Depends-on): Add unitypes.
69432         * lib/ucs4-utf8.h: Add double-inclusion guard. Include unitypes.h.
69433         (u8_uctomb_aux): Move out to separate file.
69434         (u8_uctomb): Use ucs4_t, uint8_t types.
69435         * lib/unistr/ucs4-utf8.c: New file.
69436
69437         * modules/ucs4-utf16 (Files, lib_SOURCES): Add unistr/ucs4-utf16.c.
69438         (Depends-on): Add unitypes.
69439         * lib/ucs4-utf16.h: Add double-inclusion guard. Include unitypes.h.
69440         (u16_uctomb_aux): Move out to separate file.
69441         (u16_uctomb): Use ucs4_t, uint16_t types.
69442         * lib/unistr/ucs4-utf16.c: New file.
69443
69444 2006-12-25  Bruno Haible  <bruno@clisp.org>
69445
69446         * modules/unitypes: New file.
69447         * lib/unitypes.h: New file.
69448         * MODULES.html.sh (func_all_modules): New section "Unicode string
69449         functions". Move ucs4-utf8, ucs4-utf16, utf8-ucs4, utf16-ucs4 to
69450         this section. Add unitypes.
69451
69452 2007-01-08  Bruno Haible  <bruno@clisp.org>
69453
69454         Avoid variable names that conflict with those from libtool.
69455         * m4/lib-link.m4 (AC_LIB_RPATH, AC_LIB_LINKFLAGS_BODY,
69456         AC_LIB_LINKFLAGS_FROM_LIBS): Rename libext to acl_libext,
69457         shlibext to acl_shlibext, libname_spec to acl_libname_spec,
69458         library_names_spec to acl_library_names_spec, hardcode_* to
69459         acl_hardcode_*.
69460         Reported by Ralf Wildenhues.
69461
69462 2007-01-08  Bruno Haible  <bruno@clisp.org>
69463
69464         * m4/gc-arcfour.m4 (gl_GC_ARCFOUR): Remove GC_USE_ARCFOUR macro
69465         definition.
69466         * m4/gc-arctwo.m4 (gl_GC_ARCTWO): Remove GC_USE_ARCTWO macro
69467         definition.
69468         * m4/gc-des.m4 (gl_GC_DES): Remove GC_USE_DES macro definition.
69469         * m4/gc-hmac-md5.m4 (gl_GC_HMAC_MD5): Remove GC_USE_HMAC_MD5 macro
69470         definition.
69471         * m4/gc-hmac-sha1.m4 (gl_GC_HMAC_SHA1): Remove GC_USE_HMAC_SHA1 macro
69472         definition.
69473         * m4/gc-md2.m4 (gl_GC_MD2): Remove GC_USE_MD2 macro definition.
69474         * m4/gc-md4.m4 (gl_GC_MD4): Remove GC_USE_MD4 macro definition.
69475         * m4/gc-md5.m4 (gl_GC_MD5): Remove GC_USE_MD5 macro definition.
69476         * m4/gc-random.m4 (gl_GC_RANDOM): Remove GC_USE_RANDOM macro
69477         definition.
69478         * m4/gc-rijndael.m4 (gl_GC_RIJNDAEL): Remove GC_USE_RIJNDAEL macro
69479         definition.
69480         * m4/gc-sha1.m4 (gl_GC_SHA1): Remove GC_USE_SHA1 macro definition.
69481         * lib/gc-gnulib.c: Use GNULIB_GC_<algorithm> instead of
69482         GC_USE_<algorithm>.
69483         * lib/gc-libgcrypt.c: Likewise.
69484         * modules/gc-arcfour (configure.ac): Use gl_MODULE_INDICATOR.
69485         * modules/gc-arctwo (configure.ac): Likewise.
69486         * modules/gc-des (configure.ac): Likewise.
69487         * modules/gc-hmac-md5 (configure.ac): Likewise.
69488         * modules/gc-hmac-sha1 (configure.ac): Likewise.
69489         * modules/gc-md2 (configure.ac): Likewise.
69490         * modules/gc-md4 (configure.ac): Likewise.
69491         * modules/gc-md5 (configure.ac): Likewise.
69492         * modules/gc-random (configure.ac): Likewise.
69493         * modules/gc-rijndael (configure.ac): Likewise.
69494         * modules/gc-sha1 (configure.ac): Likewise.
69495
69496 2007-01-08  Bruno Haible  <bruno@clisp.org>
69497
69498         * m4/close-stream.m4 (gl_CLOSE_STREAM): Remove GNULIB_CLOSE_STREAM
69499         macro definition.
69500         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Remove GNULIB_FCNTL_SAFER macro
69501         definition.
69502         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Remove GNULIB_FOPEN_SAFER macro
69503         definition.
69504         * modules/close-stream (configure.ac): Invoke gl_MODULE_INDICATOR.
69505         * modules/fcntl-safer (configure.ac): Likewise.
69506         * modules/fopen-safer (configure.ac): Likewise.
69507         * modules/fwriteerror (configure.ac): Likewise. Remove explicit
69508         GNULIB_FWRITEERROR macro definition.
69509
69510 2007-01-08  Bruno Haible  <bruno@clisp.org>
69511
69512         * m4/gnulib-common.m4: New file.
69513         * gnulib-tool (func_get_autoconf_snippet): Undo last change.
69514         (func_get_filelist): Add m4/gnulib-common.m4.
69515
69516 2007-01-08  Bruno Haible  <bruno@clisp.org>
69517
69518         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Simplify the sorting
69519         command.
69520
69521 2007-01-08  Jim Meyering  <jim@meyering.net>
69522
69523         Use a more robust test for a "can't happen" condition.
69524         * lib/fts.c (fts_read): Revert the change of 2006-11-22, since it
69525         narrowed the st_size value.  Presuming the "can't happen" condition
69526         is true, that narrowing could conceivably convert an invalid st_size
69527         value into a valid one.  Instead, use a change based on Matthew
69528         Woehlke's original patch.
69529
69530         Slight readability improvement: use an assert-like macro
69531         in place of literal "abort ()" uses.
69532         * lib/fts.c (fts_assert): Define.
69533         (fts_set_stat_required, cwd_advance_fd, fts_read, fd_ring_check):
69534         Use this macro instead of a bare 'abort'.
69535
69536 2007-01-05  Paul Eggert  <eggert@cs.ucla.edu>
69537
69538         Don't worry about using IRIX 5.3's wctype.h broken definitions;
69539         simply work around them.
69540         * lib/wctype_.h: Remove test for HAVE_WCTYPE_CTMP_BUG.
69541         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph, iswlower):
69542         (iswprint, iswpunct, iswspace, iswupper, iswxdigit): Undef before
69543         declaring.
69544         Don't bother to define as macros, since the standard doesn't require it.
69545         * m4/wctype.m4 (WCTYPE_H, ABSOLUTE_WCTYPE_H): Simplify, since we no
69546         longer worry about IRIX 5.3.
69547         (HAVE_WCTYPE_CTMP_BUG): Remove.
69548
69549 2007-01-04  Paul Eggert  <eggert@cs.ucla.edu>
69550
69551         * lib/wctype_.h (_ctmp_) [HAVE_WCTYPE_CTMP_BUG]: Now of type wchar_t,
69552         not wint_t.  Also, include <ctype.h>, to fix another IRIX bug.
69553         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
69554         Problems reported by Georg Schwarz for IRIX 5.3.
69555
69556         * gnulib-tool (autoconf_minversion): Take the maximum version number
69557         found, not the minimum.  Problem reported by James Youngman.
69558
69559 2007-01-03  Karl Berry  <karl@gnu.org>
69560
69561         * doc/error.texi: new file, explaining interaction with progname.
69562         * doc/gnulib.texi: include it.  Update copyright.
69563
69564 2007-01-03  Simon Josefsson  <simon@josefsson.org>
69565
69566         * gnulib-tool (func_create_testdir): Run AC_CANONICAL_BUILD and
69567         AC_CANONICAL_HOST, to improve autobuild outputs.
69568
69569 2007-01-03  Paolo Bonzini  <bonzini@gnu.org>
69570             Yoann Vandoorselaere <yoann.v@prelude-ids.com>
69571
69572         * lib/poll.c (poll): Use recv on Mac OS X to distinguish connected
69573         sockets, server sockets, and other file descriptors.  Count errors
69574         to compute the return value.  Reorder the code a bit to be easier
69575         to follow.  Don't set event bits that were not requested (except
69576         POLLERR and POLLHUP).
69577
69578 2007-01-01  Bruno Haible  <bruno@clisp.org>
69579
69580         * modules/lchmod (Include): Require lchmod.h, not lchown.h.
69581
69582 2007-01-03  Jim Meyering  <jim@meyering.net>
69583
69584         * modules/fts-lgpl (Depends-on): Add i-ring.  Reported by Bruno Haible.
69585
69586 2007-01-02  Bruno Haible  <bruno@clisp.org>
69587
69588         * modules/settime (Include): Require timespec.h.
69589         * modules/nanosleep (Include): Likewise.
69590
69591 2007-01-01  Bruno Haible  <bruno@clisp.org>
69592
69593         * gnulib-tool (func_emit_copyright_notice): Bump year.
69594         (func_get_autoconf_snippet): Emit a GNULIB_<modulename> macro.
69595
69596 2007-01-01  Bruno Haible  <bruno@clisp.org>
69597
69598         Improve support for OpenBSD.
69599         * build-aux/config.rpath (libname_spec): Export.
69600         (library_names_spec): New variable. Export.
69601         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Extract libname_spec and
69602         library_names_spec from the config.rpath output. Locate shared library
69603         through the name pattern in library_names_spec.
69604
69605 2007-01-01  Eric Blake  <ebb9@byu.net>
69606
69607         * lib/version-etc.c (COPYRIGHT_YEAR): Bump for new year.
69608
69609 2006-12-30  Paul Eggert  <eggert@cs.ucla.edu>
69610
69611         * gnulib-tool (SORT): Remove, since we no longer assume GNU sort.
69612         Rewrite so as not to assume GNU sort or "tail -1".  Also, don't
69613         assume the C locale, and avoid an "eval" that could cause trouble.
69614         Problem with SORT reported by Bob Proulx.
69615
69616         * lib/getpagesize.h (getpagesize) [defined __amigaos4__]:
69617         Define.  Trivial patch from Henning Nielsen Lund, originally
69618         sent to bug-grep@gnu.org today.
69619
69620 2006-12-29  Paul Eggert  <eggert@cs.ucla.edu>
69621
69622         * lib/acl.h: Include sys/types.h and sys/stat.h, for mode_t and
69623         struct stat.  Problem reported by Henning Nielsen Lund.
69624         * lib/acl.c: Include acl.h first, to check interface.  Don't
69625         bother to include sys/types.h and sys/stat.h again.
69626
69627 2006-12-28  Paul Eggert  <eggert@cs.ucla.edu>
69628
69629         Import the following change from libc; problem reported by
69630         Sven Verdoolaege.
69631
69632         2005-10-13  Ulrich Drepper  <drepper@redhat.com>
69633
69634         [BZ #1373]
69635         * lib/argp.h: Remove __NTH for __argp_usage inline function.
69636
69637 2006-12-28  Jim Meyering  <jim@meyering.net>
69638
69639         * build-aux/announce-gen: Do not assume that the package
69640         builds any of tar.gz, tar.bz2, and .xdelta files.
69641         Suggestion from Simon Josefsson.
69642
69643 2006-12-28  Simon Josefsson  <simon@josefsson.org>
69644
69645         * modules/announce-gen: New file.
69646
69647 2006-12-27  Paul Eggert  <eggert@cs.ucla.edu>
69648
69649         * lib/mbchar.h: Just include <wctype.h>; the wctype module
69650         handles its gotchas now.
69651         * lib/mbswidth.c: Likewise.
69652         * lib/wcwidth.h: Likewise.
69653         * m4/mbchar.m4 (gl_MBCHAR): Don't bother checking for wctype.h
69654         and iswcntrl; the wctype module does this stuff now.
69655         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
69656         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
69657         * modules/mbchar (Depends-on): Add wctype.
69658         * modules/mbswidth (Depends-on): Likewise.
69659         * modules/wcwidth (Depends-on): Likewise.
69660
69661 2006-12-27  Eric Blake  <ebb9@byu.net>
69662
69663         * lib/fnmatch.c: Reinstate inclusion of <wchar.h>, since this
69664         module uses more than what <wctype.h> is required to provide.
69665
69666 2006-12-26  Eric Blake  <ebb9@byu.net>
69667
69668         * gnulib-tool (sed_extract_prog): Avoid space-tab.
69669
69670 2006-12-26  Eric Blake  <ebb9@byu.net>
69671
69672         * modules/absolute-header: New module.
69673         * modules/fcntl (Depends-on): Depend on it.
69674         * modules/inttypes (Depends-on): Likewise.
69675         * modules/stdint (Depends-on): Likewise.
69676         * modules/sys_stat (Depends-on): Likewise.
69677         * modules/wctype (Depends-on): Likewise.
69678         * MODULES.html.sh (Support for building libraries and
69679         executables): Document it.
69680
69681 2006-12-25  Paul Eggert  <eggert@cs.ucla.edu>
69682
69683         * gnulib-tool (SED): Remove, undoing previous change.
69684         The problem was that it broke coreutils on Solaris, because
69685         "sed --posix" leaked into a makefile.
69686         (sed): New alias, if 'alias' and GNU sed.
69687
69688 2006-12-24  Jim Meyering  <jim@meyering.net>
69689
69690         Work around an fchownat bug in glibc-2.4:
69691         http://lists.ubuntu.com/archives/ubuntu-users/2006-September/093218.html
69692         This bug would cause "chown -RP ... DIR" to follow symlinks in DIR,
69693         in spite of the -P option.
69694         * m4/openat.m4 (gl_FUNC_FCHOWNAT, gl_FUNC_FCHOWNAT_DEREF_BUG):
69695         New macros.
69696         (gl_PREREQ_OPENAT): Require gl_FUNC_FCHOWNAT.
69697         * modules/openat (Files): Add lib/fchownat.c.
69698         * lib/openat.c (fchownat): Don't define here.  Move to...
69699         * lib/fchownat.c: ...this new file.
69700
69701 2006-12-23  Paul Eggert  <eggert@cs.ucla.edu>
69702
69703         Fix bug reported by Bruno Haible in
69704         <http://lists.gnu.org/archive/html/bug-gnulib/2006-12/msg00228.html>
69705         where quotearg.c didn't compile on Mac OS X 10.2 because it
69706         lacks <wchar.h> and wint_t.
69707         * lib/wctype_.h (__wctype_wint_t): New type.
69708         Include <stdio.h>, <time.h>, <wchar.h> only if HAVE_WINT_T.
69709         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph):
69710         (iswlower, iswprint, iswpunct, iswspace, iswupper, ixwxdigit):
69711         Arg is now of type __wctype_wint_t, not wint_t.
69712         * m4/wctype.m4 (gl_WCTYPE_H): Require gt_TYPE_WINT_T, and
69713         substitute HAVE_WINT_T.
69714         * modules/wctype (Files): Add m4/wint_t.m4.
69715         (wctype.h): Substitute HAVE_WINT_T.
69716
69717 2006-12-23  Bruno Haible  <bruno@clisp.org>
69718
69719         * lib/safe-read.h [C++]: Wrap declarations in extern "C".
69720
69721 2006-12-23  Bruno Haible  <bruno@clisp.org>
69722
69723         * lib/canonicalize-lgpl.c (__realpath): Test HAVE_READLINK instead of
69724         S_ISLNK.
69725         Needed because gnulib's sys/stat.h replacement defines S_ISLNK on
69726         mingw.
69727
69728 2006-12-22  Bruno Haible  <bruno@clisp.org>
69729
69730         * lib/copy-file.c: Include acl.h.
69731         (copy_file_preserving) [USE_ACL]: Use copy_acl instead of chmod.
69732         Close the file descriptors only after being done with copy_acl.
69733         * modules/copy-file (Depends-on): Add acl.
69734
69735 2006-12-22  Bruno Haible  <bruno@clisp.org>
69736
69737         * gnulib-tool (SED): New variable.
69738         Use $SED instead of sed everywhere.
69739
69740 2006-12-22  Bruno Haible  <bruno@clisp.org>
69741
69742         * modules/no-c++: New file.
69743         * m4/no-c++.m4: New file.
69744         * MODULES.html.sh (Support for building libraries and executables):
69745         Add no-c++.
69746
69747 2006-12-22  Paul Eggert  <eggert@cs.ucla.edu>
69748
69749         * m4/mktime.m4 (AC_FUNC_MKTIME): Sync from Autoconf.
69750         Include <limits.h>, and use its INT_MAX to rewrite the
69751         j loop so that it does not overflow 'int'.  Problem reported by
69752         Ralf Wildenhues in
69753         <http://lists.gnu.org/archive/html/bug-gnulib/2006-12/msg00084.html>.
69754         Play it safe by shifting left by 1 rather than multiplying by 2,
69755         as GCC is less likely to optimize this away when the value
69756         is signed (when it assumes overflow leads to undefined behavior).
69757         Also, don't assume time_t uses two's complement.
69758
69759 2006-12-21  Paul Eggert  <eggert@cs.ucla.edu>
69760
69761         * MODULES.html.sh: New module wctype.
69762         * lib/wctype_.h, m4/wctype.m4, modules/wctype: New files.
69763         * lib/fnmatch.c: Don't bother to include <wchar.h> before
69764         <wctype.h>, since the new wctype module should fix this.
69765         * lib/quotearg.c: Include <wctype.h> unconditionally, since
69766         the wctype module should arrange for it.
69767         * lib/regex_internal.h: Likewise.
69768         * m4/quotearg.m4 (gl_QUOTEARG): Don't check for wctype.h or iswprint,
69769         since the wctype module should handle this now.
69770         * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for wctype.h.
69771         * modules/fnmatch (Depends-on): Add wctype.
69772         * modules/quotearg (Depends-on): Likewise.
69773         * modules/regex (Depends-on): Likewise.
69774
69775 2006-12-19  Bruno Haible  <bruno@clisp.org>
69776
69777         * lib/strdup.h [C++]: Wrap definitions in extern "C".
69778         Suggested by Lorenzo Bettini <bettini@dsi.unifi.it>.
69779
69780 2006-12-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
69781
69782         * modules/savewd (Depends-on): Fix dependency on fcntl.
69783
69784 2006-12-18  Paul Eggert  <eggert@cs.ucla.edu>
69785
69786         * m4/stdint.m4 (gl_STDINT_H): Set STDINT_H to empty if stdint.h
69787         conforms to C99, rather than relying on the user's environment
69788         setting of STDINT_H.
69789
69790 2006-12-18  Paul Eggert  <eggert@cs.ucla.edu>
69791         and Eric Blake  <ebb9@byu.net>
69792
69793         * lib/dirname.h (DOUBLE_SLASH_IS_DISTINCT_ROOT): Default to 0, not 1.
69794         This is more consistent with the other defines here.
69795         * m4/double-slash-root.m4 (gl_DOUBLE_SLASH_ROOT):
69796         Port to z/OS.  Problem reported by Paul Gilmartin.
69797         Change local vars to use gl_ prefix rather than ac_.
69798         Don't define DOUBLE_SLASH_IS_DISTINCT_ROOT to 0, for consistency
69799         with other defines.
69800         * modules/double-slash-root: New module.
69801         * modules/dirname (Files): Remove m4/double-slash-root.m4.
69802         (Depends-on): Add double-slash-root.
69803         * MODULES.html.sh (File system functions): Mention new module.
69804
69805 2006-12-14  Paul Eggert  <eggert@cs.ucla.edu>
69806
69807         * lib/yesno.c [!ENABLE_NLS]: Don't include getline.h.
69808         (yesno) [!ENABLE_NLS]: Don't invoke getline or rpmatch.
69809         This is for the benefit of gzip, which doesn't do i18n.
69810
69811 2006-12-12  Jim Meyering  <jim@meyering.net>
69812
69813         * m4/acl.m4 (gl_ACL_GET_FILE): Fix logic error.
69814         Reported by Andreas Schwab <schwab@suse.de>.
69815
69816 2006-12-12  Bruno Haible  <bruno@clisp.org>
69817
69818         Merge these changes.
69819         2006-09-05  Bruno Haible  <bruno@clisp.org>
69820         * lib/iconvme.c (iconv_string): No need to save and restore errno when
69821         iconv_alloc succeeded.
69822         (iconv_alloc): Don't assume that malloc() or realloc(), when failing,
69823         sets errno to ENOMEM. (malloc on GNU/kFreeBSD doesn't.) No need to
69824         test for " && dest " at the end - dest is always != NULL there. Call
69825         iconv with 4xNULL arguments initially, to reset the state. Call iconv
69826         with 2xNULL arguments, also to flush the state storage. Handle the
69827         IRIX iconv behaviour. Realloc the final result, to throw away unused
69828         memory.
69829
69830 2006-12-11  Paul Eggert  <eggert@cs.ucla.edu>
69831
69832         * m4/openat.m4 (gl_FUNC_OPENAT): Don't compile mkdirat
69833         and fchmodat unconditionally, since glibc 2.4 has them.
69834         Problem reported by Arkadiusz Miskiewicz.
69835
69836 2006-12-10  Bruno Haible  <bruno@clisp.org>
69837
69838         * gnulib-tool (func_import): Show the include files only for those
69839         modules that are copied and specified.
69840         Reported by Karl Berry.
69841
69842 2006-12-08  Jim Meyering  <jim@meyering.net>
69843
69844         * build-aux/announce-gen ($VERSION): Don't use of $Revision...$.
69845         Instead, use Emacs' time-stamp write hook.  Note that the time is UTC.
69846
69847         * build-aux/announce-gen: Add two new options, both optional:
69848         --bootstrap-tools=TOOL_LIST
69849               a comma-separated list of tools, e.g.,
69850               autoconf,automake,bison,gnulib
69851         --gnulib-snapshot-date=DATE
69852               if gnulib is in the bootstrap tool list,
69853               then report this as the snapshot date.
69854               If not specified, use the current date/time.
69855               If you specify a date here, be sure it's UTC.
69856
69857 2006-12-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
69858
69859         * tests/test-argp-2.sh: Fix test to match actual output.
69860         (func_compare): Fix sed script to be portable.
69861
69862 2006-12-05  Paul Eggert  <eggert@cs.ucla.edu>
69863
69864         * lib/utimens.c (futimens) [HAVE_BUGGY_NFS_TIME_STAMPS]: Add a
69865         workaround for this case.  It is not autoconfigured now; offhand
69866         it's hard to see how to autoconfigure it.
69867
69868 2006-12-03  Paul Eggert  <eggert@cs.ucla.edu>
69869
69870         * lib/mkdir-p.c (make_dir_parents): Fix race condition when making
69871         a directory that is about to be chowned.  Such a directory's
69872         initial file permissions should permit the owner only and this
69873         should not be changed until after the chown, since the group and
69874         other bits would be incorrect if they granted permission before
69875         the chown.
69876
69877         Fix porting problem for iswctype reported by Georg Schwarz in:
69878         http://lists.gnu.org/archive/html/bug-coreutils/2006-12/msg00017.html
69879         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Require HAVE_ISWCTYPE, too.
69880         * lib/regex_internal.h (RE_ENABLE_I18N): Likewise.
69881         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for iswctype, too.
69882         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
69883
69884 2006-12-03  Jim Meyering  <jim@meyering.net>
69885
69886         * lib/fts.c (fts_load): Don't set sp->fts_dev here, since
69887         p->fts_statp may not yet be defined.
69888         (fts_read): Instead, set it in the caller, once p->fts_statp is
69889         sure to be defined, and corresponds to a top-level directory.
69890         This bug made du -x fail.  Here's the coreutils test case:
69891         http://git.sv.gnu.org/gitweb/?p=coreutils.git;a=commit;h=ba45154d8e9f
69892         Reported by Mike Frysinger.
69893
69894 2006-12-01  Jim Meyering  <jim@meyering.net>
69895
69896         * modules/savewd (Depends-on): Add fcntl_h to avoid self-test
69897         build failure due to missing definition of HAVE_WORKING_O_NOFOLLOW.
69898         Reported by Simon Josefsson.
69899
69900 2006-11-30  Jim Meyering  <jim@meyering.net>
69901
69902         * m4/warning.m4: Use the all-permissive copyright notice
69903         recommended by RMS (rather than LGPL).
69904         * m4/vararrays.m4: Likewise.
69905         * m4/flexmember.m4: Likewise.
69906
69907 2006-11-29  Bruno Haible  <bruno@clisp.org>
69908
69909         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
69910         noinst_LIBRARIES. Augment noinst_LIBRARIES and noinst_LTLIBRARIES
69911         using +=.
69912         Reported by Simon Josefsson <simon@josefsson.org>.
69913
69914 2006-11-28  James Youngman <jay@gnu.org>
69915
69916         * README: Advise users that they might find the bug-gnulib@gnu.org
69917         and autotools-announce@gnu.org mailing lists useful.
69918
69919 2006-11-28  Bruno Haible  <bruno@clisp.org>
69920
69921         * m4/ptrdiff_max.m4: Remove file.
69922
69923 2006-11-21  Bruno Haible  <bruno@clisp.org>
69924
69925         * m4/eoverflow.m4 (gl_EOVERFLOW): Use AC_COMPUTE_INT instead of
69926         _AC_COMPUTE_INT.
69927         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
69928         * m4/ptrdiff_max.m4 (gl_PTRDIFF_MAX): Use AC_COMPUTE_INT instead of
69929         _AC_COMPUTE_INT.
69930         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
69931         * m4/size_max.m4 (gl_SIZE_MAX): Use AC_COMPUTE_INT instead of
69932         _AC_COMPUTE_INT.
69933         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
69934
69935 2006-11-28  Jim Meyering  <jim@meyering.net>
69936
69937         * lib/regcomp.c (parse_branch): Rename local, exp->expr, to avoid
69938         warning from "gcc -Wshadow" about shadowing the builtin.
69939
69940 2006-11-27  Bruno Haible  <bruno@clisp.org>
69941
69942         * m4/stdint.m4 (gl_STDINT_BITSIZEOF): Use AC_COMPUTE_INT instead of
69943         _AC_COMPUTE_INT.
69944         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
69945
69946 2006-11-27  Bruno Haible  <bruno@clisp.org>
69947             Paul Eggert  <eggert@cs.ucla.edu>
69948
69949         * lib/regex.h (__restrict_arr): Redo logic of #if, for clarity.
69950
69951 2006-11-26  Bruno Haible  <bruno@clisp.org>
69952
69953         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
69954         noinst_LTLIBRARIES.
69955
69956 2006-11-27  Paul Eggert  <eggert@cs.ucla.edu>
69957             Bruno Haible  <bruno@clisp.org>
69958
69959         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Define to 0
69960         if compiling with "gcc -ansi".
69961
69962 2006-11-26  Paul Eggert  <eggert@cs.ucla.edu>
69963
69964         Fix some incompatibilities with gcc -ansi -pedantic.
69965         * lib/regex.h (__restrict_arr): Don't use the [restrict] syntax
69966         if compiling pedantically with GCC, unless it's C99 or later.
69967         Don't trust sys/cdefs.h's definition of __restrict_arr, either, as
69968         it mishandles gcc -ansi -pedantic as well.
69969         * lib/regex_internal.h (re_token_t): Don't use enum bitfields
69970         if gcc -pedantic.
69971         * lib/regexec.c (check_node_accept_bytes): Don't use auto
69972         initializers for struct if -pedantic, unless it's C99 or later.
69973
69974 2006-11-25  Nix  <nix@esperi.org.uk>  (tiny change)
69975
69976         * m4/fcntl_h.m4 (gl_FCNTL_H): Test the atime, not the mtime.
69977         Don't close an fd more than once. Identical atimes indicate
69978         success, not failure.
69979
69980 2006-11-22  Robinson Mittmann <bob@hoplon.com>  (tiny change)
69981
69982         * lib/sincosl.c (kernel_sinl): Fix typo in threshold.
69983
69984 2006-11-23  Jim Meyering  <jim@meyering.net>
69985
69986         * build-aux/announce-gen: New file.  From coreutils.
69987
69988 2006-11-22  Jim Meyering  <jim@meyering.net>
69989
69990         Work around a compile-time error from the HP-UX 11.00 /bin/cc.
69991         * lib/fts.c (enum Fts_stat): Give this previously-anon enum a name.
69992         (fts_read): Use a temporary to narrow the overused st_size member
69993         before using it in a switch statement.  Reported by Matthew Woehlke.
69994
69995         * m4/clock_time.m4 (gl_CLOCK_TIME): Quote AC_SUBST argument.
69996         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
69997
69998 2006-11-20  Bruno Haible  <bruno@clisp.org>
69999
70000         * gettext.m4 (AM_GNU_GETTEXT): Revert 2005-07-28 patch: Use
70001         changequote instead of pairs of brackets.
70002         Reported by Andreas Schwab <schwab@suse.de>.
70003
70004 2006-11-21  Jim Meyering  <jim@meyering.net>
70005
70006         * lib/fts.c (fts_safe_changedir): Move a declaration "up",
70007         so as to remain compatible with older compilers.
70008         Patch from Michael Deutschmann.
70009
70010 2006-11-20  Paul Eggert  <eggert@cs.ucla.edu>
70011
70012         * MODULES.html.sh (File system functions): Add openat.
70013
70014         * lib/openat.h (rpl_fstatat): New macro, if
70015         [HAVE_OPENAT && ! LSTAT_FOLLOWS_SLASHED_SYMLINK.
70016         (fstatat): Define to rpl_fstatat under the same conditions,
70017         unless COMPILING_FSTATAT.
70018         * m4/openat.m4 (gl_FUNC_OPENAT): Compile fstatat.c too, if fstatat
70019         seems to have the bug.
70020         * lib/fstatat.c: New file.
70021         * modules/openat (Files): Add it.
70022
70023 2006-11-20  Bruno Haible  <bruno@clisp.org>
70024
70025         * Makefile: New file.
70026
70027 2006-11-20  Jim Meyering  <jim@meyering.net>
70028
70029         The beginnings of syntax-related checks for gnulib.
70030         * lib/Makefile: New file.
70031         * lib/t-idcache: New script.  Ensure that the two halves of
70032         idcache.c stay in sync.
70033
70034         * lib/idcache.c: Adjust comments in user- and group- portions to
70035         be more accurate, and to be consistent with one another.
70036
70037 2006-11-20  Jim Meyering  <jim@meyering.net>
70038
70039         * lib/idcache.c: Restore most of the 2006-11-06 patch, so as to
70040         continue using the flexible array member (thus, this module performs
70041         half as many malloc calls), with the addition that...
70042         (getgroup, getuser): Consistently record a non-match via an empty
70043         "name" string, and map an empty string match to a NULL return value.
70044         * modules/idcache (Depends-on): Re-add flexmember.
70045
70046         * lib/idcache.c (getuser): Remove all uses of the register keyword.
70047         (getuidbyname, getgroup, getgidbyname): Likewise.
70048
70049         Use cleaner syntax: NULL rather than 0.
70050         * lib/idcache.c (getuidbyname, getgidbyname): Return NULL, not 0.
70051
70052 2006-11-20  Paul Eggert  <eggert@cs.ucla.edu>
70053
70054         * lib/idcache.c: Undo most recent patch, dated 2006-11-06.
70055         It mishandled the case where the group was missing.
70056         Problem reported by Greg Schafer.
70057         * modules/idcache: Likewise.
70058
70059 2006-11-18  Jim Meyering  <jim@meyering.net>
70060
70061         * check-module (%exempt_header): Add exception for some
70062         conditionally-included headers.
70063
70064         * modules/i-ring (Depends-on): Add verify.
70065         (License): Change to LGPL.
70066
70067 2006-11-16  Paul Eggert  <eggert@cs.ucla.edu>
70068
70069         * modules/getaddinfo (Depends-on): Remove inttostr; add snprintf.
70070         * lib/getaddrinfo.c: Include snprintf.h rather than intprops.h
70071         and inttostr.h.  Use snprintf rather than uinttostr, so that
70072         LGPLed code doesn't depend on GPLed.
70073
70074 2006-11-17  Paul Eggert  <eggert@cs.ucla.edu>
70075
70076         * modules/inline (License): Change from GPL to LGPL.
70077
70078 2006-11-17  Jim Meyering  <jim@meyering.net>
70079
70080         * modules/d-type (License): Switch to LGPL.
70081
70082 2006-11-15  Bruno Haible  <bruno@clisp.org>
70083
70084         * m4/alloca.m4 (gl_FUNC_ALLOCA): Fix the AC_CACHE_CHECK message.
70085
70086 2006-11-15  Eric Blake  <ebb9@byu.net>
70087
70088         * m4/allocsa.m4 (gl_ALLOCSA): Don't invoke macro already picked up by
70089         the module dependency.
70090
70091 2006-11-15  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
70092             Bruno Haible  <bruno@clisp.org>
70093
70094         * gnulib-tool (func_create_testdir): Add license consistency check.
70095
70096 2006-11-15  Eric Blake  <ebb9@byu.net>
70097
70098         * m4/alloca.m4 (gl_FUNC_ALLOCA): Use AC_CACHE_CHECK to avoid a
70099         random "(cached)" in configure output.
70100
70101 2006-11-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
70102
70103         * m4/inttypes.m4 (gl_INTTYPES_H): Use AC_CACHE_CHECK so that the
70104         test for conforming inttypes.h is both announced and cached.
70105
70106         * MODULES.html.sh (seen_modules, seen_files): New variables.
70107         (func_module): Rewrite to use a few less gnulib-tool and sed
70108         invocations.  Avoid a couple of quadratic algorithms for ...
70109         (missed_modules, missed_files): ... these, with ...
70110         (func_append, func_tmpdir): ... these new functions, from
70111         gnulib-tool.  Analogously, install traps for cleanup.
70112
70113         * tests/test-gc.c (main): Remove unused variables.
70114         * tests/test-read-file.c: Include stdlib.h, for 'free'.
70115
70116 2006-11-14  Paul Eggert  <eggert@cs.ucla.edu>
70117
70118         * modules/inttostr (License): Change to LGPL.
70119
70120 2006-11-14  Eric Blake  <ebb9@byu.net>
70121
70122         * modules/tempname (License): Change to LGPL.
70123
70124 2006-11-14  Eric Blake  <ebb9@byu.net>
70125
70126         * doc/functions.texi (Function Portability): *printf functions on
70127         Cygwin now understand all POSIX size specifiers.
70128
70129 2006-11-14  Bruno Haible  <bruno@clisp.org>
70130
70131         * modules/c-ctype (License): Change to LGPL.
70132
70133 2006-11-12  Bruno Haible  <bruno@clisp.org>
70134
70135         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
70136         AC_LIB_LINKFLAGS_BODY): Also set a LIB${NAME}_PREFIX variable. Needed
70137         for GNOME libraries, for which the include files are installed in
70138         subdirectories of $prefix/include.
70139
70140 2006-11-12  Bruno Haible  <bruno@clisp.org>
70141
70142         * m4/lib-link.m4: Require at least autoconf-2.54.
70143         (AC_LIB_LINKFLAGS_BODY) [autoconf < 2.61]: Turn dots into the library
70144         name to underscores for the --with option.
70145
70146 2006-11-13  Bruno Haible  <bruno@clisp.org>
70147
70148         * gnulib-tool (func_create_testdir): Set gl_source_base correctly in
70149         the tests directory.
70150         Reported by Ralf Wildenhues.
70151
70152 2006-11-13  Bruno Haible  <bruno@clisp.org>
70153
70154         * gnulib-tool (func_emit_initmacro_start): Also override AC_LIBSOURCES.
70155         (func_emit_initmacro_end): Undo the override here.
70156         (func_emit_initmacro_done): Emit a definition for gl_LIBSOURCES.
70157         Works around the famous automake error in coreutils.
70158
70159 2006-11-13  Eric Blake  <ebb9@byu.net>
70160
70161         * lib/gl_anytree_oset.h (gl_tree_search_atleast): Return the
70162         element, not its node.
70163
70164 2006-11-12  Bruno Haible  <bruno@clisp.org>
70165
70166         * gnulib-tool (func_emit_lib_Makefile_am): Replace occurrences of
70167         '$(top_srcdir)/build-aux/', taking into account the real auxdir.
70168
70169 2006-11-12  Bruno Haible  <bruno@clisp.org>
70170
70171         * gnulib-tool: New option --local-symlink.
70172         (func_usage): Document it.
70173         (lsymbolic): New variable.
70174         (func_import, func_create_testdir): If --symlink was not specified,
70175         test whether --local-symlink was specified and the file comes from
70176         the local_gnulib_dir.
70177
70178 2006-11-12  Bruno Haible  <bruno@clisp.org>
70179
70180         * gnulib-tool (func_ln): New function.
70181         (func_ln_if_changed, func_create_testdir): Use it instead of "ln -s".
70182
70183 2006-11-12  Bruno Haible  <bruno@clisp.org>
70184
70185         Finish support for source files in subdirectories.
70186         * gnulib-tool (func_emit_lib_Makefile_am): If some of the source files
70187         are in subdirectories, set uses_subdirs and add 'subdir-objects' to
70188         AUTOMAKE_OPTIONS.
70189         (func_import, func_create_testdir): Invoke AM_PROG_CC_C_O in this case.
70190
70191 2006-11-12  Bruno Haible  <bruno@clisp.org>
70192
70193         * gnulib-tool (func_get_automake_snippet): Synthesize also an
70194         EXTRA_lib_SOURCES augmentation.
70195         (func_emit_lib_Makefile_am): Initialize EXTRA_lib..._SOURCES to empty.
70196
70197 2006-11-12  Jim Meyering  <jim@meyering.net>
70198
70199         Make fts (in FTS_CWDFD mode) more efficient by caching a few open
70200         file descriptors.  This also averts a failure on systems with
70201         native openat support when a traversed directory lacks "x" access.
70202         * lib/fts_.h: Include "i-ring.h"
70203         (struct FTS) [fts_fd_ring]: New member.
70204         * lib/fts.c (RESTORE_INITIAL_CWD): Also call fd_ring_clear.
70205         (FCHDIR): Add parentheses.
70206         (fd_ring_check, fd_ring_print) [!FTS_DEBUG]: Define away.
70207         (cwd_advance_fd): Add a 3rd parameter.  Adjust all callers.
70208         When descending, rather than simply closing the previous
70209         fts_cwd_fd value, push that file descriptor onto the ring.
70210         (same_fd, fd_ring_print, fd_ring_check) [FTS_DEBUG]: New functions.
70211         (fts_open): Initialize the new fd_ring member.
70212         (fts_close): Clear the ring.
70213         (fts_safe_changedir): When possible, use our new fd_ring to skip
70214         the diropen and fstat and dev/ino comparison that would normally
70215         accompany a virtual `chdir ("..")'.
70216
70217         * modules/fts (Depends-on): Add i-ring.
70218         * modules/i-ring: New module.
70219         * lib/i-ring.c, lib/i-ring.h, lib/i-ring-test.c: New files.
70220         * m4/i-ring.m4: New file.
70221
70222 2006-11-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
70223
70224         * gnulib-tool (func_create_testdir): Fix replacement of
70225         `build-aux' in configure.ac.  Run autotools in gltests
70226         subdirectory.
70227         (func_create_testdir, func_create_megatestdir, test): There is
70228         no need for '--force' in most autotool invocations in a new
70229         tree.  Actually fail the whole test if any of the tools, or the
70230         configure or make stages fail.
70231
70232         Sync from Automake.
70233         * build-aux/gnupload: Revert last change.  Add pointer to upload
70234         instructions of the GNU Maintenance Instructions.
70235         Suggestion by Karl Berry.
70236
70237 2006-11-10  Jim Meyering  <jim@meyering.net>
70238
70239         * lib/fts.c [FTS_DEBUG]: Don't try to print a pointer via %s.
70240
70241 2006-11-09  Paul Eggert  <eggert@cs.ucla.edu>
70242
70243         * lib/gettext.h (dgettext, dcgettext, ngettext) [! ENABLE_NLS]:
70244         (dngettext, dcngettext, bindtextdomain) [! ENABLE_NLS]:
70245         (bind_textdomain_codeset) [! ENABLE_NLS]:
70246         Evaluate all the arguments.  That way, callers get compatible behavior
70247         if the arguments have side effects.  Also, it avoids some GCC
70248         diagnostics in some cases; Joel E. Denny reported problems when Bison
70249         was configured with --enable-gcc-warnigs.
70250
70251 2006-11-10  Jim Meyering  <jim@meyering.net>
70252
70253         * m4/inline.m4 (gl_INLINE): Check with the compiler, not cpp, so that
70254         relevant options in CFLAGS (like -O, -fno-inline) are taken into
70255         account.
70256
70257 2006-11-10  Jim Meyering  <jim@meyering.net>
70258
70259         * modules/inline: New file/module.
70260         * modules/xalloc (Files): Remove m4/inline.m4.
70261         (Depends-on): Add inline, instead.
70262         * modules/oset: Likewise.
70263         * modules/list: Likewise.
70264
70265 2006-11-09  Paul Eggert  <eggert@cs.ucla.edu>
70266
70267         * lib/stdint_.h (uintmax_t): Fix typo: int64_t -> uint64_t.
70268         Problem reported by Matthew Woehlke.
70269
70270 2006-11-09  Bruno Haible  <bruno@clisp.org>
70271
70272         * lib/tempname.c (gen_tempname): Remove variant that invokes
70273         __gen_tempname.
70274         * m4/tempname.m4 (gl_FUNC_GEN_TEMPNAME): Don't test for
70275         __gen_tempname.
70276
70277 2006-11-08  Bruno Haible  <bruno@clisp.org>
70278
70279         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Set ac_cv_type_long_long_int
70280         to 'yes' instead of 'cross-compiling'.
70281
70282 2006-11-08  Paul Eggert  <eggert@cs.ucla.edu>
70283
70284         * lib/quotearg.h (quotearg_free): New decl.
70285         * lib/quotearg.c (quotearg_free): New function.
70286         (slot0, nslots, slotvec0, slotvec):
70287         Now file-scope so that quotearg_free can get at them.
70288
70289 2006-11-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
70290
70291         Sync from Automake.
70292         * build-aux/gnupload: Add missing 'gnu' to example URL.
70293         Report by Karl Berry.
70294
70295 2006-11-08  Bruno Haible  <bruno@clisp.org>
70296
70297         * m4/inline.m4 (gl_INLINE): Also test __NO_INLINE__.
70298         Suggested by Paul Eggert.
70299
70300 2006-11-08  Jim Meyering  <jim@meyering.net>
70301
70302         * lib/fts.c [!_LGPL_PACKAGE]: Don't include fcntl--.h twice.
70303         It's already included if !_LIBC.
70304         (fts_safe_changedir): Add a comment.
70305
70306 2006-11-07  Paul Eggert  <eggert@cs.ucla.edu>
70307
70308         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Detect bug in
70309         Tandem NonStop Kernel (OSS) cc -O circa 2004, reported by
70310         Matthew Woehlke.
70311
70312         * lib/xalloc.h (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): Move
70313         definitions up, to avoid colliding with change below.
70314         (static_inline) [HAVE_INLINE]: New macro.
70315         (xnmalloc, xnrealloc, x2nrealloc, xcharalloc):
70316         Provide extern decls when !HAVE_INLINE.  Do not define unless
70317         static_inline is defined, either by us or by xmalloc.c.  Use
70318         static_inline rather than static inline.
70319         (XCALLOC): Optimize sizeof(T) = 1 case.
70320         * lib/xmalloc.c (static_inline) [!HAVE_INLINE]: New macro.
70321
70322 2006-11-07  Bruno Haible  <bruno@clisp.org>
70323
70324         * lib/xalloc.h (XNMALLOC): Restore optimization of sizeof(T) = 1 case.
70325         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Require gl_INLINE instead of
70326         AC_C_INLINE.
70327         * modules/xalloc (Files): Add m4/inline.m4.
70328
70329 2006-11-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
70330
70331         * README: Fix typo.
70332         * doc/gnulib.texi (Miscellaneous Notes): Likewise, rename...
70333         (Miscellanous Notes): ...from this.
70334
70335 2006-11-07  Paul Eggert  <eggert@cs.ucla.edu>
70336
70337         * m4/flexmember.m4 (AC_C_FLEXIBLE_ARRAY_MEMBER):
70338         Mention that offsetof should be used instead of sizeof.
70339         From Bruno Haible.
70340
70341 2006-11-07  Bruno Haible  <bruno@clisp.org>
70342
70343         * lib/w32spawn.h (prepare_spawn): Use XNMALLOC instead of xmalloc.
70344
70345 2006-11-06  Paul Eggert  <eggert@cs.ucla.edu>
70346
70347         Simplify xmalloc expressions. Add overflow check in xmalloc arguments.
70348         * lib/gl_anyavltree_list2.h (create_subtree_with_contents):
70349         (gl_tree_create, gl_tree_add_first, gl_tree_add_last):
70350         (gl_tree_add_before, gl_tree_add_after):
70351         Use XMALLOC instead of xmalloc, and XCALLOC instead of xzalloc.
70352         * lib/gl_anyhash_list2.h (hash_resize): Likewise.
70353         * lib/gl_anylinked_list2.h (gl_linked_create_empty, gl_linked_create):
70354         (gl_linked_add_first, gl_linked_add_last, gl_linked_add_before):
70355         (gl_linked_add_after, gl_linked_add_at): Likewise.
70356         * lib/gl_anyrbtree_list2.h (create_subtree_with_contents):
70357         (gl_tree_create, gl_tree_add_first, gl_tree_add_last):
70358         (gl_tree_add_before, gl_tree_add_after): Likewise.
70359         * lib/gl_anytree_list2.h (gl_tree_create_empty): Likewise.
70360         * lib/gl_anytree_oset.h (gl_tree_create_empty): Likewise.
70361         * lib/gl_anytreehash_list1.h (add_to_bucket): Likewise.
70362
70363 2006-11-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
70364
70365         * lib/gl_oset.h: Use C comment style, not C++ comment style.
70366
70367 2006-11-06  Bruno Haible  <bruno@clisp.org>
70368
70369         * m4/inline.m4: New file.
70370         * m4/gl_list.m4 (gl_LIST): Require gl_INLINE.
70371         * modules/list (Files): Add m4/inline.m4.
70372         * modules/oset (Files): Likewise.
70373
70374 2006-11-06  Paul Eggert  <eggert@cs.ucla.edu>
70375
70376         * lib/idcache.c: Include <stddef.h>, for offsetof.
70377         (struct userid.name): Change from char * to a flexible array member.
70378         All uses changed.
70379         * modules/idcache (Depends-on): Add flexmember.
70380
70381         * MODULES.html.sh (Core language properties): New module flexmember.
70382         * modules/flexmember, m4/flexmember.m4: New files.
70383
70384         * lib/xalloc.h (xnmalloc, xnrealloc, x2nrealloc): Now static
70385         inline functions that are identical with the old xnmalloc_inline,
70386         xnrealloc_inline, x2nrealloc_inline of lib/xmalloc.c.  This is so
70387         that we can avoid some unnecessary integer multiplications and
70388         divisions in the common case where the element size is known at
70389         compile time.
70390         (XNMALLOC) [HAVE_INLINE]: Remove special case, which is no longer
70391         needed.
70392         (xnboundedmalloc): Remove.
70393         (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): Use lower-case letters for
70394         arguments, for consistency with rest of this header.
70395         (xcharalloc): Rewrite using XNMALLOC.
70396         * lib/xmalloc.c (xnmalloc_inline, xnmalloc, xnrealloc_inline):
70397         (xnrealloc, x2nrealloc_inline, x2nrealloc): Remove.  The *_inline
70398         versions have been moved to lib/xalloc.h and renamed to be the
70399         non-*_inline versions.
70400         (xmalloc, xrealloc): Implement without reference to the xnmalloc
70401         and xnrealloc functions, since those functions are now inline and
70402         now call us.
70403         (x2realloc): Invoke x2realloc, not x2realloc_inline, to accommodate
70404         renaming described above.
70405         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Remove AC_C_INLINE since
70406         xmalloc.c no longer uses inline directly.  gl_PREREQ_XALLOC now
70407         captures the dependency in AC_C_INLINE.
70408
70409         New module canonicalize-lgpl, proposed by Charles Wilson in
70410         <http://lists.gnu.org/archive/html/bug-gnulib/2006-11/msg00020.html>
70411         with a few small changes afterwards.
70412         * MODULES.html.sh (File system functions): New module
70413         canonicalize-lgpl.
70414         * lib/canonicalize.h: Add comments for canonicalize_filename_mode
70415         and canonicalize_file_name.
70416         * lib/canonicalize-lgpl.c, m4/canonicalize-lgpl.m4:
70417         * modules/canonicalize-lgpl: New files.
70418
70419 2006-11-05  Bruno Haible  <bruno@clisp.org>
70420
70421         * gnulib-tool (func_import, func_create_testdir): Create directories
70422         also for files in subdirectories of lib/.
70423
70424 2006-11-05  Bruno Haible  <bruno@clisp.org>
70425
70426         * lib/gl_array_list.c (gl_array_iterator_next): Make pointer decrement
70427         ANSI C compliant.
70428
70429 2006-11-03  Bruno Haible  <bruno@clisp.org>
70430
70431         Simplify xmalloc expressions. Add overflow check in xmalloc arguments.
70432         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Require AC_C_INLINE.
70433         * lib/xalloc.h (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): New macros.
70434         (xnboundedmalloc): New inline function.
70435         * lib/classpath.c (new_classpath): Use XNMALLOC instead of xmalloc.
70436         * lib/clean-temp.c (create_temp_dir): Use XNMALLOC, XMALLOC instead of
70437         xmalloc.
70438         * lib/concatpath.c (concatenated_pathname): Use XNMALLOC instead of
70439         xmalloc.
70440         * lib/fatal-signal.c (at_fatal_signal): Use XNMALLOC instead of xmalloc.
70441         * lib/findprog.c (find_in_path): Use XNMALLOC instead of xmalloc.
70442         * lib/gl_array_list.c (gl_array_create_empty): Use XMALLOC instead of
70443         xmalloc.
70444         (gl_array_create): Use XNMALLOC, XMALLOC instead of xmalloc.
70445         * lib/gl_array_oset.c (gl_array_create_empty): Use XNMALLOC instead of
70446         xmalloc.
70447         * lib/gl_avltree_oset.c (gl_tree_add_first, gl_tree_add_before,
70448         gl_tree_add_after): Use XMALLOC instead of xmalloc.
70449         * lib/gl_carray_list.c (gl_carray_create_empty): Use XMALLOC instead of
70450         xmalloc.
70451         (gl_carray_create): Use XNMALLOC, XMALLOC instead of xmalloc.
70452         * lib/gl_rbtree_oset.c (gl_tree_add_first, gl_tree_add_before,
70453         gl_tree_add_after): Use XMALLOC instead of xmalloc.
70454         * lib/gl_sublist.c (gl_sublist_create): Use XMALLOC instead of xmalloc.
70455         * lib/pagealign_alloc.c (new_memnode): Use XMALLOC instead of xmalloc.
70456         * lib/sh-quote.c (shell_quote_argv): Use XNMALLOC instead of xmalloc.
70457         * lib/xvasprintf.c (xstrcat): Use XNMALLOC instead of xmalloc.
70458
70459 2006-11-03  Bruno Haible  <bruno@clisp.org>
70460
70461         * lib/c-ctype.h [C++]: Define functions without name mangling.
70462         * lib/fwriteerror.h [C++]: Likewise.
70463         * lib/gcd.h [C++]: Likewise.
70464         * lib/linebreak.h [C++]: Likewise.
70465
70466 2006-11-03  Paul Eggert  <eggert@cs.ucla.edu>
70467
70468         * lib/canonicalize.h: (canonicalize_mode_t, CAN_EXISTING):
70469         (CAN_ALL_BUT_LAST, CAN_MISSING, canonicalize_filename_mode):
70470         Define only if PROVIDE_CANONICALIZE_FILENAME_MODE is defined.
70471         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME):
70472         Check for functions and headers just once.
70473         Check for declaration of canonicalize_file_name.
70474         Define PROVIDE_CANONICALIZE_FILENAME_MODE.
70475
70476 2006-11-02  Charles Wilson  <cygwin@cwilson.fastmail.fm>
70477
70478         * gnulib-tool (func_import): Fix typo in actioncmd.
70479
70480 2006-11-02  Bruno Haible  <bruno@clisp.org>
70481
70482         * gnulib-tool (func_get_automake_snippet): Interpret a backslash-
70483         newline sequence in the Makefile.am snippet as a space, like "make"
70484         does.
70485         Reported by Roger Persson <perrog@gmail.com>.
70486
70487 2006-11-01  Bruno Haible  <bruno@clisp.org>
70488
70489         * m4/strcase.m4 (gl_FUNC_STRNCASECMP): Check whether strncasecmp is
70490         already declared in <string.h>.
70491         * lib/strcase.h (strncasecmp): Don't declare it if yes.
70492
70493 2006-11-01  Bruno Haible  <bruno@clisp.org>
70494
70495         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Don't define strcasecmp here.
70496         * lib/strcase.h: Include <string.h>.
70497         (strcasecmp): Define to rpl_strcasecmp here.
70498
70499 2006-11-01  Bruno Haible  <bruno@clisp.org>
70500
70501         * lib/printf-parse.c (PRINTF_PARSE): Cast malloc/realloc results.
70502
70503 2006-11-01  Eric Blake  <ebb9@byu.net>
70504
70505         * lib/mkstemp-safer.c (mkstemp_safer): Allow C++ compilation.
70506
70507         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Allow C++ configuration.
70508
70509 2006-10-29  Bruno Haible  <bruno@clisp.org>
70510
70511         Make it compile in C++ mode.
70512         * lib/full-write.c (full_rw): Add a cast.
70513
70514 2006-11-01  Bruno Haible  <bruno@clisp.org>
70515
70516         * gnulib-tool (func_get_automake_snippet): Change sed_combine_lines to
70517         be POSIX compliant.
70518         Reported by Roger Persson <perrog@gmail.com>.
70519
70520 2006-11-01  Eric Blake  <ebb9@byu.net>
70521
70522         * lib/getopt_.h: Fix comments.
70523
70524 2006-10-31  Eric Blake  <ebb9@byu.net>
70525
70526         * modules/tmpdir (Depends-on): Add sys_stat.
70527         * modules/mkdtemp (Depends-on): Add tempname, drop unistd.
70528         * lib/mkdtemp.c (gen_tempname): Remove; tempname covers this.
70529         * lib/tmpdir.c (S_ISDIR): Simplify, thanks to sys_stat.
70530         * m4/mkdtemp.m4 (gl_PREREQ_MKDTEMP): Simplify, thanks to
70531         tempname.
70532
70533 2006-10-31  Paul Eggert  <eggert@cs.ucla.edu>
70534
70535         Avoid some C++ diagnostics reported by Bruno Haible.
70536         * lib/quotearg.c (clone_quoting_options): Use xmemdup rather than
70537         xmalloc.
70538         (quotearg_alloc): Use xcharalloc rather than xmalloc.
70539         (struct slotvec): Move to top level.
70540         (quotearg_n_options): Rewrite to avoid xmalloc.
70541         * lib/xalloc.h (xcharalloc): New function.
70542         * (xrealloc, xnrealloc, x2realloc, x2nrealloc, xmemdup):
70543         [defined __cplusplus]: Add function template that provides result
70544         type propagation.  This part of the change is from Bruno Haible.
70545
70546 2006-10-29  Bruno Haible  <bruno@clisp.org>
70547
70548         Make it compile in C++ mode.
70549         * lib/striconv.c (mem_cd_iconv): Cast malloc/realloc result.
70550         * lib/strnlen1.c (strnlen1): Cast memchr result.
70551         * lib/mbchar.h (mb_copy): Rename arguments to 'new_mbc', 'old_mbc'.
70552         * lib/clean-temp.c (string_equals, string_hash): Add casts.
70553         (create_temp_dir): Rename local variable 'template'.
70554         (compile_csharp_using_sscli): Add cast.
70555         * lib/fatal-signal.c (at_fatal_signal): Cast xmalloc result.
70556         * lib/findprog.c (find_in_path): Likewise.
70557         * lib/linebreak.c (mbs_width_linebreaks): Cast malloc result.
70558         * lib/wait-process.c (register_slave_subprocess): Likewise.
70559
70560 2006-10-22  Bruno Haible  <bruno@clisp.org>
70561
70562         * modules/tsearch: New file.
70563         * lib/tsearch.h: New file.
70564         * lib/tsearch.c: New file, from glibc-2.5 with small modifications.
70565         * m4/tsearch.m4: New file.
70566         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add tsearch.
70567
70568 2006-10-29  Eric Blake  <ebb9@byu.net>
70569
70570         * lib/arcfour.c: Assume config.h.
70571         * lib/arctwo.c: Likewise.
70572         * lib/base64.c: Likewise.
70573         * lib/check-version.c: Likewise.
70574         * lib/crc.c: Likewise.
70575         * lib/des.c: Likewise.
70576         * lib/gc-gnulib.c: Likewise.
70577         * lib/gc-libgcrypt.c: Likewise.
70578         * lib/gc-pbkdf2-sha1.c: Likewise.
70579         * lib/getaddrinfo.c: Likewise.
70580         * lib/getdelim.c: Likewise.
70581         * lib/getline.c: Likewise.
70582         * lib/hmac-md5.c: Likewise.
70583         * lib/hmac-sha1.c: Likewise.
70584         * lib/iconvme.c: Likewise.
70585         * lib/md2.c: Likewise.
70586         * lib/md4.c: Likewise.
70587         * lib/memxor.c: Likewise.
70588         * lib/read-file.c: Likewise.
70589         * lib/readline.c: Likewise.
70590         * lib/rijndael-alg-fst.c: Likewise.
70591         * lib/rijndael-api-fst.c: Likewise.
70592         * lib/xgetdomainname.c: Likewise.
70593
70594 2006-10-28  Eric Blake  <ebb9@byu.net>
70595
70596         * lib/xstrndup.c: Assume config.h.
70597
70598 2006-10-27  Paul Eggert  <eggert@cs.ucla.edu>
70599
70600         Move stat.h-substitute stuff from lib/stat-macros.h to lib/stat_.h.
70601         stat-macros.h is now for our own macros, whereas stat_h is for
70602         macros in the <sys/stat.h> name space.
70603         * lib/stat-macros.h: Remove copyright notice, as this file is now tiny.
70604         (STAT_MACROS_H): Remove.
70605         (S_IFMT, S_ISBLK, S_ISCHR, S_ISDIR, S_ISFIFO, S_ISLNK, S_ISNAM):
70606         (S_ISMPB, S_ISMPC, S_ISNWK, S_ISREG, S_ISSOCK, S_ISDOOR, S_ISPORT):
70607         (S_TYPEISMQ, S_TYPEISTMO, S_TYPEISSEM, S_TYPEISSHM, S_ISCTG, S_ISOFD):
70608         (S_ISOFL, S_ISWHT, S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IRGRP):
70609         (S_IROTH, S_IWUSR, S_IWGRP, S_IWOTH, S_IXUSR, S_IXGRP, S_IXOTH):
70610         (S_IRWXU, S_IRWXG, S_IRWXO, S_IXUGO, S_IRWXUGO):
70611         Move these macros to ...
70612         * lib/stat_.h: here.  Don't include stat-macros.h.
70613         * lib/canonicalize.c: Don't include stat-macros.h.
70614         * lib/chown.c: Likewise.
70615         * lib/euidaccess.c: Likewise.
70616         * lib/file-type.c: Likewise.
70617         * lib/filemode.c: Likewise.
70618         * lib/glob.c: Likewise.
70619         * lib/isapipe.c: Likewise.
70620         * lib/lchown.c: Likewise.
70621         * lib/lstat.c: Likewise.
70622         * lib/mkdir-p.c: Likewise.
70623         * lib/rmdir.c: Likewise.
70624         * m4/lchown.m4 (gl_FUNC_LCHOWN): Don't require gl_STAT_MACROS.
70625         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Don't check for io.h
70626         unless mkdir isn't declared, to speed up 'configure'.
70627         Always create sys/stat.h, since it's unlikely any real sys/stat.h
70628         would define all the S_* symbols.
70629         * modules/canonicalize (Depends-on):
70630         Depend on sys_stat, not stat-macros.
70631         * modules/chown: Likewise.
70632         * modules/euidaccess: Likewise.
70633         * modules/filemode: Likewise.
70634         * modules/file-type: Likewise.
70635         * modules/glob: Likewise.
70636         * modules/isapipe: Likewise.
70637         * modules/lchown: Likewise.
70638         * modules/lstat: Likewise.
70639         * modules/mkancesdirs: Likewise.
70640         * modules/rmdir: Likewise.
70641         * modules/mkdir-p (Depends-on): Also depend on sys_stat.
70642         * modules/modechange: Likewise.
70643         * modules/stat-macros (Files): Remove m4/stat-macros.m4.
70644         (configure.ac): Remove gl_STAT_MACROS.
70645         * modules/sys_stat (Depends-on): Remove stat-macros.
70646
70647 2006-10-27  Bruno Haible  <bruno@clisp.org>
70648
70649         * m4/signed.m4: Remove file.
70650         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS_: Remove bh_C_SIGNED
70651         invocation.
70652         * modules/vasnprintf (Files): Remove m4/signed.m4.
70653
70654 2006-10-27  Bruno Haible  <bruno@clisp.org>
70655
70656         Update to GNU gettext 0.16.
70657         * modules/gettext (Files): Add m4/intl.m4, m4/intldir.m4. Remove
70658         m4/inttypes-h.m4, m4/signed.m4.
70659         * m4/gettext.m4: Update to GNU gettext 0.16.
70660         * m4/intl.m4: New file, from GNU gettext.
70661         * m4/intldir.m4: New file, from GNU gettext.
70662         * config/srclist.txt: Update
70663
70664 2006-10-27  Eric Blake  <ebb9@byu.net>
70665
70666         * MODULES.html.sh: Document tempname.
70667         * modules/mkstemp (Depends-on): Add tempname, and drop transitive
70668         dependencies.
70669         (Files): Move lib/tempname.c...
70670         * modules/tempname: ...to this new module.
70671         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Remove tempname checks.
70672         (gl_PREREQ_TEMPNAME): Move...
70673         * m4/tempname.m4: ...to this new file.
70674         * lib/mkstemp.c (includes) [!_LIBC]: Use tempname.h.
70675         * modules/sys_stat (Depends-on): Add stat-macros.
70676         * lib/stat_.h (includes): Pick up stat macros.
70677         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Replace <sys/stat.h>
70678         if stat macros are broken.
70679         * lib/tempname.c (includes): No need to include "stat-macros.h".
70680         (__gen_tempname) [!_LIBC]: Expose as gen_tempname.
70681         (direxists, __path_search) [!_LIBC]: Don't compile these in
70682         gnulib; the tmpdir module covers that.
70683         * lib/tempname.h: New file.
70684
70685 2006-10-26  Paul Eggert  <eggert@cs.ucla.edu>
70686
70687         * COPYING: Explain how gnulib-tool converts licence headers.
70688         Almost all wording by Eric Blake.
70689
70690 2006-10-25  Paul Eggert  <eggert@cs.ucla.edu>
70691
70692         * lib/mbchar.h (is_basic_table): Make read-only.
70693         * lib/mbchar.c (is_basic_table): Likewise.
70694         Reported by John Darrington.
70695
70696 2006-10-25  Bruno Haible  <bruno@clisp.org>
70697
70698         * lib/progname.h (set_program_name): Undefine before defining.
70699
70700 2006-10-25  Bruno Haible  <bruno@clisp.org>
70701
70702         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Define to
70703         false for non-gcc C++ compilers.
70704         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
70705
70706 2006-10-24  Bruno Haible  <bruno@clisp.org>
70707
70708         * lib/striconv.c (mem_cd_iconv, str_cd_iconv): Treat all non-GNU
70709         iconv implementations like Irix iconv.
70710
70711 2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
70712
70713         * modules/vararrays: New file.
70714         * m4/vararrays.m4: New file, taken from diffutils.
70715         * MODULES.html.sh: New module vararrays.
70716
70717 2006-10-24  Karl Berry  <karl@gnu.org>
70718
70719         * doc/gnulib-intro.texi: --- instead of --; non-naive naive.
70720         Don't call GNU Unix.
70721
70722 2006-10-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
70723
70724         * users.txt: Add Libtool.
70725
70726         Sync from Libtool:
70727
70728         2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
70729
70730         * lib/argz.c: Remove check for HAVE_CONFIG_H, to conform
70731         to gnulib's policy of including config.h unconditionally.
70732
70733 2006-10-24  Bruno Haible  <bruno@clisp.org>
70734
70735         * modules/wcwidth (Files): Add m4/wint_t.m4.
70736         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Require gt_TYPE_WINT_T.
70737         * lib/wcwidth.h (iswprint): Use 'int' if 'wint_t' is not defined.
70738
70739 2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
70740
70741         * lib/getdate.y (yyerror): Make the arguments pointer-to-const,
70742         to pacify GCC with some -W flags enabled.  Problem reported by
70743         Bruno Haible.
70744
70745 2006-10-24  Jim Meyering  <jim@meyering.net>
70746
70747         * MODULES.html.sh: Remove uinttostr.  It's not a module.
70748         Reported by Karl Berry.
70749
70750 2006-10-23  Bruno Haible  <bruno@clisp.org>
70751
70752         * lib/fts.c (fts_build): Move variable declaration, for C89 compliance.
70753
70754 2006-10-24  Bruno Haible  <bruno@clisp.org>
70755
70756         * lib/gl_list.h: Use C comment style, not C++ comment style.
70757
70758 2006-10-23  Eric Blake  <ebb9@byu.net>
70759
70760         * lib/getaddrinfo.c (includes): Add missing include.
70761
70762 2006-10-23  Bruno Haible  <bruno@clisp.org>
70763             Paul Eggert  <eggert@cs.ucla.edu>
70764
70765         Ability to rename obstack_free.
70766         * lib/obstack.h (__obstack_free): New macro. Declare instead of
70767         obstack_free.
70768         (obstack_free): Invoke the __obstack_free macro.
70769         * lib/obstack.c (obstack_free): Use __obstack_free macro.
70770
70771 2006-10-23  Bruno Haible  <bruno@clisp.org>
70772             Paul Eggert  <eggert@cs.ucla.edu>
70773
70774         * lib/argp.h (argp_parse, __argp_parse): Comment out the identifiers
70775         __argc, __argv from the declaration. (They are defined as macros on
70776         mingw.)
70777
70778 2006-10-22  Bruno Haible  <bruno@clisp.org>
70779
70780         * doc/gnulib-intro.texi: New file.
70781         * doc/gnulib.texi: Include it.
70782
70783 2006-10-21  Bruno Haible  <bruno@clisp.org>
70784
70785         * doc/gnulib.texi: Split the chapter "Gnulib" into 3 chapters
70786         "Introduction", "Miscellanous Notes", "Particular Modules".
70787
70788 2006-10-21  Bruno Haible  <bruno@clisp.org>
70789
70790         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
70791         Change mostlyclean-local rule to avoid sh syntax error from bash
70792         versions 2.00..2.05 when $(MOSTLYCLEANDIRS) is empty.
70793
70794 2006-10-23  Jim Meyering  <jim@meyering.net>
70795
70796         * lib/getaddrinfo.c (getnameinfo): Use new lightweight uinttostr,
70797         in place of snprintf.
70798
70799         * modules/inttostr (Files): Add lib/uinttostr.c.
70800         * lib/uinttostr.c (inttostr): New file/function.
70801         * lib/inttostr.h (uinttostr): Declare.
70802         * m4/inttostr.m4: Add AC_LIBOBJ([uinttostr]).
70803         * MODULES.html.sh (Numeric conversion functions <stdlib.h>):
70804         Add uinttostr.
70805         * modules/getaddrinfo (Depends-on): Remove snprintf.  Add inttostr.
70806
70807 2006-10-21  Paul Eggert  <eggert@cs.ucla.edu>
70808
70809         * lib/canonicalize.c (ELOOP): Define if not already defined.
70810         Problem reported by Bruno Haible in
70811         <http://lists.gnu.org/archive/html/bug-gnulib/2006-10/msg00282.html>.
70812
70813 2006-10-21  Paul Eggert  <eggert@cs.ucla.edu>
70814
70815         * lib/stdint_.h [defined _AIX]: Don't include <sys/types.h>.
70816         Problem reported by Perry Smith and Ville Laurikari.
70817
70818         * lib/getndelim2.c (SSIZE_MAX): Use same defn that getdelim.c
70819         uses.
70820
70821 2006-10-19  Bruno Haible  <bruno@clisp.org>
70822
70823         * lib/getndelim2.c (SSIZE_MAX): Provide fallback definition. Needed
70824         for mingw.
70825
70826 2006-10-19  Bruno Haible  <bruno@clisp.org>
70827
70828         * lib/openat-priv.h (EOPNOTSUPP): Provide fallback definition.
70829         Needed for mingw.
70830
70831 2006-10-19  Bruno Haible  <bruno@clisp.org>
70832
70833         * m4/size_max.m4 (gl_SIZE_MAX): Cache the result.
70834
70835 2006-10-19  Bruno Haible  <bruno@clisp.org>
70836
70837         * m4/allocsa.m4 (gl_ALLOCSA): Invoke gl_FUNC_ALLOCA, don't AC_REQUIRE
70838         it.
70839
70840 2006-10-19  Bruno Haible  <bruno@clisp.org>
70841
70842         * m4/alloca.m4 (gl_FUNC_ALLOCA): Cache the result of the AC_EGREP_CPP
70843         invocation.
70844
70845 2006-10-19  Bruno Haible  <bruno@clisp.org>
70846
70847         * gnulib-tool (func_create_testdir): Don't include ftruncate and
70848         mountlist by default.
70849
70850 2006-10-16  Bruno Haible  <bruno@clisp.org>
70851
70852         * lib/c-strstr.c: Include c-strstr.h.
70853
70854 2006-10-18  Charles Wilson  <cygwin@cwilson.fastmail.fm>
70855
70856         * gnulib-tool: Don't clobber $sourcebase when $local_gnulib_dir ends
70857         in a slash.
70858
70859 2006-10-18  Bruno Haible  <bruno@clisp.org>
70860
70861         * lib/lock.h [C++]: Wrap definitions in extern "C".
70862
70863 2006-10-18  Bruno Haible  <bruno@clisp.org>
70864
70865         * gnulib-tool (func_emit_initmacro_end): Remove duplicates from the
70866         gl_LIBOBJS list.
70867
70868 2006-10-18  Bruno Haible  <bruno@clisp.org>
70869
70870         * lib/findprog.c (find_in_path): Avoid "gcc -Wwrite-strings" warning.
70871
70872 2006-10-19  Paul Eggert  <eggert@cs.ucla.edu>
70873
70874         * lib/xstrtol.h: Include gettext.h.
70875         (_STRTOL_ERROR): Wrap English-language formats inside gettext.
70876         Problem reported by Eric Blake.
70877         * modules/xstrtol (Depends-on): Add gettext-h.
70878
70879 2006-10-19  Paul Eggert  <eggert@cs.ucla.edu>  (tiny change)
70880
70881         * lib/strftime.c (advance): New macro.
70882         (add): Use it to avoid adding 0 to a FILE *.  FILE can be an
70883         incomplete type, so you can't add 0 to it.  Problem and patch
70884         reported by Eelco Dolstra for dietlibc.
70885
70886 2006-10-18  Jim Meyering  <jim@meyering.net>
70887
70888         * lib/readutmp.c (desirable_utmp_entry): Use "bool" as the
70889         type for a local, and rename it: s/up/user_proc/.
70890
70891 2006-10-18  Sergey Poznyakoff  <gray@gnu.org.ua>
70892
70893         * lib/readutmp.c (desirable_utmp_entry): Implement new flag:
70894         READ_UTMP_USER_PROCESS.
70895         * lib/readutmp.h (READ_UTMP_USER_PROCESS): New flag
70896
70897 2006-10-17  Paul Eggert  <eggert@cs.ucla.edu>
70898
70899         * lib/localcharset.c: Do not check HAVE_SETLOCALE.
70900         * m4/localcharset.m4 (gl_LOCALCHARSET): Don't check for setlocale.
70901
70902 2006-10-17  Eric Blake  <ebb9@byu.net>
70903
70904         * lib/sigprocmask.c (sigprocmask): Fix typo.
70905
70906         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Fix typo.
70907
70908         * modules/clean-temp (Makefile.am): Don't add to make output...
70909         (configure.ac): ...instead define SIGNAL_SAFE_LIST inside
70910         config.h.
70911
70912 2006-10-17  Bruno Haible  <bruno@clisp.org>
70913
70914         * lib/gettext.h (gettext, ngettext, pgettext, npgettext): Define
70915         differently if DEFAULT_TEXT_DOMAIN is set.
70916
70917 2006-10-16  Bruno Haible  <bruno@clisp.org>
70918
70919         * lib/clean-temp.c: Include fwriteerror.h.
70920
70921 2006-10-16  Bruno Haible  <bruno@clisp.org>
70922
70923         * getndelim2.m4 (gl_GETNDELIM2): Remove 2003-10-23 hack.
70924
70925 2006-10-16  Bruno Haible  <bruno@clisp.org>
70926
70927         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Also test for sigset_t.
70928         * lib/sigprocmask.h: Include <sys/types.h>.
70929         (sigset_t): Use the system's definition if present.
70930
70931 2006-10-17  Eric Blake  <ebb9@byu.net>
70932
70933         * lib/xvasprintf.c (includes): Assume config.h.
70934         * lib/xasprintf.c (includes): Likewise.
70935
70936 2006-10-16  Paul Eggert  <eggert@cs.ucla.edu>
70937
70938         * lib/fsusage.c (PROPAGATE_ALL_ONES): Don't assume uintmax_t is
70939         at least as wide as intmax_t.
70940
70941 2006-10-16  Alexandre Duret-Lutz  <adl@gnu.org>
70942
70943         (Imported from Automake.)
70944         * build-aux/gnupload: Update to version 1.1 of directive file.
70945
70946 2006-10-16  Eric Blake  <ebb9@byu.net>
70947
70948         * modules/configmake (Makefile.am): Add pkglibexecdir support, to
70949         match Automake 1.10a.
70950
70951 2006-10-14  Bruno Haible  <bruno@clisp.org>
70952
70953         * modules/sigprocmask: New file.
70954         * lib/sigprocmask.h: New file.
70955         * lib/sigprocmask.c: New file.
70956         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Renamed from
70957         gt_SIGNALBLOCKING. When not defining HAVE_POSIX_SIGNALBLOCKING,
70958         request sigprocmask.o.
70959         (gl_PREREQ_SIGPROCMASK): New macro.
70960         * modules/fatal-signal (Files): Remove m4/signalblocking.m4.
70961         (Depends-on): Add sigprocmask.
70962         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Don't require
70963         gt_SIGNALBLOCKING. Test for 'raise' only once.
70964         * lib/fatal-signal.c: Include sigprocmask.h.
70965         (fatal_signal_set, init_fatal_signal_set, block_fatal_signals,
70966         unblock_fatal_signals): Define always.
70967         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
70968         sigprocmask.
70969
70970 2006-10-14  Paul Eggert  <eggert@cs.ucla.edu>
70971
70972         Sync from Automake.
70973         * build-aux/install-sh (posix_mkdir): Reject FreeBSD 6.1 mkdir -p -m,
70974         which incorrectly sets the mode of an existing destination
70975         directory.  In some cases the unpatched install-sh could do the
70976         equivalent of "chmod 777 /" or "chmod 0 /" on a buggy FreeBSD
70977         system.  We hope this is rare in practice, but it's clearly worth
70978         fixing.  Problem reported by Alex Unleashed in
70979         <http://lists.gnu.org/archive/html/bug-autoconf/2006-10/msg00012.html>.
70980         Also, don't bother to check for -m bugs unless we're using -m;
70981         suggested by Stepan Kasal.
70982
70983 2006-10-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
70984
70985         Sync from Automake.
70986         * build-aux/depcomp (gcc3): Put dependency extraction flags before the
70987         `-c' flag, so they appear at the same position as in %FASTDEP%
70988         mode in depend2.am.  Fixes build failure for FreeBSD's c89,
70989         which ignores unknown options only after the first non-option.
70990         Bug report against M4 by Nelson H. F. Beebe.
70991
70992 2006-10-13  Jim Meyering  <jim@meyering.net>
70993
70994         Fix a bug in yesterday's change.
70995         * lib/fts.c (fts_open): When using FTS_XDEV|FTS_NOSTAT,
70996         p->fts_statp->st_dev would be used uninitialized.
70997         Ensures that we always call fts_stat on the very first entry.
70998         Miklos Szeredi reported that find -xdev stopped working.
70999
71000 2006-10-12  Bruno Haible  <bruno@clisp.org>
71001
71002         * gnulib-tool (func_get_automake_snippet): Append an automatically
71003         computed EXTRA_DIST augmentation.
71004         * modules/acl (Makefile.am): Remove EXTRA_DIST augmentation.
71005         * modules/alloca-opt (Makefile.am): Likewise.
71006         * modules/allocsa (Makefile.am): Likewise.
71007         * modules/arcfour (Makefile.am): Likewise.
71008         * modules/arctwo (Makefile.am): Likewise.
71009         * modules/argmatch (Makefile.am): Likewise.
71010         * modules/argz (Makefile.am): Likewise.
71011         * modules/atexit (Makefile.am): Likewise.
71012         * modules/backupfile (Makefile.am): Likewise.
71013         * modules/byteswap (Makefile.am): Likewise.
71014         * modules/c-strtod (Makefile.am): Likewise.
71015         * modules/c-strtold (Makefile.am): Likewise.
71016         * modules/calloc (Makefile.am): Likewise.
71017         * modules/canon-host (Makefile.am): Likewise.
71018         * modules/canonicalize (Makefile.am): Likewise.
71019         * modules/chdir-long (Makefile.am): Likewise.
71020         * modules/chdir-safer (Makefile.am): Likewise.
71021         * modules/check-version (Makefile.am): Likewise.
71022         * modules/chown (Makefile.am): Likewise.
71023         * modules/cloexec (Makefile.am): Likewise.
71024         * modules/close-stream (Makefile.am): Likewise.
71025         * modules/closeout (Makefile.am): Likewise.
71026         * modules/crc (Makefile.am): Likewise.
71027         * modules/csharpexec (Makefile.am): Likewise.
71028         * modules/cycle-check (Makefile.am): Likewise.
71029         * modules/des (Makefile.am): Likewise.
71030         * modules/dev-ino (Makefile.am): Likewise.
71031         * modules/dirfd (Makefile.am): Likewise.
71032         * modules/dirname (Makefile.am): Likewise.
71033         * modules/dup2 (Makefile.am): Likewise.
71034         * modules/eealloc (Makefile.am): Likewise.
71035         * modules/error (Makefile.am): Likewise.
71036         * modules/euidaccess (Makefile.am): Likewise.
71037         * modules/exclude (Makefile.am): Likewise.
71038         * modules/exitfail (Makefile.am): Likewise.
71039         * modules/fcntl-safer (Makefile.am): Likewise.
71040         * modules/fcntl (Makefile.am): Likewise.
71041         * modules/file-type (Makefile.am): Likewise.
71042         * modules/fileblocks (Makefile.am): Likewise.
71043         * modules/filemode (Makefile.am): Likewise.
71044         * modules/filenamecat (Makefile.am): Likewise.
71045         * modules/fnmatch (Makefile.am): Likewise.
71046         * modules/fopen-safer (Makefile.am): Likewise.
71047         * modules/fpending (Makefile.am): Likewise.
71048         * modules/fprintftime (Makefile.am): Likewise.
71049         * modules/free (Makefile.am): Likewise.
71050         * modules/fsusage (Makefile.am): Likewise.
71051         * modules/ftruncate (Makefile.am): Likewise.
71052         * modules/fts (Makefile.am): Likewise.
71053         * modules/gc-arcfour (Makefile.am): Likewise.
71054         * modules/gc-des (Makefile.am): Likewise.
71055         * modules/gc-hmac-md5 (Makefile.am): Likewise.
71056         * modules/gc-hmac-sha1 (Makefile.am): Likewise.
71057         * modules/gc-md4 (Makefile.am): Likewise.
71058         * modules/gc-pbkdf2-sha1 (Makefile.am): Likewise.
71059         * modules/gc-sha1 (Makefile.am): Likewise.
71060         * modules/gc (Makefile.am): Likewise.
71061         * modules/getaddrinfo (Makefile.am): Likewise.
71062         * modules/getcwd (Makefile.am): Likewise.
71063         * modules/getdelim (Makefile.am): Likewise.
71064         * modules/getdomainname (Makefile.am): Likewise.
71065         * modules/getgroups (Makefile.am): Likewise.
71066         * modules/gethostname (Makefile.am): Likewise.
71067         * modules/gethrxtime (Makefile.am): Likewise.
71068         * modules/getline (Makefile.am): Likewise.
71069         * modules/getloadavg (Makefile.am): Likewise.
71070         * modules/getlogin_r (Makefile.am): Likewise.
71071         * modules/getndelim2 (Makefile.am): Likewise.
71072         * modules/getopt (Makefile.am): Likewise.
71073         * modules/getpagesize (Makefile.am): Likewise.
71074         * modules/getpass-gnu (Makefile.am): Likewise.
71075         * modules/getpass (Makefile.am): Likewise.
71076         * modules/getsubopt (Makefile.am): Likewise.
71077         * modules/gettime (Makefile.am): Likewise.
71078         * modules/gettimeofday (Makefile.am): Likewise.
71079         * modules/getugroups (Makefile.am): Likewise.
71080         * modules/getusershell (Makefile.am): Likewise.
71081         * modules/glob (Makefile.am): Likewise.
71082         * modules/group-member (Makefile.am): Likewise.
71083         * modules/hard-locale (Makefile.am): Likewise.
71084         * modules/hash (Makefile.am): Likewise.
71085         * modules/hmac-md5 (Makefile.am): Likewise.
71086         * modules/hmac-sha1 (Makefile.am): Likewise.
71087         * modules/human (Makefile.am): Likewise.
71088         * modules/idcache (Makefile.am): Likewise.
71089         * modules/imaxabs (Makefile.am): Likewise.
71090         * modules/imaxdiv (Makefile.am): Likewise.
71091         * modules/inet_ntop (Makefile.am): Likewise.
71092         * modules/inet_pton (Makefile.am): Likewise.
71093         * modules/intprops (Makefile.am): Likewise.
71094         * modules/inttostr (Makefile.am): Likewise.
71095         * modules/inttypes (Makefile.am): Likewise.
71096         * modules/isapipe (Makefile.am): Likewise.
71097         * modules/javaversion (Makefile.am): Likewise.
71098         * modules/lchmod (Makefile.am): Likewise.
71099         * modules/lchown (Makefile.am): Likewise.
71100         * modules/localcharset (Makefile.am): Likewise.
71101         * modules/long-options (Makefile.am): Likewise.
71102         * modules/lstat (Makefile.am): Likewise.
71103         * modules/malloc (Makefile.am): Likewise.
71104         * modules/mathl (Makefile.am): Likewise.
71105         * modules/mbchar (Makefile.am): Likewise.
71106         * modules/md2 (Makefile.am): Likewise.
71107         * modules/md4 (Makefile.am): Likewise.
71108         * modules/md5 (Makefile.am): Likewise.
71109         * modules/memcasecmp (Makefile.am): Likewise.
71110         * modules/memchr (Makefile.am): Likewise.
71111         * modules/memcmp (Makefile.am): Likewise.
71112         * modules/memcoll (Makefile.am): Likewise.
71113         * modules/memcpy (Makefile.am): Likewise.
71114         * modules/memmem (Makefile.am): Likewise.
71115         * modules/memmove (Makefile.am): Likewise.
71116         * modules/mempcpy (Makefile.am): Likewise.
71117         * modules/memrchr (Makefile.am): Likewise.
71118         * modules/memset (Makefile.am): Likewise.
71119         * modules/memxor (Makefile.am): Likewise.
71120         * modules/mkancesdirs (Makefile.am): Likewise.
71121         * modules/mkdir-p (Makefile.am): Likewise.
71122         * modules/mkdir (Makefile.am): Likewise.
71123         * modules/mkdtemp (Makefile.am): Likewise.
71124         * modules/mkstemp (Makefile.am): Likewise.
71125         * modules/mktime (Makefile.am): Likewise.
71126         * modules/modechange (Makefile.am): Likewise.
71127         * modules/mountlist (Makefile.am): Likewise.
71128         * modules/nanosleep (Makefile.am): Likewise.
71129         * modules/obstack (Makefile.am): Likewise.
71130         * modules/openat (Makefile.am): Likewise.
71131         * modules/pagealign_alloc (Makefile.am): Likewise.
71132         * modules/pathmax (Makefile.am): Likewise.
71133         * modules/physmem (Makefile.am): Likewise.
71134         * modules/poll (Makefile.am): Likewise.
71135         * modules/posixtm (Makefile.am): Likewise.
71136         * modules/posixver (Makefile.am): Likewise.
71137         * modules/putenv (Makefile.am): Likewise.
71138         * modules/quote (Makefile.am): Likewise.
71139         * modules/quotearg (Makefile.am): Likewise.
71140         * modules/raise (Makefile.am): Likewise.
71141         * modules/read-file (Makefile.am): Likewise.
71142         * modules/readline (Makefile.am): Likewise.
71143         * modules/readlink (Makefile.am): Likewise.
71144         * modules/readtokens (Makefile.am): Likewise.
71145         * modules/readutmp (Makefile.am): Likewise.
71146         * modules/realloc (Makefile.am): Likewise.
71147         * modules/regex (Makefile.am): Likewise.
71148         * modules/rename-dest-slash (Makefile.am): Likewise.
71149         * modules/rename (Makefile.am): Likewise.
71150         * modules/rijndael (Makefile.am): Likewise.
71151         * modules/rmdir (Makefile.am): Likewise.
71152         * modules/rpmatch (Makefile.am): Likewise.
71153         * modules/safe-read (Makefile.am): Likewise.
71154         * modules/safe-write (Makefile.am): Likewise.
71155         * modules/same-inode (Makefile.am): Likewise.
71156         * modules/same (Makefile.am): Likewise.
71157         * modules/save-cwd (Makefile.am): Likewise.
71158         * modules/savedir (Makefile.am): Likewise.
71159         * modules/setenv (Makefile.am): Likewise.
71160         * modules/settime (Makefile.am): Likewise.
71161         * modules/sha1 (Makefile.am): Likewise.
71162         * modules/sig2str (Makefile.am): Likewise.
71163         * modules/snprintf (Makefile.am): Likewise.
71164         * modules/stat-macros (Makefile.am): Likewise.
71165         * modules/stat-time (Makefile.am): Likewise.
71166         * modules/stdbool (Makefile.am): Likewise.
71167         * modules/stdint (Makefile.am): Likewise.
71168         * modules/stdlib-safer (Makefile.am): Likewise.
71169         * modules/stpcpy (Makefile.am): Likewise.
71170         * modules/stpncpy (Makefile.am): Likewise.
71171         * modules/strcase (Makefile.am): Likewise.
71172         * modules/strcasestr (Makefile.am): Likewise.
71173         * modules/strchrnul (Makefile.am): Likewise.
71174         * modules/strcspn (Makefile.am): Likewise.
71175         * modules/strdup (Makefile.am): Likewise.
71176         * modules/strerror (Makefile.am): Likewise.
71177         * modules/strftime (Makefile.am): Likewise.
71178         * modules/strndup (Makefile.am): Likewise.
71179         * modules/strnlen (Makefile.am): Likewise.
71180         * modules/strpbrk (Makefile.am): Likewise.
71181         * modules/strsep (Makefile.am): Likewise.
71182         * modules/strstr (Makefile.am): Likewise.
71183         * modules/strtod (Makefile.am): Likewise.
71184         * modules/strtoimax (Makefile.am): Likewise.
71185         * modules/strtok_r (Makefile.am): Likewise.
71186         * modules/strtol (Makefile.am): Likewise.
71187         * modules/strtoll (Makefile.am): Likewise.
71188         * modules/strtoul (Makefile.am): Likewise.
71189         * modules/strtoull (Makefile.am): Likewise.
71190         * modules/strtoumax (Makefile.am): Likewise.
71191         * modules/strverscmp (Makefile.am): Likewise.
71192         * modules/sys_socket (Makefile.am): Likewise.
71193         * modules/sys_stat (Makefile.am): Likewise.
71194         * modules/sysexits (Makefile.am): Likewise.
71195         * modules/time_r (Makefile.am): Likewise.
71196         * modules/timegm (Makefile.am): Likewise.
71197         * modules/timespec (Makefile.am): Likewise.
71198         * modules/tmpfile-safer (Makefile.am): Likewise.
71199         * modules/trim (Makefile.am): Likewise.
71200         * modules/unistd-safer (Makefile.am): Likewise.
71201         * modules/unlinkdir (Makefile.am): Likewise.
71202         * modules/unlocked-io (Makefile.am): Likewise.
71203         * modules/userspec (Makefile.am): Likewise.
71204         * modules/utime (Makefile.am): Likewise.
71205         * modules/utimecmp (Makefile.am): Likewise.
71206         * modules/utimens (Makefile.am): Likewise.
71207         * modules/vasnprintf (Makefile.am): Likewise.
71208         * modules/vasprintf (Makefile.am): Likewise.
71209         * modules/vsnprintf (Makefile.am): Likewise.
71210         * modules/xalloc (Makefile.am): Likewise.
71211         * modules/xgetcwd (Makefile.am): Likewise.
71212         * modules/xnanosleep (Makefile.am): Likewise.
71213         * modules/xreadlink (Makefile.am): Likewise.
71214         * modules/xstrtod (Makefile.am): Likewise.
71215         * modules/xstrtol (Makefile.am): Likewise.
71216         * modules/xstrtold (Makefile.am): Likewise.
71217         * modules/yesno (Makefile.am): Likewise.
71218         * modules/getdate (Makefile.am): Don't add getdate.h to EXTRA_DIST.
71219
71220 2006-10-12  Paul Eggert  <eggert@cs.ucla.edu>
71221
71222         * modules/error (Makefile.am): Distribute files through
71223         EXTRA_DIST, not lib_SOURCES.
71224
71225 2006-10-12  Eric Blake  <ebb9@byu.net>
71226
71227         * modules/error (Makefile.am): Distribute files in /lib.
71228         * modules/obstack (Makefile.am): Likewise.
71229
71230 2006-10-12  Bruno Haible  <bruno@clisp.org>
71231
71232         * modules/acl (Makefile.am): Distribute all files in lib/ through
71233         EXTRA_DIST.
71234         * modules/arcfour (Makefile.am): Likewise.
71235         * modules/arctwo (Makefile.am): Likewise.
71236         * modules/argmatch (Makefile.am): Likewise.
71237         * modules/argz (Makefile.am): Likewise.
71238         * modules/atexit (Makefile.am): Likewise.
71239         * modules/backupfile (Makefile.am): Likewise.
71240         * modules/c-strtod (Makefile.am): Likewise.
71241         * modules/c-strtold (Makefile.am): Likewise.
71242         * modules/calloc (Makefile.am): Likewise.
71243         * modules/canon-host (Makefile.am): Likewise.
71244         * modules/canonicalize (Makefile.am): Likewise.
71245         * modules/chdir-long (Makefile.am): Likewise.
71246         * modules/chdir-safer (Makefile.am): Likewise.
71247         * modules/check-version (Makefile.am): Likewise.
71248         * modules/chown (Makefile.am): Likewise.
71249         * modules/cloexec (Makefile.am): Likewise.
71250         * modules/close-stream (Makefile.am): Likewise.
71251         * modules/closeout (Makefile.am): Likewise.
71252         * modules/crc (Makefile.am): Likewise.
71253         * modules/cycle-check (Makefile.am): Likewise.
71254         * modules/des (Makefile.am): Likewise.
71255         * modules/dirfd (Makefile.am): Likewise.
71256         * modules/dirname (Makefile.am): Likewise.
71257         * modules/dup2 (Makefile.am): Likewise.
71258         * modules/euidaccess (Makefile.am): Likewise.
71259         * modules/exclude (Makefile.am): Likewise.
71260         * modules/exitfail (Makefile.am): Likewise.
71261         * modules/fcntl-safer (Makefile.am): Likewise.
71262         * modules/file-type (Makefile.am): Likewise.
71263         * modules/fileblocks (Makefile.am): Likewise.
71264         * modules/filemode (Makefile.am): Likewise.
71265         * modules/filenamecat (Makefile.am): Likewise.
71266         * modules/fnmatch (Makefile.am): Likewise.
71267         * modules/fopen-safer (Makefile.am): Likewise.
71268         * modules/fpending (Makefile.am): Likewise.
71269         * modules/fprintftime (Makefile.am): Likewise.
71270         * modules/free (Makefile.am): Likewise.
71271         * modules/fsusage (Makefile.am): Likewise.
71272         * modules/ftruncate (Makefile.am): Likewise.
71273         * modules/fts (Makefile.am): Likewise.
71274         * modules/gc (Makefile.am): Likewise.
71275         * modules/gc-pbkdf2-sha1 (Makefile.am): Likewise.
71276         * modules/getaddrinfo (Makefile.am): Likewise.
71277         * modules/getcwd (Makefile.am): Likewise.
71278         * modules/getdelim (Makefile.am): Likewise.
71279         * modules/getdomainname (Makefile.am): Likewise.
71280         * modules/getgroups (Makefile.am): Likewise.
71281         * modules/gethostname (Makefile.am): Likewise.
71282         * modules/gethrxtime (Makefile.am): Likewise.
71283         * modules/getline (Makefile.am): Likewise.
71284         * modules/getloadavg (Makefile.am): Likewise.
71285         * modules/getlogin_r (Makefile.am): Likewise.
71286         * modules/getopt (Makefile.am): Likewise.
71287         * modules/getpass (Makefile.am): Likewise.
71288         * modules/getpass-gnu (Makefile.am): Likewise.
71289         * modules/getsubopt (Makefile.am): Likewise.
71290         * modules/gettime (Makefile.am): Likewise.
71291         * modules/gettimeofday (Makefile.am): Likewise.
71292         * modules/getugroups (Makefile.am): Likewise.
71293         * modules/getusershell (Makefile.am): Likewise.
71294         * modules/glob (Makefile.am): Likewise.
71295         * modules/group-member (Makefile.am): Likewise.
71296         * modules/hard-locale (Makefile.am): Likewise.
71297         * modules/hash (Makefile.am): Likewise.
71298         * modules/hmac-md5 (Makefile.am): Likewise.
71299         * modules/hmac-sha1 (Makefile.am): Likewise.
71300         * modules/human (Makefile.am): Likewise.
71301         * modules/idcache (Makefile.am): Likewise.
71302         * modules/imaxabs (Makefile.am): Likewise.
71303         * modules/imaxdiv (Makefile.am): Likewise.
71304         * modules/inet_ntop (Makefile.am): Likewise.
71305         * modules/inet_pton (Makefile.am): Likewise.
71306         * modules/inttostr (Makefile.am): Likewise.
71307         * modules/isapipe (Makefile.am): Likewise.
71308         * modules/lchown (Makefile.am): Likewise.
71309         * modules/long-options (Makefile.am): Likewise.
71310         * modules/lstat (Makefile.am): Likewise.
71311         * modules/malloc (Makefile.am): Likewise.
71312         * modules/mathl (Makefile.am): Likewise.
71313         * modules/mbchar (Makefile.am): Likewise.
71314         * modules/md2 (Makefile.am): Likewise.
71315         * modules/md4 (Makefile.am): Likewise.
71316         * modules/md5 (Makefile.am): Likewise.
71317         * modules/memcasecmp (Makefile.am): Likewise.
71318         * modules/memchr (Makefile.am): Likewise.
71319         * modules/memcmp (Makefile.am): Likewise.
71320         * modules/memcoll (Makefile.am): Likewise.
71321         * modules/memcpy (Makefile.am): Likewise.
71322         * modules/memmem (Makefile.am): Likewise.
71323         * modules/memmove (Makefile.am): Likewise.
71324         * modules/mempcpy (Makefile.am): Likewise.
71325         * modules/memrchr (Makefile.am): Likewise.
71326         * modules/memset (Makefile.am): Likewise.
71327         * modules/memxor (Makefile.am): Likewise.
71328         * modules/mkancesdirs (Makefile.am): Likewise.
71329         * modules/mkdir (Makefile.am): Likewise.
71330         * modules/mkdir-p (Makefile.am): Likewise.
71331         * modules/mkdtemp (Makefile.am): Likewise.
71332         * modules/mkstemp (Makefile.am): Likewise.
71333         * modules/mktime (Makefile.am): Likewise.
71334         * modules/modechange (Makefile.am): Likewise.
71335         * modules/mountlist (Makefile.am): Likewise.
71336         * modules/nanosleep (Makefile.am): Likewise.
71337         * modules/openat (Makefile.am): Likewise.
71338         * modules/pagealign_alloc (Makefile.am): Likewise.
71339         * modules/physmem (Makefile.am): Likewise.
71340         * modules/poll (Makefile.am): Likewise.
71341         * modules/posixtm (Makefile.am): Likewise.
71342         * modules/posixver (Makefile.am): Likewise.
71343         * modules/putenv (Makefile.am): Likewise.
71344         * modules/quote (Makefile.am): Likewise.
71345         * modules/quotearg (Makefile.am): Likewise.
71346         * modules/raise (Makefile.am): Likewise.
71347         * modules/read-file (Makefile.am): Likewise.
71348         * modules/readline (Makefile.am): Likewise.
71349         * modules/readlink (Makefile.am): Likewise.
71350         * modules/readtokens (Makefile.am): Likewise.
71351         * modules/readutmp (Makefile.am): Likewise.
71352         * modules/realloc (Makefile.am): Likewise.
71353         * modules/regex (Makefile.am): Likewise.
71354         * modules/rename (Makefile.am): Likewise.
71355         * modules/rename-dest-slash (Makefile.am): Likewise.
71356         * modules/rijndael (Makefile.am): Likewise.
71357         * modules/rmdir (Makefile.am): Likewise.
71358         * modules/rpmatch (Makefile.am): Likewise.
71359         * modules/safe-read (Makefile.am): Likewise.
71360         * modules/safe-write (Makefile.am): Likewise.
71361         * modules/same (Makefile.am): Likewise.
71362         * modules/save-cwd (Makefile.am): Likewise.
71363         * modules/savedir (Makefile.am): Likewise.
71364         * modules/setenv (Makefile.am): Likewise.
71365         * modules/settime (Makefile.am): Likewise.
71366         * modules/sha1 (Makefile.am): Likewise.
71367         * modules/sig2str (Makefile.am): Likewise.
71368         * modules/snprintf (Makefile.am): Likewise.
71369         * modules/stdlib-safer (Makefile.am): Likewise.
71370         * modules/stpcpy (Makefile.am): Likewise.
71371         * modules/stpncpy (Makefile.am): Likewise.
71372         * modules/strcase (Makefile.am): Likewise.
71373         * modules/strcasestr (Makefile.am): Likewise.
71374         * modules/strchrnul (Makefile.am): Likewise.
71375         * modules/strcspn (Makefile.am): Likewise.
71376         * modules/strdup (Makefile.am): Likewise.
71377         * modules/strerror (Makefile.am): Likewise.
71378         * modules/strftime (Makefile.am): Likewise.
71379         * modules/strndup (Makefile.am): Likewise.
71380         * modules/strnlen (Makefile.am): Likewise.
71381         * modules/strpbrk (Makefile.am): Likewise.
71382         * modules/strsep (Makefile.am): Likewise.
71383         * modules/strstr (Makefile.am): Likewise.
71384         * modules/strtod (Makefile.am): Likewise.
71385         * modules/strtoimax (Makefile.am): Likewise.
71386         * modules/strtok_r (Makefile.am): Likewise.
71387         * modules/strtol (Makefile.am): Likewise.
71388         * modules/strtoll (Makefile.am): Likewise.
71389         * modules/strtoul (Makefile.am): Likewise.
71390         * modules/strtoull (Makefile.am): Likewise.
71391         * modules/strtoumax (Makefile.am): Likewise.
71392         * modules/strverscmp (Makefile.am): Likewise.
71393         * modules/time_r (Makefile.am): Likewise.
71394         * modules/timegm (Makefile.am): Likewise.
71395         * modules/tmpfile-safer (Makefile.am): Likewise.
71396         * modules/unistd-safer (Makefile.am): Likewise.
71397         * modules/unlinkdir (Makefile.am): Likewise.
71398         * modules/userspec (Makefile.am): Likewise.
71399         * modules/utime (Makefile.am): Likewise.
71400         * modules/utimecmp (Makefile.am): Likewise.
71401         * modules/utimens (Makefile.am): Likewise.
71402         * modules/vasnprintf (Makefile.am): Likewise.
71403         * modules/vasprintf (Makefile.am): Likewise.
71404         * modules/vsnprintf (Makefile.am): Likewise.
71405         * modules/xalloc (Makefile.am): Likewise.
71406         * modules/xgetcwd (Makefile.am): Likewise.
71407         * modules/xnanosleep (Makefile.am): Likewise.
71408         * modules/xreadlink (Makefile.am): Likewise.
71409         * modules/xstrtod (Makefile.am): Likewise.
71410         * modules/xstrtol (Makefile.am): Likewise.
71411         * modules/xstrtold (Makefile.am): Likewise.
71412         * modules/yesno (Makefile.am): Likewise.
71413
71414 2006-10-12  Jim Meyering  <jim@meyering.net>
71415
71416         * m4/getloadavg.m4: Revert the change below.
71417
71418         * m4/getloadavg.m4 (gl_GETLOADAVG): Test for the existence of
71419         lib/getloadavg.c using "ls -L", not "test -f".  The latter would
71420         fail with a symlink, which is what coreutils' ./bootstrap now
71421         creates by default.
71422
71423 2006-10-12  Bruno Haible  <bruno@clisp.org>
71424
71425         * lib/inttypes_.h (_LONG_LONG_FORMAT_PREFIX): Don't define for MSVC or
71426         mingw.
71427         (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX, _SCNu64_PREFIX): Handle
71428         MSVC and mingw explicitly.
71429
71430 2006-10-11  Simon Josefsson  <jas@extundo.com>
71431             Bruno Haible  <bruno@clisp.org>
71432
71433         Add support for multiple gnulib-tool invocations in the scope of a
71434         single configure.ac file.
71435         * gnulib-tool (func_emit_lib_Makefile_am): In the _LIBADD variable,
71436         use a private [LT]LIBOBJS variant. Define a _DEPENDENCIES variable
71437         with the same contents as the _LIBADD variable.
71438         (func_emit_initmacro_start, func_emit_initmacro_end,
71439         func_emit_initmacro_done): New functions.
71440         (func_import, func_create_testdir): Invoke them. Allow the identifiers
71441         gl_LIBOBJS and gl_LTLIBOBJS.
71442
71443 2006-10-11  Bruno Haible  <bruno@clisp.org>
71444
71445         * gnulib-tool (GETTEXTPATH, AUTOHEADER, AUTOPOINT): New variables.
71446         (func_create_testdir): Don't create po/Makefile.am, don't invoke
71447         autoreconf. Instead, invoke autopoint explicitly but move back the
71448         *.m4 files from gnulib.
71449
71450 2006-10-11  Bruno Haible  <bruno@clisp.org>
71451
71452         * gnulib-tool (func_usage): Make module names after --create-testdir
71453         optional.
71454         (func_create_testdir): If no module was specified, use nearly all
71455         modules.
71456
71457 2006-10-12  Jim Meyering  <jim@meyering.net>
71458
71459         Big performance improvement for fts-based tools that use FTS_NOSTAT.
71460         Avoid spurious inode-mismatch problems on non-POSIX file systems.
71461         Details: http://article.gmane.org/gmane.comp.lib.gnulib.bugs/7416
71462         * lib/fts_.h (FTS_DEFER_STAT): Define new flag.
71463         (FTS_OPTIONMASK): Extend the mask to reflect this addition.
71464         * lib/fts.c (DT_IS_KNOWN, DT_MUST_BE): Define.
71465         (FTS_NO_STAT_REQUIRED, FTS_STAT_REQUIRED): Define.
71466         (fts_set_stat_required): New function.
71467         (fts_open): Defer the calls to fts_stat, if possible or requested.
71468         Move the code that maps a command-line fts_info value FTS_DOT to FTS_D
71469         into fts_stat itself.
71470         (fts_read): Perform any required (deferred) fts_stat call.
71471         (fts_build): Likewise, for the directory we're about to open and read.
71472         In the readdir loop, carefully decide whether each entry will require
71473         an eventual call to fts_stat, using dirent.d_type info if available.
71474         (fts_stat): Move the test for whether to honor FTS_COMFOLLOW on
71475         a command line argument into this function.  Update all callers.
71476         Map a return value of FTS_DOT to FTS_D for a command line argument.
71477         * modules/fts (Depends-on): Add d-type.  Alphabetize.
71478         Thanks to Miklos Szeredi for his tenacity and for the initial
71479         bug report about "find" failing on a FUSE-based file system.
71480
71481         * lib/fts.c (fts_open): Use consistent indentation.
71482
71483 2006-10-12  Paul Eggert  <eggert@cs.ucla.edu>
71484
71485         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Renamed from
71486         gl_USE_SYSTEM_EXTENSIONS, to fix a coreutils bootstrap failure
71487         reported by Jim Meyering.  All uses of cache variables renamed
71488         to match Autoconf's.
71489         (gl_USE_SYSTEM_EXTENSIONS): New macro, which simply requires
71490         the other one.
71491
71492         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH):
71493         Fix misspelling in diagnostic.
71494
71495 2006-10-11  Paul Eggert  <eggert@cs.ucla.edu>
71496
71497         * lib/mkdir-p.c (HAVE_FCHMOD): Define to false if not already
71498         defined.  Problem reported by Matthew Woehlke.
71499
71500         * lib/inttypes_.h (_LONG_LONG_FORMAT_PREFIX): New macro.
71501         Add support for Tandem NonStop R series.
71502         (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX, _SCNu64_PREFIX):
71503         Use new macro.
71504
71505         * lib/rename-dest-slash.c: Include stdbool.h but not string.h.
71506         (has_trailing_slash): Omit size arg; all callers changed.
71507         Omit 'inline', since it doesn't help performance and we'd
71508         need to configure it.
71509         Don't count //, ///, etc. as having a trailing slash.
71510         As a side effect, this removes a C99ism reported by Matthew Woehlke.
71511         (rpl_rename_dest_slash): On failure, use rename's errno rather
71512         than (in some cases) an incorrect or junk errno.
71513         Simplify code by removing need to compute length; this does
71514         cause it to make two passes instead of one over the file name,
71515         but it's worth it.
71516
71517         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Undo previous
71518         change, since Autoconf's version may no longer be appropriate now
71519         that we are using CVS Autoconf's version.  Add support for Tandem.
71520
71521 2006-10-11  Paul Eggert  <eggert@cs.ucla.edu>
71522             Bruno Haible  <bruno@clisp.org>
71523
71524         * lib/allocsa.h (sa_alignment_longlong, sa_alignment_max): Test
71525         HAVE_LONG_LONG_INT instead of HAVE_LONG_LONG.
71526         * m4/allocsa.m4 (gl_ALLOCSA): Invoke AC_TYPE_LONG_LONG_INT instead of
71527         gl_AC_TYPE_LONG_LONG.
71528
71529         * lib/printf-args.h (arg_type, argument): Test HAVE_LONG_LONG_INT
71530         instead of HAVE_LONG_LONG.
71531         * lib/printf-args.c (printf_fetchargs): Likewise.
71532         * lib/printf-parse.c (PRINTF_PARSE): Likewise.
71533         * lib/vasnprintf.c (VASNPRINTF): Likewise.
71534         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS, gl_PREREQ_PRINTF_PARSE,
71535         gl_PREREQ_VASNPRINTF): Invoke AC_TYPE_LONG_LONG_INT instead of
71536         gl_AC_TYPE_LONG_LONG.
71537
71538 2006-10-11  Bruno Haible  <bruno@clisp.org>
71539
71540         * m4/longlong.m4: Add comments.
71541         * m4/ulonglong.m4: Likewise.
71542
71543 2006-10-10  Bruno Haible  <bruno@clisp.org>
71544
71545         Make it possible to #define stpcpy, strdup to aliases.
71546         * lib/stpcpy.c (stpcpy) [!_LIBC]: Don't undefine.
71547         * lib/strdup.c (strdup) [!_LIBC]: Don't undefine.
71548
71549 2006-10-10  Bruno Haible  <bruno@clisp.org>
71550
71551         Make it possible to #define gcd to an alias.
71552         * lib/gcd.c: Include config.h.
71553
71554 2006-10-10  Bruno Haible  <bruno@clisp.org>
71555
71556         Make it possible to #define c_isascii to an alias.
71557         * lib/c-ctype.h: Don't define the macros if NO_C_CTYPE_MACROS is
71558         defined. Undefine the macros before defining them, to avoid gcc
71559         warnings.
71560         * lib/c-ctype.c: Include config.h. Don't undefine the macros; instead,
71561         define NO_C_CTYPE_MACROS early.
71562
71563 2006-10-10  Bruno Haible  <bruno@clisp.org>
71564
71565         Make it possible to #define set_program_name to an alias.
71566         * lib/progname.c: Don't undefine set_program_name; instead, undefine
71567         ENABLE_RELOCATABLE early.
71568
71569 2006-10-10  Paul Eggert  <eggert@cs.ucla.edu>
71570
71571         Port to Tandem NSK OSS, which has 64-bit signed int but at most
71572         32-bit unsigned int.  Problem reported by Matthew Woehlke in:
71573         http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00062.html
71574         More generally, don't assume that 64-bit signed int is available
71575         if unsigned int is, and vice versa.
71576         * lib/inttypes_.h (_PRIu64_PREFIX, _SCNu64_PREFIX): Depend on
71577         unsigned symbols, not on their signed counterparts.
71578         * lib/stdint_.h (uint64_t, uint_least64_t, uint_fast64_t, uintmax_t):
71579         (UINT64_MAX, UINT_LEAST64_MAX, UINT_FAST64_MAX, UINTMAX_MAX):
71580         (UINT64_C, UINTMAX_C):
71581         Likewise.
71582         * lib/strtoimax.c (strtoll): Depend on signed symbols, not their
71583         unsigned counterparts.
71584         (Have_long_long, Unsigned): New macros.
71585         (Int): Renamed from INT.
71586         (strtoimax): Use the new macros.
71587         * m4/stdint.m4 (gl_STDINT_H): Require AC_TYPE_UNSIGNED_LONG_LONG_INT
71588         and substitute HAVE_UNSIGNED_LONG_LONG_INT.
71589         * modules/inttypes (inttypes.h): Substitute
71590         HAVE_UNSIGNED_LONG_LONG_INT.
71591         * modules/stdint (stdint.h): Likewise.
71592         (Files): Add m4/ulonglong.m4.
71593
71594 2006-10-10  Bruno Haible  <bruno@clisp.org>
71595
71596         Fix a gcc -Wshadow warning.
71597         * lib/gl_anyhash_list2.h (hash_resize): Rename local variable 'index'
71598         to 'bucket'.
71599         * lib/gl_anylinked_list2.h (gl_linked_search_from_to,
71600         gl_linked_indexof_from_to): Likewise.
71601         * lib/gl_linkedhash_list.c (add_to_bucket, remove_from_bucket):
71602         Likewise.
71603         * lib/gl_anytreehash_list1.h (add_to_bucket, remove_from_bucket):
71604         Likewise.
71605         * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Likewise.
71606         Reported by Eric Blake.
71607
71608 2006-10-09  Paul Eggert  <eggert@cs.ucla.edu>
71609
71610         * lib/filemode.h [HAVE_DECL_STRMODE]: Include unistd.h too,
71611         for NetBSD.  Problem reported by Bruno Haible.
71612
71613 2006-10-09  Jim Meyering  <jim@meyering.net>
71614
71615         * lib/lchown.c: Include <sys/stat.h> before "stat-macros.h".
71616         Patch from Bruno Haible.
71617
71618 2006-10-09  Jim Meyering  <jim@meyering.net>
71619
71620         * lib/fts-cycle.c (leave_dir): When "leaving" a top level directory due
71621         to FTS_SKIP, don't copy the parent's uninitialized dev/ino values.
71622         Trigger with e.g., mkdir d && valgrind ./chmod u+rwx d d
71623
71624 2006-10-08  Paul Eggert  <eggert@cs.ucla.edu>
71625
71626         Don't include <config.h> twice; this doesn't work in some cases,
71627         e.g., when config.h has "#define intmax_t long long int" and
71628         we include <config.h>, <inttypes.h>, <config.h> in that order.
71629         Problem reported by Matthew Woehlke in:
71630         http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00073.html
71631         * lib/fprintftime.c: Don't include config.h or fprintftime.h.
71632         * lib/fts-cycle.c: Don't include config.h.
71633         * lib/strftime.c: Include fprintftime.h if FPRINTFTIME is defined.
71634         * lib/xstrtoimax.c: Remove copyright notice since it's short tnow.
71635         Don't include config.h or xstrtol.h.  Define STRTOL_T_MINIMUM
71636         and STRTOL_T_MAXIMUM unconditionally, since we now assume gnulib
71637         inttypes.h.
71638         * lib/xstrtoumax.c: Likewise.
71639         * lib/xstrtol.c: Include config.h and xstrtol.h after defining
71640         __strtol and the like, so that this module is more like its siblings.
71641         (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM) [! defined STRTOL_T_MINIMUM]:
71642         Remove; no longer needed now that we assume gnulib inttypes.h.
71643
71644 2006-10-08  Bruno Haible  <bruno@clisp.org>
71645
71646         * doc/gnulib-tool.texi: Emphasize the drawbacks of the --symlink
71647         option.
71648
71649 2006-10-07  Jim Meyering  <jim@meyering.net>
71650
71651         * modules/inttypes (inttypes.h): Revert what seems to have been
71652         an inadvertent part of today's change: use "|", not "/" in the
71653         substitution for the "/"-containing string, $(ABSOLUTE_INTTYPES_H).
71654
71655 2006-10-07  Bruno Haible  <bruno@clisp.org>
71656
71657         * modules/sublist: New file.
71658
71659 2006-10-07  Bruno Haible  <bruno@clisp.org>
71660
71661         * modules/alloca-opt (alloca.h): Add a "DO NOT EDIT" comment.
71662         * modules/argz (argz.h): Likewise.
71663         * modules/arpa_inet (arpa/inet.h): Likewise.
71664         * modules/byteswap (byteswap.h): Likewise.
71665         * modules/configmake (configmake.h): Likewise.
71666         * modules/fcntl (fcntl.h): Likewise.
71667         * modules/fnmatch (fnmatch.h): Likewise.
71668         * modules/getopt (getopt.h): Likewise.
71669         * modules/glob (glob.h): Likewise.
71670         * modules/inttypes (inttypes.h): Likewise.
71671         * modules/netinet_in (netinet/in.h): Likewise.
71672         * modules/poll (poll.h): Likewise.
71673         * modules/stdbool (stdbool.h): Likewise.
71674         * modules/stdint (stdint.h): Likewise.
71675         * modules/sys_select (sys/select.h): Likewise.
71676         * modules/sys_socket (sys/socket.h): Likewise.
71677         * modules/sys_stat (sys/stat.h): Likewise.
71678         * modules/sysexits (sysexits.h): Likewise.
71679         * modules/unistd (unistd.h): Likewise.
71680         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
71681         Add a "DO NOT EDIT" comment to the generated file.
71682         (func_import): Likewise for gnulib-comp.m4.
71683
71684 2006-10-07  Bruno Haible  <bruno@clisp.org>
71685
71686         * lib/gl_sublist.h: New file.
71687         * lib/gl_sublist.c: New file.
71688
71689 2006-10-06  Paul Eggert  <eggert@cs.ucla.edu>
71690
71691         * lib/mkancesdirs.c (mkancesdirs): Pass to MAKE_DIR both the full file
71692         name (relative to the original working directory) and the file
71693         name component (relative to the temporary working directory).  All
71694         callers changed.
71695         * lib/mkancesdirs.h (mkancesdirs): Adjust prototype to match.
71696         * lib/mkdir-p.c (make_dir_parents): Likewise.
71697         * lib/mkdir-p.h (make_dir_parents): Likewise.
71698
71699 2006-10-06  Eric Blake  <ebb9@byu.net>
71700
71701         Define several macros for use by the clean-temp module.
71702         * m4/close-stream.m4 (gl_CLOSE_STREAM): Define GNULIB_CLOSE_STREAM.
71703         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Define GNULIB_FCNTL_SAFER.
71704         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Define GNULIB_FOPEN_SAFER.
71705
71706         * lib/clean-temp.h (close_stream_temp): New declaration.
71707         * lib/clean-temp.c (includes): Pull in headers according to what
71708         other modules are in use.
71709         (close_stream_temp) [GNULIB_CLOSE_STREAM]: New function.
71710
71711 2006-10-06  Bruno Haible  <bruno@clisp.org>
71712
71713         * lib/javacomp.c (write_temp_file): Use fopen_temp, fwriteerror_temp
71714         instead of fopen, fwriteerror.
71715
71716 2006-10-06  Bruno Haible  <bruno@clisp.org>
71717
71718         * lib/clean-temp.h (cleanup_temp_file, cleanup_temp_subdir,
71719         cleanup_temp_dir_contents, cleanup_temp_dir): Change return type to
71720         int.
71721         * lib/clean-temp.c (do_unlink, do_rmdir, cleanup_temp_file,
71722         cleanup_temp_subdir, cleanup_temp_dir_contents, cleanup_temp_dir):
71723         Return an error indicator.
71724         Suggested by Eric Blake.
71725
71726 2006-10-06  Bruno Haible  <bruno@clisp.org>
71727
71728         * lib/clean-temp.c (PATH_MAX): Provide a fallback for GNU Hurd.
71729         Reported by Eric Blake.
71730
71731 2006-10-06  Bruno Haible  <bruno@clisp.org>
71732
71733         * modules/closeout (Description): Mention stderr too.
71734
71735 2006-10-06  Bruno Haible  <bruno@clisp.org>
71736         and Paul Eggert  <eggert@cs.ucla.edu>
71737
71738         * lib/closeout.c (close_stdout): Also close stderr.
71739         * lib/closeout.h: Update comment.
71740
71741 2006-10-05  Paul Eggert  <eggert@cs.ucla.edu>
71742
71743         Fix some Darwin-7.9.0 porting problems reported by Bruno Haible in
71744         <http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00063.html>.
71745         * lib/dirchownmod.c: Include lchown.h.
71746         * lib/lchown.c: Don't include files that lchown.h now includes.
71747         Don't declare chown, since lchown.h now does that.
71748         * lib/lchown.h: Include errno.h, sys/types.h, unistd.h.
71749         (lchown): Define to rpl_chown if lchown is declared but
71750         does not exist.  Declare using a prototype if lchown is not
71751         declared.  Add a copyright notice.
71752         * lib/mkstemp.h: Include <unistd.h>.
71753         * lib/openat.c: Include lchown.h.
71754
71755         * lib/fcntl_.h (O_NOFOLLOW): Don't depend on O_NOFOLLOW_IS_INEFFECTIVE;
71756         we now test for that separately.
71757         * lib/fts.c (fts_safe_changedir): Inspect HAVE_WORKING_O_NOFOLLOW
71758         rather than O_NOFOLLOW, when testing whether it's possible to
71759         avoid a race condition reliably.
71760         * lib/savewd.c (savewd_chdir): Likewise.
71761
71762         Remove macros that are no longer needed now that stdint.h is
71763         reliable.
71764         * lib/fsusage.c (UINTMAX_MAX): Remove.
71765         * lib/human.c (SIZE_MAX, UINTMAX_MAX): Remove.
71766         * lib/utimecmp.c (SIZE_MAX): Remove.
71767
71768         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check whether lchown is declared.
71769
71770         * m4/fcntl_h.m4 (gl_FCNTL_H): Define HAVE_WORKING_O_NOFOLLOW instead
71771         of O_NOFOLLOW_IS_INEFFECTIVE.  Define HAVE_WORKING_O_NOATIME if
71772         O_NOATIME works.
71773
71774 2006-10-05  Bruno Haible  <bruno@clisp.org>
71775
71776         * lib/gl_list.h (gl_sortedlist_search_from_to,
71777         gl_sortedlist_indexof_from_to): New declarations.
71778         (gl_list_implementation): New fields sortedlist_search_from_to,
71779         sortedlist_indexof_from_to.
71780         (gl_sortedlist_search_from_to, gl_sortedlist_indexof_from_to): New
71781         inline functions.
71782         * lib/gl_list.c (gl_sortedlist_search_from_to,
71783         gl_sortedlist_indexof_from_to): New functions.
71784         * lib/gl_array_list.c (gl_array_sortedlist_indexof_from_to): New
71785         function.
71786         (gl_array_sortedlist_indexof, gl_array_sortedlist_search): Use it.
71787         (gl_array_sortedlist_search_from_to): New function.
71788         (gl_array_list_implementation): Update.
71789         * lib/gl_carray_list.c (gl_carray_sortedlist_indexof_from_to): New
71790         function.
71791         (gl_carray_sortedlist_indexof, gl_carray_sortedlist_search): Use it.
71792         (gl_carray_sortedlist_search_from_to): New function.
71793         (gl_carray_list_implementation): Update.
71794         * lib/gl_anylinked_list2.h (gl_linked_sortedlist_search_from_to,
71795         gl_linked_sortedlist_indexof_from_to): New functions.
71796         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
71797         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
71798         * lib/gl_anytree_list2.h (gl_tree_sortedlist_search_from_to,
71799         gl_tree_sortedlist_indexof_from_to): New functions.
71800         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
71801         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
71802         Update.
71803         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
71804         * lib/gl_rbtreehash_list.c (gl_avltreehash_list_implementation):
71805         Update.
71806
71807 2006-10-05  Bruno Haible  <bruno@clisp.org>
71808
71809         * lib/gl_list.h (gl_list_search_from, gl_list_search_from_to,
71810         gl_list_indexof_from, gl_list_indexof_from_to): New declarations.
71811         (struct gl_list_implementation): Add fields search_from_to,
71812         indexof_from_to. Remove fields search, indexof.
71813         (gl_list_search): Use the search_from_to method.
71814         (gl_list_search_from, gl_list_search_from_to): New functions.
71815         (gl_list_indexof): Use the indexof_from_to method.
71816         (gl_list_indexof_from, gl_list_indexof_from_to): New functions.
71817         * lib/gl_list.c (gl_list_search): Use the search_from_to method.
71818         (gl_list_search_from, gl_list_search_from_to): New functions.
71819         (gl_list_indexof): Use the indexof_from_to method.
71820         (gl_list_indexof_from, gl_list_indexof_from_to): New functions.
71821         * lib/gl_array_list.c (gl_array_indexof_from_to): Renamed from
71822         gl_array_indexof. Add start_index, end_index arguments.
71823         (gl_array_search_from_to): Renamed from gl_array_search. Add
71824         start_index, end_index arguments.
71825         (gl_array_remove, gl_array_list_implementation): Update.
71826         * lib/gl_carray_list.c (gl_carray_indexof_from_to): Renamed from
71827         gl_carray_indexof. Add start_index, end_index arguments.
71828         (gl_carray_search_from_to): Renamed from gl_carray_search. Add
71829         start_index, end_index arguments.
71830         (gl_carray_remove, gl_carray_list_implementation): Update.
71831         * lib/gl_anylinked_list2.h (gl_linked_search_from_to): Renamed from
71832         gl_linked_search. Add start_index, end_index arguments.
71833         (gl_linked_indexof_from_to): Renamed from gl_linked_indexof. Add
71834         start_index, end_index arguments.
71835         (gl_linked_remove): Update.
71836         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
71837         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
71838         * lib/gl_anytree_list1.h (iterstack_item_t): Change type of 'rightp'
71839         field to 'size_t'.
71840         * lib/gl_anytree_list2.h (gl_tree_search_from_to): Renamed from
71841         gl_tree_search. Add start_index, end_index arguments.
71842         (gl_tree_indexof_from_to): Renamed from gl_tree_indexof. Add
71843         start_index, end_index arguments.
71844         (gl_tree_remove): Update.
71845         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
71846         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
71847         * lib/gl_anytreehash_list1.h (compare_position_threshold): New
71848         function.
71849         * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Renamed from
71850         gl_tree_search. Add start_index, end_index arguments.
71851         (gl_tree_indexof_from_to): Renamed from gl_tree_indexof. Add
71852         start_index, end_index arguments.
71853         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
71854         Update.
71855         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Update.
71856
71857 2006-10-05  Bruno Haible  <bruno@clisp.org>
71858
71859         * modules/fwriteerror (configure.ac): Define GNULIB_FWRITEERROR.
71860
71861         * lib/clean-temp.h (open_temp, fopen_temp, close_temp, fclose_temp,
71862         fwriteerror_temp): New declarations.
71863         * lib/clean-temp.c (uintptr_t): Provide fallback definition.
71864         (descriptors): New variable.
71865         (cleanup): First, close the descriptors.
71866         (register_fd, unregister_fd, open_temp, fopen_temp, close_temp,
71867         fclose_temp, fwriteerror_temp): New functions.
71868
71869 2006-10-04  Jim Meyering  <jim@meyering.net>
71870
71871         * lib/fts.c (fts_open): Tiny comment change.
71872
71873 2006-10-04  Bruno Haible  <bruno@clisp.org>
71874
71875         Make it possible to invoke AC_GNU_SOURCE after gl_LOCK_EARLY.
71876         * m4/lock.m4 (gl_LOCK_EARLY_BODY): New macro, extracted code from
71877         gl_LOCK_BODY.
71878         (gl_LOCK_EARLY): Require gl_LOCK_EARLY_BODY, not gl_LOCK_BODY.
71879         (gl_LOCK_BODY): Remove settings of CPPFLAGS, now done in
71880         gl_LOCK_EARLY_BODY.
71881         (gl_LOCK): Require gl_LOCK_BODY.
71882
71883 2006-10-04  Bruno Haible  <bruno@clisp.org>
71884
71885         * lib/gl_oset.h (gl_setelement_threshold_fn): New type.
71886         (gl_oset_search_atleast): New declaration.
71887         (struct gl_oset_implementation): Add field 'search_atleast'.
71888         (gl_oset_search_atleast): New inline function.
71889         * lib/gl_oset.c (gl_oset_search_atleast): New function.
71890         * lib/gl_array_oset.c (gl_array_search_atleast): New function.
71891         (gl_array_oset_implementation): Update.
71892         * lib/gl_anytree_oset.h (gl_tree_search_atleast): New function.
71893         * lib/gl_avltree_oset.c (gl_avltree_oset_implementation): Update.
71894         * lib/gl_rbtree_oset.c (gl_rbtree_oset_implementation): Update.
71895
71896 2006-10-04  Bruno Haible  <bruno@clisp.org>
71897
71898         * lib/fatal-signal.c (fatal_signals) [WOE32]: Add the SIGBREAK signal.
71899
71900 2006-10-03  Bruno Haible  <bruno@clisp.org>
71901
71902         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Renamed
71903         from gl_avltreehash_list_implementation.
71904
71905 2006-10-03  Bruno Haible  <bruno@clisp.org>
71906
71907         * lib/gl_oset.c (gl_oset_add): Fix return type.
71908
71909 2006-10-02  Paolo Bonzini  <bonzini@gnu.org>  (tiny change)
71910
71911         * lib/quotearg.c (mbstate_t) [!HAVE_MBRTOWC]: #define to int.
71912
71913 2006-10-02  Eric Blake  <ebb9@byu.net>
71914
71915         * modules/strnlen (Depends-on): Add extensions.
71916
71917 2006-10-02  Eric Blake  <ebb9@byu.net>
71918
71919         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Use autoconf's
71920         definition in 2.60+.
71921
71922 2006-10-02  Dmitry V. Levin  <ldv@altlinux.org>
71923
71924         * lib/fts.c (fts_close, fts_build, fts_palloc): Remove redundant
71925         checks.
71926
71927 2006-10-02  Bruno Haible  <bruno@clisp.org>
71928
71929         * gnulib-tool (func_emit_lib_Makefile_am): Don't add no-dependencies
71930         to the AUTOMAKE_OPTIONS.
71931         Reported by Jim Meyering.
71932
71933 2006-09-29  Paul Eggert  <eggert@cs.ucla.edu>
71934
71935         Work around bug in Solaris 10 /proc file system:
71936         /proc/self/fd/NNN/.. isn't the parent directory of
71937         the directory whose file descriptor is NNN.  This needs to
71938         be worked around at run time, not compile time, since a
71939         program might be built on Solaris 8, where things work, and
71940         run on Solaris 10.
71941         * lib/openat-priv.h (BUILD_PROC_NAME): Remove.  All callers changed
71942         to use the following interface instead:
71943         (OPENAT_BUFFER_SIZE): New macro.
71944         (openat_proc_name): New function.
71945         * lib/at-func.c (AT_FUNC_NAME): Adjust to above changes.
71946         * lib/openat.c (openat_permissive, openat_needs_fchdir, fdopendir):
71947         Likewise.
71948         * lib/openat-proc.c: New file.
71949         * modules/openat (Files): Add lib/openat-proc.c.
71950         (Depends-on): Add same-inode, stdbool.
71951         * m4/openat.m4 (gl_FUNC_OPENAT): Add AC_LIBOBJ(openat-proc).
71952
71953 2006-09-29  Bruno Haible  <bruno@clisp.org>
71954
71955         * lib/fwriteerror.h (fwriteerror_no_ebadf): New declaration.
71956         * lib/(do_fwriteerror): Renamed from fwriteerror. Add ignore_ebadf
71957         argument. Set stdout_closed before testing for ferror, not after.
71958         (fwriteerror, fwriteerror_no_ebadf): New functions.
71959
71960 2006-09-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
71961
71962         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Avoid unused variables warning.
71963
71964 2006-09-28  Paolo Bonzini  <bonzini@gnu.org>
71965
71966         * lib/poll.c (rpl_poll) [__APPLE__]: Use FIONREAD instead of MSG_PEEK.
71967         * m4/poll.m4: Look for sys/ioctl.h and sys/filio.h.
71968
71969 2006-09-28  Jim Meyering  <jim@meyering.net>
71970
71971         * lib/mkdir-p.c: Include "dirchownmod.h", not "dirchownmod.c".
71972         Include <unistd.h>.
71973
71974 2006-09-28  Bruno Haible  <bruno@clisp.org>
71975
71976         * modules/avltreehash-list (Depends-on): Add stdint, remove size_max.
71977         * modules/linkedhash-list (Depends-on): Likewise.
71978         * modules/rbtreehash-list (Depends-on): Likewise.
71979
71980 2006-09-28  Bruno Haible  <bruno@clisp.org>
71981
71982         * lib/strndup.h: Simplify the redefinition of strndup.
71983         (_GL_CONCAT, _GL_XCONCAT, __STRNDUP_ID): Remove macros.
71984         * m4/strndup.m4 (gl_FUNC_STRNDUP): Don't define __STRNDUP_PREFIX.
71985
71986 2006-09-28  Bruno Haible  <bruno@clisp.org>
71987
71988         * lib/gl_avltreehash_list.c: Include <stdint.h> instead of size_max.h.
71989         * lib/gl_linkedhash_list.c: Likewise.
71990         * lib/gl_rbtreehash_list.c: Likewise.
71991
71992 2006-09-27  Paul Eggert  <eggert@cs.ucla.edu>
71993
71994         * lib/canon-host.c (canon_host_r): Work around bug in Darwin 7.9.0
71995         getaddrinfo.
71996
71997         * lib/__fpending.h: Don't include <stdio_ext.h> unless
71998         HAVE_DECL___FPENDING.  This avoids a bug with lsbcc, where
71999         it causes <stdio_ext.h> to cause a compile-time error.
72000         Problem reported by Nelson H. F. Beebe.
72001         * lib/getpass.c: Likewise, except for HAVE_DECL___FSETLOCKING instead
72002         of HAVE_DECL___PENDING.
72003
72004         * m4/fpending.m4 (gl_FUNC_FPENDING): Check for stdio_ext at most once.
72005         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for __fsetlocking's
72006         declaration.
72007
72008 2006-09-27  Jim Meyering  <jim@meyering.net>
72009
72010         This file could end up with a definition for a function
72011         named __strndup, rather than rpl_strndup on a system with
72012         incomplete weak_alias support.
72013         * lib/strndup.c (strndup): Rename from __strndup.
72014         Remove #defines that used to map __strndup to strndup.
72015         Don't use K&R prototypes.
72016         Remove LIBC-related code, since this file is not sync'd with glibc.
72017         * lib/strndup.h: Revamp, accordingly.
72018         * m4/strndup.m4: Modernize.
72019
72020 2006-09-26  Paul Eggert  <eggert@cs.ucla.edu>
72021
72022         * modules/savewd (Depends-on): Add 'raise'.
72023         * lib/savewd.c: Include <signal.h>, for 'raise'.
72024
72025 2006-09-26  Jim Meyering  <jim@meyering.net>
72026
72027         * m4/acl.m4 (AC_FUNC_ACL): Disable ACL support altogether
72028         when we detect Darwin 8.7.0's acl_get_file bug.
72029         Rearrange to perform the new (below) run-test while $LIBS
72030         contains any acl-related library.  Set USE_ACL at the end.
72031         (gl_ACL_GET_FILE): New function.
72032
72033 2006-09-26  Eric Blake  <ebb9@byu.net>
72034
72035         * lib/verror.c: Include <config.h> unconditionally.
72036
72037 2006-09-25  Paul Eggert  <eggert@cs.ucla.edu>
72038
72039         * modules/clock-time (Maintainer): Add self.
72040         * modules/getlogin_r (Depends-on): Add extensions.
72041
72042 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
72043
72044         * modules/clock-time: New module.
72045         * modules/nanosleep (Depends-on): Add clock-time.
72046         * modules/gethrxtime (Depends-on): Likewise.
72047         * modules/gettime (Depends-on): Likewise.
72048         * modules/settime (Depends-on): Likewise.
72049
72050         * modules/fts-lgpl: Depend on openat.
72051         * modules/mkancesdirs: Depend on savewd.
72052         * modules/mkdir-p: Likewise.
72053
72054 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
72055
72056         * m4/host-os.m4 (gl_HOST_OS): Require AC_CANONICAL_HOST.
72057
72058         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Rename cache variable from
72059         `gl_have_arbitrary_file_name_length_limit' to
72060         `gl_cv_have_arbitrary_file_name_length_limit', so that caching
72061         actually works between configure runs.
72062
72063 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
72064             Bruno Haible  <bruno@clisp.org>
72065
72066         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Include <string.h>.
72067
72068 2006-09-25  Jim Meyering  <jim@meyering.net>
72069
72070         * m4/fcntl_h.m4 (gl_FCNTL_H): Fix typo in test for failed open.
72071         This typo caused coreutils/tests/dd/misc to fail on Darwin 8.7.0.
72072
72073 2006-09-25  Eric Blake  <ebb9@byu.net>
72074
72075         * gnulib-tool (func_import, func_create_testdir): Fix typos in
72076         exec's in 2006-09-18 patch when shuffling fds.
72077
72078 2006-09-25  Bruno Haible  <bruno@clisp.org>
72079
72080         * m4/getloadavg.m4 (gl_GETLOADAVG): Fix directory in error message.
72081         Reported by Jim Meyering.
72082
72083 2006-09-24  Jim Meyering  <jim@meyering.net>
72084
72085         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Don't use '>' to
72086         compare a pointer against a literal "0".  That caused failures with
72087         at least HP-UX's hpcc.
72088
72089 2006-09-22  Simon Josefsson  <jas@extundo.com>
72090
72091         * modules/gc-sha1:
72092         * modules/gc-md4:
72093         * modules/gc-hmac-sha1:
72094         * modules/gc-hmac-md5:
72095         * modules/gc-des:
72096         * modules/gc-arcfour: Distribute more files.
72097
72098 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
72099
72100         * lib/gl_anylinked_list2.h [lint] (gl_linked_iterator)
72101         (gl_linked_iterator_from_to): Initialize struct completely.
72102         * lib/gl_anytree_list2.h [lint] (gl_tree_iterator): Likewise.
72103         (gl_tree_iterator_from_to): Likewise
72104         * lib/gl_anytree_oset.h [lint] (gl_tree_iterator): Likewise.
72105         * lib/gl_array_list.c [lint] (gl_array_iterator)
72106         (gl_array_iterator_from_to): Likewise.
72107         * lib/gl_array_oset.c [lint] (gl_array_iterator): Likewise.
72108         * lib/gl_carray_list.c [lint] (gl_carray_iterator)
72109         (gl_carray_iterator_from_to): Likewise.
72110
72111         * lib/gc-gnulib.c [GC_USE_HMAC_SHA1]: include hmac.h for hmac_sha1.
72112         * lib/md4.c (md4_process_block): Remove unused variable.
72113         * lib/rijndael-api-fst.c (rijndaelBlockDecrypt): GCC suggests
72114         parentheses for clarity.
72115
72116 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
72117
72118         * modules/bison-i18n (Depends-on): Add gettext.
72119
72120 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
72121
72122         * m4/fsusage.m4 (gl_STATFS_TRUNCATES): Avoid unused variable.
72123         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Likewise.
72124         * m4/jm-winsz1.m4 (gl_HEADER_TIOCGWINSZ_IN_TERMIOS_H): Likewise;
72125         also add missing comma that caused broken test.
72126         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Include
72127         stdlib.h, for `abort'.
72128         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Avoid unused
72129         variables.
72130         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Check for and
72131         include unistd.h if present, for `rmdir'.
72132         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): Avoid unused
72133         variables.
72134         * m4/putenv.m4 (gl_FUNC_PUTENV): Rewrite using AC_RUN_IFELSE, and
72135         in the process include standard headers for prototypes.
72136         * m4/readutmp.m4 (gl_READUTMP): Require AC_GNU_SOURCE, so utmpxname
72137         gets declared on GNU/Linux.
72138         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Check for and include
72139         unistd.h, for `rmdir'.
72140         * m4/time_r.m4 (gl_TIME_R): Avoid unused variables.
72141
72142         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Avoid expression that is
72143         always true.
72144         * m4/strndup.m4 (gl_FUNC_STRNDUP): include stdlib.h, for `free'.
72145
72146         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Avoid gcc -Wall warnings.
72147
72148 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
72149
72150         * gnulib-tool (func_version): Create output all at once.  This
72151         may help avoid triggering unnecessary SIGPIPEs, and at any
72152         rate it doesn't hurt.
72153
72154 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
72155             Bruno Haible  <bruno@clisp.org>
72156
72157         * m4/lock.m4 (gl_LOCK_BODY): Avoid unused variables warning.
72158         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
72159         * m4/signed.m4 (bh_C_SIGNED): Likewise.
72160
72161         * m4/vasprintf.m4 (gl_PREREQ_VASPRINTF_H): New macro.
72162         (gl_FUNC_VASPRINTF): Invoke it.
72163
72164 2006-09-22  Bruno Haible  <bruno@clisp.org>
72165
72166         * m4/getloadavg.m4 (gl_GETLOADAVG): Expect the directory of
72167         getloadavg.c as first argument.
72168
72169 2006-09-22  Bruno Haible  <bruno@clisp.org>
72170
72171         * gnulib-tool (func_import, func_create_testdir): Set gl_source_base
72172         at the beginning of the gl_INIT macro.
72173         * modules/getloadavg (configure.ac): Pass $gl_source_base to
72174         gl_GETLOADAVG.
72175
72176 2006-09-22  Bruno Haible  <bruno@clisp.org>
72177
72178         * gnulib-tool (func_create_megatestdir): Don't include the config-h
72179         module.
72180         Suggested by Ralf Wildenhues.
72181
72182 2006-09-20  Paul Eggert  <eggert@cs.ucla.edu>
72183
72184         Import this patch from libc:
72185
72186         2006-09-06  Jakub Jelinek  <jakub@redhat.com>
72187
72188         * lib/regex_internal.c (re_string_reconstruct): Handle
72189         offset < pstr->valid_raw_len && pstr->offsets_needed case.
72190         Ensure no bytes read before raw_mbs array.  Pass a saved copy of
72191         pstr->valid_len - 1 rather than pstr->valid_raw_len - 1 to
72192         re_string_context_at.
72193
72194         * m4/regex.m4 (gl_REGEX): Check for locale.h, since the test
72195         now requires it.
72196         (gl_PREREQ_REGEX): Don't check for locale.h any more, since
72197         gl_REGEX now does it for us.
72198         (gl_REGEX): Add test taken from
72199         http://sourceware.org/ml/libc-hacker/2006-09/msg00008.html.
72200
72201         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require AC_SYS_LARGEFILE.
72202         Check that large offsets work.  Modernize Autoconf usages.
72203         Prefer "yes" to mean a good thing rather than a bad.
72204         Don't put "#define mkstemp" in config.h, as this might interfere
72205         with standard system headers that "#define mkstemp mkstemp64".
72206
72207         * modules/mkstemp (Depends-on): Add extensions, so that
72208         mkstemp is visible on some platforms.
72209         (Makefile.am): Add mkstemp.h to EXTRA_DIST.
72210         (Include): Change to "mkstemp.h" from <stdlib.h>.
72211         (Files): Add mkstemp.h.
72212
72213         * lib/mkstemp.h: New file, since some standard headers
72214         #define mkstemp.
72215         * lib/mkstemp.c: Revamp to put the !_LIBC code together.
72216         Include "mkstemp.h".
72217         Make the _LIBC code resemble glibc original more,
72218         e.g., use K&R style.
72219         * lib/mkstemp-safer.c: Include "mkstemp.h" instead of <stdlib.h>.
72220         (mkstemp): Remove, since mkstemp.h does this for us.
72221         * lib/stdlib--.h: Include mkstemp.h.
72222
72223         Import this patch from libc:
72224
72225         2006-04-07  Ulrich Drepper  <drepper@redhat.com>
72226
72227         * lib/tempname.c (__gen_tempname): Change attempts_min
72228         into a macro.  Use preprocessor to decide how to initialize
72229         attempts [Coverity CID 67].
72230
72231 2006-09-20  Bruno Haible  <bruno@clisp.org>
72232
72233         * lib/mkdtemp.c: Import from libc.
72234         2006-04-07  Ulrich Drepper  <drepper@redhat.com>
72235                 * sysdeps/posix/tempname.c (__gen_tempname): Change
72236                 attempts_min into a macro.  Use preprocessor to decide how to
72237                 initialize attempts [Coverity CID 67].
72238         2001-11-27  Paul Eggert  <eggert@twinsun.com>
72239                 * sysdeps/posix/tempname.c (__gen_tempname): Try at least
72240                 ATTEMPTS_MIN or TMP_MAX times, whichever is greater.
72241
72242 2006-09-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
72243
72244         * gnulib-tool (func_exit): New function, to allow to pass the
72245         exit status portably through the trap.  Use everywhere.
72246         (--help, --version): Signal a write error.
72247         (trap): catch SIGPIPE, for write errors.
72248         Exit at the end of the trap, with the correct exit status.
72249
72250 2006-09-19  Karl Berry  <karl@gnu.org>
72251
72252         * doc/gnulib.texi: note about the license texinfo files.
72253
72254 2006-09-19  Eric Blake  <ebb9@byu.net>
72255
72256         * gnulib-tool: Avoid space-tab.
72257
72258 2006-09-18  Paul Eggert  <eggert@cs.ucla.edu>
72259
72260         * lib/getaddrinfo.c (getaddrinfo) [defined HAVE_IPV6]: Fix typo
72261         that prevented coreutils 6.1 from building.  Problem reported
72262         by Petter Reinholdtsen.
72263
72264 2006-09-18  Paul Eggert  <eggert@cs.ucla.edu>
72265
72266         * gnulib-tool (avoidlist): Fix typo that broke options like
72267         --avoid=lock that are used by coreutils bootstrap.
72268
72269 2006-09-18  Mark D. Baushke  <mdb@gnu.org>
72270
72271         * m4/inttypes.m4 (gl_INTTYPES_H): Quote "test" args
72272         more systematically.
72273
72274 2006-09-18  Jim Meyering  <jim@meyering.net>
72275
72276         * lib/savewd.c (savewd_restore): Don't shadow: s/status/child_status/.
72277
72278 2006-09-18  Bruno Haible  <bruno@clisp.org>
72279
72280         * modules/inttypes (Files): Remove m4/inttypes-h.m4.
72281
72282 2006-09-18  Bruno Haible  <bruno@clisp.org>
72283
72284         * m4/inttypes-h.m4 (gl_HEADER_INTTYPES_H): Remove macro.
72285         * m4/inttypes-pri.m4: Require autoconf >= 2.52.
72286         (gt_INTTYPES_PRI): Invoke AC_CHECK_HEADERS on inttypes.h. Test
72287         ac_cv_header_inttypes_h instead of gl_cv_header_inttypes_h.
72288         * m4/gettext.m4: Require autoconf >= 2.52.
72289         (gt_INTL_SUBDIR_CORE): Invoke AC_CHECK_HEADERS on inttypes.h.
72290         * m4/inttypes.m4 (gl_INTTYPES_H): Test ac_cv_header_inttypes_h instead
72291         of gl_cv_header_inttypes_h.
72292
72293 2006-09-18  Bruno Haible  <bruno@clisp.org>
72294
72295         * lib/javaversion.c: Include configmake.h.
72296
72297 2006-09-18  Bruno Haible  <bruno@clisp.org>
72298
72299         * gnulib-tool (func_import, func_create_testdir): Use exec tricks to
72300         avoid that the while loops be executed in a subshell.
72301
72302 2006-09-18  Bruno Haible  <bruno@clisp.org>
72303
72304         * MODULES.html.sh (func_module): Break long lines.
72305         Suggested by Bruce Korb <bkorb@gnu.org>.
72306
72307 2006-09-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
72308
72309         Speed up by a factor of 1.12.
72310         * gnulib-tool (nl): New variable.
72311         (func_import): Rewrite include directive extraction to only read each
72312         directive once.
72313
72314 2006-09-17  Bruno Haible  <bruno@clisp.org>
72315
72316         * modules/javaversion (Makefile.am): Remove DEFS setting.
72317         (Depends-on): Add configmake, for PKGDATADIR definition.
72318
72319 2006-09-17  Bruno Haible  <bruno@clisp.org>
72320
72321         * gnulib-tool (func_create_testdir): Rewrite all files at once.
72322
72323 2006-09-17  Bruno Haible  <bruno@clisp.org>
72324
72325         * gnulib-tool (func_append): New function, stolen from libtool.m4.
72326         (func_modules_transitive_closure, func_modules_add_dummy,
72327         func_modules_to_filelist, func_import, func_create_testdir,
72328         func_create_megatestdir, ...): Use it wherever possible.
72329         Suggested by Ralf Wildenhues.
72330
72331 2006-09-16  Karl Berry  <karl@gnu.org>
72332
72333         * doc/fdl.texi (ADDENDUM): switch to @heading from @appendixsubsec,
72334         to avoid sectioning errors.
72335         * doc/lgpl.texi, gpl.texi (Copying): downcase @unnumbered title.
72336         [ifinfo]: blank line after @center-ed titles.
72337         * doc/lgpl.texi (Library Copying): Rename main node to GNU LGPL.
72338         Spell FSF address consistently with others.
72339         (These changes approved by rms.)
72340
72341 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
72342
72343         Speed up by a factor of 1.61.
72344         * gnulib-tool (func_modules_transitive_closure): Rewrite to not check
72345         already checked module names again.
72346
72347 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
72348
72349         Speed up by a factor of 1.13.
72350         * gnulib-tool (func_import): Rewrite all old_files at once; likewise
72351         for new_files, and the input to func_add_or_update.
72352
72353 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
72354
72355         * gnulib-tool (func_all_modules, func_modules_to_filelist, func_import,
72356         func_create_testdir, ...): Change 'sort | uniq' to 'sort -u'.
72357
72358 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
72359
72360         * modules/mkancesdirs (Depends-on): Add fcntl.
72361         * modules/savewd: New file.
72362         * MODULES.html.sh (File system functions): Add savewd.
72363
72364         * modules/configmake (Makefile.am): Add support for the
72365         Automake-supplied PKGLIBDIR, PKGINCLUDEDIR, PKGDATADIR.
72366
72367 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
72368
72369         * m4/savewd.m4: New file.
72370
72371 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
72372
72373         * lib/dirchownmod.c: Don't include fcntl.h; no longer needed.
72374         (dirchownmod): New arg FD.  All callers changed.
72375         Use FD rather than opening the directory ourself, as opening is
72376         now the caller's responsibility.
72377         * lib/dirchownmod.h: Likewise.
72378         * lib/mkancesdirs.c: Include <sys/types.h>, for portability to older
72379         hosts that require <sys/types.h> before <sys/stat.h>.  Include
72380         fcntl.h, savewd.h, and unistd.h, not dirname.h and stat-macros.h.
72381         (test_dir): Remove.
72382         (mkancesdirs): Return length of prefix of FILE that has already
72383         been made, or -2 if there is a child doing the work.  Redo
72384         algorithm so that it is O(N) rather than O(N**2).  Optimize away
72385         ".", and treat ".." specially since it might stray back into
72386         already-created areas.  Use a subprocess if necessary.  New arg
72387         WD; all users changed.  MAKE_DIR function should now return 1
72388         if it creates a directory that is not readable.  Return -2 if
72389         a child process is spun off.
72390         * lib/mkancesdirs.h: Include <stddef.h>, for ptrdiff_t.
72391         Adjust signature to match code.
72392         * lib/mkdir-p.c: Include dirname.h, for IS_ABSOLUTE_FILE_NAME.
72393         (make_dir_parents): Use a subprocess if necessary.  New arg WD;
72394         all users changed.
72395         * lib/savewd.c, lib/savewd.h: New files.
72396
72397 2006-09-15  Jim Meyering  <jim@meyering.net>
72398
72399         * modules/rename-dest-slash: New module.
72400         * MODULES.html.sh (posix_compat): Add it here.
72401
72402         * modules/rename: Reflect vb_FUNC_RENAME -> gl_FUNC_RENAME change.
72403
72404 2006-09-15  Jim Meyering  <jim@meyering.net>
72405
72406         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH): New
72407         file.
72408
72409         * m4/rename.m4 (gl_FUNC_RENAME): Rename from vb_FUNC_RENAME.
72410
72411 2006-09-15  Jim Meyering  <jim@meyering.net>
72412
72413         * lib/rename-dest-slash.c (has_trailing_slash): Use
72414         FILE_SYSTEM_PREFIX_LEN, for non-POSIX systems.
72415         (rpl_rename_dest_slash): Perform the cheaper trailing slash
72416         test before testing whether SRC is a directory.
72417         Suggestions from Bruno Haible.
72418
72419         Avoid a warning about an unused variable.
72420         * lib/regex_internal.c (re_dfa_add_node): Move declaration of "type"
72421         into the #ifdef block where it's used.
72422
72423         * lib/rename-dest-slash.c: New file.
72424
72425 2006-09-14  Bruno Haible  <bruno@clisp.org>
72426
72427         * lib/allocsa.c: Include <config.h> unconditionally.
72428         * lib/asnprintf.c: Likewise.
72429         * lib/asprintf.c: Likewise.
72430         * lib/c-strcasecmp.c: Likewise.
72431         * lib/c-strcasestr.c: Likewise.
72432         * lib/c-strncasecmp.c: Likewise.
72433         * lib/c-strstr.c: Likewise.
72434         * lib/classpath.c: Likewise.
72435         * lib/clean-temp.c: Likewise.
72436         * lib/concatpath.c: Likewise.
72437         * lib/copy-file.c: Likewise.
72438         * lib/csharpcomp.c: Likewise.
72439         * lib/csharpexec.c: Likewise.
72440         * lib/execute.c: Likewise.
72441         * lib/fatal-signal.c: Likewise.
72442         * lib/findprog.c: Likewise.
72443         * lib/fwriteerror.c: Likewise.
72444         * lib/gl_array_list.c: Likewise.
72445         * lib/gl_array_oset.c: Likewise.
72446         * lib/gl_avltree_list.c: Likewise.
72447         * lib/gl_avltree_oset.c: Likewise.
72448         * lib/gl_avltreehash_list.c: Likewise.
72449         * lib/gl_carray_list.c: Likewise.
72450         * lib/gl_linked_list.c: Likewise.
72451         * lib/gl_linkedhash_list.c: Likewise.
72452         * lib/gl_list.c: Likewise.
72453         * lib/gl_oset.c: Likewise.
72454         * lib/gl_rbtree_list.c: Likewise.
72455         * lib/gl_rbtree_oset.c: Likewise.
72456         * lib/gl_rbtreehash_list.c: Likewise.
72457         * lib/imaxabs.c: Likewise.
72458         * lib/imaxdiv.c: Likewise.
72459         * lib/javacomp.c: Likewise.
72460         * lib/javaexec.c: Likewise.
72461         * lib/javaversion.c: Likewise.
72462         * lib/linebreak.c: Likewise.
72463         * lib/localcharset.c: Likewise.
72464         * lib/lock.c: Likewise.
72465         * lib/mbchar.c: Likewise.
72466         * lib/mbswidth.c: Likewise.
72467         * lib/mkdtemp.c: Likewise.
72468         * lib/pipe.c: Likewise.
72469         * lib/printf-args.c: Likewise.
72470         * lib/printf-parse.c: Likewise.
72471         * lib/progname.c: Likewise.
72472         * lib/progreloc.c: Likewise.
72473         * lib/readlink.c: Likewise.
72474         * lib/sh-quote.c: Likewise.
72475         * lib/stpcpy.c: Likewise.
72476         * lib/stpncpy.c: Likewise.
72477         * lib/strcasecmp.c: Likewise.
72478         * lib/strcasestr.c: Likewise.
72479         * lib/strcspn.c: Likewise.
72480         * lib/striconv.c: Likewise.
72481         * lib/strncasecmp.c: Likewise.
72482         * lib/strnlen1.c: Likewise.
72483         * lib/strstr.c: Likewise.
72484         * lib/strtok_r.c: Likewise.
72485         * lib/tls.c: Likewise.
72486         * lib/tmpdir.c: Likewise.
72487         * lib/unicodeio.c: Likewise.
72488         * lib/unsetenv.c: Likewise.
72489         * lib/vasnprintf.c: Likewise.
72490         * lib/vasprintf.c: Likewise.
72491         * lib/wait-process.c: Likewise.
72492         * lib/xallocsa.c: Likewise.
72493         * lib/xsetenv.c: Likewise.
72494         * lib/xstriconv.c: Likewise.
72495
72496 2006-09-13  Simon Josefsson  <jas@extundo.com>
72497
72498         * m4/getdate.m4: Don't AC_LIBOBJ([getdate]), automake takes care of
72499         that internally, suggested by Ralf Wildenhues
72500         <Ralf.Wildenhues@gmx.de>.
72501
72502 2006-09-13  Simon Josefsson  <jas@extundo.com>
72503
72504         * gnulib-tool (func_emit_lib_Makefile_am): Use $(LIBOBJS), not
72505         @LIBOBJS@.
72506         Suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
72507
72508 2006-09-13  Paul Eggert  <eggert@cs.ucla.edu>
72509
72510         * lib/_fpending.c: Include <config.h> unconditionally, since we no
72511         longer worry about uses that don't define HAVE_CONFIG_H.
72512         * lib/acl.c, lib/alloca.c, lib/argmatch.c, lib/atexit.c:
72513         * lib/backupfile.c, lib/basename.c, lib/c-stack.c, lib/c-strtod.c:
72514         * lib/calloc.c,lib/ canon-host.c, lib/canonicalize.c, lib/chdir-long.c:
72515         * lib/chdir-safer.c, lib/chown.c, lib/cloexec.c, lib/close-stream.c:
72516         * lib/closeout.c, lib/creat-safer.c, lib/cycle-check.c, lib/diacrit.c:
72517         * lib/dirchownmod.c, lib/dirfd.c, lib/dirname.c, lib/dup-safer.c:
72518         * lib/dup2.c, lib/error.c, lib/euidaccess.c, lib/exclude.c:
72519         * lib/exitfail.c, lib/fchmodat.c, lib/fchown-stub.c, lib/fd-safer.c:
72520         * lib/file-type.c, lib/fileblocks.c, lib/filemode.c, lib/filenamecat.c:
72521         * lib/fnmatch.c, lib/fopen-safer.c, lib/fprintftime.c, lib/free.c:
72522         * lib/fsusage.c, lib/ftruncate.c, lib/fts-cycle.c, lib/fts.c:
72523         * lib/full-write.c, lib/gai_strerror.c, lib/getcwd.c, lib/getdate.y:
72524         * lib/getdomainname.c, lib/getgroups.c, lib/gethostname.c:
72525         * lib/gethrxtime.c, lib/getloadavg.c, lib/getlogin_r.c:
72526         * lib/getndelim2.c, lib/getnline.c, lib/getopt.c, lib/getopt1.c:
72527         * lib/getpass.c, lib/gettime.c, lib/gettimeofday.c, lib/getugroups.c:
72528         * lib/getusershell.c, lib/glob.c, lib/group-member.c:
72529         * lib/hard-locale.c, lib/hash-pjw.c, lib/hash.c, lib/human.c:
72530         * lib/idcache.c, lib/inet_ntop.c, lib/inet_pton.c, lib/inttostr.c:
72531         * lib/isdir.c, lib/lchown.c, lib/linebuffer.c, lib/long-options.c:
72532         * lib/lstat.c, lib/malloc.c, lib/md5.c, lib/memcasecmp.c, lib/memchr.c:
72533         * lib/memcmp.c, lib/memcoll.c, lib/memcpy.c, lib/memmove.c:
72534         * lib/memrchr.c, lib/mkancesdirs.c, lib/mkdir-p.c, lib/mkdir.c:
72535         * lib/mkdirat.c, lib/mkstemp-safer.c, lib/mkstemp.c, lib/modechange.c:
72536         * lib/mountlist.c, lib/nanosleep.c, lib/obstack.c, lib/open-safer.c:
72537         * lib/openat-die.c, lib/openat.c, lib/pagealign_alloc.c, lib/physmem.c:
72538         * lib/pipe-safer.c, lib/posixtm.c, lib/posixver.c, lib/putenv.c:
72539         * lib/quote.c, lib/quotearg.c, lib/raise.c, lib/readtokens.c:
72540         * lib/readtokens0.c, lib/readutmp.c, lib/realloc.c, lib/regex.c:
72541         * lib/rename.c, lib/rmdir.c, lib/rpmatch.c, lib/safe-read.c:
72542         * lib/same.c, lib/save-cwd.c, lib/savedir.c, lib/setenv.c:
72543         * lib/settime.c, lib/sha1.c, lib/sig2str.c, lib/snprintf.c:
72544         * lib/strdup.c, lib/strerror.c, lib/strftime.c, lib/stripslash.c:
72545         * lib/strndup.c, lib/strnlen.c, lib/strpbrk.c, lib/strtod.c:
72546         * lib/strtoimax.c, lib/strtol.c, lib/strverscmp.c, lib/tempname.c:
72547         * lib/time_r.c, lib/timegm.c, lib/tmpfile-safer.c, lib/unlinkdir.c:
72548         * lib/userspec.c, lib/utime.c, lib/utimecmp.c, lib/utimens.c:
72549         * lib/version-etc-fsf.c, lib/version-etc.c, lib/xalloc-die.c:
72550         * lib/xgetcwd.c, lib/xgethostname.c, lib/xmalloc.c, lib/xmemcoll.c:
72551         * lib/xnanosleep.c, lib/xreadlink.c, lib/xstrtod.c, lib/xstrtoimax.c:
72552         * lib/xstrtol.c, lib/xstrtoumax.c, lib/yesno.c:
72553         Likewise.
72554
72555 2006-09-13  Eric Blake  <ebb9@byu.net>
72556
72557         * lib/getopt.c: Fix typo in last commit.
72558
72559 2006-09-12  Sergey Poznyakoff  <gray@gnu.org.ua>
72560
72561         * lib/argp-help.c (argp_doc): Make sure NULL is not passed to
72562         dgettext.
72563
72564 2006-09-12  Jim Meyering  <jim@meyering.net>
72565
72566         * lib/nanosleep.c: Include <sys/types.h> before sys/select.h, to avoid
72567         compilation failure (due to use of pid_t in latter) on NetBSD 1.6.
72568         Reported by Nelson H. F. Beebe.
72569
72570 2006-09-10  Sergey Poznyakoff  <gray@gnu.org.ua>
72571
72572         * lib/argp-parse.c (__argp_parse) [!_LIBC]: Make sure
72573         program_invocation_name and program_invocation_short_name are
72574         initialized.
72575         * lib/argp-namefrob.h: Move declarations of program_invocation_name
72576         and program_invocation_short_name to argp.h, so they are visible
72577         to user programs.
72578         * lib/argp.h: Likewise
72579
72580 2006-09-10  Bruno Haible  <bruno@clisp.org>
72581
72582         * modules/mkdtemp (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
72583         m4/inttypes_h.m4, m4/uintmax_t.m4.
72584
72585 2006-09-10  Bruno Haible  <bruno@clisp.org>
72586
72587         * m4/mkdtemp.m4 (gl_PREREQ_MKDTEMP): Don't require
72588         gl_AC_TYPE_UINTMAX_T.
72589
72590 2006-09-10  Bruno Haible  <bruno@clisp.org>
72591
72592         * lib/mkdtemp.c: Include <stdint.h> always. Don't include <inttypes.h>.
72593
72594 2006-09-09  Sergey Poznyakoff  <gray@gnu.org.ua>
72595
72596         * lib/argp.h (struct argp): Document the N_("..") "\v" N_("..")
72597         convention.  Text proposed by Bruno Haible.
72598         (struct argp_option): Document the use of N_() wrappers.
72599
72600         * lib/argp-help.c (argp_doc): Split the untranslated doc string on
72601         '\v', and translate the two parts separately, instead of feeding
72602         the whole string to gettext.  This allows to exclude
72603         '\v' from the strings visible to the translator by writing doc
72604         strings as N_("..") "\v" N_("..").
72605
72606 2006-09-09  Paul Eggert  <eggert@cs.ucla.edu>
72607
72608         * config/srclist.txt: Undo latest change; the bug was fixed.
72609
72610 2006-09-09  Bruno Haible  <bruno@clisp.org>
72611
72612         * gnulib-tool (func_emit_lib_Makefile_am): Eliminate lib_LDFLAGS
72613         assignments if building a library without libtool.
72614         (func_emit_tests_Makefile_am): Likewise. Handle lib_* variables as
72615         in func_emit_lib_Makefile_am.
72616         (func_import): When building a static library libfoo.a, arrange to
72617         define variables LIBFOO_LIBDEPS and LIBFOO_LTLIBDEPS.
72618         (func_create_testdir): Likewise.
72619         * modules/gc (configure.ac, Makefile.am): If building statically,
72620         augment gl_libdeps and gl_ltlibdeps instead of lib_LDFLAGS.
72621         * modules/iconvme (configure.ac, Makefile.am): Likewise.
72622         * modules/striconv (configure.ac, Makefile.am): Likewise.
72623         Based on a suggestion by Ralf Wildenhues.
72624
72625 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
72626
72627         * m4/mktime.m4 (AC_FUNC_MKTIME): Sync from Autoconf.
72628         Check for unistd.h too, since Autoconf doesn't assume POSIX.
72629         Also:
72630
72631         2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
72632         Add year_2050_test to catch glibc bug 2821
72633         <http://sourceware.org/bugzilla/show_bug.cgi?id=2821>.
72634
72635         2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
72636         Prefer #ifdef to #if.
72637
72638         2006-04-02  Paul Eggert  <eggert@cs.ucla.edu>
72639         Return from 'main' instead of calling 'exit'.
72640
72641 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
72642
72643         * lib/mktime.c (guess_time_tm): Fix bug where mktime
72644         returned the maximum time_t value rather than (time_t) -1.
72645         Problem originally reported by William Bardwell
72646         <http://sourceware.org/bugzilla/show_bug.cgi?id=2821>.
72647
72648         * lib/isapipe.h (HAVE_FIFO_PIPES) [!defined HAVE_FIFO_PIPES]:
72649         Moved to here ...
72650         * lib/isapipe.c (HAVE_FIFO_PIPES) [!defined HAVE_FIFO_PIPES]:
72651         ... from here.
72652
72653 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
72654
72655         * config/srclist.txt: Temporarily comment out mktime.c until glibc bug
72656         2821 is fixed.
72657
72658 2006-09-08  Jim Meyering  <jim@meyering.net>
72659
72660         Don't make generated files read-only.  That would bother too many
72661         people.  However, do retain the ability to work when targets are
72662         read-only: remove the destination and temporary files before writing
72663         them (when generated via sed or echo), or by using the -f option for
72664         both cp and mv commands.  Suggestion to use -f from Paul Eggert.
72665         * modules/alloca-opt, modules/argz, modules/arpa_inet:
72666         * modules/byteswap, modules/configmake, modules/fcntl:
72667         * modules/fnmatch, modules/getopt, modules/glob, modules/inttypes:
72668         * modules/localcharset, modules/netinet_in, modules/poll:
72669         * modules/stdbool, modules/stdint, modules/sys_select:
72670         * modules/sys_socket, modules/sys_stat, modules/sysexits:
72671
72672 2006-09-08  Jim Meyering  <jim@meyering.net>
72673
72674         Avoid new build failure on FreeBSD 6.0.
72675         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Include
72676         <sys/param.h> when testing whether getmntinfo uses statvfs.  Patch by
72677         Pavel Tsekov, in <http://savannah.gnu.org/bugs/?17643>.
72678
72679 2006-09-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
72680
72681         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't use plain echo.
72682
72683 2006-09-07  Jim Meyering  <jim@meyering.net>
72684
72685         Fix global typo in last change: use chmod u-w, not chmod u-x.
72686         Spotted by Paul Eggert and Bruce Korb.
72687         * modules/alloca-opt, modules/argz, modules/arpa_inet:
72688         * modules/byteswap, modules/configmake, modules/fcntl:
72689         * modules/fnmatch, modules/getopt, modules/glob, modules/inttypes:
72690         * modules/localcharset, modules/netinet_in, modules/poll:
72691         * modules/stdbool, modules/stdint, modules/sys_select:
72692         * modules/sys_socket, modules/sys_stat, modules/sysexits:
72693
72694 2006-09-06  Jim Meyering  <jim@meyering.net>
72695
72696         Make generated files be read-only.
72697         * modules/alloca-opt (Makefile.am): Work also when $@ is read-only.
72698         Ensure that each generated file is now read-only.
72699         * modules/argz: Likewise.
72700         * modules/arpa_inet: Likewise.
72701         * modules/byteswap: Likewise.
72702         * modules/configmake: Likewise.
72703         * modules/fcntl: Likewise.
72704         * modules/fnmatch: Likewise.
72705         * modules/getopt: Likewise.
72706         * modules/glob: Likewise.
72707         * modules/inttypes: Likewise.
72708         * modules/netinet_in: Likewise.
72709         * modules/poll: Likewise.
72710         * modules/stdbool: Likewise.
72711         * modules/stdint: Likewise.
72712         * modules/sys_select: Likewise.
72713         * modules/sys_socket: Likewise.
72714         * modules/sys_stat: Likewise.
72715         * modules/sysexits: Likewise.
72716         * modules/localcharset: Same as above, but continue using temporary
72717         file named "t-$@" (why different?) rather than the "$@-t" used
72718         everywhere else.
72719
72720         * modules/sysexits (Makefile.am): Replace literal occurrences
72721         of "sysexit.h" more readable, and more consistent, "$@".
72722
72723 2006-09-06  Bruno Haible  <bruno@clisp.org>
72724
72725         * modules/striconv: New file.
72726         * modules/xstriconv: New file.
72727         * MODULES.html.sh (Internationalization functions): Add striconv,
72728         xstriconv.
72729
72730 2006-09-06  Bruno Haible  <bruno@clisp.org>
72731
72732         * modules/gc (Makefile.am): Augment lib_LDFLAGS, not lib_LIBADD.
72733         * modules/iconvme (Makefile.am): Likewise. Also handle the case of
72734         not using libtool correctly.
72735
72736 2006-09-06  Bruno Haible  <bruno@clisp.org>
72737
72738         * lib/striconv.h: New file.
72739         * lib/striconv.c: New file, merging iconvme.c with GNU gettext's
72740         iconvstring.c.
72741         * lib/xstriconv.h: New file.
72742         * lib/xstriconv.c: New file.
72743
72744 2006-09-06  Bruno Haible  <bruno@clisp.org>
72745
72746         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
72747         lib_..._LDFLAGS.
72748
72749 2006-09-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
72750
72751         * lib/argz_.h: Sync from Libtool.
72752
72753         2006-09-04  George Bosilca <bosilca@cs.utk.edu>
72754                 and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
72755
72756         * lib/libltdl/argz_.h: It's __cplusplus, not _cplusplus.
72757
72758 2006-09-05  Davide Angelocola  <davide.angelocola@tiscali.it>
72759
72760         * modules/trim: New file.
72761
72762 2006-09-05  Davide Angelocola  <davide.angelocola@tiscali.it>
72763
72764         * lib/trim.h: New file.
72765         * lib/trim.c: New file.
72766
72767 2006-09-05  Bruno Haible  <bruno@clisp.org>
72768
72769         * MODULES.html.sh (String handling): Add trim.
72770
72771 2006-09-04  Karl Berry  <karl@gnu.org>
72772
72773         * config/srclist.txt (signed.m4, gettext.m4): changes not propagated
72774         until next release.
72775
72776 2006-09-03  Bruno Haible  <bruno@clisp.org>
72777
72778         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Locate mingw shared libraries
72779         correctly.
72780
72781 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
72782
72783         * m4/getloadavg.m4 (gl_GETLOADAVG): Use CONFIGURING_GETLOADAVG,
72784         not gl_GETLOADAVG.  Omit unneeded semicolons.
72785         Problems reported by Ralf Wildenhues in
72786         <http://lists.gnu.org/archive/html/bug-gnulib/2006-09/msg00000.html>.
72787         (gl_PREREQ_GETLOADAVG): Use AC_DEFUN, not m4_define.  Put
72788         at the end, which is the usual gnulib style.
72789
72790         * m4/fstypename.m4 (gl_FSTYPENAME): Use AC_CHECK_MEMBERS instead
72791         of doing all the work ourselves.
72792         * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Don't check for
72793         sys/statvfs.h since the code doesn't use HAVE_SYS_STATVFS_H.
72794
72795 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
72796
72797         * lib/getloadavg.c: Use CONFIGURING_GETLOADAVG, not gl_GETLOADAVG.
72798         Problem reported by Ralf Wildenhues in
72799         <http://lists.gnu.org/archive/html/bug-gnulib/2006-09/msg00000.html>.
72800
72801         * lib/mountlist.c: All uses of HAVE_F_FSTYPENAME_IN_STATFS replaced by
72802         HAVE_STRUCT_STATFS_F_FSTYPENAME.
72803
72804 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
72805
72806         * gnulib-tool (func_emit_lib_Makefile_am): Fix typos in
72807         yesterday's patch by changing test -n to test -z.
72808
72809 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
72810
72811         * modules/getloadavg (Files): Add m4/getloadavg.m4.
72812         (configure.ac): AC_FUNC_GETLOADAVG -> gl_GETLOADAVG, as
72813         the former is now obsolescent.
72814
72815         * modules/chdir-long (Depends-on): Add fcntl.
72816
72817 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
72818
72819         * m4/fnmatch.m4: Add comment that Autoconf AC_FUNC_FNMATCH is
72820         obsolescent, and programs should use gnulib instead.
72821         * m4/getloadavg.m4: New file, with contents taken from Autoconf
72822         but with prefixes changed.
72823
72824 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
72825
72826         * lib/getloadavg.c [defined gl_GETLOADAVG]: Don't include config.h
72827         or stdbool.h, because they might not exist while configuring.
72828
72829         * lib/chdir-long.c: Include <fcntl.h>, for O_DIRECTORY.
72830         Don't include unistd.h or limits.h; not needed, since chdir-long.h
72831         does that for us.
72832         (O_DIRECTORY): Remove.
72833
72834 2006-08-31  Eric Blake  <ebb9@byu.net>
72835
72836         * gnulib-tool: Don't let emacs change spaces to TAB.
72837
72838 2006-08-31  Bruno Haible  <bruno@clisp.org>
72839
72840         * gnulib-tool: When calling func_import more than once, do it in a
72841         subshell.
72842         Reported by Eric Blake <ebb9@byu.net>.
72843
72844 2006-08-31  Bruno Haible  <bruno@clisp.org>
72845
72846         * gnulib-tool (nl): Remove variable.
72847         (sed_transform_lib_file): Use more robust test for config-h module.
72848         (func_import): Fix typo in 2006-08-25 patch.
72849
72850 2006-08-31  Bruno Haible  <bruno@clisp.org>
72851
72852         * gnulib-tool (func_emit_lib_Makefile_am): When --makefile-name was
72853         specified, augment Makefile.am variables instead of assigning them.
72854
72855 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
72856
72857         Work around a bug in both the Linux and SunOS 64-bit kernels:
72858         nanosleep mishandles sleeps for longer than 2**31 seconds.
72859         Problem reported by Frank v Waveren in
72860         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00298.html>.
72861         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require gl_CLOCK_TIME.
72862         Check for nanosleep bug.
72863         (LIB_NANOSLEEP): Append clock_gettime library if needed.
72864
72865 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
72866
72867         Work around a bug in both the Linux and SunOS 64-bit kernels:
72868         nanosleep mishandles sleeps for longer than 2**31 seconds.
72869         Problem reported by Frank v Waveren in
72870         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00298.html>.
72871         * lib/nanosleep.c (BILLION): New constant.
72872         (getnow) [HAVE_BUG_BIG_NANOSLEEP]: New functions.
72873         (rpl_nanosleep) [HAVE_BUG_BIG_NANOSLEEP]: Completely new
72874         implementation.
72875
72876 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
72877
72878         * modules/nanosleep (Depends-on): Add gettime.
72879
72880 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
72881         and Simon Josefsson  <jas@extundo.com>
72882         and Oskar Liljeblad  <oskar@osk.mine.nu>
72883
72884         * MODULES.html.sh (Support for building documentation): Add gpl, lgpl.
72885         * gnulib-tool (func_import): New license type 'unmodifiable license
72886         text'.
72887         * modules/fdl: Use it.  Longer description.
72888         * module/gpl, module/lgpl: New files.
72889
72890 2006-08-30  Jim Meyering  <jim@meyering.net>
72891
72892         * lib/isapipe.c (isapipe): Rename local s/fd/fd_pair/ to avoid
72893         shadowing the parameter.
72894
72895 2006-08-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
72896
72897         Sync from Libtool:
72898
72899         2006-08-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
72900
72901         * lib/libltdl/argz.c: Use `#ifdef HAVE_CONFIG_H', to facilitate code
72902         sharing with gnulib.  Report by Eric Blake.
72903
72904 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
72905
72906         * modules/isapipe: New file.
72907         * MODULES.html.sh (File descriptor based Input/Output): Add isapipe.
72908
72909 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
72910
72911         * modules/configmake (Makefile.am): Add a comment, and omit
72912         the CONFIGMAKE_ prefix from generated macro names.  Suggested
72913         by Bruno Haible.
72914
72915 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
72916
72917         * m4/isapipe.m4: New file.
72918
72919 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
72920
72921         * lib/isapipe.c, lib/isapipe.h: New files.
72922
72923 2006-08-29  Jim Meyering  <jim@meyering.net>
72924
72925         * modules/configmake (Makefile.am): Make configmake.h depend on
72926         Makefile.  Otherwise, a stale configmake.h could hang around.
72927
72928 2006-08-29  Eric Blake  <ebb9@byu.net>
72929
72930         * lib/error.c (error_at_line, print_errno_message): Match libc, after
72931         resolution of upstream bug 3044.
72932
72933 2006-08-29  Bruno Haible  <bruno@clisp.org>
72934
72935         * modules/localcharset (Depends-on): Add configmake.
72936         (Makefile.am): Remove setting of LIBDIR through DEFS.
72937
72938 2006-08-29  Bruno Haible  <bruno@clisp.org>
72939
72940         * lib/localcharset.c: Include configmake.h in order to get LIBDIR
72941         defined.
72942
72943 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
72944
72945         * modules/fcntl: New file.
72946         * modules/chdir-safer (Depends-on): Add fcntl.
72947         * modules/fts: Likewise.
72948         * modules/mkdir-p: Likewise.
72949
72950         * modules/stdint (Makefile.am): Do not substitute ABSOLUTE_INTTYPES_H.
72951         This undoes the most recent change, since we're now addressing the
72952         problem in a different way.
72953
72954         * gnulib-tool (emit_lib_Makefile_am): Don't put $makefile_name
72955         into output, since the output might be called Makefile.am even
72956         if $makefile_name is something different.
72957         (func_import): Use $makefile_am rather than
72958         ${makefile_name-Makefile.am}, to fix a bug where makefile_name was
72959         empty.
72960
72961         * modules/inttypes (Files): Add m4/inttypes-h.m4.
72962
72963 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
72964
72965         * m4/inttypes.m4 (gl_INTTYPES_H): Move ABSOLUTE_INTTYPES_H code here...
72966         * m4/stdint.m4 (gl_STDINT_H): ... from here.  This undoes the most
72967         recent change to stdint.m4, since we're now addressing the problem in a
72968         different way.
72969
72970 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
72971
72972         * m4/fcntl_h.m4: New file.
72973
72974 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
72975
72976         * lib/fcntl_.h: New file.
72977         * lib/chdir-safer.c (O_DIRECTORY, O_NOFOLLOW): Remove, now that we have
72978         the fcntl module.
72979         * lib/dirchownmod.c: Likewise.
72980         * lib/fts.c: Likewise.
72981
72982         * lib/inttypes_.h [defined _GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H]:
72983         Include @ABSOLUTE_INTTYPES_H@ if available, but do nothing else.
72984         * lib/stdint_.h (_GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H): Define
72985         just before including <inttypes.h>, to avoid circular inclusion.
72986
72987 2006-08-28  Jim Meyering  <jim@meyering.net>
72988
72989         * doc/visibility.texi: Actually read and correct the grammar of the
72990         sentence affected by yesterday's change.
72991
72992 2006-08-28  Eric Blake  <ebb9@byu.net>
72993
72994         * modules/inttypes (Makefile.am): Fix sed error when inttypes.h
72995         needs wrapper.
72996
72997 2006-08-28  Eric Blake  <ebb9@byu.net>
72998
72999         * m4/inttypes.m4 (gl_INTTYPES_H): Fix missing #endif.
73000
73001 2006-08-28  Eric Blake  <ebb9@byu.net>
73002
73003         * m4/codeset.m4 (AM_LANGINFO_CODESET): Avoid compiler warning.
73004
73005 2006-08-28  Bruno Haible  <bruno@clisp.org>
73006
73007         * modules/c-strstr: New file, from GNU gettext.
73008         * MODULES.html.sh (String handling): Add c-strstr.
73009
73010 2006-08-28  Bruno Haible  <bruno@clisp.org>
73011
73012         * m4/inttypes.m4 (gl_INTTYPES_H): Don't test for the existence of SCNX*
73013         macros.
73014         Reported by Eric Blake.
73015
73016 2006-08-28  Bruno Haible  <bruno@clisp.org>
73017
73018         * lib/vasnprintf.c (EOVERFLOW): Remove definition.
73019         (VASNPRINTF): Return a string of length > INT_MAX without failing.
73020         * lib/vasprintf.c: Include errno.h, limits.h.
73021         (EOVERFLOW): New fallback definition.
73022         (vasprintf): Test here whether the string length is > INT_MAX.
73023         * lib/vsnprintf.c: Include errno.h, limits.h.
73024         (EOVERFLOW): New fallback definition.
73025         (vsnprintf): Fix bug when generated string was too long for the buffer.
73026         Test here whether the string length is > INT_MAX.
73027
73028 2006-08-28  Bruno Haible  <bruno@clisp.org>
73029
73030         * lib/inttypes_.h (SCNX*): Remove definitions.
73031         Reported by Eric Blake.
73032
73033 2006-08-28  Bruno Haible  <bruno@clisp.org>
73034
73035         * lib/c-strstr.h: New file, from GNU gettext.
73036         * lib/c-strstr.c: New file, from GNU gettext.
73037
73038 2006-08-28  Bruno Haible  <bruno@clisp.org>
73039
73040         * gnulib-tool: Reorder some statements.
73041
73042 2006-08-28  Bruno Haible  <bruno@clisp.org>
73043
73044         * gnulib-tool: New option --makefile-name.
73045         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Use
73046         $makefile_name.
73047         (func_import): Write $makefile_name to the cache file, and read it from
73048         there unless explicitly specified. Use $makefile_name as file name
73049         instead of Makefile.am. Adjust the recommendations accordingly.
73050
73051 2006-08-28  Bruno Haible  <bruno@clisp.org>
73052
73053         * gnulib-tool (func_verify_module): Check against misapplying patch.
73054
73055 2006-08-28  Bruno Haible  <bruno@clisp.org>
73056
73057         * gnulib-tool (func_relativize, func_relconcat): New functions.
73058         Give an error if --local-dir is given with --update.
73059         Remove trailing slashes from $local_gnulib_dir.
73060         (func_import): Store the relativized $local_gnulib_dir in
73061         gnulib-cache.m4, and read it from there if not specified explicitly.
73062
73063 2006-08-28  Bruno Haible  <bruno@clisp.org>
73064
73065         * gnulib-tool (func_get_tests_module): Don't assume that $gnulib_dir
73066         is the current directory. Respect also $local_gnulib_dir.
73067
73068 2006-08-28  Bruno Haible  <bruno@clisp.org>
73069             Simon Josefsson  <jas@extundo.com>
73070
73071         BeOS portability.
73072         * lib/getaddrinfo.c (PF_INET, PF_UNSPEC): New macros.
73073
73074 2006-08-27  Jim Meyering  <jim@meyering.net>
73075
73076         * doc/visibility.texi: Remove duplicate word: "pointer".
73077
73078 2006-08-26  Bruno Haible  <bruno@clisp.org>
73079
73080         * modules/inttypes (Files): Add lib/inttypes_.h, remove lib/inttypes.h.
73081         Add m4/inttypes.m4, remove m4/_inttypes_h.m4 and m4/include_next.m4.
73082         (Makefile.am): Create inttypes.h from inttypes_.h.
73083         * modules/stdint (Makefile.am): Substitute also ABSOLUTE_INTTYPES_H.
73084
73085         * modules/imaxabs: New file.
73086
73087         * modules/imaxdiv: New file.
73088
73089 2006-08-26  Bruno Haible  <bruno@clisp.org>
73090
73091         * m4/inttypes.m4: New file.
73092         * m4/_inttypes_h.m4: Remove file.
73093         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Also AC_SUBST
73094         PRI_MACROS_BROKEN.
73095         * m4/stdint.m4 (gl_STDINT_H): Define also ABSOLUTE_INTTYPES_H.
73096
73097         * m4/imaxabs.m4: New file.
73098
73099         * m4/imaxdiv.m4: New file.
73100
73101 2006-08-26  Bruno Haible  <bruno@clisp.org>
73102
73103         * lib/inttypes_.h: New file.
73104         * lib/inttypes.h: Remove file.
73105         * lib/stdint_.h: Include <inttypes.h> through its absolute filename.
73106
73107         * lib/imaxabs.c: New file.
73108
73109         * lib/imaxdiv.c: New file.
73110
73111 2006-08-25  Paul Eggert  <eggert@cs.ucla.edu>
73112
73113         New config-h module, so that "make" output needn't be cluttered
73114         by -DHAVE_CONFIG_H.
73115         * MODULES.html.sh (Support for building libraries and executables):
73116         Add config-h.
73117         * modules/config-h: New file.
73118         * gnulib-tool (nl, sed_transform_lib_file): New vars.
73119         (func_import): Turn "#ifdef HAVE_CONFIG_H" to "#if 1" if
73120         the config-h module is used.
73121
73122         New configmake module, so that "make" output needn't be cluttered
73123         by fluff like '-DLIBDIR=\"/usr/local/lib\"'.
73124         * MODULES.html.sh (Support for building libraries and executables):
73125         Add configmake.
73126         * modules/configmake: New file.
73127
73128 2006-08-25  Paul Eggert  <eggert@cs.ucla.edu>
73129
73130         * m4/config-h.m4: New file.
73131
73132 2006-08-24  Paul Eggert  <eggert@cs.ucla.edu>
73133
73134         * config/srclist.txt: Add elisp-comp.
73135
73136 2006-08-24  Paul Eggert  <eggert@cs.ucla.edu>
73137
73138         * MODULES.html.sh (Support for building libraries and executables):
73139         Add elisp-comp.
73140         * build-aux/elisp-comp: New file.
73141         * modules/elisp-comp: New file.
73142
73143 2006-08-24  Bruno Haible  <bruno@clisp.org>
73144
73145         * gnulib-tool (func_create_testdir): Use non-default values of
73146         sourcebase and m4base.
73147
73148 2006-08-24  Bruno Haible  <bruno@clisp.org>
73149
73150         * MODULES.html.sh (Compatibility checks for POSIX:2001 functions: Fix
73151         HTML structure.
73152
73153 2006-08-23  Paul Eggert  <eggert@cs.ucla.edu>
73154
73155         * modules/openat (Depends-on): Add lchown.
73156
73157 2006-08-23  Bruno Haible  <bruno@clisp.org>
73158
73159         * gnulib-tool (func_import, func_create_testdir): Emit an invocation
73160         of gl_LOCK_EARLY instead of gl_LOCK.
73161
73162 2006-08-23  Bruno Haible  <bruno@clisp.org>
73163
73164         * m4/lock.m4 (gl_LOCK_BODY): Change the default value of gl_use_threads
73165         on OSF/1 to no.
73166         Reported by Stephen Cartwright <sgcartwr@ucalgary.ca>.
73167
73168 2006-08-23  Bruno Haible  <bruno@clisp.org>
73169
73170         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't consider BeOS statvfs
73171         as unusable.
73172
73173         * m4/lock.m4 (gl_LOCK_EARLY): Renamed from gl_LOCK.
73174         (gl_LOCK_BODY): Remove gl_PREREQ_LOCK invocation.
73175         (gl_LOCK): New macro.
73176
73177 2006-08-22  Simon Josefsson  <jas@extundo.com>
73178
73179         * modules/gc-md5 (Makefile.am): Need to add md5.h, after changes
73180         to md5 module.
73181
73182 2006-08-22  Simon Josefsson  <jas@extundo.com>
73183
73184         * MODULES.html.sh: Add "Support for maintaining and release
73185         projects".
73186
73187         * build-aux/gnupload: New file, from coreutils.
73188
73189 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
73190
73191         Avoid the need for AC_LIBSOURCES in m4 macros.
73192         * modules/arcfour (EXTRA_DIST): Add arcfour.h.
73193         * modules/arctwo (EXTRA_DIST): Add arctwo.h.
73194         * modules/check-version (EXTRA_DIST): Add check-version.h.
73195         * modules/crc (EXTRA_DIST): Add crc.h.
73196         * modules/des (EXTRA_DIST): Add des.h.
73197         * modules/gc (EXTRA_DIST): Add gc.h.
73198         * modules/getdelim (EXTRA_DIST): Add getdelim.h.
73199         * modules/getline (EXTRA_DIST): Add getline.h.
73200         * modules/getlogin_r (EXTRA_DIST): Add getlogin_r.h.
73201         * modules/hmac-md5 (EXTRA_DIST): Add hmac.h.
73202         * modules/hmac-sha1 (EXTRA_DIST): Add hmac.h.
73203         * modules/md2 (EXTRA_DIST): Add md2.h.
73204         * modules/md4 (EXTRA_DIST): Add md4.h.
73205         * modules/pagealign_alloc (EXTRA_DIST): Add pagealign_alloc.h.
73206         * modules/read-file (EXTRA_DIST): Add read-file.h.
73207         * modules/readline (EXTRA_DIST): Add readline.h.
73208         * modules/rijndael (EXTRA_DIST): Add rijndael-alg-fst.h,
73209         rijndael-api-fst.h.
73210
73211 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
73212
73213         * m4/rijndael.m4 (gl_ARCFOUR):
73214         * m4/arctwo.m4 (gl_ARCTWO):
73215         * m4/check-version.m4 (gl_CHECK_VERSION):
73216         * m4/crc.m4 (gl_CRC):
73217         * m4/des.m4 (gl_DES):
73218         * m4/gc-pbkdf2-sha1.m4 (gl_GC_PBKDF2_SHA1):
73219         * m4/gc.m4 (gl_GC):
73220         * m4/getdelim.m4 (gl_FUNC_GETDELIM):
73221         * m4/getline.m4 (gl_FUNC_GETLINE):
73222         * m4/getlogin_r.m4 (gl_GETLOGIN_R_SUBSTITUTE):
73223         * m4/hmac-md5.m4 (gl_HMAC_MD5):
73224         * m4/hmac-sha1.m4 (gl_HMAC_SHA1):
73225         * m4/md2.m4 (gl_MD2):
73226         * m4/md4.m4 (gl_MD4):
73227         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC):
73228         * m4/read-file.m4 (gl_FUNC_READ_FILE):
73229         * m4/readline.m4 (gl_FUNC_READLINE):
73230         * m4/rijndael.m4 (gl_RIJNDAEL):
73231         Don't use AC_LIBSOURCES; instead, rely on the files in ../modules/
73232         to get the necessary .h files and whatnot.
73233
73234 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
73235
73236         * config/srclist.txt: Remove gnupload, since coreutils now syncs from
73237         gnulib rather than the other way around.
73238         * config/srclistvars.sh (COREUTILS): Remove.
73239
73240 2006-08-22  Jim Meyering  <jim@meyering.net>
73241
73242         * modules/mkdir-p (Makefile.am): Fix typo: s/lib+SOURCES/lib_SOURCES/.
73243
73244         * modules/getpass-gnu (Makefile.am): Add getpass.h to EXTRA_DIST.
73245
73246 2006-08-22  Eric Blake  <ebb9@byu.net>
73247
73248         * modules/regexprops-generic: New file.
73249         * MODULES.html.sh (Support for building documentation): List it.
73250
73251 2006-08-22  Eric Blake  <ebb9@byu.net>
73252
73253         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Avoid compiler warning.
73254         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
73255         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Likewise.
73256         * m4/intmax_t.m4 (gt_AC_TYPE_INTMAX_T): Likewise.
73257
73258 2006-08-22  Bruno Haible  <bruno@clisp.org>
73259
73260         * gnulib-tool (func_emit_lib_Makefile_am): Don't treat lib_LIBRARIES
73261         and lib_LTLIBRARIES like the other lib_* variables.
73262
73263 2006-08-22  Bruno Haible  <bruno@clisp.org>
73264
73265         * build-aux/x-to-1.in: New file, from GNU gettext.
73266
73267 2006-08-22  Bruno Haible  <bruno@clisp.org>
73268
73269         * m4/readutmp.m4 (gl_READUTMP): Compile readutmp.c only if <utmp.h> or
73270         <utmpx.h> exists.
73271
73272 2006-08-22  Bruno Haible  <bruno@clisp.org>
73273
73274         * lib/readutmp.h: Skip most definitions if neither <utmp.h> nor
73275         <utmpx.h> exists.
73276
73277 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
73278
73279         BeOS portability.
73280         * lib/dirchownmod.c (dirchownmod): Don't use fchmod if it doesn't
73281         exist.
73282         Problem reported by Bruno Haible.
73283
73284 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
73285
73286         Avoid the need for AC_LIBSOURCES in m4 macros.
73287         * modules/acl (EXTRA_DIST): Add acl.h.
73288         * modules/argmatch (Files): Add m4/argmatch.m4.
73289         (configure.ac): Add gl_ARGMATCH.
73290         (EXTRA_DIST): Renamed from lib_SOURCES, for
73291         consistency with the other modules.  Remove argmatch.c.
73292         * modules/backupfile (EXTRA_DIST): Add backupfile.h.
73293         * modules/c-strtod (EXTRA_DIST): Add c-strtod.h.
73294         * modules/c-strtold (EXTRA_DIST): Add c-strtod.c, c-strtod.h.
73295         * modules/canonhost (EXTRA_DIST): Add c-canonhost.h.
73296         * modules/canonicalize (EXTRA_DIST): Add canonicalize.h.
73297         * modules/chdir-long (EXTRA_DIST): Add chdir-long.h.
73298         * modules/chdir-safer (EXTRA_DIST): Add chdir-safer.h.
73299         * modules/cloexec (EXTRA_DIST): Add cloexec.h.
73300         * modules/close-stream (EXTRA_DIST): Add close-stream.h.
73301         * modules/closeout (EXTRA_DIST): Add closeout.h.
73302         * modules/cycle-check (EXTRA_DIST): Add cycle-check.h.
73303         * modules/dev-ino (EXTRA_DIST): Add dev-ino.h.
73304         * modules/dirfd (EXTRA_DIST): Add dirfd.h.
73305         * modules/dirname (EXTRA_DIST): Renamed from lib_SOURCES.  Add
73306         dirname.h; remove basename.c and stripslash.c.
73307         * modules/exclude (EXTRA_DIST): Add exclude.h.
73308         * modules/exitfail (EXTRA_DIST): Add exitfail.h.
73309         * modules/fcntl-safer (EXTRA_DIST): Add fcntl-safer.h fcntl--.h.
73310         * modules/file-type (EXTRA_DIST): Add file-type.h.
73311         * modules/filemode (EXTRA_DIST): Add filemode.h.
73312         * modules/filenamecat (EXTRA_DIST): Add filenamecat.h.
73313         * modules/fopen-safer (EXTRA_DIST): Add stdio-safer.h stdio--.h.
73314         * modules/fpending (EXTRA_DIST): Add __fpending.h.
73315         * modules/fprintftime (EXTRA_DIST): Add fprintftime.h.
73316         * modules/fsusage (EXTRA_DIST): Add fsusage.h.
73317         * modules/fts (EXTRA_DIST): Add fts_.h fts-cycle.c.
73318         * modules/getcwd (EXTRA_DIST): Add getcwd.h.
73319         * modules/getdate (EXTRA_DIST): Add getdate.c.
73320         * modules/gethrxtime (EXTRA_DIST): Add gethrxtime.h xtime.h.
73321         * modules/getpagesize (EXTRA_DIST): Add getpagesize.h.
73322         * modules/getpass (EXTRA_DIST): Add getpass.h.
73323         * modules/glob (EXTRA_DIST): Add glob_.h glob-libc.h.
73324         * modules/group-member (EXTRA_DIST): Add group-member.h.
73325         * modules/hard-locale (EXTRA_DIST): Add hard-locale.h.
73326         * modules/hash (EXTRA_DIST): Add hash.h.
73327         * modules/human (EXTRA_DIST): Add human.h.
73328         * modules/inttypes (EXTRA_DIST): Add inttypes.h.
73329         * modules/lchmod (EXTRA_DIST): Add lchmod.h.
73330         * modules/lchown (EXTRA_DIST): Add lchown.h.
73331         * modules/long-options (EXTRA_DIST): Add long-options.h.
73332         * modules/lstat (EXTRA_DIST): Add lstat.h.
73333         * modules/md5 (EXTRA_DIST): Add memcasecmp.h.
73334         * modules/memcoll (EXTRA_DIST): Add memcoll.h.
73335         * modules/mempcpy (EXTRA_DIST): Add mempcpy.h.
73336         * modules/memrchr (EXTRA_DIST): Add memrchr.h.
73337         * modules/memxor (EXTRA_DIST): Add memxor.h.
73338         * modules/mkancesdirs (EXTRA_DIST): Add mkancesdirs.h.
73339         * modules/mkdir-p (EXTRA_DIST): Add modechange.h.
73340         * modules/mountlist (EXTRA_DIST): Add mountlist.h.
73341         * modules/openat (EXTRA_DIST): Add at-func.c openat.h openat-priv.h.
73342         * modules/pathmax (EXTRA_DIST): Add pathmax.h.
73343         * modules/physmem (EXTRA_DIST): Add physmem.h.
73344         * modules/posixtm (EXTRA_DIST): Add posixtm.h.
73345         * modules/posixver (EXTRA_DIST): Add posixver.h.
73346         * modules/quote (EXTRA_DIST): Add quote.h.
73347         * modules/quotearg (EXTRA_DIST): Add quotearg.h.
73348         * modules/readtokens (EXTRA_DIST): Add readtokens.h.
73349         * modules/readutmp (EXTRA_DIST): Add readutmp.h.
73350         * modules/regex (EXTRA_DIST): Add regcomp.c regex.h regex_internal.c
73351         regex_internal.h regexec.c.
73352         * modules/safe-read (EXTRA_DIST): Add safe-read.h.
73353         * modules/safe-write (EXTRA_DIST): Add safe-write.h.
73354         * modules/same (EXTRA_DIST): Add same.h.
73355         * modules/same-inode (EXTRA_DIST): Add same-inode.h.
73356         * modules/save-cwd (EXTRA_DIST): Add save-cwd.h.
73357         * modules/savedir (EXTRA_DIST): Add savedir.h.
73358         * modules/sha1 (EXTRA_DIST): Add sha1.h.
73359         * modules/sig2str (EXTRA_DIST): Add sig2str.h.
73360         * modules/stat-macros (EXTRA_DIST): Add stat-macros.h.
73361         * modules/stat-time (EXTRA_DIST): Add stat-time.h.
73362         * modules/stdlib-safer (EXTRA_DIST): Add stdlib-safer.h stdlib--.h.
73363         * modules/strdup (EXTRA_DIST): Add strdup.h.
73364         * modules/strftime (EXTRA_DIST): Add strftime.h.
73365         * modules/strndup (EXTRA_DIST): Add strndup.h.
73366         * modules/strnlen (EXTRA_DIST): Add strnlen.h.
73367         * modules/strverscmp (EXTRA_DIST): Add strverscmp.h.
73368         * modules/time_r (EXTRA_DIST): Add time_r.h.
73369         * modules/timespec (EXTRA_DIST): Add timespec.h.
73370         * modules/tmpfile-safer (EXTRA_DIST): Add stdio-safer.h stdio--.h.
73371         * modules/unistd-safer (EXTRA_DIST): Add unistd-safer.h unistd--.h.
73372         * modules/unlinkdir (EXTRA_DIST): Add unlinkdir.h.
73373         * modules/unlocked-io (EXTRA_DIST): Add unlocked-io.h.
73374         * modules/userspec (EXTRA_DIST): Add userspec.h.
73375         * modules/utimecmp (EXTRA_DIST): Add utimecmp.h.
73376         * modules/utimens (EXTRA_DIST): Add utimens.h.
73377         * modules/xalloc (EXTRA_DIST): Add xalloc.h.
73378         * modules/xgetcwd (EXTRA_DIST): Add xgetcwd.h.
73379         * modules/xnanosleep (EXTRA_DIST): Add xnanosleep.h.
73380         * modules/xreadlink (EXTRA_DIST): Add xreadlink.h.
73381         * modules/xstrtod (EXTRA_DIST): Add xstrtod.h.
73382         * modules/xstrtol (EXTRA_DIST): Add xstrtol.h.
73383         * modules/xstrtold (EXTRA_DIST): Add xstrtod.c xstrtod.h.
73384         * modules/yesno (EXTRA_DIST): Add yesno.h.
73385
73386 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
73387
73388         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Check for fchmod.
73389
73390         * m4/argmatch.m4: New file, from coreutils with AC_LIBSOURCES removed.
73391         * m4/dev-ino.m4, same-inode.m4: Remove.
73392
73393         * m4/_inttypes_h.m4 (gl_INTTYPES_H):
73394         * m4/acl.m4 (AC_FUNC_ACL):
73395         * m4/backupfile.m4 (gl_BACKUPFILE):
73396         * m4/c-strtod.m4 (gl_C99_STRTOLD):
73397         * m4/canon-host.m4 (gl_CANON_HOST):
73398         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME):
73399         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG):
73400         * m4/chdir-safer.m4 (gl_CHDIR_SAFER):
73401         * m4/cloexec.m4 (gl_CLOEXEC):
73402         * m4/close-stream.m4 (gl_CLOSE_STREAM):
73403         * m4/closeout.m4 (gl_CLOSEOUT):
73404         * m4/dirfd.m4 (gl_FUNC_DIRFD):
73405         * m4/dirname.m4 (gl_DIRNAME):
73406         * m4/exclude.m4 (gl_EXCLUDE):
73407         * m4/exitfail.m4 (gl_EXITFAIL):
73408         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER):
73409         * m4/file-type.m4 (gl_FILE_TYPE):
73410         * m4/filemode.m4 (gl_FILEMODE):
73411         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT):
73412         * m4/fpending.m4 (gl_FUNC_FPENDING):
73413         * m4/fprintftime.m4 (gl_FPRINTFTIME):
73414         * m4/fts.m4 (gl_FUNC_FTS):
73415         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL):
73416         * m4/getdate.m4 (gl_GETDATE):
73417         * m4/gethrxtime.m4 (gl_GETHRXTIME):
73418         * m4/getpagesize.m4 (gl_GETPAGESIZE):
73419         * m4/getpass.m4 (gl_FUNC_GETPASS):
73420         * m4/gettime.m4 (gl_GETTIME):
73421         * m4/getugroups.m4 (gl_GETUGROUPS):
73422         * m4/glob.m4 (gl_GLOB_SUBSTITUTE):
73423         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER):
73424         * m4/hard-locale.m4 (gl_HARD_LOCALE):
73425         * m4/hash.m4 (gl_HASH):
73426         * m4/idcache.m4 (gl_IDCACHE):
73427         * m4/lchmod.m4 (gl_FUNC_LCHMOD):
73428         * m4/lchown.m4 (gl_FUNC_LCHOWN):
73429         * m4/long-options.m4 (gl_LONG_OPTIONS):
73430         * m4/lstat.m4 (gl_FUNC_LSTAT):
73431         * m4/md5.m4 (gl_MD5):
73432         * m4/memcasecmp.m4 (gl_MEMCASECMP):
73433         * m4/memcoll.m4 (gl_MEMCOLL):
73434         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY):
73435         * m4/memrchr.m4 (gl_FUNC_MEMRCHR):
73436         * m4/memxor.m4 (gl_MEMXOR):
73437         * m4/mkancesdirs.m4 (gl_MKANCESDIRS):
73438         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS):
73439         * m4/modechange.m4 (gl_MODECHANGE):
73440         * m4/mountlist.m4 (gl_MOUNTLIST):
73441         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
73442         * m4/openat.m4 (gl_FUNC_OPENAT):
73443         * m4/pathmax.m4 (gl_PATHMAX):
73444         * m4/physmem.m4 (gl_PHYSMEM):
73445         * m4/posixtm.m4 (gl_POSIXTM):
73446         * m4/posixver.m4 (gl_POSIXVER):
73447         * m4/quote.m4 (gl_QUOTE):
73448         * m4/quotearg.m4 (gl_QUOTEARG):
73449         * m4/readtokens.m4 (gl_READTOKENS):
73450         * m4/readutmp.m4 (gl_READUTMP):
73451         * m4/regex.m4 (gl_REGEX):
73452         * m4/safe-read.m4 (gl_SAFE_READ):
73453         * m4/safe-write.m4 (gl_SAFE_WRITE):
73454         * m4/same.m4 (gl_SAME):
73455         * m4/save-cwd.m4 (gl_SAVE_CWD):
73456         * m4/savedir.m4 (gl_SAVEDIR):
73457         * m4/settime.m4 (gl_SETTIME):
73458         * m4/sha1.m4 (gl_SHA1):
73459         * m4/sig2str.m4 (gl_FUNC_SIG2STR):
73460         * m4/stat-macros.m4 (gl_STAT_MACROS):
73461         * m4/stat-time.m4 (gl_STAT_TIME):
73462         * m4/stdio-safer.m4 (gl_FOPEN_SAFER):
73463         * m4/stdlib-safer.m4 (gl_STDLIB_SAFER):
73464         * m4/strdup.m4 (gl_FUNC_STRDUP):
73465         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME):
73466         * m4/strndup.m4 (gl_FUNC_STRNDUP):
73467         * m4/strnlen.m4 (gl_FUNC_STRNLEN):
73468         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP):
73469         * m4/time_r.m4 (gl_TIME_R):
73470         * m4/timespec.m4 (gl_TIMESPEC):
73471         * m4/unistd-safer.m4 (gl_UNISTD_SAFER):
73472         * m4/unlinkdir.m4 (gl_UNLINKDIR):
73473         * m4/unlocked-io.m4 (gl_FUNC_GLIBC_UNLOCKED_IO):
73474         * m4/userspec.m4 (gl_USERSPEC):
73475         * m4/utimecmp.m4 (gl_UTIMECMP):
73476         * m4/utimens.m4 (gl_UTIMENS):
73477         * m4/xalloc.m4 (gl_XALLOC):
73478         * m4/xgetcwd.m4 (gl_XGETCWD):
73479         * m4/xnanosleep.m4 (gl_XNANOSLEEP):
73480         * m4/xreadlink.m4 (gl_XREADLINK):
73481         * m4/xstrtod.m4 (gl_XSTRTOD):
73482         * m4/yesno.m4 (gl_YESNO):
73483         Don't use AC_LIBSOURCES; instead, rely on the files in ../modules/
73484         to get the necessary .h files and whatnot.
73485
73486 2006-08-21  Mark D. Baushke  <mdb@gnu.org>
73487             Bruno Haible  <bruno@clisp.org>
73488
73489         * gnulib-tool (func_verify_module): Work around Sun's non-POSIX 1003.2
73490         /bin/sh understanding of '!' conditional negation.
73491
73492 2006-08-21  Jim Meyering  <jim@meyering.net>
73493
73494         * modules/openat (Depends-on): Really alphabetize.
73495
73496         * modules/acl (Depends-on): Add error and quote.
73497
73498         * check-module (find_included_lib_files): Add at-func.c to the
73499         ok-to-include-more-than-once white list.
73500
73501         * modules/openat (Depends-on): Add lstat.  Alphabetize.
73502
73503 2006-08-21  Bruno Haible  <bruno@clisp.org>
73504
73505         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
73506         Emit a pkgdata_DATA variable only if some snippets add contents to it.
73507         Reported by Martin Lambers <marlam@marlam.de>.
73508
73509 2006-08-21  Bruno Haible  <bruno@clisp.org>
73510
73511         * gnulib-tool (func_emit_lib_Makefile_am): If the snippets already
73512         specify an installation location, don't emit a noinst_LIBRARIES or
73513         noinst_LTLIBRARIES assignment.
73514
73515 2006-08-21  Bruno Haible  <bruno@clisp.org>
73516
73517         BeOS portability.
73518         * modules/mbchar (Include): Don't test HAVE_WCTYPE_H any more, since
73519         BeOS has mbrtowc() but no <wctype.h>.
73520
73521 2006-08-21  Bruno Haible  <bruno@clisp.org>
73522
73523         BeOS portability.
73524         * m4/mbchar.m4 (gl_MBCHAR): Compile mbchar.c also if <wctype.h> doesn't
73525         exist.
73526
73527 2006-08-21  Bruno Haible  <bruno@clisp.org>
73528
73529         BeOS portability.
73530         * lib/mbchar.h: Include <wctype.h> only if it exists.
73531
73532 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
73533
73534         Remove files that are no longer needed by their respective modules.
73535         * m4/obstack.m4: Remove.
73536         * m4/strerror_r.m4: Remove.
73537         * m4/uint32_t.m4: Remove.
73538         * m4/uintptr_t.m4: Remove.
73539         * m4/ullong_max.m4: Remove.
73540         * m4/xstrtoimax.m4: Remove.
73541         * m4/xstrtoumax.m4: Remove.
73542
73543         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Do not require
73544         gl_AC_TYPE_UINTMAX_T, gl_STRUCT_DEV_INO, or gl_SAME_INODE, since gnulib
73545         dependencies now capture this.
73546
73547         * m4/cycle-check.m4 (gl_CYCLE_CHECK):
73548         Do not use AC_LIBSOURCES, since gnulib modules now do this.
73549         * m4/fsusage.m4 (gl_FSUSAGE): Likewise.
73550         * m4/human.m4 (gl_HUMAN): Likewise.
73551         * m4/inttostr.m4 (gl_INTTOSTR): Likewise.
73552         * m4/xstrtol.m4 (gl_XSTRTOL): Likewise.
73553
73554         * m4/filemode.m4 (gl_FILEMODE): Require AC_STRUCT_ST_DM_MODE.
73555
73556         * m4/filemode.m4 (gl_PREREQ_FSUSAGE_EXTRA): Do not require
73557         gl_AC_TYPE_INTMAX_T or gl_AC_TYPE_UINTMAX_T, since we now require
73558         stdint.
73559         * m4/human.m4 (gl_HUMAN): Likewise.
73560         * m4/inttostr.m4 (gl_PREREQ_INTTOSTR): Likewise.
73561         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Likewise.
73562         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Likewise.
73563         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Likewise.
73564         * m4/xstrtol (gl_XSTRTOL): Likewise.
73565
73566         * m4/gethrxtime.m4 (gl_XTIME): gl_AC_TYPE_LONG_LONG ->
73567         AC_TYPE_LONG_LONG_INT.
73568         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Likewise.
73569         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Likewise.
73570         * m4/strtoull.m4 (gl_FUNC_STRTOULL): Likewise, for unsigned long.
73571         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Likewise.
73572
73573         * m4/human.m4 (gl_HUMAN): Do not require AM_STDBOOL_H since we depend
73574         on stdbool.
73575
73576         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL_H, gl_PREREQ_XSTRTOL): Remove.
73577         (gl_PREREQ_XSTRTOUL): Remove.
73578
73579         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Check for hasmntopt.
73580
73581         * m4/posixver.m4: Fix comment since head -1 now works even in POSIX
73582         mode.
73583
73584 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
73585
73586         Add and change modules to make it easier for coreutils to use
73587         gnulib-tool.
73588         * modules/backupfile (Files): Remove m4/d-ino.m4.
73589         (Depends-on): Add d-ino.
73590         * modules/cycle-check (Depends-on): Add stdint.
73591         (lib_SOURCES): Add cycle-check.h.
73592         * modules/d-ino: New module.
73593         * modules/d-type: New module.
73594         * modules/error (Files): Remove m4/strerror_r.m4.
73595         * modules/filemode (Files): Add m4/st_dm_mode.m4.
73596         * modules/fsuage (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
73597         m4/inttypes_h.m4, m4/uintmax_t.m4.
73598         (Depends-on): Add stdint.
73599         (lib_SOURCES): Add fsusage.h.
73600         * modules/getcwd (Files): Remove d-ino.m4.
73601         (Depends-on): Add d-ino.
73602         * modules/getndelim2 (Depends-on): Add stdint.
73603         * modules/glob (Files): Remove m4/d-type.m4.
73604         (Depends-on): Add d-type.
73605         * modules/host-os: New module.
73606         * modules/human (Files):  Remove m4/ulonglong.m4, m4/stdint_h.m4,
73607         m4/inttypes_h.m4, m4/uintmax_t.m4.
73608         * Depends-on: Add stdint.
73609         (lib_SOURCES): Add human.h.
73610         * modules/inttostr (Files): Remove m4/intmax_t.m4,
73611         m4/inttostr.m4, m4/inttypes_h.m4, m4/longlong.m4, m4/stdint_h.m4,
73612         m4/uintmax_t.m4, m4/ulonglong.m4.
73613         (Depends-on): Add stdint.
73614         (EXTRA_DIST): Add inttostr.h.
73615         * modules/lchmod: New module.
73616         * modules/link-follow: New module.
73617         * modules/mkdir-p (Files): Remove lib/lchmod.h, m4/lchmod.m4.
73618         (Depends-on): Add lchmod.
73619         * modules/mkstemp (Files): Remove m4/ulonglong.m4,
73620         m4/stdint_h.m4, m4/inttypes_h.m4, m4/uintmax_t.m4.
73621         (Depends-on): Add stdint.
73622         * modules/obstack (Files): Remove m4/inttypes_h.m4, m4/obstack.m4,
73623         m4/stdint_h.m4, m4/uintmax_t.m4, m4/ulonglong.m4.
73624         (Depends-on): Add stdint.
73625         (configure.ac): Change gl_OBSTACK to AC_FUNC_OBSTACK.
73626         * modules/perl: New module.
73627         * modules/regex (Depends-on): Add stdint.
73628         * modules/rmdir-errno: New module.
73629         * modules/strtoimax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4,
73630         m4/intmax_t.m4.
73631         (Depends-on): Add stdint.
73632         * modules/strtoumax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4,
73633         m4/uintmax_t.m4.
73634         (Depends-on): Add stdint.
73635         * modules/unlink-busy: New module.
73636         * modules/utimecmp (Depends-on): Add stdint.
73637         * modules/uptime: New module.
73638         * modules/winsz-ioctl: New module.
73639         * modules/winsz-termios: New module.
73640         * modules/xnanosleep (Depends-on): Add nanosleep.
73641         * modules/ullong_max: Remove.
73642         * modules/xstrtoimax (Files): Remove m4/xstrtoimax.m4.
73643         (configure.ac): Remove gl_XSTRTOIMAX; no action needed now.
73644         * modules/xstrtol (Files): Remove m4/ulonglong.m4, m4/longlong.m4,
73645         m4/stdint_h.m4, m4/inttypes_h.m4, m4/uintmax_t.m4, m4/intmax_t.m4.
73646         (Depends-on): Add inttypes.
73647         (lib_SOURCES): Add xstrtol.h.
73648         * modules/xstrtoumax (Files): Remove m4/xstrtoumax.m4.
73649         (configure.ac): Remove gl_XSTRTOUMAX; no action needed now.
73650         * MODULES.html.sh: Move 'assert' into the assert section.
73651         Move 'dummy' into the linking section.
73652         Remove ullong_max.
73653         Add section for compatibility checks for POSIX:2001 functions,
73654         and put d-ino, d-type, link-follow, rmdir-errno, unlink-busy,
73655         winsz-ioctl, and winsz-termios into it.
73656         Add lchmod.
73657         Add top-level Misc section and put host-os, perl, and uptime
73658         into it.
73659
73660 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
73661
73662         * lib/cycle-check.h: Include <stdint.h> unconditionally, since we
73663         now assume the stdint module.  Do not include inttypes.h.
73664         * lib/fsusage.h: Likewise.
73665         * lib/getndelim2.c: Likewise.
73666         * lib/human.h: Likewise.
73667         * lib/inttostr.h: Likewise.
73668         * lib/obstack.c: Likewise.
73669         * lib/regex_internal.h: Likewise.
73670         * lib/tempname.c: Likewise.
73671         * lib/utimecmp.c: Likewise.
73672         * lib/xstrtol.h: Likewise.
73673
73674         * lib/stat_.h: Fix typo: HAVE_FUNC_LSTAT -> HAVE_LSTAT.
73675
73676         * lib/strtoimax.c: Adjust to macro name changes in Autoconf,
73677         e.g., HAVE_LONG_LONG -> HAVE_LONG_LONG_INT.
73678         * lib/xtime.h: Likewise.
73679
73680 2006-08-19  Paul Eggert  <eggert@cs.ucla.edu>
73681
73682         * modules/openat (Files): Add lib/fchmodat.c.
73683         Fixes problem reported by Jay Youngman.
73684
73685 2006-08-19  Paul Eggert  <eggert@cs.ucla.edu>
73686
73687         * lib/fchmodat.c: New file, from coreutils.  This was inadvertently
73688         omitted in the 2006-08-17 update.  Problem reported by Jay Youngman.
73689
73690 2006-08-18  Paul Eggert  <eggert@cs.ucla.edu>
73691             Bruno Haible  <bruno@clisp.org>
73692
73693         * m4/bison-i18n.m4 (BISON_I18N): Also handle the case where yacc exists
73694         and is a script that invokes bison. Tighten the code. Add comments.
73695
73696 2006-08-18  Jim Meyering  <jim@meyering.net>
73697
73698         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Also check for
73699         CLOCK_REALTIME, since gethrxtime may revert to using clock_gettime via
73700         gettime.c.  Gabor Z. Papp reported that gethrxtime-using programs
73701         failed to link due to unresolved clock_gettime on a linux-2.4.x system.
73702
73703 2006-08-18  Bruno Haible  <bruno@clisp.org>
73704
73705         * modules/bison-i18n: New file.
73706         * MODULES.html.sh (Internationalization functions): Add it.
73707
73708 2006-08-18  Bruno Haible  <bruno@clisp.org>
73709
73710         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Also check for
73711         sys/statvfs.h. When getmntinfo was found, check its declaration and
73712         set either MOUNTED_GETMNTINFO or MOUNTED_GETMNTINFO2 depending on it.
73713
73714 2006-08-18  Bruno Haible  <bruno@clisp.org>
73715
73716         * m4/bison-i18n.m4: New file, from bison.
73717
73718 2006-08-18  Bruno Haible  <bruno@clisp.org>
73719
73720         * lib/mountlist.c [MOUNTED_GETMNTINFO2]: Include sys/statvfs.h.
73721         (ME_DUMMY): Treat "kernfs" as a dummy.
73722         (read_file_system_list) [MOUNTED_GETMNTINFO2]: Implement.
73723
73724 2006-08-17  Paul Eggert  <eggert@cs.ucla.edu>
73725
73726         Update from coreutils.
73727
73728         2006-08-15  Jim Meyering  <jim@meyering.net>
73729
73730         * m4/openat.m4 (gl_FUNC_OPENAT): Add at-func.c via AC_LIBSOURCES.
73731
73732         2006-01-17  Jim Meyering  <jim@meyering.net>
73733
73734         * m4/fts.m4 (gl_FUNC_FTS_CORE): Depend on gl_FUNC_OPENAT.
73735
73736         2006-01-11  Jim Meyering  <jim@meyering.net>
73737
73738         * m4/openat.m4 (gl_FUNC_OPENAT): Require and compile fchmodat.c.
73739         Check for the lchmod function.
73740
73741 2006-08-17  Paul Eggert  <eggert@cs.ucla.edu>
73742
73743         Update from coreutils.
73744
73745         * lib/__fpending.h: Add copyright notice.
73746         * lib/fprintftime.h: Likewise.
73747         * lib/savedir.c: Use (C) in copyright notice.
73748         * lib/savedir.h: Likewise.
73749
73750         2006-08-15  Jim Meyering  <jim@meyering.net>
73751
73752         * lib/at-func.c: New file, with the logic of all emulated at-functions.
73753         * lib/openat-priv.h: Include <errno.h> and define ENOSYS,
73754         in support of the EXPECTED_ERRNO macro.
73755         * lib/openat.c (fstatat, unlinkat, fchownat): Remove function
73756         definitions.  Instead, define the appropriate symbols and include
73757         "at-func.c".
73758         * lib/mkdirat.c (mkdirat): Likewise.
73759         * lib/fchmodat.c (fchmodat): Likewise.
73760         (ENOSYS): Remove definition.
73761         * lib/openat.c: Don't include <errno.h>, now that "openat-priv.h" does
73762         it.  Don't include "unistd--.h" -- it wasn't ever used.
73763
73764         2006-01-17  Jim Meyering  <jim@meyering.net>
73765
73766         Rewrite fts.c not to change the current working directory,
73767         by using openat, fstatat, fdopendir, etc..
73768
73769         * lib/fts.c [! _LIBC]: Include "openat.h" and "unistd--.h".
73770         (HAVE_OPENAT_SUPPORT): Define.
73771         [_LIBC] (fchdir): Don't undef or define; no longer used.
73772         (FCHDIR): Define in terms of cwd_advance_fd rather than fchdir.
73773         Now, this `function' always succeeds, and consumes its file descriptor
73774         parameter -- so callers must not close such FDs.  Update callers.
73775         (diropen_fd, opendirat, cwd_advance_fd): New functions.
73776         (diropen): Add parameter, SP.  Adjust all callers.
73777         Implement using diropen_fd, rather than open.
73778         (fts_open): Initialize new member, fts_cwd_fd.
73779         Remove fts_rft-setting code.
73780         (fts_close): Close fts_cwd_fd, if necessary.
73781         (__opendir2): Define in terms of opendir or opendirat,
73782         depending on whether the FST_NOCHDIR flag is set.
73783         (fts_build): Since fts_safe_changedir consumes its FD, and since
73784         this code must do `closedir(dirp)', dup the dirfd(dirp) argument,
73785         and close the dup'd file descriptor upon failure.
73786         (fts_stat): Use fstatat(...AT_SYMLINK_NOFOLLOW) in place of lstat.
73787         (fts_safe_changedir): Tweak semantics to reflect that this function
73788         now calls cwd_advance_fd and hence consumes its FD argument.
73789         * lib/fts_.h [struct FTS] (fts_cwd_fd): New member.
73790         [struct FTS] (fts_rft): Remove now-unused member.
73791         [struct FTS] (fts_cycle.state): Improve comment.
73792
73793         * lib/openat.c (openat_needs_fchdir): New function.
73794         * lib/openat.h (openat_needs_fchdir): Declare it.
73795
73796 2006-08-16  Paul Eggert  <eggert@cs.ucla.edu>
73797
73798         * lib/memcoll.c (memcoll): Set errno = 0 in the shortcut case, too.
73799         Problem and fix reported by Pádraig Brady in
73800         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00099.html>.
73801
73802 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
73803
73804         * modules/cycle-check (configure.ac): Add gl_CYCLE_CHECK.
73805
73806 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
73807
73808         * lib/memcoll.c (memcoll): Optimize for the common case where the
73809         arguments are bytewise equal.
73810
73811 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
73812
73813         * doc/regexprops-generic.texi: Add a copyright notice.
73814
73815 2006-08-15  Bruno Haible  <bruno@clisp.org>
73816
73817         * modules/tmpdir (License): Change to LGPL.
73818
73819 2006-08-15  Bruno Haible  <bruno@clisp.org>
73820
73821         * gnulib-tool (func_all_modules, func_verify_module): COPYING is not a
73822         module.
73823
73824 2006-08-14  Simon Josefsson  <jas@extundo.com>
73825
73826         * config/srclist.txt: Add gnupload.
73827
73828 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
73829
73830         Change copyright notice from LGPL 2 to GPL 2, since that's the
73831         standard form used in the gnulib repository.
73832         * tests/test-lock.c: Likewise.
73833         * tests/test-stdint.c: Likewise.
73834         * tests/test-tls.c: Likewise.
73835
73836         * users.txt: Add bison, diffutils, libprelude, prelude-lml,
73837         prelude-manager.  User shorter URLs for GNU projects, without '?'.
73838         Add copyright notice.
73839
73840         * check-module: Add copyright notice.  Output a copyright
73841         notice if "--version" is specified.
73842         * modules/COPYING: New file.
73843         * tests/test-getaddrinfo.c: Add copyright notice.
73844         * tests/test-verify.c: Likewise.
73845
73846 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
73847
73848         Change copyright notice from LGPL 2 to GPL 2, since that's the
73849         standard form used in the gnulib repository.
73850         * lib/lock.c: LGPL -> GPL.
73851         * lib/lock.h: Likewise.
73852         * lib/strnlen1.c: Likewise.
73853         * lib/strnlen1.h: Likewise.
73854         * lib/tls.c: Likewise.
73855         * lib/tls.h: Likewise.
73856         * lib/tmpdir.c: Likewise.
73857
73858         * lib/TODO: Remove; this belongs only in coreutils.
73859
73860 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
73861
73862         Add copyright notices to long-enough files that lack them, since
73863         otherwise the files aren't clearly free.  Use the same notice that
73864         getdate.texi already uses.
73865         * doc/alloca-opt.texi: Add copyright notice.
73866         * doc/alloca.texi: Likewise.
73867         * doc/ctime.texi: Likewise.
73868         * doc/functions.texi: Likewise.
73869         * doc/gcd.texi: Likewise.
73870         * doc/gnulib-tool.texi: Likewise.
73871         * doc/inet_ntoa.texi: Likewise.
73872         * doc/visibility.texi: Likewise.
73873
73874         * doc/getdate.texi: Update FDL version from 1.1 to 1.2.
73875         * doc/quote.texi: Add copyright notice.
73876
73877         * doc/solaris-versions: Add SunOS 5.10, SunOS 1.x, SunOS 4.0, SunOS
73878         4.0.x, SunOS 4.1.1.1, SunOS 4.1.1_U1, SunOS 4.1.3B.  SunOS 4.1.3
73879         was Solaris 1.1A.  Remove space before B in Solaris 1.1.1B.
73880         Mention SunOS 5.11.  Mention that everything before SunOS 5.7
73881         is now obsolete, and give a pointer to the Sun list.
73882         Add copyright notice.
73883
73884 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
73885
73886         * config/srclistvars.sh: Add copyright notice.
73887
73888 2006-08-14  Eric Blake  <ebb9@byu.net>
73889
73890         Import the following change from libc:
73891
73892         2006-08-12  Ulrich Drepper  <drepper@redhat.com>
73893
73894         Upstream bug 2997.
73895         * lib/misc/error.c: Add space between program name and message if file
73896         name is missing.
73897
73898 2006-08-12  Karl Berry  <karl@gnu.org>
73899
73900         * config/srclist.txt (ssize_t.m4, sig_atomic_t.m4, signalblocking.m4):
73901         remove, these originate in gnulib now.
73902
73903 2006-08-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
73904
73905         * doc/Makefile (standards.info standards.html standards.dvi):
73906         Also depend on make-stds.texi.
73907
73908 2006-08-11  Paul Eggert  <eggert@cs.ucla.edu>
73909
73910         * lib/pipe-safer.c (pipe_safer): Fix misspelling: HAVE_FUNC_PIPE ->
73911         HAVE_PIPE.  Fix a file descriptor leak when fd_safer fails.
73912
73913         * lib/regex_internal.c (re_string_skip_chars): Don't assume WEOF fits
73914         in wchar_t.  Problem reported by Eric Blake.
73915
73916         * lib/snprintf.c (snprintf): memcpy LEN bytes, not SIZE - 1, when
73917         LEN is smaller than SIZE.  Suggested by Bruno Haible.
73918         Also, help the compiler to keep LEN in a register.
73919
73920 2006-08-11  Eric Blake  <ebb9@byu.net>
73921
73922         * users.txt: Sort.  Add tar.
73923
73924 2006-08-11  Bruno Haible  <bruno@clisp.org>
73925
73926         * users.txt: New file.
73927
73928 2006-08-11  Bruno Haible  <bruno@clisp.org>
73929
73930         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Include <stdio.h> and <time.h>
73931         before <wchar.h>. Needed for OSF/1 and BSD/OS.
73932
73933 2006-08-10  Paul Eggert  <eggert@cs.ucla.edu>
73934
73935         * modules/snprintf (Depends-on): Remove minmax.
73936         (Maintainer): Add self and Bruno.
73937
73938 2006-08-10  Paul Eggert  <eggert@cs.ucla.edu>
73939
73940         * lib/.cppi-disable: Add snprintf.h, socket_.h.
73941         * lib/snprintf.c: Include <errno.h> and <limits.h>.
73942         (EOVERFLOW): Define if the system does not.
73943         Do not include "minmax.h"; it wasn't used.
73944         (snprintf): Don't assume size_t promotes to an unsigned type.
73945         Fix bug when generated string was too long for the buffer: the
73946         buffer's contents are supposed to be the initial prefix of the
73947         output.  Don't assume vasnprintf returns EOVERFLOW if the size
73948         exceeds INT_MAX; do the check ourselves.
73949
73950         Import the following changes from libc:
73951
73952         2006-06-02  Jakub Jelinek  <jakub@redhat.com>
73953
73954         * lib/posix/regex_internal.c (re_string_skip_chars): If no character
73955         has been converted at all, set *last_wc to WEOF.  If mbrtowc failed,
73956         set wc to the byte which couldn't be converted.
73957         (re_string_reconstruct): Don't clear valid_raw_len before calling
73958         re_string_skip_chars.  If wc is WEOF after re_string_skip_chars, set
73959         tip_context using re_string_context_at.
73960
73961         2006-05-02  Ulrich Drepper  <drepper@redhat.com>
73962
73963         * lib/posix/regex.h: g++ still cannot handled [restrict].
73964
73965         2006-04-21  Ulrich Drepper  <drepper@redhat.com>
73966
73967         * lib/posix/regex.h: Remove special handling for VMS.
73968
73969 2006-08-10  Jim Meyering  <jim@meyering.net>
73970
73971         * modules/same-inode: New module.
73972         * modules/dev-ino: New module.
73973         * modules/cycle-check: Depend on these modules, rather than simply
73974         including their .h files.
73975         (Makefile.am): Don't list cycle-check.[ch] here, now that they're
73976         required via m4/cycle-check.m4.
73977         * modules/same: Depend on new same-inode module, rather than
73978         including same-inode.h.
73979         * modules/chdir-safer: New file.
73980
73981         * modules/chown (Depends-on): Add stat-macros.
73982
73983 2006-08-10  Jim Meyering  <jim@meyering.net>
73984
73985         * m4/cycle-check.m4: New file.
73986         Require gl_STRUCT_DEV_INO and gl_SAME_INODE.
73987         * m4/dev-ino.m4, m4/same-inode.m4: New files.
73988
73989 2006-08-10  Eric Blake  <ebb9@byu.net>
73990
73991         * modules/verror (Depends-on): Remove bogus gl_VERROR that snuck
73992         in from original proposal.
73993
73994 2006-08-10  Eric Blake  <ebb9@byu.net>
73995         and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
73996
73997         * gnulib-tool (func_import): Detect unexpanded macros in gnulib
73998         namespace.
73999
74000 2006-08-10  Bruno Haible  <bruno@clisp.org>
74001
74002         * gnulib-tool (func_create_testdir): Detect unexpanded macros here
74003         as well.
74004
74005 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
74006
74007         Sync from coreutils.
74008
74009         2006-07-19  Mike Frysinger  <vapier@gentoo.org>
74010
74011         * lib/mountlist.c [ME_REMOTE]: Filter out cifs.
74012         Reported by Toralf Förster in <http://bugs.gentoo.org/141012>.
74013
74014 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
74015
74016         * modules/restrict: Remove; no longer needed now that we assume
74017         Autoconf 2.59 or later.
74018         * MODULES.html.sh: Remove 'restrict'.
74019         * modules/argp (Depends-on): Remove 'restrict'.
74020         * modules/base64 (Depends-on): Likewise.
74021         * modules/gc (Depends-on): Likewise.
74022         * modules/getaddrinfo (Depends-on): Likewise.
74023         * modules/glob (Depends-on): Likewise.
74024         * modules/inet_ntop (Depends-on): Likewise.
74025         * modules/inet_pton (Depends-on): Likewise.
74026         * modules/memxor (Depends-on): Likewise.
74027         * modules/regex (Depends-on): Likewise.
74028         * modules/strtok_r (Depends-on): Likewise.
74029         * modules/time_r (Depends-on): Likewise.
74030
74031 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
74032
74033         * m4/argp.m4 (gl_ARGP): Require AC_C_RESTRICT.
74034         * m4/gc.m4 (gl_PREREQ_GC): Likewise.
74035         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
74036         * m4/inet_ntop.m4 (gl_PREREQ_INET_NTOP): Likewise.
74037         * m4/inet_pton.m4 (gl_PREREQ_INET_PTON): Likewise.
74038         * m4/memxor.m4 (gl_MEMXOR): Likewise.
74039         * m4/restrict.m4: Remove; no longer needed.  All remaining uses of
74040         gl_C_RESTRICT replaced by AC_C_RESTRICT.
74041
74042         Merge from coreutils.
74043         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_C_RESTRICT, not
74044         gl_C_RESTRICT, now that we assume Autoconf 2.59 or later.
74045         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
74046         * m4/time_r.m4 (gl_TIME_R): Likewise.
74047
74048 2006-08-09  Karl Berry  <karl@gnu.org>
74049
74050         * config/srclist.txt: no more gettext-tools, per Bruno.
74051
74052 2006-08-08  Eric Blake  <ebb9@byu.net>
74053
74054         * modules/verror: New module.
74055         * MODULES.html.sh: Document it.
74056
74057 2006-08-08  Eric Blake  <ebb9@byu.net>
74058
74059         * lib/verror.h, lib/verror.c: New files.
74060
74061 2006-08-08  Eric Blake  <ebb9@byu.net>
74062
74063         * lib/verror.c (verror_at_line): Work around glibc bug 2997, so that
74064         verror_at_line output complies with GNU Coding Standards even when
74065         file is NULL.
74066
74067 2006-08-07  Bruno Haible  <bruno@clisp.org>
74068
74069         * lib/allocsa.h (sa_alignof) [_AIX]: Also consider 'long long' in newer
74070         versions of AIX.
74071         Reported by Ralf Wildenhues.
74072
74073 2006-08-07  Bruno Haible  <bruno@clisp.org>
74074
74075         * gnulib-tool (func_create_testdir): Wrap the set of autoconf snippets
74076         in an AC_DEFUN. Needed so that the autoconf snippets can use
74077         AC_REQUIRE.
74078
74079 2006-08-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
74080
74081         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
74082         Initialize pkgdata_DATA.
74083         * modules/javaversion (Makefile.am): Add to pkgdata_DATA, rather than
74084         overriding it.
74085
74086 2006-08-06  Eric Blake  <ebb9@byu.net>
74087
74088         * lib/error.h: Fold in some upstream changes from glibc.
74089         * lib/error.c: Likewise.
74090
74091 2006-08-04  Bruno Haible  <bruno@clisp.org>
74092
74093         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
74094         Make the mostlyclean-local rule depend on mostlyclean-generic.
74095         Reported by Jim Meyering. Solution suggested by Ralf Wildenhues.
74096
74097 2006-07-31  Bruno Haible  <bruno@clisp.org>
74098
74099         * m4/localcharset.m4 (gl_LOCALCHARSET): Remove tests for <stddef.h>,
74100         <stdlib.h>, <string.h>.
74101
74102 2006-07-30  Bruno Haible  <bruno@clisp.org>
74103
74104         * modules/readlink (License): Change to LGPL.
74105
74106 2006-07-30  Bruno Haible  <bruno@clisp.org>
74107
74108         * modules/javaversion (Makefile.am): Distribute javaversion.java and
74109         javaversion.class. Also install javaversion.class in $(pkgdatadir) and
74110         set PKGDATADIR to point to it.
74111
74112 2006-07-30  Bruno Haible  <bruno@clisp.org>
74113
74114         * modules/csharpexec (configure.ac): Comment out macro invocation.
74115         * modules/javaexec (configure.ac): Likewise.
74116         * modules/javacomp-script (configure.ac): Likewise.
74117
74118         * modules/csharpcomp-script (configure.ac): Use AC_REQUIRE.
74119
74120 2006-07-30  Bruno Haible  <bruno@clisp.org>
74121
74122         * modules/clean-temp (Depends-on): Add linkedhash-list, remove
74123         linked-list.
74124
74125 2006-07-30  Bruno Haible  <bruno@clisp.org>
74126
74127         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Assume <string.h> exists.
74128
74129 2006-07-30  Bruno Haible  <bruno@clisp.org>
74130
74131         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
74132         Initialize MOSTLYCLEANFILES to core and *.stackdump, so that core dumps
74133         get removed.
74134
74135 2006-07-29  Bruno Haible  <bruno@clisp.org>
74136
74137         Make it possible for gnulib-tool to work with locally modified or
74138         augmented gnulib repositories.
74139         * gnulib-tool (func_usage): Document --local-dir option.
74140         (local_gnulib_dir): New variable.
74141         Handle --local-dir option.
74142         (func_lookup_file): New function.
74143         (func_all_modules, func_verify_module): Look also in $local_gnulib_dir.
74144         (func_get_description, func_get_filelist, func_get_description,
74145         func_get_filelist, func_get_dependencies, func_get_autoconf_snippet,
74146         func_get_automake_snippet, func_get_include_directive,
74147         func_get_license, func_get_maintainer): Use func_lookup_file.
74148         (func_import, func_create_testdir): Use func_lookup_file.
74149
74150 2006-07-29  Bruno Haible  <bruno@clisp.org>
74151
74152         * modules/setenv (Depends-on): Add unistd.
74153
74154 2006-07-29  Bruno Haible  <bruno@clisp.org>
74155
74156         * lib/setenv.c: Undo unintended modification done on 2006-02-27.
74157
74158 2006-07-29  Bruno Haible  <bruno@clisp.org>
74159
74160         * lib/localcharset.c: Assume <stddef.h>, <stdlib.h>, <string.h> exist.
74161
74162 2006-07-29  Bruno Haible  <bruno@clisp.org>
74163
74164         * gnulib-tool (import, update): If there is no Makefile.am, look at
74165         aclocal.m4, instead of bailing out.
74166
74167 2006-07-29  Bruno Haible  <bruno@clisp.org>
74168
74169         * gnulib-tool (func_usage): Revert most of the 2006-07-15 change.
74170         Categorize the options by when they are useful.
74171
74172 2006-07-29  Bruno Haible  <bruno@clisp.org>
74173
74174         * gnulib-tool (func_usage): Document option --no-libtool.
74175         Handle option --no-libtool.
74176         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Update
74177         for changed semantics of $libtool variable.
74178         (func_import): Likewise. If libtool is not used, show this through
74179         an option --no-libtool.
74180         (func_create_testdir): Update.
74181
74182 2006-07-29  Bruno Haible  <bruno@clisp.org>
74183
74184         * gnulib-tool (func_import): Extend error message about missing
74185         --doc-base.
74186
74187 2006-07-29  Bruno Haible  <bruno@clisp.org>
74188
74189         * gnulib-tool (func_import): Don't create the $docbase directory if
74190         there is no file to store there.
74191
74192 2006-07-29  Bruno Haible  <bruno@clisp.org>
74193
74194         * gnulib-tool (autoconf_minversion): If a --dir option is given and
74195         relevant, look for configure.ac there, not in the current directory.
74196         Also use a simple search for AC_PREREQ, not "autoconf --trace".
74197
74198 2006-07-29  Bruno Haible  <bruno@clisp.org>
74199
74200         * gnulib-tool (SORT): New variable.
74201         (func_usage): Undocument --assume-autoconf option.
74202         Remove --assume-autoconf option handling.
74203         (autoconf_minversion): Determine from the contents of configure.ac.
74204         (func_import): Remove autoconf_minversion handling.
74205         Suggested by Eric Blake.
74206
74207 2006-07-29  Bruno Haible  <bruno@clisp.org>
74208
74209         * doc/gnulib-tool.texi (gl_LIBTOOL): Mention --no-libtool option.
74210
74211 2006-07-29  Bruno Haible  <bruno@clisp.org>
74212
74213         * config/srclist.txt (*setenv.[ch]): Remove rules.
74214
74215 2006-07-28  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
74216
74217         * m4/inet_pton.m4, inet_ntop.m4: Check for netinet/in.h too.
74218
74219 2006-07-28  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
74220
74221         * lib/inet_ntop.h, inet_pton.h: Need to include netinet/in.h before
74222         arpa/inet.h.
74223
74224 2006-07-28  Simon Josefsson  <jas@extundo.com>
74225
74226         * modules/inet_ntop (Depends-on): Depend on arpa_inet.
74227         * modules/inet_pton (Depends-on): Likewise.
74228
74229 2006-07-28  Simon Josefsson  <jas@extundo.com>
74230
74231         * m4/netinet_in_h.m4: New file.
74232
74233 2006-07-28  Simon Josefsson  <jas@extundo.com>
74234
74235         * lib/inet_ntop.h, inet_pton.h: No need to guard netinet/in.h
74236         #include's.
74237
74238 2006-07-28  Simon Josefsson  <jas@extundo.com>
74239
74240         * lib/inet_ntop.h, inet_pton.h: No need to guard arpa/inet.h
74241         #include's.
74242
74243 2006-07-28  Paul Eggert  <eggert@cs.ucla.edu>
74244
74245         * lib/modechange.c (mode_compile): Numeric modes now affect setuid and
74246         setgid on directories only if they set these bits.
74247         * lib/modechange.h: Remove obsolete comment about masks.
74248
74249 2006-07-28  Eric Blake  <ebb9@byu.net>
74250
74251         * lib/regex_internal.h (struct re_dfa_t) [!_LIBC]: Avoid invalid C89
74252         macro expansion.
74253
74254 2006-07-28  Bruno Haible  <bruno@clisp.org>
74255
74256         * lib/inet_ntop.h, inet_pton.h: Use #if HAVE* instead of #ifdef HAVE*.
74257
74258 2006-07-28  Bruno Haible  <bruno@clisp.org>
74259
74260         * m4/mbchar.m4 (gl_MBCHAR): Also test for iswcntrl.
74261
74262 2006-07-28  Bruno Haible  <bruno@clisp.org>
74263
74264         * lib/mbchar.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
74265         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit):
74266         Define fallbacks.
74267         Avoids link error on FreeBSD 4.x.
74268         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
74269
74270         * lib/wcwidth.h (iswprint): Assume an ASCII compatible wide character
74271         encoding.
74272         * lib/mbswidth.c (iswcntrl): Likewise.
74273
74274 2006-07-27  Bruno Haible  <bruno@clisp.org>
74275
74276         * m4/stdint.m4 (gl_STDINT_H): Define __STDC_CONSTANT_MACROS during the
74277         test.
74278
74279 2006-07-27  Bruno Haible  <bruno@clisp.org>
74280
74281         * lib/stdint_.h (INT*_C, UINT*_C) [C++]: Define these if
74282         __STDC_CONSTANT_MACROS is defined, not if __STDC_LIMIT_MACROS is
74283         defined.
74284
74285 2006-07-26  Eric Blake  <ebb9@byu.net>
74286
74287         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Check for missing pipe.
74288
74289 2006-07-26  Eric Blake  <ebb9@byu.net>
74290
74291         * lib/mkstemp-safer.c [! HAVE_MKSTEMP]: Add prototype for platforms
74292         like mingw that lack mkstemp.
74293         * lib/pipe-safer.c (pipe_safer) [!HAVE_FUNC_PIPE]: Provide fallback to
74294         avoid compilation warning on mingw.
74295
74296 2006-07-26  Bruno Haible  <bruno@clisp.org>
74297
74298         * m4/stdint.m4 (gl_STDINT_H): Also verify the existence of the macros
74299         INT*_MIN, INT_LEAST*_MAX, INT_LEAST*_MIN, UINT_LEAST*_MAX,
74300         INT_FAST*_MIN, INTPTR_MIN.
74301
74302 2006-07-25  Bruno Haible  <bruno@clisp.org>
74303
74304         * modules/version-etc (Depends-on): Add stdarg.
74305
74306 2006-07-25  Bruno Haible  <bruno@clisp.org>
74307
74308         * m4/stdint.m4 (gl_INTEGER_TYPE_SUFFIX): Avoid 'eval' in front of
74309         complex commands.
74310
74311 2006-07-25  Bruno Haible  <bruno@clisp.org>
74312
74313         * lib/version-etc.c (version_etc_va): Use va_copy, assumed to be
74314         defined in <stdarg.h> or config.h.
74315
74316 2006-07-24  Paul Eggert  <eggert@cs.ucla.edu>
74317
74318         * m4/stdio-safer.m4 (gl_FOPEN_SAFER, gl_TMPFILE_SAFER): New macros.
74319         (gl_STDIO_SAFER): Remove.
74320
74321 2006-07-24  Paul Eggert  <eggert@cs.ucla.edu>
74322
74323         * MODULES.html.sh (File stream based Input/Output):
74324         Add fopen-safer, tmpfile-safer; remove stdio-safer.
74325         * modules/getusershell (Depends-on): Change stdio-safer to fopen-safer.
74326         * modules/fopen-safer, modules/tmpfile-safer: New files.
74327         * modules/stdio-safer: Remove.
74328
74329 2006-07-24  Bruno Haible  <bruno@clisp.org>
74330
74331         * modules/tmpdir: New file.
74332         * MODULES.html.sh (File system functions): Add it.
74333
74334 2006-07-24  Bruno Haible  <bruno@clisp.org>
74335
74336         * modules/javacomp (Depends-on): Add unistd, javaversion, binary-io,
74337         getline, pathname, fwriteerror, clean-temp, xvasprintf, strstr.
74338
74339 2006-07-24  Bruno Haible  <bruno@clisp.org>
74340
74341         * modules/clean-temp: New file.
74342
74343 2006-07-24  Bruno Haible  <bruno@clisp.org>
74344
74345         * m4/tmpdir.m4: New file, from GNU gettext.
74346
74347 2006-07-24  Bruno Haible  <bruno@clisp.org>
74348
74349         * lib/tmpdir.h: New file, from GNU gettext.
74350         * lib/tmpdir.c: New file, from GNU gettext.
74351
74352 2006-07-24  Bruno Haible  <bruno@clisp.org>
74353
74354         * lib/clean-temp.h: New file, from GNU gettext.
74355         * lib/clean-temp.c: New file, from GNU gettext.
74356
74357 2006-07-23  Eric Blake  <ebb9@byu.net>
74358
74359         * modules/stdio-safer (Files): Add tmpfile-safer.c.
74360         (Depends-on): Add binary-io.
74361
74362 2006-07-23  Eric Blake  <ebb9@byu.net>
74363
74364         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Add tmpfile-safer.c.
74365
74366 2006-07-23  Eric Blake  <ebb9@byu.net>
74367
74368         * lib/tmpfile-safer.c: New file.
74369         * lib/stdio-safer.h (fopen_safer): Add prototype.
74370         * lib/stdio--.h (tmpfile): Make safer.
74371
74372 2006-07-23  Bruno Haible  <bruno@clisp.org>
74373
74374         * lib/gl_anylinked_list2.h (ASYNCSAFE): New macro.
74375         (gl_linked_add_first, gl_linked_add_last, gl_linked_add_before,
74376         gl_linked_add_after, gl_linked_add_at, gl_linked_remove_node,
74377         gl_linked_remove_at): Use it.
74378
74379 2006-07-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
74380         and Simon Josefsson <jas@extundo.com>
74381
74382         * lib/getaddrinfo.h (AI_PASSIVE): Make sure it is defined.
74383
74384         * lib/getaddrinfo.c (getaddrinfo): Support AI_PASSIVE.
74385
74386 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
74387
74388         * modules/close-stream: New file.
74389         * modules/closeout (Description): Make it clear that it exits
74390         with a diagnostic on error.
74391         (Depends-on): Add close-stream.  Remove fpending, stdbool.
74392         * MODULES.html.sh (File stream based Input/Output): Add close-stream.
74393
74394 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
74395
74396         * m4/close-stream.m4: New file.
74397
74398 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
74399
74400         * lib/close-stream.c, lib/close-stream.h: New files.
74401
74402 2006-07-22  Bruno Haible  <bruno@clisp.org>
74403
74404         Merge from GNU gettext 0.15.
74405
74406         2006-05-01  Bruno Haible  <bruno@clisp.org>
74407
74408                 * build-aux/javacomp.sh.in: Update for changed javacomp.m4.
74409
74410         2006-07-22  Bruno Haible  <bruno@clisp.org>
74411
74412                 * modules/javaversion: New file.
74413                 * MODULES.html.sh (Java): Add javaversion.
74414
74415         2006-03-12  Bruno Haible  <bruno@clisp.org>
74416
74417                 * build-aux/javaexec.sh.in: Update for changed javaexec.m4.
74418
74419         2005-12-04  Bruno Haible  <bruno@clisp.org>
74420
74421                 * build-aux/csharpexec.sh.in: Add support for 'clix' launcher
74422                 (untested).
74423
74424         2006-06-21  Bruno Haible  <bruno@clisp.org>
74425
74426                 Avoid warnings from recent versions of mcs.
74427                 * build-aux/csharpcomp.sh.in (options_mcs): Don't use options
74428                 -o, -L, -r any more. Use options documented since mcs-1.0
74429                 instead. Similarly for -g.
74430
74431         2005-12-04  Bruno Haible  <bruno@clisp.org>
74432
74433                 * build-aux/csharpcomp.sh.in: Suffix for resources is
74434                 .resources, not .resource.
74435
74436         2005-07-09  Bruno Haible  <bruno@clisp.org>
74437
74438                 * build-aux/csharpcomp.sh.in (options_csc): For -l option,
74439                 add a .dll suffix.
74440                 Reported by Mark Junker <mjscod@gmx.de>.
74441
74442         2006-07-22  Bruno Haible  <bruno@clisp.org>
74443
74444                 * modules/gettext: Upgrade to gettext-0.15.
74445                 (Files): Remove m4/isc-posix.m4. Add m4/lock.m4,
74446                 m4/visibility.m4.
74447                 Replace m4/inttypes.m4 with m4/inttypes-h.m4.
74448
74449 2006-07-22  Bruno Haible  <bruno@clisp.org>
74450
74451         Merge from GNU gettext 0.15.
74452
74453         2006-03-25  Bruno Haible  <bruno@clisp.org>
74454
74455                 * lib-link.m4 (AC_LIB_LINKFLAGS_FROM_LIBS): New macro.
74456
74457         2006-07-21  Bruno Haible  <bruno@clisp.org>
74458
74459                 * javacomp.m4 (gt_JAVACOMP): Convert target_version "null" to
74460                 "1.1".
74461
74462         2006-05-09  Bruno Haible  <bruno@clisp.org>
74463
74464                 * javacomp.m4 (gt_JAVACOMP): On Cygwin, set
74465                 CLASSPATH_SEPARATOR to a semicolon. Use CLASSPATH_SEPARATOR
74466                 for the conftestver execution.
74467
74468         2006-05-01  Bruno Haible  <bruno@clisp.org>
74469
74470                 * javacomp.m4 (gt_JAVACOMP): Accept a source-version and an
74471                 optional target-version argument. Verify that the compiler
74472                 groks source of the specified source-version, or add -source
74473                 option as necessary. Verify that the compiler produces
74474                 bytecode in the specified target-version, or add -target and
74475                 -source options as necessary. Make the result of the test
74476                 available as variable CONF_JAVAC. Also log error output in
74477                 config.log.
74478
74479         2006-03-11  Bruno Haible  <bruno@clisp.org>
74480
74481                 * javacomp.m4 (gt_JAVACOMP): Treat gcj-4.x like gcj-3.x.
74482
74483         2006-05-09  Bruno Haible  <bruno@clisp.org>
74484
74485                 * javaexec.m4 (gt_JAVAEXEC): On Cygwin, set
74486                 CLASSPATH_SEPARATOR to a semicolon.
74487
74488         2006-03-12  Bruno Haible  <bruno@clisp.org>
74489
74490                 * javaexec.m4 (gt_JAVAEXEC): Make the result of the test
74491                 available as variable CONF_JAVA, for subsequent autoconf
74492                 tests. Also log error output in config.log.
74493
74494         2006-07-19  Bruno Haible  <bruno@clisp.org>
74495
74496                 * getline.m4 (AM_FUNC_GETLINE): When cross-compiling, assume
74497                 that getline works on glibc2 systems. Needed to avoid trouble
74498                 in relocatable.c.
74499                 Reported by Nils Magnus Larsgard <nmlarsgaard@atmel.no>.
74500
74501         2005-12-04  Bruno Haible  <bruno@clisp.org>
74502
74503                 * csharpexec.m4 (gt_CSHARPEXEC): Add support for 'clix'
74504                 launcher (untested).
74505
74506         2005-12-04  Bruno Haible  <bruno@clisp.org>
74507
74508                 * csharpcomp.m4 (gt_CSHARPCOMP): Also set CSHARPCOMPFLAGS.
74509
74510         2006-07-22  Bruno Haible  <bruno@clisp.org>
74511
74512                 * gettext.m4: Update from GNU gettext-0.15.
74513                 * nls.m4: Likewise.
74514                 * po.m4: Likewise.
74515                 * inttypes-pri.m4: Likewise.
74516                 * inttypes-h.m4: Renamed from inttypes.m4.
74517                 (gl_HEADER_INTTYPES_H): Renamed from gt_HEADER_INTTYPES_H.
74518
74519 2006-07-22  Bruno Haible  <bruno@clisp.org>
74520
74521         Merge from GNU gettext 0.15.
74522
74523         2005-07-05  Bruno Haible  <bruno@clisp.org>
74524
74525                 * printf-args.c (printf_fetchargs): Work around broken
74526                 definition of wint_t on mingw.
74527
74528         2005-02-12  Bruno Haible  <bruno@clisp.org>
74529
74530                 * xallocsa.h: Add extern "C" for C++.
74531
74532         2006-05-17  Bruno Haible  <bruno@clisp.org>
74533
74534                 Cygwin portability.
74535                 * progreloc.c (WIN32_NATIVE): Renamed from WIN32.
74536
74537         2006-04-30  Bruno Haible  <bruno@clisp.org>
74538
74539                 * progreloc.c: Include <mach-o/dyld.h> if available.
74540                 (find_executable): Use _NSGetExecutablePath when possible.
74541
74542         2006-05-06  Charles Wilson  <cygwin@cwilson.fastmail.fm>
74543
74544                 * progreloc.c (maybe_executable) [CYGWIN]: Use the access()
74545                 function.
74546
74547         2005-12-29  Bruno Haible  <bruno@clisp.org>
74548
74549                 * progreloc.c (set_program_name_and_installdir): Fix
74550                 compilation error.
74551
74552         2005-12-04  Bruno Haible  <bruno@clisp.org>
74553
74554                 Cygwin portability.
74555                 * progreloc.c: Include <windows.h> also on Cygwin.
74556                 (find_executable): Add support for Cygwin.
74557                 (set_program_name_and_installdir): Handle also platforms with
74558                 nonempty EXEEXT.
74559
74560         2006-07-11  Bruno Haible  <bruno@clisp.org>
74561
74562                 * javacomp.c: Fix a comment.
74563                 Reported by Jim Meyering.
74564
74565         2006-04-30  Bruno Haible  <bruno@clisp.org>
74566
74567                 * javacomp.h (compile_java_class): Add source_version,
74568                 target_version arguments.
74569                 * javacomp.c: Rewritten to choose only a compiler that
74570                 respects the specified source_version and target_version.
74571
74572         2006-06-27  Bruno Haible  <bruno@clisp.org>
74573
74574                 Assume correct S_ISDIR macro.
74575                 * mkdtemp.c: Remove test of STAT_MACROS_BROKEN.
74576
74577         2006-07-22  Bruno Haible  <bruno@clisp.org>
74578
74579                 * javaversion.h: New file, from GNU gettext.
74580                 * javaversion.c: New file, from GNU gettext.
74581                 * javaversion.java: New file, from GNU gettext.
74582                 * javaversion.class: New file, from GNU gettext.
74583
74584         2006-05-17  Bruno Haible  <bruno@clisp.org>
74585
74586                 Cygwin portability.
74587                 * javaexec.c (execute_java_class): Test for jview program
74588                 also on Cygwin.
74589
74590         2006-04-09  Bruno Haible  <bruno@clisp.org>
74591
74592                 * fatal-signal.c: Don't include string.h.
74593                 (at_fatal_signal): Use a copying loop instead of memcpy.
74594
74595         2005-12-04  Bruno Haible  <bruno@clisp.org>
74596
74597                 * csharpexec.c: Add support for 'clix' launcher (untested).
74598                 (execute_csharp_using_sscli): New function.
74599                 (execute_csharp_program): Call it.
74600
74601         2006-06-21  Bruno Haible  <bruno@clisp.org>
74602
74603                 Avoid warnings from recent versions of mcs.
74604                 * csharpcomp.c (compile_csharp_using_mono): Don't use options
74605                 -o, -L, -r any more. Use options documented since mcs-1.0
74606                 instead. Similarly for -g.
74607
74608         2005-07-09  Bruno Haible  <bruno@clisp.org>
74609
74610                 * csharpcomp.c (compile_csharp_using_sscli): For -l option,
74611                 add a .dll suffix.
74612                 Reported by Mark Junker <mjscod@gmx.de>.
74613
74614         2006-06-17  Bruno Haible  <bruno@clisp.org>
74615
74616                 * config.charset: Update for NetBSD 3.0.
74617
74618         2006-05-17  Bruno Haible  <bruno@clisp.org>
74619
74620                 Cygwin portability.
74621                 * localcharset.c (WIN32_NATIVE): Renamed from WIN32.
74622
74623         2006-05-16  Bruno Haible  <bruno@clisp.org>
74624
74625                 * localcharset.c [CYGWIN]: Include <windows.h>.
74626                 (get_charset_aliases): For Cygwin, return the same CPxxx
74627                 aliases list as under WIN32.
74628                 (locale_charset) [CYGWIN]: Try to retrieve the encoding from
74629                 the environment variables. Fall back to GetACP().
74630
74631         2006-04-05  Bruno Haible  <bruno@clisp.org>
74632
74633                 * config.charset: Update Juan Manuel Guerrero's address.
74634
74635         2005-02-12  Bruno Haible  <bruno@clisp.org>
74636
74637                 * allocsa.h: Add extern "C" for C++.
74638
74639         2005-02-10  Bruno Haible  <bruno@clisp.org>
74640
74641                 * allocsa.h (sa_alignof): Define differently with AIX xlc, to
74642                 avoid a bug of this compiler on AIX 3.2.5 dealing with enums.
74643
74644         2006-07-22  Bruno Haible  <bruno@clisp.org>
74645
74646                 * gettext.h: Update to GNU gettext-0.15.
74647
74648 2006-07-22  Bruno Haible  <bruno@clisp.org>
74649
74650         * config/srclist.txt: Resync printf-args.c, vasnprintf.c,
74651         localcharset.c, mkdtemp.c, config.rpath, lib-ld.m4, lib-link.m4,
74652         lib-prefix.m4, longdouble.m4, ssize_t.m4.
74653
74654 2006-07-21  Eric Blake  <ebb9@byu.net>
74655
74656         * modules/stdlib-safer: New file.
74657         * MODULES.html.sh (File stream based Input/Output): Add
74658         stdlib-safer.
74659
74660 2006-07-21  Eric Blake  <ebb9@byu.net>
74661
74662         * lib/stdlib-safer.h: New file from coreutils, required by
74663         stdlib--.h.
74664
74665 2006-07-20  Paul Eggert  <eggert@cs.ucla.edu>
74666
74667         * gnulib-tool (func_usage): Document --assume-autoconf='latest-stable'.
74668
74669 2006-07-20  Bruno Haible  <bruno@clisp.org>
74670
74671         * gnulib-tool: Recognize new option --assume-autoconf.
74672         (autoconf_minversion): New variable.
74673         (func_get_filelist): Use it to decide whether to add onceonly_2_57.m4.
74674
74675 2006-07-20  Bruno Haible  <bruno@clisp.org>
74676
74677         * MODULES.html.sh (func_all_modules): Add a missing func_begin_table.
74678
74679 2006-07-19  Derek R. Price  <derek@ximbiot.com>
74680
74681         * lib/getaddrinfo.h: Don't define unimplemented AI_* flags.
74682         Reindent and repaginate.
74683
74684 2006-07-19  Derek Price  <derek@ximbiot.com>
74685
74686         * doc/gnulib.texi (Libtool and Windows):  Eliminate passive voice.
74687         Correct grammar.
74688
74689 2006-07-17  Bruno Haible  <bruno@clisp.org>
74690
74691         * modules/list: New file.
74692         * modules/array-list: New file.
74693         * modules/carray-list, modules/carray-list-tests: New files.
74694         * modules/linked-list, modules/linked-list-tests: New files.
74695         * modules/avltree-list, modules/avltree-list-tests: New files.
74696         * modules/rbtree-list, modules/rbtree-list-tests: New files.
74697         * modules/linkedhash-list, modules/linkedhash-list-tests: New files.
74698         * modules/avltreehash-list, modules/avltreehash-list-tests: New files.
74699         * modules/rbtreehash-list, modules/rbtreehash-list-tests: New files.
74700         * modules/oset: New file.
74701         * modules/array-oset: New file.
74702         * modules/avltree-oset, modules/avltree-oset-tests: New files.
74703         * modules/rbtree-oset, modules/rbtree-oset-tests: New files.
74704         * tests/test-carray_list.c: New file.
74705         * tests/test-linked_list.c: New file.
74706         * tests/test-avltree_list.c: New file.
74707         * tests/test-rbtree_list.c: New file.
74708         * tests/test-linkedhash_list.c: New file.
74709         * tests/test-avltreehash_list.c: New file.
74710         * tests/test-rbtreehash_list.c: New file.
74711         * tests/test-avltree_oset.c: New file.
74712         * tests/test-rbtree_oset.c: New file.
74713         * MODULES.html.sh (Container data structures): New section.
74714
74715 2006-07-17  Bruno Haible  <bruno@clisp.org>
74716
74717         * m4/gl_list.m4: New file.
74718
74719 2006-07-17  Bruno Haible  <bruno@clisp.org>
74720
74721         * lib/gl_list.h: New file.
74722         * lib/gl_list.c: New file.
74723         * lib/gl_array_list.h: New file.
74724         * lib/gl_array_list.c: New file.
74725         * lib/gl_carray_list.h: New file.
74726         * lib/gl_carray_list.c: New file.
74727         * lib/gl_linked_list.h: New file.
74728         * lib/gl_linked_list.c: New file.
74729         * lib/gl_anylinked_list1.h: New file.
74730         * lib/gl_anylinked_list2.h: New file.
74731         * lib/gl_avltree_list.h: New file.
74732         * lib/gl_avltree_list.c: New file.
74733         * lib/gl_anyavltree_list1.h: New file.
74734         * lib/gl_anyavltree_list2.h: New file.
74735         * lib/gl_rbtree_list.h: New file.
74736         * lib/gl_rbtree_list.c: New file.
74737         * lib/gl_anyrbtree_list1.h: New file.
74738         * lib/gl_anyrbtree_list2.h: New file.
74739         * lib/gl_anytree_list1.h: New file.
74740         * lib/gl_anytree_list2.h: New file.
74741         * lib/gl_linkedhash_list.h: New file.
74742         * lib/gl_linkedhash_list.c: New file.
74743         * lib/gl_anyhash_list1.h: New file.
74744         * lib/gl_anyhash_list2.h: New file.
74745         * lib/gl_avltreehash_list.h: New file.
74746         * lib/gl_avltreehash_list.c: New file.
74747         * lib/gl_rbtreehash_list.h: New file.
74748         * lib/gl_rbtreehash_list.c: New file.
74749         * lib/gl_anytreehash_list1.h: New file.
74750         * lib/gl_anytreehash_list2.h: New file.
74751
74752         * lib/gl_oset.h: New file.
74753         * lib/gl_oset.c: New file.
74754         * lib/gl_array_oset.h: New file.
74755         * lib/gl_array_oset.c: New file.
74756         * lib/gl_avltree_oset.h: New file.
74757         * lib/gl_avltree_oset.c: New file.
74758         * lib/gl_rbtree_oset.h: New file.
74759         * lib/gl_rbtree_oset.c: New file.
74760         * lib/gl_anytree_oset.h: New file.
74761
74762 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
74763
74764         * m4/mkancesdirs.m4: New file.
74765         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Mention dirchownmod.c,
74766         dirchownmod.h.  Don't require AC_FUNC_ALLOCA, gl_AFS, gl_CHDIR_SAFER;
74767         no longer needed.  Require gl_FUNC_LCHOWN, since dirchownmod.c needs
74768         it.
74769
74770 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
74771
74772         * lib/dirchownmod.c, lib/dirchownmod.h, lib/mkancesdirs.c:
74773         * lib/mkancesdirs.h: New files.
74774         * lib/mkdir-p.c: Don't include alloca.h, stdio.h, sys/types.h,
74775         unistd.h, string.h, chdir-safer.h, dirname.h, lchmod.h, lchown.h,
74776         save-cwd.h.  Instead, include dirchownmod.h and mkancesdirs.h.
74777         (make_dir_parents): New args MAKE_ANCESTOR, OPTIONS, ANNOUNCE,
74778         MODE_BITS.  Remove options VERBOSE_FMT_STRING, CWD_ERRNO.  All
74779         callers changed.  Revamp internals significantly, by not
74780         attempting to create directories that are temporarily more
74781         permissive than the final results.  Do not attempt to use
74782         save_cwd/restore_cwd; it isn't worth it for mkdir and install.
74783         This removes some race conditions, fixes some bugs, and simplifies
74784         things.  Use new dirchownmod function to do owner and mode changes.
74785         * lib/mkdir-p.h: Likewise.
74786         * lib/modechange.c (octal_to_mode): New function.
74787         (struct mode_change): New member mentioned.
74788         (make_node_op_equals): New arg mentioned.  All callers changed.
74789         (mode_compile): Keep track of which mode bits the user has explicitly
74790         mentioned.
74791         (mode_adjust): New arg DIR, so that we implement the X op correctly.
74792         New arg PMODE_BITS, to keep track of which mode bits the user
74793         mentioned; it treats S_ISUID and S_ISGID speciall.
74794         All callers changed.
74795         * lib/modechange.h: Likewise.
74796
74797 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
74798
74799         * MODULES.html.sh: Add mkancestors.
74800         * modules/mkancesdirs: New module.
74801         * modules/mkdir-p (Files): Remove lib/chdir-safer.c, lib/chdir-safer.h,
74802         lib/same-inode.h, m4/afs.m4, m4/chdir-safer.m4.
74803         The chdir-safer and afs files are now orphans; I'll remove them
74804         unless someone speaks up.
74805         Add lib/dirchownmod.c, lib/dirchownmod.h.
74806         (Depends-on): Remove alloca, chown, save-cwd, dirname.
74807         Add lchown, mkancesdirs.
74808         (Maintainer): Add self.
74809
74810 2006-07-15  Karl Berry  <karl@gnu.org>
74811
74812         * gnulib-tool: help message wording/arrangement.
74813
74814 2006-07-14  Simon Josefsson  <jas@extundo.com>
74815
74816         * doc/gnulib.texi (Libtool and Windows): New section.
74817
74818 2006-07-12  Simon Josefsson  <jas@extundo.com>
74819
74820         * modules/gendocs (License): Fix license, approved by Karl.
74821
74822 2006-07-12  Eric Blake  <ebb9@byu.net>
74823
74824         * MODULES.html.sh: Add gendocs.
74825
74826 2006-07-11  Eric Blake  <ebb9@byu.net>
74827
74828         * modules/fdl: New module, to install doc/fdl.texi.
74829         * MODULES.html.sh: Add new section for documentation modules.
74830         * gnulib-tool: Avoid space-tab.
74831         (--doc-base): New option, to manage files from doc.
74832
74833 2006-07-11  Eric Blake  <ebb9@byu.net>
74834
74835         * m4/absolute-header.m4: Fix comments to match recent change.
74836
74837 2006-07-11  Eric Blake  <ebb9@byu.net>
74838
74839         * gnulib-tool: List --doc-base before --tests-base.
74840
74841 2006-07-11  Derek R. Price  <derek@ximbiot.com>
74842
74843         * lib/glob.c: s/NAMLEN/_D_EXACT_NAMLEN/.
74844
74845 2006-07-11  Bruno Haible  <bruno@clisp.org>
74846
74847         * README: Mention where to put documentation.
74848
74849 2006-07-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
74850
74851         * doc/functions.texi, gnulib-tool.texi, gnulib.texi: Fix some typos.
74852
74853 2006-07-10  Paul Eggert  <eggert@cs.ucla.edu>
74854
74855         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Like today's change
74856         to stdint.m4.
74857
74858 2006-07-10  Paul Eggert  <eggert@cs.ucla.edu>
74859
74860         * m4/stdint.m4 (gl_STDINT_H): Like yesterday's change to
74861         absolute-header.m4.  Also, set ABSOLUTE_STDINT_H to a string
74862         "no/such/file/stdint.h" when there is no such file, so that
74863         the resulting C code can be parsed by dodgy compilers.
74864         Problems reported by Bob Proulx.
74865
74866 2006-07-10  Derek R. Price  <derek@ximbiot.com>
74867
74868         * lib/backupfile.c, dirfd.h, fts.c, getcwd.c, glob.c, glob_.h:
74869         Ignore the obsolescent !HAVE_DIRENT_H case.  Consolidate NAMLEN
74870         macros into the GNU _D_EXACT_NAMLEN.
74871         * lib/savedir.c:  Likewise.
74872         (savedirstream): Use _D_EXACT_NAMLEN in preference to strlen.
74873
74874 2006-07-10  Derek R. Price  <derek@ximbiot.com>
74875         and Paul Eggert  <eggert@cs.ucla.edu>
74876
74877         * m4/backupfile.m4, d-ino.m4, d-type.m4, dirfd.m4, fts.m4, getcwd.m4:
74878         * m4/savedir.m4:
74879         Ignore the obsolescent !HAVE_DIRENT_H case.  Consolidate NAMLEN
74880         macros into the GNU _D_EXACT_NAMLEN.
74881
74882 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
74883
74884         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Use "" rather than <>
74885         around the absolute name, to work around a problem with the HP-UX
74886         11.23 native C compiler, reported by Bob Proulx.
74887
74888 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
74889
74890         * doc/maintain.texi, make-stds.texi: Sync from
74891         <http://savannah.gnu.org/projects/gnustandards>.
74892
74893 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
74894
74895         * build-aux/depcomp, build-aux/install-sh: Sync from Automake.
74896
74897 2006-07-09  Jim Meyering  <jim@meyering.net>
74898
74899         * m4/glob.m4: Remove a doubled word in a comment.
74900
74901 2006-07-09  Jim Meyering  <jim@meyering.net>
74902
74903         * lib/argp-pv.c: Remove a doubled word in a comment.
74904         * lib/check-version.c (check_version): Likewise.
74905         * lib/javacomp.c (compile_java_class): Likewise.
74906
74907 2006-07-08  Paul Eggert  <eggert@cs.ucla.edu>
74908
74909         * gnulib-tool (func_get_filelist): Don't echo m4/onceonly_2_57.m4,
74910         for the benefit of people using Autoconf 2.60.  If you want to
74911         support older Autoconf versions you can copy m4/onceonly_2_57.m4
74912         (or m4/onceonly.m4, if pre-2.57) manually.
74913
74914 2006-07-08  Jim Meyering  <jim@meyering.net>
74915
74916         * m4/link-follow.m4: Remove one of two adjacent "whether"s in a
74917         comment.
74918         * m4/getopt.m4: Remove one of two adjacent "your"s in a comment.
74919         * m4/regex.m4 (gl_REGEX): Remove one of two adjacent "the"s in a
74920         comment.
74921
74922 2006-07-08  Jim Meyering  <jim@meyering.net>
74923
74924         * lib/getndelim2.h (getndelim2): Remove doubled "after" in comment.
74925
74926 2006-07-07  Simon Josefsson  <jas@extundo.com>
74927
74928         * tests/test-crc.c: Change expected crc value, the test vector
74929         were probably computed using the old broken crc.c?
74930
74931 2006-07-06  Simon Josefsson  <jas@extundo.com>
74932
74933         * modules/sys_socket (Files): Add m4/sockpfaf.m4 (this module is
74934         now the canonical place for the M4 file).
74935
74936         * modules/getaddrinfo (Files): Remove m4/sockpfaf.m4, we get it
74937         from the sys_socket dependency now.
74938
74939         * modules/inet_pton (Files): Ditto.
74940
74941         * modules/inet_ntop (Files): Ditto.
74942
74943 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
74944
74945         * modules/getusershell (configure.ac): Use gl_FUNC_GETUSERSHELL,
74946         not gl_PREREQ_GETUSERSHELL.
74947
74948 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
74949
74950         * m4/_inttypes_h.m4 (gl_INTTYPES_H): Use AC_CHECK_DECLS_ONCE
74951         with only one argument, for Autoconf 2.60.
74952         * m4/fileblocks.m4 (gl_PREREQ_FILEBLOCKS): AC_CHECK_DECLS_ONCE may
74953         expand to nothing, so add a shell command to avoid syntax error.
74954         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
74955
74956 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
74957
74958         * lib/strtod.c (strtod): cast the argument of tolower to unsigned char.
74959
74960 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
74961
74962         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Don't check for getenv decl;
74963         no longer needed.  Check for isblank decl.
74964         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Don't check for getenv decl.
74965         * m4/regex.m4 (gl_PREREQ_REGEX): Dheck for isblank decl instead
74966         of existence.
74967
74968 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
74969
74970         * lib/getloadavg.c: Use __VMS, not VMS.
74971         * lib/getopt.c: Likewise.
74972         * lib/getpagesize.h: Likewise.
74973         * lib/glob.c: Remove most VMS cruft; it hasn't been tested for a while
74974         and probably does not work.
74975
74976 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
74977
74978         * lib/.cppi-disable: Add wcwidth.
74979         * lib/fnmatch.c (ISBLANK): Remove.  All uses changed to isblank.
74980         (isblank) [! (defined isblank || HAVE_DECL_ISBLANK)]: New macro.
74981         (ISGRAPH): Remove.  All uses changed to isgraph.
74982         (FOLD) [!defined _LIBC]: Remove special case.
74983         * lib/getdate.y (lookup_word): Remove no-longer-needed call to islower.
74984         * lib/regex_internal.h (isblank): Depend on HAVE_DECL_ISBLANK, not
74985         HAVE_ISBLANK.
74986         * lib/strftime.c (TOLOWER, TOUPPER) [!defined _LIBC]: Remove special
74987         case.
74988
74989 2006-07-06  Jim Hyslop  <jhyslop@dreampossible.ca>  (tiny change)
74990
74991         * lib/getaddrinfo.c: Changes to compile under MSVC6: changed
74992         '#if WIN32_NATIVE' to '#ifdef' & moved WSAAPI macro inside
74993         brackets.  Other minor changes to suppress some compiler
74994         warnings.
74995
74996 2006-07-06  Derek R. Price  <derek@ximbiot.com>
74997         and Paul Eggert  <eggert@cs.ucla.edu>
74998
74999         * m4/backupfile.m4 (gl_BACKUPFILE): Check for dirent.h, instead
75000         of invoking obsolescent AC_HEADER_DIRENT macro.
75001         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Likewise.
75002         * m4/d-type.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Likewise.
75003         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
75004         * m4/fts.m4 (gl_FUNC_FTS_CORE): Likewise.
75005         * m4/getcwd.m4 (gl_PREREQ_GETCWD): Likewise.
75006         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
75007         * m4/savedir.m4 (gl_SAVEDIR): Likewise.
75008         * m4/readdir.m4: Remove; no longer needed.
75009
75010 2006-07-06  Derek R. Price  <derek@ximbiot.com>
75011         and Paul Eggert  <eggert@cs.ucla.edu>
75012
75013         * lib/backupfile.c [HAVE_DIRENT_H && ! HAVE_NDIR_H]:
75014         Don't worry about this obsolete case any more.
75015         (HAVE_DIR): Remove.  All uses removed; we now assume you can read
75016         directories.
75017         * lib/dirfd.h [HAVE_DIRENT_H && ! HAVE_NDIR_H]: Don't
75018         worry about this obsolete case any more.
75019         * lib/fts.c: Likewise.
75020         * lib/getcwd.c: Likewise.
75021         * lib/glob.h: Likewise.
75022         * lib/savedir.c: Likewise.
75023
75024 2006-07-05  Paul Eggert  <eggert@cs.ucla.edu>
75025
75026         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Use AC_CHECK_DECLS_ONCE
75027         rather than AC_CHECK_DECLS for strtoimax and strtoumax.
75028         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Remove; no longer
75029         needed.
75030         All uses removed.
75031         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
75032         * m4/strtoul.m4 (gl_PREREQ_STRTOUL): Likewise.
75033         * m4/exclude.m4 (gl_EXCLUDE): Don't check for isascii; no longer
75034         needed.
75035         * m4/getdate.m4 (gl_GETDATE): Likewise.
75036         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Likewise.
75037         * m4/memcasecmp.m4 (gl_MEMCASECMP): Likewise.
75038         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
75039         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
75040         * m4/strtoul.m4 (gl_PREREQ_STRTOUL): Likewise.
75041         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
75042         * m4/exclude.m4 (gl_EXCLUDE): Don't require AC_C_INLINE; no longer
75043         needed.
75044
75045 2006-07-05  Paul Eggert  <eggert@cs.ucla.edu>
75046
75047         * lib/memcasecmp.c: Include <limits.h>.
75048         (memcasecmp): Don't assume UCHAR_MAX <= INT_MAX.
75049         * lib/strtod.c (strtod): Don't assume isspace works on negative chars.
75050         Don't assume isdigit succeeds only on '0' through '9'.
75051
75052 2006-07-05  Eric Blake  <ebb9@byu.net>
75053
75054         * modules/getaddrinfo (Depends-on): Add snprintf.
75055
75056 2006-07-05  Eric Blake  <ebb9@byu.net>
75057
75058         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Use gl_HEADER_SYS_SOCKET
75059         to avoid 'header present but could not be compiled' on cygwin.
75060
75061 2006-07-05  Eric Blake  <ebb9@byu.net>
75062
75063         * lib/getaddrinfo.h (NI_NUMERICHOST, NI_NUMERICSERV): Define if
75064         missing from netdb.h.
75065         * lib/getaddrinfo.c (includes): Include inet_ntop and snprintf.
75066
75067 2006-07-05  Derek R. Price  <derek@ximbiot.com>
75068
75069         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Don't require AC_HEADER_STDC;
75070         no longer needed.
75071         * m4/exclude.m4 (gl_EXCLUDE): Likewise.
75072         * m4/getdate.m4 (gl_GETDATE): Likewise.
75073         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Likewise.
75074         * m4/memcasecmp.m4 (gl_MEMCASECMP): Likewise.
75075         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
75076         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
75077         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
75078
75079 2006-07-05  Derek R. Price  <derek@ximbiot.com>
75080
75081         * lib/exclude.c (IN_CTYPE_DOMAIN, is_space): Remove; no longer needed.
75082         All uses of is_space replaced by isspace.
75083         * lib/exit.h: Don't talk about STDC_HEADERS.
75084         * lib/fnmatch.c (ISASCII): Remove; no longer needed.  All uses removed.
75085         (ISPRINT, ISDIGIT, ISALNUM, ISALPHA, ISCNTRL, ISLOWER, ISPUNCT):
75086         (ISSPACE, ISUPPER, ISXDIGIT): Remove; no longer needed.  All uses
75087         replaced by isprint etc.
75088         * lib/getdate.y (IN_CTYPE_DOMAIN, ISSPACE, ISALPHA, ISLOWER): Likewise.
75089         * lib/getusershell.c (IN_CTYPE_DOMAIN, ISSPACE): Likewise.
75090         * lib/memcasecmp.c (IN_CTYPE_DOMAIN, ISLOWER, TOUPPER): Likewise.
75091         * lib/strtod.c (IN_CTYPE_DOMAIN, ISSPACE, ISDIGIT, TOLOWER): Likewise.
75092         * lib/strtol.c (IN_CTYPE_DOMAIN): Likewise.
75093         * lib/xstrtol.c (IN_CTYPE_DOMAIN, ISSPACE): Likewise.
75094
75095 2006-07-05  Bruno Haible  <bruno@clisp.org>
75096
75097         * m4/strndup.m4 (gl_FUNC_STRNDUP): When cross-compiling, check whether
75098         the function exists, before testing against AIX.
75099         Reported by Martin Lambers <marlam@marlam.de>.
75100
75101 2006-07-04  Paul Eggert  <eggert@cs.ucla.edu>
75102
75103         * modules/cycle-check (lib_SOURCES): Add same-inode.h.
75104         From Mark D. Baushke.
75105
75106 2006-07-04  Paul Eggert  <eggert@cs.ucla.edu>
75107
75108         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Prepend three slashes
75109         to the absolute name, not just one, to bypass Sun C 5.8's
75110         "warning: #include of /usr/include/... may be non-portable".
75111
75112 2006-07-04  Eric Blake  <ebb9@byu.net>
75113
75114         * modules/dirname-tests: New test module.
75115         * tests/test-dirname.c: New file, replacing dirname.c
75116         TEST_DIRNAME section that was recently deleted.
75117
75118 2006-07-04  Bruno Haible  <bruno@clisp.org>
75119
75120         Assume ANSI C header files and <ctype.h> functions.
75121         * lib/mbswidth.c (IN_CTYPE_DOMAIN, ISPRINT, ISCNTRL): Remove macros.
75122         (mbsnwidth): Use isprint, iscntrl instead.
75123
75124 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
75125
75126         Merge from coreutils.
75127         * MODULES.html.sh: Add xstrtold.
75128         * modules/xstrtold: New file.
75129         * modules/cycle-check (Files): Add lib/same-inode.h.
75130         * modules/dirname (Files): Add m4/double-slash-root.m4.
75131         * modules/getcwd (Files): Add m4/getcwd-abort-bug.m4.
75132         * modules/mkdir-p (Files): Add lib/same-inode.h.
75133         * modules/same (Files): Add lib/same-inode.h.
75134
75135 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
75136
75137         * m4/absolute-header.m4: Renamed from full-header-path.m4.
75138         This is to keep the terminology clean; POSIX talks about
75139         "absolute pathnames", not "full pathnames", but the GNU
75140         Coding Standards say to use "path" for something else;
75141         so use "absolute" to keep both sides happy.
75142         (gl_ABSOLUTE_HEADER): Renamed from gl_FULL_HEADER_PATH.
75143         Set gl_absolute_header, not gl_full_header_path.
75144         Set gl_cv_absolute_<header>, not gl_full_path_<header>.
75145         Define ABSOLUTE_<HEADER>, not FULL_PATH_<HEADER>.
75146         All uses changed.
75147
75148         Merge from coreutils.
75149
75150         2006-06-30  Paul Eggert  <eggert@cs.ucla.edu>
75151
75152         * m4/c-strtod.m4 (gl_C_STRTOLD): Add c-strtod.c to LIBSOURCES.
75153         Require gl_USE_SYSTEM_EXTENSIONS, not gl_C_STRTOD, since we don't
75154         want to require the building of c-strtod.o.
75155         * m4/lib-check.m4 (cu_LIB_CHECK): Remove SEQ_LIBM, since seq no longer
75156         needs -lm directly.
75157         * m4/xstrtod.m4 (gl_XSTRTOLD): New macro.
75158
75159         2006-06-19  Paul Eggert  <eggert@cs.ucla.edu>
75160
75161         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Prefer binutils's
75162         --as-needed option if available.  Problem reported by Albert Chin in
75163         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00114.html>.
75164         However, use -Wl,--as-needed, not bare --as-needed, since HP-UX 11.11
75165         cc merely issues a bunch of annoying warnings for --as-needed
75166         (this problem was reported by Bob Proulx).  Also, try linking with
75167         -lm to detect a bug in binutils 2.16 (this problem was reported
75168         by Ralf Wildenhues).
75169
75170         2006-06-18  Jim Meyering  <jim@meyering.net>
75171
75172         Test for a bug that causes glibc's getcwd to suffer a failed assertion.
75173         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): New file and
75174         macro.
75175         * m4/getcwd.m4 (gl_FUNC_GETCWD): If we detect support for getcwd_null,
75176         also check for glibc-2.4's abort-inducing bug.
75177
75178         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Fix typo.
75179         Low-probability clean-up should be to use rmdir to get rid of
75180         the just-created directory, not unlink.
75181
75182         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): If ftruncate is missing, make
75183         configure fail, and request a bug report to inform us about it.
75184         Add a comment that, barring reports to the contrary, in 2007 we'll
75185         assume ftruncate is universally available.
75186
75187         2006-04-17  Paul Eggert  <eggert@cs.ucla.edu>
75188
75189         * m4/filemode.m4 (gl_FILEMODE): Check for strmode declaration.
75190
75191         2006-03-12  Jim Meyering  <jim@meyering.net>
75192
75193         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Add same-inode.h to the list.
75194         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Likewise.
75195         * m4/same.m4 (gl_SAME): Likewise.
75196         * m4/root-dev-ino.m4 (gl_ROOT_DEV_INO): Likewise.
75197
75198         2006-03-11  Eric Blake  <ebb9@byu.net>
75199
75200         * m4/double-slash-root.m4: New file, provides gl_DOUBLE_SLASH_ROOT.
75201         * m4/dirname.m4 (gl_DIRNAME): Use gl_DOUBLE_SLASH_ROOT.
75202         * m4/dos.m4 (FILE_SYSTEM_PREFIX_LEN): Move from here to dirname.h.
75203         (FILE_SYSTEM_DRIVE_PREFIX_CAN_BE_RELATIVE): New define.
75204
75205 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
75206
75207         * lib/stdint_.h: Include <sys/types.h> after @FULL_PATH_STDINT_H@, for
75208         MacOS X 10.4.6.  Don't mention <sys/int_types.h>.  Problems
75209         reported by Mark D. Baushke, one in
75210         <http://lists.gnu.org/archive/html/bug-gnulib/2006-07/msg00015.html>.
75211
75212         Merge from coreutils.
75213
75214         * lib/.cppi-disable: Add stdint_.h.
75215         * lib/.cvsignore: Add stdint.h.
75216
75217         2006-06-30  Paul Eggert  <eggert@cs.ucla.edu>
75218
75219         * lib/xstrtod.c (XSTRTOD, DOUBLE): New macros, so that we can support
75220         both double and long double versions.
75221         (XSTRTOD): Renamed from xstrtod.  Use DOUBLE internally.
75222         * lib/xstrtold.c: New file.
75223         * lib/xstrtod.h (xstrtold): New decl.
75224
75225         2006-05-22  Paul Eggert  <eggert@cs.ucla.edu>
75226
75227         * lib/filemode.c (setst): Remove.
75228         (strmode): Rewrite to avoid setst.  This makes the code shorter,
75229         (arguably) clearer, and the generated code is a bit smaller on my
75230         Debian GNU/Linux stable x86 host.
75231
75232         2006-04-17  Paul Eggert  <eggert@cs.ucla.edu>
75233
75234         * lib/filemode.c: Include "filemode.h" first, to test the interface.
75235         Assume that filemode.h includes sys/types.h and sys/stat.h.
75236         (HAVE_ST_DM_MODE): New macro, moved here from ls.c.
75237         (ftypelet): Reorder to put common cases first, for efficiency.
75238         Add 'P', 'w'.  Remove 'M', since it's now the caller's responsibility
75239         to do 'M'.
75240         (strmode): Renamed from mode_string, and now stores 12 bytes instead
75241         of 10, for compatibility with FreeBSD.  All callers changed.
75242         (filemodestring): Now stores 12 bytes instead of 10, and sets file
75243         types that can't be deduced solely from st_mode.  First arg is now a
75244         const pointer.
75245         * lib/filemode.h (HAVE_DECL_STRMODE): Include <string.h> for strmode.
75246         (strmode): Renamed from mode_string.
75247         (filemodestring): New decl.
75248         * lib/stat-macros.h: Don't undef S_ISDOOR, since it's never buggy.
75249         (S_ISDOOR): Don't bother with S_IFDOOR, since that code is never
75250         needed.
75251         (S_ISPORT, S_ISWHT): New macros, if not already defined.
75252
75253         2006-04-12  Paul Eggert  <eggert@cs.ucla.edu>
75254
75255         * lib/fsusage.c: Don't include <inttypes.h> or <stdint.h>, since
75256         fsusage.h now does that.  Include fsusage.h first, to test interface.
75257         Prefer statvfs if it works, since it's blessed by POSIX.  Attempt
75258         at most one method (the old code could have generated decls that
75259         didn't conform to C89, not that this was ever exercised).
75260         * lib/fsusage.h: Include <inttypes.h> and <stdint.h> if they exist.
75261
75262         2006-03-19  Jim Meyering  <jim@meyering.net>
75263
75264         Work even in a chroot where d_ino values for entries in "/"
75265         don't match the stat.st_ino values for the same names.
75266         * lib/getcwd.c (__getcwd): When no d_ino value matches the target inode
75267         number, iterate through all entries again, using lstat instead.
75268         Reported by Kenshi Muto in http://bugs.debian.org/355810, and by
75269         Zouhir Hafidi in https://bugzilla.redhat.com/bugzilla/190656.
75270
75271         * lib/getcwd.c (__getcwd): Clarify a comment.
75272         Use memcpy in place of a call to strcpy.
75273
75274         2006-03-12  Jim Meyering  <jim@meyering.net>
75275
75276         * lib/fts-cycle.c (leave_dir): If cycle-check's saved dev-ino pair
75277         matches that of the current directory (which we're about to chdir ".."
75278         out of), then save the dev-ino of the parent, instead.
75279
75280         * lib/same-inode.h (SAME_INODE): New file/macro.
75281         * lib/chdir-safer.c (SAME_INODE): Remove definition.
75282         Include "same-inode.h", instead.
75283         * lib/same.c: Likewise.
75284         * lib/cycle-check.h: Include "same-inode.h".
75285         (CYCLE_CHECK_REFLECT_CHDIR_UP): Define.
75286         * lib/cycle-check.c (SAME_INODE): Remove definition.
75287         * lib/root-dev-ino.h: Include "same-inode.h".
75288
75289         2006-03-11  Eric Blake  <ebb9@byu.net>
75290
75291         * lib/same.c (same_name): s/base_name/last_component/
75292         * lib/backupfile.c (check_extension, numbered_backup): Likewise.
75293         * lib/filenamecat.c (file_name_concat): Likewise.
75294
75295         2006-03-11  Eric Blake  <ebb9@byu.net>,
75296                     Paul Eggert  <eggert@cs.ucla.edu>
75297
75298         * lib/dirname.h (FILE_SYSTEM_PREFIX_LEN): Move here from dos.m4.
75299         [FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX]: Don't treat 1: as a
75300         drive prefix.
75301         (IS_ABSOLUTE_FILE_NAME): Treat all drive letters as absolute on
75302         platforms like cygwin with FILE_SYSTEM_DRIVE_PREFIX_IS_ABSOLUTE.
75303         (last_component): New method.
75304         * lib/dirname.c (dir_len): Determine when drive letters need a
75305         subsequent slash.  Preserve // when it is special.
75306         (dir_name): Don't append dot when drive letter is absolute.
75307         [TEST_DIRNAME]: Move into a full-blown gnulib test.
75308         * lib/basename.c (base_name): New semantics - malloc the result.
75309         Preserve // when it is special.  Preserve relative files that look
75310         like drive letters.
75311         (base_len): Preserve // when it is special.
75312         (last_component): New method, similar to old base_name semantics.
75313         * lib/stripslash.c (strip_trailing_slashes): Use last_component, not
75314         base_name.  Strip redundant slashes from ///.
75315
75316 2006-07-03  Jim Meyering  <jim@meyering.net>
75317
75318         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Abort if this
75319         macro is used before the first cycle_check call.
75320
75321 2006-07-03  Eric Blake  <ebb9@byu.net>
75322
75323         * modules/dirname (Depends-on): Add xstrndup.
75324
75325 2006-07-02  Paul Eggert  <eggert@cs.ucla.edu>
75326
75327         * m4/stdint.m4 (gl_STDINT_H): Use more-mnemonic identifiers for
75328         test cases, so that config.log is a bit easier to follow.
75329
75330 2006-07-02  Paul Eggert  <eggert@cs.ucla.edu>
75331
75332         * lib/stdint_.h (intmax_t, uintmax_t): Prefer long to long long if
75333         both are 64 bits, since this seems to be the tradition, and this
75334         prevents gcc -Wformat from warning about usages with PRIuMAX.  If
75335         we ever run into a host that prefers long long to long in this
75336         case, we'll need another configure-time test.  Problem reported by
75337         Jim Meyering.
75338
75339 2006-07-02  Eric Blake  <ebb9@byu.net>
75340
75341         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Simplify by using AC_CHECK_DECLS.
75342
75343 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
75344
75345         * modules/inttypes (Depends-on): No longer depends on stdint.
75346         * modules/stdint (Description): Say more about assumptions.
75347         Say that the fast types might differ.  Say macros are used.
75348         (Files): Remove m4/size_max.m4, m4/wchar_t.m4.  Add m4/longlong.m4.
75349         (Makefile.am): Revise list of substituted symbols to match
75350         new stdint.m4.
75351         * modules/stdint-tests (Files): Add m4/wchar_t.m4, m4/wint_t.m4.
75352         (configure.ac): Add gt_TYPE_WCHAR_T, gt_TYPE_WINT_T.
75353         * tests/test-stdint.c (verify_same_types)
75354         [! (__GNUC__ >= 2 && DO_PEDANTIC)]: Put in a decl, so that
75355         the code conforms to C99/C89.
75356         Test for WCHAR_MIN and WCHAR_MAX only if HAVE_WCHAR_T.
75357         Test for WINT_MIN and WINT_MAX only if HAVE_WINT_T.
75358
75359 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
75360
75361         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Backport from Autoconf 2.60,
75362         but fix a bug, by requiring at least 64 bits.
75363         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Likewise.
75364         * m4/longlong.m4 (gl_AC_TYPE_LONG_LONG): Now just call
75365         AC_TYPE_LONG_LONG_INT.  This macro is obsolete and will go soon.
75366         * m4/ulonglong.m4 (gl_AC_TYPE_UNSIGNED_LONG_LONG): Likewise.
75367
75368         * m4/stdint.m4 (gl_STDINT_H): Rewrite to accommodate stdint_.h
75369         changes.  Make 2.59 a prerequisite.  Check and substitute for
75370         HAVE_LONG_LONG_INT.  Rely on Autoconf to check for stdint.h and
75371         inttypes.h.  Do not use special include files; just use the
75372         defaults.  Check for sys/inttypes.h and sys/bitypes.h in the usual
75373         way now.  Remove no-longer-needed tests for HAVE_LONG_64BIT,
75374         HAVE_LONG_LONG_64BIT, int8_t, int16_t, int32_t, int64_t, uint8_t,
75375         uint16_t, uint32_t uint64_t, int_least8_t, int_least16_t,
75376         int_least32_t, int_least64_t, uint_least8_t, uint_least16_t,
75377         uint_least32_t, uint_least64_t, int_fast8_t, int_fast16_t,
75378         int_fast32_t, int_fast64_t, uint_fast8_t uint_fast16_t,
75379         uint_fast32_t, uint_fast64_t, intptr_t, uintptr_t, intmax_t,
75380         uintmax_t, INT8_MIN, INT8_MAX, UINT8_MAX, INT16_MIN, INT16_MAX,
75381         UINT16_MAX, INT32_MIN, INT32_MAX, UINT32_MAX, INT64_MIN,
75382         INT64_MAX, UINT64_MAX, INT_LEAST8_MIN, INT_LEAST8_MAX,
75383         UINT_LEAST8_MAX, INT_LEAST16_MIN, INT_LEAST16_MAX,
75384         UINT_LEAST16_MAX, INT_LEAST32_MIN, INT_LEAST32_MAX,
75385         UINT_LEAST32_MAX, INT_LEAST64_MIN, INT_LEAST64_MAX,
75386         UINT_LEAST64_MAX, INT_FAST8_MIN, INT_FAST8_MAX, UINT_FAST8_MAX,
75387         INT_FAST16_MIN, INT_FAST16_MAX, UINT_FAST16_MAX, INT_FAST32_MIN,
75388         INT_FAST32_MAX, UINT_FAST32_MAX, INT_FAST64_MIN, INT_FAST64_MAX,
75389         UINT_FAST64_MAX, INTPTR_MIN, INTPTR_MAX, UINTPTR_MAX, INTMAX_MIN,
75390         INTMAX_MAX, UINTMAX_MAX, PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN,
75391         SIG_ATOMIC_MAX, SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN,
75392         WINT_MAX.  Check for C99 conformance more strictly, by detecting
75393         bugs in glibc 2.4, Solaris 10, and OpenBSD 3.9.  On the other hand do
75394         not check for things that C99 does not require, e.g., int8_t.  If
75395         a test isn't needed unless <stdint.h> isn't working, and is
75396         unlikely to be needed for any other reason, then don't do it
75397         unless <stdint.h> isn't working.  Do not check for ptrdiff_t or
75398         size_t, since we assume C89 freestanding at least.  Do not check
75399         for sig_atomic_t, wchar_t, or wint_t, since the code now does
75400         the right thing even if the types are not defined.  Instead use:
75401         (gl_STDINT_TYPE_PROPERTIES): New macro.
75402         (gl_HEADER_STDINT_H, gl_HEADER_INTTYPES_H): Remove.  Don't bother
75403         testing whether <sys/types.h> clashes, as Autoconf does this for
75404         us now.  All uses removed.
75405         (gl_STDINT_CHECK_TYPES, gl_STDINT_MISSING_BOUND):
75406         (gl_STDINT_MISSING_BOUNDS, gl_STDINT_MISSING_BOUNDS2):
75407         (gl_CHECK_TYPE_SAME):
75408         Remove; no longer needed.
75409         (gl_STDINT_BITSIZEOF): Don't bother to check whether the type
75410         exists, since we'll return 0 anyway in that case.
75411         (gl_INTEGER_TYPE_SUFFIX, gl_STDINT_INCLUDES): New macros.
75412
75413 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
75414
75415         * lib/stdint_.h (_GL_STDINT_H): Renamed from _STDINT_H, to avoid
75416         possible collision with system files.
75417         (<stdio.h>, <time.h>, <wchar.h>) [defined __cplusplus && ! defined
75418         __STDC_CONSTANT_MACROS)]: Do not include, since we don't need
75419         WCHAR_MIN and WCHAR_MAX in this case.
75420         (<stddef.h>): Do not include; no longer needed.
75421         (<sys/types.h>): Include if @HAVE_SYS_TYPES_H@, not if
75422         (defined(__OpenBSD__) || defined(__bsdi__) || defined(__sgi)).
75423         (<sys/inttypes.h>): Include if @HAVE_SYS_INTTYPES_H@ &&
75424         !@HAVE_INTTYPES_H@, not if (defined(__FreeBSD__)
75425         && (__FreeBSD__ >= 3) && (__FreeBSD__ <= 4)).
75426         (__STDINT_H__) [@HAVE_STDINT_H@ && defined __sgi && ! defined
75427         __c99]: Define, to work around IRIX <stdint.h> incompatibility.
75428         (@FULL_PATH_STDINT_H@) [!(defined(__sgi) && @HAVE_INTTYPES_H@ &&
75429         !defined(__c99))]: Include in this case too, since it's harmless
75430         now.
75431         (<inttypes.h>) [@HAVE_INTTYPES_H@]: Include, since it's no longer
75432         dangerous to do so.
75433         (@FULL_PATH_INTTYPES_H@) [(defined(__hpux) || defined(_AIX)) &&
75434         @HAVE_INTTYPES_H@]: Do not include, since we now include <inttypes.h>.
75435         (_STDINT_MIN, _STDINT_MAX): New macros.
75436         (int8_t, uint8_t, int16_t, uint16_t, int32_t, uint32_t, int64_t):
75437         (uint64_t, int_least8_t, uint_least8_t, int_least16_t):
75438         (uint_least16_t, int_least32_t, uint_least32_t, int_least64_t):
75439         (uint_least64_t, int_fast8_t, uint_fast8_t, int_fast16_t):
75440         (uint_fast16_t, int_fast32_t, uint_fast32_t, int_fast64_t):
75441         (uint_fast64_t, intptr_t, uintptr_t, intmax_t, uintmax_t): Now
75442         macros, not typedefs; this simplifies things quite a bit.
75443         Use long int for all types narrower than int64_t.
75444         (intmax_t, uintmax_t, INTMAX_C, UINTMAX_C):
75445         Define in terms of long long int or int64_t or long int,
75446         not int64_t or int32_t.  This saves some compile-time testing.
75447         (INT8_MIN, INT8_MAX, UINT8_MAX, INT16_MIN, INT16_MAX, UINT16_MAX):
75448         (INT32_MIN, INT32_MAX, UINT32_MAX, INT64_MIN, INT64_MAX):
75449         (UINT64_MAX, INT_LEAST8_MIN, INT_LEAST8_MAX, UINT_LEAST8_MAX):
75450         (INT_LEAST16_MIN, INT_LEAST16_MAX, UINT_LEAST16_MAX):
75451         (INT_LEAST32_MIN, INT_LEAST32_MAX, UINT_LEAST32_MAX):
75452         (INT_LEAST64_MIN, INT_LEAST64_MAX, UINT_LEAST64_MAX, INT_FAST8_MIN):
75453         (INT_FAST8_MAX, UINT_FAST8_MAX, INT_FAST16_MIN, INT_FAST16_MAX):
75454         (UINT_FAST16_MAX, INT_FAST32_MIN, INT_FAST32_MAX, UINT_FAST32_MAX):
75455         (INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX, INTPTR_MIN):
75456         (INTPTR_MAX, UINTPTR_MAX, INTMAX_MIN, INTMAX_MAX, UINTMAX_MAX):
75457         (PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX):
75458         (SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN, WINT_MAX):
75459         undef any previous version and define our own version, for
75460         simplicity and consistency with the new macros for types.
75461         (PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX):
75462         (SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN, WINT_MAX):
75463         Simplify definitions by using _STDINT_MIN and _STDINT_MAX
75464         where appropriate.  Rely on new symbols @PTRDIFF_T_SUFFIX@,
75465         @SIG_ATOMIC_T_SUFFIX@, @SIZE_T_SUFFIX@, @WCHAR_T_SUFFIX@,
75466         @WINT_T_SUFFIX@ to keep things simple here.
75467         (UINT8_C, UINT16_C, UINT32_C, INT64_C, UINT64_C):
75468         Simplify by assuming typical 8/16/32/64 host, since we're
75469         already doing that elsewhere anyway.
75470         Use (LONG_MAX >> 31 >> 31 == 1) rather than @HAVE_LONG_64BIT@,
75471         and assume long long int is 64 bits if available.  This
75472         speeds up 'configure'.
75473
75474 2006-07-01  Eric Blake  <ebb9@byu.net>
75475
75476         * m4/stdarg.m4 (gl_STDARG_H): Use proper AH_VERBATIM.
75477         Reported by Andreas Buening.
75478
75479 2006-07-01  Eric Blake  <ebb9@byu.net>
75480
75481         * m4/stdarg.m4 (gl_STDARG_H): Properly parenthesize gl_va_copy.
75482
75483 2006-06-30  Jim Hyslop  <jhyslop@dreampossible.ca>  (tiny change)
75484
75485         * lib/getaddrinfo.c: fixed typo
75486
75487 2006-06-29  Jim Meyering  <jim@meyering.net>
75488
75489         * modules/strftime (Maintainer): Add my name, since with the
75490         FPRINTFTIME changes strftime.c has forked from glibc.
75491
75492 2006-06-29  Eric Blake  <ebb9@byu.net>
75493
75494         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Use AC_C_INLINE.
75495
75496 2006-06-29  Eric Blake  <ebb9@byu.net>
75497
75498         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): New file.
75499
75500 2006-06-29  Eric Blake  <ebb9@byu.net>
75501
75502         * lib/stat_.h: New file.
75503
75504 2006-06-29  Eric Blake  <ebb9@byu.net>
75505
75506         * lib/stat_.h (rpl_mkdir): Declare inline, to avoid warnings about
75507         unused static function.
75508
75509 2006-06-29  Eric Blake  <ebb9@byu.net>
75510
75511         * doc/functions.texi (Function Portability): Document missing lstat
75512         on mingw.
75513
75514 2006-06-29  Eric Blake  <ebb9@byu.net>
75515
75516         * MODULES.html.sh: Add sys_stat.
75517         * modules/sys_stat: New module.
75518         * modules/mkstemp (Depends-on): Add sys_stat.
75519
75520 2006-06-29  Derek R. Price  <derek@ximbiot.com>
75521
75522         * m4/strftime.m4: Don't call AC_FUNC_STRFTIME.
75523
75524 2006-06-29  Derek R. Price  <derek@ximbiot.com>
75525
75526         * m4/c-bs-a.m4: Removed.
75527
75528 2006-06-29  Derek R. Price  <derek@ximbiot.com>
75529
75530         * lib/strftime.c: Assume strftime() exists.
75531
75532 2006-06-29  Derek Price  <derek@ximbiot.com>
75533
75534         * modules/c-bs-a: Removed - \a is C89.
75535         * MODULES.html.sh: Remove c-bs-a.
75536
75537 2006-06-29  Bruno Haible  <bruno@clisp.org>
75538
75539         * modules/wcwidth (License): Change to LGPL.
75540
75541 2006-06-28  Simon Josefsson  <jas@extundo.com>
75542
75543         * tests/test-getaddrinfo.c: Test getnameinfo too.  Call WSAStartup
75544         on _WIN32.
75545
75546         * modules/getaddrinfo (Depends-on): Add inet_ntop, needed by
75547         getnameinfo.
75548
75549 2006-06-28  Simon Josefsson  <jas@extundo.com>
75550
75551         * m4/getaddrinfo.m4: Look for getnameinfo prototypes too.
75552
75553 2006-06-28  Simon Josefsson  <jas@extundo.com>
75554
75555         * lib/getaddrinfo.c: Try to load ws2_32.dll on Windows, to find the
75556         functions there.  It will succeed on Windows XP, but on Windows
75557         2000 and (presumably) earlier, it will fail, and use the internal
75558         re-implementation.
75559         (use_win32_p): New function.
75560         (getaddrinfo): Use strtoul on servname, to support numeric ports.
75561         Support AI_NUMERICSERV to disable getservbyname.
75562         (getnameinfo): New function, only supports
75563         NI_NUMERICHOST|NI_NUMERICSERV for now.
75564
75565         * lib/getaddrinfo.h: Test and check for AI_* flags separately, MinGW
75566         only have some of them.  Add AI_NUMERICSERV.  Add prototype for
75567         getnameinfo.
75568
75569 2006-06-28  Eric Blake  <ebb9@byu.net>
75570
75571         * modules/wcwidth: New file.
75572         * modules/mbchar (Depends-on): Add wcwidth.
75573         * modules/mbswidth (Depends-on): Add wcwidth.
75574         * MODULES.html.sh: Add wcwidth.
75575
75576 2006-06-28  Eric Blake  <ebb9@byu.net>
75577
75578         * m4/mbswidth.m4 (gl_MBSDWIDTH): Move wcwidth from here...
75579         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): ...to this new file.
75580
75581 2006-06-28  Eric Blake  <ebb9@byu.net>
75582
75583         * lib/xvasprintf.h: Fix comments.
75584
75585 2006-06-28  Eric Blake  <ebb9@byu.net>
75586
75587         * lib/mbchar.h (wcwidth): Include wcwidth.h.
75588         * lib/mbswidth.c (wcwidth): Move from here...
75589         * lib/wcwidth.h: ...to this new file.
75590
75591 2006-06-28  Derek R. Price  <derek@ximbiot.com>
75592
75593         * m4/savedir.m4: Remove AC_FUNC_CLOSEDIR_VOID requirement.
75594
75595         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Don't require AC_C_CONST, since
75596         it's obsolete.
75597         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Likewise.
75598
75599 2006-06-28  Derek R. Price  <derek@ximbiot.com>
75600
75601         * lib/savedir.c (CLOSEDIR): Remove.  All uses changed to closedir.
75602         Autoconf 2.60 says this stuff was obsolete.
75603
75604 2006-06-28  Bruno Haible  <bruno@clisp.org>
75605
75606         * modules/wcwidth (Files): Add m4/wchar_t.m4.
75607
75608 2006-06-28  Bruno Haible  <bruno@clisp.org>
75609
75610         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Also require AC_C_INLINE and
75611         gt_TYPE_WCHAR_T.
75612
75613 2006-06-28  Bruno Haible  <bruno@clisp.org>
75614
75615         * lib/wcwidth.h: Declare nothing if !HAVE_WCHAR_T. Provide a fallback
75616         declaration for wcwidth.
75617         * lib/mbswidth.c: Restore the includes of <wchar.h> and <wctypes.h>.
75618
75619 2006-06-28  Bruno Haible  <bruno@clisp.org>
75620
75621         * lib/mkdtemp.c [MINGW]: Include <io.h>.
75622         (mkdir): Define using _mkdir.
75623
75624 2006-06-28  Bruno Haible  <bruno@clisp.org>
75625
75626         * lib/getaddrinfo.h: Fix POSIX URL.
75627         * lib/getaddrinfo.c (WIN32_NATIVE): New macro. Use it instead of
75628         _WIN32.
75629         (use_win32_p): Make static.
75630         (getaddrinfo): Reject service name if it is empty or does not consist
75631         solely of decimal digits, or if its value is > 65535.
75632         (getnameinfo): Remove useless casts.
75633
75634 2006-06-27  Simon Josefsson  <jas@extundo.com>
75635
75636         * modules/sys_select: New file, suggested by Bruno Haible, Paul
75637         Eggert and Martin Lambers.
75638
75639 2006-06-27  Simon Josefsson  <jas@extundo.com>
75640
75641         * m4/sys_select_h.m4: New file, suggested by Bruno Haible, Paul
75642         Eggert and Martin Lambers.
75643
75644 2006-06-27  Bruno Haible  <bruno@clisp.org>
75645
75646         * m4/stdint.m4 (gl_STDINT_BITSIZEOF): For nonexistent types, set the
75647         result to 0, not to empty.
75648         Reported by Martin Neitzel <neitzel@sco.gaertner.de>.
75649
75650 2006-06-27  Bruno Haible  <bruno@clisp.org>
75651
75652         * lib/stdint_.h (intmax_t, uintmax_t): Undefine before typedef.
75653
75654 2006-06-26  Simon Josefsson  <jas@extundo.com>
75655
75656         * m4/inet_ntop.m4: Don't check for sys/types.h, we assume it is
75657         present.
75658
75659 2006-06-26  Paul Eggert  <eggert@cs.ucla.edu>
75660
75661         * lib/base64.c (B64): Use _ as the formal parameter, not x, to avoid
75662         bug in IBM C V6 for AIX.  Problem reported by Larry Jones in
75663         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00181.html>.
75664
75665 2006-06-26  Mark D. Baushke  <mdb@gnu.org>
75666
75667         * m4/stdint.m4 (gl_STDINT_H): Treat BSD/OS like OpenBSD.
75668
75669 2006-06-26  Bruno Haible  <bruno@clisp.org>
75670
75671         * modules/stdint (Makefile.am): Also substitute HAVE_WCHAR_H.
75672
75673 2006-06-26  Bruno Haible  <bruno@clisp.org>
75674
75675         * m4/stdint.m4 (gl_STDINT_H): Test also for <wchar.h>.
75676
75677 2006-06-26  Bruno Haible  <bruno@clisp.org>
75678
75679         * m4/stdint.m4 (gl_STDINT_H): Don't include <stdint.h> when using the
75680         SGI C compiler in pre-C99 mode.
75681         Suggested by Mark D. Baushke and Larry Jones.
75682
75683 2006-06-26  Bruno Haible  <bruno@clisp.org>
75684
75685         * lib/stdint_.h: Include <wchar.h> if necessary for WCHAR_MIN or
75686         WCHAR_MAX.
75687         Reported by Mark D. Baushke and Larry Jones.
75688
75689 2006-06-26  Bruno Haible  <bruno@clisp.org>
75690
75691         * lib/stdint_.h: Don't include <stdint.h> when using the SGI C compiler
75692         in pre-C99 mode.
75693         Suggested by Mark D. Baushke and Larry Jones.
75694
75695 2006-06-23  Simon Josefsson  <jas@extundo.com>
75696             Bruno Haible  <bruno@clisp.org>
75697
75698         * gnulib-tool (func_emit_lib_Makefile_am): Define MOSTLYCLEANDIRS.
75699         Emit mostlyclean-local rule.
75700         (func_emit_tests_Makefile_am): Likewise.
75701         * modules/sys_socket (Makefile.am): Use MOSTLYCLEANDIRS.
75702
75703 2006-06-23  Mark D. Baushke  <mdb@gnu.org>
75704
75705         * lib/stdint_.h: Treat BSD/OS like OpenBSD.
75706
75707 2006-06-23  Bruno Haible  <bruno@clisp.org>
75708
75709         * tests/test-stdint.c: Update to match ISO C 99 Technical
75710         Corrigendum 1.
75711
75712 2006-06-23  Bruno Haible  <bruno@clisp.org>
75713
75714         * m4/stdint.m4 (gl_STDINT_H): Treat IRIX like OpenBSD.
75715
75716 2006-06-23  Bruno Haible  <bruno@clisp.org>
75717
75718         * lib/stdint_.h: Treat IRIX like OpenBSD.
75719
75720 2006-06-23  Bruno Haible  <bruno@clisp.org>
75721
75722         * lib/stdint_.h (UINT8_C, UINT16_C, UINT32_C): Define according to
75723         ISO C 99 Technical Corrigendum 1.
75724
75725 2006-06-22  Simon Josefsson  <jas@extundo.com>
75726
75727         * m4/sockpfaf.m4: Include winsock2.h too, to make it work under
75728         MinGW.
75729
75730 2006-06-22  Paul Eggert  <eggert@cs.ucla.edu>
75731
75732         * lib/glob.c (collated_compare): Remove 'const' uses that weren't
75733         needed.  Some compiler complained about some of them.  Problem reported
75734         by Larry Jones in
75735         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00172.html>.
75736
75737 2006-06-21  Simon Josefsson  <jas@extundo.com>
75738
75739         * tests/test-getaddrinfo.c: New file.
75740
75741         * modules/getaddrinfo-tests: New file.
75742
75743         * MODULES.html.sh: Add inet_pton.
75744
75745         * modules/inet_pton: New file.
75746
75747 2006-06-21  Simon Josefsson  <jas@extundo.com>
75748
75749         * m4/getaddrinfo.m4: Don't define WINVER.  Look for gethostbyname in
75750         -lws2_32 too.  Fixes getaddrinfo on Windows 2000, with the price
75751         of using the (limited) gnulib implementation on Windows XP.
75752
75753         * m4/inet_pton.m4: New file.
75754
75755 2006-06-21  Simon Josefsson  <jas@extundo.com>
75756
75757         * lib/getaddrinfo.c (getaddrinfo): Set ai_family in the return
75758         variable.
75759
75760         * lib/socket_.h: Don't define WINVER.
75761
75762         * lib/inet_pton.h, inet_pton.c: New file, taken from glibc but
75763         slightly modified to work in gnulib.
75764
75765 2006-06-21  Simon Josefsson  <jas@extundo.com>
75766
75767         * doc/gnulib.texi (Windows sockets): Add.
75768
75769 2006-06-21  Paul Eggert  <eggert@cs.ucla.edu>
75770
75771         * lib/read-file.c (fread_file): Start with buffer allocation of
75772         0 bytes rather than 1 byte; this simplifies the code.
75773         Don't invoke feof; it's not needed.  Refactor to avoid duplicate
75774         code to free buffer and save/restore errno.
75775         (internal_read_file): Remove unused local.
75776
75777 2006-06-20  Paul Eggert  <eggert@cs.ucla.edu>
75778
75779         * lib/openat.c (openat): Use ?:, not if, to work around GCC bug 4210
75780         <http://gcc.gnu.org/bugzilla/show_bug.cgi?id=4210>.
75781         Problem reported by Denis Excoffier in
75782         <http://lists.gnu.org/archive/html/bug-tar/2006-06/msg00023.html>.
75783
75784 2006-06-19  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
75785
75786         * modules/sys_socket, modules/socklen: Include sys/types since
75787         FreeBSD 4.x's sys/socket.h needs it.
75788
75789 2006-06-19  Simon Josefsson  <jas@extundo.com>
75790
75791         * lib/inet_ntop.c: Always build inet_ntop4, since inet_ntop6 calls it.
75792
75793 2006-06-19  Paul Eggert  <eggert@cs.ucla.edu>
75794
75795         * lib/alloca_.h (alloca) [defined alloca]: Don't define or declare.
75796
75797 2006-06-19  Bruno Haible  <bruno@clisp.org>
75798
75799         * m4/stdint.m4 (gl_STDINT_H): Enclose the values of FULL_PATH_STDINT_H
75800         and FULL_PATH_INTTYPES_H in angle brackets.
75801         Reported by Mark D. Baushke <mdb@gnu.org>.
75802
75803 2006-06-17  Eric Blake  <ebb9@byu.net>
75804
75805         * m4/rmdir-errno.m4 (gl_FUNC_FMDIR_NOTEMPTY): Assume errno.h declares
75806         errno.
75807
75808 2006-06-17  Bruno Haible  <bruno@clisp.org>
75809
75810         * m4/stdint.m4 (gl_STDINT_H) [FreeBSD >= 5]: Don't include
75811         <sys/inttypes.h>.
75812
75813 2006-06-17  Bruno Haible  <bruno@clisp.org>
75814
75815         * m4/setenv.m4 (gl_PREREQ_SETENV, gl_PREREQ_UNSETENV): Remove test
75816         whether errno is declared. Assume <errno.h> declares errno.
75817
75818 2006-06-17  Bruno Haible  <bruno@clisp.org>
75819
75820         * lib/stdint_.h [FreeBSD >= 5]: Don't include <sys/inttypes.h>.
75821
75822 2006-06-17  Bruno Haible  <bruno@clisp.org>
75823
75824         * lib/stdint_.h (_UINT8_T, _UINT32_T, _UINT64_T): New macros. Fixes a
75825         problem on Solaris 2.5.1.
75826
75827 2006-06-16  Eric Blake  <ebb9@byu.net>
75828
75829         * lib/unsetenv.c [!defined errno]: Assume errno.h declares errno.
75830         * lib/unicodeio.c [!defined errno]: Likewise.
75831         * lib/strtol.c [!defined errno]: Likewise.
75832         * lib/strtod.c [!defined errno]: Likewise.
75833
75834 2006-06-15  Eric Blake  <ebb9@byu.net>
75835
75836         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Work in spite of -Werror.
75837
75838 2006-06-15  Eric Blake  <ebb9@byu.net>
75839
75840         * config/srclist.txt (ssize_t.m4): Lose sync.
75841
75842 2006-06-15  Bruno Haible  <bruno@clisp.org>
75843
75844         * modules/stdint (Files): Include m4/full-header-path.m4,
75845         m4/size_max.m4, m4/wchar_t.m4.
75846         (Makefile.am): Many more substitutions.
75847         * modules/stdint-tests: New file.
75848         * tests/test-stdint.c: New file.
75849
75850 2006-06-15  Bruno Haible  <bruno@clisp.org>
75851
75852         * m4/stdint.m4 (gl_STDINT_H): Rewritten to produce a complete stdint.h.
75853         (gl_HEADER_STDINT_H, gl_HEADER_INTTYPES_H, gl_STDINT_CHECK_TYPES,
75854         gl_STDINT_MISSING_BOUND, gl_STDINT_MISSING_BOUNDS,
75855         gl_STDINT_MISSING_BOUNDS2, gl_STDINT_BITSIZEOF, gl_CHECK_TYPES_SIGNED,
75856         gl_CHECK_TYPE_SAME): New macros.
75857
75858 2006-06-15  Bruno Haible  <bruno@clisp.org>
75859
75860         * m4/size_max.m4 (gl_SIZE_MAX): Make it work also when cross-compiling.
75861
75862 2006-06-15  Bruno Haible  <bruno@clisp.org>
75863
75864         * lib/stdint_.h: Rewritten to be fully auto-configured.
75865         Fixes bug on HP-UX/IA64.
75866
75867 2006-06-11  Paul Eggert  <eggert@cs.ucla.edu>
75868
75869         * lib/getdate.y (__attribute__): Don't define if already defined.
75870         Problem reported by Larry Jones.
75871         * lib/utimens.c (__attribute__): Likewise.
75872
75873 2006-06-04  Paul Eggert  <eggert@cs.ucla.edu>
75874
75875         * lib/regexec.c (group_nodes_into_DFAstates): Fix a buffer overrun
75876         reported by Andreas Schwab.
75877
75878 2006-05-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
75879             Bruno Haible  <bruno@clisp.org>
75880
75881         * m4/strndup.m4 (gl_FUNC_STRNDUP): Replace the AC_REPLACE_FUNCS with a
75882         check for the declaration of strnlen and a run test that exposes the
75883         AIX 5.1 strnlen bug.  In the failure case, #define strndup to
75884         rpl_strndup.
75885
75886 2006-05-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
75887             Bruno Haible  <bruno@clisp.org>
75888
75889         * lib/strndup.c (strndup) [!_LIBC]: Don't undefine macro definition.
75890
75891 2006-05-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
75892
75893         * m4/c-strtod.m4 (gl_C99_STRTOLD): Use a link test rather than a
75894         compile test, for Tru64 4.0D.
75895
75896 2006-05-28  Karl Berry  <karl@gnu.org>
75897
75898         * config/srclist.txt (printf-args.c): lose sync.
75899
75900 2006-05-26  Martin Lambers  <marlam@marlam.de>
75901
75902         * lib/getpass.c: Updates the test for the native W32 API, and adds
75903         missing includes, thus fixing compilation warnings.
75904
75905 2006-05-25  Sergey Poznyakoff  <gray@gnu.org.ua>
75906
75907         * lib/exclude.c (exclude_fnmatch): New function.
75908         (excluded_file_name): Call exclude_fnmatch.
75909         * lib/exclude.h (excluded_file_name): New prototype
75910
75911 2006-05-25  Paul Eggert  <eggert@cs.ucla.edu>
75912
75913         * lib/tempname.c (small_open, large_open): New macros.
75914         (__open, __open64) [!_LIBC]: Remove.
75915         (__gen_tempname): Use small_open and large_open instead of __open
75916         and __open64.  This fixes a portability bug on HP-UX 11.11i
75917         reported by Simon Wing-Tang in
75918         <http://lists.gnu.org/archive/html/bug-coreutils/2006-05/msg00114.html>.
75919
75920 2006-05-24  Bruno Haible  <bruno@clisp.org>
75921
75922         * lib/printf-args.c (printf_fetchargs): Turn NULL pointers for
75923         TYPE_STRING and TYPE_WIDE_STRING into a non-NULL replacement.
75924         Reported by Thorsten Maerz <torte@netztorte.de> via
75925         Aaron Stone <aaron@serendipity.cx>.
75926
75927 2006-05-19  Paul Eggert  <eggert@cs.ucla.edu>
75928
75929         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Rename cache variables to use
75930         gl_ rather than jm_.  Link, don't run, so that cross-compiles are
75931         allowed.  Check that resulting type is arithmetic.  Move AC_REQUIRE
75932         and AC_CHECK_HEADERS_ONCE outside of AC_CACHE_CHECK, since they're
75933         not really conditional on the cache.
75934         (gl_PREREQ_NANOSLEEP): Check for sys/select.h.
75935
75936 2006-05-19  Paul Eggert  <eggert@cs.ucla.edu>
75937
75938         * lib/nanosleep.c [HAVE_SYS_SELECT_H]: Include <sys/select.h>.
75939         Use the usual Autoconf way to include <time.h> and/or sys/time.h.
75940         (my_usleep): Don't mishandle maximum value.
75941
75942 2006-05-19  Jim Meyering  <jim@meyering.net>
75943
75944         * lib/getugroups.c: Correct an outdated comment.  From Bruno Haible.
75945
75946 2006-05-17  Bruno Haible  <bruno@clisp.org>
75947
75948         Cygwin portability.
75949         * lib/classpath.c (PATH_SEPARATOR) [CYGWIN]: Define as ':'.
75950
75951 2006-05-17  Bruno Haible  <bruno@clisp.org>
75952
75953         * lib/stdint_.h: Fix recognition of Cygwin.
75954
75955 2006-05-15  Bruno Haible  <bruno@clisp.org>
75956
75957         * build-aux/config.rpath: Improve support for Sun C 5.9 on Linux, based
75958         on libtool patch by Ralf Wildenhues.
75959
75960 2006-05-14  Paul Eggert  <eggert@cs.ucla.edu>
75961
75962         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Fix overly-picky
75963         test for C99 conformance; (bool) 0.5 is an integer constant
75964         expression, but (bool) -0.5 is not.  Problem reported by Fedor
75965         Sergeev in <http://forum.sun.com/jive/thread.jspa?threadID=96202>.
75966
75967 2006-05-11  Simon Josefsson  <jas@extundo.com>
75968
75969         * m4/xvasprintf.m4: Fix obvious typo.
75970
75971 2006-05-11  Jim Meyering  <jim@meyering.net>
75972
75973         * lib/sha1.c (sha1_buffer): Correct comment: s/MD5/SHA1/.  From
75974         James Lemley.
75975
75976 2006-05-10  Simon Josefsson  <jas@extundo.com>
75977
75978         * lib/md4.c: Typo fix, update copyright years.
75979         (K1, K2): Don't use L because it turn computations into 64-bit on
75980         64-bit platforms.
75981
75982 2006-05-10  Paul Eggert  <eggert@cs.ucla.edu>
75983
75984         * lib/crc.c (crc32_update): Remove unnecessary L suffix.
75985         * lib/md4.c (rol): Cast right-shift arg to uint32_t to prevent
75986         unwanted sign propagation, e.g., on hosts with 64-bit int.
75987         There still are some problems with reeelly weird theoretical hosts
75988         (e.g., 33-bit int) but it's not worth worrying about now.
75989         * lib/sha1.c (rol): Likewise.
75990         (K1, K2, K3, K4): Remove unnecessary L suffix.
75991
75992 2006-05-10  Bruno Haible  <bruno@clisp.org>
75993
75994         * lib/des.c: Cast to avoid warnings.
75995
75996 2006-05-09  Bruno Haible  <bruno@clisp.org>
75997
75998         * modules/xvasprintf (Files): Add m4/xvasprintf.m4.
75999         (Depends-on): Depend also on xsize, stdarg.
76000         (configure.ac): Add gl_XVASPRINTF.
76001
76002 2006-05-09  Bruno Haible  <bruno@clisp.org>
76003
76004         * m4/xvasprintf.m4: New file.
76005
76006 2006-05-09  Bruno Haible  <bruno@clisp.org>
76007
76008         * lib/xvasprintf.c: Include limits.h, string.h, xsize.h.
76009         (EOVERFLOW): Define fallback value.
76010         (xstrcat): New function.
76011         (xvasprintf): Recognize the special case of a string concatenation.
76012
76013 2006-05-08  Eric Blake  <ebb9@byu.net>
76014
76015         * gnulib-tool (func_version): Base copyright year on CVS date.
76016         (func_emit_copyright_notice): New function.
76017         (func_emit_lib_Makefile_am): Use it.
76018         (func_emit_tests_Makefile_am): Likewise.
76019         (func_import): Likewise.
76020
76021 2006-05-08  Bruno Haible  <bruno@clisp.org>
76022
76023         * modules/stdarg: New file.
76024         * MODULES.html.sh (func_all_modules): Add section for <stdarg.h>.
76025
76026 2006-05-08  Bruno Haible  <bruno@clisp.org>
76027
76028         * m4/stdarg.m4: New file, from GNU gettext.
76029
76030 2006-05-08  Bruno Haible  <bruno@clisp.org>
76031
76032         * config/srclist.txt (build-aux/config.rpath): different from latest
76033         release.
76034
76035 2006-05-08  Bruno Haible  <bruno@clisp.org>
76036
76037         * build-aux/config.rpath: Add support for Sun C 5.9 on Linux.
76038
76039 2006-05-05  Jim Meyering  <jim@meyering.net>
76040
76041         * m4/warning.m4: New file, derived from bison's file by the same name.
76042
76043 2006-05-03  Bruno Haible  <bruno@clisp.org>
76044
76045         * lib/stdint_.h: Shorter URL.
76046         * lib/inttypes.h: Likewise.
76047
76048 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
76049
76050         * modules/inttypes (Maintainer): Change from Derek Price to 'all'.
76051
76052 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
76053
76054         * lib/verify.h: Document the internals better.  Most of this change
76055         was written by Bruno Haible.
76056
76057 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
76058
76059         * doc/verify.texi: New file, partly based on a proposal by
76060         Bruno Haible.
76061
76062 2006-05-02  Bruno Haible  <bruno@clisp.org>
76063
76064         * m4/full-header-path.m4 (gl_FULL_HEADER_PATH): Move the include_next
76065         test from here...
76066         * m4/_inttypes_h.m4 (gl_INTTYPES_H): ... to here.
76067
76068 2006-04-29  Bruno Haible  <bruno@clisp.org>
76069
76070         * lib/gcd.c: Use WORD_T and GCD instead of unsigned long and gcd.
76071         Suggested by Oskar Liljeblad <oskar@osk.mine.nu>.
76072
76073 2006-04-29  Bruno Haible  <bruno@clisp.org>
76074
76075         * gnulib-tool: Make --update option actually work.
76076
76077 2006-04-29  Bruno Haible  <bruno@clisp.org>
76078
76079         * doc/gcd.texi: New file.
76080         * doc/gnulib.texi: Include it.
76081
76082 2006-04-25  Paul Eggert  <eggert@cs.ucla.edu>
76083
76084         * lib/getdate.y (get_date): When adding relative date, start with the
76085         initial time, not with the result of the first mktime call.
76086
76087 2006-04-25  Bruno Haible  <bruno@clisp.org>
76088
76089         * gnulib-tool (func_import): Output the include directives in three
76090         blocks, sorted separately.
76091         Reported by Ben Pfaff <blp@cs.stanford.edu>.
76092
76093 2006-04-24  Paul Eggert  <eggert@cs.ucla.edu>
76094
76095         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Use prototype
76096         to define main with arguments, for C++.  Reported by Eric Blake.
76097         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC):
76098         Prefer 'int main ()' to 'int main (void)', for C++.
76099         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
76100         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Specify a return type
76101         for 'main', for C99 and C++.
76102
76103 2006-04-24  Paul Eggert  <eggert@cs.ucla.edu>
76104
76105         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Use return, not exit.
76106         Don't assume that exit status -1 is valid.
76107         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
76108         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
76109         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
76110         * m4/readdir.m4 (GL_FUNC_READDIR): Include <stdlib.h>.
76111         * m4/rename.m4 (vb_FUNC_RENAME): Likewise.
76112         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Use AC_RUN_IFELSE,
76113         not AC_TRY_RUN.  Use return, not exit.  Don't assume that
76114         functions can be used without declaring them, or that you can
76115         exit with status -1.
76116         * m4/utimes-null.m4 (gl_FUNC_UTIMES_NULL): Likewise.
76117
76118 2006-04-24  Karl Berry  <karl@gnu.org>
76119
76120         * config/srclist.txt (longdouble.m4): sync lost.
76121
76122 2006-04-24  Eric Blake  <ebb9@byu.net>
76123
76124         * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): Avoid unused variable warning.
76125
76126 2006-04-24  Bruno Haible  <bruno@clisp.org>
76127
76128         * m4/poll.m4 (gl_FUNC_POLL): When cross-compiling, reject also the
76129         poll() implementation in AIX.
76130         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
76131
76132 2006-04-24  Bruno Haible  <bruno@clisp.org>
76133
76134         * m4/poll.m4 (gl_FUNC_POLL): Rearrange code, so that POLL_H gets
76135         assigned exactly once.
76136
76137 2006-04-23  Claudio Fontana  <claudio@gnu.org>
76138             Bruno Haible  <bruno@clisp.org>
76139
76140         * modules/gettext (Makefile.am): Add a -I flag for <libintl.h>.
76141         * gnulib-tool (func_emit_lib_Makefile_am): Emit empty default value
76142         for AM_CPPFLAGS.
76143
76144 2006-04-23  Bruno Haible  <bruno@clisp.org>
76145
76146         * modules/copy-file: Depend on unistd.
76147         * modules/execute: Likewise.
76148         * modules/fatal-signal: Likewise.
76149         * modules/findprog: Likewise.
76150         * modules/mkdtemp : Likewise.
76151         * modules/pipe: Likewise.
76152         * modules/wait-process: Likewise.
76153
76154 2006-04-23  Bruno Haible  <bruno@clisp.org>
76155
76156         * lib/fwriteerror.c (fwriteerror): Call fclose also when an error
76157         condition was already detected.
76158         Reported by Ben Pfaff <blp@cs.stanford.edu>.
76159
76160 2006-04-23  Bruno Haible  <bruno@clisp.org>
76161
76162         * lib/copy-file.c: Include <unistd.h> unconditionally.
76163         * lib/execute.c: Likewise.
76164         * lib/fatal-signal.c: Likewise.
76165         * lib/findprog.c: Likewise.
76166         * lib/mkdtemp.c: Likewise.
76167         * lib/pipe.h: Likewise.
76168         * lib/pipe.c: Likewise.
76169         * lib/wait-process.h: Likewise.
76170
76171 2006-04-23  Bruno Haible  <bruno@clisp.org>
76172
76173         * gnulib-tool (func_usage): Fix --import description. Document
76174         --update.
76175         (func_import): Create temporary file in a temporary directory, if
76176         --dry-run is specified. Silence errors from 'grep' when there are no
76177         m4 files in $m4dir.
76178         (func_create_testdir): Silence errors from 'grep' when there are no
76179         m4 files in $m4dir.
76180         Reported by Karl Berry <karl@freefriends.org>.
76181
76182 2006-04-20  Bruno Haible  <bruno@clisp.org>
76183
76184         * m4/argp.m4 (gl_ARGP): Don't call AC_CHECK_DECLS_ONCE with more than
76185         one argument, so that the code will be portable to Autoconf 2.60.
76186         * m4/getlogin_r.m4 (gl_PREREQ_GETLOGIN_R): Likewise.
76187         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
76188         * m4/unlocked-io.m4 (gl_FUNC_GLIBC_UNLOCKED_IO): Likewise.
76189
76190 2006-04-19  Derek Price  <derek@ximbiot.com>
76191             Eric Blake  <ebb9@byu.net>
76192
76193         * m4/full-header-path.m4 (gl_FULL_HEADER_PATH): Use </full/path.h>
76194         rather than "/full/path.h".  Update comment to match.  Shorten &
76195         generalize m4_translit call via AS_TR_CPP.
76196
76197 2006-04-19  Derek Price  <derek@ximbiot.com>
76198             Eric Blake  <ebb9@byu.net>
76199
76200         * lib/inttypes.h: Correct grammar in comment.
76201
76202 2006-04-18  Derek Price  <derek@ximbiot.com>
76203             Paul Eggert  <eggert@cs.ucla.edu>
76204
76205         * modules/inttypes: New file.
76206         * modules/strtoimax, modules/strtoumax: Depend on inttypes.
76207
76208 2006-04-18  Derek Price  <derek@ximbiot.com>
76209             Paul Eggert  <eggert@cs.ucla.edu>
76210
76211         * m4/_inttypes_h.m4, m4/full-header-path.m4, m4/include_next.m4:
76212         New files.
76213
76214 2006-04-18  Derek Price  <derek@ximbiot.com>
76215             Paul Eggert  <eggert@cs.ucla.edu>
76216
76217         * lib/inttypes.h: New file.
76218         * lib/strtoimax.c: Assume <inttypes.h>.
76219
76220 2006-04-15  Paul Eggert  <eggert@cs.ucla.edu>
76221
76222         * lib/utimens.c (futimens): glibc futimesat messes up if /proc
76223         isn't mounted.  Problem reported by Kir Kolyshkin.
76224
76225 2006-04-13  Paul Eggert  <eggert@cs.ucla.edu>
76226
76227         * lib/regcomp.c (init_dfa): Don't use wchar_t or wctype_t if
76228         RE_ENABLE_I18N is not defined.  Problem reported by Mark D. Baushke via
76229         Derek R. Price.
76230         * lib/regex.h (RE_DUP_MAX): Update comment to match current
76231         implementation.
76232
76233 2006-04-12  Eric Blake  <ebb9@byu.net>
76234
76235         * modules/time_r (Makefile.am): Remove lib_SOURCES line, as this
76236         is now done automatically by the corresponding Autoconf macro.
76237
76238 2006-04-11  Paul Eggert  <eggert@cs.ucla.edu>
76239
76240         * m4/time_r.m4 (gl_TIME_R): Add AC_LIBSOURCES for time_r.c and
76241         time_r.h.
76242
76243 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
76244
76245         Merge regex changes from libc, removing some of our
76246         POSIX-conformance changes that were rejected and redoing them in a
76247         less-intrusive way.
76248
76249         * lib/regcomp.c (re_compile_internal, init_dfa):
76250         Length arg is now size_t, not Idx.  All uses changed.
76251         (peek_token): Forward decl now says internal_function.
76252         (__re_error_msgid, __re_error_msgid_idx):
76253         Now static rather than extern with attribute_hidden.
76254         (re_compile_pattern) [!defined _LIBC]: Use K&R-style defn.
76255         For some reason libc prefers K&R style defns for external functions.
76256         (regerror) [!defined _LIBC]: Likewise.
76257         (re_set_syntax, re_compile_fastmap, regcomp, regfree, re_comp):
76258         (seek_collating_symbol_entry, lookup_collation_sequence_value):
76259         (build_range_exp, build_collating_symbol):
76260         Use K&R-style defn.
76261         (re_compile_fastmap): Use '\0' to memset, not 0.
76262         (utf8_sb_map): Make the calculations more obvious.
76263         (init_dfa, parse_bracket_exp, build_charclass_op):
76264         Call calloc and cast result, as glibc does.
76265         (init_word_char, fetch_token, peek_token, peek_token_bracket):
76266         (build_range_exp, build_collating_symbol):
76267         Now internal functions.
76268
76269         * lib/regex.c [!defined _LIBC]: Allow compiling with C++ compilers.
76270
76271         * lib/regex.h (__USE_GNU_REGEX): New macro.  Don't depend on
76272         _REGEX_SOURCE any more; depend on _GNU_SOURCE instead.
76273         Don't depend on VMS; depend on __VMS instead, for POSIX
76274         namespace cleanness.
76275         (regoff_t): Define to ssize_t, not long int.
76276
76277         Remove the REG_ macros named below.  Instead, make the old names
76278         (e.g., RE_BACKSLASH_ESCAPE_IN_LISTS) visible only if
76279         __USE_GNU_REGEX.
76280         (REG_BACKSLASH_ESCAPE_IN_LISTS):
76281         (REG_BK_PLUS_QM, REG_CHAR_CLASSES, REG_CONTEXT_INDEP_ANCHORS):
76282         (REG_CONTEXT_INDEP_OPS, REG_CONTEXT_INVALID_OPS):
76283         (REG_DOT_NEWLINE, REG_DOT_NOT_NULL, REG_HAT_LISTS_NOT_NEWLINE):
76284         (REG_INTERVALS, REG_LIMITED_OPS, REG_NEWLINE_ALT):
76285         (REG_NO_BK_BRACES, REG_NO_BK_PARENS, REG_NO_BK_REFS):
76286         (REG_NO_BK_VBAR, REG_NO_EMPTY_RANGES):
76287         (REG_UNMATCHED_RIGHT_PAREN_ORD, REG_NO_POSIX_BACKTRACKING):
76288         (REG_NO_GNU_OPS, REG_DEBUG, REG_INVALID_INTERVAL_ORD):
76289         (REG_IGNORE_CASE, REG_CARET_ANCHORS_HERE):
76290         (REG_CONTEXT_INVALID_DUP, REG_NO_SUB, REG_SYNTAX_EMACS):
76291         (REG_SYNTAX_AWK, REG_SYNTAX_GNU_AWK, REG_SYNTAX_POSIX_AWK):
76292         (REG_SYNTAX_GREP, REG_SYNTAX_EGREP, REG_SYNTAX_POSIX_EGREP):
76293         (REG_SYNTAX_ED, REG_SYNTAX_SED, _REG_SYNTAX_POSIX_COMMON):
76294         (REG_SYNTAX_POSIX_BASIC, REG_SYNTAX_POSIX_MINIMAL_BASIC):
76295         (REG_SYNTAX_POSIX_EXTENDED, REG_SYNTAX_POSIX_MINIMAL_EXTENDED):
76296         (REG_DUP_MAX, REG_UNALLOCATED, REG_REALLOCATE, REG_FIXED):
76297         (REG_NREGS):
76298         Remove.  All uses replaced by the old RE_* names.
76299         (RE_BACKSLASH_ESCAPE_IN_LISTS):
76300         (RE_BK_PLUS_QM, RE_CHAR_CLASSES, RE_CONTEXT_INDEP_ANCHORS):
76301         (RE_CONTEXT_INDEP_OPS, RE_CONTEXT_INVALID_OPS):
76302         (RE_DOT_NEWLINE, RE_DOT_NOT_NULL, RE_HAT_LISTS_NOT_NEWLINE):
76303         (RE_INTERVALS, RE_LIMITED_OPS, RE_NEWLINE_ALT):
76304         (RE_NO_BK_BRACES, RE_NO_BK_PARENS, RE_NO_BK_REFS):
76305         (RE_NO_BK_VBAR, RE_NO_EMPTY_RANGES):
76306         (RE_UNMATCHED_RIGHT_PAREN_ORD, RE_NO_POSIX_BACKTRACKING):
76307         (RE_NO_GNU_OPS, RE_DEBUG, RE_INVALID_INTERVAL_ORD):
76308         (RE_IGNORE_CASE, RE_CARET_ANCHORS_HERE):
76309         (RE_CONTEXT_INVALID_DUP, RE_NO_SUB):
76310         Don't bother having these macros be independent of each others'
76311         values, since they no longer exist in the POSIX name space.
76312
76313         Rename the following member names back to their old names,
76314         unless !__USE_GNU_REGEX.  All uses changed back.
76315         (buffer): Renamed from re_buffer.
76316         (allocated): Renamed from re_allocated.
76317         (used): Renamed from re_used.
76318         (syntax): Renamed from re_syntax.
76319         (fastmap): Renamed from re_fastmap.
76320         (translate): Renamed from re_translate.
76321         (can_be_null): Renamed from re_can_be_null.
76322         (regs_allocated): Renamed from re_regs_allocated.
76323         (fastmap_accurate): Renamed from re_fastmap_accurate.
76324         (no_sub): Renamed from re_no_sub.
76325         (not_bol): Renamed from re_not_bol.
76326         (not_eol): Renamed from re_not_eol.
76327         (newline_anchor): Renamed from re_newline_anchor.
76328         (num_regs): Renamed from rm_num_regs.
76329         (start): Renamed from rm_start.
76330         (end): Renamed from rm_end.
76331
76332         (free_state): Move up a bit.
76333
76334         * lib/regex_internal.h (inline) [__GNUC__ < 3 && defined _LIBC]:
76335         #define to be empty.
76336         (ASCII_CHARS): New macro, replacing all uses of 0x80 and/or SBC_MAX / 2
76337         when that is what is intended.
76338         (SBC_MAX): Define to UCHAR_MAX + 1, not 256.
76339         (__re_error_msgid, __re_error_msgid_idx): Remove decls; not needed.
76340         (MAX): New macro.
76341         (re_xmalloc, re_calloc, re_xrealloc, re_x2realloc): Remove.
76342         All uses changed back to re_malloc, etc.  It's now the caller's
76343         responsibility to check for overflow; all callers changed.
76344         (re_alloc_oversized, re_x2alloc_oversized, re_xnmalloc, re_xnrealloc):
76345         (re_x2nrealloc): Remove.
76346         (free_state): Remove decl.
76347
76348         * lib/regexc.c (regexec, re_match, re_search, re_match_2, re_search_2):
76349         (re_set_registers, re_exec):
76350         Use K&R-style defn.
76351
76352         2006-01-31  Roland McGrath  <roland@redhat.com>
76353
76354         * lib/regcomp.c (calc_eclosure_iter): Remove dead variables.
76355         Reported by Mike Frysinger <vapier@gentoo.org>.
76356
76357         2006-01-15  Andreas Jaeger  <aj@suse.de>
76358
76359         [BZ #1950]
76360         * lib/regex_internal.c (re_string_reconstruct): Adjust for
76361         build_wcs_upper_buffer change.
76362         (build_wcs_upper_buffer): Change return type.
76363
76364         2005-12-10  Ulrich Drepper  <drepper@redhat.com>
76365
76366         * lib/regex_internal.h: Include <stdint.h> if available.
76367
76368         2005-12-06  Paolo Bonzini  <bonzini@gnu.org>
76369
76370         * lib/regex_internal.h (SIZE_MAX): Provide a default definition.
76371
76372         2005-10-14  Ulrich Drepper  <drepper@redhat.com>
76373
76374         * lib/regcomp.c: Adjust for changed secondary hash function.
76375
76376         2005-09-30  Ulrich Drepper  <drepper@redhat.com>
76377
76378         * lib/regex.h: Pretty printing.
76379         Clean up namespace a bit.
76380
76381         2005-09-30  Jakub Jelinek  <jakub@redhat.com>
76382
76383         * lib/regexec.c (update_cur_sifted_state, check_arrival,
76384         check_arrival_add_next_nodes): Avoid using uninitialized variable.
76385
76386         2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
76387                     Ulrich Drepper  <drepper@redhat.com>
76388
76389         [BZ #1302]
76390         * lib/regex_internal.h (bitset_t): Renamed from bitset.  All uses
76391         changed.
76392         (bitset_word_t): Renamed from bitset_word.  All uses changed.
76393
76394         2005-09-22  Ulrich Drepper  <drepper@redhat.com>
76395
76396         [BZ #281]
76397         * lib/regex.h: Define RE_TRANSLATE_TYPE as unsigned char *.
76398         * lib/regcomp.c: Remove unnecessary uses of
76399         unsigned RE_TRANSLATE_TYPE.
76400         * lib/regex_internal.h: Likewise.
76401         * lib/regex_internal.c: Likewise.
76402         * lib/regexec.c: Likewise.
76403         Based on a patch by Stepan Kasal <kasal@ucw.cz>.
76404
76405         2005-09-07  Ulrich Drepper  <drepper@redhat.com>
76406
76407         * lib/regexec.c (find_recover_state): Remove unnecessary
76408         initialization.
76409         (transit_state_bkref): Make DFA a const pointer.
76410         (get_subexp): Likewise.
76411         (check_arrival): Likewise.
76412         (update_cur_sifted_state): Likewise.
76413         (re_search_internal): Likewise.
76414         (prune_impossible_nodes): Likewise.
76415         (acquire_init_state_context): Likewise.
76416         (proceed_next_node): Likewise.
76417         (set_regs): Likewise.
76418         (free_fail_stack_return): Likewise.
76419         (check_arrival_expand_ecl): Mark DFA parameter as const.
76420         (check_arrival_expand_ecl_sub): Likewise.
76421         (check_subexp_limits): Likewise.
76422         (sub_epsilon_src_nodes):  Likewise.
76423         (add_epsilon_src_nodes):  Likewise.
76424         (merge_state_array): Likewise.
76425         (update_regs): Likewise.
76426         (build_trtable): Likewise.
76427         (sift_states_backward): Mark MCTX parameter as const.
76428         (build_sifted_states): Likewise.
76429         (update_cur_sifted_state): Likewise.
76430         (sift_states_mkref): Likewise.
76431         (check_arrival_expand_ecl): Mark eclosure as const.
76432         (check_dst_limits_calc_pos_1): Likewise.
76433         * lib/regex_internal.h (re_match_context_t): Make dfa a const
76434         pointer.
76435
76436         2005-09-06  Ulrich Drepper  <drepper@redhat.com>
76437
76438         * lib/regexec.c (merge_state_with_log): Define dfa as const pointer.
76439         (transit_state_sb): Likewise.
76440         (transit_state_mb): Likewise.
76441         (sift_states_iter_mb): Likewise.
76442         (check_arrival_add_next_nodes): Likewise.
76443         (check_node_accept_bytes): Change first parameter to pointer-to-const.
76444         [_LIBC] (re_search_2_stub): Use mempcpy.
76445
76446         * lib/regex_internal.c (re_string_reconstruct): Avoid calling
76447         mbrtowc for very simple UTF-8 case.
76448
76449         * lib/regex_internal.c (re_acquire_state): Make DFA pointer arg
76450         a pointer-to-const.
76451         (re_acquire_state_context): Likewise.
76452         * lib/regex_internal.h: Adjust prototypes.
76453
76454         * lib/regex.c: Prevent using C++ compilers.
76455
76456         * lib/regex_internal.c (re_acquire_state): Minor code rearrangement.
76457         (re_acquire_state_context): Likewise.
76458
76459 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
76460
76461         * modules/regex (Depends-on): Add ssize_t.
76462
76463 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
76464
76465         * m4/regex.m4 (gl_REGEX): Check for new glibc interface to
76466         translation table.
76467
76468 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
76469
76470         * doc/gnulib-tool.texi (Modified imports): pathname -> file name.
76471
76472 2006-03-29  Mark D. Baushke  <mdb@gnu.org>
76473             Bruno Haible  <bruno@clisp.org>
76474
76475         * lib/stdint_.h: On OpenBSD, don't redefine types already included in
76476         <sys/types.h> and <inttypes.h>.
76477
76478 2006-03-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
76479
76480         * m4/argz.m4 (gl_FUNC_ARGZ): If we define `error_t', also define
76481         `__error_t_defined', so argp.h will not typedef the former.
76482
76483 2006-03-25  Paul Eggert  <eggert@cs.ucla.edu>
76484
76485         * m4/regex.m4 (gl_REGEX): Don't insist on REG_SYNTAX_POSIX_EGREP,
76486         REG_SYNTAX_EMACS, and REG_IGNORE_CASE.  Settle for the traditional
76487         glibc names.  Even if glibc is changed to conform to POSIX, the
76488         traditional names will be available anyway, since regex depends on
76489         the extensions module.  Also, fix a longstanding typo in the
76490         implementation of Spencer ERE test #75 from grep 2.3.  Problems
76491         reported by Emanuele Giaquinta.  Also, change sense of cached
76492         variable, so that the message makes sense.
76493
76494 2006-03-24  Simon Josefsson  <jas@extundo.com>
76495
76496         * lib/base64.c: Fix problems reported by Eric Blake <ebb9@byu.net>,
76497         including some doc fixes.
76498         (base64_encode_alloc): Fix +1 bug on allocation failures.
76499
76500 2006-03-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
76501
76502         * lib/base64.c (base64_encode): Do not read past end of array with
76503         unsanitized input on systems with CHAR_BIT > 8.
76504
76505 2006-03-24  Eric Blake  <ebb9@byu.net>
76506
76507         * lib/time_r.c (copy_string_result): Remove, as it is no longer used.
76508
76509 2006-03-22  Karl Berry  <karl@gnu.org>
76510
76511         * config/srclist.txt (*setenv.[ch]): get from coreutils.
76512         * config/srclistvars.sh (COREUTILS): new var.
76513
76514 2006-03-17  Jim Meyering  <jim@meyering.net>
76515
76516         * m4/regex.m4 (gl_REGEX): Fix typo in last change:
76517         s/_REGEX_WIDE_OFFSETS/_REGEX_LARGE_OFFSETS/.
76518
76519 2006-03-16  Paul Eggert  <eggert@cs.ucla.edu>
76520
76521         * m4/regex.m4 (gl_REGEX): Don't check for off_t, since the code
76522         no longer needs it.  Instead, check that regoff_t is as least
76523         as wide as ptrdiff_t.
76524
76525         Don't define _REGEX_WIDE_OFFSETS unless using the included regex,
76526         so that our regex.h stays compatible with the installed regex.
76527         This is helpful for installers who configure --without-included-regex.
76528         Problem reported by Emanuele Giaquinta.
76529
76530 2006-03-16  Paul Eggert  <eggert@cs.ucla.edu>
76531
76532         * lib/regex.h (regoff_t) [defined _REGEX_LARGE_OFFSETS]:
76533         Typedef to long int, not to off_, as POSIX will likely change
76534         in that direction.
76535
76536 2006-03-15  Eric Blake  <ebb9@byu.net>
76537
76538         * m4/dirfd.m4 (gl_FUNC_DIRFD): Use AC_REQUIRE for AC_HEADER_DIRENT.
76539
76540 2006-03-13  Sergey Poznyakoff  <gray@gnu.org.ua>
76541
76542         * lib/argp-help.c (validate_uparams): Fix typo
76543         * lib/argp-parse.c (argp_default_options): Consistently begin help
76544         messages with a lowercase letter.
76545
76546 2006-03-11  Paul Eggert  <eggert@cs.ucla.edu>
76547
76548         * lib/time_r.h (asctime_r, ctime_r): Remove.  These functions can
76549         overrun buffers and shouldn't be used (much as gets shouldn't be
76550         used).
76551         * lib/time_r.c (asctime_r, ctime_r): Likewise.
76552
76553 2006-03-08  Simon Josefsson  <jas@extundo.com>
76554
76555         * m4/gc-random.m4: Permit 'no' as variable values and fix warnings,
76556         suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
76557
76558 2006-03-08  Simon Josefsson  <jas@extundo.com>
76559
76560         * m4/gc-random.m4: Call AC_CANONICAL_HOST and use $host_os instead of
76561         $target, suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
76562
76563 2006-03-08  Simon Josefsson  <jas@extundo.com>
76564
76565         * lib/gc-gnulib.c (randomize): Don't open files called 'no', they
76566         signal that configure disabled the device.
76567
76568 2006-03-08  Simon Josefsson  <jas@extundo.com>
76569
76570         * build-aux/maint.mk: Fix refresh-po, to handle no translated
76571         languages.
76572
76573 2006-03-07  Simon Josefsson  <jas@extundo.com>
76574
76575         * modules/getopt (Depends-on): Add unistd.
76576
76577         * modules/unistd: New file.
76578
76579 2006-03-07  Simon Josefsson  <jas@extundo.com>
76580
76581         * modules/gc-random: New file.
76582
76583 2006-03-07  Simon Josefsson  <jas@extundo.com>
76584
76585         * m4/unistd_h.m4: New file.
76586
76587 2006-03-07  Simon Josefsson  <jas@extundo.com>
76588
76589         * m4/readline.m4 (gl_FUNC_READLINE): Rewrite the cached part of the
76590         test to be side-effect free by storing the result in the cache
76591         variable gl_cv_lib_readline, and moving the assignment of
76592         LIBREADLINE and LTLIBREADLINE outside the COMMANDS-TO-SET-IT.
76593         From Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
76594
76595 2006-03-07  Simon Josefsson  <jas@extundo.com>
76596
76597         * m4/gc-random.m4: New file, mostly from gc.m4.  Warn instead of
76598         error on missing devices (the functions will return an error).
76599
76600         * m4/gc.m4: Move random stuff to gc-random.m4
76601
76602 2006-03-07  Simon Josefsson  <jas@extundo.com>
76603
76604         * lib/unistd_.h: New file.
76605
76606 2006-03-07  Simon Josefsson  <jas@extundo.com>
76607
76608         * lib/gc-libgcrypt.c, gc-gnulib.c: Use GC_USE_RANDOM.
76609
76610 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
76611
76612         * m4/unistd_h.m4 (gl_HEADER_UNISTD): Rename, to match modules file.
76613         Problem reported by Juan Manuel Guerrero.
76614
76615 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
76616
76617         * lib/c-stack.c: Include unistd.h unconditionally, since we now assume
76618         the unistd module.
76619         * lib/getlogin_r.c: Likewise.
76620         * lib/getlogin_r.h: Likewise.
76621         * lib/glob.c: Likewise.
76622         * lib/pagealign_alloc.c: Likewise.
76623         * lib/unistd_.h: Remove; no longer needed.
76624
76625 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
76626
76627         * MODULES.html.sh (Support for systems lacking POSIX:2001):
76628         Add unistd.
76629         * modules/c-stack (Depends-on): Add unistd.
76630         * modules/getlogin_r: Likewise.
76631         * modules/glob: Likewise.
76632         * modules/pagealign_alloc: Likewise.
76633         * modules/unistd (Files): Remove lib/unistd_.h.
76634         (EXTRA_DIST): Remove.
76635         (unistd.h): Create using 'echo' rather than 'cp', so that we don't
76636         need unistd_.h.
76637         (MOSTLYCLEANFILES): Remove unistd.h-t.
76638
76639 2006-03-03  Simon Josefsson  <jas@extundo.com>
76640
76641         * build-aux/maint.mk: Add several syntax checks from CoreUtils.
76642
76643 2006-03-03  Simon Josefsson  <jas@extundo.com>
76644
76645         * build-aux/maint.mk: Add refresh-po rule, based on ideas from
76646         libidn and bison.
76647
76648 2006-03-03  Simon Josefsson  <jas@extundo.com>
76649
76650         * build-aux/maint.mk: Add indent target.
76651
76652 2006-03-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de> (tiny change)
76653
76654         * m4/poll.m4 (gl_FUNC_POLL): If we deem poll(2) unacceptable, use
76655         our replacement poll.h in any case, to avoid a differing
76656         declaration from a system header.  Seen on AIX.
76657
76658 2006-03-01  Simon Josefsson  <jas@extundo.com>
76659
76660         * lib/readline.c: Fix typo, tiny patch from Stepan Kasal
76661         <kasal@ucw.cz>.
76662
76663 2006-03-01  Paul Eggert  <eggert@cs.ucla.edu>
76664
76665         * modules/gettime (Depends-on): Add extensions module.
76666         * modules/nanosleep (Depends-on): Likewise.
76667         * modules/settime (Depends-on): Likewise.
76668
76669 2006-03-01  Paul Eggert  <eggert@cs.ucla.edu>
76670
76671         * m4/clock_time.m4 (gl_CLOCK_TIME): Require gl_USE_SYSTEM_EXTENSIONS,
76672         not merely AC_GNU_SOURCE, for the benefit of Solaris 10 when compiled
76673         pedantically.
76674         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
76675         * m4/timespec.m4 (gl_TIMESPEC): Likewise.
76676
76677         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Use "=" with "test",
76678         not "==".  Reported by Ralf Wildenhues.
76679
76680 2006-03-01  Karl Berry  <karl@gnu.org>
76681
76682         * doc/Copyright/request-*: new files, synced from gnuorg.
76683
76684 2006-03-01  Karl Berry  <karl@gnu.org>
76685
76686         * config/srclist.txt (Copyright/*): new entries.
76687
76688 2006-02-28  Simon Josefsson  <jas@extundo.com>
76689
76690         * lib/getopt.c: Protect #include of unistd.h, for MSVS.
76691
76692 2006-02-27  Simon Josefsson  <jas@extundo.com>
76693
76694         * lib/base64.h: Indent #define's.  From Jim Meyering
76695         <jim@meyering.net>.
76696
76697 2006-02-27  Jim Meyering  <jim@meyering.net>
76698
76699         Revert the change of 2006-02-24, so these files can continue
76700         to be sync'd from gettext.
76701         * lib/mkdtemp.c, setenv.c, unsetenv.c: *Un*-normalize inclusion
76702         of `config.h'.
76703
76704 2006-02-26  Paul Eggert  <eggert@cs.ucla.edu>
76705
76706         * modules/intprops: New file.
76707         * MODULES.html.sh (Numeric conversion functions <stdlib.h>):
76708         Add intprops.
76709         * modules/getloadavg (Files): Remove lib/intprops.h.
76710         (Depends-on): Add intprops.
76711         * modules/human: Likewise.
76712         * modules/inttostr: Likewise.
76713         * modules/openat: Likewise.
76714         * modules/sig2str: Likewise.
76715         * modules/userspec: Likewise.
76716         * modules/utimecmp: Likewise.
76717         * modules/xnanosleep: Likewise.
76718         * modules/xstrtol: Likewise.
76719
76720 2006-02-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny changes)
76721
76722         * modules/xstrtod: Omit xstrtod.h, xstrtod.c; they're in LIB_SOURCES.
76723         * modules/lock-tests (TESTS): Use $(EXEEXT).
76724         * modules/tls-tests: Likewise.
76725         * modules/argp-tests: Likewise.
76726         (check_PROGRAMS): New var, replacing...
76727         (noinst_PROGRAMS, test_argp_SOURCES): Remove.
76728
76729 2006-02-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
76730
76731         * lib/mkdtemp.c, lib/setenv.c, lib/unsetenv.c: Normalize inclusion of
76732         `config.h'.
76733
76734 2006-02-24  Paul Eggert  <eggert@cs.ucla.edu>
76735
76736         * lib/glob.c: Say "invalid" rather than "illegal" in comments.
76737
76738 2006-02-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
76739
76740         Sync from coreutils.
76741         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Require gl_FUNC_LCHMOD and
76742         gl_CHDIR_SAFER.
76743
76744 2006-02-22  Jim Meyering  <jim@meyering.net>
76745
76746         Sync from coreutils.
76747         * m4/chdir-safer.m4: New file.
76748
76749 2006-02-20  Paul Eggert  <eggert@cs.ucla.edu>
76750
76751         * lib/getcwd.c (AT_FDCWD): Work around a bug in Solaris 9 and 10, where
76752         AT_FDCWD exceeds INT_MAX.
76753         * lib/openat.h (AT_FDCWD): Likewise.
76754
76755 2006-02-17  Eric Blake  <address@hidden>
76756
76757         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix caching error.
76758
76759 2006-02-16  Simon Josefsson  <jas@extundo.com>
76760
76761         * modules/getaddrinfo (Depends-on): Add sys_socket.
76762
76763 2006-02-15  Simon Josefsson  <jas@extundo.com>
76764
76765         * build-aux/maint.mk: Add dsyntax-check rule.
76766
76767 2006-02-15  Eric Blake  <ebb9@byu.net>
76768
76769         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Don't attempt using
76770         winsock2.h or ws2tcpip.h when sys/socket.h is present. Fixes
76771         'present but cannot compile' warnings on cygwin.
76772         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Use gl_HEADER_SYS_SOCKET.  Don't
76773         use ws2tcpip.h if sys/socket.h works.
76774         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Use gl_HEADER_SYS_SOCKET.
76775         (gl_GETADDRINFO): Don't use ws2tcpip.h when sys/socket.h is present.
76776
76777 2006-02-14  Simon Josefsson  <jas@extundo.com>
76778
76779         * modules/maintainer-makefile (Files): Rename.
76780
76781         * build-aux/GNUmakefile: Rename Makefile.maint to maint.mk
76782         and (the local) Makefile.cfg to maint-cfg.mk.
76783
76784         * build-aux/Makefile.maint, build-aux/maint.mk: Renamed the former
76785         to the latter.
76786
76787         * modules/maintainer-makefile: New module.
76788
76789         * build-aux/Makefile.maint: New file, from GNU CoreUtils, although
76790         severaly stripped to make it possible to build it up from scratch
76791         with reliable tests.
76792
76793         * build-aux/GNUmakefile: New file, from GNU CoreUtils with some
76794         fixes to permit overriding the default actions when configure and
76795         makefile are not available.
76796
76797 2006-02-14  Paul Eggert  <eggert@cs.ucla.edu>
76798
76799         Sync from coreutils.
76800         * modules/lstat (Depends-on): Don't depend on xalloc.
76801         (License): Change from GPL to LGPL, since this is now simply a
76802         replacement for a libc function.
76803
76804 2006-02-14  Jim Meyering  <jim@meyering.net>
76805
76806         Sync from coreutils.
76807
76808         Eliminate the unwelcome (albeit unlikely) possibility of xmalloc
76809         failure on deficient systems, and simplify gnulib lgpl dependencies.
76810         * lib/lstat.c (rpl_lstat): Rewrite to use stat() in place of the
76811         xmalloc/lstat combination.  Based on a patch from Bruno Haible.
76812
76813         * lib/xalloc-die.c: Remove unused definition of N_.
76814
76815 2006-02-14  Jim Meyering  <jim@meyering.net>
76816
76817         Sync from coreutils.
76818         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Invoke
76819         AC_CHECK_FUNCS(getmntent) unconditionally so that tests of
76820         $ac_cv_func_getmntent (e.g., in gl_LIST_MOUNTED_FILE_SYSTEMS) need not
76821         double-quote uses of that variable, to accommodate the rare case in
76822         which getmntent is available in none of the libraries checked.  This
76823         happens at least on FreeBSD 5.0.
76824
76825 2006-02-13  Simon Josefsson  <jas@extundo.com>
76826
76827         * gnulib-tool (Usage): Fix --import, from
76828         karl@freefriends.org (Karl Berry).
76829
76830 2006-02-13  Sergey Poznyakoff  <gray@gnu.org.ua>
76831
76832         * lib/argp-fmtstream.c: Restore another bugfix lost on 2005-12-12
76833
76834 2006-02-07  Sergey Poznyakoff  <gray@gnu.org.ua>
76835
76836         * lib/argp-namefrob.h: Restore changes accidentally lost during the
76837         "autoupdate" on 2005-12-12.
76838
76839 2006-02-07  Paul Eggert  <eggert@cs.ucla.edu>
76840
76841         * modules/closeout (Depends-on): Remove atexit.
76842
76843 2006-02-07  Paul Eggert  <eggert@cs.ucla.edu>
76844
76845         * lib/closeout.c (close_stdout): Don't assume 'bool' converts nonzero
76846         ints to 0 or 1, as this isn't true for the stdbool.h substitute.
76847
76848 2006-02-05  Paul Eggert  <eggert@cs.ucla.edu>
76849
76850         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Don't #define
76851         __EXTENSIONS__ if this causes compilation to fail.  Problem
76852         reported by Nelson H. F. Beebe with Solaris 10 and Sun C 5.7
76853         c89 -D_XOPEN_SOURCE -D_XOPEN_SOURCE_EXTENDED.
76854
76855 2006-01-27  Paul Eggert  <eggert@cs.ucla.edu>
76856
76857         * lib/fnmatch.c (L_): Renamed from L, to work around a bug in
76858         Mac OS X 10.3.9 with GCC 3 reported by Claudio Fontana in
76859         <http://lists.gnu.org/archive/html/bug-gnulib/2006-01/msg00074.html>.
76860         All uses changed.
76861
76862 2006-01-26  Simon Josefsson  <jas@extundo.com>
76863
76864         * lib/socket_.h: Set WINVER to 0x0501, to make sure getaddrinfo
76865         prototype is visible on mingw32.
76866
76867         * lib/getaddrinfo.h: Define EAI_ADDRFAMILY and EAI_SYSTEM if not set,
76868         for mingw32.
76869
76870         * lib/gai_strerror.c, getaddrinfo.h: Protect netdb.h #include (for
76871         mingw32).
76872
76873 2006-01-26  Paul Eggert  <eggert@cs.ucla.edu>
76874
76875         * lib/fts.c (diropen): Open with O_NOCTTY | O_NONBLOCK too.  Don't
76876         attempt to open for write; this always fails, at least on POSIX
76877         hosts.  This reinstates the 2006-01-09 change, which was
76878         inadvertently removed.
76879
76880 2006-01-26  Bruno Haible  <bruno@clisp.org>
76881
76882         * gnulib-tool (func_import): Use "trap 'exit $?' instead of "trap :".
76883         Reported by Paul Eggert.
76884
76885 2006-01-26  Bruno Haible  <bruno@clisp.org>
76886             Paul Eggert  <eggert@cs.ucla.edu>
76887
76888         * lib/stdbool_.h (_Bool)
76889         [(! (defined __cplusplus || defined __BEOS__)
76890           && !defined __GNUC__
76891           && !(defined __HP_cc || defined __xlc__
76892                || (defined __SUNPRO_C && (__SUNPRO_C < 0x550 || __STDC__ == 1))
76893                || defined __sgi))]:
76894         #define to signed char in these cases too; this simplifies
76895         the code (so that we don't have to worry about HP-UX, AIX, SunPRO,
76896         etc., separately) and makes it more conservative.
76897
76898 2006-01-25  Simon Josefsson  <jas@extundo.com>
76899
76900         * m4/getaddrinfo.m4: Look for getaddrinfo inside ws2tcip.h and
76901         -lws2_32.  Protect sys/socket.h and netdb.h #include's.  Include
76902         ws2tcpip.h with WINVER=0x0501.  All for mingw32.
76903
76904 2006-01-25  Sergey Poznyakoff  <gray@gnu.org.ua>
76905
76906         * lib/argp-namefrob.h: Bugfix. Remove stray #
76907
76908 2006-01-25  Paul Eggert  <eggert@cs.ucla.edu>
76909
76910         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check for xlc bug if __GCC__ too,
76911         so that we test the test.
76912         Check for yet another HP-UX cc bug involving *bool |= bool.
76913
76914 2006-01-25  Karl Berry  <karl@gnu.org>
76915
76916         * config/srclist.txt (vasnprintf.c): sync lost.
76917
76918 2006-01-25  Jim Meyering  <jim@meyering.net>
76919
76920         Sync from the stable (b5) branch of coreutils:
76921
76922         * lib/fts.c (fts_children): Don't let close() clobber errno from
76923         failed fchdir().
76924
76925         * lib/fts.c (fts_stat): When following a symlink-to-directory,
76926         don't necessarily interpret stat-fails+lstat-succeeds as indicating
76927         a dangling symlink.  That can also happen at least for ELOOP.
76928         The fix: return FTS_SLNONE only when the stat errno is ENOENT.
76929         FYI, this bug predates the inclusion of fts.c in coreutils.
76930
76931         * lib/fts.c (fts_open): Put new maxarglen declaration and uses
76932         in their own block, so pre-c99 compilers don't object.
76933
76934         Avoid the double-free (first in fts_read, second in fts_close) that
76935         would occur when an `active' directory is made inaccessible (e.g.,
76936         via chmod a-x) during a traversal.
76937         * lib/fts.c (fts_read): After a failed fchdir, update sp->fts_cur
76938         before returning.  Reproduce this failure by
76939         mkdir -p a/b; cd a; chmod a-x . b
76940         Reported by Stavros Passas.
76941
76942 2006-01-25  Jim Meyering  <jim@meyering.net>
76943
76944         * lib/fileblocks.c: Remove more useless parentheses.
76945         * lib/readutmp.h: Likewise.
76946
76947 2006-01-25  Bruno Haible  <bruno@clisp.org>
76948
76949         * lib/stdbool_.h (_Bool) [IRIX cc]: Define as 'signed char', to avoid
76950         warnings.
76951         Reported by Paul Eggert.
76952
76953 2006-01-25  Bruno Haible  <bruno@clisp.org>
76954
76955         * gnulib-tool (func_import): Use "trap :" instead of "trap -" to get
76956         rid of a trap command. For Solaris sh.
76957         Reported by Mark D. Baushke <mdb@gnu.org>.
76958
76959 2006-01-24  Simon Josefsson  <jas@extundo.com>
76960
76961         * lib/socket_.h (SHUT_WR, SHUT_RDWR): Don't hardcode, suggested by
76962         Bruno.
76963
76964 2006-01-24  Karl Berry  <karl@gnu.org>
76965
76966         * config/srclist.txt (argp-namefrob.h): sync lost.
76967
76968 2006-01-24  Jim Meyering  <jim@meyering.net>
76969
76970         * modules/openat (Files): Add lib/intprops.h.
76971         From Mark D. Baushke.
76972
76973 2006-01-24  Jim Meyering  <jim@meyering.net>
76974
76975         * m4/openat.m4 (gl_FUNC_OPENAT): Add AC_LIBSOURCES([intprops.h]).
76976         Reported by Mark D. Baushke.
76977
76978 2006-01-24  Jim Meyering  <jim@meyering.net>
76979
76980         * lib/socket_.h: Remove useless parentheses in uses of cpp `defined'.
76981
76982 2006-01-24  Bruno Haible  <bruno@clisp.org>
76983
76984         * modules/strnlen (Maintainer): Change from glibc to all.
76985
76986 2006-01-24  Bruno Haible  <bruno@clisp.org>
76987
76988         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check for IBM and HP-UX bugs.
76989         Patch by Paul Eggert.
76990
76991 2006-01-24  Bruno Haible  <bruno@clisp.org>
76992
76993         * lib/stdbool_.h (_Bool) [__cplusplus]: Don't define if the compiler
76994         already has it.
76995         Report and patch by Albert Chin-A-Young  <china@thewrittenword.com> on
76996         2005-11-26.
76997
76998         * lib/stdbool_.h (_Bool) [HP-UX cc, AIX cc,xlc]: Define as
76999         'signed char' to avoid problems with the built-in _Bool type.
77000         Reported by Paul Eggert on 2005-11-26.
77001
77002 2006-01-24  Bruno Haible  <bruno@clisp.org>
77003
77004         * gnulib-tool (func_import): Avoid constructing complicated sed
77005         expressions inside backquote.
77006         Report and solution by Mark D. Baushke <mdb@gnu.org>.
77007
77008 2006-01-23  Ulrich Drepper  <drepper@redhat.com>
77009
77010         These changes imported from libc.
77011         * lib/getopt.c: Use __fxprintf instead of inline stream orientation
77012         test and two separate function calls.
77013         * lib/strndup.c (__strndup): Add libc_hidden_def.
77014
77015 2006-01-23  Simon Josefsson  <jas@extundo.com>
77016
77017         * modules/lock-tests: Use check_PROGRAMS instead of noinst_PROGRAMS.
77018         Remove the test_*_SOURCES variable: automake infers it by default.
77019         * modules/tls-tests: Likewise.
77020
77021 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
77022
77023         Work around porting bugs reported by Dieter in
77024         <http://lists.gnu.org/archive/html/bug-bison/2006-01/msg00049.html>.
77025         * lib/getopt.c (_NOPROTO): Remove; no longer needed.
77026         Include <stdlib.h> and <unistd.h> in all environments; it's safe now.
77027         Include "getopt.h" first, to check interface.
77028         (getenv): Declare only if defined HAVE_DECL_GETENV &&
77029         !HAVE_DECL_GETENV.
77030         * lib/strndup.c [!_LIBC]: Include "strndup.h" to get prototype.
77031         (__strndup): Revert to K&R-style function dfns, the glibc style.
77032         * lib/strnlen.c: Don't claim it's taken from glibc; it's not.
77033         (strnlen, __strnlen): Remove #defines and #undefs; not needed.
77034         Include strnlen.h first, to get prototype properly.
77035         (strnlen): Renamed from __strnlen.
77036         Remove weak alias.
77037
77038 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
77039
77040         * m4/getopt.m4 (gl_PREREQ_GETOPT): Check for getenv decl.
77041
77042 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
77043
77044         * config/srclist.txt: Adjust to reflect glibc reorganization.
77045         This affects only comments.
77046
77047 2006-01-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
77048
77049          * gnulib-tool, build-aux/csharpcomp.sh.in: Do not pass `-q' to mktemp.
77050          Reported by Bruce Korb <bkorb@gnu.org>.
77051
77052 2006-01-22  Paul Eggert  <eggert@cs.ucla.edu>
77053
77054         * lib/quotearg.c (quotearg_buffer_restyled): Add "default: break;"
77055         to pacify gcc -Wswitch-default.
77056
77057 2006-01-22  Bruno Haible  <bruno@clisp.org>
77058
77059         * lib/vasnprintf.c (VASNPRINTF): In the computation of the size of the
77060         temporary buffer for sprintf, take into account the precision also
77061         for 'd', 'i', 'u', 'o', 'x', 'X'.
77062
77063 2006-01-21  Sergey Poznyakoff  <gray@gnu.org.ua>
77064
77065         * modules/argp-tests: New module
77066         * tests/test-argp.c: New file
77067         * tests/test-argp-2.sh: New file
77068
77069 2006-01-21  Sergey Poznyakoff  <gray@gnu.org.ua>
77070
77071         * lib/argp-help.c (usage_long_opt): Do not print DOC options.
77072         (__argp_base_name): Removed
77073         * lib/argp-namefrob.h (__argp_basename): Removed definition. Was a
77074         typo.
77075         (__argp_base_name): Provide macro definition or extern declaration
77076         depending on the configuration
77077
77078 2006-01-20  Simon Josefsson  <jas@extundo.com>
77079
77080         * modules/inet_ntop (Depends-on): Depend on sys_socket.
77081
77082 2006-01-20  Simon Josefsson  <jas@extundo.com>
77083
77084         * lib/inet_ntop.h: Unconditionally include sys/socket.h.
77085
77086 2006-01-20  Paul Eggert  <eggert@cs.ucla.edu>
77087
77088         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Use -Wl,-z,ignore
77089         rather than -Xlinker -z -Xlinker ignore, as it's more portable.
77090         Suggested by Bruno Haible.
77091
77092 2006-01-20  Karl Berry  <karl@gnu.org>
77093
77094         * config/srclist.txt (argp-fmtstream.h, localcharset.c): comment out
77095         until changes propagate, I guess.
77096
77097 2006-01-19  Simon Josefsson  <jas@extundo.com>
77098
77099         * m4/socklen.m4: Look in ws2tcpip.h too, for mingw32.
77100
77101 2006-01-19  Simon Josefsson  <jas@extundo.com>
77102
77103         * lib/socket_.h: Map SHUT_RD, SHUT_WR, SHUT_RDWR correctly.
77104
77105 2006-01-19  Simon Josefsson  <jas@extundo.com>
77106
77107         * gnulib-tool: Set check_PROGRAMS.
77108
77109         * modules/arcfour-tests, modules/arctwo-tests, modules/crc-tests,
77110         modules/des-tests, modules/gc-arcfour-tests,
77111         modules/gc-arctwo-tests, modules/gc-des-tests,
77112         modules/gc-hmac-md5-tests, modules/gc-hmac-sha1-tests,
77113         modules/gc-md2-tests, modules/gc-md4-tests, modules/gc-md5-tests,
77114         modules/gc-pbkdf2-sha1-tests, modules/gc-rijndael-tests,
77115         modules/gc-sha1-tests, modules/gc-tests, modules/hmac-md5-tests,
77116         modules/hmac-sha1-tests, modules/md2-tests, modules/md4-tests,
77117         modules/md5-tests, modules/readline, modules/rijndael-tests: Use
77118         check_PROGRAMS instead of noinst_PROGRAMS to be able to remove
77119         test_*_SOURCES.
77120
77121 2006-01-18  Simon Josefsson  <jas@extundo.com>
77122
77123         * modules/socklen (Depends-on): Depend on sys_socket.
77124
77125 2006-01-18  Simon Josefsson  <jas@extundo.com>
77126
77127         * modules/arcfour-tests, modules/arctwo-tests, modules/crc-tests,
77128         modules/des-tests, modules/gc-arcfour-tests,
77129         modules/gc-arctwo-tests, modules/gc-des-tests,
77130         modules/gc-hmac-md5-tests, modules/gc-hmac-sha1-tests,
77131         modules/gc-md2-tests, modules/gc-md4-tests, modules/gc-md5-tests,
77132         modules/gc-pbkdf2-sha1-tests, modules/gc-rijndael-tests,
77133         modules/gc-sha1-tests, modules/gc-tests, modules/hmac-md5-tests,
77134         modules/hmac-sha1-tests, modules/md2-tests, modules/md4-tests,
77135         modules/md5-tests, modules/readline, modules/rijndael-tests: Add
77136         $(EXEEXT) to automake TESTS variable, for mingw32.
77137
77138 2006-01-17  Simon Josefsson  <jas@extundo.com>
77139
77140         * modules/socklen (Include): Need sys/socket.h.
77141
77142 2006-01-17  Bruno Haible  <bruno@clisp.org>
77143
77144         * modules/ssize_t (Include): Add <sys/types.h>.
77145
77146 2006-01-16  Paul Eggert  <eggert@cs.ucla.edu>
77147
77148         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Don't use ldd, as
77149         it's not portable and it doesn't work with cross-compiles.
77150         Problem reported by Bruno Haible.  Fix missing-$ typo in
77151         'test "gl_cv_ignore_unused_libraries" ...' that prevented
77152         -zignore from being used with Sun's C compiler.
77153
77154 2006-01-12  Simon Josefsson  <jas@extundo.com>
77155
77156         * lib/base64.c: Fix warning, reported by Bruno Haible
77157         <bruno@clisp.org> and patch by Paul Eggert <eggert@CS.UCLA.EDU>.
77158
77159 2006-01-12  Bruno Haible  <bruno@clisp.org>
77160
77161         * modules/ldd: New file.
77162         * build-aux/ldd.sh.in: New file.
77163         * MODULES.html.sh (Support for building libraries and executables): Add
77164         ldd.
77165
77166 2006-01-12  Bruno Haible  <bruno@clisp.org>
77167
77168         * m4/ldd.m4: New file.
77169
77170 2006-01-12  Bruno Haible  <bruno@clisp.org>
77171
77172         * gnulib-tool (func_import, func_create_testdir): Don't go into an
77173         endless loop while replacing $auxdir with build-aux.
77174
77175 2006-01-11  Simon Josefsson  <jas@extundo.com>
77176
77177         * lib/stdint_.h (SIZE_MAX): Add missing (.
77178
77179 2006-01-11  Paul Eggert  <eggert@cs.ucla.edu>
77180
77181         Sync from coreutils.
77182         * lib/md5.c: Fix commentary typos.
77183         (alignof, UNALIGNED_P): No need for a GCC-specific version.
77184         * lib/md5.h (__attribute__): Remove; unused.
77185         * lib/sha1.c: Fix commentary to match md5 better.
77186         * lib/sha1.h (struct sha1_ctx): Use a word buffer, not a byte buffer,
77187         so that we don't need to worry about alignment.  All uses changed.
77188         This merges the 2005-10-28 md5 change into sha1.
77189
77190 2006-01-11  Jim Meyering  <jim@meyering.net>
77191
77192         Sync from coreutils.
77193         * lib/md5.c (OP): Fix spacing.
77194
77195 2006-01-11  Bruno Haible  <bruno@clisp.org>
77196
77197         Ensure automatic ordering between gl_LOCK and gl_ARGP.
77198         * m4/lock.m4 (gl_LOCK_BODY): Renamed from gl_LOCK.
77199         (gl_LOCK): New macro, requiring gl_LOCK_BODY.
77200
77201 2006-01-11  Bruno Haible  <bruno@clisp.org>
77202
77203         Ensure automatic ordering between gl_LOCK and gl_ARGP.
77204         * gnulib-tool (func_import, func_create_testdir): Put gl_LOCK into
77205         the "early" section as well.
77206
77207 2006-01-11  Bruno Haible  <bruno@clisp.org>
77208
77209         Avoid "ar: no archive members specified" error on MacOS X.
77210         * gnulib-tool (func_modules_add_dummy): New function.
77211         (func_import, func_create_testdir): Invoke it.
77212
77213 2006-01-11  Bruno Haible  <bruno@clisp.org>
77214
77215         * gnulib-tool (func_import, func_create_testdir): Replace build-aux
77216         with $auxdir in AC_CONFIG_FILES statements.
77217
77218 2006-01-11  Bruno Haible  <bruno@clisp.org>
77219
77220         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
77221         Initialize also noinst_HEADERS to empty.
77222
77223 2006-01-11  Bruno Haible  <bruno@clisp.org>
77224
77225         * gnulib-tool (AUTOMAKEPATH, AUTOCONF, ACLOCAL, AUTOMAKE): New
77226         variables.
77227         (func_create_megatestdir): Call aclocal, autoconf, automake here, not
77228         autoreconf.
77229
77230 2006-01-11  Bruno Haible  <bruno@clisp.org>
77231
77232         * gnulib-tool (AUTOCONF, ACLOCAL, AUTOMAKE, AUTORECONF): Make
77233         overridable by the user.
77234         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
77235
77236 2006-01-10  Simon Josefsson  <jas@extundo.com>
77237
77238         * modules/sys_socket: New file.
77239
77240 2006-01-10  Simon Josefsson  <jas@extundo.com>
77241
77242         * m4/sys_socket_h.m4: New file.
77243
77244 2006-01-10  Simon Josefsson  <jas@extundo.com>
77245
77246         * lib/socket_.h: New file.
77247
77248 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
77249
77250         * modules/readutmp (Maintainer): Add myself.
77251
77252 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
77253
77254         * m4/memcoll.m4 (gl_MEMCOLL): Don't require AC_FUNC_MEMCMP, undoing
77255         the 2002-12-31 change.  Problem and fix reported by Bruno Haible.
77256         People who are still concerned with buggy memcmp implementations
77257         can invoke gl_FUNC_MEMCMP themselves.
77258
77259 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
77260
77261         * lib/regex_internal.h (BITSET_WORD_BITS):
77262         Work around a bug in 64-bit PGC (before version 6.1-2), where the
77263         preprocessor mishandles large unsigned values as if they were signed.
77264         Problem reported by Claudio Fontana in
77265         <http://lists.gnu.org/archive/html/bug-gnulib/2005-12/msg00061.html>.
77266
77267 2006-01-10  Jim Meyering  <jim@meyering.net>
77268
77269         Avoid the double-free (first in fts_read, second in fts_close) that
77270         would occur when an `active' directory is made inaccessible (e.g.,
77271         via chmod a-x) during a traversal.
77272         * lib/fts.c (fts_read): After a failed fchdir, update sp->fts_cur
77273         before returning.  Reproduce this failure by
77274         mkdir -p a/b; cd a; chmod a-x . b
77275         Reported by Stavros Passas.
77276
77277         Sync from coreutils.
77278         * lib/sha1.c: Tweak grammar in a comment.
77279
77280 2006-01-10  Jim Meyering  <jim@meyering.net>
77281
77282         * m4/fpending.m4: Also include <stdio.h>, for Dragonfly.
77283         Patch by Joerg Sonnenberger.
77284
77285 2006-01-10  Bruno Haible  <bruno@clisp.org>
77286
77287         * modules/readutmp: Depend on module free.
77288         * modules/strtok_r: Depend on module restrict.
77289
77290 2006-01-10  Bruno Haible  <bruno@clisp.org>
77291
77292         * modules/gettext (configure.ac): Add an invocation of
77293         AM_GNU_GETTEXT_VERSION. Needed since autoreconf is used by gnulib-tool.
77294
77295 2006-01-10  Bruno Haible  <bruno@clisp.org>
77296
77297         * m4/localcharset.m4 (gl_LOCALCHARSET): Also test for getc_unlocked.
77298         Reported by Werner Lemberg <wl@gnu.org>.
77299
77300 2006-01-10  Bruno Haible  <bruno@clisp.org>
77301
77302         * lib/localcharset.c: Update from GNU gettext.
77303
77304 2006-01-10  Bruno Haible  <bruno@clisp.org>
77305
77306         * lib/argp.h (__const): Remove macro. Use const instead.
77307         * lib/argp-fmtstream.h (__const): Likewise.
77308         * lib/glob_.h (__const): Remove macro.
77309         * lib/glob-libc.h: Use const instead of __const.
77310
77311 2006-01-10  Bruno Haible  <bruno@clisp.org>
77312
77313         * gnulib-tool (func_emit_tests_Makefile_am): Emit an empty SUBDIR
77314         variable.
77315         Needed to avoid an automake error regarding the 'gettext' module.
77316
77317 2006-01-09  Simon Josefsson  <jas@extundo.com>
77318
77319         * modules/inet_ntop (Depends-on): Add restrict.
77320
77321 2006-01-09  Simon Josefsson  <jas@extundo.com>
77322
77323         * modules/gc-rijndael-tests (License): Put under LGPL.
77324
77325         * modules/gc-des-tests (License): Likewise.
77326
77327         * modules/gc-arcfour-tests (License): Likewise.
77328
77329         * modules/gc-arctwo-tests (License): Likewise.
77330
77331         * modules/gc-pbkdf2-sha1-tests (License): Likewise.
77332
77333         * modules/gc-hmac-sha1-tests (Files): Likewise.
77334
77335         * modules/gc-hmac-md5-tests (License): Likewise.
77336
77337         * modules/gc-sha1-tests (License): Likewise.
77338
77339         * modules/gc-md5-tests (License): Likewise.
77340
77341         * modules/gc-md4-tests (License): Likewise.
77342
77343         * modules/gc-md2-tests (License): Likewise.
77344
77345         * modules/gc-tests (License): Likewise.
77346
77347         * modules/des-tests (License): Likewise.
77348
77349         * modules/md4-tests (License): Likewise.
77350
77351         * modules/md2-tests (License): Likewise.
77352
77353 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
77354
77355         Sync from coreutils:
77356
77357         * MODULES.html.sh (build_lib): New section, with new lib-ignore module.
77358         * modules/lib-ignore: New file.
77359         * modules/mkdir-p (Files): Add chdir-safer.c, chdir-safer.h, lchmod.h,
77360         chdir-safer.m4, lchmod.m4.
77361         * modules/openat: Add mkdirat.c, openat-priv.h.
77362
77363 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
77364
77365         Sync from coreutils.
77366         * m4/lib-ignore.m4: New file.
77367         * m4/lchmod.m4: New file.
77368
77369 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
77370
77371         Sync from coreutils.
77372         * lib/chdir-long.c (cdb_free): Don't bother trying to open directory
77373         for write access: POSIX says that must fail.
77374         * lib/fts.c (diropen): Likewise.
77375         * lib/save-cwd.c (save_cwd): Likewise.
77376         * lib/chdir-long.c (cdb_free): Open with O_NOCTTY | O_NONBLOCK as
77377         well, for minor improvements on hosts that lack O_DIRECTORY.
77378         * lib/chown.c (rpl_chown) [CHOWN_MODIFIES_SYMLINK]:
77379         Don't try O_WRONLY unless O_RDONLY failed wth EACCES.
77380         Fall back on chown if open failed with EACCES.
77381
77382         * lib/gettime.c (gettime) [!defined OK_TO_USE_1S_CLOCK]:
77383         Report an error at compile-time if only a 1-second nominal clock
77384         resolution is found.
77385
77386         * lib/lchmod.h: New file.
77387         * lib/mkdir-p.c: Include lchmod.h, lchown.h.
77388         (make_dir_parents): Use lchown rather than chown, and
77389         lchmod rather than chmod.
77390
77391         * lib/mountlist.c (ME_DUMMY): "none" and "proc" file systems are
77392         dummies too.  Problem with "none" reported by Bob Proulx.  Problem with
77393         "proc" reported by n0dalus.
77394
77395         * lib/mountlist.c: Include <limits.h>.
77396         (dev_from_mount_options)
77397         [defined MOUNTED_GETMNTENT1 || defined MOUNTED_GETMNTENT2]:
77398         New function.  It no longer assumes "dev=" has the System V meaning
77399         on Linux (since it doesn't).  It also parses "dev=" more carefully.
77400         (read_file_system_list)
77401         [defined MOUNTED_GETMNTENT1 || defined MOUNTED_GETMNTENT2]: Use it.
77402         MOUNTED_GETMNTENT2 is new here; the code didn't used to look for
77403         dev= in that case.
77404
77405         * lib/posixtm.h (PDS_PRE_2000): New macro.
77406         * lib/posixtm.c (year): Arg is now syntax_bits rather than
77407         allow_century.  All usages changed.  Reject dates outside the range
77408         1969-1999 if PDS_PRE_2000 is used.
77409
77410 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
77411
77412         Sync from coreutils.
77413         * doc/getdate.texi (General date syntax): Invalid dates are rejected.
77414         (Time of day items): Mention the possibility of leap seconds.
77415         Problem reported by Dr. David Alan Gilbert.
77416
77417 2006-01-09  Jim Meyering  <jim@meyering.net>
77418
77419         Sync from coreutils.
77420
77421         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2006.
77422
77423         * lib/chdir-safer.h, lib/chdir-safer.c: New files.
77424
77425         * lib/modechange.c (mode_compile): Reject an invalid mode string
77426         that starts with an octal digit.  From Andreas Gruenbacher.
77427
77428         * lib/openat.c: Include "fcntl--.h" and "unistd--.h", to map open
77429         and dup to open_safer and dup_safer, respectively.
77430         (openat_permissive): Fix typo in comment.
77431
77432         * lib/openat.c: Don't include <stdlib.h>, <unistd.h>, <fcntl.h>,
77433         "gettext.h"; either no longer needed or are guaranteed by openat.h.
77434         (_): Remove; no longer needed.
77435         (openat): Renamed from rpl_openat; no need for rpl_openat
77436         since openat.h renames openat for us.
77437         Replace most of the body with a call to openat_permissive,
77438         to avoid duplicate code.
77439         Port to (probably hypothetical) environments were mode_t is
77440         wider than int.
77441         (openat_permissive): Require mode arg, so that we can check
77442         types better.  Put it just after flags.  Change cwd failure
77443         indicator from pointer-to-bool to pointer-to-errno-value.
77444         All callers changed.
77445         Invoke openat_save_fail and/or openat_restore_fail if
77446         cwd_errno is null, so that openat can call us.
77447         (openat_permissive, fdopendir, fstatat, unlinkat):
77448         Simplify errno handling to avoid some duplicate code,
77449         as it's OK to set errno on success.
77450         * lib/openat.h: Revamp code so that function macros depend on
77451         __OPENAT_PREFIX only, not also on AT_FDCWD.
77452         (openat_ro): Remove.  Caller changed to use openat_permissive.
77453         (openat_permissive): Now a macro, if not a function.
77454         (openat_restore_fail, openat_save_fail): Now always functions,
77455         since mkdirat needs them even if __OPENAT_PREFIX is defined.
77456
77457         * lib/openat-priv.h: New file, defining macros used by mkdirat.c
77458         and openat.c.
77459         * lib/mkdirat.c: Include openat-priv.h.
77460         Remove definitions of macros defined therein.
77461         * lib/openat.c: Likewise.
77462
77463         * lib/mkdirat.c (mkdirat): New file and function.
77464         * lib/openat.h (mkdirat): Declare.
77465
77466         * lib/openat.c (fdopendir): Don't change errno when returning non-NULL.
77467
77468         * lib/openat.h (openat_permissive): Declare.
77469         (openat_ro): Define.
77470
77471         * lib/openat.c (EXPECTED_ERRNO): New macro.
77472         (openat_permissive): New function -- used in remove.c rewrite.
77473         (all functions): Set errno just before returning, only if there
77474         was an actual failure.
77475         Use EXPECTED_ERRNO rather than comparing against only ENOTDIR.
77476
77477         Emulate openat-family functions using Linux's procfs, if possible.
77478         Idea and some code based on Ulrich Drepper's glibc changes.
77479
77480         * lib/openat.c: (BUILD_PROC_NAME): New macro.
77481         Include <stdio.h>, <string.h>, "alloca.h" and "intprops.h".
77482         (rpl_openat): Emulate by trying to open /proc/self/fd/%d/%s,
77483         before falling back on save_cwd and restore_cwd.
77484         (fdopendir, fstatat, unlinkat): Likewise.
77485
77486         * lib/openat.c (fstatat, unlinkat): Perform the syscall directly,
77487         skipping the save_cwd...restore_cwd overhead, if FILE is absolute.
77488
77489         * lib/openat.c (rpl_openat): Use the promoted type (int), not mode_t,
77490         as second argument to va_arg.  Otherwise, some versions of gcc
77491         warn that `if this code is reached, the program will abort'.
77492
77493 2006-01-09  Jim Meyering  <jim@meyering.net>
77494
77495         Sync from coreutils.
77496         * m4/openat.m4 (gl_FUNC_OPENAT): Require and compile mkdirat.c.
77497         Require openat-priv.h.
77498
77499 2006-01-09  Bruno Haible  <bruno@clisp.org>
77500
77501         * modules/strnlen (Include): Use strnlen.h.
77502
77503 2006-01-09  Bruno Haible  <bruno@clisp.org>
77504
77505         * m4/stdint.m4 (gl_STDINT_H): Also test for <sys/bitypes.h>.
77506
77507 2006-01-09  Bruno Haible  <bruno@clisp.org>
77508
77509         * lib/sysexit_.h (EX_OK): New macro.
77510         Suggested by Martin Lambers <marlam@marlam.de>.
77511
77512 2006-01-09  Bruno Haible  <bruno@clisp.org>
77513
77514         * lib/stdint_.h: On Linux libc4 and libc5, include <sys/bitypes.h> and
77515         don't define _STDINT_H_NEED_SIGNED_INT_TYPES.
77516
77517 2006-01-09  Bruno Haible  <bruno@clisp.org>
77518
77519         * lib/stdint_.h (SIZE_MAX): Write the value without involving negative
77520         numbers.
77521
77522 2006-01-09  Bruno Haible  <bruno@clisp.org>
77523
77524         * lib/javacomp.sh.in: Move to ../build-aux/javacomp.sh.in.
77525         * lib/javaexec.sh.in: Move to ../build-aux/javaexec.sh.in.
77526         * lib/csharpcomp.sh.in: Move to ../build-aux/csharpcomp.sh.in.
77527         * lib/csharpexec.sh.in: Move to ../build-aux/csharpexec.sh.in.
77528
77529 2006-01-09  Bruno Haible  <bruno@clisp.org>
77530
77531         * build-aux/javacomp.sh.in: New file, moved from lib/.
77532         * modules/javacomp-script (Files): Update.
77533         (configure.ac): Add AC_CONFIG_FILES invocation.
77534         (EXTRA_DIST): Remove variable.
77535
77536         * build-aux/javaexec.sh.in: New file, moved from lib/.
77537         * modules/javaexec (Files): Update.
77538         (configure.ac): Add AC_CONFIG_FILES invocation.
77539         (EXTRA_DIST): Remove javaexec.sh.in.
77540
77541         * build-aux/csharpcomp.sh.in: New file, moved from lib/.
77542         * modules/csharpcomp-script (Files): Update.
77543         (configure.ac): Add AC_CONFIG_FILES invocation.
77544         (EXTRA_DIST): Remove variable.
77545
77546         * build-aux/csharpexec.sh.in: New file, moved from lib/.
77547         * modules/csharpexec (Files): Update.
77548         (configure.ac): Add AC_CONFIG_FILES invocation.
77549         (EXTRA_DIST): Remove csharpexec.sh.in.
77550
77551 2006-01-09  Andreas Gruenbacher  <agruen@suse.de>
77552
77553         Sync from coreutils.
77554
77555         Add POSIX ACL support
77556         * lib/acl.h (copy_acl, set_acl): Add declarations.
77557         * lib/acl.c (acl_entries): Add fallback implementation for POSIX ACL
77558         systems other than Linux.
77559         (chmod_or_fchmod): New function: use fchmod when possible,
77560         and chmod otherwise.
77561         (file_has_acl): Add a POSIX ACL implementation, with a
77562         Linux-specific subcase.
77563         (copy_acl): Add: copy an acl and S_ISUID, S_ISGID, and
77564         S_ISVTX from one file to another.  Fall back to fchmod/chmod when
77565         acls are unsupported.
77566         (set_acl): Add: set a file's acl and S_ISUID, S_ISGID, and
77567         S_ISVTX to a defined value.  Fall back to fchmod/chmod when acls
77568         are unsupported.
77569
77570 2006-01-09  Andreas Gruenbacher  <agruen@suse.de>
77571
77572         Sync from coreutils.
77573         * m4/acl.m4 (AC_FUNC_ACL): Add POSIX ACL and Linux-specific acl tests.
77574
77575 2006-01-07  Bruno Haible  <bruno@clisp.org>
77576
77577         * gnulib-tool (func_import): Add an AC_PROG_RANLIB dependency to
77578         gl_EARLY.
77579
77580 2006-01-04  Paul Eggert  <eggert@cs.ucla.edu>
77581
77582         * lib/strftime.c (tzname): Don't declare if it is already #defined.
77583         Problem reported for Mingw by Mark Junker.
77584
77585 2006-01-04  Paul Eggert  <eggert@cs.ucla.edu>
77586
77587         * README: Gnulib normally doesn't generate a tarball.
77588
77589 2006-01-03  Paul Eggert  <eggert@cs.ucla.edu>
77590
77591         * lib/xtime.h (xtime_make, xtime_nonnegative_nsec, xtime_nsec): Use
77592         long int, not int, for nanosecond counts, so that people who are
77593         used to POSIX struct timespec won't be surprised.  Reported by Jim
77594         Meyering.
77595
77596 2005-12-28  Bruno Haible  <bruno@clisp.org>
77597
77598         * build-aux/config.rpath: Update from GNU gettext.
77599
77600 2005-12-16  Jim Meyering  <jim@meyering.net>
77601
77602         * modules/fprintftime: New module.
77603         * MODULES.html.sh (Date and time <time.h>): Add fprintftime.
77604
77605 2005-12-16  Jim Meyering  <jim@meyering.net>
77606
77607         * m4/fprintftime.m4: New file.
77608
77609 2005-12-16  Jim Meyering  <jim@meyering.net>
77610
77611         * lib/fprintftime.c, lib/fprintftime.h: New files.
77612
77613 2005-12-15  Simon Josefsson  <jas@extundo.com>
77614
77615         * modules/socklen (configure.ac): Fix M4 macro name, to align with
77616         new m4/socklen.m4.
77617
77618 2005-12-10  Sergey Poznyakoff  <gray@gnu.org.ua>
77619
77620         * m4/argp.m4: Define HAVE_DECL_PROGRAM_INVOCATION_NAME and
77621         HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME
77622
77623 2005-12-10  Sergey Poznyakoff  <gray@gnu.org.ua>
77624
77625         * lib/argp-fmtstream.c (__argp_fmtstream_update): Fix coredump
77626         * lib/argp-help.c (fill_in_uparams): Check if the constructed
77627         struct uparams is valid. Fall back to the default values if it is
77628         not.
77629
77630 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
77631
77632         * modules/argp (Files): Add argp-pin.c
77633         (Depends-on): dirname
77634         (lib_SOURCES): Add argp-pin.c
77635
77636 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
77637
77638         * m4/argp.m4:  Check if program_invocation_name and
77639         program_invocation_short_name are declared and define appropriate
77640         macros if they are not.
77641
77642 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
77643
77644         * lib/argp-help.c (__argp_base_name): New function
77645         (__argp_short_program_name): Rewrite using __argp_base_name
77646         * lib/argp-namefrob.h: Define program_invocation_name and
77647         program_invocation_short_name if requested
77648         (__argp_base_name): Add prototype
77649         * lib/argp-parse.c (argp_def): Use gettext wrappers
77650         (argp_default_parser): Use __argp_base_name
77651         * lib/argp-pin.c: New file. Defines program_invocation_name and
77652         program_invocation_short_name on systems that lack them.
77653
77654 2005-12-07  Paul Eggert  <eggert@cs.ucla.edu>
77655
77656         * m4/stat-time.m4 (gl_STAT_TIME): Add check for
77657         TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC, to fix IRIX 5.3
77658         porting problem reported by Georg Schwarz in
77659         <http://lists.gnu.org/archive/html/bug-coreutils/2005-12/msg00083.html>.
77660
77661 2005-12-07  Paul Eggert  <eggert@cs.ucla.edu>
77662
77663         * lib/stat-time.h (STATE_TIMESPEC, STAT_TIMESPEC_NS): Add check for
77664         TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC, to fix IRIX 5.3
77665         porting problem reported by Georg Schwarz in
77666         <http://lists.gnu.org/archive/html/bug-coreutils/2005-12/msg00083.html>.
77667
77668 2005-12-05  Bruno Haible  <bruno@clisp.org>
77669
77670         * lib/csharpcomp.sh.in (options_csc): For -l option, add a .dll suffix.
77671         * lib/csharpcomp.c (compile_csharp_using_sscli): Likewise.
77672         Reported by Mark Junker <mjscod@gmx.de>.
77673
77674 2005-12-02  Paul Eggert  <eggert@cs.ucla.edu>
77675
77676         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Renamed from gl_SOCKLEN_T.
77677         Use implementation from Albert Chin, with some
77678         comments/corrections by Stepan Kasal and myself.
77679
77680 2005-12-02  Bruno Haible  <bruno@clisp.org>
77681
77682         * gnulib-tool (func_import): Accept GPLed build tool modules when
77683         --lgpl is given.
77684         * modules/csharpcomp-script: New file.
77685         * modules/csharpcomp: Depend on it.
77686         * modules/javacomp-script: New file.
77687         * modules/javacomp: Depend on it.
77688         Suggested by Simon Josefsson.
77689
77690 2005-12-01  Paul Eggert  <eggert@cs.ucla.edu>
77691
77692         * m4/regex.m4 (gl_REGEX): Check whether off_t can be used in a switch
77693         statement, to work around an HP-UX 10.20 compiler bug reported by
77694         Peter O'Gorman.
77695
77696 2005-11-29  Paul Eggert  <eggert@cs.ucla.edu>
77697
77698         * modules/savedir (Depends-on): Add openat.
77699
77700 2005-11-29  Paul Eggert  <eggert@cs.ucla.edu>
77701
77702         * lib/stdint_.h (intmax_t) [defined intmax_t]: Do not declare.
77703         (uintmax_t) [defined uintmax_t]: Do not declare.
77704         (SIZE_MAX) [defined SIZE_MAX]: Do not define.
77705         This works around a problem if intmax_t.m4 and/or uintmax_t.m4
77706         and/or size_max.m4 are also used.  Problem reported by Mark D. Baushke.
77707         (SIZE_MAX): Define to ((size_t) -1), not (~(size_t)0), for the
77708         sake of portability to weird hosts that C allows (though we don't
77709         know of any practical examples).
77710
77711         * lib/savedir.h (fdsavedir): New decl.
77712         * lib/savedir.c (fdsavedir, savedirstream): New functions; the latter
77713         contains most of the former guts of savedir.
77714         (savedir): Use savedirstream.
77715         Include "openat.h".
77716
77717 2005-11-25  Paul Eggert  <eggert@cs.ucla.edu>
77718
77719         * modules/obstack (Files): Add m4/ulonglong.m4.
77720         Problem reported by Davide Angelocola.
77721
77722 2005-11-15  Paul Eggert  <eggert@cs.ucla.edu>
77723
77724         * lib/xstrtod.c: Don't bother with #pragma STDC FENV_ACCESS ON, as
77725         coreutils no longer futzes with rounding modes.
77726
77727 2005-11-14  Jim Meyering  <jim@meyering.net>
77728
77729         * lib/mkstemp-safer.c: Include <config.h>, required for possible
77730         replacement of mkstemp.
77731
77732 2005-11-10  Simon Josefsson  <jas@extundo.com>
77733
77734         * lib/readline.c: Remove EOL.
77735
77736 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
77737
77738         * modules/gethrxtime (Depends-on): Add gettime.
77739
77740 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
77741
77742         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Don't require AC_HEADER_TIME
77743         or gettimeofday; no longer needed.
77744
77745 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
77746
77747         * lib/gethrxtime.c: Include "timespec.h" rather than the sys/time /
77748         time business.
77749         (gethrxtime) [! (HAVE_NANOUPTIME
77750         || (defined CLOCK_MONOTONIC && HAVE_CLOCK_GETTIME)
77751         || HAVE_MICROUPTIME)]: Fall back on gettime rather than rolling
77752         our own approximation.
77753
77754 2005-11-08  Eric Blake  <ebb9@byu.net>
77755
77756         * lib/inet_ntop.h: Use #if !, not #ifndef, for AC_CHECK_DECLS.
77757
77758 2005-11-08  Eric Blake  <ebb9@byu.net>
77759
77760         * lib/getaddrinfo.h: Use #if !, not #ifndef, for AC_CHECK_DECLS.
77761
77762 2005-11-04  Bruno Haible  <bruno@clisp.org>
77763
77764         * gnulib-tool: Implement --update mode.
77765
77766 2005-10-30  Paul Eggert  <eggert@cs.ucla.edu>
77767
77768         Fix porting problem reported by Theodoros V. Kalamatianos.
77769         * lib/utimens.c (futimens) [HAVE_WORKING_UTIMES && HAVE_FUTIMES]:
77770         Don't assume that futimes failing means we must fail.
77771
77772 2005-10-30  Paul Eggert  <eggert@cs.ucla.edu>
77773
77774         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Revamp wording and local
77775         variables to suggest the intended function of the PATH_MAX check.
77776
77777 2005-10-30  Kean Johnston  <jkj@sco.com>
77778
77779         Trivial changes to support SCO systems.
77780         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Check for MAXPATHLEN as well
77781         as PATH_MAX.
77782         * m4/fpending.m4 (gl_FUNC_FPENDING): Correct check for SCO systems,
77783         where __ptr is null when no I/O is pending.
77784
77785 2005-10-29  Paul Eggert  <eggert@cs.ucla.edu>
77786
77787         * lib/getcwd.c (__getcwd): Don't assume that system calls after readdir
77788         leave errno alone.  Problem reported by Dmitry V. Levin.
77789
77790 2005-10-28  Simon Josefsson  <jas@extundo.com>
77791
77792         * tests/test-gc-md4.c, tests/test-gc-md5.c, tests/test-gc-sha1.c:
77793         Test more.
77794
77795         * tests/test-gc-md2.c, tests/test-md2.c: New files.
77796
77797         * modules/md2, modules/md2-tests: New files.
77798
77799 2005-10-28  Simon Josefsson  <jas@extundo.com>
77800
77801         * m4/inet_ntop.m4: More tests.
77802
77803         * m4/gc-md2.m4, md2.m4: New file.
77804
77805 2005-10-28  Simon Josefsson  <jas@extundo.com>
77806
77807         * lib/inet_ntop.h, inet_ntop.c: Make it work under mingw32: Add
77808         "restrict" keywords, as per POSIX.  Protect the function
77809         declaration around HAVE_DECL_INET_NTOP rather than HAVE_INET_NTOP.
77810         Don't use K&R prototypes.  Check the sprintf return values.
77811         Re-define EAFNOSUPPORT if not present.  Indent.
77812
77813         * lib/md5.h, md5.c: Simplify buffer handling visavi alignment,
77814         suggested by Bruno Haible <bruno@clisp.org>.
77815
77816         * lib/gc-gnulib.c, gc-libgcrypt.c: Check calloc return value.
77817
77818         * lib/gc.h: Add MD2 and RMD160 length defines.  Add prototypes.
77819
77820         * lib/gc-libgcrypt.c: Add MD2 (which is not available through
77821         libgcrypt).
77822
77823         * lib/gc-gnulib.c: Add MD2.  Implement gc_hash_* API.
77824
77825         * lib/md2.h, lib/md2.c: New files.
77826
77827 2005-10-28  Paul Eggert  <eggert@cs.ucla.edu>
77828
77829         * lib/savedir.c (savedir): Don't assume that xrealloc etc. leave
77830         errno alone.  Problem reported by Frederic Jolliton.
77831
77832 2005-10-27  Paul Eggert  <eggert@cs.ucla.edu>
77833
77834         * modules/verify (License): Change from GPL to LGPL.  This is a
77835         tiny module and there are apparently near-equivalents that are
77836         under the BSD license.
77837
77838 2005-10-24  Simon Josefsson  <jas@extundo.com>
77839
77840         * modules/sha1: Relicense to LGPL.
77841
77842 2005-10-24  Simon Josefsson  <jas@extundo.com>
77843
77844         * lib/md4.h: Shrink buffer size, now that we changed the type.
77845
77846 2005-10-23  Simon Josefsson  <jas@extundo.com>
77847
77848         * gnulib-tool (func_import): Fix --tests-base.
77849
77850 2005-10-22  Simon Josefsson  <jas@extundo.com>
77851
77852         * modules/arcfour (Depends-on): Need stdint.
77853
77854 2005-10-22  Simon Josefsson  <jas@extundo.com>
77855
77856         * m4/gc.m4: Don't be fooled by --disable-*random-device parameters,
77857         suggested by Bruno Haible <bruno@clisp.org>.  Fix error messages.
77858
77859 2005-10-22  Simon Josefsson  <jas@extundo.com>
77860
77861         * lib/md4.h, md4.c: Simplify buffer handling visavi alignment,
77862         suggested by Bruno Haible <bruno@clisp.org>.
77863
77864 2005-10-22  Simon Josefsson  <jas@extundo.com>
77865
77866         * lib/crc.h: Include stddef.h, for size_t.
77867
77868 2005-10-22  Simon Josefsson  <jas@extundo.com>
77869
77870         * lib/arcfour.h, arcfour.c: Use fixed size indices in the
77871         arcfour_context struct (simplify test vector testing in GNU
77872         Shishi).
77873
77874 2005-10-21  Simon Josefsson  <jas@extundo.com>
77875
77876         * modules/des, modules/des-tests: New files.
77877
77878         * modules/gc-des, modules/gc-des-tests: New files.
77879
77880         * tests/test-des.c, tests/test-gc-des.c: New file.
77881
77882 2005-10-21  Simon Josefsson  <jas@extundo.com>
77883
77884         * modules/arctwo, modules/arctwo-tests: New files.
77885
77886         * tests/test-arctwo.c: New file.
77887
77888         * modules/gc-arctwo, modules/gc-arctwo-tests: New files.
77889
77890         * tests/test-gc-arctwo.c: New file.
77891
77892 2005-10-21  Simon Josefsson  <jas@extundo.com>
77893
77894         * m4/gc.m4: Don't use libgcrypt if gcrypt.h isn't found, suggested by
77895         Bruno Haible <bruno@clisp.org>.
77896
77897         * m4/gc-des.m4: New file.
77898
77899 2005-10-21  Simon Josefsson  <jas@extundo.com>
77900
77901         * m4/arctwo.m4: New file.
77902
77903         * m4/gc-arctwo.m4: New file.
77904
77905 2005-10-21  Simon Josefsson  <jas@extundo.com>
77906
77907         * lib/rijndael-api-fst.c: Fix bugs in CBC mode for more than one
77908         block.
77909
77910 2005-10-21  Simon Josefsson  <jas@extundo.com>
77911
77912         * lib/hmac-md5.c (hmac_md5): Add comments, suggested by Bruno Haible
77913         <bruno@clisp.org>.
77914
77915         * lib/hmac-sha1.c (hmac_sha1): Likewise.
77916
77917         * lib/crc.c (crc32_update): Actually use crc parameter, suggested by
77918         Bruno Haible <bruno@clisp.org>.
77919
77920         * lib/crc.h: Include stdint.h directly, suggested by Bruno Haible
77921         <bruno@clisp.org>.
77922
77923 2005-10-21  Simon Josefsson  <jas@extundo.com>
77924
77925         * lib/gc-libgcrypt.c (gc_cipher_open): Handle ECB.
77926
77927 2005-10-21  Simon Josefsson  <jas@extundo.com>
77928
77929         * lib/gc-gnulib.c: Support ARCTWO in CBC mode.
77930
77931 2005-10-21  Simon Josefsson  <jas@extundo.com>
77932
77933         * lib/des.h, lib/des.c: New files.
77934
77935         * lib/gc-gnulib.c: Support DES.c
77936
77937 2005-10-21  Simon Josefsson  <jas@extundo.com>
77938
77939         * lib/arctwo.h, lib/arctwo.c: New files.
77940
77941         * lib/gc-gnulib.c: Support ARCTWO.
77942
77943 2005-10-21  Simon Josefsson  <jas@extundo.com>
77944
77945         * lib/arctwo.h (arctwo_setkey): Protect variable in CPP macro,
77946         suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
77947
77948 2005-10-21  Simon Josefsson  <jas@extundo.com>
77949
77950         * gnulib-tool (func_import, func_create_testdir): Define automake
77951         conditional GL_COND_LIBTOOL if libtool is used (to be used by modules
77952         Makefile.am snippet),
77953         suggested by Bruno Haible <bruno@clisp.org>.
77954
77955         * modules/gc (Makefile.am): Use it.
77956
77957 2005-10-21  Bruno Haible  <bruno@clisp.org>
77958
77959         * gnulib-tool (func_import, func_create_testdir): Add quoting to last
77960         patch.
77961
77962 2005-10-19  Simon Josefsson  <jas@extundo.com>
77963
77964         * tests/test-gc-rijndael.c: New file.
77965
77966         * modules/gc-rijndael, modules/gc-rijndael-test: New files.
77967
77968 2005-10-19  Simon Josefsson  <jas@extundo.com>
77969
77970         * tests/test-gc-md4.c, tests/test-gc-md5.c: Test gc_hash_buffer
77971         interface too.
77972
77973 2005-10-19  Simon Josefsson  <jas@extundo.com>
77974
77975         * tests/test-gc-arcfour.c: New file.
77976
77977         * modules/gc-arcfour, modules/gc-arcfour-tests: New files.
77978
77979 2005-10-19  Simon Josefsson  <jas@extundo.com>
77980
77981         * modules/gc-md4, modules/gc-md4-tests: New file.
77982
77983         * tests/test-gc-md4.c: New file.
77984
77985 2005-10-19  Simon Josefsson  <jas@extundo.com>
77986
77987         * m4/gc-md4.m4: New file.
77988
77989 2005-10-19  Simon Josefsson  <jas@extundo.com>
77990
77991         * m4/gc-hmac-md5.m4, gc-hmac-sha1.m4, gc-md4.m4,
77992         gc-md5.m4, gc-sha1.m4: Fix typo, suggested by Stepan Kasal
77993         <kasal@ucw.cz>.
77994
77995 2005-10-19  Simon Josefsson  <jas@extundo.com>
77996
77997         * m4/gc-arcfour.m4: New file.
77998
77999         * m4/gc-rijndael.m4: New file.
78000
78001 2005-10-19  Simon Josefsson  <jas@extundo.com>
78002
78003         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Support MD4.
78004
78005 2005-10-19  Simon Josefsson  <jas@extundo.com>
78006
78007         * lib/gc-gnulib.c: Support ARCFOUR.
78008
78009 2005-10-19  Simon Josefsson  <jas@extundo.com>
78010
78011         * lib/gc-gnulib.c: Implement gc_cipher_* API, currently only with AES
78012         support.
78013
78014         * lib/gc.h: Add ECB enum type.
78015
78016         * lib/hmac-md5.c, hmac-sha1.c: Include memxor.h.
78017
78018 2005-10-18  Simon Josefsson  <jas@extundo.com>
78019
78020         * tests/test-md5.c: New file.
78021
78022         * modules/md5-tests: New file.
78023
78024 2005-10-18  Simon Josefsson  <jas@extundo.com>
78025
78026         * tests/test-md4.c: New file.
78027
78028         * modules/md4, modules/md4-tests: New files.
78029
78030 2005-10-18  Simon Josefsson  <jas@extundo.com>
78031
78032         * m4/md4.m4: New file.
78033
78034 2005-10-18  Simon Josefsson  <jas@extundo.com>
78035
78036         * lib/md4.h, lib/md4.c: New files, based on md5.?.
78037
78038 2005-10-17  Stepan Kasal  <kasal@ucw.cz>
78039
78040         * gnulib-tool (func_create_testdir): Omit the second check whether
78041         BUILT_SOURCES in nonempty.
78042
78043 2005-10-17  Simon Josefsson  <jas@extundo.com>
78044
78045         * tests/test-rijndael.c: New file.
78046
78047 2005-10-17  Simon Josefsson  <jas@extundo.com>
78048
78049         * modules/sha1: Depend on stdint instead of md5.
78050
78051         * modules/md5: Depend on stdint, remove uint32_t.
78052
78053 2005-10-17  Simon Josefsson  <jas@extundo.com>
78054
78055         * modules/gc-sha1-tests: New file.
78056
78057         * tests/test-gc-sha1.c: New file.
78058
78059 2005-10-17  Simon Josefsson  <jas@extundo.com>
78060
78061         * m4/md5.m4: Remove call to uint32_t.m4.
78062
78063 2005-10-17  Simon Josefsson  <jas@extundo.com>
78064
78065         * lib/sha1.c: Use uint32_t instead of md5_uint32.t
78066
78067         * lib/sha1.h: Use stdint.h and uint32_t instead of md5_uint32 from
78068         md5.h.
78069
78070         * lib/md5.c: Use uin32_t.  Fix non-gcc UNALIGNED_P macro.
78071
78072         * lib/md5.h: Use stdint.h and uint32_t.  Doc fix.
78073
78074 2005-10-17  Simon Josefsson  <jas@extundo.com>
78075
78076         * lib/gc.h, gc-libgcrypt.c: Add more hash types/functions.
78077
78078 2005-10-17  Simon Josefsson  <jas@extundo.com>
78079
78080         * lib/gc.h, gc-libgcrypt.c: Add ciphers.
78081
78082 2005-10-17  Simon Josefsson  <jas@extundo.com>
78083
78084         * lib/gc-libgcrypt.c (gc_hmac_sha1): Fix assert.
78085
78086         * lib/gc.h (gc_nonce, gc_pseudo_random, gc_random): Add prototypes.
78087
78088 2005-10-17  Bruno Haible  <bruno@clisp.org>
78089
78090         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Change the return statement so
78091         that it can also be used in a test.
78092
78093 2005-10-16  Bruno Haible  <bruno@clisp.org>
78094
78095         * gnulib-tool (func_emit_tests_Makefile_am): Also define
78096         TESTS_ENVIRONMENT, so that individual tests can augment it.
78097
78098         * gnulib-tool (func_create_testdir): Use an intermediate target for
78099         building $(BUILT_SOURCES). Needed because BUILT_SOURCES can contain
78100         macros, like $(ALLOCA_H), which cannot be passed through the command
78101         line.
78102
78103 2005-10-15  Simon Josefsson  <jas@extundo.com>
78104
78105         * modules/rijndael-tests: New file.
78106
78107         * modules/rijndael: New file.
78108
78109 2005-10-15  Simon Josefsson  <jas@extundo.com>
78110
78111         * m4/rijndael.m4: New file.
78112
78113 2005-10-15  Simon Josefsson  <jas@extundo.com>
78114
78115         * lib/rijndael-api-fst.h, lib/rijndael-api-fst.c: New files.
78116
78117         * lib/rijndael-alg-fst.h, lib/rijndael-alg-fst.c: New files.
78118
78119 2005-10-14  Simon Josefsson  <jas@extundo.com>
78120
78121         * tests/test-arcfour.c: New file.
78122
78123         * modules/arcfour, modules/arcfour-tests: New files.
78124
78125 2005-10-14  Simon Josefsson  <jas@extundo.com>
78126
78127         * m4/arcfour.m4: New file.
78128
78129 2005-10-14  Simon Josefsson  <jas@extundo.com>
78130
78131         * lib/arcfour.h, lib/arcfour.c: New files.
78132
78133 2005-10-14  Roland McGrath  <roland@redhat.com>
78134
78135         Import from libc.  [BZ #1331]
78136         * lib/obstack.h [!__STDC__] (obstack_int_grow_fast): Fix misnamed
78137         macro argument.
78138         Reported by Matej Vela <vela@debian.org>.
78139
78140 2005-10-14  Paul Eggert  <eggert@cs.ucla.edu>
78141
78142         * lib/obstack.c [defined _LIBC && defined USE_IN_LIBIO]: Don't
78143         include <wchar.h>; no longer needed.
78144
78145 2005-10-14  Paul Eggert  <eggert@cs.ucla.edu>
78146
78147         * config/srclist.txt: Add glibc bug 321 for obstack.c, obstack.h.
78148
78149 2005-10-14  Jakub Jelinek  <jakub@redhat.com>
78150         and  Ulrich Drepper  <drepper@redhat.com>
78151
78152         Import from libc.
78153         * lib/obstack.c (print_and_abort) [defined _LIBC]: Use __fxprintf
78154         instead of inline stream orientation test and two separate
78155         function calls.  Pay no attention to USE_IN_LIBIO.
78156
78157 2005-10-13  Simon Josefsson  <jas@extundo.com>
78158
78159         * modules/gc-hmac-md5-tests: New file.
78160
78161         * tests/test-gc-hmac-sha1.c: New file.
78162
78163         * tests/test-gc.c (main): Remove MD5 and HMAC-MD5 tests.
78164
78165         * modules/gc-hmac-md5-tests: New file.
78166
78167         * tests/test-gc-md5.c: New file.
78168
78169         * modules/gc-md5-tests: New file.
78170
78171 2005-10-13  Simon Josefsson  <jas@extundo.com>
78172
78173         * lib/gc-pbkdf2-sha1.c (gc_pbkdf2_sha1): Optimize CEIL computation.
78174         Move memory allocation outside of loop.
78175
78176 2005-10-13  Paul Eggert  <eggert@cs.ucla.edu>
78177
78178         * lib/mkdir-p.c (make_dir_parents): Don't report an error if an
78179         intermediate directory is in a read-only file system.  Problem
78180         reported by Eric Blake.
78181
78182 2005-10-13  Oskar Liljeblad  <oskar@osk.mine.nu>
78183
78184         * modules/human (Depends-on): Depend on xstrtoumax, not xstrtol.
78185
78186 2005-10-12  Simon Josefsson  <jas@extundo.com>
78187
78188         * tests/test-hmac-sha1.c: New file.
78189
78190         * modules/hmac-sha1-tests: New file.
78191
78192         * modules/hmac-sha1: New file.
78193
78194 2005-10-12  Simon Josefsson  <jas@extundo.com>
78195
78196         * modules/gc-sha1: New file.
78197
78198 2005-10-12  Simon Josefsson  <jas@extundo.com>
78199
78200         * modules/gc-pbkdf2-sha1, modules/gc-pbkdf2-sha1-tests: New files.
78201
78202         * tests/test-gc-pbkdf2-sha1.c: New file.
78203
78204 2005-10-12  Simon Josefsson  <jas@extundo.com>
78205
78206         * modules/gc-md5, modules/gc-hmac-md5: New files.
78207
78208         * modules/gc (Files): Remove md5, memxor and hmac files.
78209
78210 2005-10-12  Simon Josefsson  <jas@extundo.com>
78211
78212         * m4/gc-pbkdf2-sha1.m4: New file.
78213
78214         * m4/gc-hmac-sha1.m4: New file.
78215
78216         * m4/gc-sha1: New file.
78217
78218         * m4/hmac-sha1.m4: New file.
78219
78220 2005-10-12  Simon Josefsson  <jas@extundo.com>
78221
78222         * m4/gc-md5.m4, m4/gc-hmac-md5.m4: New files.
78223
78224         * m4/gc.m4: Don't call gl_MD5, gl_MEMXOR or gl_HMAC_MD5.
78225
78226 2005-10-12  Simon Josefsson  <jas@extundo.com>
78227
78228         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Use Gc_rc for return types,
78229         suggested by Bruno Haible <bruno@clisp.org>.
78230
78231 2005-10-12  Simon Josefsson  <jas@extundo.com>
78232
78233         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Support SHA-1.
78234
78235 2005-10-12  Simon Josefsson  <jas@extundo.com>
78236
78237         * lib/gc-pbkdf2-sha1.c: New file.
78238
78239         * lib/gc.h: Add gc_pbkdf2_sha1 prototype.
78240
78241 2005-10-12  Simon Josefsson  <jas@extundo.com>
78242
78243         * lib/gc-libgcrypt.c (gc_hmac_sha1): New function.
78244
78245         * lib/gc-gnulib.c (gc_hmac_sha1): New function.
78246
78247 2005-10-12  Simon Josefsson  <jas@extundo.com>
78248
78249         * lib/gc-gnulib.c: Condition MD5 and HMAC-MD5 use on GC_USE_MD5 and
78250         GC_USE_HMAC_MD5, respectively.
78251
78252         * lib/gc-libgcrypt.c (gc_md5): Fix assert call.
78253         (gc_md5): Fix typo.
78254
78255         * lib/gc.h (gc_hash_buffer): Use gc_hash in prototype.
78256
78257         * lib/gc-libgcrypt.c (gc_hash_buffer): Ditto.
78258
78259         * lib/gc-gnulib.c (gc_hash_buffer): Ditto.
78260
78261 2005-10-12  Bruno Haible  <bruno@clisp.org>
78262
78263         * m4/stdbool.m4 (gl_STDBOOL_H): Define as an alias of AM_STDBOOL_H.
78264         Reported by Stepan Kasal <kasal@ucw.cz>.
78265
78266 2005-10-11  Simon Josefsson  <jas@extundo.com>
78267
78268         * tests/test-crc.c: New file.
78269
78270         * modules/crc, modules/crc-tests: New files.
78271
78272 2005-10-11  Simon Josefsson  <jas@extundo.com>
78273
78274         * m4/crc.m4: New file.
78275
78276 2005-10-11  Simon Josefsson  <jas@extundo.com>
78277
78278         * lib/gc.h: Add gc_hash and gc_hash_buffer.
78279
78280         * lib/gc-gnulib.c (gc_hash_buffer): Add.  Reorder #include's.
78281
78282         * lib/gc-libgcrypt.c (gc_hash_buffer): Add.
78283
78284 2005-10-11  Simon Josefsson  <jas@extundo.com>
78285
78286         * lib/crc.h, lib/crc.c: New files.
78287
78288         * lib/gc.h (gc_hash_buffer): Add doc.
78289
78290 2005-10-11  Bruno Haible  <bruno@clisp.org>
78291
78292         * modules/c-strcasestr: New file.
78293         * MODULES.html.sh (String handling <string.h>): Add c-strcasestr.
78294
78295 2005-10-11  Bruno Haible  <bruno@clisp.org>
78296
78297         * modules/c-strcase: New file.
78298         * MODULES.html.sh (String handling <string.h>): Add c-strcase.
78299
78300 2005-10-11  Bruno Haible  <bruno@clisp.org>
78301
78302         * lib/strcasecmp.c: Include limits.h.
78303         (strcasecmp): Avoid integer overflow on exotic platforms.
78304         * lib/strncasecmp.c: Include limits.h.
78305         (strncasecmp): Avoid integer overflow on exotic platforms.
78306         Reported by Paul Eggert.
78307
78308 2005-10-11  Bruno Haible  <bruno@clisp.org>
78309
78310         * lib/c-strcasestr.h: New file, from GNU gettext.
78311         * lib/c-strcasestr.c: New file, from GNU gettext.
78312
78313 2005-10-11  Bruno Haible  <bruno@clisp.org>
78314
78315         * lib/c-strcase.h: New file, from GNU gettext.
78316         * lib/c-strcasecmp.c: New file, from GNU gettext.
78317         * lib/c-strncasecmp.c: New file, from GNU gettext.
78318
78319 2005-10-10  Paul Eggert  <eggert@cs.ucla.edu>
78320
78321         * modules/mempcpy (License): GPL -> LGPL.
78322         * modules/strchrnul (License): Likewise.
78323         * modules/sysexits (License): Likewise.
78324
78325 2005-10-08  Simon Josefsson  <jas@extundo.com>
78326
78327         * config/srclist.txt: Bug 1423 is closed, but 1439 remains.
78328
78329 2005-10-07  Simon Josefsson  <jas@extundo.com>
78330
78331         * m4/memxor.m4: Remove gl_C_RESTRICT call.
78332
78333 2005-10-06  Simon Josefsson  <jas@extundo.com>
78334
78335         * tests/test-hmac-md5.c: New file.
78336
78337         * modules/hmac-md5-tests: New file.
78338
78339         * modules/hmac-md5: New file.
78340
78341 2005-10-06  Simon Josefsson  <jas@extundo.com>
78342
78343         * m4/hmac-md5.m4: New file.
78344
78345         * m4/memxor.m4: Require gl_C_RESTRICT.
78346
78347 2005-10-06  Simon Josefsson  <jas@extundo.com>
78348
78349         * lib/memxor.c (memxor): Avoid casts and warnings.
78350
78351 2005-10-06  Simon Josefsson  <jas@extundo.com>
78352
78353         * lib/hmac-md5.c: New file.
78354
78355         * lib/hmac.h: New file.
78356
78357 2005-10-06  Paul Eggert  <eggert@cs.ucla.edu>
78358
78359         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check that bool
78360         promotes to int, not unsigned int, to catch the AIX 5.3
78361         compiler bug.
78362
78363 2005-10-05  Simon Josefsson  <jas@extundo.com>
78364
78365         * modules/memxor: New file.
78366
78367         * modules/iconv (Files): Move config.rpath to havelib, it is used
78368         there.
78369
78370         * modules/havelib (Files): Add config.rpath.
78371
78372 2005-10-05  Simon Josefsson  <jas@extundo.com>
78373
78374         * m4/memxor.m4: New file.
78375
78376 2005-10-05  Simon Josefsson  <jas@extundo.com>
78377
78378         * lib/memxor.c (memxor): Fix compiler error.
78379
78380         * lib/md5.h (MD5_DIGEST_SIZE, MD5_BLOCK_SIZE): Add, see also
78381         <http://sourceware.org/bugzilla/show_bug.cgi?id=1423>.
78382
78383         * lib/memxor.h, lib/memxor.c: New files.
78384
78385         * lib/getaddrinfo.h: Don't protect sys/types.h with HAVE_SYS_TYPES_H,
78386         we assume all systems have it, suggested by Jim Meyering
78387         <jim@meyering.net>.  Remove HAVE_SYS_SOCKET_H test too, to see if
78388         any systems lack sys/socket.h; mingw32 is known to lack it, but we
78389         don't support it yet anyway.  Also remove HAVE_NETDB_H test, for
78390         same reasons.
78391
78392 2005-10-05  Simon Josefsson  <jas@extundo.com>
78393
78394         * config/srclist.txt: Add glibc bug 1423 for md5.h.
78395
78396 2005-10-05  Paul Eggert  <eggert@cs.ucla.edu>
78397
78398         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Don't check for
78399         sys/socket.h, netdb.h, sys/types.h; the checks areno longer
78400         needed, since the source code now assumes these .h files.
78401
78402 2005-10-05  Derek Price  <derek@ximbiot.com>
78403
78404         * lib/getdelim.c (SIZE_MAX): New macro, if not already defined.
78405
78406 2005-10-05  Bruno Haible  <bruno@clisp.org>
78407
78408         * modules/stdint (License): Change to LGPL.
78409
78410 2005-10-04  Simon Josefsson  <jas@extundo.com>
78411
78412         * lib/getaddrinfo.h: Move sys/types.h include first, reported by "Mark
78413         D. Baushke" <mdb@gnu.org>.
78414
78415 2005-10-04  Bruno Haible  <bruno@clisp.org>
78416
78417         * lib/verify.h (verify_true): Provide alternative definition for C++.
78418
78419 2005-10-03  Paul Eggert  <eggert@cs.ucla.edu>
78420
78421         * lib/getdelim.c: Include getdelim.h first.  Include <limits.h>.
78422         (SSIZE_MAX): New macro, if not already defined.
78423         (getdelim): Fix buffer overrun on 64-bit hosts with lines longer
78424         than 2 GiB.
78425
78426 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
78427
78428         Sync from coreutils.
78429         * m4/openat.m4 (gl_FUNC_OPENAT): Check for fdopendir.
78430         * m4/ullong_max.m4 (gl_ULLONG_MAX): Simplify so that it merely
78431         defines ULONG_MAX_LT_ULLONG_MAX.  Thomas M.Ott reports that
78432         ULLONG_MAX doesn't work with 2.7.2.1.
78433
78434 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
78435
78436         * modules/xreadlink (Makefile.am): Remove lib_SOURCES.
78437         From Ben Pfaff.
78438
78439         * modules/exclude (Depends-on): Depend on verify.
78440         * modules/strtoimax (Depends-on): Likewise.
78441         * modules/utimecmp (Depends-on): Likewise.
78442
78443 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
78444
78445         * lib/exclude.c: Include verify.h.
78446         (verify): Remove.  All callers changed to use verify.h's version.
78447         * lib/strtoimax.c: Likewise.
78448         * lib/utimecmp.c: Likewis.e
78449
78450         Sync from coreutils.
78451         * lib/.cppi-disable: Add getaddrinfo.h, getdelim.h, getline.h,
78452         getpass.c, mbchar.h, mbuiter.h, strcase.h, strnlen.h, strnlen1.h.
78453         * lib/.cvsignore: Add fts.h, search.h, t-fpending.
78454         * lib/settime.c (settime): Fix { typo in previous patch.  Also, don't
78455         bother returning ENOSYS if settimeofday or stime fails; just let
78456         them return whatever errno they want to return.
78457         * lib/utimens.c: Include unistd.h, for dup2.
78458         (futimens): Fix typo: HAVE_FUTIMESAT was misspelled in an #if.
78459         (futimens) [! HAVE_FUTIMESAT]: If !file, set errno before returning -1.
78460
78461 2005-10-02  Jim Meyering  <jim@meyering.net>
78462
78463         Sync from coreutils.
78464         * m4/utimes.m4 (gl_FUNC_UTIMES): Detect the version of utimes
78465         from glibc-2.2.5 that fails for read-only files.
78466
78467 2005-10-02  Jim Meyering  <jim@meyering.net>
78468
78469         Sync from coreutils.
78470         * lib/fts-cycle.c [HAVE_CONFIG_H]: Include <config.h>.
78471         * lib/openat-die.c: Use `#ifdef HAVE_CONFIG_H', not
78472         `#if HAVE_CONFIG_H'.
78473         * lib/openat.c (fdopendir): Do not define if HAVE_FDOPENDIR.
78474         Remove AT_FDCWD test.
78475         Do not consume the fd unless successful.
78476         * lib/openat.h (fdopendir): Do not define if HAVE_FDOPENDIR.
78477         * lib/settime.c (settime): Move the HAVE_STIME block `up' into an #elif
78478         block, so that we don't even try to compile it if settimeofday is
78479         available.  This works around a compilation failure on OSF1 V5.1,
78480         due to stime requiring a `long int*' while tv_sec is `int'.
78481
78482 2005-10-02  Alfred M. Szmidt  <ams@gnu.org>
78483
78484         Sync from coreutils.
78485         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Compare $gl_have_path...
78486         against `yes', rather than just testing for nonempty.
78487
78488 2005-10-01  Simon Josefsson  <jas@extundo.com>
78489
78490         * m4/getaddrinfo.m4: Include sys/types.h for sys/socket.h, on FreeBSD
78491         and Darwin.
78492
78493         * m4/getaddrinfo.m4: Use AC_GNU_SOURCE, GNU only declare getaddrinfo
78494         as an (POSIX) extension.  Check for sys/types.h, sys/socket.h, and
78495         netdb.h too, needed by getaddrinfo.h.  Check if getaddrinfo,
78496         freeaddrinfo and gai_strerror are declared by the POSIX headers.
78497         Check if struct addrinfo is declared.
78498
78499 2005-10-01  Simon Josefsson  <jas@extundo.com>
78500
78501         * lib/getaddrinfo.h: Protect #include's of sys/socket.h and netdb.h.
78502         Only define struct addrinfo if !HAVE_STRUCT_ADDRINFO.  Protect
78503         AI_* and EAI_* definitions.  Protect function declarations.
78504
78505 2005-10-01  Jim Meyering  <jim@meyering.net>
78506
78507         Sync from coreutils.
78508
78509         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Look for getservbyname in these
78510         libraries [inet nsl socket xnet].  Nelson Beebe reported that with
78511         native cc on Solaris 7, getaddrinfo.c requires -lsocket.
78512         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Check for gethostbyname
78513         in the inet and nsl libraries.  Required on Solaris 5.7.
78514
78515 2005-10-01  Jim Meyering  <jim@meyering.net>
78516
78517         Sync from coreutils.
78518         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Check for gethostbyname
78519         in the inet and nsl libraries.  Required on Solaris 5.7.
78520
78521 2005-10-01  Eric Blake  <ebb9@byu.net>  (tiny change)
78522
78523         * lib/getdelim.c (getdelim): Remove unused variables.
78524
78525 2005-09-29  Paul Eggert  <eggert@cs.ucla.edu>
78526
78527         * lib/xtime.h (XTIME_PRECISION): Now of type int, not long long int,
78528         so that the code works even with ancient cpp.  Portability problem
78529         with GCC 2.7.2.1 reported by Thomas M.Ott.
78530
78531 2005-09-27  Paul Eggert  <eggert@cs.ucla.edu>
78532
78533         * modules/regex (Depends-on): Add strcase.
78534
78535         * modules/gethostname (Licence): Change from GPL to LGPL, since
78536         gethostname.c is a trivial implementation of a standard library
78537         function.
78538         * modules/poll (License): Change from GPL to LGPL, since it's
78539         derived from LGPL code.
78540
78541 2005-09-27  Jim Meyering  <jim@meyering.net>
78542
78543         * lib/getcwd.c: Change #ifdef<TAB>HAVE_CONFIG_H to #ifdef
78544         HAVE_CONFIG_H.
78545
78546         * lib/intprops.h (signed_type_or_expr__): Define.
78547         (INT_STRLEN_BOUND) [__GNUC__]: Use a slightly tighter bound
78548         for unsigned types.
78549
78550 2005-09-26  Paul Eggert  <eggert@cs.ucla.edu>
78551
78552         * lib/verify.h (verify_expr): Remove, replacing with:
78553         (verify_true): New macro that returns true instead of void.
78554         (verify_type__): Remove.
78555         (verify): Use verify_true rather than verify_type__.
78556
78557 2005-09-26  Bruno Haible  <bruno@clisp.org>
78558
78559         * modules/mbchar (Include): Mention that HAVE_WCHAR_H && HAVE_WCTYPE_H
78560         is necessary.
78561         (lib_SOURCES): Remove mbchar.c.
78562         * modules/mbfile (Include): Mention that HAVE_MBRTOWC is necessary.
78563         (Files): Add m4/mbrtowc.m4.
78564         * modules/mbiter: Likewise.
78565         * modules/mbuiter: Likewise.
78566
78567 2005-09-26  Bruno Haible  <bruno@clisp.org>
78568
78569         * m4/mbchar.m4 (gl_MBCHAR): Check for wchar.h and wctype.h. Don't
78570         compile mbchar.c if they are not both present.
78571         * m4/mbfile.m4 (gl_MBFILE): Require gl_FUNC_MBRTOWC.
78572         * m4/mbiter.m4 (gl_MBITER): Likewise.
78573         * m4/strstr.m4 (gl_PREREQ_STRSTR): Use AC_REQUIRE.
78574         * m4/strcasestr.m4 (gl_PREREQ_STRCASESTR): Likewise.
78575         * m4/strcase.m4 (gl_PREREQ_STRCASECMP): Likewise.
78576
78577 2005-09-25  Jim Meyering  <jim@meyering.net>
78578
78579         * modules/inet_ntop (Depends-on): Add socklen, since inet_ntop.c
78580         also uses socklen_t.
78581
78582 2005-09-24  Paul Eggert  <eggert@cs.ucla.edu>
78583
78584         * lib/utimens.c (ENOSYS): Define if not already defined.
78585         (futimens): Support having a null PATH if the file descriptor
78586         is nonnegative.
78587
78588         * lib/regex_internal.h (__GNUC_PREREQ, always_inline, inline, pure):
78589         Remove.
78590         (__attribute): Define to empty unless GCC 3.1 or later.
78591         This works around a core dump on OpenBSD 3.4, which has GCC
78592         2.95.3, which dumps core when given __attribute__(()).  It also
78593         simplifies other tests, since we really don't want to bother with
78594         worrying about which ancient version of GCC supported what.
78595         Original problem reported by Yoann Vandoorselaere, with part of
78596         the fix suggested by Derek Price.
78597
78598 2005-09-24  Jim Meyering  <jim@meyering.net>
78599
78600         * lib/verify.h (verify_type__): Use `unsigned int' as the bitfield type
78601         so we can once again use a positive bitfield width of 1 -- now we
78602         don't have to explain why we were using a bitfield width of 2.
78603
78604 2005-09-23  Paul Eggert  <eggert@cs.ucla.edu>
78605
78606         * m4/regex.m4 (gl_REGEX): If replacing, define regcomp to rpl_regcomp,
78607         and similarly for the other external symbols.  Problem reported
78608         by James Gallager.
78609
78610         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Catch Sun Studio 10u1 on Linux
78611         bug reported by Jim Meyering.
78612
78613         * m4/utimens.m4 (gl_UTIMENS): Check for futimesat.
78614         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Undo previous change;
78615         not needed, since socklen is a prerequisite module.
78616
78617 2005-09-23  Paul Eggert  <eggert@cs.ucla.edu>
78618
78619         * lib/getaddrinfo.c [HAVE_NETINET_IN_H]: Include <netinet/in.h>.
78620         Problem reported by Eric Blake.
78621         (getaddrinfo): Initialize se so that it's not garbage.
78622         Redo internal storage allocation so that it doesn't make unportable
78623         assumptions about alignment.
78624         Fix a memory leak.
78625
78626         * lib/utimens.c (futimens): Use futimesat if available.
78627         Prefer it to futimes since it doesn't have the futimes bug.
78628
78629         * lib/verify.h (GL_CONCAT0, GL_CONCAT): Remove.
78630         (verify): Don't use the __LINE__ trick, as it doesn't work in general.
78631         Instead, declare a function that returns a pointer to an array,
78632         and use verify_type__ to declare the size of the array.
78633         Problem and germ of a solution reported by Bruno Haible.
78634         (verify_type__): Use 2, not 1, for bitfield size, to avoid
78635         a warning with Irix 6.5 cc.  Problem reported by Bruno Haible.
78636
78637 2005-09-23  Jim Meyering  <jim@meyering.net>
78638
78639         Sync from coreutils.
78640         Correct build failure (socklen_t not defined) on at least
78641         mips-sgi-irix6.5 and alphaev67-dec-osf5.1.
78642         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Require gl_SOCKLEN_T.
78643
78644 2005-09-23  Jim Meyering  <jim@meyering.net>
78645
78646         * modules/getaddrinfo (Depends-on): Add socklen.
78647
78648 2005-09-23  Bruno Haible  <bruno@clisp.org>
78649
78650         * tests/test-verify.c: New file.
78651
78652 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
78653
78654         Sync from coreutils.
78655
78656         * modules/argmatch (Depends-on): Add verify.
78657         * modules/getloadavg (Depends-on): Depend on fcntl-safer, not
78658         unistd-safer.
78659         * modules/save-cwd (Depends-on): Likewise.
78660
78661         * modules/openat (Files): Add lib/openat-die.c.
78662         (Depends-on): Remove error, exitfail.
78663         Add dirname.
78664
78665         * modules/verify: New file.
78666         * MODULES.html.sh (Diagnostics <assert.h>): New section,
78667         with "verify" module.
78668
78669 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
78670
78671         Sync from coreutils.
78672
78673         * m4/backupfile.m4, calloc.m4, chown.m4, cloexec.m4, dup2.m4:
78674         * m4/fileblocks.m4, free.m4, ftruncate.m4, getcwd.m4, getpagesize.m4:
78675         * m4/getugroups.m4, group-member.m4, idcache.m4, link-follow.m4:
78676         * m4/mkstemp.m4, mktime.m4, mountlist.m4, nanosleep.m4, pathmax.m4:
78677         * m4/physmem.m4, posixver.m4, putenv.m4, safe-read.m4, same.m4:
78678         * m4/save-cwd.m4, stdio-safer.m4, unistd-safer.m4, unlinkdir.m4:
78679         * m4/userspec.m4, xgetcwd.m4, xreadlink.m4:
78680         Don't bother checking for string.h, stdlib.h, unistd.h.
78681         * m4/fts.m4 (gl_FUNC_FTS_CORE): Don't require
78682         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK; that's now the lstat
78683         module's job.
78684         * m4/jm-macros.m4 (gl_MACROS): Likewise.
78685         * m4/prereq.m4 (gl_PREREQ): Add gl_FUNC_LSTAT.
78686
78687         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): New macro.
78688         (gl_GETDATE): Use it.
78689
78690         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Don't bother checking for unistd.h.
78691
78692 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
78693
78694         Sync from coreutils.
78695
78696         * lib/.cppi-disable: Add regcomp.c, regex_internal.c, regex_internal.h,
78697         stat-time.h.
78698         * lib/argmatch.h: Include verify.h
78699         (ARGMATCH_VERIFY): Use verify rather than rolling our own.
78700         (ARGMATCH_ASSERT): Remove; unused.
78701         * lib/canonicalize.c: Assume STDC_HEADERS.
78702         * lib/exclude.c: Include "strcase.h".
78703         * lib/regex_internal.h [!defined _LIBC]: Likewise.
78704         * lib/getusershell.c: Include stdio--.h rather than stdio.h
78705         and stdio-safer.h.
78706         (getusershell): Call fopen, not fopen_safer.
78707         * lib/save-cwd.c: Include fcntl--.h rather than fcntl.h.
78708         Do not include unistd-safer.h.
78709         (save_cwd): Don't call fd_safer; no longer needed
78710         now that we include fcntl--.h.
78711
78712         * lib/getdate.y (relative_time): New type.
78713         (RELATIVE_TIME_0): New constant.
78714         (parser_control): Use relative_time instead of doing it ourselves.
78715         (%union): Add new relative_time rel member.
78716         (tYEAR_UNIT, tMONTH_UNIT, tHOUR_UNIT, tMINUTE_UNIT, tSEC_UNIT):
78717         Now typeless.
78718         (relunit, relunit_snumber): Now of type rel.
78719         (zone, rel, relunit, get_date): Adjust to above changes.
78720
78721         * lib/getloadavg.c: Include fcntl--.h rather than fcntl.h.
78722         Do not include unistd-safer.h.
78723         (getloadavg): Don't call fd_safer; no longer needed
78724         now that we include fcntl--.h.
78725
78726         * lib/mkdir-p.c (ENOSYS): Define to EEXIST if not defined.
78727         (make_dir_parents): Treat ENOSYS like EEXIST.
78728
78729         Improve quality of diagnostics on restore_cwd failure.
78730         * lib/mkdir-p.h (make_dir): Remove.  All uses replaced by mkdir.
78731         (make_dir_parents): Last arg is now int * (for errno), not bool *.
78732         * lib/mkdir-p.c (make_dir, make_dir_parents): Likewise.
78733         Rewrite "mkdir -p" algorithm to avoid the need for "stat"
78734         each time through the loop.  Do not diagnose restore_cwd failure;
78735         that is the caller's job (and perhaps the caller does not care).
78736
78737         * lib/mkdir-p.c (CLEANUP_CWD, CLEANUP): Remove.
78738         (make_dir_parents): Revamp to avoid need for CLEANUP_CWD, CLEANUP.
78739         If the file already exists but is not a directory, don't bother
78740         to try to make its parents.
78741         Close potential file descriptor leak if we can't chdir("/") (!).
78742         Don't always return true if chdir($PWD) fails; return true only
78743         if the requested action was done successfully (except for the
78744         chdir($PWD)).
78745         Don't log final directory unless we actually made it.
78746         Refactor to avoid duplicate code to fix up permissions.
78747         Don't attempt to fix up parent permissions if chdir($PWD) fails.
78748
78749         * lib/strftime.c (my_strftime): Rewrite the previous change slightly,
78750         to make it a bit faster and (I hope) clearer.
78751         * lib/strftime.c (my_strftime): Add support for %:z, %::z, %:::z.
78752         Fix bug in formats like %2N.
78753
78754         * lib/verify.h: New file.
78755
78756 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
78757
78758         Sync from coreutils.
78759         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Check for netinet/in.h.
78760
78761 2005-09-22  Jim Meyering  <jim@meyering.net>
78762
78763         Sync from coreutils.
78764
78765         * m4/lstat.m4 (gl_FUNC_LSTAT):
78766         Use AC_LIBSOURCES to require lstat.c and lstat.h.
78767         Remove obsolete comment.
78768         * m4/xreadlink.m4: Use AC_LIBSOURCES and AC_LIBOBJ.
78769         * m4/xstrtod.m4: Likewise.
78770
78771         * m4/openat.m4 (gl_FUNC_OPENAT): Add openat-die.c.
78772
78773 2005-09-22  Jim Meyering  <jim@meyering.net>
78774
78775         Sync from coreutils.
78776
78777         * lib/backupfile.c: Use ARGMATCH_VERIFY, just in case.
78778
78779         * lib/posixtm.c (posixtime) [lint]: Initialize *all* of tm0, not just
78780         the .tm_year member, since otherwise gcc-4.0 would now warn about
78781         tm_zone, tm_gmtoff, tm_isdst, tm_yday, tm_wday.
78782
78783         * lib/quotearg.c (quotearg_n_options): Change code to be suboptimal, in
78784         order to avoid an unsuppressible warning from gcc on 64-bit systems.
78785
78786         * lib/getdate.y (get_date): Undo part of the 2005-04-04 change, so that
78787         the command "date -d'2005-03-27 +1 day'" succeeds once again, even
78788         when run in a time zone for which daylight savings time is in effect
78789         for the starting date.
78790
78791         * lib/mkdir-p.c (make_dir_parents): Don't let a failed chdir($PWD)
78792         stop us from restricting permissions of just-created absolute-named
78793         directories.
78794         * lib/mkdir-p.c (CLEANUP_CWD): Return *true*, not false when failing
78795         to restore initial working directory.
78796         * lib/mkdir-p.c (make_dir_parents): New parameter:
78797         different_working_dir, to tell caller if/when we change the working
78798         directory and are unable to return to the initial one.
78799         * lib/mkdir-p.h (make_dir_parents): Update prototype.
78800         * lib/mkdir-p.c (CLEANUP_CWD): Change one more `return 1' to
78801         `return false'.  This fixes a bug introduced on 2004-07-30.
78802
78803         * lib/openat.c (fdopendir): Be sure to close the supplied
78804         file descriptor before returning.  This makes our replacement
78805         implementation a little closer to Solaris's, where fdopendir
78806         ties the file descriptor to the returned DIR* pointer.
78807         * lib/openat.c (unlinkat): New function.
78808         * lib/openat.h (unlinkat): Add prototype.
78809         * lib/openat-die.c (openat_save_fail): Rename from openat_save_die.
78810         (openat_restore_fail): Rename from openat_restore_die.
78811         * lib/openat.c, openat.h: Reflect s/_die/_fail/ renaming.
78812
78813         Provide an alternative to exiting immediately upon save_cwd or
78814         restore_cwd failure.  Now, an application can arrange e.g.,
78815         to perform a longjump in that case.
78816         * lib/openat.c: Include dirname.h.
78817         Use IS_ABSOLUTE_FILE_NAME rather than testing for leading slash.
78818         (rpl_openat, fdopendir, fstatat): Call openat_save_die
78819         and openat_restore_die rather than calling error directly.
78820         Don't include "error.h" or "exitfail.h"; they're no longer needed.
78821
78822         * lib/openat-die.c (openat_save_die, openat_restore_die): New file.
78823         * lib/openat.h (openat_save_die, openat_restore_die): Declare and
78824         define.
78825
78826         * lib/strftime.c [FPRINTFTIME] (fprintftime): Provide a new interface:
78827         size_t fprintftime (FILE *fp, char const *fmt, struct tm const *tm,
78828                             int utc, int nanoseconds);
78829         Background:
78830         date should not have to allocate a megabyte of virtual memory to
78831         handle a format argument like +%1048575T.  When implemented with
78832         strftime, it must allocate such a buffer, use strftime to fill it
78833         in, print it, then free it.
78834         With fprintftime, it simply prints everything and exits.
78835         With no need for memory allocation, that's one fewer way to fail.
78836         * lib/strftime.c (my_strftime): Parse the colons of %:::z *after* the
78837         optional field width, not before, so we accept %9:z, not %:9z.
78838         (my_strftime): Be sure to use L_('x') for literals.
78839
78840         * lib/backupfile.c, lib/canon-host.c, lib/canonicalize.c, lib/chown.c:
78841         * lib/cloexec.c, lib/dup-safer.c, lib/dup2.c, lib/euidaccess.c:
78842         * lib/fd-safer.c, lib/fileblocks.c, lib/fopen-safer.c, lib/fsusage.c:
78843         * lib/ftruncate.c, lib/getcwd.c, lib/getcwd.h, lib/getloadavg.c:
78844         * lib/getopt_.h, lib/getpagesize.h, lib/getugroups.c:
78845         * lib/group-member.c, lib/human.h, lib/idcache.c, lib/mkdir-p.c:
78846         * lib/mountlist.c, lib/nanosleep.c, lib/pathmax.h, lib/physmem.c:
78847         * lib/posixver.c, lib/putenv.c, lib/raise.c, lib/safe-read.c:
78848         * lib/same.c, lib/save-cwd.c, lib/setenv.c, lib/settime.c:
78849         * lib/tempname.c, lib/unlinkdir.c, lib/unsetenv.c, lib/userspec.c:
78850         * lib/xgethostname.c, lib/xreadlink.c:
78851         Assume HAVE_UNISTD_H, i.e., include <unistd.h> unconditionally.
78852
78853         * lib/chown.c, lib/cloexec.c, lib/dup-safer.c, lib/dup2.c:
78854         * lib/fsusage.c, lib/getcwd.c, lib/getloadavg.c, lib/mountlist.c:
78855         * lib/openat.h, lib/save-cwd.c, lib/tempname.c:
78856         Assume HAVE_FCNTL_H (i.e., include <fcntl.h> unconditionally,
78857         and don't include <sys/file.h>).
78858
78859 2005-09-22  Eric Blake  <ebb9@byu.net>  (tiny change)
78860
78861         Sync from coreutils.
78862
78863         * lib/getloadavg.c (getloadavg) [__CYGWIN__]: Port to cygwin.
78864         [__linux__]: Allocate a big enough buffer for /proc/loadavg.
78865         [!LDAV_DONE]: Avoid unused variable warning.
78866
78867 2005-09-21  Bruno Haible  <bruno@clisp.org>
78868
78869         * lib/unicodeio.h (unicode_to_mb): New declaration.
78870
78871 2005-09-20  Derek Price  <derek@ximbiot.com>
78872
78873         * lib/getaddrinfo.c: Don't include <netdb.h> included from
78874         getaddrinfo.h.
78875
78876 2005-09-20  Bruno Haible  <bruno@clisp.org>
78877
78878         * gnulib-tool: Remove trailing slashes from the values specified for
78879         --source-base, --m4-base, --tests-base, --aux-dir.
78880         Suggested by Simon Josefsson <jas@extundo.com>.
78881
78882 2005-09-20  Bruno Haible  <bruno@clisp.org>
78883
78884         * gnulib-tool (func_all_modules, func_modules_transitive_closure,
78885         func_modules_to_filelist, func_import, func_create_testdir): Make all
78886         sorting results locale-independent, so that gnulib-cache.m4 doesn't
78887         change when gnulib-tool is invoked in a different locale.
78888
78889 2005-09-19  Simon Josefsson  <jas@extundo.com>
78890
78891         * m4/socklen.m4: Fix typo.
78892
78893 2005-09-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
78894
78895         Use a consistent style for including <config.h>.
78896         * lib/__fpending.c, lib/acl.c, lib/argmatch.c, lib/argp-help.c,
78897         lib/argp-parse.c, lib/argp-pvh.c, lib/backupfile.c, lib/basename.c,
78898         lib/c-stack.c, lib/calloc.c, lib/check-version.c, lib/cloexec.c,
78899         lib/closeout.c, lib/copy-file.c, lib/creat-safer.c, lib/cycle-check.c,
78900         lib/dirfd.c, lib/dirname.c, lib/dup-safer.c, lib/dup2.c,
78901         lib/euidaccess.c, lib/exclude.c, lib/exitfail.c, lib/fatal-signal.c,
78902         lib/fd-safer.c, lib/file-type.c, lib/fileblocks.c, lib/filemode.c,
78903         lib/filenamecat.c, lib/findprog.c, lib/fnmatch.c, lib/fopen-safer.c,
78904         lib/free.c, lib/fsusage.c, lib/ftruncate.c, lib/full-write.c,
78905         lib/fwriteerror.c, lib/getaddrinfo.c, lib/getcwd.c, lib/getdelim.c,
78906         lib/getline.c, lib/getlogin_r.c, lib/getndelim2.c, lib/getnline.c,
78907         lib/getopt1.c, lib/getpass.c, lib/group-member.c, lib/hard-locale.c,
78908         lib/hash-pjw.c, lib/hash.c, lib/human.c, lib/idcache.c,
78909         lib/inet_ntop.c, lib/isdir.c, lib/long-options.c, lib/malloc.c,
78910         lib/memcasecmp.c, lib/memcmp.c, lib/memcoll.c, lib/memcpy.c,
78911         lib/memmove.c, lib/mkdir-p.c, lib/modechange.c, lib/mountlist.c,
78912         lib/open-safer.c, lib/physmem.c, lib/pipe-safer.c, lib/pipe.c,
78913         lib/poll.c, lib/posixver.c, lib/progname.c, lib/progreloc.c,
78914         lib/putenv.c, lib/quote.c, lib/quotearg.c, lib/readline.c,
78915         lib/readlink.c, lib/realloc.c, lib/regex.c, lib/rename.c, lib/rmdir.c,
78916         lib/rpmatch.c, lib/safe-read.c, lib/same.c, lib/save-cwd.c,
78917         lib/savedir.c, lib/sig2str.c, lib/strcspn.c, lib/strerror.c,
78918         lib/stripslash.c, lib/strncasecmp.c, lib/strndup.c, lib/strnlen.c,
78919         lib/strnlen1.c, lib/strsep.c, lib/strstr.c, lib/strtod.c,
78920         lib/strtoimax.c, lib/strtol.c, lib/strverscmp.c, lib/tempname.c,
78921         lib/time_r.c, lib/userspec.c, lib/utimecmp.c, lib/version-etc-fsf.c,
78922         lib/version-etc.c, lib/wait-process.c, lib/xalloc-die.c, lib/xgetcwd.c,
78923         lib/xmalloc.c, lib/xmemcoll.c, lib/xnanosleep.c, lib/xreadlink.c,
78924         lib/xsetenv.c, lib/xstrndup.c, lib/xstrtoimax.c, lib/xstrtol.c,
78925         lib/xstrtoumax.c, lib/yesno.c:
78926         Standardize inclusion of config.h.
78927         * lib/__fpending.h, lib/dirfd.h, lib/getdate.h, lib/human.h,
78928         lib/inttostr.h:  Removed inclusion of config.h from header files.
78929         * lib/inttostr.c:  Adjusted in-tree users.
78930         * lib/timespec.h: Remove superfluous warning to include config.h.
78931         * lib/atexit.c, lib/chdir-long.c, lib/chown.c, lib/fchown-stub.c,
78932         lib/getgroups.c, lib/gettimeofday.c, lib/lchown.c, lib/lstat.c,
78933         lib/mkdir.c, lib/mkstemp.c, lib/nanosleep.c, lib/openat.c, lib/raise.c,
78934         lib/readtokens0.c, lib/readutmp.c, lib/unlinkdir.c: Guard inclusion of
78935         config.h with HAVE_CONFIG_H.
78936
78937 2005-09-19  Jim Meyering  <jim@meyering.net>
78938
78939         * modules/pathmax (License): Change to LGPL.
78940
78941 2005-09-19  Derek Price  <derek@ximbiot.com>
78942
78943         * config/srclist.txt: glibc's glob.h is now in lib/glob-libc.h.
78944
78945 2005-09-19  Bruno Haible  <bruno@clisp.org>
78946
78947         * gnulib-tool (import): Provide default for --tests-base.
78948
78949 2005-09-19  Bruno Haible  <bruno@clisp.org>
78950
78951         * doc/quote.texi: New file, extracted from gnulib.texi.
78952         * doc/ctime.texi: New file, extracted from gnulib.texi.
78953         * doc/inet_ntoa.texi: New file, extracted from gnulib.texi.
78954         * doc/gnulib-tool.texi: New file, extracted from gnulib.texi.
78955         * doc/gnulib.texi: Include them.
78956
78957 2005-09-18  Bruno Haible  <bruno@clisp.org>
78958
78959         Portability fix.
78960         * gnulib-tool (func_readlink): New function.
78961         (func_ln_if_changed): Use it.
78962
78963 2005-09-18  Bruno Haible  <bruno@clisp.org>
78964
78965         * gnulib-tool: Support --with-tests also with --import.
78966         (func_emit_tests_Makefile_am): Use variables $m4base and $testsbase.
78967         (func_import): Use variables $testsbase and $inctests. Emit a
78968         gl_TESTS_BASE form into gnulib-cache.m4. Create $testsbase/Makefile.am.
78969         Remind the user to add AC_CONFIG_FILES($testsdir/Makefile) and
78970         SUBDIRS += $testsdir.
78971         (func_create_testdir): Update.
78972
78973 2005-09-18  Bruno Haible  <bruno@clisp.org>
78974
78975         * gnulib-tool: Revise --dry-run implementation. Use variable $doit
78976         instead of $dry_run.
78977         (func_cp_if_changed, func_mv_if_changed): Remove functions.
78978         (func_ln_if_changed): Don't handle dry-run here.
78979         (func_import): In dry-run mode, detect more precisely which actions
78980         would be performed, and don't use "...ing" verbs.
78981
78982 2005-09-18  Bruno Haible  <bruno@clisp.org>
78983
78984         * gnulib-tool (func_tmpdir): New function, taken from GNU gettextize.
78985         (func_import): Use join on two temporary files instead of three nested
78986         loops, in order to determine which files are new or old.
78987
78988 2005-09-18  Bruno Haible  <bruno@clisp.org>
78989
78990         * gnulib-tool (func_import): Comment out code that spits out the
78991         new files with --dry-run.
78992
78993 2005-09-18  Bruno Haible  <bruno@clisp.org>
78994
78995         * doc/gnulib.texi (Invoking gnulib-tool): 50% rewritten.
78996
78997 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
78998
78999         * lib/stat-time.h: New file.
79000         * lib/timespec.h (ST_TIME_CMP_NS, ST_TIME_CMP, ATIME_CMP, CTIME_CMP):
79001         (MTIME_CMP, TIMESPEC_NS): Remove.  Now done by stat-time.h,
79002         in a different way.
79003         (timespec_cmp): New function.
79004         * lib/utimecmp.c: Include stat-time.h.
79005         (SYSCALL_RESOLUTION): Depend on whether various struct stat
79006         members exist, not on the obsolescent ST_MTIM_NSEC.
79007         (utimecmp): Use the new stat-time functions rater than TIMESPEC_NS.
79008
79009 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
79010
79011         * config/srclist.txt: Remove glibc bug 1033 and uncomment mktime.c.
79012
79013 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
79014
79015         * MODULES.html.sh (File system functions): Add stat-time.
79016         * modules/stat-time: New file.
79017         * modules/timespec (Files): Remove m4/st_mtim.m4; this
79018         is now done in a different way, by the stat-time module.
79019         * modules/utimecmp (Depends-on): Add stat-time.
79020
79021 2005-09-15  Paul Eggert  <eggert@cs.ucla.edu>
79022
79023         * m4/st_mtim.m4: Remove.  Superseded by...
79024         * m4/stat-time.m4: New file.
79025         * m4/timespec.m4 (gl_TIMESPEC): Require AC_C_INLINE.
79026         Do not invoke AC_STRUCT_ST_MTIM_NSEC; no longer needed.
79027
79028 2005-09-15  Derek Price  <derek@ximbiot.com>
79029
79030         * m4/strstr.m4 (gl_FUNC_STRSTR): Don't define strstr here.
79031
79032 2005-09-15  Derek Price  <derek@ximbiot.com>
79033
79034         * lib/regex_internal.h: Blank `pure' for GNUC < 3.
79035         * lib/regex_internal.c: Ditto, using this...
79036         (__GNUC_PREREQ): ...new macro.
79037         * lib/regcomp.c, regexec.c: Blank `always_inline' for GNUC < 3.1
79038         using...
79039         (__GNUC_PREREQ): ...this new macro.
79040
79041         * lib/strstr.h: Include string.h. Define strstr as a macro here.
79042
79043 2005-09-15  Derek Price  <derek@ximbiot.com>
79044             Paul Eggert  <eggert@cs.ucla.edu>
79045
79046         * lib/regcomp.c, regexec.c, regex_internal.c: Back out previous
79047         changes, consolidating in...
79048         * lib/regex_internal.h: ...this file.
79049
79050 2005-09-13  Jim Meyering  <jim@meyering.net>
79051
79052         * lib/canon-host.c: Filter through gnu indent and reword comments
79053         slightly.
79054         * lib/canon-host.h (ch_strerror_r): Tweak cpp indentation and spacing.
79055
79056 2005-09-13  Derek Price  <derek@ximbiot.com>
79057
79058         * lib/canon-host.c (canon_host_r): Set *cherror on memory allocation
79059         failure.
79060         Reported by Jim Meyering  <jim@meyering.net>.
79061
79062 2005-09-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
79063
79064         * lib/base64.c: Typo.
79065         (base64_encode): Put b64str in initialized data section.
79066
79067 2005-09-12  Paul Eggert  <eggert@cs.ucla.edu>
79068
79069         Merge glibc and coreutils changes into gnulib, plus a few
79070         extra fixes.
79071         * lib/md5.c: Use #error rather than a string.
79072         (CYCLIC): New macro, from glibc source.  Use it instead of rol.
79073         * lib/md5.h (__GNUC_PREREQ, __THROW): Define if not defined already.
79074         (__attribute__): Define to empty for non recent-GCC.
79075         (__md5_buffer, __md5_finish_ctx, __md5_init_ctx, __md5_process_block):
79076         (__md5_process_bytes, __md5_read_ctx, __md5_stream):
79077         Renamed from their non-__ counterparts, with new macros replacing
79078         them if not _LIBC.  Add __THROW attribute.
79079         (rol): Remove.
79080         (struct md5_ctx): Align buffer if using GCC.
79081         * lib/sha1.h (struct sha1_ctx): Likewise.
79082         * lib/sha1.c (SWAP): Renamed from the NOTSWAP.  All uses changed.
79083         The old name was backwards.
79084         (NOTSWAP): Remove; not used.
79085         (rol): New macro, moved here from md5.h.
79086         (sha1_process_block): Remove a FIXME that doesn't make sense.
79087
79088 2005-09-12  Derek Price  <derek@ximbiot.com>
79089
79090         Return usable errors from canon-host.
79091         * lib/canon-host.h: New file.
79092         * lib/canon-host.c (canon_host): Wrap...
79093         (canon_host_r): ...this new function, which now relies exclusively on
79094         getaddrinfo.
79095         (ch_strerror): New function.
79096         (last_cherror): New global.
79097         * lib/getaddrinfo.c: Move include of getaddrinfo.h first to test
79098         interface.
79099         (getaddrinfo): Add AI_CANONNAME functionality.  Don't do arithmetic on
79100         void *.
79101         (freeaddrinfo): Free ai->ai_canonname when set.
79102
79103 2005-09-12  Derek Price  <derek@ximbiot.com>
79104
79105         Make canon-host require getaddrinfo.
79106         * m4/canon-host.m4 (gl_CANON_HOST): Remove most dependencies.
79107         AC_LIBSOURCE canon-host.h.  Call...
79108         (gl_PREREQ_CANON_HOST): ...this new function, which requires
79109         gl_GETADDRINFO.
79110         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Compile gai_strerror when needed.
79111
79112 2005-09-12  Derek Price  <derek@ximbiot.com>
79113
79114         * modules/canon-host: Add canon-host.h.  Depend on getaddrinfo.  Make
79115         LGPL.
79116         * modules/getaddrinfo: Add link to opengroup spec.  Depend on strdup.
79117
79118 2005-09-12  Derek Price  <derek@ximbiot.com>
79119
79120         * lib/gai_strerror.c: Include config.h when available.  Include
79121         getaddrinfo.h before other headers to test interface.
79122         Reported by Larry Jones <lawrence.jones@ugs.com>.
79123
79124 2005-09-12  Derek Price  <derek@ximbiot.com>
79125             Paul Eggert  <eggert@cs.ucla.edu>
79126
79127         * modules/glob (Files): Add glob-libc.h.
79128
79129 2005-09-12  Derek Price  <derek@ximbiot.com>
79130             Paul Eggert  <eggert@cs.ucla.edu>
79131
79132         * m4/glob.m4 (gl_GLOB_SUBSTITUTE): AC_LIBSOURCES for glob.c,
79133         glob_.h, glob-libc.h.
79134         (gl_PREREQ_GLOB): Remove _SYS_CDEFS_H hack; no longer needed.
79135
79136 2005-09-12  Derek Price  <derek@ximbiot.com>
79137             Paul Eggert  <eggert@cs.ucla.edu>
79138
79139         * lib/glob-libc.h: Renamed from glob_.h.  The new version is
79140         taken from libc's glob.h, except with '#ifdef __GLOB_GNULIB'
79141         protecting things that should be done only in gnulib contexts.
79142         * lib/glob_.h: New file, containing only the glob things needed for
79143         gnulib.
79144         (GLOB_PREFIX): Remove.  All uses changed to look for __GLOB_GNULIB.
79145         (__GLOB_CONCAT, __GLOB_XCONCAT, __GLOB_ID): Remove; no longer needed.
79146         (glob, globfree, glob_pattern_p): Now defined simply in terms of
79147         rpl_glob, rpl_globfree, rpl_glob_pattern_p.
79148         (__GLOB_GNULIB): New macro, to keep the glob.h changes clearer
79149         and to respect the namespace rules better.
79150
79151 2005-09-08  Simon Josefsson  <jas@extundo.com>
79152
79153         * modules/socklen: New file.
79154
79155 2005-09-08  Simon Josefsson  <jas@extundo.com>
79156
79157         * m4/socklen.m4: New file.
79158
79159 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
79160
79161         * modules/utimens (Files): Add m4/utimbuf.m4, since
79162         m4/utimens.m4 requires gl_CHECK_TYPE_STRUCT_UTIMBUF.
79163         Reported by Sergey Poznyakoff.
79164
79165 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
79166
79167         * lib/glob.c (glob, globfree, __glob_pattern_p): Use old-style function
79168         definitions, since that's the preferred style in glibc.
79169         Fix a minor spacing issue, and update copyright notice to match
79170         glibc's.
79171
79172 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
79173
79174         * config/srclist.txt: Remove glibc bug 1061; it's been fixed.
79175
79176 2005-09-06  Simon Josefsson  <jas@extundo.com>
79177
79178         * lib/getpass.c (getpass): Fix typo, test for HAVE_TCSETATTR and not
79179         TCSETATTR.  Reported by Derek Price <derek@ximbiot.com>.
79180
79181 2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
79182
79183         * lib/regex_internal.h (bitset_not): Add parens to avoid gcc -Wall
79184         warning.
79185
79186 2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
79187
79188         * config/srclist.txt: Add glibc bug 1302.
79189
79190 2005-09-05  Paul Eggert  <eggert@cs.ucla.edu>
79191
79192         Change bitset word type from unsigned int to unsigned long int,
79193         as this has better performance on typical 64-bit hosts.
79194         Port bitset code to hosts with unusual word sizes.
79195         * lib/regcomp.c (build_equiv_class, build_charclass, build_range_exp):
79196         (build_collating_symbol):
79197         Prefer bitset to re_bitset_ptr_t in prototypes, when the actual
79198         argument is a bitset.  This is merely a style issue, but it makes
79199         it clearer that an entire array is expected.
79200         (re_compile_fastmap_iter, init_dfa, init_word_char, optimize_subexps):
79201         * lib/regcomp.c (lower_subexp, parse_bracket_exp, built_charclass_op):
79202         Port to the case where bitset_word is not the same as unsigned int.
79203         * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain):
79204         (bitset_not, bitset_merge, bitset_set_all, bitset_mask):
79205         Likewise.
79206         * lib/regexec.c (check_dst_limits_calc_pos_1,
79207         check_subexp_matching_top):
79208         (build_trtable, group_nodes_into_DFAstates):
79209         Likewise.
79210         * lib/regcomp.c (re_compile_fastmap_iter, utf8_sb_map, optimize_utf8):
79211         Don't assume that SBC_MAX is a multiple of BITSET_WORD_BITS.
79212         * lib/regex_internal.h (bitset_set_all, bitset_not): Likewise.
79213         * lib/regexec.c (group_nodes_into_DFAstates): Likewise.
79214         * lib/regcomp.c (utf8_sb_map): Don't assume UINT_MAX == 0xffffffff.
79215         * lib/regcomp.c (optimize_subexps, lower_subexp):
79216         Work even if bitset_word has holes in its bitwise representation.
79217         * lib/regex_internal.h (BITSET_WORD_BITS): Likewise.
79218         * lib/regexec.c (check_dst_limits_calc_pos_1,
79219         check_subexp_matching_top):
79220         Likewise.
79221         * lib/regex_internal.c (re_string_reconstruct):
79222         Don't assume UCHAR_MAX == 255.
79223         * lib/regex_internal.h (bitset_set_all): Likewise.
79224         * lib/regex_internal.h (BITSET_WORD_BITS): Renamed from UINT_BITS.
79225         All uses changed.
79226         (BITSET_WORDS): Renamed from BITSET_UINTS.  All uses changed.
79227         (bitset_word): New type, replacing 'unsigned int' for bitset uses.
79228         All uses changed.
79229         (BITSET_WORD_MAX): New macro.
79230         (bitset_set, bitset_clear, bitset_contain, bitset_empty):
79231         (bitset_set_all, bitset_copy):  Now inline functions, not macros.
79232         (bitset_empty, bitset_copy):
79233         Prefer sizeof (bitset) to multiplying it out ourselves.
79234         (bitset_not_merge): Remove; unused.
79235         (bitset_contain): Return bool, not unsigned int with one bit on.
79236         All callers changed.
79237         * lib/regexec.c (build_trtable): Don't assume bitset has no stricter
79238         alignment than re_node_set; do this by defining a new internal
79239         type struct dests_alloc and using it to allocate memory.
79240
79241 2005-09-05  Bruno Haible  <bruno@clisp.org>
79242
79243         * gnulib-tool (func_import): Fix comparison in handling of symbolic
79244         links.
79245
79246 2005-09-04  Martin Lambers  <marlam@marlam.de>  (tiny change)
79247
79248         * modules/size_max (Makefile.am): Add size_max.h
79249
79250 2005-09-04  Derek Price  <derek@ximbiot.com>
79251
79252         * gnulib-tool (func_import): Fix reversed $symbolic logic.
79253
79254 2005-09-03  Simon Josefsson  <jas@extundo.com>
79255
79256         * gnulib-tool: Fix typo.
79257
79258 2005-09-03  Simon Josefsson  <jas@extundo.com>
79259
79260         * config/srclist.txt: Add glibc bug 1293.
79261
79262 2005-09-03  Derek Price  <derek@ximbiot.com>
79263
79264         * m4/getlogin_r (gl_GETLOGIN_R): Fix cut & paste error.
79265         From Larry Jones <lawrence.jones@ugs.com>.
79266
79267 2005-09-02  Simon Josefsson  <jas@extundo.com>
79268
79269         * modules/socklen: New file.
79270
79271 2005-09-02  Simon Josefsson  <jas@extundo.com>
79272
79273         * modules/havelib: New module.
79274
79275         * modules/gettext, modules/iconv, modules/lock, modules/readline:
79276         Use havelib.
79277
79278 2005-09-02  Paul Eggert  <eggert@cs.ucla.edu>
79279
79280         Check for arithmetic overflow when calculating sizes, to prevent
79281         some buffer-overflow issues.  These patches are conservative, in the
79282         sense that when I couldn't determine whether an overflow was possible,
79283         I inserted a run-time check.
79284         * lib/regex_internal.h (re_xmalloc, re_xrealloc, re_x2realloc): New
79285         macros.
79286         (SIZE_MAX) [!defined SIZE_MAX]: New macro.
79287         (re_alloc_oversized, re_x2alloc_oversized, re_xnmalloc):
79288         (re_xnrealloc, re_x2nrealloc): New inline functions.
79289         * lib/regcomp.c (init_dfa, analyze, build_range_exp,
79290         parse_bracket_exp):
79291         (build_equiv_class, build_charclass): Check for arithmetic overflow
79292         in size expression calculations.
79293         * lib/regex_internal.c (re_string_realloc_buffers):
79294         (build_wcs_upper_buffer, re_node_set_add_intersect):
79295         (re_node_set_init_union, re_node_set_insert, re_node_set_insert_last):
79296         (re_dfa_add_node, register_state): Likewise.
79297         * lib/regexec.c (re_search_stub, re_copy_regs, re_search_internal):
79298         (prune_impossible_nodes, push_fail_stack, set_regs, check_arrival):
79299         (build_trtable, extend_buffers, match_ctx_init, match_ctx_add_entry):
79300         (match_ctx_add_subtop, match_ctx_add_sublast): Likewise.
79301
79302 2005-09-02  Paul Eggert  <eggert@cs.ucla.edu>
79303
79304         * modules/inttostr (Files): Add m4/inttypes_h.m4, m4/stdint_h.m4,
79305         m4/ulonglong.m4.  Problem reported by Martin Lambers.
79306
79307 2005-09-02  Bruno Haible  <bruno@clisp.org>
79308
79309         Support for lib vs. lib64 distinction on biarch platforms.
79310         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): New macro.
79311         (AC_LIB_PREFIX): Require it. Use $acl_libdirstem instead of 'lib'.
79312         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Likewise.
79313
79314 2005-09-02  Bruno Haible  <bruno@clisp.org>
79315
79316         * gnulib-tool (import): In the other first-use case, provide defaults
79317         as well.
79318
79319 2005-09-02  Bruno Haible  <bruno@clisp.org>
79320
79321         * config/srclist.txt: lib-link.m4 and lib-prefix.m4 currently have
79322         patches not yet found in the latest gettext release.
79323
79324 2005-09-01  Paul Eggert  <eggert@cs.ucla.edu>
79325
79326         * lib/glob.c (GET_LOGIN_NAME_MAX): Renamed from LOGIN_NAME_MAX,
79327         to avoid a collision with bits/local_lim.h in glibc.
79328         All uses changed.  Problem reported by Dmitry V. Levin in
79329         <http://sources.redhat.com/bugzilla/show_bug.cgi?id=1060>.
79330
79331         * lib/regex_internal.c (build_wcs_upper_buffer): Fix portability
79332         bugs in int versus size_t comparisons.
79333         (re_string_context_at): Fix bug where the code assumed that
79334         Idx is signed.
79335
79336         Use bool where appropriate.
79337         * lib/regcomp.c (re_set_fastmap): ICASE arg is bool, not int.
79338         All callers changed.
79339         (calc_eclosure_iter): Likewise, for ROOT arg.
79340         (parse_bracket_element): Likewise, for ACCEPT_HYPHEN arg.
79341         (build_charclass_op): Likewise, for NON_MATCH arg.
79342         * lib/regex_internal.c (re_string_allocate, re_string_construct):
79343         (re_string_construct_common): Likewise, for ICASE arg.
79344         * lib/regexec.c (re_search_2_stub, re_search_stub):
79345         Likewise, for RET_LEN arg.
79346         (check_matching): Likewise, for FL_LONGEST_MATCH arg.
79347         (set_regs): Likewise, for FL_BACKTRACK arg.
79348         * lib/regcomp.c (re_compile_fastmap_iter, optimize_utf8):
79349         (duplicate_node_closure, calc_inveclosure, calc_eclosure):
79350         (calc_eclosure_iter, parse_bracket_exp):
79351         Use bool for internal variables that are booleans.
79352         * lib/regexec.c (re_search_internal, check_matching,
79353         proceed_next_node):
79354         (set_regs, build_sifted_states, sift_states_bkref):
79355         (check_arrival_add_next_nodes, check_arrival_expand_ecl_sub):
79356         (expand_bkref_cache, build_trtable, group_nodes_into_DFAstates):
79357         (find_collation_sequence_value):
79358         Likewise.
79359         * lib/regex_internal.c (re_node_set_insert, re_node_set_insert_last):
79360         (re_node_set_compare):
79361         Return bool, not int. All callers changed.
79362         * lib/regexec.c (check_halt_node_context, check_dst_limits):
79363         (build_trtable, check_node_accept): Likewise.
79364         * lib/regex_internal.h: Include stdbool.h.
79365
79366         Fix bugs uncovered when converting to bool.
79367         * lib/regcomp.c (calc_eclosure_iter): Check for storage allocation
79368         failure instead of charging ahead blindly.
79369         * lib/regex_internal.c (register_state): Likewise.
79370         * lib/regexec.c (re_search_2_stub): Use simpler method than boolean
79371         for freeing internal storage.
79372         (group_nodes_into_DFA_states): Use unsigned int, not int, for
79373         bitset pieces used as boolean, to avoid undefined behavior
79374         on hosts that do int overflow checking.
79375
79376 2005-09-01  Paul Eggert  <eggert@cs.ucla.edu>
79377
79378         * config/srclist.txt: Add glibc bugs 1285-1287.
79379
79380 2005-09-01  Jim Meyering  <jim@meyering.net>
79381
79382         * m4/lchown.m4: Require gl_FUNC_CHOWN, for the definition of
79383         CHOWN_MODIFIES_SYMLINK, which is used by lchown.c.
79384         Require gl_STAT_MACROS, too.
79385
79386 2005-09-01  Bruno Haible  <bruno@clisp.org>
79387
79388         * gnulib-tool (import): In the first-use case, provide defaults.
79389
79390 2005-09-01  Bruno Haible  <bruno@clisp.org>
79391
79392         * gnulib-tool (func_import): Remove the .tmp files.
79393
79394 2005-09-01  Bruno Haible  <bruno@clisp.org>
79395
79396         * gnulib-tool (func_import): Fix handling of symbolic links.
79397
79398 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
79399
79400         On 64-bit hosts (where size_t is 64 bits and int is 32 bits), the
79401         old glibc regex code mishandles strings longer than 2**31 bytes.
79402         This patch fixes this when the regex code is used in gnulib
79403         (i.e., outside glibc).
79404
79405         This patch should not affect the use of the regex code inside
79406         glibc.  No doubt this problem also needs to be handled for glibc
79407         as well, but the result will be an incompatible change to the
79408         glibc ABI, and the old ABI will have to be supported too.  That
79409         can be the the subject for another patch.
79410
79411         * lib/regex.h (_REGEX_LARGE_OFFSETS): New feature-test macro,
79412         governing whether the rest of this patch is active.  By default,
79413         the macro is disabled and the patch has no effect.
79414         (regoff_t) [defined _REGEX_LARGE_OFFSETS]: Define to off_t, not int.
79415         (__re_idx_t, __re_size_t, __re_long_size_t): New types.
79416         (struct re_pattern_buffer, re_search, re_search_2, re_match):
79417         (re_match_2, re_set_registers): Use the new types.
79418         * lib/regex_internal.h (Idx, re_hashval_t): New types.
79419         (REG_MISSING, REG_ERROR, REG_VALID_INDEX, REG_VALID_NONZERO_INDEX):
79420         New macros.
79421         (re_node_set, re_charset_t, re_token_t, re_string_realloc_buffers):
79422         (re_string_context_at, bin_tree_t, re_dfastate_t):
79423         (struct re_state_table_entry, state_array_t, re_sub_match_last_t):
79424         (re_sub_match_top_t, re_match_context_t, re_sift_context_t):
79425         (struct re_fail_stack_ent_t, struct re_fail_stack_t, struct re_dfa_t):
79426         (re_string_char_size_at, re_string_wchar_at):
79427         (re_string_elem_size_at):
79428         Use the new types and macros to port to 64-bit hosts.
79429         Use unsigned types for internal values, so that the code
79430         mostly works even for arrays larger than SSIZE_MAX.
79431         * lib/regcomp.c (re_compile_internal, init_dfa, duplicate_node):
79432         (search_duplicated_node, calc_eclosure_iter, fetch_number):
79433         (parse_reg_exp, parse_branch, parse_expression, parse_sub_exp):
79434         (build_equiv_class, build_charclass, re_compile_fastmap_iter):
79435         (free_dfa_content, create_initial_state, optimize_utf8, analyze):
79436         (optimize_subexps, calc_first, link_nfa_nodes, duplicate_node_closure):
79437         (calc_inveclosure, parse_dup_op, build_range_exp):
79438         (build_collating_symbol, parse_bracket_exp, build_charclass_op):
79439         (fetch_number, create_token_tree, mark_opt_subexp):
79440         Likewise.
79441         * lib/regex_internal.c (re_string_construct_common,
79442         create_ci_newstate):
79443         (create_cd_newstate, re_string_allocate, re_string_construct):
79444         (re_string_realloc_buffers, build_wcs_upper_buffer):
79445         (re_string_skip_chars, build_upper_buffer, re_string_translate_buffer):
79446         (re_string_reconstruct, re_string_peek_byte_case):
79447         (re_string_fetch_byte_case, re_string_context_at):
79448         (re_node_set_alloc, re_node_set_init_1, re_node_set_init_2):
79449         (re_node_set_init_copy, re_node_set_add_intersect):
79450         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
79451         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
79452         (re_node_set_remove_at, re_dfa_add_node, calc_state_hash):
79453         (re_acquire_state, re_acquire_state_context, register_state):
79454         Likewise.
79455         * lib/regex.c (match_ctx_init, match_ctx_add_entry,
79456         search_cur_bkref_entry):
79457         (match_ctx_add_subtop, match_ctx_add_sublast, sift_ctx_init):
79458         (re_search_internal, re_search_2_stub, re_search_stub)
79459         (re_copy_regs, check_matching, check_halt_state_context, update_regs):
79460         (push_fail_stack, sift_states_iter_mb, build_sifted_states):
79461         (update_cur_sifted_state, check_dst_limits):
79462         (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos):
79463         (check_subexp_limits, sift_states_bkref, merge_state_array):
79464         (check_subexp_matching_top, get_subexp, get_subexp_sub):
79465         (find_subexp_node, check_arrival, check_arrival_add_next_nodes):
79466         (check_arrival_expand_ecl, check_arrival_expand_ecl_sub):
79467         (expand_bkref_cache, check_node_accept_bytes):
79468         (group_nodes_into_DFAstates, check_node_accept, regexec, re_match):
79469         (re_search, re_match_2, re_search_2, prune_impossible_nodes):
79470         (acquire_init_state_context, check_halt_node_context):
79471         (proceed_next_node, pop_fail_stack, set_regs, free_fail_stack_return):
79472         (sift_states_backward, clean_state_log_if_needed):
79473         (sub_epsilon_src_nodes, add_epsilone_src_nodes, merge_state_with_log):
79474         (find_recover_state, transit_state_sb, transit_state_mb):
79475         (transit_state_bkref, build_trtable, match_ctx_clean):
79476         Likewise.
79477         * lib/regcomp.c (parse_dup_op): Add an extra test if Idx is unsigned,
79478         to work around an assumption that REG_MISSING is negative.
79479
79480         * lib/regcomp.c (re_comp) [defined _REGEX_RE_COMP || defined _LIBC]:
79481         (seek_collating_symbol_entry) [defined _LIBC]:
79482         (lookup_collation_sequence_value) [defined _LIBC]:
79483         (build_range_exp, build_collating_symbol) [defined _LIBC]:
79484         Use prototypes rather than old-style function definitions.
79485         * lib/regexec.c (re_exec) [defined _REGEX_RE_COMP || defined _LIBC]:
79486         (transit_state_sb) [0]:
79487         (find_collation_sequence_value) [defined _LIBC]: Likewise.
79488
79489         * lib/regexec.c (re_search_internal): Simplify update of rm_so and
79490         rm_eo.
79491
79492         * lib/regcomp.c (re_compile_fastmap_iter, init_dfa, init_word_char):
79493         (optimize_subexps, lower_subexp):
79494         Don't assume 1<<31 has defined behavior on hosts with 32-bit int,
79495         since the signed shift might overflow.  Use 1u<<31 instead.
79496         * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain):
79497         Likewise.
79498         * lib/regexec.c (check_dst_limits_calc_pos_1,
79499         check_subexp_matching_top): Likewise.
79500
79501         * lib/regcomp.c (optimize_subexps, lower_subexp):
79502         Use CHAR_BIT rather than 8, for clarity.
79503         * lib/regexec.c (check_dst_limits_calc_pos_1):
79504         (check_subexp_matching_top): Likewise.
79505         * lib/regcomp.c (init_dfa): Make table_size unsigned, so that we don't
79506         have to worry about portability issues when shifting it left.
79507         Remove no-longer-needed test for table_size > 0.
79508         * lib/regcomp.c (parse_sub_exp): Do not shift more bits than there are
79509         in a word, as the resulting behavior is undefined.
79510         * lib/regexec.c (check_dst_limits_calc_pos_1): Likewise;
79511         in one case, a <= should have been an <, and in another case the
79512         whole test was missing.
79513         * lib/regex_internal.h (BYTE_BITS): Remove.  All uses changed to
79514         the standard name CHAR_BIT.
79515         * lib/regexec.c (match_ctx_add_entry): Don't assume that ~0 == -1;
79516         this is not true on one's complement and signed-magnitude hosts.
79517
79518         * lib/regex_internal.h (re_sub_match_top_t): Remove unused member
79519         next_last_offset.
79520         (struct re_dfa_t): Remove unused member states_alloc.
79521         * lib/regcomp.c (init_dfa): Don't initialize unused members.
79522
79523 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
79524
79525         * m4/regex.m4 (gl_REGEX): Require AC_SYS_LARGEFILE, Define
79526         _REGEX_LARGE_OFFSETS).  Test for regoff_t/off_t bug in 64-bit
79527         and large-file glibc and in 32-bit large-file Solaris.
79528
79529 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
79530
79531         * lib/regex_internal.c (re_string_reconstruct): Don't assume buffer
79532         lengths fit in regoff_t; this isn't true if regoff_t is the same
79533         width as size_t.
79534         * lib/regex.c (re_search_internal): 5th arg is LAST_START
79535         (= START + RANGE) instead of RANGE.  This avoids overflow
79536         problems when regoff_t is the same width as size_t.
79537         All callers changed.
79538         (re_search_2_stub): Check for overflow when adding the
79539         sizes of the two strings.
79540         (re_search_stub): Check for overflow when adding START
79541         to RANGE; if it occurs, substitute the extreme value.
79542
79543 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
79544
79545         * config/srclist.txt: Add glibc bugs 1273, 1278-1282, 1284.
79546
79547 2005-08-31  Jim Meyering  <jim@meyering.net>
79548
79549         * lib/regcomp.c (search_duplicated_node): Make first pointer arg
79550         a pointer-to-const.
79551         * lib/regex_internal.c (create_ci_newstate, create_cd_newstate):
79552         (register_state): Likewise.
79553         * lib/regexec.c (search_cur_bkref_entry, check_dst_limits):
79554         (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos):
79555         (group_nodes_into_DFAstates): Likewise.
79556
79557 2005-08-31  Jim Meyering  <jim@meyering.net>
79558
79559         * check-module: Add a FIXME comment.
79560
79561 2005-08-31  Eric Blake  <ebb9@byu.net>
79562
79563         * modules/unistd-safer (Files): Add unistd--.h.
79564         * modules/stdio-safer (Files): Add stdio--.h.
79565
79566 2005-08-31  Derek Price  <derek@ximbiot.com>
79567
79568         * lib/getdelim.c (getdelim): Return EOF on EOF.
79569         Reported by Larry Jones <lawrence.jones@ugs.com>.
79570
79571 2005-08-31  Bruno Haible  <bruno@clisp.org>
79572
79573         Avoid unnecessary diffs in the generated lib/Makefile.am.
79574         * gnulib-tool (func_emit_lib_Makefile_am): Don't write the cmd into
79575         the generated files.
79576         (func_import): Don't set cmd.
79577
79578 2005-08-31  Bruno Haible  <bruno@clisp.org>
79579
79580         * lib/strstr.c: Include <stddef.h>, for NULL.
79581         * lib/strcasestr.c: Likewise.
79582         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
79583
79584 2005-08-31  Bruno Haible  <bruno@clisp.org>
79585
79586         * gnulib-tool: New option --macro-prefix.
79587         (func_import): Use macro_prefix.
79588         (import): Handle option --macro-prefix.
79589
79590 2005-08-31  Bruno Haible  <bruno@clisp.org>
79591
79592         * gnulib-tool (import): Rename most ac_* variables to cached_*.
79593         Also use new variables cached_lgpl, cached_libtool.
79594
79595 2005-08-31  Bruno Haible  <bruno@clisp.org>
79596
79597         * gnulib-tool (func_import): Require AC_GNU_SOURCE etc. instead of
79598         always instantiating them.
79599
79600 2005-08-31  Bruno Haible  <bruno@clisp.org>
79601
79602         * gnulib-tool (func_import): Read the previous cached settings
79603         from gnulib-cache.m4 and gnulib-comp.m4. Remove files that were
79604         earlier added by gnulib but are now dropped. Warn when a gnulib file
79605         overwrites a non-gnulib file.
79606
79607 2005-08-31  Bruno Haible  <bruno@clisp.org>
79608
79609         * gnulib-tool (func_import): Generate two files gnulib-cache.m4 and
79610         gnulib-comp.m4 instead of a single gnulib.m4, to make it easy for
79611         projects that don't keep autogenerated files in CVS. Put into
79612         actioncmd only the specified modules, not the transitive closure.
79613
79614 2005-08-31  Bruno Haible  <bruno@clisp.org>
79615
79616         * gnulib-tool (func_import): Fix defaulting of $libname and $libtool.
79617         Create directories that shall be filled.
79618         (import): Don't look for gl_* macros in configure.ac. Recurse across
79619         all directories containing a gnulib-cache.m4 files, if meaningful.
79620
79621 2005-08-31  Bruno Haible  <bruno@clisp.org>
79622
79623         * gnulib-tool (func_import): Emit also a stub for gl_LIBTOOL.
79624         (import): Set seen_libtool when we see gl_LIBTOOL.
79625
79626 2005-08-31  Bruno Haible  <bruno@clisp.org>
79627
79628         * gnulib-tool (func_import): Also copy m4/gnulib-tool.m4. Omit
79629         declaration macro definitions from generated gnulib.m4.
79630
79631 2005-08-30  Oskar Liljeblad  <oskar@osk.mine.nu>
79632
79633         * lib/iconvme.h: Add prototype for iconv_alloc.
79634
79635 2005-08-29  Simon Josefsson  <jas@extundo.com>
79636
79637         * lib/iconvme.c: Fix errno.
79638
79639 2005-08-29  Bruno Haible  <bruno@clisp.org>
79640
79641         * gnulib-tool: Enclose all occurrences of $destdir in "...", so
79642         that it works when the directory contains spaces.
79643
79644 2005-08-29  Bruno Haible  <bruno@clisp.org>
79645
79646         * gnulib-tool (import): Avoid unnecessary spaces in $avoidlist.
79647
79648 2005-08-29  Bruno Haible  <bruno@clisp.org>
79649
79650         * gnulib-tool (func_import): Emit more comments into gnulib.m4.
79651         Emit more advice.
79652
79653 2005-08-29  Bruno Haible  <bruno@clisp.org>
79654         and Stepan Kasal  <kasal@ucw.cz>
79655
79656         * check-module: If more parameters are given, check each of them
79657         separately; add more exceptions, as noted by Jim Meyering.
79658         (check_module): New procedure.
79659         (%exempt_header): Now contains all exceptions.
79660
79661 2005-08-29  Ben Pfaff  <blp@cs.stanford.edu>
79662
79663         * modules/byteswap (Makefile.am): Fix rule to not assume GNU make.
79664
79665 2005-08-29  Oskar Liljeblad  <oskar@osk.mine.nu>
79666
79667         * lib/iconvme.c: Split iconv_string into iconv_alloc.
79668
79669 2005-08-28  Bruno Haible  <bruno@clisp.org>
79670
79671         * m4/gnulib-tool.m4: New file.
79672
79673 2005-08-27  Jim Meyering  <jim@meyering.net>
79674
79675         * modules/unistd-safer (Files): Add pipe-safer.c.
79676         * modules/fcntl-safer (Files): Add creat-safer.c.
79677
79678 2005-08-27  Jim Meyering  <jim@meyering.net>
79679
79680         * m4/stdlib-safer.m4: New file.  From coreutils.
79681         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Add stdio--.h.
79682         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Add creat-safer.c to the
79683         AC_LIBSOURCES list and arrange to compile it via AC_LIBOBJ.
79684         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Likewise, add pipe-safer.c.
79685         Add pipe-safer.c and unistd--.h to the AC_LIBSOURCES list.
79686
79687 2005-08-27  Jim Meyering  <jim@meyering.net>
79688
79689         * lib/fopen-safer.c: Merge minor changes from coreutils.
79690         * lib/dup-safer.c: Likewise.
79691         * lib/fd-safer.c: Likewise.
79692
79693         Merge from coreutils.
79694         * lib/stdio--.h: New file.
79695         * lib/stdlib--.h: New file.
79696         * lib/mkstemp-safer.c: New file.
79697
79698         GNU tar needs these.
79699         * lib/pipe-safer.c: New file.
79700         * lib/creat-safer.c: New file.
79701         * lib/fcntl--.h (creat): Define to creat_safer.
79702         * lib/fcntl-safer.h: Include <sys/types.h> and declare creat_safer.
79703         * lib/unistd--.h (pipe): Define to pipe_safer.
79704         * lib/unistd-safer.h: Declare pipe_safer.
79705
79706 2005-08-26  Simon Josefsson  <jas@extundo.com>
79707
79708         * lib/getpass.c: Use _WIN32 instead of WIN32, suggested by Bruno
79709         Haible <bruno@clisp.org>.
79710
79711 2005-08-26  Paul Eggert  <eggert@cs.ucla.edu>
79712
79713         * lib/regex_internal.h: Remove all references to
79714         RE_NO_INTERNAL_PROTOTYPES; no longer neeeded now that we assume C89
79715         or better.
79716         (bitset_not, bitset_merge, bitset_not_merge):
79717         (bitset_mask, re_string_allocate, re_string_construct):
79718         (re_string_reconstruct, re_string_destruct, re_string_elem_size_at):
79719         (re_string_char_size_at, re_string_wchar_at, re_string_peek_byte_case):
79720         (re_string_fetch_byte_case, re_node_set_alloc, re_node_set_init_1):
79721         (re_node_set_init_2, re_node_set_init_copy, re_node_set_add_intersect):
79722         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
79723         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
79724         (re_node_set_remove_at, re_dfa_add_node, re_acquire_state):
79725         (re_acquire_state_context):
79726         Remove unnecessary forward decls.
79727         (re_string_char_size_at, re_string_wchar_at, re_string_elem_size_at):
79728         Put __attribute at function definition,
79729         now that the function decl has been removed.
79730         * lib/regex_internal.c (re_string_peek_byte_case):
79731         (re_string_fetch_byte_case, re_node_set_compare, re_node_set_contains):
79732         Likewise.
79733
79734 2005-08-25  Stepan Kasal  <kasal@ucw.cz>
79735
79736         * m4/regex.m4: Add AC_PREREQ(2.50).
79737         (gl_REGEX): If --with-included-regex was given, skip the autodetection.
79738
79739 2005-08-25  Simon Josefsson  <jas@extundo.com>
79740
79741         * m4/getpass.m4: Check for termios.h, tcgetattr, tcsetattr, and
79742         __fsetlocking.
79743
79744 2005-08-25  Simon Josefsson  <jas@extundo.com>
79745
79746         * lib/getpass.c: Add WIN32 implementation.  Conditionalize use of
79747         termios.h, tcgetattr, tcsetattr and __fsetlocking.  Remove some
79748         GLIBC specific code.
79749
79750 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
79751
79752         Make regex safe for g++.  This fixes one real bug (an "err"
79753         that should have been "*err").  g++ problem reported by
79754         Sam Steingold.
79755         * lib/regex_internal.h (re_calloc): New macro, consistent with
79756         re_malloc etc.  All callers of calloc changed to use re_calloc.
79757         * lib/regex_internal.c (build_wcs_upper_buffer): Return reg_errcode_t,
79758         not int.  All callers changed.
79759         * lib/regcomp.c (re_compile_fastmap_iter): Don't use
79760         alloca (mb_cur_max); just use an array of size MB_LEN_MAX.
79761         * lib/regexec.c (push_fail_stack): Use re_realloc, not realloc.
79762         (find_recover_state): Change "err" to "*err"; this fixes what
79763         appears to be a real bug.
79764         (check_arrival_expand_ecl_sub): Be consistent about reg_errcode_t
79765         versus int.
79766
79767 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
79768
79769         * modules/regex (Depends-on): Add malloc, since the code
79770         assumes that !malloc(0) means failure.
79771
79772 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
79773
79774         * lib/regexec.c (set_regs): Don't alloca with an unbounded size.
79775
79776         alloca modernization/simplification for regex.
79777         * lib/regex.c: Remove portability cruft for alloca.  This no longer
79778         needs to be at the start of the file, and can be moved into
79779         regex_internal.h and simplified.
79780         * lib/regex_internal.h: Include <alloca.h>.
79781         (__libc_use_alloca) [!defined _LIBC]: New macro.
79782         * lib/regexec.c (build_trtable): Remove "#ifdef _LIBC", since the code
79783         now works outside glibc.
79784
79785 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
79786
79787         * config/srclist.txt: Add glibc bugs 1241, 1245.
79788
79789 2005-08-25  Jim Meyering  <jim@meyering.net>
79790
79791         * lib/open-safer.c: Include <config.h>.
79792         Otherwise, we'd lose LARGEFILE support in any file using
79793         e.g. "fcntl--.h"
79794
79795 2005-08-25  Bruno Haible  <bruno@clisp.org>
79796
79797         * m4/minmax.m4: Require autoconf 2.52.
79798         (gl_MINMAX_IN_HEADER): Add comments. Use m4_pushdef/m4_popdef instead
79799         of define/undefine. Use AS_TR_SH and AS_TR_CPP as more robust
79800         alternatives of translit over the alphabet.
79801         Based on a patch from Stepan Kasal <kasal@ucw.cz>.
79802
79803 2005-08-24  Simon Josefsson  <jas@extundo.com>
79804
79805         * tests/test-getpass.c: New file.
79806
79807 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
79808
79809         * m4/regex.m4 (gl_REGEX): Use POSIX-compliant spellings when testing
79810         for GNU regex features.
79811
79812 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
79813
79814         * lib/regcomp.c (regerror): 2nd arg is 'restrict', as per POSIX.
79815         * lib/regex.h (regerror): Likewise.
79816
79817         * lib/regex.c: Do not include <sys/types.h>, as POSIX no longer
79818         requires this.  (The code never needed it.)
79819
79820         * lib/regcomp.c, regex_internal.c, regex_internal.h, regexec.c:
79821         All uses of recently-renamed identifiers changed to use the new,
79822         POSIX-compliant names.  The code will build and run just fine
79823         without these changes, but it's better to eat our own dog food
79824         and use the standard-conforming names.
79825
79826         * lib/regex.h: Fix a multitude of POSIX name space violations.
79827         These changes have an effect only for programs that define
79828         _POSIX_C_SOURCE, _POSIX_SOURCE, or _XOPEN_SOURCE; they
79829         do not change anything for programs compiled in the normal way.
79830         Also, there is no effect on the ABI.
79831
79832         (_REGEX_SOURCE): New macro.
79833         Do not include <stddef.h> if _XOPEN_SOURCE and VMS are both
79834         defined and _GNU_SOURCE is not; this fixes a name space violation.
79835
79836         Rename the following macros to obey POSIX requirements.
79837         The old names are still visible as macros if _REGEX_SOURCE is defined.
79838         (REG_BACKSLASH_ESCAPE_IN_LISTS): renamed from
79839         RE_BACKSLASH_ESCAPE_IN_LISTS.
79840         (REG_BK_PLUS_QM): renamed from RE_BK_PLUS_QM.
79841         (REG_CHAR_CLASSES): renamed from RE_CHAR_CLASSES.
79842         (REG_CONTEXT_INDEP_ANCHORS): renamed from RE_CONTEXT_INDEP_ANCHORS.
79843         (REG_CONTEXT_INDEP_OPS): renamed from RE_CONTEXT_INDEP_OPS.
79844         (REG_CONTEXT_INVALID_OPS): renamed from RE_CONTEXT_INVALID_OPS.
79845         (REG_DOT_NEWLINE): renamed from RE_DOT_NEWLINE.
79846         (REG_DOT_NOT_NULL): renamed from RE_DOT_NOT_NULL.
79847         (REG_HAT_LISTS_NOT_NEWLINE): renamed from RE_HAT_LISTS_NOT_NEWLINE.
79848         (REG_INTERVALS): renamed from RE_INTERVALS.
79849         (REG_LIMITED_OPS): renamed from RE_LIMITED_OPS.
79850         (REG_NEWLINE_ALT): renamed from RE_NEWLINE_ALT.
79851         (REG_NO_BK_BRACES): renamed from RE_NO_BK_BRACES.
79852         (REG_NO_BK_PARENS): renamed from RE_NO_BK_PARENS.
79853         (REG_NO_BK_REFS): renamed from RE_NO_BK_REFS.
79854         (REG_NO_BK_VBAR): renamed from RE_NO_BK_VBAR.
79855         (REG_NO_EMPTY_RANGES): renamed from RE_NO_EMPTY_RANGES.
79856         (REG_UNMATCHED_RIGHT_PAREN_ORD): renamed from
79857         RE_UNMATCHED_RIGHT_PAREN_ORD.
79858         (REG_NO_POSIX_BACKTRACKING): renamed from RE_NO_POSIX_BACKTRACKING.
79859         (REG_NO_GNU_OPS): renamed from RE_NO_GNU_OPS.
79860         (REG_DEBUG): renamed from RE_DEBUG.
79861         (REG_INVALID_INTERVAL_ORD): renamed from RE_INVALID_INTERVAL_ORD.
79862         (REG_IGNORE_CASE): renamed from RE_ICASE.  This renaming is a bit
79863         unusual, since we can't clash with the POSIX REG_ICASE.
79864         (REG_CARET_ANCHORS_HERE): renamed from RE_CARET_ANCHORS_HERE.
79865         (REG_CONTEXT_INVALID_DUP): renamed from RE_CONTEXT_INVALID_DUP.
79866         (REG_NO_SUB): renamed from RE_NO_SUB.
79867         (REG_SYNTAX_EMACS): renamed from RE_SYNTAX_EMACS.
79868         (REG_SYNTAX_AWK): renamed from RE_SYNTAX_AWK.
79869         (REG_SYNTAX_GNU_AWK): renamed from RE_SYNTAX_GNU_AWK.
79870         (REG_SYNTAX_POSIX_AWK): renamed from RE_SYNTAX_POSIX_AWK.
79871         (REG_SYNTAX_GREP): renamed from RE_SYNTAX_GREP.
79872         (REG_SYNTAX_EGREP): renamed from RE_SYNTAX_EGREP.
79873         (REG_SYNTAX_POSIX_EGREP): renamed from RE_SYNTAX_POSIX_EGREP.
79874         (REG_SYNTAX_ED): renamed from RE_SYNTAX_ED.
79875         (REG_SYNTAX_SED): renamed from RE_SYNTAX_SED.
79876         (_REG_SYNTAX_POSIX_COMMON): renamed from _RE_SYNTAX_POSIX_COMMON.
79877         (REG_SYNTAX_POSIX_BASIC): renamed from RE_SYNTAX_POSIX_BASIC.
79878         (REG_SYNTAX_POSIX_MINIMAL_BASIC): renamed from
79879         RE_SYNTAX_POSIX_MINIMAL_BASIC.
79880         (REG_SYNTAX_POSIX_EXTENDED): renamed from RE_SYNTAX_POSIX_EXTENDED.
79881         (REG_SYNTAX_POSIX_MINIMAL_EXTENDED): renamed from
79882         RE_SYNTAX_POSIX_MINIMAL_EXTENDED.
79883         (REG_DUP_MAX): renamed from RE_DUP_MAX.  No need to undef it.
79884         (REG_UNALLOCATED): Renamed from REGS_UNALLOCATED.
79885         (REG_REALLOCATE): Renamed from REGS_REALLOCATE.
79886         (REG_FIXED): Renamed from REGS_FIXED.
79887         (REG_NREGS): Renamed from RE_NREGS.
79888
79889         (REG_ICASE, REG_NEWLINE, REG_NOSUB): Do not depend on the values
79890         of other REG_* macros, since POSIX says the user is allowed to
79891         #undef these macros selectively.
79892
79893         (reg_errcode_t): Update comment stating what other tables need
79894         to be consistent.
79895
79896         Rename the following enum values to obey POSIX requirements.
79897         The old names are still visible as macros.
79898         (_REG_ENOSYS): Renamed from REG_ENOSYS.  Define even if _XOPEN_SOURCE
79899         is not defined, since GNU is supposed to be a superset of POSIX as
79900         much as possible, and since we want reg_errcode_t to be a signed
79901         type for implementation consistency.
79902         (_REG_NOERROR): Renamed from REG_NOERROR.
79903         (_REG_NOMATCH): Renamed from REG_NOMATCH.
79904         (_REG_BADPAT): Renamed from REG_BADPAT.
79905         (_REG_ECOLLATE): Renamed from REG_ECOLLATE.
79906         (_REG_ECTYPE): Renamed from REG_ECTYPE.
79907         (_REG_EESCAPE): Renamed from REG_EESCAPE.
79908         (_REG_ESUBREG): Renamed from REG_ESUBREG.
79909         (_REG_EBRACK): Renamed from REG_EBRACK.
79910         (_REG_EPAREN): Renamed from REG_EPAREN.
79911         (_REG_EBRACE): Renamed from REG_EBRACE.
79912         (_REG_BADBR): Renamed from REG_BADBR.
79913         (_REG_ERANGE): Renamed from REG_ERANGE.
79914         (_REG_ESPACE): Renamed from REG_ESPACE.
79915         (_REG_BADRPT): Renamed from REG_BADRPT.
79916         (_REG_EEND): Renamed from REG_EEND.
79917         (_REG_ESIZE): Renamed from REG_ESIZE.
79918         (_REG_ERPAREN): Renamed from REG_ERPAREN.
79919         (REG_ENOSYS, REG_NOERROR, REG_NOMATCH, REG_BADPAT, REG_ECOLLATE):
79920         (REG_ECTYPE, REG_EESCAPE, REG_ESUBREG, REG_EBRACK, REG_EPAREN):
79921         (REG_EBRACE, REG_BADBR, REG_ERANGE, REG_ESPACE, REG_BADRPT, REG_EEND):
79922         (REG_ESIZE, REG_ERPAREN): Now macros, not enum constants.
79923
79924         (_REG_RE_NAME, _REG_RM_NAME): New macros.
79925         (REG_TRANSLATE_TYPE): Renamed from RE_TRANSLATE_TYPE.  All uses
79926         changed.  But support the old name if the new one is not defined
79927         and if _REGEX_SOURCE.
79928
79929         Change the following member names in struct re_pattern_buffer.
79930         The old names are still supported if !_REGEX_SOURCE.
79931         The new names are always supported, regardless of _REGEX_SOURCE.
79932         (re_buffer): Renamed from buffer.
79933         (re_allocated): Renamed from allocated.
79934         (re_used): Renamed from used.
79935         (re_syntax): Renamed from syntax.
79936         (re_fastmap): Renamed from fastmap.
79937         (re_translate): Renamed from translate.
79938         (re_can_be_null): Renamed from can_be_null.
79939         (re_regs_allocated): Renamed from regs_allocated.
79940         (re_fastmap_accurate): Renamed from fastmap_accurate.
79941         (re_no_sub): Renamed from no_sub.
79942         (re_not_bol): Renamed from not_bol.
79943         (re_not_eol): Renamed from not_eol.
79944         (re_newline_anchor): Renamed from newline_anchor.
79945
79946         Change the following member names in struct re_registers.
79947         The old names are still supported if !_REGEX_SOURCE.
79948         The new names are always supported, regardless of _REGEX_SOURCE.
79949         (rm_num_regs): Renamed from num_regs.
79950         (rm_start): Renamed from start.
79951         (rm_end): Renamed from end.
79952
79953         (re_set_syntax, re_compile_pattern, re_compile_fastmap):
79954         (re_search, re_search_2, re_match, re_match_2, re_set_registers):
79955         Prepend __ to parameter names.
79956
79957         Undo yesterday's changes.
79958
79959 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
79960
79961         * config/srclist.txt: Remove glibc bug 1233 and add 1236, which
79962         supersedes it. Add glibc bugs 1237, 1238, 1240.  Comment out
79963         lib/regex.c.
79964
79965 2005-08-24  Jim Meyering  <jim@meyering.net>
79966
79967         Sync from coreutils.
79968         * m4/fcntl-safer.m4: New file.
79969
79970         * m4/xgetcwd.m4: Use AC_LIBSOURCES and AC_LIBOBJ to indicate source
79971         and object files for this module.
79972
79973 2005-08-24  Jim Meyering  <jim@meyering.net>
79974
79975         Sync from coreutils.
79976         * lib/fcntl--.h, lib/fcntl-safer.h, lib/open-safer.c: New files.
79977
79978 2005-08-24  Jim Meyering  <jim@meyering.net>
79979
79980         * modules/xgetcwd (Makefile.am): Remove `lib_SOURCES += ...' line,
79981         now that xgetcwd.m4 requires xgetcwd.c and xgetcwd.h.
79982
79983 2005-08-24  Jim Meyering  <jim@meyering.net>
79984
79985         * modules/fcntl-safer: New module.
79986         * modules/fts (Depends-on): Add fcntl-safer.
79987         * MODULES.html.sh (File descriptor based Input/Output):
79988         Add fcntl-safer.
79989
79990 2005-08-24  Bruno Haible  <bruno@clisp.org>
79991
79992         Support for unit test modules.
79993         * modules/README: Mention tests modules.
79994         * modules/TEMPLATE-TESTS: New file.
79995         * gnulib-tool: New options --extract-tests-module, --with-tests and
79996         --tests-base (unused for the moment).
79997         (testsbase, inctests): New variables.
79998         (func_all_modules): Exclude TEMPLATE-TESTS and *-tests.
79999         (func_verify_module): Exclude TEMPLATE-TESTS.
80000         (func_verify_nontests_module, func_verify_tests_module): New functions.
80001         (func_get_dependencies): Add implicit dependency for tests modules.
80002         (func_get_tests_module): New function.
80003         (func_modules_transitive_closure): When --with-tests was specified,
80004         include the unit tests as well, unless explicitly avoided.
80005         (func_emit_lib_Makefile_am): Ignore the tests modules here.
80006         (func_emit_tests_Makefile_am): New function.
80007         (func_create_testdir): When --with-tests was specified, emit a
80008         tests/ directory.
80009         * MODULES.html.sh (Future developments): Update.
80010
80011 2005-08-24  Bruno Haible  <bruno@clisp.org>
80012
80013         * modules/tls-tests: New file.
80014         * tests/test-tls.c: New file, from GNU gettext.
80015
80016 2005-08-24  Bruno Haible  <bruno@clisp.org>
80017
80018         * modules/lock-tests: New file.
80019         * tests/test-lock.c: New file, from GNU gettext.
80020
80021 2005-08-24  Bruno Haible  <bruno@clisp.org>
80022
80023         * lib/lock.h: Add multiple inclusion guard.
80024         * lib/tls.h: Add multiple inclusion guard.
80025
80026 2005-08-24  Bruno Haible  <bruno@clisp.org>
80027
80028         * gnulib-tool: Add support for the --aux-dir option to
80029         --create-testdir, --create-megatestdir, --test, --megatest.
80030         (func_create_testdir, func_create_megatestdir): Optionally emit a
80031         AC_CONFIG_AUX_DIR directive.
80032         (create-testdir, create-megatestdir, test, megatest): Provide a
80033         default value for $auxdir.
80034
80035 2005-08-24  Bruno Haible  <bruno@clisp.org>
80036
80037         * gnulib-tool (import): Use compound statement instead of subshell
80038         where possible.
80039
80040 2005-08-24  Bruno Haible  <bruno@clisp.org>
80041
80042         * gnulib-tool (import): Change --aux-dir default to "build-aux".
80043
80044 2005-08-24  Bruno Haible  <bruno@clisp.org>
80045
80046         * gnulib-tool (func_version): Update.
80047
80048 2005-08-24  Bruno Haible  <bruno@clisp.org>
80049
80050         * gnulib-tool (func_import, func_create_testdir,
80051         func_create_megatestdir): Quote all autoconf macro arguments.
80052
80053 2005-08-24  Bruno Haible  <bruno@clisp.org>
80054
80055         * gnulib-tool (func_create_megatestdir): Call autoreconf without the
80056         option --force, because --force causes the aclocal.m4 of each
80057         subdirectory to be newer than the corresponding config.h.in.
80058
80059 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
80060
80061         * m4/regex.m4 (gl_INCLUDED_REGEX): Remove; no longer used.
80062         All contents moved to gl_REGEX.
80063         (gl_REGEX): Don't bother checking whether lib/regex.c exists;
80064         assume that it does.
80065
80066 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
80067
80068         * lib/regex.h (REG_NOSYS)
80069         [!defined _XOPEN_SOURCE && 200112L <= _POSIX_C_SOURCE]:
80070         Define, since POSIX requires it as of 2001.
80071         (_REG_ENOSYS)
80072         [! (defined _XOPEN_SOURCE || 200112L <= _POSIX_C_SOURCE)]:
80073         New private symbol, used to keep the enum signed in all cases.
80074         * lib/regex.h (RE_NO_EMPTY_RANGES): Fix doc bug reported by James
80075         Youngman in
80076         <http://lists.gnu.org/archive/html/bug-gnulib/2005-07/msg00132.html>.
80077
80078         * lib/regex_internal.c (re_string_skip_chars, register_state):
80079         (calc_state_hash):
80080         Remove forward decls; no longer needed now that we use prototypes.
80081         * lib/regexec.c (acquire_init_state_context, check_halt_node_context):
80082         (proceed_next_node, pop_fail_stack, sub_epsilon_src_nodes):
80083         (clean_state_log_if_needed): Likewise.
80084
80085 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
80086
80087         * config/srclist.txt: Add glibc bugs 1231-1233.
80088
80089 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
80090
80091         Fix problems reported by Sam Steingold in
80092         <http://lists.gnu.org/archive/html/bug-gnulib/2005-08/msg00007.html>.
80093         * lib/regexec.c (sift_states_bkref): Fix portability bug: the code
80094         assumed that reg_errcode_t is a signed type, which is not
80095         necessarily true if _XOPEN_SOURCE is not defined.
80096         * lib/regex_internal.c (calc_state_hash): Put 'inline' before type,
80097         since some compilers warn about it otherwise.
80098
80099 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
80100
80101         * lib/regcomp.c (create_initial_state): Remove duplicate decl.
80102         (init_word_char, create_initial_state, duplicate_node_closure):
80103         (fetch_token, peek_token_bracket, build_range_exp):
80104         (build_collating_symbol): Remove forward decls; no longer needed
80105         now that we use prototypes.
80106
80107         * lib/regcomp.c:
80108         (re_compile_pattern, re_set_syntax, re_compile_fastmap):
80109         (re_compile_fastmap_iter, regcomp, regerror, regfree):
80110         (re_compile_internal, init_dfa, init_word_char, free_workarea_compile):
80111         (create_initial_state, optimize_utf8, analyze, postorder, preorder):
80112         (optimize_subexps, lower_subexps, lower_subexp, calc_first, calc_next):
80113         (link_nfa_nodes, duplicate_node_closure, search_duplicated_node):
80114         (duplicate_node, calc_inveclosure, calc_eclosure, calc_eclosure_iter):
80115         (fetch_token, peek_token, peek_token_bracket, parse, parse_reg_exp):
80116         (parse_branch, parse_expression, parse_sub_exp, parse_dup_op):
80117         (build_range_exp, build_collating_symbol, parse_bracket_exp):
80118         (parse_bracket_element, parse_bracket_symbol, build_equiv_class):
80119         (build_charclass, build_charclass_op, fetch_number, create_tree):
80120         (create_token_tree, mark_opt_subexp, duplicate_tree):
80121         Use prototypes rather than old-style definitions.
80122
80123         * lib/regex_internal.c:
80124         (re_string_allocate, re_string_construct, re_string_realloc_buffers):
80125         (re_string_construct_common, build_wcs_buffer, build_wcs_upper_buffer):
80126         (re_string_skip_chars, build_upper_buffer, re_string_translate_buffer):
80127         (re_string_reconstruct, re_string_peek_byte_case):
80128         (re_string_fetch_byte_case, re_string_destruct, re_string_context_at):
80129         (re_node_set_alloc, re_node_set_init_1, re_node_set_init_2):
80130         (re_node_set_init_copy, re_node_set_add_intersect):
80131         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
80132         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
80133         (re_node_set_remove_at, re_dfa_add_node, calc_state_hash):
80134         (re_acquire_state, re_acquire_state_context, register_state):
80135         (create_ci_newstate, create_cd_newstate, free_state):
80136         Likewise.
80137         * lib/regexec.c (regexec, re_match, re_search, re_match_2,
80138         re_search_2):
80139         (re_search_2_stub, re_search_stub, re_copy_regs, re_set_registers):
80140         (re_search_internal, prune_impossible_nodes):
80141         (acquire_init_state_context, check_matching, static):
80142         (check_halt_node_context, check_halt_state_context, proceed_next_node):
80143         (push_fail_stack, pop_fail_stack, set_regs, free_fail_stack_return):
80144         (update_regs, sift_states_backward, build_sifted_states):
80145         (clean_state_log_if_needed, merge_state_array):
80146         (update_cur_sifted_state, add_epsilon_src_nodes):
80147         (sub_epsilon_src_nodes, check_dst_limits, check_dst_limits_calc_pos_1):
80148         (check_dst_limits_calc_pos, check_subexp_limits, sift_states_bkref):
80149         (sift_states_iter_mb, transit_state, merge_state_with_log, static):
80150         (find_recover_state, check_subexp_matching_top, transit_state_mb):
80151         (transit_state_bkref, get_subexp, get_subexp_sub, find_subexp_node):
80152         (check_arrival, check_arrival_add_next_nodes):
80153         (check_arrival_expand_ecl, check_arrival_expand_ecl_sub):
80154         (expand_bkref_cache, build_trtable, group_nodes_into_DFAstates):
80155         (check_node_accept_bytes, check_node_accept, extend_buffers):
80156         (match_ctx_init, match_ctx_clean, match_ctx_free, match_ctx_add_entry):
80157         (search_cur_bkref_entry, match_ctx_add_subtop, match_ctx_add_sublast):
80158         (sift_ctx_init):
80159         Likewise.
80160
80161         * lib/regex_internal.h:
80162         (re_string_allocate, re_string_construct, re_string_reconstruct):
80163         (re_string_realloc_buffers, build_wcs_buffer, build_wcs_upper_buffer):
80164         (build_upper_buffer, re_string_translate_buffer, re_string_destruct):
80165         (re_string_elem_size_at, re_string_char_size_at, re_string_wchar_at):
80166         (re_string_context_at, re_string_peek_byte_case):
80167         (re_string_fetch_byte_case): Declare even if RE_NO_INTERNAL_PROTOTYPES
80168         is defined, since we now use prototypes always.
80169
80170         * lib/regex.h (_RE_ARGS): Remove.  No longer needed, since we assume
80171         C89 or better.  All uses removed.
80172
80173 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
80174
80175         * config/srclist.txt: Add glibc bugs 1220-1227.
80176
80177 2005-08-20  Jim Meyering  <jim@meyering.net>
80178
80179         * lib/regexec.c (regexec, re_search_stub) [!_LIBC]: Omit declaration
80180         of unused local, dfa.
80181
80182 2005-08-20  Bruno Haible  <bruno@clisp.org>
80183
80184         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_GNU_SOURCE.
80185
80186 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
80187
80188         * lib/regex_internal.c (re_string_realloc_buffers, re_node_set_insert):
80189         (re_node_set_insert_last, re_dfa_add_node):
80190         Rename local variables to avoid GCC shadowing warnings.
80191
80192 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
80193
80194         * lib/regex_internal.c (re_acquire_state, re_acquire_state_context)
80195         [defined lint]: Suppress bogus uninitialized-variable warnings.
80196
80197         * lib/regcomp.c (duplicate_node): Return new index, not an error code,
80198         and let the caller return REG_ESPACE if out of space.  This
80199         removes an uninitialied-variable warning with GCC 4.0.1, and also
80200         avoids taking the address of a local variable.  All callers
80201         changed.
80202
80203 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
80204
80205         * config/srclist.txt: Comment out $LIBCSRC/posix/regex_internal.c,
80206         $LIBCSRC/posix/regexec.c.
80207         Add glibc bug 1217 for regcomp.c.
80208
80209 2005-08-19  Jim Meyering  <jim@meyering.net>
80210
80211         * lib/regexec.c (proceed_next_node): Redo local variables to
80212         avoid GCC shadowing warnings.
80213
80214 2005-08-18  Bruno Haible  <bruno@clisp.org>
80215
80216         * lib/strstr.c (strstr): Fix return value in multibyte case.
80217         * lib/strcasestr.c (strcasestr): Likewise.
80218
80219 2005-08-17  Paul Eggert  <eggert@cs.ucla.edu>
80220
80221         * lib/regex.h: Remove useless space-before-tab.  From coreutils.
80222
80223 2005-08-17  Jim Meyering  <jim@meyering.net>
80224
80225         Make the %s format (seconds since the epoch) work for a negative
80226         number and when used with a zero-padded field width, e.g. %015s.
80227
80228         * lib/strftime.c (my_strftime): Move the `do_number_sign_and_padding'
80229         label so that it precedes the code to set `digits'.  Otherwise,
80230         %0Ns wouldn't work.  Before this change, `date -d @-22 +%05s' would
80231         print `00-22'.  Now, it prints `-0022', as it should.
80232
80233 2005-08-17  Bruno Haible  <bruno@clisp.org>
80234
80235         * modules/strstr (Files): Add m4/mbrtowc.m4.
80236         (Depends-on): Add mbuiter.
80237
80238 2005-08-17  Bruno Haible  <bruno@clisp.org>
80239
80240         * modules/strcasestr: New file.
80241         * MODULES.html.sh (String handling, based on ANSI C 89): Add
80242         strcasestr.
80243
80244 2005-08-17  Bruno Haible  <bruno@clisp.org>
80245
80246         * modules/strcase (Depends-on): Add mbuiter. Remove strnlen1, mbchar.
80247
80248 2005-08-17  Bruno Haible  <bruno@clisp.org>
80249
80250         * modules/mbuiter: New file.
80251         * MODULES.html.sh (Extended multibyte and wide character utilities):
80252         Add mbuiter.
80253
80254 2005-08-17  Bruno Haible  <bruno@clisp.org>
80255
80256         * m4/strstr.m4 (gl_FUNC_STRSTR): Use the replacement function always.
80257         (gl_PREREQ_STRSTR): Use gl_FUNC_MBRTOWC.
80258
80259 2005-08-17  Bruno Haible  <bruno@clisp.org>
80260
80261         * m4/strcasestr.m4: New file.
80262
80263 2005-08-17  Bruno Haible  <bruno@clisp.org>
80264
80265         * lib/strstr.h: Ignore HAVE_STRSTR, always declare the gnulib function.
80266         * lib/strstr.c: Completely rewritten, with multibyte locale support.
80267
80268 2005-08-17  Bruno Haible  <bruno@clisp.org>
80269
80270         * lib/strcasestr.h: New file.
80271         * lib/strcasestr.c: New file.
80272
80273 2005-08-17  Bruno Haible  <bruno@clisp.org>
80274
80275         * lib/strcasecmp.c: Use mbuiter.h.
80276
80277 2005-08-17  Bruno Haible  <bruno@clisp.org>
80278
80279         * lib/mbuiter.h: New file.
80280
80281 2005-08-16  Paul Eggert  <eggert@cs.ucla.edu>
80282
80283         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Do not override the results
80284         of gl_GETOPT_SUBSTITUTE.  That way, if both gl_GETOPT_SUBSTITUTE
80285         and gl_GETOPT are both invoked via different paths (as happens
80286         with GNU tar CVS because it uses both argp and getopt), the former
80287         wins.
80288
80289 2005-08-16  Bruno Haible  <bruno@clisp.org>
80290
80291         * modules/tls: New file.
80292         * MODULES.html.sh (Multithreading): Add tls.
80293
80294 2005-08-16  Bruno Haible  <bruno@clisp.org>
80295
80296         * modules/strnlen1: New file.
80297         * MODULES.html.sh (String handling): Add strnlen1.
80298
80299 2005-08-16  Bruno Haible  <bruno@clisp.org>
80300
80301         * modules/strcase (Files): Add m4/mbrtowc.m4.
80302         (Depends-on): Add strnlen1, mbchar.
80303
80304 2005-08-16  Bruno Haible  <bruno@clisp.org>
80305
80306         * modules/mbiter: New file.
80307         * MODULES.html.sh (Extended multibyte and wide character utilities):
80308         Add mbiter.
80309
80310 2005-08-16  Bruno Haible  <bruno@clisp.org>
80311
80312         * modules/mbfile: New file.
80313         * MODULES.html.sh (Extended multibyte and wide character utilities):
80314         Add mbfile.
80315
80316 2005-08-16  Bruno Haible  <bruno@clisp.org>
80317
80318         * modules/mbchar: New file.
80319         * MODULES.html.sh (Extended multibyte and wide character utilities):
80320         New section.
80321
80322 2005-08-16  Bruno Haible  <bruno@clisp.org>
80323
80324         * m4/tls.m4: New file, from GNU gettext.
80325
80326 2005-08-16  Bruno Haible  <bruno@clisp.org>
80327
80328         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Use the replacement function
80329         always.
80330         (gl_PREREQ_STRCASECMP): Use gl_FUNC_MBRTOWC.
80331
80332 2005-08-16  Bruno Haible  <bruno@clisp.org>
80333
80334         * m4/mbiter.m4: New file.
80335
80336 2005-08-16  Bruno Haible  <bruno@clisp.org>
80337
80338         * m4/mbfile.m4: New file.
80339
80340 2005-08-16  Bruno Haible  <bruno@clisp.org>
80341
80342         * m4/mbchar.m4: New file.
80343
80344 2005-08-16  Bruno Haible  <bruno@clisp.org>
80345
80346         * lib/tls.h: New file, from GNU gettext.
80347         * lib/tls.c: New file, from GNU gettext.
80348
80349 2005-08-16  Bruno Haible  <bruno@clisp.org>
80350
80351         * lib/strnlen1.h: New file.
80352         * lib/strnlen1.c: New file.
80353
80354 2005-08-16  Bruno Haible  <bruno@clisp.org>
80355
80356         * lib/strcasecmp.c (struct mbiter_multi): Remove at_end field.
80357         (mbi_init): Update.
80358         (mbi_avail, mbi_advance): Let the iteration end before the terminating
80359         NUL byte, not after it.
80360
80361 2005-08-16  Bruno Haible  <bruno@clisp.org>
80362
80363         * lib/strcase.h (strcasecmp): Add note in comments.
80364         * lib/strncasecmp.c: Use code from strcasecmp.c.
80365         * lib/strcasecmp.c: Use mbchar module. Define private mbiter variant.
80366         (strcasecmp): Work correctly in multibyte locales.
80367
80368 2005-08-16  Bruno Haible  <bruno@clisp.org>
80369
80370         * lib/mbiter.h: New file.
80371
80372 2005-08-16  Bruno Haible  <bruno@clisp.org>
80373
80374         * lib/mbfile.h: New file.
80375
80376 2005-08-16  Bruno Haible  <bruno@clisp.org>
80377
80378         * lib/mbchar.h: New file.
80379         * lib/mbchar.c: New file.
80380
80381 2005-08-16  Bruno Haible  <bruno@clisp.org>
80382
80383         * lib/mbchar.h (mb_cmp, mb_casecmp): Order the invalid characters after
80384         the valid ones. Makes the comparison operations transitive:
80385         cmp (a, b) < 0 && cmp (b, c) < 0 ==> cmp (a, c) < 0.
80386         * lib/strcasecmp.c (strcasecmp): Use mb_casecmp.
80387
80388 2005-08-15  Simon Josefsson  <jas@extundo.com>
80389
80390         * modules/ssize_t (License): Change to 'unlimited'.
80391
80392         * gnulib-tool (sed_extract_prog): Recognize 'unlimited' license.
80393
80394 2005-08-15  Paul Eggert  <eggert@cs.ucla.edu>
80395
80396         * config/srclist.txt: Comment out $LIBCSRC/posix/regex.h.
80397         Add comments for each pending glibc patch.
80398
80399 2005-08-15  Bruno Haible  <bruno@clisp.org>
80400
80401         * lib/regex.h (__restrict_arr): Don't define to __restrict if
80402         __cplusplus is defined.
80403
80404 2005-08-14  Jim Meyering  <jim@meyering.net>
80405
80406         Sync from coreutils.
80407
80408         * lib/fts-cycle.c (setup_dir, enter_dir, leave_dir, free_dir):
80409         Use the hash-table-based cycle-detection code not just when
80410         FTS_TIGHT_CYCLE_CHECK if specified, but also with FTS_LOGICAL.
80411         Reported by James Youngman in
80412         <http://lists.gnu.org/archive/html/bug-gnulib/2005-08/msg00011.html>.
80413         * lib/fts_.h: Mention that with FTS_LOGICAL, we use
80414         FTS_TIGHT_CYCLE_CHECK.
80415         * lib/fts.c (fts_cross_check) [FTS_DEBUG]:
80416         s/active_dir_ht/fts_cycle.ht/. This lets us compile with -DFTS_DEBUG,
80417         once again.
80418         * lib/fts.c [! _LIBC]: Include "lstat.h" rather than rolling our own.
80419         * lib/fts.c (fd_safer): Remove decl.
80420         Include fcntl--.h rather than unistd-safer.h
80421         (fts_safe_changedir): Don't call fd_safer; no longer needed
80422         now that we include fcntl--.h.
80423
80424 2005-08-12  Simon Josefsson  <jas@extundo.com>
80425
80426         * modules/getndelim2: Use ssize_t module.
80427         * modules/getnline: Likewise.
80428         * modules/safe-read: Likewise.
80429         * modules/xreadlink: Likewise.
80430
80431         * modules/ssize_t: New file.
80432
80433 2005-08-12  Simon Josefsson  <jas@extundo.com>
80434
80435         * m4/readline.m4: Look for termcap, curses or ncurses if required.
80436
80437 2005-08-12  Simon Josefsson  <jas@extundo.com>
80438
80439         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
80440         ssize_t.
80441
80442 2005-08-12  Simon Josefsson  <jas@extundo.com>
80443
80444         * MODULES.html.sh (Extra functions based on ANSI C 89: Misc): Add
80445         readline, getdelim and check_version.
80446         (Support for systems lacking ISO C 99: Sizes of integer types):
80447         Add size_max.
80448
80449 2005-08-12  Bruno Haible  <bruno@clisp.org>
80450
80451         * m4/readline.m4 (gl_FUNC_READLINE): Look for ncurses first.
80452
80453 2005-08-11  Simon Josefsson  <jas@extundo.com>
80454
80455         * modules/readline: New file.
80456
80457         * modules/strnlen (Files): Add strnlen.h.
80458
80459 2005-08-11  Simon Josefsson  <jas@extundo.com>
80460
80461         * m4/readline.m4: New file.
80462
80463 2005-08-11  Simon Josefsson  <jas@extundo.com>
80464
80465         * lib/readline.h, readline.c: New file.
80466
80467 2005-08-11  Simon Josefsson  <jas@extundo.com>
80468
80469         * doc/gnulib.texi (Initial import, Finishing touches): Mention
80470         gl_AVOID.
80471
80472 2005-08-11  Bruno Haible  <bruno@clisp.org>
80473
80474         * lib/strnlen.h (strnlen): Change parameter name to match comment.
80475
80476 2005-08-10  Stepan Kasal  <kasal@ucw.cz>
80477
80478         * m4/onceonly_2_57.m4: Really require Autoconf 2.57.
80479
80480 2005-08-10  Simon Josefsson  <jas@extundo.com>
80481
80482         * tests/test-iconvme.c: New file.
80483
80484 2005-08-10  Simon Josefsson  <jas@extundo.com>
80485
80486         * m4/strnlen.m4: New file.
80487
80488         * m4/strndup.m4: Don't check for strnlen declaration, done in
80489         strnlen.m4.
80490
80491 2005-08-10  Simon Josefsson  <jas@extundo.com>
80492
80493         * lib/strndup.c: Use strnlen.h.
80494
80495         * lib/strnlen.h: New file.
80496
80497 2005-08-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
80498
80499         * README: Typos.
80500
80501 2005-08-02  Simon Josefsson  <jas@extundo.com>
80502
80503         * modules/readline: New file.
80504
80505 2005-08-02  Simon Josefsson  <jas@extundo.com>
80506
80507         * modules/getdelim: New file.
80508
80509         * modules/getline: Rewrite, don't use getndelim2.
80510
80511 2005-08-02  Simon Josefsson  <jas@extundo.com>
80512
80513         * m4/getline.m4: Separate out getdelim stuff into separate module.
80514
80515         * m4/getdelim.m4: New file.
80516
80517 2005-08-02  Simon Josefsson  <jas@extundo.com>
80518
80519         * lib/getline.h, getline.c: Rewrite.
80520
80521         * lib/getdelim.h, lib/getdelim.c: New files, ported from glibc.
80522
80523 2005-07-31  Bruno Haible  <bruno@clisp.org>
80524
80525         * lib/lock.h (gl_lock_initializer): New macro.
80526         (gl_lock_define_initialized): Use it.
80527         (gl_rwlock_initializer): New macro.
80528         (gl_rwlock_define_initialized): Use it.
80529         (gl_recursive_lock_initializer): New macro.
80530         (gl_recursive_lock_define_initialized): Use it.
80531
80532 2005-07-30  Karl Berry  <karl@gnu.org>
80533
80534         * doc/gnulib.texi (Initial import): mention -I$(top_builddir)/lib.
80535         Report from Ben Pfaff, regarding getopt.
80536
80537 2005-07-26  Paul Eggert  <eggert@cs.ucla.edu>
80538
80539         Add support to getopt for Emacs, which doesn't use LIBOBJS in the
80540         normal way.
80541         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE_HEADER): New macro.
80542         (gl_GETOPT_SUBSTITUTE): Use it.  Invoke gl_PREREQ_GETOPT.
80543         (gl_GETOPT_IFELSE, gl_GETOPT_CHECK_HEADERS): New macros.
80544         (gl_GETOPT): Use the new macros.  Most of the implementation
80545         is moved to the new macros.  This is for programs like Emacs
80546         that don't want all the functionality of gl_GETOPT.
80547
80548 2005-07-26  Bruno Haible  <bruno@clisp.org>
80549
80550         * m4/lock.m4: Update from GNU gettext.
80551
80552 2005-07-26  Bruno Haible  <bruno@clisp.org>
80553
80554         * lib/lock.h: Update from GNU gettext.
80555         * lib/lock.c: Update from GNU gettext.
80556
80557 2005-07-25  Paul Eggert  <eggert@cs.ucla.edu>
80558
80559         * m4/regex.m4 (gl_INCLUDED_REGEX): Use AC_RUN_IFELSE instead of the
80560         obsolescent AC_TRY_RUN.  Include the default includes files, for
80561         'exit'.
80562
80563 2005-07-24  Bruno Haible  <bruno@clisp.org>
80564
80565         * modules/visibility: New file.
80566         * MODULES.html.sh (Misc): Add visibility.
80567
80568 2005-07-24  Bruno Haible  <bruno@clisp.org>
80569
80570         * m4/visibility.m4: New file.
80571
80572 2005-07-24  Bruno Haible  <bruno@clisp.org>
80573
80574         * doc/visibility.texi: New file.
80575
80576 2005-07-22  Bruno Haible  <bruno@clisp.org>
80577
80578         * modules/alloca-opt (Makefile.am): Remove explicit dependency on
80579         $(ALLOCA_H), redundant through BUILT_SOURCES.
80580         * modules/argz (Makefile.am): Remove explicit dependency on $(ARGZ_H),
80581         redundant through BUILT_SOURCES.
80582         * modules/byteswap (Makefile.am): Remove explicit dependency on
80583         $(BYTESWAP_H), redundant through BUILT_SOURCES.
80584         * modules/fnmatch (Makefile.am): Remove explicit dependency on
80585         $(FNMATCH_H), redundant through BUILT_SOURCES.
80586         * modules/getopt (Makefile.am): Remove explicit dependency on
80587         $(GETOPT_H), redundant through BUILT_SOURCES.
80588         * modules/glob (Makefile.am): Remove explicit dependency on $(GLOB_H),
80589         redundant through BUILT_SOURCES.
80590         * modules/poll (Makefile.am): Remove explicit dependency on $(POLL_H),
80591         redundant through BUILT_SOURCES.
80592         * modules/stdbool (Makefile.am): Remove explicit dependency on
80593         $(STDBOOL_H), redundant through BUILT_SOURCES.
80594         * modules/stdint (Makefile.am): Remove explicit dependency on
80595         $(STDINT_H), redundant through BUILT_SOURCES.
80596         * modules/sysexits (Makefile.am): Add $(SYSEXITS_H) to BUILT_SOURCES.
80597         Remove explicit dependency on $(SYSEXITS_H).
80598         Reported by Alexandre Duret-Lutz <adl@src.lip6.fr>.
80599
80600 2005-07-18  Simon Josefsson  <jas@extundo.com>
80601
80602         * lib/check-version.c (check_version): Accept identical versions too.
80603
80604 2005-07-18  Bruno Haible  <bruno@clisp.org>
80605
80606         * modules/lock: New file.
80607         * MODULES.html.sh (Multithreading): New section.
80608
80609 2005-07-18  Bruno Haible  <bruno@clisp.org>
80610
80611         * m4/lock.m4: New file, from GNU gettext.
80612
80613 2005-07-18  Bruno Haible  <bruno@clisp.org>
80614
80615         * lib/lock.h: New file, from GNU gettext.
80616         * lib/lock.c: New file, from GNU gettext.
80617
80618 2005-07-18  Bruno Haible  <bruno@clisp.org>
80619
80620         * lib/lock.h (gl_once_t): New type.
80621         (gl_once_define, gl_once): New macros.
80622         * lib/lock.c (fresh_once): New variable.
80623         (glthread_once, glthread_once_call, glthread_once_singlethreaded): New
80624         functions.
80625
80626 2005-07-16  Simon Josefsson  <jas@extundo.com>
80627
80628         * doc/gnulib.texi (Library version handling): Add ELF symbol collision
80629         workaround, suggested by Bruno.
80630
80631 2005-07-15  Paul Eggert  <eggert@cs.ucla.edu>
80632
80633         * modules/xalloc (Depends-on): Add xalloc-die.
80634         * modules/xvasprintf (Depends-on): Add xalloc-die.
80635
80636 2005-07-15  Paul Eggert  <eggert@cs.ucla.edu>
80637
80638         * lib/quotearg.c: Add translator comment suggested by Bruno Haible,
80639         with a minor change.
80640
80641 2005-07-15  Bruno Haible  <bruno@clisp.org>
80642
80643         * m4/poll.m4 (gl_FUNC_POLL): Check against MacOS X 10.4 poll() bug.
80644         When using lib/poll.c, define poll as rpl_poll.
80645
80646 2005-07-14  Paul Eggert  <eggert@cs.ucla.edu>
80647
80648         * modules/argp (Depends-on): Remove unlocked-io.
80649
80650 2005-07-14  Derek Price  <derek@ximbiot.com>
80651
80652         * m4/glob.m4 (gl_GLOB): Cache glob interface check result.  Add check
80653         for glob symlink bug.
80654
80655 2005-07-14  Bruno Haible  <bruno@clisp.org>
80656
80657         * m4/argp.m4 (gl_ARGP): Remove invocation of gl_FUNC_GLIBC_UNLOCKED_IO.
80658         Instead, test for *_unlocked function declarations directly.
80659
80660 2005-07-11  Simon Josefsson  <jas@extundo.com>
80661
80662         * modules/size_max: New file.
80663
80664         * modules/xsize: Depend on size_max module for size_max.m4.
80665
80666 2005-07-11  Simon Josefsson  <jas@extundo.com>
80667
80668         * lib/size_max.h: New file.
80669
80670 2005-07-11  Paul Eggert  <eggert@cs.ucla.edu>
80671
80672         * lib/version-etc-fsf.c (version_etc_copyright): Parameterize the
80673         copyright symbol and the year.
80674         * lib/version-etc.c (COPYRIGHT_YEAR): New constant.
80675         (version_etc_va): Use parameterized copyright notice.
80676         Reword to conform to the current GNU coding standards.
80677
80678 2005-07-11  Karl Berry  <karl@gnu.org>
80679
80680         * doc/gnulib.texi (Quoting): new node.
80681         (Initial import): more info, from Patrice.
80682
80683 2005-07-11  Bruno Haible  <bruno@clisp.org>
80684
80685         * gnulib-tool (func_usage): Document option --avoid.
80686         (Command line options): Handle --avoid.
80687         (func_acceptable): New function.
80688         (func_modules_transitive_closure): Use it.
80689
80690 2005-07-11  Bruno Haible  <bruno@clisp.org>
80691
80692         * MODULES.html.sh: Use shortcut URLs to the www.opengroup.org site.
80693         Reported by Jim Meyering.
80694
80695 2005-07-10  Bruno Haible  <bruno@clisp.org>
80696
80697         * m4/size_max.m4 (gl_SIZE_MAX): Cast ~(size_t)0 back to size_t.
80698         Needed when size_t is smaller than 'unsigned int'.
80699         Reported by Paul Eggert.
80700
80701 2005-07-09  Sergey Poznyakoff  <gray@gnu.org.ua>
80702
80703         * modules/argp (Depends-on): Add unlocked-io
80704
80705 2005-07-09  Sergey Poznyakoff  <gray@gnu.org.ua>
80706
80707         * lib/argp-namefrob.h: Include unlocked-io.h. Removed unnecessary
80708         block of defines.
80709
80710 2005-07-08  Paul Eggert  <eggert@cs.ucla.edu>
80711
80712         * config/srclist.txt: Comment out regcomp.c, since we have a porting
80713         fix now.
80714
80715 2005-07-08  Eric Blake  <ebb9@byu.net>  (tiny change)
80716         and Paul Eggert  <eggert@cs.ucla.edu>
80717
80718         * lib/regcomp.c (init_dfa, build_range_exp): Store __btowc value
80719         in wint_t, not wchar_t.  Remove now-unnecessary cast.
80720
80721 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
80722
80723         * modules/regex (Files): Add lib/regex_internal.c,
80724         lib/regex_internal.h, lib/regexec.c, lib/regcomp.c, m4/codeset.m4.
80725         (Depends-on): Add extensions.
80726         (Makefile.am): Remove lib_SOURCES; now done by m4 code.
80727
80728 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
80729
80730         * m4/backupfile.m4 (gl_BACKUPFILE): Use AC_CHECK_FUNCS_ONCE on
80731         pathconf.
80732         * m4/same.m4 (gl_SAME): Likewise.
80733         Require AC_SYS_LONG_FILE_NAMES; bug reported by Gerrit P. Haase.
80734
80735         * m4/regex.m4: Adjust to new libc regex implementation.
80736         (gl_INCLUDED_REGEX): Add AC_LIBSOURCES for
80737         all the .c and .h parts of (the new) regex.
80738         Quote the m4 stuff better.
80739         Check for RE_ICASE bug of old gnulib.
80740         Check for REG_STARTEND of recent libc.
80741         Rename local variables from jm_* to gl_*.
80742         Quote operand of "test -f".
80743         Say "recent enough" version of libc, not "version 2".
80744         (gl_PREREQ_REGEX): Remove AC_FUNC_ALLOCA, since alloca is a
80745         prerequisite module.  Remove AC_HEADER_STDC; no longer needed.
80746         Check for locale.h, isblank, mbrtowc, wcrtomb, wcscoll.
80747         Remove check for btowc, isascii.
80748         Require AM_LANGINFO_CODESET.
80749
80750 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
80751
80752         * lib/regex.c, regex.h: Sync from libc.
80753         * lib/regcomp.c, lib/regexec_internal.c, lib/regex_internal.h:
80754         * lib/regexec.c:
80755         New files, synced from libc, except that regex_internal.h
80756         currently has a small porting fix.
80757
80758 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
80759
80760         * config/srclist.txt: Add regcomp.c, regex.c, regex.h,
80761         regex_internal.c, regexec.c.
80762         Add regex_internal.h too, but as a comment, since the libc version
80763         is currently broken in gnulib mode.
80764
80765 2005-07-06  Paul Eggert  <eggert@cs.ucla.edu>
80766
80767         Support programs like Emacs that use gnulib but not gettext.
80768         * MODULES.html.sh (Internationalization functions): Add gettext-h.
80769         * modules/gettext-h: New file.
80770         * modules/gettext (Files): Remove lib/gettext.h.
80771         (Depends-on): Add gettext-h.
80772         (Makefile.am): Remove lib_SOURCES.
80773         * modules/argmatch, modules/c-stack, modules/closeout:
80774         * modules/copy-file, modules/csharpcomp, modules/csharpexec:
80775         * modules/execute, modules/file-type, modules/getaddrinfo:
80776         * modules/getopt, modules/human, modules/javacomp:
80777         * modules/javaexec, modules/mkdir-p, modules/obstack:
80778         * modules/openat, modules/pagealign_alloc, modules/pipe:
80779         * modules/quotearg, modules/regex, modules/rpmatch:
80780         * modules/unicodeio, modules/userspec, modules/version-etc:
80781         * modules/wait-process, modules/xalloc-die, modules/xmemcoll:
80782         * modules/xsetenv:
80783         Depend on gettext-h, not gettext.
80784
80785 2005-07-05  Paul Eggert  <eggert@cs.ucla.edu>
80786
80787         * gnulib-tool (func_import): Add support for 'public domain' license.
80788         * modules/alloca, modules/atexit, modules/memmove:
80789         Now public domain, not GPL.
80790         * modules/dup2, modules/getpagesize, modules/malloc, modules/memset:
80791         * modules/realloc, modules/strerror, modules/strtod:
80792         Now LGPL, not GPL.
80793
80794 2005-07-05  Bruno Haible  <bruno@clisp.org>
80795
80796         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): Upgrade to version from current
80797         autoconf CVS. Needed for mingw.
80798
80799 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
80800
80801         Remove the dependency of the strftime module on the tzset module.
80802         * modules/strftime (Depends-on): Remove dependency on tzset.
80803
80804 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
80805
80806         Remove the dependency of the strftime module on the tzset module.
80807         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't require
80808         gl_FUNC_TZSET_CLOBBER.
80809
80810 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
80811
80812         Remove the dependency of the strftime module on the tzset module.
80813         * lib/strftime.c (my_strftime)
80814         [! defined _LIBC && ! HAVE_RUN_TZSET_TEST]:
80815         Copy the input structure, to work around some of the bug with
80816         Solaris 2.5.1 and Solaris 2.6.  If you still care about these old
80817         Solaris releases, you should also use the tzset module, but we won't
80818         require it as a dependency any more since we don't want LGPLed code
80819         to depend on GPLed code.
80820
80821 2005-07-02  Jim Meyering  <jim@meyering.net>
80822
80823         * m4/chown.m4, cloexec.m4, dup2.m4, fsusage.m4:
80824         * m4/getcwd-path-max.m4, getcwd.m4, mkstemp.m4, mountlist.m4:
80825         * m4/pagealign_alloc.m4, save-cwd.m4, unistd-safer.m4:
80826         Don't check for fcntl.h, and don't test for HAVE_FCNTL_H.
80827
80828 2005-07-02  Jim Meyering  <jim@meyering.net>
80829
80830         * lib/backupfile.c (backup_args): Change a `0' to NULL.
80831
80832 2005-07-01  Paul Eggert  <eggert@cs.ucla.edu>
80833
80834         * lib/xnanosleep.c: Include timespec.h, since OpenBSD 3.4 <time.h>
80835         declares only 'struct timespec;' (!).
80836
80837 2005-07-01  Jim Meyering  <jim@meyering.net>
80838
80839         * lib/chown.c, cloexec.c, dup-safer.c, dup2.c, fsusage.c, getcwd.c:
80840         * lib/getloadavg.c, mountlist.c, openat.h, pagealign_alloc.c:
80841         * lib/save-cwd.c, tempname.c:
80842         Assume HAVE_FCNTL_H (i.e., include <fcntl.h> unconditionally,
80843         and don't include <sys/file.h>).
80844
80845 2005-06-29  Jim Meyering  <jim@meyering.net>
80846
80847         * lib/mkdir-p.c (make_dir_parents): Don't apply sizeof to a hard-coded
80848         type name.  Use the variable name instead.
80849         * lib/idcache.c (getuser, getuidbyname, getgroup, getgidbyname):
80850         Likewise.
80851
80852 2005-06-28  Simon Josefsson  <jas@extundo.com>
80853
80854         * modules/check-version (Files): Add check-version.m4.
80855
80856 2005-06-28  Simon Josefsson  <jas@extundo.com>
80857
80858         * m4/check-version.m4: New file, suggested by Jim Meyering
80859         <jim@meyering.net>.
80860
80861 2005-06-28  Simon Josefsson  <jas@extundo.com>
80862
80863         * lib/check-version.h, lib/check-version.c: New files.
80864
80865 2005-06-28  Simon Josefsson  <jas@extundo.com>
80866
80867         * lib/base64.c (base64_encode): Indent.  Rename 'b64' to avoid
80868         collision with global variable.  Better indentation.  Don't
80869         increment buffer pointer beyond buffer end.  Based on comments
80870         from Paul Eggert <eggert@cs.ucla.edu>.
80871
80872         * lib/base64.h: Indent.
80873
80874 2005-06-28  Simon Josefsson  <jas@extundo.com>
80875
80876         * doc/gnulib.texi (Library version handling): New section.
80877
80878 2005-06-28  Jim Meyering  <jim@meyering.net>
80879
80880         * check-module (find_included_lib_files): Hard-code another
80881         pair of exceptions: fts.c includes fts-cycle.c and unistd-safer.h
80882         but modules/fts-lgpl (correctly) does not list those files.
80883
80884         * modules/canonicalize (Files): Add lib/pathmax.h.
80885
80886 2005-06-25  Simon Josefsson  <jas@extundo.com>
80887
80888         * modules/check-version: New file.
80889
80890 2005-06-24  Paul Eggert  <eggert@cs.ucla.edu>
80891
80892         * lib/canon-host.c (canon-host): Append trailing "," to 0 in
80893         initializer of struct addrinfo, as an indication that we don't
80894         care how many members the structure has.
80895
80896 2005-06-24  Derek Price  <derek@ximbiot.com>
80897         and Bruno Haible  <bruno@clisp.org>
80898
80899         Remove stat module & update lstat.
80900         * m4/lstat.m4 (gl_FUNC_LSTAT): Drop AC_FUNC_LSTAT in favor of
80901         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
80902         * m4/stat.m4: Remove this file.
80903
80904 2005-06-24  Derek Price  <derek@ximbiot.com>
80905         and Bruno Haible  <bruno@clisp.org>
80906
80907         Remove stat module & update lstat.
80908         * lib/stat.c: Remove this file...
80909         (slash_aware_lstat): ...moving this content and its support...
80910         * lib/lstat.c (rpl_lstat): ...into here.
80911         * lib/lstat.h: New file.
80912
80913 2005-06-24  Derek Price  <derek@ximbiot.com>
80914         and Bruno Haible  <bruno@clisp.org>
80915
80916         Remove stat module & update lstat.
80917         * config/srclist.txt (libc sources): Remove stat.
80918
80919 2005-06-24  Derek Price  <derek@ximbiot.com>
80920         and Bruno Haible  <bruno@clisp.org>
80921
80922         Remove stat module & update lstat.
80923         * MODULES.html.sh (stat): Remove.
80924         * MODULES.html: Regenerated.
80925         * modules/lstat (Description): Correct function name.
80926         (Files): Add "lstat.h".
80927         (Depends-on): Remove stat, add xalloc, stat-macros.
80928         * modules/stat: Remove this file.
80929         (Include): Add "lstat.h", remove <sys/stat.h>.
80930
80931 2005-06-23  Paul Eggert  <eggert@cs.ucla.edu>
80932
80933         * lib/mktime.c: Include <string.h> even if !DEBUG.  (From glibc.)
80934         (ranged_convert): Don't save conversion in a temporary struct.
80935         This causes a warning with GCC 4.0.0, and anyway in the typical
80936         case it's not worth the extra 100 bytes or so of code.
80937         (ranged_convert, __mktime_internal): When calling a function via a
80938         pointer P, use P () rather than (*P) (), as we now assume C89 or
80939         better.
80940
80941 2005-06-22  Paul Eggert  <eggert@cs.ucla.edu>
80942
80943         * lib/readutmp.c (desirable_utmp_entry): Fix bug where "who -b" and
80944         "who -r" failed to give output.  Problem reported by Tim Waugh.
80945
80946         * lib/xmalloc.c (HAVE_GNU_CALLOC): New constant.
80947         (xcalloc): Use it to avoid needless tests.
80948         Problem reported by Jim Meyering.
80949
80950 2005-06-20  Derek Price  <derek@ximbiot.com>
80951
80952         * m4/bison.m4: Note that precious decls of YACC & YFLAGS will be
80953         unnecessary for Autoconfs > 2.59c.
80954
80955 2005-06-16  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
80956
80957         * lib/argp.h (__option_is_short): Check upper limit of
80958         __key. Isprint() requires its argument to have the value
80959         of an unsigned char or EOF.
80960
80961 2005-06-16  Jim Meyering  <jim@meyering.net>
80962
80963         * lib/calloc.c (rpl_calloc): Allocate a 1-byte buffer (not 1xS or Nx1)
80964         when either N or S is zero.
80965
80966 2005-06-16  Derek Price  <derek@ximbiot.com>
80967
80968         * m4/bison.m4: Declare YACC & YFLAGS precious.
80969
80970 2005-06-10  Paul Eggert  <eggert@cs.ucla.edu>
80971
80972         * lib/fnmatch.c (fnmatch): If there is an encoding error in a
80973         multibyte string or pattern, fall back on unibyte matching.
80974         Problem reported by James Youngman.
80975
80976 2005-06-08  Bruno Haible  <bruno@clisp.org>
80977
80978         * modules/csharpcomp: New file.
80979         * MODULES.html.sh (C#): Add csharpcomp.
80980
80981 2005-06-08  Bruno Haible  <bruno@clisp.org>
80982
80983         * m4/csharpcomp.m4: New file, from GNU gettext.
80984
80985 2005-06-08  Bruno Haible  <bruno@clisp.org>
80986
80987         * lib/csharpcomp.h: New file, from GNU gettext.
80988         * lib/csharpcomp.c: New file, from GNU gettext.
80989         * lib/csharpcomp.sh.in: New file, from GNU gettext.
80990
80991 2005-06-08  Bruno Haible  <bruno@clisp.org>
80992
80993         * lib/binary-io.h (fileno): Undefine before defining it. Avoids a gcc
80994         warning on mingw.
80995
80996 2005-06-07  Derek Price  <derek@ximbiot.com>
80997
80998         Sync from CVS.
80999         * lib/glob_.h: Indent nested #ifdef.
81000
81001 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
81002
81003         Sync from coreutils.
81004         Use "file name" when talking about file names, instead of "filename"
81005         or "path", as per the GNU coding standards.
81006         * lib/mkdir-p.c: Renamed from makepath.c.
81007         (make_dir_parents): Renamed from make_path.  All callers changed.
81008         * lib/mkdir-p.h: Likewise.  All includers changed.
81009         * lib/filenamecat.c: Renamed from path-concat.c.
81010         (file_name_concat): Renamed from path_concat.  All callers changed.
81011         [TEST_FILE_NAME_CONCAT]: Renamed from TEST_PATH_CONCAT.
81012         * lib/filenamecat.h: Likewise.  All includers changed.
81013         * lib/acl.c: Don't use "path" or "filename" to mean "file name"
81014         in comments or local variable names.
81015         * lib/basename.c: Likewise.
81016         * lib/canonicalize.c, canonicalize.h: Likewise.
81017         * lib/dirname.c, dirname.h: Likewise.
81018         * lib/euidaccess.c: Likewise.
81019         * lib/exclude.c: Likewise
81020         * lib/fnmatch_.h, fnmatch_loop.c: Likewise.
81021         * lib/fsusage.c, fsuage.h: Likewise.
81022         * lib/fts.c, fts_.h: Likewise.
81023         * lib/getcwd.c: Likewise.
81024         * lib/getloadavg.c: Likewise.
81025         * lib/mkstemp.c: Likewise.
81026         * lib/mountlist.c, mountlist.h: Likewise.
81027         * lib/openat.c, openat.h: Likewise.
81028         * lib/readlink-stub.c: Likewise.
81029         * lib/readutmp.c, readutmp.h: Likewise.
81030         * lib/rename.c: Likewise.
81031         * lib/rmdir.c: Likewise.
81032         * lib/same.c: Likewise.
81033         * lib/savedir.c: Likewise.
81034         * lib/stripslash.c: Likewise.
81035         * lib/tempname.c: Likewise.
81036         * lib/xreadlink.c: Likewise.
81037         * lib/exclude.c (excluded_file_name): Renamed from excluded_filename.
81038         All uses changed.
81039         * lib/exclude.h: Likewise.
81040
81041         * lib/euidaccess.c (getuid, getgid, getuid, getegid)
81042         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
81043         * lib/idcache.c (getpwuid, getpwnam, getgrgid, getgrnam)
81044         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
81045         * lib/pathmax.h: Include <limits.h> unconditionally, since other
81046         files have been getting away with it for years (MORE/BSD 4.3
81047         is extinct now).
81048         * lib/userspec.c (getpwnam, getgrnam, getgrgid)
81049         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
81050
81051         * lib/pathmax.h (_POSIX_PATH_MAX) [!defined _POSIX_PATH_MAX]:
81052         Define to 256, not 255, as per modern POSIX.
81053
81054 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
81055
81056         Sync from coreutils.
81057         Use "file name" when talking about file names, instead of "filename"
81058         or "path", as per the GNU coding standards.
81059         * MODULES.html.sh: mkdir-p renamed from makepath.
81060         filenamecat renamed from path-concat.
81061         * modules/filenamecat: Renamed from modules/path-concat.
81062         (Files): filenamecat.h and filenamecat.c renamed from
81063         path-concat.h and path-concat.c.
81064         (configure.ac): gl_FILE_NAME_CONCAT, not gl_PATH_CONCAT.
81065         (Include): filenamecat.h, not path-concat.h.
81066         * modules/mkdir-p: Renamed from modules/makepath.
81067         (Files): mkdir-p.h and mkdir-p.c renamed from makepath.h and
81068         makepath.c.
81069         (configure.ac): gl_MKDIR_PARENTS, not gl_MAKEPATH.
81070         (Include): mkdir-p.h, not makepath.h.
81071
81072 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
81073
81074         Sync from coreutils.
81075         * m4/mkdir-p.m4: Renamed from makepath.m4.
81076         (gl_MKDIR_PARENTS): Renamed from gl_MAKEPATH.  All uses changed.
81077         Rename files from makepath.c to mkdir-p.c, and from
81078         makepath.h to mkdir-p.h.
81079         * m4/filenamecat.m4: Renamed from path-concat.m4.
81080         (gl_FILE_NAME_CONCAT): Renamed from gl_PATH_CONCAT.  All uses changed.
81081         Rename files from path-concat.c to filenamecat.c,
81082         and from path-concat.h to filenamecat.h.
81083         * m4/getcwd-path-max.m4: Don't use "path" or "filename" to mean
81084         "file name" in local variables or comments.
81085         * m4/rename.m4: Likewise.
81086
81087 2005-06-01  Bruno Haible  <bruno@clisp.org>
81088
81089         * modules/csharpexec: New file.
81090         * MODULES.html.sh (C#): New section.
81091
81092 2005-06-01  Bruno Haible  <bruno@clisp.org>
81093
81094         * m4/csharp.m4: New file, from GNU gettext.
81095         * m4/csharpexec.m4: New file, from GNU gettext.
81096
81097 2005-06-01  Bruno Haible  <bruno@clisp.org>
81098
81099         * lib/csharpexec.h: New file, from GNU gettext.
81100         * lib/csharpexec.c: New file, from GNU gettext.
81101         * lib/csharpexec.sh.in: New file, from GNU gettext.
81102
81103 2005-05-31  Derek Price  <derek@ximbiot.com>
81104             Paul Eggert  <eggert@cs.ucla.edu>
81105
81106         Sync from cvs.
81107         * m4/glob.m4: s/MISSING_SYS_CDEFS_H/_SYS_CDEFS_H/ and comment.
81108
81109 2005-05-31  Derek Price  <derek@ximbiot.com>
81110             Paul Eggert  <eggert@cs.ucla.edu>
81111
81112         Sync from cvs.
81113         * lib/glob_.h: s/MISSING_SYS_CDEFS_H/_SYS_CDEFS_H/ and comment.
81114
81115 2005-05-29  Derek Price  <derek@ximbiot.com>
81116
81117         * config/srclist.txt (glob_.h, glob.c): Add these files.
81118
81119 2005-05-29  Derek Price  <derek@ximbiot.com>
81120
81121         * MODULES.html.sh: Add glob to Enhanced POSIX.2001 section.
81122         * modules/glob: New file.
81123         * modules/getlogin_r: Add link to POSIX spec in description.
81124
81125 2005-05-29  Derek Price  <derek@ximbiot.com>
81126             Paul Eggert  <eggert@cs.ucla.edu>
81127
81128         * m4/glob.m4: New file.
81129
81130 2005-05-29  Derek Price  <derek@ximbiot.com>
81131             Paul Eggert  <eggert@cs.ucla.edu>
81132
81133         * lib/glob_.h, lib/glob.c: New files.
81134
81135 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
81136
81137         * modules/fts (Files): Remove m4/inttypes-pri.m4.
81138         * modules/fts-lgpl (Depends-on): Remove gettext.
81139
81140 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
81141
81142         * m4/fts.m4 (gl_FUNC_FTS_CORE): Don't check for inttypes.h or stdint.h,
81143         and don't require gt_INTTYPES_PRI.
81144
81145 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
81146
81147         * lib/getlogin_r.c (getlogin_r): Don't set errno to 0 on return.
81148
81149         * lib/fts.c: Don't worry about debugging on pre-C99-compatible hosts;
81150         the configuration hassle isn't worth it.
81151         Include inttypes.h and stdint.h unconditionally if FTS_DEBUG.
81152         (LONGEST_MODIFIER, PRIuMAX): Remove.
81153
81154 2005-05-27  Bruno Haible  <bruno@clisp.org>
81155
81156         * lib/getlogin_r.h: Remove second include of <stddef.h>.
81157
81158 2005-05-26  Paul Eggert  <eggert@cs.ucla.edu>
81159
81160         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Define
81161         _POSIX_PTHREAD_SEMANTICS for Solaris.
81162
81163 2005-05-25  Derek Price  <derek@ximbiot.com>
81164
81165         * MODULES.html.sh: Add getlogin_r to POSIX.2001 support section.
81166
81167 2005-05-25  Derek Price  <derek@ximbiot.com>
81168             Paul Eggert  <eggert@cs.ucla.edu>
81169
81170         * modules/getlogin_r, m4/getlogin_r.m4: New files.
81171         * lib/getlogin_r.c, getlogin_r.h: New files.
81172
81173 2005-05-25  Bruno Haible  <bruno@clisp.org>
81174             Derek Price  <derek@ximbiot.com>
81175
81176         * lib/getlogin_r.h: Simplify API documentation.
81177
81178 2005-05-23  Derek Price  <derek@ximbiot.com>
81179
81180         * modules/minmax (Files): Add m4/minmax.m4.
81181         (configure.ac): Add gl_MINMAX.
81182
81183 2005-05-22  Paul Eggert  <eggert@cs.ucla.edu>
81184
81185         * lib/fts.c (fd_safer) [_LGPL_PACKAGE]: New static function,
81186         so that unistd-safer.h (GPL'ed code) need not be included.
81187
81188 2005-05-22  Bruno Haible  <bruno@clisp.org>
81189
81190         * m4/minmax.m4: New file.
81191         Based on a patch by Derek Price <derek@ximbiot.com>.
81192
81193 2005-05-22  Bruno Haible  <bruno@clisp.org>
81194
81195         * lib/stdint_.h (_STDINT_H_HAVE_INT64): New macro. Use it in #ifdefs.
81196         (INT64_MIN): Fix definition.
81197         Suggested by Paul Eggert <eggert@cs.ucla.edu>.
81198
81199         * lib/stdint_.h (_STDINT_H_NEED_SIGNED_INT_TYPES): Renamed from
81200         NEED_SIGNED_INT_TYPES.
81201
81202         * lib/stdint_.h (_STDINT_H_HAVE_SYSTEM_INTTYPES): Renamed from
81203         HAVE_SYSTEM_INTTYPES.
81204
81205 2005-05-22  Bruno Haible  <bruno@clisp.org>
81206
81207         * lib/minmax.h: Include <limits.h> only when it defines MIN, MAX.
81208         Also include <sys/param.h> if it defines MIN, MAX.
81209         Based on a patch by Derek Price <derek@ximbiot.com>.
81210
81211 2005-05-21  Jim Meyering  <jim@meyering.net>
81212
81213         * modules/fts (Files): Add m4/inttypes-pri.m4.
81214         (Depends-on): Add lstat and remove gettext.  Alphabetize.
81215
81216 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
81217
81218         New fts module.
81219         * lib/fts.c: Don't include "cycle-check.h" or "hash.h".
81220         (setup_dir, free_dir): New functions.
81221         (enter_dir, leave_dir): Define trivial
81222         alternatives of _LGPL_PACKAGE.  Move to fts-cycle.c if !_LGPL_PACKAGE.
81223         (HT_INITIAL_SIZE, ENTER_DIR): Remove.  All uses removed.
81224         (LEAVE_DIR): Fix typo: pass Fts and Ent to leave_dir.
81225         (struct Active_dir, AD_compare, AD_hash, enter_dir, leave_dir):
81226         Move to fts-cycle.c.
81227         (fts_open): Use setup_dir.
81228         (fts_close): Use free_dir.
81229         (fts_read): Have just one copy of the ENTER_DIR code rather than three.
81230         This adds a label and some gotos, but the alternatives were messier.
81231         Check for memory allocation failure when entering a dir.
81232         (fts_stat) [_LGPL_PACKAGE]: Bring back glibc cycle detection code.
81233         * lib/fts_.h (_LGPL_PACKAGE) [defined _LIBC]: New macro.
81234         (FTS): New member fts_cycle, that is a union that contains the
81235         old active_dir_ht and cycle_state.  All uses changed to mention
81236         fts_cycle.ht and fts_cycle.state.
81237         * lib/fts-cycle.c: New file, containing GPL'ed code migrated out of
81238         fts.c, with the following changes:
81239         (setup_dir, free_dir): New functions.
81240         (enter_dir): Now returns bool.  Return true if successful, false
81241         if memory exhausted.  All callers changed.
81242         Do not bother partly cleaning up on
81243         memory allocation failure; that is free_dir's job.
81244         However, free ad if hash_insert fails, to avoid memory leak.
81245         (enter_dir, leave_dir): Accommodate change to FTS by inspecting
81246         fts->fts_options to see which union member to use.
81247
81248 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
81249
81250         * m4/fts.m4 (gl_FUNC_FTS_CORE): Renamed from gl_FUNC_FTS.
81251         (gl_FUNC_FTS, gl_FUNC_FTS_LGPL): New macros.
81252
81253 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
81254
81255         * MODULES.html.sh (File system functions): Add fts, fts-lgpl.
81256
81257 2005-05-20  Jim Meyering  <jim@meyering.net>
81258
81259         * lib/unlinkdir.h (cannot_unlink_dir) [UNLINK_CANNOT_UNLINK_DIR]:
81260         Now a macro, to pacify GCC.
81261
81262 2005-05-20  Eric Blake  <ebb9@byu.net>  (tiny change)
81263
81264         * m4/chown.m4 (gl_FUNC_CHOWN): Correct sense of test for honoring IDs
81265         of -1.
81266
81267 2005-05-20  Eric Blake  <ebb9@byu.net>  (tiny change)
81268
81269         * lib/chown.c (rpl_chown): Return -1 on failure.
81270
81271 2005-05-18  Paul Eggert  <eggert@cs.ucla.edu>
81272
81273         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME]):
81274         Don't check for stddef.h.
81275         * m4/fts.m4 (gl_FUNC_FTS): Don't require AC_HEADER_STDC, as we
81276         don't use its results.
81277         Don't check for fcntl.h, stddef.h, stdlib.h, string.h, unistd.h,
81278         since we include them unconditionally.  Don't require
81279         AM_STDBOOL_H, since stdbool is a prerequisite.
81280         Don't require AC_C_CONST, AC_TYPE_SIZE_T or check for ptrdiff_t
81281         since we assume C89 or better.
81282         Don't require AC_FUNC_CLOSEDIR_VOID, AC_FUNC_LSTAT, or AC_FUNC_STAT,
81283         as we don't use their results.
81284         Don't check for fchdir, memmove, memset, strrchr, as we use
81285         them unconditionally.
81286         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Don't define
81287         GETTIMEOFDAY_CLOBBERS_LOCALTIME_BUFFER, since nobody uses it.
81288
81289 2005-05-18  Paul Eggert  <eggert@cs.ucla.edu>
81290
81291         * lib/canonicalize.c: Include canonicalize.h first, to test interface.
81292         Include <stddef.h> unconditionally, since we assume C89 now.
81293         All uses of PTR_INT_TYPE replaced by ptrdiff_t.
81294         * lib/fts.c: Include fts_.h first, to check interface.
81295         Do not include intprops.h; no longer needed.
81296         Include cycle-check.h and hash.h, since fts_.h no longer does.
81297         Remove unnecessary casts of closedir to void.
81298         (fts_build): Use a simpler method (not involving TYPE_SIGNED) to
81299         decide whether to decrement nlinks.
81300         * lib/fts_.h: Do not include hash.h or cycle-check.h; no longer needed.
81301         (FTS): Use struct hash_table * instead of Hash_table, so that
81302         we no longer need to include hash.h here.
81303
81304 2005-05-18  Jim Meyering  <jim@meyering.net>
81305
81306         * modules/dirfd (License): Change to LGPL.  Most of the code
81307         is already in the public domain.
81308
81309 2005-05-18  Jim Meyering  <jim@meyering.net>
81310
81311         * m4/fts.m4 (AC_LIBSOURCES): Add intprops.h to the list.
81312         Reported by Yoann Vandoorselaere.
81313
81314 2005-05-17  Jim Meyering  <jim@meyering.net>
81315
81316         * m4/fts.m4: New file, from coreutils.
81317
81318 2005-05-17  Jim Meyering  <jim@meyering.net>
81319
81320         * lib/fts.c, lib/fts_.h: New files, from coreutils.
81321
81322 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
81323
81324         Sync from coreutils.
81325         * m4/unlinkdir.m4: New file.
81326
81327 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
81328
81329         Sync from coreutils.
81330         * lib/unlinkdir.c, lib/unlinkdir.h: New files.
81331         * lib/gethrxtime.c, lib/gethrxtime.h, lib/getpass.h, lib/mountlist.h,
81332         lib/path-concat.c, lib/regex.h, lib/unlocked-io.h, lib/xtime.h:
81333         White space changes only.
81334         * lib/makepath.c (make_path): Port to hosts where leading "//" is
81335         special.
81336         * lib/yesno.c: Include getline.h, not ctype.h.
81337         (yesno): Don't remove leading white space; POSIX doesn't allow it.
81338         Use getline to remove arbitrary restriction on response length.
81339
81340 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
81341
81342         * config/srclist-update: Spell out "Street" in FSF postal
81343         mail address; this is the style the FSF seems to prefer.
81344
81345         * build-aux/depcomp, build-aux/install-sh, build-aux/mdate-sh,
81346         build-aux/missing, build-aux/mkinstalldirs: Sync from Automake;
81347         this updates FSF postal mail address.
81348
81349         Sync from coreutils.
81350         * modules/unlinkdir: New file.
81351         * modules/yesno (Depends-on): Add getline.
81352         * MODULES.html.sh (File system functions): Add unlinkdir.
81353
81354 2005-05-13  Paul Eggert  <eggert@cs.ucla.edu>
81355
81356         * lib/byteswap_.h, lib/getsubopt.h, lib/iconvme.h, lib/strsep.c,
81357         lib/strsep.h:
81358         Change the initial comment to refer to GPL, not LGPL.
81359         gnulib-tool will change it to LGPL as needed.
81360
81361         * lib/__fpending.c, lib/acl.c, lib/acl.h, lib/alloca_.h, lib/allocsa.c,
81362         lib/allocsa.h, lib/argmatch.c, lib/argmatch.h, lib/argp-ba.c,
81363         lib/argp-eexst.c, lib/argp-fmtstream.c, lib/argp-fmtstream.h,
81364         lib/argp-fs-xinl.c, lib/argp-help.c, lib/argp-namefrob.h,
81365         lib/argp-parse.c, lib/argp-pv.c, lib/argp-pvh.c, lib/argp-xinl.c,
81366         lib/argp.h, lib/argz.c, lib/argz_.h, lib/asnprintf.c, lib/asprintf.c,
81367         lib/atanl.c, lib/backupfile.c, lib/backupfile.h, lib/base64.c,
81368         lib/base64.h, lib/basename.c, lib/binary-io.h, lib/byteswap_.h,
81369         lib/c-ctype.c, lib/c-ctype.h, lib/c-stack.c, lib/c-stack.h,
81370         lib/c-strtod.c, lib/calloc.c, lib/canon-host.c, lib/canonicalize.c,
81371         lib/canonicalize.h, lib/ceill.c, lib/chdir-long.c, lib/chdir-long.h,
81372         lib/chown.c, lib/classpath.c, lib/classpath.h, lib/cloexec.c,
81373         lib/closeout.c, lib/closeout.h, lib/concatpath.c, lib/config.charset,
81374         lib/copy-file.c, lib/copy-file.h, lib/cycle-check.c, lib/cycle-check.h,
81375         lib/diacrit.c, lib/diacrit.h, lib/dirfd.c, lib/dirfd.h, lib/dirname.c,
81376         lib/dirname.h, lib/dummy.c, lib/dup-safer.c, lib/dup2.c, lib/eealloc.h,
81377         lib/error.c, lib/error.h, lib/euidaccess.c, lib/exclude.c,
81378         lib/exclude.h, lib/execute.c, lib/execute.h, lib/exit.h,
81379         lib/exitfail.c, lib/exitfail.h, lib/expl.c, lib/fatal-signal.c,
81380         lib/fatal-signal.h, lib/fd-safer.c, lib/file-type.c, lib/file-type.h,
81381         lib/fileblocks.c, lib/filemode.c, lib/filemode.h, lib/findprog.c,
81382         lib/findprog.h, lib/floorl.c, lib/fnmatch.c, lib/fnmatch_.h,
81383         lib/fnmatch_loop.c, lib/fopen-safer.c, lib/free.c, lib/frexpl.c,
81384         lib/fsusage.c, lib/fsusage.h, lib/full-read.c, lib/full-read.h,
81385         lib/full-write.c, lib/full-write.h, lib/fwriteerror.c,
81386         lib/fwriteerror.h, lib/gai_strerror.c, lib/gcd.c, lib/gcd.h,
81387         lib/getaddrinfo.c, lib/getaddrinfo.h, lib/getcwd.c, lib/getcwd.h,
81388         lib/getdate.h, lib/getdate.y, lib/getdomainname.c, lib/getdomainname.h,
81389         lib/getgroups.c, lib/gethostname.c, lib/gethrxtime.c, lib/gethrxtime.h,
81390         lib/getline.c, lib/getline.h, lib/getloadavg.c, lib/getndelim2.c,
81391         lib/getndelim2.h, lib/getnline.c, lib/getnline.h, lib/getopt.c,
81392         lib/getopt1.c, lib/getopt_.h, lib/getopt_int.h, lib/getpagesize.h,
81393         lib/getpass.c, lib/getpass.h, lib/getsubopt.c, lib/getsubopt.h,
81394         lib/gettext.h, lib/gettime.c, lib/gettimeofday.c, lib/getugroups.c,
81395         lib/getusershell.c, lib/group-member.c, lib/group-member.h,
81396         lib/hard-locale.c, lib/hard-locale.h, lib/hash-pjw.c, lib/hash-pjw.h,
81397         lib/hash.c, lib/hash.h, lib/human.c, lib/human.h, lib/iconvme.c,
81398         lib/iconvme.h, lib/idcache.c, lib/inet_ntop.h, lib/intprops.h,
81399         lib/inttostr.c, lib/inttostr.h, lib/isdir.c, lib/javacomp.c,
81400         lib/javacomp.h, lib/javacomp.sh.in, lib/javaexec.c, lib/javaexec.h,
81401         lib/javaexec.sh.in, lib/lbrkprop.h, lib/lchown.c, lib/ldexpl.c,
81402         lib/linebreak.c, lib/linebreak.h, lib/linebuffer.c, lib/linebuffer.h,
81403         lib/localcharset.c, lib/localcharset.h, lib/logl.c, lib/long-options.c,
81404         lib/long-options.h, lib/lstat.c, lib/makepath.c, lib/makepath.h,
81405         lib/malloc.c, lib/mathl.h, lib/mbswidth.c, lib/mbswidth.h, lib/md5.c,
81406         lib/md5.h, lib/memcasecmp.c, lib/memcasecmp.h, lib/memchr.c,
81407         lib/memcmp.c, lib/memcoll.c, lib/memcoll.h, lib/memcpy.c, lib/memmem.c,
81408         lib/memmem.h, lib/mempcpy.c, lib/mempcpy.h, lib/memrchr.c,
81409         lib/memrchr.h, lib/memset.c, lib/minmax.h, lib/mkdir.c, lib/mkdtemp.c,
81410         lib/mkdtemp.h, lib/mkstemp.c, lib/mktime.c, lib/modechange.c,
81411         lib/modechange.h, lib/mountlist.c, lib/mountlist.h, lib/nanosleep.c,
81412         lib/obstack.c, lib/obstack.h, lib/openat.c, lib/openat.h,
81413         lib/pagealign_alloc.c, lib/pagealign_alloc.h, lib/path-concat.c,
81414         lib/path-concat.h, lib/pathmax.h, lib/pathname.h, lib/physmem.c,
81415         lib/physmem.h, lib/pipe.c, lib/pipe.h, lib/poll.c, lib/poll_.h,
81416         lib/posixtm.c, lib/posixtm.h, lib/posixver.c, lib/printf-args.c,
81417         lib/printf-args.h, lib/printf-parse.c, lib/printf-parse.h,
81418         lib/progname.c, lib/progname.h, lib/progreloc.c, lib/putenv.c,
81419         lib/quote.c, lib/quote.h, lib/quotearg.c, lib/quotearg.h, lib/raise.c,
81420         lib/readlink.c, lib/readtokens.c, lib/readtokens.h, lib/readtokens0.c,
81421         lib/readtokens0.h, lib/readutmp.c, lib/readutmp.h, lib/realloc.c,
81422         lib/ref-add.sin, lib/ref-del.sin, lib/regex.c, lib/regex.h,
81423         lib/rename.c, lib/rmdir.c, lib/rpmatch.c, lib/safe-read.c,
81424         lib/safe-read.h, lib/safe-write.c, lib/safe-write.h, lib/same.c,
81425         lib/same.h, lib/save-cwd.c, lib/save-cwd.h, lib/savedir.c,
81426         lib/savedir.h, lib/setenv.c, lib/setenv.h, lib/settime.c,
81427         lib/sh-quote.c, lib/sh-quote.h, lib/sha1.c, lib/sha1.h, lib/sig2str.c,
81428         lib/sig2str.h, lib/sincosl.c, lib/snprintf.c, lib/snprintf.h,
81429         lib/sqrtl.c, lib/stat-macros.h, lib/stat.c, lib/stdbool_.h,
81430         lib/stdint_.h, lib/stdio-safer.h, lib/stpcpy.c, lib/stpcpy.h,
81431         lib/stpncpy.c, lib/stpncpy.h, lib/strcase.h, lib/strcasecmp.c,
81432         lib/strchrnul.c, lib/strchrnul.h, lib/strcspn.c, lib/strdup.c,
81433         lib/strdup.h, lib/strerror.c, lib/strftime.c, lib/strftime.h,
81434         lib/stripslash.c, lib/strndup.c, lib/strndup.h, lib/strnlen.c,
81435         lib/strpbrk.c, lib/strpbrk.h, lib/strsep.c, lib/strsep.h, lib/strstr.c,
81436         lib/strstr.h, lib/strtod.c, lib/strtoimax.c, lib/strtok_r.c,
81437         lib/strtok_r.h, lib/strtol.c, lib/strtoll.c, lib/strtoul.c,
81438         lib/strtoull.c, lib/strverscmp.c, lib/strverscmp.h, lib/sysexit_.h,
81439         lib/tempname.c, lib/time_r.c, lib/time_r.h, lib/timegm.c, lib/timegm.h,
81440         lib/timespec.h, lib/trigl.c, lib/trigl.h, lib/ucs4-utf16.h,
81441         lib/ucs4-utf8.h, lib/unicodeio.c, lib/unicodeio.h, lib/unistd-safer.h,
81442         lib/unlocked-io.h, lib/unsetenv.c, lib/userspec.c, lib/utf16-ucs4.h,
81443         lib/utf8-ucs4.h, lib/utime.c, lib/utimecmp.c, lib/utimecmp.h,
81444         lib/utimens.c, lib/vasnprintf.c, lib/vasnprintf.h, lib/vasprintf.c,
81445         lib/vasprintf.h, lib/version-etc-fsf.c, lib/version-etc.c,
81446         lib/version-etc.h, lib/vsnprintf.c, lib/vsnprintf.h, lib/w32spawn.h,
81447         lib/wait-process.c, lib/wait-process.h, lib/xalloc-die.c, lib/xalloc.h,
81448         lib/xallocsa.c, lib/xallocsa.h, lib/xasprintf.c, lib/xgetcwd.c,
81449         lib/xgetcwd.h, lib/xgetdomainname.c, lib/xgetdomainname.h,
81450         lib/xgethostname.c, lib/xmalloc.c, lib/xmemcoll.c, lib/xnanosleep.c,
81451         lib/xreadlink.c, lib/xreadlink.h, lib/xsetenv.c, lib/xsetenv.h,
81452         lib/xsize.h, lib/xstrndup.c, lib/xstrndup.h, lib/xstrtod.c,
81453         lib/xstrtod.h, lib/xstrtoimax.c, lib/xstrtol.c, lib/xstrtol.h,
81454         lib/xstrtoumax.c, lib/xtime.h, lib/xvasprintf.c, lib/xvasprintf.h,
81455         lib/yesno.c, lib/yesno.h:
81456         Update FSF postal mail address.
81457
81458 2005-05-13  Paul Eggert  <eggert@cs.ucla.edu>
81459
81460         * MODULES.html.sh, README, gnulib-tool, tests/test-base64.c,
81461         tests/test-memmem.c, tests/test-stpncpy.c:
81462         Update FSF postal mail address.
81463
81464 2005-05-13  Bruno Haible  <bruno@clisp.org>
81465
81466         * lib/stdint_.h (int64_t, uint64_t, int_least64_t, uint_least64_t,
81467         int_fast64_t, uint_fast64_t, intmax_t, uintmax_t, INT64_MIN, INT64_MAX,
81468         UINT64_MAX, INT_LEAST64_MIN, INT_LEAST64_MAX, UINT_LEAST64_MAX,
81469         INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX, INTMAX_MIN,
81470         INTMAX_MAX, UINTMAX_MAX, INT64_C, UINT64_C, INTMAX_C, UINTMAX_C):
81471         Add support for 64-bit integers in the MSVC compiler.
81472
81473 2005-05-12  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
81474
81475         * modules/getdate (Makefile.am): Add getdate.c to EXTRA_DIST
81476
81477 2005-05-12  Eric Blake  <ebb9@byu.net>  (tiny change)
81478
81479         * gnulib-tool (func_import): Sort and uniquify recommended includes.
81480
81481 2005-05-11  Paul Eggert  <eggert@cs.ucla.edu>
81482
81483         * doc/getdate.texi (General date syntax): Don't say that date
81484         date --iso-8601=ns generates acceptable dates; it doesn't yet.
81485         Problem reported by Nic Ferrier.
81486
81487 2005-05-10  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
81488
81489         * lib/getaddrinfo.c: Don't fail when SOCK_STREAM or SOCK_DGRAM are
81490         specified in ai_socktype. Fix invalid ai_protocol
81491         check. ai_protocol is usually set to 0 or depending on
81492         ai_family/ai_socktype to IPPROTO_TCP / IPPROTO_UDP.  Checking for
81493         SOCK_STREAM / SOCK_DGRAM in ai_protocol was invalid.  Set
81494         ai_socktype / ai_protocol in the returned addrinfo structure.
81495
81496 2005-05-10  Simon Josefsson  <jas@extundo.com>
81497
81498         * m4/getaddrinfo.m4: Look in libnsl/libsocket for getaddrinfo, from
81499         Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
81500
81501 2005-05-10  Karl Berry  <karl@gnu.org>
81502
81503         * doc/fdl.texi, gpl.texi, lgpl.texi, COPYING: update FSF address
81504         (from http://www.gnu.org/licenses).
81505         * doc/COPYING.LIB: also rename to COPYING.LESSER.
81506         * doc/COPYING.DOC: remove; per rms, only needed in doc files, so
81507         fdl.texi suffices.
81508
81509 2005-05-10  Karl Berry  <karl@gnu.org>
81510
81511         * config/srclist.txt (COPYING.LESSER): rename from COPYING.LIB.
81512         (COPYING.DOC): remove.
81513
81514         * config/srclist-update: new FSF address.
81515
81516 2005-05-10  Derek Price  <derek@ximbiot.com>
81517
81518         * m4/getopt.m4 (gl_GETOPT): Check for Solaris 10 bug, not decl, when
81519         possible.
81520
81521 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
81522             Bruno Haible  <bruno@clisp.org>
81523
81524         * modules/inet_ntop: New file.
81525         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
81526         inet_ntop.
81527
81528 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
81529             Bruno Haible  <bruno@clisp.org>
81530
81531         * m4/inet_ntop.m4: New file.
81532
81533 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
81534             Bruno Haible  <bruno@clisp.org>
81535
81536         * lib/inet_ntop.h: New file.
81537         * lib/inet_ntop.c: New file, from glibc with modifications.
81538
81539 2005-05-09  Paul Eggert  <eggert@cs.ucla.edu>
81540
81541         * modules/time_r (License): Change to LGPL.
81542         * modules/extensions (License): Change to LGPL.  Actually,
81543         the license is more permissive than that, but currently gnulib-tool
81544         doesn't know how to handle more-permissive licenses.
81545
81546         * modules/stat-macros (Depends-on): Don't depend on stat-macros (!).
81547         Problem reported by Dave Love.
81548
81549 2005-05-08  Jim Meyering  <jim@meyering.net>
81550
81551         * lib/classpath.c (PATH_SEPARATOR): Remove insignificant trailing
81552         blank.
81553
81554 2005-05-06  Paul Eggert  <eggert@cs.ucla.edu>
81555
81556         * modules/argmatch (Depends-on): Add stdbool.
81557         * modules/backupfile (Depends-on): Likewise.
81558         * modules/chdir-long (Depends-on): Likewise.
81559         * modules/closeout (Depends-on): Likewise.
81560         * modules/cycle-check (Depends-on): Likewise.
81561         * modules/dirname (Depends-on): Likewise.
81562         * modules/fnmatch (Depends-on): Likewise.
81563         * modules/fsusage (Depends-on): Likewise.
81564         * modules/fwriteerror (Depends-on): Likewise.
81565         * modules/getcwd (Depends-on): Likewise.
81566         * modules/getloadavg (Depends-on): Likewise.
81567         * modules/hard-locale (Depends-on): Likewise.
81568         * modules/makepath (Depends-on): Likewise.
81569         * modules/mountlist (Depends-on): Likewise.
81570         * modules/nanosleep (Depends-on): Likewise.
81571         * modules/posixtm (Depends-on): Likewise.
81572         * modules/quotearg (Depends-on): Likewise.
81573         * modules/readtokens (Depends-on): Likewise.
81574         * modules/readtokens0 (Depends-on): Likewise.
81575         * modules/readutmp (Depends-on): Likewise.
81576         * modules/save-cwd (Depends-on): Likewise.
81577         * modules/strftime (Depends-on): Likewise.
81578         * modules/userspec (Depends-on): Likewise.
81579         * modules/utimecmp (Depends-on): Likewise.
81580         * modules/xgetcwd (Depends-on): Likewise.
81581         * modules/xnanosleep (Depends-on): Likewise.
81582         * modules/xstrtod (Depends-on): Likewise.
81583         * modules/yesno (Depends-on): Likewise.
81584
81585 2005-05-05  Paul Eggert  <eggert@cs.ucla.edu>
81586
81587         * m4/getopt.m4 (gl_GETOPT): Check for Solaris 10 getopt, and avoid
81588         needless checks.
81589
81590 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
81591
81592         Merge from coreutils.  Among other things,
81593         add bulletproofing for cases where stdin, stdout, or stderr are closed.
81594         * lib/fd-safer.c: New file.
81595         * lib/fcntl-safer.h, open-safer.c: Remove.
81596         * lib/chdir-long.c: Fix comment "fetish" -> "coreutils".
81597         * lib/dup-safer.c: Include unistd-safer.h first.
81598         Don't include errno.h.
81599         (dup_safer) [!defined F_DUPFD]: Let fd_safer do the real work.
81600         * lib/file-type.h: Don't assume invoker included sys/stat.h first.
81601         * lib/file-type.c: Rely on file-type.h change.
81602         * lib/getloadavg.c: Include unistd-safer.h.
81603         (getloadavg): Use safer open.
81604         * lib/getusershell.c: Include "stdio-safer.h".
81605         (getusershell): Use safer fopen.
81606         * lib/long-options.c (long_options): Use NULL rather than 0.
81607         * lib/modechange.h (mode_free): Remove; all callers changed to invoke
81608         'free'.
81609         * lib/modechange.c: Likewise.
81610         xstrtol.h, stdbool.h, stddef.h: Don't include; no longer needed.
81611         (MODE_DONE): New constant.
81612         (struct mode_change): Remove 'next' member.
81613         (make_node_op_equals): New function; like the old one of the
81614         same name, except it allocates an array.
81615         (mode_compile, mode_create_from_ref): Use it.
81616         (mode_compile): Allocate result as an array, not a linked list.
81617         Parse octal string ourself, so that we catch mistakes like "+0".
81618         (mode_adjust): Arg is an array, not a linked list.
81619         * lib/modechange.c: Include stat-macros.h, xalloc.h.
81620         (S_ISDIR, S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IWUSR, S_IXUSR):
81621         (S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH, S_IRXWU):
81622         (S_IRWXG, S_IRWXO, CHMOD_MODE_BITS):
81623         Remove.  This is now stat-macros.h's job.
81624         (talloc): Remove.  All callers replaced by xalloc, so that
81625         our invokers don't have to worry about reporting memory failures.
81626         (make_node_op_equals): Remove.
81627         (MODE_ORDINARY_CHAGE, MODE_X_IF_ANY_X, MODE_COPY_EXISTING):
81628         New constants.
81629         (struct mode_change): Moved here from modechange.h.
81630         (mode_append_entry): Remove.
81631         (mode_compile): Remove MASKED_OPS arg, since it encouraged
81632         apps to have incorrect behavior.  Use simpler algorithm for head
81633         and tail.  Don't futz with umask; that's now the job of mode_adjust.
81634         Detect more invalid usages rather than having somewhat-random behavior.
81635         Don't insert an "a=" action, as that leads to incorrect behavior.
81636         (mode_compile, mode_create_from_ref): Return NULL on error instead
81637         of an enum, since now there's only one way to have an error.  All
81638         callers changed.
81639         (mode_adjust): Accept new arg UMASK_VALUE, and interpret it
81640         at the correct time.  Simplify calculation of "+u" and its ilk.
81641         Don't mishandle "+X".
81642         (mode_free): Remove "register" and localize decls.
81643         * lib/modechange.h (MODE_X_IF_ANY_X, MODE_COPY_EXISTING):
81644         (struct mode_change): Move to modechange.c; callers don't
81645         need to see this stuff.
81646         (MODE_MASK_EQUALS, MODE_MASK_PLUS, MODE_MASK_MINUS, MODE_MASK_ALL):
81647         (MODE_INVALID, MODE_MEMORY_EXHAUSTED, MODE_BAD_REFERENCE): Remove.
81648         (mode_change, mode_adjust): Reflect the new signatures noted above.
81649         * lib/nanosleep.c (rpl_nanosleep): Include "timespec.h" before macros
81650         that might redefine system include files.
81651         (siginterrupt) [!HAVE_SIGINTERRUPT]: New macro.
81652         (my_usleep): Use NULL rather than (void *) 0.
81653         (rpl_nanosleep) [!defined SA_NOCLDSTOP]:
81654         Use siginterrupt to specify that system calls should be interrupted.
81655         (rpl_nanosleep): Move initialization of suspended closer to call of
81656         my_usleep.
81657         * lib/readutmp.h (read_utmp): New arg OPTIONS.  All uses changed.
81658         * lib/readutmp.c: Likewise.  Include signal.h, stdbool.h.
81659         (desirable_utmp_entry): New function.
81660         (read_utmp) [defined UTMP_NAME_FUNCTION]: Redo memory allocation
81661         using x2nrealloc, to simplify logic.
81662         (read_utmp) [!defined UTMP_NAME_FUNCTION]: Check for overflow in
81663         size calculation.  Do not assume utmp file is a regular file.
81664         * lib/readutmp.h (UT_PID): Moved here from ../src/who.c.
81665         (READ_UTMP_CHECK_PIDS): New constant.
81666         * lib/save-cwd.c: Include unistd-safer.h.
81667         (save_cwd): Use fd_safer.
81668         * lib/tempname.c (S_ISDIR, S_IRUSR, S_IRUSR, S_IWUSR, S_IXUSR): Remove.
81669         [!_LIBC] Include "stat-macros.h" instead.
81670         * lib/unistd-safer.h (fd_safer): New decl.
81671
81672 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
81673
81674         * modules/getloadavg (Depends-on): Add unistd-safer.
81675         * modules/getusershell (Depends-on): Add stdio-safer.
81676         * modules/lstat (Depends-on): Remove xalloc.
81677         * modules/mkstemp (Depends-on): Add stat-macros.
81678         * modules/modechange (Depends-on): Remove xstrtol.
81679         Add stat-macros, xalloc.
81680         * modules/save-cwd (Depends-on): Add unistd-safer.
81681         * modules/stdio-safer (Makefile.am): Remove lib_SOURCES.
81682         * modules/unistd-safer (Files): Add lib/fd-safer.c
81683         (Makefile.am): Remove lib_SOURCES.
81684
81685         * MODULES.html.sh (Enhancements for POSIX:2001 functions):
81686         Remove fcntl-safer; unistd-safer supersedes it.
81687
81688 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
81689
81690         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Don't require
81691         AC_HEADER_STAT.
81692         * m4/lchown.m4 (gl_FUNC_CHOWN): Likewise.
81693         (gl_PREREQ_CHOWN): Remove.
81694         * m4/lstat.m4 (gl_FUNC_LSTAT): Require AC_FUNC_LSTAT instead of calling
81695         it.  Don't require AC_HEADER_STAT.
81696         (gl_PREREQ_LSTAT): Remove.
81697         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Check stdint.h only once.
81698         Don't require AC_HEADER_STAT.
81699         * m4/rmdir.m4 (gl_FUNC_RMDIR): Don't require AC_HEADER_STAT.
81700         (gl_PREREQ_RMDIR): Remove.
81701         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Don't
81702         mention stat-macros.h or AC_HEADER_STAT, since we'll make
81703         the stat-macros module a prerequisite.
81704         * m4/file-type.m4 (gl_FILE_TYPE): Likewise.
81705         * m4/filemode.m4 (gl_FILEMODE): Likewise.
81706         * m4/makepath.m4 (gl_MAKEPATH): Likewise.
81707         * m4/modechange.m4 (gl_MODECHANGE): Likewise.
81708         * m4/clock_time.m4 (gl_CLOCK_TIME): Use gl_ rather than fetish_ for
81709         variable names.
81710         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Renamed from
81711         fetish_FUNC_RMDIR_NOTEMPTY.  All uses changed.  Use gl_ for
81712         variable prefixes.
81713         * m4/fcntl-safer.m4: Remove.
81714         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Use AC_LIBSOURCES and AC_LIBOBJ.
81715         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Likewise.
81716         Invoke gl_PREREQ_FD_SAFER.
81717         (gl_PREREQ_FD_SAFER): New macro.
81718         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Check for siginterrupt.
81719         * m4/readutmp.m4 (gl_READUTMP): Require AC_C_INLINE.
81720         Use AC_CHECK_HEADERS_ONCE and AC_CHECK_FUNCS_ONCE when possible.
81721         Remove duplicate call to AC_LIBOBJ(readutmp).
81722         (gl_PREREQ_READUTMP): Remove.  All uses inlined.
81723
81724         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Check for message, not for
81725         MAP_ANON.  Problem reported by Moriyoshi Koizumi to bug-cvs.
81726
81727 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
81728
81729         * MODULES.html.sh (Misc): Add byteswap.
81730
81731 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
81732
81733         * modules/getcwd (Depends-on): Add extensions.
81734         * modules/openat (Depends-on): Likewise.
81735
81736 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
81737
81738         * modules/byteswap: New file.
81739
81740 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
81741
81742         * m4/byteswap.m4: New file.
81743
81744 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
81745
81746         * lib/byteswap_.h: New file.
81747
81748 2005-04-25  Karl Berry  <karl@gnu.org>
81749
81750         * m4/gettext.m4: Update from GNU gettext 0.14.4.
81751
81752 2005-04-25  Albert Chin  <china@thewrittenword.com>
81753
81754         * lib/regex.c: Include <stdio.h>, as a workaround to a Compaq Desktop
81755         Toolkit C bug.
81756
81757 2005-04-21  Oskar Liljeblad  <oskar@osk.mine.nu>
81758
81759         * gnulib-tool (Options): Add -s for --symlink/--symbolic.
81760         (func_ln_if_changed): Remove forcibly for no error message
81761         in case file does not exist.
81762
81763 2005-04-19  Simon Josefsson  <jas@extundo.com>
81764
81765         * gnulib-tool (Options): Make --symlink mean --symbolic.
81766
81767 2005-04-18  Oskar Liljeblad  <oskar@osk.mine.nu>
81768
81769         * doc/gnulib.texi (Initial import): Fix.  Mention --aux-dir.
81770
81771 2005-04-16  Simon Josefsson  <jas@extundo.com>
81772
81773         * modules/getpass-gnu (Makefile.am): Don't mention getpass.h.
81774
81775 2005-04-15  Simon Josefsson  <jas@extundo.com>
81776
81777         * m4/getpass.m4 (gl_FUNC_GETPASS): Use AC_LIBSOURCES.
81778
81779 2005-04-15  Simon Josefsson  <jas@extundo.com>
81780
81781         * gnulib-tool: Rename --symlink to --symbolic.
81782
81783 2005-04-15  Oskar Liljeblad  <oskar@osk.mine.nu>
81784
81785         * gnulib-tool: Add -s, --symlink option to gnulib-tool to make
81786         symbolic links to files instead of copying/moving.  Add --aux-dir,
81787         specifying directory relative --dir where auxiliary build tools
81788         are placed.
81789
81790 2005-04-14  Bruno Haible  <bruno@clisp.org>
81791
81792         * modules/allocsa (License): Change to LGPL.
81793         Requested by Yoann Vandoorselaere <yoann@prelude-ids.org>.
81794
81795 2005-04-13  Paul Eggert  <eggert@cs.ucla.edu>
81796
81797         * lib/getdate.y (zone): Allow relunit_snumber after tZONE, so
81798         that "UTC +1 second" continues to work.  Problem reported
81799         by Dmitry V. Levin.
81800         (relunit_snumber): New rule.
81801         (relunit): Use it.
81802
81803 2005-04-12  Paul Eggert  <eggert@cs.ucla.edu>
81804
81805         * lib/getdate.y (universal_time_zone_table): New constant.
81806         (time_zone_table): Remove GMT, UT, UTC entries; they're now in
81807         universal_time_zone_table.
81808         (lookup_zone): Prefer universal_time_zone_table to
81809         local_time_zone_table, so that "GMT" time stamps are allowed in
81810         London during the summer.  Problem reported by Ian Abbott.
81811
81812 2005-04-12  Jim Meyering  <jim@meyering.net>
81813
81814         * lib/human.c (humblock): Set *options even when returning due to
81815         xstrtoumax conversion failure.  Thanks to a used-uninitialized
81816         warning from gcc-4.
81817
81818 2005-04-09  Jim Meyering  <jim@meyering.net>
81819
81820         * lib/posixtm.c (posixtime) [lint]: Avoid spurious warning from gcc-4's
81821         -Wuninitialized: initialize tm0.tm_year.
81822
81823 2005-04-04  Paul Eggert  <eggert@cs.ucla.edu>
81824
81825         * lib/getdate.y (parser_control): rels_seen is now a boolean, not a
81826         count, since there's no maximum.  All uses changed.
81827         Add member dsts_seen.
81828         (local_zone): Accumulate dsts_seen rather than relying on tm_isdst
81829         not being INT_MAX.
81830         (get_date): Initialize dsts_seen, and check that it doesn't go over 1.
81831         Use pc_rels_seen to decide whther a date is absolute.
81832
81833         * lib/getdate.y (number): Don't overwrite year.
81834         (get_date): Initialize pc.year.digits to 0, not 4, to enable above
81835         check.
81836
81837 2005-04-02  Simon Josefsson  <jas@extundo.com>
81838
81839         * lib/getaddrinfo.h: Fix OpenBSD compilation failure, inspired by tiny
81840         patch from Yoann Vandoorselaere <yoann@prelude-ids.org>.
81841
81842 2005-03-28  Eric Blake  <ebb9@byu.net>  (tiny change)
81843
81844         * m4/getcwd-path-max.m4: Return success on systems such as Cygwin
81845         where no absolute path name can be longer than PATH_MAX.
81846
81847 2005-03-27  Jim Meyering  <jim@meyering.net>
81848
81849         * lib/argmatch.c: Clarify comment: null-terminated -> NULL-terminated.
81850
81851 2005-03-26  Paul Eggert  <eggert@cs.ucla.edu>
81852
81853         * lib/intprops.h (INT_STRLEN_BOUND, INT_BUFSIZE_BOUND):
81854         "one's complement" -> "ones' complement" in comment, as per Knuth.
81855         "value of type" -> "type or expression" in comment.
81856         * lib/mktime.c, strftime.c: Propagate intprops.h comment nits.
81857
81858 2005-03-26  Jim Meyering  <jim@meyering.net>
81859
81860         Comment nits.
81861         * lib/intprops.h: Add the apostrophe in `(one|two)'s complement'.
81862         Correct typos: s/or/of/.
81863
81864 2005-03-26  Jim Meyering  <jim@meyering.net>
81865
81866         * modules/check-include-files: Move to ../ and rename to...
81867         * check-module: ...this.
81868
81869 2005-03-25  Jim Meyering  <jim@meyering.net>
81870
81871         * modules/xvasprintf (Files): Add xalloc.h.
81872
81873 2005-03-23  Paul Eggert  <eggert@cs.ucla.edu>
81874
81875         * modules/gettext (Files): config/config.rpath ->
81876         build-aux/config.rpath
81877         * modules/iconv (Files): Likewise.
81878         Problem reported by Oskar Liljeblad.
81879
81880 2005-03-23  Jim Meyering  <jim@meyering.net>
81881
81882         * modules/check-include-files: New script to check for
81883         missing dependencies, multiple includes, etc.
81884
81885         * modules/c-strtold (Depends-on): Add xalloc.
81886         * modules/c-strtod (Depends-on): Add xalloc.
81887         * modules/hash (Depends-on): Add xalloc.
81888         (Files): Remove lib/xalloc.h.
81889
81890         * modules/gethrxtime (Files): Add lib/gethrxtime.h.
81891         * modules/userspec (Files): Add lib/inttostr.h.
81892
81893 2005-03-23  Jim Meyering  <jim@meyering.net>
81894
81895         * lib/canonicalize.c: Remove duplicate `#include "stat-macros.h"'.
81896
81897 2005-03-22  Jim Meyering  <jim@meyering.net>
81898
81899         * modules/stat-macros: New module.
81900         * modules/canonicalize, modules/euidaccess, modules/file-type,
81901         * modules/filemode, modules/lchown, modules/makepath,
81902         * modules/rmdir, modules/stat: Depend on new stat-macros module
81903         rather than listing lib/stat-macros.h manually.
81904         Don't add stat-macros.h to lib_SOURCES or list it in Files: section.
81905
81906 2005-03-22  Jim Meyering  <jim@meyering.net>
81907
81908         * m4/stat-macros.m4 (gl_STAT_MACROS): New file/macro.
81909
81910 2005-03-22  Bruno Haible  <bruno@clisp.org>
81911
81912         * config/srclist.txt: Replace target directory 'config' with
81913         'build-aux'.
81914         * config/config.guess, config.sub, config.rpath, depcomp, install-sh:
81915         * config/mdate-sh, missing, mkinstalldirs, texinfo.tex: Move to
81916         ../build-aux/.
81917
81918 2005-03-21  Paul Eggert  <eggert@cs.ucla.edu>
81919
81920         * modules/chdir-long (Depends-on): Add mempcpy.
81921
81922         * modules/acl, modules/backupfile, modules/c-strtod,
81923         modules/c-strtold, modules/canon-host, modules/canonicalize,
81924         modules/cloexec, modules/closeout, modules/dirfd, modules/dirname,
81925         modules/exclude, modules/exitfail, modules/file-type,
81926         modules/filemode, modules/fpending, modules/fsusage, modules/getcwd,
81927         modules/getdate, modules/getline, modules/getpagesize,
81928         modules/getpass, modules/getugroups, modules/group-member,
81929         modules/hard-locale, modules/hash, modules/human, modules/idcache,
81930         modules/inttostr, modules/long-options, modules/makepath,
81931         modules/md5, modules/memcasecmp, modules/memcoll,
81932         modules/modechange, modules/mountlist, modules/path-concat,
81933         modules/pathmax, modules/physmem, modules/posixtm, modules/posixver,
81934         modules/quote, modules/quotearg, modules/readtokens, modules/readutmp,
81935         modules/safe-read, modules/safe-write, modules/same, modules/savedir,
81936         modules/settime, modules/sha1, modules/sig2str, modules/strdup,
81937         modules/strftime, modules/strndup, modules/strverscmp,
81938         modules/timespec, modules/unlocked-io, modules/userspec,
81939         modules/utimecmp, modules/utimens, modules/xalloc, modules/xstrtol,
81940         modules/yesno:
81941         Remove lib_SOURCES line from Makefile.am section, as this is now
81942         done automatically by the corresponding Autoconf macro.
81943
81944 2005-03-21  Jim Meyering  <jim@meyering.net>
81945
81946         Changes imported from coreutils.
81947
81948         * lib/cycle-check.c: Don't include xalloc.h.
81949
81950         * lib/path-concat.c: Don't include assert.h.
81951         (path_concat): Remove assertion that would have triggered
81952         for ABASE starting with more than one slash.
81953         Reported by Andreas Schwab.
81954
81955         * lib/path-concat.c (path_concat): Set *BASE_IN_RESULT
81956         properly when ABASE is an absolute file name.
81957         Correct the description of this function.
81958         Include <assert.h>.
81959         Add an assertion and a test driver.
81960         This fixes a bug introduced on 2004-07-02.
81961         Andreas Schwab reported the resulting failure of cp --parents:
81962         http://lists.gnu.org/archive/html/bug-coreutils/2005-01/msg00130.html
81963
81964 2005-03-21  Jim Meyering  <jim@meyering.net>
81965
81966         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Invoke gl_FUNC_MEMRCHR.
81967         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Check for memrchr decl.
81968
81969 2005-03-21  Jim Meyering  <jim@meyering.net>
81970         and  Paul Eggert  <eggert@cs.ucla.edu>
81971
81972         * m4/acl.m4, m4/backupfile.m4, m4/c-strtod.m4, m4/canon-host.m4,
81973         m4/canonicalize.m4, m4/cloexec.m4, m4/closeout.m4, m4/dirfd.m4,
81974         m4/dirname.m4, m4/exclude.m4, m4/exitfail.m4, m4/file-type.m4,
81975         m4/filemode.m4, m4/fpending.m4, m4/fsusage.m4, m4/getcwd.m4,
81976         m4/getdate.m4, m4/getline.m4, m4/getpagesize.m4, m4/getpass.m4,
81977         m4/getugroups.m4, m4/group-member.m4, m4/hard-locale.m4, m4/hash.m4,
81978         m4/human.m4, m4/idcache.m4, m4/inttostr.m4, m4/long-options.m4,
81979         m4/makepath.m4, m4/md5.m4, m4/memcasecmp.m4, m4/memcoll.m4,
81980         m4/modechange.m4, m4/mountlist.m4, m4/nanosleep.m4, m4/path-concat.m4,
81981         m4/pathmax.m4, m4/physmem.m4, m4/posixtm.m4, m4/posixver.m4,
81982         m4/quote.m4, m4/quotearg.m4, m4/readtokens.m4, m4/readutmp.m4,
81983         m4/safe-read.m4, m4/safe-write.m4, m4/same.m4, m4/savedir.m4,
81984         m4/settime.m4, m4/sha1.m4, m4/sig2str.m4, m4/strdup.m4, m4/strftime.m4,
81985         m4/strndup.m4, m4/strverscmp.m4, m4/timespec.m4, m4/unlocked-io.m4,
81986         m4/userspec.m4, m4/utimecmp.m4, m4/utimens.m4, m4/xalloc.m4,
81987         m4/xnanosleep.m4, m4/xstrtol.m4, m4/yesno.m4:
81988         Use AC_LIBSOURCES and AC_LIBOBJ to indicate source and object files
81989         for these modules.
81990
81991 2005-03-18  Paul Eggert  <eggert@cs.ucla.edu>
81992
81993         * lib/strftime.c (my_strftime): If the underlying strftime returns 0
81994         (which shouldn't happen), generate nothing instead of returning 0
81995         immediately, so that nstrftime (NULL, ...) doesn't return 0.
81996
81997 2005-03-16  Bruno Haible  <bruno@clisp.org>
81998
81999         * modules/stdint (Makefile.am): Use HAVE_LONG_LONG_64BIT instead of
82000         HAVE_LONGLONG_64BIT.
82001
82002 2005-03-16  Bruno Haible  <bruno@clisp.org>
82003
82004         * m4/stdint.m4 (gl_STDINT_H): Define HAVE_LONG_LONG_64BIT instead of
82005         HAVE_LONGLONG_64BIT.
82006
82007 2005-03-16  Bruno Haible  <bruno@clisp.org>
82008
82009         * lib/stdint_.h: Use HAVE_LONG_LONG_64BIT instead of
82010         HAVE_LONGLONG_64BIT.
82011
82012 2005-03-15  Paul Eggert  <eggert@cs.ucla.edu>
82013
82014         * lib/strftime.c (my_strftime): Prepend space to format so that we can
82015         reliably distinguish strftime failure from empty output on POSIX
82016         hosts.
82017
82018 2005-03-15  Paul Eggert  <eggert@cs.ucla.edu>
82019
82020         * lib/iconvme.c (SIZE_MAX): New macro, if not already defined.
82021         (iconv_string): Don't guess a size-zero buffer, as that might cause
82022         buffer overrun.  Instead, avoid multiplying by MB_LEN_MAX if the
82023         result would be 'too large', where 'too large' is (heuristically)
82024         the square root of SIZE_MAX, divided by MB_LEN_MAX to allay
82025         overflow concerns.  This will prevent some unwanted malloc failures
82026         when the inputs are very large.
82027
82028 2005-03-15  Karl Berry  <karl@gnu.org>
82029
82030         * config/srclist.txt (config.rpath): from gettext.
82031         * config/config.rpath: update.
82032
82033 2005-03-15  Bruno Haible  <bruno@clisp.org>
82034
82035         * lib/regex.c (byte_re_match_2_internal): Rename local variable 'not'
82036         to 'negate'.
82037
82038         * lib/regex.c (byte_re_match_2_internal): Reduce scope of same_str_p
82039         variable.
82040
82041         * lib/regex.c (EXTEND_BUFFER, regcomp): Cast the realloc/malloc
82042         results.
82043
82044 2005-03-14  Simon Josefsson  <jas@extundo.com>
82045
82046         * lib/timegm.h: Use proper prototype CPP guards, reported by Dave Love
82047         <fx@gnu.org>.
82048
82049 2005-03-14  Paul Eggert  <eggert@cs.ucla.edu>
82050
82051         * lib/mktime.c (TYPE_TWOS_COMPLEMENT, TYPE_ONES_COMPLEMENT,
82052         TYPE_SIGNED_MAGNITUDE, TYPE_MINIMUM, TYPE_MAXIMUM): Sync from
82053         intprops.h.
82054         * lib/strtol.c: Likewise.
82055
82056 2005-03-14  Jim Meyering  <jim@meyering.net>
82057
82058         * lib/strftime.c (my_strftime) [HAVE_STRFTIME && ! (_NL_CURRENT
82059         && HAVE_STRUCT_ERA_ENTRY)]: Initialize the first byte of ubuf[]
82060         to be nonzero so that we (and caller) can detect the difference
82061         between a valid zero-length expansion and an error return, even
82062         when the underlying strftime fails before writing anything into
82063         that location.
82064
82065 2005-03-14  Bruno Haible  <bruno@clisp.org>
82066
82067         * m4/lib-link.m4, gettext.m4, nls.m4, po.m4:
82068         Update from GNU gettext 0.14.3.
82069
82070 2005-03-10  Jim Meyering  <jim@meyering.net>
82071
82072         * m4/save-cwd.m4 (gl_SAVE_CWD): Check for fchdir.
82073
82074 2005-03-10  Jim Meyering  <jim@meyering.net>
82075
82076         * lib/save-cwd.c [!HAVE_FCHDIR]: Define open, fchdir, and chdir_long
82077         so that this module works on systems without fchdir.
82078
82079 2005-03-09  Paul Eggert  <eggert@cs.ucla.edu>
82080
82081         Factor int-properties macros into a single file, except for
82082         glibc-related files.
82083         * lib/intprops.h: New file.
82084         * lib/getloadavg.c: Include it instead of limits.h.
82085         (INT_STRLEN_BOUND): Remove.
82086         * lib/human.c: Include intprops.h.
82087         (group_number): Use INT_STRLEN_BOUND instead of rolling it ourself.
82088         * lib/human.h (LONGEST_HUMAN_READABLE): Use 146/485 rather than
82089         302/1000.
82090         * lib/inttostr.h: Include intprops.h instead of limits.h.
82091         (INT_STRLEN_BOUND, INT_BUFSIZE_BOUND): Remove.
82092         * lib/mktime.c (TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT): New macros,
82093         for consistency with intprops.h.
82094         (time_t_is_integer, twos_complement_arithmetic): Use them.
82095         * lib/sig2str.h: Include <signal.h>, intprops.h.
82096         (INT_STRLEN_BOUND): Remove.
82097         * lib/strftime.c (TYPE_SIGNED): Remove.
82098         (INT_STRLEN_BOUND): Switch to same implementation as intprops.h.
82099         * lib/strtol.c: Adjust comments to match intprops.h.
82100         * lib/userspec.c: Include intprops.h.
82101         (TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Remove.
82102         * lib/utimecmp.c, xnanosleep.c, xstrtol.c: Likewise.
82103         * lib/utimecmp.c (utimecmp): Use TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT
82104         instead of rolling our own expressions.
82105         * lib/xstrtol.c: Include xstrtol.h first, to test interface.
82106
82107         * lib/strftime.c: Include <stdbool.h>.  Use bool where appropriate,
82108         instead of int.
82109         (my_strftime): Do not mishandle years close to INT_MAX, by doing
82110         the right thing even if adding 1900 would overflow.  Similarly
82111         for tm_mon + 1 and tm_yday + 1.
82112         Make %Y always equivalent to %C%y, and similarly for %G and %g.
82113         (DO_NUMBER, DO_NUMBER_SPACEPAD): Set digits to d, not a conditional.
82114         (DO_SIGNED_NUMBER): New macro.
82115         (my_strftime) [HAVE_TZNAME]: Don't dump core if tp->tm_dst > 1.
82116
82117 2005-03-07  Bruno Haible  <bruno@clisp.org>
82118
82119         * m4/mmap-anon.m4 (MAP_FILE, MAP_FAILED): Remove definitions.
82120
82121 2005-03-07  Bruno Haible  <bruno@clisp.org>
82122
82123         * lib/pagealign_alloc.c (MAP_FILE, MAP_FAILED): Define fallbacks.
82124
82125 2005-03-04  Derek R. Price  <derek@ximbiot.com>
82126
82127         * gnulib-tool (func_cp_if_changed, func_mv_if_changed): New functions.
82128         (func_import): Only replace files via --import when they have actually
82129         changed.
82130
82131 2005-03-03  Derek R. Price  <derek@ximbiot.com>
82132
82133         * m4/mmap-anon.m4: New file.
82134         * m4/pagealign_alloc.m4: New file.
82135
82136 2005-03-03  Derek R. Price  <derek@ximbiot.com>
82137             Bruno Haible  <bruno@clisp.org>
82138
82139         * modules/pagealign_alloc: New file.
82140         * MODULES.html.sh (Memory management functions): Add pagealign_alloc.
82141
82142 2005-03-03  Derek R. Price  <derek@ximbiot.com>
82143             Bruno Haible  <bruno@clisp.org>
82144
82145         * lib/pagealign_alloc.h: New file.
82146         * lib/pagealign_alloc.c: New file.
82147
82148 2005-03-03  Bruno Haible  <bruno@clisp.org>
82149
82150         * m4/inttypes.m4, isc-posix.m4, once-only.m4:
82151         Use an all-permissive copyright notice, recommended by RMS.
82152
82153 2005-03-02  Bruno Haible  <bruno@clisp.org>
82154
82155         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Undo the replacement here. Because
82156         of AIX, the replacement has to be done only after <string.h> is
82157         included, therefore not in config.h. stpncpy.h does the replacement,
82158         and stpncpy.c uses it.
82159
82160 2005-03-02  Bruno Haible  <bruno@clisp.org>
82161
82162         * lib/stpncpy.h (stpncpy): Define as a macro without arguments, so that
82163         stpncpy.c uses it.
82164
82165 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
82166
82167         Remove workaround for bug in Linux kernel 2.6.8 or thereabouts.
82168         The workaround isn't strictly needed for POSIX conformance, and
82169         it's too much of a pain to configure and maintain.  We'll ask
82170         people to fix their kernels instead.
82171         * lib/xnanosleep.c: Don't include gethrxtime.h or xtime.h.
82172         (NANOSLEEP_BUG_WORKAROUND): Remove.
82173         (xnanosleep): Remove the workaround.
82174
82175 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
82176
82177         * modules/gettime (Makefile.am): Remove lib_SOURCES line.
82178         Reported by Derek Price.
82179         (Include): Add "timespec.h".
82180
82181         * modules/xnanosleep (Depends-on): Remove gethrxtime.
82182
82183 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
82184
82185         * m4/xnanosleep.m4 (gl_XNANOSLEEP): Remove configuration attempting
82186         to detect nanosleep bug.
82187
82188 2005-03-01  Bruno Haible  <bruno@clisp.org>
82189
82190         * lib/vasnprintf.c (EOVERFLOW): Define to a fallback if needed.
82191
82192 2005-02-26  Paul Eggert  <eggert@cs.ucla.edu>
82193
82194         * modules/gethrxtime: New file.
82195         * modules/xnanosleep (Files): Add m4/xnanosleep.m4.
82196         (Depends-on): Add gethrxtime.
82197         (configure.ac): Add gl_XNANOSLEEP.
82198         (Makefile.am): Remove lib_SOURCES line.
82199
82200 2005-02-25  Paul Eggert  <eggert@cs.ucla.edu>
82201
82202         * m4/gethrxtime.m4, m4/xnanosleep.m4: New files.
82203         * m4/gettime.m4 (gl_GETTIME): Check for nanotime.
82204
82205 2005-02-25  Paul Eggert  <eggert@cs.ucla.edu>
82206
82207         * lib/gethrxtime.h, lib/gethrxtime.c, lib/xtime.h: New files.
82208         * lib/timespec.h (gettime): Return void, since it always
82209         succeeds now.  All uses changed.
82210         * lib/gettime.c (gettime): Likewise.
82211         [HAVE_NANOTIME]: Prefer nanotime.
82212         Assume gettimeofday succeeds, as POSIX requires.
82213         Assime time () succeeds, since other code already does.
82214         * lib/xnanosleep.c: Include xtime.h and gethrxtime.h, not xalloc.h.
82215         (timespec_subtract): Remove.
82216         (NANOSLEEP_BUG_WORKAROUND): New constant.
82217         (xnanosleep): Use gethrxtime rather than gettime; this simplifies
82218         things considerably.  Use it only on GNU/Linux hosts, since the
82219         workaround shouldn't be needed elsewhere.
82220
82221 2005-02-24  Bruno Haible  <bruno@clisp.org>
82222
82223         * modules/gettext (Files): Add m4/glibc2.m4.
82224
82225 2005-02-24  Bruno Haible  <bruno@clisp.org>
82226
82227         * m4/gettext.m4, intdiv0.m4, intmax.m4, inttypes-pri.m4, lcmessage.m4:
82228         * m4/lib-link.m4, lib-prefix.m4, nls.m4, po.m4, printf-posix.m4:
82229         * m4/progtest.m4:
82230         Update from GNU gettext 0.14.2.
82231         * m4/glibc2.m4: New file, from GNU gettext 0.14.2.
82232
82233 2005-02-24  Bruno Haible  <bruno@clisp.org>
82234
82235         * lib/localcharset.c: Update from GNU gettext 0.14.2.
82236         * lib/config.charset: Update from GNU gettext 0.14.2.
82237
82238 2005-02-24  Bruno Haible  <bruno@clisp.org>
82239
82240         * lib/gettext.h: Update from GNU gettext 0.14.2.
82241
82242 2005-02-23  Simon Josefsson  <jas@extundo.com>
82243
82244         * m4/iconvme.m4: New file.
82245
82246 2005-02-23  Jim Meyering  <jim@meyering.net>
82247
82248         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Revert yesteday's
82249         change.
82250         Thanks to Bruno Haible for catching it.
82251
82252 2005-02-22  Simon Josefsson  <jas@extundo.com>
82253
82254         * modules/iconvme: New file.
82255
82256         * MODULES.html.sh: Add iconvme.
82257
82258 2005-02-22  Simon Josefsson  <jas@extundo.com>
82259
82260         * lib/iconvme.h, lib/iconvme.c: New files, from libc.
82261
82262 2005-02-22  Simon Josefsson  <jas@extundo.com>
82263
82264         * config/srclist.txt: Sync iconvme.h, iconvme.c from libc.
82265
82266 2005-02-22  Jim Meyering  <jim@meyering.net>
82267
82268         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Fix typo:
82269         s/ifndef/ifdef/.
82270
82271 2005-02-20  Neil Conway  <neilc@samurai.com>
82272
82273         * lib/xgethostname.c (xgethostname): Check for ENOMEM, which is
82274         returned by OSX/Darwin if the specified buffer is not large
82275         enough for the hostname.
82276
82277 2005-02-03  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
82278
82279         * lib/argp-help.c (__argp_help): Create a fake struct argp_state and
82280         pass it to _help, otherwise the latter coredumps trying to
82281         dereference state.root_argp.
82282
82283 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
82284
82285         * modules/chdir-long (Depends-on): Add memrchr.
82286         * modules/memrchr (Files): Add lib/memrchr.h.
82287         (Include): "memrchr.h".
82288
82289 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
82290
82291         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Add AC_LIBSOURCES, for memrchr.h.
82292
82293 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
82294
82295         * lib/memrchr.h: New file.
82296         * lib/chdir-long.c: Include it.
82297         * lib/memrchr.c [!defined _LIBC]: Include it rather than <string.h>
82298         Don't bother including stddef.h.
82299
82300 2005-02-01  Paul Eggert  <eggert@cs.ucla.edu>
82301
82302         * lib/mountlist.h (MOUNTLIST_H_): New macro, to protect against double
82303         inclusion.
82304         Include <sys/types.h>, for dev_t.
82305         (ME_DUMMY, ME_REMOTE): Move from here....
82306         * lib/mountlist.c (ME_DUMMY, ME_REMOTE): To here.
82307         (ME_DUMMY): Count "subfs" as a dummy.  Problem reported by
82308         Dmitry V. Levin.
82309         Include mountlist.h first, to test the interface.
82310
82311 2005-01-29  Bruno Haible  <bruno@clisp.org>
82312
82313         * lib/progname.c (program_name): Initialize.
82314         Needed when linking statically on MacOS X.
82315
82316 2005-01-28  Paul Eggert  <eggert@cs.ucla.edu>
82317
82318         Sync from coreutils.
82319         * modules/getloadavg (Files): Remove m4/getloadavg.m4.
82320         (Depends-on): Add c-strtod.
82321         (configure.ac): Replace gl_FUNC_GETLOADAVG with AC_FUNC_GETLOADAVG.
82322
82323 2005-01-28  Paul Eggert  <eggert@cs.ucla.edu>
82324
82325         Sync from coreutils.
82326         * m4/getloadavg.m4, glibc.m4, search-libs.m4: Remove.
82327
82328         Remove files that are specific to coreutils.
82329         * m4/check-decl.m4, jm-macros.m4, lib-check.m4, prereq.m4: Remove.
82330
82331 2005-01-28  Bruno Haible  <bruno@clisp.org>
82332
82333         * modules/javacomp: New file.
82334         * MODULES.html.sh (Java): Add javacomp.
82335
82336 2005-01-28  Bruno Haible  <bruno@clisp.org>
82337
82338         * m4/javacomp.m4: New file, from GNU gettext.
82339
82340 2005-01-28  Bruno Haible  <bruno@clisp.org>
82341
82342         * lib/javacomp.sh.in: New file, from GNU gettext.
82343         * lib/javacomp.h: New file, from GNU gettext.
82344         * lib/javacomp.c: New file, from GNU gettext.
82345
82346 2005-01-26  Simon Josefsson  <jas@extundo.com>
82347
82348         * lib/gai_strerror.c: Use GPL in header.
82349
82350 2005-01-26  Bruno Haible  <bruno@clisp.org>
82351
82352         * modules/javaexec: New file.
82353         * MODULES.html.sh (Java): Add javaexec.
82354
82355 2005-01-26  Bruno Haible  <bruno@clisp.org>
82356
82357         * m4/javaexec.m4: New file, from GNU gettext.
82358
82359 2005-01-26  Bruno Haible  <bruno@clisp.org>
82360
82361         * lib/javaexec.sh.in: New file, from GNU gettext.
82362         * lib/javaexec.h: New file, from GNU gettext.
82363         * lib/javaexec.c: New file, from GNU gettext.
82364
82365 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
82366
82367         * modules/lchown (Depends-on): Remove lchown.h
82368
82369 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
82370
82371         * m4/sysexits.m4 (gl_SYSEXITS): Reverted logic. SYSEXITS_H
82372         must be defined if the header file was not found, in order
82373         to provide a replacement. Reported by Todd Vierling <tv@duh.org>
82374
82375 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
82376
82377         * lib/argp-help.c (hol_entry_help): Avoid using non-constant
82378         initializers for struct pentry_state.
82379         (__argp_error): Check return value of __asprintf
82380         (__argp_failure): Translate error message
82381
82382         * lib/argp-parse.c: Removed braces around the expansion of N_()
82383
82384 2005-01-23  Paul Eggert  <eggert@cs.ucla.edu>
82385
82386         * m4/acl.m4, afs.m4, alloca.m4, argp.m4, assert.m4, atexit.m4,
82387         backupfile.m4, base64.m4, bison.m4, c-bs-a.m4, c-stack.m4,
82388         c-strtod.m4, calloc.m4, canon-host.m4, canonicalize.m4,
82389         clock_time.m4, cloexec.m4, closeout.m4, d-ino.m4, d-type.m4,
82390         dirfd.m4, dirname.m4, dos.m4, dup2.m4, error.m4, euidaccess.m4,
82391         exclude.m4, exitfail.m4, extensions.m4, fcntl-safer.m4,
82392         file-type.m4, fileblocks.m4, filemode.m4, fnmatch.m4, fpending.m4,
82393         free.m4, fstypename.m4, fsusage.m4, ftruncate.m4, getaddrinfo.m4,
82394         getcwd-path-max.m4, getcwd.m4, getdate.m4, getdomainname.m4,
82395         getgroups.m4, gethostname.m4, getline.m4, getndelim2.m4,
82396         getnline.m4, getopt.m4, getpagesize.m4, getpass.m4, getsubopt.m4,
82397         gettime.m4, gettimeofday.m4, getugroups.m4, getusershell.m4,
82398         group-member.m4, hard-locale.m4, hash.m4, host-os.m4, human.m4,
82399         idcache.m4, inttostr.m4, isdir.m4, jm-winsz1.m4, jm-winsz2.m4,
82400         link-follow.m4, long-options.m4, ls-mntd-fs.m4, lstat.m4,
82401         makepath.m4, mathl.m4, md5.m4, memcasecmp.m4, memchr.m4,
82402         memcmp.m4, memcoll.m4, memcpy.m4, memmem.m4, memmove.m4,
82403         memrchr.m4, memset.m4, mkdir-slash.m4, mkstemp.m4, mktime.m4,
82404         modechange.m4, mountlist.m4, nanosleep.m4, obstack.m4,
82405         path-concat.m4, pathmax.m4, perl.m4, physmem.m4, poll.m4,
82406         posixtm.m4, posixver.m4, putenv.m4, quote.m4, quotearg.m4,
82407         readdir.m4, readtokens.m4, readutmp.m4, regex.m4, rename.m4,
82408         restrict.m4, rmdir-errno.m4, rmdir.m4, rpmatch.m4, same.m4,
82409         savedir.m4, settime.m4, sha1.m4, sig2str.m4, snprintf.m4,
82410         sockpfaf.m4, st_dm_mode.m4, st_mtim.m4, stat.m4, stdint.m4,
82411         stdio-safer.m4, strchrnul.m4, strdup.m4, strerror.m4,
82412         strerror_r.m4, strftime.m4, strndup.m4, strnlen.m4, strsep.m4,
82413         strtod.m4, strtoimax.m4, strtok_r.m4, strtol.m4, strtoll.m4,
82414         strtoul.m4, strtoull.m4, strtoumax.m4, strverscmp.m4, sysexits.m4,
82415         time_r.m4, timegm.m4, timespec.m4, tm_gmtoff.m4, tzset.m4,
82416         uint32_t.m4, uintptr_t.m4, unistd-safer.m4, unlink-busy.m4,
82417         unlocked-io.m4, uptime.m4, userspec.m4, utimbuf.m4, utime.m4,
82418         utimecmp.m4, utimens.m4, utimes-null.m4, vsnprintf.m4, xalloc.m4,
82419         xgetcwd.m4, xreadlink.m4, xstrndup.m4, xstrtod.m4, xstrtoimax.m4,
82420         xstrtol.m4, xstrtoumax.m4, yesno.m4:
82421         Use an all-permissive copyright notice, recommended by RMS.
82422
82423 2005-01-21  Paul Eggert  <eggert@cs.ucla.edu>
82424
82425         * modules/chdir-long (Depends-on): Remove mempcpy.
82426
82427 2005-01-21  Jim Meyering  <jim@meyering.net>
82428
82429         * lib/openat.h (AT_SYMLINK_NOFOLLOW): Define to 4096, so it's the
82430         same value as for Solaris 9.
82431
82432         * lib/chdir-long.c (chdir_long): Rewrite to remove limitation on
82433         component length.  This included changing the parameter to be
82434         of type `char *' rather than `char const *'.
82435         * lib/chdir-long.h (chdir_long): Update prototype.
82436
82437         * lib/openat.c (fdopendir, fstatat): New functions.
82438         * lib/openat.h: Include headers required for use of DIR and struct
82439         stat.
82440         [AT_SYMLINK_NOFOLLOW]: Define.
82441         (fdopendir, fstatat): Add prototypes.
82442
82443 2005-01-21  Bruno Haible  <bruno@clisp.org>
82444
82445         * modules/classpath: New file.
82446         * MODULES.html.sh (Java): Add classpath.
82447
82448 2005-01-21  Bruno Haible  <bruno@clisp.org>
82449
82450         * lib/classpath.h: New file, from GNU gettext.
82451         * lib/classpath.c: New file, from GNU gettext.
82452
82453 2005-01-20  Simon Josefsson  <jas@extundo.com>
82454
82455         * modules/version-etc-fsf: New file.
82456
82457 2005-01-20  Simon Josefsson  <jas@extundo.com>
82458
82459         * lib/version-etc-fsf.c: New file, with version_etc_copyright.
82460         * lib/version-etc.c: Remove version_etc_copyright.
82461         * lib/version-etc.h (version_etc_copyright): Use [] instead of * in
82462         prototype, suggested by Paul Eggert <eggert@CS.UCLA.EDU>.
82463
82464 2005-01-20  Simon Josefsson  <jas@extundo.com>
82465
82466         * lib/base64.h (isbase64): Add.
82467
82468         * lib/base64.c (isb64): Rename to isbase64, use to_uchar instead of
82469         using a unsigned prototype, don't inline.
82470         (base64_decode): Use it.
82471
82472 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
82473
82474         * m4/save-cwd.m4 (gl_SAVE_CWD): Remove check for fcntl; we now assume
82475         it.
82476
82477 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
82478
82479         * lib/save-cwd.c (save_cwd): Remove code to support the case
82480         where fchdir is missing or flaky.
82481
82482 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
82483
82484         * MODULES.html.sh (Command-line arguments): Add version-etc-fsf.
82485
82486 2005-01-19  Paul Eggert  <eggert@cs.ucla.edu>
82487
82488         * modules/mempcpy (Makefile.am): Remove mention of mempcpy.h;
82489         AC_LIBSOURCES now does this.
82490         * MODULES.html.sh (Sizes of integer types <limits.h>): New element,
82491         with new ullong_max module.
82492
82493 2005-01-19  Bruno Haible  <bruno@clisp.org>
82494
82495         * modules/sh-quote: New file.
82496         * MODULES.html.sh (Executing programs): Add sh-quote.
82497
82498 2005-01-19  Bruno Haible  <bruno@clisp.org>
82499
82500         * lib/sh-quote.h: New file, from GNU gettext.
82501         * lib/sh-quote.c: New file, from GNU gettext.
82502
82503 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
82504
82505         Merge from coreutils.
82506         * m4/ullong_max.m4: New file.
82507         * m4/jm-macros.m4 (gl_MACROS): Require gl_ULLONG_MAX.
82508         (gl_MACROS): Assume localeconv exists.
82509
82510 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
82511
82512         Merge changes from coreutils, as described below in several
82513         changelogs dated today.
82514
82515         * lib/save-cwd.c: Include "save-cwd.h" before other include files.
82516         (O_DIRECTORY): Remove; not needed here, since "." must be
82517         a directory.  All uses removed.
82518         (save_cwd): Use __sgi || __sun, not sun || __sun.  __sun is
82519         universal on Suns, and we also need to test for IRIX.
82520         Revamp code to use 'if' rather than '#if'.
82521         Avoid unnecessary comparison of cwd->desc to 0.
82522
82523         * lib/utimens.c (futimens): Robustify the previous patch, by checking
82524         for known valid error numbers rather than observed invalid ones.
82525
82526 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
82527
82528         * modules/ullong_max: New file.
82529
82530         * modules/chdir-long, modules/openat: New files.
82531         * modules/save-cwd (Depends-on): Depend on chdir-long.
82532         (Makefile.am): Remove lib_SOURCES; now handled by AC_LIBSOURCES.
82533
82534 2005-01-18  Jim Meyering  <jim@meyering.net>
82535
82536         Merge from coreutils.
82537         * m4/chdir-long.m4, m4/openat.m4: New files.
82538         * m4/save-cwd.m4 (gl_SAVE_CWD): Add AC_LIBSOURCES for save-cwd.c,
82539         save-cwd.h.  Add AC_LIBOBJ for save-cwd.
82540         * m4/chown.m4 (gl_FUNC_CHOWN): When cross-compiling, assume that chown
82541         is sane and DOES follow symlinks.  Besides, testing 20 different
82542         systems found no broken chown implementations.
82543         Prompted by a change in rsync's copy of this macro.
82544         * m4/jm-macros.m4 (gl_MACROS): Require gl_FUNC_CHDIR_LONG.
82545
82546         * m4/lchown.m4 (gl_FUNC_LCHOWN): Use AC_LIBSOURCES.
82547
82548         * m4/utimes.m4: Work around tests/touch/empty-file failure on a system
82549         (sparc64, Linux-2.4.28, glibc-2.3.3) that didn't honor utimes'
82550         NULL-means-set-to-current-time semantics.
82551         Remove temporary file immediately, rather than waiting
82552         for configure's at-exit trap code to do it.
82553
82554 2005-01-18  Jim Meyering  <jim@meyering.net>
82555
82556         * lib/version-etc.c (version_etc_copyright): Update copyright date.
82557
82558         * lib/utimens.c (futimens): Account for the fact that futimes
82559         can also fail with errno == ENOSYS or errno == ENOENT.
82560         Patch from Dmitry V. Levin.
82561
82562         Change the name of the robust chdir function from chdir to chdir_long.
82563         * lib/save-cwd.c: Include chdir-long.h rather than chdir.h.
82564         (restore_cwd): Use chdir_long, not chdir.
82565         * lib/chdir-long.c: Renamed from chdir.c.
82566         * lib/chdir-long.h: Renamed from chdir.h.
82567         [!defined PATH_MAX]: Define chdir_long to chdir on systems like the
82568         Hurd.
82569
82570 2005-01-18  Bruno Haible  <bruno@clisp.org>
82571
82572         * m4/allocsa.m4, m4/codeset.m4, m4/copy-file.m4, m4/eaccess.m4:
82573         * m4/eealloc.m4, m4/eoverflow.m4, m4/execute.m4, m4/fatal-signal.m4:
82574         * m4/findprog.m4, m4/glibc21.m4, m4/iconv.m4, m4/intmax_t.m4:
82575         * m4/inttypes_h.m4, m4/lib-ld.m4, m4/lib-link.m4, m4/lib-prefix.m4:
82576         * m4/linebreak.m4, m4/localcharset.m4, m4/longdouble.m4:
82577         * m4/longlong.m4, m4/mbrtowc.m4, m4/mbstate_t.m4, m4/mbswidth.m4:
82578         * m4/mkdtemp.m4, m4/pipe.m4, m4/readlink.m4, m4/safe-read.m4:
82579         * m4/safe-write.m4, m4/setenv.m4, m4/sig_atomic_t.m4:
82580         * m4/signalblocking.m4, m4/signed.m4, m4/size_max.m4, m4/ssize_t.m4:
82581         * m4/stdbool.m4, m4/stdint_h.m4, m4/stpcpy.m4, m4/stpncpy.m4:
82582         * m4/strcase.m4, m4/strcspn.m4, m4/strpbrk.m4, m4/strstr.m4:
82583         * m4/ucs4-utf.m4, m4/uintmax_t.m4, m4/ulonglong.m4, m4/unicodeio.m4:
82584         * m4/utf-ucs4.m4, m4/vasnprintf.m4, m4/vasprintf.m4:
82585         * m4/wait-process.m4, m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4:
82586         Use an all-permissive copyright notice, recommended by RMS.
82587
82588 2005-01-18  Bob Proulx  <bob@proulx.com>
82589
82590         * lib/obstack.c [DEFAULT_ALIGNMENT]: Use an intermediate type to
82591         simplify offsetof() macro construct to avoid compile failure with
82592         native HP-UX 11.0 ANSI C compiler.
82593
82594 2005-01-17  Bruno Haible  <bruno@clisp.org>
82595
82596         * lib/stpncpy.c: Remove HAVE_STPNCPY and gnu_stpncpy renaming,
82597         redundant because stpncpy.m4 takes care of it.
82598
82599 2005-01-17  Bruno Haible  <bruno@clisp.org>
82600
82601         * lib/progreloc.c: Include xalloc.h instead of xmalloc.h.
82602
82603 2005-01-17  Bruno Haible  <bruno@clisp.org>
82604
82605         * lib/progreloc.c (xstrdup): Define as strdup if no xmalloc should be
82606         used.
82607
82608 2005-01-17  Bruno Haible  <bruno@clisp.org>
82609
82610         * lib/fwriteerror.h (fwriteerror): Change specification to include
82611         fclose.
82612         * lib/fwriteerror.c: Include <stdbool.h>.
82613         (fwriteerror): At the end, close the file stream. Record whether
82614         stdout was already closed.
82615
82616 2005-01-17  Bruno Haible  <bruno@clisp.org>
82617
82618         * lib/execute.c (environ): Declare if needed.
82619         * lib/pipe.c (environ): Likewise.
82620         Reported by Michael Schloh von Bennewitz <michael.schloh@cw.com>.
82621
82622 2005-01-11  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
82623
82624         * modules/argp: Depend on vsnprintf
82625
82626 2005-01-10  Jim Meyering  <jim@meyering.net>
82627
82628         * modules/closeout (Depends-on): Add atexit.
82629
82630 2005-01-06  Bruno Haible  <bruno@clisp.org>
82631
82632         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Rename stpncpy to gnu_stpncpy here.
82633
82634 2005-01-04  Paul Eggert  <eggert@cs.ucla.edu>
82635
82636         * lib/human.c (SIZE_MAX, UINTMAX_MAX): Move these conditional
82637         definitions to be after all include files, to avoid collisions.
82638         Problem reported by Bob Proulx.
82639
82640 2005-01-04  Jim Meyering  <jim@meyering.net>
82641
82642         Changes imported from coreutils.
82643         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Rather than using "conftestXXXXXX"
82644         as the mkstemp template, use a temporary directory and an
82645         8.3-friendly template to avoid trouble on systems like DJGPP.
82646         Reported by Juan M. Guerrero via Stepan Kasal.
82647         * m4/(gl_FUNC_MKSTEMP): Include <unistd.h> for the declaration of
82648         close. Remove the temporary directory right away, rather than waiting
82649         for configure's at-exit trap code to do it.
82650         Suggestion from Stepan Kasal.
82651
82652 2005-01-01  Simon Josefsson  <jas@extundo.com>
82653
82654         * gnulib-tool: Print #include directives when --import'ing.
82655
82656 2004-12-28  Simon Josefsson  <jas@extundo.com>
82657
82658         * tests/test-base64.c: Include required header files.  Remove
82659         unused variables.
82660
82661 2004-12-28  Paul Eggert  <eggert@cs.ucla.edu>
82662
82663         * modules/error (Depends-on): Remove gettext.
82664
82665 2004-12-28  Paul Eggert  <eggert@cs.ucla.edu>
82666
82667         * lib/error.c [!_LIBC && !ENABLE_NLS]: Do not include "gettext.h";
82668         not needed.  This removes a dependency on the gettext module.
82669         [defined _LIBC]: Do not include <libintl.h>; not needed.
82670
82671 2004-12-24  Paul Eggert  <eggert@cs.ucla.edu>
82672
82673         * m4/c-strtod.m4 (gl_C99_STRTOLD): New macro.
82674         (gl_C_STRTOD): Use it instead of AC_CHECK_DECLS_ONCE(strtold).
82675
82676 2004-12-24  Paul Eggert  <eggert@cs.ucla.edu>
82677
82678         * lib/c-strtod.c (STRTOD): Depend on HAVE_C99_STRTOLD, not
82679         HAVE_DECL_STRTOLD.
82680
82681 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
82682
82683         * modules/getdate (Depends-on): Remove alloca-opt.
82684
82685 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
82686
82687         * m4/getdate.m4 (gl_GETDATE): Remove AC_FUNC_ALLOCA.
82688
82689 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
82690
82691         * lib/argp-parse.c: Include <stddef.h>.
82692         (alignof, alignto): New macros.
82693         (parser_init): Don't assume that void * is aligned sufficiently
82694         for struct option.
82695
82696         * lib/getdate.y (YYSTACK_USE_ALLOCA): Define to 0, since there's no
82697         need to extend the stack.
82698         (YYINITDEPTH): New macro, so that the initial stack isn't overly
82699         large.
82700
82701 2004-12-22  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
82702
82703         * lib/argp-parse.c (parser_init): Avoid arithmetics on void pointers.
82704
82705 2004-12-19  Paul Eggert  <eggert@cs.ucla.edu>
82706
82707         * modules/regex (lib_SOURCES): Remove regex.c, undoing previous
82708         (2004-10-24) change.  Apparently this was a false alarm.
82709
82710         * modules/getdate: Depend on alloca-opt, not alloca.
82711
82712 2004-12-19  Paul Eggert  <eggert@cs.ucla.edu>
82713
82714         * lib/alloca_.h: Conditionalize on _GNULIB_ALLOCA_H, not _ALLOCA_H.
82715         Remove now-obsolete comment about AIX.
82716         * lib/getdate.y: Include <alloca.h> only if HAVE_ALLOCA.
82717         (YYSTACK_USE_ALLOCA): Define to 0 if !HAVE_ALLOCA.
82718         (YYMAXDEPTH): New macro.
82719
82720 2004-12-18  Simon Josefsson  <jas@extundo.com>
82721
82722         * modules/alloca: Depend on alloca-opt, instead of duplicating it.
82723
82724 2004-12-18  Bruno Haible  <bruno@clisp.org>
82725
82726         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Also test for sigaction.
82727
82728 2004-12-18  Bruno Haible  <bruno@clisp.org>
82729
82730         * lib/fatal-signal.c (fatal_signals): Make non-const.
82731         (init_fatal_signals): New function.
82732         (uninstall_handlers, install_handlers): Ignore signals that were set to
82733         SIG_IGN.
82734         (at_fatal_signal): Call init_fatal_signals.
82735         (init_fatal_signal_set): Likewise. Ignore signals that were set to
82736         SIG_IGN.
82737         Reported by Paul Eggert.
82738
82739 2004-12-18  Bruno Haible  <bruno@clisp.org>
82740
82741         * doc/alloca.texi: New file.
82742         * doc/alloca-opt.texi: New file.
82743
82744 2004-12-17  Jim Meyering  <jim@meyering.net>
82745
82746         * config/install-sh: Use `(exit N); exit N', not `(exit N); exit'.
82747         Otherwise, install-sh could exit with improper exit status when
82748         exiting via a trapped interrupt.  Thanks to a report from Bob Proulx.
82749
82750 2004-12-16  Simon Josefsson  <jas@extundo.com>
82751
82752         * tests/test-base64.c: Add license.
82753
82754 2004-12-15  Stepan Kasal  <address@hidden>
82755
82756         * gnulib-tool (func_emit_lib_Makefile_am): Shorten a long sed command.
82757
82758 2004-12-12  Paul Eggert  <eggert@cs.ucla.edu>
82759
82760         * modules/getcwd (Files): Add m4/d-ino.m4.
82761         Suggested by Mark D. Baushke.
82762
82763 2004-12-08  Paul Eggert  <eggert@cs.ucla.edu>
82764
82765         * lib/getdate.y (textint): New member "negative".
82766         (time_zone_hhmm): New function.
82767         Expect 14 shift-reduce conflicts, not 13.
82768         (o_colon_minutes): New rule.
82769         (time, zone): Use it to add support for +HH:MM, UTC+HH:MM.
82770         (yylex): Set the "negative" member of signed numbers.
82771
82772 2004-12-08  Paul Eggert  <eggert@cs.ucla.edu>
82773
82774         * doc/getdate.texi (Time of day items, Time zone items):
82775         Describe new formats +00:00, UTC+00:00.
82776
82777 2004-12-07  Paul Eggert  <eggert@cs.ucla.edu>
82778
82779         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Fix typo in previous change:
82780         spurious "-l"s.  Problem reported by Stepan Kasal.
82781
82782 2004-12-06  Paul Eggert  <eggert@cs.ucla.edu>
82783
82784         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): New macro, to work around bug
82785         in Autoconf 2.59.  Problem reported by Mark D. Baushke.
82786
82787 2004-12-04  Simon Josefsson  <jas@extundo.com>
82788
82789         * modules/getaddrinfo (License): Add LGPL, reported by Yoann
82790         Vandoorselaere <yoann@prelude-ids.org>.
82791
82792 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
82793
82794         Changes imported from coreutils.
82795         * m4/hard-locale.m4 (gl_HARD_LOCALE): Assume locale.h and setlocale
82796         exist.
82797         * m4/human.m4 (gl_HUMAN): Assume locale.h and localeconv exist.
82798
82799 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
82800
82801         Changes imported from coreutils.
82802         * lib/hard-locale.c: Assume <locale.h> exists.
82803         Include "strdup.h".
82804         (GLIBC_VERSION): New macro.
82805         (hard_locale): Assume setlocale exists.
82806         Rewrite to avoid #ifdef.
82807         Use strdup rather than malloc + strcpy.
82808         * lib/human.c: Assume <locale.h> exists.
82809         (human_readable): Assume localeconv exists.
82810
82811 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
82812
82813         * modules/hard-locale (Depends-on): Add strdup.
82814
82815 2004-12-01  Jakub Jelinek  <jakub@redhat.com>
82816
82817         * lib/mktime.c (__mktime_internal): If SEC_REQUESTED != SEC,
82818         convert T2, not T.  (Imported from libc.)
82819
82820 2004-11-30  Simon Josefsson  <jas@extundo.com>
82821
82822         * modules/restrict (License): Change to LGPL.
82823
82824 2004-11-30  Simon Josefsson  <jas@extundo.com>
82825
82826         * m4/restrict.m4: Add copyright and copying conditions.
82827
82828 2004-11-30  Simon Josefsson  <jas@extundo.com>
82829
82830         * m4/base64.m4: New file.
82831
82832 2004-11-30  Simon Josefsson  <jas@extundo.com>
82833
82834         * MODULES.html.sh (Extra functions based on ANSI C 89): Add
82835         base64.
82836
82837         * tests/test-base64.c: New file.
82838
82839         * modules/base64: New file.
82840
82841 2004-11-30  Paul Eggert  <eggert@cs.ucla.edu>
82842
82843         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX):
82844         Define HAVE_PARTLY_WORKING_GETCWD if getcwd is partly working.
82845
82846         * m4/readutmp.m4 (gl_READUTMP): Don't check for sys/param.h.
82847
82848 2004-11-30  Paul Eggert  <eggert@cs.ucla.edu>
82849
82850         * lib/getcwd.c (is_ENAMETOOLONG): New macro.
82851         (__getcwd.c): Don't restore errno; glibc doesn't.
82852         [HAVE_PARTLY_WORKING_GETCWD && !defined AT_FDCWD]: Try system getcwd
82853         first, falling back to our code only if its results look suspicious.
82854         Ensure that the resulting buffer is only as large as necessary.
82855
82856         * lib/readutmp.c: Include readutmp.h first.
82857         Include <errno.h>, since readutmp.h no longer does that.
82858         * lib/readutmp.h: Don't include <errno.h>,
82859         <sys/param.h>, <time.h>; not needed to establish interface.
82860         (errno): Remove decl.
82861         (HAVE_STRUCT_XTMP_UT_TYPE): Remove; no longer needed.
82862         (UT_TYPE_EQ, UT_TYPE_NOT_DEFINED, UT_TYPE_BOOT_TIME,
82863         UT_TYPE_USER_PROCESS, IS_USER_PROCESS): New macros.
82864
82865 2004-11-28  Simon Josefsson  <jas@extundo.com>
82866
82867         * lib/base64.h, base64.c: New file.
82868
82869 2004-11-27  Paul Eggert  <eggert@cs.ucla.edu>
82870
82871         * lib/getcwd.h: New file, which I forgot to check in on 2004-11-25.
82872
82873 2004-11-26  Paul Eggert  <eggert@cs.ucla.edu>
82874
82875         * modules/getcwd (Files): Add lib/getcwd.h, m4/getcwd.m4.
82876         (Depends-on): Remove pathmax, same.  Add mempcpy.
82877         (configure.ac): GL_FUNC_GETCWD_PATH_MAX -> gl_FUNC_GETCWD.
82878         (Makefile.am): Append getcwd.h to lib_SOURCES.
82879         (Include): Add getcwd.h.
82880         (Maintainer): Change from Jim Meyering to "all, glibc",
82881         since getdate now uses intended-for-glibc code.
82882         * modules/xgetcwd (Files): Remove m4/getcwd.m4.
82883         (Depends-on): Depend on getcwd.  Do not depend on pathmax.
82884
82885 2004-11-25  Paul Eggert  <eggert@cs.ucla.edu>
82886
82887         Fix problems reported by Scott S. Tinsley for HP-UX 11.11 using
82888         HP's ANSI C compiler.
82889         * lib/fsusage.c (statvfs) [HAVE_SYS_STATVFS_H]: Remove decl.
82890         Declaring int functions causes warnings on some modern systems and
82891         shouldn't be needed to compile on ancient ones.
82892         * lib/same.c (MIN) [defined MIN]: Don't define, since it's already
82893         defined.
82894
82895         * lib/getcwd.c: Replace by a copy of glibc/sysdeps/posix/getcwd.c, but
82896         with the following changes.
82897         (__set_errno): Parenthesize properly.
82898         Include <stdbool.h>.
82899         (MIN, MAX, MATCHING_INO): New macros.
82900         (__getcwd): Define with prototype, not K&R form.
82901         Use heuristics to allocate default buffer on stack if possible.
82902         If AT_FDCWD is defined, use openat and fstatat to avoid O(N**2)
82903         behavior, and to avoid the PATH_MAX limit when computing
82904         ../../../../...
82905         Use MATCHING_INO to compare inode number to file.
82906         Check for arithmetic overflow in size calculations.
82907         Fix bug in reallocation of dot array that caused getcwd to fail
82908         on directories nested deeper than 75.
82909         Be more careful about saving errno on error.
82910         Do not use realloc; use only free+malloc, as this is a bit
82911         more flexible and avoids a needless copy operation.
82912         Do not inspect st_dev and st_ino for symbolic links; POSIX
82913         doesn't specify the latter.
82914         Check for closedir errors.
82915         Avoid needless casts.
82916         Use "#ifdef weak_alias" around weak_alias, to be like other
82917         glibc code.
82918         The following changes to getcwd.c have effect only when used in
82919         gnulib; they have no effect inside glibc proper.
82920         (#pragma alloca) [defined _AIX && !defined __GNUC__]: Remove,
82921         as alloca isn't used.
82922         (alloca, __alloca): Likewise.
82923         [!_LIBC]: Include "getcwd.h", "mempcpy.h".
82924         Include <stddef.h>, <stdlib.h>, <string.h>, <limits.h>
82925         unconditionally, as gnulib assumes C89 or better.
82926         Do not include <sys/param.h>.
82927         (errno) [!defined __GNU_LIBRARY__ && !defined STDC_HEADERS]: Remove
82928         no-longer-necessary 'extern int errno' decl; gnulib assumes C89 or
82929         better.
82930         (NULL) [!defined NULL]: Remove; we assume C89 or better.
82931         Include <dirent.h> in a way that is compatible with modern Autoconf.
82932         (_D_ALLOC_NAMELEN, _D_EXACT_NAMLEN):
82933         New macros, if not already defined.
82934         Include <unistd.h> if _LIBC, not if __GNU_LIBRARY__.
82935         Use "_LIBC", not "defined _LIBC", for consistency.
82936         (HAVE_MEMPCPY): Remove; no longer needed now that gnulib has
82937         a mempcpy module.
82938         (__lstat, __closedir, __opendir, __readdir) [!_LIBC]: New macros.
82939         (GETCWD_RETURN_TYPE): Remove.  All uses replaced by char *.
82940         * lib/xgetcwd.c: David MacKenzie's old code was removed, so give
82941         credit only to Jim Meyering and adjust the copyright dates.
82942         Do not include <limits.h>, <stdio.h>, <sys/types.h>,
82943         <stdlib.h>, <unistd.h>, "pathmax.h".
82944         Instead, include "xgetcwd.h" (first) and "getcwd.h".
82945         (INITIAL_BUFFER_SIZE): Remove.
82946         (xgetcwd): Rely on getcwd, since we now depend on a reliable one.
82947
82948 2004-11-25  Paul Eggert  <eggert@cs.ucla.edu>
82949
82950         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Renamed from
82951         GL_FUNC_GETCWD_PATH_MAX for consistency.  All uses changed.
82952         Use the _ONCE methods, for efficiency.
82953         Check for fcntl.h.  In test program, include <errno.h>
82954         and <fcntl.h> if available.  Remove old K&R cruft from
82955         test program.  Check for common errors in GNU/Linux,
82956         OpenBSD, and Solaris.  Just set gl_cv_func_getcwd_path_max;
82957         don't do AC_LIBOBJ, as that's getcwd.m4's job.
82958         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Renamed from
82959         AC_FUNC_GETCWD_NULL.  All used changed.  Change cache variable
82960         name accordingly.
82961         (gl_FUNC_GETCWD, gl_PREREQ_GETCWD): New macros.  Revamp to
82962         accommodate new getcwd.c.
82963         * m4/jm-macros.m4 (gl_MACROS): Don't require GL_FUNC_GETCWD_PATH_MAX.
82964         * m4/prereq.m4 (gl_PREREQ): Add gl_FUNC_MEMPCPY.
82965         * m4/xgetcwd.m4 (gl_XGETCWD): Replace with gl_FUNC_GETCWD, since
82966         that's all we need now.
82967
82968 2004-11-23  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
82969
82970         * m4/argp.m4 (gl_ARGP): Require gl_GETOPT_SUBSTITUTE unconditionally:
82971         argp-parse.c depends on getopt internals, that means we should
82972         always use our getopt, to be on the safe side.
82973         * m4/getopt.m4 (gl_GETOPT): Check if GETOPT_H is already set, in
82974         order not to spoil the result of an eventual previous invocation
82975         of gl_GETOPT_SUBSTITUTE.
82976
82977 2004-11-23  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
82978
82979         * lib/getopt_.h: Re-addition of __getopt_argv_const caused
82980         redefinition warnings. To avoid them, include the defines
82981         in `#if !defined __need_getopt ... #endif'. The only place
82982         where __getopt_argv_const is used is in definitions
82983         of getopt_long and getopt_long_only below, which are as well
82984         protected by `#ifndef __need_getopt'.
82985         [defined __GETOPT_PREFIX && !defined __need_getopt]: Undef
82986         __need_getopt after including <stdio.h> and <unistd.h> These
82987         headers might have defined it.
82988
82989 2004-11-23  Paul Eggert  <eggert@cs.ucla.edu>
82990
82991         * m4/utimens.m4 (gl_UTIMENS): Check for futimes function.
82992
82993 2004-11-23  Paul Eggert  <eggert@cs.ucla.edu>
82994
82995         * lib/utimens.c (__attribute__, ATTRIBUTE_UNUSED): New macros.
82996         (futimens): New function, which uses futimes if available.
82997         (futimens, utimens): Support timespec==NULL, with same semantics
82998         as utime and utimens.
82999         * lib/utimens.h (futimens): New decl.
83000
83001 2004-11-23  Jim Meyering  <jim@meyering.net>
83002
83003         * lib/getopt_.h: Remove trailing blanks.
83004
83005 2004-11-23  Jim Meyering  <jim@meyering.net>
83006
83007         * lib/__fpending.c: Add comment.
83008
83009 2004-11-22  Paul Eggert  <eggert@cs.ucla.edu>
83010
83011         * modules/canonicalize (Depends-on): Add xreadlink.
83012         Problem reported by James Youngman.
83013
83014 2004-11-20  Paul Eggert  <eggert@cs.ucla.edu>
83015
83016         * lib/getopt_.h (__GETOPT_CONCAT, __GETOPT_XCONCAT, __GETOPT_ID):
83017         New macros.
83018         (getopt, getopt_long, getopt_long_only, optarg, opterr, optind,
83019         optopt): Use them instead of invoking ## directly; otherwise, the
83020         symbols will be __GETOPT_PREFIXgetopt rather than rpl_getopt.
83021
83022 2004-11-19  Bruno Haible  <bruno@clisp.org>
83023
83024         * lib/strtok_r.c: Move comments from here...
83025         * lib/strtok_r.h: ... to here.
83026
83027 2004-11-17  Paul Eggert  <eggert@cs.ucla.edu>
83028
83029         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Check for buggy calloc
83030         implementations that mishandle size_t overflow.
83031
83032 2004-11-17  Paul Eggert  <eggert@cs.ucla.edu>
83033
83034         * lib/realloc.c (rpl_realloc): Call 'free' if n==0, since realloc
83035         might fail.  Problem reported by Yoann Vandoorselaere.
83036         * lib/calloc.c (rpl_calloc): Defend against buggy calloc
83037         implementations that mishandle size_t overflow.
83038
83039 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
83040
83041         * modules/canon-host (Depends-on): Add strdup.
83042
83043 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
83044
83045         * m4/canon-host.m4 (gl_CANON_HOST): Check for getaddrinfo.
83046
83047 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
83048
83049         * lib/canon-host.c: Include "strdup.h".
83050         (canon_host): Use getaddrinfo if available, so that IPv6 works.
83051         Use strdup instead of malloc/strcpy to duplicate strings.
83052
83053         * lib/human.h (LONGEST_HUMAN_READABLE): Add 1 for space before unit.
83054         (human_space_before_unit): New constant.
83055         * lib/human.c (human_readable): Support it.
83056
83057         * lib/xgetcwd.c: Include <limits.h>, for PATH_MAX.
83058         (xgetcwd): Set errno correctly when failing.
83059         Work around Solaris 9 bug: getcwd sets errno==ERANGE even though
83060         the failure is actually due to a PATH_MAX problem.
83061
83062         Further getopt changes to make it more likely that glibc will
83063         buy the changes back.
83064         * lib/getopt.c (POSIXLY_CORRECT): New constant.
83065         (getopt): Use it, so to preserve glibc semantic
83066         * lib/getopt1.c (getopt_long, getopt_long_only): Arg is char * const *
83067         when compiling for libc.
83068         * lib/getopt_.h (__getopt_argv_const): Bring it back.
83069         (getopt_long, getopt_long_only): Use it.
83070
83071         * lib/getopt.c (_getopt_initialize, _getopt_internal_r,
83072         _getopt_internal): New arg POSIXLY_CORRECT.  All callers changed.
83073         (getopt): Argv is now char * const *, as per standard.
83074         (_getopt_internal_r, _getopt_internal): Argv is now char **,
83075         not char *__getopt_argv_const *.
83076         * lib/getopt1.c (getopt_long, _getopt_long_r, getopt_long_only,
83077         _getopt_long_only_r): Likewise.
83078         * lib/getopt_.h (getopt, getopt_long, geopt_long_only): Likewise.
83079         * lib/getopt_int.h (_getopt_internal, _getopt_internal_r,
83080         _getopt_long_r, _getopt_long_only_r): Likewise.
83081         * lib/getopt_.h (__getopt_argv_const): Remove.
83082         (getopt): Argv is now char * const *, as per standard.
83083
83084         * lib/getdate.y (tORDINAL): New token.
83085         (day, relunit): Allow it for relative times.
83086         (relative_time_table): Use tORDINAL for ordinals.
83087
83088 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
83089
83090         * doc/getdate.texi (General date syntax): "next" is 1, not 2.
83091         Document that "second" isn't allowed as an ordinal number.
83092
83093 2004-11-16  Jim Meyering  <jim@meyering.net>
83094
83095         * modules/closeout (Depends-on): Add fpending.
83096
83097 2004-11-15  Jim Meyering  <jim@meyering.net>
83098
83099         * lib/closeout.c: Include "__fpending.h" once again.
83100         Include <stdbool.h>.
83101         (close_stdout): Don't fail just because stdout was closed initially,
83102         since some programs don't write to stdout in the normal course of
83103         operation (other than --version and --help), and we don't want this
83104         function to make e.g. `touch file >&-' fail.
83105         But do fail if it was closed and someone has tried to write to it.
83106         E.g., `printf foo >&-' must fail.
83107
83108 2004-11-13  Jim Meyering  <jim@meyering.net>
83109
83110         * m4/jm-macros.m4: Do require gl_FUNC_FPENDING.
83111
83112 2004-11-12  Simon Josefsson  <jas@extundo.com>
83113
83114         * config/srclist.txt: Add strtok_r.c, glibc bought our changes, but a
83115         small doc fix is still pending.
83116
83117 2004-11-11  Simon Josefsson  <jas@extundo.com>
83118
83119         * modules/strtok_r: New file.
83120
83121         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
83122         strtok_r.
83123
83124 2004-11-11  Simon Josefsson  <jas@extundo.com>
83125
83126         * m4/strtok_r.m4: New file.
83127
83128         * m4/getopt.m4: Replace opterr.
83129
83130 2004-11-11  Simon Josefsson  <jas@extundo.com>
83131
83132         * lib/strtok_r.h, strtok_r.c: New file.
83133
83134 2004-11-11  Paul Eggert  <eggert@cs.ucla.edu>
83135
83136         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): Define __GETOPT_PREFIX instead
83137         of replacing opterr, getopt, etc.  This should handle the
83138         powerpc-apple-darwin5.5 problem recently noted by Simon Josefsson.
83139
83140 2004-11-11  Paul Eggert  <eggert@cs.ucla.edu>
83141
83142         * lib/getopt_.h (__getopt_argv_const): New macro, to be used so that
83143         we can stop lying to compilers about the constness of argv when we
83144         are compiled outside glibc.
83145         (getopt, getopt_long, getopt_long_only): Use it.
83146         * lib/getopt.c (_getopt_initialize, _getopt_internal_r,
83147         _getopt_internal, getopt): Likewise.
83148         * lib/getopt1.c (getopt_long, _getopt_long_r, getopt_long_only,
83149         _getopt_long_only_r): Likewise.
83150         * lib/getopt_int.h (_getopt_internal, _getopt_internal_r,
83151         _getopt_long_r, _getopt_long_only_r): Likewise.
83152
83153         * lib/getopt_.h [defined __GETOPT_PREFIX && !defined __need_getopt]:
83154         Include <stdlib.h> and <stdio.h>, and <unistd.h> if available.
83155         Then rename getopt to __GETOPT_PREFIX##getopt, and so forth for
83156         the other external symbols.
83157         (getopt) [!defined __GNU_LIBRARY]: Use prototype, not old-style
83158         declaration, since the above renaming now works around collisions.
83159
83160 2004-11-11  Jim Meyering  <jim@meyering.net>
83161
83162         * lib/linebreak.c: Remove trailing blanks.
83163         * lib/alloca_.h: Likewise.
83164         * lib/acosl.c: Likewise.
83165         * lib/euidaccess.c: Likewise.
83166         * lib/allocsa.h: Likewise.
83167
83168 2004-11-10  Simon Josefsson  <jas@extundo.com>
83169
83170         * m4/getaddrinfo.m4: New file.
83171
83172 2004-11-10  Simon Josefsson  <jas@extundo.com>
83173
83174         * lib/getaddrinfo.h, lib/getaddrinfo.c: New files.
83175
83176 2004-11-10  Simon Josefsson  <jas@extundo.com>
83177
83178         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
83179         getaddrinfo.
83180
83181         * modules/getaddrinfo: New file.
83182
83183 2004-11-10  Paul Eggert  <eggert@cs.ucla.edu>
83184
83185         * m4/prereq.m4 (gl_PREREQ): Require gt_FUNC_SETENV.
83186
83187 2004-11-10  Paul Eggert  <eggert@cs.ucla.edu>
83188
83189         * lib/mktime.c (SHR): New macro, which is a portable
83190         substitute for >> that should work even on Crays.
83191         (TIME_T_MIDPOINT, ydhms_diff, __mktime_internal): Use it.
83192         Problem reported by Mark D. Baushke in
83193         <http://lists.gnu.org/archive/html/bug-gnulib/2004-11/msg00071.html>.
83194         * lib/getdate.y (SHR): Likewise.
83195         (tm_diff): Use it.
83196         * lib/strftime.c (SHR): Likewise.
83197         (tm_diff): Use it.
83198         * lib/quotearg.c (struct quoting_options): Use unsigned int for
83199         quote_these_too, so that right shifts are well defined.  All uses
83200         changed.
83201
83202 2004-11-10  Jim Meyering  <jim@meyering.net>
83203
83204         Ensure that no close failure goes unreported.
83205         * lib/closeout.c (close_stdout): Always close stdout.  I.e., don't
83206         return early when it seems there's nothing to flush.
83207         Don't include __fpending.h.
83208
83209 2004-11-10  Jim Meyering  <jim@meyering.net>
83210
83211         * modules/closeout (Depends-on): Remove fpending.
83212
83213 2004-11-10  Jim Meyering  <jim@meyering.net>
83214
83215         * m4/jm-macros.m4 (gl_MACROS): Don't require gl_FUNC_FPENDING.
83216
83217 2004-11-09  Paul Eggert  <eggert@cs.ucla.edu>
83218
83219         * m4/strftime.m4 (_gl_STRFTIME_PREREQS): Remove.  Move its body to
83220         gl_FUNC_STRFTIME.
83221         (gl_FUNC_STRFTIME): Use AC_CHECK_FUNCS_ONCE and AC_CHECK_HEADERS_ONCE
83222         and AC_REQUIRE when possible, to avoid duplicate checks.
83223         Check for <wchar.h>.
83224
83225 2004-11-09  Paul Eggert  <eggert@cs.ucla.edu>
83226
83227         * lib/strftime.c (DO_MULTIBYTE): Check for wchar.h, too.
83228
83229 2004-11-09  Bruno Haible  <bruno@clisp.org>
83230
83231         * m4/sockpfaf.m4: New file.
83232
83233 2004-11-05  Bruno Haible  <bruno@clisp.org>
83234
83235         * lib/readlink.c: Include stddef.h, needed for size_t on Woe32.
83236         Reported by Mark D. Baushke <mdb@cvshome.org>.
83237
83238 2004-11-04  Bruno Haible  <bruno@clisp.org>
83239
83240         2004-09-11  Bruno Haible  <bruno@clisp.org>
83241                 * allocsa.valgrind: New file.
83242         2004-02-06  Bruno Haible  <bruno@clisp.org>
83243                 * allocsa.h (sa_alignof): Define differently with HP-UX cc, to
83244                 avoid a bug of this cc on HP-UX 10.20 dealing with enums.
83245                 Reported by Christopher Seip <chris.seip@hp.com>.
83246
83247 2004-11-04  Bruno Haible  <bruno@clisp.org>
83248
83249         * modules/allocsa (Files): Add lib/allocsa.valgrind.
83250         (Makefile.am): Distribute it.
83251
83252 2004-11-03  Paul Eggert  <eggert@cs.ucla.edu>
83253
83254         * lib/xreadlink.c (xreadlink): AIX and HP-UX readlink return -1
83255         with errno == ERANGE if the buffer is too small.
83256         Problem reported by Mark D. Baushke.
83257
83258 2004-11-03  Albert Chin  <china@thewrittenword.com>
83259             Paul Eggert  <eggert@cs.ucla.edu>
83260
83261         * m4/uint32_t.m4 (gl_AC_TYPE_UINT32_T): When determining uint32_t
83262         equivalent, substitute $ac_type for equivalent type rather than
83263         blindly using uint32_t *always* which won't work if uint32_t is not
83264         available.  Define _UINT32_T to work around typedef of uint32_t if
83265         <sys/sched.h>, <pthread.h>, or <semaphore.h> used on Solaris
83266         2.5.1.
83267
83268 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
83269
83270         * m4/jm-macros.m4: Sync from coreutils.
83271         (gl_MACROS): Check for mbrlen, for pathchk.
83272         (gl_CHECK_ALL_TYPES): Require AC_TYPE_MBSTATE_T, for pathchk.
83273
83274 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
83275
83276         * lib/xreadlink.c (MAXSIZE): New macro.
83277         (xreadlink): Use it instead of SSIZE_MAX.  Ensure initial buffer
83278         size does not exceed MAXSIZE.  Avoid cast.
83279         As suggested by Mark D. Baushke in
83280         <http://lists.gnu.org/archive/html/bug-gnulib/2004-11/msg00009.html>,
83281         if readlink fails with buffer size just under MAXSIZE, try again
83282         with MAXSIZE.
83283
83284 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
83285
83286         * config/srclist.txt: Add mktime.c; glibc bought all our changes.
83287
83288 2004-11-02  Derek R. Price  <derek@ximbiot.com>
83289         and  Paul Eggert  <eggert@cs.ucla.edu>
83290
83291         * lib/getdate.y [!TEST]: Include <stdio.h>, since we use sprintf now.
83292         (get_date): Overparenthesize to avoid GCC warning.
83293
83294 2004-11-02  Bruno Haible  <bruno@clisp.org>
83295
83296         * m4/setenv.m4 (gt_FUNC_SETENV): Define VOID_UNSETENV if unsetenv()
83297         returns void.
83298
83299 2004-11-02  Bruno Haible  <bruno@clisp.org>
83300
83301         * lib/setenv.h (unsetenv): Define as a macro if the system's unsetenv()
83302         function returns void.
83303
83304 2004-11-01  Paul Eggert  <eggert@cs.ucla.edu>
83305
83306         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for declarations of
83307         fflush_unlocked, flockfile, funlockfile, funlockfile,
83308         fputs_unlocked, putc_unlocked.
83309
83310 2004-11-01  Paul Eggert  <eggert@cs.ucla.edu>
83311
83312         * lib/getpass.c (fflush_unlocked, flockfile, funlockfile)
83313         (funlockfile, fputs_unlocked, putc_unlocked): Don't define if
83314         already declared.
83315
83316 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
83317
83318         * modules/getdate (Files): Add doc/getdate.texi.
83319         (Depends-on): Add setenv, xalloc.
83320
83321 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
83322
83323         * lib/getdate.y: Add support for TZ="foo" within a date string.
83324         Fix some bugs near time_t boundaries.  Reject dates with
83325         out-of-range components, e.g., "Sept 31".
83326         Include <stdlib.h>, "setenv.h", "xalloc.h".
83327         (ISDIGIT_LOCALE): Remove; unused.
83328         Note that the TZ and time functions used here are not reentrant.
83329         (mktime_ok, get_tz): New functions.
83330         (TZBUFSIZE): New constant.
83331         (get_date): Parse leading TZ="foo".  Reject out-of-range components;.
83332         This requires that we sometimes generate our own TZ="XXX..." setting.
83333
83334 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
83335
83336         * doc/getdate.texi: New file, from coreutils with modifications for
83337         the new TZ parsing.
83338
83339 2004-10-27  Derek R. Price  <derek@ximbiot.com>
83340
83341         * lib/mktime.c (not_equal_tm): Remove redundant check.
83342
83343 2004-10-24  Paul Eggert  <eggert@cs.ucla.edu>
83344
83345         * modules/regex (lib_SOURCES): Add regex.c.
83346         Reported by James Youngman in
83347         <http://lists.gnu.org/archive/html/bug-gnulib/2004-10/msg00199.html>.
83348
83349 2004-10-24  Paul Eggert  <eggert@cs.ucla.edu>
83350
83351         * lib/getdate.y: Use Bison 1.875 features, and some minor
83352         code cleanups.  This change does not affect semantics.
83353         Don't include <stdlib.h>; no longer needed.
83354         Don't include unlocked-io.h; only the "#if TEST" code uses
83355         stdio, and performance isn't crucial there.
83356         (PC, YYLEX_PARAM, YYPARSE_PARAM): Remove; replaced by
83357         Bison 1.875 features as described below.
83358         All uses of "PC." replaced by "pc->".
83359         (YYSTYPE): Add a forward declaration.
83360         (yylex, yyerror): Use full prototypes in forward decls.
83361         Use "%pure-parser" rather than obsolescent "%pure_parser".
83362         Use %parse-param and %lex-param instead of obsolescent
83363         YYPARSE_PARAM and YYLEX_PARAM.
83364         (meridian_table, month_and_day_table, time_units_table,
83365         relative_time_table, time_zone_table, military_table,
83366         lookup_zone, lookup_word, get_date):
83367         Use NULL instead of 0 where appropriate.
83368         (to_hour): Avoid abort (), to avoid a dependency on
83369         stdlib.h.
83370         (yyerror, yylex): Now accepts parser_control * arg.
83371         (main) [TEST]: Use '\0' rather than 0 for char.
83372
83373 2004-10-22  Paul Eggert  <eggert@cs.ucla.edu>
83374
83375         * m4/getpagesize.m4 (gl_GETPAGESIZE): Check for <sys/param.h>.
83376
83377 2004-10-22  Paul Eggert  <eggert@cs.ucla.edu>
83378
83379         * lib/getpagesize.c (getpagesize): Don't assume <sys/param.h> exists.
83380         It's now the caller's responsibility to handle the case where
83381         !HAVE_GETPAGESIZE && !defined getpagesize.
83382
83383         * lib/mktime.c (leapyear): Arg is long int, not int.
83384
83385 2004-10-18  Paul Eggert  <eggert@cs.ucla.edu>
83386
83387         * lib/argp-fs-xinl.c, argp-xinl.c: Update from glibc.
83388
83389 2004-10-17  Paul Eggert  <eggert@cs.ucla.edu>
83390
83391         * gnulib-tool (func_emit_lib_Makefile_am): Fix typo: a $ was
83392         missing.  Problem reported by James Youngman.
83393
83394 2004-10-16  Simon Josefsson  <jas@extundo.com>
83395
83396         * gnulib-tool: Fix comments.  Fix parse problem.
83397         (func_emit_lib_Makefile_am): Don't hard code a in libgl_a_SOURCES.
83398
83399 2004-10-15  Paul Eggert  <eggert@cs.ucla.edu>
83400
83401         * m4/getopt.m4 (gl_GETOPT): Detect and reject the incompatible BSD
83402         implementation of getopt_long.  Problem reported by Alexander Taler in:
83403         http://lists.gnu.org/archive/html/bug-gnulib/2004-10/msg00103.html
83404
83405 2004-10-15  Bruno Haible  <bruno@clisp.org>
83406
83407         * gnulib-tool: Untabify. Initialize supplied_libname.
83408         (func_usage): More homogenous output.
83409         (func_modules_transitive_closure, func_modules_to_filelist,
83410         func_emit_lib_Makefile_am): New functions.
83411         (func_import): New function, extracted from big case statement. Use
83412         func_get_license, func_modules_transitive_closure,
83413         func_modules_to_filelist, func_emit_lib_Makefile_am. Initialize
83414         opt_lgpl. Don't use test -a, as it's not portable.
83415         (func_create_testdir): Use func_modules_transitive_closure,
83416         func_modules_to_filelist, func_emit_lib_Makefile_am.
83417
83418 2004-10-15  Bruno Haible  <bruno@clisp.org>
83419
83420         * gnulib-tool (func_import): Let gl_INIT define LTALLOCA when needed.
83421
83422 2004-10-15  Bruno Haible  <bruno@clisp.org>
83423
83424         * gnulib-tool (func_emit_lib_Makefile_am): Add markers to separate
83425         the portions belonging to each module.
83426         Suggested by Derek Robert Price <derek@ximbiot.com>.
83427
83428 2004-10-12  Simon Josefsson  <jas@extundo.com>
83429
83430         * lib/getpass.c (fflush_unlocked, flockfile, funlockfile)
83431         (fputs_unlocked, putc_unlocked) [!_LIBCS && !USE_UNLOCKED_IO]: Map
83432         to real functions.
83433
83434 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
83435
83436         * modules/vsnprintf: New file.
83437
83438 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
83439
83440         * m4/vsnprintf.m4: New file.
83441
83442 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
83443
83444         * lib/vsnprintf.h: New file.
83445         * lib/vsnprintf.c: New file.
83446
83447 2004-10-11  Bruno Haible  <bruno@clisp.org>
83448
83449         * MODULES.html.sh (Support for systems lacking ISO C 99): Add
83450         vsnprintf.
83451
83452 2004-10-10  Paul Eggert  <eggert@cs.ucla.edu>
83453
83454         * config/srclistvars.sh: Add GNUSTANDARDS (for eggert only).
83455
83456 2004-10-07  Bruno Haible  <bruno@clisp.org>
83457
83458         * lib/snprintf.c (snprintf): Avoid a memory allocation if the result
83459         fits into the provided buffer.
83460
83461 2004-10-06  Paul Eggert  <eggert@cs.ucla.edu>
83462
83463         * lib/diacrit.c, diacrit.h: Add GPL notice.
83464
83465         * lib/atanl.c, logl.c: Add GPL notice, to match glibc's added LGPL
83466         notice.
83467         * lib/atanl.c (atanl): Keep the code as similar to glibc as possible.
83468         * lib/logl.c (logl): Keep the code as similar to glibc as possible.
83469         This avoids a potential constant-folding bug.
83470
83471 2004-10-05  Bruno Haible  <bruno@clisp.org>
83472
83473         * m4/strsep.m4 (gl_FUNC_STRSEP): Require AC_GNU_SOURCE. Don't check
83474         for the declaration of strsep.
83475
83476 2004-10-05  Bruno Haible  <bruno@clisp.org>
83477
83478         * lib/strsep.h: Don't declare strsep() if HAVE_STRSEP.
83479
83480 2004-10-04  Simon Josefsson  <jas@extundo.com>
83481
83482         * modules/memmem: New file.
83483         * tests/test-memmem.c: New file.
83484         * MODULES.html.sh (Extra functions based on ANSI C 89): Add memmem.
83485
83486 2004-10-04  Simon Josefsson  <jas@extundo.com>
83487
83488         * m4/memmem.m4: New file.
83489
83490 2004-10-04  Simon Josefsson  <jas@extundo.com>
83491
83492         * lib/memmem.h: New file.
83493         * lib/memmem.c: New file, taken from glibc.
83494
83495 2004-10-04  Simon Josefsson  <jas@extundo.com>
83496
83497         * lib/error.c, md5.c, regex.c: Use '#if USE_UNLOCKED_IO' instead of
83498         '#ifdef USE_UNLOCKED_IO'.
83499
83500 2004-10-04  Simon Josefsson  <jas@extundo.com>
83501
83502         * config/srclist.txt: Add memmem from glibc.
83503
83504 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
83505
83506         * modules/xalloc (Files, Makefile.am): Remove xstrdup.c.
83507
83508         * modules/argmatch, modules/argp, modules/closeout, modules/error,
83509         modules/exclude, modules/getdate, modules/getline,
83510         modules/getndelim2, modules/getpass, modules/getpass-gnu,
83511         modules/getusershell, modules/linebuffer, modules/md5,
83512         modules/mountlist, modules/posixtm, modules/readtokens,
83513         modules/readutmp, modules/regex, modules/sha1,
83514         modules/version-etc, modules/yesno:
83515         Remove dependency on unlocked-io.
83516
83517 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
83518
83519         * m4/xalloc.m4 (gl_PREREQ_XSTRDUP): Remove.  All uses removed.
83520
83521         * m4/unlocked-io.m4: Add copyright notice.
83522         (gl_FUNC_GLIBC_UNLOCKED_IO): Define USE_UNLOCKED_IO.
83523
83524 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
83525
83526         * lib/xalloc.h (xmemdup): Renamed from xclone.  All uses changed.
83527         * lib/xmalloc.c (xmemdup): Likewise.
83528         * lib/xalloc.h (CCLONE, CLONE, NEW, XCALLOC, XMALLOC, XREALLOC,
83529         XFREE): Remove these long-obsolescent macros.
83530         * lib/xmalloc.c (xstrdup): Implementation moved here from xstrdup.c
83531         * lib/xstrdup.c: Remove.
83532
83533         * lib/regex.c (re_comp): Cast gettext return value to char *,
83534         Problem reported by Martin Neitzel via Mark D. Baushke.
83535
83536 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
83537
83538         * lib/argmatch.c, closeout.c, error.c, exclude.c, getdate.y,
83539         getndelim2.c, getpass.c, getusershell.c, linebuffer.c,
83540         md5.c, mountlist.c, posixtm.c, readtokens.c, readutmp.c,
83541         regex.c, sha1.c, version-etc.c, yesno.c:
83542         Include "unlocked-io.h" only if USE_UNLOCKED_IO.
83543         * lib/unlocked-io.h: Don't worry about USE_UNLOCKED_IO; that's now
83544         the includer's responsibility.
83545
83546         Sync from coreutils.
83547
83548         * lib/modechange.c (mode_compile): Don't decrement a pointer that
83549         points to the start of a string, as the C Standard says the
83550         resulting behavior is undefined.
83551
83552         * lib/backupfile.h (enum backuptype): Rename none -> no_backups,
83553         simple -> simple_backups, numbered_existing ->
83554         numbered_existing_backups, numbered -> numbered_backups
83555         to avoid shadowing problems.  All uses changed.
83556         * lib/argmatch.c (enum backuptype) [defined TEST]: Likewise.
83557         * lib/backupfile.c (check_extension, numbered_backup):
83558         Rename locals to avoid shadowing 'basename'.
83559         * lib/backupfile.h (VALID_BACKUP_TYPE): Don't evaluate arg more than
83560         once.
83561
83562         * lib/.cppi-disable: Add getopt_.h, getopt_int.h.
83563         * lib/.cvsignore: Add getopt.h.
83564
83565 2004-10-04  Bruno Haible  <bruno@clisp.org>
83566
83567         * modules/README: New file.
83568         * gnulib-tool (func_all_modules, func_verify_module): modules/README is
83569         not a module.
83570
83571 2004-10-02  Jim Meyering  <jim@meyering.net>
83572
83573         * lib/dirfd.h, getpagesize.h: Add copyright notice.
83574
83575 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
83576
83577         * modules/strsep: New file.
83578
83579 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
83580
83581         * m4/strsep.m4: New file.
83582
83583 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
83584
83585         * lib/strsep.h: New file.
83586         * lib/strsep.c: New file.
83587
83588 2004-10-01  Simon Josefsson  <jas@extundo.com>
83589
83590         * lib/snprintf.c (snprintf): Handle size==0.
83591
83592 2004-10-01  Simon Josefsson  <jas@extundo.com>
83593             Bruno Haible  <bruno@clisp.org>
83594
83595         * lib/snprintf.c: Include <stdarg.h>, <stdlib.h>, <string.h>.
83596         (snprintf): Declare 'args'.
83597
83598 2004-10-01  Paul Eggert  <eggert@cs.ucla.edu>
83599
83600         * lib/snprintf.c: Remove comments as to why each header is needed.
83601
83602 2004-10-01  Bruno Haible  <bruno@clisp.org>
83603
83604         * MODULES.html.sh: Add strsep.
83605
83606 2004-09-30  Simon Josefsson  <jas@extundo.com>
83607
83608         * modules/snprintf: New file.
83609
83610 2004-09-30  Simon Josefsson  <jas@extundo.com>
83611
83612         * m4/snprintf.m4: New file.
83613
83614 2004-09-30  Simon Josefsson  <jas@extundo.com>
83615
83616         * lib/snprintf.h, lib/snprintf.c: New files.
83617
83618 2004-09-30  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
83619
83620         * lib/argp-help.c (canon_doc_option): Fixed coredump if *name==NULL
83621         (hol_entry_help): Never translate an empty string.
83622         Do not translate option tag (opt->name) if OPTION_NO_TRANS is set
83623         * lib/argp.h (OPTION_NO_TRANS): New option.
83624
83625 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
83626
83627         * modules/argp (Maintainer): Replace Simon Josefsson
83628         by Sergey Poznyakoff.
83629
83630 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
83631
83632         * config/srclist.txt: Comment-out argp/argp.h, until we get the argp
83633         changes merged back into glibc.
83634
83635 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
83636
83637         * MODULES.html.sh (Support for systems lacking ISO C 99): Add snprintf.
83638
83639 2004-09-29  Oskar Liljeblad  <oskar@osk.mine.nu>
83640
83641         * lib/xvasprintf.c: Include xalloc.h.
83642         (xvasprintf): Use xalloc_die, not xmalloc_die.
83643
83644 2004-09-29  Bruno Haible  <bruno@clisp.org>
83645
83646         * modules/alloca-opt: New file, derived from modules/alloca.
83647         * modules/allocsa: Depend on alloca-opt instead of alloca.
83648         * modules/setenv: Likewise.
83649         * modules/vasnprintf: Likewise.
83650         * MODULES.html.sh: Add alloca-opt.
83651
83652 2004-09-28  Simon Josefsson  <jas@extundo.com>
83653
83654         * gnulib-tool: New parameter --lgpl, to asseert that modules are
83655         LGPL, and to replace license template from GPL to LGPL.
83656
83657 2004-09-28  Paul Eggert  <eggert@cs.ucla.edu>
83658
83659         * modules/dummy: Change license to LGPL.
83660
83661 2004-09-28  Paul Eggert  <eggert@cs.ucla.edu>
83662
83663         * lib/dummy.c: Change copyright notice to FSF, and license to GPL.
83664
83665 2004-09-24  Simon Josefsson  <jas@extundo.com>
83666
83667         * modules/minmax (License): Change from GPL to LGPL.
83668
83669 2004-09-23  Simon Josefsson  <jas@extundo.com>
83670
83671         * gnulib-tool (--import): Typo.
83672
83673 2004-09-23  Simon Josefsson  <jas@extundo.com>
83674
83675         * gnulib-tool (--import): Make sure *.m4 end up in m4/ by default.
83676
83677 2004-09-22  Bruno Haible  <bruno@clisp.org>
83678
83679         * modules/*: Add 'License' field.
83680         * gnulib-tool: Accept --extract-license option.
83681         (func_get_license): New function.
83682
83683 2004-09-21  Bruno Haible  <bruno@clisp.org>
83684
83685         * modules/vasnprintf (Files): Add m4/stdint_h.m4, m4/inttypes_h.m4.
83686         Reported by Simon Josefsson.
83687
83688 2004-09-20  Paul Eggert  <eggert@cs.ucla.edu>
83689
83690         * modules/inttostr (Files): Add m4/longlong.m4, since it uses
83691         gl_AC_TYPE_LONG_LONG.
83692
83693 2004-09-20  Paul Eggert  <eggert@cs.ucla.edu>
83694
83695         * config/srclist.txt: Add getsubopt.c, since libc bought our changes.
83696
83697 2004-09-18  Simon Josefsson  <jas@extundo.com>
83698         and  Paul Eggert  <eggert@cs.ucla.edu>
83699
83700         * gnulib-tool: Replace various ad-hoc automake/autoconf/aclocal
83701         calls with autoreconf.  Define GL_LIB.
83702
83703 2004-09-14  Karl Berry  <karl@gnu.org>
83704
83705         * config/srclist.txt: unsync setenv.c, sigh.
83706
83707 2004-09-13  Paul Eggert  <eggert@cs.ucla.edu>
83708
83709         * lib/argp-pvh.c (argp_program_version_hook): Provide initial value.
83710         Problem reported by Bruno Haible in:
83711         http://lists.gnu.org/archive/html/bug-tar/2004-09/msg00023.html
83712
83713 2004-09-13  Paul Eggert  <eggert@cs.ucla.edu>
83714
83715         * config/srclist.txt: Comment out argp-pvh.c.
83716
83717 2004-09-11  Paul Eggert  <eggert@cs.ucla.edu>
83718
83719         * lib/mempcpy.h: Wrap the entire include file inside #ifndef mempcpy,
83720         in case some system header has #define'd it.  Problem reported by
83721         Soeren D. Schulze in
83722         <http://lists.gnu.org/archive/html/bug-gnulib/2004-09/msg00017.html>.
83723
83724 2004-09-09  Karl Berry  <karl@gnu.org>
83725
83726         * regex.[ch]: delete from the root.  These were supposed to be
83727                 synced with emacs cvs, but this has not happened for about
83728                 a year, and anyway nothing else uses emacs regex.[ch].
83729                 bug-gnulib mail from Jeff Bailey, 9 Sep 2004 15:49:24 -0700.
83730                 lib/regex[.ch] is untouched.
83731
83732 2004-09-09  Bruno Haible  <bruno@clisp.org>
83733
83734         * modules/vasnprintf (Files): Add m4/eoverflow.m4.
83735
83736 2004-09-09  Bruno Haible  <bruno@clisp.org>
83737
83738         * m4/eoverflow.m4: New file, taken from GNU libiconv eilseq.m4 with
83739         modifications.
83740         * m4/vasnprintf.m4 (gl_FUNC_VASNPRINTF): Require gl_EOVERFLOW.
83741
83742 2004-09-08  Oskar Liljeblad  <oskar@osk.mine.nu>
83743
83744         * modules/xvasprintf: New file.
83745         * MODULES.html.sh (Extra functions based on ANSI C 89): Add vasprintf.
83746
83747 2004-09-08  Oskar Liljeblad  <oskar@osk.mine.nu>
83748
83749         * lib/xvasprintf.h: New file.
83750         * lib/xvasprintf.c: New file.
83751         * lib/xasprintf.c: New file.
83752
83753 2004-09-08  Bruno Haible  <bruno@clisp.org>
83754
83755         * m4/stdint.m4: New file, taken from GNU clisp with modifications.
83756
83757 2004-09-08  Bruno Haible  <bruno@clisp.org>
83758
83759         * lib/vasnprintf.c (VASNPRINTF): Signal EOVERFLOW if the resulting
83760         length is > INT_MAX.
83761         * lib/vasprintf.c (vasprintf): Don't test for length > INT_MAX any
83762         more.
83763
83764 2004-09-08  Bruno Haible  <bruno@clisp.org>
83765
83766         * lib/stdint_.h: New file, taken from GNU clisp.
83767
83768 2004-09-08  Bruno Haible  <bruno@clisp.org>
83769             Oskar Liljeblad  <oskar@osk.mine.nu>
83770
83771         * modules/stdint: New file.
83772         * MODULES.html.sh (Support for systems lacking ISO C 99): Add stdint.
83773
83774 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
83775
83776         Import from coreutils.
83777         * lib/userspec.c: Don't use <alloca.h>, so that we don't use alloca on
83778         strings on unbounded length.  alloca's performance benefits aren't
83779         that important here.
83780         (V_STRDUP): Remove.
83781         (parse_with_separator): New function, with most of the internals
83782         of the old parse_user_spec.  Allow user to omit both user and group,
83783         for compatibility with FreeBSD.
83784         Clone only the user name, not the entire spec.
83785         Do not set *uid, *gid unless entirely successful.
83786         Avoid memory leak in some failing cases.
83787         Fix regression for USER.GROUP reported by Dmitry V. Levin in
83788         <http://lists.gnu.org/archive/html/bug-coreutils/2004-08/msg00102.html>
83789         (parse_user_spec): Rewrite to use parse_with_separator.
83790
83791 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
83792
83793         * modules/userspec: Don't depend on alloca.
83794
83795 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
83796
83797         * m4/userspec.m4 (gl_USERSPEC): Don't require AC_FUNC_ALLOCA.
83798
83799 2004-08-17  Paul Eggert  <eggert@cs.ucla.edu>
83800
83801         * MODULES.html.sh: Add xalloc-die, c-strtod, c-strtold, raise,
83802         readtokens0, getcwd, fcntl-safer, canonicalize, cycle-check,
83803         utimecmp, utimens, xnanosleep.  Rename sha to sha1.
83804
83805 2004-08-16  Simon Josefsson  <jas@extundo.com>
83806
83807         * gnulib-tool: Use sed instead of autoconf --trace, inspired by
83808         libtoolize behaviour by "Gary V. Vaughan" <gary@gnu.org>.
83809         Add --dry-run for --import.
83810         Let user provided command line parameters override configure.ac
83811         settings.
83812
83813 2004-08-12  Simon Josefsson  <jas@extundo.com>
83814
83815         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): New macro,
83816         as discussed with Paul Eggert in threads rooted at
83817         <http://lists.gnu.org/archive/html/bug-gnulib/2004-06/msg00039.html>
83818         and
83819         <http://lists.gnu.org/archive/html/bug-gnulib/2004-07/msg00001.html>.
83820         Before, the test was empty, and relied on ELIDE_CODE in source
83821         code.)
83822         (gl_PREREQ_GETOPT): New macro.
83823         (gl_GETOPT): Use them.
83824
83825 2004-08-12  Simon Josefsson  <jas@extundo.com>
83826
83827         * lib/getopt.c, getopt1.c: Remove ELIDE_CODE hack.
83828         * lib/getopt_.h: Renamed from getopt.h.
83829
83830 2004-08-12  Simon Josefsson  <jas@extundo.com>
83831
83832         * gnulib-tool: Add --source-base, --m4-base, --libtool options.
83833         Change default library name from libfoo to libgnu.
83834         Now, if you have a configure.ac that says:
83835                 gl_SOURCE_BASE(gl)
83836                 gl_M4_BASE(gl/m4)
83837                 gl_MODULES(error getopt etcetera)
83838                 gl_INIT
83839         you can import all you need by running:
83840                 ../gnulib/gnulib-tool --import
83841
83842         * modules/getopt (Files): Rename getopt.h to getopt_.h.
83843         (Makefile.am): Rewrite, use logic from argz.
83844         (Include): Use <getopt.h> instead of "getopt.h".
83845
83846 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
83847
83848         * modules/argp (Files): Add m4/unlocked-io.m4.
83849         (Depends-on): Add extensions.
83850
83851 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
83852
83853         * m4/argp.m4 (gl_ARGP): Do not check for argp.h or argp_parse; nobody
83854         uses HAVE_ARGP_H or HAVE_ARGP_PARSE.
83855         Require gl_FUNC_GLIBC_UNLOCKED_IO, gl_USE_SYSTEM_EXTENSIONS.
83856         Check for program_invocation_name, program_invocation_short_name,
83857         flockfile, funlockfile, features.h, _getopt_long_only_r.
83858
83859 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
83860
83861         * lib/argp-help.c, argp-parse.c: Use "gettext.h" instead of
83862         its complicated substitute.
83863         * lib/argp-help.c: Include <errno.h>, for program_invocation_short_name
83864         and program_invocation_name.
83865         (__argp_basename) [!_LIBC]: Remove; the only use was
83866         replaced by its body.
83867         (__argp_short_program_name): Change condition from
83868         !defined __argp_short_program_name to
83869         ! (defined _LIBC || HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME),
83870         to match argp-namefrob.h.
83871         (__argp_failure): Don't assume strerror_r returns char *.
83872         * lib/argp-parse.c (N_): Define unconditionally.
83873         (argp_default_options): Fill out initializers with 0 to avoid
83874         gcc warnings.
83875
83876 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
83877
83878         * config/srclist.txt: Remove getopt.c, getopt.h (renamed to getopt_.h),
83879         getopt1.c.
83880
83881 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
83882
83883         Merge from coreutils.
83884
83885         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for wmemchr and wmemcpy.
83886
83887         * m4/obstack.m4 (gl_PREREQ_OBSTACK): Require
83888         gl_AC_HEADER_INTTYPES_H, gl_AC_HEADER_STDINT_H, gl_AC_TYPE_UINTMAX_T.
83889
83890 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
83891
83892         Merge from coreutils.
83893
83894         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Don't set to 1 if missing
83895         wmemchr or wmemcpy.  Problem reported by Robert Dahlem
83896         for Reliant Unix 5.43.
83897
83898         * lib/obstack.c: Include <inttypes.h> and <stdint.h> if available.
83899         (union fooround): Use uintmax_t, not long int.
83900         The rest is a merge from libc:
83901         [defined _LIBC]: Include <shlib-compat.h>.
83902         (_obstack) [defined _LIBC]: Remove after 2.3.4.
83903
83904         * lib/settime.c (settime): Recode to avoid warning with
83905         Sun Forte C 6U2.
83906
83907         * lib/strverscmp.c: Convert to UTF-8.
83908
83909 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
83910
83911         * modules/obstack (Files): Add m4/inttypes_h.m4, m4/stdint_h.m4,
83912         m4/uintmax_t.m4.
83913
83914 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
83915
83916         * modules/xalloc-die: New file.
83917         * modules/xalloc: Remove dependencies on error, gettext, exitfail.
83918
83919         * modules/md5 (Files): Add m4/uint32_t.m4.
83920         * modules/sha1: Renamed from modules/sha.
83921         (Files):
83922         Rename lib/sha.h to lib/sha1.h.
83923         Rename lib/sha.c to lib/sha1.c.
83924         Rename m4/sha.m4 to m4/sha1.m4.
83925         (lib_SOURCES): Likewise.
83926         (configure.ac): Rename gl_SHA to gl_SHA1.
83927         (Include): sha.h -> sha1.h.
83928
83929 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
83930
83931         * m4/uint32_t.m4, m4/uintptr_t.m4: New files.
83932         * m4/sha1.m4: Renamed from sha.m4.
83933         (gl_SHA1): Renamed from gl_SHA.  All uses changed.
83934
83935 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
83936
83937         * lib/obstack.h (obstack_empty_p):
83938         Don't assume that chunk->contents is suitably aligned.
83939         * lib/obstack.c (_obstack_begin, _obstack_begin_1, _obstack_newchunk):
83940         Likewise. Problem reported by Benno in
83941         <http://sources.redhat.com/ml/libc-alpha/2004-08/msg00055.html>.
83942
83943         * lib/chown.c (rpl_chown): Work even if the file is writeable but not
83944         readable.  This could be improved further but it'd take some work.
83945
83946 2004-08-08  Simon Josefsson  <jas@extundo.com>
83947
83948         * modules/xgethostname (Depends-on): Remove exit and error (not
83949         used).
83950
83951         * modules/getpass-gnu: Add getpass.h.
83952         (Depends-on): Add stdbool.
83953         * modules/getpass: Add getpass.h.
83954
83955 2004-08-08  Simon Josefsson  <jas@extundo.com>
83956
83957         * m4/getpass.m4 (gl_FUNC_GETPASS, gl_FUNC_GETPASS_GNU):
83958         Check getpass declaration.
83959
83960 2004-08-08  Simon Josefsson  <jas@extundo.com>
83961
83962         * lib/xgethostname.c: Don't include error.h (not used).
83963
83964         * lib/getpass.h: Add.
83965         * lib/getpass.c: Include getpass.h first.
83966
83967 2004-08-08  Paul Eggert  <eggert@cs.ucla.edu>
83968
83969         * lib/xalloc-die.c: New file.
83970         * lib/xalloc.h (xalloc_fail_func, xalloc_msg_memory_exhausted): Remove.
83971         All uses removed.
83972         * lib/xmalloc.c (xalloc_fail_func, xalloc_msg_memory_exhausted):
83973         Likewise. Move inclusions of gettext.h, error.h, exitfail.h to
83974         xalloc-die.c.
83975         (_, N_, xalloc_die): Move to xalloc-die.c.
83976         * lib/userspec.c (parse_user_spaec): Use xstrdup rather than strdup,
83977         so that we needn't mess with xalloc_msg_memory_exhausted.
83978
83979         * lib/sha1.h: Renamed from sha.h.
83980         (SHA1_H): Renamed from _SHA_H.
83981         (sha1_ctx): Renamed from sha_ctx.
83982         (sha1_init_ctx): Renamed from sha_init_ctx.
83983         (sha1_process_block): Renamed from sha_process_block.
83984         (sha1_process_bytes): Renamed from sha_process_bytes.
83985         (sha1_finish_ctx): Renamed from sha_finish_ctx.
83986         (sha1_read_ctx): Renamed from sha_read_ctx.
83987         (sha1_stream): Renamed from sha_stream.
83988         (sha1_buffer): Renamed from sha_buffer.
83989         * lib/sha1.c: Likewise; renamed from sha.c.
83990         Do not include <sys/types.h>.
83991         Include <stddef.h> rather than <stdlib.h>.
83992
83993 2004-08-08  Bruno Haible  <bruno@clisp.org>
83994
83995         * lib/pathname.h (FILE_SYSTEM_PREFIX_LEN): Renamed from
83996         FILESYSTEM_PREFIX_LEN.
83997         * lib/progreloc.c: Likewise.
83998         * lib/concatpath.c (concatenated_pathname): Use FILE_SYSTEM_PREFIX_LEN.
83999
84000 2004-08-06  Simon Josefsson  <jas@extundo.com>
84001
84002         * modules/progname (Depends-on): Don't depend on stdbool.
84003
84004 2004-08-06  Simon Josefsson  <jas@extundo.com>
84005
84006         * modules/getsubopt: New file.
84007         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
84008         getsubopt.
84009
84010 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
84011
84012         More merge from coreutils.
84013
84014         * m4/utimens.m4, m4/utimecmp.m4: New files.
84015         * m4/backupfile.m4, euidacces.m4, acl.m4, afs.m4, calloc.m4, dirfd.m4,
84016         fsusage.m4, jm-macros.m4, ls-mntd-fs.m4, md5.m4, mountlist.m4,
84017         prereq.m4, sha.m4: Import changes from coreutils.
84018
84019 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
84020
84021         More merge from coreutils.
84022         * modules/raise, modules/readtokens0, modules/utimens:
84023         * modules/utimecmp, module/xnanosleep: New files.
84024         * modules/strftime: Add lib/strftime.h.
84025         Change include from <time.h> to "strftime.h".
84026         * modules/yesno: Add lib/yesno.h.
84027         * modules/backupfile: Remove lib/addext.c.
84028         * modules/euidaccess: Add stat-macros.h.
84029         * modules/canonicalize, modules/euidaccess,
84030         modules/filemode, modules/lchown, modules/makepath,
84031         modules/rmdir, modules/stat: Likewise.
84032
84033 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
84034
84035         Merge from tar.
84036         * lib/argp-help.c (make_hol, hol_append): Don't assume that
84037         SIZE_MAX is a valid preprocessor constant.
84038         (__argp_basename): Change from "#ifndef _LIBC"
84039         to "#ifndef __argp_short_program_name", so that
84040         we don't compile these functions for tar.
84041
84042         More merges from coreutils.
84043         * lib/raise.c, lib/readtokens0.h, lib/readtokens0.c, lib/strftime.h:
84044         * lib/utimens.h, lib/utimens.c, lib/utimecmp.h, lib/utimecmp.c:
84045         * lib/xnanosleep.h, lib/xnanosleep.c, lib/yesno.h: New files.
84046         * lib/addext.c: Remove; no longer needed.
84047         * lib/yesno.c, lib/argmatch.h, lib/argmatch.c, lib/backupfile.h,
84048         lib/backupfile.c, lib/euidaccess.c, lib/filemode.c, lib/closeout.c,
84049         lib/dup2.c, lib/exclude.c, lib/fileblocks.c, lib/filemode.c,
84050         lib/fnmatch.c, lib/fnmtahc_loop.c, lib/fopen-safer.c, lib/fsusage.c,
84051         lib/fsusage.h, lib/ftruncate.c, lib/full-write.c, lib/getdate.y,
84052         lib/getloadavg.c, lib/getugroups.c, lib/hard-locale.c,
84053         lib/hard-locale.h, lib/hash.c, lib/human.c, lib/human.h, lib/lchown.c,
84054         lib/lchown.h, lib/makepath.c, lib/makepath.h, lib/md5.c, lib/md5.h,
84055         lib/memchr.c, lib/memcoll.c, lib/memrchr.c, lib/modechange.c,
84056         lib/modechange.h, lib/mountlist.c, lib/mountlist.h, lib/nanosleep.c,
84057         lib/posixtm.c, lib/putenv.c, quotearg.c, lib/quotearg.h,
84058         lib/readtokens.c, lib/readutmp.c, lib/readutmp.h, lib/rmdir.c,
84059         lib/safe-read.c, lib/save-cwd.c, lib/savedir.c, lib/setenv.c,
84060         lib/sig2str.c, lib/stat.c, lib/strtoimax.c, lib/strverscmp.c,
84061         lib/userspec.c, lib/utime.c, lib/version-etc.c., lib/xgethostname.c,
84062         lib/xmemcoll.c, lib/xreadlink.c, lib/xstrtod.c, lib/xstrtod.h,
84063         lib/xstrtoimax.c, lib/xstrtol.c, lib/xstrtol.h, lib/xstrtoumax.c:
84064         Import changes from coreutils.
84065
84066 2004-08-05  Simon Josefsson  <jas@extundo.com>
84067
84068         * m4/strdup.m4: Always run gl_PREREQ_STRDUP, since strdup.h need it.
84069
84070 2004-08-05  Simon Josefsson  <jas@extundo.com>
84071
84072         * m4/getsubopt.m4: New file.
84073
84074 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
84075
84076         Merge from coreutils.
84077
84078         * m4/c-strtod.m4, m4/canonicalize.m4, m4/fcntl-safer.m4:
84079         * m4/getcwd-path-max.m4: New files.
84080
84081         * m4/dos.m4 (gl_AC_DOS): filesystem -> file system renaming.
84082         FILESYSTEM_PREFIX_LEN ->
84083         FILE_SYSTEM_PREFIX_LEN.
84084         FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX ->
84085         FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX.
84086         FILESYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR ->
84087         FILE_SYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR.
84088
84089         * m4/path-concat.m4 (gl_PATH_CONCAT): Don't require gl_AC_DOS, the
84090         prerequisite modules now handle the DOS stuff.
84091         Don't check for unistd.h.
84092
84093 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
84094
84095         Merge from coreutils.
84096
84097         * lib/.gdb-history: Remove; this doesn't belong here.
84098
84099         * lib/c-strtod.c, lib/c-strtod.h, lib/c-strtold.c, lib/cycle-check.c:
84100         * lib/cycle-check.h, lib/dev-ino.h, lib/canonicalize.h:
84101         * lib/canonicalize.c, lib/fcntl-safer.h, lib/fcntl-safer.c:
84102         * lib/getcwd.c: New files.
84103
84104         * lib/dirname.h: Include <stdbool.h>.
84105         (FILE_SYSTEM_PREFIX_LEN): Renamed from FILESYSTEM_PREFIX_LEN,
84106         for consistency with POSIX terminology.  All uses changed.
84107         (IS_ABSOLUTE_FILE_NAME, IS_RELATIVE_FILE_NAME): New macros.
84108         (strip_trailing_slashes): Use bool for booleans.
84109         * lib/stripslash.c (strip_trailing_slashes): Likewise.
84110
84111         * lib/error.c: Work around bug in OpenBSD 3.4 sterror_r: it
84112         sometimes returns a positive errno value even when it succeeds.
84113         (print_errno_message) [!LIBC]: Fall back on strerror if
84114         __strerror_r fails.
84115
84116         * lib/path-concat.c (mempcpy): Don't define if a system header defines
84117         it. Don't include stdio.h, stdlib.h, unistd.h, strdup.h.
84118         (longest_relative_suffix): New function.
84119         (path_concat): Use it.  Assume first argument is not NULL.
84120         Port to DOS.  Omit redundant separators.
84121         Report an error instead of returning NULL.
84122         Use mempcpy instead of memcpy.
84123         (xpath_concat): Remove: not declared or used.
84124
84125         * lib/same.h: Include <stdbool.h>
84126         (same_name): Return bool, not int.
84127         * lib/same.c (same_name): Likewise.
84128         (errno): Don't declare; we assume C89 or better now.
84129
84130         * lib/stat-macros (S_ISCTG, S_ISOFD, S_ISOFL): New macros,
84131         if not already defined.
84132
84133         * lib/xgetcwd.c (errno): Don't declare; we assume C89 or better now.
84134         * lib/dup-safer.c (errno): Likewise.
84135
84136 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
84137
84138         Merge from coreutils.
84139         * modules/c-strtod, modules/c-strtold, modules/canonicalize:
84140         * modules/cycle-check, modules/fcntl-safer, modules/getcwd: New files.
84141         * modules/path-concat: Don't depend on strdup.
84142
84143 2004-08-03  Simon Josefsson  <jas@extundo.com>
84144
84145         * lib/strdup.h: Only use HAVE_DECL_STRDUP if defined.
84146         * lib/progname.h: Don't include stdbool.h.
84147
84148 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
84149
84150         * modules/fatal: Remove, as the "fatal" module wasn't used or working.
84151         * MODULES.html.sh (func_all_modules): Remove fatal.
84152
84153 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
84154
84155         * m4/fatal.m4: Remove, as the "fatal" module wasn't used or working.
84156
84157 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
84158
84159         * lib/fatal.c, fatal.h: Remove as the "fatal" module wasn't used or
84160         working.
84161
84162 2004-08-02  Simon Josefsson  <jas@extundo.com>
84163
84164         * lib/getsubopt.h: New file, with comments from Bruno Haible.
84165         * lib/getsubopt.c: New file, from glibc, but slightly modified based on
84166         suggestions from Paul Eggert <eggert@cs.ucla.edu>.
84167
84168 2004-08-01  Simon Josefsson  <jas@extundo.com>
84169
84170         * lib/xgetdomainname.c: Include stdlib.h, for free().
84171
84172 2004-07-19  Bruno Haible  <bruno@clisp.org>
84173
84174         * MODULES.html.sh (func_all_modules): Add dummy.
84175
84176 2004-07-16  Simon Josefsson  <jas@extundo.com>
84177
84178         * modules/dummy: New file.
84179
84180 2004-07-16  Simon Josefsson  <jas@extundo.com>
84181
84182         * lib/dummy.c: New file.
84183
84184 2004-07-16  Bruno Haible  <bruno@clisp.org>
84185
84186         * lib/backupfile.h: Add extern "C" for C++.
84187         * lib/closeout.h: Likewise.
84188         * lib/copy-file.h: Likewise.
84189         * lib/findprog.h: Likewise.
84190         * lib/full-write.h: Likewise.
84191         * lib/pathname.h: Likewise.
84192         * lib/progname.h: Likewise.
84193         * lib/stpcpy.h: Likewise.
84194         * lib/stpncpy.h: Likewise.
84195         * lib/strcase.h: Likewise.
84196         * lib/strstr.h: Likewise.
84197         * lib/xalloc.h: Likewise.
84198
84199         * lib/mbswidth.h: Add extern "C" for C++.
84200         Reported by Albert Chin-A-Young <china@thewrittenword.com>.
84201
84202 2004-07-13  Robert Millan  <robertmh@gnu.org>
84203
84204         * m4/host-os.m4: s/KNetBSD/kNetBSD/g and s/KFreeBSD/kFreeBSD/g.
84205
84206 2004-07-09  Simon Josefsson  <jas@extundo.com>
84207
84208         * lib/getndelim2.c: Include stddef.h, for ptrdiff_t.  (FreeBSD 4.9
84209         failed without this.)
84210
84211 2004-07-09  Paul Eggert  <eggert@cs.ucla.edu>
84212
84213         * modules/chown (Files): Add lib/fchown-stub.c, since
84214         gl_PREREQ_CHOWN invokes AC_LIBOBJ(fchown-stub).
84215
84216 2004-07-09  Paul Eggert  <eggert@cs.ucla.edu>
84217
84218         * lib/fchown-stub.c: New file.
84219
84220 2004-06-24  Jim Meyering  <jim@meyering.net>
84221
84222         * lib/obstack.h (obstack_base): Cast to (void *), per documentation.
84223
84224 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
84225
84226         * modules/argz: Omit "#include".
84227
84228         * MODULES.html.sh (func_all_modules): Add calloc, to match
84229         2004-06-01 addition of calloc module.
84230
84231 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
84232
84233         * m4/argz.m4: New file, which is autoupdated from libtool.
84234
84235 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
84236
84237         * lib/argz.c, lib/argz_.h: New files, which are autoupdated from
84238         libtool.
84239
84240 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
84241
84242         * config/srclist-update: Don't insist on "USA." before the
84243         close-comment, as libtool omits the period and puts the */ on a
84244         separate line.
84245         * config/srclist.txt: Add argz.c, argz_.h, argz.m4.
84246         * config/srclistvars.sh: Add LIBTOOL (for eggert only).
84247
84248 2004-06-22  Gary V. Vaughan  <gary@gnu.org>
84249
84250         * modules/argz: New file.
84251         * MODULES.html.sh (func_all_modules): Add argz.
84252
84253 2004-06-12  Jim Meyering  <jim@meyering.net>
84254         and  Paul Eggert  <eggert@cs.ucla.edu>
84255
84256         * modules/hash (Files): Add lib/xalloc.h.
84257         * modules/pipe (Depends-on): Add wait-process.
84258         * modules/stat (Depends-on): Add xalloc.
84259         * modules/userspec (Files): Add lib/userspec.h.
84260         * modules/xstrto
84261
84262         Upgrade from gettext-0.13.
84263         * modules/gettext (Files): Add m4/intmax.m4, m4/longdouble.m4,
84264         m4/longlong.m4, m4/printf-posix.m4, m4/signed.m4, m4/size_max.m4,
84265         m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4.
84266
84267 2004-06-10  Jim Meyering  <jim@meyering.net>
84268
84269         * lib/calloc.c: New file.
84270
84271 2004-06-06  Paul Eggert  <eggert@cs.ucla.edu>
84272
84273         * lib/getdate.y (yylex): Allow space between sign and number.
84274         Problem reported by Dan Jacobson.
84275
84276 2004-06-01  Paul Eggert  <eggert@cs.ucla.edu>
84277
84278         Merge from coreutils CVS.
84279
84280         * m4/backupfile.m4, dirname.m4, human.m4, inttypes.m4, longlong.m4,
84281         makepath.m4, memchr.m4, memcmp.m4, mountlist.m4, path-concat.m4,
84282         putenv.m4, quotearg.m4, readutmp.m4, strtoimax.m4, strtoll.m4,
84283         strtoull.m4, strtoumax.m4, ulonglong.m4, vasnprintf.m4,
84284         xstrtol.m4: Fix copyright date and/or serial number.
84285
84286         * m4/chown.m4 (gl_PREREQ_CHOWN): Check for fcntl.h.
84287         See if we need an fchown replacement.
84288         (gl_FUNC_CHOWN_FOLLOWS_SYMLINK): New macro.
84289         (gl_FUNC_CHOWN): Require gl_FUNC_CHOWN_FOLLOWS_SYMLINK,
84290         and use the replacement function if we detect either defect.
84291
84292         * m4/prereq.m4 (gl_PREREQ): Add gl_ALLOCSA, gl_CLOEXEC, gl_INTTOSTR,
84293         gl_UTIMECMP.
84294
84295 2004-06-01  Paul Eggert  <eggert@cs.ucla.edu>
84296         and  Jim Meyering  <jim@meyering.net>
84297
84298         Merge from coreutils CVS.
84299
84300         * lib/stat-macros.h: New file, with contents from file-type.h
84301         and coreutils' system.h.
84302         * lib/file-type.c: Include "stat-macros.h".
84303         * lib/file-type.h (file_type): Move all macro definitions to new file,
84304         stat-macros.h.
84305
84306         * lib/chown.c (rpl_chown) [CHOWN_FAILS_TO_HONOR_ID_OF_NEGATIVE_ONE]:
84307         Wrap old code with this conditional.
84308         [CHOWN_MODIFIES_SYMLINK]: Try to work around a chown
84309         function that does not dereference symlinks.
84310         * lib/lchown.c (lchown) [CHOWN_MODIFIES_SYMLINK]: Just call chown.
84311
84312         * lib/xreadlink.c: Include xreadlink.h first, to catch .h file
84313         dependency problems.
84314         (xreadlink): Accept new arg SIZE, for efficiency.
84315         All decls and uses changed.
84316         * lib/xreadlink.h: Include <stddef.h>, for size_t.
84317
84318         * lib/.cppi-disable: Add alloca_.h, allocsa.h, exit.h, getndelim2.h,
84319         gettext.h, localcharset.h, strdup.h, strndup.h, strtoul.c, time_r.h.
84320
84321         * lib/.cvsignore: Add alloca.h, fnmatch.h, poll.h, stdbool.h,
84322         sysexits.h.
84323
84324 2004-06-01  Jim Meyering  <jim@meyering.net>
84325
84326         * m4/calloc.m4: New file.
84327
84328 2004-05-31  Paul Eggert  <eggert@cs.ucla.edu>
84329
84330         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Detect _Bool bug in HP aC++/ANSI
84331         C B3910B A.05.55 [Dec 04 2003].  Problem reported by Jim Meyering.
84332         Also, fix a typo in a diagnostic.
84333
84334 2004-05-30  Paul Eggert  <eggert@cs.ucla.edu>
84335
84336         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Do not require AC_FUNC_MALLOC
84337         or AC_FUNC_REALLOC.
84338
84339 2004-05-30  Paul Eggert  <eggert@cs.ucla.edu>
84340
84341         * lib/xmalloc.c (HAVE_MALLOC, HAVE_REALLOC): Do not require these
84342         macros to be defined.
84343         (xnmalloc_inline, xnrealloc_inline, xcalloc): Do not die if
84344         the allocator returns NULL because the requested size is zero.
84345
84346 2004-05-20  Paul Eggert  <eggert@cs.ucla.edu>
84347
84348         * lib/malloc/obstack.c (_obstack) [defined _LIBC]: Bring back this
84349         var.  Add comment explaining why libc still defines it.  This
84350         merges the following patch from glibc:
84351         http://sources.redhat.com/ml/libc-alpha/2004-05/msg00157.html
84352
84353 2004-05-20  Andreas Schwab  <schwab@suse.de>
84354
84355         * m4/free.m4: Replace free if it not known to work, not the other
84356         way round.
84357
84358 2004-05-19  Paul Eggert  <eggert@cs.ucla.edu>
84359
84360         * lib/obstack.c (_obstack): Remove unused variable.  It hasn't been
84361         present in glibc since revision 1.1 of this file.
84362         * lib/obstack.h (_obstack_free, obstack_1grow, obstack_1grow_fast,
84363         obstack_alignment_mask, obstack_alloc, obstack_base,
84364         obstack_blank, obstack_blank_fast, obstack_chunk_size,
84365         obstack_copy, obstack_copy0, obstack_finish, obstack_grow,
84366         obstack_grow0, obstack_init, obstack_int_grow,
84367         obstack_int_grow_fast, obstack_make_room, obstack_memory_used,
84368         obstack_next_free, obstack_object_size, obstack_ptr_grow,
84369         obstack_ptr_grow_fast, obstack_room): Remove declarations of
84370         nonexistent functions.
84371
84372 2004-05-18  Karl Berry  <karl@gnu.org>
84373
84374         * config/srclist.txt: break link for vasnprintf.c.
84375
84376 2004-05-17  Paul Eggert  <eggert@cs.ucla.edu>
84377
84378         Port obstack to the AS/400, where pointers are 16 bytes wide and
84379         you cannot cast an integer to a valid pointer.  This patch is
84380         currently waiting to be integrated into glibc; see
84381         <http://sources.redhat.com/ml/libc-alpha/2004-05/msg00073.html>.
84382
84383         * lib/obstack.h (__PTR_TO_INT, __INT_TO_PTR): Remove.
84384         All uses of __INT_TO_PTR (PTR_TO_INT ...) replaced by __PTR_ALIGN.
84385         (__BPTR_ALIGN, __PTR_ALIGN): New macros.
84386         (struct obstack): temp member is now a union of a pointer and
84387         an integer, instead of an integer.  All integer uses changed.
84388         This does not affect the physical layout of struct obstack,
84389         except on hosts (like the AS/400) where the size or alignment of
84390         void * is greater than that of ptrdiff_t.
84391         (obstack_finish) [! (defined __GNUC__ && defined __STDC__ &&
84392         __STDC__)]: Store temporary in pointer member of union, not
84393         integer member.
84394         * lib/obstack.c: Include <stddef.h>, for offsetof.
84395         (struct fooalign): Remove; it doesn't need a name.
84396         (union fooround): Change double to long double, and add void *.
84397         (DEFAULT_ALIGNMENT): Use offsetof to compute.
84398         (DEFAULT_ALIGNMENT, DEFAULT_ROUNDING): Now an enum constant,
84399         not a macro.  Hence the values are always int; so remove all
84400         casts-to-int in uses.
84401
84402 2004-05-17  Paul Eggert  <eggert@cs.ucla.edu>
84403
84404         * config/srclist.txt: Break link for argp-help.c and argp-parse.c until
84405         we can get this patch merged into glibc.
84406
84407 2004-05-17  Derek R. Price  <derek@ximbiot.com>
84408             Paul Eggert  <eggert@cs.ucla.edu>
84409
84410         * m4/argp: Depend on alloca.
84411
84412 2004-05-17  Derek R. Price  <derek@ximbiot.com>
84413             Paul Eggert  <eggert@cs.ucla.edu>
84414
84415         * lib/argp-help.c, argp-parse.c: Assume <alloca.h> rather than
84416         freecoding.
84417
84418 2004-05-17  Bruno Haible  <bruno@clisp.org>
84419
84420         * lib/vasnprintf.c (VASNPRINTF): Correctly handle the case of a
84421         precision that consists of a '.' followed by an empty digit string.
84422         Patch by Tor Lillqvist <tml@iki.fi>.
84423
84424 2004-05-16  Paul Eggert  <eggert@cs.ucla.edu>
84425
84426         * m4/alloca.m4 (gl_FUNC_ALLOCA): Define HAVE_ALLOCA_H always,
84427         for backward compatibility with older code.  We need our own
84428         alloca.h if _AIX is defined.  Define HAVE_ALLOCA if we discover
84429         it under some other name, and our alloca.h will define it.
84430
84431 2004-05-16  Paul Eggert  <eggert@cs.ucla.edu>
84432             Derek Price  <derek@ximbiot.com>
84433
84434         * lib/alloca.c: Include <alloca.h>, to get our interface.
84435         * lib/alloca_.h: Use __alloca on AIX, so that we don't have to
84436         include <alloca.h> first.  Use C89 prototype for alloca; this
84437         requires including <stddef.h> for size_t.  Use extern "C" if C++.
84438         Use #elif for simplicity, since we can assume C89 now.
84439         Don't try to source the system alloca.h since it will not be found
84440         and to prevent recursively including its replacement.
84441         * lib/fnmatch.c: Include <alloca.h> instead of opencoding.
84442         * lib/regex.c: Likewise.
84443
84444 2004-05-16  Derek Price  <derek@ximbiot.com>
84445             Paul Eggert  <eggert@cs.ucla.edu>
84446
84447         getline cleanup.  This changes the getndelim2 API: both order of
84448         arguments, and meaning of delim2 (now uses EOF, not 0, to indicate
84449         no delimiter).
84450
84451         * lib/getline.c: Don't include stddef.h or stdio.h, since our
84452         interface does that.
84453         (getline): Always use getdelim, so that we don't have two
84454         copies of this code.
84455         * lib/getndelim2.c: Include <limits.h>, <inttypes.h>, <stdint.h>
84456         if available.
84457         (PTRDIFF_MAX, SIZE_MAX, SSIZE_MAX): Define if not defined.
84458         (GETNDELIM2_MAXIMUM): New macro.
84459         (getndelim2): Reorder arguments.  delim==EOF now means no delimiter,
84460         instead of the old practice of delim2==0.  All callers changed.
84461         Return -1 on overflow, instead of returning junk.
84462         Do not set *linesize unless allocation succeeds.
84463         * lib/getndelim2.h: Do not include stddef.h; no longer needed, now
84464         that we include sys/types.h.
84465         * lib/getnline.h: Likewise.
84466         * lib/getndelim2.h (GETNLINE_NO_LIMIT): New macro.
84467         (getndelim2): Reorder arguments.
84468         * lib/getnline.c (getnline, getndelim):
84469         Don't discard the NMAX argument.
84470         (getnline): Invoke getndelim, to avoid code duplication.
84471         * lib/getnline.h (GETNLINE_NO_LIMIT): New macro, used instead
84472         of (size_t) -1 by callers of the getnline family.
84473
84474 2004-05-13  Paul Eggert  <eggert@cs.ucla.edu>
84475
84476         * m4/gettime.m4 (gl_GETTIME): Require gl_TIMESPEC.
84477         Check for gettimeofday.
84478         * m4/settime.m4 (gl_SETTIME): Require gl_TIMESPEC.
84479         Check for settimeofday, stime.
84480
84481 2004-05-13  Paul Eggert  <eggert@cs.ucla.edu>
84482
84483         * lib/nanosleep.c (suspended): Change its type from int to
84484         sig_atomic_t volatile.
84485         (first_call): Make it private to rpl_nanosleep, and have it
84486         be zero initially as that's a bit faster.
84487         (my_usleep): Round up fractional times instead of truncating them,
84488         as this is the usual meaning for 'sleep'.
84489
84490         * lib/gettime.c (gettime): Fall back on `time' if `gettimeofday'
84491         doesn't work.
84492         * lib/settime.c: Include <unistd.h>, for stime (on Solaris 8, anyway).
84493         (ENOSYS): Define if not defined.
84494         (settime): Fall back on stime if it exists and settimeofday fails.
84495         But don't bother with fallbacks if a method fails with errno == EPERM.
84496
84497 2004-05-11  Jim Meyering  <jim@meyering.net>
84498
84499         Prior to this change, the save_cwd caller required read access to the
84500         current directory on most systems (ones with the fchdir function).
84501
84502         * lib/save-cwd.c (save_cwd) [HAVE_FCHDIR]: If opening `.' read-only
84503         fails, try write-only, and finally, resort to using xgetcwd.
84504
84505 2004-05-06  Paul Eggert  <eggert@cs.ucla.edu>
84506
84507         * lib/obstack.c, obstack.h: Import changes from libc.
84508
84509 2004-04-28  Bruno Haible  <bruno@clisp.org>
84510
84511         * lib/findprog.c (find_in_path): Treat Cygwin like Windows, since it
84512         also implicitly appends .exe to executables.
84513         * lib/localcharset.c (ISSLASH): Treat Cygwin like Windows, since it now
84514         accepts Windows pathnames.
84515         * lib/pathname.h (ISSLASH, IS_PATH_WITH_DIR, FILESYSTEM_PREFIX_LEN):
84516         Treat Cygwin like Windows, since it now accepts Windows pathnames.
84517         * lib/progreloc.c (ISSLASH, IS_PATH_WITH_DIR, FILESYSTEM_PREFIX_LEN):
84518         Treat Cygwin like Windows, since it now accepts Windows pathnames.
84519         Reported by Derek Robert Price <derek@ximbiot.com>.
84520
84521 2004-04-21  Karl Berry  <karl@gnu.org>
84522
84523         * config/srclist.txt (localcharset.c): break sync.
84524
84525 2004-04-20  Paul Eggert  <eggert@twinsun.com>
84526
84527         * m4/host-os.m4: Add a copyright notice.
84528
84529 2004-04-20  Jim Meyering  <jim@meyering.net>
84530
84531         Change UTILS_ to gl_ in AC_DEFINE'd names.
84532         Change utils_- and jm_-prefixed variables, too.
84533         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Renamed from
84534         UTILS_FUNC_MKDIR_TRAILING_SLASH.
84535         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Renamed from UTILS_FUNC_MKSTEP.
84536
84537         * m4/dirfd.m4 (gl_FUNC_DIRFD): Rename from UTILS_FUNC_DIRFD.
84538         Don't emit trailing blanks.
84539         Also rename jm_-prefixed variables to have gl_ prefix.
84540
84541         * m4/host-os.m4 (gl_HOST_OS): Rename from UTILS_HOST_OS.
84542         Also rename jm_-prefixed variables to have gl_ prefix.
84543
84544         * m4/jm-macros.m4: Reflect the renamings.
84545         * m4/prereq.m4: Likewise.
84546
84547 2004-04-20  Jim Meyering  <jim@meyering.net>
84548
84549         * lib/getndelim2.c (getndelim2): Upon realloc failure, don't leak
84550         memory.
84551
84552 2004-04-20  Jim Meyering  <jim@meyering.net>
84553             Bruno Haible  <bruno@clisp.org>
84554
84555         * lib/localcharset.c (get_charset_aliases) [!VMS && !WIN32]: Don't leak
84556         memory when realloc fails.
84557
84558 2004-04-19  Jim Meyering  <jim@meyering.net>
84559
84560         * m4/readutmp.m4 (gl_PREREQ_READUTMP): Require gl_FUNC_FREE,
84561         now that readutmp.c may call `free (0)'.
84562
84563 2004-04-19  Bruno Haible  <bruno@clisp.org>
84564
84565         * m4/mbrtowc.m4: Change jm_ to gl_ in cache variables as well.
84566         * m4/inttypes_h.m4: Likewise.
84567         * m4/stdint_h.m4: Likewise.
84568         * m4/intmax_t.m4: Likewise.
84569         * m4/uintmax_t.m4: Likewise.
84570
84571 2004-04-18  Jim Meyering  <jim@meyering.net>
84572
84573         * m4/prereq.m4: Don't forbid jm_ prefix.
84574
84575         * m4/afs.m4, m4/allocsa.m4, m4/assert.m4, m4/backupfile.m4:
84576         * m4/bison.m4, m4/check-decl.m4, m4/chown.m4, m4/d-ino.m4:
84577         * m4/d-type.m4, m4/dirname.m4, m4/dos.m4, m4/error.m4, m4/fpending.m4:
84578         * m4/fstypename.m4, m4/fsusage.m4, m4/ftruncate.m4, m4/getdate.m4:
84579         * m4/getgroups.m4, m4/gettext.m4, m4/glibc21.m4, m4/group-member.m4:
84580         * m4/human.m4, m4/intmax.m4, m4/intmax_t.m4, m4/inttostr.m4:
84581         * m4/inttypes.m4, m4/inttypes_h.m4, m4/jm-macros.m4, m4/jm-winsz1.m4:
84582         * m4/jm-winsz2.m4, m4/lchown.m4, m4/lib-check.m4, m4/link-follow.m4:
84583         * m4/localcharset.m4, m4/longlong.m4, m4/ls-mntd-fs.m4, m4/lstat.m4:
84584         * m4/makepath.m4, m4/mbrtowc.m4, m4/mbswidth.m4, m4/memchr.m4:
84585         * m4/memcmp.m4, m4/mkdtemp.m4, m4/mkstemp.m4, m4/mountlist.m4:
84586         * m4/nanosleep.m4, m4/path-concat.m4, m4/perl.m4, m4/prereq.m4:
84587         * m4/putenv.m4, m4/quotearg.m4, m4/regex.m4, m4/stat.m4:
84588         * m4/stdint_h.m4, m4/strftime.m4, m4/strtoimax.m4, m4/strtoll.m4:
84589         * m4/strtoull.m4, m4/strtoumax.m4, m4/timespec.m4, m4/uintmax_t.m4:
84590         * m4/ulonglong.m4, m4/unlink-busy.m4, m4/unlocked-io.m4, m4/uptime.m4,
84591         * m4/utimbuf.m4, m4/utime.m4, m4/utimes-null.m4, m4/vasnprintf.m4:
84592         * m4/xstrtoimax.m4, m4/xstrtol.m4, m4/xstrtoumax.m4:
84593         Change jm_ to gl_ in AC_DEFINE'd names. Update all uses.
84594
84595 2004-04-18  Jim Meyering  <jim@meyering.net>
84596
84597         * lib/readutmp.c (read_utmp) [UTMP_NAME_FUNCTION]: Upon realloc
84598         failure, don't leak memory and do call END_UTMP_ENT.
84599
84600 2004-04-16  Jim Meyering  <jim@meyering.net>
84601
84602         * m4/prereq.m4 (jm_PREREQ_STAT): Remove macro.  It is specific to
84603         coreutils' stat program.
84604         (gl_PREREQ): Don't require jm_PREREQ_STAT.
84605
84606 2004-04-11  Paul Eggert  <eggert@twinsun.com>
84607
84608         * lib/inttostr.h: Include <limits.h> unconditionally, since we assume
84609         C89.
84610         (CHAR_BIT): Remove, since we assume C89.
84611         Include <stdint.h> if available, as per current Autoconf CVS advice.
84612
84613 2004-03-31  Jim Meyering  <jim@meyering.net>
84614
84615         * m4/prereq.m4: Require AC_FUNC_MALLOC, not jm_FUNC_MALLOC.
84616         Require AC_FUNC_REALLOC, not jm_FUNC_REALLOC.
84617         * m4/xalloc.m4: Likewise.
84618
84619 2004-03-30  Paul Eggert  <eggert@twinsun.com>
84620
84621         Merge from coreutils.
84622
84623         * m4/inttostr.m4: New file.
84624         * m4/getdate.m4 (gl_GETDATE): Remove time-related stuff.
84625         Require AM_STDBOOL_H and gl_TIMESPEC instead.
84626         Require gl_CLOCK_TIME.
84627         * m4/clock_time.m4 (gl_CLOCK_TIME): Require AC_GNU_SOURCE.
84628
84629 2004-03-30  Paul Eggert  <eggert@twinsun.com>
84630
84631         * lib/cloexec.h, cloexec.c (set_cloexec_flag): Return int
84632         not bool, to be more consistent with Unix conventions.
84633         Suggested by Bruno Haible.
84634
84635         Merge from coreutils.
84636
84637         * lib/imaxtostr.c, lib/inttostr.c, lib/inttostr.h, lib/offtostr.c:
84638         * lib/umaxtostr.c: New files.
84639
84640         * lib/getdate.h: Include stdbool.h, and timespec.h instead of
84641         the usual <time.h> dance.
84642         (get_date): Change signature to support fractional time stamps.
84643         All callers changed.
84644         * lib/getdate.y: Include "getdate.h" first, as we can now
84645         assume C89 and don't need to worry about 'const'.
84646         Similarly, include "unlocked-io.h" near start, not in middle.
84647         Include <limits.h>.
84648         (textint.value): Use long int rather than int.
84649         (textint.digits): Use size_t rather than int.
84650         (BILLION, LOG10_BILLION): New constants.
84651         (parser_control): New member rel_ns.  Members day_ordinal,
84652         time_zone, month, day, hour, minutes, rel_year, rel_month,
84653         rel_day, rel_hour, rel_minutes, rel_seconds
84654         are now long int, not int.  Member seconds is now struct timespec,
84655         not int.  New member timespec_seen.  Members dates_seen, days_seen,
84656         local_zones_seen, rels_seen, times_seen, zones_seen are now size_t,
84657         not int.
84658         (%union.intval): Now long int, not int.
84659         New member timespec.
84660         (tSDECIMAL_NUMBER, tUDECIMAL_NUMBER): New tokens.
84661         (seconds, signed_seconds, unsigned_seconds): New nonterminals.
84662         (spec): Now is a timespec or an item list.
84663         (timespec, items): New nonterminals.
84664         (time, rel, relunit, number, get_date):
84665         Add support for fractional seconds.
84666         (time): Fix bug: seconds weren't cleared in "00:00 +0000" syntax.
84667         (gmtime, localtime, mktime): Remove decls; not needed with C89.
84668         (to_hour): First arg is now long int, not int.
84669         (to_year): Returns long int, not int.
84670         Don't treat year -70 like 70.
84671         (tm_diff): Returns long int, not int.
84672         (lookup_word): Use bool instead of int when appropriate.
84673         (yylex): Use size_t for count, not int.
84674         Detect overflow when parsing large integer constants.
84675         Add support for fractions.
84676         (get_date): Make pointers 'const' if possible.
84677         Use more-portable code to detect integer overflow.
84678         (main) [TEST]: Adjust to above changes.  Test for localtime failure.
84679         Don't use ctime; it's not reliable if the year has >4 digits.
84680
84681         * lib/human.c (humblock): Inspect BLOCKSIZE if BLOCK_SIZE isn't set.
84682         This is for compatibility with BSD.
84683
84684         * lib/timespec.h (ST_TIME_CMP_NS, ST_TIME_CMP): Define.
84685         (ATIME_CMP, CTIME_CMP, MTIME_CMP, TIMESPEC_NS): Likewise.
84686         From coreutils' system.h.
84687
84688         * lib/userspec.c: Don't include "posixver.h".
84689         (parse_user_spec): Fall back on USER.GROUP parsing, regardless
84690         of POSIX version, as POSIX 1003.1-2001 allows that behavior as a
84691         compatible extension.  Simplify code by removing a boolean int
84692         that was always nonzero if a string was nonnull.
84693
84694 2004-03-30  Jim Meyering  <jim@meyering.net>
84695
84696         Merge from coreutils.
84697
84698         Avoid a configure-time warning about sys/ucred.h on OSF V4.0.
84699         * m4/ls-mntd-fs.m4: Test for sys/ucred.h separately, since
84700         on some systems one must include <grp.h> before it.
84701         Reported by Christian Krackowizer.
84702
84703 2004-03-30  Jim Meyering  <jim@meyering.net>
84704
84705         Merge from coreutils.
84706
84707         * lib/mountlist.c [HAVE_SYS_UCRED_H]: Include grp.h before sys/ucred.h.
84708
84709         * lib/readtokens.c (readtoken): Don't leak 64 bytes when reading
84710         an empty input stream.
84711
84712         * lib/readtokens.c: Include <stdbool.h>.
84713         (readtoken): Use `size_t' rather than int/long.
84714         All callers adjusted.
84715         Use `bool' rather than `int' where appropriate.
84716         Use memset rather than an explicit loop.
84717         Use x2nrealloc rather than xrealloc.
84718         Allow the use of `\0' as a delimiter.
84719         (readtokens): Likewise.
84720         * lib/readtokens.h (readtoken, readtokens): Update prototypes.
84721
84722 2004-03-30  Jim Meyering  <jim@meyering.net>
84723
84724         * m4/realloc.m4: Remove file, since now it does no more than
84725         AC_REQUIRE([AC_FUNC_REALLOC]), and that can be done via
84726         the `configure.ac' section of module/realloc.
84727         * m4/malloc.m4: Likewise, but for AC_FUNC_MALLOC.
84728
84729 2004-03-30  Bruno Haible  <bruno@clisp.org>
84730
84731         * lib/getloadavg.c (getloadavg): Don't assume setlocale returns
84732         nonnull.
84733
84734 2004-03-29  Paul Eggert  <eggert@twinsun.com>
84735
84736         Merge changes to getloadavg.c from coreutils and Emacs.
84737
84738         * lib/getloadavg.c [!defined HAVE_SETLOCALE] (setlocale):
84739         Define to an expression, not to the empty string.
84740         Include cloexec.h and xalloc.h.
84741         (getloadavg): Restore LC_NUMERIC locale after setting it temporarily.
84742         Use set_cloexec_flag rather than rolling our own.
84743         * lib/cloexec.c, lib/cloexec.h: New files.
84744
84745 2004-03-29  Paul Eggert  <eggert@twinsun.com>
84746
84747         * m4/cloexec.m4: New file.
84748
84749 2004-03-18  Paul Eggert  <eggert@twinsun.com>
84750
84751         * lib/getopt.h: Sync with libc CVS.
84752
84753 2004-03-18  Paul Eggert  <eggert@twinsun.com>
84754             Bruno Haible  <bruno@clisp.org>
84755
84756         * m4/mbswidth.m4 (gl_MBSWIDTH): Also test whether <wchar.h> declares
84757         mbswidth.
84758
84759 2004-03-18  Paul Eggert  <eggert@twinsun.com>
84760             Bruno Haible  <bruno@clisp.org>
84761
84762         * lib/mbswidth.h: Include <wchar.h> only if
84763         HAVE_DECL_MBSWIDTH_IN_WCHAR_H, not on all platforms that have
84764         <wchar.h>.
84765         * lib/mbswidth.c: Include <stdio.h> and <time.h> before <wchar.h>.
84766
84767 2004-03-09  Paul Eggert  <eggert@twinsun.com>
84768
84769         * lib/argp-parse.c, getopt.c, getopt.h, getopt1.c:
84770         Sync with libc CVS.
84771         * lib/getopt_int.h: New file, also synced from libc.
84772
84773 2004-03-09  Paul Eggert  <eggert@twinsun.com>
84774
84775         * config/srclistvars.sh: Add GNUWWWLICENSES for eggert.
84776         * config/srclist.txt: Sync getopt with libc.  Add getopt_int.h.
84777         Bring back getopt.c, getopt.h, getopt1.c.
84778
84779 2004-03-07  Paul Eggert  <eggert@twinsun.com>
84780
84781         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Renamed from jm_PREREQ_C_STACK.
84782         All uses changed.  Check for sa_sigaction member; this fixes
84783         a bug first reported by Jason Andrade in
84784         <http://mail.gnu.org/archive/html/bug-textutils/2003-03/msg00027.html>.
84785
84786 2004-03-07  Paul Eggert  <eggert@twinsun.com>
84787
84788         * lib/c-stack.c (SIGACTION_WORKS): New macro.  Use it instead of long
84789         '#if' expressions.  Unlike the code it replaces, it does not
84790         depend on (defined _SC_PAGESIZE).  However, it does depend on
84791         HAVE_STRUCT_SIGACTION_SA_SIGACTION; this last change fixes a bug
84792         first reported by Jason Andrade in
84793         <http://mail.gnu.org/archive/html/bug-textutils/2003-03/msg00027.html>.
84794
84795 2004-02-25  Simon Josefsson  <jas@extundo.com>
84796
84797         * m4/strdup.m4 (gl_PREREQ_STRDUP): Check whether strdup is declared.
84798
84799 2004-02-25  Simon Josefsson  <jas@extundo.com>
84800
84801         * lib/strdup.h: New file.
84802         * lib/strdup.c: Include it.
84803         * lib/path-concat.c: Include strdup.h. Drop strdup declaration.
84804         * lib/userspec.c: Include strdup.h. Drop strdup declaration.
84805
84806 2004-02-23  Karl Berry  <karl@gnu.org>
84807
84808         * doc/maintain.texi, doc/standards.texi, doc/make-stds.texi: new files
84809         (from fencepost.gnu.org:/gd/gnuorg).
84810
84811 2004-02-23  Karl Berry  <karl@gnu.org>
84812
84813         * config/srclistvars.sh (GNUORG) [karl]: redefine.
84814         * config/srclist.txt: add maintain/standards documents.
84815
84816 2004-02-18  Bruno Haible  <bruno@clisp.org>
84817
84818         * m4/xsize.m4 (gl_XSIZE): Require AC_C_INLINE.
84819         Reported by Derek Robert Price <derek@ximbiot.com>.
84820
84821 2004-02-16  Karl Berry  <karl@gnu.org>
84822
84823         * config/mkinstalldirs, install-sh: update from automake.
84824
84825 2004-02-06  Karl Berry  <karl@gnu.org>
84826
84827         * m4/po.m4: update from gettext 0.14.1.
84828
84829 2004-02-06  Karl Berry  <karl@gnu.org>
84830
84831         * lib/config.charset: update from gettext 0.14.1.
84832
84833 2004-02-05  Paul Eggert  <eggert@twinsun.com>
84834
84835         Add comments and code, prompted by suggestions from Bruno Haible
84836         for sh-quote.
84837         * lib/quotearg.h (quotearg_alloc): New decl.  Improve the comments
84838         describing the enum quoting_style values.
84839         * lib/quotearg.c (quotearg_alloc): New function.
84840         (quotearg_buffer_restyled): Treat lone { and } as special.
84841         Treat = as special.  Work around bug with older shells
84842         that "see" a '\' that is really the 2nd byte of a multibyte char.
84843         Quote empty string with shell_quoting_style.
84844
84845 2004-02-03  Bruno Haible  <bruno@clisp.org>
84846
84847         * m4/pipe.m4: New file, from GNU gettext.
84848
84849 2004-02-03  Bruno Haible  <bruno@clisp.org>
84850
84851         * lib/pipe.h: New file, from GNU gettext.
84852         * lib/pipe.c: New file, from GNU gettext.
84853
84854 2004-01-27  Bruno Haible  <bruno@clisp.org>
84855
84856         * m4/execute.m4: New file, from GNU gettext.
84857
84858 2004-01-27  Bruno Haible  <bruno@clisp.org>
84859
84860         * lib/execute.h: New file, from GNU gettext.
84861         * lib/execute.c: New file, from GNU gettext.
84862         * lib/w32spawn.h: New file, from GNU gettext.
84863
84864 2004-01-24  Paul Eggert  <eggert@twinsun.com>
84865
84866         Merge from diffutils.
84867
84868         * lib/file-type.c (file_type): Add typed memory objects.
84869         * lib/file-type.h (S_TYPEISTMO): New macro.
84870
84871         * lib/c-stack.h (c_stack_action): Remove argv argument.
84872         * lib/c-stack.c (c_stack_action): Likewise.  All uses changed.
84873         (die): Don't calculate message unless segv_action returns.
84874         (get_stack_location, min_address_from_argv, max_address_from_argv,
84875         volatile stack_base, volatile_stack_size): Remove.
84876         (segv_handler): If ! HAVE_XSI_STACK_OVERFLOW_HEURISTIC, assume
84877         that every segmentation violation is a stack overflow.  (Ouch!)
84878         See Debian bug 136249 (still outstanding) for more info about why
84879         HAVE_XSI_STACK_OVERFLOW_HEURISTIC fails on Linux kernels.
84880
84881 2004-01-24  Paul Eggert  <eggert@twinsun.com>
84882
84883         Exit-status fix from coreutils.
84884
84885         Use exit_failure consistently in place of EXIT_FAILURE,
84886         so that program exit statuses are consistent on failure.
84887
84888         * lib/argmatch.c (ARGMATCH_DIE) [! defined ARGMATCH_DIE]:
84889         Include "exitfail.h", and use exit_failure rather than EXIT_FAILURE.
84890         * lib/argmatch.h: Comment fix to match the above.
84891         * lib/obstack.c (obstack_exit_failure) [!defined _LIBC]:
84892         Now a macro referring to exit_failure, instead of a separate
84893         variable.  Include "exitfail.h" to get it.
84894         * lib/xstrtol.h: Include "exitfail.h".
84895         (STRTOL_FATAL_ERROR): Exit with status exit_failure, not 2.
84896
84897         * lib/long-options.c (parse_long_options): Use prototype
84898         for usage function arg.  Pass it EXIT_SUCCESS rather than 0,
84899         for clarity.
84900
84901 2004-01-21  Jim Meyering  <jim@meyering.net>
84902
84903         * lib/mktime.c (__mktime_internal) [!_LIBC]: Define to mktime_internal
84904         so as not to conflict with a different-sized __mktime_internal
84905         function in GNU libc.
84906         * lib/timegm.c (__mktime_internal) [!_LIBC]: Likewise.
84907         Problem building statically-linked `ls' reported by Michael Brunnbauer.
84908
84909 2004-01-20  Karl Berry  <karl@gnu.org>
84910
84911         * config/config.guess: update from config.
84912
84913         * config/srclistvars.sh: GNUWWWLICENSES for karl.
84914
84915 2004-01-20  Bruno Haible  <bruno@clisp.org>
84916
84917         Safer stack allocation.
84918         * lib/setenv.c: Include allocsa.h.
84919         (alloca): Remove fallback definition.
84920         (freea): Remove macro.
84921         (__add_to_environ) [!_LIBC]: Use allocsa instead of alloca. Use freesa
84922         instead of freea.
84923
84924 2004-01-20  Bruno Haible  <bruno@clisp.org>
84925
84926         * m4/eealloc.m4: New file, from GNU gettext.
84927
84928 2004-01-20  Bruno Haible  <bruno@clisp.org>
84929
84930         * m4/allocsa.m4: New file, from GNU gettext.
84931
84932 2004-01-20  Bruno Haible  <bruno@clisp.org>
84933
84934         * lib/xallocsa.h: New file, from GNU gettext.
84935         * lib/xallocsa.c: New file, from GNU gettext.
84936
84937 2004-01-20  Bruno Haible  <bruno@clisp.org>
84938
84939         * lib/wait-process.c: On Windows, include windows.h. Needed on mingw.
84940
84941 2004-01-20  Bruno Haible  <bruno@clisp.org>
84942
84943         * lib/wait-process.c (wait_subprocess): Add ignore_sigpipe argument.
84944         * lib/wait-process.c (wait_subprocess): Likewise. Handle SIGPIPE
84945         specially.
84946
84947 2004-01-20  Bruno Haible  <bruno@clisp.org>
84948
84949         * lib/wait-process.c (wait_process): Disable the 2003-10-31 waitid()
84950         patch.
84951
84952 2004-01-20  Bruno Haible  <bruno@clisp.org>
84953
84954         * lib/wait-process.c (cleanup_slaves): Use ANSI C declaration.
84955
84956 2004-01-20  Bruno Haible  <bruno@clisp.org>
84957
84958         * lib/eealloc.h: New file.
84959
84960 2004-01-20  Bruno Haible  <bruno@clisp.org>
84961
84962         * lib/binary-io.h: Avoid warnings on Cygwin.
84963
84964 2004-01-20  Bruno Haible  <bruno@clisp.org>
84965
84966         * lib/allocsa.h: New file, from GNU gettext.
84967         * lib/allocsa.c: New file, from GNU gettext.
84968
84969 2004-01-18  Karl Berry  <karl@gnu.org>
84970
84971         * doc/gpl.texi, doc/lgpl.texi: new files.
84972
84973 2004-01-18  Karl Berry  <karl@gnu.org>
84974
84975         * config/srclistvars.sh (GNUWWWLICENSES): new variable.
84976         * config/srclist.txt ({fdl,gpl,lgpl}.text): get from there.
84977
84978 2004-01-15  Paul Eggert  <eggert@twinsun.com>
84979
84980         Merge from coreutils.
84981
84982         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Check for uintptr_t.
84983         * m4/posixver.m4 (gl_POSIXVER): Require gl_DEFAULT_POSIX2_VERSION.
84984         (gl_DEFAULT_POSIX2_VERSION): Move
84985         the documentation from 'configure' into 'config.hin',
84986         so that 'configure --help' isn't burdened by it and
84987         we don't have to worry about its formatting there.
84988         Reword the documentation so that it's more succinct
84989         and can be run together into a single paragraph.
84990         * m4/same.m4 (gl_SAME): Check for pathconf.
84991
84992 2004-01-15  Paul Eggert  <eggert@twinsun.com>
84993
84994         Merge from coreutils.
84995
84996         * lib/posixver.c: Include posixver.h.
84997
84998         * lib/same.c: Include <stdbool.h>, <limits.h>.
84999         (_POSIX_NAME_MAX): Define if not defined.
85000         (MIN): New macro.
85001         (same_name): If file names are silently truncated, report
85002         that the file names are the same if they are the same after
85003         the silent truncation.
85004
85005         * lib/xstrtod.h (xstrtod): Accept an extra arg, specifying the
85006         conversion function.
85007         * lib/xstrtod.c (xstrtod): Likewise.  All callers changed to
85008         include c-strtod.h and use c_strtod.  Don't include stdlib.h; no
85009         longer needed.
85010
85011 2004-01-15  Jim Meyering  <jim@meyering.net>
85012
85013         Merge from coreutils.
85014
85015         * m4/clock_time.m4 (gl_CLOCK_TIME): Don't set LIB_CLOCK_GETTIME
85016         if no library is required.
85017         * m4/jm-macros.m4: Don't require UTILS_SYS_OPEN_MAX.
85018         * m4/jm-macros.m4 (jm_MACROS): Require gl_FUNC_FREE.
85019         * m4/jm-macros.m4 (jm_MACROS): Require autoconf-2.58.
85020         (AC_LANG_SOURCE): Remove definition, now that we require autoconf-2.58.
85021         * m4/jm-macros.m4 (jm_MACROS): Don't require AC_FUNC_FTW.
85022         * m4/lib-check.m4 (jm_LIB_CHECK): Do not set LIB_CRYPT to the
85023         value, $ac_cv_search_crypt, if it's "none required".
85024         * m4/posixver.m4 (gl_DEFAULT_POSIX2_VERSION): New macro.
85025         * m4/prereq.m4 (jm_PREREQ): Require AC_FUNC_GETLOADAVG,
85026         not gl_FUNC_GETLOADAVG.
85027         * m4/prereq.m4 (jm_PREREQ): Require gl_READTOKENS, gl_MD5, gl_MAKEPATH,
85028         gl_LONG_OPTIONS, and gl_IDCACHE, gl_GETUGROUPS.
85029
85030 2004-01-15  Jim Meyering  <jim@meyering.net>
85031
85032         Merge from coreutils.
85033
85034         * lib/md5.h (rol) [__GNUC__ && __i386__]: Don't use `asm' code.  These
85035         days, gcc-3.x does better all by itself.  Patch from Dean Gaudet:
85036         http://mail.gnu.org/archive/html/bug-coreutils/2003-11/msg00144.html
85037
85038         * lib/posixver.c (DEFAULT_POSIX2_VERSION): Use definition of new,
85039         optional configure-time default.
85040
85041         * lib/version-etc.c (version_etc_copyright): Update copyright date.
85042
85043         * lib/xreadlink.c (xreadlink): Correct outdated comment.
85044
85045 2004-01-15  Alexandre Duret-Lutz  <adl@gnu.org>
85046
85047         Merge from coreutils.
85048
85049         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Do not set LIB_NANOSLEEP to the
85050         value, $ac_cv_search_nanosleep, if it's "none required".
85051
85052 2004-01-14  Paul Eggert  <eggert@twinsun.com>
85053
85054         * lib/fnmatch_loop.c (ALLOCA_LIMIT): Remove macro, which collided
85055         with like-named macro in fnmatch.c.
85056         (EXT): Use an internal constant instead.
85057
85058         Merge fnmatch patches from glibc.
85059         * lib/fnmatch.c (mbsinit): Remove define.
85060         Add libc_hidden_ver (__fnmatch, fnmatch).
85061         * lib/fnmatch_loop.c (FCT): Cast to int32_t and UCHAR when appropriate.
85062         Adjust to renaming of collseq_table_lookup to __collseq_table_lookup.
85063
85064 2004-01-14  Karl Berry  <karl@gnu.org>
85065
85066         * config/install-sh: update from automake.
85067
85068 2004-01-13  Karl Berry  <karl@gnu.org>
85069
85070         * config/install-sh: update from automake.
85071
85072 2004-01-09  Karl Berry  <karl@gnu.org>
85073
85074         * config/install-sh: update from automake.
85075
85076 2004-01-05  Karl Berry  <karl@gnu.org>
85077
85078         * config/config.{sub,guess}: update from config.
85079
85080 2003-12-31  Karl Berry  <karl@gnu.org>
85081
85082         * config/depcomp: update from automake.
85083
85084 2003-12-14  Karl Berry  <karl@gnu.org>
85085
85086         * lib/config.charset: update from gettext-runtime.
85087
85088 2003-12-03  Paul Eggert  <eggert@twinsun.com>
85089
85090         * lib/getgroups.c (getgroups): xmalloc takes one argument, not two.
85091         Bug reported by Alfred M. Szmidt.
85092
85093 2003-12-03  Bruno Haible  <bruno@clisp.org>
85094
85095         * m4/gettext.m4: Upgrade from gettext-0.13.
85096         * m4/po.m4: Upgrade from gettext-0.13.
85097         * m4/size_max.m4 (gl_SIZE_MAX): Don't use the _ONCE macros here.
85098         * m4/intmax.m4: New file, from gettext-0.13.
85099         * m4/printf-posix.m4: New file, from gettext-0.13.
85100
85101 2003-11-29  Karl Berry  <karl@gnu.org>
85102
85103         * lib/argp-{help.c,parse.c,namefrob.h}, argp.h: update from libc.
85104
85105 2003-11-25  Paul Eggert  <eggert@twinsun.com>
85106             Bruno Haible  <bruno@clisp.org>
85107
85108         * lib/printf-parse.h: Don't include sys/types.h.
85109         (ARG_NONE): New macro.
85110         (char_directive): Change type of *arg_index fields to size_t.
85111         * lib/printf-parse.c: Don't include sys/types.h.
85112         (SSIZE_MAX): Remove macro.
85113         (PRINTF_PARSE): Change the type of the arg_index variables to size_t.
85114         Remove unnecessary overflow check.
85115         * lib/vasnprintf.c (VASNPRINTF): Update for type change of *arg_index
85116         fields.
85117
85118 2003-11-25  Bruno Haible  <bruno@clisp.org>
85119
85120         * modules/vasnprintf (Files): Remove m4/ssize_t.m4.
85121
85122 2003-11-25  Bruno Haible  <bruno@clisp.org>
85123
85124         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Don't require
85125         gt_TYPE_SSIZE_T.
85126
85127 2003-11-24  Paul Eggert  <eggert@twinsun.com>
85128
85129         * modules/alloca: Remove dependency on xalloc.
85130
85131 2003-11-24  Paul Eggert  <eggert@twinsun.com>
85132
85133         * lib/alloca.c: Remove dependency on xalloc module.
85134         (xalloc_die): Remove.
85135         (memory_full) [!defined emacs]: New macro.
85136         [!defined emacs]: Don't include xalloc.h.
85137         (alloca): Invoke memory_full, not xalloc_die, if malloc fails or
85138         address arithmetic overflows.  Change datatypes a bit to avoid
85139         unnecessary casts.
85140
85141 2003-11-22  Jim Meyering  <jim@meyering.net>
85142
85143         * lib/xmalloc.c (x2nrealloc_inline): Fix typos in comments:
85144         s/size/size_t/.
85145
85146 2003-11-21  Karl Berry  <karl@gnu.org>
85147
85148         * config/config.{sub,guess}: update from config.
85149
85150 2003-11-18  Karl Berry  <karl@gnu.org>
85151
85152         * config/config.{sub,guess}: update from config.
85153
85154         * config/(printf-{parse,args}.[ch]): sync broken, sigh.
85155
85156 2003-11-17  Paul Eggert  <eggert@twinsun.com>
85157
85158         * README: Mention that S+T cannot overflow if S is the size of
85159         an existing object and T is sufficiently small.
85160
85161 2003-11-17  Jim Meyering  <jim@meyering.net>
85162
85163         On systems without utime and without a utimes function capable of
85164         dealing with a NULL struct utimbuf* argument, this utime replacement
85165         could -- in unusual circumstances -- leak a file descriptor.
85166         * lib/utime.c: Include <unistd.h> and <errno.h>.
85167         (utime_null): Be sure to close `fd' and to preserve errno.
85168         Reported by Geoff Collyer via Arnold Robbins.
85169
85170 2003-11-17  Bruno Haible  <bruno@clisp.org>
85171
85172         * modules/vasnprintf (Files): Add m4/ssize_t.m4.
85173         (Depends-on): Add xsize.
85174
85175 2003-11-17  Bruno Haible  <bruno@clisp.org>
85176
85177         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Require gt_TYPE_SSIZE_T.
85178
85179 2003-11-17  Bruno Haible  <bruno@clisp.org>
85180
85181         * lib/vasnprintf.c (alloca): Remove fallback definition.
85182         (freea): Remove definition.
85183         (VASNPRINTF): Use alloca only for small sizes, say <= 4000 bytes.
85184         Reported by Paul Eggert.
85185
85186 2003-11-16  Paul Eggert  <eggert@twinsun.com>
85187             Bruno Haible  <bruno@clisp.org>
85188
85189         Protect against address arithmetic overflow.
85190         * lib/printf-args.h: Include stddef.h.
85191         (arguments): Change type of field 'count' to size_t.
85192         * lib/printf-args.c (printf_fetchargs): Use size_t instead of
85193         'unsigned int' where appropriate.
85194         * lib/printf-parse.h: Include sys/types.h.
85195         (char_directive): Change type of *arg_index fields to ssize_t.
85196         (char_directives): Change type of fields 'count', max_*_length to
85197         size_t.
85198         * lib/printf-parse.c: Include sys/types.h and xsize.h.
85199         (SSIZE_MAX): Define fallback value.
85200         (PRINTF_PARSE): Use size_t instead of 'unsigned int' and ssize_t
85201         instead of 'int' where appropriate. Check a_allocated, d_allocated
85202         against overflow. Reject %m$ argument numbers > SSIZE_MAX + 1.
85203         * lib/vasnprintf.c: Include xsize.h.
85204         (VASNPRINTF): Use size_t instead of 'unsigned int' where appropriate.
85205         Check alloca, malloc, realloc, ENSURE_ALLOCATION arguments against
85206         overflow. Avoid wraparound when converting a width or precision from
85207         decimal to binary.
85208
85209 2003-11-16  Bruno Haible  <bruno@clisp.org>
85210
85211         Update from GNU gettext.
85212         * lib/printf-parse.c: Generalize to it can be compiled for wide
85213         strings.
85214         (PRINTF_PARSE, CHAR_T, DIRECTIVE, DIRECTIVES): New macros.
85215         * lib/vasnprintf.c: Generalize to it can be compiled for wide strings.
85216         (VASNPRINTF, CHAR_T, DIRECTIVE, DIRECTIVES, PRINTF_PARSE, USE_SNPRINTF,
85217         SNPRINTF): New macros.
85218         Don't include <alloca.h> if the file is used inside libintl.
85219         (local_wcslen): New function, for Solaris 2.5.1.
85220         (VASNPRINTF): Use it instead of wcslen.
85221
85222 2003-11-16  Bruno Haible  <bruno@clisp.org>
85223
85224         * lib/xsize.h (xmax): New function.
85225         (xsum, xsum3, xsum4): Declare as "pure" functions.
85226
85227 2003-11-12  Paul Eggert  <eggert@twinsun.com>
85228
85229         * modules/xalloc (Files): Undo latest change, since xalloc.h
85230         no longer needs SIZE_MAX or PTRDIFF_MAX.
85231
85232 2003-11-12  Paul Eggert  <eggert@twinsun.com>
85233
85234         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Do not require gl_SIZE_MAX or
85235         gl_PTRDIFF_MAX.
85236
85237 2003-11-12  Paul Eggert  <eggert@twinsun.com>
85238
85239         * lib/xstrtol.c (__xstrtol): Remove "break" immediately after
85240         "return", to pacify some unknown compiler.  Problem reported
85241         by Joerg Schilling.
85242
85243 2003-11-12  Paul Eggert  <eggert@twinsun.com>
85244
85245         * lib/xalloc.h: Do not include <limits.h> or <stdint.h>.
85246         (xalloc_oversized): Use sizeof (ptrdiff_t) and sizeof (size_t) for
85247         the heuristic, rather than PTRDIFF_MAX and SIZE_MAX.  This
85248         heuristic is just as accurate as far as we know, and it removes a
85249         dependency on size_max.m4 and ptrdiff_max.m4.
85250
85251 2003-11-11  Bruno Haible  <bruno@clisp.org>
85252
85253         * modules/xsize (Files): Add m4/size_max.m4.
85254         * modules/xalloc (Files): Add m4/size_max.m4, m4/ptrdiff_max.m4.
85255
85256 2003-11-11  Bruno Haible  <bruno@clisp.org>
85257
85258         * m4/size_max.m4: New file.
85259         * m4/ptrdiff_max.m4: New file.
85260         * m4/xsize,m4 (gl_XSIZE): Require gl_SIZE_MAX.
85261         * m4/xalloc.m4 (gl_PREREQ_XALLOC): New macro.
85262         (gl_XALLOC): Invoke it.
85263
85264 2003-11-11  Bruno Haible  <bruno@clisp.org>
85265
85266         * lib/xsize.h (SIZE_MAX): Remove fallback definition.
85267         * lib/xalloc.h: Include limits.h. Assume SIZE_MAX and PTRDIFF_MAX are
85268         defined.
85269
85270 2003-11-10  Paul Eggert  <eggert@twinsun.com>
85271
85272         * lib/xalloc.h (xalloc_oversized): [! (defined PTRDIFF_MAX &&
85273         PTRDIFF_MAX < SIZE_MAX)]: Fix off-by-one error that would have
85274         rejected some allocations of exactly SIZE_MAX - 2 bytes.
85275         From Bruno Haible.
85276         [defined PTRDIFF_MAX && PTRDIFF_MAX < SIZE_MAX]: Use SIZE_MAX,
85277         not (size_t) -1, since it's defined here.
85278
85279 2003-11-09  Karl Berry  <karl@gnu.org>
85280
85281         * config/mkinstalldirs, depcomp, mdate-sh: update from automake.
85282
85283 2003-11-06  Paul Eggert  <eggert@twinsun.com>
85284
85285         * lib/xalloc.h [HAVE_STDINT_H]: Include <stdint.h>.
85286         (xalloc_oversized) [! (PTRDIFF_MAX < SIZE_MAX)]:
85287         Reject sizes of exactly SIZE_MAX bytes.
85288         * lib/xreadlink.c: Include "xalloc.h" before checking whether SIZE_MAX
85289         is defined, since "xalloc.h" now defines SIZE_MAX on modern hosts.
85290
85291 2003-11-05  Bruno Haible  <bruno@clisp.org>
85292
85293         * lib/xsize.h: Include limits.h, to avoid a possible collision with
85294         SIZE_MAX defined in <limits.h> on Solaris.
85295
85296 2003-11-04  Jim Meyering  <jim@meyering.net>
85297
85298         * modules/sysexits: Use the `$(VAR)' notation for AC_SUBST'd
85299         variable names, rather than @VAR@.
85300         * modules/poll: Likewise.
85301
85302 2003-11-04  Bruno Haible  <bruno@clisp.org>
85303
85304         * modules/xsize: New file.
85305         * modules/linebreak: Depend on xsize.
85306         * MODULES.html.sh (func_all_modules): Add xsize.
85307
85308 2003-11-04  Bruno Haible  <bruno@clisp.org>
85309
85310         * m4/xsize.m4: New file.
85311
85312 2003-11-04  Bruno Haible  <bruno@clisp.org>
85313
85314         * lib/xsize.h: New file.
85315         * lib/linebreak.c: Include xsize.h.
85316         (mbs_possible_linebreaks, mbs_width_linebreaks): Check malloc()
85317         argument for overflow.
85318         Suggested by Paul Eggert.
85319
85320 2003-11-03  Karl Berry  <karl@gnu.org>
85321
85322         * config/config.{guess,sub}: update from config.
85323
85324 2003-11-03  Jim Meyering  <jim@meyering.net>
85325
85326         * modules/userspec (lib_SOURCES): Add userspec.h.
85327         (Include): Add "userspec.h".
85328         Improve description.
85329
85330 2003-11-03  Jim Meyering  <jim@meyering.net>
85331
85332         * lib/userspec.c: Include "userspec.h".
85333         * lib/userspec.h: New file.
85334
85335 2003-11-03  Bruno Haible  <bruno@clisp.org>
85336
85337         * m4/wait-process.m4 (gl_WAIT_PROCESS): Also check for waitid.
85338
85339 2003-11-03  Bruno Haible  <bruno@clisp.org>
85340
85341         * lib/wait-process.c (wait_process): Use waitid with WNOWAIT if
85342         available, to avoid (extremely rare) race condition.
85343         Suggested by Paul Eggert.
85344
85345 2003-11-02  Karl Berry  <karl@gnu.org>
85346
85347         * config/srclist.txt (vasprintf.c): sync broken, sigh.
85348
85349 2003-10-31  Paul Eggert  <eggert@twinsun.com>
85350
85351         * lib/mountlist.h (struct mount_entry.me_type_malloced): New member.
85352         * lib/mountlist.c (SIZE_MAX): Define if not defined already.
85353         (read_filesystem_list): Set and use me_type_malloced.
85354         Use "sizeof *me" rather than "sizeof (struct mount_entry)" (or
85355         whatever the type happens to be), for brevity and consistency.
85356         Check for size calculation overflow on Alphas running OSF/1.
85357
85358 2003-10-31  Jim Meyering  <jim@meyering.net>
85359
85360         * lib/hash.c: Include "xalloc.h" for use of xalloc_oversized.
85361
85362         * lib/linebuffer.c: Include <string.h> for declaration of memset.
85363
85364 2003-10-30  Paul Eggert  <eggert@twinsun.com>
85365             Bruno Haible  <bruno@clisp.org>
85366
85367         * lib/vasprintf.c: Include <limits.h>, <stdlib.h>.
85368         (vasprintf): Fail if the resulting length doesn't fit in an 'int'.
85369
85370 2003-10-30  Paul Eggert  <eggert@cs.ucla.edu>
85371
85372         * m4/host-os.m4 (UTILS_HOST_OS): Change netbsd*-gnu pattern back to
85373         netbsd*-gnu*.  Suggested by Robert Millan.
85374
85375 2003-10-29  Paul Eggert  <eggert@twinsun.com>
85376
85377         * modules/group-member: Depend on stdbool.
85378
85379 2003-10-29  Paul Eggert  <eggert@twinsun.com>
85380
85381         * m4/xalloc.m4 (gl_XALLOC): Undo previous change.
85382
85383 2003-10-29  Paul Eggert  <eggert@twinsun.com>
85384
85385         * m4/host-os.m4 (UTILS_HOST_OS): Resurrect netbsd*-gnu.  Add comments
85386         to it, and to knetbsd*-gnu and kfreebsd*-gnu.  Remove the '*' from
85387         after the 'gnu' in these cases.  This fixes some bugs in the
85388         previous change, and is based on suggestions by Robert Millan.
85389
85390 2003-10-29  Paul Eggert  <eggert@twinsun.com>
85391
85392         * lib/xalloc.h (xalloc_oversized): Now a macro, not a function,
85393         so that it works even if SIZE_MAX < N.  Do not include <stdbool.h>;
85394         no longer needed.
85395         * lib/quotearg.c (quotearg_n_options): Use it.
85396         * lib/group-member.c: Include <stdbool.h>.
85397         (free_group_info): Arg is now const *; don't free arg.
85398         (get_group_info): Now returns bool and accepts struct group_info *,
85399         rather than returning a malloc'ed struct group_info *.
85400         All uses changed.  Check for overflow in internal size calculation.
85401
85402         * lib/getusershell.c (readname): Simplify the code by using x2nrealloc
85403         rather than xmalloc/xrealloc.
85404         * lib/linebuffer.c (initbuffer, readlinebuffer): Simplify the code by
85405         using x2realloc rather than xmalloc/xrealloc.  Also, fix a C
85406         conformance bug: the old code used a pointer after freeing the
85407         storage that it addressed.
85408         * lib/hash.c (hash_initialize): Simplify the code by using
85409         xalloc_oversized rather than doing it by hand.
85410         * lib/getgroups.c (getgroups): Don't use xrealloc, since we don't need
85411         the buffer preserved.  Use free and xmalloc instead.
85412         * lib/quotearg.c (quotearg_n_options): Likewise.
85413         Use a simpler test for size overflow.  Don't use xalloc_oversized
85414         because unsigned int might be wider than size_t (!); this suggests
85415         that we should switch from unsigned int to size_t for slot numbers.
85416
85417 2003-10-28  Paul Eggert  <eggert@twinsun.com>
85418
85419         * m4/host-os.m4 (UTILS_HOST_OS): Identify GNU/KFreeBSD and
85420         GNU/KNetBSD.  These implementations use glibc atop the FreeBSD and
85421         NetBSD kernels.  Requested by Richard Stallman.
85422
85423 2003-10-27  Paul Eggert  <eggert@twinsun.com>
85424
85425         * lib/exclude.c (new_exclude): Use xzalloc rather than xmalloc
85426         to allocate the returned structure.  Do not allocate a subarray,
85427         as x2nrealloc will do that.
85428         (add_exclude): Use x2nrealloc to reallocate ex->exclude,
85429         instead of xnrealloc.
85430         (add_exclude_file): Use x2realloc instead of malloc + xnrealloc.
85431
85432 2003-10-27  Bruno Haible  <bruno@clisp.org>
85433
85434         * lib/stdbool_.h: Better support for BeOS.
85435
85436 2003-10-26  Paul Eggert  <eggert@twinsun.com>
85437
85438         * m4/xalloc.m4 (gl_XALLOC): Requore AC_C_INLINE, since xalloc.h
85439         now uses inline.
85440
85441 2003-10-26  Paul Eggert  <eggert@twinsun.com>
85442
85443         * lib/xalloc.h (xalloc_oversized): New static inline function, for
85444         callers that want to do their own size-overflow checking.  Include
85445         <stdbool.h>, since xalloc_oversized returns bool.
85446         * lib/xalloc.c (array_size_overflow): Remove.  All callers changed
85447         to use xalloc_oversized.
85448
85449         Add two functions x2realloc, x2nrealloc, for programs that grow
85450         arrays dynamically by doubling their sizes.
85451         * lib/xalloc.h (x2realloc, x2nrealloc): New decls.
85452         * lib/xmalloc.c (x2nrealloc_inline, x2nrealloc, x2realloc):
85453         New functions.
85454
85455         Port to C99 semantics for 'inline' of external functions.
85456         Bug reported by Bruno Haible.
85457         * lib/xmalloc.c (xnmalloc_inline): New static inline function,
85458         with the old contents of xnmalloc.
85459         (xnmalloc, xmalloc): Use it.
85460         (xnrealloc_inline): New static inline function,
85461         with the old contents of xnrealloc.
85462         (xnrealloc, xrealloc): Use it.
85463
85464         * lib/alloc.c (alloca): xmalloc cannot return NULL, so don't test for
85465         that.
85466
85467 2003-10-26  Karl Berry  <karl@gnu.org>
85468
85469         * config/srclist.txt (COPYING.DOC): no longer available from
85470         /gd/gnuorg; don't know where the ultimate source is.
85471
85472 2003-10-25  Paul Eggert  <eggert@twinsun.com>
85473
85474         Fix several address-calculation bugs in the hash modules,
85475         plus some minor code cleanup.
85476
85477         * lib/hash.h: Include <stdbool.h>, for bool.
85478         * lib/hash.c: Don't include <stdbool.h>, since hash.h does it now.
85479         * lib/hash.h (Hash_hasher, hash_get_n_buckets, hash_get_n_buckets_used,
85480         hash_get_n_entries, hash_get_max_bucket_length,
85481         hash_get_entries, hash_do_for_each, hash_string, hash_initialize,
85482         hash_rehash): Use size_t rather than unsigned.
85483         * lib/hash.c (struct hash_table, hash_get_n_buckets,
85484         hash_get_n_buckets_used, hash_get_n_entries,
85485         hash_get_max_bucket_length, hash_table_ok, hash_print_statistics,
85486         hash_get_entries, hash_do_for_each, hash_string, is_prime,
85487         next_prime, hash_initialize, hash_rehash, hash_delete, hash_print):
85488         Likewise.
85489         (SIZE_MAX): Define if not defined.
85490         (hash_get_max_bucket_length, hash_table_ok, hash_lookup,
85491         hash_get_first, hash_get_next, hash_get_entries, hash_do_for_each,
85492         hash_print):
85493         Use const * when possible.
85494         (hash_string): Use (unsigned char) *P rather than *(unsigned char *) P.
85495         (check_tuning): Fix bug: if tuning parameters were very close to
85496         0 or 1, rounding errors could have caused subscript violations.
85497         (hash_initialize, allocate_entry, hash_print): Remove unnecessary cast.
85498         (hash_initialize): Add 'fail:' label
85499         to free table and return NULL, and use it to simplify code.
85500         Use calloc rather than clearing the storage ourself.
85501         (hash_initialize, hash_rehash): Check for arithmetic overflow in
85502         buffer size calculations.
85503         * lib/hash-pjw.h (hash_pjw): Use size_t, not unsigned.
85504         Include <stddef.h>, for size_t.
85505         * lib/hash-pjw.c (hash_pjw): Likewise.
85506         Switch to method described by Bruno Haible.
85507         Include <limits.h>, for CHAR_BIT.
85508         (SIZE_BITS): New macro.
85509
85510 2003-10-23  Paul Eggert  <eggert@twinsun.com>
85511
85512         * m4/getline.m4 (AM_FUNC_GETLINE):
85513         Don't include getndelim2.o twice into LIBOBJS; this breaks on some
85514         hosts.  Problem reported by Derek Robert Price in
85515         <http://mail.gnu.org/archive/html/bug-gnulib/2003-10/msg00092.html>.
85516         This patch can be withdrawn after Autoconf 2.58 is required for gnulib.
85517         * m4/getndelim2.m4 (gl_GETNDELIM2): Likewise.
85518
85519 2003-10-21  Paul Eggert  <eggert@twinsun.com>
85520
85521         * lib/getndelim2.c (getndelim2): When size calculation overflows,
85522         ceiling the allocation at NMAX bytes rather than silently
85523         discarding input bytes before NMAX is reached.  This makes
85524         a difference only if NMAX exceeds SIZE_MAX / 2.
85525
85526         * lib/obstack.c: Merge from glibc.
85527         [defined _LIBC]: Include <obstack.h>, not "obstack.h".
85528         Add libc_hidden_def (_obstack_newchunk).
85529         (_obstack_free) [! defined _LIBC]: Remove.
85530         [defined _LIBC]: Make a strong alias from obstack_free, rather than
85531         a clone of the function body.
85532         (fputs) [defined _LIBC && defined USE_IN_LIBIO]: Remove.
85533         [defined _LIBC && !defined USE_IN_LIBIO]: Include <libio/iolibio.h>.
85534
85535         * lib/obstack.h: Indenting cleanup, to make it easier to merge with
85536         glibc.
85537         (obstack_grow, obstack_grow0): Remove unnecessary parentheses around
85538         arg to memcpy.
85539
85540         * lib/obstack.h (obstack_1grow_fast): Properly parenthesize arg.
85541         (obstack_ptr_grow_fast, obstack_int_grow_fast):
85542         Don't use lvalue casts, as GCC plans to remove support for them
85543         in GCC 3.5.  Reported by Joseph S. Myers.  This bug
85544         was also present in the non-GCC version, indicating that this
85545         code had always been buggy and had never been widely used.
85546         (obstack_1grow, obstack_ptr_grow, obstack_int_grow, obstack_blank):
85547         Use the fast variant of each macro, rather than copying the
85548         definiens of the fast variant; that way, we'll be more likely to
85549         catch future bugs in the fast variants.
85550
85551 2003-10-20  Bruno Haible  <bruno@clisp.org>
85552
85553         * modules/wait-process: New file.
85554         * MODULES.html.sh (func_all_modules): Add wait-process.
85555
85556 2003-10-20  Bruno Haible  <bruno@clisp.org>
85557
85558         * m4/wait-process.m4: New file.
85559
85560 2003-10-20  Bruno Haible  <bruno@clisp.org>
85561
85562         * lib/wait-process.h: New file, from GNU gettext.
85563         * lib/wait-process.c: New file, from GNU gettext.
85564
85565 2003-10-19  Jim Meyering  <jim@meyering.net>
85566
85567         * lib/vasnprintf.c (vasnprintf): Work around losing snprintf on
85568         HPUX 10.20.
85569
85570 2003-10-18  Karl Berry  <karl@gnu.org>
85571
85572         * config/config.guess: update from config.
85573
85574 2003-10-16  Paul Eggert  <eggert@twinsun.com>
85575
85576         * lib/getgroups.c: Include <errno.h>, <stdlib.h>.
85577         (getgroups): First arg is int, not size_t.
85578         Don't let 'free' mangle errno.
85579
85580 2003-10-16  Paul Eggert  <eggert@twinsun.com>
85581
85582         * README: Mention that gnulib assumes that (foo *) NULL + 0 == NULL.
85583
85584 2003-10-16  Karl Berry  <karl@gnu.org>
85585
85586         * config/config.{guess,sub}: update from config.
85587
85588 2003-10-16  Jim Meyering  <jim@meyering.net>
85589
85590         * lib/xmalloc.c: Include <string.h>, for declarations of memset and
85591         memcpy.
85592
85593 2003-10-15  Paul Eggert  <eggert@twinsun.com>
85594
85595         * lib/exclude.c: Do not include <inttypes.h> or <stdint.h>.
85596         (SIZE_MAX): Remove.
85597         (new_exclude, add_exclude_file): Initial size no longer needs to
85598         be a power of 2.
85599         (add_exclude, add_exclude_file): Use xnrealloc instead of rolling
85600         our own address arithmetic overflow checking.
85601
85602         * lib/fnmatch.c (SIZE_MAX): Define if standard headers don't.
85603         (fnmatch): Do not alloca more than 2000 wide characters;
85604         instead, use malloc for large buffers.
85605         Check for address arithmetic overflow, and return -1
85606         with errno set to ENOMEM in that case.
85607         * lib/fnmatch_loop.c (ALLOCA_LIMIT): New macro.
85608         (NEW_PATTERN): Do not alloca more than 8000 bytes;
85609         instead, return -1.  Check for address arithmetic overflow.
85610
85611 2003-10-14  Paul Eggert  <eggert@twinsun.com>
85612
85613         Handle invalid suffixes and overflow independently, so that
85614         callers can treat them independently as needed.  Fix some bugs in
85615         suffix handling, e.g., "100k@" was not diagnosed as an invalid
85616         suffix for a human-readable blocksize.  The major caller-visible
85617         change is the addition of a new
85618         LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW enum value, indicating
85619         that both overflow and suffix chars were found.
85620
85621         * lib/human.c (humblock): Don't check separately for invalid suffix
85622         char; that is xstrtoumax's job (now that its bug is fixed).
85623         * lib/xstrtoimax.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM) [defined
85624         INTMAX_MAX]: New macros.
85625         * lib/xstrtol.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM, TYPE_MINIMUM,
85626         TYPE_MAXIMUM): New macros.
85627         (bkm_scale, bkm_scale_by_power): Return strtol_error, not int.
85628         (bkm_scale, bkm_scale_by_power, __xstrtol): Return maximal values
85629         if overflow occurs, as it's what __strtol does and it's more useful
85630         in practice.
85631         (__xstrtol): If __strtol reports some error other than ERANGE,
85632         reflect it to the caller as LONGINT_INVALID.  If it reports
85633         ERANGE, continue the rest of parsing, and report LONGINT_OVERFLOW
85634         | LONGINT_INVALID_SUFFIX_CHAR if both errors occur.
85635         * lib/xstrtol.h (LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW): New enum
85636         value.
85637         (_STRTOL_ERROR): Handle it.  Abort when given unknown error codes.
85638         * lib/xstrtoul.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM): New macros.
85639         * lib/xstrtoumax.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM)
85640         [defined UINTMAX_MAX]: New macros.
85641
85642 2003-10-14  Bruno Haible  <bruno@clisp.org>
85643
85644         * modules/fatal-signal: Add m4/sig_atomic_t.m4 to file list.
85645
85646 2003-10-14  Bruno Haible  <bruno@clisp.org>
85647
85648         * m4/sig_atomic_t: New file, from GNU gettext.
85649         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Require gt_TYPE_SIG_ATOMIC_T.
85650
85651 2003-10-14  Bruno Haible  <bruno@clisp.org>
85652
85653         * lib/fatal-signal.h: Improved comments. Suggested by Paul Eggert.
85654         * lib/fatal-signal.c: Use sig_atomic_t. Suggested by Paul Eggert.
85655         Also use volatile where needed.
85656
85657 2003-10-12  Paul Eggert  <eggert@twinsun.com>
85658
85659         * modules/xalloc: Do not depend on 'exit'.  Depend on 'stdbool'.
85660         Change maintainer from Bruno Haible to 'all'.
85661
85662 2003-10-12  Paul Eggert  <eggert@twinsun.com>
85663
85664         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Require AC_C_INLINE.
85665
85666 2003-10-12  Paul Eggert  <eggert@twinsun.com>
85667
85668         * lib/xalloc.h (xnmalloc, xzalloc, xnrealloc, xclone): New decls.
85669         (XMALLOC, XCALLOC, XREALLOC, XFREE, CCLONE, CLONE): Deprecate,
85670         and define in terms of the other primitives.
85671         * lib/xmalloc.c: Include stdbool.h; do not include exit.h.
85672         (SIZE_MAX): Define if not already defined.
85673         (array_size_overflow): New function.
85674         (xalloc_die): Abort instead of exiting if 'error' returns.
85675         (xnmalloc, xnrealloc, xzalloc, xclone): New functions.
85676         (xmalloc, xrealloc): Use them.
85677         (xcalloc): Check for address arithmetic overflow.
85678         * lib/xstrdup.c (xstrdup): Use xclone, since memcpy should be
85679         a bit faster than strcpy.
85680
85681 2003-10-10  Simon Josefsson  <jas@extundo.com>
85682
85683         * modules/argp (Depends-on): Add restrict and strcase.
85684
85685 2003-10-10  Simon Josefsson  <jas@extundo.com>
85686
85687         * m4/argp.m4: Add AC_C_INLINE.
85688
85689 2003-10-08  Paul Eggert  <eggert@twinsun.com>
85690
85691         Merge getpass from libc, plus a few fixes.
85692
85693         * lib/getpass.c (HAVE_STDIO_EXT) [_LIBC]: Define to 1.
85694         Include <stdbool.h>.
85695         Include <stdio_ext.h> if HAVE_STDIO_H, otherwise define
85696         __fsetlocking to empty.
85697         [_LIBC]: Do not include "getline.h" or "unlocked-io.h", but
85698         do include <bits/libc-lock.h>.
85699         Do not include <fcntl.h>; not needed.
85700         [_LIBC]: Include <wchar.h>.
85701         (NOTCANCEL_MODE): New macro.
85702         (flockfile, funlockfile) [_LIBC]: New macros.
85703         (__libc_cleanup_push, __libc_cleanup_pop, __getline, __tcgetattr)
85704         [!_LIBC]: New macros.
85705         (call_fclose): New function.
85706         (getpass): Use it.  Save tty stream separately; this simplifies the
85707         code and makes it more reliable if stdin happens to equal stdout.
85708         Invoke __fsetlocking on tty.
85709         Handle thread cancellation if needed.
85710         Namespace cleanup (use __tcgetattr, __getline).
85711         Use bool for Booleans.
85712         [USE_IN_LIBIO]: Handle wide streams.
85713         [!_LIBC]: Unconditionally do the fseek, since we don't know what
85714         stream might go where.
85715
85716         * lib/unlocked-io.h: Include <stdio.h>, so that the caller
85717         doesn't have to include <stdio.h> before us.
85718         (clearerr_unlocked, feof_unlocked, ferror_unlocked,
85719         fflush_unlocked, fgets_unlocked, fputc_unlocked, fputs_unlocked,
85720         fread_unlocked, fwrite_unlocked, getc_unlocked, getchar_unlocked,
85721         putc_unlocked, putchar_unlocked): Define to the unlocked counterpart
85722         if not declared, so that we can use getpass.c code from libc without
85723         rewriting it.
85724         (flockfile, ftrylockfile, funlockfile): New macros.
85725
85726 2003-10-08  Paul Eggert  <eggert@twinsun.com>
85727
85728         * modules/getpass: Depend on stdbool.
85729
85730 2003-10-08  Paul Eggert  <eggert@twinsun.com>
85731
85732         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for stdio_ext.h.
85733
85734 2003-10-07  Karl Berry  <karl@gnu.org>
85735
85736         * config/config.{guess,sub}: update from config.
85737
85738 2003-10-06  Jim Meyering  <jim@meyering.net>
85739             Bruno Haible  <bruno@clisp.org>
85740
85741         This lets translators provide better translations for the
85742         "Written by ..." part of --version output.
85743         * lib/version-etc.h: Include stdarg.h.
85744         (version_etc_copyright): Declare as readonly.
85745         (version_etc): Make this function variadic with a NULL-terminated list
85746         of author name strings.
85747         (version_etc_va): New declaration.
85748         * lib/version-etc.c: Include stdarg.h, stdlib.h.
85749         (version_etc_copyright): Declare as readonly.
85750         (version_etc_va): New function. Provide a different translatable string
85751         for each possible number of authors < 10. Abbreviate when there are 10
85752         authors or more.
85753         (version_etc): Make this function variadic. Call version_etc_va.
85754         Suggestion from Gary V. Vaughan.
85755
85756         * lib/long-options.h (parse_long_options): Change prototype: the
85757         authors string is moved to the end and becomes variadic.
85758         * lib/long-options.c: Include stdarg.h.
85759         (parse_long_options): Make this function variadic, too.
85760         Call version_etc_va, not version_etc.
85761
85762 2003-10-06  Bruno Haible  <bruno@clisp.org>
85763
85764         * modules/version-etc-2: Remove file.
85765         * MODULES.html.sh (func_all_modules): Remove version-etc-2.
85766
85767 2003-10-06  Bruno Haible  <bruno@clisp.org>
85768
85769         * modules/fatal-signal: New file.
85770         * MODULES.html.sh (func_all_modules): Add fatal-signal.
85771
85772 2003-10-06  Bruno Haible  <bruno@clisp.org>
85773
85774         * m4/fatal-signal.m4: New file.
85775         * m4/signalblocking.m4: New file, from GNU gettext.
85776
85777 2003-10-06  Bruno Haible  <bruno@clisp.org>
85778
85779         * lib/version-etc-2.h: Remove file.
85780         * lib/version-etc-2.c: Remove file.
85781
85782 2003-10-06  Bruno Haible  <bruno@clisp.org>
85783
85784         * lib/fatal-signal.h: New file, from GNU gettext.
85785         * lib/fatal-signal.c: New file, from GNU gettext.
85786
85787 2003-10-05  Paul Eggert  <eggert@twinsun.com>
85788
85789         * README: Rework advice for preventing empty .o files.
85790         Don't recommend ELIDE constructs.  Recommend <stddef.h>,
85791         not <sys/types.h>.
85792
85793 2003-10-04  Karl Berry  <karl@gnu.org>
85794
85795         * lib/argp*: update from libc.
85796
85797 2003-10-04  Karl Berry  <karl@gnu.org>
85798
85799         * config/config.{guess,sub}: update from config.
85800
85801 2003-10-02  Bruno Haible  <bruno@clisp.org>
85802
85803         * modules/lchown (Include): Add lchown.h.
85804         * modules/time_r (Include): Use "..." syntax.
85805         * modules/xgetdomainname (Include): Add xgetdomainname.h.
85806
85807 2003-10-01  Simon Josefsson  <jas@extundo.com>
85808
85809         * MODULES.html.sh (func_all_modules): Move gethostname from section
85810         'based on' to section 'lacking' POSIX:2001.
85811
85812 2003-10-01  Larry Jones  <lawrence.jones@eds.com>
85813
85814         * lib/getpass.c (getpass): Use a no-op fseek when switching from input
85815         to output mode on the same stream.
85816
85817 2003-09-29  Paul Eggert  <eggert@twinsun.com>
85818
85819         * lib/strftime.c (tm_diff) [! HAVE_TM_GMTOFF]:
85820         Fix arg typo in previous patch.
85821
85822 2003-09-28  Jim Meyering  <jim@meyering.net>
85823
85824         * lib/error.c: Correct cpp indentation.
85825
85826 2003-09-27  Paul Eggert  <eggert@twinsun.com>
85827
85828         * modules/free: New file.
85829
85830 2003-09-27  Paul Eggert  <eggert@twinsun.com>
85831
85832         * m4/free.m4: New file.
85833
85834 2003-09-27  Paul Eggert  <eggert@twinsun.com>
85835
85836         * lib/minmax.h (MIN, MAX)
85837         [__STDC__ && defined __GNUC__ && __GNUC__ >= 2]:
85838         Omit the special code that used __typeof__, since we worry that
85839         it could be more trouble than it's worth.  See:
85840         http://mail.gnu.org/archive/html/bug-gnulib/2003-01/msg00090.html
85841         http://mail.gnu.org/archive/html/bug-gnulib/2003-01/msg00095.html
85842
85843         * lib/free.c: New file.
85844
85845 2003-09-27  Oskar Liljeblad  <oskar@osk.mine.nu>
85846
85847         Trivial fixes to Makefile.am parts of module listings.
85848         * modules/strstr: Append strstr.h to lib_SOURCES.
85849         * modules/strcase: Likewise, for strcase.h.
85850
85851 2003-09-27  Karl Berry  <karl@gnu.org>
85852
85853         * config/mkinstalldirs: update from automake.
85854
85855 2003-09-26  Paul Eggert  <eggert@twinsun.com>
85856
85857         * lib/error.c (SIZE_MAX) [!defined SIZE_MAX]: Define.
85858         (error_tail): Do not loop, reallocating temporary buffer, since
85859         the output cannot contain more wide characters than the input
85860         contains bytes, the size must be big enough already.  This avoids
85861         one potential size overflow calculation.  Check for size overflow
85862         when calculating temporary buffer size.  Free temporary buffer
85863         when done, if it was allocated with malloc; this plugs a memory
85864         leak.  Remove casts from void * to pointers, that are no longer
85865         needed now that we're assuming C89 or better.
85866
85867         Merge error changes from glibc.
85868
85869         * lib/error.c, error.h: Update copyright notice header to match glibc.
85870         * lib/error.c [defined _LIBC]: Include <errno.h>, <bits/libc-lock.h>.
85871         (error, error_at_line) [defined _LIBC && defined __libc_ptf_call]:
85872         Disable cancellation while printing error.
85873         * lib/error.h: Prepend __ to parameter names.
85874
85875 2003-09-26  Jim Meyering  <jim@meyering.net>
85876
85877         * lib/error.c (error_tail): Move some declarations
85878         into inner scope where the local variables are used.
85879
85880 2003-09-26  Bruno Haible  <bruno@clisp.org>
85881
85882         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Add comments about the AIX
85883         stpncpy().
85884         Don't define stpncpy through config.h; it's now done through stpncpy.h.
85885
85886 2003-09-26  Bruno Haible  <bruno@clisp.org>
85887
85888         * lib/stpncpy.h (gnu_stpncpy): New declaration.
85889         (stpncpy): Define as alias for gnu_stpncpy.
85890         * lib/stpncpy.c [!_LIBC]: Define gnu_stpncpy, not stpncpy.
85891
85892 2003-09-25  Simon Josefsson  <jas@extundo.com>
85893
85894         * lib/xgetdomainname.h: New file.
85895         * lib/xgetdomainname.c: New file.
85896
85897 2003-09-25  Simon Josefsson  <jas@extundo.com>
85898             Bruno Haible  <bruno@clisp.org>
85899
85900         * modules/getdomainname: New file.
85901         * modules/xgetdomainname: New file.
85902         * MODULES.html.sh (func_all_modules): Add getdomainname,
85903         xgetdomainname.
85904
85905 2003-09-25  Simon Josefsson  <jas@extundo.com>
85906             Bruno Haible  <bruno@clisp.org>
85907
85908         * m4/getdomainname.m4: New file.
85909
85910 2003-09-25  Simon Josefsson  <jas@extundo.com>
85911             Bruno Haible  <bruno@clisp.org>
85912
85913         * lib/getdomainname.h: New file.
85914         * lib/getdomainname.c: New file.
85915
85916 2003-09-25  Karl Berry  <karl@gnu.org>
85917
85918         * lib/argp-fmtstream.c, argp-help.c: update from libc.
85919
85920 2003-09-25  Karl Berry  <karl@gnu.org>
85921
85922         * config/install-sh: update from automake.
85923
85924 2003-09-25  Bruno Haible  <bruno@clisp.org>
85925
85926         * modules/version-etc-2: New file, from modules/version-etc with
85927         modifications.
85928         * MODULES.html.sh (func_all_modules): Add version-etc-2.
85929
85930 2003-09-25  Bruno Haible  <bruno@clisp.org>
85931
85932         * lib/version-etc-2.h: New file, from version-etc.h with modifications.
85933         * lib/version-etc-2.c: New file, from version-etc.c with modifications.
85934
85935 2003-09-24  Simon Josefsson  <jas@extundo.com>
85936
85937         * modules/xgethostname: Add xgethostname.h.
85938
85939 2003-09-24  Paul Eggert  <eggert@twinsun.com>
85940
85941         * lib/linebuffer.c (freebuffer): Don't free the argument, just
85942         the buffer associated with the argument.  Bug reported by
85943         Simon Josefsson.
85944
85945 2003-09-24  Paul Eggert  <eggert@twinsun.com>
85946
85947         * README: Document assumptions that 'int' is at least 32 bits
85948         wide, that integer arithmetic is 2's complement without overflow,
85949         that there are no holes in integer values, that adding sizes of
85950         two nonoverlapping objects can't overflow, and that all-bits-zero
85951         yields scalar zero.  Fix spelling and capitalization typos.
85952
85953 2003-09-19  Karl Berry  <karl@gnu.org>
85954
85955         * lib/argp.h: update from libc.
85956
85957 2003-09-17  Paul Eggert  <eggert@twinsun.com>
85958
85959         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Call AC_BEFORE first,
85960         to avoid spurious warnings like "AC_RUN_IFELSE was called before
85961         gl_USE_SYSTEM_EXTENSIONS" from autoreconf.
85962
85963 2003-09-17  Paul Eggert  <eggert@twinsun.com>
85964
85965         * gnulib-tool: Use "test -h", not "test -L", for portability
85966         to Solaris 8 /bin/sh.  (This bug is fixed in Solaris 9.)
85967         (tags_regexp): Remove, since \| doesn't conform to POSIX.
85968         (sed_extract_prog): Issue s commands one-by-one, rather than
85969         using \| in one s command.
85970
85971 2003-09-16  Paul Eggert  <eggert@twinsun.com>
85972
85973         * lib/linebuffer.c (readlinebuffer): Return NULL immediately upon
85974         input error, instead of returning NULL the next time we are called
85975         (and therefore losing track of errno).
85976
85977 2003-09-16  Bruno Haible  <bruno@clisp.org>
85978
85979         * gnulib-tool (func_create_testdir): Warn about duplicated
85980         dependencies.
85981
85982 2003-09-15  Paul Eggert  <eggert@twinsun.com>
85983
85984         * modules/argmatch, modules/fatal, modules/obstack,
85985         modules/xalloc, modules/xgethostname: Sort dependencies by
85986         importance, not alphabetically.
85987
85988 2003-09-15  Paul Eggert  <eggert@twinsun.com>
85989
85990         * lib/getndelim2.c (getndelim2): Don't trash errno when a read
85991         fails, so that the caller gets the proper errno.
85992
85993         * lib/readutmp.c (read_utmp): Likewise.
85994         Check for fstat error.  Close stream and free storage
85995         when failing.
85996
85997 2003-09-14  Karl Berry  <karl@gnu.org>
85998
85999         * config/srclist.txt (strdup.c): disable for c89 changes.
86000
86001 2003-09-14  Jim Meyering  <jim@meyering.net>
86002
86003         * lib/getloadavg.c: Correct cpp indentation.
86004         * lib/strdup.c: Likewise.
86005         * lib/vasnprintf.c: Likewise.
86006
86007 2003-09-14  Bruno Haible  <bruno@clisp.org>
86008
86009         * modules/fwriteerror: New file.
86010         * MODULES.html.sh (func_all_modules): Add fwriteerror.
86011
86012 2003-09-14  Bruno Haible  <bruno@clisp.org>
86013
86014         * lib/fwriteerror.h: New file.
86015         * lib/fwriteerror.c: New file.
86016
86017 2003-09-12  Paul Eggert  <eggert@twinsun.com>
86018
86019         * modules/argmatch, modules/exitfail, modules/fatal, modules/obstack,
86020         modules/xgethostname, modules/xalloc: Depend on exit.
86021
86022 2003-09-12  Paul Eggert  <eggert@twinsun.com>
86023
86024         * m4/error.m4: Require AC_FUNC_STRERROR_R rather than invoking it.
86025
86026         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Require AC_AIX
86027         and AC_MINIX, too, so that their extensions are available.
86028
86029         * m4/prereq.m4 (jm_PREREQ_ADDEXT): Remove.  All uses removed.
86030         This macro has been superseded by gl_BACKUPFILE.
86031
86032         More patches to assume C89 or better.
86033
86034         * m4/error.m4 (gl_ERROR): Don't check for vprintf.
86035
86036         * m4/check-decl.m4 (jm_CHECK_DECLS): Include <string.h>, <stdlib.h>
86037         unconditionally.
86038         * m4/closeout.m4 (gl_CLOSEOUT): Don't check for stdlib.h.
86039         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER):
86040         Include <string.h>, <stdlib.h> unconditionally.
86041         * m4/lstat.m4 (gl_PREREQ_LSTAT): Don't check for stdlib.h, free.
86042         * m4/readdir.m4 (GL_FUNC_READDIR): Don't check for string.h.
86043         * m4/readutmp.m4 (gl_PREREQ_READUTMP): Don't check for standard C
86044         headers or for string.h.
86045         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Don't check for stdlib.h
86046         or strtoul.
86047
86048         * m4/mkstemp.m4 (jm_PREREQ_TEMPNAME): Do not require standard C
86049         headers.
86050         * m4/strdup.m4 (gl_PREREQ_STRDUP): Likewise.
86051         * m4/userspec.m4 (gl_USERSPEC): Likewise.
86052         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Likewise.
86053         * m4/xstrtod.m4 (gl_XSTRTOD): Likewise.
86054         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
86055         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't check for limits.h,
86056         memcpy, memset.
86057         (jm_FUNC_GNU_STRFTIME): Don't require standard C headers.
86058         * m4/strtod.m4 (gl_FUNC_STRTOD): Do not check for float.h.
86059         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Do not check for stdlib.h,
86060         strtol.
86061         * m4/strtol.m4 (gl_FUNC_STRTOL): Do not check for limits.h.
86062         * m4/userspec.m4 (gl_USERSPEC): Do not check for string.h.
86063         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Do not check for string.h, strtol,
86064         strtoul.
86065
86066 2003-09-12  Paul Eggert  <eggert@twinsun.com>
86067
86068         * lib/argmatch.c, fatal.c, xgethostname.c, xmalloc.c: Include exit.h.
86069         * lib/obstack.c [!defined _LIBC]: Likewise.
86070         * lib/argmatch.c (EXIT_FAILURE): Remove; now done by exit.h
86071         * lib/exitfail.c, fatal.c, xgethostname.c, xmalloc.c: Likewise.
86072         * lib/exitfail.c: Don't include stdlib.h; no longer needed.
86073
86074         More changes to assume C89 or better.
86075
86076         * lib/error.c (error_tail): Assume vprintf.
86077
86078         * lib/argmatch.c (getenv): Remove decl.
86079         * lib/progreloc.c (get_full_program_name): Define via prototype.
86080         * lib/setenv.c (clearenv): Likewise.
86081         * lib/stpncpy.c: Do not include <string.h> or <sys/types.h>; not
86082         needed.
86083         * lib/strdup.c: Include <stdlib.h>, <string.h> unconditionally.
86084         (malloc, memcpy): Remove decls.
86085         * lib/strftime.c (HAVE_LIMITS_H, STDC_HEADERS) [defined _LIBC]: Remove.
86086         (HAVE_MEMCPY) [defined emacs && !defined HAVE_BCOPY]: Remove.
86087         Include <limits.h>, <stddef.h>, <stdlib.h>, <string.h> unconditionally.
86088         (memcpy): Remove macro.
86089         (MEMCPY) [!defined COMPILE_WIDE]: Define to memcpy unconditionally.
86090         (__P): Remove.  All uses removed.
86091         (PTR): Remove.  All uses changed to void *.
86092         (CHAR_BIT, NULL): Remove.
86093         (spaces, zeros, memset_space, memset_zero)
86094         [!defined memset && !defined HAVE_MEMSET && !defined _LIBC]:
86095         Remove.
86096         (LOCALE_PARAM, LOCALE_PARAM_DECL): Remove.
86097         (memcpy_lowcase, memcpy_uppcase, tm_diff, iso_week_days):
86098         Define with prototype.
86099         Remove now-unnecessary prototype decl.
86100         (extra_args_spec): Assume ANSI C.  All uses changed.
86101         (extra_args_spec_iso): Remove.
86102         (my_strftime, emacs_strftimeu): Define via prototype.
86103         * lib/strtod.c: Include <float.h>, <stdlib.h>, <string.h>
86104         unconditionally.
86105         (DBL_MAX, DBL_MIN, HUGE_VAL, NULL): Remove decls.
86106         * lib/strtoimax.c: Include <stdlib.h> unconditionally.
86107         (strtoul, strtol): Remove decls.
86108         * lib/strtol.c (STDC_HEADERS, HAVE_LIMITS_H, NULL, ULONG_MAX,
86109         LONG_MAX): Remove.
86110         Include <limits.h>, <stddef.h>, <stdlib.h>, <string.h> unconditionally.
86111         (LOCALE_PARAM_DECL): Remove.  All uses changed to LOCALE_PARAM_PROTO.
86112         (LOCALE_PARAM_PROTO): New macro.
86113         (INTERNAL, INTERNAL1, WEAKNAME): Assume ANSI C, not K&R.
86114         (INTERNAL (strtol), strtol): Define with a prototype.
86115         (PARAMS): Remove.  All uses removed.
86116         * lib/tempname.c: Include <string.h> unconditionally.
86117         * lib/userspec.c: Include <stdlib.h>, <string.h> unconditionally.
86118         * lib/xgethostname.c (main): Define with a prototype.
86119         * lib/xmalloc.c: Include "xalloc.h" first, to check interface.
86120         Include <stdlib.h> unconditionally.
86121         (calloc, malloc, realloc, free): Remove decls.
86122         * lib/xstrtod.c: Include "xstrtod.h" first, to check interface.
86123         Include <stdlib.h> unconditionally.  Sort include file names.
86124         (strtod): Remove.
86125         (xstrtod): Define with a prototype.
86126         * lib/xstrtol.c: Include <stdlib.h>, <string.h> unconditionally.
86127         (strtol, strtoul): Remove decls.
86128
86129 2003-09-11  Paul Eggert  <eggert@twinsun.com>
86130
86131         More patches to assume C89 or better.
86132         * m4/strndup.m4 (gl_PREREQ_STRNDUP): Remove STDC_HEADERS check.
86133         * m4/strnlen.m4 (gl_PREREQ_STRNLEN): Don't check for memory.h,
86134         string.h, memchr, STDC_HEADERS.
86135
86136 2003-09-11  Paul Eggert  <eggert@twinsun.com>
86137
86138         * lib/strndup.c: Don't include <stdio.h>, <sys/types.h>.
86139         Include <stdlib.h>, <string.h> unconditionally.
86140         Remove now-unnecessary cast to char *.
86141         * lib/strnlen.c: Include <string.h> unconditionally.
86142         * lib/yesno.c (yesno): Define with a prototype.
86143
86144 2003-09-11  Bruno Haible  <bruno@clisp.org>
86145
86146         * config/srclist.txt (setenv.c, unsetenv.c): Disable for the moment.
86147
86148 2003-09-10  Jim Meyering  <jim@meyering.net>
86149
86150         * lib/error.c: Correct indentation of cpp directives.
86151
86152 2003-09-10  Bruno Haible  <bruno@clisp.org>
86153
86154         * m4/strcspn.m4 (gl_PREREQ_STRCSPN): Remove <string.h> check.
86155         * m4/strpbrk.m4 (gl_PREREQ_STRPBRK): Remove <string.h> check.
86156         * m4/strstr.m4 (gl_PREREQ_STRSTR): Remove <string.h> check.
86157         * m4/unicodeio.m4 (gl_UNICODEIO): Remove <string.h> check.
86158         * m4/setenv.m4 (gl_PREREQ_SETENV, gl_PREREQ_UNSETENV): Remove
86159         <stdlib.h> and <string.h> checks.
86160         * m4/xreadlink.m4 (gl_XREADLINK): Remove <stdlib.h> check.
86161         * m4/yesno.m4 (gl_YESNO): Remove <stdlib.h> check.
86162
86163 2003-09-10  Bruno Haible  <bruno@clisp.org>
86164
86165         * lib/strcspn.c: Include <string.h> unconditionally.
86166         * lib/strpbrk.c: Include <string.h> unconditionally.
86167         * lib/strstr.c: Include <string.h> unconditionally.
86168         * lib/unicodeio.c: Include <string.h> unconditionally.
86169         * lib/setenv.c: Include <stdlib.h> and <string.h> unconditionally.
86170         * lib/unsetenv.c: Likewise.
86171         * lib/xreadlink.c: Include <stdlib.h> unconditionally.
86172         * lib/yesno.c: Include <stdlib.h> unconditionally.
86173         (rpmatch): Add prototype.
86174
86175 2003-09-09  Paul Eggert  <eggert@twinsun.com>
86176
86177         More patches to assume C89 or better.
86178         * m4/getcwd.m4 (AC_FUNC_GETCWD_NULL): Don't check for stdlib.h.
86179         * m4/getopt.m4 (gl_GETOPT): Don't check for string.h.
86180         * m4/getugroups.m4 (gl_GETUGROUPS): Do not check for standard C headers
86181         or for string.h.
86182         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Do not check for
86183         stdlib.h.
86184         * m4/group-member.m4 (gl_PREREQ_GROUP_MEMBER): Do not require standard
86185         C headers.
86186         * m4/hard-locale.m4 (gl_HARD_LOCALE): Do not check for stdlib.h,
86187         string.h.
86188         * m4/hash.m4 (gl_HASH): Do not check for stdlib.h, malloc, free.
86189         * m4/human.m4 (gl_HUMAN): Do not check for stdlib.h, string.h, getenv.
86190         * m4/idcache.m4 (gl_IDCACHE): Do not check for standard C headers,
86191         or for string.h.
86192         * m4/long-options.m4 (gl_LONG_OPTIONS): Do not check for stdlib.h.
86193         * m4/makepath.m4 (gl_MAKEPATH): Do not check for string.h or standard
86194         C headers.
86195         * m4/md5.m4 (gl_MD5): Don't check for limits.h, standard C headers,
86196         memcpy.
86197         * m4/sha.m4 (gl_SHA): Don't check for standard Cheaders, memcpy.
86198         * m4/memchr.m4 (jm_PREREQ_MEMCHR): Don't check for limits.h, stdlib.h.
86199         * m4/memcmp.m4 (gl_PREREQ_MEMCMP): Don't check for string.h.
86200         * m4/memcoll.m4 (gl_MEMCOLL): Likewise.
86201         * m4/memrchr.c (gl_PREREQ_MEMRCHR): Don't check for limits.h.
86202         * m4/mkdir-slash.m4 (gl_PREREQ_MKDIR): Don't check for stdlib.h,
86203         string.h, free.
86204         * m4/mktime.m4 (gl_PREREQ_MKTIME): Don't check for standard C headers.
86205         * m4/modechange.m4 (gl_MODECHANGE): Don't check for standard C headers.
86206         * m4/mountlist.m4 (gl_PREREQ_MOUNTLIST_EXTRA): Don't check for standard
86207         C headers, or for string.h.
86208         * m4/obstack.m4 (gl_OBSTACK): Don't check for stddefe.h, string.h.
86209         (gl_PREREQ_OBSTACK): Don't check for stdlib.h.
86210         * m4/path-concat.m4 (gl_PATH_CONCAT): Don't check for standard C
86211         headers, memory.h, stdlib.h, string.h, strings.h.
86212         * m4/posixtm.m4 (gl_POSIXTM): Don't check for stdlib.h, string.h.
86213         * m4/posixver.m4 (gl_POSIXVER): Don't check for getenv.
86214         * m4/putenv.m4 (gl_PREREQ_PUTENV): Don't check for string.h, memcpy,
86215         strchr.
86216         * m4/readtokens.m4 (gl_READTOKENS): Don't check for standard C
86217         headers, memory.h, string.h.
86218         * m4/regex.m4 (jm_PREREQ_REGEX): Do not check for limits.h, string.h.
86219         * m4/rename.m4 (gl_PREREQ_RENAME): Do not check for stdlib.h, string.h,
86220         free.
86221         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Don't check for standard C
86222         headers.
86223         * m4/same.m4 (gl_SAME): Don't check for stdlib.h, string.h, free.
86224         * m4/save-cwd.m4 (gl_SAVE_CWD): Don't check for standard C headers.
86225         * m4/savedir.m4 (gl_SAVEDIR): Don't check for standard C headers.
86226         * m4/strchrnul.m4 (gl_PREREQ_STRCHRNUL): Don't check for string.h.
86227         * m4/xgetcwd.m4 (gl_XGETCWD): Don't check for stdlib.h.
86228
86229 2003-09-09  Paul Eggert  <eggert@twinsun.com>
86230
86231         More K&R removal.
86232
86233         * lib/acosl.c (main): Use a prototype.
86234         * lib/asinl.c, cosl.c, expl.c, frexpl.c, ldexpl.c, sinl.c,
86235         tanl.c: Likewise.
86236
86237         * lib/getloadavg.c (getloadavg, main): Define via prototypes.
86238
86239         * lib/getopt.h (struct option.name): Assume C89, and use 'const'.
86240         (getopt, etopt_long, getopt_long_only, _getopt_internal)
86241         [defined __GNU_LIBRARY__]: Assume C89, so we can always declare
86242         with a prototype.
86243         * lib/getopt.c (const): Remove macro.
86244         Include <string.h> unconditionally.
86245         (my_index): Remove; all uses changed to strchr.
86246         (strlen): Remove decl.
86247         (exchange): Remove forward decl; no longer needed.
86248         (exchange, _getopt_initialize, _getopt_internal, getopt, main):
86249         Define with prototype.
86250         * lib/getopt1.c (const): Remove macro.
86251         (getopt_long, getopt_long_only, main): Define with prototype.
86252
86253         * lib/getugroups.c: Include <string.h> unconditionally.
86254
86255         * lib/getusershell.c: Include <stdlib.h> unconditionally.
86256         (getusershell, setusershell, endusershell, readname, main):
86257         Define with prototypes.
86258
86259         * lib/group-member.c: Include group-member.h first.
86260         Include <stdlib.h> unconditionally.
86261
86262         * lib/hard-locale.c: Include hard-locale.h first.
86263         Include <stdlib.h>, <string.h> unconditionally.
86264
86265         * lib/hash.c (free, malloc): Remove decls.
86266         Include <stdlib.h> unconditionally.
86267
86268         * lib/human.c: Include <stdlib.h>, <string.h> unconditionally.
86269         (getenv): Do not declare.
86270
86271         * lib/idcache.c: Include <string.h> unconditionally.
86272
86273         * lib/long-options.c: Include long-options.h first, to test interface.
86274         Include <stdlib.h> unconditionally.
86275
86276         * lib/makepath.c: Include makepath.h first, to test interface.
86277         Include <stdlib.h> and <string.h> unconditionally.
86278
86279         * lib/linebuffer.c: Include <stdlib.h>.
86280         (free): Remove decl.
86281
86282         * lib/malloc.c: Include <stdlib.h>, for malloc; don't bother with
86283         stddef.h. rpl_malloc returns void *, not char *.
86284         * lib/realloc.c (rpl_realloc): Likewise.  Also, define with a
86285         prototype.
86286
86287         * lib/md5.h: Include <limits.h> unconditionally.
86288         (UINT_MAX_32_BITS): Don't worry about non-__STDC__ case.
86289         (__P): Remove; all uses removed.
86290         * lib/md5.c: Include "md5.h" first.
86291         (md5_init_ctx, md5_read_ctx, md5_finish_ctx, md5_stream,
86292         md5_buffer, md5_process_bytes, md5_process_block):
86293         Define with prototypes.
86294         * lib/sha.h (__P): Remove all uses.  (It wasn't defined??)
86295         * lib/sha.c: Include "sha.h" first.
86296         Include <stdlib.h>, <string.h> unconditionally.
86297
86298         * lib/memchr.c (__ptr_t): Remove; all uses changed to void *.
86299         * lib/memcmp.c (__ptr_t): Likewise.
86300         * lib/memrchr.c (__ptr_t): Likewise.
86301         * lib/memchr.c, memcmp.c, memcoll.c, memrchr.c:
86302         Include <string.h> unconditionally.
86303         * lib/memchr.c, memrchr.c: Include <limits.h> unconditionally.
86304         * lib/memchr.c: Include <stdlib.h> unconditionally.
86305         * lib/memchr.c (LONG_MAX): Remove.
86306         * lib/memrchr.c (LONG_MAX): Likewise.
86307         * lib/memchr.c (__memchr): Define via a prototype.
86308         * lib/memrchr.c (__memrchr): Likewise.
86309         * lib/memcmp.c (__P): Remove, and remove all uses.
86310         (memcmp_bytes, memcmp_common_alignment, memcmp_not_common_alignment):
86311         Remove forward decls; no longer needed.
86312         * lib/memcpy.c, memmove.c, memset.c: Include <stddef.h>.
86313         Use types required by C89 in prototype.
86314
86315         * lib/mkdir.c: Include <stdlib.h>, <string.h> unconditionally.
86316         * lib/savedir.c: Likewise.
86317         * lib/mkdir.c (free): Remove decl.
86318         * lib/rmdir.c (rmdir): Define with a prototype.
86319         * lib/savedir.c: Include savedir.h first, to test interface.
86320
86321         * lib/mktime.c (STDC_HEADERS): Remove.
86322         Include <stdlib.h>, <string.h> unconditionally.
86323
86324         * lib/modechange.c: Include <stdlib.h> unconditionally.
86325         (malloc): Remove decl.
86326
86327         * lib/mountlist.c: Include <stdlib.h>, <string.h> unconditionally.
86328         (free): Remove decl.
86329
86330         * lib/obstack.h (PTR_INT_TYPE) [!defined __PTRDIFF_TYPE__]:
86331         Define to ptrdiff_t, without bothering to check HAVE_STDDEF_H.
86332         (This type really should be intptr_t, but that's a C99ism.)
86333         (_obstack_memcpy): Remove: all uses changed to memcpy.
86334         Include <string.h> unconditionally.
86335         (struct obstack): Assume __STDC__ for types of members
86336         chunkfun, freefun, extra_arg.
86337         (_obstack_newchunk, _obstack_free, _obstack_begin, _obstack_begin_1,
86338         _obstack_memory_used, obstack_alloc_failed_handler, obstack_init,
86339         obstack_begin, obstack_specify_allocation,
86340         obstack_specify_allocation_with_arg, obstack_chunkfun,
86341         obstack_freefun, obstack_free) [! (defined __STDC__ && __STDC__)]:
86342         Remove unprototyped decls and the macros that use them.
86343         * lib/obstack.c (POINTER): Remove.  All uses changed to void *.
86344         (obstack_alloc_failed_handler, CALL_CHUNKFUN, CALL_FREEFUN,
86345         _obstack_begin, _obstack_begin_1, _obstack_allocated_p)
86346         (defined __STDC__ && __STDC__)]:
86347         Remove nonprototyped code.
86348         Include <stdlib.h> unconditionally.
86349         (_obstack_begin, _obstack_begin_1, _obstack_newchunk,
86350         _obstack_allocated_p, _obstack_free, obstack_free,
86351         _obstack_memory_used, print_and_abort):
86352         Define using prototypes.
86353         (obstack_1grow, obstack_1grow_fast, obstack_alloc, obstack_base,
86354         obstack_blank, obstack_blank_fast, obstack_copy, obstack_copy0,
86355         obstack_finish, obstack_grow, obstack_grow0, obstack_make_room,
86356         obstack_next_free, obstack_object_size, obstack_room) [0]:
86357         Remove unused, unprototyped code.
86358
86359         * lib/path-concat.c: Include <stdlib.h>, <string.h> unconditionally.
86360
86361         * lib/physmem.c (physmem_total, physmem_available, main): Define
86362         with prototypes.
86363
86364         * lib/posixtm.c: Include <stdlib.h>, <string.h> unconditionally.
86365         (main): Define with a prototype.
86366
86367         * lib/posixver.c (getenv): Remove decl.
86368
86369         * lib/putenv.c (malloc): Returns void *, not char *.
86370         Include <string.h> unconditionally.
86371         (strchr, memcpy, NULL): Do not define.
86372
86373         * lib/readtokens.c: Include readtokens.h first, to test interface.
86374         Include <stdlib.h>, <string.h> unconditionally.
86375         (init_tokenbuffer): Define with a prototype.
86376
86377         * lib/regex.c (PARAMS): Remove.  All uses removed.
86378         All uses of _RE_ARGS removed, too.
86379         Include <stddef.h>, <stdlib.h>, <string.h>, <limits.h>
86380         unconditionally.
86381         (bzero): Assume memset exists.
86382         (memcmp, memcpy, NULL): Remove.
86383         (SIGN_EXTEND_CHAR): Remove; all uses replaced by casts to signed
86384         char, or assignments to local vars of type signed char.
86385         (init_syntax_once, PREFIX(extract_number_and_incr),
86386         PREFIX(print_partial_compiled_pattern),
86387         PREFIX(print_compiled_pattern), PREFIX(print_double_string),
86388         convert_mbs_to_wcs, print_fastmap, re_set_syntax,
86389         PREFIX(regex_grow_registers), PREFIX(regex_compile),
86390         PREFIX(store_op1), PREFIX(store_op2), PREFIX(insert_op1),
86391         PREFIX(insert_op2), PREFIX(at_begline_loc_p),
86392         PREFIX(at_endline_loc_p), group_in_compile_stack, insert_space,
86393         wcs_compile_range, byte_compile_range, truncate_wchar,
86394         PREFIX(re_compile_fastmap), re_compile_fastmap, re_set_registers,
86395         re_search, re_search_2, PREFIX(re_search_2), re_match, re_match_2,
86396         count_mbs_length, wcs_re_match_2_internal,
86397         byte_re_match_2_internal, PREFIX(group_match_null_string_p),
86398         PREFIX(alt_match_null_string_p),
86399         PREFIX(common_op_match_null_string_p), PREFIX(bcmp_translate),
86400         re_compile_pattern, re_comp, re_exec, regcomp, regexec, regerror,
86401         regfree, PREFIX(extract_number)): Define with prototype.  Remove
86402         now-unnecessary declaration, if any.
86403         (byte_compile_range, PREFIX(regex_compile), re_comp, re_exec,
86404         regcomp, regexec):
86405         Remove now-unnecessary casts among pointer types.
86406         * lib/regex.h (_RE_ARGS): Remove.  All uses removed.
86407
86408         * lib/rename.c: Include <stdlib.h>, <string.h> unconditionally.
86409         (free): Remove decl.
86410
86411         * lib/rpmatch.c: Include <stdlib.h> unconditionally.
86412
86413         * lib/same.c: Include <stdlib.h>, <string.h> unconditionally.
86414         (free): Remove decl.
86415
86416         * lib/save-cwd.c: Include <stdlib.h> unconditionally.
86417         * lib/xgetcwd.c: Likewise.
86418
86419         * lib/stat.c: Include <stdlib.h>, <string.h> unconditionally.
86420         (free): Remove decl.
86421
86422         * lib/strchrnul.c (strchrnul): Define with a prototype.
86423         Fix bug: c_in was not converted to char before searching.
86424
86425         The following changes are not K&R related:
86426
86427         * lib/group-member.h: Include <sys/types.h>, so that this file is
86428         self-contained.
86429         * lib/makepath.h: Likewise.
86430
86431         * lib/getusershell.c (readname, default_index, line_size, readname):
86432         Use size_t, not int, for sizes.
86433         (readname): If the size overflows, report an error instead of
86434         looping forever.
86435
86436 2003-09-09  Paul Eggert  <eggert@twinsun.com>
86437
86438         * config/srclist.txt: Do not get getopt.h, getopt1.c, or regex.h from
86439         libc.
86440
86441 2003-09-09  Paul Eggert  <eggert@twinsun.com>
86442
86443         * README: New section: portability guidelines.
86444
86445 2003-09-09  Derek Robert Price  <derek@ximbiot.com>
86446
86447         * m4/getndelim2.m4 (gl_PREREQ_GETNDELIM2): Assume stdlib.h per the
86448         C89 spec.
86449
86450 2003-09-09  Derek Robert Price  <derek@ximbiot.com>
86451
86452         * lib/getndelim2.c: Assume stdlib.h per the C89 spec.
86453
86454 2003-09-08  Paul Eggert  <eggert@twinsun.com>
86455
86456         Assume C89 or better; remove K&R cruft.
86457         A few of these changes were first proposed by Derek Robert Price
86458         in <http://mail.gnu.org/archive/html/bug-gnulib/2003-07/msg00105.html>.
86459
86460         * lib/addext.c: Include <string.h> unconditionally.
86461         * lib/backupfile.c: Include <string.h>, <stdlib.h> unconditionally.
86462         Don't declare getenv or malloc.
86463
86464         * lib/alloca.c: Include <string.h>, <stdlib.h> unconditionally.
86465         (POINTER_TYPE, pointer): Remove; all uses changed to void *.
86466         (NULL): Remove.
86467         (find_stack_direction, alloca): Use prototypes.
86468
86469         * lib/atexit.c (atexit): Define using a prototype.
86470
86471         * lib/basename.c, dirname.c, stripslash.c:
86472         Include <string.h> unconditionally.
86473
86474         * lib/bcopy.c: Include <stddef.h>.
86475         (bcopy): Define with prototype, using 'const' and 'void' and 'size_t'.
86476
86477         * lib/canon-host.c: Include <stdlib.h>, <string.h> unconditionally.
86478
86479         * lib/error.h (error, error_at_line, error_print_progname)
86480         [! (defined (__STDC__) && __STDC__)]: Remove decls.
86481         * lib/error.c: Include error.h first, to check interface.
86482         Include <stdarg.h>, <stdlib.h>, <string.h> unconditionally.
86483         (VA_START): Remove; all uses changeed to va_start.
86484         (exit, strerror): Remove decls.
86485         (error_print_progname): Prototype uncondionally.
86486         Don't include <errno.h>; no longer needed.
86487         (private_strerror): Remove.
86488         (error_tail): Always define.
86489         (error, error_at_line): Assume C89 or better; always use prototypes.
86490         * lib/fatal.c: Include "fatal.h" first, to test interface.
86491         Include <stdarg.h>, <stdlib.h>, <string.h> unconditionally.
86492         (VA_START): Remove; all uses changed to va_start.
86493         [! (HAVE_VPRINTF || HAVE_DOPRNT || _LIBC)]: Remove support for
86494         this case.
86495         (exit): Remove decl.
86496         (fatal): Prototype unconditionally.  Assume va_start works.
86497         Abort at end, to pacify gcc.
86498
86499         * lib/euidaccess.c (main): Define with a prototype.
86500
86501         * lib/exclude.c: Include <stdlib.h>, <string.h> unconditionally.
86502
86503         * lib/exitfail.c: Include <stdlib.h> unconditionally.
86504
86505         * lib/fnmatch_.h (__P): Remove.  All uses changed to assume
86506         prototypes.
86507         * lib/fnmatch.c: Include fnmatch.h first, to test interface.
86508         Include <string.h>, <stddef.h>, <stdlib.h> unconditionally.
86509         (getenv): Remove decl.
86510         (fnmatch): Define using a prototype.
86511         * lib/fnmatch_loop.c (FCT): Remove forward decl; no longer needed.
86512         (FCT): Define using a prototype.
86513
86514         * lib/getdate.y: Include <stdlib.h>, <string.h> unconditionally.
86515
86516         * lib/gethostname.c: Include <stddef.h>.
86517         (gethostname): Define with prototype.  Length is size_t, not int.
86518
86519 2003-09-08  Paul Eggert  <eggert@twinsun.com>
86520
86521         Assume C89 or better; remove K&R cruft.
86522         * m4/alloca.m4 (gl_PREREQ_ALLOCA): Don't check for stdlib.h, string.h.
86523         * m4/backupfile.m4 (gl_BACKUPFILE): Don't check for stdlib.h,
86524         string.h, getenv, malloc.
86525         * m4/dirname.m4 (gl_DIRNAME): Don't check for string.h or C standard
86526         headers.
86527         * m4/canon-host.m4 (gl_CANON_HOST): Don't check for string.h, stdlib.h.
86528         * m4/error.m4 (jm_PREREQ_ERROR): Do not require STDC headers, and
86529         do not check for strerror.
86530         * m4/exclude.m4: Do not check for stdlib.h, string.h, strings.h.
86531         * m4/exitfail.m4 (gl_EXITFAIL): Do not check for stdlib.h.
86532         * m4/fatal.m4 (gl_FATAL): Do not require STDC headers, and
86533         do not check for doprnt or vprintf.
86534         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH_EXTRA): Remove.  All uses removed.
86535         * m4/getdate.m4 (gl_GETDATE): Don't check for stdlib.h or string.h.
86536
86537 2003-09-08  Paul Eggert  <eggert@twinsun.com>
86538
86539         * lib/getversion.c: Remove; was migrated to backupfile.c in 1997.
86540         getversion.c should have been removed then, but was accidentally
86541         preserved.
86542
86543         * lib/utime.c [!HAVE_UTIMES_NULL]: Include <sys/stat.h>, <fcntl.h>.
86544         (utime_null): Fix typo: 'st' was sometimes called 'sb'.
86545
86546 2003-09-08  Karl Berry  <karl@gnu.org>
86547
86548         * config/config.sub, config.guess, srclistvars.sh: update from savannah
86549                 config, forget about prep.
86550
86551         * config/depcomp, missing: update from automake.
86552
86553 2003-09-07  Paul Eggert  <eggert@twinsun.com>
86554
86555         * modules/time_r: Depend on 'restrict'.  Fix from Simon Josefsson in
86556         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00028.html>.
86557
86558 2003-09-07  Paul Eggert  <eggert@twinsun.com>
86559
86560         * lib/time_r.c (gmtime_r, localtime_r): Fix silly typo: missing arg to
86561         copy_tm_result.  Bug reported by Simon Josefsson in
86562         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00028.html>.
86563
86564 2003-09-06  Paul Eggert  <eggert@twinsun.com>
86565
86566         * m4/time_r.m4: New file.
86567         * m4/mktime.m4 (gl_PREREQ_MKTIME): Remove check for limits.h.
86568         * m4/timegm.m4 (gl_FUNC_TIMEGM): Assume that timegm is buggy if mktime
86569         is. Check for timegm declaration.
86570         (gl_PREREQ_TIMEGM): Require gl_FUNC_MKTIME.
86571         Do not check for gmtime_r.
86572         Replace mktime if __mktime_internal does not exist and if mktime
86573         hasn't been replaced already.
86574
86575 2003-09-06  Paul Eggert  <eggert@twinsun.com>
86576
86577         * lib/time_r.c, lib/time_r.h: New files.
86578
86579         * lib/mktime.c (my_mktime_localtime_r): Remove; all uses changed to
86580         __localtime_r.
86581         (__localtime_r) [!defined _LIBC]: New macro.  Include <time_r.h>.
86582         (__mktime_internal) [!defined _LIBC]: Now extern, not static.
86583
86584         * lib/strftime.c (my_strftime_gmtime_r): Remove; all uses changed to
86585         __gmtime_r.
86586         (my_strftime_localtime_r): Remove; all uses changed to __localtime_r.
86587         (__gtime_r, __localtime_r) [!HAVE_TM_GMTOFF]: New macros.
86588         Include <time_r.h>.
86589
86590         * lib/timegm.c: Switch to glibc implementation, with the following
86591         changes:
86592         [defined HAVE_CONFIG_H]: Include <config.h>.
86593         [!defined _LIBC]: Include "timegm.h" rather than <time.h>.
86594         (__mktime_internal) [!defined _LIBC]: New decl.
86595         (__gmtime_r) [!defined _LIBC]: New macro and function.
86596         (timegm): Use a prototype, since gnulib assumes C89.
86597         Do not bother declaring tmp to be const, as it's not really usefu.
86598         * lib/timegm.h: Hoist "#include <time.h>" out of #ifdef.
86599         (timegm): Declare only if HAVE_DECL_TIMEGM.
86600
86601 2003-09-06  Paul Eggert  <eggert@twinsun.com>
86602
86603         * MODULES.html.sh (func_all_modules): Add time_r.
86604         * modules/time_r: New file.
86605         * modules/mktime, modules/strftime, modules/timegm: Depend on time_r.
86606         * modules/timegm: Depend on mktime.  Change maintainer to "all, glibc".
86607
86608 2003-09-03  Paul Eggert  <eggert@twinsun.com>
86609
86610         * lib/human.c (human_readable): Fix bug that rounded 10501 to 10k.
86611         Bug reported by Lute Kamstra in
86612         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00003.html>.
86613
86614         * lib/getdate.y (relative_time_table): Use tDAY_UNIT for "tomorrow",
86615         "yesterday", "today", and "now" rather than tMINUTE_UNIT.  Of
86616         course with correspondingly smaller numbers for tomorrow and
86617         yesterday.  From Tadayoshi Funaba.  Originally installed into
86618         sh-utils on 1999-08-07, but the patch got lost (I guess during the
86619         coreutils merge?).
86620
86621 2003-08-31  Simon Josefsson  <jas@extundo.com>
86622
86623         * modules/timegm: New file.
86624         * MODULES.html.sh (func_all_modules): Add timegm.
86625
86626 2003-08-31  Simon Josefsson  <jas@extundo.com>
86627
86628         * m4/timegm.m4: New file.
86629
86630 2003-08-31  Simon Josefsson  <jas@extundo.com>
86631
86632         * lib/timegm.h: New file.
86633         * lib/timegm.c: New file.  Based on
86634         wget-1.8.2/src/http.c:mktime_from_utc.
86635
86636 2003-08-31  Karl Berry  <karl@gnu.org>
86637
86638         * lib/argp.h: update from libc.
86639
86640 2003-08-28  Bruno Haible  <bruno@clisp.org>
86641
86642         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Remove AC_DEFINE of fnmatch here.
86643         This avoids havoc on compilers for which '#define fnmatch rpl_fnmatch'
86644         followed by '#define fnmatch fnmatch_posix' gives an error.
86645
86646 2003-08-28  Bruno Haible  <bruno@clisp.org>
86647
86648         * lib/binary-io.h: Undefine O_BINARY before defining it. This avoids a
86649         warning on QNX, which defines O_BINARY to 000000.
86650
86651 2003-08-27  Jim Meyering  <jim@meyering.net>
86652
86653         * m4/mkstemp.m4: Require that the system mkstemp be able to create
86654         70 temporary files, not just 30.  Tru64 V4.0F's mkstemp function
86655         would fail after 32.  Reported by Danny Levinson.  Details here:
86656         http://mail.gnu.org/archive/html/bug-coreutils/2003-08/msg00124.html
86657
86658 2003-08-24  Bruno Haible  <bruno@clisp.org>
86659
86660         * lib/binary-io.h: Include <stdio.h>, to avoid a compilation error when
86661         MSVC7 <stdio.h> is included later.
86662
86663 2003-08-22  Simon Josefsson  <jas@extundo.com>
86664
86665         * modules/strndup (Makefile.am): Add strndup.h to lib_SOURCES.
86666
86667 2003-08-20  Karl Berry  <karl@gnu.org>
86668
86669         * m4/lib-ld.m4: serial 1003 from gettext, no changes besides serial.
86670
86671 2003-08-20  Bruno Haible  <bruno@clisp.org>
86672
86673         * modules/progname: New file.
86674         * MODULES.html.sh (func_all_modules): Add progname.
86675
86676 2003-08-20  Bruno Haible  <bruno@clisp.org>
86677
86678         * lib/progname.h: New file, from GNU gettext.
86679         * lib/progname.c: New file, from GNU gettext.
86680         * lib/progreloc.c: New file, from GNU gettext.
86681
86682 2003-08-19  Jim Meyering  <jim@meyering.net>
86683
86684         * m4/lib-ld.m4: Revert yesterday's change, per Bruno's request here:
86685         http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00155.html
86686
86687 2003-08-19  Bruno Haible  <bruno@clisp.org>
86688
86689         * m4/xalloc.m4 (gl_PREREQ_XSTRDUP): Don't check for <string.h> any
86690         more.
86691
86692 2003-08-19  Bruno Haible  <bruno@clisp.org>
86693
86694         * lib/xstrdup.c: Assume <string.h> exists.
86695
86696 2003-08-18  Paul Eggert  <eggert@twinsun.com>
86697
86698         * modules/stdbool: Add BUILT_SOURCES.  Prefer $@ to target name
86699         in makefile rules.
86700
86701 2003-08-18  Jim Meyering  <jim@meyering.net>
86702
86703         * m4/getloadavg.m4: Use [\t ], not [ \t] (where \t is a literal TAB).
86704         * m4/lib-ld.m4: Likewise.
86705
86706 2003-08-18  Jim Meyering  <jim@meyering.net>
86707
86708         * lib/setenv.h: Indent nested cpp directive.
86709         * lib/vasnprintf.c: Remove trailing blanks.
86710
86711 2003-08-17  Simon Josefsson  <jas@extundo.com>
86712
86713         * modules/xstrndup: New file.
86714         * MODULES.html.sh (func_all_modules): Add xstrndup.
86715
86716 2003-08-17  Simon Josefsson  <jas@extundo.com>
86717
86718         * modules/argp: Fix autoconf macro name. Add more dependencies.
86719
86720 2003-08-17  Simon Josefsson  <jas@extundo.com>
86721
86722         * m4/xstrndup.m4: New file.
86723
86724 2003-08-17  Simon Josefsson  <jas@extundo.com>
86725
86726         * m4/argp.m4: New file.
86727
86728 2003-08-17  Simon Josefsson  <jas@extundo.com>
86729             Bruno Haible  <bruno@clisp.org>
86730
86731         * lib/xstrndup.h: New file.
86732         * lib/xstrndup.c: New file.
86733
86734 2003-08-17  Bruno Haible  <bruno@clisp.org>
86735
86736         * modules/strndup (Files, Include): Add lib/strndup.h.
86737
86738 2003-08-17  Bruno Haible  <bruno@clisp.org>
86739
86740         * modules/euidaccess (Files): Add lib/euidaccess.h.
86741
86742 2003-08-17  Bruno Haible  <bruno@clisp.org>
86743
86744         * lib/strndup.h: New file.
86745
86746 2003-08-17  Bruno Haible  <bruno@clisp.org>
86747
86748         * gnulib-tool (func_create_testdir): Handle gl_USE_SYSTEM_EXTENSIONS
86749         like AC_GNU_SOURCE.
86750         * modules/extensions (configure.ac): Comment out the invocation of
86751         gl_USE_SYSTEM_EXTENSIONS.
86752
86753 2003-08-16  Paul Eggert  <eggert@twinsun.com>
86754
86755         Merges from coreutils, etc.
86756         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Insert ':' to prevent a syntax
86757         error in gl_FUNC_MATCH.  This fixes a bug I introduced on 2003-05-28.
86758         * m4/readlink.m4 (gl_PREREQ_READLINK): Renamed from gl_PREREQ_READLINE,
86759         fixing a typo.
86760         * m4/host-os.m4 (UTILS_HOST_OS): Add GNU/NetBSD, GNU/FreeBSD.
86761         * m4/hash.m4 (gl_HASH): Use AM_STDBOOL_H, not AC_HEADER_STDBOOL.
86762
86763 2003-08-16  Paul Eggert  <eggert@twinsun.com>
86764
86765         Document merge from coreutils.
86766         * modules/alloca: Append $(ALLOCA_H) to BUILT_SOURCES.
86767         * modules/fnmatch: Append $(FNMATCH_H) to BUILT_SOURCES.
86768         * modules/utime: Add m4/utimes-null.m4.
86769
86770 2003-08-16  Paul Eggert  <eggert@twinsun.com>
86771
86772         * lib/regex.h, strdup.c, strtoll.c, strtoul.c: Do not normalize white
86773         space, undoing this 2003-08-12 change:
86774         <http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00080.html>
86775
86776 2003-08-16  Paul Eggert  <eggert@twinsun.com>
86777
86778         * config/srclist.txt: Get regex.h, strdup.c, strtoll.c,
86779         strtoul.c from libc, undoing this 2003-08-12 change:
86780         <http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00080.html>
86781
86782 2003-08-16  Jim Meyering  <jim@meyering.net>
86783
86784         Merges from coreutils.
86785         * m4/readdir.m4 (GL_FUNC_READDIR): Change name to have GL_ (not jm_)
86786         prefix.  Adjust cache variables similarly.  Create 500 rather than
86787         just 300 files, to exercise bug on Darwin6.5, too.
86788         * m4/perl.m4 (jm_PERL): Use $am_missing_run, not undefined
86789         $missing_dir.
86790         * m4/jm-winsz1.m4: Require AC_SYS_POSIX_TERMIOS, not
86791         AM_SYS_POSIX_TERMIOS.
86792         Reported by mkc@mathdogs.com.
86793         Also change use of $am_cv_sys_posix_termios
86794         to $ac_cv_sys_posix_termios.  Reported by Andreas Schwab.
86795         * m4/getgroups.m4 (jm_FUNC_GETGROUPS): Rewrite to use AC_FUNC_GETGROUPS
86796         and (if needed) to call AC_LIBOBJ and to set GETGROUPS_LIB.
86797         * m4/fsusage.m4 [__GLIBC__]: GNU libc's statvfs stats each mount point
86798         in /proc/mounts until it finds one with matching device number.  This
86799         is unnecessary when the FILE argument *is* a mount point.  No stat call
86800         is necessary in that case.  So, disable the statvfs-testing code on
86801         systems with GNU libc.  Reported by Andrei Gaponenko via Tim Waugh
86802         as RedHat bug# 84846.
86803         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Limit stack size
86804         to 1MB, so as not to render systems with no stack size limit (e.g.,
86805         linux-2.2.x) unusable.  Suggestion and code from Bruno Haible.
86806         Include <unistd.h>.  On some systems,
86807         it is required for the definition of _SC_PAGESIZE.
86808
86809 2003-08-16  Jim Meyering  <jim@meyering.net>
86810
86811         Merge from coreutils.
86812         * lib/xstrtoimax.c: #else #if -> #elif.
86813         * lib/xstrtoumax.c: Likewise.
86814
86815 2003-08-16  Jim Meyering  <jim@meyering.net>
86816
86817         * m4/utimes.m4 (gl_FUNC_UTIMES): New file.
86818         * m4/utimes.m4: Removed.
86819         * m4/utimes-null.m4: Renamed from utimes.m4.
86820
86821         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Limit stack size
86822         to 1MB, so as not to render systems with no stack size limit (e.g.,
86823         linux-2.2.x) unusable.  Suggestion and code from Bruno Haible.
86824         Include <unistd.h>.  On some systems,
86825         it is required for the definition of _SC_PAGESIZE.
86826
86827 2003-08-16  Jim Meyering  <jim@meyering.net>
86828         and Paul Eggert  <eggert@cs.ucla.edu>
86829
86830         Merges from coreutils, etc.
86831
86832         * m4/jm-macros.m4 (AC_LANG_SOURCE(C)): New macro, undefine, then define
86833         using the latest version from cvs.  This avoids problems with #line
86834         directives using a vendor (Sun) compiler.
86835         (jm_MACROS): Bump prerequisite from 2.52g to 2.57.
86836         Don't set GETGROUPS_LIB here; now it's
86837         done via getgroups.m4's wrapper function.
86838         AC_SUBST OPTIONAL_BIN_PROGS, OPTIONAL_BIN_ZCRIPTS, and MAN here,
86839         rather than just in sh-util/configure.in, so that the
86840         now-shared-by-fileutils-and-textutils lib/Makefile.am are all the
86841         same.
86842         Use AC_CONFIG_LIBOBJ_DIR(lib) to tell the new
86843         AC_FUNC_GETLOADAVG where to find getloadavg.c.
86844         Require AC_FUNC_FTW, gt_INTTYPES_PRI, gl_CLOCK_TIME,
86845         UTILS_SYS_OPEN_MAX, GL_FUNC_GETCWD_PATH_MAX, GL_FUNC_READDIR,
86846         gl_FSUSAGE, gl_MOUNTLIST, AC_FUNC_CANONICALIZE_FILE_NAME.
86847         Remove code that is now done by the newly-required macros.
86848         Append $(EXEEXT) to DF_PROG.
86849         AC_LIBOBJ fchdir-stub if fchdir doesn't exist; similarly for fchown.
86850         Do not invoke or require the following here,
86851         since prereq.m4 or some gnulib .m4 now does this for us:
86852         gl_REGEX, UTILS_FUNC_MKDIR_TRAILING_SLASH, jm_BISON, gl_FUNC_MKTIME,
86853         jm_FUNC_LSTAT, jm_FUNC_STAT, jm_FUNC_REALLOC, jm_FUNC_MALLOC,
86854         jm_FUNC_NANOSLEEP, jm_FUNC_READDIR, jm_FUNC_MEMCMP,
86855         jm_FUNC_GLIBC_UNLOCKED_IO, AC_FUNC_FNMATCH_GNU, jm_FUNC_PUTENV,
86856         jm_AC_PREREQ_XSTRTOUMAX, jm_AC_PREREQ_XSTRTOIMAX,
86857         AC_FUNC_ERROR_AT_LINE, jm_FUNC_GNU_STRFTIME, AC_FUNC_VPRINTF,
86858         vb_FUNC_RENAME, UTILS_FUNC_MKSTEP, jm_FUNC_UTIME, AM_FUNC_GETLINE,
86859         AC_FUNC_OBSTACK.
86860         Do not replace the following functions, as this is now the job
86861         of some gnulib .m4: strcasecmp, strncasecmp, dup2, gethostname,
86862         getusershell, sig2str, strcspn, stpcpy, strstr, strtol, strtoul
86863         strpbrk, euidaccess, memcmp, rmdir, rpmatch, strndup, strverscmp,
86864         atexit getpass, strdup, getpagesize.
86865         Replace 'raise'.
86866         Do not check for the following functions, as this is now the job
86867         of some gnulib .m4: bcopy, canonicalize_file_name, fchdir, ftime,
86868         getcwd, getmntinfo, resolvepath.  But check for sysctl, setreuid,
86869         setregid.
86870         (jm_CHECK_ALL_HEADERS): Do not check for fenv.h.
86871         Check for sys/sysctl.h.
86872         (jm_CHECK_ALL_TYPES): Do not require AC_STRUCT_TM, AC_STRUCT_TIMEZONE,
86873         jm_CHECK_TYPE_STRUCT_TIMESPEC.  Invoke gt_TYPE_SSIZE_T instead
86874         of checking for ssize_t ourselves.
86875
86876         * m4/prereq.m4 (jm_PREREQ): Don't invoke macros; AC_REQUIRE them.
86877         Require every macro that gnulib/modules/* suggests for us.
86878         (jm_PREREQ_ADDEXT): New macro.
86879         (jm_PREREQ_STAT): Check for 'struct statfs' on Ultrix 4.4.
86880         Require jm_AC_TYPE_LONG_LONG instead of invoking it.
86881
86882         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): New macro.
86883         (gl_PHYSMEM): Use it.
86884         Also check for `table' function.
86885         Check for new headers and functions.
86886         Add check for sys/sysmp.h.
86887         With suggestions from Kaveh Ghazi.
86888         Ignore headers that are present but cannot be compiled.  This
86889         avoids spurious warnings on Solaris 9 sparc with Forte Developer 7
86890         C 5.4.
86891
86892 2003-08-15  Paul Eggert  <eggert@twinsun.com>
86893
86894         Document merge from coreutils.
86895         * modules/userspec: Depend on posixver.
86896         * modules/strftime: Depend on tzset.
86897
86898 2003-08-15  Paul Eggert  <eggert@twinsun.com>
86899
86900         * lib/config.charset, ref-add.sin, ref-del.sin: Use three spaces,
86901         rather than tab, after '#' in shell-script copyright notices.
86902         Suggested by Bruno Haible.
86903
86904 2003-08-15  Paul Eggert  <eggert@twinsun.com>
86905
86906         * config/srclist-update: Use three spaces, rather than tab, after '#'
86907         in shell-script copyright notices.  Suggested by Bruno Haible.
86908         Remove unnecessary parenthesization in regular expression.
86909
86910 2003-08-15  Jim Meyering  <jim@meyering.net>
86911
86912         Merge from coreutils.
86913         * lib/xgethostname.c: Include <stdlib.h>.
86914         (xghostname): Don't exit for anything other than memory-related
86915         failure; just return NULL.
86916         * lib/userspec.c: Include "posixver.h".
86917         (parse_user_spec): Accept `.' as a separator only
86918         in pre-POSIX-200112 mode.
86919         * lib/strtoimax.c: Use #elif rather than #else #if.
86920         * lib/strftime.c (my_strftime) [!_LIBC && HAVE_TZNAME && HAVE_TZSET]:
86921         Remove function, now that we can rely on a working tzset function.
86922         [!_LIBC]: Ensure that the required autoconf test has been run.
86923         [!defined _NL_CURRENT && HAVE_STRFTIME]:
86924         Use underlying_strftime for %r.
86925         * lib/sha.c: Merge in some clean-up and optimization changes from
86926         glibc.
86927         * lib/sha.c (sha_stream) [BLOCKSIZE]: Move definition to top of file.
86928         Ensure that it is a multiple of 64.
86929         Rearrange loop exit tests so as to avoid performing an
86930         additional fread after encountering an error or EOF.
86931         * lib/realloc.c: Update copyright date.
86932
86933 2003-08-15  Jim Meyering  <jim@meyering.net>
86934         and Paul Eggert  <eggert@twinsun.com>
86935
86936         Merge from coreutils.
86937         * lib/readutmp.h (HAVE_UTMPX_H): Undef if struct utmp has the ut_exit
86938         member but strut utmpx does not.  Needed for AIX 4.3.3.
86939         (UT_EXIT_E_TERMINATION, UT_EXIT_E_EXIT): Define.
86940
86941 2003-08-15  Jim Meyering  <jim@meyering.net>
86942         and Paul Eggert  <eggert@cs.ucla.edu>
86943
86944         Merges from coreutils, etc.
86945         * m4/strftime.m4 (_jm_STRFTIME_PREREQS):
86946         Require gl_FUNC_TZSET_CLOBBER.
86947         * m4/readutmp.m4 (gl_READUTMP): Check for ut_exit.ut_exit,
86948         ut_exit.e_exit, ut_exit.ut_termination, and ut_exit.e_termination
86949         members.
86950
86951 2003-08-14  Paul Eggert  <eggert@twinsun.com>
86952
86953         Help the merge from coreutils.
86954         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): New macro.
86955         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Use it.
86956         * m4/tzset.m4: Use it too.
86957
86958 2003-08-14  Paul Eggert  <eggert@twinsun.com>
86959
86960         * modules/tzset: New file.
86961
86962 2003-08-14  Jim Meyering  <jim@meyering.net>
86963
86964         Merges from coreutils.
86965         * modules/fnmatch: Use the `$(FNMATCH_H)' notation for AC_REPLACED
86966         variable names, rather than @FNMATCH_H@.
86967         * modules/alloca: Likewise for $(ALLOCA_H).
86968
86969         * modules/fnmatch (fnmatch.h): Use `$@' in the commands, in place of
86970         the three copies of the literal target, `fnmatch.h'.
86971         * modules/alloca (alloca.h): Likewise.
86972
86973 2003-08-14  Jim Meyering  <jim@meyering.net>
86974
86975         Merge from coreutils.
86976         * m4/tzset.m4: New file.
86977         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Move the
86978         MOUNTED_VMOUNT test to precede the MOUNTED_GETMNTENT1 tests, since
86979         otherwise, AIX 5.1 systems would end up using the latter.
86980         MOUNTED_GETMNTENT1 support is inadequate on such systems: 1) detecting
86981         whether a file system is remote doesn't work  2) the MOUNTED_VMOUNT
86982         code reports the HOSTNAME:/MOUNT_POINT, while the MOUNTED_GETMNTENT1
86983         code reports merely /MOUNT_POINT.  Reported by Mike Jetzer.
86984
86985 2003-08-14  Jim Meyering  <jim@meyering.net>
86986
86987         Merge from coreutils.
86988         * lib/obstack.h: Whitespace changes.
86989         * lib/mountlist.c: Remove anachronistic casts of xmalloc, xrealloc,
86990         and xcalloc return values.
86991         (read_filesystem_list) [MOUNTED_GETFSSTAT]:
86992         Use MNT_NOWAIT, rather than MNT_WAIT.  Otherwise, `df DIR' could
86993         hang on OSF/1 5.1 for DIR on both local and remote file systems.
86994         Reported by (and fix confirmed by) Nelson H. F. Beebe.
86995         (read_filesystem_list) [MOUNTED_VMOUNT]: Detect any
86996         error from mntctl.
86997         Use mntctl's return value to drive the entry-processing loop, since
86998         we can't rely on the value of the vmt_length member in the last
86999         entry.  On some systems doing so could result in exhausting
87000         virtual memory.  Based in part on a patch from Mike Jetzer.
87001
87002 2003-08-14  Jim Meyering  <jim@meyering.net>
87003         and Paul Eggert  <eggert@twinsun.com>
87004
87005         Merges from coreutils, plus other fixes.
87006         * lib/physmem.c: Merge in portability changes from gcc/libiberty
87007         to support AIX, IRIX, Tru64, and Windows.  See the ChangeLog there
87008         for credits and details.  Thanks to Kaveh Ghazi for helping
87009         to keep these files in sync.
87010         (ARRAY_SIZE): Define it.
87011         (physmem_total, physmem_available): Add comments. From Kaveh Ghazi.
87012         * lib/memcasecmp.c: Remove unnecessary parentheses after 'defined'.
87013         (memcasecmp): Don't assume size_t fits in unsigned int.
87014         Remove casts and duplicate code.
87015         * lib/md5.c: Include <string.h> and <stdlib.h> unconditionally.
87016         (memcpy): Remove definition.
87017         Merge in some clean-up and optimization changes from glibc.
87018         [BLOCKSIZE]: Move definition to top of file.
87019         Ensure that it is a multiple of 64.
87020         Rearrange loop exit tests so as to avoid performing an
87021         additional fread after encountering an error or EOF.
87022         * lib/md5.h (md5_uintptr): Define.
87023         * lib/makepath.c (CLEANUP_CWD): Report an error if we failed to
87024         return to the initial working directory.  Preserve errno
87025         for caller.
87026         * lib/idcache.c: Include "xalloc.h".
87027         (xmalloc, xrealloc): Remove decls.
87028         (getuser): Remove casts no longer required in C89.
87029         * lib/human.c: Include stdio.h, for sprintf.
87030         * lib/group-member.c: Include "xalloc.h".
87031         (xmalloc, xrealloc): Remove decls.
87032         (get_group_info): Remove casts no longer required in C89.
87033         * lib/getusershell.c (readname): Remove casts no longer required in
87034         C89.
87035         * lib/gettimeofday.c (rpl_gmtime, rpl_tzset): New functions.
87036         * lib/getline.c: Whitespace fix, from coreutils.
87037
87038 2003-08-13  Paul Eggert  <eggert@twinsun.com>
87039
87040         * m4/exclude.m4 (gl_EXCLUDE): Require AC_C_INLINE, AC_HEADER_STDC.
87041         Check for isascii.
87042
87043         * m4/gettext.m4, iconv.m4, intdiv0.m4, inttypes-pri.m4, lib-link.m4,
87044         lib-prefix.m4, longdouble.m4, po.m4, progtest.m4, signed.m4:
87045         Undo previous (whitespace-only) change.
87046
87047 2003-08-13  Paul Eggert  <eggert@twinsun.com>
87048
87049         * lib/exclude.c: Include <ctype.h>
87050         (IN_CTYPE_DOMAIN): New macro.
87051         (is_space): New fn.
87052         (add_exclude_file): If LINE_END is a space, ignore trailing spaces
87053         and empty lines.
87054
87055         * lib/argp-help.c, argp-parse.c, config.charset, getopt.h:
87056         Undo previous (whitespace-only) change.
87057
87058 2003-08-13  Paul Eggert  <eggert@twinsun.com>
87059
87060         * config/srclist-update: Change update back to the old behavior,
87061         leaving whitespace alone.  Use one 'sed' command rather than a
87062         pipeline.
87063         (fixlicense): Now a variable, not a function.
87064         (remove_trailing_blanks): Remove.
87065         (fixfile): Don't invoke unexpand or cat, or remove trailing blanks.
87066         * config/config.guess, config.sub, install-sh, missing, texinfo.tex:
87067         Undo previous (whitespace-only) change.
87068
87069 2003-08-12  Paul Eggert  <eggert@twinsun.com>
87070
87071         Merge from coreutils.
87072         * modules/euidaccess: Add lib_SOURCES, include for new
87073         file euidaccess.h
87074
87075 2003-08-12  Paul Eggert  <eggert@twinsun.com>
87076
87077         * m4/gettext.m4, iconv.m4, intdiv0.m4, inttypes-pri.m4, lib-link.m4,
87078         lib-prefix.m4, longdouble.m4, po.m4, progtest.m4, signed.m4:
87079         Normalize leading white space and remove trailing white space.
87080
87081         Merge from coreutils
87082         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Check for euidaccess decl.
87083
87084         * m4/lib-ld.m4, lib-link.m4, lib-prefix.m4: Regenerate from gettext
87085         0.12.1.  These files are now being upgraded automatically by
87086         ../config/srclist-update.
87087
87088 2003-08-12  Paul Eggert  <eggert@twinsun.com>
87089
87090         * lib/argp-help.c, argp-parse.c, config.charset, getopt.h:
87091         Normalize leading white space and remove trailing white space.
87092         * lib/ref-add.sin, ref-del.sin: Use '#' before empty line in copyright
87093         notice, as per ../config/srclist-update.
87094
87095         Merge from coreutils.
87096         * lib/euidaccess.h: New file.
87097         * lib/euidaccess.c: Include it.
87098         * lib/.cppi-disable: Add printf-args.h, printf-parse.h, stdbool_.h,
87099         vasnprintf.h, vasprintf.h.  Remove strdup.c, gettext.h.
87100         * lib/regex.h, strdup.c, strtoll.c, strtoul.c: Normalize white space.
87101
87102 2003-08-12  Paul Eggert  <eggert@twinsun.com>
87103
87104         * config/srclist-update: Add copyright notice.
87105         (remove_id_lines, remove_trailing_blanks): New constants.
87106         (fixfile): Use them to normalize spacing a bit in copied files.
87107         * config/config.guess, config.sub, install-sh, missing, texinfo.tex:
87108         Normalize leading white space and remove trailing white space.
87109
87110         * config/texinfo.tex: Sync with texinfo.
87111
87112         * config/srclist.txt: Don't get regex.h, strdup.c, strtoll.c,
87113         strtoul.c from libc, to merge coreutils whitespace changes.
87114
87115         * config/srclist.txt: Get the following m4 files from gettext:
87116         codeset.m4, gettext.m4, glibc21.m4, iconv.m4, intdiv0.m4,
87117         inttypes-pri.m4, lcmessage.m4, lib-ld.m4, lib-link.m4, lib-prefix.m4,
87118         longdouble.m4, nls.m4, po.m4, progtest.m4, signed.m4, wchar_t.m4,
87119         wint_t.m4.
87120
87121 2003-08-12  Karl Berry  <karl@gnu.org>
87122
87123         * config/srclist.txt: can't sync vasnprintf.c any more, changes have
87124         been made.
87125
87126 2003-08-11  Paul Eggert  <eggert@twinsun.com>
87127
87128         * modules/gnu-source, m4/gnu-source.m4:
87129         Remove; we're assuming Autoconf 2.54 or later now.
87130         Suggested by Bruno Haible.
87131         * MODULES.html.sh (func_all_modules): Remove gnu-source.
87132
87133 2003-08-11  Bruno Haible  <bruno@clisp.org>
87134
87135         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Also check for wcslen.
87136
87137 2003-08-11  Bruno Haible  <bruno@clisp.org>
87138
87139         * lib/vasnprintf.c (local_wcslen): New function, for Solaris 2.5.1.
87140         (vasnprintf): Use it instead of wcslen.
87141
87142 2003-08-11  Bruno Haible  <bruno@clisp.org>
87143
87144         * lib/stdbool_.h (_Bool): Undo last change; instead use a negative enum
87145         value to ensure that _Bool promotes to int. Use #define for _Bool when
87146         using the Solaris C compiler. Adds comments suggested by Paul Eggert.
87147
87148 2003-08-10  Karl Berry  <karl@gnu.org>
87149
87150         * lib/regex.h: update from libc (whitespace fix).
87151
87152 2003-08-09  Paul Eggert  <eggert@twinsun.com>
87153
87154         Merge some files from coreutils.  These changes were
87155         originally made by Jim Meyering.
87156         * lib/acl.c: Include <sys/types.h> before <sys/stat.h>;
87157         many older Unixes require this.
87158         * lib/alloca.c (alloca): Remove cast to argument of free;
87159         no longer needed in C89.
87160         * lib/alloca_.h, regex.h: Fix white space to match
87161         what GNU indent does.
87162
87163 2003-08-09  Paul Eggert  <eggert@twinsun.com>
87164
87165         * m4/regex.m4 (jm_INCLUDED_REGEX): Change "\201" to "\371";
87166         apparently Emacs's Unicode mode got confused before my 2003-08-05
87167         checkin.
87168
87169 2003-08-08  Paul Eggert  <eggert@twinsun.com>
87170
87171         * m4/extensions.m4: New file.
87172         * m4/timespec.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC):
87173         Require gl_USE_SYSTEM_EXTENSIONS.
87174         * m4/unlocked-io.m4 (jm_FUNC_GLIBC_UNLOCKED_IO):
87175         Require gl_USE_SYSTEM_EXTENSIONS rather than AC_GNU_SOURCE.
87176
87177 2003-08-08  Paul Eggert  <eggert@twinsun.com>
87178
87179         * MODULES.html.sh (func_all_modules): Add extensions, gnu-source.
87180         * modules/extensions, modules/gnu-source: New files.
87181         * modules/timespec, modules/unlocked-io: Depend on extensions.
87182
87183 2003-08-07  Paul Eggert  <eggert@twinsun.com>
87184
87185         * modules/restrict: New file.
87186         * MODULES.html.sh (func_all_modules): Add restrict.
87187         * modules/regex: Depend on restrict.
87188
87189 2003-08-07  Paul Eggert  <eggert@twinsun.com>
87190
87191         * m4/restrict.m4: New file.
87192         * m4/regex.m4 (jm_PREREQ_REGEX): Add gl_C_RESTRICT.
87193
87194 2003-08-07  Bruno Haible  <bruno@clisp.org>
87195
87196         * modules/getndelim2 (Makefile.am): Add the files to EXTRA_DIST, not
87197         lib_SOURCES, because getndelim2.m4 now uses AC_LIBOBJ(getndelim2).
87198
87199 2003-08-07  Bruno Haible  <bruno@clisp.org>
87200
87201         * m4/getndelim2.m4 (gl_GETNDELIM2): Use AC_LIBOBJ(getndelim2). This
87202         makes the module 'getndelim2' compatible with the module 'getline'.
87203
87204 2003-08-05  Paul Eggert  <eggert@twinsun.com>
87205
87206         * m4/regex.m4 (jm_INCLUDED_REGEX): Replace a single non-ASCII
87207         byte with "\201" to avoid glitches when editing that source file
87208         with multi-gnome-terminal.
87209
87210 2003-08-05  Paul Eggert  <eggert@twinsun.com>
87211
87212         * lib/bumpalloc.h: Remove.
87213
87214 2003-08-05  Paul Eggert  <eggert@twinsun.com>
87215
87216         * MODULES.html.sh (func_all_modules): Remove bumpalloc.
87217         * modules/bumpalloc: Remove.
87218
87219 2003-08-04  Paul Eggert  <eggert@twinsun.com>
87220
87221         * lib/getloadavg.c: Change copyright notice and spacing to conform to
87222         GNU coding style.
87223
87224         Merge from coreutils.
87225         * lib/error.c [!USE_IN_LIBIO]: Omit this case; assume USE_IN_LIBIO is
87226         1. From glibc.
87227         * lib/getdate.y (date): Also accept dates like May-23-2003; suggestion
87228         from Karl Berry, implemented by Jim Meyering.
87229         * lib/getgroups.c: Include "xalloc.h" instead of declaring xalloc fns;
87230         from Dmitry V. Levin.
87231         Remove anachronistic cast of xrealloc.
87232         * lib/fnmatch_.h (__const): Remove.  Use 'const'.
87233         * lib/fnmatch_loop.c (NEW_PATTERN): Cast alloca return value to proper
87234         type. Otherwise, it wouldn't compile with at least /bin/cc on
87235         ymp-cray-unicos9.0.2.X.
87236         Combine two mostly-identical uses of alloca into one.
87237         Thanks to the Cray-Cyber project for access to a Cray Y-MP.
87238
87239 2003-08-04  Dave Love  <d.love@dl.ac.uk>
87240
87241         [From Emacs.]
87242
87243         * lib/getloadavg.c: Check `__unix' as well as `unix'.  Use #ifdef, not
87244         #if.  Check HAVE_LIBKSTAT as well as LOAD_AVE_TYPE.  Check
87245         F_SETFD, not FD_SETFD.  Use HAVE_STRUCT_NLIST_N_UN_N_NAME, not
87246         obsolete NLIST_NAME_UNION.
87247         [__GNU__]: Undef BSD and FSCALE.
87248         [!NLIST_STRUCT]: Remove conditional definition of NLIST_STRUCT.
87249
87250 2003-08-03  Paul Eggert  <eggert@twinsun.com>
87251
87252         * lib/stdbool_.h (_Bool): Make it signed char, instead of
87253         an enum type, so that it's guaranteed to promote to int.  See:
87254         <http://mail.gnu.org/archive/html/bug-gnulib/2003-07/msg00124.html>
87255
87256 2003-08-03  Karl Berry  <karl@gnu.org>
87257
87258         * config/depcomp: update from automake.
87259
87260 2003-07-31  Paul Eggert  <eggert@twinsun.com>
87261
87262         * lib/strerror.c: Include config.h, limits.h.  Declare sprintf.
87263         (strerror): Don't assume that a printable int fits in 14 bytes.
87264
87265 2003-07-31  Bruno Haible  <bruno@clisp.org>
87266
87267         * modules/getpass-gnu: New file.
87268         * MODULES.html.sh (func_all_modules): Add getpass-gnu.
87269
87270 2003-07-31  Bruno Haible  <bruno@clisp.org>
87271
87272         * m4/getpass.m4 (gl_FUNC_GETPASS_GNU): New macro.
87273
87274 2003-07-24  Karl Berry  <karl@gnu.org>
87275
87276         * config/missing: update from automake.
87277
87278 2003-07-24  Derek Robert Price  <derek@ximbiot.com>
87279             Bruno Haible  <bruno@clisp.org>
87280
87281         * lib/getline.h (getline, getdelim): Change return type to ssize_t.
87282         * lib/getline.c (getline, getdelim): Likewise.
87283         Remove _GNU_SOURCE define; now it's defined in config.h through
87284         m4/getline.m4.
87285
87286 2003-07-23  Karl Berry  <karl@gnu.org>
87287
87288         * config/config.sub: update from prep.
87289
87290 2003-07-22  Paul Eggert  <eggert@twinsun.com>
87291
87292         * modules/xalloc (Depends-on): Add exitfail.
87293         * modules/xmemcoll: Likewise.
87294
87295 2003-07-22  Paul Eggert  <eggert@twinsun.com>
87296
87297         * lib/xalloc.h (XCALLOC, XREALLOC, CCLONE): Fix under- and
87298         over-parenthesization in macros.
87299
87300         Sync with coreutils.
87301
87302         * lib/xalloc.h (XMALLOC, XCALLOC, XREALLOC): Remove casts not
87303         required by C99.
87304
87305         Use `exit_failure' for xalloc and xmemcoll instead of their own
87306         private exit-failure variables.
87307         * lib/xalloc.h (xalloc_exit_failure): Remove.
87308         * lib/xmalloc.c: Likewise.  Include exitfail.h.
87309         (xalloc_die): Use exit_failure instead of xalloc_exit_failure.
87310         * lib/xmemcoll.h (xmemcoll_exit_failure): Remove.
87311         * lib/xmemcoll.c: Likewise.  Include exitfail.h.
87312         (xmemcoll): Use exit_failure instead of xalloc_exit_failure.
87313
87314 2003-07-20  Jim Meyering  <jim@meyering.net>
87315
87316         * modules/closeout (Depends-on): Add exitfail.
87317         Suggestion from Bruno Haible.
87318
87319 2003-07-19  Karl Berry  <karl@gnu.org>
87320
87321         * config/config.sub: update from prep.
87322
87323 2003-07-18  Paul Eggert  <eggert@twinsun.com>
87324
87325         * lib/closeout.h (close_stdout_set_status, close_stdout_status):
87326         Remove.
87327         * lib/closeout.c: Likewise.  Include "closeout.h" right after config.h,
87328         to test that it can stand by itself.  Include "exitfail.h".
87329         Clients should set exit_failure instead.
87330         (EXIT_FAILURE): Remove; no longer needed.  Do not include <stdlib.h>.
87331
87332 2003-07-18  Bruno Haible  <bruno@clisp.org>
87333
87334         * modules/getndelim2: New file.
87335         * modules/getline: Share files with module getndelim2.
87336         * modules/getnline: Depend on getndelim2 instead of sharing files with
87337         it. Add getnline.c to lib_SOURCES.
87338         * MODULES.html.sh (func_all_modules): Add getndelim2.
87339
87340 2003-07-18  Bruno Haible  <bruno@clisp.org>
87341
87342         * m4/getndelim2.m4: New file.
87343         * m4/getline.m4 (AM_FUNC_GETLINE): Add AC_LIBOBJ of getndelim2.c and
87344         invoke gl_PREREQ_GETNDELIM2.
87345         (gl_PREREQ_GETLINE): Drop AC_HEADER_STDC, now done by
87346         gl_PREREQ_GETNDELIM2.
87347         * m4/getnline.m4 (gl_GETNLINE): Drop AC_HEADER_STDC, now done by
87348         gl_GETNDELIM2.
87349
87350 2003-07-18  Bruno Haible  <bruno@clisp.org>
87351
87352         * lib/getndelim2.h: New file.
87353         * lib/getndelim2.c: Make into a module of its own. Include config.h,
87354         getndelim2.h.
87355         (getndelim2): Make non-static. Change return type to ssize_t.
87356         * lib/getline.h: Change argument names.
87357         * lib/getline.c: Include getndelim2.h instead of getndelim2.c.
87358         * lib/getnline.c: Include getndelim2.h.
87359
87360 2003-07-18  Andreas Schwab  <schwab@suse.de>
87361
87362         * lib/memcoll.c (memcoll) [!HAVE_STRCOLL]: Clear errno.
87363
87364 2003-07-17  Karl Berry  <karl@gnu.org>
87365
87366         * config/config.sub: update from prep.
87367
87368 2003-07-17  Bruno Haible  <bruno@clisp.org>
87369
87370         * modules/getnline: New file.
87371         * modules/getline: Add lib/getndelim2.c to source file list.
87372         * MODULES.html.sh (func_all_modules): Add getnline.
87373
87374 2003-07-17  Bruno Haible  <bruno@clisp.org>
87375
87376         * m4/getnline.m4: New file.
87377
87378 2003-07-17  Bruno Haible  <bruno@clisp.org>
87379
87380         * m4/Makefile.am.in: Remove file.
87381         * m4/Makefile.am: Remove file.
87382         * m4/Makefile.in: Remove file.
87383
87384 2003-07-17  Bruno Haible  <bruno@clisp.org>
87385
87386         * lib/getnline.h: New file.
87387         * lib/getnline.c: New file.
87388         * lib/getndelim2.c: New file, extracted from getline.c.
87389         (getndelim2): Renamed from getdelim2, with added nmax argument.
87390         * lib/getline.c: Include getndelim2.c.
87391         (getdelim2): Moved out to getndelim2.c.
87392         (getline, getdelim): Update.
87393
87394 2003-07-17  Bruno Haible  <bruno@clisp.org>
87395
87396         * lib/Makefile.am: Remove file.
87397         * lib/Makefile.in: Remove file.
87398
87399 2003-07-17  Bruno Haible  <bruno@clisp.org>
87400
87401         * configure.in: Remove file.
87402         * Makefile.in: Remove file.
87403
87404 2003-07-17  Bruno Haible  <bruno@clisp.org>
87405
87406         * MODULES.html.sh: Put the </BODY> right before </HTML>.
87407
87408 2003-07-16  Karl Berry  <karl@gnu.org>
87409
87410         * config/srclist-update: was running fixlicense twice, which caused
87411                 texinfo.tex to be nullified for some reason.  Simplify,
87412                 $gplsrc is no longer needed as far as I can see?
87413
87414 2003-07-16  Jim Meyering  <jim@meyering.net>
87415
87416         * modules/save-cwd: Depend on xgetcwd.  From Derek Price.
87417
87418 2003-07-15  Paul Eggert  <eggert@twinsun.com>
87419
87420         * config/srclist.txt: Get the following files from gettext-runtime/intl
87421         instead: config.charset, localcharset.c, localcharset.h, ref-add.sin,
87422         ref-del.sin.  From Bruno Haible.
87423         * config/srclist-update (fixfile): Change grep pattern again, since the
87424         previous fix didn't work (there was another trailing $).  Use
87425         '[$]' to escape the $s.
87426
87427 2003-07-15  Karl Berry  <karl@gnu.org>
87428
87429         * lib/vasnprintf.c: update from gettext.
87430
87431 2003-07-15  Karl Berry  <karl@gnu.org>
87432
87433         * config/srclist-update (fixfile): Change grep pattern, since 'Id'
87434         gets expanded when surrounded by '$'.
87435
87436 2003-07-15  Jim Meyering  <jim@meyering.net>
87437
87438         * modules/save-cwd: Don't depend on error.  From Derek Price.
87439
87440 2003-07-15  Jim Meyering  <jim@meyering.net>
87441
87442         * lib/makepath.c (make_path): Enclose diagnostic in _(...).
87443
87444 2003-07-14  Simon Josefsson  <jas@extundo.com>
87445
87446         * modules/mempcpy: New file.
87447         * MODULES.html.sh (func_all_modules): Add mempcpy.
87448
87449 2003-07-14  Simon Josefsson  <jas@extundo.com>
87450
87451         * m4/mempcpy.m4: New file.
87452
87453 2003-07-14  Simon Josefsson  <jas@extundo.com>
87454
87455         * lib/mempcpy.h: New file.
87456         * lib/mempcpy.c: New file.
87457
87458 2003-07-14  Paul Eggert  <eggert@twinsun.com>
87459
87460         * modules/getdate, modules/posixtm: Depend on mktime.
87461
87462 2003-07-14  Paul Eggert  <eggert@twinsun.com>
87463
87464         * lib/ceill.c, expl.c, floorl.c, frexpl.c, ldexpl.c, mathl.h,
87465         sincosl.c, sqrtl.c, trigl.c, trigl.h, poll.c, poll_.h, mkstemp.c,
87466         unicodeio.c, unicodeio.h, unlocked-io.h:
87467         Switch from LGPL to GPL.
87468
87469 2003-07-14  Paul Eggert  <eggert@twinsun.com>
87470
87471         * lib/asnprintf.c, asprintf.c, config.charset, gettext.h,
87472         localcharset.c, localcharset.h, mkdtemp.c, printf-args.c,
87473         printf-args.h, printf-parse.c, printf-parse.h, ref-add.sin,
87474         ref-del.sin, setenv.c, unsetenv.c, vasnprintf.c, vasnprintf.h,
87475         vasprintf.c, vasprintf.h: Regenerate.  These files are now being
87476         updated automatically by ../config/srclist-update.  This changes
87477         their license from LPGL to GPL.
87478
87479 2003-07-14  Paul Eggert  <eggert@twinsun.com>
87480
87481         * config/srclist.txt: Add tons more gettext files.  $GETTEXT is now
87482         assumed to refer to the root of the most recent stable gettext version.
87483         * config/srclistvars.sh: Add defaults for eggert.
87484         * config/srclist-update: Convert LGPL to GPL in shell scripts, too.
87485         Match "This program" as well as "The program".  This is needed
87486         for gettext.
87487
87488 2003-07-14  Jim Meyering  <jim@meyering.net>
87489
87490         Don't emit diagnostics.  Let callers do that.
87491         * lib/save-cwd.c: Don't include "error.h".
87492         (save_cwd): Don't call error.  Ensure that errno is valid
87493         when returning nonzero.
87494
87495         * lib/save-cwd.h (restore_cwd): Update prototype.
87496         * lib/save-cwd.c (restore_cwd): Remove two parameters.
87497         Simplify.  Don't call error upon failure.  Let callers do that.
87498         (save_cwd): Mention that Irix 5.3 has the same problem as SunOS 4
87499         when auditing is enabled.  But don't bother updating the #if.
87500
87501 2003-07-11  Alexandre Duret-Lutz  <adl@gnu.org>
87502
87503         * lib/obstack.h (__INT_TO_PTR): Revert change of 2003-03-13;
87504         it breaks C++ compilation.
87505         [!__GNUC__ || !__STDC__] (obstack_finish): Cast result to void*.
87506
87507 2003-07-10  Simon Josefsson  <jas@extundo.com>
87508
87509         * modules/strchrnul (Makefile.am): Add strchrnul.h.
87510
87511 2003-07-10  Jim Meyering  <jim@meyering.net>
87512
87513         * m4/clock_time.m4: Remove trailing blank.
87514         * m4/intmax_t.m4: Likewise.
87515
87516 2003-07-10  Jim Meyering  <jim@meyering.net>
87517
87518         * lib/vasnprintf.c: Remove trailing blanks.
87519         Make cpp indentation consistent.
87520
87521 2003-07-09  Paul Eggert  <eggert@twinsun.com>
87522
87523         * lib/alloca_.h, euidaccess.c, getpass.c, memrchr.c, obstack.h,
87524         posixver.c, strftime.c, strnlen.c, strverscmp.c:
87525         Switch from LGPL to GPL.
87526
87527 2003-07-09  Paul Eggert  <eggert@twinsun.com>
87528
87529         * config/srclist.txt: Sort sublists.  Add
87530         $LIBCSRC/sysdeps/generic/strtoul.c. In comments, add more libc files
87531         that differ from gnulib for one reason or another; we'd like this list
87532         to be smaller but for now let's document what we have.
87533
87534 2003-07-08  Paul Eggert  <eggert@twinsun.com>
87535
87536         * config/srclist-update: Port to POSIX 1003.1-2001 hosts by avoiding
87537         the use of GNU extensions.  Change "x=`eval echo $x`" to the shorter
87538         and sweeter "eval x=$x".
87539         * config/srclist.txt: Get lib/argp* from glibc.
87540
87541 2003-07-07  Paul Eggert  <eggert@twinsun.com>
87542
87543         * lib/mktime.c: Fix some boundary cases and remove need for floating
87544         point.
87545
87546         Issue a compile-time diagnostic if time_t is floating point, or if
87547         two's complement arithmetic is not in effect, or if arithmetic
87548         right shift does not propagate the sign.  These assumptions were
87549         all in the original code but they weren't checked.
87550
87551         (TIME_T_MIDPOINT, verify): New macros.
87552         (__isleap): Remove; it has integer overflow problems.
87553         (leapyear): New function, without those problems.
87554         (ydhms_tm_diff): Remove; splitting into two parts.
87555         (ydhms_diff): New function, containing the arithmetic part of
87556         the old ydhms_tm_diff function.  Issue a compile-time
87557         diagnostic if we are not using C99 integer division.
87558         Avoid casts when possible.
87559         (guess_time_tm): New function, containing the checking part of
87560         the old ydhms_tm_diff function.  Return the new value, rather than
87561         the difference between it and the old.  Accept a new argument T
87562         so that *T specifies the old value.  Check for overflow in the result.
87563
87564         (__mktime_internal): Use a time_t offset, not a long int offset.
87565         This undoes the 2003-06-04 change, which is no longer needed now
87566         that we have better overflow checking.
87567         (localtime_offset): Likewise.
87568
87569         (__mktime_internal): Avoid harmful overflow on hosts where time_t
87570         and long are 64-bit but int is only 32-bit.
87571         (ydhms_diff): Use long int to store year1 and yday1.
87572         Issue a compile-time diagnostic if long int is not wide enough.
87573
87574         (__mktime_internal): Use long int to store adjusted year and yday.
87575         Use plain C rather than preprocessor commands, if that doesn't
87576         affect efficiency.
87577         Check for overflow (and try to repair) after each probe
87578         rather than checking only at the very end.  This avoids some bugs
87579         (e.g., southern hemisphere, behind GMT, and GMT offset at minimum time
87580         does not equal GMT offset at maximum time).
87581         Use integer to check for overflow rather than floating point; this
87582         is more portable to non-IEEE hosts, and is a tad faster.
87583         When we detect that we are oscillating between two values,
87584         don't check whether tm_isdst has the requested value, since
87585         we already know the answer.  When tm_isdst has the wrong value,
87586         use a different heuristic to find the right one, based on the
87587         extreme values actually observed in practice in tz2003a,
87588         rather than the (overly optimistic) "previous 3 calendar quarters".
87589
87590         (not_equal_tm, print_tm, check_result): Use "const T" rather than
87591         "T const" to accommodate glibc style.
87592         (check_result): Use less-confusing report format.  "long" -> "long int.
87593         (main): Likewise.
87594         Don't loop if the iteration overflows time_t.
87595         Allow a negative step in the iteration.
87596
87597 2003-07-06  Karl Berry  <karl@gnu.org>
87598
87599         * config/depcomp: update from automake.
87600         * config/config.sub: update from prep.
87601
87602 2003-07-03  Karl Berry  <karl@gnu.org>
87603
87604         * config/config.guess: update from prep.
87605
87606 2003-07-01  Paul Eggert  <eggert@twinsun.com>
87607
87608         * m4/xreadlink.m4 (gl_XREADLINK): Don't check for sys/types.h, since
87609         xreadlink.c now includes it unconditionally.
87610
87611 2003-07-01  Paul Eggert  <eggert@twinsun.com>
87612
87613         * lib/xreadlink.c: Include <sys/types.h> unconditionally, instead of
87614         having it depend on HAVE_SYS_TYPES_H.
87615
87616 2003-07-01  Bruno Haible  <bruno@clisp.org>
87617
87618         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Don't include <unistd.h>.
87619         <sys/types.h> should be sufficient.
87620         Reported by Paul Eggert.
87621
87622 2003-06-26  Karl Berry  <karl@gnu.org>
87623
87624         * config/depcomp: update from automake.
87625
87626 2003-06-26  Bruno Haible  <bruno@clisp.org>
87627
87628         * modules/human: Depend on module stdbool.
87629
87630 2003-06-25  Bruno Haible  <bruno@clisp.org>
87631
87632         * modules/readlink: New file.
87633         * modules/xreadlink: Depend on it.
87634         * MODULES.html.sh (func_all_modules): Add readlink.
87635
87636 2003-06-25  Bruno Haible  <bruno@clisp.org>
87637
87638         * m4/readlink.m4: New file.
87639
87640 2003-06-25  Bruno Haible  <bruno@clisp.org>
87641
87642         * lib/readlink.c: New file.
87643
87644 2003-06-22  Karl Berry  <karl@gnu.org>
87645
87646         * config/srclist.txt: update mkinstalldirs from automake.
87647         * config/mkinstalldirs: update.
87648
87649 2003-06-22  Bruno Haible  <bruno@clisp.org>
87650
87651         Portability to mingw32.
87652         * m4/ssize_t.m4: New file, from GNU gettext.
87653         * m4/safe-read.m4 (gl_PREREQ_SAFE_READ): Require gt_TYPE_SSIZE_T.
87654         * m4/xreadlink.m4 (gl_XREADLINK): Require gt_TYPE_SSIZE_T.
87655
87656 2003-06-22  Bruno Haible  <bruno@clisp.org>
87657
87658         * modules/safe-read: Add m4/ssize_t.m4.
87659         * modules/xreadlink: Add m4/ssize_t.m4.
87660
87661 2003-06-20  Bruno Haible  <bruno@clisp.org>
87662
87663         Assume C89, so PARAMS isn't needed.
87664         * lib/unicodeio.h (PARAMS): Remove.
87665         * lib/unicodeio.c: Don't use PARAMS.
87666
87667 2003-06-18  Karl Berry  <karl@gnu.org>
87668
87669         * config/config.{guess,sub}: update from prep.
87670
87671 2003-06-18  Jim Meyering  <jim@meyering.net>
87672
87673         Merge changes from coreutils.
87674         * lib/readutmp.c: Include <string.h> and <stdlib.h> unconditionally.
87675         Remove explicit declarations of xmalloc and realloc.
87676         Include xalloc.h.
87677         (read_utmp): Remove anachronistic cast of xmalloc.
87678
87679 2003-06-17  Paul Eggert  <eggert@twinsun.com>
87680
87681         Assume C89, so PARAMS isn't needed.
87682         * lib/backupfile.h (PARAMS): Remove.  All uses removed.
87683         * lib/closeout.h, lib/dirname.h, lib/filemode.h, lib/fsusage.h,
87684         lib/getdate.h, lib/getline.h, lib/group-member.h, lib/hard-locale.h,
87685         lib/hash.h, lib/linebuffer.h, lib/long-options.h, lib/makepath.h,
87686         lib/memcasecmp.h, lib/memcoll.h, lib/modechange.h, lib/mountlist.h,
87687         lib/path-concat.h, lib/physmem.h, lib/posixtm.h, lib/quote.h,
87688         lib/readutmp.h, lib/same.h, lib/save-cwd.h, lib/savedir.h,
87689         lib/stdio-safer.h, lib/strtoimax.c, lib/strverscmp.h,
87690         lib/unistd-safer.h, lib/version-etc.h, lib/xalloc.h, lib/xreadlink.h,
87691         lib/xstrtod.h, lib/xstrtol.h: Likewise.
87692         * lib/filemode.h, lib/hard-locale.h, lib/memcoll.h, lib/modechange.h,
87693         lib/physmem.h, lib/same.h, lib/strverscmp.h: Do not include config.h;
87694         no longer needed. Anyway, config.h should always be included before any
87695         other file.
87696
87697 2003-06-11  Simon Josefsson  <jas@extundo.com>
87698
87699         * modules/sysexits: New file.
87700         * MODULES.html.sh (func_all_modules): Add sysexits.
87701
87702 2003-06-11  Simon Josefsson  <jas@extundo.com>
87703
87704         * lib/sysexit_.h: New file.
87705
87706 2003-06-11  Derek Price  <derek@ximbiot.com>
87707
87708         * lib/stat.c [LSTAT]: Compile/use slash_aware_lstat only if it is
87709         necessary.
87710
87711 2003-06-11  Bruno Haible  <bruno@clisp.org>
87712
87713         * m4/sysexits.m4: New file.
87714
87715 2003-06-10  Simon Josefsson  <jas@extundo.com>
87716
87717         * lib/argp.h: New file, from glibc.
87718         * lib/argp-ba.c: New file, from glibc.
87719         * lib/argp-eexst.c: New file, from glibc.
87720         * lib/argp-fmtstream.c: New file, from glibc.
87721         * lib/argp-fmtstream.h: New file, from glibc.
87722         * lib/argp-fs-xinl.c: New file, from glibc.
87723         * lib/argp-help.c: New file, from glibc.
87724         * lib/argp-namefrob.h: New file, from glibc.
87725         * lib/argp-parse.c: New file, from glibc.
87726         * lib/argp-pv.c: New file, from glibc.
87727         * lib/argp-pvh.c: New file, from glibc.
87728         * lib/argp-xinl.c: New file, from glibc.
87729
87730 2003-06-10  Simon Josefsson  <jas@extundo.com>
87731
87732         * modules/strchrnul: New file.
87733
87734 2003-06-10  Simon Josefsson  <jas@extundo.com>
87735
87736         * modules/argp: New file.
87737
87738 2003-06-10  Simon Josefsson  <jas@extundo.com>
87739
87740         * m4/strchrnul.m4: New file.
87741
87742 2003-06-10  Simon Josefsson  <jas@extundo.com>
87743
87744         * lib/strchrnul.h: New file.
87745         * lib/strchrnul.c: New file.
87746
87747 2003-06-10  Bruno Haible  <bruno@clisp.org>
87748
87749         * MODULES.html.sh (func_all_modules): Add strchrnul and argp.
87750
87751 2003-06-07  Karl Berry  <karl@gnu.org>
87752
87753         * config/config.{guess,sub}: update from prep.
87754
87755 2003-06-07  Jim Meyering  <jim@meyering.net>
87756
87757         * modules/strtod: Use $(...) notation, not @...@ for
87758         AC_REPLACE'd variables.
87759         * modules/localcharset: Likewise.
87760
87761 2003-06-07  Jim Meyering  <jim@meyering.net>
87762
87763         * lib/readtokens.h: Put `Free Software Foundation, Inc.'
87764         in place of my name in the copyright comment.
87765         Remove definition and uses of __P.
87766
87767         From coreutils.
87768         * lib/stat.c: Don't declare xmalloc explicitly.
87769         Instead, include "xalloc.h".
87770         * lib/readtokens.c (readtokens): Remove anachronistic casts of xmalloc,
87771         xrealloc, and xcalloc return values.
87772         * lib/xgetcwd.c (xgetcwd): Include "xgetcwd.h".
87773         Improve comment.
87774         * lib/xgetcwd.h: Remove definition/uses of PARAMS.
87775
87776 2003-06-07  Bruno Haible  <bruno@clisp.org>
87777
87778         * modules/poll (Makefile.am): Use explicit creation rule for poll.h, to
87779         avoid AC_CONFIG_LINKS.
87780         * modules/fnmatch (Makefile.am): Use explicit creation rule for
87781         fnmatch.h, to avoid AC_CONFIG_LINKS.
87782         * modules/alloca (Makefile.am): Make creation of alloca.h Ctrl-C safe.
87783
87784 2003-06-07  Bruno Haible  <bruno@clisp.org>
87785
87786         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH, gl_FUNC_FNMATCH_POSIX,
87787         gl_FUNC_FNMATCH_GNU): Set FNMATCH_H instead of invoking
87788         AC_CONFIG_LINKS. Needed to allow for a different name of the lib
87789         directory.
87790         * m4/poll.m4 (gl_FUNC_POLL): Set POLL_H instead of invoking
87791         AC_CONFIG_LINKS. Needed to allow for a different name of the lib
87792         directory.
87793
87794 2003-06-06  Jim Meyering  <jim@meyering.net>
87795
87796         Merge from coreutils.
87797         * lib/same.c: (same_name): Declare *_basename locals to be `const'.
87798         Consolidate declarations and initializations of *_base* locals.
87799
87800         Merge from coreutils.
87801         This avoids a core dump on systems without GNU putenv,
87802         when running `env -u SOME_ALREADY_UNSET_VARIABLE'.
87803         * lib/putenv.c (__set_errno, LOCK, UNLOCK): Define.
87804         (unsetenv): New static function, from GNU libc.
87805         (rpl_putenv): Use it.
87806
87807         * lib/modechange.c: Remove trailing blanks.
87808
87809         Merge from coreutils.
87810         * lib/fsusage.c: Remove declaration of statfs.
87811         It conflicted with one from OSF/1 5.1 in <sys/mount.h>.
87812
87813         * lib/posixtm.c: Include <stdbool.h> unconditionally.
87814
87815 2003-06-06  Jim Meyering  <jim@meyering.net>
87816
87817         * lib/stdbool_.h: Renamed from stdbool.h.in.
87818
87819 2003-06-06  Jim Meyering  <jim@meyering.net>
87820             Bruno Haible  <bruno@clisp.org>
87821
87822         * modules/stdbool: Reflect renaming: stdbool.h.in -> stdbool_.h.
87823         Adjust Makefile.am snippet not to redirect directly to target.
87824         Use $(STDBOOL_H) notation, not @STDBOOL_H@ for AC_REPLACE'd variables.
87825
87826 2003-06-05  Paul Eggert  <eggert@twinsun.com>
87827
87828         * lib/mktime.c (__mktime_internal): When resolving a tm_isdst
87829         mismatch, look in future quarters as well as past.  This fixes a
87830         bug when processing fall-backwards gaps immediately after a long
87831         period of daylight-saving time.
87832
87833         * lib/mktime.c: Assume freestanding C89 or better.
87834         (HAVE_LIMITS_H): Remove.  Assume it's 1.
87835         (__P): Remove; not used.
87836         (CHAR_BIT, INT_MIN, INT_MAX): Remove; <limits.h> defines them.
87837         (mktime, not_equal_tm, print_tm, check_result,
87838         main): Use prototypes.  Use const * where appropriate.
87839         (main): Fix typo in testing code that uncovered by above changes.
87840         (Local Variables): Remove -DHAVE_LIMITS_H from compile-command.
87841
87842 2003-06-04  Paul Eggert  <eggert@twinsun.com>
87843
87844         * m4/human.m4 (gl_HUMAN): Require AM_STDBOOL_H.  Check for
87845         locale.h, localeconv.  This merges changes from coreutils.
87846
87847         * m4/mktime.m4 (AC_FUNC_MKTIME): New macro, taken from Autoconf CVS.
87848         It can be removed after the next Autoconf is released.
87849         * m4/exclude.m4 (gl_EXCLUDE): Don't check for sys/types.h; no loner
87850         needed.
87851
87852 2003-06-04  Paul Eggert  <eggert@twinsun.com>
87853
87854         * lib/mktime.c: Fix Debian bug 177940
87855         <http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=177940>.
87856         (localtime_offset): Now long int, not time_t, because we want it
87857         to be guaranteed to be signed.  All uses changed.
87858         (__mktime_internal): If overflow would occur when adding offset,
87859         don't add it.
87860
87861         Merge 'human' changes from coreutils.  Rewrite to support
87862         locale-specific notations like thousands separators.
87863         * lib/human.c: Simplify authorship notice.
87864         Include human.h immediately after config.h.
87865         <sys/types.h>, <stdio.h>: Do not include; no longer needed.
87866         <limits.h>: Do not include, since human.h does.
87867         (SIZE_MAX, UINTMAX_MAX): New macros.
87868         <strings.h>: Include if HAVE_STRINGS_H, not if !HAVE_STRING_H.
87869         <locale.h>: Include if HAVE_LOCALE_H and HAVE_LOCALECONV.
87870         (HUMAN_READABLE_SUFFIX_LENGTH_MAX): New macro.
87871         (power_letter): Renamed from suffixes.
87872         (generate_suffix_backwards): Remove.
87873         (adjust_value): Now takes int style (because of human.h changes)
87874         and long double value (for greater precision on some platforms).
87875         (group_number): New function.
87876         (human_readable): Use it.  Use integer options, not enum.
87877         Put the options before the sizes in the arg list.
87878         Support all the new options.
87879         The old human_readable function has been removed;
87880         use inttostr.h instead.
87881         (human_readable, default_block_size, humblock):
87882         Use uintmax_t, not int, for block sizes.
87883         (human_readable_inexact, block_size_types): Remove.
87884         (block_size_opts): New constant.
87885         (human_options): Renamed from human_block_size, with new signature
87886         that allows block sizes up to UINTMAX_MAX.  All callers changed.
87887         * lib/human.h: Add copyright and authorship notice.
87888         Include <limits.h> and <stdbool.h> unconditionally.
87889         (PARAMS): Remove.  All uses removed.
87890         (LONGEST_HUMAN_READABLE): Add support for thousands separator.
87891         (enum human_inexact_style): Remove tag; now a nameless enum.
87892         (human_floor, human_ceiling, human_round_to_even): Now have
87893         values 2, 0, 1 rather than -1, 1, 0.
87894         (human_group_digits, human_suppress_point_zero, human_autoscale,
87895         human_base_1024, human_SI, human_B): New constants.
87896         (human_readable_inexact, human_block_size): Remove.
87897         (human_readable): Size args are now uintmax_t, not int.
87898         (human_options): New decl.
87899
87900         * lib/exclude.c: (new_exclude, add_exclude): Remove casts that are
87901         unnecessary now that we assume C89 or better.  This change
87902         imported from coreutils.
87903
87904         * lib/mktime.c (__mktime_internal): Do not reject negative timestamps
87905         arbitrarily.  This is the same patch as 2003-05-28, but it got lost
87906         in the 2003-05-30 sync from glibc.
87907
87908         .h files should stand alone, but we shouldn't include <sys/types.h>
87909         if we can get away with just <stddef.h>.
87910
87911         * lib/__fpending.h, addext.c, backupfile.c, exclude.c, getline.c,
87912         malloc.c, putenv.c, realloc.c, strcasecmp.c: Include <stddef.h>
87913         rather than <sys/types.h>, as we merely need size_t.
87914         * lib/dirname.h, memcoll.h, xalloc.h, xmemcoll.h: Include <stddef.h>,
87915         to get size_t.
87916         * lib/hash.h, linebuffer.h, readtokens.h, stdio-safer.h, version-etc.h:
87917         Include <stdio.h>, to get FILE.
87918         * lib/memcasecmp.c: Don't include <sys/types.h>, as we can assume
87919         memcasecmp.h has included <stddef.h> and all we need is size_t.
87920         * lib/memcoll.c: Include "memcoll.h", which gets us size_t and checks
87921         our interface, instead of including <sys/types.h>
87922
87923 2003-06-04  Paul Eggert  <eggert@twinsun.com>
87924
87925         * config/srclist.txt ($LIBCSRC/time/mktime.c lib gpl): Comment out for
87926         now, as glibc mktime is buggy on non-glibc systems.
87927
87928 2003-06-03  Karl Berry  <karl@gnu.org>
87929
87930         * config/config.sub: update from prep.
87931
87932 2003-06-02  Paul Eggert  <eggert@twinsun.com>
87933
87934         [from coreutils]
87935         Fix some minor time-related bugs with POSIX time arguments.
87936         Some valid time stamps were being rejected (notably -1, and
87937         time stamps before 1900 on 64-bit hosts).  And some invalid
87938         time stamps were being accepted, e.g. September 31.
87939
87940         * lib/posixtm.h (posixtime): Return bool instead of time_t, so
87941         that we can return (time_t) -1 successfully.
87942         * lib/posixtm.c: Likewise.
87943         [HAVE_STDBOOL_H]: Include <stdbool.h>.
87944         (bool, false, true) [!HAVE_STDBOOL_H]: New type.
87945         (t): Remove static var.
87946         (year, posix_time_parse): Now takes struct tm * arg to modify, instead
87947         of static var.  All uses changed.
87948         (year): Do not reject years before 1900; they can occur with
87949         64-bit time_t.
87950         (posix_time_parse): Do not check for out-of-range components;
87951         that is now the caller's responsibility, since our checks were
87952         only approximations.
87953         (posixtime): Use mktime to check for out-of-range components,
87954         since it knows them exactly.
87955         If mktime returns (time_t) -1, check whether an error actually occurred
87956         by invoking localtime on -1.
87957         (main) [TEST_POSIXTIME]: Check for input data errors, and report
87958         posixtime failures better.
87959         Improve the test data (in comments only).
87960
87961 2003-06-02  Karl Berry  <karl@gnu.org>
87962
87963         * config/mkinstalldirs (version): new variable.
87964         (--version): new option.
87965         (usage): improve message.
87966
87967 2003-05-30  Karl Berry  <karl@gnu.org>
87968
87969         * lib/mktime.c: update from libc.
87970
87971 2003-05-30  Bruno Haible  <bruno@clisp.org>
87972
87973         * modules/gettext: Add files m4/nls.m4 and m4/po.m4.
87974         * config/config.rpath: Upgrade to gettext-0.12.1.
87975
87976 2003-05-30  Bruno Haible  <bruno@clisp.org>
87977
87978         * m4/gettext.m4: Upgrade to gettext-0.12.1.
87979         * m4/nls.m4: New file, from gettext-0.12.1.
87980         * m4/po.m4: New file, from gettext-0.12.1.
87981         * m4/progtest.m4: Upgrade to gettext-0.12.1.
87982
87983 2003-05-30  Bruno Haible  <bruno@clisp.org>
87984
87985         * lib/config.charset: Upgrade to gettext-0.12.1 and libiconv-1.9.1.
87986         * lib/localcharset.h: Likewise.
87987         * lib/localcharset.c: Likewise.
87988
87989 2003-05-29  Karl Berry  <karl@gnu.org>
87990
87991         * config/config.rpath: update from gettext.
87992
87993 2003-05-28  Paul Eggert  <eggert@twinsun.com>
87994
87995         Assume the headers required for C89 freestanding compilers.
87996         * m4/backupfile.m4 (gl_BACKUPFILE): Don't check for limits.h.
87997         * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Likewise.
87998         * m4/human.m4 (gl_HUMAN): Likewise.
87999         * m4/pathmax.m4 (gl_PATHMAX): Likewise.
88000         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Likewise.
88001         * m4/userspec.m4 (gl_USERSPEC): Likewise.
88002         * m4/xreadlink.m4 (gl_XREADLINK): Likewise.
88003         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
88004         * m4/quote.m4 (gl_QUOTE): Don't check for stddef.h.
88005
88006 2003-05-28  Paul Eggert  <eggert@twinsun.com>
88007
88008         Assume the headers required for C89 freestanding compilers.
88009         * lib/addext.c, lib/backupfile.c, lib/fsusage.c, lib/human.c,
88010         lib/pathmax.h, lib/rpmatch.c, lib/userspec.c, lib/xreadlink.c,
88011         lib/xstrtol.c: Include <limits.h> without checking for HAVE_LIMITS_H.
88012         * lib/backupfile.c, lib/fsusage.c, lib/hash.c, lib/human.c,
88013         lib/safe-read.c, lib/userspec.c, lib/xstrtol.c (CHAR_BIT): Don't
88014         define, since <limits.h> is guaranteed to do that.
88015         * lib/fatal.c: Include <stdarg.h> without checking for __STDC__.
88016         * lib/exclude.c: Include <stdbool.h> unconditionally.
88017         * lib/tempname.c: Include <stddef.h> unconditionally.
88018         * lib/hash.c: Include <limits.h>, since we no longer define CHAR_BIT.
88019         * lib/modechange.c, rpmatch.c (NULL): Don't define, since
88020         <stddef.h> does that.
88021         * lib/quote.c: Dont include <stddef.h> or <sys/types.h>; not needed.
88022         * lib/safe-read.c (INT_MAX): Don't define, since <limits.h> does that.
88023         * lib/safe-read.c (TYPE_MINIMUM, TYPE_MAXIMUM): Remove; no longer
88024         needed.
88025         * lib/xstrtol.c: Likewise.
88026         * lib/safe-read.c: Remove TYPE_SIGNED; no longer needed.
88027         * lib/savedir.c: Include <stddef.h> instead of defining NULL.
88028
88029         * lib/addext.c (addext): Use assignment rather than cast, to avoid
88030         warnings on some platforms.
88031
88032         * lib/mktime.c (__mktime_internal): Do not reject negative timestamps
88033         arbitrarily.
88034
88035 2003-05-26  Jim Meyering  <jim@meyering.net>
88036
88037         Merge in a change from coreutils:
88038         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Test the cache variable, not one
88039         that is guaranteed to be `no'.  Use `no_such_member' to indicate
88040         that condition, rather than `-1' which is slightly misleading.
88041         Change the name of the cache variable to have the gl_ prefix.
88042         Prompted by a patch from Richard Dawe for DJGPP.
88043
88044 2003-05-24  Karl Berry  <karl@gnu.org>
88045
88046         * config/config.guess: update from prep.
88047
88048 2003-05-22  Karl Berry  <karl@gnu.org>
88049
88050         * gnulib-tool (func_usage): =LIBRARY not =libRARY in help msg.
88051
88052 2003-05-20  Karl Berry  <karl@gnu.org>
88053
88054         * config/config.guess: update from prep.
88055
88056 2003-05-18  Karl Berry  <karl@gnu.org>
88057
88058         * config/srclistvars.sh (TEXMF): use TEXMFROOT instead, since TEXMF
88059         might actually be set by the user.
88060
88061         * config/depcomp, install-sh, mdate-sh: update from automake.
88062
88063 2003-05-17  Bruno Haible  <bruno@clisp.org>
88064
88065         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Fix a quoting bug leading to an
88066         invalid expansion for AC_EGREP_CPP.
88067         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Likewise.
88068         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
88069         Suggested by Akim Demaille <akim@epita.fr> in
88070         http://mail.gnu.org/archive/html/bug-autoconf/2003-05/threads.html
88071
88072 2003-05-12  Jim Meyering  <jim@meyering.net>
88073
88074         * lib/strftime.c (my_strftime): Let the `-' (no-pad) flag affect
88075         the space-padded-by-default conversion specifiers, %e, %k, %l.
88076
88077 2003-05-12  Bruno Haible  <bruno@clisp.org>
88078
88079         * lib/linebreak.c (iconv_string_length): Don't return -1 just because
88080         the string is longer than 4 KB.
88081
88082 2003-05-11  Karl Berry  <karl@gnu.org>
88083
88084         * config/config.{guess,sub}: update from prep.
88085
88086 2003-05-09  Bruno Haible  <bruno@clisp.org>
88087
88088         * modules/error: Add m4/strerror_r.m4 to file list.
88089
88090 2003-05-03  Bruno Haible  <bruno@clisp.org>
88091
88092         Upgrade to Unicode-4.0.
88093         * lib/linebreak.c (nonspacing_table_data): Change width of U+00AD,
88094         U+0350..U+0357, U+035D..U+035F, U+0600..U+0603, U+0610..U+0615,
88095         U+0656..U+0658, U+0A01, U+0AE2..U+0AE3, U+0CBC, U+17B4..U+17B5,
88096         U+17DD, U+1920..U+1922, U+1927..U+192B, U+1932, U+1939..U+193B
88097         from 1 to 0. Change width of U+0CBF, U+0CC6, U+180E from 0 to 1.
88098         (uc_width): Change width of U+4DC0..U+4DFF from 2 to 1. Change width
88099         of U+2A6D7..U+2F7FF, U+2FA1E..U+2FFFD, U+30000..U+3FFFD from 1 to 2.
88100         Change width of U+E0100..U+E01EF from 1 to 0.
88101
88102 2003-04-25  Jim Meyering  <jim@meyering.net>
88103
88104         * lib/copy-file.c (copy_file_preserving): Declare buf_size to be
88105         of type size_t, not int.
88106
88107 2003-04-25  Bruno Haible  <bruno@clisp.org>
88108
88109         * lib/copy-file.c: Include <stddef.h>, for size_t.
88110
88111 2003-04-21  Paul Eggert  <eggert@twinsun.com>
88112
88113         * m4/error.m4 (gl_ERROR): Do not put under dynamic conditions some
88114         code which expansion is under static control.  Patch imported from
88115         Akim Demaille's patch to Bison; see
88116         <http://mail.gnu.org/archive/html/bison-patches/2003-03/msg00057.html>.
88117
88118 2003-04-14  Bruno Haible  <bruno@clisp.org>
88119
88120         * m4/error.m4 (jm_PREREQ_ERROR): Use AC_FUNC_VPRINTF.
88121
88122 2003-04-11  Jim Meyering  <jim@meyering.net>
88123
88124         Merge changes from Coreutils.
88125
88126         2003-03-22  Jim Meyering  <jim@meyering.net>
88127
88128         * lib/strftime.c (widen): Cast alloca return value to proper type.
88129
88130         2003-01-19  Ulrich Drepper  <drepper@redhat.com>
88131
88132         From GNU libc.
88133         * lib/strftime.c (my_strftime): Handle very large width
88134         specifications for numeric values correctly.  Improve checks for
88135         overflow.
88136
88137         2003-01-19  Jim Meyering  <jim@meyering.net>
88138
88139         * lib/strftime.c (widen) [COMPILE_WIDE]: Merge nearly-identical
88140         definitions.
88141         (nl_get_alt_digit) [! defined my_strftime]: Define.
88142         (my_strftime) [_NL_CURRENT]: Merge nearly-identical uses of
88143         _nl_get_alt_digit and _nl_get_walt_digit.
88144
88145         * lib/strftime.c (my_strftime): Merge in locale-related changes from
88146         libc. These changes have no effect outside of _LIBC.
88147
88148 2003-04-10  Bruno Haible  <bruno@clisp.org>
88149
88150         * modules/findprog: New file.
88151         * MODULES.html.sh (func_all_modules): Add it.
88152
88153 2003-04-10  Bruno Haible  <bruno@clisp.org>
88154
88155         * m4/findprog.m4: New file.
88156         * m4/eaccess.m4: New file.
88157
88158 2003-04-10  Bruno Haible  <bruno@clisp.org>
88159
88160         * lib/findprog.h: New file, from GNU gettext.
88161         * lib/findprog.c: New file, from GNU gettext.
88162
88163 2003-04-05  Jim Meyering  <jim@meyering.net>
88164
88165         Merge changes from Coreutils.
88166
88167         * lib/exclude.h (PARAMS): Remove definition and uses.
88168         * lib/exclude.c: Remove uses of `PARAMS'.
88169
88170         * lib/dirname.c [TEST_DIRNAME]: Update build instructions for test.
88171         Add test-cases for DOS filenames. Declare program_name.
88172         (main): Set up program_name.  Patch by Rich Dawe.
88173
88174         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Detect any
88175         error from mntctl.
88176         Use mntctl's return value to drive the entry-processing loop, since
88177         we can't rely on the value of the vmt_length member in the last
88178         entry.  On some systems doing so could result in exhausting
88179         virtual memory.  Based in part on a patch from Mike Jetzer.
88180
88181 2003-04-04  Bruno Haible  <bruno@clisp.org>
88182
88183         * modules/linebreak: New file.
88184         * MODULES.html.sh (func_all_modules): Add it.
88185
88186 2003-04-04  Bruno Haible  <bruno@clisp.org>
88187
88188         * m4/linebreak.m4: New file.
88189
88190 2003-04-04  Bruno Haible  <bruno@clisp.org>
88191
88192         * lib/linebreak.h: New file, from GNU gettext.
88193         * lib/linebreak.c: New file, from GNU gettext with slight
88194         modifications.
88195         * lib/lbrkprop.h: New file, from GNU gettext.
88196
88197 2003-04-03  Bruno Haible  <bruno@clisp.org>
88198
88199         * modules/utf8-ucs4: New file.
88200         * modules/utf16-ucs4: New file.
88201         * modules/ucs4-utf8: New file.
88202         * modules/ucs4-utf16: New file.
88203         * MODULES.html.sh (func_all_modules): Add them.
88204
88205 2003-04-03  Bruno Haible  <bruno@clisp.org>
88206
88207         * m4/utf-ucs4.m4: New file.
88208         * m4/ucs4-utf.m4: New file.
88209
88210 2003-04-03  Bruno Haible  <bruno@clisp.org>
88211
88212         * lib/utf8-ucs4.h: New file, from GNU gettext.
88213         * lib/utf16-ucs4.h: New file, from GNU gettext.
88214         * lib/ucs4-utf8.h: New file, from GNU gettext.
88215         * lib/ucs4-utf16.h: New file, from GNU gettext.
88216
88217 2003-04-02  Bruno Haible  <bruno@clisp.org>
88218
88219         * modules/binary-io: New file.
88220         * MODULES.html.sh (func_all_modules): Add it.
88221
88222 2003-04-02  Bruno Haible  <bruno@clisp.org>
88223
88224         * lib/binary-io.h: New file, from GNU gettext.
88225
88226 2003-04-01  Bruno Haible  <bruno@clisp.org>
88227
88228         * modules/pathname: New file.
88229         * MODULES.html.sh (func_all_modules): Add it.
88230
88231 2003-04-01  Bruno Haible  <bruno@clisp.org>
88232
88233         * lib/pathname.h: New file, from GNU gettext.
88234         * lib/concatpath.c: New file, from GNU gettext.
88235
88236 2003-03-30  Bruno Haible  <bruno@clisp.org>
88237
88238         * m4/copy-file.m4 (gl_COPY_FILE): Add check for chown().
88239
88240 2003-03-30  Bruno Haible  <bruno@clisp.org>
88241
88242         * lib/copy-file.c (copy_file_preserving): Don't set owner if the
88243         function chown() doesn't exist.
88244
88245 2003-03-28  Bruno Haible  <bruno@clisp.org>
88246
88247         * modules/copy-file: New file.
88248         * MODULES.html.sh (func_all_modules): Add it.
88249
88250 2003-03-28  Bruno Haible  <bruno@clisp.org>
88251
88252         * m4/copy-file.m4: New file.
88253
88254 2003-03-28  Bruno Haible  <bruno@clisp.org>
88255
88256         * lib/copy-file.h: New file, from GNU gettext.
88257         * lib/copy-file.c: New file, from GNU gettext.
88258
88259 2003-03-18  Jim Meyering  <jim@meyering.net>
88260
88261         * lib/quote.c (quote_n): Fix typo in comment.
88262
88263 2003-03-18  Bruno Haible  <bruno@clisp.org>
88264
88265         * m4/onceonly.m4: Use m4_defn instead of defn, for better error
88266         checking.
88267         * m4/onceonly_2_57.m4: Likewise.
88268
88269 2003-03-17  Bruno Haible  <bruno@clisp.org>
88270
88271         * m4/onceonly.m4: Require autoconf 2.54 or newer.
88272         (m4_quote): Remove macro.
88273         * m4/onceonly_2_57.m4: Require autoconf 2.54 or newer.
88274
88275 2003-03-14  Jim Meyering  <jim@meyering.net>
88276
88277         Merge changes from Coreutils.
88278         * lib/obstack.h (obstack_object_size): Declare temporary, __o,
88279         to be const, in order to avoid warnings.
88280         (obstack_room): Likewise.
88281         (obstack_empty_p): Likewise.
88282
88283 2003-03-14  Bruno Haible  <bruno@clisp.org>
88284
88285         * m4/onceonly_2_57.m4 (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE,
88286         AC_CHECK_DECLS_ONCE): Quote AC_FOREACH variable-expansions properly.
88287
88288 2003-03-13  Paul Eggert  <eggert@twinsun.com>
88289
88290         Merge changes from Bison.
88291         * lib/obstack.h: (__INT_TO_PTR) [__STDC__]: Cast result to
88292         (void *) to avoid diagnostic with native c89 on SGI IRIX 6.5
88293         when compiling Bison 1.875's `bitset bset = obstack_alloc
88294         (bobstack, bytes);'.  Problem reported by Nelson H. F. Beebe.
88295         * lib/hash.c: Include <stdbool.h> unconditionally.
88296
88297 2003-03-13  Paul Eggert  <eggert@twinsun.com>
88298
88299         * m4/onceonly.m4 (m4_quote): New macro.
88300         (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE, AC_CHECK_DECLS_ONCE):
88301         Quote AC_FOREACH variable-expansions properly.
88302
88303 2003-03-13  Paul Eggert  <eggert@twinsun.com>
88304
88305         * doc/COPYING.DOC, fdl.texi: Sync with latest FSF version.
88306
88307 2003-03-09  Paul Eggert  <eggert@twinsun.com>
88308
88309         * lib/argmatch.c (EXIT_FAILURE): Define if the system doesn't.
88310         Reported by Bruce Becker; see:
88311         http://mail.gnu.org/archive/html/bug-bison/2003-03/msg00017.html
88312
88313 2003-03-03  Paul Eggert  <eggert@twinsun.com>
88314             Bruno Haible  <bruno@clisp.org>
88315
88316         * lib/mbswidth.h: Include <wchar.h>. Needed for UnixWare 7.1.1.
88317         Reported by John Hughes, see
88318         http://mail.gnu.org/archive/html/bug-bison/2003-02/msg00030.html
88319
88320 2003-02-20  Bruno Haible  <bruno@clisp.org>
88321
88322         * MODULES.html.sh (func_all_modules): Add poll.
88323
88324 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
88325
88326         * modules/poll: New file.
88327
88328 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
88329
88330         * lib/poll_.h: New file.
88331         * lib/poll.c: New file.
88332
88333 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
88334
88335         * m4/poll.m4: New file.
88336
88337 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
88338
88339         * modules/mathl: New file.
88340
88341 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
88342
88343         * lib/mathl.h: New file.
88344         * lib/acosl.c: New file.
88345         * lib/asinl.c: New file.
88346         * lib/atanl.c: New file.
88347         * lib/ceill.c: New file.
88348         * lib/cosl.c: New file.
88349         * lib/expl.c: New file.
88350         * lib/floorl.c: New file.
88351         * lib/frexpl.c: New file.
88352         * lib/ldexpl.c: New file.
88353         * lib/logl.c: New file.
88354         * lib/sincosl.c: New file.
88355         * lib/sinl.c: New file.
88356         * lib/sqrtl.c: New file.
88357         * lib/tanl.c: New file.
88358         * lib/trigl.c: New file.
88359         * lib/trigl.h: New file.
88360
88361 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
88362
88363         * m4/mathl.m4: New file.
88364
88365 2003-02-18  Bruno Haible  <bruno@clisp.org>
88366
88367         * MODULES.html.sh (func_all_modules): Add mathl.
88368
88369 2003-02-17  Bruno Haible  <bruno@clisp.org>
88370
88371         * modules/mkdtemp: New module.
88372         * MODULES.html.sh (func_all_modules): Add it.
88373
88374 2003-02-17  Bruno Haible  <bruno@clisp.org>
88375
88376         * m4/mkdtemp.m4: New file, from GNU gettext with modifications.
88377
88378 2003-02-17  Bruno Haible  <bruno@clisp.org>
88379
88380         * lib/mkdtemp.h: New file, from GNU gettext.
88381         * lib/mkdtemp.c: New file, from GNU gettext.
88382
88383 2003-02-02  Jim Meyering  <jim@meyering.net>
88384
88385         * m4/regex.m4 (jm_INCLUDED_REGEX): Detect broken re_search in
88386         e.g. glibc-2.2.93.
88387
88388 2003-01-31  Bruno Haible  <bruno@clisp.org>
88389
88390         * m4/rename.m4 (vb_FUNC_RENAME): Add a redirection from 'rename' to
88391         'rpl_rename'.
88392         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Add a redirection from 'strnlen' to
88393         'rpl_strnlen'.
88394         * m4/strtod.m4 (gl_FUNC_STRTOD): Add a redirection from 'strtod' to
88395         'rpl_strtod'.
88396         * m4/utime.m4 (jm_FUNC_UTIME): Add a redirection from 'utime' to
88397         'rpl_utime'.
88398
88399 2003-01-31  Bruno Haible  <bruno@clisp.org>
88400
88401         * lib/rename.c: #undef rename before defining rpl_rename.
88402         * lib/strnlen.c: #undef strnlen, define rpl_strnlen instead of strnlen.
88403
88404 2003-01-30  Bruno Haible  <bruno@clisp.org>
88405
88406         * modules/vasnprintf, modules/vasprintf: New modules.
88407         * MODULES.html.sh (func_all_modules): Add them.
88408
88409 2003-01-30  Bruno Haible  <bruno@clisp.org>
88410
88411         * m4/signed.m4: New file, from GNU gettext.
88412         * m4/longdouble.m4: New file, from GNU gettext.
88413         * m4/wchar_t.m4: New file, from GNU gettext.
88414         * m4/wint_t.m4: New file, from GNU gettext.
88415         * m4/vasnprintf.m4: New file.
88416         * m4/vasprintf.m4: New file.
88417
88418 2003-01-30  Bruno Haible  <bruno@clisp.org>
88419
88420         * lib/printf-args.h: New file, from GNU gettext.
88421         * lib/printf-args.c: New file, from GNU gettext.
88422         * lib/printf-parse.h: New file, from GNU gettext.
88423         * lib/printf-parse.c: New file, from GNU gettext.
88424         * lib/vasnprintf.h: New file, from GNU gettext.
88425         * lib/vasnprintf.c: New file, from GNU gettext.
88426         * lib/asnprintf.c: New file, from GNU gettext.
88427         * lib/vasprintf.h: New file, from GNU gettext with modifications.
88428         * lib/vasprintf.c: New file, from GNU gettext.
88429         * lib/asprintf.c: New file, from GNU gettext.
88430
88431 2003-01-29  Bruno Haible  <bruno@clisp.org>
88432
88433         * modules/stpncpy: New module.
88434         * MODULES.html.sh (func_all_modules): Add it.
88435
88436 2003-01-29  Bruno Haible  <bruno@clisp.org>
88437
88438         * m4/stpncpy.m4: New file.
88439
88440 2003-01-29  Bruno Haible  <bruno@clisp.org>
88441
88442         * lib/stpncpy.h: New file, from GNU gettext with modifications.
88443         * lib/stpncpy.c: New file, from GNU gettext with modifications.
88444
88445 2003-01-28  Bruno Haible  <bruno@clisp.org>
88446
88447         * modules/c-ctype: New module.
88448         * MODULES.html.sh (func_all_modules): Add it.
88449
88450 2003-01-28  Bruno Haible  <bruno@clisp.org>
88451
88452         * lib/c-ctype.h: New file, from GNU gettext, with changes suggested by
88453         Paul Eggert.
88454         * lib/c-ctype.c: New file, from GNU gettext, with changes suggested by
88455         Paul Eggert.
88456
88457 2003-01-27  Bruno Haible  <bruno@clisp.org>
88458
88459         * modules/xsetenv: New module.
88460         * MODULES.html.sh (func_all_modules): Add it.
88461
88462 2003-01-27  Bruno Haible  <bruno@clisp.org>
88463
88464         * lib/xsetenv.h: New file, from GNU gettext.
88465         * lib/xsetenv.c: New file, from GNU gettext.
88466
88467 2003-01-23  Jim Meyering  <jim@meyering.net>
88468
88469         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Correct typo: s/-1/no/ that kept this
88470         from working on systems without dirfd (at least Irix and OSF1/Tru64).
88471
88472 2003-01-23  Bruno Haible  <bruno@clisp.org>
88473
88474         * modules/minmax: New module.
88475         * MODULES.html.sh (func_all_modules): Add it.
88476
88477 2003-01-23  Bruno Haible  <bruno@clisp.org>
88478
88479         * lib/minmax.h: New file, from GNU gettext, with comments from Paul
88480         Eggert.
88481
88482 2003-01-22  Bruno Haible  <bruno@clisp.org>
88483
88484         * modules/exit: New module.
88485         * MODULES.html.sh (func_all_modules): Add it.
88486
88487 2003-01-22  Bruno Haible  <bruno@clisp.org>
88488
88489         * lib/exit.h: New file, from GNU gettext.
88490
88491 2003-01-19  Bruno Haible  <bruno@clisp.org>
88492
88493         * gnulib-tool: Recognize option --extract-maintainer.
88494         (func_get_maintainer): New function.
88495         * modules/*: Add Maintainer entry.
88496
88497 2003-01-16  Jim Meyering  <jim@meyering.net>
88498
88499         * m4/regex.m4: The `regex' struct is both input and output.
88500         Initialize it before each use.  Patch by Tim Waugh.
88501
88502 2003-01-16  Bruno Haible  <bruno@clisp.org>
88503
88504         * MODULES.html.sh: Add a table of contents. Add the module name as
88505         leftmost column. Add hyperlinks.
88506
88507 2003-01-15  Bruno Haible  <bruno@clisp.org>
88508
88509         * m4/md5.m4 (gl_MD5): Require AC_C_INLINE.
88510
88511 2003-01-15  Bruno Haible  <bruno@clisp.org>
88512
88513         * m4/longlong.m4 (jm_AC_TYPE_LONG_LONG): Also test the LL suffix.
88514         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Also test the ULL
88515         suffix.
88516
88517 2003-01-15  Bruno Haible  <bruno@clisp.org>
88518
88519         * m4/alloca.m4 (gl_FUNC_ALLOCA): Invoke AC_EGREP_CPP prerequisites.
88520
88521 2003-01-15  Bruno Haible  <bruno@clisp.org>
88522
88523         * lib/stpcpy.h (stpcpy): Use ANSI C function declarations.
88524         * lib/strcase.h (strcasecmp, strncasecmp): Likewise.
88525
88526 2003-01-14  Jim Meyering  <jim@meyering.net>
88527
88528         * lib/same.c (same_name): Tweak a comment.
88529
88530 2003-01-14  Bruno Haible  <bruno@clisp.org>
88531
88532         * lib/same.c (same_name): Reorder tests so as to avoid calling stat()
88533         when a string comparison is sufficient.
88534
88535 2003-01-14  Bruno Haible  <bruno@clisp.org>
88536
88537         * lib/readtokens.c (readtoken): Cast character to 'unsigned char', not
88538         'unsigned int'.
88539
88540 2003-01-14  Bruno Haible  <bruno@clisp.org>
88541
88542         * lib/hash-pjw.c: Add comment about low quality of this function.
88543
88544 2003-01-13  Bruno Haible  <bruno@clisp.org>
88545
88546         * modules/stpcpy: Distribute lib/stpcpy.h.
88547         * modules/setenv: Depend on alloca. Distribute lib/setenv.h.
88548
88549 2003-01-13  Bruno Haible  <bruno@clisp.org>
88550
88551         * modules/*: Add a description.
88552         * modules/strpbrk: Fix Makefile.am snippet.
88553         * modules/strtoimax: Fix dependencies.
88554         * modules/strtoumax: Likewise.
88555
88556 2003-01-13  Bruno Haible  <bruno@clisp.org>
88557
88558         * gnulib-tool (func_create_testdir): Substitute lib_OBJECTS.
88559         * modules/alloca (Makefile.am): All object files depend on alloca.h.
88560         * modules/stdbool (Makefile.am): All object files depend on stdbool.h.
88561
88562 2003-01-13  Bruno Haible  <bruno@clisp.org>
88563
88564         * gnulib-tool (func_create_testdir): Store config/* files in the main
88565         directory.
88566         * config.rpath: Move to ...
88567         * config/config.rpath: ... here.
88568         * modules/gettext: Contains config/config.rpath, not config.rpath.
88569         * modules/iconv: Likewise.
88570
88571 2003-01-12  Paul Eggert  <eggert@twinsun.com>
88572
88573         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
88574         to avoid collisions with libcurses and libreadline.
88575
88576         * m4/getstr.m4: Remove.
88577         * m4/getline.m4 (gl_PREREQ_GETLINE): Require AC_HEADER_STDC.
88578
88579 2003-01-12  Paul Eggert  <eggert@twinsun.com>
88580
88581         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
88582         to avoid collisions with libcurses and libreadline.
88583
88584         * lib/Makefile.am (libfetish_a_SOURCES): Remove getstr.c, getstr.h.
88585         * lib/getstr.h, getstr.c: Remove.
88586         * lib/getline.c: Include "getline.h", to check interface.
88587         Move body of old getstr.c here: this defines MIN_CHUNK and
88588         declares getdelim2, which is renamed from getstr.
88589         (getline, getdelim): Adjust to renaming of getstr -> getdelim2.
88590
88591         * lib/linebuffer.c (readlinebuffer): Renamed from readline.
88592         All uses changed.
88593         * lib/linebuffer.h: Likewise.
88594         (readline): Remove backward-compatibility macro.
88595
88596 2003-01-12  Paul Eggert  <eggert@twinsun.com>
88597
88598         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
88599         to avoid collisions with libcurses and libreadline.
88600         * getstr: Remove.
88601         * MODULES.html.sh: Remove getstr.
88602         * modules/getline: Depend on unlocked-io, not getstr.
88603
88604 2003-01-12  Jim Meyering  <jim@meyering.net>
88605
88606         * lib/makepath.c: Don't test HAVE_ERRNO_H.  It's not necessary.
88607
88608 2003-01-10  Bruno Haible  <bruno@clisp.org>
88609
88610         * modules/alloca: Change Makefile.am requirements. Simplify Include
88611         requirements. Add lib/alloca_.h to file list.
88612
88613 2003-01-10  Bruno Haible  <bruno@clisp.org>
88614
88615         * m4/alloca.m4 (gl_FUNC_ALLOCA): Also define ALLOCA_H.
88616
88617 2003-01-10  Bruno Haible  <bruno@clisp.org>
88618
88619         * lib/alloca_.h: New file.
88620         * lib/getdate.y: Unconditionally include alloca.h.
88621         * lib/makepath.c: Likewise.
88622         * lib/setenv.c: Likewise.
88623         * lib/userspec.c: Likewise.
88624
88625 2003-01-09  Karl Berry  <karl@gnu.org>
88626
88627         * MODULES.html.sh: include `dirname $0` in PATH, to find
88628         gnulib-tool.
88629
88630 2003-01-09  Bruno Haible  <bruno@clisp.org>
88631
88632         * modules/stdbool: Change configure.ac, Makefile.am requirements.
88633         Simplify Include requirements. Add lib/stdbool.h.in to file list.
88634
88635 2003-01-09  Bruno Haible  <bruno@clisp.org>
88636
88637         * m4/stdbool.m4 (AM_STDBOOL_H): New macro.
88638
88639 2003-01-09  Bruno Haible  <bruno@clisp.org>
88640
88641         * lib/stdbool.h.in: New file.
88642
88643 2003-01-09  Bruno Haible  <bruno@clisp.org>
88644
88645         * gnulib-tool (func_all_modules): Ignore files ending in ~.
88646         * MODULES.html.sh: Likewise.
88647
88648 2003-01-08  Jim Meyering  <jim@meyering.net>
88649
88650         * lib/full-write.c: Undefine and define-away `const' after inclusion
88651         of errno.h, not before.  Suggestion from Bruno Haible.
88652
88653 2003-01-08  Bruno Haible  <bruno@clisp.org>
88654
88655         * modules/full-read: Depend on full-write.
88656
88657 2003-01-08  Bruno Haible  <bruno@clisp.org>
88658
88659         * lib/safe-read.c: Include specification header first, to ensure its
88660         selfcontainedness.
88661         * lib/full-write.c: Likewise.
88662
88663 2003-01-07  Jim Meyering  <jim@meyering.net>
88664
88665         * lib/full-write.c: Rework so that it may serve to define full_read,
88666         too.
88667         * lib/full-read.c: Simply #define FULL_READ and include full-write.c.
88668
88669 2003-01-07  Bruno Haible  <bruno@clisp.org>
88670
88671         * lib/strtoimax.c: Include <stdint.h> as an alternative to
88672         <inttypes.h>.
88673         * lib/xstrtol.h: Likewise.
88674         * lib/xstrtoimax.c: Likewise.
88675         * lib/xstrtoumax.c: Likewise.
88676         * lib/human.h: Likewise.
88677
88678         * lib/tempname.c: Include <inttypes.h> too. Avoids a compilation error
88679         on systems that have <inttypes.h> but not <stdint.h>.
88680
88681 2003-01-07  Bruno Haible  <bruno@clisp.org>
88682
88683         * MODULES.html.sh: Add copyright notice.
88684         (missed_files): Omit CVS directory entries.
88685         (func_module): Make it work with sed-3.02.
88686         * MODULES.txt: Remove file.
88687
88688 2003-01-06  Jim Meyering  <jim@meyering.net>
88689
88690         * lib/version-etc.c: Update year in translatable copyright string.
88691
88692 2003-01-03  Karl Berry  <karl@gnu.org>
88693
88694         * config/config.{guess,sub}: update from prep.
88695
88696 2003-01-02  Karl Berry  <karl@gnu.org>
88697
88698         * doc/COPYING.DOC: belatedly updated to 1.2.
88699
88700 2003-01-01  Karl Berry  <karl@gnu.org>
88701
88702         * gnulib-tool (func_verify_module): report module name $module in
88703         error message, not $1.
88704         * gnulib-tool (create-testdir): don't complain if destdir couldn't
88705         be created, only if it doesn't exist.
88706         * gnulib-tool (last_checkin_date): don't expand the $Date here.
88707
88708 2002-12-31  Paul Eggert  <eggert@twinsun.com>
88709
88710         * m4/memcoll.m4 (gl_MEMCOLL): Require AC_FUNC_MEMCMP.
88711
88712 2002-12-31  Paul Eggert  <eggert@twinsun.com>
88713
88714         * lib/memcoll.c (memcoll): Fall back on a simple algorithm using
88715         memcmp if strcoll doesn't work.
88716
88717 2002-12-31  Bruno Haible  <bruno@clisp.org>
88718
88719         * lib/utime.c (utime_null): No need to call ftruncate if the file was
88720         nonempty.
88721
88722 2002-12-31  Bruno Haible  <bruno@clisp.org>
88723
88724         * lib/memcoll.c (STRCOLL): New macro.
88725         (memcoll): Use it.
88726
88727 2002-12-31  Bruno Haible  <bruno@clisp.org>
88728
88729         * lib/localcharset.h: New file.
88730         * lib/localcharset.c: Include it.
88731         * lib/unicodeio.c: Likewise.
88732
88733 2002-12-31  Bruno Haible  <bruno@clisp.org>
88734
88735         * lib/getstr.h (getstr): Define, to avoid clash with libcurses.
88736         * lib/linebuffer.h (readline): Define, to avoid clash with libreadline.
88737
88738 2002-12-31  Bruno Haible  <bruno@clisp.org>
88739
88740         * lib/getline.h: Include <stddef.h>, for size_t.
88741
88742         * lib/unicodeio.h: Include <stddef.h>, for size_t.
88743         * lib/unicodeio.c: Don't include <stddef.h>.
88744
88745 2002-12-31  Bruno Haible  <bruno@clisp.org>
88746
88747         * lib/getdate.y (get_date): Test HAVE_STRUCT_TM_TM_ZONE, not
88748         HAVE_TM_ZONE.
88749
88750 2002-12-24  Karl Berry  <karl@gnu.org>
88751
88752         * config/config.guess: update from prep.
88753
88754 2002-12-24  Bruno Haible  <bruno@clisp.org>
88755
88756         General infrasructure.
88757         * m4/README: Rewritten.
88758         * m4/onceonly.m4: New file.
88759         * m4/onceonly_2_57.m4: New file.
88760
88761         Module atexit.
88762         * m4/atexit.m4: New file.
88763
88764         Module strtod.
88765         * m4/strtod.m4: New file.
88766
88767         Module strtol.
88768         * m4/strtol.m4: New file.
88769
88770         Module strtoul.
88771         * m4/strtoul.m4: New file.
88772
88773         Module memchr.
88774         * m4/memchr.m4: New file.
88775
88776         Module memcmp.
88777         * m4/memcmp.m4 (gl_PREREQ_MEMCMP): New macro.
88778         (jm_FUNC_MEMCMP): Invoke it.
88779
88780         Module memcpy.
88781         * m4/memcpy.m4: New file.
88782
88783         Module memmove.
88784         * m4/memmove.m4: New file.
88785
88786         Module memset.
88787         * m4/memset.m4: New file.
88788
88789         Module strcspn.
88790         * m4/strcspn.m4: New file.
88791
88792         Module strpbrk.
88793         * m4/strpbrk.m4: New file.
88794
88795         Module strstr.
88796         * m4/strstr.m4: New file.
88797
88798         Module strerror.
88799         * m4/strerror.m4: New file.
88800
88801         Module mktime.
88802         * m4/mktime.m4: Renamed from jm-mktime.m4.
88803         (gl_PREREQ_MKTIME): New macro.
88804         (gl_FUNC_MKTIME): Renamed from jm_FUNC_MKTIME. Invoke gl_PREREQ_MKTIME.
88805
88806         Module malloc.
88807         * m4/malloc.m4 (gl_PREREQ_MALLOC): New macro.
88808         (jm_FUNC_MALLOC): Use AC_FUNC_MALLOC. Invoke gl_PREREQ_MALLOC.
88809         Don't define HAVE_DONE_WORKING_MALLOC_CHECK, since nothing uses it.
88810
88811         Module realloc.
88812         * m4/realloc.m4 (gl_PREREQ_REALLOC): New macro.
88813         (jm_FUNC_REALLOC): Use AC_FUNC_REALLOC. Invoke gl_PREREQ_REALLOC.
88814         Don't define HAVE_DONE_WORKING_REALLOC_CHECK, since nothing uses it.
88815
88816         Module strftime.
88817         * m4/tm_gmtoff.m4: New file, extracted from strftime.m4.
88818         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Use AC_FUNC_STRFTIME.
88819         Don't test for bcopy (we are not emacs). Invoke AC_TYPE_MBSTATE_T and
88820         gl_TM_GMTOFF.
88821         (_jm_STRFTIME_PREREQS, jm_FUNC_GNU_STRFTIME): Use onceonly macros.
88822
88823         Module xalloc.
88824         * m4/xalloc.m4: New file.
88825
88826         Module alloca.
88827         * m4/alloca.m4: New file.
88828
88829         Module putenv.
88830         * m4/putenv.m4 (gl_PREREQ_PUTENV): New macro.
88831         (jm_FUNC_PUTENV): Invoke it.
88832
88833         Module setenv.
88834         * m4/setenv.m4 (gt_FUNC_SETENV): New macro.
88835         (gt_CHECK_VAR_DECL): Fix quoting error that led to infinite loop in m4
88836         when invoked twice.
88837         (gt_PREREQ_SETENV, gt_PREREQ_UNSETENV): New macros, replacing old
88838         gt_FUNC_SETENV.
88839
88840         Module memrchr.
88841         * m4/memrchr.m4: New file.
88842
88843         Module stpcpy.
88844         * m4/stpcpy.m4: New file.
88845
88846         Module strcase.
88847         * m4/strcase.m4: New file.
88848
88849         Module strdup.
88850         * m4/strdup.m4: New file.
88851
88852         Module strnlen.
88853         * m4/strnlen.m4: New file.
88854
88855         Module strndup.
88856         * m4/strndup.m4: New file.
88857
88858         Module xstrtod.
88859         * m4/xstrtod.m4: New file.
88860
88861         Module xstrtol.
88862         * m4/xstrtol.m4: New file.
88863
88864         Module getdate.
88865         * m4/getdate.m4: New file.
88866
88867         Module unlocked-io.
88868         * m4/unlocked-io.m4: Renamed from jm-glibc-io.m4.
88869         (jm_FUNC_GLIBC_UNLOCKED_IO): Invoke AC_GNU_SOURCE. Use onceonly macros.
88870         * m4/jm-glibc-io.m4n: Remove file.
88871
88872         Module long-options.
88873         * m4/long-options.m4: New file.
88874
88875         Module md5.
88876         * m4/md5.m4: New file.
88877
88878         Module sha.
88879         * m4/sha.m4: New file.
88880
88881         Module getstr.
88882         * m4/getstr.m4: New file.
88883
88884         Module getline.
88885         * m4/getline.m4 (gl_PREREQ_GETLINE): New macro.
88886         (AM_FUNC_GETLINE): Invoke AC_GNU_SOURCE. Use <stdlib.h>, not
88887         <sys/types.h>, for size_t. Use the function name gnu_getline, not
88888         simply getline. Infoke gl_PREREQ_GETLINE.
88889
88890         Module obstack.
88891         * m4/obstack.m4: New file.
88892
88893         Module hash.
88894         * m4/hash.m4: New file.
88895
88896         Module readtokens.
88897         * m4/readtokens.m4: New file.
88898
88899         Module strverscmp.
88900         * m4/strverscmp.m4: New file.
88901
88902         Module stdbool.
88903         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Add test for _Bool. Needed for
88904         OSF/1.
88905
88906         Module strtoll.
88907         * m4/strtoll.m4: New file.
88908
88909         Module strtoull.
88910         * m4/strtoull.m4: New file.
88911
88912         Module strtoimax.
88913         * m4/strtoimax.m4: New file.
88914
88915         Module strtoumax.
88916         * m4/strtoumax.m4: New file.
88917
88918         Module xstrtoimax.
88919         * m4/xstrtoimax.m4 (jm_XSTRTOIMAX): Renamed from
88920         jm_AC_PREREQ_XSTRTOIMAX.
88921         Moved the strtol prerequisites to strtol.m4.
88922         Moved the strtoll prerequisites to strtoll.m4.
88923         Moved the strtoimax prerequisites to strtoimax.m4.
88924
88925         Module xstrtoumax.
88926         * m4/xstrtoumax.m4 (jm_XSTRTOUMAX): Renamed from
88927         jm_AC_PREREQ_XSTRTOUMAX.
88928         Moved the strtoul prerequisites to strtoul.m4.
88929         Moved the strtoull prerequisites to strtoull.m4.
88930         Moved the strtoumax prerequisites to strtoumax.m4.
88931
88932         Module chown.
88933         * m4/chown.m4 (gl_PREREQ_CHOWN): New macro.
88934         (jm_FUNC_CHOWN): Use AC_FUNC_CHOWN. Invoke gl_PREREQ_CHOWN.
88935
88936         Module dup2.
88937         * m4/dup2.m4: New file.
88938
88939         Module ftruncate.
88940         * m4/ftruncate.m4 (gl_PREREQ_FTRUNCATE): New macro.
88941         (jm_FUNC_FTRUNCATE): Use AC_REPLACE_FUNCS. Invoke gl_PREREQ_FTRUNCATE.
88942
88943         Module getgroups.
88944         * m4/getgroups.m4 (gl_PREREQ_GETGROUPS): New macro.
88945         (jm_FUNC_GETGROUPS): Use AC_FUNC_GETGROUPS. Invoke gl_PREREQ_GETGROUPS.
88946
88947         Module gettimeofday.
88948         * m4/gettimeofday.m4 (gl_PREREQ_GETTIMEOFDAY): New macro.
88949         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Use onceonly macros. Invoke
88950         gl_PREREQ_GETTIMEOFDAY.
88951
88952         Module mkdir.
88953         * m4/mkdir-slash.m4 (gl_PREREQ_MKDIR): New macro.
88954         (UTILS_FUNC_MKDIR_TRAILING_SLASH): Invoke gl_PREREQ_MKDIR.
88955
88956         Module mkstemp.
88957         * m4/mkstemp.m4 (gl_PREREQ_MKSTEMP): New macro.
88958         (jm_PREREQ_TEMPNAME): New macro, from prereq.m4. Also invoke
88959         jm_AC_TYPE_UINTMAX_T.
88960         (UTILS_FUNC_MKSTEMP): Invoke gl_PREREQ_MKSTEMP and jm_PREREQ_TEMPNAME.
88961
88962         Module stat.
88963         * m4/stat.m4 (gl_PREREQ_STAT): New macro.
88964         (jm_FUNC_STAT): Use AC_FUNC_STAT. Invoke gl_PREREQ_STAT.
88965
88966         Module lstat.
88967         * m4/lstat.m4 (gl_PREREQ_LSTAT): New macro.
88968         (jm_FUNC_LSTAT): Use AC_FUNC_LSTAT. Invoke gl_PREREQ_LSTAT.
88969
88970         Module timespec.
88971         * m4/timespec.m4 (gl_TIMESPEC): New macro.
88972         (jm_CHECK_TYPE_STRUCT_TIMESPEC): Add check for <sys/time.h>.
88973         * m4/st_mtim.m4: Indentation.
88974
88975         Module nanosleep.
88976         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): New macro.
88977         (jm_FUNC_NANOSLEEP): Add check for <sys/time.h>. Invoke
88978         gl_PREREQ_NANOSLEEP.
88979
88980         Module regex.
88981         * m4/regex.m4 (jm_PREREQ_REGEX): New macro.
88982         (jm_INCLUDED_REGEX): Invoke jm_PREREQ_REGEX.
88983         (gl_REGEX): New macro.
88984
88985         Module rename.
88986         * m4/rename.m4 (gl_PREREQ_RENAME): New macro.
88987         (vb_FUNC_RENAME): Invoke gl_PREREQ_RENAME.
88988
88989         Module rmdir.
88990         * m4/rmdir.m4: New file.
88991
88992         Module utime.
88993         * m4/utimbuf.m4 (jm_CHECK_TYPE_STRUCT_UTIMBUF): Use onceonly macros.
88994         * m4/utime.m4 (gl_PREREQ_UTIME): New macro.
88995         (jm_FUNC_UTIME): Invoke gl_PREREQ_UTIME.
88996
88997         Module dirname.
88998         * m4/dirname.m4: New file.
88999
89000         Module getopt.
89001         * m4/getopt.m4: New file.
89002
89003         Module unistd-safer.
89004         * m4/unistd-safer.m4: New file.
89005
89006         Module fnmatch.
89007         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Include <stdlib.h>, for exit()
89008         declaration.
89009         (gl_PREREQ_FNMATCH_EXTRA): New macro.
89010         (gl_FUNC_FNMATCH_POSIX): New macro.
89011         (gl_FUNC_FNMATCH_GNU): Renamed from AC_FUNC_FNMATCH_GNU. Invoke
89012         gl_PREREQ_FNMATCH_EXTRA. Use the function name gnu_fnmatch, not
89013         simply fnmatch.
89014
89015         Module exclude.
89016         * m4/exclude.m4: New file.
89017
89018         Module human.
89019         * m4/human.m4: New file.
89020
89021         Module acl.
89022         * m4/acl.m4: Nop.
89023
89024         Module backupfile.
89025         * m4/backupfile.m4: New file.
89026         * m4/d-ino.m4: Indentation.
89027
89028         Module fsusage.
89029         * m4/fsusage.m4 (gl_FSUSAGE): New macro.
89030         (jm_STATFS_TRUNCATES): New macro, from coreutils-4.5.4/configure.ac.
89031         (gl_PREREQ_FSUSAGE_EXTRA): New macro.
89032
89033         Module dirfd.
89034         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Invoke some AC_EGREP_CPP
89035         requirements.
89036
89037         Module euidaccess.
89038         * m4/euidaccess.m4: New file.
89039
89040         Module file-type.
89041         * m4/file-type.m4: New file.
89042
89043         Module fileblocks.
89044         * m4/fileblocks.m4: New file.
89045
89046         Module filemode.
89047         * m4/filemode.m4: New file.
89048
89049         Module isdir.
89050         * m4/isdir.m4: New file.
89051
89052         Module lchown.
89053         * m4/lchown.m4 (gl_PREREQ_LCHOWN): New macro.
89054         (jm_FUNC_LCHOWN): Invoke gl_PREREQ_LCHOWN.
89055
89056         Module makepath.
89057         * m4/makepath.m4: New file.
89058
89059         Module modechange.
89060         * m4/modechange.m4: New file.
89061
89062         Module mountlist.
89063         * m4/mountlist.m4: New file.
89064         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Use onceonly macros.
89065         Indentation.
89066
89067         Module path-concat.
89068         * m4/path-concat.m4: New file.
89069
89070         Module pathmax.
89071         * m4/pathmax.m4: New file.
89072
89073         Module same.
89074         * m4/same.m4: New file.
89075
89076         Module save-cwd.
89077         * m4/save-cwd.m4: New file.
89078
89079         Module savedir.
89080         * m4/savedir.m4: New file.
89081
89082         Module xgetcwd.
89083         * m4/xgetcwd.m4: New file.
89084         * m4/getcwd.m4 (AC_FUNC_GETCWD_NULL): Use onceonly macros.
89085
89086         Module xreadlink.
89087         * m4/xreadlink.m4: New file.
89088
89089         Module safe-read.
89090         * m4/safe-read.m4: New file.
89091
89092         Module safe-write.
89093         * m4/safe-write.m4: New file.
89094
89095         Module closeout.
89096         * m4/closeout.m4: New file.
89097
89098         Module stdio-safer.
89099         * m4/stdio-safer.m4: New file.
89100
89101         Module getpass.
89102         * m4/getpass.m4: New file.
89103
89104         Module getugroups.
89105         * m4/getugroups.m4: New file.
89106
89107         Module group-member.
89108         * m4/group-member.m4 (gl_PREREQ_GROUP_MEMBER): New macro.
89109         (jm_FUNC_GROUP_MEMBER): Invoke AC_GNU_SOURCE, gl_PREREQ_GROUP_MEMBER.
89110
89111         Module idcache.
89112         * m4/idcache.m4: New file.
89113
89114         Module userspec.
89115         * m4/userspec.m4: New file.
89116
89117         Module gettime.
89118         * m4/clock_time.m4: New file.
89119         * m4/gettime.m4: New file.
89120
89121         Module settime.
89122         * m4/settime.m4: New file.
89123
89124         Module posixtm.
89125         * m4/posixtm.m4: New file.
89126
89127         Module gethostname.
89128         * m4/gethostname.m4: New file.
89129
89130         Module canon-host.
89131         * m4/canon-host.m4: New file.
89132
89133         Module gettext.
89134         * m4/codeset.m4: New file, from gettext-0.11.5.
89135         * m4/gettext.m4: New file, from gettext-0.11.5.
89136         * m4/glibc21.m4: New file, from gettext-0.11.5.
89137         * m4/iconv.m4: New file, from gettext-0.11.5.
89138         * m4/intdiv0.m4: New file, from gettext-0.11.5.
89139         * m4/inttypes-pri.m4: New file, from gettext-0.11.5.
89140         * m4/inttypes.m4: New file, from gettext-0.11.5.
89141         * m4/inttypes_h.m4: New file, from gettext-0.11.5 with modifications.
89142         * m4/isc-posix.m4: New file, from gettext-0.11.5.
89143         * m4/lcmessage.m4: New file, from gettext-0.11.5.
89144         * m4/lib-ld.m4: New file, from gettext-0.11.5.
89145         * m4/lib-link.m4: New file, from gettext-0.11.5.
89146         * m4/lib-prefix.m4: New file, from gettext-0.11.5.
89147         * m4/progtest.m4: New file, from gettext-0.11.5.
89148         * m4/stdint_h.m4: New file, from gettext-0.11.5 with modifications.
89149         * m4/uintmax_t.m4: New file, from gettext-0.11.5 with modifications.
89150         * m4/ulonglong.m4: New file, from gettext-0.11.5 with modifications.
89151
89152         Module localcharset.
89153         * m4/localcharset.m4: New file.
89154
89155         Module hard-locale.
89156         * m4/hard-locale.m4: New file.
89157
89158         Module mbswidth.
89159         * m4/mbswidth.m4 (gl_MBSWIDTH): Renamed from jm_PREREQ_MBSWIDTH. Use
89160         onceonly macros.
89161         * m4/mbrtowc.m4: Add comment.
89162
89163         Module memcasecmp.
89164         * m4/memcasecmp.m4: New file.
89165
89166         Module memcoll.
89167         * m4/memcoll.m4: New file.
89168
89169         Module unicodeio.
89170         * m4/unicodeio.m4: New file.
89171
89172         Module rpmatch.
89173         * m4/rpmatch.m4: New file.
89174
89175         Module yesno.
89176         * m4/yesno.m4: New file.
89177
89178         Module exitfail.
89179         * m4/exitfail.m4: New file.
89180
89181         Module c-stack.
89182         * m4/c-stack.m4 (gl_C_STACK): New macro.
89183         (jm_PREREQ_C_STACK): Check for <sys/time.h>. Use onceonly macros.
89184
89185         Module error.
89186         * m4/error.m4 (gl_ERROR): New macro.
89187         (jm_PREREQ_ERROR): Use onceonly macros.
89188
89189         Module fatal.
89190         * m4/fatal.m4: New file.
89191
89192         Module getloadavg.
89193         * m4/getloadavg.m4 (AC_FUNC_GETLOADAVG): Use onceonly macros.
89194         (gl_FUNC_GETLOADAVG, gl_PREREQ_GETLOADAVG): New macros.
89195
89196         Module getpagesize.
89197         * m4/getpagesize.m4: New file.
89198
89199         Module getusershell.
89200         * m4/getusershell.m4: New file.
89201
89202         Module physmem.
89203         * m4/physmem.m4: New file.
89204
89205         Module posixver.
89206         * m4/posixver.m4: New file.
89207
89208         Module quotearg.
89209         * m4/quotearg.m4: New file.
89210
89211         Module quote.
89212         * m4/quote.m4: New file.
89213
89214         Module readutmp.
89215         * m4/readutmp.m4: New file, based on jm_PREREQ_READUTMP from prereq.m4.
89216
89217         Module sig2str.
89218         * m4/sig2str.m4: New file.
89219
89220         Other.
89221         * m4/longlong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Remove, moved to
89222         ulonglong.m4.
89223         * m4/intmax_t.m4: New file.
89224         * m4/d-type.m4: Indentation.
89225         * m4/jm-macros.m4: Update.
89226         * m4/prereq.m4 (jm_PREREQ): Update.
89227         (jm_PREREQ_ADDEXT): Remove, obsoleted by backupfile.m4.
89228         (jm_PREREQ_CANON_HOST): Remove, obsoleted by canon-host.m4.
89229         (jm_PREREQ_DIRNAME): Remove, obsoleted by dirname.m4.
89230         (jm_PREREQ_EXCLUDE): Remove, obsoleted by exclude.m4.
89231         (jm_PREREQ_GETPAGESIZE): Remove, obsoleted by getpagesize.m4.
89232         (jm_PREREQ_HARD_LOCALE): Remove, obsoleted by hard-locale.m4.
89233         (jm_PREREQ_HASH): Remove, obsoleted by hash.m4.
89234         (jm_PREREQ_HUMAN): Remove, obsoleted by human.m4.
89235         (jm_PREREQ_MEMCHR): Remove, obsoleted by memchr.m4.
89236         (jm_PREREQ_PHYSMEM): Remove, obsoleted by physmem.m4.
89237         (jm_PREREQ_POSIXVER): Remove, obsoleted by posixver.m4.
89238         (jm_PREREQ_QUOTEARG): Remove, obsoleted by quotearg.m4.
89239         (jm_PREREQ_READUTMP): Remove, obsoleted by readutmp.m4.
89240         (jm_PREREQ_REGEX): Remove, obsoleted by regex.m4.
89241         (jm_PREREQ_STRNLEN): Remove, obsoleted by strnlen.m4.
89242         (jm_PREREQ_TEMPNAME): Remove, obsoleted by mkstemp.m4.
89243         (jm_PREREQ_XGETCWD): Remove, obsoleted by xgetcwd.m4.
89244         (jm_PREREQ_XREADLINK): Remove, obsoleted by xreadlink.m4.
89245         * m4/readdir.m4 (jm_FUNC_READDIR): Use onceonly macros.
89246
89247 2002-12-24  Bruno Haible  <bruno@clisp.org>
89248
89249         * MODULES.txt: Update according to m4/ changes.
89250
89251         Module gettext.
89252         * config.rpath: New file, from gettext-0.11.5.
89253
89254         * modules/*: New module descriptions.
89255         * gnulib-tool: New file.
89256         * MODULES.html.sh: New file.
89257
89258 2002-12-21  Karl Berry  <karl@gnu.org>
89259
89260         * doc/fdl.texi: update to version 1.2.
89261
89262 2002-12-19  Karl Berry  <karl@gnu.org>
89263
89264         * config/config.guess: update from prep.
89265
89266 2002-12-18  Bruno Haible  <bruno@clisp.org>
89267
89268         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't test for localtime_r.
89269         * m4/jm-mktime.m4 (jm_FUNC_MKTIME): Likewise.
89270
89271 2002-12-17  Bruno Haible  <bruno@clisp.org>
89272
89273         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Remove checks for limits.h,
89274         stdlib.h, string.h.
89275
89276 2002-12-17  Bruno Haible  <bruno@clisp.org>
89277
89278         * lib/canon-host.c (strdup): Remove unused declaration.
89279
89280         * lib/fsusage.c: Include full_read.h.
89281         (get_fs_usage): Use full_read instead of safe_read.
89282
89283         * lib/utime.c (utime_null): Use SAFE_READ_ERROR.
89284
89285 2002-12-12  Karl Berry  <karl@gnu.org>
89286
89287         * config/config.guess: update from prep.
89288
89289 2002-12-11  Bruno Haible  <bruno@clisp.org>
89290
89291         * m4/setenv.m4: New file, from gettext-0.11.5.
89292
89293 2002-12-11  Bruno Haible  <bruno@clisp.org>
89294
89295         * lib/setenv.h: Rewritten to cope with systems that have setenv() but
89296         not unsetenv().
89297         * lib/setenv.c, unsetenv.c: Taken from glibc-2.2.4 with the following
89298         modifications:
89299
89300         2002-12-11  Bruno Haible  <bruno@clisp.org>
89301
89302                 * setenv.c (alloca): Fall back to malloc.
89303                 (freea): New macro.
89304                 (setenv): Use freea() to free memory allocated with alloca().
89305
89306         2002-11-13  Bruno Haible  <bruno@clisp.org>
89307
89308                 * setenv.c (compar_fn_t, __add_to_environ, setenv): Use ANSI C
89309                 function declarations.
89310                 * unsetenv.c (unsetenv): Likewise.
89311
89312         2002-03-04  Bruno Haible  <bruno@clisp.org>
89313
89314                 Portability to AIX 4.3.3.
89315                 * unsetenv.c: New file, extracted from setenv.c.
89316                 * setenv.c: Move the unsetenv() function to unsetenv.c.
89317
89318         2001-12-20  Bruno Haible  <bruno@clisp.org>
89319
89320                 * setenv.c (__add_to_environ): Don't call realloc(NULL,...),
89321                 use malloc instead. For SunOS 4.
89322
89323         2001-12-11  Bruno Haible  <bruno@clisp.org>
89324
89325                 * setenv.c: Declare alloca.
89326                 (compar_fn_t): New typedef.
89327                 (KNOWN_VALUE, STORE_VALUE): Use it.
89328
89329         * lib/Makefile.am (libfetish_a_SOURCES): Add setenv.c, unsetenv.c,
89330         setenv.h.
89331
89332 2002-12-10  Paul Eggert  <eggert@twinsun.com>
89333
89334         Port exclude.c and exclude.h to more non-GNU systems, e.g. Solaris 7.
89335         * lib/exclude.h (EXCLUDE_ANCHORED, EXCLUDE_INCLUDE, EXCLUDE_WILDCARDS):
89336         Choose values that are less likely to collide with system fnmatch
89337         options.
89338         * lib/exclude.c (FNM_CASEFOLD, FNM_LEADING_DIR): Define to 0 if not
89339         defined (e.g., a pure POSIX system).
89340         (EXCLUDE_macros_do_not_collide_with_FNM_macros): Use FNM_PATHNAME
89341         instead of FNM_FILE_NAME, for compatibility with pure POSIX sytems.
89342
89343 2002-12-06  Paul Eggert  <eggert@twinsun.com>
89344
89345         Undo the 2001-07-02 change for jm-glibc-io, as it was too much of
89346         a pain in practice to deal with generated m4 files.  This change
89347         goes together with the 2002-12-04 unlocked-io.h change in ../lib.
89348
89349         * m4/Makefile.am.in (Makefile.am): Don't mention jm-glibc-io.m4n
89350         and jm-glibc-io.m4, as they are no longer a special case.
89351         * m4/jm-glibc-io.m4: Rename from jm-glibc-io.m4n, and remove the
89352         kludge and the auto-generation stuff.  Check only whether the
89353         functions are declared, not whether they exist, since older hosts
89354         that don't declare the functions can't use the optimization anyway.
89355
89356 2002-12-06  Jim Meyering  <jim@meyering.net>
89357
89358         * lib/error.c: Be consistent: change `#ifndef _LIBC' to `#if !_LIBC'.
89359
89360         Merge in changes from libc's misc/error.c, in preparation
89361         for the merge of gnulib's changes back into libc.
89362
89363         * lib/error.c (_): Define only if not already defined.
89364         Move definition to follow all #include directives.
89365         Include unlocked-io.h only if !_LIBC.
89366         [_LIBC]: Include <libio/libioP.h>.
89367         [USE_IN_LIBIO]: Include <libio/iolibio.h>
89368         (fflush): Tweak definition to use INTUSE.
89369         (putc): Define.
89370
89371 2002-12-05  Paul Eggert  <eggert@twinsun.com>
89372
89373         * lib/alloca.c [defined emacs]: Include "lisp.h".
89374         (xalloc_die) [defined emacs]: New macro.
89375         (free) [defined emacs && defined EMACS_FREE]: Define to EMACS_FREE.
89376         [! defined emacs]: Include <xalloc.h>.
89377         (POINTER_TYPE) [!defined POINTER_TYPE]: New macro.
89378         (pointer): Typedef to POINTER_TYPE *.
89379         (malloc): Remove decl; we now always use xmalloc.
89380         (alloca): Use old-style definition, since Emacs needs this.
89381         Check for arithmetic overflow when computing combined size.
89382
89383 2002-12-04  Paul Eggert  <eggert@twinsun.com>
89384
89385         Do not generate unlocked-io.h automatically, since it's easier to
89386         maintain it by hand.
89387
89388         * lib/unlocked-io.h: New file, from GNU diffutils,
89389         but with proper copyright notice and attribution.
89390         * lib/gen-uio: Remove.
89391         * lib/Makefile.am: Add copyright notice.
89392         (libfetish_a_SOURCES): Add unlocked-io.h.
89393         (BUILT_SOURCES, all-local): Remove unlocked-io.h.
89394         (DISTCLEANFILES, io_functions): Remove macros.
89395         (EXTRA_DIST): Remove gen_uio.
89396         (unlocked-io.h): Remove rule.
89397
89398 2002-12-04  Jim Meyering  <jim@meyering.net>
89399
89400         Reflect the fact that stat.c and lstat.c are no longer generated.
89401         * lib/Makefile.am (BUILT_SOURCES): Remove stat.c and lstat.c.
89402         (DISTCLEANFILES): Likewise.
89403         (EXTRA_DIST): Likewise.
89404         (all_local): Don't depend on stat.c or lstat.c.
89405         (stat.c, lstat.c): Remove rules.
89406         (EXTRA_DIST): Remove xstat.in.
89407
89408         * lib/xstat.in: Remove file.  Contents moved into stat.c.
89409         * lib/stat.c: New file.  Contents mostly from xstat.in.
89410         * lib/stat.c: Rework so that it may serve to define rpl_lstat, too.
89411         * lib/lstat.c: New file. Simply #define LSTAT and include stat.c.
89412
89413         * lib/safe-read.c: Rework so that it may serve to define safe_write,
89414         too.
89415         * lib/safe-write.c: Simply #define SAFE_WRITE and include safe-read.c.
89416
89417 2002-12-03  Jim Meyering  <jim@meyering.net>
89418
89419         * lib/safe-read.c, safe-write.c: Change variable names and comments,
89420         but not semantics, to minimize the differences between these two files.
89421         (safe_read): Change comment to mention SAFE_READ_ERROR.
89422
89423         * lib/safe-read.c (IS_EINTR): Define.
89424         (safe_read): Use IS_EINTR in place of in-function cpp directives.
89425
89426 2002-12-02  Jim Meyering  <jim@meyering.net>
89427
89428         * lib/safe-read.c (EINTR): Define.
89429         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Define.
89430         (INT_MAX): Provide fallback.
89431         (safe_read): Rewrite to iterate IFF the read fails with EINTR.
89432
89433         * lib/safe-read.h (SAFE_READ_ERROR): Define.
89434
89435 2002-12-02  Bruno Haible  <bruno@clisp.org>
89436
89437         * lib/safe-write.c (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM):
89438         Define, taken from safe-read.c.
89439         (INT_MAX): Provide fallback.
89440         (safe_write): Rewrite to iterate IFF the write fails with EINTR.
89441         * lib/safe-write.h (SAFE_WRITE_ERROR): Define.
89442
89443         * lib/safe-read.c (EINTR): Remove definition.
89444         (safe_read): Don't use EINTR if it is absent.
89445
89446 2002-12-01  Jim Meyering  <jim@meyering.net>
89447
89448         * lib/safe-read.c: (safe_read): Also exit the loop when read returns
89449         zero.
89450         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM, INT_MAX): Define.
89451
89452 2002-11-27  Paul Eggert  <eggert@twinsun.com>
89453
89454         * lib/hash.c (hash_lookup, hash_get_first, hash_get_next,
89455         hash_find_entry, hash_rehash): Replace `if (limit <= value) abort ();'
89456         with `if (! (value < limit)) abort ();', for readability.
89457
89458 2002-11-26  Karl Berry  <karl@gnu.org>
89459
89460         * lib/strdup.c: copy from libc again, with jim's ok.
89461         * lib/.cppi-disable: re-add strdup.c
89462
89463 2002-11-25  Karl Berry  <karl@gnu.org>
89464
89465         * lib/strtoll.c: copy from libc, meaning we now #include <strtol.c>
89466         instead of "strtol.c".
89467
89468 2002-11-25  Karl Berry  <karl@gnu.org>
89469
89470         * config/install-sh: update from automake for variable quoting, $0 in
89471         error msgs, etc.
89472
89473         * config/srclist.txt ($LIBCSRC/time/mktime.c lib gpl): new entry.
89474         * config/srclist.txt ($LIBCSRC/sysdeps/generic/strtoll.c lib gpl): new
89475         entry.
89476
89477 2002-11-25  Jim Meyering  <jim@meyering.net>
89478
89479         * lib/mktime.c: Sync from libc, now that it has the latest fix.
89480
89481 2002-11-24  Karl Berry  <karl@gnu.org>
89482
89483         * lib/error.c, getopt.c, getopt.h, getopt1.c, obstack.c, regex.c,
89484         regex.h, strdup.c, strtoll.c, tempname.c: change license to gpl.
89485
89486 2002-11-24  Jim Meyering  <jim@meyering.net>
89487
89488         Update from coreutils:
89489
89490         * lib/mktime.c: Merge in changes from libc.
89491
89492         Avoid a link-time failure on some Linux systems.
89493         * lib/mktime.c (STATIC): Define to be empty (_LIBC) or `static'
89494         (otherwise).
89495         (__mon_yday): Declare with the STATIC attribute.
89496         (__mktime_internal): Likewise.
89497         Based on a report from Greg Schafer.
89498
89499 2002-11-23  Jim Meyering  <jim@meyering.net>
89500
89501         * lib/sig2str.c (str2signum, sig2str): Avoid a warning from gcc:
89502         Use `unsigned', not `int', as type of index.
89503
89504         * lib/xstat.in [@BEGIN_LSTAT_ONLY@]: Include <string.h>.
89505
89506         * lib/fsusage.c: Remove unneeded parentheses around operands of
89507         `defined'.
89508
89509 2002-11-22  Paul Eggert  <eggert@twinsun.com>
89510
89511         * lib/quotearg.h: Allow multiple inclusion by surrounding with
89512         "#ifndef QUOTEARG_H_".  Include <stddef.h>, for size_t,
89513         so that we can be included first.
89514         (PARAMS): Remove; we now assume C89 or later.  All uses removed.
89515         * lib/quotearg.c: Include quotearg.h immediately after config.h.
89516         No need to include stddef.h or sys/types.h any more.
89517         Surround local include files with "", not "<>".
89518         Assume HAVE_LIMITS_H unconditionally, as we assume C89.
89519         Similarly, assume HAVE_C_BACKSLASH_A, CHAR_BIT, UCHAR_MAX, UINT_MAX,
89520         HAVE_STDLIB_H, HAVE_STRING_H, STDC_HEADERS.
89521         (HAVE_MBSINIT): Undef if !HAVE_MBRTOWC.
89522         (mbsinit): Define to 1 if !defined mbsinit && !HAVE_MBSINIT.
89523         (ISPRINT): Remove; no longer needed now that we assume C89.
89524
89525         (clone_quoting_options, quotearg_buffer, quotearg_n_options):
89526         Preserve errno.
89527
89528         (quotearg_buffer_restyled, quotearg_n, quotearg_n_style,
89529         quotearg_char): Use SIZE_MAX rather than
89530         (size_t) -1 when we are talking about "infinity".
89531
89532         (quotearg_buffer_restyled): Fix bug when quoting trigraphs.
89533
89534 2002-11-22  Paul Eggert  <eggert@twinsun.com>
89535
89536         * lib/hash.c: Avoid use of <assert.h>, as the GNU Coding Standards
89537         hint that one should use `if (! x) abort ();' rather than `assert
89538         (x);', and anyway it's one less thing to worry about configuring.
89539         (hash_lookup, hash_get_first, hash_get_next, hash_find_entry,
89540         hash_rehash, hash_insert): Use abort rather than assert.
89541
89542 2002-11-22  Bruno Haible  <bruno@clisp.org>
89543
89544         * lib/safe-read.h: Assume C89. Add comments.
89545         (safe_read): Change return type to size_t.
89546         * lib/safe-read.c (safe_read): Change return type to size_t. Handle
89547         byte counts > SSIZE_MAX correctly.
89548         * lib/safe-write.h: New file.
89549         * lib/safe-write.c: New file.
89550         * lib/full-read.h: New file.
89551         * lib/full-read.c: New file.
89552         * lib/full-write.h: Assume C89. Add comments.
89553         * lib/full-write.c: Include safe-write.h.
89554         (full_write): Rewritten to use safe_write.
89555         Suggested by Jim Meyering and Paul Eggert.
89556
89557 2002-11-21  Jim Meyering  <jim@meyering.net>
89558
89559         * lib/strdup.c (strdup): Tweak comment and initial #if/#include.
89560
89561         Merge in changes from the coreutils.
89562
89563         2002-09-25  Paul Eggert  <eggert@twinsun.com>
89564         * lib/fsusage.c [! HAVE_INTTYPES_H && HAVE_STDINT_H] Include
89565         <stdint.h>.
89566         (UINTMAX_MAX) [!defined UINTMAX_MAX]: New macro.
89567         (PROPAGATE_ALL_ONES): Work even if X is unsigned and narrower than
89568         int.  Work more efficiently if X is the same width as uintmax_t.
89569         Do not compare X to -1, to avoid bogus compiler warning.
89570         (get_fs_usage): (uintmax_t) -1 -> UINTMAX_MAX to avoid a cast.
89571         Don't assume that f_frsize and f_bsize are the same type.
89572
89573         * lib/mountlist.c: #undef MNT_IGNORE before defining it, to avoid
89574         warning on FreeBSD.
89575
89576         * lib/makepath.c (make_path): Restore umask *before* creating the final
89577         component.
89578         (make_path): Minor reformatting.
89579
89580         * lib/xmalloc.c: Adjust to work with new autoconf macros,
89581         AC_FUNC_MALLOC and AC_FUNC_REALLOC: test #ifndef
89582         HAVE_MALLOC/HAVE_REALLOC.
89583
89584         * lib/mountlist.h (ME_DUMMY): Don't count entries of type `auto' as
89585         dummy ones.  At least on GNU/Linux systems, `auto' means something
89586         else.
89587         From Michael Stone.
89588
89589 2002-11-21  Bruno Haible  <bruno@clisp.org>
89590
89591         Remove case insensitive option matching.
89592         * lib/argmatch.h (argcasematch): Remove declaration.
89593         (ARGCASEMATCH): Remove macro.
89594         (__xargmatch_internal): Remove case_sensitive argument.
89595         (XARGMATCH): Update.
89596         (XARGCASEMATCH): Remove macro.
89597         * lib/argmatch.c (argmatch): Renamed from __argmatch_internal. Remove
89598         case_sensitive argument.
89599         (argcasematch): Remove function.
89600         (__xargmatch_internal): Remove case_sensitive argument.
89601         (main): Use XARGMATCH instead of XARGCASEMATCH.
89602
89603         * lib/xmalloc.c: Change compile-time error message. Add comment about
89604         required autoconf version.
89605
89606 2002-11-20  Paul Eggert  <eggert@twinsun.com>
89607
89608         Merge argmatch cleanups from Bison.  Assume C89.
89609
89610         * lib/argmatch.c: Include config.h here, not in argmatch.h.
89611         Include stdlib.h, for EXIT_FAILURE.
89612         Always include <string.h>, since we assume C89.
89613         (EXIT_FAILURE): Remove pre-C89 bug workaround.
89614         * lib/argmatch.h: Do not include <config.h> or <sys/types.h>.
89615         Include <stddef.h> instead, since it's all we need for size_t.
89616         (PARAMS): Remove.  All uses removed.
89617         (ARRAY_CARDINALITY): Do not bother to #undef.
89618         (ARRAY_CARDINALITY, ARGMATCH, ARGCASEMATCH, invalid_arg,
89619         ARGMATCH_VALID, XARGMATCH, XARGCASEMATCH):
89620         Remove unnecessary parentheses.
89621         (ARGMATCH_VALID, XARGMATCH, XARGCASEMATCH):
89622         Insert necessary parentheses.
89623         (ARGMATCH_CONSTRAINT, ARGMATCH_VERIFY): New macros.
89624         (ARGMATCH_ASSERT): Use ARGMATCH_CONSTRAINT.
89625
89626 2002-11-19  Bruno Haible  <bruno@clisp.org>
89627
89628         * lib/mbswidth.c: Include mbswidth.h right at the beginning.
89629         * lib/mbswidth.h: Include <stddef.h>, for size_t.
89630
89631         * lib/mbswidth.h (PARAMS): Remove macro.
89632         (mbswidth, mbsnwidth): Use ANSI C function declarations.
89633         * lib/mbswidth.c (mbswidth, mbsnwidth): Likewise.
89634
89635         * lib/gcd.h (PARAMS): Remove macro.
89636         (gcd): Use ANSI C function declarations.
89637         * lib/gcd.c (gcd): Likewise.
89638
89639 2002-11-15  Bruno Haible  <bruno@clisp.org>
89640
89641         * lib/strcspn.c: Include <stddef.h>.
89642         (strcspn): Use ANSI C function declaration. Change return type to
89643         size_t. Use NULL.
89644         * lib/strpbrk.c: Minimize diffs to glibc. Include <stddef.h>.
89645         (strpbrk): Use NULL.
89646         * lib/strpbrk.h (PARAMS): Remove macro.
89647         (strpbrk): Use ANSI C function declaration.
89648         * lib/strstr.c: Don't include <sys/types.h>.
89649         * lib/strstr.h (PARAMS): Remove macro.
89650         (strstr): Use ANSI C function declarations.
89651
89652 2002-11-14  Karl Berry  <karl@gnu.org>
89653
89654         * config/mkinstalldirs: `do' on separate line, instead of
89655         `for var; do'.
89656
89657 2002-11-06  Bruno Haible  <bruno@clisp.org>
89658
89659         * lib/gcd.h (gcd): Change argument type to 'unsigned long'.
89660         * lib/gcd.c (gcd): Likewise.
89661
89662 2002-11-05  Bruno Haible  <bruno@clisp.org>
89663
89664         * lib/gcd.h: New file, from gettext-0.11.5.
89665         * lib/gcd.c: New file, from gettext-0.11.5.
89666
89667 2002-11-05  Bruno Haible  <bruno@clisp.org>
89668
89669         * lib/error.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
89670         * lib/getopt.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
89671         * lib/obstack.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
89672         * lib/regex.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
89673
89674         * lib/argmatch.c: Include gettext.h instead of <locale.h> and
89675         <libintl.h>.
89676         * lib/makepath.c: Include gettext.h instead of <locale.h> and
89677         <libintl.h>.
89678
89679         * lib/closeout.c: Include gettext.h instead of <libintl.h>.
89680         * lib/human.c: Include gettext.h instead of <libintl.h>.
89681         * lib/quotearg.c: Include gettext.h instead of <libintl.h>.
89682         * lib/rpmatch.c: Include gettext.h instead of <libintl.h>.
89683         * lib/unicodeio.c: Include gettext.h instead of <libintl.h>.
89684         * lib/userspec.c: Include gettext.h instead of <libintl.h>.
89685         * lib/version-etc.c: Include gettext.h instead of <libintl.h>.
89686         * lib/xmalloc.c: Include gettext.h instead of <libintl.h>.
89687         (textdomain): Remove definition.
89688         * lib/xmemcoll.c: Include gettext.h instead of <libintl.h>.
89689
89690         * lib/long-options.c: Remove include of <libintl.h> and definition of
89691         _.
89692         * lib/same.c: Remove include of <libintl.h> and definition of _.
89693
89694 2002-11-04  Owen Taylor  <otaylor@redhat.com>
89695
89696         * lib/config.charset: A few additions for Solaris.
89697
89698 2002-11-04  Bruno Haible  <haible@clisp.cons.org>
89699
89700         Make it possible to build libcharset with CC=gcc CFLAGS="-x c++".
89701         * lib/localcharset.c (locale_charset): Declare as extern "C".
89702
89703 2002-11-04  Bruno Haible  <haible@clisp.cons.org>
89704
89705         * lib/config.charset: msdos in uk_UA uses CP1125.
89706
89707 2002-11-04  Bruno Haible  <bruno@clisp.org>
89708
89709         * lib/stpcpy.h: New file, from GNU gettext-0.11.5.
89710         * lib/strcase.h: New file, from GNU gettext-0.11.5.
89711         * lib/strpbrk.h: New file, from GNU gettext-0.11.5.
89712         * lib/strstr.h: New file, from GNU gettext-0.11.5.
89713         * lib/xgetcwd.h: New file, from GNU gettext-0.11.5.
89714
89715 2002-11-04  Bruno Haible  <bruno@clisp.org>
89716
89717         * lib/localcharset.c (locale_charset): Don't return an empty string.
89718
89719 2002-11-04  Bruno Haible  <bruno@clisp.org>
89720
89721         * lib/localcharset.c (get_charset_aliases): Add more Windows specific
89722         aliases.
89723
89724 2002-11-04  Bruno Haible  <bruno@clisp.org>
89725
89726         * lib/config.charset: Update for newest glibc. Add canonical names
89727         ISO-8859-14, KOI8-T, TCVN5712-1, GEORGIAN-PS.
89728
89729 2002-11-04  Bruno Haible  <bruno@clisp.org>
89730
89731         * lib/config.charset: Add support for NetBSD.
89732
89733 2002-11-04  Bruno Haible  <bruno@clisp.org>
89734
89735         * lib/config.charset [msdosdjgpp]: For Russian, use CP866.
89736
89737 2002-11-01  Bruno Haible  <bruno@clisp.org>
89738
89739         * configure.in: Add AC_CONFIG_AUX_DIR call.
89740         (AC_OUTPUT): Add m4/Makefile, lib/Makefile. Remove doc/Makefile,
89741         test/Makefile.
89742         * Makefile.in (subdirs): Add m4, lib. Remove doc, test.
89743
89744 2002-09-28  Karl Berry  <karl@gnu.org>
89745
89746         * config/srclist.txt: can't copy install-sh/mkinstalldirs from
89747         installed automake until the next release, since changes have been
89748         made.
89749
89750 2002-09-25  Karl Berry  <karl@gnu.org>
89751
89752         * lib/strdup.c: copy from libc/string (via ../config/srclist*).
89753         * lib/getopt*: copy from libc/posix.
89754         * lib/gettext.h: copy from gettext.
89755         * lib/.cppi-disable: add strdup.c, gettext.h.
89756
89757 2002-09-25  Karl Berry  <karl@gnu.org>
89758
89759         * config/srclist.txt: enable gettext.h check.
89760         * config/config.{guess,sub}: update from prep.
89761         * config/depcomp, install-sh, mdate-sh, missing, mkinstalldirs: update
89762                 from automake 1.6.3.
89763         See srclist*.
89764
89765 2002-08-23  Stefan Monnier  <monnier@cs.yale.edu>
89766
89767         * regex.c (PATFETCH): Remove the translating fetch.
89768         (PATFETCH_RAW): Rename to PATFETCH.
89769         (set_image_of_range): New fun.
89770         (SET_RANGE_TABLE_WORK_AREA): Use it.
89771         (regex_compile): Don't translate the pattern chars so eagerly.
89772         Only do it when inserting an `exactn' bytecode or when handling
89773         a char-range.
89774         (mutually_exclusive_p): Avoid empty statement.
89775
89776 2002-07-06  Jim Meyering  <meyering@lucent.com>
89777
89778         * m4/README: Don't mention Makefile.am.in.
89779         Outline how I've tested changes to .m4 files.  Yep, it's a pain.
89780
89781 2002-07-01  Jim Meyering  <meyering@lucent.com>
89782
89783         * lib/c-stack.c: Include sys/time.h.
89784         From Volker Borchert.
89785
89786 2002-06-26  Paul Eggert  <eggert@twinsun.com>
89787
89788         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for btowc.
89789
89790 2002-06-26  Paul Eggert  <eggert@twinsun.com>
89791
89792         * lib/fnmatch.c, fnmatch_loop.c (WIDE_CHAR_SUPPORT):
89793         New macro.  Use it uniformly instead of
89794         (defined HAVE_WCTYPE_H && defined HAVE_WCHAR_H).
89795         It also uses HAVE_BTOWC, to fix a porting bug on Solaris 2.5.1
89796         reported by Vin Shelton.
89797
89798 2002-06-22  Paul Eggert  <eggert@twinsun.com>
89799
89800         * lib/c-stack.h (segv_handler, c_stack_action) [! defined SA_SIGINFO]:
89801         Do not assume SA_SIGINFO behavior.
89802         Bug reported by Jim Meyering on NetBSD 1.5.2.
89803
89804 2002-06-22  Jim Meyering  <meyering@lucent.com>
89805
89806         * m4/c-stack.m4: New file, from diffutils-2.8.2.
89807         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_C_STACK.
89808
89809         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Don't require AC__GNU_SOURCE,
89810         now that configure.ac uses AC_GNU_SOURCE.
89811         (jm_MACROS): Rename: jm_FUNC_FNMATCH to AC_FUNC_FNMATCH_GNU.
89812         * m4/prereq.m4 (jm_PREREQ_EXCLUDE): Likewise, wrt jm_FUNC_FNMATCH.
89813
89814         Update to latest tools.  Suggestions from Paul Eggert.
89815         * m4/stdbool.m4: New file, from diffutils-2.8.2.
89816         * m4/gnu-source.m4: Update from diffutils-2.8.2.
89817         * m4/fnmatch.m4: Likewise.
89818         * m4/prereq.m4: Change each use of AC_CHECK_HEADERS(stdbool.h)
89819         to AC_HEADER_STDBOOL
89820
89821 2002-06-22  Jim Meyering  <meyering@lucent.com>
89822
89823         * lib/fnmatch.c (ISASCII, ISPRINT): Undefine, to avoid warning about
89824         redefinition due to Solaris 2.6's definition in /usr/include/sys/euc.h.
89825
89826 2002-06-22  Jim Meyering  <meyering@lucent.com>
89827
89828         * lib/c-stack.c, lib/c-stack.h: New files, from diffutils-2.8.2.
89829
89830         * lib/exitfail.c, exitfail.h: Likewise.
89831         * lib/Makefile.am (libfetish_a_SOURCES): Add exitfail.c and exitfail.h.
89832
89833         * lib/Makefile.am (libfetish_a_SOURCES): Add fnmatch_.h in place
89834         of fnmatch.h.
89835         (EXTRA_DIST): Add fnmatch_loop.c.
89836         (libfetish_a_SOURCES): Add c-stack.c and c-stack.h.
89837
89838         * lib/fnmatch_loop.c: New file, from diffutils-2.8.2.
89839         * lib/fnmatch.c: Update from diffutils-2.8.2.
89840         * lib/fnmatch_.h: New file.  From diffutils-2.8.2.
89841         * lib/fnmatch.h: Remove file.
89842
89843 2002-06-21  Jim Meyering  <meyering@lucent.com>
89844
89845         * m4/c-bs-a.m4: Add comment, from diffutils-2.8.2.
89846         * m4/mbrtowc.m4: Likewise.
89847
89848         * m4/mbstate_t.m4: Update from diffutils-2.8.2.
89849         * m4/mbswidth.m4: Reflect name change:
89850         s/AC_MBSTATE_T/AC_TYPE_MBSTATE_T.
89851         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Likewise.
89852
89853         * m4/lib-link.m4: Update from gettext-0.11.2.
89854         * m4/gettext.m4: Likewise.
89855
89856         * m4/jm-macros.m4 (jm_CHECK_ALL_HEADERS): Check for hurd.h.
89857         From Alfred M. Szmidt.
89858
89859 2002-06-18  Paul Eggert  <eggert@twinsun.com>
89860
89861         * lib/file-type.h: Report an error if neither S_ISREG nor
89862         S_IFREG is defined, instead of using a test specific to glibc
89863         2.2.  This should be safe, since POSIX requires S_ISREG and
89864         Unix Version 7 had S_IFREG.  We don't need to check for
89865         <sys/types.h> since we don't use any symbols that it defines.
89866
89867 2002-06-15  Richard Dawe  <richdawe@bigfoot.com>
89868
89869         * lib/Makefile.am (lstat.c, stat.c, .sin.sed): Use t-$@, rather than
89870         $@-t, so that each temporary file name is unique and valid in the first
89871         8 characters, for operation under DOS.
89872
89873 2002-06-15  Paul Eggert  <eggert@twinsun.com>
89874
89875         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Check for st_author.
89876
89877 2002-06-15  Jim Meyering  <meyering@lucent.com>
89878
89879         Work even with DJGPP 2.03, which lacks support for symlinks.
89880         From Richard Dawe.
89881         * lib/xstat.in (S_ISLNK): Define to 0 if neither S_ISLNK nor S_IFLNK
89882         is defined.
89883         * lib/lchown.c (S_ISLNK): Likewise.
89884
89885 2002-06-15  Jim Meyering  <meyering@lucent.com>
89886
89887         * lib/file-type.h (FILE_TYPE_H): Guard entire contents with #ifndef.
89888         For GNU libc 2.2 and newer, ensure that <sys/types.h> and <sys/stat.h>
89889         have been included before this file.
89890
89891 2002-06-14  Jim Meyering  <meyering@lucent.com>
89892
89893         * lib/file-type.h: Use the version from diffutils-2.8.2.
89894         * lib/file-type.c: Likewise.
89895
89896 2002-06-07  Jim Meyering  <meyering@lucent.com>
89897
89898         * m4/prereq.m4 (jm_PREREQ_STAT): Check for sys/param.h and sys/mount.h.
89899         They're needed at least for NetBSD 1.5.2.
89900         ($statxfs_includes): Include those same headers.
89901         ($statxfs_includes): Include sys/vfs.h if available.
89902         ($statxfs_includes): Likewise for sys/statvfs.h.
89903         Check for the following members in both structs statfs and statvfs:
89904         f_basetype, f_type, f_fsid.__val, f_namemax, f_namelen.
89905
89906 2002-06-01  Jim Meyering  <meyering@lucent.com>
89907
89908         * m4/d-type.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Rename macro:
89909         s/D_TYPE_IN_DIRENT/HAVE_STRUCT_DIRENT_D_TYPE/.
89910
89911 2002-05-28  Jim Meyering  <meyering@lucent.com>
89912
89913         * m4/readdir.m4 (jm_FUNC_READDIR): Undefine `mkdir', not `rmdir'.
89914         Reported by Volker Borchert.
89915
89916 2002-05-27  Jim Meyering  <meyering@lucent.com>
89917
89918         Fix a problem seen only on nonconforming systems whereby ls.c's
89919         use of localtime, and then of gettimeofday would cause trouble:
89920         the localtime call used to initialize rpl_gettimeofday's save
89921         mechanism would clobber ls's current local time information so
89922         that in any long listing the first file would always be listed
89923         with date 1970-01-01.  Analysis by Volker Borchert.
89924
89925         * lib/gettimeofday.c (localtime): Undefine.
89926         (rpl_localtime): New function.
89927
89928 2002-05-27  Jim Meyering  <meyering@lucent.com>
89929
89930         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Also replace
89931         localtime.
89932
89933         * m4/readdir.m4 (jm_FUNC_READDIR): Undefine `rmdir' so we don't try to
89934         use the replacement function; it wouldn't resolve at link time.
89935         Reported by Volker Borchert.
89936
89937 2002-05-22  Jim Meyering  <meyering@lucent.com>
89938
89939         * lib/Makefile.am (libfetish_a_SOURCES): Add file-type.c and
89940         file-type.h.
89941         * lib/file-type.h: New file.
89942         * lib/file-type.c (file_type): New file/function.  Extracted from
89943         diffutils.
89944
89945 2002-04-30  Jim Meyering  <meyering@lucent.com>
89946
89947         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_STAT.
89948
89949 2002-04-29  Paul Eggert  <eggert@twinsun.com>
89950
89951         * m4/prereq.m4 (jm_PREREQ_SIG2STR): Remove; all callers changed.
89952
89953 2002-04-29  Paul Eggert  <eggert@twinsun.com>
89954
89955         * m4/prereq.m4 (jm_PREREQ_HARD_LOCALE): Check for stdlib.h.
89956         Do not check for alloca.h (no longer used) or stdbool.h (was never
89957         used?).  Add AM_C_PROTOTYPES since hard-locale.h uses it.
89958
89959 2002-04-29  Paul Eggert  <eggert@twinsun.com>
89960
89961         * lib/hard-locale.c: Upgrade to version used in GNU Diffutils 2.8.1.
89962
89963 2002-04-29  Jim Meyering  <meyering@lucent.com>
89964
89965         * m4/jm-macros.m4 (jm_MACROS): Remove use of AC_FUNC_STRNLEN.
89966         * m4/prereq.m4: Add jm_PREREQ_STRNLEN.
89967         Use AC_FUNC_STRNLEN here instead.
89968
89969         * m4/jm-macros.m4: Don't AC_REQUIRE([AC_PROG_CC_STDC]).
89970         With autoconf-2.53a, it's part of AC_PROG_CC.
89971
89972 2002-04-28  Paul Eggert  <eggert@twinsun.com>
89973
89974         * m4/jm-macros.m4 (jm_MACROS): Add AC_REPLACE_FUNCS(sig2str).
89975         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_SIG2STR.
89976
89977 2002-04-28  Paul Eggert  <eggert@twinsun.com>
89978
89979         * lib/sig2str.h, lib/sig2str.c: New files.
89980         * lib/Makefile.am (libfetish_a_SOURCES): Add sig2str.h.
89981
89982 2002-04-28  Paul Eggert  <eggert@twinsun.com>
89983
89984         * lib/sig2str.h (SIGNUM_BOUND): Do not use WTERMSIG, to avoid
89985         depending on <sys/wait.h> and WTERMSIG.  Default to 64 instead
89986         of 127, since 64 is the largest conceivable number for ancient
89987         nonstandard hosts.
89988         * lib/sig2str.c: Do not include <sys/wait.h>; no longer needed.
89989
89990 2002-04-28  Jim Meyering  <meyering@lucent.com>
89991
89992         * lib/sig2str.c (WTERMSIG): Remove definition (unused).
89993
89994 2002-04-24  Jim Meyering  <meyering@lucent.com>
89995
89996         * m4/prereq.m4 (jm_PREREQ_HARD_LOCALE): New macro.
89997         (jm_PREREQ): Use it.
89998
89999         * m4/getloadavg.m4: Check for these headers: locale.h unistd.h
90000         mach/mach.h fcntl.h.
90001         Check for this function: setlocale.
90002
90003 2002-04-24  Jim Meyering  <meyering@lucent.com>
90004
90005         * lib/gettext.h: New file, from Gettext.
90006         * lib/Makefile.am (INCLUDES): Remove -I../intl.
90007         (libfetish_a_SOURCES): Add gettext.h.
90008
90009 2002-04-16  Jim Meyering  <meyering@lucent.com>
90010
90011         * m4/prereq.m4 (jm_PREREQ_READUTMP): Also check for these members:
90012         ut_pid, ut_id, ut_exit.
90013
90014 2002-04-16  Jim Meyering  <meyering@lucent.com>
90015
90016         * lib/readutmp.h (UT_TYPE): Remove definition (now in who.c).
90017         (HAVE_STRUCT_XTMP_UT_EXIT, HAVE_STRUCT_XTMP_UT_ID): Define.
90018         (HAVE_STRUCT_XTMP_UT_PID, HAVE_STRUCT_XTMP_UT_TYPE): Define.
90019
90020 2002-04-12  Jim Meyering  <meyering@lucent.com>
90021
90022         * m4/ls-mntd-fs.m4 (checking for getmntinfo function...): Remove
90023         now-bogus check for f_type in sys/mount.h.  Instead, just test for the
90024         existence of the getmntinfo function.  Needed for Darwin 5.3.
90025
90026         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Also detect when dirfd is a macro.
90027         This is necessary at least on Darwin 5.3.
90028
90029         * m4/jm-macros.m4: Don't AC_REPLACE(strnlen), now that we use
90030         AC_FUNC_STRNLEN.  Otherwise, we'd end up putting two copies of
90031         strnlen.o in the library, and that makes some versions of ranlib
90032         object.
90033
90034 2002-04-12  Jim Meyering  <meyering@lucent.com>
90035
90036         * lib/dirfd.h (dirfd): Elide prototype if dirfd is a macro.
90037
90038 2002-04-09  Jim Meyering  <meyering@lucent.com>
90039
90040         * m4/malloc.m4: (jm_FUNC_MALLOC): Change the `checking ...' message
90041         to be more precise.  Rather than saying we're checking whether the
90042         function `works', say what we're testing.
90043         * m4/realloc.m4 (jm_FUNC_REALLOC): Likewise.
90044         Reported by Bruno Haible.
90045
90046 2002-03-10  Jim Meyering  <meyering@lucent.com>
90047
90048         * lib/makepath.c (make_path): Remove a comma from a diagnostic.
90049         Suggestion from Santiago Vila.
90050
90051 2002-03-08  Jim Meyering  <meyering@lucent.com>
90052
90053         * lib/rename.c: Mention that this wrapper is needed also on
90054         mips-dec-ultrix4.4 systems.
90055
90056 2002-03-02  Jim Meyering  <meyering@lucent.com>
90057
90058         * lib/gettime.c (gettime): Test HAVE_CLOCK_GETTIME,
90059         not HAVE_CLOCK_SETTIME.
90060
90061 2002-02-27  Paul Eggert  <eggert@twinsun.com>
90062
90063         * m4/jm-macros.m4 (jm_MACROS): Do not replace stime; no longer used.
90064         Check for clock_settime.
90065
90066 2002-02-27  Paul Eggert  <eggert@twinsun.com>
90067
90068         * lib/nanosleep.h: Rename to....
90069         * lib/timespec.h: New name for nanosleep.h.  All uses changed.
90070
90071         * lib/gettime.c: New file.
90072         * lib/settime.c: New file.
90073         * lib/stime.c: Remove.
90074
90075         * lib/Makefile.am (libfetish_a_SOURCES): Add gettime.c, settime.c,
90076         timespec.h.  Remove nanosleep.h.
90077
90078 2002-02-25  Paul Eggert  <eggert@twinsun.com>
90079
90080         * m4/acl.m4: New file.
90081         * m4/jm-macros.m4 (jm_MACROS): Require AC_FUNC_ACL.
90082         Do not check for acl or sys/acl.h, as AC_FUNC_ACL does that now.
90083
90084 2002-02-25  Paul Eggert  <eggert@twinsun.com>
90085
90086         * lib/acl.c, lib/acl.h: New files.
90087         * lib/Makefile.am (libfetish_a_SOURCES): Add acl.h, acl.c.
90088
90089 2002-02-24  Jim Meyering  <meyering@lucent.com>
90090
90091         * lib/strnlen.c (strnlen): Define-away/undef so that an inconsistent
90092         prototype in string.h (on at least AIX4.3.2.0 w/gcc-2.95.3) doesn't
90093         cause trouble.  Reported by Nelson Beebe.
90094
90095 2002-02-23  Paul Eggert  <eggert@twinsun.com>
90096
90097         * lib/path-concat.c (xpath_concat): Reorder code to pacify
90098         compilers that don't know that xalloc_die never returns.
90099
90100 2002-02-20  Jim Meyering  <meyering@lucent.com>
90101
90102         * lib/getdate.c: Regenerate using bison-1.33.
90103
90104 2002-02-17  Jim Meyering  <meyering@lucent.com>
90105
90106         * config/config.guess (main): Don't use `head -1'; it's no longer
90107         portable. Use `sed 1q' instead.
90108
90109 2002-02-16  gettextize  <bug-gnu-gettext@gnu.org>
90110
90111         * m4/codeset.m4: Upgrade to gettext-0.11.
90112         * m4/gettext.m4: Upgrade to gettext-0.11.
90113         * m4/glibc21.m4: Upgrade to gettext-0.11.
90114         * m4/iconv.m4: Upgrade to gettext-0.11.
90115         * m4/isc-posix.m4: Upgrade to gettext-0.11.
90116         * m4/lcmessage.m4: Upgrade to gettext-0.11.
90117         * m4/lib-ld.m4: New file, from gettext-0.11.
90118         * m4/lib-link.m4: New file, from gettext-0.11.
90119         * m4/lib-prefix.m4: New file, from gettext-0.11.
90120         * m4/progtest.m4: Upgrade to gettext-0.11.
90121
90122 2002-02-15  Paul Eggert  <eggert@twinsun.com>
90123
90124         * m4/prereq.m4 (jm_PREREQ_POSIXVER): New macro.
90125         (jm_PREREQ): Use it.
90126
90127 2002-02-15  Paul Eggert  <eggert@twinsun.com>
90128
90129         * lib/posixver.c, lib/posixver.h: New files.
90130         * lib/Makefile.am (libfetish_a_SOURCES): Add them.
90131
90132 2002-02-02  Paul Eggert  <eggert@twinsun.com>
90133             Bruno Haible  <bruno@clisp.org>
90134
90135         * lib/unicodeio.h (print_unicode_char): Add exit_on_error argument.
90136         (fwrite_success_callback): New declaration.
90137         * lib/unicodeio.c (unicode_to_mb): New function, extracted from
90138         print_unicode_char. Call failure callback instead of error.
90139         (fwrite_success_callback): New function.
90140         (exit_failure_callback): New function.
90141         (fallback_failure_callback): New function.
90142         (print_unicode_char): Call unicode_to_mb.
90143
90144 2002-01-26  Jim Meyering  <meyering@lucent.com>
90145
90146         * m4/jm-macros.m4 (jm_MACROS): Require autoconf-2.52g.
90147         * m4/strnlen.m4: Remove file, now that it's part of autoconf.
90148
90149 2002-01-26  Jim Meyering  <meyering@lucent.com>
90150
90151         * lib/Makefile.am (getdate$U.o): Depend on unlocked-io.h.
90152
90153 2002-01-22  Paul Eggert  <eggert@twinsun.com>
90154
90155         * m4/jm-macros.m4 (jm_MACROS): Require AC_FUNC_FSEEKO.
90156
90157 2002-01-22  Jim Meyering  <meyering@lucent.com>
90158
90159         * lib/Makefile.am (Makefile): Don't depend on $(BUILT_SOURCES).
90160         Otherwise, some versions of automake would omit the rule that makes
90161         Makefile from Makefile.in.
90162
90163 2002-01-21  Paul Eggert  <eggert@twinsun.com>
90164
90165         * lib/xmemcoll.h, lib/xmemcoll.c: New files.
90166         * lib/Makefile.am (libfetish_a_SOURCES): Add them.
90167         * lib/memcoll.c: Include errno.h, and declare errno if not defined.
90168         (memcoll): Set errno to zero if there is no error.
90169
90170         * lib/quotearg.c (quotearg_buffer_restyled):
90171         Fix bug with quoting buffers containing NUL when backslashing escapes.
90172         This bug was exposed by the other changes in this patch.
90173         (quotearg_n_options): New arg ARGSIZE.
90174         All callers changed.
90175         (quoting_options_from_style): New function.
90176         (quotearg_n_style): Use it.
90177         (quotearg_n_style_mem): New function.
90178
90179         * lib/quotearg.h (quotearg_n_style_mem): New function.
90180
90181 2002-01-19  Jim Meyering  <meyering@lucent.com>
90182
90183         * m4/jm-macros.m4 (jm_MACROS): Use AC_FUNC_STRNLEN.
90184         Remove useless quotes: DF_PROG="df".
90185         * m4/strnlen.m4: New file.
90186
90187 2002-01-16  Paul Eggert  <eggert@twinsun.com>
90188
90189         * lib/backupfile.c (ISDIGIT): Comment fix.
90190         * lib/getdate.y (ISDIGIT): Likewise.
90191         * lib/posixtm.c (ISDIGIT, year): Likewise.
90192         * lib/strverscmp.c (ISDIGIT): Likewise.
90193         * lib/userspec.c (ISDIGIT): Likewise.
90194
90195 2002-01-16  Jim Meyering  <meyering@lucent.com>
90196
90197         * lib/getdate.y: Add three semicolons, each just before a closing
90198         brace. Bison (as of version 1.31) no longer papers over that mistake.
90199
90200 2002-01-05  Jim Meyering  <meyering@lucent.com>
90201
90202         * lib/version-etc.c (version_etc_copyright): Update copyright year.
90203
90204 2001-12-19  Paul Eggert  <eggert@twinsun.com>
90205
90206         * lib/closeout.c (close_stdout_status): If ferror (stdout), do
90207         not silently exit merely because the output buffer happens to
90208         have nothing pending.
90209
90210 2001-12-18  Paul Eggert  <eggert@twinsun.com>
90211
90212         See the big note in ../ChangeLog.
90213         * lib/human.c (suffixes): Prefer K to k for 1024.
90214         (generate_suffix_backwards): New function.
90215         (human_readable_inexact): Use it.
90216         * lib/xstrtol.c (__xstrtol): If there is no number but there
90217         is a valid suffix, assume 1.  "MB" now means decimal, "MiB" binary.
90218         Accept 'K' as well as 'k'.
90219
90220 2001-12-15  Jim Meyering  <meyering@lucent.com>
90221
90222         * lib/regex.h (__restrict_arr): Update from libc.
90223
90224         * lib/mountlist.h (ME_REMOTE): Recognize file systems of type smbfs
90225         as `remote' if the name starts with `//'.  Suggested by Michael Stone.
90226         (STREQ): Define.
90227
90228 2001-12-14  Jim Meyering  <meyering@lucent.com>
90229
90230         * m4/jm-macros.m4 (jm_MACROS): Check for iswspace.
90231         Suggestion from Bruno Haible.
90232
90233 2001-12-10  Jim Meyering  <meyering@lucent.com>
90234
90235         * lib/linebuffer.c: Remove explicit declarations of xmalloc and
90236         xrealloc, Instead, include "xalloc.h".
90237         (initbuffer): Don't cast xmalloc return value to char*.
90238         (readline): Reword comment.
90239         Don't cast xrealloc return value to char*
90240         Return NULL, not 0.
90241
90242 2001-12-09  Jim Meyering  <meyering@lucent.com>
90243
90244         * lib/modechange.c (mode_compile): Add cast to avoid pedantic warning
90245         about `signed and unsigned type in conditional expression'.
90246         * lib/posixtm.c (posix_time_parse): Likewise.
90247
90248         * lib/xreadlink.c (xreadlink): Add cast to avoid a pedantic warning.
90249
90250         * lib/readtokens.c (readtoken): Declare an index to be of type unsigned
90251         to avoid a pedantic warning.
90252
90253         * lib/getstr.c: Don't include assert.h.
90254         (getstr): Remove warning-evoking assertions.
90255         Return -1 if offset parameter is out of bounds.
90256         Change the type of a local from int to size_t.
90257
90258         * lib/strftime.c (my_strftime_localtime_r): Include this function
90259         definition in the `#if ! HAVE_TM_GMTOFF' block.
90260
90261         * lib/xgethostname.c: Remove declarations of xmalloc and xrealloc.
90262         Include xalloc.h instead.
90263
90264 2001-12-02  Jim Meyering  <meyering@lucent.com>
90265
90266         * lib/tempname.c: Don't declare getenv, thus reverting the change of
90267         2001-11-18.  It's no longer necessary, now that stdlib.h is always
90268         included.
90269
90270         * lib/regex.c [!__BOUNDED_POINTERS__]: Define away __bounded,
90271         __unbounded, and __ptrvalue.  Reported by Uwe H. Steinfeld.
90272
90273 2001-11-30  Akim Demaille  <akim@epita.fr>
90274
90275         * lib/xstrdup.c: Include xalloc.h, so that xstrdup is declared
90276         before being defined.
90277
90278 2001-11-27  Paul Eggert  <eggert@twinsun.com>
90279
90280         * lib/quotearg.h (quotearg_n, quotearg_n_style):
90281         First arg is int, not unsigned.
90282         * lib/quotearg.c (quotearg_n, quotearg_n_style): Likewise.
90283         (SIZE_MAX, UINT_MAX): New macros.
90284         (quotearg_n_options): Abort if N is negative.
90285         Avoid overflow check on hosts where size_t is 64 bits and int
90286         is 32 bits, as overflow is impossible there.
90287         Fix off-by-one typo that caused unnecessary reallocation.
90288
90289 2001-11-27  Jim Meyering  <meyering@lucent.com>
90290
90291         * lib/tempname.c: Merge with version from libc.
90292         * lib/regex.c: Likewise.
90293
90294         * lib/tempname.c: Include stdlib.h unconditionally.  On some old
90295         systems for which STDC_HEADERS is 0, it was not included, resulting in
90296         a warning about an integer-to-pointer conversion problem with getenv.
90297         Reported by Volker Borchert.
90298
90299 2001-11-26  Jim Meyering  <meyering@lucent.com>
90300
90301         * lib/gtod.h: Remove file.
90302         * lib/Makefile.am (libfetish_a_SOURCES): Remove gtod.h.
90303         * lib/gettimeofday.c: Don't include gtod.h.
90304         (GTOD_init): Remove function.
90305         (rpl_gettimeofday): Do its job here instead, rather than aborting.
90306         Suggestion from Volker Borchert.
90307
90308 2001-11-23  Jim Meyering  <meyering@lucent.com>
90309
90310         * lib/hash.h (struct hash_table): Don't define here.  Merely declare
90311         it.
90312         * lib/hash.c (struct hash_table): Define it here instead.
90313
90314 2001-11-22  Jim Meyering  <meyering@lucent.com>
90315
90316         * lib/hash.h: Bracket contents of file with #ifndef HASH_H_ ... #endif.
90317
90318 2001-11-20  Jim Meyering  <meyering@lucent.com>
90319
90320         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Update comment to reflect that
90321         SunOS 4.1.4 and Solaris 2.5.1 lose, too.
90322
90323 2001-11-19  Jim Meyering  <meyering@lucent.com>
90324
90325         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Don't bother with a temporary
90326         directory.  Use "conftestXXXXXX" as the template.
90327         Suggestion from Paul Eggert.
90328
90329         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Close each descriptor
90330         immediately, so the test doesn't mistakenly hit the max-open-files
90331         limit.
90332
90333 2001-11-18  Paul Eggert  <eggert@twinsun.com>
90334
90335         * lib/tempname.c (TMP_MAX): Remove; no longer needed.
90336         (TEMPORARIES): New macro.
90337         (__gen_tempname): Use TEMPORARIES rather than TMP_MAX.  This
90338         removes an artificial limitation (e.g. HP-UX 10.20, where
90339         TMP_MAX is 17576).
90340
90341 2001-11-18  Jim Meyering  <meyering@lucent.com>
90342
90343         * m4/prereq.m4 (jm_PREREQ_TEMPNAME): Check for declaration of getenv.
90344
90345 2001-11-18  Jim Meyering  <meyering@lucent.com>
90346
90347         * lib/tempname.c [!HAVE_DECL_GETENV]: Declare getenv to avoid warning
90348         on SunOS 4.
90349
90350         * lib/Makefile.am (Makefile): Depend on $(BUILT_SOURCES), so those
90351         files will be created before anything else.
90352
90353 2001-11-17  Paul Eggert  <eggert@twinsun.com>
90354
90355         * m4/jm-winsz1.m4 (jm_WINSIZE_IN_PTEM): Do not define
90356         WINSIZE_IN_PTEM if <termios.h> defines struct winsize.
90357
90358 2001-11-17  Jim Meyering  <meyering@lucent.com>
90359
90360         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): New file and macro.
90361         Prompted by a report from Bob Proulx.
90362
90363         * m4/jm-macros.m4 (jm_MACROS): Don't test for mkstemp here.
90364         Instead, require UTILS_FUNC_MKSTEMP.
90365
90366 2001-11-17  Jim Meyering  <meyering@lucent.com>
90367
90368         * m4/jm-macros.m4 (jm_MACROS): Remove code to set POW_LIBM.
90369         Now, that's done as part of AC_FUNC_STRTOD.
90370
90371 2001-11-17  Jim Meyering  <meyering@lucent.com>
90372
90373         * lib/modechange.c (mode_adjust): Fix error introduced on 1999-04-26
90374         that made e.g., `chmod a=,o=w,g=o F' cause F to be group readable
90375         rather than group writable.  Patch by Juan F. Codagnone.
90376
90377         * lib/readtokens.c: Remove explicit declarations of xmalloc and
90378         xrealloc, Instead, include "xalloc.h".
90379
90380         * lib/mountlist.c: Include unlocked-io.h after all system headers.
90381         Remove explicit declarations of xmalloc, xrealloc,
90382         and xstrdup.  Instead, include "xalloc.h".
90383
90384         * lib/argmatch.c, closeout.c, error.c, exclude.c: Include
90385         unlocked-io.h.
90386         * lib/fatal.c, getdate.y, getpass.c, getstr.c, getusershell.c:
90387         Likewise.
90388         * lib/mountlist.c, posixtm.c, readtokens.c, readutmp.c: Likewise.
90389
90390         * lib/regex.c, sha.c, version-etc.c, yesno.c: Likewise.
90391         Reported by Padraig Brady.
90392
90393         * lib/mkstemp.c: #undef mkstemp.
90394         Include config.h.
90395         (rpl_mkstemp): Rename from mkstemp.
90396         Protoize.
90397
90398 2001-11-16  Jim Meyering  <meyering@lucent.com>
90399
90400         * lib/physmem.c [HAVE_SYS_PSTAT_H]: Include <sys/pstat.h>.
90401         (physmem_total) [HAVE_PSTAT_GETSTATIC]: If sysconf couldn't be used to
90402         determine the amount of total physical memory, use pstat_getstatic.
90403         HPUX-11 doesn't define _SC_PHYS_PAGES.
90404         (physmem_available) [HAVE_PSTAT_GETSTATIC && HAVE_PSTAT_GETDYNAMIC]:
90405         If sysconf couldn't be used to determine the amount of available
90406         physical memory, use both pstat_getstatic and pstat_getdynamic.
90407         Based on a patch from Bob Proulx.
90408
90409 2001-11-10  Jim Meyering  <meyering@lucent.com>
90410
90411         * m4/prereq.m4 (jm_PREREQ_PHYSMEM): New function.
90412         (jm_PREREQ): Use it.
90413
90414 2001-11-09  Jim Meyering  <meyering@lucent.com>
90415
90416         * m4/jm-macros.m4: Require autoconf-2.52f.
90417         (AC_FUNC_ERROR_AT_LINE, AC_FUNC_OBSTACK, AC_FUNC_STRTOD):
90418         Use these AC_-prefixed names, not the AM_-prefixed ones.
90419
90420         * m4/afs.m4 (jm_AFS): Quote the body.  Patch by Akim Demaille.
90421
90422 2001-11-05  Jim Meyering  <meyering@lucent.com>
90423
90424         * lib/xstat.in (slash_aware_lstat): Correct a misleading comment.
90425
90426 2001-11-04  Jim Meyering  <meyering@lucent.com>
90427
90428         * m4/fpending.m4: Remove unused cruft that saved, set, and restored
90429         $DEFS.
90430
90431 2001-11-03  Jim Meyering  <meyering@lucent.com>
90432
90433         * m4/jm-glibc-io.m4n (jm_FUNC_GLIBC_UNLOCKED_IO): Quote first arg
90434         of AC_DEFUN.
90435
90436         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Rework so dirfd.c doesn't have to
90437         know the name of the variable in the macro definition.
90438
90439 2001-11-03  Jim Meyering  <meyering@lucent.com>
90440
90441         * lib/argmatch.h (ARGMATCH_TO_ARGUMENT): Remove casts of first two args
90442         in argmatch_to_argument call.
90443
90444         * lib/dirfd.c (dirfd): Reflect the fact that DIR_TO_FD now takes an
90445         argument.
90446
90447         * lib/hash.c (hash_clear): Fix a bug that could lead to an infloop or
90448         e.g., a fault due to an attempt to free a NULL pointer.
90449
90450 2001-11-01  Jim Meyering  <meyering@lucent.com>
90451
90452         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): New macro.
90453         * m4/jm-macros.m4 (jm_MACROS): Require UTILS_FUNC_DIRFD.
90454
90455 2001-11-01  Jim Meyering  <meyering@lucent.com>
90456
90457         * lib/dirfd.c, lib/dirfd.h: New files.
90458         * lib/Makefile.am (libfetish_a_SOURCES): Add dirfd.h.
90459
90460         * lib/hash.c (hash_print) [TESTING]: Clean up.
90461
90462 2001-10-22  Paul Eggert  <eggert@twinsun.com>
90463
90464         * lib/hard-locale.c (alloca): Define to __builtin_alloca if __GNUC__,
90465         to avoid a warning if -Wall.
90466
90467 2001-10-22  Jeff Bailey  <jbailey@outpost.dnsalias.org>
90468
90469         * README: New file
90470         * doc/*: Add COPYING, COPYING.LIB, COPYING.DOC, fdl.texi
90471         (per RMS's instructions, this is now the canonical source)
90472         * lgpl/, gpl/: New directories.
90473
90474 2001-10-21  Paul Eggert  <eggert@twinsun.com>
90475
90476         * lib/regex.c (uintptr_t): Remove macro and decl; it's config.h's job.
90477
90478 2001-10-21  Jim Meyering  <meyering@lucent.com>
90479
90480         * lib/obstack.c (_): Honor the setting of ENABLE_NLS.  Otherwise,
90481         this code would end up calling gettext even in packages built
90482         with --disable-nls.
90483         * lib/getopt.c (_): Likewise.
90484         * lib/regex.c (_): Likewise.
90485
90486 2001-10-20  Paul Eggert  <eggert@twinsun.com>
90487
90488         * m4/error.m4 (jm_PREREQ_ERROR):
90489         Do not invoke AC_CHECK_FUNCS with strerror_r, as
90490         AC_FUNC_STRERROR_R does that.
90491         Check for strerror declaration.
90492
90493         * m4/strerror_r.m4: Add copyright notice, as nontrivial m4 files
90494         are supposed to have them these days.
90495         (AC_FUNC_STRERROR_R): Always do char* test, so that it gets cached.
90496         Merge changes from latest Autoconf CVS.
90497         Rename ac_cv_func_strerror_r_works to ac_cv_func_strerror_r_char_p,
90498         and rename HAVE_WORKING_STRERROR_R to STRERROR_R_CHAR_P, since
90499         POSIX decided to standardize on the int flavor of strerror_r.
90500
90501 2001-10-20  Paul Eggert  <eggert@twinsun.com>
90502
90503         * lib/error.c (strerror_r): Do not declare unless !_LIBC.
90504         Do not check for HAVE_DECL_STRERROR_R missing unless STRERROR_R_CHAR_P.
90505         Use strerror_r that is only a macro, even if it is not a function.
90506         (strerror): Check for HAVE_DECL_STRERROR before declaring.
90507         (private_strerror): Use prototypes, not old-style function definition.
90508         (print_errno_message): New function.
90509         Support the POSIX 'int'-flavored strerror_r, as well as the traditional
90510         char*-flavored one.
90511         (error_tail, error, error_at_line): Use it.
90512
90513 2001-10-11  Jim Meyering  <meyering@lucent.com>
90514
90515         * lib/argmatch.c (argmatch_invalid): Use quotearg_n_style (0, ...
90516         and quote_n (1, ... to avoid clobbering a buffer.
90517
90518 2001-10-05  Jim Meyering  <meyering@lucent.com>
90519
90520         * lib/Makefile.am: (libfetish_a_SOURCES): Add hash-pjw.c and
90521         hash-pjw.h.
90522         * lib/hash-pjw.c: New file (factored out of fileutils' remove.c).
90523         * lib/hash-pjw.h: New file.
90524
90525 2001-09-30  Jim Meyering  <meyering@lucent.com>
90526
90527         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): See if
90528         `struct fsstat' has the `f_fstypename' member.
90529         Use that to define FS_TYPE, which is now used to make
90530         the getfsstat link test tighter.
90531
90532 2001-09-30  Jim Meyering  <meyering@lucent.com>
90533
90534         * lib/mountlist.c [MOUNTED_GETFSSTAT]:
90535         Include <sys/ucred.h>, for Apple Darwin.
90536         Include sys/mount.h and sys/fs_types.h only if available.
90537         (FS_TYPE): Define.
90538         (read_filesystem_list): Use FS_TYPE.
90539
90540 2001-09-29  Paul Eggert  <eggert@twinsun.com>
90541
90542         * lib/exclude.c (excluded_filename): 0 -> false, since it's
90543         a boolean context.
90544
90545 2001-09-29  Jim Meyering  <meyering@lucent.com>
90546
90547         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS)
90548         [one-argument getmntent function]): Include stdio.h before mntent.h.
90549         SunOS 4.1.x needs it for the declaration of `FILE'.
90550         Patch by Volker Borchert.
90551
90552         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS)
90553         Check for these headers: sys/param.h sys/ucred.h sys/mount.h
90554         sys/fs_types.h, and make the link-test for getfsstat guard #include
90555         directives with appropriate #if HAVE_*_H tests so that we can
90556         detect getfsstat on Apple Darwin1.3.7 systems.
90557         Reported by Nelson Beebe.
90558         Fix harmless typo in cache variable name: s/getsstat/getfsstat/.
90559
90560 2001-09-28  Paul Eggert  <eggert@twinsun.com>
90561
90562         Fix bug reported by Petter Reinholdtsen for HP-UX 10.20, which
90563         #defines strtoimax.  Also treat the other strto* functions
90564         like strtoimax.
90565
90566         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX):
90567         Check for strtoul and strtoumax,
90568         as those declarations are made even in the signed case.
90569         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX):
90570         Likewise, for strtol and strtoimax.
90571
90572 2001-09-28  Paul Eggert  <eggert@twinsun.com>
90573
90574         Fix bug reported by Petter Reinholdtsen for HP-UX 10.20, which
90575         #defines strtoimax.  Also treat the other strto* functions
90576         like strtoimax.
90577
90578         * lib/xstrtol.c (strtol): Do not declare if HAVE_DECL_STRTOL.
90579         (strtoul): Do not declare if HAVE_DECL_STRTOUL.
90580         (strtoimax, strtoumax): Do not declare if already defined as a macro.
90581
90582 2001-09-26  Jim Meyering  <meyering@lucent.com>
90583
90584         Most macros in unlocked-io.h had the wrong number of arguments.
90585         * lib/gen-uio: New script.
90586         (USE_UNLOCKED_IO): Define to 1 if not already defined.
90587         * lib/unlocked-io.hin: Remove file.
90588         * lib/Makefile.am (unlocked-io.h): Rewrite to use a separate script,
90589         rather than trying to embed it here.
90590         (EXTRA_DIST): Add gen-uio.  Remove unlocked-io.hin
90591         Reported by Padraig Brady.
90592
90593 2001-09-25  Volker Borchert  <bt@teknon.de>
90594
90595         * lib/gettimeofday.c (rpl_gettimeofday): Declare local variable
90596         `result'.
90597
90598 2001-09-24  Jim Meyering  <meyering@lucent.com>
90599
90600         * m4/gettext.m4: Use the version from gettext-0.10.40, not CVS.
90601
90602 2001-09-23  Jim Meyering  <meyering@lucent.com>
90603
90604         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Add a compile-test
90605         instead of the mere test for existence of mntent.h.  The latter
90606         would get a false-positive on AIX 3.4 systems.
90607         In the outer getmntent if-block, don't die if neither of the getmntent
90608         tests succeeds.  Instead, just fall through and continue with the
90609         remaining tests.
90610
90611 2001-09-23  Jim Meyering  <meyering@lucent.com>
90612
90613         * lib/mountlist.c: Remove useless parentheses in #if directives.
90614         (MOUNTED) [!defined MOUNTED]: Define to _PATH_MOUNTED, for when
90615         the deprecated MOUNTED symbol is no longer defined in mntent.h.
90616
90617 2001-09-22  Jim Meyering  <meyering@lucent.com>
90618
90619         * m4/gettext.m4: New file.  From gettext.
90620         * m4/lcmessage.m4: Sync with gettext -- this changes only comments.
90621         * m4/progtest.m4: Likewise
90622         * m4/isc-posix.m4: Decrement serial number to sync with gettext.
90623         * m4/glibc21.m4: Likewise.
90624
90625         * m4/libintl.m4: Remove.  No longer used.
90626
90627 2001-09-22  Jim Meyering  <meyering@lucent.com>
90628
90629         * lib/localcharset.c: Update from latest gettext.
90630         * lib/config.charset: Likewise.
90631
90632 2001-09-20  Jim Meyering  <meyering@lucent.com>
90633
90634         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX): Check for declaration of
90635         strtoimax.
90636         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Check for declaration of
90637         strtoumax.
90638
90639 2001-09-20  Jim Meyering  <meyering@lucent.com>
90640
90641         * lib/xstrtol.c (strtoimax): Guard declaration with
90642         `#if !HAVE_DECL_STRTOIMAX', rather than just `#ifndef strtoimax'.
90643         The latter fails because some systems (at least rs6000-ibm-aix4.3.3.0)
90644         have their own, conflicting declaration of strtoimax in sys/inttypes.h.
90645         (strtoumax): Likewise, for completeness (it wasn't necessary).
90646
90647 2001-09-17  Paul Eggert  <eggert@twinsun.com>
90648
90649         * lib/strtoimax.c (HAVE_LONG_LONG):
90650         Redefine to HAVE_UNSIGNED_LONG_LONG if unsigned.
90651         (strtoimax): Use sizeof (long), not sizeof strtol (ptr, endptr, base),
90652         to work around bug in IBM C compiler.
90653
90654 2001-09-17  Jim Meyering  <meyering@lucent.com>
90655
90656         * m4/chown.m4, fstypename.m4, getgroups.m4, gettimeofday.m4,
90657         * m4/jm-mktime.m4, lstat.m4, malloc.m4, memcmp.m4, mkdir-slash.m4,
90658         * m4/nanosleep.m4, putenv.m4, readdir.m4, realloc.m4, rename.m4,
90659         * m4/st_dm_mode.m4, stat.m4, strerror_r.m4, timespec.m4, utimbuf.m4,
90660         * m4/utimes.m4: Use AC_DEFINE rather than AC_DEFINE_UNQUOTED,
90661         whenever the right hand side need not be expanded by the shell.
90662
90663 2001-09-16  Paul Eggert  <eggert@twinsun.com>
90664
90665         * m4/fnmatch.m4 (jm_FUNC_FNMATCH): Remove test for GNU C
90666         library.  It's not correct, as some older glibcs are buggy.
90667         fnmatch wasn't fixed until glibc 2.2.
90668
90669         Use AC_DEFINE, not AC_DEFINE_UNQUOTED, as there's no
90670         special shell magic here.
90671
90672 2001-09-16  Jim Meyering  <meyering@lucent.com>
90673
90674         * m4/mkdir-slash.m4 (UTILS_FUNC_MKDIR_TRAILING_SLASH): New file/macro.
90675         * m4/jm-macros.m4: Require it.
90676
90677 2001-09-16  Jim Meyering  <meyering@lucent.com>
90678
90679         * lib/mkdir.c: New file.
90680
90681 2001-09-15  Jim Meyering  <meyering@lucent.com>
90682
90683         * m4/jm-macros.m4: Check for help2man.
90684
90685 2001-09-11  Jim Meyering  <meyering@lucent.com>
90686
90687         * m4/host-os.m4 (UTILS_HOST_OS): New file/macro.
90688         The body, by Paul Eggert, was moved here from configure.in.
90689         * m4/jm-macros.m4: Require UTILS_HOST_OS.
90690
90691 2001-09-04  Paul Eggert  <eggert@twinsun.com>
90692
90693         * m4/prereq.m4 (jm_PREREQ_XREADLINK): New macro.
90694         (jm_PREREQ): Use it.
90695
90696 2001-09-04  Paul Eggert  <eggert@twinsun.com>
90697
90698         * lib/xreadlink.c (xreadlink): Omit size_t* arg.  All uses changed.
90699         Use ssize_t, not int, to store result of readlink.
90700         Check for ssize_t overflow as well as size_t overflow,
90701         as POSIX says the result of readlink is implementation-defined
90702         when ssize_t overflows.
90703         Remove unnecessary cast to char*.
90704         Use free+malloc instead of realloc, as the storage doesn't need
90705         to be preserved and it's clearer and can be more efficient that way.
90706         (SIZE_MAX, SSIZE_MAX): New macros, if <limits.h> doesn't declare.
90707         * lib/xreadlink.h (xreadlink): Update prototype.
90708
90709 2001-09-04  Paul Eggert  <eggert@twinsun.com>
90710
90711         * lib/xgetcwd.c: Revert some of the previous change; intead,
90712         fix the HAVE_GETCWD_NULL code to behave more like the
90713         !HAVE_GETCWD_NULL code used to.
90714
90715         Include "xalloc.h".
90716         (xgetcwd): Do not return NULL when memory is exhausted; instead,
90717         invoke xalloc_die.
90718
90719 2001-09-03  Paul Eggert  <eggert@twinsun.com>
90720
90721         * m4/prereq.m4 (jm_PREREQ_XGETCWD): Check for limits.h and
90722         sys/param.h, as pathmax.h includes them.
90723
90724 2001-09-03  Paul Eggert  <eggert@twinsun.com>
90725
90726         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_XGETCWD.
90727         (jm_PREREQ_XGETCWD): New macro.
90728
90729         * m4/getcwd.m4: New file.
90730
90731 2001-09-03  Paul Eggert  <eggert@twinsun.com>
90732
90733         * lib/xgetcwd.c: Fix the !HAVE_GETCWD_NULL code to behave more
90734         like the HAVE_GETCWD_NULL code.
90735         Include pathmax.h if not HAVE_GETCWD.
90736         Do not include xalloc.h.
90737         (INITIAL_BUFFER_SIZE): New symbol.
90738         Do not use xmalloc / xrealloc, since the caller is responsible for
90739         handling errors.  Preserve errno around `free' during failure.
90740         Do not overrun buffer when using getwd.
90741
90742 2001-09-03  Paul Eggert  <eggert@twinsun.com>
90743
90744         * lib/xgetcwd.c (xgetcwd): Use HAVE_GETCWD_NULL, not (defined
90745         __GLIBC__ && __GLIBC__ >= 2), to decide whether to use
90746         getcwd (NULL, 0).
90747
90748 2001-09-03  Paul Eggert  <eggert@twinsun.com>
90749
90750         * lib/exclude.c (fnmatch_no_wildcards): Fix confusion between
90751         usage of FNM_CASEFOLD and FNM_LEADING_DIR.  The bug was
90752         spotted by Jim Meyering.
90753
90754 2001-09-03  Jim Meyering  <meyering@lucent.com>
90755
90756         * lib/xreadlink.c (xreadlink): Preserve errno around `free' during
90757         failure.
90758
90759 2001-09-02  Jim Meyering  <meyering@lucent.com>
90760
90761         * lib/error.c: Update from GNU libc.
90762
90763 2001-09-01  Jim Meyering  <meyering@lucent.com>
90764
90765         * m4/jm-macros.m4 (jm_MACROS): Check for canonicalize_file_name.
90766         Used by df.
90767
90768 2001-09-01  Jim Meyering  <meyering@lucent.com>
90769
90770         * lib/xreadlink.c: New file.
90771         * lib/xreadlink.h: New file.
90772         * lib/Makefile.am (libfetish_a_SOURCES): Add xreadlink.c and
90773         xreadlink.h.
90774
90775         * lib/regex.c (uintptr_t) [!_LIBC]: Define to private_uintptr_t, so it
90776         doesn't conflict with sparc Solaris 7's definition in
90777         /usr/include/sys/int_types.h.
90778
90779         * lib/exclude.c: Use `""', not `<>' to #include non-system header
90780         files.
90781         (fnmatch_no_wildcards): Rewrite not to use function names, strcasecmp
90782         and strncasecmp as r-values.  Unixware didn't have declarations.
90783
90784 2001-08-31  Paul Eggert  <eggert@twinsun.com>
90785
90786         * lib/xstrtol.h: Add copyright notice.
90787         (_DECLARE_XSTRTOL): Improve quality of diagnostic for
90788         LONGINT_INVALID_SUFFIX_CHAR.
90789
90790 2001-08-31  Paul Eggert  <eggert@twinsun.com>
90791
90792         * lib/xstrtol.c (strtoimax): New decl.
90793
90794 2001-08-31  Paul Eggert  <eggert@twinsun.com>
90795
90796         * lib/xgetcwd.c: Don't include pathmax.h.
90797         Include stdlib.h and unistd.h if available.
90798         Include xalloc.h.
90799         (xmalloc, xstrdup, free): Remove decls.
90800         (xgetcwd): Don't assume sizes fit in unsigned.
90801         Check for overflow when computing sizes.
90802         Simplify reallocation code.
90803
90804 2001-08-31  Paul Eggert  <eggert@twinsun.com>
90805
90806         * lib/savedir.c (savedir): Remove size parameter, as POSIX says that
90807         a directory's st_size can have an arbitrary value, so the old
90808         usage could waste an arbitrary amount of memory.  All uses
90809         changed.
90810         * lib/savedir.h: Update prototype.
90811
90812 2001-08-31  Paul Eggert  <eggert@twinsun.com>
90813
90814         * lib/Makefile.am (libfetish_a_SOURCES): Remove strtoxmax.c.
90815
90816         * lib/strtoimax.c: Renamed from strtoxmax.c, removing the
90817         old strtoimax.c.
90818
90819         Also, make the following further changes to make this file's
90820         configuration more similar to that of strtol.c:
90821         (UNSIGNED): Renamed from STRTOUXMAX_UNSIGNED.  All uses changed.
90822         (strtoumax, uintmax_t, strtoull, strtol): Remove.
90823         (intmax_t, strtoimax, strtol, strtoll): New macros, if UNSIGNED.
90824         (strtoimax): Renamed from strtoumax.  All uses of unsigned values
90825         changed to signed values.
90826
90827         And make the following changes as well:
90828         Fix copyright notice, as 1999 was missing.
90829         (verify): New macro.
90830         (strtoimax): Check sizes at compile-time, not run-time.
90831         Prefer strtol to strtoll if both work.
90832         (main): Remove; it was not that useful and was a pain to maintain.
90833
90834         * lib/strtoumax.c: Include strtoimax.c, not strtouxmax.c.
90835
90836 2001-08-31  Jim Meyering  <meyering@lucent.com>
90837
90838         * lib/xgetcwd.c (xgetcwd): Reorganize to avoid some duplication.
90839         Use an initial, malloc'd, buffer of length 128 rather than
90840         a statically allocated one of length 1024.
90841
90842 2001-08-30  Paul Eggert  <eggert@twinsun.com>
90843
90844         Simplify code, partly by assuming autoconf 2.52 semantics.
90845
90846         * m4/Makefile.am (EXTRA_DIST): Remove uintmax_t.m4.
90847
90848         * m4/inttypes.m4 (AC_PREREQ): Bump to 2.52.
90849         (jm_AC_HEADER_INTTYPES_H): Remove; now done by autoconf in 2.52.
90850         All uses removed.
90851         (jm_AC_TYPE_INTMAX_T, jm_AC_TYPE_UINTMAX_T):
90852         Move AC_REQUIRE to next-to-top level, to avoid confusion.
90853         Use 2.52's AC_CHECK_TYPE instead of merely looking for the header.
90854         * m4/prereq.m4 (jm_PREREQ_HUMAN): Don't require
90855         jm_AC_HEADER_INTTYPES_H.
90856         * m4/jm-macros.m4 (jm_MACROS): Likewise.
90857
90858         * m4/uintmax_t.m4: Remove, as it duplicates inttypes.m4.
90859
90860         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX):
90861         Quote first arg of AC_DEFUN.
90862         Require jm_AC_TYPE_UINTMAX_T and jm_AC_TYPE_UNSIGNED_LONG_LONG
90863         since they are needed to parse the include file even if we need
90864         only xstrtoimax.  Simplify logic behind the args to AC_REPLACE.
90865         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Likewise,
90866         but with opposite signedness.
90867
90868 2001-08-30  Paul Eggert  <eggert@twinsun.com>
90869
90870         Merge 'exclude' changes from tar 1.13.22.
90871         This fixes one or two unlikely storage allocation overflow bugs,
90872         but doesn't change user-visible behavior otherwise.
90873
90874 2001-08-30  Paul Eggert  <eggert@twinsun.com>
90875
90876         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_EXCLUDE.
90877         (jm_PREREQ_EXCLUDE): New macro.
90878
90879 2001-08-30  Paul Eggert  <eggert@twinsun.com>
90880
90881         * lib/quotearg.c: BSD/OS 4.1 wchar.h requires FILE and struct
90882         tm to be declared.
90883
90884 2001-08-30  Paul Eggert  <eggert@twinsun.com>
90885
90886         * lib/hash.c: Remove '2001' from copyright notice.
90887
90888 2001-08-30  Paul Eggert  <eggert@twinsun.com>
90889
90890         * lib/full-write.h: New file.
90891         * lib/Makefile.am (libfetish_a_SOURCES): Add full-write.h.
90892         * lib/full-write.c: Correct credits, as cccp.c no longer
90893         exists and anyway it was so heavily changed from the old cccp
90894         code as to be unrecognizable.  Include full-write.h.
90895         (full_write): Return size_t, with short writes meaning failure.
90896         All callers changed.  This fixes a bug with large buffers
90897         on 64-bit hosts.
90898         * lib/utime.c: Include full-write.h.
90899
90900 2001-08-30  Paul Eggert  <eggert@twinsun.com>
90901
90902         * lib/exclude.c (bool): Declare, perhaps by including stdbool.h.
90903         (<sys/types.h>): Include only if HAVE_SYS_TYPES_H.
90904         (<stdlib.h>, <string.h>, <strings.h>, <inttypes.h>, <stdint.h>):
90905         Include if available.
90906         (<xalloc.h>): Include
90907         (SIZE_MAX): Define if <stdint.h> or <inttypes.h> doesn't.
90908         (verify): New macro.  Use it to verify that EXCLUDE macros do not
90909         collide with FNM macros.
90910         (struct patopts): New struct.
90911         (struct exclude): Use it, as exclude patterns now come with options.
90912         (new_exclude): Support above changes.
90913         (new_exclude, add_exclude_file):
90914         Initial size must now be a power of two to simplify overflow checking.
90915         (free_exclude, fnmatch_no_wildcards): New function.
90916         (excluded_filename): No longer requires options arg, as the options
90917         are determined by add_exclude.  Now returns bool, not int.
90918         (excluded_filename, add_exclude):
90919         Add support for the fancy new exclusion options.
90920         (add_exclude, add_exclude_file): Now takes int options arg.
90921         Check for arithmetic overflow when computing sizes.
90922         (add_exclude_file): xrealloc might modify errno, so don't
90923         realloc until after errno might be used.
90924
90925         * lib/exclude.h (EXCLUDE_ANCHORED, EXCLUDE_INCLUDE,EXCLUDE_WILDCARDS):
90926         New macros.
90927         (free_exclude): New decl.
90928         (add_exclude, add_exclude_file): Now takes int options arg.
90929         (excluded_filename): No longer requires options arg, as the options
90930         are determined by add_exclude.  Now returns bool, not int.
90931
90932 2001-08-30  Paul Eggert  <eggert@twinsun.com>
90933
90934         * lib/alloca.c (alloca): Arg is of type size_t, not unsigned.
90935
90936 2001-08-27  Jim Meyering  <meyering@lucent.com>
90937
90938         * lib/Makefile.am (libfetish_a_SOURCES): Add strtoxmax.c
90939
90940         * lib/version-etc.c (N_): Remove definition.
90941         Revert most of last change.
90942         Instead, simply don't mark the `Copyright...' string for translation.
90943         Based on advice from Paul Eggert.
90944
90945         * lib/strtoxmax.c: Tweak comment.
90946
90947 2001-08-26  Jim Meyering  <meyering@lucent.com>
90948
90949         * m4/jm-macros.m4: Require jm_AC_PREREQ_XSTRTOIMAX.
90950
90951         * m4/xstrtoimax.m4: New file.
90952         * m4/xstrtoumax.m4: Add comments explaining why we
90953         AC_REPLACE_FUNCS(strtol).
90954
90955 2001-08-26  Jim Meyering  <meyering@lucent.com>
90956
90957         * lib/version-etc.c (version_etc_copyright_fmt): Replace literal year
90958         of copyright with `%s' so translators don't get an untranslated
90959         message in 2002.
90960         (COPYRIGHT_YEAR): Define.
90961         (version_etc): Use fprintf rather than fputs.
90962         Suggestion from Ulrich Drepper.
90963
90964         * lib/Makefile.am (libfetish_a_SOURCES): Add xstrtoimax.c.
90965
90966         * lib/strtoll.c: New file, from GNU libc.
90967         * lib/xstrtoimax.c: New file.
90968
90969         * lib/xstrtol.h: Add xstrtoimax.
90970         * lib/strtoumax.c: New file.  Simply include "strtoumax.c".
90971         * lib/strtoimax.c: New file.  Likewise, but first define
90972         STRTOUXMAX_SIGNED.
90973
90974         * lib/strtoumax.c: Factor to work both for unsigned and signed types,
90975         ...
90976         * lib/strtoxmax.c: ... then renamed to this.
90977
90978 2001-08-18  Paul Eggert  <eggert@twinsun.com>
90979
90980         * m4/inttypes.m4: Add AC_PREREQ(2.13).
90981         (jm_AC_HEADER_INTTYPES_H): Test for intmax_t, too.
90982         (jm_AC_TYPE_INTMAX_T): New macro.
90983         (jm_AC_TYPE_UINTMAX_T): Moved here from uintmax_t.m4.
90984
90985         * m4/longlong.m4 (jm_AC_TYPE_LONG_LONG): New macro.
90986
90987         * m4/longlong.m4: Renamed from ulonglong.m4.
90988         * m4/inttypes.m4: Renamed from inttypes_h.m4.
90989         * m4/uintmax_t.m4: Removed.
90990
90991 2001-08-13  Paul Eggert  <eggert@twinsun.com>
90992
90993         * lib/Makefile.am (unlocked-io.h): Do not append "_unlocked" twice.
90994         Port to Solaris 8, where 'sed' requires a space after the 'r'
90995         command, and where sh dislikes "$/".  Clean up the spacing a bit.
90996         Redirect output to $tmp just once.
90997
90998 2001-08-12  Paul Eggert  <eggert@sic.twinsun.com>
90999
91000         * lib/addext.c (<errno.h>): Include.
91001         (errno): Declare if not defined.
91002         (addext): Work correctly when pathconf returns -1 and leaves
91003         errno alone because there is no limit.  Also, work even if
91004         pathconf returns a value greater than SIZE_MAX.
91005
91006 2001-08-12  Jim Meyering  <meyering@lucent.com>
91007
91008         * m4/afs.m4, assert.m4, bison.m4, check-decl.m4, chown.m4, d-ino.m4,
91009         d-type.m4, dos.m4, error.m4, fnmatch.m4, fpending.m4, fstypename.m4,
91010         fsusage.m4, ftruncate.m4, getgroups.m4, glibc.m4, gnu-source.m4,
91011         group-member.m4, jm-glibc-io.m4, jm-macros.m4, jm-mktime.m4,
91012         jm-winsz1.m4, jm-winsz2.m4, lchown.m4, lib-check.m4, libintl.m4,
91013         link-follow.m4, ls-mntd-fs.m4, lstat.m4, malloc.m4, mbrtowc.m4,
91014         mbstate_t.m4, mbswidth.m4, memcmp.m4, nanosleep.m4, perl.m4,
91015         prereq.m4, putenv.m4, readdir.m4, realloc.m4, regex.m4, rename.m4,
91016         rmdir-errno.m4, search-libs.m4, st_dm_mode.m4, st_mtim.m4, stat.m4,
91017         strftime.m4, timespec.m4, unlink-busy.m4, uptime.m4, utimbuf.m4,
91018         utime.m4, utimes.m4, xstrtoumax.m4:
91019         Quote the first argument in each use of AC_DEFUN.
91020
91021 2001-08-12  Jim Meyering  <meyering@lucent.com>
91022
91023         * lib/xgetcwd.c (xgetcwd) [defined __GLIBC__ && __GLIBC__ >= 2]:
91024         Simply `return getcwd (NULL, 0);'.
91025         [! (defined __GLIBC__ && __GLIBC__ >= 2)]:
91026         Use 1300 as initial value for length, not PATH_MAX.
91027
91028         * lib/pathmax.h: Clean up cpp syntax.
91029
91030 2001-08-12  Jim Meyering  <meyering@lucent.com>
91031
91032         * lib/gettimeofday.c: New file.
91033         * lib/gtod.h: New file.
91034         * lib/Makefile.am (libfetish_a_SOURCES): Add gtod.h.
91035
91036 2001-08-05  Jim Meyering  <meyering@lucent.com>
91037
91038         * m4/jm-macros.m4: Require autoconf-2.52.
91039
91040 2001-08-04  Jim Meyering  <meyering@lucent.com>
91041
91042         * lib/error.h (__attribute__): Remove `|| __STRICT_ANSI__' from #if
91043         stmt, to get in sync with glibc.
91044
91045 2001-08-03  Paul Eggert  <eggert@twinsun.com>
91046
91047         The following changes are from gettext 0.10.39 as maintained by
91048         Bruno Haible.
91049
91050         * lib/mbswidth.h (MBSW_REJECT_UNPRINTABLE, MBSW_REJECT_INVALID):
91051         Renamed from MBSW_ACCEPT_UNPRINTABLE and MBSW_ACCEPT_INVALID
91052         with inverted sense.  All uses changed.
91053
91054         * lib/mbswidth.c: Don't include <limits.h>.
91055         Include <stdlib.h> and <string.h> unconditionally.
91056         (iswcntrl, mbsinit, ISCNTRL): New macros.
91057         (mbsnwidth): Use K&R style function declarations.
91058         Don't bother checking for MB_LEN_MAX == 1, since the compiler
91059         can optimize it when MB_CUR_MAX == 1.
91060         The width of control characters is zero, not 1.
91061
91062 2001-08-03  Paul Eggert  <eggert@twinsun.com>
91063
91064         The following changes are from gettext 0.10.39 as maintained by
91065         Bruno Haible, except that getline.m4 continues to use AC_LIBOBJ.
91066
91067         * m4/codeset.m4: Upgrade to serial AM1.
91068         (AM_LANGINFO_CODESET): Renamed from jm_LANGINFO_CODESET;
91069         all uses changed.  Quote first arg of AC_DEFUN.
91070         (am_cv_langinfo_codeset): Renamed from jm_cv_langinfo_codeset.
91071
91072         * m4/iconv.m4: Upgrade to serial AM2.
91073         (AM_ICONV): Renamed from jm_ICONV; all uses changed.
91074         Add --with-libconv-prefix.
91075         Quote first arg of AC_DEFUN.  Add description for ICONV_CONST.
91076         (am_cv_func_iconv): Renamed from jm_cv_func_iconv.
91077         (am_cv_lib_iconv): Renamed from jm_cv_lib_iconv.
91078         (am_cv_proto_iconv): Renamed from jm_cv_proto_iconv.
91079         * m4/jm-macros.m4 (jm_MACROS): Reflect s/jm_/AM_/ renamings.
91080
91081         * m4/c-bs-a.m4 (AC_C_BACKSLASH_A): Quote first arg of AC_DEFUN.
91082         * m4/getline.m4 (AM_FUNC_GETLINE): Likewise.
91083         * m4/glibc21.m4 (jm_GLIBC21): Likewise.
91084         * m4/inttypes_h.m4 (jm_AC_HEADER_INTTYPES_H): Likewise.
91085         * m4/isc-posix.m4 (AC_ISC_POSIX): Likewise.
91086         * m4/lcmessage.m4 (AM_LC_MESSAGES): Likewise.
91087         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
91088         * m4/uintmax_t.m4 (jm_AC_TYPE_UINTMAX_T): Likewise.
91089         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Likewise.
91090
91091         * m4/getline.m4 (AM_FUNC_GETLINE): Don't bother checking for
91092         string.h any more.
91093
91094         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): If not found, print "no",
91095         not the default value.
91096
91097         2001-06-25  Bruno Haible  <haible@clisp.cons.org>
91098         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Don't require AM_C_PROTOTYPES.
91099         Also check for mbsinit.  Needed for SCO 3.2v5.0.2.
91100         Also include <string.h>; this is where AIX 3.2.5 declares wcwidth.
91101         Also check for iswcntrl, used for wcwidth fallback.
91102         Use AC_TRY_COMPILE to emulate AC_CHECK_DECLS, for portability
91103         to Autoconf 2.13.
91104
91105 2001-08-03  Jim Meyering  <meyering@lucent.com>
91106
91107         * m4/mbrtowc.m4 (jm_FUNC_MBRTOWC): Use `#include', not `@%:@include',
91108         as it was in the original.  Reported by Paul Eggert.
91109
91110 2001-07-16  Jim Meyering  <meyering@lucent.com>
91111
91112         * m4/gettimeofday.m4: New file.
91113         Prompted by a report from Bernhard Baehr.
91114
91115 2001-07-15  Jim Meyering  <meyering@lucent.com>
91116
91117         * m4/Makefile.am.in (Makefile.am): Remove most of the unlocked-io.h
91118         stuff. Now it's in ../Makefile.cfg.
91119
91120 2001-07-15  Jim Meyering  <meyering@lucent.com>
91121
91122         * lib/Makefile.am (EXTRA_DIST): Add unlocked-io.hin.
91123         (BUILT_SOURCES): Add unlocked-io.h.
91124         (io_functions): Define.
91125         (unlocked-io.h): New rule.
91126         (DISTCLEANFILES): Add unlocked-io.h.
91127         (all-local): Depend on unlocked-io.h, to ensure it is created.
91128
91129         * lib/unlocked-io.hin: New file
91130
91131         * lib/regex.c: Update from glibc.
91132
91133 2001-07-05  Jim Meyering  <meyering@lucent.com>
91134
91135         * lib/Makefile.am (noinst_HEADERS): Remove definition, per new automake
91136         recommendation.
91137         (libfetish_a_SOURCES): Put all .h files here instead.
91138         Remove a thus-exposed (better checks in automake) duplicate and
91139         two unnecessary .h files.
91140
91141 2001-07-04  Jim Meyering  <meyering@lucent.com>
91142
91143         * m4/Makefile.am.in (glibc-io.struct): New target.  Rework the code
91144         that generates jm-glibc-io.m4 so that it doesn't trigger any make
91145         distcheck failure.
91146
91147 2001-07-02  Jim Meyering  <meyering@lucent.com>
91148
91149         The following changes were prompted by suggestions from Bruno Haible.
91150
91151         * m4/jm-glibc-io.m4n: New file, the template from which jm-glibc-io.m4
91152         is now generated.
91153         * m4/Makefile.am.in (Makefile.am): Include jm-glibc-io.m4n in emitted
91154         definition of EXTRA_DIST.
91155         (Makefile.am): Emit the dependency, `all-local: jm-glibc-io.m4' to
91156         ensure that the generated file is created/updated whenever the list
91157         of $(unlocked_functions) is changed.
91158         (jm-glibc-io.m4): New rule.
91159         (unlocked-io.h): New rule -- currently unused.
91160
91161 2001-06-24  Jim Meyering  <meyering@lucent.com>
91162
91163         * m4/regex.m4 (jm_INCLUDED_REGEX): Use a quadrigraph to represent an
91164         unmatched right bracket, rather than kludging it with an extra,
91165         falsely-matching quote in a comment.  Patch by Akim Demaille.
91166
91167 2001-06-11  Jim Meyering  <meyering@lucent.com>
91168
91169         * lib/regex.c: Update from GNU libc.
91170
91171 2001-05-27  Jim Meyering  <meyering@lucent.com>
91172
91173         * m4/prereq.m4 (jm_PREREQ_READUTMP): Check for ut_type in struct utmpx.
91174         Check for ut_type in struct utmp.
91175
91176 2001-05-27  Jim Meyering  <meyering@lucent.com>
91177
91178         * lib/readutmp.h (UT_TYPE): Define.
91179
91180 2001-05-24  Jim Meyering  <meyering@lucent.com>
91181
91182         * lib/argmatch.c: Include "quote.h".
91183         (argmatch_invalid): Remove explicit `' quotes.  Instead, use the
91184         quote function.  Reported by Göran Uddeborg.
91185
91186 2001-05-22  Jim Meyering  <meyering@lucent.com>
91187
91188         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't use AC_LIBOBJ(strftime),
91189         now that we use the package-supplied version unconditionally.
91190         (jm_FUNC_STRFTIME): Don't replace strftime, for the same reason.
91191
91192 2001-05-21  Jim Meyering  <meyering@lucent.com>
91193
91194         * m4/regex.m4: Change a couple backticks to single quotes to avoid
91195         shell syntax errors.
91196
91197 2001-05-21  Alexandre Duret-Lutz  <duret_g@epita.fr>
91198
91199         * m4/dos.m4 (jm_AC_DOS): Check for _WIN32, __WIN32__, and __MSDOS__.
91200
91201 2001-05-20  Paul Eggert  <eggert@twinsun.com>
91202
91203         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME):
91204         Don't bother to check library strftime, since
91205         we'll be using our own my_strftime function anyway.
91206         Define my_strftime instead of strftime.
91207
91208 2001-05-20  Alexandre Duret-Lutz  <duret_g@epita.fr>
91209
91210         * lib/dirname.c (dir_name): Compute append_dot using path, not newpath
91211         which is not yet declared.
91212
91213 2001-05-15  Jim Meyering  <meyering@lucent.com>
91214
91215         * m4/regex.m4: Use proper quoting so brackets appear in the test
91216         program.
91217         Reported by, and with help from, Bruno Haible.
91218
91219 2001-05-13  Jim Meyering  <meyering@lucent.com>
91220
91221         * m4/jm-macros.m4 (major_t, minor_t): Define to unsigned int if
91222         undefined.
91223
91224 2001-05-11  Paul Eggert  <eggert@twinsun.com>
91225
91226         dirname code cleanup.  base_name now behaves more compatibly
91227         with POSIX basename when given file names that have trailing
91228         slashes, and similarly for dir_name.  Add new primitives
91229         base_len and dir_len.  Put the directory-name-related decls
91230         into dirname.h.
91231
91232         * lib/addext.c (ISSLASH, base_name): Remove; now in dirname.h.
91233         * lib/backupfile.c (base_name): Likewise.
91234         * lib/basename.c (FILESYSTEM_PREFIX_LEN, PARAMS, ISSLASH): Likewise.
91235         * lib/dirname.c (FILESYSTEM_PREFIX_LEN, ISSLASH): Likewise.
91236         * lib/makepath.c (strip_trailing_slashes): Likewise.
91237         * lib/path-concat.c (DIRECTORY_SEPARATOR, FILESYSTEM_PREFIX_LEN,
91238         ISSLASH): Likewise.
91239         * lib/rename.c (strip_trailing_slashes): Likewise.
91240         * lib/same.c (base_name): Likewise.
91241         * lib/stripslash.c (ISSLASH): Likewise.
91242
91243         * lib/addext.c: Include <dirname.h> after size_t is defined.
91244         * lib/backupfile.c: Likewise.
91245
91246         * lib/addext.c (addext): Use base_len to trim redundant
91247         trailing slashes instead of doing it ourselves.
91248         But do not trim the last slash if it is not redundant.
91249
91250         * lib/backupfile.c (find_backup_file_name,
91251         max_backup_version): Use base_len instead of rolling it ourselves.
91252         Handle the case of "" and (on DOS) "C:" correctly.
91253
91254         * lib/basename.c: Do not include <stdio.h>, <assert.h>; no longer
91255         needed. Include <string.h>, <dirname.h>.
91256         (base_name): Allow file names ending in slashes, other than names
91257         that are all slashes.  In this case, return the basename followed
91258         by the slashes.  This is more general, and can be used in places
91259         where the original base_name purposely had an assertion failure.
91260         (base_len): New function.
91261
91262         * lib/dirname.c: Include <string.h> instead of <stdlib.h>.
91263         Do not include <assert.h>; no longer needed.
91264         Include xalloc.h.
91265         (memrchr): Remove decl.
91266         (dir_name_r): Remove.
91267         (dir_len): Renamed from dirlen.  All callers changed.
91268         Rewrite in terms of base_name, for simplicity and consistency.
91269         (dir_name): Never return NULL.  All callers changed.
91270         Do not include <stdlib.h> in test program; no longer needed.
91271         return 0; is fine for test program.
91272
91273         * lib/dirname.h (DIRECTORY_SEPARATOR, ISSLASH, FILESYSTEM_PREFIX_LEN):
91274         New macros.
91275         (base_name, base_len, dir_len, strip_trailing_slashes): New decls.
91276
91277         * lib/path-concat.c (path_concat): Use base_len to compute
91278         base length, not strlen; this means we cannot rely on memcpy
91279         to null-terminate.
91280
91281         * lib/same.c (STREQ): Remove.
91282         (same_name): Handle the case where the basename ends in trailing '/'.
91283
91284         * lib/stripslash.c (strip_trailing_slashes): Return nonzero if
91285         a slash was stripped.  Do not strip the last slash after a
91286         file system prefix.
91287
91288 2001-05-11  Paul Eggert  <eggert@twinsun.com>
91289
91290         * lib/Makefile.am (libfetish_a_SOURCES):
91291         Add strftime.c, since we now compile it on all hosts.
91292
91293         * lib/strftime.c (my_strftime):
91294         Define to nstrftime if emacs, but only if my_strftime is not defined.
91295         (extra_args, extra_args_spec, extra_args_spec_iso): Rename from
91296         ut_argument, ut_argument_spec, ut_argument_spec_iso, respectively.
91297         Add one more extra argument: a nanoseconds value.
91298         All uses changed.
91299         (ns): New macro.
91300         (my_strftime function): Add %N format.
91301         (emacs_strftimeu): Renamed from emacs_strftime,
91302         with extra ut argument.
91303
91304 2001-05-09  Paul Eggert  <eggert@twinsun.com>
91305
91306         * m4/jm-macros.m4 (jm_MACROS): Do not check for fseeko; no longer used.
91307
91308 2001-04-21  Jim Meyering  <meyering@lucent.com>
91309
91310         * m4/rmdir-errno.m4: Write to a new file, so that a restrictive umask
91311         doesn't interfere.
91312
91313 2001-04-21  Alexandre Duret-Lutz  <duret_g@epita.fr>
91314
91315         * m4/ftruncate.m4: Check for chsize.
91316         Link with ftruncate.o unconditionally if ftruncate is missing.
91317         This was required when cross-compiling to i586-mingw32msvc.
91318
91319 2001-04-08  Jim Meyering  <meyering@lucent.com>
91320
91321         * lib/getdate.y (get_date): Set tm_isdst to -1 to ensure that it is
91322         recomputed; that's necessary when the offset spans a DST transition.
91323         Patch by David J. MacKenzie.  Reported by Hon-Yin Kok.
91324
91325 2001-04-02  Jim Meyering  <meyering@lucent.com>
91326
91327         * lib/regex.h, regex.c: Update from GNU libc.
91328
91329 2001-03-24  Jim Meyering  <meyering@lucent.com>
91330
91331         * m4/jm-macros.m4: Require autoconf-2.49d.
91332
91333 2001-03-20  Bruno Haible  <haible@clisp.cons.org>
91334
91335         * m4/iconv.m4 (jm_ICONV): Recommend GNU libiconv.
91336
91337 2001-03-19  Paul Eggert  <eggert@twinsun.com>
91338
91339         * lib/version-etc.c (version_etc_copyright): Update to 2001.
91340
91341 2001-03-17  Jim Meyering  <meyering@lucent.com>
91342
91343         * m4/memcmp.m4 (jm_AC_FUNC_MEMCMP): Remove my copy of AC_FUNC_MEMCMP,
91344         now that the version in autoconf is equivalent.
91345         (jm_FUNC_MEMCMP): Adjust to use AC_FUNC_MEMCMP.
91346
91347         * m4/error.m4 (jm_PREREQ_ERROR): Invoke AC_FUNC_STRERROR_R.
91348         Suggestion from Akim Demaille.
91349
91350         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_TEMPNAME.
91351         (jm_PREREQ_TEMPNAME): New function.
91352
91353 2001-03-16  Paul Eggert  <eggert@twinsun.com>
91354
91355         * lib/tempname.c (uint64_t): Define to uintmax_t if
91356         not defined, and if UINT64_MAX is not defined.
91357         Required at least for Vax Ultrix4.3, which doesn't define uint64_t.
91358         Reported by John David Anglin.
91359
91360 2001-03-15  Bruno Haible  <haible@clisp.cons.org>
91361
91362         * lib/localcharset.c (locale_charset): Allow wildcard syntax. Also
91363         resolve alias if codeset is empty.
91364         * lib/config.charset (BeOS): Use wildcard syntax.
91365
91366 2001-03-13  Jim Meyering  <meyering@lucent.com>
91367
91368         * lib/path-concat.c (path_concat)
91369         [FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX]: Don't insert a backslash when
91370         concatenating e.g., `C:' and `foo'.
91371         From Bruno Haible.
91372
91373 2001-03-06  Bruno Haible  <haible@clisp.cons.org>
91374
91375         * lib/localcharset.c (locale_charset): Don't use
91376         setlocale(LC_CTYPE,NULL). Don't return NULL.
91377         * lib/unicodeio.c (print_unicode_char): Simplify accordingly.
91378
91379 2001-03-06  Bruno Haible  <haible@clisp.cons.org>
91380
91381         * lib/config.charset: Update for FreeBSD 4.2 and OSF/1 5.1. Add
91382         support for DOS/DJGPP.
91383
91384 2001-03-01  Paul Eggert  <eggert@twinsun.com>
91385
91386         * m4/jm-macros.m4 (jm_MACROS): Use mkstemp replacement if the system
91387         lacks mkstemp.  Compile our own tempname.c if we compile our own
91388         mkstemp.c, as mkstemp relies on tempname.
91389
91390 2001-03-01  Jim Meyering  <meyering@lucent.com>
91391
91392         * m4/dos.m4 (jm_AC_DOS): Remove extra backslashes, now that
91393         AH_VERBATIM really does output its argument verbatim.
91394
91395 2001-02-28  Paul Eggert  <eggert@twinsun.com>
91396
91397         * lib/Makefile.am (libfetish_a_SOURCES):
91398         Add dup-safer.c, fopen-safer.c.
91399         (noinst_HEADERS): Add stdio-safer.h, unistd-safer.h.
91400
91401         * lib/dup-safer.c, lib/fopen-safer.c, lib/stdio-safer.h:
91402         * lib/unistd-safer.h: New files.
91403
91404 2001-02-25  Paul Eggert  <eggert@twinsun.com>
91405
91406         The mkstemp replacement is taken from glibc 2.2.2, with some
91407         portability fixes for use outside glibc, as follows:
91408
91409         * lib/tempname.c (struct_stat64): New macro.
91410         (direxists, __gen_tempname): Use it.
91411         This avoids a portability problem with Solaris 8.
91412
91413         * lib/tempname.c (<config.h>): Include if HAVE_CONFIG_H.
91414         (<stddef.h>, <stdint.h>, <string.h>):
91415         Include only if STDC_HEADERS || _LIBC.
91416         (<fcntl.h>): Include only if HAVE_FCNTL_H || _LIBC.
91417         (<unistd.h>): Include only if HAVE_UNISTD_H || _LIBC.
91418         (<sys/time.h>): Include only if HAVE_SYS_TIME_H || _LIBC.
91419         (__set_errno): Define this macro if <errno.h> doesn't.
91420         (P_tmpdir, TMP_MAX, __GT_FILE, __GT_BIGFILE, __GT_DIR, __GT_NOCREATE):
91421         Define these macros if <stdio.h> doesn't.
91422         (S_ISDIR, S_IRUSR, S_IWUSR, S_IXUSR):
91423         Define these macros if <sys/stat.h>
91424         doesn't.  Ignore <sys/stat.h> S_ISDIR if STAT_MACROS_BROKEN.
91425         (stat64, __getpid, __gettimeofday, __mkdir, __open, __open64, lxstat64,
91426         __xstat64): Define if not _LIBC.
91427         (__secure_getenv): Define if ! (HAVE___SECURE_GETENV || _LIBC).
91428         (__gen_tempname): Invoke gettimeofday only if
91429         HAVE_GETTIMEOFDAY || _LIBC;
91430         otherwise, fall back on plain "time".
91431         Use macros like S_IRUSR | S_IWUSR rather than octal values like 0600.
91432
91433         * lib/mkstemp.c (__GT_FILE): Define to zero if not defined.
91434
91435         * lib/mkstemp.c, lib/tempname.c: New files, taken from glibc 2.2.2.
91436
91437 2001-02-18  Paul Eggert  <eggert@twinsun.com>
91438
91439         * m4/jm-macros.m4 (jm_CHECK_ALL_HEADERS): Check for sys/resource.h.
91440
91441 2001-02-17  Paul Eggert  <eggert@twinsun.com>
91442
91443         * m4/mbrtowc.m4: New file, defining jm_FUNC_MBRTOWC.
91444         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH):
91445         Use jm_FUNC_MBRTOWC, not AC_CHECK_FUNCS(mbrtowc).
91446         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Likewise.
91447
91448 2001-02-17  Paul Eggert  <eggert@twinsun.com>
91449
91450         * lib/mbswidth.c, quotearg.c (mbrtowc, mbsinit):
91451         Remove workaround macros for hosts that have mbrtowc but not
91452         mbstate_t, as we now insist on proper declarations for both
91453         before using mbrtowc.
91454
91455 2001-02-17  Jim Meyering  <meyering@lucent.com>
91456
91457         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Don't check for
91458         getmntent via AC_CHECK_FUNCS, since that would get a `no' and disrupt
91459         further attempts by AC_FUNC_GETMNTENT to check with e.g., -lgen on
91460         UnixWare 7.1.1.
91461
91462         * m4/mbrtowc.m4 (jm_FUNC_MBRTOWC): Adapt to use AC_CACHE_CHECK etc.,
91463         rather than AC_CACHE_VAL.
91464
91465 2001-02-17  Jim Meyering  <meyering@lucent.com>
91466
91467         * lib/strtoul.c: Sync from GNU libc.  Use double quotes, not <...>
91468         around included file name.
91469
91470         * lib/strnlen.c (__strnlen): Merge in a change from GNU libc.
91471
91472         * lib/strftime.c: Update from GNU libc (the only changes were to
91473         comments).
91474
91475 2001-02-17  Jim Meyering  <meyering@lucent.com>
91476
91477         * lib/regex.c: Update from libc.
91478
91479 2001-02-17  Bruno Haible  <haible@clisp.cons.org>
91480
91481         * lib/mbswidth.h (mbswidth): Also define as macro, to avoid prototype
91482         clash.
91483
91484 2001-02-16  Paul Eggert  <eggert@twinsun.com>
91485
91486         * lib/alloca.c (malloc): Undef before defining, since stdlib.h
91487         may have defined it.  Needed for Encore Umax-3.0.9.16b systems.
91488         Reported by Mark Hounschell via Paul Eggert.
91489
91490 2001-02-07  Jim Meyering  <meyering@lucent.com>
91491
91492         * m4/regex.m4 (jm_INCLUDED_REGEX): Add a test for the latest bug.
91493
91494 2001-02-05  Jim Meyering  <meyering@lucent.com>
91495
91496         * m4/jm-macros.m4: Require autoconf-2.14d (not yet released), because
91497         it includes the patch required for `large file' support with at least
91498         HP-UX's 10.20 /bin/cc.
91499
91500 2001-02-03  Jim Meyering  <meyering@lucent.com>
91501
91502         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Restore prior use of
91503         AS_IF, now that it works once again (mysteriously).
91504         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Likewise.
91505
91506 2001-01-30  Jim Meyering  <meyering@lucent.com>
91507
91508         Don't use filenames that are 8.3-equivalent to "conftest" on DOS.
91509         * m4/chown.m4: Rename conftestchown to conftest.chown.
91510         * m4/rename.m4: s/conftestdir/conftest.d1/ and
91511         s/conftestdir2/conftest.d2/.
91512         * m4/utimes.m4: s/conftestdata/conftest.data/
91513         Inspired by Pavel Roskin's change in autoconf.
91514
91515 2001-01-30  Bruno Haible  <haible@clisp.cons.org>
91516
91517         * lib/config.charset: Update for FreeBSD 4.2.
91518
91519 2001-01-27  Jim Meyering  <meyering@lucent.com>
91520
91521         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Open-code what was
91522         a use of AS_IF.
91523         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Likewise.
91524
91525 2001-01-26  Jim Meyering  <meyering@lucent.com>
91526
91527         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Check for stddef.h, now that
91528         quotearg.c includes it.
91529
91530 2001-01-26  Jim Meyering  <meyering@lucent.com>
91531
91532         * lib/quotearg.c: Include stddef.h.
91533         * lib/quote.c: Include stddef.h.
91534         Reported by Axel Kittenberger.
91535
91536         * lib/xmalloc.c [HAVE_DONE_WORKING_MALLOC_CHECK]: Enclose error-evoking
91537         line in double quotes so that it evokes a better diagnostic.
91538         [HAVE_DONE_WORKING_REALLOC_CHECK]: Likewise.
91539         Reported by Axel Kittenberger.
91540
91541 2001-01-24  Stefan Monnier  <monnier@cs.yale.edu>
91542
91543         * regex.c (mutually_exclusive_p): Don't blindly handle `charset_not'
91544         as if it was a `charset'.
91545
91546 2001-01-21  Bruno Haible  <haible@clisp.cons.org>
91547
91548         * m4/iconv.m4 (jm_ICONV): Also check whether the iconv declaration
91549         has const.
91550
91551 2001-01-21  Bruno Haible  <haible@clisp.cons.org>
91552
91553         * lib/unicodeio.c (print_unicode_char): Cast the second iconv() arg,
91554         to avoid a warning.  Add back 'const' to inptr.
91555
91556 2001-01-20  Jim Meyering  <meyering@lucent.com>
91557
91558         Be sure that headers are checked before used in code compiled
91559         for the type checks.
91560         * m4/jm-macros.m4 (jm_MACROS): Remove all header checks.
91561         In place of that, invoke jm_CHECK_ALL_TYPES.
91562         (jm_CHECK_ALL_HEADERS): New functions with the above checks.
91563         (jm_CHECK_ALL_TYPES): Require jm_CHECK_ALL_HEADERS.
91564         Alan Iwi reported a build failure on an f300-fujitsu-uxpv4.1_ES;
91565         The check for ssize_t was mistakenly run before the test for unistd.h.
91566
91567         The configure-time check for stdbool.h was missing.
91568         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_HASH.
91569         (jm_PREREQ_HASH): New function.
91570
91571 2001-01-17  Jim Meyering  <meyering@lucent.com>
91572
91573         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Use AS_IF, not AS_IFELSE,
91574         for autoconf-2.49c.
91575         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Likewise.
91576
91577 2001-01-16  Jim Meyering  <meyering@lucent.com>
91578
91579         * lib/basename.c: Include <stdio.h>, needed by assert on SunOS 4.
91580         From Bruno Haible.
91581
91582 2001-01-14  Jim Meyering  <meyering@lucent.com>
91583
91584         * m4/rename.m4: Use temporary directories named conftestdir{,2}, not
91585         foo and bar.  Create conftestdir/ in the script, not in the C code.
91586         Remove directories in the script, not in the C code.
91587         Remove conftestdir{,2} before trying to create the directory.
91588         Make the entire configure script fail if the mkdir fails.
91589
91590 2001-01-14  Jim Meyering  <meyering@lucent.com>
91591
91592         * lib/rename.c: New file.  From Volker Borchert.
91593         Include stdlib.h, string.h or strings.h, and xalloc.h.
91594         Use strip_trailing_slashes rather than open-coding it.
91595
91596 2001-01-03  Paul Eggert  <eggert@twinsun.com>
91597
91598         * lib/strftime.c: Sync with glibc time/strftime.c 1.81.
91599
91600 2001-01-03  Jim Meyering  <meyering@lucent.com>
91601
91602         * lib/unicodeio.c (print_unicode_char): Remove `const' from declaration
91603         of local `inptr' to avoid warning with some system declarations of
91604         iconv.
91605
91606 2001-01-02  Volker Borchert  <bt@teknon.de>
91607
91608         * m4/rename.m4: New file.
91609         * m4/jm-macros.m4 (jm_MACROS): Require vb_FUNC_RENAME.
91610
91611 2001-01-01  Jim Meyering  <meyering@lucent.com>
91612
91613         * m4/prereq.m4 (jm_PREREQ_READUTMP): Include utmp.h (if available),
91614         even on systems with utmpx.h.  It's necessary for the declaration of
91615         utmp's ut_user member.  Reported by Andreas Jaeger.
91616
91617         * m4/check-decl.m4 (jm_CHECK_DECLS): Include grp.h and pwd.h if
91618         available. They are required for the declarations of getgrgid and
91619         getpwuid resp.
91620         (_jm_DECL_HEADERS): Check for grp.h and pwd.h.
91621         Reported by Andreas Jaeger.
91622
91623 2001-01-01  Alexandre Duret-Lutz  <duret_g@epita.fr>
91624
91625         * m4/libintl.m4 (AM_GNU_GETTEXT): Define MKINSTALLDIRS by
91626         expanding the value of $ac_aux_dir, as in AM_MISSING_HAS_RUN,
91627         so `make install' also works in VPATH builds.
91628
91629 2000-12-31  Alexandre Duret-Lutz  <duret_g@epita.fr>
91630
91631         * m4/libintl.m4 (AM_WITH_NLS): When using AC_CONFIG_AUX_DIR,
91632         prepend $(top_srcdir) to the value of MKINSTALLDIRS so that it
91633         can be used in subdirectories.
91634
91635 2000-12-29  Paul Eggert  <eggert@twinsun.com>
91636
91637         * lib/modechange.c: Do not assume that mode_t uses the
91638         traditional octal encoding.  E.g. "chmod 1 FOO" should set
91639         the other-execute bit of FOO even if S_IXOTH != 1.
91640
91641         (SUID, SGID, SVTX, RUSR, WUSR, XUSR, RGRP, WGRP, XGRP, ROTH,
91642         WOTH, XOTH, ALLM): New macros.
91643         (S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IWUSR, S_IXUSR,
91644          S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH):
91645         Use them.
91646         (S_ISGID): Fix typo; it was defaulting to the same value as S_ISUID.
91647         (S_IRWXU, S_IRWXG, S_IRWXO): Specify defaults in terms of the above.
91648         (mode_compile):
91649         No need to use uintmax_t; unsigned long is long enough.
91650         Don't bother to get suffix since we don't use it.
91651
91652 2000-12-26  Jim Meyering  <meyering@lucent.com>
91653
91654         * m4/dos.m4 (jm_AC_DOS): Rewrite (though it's still a stub) to work
91655         better with autoheader.
91656
91657 2000-12-24  Jim Meyering  <meyering@lucent.com>
91658
91659         * lib/hash.c (is_prime): Return explicit boolean values.
91660         (hash_get_first): Return NULL to appease Irix5.6's 89.
91661         Reported by Nelson Beebe.
91662
91663 2000-12-19  Bruno Haible  <haible@clisp.cons.org>
91664
91665         * lib/localcharset.c (locale_charset): Add support for Win32.
91666
91667 2000-12-18  Paul Eggert  <eggert@twinsun.com>
91668
91669         * lib/physmem.h, lib/physmem.c: New files.
91670
91671         * lib/Makefile.am (libfetish_a_SOURCES): Add physmem.c.
91672         (noinst_HEADERS): Add physmem.h.
91673
91674         * lib/xstrtol.c (__xstrtol): Add undocumented suffixes 'g' and
91675         't' for compatibility with Solaris 8 sort.
91676
91677 2000-12-18  Bruno Haible  <haible@clisp.cons.org>
91678
91679         * lib/config.charset: Add support for BeOS.
91680
91681 2000-12-17  Jim Meyering  <meyering@lucent.com>
91682
91683         * m4/dos.m4 (jm_AC_DOS): New file and macro.
91684         * m4/jm-macros.m4 (jm_MACROS): Require jm_AC_DOS.
91685
91686 2000-12-16  Jim Meyering  <meyering@lucent.com>
91687
91688         This bug had a serious impact on chown: `chown N:M FILE' (for integer
91689         N and M) would have treated it like `chown N:N FILE'.
91690
91691         * lib/userspec.c (parse_user_spec): Fix typo: s/u/g/.
91692
91693 2000-12-16  Jim Meyering  <meyering@lucent.com>
91694
91695         * lib/getusershell.c [!SHELLS_FILE && __DJGPP__]: Define
91696         SHELLS_FILE to a file name that's useful on djgpp systems.
91697         Include stdlib.h.
91698         (ADDITIONAL_DEFAULT_SHELLS): Define.
91699         (default_shells): Prepend ADDITIONAL_DEFAULT_SHELLS.
91700         Based mostly on a patch from Prashant TR.
91701
91702 2000-12-16  Bruno Haible  <haible@clisp.cons.org>
91703
91704         * lib/config.charset: Add ISO-8859-3, BIG5HKSCS, GB18030, JOHAB,
91705         VISCII, CP874, CP949, CP950, CP1250, CP1253, CP1254, CP1255, CP1256,
91706         CP1257 to the list of canonical encodings. Rename EUC-CN to GB2312.
91707
91708 2000-12-08  Andreas Schwab  <schwab@suse.de>
91709
91710         * lib/mbswidth.c (mbsnwidth): Don't loop endlessly when called with an
91711         invalid mulitbyte sequence and with the MBSW_ACCEPT_INVALID flag set.
91712
91713 2000-12-07  Jim Meyering  <meyering@lucent.com>
91714
91715         * lib/stripslash.c (ISSLASH): Define.
91716         (strip_trailing_slashes): Use ISSLASH rather than comparing against
91717         `/'.
91718         From Prashant TR.
91719
91720         * lib/dirname.c (FILESYSTEM_PREFIX_LEN): Define.
91721         (dir_name_r): Declare this function as static.
91722         [BACKSLASH_IS_PATH_SEPARATOR]: Fix a bug that'd
91723         manifest itself on a name containing a mix of slashes and
91724         backslashes.
91725         Make this function work with names starting with a DOS-style
91726         drive letter and colon prefix.
91727         (dir_name): Append `.' if necessary.
91728         Based mostly on patches from Prashant TR and Eli Zaretskii.
91729
91730         * lib/dirname.h (dir_name_r): Remove prototype.
91731
91732 2000-12-06  Paul Eggert  <eggert@twinsun.com>
91733
91734         * m4/off_t-format.m4: Remove this file.
91735         * m4/jm-macros.m4 (jm_MACROS): Remove jm_SYS_OFF_T_PRINTF_FORMAT.
91736
91737 2000-12-06  Jim Meyering  <meyering@lucent.com>
91738
91739         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): If we need the
91740         replacement strtoull, we may well need the replacement strtoul, too.
91741         Check for declarations of strtoul and strtoull.
91742         Check for strtol.  Mainly as a cue to cause automake to include
91743         strtol.c -- that file is included by each of strtoul.c and strtoull.c.
91744         Check for limits.h -- strtol.c needs it.
91745
91746 2000-12-05  Jim Meyering  <meyering@lucent.com>
91747
91748         * lib/dirname.c (dir_name_r): Add `const' in a few local declarations.
91749
91750 2000-12-04  Jim Meyering  <meyering@lucent.com>
91751
91752         * lib/path-concat.c: [!HAVE_DECL_MALLOC]: Declare malloc.
91753         Also include memory.h, stdlib.h, unistd.h if appropriate.
91754         Reported by Andreas Jaeger (conflicting declaration of malloc).
91755
91756 2000-12-02  Jim Meyering  <meyering@lucent.com>
91757
91758         * m4/off_t-format.m4 (OFF_T_PRINTF_FORMAT_STRING): New file/macro.
91759         * m4/jm-macros.m4 (jm_MACROS): require it.
91760
91761 2000-12-02  Jim Meyering  <meyering@lucent.com>
91762
91763         * lib/closeout.h: Make idempotent, to avoid some obscure warnings.
91764
91765 2000-12-01  Paul Eggert  <eggert@twinsun.com>
91766
91767         * lib/memrchr.c: Include <config.h> before any system include file.
91768
91769 2000-11-30  Jim Meyering  <meyering@lucent.com>
91770
91771         * m4/jm-macros.m4 (jm_MACROS): Check for stdint.h.
91772
91773 2000-11-30  Jim Meyering  <meyering@lucent.com>
91774
91775         * m4/getloadavg.m4: s/ifval/m4_ifval/ to accommodate new autoconf.
91776
91777 2000-11-29  Paul Eggert  <eggert@twinsun.com>
91778
91779         * lib/dirname.c (dir_name_r): Fix typo: int -> size_t.
91780
91781 2000-11-26  Jim Meyering  <meyering@lucent.com>
91782
91783         * lib/memcoll.c: Include sys/types.h.  From Werner Almesberger.
91784
91785 2000-11-22  Paul Eggert  <eggert@twinsun.com>
91786
91787         * lib/strftime.c (my_strftime): Do not invoke mbrlen with a
91788         size of (size_t) -1; it's not portable.
91789
91790 2000-11-17  Jim Meyering  <meyering@lucent.com>
91791
91792         * lib/strstr.c: Update from GNU libc.
91793
91794 2000-11-17  Akim Demaille  <akim@epita.fr>
91795
91796         * lib/obstack.h: Formatting changes.
91797         (obstack_grow, obstack_grow0): Don't cast WHERE at all: that would
91798         prevent type checking.
91799         (obstack_ptr_grow, obstack_ptr_grow_fast): When assigning, don't
91800         cast the value to (void *): assigning a `foo *' to a `void *'
91801         variable is valid.
91802         (obstack_int_grow, obstack_int_grow_fast): Don't cast AINT to int.
91803
91804 2000-11-16  Jim Meyering  <meyering@lucent.com>
91805
91806         * lib/strverscmp.c: Incorporate weak-alias-related changes from glibc.
91807
91808 2000-11-11  Jim Meyering  <meyering@lucent.com>
91809
91810         * lib/error.c: Add a couple #includes, merging from GNU libc version.
91811
91812 2000-11-10  Jim Meyering  <meyering@lucent.com>
91813
91814         * lib/obstack.h: Update from GNU libc.
91815         * lib/obstack.c: Likewise.
91816
91817 2000-11-08  Bruno Haible  <haible@clisp.cons.org>
91818
91819         * m4/jm-macros.m4 (jm_MACROS): Add test for wcrtomb.
91820
91821 2000-11-06  Paul Eggert  <eggert@twinsun.com>
91822
91823         * lib/getusershell.c (setusershell): Use rewind rather than
91824         fseek/fseeko, to avoid configuration hassles with fseeko.
91825         Don't bother opening SHELLS_FILE if shellstream is NULL;
91826         it's not necessary.
91827
91828 2000-11-05  Jim Meyering  <meyering@lucent.com>
91829
91830         * lib/makepath.h (make_dir): Declare.
91831         * lib/makepath.c (make_dir): Remove `static' attribute.
91832         Tweak a comment.
91833
91834 2000-11-04  Jim Meyering  <meyering@lucent.com>
91835
91836         * m4/regex.m4: Use the `m4_' prefix on `syscmd' and `m4_sysval'.
91837
91838 2000-11-04  Alexandre Duret-Lutz  <duret_g@epita.fr>
91839
91840         * lib/hash.c (hash_get_next): Fix a thinko:  when ENTRY is the
91841         last one in a bucket, advance to the next bucket.
91842
91843 2000-11-02  Vesselin Atanasov  <vesselin@bgnet.bg>
91844
91845         * lib/fnmatch.c: Do not comment out all the code if we are using
91846         the GNU C library, because in some cases we are replacing buggy
91847         code in the GNU C library itself.
91848
91849 2000-10-30  Stefan Monnier  <monnier@cs.yale.edu>
91850
91851         * regex.c (re_iswctype, re_wctype_to_bit): Fix braino.
91852         (regex_compile): Catch bogus \(\1\).
91853
91854 2000-10-30  Paul Eggert  <eggert@twinsun.com>
91855
91856         * lib/fnmatch.c (FOLD): Do not assume that characters are unsigned.
91857         (fnmatch): Fix some FNM_FILE_NAME and FNM_LEADING_DIR bugs,
91858         e.g. fnmatch("d*/*1", "d/s/1", FNM_FILE_NAME) incorrectly yielded zero.
91859
91860 2000-10-30  Paul Eggert  <eggert@twinsun.com>
91861
91862         * lib/error.h, getline.h, modechange.h:
91863         Remove "2000" from Copyright line, as the file hasn't been
91864         changed this year other than in the copyright notice.
91865
91866         * lib/xalloc.h: Add "2000" to Copyright line, as this file
91867         was changed this year.
91868
91869 2000-10-29  Jim Meyering  <meyering@lucent.com>
91870
91871         * m4/fsusage.m4: s/AC_SHELL_IFELSE/AS_IFELSE/ to match autoconf
91872         renaming.
91873         * m4/ls-mntd-fs.m4: Likewise
91874
91875 2000-10-29  Jim Meyering  <meyering@lucent.com>
91876
91877         * lib/xstat.in: Fix grammar in comment.
91878
91879 2000-10-29  Greg Louis  <glouis@dynamicro.on.ca>
91880
91881         * lib/regex.h (__restrict_arr): Move definition out of #ifndef block.
91882         Required because egcs-2.91.66 (aka 1.1.2) defines __restrict, but
91883         doesn't define __restrict_arr.
91884
91885 2000-10-28  Jim Meyering  <meyering@lucent.com>
91886
91887         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_MEMCHR.
91888         (jm_PREREQ_MEMCHR): New function.
91889
91890 2000-10-28  Jim Meyering  <meyering@lucent.com>
91891
91892         * lib/memchr.c: Update from libc.
91893         Adjust for portability:
91894         [HAVE_STDLIB_H]: Include stdlib.h.
91895         [HAVE_BP_SYM_H || _LIBC]: Guard inclusion of bp-sym.h.
91896         Undef __memchr, too.
91897         [!weak_alias]: Define __memchr to memchr.
91898
91899         * lib/regex.c: Update from libc.
91900         * lib/regex.h: Likewise.
91901         * lib/getopt1.c: Likewise.
91902         * lib/memcmp.c: Likewise.
91903
91904         * lib/getusershell.c (setusershell) [HAVE_FSEEKO]: Use fseeko.
91905         Avoid using fseek, when possible -- it's broken by design.
91906         Patch by Ulrich Drepper.
91907
91908 2000-10-27  Stefan Monnier  <monnier@cs.yale.edu>
91909
91910         * regex.c (POP_FAILURE_REG_OR_COUNT, re_match_2_internal)
91911         (re_match_2_internal, re_match_2_internal, re_match_2_internal):
91912         Giving in to popular pressure to shut up the compiler with casts.
91913
91914 2000-10-26  Jim Meyering  <meyering@lucent.com>
91915
91916         * lib/strftime.c: Update from libc.
91917
91918 2000-10-25  Stefan Monnier  <monnier@cs.yale.edu>
91919
91920         * regex.c: More `unsigned char' -> `re_char' changes.
91921         Also change several `int' into `re_wchar_t'.
91922         (PATTERN_STACK_EMPTY, PUSH_PATTERN_OP, POP_PATTERN_OP): Remove.
91923         (PUSH_FAILURE_POINTER): Don't cast any more.
91924         (POP_FAILURE_REG_OR_COUNT): Remove the cast that strips `const'.
91925         We want GCC to complain, since this piece of code makes
91926         re_match non-reentrant, which *should* be fixed.
91927         (GET_BUFFER_SPACE): Use size_t rather than unsigned long.
91928         (EXTEND_BUFFER): Use RETALLOC.
91929         (SET_LIST_BIT): Don't cast.
91930         (re_wchar_t): New type.
91931         (re_iswctype, re_wctype_to_bit): Make it crystal clear to GCC
91932         that those two functions will always properly return.
91933         (IMMEDIATE_QUIT_CHECK): Cast to void.
91934         (analyse_first): Use recursion rather than an explicit stack.
91935         (re_compile_fastmap): Can't fail anymore.
91936         (re_search_2): Don't check re_compile_fastmap for failure.
91937         (PUSH_NUMBER): Renamed from PUSH_FAILURE_COUNT.
91938         Now also sets the new value (passed in a new argument).
91939         (re_match_2_internal): Use it.
91940         Also, use a new var `reg' of type size_t when looping through regs
91941         rather than reuse the inappropriate `mcnt'.
91942
91943 2000-10-25  Jim Meyering  <meyering@lucent.com>
91944
91945         * lib/obstack.c: Update from libc.
91946
91947 2000-10-24  Kenichi Handa  <handa@etl.go.jp>
91948
91949         * regex.c (regex_compile): Change the way of handling a range from
91950         a char less than 256 to a char not less than 256.
91951
91952 2000-10-24  Andrew Innes  <andrewi@gnu.org>
91953
91954         * regex.c (IMMEDIATE_QUIT_CHECK): New macro, which does QUIT on
91955         NT-Emacs only.
91956         (re_match_2_internal): Use IMMEDIATE_QUIT_CHECK instead of QUIT,
91957         so that re_search functions only quit when callers expect them to.
91958
91959 2000-10-23  Jim Meyering  <meyering@lucent.com>
91960
91961         * lib/hard-locale.c (hard_locale): Revert last change -- it was simply
91962         wrong.  That set_locale call must not have any side effects.
91963         From Paul Eggert.
91964
91965 2000-10-22  Jim Meyering  <meyering@lucent.com>
91966
91967         * lib/md5.c (md5_process_block) [OP]: Use `rol', not CYCLIC.
91968         [CYCLIC]: Remove now-unused definition.
91969
91970         * lib/save-cwd.c (O_DIRECTORY): Define, if needed.
91971         (save_cwd) [HAVE_FCHDIR]: Use O_DIRECTORY when opening ".".
91972         Suggestion from Ulrich Drepper.
91973
91974 2000-10-21  Jim Meyering  <meyering@lucent.com>
91975
91976         * m4/check-decl.m4 (jm_CHECK_DECLS): Also check for memrchr.
91977         * m4/prereq.m4 (jm_PREREQ_DIRNAME): New macro.
91978         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memrchr.
91979
91980 2000-10-21  Jim Meyering  <meyering@lucent.com>
91981
91982         * lib/dirname.c (memrchr): Declare if necessary.
91983         (dir_name): Remove the restriction that there be no
91984         trailing slashes.  Now, this code skips past them, effectively
91985         ignoring them.
91986         [TEST_DIRNAME] (main): New unit tests.
91987
91988         * lib/memrchr.c: New file from GNU libc.
91989         Undef __memrchr, too.
91990         [!weak_alias]: Define __memrchr to memrchr.
91991         Guard weak_alias use with `#ifdef weak_alias'.
91992
91993 2000-10-21  Jim Meyering  <meyering@lucent.com>
91994
91995         * lib/dirname.c (dir_name_r): New function, factored out of dir_name.
91996         (dir_name): Use dir_name_r.
91997         * lib/dirname.h (dir_name_r): Declare it.
91998
91999 2000-10-17  Jim Meyering  <meyering@lucent.com>
92000
92001         * lib/quote.h (PARAMS): Define and use.
92002         Reported by Akim Demaille.
92003
92004         * lib/getopt.c: Update from libc.
92005
92006 2000-10-16  Jim Meyering  <meyering@lucent.com>
92007
92008         * lib/hard-locale.c (hard_locale): Use "", not 0 as 2nd arg to
92009         setlocale.
92010         From Jan Fedak.
92011
92012 2000-10-15  Stefan Monnier  <monnier@cs.yale.edu>
92013
92014         * regex.c (WIDE_CHAR_SUPPORT): Define if _LIBC as well.
92015
92016 2000-09-25  Jim Meyering  <meyering@lucent.com>
92017
92018         * lib/md5.h (rol): Define (from GnuPG).
92019
92020         * lib/sha.c: Give credit (GnuPG) where due.
92021         (M): Use rol rather than open-coding it.
92022         Add a FIXME comment.
92023
92024 2000-09-21  Jim Meyering  <meyering@lucent.com>
92025
92026         * lib/userspec.c (parse_user_spec): Remove debugging printf I'd added.
92027         Reported by Michael Stone.
92028
92029 2000-09-20  Jim Meyering  <meyering@lucent.com>
92030
92031         * lib/Makefile.am (libfetish_a_SOURCES): Add sha.c.
92032         (noinst_HEADERS): Add sha.h.
92033         Based on code from Scott G. Miller and from GnuPG.
92034
92035 2000-09-18  Jim Meyering  <meyering@lucent.com>
92036
92037         * m4/getloadavg.m4 (AC_FUNC_GETLOADAVG): Restore the initial value of
92038         LIBS. Otherwise, everyone ends up linking with -lelf for some
92039         configurations.
92040         Reported by Mike Stone.
92041
92042 2000-09-15  Jim Meyering  <meyering@lucent.com>
92043
92044         * lib/regex.c: Update from libc.
92045
92046 2000-09-10  Jim Meyering  <meyering@lucent.com>
92047
92048         * lib/getopt.c (_getopt_internal): Update from glibc.
92049
92050 2000-09-09  Jim Meyering  <meyering@lucent.com>
92051
92052         * lib/quotearg.c: Rename ISASCII to IN_CTYPE_DOMAIN, so people don't
92053         think it should be used as a general replacement for isascii.
92054         * lib/fnmatch.c: Likewise.
92055         * lib/mbswidth.c: Likewise
92056         * lib/regex.c: Likewise.
92057
92058         Don't use atoi.
92059         * lib/userspec.c: Include sys/param.h and limits.h.
92060         Include xstrtol.h.
92061         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Define.
92062         (UID_T_MAX, GID_T_MAX, MAXUID, MAXGID): Define.
92063         (parse_user_spec): Use xstrtoul, not atoi when converting numeric
92064         UID, GID.  Check range.
92065
92066 2000-09-06  Jim Meyering  <meyering@lucent.com>
92067
92068         * lib/getopt.c (_getopt_internal): Update from glibc.
92069
92070 2000-08-30  Jim Meyering  <meyering@lucent.com>
92071
92072         * lib/strftime.c: Merge in changes from GNU libc.
92073
92074 2000-08-26  Jim Meyering  <meyering@lucent.com>
92075
92076         * m4/jm-macros.m4: Use jm_FUNC_FPENDING.
92077         * m4/fpending.m4: New file.
92078
92079 2000-08-26  Jim Meyering  <meyering@lucent.com>
92080
92081         * lib/closeout.c: Include "__fpending.h".
92082         (close_stdout_status): Return right away if there's nothing to flush.
92083
92084         * lib/Makefile.am (noinst_HEADERS): Add __fpending.h.
92085         * lib/__fpending.c: New file.
92086         * lib/__fpending.h: New file.
92087
92088 2000-08-20  Jim Meyering  <meyering@lucent.com>
92089
92090         * m4/check-decl.m4: Include utmp.h `#if HAVE_UTMP_H', rather than
92091         `#if !HAVE_UTMPX_H'.  The latter would lose on systems with neither
92092         utmp.h nor utmpx.h.  Reported by Eli Zaretskii.
92093
92094 2000-08-11  J. David Anglin  <dave@hiauly1.hia.nrc.ca>
92095
92096         Improve fileutils installation on systems where running
92097         programs (like install) can't be unlinked.
92098         * m4/unlink-busy.m4 (jm_FUNC_UNLINK_BUSY_TEXT): New file/macro.
92099         * m4/jm-macros.m4: Use jm_FUNC_UNLINK_BUSY_TEXT.
92100
92101 2000-08-07  Paul Eggert  <eggert@twinsun.com>
92102
92103         Standardize on "memory exhausted" instead of "Memory exhausted"
92104         or "virtual memory exhausted".
92105         * lib/obstack.c (print_and_abort): Use "memory exhausted", not
92106         "virtual memory exhausted".
92107         * lib/same.c (same_name): Invoke xalloc_die instead of printing
92108         our own message.
92109         * lib/userspec.c (parse_user_spec): Likewise.
92110         * lib/bumpalloc.h: comment fix
92111         * lib/same.c, userspec.c: Include xalloc.h.
92112
92113         * lib/xalloc.h (xalloc_msg_memory_exhausted): Now char const[],
92114         not char *const and pointing to a constant array.
92115         * lib/xmalloc.c (xalloc_msg_memory_exhausted): Likewise.
92116         (xrealloc): Comment fix.
92117
92118         * lib/userspec.c (parse_user_spec):
92119         Don't translate a message until just before returning,
92120         to avoid unnecessary translation.
92121
92122 2000-08-07  Jim Meyering  <meyering@lucent.com>
92123
92124         * lib/addext.c, argmatch.c, argmatch.h, backupfile.h, bumpalloc.h,
92125         chown.c, diacrit.h, dirname.h, dup2.c, exclude.h, fileblocks.c,
92126         fnmatch.c, fnmatch.h, fsusage.c, fsusage.h, getdate.h,
92127         getgroups.c, gethostname.c, getopt.h, group-member.c,
92128         hard-locale.c, hash.h, isdir.c, lchown.c, linebuffer.c,
92129         linebuffer.h, long-options.h, malloc.c, md5.c, md5.h, memchr.c,
92130         memcmp.c, memcoll.c, memset.c, mktime.c, modechange.h, obstack.h,
92131         pathmax.h, realloc.c, rmdir.c, safe-read.c, save-cwd.c, stime.c,
92132         stpcpy.c, strcasecmp.c, strcspn.c, strdup.c, stripslash.c,
92133         strstr.c, strtod.c, strtol.c, strtoul.c, strtoull.c, strtoumax.c,
92134         utime.c, version-etc.h, xalloc.h, xstrdup.c, xstrtoumax.c,
92135         yesno.c: Back out Copyright date changes for each file with no change
92136         this year.  This eases coordination with other programs using the same
92137         source code modules.  From Paul Eggert.
92138
92139 2000-08-06  Paul Eggert  <eggert@twinsun.com>
92140
92141         * m4/mbstate_t.m4 (AC_MBSTATE_T): Define mbstate_t to be int,
92142         not char, for compatibility with glibc 2.1.3 strftime.c.
92143
92144 2000-08-03  Greg McGary  <greg@mcgary.org>
92145
92146         * lib/regex.c (SET_HIGH_BOUND, MOVE_BUFFER_POINTER,
92147         ELSE_EXTEND_BUFFER_HIGH_BOUND): New macros.
92148         (EXTEND_BUFFER): Use them.
92149
92150 2000-08-01  Jim Meyering  <meyering@lucent.com>
92151
92152         * lib/dirname.c (ISSLASH): Define.
92153         (BACKSLASH_IS_PATH_SEPARATOR): Define.
92154         (dir_name) [BACKSLASH_IS_PATH_SEPARATOR]: Handle the case in which
92155         both `\' and `/' may be use as path separators.
92156         Based on a patch from Prashant TR.
92157
92158 2000-07-31  Paul Eggert  <eggert@twinsun.com>
92159
92160         * lib/quotearg.c (quotearg_n_options): Don't make the initial
92161         slot vector a constant, since it might get modified.
92162
92163 2000-07-31  Jim Meyering  <meyering@lucent.com>
92164
92165         * lib/xmalloc.c: Use `virtual memory exhausted', not
92166         `Memory exhausted'.
92167         * lib/obstack.c (print_and_abort): Likewise.
92168
92169 2000-07-30  Paul Eggert  <eggert@twinsun.com>
92170
92171         * lib/quotearg.c (quotearg_n_options): Preallocate a slot 0
92172         buffer, so that the caller can always quote one small
92173         component of a "memory exhausted" message in slot 0.
92174         From a suggestion by Jim Meyering.
92175
92176 2000-07-30  Jim Meyering  <meyering@lucent.com>
92177
92178         * lib/makepath.c (make_path): Quote the other instance, too.
92179
92180         * lib/quotearg.c (N_STATIC_SLOTVECS): Define.
92181         (STATIC_BUF_SIZE): Define.
92182         (quotearg_n_options): Use only statically allocated storage when
92183         N < N_STATIC_SLOTVECS and the length of the quoted result is smaller
92184         than STATIC_BUF_SIZE.
92185
92186 2000-07-29  Jim Meyering  <meyering@lucent.com>
92187
92188         * lib/diacrit.c (diacrit_diac): Use __MSDOS__ in favor of MSDOS.
92189         * lib/dirname.c (dir_name): Likewise.
92190
92191         * lib/basename.c (base_name): Use ISSLASH rather than comparing against
92192         `/'.
92193
92194         * lib/dirname.c (dir_name) [MSDOS]: Declare `lim' to be const.
92195         (dir_name): Assert that there are no trailing slashes.
92196
92197 2000-07-29  Bruno Haible  <haible@clisp.cons.org>
92198
92199         * lib/mbswidth.h (mbswidth): Add a flags argument.
92200         (mbswidth): New declaration.
92201         (MBSW_ACCEPT_INVALID, MBSW_ACCEPT_UNPRINTABLE): New macros.
92202         * lib/mbswidth.c (mbswidth): Add a flags argument.
92203         (mbsnwidth): New function.
92204
92205 2000-07-24  Jim Meyering  <meyering@lucent.com>
92206
92207         * lib/mbswidth.c: Remove useless #else.  From Bruno Haible.
92208
92209 2000-07-23  Paul Eggert  <eggert@twinsun.com>
92210
92211         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Check for wcwidth declaration.
92212
92213 2000-07-23  Paul Eggert  <eggert@twinsun.com>
92214
92215         * lib/quotearg.c: Streamline by invoking multibyte code only if needed.
92216         <wchar.h>: Include only if HAVE_MBRTOWC && 1 < MB_LEN_MAX.
92217         (MB_CUR_MAX): Redefine to 1 if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX).
92218         (quotearg_buffer_restyled): If a unibyte locale, don't bother to
92219         invoke multibyte primitives.
92220
92221 2000-07-23  Paul Eggert  <eggert@twinsun.com>
92222
92223         * lib/quotearg.c:
92224         Include <wchar.h> even if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX),
92225         so that mbstate_t is always defined.
92226
92227         Do not inspect MB_LEN_MAX, since it's incorrectly defined to
92228         be 1 in at least one GCC installation, and this configuration
92229         error is likely to be common.  Ignoring MB_LEN_MAX hurts
92230         performance on hosts that have mbrtowc but have only unibyte
92231         locales, but I assume these hosts are rare.
92232
92233 2000-07-23  Paul Eggert  <eggert@twinsun.com>
92234
92235         * lib/mbswidth.c (_XOPEN_SOURCE):
92236         Don't define; this causes problems on Solaris 7.
92237         (wcwidth) [!HAVE_DECL_WCWIDTH]: Declare.
92238
92239 2000-07-23  Jim Meyering  <meyering@lucent.com>
92240
92241         * m4/check-decl.m4 (jm_CHECK_DECLS): Check for declarations of these,
92242         too: getgrgid, getpwuid, getuid.
92243
92244 2000-07-23  Jim Meyering  <meyering@lucent.com>
92245
92246         * lib/basename.c (base_name): Add an assertion.
92247
92248 2000-07-23  Bruno Haible  <haible@clisp.cons.org>
92249
92250         * lib/quotearg.c: When the system forces us to redefine mbstate_t,
92251         shadow its mbsinit function.
92252
92253 2000-07-17  Bruno Haible  <haible@clisp.cons.org>
92254
92255         * lib/mbswidth.h: New file.
92256         * lib/mbswidth.c: New file.
92257         * lib/Makefile.am (libfetish_a_SOURCES): Add mbswidth.c.
92258         (noinst_HEADERS): Add mbswidth.h.
92259
92260 2000-07-17  Bruno Haible  <haible@clisp.cons.org>
92261
92262         * lib/config.charset: Add support for FreeBSD. Improve support for
92263         HP-UX and IRIX 6.
92264
92265 2000-07-16  Bruno Haible  <haible@clisp.cons.org>
92266
92267         * m4/mbswidth.m4: New file.
92268         * m4/prereq.m4 (jm_PREREQ): Call jm_PREREQ_MBSWIDTH.
92269
92270 2000-07-15  Jim Meyering  <meyering@lucent.com>
92271
92272         * lib/makepath.c: Include quote.h.
92273         (make_path): Convert "`%s'" in format strings to "%s", and wrap each
92274         corresponding argument in a `quote (...)' call.
92275         Give better diagnostics.
92276
92277         * lib/Makefile.am (libfetish_a_SOURCES): Add quote.c.
92278         (noinst_HEADERS): Add quote.h.
92279
92280         * lib/quote.c (quote, quote_n): New file.  Two functions taken verbatim
92281         from tar's src/misc.c.
92282         * lib/quote.h: New file.  Prototypes for same.
92283
92284 2000-07-14  Paul Eggert  <eggert@twinsun.com>
92285
92286         From a suggestion by Bruno Haible.
92287         * lib/quotearg.c (mbrtowc): Do not use HAVE_WCHAR_H in the definition.
92288         Use defined mbstate_t, not HAVE_MBSTATE_T_OBJECT,
92289         to decide whether to define the BeOS workaround macro;
92290         this adjusts to the change to AC_MBSTATE_T.
92291
92292 2000-07-14  Jim Meyering  <meyering@lucent.com>
92293
92294         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Require
92295         jm_AC_TYPE_UINTMAX_T.
92296
92297 2000-07-13  Paul Eggert  <eggert@twinsun.com>
92298
92299         * lib/quotearg.h (enum quoting style): New enum clocale_quoting_style.
92300
92301         * lib/quotearg.c (quoting_style_args, quoting_style_vals,
92302         quotearg_buffer_restyled): Add support for
92303         clocale_quoting_style.  Undo previous change to
92304         locale_quoting_style behavior, and undo the "{LEFT QUOTATION MARK}"
92305         and "{RIGHT QUOTATION MARK}" msgids.
92306
92307 2000-07-10  Paul Eggert  <eggert@twinsun.com>
92308
92309         From a suggestion by Bruno Haible.
92310         * m4/mbstate_t.m4 (AC_MBSTATE_T):
92311         Renamed from AC_MBSTATE_T_OBJECT.  All uses changed.
92312         Change from a two-part test, which defines both HAVE_MBSTATE_T_OBJECT
92313         and mbstate_t, to a single-part test that simply defines mbstate_t.
92314         * m4/prereq.m4 (jm_PREREQ_QUOTEARG):
92315         s/AC_MBSTATE_T_OBJECT/AC_MBSTATE_T/.
92316
92317 2000-07-10  Jim Meyering  <meyering@lucent.com>
92318
92319         * m4/strerror_r.m4: Mirror the correction made in autoconf.
92320
92321         * m4/gnu-source.m4: Output to confdefs.h directly.
92322         Suggestion from Akim Demaille.
92323
92324 2000-07-09  Paul Eggert  <eggert@twinsun.com>
92325
92326         The old behavior of quoting `like this' doesn't look good with
92327         newer, ISO-style fonts.  See:
92328         http://www.cl.cam.ac.uk/~mgk25/ucs/quotes.html
92329
92330         Instead, quote "like this" by default.  Let the translator
92331         tailor the locale-specific quoting behavior by providing
92332         translations for {LEFT QUOTATION MARK} and {RIGHT QUOTATION MARK}.
92333
92334         * lib/quotearg.c (N_): New macro.
92335         (gettext_default): New function.
92336         (quotearg_buffer_restyled): Use
92337         gettext_default ("{LEFT QUOTATION MARK}", "\"") for left quote, and
92338         gettext_default ("{RIGHT QUOTATION MARK}", "\"") for right quote.
92339
92340 2000-07-09  Jim Meyering  <meyering@lucent.com>
92341
92342         * m4/jm-macros.m4 (jm_MACROS): Add a test to see if -lm is required
92343         to link seq.  If so, set SEQ_LIBM to -lm.  From Bruno Haible.
92344
92345         * m4/gnu-source.m4 (AC__GNU_SOURCE): New file/macro.
92346         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require it.
92347
92348 2000-07-09  Jim Meyering  <meyering@lucent.com>
92349
92350         * lib/Most files: Update copyright dates to include 2000.
92351
92352 2000-07-08  Jim Meyering  <meyering@lucent.com>
92353
92354         * lib/xgethostname.c (ENAMETOOLONG): Define to an unlikely value
92355         if not defined.
92356         (xgethostname): Remove now-unnecessary #ifdef.
92357         Move declaration of `err' into loop where it's used.
92358
92359 2000-07-05  Paul Eggert  <eggert@twinsun.com>
92360         and Bruno Haible  <haible@clisp.cons.org>
92361
92362         * m4/mbstate_t.m4 (AC_MBSTATE_T_OBJECT): Test for mbstate_t
92363         only if the test for an object-type mbstate_t fails.  This
92364         prevents us from mistakenly reporting that mbstate_t is a
92365         system object type after we "#define mbstate_t int" to work
92366         around its lack.
92367
92368 2000-07-05  Paul Eggert  <eggert@twinsun.com>
92369         and Bruno Haible  <haible@clisp.cons.org>
92370
92371         * lib/quotearg.c (mbrtowc): Declare returned type, since BeOS doesn't.
92372
92373 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
92374
92375         * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): Pass a reasonably large buffer
92376         to strerror_r.
92377         Include <ctype.h> for use of isalpha.
92378
92379 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
92380
92381         * lib/xgethostname.c (xgethostname): Protect against the SunOS 5.5 bug
92382         by allocating a larger buffer. Test the gethostname return value for
92383         being >= 0, not == 0, for BeOS.  Don't exhaust memory if gethostname
92384         returns an error and ENAMETOOLONG isn't defined.
92385
92386 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
92387
92388         * lib/quotearg.c (struct quoting_options): Simplify quote_these_too
92389         dimension.
92390
92391 2000-07-04  Jim Meyering  <meyering@lucent.com>
92392
92393         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Use plain old `echo' instead
92394         of the deprecated AC_CHECKING.
92395
92396 2000-07-04  Jim Meyering  <meyering@lucent.com>
92397
92398         * lib/strndup.c: [!HAVE_DECL_STRNLEN]: Declare strnlen.
92399         Reported by Bruno Haible.
92400
92401 2000-07-04  Jim Meyering  <meyering@lucent.com>
92402
92403         * lib/quotearg.c: Make inclusion of <wchar.h> independent of whether
92404         HAVE_MBRTOWC is set.  Required at least for irix-5.6, which
92405         lacks mbrtowc.
92406
92407 2000-07-03  Paul Eggert  <eggert@twinsun.com>
92408
92409         * m4/mbstate_t.m4 (AC_MBSTATE_T_OBJECT): Port to autoconf 2.13.
92410         Add AC_CHECK_HEADERS(stdlib.h), since we use HAVE_STDLIB_H.
92411
92412 2000-07-03  Paul Eggert  <eggert@twinsun.com>
92413         and Bruno Haible  <haible@clisp.cons.org>
92414
92415         * lib/quotearg.c (mbrtowc):
92416         Assign to *pwc, and return 1 only if result is nonzero.
92417         (iswprint): Use ISPRINT when substituting our own mbrtowc.
92418
92419 2000-07-03  Jim Meyering  <meyering@lucent.com>
92420
92421         * m4/check-decl.m4 (AC_CHECK_DECLS): Add strnlen.
92422
92423 2000-07-03  Jim Meyering  <meyering@lucent.com>
92424
92425         * lib/readutmp.h: [HAVE_UTMPX_H]: Include <utmp.h> if HAVE_UTMP_H.
92426         This is necessary to get a definition of e.g., UTMP_FILE on
92427         HP-UX 10.20.
92428         From Bob Proulx.
92429
92430 2000-07-02  Jim Meyering  <meyering@lucent.com>
92431
92432         * m4/mbstate_t.m4: Also define mbstate_t, if necessary.
92433
92434         * m4/chown.m4: Replace each use of AC_SUBST(LIBOBJS)/LIBOBJS=... with
92435         AC_LIBOBJ(function_name).
92436         * m4/chown.m4: Likewise.
92437         * m4/fnmatch.m4: Likewise.
92438         * m4/ftruncate.m4: Likewise.
92439         * m4/getgroups.m4: Likewise.
92440         * m4/getline.m4: Likewise.
92441         * m4/group-member.m4: Likewise.
92442         * m4/jm-macros.m4: Likewise.
92443         * m4/lstat.m4: Likewise.
92444         * m4/malloc.m4: Likewise.
92445         * m4/memcmp.m4: Likewise.
92446         * m4/nanosleep.m4: Likewise.
92447         * m4/putenv.m4: Likewise.
92448         * m4/realloc.m4: Likewise.
92449         * m4/regex.m4: Likewise.
92450         * m4/stat.m4: Likewise.
92451         * m4/strftime.m4: Likewise.
92452
92453 2000-07-02  Jim Meyering  <meyering@lucent.com>
92454
92455         * lib/quotearg.c (mbstate_t): Don't define here.
92456
92457 2000-07-02  Jim Meyering  <meyering@lucent.com>
92458
92459         * lib/nanosleep.c (SIGCONT): Define if not already defined.
92460
92461 2000-07-01  Jim Meyering  <meyering@lucent.com>
92462
92463         * m4/uptime.m4: Put double quotes around use of $cross_compiling.
92464
92465 2000-07-01  Jim Meyering  <meyering@lucent.com>
92466
92467         * m4/ls-mntd-fs.m4: Remove a `FIXME' comment and fix the associated
92468         problem.
92469
92470 2000-07-01  Bruno Haible  <haible@clisp.cons.org>
92471
92472         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Rename BeOS specific
92473         macro from MOUNTED_NEXT_DEV to MOUNTED_FS_STAT_DEV.
92474
92475 2000-07-01  Bruno Haible  <haible@clisp.cons.org>
92476
92477         * lib/mountlist.c: Use MOUNTED_FS_STAT_DEV instead of MOUNTED_NEXT_DEV,
92478         per change in ../m4/ls-mntd-fs.m4.
92479         (read_filesystem_list): Ignore symbolic links.
92480
92481 2000-06-29  Jim Meyering  <meyering@lucent.com>
92482
92483         * lib/same.c: Include <string.h> or <strings.h>, as appropriate,
92484         for declaration of strcmp.
92485
92486         * lib/long-options.c: Include <stdlib.h>, for declaration of exit.
92487
92488         * lib/mountlist.c (fsp_to_string) [HAVE_F_FSTYPENAME_IN_STATFS]:
92489         Avoid warning by casting result to `char *' to remove `const'.
92490
92491 2000-06-28  Jim Meyering  <meyering@lucent.com>
92492
92493         * m4/mbstate_t.m4: Use stdlib.h, not stdio.h.  The latter is not
92494         included by quotearg.c, for which we perform this test.  From
92495         Bruno Haible.
92496
92497 2000-06-27  Bruno Haible  <haible@clisp.cons.org>
92498
92499         * m4/check-decl.m4 (_jm_DECL_HEADERS): Check for utmp.h as well.
92500         * m4/prereq.m4 (jm_PREREQ_READUTMP): Likewise. If either <utmp.h> or
92501         <utmpx.h> exists, put readutmp.o into LIBOBJS.
92502
92503 2000-06-27  Bruno Haible  <haible@clisp.cons.org>
92504
92505         * lib/Makefile.am (libfetish_a_SOURCES): Remove readutmp.c.
92506
92507 2000-06-26  Paul Eggert  <eggert@twinsun.com>
92508
92509         savedir now sets errno on failure and invokes xmalloc to get memory.
92510         Fix a couple of other minor bugs while we're at it.
92511
92512         * lib/savedir.c (<unistd.h>): Do not include; there's no need.
92513         (NAMLEN): Remove macro.
92514         (malloc, realloc): Remove decls.
92515         (stpcpy): Likewise.
92516         ("xalloc.h"): Include.
92517         (NAME_SIZE_DEFAULT): New macro.
92518         (savedir): Use xmalloc / xrealloc to allocate memory.
92519         Use NAME_SIZE_DEFAULT if name_size is negative or overflows to zero.
92520         Skip "" directory entries.
92521         Use strlen to calculate directory entry length, since the old method
92522         is rarely used these days and isn't worth supporting.
92523         Don't use a pointer after freeing it.
92524         Check for integer overflow when calculating allocation size.
92525         Use memcpy to copy entries, instead of stpcpy.
92526         Set errno properly when returning NULL.
92527         Check for readdir error.
92528
92529 2000-06-26  Jim Meyering  <meyering@lucent.com>
92530
92531         * lib/posixtm.c [HAVE_STDLIB_H]: Include stdlib.h, for decl of abort.
92532
92533 2000-06-25  Jim Meyering  <meyering@lucent.com>
92534
92535         * m4/mbstate_t.m4: Include stdio.h before wchar.h to work around
92536         Linux header bug when _XOPEN_SOURCE is defined to 500.
92537
92538 2000-06-25  Bruno Haible  <haible@clisp.cons.org>
92539
92540         * lib/unicodeio.c (print_unicode_char): Work around ansi2knr
92541         deficiency.
92542
92543 2000-06-25  Bruno Haible  <haible@clisp.cons.org>
92544
92545         * lib/getusershell.c (xmalloc, xrealloc): Remove functions.
92546         Include xalloc.h.
92547         Don't include <stdlib.h>.  Don't declare malloc, realloc.
92548
92549 2000-06-24  Jim Meyering  <meyering@lucent.com>
92550
92551         * m4/strerror_r.m4: Revive this file -- to try out an experimental
92552         version of AC_FUNC_STRERROR_R that may work even on BeOS, a system
92553         for which strerror does return char*, but which lacks a conveniently
92554         accessible declaration of the function.  If the compile-test says
92555         strerror_r doesn't work, then resort to a `run'-test that works on
92556         BeOS and segfaults on DEC Unix.
92557
92558 2000-06-24  Jim Meyering  <meyering@lucent.com>
92559
92560         * lib/error.c [!HAVE_DECL_STRERROR_R]: Declare strerror_r.
92561
92562 2000-06-23  Paul Eggert  <eggert@twinsun.com>
92563
92564         * m4/mbstate_t.m4: New file, defining AC_MBSTATE_T_OBJECT.
92565         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Use it.  Add check for iswprint.
92566
92567 2000-06-23  Paul Eggert  <eggert@twinsun.com>
92568
92569         * lib/quotearg.c: Include <wctype.h> after <wchar.h>, for Solaris 2.5.
92570         (mbrtowc, mbstate_t): Define substitutes if
92571         HAVE_MBRTOWC && HAVE_WCHAR_H && !HAVE_MBSTATE_T_OBJECT.
92572         (iswprint): Define to 1 if !defined iswprint && !HAVE_ISWPRINT,
92573         not if ! (HAVE_MBRTOWC && HAVE_WCHAR_H).
92574
92575 2000-06-23  Jim Meyering  <meyering@lucent.com>
92576
92577         * m4/afs.m4: Add missing AC_MSG_RESULT.
92578         Reported by Bruno Haible.
92579
92580         * m4/fsusage.m4: s/AC_MSG_CHECKING/AC_CHECKING/.
92581         Suggestion from Bruno Haible.
92582
92583 2000-06-23  Jim Meyering  <meyering@lucent.com>
92584
92585         * lib/getpass.c: New file, from Bruno Haible.  Required for BeOS.
92586
92587 2000-06-21  Jim Meyering  <meyering@lucent.com>
92588
92589         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add getpass.
92590
92591 2000-06-21  Jim Meyering  <meyering@lucent.com>
92592
92593         * lib/Makefile.am (libfetish_a_SOURCES): Add getstr.c.
92594         (noinst_HEADERS): Add getstr.h.
92595
92596         * lib/getline.c (getstr): Move into a separate file.
92597         * lib/getstr.c (getstr): New file, extracted from getline.c, with
92598         the following changes: new parameter, delim2; both delim[12]
92599         parameters have type `int', not `char'.  The latter would lose
92600         with 8-bit delimiters.
92601         * lib/getstr.h: New file.
92602
92603 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
92604
92605         * lib/xgetcwd.c (xgetcwd): If the required pathname length is smaller
92606         than 1024, return a memory chunk of least possible size, instead
92607         of size PATH_MAX + 2. In the loop, increment the size proportionally.
92608         Use free/xmalloc instead of xrealloc to avoid copying for very long
92609         paths.
92610
92611 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
92612
92613         * lib/path-concat.c (path_concat): Don't access dir[-1] if dir is
92614         the empty string.
92615
92616 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
92617
92618         * lib/canon-host.c (canon_host): Use malloc and memcpy to copy an
92619         address, not strdup.  Include <stdlib.h> and don't declare free().
92620
92621 2000-06-19  Jim Meyering  <meyering@lucent.com>
92622
92623         * lib/getloadavg.c [HAVE_NLIST_H] (NLIST_STRUCT): Define.
92624
92625 2000-06-18  Jim Meyering  <meyering@lucent.com>
92626
92627         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Remove mkdir.
92628
92629         * m4/link-follow.m4 (jm_AC_FUNC_LINK_FOLLOWS_SYMLINK): Change the
92630         `checking whether...' message to be consistent with that of the
92631         lstat test.
92632
92633 2000-06-18  Jim Meyering  <meyering@lucent.com>
92634
92635         * lib/mkdir.c: Remove file, due mainly to copyright incompatibility.
92636         Besides, these days every porting target provides a mkdir function.
92637
92638         * lib/strnlen.c: Include memory.h, string.h, and/or strings.h as
92639         needed. (this snippet comes from src/system.h).
92640
92641 2000-06-16  Bruno Haible  <haible@clisp.cons.org>
92642
92643         * m4/glibc21.m4 (jm_GLIBC21): Define GLIBC21 for Makefiles, not for C.
92644
92645 2000-06-15  Paul Eggert  <eggert@twinsun.com>
92646
92647         * lib/human.c (adjust_value): New function.
92648         (human_readable_inexact): Apply rounding style even when
92649         printing approximate values.
92650
92651 2000-06-14  Paul Eggert  <eggert@twinsun.com>
92652
92653         * lib/human.c (human_readable_inexact): Allow an input block
92654         size that is not a multiple of the output block size, and vice versa.
92655         Reported by Piergiorgio Sartor.
92656
92657 2000-06-14  Paul Eggert  <eggert@twinsun.com>
92658
92659         * lib/getdate.y (get_date): Apply relative times after time
92660         zone indicator, not before.  Reported by Todd A. Jacobs.
92661
92662 2000-06-13  Jim Meyering  <meyering@lucent.com>
92663
92664         * lib/Makefile.am (all-local): Depend on lstat.c and stat.c.
92665
92666         * lib/xstat.in [!HAVE_DECL_FREE]: Declare free in lstat.c.
92667
92668 2000-06-12  Paul Eggert  <eggert@twinsun.com>
92669
92670         * lib/xstat.in: Include <stdlib.h> in lstat, to declare "free".
92671
92672 2000-06-12  Jim Meyering  <meyering@lucent.com>
92673
92674         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Replace with
92675         AC_FUNC_GETLOADAVG from autoconf, and tweak the latter to accept an
92676         optional argument.
92677         * m4/jm-macros.m4: s/AM_FUNC_GETLOADAVG/AC_FUNC_GETLOADAVG/, and supply
92678         the optional argument, `lib'.
92679
92680 2000-06-08  Jim Meyering  <meyering@lucent.com>
92681
92682         * m4/largefile.m4: Remove file (now that it's part of autoconf).
92683
92684 2000-06-04  Paul Eggert  <eggert@twinsun.com>
92685
92686         Rewrite largefile configuration so that we don't need to run
92687         getconf and don't need AC_CANONICAL_HOST.  [I'm leaving the use of
92688         AC_CANONICAL_HOST in configure.in -- jmm]
92689
92690         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS,
92691         AC_SYS_LARGEFILE_SPACE_APPEND): Remove.
92692         (AC_SYS_LARGEFILE_TEST_INCLUDES): New macro.
92693         (AC_SYS_LARGEFILE_MACRO_VALUE): Change arguments from
92694         CODE-TO-SET-DEFAULT to VALUE, INCLUDES, FUNCTION-BODY.
92695         All uses changed.
92696         Instead of inspecting the output of getconf, try to compile the
92697         test program without and with the macro definition.
92698         (AC_SYS_LARGEFILE): Do not require AC_CANONICAL_HOST or check
92699         for getconf.  Instead, check for the needed flags by compiling
92700         test programs.
92701
92702 2000-06-04  Paul Eggert  <eggert@twinsun.com>
92703
92704         * lib/strnlen.c: Include <config.h> if HAVE_CONFIG_H.
92705
92706 2000-06-04  Jim Meyering  <meyering@lucent.com>
92707
92708         * lib/getugroups.c (getugroups): Cast -1 to gid_t, for systems like
92709         SunOS 4.1.4 for which gid_t is an unsigned type.
92710
92711 2000-06-03  Jim Meyering  <meyering@lucent.com>
92712
92713         * m4/prereq.m4 (jm_PREREQ_HUMAN): Use []-quoted list in AC_CHECK_DECLS,
92714         now that autoconf requires that.
92715
92716         * m4/jm-glibc-io.m4: Add a kludge to make autoheader emit the required
92717         #undefs.  E.g., #undef HAVE_DECL_FERROR_UNLOCKED.
92718         Use []-quoted list in AC_CHECK_DECLS, now that autoconf requires that.
92719
92720 2000-06-03  Jim Meyering  <meyering@lucent.com>
92721
92722         * lib/strnlen.c [!HAVE_DECL_MEMCHR]: Declare memchr.
92723
92724 2000-06-03  Bruno Haible  <haible@clisp.cons.org>
92725
92726         * m4/glibc21.m4: New file.
92727         * m4/jm-macros.m4 (jm_MACROS): Call jm_GLIBC21.
92728
92729 2000-06-03  Bruno Haible  <haible@clisp.cons.org>
92730
92731         * lib/Makefile.am (install-exec-local): On systems with glibc-2.1 or
92732         newer, don't install charset.alias.
92733         * lib/config.charset: Change the Linux/glibc rules so they become empty
92734         on glibc-2.1 or newer.
92735
92736 2000-06-02  Jim Meyering  <meyering@lucent.com>
92737
92738         * lib/mountlist.c: Back out last change.  Instead, do this...
92739         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Set the
92740         me_dummy member using the same `ignore'-testing code.
92741         * lib/mountlist.h (ME_DUMMY): Add `autofs' to the list of ignored
92742         fs_type strings.
92743         From Mark D. Roth.
92744
92745 2000-05-29  Jim Meyering  <meyering@lucent.com>
92746
92747         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Ignore
92748         mounts with the `ignore' attribute.  Based on a patch from
92749         Mark D. Roth.
92750
92751 2000-05-28  Jim Meyering  <meyering@lucent.com>
92752
92753         * m4/jm-macros.m4 (AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): Rename from
92754         jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
92755         * m4/stat.m4: Likewise.
92756         * m4/lstat.m4: Likewise.
92757         * m4/lstat-slash.m4: Remove file (absorbed into autoconf).
92758
92759         * m4/jm-macros.m4 (AC_FUNC_STRERROR_R): Rename from jm_FUNC_STRERROR_R.
92760         * m4/strerror_r.m4: Remove file (absorbed into autoconf).
92761
92762 2000-05-26  Jim Meyering  <meyering@lucent.com>
92763
92764         * m4/uptime.m4: Use `$cross_compiling', not `$ac_cv_prog_cc_cross'.
92765
92766 2000-05-24  Jim Meyering  <meyering@lucent.com>
92767
92768         * m4/prereq.m4: Use []-quoted list in AC_CHECK_MEMBERS, now that
92769         autoconf requires that.
92770         * m4/lib-check.m4: Likewise.
92771         * m4/jm-macros.m4: Likewise.
92772         * m4/strftime.m4: Likewise.
92773
92774         * m4/check-decl.m4 (jm_CHECK_DECLS): Use []-quoted list in
92775         AC_CHECK_DECLS, now that autoconf requires that.
92776
92777 2000-05-22  Jim Meyering  <meyering@lucent.com>
92778
92779         * m4/stat.m4: Require jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
92780         * m4/lstat.m4: Likewise.
92781
92782 2000-05-22  Jim Meyering  <meyering@lucent.com>
92783
92784         * lib/makepath.c: Remove old, now-unnecessary `#ifdef __MSDOS__' block.
92785
92786 2000-05-20  Jim Meyering  <meyering@lucent.com>
92787
92788         * m4/prereq.m4 (jm_PREREQ_HUMAN): New macro.
92789         (jm_PREREQ): Use it.
92790
92791 2000-05-18  Jim Meyering  <meyering@lucent.com>
92792
92793         * lib/hash.c (hash_rehash): Fix a nasty bug: copy the free entry list
92794         back, too, since it may have been modified by allocate_entry.
92795         (hash_delete): Rewrite to use neither the assignment operator
92796         nor the comma operator in an if-expression.
92797
92798 2000-05-15  Paul Eggert  <eggert@twinsun.com>
92799
92800         * lib/closeout.c:
92801         <sys/stat.h>, <sys/types.h>, <unistd.h>, (STDOUT_FILENO):
92802         Remove; no longer needed.
92803         "quotearg.h": Add include.
92804         (file_name): Do not bother to explicitly initialize to NULL; it's less
92805         efficient on some hosts.
92806         (close_stdout_status): Remove test as to whether stdout was already
92807         closed; it breaks for the case "echo x | sort >&-".
92808         Quote file name colons.
92809         Do not assume that _("write error") lacks format strings.
92810
92811 2000-05-15  Jim Meyering  <meyering@lucent.com>
92812
92813         * lib/version-etc.c (version_etc_copyright): Update the copyright
92814         string used in all --version output.
92815
92816 2000-05-14  Jim Meyering  <meyering@lucent.com>
92817
92818         * lib/closeout.c (close_stdout_set_file_name): New function.
92819         (close_stdout_status): Use new file-scoped global.
92820         Return right away if fstat says the stdout file descriptor is invalid.
92821         * lib/closeout.h (close_stdout_set_file_name): Declare.
92822
92823 2000-05-10  Jim Meyering  <meyering@lucent.com>
92824
92825         * lib/closeout.c [default_exit_status]: New file-scoped variable.
92826         (close_stdout_set_status): New function.
92827         * lib/closeout.h (close_stdout_set_status): Declare.
92828
92829 2000-05-09  Jim Meyering  <meyering@lucent.com>
92830
92831         * m4/gettext.m4: Rename this...
92832         * m4/libintl.m4: ...to this.
92833
92834 2000-05-08  Jim Meyering  <meyering@lucent.com>
92835
92836         * lib/long-options.c: Don't include closeout.h.
92837         (parse_long_options): Don't call close_stdout for --version.
92838
92839 2000-05-06  Paul Eggert  <eggert@twinsun.com>
92840
92841         * m4/largefile.m4 (AC_SYS_LARGEFILE): Define _XOPEN_SOURCE to
92842         be 500, instead of _GNU_SOURCE to be 1, to work around glibc
92843         2.1.3 bug.  This avoids a clash when files like regex.c define
92844         _GNU_SOURCE.
92845
92846 2000-05-06  Jim Meyering  <meyering@lucent.com>
92847
92848         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add atexit.
92849         (AC_REPLACE_FUNCS): Add strnlen.
92850
92851         * m4/rmdir-errno.m4 (fetish_FUNC_RMDIR_NOTEMPTY): New macro and file.
92852         * m4/jm-macros.m4: Require fetish_FUNC_RMDIR_NOTEMPTY.
92853
92854         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Save and restore LIBS around
92855         AC_SEARCH_LIBS call for nanosleep.
92856         (LIB_NANOSLEEP): Set and AC_SUBST.
92857
92858 2000-05-06  Jim Meyering  <meyering@lucent.com>
92859
92860         * lib/strnlen.c: Undefine __strnlen and strnlen.
92861         [!weak_alias]: Define __strnlen to strnlen.
92862
92863         * lib/atexit.c: New file, from libiberty.
92864
92865 2000-05-06  Jim Meyering  <meyering@lucent.com>
92866
92867         * lib/closeout.c (close_stdout_status): Also check for errors on the
92868         stderr stream.
92869
92870 2000-05-05  Jim Meyering  <meyering@lucent.com>
92871
92872         * m4/jm-macros.m4 (jm_MACROS): Save and restore LIBS around
92873         AC_SEARCH_LIBS call for clock_gettime.
92874         (LIB_CLOCK_GETTIME): Set and AC_SUBST.
92875
92876         * m4/search-libs.m4: Update from autoconf.
92877
92878         su doesn't work on Solaris 2.6.
92879         * m4/lib-check.m4: When checking for struct spwd.sp_pwdp, also include
92880         <shadow.h>.  Reported by Dragos Harabor.
92881
92882 2000-05-05  Bruno Haible  <haible@clisp.cons.org>
92883
92884         * lib/localcharset.c (get_charset_aliases): Use malloc, realloc and
92885         memcpy instead of xmalloc, xrealloc, path_concat.
92886         (locale_charset): Treat empty environment variables as absent.
92887         (DIRECTORY_SEPARATOR, ISSLASH): New macros.
92888
92889 2000-05-04  Jim Meyering  <meyering@lucent.com>
92890
92891         * lib/getopt.c: Update from glibc.
92892         * lib/obstack.c: Likewise.
92893         * lib/obstack.h: Likewise.
92894         * lib/regex.c: Likewise.  NB: K&R compiler support is dropped for this
92895         file
92896
92897         * lib/regex.h: Likewise.
92898         * lib/strndup.c: Likewise.
92899         * lib/strnlen.c: New file, from glibc.
92900
92901 2000-05-03  Jim Meyering  <meyering@lucent.com>
92902
92903         * m4/check-decl.m4 (AC_CHECK_DECLS): Add strndup.
92904
92905 2000-05-02  Paul Eggert  <eggert@twinsun.com>
92906
92907         * m4/largefile.m4 (AC_SYS_LARGEFILE): Define _GNU_SOURCE if
92908         this is needed to make ftello visible (e.g. glibc 2.1.3).  Use
92909         compile-time test, rather than inspecting host and OS, to
92910         decide whether to define _LARGEFILE_SOURCE.
92911
92912 2000-05-01  Jim Meyering  <meyering@lucent.com>
92913
92914         * m4/fsusage.m4: Use AC_MSG_CHECKING instead of obsolete AC_CHECKING.
92915
92916         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Add BeOS support.
92917         Based on a patch from Bruno Haible.
92918
92919 2000-05-01  Jim Meyering  <meyering@lucent.com>
92920
92921         * lib/full-write.c (full_write): Remove `FIXME' part of comment.
92922
92923 2000-04-29  Jim Meyering  <meyering@lucent.com>
92924
92925         * lib/path-concat.c: Declare strdup only if it's not defined.
92926         * lib/canon-host.c: Likewise.
92927
92928 2000-04-28  Jim Meyering  <meyering@lucent.com>
92929
92930         * lib/rpmatch.c [HAVE_LIMITS_H]: Include limits.h before regex.h to
92931         avoid redefinition warning on some systems (HPUX).  Otherwise, regex.h
92932         is included first, then limits.h is included by locale.h by libintl.h.
92933         From John David Anglin.
92934
92935 2000-04-25  Jim Meyering  <meyering@lucent.com>
92936
92937         * lib/makepath.c (S_IRWXUGO): Define.
92938         (make_path): Always perform explicit chmod if MODE specifies any
92939         of the `special' permission bits.  Prompted by a bug report against
92940         install from Mate Wierdl and Joost van Baal.
92941
92942 2000-04-18  Jim Meyering  <meyering@lucent.com>
92943
92944         * m4/prereq.m4 (jm_PREREQ_GETPAGESIZE): New macro.
92945         (jm_PREREQ): Use it.
92946
92947 2000-04-18  Jim Meyering  <meyering@lucent.com>
92948
92949         * lib/README: New file.
92950
92951         * lib/getpagesize.h [!getpagesize && HAVE_OS_H && B_PAGE_SIZE]: Define
92952         getpagesize.  For BeOS.  Based on a patch from Bruno Haible.
92953
92954 2000-04-17  Jim Meyering  <meyering@lucent.com>
92955
92956         Get it right :-)
92957         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Emit the
92958         actual #define via AH_VERBATIM.  Don't need separate AC_DEFINE.
92959         Suggestion from Akim Demaille.
92960
92961 2000-04-17  Jim Meyering  <meyering@lucent.com>
92962
92963         * lib/strftime.c (my_strftime) [strftime]: Declare strftime here, since
92964         the definition of it to rpl_strftime also defined-away the system's
92965         declaration.
92966
92967 2000-04-15  Jim Meyering  <meyering@lucent.com>
92968
92969         Use `C' to denote so-called `contiguous' files, the same way
92970         that tar does.
92971         * lib/filemode.c (S_ISCTG) [!S_ISCTG && S_IFCTG]: Define.
92972         (ftypelet): Use S_ISCTG.
92973         From Michael Deutschmann.
92974
92975 2000-04-14  Jim Meyering  <meyering@lucent.com>
92976
92977         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Use the one-arg
92978         form of AC_DEFINE.  Otherwise, the #ifndef in AH_VERBATIM gets
92979         clobbered.
92980
92981 2000-04-14  Jim Meyering  <meyering@lucent.com>
92982
92983         * lib/strftime.c (my_strftime) [#ifdef strftime]: Declare strftime.
92984
92985 2000-04-13  Jim Meyering  <meyering@lucent.com>
92986
92987         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Use new
92988         AH_VERBATIM to insert required #ifndef into config.h.in.
92989         Suggestion from Akim Demaille.
92990
92991 2000-04-12  Jim Meyering  <meyering@lucent.com>
92992
92993         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Use AC_CHECK_HEADERS, not
92994         `AC_CHECK_HEADER' to check for locale.h.  Thanks to a report from
92995         Christian Krackowizer.
92996
92997         More code moved from ../configure.in into (jm_CHECK_ALL_TYPES).
92998         * m4/jm-macros.m4 (_GNU_SOURCE): Define.
92999         (AC_SYS_LARGEFILE): Require.
93000         (AM_C_PROTOTYPES): Require.
93001
93002 2000-04-08  Jim Meyering  <meyering@lucent.com>
93003
93004         * lib/Makefile.am (charset.alias): Use t-$@, not $@-t so the DOS 8.3
93005         names don't conflict.  Reported by Eli Zaretskii.
93006
93007 2000-04-07  Jim Meyering  <meyering@lucent.com>
93008
93009         * lib/putenv.c: Move inclusion of errno.h so it follows that of
93010         sys/types.h, to work around system header problems on AIX 3.2.5.
93011         From Bruno Haible.
93012
93013 2000-04-07  Bruno Haible  <haible@clisp.cons.org>
93014
93015         * lib/unicodeio.c (print_unicode_char): Avoid triggering Solaris iconv
93016         bug.  Deal with the different error behavior of Irix iconv.
93017
93018 2000-04-05  Paul Eggert  <eggert@twinsun.com>
93019
93020         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Don't use -n32 on
93021         IRIX if the installer said otherwise.
93022
93023 2000-04-05  Jim Meyering  <meyering@lucent.com>
93024
93025         Portability tweaks required for ultrix4.3.
93026         * m4/check-decl.m4 [!HAVE_UTMPX_H] (headers): Include <utmp.h>.
93027         (jm_CHECK_DECLS): Add getutent to the list of functions.
93028         (_jm_DECL_HEADERS): Add utmpx.h.
93029         From John David Anglin.
93030
93031         * m4/strftime.m4: Back out the 2000-04-02 change.
93032         Instead of that change, simply undefine putenv in the test program.
93033
93034 2000-04-05  Jim Meyering  <meyering@lucent.com>
93035
93036         Portability tweaks required for ultrix4.3.
93037         * lib/readutmp.h [HAVE_UTMPX_H && !HAVE_DECL_GETUTENT]: Declare
93038         getutent.
93039         * lib/readutmp.c: Include sys/types.h before sys/stat.h.
93040         * lib/canon-host.c: Declare strdup.
93041         * lib/path-concat.c: Likewise.
93042         From John David Anglin.
93043
93044 2000-04-04  Jim Meyering  <meyering@lucent.com>
93045
93046         Be more DOS 8.3-friendly.
93047         * lib/ref-add.sin: Renamed from ref-add.sed.in.
93048         * lib/ref-del.sin: Renamed from ref-del.sed.in.
93049         * lib/Makefile.am: Reflect renaming.
93050         Reported by Eli Zaretskii.
93051
93052         Use a temporary file name that won't clash with `charset.alias'
93053         in the DOS 8.3 name space.
93054         * lib/Makefile.am (charset_tmp): Define.
93055         (install-exec-local): Use $(charset_tmp) instead of $(charset_alias)-t.
93056         (uninstall-local): Likewise.
93057         Reported by Eli Zaretskii.
93058
93059 2000-04-03  Jim Meyering  <meyering@lucent.com>
93060
93061         * m4/gettext.m4: Fix typo in comment.
93062
93063         * m4/codeset.m4 (AC_CHECK_HEADERS): Add langinfo.h (moved here from
93064         textutils/configure.in).  Suggestion from Paul Eggert.
93065         (AC_CHECK_FUNCS): Add nl_langinfo.  (also from textutils/configure.in)
93066
93067 2000-04-02  Paul Eggert  <eggert@twinsun.com>
93068
93069         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME): Set TZ environment
93070         variable in the shell rather than using putenv, which isn't
93071         portable.  This avoids the configure-time inter-test dependency
93072         on the potentially-renamed putenv function.
93073
93074 2000-03-30  Paul Eggert  <eggert@twinsun.com>
93075
93076         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Include <sys/stat.h>
93077         before checking struct stat.st_blksize, so that
93078         HAVE_STRUCT_STAT_ST_BLKSIZE is defined correctly.
93079
93080 2000-03-29  Paul Eggert  <eggert@twinsun.com>
93081
93082         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Check for strftime,
93083         since strftime.c uses HAVE_STRFTIME to decide whether to use
93084         the underlying strftime.
93085
93086 2000-03-29  Paul Eggert  <eggert@twinsun.com>
93087
93088         * lib/time/strftime.c (my_strftime): Make sure we call the system
93089         strftime, not ourselves, when invoking the underlying strftime.
93090
93091 2000-03-24  Jim Meyering  <meyering@lucent.com>
93092
93093         * lib/Makefile.am (EXTRA_DIST): Add ref-add.sed.in and ref-del.sed.in.
93094         (charset_alias): Define.
93095         (install-exec-local): Factor out common code.
93096         (uninstall-local): Split lines longer than 80.
93097         (ref-add.sed, ref-del.sed): Remove rules... (do the following instead)
93098         (SUFFIXES): Define.
93099         (.sed.in.sed): New rule.  Don't redirect directly to $@.
93100         (CLEANFILES): Add ref-add.sed and ref-del.sed.
93101
93102 2000-03-19  Bruno Haible  <haible@clisp.cons.org>
93103
93104         * lib/config.charset: Output a line containing "Packages using this
93105         file".
93106         * lib/ref-add.sed.in, lib/ref-del.sed.in: New files.
93107         * lib/Makefile.am (install-exec-local, uninstall-local, ref-add.sed,
93108         ref-del.sed): New rules.
93109
93110 2000-03-17  Jim Meyering  <meyering@lucent.com>
93111
93112         * lib/unicodeio.c (<string.h>): Include only #if HAVE_STRING_H.
93113         Otherwise, include <strings.h>
93114
93115 2000-03-17  Bruno Haible  <haible@clisp.cons.org>
93116
93117         * lib/unicodeio.c (utf8_wctomb): New function.
93118         (print_unicode_char): Pass the Unicode character to iconv in UTF-8
93119         format instead of in UCS-4 with platform dependent endianness.
93120
93121 2000-03-10  Jim Meyering  <meyering@lucent.com>
93122
93123         * m4/lib-check.m4: Look for getspnam in -lgen, too.
93124         From Marco Franzen.
93125
93126 2000-03-07  Paul Eggert  <eggert@twinsun.com>
93127
93128         * lib/savedir.c (savedir): Work even if directory size is
93129         negative; this can happen with some screwy NFS configurations.
93130
93131 2000-03-06  Jim Meyering  <meyering@lucent.com>
93132
93133         * lib/localcharset.c (get_charset_aliases): Don't try to free file_name
93134         if it's NULL (because we ran out of memory).  From Bruno Haible.
93135
93136 2000-03-05  Jim Meyering  <meyering@lucent.com>
93137
93138         * lib/localcharset.c ("path-concat.h"): Include.
93139         (get_charset_aliases): Use path_concat instead of ANSI string
93140         concatenation.
93141
93142         * lib/unicodeio.h (PARAMS): Define.
93143         Use it to guard prototype.
93144
93145 2000-03-04  Jim Meyering  <meyering@lucent.com>
93146
93147         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require AC_C_VOLATILE,
93148         for lib/localcharset.c.
93149
93150 2000-03-04  Jim Meyering  <meyering@lucent.com>
93151
93152         * lib/Makefile.am (install-exec-local): Create $(libdir) before
93153         installing into it.
93154         (uninstall-local): Uncomment this rule so `make distcheck' works
93155         once again.
93156
93157         * lib/unicodeio.c (<errno.h>): Include it.
93158         (errno): Declare if not defined.
93159
93160         * lib/localcharset.c: Add Bruno's comment justifying use of volatile.
93161
93162         * lib/config.charset: New version, incorporating remarks from a linux
93163         i18n mailing list.  From Bruno Haible.
93164
93165 2000-03-04  Bruno Haible  <haible@clisp.cons.org>
93166
93167         * m4/codeset.m4: New file.
93168         * m4/iconv.m4: New file.
93169         * m4/jm-macros.m4 (jm_MACROS): Call jm_LANGINFO_CODESET and jm_ICONV.
93170
93171 2000-03-03  Jim Meyering  <meyering@lucent.com>
93172
93173         * m4/regex.m4: Make sure re_compile_pattern accepts patterns like `{1'.
93174
93175 2000-03-02  Jim Meyering  <meyering@lucent.com>
93176
93177         * m4/timespec.m4: Require AC_HEADER_TIME before the cache check so
93178         the messages come out on separate lines.
93179
93180         * m4/jm-glibc-io.m4 (jm_FUNC_GLIBC_UNLOCKED_IO): Use AC_CHECK_DECLS,
93181         rather than jm_CHECK_DECLARATIONS.
93182         * m4/decl.m4: Remove now-unused file.
93183
93184         * m4/check-decl.m4 (AC_CHECK_DECLS): Add getlogin, ttyname, and
93185         geteuid.
93186
93187 2000-03-02  Jim Meyering  <meyering@lucent.com>
93188
93189         * lib/Makefile.am (EXTRA_DIST): Add config.charset.
93190
93191 2000-03-01  Jim Meyering  <meyering@lucent.com>
93192
93193         * lib/localcharset.c: Guard some #includes with `#if HAVE_...'.
93194         * lib/unicodeio.c: Likewise.
93195
93196 2000-03-01  Bruno Haible  <haible@clisp.cons.org>
93197
93198         * lib/config.charset: New file.
93199         * lib/localcharset.c: New file.
93200         * lib/unicodeio.h, lib/unicodeio.c: New files.
93201         * lib/Makefile.am (DEFS): Add -DLIBDIR=...
93202         (libfetish_a_SOURCES): Add localcharset.c and unicodeio.c.
93203         (noinst_HEADERS): Add unicodeio.h.
93204         (all-local, install-exec-local, charset.alias): New targets.
93205
93206 2000-02-28  Paul Eggert  <eggert@twinsun.com>
93207
93208         * lib/quotearg.c (ALERT_CHAR): New macro.
93209         (quotearg_buffer_restyled): Use it.
93210
93211 2000-02-27  Jim Meyering  <meyering@lucent.com>
93212
93213         * m4/check-decl.m4: Add getenv to the list.
93214
93215 2000-02-27  Jim Meyering  <meyering@lucent.com>
93216
93217         * lib/strtoumax.c: Fix typo in decl of strtoul: s/long long/long/.
93218         Guard declaration of strtoull also with `&& HAVE_UNSIGNED_LONG_LONG'.
93219
93220         * lib/backupfile.c: Guard inclusion of stdlib.h with
93221         `#if HAVE_STDLIB_H', not `#if STDC_HEADERS'.
93222         Declare malloc if needed.
93223
93224         * lib/backupfile.c: Use `#if !HAVE_DECL...' instead of
93225         `#ifndef HAVE_DECL..'
93226         now that autoconf always defines the HAVE_DECL_ symbols.
93227         * lib/human.c: Likewise.
93228         * lib/same.c: Likewise.
93229         * lib/strtoumax.c: Likewise.
93230
93231         * lib/backupfile.c: Arrange for cpp to fail if the configure-time
93232         declaration check was not run.
93233         * lib/hash.c: Likewise.
93234         * lib/human.c: Likewise.
93235         * lib/same.c: Likewise.
93236         * lib/strtoumax.c: Likewise.
93237
93238         * lib/userspec.c (parse_user_spec): If there is no `:' but there is a
93239         `.', then first look up the entire `.'-containing string as a login
93240         name.
93241
93242 2000-02-23  Jim Meyering  <meyering@lucent.com>
93243
93244         * m4/check-decl.m4: Now that we have the new AC_CHECK_DECLS, use it
93245         in place of my hack.
93246
93247 2000-02-18  Paul Eggert  <eggert@twinsun.com>
93248
93249         * lib/getdate.y: Handle two-digit years with leading zeros correctly.
93250         (textint): New typedef.
93251         (parser_control): Member year changed from int to textint.
93252         All uses changed.
93253         (YYSTYPE): Removed; replaced by %union with int and textint members.
93254         (tDAY, tDAY_UNIT, tDAYZONE, tHOUR_UNIT, tID, tLOCAL_ZONE, tMERIDIAN,
93255         tMINUTE_UNIT, tMONTH, tMONTH_UNIT tSEC_UNIT, tSNUMBER, tUNUMBER,
93256         tYEAR_UNIT, tZONE, o_merid): Now of type <intval>.
93257         (tSNUMBER, tUNUMBER): Now of type <textintval>.
93258         (date, number, to_year): Use width of number in digits, not its value,
93259         to determine whether it's a 2-digit year, or a 2-digit time.
93260         (yylex): Store number of digits of numeric tokens.
93261         Reported by John Kendall.
93262
93263         (parser_control): Changed from struct parser_control to typedef (for
93264         consistency).  All uses changed.
93265
93266         (tID): Removed; not used.
93267         (yylex): Return '?' for unknown identifiers, rather than (unused) tID.
93268
93269 2000-02-14  Paul Eggert  <eggert@twinsun.com>
93270
93271         * lib/getpagesize.h (getpagesize): Port to VMS for Alpha;
93272         adapted from changes to grep getpagesize.h by Martin P.J. Zinser.
93273
93274 2000-02-12  Jim Meyering  <meyering@lucent.com>
93275
93276         * lib/userspec.c (ISDIGIT): Define it.
93277         (isdigit): Remove definition.
93278         (is_number): Use ISDIGIT, not isdigit.
93279         <libintl.h>: Include.
93280         (_ and N_): Define.
93281         (parse_user_spec): Mark translatable strings.
93282
93283 2000-02-10  Jim Meyering  <meyering@lucent.com>
93284
93285         With these changes, nanosleep.[ch] are finally enough like the other
93286         lib/* replacement files to compile on a few more losing systems.
93287
93288         * lib/nanosleep.h: Don't include config.h.
93289         Remove prototype from declaration of nanosleep.
93290         (PARAMS): Remove now-unneeded definition.
93291         * lib/nanosleep.c: #undef nanosleep.
93292         (rpl_nanosleep): Rename from nanosleep.
93293
93294 2000-02-10  Jim Meyering  <meyering@lucent.com>
93295
93296         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Rename replacement function from
93297         gnu_nanosleep to rpl_nanosleep.
93298
93299 2000-02-09  Jim Meyering  <meyering@lucent.com>
93300
93301         * m4/lib-check.m4 (jm_LIB_CHECK): Fix typo: check for sp_pwdp in
93302         struct spwd, rather than in struct passwd.  Reported by Gaël Quéri.
93303
93304 2000-02-08  Akim Demaille  <akim@epita.fr>
93305
93306         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Quote square brackets with
93307         `[' and `]' and remove uses of `changequote'.
93308         (AC_SYS_LARGEFILE_MACRO_VALUE): Likewise.
93309         (AC_SYS_LARGEFILE): Likewise.
93310         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
93311         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME): Remove now-unnecessary use
93312         of changequote.
93313         * m4/regex.m4 (jm_INCLUDED_REGEX): Likewise.
93314         * m4/readdir.m4 (jm_FUNC_READDIR): Likewise
93315         * m4/memcmp.m4 (jm_AC_FUNC_MEMCMP): Likewise, and add `int' for main.
93316         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Likewise.
93317
93318 2000-02-05  Jim Meyering  <meyering@lucent.com>
93319
93320         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require most macros.
93321         Remove explicit use of AC_HEADER_TIME.  It is required by
93322         jm_CHECK_TYPE_STRUCT_TIMESPEC.  Using AC_HEADER_TIME and
93323         `AC_REQUIRE'ing jm_CHECK_TYPE_STRUCT_TIMESPEC provoked a but
93324         in autoconf whereby the expansion of the latter ended up preceding
93325         the expansion of its prerequisite, AC_HEADER_TIME.
93326         Reported by Volker Borchert.
93327
93328 2000-02-03  Jim Meyering  <meyering@lucent.com>
93329
93330         * m4/prereq.m4 (jm_PREREQ_READUTMP): Check for utmpxname.
93331
93332 2000-02-03  Jim Meyering  <meyering@lucent.com>
93333
93334         * lib/readutmp.c (read_utmp): Guard with `#ifdef UTMP_NAME_FUNCTION',
93335         rather than with `#if HAVE_UTMPNAME'.
93336
93337 2000-02-02  Jim Meyering  <meyering@lucent.com>
93338
93339         * m4/prereq.m4 (jm_PREREQ_ADDEXT): Fix typo that resulted in no
93340         definition of HAVE_PATHCONF: s/AC_CHECK_FUNC/AC_CHECK_FUNCS/.
93341         Reported by Eli Zaretskii.
93342
93343 2000-02-01  Jim Meyering  <meyering@lucent.com>
93344
93345         * lib/readutmp.h (UT_USER): Add parens.  From Andreas Schwab.
93346
93347 2000-01-31  Jim Meyering  <meyering@lucent.com>
93348
93349         * m4/check-decl.m4 (jm_CHECK_DECLS): Add nanosleep to the list of
93350         functions.  Add the time.h and sys/time.h headers along with the
93351         AC_REQUIRE'ment of AC_HEADER_TIME.
93352
93353 2000-01-31  Jim Meyering  <meyering@lucent.com>
93354
93355         * lib/nanosleep.h (nanosleep): Guard declaration with
93356         `#if ! HAVE_DECL_NANOSLEEP'.
93357         Without this, OFS gets a redeclaration error for rpl_nanosleep, due to
93358         the declaration in that vendor's sys/timers.h.
93359         Reported by Christian Krackowizer.
93360
93361         * lib/quotearg.c (ISASCII): Add #undef and move definition to follow
93362         inclusion of wctype.h to work around Solaris 2.6 namespace pollution.
93363         (ISPRINT): Likewise.
93364         Reported by Tom Tromey.
93365
93366 2000-01-30  Jim Meyering  <meyering@lucent.com>
93367
93368         * m4/lib-check.m4: Clean up some kludgy old shadow password tests.
93369
93370         * m4/prereq.m4 (utmp_includes): Define.
93371         Check for ut_user and ut_name members in both struct utmpx
93372         and struct utmp.
93373
93374 2000-01-30  Jim Meyering  <meyering@lucent.com>
93375
93376         * lib/readutmp.c (extract_trimmed_name): Use UT_USER instead of
93377         hard-coding uses of ->ut_name.  The latter doesn't work with new Linux
93378         header files where only utmpx.ut_user is declared.
93379
93380         * lib/readutmp.h (UT_USER): Define.
93381
93382 2000-01-29  Jim Meyering  <meyering@lucent.com>
93383
93384         * m4/lib-check.m4: New file containing library-related checks from
93385         fileutils and sh-utils (textutils had none).
93386
93387 2000-01-28  Jim Meyering  <meyering@lucent.com>
93388
93389         * m4/perl.m4: Change format of warning message to look more like that
93390         from the missing script.  Suggestion from François Pinard.
93391
93392 2000-01-25  Jim Meyering  <meyering@lucent.com>
93393
93394         * m4/timespec.m4: Require AC_HEADER_TIME, and include sys/time.h as
93395         well as time.h in the compile check.
93396         * m4/nanosleep.m4: Require AC_HEADER_TIME rather than simply using it.
93397         Fix typo in cross-compiling case: s/yes/no/.
93398
93399 2000-01-23  Jim Meyering  <meyering@lucent.com>
93400
93401         * m4/jm-macros.m4: Move df-related tests here from
93402         fileutils/configure.in
93403
93404         * m4/ls-mntd-fs.m4: s/list_mounted_fs/ac_list_mounted_fs/
93405         (jm_LIST_MOUNTED_FILESYSTEMS): Take two parameters.
93406
93407         * m4/fsusage.m4: New file.  Extracted from fileutils/configure.in.
93408         s/space/ac_fsusage_space/.
93409         (jm_FILE_SYSTEM_USAGE): Take two parameters.
93410
93411         * m4/ftruncate.m4: New file (derived from part of
93412         fileutils/configure.in).
93413         * m4/jm-macros.m4 (jm_FUNC_FTRUNCATE): AC_REQUIRE it.
93414         (jm_CHECK_ALL_TYPES): Require AC_HEADER_MAJOR and AC_HEADER_DIRENT.
93415
93416         * m4/jm-macros.m4 (OPTIONAL_BIN_PROGS, OPTIONAL_BIN_ZCRIPTS, MAN):
93417         AC_SUBST these here, rather than just in sh-util/configure.in, so
93418         that the now-shared-by-fileutils-and-textutils lib/Makefile.am are
93419         all the same.
93420         (AM_FUNC_OBSTACK): Add (from fileutils/configure.in).
93421         (AC_CHECK_FUNCS): Merge all checks from fileutils, textutils, sh-utils.
93422         (AM_FUNC_STRTOD): Added (from textutils', sh-utils' configure.in).
93423         (AC_SUBST(POW_LIBM)): Likewise.
93424         (AC_SUBST(DF_PROG)): Moved from fileutils/configure.in.
93425
93426 2000-01-23  Jim Meyering  <meyering@lucent.com>
93427
93428         * lib/Makefile.am (libfetish_a_SOURCES): Remove explicit mention of
93429         obstack.c.
93430
93431 2000-01-22  Jim Meyering  <meyering@lucent.com>
93432
93433         * m4/jm-macros.m4: Call AC_PROG_CC_STDC just before AC_C_CONST.
93434
93435         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Add wctype.h.
93436
93437         * m4/jm-macros.m4 (AC_CHECK_HEADERS): Add checks from fileutils'
93438         configure.in
93439         (AC_CHECK_HEADERS): Likewise for sh-utils.
93440         (AC_CHECK_HEADERS): Likewise for textutils.
93441         Merge the three lists of headers.
93442
93443         * m4/prereq.m4 (jm_PREREQ_ADDEXT): New macro.  Parts moved here
93444         from fileutils' configure.in.
93445
93446         * m4/decl.m4: Remove kludgy `test -z $ac_...AC_CHECK_HEADERS(...)'
93447         code. Moved tests into their own function (_jm_DECL_HEADERS) in
93448         check-decl.m4.
93449
93450         * m4/check-decl.m4: Use #if rather than #ifdef.
93451         Add HAVE_DECL_STRTOUL and HAVE_DECL_STRTOULL.
93452         (jm_CHECK_DECLARATIONS): Add strtoul strtoull.
93453         (_jm_DECL_HEADERS): Define new function.
93454         (jm_CHECK_DECLARATIONS): Require it.
93455
93456 2000-01-22  Jim Meyering  <meyering@lucent.com>
93457
93458         * lib/strtoumax.c: [! HAVE_DECL_STRTOUL]: Declare strtoul.
93459         [! HAVE_DECL_STRTOULL]: Declare strtoull.
93460         Required for some AIX systems.  Reported by Christian Krackowizer.
93461         [TESTING] (main): New function.
93462
93463         1997-10-17  Eli Zaretskii  <eliz@is.elta.co.il>
93464         * lib/dirname.c (dir_name): Support for DOS-style file names with drive
93465         letters.
93466
93467         * lib/quotearg.c [HAVE_WCTYPE_H]: Include <wctype.h> for decl of
93468         iswprint.
93469
93470         * lib/strverscmp.c (ISDIGIT): Define.
93471         (strverscmp): Use ISDIGIT, not isdigit.
93472
93473 2000-01-19  Jim Meyering  <meyering@lucent.com>
93474
93475         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Include <sys/time.h>, too.
93476         Use AC_HEADER_TIME.  Volker Borchert reported that OpenBSD-2.3/sparc
93477         defines `struct timespec' in <sys/time.h>
93478
93479         * m4/c-bs-a.m4: Remove uses of changequote altogether.
93480         Thanks to Akim for explaining.
93481
93482 2000-01-17  Paul Eggert  <eggert@twinsun.com>
93483
93484         * lib/nanosleep.c (nanosleep):
93485         Don't use SA_INTERRUPT to decide whether to call sigaction, as
93486         POSIX.1 doesn't require SA_INTERRUPT and some systems
93487         (e.g. Solaris 7) don't define it.  Use SA_NOCLDSTOP instead;
93488         it's been part of POSIX.1 since day 1 (in 1988).
93489
93490 2000-01-17  Jim Meyering  <meyering@lucent.com>
93491
93492         * lib/interlock: Remove unused file.  Reported by François Pinard.
93493
93494 2000-01-16  Paul Eggert  <eggert@twinsun.com>
93495
93496         * lib/quotearg.c (quotearg_buffer_restyled): Do not quote
93497         alert, backslash, formfeed, and vertical tab unnecessarily in
93498         shell quoting style.
93499
93500 2000-01-16  Jim Meyering  <meyering@lucent.com>
93501
93502         * m4/jm-macros.m4: Require jm_FUNC_GROUP_MEMBER, jm_FUNC_PUTENV,
93503         AM_FUNC_ERROR_AT_LINE, jm_FUNC_GNU_STRFTIME, jm_FUNC_MKTIME,
93504         jm_FUNC_GETGROUPS AC_FUNC_VPRINTF, AC_FUNC_ALLOCA,
93505         AM_FUNC_GETLOADAVG, and jm_SYS_PROC_UPTIME.
93506
93507 2000-01-16  Jim Meyering  <meyering@lucent.com>
93508
93509         * m4/c-bs-a.m4: Use `changequote(<<,>>)', rather than `changequote(, )'
93510         because the latter didn't work.
93511
93512 2000-01-15  Jim Meyering  <meyering@lucent.com>
93513
93514         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add gethostname and getusershell.
93515         (AC_REPLACE_FUNCS): Add memcpy and memset.
93516         Add these, too: stime strcspn stpcpy strstr strtol strtoul.
93517         Add strpbrk.
93518         Add these: euidaccess memcmp mkdir rmdir rpmatch strndup strverscmp.
93519
93520 2000-01-12  Jim Meyering  <meyering@lucent.com>
93521
93522         * m4/prereq.m4 (jm_PREREQ_CANON_HOST): New macro.
93523         (jm_PREREQ): Use it.
93524         (jm_PREREQ_READUTMP): New macro.
93525         (jm_PREREQ): Use it.
93526
93527 2000-01-11  Paul Eggert  <eggert@twinsun.com>
93528
93529         Quote multibyte characters correctly.
93530         * m4/c-bs-a.m4: New file.
93531         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): New macro.
93532         (jm_PREREQ): Use it.
93533
93534 2000-01-11  Paul Eggert  <eggert@twinsun.com>
93535
93536         * m4/uintmax_t.m4: Port to autoconf 2.13.
93537
93538 2000-01-08  Jim Meyering  <meyering@ascend.com>
93539
93540         * m4/strerror_r.m4 (jm_FUNC_STRERROR_R): New file/macro.
93541         * m4/jm-macros.m4 (jm_FUNC_STRERROR_R): Require it.
93542
93543 2000-01-04  Jim Meyering  <meyering@ascend.com>
93544
93545         * m4/d-type.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Rename from
93546         jm_STRUCT_DIRENT_D_TYPE.
93547         * m4/d-ino.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_INO): Rename from
93548         jm_STRUCT_DIRENT_D_INO.
93549         * m4/utimbuf.m4 (jm_CHECK_TYPE_STRUCT_UTIMBUF): Rename from
93550         jm_STRUCT_UTIMBUF.
93551         * m4/jm-macros.m4: Reflect s/jm_STRUCT_/jm_CHECK_TYPE_STRUCT_/
93552         renamings.
93553         * m4/utime.m4: Likewise.
93554
93555         * m4/timespec.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC): New file, macro.
93556         * m4/jm-macros.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC): Require it.
93557
93558 2000-01-03  Paul Eggert  <eggert@twinsun.com>
93559
93560         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Search for nanosleep in -lrt
93561         (for Solaris 7) and in -lposix4 (for Solaris 2.5.1).
93562
93563 2000-01-02  Jim Meyering  <meyering@ascend.com>
93564
93565         * m4/search-libs.m4: Escape `$' in $3 of dnl comment.  I no longer
93566         remember if this is necessary.
93567
93568 1999-12-26  Jim Meyering  <meyering@ascend.com>
93569
93570         * m4/jm-macros.m4: Use it here.
93571         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): New file/macro.
93572
93573 1999-12-23  Jim Meyering  <meyering@ascend.com>
93574
93575         * m4/jm-macros.m4: Check for clock_gettime (moved from
93576         fileutils/configure.in)
93577         Check for gettimeofday.
93578
93579 1999-12-20  Jim Meyering  <meyering@ascend.com>
93580
93581         * m4/strftime.m4: Remove kludge, now that I'm using the fixed
93582         autoconf-2.14a-1999-12-20.
93583
93584 1999-12-19  Jim Meyering  <meyering@ascend.com>
93585
93586         * m4/lstat-slash.m4: New file.
93587         * m4/jm-macros.m4: Use the new macro:
93588         jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
93589
93590 1999-12-07  Jim Meyering  <meyering@ascend.com>
93591
93592         * m4/perl.m4: Require that File::Compare be available, too.
93593         Too many systems seem to lack it.
93594
93595         * m4/strftime.m4: Add checks for most of the cpp macros tested in
93596         GNU's strftime.c.  Prompted by a patch from Paul Eggert.
93597
93598 1999-11-18  Paul Eggert  <eggert@twinsun.com>
93599
93600         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Work around a
93601         problem with the QNX 4.25 shell, which doesn't propagate exit
93602         status of failed commands inside shell assignments.
93603
93604 1999-11-17  Jim Meyering  <meyering@ascend.com>
93605
93606         * m4/gettext.m4: Use new AC_CONFIG_LINKS in place of AC_LINK_FILES.
93607
93608 1999-11-07  Jim Meyering  <meyering@ascend.com>
93609
93610         * m4/getloadavg.m4: Add `, 1, [FIXME]' to each use of AC_DEFINE.
93611
93612 1999-11-06  Jim Meyering  <meyering@ascend.com>
93613
93614         * m4/link-follow.m4 (jm_AC_FUNC_LINK_FOLLOWS_SYMLINK): New file/macro.
93615         * m4/jm-macros.m4 (jm_MACROS): Use it here.
93616
93617 1999-11-05  Jim Meyering  <meyering@ascend.com>
93618
93619         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Move some tests from
93620         configure.in of textutils, fileutils, and sh-utils into this one
93621         (shared between those packages) file.
93622         Use `AC_CHECK_MEMBERS((struct stat.st_blksize))' instead of deprecated
93623         AC_STRUCT_ST_BLKSIZE.
93624
93625 1999-11-03  Jim Meyering  <meyering@ascend.com>
93626
93627         * m4/ssize_t.m4: Remove file.  No longer needed since the new version
93628         of AC_CHECK_TYPE checks includes unistd.h.
93629         * m4/jm-macros.m4: Use straight `AC_CHECK_TYPE(ssize_t, int)'.
93630         Suggestion from Akim Demaille.
93631
93632 1999-10-30  Jim Meyering  <meyering@ascend.com>
93633
93634         * m4/uintmax_t.m4: Require 2.14a.  Remove backslash before backtick in
93635         m4-quoted string.
93636         * m4/ls-mntd-fs.m4: Likewise.
93637         * m4/jm-macros.m4: Likewise.  Also, use AC_TYPE_SSIZE_T instead
93638         * m4/jm-winsz1.m4: Likewise.
93639
93640         * m4/const.m4: Remove file, since the fix made it into the experimental
93641         version of autoconf.
93642         * m4/mktime.m4: Likewise.
93643
93644         * m4/check-type.m4: Remove file, now that the latest version of
93645         AC_CHECK_TYPE takes a third arg to specify additional #includes.
93646
93647         * m4/ssize_t.m4: New file, requires experimental version of autoconf.
93648         * m4/jm-macros.m4: Use new AC_TYPE_SSIZE_T instead of my hacked
93649         AC_CHECK_TYPE.
93650
93651 1999-10-04  Jim Meyering  <meyering@ascend.com>
93652
93653         * m4/jm-macros.m4: Don't require autoconf-2.14.1.
93654
93655 1999-09-22  Paul Eggert  <eggert@twinsun.com>
93656
93657         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Work around GCC
93658         2.95.1 bug with HP-UX 10.20.
93659
93660 1999-09-17  Jim Meyering  <meyering@ascend.com>
93661
93662         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add strdup.
93663         Paul Nevai reported a link failure on a NeXT CUBE with NeXTSTEP 3.3
93664         due to missing strdup (against sh-utils-2.0).
93665
93666 1999-08-29  Jim Meyering  <meyering@ascend.com>
93667
93668         * m4/jm-macros.m4: Require jm_BISON.
93669         * m4/bison.m4: New file.
93670
93671 1999-08-17  Paul Eggert  <eggert@twinsun.com>
93672
93673         * m4/largefile.m4 (AC_SYS_LARGEFILE): Fix typo: missing comma
93674         in value for _FILE_OFFSET_BITS, which broke ports to HP-UX 10.20.
93675
93676 1999-08-05  Jim Meyering  <meyering@ascend.com>
93677
93678         * m4/getline.m4: Rename test file from conftestdata to conftest.data
93679         to avoid conflicts with `conftest' on 8+3 filesystems.
93680         Suggestion from Eli Zaretskii.
93681
93682 1999-08-04  Jim Meyering  <meyering@ascend.com>
93683
93684         * m4/jm-macros.m4: Move a 4-line block of code from the configure.in of
93685         fileutils and sh-utils (textutils's getline test was inadequate).
93686         (AM_FUNC_GETLINE): Run this test.
93687         (AC_CHECK_FUNCS): Check for getdelim.
93688         Reported by Bob Proulx.
93689
93690 1999-08-02  Jim Meyering  <meyering@ascend.com>
93691
93692         * m4/jm-macros.m4: Add a comment.
93693
93694 1999-08-01  Paul Eggert  <eggert@twinsun.com>
93695
93696         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Check whether
93697         <inttypes.h> defines strtoumax as a macro (and not as a
93698         function).
93699
93700 1999-08-01  Paul Eggert  <eggert@twinsun.com>
93701
93702         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Make sure
93703         that we can shift, multiply and divide unsigned long long
93704         values; Ultrix cc can't do it.
93705
93706 1999-08-01  Paul Eggert  <eggert@twinsun.com>
93707
93708         * m4/mktime.m4: New file, which is a preview of what should appear
93709         in the next public autoconf release.
93710
93711 1999-08-01  Paul Eggert  <eggert@twinsun.com>
93712
93713         * m4/lfs.m4: Remove this file.
93714         * m4/largefile.m4: New file.  It contains the old contents of
93715         lfs.m4, except that all names with prefix AC_LFS have been
93716         changed to use the prefix AC_SYS_LARGEFILE instead, to be
93717         compatible with future autoconf versions.  Also, some minor m4
93718         quoting problems have been fixed.
93719
93720 1999-08-01  Paul Eggert  <eggert@twinsun.com>
93721
93722         * m4/gettext.m4 (AM_WITH_NLS): Remove unnecessary lines.
93723         Fix typo: $nls_cv_header_intl was misspelled as $nsl_cv_header_intl.
93724         (AM_GNU_GETTEXT): Fix problem with brackets and m4 quoting,
93725         and simplify the shell code.
93726
93727 1999-08-01  Jim Meyering  <meyering@ascend.com>
93728
93729         * m4/mktime.m4 (AC_FUNC_MKTIME): Undefine to avoid syntax errors from
93730         m4.
93731
93732 1999-07-20  Jim Meyering  <meyering@ascend.com>
93733
93734         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memmove.
93735
93736 1999-07-15  Jim Meyering  <meyering@ascend.com>
93737
93738         * m4/jm-macros.m4 (AC_CHECK_FUNCS): Check for getpagesize.
93739
93740 1999-05-22  Jim Meyering  <meyering@ascend.com>
93741
93742         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memchr.
93743
93744 1999-05-20  Jim Meyering  <meyering@ascend.com>
93745
93746         * m4/search-libs.m4 [AC_SEARCH_LIBS]: Quote name in undefine.
93747         Add a colon after each `then' in case $4 is empty.
93748
93749 1999-05-16  Jim Meyering  <meyering@ascend.com>
93750
93751         * m4/search-libs.m4: New file to override autoconf's AC_SEARCH_LIBS.
93752
93753 1999-05-10  Jim Meyering  <meyering@ascend.com>
93754
93755         * m4/jm-mktime.m4: Reflect renaming: AM_FUNC_MKTIME -> AC_FUNC_MKTIME.
93756
93757         * m4/jm-macros.m4: Require 2.14.1, since we use newly-renamed
93758         AC_FUNC_MKTIME.
93759
93760 1999-05-10  Andreas Schwab  <schwab@issan.cs.uni-dortmund.de>
93761
93762         * m4/jm-mktime.m4, putenv.m4: Fix typos in config.h comments.
93763
93764 1999-05-04  Paul Eggert  <eggert@twinsun.com>
93765
93766         * m4/lfs.m4 (AC_LFS): -n32, -o32, and -n64 should be in CFLAGS,
93767         not CPPFLAGS, so that linking works correctly in IRIX.
93768
93769 1999-04-30  Paul Eggert  <eggert@twinsun.com>
93770
93771         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add dup2.
93772
93773 1999-04-20  Paul Eggert  <eggert@twinsun.com>
93774
93775         * m4/uintmax_t.m4 (jm_AC_TYPE_UINTMAX_T): Move unsigned long
93776         long check into new jm_AC_TYPE_UNSIGNED_LONG_LONG macro.
93777         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require
93778         jm_AC_TYPE_UNSIGNED_LONG_LONG.
93779         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): New file/macro.
93780
93781         * m4/lfs.m4: Port to AIX and HP-UX.  Support cross-compilation.
93782
93783 1999-04-20  Jim Meyering  <meyering@ascend.com>
93784
93785         * m4/xstrtoumax.m4: Require jm_AC_TYPE_UNSIGNED_LONG_LONG.
93786         AC_REPLACE xstroull if necessary.  From Paul Eggert.
93787         (AC_CHECK_FUNCS): Remove strtoull, strtoumax, strtouq.
93788
93789 1999-04-18  Jim Meyering  <meyering@ascend.com>
93790
93791         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): New file/macro.
93792         * m4/jm-macros.m4: Use it.
93793
93794 1999-04-06  Jim Meyering  <meyering@ascend.com>
93795
93796         * m4/strftime.m4: Remove test for %f.
93797
93798 1999-03-29  Jim Meyering  <meyering@ascend.com>
93799
93800         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): New macro, contains the
93801         superset of the AC_TYPE_* checks in the textutils, fileutils,
93802         and sh-utils, plus AC_TYPE_PID_T.  Paul Eggert suggested adding
93803         AC_TYPE_PID_T.
93804
93805 1999-03-28  Jim Meyering  <meyering@ascend.com>
93806
93807         * m4/jm-macros.m4: Define GNU_PACKAGE here.
93808         Be sure to AC_SUBST it, once again, so that @GNU_PACKAGE@ is
93809         replaced e.g., in the *.sh files of the sh-utils.
93810
93811 1999-03-20  Jim Meyering  <meyering@ascend.com>
93812
93813         * m4/jm-macros.m4: s/jm_WITH_REGEX/jm_INCLUDED_REGEX/.
93814         * m4/regex.m4 (jm_INCLUDED_REGEX): Rename from jm_WITH_REGEX.
93815         Don't depend on AM_GLIBC.  Suggestions from Alain Magloire.
93816
93817 1999-03-19  Jim Meyering  <meyering@ascend.com>
93818
93819         * m4/jm-winsz1.m4 (jm_WINSIZE_IN_PTEM): New macro.
93820
93821 1999-03-12  Jim Meyering  <meyering@ascend.com>
93822
93823         * m4/jm-macros.m4: Use AC_FUNC_SETVBUF_REVERSED.
93824
93825 1999-03-07  Jim Meyering  <meyering@ascend.com>
93826
93827         * m4/jm-glibc-io.m4: Use only those *_unlocked macros that are
93828         declared.
93829
93830 1999-02-17  Jim Meyering  <meyering@ascend.com>
93831
93832         * m4/gettext.m4 (AM_GNU_GETTEXT): Do `changequote' around use of
93833         brackets in macro definition.  From Eli Zaretskii and Alain Magloire.
93834
93835 1999-02-07  Jim Meyering  <meyering@ascend.com>
93836
93837         * m4/group-member.m4: New file -- extracted from sh-utils'
93838         configure.in.
93839
93840         1999-02-05  Eli Zaretskii  <eliz@is.elta.co.il>
93841         * m4/gettext.m4: Support DOS-style d:/foo/bar absolute file names.
93842
93843 1999-02-06  Jim Meyering  <meyering@ascend.com>
93844
93845         * m4/chown.m4: Use `AC_SUBST(LIBOBJS)' since we set LIBOBJS.
93846         * m4/fnmatch.m4: Likewise.
93847         * m4/getgroups.m4: Likewise.
93848         * m4/lstat.m4: Likewise.
93849         * m4/malloc.m4: Likewise.
93850         * m4/putenv.m4: Likewise.
93851         * m4/realloc.m4: Likewise.
93852         * m4/regex.m4: Likewise.
93853         * m4/stat.m4: Likewise.
93854         * m4/strftime.m4: Likewise.
93855         Suggestion from Alain Magloire.
93856
93857         * m4/chown.m4: Use `.$ac_objext', not `.o'.
93858         * m4/fnmatch.m4: Likewise.
93859         * m4/getgroups.m4: Likewise.
93860         * m4/getline.m4: Likewise.
93861         * m4/lstat.m4: Likewise.
93862         * m4/malloc.m4: Likewise.
93863         * m4/memcmp.m4: Likewise.
93864         * m4/putenv.m4: Likewise.
93865         * m4/realloc.m4: Likewise.
93866         * m4/regex.m4: Likewise.
93867         * m4/stat.m4: Likewise.
93868         * m4/strftime.m4: Likewise.
93869         Suggestion from Alain Magloire.
93870
93871         * m4/jm-macros.m4: Actually invoke jm_WITH_REGEX now that it requires
93872         an argument.
93873
93874         * m4/regex.m4: Add a run-time Test for proper operation of
93875         re_compile_pattern.
93876
93877 1999-01-31  Jim Meyering  <meyering@ascend.com>
93878
93879         * m4/getloadavg.m4: Check for locale.h and the function, setlocale.
93880
93881 1999-01-30  Jim Meyering  <meyering@ascend.com>
93882
93883         * m4/check-type.m4: Use 3-arg form of AC_DEFINE.
93884
93885         * m4/jm-mktime.m4: Make this a wrapper around the official
93886         AM_FUNC_MKTIME rather than my private copy, now that the official one
93887         is up to date.
93888         * m4/mktime.m4: Remove file.
93889
93890         * m4/getloadavg.m4: Use 3-arg form of AC_DEFINE.
93891         * m4/uptime.m4: Likewise.
93892         * m4/uintmax_t.m4: Likewise.
93893
93894 1999-01-28  Jim Meyering  <meyering@ascend.com>
93895
93896         * m4/jm-macros.m4: Use jm_AFS.
93897         * m4/afs.m4: New file (from fileutils' configure.in).
93898
93899         * m4/assert.m4: Use the 3-argument forms of AC_DEFINE* macros.
93900         * m4/chown.m4: Likewise.
93901         * m4/d-ino.m4: Likewise.
93902         * m4/d-type.m4: Likewise.
93903         * m4/fnmatch.m4: Likewise.
93904         * m4/getgroups.m4: Likewise.
93905         * m4/gettext.m4: Likewise.
93906         * m4/jm-mktime.m4: Likewise.
93907         * m4/jm-winsz2.m4: Likewise.
93908         * m4/lcmessage.m4: Likewise.
93909         * m4/ls-mntd-fs.m4: Likewise.
93910         * m4/malloc.m4: Likewise.
93911         * m4/memcmp.m4: Likewise.
93912         * m4/putenv.m4: Likewise.
93913         * m4/realloc.m4: Likewise.
93914         * m4/st_mtim.m4: Likewise.
93915         * m4/strftime.m4: Likewise.
93916
93917 1999-01-16  Jim Meyering  <meyering@ascend.com>
93918
93919         * m4/jm-macros.m4 (ARGMATCH_DIE): Define.
93920         (ARGMATCH_DIE_DECL): Define.
93921
93922 1999-01-12  Jim Meyering  <meyering@ascend.com>
93923
93924         * m4/Makefile.am.in: Rewrite to avoid using fmt.
93925         Reported by Lars Hecking.
93926
93927 1999-01-10  Jim Meyering  <meyering@ascend.com>
93928
93929         * m4/fstypename.m4: Use the new 3-arg form of AC_DEFINE instead of my
93930         gross kludge.
93931         * m4/inttypes_h.m4: Likewise.
93932         * m4/lstat.m4: Likewise.
93933         * m4/malloc.m4: Likewise.
93934         * m4/readdir.m4: Likewise.
93935         * m4/realloc.m4: Likewise.
93936         * m4/st_dm_mode.m4: Likewise.
93937         * m4/stat.m4: Likewise.
93938         * m4/utimbuf.m4: Likewise.
93939         * m4/utimes.m4: Likewise.
93940
93941         * m4/check-decl.m4: Use the new 3-arg form of AC_DEFINE instead of the
93942         AC_CHECK_FUNCS hack.  Now, it's still a hack, but at least the
93943         comments in config.h.in are meaningful.
93944
93945         * m4/jm-macros.m4: Require autoconf-2.13 here.
93946
93947         * m4/regex.m4: By default, don't use the included regex.c on systems
93948         with glibc 2.  Suggestion from Uli Drepper.
93949
93950 1999-01-02  Jim Meyering  <meyering@ascend.com>
93951
93952         * m4/jm-macros.m4: Replace strcasecmp and strncasecmp.
93953
93954 1998-12-18  Jim Meyering  <meyering@ascend.com>
93955
93956         * m4/Makefile.am.in (Makefile.am): Simplify rule.
93957         Based on a suggestion from Lars Hecking.
93958
93959 1998-11-16  Paul Eggert  <eggert@twinsun.com>
93960
93961         * m4/lfs.m4 (AC_LFS): Add support for HP-UX 10.20 and HP-UX 11.
93962
93963 1998-11-16  Jim Meyering  <meyering@ascend.com>
93964
93965         * m4/lfs.m4: Double-quote the `uname...` expression.
93966
93967 1998-11-14  Jim Meyering  <meyering@ascend.com>
93968
93969         * m4/lstat.m4: Correct comment.  POSIX does not permit it to succeed.
93970         * m4/stat.m4: Likewise.
93971
93972 1998-11-03  Jim Meyering  <meyering@ascend.com>
93973
93974         * m4/stat.m4: Rewrite to set HAVE_STAT_EMPTY_STRING_BUG.
93975         * m4/lstat.m4: Rewrite to set HAVE_LSTAT_EMPTY_STRING_BUG.
93976
93977 1998-10-18  Jim Meyering  <meyering@ascend.com>
93978
93979         * m4/check-decl.m4 (jm_CHECK_DECL_LOCALTIME_R): Remove macro.
93980
93981 1998-10-17  Jim Meyering  <meyering@ascend.com>
93982
93983         * m4/decl.m4 (jm_CHECK_DECLARATION): Don't hard-code which headers to
93984         include, though we still hard-code the `require'-like AC_CHECK_HEADERS
93985         calls for those previously hard-coded headers.  Instead, take a new
93986         parameter.
93987         (jm_CHECK_DECLARATIONS): Reflect interface change.
93988         * m4/check-decl.m4 (jm_CHECK_DECLS): Likewise.
93989         (jm_CHECK_DECL_LOCALTIME_R): New macro.
93990
93991         * m4/mktime.m4: Test for spring-forward gap before long-running test.
93992
93993 1998-10-14  Jim Meyering  <meyering@ascend.com>
93994
93995         * m4/mktime.m4: Use the more portable "TZ=PST8PDT,M4.1.0,M10.5.0"
93996         instead of "TZ=America/Vancouver".  From Paul Eggert.
93997
93998 1998-10-11  Jim Meyering  <meyering@ascend.com>
93999
94000         * m4/mktime.m4 (jm_AM_FUNC_MKTIME): New file and macro.
94001         This adds a test for a recently added compatibility fix for mktime.c.
94002         * m4/jm-mktime.m4: Require jm_AM_FUNC_MKTIME, not AM_FUNC_MKTIME.
94003
94004 1998-09-27  Jim Meyering  <meyering@ascend.com>
94005
94006         * m4/jm-macros.m4 (jm_MACROS): Require jm_FUNC_FNMATCH.
94007
94008         * m4/fnmatch.m4 (jm_FUNC_FNMATCH): New file/macro.  Extracted from
94009         ../configure.in, including a change from Gordon Matzigkeit to allow
94010         cross-compiling for the Hurd.
94011
94012         * m4/glibc.m4: New file/macro to test for the GNU C Library
94013         versions 1 and 2.  From Gordon Matzigkeit.
94014         Indent.
94015
94016 1998-09-21  Jim Meyering  <meyering@ascend.com>
94017
94018         * m4/chown.m4: Declare locals: before, after.  From Andries Brouwer.
94019
94020 1998-08-18  Paul Eggert  <eggert@twinsun.com>
94021
94022         Port nanosecond-resolution times to UnixWare 2.1.2 and
94023         pedantic Solaris 2.6.
94024
94025         * m4/st_mtim.m4 (AC_STRUCT_ST_MTIM_NSEC): Renamed from
94026         AC_STRUCT_ST_MTIM.
94027         * m4/st_mtim.m4 (AC_STRUCT_ST_MTIM_NSEC):
94028         Generate name of ns member, instead of just 1 or undef.
94029         Allow for UnixWare 2.1.2 and Solaris 2.6 if in pedantic mode.
94030
94031 1998-08-15  Jim Meyering  <meyering@ascend.com>
94032
94033         * m4/ssize_t.m4 (jm_TYPE_SSIZE_T): Remove file.
94034         * m4/check-type.m4: New file.  Replacement for AC_CHECK_TYPE.
94035         * m4/jm-macros.m4: Use the new AC_CHECK_TYPE(ssize_t, int)
94036         instead of jm_TYPE_SSIZE_T.
94037
94038 1998-08-12  Jim Meyering  <meyering@ascend.com>
94039
94040         * m4/st_dm_mode.m4: New file.  From Johan Danielsson.
94041
94042 1998-08-02  Jim Meyering  <meyering@ascend.com>
94043
94044         * m4/st_mtim.m4: Use hack to avoid having to put #undef HAVE_ST_MTIM
94045         in acconfig.h manually.
94046
94047 1998-07-31  Paul Eggert  <eggert@twinsun.com>
94048
94049         * m4/st_mtim.m4: New file.
94050
94051 1998-07-28  Jim Meyering  <meyering@ascend.com>
94052
94053         * m4/utimes.m4: Undef stat.
94054
94055 1998-07-25  Jim Meyering  <meyering@ascend.com>
94056
94057         * m4/utime.m4 (jm_FUNC_UTIME): New file and macro.
94058         * m4/utimes.m4 (jm_FUNC_UTIMES_NULL): New file and macro.
94059
94060 1998-07-09  Manfred Hollstein  <manfred@s-direktnet.de>
94061
94062         * m4/chown.m4 (jm_FUNC_CHOWN): Add a check to verify that the
94063         uid and gid actually remain unchanged.
94064
94065 1998-07-07  Jim Meyering  <meyering@ascend.com>
94066
94067         * m4/jm-glibc-io.m4: Remove fclose_unlocked.
94068
94069 1998-07-04  Jim Meyering  <meyering@ascend.com>
94070
94071         * m4/regex.m4: Use syscmd, ifelse, and sysval.  Mainly as an exercise
94072         to prove that this macro can be used in packages without regex.c.
94073
94074 1998-07-04  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
94075
94076         * m4/gettext.m4 (AM_WITH_NLS): Remove intl/libintl.h if <libintl.h>
94077         is to be used.
94078
94079 1998-07-03  Jim Meyering  <meyering@ascend.com>
94080
94081         * m4/gettext.m4: Add -lintl if it's found to be necessary.
94082
94083         * m4/gettext.m4: New file -- from gettext-0.10.35.
94084         * m4/lcmessage.m4: Likewise.
94085         * m4/progtest.m4: Likewise.
94086
94087         * m4/regex.m4 (jm_WITH_REGEX): New file and macro.
94088         * m4/jm-macros.m4: Require the new macro.
94089
94090 1998-06-29  Jim Meyering  <meyering@ascend.com>
94091
94092         * m4/fstypename.m4: Include sys/param.h.  NetBSD 1.3.1 requires this
94093         for the definition of NGROUPS (used in a system header included
94094         by sys/mount.h).
94095
94096 1998-06-28  Jim Meyering  <meyering@ascend.com>
94097
94098         * m4/ls-mntd-fs.m4: New file.
94099         * m4/fstypename.m4: New file.
94100
94101         * m4/jm-macros.m4: Require the new macro.
94102         * m4/jm-glibc-io.m4: New file.
94103
94104 1998-05-19  Jim Meyering  <meyering@ascend.com>
94105
94106         * m4/jm-macros.m4: Add jm_FUNC_LCHOWN.
94107         * m4/lchown.m4: New file.
94108
94109         * m4/Makefile.am.in: New file.
94110         * m4/Makefile.am (Makefile.am): Depend on Makefile.am.in.
94111
94112 1998-05-14  Jim Meyering  <meyering@ascend.com>
94113
94114         * m4/Makefile.am (EXTRA_DIST): Add them.
94115         * m4/jm-macros.m4: New file.
94116         * m4/utimbuf.m4: New file.
94117
94118 1998-05-12  Jim Meyering  <meyering@ascend.com>
94119
94120         * m4/Makefile.am (EXTRA_DIST): Add isc-posix.m4.
94121
94122 1998-05-11  Jim Meyering  <meyering@ascend.com>
94123
94124         * m4/isc-posix.m4: New file.
94125
94126 1998-05-10  Jim Meyering  <meyering@ascend.com>
94127
94128         * m4/jm-mktime.m4: Use AM_FUNC_MKTIME, now that it's up to date.
94129
94130 1998-05-09  Jim Meyering  <meyering@ascend.com>
94131
94132         * m4/Makefile.am (EXTRA_DIST): Add ssize_t.m4.
94133         (EXTRA_DIST): Remove mktime.m4, now that the new version is included
94134         with automake.
94135
94136         * m4/ssize_t.m4: New file.
94137         * m4/mktime.m4: Remove file -- the new automake has this now.
94138
94139 1998-04-26  Jim Meyering  <meyering@ascend.com>
94140
94141         * m4/assert.m4: New file.
94142         * m4/Makefile.am (EXTRA_DIST): Add assert.m4.
94143
94144 1998-04-05  Jim Meyering  <meyering@ascend.com>
94145
94146         * m4/prereq.m4 (jm_PREREQ_REGEX): New macro.
94147         (jm_PREREQ): Use it here.
94148
94149 1998-03-23  Jim Meyering  <meyering@eng.ascend.com>
94150
94151         * m4/inttypes_h.m4: Kludges so I don't have to add HAVE_INTTYPES_H
94152         in acconfig.h.
94153
94154 1998-03-15  Jim Meyering  <meyering@eng.ascend.com>
94155
94156         * m4/prereq.m4: New file.
94157         * m4/error.m4: New file.
94158         * m4/Makefile.am (EXTRA_DIST): Add error.m4 and prereq.m4.
94159
94160 1998-02-07  Jim Meyering  <meyering@eng.ascend.com>
94161
94162         * m4/getline.m4: Don't set am_cv_func_working_getline before the
94163         cache-check for the same variable -- that defeated the purpose of
94164         the test; the test program was never run.  This was a problem only
94165         on systems with losing getline functions -- HP-UX 10.20 is one.
94166         Reported by Bjorn Helgaas.
94167
94168 1998-02-06  Jim Meyering  <meyering@eng.ascend.com>
94169
94170         * m4/Makefile.am (EXTRA_DIST): Add perl.m4.
94171
94172 1998-01-10  Jim Meyering  <meyering@na-net.ornl.gov>
94173
94174         * m4/Makefile.am (EXTRA_DIST): Add const.m4.
94175
94176         * m4/const.m4: New file.  Use an initializer in this declaration
94177         typedef int charset[2]; const charset x;
94178         Reported by Bob Glickstein.
94179
94180 1997-12-21  Jim Meyering  <meyering@na-net.ornl.gov>
94181
94182         * m4/chown.m4: Fix reversed types on -1 args to chown.
94183         From Kaveh Ghazi.
94184
94185 1997-12-14  Jim Meyering  <meyering@na-net.ornl.gov>
94186
94187         * m4/check-decl.m4: s/DECLARATION_/DECL_/g.
94188         Add lseek and memchr.
94189
94190         * m4/decl.m4: s/HAVE_DECLARATION_/HAVE_DECL_/g.
94191         T.E.Dickey <dickey@clark.net> said that some older preprocessors
94192         have a 20-character limit on names.
94193
94194 1997-11-30  Jim Meyering  <meyering@na-net.ornl.gov>
94195
94196         * m4/inttypes_h.m4: New file.
94197         * m4/uintmax_t.m4: New file.
94198         * m4/Makefile.am (EXTRA_DIST): Add inttypes_h.m4 and uintmax_t.m4.
94199
94200
94201         -----
94202
94203         Local Variables:
94204         coding: utf-8
94205         End:
94206
94207         Copyright (C) 1997-2012 Free Software Foundation, Inc.
94208
94209         Copying and distribution of this file, with or without
94210         modification, are permitted provided the copyright notice
94211         and this notice are preserved.