atan2: Use a .m4 file.
[gnulib.git] / ChangeLog
1 2011-10-08  Bruno Haible  <bruno@clisp.org>
2
3         atan2: Use a .m4 file.
4         * m4/atan2.m4: New file.
5         * modules/atan2 (Files): Add it.
6         (configure.ac): Just invoke gl_FUNC_ATAN2.
7
8 2011-10-08  Bruno Haible  <bruno@clisp.org>
9
10         Tests for module 'atanf'.
11         * modules/atanf-tests: New file.
12         * tests/test-atanf.c: New file.
13
14         New module 'atanf'.
15         * lib/math.in.h (atanf): New declaration.
16         * lib/atanf.c: New file.
17         * m4/atanf.m4: New file.
18         * m4/math_h.m4 (gl_MATH_H): Test whether atanf is declared.
19         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ATANF, HAVE_ATANF.
20         * modules/math (Makefile.am): Substitute GNULIB_ATANF, HAVE_ATANF.
21         * modules/atanf: New file.
22         * tests/test-math-c++.cc: Check the declaration of atanf.
23         * doc/posix-functions/atanf.texi: Mention the new module.
24
25         atan: Use a .m4 file.
26         * m4/atan.m4: New file.
27         * modules/atan (Files): Add it.
28         (configure.ac): Just invoke gl_FUNC_ATAN.
29
30 2011-10-08  Bruno Haible  <bruno@clisp.org>
31
32         Tests for module 'acosf'.
33         * modules/acosf-tests: New file.
34         * tests/test-acosf.c: New file.
35
36         New module 'acosf'.
37         * lib/math.in.h (acosf): New declaration.
38         * lib/acosf.c: New file.
39         * m4/acosf.m4: New file.
40         * m4/math_h.m4 (gl_MATH_H): Test whether acosf is declared.
41         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ACOSF, HAVE_ACOSF.
42         * modules/math (Makefile.am): Substitute GNULIB_ACOSF, HAVE_ACOSF.
43         * modules/acosf: New file.
44         * tests/test-math-c++.cc: Check the declaration of acosf.
45         * doc/posix-functions/acosf.texi: Mention the new module.
46
47         acos: Use a .m4 file.
48         * m4/acos.m4: New file.
49         * modules/acos (Files): Add it.
50         (configure.ac): Just invoke gl_FUNC_ACOS.
51
52 2011-10-08  Bruno Haible  <bruno@clisp.org>
53
54         Tests for module 'asinf'.
55         * modules/asinf-tests: New file.
56         * tests/test-asinf.c: New file.
57
58         New module 'asinf'.
59         * lib/math.in.h (asinf): New declaration.
60         * lib/asinf.c: New file.
61         * m4/asinf.m4: New file.
62         * m4/math_h.m4 (gl_MATH_H): Test whether asinf is declared.
63         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ASINF, HAVE_ASINF.
64         * modules/math (Makefile.am): Substitute GNULIB_ASINF, HAVE_ASINF.
65         * modules/asinf: New file.
66         * tests/test-math-c++.cc: Check the declaration of asinf.
67         * doc/posix-functions/asinf.texi: Mention the new module.
68
69         asin: Use a .m4 file.
70         * m4/asin.m4: New file.
71         * modules/asin (Files): Add it.
72         (configure.ac): Just invoke gl_FUNC_ASIN.
73
74 2011-10-08  Bruno Haible  <bruno@clisp.org>
75
76         Tests for module 'tanf'.
77         * modules/tanf-tests: New file.
78         * tests/test-tanf.c: New file.
79
80         New module 'tanf'.
81         * lib/math.in.h (tanf): New declaration.
82         * lib/tanf.c: New file.
83         * m4/tanf.m4: New file.
84         * m4/math_h.m4 (gl_MATH_H): Test whether tanf is declared.
85         (gl_MATH_H_DEFAULTS): Initialize GNULIB_TANF, HAVE_TANF.
86         * modules/math (Makefile.am): Substitute GNULIB_TANF, HAVE_TANF.
87         * modules/tanf: New file.
88         * tests/test-math-c++.cc: Check the declaration of tanf.
89         * doc/posix-functions/tanf.texi: Mention the new module.
90
91         tan: Use a .m4 file.
92         * m4/tan.m4: New file.
93         * modules/tan (Files): Add it.
94         (configure.ac): Just invoke gl_FUNC_TAN.
95
96 2011-10-08  Bruno Haible  <bruno@clisp.org>
97
98         Tests for module 'cosf'.
99         * modules/cosf-tests: New file.
100         * tests/test-cosf.c: New file.
101
102         New module 'cosf'.
103         * lib/math.in.h (cosf): New declaration.
104         * lib/cosf.c: New file.
105         * m4/cosf.m4: New file.
106         * m4/math_h.m4 (gl_MATH_H): Test whether cosf is declared.
107         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COSF, HAVE_COSF.
108         * modules/math (Makefile.am): Substitute GNULIB_COSF, HAVE_COSF.
109         * modules/cosf: New file.
110         * tests/test-math-c++.cc: Check the declaration of cosf.
111         * doc/posix-functions/cosf.texi: Mention the new module.
112
113         cos: Use a .m4 file.
114         * m4/cos.m4: New file.
115         * modules/cos (Files): Add it.
116         (configure.ac): Just invoke gl_FUNC_COS.
117
118 2011-10-08  Bruno Haible  <bruno@clisp.org>
119
120         Tests for module 'sinf'.
121         * modules/sinf-tests: New file.
122         * tests/test-sinf.c: New file.
123
124         New module 'sinf'.
125         * lib/math.in.h (sinf): New declaration.
126         * lib/sinf.c: New file.
127         * m4/sinf.m4: New file.
128         * m4/math_h.m4 (gl_MATH_H): Test whether sinf is declared.
129         (gl_MATH_H_DEFAULTS): Initialize GNULIB_SINF, HAVE_SINF.
130         * modules/math (Makefile.am): Substitute GNULIB_SINF, HAVE_SINF.
131         * modules/sinf: New file.
132         * tests/test-math-c++.cc: Check the declaration of sinf.
133         * doc/posix-functions/sinf.texi: Mention the new module.
134
135         sin: Use a .m4 file.
136         * m4/sin.m4: New file.
137         * modules/sin (Files): Add it.
138         (configure.ac): Just invoke gl_FUNC_SIN.
139
140 2011-10-08  Bruno Haible  <bruno@clisp.org>
141
142         Tests for module 'powf'.
143         * modules/powf-tests: New file.
144         * tests/test-powf.c: New file.
145
146         New module 'powf'.
147         * lib/math.in.h (powf): New declaration.
148         * lib/powf.c: New file.
149         * m4/powf.m4: New file.
150         * m4/math_h.m4 (gl_MATH_H): Test whether powf is declared.
151         (gl_MATH_H_DEFAULTS): Initialize GNULIB_POWF, HAVE_POWF.
152         * modules/math (Makefile.am): Substitute GNULIB_POWF, HAVE_POWF.
153         * modules/powf: New file.
154         * tests/test-math-c++.cc: Check the declaration of powf.
155         * doc/posix-functions/powf.texi: Mention the new module.
156
157         pow: Use a .m4 file.
158         * m4/pow.m4: New file.
159         * modules/pow (Files): Add it.
160         (configure.ac): Just invoke gl_FUNC_POW.
161
162 2011-10-08  Bruno Haible  <bruno@clisp.org>
163
164         Tests for module 'log10f'.
165         * modules/log10f-tests: New file.
166         * tests/test-log10f.c: New file.
167
168         New module 'log10f'.
169         * lib/math.in.h (log10f): New declaration.
170         * lib/log10f.c: New file.
171         * m4/log10f.m4: New file.
172         * m4/math_h.m4 (gl_MATH_H): Test whether log10f is declared.
173         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG10F, HAVE_LOG10F.
174         * modules/math (Makefile.am): Substitute GNULIB_LOG10F, HAVE_LOG10F.
175         * modules/log10f: New file.
176         * tests/test-math-c++.cc: Check the declaration of log10f.
177         * doc/posix-functions/log10f.texi: Mention the new module.
178
179         log10: Use a .m4 file.
180         * m4/log10.m4: New file.
181         * modules/log10 (Files): Add it.
182         (configure.ac): Just invoke gl_FUNC_LOG10.
183
184 2011-10-08  Bruno Haible  <bruno@clisp.org>
185
186         Tests for module 'logf'.
187         * modules/logf-tests: New file.
188         * tests/test-logf.c: New file.
189
190         New module 'logf'.
191         * lib/math.in.h (logf): New declaration.
192         * lib/logf.c: New file.
193         * m4/logf.m4: New file.
194         * m4/math_h.m4 (gl_MATH_H): Test whether logf is declared.
195         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOGF, HAVE_LOGF.
196         * modules/math (Makefile.am): Substitute GNULIB_LOGF, HAVE_LOGF.
197         * modules/logf: New file.
198         * tests/test-math-c++.cc: Check the declaration of logf.
199         * doc/posix-functions/logf.texi: Mention the new module.
200
201         log: Use a .m4 file.
202         * m4/log.m4: New file.
203         * modules/log (Files): Add it.
204         (configure.ac): Just invoke gl_FUNC_LOG.
205
206 2011-10-08  Bruno Haible  <bruno@clisp.org>
207
208         Tests for module 'expf'.
209         * modules/expf-tests: New file.
210         * tests/test-expf.c: New file.
211
212         New module 'expf'.
213         * lib/math.in.h (expf): New declaration.
214         * lib/expf.c: New file.
215         * m4/expf.m4: New file.
216         * m4/math_h.m4 (gl_MATH_H): Test whether expf is declared.
217         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXPF, HAVE_EXPF.
218         * modules/math (Makefile.am): Substitute GNULIB_EXPF, HAVE_EXPF.
219         * modules/expf: New file.
220         * tests/test-math-c++.cc: Check the declaration of expf.
221         * doc/posix-functions/expf.texi: Mention the new module.
222
223         exp: Use a .m4 file.
224         * m4/exp.m4: New file.
225         * modules/exp (Files): Add it.
226         (configure.ac): Just invoke gl_FUNC_EXP.
227
228 2011-10-08  Bruno Haible  <bruno@clisp.org>
229
230         Tests for module 'sqrtf'.
231         * modules/sqrtf-tests: New file.
232         * tests/test-sqrtf.c: New file.
233
234         New module 'sqrtf'.
235         * lib/math.in.h (sqrtf): New declaration.
236         * lib/sqrtf.c: New file.
237         * m4/sqrtf.m4: New file.
238         * m4/math_h.m4 (gl_MATH_H): Test whether sqrtf is declared.
239         (gl_MATH_H_DEFAULTS): Initialize GNULIB_SQRTF, HAVE_SQRTF.
240         * modules/math (Makefile.am): Substitute GNULIB_SQRTF, HAVE_SQRTF.
241         * modules/sqrtf: New file.
242         * tests/test-math-c++.cc: Check the declaration of sqrtf.
243         * doc/posix-functions/sqrtf.texi: Mention the new module.
244
245 2011-10-08  Bruno Haible  <bruno@clisp.org>
246
247         Tests: Avoid link failures w.r.t. libintl.
248         * modules/faccessat-tests (Makefile.am): Link test-faccessat against
249         $(LIBINTL).
250         * modules/fchdir-tests (Makefile.am): Link test-fchdir against
251         $(LIBINTL).
252         * modules/getcwd-lgpl-tests (Makefile.am): Link test-getcwd-lgpl
253         against $(LIBINTL).
254         * modules/getcwd-tests (Makefile.am): Link test-getcwd against
255         $(LIBINTL).
256         * modules/openat-tests (Makefile.am): Link test-fchmodat against
257         $(LIBINTL).
258         * modules/stat-tests (Makefile.am): Link test-stat against $(LIBINTL).
259
260 2011-10-08  Bruno Haible  <bruno@clisp.org>
261
262         pow tests: Defeat compiler optimizations.
263         * tests/test-pow.c (main): Assign arguments to x and y before use.
264
265 2011-10-08  Bruno Haible  <bruno@clisp.org>
266
267         gnulib-tool: Improve last commit.
268         * gnulib-tool (func_modules_transitive_closure): Simplify code.
269         (func_emit_autoconf_snippets): Instead of invoking func_acceptable,
270         ignore dependencies that are not among the modules list.
271
272 2011-10-07  Paul Eggert  <eggert@cs.ucla.edu>
273
274         gnulib-tool: don't follow dependencies to avoided modules
275         This fixes a bug that is related to the previous one.
276         * gnulib-tool (func_modules_transitive_closure)
277         (func_emit_autoconf_snippets):
278         Check whether a dependency is acceptable before using it.
279         (--extract-dependencies): Report an error if --avoid is also used,
280         since this combination of options is not yet supported.
281
282         gnulib-tool: fix typo that broke Emacs on powerpc-apple-darwin9.8.0.
283         Problem reported by Peter Dyballa in
284         <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=9696>.
285         * gnulib-tool (func_emit_autoconf_snippets): Quote with "", not '',
286         when echoing "$condition".
287
288 2011-10-07  Bruno Haible  <bruno@clisp.org>
289
290         Fix documentation about math functions on MacOS X.
291         * doc/posix-functions/exp2.texi: Don't say the function is missing on
292         MacOS X 10.5.
293         * doc/posix-functions/fdim.texi: Likewise.
294         * doc/posix-functions/feclearexcept.texi: Likewise.
295         * doc/posix-functions/fegetenv.texi: Likewise.
296         * doc/posix-functions/fegetround.texi: Likewise.
297         * doc/posix-functions/feholdexcept.texi: Likewise.
298         * doc/posix-functions/feraiseexcept.texi: Likewise.
299         * doc/posix-functions/fesetenv.texi: Likewise.
300         * doc/posix-functions/fesetround.texi: Likewise.
301         * doc/posix-functions/fetestexcept.texi: Likewise.
302         * doc/posix-functions/feupdateenv.texi: Likewise.
303         * doc/posix-functions/fmax.texi: Likewise.
304         * doc/posix-functions/fmin.texi: Likewise.
305         * doc/posix-functions/log2.texi: Likewise.
306         * doc/posix-functions/modff.texi: Likewise.
307         * doc/posix-functions/nan.texi: Likewise.
308         * doc/posix-functions/nanf.texi: Likewise.
309         * doc/posix-functions/nextafterf.texi: Likewise.
310         * doc/posix-functions/remquo.texi: Likewise.
311
312 2011-10-07  Bruno Haible  <bruno@clisp.org>
313
314         modff: Drop assumption about library that defines modff.
315         * m4/modff.m4 (gl_FUNC_MODFF): Use gl_MATHFUNC macro instead of
316         AC_CHECK_FUNCS.
317         * modules/modff (Files): Add m4/mathfunc.m4.
318
319 2011-10-07  Bernhard Voelker  <mail@bernhard-voelker.de>
320
321         raise tests: Avoid a GCC warning.
322         * tests/test-raise.c (handler): Use _Noreturn.
323
324 2011-10-07  Bruno Haible  <bruno@clisp.org>
325
326         Tests for module 'ldexpf'.
327         * modules/ldexpf-tests: New file.
328         * tests/test-ldexpf.c: New file.
329
330         New module 'ldexpf'.
331         * lib/math.in.h (ldexpf): New declaration.
332         * lib/ldexpf.c: New file.
333         * m4/ldexpf.m4: New file.
334         * m4/math_h.m4 (gl_MATH_H): Test whether ldexpf is declared.
335         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LDEXPF, HAVE_LDEXPF.
336         * modules/math (Makefile.am): Substitute GNULIB_LDEXPF, HAVE_LDEXPF.
337         * modules/ldexpf: New file.
338         * tests/test-math-c++.cc: Check the declaration of ldexpf.
339         * doc/posix-functions/ldexpf.texi: Mention the new module.
340
341 2011-10-06  Bruno Haible  <bruno@clisp.org>
342
343         frexpf: Work around problems on IRIX and mingw.
344         * lib/math.in.h (frexpf): Consider also REPLACE_FREXPF.
345         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_FREXPF.
346         * m4/frexpf.m4 (gl_FUNC_FREXPF_WORKS): New macro.
347         (gl_FUNC_FREXPF): Invoke it. Set REPLACE_FREXPF.
348         * modules/frexpf (Depends-on, configure.ac): Consider REPLACE_FREXPF.
349         * modules/math (Makefile.am): Substitute REPLACE_FREXPF.
350         * doc/posix-functions/frexpf.texi: Mention the IRIX and mingw problems.
351
352 2011-10-06  Bruno Haible  <bruno@clisp.org>
353
354         fabsf: Drop assumption about library that defines fabsf.
355         * m4/fabsf.m4 (gl_FUNC_FABSF): Use gl_MATHFUNC macro instead of
356         AC_CHECK_FUNCS.
357         * modules/fabsf (Files): Add m4/mathfunc.m4.
358
359 2011-10-06  Bruno Haible  <bruno@clisp.org>
360
361         frexpf: Drop assumption about library that defines frexpf.
362         * m4/mathfunc.m4 (gl_MATHFUNC): Support also the argument types
363         'int *', 'float *', 'long double *', 'float', 'long double'.
364         * m4/frexpf.m4 (gl_FUNC_FREXPF): Use gl_MATHFUNC macro instead of
365         AC_CHECK_FUNCS.
366         * modules/frexpf (Files): Add m4/mathfunc.m4.
367
368         Tests for module 'frexpf'.
369         * modules/frexpf-tests: New file.
370         * tests/test-frexpf.c: New file.
371
372         New module 'frexpf'.
373         * lib/math.in.h (frexpf): New declaration.
374         * lib/frexpf.c: New file.
375         * m4/frexpf.m4: New file.
376         * m4/math_h.m4 (gl_MATH_H): Test whether frexpf is declared.
377         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FREXPF, HAVE_FREXPF.
378         * modules/math (Makefile.am): Substitute GNULIB_FREXPF, HAVE_FREXPF.
379         * modules/frexpf: New file.
380         * tests/test-math-c++.cc: Check the declaration of frexpf.
381         * doc/posix-functions/frexpf.texi: Mention the new module.
382
383 2011-10-06  Bruno Haible  <bruno@clisp.org>
384
385         math: Sort function declarations of math.in.h.
386         * lib/math.in.h (frexp, logb): Move declarations.
387
388 2011-10-05  Bruno Haible  <bruno@clisp.org>
389
390         Tests for module 'modff'.
391         * modules/modff-tests: New file.
392         * tests/test-modff.c: New file.
393
394         New module 'modff'.
395         * lib/math.in.h (modff): New declaration.
396         * lib/modff.c: New file.
397         * m4/modff.m4: New file.
398         * m4/math_h.m4 (gl_MATH_H): Test whether modff is declared.
399         (gl_MATH_H_DEFAULTS): Initialize GNULIB_MODFF, HAVE_MODFF.
400         * modules/math (Makefile.am): Substitute GNULIB_MODFF, HAVE_MODFF.
401         * modules/modff: New file.
402         * tests/test-math-c++.cc: Check the declaration of modff.
403         * doc/posix-functions/modff.texi: Mention the new module.
404
405         modf tests: Make test sharper.
406         * tests/test-modf.c (main): Strengthen upper bound.
407
408         modf: Use a .m4 file.
409         * m4/modf.m4: New file.
410         * modules/modf (Files): Add it.
411         (configure.ac): Just invoke gl_FUNC_MODF.
412
413 2011-10-05  Bruno Haible  <bruno@clisp.org>
414
415         Tests for module 'fmodf'.
416         * modules/fmodf-tests: New file.
417         * tests/test-fmodf.c: New file.
418
419         New module 'fmodf'.
420         * lib/math.in.h (fmodf): New declaration.
421         * lib/fmodf.c: New file.
422         * m4/fmodf.m4: New file.
423         * m4/math_h.m4 (gl_MATH_H): Test whether fmodf is declared.
424         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMODF, HAVE_FMODF.
425         * modules/math (Makefile.am): Substitute GNULIB_FMODF, HAVE_FMODF.
426         * modules/fmodf: New file.
427         * tests/test-math-c++.cc: Check the declaration of fmodf.
428         * doc/posix-functions/fmodf.texi: Mention the new module.
429
430         fmod: Use a .m4 file.
431         * m4/fmod.m4: New file.
432         * modules/fmod (Files): Add it.
433         (configure.ac): Just invoke gl_FUNC_FMOD.
434
435 2011-10-05  Bruno Haible  <bruno@clisp.org>
436
437         Tests for module 'fabsf'.
438         * modules/fabsf-tests: New file.
439         * tests/test-fabsf.c: New file.
440
441         New module 'fabsf'.
442         * lib/math.in.h (fabsf): New declaration.
443         * lib/fabsf.c: New file.
444         * m4/fabsf.m4: New file.
445         * m4/math_h.m4 (gl_MATH_H): Test whether fabsf is declared.
446         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FABSF, HAVE_FABSF.
447         * modules/math (Makefile.am): Substitute GNULIB_FABSF, HAVE_FABSF.
448         * modules/fabsf: New file.
449         * tests/test-math-c++.cc: Check the declaration of fabsf.
450         * doc/posix-functions/fabsf.texi: Mention the new module.
451
452         fabs: Use a .m4 file.
453         * m4/fabs.m4: New file.
454         * modules/fabs (Files): Add it.
455         (configure.ac): Just invoke gl_FUNC_FABS.
456
457 2011-10-05  Jim Meyering  <meyering@redhat.com>
458
459         file-has-acl: revert both recent changes, 80af92af and 95f7c57f
460         * lib/file-has-acl.c: While the 2011-10-03 change does fix the
461         ls -lL regression introduced in coreutils-8.12, it does so at the
462         cost of an additional stat call in the common case.  Besides, now
463         that the kernel change that prompted commit 95f7c57f has been reverted
464         (see https://bugzilla.redhat.com/show_bug.cgi?id=720325#c24)
465         we have no use for commit 95f7c57f, "file-has-acl: use
466         acl_extended_file_nofollow if available".
467
468 2011-10-03  Kamil Dudka  <kdudka@redhat.com>
469
470         file-has-acl: revert unintended change in behavior of ls -L
471         * lib/file-has-acl.c (acl_extended_file_wrap): New function,
472         derived from...
473         (file_has_acl): ...code here.  Call it.
474         This problem was introduced with 2011-07-22 commit 95f7c57f,
475         "file-has-acl: use acl_extended_file_nofollow if available".
476         See http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/28538
477
478 2011-10-03  Bruno Haible  <bruno@clisp.org>
479
480         poll: Avoid link errors on MSVC.
481         * m4/poll.m4 (gl_FUNC_POLL): Determine LIB_POLL.
482         * modules/poll (Depends-on): Add sockets.
483         (Link): New section.
484         * NEWS: Mention the change.
485         * modules/poll-tests (Makefile.am): Link test-poll against $(LIB_POLL).
486         * modules/poll-h-c++-tests (Makefile.am): Link test-poll-h-c++ against
487         $(LIB_POLL) instead of $(LIBSOCKET).
488
489 2011-10-03  Bruno Haible  <bruno@clisp.org>
490
491         sys_select tests: Fix link error on MSVC 9.
492         * modules/sys_select-c++-tests (Makefile.am): Link test-sys_select-c++
493         with $(LIB_SELECT) instead of $(LIBSOCKET).
494
495 2011-10-03  Bruno Haible  <bruno@clisp.org>
496
497         sys_select: Fix compilation error on mingw.
498         * lib/sys_select.in.h: On native Windows, include <io.h>.
499
500 2011-10-03  Bruno Haible  <bruno@clisp.org>
501
502         wmemset: Support for MSVC.
503         * m4/wmemset.m4 (gl_FUNC_WMEMSET): Use a small test program to test
504         whether wmemset() exists.
505
506 2011-10-03  Bruno Haible  <bruno@clisp.org>
507
508         wmemmove: Support for MSVC.
509         * m4/wmemmove.m4 (gl_FUNC_WMEMMOVE): Use a small test program to test
510         whether wmemmove() exists.
511
512 2011-10-03  Bruno Haible  <bruno@clisp.org>
513
514         wmemcpy: Support for MSVC.
515         * m4/wmemcpy.m4 (gl_FUNC_WMEMCPY): Use a small test program to test
516         whether wmemcpy() exists.
517
518 2011-10-03  Bruno Haible  <bruno@clisp.org>
519
520         wmemcmp: Support for MSVC.
521         * m4/wmemcmp.m4 (gl_FUNC_WMEMCMP): Use a small test program to test
522         whether wmemcmp() exists.
523
524 2011-10-03  Bruno Haible  <bruno@clisp.org>
525
526         wmemchr: Support for MSVC.
527         * m4/wmemchr.m4 (gl_FUNC_WMEMCHR): Use a small test program to test
528         whether wmemchr() exists.
529
530 2011-10-03  Bruno Haible  <bruno@clisp.org>
531
532         glthread/*, strsignal: Support for MSVC.
533         * lib/glthread/cond.h: Define WIN32_LEAN_AND_MEAN, so as to avoid
534         including <winsock.h> on MSVC 9.
535         * lib/glthread/lock.h: Likewise.
536         * lib/glthread/thread.h: Likewise.
537         * lib/glthread/tls.h: Likewise.
538         * lib/glthread/yield.h: Likewise.
539         * lib/strsignal.c: Include <string.h> first. Don't include <unistd.h>
540         if HAVE_UNISTD_H is false.
541         * m4/strsignal.m4 (gl_PREREQ_STRSIGNAL): Test for <unistd.h>.
542
543 2011-10-03  Bruno Haible  <bruno@clisp.org>
544
545         nonblocking tests: Fix test failure on OpenBSD/SPARC64.
546         * tests/test-nonblocking-socket.h (SOCKET_DATA_BLOCK_SIZE) [OpenBSD]:
547         Set to 100000.
548
549 2011-10-03  Bruno Haible  <bruno@clisp.org>
550
551         acl: Fix specification.
552         * lib/file-has-acl.c (file_has_acl): Fix specification.
553
554 2011-10-03  Bruno Haible  <bruno@clisp.org>
555
556         relocatable-lib[-lgpl]: Avoid expensive /proc access on Linux, Cygwin.
557         * lib/relocatable.c (ENABLE_COSTLY_RELOCATABLE): New macro.
558         (compute_curr_prefix, shared_library_fullname,
559         find_shared_library_fullname, get_shared_library_fullname, relocate):
560         Use it together with PIC && INSTALLDIR.
561         Reported by <jojelino@gmail.com>
562         via Charles Wilson <cygwin@cwilson.fastmail.fm>.
563
564 2011-10-01  Jim Meyering  <meyering@redhat.com>
565
566         maint.mk: adjust a release-related rule not to require use of gzip
567         * top/maint.mk (writable-files): Don't hard-code use of .tar.gz.
568         Instead, check each file in $(DIST_ARCHIVES).  This is better for
569         projects that build only .tar.xz files.  Also fix an erroneous test.
570
571         test-linkat: don't leave behind a temporary file
572         * tests/test-linkat.c (main): Don't forget to remove a temporary file.
573         Otherwise, coreutils' "make distcheck" would fail with this:
574           Only in /c/cu/tests/torture/coreutils/test/\
575             coreutils-8.13.22-d5caf.old/gnulib-tests: test-linkat.too
576           make[2]: *** [my-distcheck] Error 1
577
578         float, math: add omitted file
579         * lib/itold.c: Add file, required for yesterday's float change.
580
581 2011-10-01  Bruno Haible  <bruno@clisp.org>
582
583         isinf: Fix for OpenBSD/x86.
584         * m4/isinf.m4 (gl_ISINFL_WORKS): Also test the behaviour of isinf on
585         pseudo-NaNs, pseudo-Infinities, and other non-IEEE values.
586         * doc/posix-functions/isinf.texi: Mention the problem on OpenBSD/x86.
587
588 2011-10-01  Bruno Haible  <bruno@clisp.org>
589
590         isfinite: Fix syntax error in configure test.
591         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Fix syntax error.
592
593         isfinite: Fix typo.
594         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): When cross-compiling, set
595         gl_cv_func_isfinitel_works, not gl_cv_func_isnanl_works.
596
597 2011-10-01  Bruno Haible  <bruno@clisp.org>
598
599         nonblocking tests: Fix test failure on Linux/IA-64.
600         * tests/test-nonblocking-pipe.h (PIPE_DATA_BLOCK_SIZE) [Linux/IA-64]:
601         Set to 270000.
602
603 2011-10-01  Bruno Haible  <bruno@clisp.org>
604
605         mkfifoat tests: Fix a test failure on mingw.
606         * tests/test-mkfifoat.c (main): Allow mkfifoat or test_mknodat to fail
607         with error ENOSYS.
608
609 2011-09-30  Bruno Haible  <bruno@clisp.org>
610
611         float, math: Fix 'int' to 'long double' conversion on Linux/SPARC64.
612         * m4/float_h.m4 (gl_FLOAT_H): Test conversion from 'int' to
613         'long double'. Set REPLACE_ITOLD.
614         * lib/float.in.h (_Qp_itoq, _gl_float_fix_itold): New declarations.
615         * lib/math.in.h (_Qp_itoq, _gl_math_fix_itold): New declarations.
616         * lib/itold.c: New file.
617         * modules/float (Files): Add lib/itold.c.
618         (configure.ac): When REPLACE_ITOLD is 1, arrange to compile itold.c.
619         (Makefile.am): Substitute REPLACE_ITOLD.
620         * modules/math (Depends-on): Add float.
621         (Makefile.am): Substitute REPLACE_ITOLD.
622         * doc/posix-headers/float.texi: Mention problem on Linux/SPARC64.
623         * doc/posix-headers/math.texi: Likewise.
624         * doc/posix-functions/logl.texi: Likewise.
625
626 2011-09-30  Bruno Haible  <bruno@clisp.org>
627
628         nonblocking tests: Fix test failure on Linux/SPARC (32-bit and 64-bit).
629         * tests/test-nonblocking-pipe.h (PIPE_DATA_BLOCK_SIZE) [Linux/SPARC]:
630         Set to 140000.
631
632 2011-09-30  Bruno Haible  <bruno@clisp.org>
633
634         gnulib-tool: Improve suggestion where to put gl_EARLY invocation.
635         * gnulib-tool (func_import): If the configure.ac has an AC_PROG_CC_STDC
636         invocation, say "right after AC_PROG_CC_STDC", not "right after
637         AC_PROG_CC".
638         Reported by Gary V. Vaughan <gary@gnu.org>.
639
640 2011-09-30  Bruno Haible  <bruno@clisp.org>
641
642         Centralize C99 requirement.
643         * m4/gnulib-common.m4 (gl_PROG_CC_C99): New macro.
644         * modules/stdarg (configure.ac-early): Invoke it instead of
645         AC_PROG_CC_STDC.
646         Reported by Gary V. Vaughan and Paul Eggert.
647
648 2011-09-29  Bruno Haible  <bruno@clisp.org>
649
650         float: Fix LDBL_MAX value on Linux/PowerPC.
651         * m4/float_h.m4 (gl_FLOAT_H): Set FLOAT_H and REPLACE_FLOAT_LDBL also
652         on Linux/PowerPC.
653         * lib/float.in.h (LDBL_MAX): Redefine also on Linux/PowerPC.
654         * lib/float.c (gl_LDBL_MAX): Also define on Linux/PowerPC.
655         * doc/posix-headers/float.texi: Mention Linux/PowerPC as an affected
656         platform.
657         Reported by Andreas Metzler <ametzler@downhill.at.eu.org>.
658
659 2011-09-29  Bruno Haible  <bruno@clisp.org>
660
661         doc: Improve doc about gl_EARLY.
662         * doc/gnulib-tool.texi (Initial import): Mention where to place an
663         AC_PROG_CC_STDC invocation.
664         Reported by Gary V. Vaughan <gary@gnu.org>.
665
666 2011-09-28  Bruno Haible  <bruno@clisp.org>
667
668         fgetc, fputc, fread, fwrite tests: Fix link error.
669         * tests/test-fgetc.c (main): Don't invoke gl_msvc_inval_ensure_handler
670         on non-MSVC platforms.
671         * tests/test-fputc.c (main): Likewise.
672         * tests/test-fread.c (main): Likewise.
673         * tests/test-fwrite.c (main): Likewise.
674         Reported by Jim Meyering.
675
676 2011-09-27  Bruno Haible  <bruno@clisp.org>
677
678         fputc, fwrite tests: Avoid test failure on MSVC.
679         * tests/test-fgetc.c: Include msvc-inval.h.
680         (main): Invoke gl_msvc_inval_ensure_handler.
681         * tests/test-fputc.c: Include msvc-inval.h.
682         (main): Invoke gl_msvc_inval_ensure_handler.
683         * tests/test-fread.c: Include msvc-inval.h.
684         (main): Invoke gl_msvc_inval_ensure_handler.
685         * tests/test-fwrite.c: Include msvc-inval.h.
686         (main): Invoke gl_msvc_inval_ensure_handler.
687         * modules/fgetc-tests (Depends-on): Add msvc-inval.
688         * modules/fputc-tests (Depends-on): Likewise.
689         * modules/fread-tests (Depends-on): Likewise.
690         * modules/fwrite-tests (Depends-on): Likewise.
691
692 2011-09-27  Bruno Haible  <bruno@clisp.org>
693
694         raise: Fix double declaration with modules 'sigprocmask' and 'sigpipe'.
695         * lib/signal.in.h (GNULIB_defined_signal_blocking): New macro.
696         (raise): Remove older, duplicated declaration.
697         (_gl_raise_SIGPIPE): New declaration.
698         * lib/sigprocmask.c (_gl_raise_SIGPIPE): New function.
699         (rpl_raise): Remove function.
700         * lib/raise.c (rpl_raise, raise): Merge into a single function. Handle
701         a gnulib-defined SIGPIPE here.
702         * m4/raise.m4 (gl_FUNC_RAISE): Set REPLACE_RAISE also if the module
703         'sigprocmask' has detected missing signal-blocking and the module
704         'sigpipe' is enabled.
705         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>.
706
707 2011-09-26  Gijs van Tulder  <gvtulder@gmail.com>
708
709         base64-tests: avoid memory leak
710         * tests/test-base64.c (main): Plug memory leak.
711
712         base32: new module
713         * modules/base32: New module.
714         * lib/base32.c: New file.
715         * lib/base32.h: Likewise.
716         * m4/base32.m4: Likewise.
717         * modules/base32-tests: New test.
718         * tests/test-base32.c: Likewise.
719         * MODULES.html.sh (Misc): Mention it.
720
721 2011-09-26  Paul Eggert  <eggert@cs.ucla.edu>
722
723         gnulib: use more-standard license notice wording
724         * gnulib-tool (func_emit_copyright_notice): When emitting a
725         license notice into a file, use the standard wording as suggested
726         by the current information for GNU maintainers, except say "file"
727         rather than "program".  The new wording gives a license version
728         number, which addresses an issue raised by Glenn Morris in
729         <http://lists.gnu.org/archive/html/bug-gnulib/2011-09/msg00397.html>.
730         * m4/onceonly.m4: Use that same wording here, too.
731
732         dup2: minor simplification
733         * m4/dup2.m4 (gl_PREREQ_DUP2): Don't require AC_C_INLINE,
734         as lib/dup2.c no longer uses 'inline'.
735
736 2011-09-25  Bruno Haible  <bruno@clisp.org>
737
738         strings: Fix compilation error on MSVC.
739         * lib/strings.in.h: Include <stddef.h> for size_t.
740
741 2011-09-25  Bruno Haible  <bruno@clisp.org>
742
743         fflush et al.: Document limitation on MSVC.
744         * doc/posix-functions/fflush.texi: Document possible crash in handling
745         mode other than DEFAULT_HANDLING.
746         * doc/posix-functions/fgetc.texi: Likewise.
747         * doc/posix-functions/fputc.texi: Likewise.
748         * doc/posix-functions/fread.texi: Likewise.
749         * doc/posix-functions/fwrite.texi: Likewise.
750
751 2011-09-25  Bruno Haible  <bruno@clisp.org>
752
753         msvc-inval: Allow three invalid parameter handling modes.
754         * lib/msvc-inval.h: Don't include <stdlib.h> here.
755         (DEFAULT_HANDLING, HAIRY_LIBRARY_HANDLING, SANE_LIBRARY_HANDLING): New
756         macros.
757         (gl_msvc_inval_ensure_handler, TRY_MSVC_INVAL, CATCH_MSVC_INVAL,
758         DONE_MSVC_INVAL): Implement DEFAULT_HANDLING. Treat
759         SANE_LIBRARY_HANDLING as a no-op.
760         * lib/msvc-inval.c: Treat SANE_LIBRARY_HANDLING as a no-op. Include
761         <stdlib.h>.
762         (gl_msvc_invalid_parameter_handler): Implement DEFAULT_HANDLING.
763
764 2011-09-25  Bruno Haible  <bruno@clisp.org>
765
766         msvc-inval: Make handler multithread-safe.
767         * lib/msvc-inval.h (struct gl_msvc_inval_per_thread): New type.
768         (gl_msvc_inval_restart, gl_msvc_inval_restart_valid): Remove
769         declarations.
770         (gl_msvc_inval_current): New declaration.
771         (TRY_MSVC_INVAL, CATCH_MSVC_INVAL, DONE_MSVC_INVAL) [!_MSC_VER]:
772         Operate on the structure returned by gl_msvc_inval_current().
773         * lib/msvc-inval.c (gl_msvc_inval_restart, gl_msvc_inval_restart_valid):
774         Remove varaiables.
775         (tls_index, tls_initialized): New variables.
776         (not_per_thread): New variable.
777         (gl_msvc_inval_current): New function.
778         (gl_msvc_invalid_parameter_handler) [!_MSC_VER]: Use the structure
779         returned by gl_msvc_inval_current().
780
781 2011-09-25  Bruno Haible  <bruno@clisp.org>
782
783         msvc-inval: Install handler globally.
784         * lib/msvc-inval.h (STATUS_GNULIB_INVALID_PARAMETER): Define also for
785         !_MSC_VER.
786         (gl_msvc_invalid_parameter_handler): Remove declaration.
787         (gl_msvc_inval_restart_valid, gl_msvc_inval_ensure_handler): New
788         declarations.
789         (TRY_MSVC_INVAL, CATCH_MSVC_INVAL, DONE_MSVC_INVAL) [!_MSC_VER]:
790         Install the handler globally, don't uninstall it.
791         * lib/msvc-inval.c (gl_msvc_inval_restart_valid): New variable.
792         (gl_msvc_invalid_parameter_handler): Make static. If the restart is not
793         currently valid, call RaiseException instead.
794         (gl_msvc_inval_initialized, gl_msvc_inval_ensure_handler): Define also
795         for !_MSC_VER.
796
797 2011-09-25  Bruno Haible  <bruno@clisp.org>
798
799         strerror_r-posix: Fix for MSVC 9.
800         * lib/strerror_r.c (local_snprintf): New function.
801         (snprintf): Define to local_snprintf, not to _snprintf.
802
803 2011-09-25  Bruno Haible  <bruno@clisp.org>
804
805         ftruncate: Support for MSVC 9.
806         * lib/ftruncate.c: Include errno.h, msvc-inval.h.
807         (chsize_nothrow): New function.
808         (chsize): Redefine as a macro.
809         * m4/ftruncate.m4 (gl_PREREQ_FTRUNCATE): Require AC_C_INLINE.
810         * modules/ftruncate (Depends-on): Add msvc-inval.
811
812 2011-09-25  Bruno Haible  <bruno@clisp.org>
813
814         New module 'fstat'.
815         * lib/sys_stat.in.h (fstat): Declare only if GNULIB_FSTAT is set.
816         * lib/fstat.c: New file, based on a piece of lib/fchdir.c.
817         * lib/fchdir.c (rpl_fstat): Remove function.
818         * m4/fstat.m4: New file.
819         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't set REPLACE_FSTAT.
820         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Test whether fstat is
821         declared.
822         (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_FSTAT.
823         * modules/sys_stat (Makefile.am): Substitute GNULIB_FSTAT.
824         * modules/fstat: New file.
825         * modules/sys_stat-tests (Depends-on): Remove fstat-tests.
826         * tests/test-sys_stat-c++.cc (fstat): Check only if GNULIB_TEST_FSTAT
827         is set.
828         * doc/posix-functions/fstat.texi: Mention the new module and the
829         problem on MSVC.
830         * NEWS: Mention the change.
831         * modules/acl (Depends-on): Add fstat.
832         * modules/chdir-safer (Depends-on): Likewise.
833         * modules/chown (Depends-on): Likewise.
834         * modules/copy-file (Depends-on): Likewise.
835         * modules/fchdir (Depends-on): Likewise.
836         * modules/fdopendir (Depends-on): Likewise.
837         * modules/fopen (Depends-on): Likewise.
838         * modules/fts (Depends-on): Likewise.
839         * modules/getcwd (Depends-on): Likewise.
840         * modules/isapipe (Depends-on): Likewise.
841         * modules/linkat (Depends-on): Likewise.
842         * modules/lseek (Depends-on): Likewise.
843         * modules/mkdir-p (Depends-on): Likewise.
844         * modules/open (Depends-on): Likewise.
845         * modules/openat (Depends-on): Likewise.
846         * modules/read-file (Depends-on): Likewise.
847         * modules/renameat (Depends-on): Likewise.
848         * modules/utimens (Depends-on): Likewise.
849
850 2011-09-25  Bruno Haible  <bruno@clisp.org>
851
852         linkat: Fix compilation on MSVC 9.
853         * lib/linkat.c: Don't include <stdint.h>.
854
855 2011-09-25  Bruno Haible  <bruno@clisp.org>
856
857         fclose: Support for MSVC 9.
858         * lib/fclose.c: Include msvc-inval.h.
859         (fclose_nothrow): New function.
860         (rpl_fclose): Use it.
861         * modules/fclose (Depends-on): Add msvc-inval.
862         * doc/posix-functions/fclose.texi: Mention the problem on MSVC.
863
864 2011-09-24  Paul Eggert  <eggert@cs.ucla.edu>
865
866         dup2: minor simplifications
867         * lib/dup2.c (ms_windows_dup2): Omit 'inline' as it's not clear
868         that it's a performance win.
869         (rpl_dup2): Change "if !((defined _WIN32 || defined __WIN32__) &&
870         ! defined __CYGWIN__)" to "ifdef F_GETFL".
871
872 2011-09-24  Jim Meyering  <meyering@redhat.com>
873
874         test-futimens: avoid a warning from gcc -Wshadow
875         * tests/test-futimens.h (test_futimens): Rename inner local, s/fd/fd0/
876         to avoid a shadowing warning.
877
878 2011-09-24  Bruno Haible  <bruno@clisp.org>
879
880         fdopen: Support for MSVC 9.
881         * m4/fdopen.m4 (gl_FUNC_FDOPEN): Set REPLACE_FDOPEN also if
882         HAVE_MSVC_INVALID_PARAMETER_HANDLER is 1.
883         * lib/fdopen.c: Include msvc-inval.h.
884         (fdopen_nothrow): New function.
885         (rpl_fdopen): Use it.
886         * modules/fdopen (Depends-on): Add msvc-inval.
887         * modules/fclose-tests (Depends-on): Add fdopen.
888         * modules/fflush-tests (Depends-on): Likewise.
889         * modules/fgetc-tests (Depends-on): Likewise.
890         * modules/fputc-tests (Depends-on): Likewise.
891         * modules/fread-tests (Depends-on): Likewise.
892         * modules/freopen-tests (Depends-on): Likewise.
893         * modules/fseeko-tests (Depends-on): Likewise.
894         * modules/ftello-tests (Depends-on): Likewise.
895         * modules/fwrite-tests  (Depends-on): Likewise.
896         * doc/posix-functions/fdopen.texi: Mention the problem on MSVC.
897
898 2011-09-24  Bruno Haible  <bruno@clisp.org>
899
900         fgetc, fputc, fread, fwrite tests: Avoid compilation error on MSVC.
901         * modules/fgetc-tests (Depends-on): Add unistd.
902         * modules/fputc-tests (Depends-on): Likewise.
903         * modules/fread-tests (Depends-on): Likewise.
904         * modules/fwrite-tests (Depends-on): Likewise.
905
906 2011-09-24  Bruno Haible  <bruno@clisp.org>
907
908         dup: Simplify autoconf test.
909         * m4/dup.m4 (gl_FUNC_DUP): Don't run a test program. Instead, just rely
910         on gl_MSVC_INVAL's result.
911
912 2011-09-24  Bruno Haible  <bruno@clisp.org>
913
914         Tests for function fwrite().
915         * modules/fwrite-tests: New file.
916         * tests/test-fwrite.c: New file.
917         * modules/stdio-tests (Depends-on): Add fwrite-tests.
918
919         Tests for function fread().
920         * modules/fread-tests: New file.
921         * tests/test-fread.c: New file.
922         * modules/stdio-tests (Depends-on): Add fread-tests.
923
924         Activate fputc tests.
925         * modules/stdio-tests (Depends-on): Add fputc-tests.
926
927         Enhance fgetc, fputc tests.
928         * tests/test-fgetc.c (main): Also test the stream's error indicator.
929         * tests/test-fputc.c (main): Likewise.
930
931 2011-09-24  Bruno Haible  <bruno@clisp.org>
932
933         write: Support for MSVC 9.
934         * lib/unistd.in.h (write): Replace also when GNULIB_UNISTD_H_NONBLOCKING
935         is not 1.
936         * lib/write.c (write_nothrow): New function.
937         (rpl_write): Define also when GNULIB_NONBLOCKING or GNULIB_SIGPIPE is
938         not 1. Use write_nothrow.
939         * m4/write.m4 (gl_FUNC_WRITE): Replace read if the platform has an
940         invalid parameter handler.
941         (gl_PREREQ_WRITE): New macro.
942         * modules/write (Depends-on): Add msvc-inval.
943         (configure.ac): Invoke gl_PREREQ_WRITE.
944         * doc/posix-functions/write.texi: Mention the problem on MSVC.
945
946 2011-09-24  Bruno Haible  <bruno@clisp.org>
947
948         read: Fix last commit.
949         * lib/read.c (read_nothrow): Change return type to 'ssize_t'.
950
951 2011-09-24  Bruno Haible  <bruno@clisp.org>
952
953         dup2: Fix last commit.
954         * lib/dup2.c: Restore comments. Treat Cygwin like Unix.
955         (rpl_dup2): Disable fcntl workaround on native Windows.
956
957         sigprocmask: Make code safer.
958         * lib/sigprocmask.c: Move '#include "msvc-inval.h"' before the code
959         section that changes macro definitions for this compilation unit.
960
961 2011-09-23  Paul Eggert  <eggert@cs.ucla.edu>
962
963         dup2: clarify by coalescing Windows-specific material
964         * lib/dup2.c: Move '#include "msvc-inval.h"' and '#include
965         "msvc-nothrow.h"' to the Windows-specific section, so that the
966         Emacs source need not contain these include files.
967         (ms_windows_dup2): Rename from dup2_nothrow, and move all the
968         Windows-specific fixes into this function rather than just the
969         nothrow fix, as this shortens and clarifies the code.  Always
970         define as a function, as that's a bit cleaner than having it be
971         sometimes a function and sometimes a macro.
972         (rpl_dup2): Move the Windows-specific stuff out of here and into
973         ms_windows_dup2.  Don't protect the Haiku-related fix with
974         "#if !defined __linux__", as the same code also works around
975         a Linux kernel bug, and it doesn't add any system calls on any
976         platform.  Add comment about FreeBSD 6.1.
977
978         sigprocmask: move #include directive
979         * lib/sigprocmask.c: Move '#include "msvc-inval.h"' to the
980         Windows-specific section, so that the Emacs source need not
981         contain msvc-inval.h.
982
983 2011-09-23  Bruno Haible  <bruno@clisp.org>
984
985         read: Support for MSVC 9.
986         * lib/unistd.in.h (read): Replace also when GNULIB_UNISTD_H_NONBLOCKING
987         is not 1.
988         * lib/read.c (read_nothrow): New function.
989         (rpl_read): Define also when GNULIB_NONBLOCKING is not 1. Use
990         read_nothrow.
991         * m4/read.m4 (gl_FUNC_READ): Replace read if the platform has an
992         invalid parameter handler.
993         (gl_PREREQ_READ): New macro.
994         * modules/read (Depends-on): Add msvc-inval.
995         (configure.ac): Invoke gl_PREREQ_READ.
996         * doc/posix-functions/read.texi: Mention the problem on MSVC.
997
998 2011-09-23  Bruno Haible  <bruno@clisp.org>
999
1000         close: Support for MSVC 9.
1001         * lib/close.c: Include <errno.h>, msvc-inval.h.
1002         (close_nothrow): New function.
1003         (rpl_close): Use it.
1004         * m4/close.m4 (gl_FUNC_CLOSE): Replace close if the platform has an
1005         invalid parameter handler.
1006         * modules/close (Depends-on): Add msvc-inval.
1007         * modules/dup2-tests (Depends-on): Add close.
1008         * modules/dup3-tests (Depends-on): Likewise.
1009         * modules/fcntl-tests (Depends-on): Likewise.
1010         * modules/spawn-pipe-tests (Depends-on): Likewise.
1011         * modules/unistd-safer-tests (Depends-on): Likewise.
1012         * doc/posix-functions/close.texi: Mention the problem on MSVC.
1013
1014 2011-09-23  Bruno Haible  <bruno@clisp.org>
1015
1016         New module 'dup'.
1017         * lib/unistd.in.h (dup): Declare only if the 'dup' module is in use.
1018         Allow replacement.
1019         * lib/dup.c: New file.
1020         * lib/fchdir.c (rpl_dup): Remove function.
1021         * m4/dup.m4: New file.
1022         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't set REPLACE_DUP here.
1023         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether 'dup' is declared.
1024         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_DUP.
1025         * modules/unistd (Makefile.am): Substitute GNULIB_DUP.
1026         * modules/dup: New file.
1027         * tests/test-unistd-c++.cc: Check the signature of 'dup' only if the
1028         'dup' module is in use.
1029         * modules/fdopendir (Depends-on): Add dup.
1030         * modules/fdutimensat-tests (Depends-on): Likewise.
1031         * modules/fts (Depends-on): Likewise.
1032         * modules/futimens-tests (Depends-on): Likewise.
1033         * modules/posix_spawnp-tests (Depends-on): Likewise.
1034         * modules/unistd-safer-tests (Depends-on): Likewise.
1035         * modules/utimens-tests (Depends-on): Likewise.
1036         * doc/posix-functions/dup.texi: Mention the new module and the problem
1037         on MSVC.
1038
1039 2011-09-23  Bruno Haible  <bruno@clisp.org>
1040
1041         getdtablesize: Support for MSVC 9.
1042         * lib/getdtablesize.c: Include msvc-inval.h.
1043         (_setmaxstdio_nothrow): New function.
1044         (_setmaxstdio): Redefine it.
1045         * m4/getdtablesize.m4 (gl_PREREQ_GETDTABLESIZE): New macro.
1046         * modules/getdtablesize (Depends-on): Add msvc-inval.
1047         (configure.ac): Invoke gl_PREREQ_GETDTABLESIZE.
1048
1049 2011-09-23  Bruno Haible  <bruno@clisp.org>
1050
1051         signal-h: Rename from signal.
1052         * modules/signal-h: Renamed from modules/signal.
1053         * modules/pthread_sigmask (Depends-on): Update.
1054         * modules/raise (Depends-on): Likewise.
1055         * modules/sigaction (Depends-on): Likewise.
1056         * modules/sigpipe (Depends-on): Likewise.
1057         * modules/sigprocmask (Depends-on): Likewise.
1058         * modules/sys_select (Depends-on): Likewise.
1059         * modules/signal-h-tests: Renamed from modules/signal-tests.
1060         (Files, Depends-on, Makefile.am): Update.
1061         * tests/test-signal-h.c: Renamed from tests/test-signal.c.
1062         * modules/signal-h-c++-tests: Renamed from modules/signal-c++-tests.
1063         (Files, Makefile.am): Update.
1064         * tests/test-signal-h-c++.cc: Renamed from tests/test-signal-c++.cc.
1065         * tests/test-signal-h-c++2.cc: Renamed from tests/test-signal-c++2.cc.
1066         * modules/signal: New placeholder file.
1067         * MODULES.html.sh (Support for systems lacking POSIX:2008): Update.
1068         * doc/posix-headers/signal.texi: Update.
1069         * NEWS: Mention the change.
1070
1071 2011-09-23  Bruno Haible  <bruno@clisp.org>
1072
1073         sigprocmask: Avoid crashes through signal() on MSVC 9.
1074         * lib/sigprocmask.c: Include msvc-inval.h.
1075         (signal_nothrow): New function.
1076         (signal): Redefine it.
1077         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Require AC_C_INLINE.
1078         * modules/sigprocmask (Depends-on): Add msvc-inval.
1079         * doc/posix-functions/signal.texi: Mention the problem on MSVC.
1080
1081 2011-09-23  Bruno Haible  <bruno@clisp.org>
1082
1083         Tests for module 'raise'.
1084         * modules/raise-tests: New file.
1085         * tests/test-raise.c: New file.
1086
1087         raise: Support for MSVC.
1088         * lib/signal.in.h (raise): New declaration.
1089         * lib/raise.c (raise_nothrow, rpl_raise): New alternate implementation
1090         for native Windows platforms.
1091         * m4/raise.m4: New file.
1092         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize GNULIB_RAISE,
1093         HAVE_RAISE, REPLACE_RAISE.
1094         * modules/signal (Makefile.am): Substitute GNULIB_RAISE, HAVE_RAISE,
1095         REPLACE_RAISE.
1096         * modules/raise (Status, Notice): Remove fields.
1097         (Files): Add m4/raise.m4.
1098         (Depends-on): Add signal, msvc-inval.
1099         (configure.ac): Use the common idioms.
1100         (Maintainer): Add me.
1101         * tests/test-signal-c++.cc: Check the signature of raise.
1102         * doc/posix-functions/raise.texi: Mention the problem on MSVC.
1103
1104 2011-09-23  Bruno Haible  <bruno@clisp.org>
1105
1106         pipe2: Fix compilation on pre-C99 compilers.
1107         * lib/pipe2.c (pipe2): Surround verify(...) declaration with braces.
1108
1109 2011-09-23  Bruno Haible  <bruno@clisp.org>
1110
1111         New module 'msvc-nothrow'. Makes _get_osfhandle safe on MSVC 9.
1112         * lib/msvc-nothrow.h: New file.
1113         * lib/msvc-nothrow.c: New file.
1114         * m4/msvc-nothrow.m4: New file.
1115         * modules/msvc-nothrow: New file.
1116         * lib/dup2.c: Include msvc-nothrow.h.
1117         (rpl_dup2): No need to protect _get_osfhandle call here.
1118         * lib/accept4.c: Include msvc-nothrow.h.
1119         * lib/error.c: Likewise.
1120         * lib/fcntl.c: Likewise.
1121         * lib/lseek.c: Likewise.
1122         * lib/nonblocking.c: Likewise.
1123         * lib/poll.c: Likewise.
1124         * lib/read.c: Likewise.
1125         * lib/select.c: Likewise.
1126         * lib/sockets.h: Likewise.
1127         * lib/sockets.c: Likewise.
1128         * lib/stdio-read.c: Likewise.
1129         * lib/stdio-write.c: Likewise.
1130         * lib/write.c: Likewise.
1131         * lib/w32sock.h: Likewise.
1132         * lib/w32spawn.h: Likewise.
1133         * lib/flock.c: Include msvc-nothrow.h instead of <io.h>.
1134         * lib/fsync.c: Likewise.
1135         * lib/isapipe.c: Likewise.
1136         * modules/dup2 (Depends-on): Add msvc-nothrow.
1137         * modules/accept4 (Depends-on): Likewise.
1138         * modules/error (Depends-on): Likewise.
1139         * modules/fcntl (Depends-on): Likewise.
1140         * modules/lseek (Depends-on): Likewise.
1141         * modules/nonblocking (Depends-on): Likewise.
1142         * modules/poll (Depends-on): Likewise.
1143         * modules/read (Depends-on): Likewise.
1144         * modules/select (Depends-on): Likewise.
1145         * modules/sockets (Depends-on): Likewise.
1146         * modules/sigpipe (Depends-on): Likewise.
1147         * modules/write (Depends-on): Likewise.
1148         * modules/accept (Depends-on): Likewise.
1149         * modules/bind (Depends-on): Likewise.
1150         * modules/connect (Depends-on): Likewise.
1151         * modules/gethostname (Depends-on): Likewise.
1152         * modules/getpeername (Depends-on): Likewise.
1153         * modules/getsockname (Depends-on): Likewise.
1154         * modules/getsockopt (Depends-on): Likewise.
1155         * modules/ioctl (Depends-on): Likewise.
1156         * modules/listen (Depends-on): Likewise.
1157         * modules/recv (Depends-on): Likewise.
1158         * modules/recvfrom (Depends-on): Likewise.
1159         * modules/send (Depends-on): Likewise.
1160         * modules/sendto (Depends-on): Likewise.
1161         * modules/setsockopt (Depends-on): Likewise.
1162         * modules/shutdown (Depends-on): Likewise.
1163         * modules/socket (Depends-on): Likewise.
1164         * modules/execute (Depends-on): Likewise.
1165         * modules/spawn-pipe (Depends-on): Likewise.
1166         * modules/flock (Depends-on): Likewise.
1167         * modules/fsync (Depends-on): Likewise.
1168         * modules/isapipe (Depends-on): Likewise.
1169         * tests/test-cloexec.c: Include msvc-nothrow.h.
1170         * tests/test-dup-safer.c: Likewise.
1171         * tests/test-dup2.c: Likewise.
1172         * tests/test-dup3.c: Likewise.
1173         * tests/test-fcntl.c: Likewise.
1174         * tests/test-pipe.c: Likewise.
1175         * tests/test-pipe2.c: Likewise.
1176         * modules/cloexec-tests (Depends-on): Add msvc-nothrow.
1177         * modules/unistd-safer-tests (Depends-on): Likewise.
1178         * modules/dup2-tests (Depends-on): Likewise.
1179         * modules/dup3-tests (Depends-on): Likewise.
1180         * modules/fcntl-tests (Depends-on): Likewise.
1181         * modules/pipe-posix-tests (Depends-on): Likewise.
1182         * modules/pipe2-tests (Depends-on): Likewise.
1183
1184 2011-09-23  Bruno Haible  <bruno@clisp.org>
1185
1186         dup2: Make code more maintainable.
1187         * lib/dup2.c (dup2_nothrow): New function, extracted from rpl_dup2.
1188         (rpl_dup2): Use it.
1189         * m4/dup2.m4 (gl_PREREQ_DUP2): New macro.
1190         * modules/dup2 (configure.ac): Invoke it.
1191         Reported by Paul Eggert.
1192
1193 2011-09-23  Bruno Haible  <bruno@clisp.org>
1194
1195         msvc-inval: Fix compilation error.
1196         * lib/msvc-inval.h: Include <excpt.h>.
1197
1198 2011-09-23  Bruno Haible  <bruno@clisp.org>
1199
1200         mkdir: Tweak for MSVC 9.
1201         * lib/sys_stat.in.h: Update comments.
1202         * doc/posix-functions/mkdir.texi: Mention problem on MSVC 9.
1203
1204         Tests for module 'chdir'.
1205         * modules/chdir-tests: New file.
1206         * tests/test-chdir.c: New file.
1207
1208         New module 'chdir'.
1209         * modules/chdir: New file.
1210         * lib/unistd.in.h: Include <io.h>, <direct.h> also for chdir.
1211         (chdir): New declaration.
1212         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether chdir is declared.
1213         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_CHDIR.
1214         * modules/unistd (Makefile.am): Substitute GNULIB_CHDIR.
1215         * tests/test-unistd-c++.cc: Check signature of chdir.
1216         * doc/posix-functions/chdir.texi: Mention problem on native Windows.
1217         * modules/chdir-long (Depends-on): Add chdir.
1218         * modules/fchdir (Depends-on): Likewise.
1219         * modules/rename (Depends-on): Likewise.
1220         * modules/savewd (Depends-on): Likewise.
1221
1222         rmdir: Support for mingw, MSVC 9.
1223         * lib/unistd.in.h: Include <io.h> and <direct.h> also for rmdir.
1224         * doc/posix-functions/getcwd.texi: Mention problem on native Windows.
1225
1226         getcwd: Tweak for MSVC 9.
1227         * lib/unistd.in.h: Update comments.
1228         * doc/posix-functions/getcwd.texi: Mention problem on MSVC 9.
1229
1230 2011-09-22  Bruno Haible  <bruno@clisp.org>
1231
1232         strerror_r-posix: Avoid a link error on MSVC.
1233         * m4/strerror_r.m4 (gl_PREREQ_STRERROR_R): Check for snprintf.
1234         * lib/strerror_r.c (snprintf): Define to _snprintf if it doesn't exist.
1235
1236 2011-09-22  Bruno Haible  <bruno@clisp.org>
1237
1238         select: Avoid link errors on MSVC.
1239         * m4/select.m4 (gl_FUNC_SELECT): Determine LIB_SELECT.
1240         * modules/select (Link): Replace $(LIBSOCKET) with $(LIB_SELECT).
1241         * modules/pselect (Link): Likewise.
1242         * NEWS: Mention the change.
1243         * modules/select-tests (Makefile.am): Link test-select, test-select-fd,
1244         test-select-stdin against $(LIB_SELECT).
1245         * modules/pselect-tests (Makefile.am): Link test-pselect against
1246         $(LIB_SELECT).
1247
1248 2011-09-22  Bruno Haible  <bruno@clisp.org>
1249
1250         select: Avoid compilation error on MSVC.
1251         * lib/select.c: Don't include <stdbool.h>.
1252
1253 2011-09-21  Bruno Haible  <bruno@clisp.org>
1254
1255         Consolidate all uses of PATH_MAX in *.m4 files.
1256         * m4/pathmax.m4 (gl_PATHMAX_SNIPPET, gl_PATHMAX_SNIPPET_PREREQ): New
1257         macros.
1258         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Use gl_PATHMAX_SNIPPET_PREREQ
1259         and gl_PATHMAX_SNIPPET.
1260         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): Likewise.
1261         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
1262         * modules/chdir-long (Files): Add m4/pathmax.m4.
1263         * modules/getcwd (Files): Likewise.
1264
1265 2011-09-21  Bruno Haible  <bruno@clisp.org>
1266
1267         ftruncate: Un-deprecate, concentrate on Win32 support.
1268         * modules/ftruncate (Status, Notice): Remove sections.
1269         (Depends-on): Add largefile.
1270         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Drop failure message on
1271         non-mingw platforms.
1272         * lib/ftruncate.c: Remove code for the older platforms. For Win32,
1273         include <io.h>.
1274         * modules/perror-tests (Depends-on): Add ftruncate.
1275         * doc/posix-functions/ftruncate.texi: Mention the MSVC problem and the
1276         'ftruncate' module.
1277
1278 2011-09-21  Bruno Haible  <bruno@clisp.org>
1279
1280         Add dependencies to new dirent related modules.
1281         * modules/opendir (Depends-on): Add closedir.
1282         * modules/getcwd (Depends-on): Add opendir, closedir.
1283         * modules/dirent-safer-tests (Depends-on): Likewise.
1284         * modules/fdopendir-tests (Depends-on): Likewise.
1285         * modules/rename-tests (Depends-on): Add opendir, readdir, closedir.
1286         * modules/renameat-tests (Depends-on): Likewise.
1287
1288 2011-09-21  Bruno Haible  <bruno@clisp.org>
1289
1290         opendir: Avoid compilation error on mingw.
1291         * lib/opendir.c: Include <stddef.h> always. Include <unistd.h> as well.
1292         * modules/opendir (Depends-on): Add unistd.
1293
1294 2011-09-21  Bruno Haible  <bruno@clisp.org>
1295
1296         ftruncate tests: Avoid a test failure on mingw.
1297         * tests/test-ftruncate.c (main): Allow a failure with EACCES.
1298
1299 2011-09-21  Bruno Haible  <bruno@clisp.org>
1300
1301         select tests: Avoid test failures on OSF/1 5.1 and mingw.
1302         * tests/test-select.h (test_bad_fd): Disable all tests on OSF/1 and
1303         native Windows.
1304
1305 2011-09-21  Bruno Haible  <bruno@clisp.org>
1306
1307         New module 'fdopen'.
1308         * lib/stdio.in.h (fdopen): New declaration.
1309         * lib/fdopen.c: New file.
1310         * m4/fdopen.m4: New file.
1311         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FDOPEN,
1312         REPLACE_FDOPEN.
1313         * modules/stdio (Makefile.am): Substitute GNULIB_FDOPEN,
1314         REPLACE_FDOPEN.
1315         * modules/fdopen: New file.
1316         * modules/stdio-tests (Depends-on): Remove fdopen-tests.
1317         * tests/test-stdio-c++.cc: Check signature of fdopen.
1318         * doc/posix-functions/fdopen.texi: Mention the new module.
1319
1320 2011-09-21  Bruno Haible  <bruno@clisp.org>
1321
1322         unlockpt tests: Avoid test failure on NetBSD 5.1.
1323         * tests/test-unlockpt.c (main): Skip the EBADF tests on NetBSD.
1324         * doc/posix-functions/unlockpt.texi: Mention the bug on NetBSD.
1325
1326 2011-09-21  Bruno Haible  <bruno@clisp.org>
1327
1328         getlogin, getlogin_r tests: Avoid test failure on Linux/SPARC.
1329         * tests/test-getlogin.c (main): Allow a failure with EINVAL.
1330         * tests/test-getlogin_r.c (main): Likewise.
1331
1332 2011-09-20  Bruno Haible  <bruno@clisp.org>
1333
1334         time tests: Don't require pid_t.
1335         * doc/posix-headers/time.texi: Revert last change.
1336         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Revert last change.
1337         * tests/test-time.c: Comment out the check for pid_t.
1338
1339 2011-09-20  Bruno Haible  <bruno@clisp.org>
1340
1341         fsync tests: Avoid a test failure on mingw.
1342         * tests/test-fsync.c (main): Allow a failure with EIO.
1343
1344 2011-09-20  Bruno Haible  <bruno@clisp.org>
1345
1346         euidaccess: Update comments.
1347         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Update comments.
1348
1349 2011-09-20  Bruno Haible  <bruno@clisp.org>
1350
1351         Ensure EBADF returns for socket functions on mingw.
1352         * lib/accept.c (rpl_accept): Fail with error EBADF if the file
1353         descriptor is invalid.
1354         * lib/bind.c (rpl_bind): Likewise.
1355         * lib/connect.c (rpl_connect): Likewise.
1356         * lib/getpeername.c (rpl_getpeername): Likewise.
1357         * lib/getsockname.c (rpl_getsockname): Likewise.
1358         * lib/getsockopt.c (rpl_getsockopt): Likewise.
1359         * lib/listen.c (rpl_listen): Likewise.
1360         * lib/recv.c (rpl_recv): Likewise.
1361         * lib/recvfrom.c (rpl_recvfrom): Likewise.
1362         * lib/send.c (rpl_send): Likewise.
1363         * lib/sendto.c (rpl_sendto): Likewise.
1364         * lib/setsockopt.c (rpl_setsockopt): Likewise.
1365         * lib/shutdown.c (rpl_shutdown): Likewise.
1366
1367 2011-09-20  Bruno Haible  <bruno@clisp.org>
1368
1369         select tests: EBADF tests.
1370         * tests/test-select.h (do_select_bad_fd, do_select_bad_fd_nowait,
1371         test_bad_fd): New functions.
1372         (test_function): Invoke also test_bad_fd.
1373
1374 2011-09-20  Bruno Haible  <bruno@clisp.org>
1375
1376         Tests for module 'posix_spawn_file_actions_addopen.
1377         * modules/posix_spawn_file_actions_addopen-tests: New file.
1378         * tests/test-posix_spawn_file_actions_addopen.c: New file.
1379
1380         Tests for module 'posix_spawn_file_actions_adddup2'.
1381         * modules/posix_spawn_file_actions_adddup2-tests: New file.
1382         * tests/test-posix_spawn_file_actions_adddup2.c: New file.
1383
1384         Tests for module 'posix_spawn_file_actions_addclose'.
1385         * modules/posix_spawn_file_actions_addclose-tests: New file.
1386         * tests/test-posix_spawn_file_actions_addclose.c: New file.
1387
1388 2011-09-20  Bruno Haible  <bruno@clisp.org>
1389
1390         Tests for module 'unlockpt'.
1391         * modules/unlockpt-tests: New file.
1392         * tests/test-unlockpt.c: New file.
1393         * doc/posix-functions/unlockpt.texi: Mention the Cygwin 1.7 problem.
1394
1395         Tests for module 'grantpt'.
1396         * modules/grantpt-tests: New file.
1397         * tests/test-grantpt.c: New file.
1398         * doc/posix-functions/grantpt.texi: Mention the Cygwin 1.7 problem.
1399
1400 2011-09-20  Bruno Haible  <bruno@clisp.org>
1401
1402         freopen tests: EBADF tests.
1403         * tests/test-freopen.c: Include errno.h, unistd.h.
1404         (main): Add tests for EBADF, commented out for the moment.
1405
1406         fclose tests: EBADF tests.
1407         * tests/test-fclose.c (main): Add tests for EBADF.
1408
1409         fflush tests: EBADF tests.
1410         * tests/test-fflush.c: Include errno.h, macros.h.
1411         (main): Add tests for EBADF.
1412
1413         ftello tests: EBADF tests.
1414         * tests/test-ftello4.sh: New file.
1415         * tests/test-ftello4.c: New file.
1416         * modules/ftello-tests (Files): Add them.
1417         (Makefile.am): Arrange to compile test-ftello4 and run test-ftello4.sh.
1418
1419         fseeko tests: EBADF tests.
1420         * tests/test-fseeko4.sh: New file.
1421         * tests/test-fseeko4.c: New file.
1422         * modules/fseeko-tests (Files): Add them.
1423         (Makefile.am): Arrange to compile test-fseeko4 and run test-fseeko4.sh.
1424
1425         Tests for function fputc().
1426         * modules/fputc-tests: New file.
1427         * tests/test-fputc.c: New file.
1428         * modules/stdio-tests (Depends-on): Add fputc-tests.
1429
1430         Tests for function fgetc().
1431         * modules/fgetc-tests: New file.
1432         * tests/test-fgetc.c: New file.
1433         * modules/stdio-tests (Depends-on): Add fgetc-tests.
1434
1435         Tests for function fdopen().
1436         * modules/fdopen-tests: New file.
1437         * tests/test-fdopen.c: New file.
1438         * modules/stdio-tests (Depends-on): Add fdopen-tests.
1439
1440         Tests for module 'vdprintf'.
1441         * modules/vdprintf-tests: New file.
1442         * tests/test-vdprintf.c: New file.
1443
1444         Tests for module 'dprintf'.
1445         * modules/dprintf-tests: New file.
1446         * tests/test-dprintf.c: New file.
1447
1448 2011-09-20  Bruno Haible  <bruno@clisp.org>
1449
1450         Tests for module 'ioctl'.
1451         * modules/ioctl-tests: New file.
1452         * tests/test-ioctl.c: New file.
1453
1454 2011-09-20  Bruno Haible  <bruno@clisp.org>
1455
1456         fcntl tests: EBADF tests.
1457         * tests/test-fcntl.c (main): Add more tests for EBADF.
1458
1459 2011-09-20  Bruno Haible  <bruno@clisp.org>
1460
1461         utimensat tests: EBADF tests.
1462         * tests/test-utimensat.c (main): Add tests for EBADF.
1463
1464         renameat tests: EBADF tests.
1465         * tests/test-renameat.c (main): Add tests for EBADF.
1466
1467         mkfifoat tests: EBADF tests.
1468         * tests/test-mkfifoat.c (main): Add tests for EBADF.
1469
1470         readlinkat tests: EBADF tests.
1471         * tests/test-readlinkat.c (main): Add tests for EBADF.
1472
1473         symlinkat tests: EBADF tests.
1474         * tests/test-symlinkat.c (main): Add tests for EBADF.
1475
1476         linkat tests: EBADF tests.
1477         * tests/test-linkat.c (main): Add tests for EBADF.
1478
1479         Tests for module 'faccessat'.
1480         * modules/faccessat-tests: New file.
1481         * tests/test-faccessat.c: New file.
1482
1483         fdopendir tests: EBADF tests.
1484         * tests/test-fdopendir.c (main): Add more tests for EBADF.
1485
1486         openat tests: EBADF tests.
1487         * tests/test-fchownat.c (main): Add tests for EBADF.
1488         * tests/test-fstatat.c (main): Likewise.
1489         * tests/test-mkdirat.c (main): Likewise.
1490         * tests/test-openat.c (main): Likewise.
1491         * tests/test-unlinkat.c (main): Likewise.
1492         * tests/test-fchmodat.c: New file.
1493         * modules/openat-tests (Files): Add tests/test-fchmodat.c.
1494         (Makefile.am): Also run 'test-fchmodat'.
1495
1496 2011-09-20  Bruno Haible  <bruno@clisp.org>
1497
1498         utimens, futimens, fdutimensat tests: EBADF tests.
1499         * tests/test-futimens.h (test_futimens): Add more tests for EBADF.
1500
1501         Tests for function fstat().
1502         * modules/fstat-tests: New file.
1503         * tests/test-fstat.c: New file.
1504         * modules/sys_stat-tests (Depends-on): Add fstat-tests.
1505
1506 2011-09-20  Bruno Haible  <bruno@clisp.org>
1507
1508         test-ttyname_r tests: EBADF tests.
1509         * tests/test-ttyname_r.c (main): Add tests for EBADF.
1510
1511         Tests for module 'isatty'.
1512         * modules/isatty-tests: New file.
1513         * tests/test-isatty.c: New file.
1514
1515         Tests for module 'write'.
1516         * modules/write-tests: New file.
1517         * tests/test-write.c: New file.
1518
1519         Tests for module 'read'.
1520         * modules/read-tests: New file.
1521         * tests/test-read.c: New file.
1522
1523         pwrite tests: EBADF tests.
1524         * tests/test-pwrite.c (main): Add tests for EBADF.
1525
1526         pread tests: EBADF tests.
1527         * tests/test-pread.c (main): Add tests for EBADF.
1528
1529         lseek tests: EBADF tests.
1530         * tests/test-lseek.c (main): Add more tests for EBADF.
1531
1532         Tests for module 'ftruncate'.
1533         * modules/ftruncate-tests: New file.
1534         * tests/test-ftruncate.sh: New file.
1535         * tests/test-ftruncate.c: New file.
1536
1537         fsync tests: EBADF tests.
1538         * tests/test-fsync.c (main): Add more tests for EBADF.
1539
1540         fdatasync tests: EBADF tests.
1541         * tests/test-fdatasync.c (main): Add more tests for EBADF.
1542
1543         Tests for module 'fchown'.
1544         * modules/fchown-tests: New file.
1545         * tests/test-fchown.c: New file.
1546
1547         Tests for module 'fchmod'.
1548         * modules/fchmod-tests: New file.
1549         * tests/test-fchmod.c: New file.
1550
1551         fchdir tests: EBADF tests.
1552         * tests/test-fchdir.c (main): Add more tests for EBADF.
1553
1554         dup2 tests: EBADF tests.
1555         * tests/test-dup2.c (main): Add more tests for EBADF.
1556
1557         Tests for module 'dup'.
1558         * modules/dup-tests: New file.
1559         * tests/test-dup.c: New file.
1560
1561         Tests for module 'close'.
1562         * modules/close-tests: New file.
1563         * tests/test-close.c: New file.
1564
1565 2011-09-20  Bruno Haible  <bruno@clisp.org>
1566
1567         Tests for module 'shutdown'.
1568         * modules/shutdown-tests: New file.
1569         * tests/test-shutdown.c: New file.
1570
1571         Tests for module 'setsockopt'.
1572         * modules/setsockopt-tests: New file.
1573         * tests/test-setsockopt.c: New file.
1574
1575         Tests for module 'sendto'.
1576         * modules/sendto-tests: New file.
1577         * tests/test-sendto.c: New file.
1578
1579         Tests for module 'send'.
1580         * modules/send-tests: New file.
1581         * tests/test-send.c: New file.
1582
1583         Tests for module 'recvfrom'.
1584         * modules/recvfrom-tests: New file.
1585         * tests/test-recvfrom.c: New file.
1586
1587         Tests for module 'recv'.
1588         * modules/recv-tests: New file.
1589         * tests/test-recv.c: New file.
1590
1591         Tests for module 'listen'.
1592         * modules/listen-tests: New file.
1593         * tests/test-listen.c: New file.
1594
1595         Tests for module 'getsockopt'.
1596         * modules/getsockopt-tests: New file.
1597         * tests/test-getsockopt.c: New file.
1598
1599         Tests for module 'getsockname'.
1600         * modules/getsockname-tests: New file.
1601         * tests/test-getsockname.c: New file.
1602
1603         Tests for module 'getpeername'.
1604         * modules/getpeername-tests: New file.
1605         * tests/test-getpeername.c: New file.
1606
1607         Tests for module 'connect'.
1608         * modules/connect-tests: New file.
1609         * tests/test-connect.c: New file.
1610
1611         Tests for module 'bind'.
1612         * modules/bind-tests: New file.
1613         * tests/test-bind.c: New file.
1614
1615         accept4 tests: Fix for native Windows.
1616         * tests/test-accept4.c: Include sockets.h.
1617         (main): Invoke gl_sockets_startup.
1618         * modules/accept4-tests (Depends-on): Add sockets.
1619
1620         accept tests: Fix for native Windows.
1621         * tests/test-accept.c: Include sockets.h.
1622         (main): Invoke gl_sockets_startup.
1623         * modules/accept-tests (Depends-on): Add sockets.
1624
1625 2011-09-19  Bruno Haible  <bruno@clisp.org>
1626
1627         msvc-inval: Require a semicolon after DONE_MSVC_INVAL.
1628         * lib/msvc-inval.h (TRY_MSVC_INVAL, DONE_MSVC_INVAL): Wrap in a
1629         do...while(0).
1630         * lib/dup2.c (rpl_dup2): Add a semicolon after DONE_MSVC_INVAL.
1631         Suggested by Paul Eggert.
1632
1633 2011-09-19  Bruno Haible  <bruno@clisp.org>
1634
1635         sched: Ensure pid_t is defined.
1636         * m4/sched_h.m4 (gl_SCHED_H): Arrange to override <sched.h> if it does
1637         not define pid_t.
1638         * lib/sched.in.h: Include <sys/types.h>.
1639         * doc/posix-headers/sched.texi: Mention the pid_t problem.
1640         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
1641
1642 2011-09-19  Bruno Haible  <bruno@clisp.org>
1643
1644         msvc-inval: Ensure the entire expansion is a single statement.
1645         * lib/msvc-inval.h (TRY_MSVC_INVAL, DONE_MSVC_INVAL): Add an extra pair
1646         of braces.
1647
1648 2011-09-19  Jim Meyering  <meyering@redhat.com>
1649
1650         tests: use printf, not echo in init.sh's warn_ function
1651         * tests/init.sh (warn_): Use printf, not echo.  The latter would
1652         misbehave when given strings containing a backslash or starting
1653         with e.g., -n.  James Youngman suggested setting IFS.
1654
1655 2011-09-19  Eric Blake  <eblake@redhat.com>
1656
1657         futimens: enhance test
1658         * tests/test-futimens.h (test_futimens): Also check for EBADF on
1659         closed non-negative fd.
1660
1661         date: accept 'hence' as opposite of 'ago'
1662         * lib/parse-datetime.y (relative_time_table): Add 'hence'.
1663         * tests/test-parse-datetime.c (main): Enhance test.
1664         Suggested by Jesse Wilson.
1665
1666 2011-09-19  Jim Meyering  <meyering@redhat.com>
1667
1668         getcwd: don't fail in a deep directory on a system without openat
1669         Before this change, getcwd would fail when called from a directory
1670         of depth PATH_MAX / 3 or greater.  That was due to the fact that
1671         the non-openat implementation used "..", "../..", "../../..", etc.
1672         to access ancestor directories.  With too many, that string would
1673         be longer than PATH_MAX.
1674         * lib/getcwd.c (HAVE_OPENAT_SUPPORT): Define also when we are
1675         using gnulib's openat replacement.
1676         * m4/openat.m4: Set GNULIB_OPENAT, so getcwd.c knows when
1677         we're using the replacement function.
1678
1679 2011-09-14  Martin von Gagern  <Martin.vGagern@gmx.net>
1680
1681         maint.mk: avoid warnings from perl about missing files
1682         * top/maint.mk (def_sym_regex): Ignore files listed in
1683         $(gl_other_headers_) that do not exist, say because a project
1684         does not use a corresponding module.
1685
1686 2011-09-18  Paul Eggert  <eggert@cs.ucla.edu>
1687
1688         stat: use pathmax.h only if needed
1689         * lib/stat.c: Include pathmax.h only if REPLACE_FUNC_STAT_DIR.
1690         This is better for Emacs, which does not have a mingw port and
1691         therefore can avoid the pathmax module.
1692
1693         utimens: remove dependency on dup2
1694         * lib/utimens.c (fdutimens): Don't invoke dup2; it's not needed
1695         to work around the Linux kernel bug.
1696         * modules/utimens (Depends-on): Remove dup2.
1697
1698 2011-09-18  Bruno Haible  <bruno@clisp.org>
1699
1700         inet_ntop, inet_pton: Look for it also in libresolv.
1701         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): If the function was not found in
1702         libnsl, search for it in libresolv.
1703         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Likewise.
1704         Needed on Solaris 7.
1705
1706 2011-09-18  Bruno Haible  <bruno@clisp.org>
1707
1708         accept, accept4 tests: Avoid link error on Solaris.
1709         * modules/accept-tests (Makefile.am): Link test-accept against
1710         $(LIBSOCKET).
1711         * modules/accept4-tests (Makefile.am): Link test-accept4 against
1712         $(LIBSOCKET).
1713
1714         accept4: Avoid link error on Solaris.
1715         * modules/accept4 (Link): New section.
1716
1717         socket functions: Avoid link errors on Solaris.
1718         * modules/accept (Depends-on): Add socketlib.
1719         (Link): New section.
1720         * modules/bind (Depends-on): Add socketlib.
1721         (Link): New section.
1722         * modules/connect (Depends-on): Add socketlib.
1723         (Link): New section.
1724         * modules/getpeername (Depends-on): Add socketlib.
1725         (Link): New section.
1726         * modules/getsockname (Depends-on): Add socketlib.
1727         (Link): New section.
1728         * modules/getsockopt (Depends-on): Add socketlib.
1729         (Link): New section.
1730         * modules/listen (Depends-on): Add socketlib.
1731         (Link): New section.
1732         * modules/recv (Depends-on): Add socketlib.
1733         (Link): New section.
1734         * modules/recvfrom (Depends-on): Add socketlib.
1735         (Link): New section.
1736         * modules/send (Depends-on): Add socketlib.
1737         (Link): New section.
1738         * modules/sendto (Depends-on): Add socketlib.
1739         (Link): New section.
1740         * modules/setsockopt (Depends-on): Add socketlib.
1741         (Link): New section.
1742         * modules/shutdown (Depends-on): Add socketlib.
1743         (Link): New section.
1744         * modules/socket (Depends-on): Add socketlib.
1745         (Link): New section.
1746
1747 2011-09-18  Bruno Haible  <bruno@clisp.org>
1748
1749         ptsname tests: Let the test fail rather than hang (e.g. on AIX 5.1).
1750         * tests/test-ptsname.c (main): Terminate the test if it takes longer
1751         than 5 seconds.
1752         * modules/ptsname-tests (configure.ac): Test for alarm.
1753
1754 2011-09-18  Bruno Haible  <bruno@clisp.org>
1755
1756         posix_spawn_file_actions_add*: Fix module dependencies.
1757         * modules/posix_spawn_file_actions_addclose (Dependencies): Add
1758         posix_spawn_file_actions_init.
1759         * modules/posix_spawn_file_actions_adddup2 (Dependencies): Likewise.
1760         * modules/posix_spawn_file_actions_addopen (Dependencies): Likewise.
1761
1762 2011-09-18  Bruno Haible  <bruno@clisp.org>
1763
1764         rename, renameat tests: Avoid test failures on FreeBSD 6.4.
1765         * tests/test-rename.h (test_rename): Allow error code EEXIST.
1766         * tests/test-renameat.c (main): Likewise.
1767
1768 2011-09-18  Bruno Haible  <bruno@clisp.org>
1769
1770         Tests for module 'accept4'.
1771         * modules/accept4-tests: New file.
1772         * tests/test-accept4.c: New file.
1773
1774 2011-09-18  Bruno Haible  <bruno@clisp.org>
1775
1776         Tests for module 'accept'.
1777         * modules/accept-tests: New file.
1778         * tests/test-accept.c: New file.
1779
1780 2011-09-18  Bruno Haible  <bruno@clisp.org>
1781
1782         dup2: Support for MSVC.
1783         * lib/dup2.c: Include msvc-inval.h.
1784         (rpl_dup2): Handle invalid parameter notifications during dup2 and
1785         _get_osfhandle calls.
1786         * modules/dup2 (Depends-on): Add msvc-inval.
1787         * doc/posix-functions/dup2.texi: Mention problem on MSVC.
1788
1789         New module 'msvc-inval'.
1790         * lib/msvc-inval.h: New file.
1791         * lib/msvc-inval.c: New file.
1792         * m4/msvc-inval.m4: New file.
1793         * modules/msvc-inval: New file.
1794
1795 2011-09-17  Bruno Haible  <bruno@clisp.org>
1796
1797         Tests for module 'pclose'.
1798         * modules/pclose-tests: New file.
1799
1800         New module 'pclose'.
1801         * lib/stdio.in.h (pclose): New declaration.
1802         * lib/pclose.c: New file.
1803         * m4/pclose.m4: New file.
1804         * m4/stdio_h.m4 (gl_STDIO_H): Test whether pclose is declared.
1805         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_PCLOSE, HAVE_PCLOSE.
1806         * modules/stdio (Makefile.am): Substitute GNULIB_PCLOSE, HAVE_PCLOSE.
1807         * modules/pclose: New file.
1808         * modules/popen-tests (Depends-on): Add pclose.
1809         * modules/popen-safer-tests (Depends-on): Likewise.
1810         * doc/posix-functions/pclose.texi: Mention the new module.
1811
1812 2011-09-17  Bruno Haible  <bruno@clisp.org>
1813
1814         popen: Support for MSVC.
1815         * lib/stdio.in.h (popen): Declare it if the system lacks this function.
1816         * lib/popen.c (popen): Provide alternate definition for native Windows.
1817         * m4/popen.m4 (gl_FUNC_POPEN): Test if popen exists. Set HAVE_POPEN.
1818         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_POPEN.
1819         * modules/popen (Depends-on, configure.ac): Update condition.
1820         * modules/stdio (Makefile.am): Substitute HAVE_POPEN.
1821         * doc/posix-functions/popen.texi: Mention that the MSVC problem is
1822         fixed.
1823
1824 2011-09-17  Bruno Haible  <bruno@clisp.org>
1825
1826         isnanl, isnand, isnanf: Work around MSVC bug.
1827         * lib/isnan.c (FUNC): Use alternate ways of computing NaN and Infinity.
1828
1829 2011-09-17  Bruno Haible  <bruno@clisp.org>
1830
1831         sys_socket tests: Fix recent mistake.
1832         * tests/test-sys_socket.c (t1): Avoid collision of identifiers.
1833
1834 2011-09-17  Bruno Haible  <bruno@clisp.org>
1835
1836         putenv: Support for MSVC.
1837         * modules/putenv (Depends-on): Add environ.
1838         * lib/putenv.c (environ): Disable declaration.
1839         * lib/unistd.in.h: Update comment.
1840
1841 2011-09-17  Bruno Haible  <bruno@clisp.org>
1842
1843         math: Avoid macro redefinition warnings on MSVC.
1844         * lib/math.in.h (ceilf, ceill, floorf, floorl, frexpl, ldexpl):
1845         Undefine before redefining.
1846
1847 2011-09-17  Bruno Haible  <bruno@clisp.org>
1848
1849         doc: Mention functions which are declared as macros.
1850         * doc/posix-functions/*[fl].texi: Mention that some functions are
1851         defined as macros with arguments only.
1852
1853 2011-09-17  Bruno Haible  <bruno@clisp.org>
1854
1855         Add dependencies to new dirent related modules.
1856         * modules/backupfile (Depends-on): Add opendir, readdir, closedir.
1857         * modules/fts (Depends-on): Likewise.
1858         * modules/glob (Depends-on): Likewise.
1859         * modules/savedir (Depends-on): Likewise.
1860         * modules/scandir (Depends-on): Likewise.
1861         * modules/dirent-safer (Depends-on): Add opendir, closedir.
1862         * modules/fdopendir (Depends-on): Add opendir.
1863
1864 2011-09-17  Bruno Haible  <bruno@clisp.org>
1865
1866         inet_pton: Support for MSVC on Windows Vista or newer.
1867         * lib/arpa_inet.in.h (inet_pton): Also consider REPLACE_INET_PTON.
1868         * lib/inet_pton.c (rpl_inet_pton): Use a simple wrapper if
1869         HAVE_DECL_INET_PTON is defined.
1870         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Invoke gl_PREREQ_SYS_H_WINSOCK2.
1871         On platforms with <winsock2.h>, test whether inet_pton is declared in
1872         <ws2tcpip.h>. If so, arrange to replace it.
1873         * m4/arpa_inet_h.m4 (gl_ARPA_INET_H_DEFAULTS): Initialize
1874         REPLACE_INET_PTON.
1875         * modules/arpa_inet (Makefile.am): Substitute REPLACE_INET_PTON.
1876         * modules/inet_pton (Files): Add m4/sys_socket_h.m4.
1877         (Depends-on, configure.ac): Update condition.
1878         * doc/posix-functions/inet_pton.texi: Mention the MSVC problem.
1879
1880 2011-09-17  Bruno Haible  <bruno@clisp.org>
1881
1882         inet_ntop: Support for MSVC on Windows Vista or newer.
1883         * lib/arpa_inet.in.h (inet_ntop): Also consider REPLACE_INET_NTOP.
1884         * lib/inet_ntop.c (rpl_inet_ntop): Use a simple wrapper if
1885         HAVE_DECL_INET_NTOP is defined.
1886         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Invoke gl_PREREQ_SYS_H_WINSOCK2.
1887         On platforms with <winsock2.h>, test whether inet_ntop is declared in
1888         <ws2tcpip.h>. If so, arrange to replace it.
1889         * m4/arpa_inet_h.m4 (gl_ARPA_INET_H_DEFAULTS): Initialize
1890         REPLACE_INET_NTOP.
1891         * modules/arpa_inet (Makefile.am): Substitute REPLACE_INET_NTOP.
1892         * modules/inet_ntop (Files): Add m4/sys_socket_h.m4.
1893         (Depends-on, configure.ac): Update condition.
1894         * doc/posix-functions/inet_ntop.texi: Mention the MSVC problem.
1895
1896 2011-09-16  Eric Blake  <eblake@redhat.com>
1897
1898         test-fsync: yet another enhancement
1899         * tests/test-fsync.c (main): Also test behavior on read-only text
1900         file.
1901
1902 2011-09-16  Bruno Haible  <bruno@clisp.org>
1903
1904         Enhance fsync, fdatasync tests.
1905         * tests/test-fsync.c (main): Test both STDIN_FILENO and STDOUT_FILENO.
1906         * tests/test-fdatasync.c (main): Likewise.
1907
1908 2011-09-16  Bruno Haible  <bruno@clisp.org>
1909
1910         Support for MSVC compiler: Ensure mode_t gets defined.
1911         * m4/fcntl_h.m4 (gl_FCNTL_H): Require AC_TYPE_MODE_T.
1912         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
1913         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
1914         * m4/sys_types_h.m4 (gl_SYS_TYPES_H): Likewise.
1915         * tests/test-fcntl-h.c: Check that mode_t is defined.
1916         * tests/test-sys_stat.c: Likewise.
1917         * tests/test-sys_types.c: Likewise.
1918         * doc/posix-headers/fcntl.texi: Mention the missing mode_t problem.
1919         * doc/posix-headers/sys_stat.texi: Likewise.
1920         * doc/posix-headers/sys_types.texi: Likewise.
1921
1922 2011-09-16  Bruno Haible  <bruno@clisp.org>
1923
1924         sys_stat: Support for MSVC.
1925         * lib/sys_stat.in.h (S_IFIFO): Define to _S_IFIFO if that exists.
1926         * tests/test-sys_stat.c: Don't assume that S_IFBLK exists.
1927         * doc/posix-headers/sys_stat.texi: Mention missing S_IFIFO, S_IFBLK on
1928         MSVC.
1929
1930 2011-09-16  Bruno Haible  <bruno@clisp.org>
1931
1932         Support for MSVC compiler: Ensure off_t gets defined.
1933         * lib/unistd.in.h: Include <sys/types.h>.
1934         * tests/test-fcntl-h.c: Check that off_t is defined.
1935         * tests/test-sys_stat.c: Likewise.
1936         * tests/test-sys_types.c: Likewise.
1937
1938 2011-09-16  Eric Blake  <eblake@redhat.com>
1939
1940         fdatasync: port to Solaris
1941         * m4/fdatasync.m4 (gl_FUNC_FDATASYNC): Set LIB_FDATASYNC.
1942         * modules/fdatasync (Link): Document it.
1943         * modules/fdatasync-tests (test_fdatasync_LDADD): Link with it.
1944
1945         fdatasync: port to MacOS X 10.7
1946         * m4/fdatasync.m4 (gl_FUNC_FDATASYNC): Check for present but not
1947         declared.
1948         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Another default.
1949         * modules/unistd (Makefile.am): Substitute it.
1950         * lib/unistd.in.h (fdatasync): Declare on MacOS.
1951         * doc/posix-functions/fdatasync.texi (fdatasync): Document it.
1952
1953         fdatasync: minor improvements
1954         * modules/fdatasync (Depends-on): Add condition for fsync.
1955         * lib/fdatasync.c (fdatasync): Add comment.
1956         * tests/test-unistd-c++.cc: Test fdatasync.
1957
1958         unistd: update refs to newer POSIX
1959         * lib/unistd.in.h: Prefer POSIX 2008 over 2001.
1960         Suggested by Bruno Haible.
1961
1962         fdatasync: new module
1963         * modules/fsync (Description): Document difference to fdatasync.
1964         * modules/fdatasync: New module.
1965         * m4/fdatasync.m4 (gl_FUNC_FDATASYNC): New file.
1966         * lib/fdatasync.c (fdatasync): Likewise.
1967         * m4/unistd_h.m4 (gl_UNISTD_H, gl_UNISTD_H_DEFAULTS): Set up
1968         defaults.
1969         * modules/unistd (Makefile.am): Set witnesses.
1970         * lib/unistd.in.h (fdatasync): Declare.
1971         * MODULES.html.sh: Document it.
1972         * doc/posix-functions/fdatasync.texi (fdatasync): Likewise.
1973         * modules/fdatasync-tests: New test.
1974         * tests/test-fdatasync.c: Likewise.
1975
1976 2011-09-16  Eric Blake  <eblake@redhat.com>
1977
1978         test-fsync: enhance tests
1979         * modules/fsync-tests (Depends-on): Add errno, for mingw.
1980         * tests/test-fsync.c (main): Enhance test.
1981
1982 2011-09-15  Bruno Haible  <bruno@clisp.org>
1983
1984         Support for MSVC compiler: Ensure ssize_t gets defined.
1985         * doc/posix-headers/sys_types.texi: Mention the missing ssize_t problem.
1986         * doc/posix-headers/stdio.texi: Likewise.
1987         * modules/stdio (Depends-on): Add ssize_t.
1988         * modules/sys_socket (Depends-on): Likewise.
1989         * modules/sys_types (Depends-on): Likewise.
1990         * modules/sys_uio (Depends-on): Likewise.
1991         * modules/unistd (Depends-on): Likewise.
1992         * tests/test-sys_socket.c: Check that size_t and ssize_t are defined.
1993         * tests/test-sys_types.c: Check that ssize_t is defined.
1994
1995 2011-09-14  Bruno Haible  <bruno@clisp.org>
1996
1997         Avoid using #, the m4 comment starter character, near brackets.
1998         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER_ONE): Use |, not #, as
1999         delimiter character in sed expressions.
2000         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): Likewise.
2001         Suggested by Eric Blake.
2002
2003         Properly quote AC_CHECK_DECLS' 4th argument.
2004         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Double-quote AC_CHECK_DECLS' 4th
2005         argument.
2006         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
2007         * m4/ceill.m4 (gl_FUNC_CEILL): Likewise.
2008         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
2009         * m4/floorf.m4 (gl_FUNC_FLOORF): Likewise.
2010         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
2011         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH): Likewise.
2012         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Likewise.
2013         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Likewise.
2014         * m4/gethrxtime.m4 (gl_GETHRXTIME): Likewise.
2015         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
2016         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Likewise.
2017         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Likewise.
2018         * m4/isfinite.m4 (gl_ISFINITE): Likewise.
2019         * m4/isinf.m4 (gl_ISINF): Likewise.
2020         * m4/logb.m4 (gl_FUNC_LOGB): Likewise.
2021         * m4/readutmp.m4 (gl_READUTMP): Likewise.
2022         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
2023         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
2024         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
2025         * m4/roundl.m4 (gl_FUNC_ROUNDL): Likewise.
2026         * m4/signbit.m4 (gl_SIGNBIT): Likewise.
2027         * m4/sleep.m4 (gl_FUNC_SLEEP): Likewise.
2028         * m4/strsignal.m4 (gl_PREREQ_STRSIGNAL): Likewise.
2029         * m4/trunc.m4 (gl_FUNC_TRUNC): Likewise.
2030         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
2031         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
2032         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Likewise.
2033         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
2034         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
2035         Reported by Eric Blake.
2036
2037         Properly quote AC_CHECK_DECL's 4th argument.
2038         * m4/acosl.m4 (gl_FUNC_ACOSL): Double-quote AC_CHECK_DECL's 4th
2039         argument.
2040         * m4/argp.m4 (gl_ARGP): Likewise.
2041         * m4/asinl.m4 (gl_FUNC_ASINL): Likewise.
2042         * m4/atanl.m4 (gl_FUNC_ATANL): Likewise.
2043         * m4/cosl.m4 (gl_FUNC_COSL): Likewise.
2044         * m4/expl.m4 (gl_FUNC_EXPL): Likewise.
2045         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): Likewise.
2046         * m4/getloadavg.m4 (gl_GETLOADAVG): Likewise.
2047         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Likewise.
2048         * m4/logl.m4 (gl_FUNC_LOGL): Likewise.
2049         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
2050         * m4/sinl.m4 (gl_FUNC_SINL): Likewise.
2051         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Likewise.
2052         * m4/tanl.m4 (gl_FUNC_TANL): Likewise.
2053         Reported by Eric Blake.
2054
2055 2011-09-14  Eric Blake  <eblake@redhat.com>
2056
2057         opendir: avoid compile warning
2058         * lib/opendir.c (includes): Always include errno.h.
2059         Reported by Tatsuro MATSUOKA.
2060
2061 2011-09-14  Jim Meyering  <meyering@redhat.com>
2062
2063         maint.mk: sc_tight_scope: propagate failure from sub-make
2064         * top/maint.mk (sc_tight_scope): Actually initialize and use $fail.
2065         Reported by Martin von Gagern.
2066
2067 2011-09-13  Bruno Haible  <bruno@clisp.org>
2068
2069         tempname: Support for MSVC.
2070         * doc/posix-headers/fcntl.texi: Document the problem with O_ACCMODE on
2071         MSVC.
2072         * modules/tempname (Depends-on): Add fcntl-h.
2073
2074 2011-09-13  Bruno Haible  <bruno@clisp.org>
2075
2076         sys_time: Support for MSVC.
2077         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Invoke
2078         gl_PREREQ_SYS_H_WINSOCK2. When testing for 'struct timeval', also
2079         include <winsock2.h>.
2080         * lib/sys_time.in.h: On MSVC, include <winsock2.h> and hide its
2081         function declarations that collide with POSIX.
2082         * modules/sys_time (Files): Add m4/sys_socket_h.m4.
2083         (Makefile.am): Substitute HAVE_WINSOCK2_H.
2084
2085 2011-09-13  Bruno Haible  <bruno@clisp.org>
2086
2087         stat: Support for MSVC.
2088         * lib/stat.c: Include pathmax.h.
2089         * modules/stat (Depends-on): Add pathmax.
2090
2091         pathmax: Support for native Windows.
2092         * lib/pathmax.h (PATH_MAX): Define to 260 on native Windows.
2093
2094 2011-09-12  Bruno Haible  <bruno@clisp.org>
2095
2096         New modules 'opendir', 'readdir', 'rewinddir', 'closedir'.
2097         * lib/dirent.in.h (struct dirent): New type.
2098         (DT_UNKNOWN, DT_FIFO, DT_CHR, DT_DIR, DT_BLK, DT_REG, DT_LNK, DT_SOCK,
2099         DT_WHT): New macros.
2100         (DIR): New type.
2101         (opendir, closedir): Declare only if the module 'opendir' is enabled.
2102         (readdir, rewinddir): New declarations.
2103         * lib/dirent-private.h: New file.
2104         * lib/opendir.c: New file.
2105         * lib/readdir.c: New file.
2106         * lib/rewinddir.c: New file.
2107         * lib/closedir.c: New file.
2108         * lib/fchdir.c (rpl_closedir, rpl_opendir): Remove functions.
2109         * m4/opendir.m4: New file.
2110         * m4/readdir.m4: New file.
2111         * m4/rewinddir.m4: New file.
2112         * m4/closedir.m4: New file.
2113         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't set REPLACE_OPENDIR,
2114         REPLACE_CLOSEDIR here.
2115         * m4/dirent_h.m4 (gl_DIRENT_H): Also check whether closedir, opendir,
2116         readdir, rewinddir are declared.
2117         (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_OPENDIR, GNULIB_READDIR,
2118         GNULIB_REWINDDIR, GNULIB_CLOSEDIR, HAVE_OPENDIR, HAVE_READDIR,
2119         HAVE_REWINDDIR, HAVE_CLOSEDIR.
2120         * modules/dirent (Makefile.am): Substitute GNULIB_OPENDIR,
2121         GNULIB_READDIR, GNULIB_REWINDDIR, GNULIB_CLOSEDIR, HAVE_OPENDIR,
2122         HAVE_READDIR, HAVE_REWINDDIR, HAVE_CLOSEDIR.
2123         * modules/opendir: New file.
2124         * modules/readdir: New file.
2125         * modules/rewinddir: New file.
2126         * modules/closedir: New file.
2127         * doc/posix-functions/opendir.texi: Mention the 'opendir' module.
2128         * doc/posix-functions/readdir.texi: Mention the 'readdir' module.
2129         * doc/posix-functions/rewinddir.texi: Mention the 'rewinddir' module.
2130         * doc/posix-functions/closedir.texi: Mention the 'closedir' module.
2131         * NEWS: Mention the 'fchdir' change.
2132
2133 2011-09-11  Bruno Haible  <bruno@clisp.org>
2134
2135         asm-underscore.m4: Support for MSVC.
2136         * m4/asm-underscore.m4 (gl_C_ASM): New macro.
2137         (gl_ASM_SYMBOL_PREFIX): Require it. Use its results.
2138
2139 2011-09-11  Reuben Thomas  <rrt@sc3d.org>
2140
2141         Doc about crypt functions.
2142         * doc/posix-functions/crypt.texi: Expand range of glibc versions
2143         needing for _GNU_SOURCE to get crypt.
2144         * doc/posix-functions/encrypt.texi: Likewise.
2145         * doc/posix-functions/setkey.texi: Likewise.
2146
2147 2011-09-11  Bruno Haible  <bruno@clisp.org>
2148
2149         doc: Update regarding MSVC 9.
2150         * doc/gnulib-intro.texi (Target Platforms): Classify MSVC as "rarely
2151         tested".
2152         * doc/posix-functions/*.texi: Update with info about MSVC 9.
2153         * doc/posix-headers/*.texi: Likewise.
2154         * doc/pastposix-functions/*.texi: Likewise.
2155         * doc/glibc-functions/*.texi: Likewise.
2156         * doc/glibc-headers/*.texi: Likewise.
2157
2158 2011-09-11  Bruno Haible  <bruno@clisp.org>
2159
2160         unistd et al.: Don't assume <unistd.h> exists.
2161         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Don't include <unistd.h> if it
2162         does not exist.
2163         * m4/environ.m4 (gl_ENVIRON): Don't include <unistd.h> if it does not
2164         exist. But include <stdlib.h>.
2165         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): If <unistd.h> does not exist,
2166         include <io.h> and <stdlib.h> instead. Don't test symbolink links if
2167         symlink() does not exist.
2168         * m4/fflush.m4 (gl_FUNC_FFLUSH_STDIN): If <unistd.h> does not exist,
2169         include <io.h> instead.
2170         * m4/free.m4 (gl_FUNC_FREE): Assume free(NULL) works on native Windows.
2171         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): If <unistd.h> does not exist,
2172         include <direct.h> instead.
2173         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): Likewise.
2174         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
2175         * m4/lseek.m4 (gl_FUNC_LSEEK): If <unistd.h> does not exist, include
2176         <io.h> instead.
2177         * m4/rename.m4 (gl_FUNC_RENAME): Assume rename() manages hard links
2178         correctly if the system does not have hard links.
2179         * m4/rmdir.m4 (gl_FUNC_RMDIR): If <unistd.h> does not exist, include
2180         <direct.h> instead.
2181         * m4/unistd_h.m4 (gl_UNISTD_H): If <unistd.h> does not exist, bypass
2182         it when looking for function declarations.
2183         * m4/unlink.m4 (gl_FUNC_UNLINK): If <unistd.h> does not exist, include
2184         <direct.h> and <io.h> instead.
2185         * doc/posix-headers/unistd.texi: More details about MSVC problem.
2186
2187 2011-09-11  Bruno Haible  <bruno@clisp.org>
2188
2189         strcase: Support for MSVC.
2190         * modules/strcase (Status, Notice): Remove obsoletion mark.
2191         * doc/posix-functions/strcasecmp.texi: Mention MSVC problem.
2192         * doc/posix-functions/strncasecmp.texi: Likewise.
2193
2194         strings: Don't assume <strings.h> exists.
2195         * lib/strings.in.h: Include <strings.h> only if HAVE_STRINGS_H is 1.
2196         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_BODY): Set HAVE_STRINGS_H.
2197         * modules/strings (Makefile.am): Substitute HAVE_STRINGS_H.
2198         * doc/posix-headers/strings.texi: Mention the MSVC problem.
2199
2200 2011-09-11  Bruno Haible  <bruno@clisp.org>
2201
2202         dirent: Don't assume <dirent.h> exists.
2203         * lib/dirent.in.h: Include <dirent.h> only if HAVE_DIRENT_H is 1.
2204         * m4/dirent_h.m4 (gl_DIRENT_H): Set HAVE_DIRENT_H.
2205         * modules/dirent (Makefile.am): Substitute HAVE_DIRENT_H.
2206         * doc/posix-headers/dirent.texi: Mention the MSVC problem.
2207
2208 2011-09-11  Bruno Haible  <bruno@clisp.org>
2209
2210         Fix wint_t on MSVC.
2211         * lib/wchar.in.h (wint_t): On MSVC, override it.
2212         * lib/wctype.in.h (wint_t): Likewise.
2213         * m4/stdint.m4 (gl_STDINT_TYPE_PROPERTIES): Override BITSIZEOF_WINT_T on
2214         MSVC.
2215         * doc/posix-headers/wchar.texi: Mention the problem with wint_t on MSVC.
2216         * doc/posix-headers/wctype.texi: Likewise.
2217
2218 2011-09-11  Bruno Haible  <bruno@clisp.org>
2219
2220         sys_types: Fix typo.
2221         * lib/sys_types.in.h: Fix typo in comment.
2222         Reported by Paul Eggert.
2223
2224         Support for MSVC compiler: Ensure size_t gets defined.
2225         * modules/strings (Depends-on): Add 'sys_types'.
2226         * modules/sys_uio (Depends-on): Likewise.
2227         * lib/sys_uio.in.h: Update comment.
2228
2229         C++ tests for module 'sys_types'.
2230         * modules/sys_types-c++-tests: New file.
2231         * tests/test-sys_types-c++.cc: New file.
2232
2233         Tests for module 'sys_types'.
2234         * modules/sys_types-tests: New file.
2235         * tests/test-sys_types.c: New file.
2236
2237         New module 'sys_types'.
2238         * lib/sys_types.in.h: New file.
2239         * m4/sys_types_h.m4: New file.
2240         * modules/sys_types: New file.
2241         * doc/posix-headers/sys_types.texi: Mention the new module and the
2242         size_t problem on MSVC 9.
2243
2244 2011-09-11  Bruno Haible  <bruno@clisp.org>
2245
2246         Support for MSVC compiler: Avoid division by a literal 0.
2247         * lib/math.in.h (NAN): Define through a function call also on MSVC.
2248         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Divide by 'zero' instead of 0.0.
2249         * m4/printf.m4 (gl_PRINTF_INFINITE, gl_PRINTF_DIRECTIVE_A,
2250         gl_PRINTF_DIRECTIVE_F, gl_PRINTF_FLAG_ZERO): Likewise.
2251         (gl_PRINTF_INFINITE_LONG_DOUBLE): Divide by 'zeroL' instead of 0.0L.
2252         * tests/infinity.h: New file.
2253         * tests/nan.h (NaNf, NaNd, NaNl): Define through a function call also
2254         on MSVC.
2255         * tests/test-ceilf1.c: Include infinity.h.
2256         (main): Use Infinityf.
2257         * tests/test-ceil1.c: Include infinity.h.
2258         (main): Use Infinityd.
2259         * tests/test-ceill.c: Include infinity.h.
2260         (main): Use Infinityl.
2261         * tests/test-dprintf-posix.c: Include infinity.h.
2262         (test_function): Use Infinityd.
2263         * tests/test-floorf1.c: Include infinity.h.
2264         (main): Use Infinityf.
2265         * tests/test-floor1.c: Include infinity.h.
2266         (main): Use Infinityd.
2267         * tests/test-floorl.c: Include infinity.h.
2268         (main): Use Infinityl.
2269         * tests/test-fprintf-posix.c: Include infinity.h.
2270         (test_function): Use Infinityd.
2271         * tests/test-frexp.c: Include infinity.h.
2272         (main): Use Infinityd.
2273         * tests/test-frexpl.c: Include infinity.h.
2274         (main): Use Infinityl.
2275         * tests/test-isfinite.c: Include infinity.h.
2276         (test_isfinitef): Use Infinityf.
2277         (test_isfinited): Use Infinityd.
2278         (test_isfinitel): Use Infinityl.
2279         * tests/test-isinf.c: Include infinity.h.
2280         (test_isinff): Use Infinityf.
2281         (test_isinfd): Use Infinityd.
2282         (test_isinfl): Use Infinityl.
2283         * tests/test-isnan.c: Include infinity.h.
2284         (test_float): Use Infinityf.
2285         (test_double): Use Infinityd.
2286         (test_long_double): Use Infinityl.
2287         * tests/test-isnanf.h: Include infinity.h.
2288         (main): Use Infinityf.
2289         * tests/test-isnand.h: Include infinity.h.
2290         (main): Use Infinityd.
2291         * tests/test-isnanl.h: Include infinity.h.
2292         (main): Use Infinityl.
2293         * tests/test-ldexpl.c: Include infinity.h.
2294         (main): Use Infinityl.
2295         * tests/test-printf-posix.h: Include infinity.h.
2296         (test_function): Use Infinityd.
2297         * tests/test-roundf1.c: Include infinity.h.
2298         (main): Use Infinityf.
2299         * tests/test-round1.c: Include infinity.h.
2300         (main): Use Infinityd.
2301         * tests/test-roundl.c: Include infinity.h.
2302         (main): Use Infinityl.
2303         * tests/test-signbit.c: Include infinity.h.
2304         (test_signbitf): Use Infinityf.
2305         (test_signbitd): Use Infinityd.
2306         (test_signbitl): Use Infinityl.
2307         * tests/test-snprintf-posix.h: Include infinity.h.
2308         (test_function): Use Infinityd, Infinityl.
2309         * tests/test-sprintf-posix.h: Include infinity.h.
2310         (test_function): Use Infinityd, Infinityl.
2311         * tests/test-truncf1.c: Include infinity.h.
2312         (main): Use Infinityf.
2313         * tests/test-trunc1.c: Include infinity.h.
2314         (main): Use Infinityd.
2315         * tests/test-truncl.c: Include infinity.h.
2316         (main): Use Infinityl.
2317         * tests/test-vasnprintf-posix.c: Include infinity.h.
2318         (test_function): Use Infinityd, Infinityl.
2319         * tests/test-vasprintf-posix.c: Include infinity.h.
2320         (test_function): Use Infinityd, Infinityl.
2321         * modules/ceilf-tests (Files): Add tests/infinity.h.
2322         * modules/ceil-tests (Files): Likewise.
2323         * modules/ceill-tests (Files): Likewise.
2324         * modules/dprintf-posix-tests (Files): Likewise.
2325         * modules/floorf-tests (Files): Likewise.
2326         * modules/floor-tests (Files): Likewise.
2327         * modules/floorl-tests (Files): Likewise.
2328         * modules/fprintf-posix-tests (Files): Likewise.
2329         * modules/frexp-tests (Files): Likewise.
2330         * modules/frexp-nolibm-tests (Files): Likewise.
2331         * modules/frexpl-tests (Files): Likewise.
2332         * modules/frexpl-nolibm-tests (Files): Likewise.
2333         * modules/isfinite-tests (Files): Likewise.
2334         * modules/isinf-tests (Files): Likewise.
2335         * modules/isnan-tests (Files): Likewise.
2336         * modules/isnanf-tests (Files): Likewise.
2337         * modules/isnanf-nolibm-tests (Files): Likewise.
2338         * modules/isnand-tests (Files): Likewise.
2339         * modules/isnand-nolibm-tests (Files): Likewise.
2340         * modules/isnanl-tests (Files): Likewise.
2341         * modules/isnanl-nolibm-tests (Files): Likewise.
2342         * modules/ldexpl-tests (Files): Likewise.
2343         * modules/printf-posix-tests (Files): Likewise.
2344         * modules/roundf-tests (Files): Likewise.
2345         * modules/round-tests (Files): Likewise.
2346         * modules/roundl-tests (Files): Likewise.
2347         * modules/signbit-tests (Files): Likewise.
2348         * modules/snprintf-posix-tests (Files): Likewise.
2349         * modules/sprintf-posix-tests (Files): Likewise.
2350         * modules/truncf-tests (Files): Likewise.
2351         * modules/trunc-tests (Files): Likewise.
2352         * modules/truncl-tests (Files): Likewise.
2353         * modules/vasnprintf-posix-tests (Files): Likewise.
2354         * modules/vasprintf-posix-tests (Files): Likewise.
2355         * modules/vdprintf-posix-tests (Files): Likewise.
2356         * modules/vfprintf-posix-tests (Files): Likewise.
2357         * modules/vprintf-posix-tests (Files): Likewise.
2358         * modules/vsnprintf-posix-tests (Files): Likewise.
2359         * modules/vsprintf-posix-tests (Files): Likewise.
2360         * modules/xprintf-posix-tests (Files): Likewise.
2361
2362 2011-09-11  Bruno Haible  <bruno@clisp.org>
2363
2364         Ensure pid_t gets defined.
2365         * m4/fcntl_h.m4 (gl_FCNTL_H): Require AC_TYPE_PID_T.
2366         * m4/sched_h.m4 (gl_SCHED_H): Likewise.
2367         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
2368         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
2369         * m4/sys_wait_h.m4 (gl_SYS_WAIT_H): Likewise.
2370         * m4/termios_h.m4 (gl_TERMIOS_H): Likewise.
2371         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Likewise.
2372         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
2373         * tests/test-fcntl-h.c: Check that pid_t is defined.
2374         * tests/test-sched.c: Likewise.
2375         * tests/test-termios.c: Likewise.
2376         * tests/test-time.c: Likewise.
2377         * doc/posix-headers/fcntl.texi: Mention lack of pid_t on MSVC platform.
2378         * doc/posix-headers/signal.texi: Likewise.
2379         * doc/posix-headers/sys_types.texi: Likewise.
2380         * doc/posix-headers/time.texi: Likewise.
2381
2382 2011-09-11  Bruno Haible  <bruno@clisp.org>
2383
2384         acl: Fix compilation on Solaris 10 (older version).
2385         * lib/file-has-acl.c (acl_ace_nontrivial): Use NEW_ACE_EVERYONE instead
2386         of ACE_EVERYONE.
2387         * lib/set-mode-acl.c (qset_acl): Likewise.
2388         Reported by Christian Jullien <eligis@orange.fr>.
2389
2390 2011-09-10  Bruno Haible  <bruno@clisp.org>
2391
2392         iconv, unsetenv: Add support for MSVC compiler.
2393         * m4/iconv.m4 (AM_ICONV): Use ISO C declaration syntax on MSVC.
2394         * m4/setenv.m4 (gl_FUNC_UNSETENV): Drop support for K&R C compilers.
2395
2396 2011-09-10  Bruno Haible  <bruno@clisp.org>
2397
2398         *printf: Add support for MSVC compiler.
2399         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_N): On MSVC, install a handler that
2400         handles the exception caused by the %n directive. When cross-compiling,
2401         guess no on native Windows.
2402         (gl_SNPRINTF_TRUNCATION_C99, gl_SNPRINTF_RETVAL_C99,
2403         gl_SNPRINTF_DIRECTIVE_N, gl_SNPRINTF_SIZE1): When snprintf is missing,
2404         emulate it through vsnprintf.
2405         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Update comment.
2406         * doc/posix-functions/dprintf.texi: Update documentation regarding
2407         MSVC 9.
2408         * doc/posix-functions/fprintf.texi: Likewise.
2409         * doc/posix-functions/printf.texi: Likewise.
2410         * doc/posix-functions/snprintf.texi: Likewise.
2411         * doc/posix-functions/sprintf.texi: Likewise.
2412         * doc/posix-functions/swprintf.texi: Likewise.
2413         * doc/posix-functions/vdprintf.texi: Likewise.
2414         * doc/posix-functions/vfprintf.texi: Likewise.
2415         * doc/posix-functions/vprintf.texi: Likewise.
2416         * doc/posix-functions/vsnprintf.texi: Likewise.
2417         * doc/posix-functions/vsprintf.texi: Likewise.
2418         * doc/glibc-functions/asprintf.texi: Likewise.
2419         * doc/glibc-functions/obstack_printf.texi: Likewise.
2420         * doc/glibc-functions/obstack_vprintf.texi: Likewise.
2421         * doc/glibc-functions/vasprintf.texi: Likewise.
2422
2423 2011-09-10  Bruno Haible  <bruno@clisp.org>
2424
2425         nocrash: Add support for native Windows.
2426         * m4/nocrash.m4 (GL_NOCRASH): Avoid a crash also on native Windows.
2427
2428 2011-09-10  Michael Goffioul  <michael.goffioul@gmail.com>  (tiny change)
2429             Bruno Haible  <bruno@clisp.org>
2430
2431         absolute-header, include-next: Add support for MSVC compiler.
2432         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER_ONE): Require
2433         AC_CANONICAL_HOST. On native Windows, recognize also backslash as
2434         directory separator in #line directives.
2435         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): On native Windows,
2436         recognize also backslash as directory separator in #line directives.
2437
2438 2011-09-08  Jim Meyering  <meyering@redhat.com>
2439
2440         maint.mk: mark the post-release commit log with "maint: " prefix
2441         * top/maint.mk (emit-commit-log): Add "maint: " prefix to the
2442         one-line commit-log summary.
2443
2444 2011-09-08  Reuben Thomas  <rrt@sc3d.org>
2445             Bruno Haible  <bruno@clisp.org>
2446
2447         Doc about crypt functions.
2448         * doc/posix-functions/crypt.texi: Mention need for _GNU_SOURCE on glibc
2449         systems.
2450         * doc/posix-functions/encrypt.texi: Likewise.
2451         * doc/posix-functions/setkey.texi: Likewise.
2452
2453 2011-09-08  Simon Josefsson  <simon@josefsson.org>
2454
2455         * lib/gc.h: Fix copyright header.
2456
2457 2011-09-07  Bruno Haible  <bruno@clisp.org>
2458
2459         pthread: Determine $(LIB_PTHREAD) correctly on OSF/1 5.1.
2460         * m4/pthread.m4 (gl_PTHREAD_CHECK): Use AC_CACHE_CHECK and
2461         AC_LINK_IFELSE instead of AC_SEARCH_LIBS.
2462
2463 2011-09-07  Bruno Haible  <bruno@clisp.org>
2464
2465         openat: Work around compilation error with OSF/1 5.1 DTK cc.
2466         * lib/fopen.c: Use different syntax for include of <stdio.h>.
2467         * lib/freopen.c: Likewise.
2468         * lib/fstatat.c: Use different syntax for include of <sys/stat.h>.
2469         * lib/lstat.c: Likewise.
2470         * lib/stat.c: Likewise.
2471         * lib/open.c: Use different syntax for include of <fcntl.h>.
2472         * lib/openat.c: Include fcntl.h again, explicitly.
2473
2474 2011-09-04  J.T. Conklin  <jtc@acorntoolworks.com>
2475
2476         parse-datetime: document the newly accepted format
2477         * doc/parse-datetime.texi (Combined date and time of day items):
2478         New section.
2479
2480 2011-09-06  Bruno Haible  <bruno@clisp.org>
2481
2482         acl: Fix a test failure on newer Solaris 10 with ZFS.
2483         * tests/test-sameacls.c (main): Interpret acl GETACLCNT failure with
2484         ENOSYS as no ACL.
2485         Reported by Jim Meyering.
2486
2487 2011-09-06  Bruno Haible  <bruno@clisp.org>
2488
2489         acl: Update for AIX >= 5.3 with NFS.
2490         * lib/file-has-acl.c (file_has_acl): Interpret aclx_get failure with
2491         ENOSYS as no ACL.
2492
2493         acl: Fix a test failure on AIX >= 5.3 with NFS.
2494         * tests/test-sameacls.c (main): Interpret aclx_get failure with ENOSYS
2495         as no ACL.
2496
2497 2011-09-06  Bruno Haible  <bruno@clisp.org>
2498
2499         acl: Fix a test failure on IRIX 6.5 with NFS.
2500         * lib/acl-internal.h (MODE_INSIDE_ACL): Define to 0 on IRIX.
2501         * lib/set-mode-acl.c (qset_acl): Test !HAVE_ACL_TYPE_EXTENDED instead
2502         of MODE_INSIDE_ACL. If !MODE_INSIDE_ACL, do a chmod_or_fchmod always.
2503         * lib/copy-acl.c (qcopy_acl): Likewise.
2504
2505 2011-09-05  Paul Eggert  <eggert@cs.ucla.edu>
2506
2507         openat: port to AIX 7.1 with large files
2508         AIX 7.1 does a "#define openat open64at" if large files are in use,
2509         so we can't simply #undef openat.  Use the orig_openat trick (similar
2510         to orig_open in lib/open.c) to work around the problem.  Problem
2511         reported by Kevin Brott for GNU tar, in the thread containing
2512         <http://lists.gnu.org/archive/html/bug-tar/2011-09/msg00032.html>.
2513         * lib/openat.c (__need_system_fcntl_h): Define first.
2514         Include <fcntl.h> and <sys/types.h> before undefining.
2515         (orig_openat) [HAVE_OPENAT]: New inline function.
2516         (openat) [HAVE_OPENAT]: Do not undef.
2517         (rpl_openat): Use orig_openat, not openat.
2518
2519 2011-09-05  Joachim Schmitz  <schmitz@hp.com>  (tiny change)
2520             Bruno Haible  <bruno@clisp.org>
2521
2522         acl: Avoid errors on NonStop Kernel.
2523         * lib/file-has-acl.c (file_has_acl) [NonStop Kernel]: Ignore ENOSYS and
2524         ENOTSUP errors.
2525
2526 2011-09-05  Bruno Haible  <bruno@clisp.org>
2527
2528         acl: Clean up Solaris code.
2529         * lib/acl-internal.h: Remove no-op #if.
2530         * lib/file-has-acl.c: Likewise.
2531         * lib/set-mode-acl.c (qset_acl): Remove unused Solaris code.
2532         * lib/copy-acl.c (qcopy_acl): Likewise.
2533
2534 2011-09-05  Bruno Haible  <bruno@clisp.org>
2535
2536         acl: Fix a bug with NFSv4 ACLs on Solaris 10 (newer version) in
2537         binaries built on the original Solaris 10.
2538         * lib/file-has-acl.c (file_has_acl): ACLs with 4..6 ACEs can be
2539         trivial.
2540
2541 2011-09-05  Bruno Haible  <bruno@clisp.org>
2542
2543         acl: Improve support of NFSv4 ACLs on Solaris 10 (newer version).
2544         * lib/acl-internal.h (acl_nontrivial): Declare also on newer Solaris
2545         10.
2546         * lib/file-has-acl.c (acl_nontrivial): Define also on newer Solaris 10.
2547         (acl_ace_nontrivial): Likewise. Recognize the trivial ACLs with 6 ACEs.
2548         * lib/copy-acl.c (qcopy_acl): On newer Solaris 10, use acl or facl
2549         instead of acl_get, facl_get, acl_set, facl_set.
2550
2551 2011-09-05  Bruno Haible  <bruno@clisp.org>
2552
2553         copy-file: Try unit tests on more file systems.
2554         * tests/test-copy-file-1.sh: New file.
2555         * tests/test-copy-file-2.sh: New file.
2556         * modules/copy-file-tests (Files): Add them.
2557         (Makefile.am): Add them to TESTS.
2558
2559         acl: Try unit tests on more file systems.
2560         * tests/test-file-has-acl-1.sh: New file.
2561         * tests/test-file-has-acl-2.sh: New file.
2562         * tests/test-set-mode-acl-1.sh: New file.
2563         * tests/test-set-mode-acl-2.sh: New file.
2564         * tests/test-copy-acl-1.sh: New file.
2565         * tests/test-copy-acl-2.sh: New file.
2566         * modules/acl-tests (Files): Add them.
2567         (Makefile.am): Add them to TESTS.
2568
2569 2011-09-04  Bruno Haible  <bruno@clisp.org>
2570
2571         acl: Improve support of NFSv4 ACLs on Solaris 10 (newer version).
2572         * lib/acl-internal.h (ACE_*, NEW_ACE_*): Define also on newer Solaris
2573         10.
2574         (OLD_ALLOW, OLD_DENY): New macros.
2575         (NEW_ACE_ACCESS_ALLOWED_ACE_TYPE): Renamed from
2576         ACE_ACCESS_ALLOWED_ACE_TYPE.
2577         (NEW_ACE_ACCESS_DENIED_ACE_TYPE): Renamed from
2578         ACE_ACCESS_DENIED_ACE_TYPE.
2579         (OLD_ACE_OWNER, OLD_ACE_GROUP, OLD_ACE_OTHER): New macros.
2580         (NEW_ACE_EXECUTE): Fix value.
2581         (NEW_ACE_APPEND_DATA, NEW_ACE_READ_NAMED_ATTRS,
2582         NEW_ACE_WRITE_NAMED_ATTRS, NEW_ACE_DELETE_CHILD,
2583         NEW_ACE_READ_ATTRIBUTES, NEW_ACE_WRITE_ATTRIBUTES, NEW_ACE_DELETE,
2584         NEW_ACE_READ_ACL, NEW_ACE_WRITE_ACL, NEW_ACE_WRITE_OWNER,
2585         NEW_ACE_SYNCHRONIZE): New macros.
2586         * lib/set-mode-acl.c (qset_acl): On newer Solaris 10, use acl or facl
2587         instead of acl_fromtext, acl_set, facl_set.
2588         Fixes a coreutils/tests/cp/perm failure.
2589
2590 2011-09-03  Paul Eggert  <eggert@cs.ucla.edu>
2591
2592         openat: test for fstatat (..., 0) bug
2593         Further testing with tar suggests that fstatat (..., 0)
2594         does not work in general, on AIX 7.1; see
2595         <http://lists.gnu.org/archive/html/bug-tar/2011-09/msg00023.html>.
2596         So, give up entirely on AIX 7.1's fstatat, and fall back on our
2597         replacement fstatat (which is what older AIX releases were using
2598         anyway).
2599         * lib/fstatat.c (fstatat) [HAVE_FSTATAT]: Do not undef.  The only
2600         use is now changed to orig_fstatat.  This was probably the right
2601         thing to do anyway.
2602         (FSTATAT_AT_FDCWD_0_BROKEN): Remove; no longer used.
2603         (rpl_fstatat) [FSTATAT_ZERO_FLAG_BROKEN]: Remove.
2604         (rpl_fstatat): Simplify, assuming !FSTATAT_ZERO_FLAG_BROKEN.
2605         (AT_FUNC_NAME) [FSTATAT_ZERO_FLAG_BROKEN]: Now rpl_fstatat.
2606         * m4/openat.m4 (gl_FUNC_FSTATAT): Test for the more-general bug
2607         and define FSTATAT_ZERO_FLAG_BROKEN, not FSTATAT_AT_FDCWD_0_BROKEN,
2608         if the bug is found.
2609
2610         openat: test for fstatat (AT_FDCWD, ..., 0) bug
2611         This tests for another fstatat bug on AIX 7.1:
2612         fstatat (AT_FDCWD, ..., 0) does not work.  See
2613         <http://lists.gnu.org/archive/html/bug-tar/2011-09/msg00015.html>.
2614         * lib/fstatat.c (FSTATAT_AT_FDCWD_0_BROKEN)
2615         (LSTAT_FOLLOWS_SLASHED_SYMLINK): Default to 0.
2616         (rpl_fstatat): Adjust so that it works around either (or both)
2617         bugs if present.
2618         * m4/openat.m4 (gl_FUNC_FSTATAT): Test for this fstatat bug.
2619
2620 2011-09-03  Karl Berry  <karl@gnu.org>
2621
2622         * doc/regex.texi (Character Class Operators): Avoid literal ":"
2623         in index entries.
2624
2625 2011-09-02  Bruno Haible  <bruno@clisp.org>
2626
2627         Allow the user to override the choice of AR, ARFLAGS, RANLIB.
2628         * m4/gnulib-common.m4 (gl_PROG_AR_RANLIB): Don't override the given
2629         values of AR, ARFLAGS, RANLIB.
2630         Reported by John W. Eaton <jwe@gnu.org> for Octave.
2631
2632 2011-09-02  Bruno Haible  <bruno@clisp.org>
2633
2634         Find 'ar' program that fits with --host argument.
2635         * m4/gnulib-common.m4 (gl_PROG_AR_RANLIB): Use AC_CHECK_TOOL.
2636
2637 2011-09-02  Bruno Haible  <bruno@clisp.org>
2638
2639         tests: init.sh: Support any non-GNU diff.
2640         * tests/init.sh (compare): If "diff -c" is supported but "diff -u" is
2641         not, use "diff -c". Useful on AIX 6.1, HP-UX 11.31, OSF/1 5.1,
2642         Solaris 8.
2643
2644 2011-09-02  Bruno Haible  <bruno@clisp.org>
2645
2646         tests: init.sh: work also with any non-GNU diff that supports -u
2647         * tests/init.sh: Relax check for diff -u support.
2648         Rather than checking for GNU diff via --version, simply check
2649         for support for -u itself.  Useful at least on OpenBSD 4.9,
2650         AIX 7.1, IRIX 6.5, and Solaris 10.
2651
2652 2011-09-01  Bruno Haible  <bruno@clisp.org>
2653
2654         strtoimax, strtoumax: Document problem on HP-UX 11.
2655         * doc/posix-functions/strtoimax.texi: Mention HP-UX 11.11 problem.
2656         * doc/posix-functions/strtoumax.texi: Likewise.
2657
2658 2011-09-01  Bruno Haible  <bruno@clisp.org>
2659
2660         strtoumax: Avoid link error on OSF/1 with DTK cc.
2661         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Always test whether strtoumax is
2662         defined as a function.
2663         * modules/strtoumax (Depends-on, configure.ac): Test only whether
2664         strtoumax is defined, not whether it is declared.
2665
2666 2011-09-01  Bruno Haible  <bruno@clisp.org>
2667
2668         strtoimax: Avoid link error on OSF/1 with DTK cc.
2669         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Always test whether strtoimax is
2670         defined as a function.
2671         * modules/strtoimax (Depends-on, configure.ac): Test only whether
2672         strtoimax is defined, not whether it is declared.
2673
2674 2011-09-01  Bruno Haible  <bruno@clisp.org>
2675
2676         imaxdiv: Avoid link error on OSF/1 with DTK cc.
2677         * m4/imaxdiv.m4 (gl_FUNC_IMAXDIV): Also test whether imaxdiv is defined
2678         as a function.
2679         * modules/imaxdiv (configure.ac): Test whether imaxdiv is defined, not
2680         whether it is declared.
2681
2682 2011-09-01  Bruno Haible  <bruno@clisp.org>
2683
2684         imaxabs: Avoid link error on OSF/1 with DTK cc.
2685         * m4/imaxabs.m4 (gl_FUNC_IMAXABS): Also test whether imaxabs is defined
2686         as a function.
2687         * modules/imaxabs (configure.ac): Test whether imaxabs is defined, not
2688         whether it is declared.
2689
2690 2011-09-01  Bruno Haible  <bruno@clisp.org>
2691
2692         Tests for module 'strtoumax'.
2693         * modules/strtoumax-tests: New file.
2694         * tests/test-strtoumax.c: New file.
2695
2696         Tests for module 'strtoimax'.
2697         * modules/strtoimax-tests: New file.
2698         * tests/test-strtoimax.c: New file.
2699
2700         Tests for module 'imaxdiv'.
2701         * modules/imaxdiv-tests: New file.
2702         * tests/test-imaxdiv.c: New file.
2703
2704         Tests for module 'imaxabs'.
2705         * modules/imaxabs-tests: New file.
2706         * tests/test-imaxabs.c: New file.
2707
2708 2011-09-01  Bruno Haible  <bruno@clisp.org>
2709
2710         pthread: Determine $(LIB_PTHREAD) correctly on IRIX 6.5.
2711         * m4/pthread.m4 (gl_PTHREAD_CHECK): Check for pthread_join, not
2712         pthread_create.
2713
2714 2011-09-01  Paul Eggert  <eggert@cs.ucla.edu>
2715
2716         openat: work around AIX 7.1 fstatat issue
2717         This should fix the problem that was not properly fixed
2718         in the previous change, dated 2011-08-30.
2719         * lib/fstatat.c: Include <sys/stat.h> twice, the first with
2720         __need_system_stat_h defined.
2721         (orig_fstatat) [HAVE_FSTATAT]: New function.
2722         (rpl_fstatat): Go back to the old way of doing things,
2723         except call orig_fstatat instead of fstatat.
2724         * m4/openat.m4 (gl_FUNC_FSTATAT): Remove unnecessary check for openat.
2725         Remove unnecessary check whether fstatat fills in st_size etc.
2726
2727 2011-09-01  Bruno Haible  <bruno@clisp.org>
2728
2729         sys_select: Avoid a syntax error regarding timespec_t on IRIX 6.5.
2730         * lib/sys_select.in.h [__sgi]: When included from <sys/bsd_types.h>,
2731         just include the system's header.
2732
2733 2011-08-31  Jim Meyering  <meyering@redhat.com>
2734
2735         tests: avoid spurious assertion failure in test-float.c on ppc64
2736         * tests/test-float.c (test_long_double): Comment out an assertion,
2737         LDBL_MIN_EXP <= DBL_MIN_EXP, that is failing at least on PowerPC-64
2738         with gcc-4.4.4.
2739
2740         maint: indent with spaces, not TABs
2741         I need to get in the habit of running gnulib's "make check".
2742         Both of these would have been caught.
2743         * m4/largefile.m4: Indent with spaces, not TABs.
2744         * lib/parse-datetime.y (iso_8601_time): Likewise.
2745         Spotted by Pádraig Brady.
2746
2747         test-parse-datetime.c: accommodate a relatively strict gcc warning
2748         * tests/test-parse-datetime.c (gmt_offset): Declare function "static",
2749         to avoid a warning from gcc's -Werror=missing-declarations.
2750         Insert a few spaces-before-funcall-parenthesis.
2751
2752 2011-08-17  J.T. Conklin  <jtc@acorntoolworks.com>
2753
2754         parse-datetime: accept ISO 8601 date and time rep with "T" separator
2755         The parser now accepts ISO 8601 date-time strings with "T" as the
2756         separator.  It has long parsed dates like "2004-02-29 16:21:42"
2757         with a space between the date and time strings.  Now it also parses
2758         "2004-02-29T16:21:42" and fractional-second and time-zone-annotated
2759         variants like "2004-02-29T16:21:42.333-07:00"
2760         * lib/parse-datetime.y: Parse ISO 8601 extended date and time
2761         of day representation using the 'T' separator character.
2762         * doc/parse-datetime.texi (General date syntax): replace use of
2763         deprecated --iso-8601 option with --rfc-3339 in example of date
2764         command output formats that can be parsed.
2765         * tests/test-parse-datetime.c (tm_diff): New function, taken from
2766         lib/parse-datetime.y.
2767         (gmt_offset): New function.
2768         (main): Add additional test cases to validate ISO8601 extended
2769         date and time of day parsing.
2770
2771 2011-08-31  Bruno Haible  <bruno@clisp.org>
2772
2773         freopen: Documentation.
2774         * doc/posix-functions/freopen.texi: Document the bug with the NULL file
2775         name.
2776         Reported by Claudio Bley <claudio.bley@gmail.com>.
2777
2778 2011-08-31  Claudio Bley  <claudio.bley@gmail.com>  (tiny change)
2779
2780         freopen: Don't crash if the filename argument is NULL.
2781         * lib/freopen.c (rpl_freopen): Don't compare the filename if it is
2782         NULL.
2783
2784 2011-08-30  Paul Eggert  <eggert@cs.ucla.edu>
2785
2786         openat: work around AIX 7.1 fstatat bug
2787         Problem reported by Kevin Brott for GNU tar, in the thread containing
2788         <http://lists.gnu.org/archive/html/bug-tar/2011-08/msg00015.html>.
2789         * lib/fstatat.c (rpl_fstatat): Do not invoke underlying fstatat if
2790         FSTATAT_ST_SIZE_ETC_BROKEN.
2791         (fstatat) [FSTATAT_ST_SIZE_ETC_BROKEN && HAVE_FSTATAT]: #define to
2792         rpl_fstatat.
2793         * m4/openat.m4 (gl_FUNC_FSTATAT): New macro, with the fstatat-relevant
2794         part of gl_FUNC_OPENAT.  Also, check for the AIX 7.1 bug, and use
2795         AC_CHECK_FUNCS_ONCE for fstatat.
2796         (gl_FUNC_OPENAT): Use it.  Use AC_CHECK_FUNCS_ONCE for
2797         fchmodat, mkdirat, openat and unlinkat.
2798
2799 2011-08-30  Bruno Haible  <bruno@clisp.org>
2800
2801         Avoid endless recursions if config.h includes some header files.
2802         * lib/fopen.c (__need_FILE): Define already before including config.h.
2803         * lib/freopen.c (__need_FILE): Likewise.
2804         * lib/open.c (__need_system_fcntl_h): Likewise.
2805         * lib/stat.c (__need_system_sys_stat_h): Likewise.
2806         * lib/lstat.c (__need_system_sys_stat_h): Likewise.
2807         Reported by Michael Goffioul <michael.goffioul@gmail.com>.
2808
2809 2011-08-25  Karl Berry  <karl@gnu.org>
2810
2811         * config/srclist.txt (ylwrap): new try.
2812         * build-aux/ylwrap: new file.
2813
2814 2011-08-23  Bruno Haible  <bruno@clisp.org>
2815
2816         tmpdir: Use a good default directory on native Windows.
2817         * lib/tmpdir.c: Include <windows.h>, pathmax.h.
2818         (P_tmpdir): Default to _P_tmpdir on native Windows.
2819         (path_search): On native Windows, try the value returned by GetTempPath
2820         before trying P_tmpdir.
2821         * modules/tmpdir (Depends-on): Add pathmax.
2822         Suggested by John Darrington <john@darrington.wattle.id.au>.
2823
2824 2011-08-20  Reuben Thomas  <rrt@sc3d.org>
2825
2826         doc: fix typo in README-release
2827         * top/README-release: Capitalize first word of a sentence.
2828
2829 2011-08-19  Jim Meyering  <meyering@redhat.com>
2830
2831         fts: do not exhaust memory when processing million-entry directories
2832         Before this change, traversing (via rm -rf, find, du, etc.) an N-entry
2833         directory would require about 256*N bytes of memory.  Thus, it was
2834         easy to construct a directory too large to be processed by any of
2835         those tools.  With this change, fts' maximum memory utilization is
2836         now limited to around 30MB.
2837         * lib/fts.c (FTS_MAX_READDIR_ENTRIES): Define.
2838         (fts_read): When we've processed the final entry (i.e., when
2839         ->fts_link is NULL) and fts_dirp is non-NULL, call fts_build
2840         using the parent entry to read any remaining entries.  Dispatch
2841         depending on what fts_build returns:
2842         - NULL+stop, aka failure: stop
2843         - NULL otherwise: move up in the dir hierarchy
2844         - non-NULL: handle this new entry
2845         (fts_build): Declare and use new local, continue_readdir.
2846         Prepare to be called from fts_read, when the entries
2847         from a partially-read directory have just been exhausted.
2848         In that case, we'll skip the opendir and instead use the parent's
2849         fts_dirp and derive dir_fd from that.
2850         Finally, in the readdir loop, if we read max_entries entries,
2851         exit the loop ensuring *not* to call closedir.  This is required
2852         so that fts_dirp can be reused on a subsequent call.
2853         Prompted by Ben England's report of memory exhaustion in find
2854         and rm -rf vs. NFS: https://bugzilla.redhat.com/719749.
2855
2856         maint: fts: move decl of `dp' down into while loop; split a long line
2857         * lib/fts.c (fts_build): No semantic change.
2858
2859         fts: add/use new struct member, fts_dirp
2860         We are about to use this to manage any directory with
2861         too many entries to read all of them into memory at once.
2862         To do that, we'll need to save the DIR* pointer in each
2863         affected FTSENT struct.
2864         * lib/fts_.h: Include <dirent.h>.
2865         (struct FTSENT) [fts_dirp]: New member.
2866         * lib/fts.c (closedir_and_clear): Define.
2867         Use it in place of closedir so that we are sure to
2868         clear the new fts_dirp member when done with it.
2869         (fts_alloc): Initialize the new member.
2870         (fts_lfree): Free, if needed.
2871
2872         maint: fts: give __opendir2 a new parameter and rename
2873         * lib/fts.c (__opendir2): Give it a new parameter, Pdir_fd, rather
2874         than surreptitiously using sole caller's "dir_fd".
2875         (fts_opendir): Rename from __opendir2.
2876
2877         maint: fts.c: remove __opendir2's now-unused parameter, oflag
2878         * lib/fts.c (__opendir2): Remove unused parameter, oflag.
2879
2880         maint: fts.c: correct off-by-one indentation
2881         * lib/fts.c (fts_build): Correct indentation, change style
2882         of a couple of block comments, and bracing style.
2883
2884         maint: fts.c: move __opendir2 #define "up" out of function body
2885         * lib/fts.c (__opendir2): Move "up".  No semantic change.
2886
2887         maint: fts.c: remove #if-0'd FTS_WHITEOUT code
2888         * lib/fts.c: Remove #if-0'd FTS_WHITEOUT code.  It's been #if-0'd
2889         out for a long time and besides was useful only on BSD systems.
2890
2891 2011-08-18  Paul Eggert  <eggert@cs.ucla.edu>
2892
2893         regex: port to Stratus OpenVOS
2894         * lib/regex_internal.h (internal_function) [!_LIBC]: Simply
2895         define to empty, rather than attempting nonportable optimizations.
2896         Problem reported by Paul Green in:
2897         http://lists.gnu.org/archive/html/bug-diffutils/2011-08/msg00047.html
2898         and fix suggested by Eric Blake in:
2899         http://lists.gnu.org/archive/html/bug-gnulib/2011-08/msg00143.html
2900
2901 2011-08-17  Eric Blake  <eblake@redhat.com>
2902
2903         getcwd: fix test failures on mingw
2904         * lib/getcwd.c (__getcwd): Early exit for ERANGE.
2905         * tests/test-getcwd.c (test_abort_bug, test_long_name): Don't fail
2906         test if long directory cannot be created, and allow mingw errno.
2907
2908         getcwd-lgpl: fix m4 to match relaxed test for BSD
2909         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Relax probe.
2910         (gl_FUNC_GETCWD_SIGNATURE): New macro.
2911         (gl_FUNC_GETCWD_LGPL, gl_FUNC_GETCWD): Use it.
2912         * doc/posix-functions/getcwd.texi (getcwd): Tweak mentions of
2913         signature problem.
2914
2915         getcwd: fix compilation on mingw64
2916         * lib/unistd.in.h (includes) [mingw]: Include <direct.h> for
2917         getcwd.
2918         Reported by Marc-André Lureau.
2919
2920         pipe2: silence compiler warning
2921         * lib/pipe2.c (pipe2): Hide label if it is not used.
2922
2923 2011-08-15  Ben Pfaff  <blp@cs.stanford.edu>
2924
2925         relocatable-prog: fix link error
2926         * modules/relocatable-prog (configure.ac) [RELOCATABLE]: Also
2927         invoke AC_LIBOBJ([relocatable]).  This invocation was previously
2928         in the gl_RELOCATABLE_LIBRARY macro.  That invocation was moved
2929         into modules/relocatable-lib without noticing that
2930         modules/relocatable-prog also invokes gl_RELOCATABLE_LIBRARY and
2931         also needs to build relocatable.c.
2932
2933 2011-08-12  Paul Eggert  <eggert@cs.ucla.edu>
2934
2935         getaddrinfo: fix sh typo in gai_strerrorA decl checking
2936         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix typo in the generated
2937         shell code: it contained a 'break' that was not in a loop.
2938         Apparently the macro assumed that AC_CHECK_DECLS is implemenented
2939         via a shell-language loop; this may have been true in old Autoconf
2940         versions, but it's not true in Autoconf 2.68.  I found this bug
2941         when testing coreutils git on Solaris 8, whose shell complains
2942         about the syntax error.
2943
2944 2011-08-12  Simon Josefsson  <simon@josefsson.org>
2945
2946         * lib/base64.c: Fix comment to reference RFC 4648.
2947         Suggested by Bruno Haible <bruno@clisp.org> and Gijs van Tulder
2948         <gvtulder@gmail.com>.
2949
2950 2011-08-11  Paul Eggert  <eggert@cs.ucla.edu>
2951
2952         * build-aux/bootstrap (slurp): Remove obsolescent gettext.m4 patch.
2953
2954         po/Makefile.in.in: fix make -q problem
2955         * build-aux/po/Makefile.in.in (check-macro-version): Remove this
2956         rule, since there's no file named 'check-macro-version' and its
2957         use as a file breaks make -q.
2958         (all): Don't depend on check-macro-version.
2959         (CHECK_MACRO_VERSION): New macro.
2960         (stamp-po): Use it.
2961
2962         configmake: fix make -q problem
2963         * modules/configmake (configmake.h): Update configmake.h's time stamp
2964         even if the file does not change.  Otherwise, 'make -q' fails.
2965         Problem reported by Simon Josefsson in
2966         <http://lists.gnu.org/archive/html/bug-gnulib/2011-08/msg00088.html>.
2967
2968 2011-08-11  Jim Meyering  <meyering@redhat.com>
2969
2970         git-version-gen: correct the advice in a comment
2971         * build-aux/git-version-gen: Correct comment.
2972         Don't recommend to list .tarball-version in .gitignore.
2973
2974 2011-08-10  Paul Eggert  <eggert@cs.ucla.edu>
2975
2976         base64: fix off-by-one buffer size bug
2977         Problem and (trivial) fix reported by Gijs van Tulder in
2978         <http://lists.gnu.org/archive/html/bug-gnulib/2011-08/msg00083.html>.
2979         * lib/base64.c (base64_decode_alloc_ctx): Allocate one more byte.
2980         * tests/test-base64.c (main): Catch the bug.
2981
2982 2011-08-10  Eric Blake  <eblake@redhat.com>
2983
2984         closein: correct comments
2985         * lib/closein.c (close_stdin): Improve comments.
2986
2987 2011-08-09  Bruno Haible  <bruno@clisp.org>
2988
2989         More tests for 'fseeko'.
2990         * tests/test-fseeko3.c: New file, from Eric Blake.
2991         * tests/test-fseeko3.sh: New file.
2992         * modules/fseeko-tests (Files): Add them.
2993         (TESTS): Add test-fseeko3.sh.
2994         (check_PROGRAMS): Add test-fseeko3.
2995
2996 2011-08-09  Eric Blake  <eblake@redhat.com>
2997
2998         fseeko: remove unneeded hack
2999         * lib/fseeko.c (fseeko): Don't special-case SEEK_END.
3000
3001         fseeko: fix bug on glibc
3002         * lib/fseeko.c (fseeko): Set stream offset to match fd offset.
3003         Reported by John W. Eaton.
3004
3005 2011-08-08  Bruno Haible  <bruno@clisp.org>
3006
3007         unictype/base: Fix interoperability with preinstalled libunistring.
3008         * modules/unictype/base (configure.ac): Bump minimum version to 0.9.4.
3009         Reported by Simon Josefsson.
3010
3011 2011-08-08  Bruno Haible  <bruno@clisp.org>
3012
3013         iswblank: Detect declaration correctly.
3014         * m4/iswblank.m4 (gl_FUNC_ISWBLANK): Use correct headers in
3015         AC_CHECK_DECLS invocation.
3016
3017 2011-08-08  Bruno Haible  <bruno@clisp.org>
3018
3019         tcgetsid: Detect declaration correctly.
3020         * m4/tcgetsid.m4 (gl_FUNC_TCGETSID): Use correct headers in
3021         AC_CHECK_DECLS invocation.
3022         Reported by Simon Josefsson.
3023
3024 2011-08-08  Eric Blake  <eblake@redhat.com>
3025
3026         largefile: fix typo that regressed large file support
3027         * modules/largefile (configure.ac-early): Fix section name.
3028
3029 2011-08-06  Karl Berry  <karl@gnu.org>
3030
3031         * MODULES.html.sh (func_all_files): _Noreturn is no longer
3032         a separate module.
3033
3034 2011-08-05  Simon Josefsson  <simon@josefsson.org>
3035
3036         openat: Fix warnings and commens when building unlinkat.c on Hurd.
3037         * lib/unlinkat.c: Mention Hurd in comments.  Include stdlib.h to
3038         get prototype for free.
3039
3040 2011-08-04  Bruno Haible  <bruno@clisp.org>
3041
3042         Tests for module 'pathmax'.
3043         * modules/pathmax-tests: New file.
3044         * tests/test-pathmax.c: New file.
3045
3046         canonicalize-lgpl: Support larger filenames on the Hurd.
3047         * lib/canonicalize-lgpl.c (__realpath): Bump path_max fallback to 8192.
3048         Reported by Paul Eggert.
3049
3050         pathmax: Leave PATH_MAX undefined on the Hurd, and a constant otherwise.
3051         * lib/pathmax.h (PATH_MAX): Leave it undefined on GNU/Hurd.
3052         * lib/chdir-long.h: Include pathmax.h.
3053         * lib/clean-temp.c (PATH_MAX): Remove code that is done by pathmax.h.
3054         * lib/getcwd.c: Include pathmax.h instead of <limits.h>.
3055         (PATH_MAX): Remove code that is done by pathmax.h.
3056         * lib/canonicalize.c (PATH_MAX): Provide a fallback value.
3057         * lib/tmpfile.c: Add a comment.
3058         * m4/pathmax.m4 (gl_PATHMAX): Don't test for pathconf.
3059         * modules/chdir-long (Depends-on): Add pathmax.
3060         * modules/getcwd (Depends-on): Add pathmax.
3061         * tests/test-getcwd.c (test_abort_bug): Avoid syntax error when PATH_MAX
3062         is not defined.
3063         * doc/posix-headers/limits.texi: Mention the pathmax module.
3064         * NEWS: Mention the change.
3065
3066 2011-08-02  Bruno Haible  <bruno@clisp.org>
3067
3068         pthread_sigmask: Actually use results of gl_THREADLIB.
3069         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Test and require
3070         gl_THREADLIB, not gl_[]THREADLIB.
3071         Reported by Eric Blake.
3072
3073 2011-08-02  Jim Meyering  <meyering@redhat.com>
3074
3075         maint.mk: relax the default _gl_TS_function_match regexp
3076         * top/maint.mk (_gl_TS_function_match): Don't require at least one
3077         space between function name and "(" in an "extern" declaration.
3078         That would fail to match a decl with no space there: extern void foo();
3079
3080 2011-07-31  Iain Nicol  <iain@thenicols.net>
3081
3082         git-version-gen: document that EXTRA_DIST must include .version
3083         * build-aux/git-version-gen: In the how-to-use comment, document
3084         that EXTRA_DIST must include .version.  Otherwise, "make distcheck"
3085         will fail when run from an unpacked distribution tarball.
3086
3087 2011-08-01  Bruno Haible  <bruno@clisp.org>
3088
3089         wctype-h: Fix last change.
3090         * m4/wctype_h.m4 (gl_WCTYPE_H): If towlower is defined, set
3091         REPLACE_TOWLOWER to 0.
3092         Reported by Sam Steingold <sds@gnu.org>.
3093
3094 2011-07-31  Bruno Haible  <bruno@clisp.org>
3095
3096         frexpl: Update autoconf test.
3097         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Update overrides of <float.h>,
3098         according to changes of 2011-06-20.
3099
3100 2011-07-31  Bruno Haible  <bruno@clisp.org>
3101
3102         sys_utsname: Add support for Minix.
3103         * lib/sys_utsname.in.h [Minix]: Include <stddef.h> before
3104         <sys/utsname.h>.
3105         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
3106         * doc/posix-headers/sys_utsname.texi: Document the Minix problem.
3107
3108 2011-07-31  Bruno Haible  <bruno@clisp.org>
3109
3110         strings: Add support for Minix.
3111         * lib/strings.in.h [Minix]: Include <sys/types.h> before <strings.h>.
3112         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_BODY): Likewise.
3113         * doc/posix-headers/strings.texi: Document the Minix problem.
3114
3115 2011-07-31  Bruno Haible  <bruno@clisp.org>
3116
3117         wctype-h: Add support for Minix.
3118         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether towlower is declared. Set
3119         REPLACE_TOWLOWER.
3120         * modules/wctype-h (Makefile.am): Substitute REPLACE_TOWLOWER.
3121         * lib/wctype.in.h (towlower, towupper): Test REPLACE_TOWLOWER, not
3122         REPLACE_ISWCNTRL.
3123
3124 2011-07-31  Paul Eggert  <eggert@cs.ucla.edu>
3125
3126         * lib/xalloc.h (DEFAULT_MXFAST): Track 64-bit glibc.
3127         This is a performance improvement for 64-bit hosts: it causes the
3128         value of DEFAULT_MXFAST to track what's in glibc on such hosts.
3129
3130 2011-07-31  Bruno Haible  <bruno@clisp.org>
3131
3132         stdioext: Add support for Minix.
3133         * lib/fbufmode.c (fbufmode) [__minix]: Add conditional code.
3134         * lib/fpurge.c (fpurge): Likewise.
3135         * lib/freadahead.c (freadahead): Likewise.
3136         * lib/freadable.c (freadable): Likewise.
3137         * lib/freading.c (freading): Likewise.
3138         * lib/freadptr.c (freadptr): Likewise.
3139         * lib/freadseek.c (freadptrinc): Likewise.
3140         * lib/fseeko.c (rpl_fseeko): Likewise.
3141         * lib/fseterr.c (fseterr): Likewise.
3142         * lib/fwritable.c (fwritable): Likewise.
3143         * lib/fwriting.c (fwriting): Likewise.
3144         * lib/fflush.c (clear_ungetc_buffer): Update comment.
3145         * m4/fpending.m4 (gl_PREREQ_FPENDING): Add a variant for Minix.
3146
3147 2011-07-31  Bruno Haible  <bruno@clisp.org>
3148
3149         errno: Port to Minix.
3150         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Test also whether ENETRESET and
3151         ECONNABORTED are defined.
3152         * lib/errno.in.h (ENETRESET, GNULIB_defined_ENETRESET, ECONNABORTED,
3153         GNULIB_defined_ECONNABORTED): New macros.
3154         * lib/strerror-override.h (strerror_override): Test also
3155         GNULIB_defined_ENETRESET, GNULIB_defined_ECONNABORTED.
3156         * lib/strerror-override.c (strerror_override): Handle also ENETRESET,
3157         ECONNABORTED.
3158         * doc/posix-headers/errno.texi: Mention the Minix problem.
3159
3160 2011-07-31  Bruno Haible  <bruno@clisp.org>
3161
3162         Work around declaration collisions on Minix.
3163         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): If mbsinit is declared but not
3164         defined, set REPLACE_MBSINIT.
3165         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): If mbrtowc is declared but not
3166         defined, set REPLACE_MBRTOWC.
3167         * m4/mbrlen.m4 (gl_FUNC_MBRLEN): If mbrlen is declared but not defined,
3168         set REPLACE_MBRLEN.
3169         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): If mbsrtowcs is declared but not
3170         defined, set REPLACE_MBSRTOWCS.
3171         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): If wcrtomb is declared but not
3172         defined, set REPLACE_WCRTOMB.
3173         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): If wcsrtombs is declared but not
3174         defined, set REPLACE_WCSRTOMBS.
3175
3176 2011-07-31  Bruno Haible  <bruno@clisp.org>
3177
3178         Add support for Minix with ACK compiler.
3179         * m4/gnulib-common.m4 (gl_PROG_AR_RANLIB): New macro.
3180         * gnulib-tool (func_import, func_create_testdir): Emit invocation of
3181         gl_PROG_AR_RANLIB instead of AC_PROG_RANLIB.
3182
3183 2011-07-31  Bruno Haible  <bruno@clisp.org>
3184
3185         Documentation about Minix.
3186         * doc/posix-headers/*.texi: Add info about Minix 3.1.8.
3187         * doc/glibc-headers/*.texi: Likewise.
3188         * doc/posix-functions/*.texi: Likewise.
3189         * doc/glibc-functions/*.texi: Likewise.
3190
3191 2011-07-31  Bruno Haible  <bruno@clisp.org>
3192
3193         snippet/warn-on-use: Fix indentation.
3194         * m4/warn-on-use.m4 (gl_WARN_ON_USE_PREPARE): Fix indentation.
3195
3196 2011-07-25  Jim Meyering  <meyering@redhat.com>
3197
3198         tests: test-update-copyright.sh: remove unnecessary "rm" commands
3199         * tests/test-update-copyright.sh: Remove unused rm -f $TMP.*.bak
3200         commands.
3201
3202 2011-07-27  Jim Meyering  <meyering@redhat.com>
3203
3204         maint.mk: avoid sc_prohibit_always-defined_macros failure in coreutils
3205         * top/maint.mk (gl_extract_significant_defines_): Now that
3206         SA_RESETHAND and SA_RESTART are #defined (albeit conditionally) in
3207         gnulib/lib/signal.in.h, and now that we recommend to
3208         define-if-undefined those two symbols in application code,
3209         we must filter them out of the "significant" list.
3210         This avoids a "make syntax-check" failure in coreutils.
3211
3212 2011-07-26  Eric Blake  <eblake@redhat.com>
3213
3214         warnings: add comments about previous patch
3215         * m4/absolute-header.m4: Document AS_VAR_PUSHDEF limitation.
3216         * m4/include_next.m4: Likewise.
3217         * m4/warn-on-use.m4: Likewise.
3218         * m4/warnings.m4: Likewise, and simplify use.
3219         Suggested by Stefano Lattarini.
3220
3221         include-next, warnings: support older autoconf
3222         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): Use
3223         AS_VAR_PUSHDEF in a way that works with older autoconf.
3224         * m4/warnings.m4 (gl_WARN_ADD): Likewise.
3225         Reported by Daniel P. Berrange.
3226
3227 2011-07-25  Bruno Haible  <bruno@clisp.org>
3228
3229         fseek, ftell: Fix doc.
3230         * doc/posix-functions/fseek.texi: Reword statement about
3231         AC_SYS_LARGEFILE.
3232         * doc/posix-functions/ftell.texi: Likewise.
3233
3234 2011-07-25  Paul Eggert  <eggert@cs.ucla.edu>
3235             Bruno Haible  <bruno@clisp.org>
3236
3237         Add dependencies to the 'largefile' module.
3238         * modules/fopen (Depends-on): Add 'largefile'.
3239         * modules/freopen (Depends-on): Likewise.
3240         * modules/fseeko (Depends-on): Likewise.
3241         * modules/ftello (Depends-on): Likewise.
3242         * modules/glob (Depends-on): Likewise.
3243         * modules/lseek (Depends-on): Likewise.
3244         * modules/lstat (Depends-on): Likewise.
3245         * modules/mkostemp (Depends-on): Likewise.
3246         * modules/mkostemps (Depends-on): Likewise.
3247         * modules/mkstemp (Depends-on): Likewise.
3248         * modules/mkstemps (Depends-on): Likewise.
3249         * modules/open (Depends-on): Likewise.
3250         * modules/openat (Depends-on): Likewise.
3251         * modules/pread (Depends-on): Likewise.
3252         * modules/pwrite (Depends-on): Likewise.
3253         * modules/scandir (Depends-on): Likewise.
3254         * modules/stat (Depends-on): Likewise.
3255         * modules/tmpfile (Depends-on): Likewise.
3256         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Do not require AC_SYS_LARGEFILE,
3257         since the containing module now depends on the largefile module.
3258         * m4/tempname.m4 (gl_FUNC_GEN_TEMPNAME): Likewise.
3259         * doc/posix-functions/fopen.texi: Mention that the problem of 32-bit
3260         off_t is fixed by gnulib.
3261         * doc/posix-functions/freopen.texi: Likewise.
3262         * doc/posix-functions/fseeko.texi: Likewise.
3263         * doc/posix-functions/fstatat.texi: Likewise.
3264         * doc/posix-functions/ftello.texi: Likewise.
3265         * doc/posix-functions/glob.texi: Likewise.
3266         * doc/posix-functions/lseek.texi: Likewise.
3267         * doc/posix-functions/lstat.texi: Likewise.
3268         * doc/posix-functions/mkstemp.texi: Likewise.
3269         * doc/posix-functions/open.texi: Likewise.
3270         * doc/posix-functions/openat.texi: Likewise.
3271         * doc/posix-functions/pread.texi: Likewise.
3272         * doc/posix-functions/pwrite.texi: Likewise.
3273         * doc/posix-functions/scandir.texi: Likewise.
3274         * doc/posix-functions/stat.texi: Likewise.
3275         * doc/posix-functions/tmpfile.texi: Likewise.
3276         * doc/glibc-functions/mkostemp.texi: Likewise.
3277         * doc/glibc-functions/mkostemps.texi: Likewise.
3278         * doc/glibc-functions/mkstemps.texi: Likewise.
3279
3280 2011-07-25  Bruno Haible  <bruno@clisp.org>
3281
3282         fcntl: Move AC_LIBOBJ invocation to module description.
3283         * m4/fcntl.m4 (gl_REPLACE_FCNTL): Don't invoke AC_LIBOBJ.
3284         * modules/fcntl (configure.ac): Invoke AC_LIBOBJ.
3285
3286         fcntl: Remove call-in from fchdir.m4.
3287         * m4/fcntl.m4 (gl_FUNC_FCNTL): Conditionally invoke gl_TEST_FCHDIR.
3288         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't invoke gl_REPLACE_FCNTL.
3289
3290         dup3: Remove potential call-in from fchdir.m4.
3291         * m4/dup3.m4 (gl_FUNC_DUP3): Add comment about fchdir.
3292         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Remove comment about dup3.
3293
3294         dup2: Move AC_LIBOBJ invocation to module description.
3295         * m4/dup2.m4 (gl_REPLACE_DUP2): Remove macro.
3296         (gl_FUNC_DUP2): Instead of gl_REPLACE_DUP2, just set REPLACE_DUP2 to 1.
3297         Don't invoke AC_LIBOBJ.
3298         * modules/dup2 (configure.ac): Invoke AC_LIBOBJ.
3299
3300         dup2: Remove call-in from fchdir.m4.
3301         * m4/dup2.m4 (gl_FUNC_DUP2): Conditionally invoke gl_TEST_FCHDIR.
3302         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't invoke gl_REPLACE_DUP2.
3303
3304         fclose: Move AC_LIBOBJ invocation to module description.
3305         * m4/fclose.m4 (gl_REPLACE_FCLOSE): Remove macro.
3306         (gl_FUNC_FCLOSE): Instead of gl_REPLACE_FCLOSE, just set REPLACE_FCLOSE
3307         to 1.
3308         * modules/fclose (configure.ac): Invoke AC_LIBOBJ.
3309
3310         fclose: Remove call-in from close.m4.
3311         * m4/fclose.m4 (gl_FUNC_FCLOSE): Invoke gl_FUNC_CLOSE.
3312         * m4/close.m4 (gl_FUNC_CLOSE): Don't invoke gl_REPLACE_FCLOSE.
3313
3314         close: Move AC_LIBOBJ invocation to module description.
3315         * m4/close.m4 (gl_REPLACE_CLOSE): Remove macro.
3316         (gl_FUNC_CLOSE): Instead of gl_REPLACE_CLOSE, just set REPLACE_CLOSE to
3317         1.
3318         * modules/close (configure.ac): Invoke AC_LIBOBJ.
3319
3320         close: Remove call-in from fchdir.m4.
3321         * m4/close.m4 (gl_FUNC_CLOSE): Conditionally invoke gl_TEST_FCHDIR.
3322         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't invoke gl_REPLACE_CLOSE.
3323
3324         open: Move AC_LIBOBJ invocation to module description.
3325         * m4/open.m4 (gl_REPLACE_OPEN): Remove macro.
3326         (gl_FUNC_OPEN): Instead of gl_REPLACE_OPEN, just set REPLACE_OPEN to 1.
3327         * modules/open (configure.ac): Invoke AC_LIBOBJ and gl_PREREQ_OPEN.
3328
3329         open: Remove call-in from fchdir.m4.
3330         * m4/open.m4 (gl_FUNC_OPEN): Conditionally invoke gl_TEST_FCHDIR.
3331         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't invoke gl_REPLACE_OPEN.
3332
3333         fchdir: Start to remove gl_REPLACE_* idiom.
3334         * m4/fchdir.m4 (gl_TEST_FCHDIR): New macro.
3335         (gl_FUNC_FCHDIR): Invoke it.
3336
3337 2011-07-25  Paul Eggert  <eggert@cs.ucla.edu>
3338
3339         * lib/ftell.c (ftell): Comment out cast.
3340
3341         close: use gl_REPLACE_FCLOSE only if defined
3342         * m4/close.m4 (gl_REPLACE_CLOSE): Use gl_REPLACE_FCLOSE only if it
3343         is defined.  The close module doesn't depend on the fclose module
3344         any more, so gl_REPLACE_CLOSE's existence cannot be assumed.  See
3345         <http://lists.gnu.org/archive/html/bug-gnulib/2011-07/msg00392.html>.
3346         I reproduced the problem with "./gnulib-tool --test close sys_socket".
3347
3348 2011-07-24  Jim Meyering  <meyering@redhat.com>
3349
3350         test-select.h: avoid warning when using gcc's -Wmissing-declarations
3351         * tests/test-select.h (test_function): Declare as "static".
3352
3353 2011-07-24  Bruno Haible  <bruno@clisp.org>
3354
3355         doc: Mention the effects of AC_SYS_LARGEFILE.
3356         * doc/posix-functions/aio_cancel.texi: Mention the effects of AC_SYS_LARGEFILE
3357         on this function.
3358         * doc/posix-functions/aio_error.texi: Likewise.
3359         * doc/posix-functions/aio_fsync.texi: Likewise.
3360         * doc/posix-functions/aio_read.texi: Likewise.
3361         * doc/posix-functions/aio_return.texi: Likewise.
3362         * doc/posix-functions/aio_suspend.texi: Likewise.
3363         * doc/posix-functions/aio_write.texi: Likewise.
3364         * doc/posix-functions/fgetpos.texi: Likewise.
3365         * doc/posix-functions/fopen.texi: Likewise.
3366         * doc/posix-functions/freopen.texi: Likewise.
3367         * doc/posix-functions/fsetpos.texi: Likewise.
3368         * doc/posix-functions/fstatvfs.texi: Likewise.
3369         * doc/posix-functions/ftruncate.texi: Likewise.
3370         * doc/posix-functions/ftw.texi: Likewise.
3371         * doc/posix-functions/getrlimit.texi: Likewise.
3372         * doc/posix-functions/glob.texi: Likewise.
3373         * doc/posix-functions/lio_listio.texi: Likewise.
3374         * doc/posix-functions/lockf.texi: Likewise.
3375         * doc/posix-functions/mkstemp.texi: Likewise.
3376         * doc/posix-functions/mmap.texi: Likewise.
3377         * doc/posix-functions/nftw.texi: Likewise.
3378         * doc/posix-functions/openat.texi: Likewise.
3379         * doc/posix-functions/opendir.texi: Likewise.
3380         * doc/posix-functions/posix_fadvise.texi: Likewise.
3381         * doc/posix-functions/posix_fallocate.texi: Likewise.
3382         * doc/posix-functions/pread.texi: Likewise.
3383         * doc/posix-functions/pwrite.texi: Likewise.
3384         * doc/posix-functions/readdir.texi: Likewise.
3385         * doc/posix-functions/readdir_r.texi: Likewise.
3386         * doc/posix-functions/rewinddir.texi: Likewise.
3387         * doc/posix-functions/scandir.texi: Likewise.
3388         * doc/posix-functions/seekdir.texi: Likewise.
3389         * doc/posix-functions/setrlimit.texi: Likewise.
3390         * doc/posix-functions/statvfs.texi: Likewise.
3391         * doc/posix-functions/telldir.texi: Likewise.
3392         * doc/posix-functions/tmpfile.texi: Likewise.
3393         * doc/posix-functions/truncate.texi: Likewise.
3394         * doc/glibc-functions/fallocate.texi: Likewise.
3395         * doc/glibc-functions/fstatfs.texi: Likewise.
3396         * doc/glibc-functions/fts_children.texi: Likewise.
3397         * doc/glibc-functions/fts_read.texi: Likewise.
3398         * doc/glibc-functions/getdirentries.texi: Likewise.
3399         * doc/glibc-functions/mkostemp.texi: Likewise.
3400         * doc/glibc-functions/mkostemps.texi: Likewise.
3401         * doc/glibc-functions/mkstemps.texi: Likewise.
3402         * doc/glibc-functions/preadv.texi: Likewise.
3403         * doc/glibc-functions/pwritev.texi: Likewise.
3404         * doc/glibc-functions/sendfile.texi: Likewise.
3405         * doc/glibc-functions/statfs.texi: Likewise.
3406
3407 2011-07-24  Bruno Haible  <bruno@clisp.org>
3408
3409         doc: Fix typo.
3410         * doc/posix-functions/fstat.texi: Talk about fstat, not stat.
3411
3412 2011-07-24  Bruno Haible  <bruno@clisp.org>
3413
3414         doc: Mention fsusage.
3415         * doc/posix-functions/statvfs.texi: Mention the fsusage module.
3416
3417 2011-07-24  Bruno Haible  <bruno@clisp.org>
3418
3419         doc: Mention new glibc headers and functions.
3420         * doc/glibc-headers/gshadow.texi: New file.
3421         * doc/glibc-functions/endsgent.texi: New file.
3422         * doc/glibc-functions/fgetsgent.texi: New file.
3423         * doc/glibc-functions/fgetsgent_r.texi: New file.
3424         * doc/glibc-functions/getsgent.texi: New file.
3425         * doc/glibc-functions/getsgent_r.texi: New file.
3426         * doc/glibc-functions/getsgnam.texi: New file.
3427         * doc/glibc-functions/getsgnam_r.texi: New file.
3428         * doc/glibc-functions/putsgent.texi: New file.
3429         * doc/glibc-functions/setsgent.texi: New file.
3430         * doc/glibc-functions/sgetsgent.texi: New file.
3431         * doc/glibc-functions/sgetsgent_r.texi: New file.
3432         * doc/glibc-functions/malloc_info.texi: New file.
3433         * doc/glibc-functions/preadv.texi: New file.
3434         * doc/glibc-functions/pwritev.texi: New file.
3435         * doc/glibc-functions/register_printf_modifier.texi: New file.
3436         * doc/glibc-functions/register_printf_specifier.texi: New file.
3437         * doc/glibc-functions/register_printf_type.texi: New file.
3438         * doc/glibc-functions/pthread_attr_getaffinity_np.texi: New file.
3439         * doc/glibc-functions/pthread_attr_setaffinity_np.texi: New file.
3440         * doc/glibc-functions/pthread_getaffinity_np.texi: New file.
3441         * doc/glibc-functions/pthread_getname_np.texi: New file.
3442         * doc/glibc-functions/pthread_mutex_consistent_np.texi: New file.
3443         * doc/glibc-functions/pthread_mutexattr_getrobust_np.texi: New file.
3444         * doc/glibc-functions/pthread_mutexattr_setrobust_np.texi: New file.
3445         * doc/glibc-functions/pthread_setaffinity_np.texi: New file.
3446         * doc/glibc-functions/pthread_setname_np.texi: New file.
3447         * doc/glibc-functions/pthread_sigqueue.texi: New file.
3448         * doc/glibc-functions/pthread_timedjoin_np.texi: New file.
3449         * doc/glibc-functions/pthread_tryjoin_np.texi: New file.
3450         * doc/glibc-functions/qsort_r.texi: New file.
3451         * doc/glibc-functions/quick_exit.texi: New file.
3452         * doc/glibc-functions/syncfs.texi: New file.
3453         * doc/gnulib.texi: Include them.
3454         (Glibc gshadow.h, Glibc sys/uio.h): New sections.
3455         * doc/posix-functions/psiginfo.texi: Fix info about glibc version.
3456         * doc/posix-functions/pthread_mutex_consistent.texi: Likewise.
3457         * doc/posix-functions/pthread_mutexattr_getrobust.texi: Likewise.
3458         * doc/posix-functions/pthread_mutexattr_setrobust.texi: Likewise.
3459         * doc/glibc-functions/execvpe.texi: Likewise.
3460
3461 2011-07-24  Paul Eggert  <eggert@cs.ucla.edu>
3462
3463         ftell: don't include <unistd.h>
3464         * lib/ftell.c: Don't include <unistd.h>.  <stdio.h> is now
3465         guaranteed to define off_t, and the ftell module depends on the
3466         stdio module.
3467
3468         ftell: do not assume wraparound signed arithmetic
3469         * lib/ftell.c: Include <limits.h>.
3470         (ftell): Don't assume wraparound signed arithmetic.
3471
3472 2011-07-24  Bruno Haible  <bruno@clisp.org>
3473
3474         close: No longer depend on module 'fclose'.
3475         * modules/close (Depends-on): Remove fclose.
3476         * NEWS: Mention the change.
3477         Suggested by Sam Steingold <sds@gnu.org>.
3478
3479 2011-07-24  Bruno Haible  <bruno@clisp.org>
3480
3481         fsusage: Enable large volume support on AIX >= 5.2.
3482         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): If 'struct statvfs64' has a
3483         larger f_blocks field than 'struct statvfs', define STAT_STATVFS64
3484         instead of STAT_STATVFS.
3485         * lib/fsusage.c (get_fs_usage) [STAT_STATVFS64]: Use statvfs64.
3486
3487         fsusage: Restore previous behaviour on AIX, Cygwin, Interix.
3488         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Enforce a 64-bit struct statvfs
3489         f_blocks field only on MacOS X.
3490
3491         fsusage: Support large volumes on glibc/Hurd, HP-UX, Solaris, MacOS X.
3492         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Require AC_SYS_LARGEFILE.
3493         * modules/fsusage (Depends-on): Add largefile.
3494
3495 2011-07-24  Paul Eggert  <eggert@cs.ucla.edu>
3496
3497         * README: Modernize discussion of signed integers.
3498         Assuming overflow wraparound is no longer safe.
3499         Mention ones' complement and signed magnitude.
3500
3501 2011-07-22  Bruno Haible  <bruno@clisp.org>
3502
3503         select tests, pselect tests: Refactor.
3504         * tests/test-select.h: New file, extracted from tests/test-select.c.
3505         (select_fn): New type.
3506         (test, do_select, do_select_nowait, do_select_wait, test_tty,
3507         test_connect_first, test_accept_first, test_pair, test_socket_pair,
3508         test_pipe): Add my_select argument.
3509         (test_function): Renamed from main. Add my_select argument.
3510         * tests/test-select.c: Move most code to tests/test-select.h. Include
3511         test-select.h.
3512         * modules/select-tests (Files): Add tests/test-select.h.
3513         * tests/test-pselect.c: Include test-select.h instead of test-select.c.
3514         (my_select, main): New functions.
3515         * modules/pselect-tests (Files): Add tests/test-select.h,
3516         tests/macros.h, tests/signature.h.
3517         (Depends-on): Remove select-tests. Add dependencies of test-select.h.
3518         (configure.ac): Check for <sys/wait.h>.
3519
3520 2011-07-22  Bruno Haible  <bruno@clisp.org>
3521
3522         sys_select tests: Check the signature of FD_*.
3523         * tests/test-select.c (FD_CLR, FD_ISSET, FD_SET, FD_ZERO): Move
3524         signature tests from here...
3525         * tests/test-sys_select.c (FD_CLR, FD_ISSET, FD_SET, FD_ZERO): ... to
3526         here.
3527         * modules/sys_select-tests (Files): Add tests/signature.h.
3528
3529 2011-07-22  Paul Eggert  <eggert@cs.ucla.edu>
3530
3531         largefile: new module, replacing large-inode
3532         Pádraig Brady suggested this in        <http://debbugs.gnu.org/9140#20>.
3533         * MODULES.html.sh: Add largefile, remove large-inode.
3534         * modules/largefile, m4/largefile.m4: New files.
3535         * modules/large-inode, m4/large-inode.m4: Remove.
3536
3537         fsusage: port to MacOS X 10.7 with 4 TiB file systems
3538         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Reject statvfs
3539         implementations that use only 32 bits to count blocks.
3540         On typical hosts with 1024-byte blocks, this fails with file
3541         systems as small as 4 TiB.  Problem reported by Herb Wartens
3542         <http://debbugs.gnu.org/9140> and this should also fix a similar
3543         problem reported by Tim Spriggs <http://debbugs.gnu.org/7355>.
3544
3545         large-inode: New module
3546         * MODULES.html.sh: Add it.
3547         * modules/large-inode, m4/large-inode.m4: New files.
3548
3549         extensions: Enable extensions on MacOS X 10.5 and later.
3550         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Define _DARWIN_C_SOURCE.
3551
3552 2011-07-22  Kamil Dudka  <kdudka@redhat.com>
3553
3554         file-has-acl: use acl_extended_file_nofollow if available
3555         * lib/acl-internal.h (HAVE_ACL_EXTENDED_FILE): New macro.
3556         (acl_extended_file): New macro.
3557         * lib/file-has-acl.c (file_has_acl): Use acl_extended_file_nofollow.
3558         * m4/acl.m4 (gl_FUNC_ACL): Check for acl_extended_file_nofollow.
3559
3560 2011-07-21  Bruno Haible  <bruno@clisp.org>
3561
3562         Declare system functions in a way that works with C++.
3563         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR) [C++]: In the test program,
3564         declare fdopendir as extern "C".
3565         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS) [C++]: In the test program,
3566         declare frexpl as extern "C".
3567         * m4/getaddrinfo.m4 (gl_GETADDRINFO) [C++]: In the test program,
3568         declare gai_strerror as extern "C".
3569         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME) [C++]: In the test
3570         programs, declare gai_strerror as extern "C".
3571         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R) [C++]: In the test program,
3572         declare getlogin_r as extern "C".
3573         * m4/ioctl.m4 (gl_FUNC_IOCTL) [C++]: In the test program, declare ioctl
3574         as extern "C".
3575         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS) [C++]: In the test program,
3576         declare ldexpl as extern "C".
3577         * m4/logb.m4 (gl_FUNC_LOGB) [C++]: In the test programs, declare logb
3578         as extern "C".
3579         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS) [C++]: In the test
3580         program, declare getmntinfo as extern "C".
3581         * m4/stpncpy.m4 (gl_FUNC_STPNCPY) [C++]: In the test program, declare
3582         stpncpy as extern "C".
3583         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R_WORKS) [C++]: In the test
3584         program, declare __xpg_strerror_r as extern "C".
3585         * m4/strndup.m4 (gl_FUNC_STRNDUP) [C++]: In the test program, declare
3586         strndup as extern "C".
3587         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT) [C++]: In the test program,
3588         declare memset and bzero as extern "C".
3589         Reported by Sam Steingold <sds@gnu.org>.
3590
3591 2011-07-12  Jim Meyering  <meyering@redhat.com>
3592
3593         maint.mk: prohibit inclusion of "verify.h" without use
3594         * top/maint.mk (sc_prohibit_verify_without_use): New rule.
3595
3596 2011-07-19  Pádraig Brady  <P@draigBrady.com>
3597
3598         timer-time: A new module to check for timer_settime()
3599         * m4/timer_time.m4: Check for the posix function.
3600         * modules/timer-time: Add the new module.
3601         * MODULES.html.sh (Compat checks for POSIX:2008 functions):
3602         Mention it.
3603
3604 2011-07-19  Paul Eggert  <eggert@cs.ucla.edu>
3605             Bruno Haible  <bruno@clisp.org>
3606
3607         pthread_sigmask: assume POSIX threads if --avoid=threadlib
3608         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): If gl_THREADLIB is
3609         not defined, assume POSIX threads and look for pthread_sigmask in
3610         $LIBS, without changing $CPPFLAGS.
3611
3612 2011-07-19  Bruno Haible  <bruno@clisp.org>
3613
3614         strstr: Update cross-compilation guess.
3615         * m4/strstr.m4 (gl_FUNC_STRSTR): On glibc > 2.12 with x86 or x86_64
3616         CPUs, guess no, in view of glibc
3617         BZ #12100 <http://sourceware.org/bugzilla/show_bug.cgi?id=12100>.
3618         Suggested by Eric Blake. Reported by Reuben Thomas.
3619
3620 2011-07-19  Pádraig Brady  <P@draigBrady.com>
3621
3622         getopt-gnu: suppress core dumps from detection code
3623         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Use the nocrash module
3624         to suppress core dumps that may well occur on glibc systems.
3625         * modules/getopt-gnu: Depend on nocrash.
3626
3627 2011-07-16  Paul Eggert  <eggert@cs.ucla.edu>
3628
3629         pthread_sigmask: ensure usleep is declared
3630         * lib/pthread_sigmask.c [PTHREAD_SIGMASK_UNBLOCK_BUG]:
3631         Include <unistd.h>, to declare usleep.  Needed on Solaris 8,
3632
3633 2011-07-15  Paul Eggert  <eggert@cs.ucla.edu>
3634
3635         doc: Document NonStop portability issues.
3636         * doc/posix-functions/sigaction.texi (sigaction):
3637         * doc/posix-headers/signal.texi (signal.h):
3638         Document NonStop.  See Joachim Schmitz in
3639         http://lists.gnu.org/archive/html/bug-coreutils/2011-07/msg00062.html
3640
3641 2011-07-15  Bruno Haible  <bruno@clisp.org>
3642
3643         ffsl, ffsll: Avoid unportable behaviour.
3644         * lib/ffsl.h (FUNC): Use 'unsigned int' instead of 'int'.
3645
3646 2011-07-15  Bruno Haible  <bruno@clisp.org>
3647
3648         ffs: More tests.
3649         * tests/test-ffs.c (NBITS): New macro.
3650         (main): Add more tests.
3651         * tests/test-ffsl.c (NBITS): New macro.
3652         (main): Add more tests.
3653         * tests/test-ffsll.c (NBITS): New macro.
3654         (main): Add more tests.
3655
3656 2011-07-15  Eric Blake  <eblake@redhat.com>
3657
3658         ffsl, ffsll: new modules
3659         * modules/ffsl: New file.
3660         * modules/ffsll: Likewise.
3661         * m4/ffsl.m4: Likewise.
3662         * m4/ffsll.m4: Likewise.
3663         * lib/ffsl.c: Likewise.
3664         * lib/ffsl.h: Likewise.
3665         * lib/ffsll.c: Likewise.
3666         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY)
3667         (gl_HEADER_STRING_H_DEFAULTS): Add defaults.
3668         * modules/string (Makefile.am): Substitute witnesses.
3669         * lib/strings.in.h (ffsl, ffsll): Declare.
3670         * modules/ffsl-tests: New test file.
3671         * modules/ffsll-tests: Likewise.
3672         * tests/test-ffsl.c: Likewise.
3673         * tests/test-ffsll.c: Likewise.
3674         * MODULES.html.sh (Integer arithmetic functions): Mention it.
3675         * doc/glibc-functions/ffsl.texi (ffsl): Likewise.
3676         * doc/glibc-functions/ffsll.texi (ffsll): Likewise.
3677
3678         ffs: fix m4 prerequisite
3679         * m4/ffs.m4 (gl_FUNC_FFS): Require strings.h defaults.
3680
3681         ffs: avoid undefined behavior
3682         * lib/ffs.c (ffs): Provide fallback for non-32-bit int.
3683         * tests/test-ffs.c (naive, main): Avoid signed shifts.
3684         Reported by Bruno Haible.
3685
3686 2011-07-12  Bruno Haible  <bruno@clisp.org>
3687
3688         pthread_sigmask: Rely on module 'threadlib'.
3689         * modules/pthread_sigmask (Depends-on): Add threadlib.
3690         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Assume gl_THREADLIB
3691         is defined.
3692
3693 2011-07-12  Bruno Haible  <bruno@clisp.org>
3694
3695         regex: Depend on module 'strcase'.
3696         * modules/regex (Depends-on): Add strcase, for strcasecmp().
3697
3698 2011-07-12  Jim Meyering  <meyering@redhat.com>
3699
3700         warn-on-use: fix typo in file name
3701         * modules/snippet/warn-on-use (Files): Correct file name:
3702         include /snippet/ component in "build-aux/snippet/warn-on-use.h".
3703
3704 2011-07-12  Bruno Haible  <bruno@clisp.org>
3705
3706         strings: Document module.
3707         * doc/posix-headers/strings.texi: Mention module 'strings'.
3708
3709 2011-07-12  Bruno Haible  <bruno@clisp.org>
3710
3711         Rename module '_Noreturn' to 'snippet/_Noreturn'.
3712         * modules/snippet/_Noreturn: Renamed from modules/_Noreturn.
3713         (Files, Makefile.am): Update.
3714         * build-aux/snippet/_Noreturn.h: Renamed from build-aux/_Noreturn.h.
3715         * modules/stdlib (Depends-on): Update.
3716
3717 2011-07-12  Bruno Haible  <bruno@clisp.org>
3718
3719         * NEWS: Mention the changes.
3720
3721         Rename module 'warn-on-use' to 'snippet/warn-on-use'.
3722         * modules/snippet/warn-on-use: Renamed from modules/warn-on-use.
3723         (Files, Makefile.am): Update.
3724         * build-aux/snippet/warn-on-use.h: Renamed from build-aux/warn-on-use.h.
3725         * modules/arpa_inet (Depends-on): Update.
3726         * modules/ctype (Depends-on): Update.
3727         * modules/dirent (Depends-on): Update.
3728         * modules/fcntl-h (Depends-on): Update.
3729         * modules/glob (Depends-on): Update.
3730         * modules/iconv-h (Depends-on): Update.
3731         * modules/inttypes-incomplete (Depends-on): Update.
3732         * modules/langinfo (Depends-on): Update.
3733         * modules/locale (Depends-on): Update.
3734         * modules/math (Depends-on): Update.
3735         * modules/netdb (Depends-on): Update.
3736         * modules/poll-h (Depends-on): Update.
3737         * modules/pty (Depends-on): Update.
3738         * modules/search (Depends-on): Update.
3739         * modules/signal (Depends-on): Update.
3740         * modules/spawn (Depends-on): Update.
3741         * modules/stdio (Depends-on): Update.
3742         * modules/stdlib (Depends-on): Update.
3743         * modules/string (Depends-on): Update.
3744         * modules/strings (Depends-on): Update.
3745         * modules/sys_file (Depends-on): Update.
3746         * modules/sys_ioctl (Depends-on): Update.
3747         * modules/sys_select (Depends-on): Update.
3748         * modules/sys_socket (Depends-on): Update.
3749         * modules/sys_stat (Depends-on): Update.
3750         * modules/sys_time (Depends-on): Update.
3751         * modules/sys_times (Depends-on): Update.
3752         * modules/sys_utsname (Depends-on): Update.
3753         * modules/sys_wait (Depends-on): Update.
3754         * modules/termios (Depends-on): Update.
3755         * modules/time (Depends-on): Update.
3756         * modules/unistd (Depends-on): Update.
3757         * modules/wchar (Depends-on): Update.
3758         * modules/wctype-h (Depends-on): Update.
3759         * MODULES.html.sh (Support for building libraries and executables):
3760         Update.
3761
3762         Rename module 'unused-parameter' to 'snippet/unused-parameter'.
3763         * modules/snippet/unused-parameter: Renamed from
3764         modules/unused-parameter.
3765         (Files, Makefile.am): Update.
3766         * build-aux/snippet/unused-parameter.h: Renamed from
3767         build-aux/unused-parameter.h.
3768         * modules/selinux-h (Depends-on): Update.
3769         * modules/unistr/base (Depends-on): Update.
3770         * MODULES.html.sh (Core language properties): Update.
3771
3772         Rename module 'link-warning' to 'snippet/link-warning'.
3773         * modules/snippet/link-warning: Renamed from modules/link-warning.
3774         (Files, Makefile.am): Update.
3775         * build-aux/snippet/link-warning.h: Renamed from
3776         build-aux/link-warning.h.
3777         * MODULES.html.sh (Support for building libraries and executables):
3778         Update.
3779
3780         Rename module 'c++defs' to 'snippet/c++defs'.
3781         * modules/snippet/c++defs: Renamed from modules/c++defs.
3782         (Files, Makefile.am): Update.
3783         * build-aux/snippet/c++defs.h: Renamed from build-aux/c++defs.h.
3784         * modules/arpa_inet (Depends-on): Update.
3785         * modules/ctype (Depends-on): Update.
3786         * modules/dirent (Depends-on): Update.
3787         * modules/fcntl-h (Depends-on): Update.
3788         * modules/glob (Depends-on): Update.
3789         * modules/iconv-h (Depends-on): Update.
3790         * modules/langinfo (Depends-on): Update.
3791         * modules/locale (Depends-on): Update.
3792         * modules/math (Depends-on): Update.
3793         * modules/netdb (Depends-on): Update.
3794         * modules/poll-h (Depends-on): Update.
3795         * modules/pty (Depends-on): Update.
3796         * modules/search (Depends-on): Update.
3797         * modules/signal (Depends-on): Update.
3798         * modules/spawn (Depends-on): Update.
3799         * modules/stdio (Depends-on): Update.
3800         * modules/stdlib (Depends-on): Update.
3801         * modules/string (Depends-on): Update.
3802         * modules/strings (Depends-on): Update.
3803         * modules/sys_ioctl (Depends-on): Update.
3804         * modules/sys_select (Depends-on): Update.
3805         * modules/sys_socket (Depends-on): Update.
3806         * modules/sys_stat (Depends-on): Update.
3807         * modules/sys_time (Depends-on): Update.
3808         * modules/sys_wait (Depends-on): Update.
3809         * modules/termios (Depends-on): Update.
3810         * modules/time (Depends-on): Update.
3811         * modules/unistd (Depends-on): Update.
3812         * modules/wchar (Depends-on): Update.
3813         * modules/wctype-h (Depends-on): Update.
3814
3815         Rename module 'arg-nonnull' to 'snippet/arg-nonnull'.
3816         * modules/snippet/arg-nonnull: Renamed from modules/arg-nonnull.
3817         (Files, Makefile.am): Update.
3818         * build-aux/snippet/arg-nonnull.h: Renamed from build-aux/arg-nonnull.h.
3819         * modules/argv-iter (Depends-on): Update.
3820         * modules/arpa_inet (Depends-on): Update.
3821         * modules/dirent (Depends-on): Update.
3822         * modules/fcntl-h (Depends-on): Update.
3823         * modules/fnmatch (Depends-on): Update.
3824         * modules/getopt-posix (Depends-on): Update.
3825         * modules/glob (Depends-on): Update.
3826         * modules/iconv-h (Depends-on): Update.
3827         * modules/inttypes-incomplete (Depends-on): Update.
3828         * modules/locale (Depends-on): Update.
3829         * modules/math (Depends-on): Update.
3830         * modules/netdb (Depends-on): Update.
3831         * modules/search (Depends-on): Update.
3832         * modules/signal (Depends-on): Update.
3833         * modules/spawn (Depends-on): Update.
3834         * modules/stdio (Depends-on): Update.
3835         * modules/stdlib (Depends-on): Update.
3836         * modules/string (Depends-on): Update.
3837         * modules/strings (Depends-on): Update.
3838         * modules/sys_socket (Depends-on): Update.
3839         * modules/sys_stat (Depends-on): Update.
3840         * modules/sys_time (Depends-on): Update.
3841         * modules/sys_times (Depends-on): Update.
3842         * modules/sys_utsname (Depends-on): Update.
3843         * modules/time (Depends-on): Update.
3844         * modules/unistd (Depends-on): Update.
3845         * modules/wchar (Depends-on): Update.
3846         * MODULES.html.sh (Support for building libraries and executables):
3847         Update.
3848
3849 2011-07-12  Paul Eggert  <eggert@cs.ucla.edu>
3850
3851         Improvements on _Noreturn and related modules.
3852
3853         modules/_Exit-tests: test _Noreturn too
3854         * tests/test-_Exit.c (MTA, Charlie): New functions, taken from the
3855         old tests/test-stdnoreturn.c.  This tests the _Noreturn keyword a bit.
3856         (main): Use them.
3857
3858         stdnoreturn, stdnoreturn-tests: remove modules
3859         They're not needed here and a bit premature for use elsewhere.  See
3860         <http://lists.gnu.org/archive/html/bug-gnulib/2011-07/msg00209.html>.
3861         * m4/stdnoreturn.m4, modules/stdnoreturn, modules/stdnoreturn-tests:
3862         * tests/test-stdnoreturn.c: Remove files.
3863         * MODULES.html.sh (_Noreturn <stdnoreturn.h>): Remove section.
3864         * lib/openat.h, lib/sigpipe-die.h, lib/xalloc.h, lib/xmemdup0.h:
3865         * lib/xstrtol.h: Use _Noreturn rather than including <stdnoreturn.h>
3866         and using noreturn.
3867         * modules/openat, modules/sigpipe-die, modules/xalloc:
3868         * modules/xmemdup0, modules/xstrtol:
3869         Remove dependency on stdnoreturn.
3870
3871         _Noreturn: Ignore __STDC_VERSION__; observe _MSC_VER.
3872         * build-aux/_Noreturn.h (_Noreturn): Ignore __STDC_VERSION__.
3873         Reparenthesize to avoid GCC warning.
3874         Support Microsoft's syntax.
3875         * m4/gnulib-common.m4 (gl_COMMON_BODY): Likewise.
3876
3877         _Noreturn-tests: remove module
3878         * modules/_Noreturn-tests: Remove.
3879         * modules/stdnoreturn-tests (Files): Remove tests/test-_Noreturn.c.
3880         * tests/test-_Noreturn.c: Remove.
3881         * tests/test-stdnoreturn.c: Merge from the old
3882         tests/test-_Noreturn.c, testing both noreturn and _Noreturn.
3883
3884 2011-07-12  Paul Eggert  <eggert@cs.ucla.edu>
3885
3886         _Noreturn, stdnoreturn, and related modules.
3887
3888         * top/maint.mk: Adjust to new noreturn support.
3889         (gl_extract_significant_defines_): Omit pattern ATTRIBUTE_NORETURN.
3890         (def_sym_regex): Do not remove ATTRIBUTE_NORETURN.
3891
3892         xalloc: use stdnoreturn.h
3893         * lib/xalloc.h: Include <stdnoreturn.h>.
3894         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
3895         * modules/xalloc (Depends-on): Add stdnoreturn.
3896
3897         xstrtol: use stdnoreturn.h
3898         * lib/xstrtol.h: Include <stdnoreturn.h>.
3899         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
3900         * modules/xstrtol (Depends-on): Add stdnoreturn.
3901
3902         xmemdup0: use stdnoreturn.h
3903         * lib/xmemdup0.h: Include <stdnoreturn.h>.
3904         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
3905         * modules/xmemdup0 (Depends-on): Add stdnoreturn.
3906
3907         sigpipe-die: use stdnoreturn.h
3908         * lib/sigpipe-die.h: Include <stdnoreturn.h>.
3909         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
3910         * modules/sigpipe-die (Depends-on): Add stdnoreturn.
3911
3912         openat: use stdnoreturn.h
3913         * lib/openat.h: Include <stdnoreturn.h>.
3914         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
3915         * modules/openat (Depends-on): Add stdnoreturn.
3916
3917         * lib/openat-die.c (openat_save_fail): Modernize comment.
3918
3919         * lib/xalloc-die.c (xalloc_die): Modernize comment.
3920
3921         * lib/glthread/thread.h: Modernize comment.
3922
3923         obstack: use _Noreturn
3924         * lib/obstack.c (__attribute__): Remove macro.
3925         (print_and_abort): Use _Noreturn.
3926
3927         c-stack: use _Noreturn
3928         * lib/c-stack.c (die, overflow_handler, segv_handler):
3929         Use _Noreturn rather than __attribute__((noreturn)).
3930
3931         argmatch-tests, exclude_tests: use _Noreturn
3932         * tests/test-argmatch.c, tests/test-exclude.c (_GL_ATTRIBUTE_NORETURN):
3933         Remove.
3934         (ARGMATCH_DIE_DECL): Use _Noreturn instead.
3935
3936         stdlib: use _Noreturn
3937         * lib/stdlib.in.h (_GL_ATTRIBUTE_NORETURN): Remove.
3938         (_Exit): Use _Noreturn rather than _GL_ATTRIBUTE_NORETURN.
3939         * modules/stdlib (Depends-on): Add _Noreturn.
3940         (stdlib.h): Depend on $(_NORETURN_H), and copy it in.
3941
3942         stdnoreturn-tests: new module
3943         * modules/stdnoreturn-tests, tests/test-stdnoreturn.c: New files.
3944
3945         stdnoreturn: new module
3946         * MODULES.html.sh (Noreturn <stdnoreturn.h>): New section.
3947         * m4/stdnoreturn.m4, modules/stdnoreturn: New files.
3948
3949         _Noreturn-tests: new module
3950         * modules/_Noreturn-tests, tests/test-_Noreturn.c: New files.
3951
3952         _Noreturn: new module
3953         * MODULES.html.sh (Support for systems lacking draft ISO C 1X):
3954         New section, mentioning it.
3955         * build-aux/_Noreturn.h, modules/_Noreturn: New files.
3956
3957         * m4/gnulib-common.m4 (gl_COMMON_BODY): Add _Noreturn.
3958
3959 2011-07-11  Eric Blake  <eblake@redhat.com>
3960
3961         ffs: new module
3962         * modules/ffs: New file.
3963         * m4/ffs.m4: Likewise.
3964         * lib/ffs.c: Likewise.
3965         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_DEFAULTS): Add default.
3966         * modules/strings (Makefile.am): Substitute witness.
3967         (Depends-on): Add c++defs.
3968         * lib/strings.in.h (ffs): Declare.
3969         * modules/ffs-tests: New test file.
3970         * tests/test-ffs.c: Test new module.
3971         * MODULES.html.sh (Integer arithmetic functions): Mention it.
3972         * doc/posix-functions/ffs.texi (ffs): Likewise.
3973
3974         regex: avoid compiler warning
3975         * lib/regex.c (includes): Include <strings.h>, for use of
3976         strcasecmp in regcomp.c.
3977         Reported by Joachim Schmitz.
3978
3979 2011-07-09  Paul Eggert  <eggert@cs.ucla.edu>
3980
3981         stdint: respect system's intmax_t if INTMAX_MAX
3982         * lib/stdint.in.h (intmax_t, uintmax_t): If the system defines
3983         INTMAX_MAX, assume its intmax_t is OK.  Similarly for and
3984         uintmax_t.  This is for some Mac OS X builds, where intmax_t is
3985         long but int64_t is long long, and where we will clash with the
3986         system intmax_t if we override it.  See
3987         <http://lists.gnu.org/archive/html/bug-gnulib/2011-07/msg00160.html>.
3988         (INTMAX_C, UINTMAX_C): For consistency, respect the system's
3989         INTMAX_C if INTMAX_MAX and INTMAX_C are both defined, and
3990         similarly for UINTMAX_C.
3991
3992 2011-07-08  Bruno Haible  <bruno@clisp.org>
3993
3994         pthread_sigmask tests: Avoid a compiler warning.
3995         * tests/test-pthread_sigmask1.c (main): Complain if system() returns
3996         non-zero.
3997
3998         sigprocmask tests: A better way to avoid a compiler warning.
3999         * tests/test-sigprocmask.c: Don't include "ignore-value.h".
4000         (main): Complain if system() returns non-zero.
4001         * modules/sigprocmask-tests (Depends-on): Remove ignore-value.
4002
4003 2011-07-08  Bruno Haible  <bruno@clisp.org>
4004
4005         pthread_sigmask: Work around IRIX bug.
4006         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Test for the IRIX
4007         bug.
4008         * lib/pthread_sigmask.c (pthread_sigmask): usleep for some time when
4009         there may be unblocked pending signals.
4010         * doc/posix-functions/pthread_sigmask.texi: Mention the IRIX bug.
4011
4012 2011-07-08  Bruno Haible  <bruno@clisp.org>
4013
4014         pthread_sigmask: Work around Cygwin bug.
4015         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Test for the Cygwin
4016         bug.
4017         * lib/pthread_sigmask.c (pthread_sigmask): Fix the return value from
4018         the system's pthread_sigmask function.
4019         * doc/posix-functions/pthread_sigmask.texi: Mention the Cygwin bug.
4020
4021 2011-07-08  Bruno Haible  <bruno@clisp.org>
4022
4023         pthread_sigmask: Work around bug in single-threaded implementation.
4024         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Test for the
4025         FreeBSD, HP-UX, Solaris bug.
4026         (gl_PREREQ_PTHREAD_SIGMASK): New macro.
4027         * lib/pthread_sigmask.c: Include <stddef.h>.
4028         (pthread_sigmask): If HAVE_PTHREAD_SIGMASK, define as a wrapper around
4029         the system's pthread_sigmask function.
4030         * modules/pthread_sigmask (configure.ac): Invoke
4031         gl_PREREQ_PTHREAD_SIGMASK.
4032         * doc/posix-functions/pthread_sigmask.texi: Mention bug on FreeBSD,
4033         HP-UX, Solaris.
4034
4035 2011-07-08  Eric Blake  <eblake@redhat.com>
4036
4037         test-sigprocmask: avoid compiler warning
4038         * modules/sigprocmask-tests (Depends-on): Add ignore-value.
4039         * tests/test-sigprocmask.c (main): Use it to silence warning.
4040         Reported by Jim Meyering.
4041
4042         test-snprintf: avoid compiler warning
4043         * tests/test-snprintf.c (main): Avoid shadowed declaration.
4044         * tests/test-vsnprintf.c (main): Likewise.
4045         Reported by Jim Meyering.
4046
4047 2011-07-08  Bruno Haible  <bruno@clisp.org>
4048
4049         Tests for module 'pthread_sigmask'.
4050         * modules/pthread_sigmask-tests: New file.
4051         * tests/test-pthread_sigmask1.c: New file, based on
4052         tests/test-sigprocmask.c.
4053         * tests/test-pthread_sigmask2.c: New file.
4054
4055 2011-07-08  Jim Meyering  <meyering@redhat.com>
4056
4057         test-getopt.h: avoid warning about an unused variable
4058         * tests/test-getopt.h (test_getopt): Remove unused variable, "c".
4059
4060 2011-07-07  Jim Meyering  <meyering@redhat.com>
4061
4062         maint: reduce list of files exempt from sc_prohibit_leading_TABs
4063         * Makefile (sc_prohibit_leading_TABs): Don't exempt m4/po.m4,
4064         now that it no longer contains leading TABs.
4065         Remove unused "url=FIXME" statement.
4066
4067 2011-07-08  Paul Eggert  <eggert@cs.ucla.edu>
4068
4069         pthread_sigmask: Assume POSIX when not gl_THREADLIB.
4070         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK):
4071         When gl_THREADLIB is not in use, assume that the POSIX sematics
4072         are desired.  This is better for Emacs, which uses POSIX semantics
4073         on GNUish and/or POSIXish platforms, and does not use threads at
4074         all otherwise.
4075
4076         pthread_sigmask: fix typo when testing for libraries
4077         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK):
4078         AC_LINK_IFELSE, not AC_COMPILE_IFELSE.
4079
4080 2011-07-08  Eric Blake  <eblake@redhat.com>
4081
4082         fts: introduce FTS_NOATIME
4083         * lib/fts_.h (FTS_NOATIME): New bit flag.
4084         (FTS_OPTIONMASK): Adjust.
4085         * lib/fts.c (diropen, fts_open, fts_build): Honor it.
4086         (fd_ring_check): Debug code unconditionally uses O_NOATIME.
4087
4088 2011-07-08  Bruno Haible  <bruno@clisp.org>
4089
4090         Tests for module 'thread'.
4091         * modules/thread-tests: New file.
4092         * tests/test-thread_self.c: New file.
4093         * tests/test-thread_create.cc: New file.
4094
4095 2011-07-08  Bruno Haible  <bruno@clisp.org>
4096
4097         thread: Avoid gcc warnings when using gl_thread_self().
4098         * lib/glthread/thread.h (gl_thread_self): Return a pthread_t, not a
4099         'void *'.
4100         (gl_thread_self_pointer): Update.
4101
4102 2011-07-07  Bruno Haible  <bruno@clisp.org>
4103
4104         signal-c++-tests: Check declaration of pthread_sigmask.
4105         * tests/test-signal-c++.cc: Check declaration of pthread_sigmask.
4106         * modules/signal-c++-tests (Makefile.am): Link test-signal-c++ against
4107         $(LIB_PTHREAD_SIGMASK).
4108
4109 2011-07-07  Bruno Haible  <bruno@clisp.org>
4110
4111         pthread_sigmask: Fix link requirements on OSF/1 5.1 and with pth.
4112         * lib/signal.in.h (pthread_sigmask): Override if
4113         REPLACE_PTHREAD_SIGMASK is 1.
4114         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize
4115         REPLACE_PTHREAD_SIGMASK.
4116         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Set also
4117         REPLACE_PTHREAD_SIGMASK. Set and substitute LIB_PTHREAD_SIGMASK.
4118         * modules/signal (Makefile.am): Substitute REPLACE_PTHREAD_SIGMASK.
4119         * modules/pthread_sigmask (Depends-on, configure.ac): Update condition.
4120         (Link): Set to $(LIB_PTHREAD_SIGMASK), not $(LIBMULTITHREAD).
4121
4122 2011-07-07  Bruno Haible  <bruno@clisp.org>
4123
4124         pthread_sigmask: Ensure declaration in <signal.h>.
4125         * lib/signal.in.h: On MacOS X, FreeBSD, OpenBSD, OSF/1, Solaris 2.6,
4126         include <pthread.h>.
4127         * doc/posix-functions/pthread_sigmask.texi: Mention the header file
4128         problem.
4129
4130 2011-07-07  Bruno Haible  <bruno@clisp.org>
4131
4132         pthread_sigmask: Document the module.
4133         * doc/posix-functions/pthread_sigmask.texi: Mention the new module.
4134
4135 2011-07-07  Bruno Haible  <bruno@clisp.org>
4136
4137         pthread_sigmask: Follow gnulib conventions.
4138         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Renamed from
4139         gl_PTHREAD_SIGMASK.
4140         * modules/pthread_sigmask (configure.ac): Update.
4141
4142 2011-07-07  Bruno Haible  <bruno@clisp.org>
4143
4144         pthread_sigmask: Make declaration C++ safe.
4145         * lib/signal.in.h: In two special conditions, just do an #include_next.
4146         (pthread_sigmask): Test HAVE_PTHREAD_SIGMASK, not REPLACE_PTHREAD_MASK.
4147         Invoke _GL_CXXALIAS_SYS and _GL_CXXALIASWARN.
4148         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize
4149         HAVE_PTHREAD_SIGMASK, not REPLACE_PTHREAD_MASK.
4150         * m4/pthread_sigmask.m4 (gl_PTHREAD_SIGMASK): Set HAVE_PTHREAD_SIGMASK,
4151         not REPLACE_PTHREAD_MASK.
4152         * modules/signal (Makefile.am): Substitute HAVE_PTHREAD_SIGMASK,
4153         not REPLACE_PTHREAD_MASK.
4154         * modules/pthread_sigmask (Depends-on, configure.ac): Update condition.
4155
4156 2011-07-07  Bruno Haible  <bruno@clisp.org>
4157
4158         pthread_sigmask: Fix return value.
4159         * lib/signal.in.h (pthread_sigmask): Declare. Don't define as a macro.
4160         * lib/pthread_sigmask.c: New file.
4161         * modules/pthread_sigmask (Files): Add it.
4162         (configure.ac): Invoke AC_LIBOBJ.
4163
4164 2011-07-07  Eric Blake  <eblake@redhat.com>
4165
4166         getopt: more portable argv creation
4167         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADRS): Rather than casting away
4168         const, use char arrays rather than strings.
4169         Suggested by Paul Eggert.
4170
4171 2011-07-07  Bruno Haible  <bruno@clisp.org>
4172
4173         Tests for module 'sigprocmask'.
4174         * modules/sigprocmask-tests: New file.
4175         * tests/test-sigprocmask.c: New file.
4176
4177 2011-07-07  Bruno Haible  <bruno@clisp.org>
4178
4179         float tests: Tweak.
4180         * tests/test-float.c (main): Tweak skip message.
4181
4182 2011-07-07  Eric Blake  <eblake@redhat.com>
4183
4184         getopt: avoid compiler warning during configure
4185         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADRS): Avoid problems with
4186         assigning string literals to non-const pointer.
4187
4188         getopt-gnu: avoid crash in glibc getopt
4189         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADRS): Detect the problem.
4190         * tests/test-getopt.h (test_getopt): Enhance test.
4191         * tests/test-getopt_long.h (test_getopt_long): Likewise.
4192         * doc/posix-functions/getopt.texi (getopt): Document it.
4193         * doc/glibc-functions/getopt_long.texi (getopt_long): Likewise.
4194         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
4195         Likewise.
4196
4197 2011-07-07  Ulrich Drepper  <drepper@gmail.com>
4198
4199         getopt: handle W; without long options in getopt [BZ #12922]
4200         * lib/getopt.c (_getopt_internal_r): When "W;" is in short options
4201         but no long options are defined, just return 'W'.
4202
4203 2011-07-07  Bruno Haible  <bruno@clisp.org>
4204
4205         Avoid literal tabs.
4206         * m4/po,m4 (AM_PO_SUBDIRS, AM_POSTPROCESS_PO_MAKEFILE): Use a shell
4207         variable containing a tab instead of a literal tab.
4208         Reported by Jim Meyering.
4209
4210 2011-07-07  Bruno Haible  <bruno@clisp.org>
4211
4212         Comments.
4213         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Update comments about mingw.
4214
4215 2011-07-06  Bruno Haible  <bruno@clisp.org>
4216
4217         sys_select: Fix compilation error on mingw, introduced on 2011-06-30.
4218         * lib/sys_select.in.h: Don't include <sys/socket.h>. Instead, include
4219         <winsock2.h>.
4220         (rpl_fd_isset, FD_ISSET): New definitions, copied from
4221         lib/sys_socket.in.h.
4222         (close, gethostname): Hide declarations from <winsock2.h>.
4223         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
4224         listen, recv, send, recvfrom, sendto, setsockopt, shutdown): Likewise.
4225         * lib/sys_socket.in.h (close, gethostname): Tweak indentation.
4226         (select): Don't override if gnulib's <sys/select.h> was already
4227         included.
4228         * lib/unistd.in.h (socket, connect, accept, bind, getpeername,
4229         getsockname, getsockopt, listen, recv, send, recvfrom, sendto,
4230         setsockopt, shutdown, select): Tweak indentation.
4231
4232 2011-07-06  Paul Eggert  <eggert@cs.ucla.edu>
4233
4234         * modules/pthread_sigmask (configure.ac): gl_SIGNAL_MODULE_INDICATOR
4235         and not gl_SYS_SELECT_MODULE_INDICATOR, fixing a typo exposed
4236         in an application that does not use the sys_select module.
4237
4238 2011-07-06  Erik Faye-Lund  <kusmabite@gmail.com>
4239
4240         poll: do not return 0 on timeout=-1
4241         * lib/poll.c: Loop with yield if no events occured
4242
4243 2011-07-06  Eric Blake  <eblake@redhat.com>
4244
4245         pthread_sigmask: always replace when not using pthread
4246         * m4/pthread_sigmask.m4 (gl_PTHREAD_SIGMASK): Force sigprocmask
4247         replacement when using some threading other than pthread.  Fix
4248         logic bug.
4249
4250 2011-07-06  Bruno Haible  <bruno@clisp.org>
4251
4252         Comments.
4253         * m4/printf.m4: Update comments about mingw.
4254
4255 2011-07-06  Paul Eggert  <eggert@cs.ucla.edu>
4256
4257         sys_select: define sigset_t more portably
4258         * lib/sys_select.in.h: Always include <sys/types.h>, since
4259         we now need sigset_t and mingw defines it there.
4260         Include <signal.h> before split inclusion guard, to avoid
4261         mishaps on Solaris, whose <signal.h> eventually includes us.
4262         * m4/signal_h.m4 (gl_SIGNAL_H): Require gl_CHECK_TYPE_SIGSET_T.
4263         (gl_CHECK_TYPE_SIGSET_T): New macro, most of the contents of
4264         which come from ...
4265         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Require
4266         gl_CHECK_TYPE_SIGSET_T.
4267         (gl_PREREQ_SIGPROCMASK): Now a no-op, since gl_CHECK_TYPE_SIGSET_T
4268         does the real work.
4269         * modules/sys_select (Depends-on): Add 'signal'.
4270
4271         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Poison pselect.
4272         Suggested by Bruno Haible.
4273
4274         pselect: Use pthread_sigmask, not sigprocmask.
4275         * lib/pselect.c (pselect): Use pthread_sigmask, as it supports
4276         multithreaded apps better than sigprocmask does.
4277         * modules/pselect (Depends-on): Depend on pthread_sigmask, not
4278         sigprocmask directly.
4279
4280 2011-07-05  Paul Eggert  <eggert@cs.ucla.edu>
4281
4282         * lib/pselect.c (pselect): Use plain name, without "rpl_".
4283         Don't #undef,  since we don't need any underlying pselect.
4284         * modules/pselect (configure.ac): Use our pselect.o if !HAVE_PSELECT.
4285         (Depends-on): Add select.
4286         (Link): Add $(LIBSOCKET).
4287         These changes suggested by Bruno Haible.
4288
4289         pselect: document better
4290         * MODULES.html.sh (Support for systems lacking POSIX:2008): Add it.
4291         * doc/posix-functions/pselect.texi (pselect): Document new module.
4292
4293         pthread_sigmask: new module
4294         * MODULES.html.sh (Support for systems lacking POSIX:2008): Add it.
4295         * doc/posix-functions/pthread_sigmask.texi: Document new module.
4296         * lib/signal.in.h (pthread_sigmask): Arrange for replacement.
4297         This is done only as a macro; I don't know how well that'll
4298         work for C++.  Move <sys/types.h> include before the include_next,
4299         to avoid mishap on Solaris.
4300         * m4/signal_h.m4 (gl_SIGNAL_H, gl_SIGNAL_H_DEFAULTS): Check for it.
4301         * modules/signal (Makefile.am): Substitute the check's results.
4302         * modules/pthread_sigmask, m4/pthread_sigmask.m4: New files.
4303
4304         test-pselect: new module
4305         * modules/pselect-tests, tests/test-pselect.c: New files.
4306         * tests/test-select.c, tests/test-sys_select-c++.cc:
4307         If TEST_PSELECT is defined, test pselect instead of testing select.
4308
4309         * tests/test-sys_select.c (sigset_t): Test for it, too.
4310         Suggested by Bruno Haible.
4311
4312 2011-07-05  Eric Blake  <eblake@redhat.com>
4313
4314         snprintf: guarantee %1$d, for libintl
4315         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Require %1$d support.
4316         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Likewise.
4317         * doc/posix-functions/snprintf.texi (snprintf): Update.
4318         * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
4319         * tests/test-snprintf.c (main): Enhance test.
4320         * tests/test-vsnprintf.c (main): Likewise.
4321
4322 2011-07-05  Jim Meyering  <meyering@redhat.com>
4323
4324         maint: exempt stdio-read.c and stdio-write.c from the cppi check
4325         * Makefile (sc_cpp_indent_check): Exempt stdio-read.c and stdio-write.c
4326         per Bruno's request, to accommodate this idiom (no space after "#")
4327         even when the function is inside an #if block:
4328         char *
4329         gets (char *s)
4330         #undef gets
4331         {
4332           ...
4333         }
4334
4335 2011-07-04  Jim Meyering  <meyering@redhat.com>
4336
4337         maint: indent with spaces, not TABs, and add a rule to check this
4338         * tests/test-userspec.c: Indent with spaces, not TABs.
4339         * tests/test-argp.c: Likewise.
4340         * tests/test-c-stack2.sh: Likewise.
4341         * tests/test-parse-duration.sh: Likewise
4342         * m4/strtod.m4: Likewise.
4343         * m4/alloca.m4: Likewise.
4344         * m4/pselect.m4: Likewise.
4345         * Makefile (sc_prohibit_leading_TABs): Prohibit leading TABs.
4346
4347 2011-07-03  Jim Meyering  <meyering@redhat.com>
4348
4349         maint.mk: correct omissions in prohibit_argmatch_without_use check
4350         This rule would mistakenly report that argmatch.h is included without
4351         use even when both the argmatch and invalid_arg macro were used.
4352         * top/maint.mk (sc_prohibit_argmatch_without_use): Also detect uses
4353         of argmatch and invalid_arg.
4354
4355 2011-07-03  Bruno Haible  <bruno@clisp.org>
4356
4357         Comments about EINTR.
4358         * lib/safe-read.h: Explain the purpose of this module.
4359         * lib/safe-write.h: Likewise.
4360         * doc/posix-functions/read.texi: Mention EINTR and the 'safe-read'
4361         module.
4362         * doc/posix-functions/write.texi: Mention EINTR and the 'safe-write'
4363         module.
4364         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
4365
4366 2011-06-30  Paul Eggert  <eggert@cs.ucla.edu>
4367
4368         xnanosleep: Rewrite to use new dtotimespec module.
4369         It has the conversion code that used to be in xnanosleep.
4370         * lib/xnanosleep.c: Do not include limits.h, stdbool.h, stdio.h,
4371         assert.h, sys/types.h, or intprops.h.  Include timespec.h instead.
4372         (TIME_T_MAX): Remove.
4373         (xnanosleep): Rewrite in terms of dtotimespec.
4374         * modules/xnanosleep (Depends-on): Add dtotimespec.
4375         Remove intprops, stdbool.
4376
4377         timespec-add, timespec-sub: new modules
4378         * lib/timespec.h (timespec_add, timespec_sub): New decls.
4379         * lib/timespec-add.c, lib/timespec-sub.c:
4380         * modules/timespec-add, modules/timespec-sub: New files.
4381
4382         dtotimespec: new module
4383         * lib/timespec.h (dtotimespec): New decl.
4384         * lib/dtotimespec.c, modules/dtotimespec: New files.
4385
4386         * lib/timespec.h (timespec_sign, timespectod): New inline functions.
4387
4388         pselect: new module
4389         * lib/sys_select.in.h: Include <signal.h>, for 'sigset_t'.
4390         (pselect): New decls.
4391         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Require AC_C_RESTRICT,
4392         since the standard pselect decl uses 'restrict'.
4393         (gl_SYS_SELECT_H_DEFAULTS): Add defaults for GNULIB_PSELECT,
4394         HAVE_PSELECT, REPLACE_PSELECT.
4395         * modules/sys_select (sys/select.h): Substitute GNULIB_PSELECT,
4396         HAVE_PSELECT, REPLACE_PSELECT.
4397         * lib/pselect.c, m4/pselect.m4, modules/pselect: New files.
4398
4399         sys_select: don't depend on sys_socket
4400         This is so that Emacs doesn't have to drag in m4/sockpfaf.m4 etc; see
4401         <http://lists.gnu.org/archive/html/bug-gnulib/2011-06/msg00358.html>.
4402         This fix works on GNU and GNU-like platforms, but has not been tested
4403         on native Windows.
4404         * lib/sys_select.in.h: Include <sys/socket.h> only if native Windows.
4405         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Do not require
4406         gl_HEADER_SYS_SOCKET.
4407         * modules/sys_select (Files): Add m4/sys_socket_h.m4, for
4408         gl_PREREQ_SYS_H_WINSOCK2.
4409
4410 2011-06-29  Eric Blake  <eblake@redhat.com>
4411
4412         pipe2: fix C89 compile problem
4413         * lib/pipe2.c (pipe2): Avoid C99 array initialization.
4414         Reported by Bruno Haible.
4415
4416         pipe, pipe2: don't corrupt fd on error
4417         * lib/pipe.c (pipe): Leave fd unchanged on error.
4418         * lib/pipe2.c (pipe2): Likewise.
4419         * doc/posix-functions/pipe.texi (pipe): Document cygwin issue.
4420         * doc/glibc-functions/pipe2.texi (pipe2): Likewise.
4421
4422 2011-06-27  Paolo Bonzini  <bonzini@gnu.org>
4423
4424         mmap-anon: do not use regular expressions inadvertently
4425         * m4/mmap-anon.m4: Remove trailing period from strings sought
4426         in the output.
4427
4428 2011-06-25  Paul Eggert  <eggert@cs.ucla.edu>
4429
4430         nanosleep: fix integer overflow problem
4431         * lib/nanosleep.c (my_usleep): Don't assume signed integer
4432         arithmetic wraps around on overflow.
4433
4434         nanosleep: simplify carrying
4435         * lib/nanosleep.c (nanosleep): Use the requested tv_nsec for the
4436         first call to the underyling nanosleep, not for the last one.
4437         This doesn't fix any bugs, but it simplifies the computation of
4438         the remaining delay.  Found while auditing integer overflow issues.
4439
4440         dup2: remove test for existence of fcntl
4441         * m4/dup2.m4 (gl_FUNC_DUP2): Use "#ifdef FD_CLOEXEC", not
4442         "#if HAVE_FCNTL", in the configure-time test program.
4443         This removes the need for the AC_CHECK_FUNCS_ONCE([fcntl]),
4444         and therefore speeds up "configure" a bit.  Found while
4445         adding the dup2 module to Emacs.
4446
4447 2011-06-24  Eric Blake  <eblake@redhat.com>
4448
4449         maint.mk: enhance useless header checks
4450         * top/maint.mk (_sc_header_without_use): Check both include
4451         styles.
4452         (sc_prohibit_assert_without_use)
4453         (sc_prohibit_close_stream_without_use)
4454         (sc_prohibit_getopt_without_use)
4455         (sc_prohibit_quotearg_without_use)
4456         (sc_prohibit_quote_without_use)
4457         (sc_prohibit_long_options_without_use)
4458         (sc_prohibit_inttostr_without_use)
4459         (sc_prohibit_ignore_value_without_use)
4460         (sc_prohibit_error_without_use, sc_prohibit_xalloc_without_use)
4461         (sc_prohibit_hash_without_use, sc_prohibit_cloexec_without_use)
4462         (sc_prohibit_posixver_without_use, sc_prohibit_same_without_use)
4463         (sc_prohibit_hash_pjw_without_use)
4464         (sc_prohibit_safe_read_without_use)
4465         (sc_prohibit_argmatch_without_use)
4466         (sc_prohibit_canonicalize_without_use)
4467         (sc_prohibit_root_dev_ino_without_use)
4468         (sc_prohibit_openat_without_use)
4469         (sc_prohibit_c_ctype_without_use)
4470         (sc_prohibit_signal_without_use)
4471         (sc_prohibit_stdio--_without_use)
4472         (sc_prohibit_stdio-safer_without_use)
4473         (sc_prohibit_strings_without_use)
4474         (sc_prohibit_intprops_without_use)
4475         (sc_prohibit_stddef_without_use)
4476         (sc_prohibit_xfreopen_without_use): Update clients.
4477
4478 2011-06-24  Jim Meyering  <meyering@redhat.com>
4479
4480         syntax-check: keep one maint.mk rule in sync with its header
4481         * Makefile (sc_check_sym_list): Add a rule to prevent a repeat
4482         of the bug Eric has just fixed, with today's commit 25e4c2ec.
4483         I prefer to avoid temporary files here, so use <(...), but that
4484         is not supported by /bin/sh, so...
4485         (SHELL): Define to /bin/bash.
4486
4487 2011-06-24  Eric Blake  <eblake@redhat.com>
4488
4489         maint.mk: update sc_prohibit_intprops_without_use
4490         * top/maint.mk (_intprops_names): Match recent changes.
4491
4492 2011-06-24  Bruno Haible  <bruno@clisp.org>
4493
4494         strerror-override: No-op tweak.
4495         * lib/strerror-override.h (strerror_override): Reorder conditions,
4496         for consistency with lib/strerror-override.c.
4497
4498 2011-06-23  Eric Blake  <eblake@redhat.com>
4499
4500         maint.mk: test further PATH_MAX issues
4501         * top/maint.mk (sc_prohibit_path_max_array): Rename...
4502         (sc_prohibit_path_max_allocation): ...and also test alloca.
4503         Suggested by Jim Meyering.
4504
4505 2011-06-22  Eric Blake  <eblake@redhat.com>
4506
4507         maint.mk: add syntax-check to avoid char[PATH_MAX]
4508         * top/maint.mk (sc_prohibit_path_max_array): New rule.
4509
4510         stat: be robust to PATH_MAX definition
4511         * lib/stat.c (rpl_stat): Require reasonable PATH_MAX.
4512         * modules/stat (Depends-on): Add verify.
4513
4514         link: work around IRIX bug
4515         * m4/link.m4 (gl_FUNC_LINK): Expose the bug.
4516         * lib/link.c (rpl_link): Work around it.
4517         * tests/test-link.h (test_link): Enhance test.
4518         * doc/posix-functions/link.texi (link): Document the bug.
4519
4520         getopt: silence clang warning
4521         * lib/getopt.c (_getopt_internal_r): Avoid unlikely NULL
4522         dereference.
4523         Reported by Gustavo Martin Domato.
4524
4525 2011-06-22  Jim Meyering  <meyering@redhat.com>
4526
4527         bootstrap: do not insert a blank line into each .gitignore file
4528         * build-aux/bootstrap (sort_patterns): Filter out blank lines.
4529
4530 2011-06-21  Eric Blake  <eblake@redhat.com>
4531
4532         perror: test for output mismatch
4533         * m4/perror.m4 (gl_FUNC_PERROR): Add test, in order to replace
4534         perror on IRIX.
4535
4536         strerror_r: fix OpenBSD behavior on out-of-range
4537         * lib/strerror_r.c (strerror_r): Always use maximal string.
4538         * doc/posix-functions/strerror_r.texi (strerror_r): Document it.
4539
4540         strerror_r: fix OpenBSD behavior on 0
4541         * lib/strerror-override.c (strerror_override): Also override 0
4542         when needed.
4543         * lib/strerror-override.h (strerror_override): Likewise.
4544         * lib/strerror.c (strerror): Simplify, now that 0 override is done
4545         earlier.
4546         * lib/strerror_r.c (strerror_r): Likewise.
4547         * m4/strerror.m4 (gl_FUNC_STRERROR): Split detection of 0
4548         behavior...
4549         (gl_FUNC_STRERROR_0): ...into new macro.
4550         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Replace strerror_r if 0
4551         is overridden.
4552         (gl_FUNC_STRERROR_R_WORKS): Avoid extra tests if 0 is broken.
4553         * modules/strerror-override (Files): Add strerror.m4.
4554         (configure.ac): Also provide override for 0 when needed.
4555         * doc/posix-functions/strerror.texi (strerror): Document this.
4556         * doc/posix-functions/perror.texi (perror): Likewise.
4557
4558         perror: adjust array size
4559         * modules/perror (Depends-on): Add strerror-override.
4560         * lib/perror.c (perror): Use it to avoid magic number.
4561
4562         strerror-override: reduce size
4563         * lib/strerror-override.c (strerror_override): Use fewer lines.
4564
4565 2011-06-20  Bruno Haible  <bruno@clisp.org>
4566
4567         pathmax: Ensure correct value for PATH_MAX on HP-UX.
4568         * lib/pathmax.h (PATH_MAX) [HP-UX]: Define to 1024.
4569
4570 2011-06-20  Paul Eggert  <eggert@cs.ucla.edu>
4571
4572         alloca: port to compilers that can optimize like GCC 4.6.0
4573         * lib/alloca.c (find_stack_direction): New signature, taken from
4574         Autoconf git.  This works with GCC 4.6.0.  This code should never
4575         be used with GCC 4.6.0 itself, as GCC has alloca, but it might
4576         be used with other compilers that optimize as well as GCC 4.6.0 does.
4577         (alloca): Adjust to new signature.
4578         * m4/alloca.m4 (__AC_LIBOBJ_ALLOCA) [Autoconf version < 2.69]:
4579         New macro, which patches Autoconf in a similar way.
4580
4581         c-stack: stop worrying about stack direction
4582         * lib/c-stack.c (find_stack_direction): Remove.
4583         (segv_handler): Don't worry about stack direction growth, as it's
4584         too much of a pain to configure this correctly, given how compilers
4585         are optimizing-away our stack-growth detection code.  Instead, assume
4586         that any access to just before or just after the stack is OK.
4587         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC):
4588         Don't require AC_FUNC_ALLOCA; no longer needed.
4589
4590 2011-06-20  Eric Blake  <eblake@redhat.com>
4591
4592         test-stat: don't allocate PATH_MAX bytes
4593         * tests/test-stat.h (test_stat_func): Don't stack-allocate a
4594         PATH_MAX-sized buffer.
4595         * modules/openat-tests (Depends-on): Add getcwd-lgpl, drop pathmax.
4596         * modules/stat-tests (Depends-on): Likewise.
4597         * tests/test-fstatat.c (includes): Drop pathmax.h.
4598         * tests/test-stat.c (includes): Likewise.
4599         Reported by Bruno Haible.
4600
4601 2011-06-20  Bruno Haible  <bruno@clisp.org>
4602
4603         float: Work around <float.h> bugs on FreeBSD/x86, AIX with GCC, IRIX.
4604         * lib/float.in.h: Add workarounds for FreeBSD/x86, AIX with GCC, IRIX.
4605         * lib/float.c: New file.
4606         * m4/float_h.m4 (gl_FLOAT_H): Also handle FreeBSD, AIX, IRIX. Set
4607         REPLACE_FLOAT_LDBL.
4608         * modules/float (Files): Add lib/float.c.
4609         (configure.ac): Invoke AC_LIBOBJ.
4610         * doc/posix-headers/float.texi: Mention problems on FreeBSD, AIX, IRIX.
4611
4612 2011-06-20  Bruno Haible  <bruno@clisp.org>
4613
4614         Tests for module 'float'.
4615         * modules/float-tests: New file.
4616         * tests/test-float.c: New file.
4617
4618 2011-06-19  Bruno Haible  <bruno@clisp.org>
4619
4620         isinf: Coding style.
4621         * lib/isinf.c: Use GNU coding style.
4622
4623 2011-06-19  Bruno Haible  <bruno@clisp.org>
4624
4625         linkat test: Avoid test failure on AIX 7.1.
4626         * tests/test-linkat.c (main): Allow EINVAL as alternate error value.
4627         * tests/test-link.h (test_link): Likewise.
4628
4629 2011-06-19  Bruno Haible  <bruno@clisp.org>
4630
4631         pread test: Avoid test failure on OpenBSD 4.9.
4632         * tests/test-pread.c (main): Allow EFBIG instead of EINBAL.
4633
4634 2011-06-19  Bruno Haible  <bruno@clisp.org>
4635
4636         sprintf-posix: Fix test failure on AIX 7.1.
4637         * m4/printf.m4 (gl_PRINTF_PRECISION): Test against AIX bug.
4638         * doc/posix-functions/dprintf.texi: Mention limited precision problem
4639         on AIX.
4640         * doc/posix-functions/fprintf.texi: Likewise.
4641         * doc/posix-functions/printf.texi: Likewise.
4642         * doc/posix-functions/snprintf.texi: Likewise.
4643         * doc/posix-functions/sprintf.texi: Likewise.
4644         * doc/posix-functions/vdprintf.texi: Likewise.
4645         * doc/posix-functions/vfprintf.texi: Likewise.
4646         * doc/posix-functions/vprintf.texi: Likewise.
4647         * doc/posix-functions/vsnprintf.texi: Likewise.
4648         * doc/posix-functions/vsprintf.texi: Likewise.
4649
4650 2011-06-19  Bruno Haible  <bruno@clisp.org>
4651
4652         roundl-ieee: Fix test failure on AIX 7.1.
4653         * m4/roundl.m4 (gl_FUNC_ROUNDL): Test also the sign of roundl (-0.3L).
4654         * doc/posix-functions/roundl.texi: Mention problem with negative
4655         arguments.
4656
4657 2011-06-19  Bruno Haible  <bruno@clisp.org>
4658
4659         round-ieee: Fix test failures on AIX 7.1 and OSF/1 5.1.
4660         * modules/round-ieee (Depends-on): Add floor-ieee, ceil-ieee.
4661         * doc/posix-functions/round.texi: Mention problem with negative
4662         arguments.
4663         * doc/posix-functions/ceil.texi: Mention problem on OSF/1 5.1.
4664
4665 2011-06-19  Bruno Haible  <bruno@clisp.org>
4666
4667         roundf-ieee: Fix test failures on AIX 7.1 and OSF/1 5.1.
4668         * m4/roundf.m4 (gl_FUNC_ROUNDF): Test also the sign of roundf (-0.3f).
4669         * modules/roundf-ieee (Depends-on): Add floorf-ieee, ceilf-ieee.
4670         * doc/posix-functions/roundf.texi: Mention problem with negative
4671         arguments.
4672         * doc/posix-functions/ceilf.texi: Mention problem on OSF/1 5.1.
4673
4674 2011-06-19  Bruno Haible  <bruno@clisp.org>
4675
4676         ceilf-ieee: Work around bug on MacOS X 10.5.
4677         * doc/posix-functions/ceilf.texi: Mention the MacOS X 10.5 problem.
4678
4679         floor*-ieee, ceil*-ieee, trunc*-ieee, round*-ieee: More robust checks.
4680         * m4/floorf.m4 (gl_FUNC_FLOORF): In the test whether the function is
4681         IEEE compliant, avoid compiler optimizations.
4682         * m4/floor.m4 (gl_FUNC_FLOOR): Likewise.
4683         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
4684         * m4/ceil.m4 (gl_FUNC_CEIL): Likewise.
4685         * m4/ceill.m4 (gl_FUNC_CEILL): Likewise.
4686         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
4687         * m4/trunc.m4 (gl_FUNC_TRUNC): Likewise.
4688         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
4689         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
4690         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
4691         * m4/roundl.m4 (gl_FUNC_ROUNDL): Likewise.
4692
4693 2011-06-19  Bruno Haible  <bruno@clisp.org>
4694
4695         ceilf-ieee: Work around bug on AIX 7.1.
4696         * m4/ceilf.m4 (gl_FUNC_CEILF): Test also the sign of ceilf (-0.3f).
4697         * doc/posix-functions/ceilf.texi: Mention the AIX 7.1 problem.
4698
4699 2011-06-19  Bruno Haible  <bruno@clisp.org>
4700
4701         ceil-ieee: Work around bug on AIX 7.1.
4702         * m4/ceil.m4 (gl_FUNC_CEIL): Test also the sign of ceil (-0.3).
4703         * doc/posix-functions/ceil.texi: Mention the AIX 7.1 problem.
4704
4705 2011-06-18  Bruno Haible  <bruno@clisp.org>
4706
4707         fsync test: Avoid test failure on MacOS X and AIX.
4708         * tests/test-fsync.c (fsync): Allow ENOTSUP and EBADF instead of
4709         EINVAL.
4710
4711 2011-06-18  Bruno Haible  <bruno@clisp.org>
4712
4713         openat, fdopendir tests: Fix link errors.
4714         * modules/openat-tests (Depends-on): Add progname.
4715         * modules/fdopendir-tests (Depends-on): Likewise.
4716         * tests/test-fchownat.c: Include progname.h.
4717         (main): Call set_program_name.
4718         * tests/test-fstatat.c: Include progname.h.
4719         (main): Call set_program_name.
4720         * tests/test-mkdirat.c: Include progname.h.
4721         (main): Call set_program_name.
4722         * tests/test-openat.c: Include progname.h.
4723         (main): Call set_program_name.
4724         * tests/test-unlinkat.c: Include progname.h.
4725         (main): Call set_program_name.
4726         * tests/test-fdopendir.c: Include progname.h.
4727         (main): Call set_program_name.
4728
4729 2011-06-18  Bruno Haible  <bruno@clisp.org>
4730
4731         Doc update.
4732         * doc/posix-functions/pthread_attr_getstack.texi: Update info regarding
4733         HP-UX.
4734         * doc/posix-functions/pthread_attr_setstack.texi: Likewise.
4735
4736 2011-06-18  Bruno Haible  <bruno@clisp.org>
4737
4738         getcwd tests: Avoid compilation error on HP-UX 11.31.
4739         * modules/getcwd-tests (Depends-on): Add pathmax.
4740         * tests/test-getcwd.c: Include pathmax.h.
4741
4742 2011-06-18  Bruno Haible  <bruno@clisp.org>
4743
4744         isfinite, isinf: Fix link error on AIX 6 and 7.
4745         * m4/isfinite.m4 (gl_ISFINITE): When determining whether libm is
4746         needed, also test the macro with a 'float' argument.
4747         * m4/isinf.m4 (gl_ISINF): Likewise.
4748
4749 2011-06-18  Bruno Haible  <bruno@clisp.org>
4750
4751         getloadavg: Don't clobber LIBS. Regression from previous commit.
4752         * m4/getloadavg.m4 (gl_PREREQ_GETLOADAVG): Move tests that use
4753         AC_CHECK_LIB from here...
4754         (gl_GETLOADAVG): ... to here, inside the experiment with LIBS.
4755         (gl_GETLOADAVG, gl_PREREQ_GETLOADAVG): Rename gl_have_func to
4756         gl_func_getloadavg_done.
4757         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
4758
4759 2011-06-18  Bruno Haible  <bruno@clisp.org>
4760
4761         clean-temp: Improve documentation.
4762         * lib/clean-temp.h: Explain better how to use this module.
4763         Reported by John Darrington <john@darrington.wattle.id.au>.
4764
4765 2011-06-17  Bruno Haible  <bruno@clisp.org>
4766
4767         pread, pwrite: Avoid cc warning on AIX.
4768         * lib/unistd.in.h (pread): Undefine before defining as a macro.
4769         (pwrite): Likewise.
4770
4771 2011-06-17  Bruno Haible  <bruno@clisp.org>
4772
4773         spawn-pipe tests: Fix link error.
4774         * tests/test-spawn-pipe-child.c: Undefine fprintf.
4775         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
4776
4777 2011-06-17  Bruno Haible  <bruno@clisp.org>
4778
4779         Tests: Remove unnecessary dependency.
4780         * modules/canonicalize-tests (Depends-on): Remove progname.
4781         * modules/chown-tests (Depends-on): Likewise.
4782         * modules/dirname-tests (Depends-on): Likewise.
4783         * modules/fdopendir-tests (Depends-on): Likewise.
4784         * modules/fdutimensat-tests (Depends-on): Likewise.
4785         * modules/hash-tests (Depends-on): Likewise.
4786         * modules/lchown-tests (Depends-on): Likewise.
4787         * modules/linkat-tests (Depends-on): Likewise.
4788         * modules/renameat-tests (Depends-on): Likewise.
4789         * modules/spawn-pipe-tests (Depends-on): Likewise.
4790         * modules/utimensat-tests (Depends-on): Likewise.
4791
4792 2011-06-17  Bruno Haible  <bruno@clisp.org>
4793
4794         spawn-pipe tests: Fix link error.
4795         * tests/test-spawn-pipe-child.c: Undefine fflush.
4796
4797 2011-06-17  Bruno Haible  <bruno@clisp.org>
4798
4799         Fix tests link errors.
4800         * modules/ceil-ieee-tests (Makefile.am): Use CEIL_LIBM, not FLOOR_LIBM.
4801         * modules/chown-tests (Makefile.am): Don't link test-chown with
4802         LIBINTL.
4803         * modules/lchown-tests (Makefile.am): Don't link test-lchown with
4804         LIBINTL.
4805         * modules/utimens-tests (Makefile.am): Don't link test-utimens with
4806         LIBINTL.
4807         * modules/futimens-tests (Makefile.am): Don't link test-futimens with
4808         LIBINTL.
4809
4810 2011-06-16  Bruno Haible  <bruno@clisp.org>
4811
4812         crypto/gc-sha1: Fix recent regression.
4813         * modules/crypto/gc-sha1 (configure.ac): Invoke AC_LIBOBJ here.
4814         * m4/gc-sha1.m4 (gl_GC_SHA1): Don't invoke gl_SHA1.
4815
4816         crypto/gc-md5: Fix recent regression.
4817         * modules/crypto/gc-md5 (configure.ac): Invoke AC_LIBOBJ here.
4818
4819         crypto/gc-md4: Fix recent regression.
4820         * modules/crypto/gc-md4 (configure.ac): Invoke AC_LIBOBJ here.
4821         * m4/md4.m4 (gl_MD4): Ensure the expansion is non-empty.
4822
4823         crypto/gc-arctwo: Fix recent regression.
4824         * modules/crypto/gc-arctwo (configure.ac): Invoke AC_LIBOBJ here.
4825         * m4/arctwo.m4 (gl_ARCTWO): Ensure the expansion is non-empty.
4826
4827         crypto/gc-rijndael: Fix recent regression.
4828         * modules/crypto/gc-rijndael (Files): Remove m4/rijndael.m4.
4829         (configure.ac): Invoke AC_LIBOBJ here.
4830         * m4/gc-rijndael.m4 (gl_GC_RIJNDAEL): Don't invoke gl_RIJNDAEL.
4831         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
4832
4833         crypto/gc-hmac-sha1: Fix recent regression.
4834         * modules/crypto/gc-hmac-sha1 (Files): Remove m4/hmac-sha1.m4.
4835         (configure.ac): Invoke AC_LIBOBJ here.
4836         * m4/gc-hmac-sha1.m4 (gl_GC_HMAC_SHA1): Don't invoke gl_HMAC_SHA1.
4837         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
4838
4839         crypto/gc-hmac-md5: Fix recent regression.
4840         * modules/crypto/gc-hmac-md5 (Files): Remove m4/hmac-md5.m4.
4841         (configure.ac): Invoke AC_LIBOBJ here.
4842         * m4/gc-hmac-md5.m4 (gl_GC_HMAC_MD5): Don't invoke gl_HMAC_MD5.
4843         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
4844
4845         crypto/gc-des: Fix recent regression.
4846         * modules/crypto/gc-des (Files): Remove m4/des.m4.
4847         (configure.ac): Invoke AC_LIBOBJ here.
4848         * m4/gc-des.m4 (gl_GC_DES): Don't invoke gl_DES.
4849         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
4850
4851         crypto/gc-arcfour: Fix recent regression.
4852         * modules/crypto/gc-arcfour (Files): Remove m4/arcfour.m4.
4853         (configure.ac): Invoke AC_LIBOBJ here.
4854         * m4/gc-arcfour.m4 (gl_GC_ARCFOUR): Don't invoke gl_ARCFOUR.
4855         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
4856
4857 2011-06-16  Paul Eggert  <eggert@cs.ucla.edu>
4858
4859         * m4/lstat.m4 (gl_FUNC_LSTAT): Fix typo in prerequisite.
4860         After the 2011-05-21 change, this macro requires
4861         gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK, not
4862         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
4863
4864 2011-06-16  Bruno Haible  <bruno@clisp.org>
4865
4866         fprintftime: Move AC_LIBOBJ invocations to module description.
4867         * m4/fprintftime.m4: Remove file.
4868         * modules/fprintftime (Files): Remove m4/fprintftime.m4.
4869         (configure.ac): Remove gl_FPRINTFTIME call.
4870         (Makefile.am): Augment lib_SOURCES.
4871         Reported by Jim Meyering.
4872
4873 2011-06-16  Bruno Haible  <bruno@clisp.org>
4874
4875         tmpfile-safer: Finish 2011-05-23 commit.
4876         * m4/stdio-safer.m4: Really remove file.
4877         Reported by Jim Meyering.
4878
4879 2011-06-16  Bruno Haible  <bruno@clisp.org>
4880
4881         syntax-check: Fix typo.
4882         * Makefile (allow_AC_LIBOBJ): Mention printf-posix-rpl.m4, not
4883         printf-posix.m4.
4884         Reported by Jim Meyering.
4885
4886 2011-06-13  Jim Meyering  <meyering@redhat.com>
4887
4888         syntax-check: add a rule to help enforce the no-AC_LIBOBJ-in-m4/ policy
4889         * Makefile (sc_prohibit_AC_LIBOBJ_in_m4): New rule.
4890
4891 2011-05-23  Bruno Haible  <bruno@clisp.org>
4892
4893         yesno: Move AC_LIBOBJ invocations to module description.
4894         * m4/yesno.m4 (gl_YESNO): Remove AC_LIBOBJ invocation.
4895         * modules/yesno (Makefile.am): Augment lib_SOURCES.
4896
4897 2011-05-23  Bruno Haible  <bruno@clisp.org>
4898
4899         xstrtol: Move AC_LIBOBJ invocations to module description.
4900         * m4/xstrtol.m4 (gl_XSTRTOL): Remove AC_LIBOBJ invocations.
4901         * modules/xstrtol (Makefile.am): Augment lib_SOURCES.
4902
4903 2011-05-23  Bruno Haible  <bruno@clisp.org>
4904
4905         xstrtold: Move AC_LIBOBJ invocations to module description.
4906         * m4/xstrtod.m4 (gl_XSTRTOLD): Remove AC_LIBOBJ invocation.
4907         * modules/xstrtold (Makefile.am): Augment lib_SOURCES.
4908
4909 2011-05-23  Bruno Haible  <bruno@clisp.org>
4910
4911         xstrtod: Move AC_LIBOBJ invocations to module description.
4912         * m4/xstrtod.m4 (gl_XSTRTOD): Remove AC_LIBOBJ invocation.
4913         * modules/xstrtod (Makefile.am): Augment lib_SOURCES.
4914
4915 2011-05-23  Bruno Haible  <bruno@clisp.org>
4916
4917         xnanosleep: Move AC_LIBOBJ invocations to module description.
4918         * m4/xnanosleep.m4 (gl_XNANOSLEEP): Remove AC_LIBOBJ invocation.
4919         * modules/xnanosleep (Makefile.am): Augment lib_SOURCES.
4920
4921 2011-05-23  Bruno Haible  <bruno@clisp.org>
4922
4923         xgetcwd: Move AC_LIBOBJ invocations to module description.
4924         * m4/xgetcwd.m4 (gl_XGETCWD): Remove AC_LIBOBJ invocation.
4925         * modules/xgetcwd (Makefile.am): Augment lib_SOURCES.
4926
4927 2011-05-23  Bruno Haible  <bruno@clisp.org>
4928
4929         xalloc: Move AC_LIBOBJ invocations to module description.
4930         * m4/xalloc.m4 (gl_XALLOC): Remove AC_LIBOBJ invocation.
4931         * modules/xalloc (Makefile.am): Augment lib_SOURCES.
4932
4933 2011-05-23  Bruno Haible  <bruno@clisp.org>
4934
4935         write-any-file: Move AC_LIBOBJ invocations to module description.
4936         * m4/write-any-file.m4 (gl_WRITE_ANY_FILE): Remove AC_LIBOBJ
4937         invocation.
4938         * modules/write-any-file (Makefile.am): Augment lib_SOURCES.
4939
4940 2011-05-23  Bruno Haible  <bruno@clisp.org>
4941
4942         utimens: Move AC_LIBOBJ invocations to module description.
4943         * m4/utimens.m4 (gl_UTIMENS): Remove AC_LIBOBJ invocation.
4944         * modules/utimens (Makefile.am): Augment lib_SOURCES.
4945
4946 2011-05-23  Bruno Haible  <bruno@clisp.org>
4947
4948         utimecmp: Move AC_LIBOBJ invocations to module description.
4949         * m4/utimecmp.m4 (gl_UTIMECMP): Remove AC_LIBOBJ invocation.
4950         * modules/utimecmp (Makefile.am): Augment lib_SOURCES.
4951
4952 2011-05-23  Bruno Haible  <bruno@clisp.org>
4953
4954         userspec: Move AC_LIBOBJ invocations to module description.
4955         * m4/userspec.m4 (gl_USERSPEC): Remove AC_LIBOBJ invocation.
4956         * modules/userspec (Makefile.am): Augment lib_SOURCES.
4957
4958 2011-05-23  Bruno Haible  <bruno@clisp.org>
4959
4960         unlinkdir: Move AC_LIBOBJ invocations to module description.
4961         * m4/unlinkdir.m4 (gl_UNLINKDIR): Remove AC_LIBOBJ invocation.
4962         * modules/unlinkdir (Makefile.am): Augment lib_SOURCES.
4963
4964 2011-05-23  Bruno Haible  <bruno@clisp.org>
4965
4966         unistd-safer: Move AC_LIBOBJ invocations to module description.
4967         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Remove AC_LIBOBJ invocations.
4968         * modules/unistd-safer (Makefile.am): Augment lib_SOURCES.
4969
4970 2011-05-23  Bruno Haible  <bruno@clisp.org>
4971
4972         tempname: Move AC_LIBOBJ invocations to module description.
4973         * m4/tempname.m4 (gl_FUNC_GEN_TEMPNAME): Remove AC_LIBOBJ invocation.
4974         * modules/tempname (Makefile.am): Augment lib_SOURCES.
4975
4976 2011-05-23  Bruno Haible  <bruno@clisp.org>
4977
4978         strftime: Move AC_LIBOBJ invocations to module description.
4979         * m4/strftime.m4 (gl_FUNC_STRFTIME): Remove AC_LIBOBJ invocation.
4980         * modules/strftime (Makefile.am): Augment lib_SOURCES.
4981
4982 2011-05-23  Bruno Haible  <bruno@clisp.org>
4983
4984         stdlib-safer: Move AC_LIBOBJ invocations to module description.
4985         * m4/stdlib-safer.m4: Remove file.
4986         * modules/stdlib-safer (Files): Remove m4/stdlib-safer.m4.
4987         (configure.ac): Remove gl_STDLIB_SAFER call.
4988         (Makefile.am): Augment lib_SOURCES.
4989
4990 2011-05-23  Bruno Haible  <bruno@clisp.org>
4991
4992         tmpfile-safer: Move AC_LIBOBJ invocations to module description.
4993         * m4/stdio-safer.m4: Remove file.
4994         * modules/tmpfile-safer (Files): Remove m4/stdio-safer.m4.
4995         (configure.ac): Remove gl_TMPFILE_SAFER call.
4996         (Makefile.am): Augment lib_SOURCES.
4997
4998 2011-05-23  Bruno Haible  <bruno@clisp.org>
4999
5000         popen-safer: Move AC_LIBOBJ invocations to module description.
5001         * m4/stdio-safer.m4 (gl_POPEN_SAFER): Remove macro.
5002         * modules/popen-safer (Files): Remove m4/stdio-safer.m4.
5003         (configure.ac): Remove gl_POPEN_SAFER call.
5004         (Makefile.am): Augment lib_SOURCES.
5005
5006 2011-05-23  Bruno Haible  <bruno@clisp.org>
5007
5008         freopen-safer: Move AC_LIBOBJ invocations to module description.
5009         * m4/stdio-safer.m4 (gl_FREOPEN_SAFER): Remove macro.
5010         * modules/freopen-safer (Files): Remove m4/stdio-safer.m4.
5011         (configure.ac): Remove gl_FREOPEN_SAFER call.
5012         (Makefile.am): Augment lib_SOURCES.
5013
5014 2011-05-23  Bruno Haible  <bruno@clisp.org>
5015
5016         fopen-safer: Move AC_LIBOBJ invocations to module description.
5017         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Remove macro.
5018         * modules/fopen-safer (Files): Remove m4/stdio-safer.m4.
5019         (configure.ac): Remove gl_FOPEN_SAFER call.
5020         (Makefile.am): Augment lib_SOURCES.
5021
5022 2011-05-23  Bruno Haible  <bruno@clisp.org>
5023
5024         crypto/sha512: Move AC_LIBOBJ invocations to module description.
5025         * m4/sha512.m4 (gl_SHA512): Remove AC_LIBOBJ invocation.
5026         * modules/crypto/sha512 (Makefile.am): Augment lib_SOURCES.
5027
5028 2011-05-23  Bruno Haible  <bruno@clisp.org>
5029
5030         crypto/sha256: Move AC_LIBOBJ invocations to module description.
5031         * m4/sha256.m4 (gl_SHA256): Remove AC_LIBOBJ invocation.
5032         * modules/crypto/sha256 (Makefile.am): Augment lib_SOURCES.
5033
5034 2011-05-23  Bruno Haible  <bruno@clisp.org>
5035
5036         crypto/sha1: Move AC_LIBOBJ invocations to module description.
5037         * m4/sha1.m4 (gl_SHA1): Remove AC_LIBOBJ invocation.
5038         * modules/crypto/sha1 (Makefile.am): Augment lib_SOURCES.
5039
5040 2011-05-23  Bruno Haible  <bruno@clisp.org>
5041
5042         settime: Move AC_LIBOBJ invocations to module description.
5043         * m4/settime.m4 (gl_SETTIME): Remove AC_LIBOBJ invocation.
5044         * modules/settime (Makefile.am): Augment lib_SOURCES.
5045
5046 2011-05-23  Bruno Haible  <bruno@clisp.org>
5047
5048         savedir: Move AC_LIBOBJ invocations to module description.
5049         * m4/savedir.m4 (gl_SAVEDIR): Remove AC_LIBOBJ invocation.
5050         * modules/savedir (Makefile.am): Augment lib_SOURCES.
5051
5052 2011-05-23  Bruno Haible  <bruno@clisp.org>
5053
5054         save-cwd: Move AC_LIBOBJ invocations to module description.
5055         * m4/save-cwd.m4 (gl_SAVE_CWD): Remove AC_LIBOBJ invocation.
5056         * modules/save-cwd (Makefile.am): Augment lib_SOURCES.
5057
5058 2011-05-23  Bruno Haible  <bruno@clisp.org>
5059
5060         same: Move AC_LIBOBJ invocations to module description.
5061         * m4/same.m4 (gl_SAME): Remove AC_LIBOBJ invocation.
5062         * modules/same (Makefile.am): Augment lib_SOURCES.
5063
5064 2011-05-23  Bruno Haible  <bruno@clisp.org>
5065
5066         safe-write: Move AC_LIBOBJ invocations to module description.
5067         * m4/safe-write.m4 (gl_SAFE_WRITE): Remove macro.
5068         * modules/safe-write (configure.ac): Invoke gl_PREREQ_SAFE_WRITE
5069         instead of gl_SAFE_WRITE.
5070         (Makefile.am): Augment lib_SOURCES.
5071
5072 2011-05-23  Bruno Haible  <bruno@clisp.org>
5073
5074         safe-read: Move AC_LIBOBJ invocations to module description.
5075         * m4/safe-read.m4 (gl_SAFE_READ): Remove macro.
5076         * modules/safe-read (configure.ac): Invoke gl_PREREQ_SAFE_READ instead
5077         of gl_SAFE_READ.
5078         (Makefile.am): Augment lib_SOURCES.
5079
5080 2011-05-23  Bruno Haible  <bruno@clisp.org>
5081
5082         safe-alloc: Move AC_LIBOBJ invocations to module description.
5083         * m4/safe-alloc.m4 (gl_SAFE_ALLOC): Remove AC_LIBOBJ invocation.
5084         * modules/safe-alloc (Makefile.am): Augment lib_SOURCES.
5085
5086 2011-05-23  Bruno Haible  <bruno@clisp.org>
5087
5088         crypto/rijndael: Move AC_LIBOBJ invocations to module description.
5089         * m4/rijndael.m4: Remove file.
5090         * modules/crypto/rijndael (Files): Remove it.
5091         (configure.ac): Remove gl_RIJNDAEL call.
5092         (Makefile.am): Augment lib_SOURCES.
5093
5094 2011-05-23  Bruno Haible  <bruno@clisp.org>
5095
5096         readtokens: Move AC_LIBOBJ invocations to module description.
5097         * m4/readtokens.m4 (gl_READTOKENS): Remove AC_LIBOBJ invocation.
5098         * modules/readtokens (Makefile.am): Augment lib_SOURCES.
5099
5100 2011-05-23  Bruno Haible  <bruno@clisp.org>
5101
5102         read-file: Move AC_LIBOBJ invocations to module description.
5103         * m4/read-file.m4 (gl_FUNC_READ_FILE): Remove macro.
5104         * modules/read-file (configure.ac): Invoke gl_PREREQ_READ_FILE instead
5105         of gl_FUNC_READ_FILE.
5106         (Makefile.am): Augment lib_SOURCES.
5107
5108 2011-05-23  Bruno Haible  <bruno@clisp.org>
5109
5110         quotearg: Move AC_LIBOBJ invocations to module description.
5111         * m4/quotearg.m4 (gl_QUOTEARG): Remove AC_LIBOBJ invocation.
5112         * modules/quotearg (Makefile.am): Augment lib_SOURCES.
5113
5114 2011-05-23  Bruno Haible  <bruno@clisp.org>
5115
5116         quote: Move AC_LIBOBJ invocations to module description.
5117         * m4/quote.m4 (gl_QUOTE): Remove AC_LIBOBJ invocation.
5118         * modules/quote (Makefile.am): Augment lib_SOURCES.
5119
5120 2011-05-23  Bruno Haible  <bruno@clisp.org>
5121
5122         posixver: Move AC_LIBOBJ invocations to module description.
5123         * m4/posixver.m4 (gl_POSIXVER): Remove AC_LIBOBJ invocation.
5124         * modules/posixver (Makefile.am): Augment lib_SOURCES.
5125
5126 2011-05-23  Bruno Haible  <bruno@clisp.org>
5127
5128         posixtm: Move AC_LIBOBJ invocations to module description.
5129         * m4/posixtm.m4 (gl_POSIXTM): Remove AC_LIBOBJ invocation.
5130         * modules/posixtm (Makefile.am): Augment lib_SOURCES.
5131
5132 2011-05-23  Bruno Haible  <bruno@clisp.org>
5133
5134         physmem: Move AC_LIBOBJ invocations to module description.
5135         * m4/physmem.m4 (gl_PHYSMEM): Remove AC_LIBOBJ invocation.
5136         * modules/physmem (Makefile.am): Augment lib_SOURCES.
5137
5138 2011-05-23  Bruno Haible  <bruno@clisp.org>
5139
5140         pagealign_alloc: Move AC_LIBOBJ invocations to module description.
5141         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC): Remove AC_LIBOBJ
5142         invocation.
5143         * modules/pagealign_alloc (Makefile.am): Augment lib_SOURCES.
5144
5145 2011-05-23  Bruno Haible  <bruno@clisp.org>
5146
5147         mpsort: Move AC_LIBOBJ invocations to module description.
5148         * m4/mpsort.m4 (gl_MPSORT): Remove AC_LIBOBJ invocation.
5149         * modules/mpsort (Makefile.am): Augment lib_SOURCES.
5150
5151 2011-05-23  Bruno Haible  <bruno@clisp.org>
5152
5153         modechange: Move AC_LIBOBJ invocations to module description.
5154         * m4/modechange.m4 (gl_MODECHANGE): Remove AC_LIBOBJ invocation.
5155         * modules/modechange (Makefile.am): Augment lib_SOURCES.
5156
5157 2011-05-23  Bruno Haible  <bruno@clisp.org>
5158
5159         mkdir-p: Move AC_LIBOBJ invocations to module description.
5160         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Remove AC_LIBOBJ invocations.
5161         * modules/mkdir-p (Makefile.am): Augment lib_SOURCES.
5162
5163 2011-05-23  Bruno Haible  <bruno@clisp.org>
5164
5165         mkancesdirs: Move AC_LIBOBJ invocations to module description.
5166         * m4/mkancesdirs.m4 (gl_MKANCESDIRS): Remove AC_LIBOBJ invocation.
5167         * modules/mkancesdirs (Makefile.am): Augment lib_SOURCES.
5168
5169 2011-05-23  Bruno Haible  <bruno@clisp.org>
5170
5171         mgetgroups: Move AC_LIBOBJ invocations to module description.
5172         * m4/mgetgroups.m4 (gl_MGETGROUPS): Remove AC_LIBOBJ invocation.
5173         * modules/mgetgroups (Makefile.am): Augment lib_SOURCES.
5174
5175 2011-05-23  Bruno Haible  <bruno@clisp.org>
5176
5177         memxor: Move AC_LIBOBJ invocations to module description.
5178         * m4/memxor.m4 (gl_MEMXOR): Remove AC_LIBOBJ invocation.
5179         * modules/memxor (Makefile.am): Augment lib_SOURCES.
5180
5181 2011-05-23  Bruno Haible  <bruno@clisp.org>
5182
5183         memcoll: Move AC_LIBOBJ invocations to module description.
5184         * m4/memcoll.m4 (gl_MEMCOLL): Remove AC_LIBOBJ invocation.
5185         * modules/memcoll (Makefile.am): Augment lib_SOURCES.
5186
5187 2011-05-23  Bruno Haible  <bruno@clisp.org>
5188
5189         memcasecmp: Move AC_LIBOBJ invocations to module description.
5190         * m4/memcasecmp.m4 (gl_MEMCASECMP): Remove AC_LIBOBJ invocation.
5191         * modules/memcasecmp (Makefile.am): Augment lib_SOURCES.
5192
5193 2011-05-23  Bruno Haible  <bruno@clisp.org>
5194
5195         crypto/md5: Move AC_LIBOBJ invocations to module description.
5196         * m4/md5.m4 (gl_MD5): Remove AC_LIBOBJ invocation.
5197         * modules/crypto/md5 (Makefile.am): Augment lib_SOURCES.
5198
5199 2011-05-23  Bruno Haible  <bruno@clisp.org>
5200
5201         crypto/md4: Move AC_LIBOBJ invocations to module description.
5202         * m4/md4.m4 (gl_MD4): Remove AC_LIBOBJ invocation.
5203         * modules/crypto/md4 (Makefile.am): Augment lib_SOURCES.
5204
5205 2011-05-23  Bruno Haible  <bruno@clisp.org>
5206
5207         crypto/md2: Move AC_LIBOBJ invocations to module description.
5208         * m4/md2.m4: Remove file.
5209         * modules/crypto/md2 (Files): Remove it.
5210         (configure.ac): Remove gl_MD2 call.
5211         (Makefile.am): Augment lib_SOURCES.
5212
5213 2011-05-23  Bruno Haible  <bruno@clisp.org>
5214
5215         long-options: Move AC_LIBOBJ invocations to module description.
5216         * m4/long-options.m4: Remove file.
5217         * modules/long-options (Files): Remove it.
5218         (configure.ac): Remove gl_LONG_OPTIONS call.
5219         (Makefile.am): Augment lib_SOURCES.
5220
5221 2011-05-23  Bruno Haible  <bruno@clisp.org>
5222
5223         i-ring: Move AC_LIBOBJ invocations to module description.
5224         * m4/i-ring.m4 (gl_I_RING): Remove AC_LIBOBJ invocation.
5225         * modules/i-ring (Makefile.am): Augment lib_SOURCES.
5226
5227 2011-05-23  Bruno Haible  <bruno@clisp.org>
5228
5229         idcache: Move AC_LIBOBJ invocations to module description.
5230         * m4/idcache.m4 (gl_IDCACHE): Remove AC_LIBOBJ invocation.
5231         * modules/idcache (Makefile.am): Augment lib_SOURCES.
5232
5233 2011-05-23  Bruno Haible  <bruno@clisp.org>
5234
5235         human: Move AC_LIBOBJ invocations to module description.
5236         * m4/human.m4 (gl_HUMAN): Remove AC_LIBOBJ invocation.
5237         * modules/human (Makefile.am): Augment lib_SOURCES.
5238
5239 2011-05-23  Bruno Haible  <bruno@clisp.org>
5240
5241         crypto/hmac-sha1: Move AC_LIBOBJ invocations to module description.
5242         * m4/hmac-sha1.m4: Remove file.
5243         * modules/crypto/hmac-sha1 (Files): Remove it.
5244         (configure.ac): Remove gl_HMAC_SHA1 call.
5245         (Makefile.am): Augment lib_SOURCES.
5246
5247 2011-05-23  Bruno Haible  <bruno@clisp.org>
5248
5249         crypto/hmac-md5: Move AC_LIBOBJ invocations to module description.
5250         * m4/hmac-md5.m4: Remove file.
5251         * modules/crypto/hmac-md5 (Files): Remove it.
5252         (configure.ac): Remove gl_HMAC_MD5 call.
5253         (Makefile.am): Augment lib_SOURCES.
5254
5255 2011-05-23  Bruno Haible  <bruno@clisp.org>
5256
5257         hash: Move AC_LIBOBJ invocations to module description.
5258         * m4/hash.m4: Remove file.
5259         * modules/hash (Files): Remove it.
5260         (configure.ac): Remove gl_HASH call.
5261         (Makefile.am): Augment lib_SOURCES.
5262
5263 2011-05-23  Bruno Haible  <bruno@clisp.org>
5264
5265         hard-locale: Move AC_LIBOBJ invocations to module description.
5266         * m4/hard-locale.m4 (gl_HARD_LOCALE): Remove AC_LIBOBJ invocation.
5267         * modules/hard-locale (Makefile.am): Augment lib_SOURCES.
5268
5269 2011-05-23  Bruno Haible  <bruno@clisp.org>
5270
5271         getugroups: Move AC_LIBOBJ invocations to module description.
5272         * m4/getugroups.m4 (gl_GETUGROUPS): Remove AC_LIBOBJ invocation.
5273         * modules/getugroups (Makefile.am): Augment lib_SOURCES.
5274
5275 2011-05-23  Bruno Haible  <bruno@clisp.org>
5276
5277         gettime: Move AC_LIBOBJ invocations to module description.
5278         * m4/gettime.m4 (gl_GETTIME): Remove AC_LIBOBJ invocation.
5279         * modules/gettime (Makefile.am): Augment lib_SOURCES.
5280
5281 2011-05-23  Bruno Haible  <bruno@clisp.org>
5282
5283         getndelim2: Move AC_LIBOBJ invocations to module description.
5284         * m4/getndelim2.m4 (gl_GETNDELIM2): Remove AC_LIBOBJ invocation.
5285         * modules/getndelim2 (Makefile.am): Augment lib_SOURCES.
5286
5287 2011-05-23  Bruno Haible  <bruno@clisp.org>
5288
5289         crypto/gc-pbkdf2-sha1: Move AC_LIBOBJ invocations to module description.
5290         * m4/gc-pbkdf2-sha1.m4: Remove file.
5291         * modules/crypto/gc-pbkdf2-sha1 (Files): Remove it.
5292         (configure.ac): Remove gl_GC_PBKDF2_SHA1 call.
5293         (Makefile.am): Augment lib_SOURCES.
5294
5295 2011-05-23  Bruno Haible  <bruno@clisp.org>
5296
5297         fts: Move AC_LIBOBJ invocations to module description.
5298         * m4/fts.m4 (gl_FUNC_FTS_CORE): Move AC_LIBOBJ invocation from here...
5299         * modules/fts (configure.ac): ... to here.
5300
5301 2011-05-23  Bruno Haible  <bruno@clisp.org>
5302
5303         file-type: Move AC_LIBOBJ invocations to module description.
5304         * m4/file-type.m4: Remove file.
5305         * modules/file-type (Files): Remove it.
5306         (configure.ac): Remove gl_FILE_TYPE call.
5307         (Makefile.am): Augment lib_SOURCES.
5308
5309 2011-05-23  Bruno Haible  <bruno@clisp.org>
5310
5311         filenamecat*: Respect rules for use of AC_LIBOBJ.
5312         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT, gl_FILE_NAME_CONCAT_LGPL):
5313         Remove AC_LIBOBJ invocation.
5314         * modules/filenamecat (Makefile.am): Augment lib_SOURCES.
5315         * modules/filenamecat-lgpl (Makefile.am): Augment lib_SOURCES.
5316
5317 2011-05-23  Bruno Haible  <bruno@clisp.org>
5318
5319         filemode: Move AC_LIBOBJ invocations to module description.
5320         * m4/filemode.m4 (gl_FILEMODE): Remove AC_LIBOBJ invocation.
5321         * modules/filemode (Makefile.am): Augment lib_SOURCES.
5322
5323 2011-05-23  Bruno Haible  <bruno@clisp.org>
5324
5325         openat-safer: Move AC_LIBOBJ invocations to module description.
5326         * m4/fcntl-safer.m4 (gl_OPENAT_SAFER): Remove AC_LIBOBJ invocation.
5327         * modules/openat-safer (Makefile.am): Augment lib_SOURCES.
5328
5329 2011-05-23  Bruno Haible  <bruno@clisp.org>
5330
5331         fcntl-safer: Move AC_LIBOBJ invocations to module description.
5332         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Remove AC_LIBOBJ invocations.
5333         * modules/fcntl-safer (Makefile.am): Augment lib_SOURCES.
5334
5335 2011-05-23  Bruno Haible  <bruno@clisp.org>
5336
5337         exclude: Move AC_LIBOBJ invocations to module description.
5338         * m4/exclude.m4: Remove file.
5339         * modules/exclude (Files): Remove it.
5340         (configure.ac): Remove gl_EXCLUDE call.
5341         (Makefile.am): Augment lib_SOURCES.
5342
5343 2011-05-23  Bruno Haible  <bruno@clisp.org>
5344
5345         dirname*: Respect rules for use of AC_LIBOBJ.
5346         * m4/dirname.m4 (gl_DIRNAME, gl_DIRNAME_LGPL): Remove AC_LIBOBJ
5347         invocations.
5348         * modules/dirname (Makefile.am): Augment lib_SOURCES.
5349         * modules/dirname-lgpl (Makefile.am): Augment lib_SOURCES.
5350
5351 2011-05-23  Bruno Haible  <bruno@clisp.org>
5352
5353         dirent-safer: Move AC_LIBOBJ invocations to module description.
5354         * m4/dirent-safer.m4 (gl_DIRENT_SAFER): Remove AC_LIBOBJ invocation.
5355         * modules/dirent-safer (Makefile.am): Augment lib_SOURCES.
5356
5357 2011-05-23  Bruno Haible  <bruno@clisp.org>
5358
5359         crypto/des: Move AC_LIBOBJ invocations to module description.
5360         * m4/des.m4: Remove file.
5361         * modules/crypto/des (Files): Remove it.
5362         (configure.ac): Remove gl_DES call.
5363         (Makefile.am): Augment lib_SOURCES.
5364
5365 2011-05-23  Bruno Haible  <bruno@clisp.org>
5366
5367         cycle-check: Move AC_LIBOBJ invocations to module description.
5368         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Remove AC_LIBOBJ invocation.
5369         * modules/cycle-check (Makefile.am): Augment lib_SOURCES.
5370
5371 2011-05-23  Bruno Haible  <bruno@clisp.org>
5372
5373         c-strtold: Move AC_LIBOBJ invocations to module description.
5374         * m4/c-strtod.m4 (gl_C_STRTOLD): Remove AC_LIBOBJ invocation.
5375         * modules/c-strtold (Makefile.am): Augment lib_SOURCES.
5376
5377 2011-05-23  Bruno Haible  <bruno@clisp.org>
5378
5379         c-strtod: Move AC_LIBOBJ invocations to module description.
5380         * m4/c-strtod.m4 (gl_C_STRTOD): Remove AC_LIBOBJ invocation.
5381         * modules/c-strtod (Makefile.am): Augment lib_SOURCES.
5382
5383 2011-05-23  Bruno Haible  <bruno@clisp.org>
5384
5385         crc: Move AC_LIBOBJ invocations to module description.
5386         * m4/crc.m4: Remove file.
5387         * modules/crc (Files): Remove it.
5388         (configure.ac): Remove gl_CRC call.
5389         (Makefile.am): Augment lib_SOURCES.
5390
5391 2011-05-23  Bruno Haible  <bruno@clisp.org>
5392
5393         close-stream: Move AC_LIBOBJ invocations to module description.
5394         * m4/close-stream.m4 (gl_CLOSE_STREAM): Remove AC_LIBOBJ invocation.
5395         * modules/close-stream (Makefile.am): Augment lib_SOURCES.
5396
5397 2011-05-23  Bruno Haible  <bruno@clisp.org>
5398
5399         closeout: Move AC_LIBOBJ invocations to module description.
5400         * m4/closeout.m4 (gl_CLOSEOUT): Remove AC_LIBOBJ invocation.
5401         * modules/closeout (Makefile.am): Augment lib_SOURCES.
5402
5403 2011-05-23  Bruno Haible  <bruno@clisp.org>
5404
5405         closein: Move AC_LIBOBJ invocations to module description.
5406         * m4/closein.m4 (gl_CLOSEIN): Remove AC_LIBOBJ invocation.
5407         * modules/closein (Makefile.am): Augment lib_SOURCES.
5408
5409 2011-05-23  Bruno Haible  <bruno@clisp.org>
5410
5411         cloexec: Move AC_LIBOBJ invocations to module description.
5412         * m4/cloexec.m4: Remove file.
5413         * modules/cloexec (Files): Remove it.
5414         (configure.ac): Remove gl_CLOEXEC call.
5415         (Makefile.am): Augment lib_SOURCES.
5416
5417 2011-05-23  Bruno Haible  <bruno@clisp.org>
5418
5419         check-version: Move AC_LIBOBJ invocations to module description.
5420         * m4/check-version.m4: Remove file.
5421         * modules/check-version (Files): Remove it.
5422         (configure.ac): Remove gl_CHECK_VERSION call.
5423         (Makefile.am): Augment lib_SOURCES.
5424
5425 2011-05-23  Bruno Haible  <bruno@clisp.org>
5426
5427         chdir-safer: Move AC_LIBOBJ invocations to module description.
5428         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Remove AC_LIBOBJ invocation.
5429         * modules/chdir-safer (Makefile.am): Augment lib_SOURCES.
5430
5431 2011-05-23  Bruno Haible  <bruno@clisp.org>
5432
5433         canonicalize: Move AC_LIBOBJ invocations to module description.
5434         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE): Remove
5435         AC_LIBOBJ invocation.
5436         * modules/canonicalize (Makefile.am): Augment lib_SOURCES.
5437
5438 2011-05-23  Bruno Haible  <bruno@clisp.org>
5439
5440         canon-host: Move AC_LIBOBJ invocations to module description.
5441         * m4/canon-host.m4 (gl_CANON_HOST): Remove macro.
5442         * modules/canon-host (configure.ac): Invoke gl_PREREQ_CANON_HOST
5443         instead of gl_CANON_HOST.
5444         (Makefile.am): Augment lib_SOURCES.
5445
5446 2011-05-23  Bruno Haible  <bruno@clisp.org>
5447
5448         backupfile: Move AC_LIBOBJ invocations to module description.
5449         * m4/backupfile.m4 (gl_BACKUPFILE): Remove AC_LIBOBJ invocation.
5450         * modules/backupfile (Makefile.am): Augment lib_SOURCES.
5451
5452 2011-05-23  Bruno Haible  <bruno@clisp.org>
5453
5454         argmatch: Move AC_LIBOBJ invocations to module description.
5455         * m4/argmatch.m4: Remove file.
5456         * modules/argmatch (Files): Remove it.
5457         (configure.ac): Remove gl_ARGMATCH call.
5458         (Makefile.am): Augment lib_SOURCES.
5459
5460 2011-05-23  Bruno Haible  <bruno@clisp.org>
5461
5462         crypto/arctwo: Move AC_LIBOBJ invocations to module description.
5463         * m4/arctwo.m4 (gl_ARCTWO): Remove AC_LIBOBJ invocation.
5464         * modules/crypto/arctwo (Makefile.am): Augment lib_SOURCES.
5465
5466 2011-05-23  Bruno Haible  <bruno@clisp.org>
5467
5468         crypto/arcfour: Move AC_LIBOBJ invocations to module description.
5469         * m4/arcfour.m4: Remove file.
5470         * modules/crypto/arcfour (Files): Remove it.
5471         (configure.ac): Remove gl_ARCFOUR call.
5472         (Makefile.am): Augment lib_SOURCES.
5473
5474 2011-05-22  Bruno Haible  <bruno@clisp.org>
5475
5476         write: Move AC_LIBOBJ invocations to module description.
5477         * m4/write.m4 (gl_FUNC_WRITE): Move AC_LIBOBJ invocation from here...
5478         * modules/write (configure.ac): ... to here.
5479
5480 2011-05-22  Bruno Haible  <bruno@clisp.org>
5481
5482         wmemset: Move AC_LIBOBJ invocations to module description.
5483         * m4/wmemset.m4 (gl_FUNC_WMEMSET): Move AC_LIBOBJ invocation from
5484         here...
5485         * modules/wmemset (configure.ac): ... to here.
5486
5487 2011-05-22  Bruno Haible  <bruno@clisp.org>
5488
5489         wmemmove: Move AC_LIBOBJ invocations to module description.
5490         * m4/wmemmove.m4 (gl_FUNC_WMEMMOVE): Move AC_LIBOBJ invocation from
5491         here...
5492         * modules/wmemmove (configure.ac): ... to here.
5493
5494 2011-05-22  Bruno Haible  <bruno@clisp.org>
5495
5496         wmemcpy: Move AC_LIBOBJ invocations to module description.
5497         * m4/wmemcpy.m4 (gl_FUNC_WMEMCPY): Move AC_LIBOBJ invocation from
5498         here...
5499         * modules/wmemcpy (configure.ac): ... to here.
5500
5501 2011-05-22  Bruno Haible  <bruno@clisp.org>
5502
5503         wmemcmp: Move AC_LIBOBJ invocations to module description.
5504         * m4/wmemcmp.m4 (gl_FUNC_WMEMCMP): Move AC_LIBOBJ invocation from
5505         here...
5506         * modules/wmemcmp (configure.ac): ... to here.
5507
5508 2011-05-22  Bruno Haible  <bruno@clisp.org>
5509
5510         wmemchr: Move AC_LIBOBJ invocations to module description.
5511         * m4/wmemchr.m4 (gl_FUNC_WMEMCHR): Move AC_LIBOBJ invocation from
5512         here...
5513         * modules/wmemchr (configure.ac): ... to here.
5514
5515 2011-05-22  Bruno Haible  <bruno@clisp.org>
5516
5517         wcswidth: Move AC_LIBOBJ invocations to module description.
5518         * m4/wcswidth.m4 (gl_FUNC_WCSWIDTH): Move AC_LIBOBJ invocation from
5519         here...
5520         * modules/wcswidth (configure.ac): ... to here.
5521
5522 2011-05-22  Bruno Haible  <bruno@clisp.org>
5523
5524         wcwidth: Respect rules for use of AC_LIBOBJ.
5525         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Set HAVE_WCWIDTH. Move AC_LIBOBJ
5526         invocation from here...
5527         * modules/wcwidth (configure.ac): ... to here.
5528         (Depends-on): Update conditions.
5529
5530 2011-05-22  Bruno Haible  <bruno@clisp.org>
5531
5532         wctype: Move AC_LIBOBJ invocations to module description.
5533         * m4/wctype.m4 (gl_FUNC_WCTYPE): Set HAVE_WCTYPE. Move AC_LIBOBJ
5534         invocation from here...
5535         * modules/wctype (configure.ac): ... to here.
5536         (Depends-on): Update conditions.
5537
5538 2011-05-22  Bruno Haible  <bruno@clisp.org>
5539
5540         wctrans: Move AC_LIBOBJ invocations to module description.
5541         * m4/wctrans.m4 (gl_FUNC_WCTRANS): Set HAVE_WCTRANS. Move AC_LIBOBJ
5542         invocation from here...
5543         * modules/wctrans (configure.ac): ... to here.
5544
5545 2011-05-22  Bruno Haible  <bruno@clisp.org>
5546
5547         wctomb: Move AC_LIBOBJ invocations to module description.
5548         * m4/wctomb.m4 (gl_FUNC_WCTOMB): Move AC_LIBOBJ and gl_PREREQ_WCTOMB
5549         invocations from here...
5550         * modules/wctomb (configure.ac): ... to here.
5551
5552 2011-05-22  Bruno Haible  <bruno@clisp.org>
5553
5554         wctob: Move AC_LIBOBJ invocations to module description.
5555         * m4/wctob.m4 (gl_FUNC_WCTOB): Set HAVE_WCTOB. Move AC_LIBOBJ and
5556         gl_PREREQ_WCTOB invocations from here...
5557         * modules/wctob (configure.ac): ... to here.
5558         (Depends-on): Update conditions.
5559
5560 2011-05-22  Bruno Haible  <bruno@clisp.org>
5561
5562         wcsxfrm: Move AC_LIBOBJ invocations to module description.
5563         * m4/wcsxfrm.m4 (gl_FUNC_WCSXFRM): Move AC_LIBOBJ invocation from
5564         here...
5565         * modules/wcsxfrm (configure.ac): ... to here.
5566
5567 2011-05-22  Bruno Haible  <bruno@clisp.org>
5568
5569         wcstok: Move AC_LIBOBJ invocations to module description.
5570         * m4/wcstok.m4 (gl_FUNC_WCSTOK): Move AC_LIBOBJ invocation from here...
5571         * modules/wcstok (configure.ac): ... to here.
5572
5573 2011-05-22  Bruno Haible  <bruno@clisp.org>
5574
5575         wcsstr: Move AC_LIBOBJ invocations to module description.
5576         * m4/wcsstr.m4 (gl_FUNC_WCSSTR): Move AC_LIBOBJ invocation from here...
5577         * modules/wcsstr (configure.ac): ... to here.
5578
5579 2011-05-22  Bruno Haible  <bruno@clisp.org>
5580
5581         wcsspn: Move AC_LIBOBJ invocations to module description.
5582         * m4/wcsspn.m4 (gl_FUNC_WCSSPN): Move AC_LIBOBJ invocation from here...
5583         * modules/wcsspn (configure.ac): ... to here.
5584
5585 2011-05-22  Bruno Haible  <bruno@clisp.org>
5586
5587         wcsrtombs: Move AC_LIBOBJ invocations to module description.
5588         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): Move AC_LIBOBJ and
5589         gl_PREREQ_WCSRTOMBS invocations from here...
5590         * modules/wcsrtombs (configure.ac): ... to here.
5591
5592 2011-05-22  Bruno Haible  <bruno@clisp.org>
5593
5594         wcsrchr: Move AC_LIBOBJ invocations to module description.
5595         * m4/wcsrchr.m4 (gl_FUNC_WCSRCHR): Move AC_LIBOBJ invocation from
5596         here...
5597         * modules/wcsrchr (configure.ac): ... to here.
5598
5599 2011-05-22  Bruno Haible  <bruno@clisp.org>
5600
5601         wcspbrk: Move AC_LIBOBJ invocations to module description.
5602         * m4/wcspbrk.m4 (gl_FUNC_WCSPBRK): Move AC_LIBOBJ invocation from
5603         here...
5604         * modules/wcspbrk (configure.ac): ... to here.
5605
5606 2011-05-22  Bruno Haible  <bruno@clisp.org>
5607
5608         wcsnrtombs: Move AC_LIBOBJ invocations to module description.
5609         * m4/wcsnrtombs.m4 (gl_FUNC_WCSNRTOMBS): Move AC_LIBOBJ and
5610         gl_PREREQ_WCSNRTOMBS invocations from here...
5611         * modules/wcsnrtombs (configure.ac): ... to here.
5612
5613 2011-05-22  Bruno Haible  <bruno@clisp.org>
5614
5615         wcsnlen: Move AC_LIBOBJ invocations to module description.
5616         * m4/wcsnlen.m4 (gl_FUNC_WCSNLEN): Move AC_LIBOBJ invocation from
5617         here...
5618         * modules/wcsnlen (configure.ac): ... to here.
5619
5620 2011-05-22  Bruno Haible  <bruno@clisp.org>
5621
5622         wcsncpy: Move AC_LIBOBJ invocations to module description.
5623         * m4/wcsncpy.m4 (gl_FUNC_WCSNCPY): Move AC_LIBOBJ invocation from
5624         here...
5625         * modules/wcsncpy (configure.ac): ... to here.
5626
5627 2011-05-22  Bruno Haible  <bruno@clisp.org>
5628
5629         wcsncmp: Move AC_LIBOBJ invocations to module description.
5630         * m4/wcsncmp.m4 (gl_FUNC_WCSNCMP): Move AC_LIBOBJ invocation from
5631         here...
5632         * modules/wcsncmp (configure.ac): ... to here.
5633
5634 2011-05-22  Bruno Haible  <bruno@clisp.org>
5635
5636         wcsncat: Move AC_LIBOBJ invocations to module description.
5637         * m4/wcsncat.m4 (gl_FUNC_WCSNCAT): Move AC_LIBOBJ invocation from
5638         here...
5639         * modules/wcsncat (configure.ac): ... to here.
5640
5641 2011-05-22  Bruno Haible  <bruno@clisp.org>
5642
5643         wcsncasecmp: Move AC_LIBOBJ invocations to module description.
5644         * m4/wcsncasecmp.m4 (gl_FUNC_WCSNCASECMP): Move AC_LIBOBJ invocation
5645         from here...
5646         * modules/wcsncasecmp (configure.ac): ... to here.
5647
5648 2011-05-22  Bruno Haible  <bruno@clisp.org>
5649
5650         wcslen: Move AC_LIBOBJ invocations to module description.
5651         * m4/wcslen.m4 (gl_FUNC_WCSLEN): Move AC_LIBOBJ invocation from here...
5652         * modules/wcslen (configure.ac): ... to here.
5653
5654 2011-05-22  Bruno Haible  <bruno@clisp.org>
5655
5656         wcsdup: Move AC_LIBOBJ invocations to module description.
5657         * m4/wcsdup.m4 (gl_FUNC_WCSDUP): Move AC_LIBOBJ invocation from here...
5658         * modules/wcsdup (configure.ac): ... to here.
5659
5660 2011-05-22  Bruno Haible  <bruno@clisp.org>
5661
5662         wcscspn: Move AC_LIBOBJ invocations to module description.
5663         * m4/wcscspn.m4 (gl_FUNC_WCSCSPN): Move AC_LIBOBJ invocation from
5664         here...
5665         * modules/wcscspn (configure.ac): ... to here.
5666
5667 2011-05-22  Bruno Haible  <bruno@clisp.org>
5668
5669         wcscpy: Move AC_LIBOBJ invocations to module description.
5670         * m4/wcscpy.m4 (gl_FUNC_WCSCPY): Move AC_LIBOBJ invocation from here...
5671         * modules/wcscpy (configure.ac): ... to here.
5672
5673 2011-05-22  Bruno Haible  <bruno@clisp.org>
5674
5675         wcscoll: Move AC_LIBOBJ invocations to module description.
5676         * m4/wcscoll.m4 (gl_FUNC_WCSCOLL): Move AC_LIBOBJ invocation from
5677         here...
5678         * modules/wcscoll (configure.ac): ... to here.
5679
5680 2011-05-22  Bruno Haible  <bruno@clisp.org>
5681
5682         wcscmp: Move AC_LIBOBJ invocations to module description.
5683         * m4/wcscmp.m4 (gl_FUNC_WCSCMP): Move AC_LIBOBJ invocation from here...
5684         * modules/wcscmp (configure.ac): ... to here.
5685
5686 2011-05-22  Bruno Haible  <bruno@clisp.org>
5687
5688         wcschr: Move AC_LIBOBJ invocations to module description.
5689         * m4/wcschr.m4 (gl_FUNC_WCSCHR): Move AC_LIBOBJ invocation from here...
5690         * modules/wcschr (configure.ac): ... to here.
5691
5692 2011-05-22  Bruno Haible  <bruno@clisp.org>
5693
5694         wcscat: Move AC_LIBOBJ invocations to module description.
5695         * m4/wcscat.m4 (gl_FUNC_WCSCAT): Move AC_LIBOBJ invocation from here...
5696         * modules/wcscat (configure.ac): ... to here.
5697
5698 2011-05-22  Bruno Haible  <bruno@clisp.org>
5699
5700         wcscasecmp: Move AC_LIBOBJ invocations to module description.
5701         * m4/wcscasecmp.m4 (gl_FUNC_WCSCASECMP): Move AC_LIBOBJ invocation from
5702         here...
5703         * modules/wcscasecmp (configure.ac): ... to here.
5704
5705 2011-05-22  Bruno Haible  <bruno@clisp.org>
5706
5707         wcrtomb: Move AC_LIBOBJ invocations to module description.
5708         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Move AC_LIBOBJ and gl_PREREQ_WCRTOMB
5709         invocations from here...
5710         * modules/wcrtomb (configure.ac): ... to here.
5711
5712 2011-05-22  Bruno Haible  <bruno@clisp.org>
5713
5714         wcpncpy: Move AC_LIBOBJ invocations to module description.
5715         * m4/wcpncpy.m4 (gl_FUNC_WCPNCPY): Move AC_LIBOBJ invocation from
5716         here...
5717         * modules/wcpncpy (configure.ac): ... to here.
5718
5719 2011-05-22  Bruno Haible  <bruno@clisp.org>
5720
5721         wcpcpy: Move AC_LIBOBJ invocations to module description.
5722         * m4/wcpcpy.m4 (gl_FUNC_WCPCPY): Move AC_LIBOBJ invocation from here...
5723         * modules/wcpcpy (configure.ac): ... to here.
5724
5725 2011-05-22  Bruno Haible  <bruno@clisp.org>
5726
5727         waitpid: Move AC_LIBOBJ invocations to module description.
5728         * m4/waitpid.m4 (gl_FUNC_WAITPID): Set HAVE_WAITPID. Move AC_LIBOBJ
5729         invocation from here...
5730         * modules/waitpid (configure.ac): ... to here.
5731
5732 2011-05-22  Bruno Haible  <bruno@clisp.org>
5733
5734         utimensat: Move AC_LIBOBJ invocations to module description.
5735         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Move AC_LIBOBJ invocations from
5736         here...
5737         * modules/utimensat (configure.ac): ... to here.
5738
5739 2011-05-22  Bruno Haible  <bruno@clisp.org>
5740
5741         usleep: Move AC_LIBOBJ invocations to module description.
5742         * m4/usleep.m4 (gl_FUNC_USLEEP): Move AC_LIBOBJ invocations from
5743         here...
5744         * modules/usleep (configure.ac): ... to here.
5745
5746 2011-05-22  Bruno Haible  <bruno@clisp.org>
5747
5748         unlockpt: Move AC_LIBOBJ invocations to module description.
5749         * m4/unlockpt.m4 (gl_FUNC_UNLOCKPT): Move AC_LIBOBJ and
5750         gl_PREREQ_UNLOCKPT invocations from here...
5751         * modules/unlockpt (configure.ac): ... to here.
5752
5753 2011-05-22  Bruno Haible  <bruno@clisp.org>
5754
5755         unlink: Respect rules for use of AC_LIBOBJ.
5756         * m4/unlink.m4 (gl_FUNC_UNLINK): Move AC_LIBOBJ invocation from here...
5757         * modules/unlink (configure.ac): ... to here.
5758
5759 2011-05-22  Bruno Haible  <bruno@clisp.org>
5760
5761         uname: Move AC_LIBOBJ invocations to module description.
5762         * m4/uname.m4 (gl_FUNC_UNAME): Call AC_CHECK_FUNCS instead of
5763         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_UNAME invocations from
5764         here...
5765         * modules/uname (configure.ac): ... to here.
5766
5767 2011-05-22  Bruno Haible  <bruno@clisp.org>
5768
5769         ttyname_r: Move AC_LIBOBJ invocations to module description.
5770         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Move AC_LIBOBJ and
5771         gl_PREREQ_TTYNAME_R invocations from here...
5772         * modules/ttyname_r (configure.ac): ... to here.
5773
5774 2011-05-22  Bruno Haible  <bruno@clisp.org>
5775
5776         tsearch: Move AC_LIBOBJ invocations to module description.
5777         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Move AC_LIBOBJ and gl_PREREQ_TSEARCH
5778         invocations from here...
5779         * modules/tsearch (configure.ac): ... to here.
5780
5781 2011-05-22  Bruno Haible  <bruno@clisp.org>
5782
5783         towctrans: Move AC_LIBOBJ invocations to module description.
5784         * m4/towctrans.m4 (gl_FUNC_TOWCTRANS): Set HAVE_TOWCTRANS. Move
5785         AC_LIBOBJ invocation from here...
5786         * modules/towctrans (configure.ac): ... to here.
5787
5788 2011-05-22  Bruno Haible  <bruno@clisp.org>
5789
5790         tmpfile: Move AC_LIBOBJ invocations to module description.
5791         * m4/tmpfile.m4 (gl_FUNC_TMPFILE): Move AC_LIBOBJ and gl_PREREQ_TMPFILE
5792         invocations from here...
5793         * modules/tmpfile (configure.ac): ... to here.
5794
5795 2011-05-22  Bruno Haible  <bruno@clisp.org>
5796
5797         times: Move AC_LIBOBJ invocations to module description.
5798         * m4/times.m4 (gl_FUNC_TIMES): Move AC_LIBOBJ invocation from here...
5799         * modules/times (configure.ac): ... to here.
5800
5801 2011-05-22  Bruno Haible  <bruno@clisp.org>
5802
5803         time_r: Move AC_LIBOBJ invocations to module description.
5804         * m4/time_r.m4 (gl_TIME_R): Move AC_LIBOBJ and gl_PREREQ_TIME_R
5805         invocations from here...
5806         * modules/time_r (configure.ac): ... to here.
5807
5808 2011-05-22  Bruno Haible  <bruno@clisp.org>
5809
5810         timegm: Move AC_LIBOBJ invocations to module description.
5811         * m4/timegm.m4 (gl_FUNC_TIMEGM): Move AC_LIBOBJ and gl_PREREQ_TIMEGM
5812         invocations from here...
5813         * modules/timegm (configure.ac): ... to here.
5814
5815 2011-05-22  Bruno Haible  <bruno@clisp.org>
5816
5817         tcgetsid: Move AC_LIBOBJ invocations to module description.
5818         * m4/tcgetsid.m4 (gl_FUNC_TCGETSID): Set HAVE_TCGETSID. Move AC_LIBOBJ
5819         and gl_PREREQ_TCGETSID invocations from here...
5820         * modules/tcgetsid (configure.ac): ... to here.
5821         (Depends-on): Update conditions.
5822
5823 2011-05-22  Bruno Haible  <bruno@clisp.org>
5824
5825         symlinkat: Move AC_LIBOBJ invocations to module description.
5826         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Move AC_LIBOBJ invocation from
5827         here...
5828         * modules/symlinkat (configure.ac): ... to here.
5829
5830 2011-05-22  Bruno Haible  <bruno@clisp.org>
5831
5832         symlink: Move AC_LIBOBJ invocations to module description.
5833         * m4/symlink.m4 (gl_FUNC_SYMLINK): Move AC_LIBOBJ invocations from
5834         here...
5835         * modules/symlink (configure.ac): ... to here.
5836
5837 2011-05-22  Bruno Haible  <bruno@clisp.org>
5838
5839         strverscmp: Move AC_LIBOBJ invocations to module description.
5840         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Call AC_CHECK_FUNCS instead of
5841         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRVERSCMP invocations
5842         from here...
5843         * modules/strverscmp (configure.ac): ... to here.
5844
5845 2011-05-22  Bruno Haible  <bruno@clisp.org>
5846
5847         strtok_r: Move AC_LIBOBJ invocations to module description.
5848         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Set HAVE_STRTOK_R. Move AC_LIBOBJ
5849         and gl_PREREQ_STRTOK_R invocations from here...
5850         * modules/strtok_r (configure.ac): ... to here.
5851         (Depends-on): Update conditions.
5852
5853 2011-05-22  Bruno Haible  <bruno@clisp.org>
5854
5855         strtoumax: Move AC_LIBOBJ invocations to module description.
5856         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Call AC_CHECK_FUNCS instead of
5857         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOUMAX invocations
5858         from here...
5859         * modules/strtoumax (configure.ac): ... to here.
5860
5861 2011-05-22  Bruno Haible  <bruno@clisp.org>
5862
5863         strtoimax: Move AC_LIBOBJ invocations to module description.
5864         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Call AC_CHECK_FUNCS instead of
5865         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOIMAX invocations
5866         from here...
5867         * modules/strtoimax (configure.ac): ... to here.
5868
5869 2011-05-22  Bruno Haible  <bruno@clisp.org>
5870
5871         strtoull: Move AC_LIBOBJ invocations to module description.
5872         * m4/strtoull.m4 (gl_FUNC_STRTOULL): Call AC_CHECK_FUNCS instead of
5873         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOULL invocations
5874         from here...
5875         * modules/strtoull (configure.ac): ... to here.
5876
5877 2011-05-22  Bruno Haible  <bruno@clisp.org>
5878
5879         strtoll: Move AC_LIBOBJ invocations to module description.
5880         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Call AC_CHECK_FUNCS instead of
5881         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOLL invocations from
5882         here...
5883         * modules/strtoll (configure.ac): ... to here.
5884
5885 2011-05-22  Bruno Haible  <bruno@clisp.org>
5886
5887         strtoul: Move AC_LIBOBJ invocations to module description.
5888         * m4/strtoul.m4 (gl_FUNC_STRTOUL): Call AC_CHECK_FUNCS instead of
5889         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocation from here...
5890         * modules/strtoul (configure.ac): ... to here.
5891
5892 2011-05-22  Bruno Haible  <bruno@clisp.org>
5893
5894         strtol: Move AC_LIBOBJ invocations to module description.
5895         * m4/strtol.m4 (gl_FUNC_STRTOL): Call AC_CHECK_FUNCS instead of
5896         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocation from here...
5897         * modules/strtol (configure.ac): ... to here.
5898
5899 2011-05-22  Bruno Haible  <bruno@clisp.org>
5900
5901         strtod: Move AC_LIBOBJ invocations to module description.
5902         * m4/strtod.m4 (gl_FUNC_STRTOD): Move AC_LIBOBJ and gl_PREREQ_STRTOD
5903         invocations from here...
5904         * modules/strtod (configure.ac): ... to here.
5905
5906 2011-05-22  Bruno Haible  <bruno@clisp.org>
5907
5908         strstr*: Move AC_LIBOBJ invocations to module description.
5909         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Move AC_LIBOBJ
5910         invocations from here...
5911         * modules/strstr-simple (configure.ac): ... to here.
5912         * modules/strstr (configure.ac): ... and here.
5913
5914 2011-05-22  Bruno Haible  <bruno@clisp.org>
5915
5916         strsignal: Move AC_LIBOBJ invocations to module description.
5917         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Set HAVE_STRSIGNAL. Move
5918         AC_LIBOBJ and gl_PREREQ_STRSIGNAL invocations from here...
5919         * modules/strsignal (configure.ac): ... to here.
5920         (Depends-on): Update conditions.
5921
5922 2011-05-22  Bruno Haible  <bruno@clisp.org>
5923
5924         strsep: Move AC_LIBOBJ invocations to module description.
5925         * m4/strsep.m4 (gl_FUNC_STRSEP): Call AC_CHECK_FUNCS instead of
5926         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRSEP invocations from
5927         here...
5928         * modules/strsep (configure.ac): ... to here.
5929
5930 2011-05-22  Bruno Haible  <bruno@clisp.org>
5931
5932         strptime: Move AC_LIBOBJ invocations to module description.
5933         * m4/strptime.m4 (gl_FUNC_STRPTIME): Move AC_LIBOBJ and
5934         gl_PREREQ_STRPTIME invocations from here...
5935         * modules/strptime (configure.ac): ... to here.
5936
5937 2011-05-22  Bruno Haible  <bruno@clisp.org>
5938
5939         strpbrk: Move AC_LIBOBJ invocations to module description.
5940         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Call AC_CHECK_FUNCS instead of
5941         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRPBRK invocations from
5942         here...
5943         * modules/strpbrk (configure.ac): ... to here.
5944
5945 2011-05-22  Bruno Haible  <bruno@clisp.org>
5946
5947         strnlen: Move AC_LIBOBJ invocations to module description.
5948         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Move AC_LIBOBJ and gl_PREREQ_STRNLEN
5949         invocations from here...
5950         * modules/strnlen (configure.ac): ... to here.
5951
5952 2011-05-22  Bruno Haible  <bruno@clisp.org>
5953
5954         strndup: Move AC_LIBOBJ invocations to module description.
5955         * m4/strndup.m4 (gl_FUNC_STRNDUP): Set HAVE_STRNDUP. Move AC_LIBOBJ
5956         invocations from here...
5957         * modules/strndup (configure.ac): ... to here.
5958         (Depends-on): Update conditions.
5959
5960 2011-05-22  Bruno Haible  <bruno@clisp.org>
5961
5962         strncat: Move AC_LIBOBJ invocations to module description.
5963         * m4/strncat.m4 (gl_FUNC_STRNCAT): Move AC_LIBOBJ and gl_PREREQ_STRNCAT
5964         invocations from here...
5965         * modules/strncat (configure.ac): ... to here.
5966
5967 2011-05-22  Bruno Haible  <bruno@clisp.org>
5968
5969         strdup, strdup-posix: Move AC_LIBOBJ invocations to module description.
5970         * m4/strdup.m4 (gl_FUNC_STRDUP): Move AC_LIBOBJ and gl_PREREQ_STRDUP
5971         invocations from here...
5972         * modules/strdup (configure.ac): ... to here.
5973         * modules/strdup-posix (configure.ac): ... and here.
5974
5975 2011-05-22  Bruno Haible  <bruno@clisp.org>
5976
5977         strcspn: Move AC_LIBOBJ invocations to module description.
5978         * m4/strcspn.m4 (gl_FUNC_STRCSPN): Call AC_CHECK_FUNCS instead of
5979         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRCSPN invocations from
5980         here...
5981         * modules/strcspn (configure.ac): ... to here.
5982
5983 2011-05-22  Bruno Haible  <bruno@clisp.org>
5984
5985         strchrnul: Move AC_LIBOBJ invocations to module description.
5986         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Move AC_LIBOBJ and
5987         gl_PREREQ_STRCHRNUL invocations from here...
5988         * modules/strchrnul (configure.ac): ... to here.
5989
5990 2011-05-22  Bruno Haible  <bruno@clisp.org>
5991
5992         strcasestr*: Move AC_LIBOBJ invocations to module description.
5993         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE, gl_FUNC_STRCASESTR):
5994         Move AC_LIBOBJ and gl_PREREQ_STRCASESTR invocations from here...
5995         * modules/strcasestr-simple (configure.ac): ... to here.
5996         * modules/strcasestr (configure.ac): ... and here.
5997
5998 2011-05-22  Bruno Haible  <bruno@clisp.org>
5999
6000         strcase: Move AC_LIBOBJ invocations to module description.
6001         * m4/strcase.m4 (gl_FUNC_STRNCASECMP): Set HAVE_STRNCASECMP.
6002         (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP): Call AC_CHECK_FUNCS instead
6003         of AC_REPLACE_FUNCS. Move AC_LIBOBJ, gl_PREREQ_STRCASECMP,
6004         gl_PREREQ_STRNCASECMP invocations from here...
6005         * modules/strcase (configure.ac): ... to here.
6006
6007 2011-05-22  Bruno Haible  <bruno@clisp.org>
6008
6009         stpncpy: Move AC_LIBOBJ invocations to module description.
6010         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Move AC_LIBOBJ invocations from
6011         here...
6012         * modules/stpncpy (configure.ac): ... to here.
6013
6014 2011-05-22  Bruno Haible  <bruno@clisp.org>
6015
6016         stpcpy: Move AC_LIBOBJ invocations to module description.
6017         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Call AC_CHECK_FUNCS instead of
6018         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STPCPY invocations from
6019         here...
6020         * modules/stpcpy (configure.ac): ... to here.
6021
6022 2011-05-21  Bruno Haible  <bruno@clisp.org>
6023
6024         stat: Move AC_LIBOBJ invocations to module description.
6025         * m4/stat.m4 (gl_PREREQ_STAT): New macro, extracted from gl_FUNC_STAT.
6026         (gl_FUNC_STAT): Move AC_LIBOBJ and gl_PREREQ_STAT invocations from
6027         here...
6028         * modules/stat (configure.ac): ... to here.
6029
6030 2011-05-21  Bruno Haible  <bruno@clisp.org>
6031
6032         sleep: Move AC_LIBOBJ invocations to module description.
6033         * m4/sleep.m4 (gl_FUNC_SLEEP): Move AC_LIBOBJ invocations from here...
6034         * modules/sleep (configure.ac): ... to here.
6035
6036 2011-05-21  Bruno Haible  <bruno@clisp.org>
6037
6038         signbit: Move AC_LIBOBJ invocations to module description.
6039         * m4/signbit.m4 (gl_SIGNBIT): Move AC_LIBOBJ invocations from here...
6040         * modules/signbit (configure.ac): ... to here.
6041
6042 2011-05-21  Bruno Haible  <bruno@clisp.org>
6043
6044         sigprocmask: Move AC_LIBOBJ invocations to module description.
6045         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Move AC_LIBOBJ and
6046         gl_PREREQ_SIGPROMASK invocations from here...
6047         * modules/sigprocmask (configure.ac): ... to here.
6048
6049 2011-05-21  Bruno Haible  <bruno@clisp.org>
6050
6051         sigaction: Move AC_LIBOBJ invocations to module description.
6052         * m4/sigaction.m4 (gl_SIGACTION): Move AC_LIBOBJ and
6053         gl_PREREQ_SIGACTION invocations from here...
6054         * modules/sigaction (configure.ac): ... to here.
6055
6056 2011-05-21  Bruno Haible  <bruno@clisp.org>
6057
6058         sig2str: Move AC_LIBOBJ invocations to module description.
6059         * m4/sig2str.m4 (gl_FUNC_SIG2STR): Call AC_CHECK_FUNCS instead of
6060         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_SIG2STR invocations from
6061         here...
6062         * modules/sig2str (configure.ac): ... to here.
6063
6064 2011-05-21  Bruno Haible  <bruno@clisp.org>
6065
6066         setlocale: Move AC_LIBOBJ invocations to module description.
6067         * m4/setlocale.m4 (gl_FUNC_SETLOCALE): Move AC_LIBOBJ and
6068         gl_PREREQ_SETLOCALE invocations from here...
6069         * modules/setlocale (configure.ac): ... to here.
6070
6071 2011-05-21  Bruno Haible  <bruno@clisp.org>
6072
6073         unsetenv: Move AC_LIBOBJ invocations to module description.
6074         * m4/setenv.m4 (gl_FUNC_UNSETENV): Set HAVE_UNSETENV. Move AC_LIBOBJ
6075         and gl_PREREQ_UNSETENV invocations from here...
6076         * modules/unsetenv (configure.ac): ... to here.
6077         (Depends-on): Update.
6078
6079 2011-05-21  Bruno Haible  <bruno@clisp.org>
6080
6081         setenv: Move AC_LIBOBJ invocations to module description.
6082         * m4/setenv.m4 (gl_FUNC_SETENV): Move AC_LIBOBJ invocations from
6083         here...
6084         * modules/setenv (configure.ac): ... to here.
6085
6086 2011-05-21  Bruno Haible  <bruno@clisp.org>
6087
6088         selinux-h: Move AC_LIBOBJ invocations to module description.
6089         * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): Move
6090         AC_LIBOBJ invocation from here...
6091         * modules/selinux-h (configure.ac): ... to here.
6092
6093 2011-05-21  Bruno Haible  <bruno@clisp.org>
6094
6095         select: Respect rules for use of AC_LIBOBJ.
6096         * m4/select.m4 (gl_FUNC_SELECT): Move AC_LIBOBJ invocations from
6097         here...
6098         * modules/select (configure.ac): ... to here.
6099
6100 2011-05-21  Bruno Haible  <bruno@clisp.org>
6101
6102         scandir: Move AC_LIBOBJ invocations to module description.
6103         * m4/scandir.m4 (gl_FUNC_SCANDIR): Move AC_LIBOBJ and gl_PREREQ_SCANDIR
6104         invocations from here...
6105         * modules/scandir (configure.ac): ... to here.
6106
6107 2011-05-21  Bruno Haible  <bruno@clisp.org>
6108
6109         rpmatch: Move AC_LIBOBJ invocations to module description.
6110         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Call AC_CHECK_FUNCS instead of
6111         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_RPMATCH invocations from
6112         here...
6113         * modules/rpmatch (configure.ac): ... to here.
6114
6115 2011-05-21  Bruno Haible  <bruno@clisp.org>
6116
6117         rmdir: Respect rules for use of AC_LIBOBJ.
6118         * m4/rmdir.m4 (gl_FUNC_RMDIR): Move AC_LIBOBJ invocation from here...
6119         * modules/rmdir (configure.ac): ... to here.
6120
6121 2011-05-21  Bruno Haible  <bruno@clisp.org>
6122
6123         renameat: Move AC_LIBOBJ invocations to module description.
6124         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Move AC_LIBOBJ invocations from
6125         here...
6126         * modules/renameat (configure.ac): ... to here.
6127
6128 2011-05-21  Bruno Haible  <bruno@clisp.org>
6129
6130         rename: Respect rules for use of AC_LIBOBJ.
6131         * m4/rename.m4 (gl_FUNC_RENAME): Move AC_LIBOBJ invocations from
6132         here...
6133         * modules/rename (configure.ac): ... to here.
6134
6135 2011-05-21  Bruno Haible  <bruno@clisp.org>
6136
6137         remove: Move AC_LIBOBJ invocations to module description.
6138         * m4/remove.m4 (gl_FUNC_REMOVE): Move AC_LIBOBJ invocations from
6139         here...
6140         * modules/remove (configure.ac): ... to here.
6141
6142 2011-05-21  Bruno Haible  <bruno@clisp.org>
6143
6144         relocatable-lib: Move AC_LIBOBJ invocations to module description.
6145         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY_SEPARATE): Remove
6146         macro.
6147         (gl_RELOCATABLE_LIBRARY): Move AC_LIBOBJ invocation from here...
6148         * modules/relocatable-lib (configure.ac): ... to here.
6149         * modules/relocatable-prog-wrapper (configure.ac): Invoke
6150         gl_RELOCATABLE_LIBRARY instead of gl_RELOCATABLE_LIBRARY_SEPARATE.
6151
6152 2011-05-21  Bruno Haible  <bruno@clisp.org>
6153
6154         relocatable-prog: Move AC_LIBOBJ invocations to module description.
6155         * m4/relocatable.m4 (gl_RELOCATABLE): Move AC_LIBOBJ invocation from
6156         here...
6157         * modules/relocatable-prog (configure.ac): ... to here.
6158
6159 2011-05-21  Bruno Haible  <bruno@clisp.org>
6160
6161         regex: Move AC_LIBOBJ invocations to module description.
6162         * m4/regex.m4 (gl_REGEX): Move AC_LIBOBJ and gl_PREREQ_REGEX
6163         invocations from here...
6164         * modules/regex (configure.ac): ... to here.
6165
6166 2011-05-21  Bruno Haible  <bruno@clisp.org>
6167
6168         realloc-*: Move AC_LIBOBJ invocations to module description.
6169         * m4/realloc.m4 (gl_REPLACE_REALLOC): Remove macro.
6170         (gl_FUNC_REALLOC_GNU, gl_FUNC_REALLOC_POSIX): Inline it here. Move
6171         AC_LIBOBJ invocations from here...
6172         * modules/realloc-gnu (configure.ac): ... to here.
6173         * modules/realloc-posix (configure.ac): ... and here.
6174
6175 2011-05-21  Bruno Haible  <bruno@clisp.org>
6176
6177         readutmp: Move AC_LIBOBJ invocations to module description.
6178         * m4/readutmp.m4 (gl_READUTMP): Move AC_LIBOBJ invocation from here...
6179         * modules/readutmp (configure.ac): ... to here.
6180
6181 2011-05-21  Bruno Haible  <bruno@clisp.org>
6182
6183         readlinkat: Move AC_LIBOBJ invocations to module description.
6184         * m4/readlinkat.m4 (gl_FUNC_READLINKAT): Move AC_LIBOBJ invocation from
6185         here...
6186         * modules/readlinkat (configure.ac): ... to here.
6187
6188 2011-05-21  Bruno Haible  <bruno@clisp.org>
6189
6190         readlink: Move AC_LIBOBJ invocations to module description.
6191         * m4/readlink.m4 (gl_FUNC_READLINK): Move AC_LIBOBJ and
6192         gl_PREREQ_READLINK invocations from here...
6193         * modules/readlink (configure.ac): ... to here.
6194
6195 2011-05-21  Bruno Haible  <bruno@clisp.org>
6196
6197         readline: Move AC_LIBOBJ invocations to module description.
6198         * m4/readline.m4 (gl_FUNC_READLINE): Move AC_LIBOBJ and
6199         gl_PREREQ_READLINE invocations from here...
6200         * modules/readline (configure.ac): ... to here.
6201
6202 2011-05-21  Bruno Haible  <bruno@clisp.org>
6203
6204         read: Move AC_LIBOBJ invocations to module description.
6205         * m4/read.m4 (gl_FUNC_READ): Move AC_LIBOBJ invocation from here...
6206         * modules/read (configure.ac): ... to here.
6207
6208 2011-05-21  Bruno Haible  <bruno@clisp.org>
6209
6210         rawmemchr: Move AC_LIBOBJ invocations to module description.
6211         * m4/rawmemchr.m4 (gl_FUNC_RAWMEMCHR): Call AC_CHECK_FUNCS instead of
6212         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_RAWMEMCHR invocations
6213         from here...
6214         * modules/rawmemchr (configure.ac): ... to here.
6215
6216 2011-05-21  Bruno Haible  <bruno@clisp.org>
6217
6218         random_r: Move AC_LIBOBJ invocations to module description.
6219         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Move AC_LIBOBJ and
6220         gl_PREREQ_RANDOM_R invocations from here...
6221         * modules/random_r (configure.ac): ... to here.
6222
6223 2011-05-21  Bruno Haible  <bruno@clisp.org>
6224
6225         pwrite: Move AC_LIBOBJ invocations to module description.
6226         * m4/pwrite.m4 (gl_FUNC_PWRITE): Move AC_LIBOBJ invocation from here...
6227         * modules/pwrite (configure.ac): ... to here.
6228
6229 2011-05-21  Bruno Haible  <bruno@clisp.org>
6230
6231         putenv: Move AC_LIBOBJ invocations to module description.
6232         * m4/putenv.m4 (gl_FUNC_PUTENV): Move AC_LIBOBJ invocation from here...
6233         * modules/putenv (configure.ac): ... to here.
6234
6235 2011-05-21  Bruno Haible  <bruno@clisp.org>
6236
6237         login_tty: Move AC_LIBOBJ invocations to module description.
6238         * m4/pty.m4 (gl_FUNC_LOGIN_TTY): Move AC_LIBOBJ invocation from here...
6239         * modules/login_tty (configure.ac): ... to here.
6240
6241 2011-05-21  Bruno Haible  <bruno@clisp.org>
6242
6243         openpty: Move AC_LIBOBJ invocations to module description.
6244         * m4/pty.m4 (gl_FUNC_OPENPTY): Move AC_LIBOBJ invocations from here...
6245         * modules/openpty (configure.ac): ... to here.
6246
6247 2011-05-21  Bruno Haible  <bruno@clisp.org>
6248
6249         forkpty: Move AC_LIBOBJ invocations to module description.
6250         * m4/pty.m4 (gl_FUNC_FORKPTY): Move AC_LIBOBJ invocations from here...
6251         * modules/forkpty (configure.ac): ... to here.
6252
6253 2011-05-21  Bruno Haible  <bruno@clisp.org>
6254
6255         ptsname: Move AC_LIBOBJ invocations to module description.
6256         * m4/ptsname.m4 (gl_FUNC_PTSNAME): Move AC_LIBOBJ and gl_PREREQ_PTSNAME
6257         invocations from here...
6258         * modules/ptsname (configure.ac): ... to here.
6259
6260 2011-05-21  Bruno Haible  <bruno@clisp.org>
6261
6262         pread: Move AC_LIBOBJ invocations to module description.
6263         * m4/pread.m4 (gl_FUNC_PREAD): Move AC_LIBOBJ invocation from here...
6264         * modules/pread (configure.ac): ... to here.
6265
6266 2011-05-21  Bruno Haible  <bruno@clisp.org>
6267
6268         posix_spawn*: Move AC_LIBOBJ invocations to module description.
6269         * m4/posix_spawn.m4 (gl_PREREQ_POSIX_SPAWN_INTERNAL): Renamed from
6270         gl_POSIX_SPAWN_INTERNAL. Move AC_LIBOBJ invocation from here...
6271         * modules/posix_spawn (configure.ac): ... to here.
6272         * modules/posix_spawnp (configure.ac): ... and here.
6273
6274 2011-05-21  Bruno Haible  <bruno@clisp.org>
6275
6276         popen: Move AC_LIBOBJ invocations to module description.
6277         * m4/popen.m4 (gl_FUNC_POPEN): Move AC_LIBOBJ and gl_PREREQ_POPEN
6278         invocations from here...
6279         * modules/popen (configure.ac): ... to here.
6280
6281 2011-05-21  Bruno Haible  <bruno@clisp.org>
6282
6283         poll: Move AC_LIBOBJ invocations to module description.
6284         * m4/poll.m4 (gl_FUNC_POLL): Move AC_LIBOBJ and gl_PREREQ_POLL
6285         invocations from here...
6286         * modules/poll (configure.ac): ... to here.
6287
6288 2011-05-21  Bruno Haible  <bruno@clisp.org>
6289
6290         pipe-posix: Move AC_LIBOBJ invocations to module description.
6291         * m4/pipe.m4 (gl_FUNC_PIPE): Move AC_LIBOBJ invocation from here...
6292         * modules/pipe-posix (configure.ac): ... to here.
6293
6294 2011-05-21  Bruno Haible  <bruno@clisp.org>
6295
6296         openat: Respect rules for use of AC_LIBOBJ.
6297         * m4/openat.m4 (gl_FUNC_OPENAT): Call AC_CHECK_FUNCS instead of
6298         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocations from here...
6299         * modules/openat (configure.ac): ... to here.
6300
6301 2011-05-21  Bruno Haible  <bruno@clisp.org>
6302
6303         obstack-printf*: Move AC_LIBOBJ invocations to module description.
6304         * m4/obstack-printf.m4 (gl_REPLACE_OBSTACK_PRINTF): Move AC_LIBOBJ
6305         invocation from here...
6306         * modules/obstack-printf (configure.ac): ... to here.
6307         * modules/obstack-printf-posix (configure.ac): ... and here.
6308
6309 2011-05-21  Bruno Haible  <bruno@clisp.org>
6310
6311         nl_langinfo: Move AC_LIBOBJ invocations to module description.
6312         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Move AC_LIBOBJ invocations
6313         from here...
6314         * modules/nl_langinfo (configure.ac): ... to here.
6315
6316 2011-05-21  Bruno Haible  <bruno@clisp.org>
6317
6318         nanosleep: Move AC_LIBOBJ invocations to module description.
6319         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Move AC_LIBOBJ and
6320         gl_PREREQ_NANOSLEEP invocations from here...
6321         * modules/nanosleep (configure.ac): ... to here.
6322
6323 2011-05-21  Bruno Haible  <bruno@clisp.org>
6324
6325         mountlist: Move AC_LIBOBJ invocations to module description.
6326         * m4/mountlist.m4 (gl_MOUNTLIST): Move AC_LIBOBJ and
6327         gl_PREREQ_MOUNTLIST_EXTRA invocations from here...
6328         * modules/mountlist (configure.ac): ... to here.
6329
6330 2011-05-21  Bruno Haible  <bruno@clisp.org>
6331
6332         mktime: Respect rules for use of AC_LIBOBJ.
6333         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove macro.
6334         (gl_FUNC_MKTIME): Inline it here. Set gl_cv_func_working_mktime. Move
6335         AC_LIBOBJ and gl_PREREQ_MKTIME invocations from here...
6336         (gl_FUNC_MKTIME_INTERNAL): ... and here...
6337         * modules/mktime (configure.ac): ... to here.
6338         * modules/mktime-internal (configure.ac): ... and here.
6339         * m4/timegm.m4 (gl_FUNC_TIMEGM): Update.
6340
6341 2011-05-21  Bruno Haible  <bruno@clisp.org>
6342
6343         mkstemps: Move AC_LIBOBJ invocations to module description.
6344         * m4/mkstemps.m4 (gl_FUNC_MKSTEMPS): Move AC_LIBOBJ invocation from
6345         here...
6346         * modules/mkstemps (configure.ac): ... to here.
6347
6348 2011-05-21  Bruno Haible  <bruno@clisp.org>
6349
6350         mkstemp: Move AC_LIBOBJ invocations to module description.
6351         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Move AC_LIBOBJ and
6352         gl_PREREQ_MKSTEMP invocations from here...
6353         * modules/mkstemp (configure.ac): ... to here.
6354
6355 2011-05-21  Bruno Haible  <bruno@clisp.org>
6356
6357         mkostemps: Move AC_LIBOBJ invocations to module description.
6358         * m4/mkostemps.m4 (gl_FUNC_MKOSTEMPS): Move AC_LIBOBJ invocation from
6359         here...
6360         * modules/mkostemps (configure.ac): ... to here.
6361
6362 2011-05-21  Bruno Haible  <bruno@clisp.org>
6363
6364         mkostemp: Move AC_LIBOBJ invocations to module description.
6365         * m4/mkostemp.m4 (gl_FUNC_MKOSTEMP): Move AC_LIBOBJ and
6366         gl_PREREQ_MKOSTEMP invocations from here...
6367         * modules/mkostemp (configure.ac): ... to here.
6368
6369 2011-05-21  Bruno Haible  <bruno@clisp.org>
6370
6371         mknod: Move AC_LIBOBJ invocations to module description.
6372         * m4/mknod.m4 (gl_FUNC_MKNOD): Move AC_LIBOBJ invocations from here...
6373         * modules/mknod (configure.ac): ... to here.
6374
6375 2011-05-21  Bruno Haible  <bruno@clisp.org>
6376
6377         mkfifoat: Move AC_LIBOBJ invocations to module description.
6378         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Move AC_LIBOBJ invocations from
6379         here...
6380         * modules/mkfifoat (configure.ac): ... to here.
6381
6382 2011-05-21  Bruno Haible  <bruno@clisp.org>
6383
6384         mkfifo: Respect rules for use of AC_LIBOBJ.
6385         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Move AC_LIBOBJ invocations from
6386         here...
6387         * modules/mkfifo (configure.ac): ... to here.
6388
6389 2011-05-21  Bruno Haible  <bruno@clisp.org>
6390
6391         mkdtemp: Move AC_LIBOBJ invocations to module description.
6392         * m4/mkdtemp.m4 (gl_FUNC_MKDTEMP): Move AC_LIBOBJ and gl_PREREQ_MKDTEMP
6393         invocations from here...
6394         * modules/mkdtemp (configure.ac): ... to here.
6395
6396 2011-05-21  Bruno Haible  <bruno@clisp.org>
6397
6398         mkdir: Move AC_LIBOBJ invocations to module description.
6399         * m4/mkdir.m4 (gl_FUNC_MKDIR): Move AC_LIBOBJ invocations from here...
6400         * modules/mkdir (configure.ac): ... to here.
6401
6402 2011-05-21  Bruno Haible  <bruno@clisp.org>
6403
6404         memset: Move AC_LIBOBJ invocations to module description.
6405         * m4/memset.m4 (gl_FUNC_MEMSET): Call AC_CHECK_FUNCS instead of
6406         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMSET invocations from
6407         here...
6408         * modules/memset (configure.ac): ... to here.
6409
6410 2011-05-21  Bruno Haible  <bruno@clisp.org>
6411
6412         memrchr: Move AC_LIBOBJ invocations to module description.
6413         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Call AC_CHECK_FUNCS instead of
6414         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMRCHR invocations from
6415         here...
6416         * modules/memrchr (configure.ac): ... to here.
6417
6418 2011-05-21  Bruno Haible  <bruno@clisp.org>
6419
6420         mempcpy: Move AC_LIBOBJ invocations to module description.
6421         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Call AC_CHECK_FUNCS instead of
6422         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMPCPY invocations from
6423         here...
6424         * modules/mempcpy (configure.ac): ... to here.
6425
6426 2011-05-21  Bruno Haible  <bruno@clisp.org>
6427
6428         memmove: Move AC_LIBOBJ invocations to module description.
6429         * m4/memmove.m4 (gl_FUNC_MEMMOVE): Call AC_CHECK_FUNCS instead of
6430         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMMOVE invocations from
6431         here...
6432         * modules/memmove (configure.ac): ... to here.
6433
6434 2011-05-21  Bruno Haible  <bruno@clisp.org>
6435
6436         memmem*: Move AC_LIBOBJ invocations to module description.
6437         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): Call AC_CHECK_FUNCS instead of
6438         AC_REPLACE_FUNCS. Set HAVE_MEMMEM. Move AC_LIBOBJ invocations from
6439         here...
6440         (gl_FUNC_MEMMEM): ... and here...
6441         * modules/memmem-simple (configure.ac): ... to here.
6442         * modules/memmem (configure.ac): ... and here.
6443
6444 2011-05-21  Bruno Haible  <bruno@clisp.org>
6445
6446         memcpy: Move AC_LIBOBJ invocations to module description.
6447         * m4/memcpy.m4 (gl_FUNC_MEMCPY): Call AC_CHECK_FUNCS instead of
6448         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMCPY invocations from
6449         here...
6450         * modules/memcpy (configure.ac): ... to here.
6451
6452 2011-05-21  Bruno Haible  <bruno@clisp.org>
6453
6454         memcmp: Simplify autoconf macro.
6455         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Merge the cross-compilation code into
6456         the AC_RUN_IFELSE invocation. Set gl_func_memcmp.
6457         * modules/memcmp (Depends-on, configure.ac): Test gl_func_memcmp.
6458
6459 2011-05-21  Bruno Haible  <bruno@clisp.org>
6460
6461         memcmp: Move AC_LIBOBJ invocations to module description.
6462         * m4/memcmp.m4 (AC_FUNC_MEMCMP): Remove macro.
6463         (gl_FUNC_MEMCMP): Inline it here. Set gl_cv_func_memcmp_working. Move
6464         AC_LIBOBJ and gl_PREREQ_MEMCMP invocations from here...
6465         * modules/memcmp (configure.ac): ... to here.
6466         (Depends-on): Update conditions.
6467
6468 2011-05-21  Bruno Haible  <bruno@clisp.org>
6469
6470         memchr: Respect rules for use of AC_LIBOBJ.
6471         * m4/memchr.m4 (gl_FUNC_MEMCHR): Move AC_LIBOBJ and gl_PREREQ_MEMCHR
6472         invocations from here...
6473         * modules/memchr (configure.ac): ... to here.
6474
6475 2011-05-21  Bruno Haible  <bruno@clisp.org>
6476
6477         mbtowc: Move AC_LIBOBJ invocations to module description.
6478         * m4/mbtowc.m4 (gl_FUNC_MBTOWC): Move AC_LIBOBJ and gl_PREREQ_MBTOWC
6479         invocations from here...
6480         * modules/mbtowc (configure.ac): ... to here.
6481
6482 2011-05-21  Bruno Haible  <bruno@clisp.org>
6483
6484         mbsrtowcs: Move AC_LIBOBJ invocations to module description.
6485         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Move AC_LIBOBJ and
6486         gl_PREREQ_MBSRTOWCS invocations from here...
6487         * modules/mbsrtowcs (configure.ac): ... to here.
6488
6489 2011-05-21  Bruno Haible  <bruno@clisp.org>
6490
6491         mbsnrtowcs: Move AC_LIBOBJ invocations to module description.
6492         * m4/mbsnrtowcs.m4 (gl_FUNC_MBSNRTOWCS): Move AC_LIBOBJ and
6493         gl_PREREQ_MBSNRTOWCS invocations from here...
6494         * modules/mbsnrtowcs (configure.ac): ... to here.
6495
6496 2011-05-21  Bruno Haible  <bruno@clisp.org>
6497
6498         mbsinit: Move AC_LIBOBJ invocations to module description.
6499         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Move AC_LIBOBJ and gl_PREREQ_MBSINIT
6500         invocations from here...
6501         * modules/mbsinit (configure.ac): ... to here.
6502
6503 2011-05-21  Bruno Haible  <bruno@clisp.org>
6504
6505         mbrlen: Move AC_LIBOBJ invocations to module description.
6506         * m4/mbrlen.m4 (gl_FUNC_MBRLEN): Move AC_LIBOBJ and gl_PREREQ_MBRLEN
6507         invocations from here...
6508         * modules/mbrlen (configure.ac): ... to here.
6509
6510 2011-05-21  Bruno Haible  <bruno@clisp.org>
6511
6512         mbrtowc: Respect rules for use of AC_LIBOBJ.
6513         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): Move AC_LIBOBJ and gl_PREREQ_MBRTOWC
6514         invocations from here...
6515         * modules/mbrtowc (configure.ac): ... to here.
6516
6517 2011-05-21  Bruno Haible  <bruno@clisp.org>
6518
6519         malloc-*: Move AC_LIBOBJ invocations to module description.
6520         * m4/malloc.m4 (gl_REPLACE_MALLOC): Remove macro.
6521         (gl_FUNC_MALLOC_GNU, gl_FUNC_MALLOC_POSIX): Inline it here. Move
6522         AC_LIBOBJ invocations from here...
6523         * modules/malloc-gnu (configure.ac): ... to here.
6524         * modules/malloc-posix (configure.ac): ... and here.
6525
6526 2011-05-21  Bruno Haible  <bruno@clisp.org>
6527
6528         lstat, openat: Respect rules for use of AC_LIBOBJ.
6529         * m4/lstat.m4 (gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): Renamed from
6530         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK. Set variable
6531         gl_cv_func_lstat_dereferences_slashed_symlink. Don't invoke AC_LIBOBJ.
6532         (gl_PREREQ_LSTAT): New macro, extracted from gl_FUNC_LSTAT.
6533         (gl_FUNC_LSTAT): Update. Remove gl_PREREQ_LSTAT code.
6534         * modules/lstat (configure.ac): Invoke AC_LIBOBJ and gl_PREREQ_LSTAT
6535         here.
6536         * m4/openat.m4 (gl_FUNC_OPENAT): Update.
6537
6538 2011-05-21  Bruno Haible  <bruno@clisp.org>
6539
6540         lseek: Move AC_LIBOBJ invocations to module description.
6541         * m4/lseek.m4 (gl_REPLACE_LSEEK): Remove macro.
6542         (gl_FUNC_LSEEK): Inline it here. Move AC_LIBOBJ invocation from here...
6543         * modules/lseek (configure.ac): ... to here.
6544
6545 2011-05-21  Bruno Haible  <bruno@clisp.org>
6546
6547         linkat: Move AC_LIBOBJ invocations to module description.
6548         * m4/linkat.m4 (gl_FUNC_LINKAT): Move AC_LIBOBJ invocations from
6549         here...
6550         * modules/linkat (configure.ac): ... to here.
6551
6552 2011-05-21  Bruno Haible  <bruno@clisp.org>
6553
6554         link: Respect rules for use of AC_LIBOBJ.
6555         * m4/link.m4 (gl_FUNC_LINK): Move AC_LIBOBJ invocations from here...
6556         * modules/link (configure.ac): ... to here.
6557
6558 2011-05-21  Bruno Haible  <bruno@clisp.org>
6559
6560         lchown: Move AC_LIBOBJ invocations to module description.
6561         * m4/lchown.m4 (gl_FUNC_EUIDACCESS): Call AC_CHECK_FUNCS instead of
6562         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocations from here...
6563         * modules/lchown (configure.ac): ... to here.
6564
6565 2011-05-21  Bruno Haible  <bruno@clisp.org>
6566
6567         iswctype: Move AC_LIBOBJ invocations to module description.
6568         * m4/iswctype.m4 (gl_FUNC_ISWCTYPE): Move AC_LIBOBJ invocation from
6569         here...
6570         * modules/iswctype (configure.ac): ... to here.
6571
6572 2011-05-21  Bruno Haible  <bruno@clisp.org>
6573
6574         iswblank: Move AC_LIBOBJ invocations to module description.
6575         * m4/iswblank.m4 (gl_FUNC_ISWBLANK): Move AC_LIBOBJ invocation from
6576         here...
6577         * modules/iswblank (configure.ac): ... to here.
6578
6579 2011-05-21  Bruno Haible  <bruno@clisp.org>
6580
6581         atanl: Move AC_LIBOBJ invocations to module description.
6582         * m4/atanl.m4 (gl_FUNC_ATANL): Move AC_LIBOBJ invocation from here...
6583         * modules/atanl (configure.ac): ... to here.
6584
6585 2011-05-21  Bruno Haible  <bruno@clisp.org>
6586
6587         acosl: Move AC_LIBOBJ invocations to module description.
6588         * m4/acosl.m4 (gl_FUNC_ACOSL): Move AC_LIBOBJ invocation from here...
6589         * modules/acosl (configure.ac): ... to here.
6590
6591 2011-05-21  Bruno Haible  <bruno@clisp.org>
6592
6593         asinl: Respect rules for use of AC_LIBOBJ.
6594         * m4/asinl.m4 (gl_FUNC_ASINL): Move AC_LIBOBJ invocation from here...
6595         * modules/asinl (configure.ac): ... to here.
6596
6597 2011-05-21  Bruno Haible  <bruno@clisp.org>
6598
6599         tanl: Move AC_LIBOBJ invocations to module description.
6600         * m4/tanl.m4 (gl_FUNC_TANL): Move AC_LIBOBJ invocations from here...
6601         * modules/tanl (configure.ac): ... to here.
6602
6603 2011-05-21  Bruno Haible  <bruno@clisp.org>
6604
6605         cosl: Move AC_LIBOBJ invocations to module description.
6606         * m4/cosl.m4 (gl_FUNC_COSL): Move AC_LIBOBJ invocations from here...
6607         * modules/cosl (configure.ac): ... to here.
6608
6609 2011-05-21  Bruno Haible  <bruno@clisp.org>
6610
6611         sinl: Move AC_LIBOBJ invocations to module description.
6612         * m4/sinl.m4 (gl_FUNC_SINL): Move AC_LIBOBJ invocations from here...
6613         * modules/sinl (configure.ac): ... to here.
6614
6615 2011-05-21  Bruno Haible  <bruno@clisp.org>
6616
6617         logl: Move AC_LIBOBJ invocations to module description.
6618         * m4/logl.m4 (gl_FUNC_LOGL): Move AC_LIBOBJ invocation from here...
6619         * modules/logl (configure.ac): ... to here.
6620
6621 2011-05-21  Bruno Haible  <bruno@clisp.org>
6622
6623         expl: Move AC_LIBOBJ invocations to module description.
6624         * m4/expl.m4 (gl_FUNC_EXPL): Move AC_LIBOBJ invocation from here...
6625         * modules/expl (configure.ac): ... to here.
6626
6627 2011-05-21  Bruno Haible  <bruno@clisp.org>
6628
6629         roundl: Move AC_LIBOBJ invocations to module description.
6630         * m4/roundl.m4 (gl_FUNC_ROUNDL): Move AC_LIBOBJ invocation from here...
6631         * modules/roundl (configure.ac): ... to here.
6632
6633 2011-05-21  Bruno Haible  <bruno@clisp.org>
6634
6635         round: Move AC_LIBOBJ invocations to module description.
6636         * m4/round.m4 (gl_FUNC_ROUND): Move AC_LIBOBJ invocation from here...
6637         * modules/round (configure.ac): ... to here.
6638
6639 2011-05-21  Bruno Haible  <bruno@clisp.org>
6640
6641         roundf: Move AC_LIBOBJ invocations to module description.
6642         * m4/roundf.m4 (gl_FUNC_ROUNDF): Move AC_LIBOBJ invocation from here...
6643         * modules/roundf (configure.ac): ... to here.
6644
6645 2011-05-21  Bruno Haible  <bruno@clisp.org>
6646
6647         truncl: Move AC_LIBOBJ invocations to module description.
6648         * m4/truncl.m4 (gl_FUNC_TRUNCL): Move AC_LIBOBJ invocation from here...
6649         * modules/truncl (configure.ac): ... to here.
6650
6651 2011-05-21  Bruno Haible  <bruno@clisp.org>
6652
6653         trunc: Move AC_LIBOBJ invocations to module description.
6654         * m4/trunc.m4 (gl_FUNC_TRUNC): Move AC_LIBOBJ invocation from here...
6655         * modules/trunc (configure.ac): ... to here.
6656
6657 2011-05-21  Bruno Haible  <bruno@clisp.org>
6658
6659         truncf: Move AC_LIBOBJ invocations to module description.
6660         * m4/truncf.m4 (gl_FUNC_TRUNCF): Move AC_LIBOBJ invocation from here...
6661         * modules/truncf (configure.ac): ... to here.
6662
6663 2011-05-21  Bruno Haible  <bruno@clisp.org>
6664
6665         ceill: Move AC_LIBOBJ invocations to module description.
6666         * m4/ceill.m4 (gl_FUNC_CEILL): Move AC_LIBOBJ invocation from here...
6667         * modules/ceill (configure.ac): ... to here.
6668
6669 2011-05-21  Bruno Haible  <bruno@clisp.org>
6670
6671         ceil: Move AC_LIBOBJ invocations to module description.
6672         * m4/ceil.m4 (gl_FUNC_CEIL): Move AC_LIBOBJ invocation from here...
6673         * modules/ceil (configure.ac): ... to here.
6674
6675 2011-05-21  Bruno Haible  <bruno@clisp.org>
6676
6677         ceilf: Move AC_LIBOBJ invocations to module description.
6678         * m4/ceilf.m4 (gl_FUNC_CEILF): Move AC_LIBOBJ invocation from here...
6679         * modules/ceilf (configure.ac): ... to here.
6680
6681 2011-05-21  Bruno Haible  <bruno@clisp.org>
6682
6683         floorl: Respect rules for use of AC_LIBOBJ.
6684         * m4/floorl.m4 (gl_FUNC_FLOORL): Move AC_LIBOBJ invocation from here...
6685         * modules/floorl (configure.ac): ... to here.
6686
6687 2011-05-21  Bruno Haible  <bruno@clisp.org>
6688
6689         floor: Respect rules for use of AC_LIBOBJ.
6690         * m4/floor.m4 (gl_FUNC_FLOOR): Move AC_LIBOBJ invocation from here...
6691         * modules/floor (configure.ac): ... to here.
6692
6693 2011-05-21  Bruno Haible  <bruno@clisp.org>
6694
6695         floorf: Move AC_LIBOBJ invocations to module description.
6696         * m4/floorf.m4 (gl_FUNC_FLOORF): Move AC_LIBOBJ invocation from here...
6697         * modules/floorf (configure.ac): ... to here.
6698
6699 2011-05-20  Bruno Haible  <bruno@clisp.org>
6700
6701         sqrtl: Respect rules for use of AC_LIBOBJ.
6702         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Move AC_LIBOBJ invocation from here...
6703         * modules/sqrtl (configure.ac): ... to here.
6704
6705 2011-05-20  Bruno Haible  <bruno@clisp.org>
6706
6707         ldexpl: Respect rules for use of AC_LIBOBJ.
6708         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Move AC_LIBOBJ invocation from here...
6709         * modules/ldexpl (configure.ac): ... to here.
6710
6711 2011-05-20  Bruno Haible  <bruno@clisp.org>
6712
6713         frexpl*: Respect rules for use of AC_LIBOBJ.
6714         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): Move AC_LIBOBJ
6715         invocation from here...
6716         * modules/frexpl (configure.ac): ... to here.
6717         * modules/frexpl-nolibm (configure.ac): ... and here.
6718
6719 2011-05-20  Bruno Haible  <bruno@clisp.org>
6720
6721         frexp, frexp-nolibm: Move AC_LIBOBJ invocations to module description.
6722         * m4/frexp.m4 (gl_FUNC_FREXP, gl_FUNC_FREXP_NO_LIBM): Move AC_LIBOBJ
6723         invocation from here...
6724         * modules/frexp (configure.ac): ... to here.
6725         * modules/frexp-nolibm (configure.ac): ... and here.
6726
6727 2011-05-20  Bruno Haible  <bruno@clisp.org>
6728
6729         isnan: Respect rules for use of AC_LIBOBJ.
6730         * m4/isnan.m4 (gl_ISNAN): Don't do the AC_LIBOBJ and gl_PREREQ_ISNAN*
6731         invocations here.
6732         * modules/isnanf (configure.ac): Require gl_ISNAN if it exists. Test
6733         REPLACE_ISNAN.
6734         * modules/isnand (configure.ac): Likewise.
6735         * modules/isnanl (configure.ac): Likewise.
6736
6737 2011-05-20  Bruno Haible  <bruno@clisp.org>
6738
6739         isnanl*: Respect rules for use of AC_LIBOBJ.
6740         * m4/isnanl.m4 (gl_FUNC_ISNANL, gl_FUNC_ISNANL_NO_LIBM): Move AC_LIBOBJ
6741         invocation from here...
6742         * modules/isnanl (configure.ac): ... to here.
6743         * modules/isnanl-nolibm (configure.ac): ... and here.
6744
6745 2011-05-20  Bruno Haible  <bruno@clisp.org>
6746
6747         isnand*: Move AC_LIBOBJ invocations to module description.
6748         * m4/isnand.m4 (gl_FUNC_ISNAND, gl_FUNC_ISNAND_NO_LIBM): Move AC_LIBOBJ
6749         invocation from here...
6750         * modules/isnand (configure.ac): ... to here.
6751         * modules/isnand-nolibm (configure.ac): ... and here.
6752
6753 2011-05-20  Bruno Haible  <bruno@clisp.org>
6754
6755         isnanf*: Move AC_LIBOBJ invocations to module description.
6756         * m4/isnanf.m4 (gl_FUNC_ISNANF, gl_FUNC_ISNANF_NO_LIBM): Move AC_LIBOBJ
6757         invocation from here...
6758         * modules/isnanf (configure.ac): ... to here.
6759         * modules/isnanf-nolibm (configure.ac): ... and here.
6760
6761 2011-05-20  Bruno Haible  <bruno@clisp.org>
6762
6763         isnan*: Separate the AC_LIBOBJ invocations.
6764         * m4/isnanf.m4 (gl_PREREQ_ISNANF): Renamed from gl_BUILD_ISNANF. Remove
6765         AC_LIBOBJ invocation.
6766         (gl_FUNC_ISNANF, gl_FUNC_ISNANF_NO_LIBM): Update. Invoke AC_LIBOBJ
6767         here.
6768         * m4/isnand.m4 (gl_PREREQ_ISNAND): Renamed from gl_BUILD_ISNAND. Remove
6769         AC_LIBOBJ invocation.
6770         (gl_FUNC_ISNAND, gl_FUNC_ISNAND_NO_LIBM): Update. Invoke AC_LIBOBJ
6771         here.
6772         * m4/isnanl.m4 (gl_PREREQ_ISNANL): Renamed from gl_BUILD_ISNANL. Remove
6773         AC_LIBOBJ invocation.
6774         (gl_FUNC_ISNANL, gl_FUNC_ISNANL_NO_LIBM): Update. Invoke AC_LIBOBJ
6775         here.
6776         * m4/isnan.m4 (gl_ISNAN): Update. Invoke AC_LIBOBJ here.
6777
6778 2011-05-08  Bruno Haible  <bruno@clisp.org>
6779
6780         isinf: Move AC_LIBOBJ invocations to module description.
6781         * m4/isinf.m4 (gl_ISINF): Move AC_LIBOBJ invocation from here...
6782         * modules/isinf (configure.ac): ... to here.
6783
6784 2011-05-08  Bruno Haible  <bruno@clisp.org>
6785
6786         isfinite: Move AC_LIBOBJ invocations to module description.
6787         * m4/isfinite.m4 (gl_ISFINITE): Move AC_LIBOBJ invocation from here...
6788         * modules/isfinite (configure.ac): ... to here.
6789
6790 2011-05-08  Bruno Haible  <bruno@clisp.org>
6791
6792         isblank: Move AC_LIBOBJ invocations to module description.
6793         * m4/isblank.m4 (gl_FUNC_ISBLANK): Move AC_LIBOBJ invocation from
6794         here...
6795         * modules/isblank (configure.ac): ... to here.
6796
6797 2011-05-08  Bruno Haible  <bruno@clisp.org>
6798
6799         isapipe: Move AC_LIBOBJ invocations to module description.
6800         * m4/isapipe.m4 (gl_ISAPIPE): Set HAVE_ISAPIPE. Move AC_LIBOBJ and
6801         gl_PREREQ_ISAPIPE invocations from here...
6802         * modules/isapipe (configure.ac): ... to here.
6803         (Depends-on): Update condition.
6804
6805 2011-05-08  Bruno Haible  <bruno@clisp.org>
6806
6807         ioctl: Move AC_LIBOBJ invocations to module description.
6808         * m4/ioctl.m4 (gl_FUNC_IOCTL): Set HAVE_IOCTL. Move AC_LIBOBJ
6809         invocations from here...
6810         * modules/ioctl (configure.ac): ... to here.
6811         (Depends-on): Update condition.
6812
6813 2011-05-08  Bruno Haible  <bruno@clisp.org>
6814
6815         imaxdiv: Move AC_LIBOBJ invocations to module description.
6816         * m4/imaxdiv.m4 (gl_FUNC_IMAXDIV): Move AC_LIBOBJ and gl_PREREQ_IMAXDIV
6817         invocations from here...
6818         * modules/imaxdiv (configure.ac): ... to here.
6819
6820 2011-05-08  Bruno Haible  <bruno@clisp.org>
6821
6822         imaxabs: Move AC_LIBOBJ invocations to module description.
6823         * m4/imaxabs.m4 (gl_FUNC_IMAXABS): Move AC_LIBOBJ and gl_PREREQ_IMAXABS
6824         invocations from here...
6825         * modules/imaxabs (configure.ac): ... to here.
6826
6827 2011-05-08  Bruno Haible  <bruno@clisp.org>
6828
6829         getaddrinfo: Move AC_LIBOBJ invocations to module description.
6830         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Set HAVE_GETADDRINFO, Move
6831         AC_LIBOBJ invocations from here...
6832         * modules/getaddrinfo (configure.ac): ... to here.
6833         (Depends-on): Add conditions.
6834
6835 2011-05-08  Bruno Haible  <bruno@clisp.org>
6836
6837         inet_pton. getaddrinfo: Respect rules for use of AC_LIBOBJ.
6838         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Set HAVE_INET_PTON. Call
6839         AC_CHECK_FUNCS instead of AC_REPLACE_FUNCS. Don't invoke
6840         gl_PREREQ_INET_PTON. Move tests for declaration of inet_pton here...
6841         (gl_PREREQ_INET_PTON): ... from here.
6842         * modules/inet_pton (configure.ac): Invoke AC_LIBOBJ and
6843         gl_PREREQ_INET_PTON here.
6844         (Depends-on): Update condition.
6845
6846 2011-05-08  Bruno Haible  <bruno@clisp.org>
6847
6848         inet_ntop. getaddrinfo: Respect rules for use of AC_LIBOBJ.
6849         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Set HAVE_INET_NTOP. Call
6850         AC_CHECK_FUNCS instead of AC_REPLACE_FUNCS. Don't invoke
6851         gl_PREREQ_INET_NTOP. Move tests for declaration of inet_ntop here...
6852         (gl_PREREQ_INET_NTOP): ... from here.
6853         * modules/inet_ntop (configure.ac): Invoke AC_LIBOBJ and
6854         gl_PREREQ_INET_NTOP here.
6855         (Depends-on): Update condition.
6856
6857 2011-05-08  Bruno Haible  <bruno@clisp.org>
6858
6859         iconv_open: Move AC_LIBOBJ invocations to module description.
6860         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN, gl_REPLACE_ICONV_OPEN): Move
6861         AC_LIBOBJ invocations from here...
6862         * modules/iconv_open (configure.ac): ... to here.
6863
6864 2011-05-08  Bruno Haible  <bruno@clisp.org>
6865
6866         iconv_open, iconv_open-utf: Respect rules for use of AC_LIBOBJ.
6867         If module 'iconv_open' is among the main modules and module
6868         'iconv_open-utf' is among the tests dependencies, then
6869         REPLACE_ICONV_UTF will be defined to 1, hence iconv_open() in lib may
6870         return the special iconv_t values. Therefore iconv() and iconv_close()
6871         must support these special iconv_t values, already in lib, not only in
6872         tests.
6873         * m4/iconv_open-utf.m4: New file, extracted from m4/iconv_open.m4.
6874         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Invoke
6875         gl_FUNC_ICONV_OPEN_UTF_SUPPORT if present.
6876         (gl_FUNC_ICONV_OPEN_UTF): Remove macro.
6877         * modules/iconv_open (Files): Add lib/iconv.c, lib/iconv_close.c.
6878         (Depends-on): Add the dependencies of iconv_open-utf.
6879         * modules/iconv_open-utf (Files): Add m4/iconv_open-utf.m4. Remove
6880         m4/iconv_open.m4, lib/iconv.c, lib/iconv_close.c.
6881         (Depends-on): Remove modules needed by lib/iconv.c, lib/iconv_close.c.
6882
6883 2011-05-08  Bruno Haible  <bruno@clisp.org>
6884
6885         group-member: Move AC_LIBOBJ invocations to module description.
6886         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Move AC_LIBOBJ and
6887         gl_PREREQ_GROUP_MEMBER invocations from here...
6888         * modules/group-member (configure.ac): ... to here.
6889
6890 2011-05-08  Bruno Haible  <bruno@clisp.org>
6891
6892         grantpt: Move AC_LIBOBJ invocations to module description.
6893         * m4/grantpt.m4 (gl_FUNC_GRANTPT): Move AC_LIBOBJ and gl_PREREQ_GRANTPT
6894         invocations from here...
6895         * modules/grantpt (configure.ac): ... to here.
6896
6897 2011-05-08  Bruno Haible  <bruno@clisp.org>
6898
6899         glob: Move AC_LIBOBJ invocations to module description.
6900         * m4/glob.m4 (gl_GLOB): Move AC_LIBOBJ and gl_PREREQ_GLOB invocations
6901         from here...
6902         * modules/glob (configure.ac): ... to here.
6903
6904 2011-05-08  Bruno Haible  <bruno@clisp.org>
6905
6906         getusershell: Move AC_LIBOBJ invocations to module description.
6907         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): Set HAVE_GETUSERSHELL.
6908         Move AC_LIBOBJ invocation from here...
6909         * modules/getusershell (configure.ac): ... to here.
6910         (Depends-on): Update condition.
6911
6912 2011-05-08  Bruno Haible  <bruno@clisp.org>
6913
6914         gettimeofday: Move AC_LIBOBJ invocations to module description.
6915         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY,
6916         gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Move AC_LIBOBJ and
6917         gl_PREREQ_GETTIMEOFDAY invocations from here...
6918         * modules/gettimeofday (configure.ac): ... to here.
6919
6920 2011-05-08  Bruno Haible  <bruno@clisp.org>
6921
6922         gettimeofday, tzset: Respect rules for use of AC_LIBOBJ.
6923         * modules/tzset (configure.ac): Don't invoke gl_FUNC_TZSET_CLOBBER,
6924         just gl_FUNC_TZSET.
6925         * m4/tzset.m4 (gl_FUNC_TZSET): New macro.
6926         (gl_FUNC_TZSET_CLOBBER): Remove actions.
6927         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Invoke
6928         gl_FUNC_TZSET_CLOBBER and its actions here, if present.
6929
6930 2011-05-08  Bruno Haible  <bruno@clisp.org>
6931
6932         getsubopt: Move AC_LIBOBJ invocations to module description.
6933         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Move AC_LIBOBJ and
6934         gl_PREREQ_GETSUBOPT invocations from here...
6935         * modules/getsubopt (configure.ac): ... to here.
6936
6937 2011-05-08  Bruno Haible  <bruno@clisp.org>
6938
6939         getpass-gnu: Move AC_LIBOBJ invocations to module description.
6940         * m4/getpass.m4 (gl_FUNC_GETPASS_GNU): Set REPLACE_GETPASS. Move
6941         AC_LIBOBJ and gl_PREREQ_GETPASS invocations from here...
6942         * modules/getpass-gnu (configure.ac): ... to here.
6943
6944 2011-05-08  Bruno Haible  <bruno@clisp.org>
6945
6946         getpass: Move AC_LIBOBJ invocations to module description.
6947         * m4/getpass.m4 (gl_FUNC_GETPASS): Set HAVE_GETPASS. Move AC_LIBOBJ and
6948         gl_PREREQ_GETPASS invocations from here...
6949         * modules/getpass (configure.ac): ... to here.
6950
6951 2011-05-08  Bruno Haible  <bruno@clisp.org>
6952
6953         getpagesize: Move AC_LIBOBJ invocations to module description.
6954         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Move AC_LIBOBJ invocation
6955         from here...
6956         * modules/getpagesize (configure.ac): ... to here.
6957
6958 2011-05-08  Bruno Haible  <bruno@clisp.org>
6959
6960         getopt: Move AC_LIBOBJ invocations to module description.
6961         * m4/getopt.m4 (gl_REPLACE_GETOPT): Remove macro.
6962         (gl_FUNC_GETOPT): Inline it here. Move AC_LIBOBJ and gl_PREREQ_GETOPT
6963         invocations from here...
6964         * modules/getopt-gnu (configure.ac): ... to here.
6965         * modules/getopt-posix (configure.ac): ... and here.
6966         (Depends-on): Update condition.
6967
6968 2011-05-08  Bruno Haible  <bruno@clisp.org>
6969
6970         getopt, argp: Respect rules for use of AC_LIBOBJ.
6971         * m4/argp.m4 (gl_ARGP): Don't invoke gl_REPLACE_GETOPT.
6972         (gl_REPLACE_GETOPT_ALWAYS): New macro.
6973         * m4/getopt.m4 (gl_FUNC_GETOPT_POSIX): Test whether
6974         gl_REPLACE_GETOPT_ALWAYS is defined. Set REPLACE_GETOPT.
6975
6976 2011-05-08  Bruno Haible  <bruno@clisp.org>
6977
6978         getlogin_r: Move AC_LIBOBJ invocations to module description.
6979         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Move AC_LIBOBJ and
6980         gl_PREREQ_GETLOGIN_R invocations from here...
6981         * modules/getlogin_r (configure.ac): ... to here.
6982
6983 2011-05-08  Bruno Haible  <bruno@clisp.org>
6984
6985         getlogin: Move AC_LIBOBJ invocations to module description.
6986         * m4/getlogin.m4 (gl_FUNC_GETLOGIN): Move AC_LIBOBJ invocation from
6987         here...
6988         * modules/getlogin (configure.ac): ... to here.
6989
6990 2011-05-08  Bruno Haible  <bruno@clisp.org>
6991
6992         getloadavg: Move AC_LIBOBJ invocations to module description.
6993         * m4/getloadavg.m4 (gl_FUNC_GETDELIM): Set HAVE_GETLOADAVG. Move
6994         AC_LIBOBJ and gl_PREREQ_GETLOADAVG invocations from here...
6995         * modules/getloadavg (configure.ac): ... to here.
6996
6997 2011-05-08  Bruno Haible  <bruno@clisp.org>
6998
6999         gethrxtime: Move AC_LIBOBJ invocations to module description.
7000         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Move code that determines
7001         LIB_GETHRXTIME from here...
7002         (gl_GETHRXTIME): ... to here. Move AC_LIBOBJ and gl_PREREQ_GETHRXTIME
7003         invocations from here...
7004         * modules/gethrxtime (configure.ac): ... to here.
7005
7006 2011-05-08  Bruno Haible  <bruno@clisp.org>
7007
7008         gethostname: Move AC_LIBOBJ invocations to module description.
7009         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Move AC_LIBOBJ and
7010         gl_PREREQ_GETHOSTNAME invocations from here...
7011         * modules/gethostname (configure.ac): ... to here.
7012
7013 2011-05-08  Bruno Haible  <bruno@clisp.org>
7014
7015         getgroups: Move AC_LIBOBJ invocations to module description.
7016         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Move AC_LIBOBJ invocations from
7017         here...
7018         * modules/getgroups (configure.ac): ... to here.
7019
7020 2011-05-08  Bruno Haible  <bruno@clisp.org>
7021
7022         getdtablesize: Move AC_LIBOBJ invocations to module description.
7023         * m4/getdtablesize.m4 (gl_FUNC_GETDTABLESIZE): Move AC_LIBOBJ
7024         invocation from here...
7025         * modules/getdtablesize (configure.ac): ... to here.
7026
7027 2011-05-08  Bruno Haible  <bruno@clisp.org>
7028
7029         getdomainname: Move AC_LIBOBJ invocations to module description.
7030         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Move AC_LIBOBJ and
7031         gl_PREREQ_GETDOMAINNAME invocations from here...
7032         * modules/getdomainname (configure.ac): ... to here.
7033
7034 2011-05-08  Bruno Haible  <bruno@clisp.org>
7035
7036         getline: Move AC_LIBOBJ invocations to module description.
7037         * m4/getline.m4 (gl_FUNC_GETLINE): Move AC_LIBOBJ and gl_PREREQ_GETLINE
7038         invocations from here...
7039         * modules/getline (configure.ac): ... to here.
7040
7041 2011-05-08  Bruno Haible  <bruno@clisp.org>
7042
7043         getline: Simplify.
7044         * m4/getline.m4 (gl_PREREQ_GETLINE): Don't invoke gl_FUNC_GETDELIM.
7045         It's already handled through the module dependency.
7046
7047 2011-05-08  Bruno Haible  <bruno@clisp.org>
7048
7049         getdelim: Move AC_LIBOBJ invocations to module description.
7050         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Set HAVE_GETDELIM. Move AC_LIBOBJ
7051         and gl_PREREQ_GETDELIM invocations from here...
7052         * modules/getdelim (configure.ac): ... to here.
7053         (Depends-on): Fix condition.
7054
7055 2011-05-08  Bruno Haible  <bruno@clisp.org>
7056
7057         getcwd: Move AC_LIBOBJ invocations to module description.
7058         * m4/getcwd.m4 (gl_FUNC_GETCWD): Move AC_LIBOBJ and gl_PREREQ_GETCWD
7059         invocations from here...
7060         * modules/getcwd (configure.ac): ... to here.
7061
7062 2011-05-08  Bruno Haible  <bruno@clisp.org>
7063
7064         getcwd-lgpl: Move AC_LIBOBJ invocations to module description.
7065         * m4/getcwd.m4 (gl_FUNC_GETCWD_LGPL): Move AC_LIBOBJ invocation from
7066         here...
7067         * modules/getcwd-lgpl (configure.ac): ... to here.
7068
7069 2011-05-07  Bruno Haible  <bruno@clisp.org>
7070
7071         crypto/gc: Move AC_LIBOBJ invocations to module description.
7072         * m4/gc.m4 (gl_GC): Move AC_LIBOBJ invocations from here...
7073         * modules/crypto/gc (configure.ac): ... to here.
7074
7075 2011-05-07  Bruno Haible  <bruno@clisp.org>
7076
7077         fwriting: Move AC_LIBOBJ invocations to module description.
7078         * m4/fwriting.m4 (gl_FUNC_FWRITINT): Move AC_LIBOBJ invocation from
7079         here...
7080         * modules/fwriting (configure.ac): ... to here.
7081
7082 2011-05-07  Bruno Haible  <bruno@clisp.org>
7083
7084         fwritable: Move AC_LIBOBJ invocations to module description.
7085         * m4/fwritable.m4 (gl_FUNC_FWRITABLE): Move AC_LIBOBJ invocation from
7086         here...
7087         * modules/fwritable (configure.ac): ... to here.
7088
7089 2011-05-07  Bruno Haible  <bruno@clisp.org>
7090
7091         futimens: Move AC_LIBOBJ invocations to module description.
7092         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Move AC_LIBOBJ invocations from
7093         here...
7094         * modules/futimens (configure.ac): ... to here.
7095
7096 2011-05-07  Bruno Haible  <bruno@clisp.org>
7097
7098         ftruncate: Move AC_LIBOBJ invocations to module description.
7099         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Move AC_LIBOBJ and
7100         gl_PREREQ_FTRUNCATE invocations from here...
7101         * modules/ftruncate (configure.ac): ... to here.
7102
7103 2011-05-07  Bruno Haible  <bruno@clisp.org>
7104
7105         fsync: Move AC_LIBOBJ invocations to module description.
7106         * m4/fsync.m4 (gl_FUNC_FSYNC): Move AC_LIBOBJ and gl_PREREQ_FSYNC
7107         invocations from here...
7108         * modules/fsync (configure.ac): ... to here.
7109
7110 2011-05-07  Bruno Haible  <bruno@clisp.org>
7111
7112         fsusage: Move AC_LIBOBJ invocations to module description.
7113         * m4/fsusage.m4 (gl_FUNC_FREOPEN): Move AC_LIBOBJ and
7114         gl_PREREQ_FSUSAGE_EXTRA invocations from here...
7115         * modules/fsusage (configure.ac): ... to here.
7116
7117 2011-05-07  Bruno Haible  <bruno@clisp.org>
7118
7119         freopen: Move AC_LIBOBJ invocations to module description.
7120         * m4/freopen.m4 (gl_FUNC_FREOPEN): Move AC_LIBOBJ and gl_PREREQ_FREOPEN
7121         invocations from here...
7122         * modules/freopen (configure.ac): ... to here.
7123
7124 2011-05-07  Bruno Haible  <bruno@clisp.org>
7125
7126         free: Move AC_LIBOBJ invocations to module description.
7127         * m4/free.m4 (gl_FUNC_FREE): Move AC_LIBOBJ and missing gl_PREREQ_FREE
7128         invocations from here...
7129         * modules/free (configure.ac): ... to here.
7130
7131 2011-05-07  Bruno Haible  <bruno@clisp.org>
7132
7133         freadable: Move AC_LIBOBJ invocations to module description.
7134         * m4/freadable.m4 (gl_FUNC_FREADABLE): Move AC_LIBOBJ invocation from
7135         here...
7136         * modules/freadable (configure.ac): ... to here.
7137
7138 2011-05-07  Bruno Haible  <bruno@clisp.org>
7139
7140         fpurge: Move AC_LIBOBJ invocations to module description.
7141         * m4/fpurge.m4 (gl_FUNC_FPURGE): Set HAVE_FPURGE. Move AC_LIBOBJ
7142         invocations from here...
7143         * modules/fpurge (configure.ac): ... to here.
7144
7145 2011-05-07  Bruno Haible  <bruno@clisp.org>
7146
7147         fpending: Move AC_LIBOBJ invocations to module description.
7148         * m4/fpending.m4 (gl_PREREQ_FPENDING): New macro, extracted from
7149         gl_FUNC_FPENDING.
7150         (gl_FUNC_FPENDING): Move AC_LIBOBJ and gl_PREREQ_FPENDING
7151         invocations from here...
7152         * modules/fpending (configure.ac): ... to here.
7153
7154 2011-05-07  Bruno Haible  <bruno@clisp.org>
7155
7156         fopen: Move AC_LIBOBJ invocations to module description.
7157         * m4/fopen.m4 (gl_FUNC_FOPEN): Move AC_LIBOBJ and gl_PREREQ_FOPEN
7158         invocations from here...
7159         * modules/fopen (configure.ac): ... to here.
7160
7161 2011-05-07  Bruno Haible  <bruno@clisp.org>
7162
7163         fnmatch, fnmatch-gnu: Move AC_LIBOBJ invocations to module description.
7164         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH): New macro, extracted from
7165         gl_FUNC_FNMATCH_POSIX.
7166         (gl_FUNC_FNMATCH_POSIX): Move AC_LIBOBJ and gl_PREREQ_FNMATCH
7167         invocations from here...
7168         * modules/fnmatch (configure.ac): ... to here.
7169         * modules/fnmatch-gnu (configure.ac): ... and here.
7170
7171 2011-05-07  Bruno Haible  <bruno@clisp.org>
7172
7173         flock: Move AC_LIBOBJ invocations to module description.
7174         * m4/flock.m4 (gl_FUNC_FLOCK): Move AC_LIBOBJ and gl_PREREQ_FLOCK
7175         invocations from here...
7176         * modules/flock (configure.ac): ... to here.
7177
7178 2011-05-07  Bruno Haible  <bruno@clisp.org>
7179
7180         fileblocks: Move AC_LIBOBJ invocations to module description.
7181         * m4/fileblocks.m4 (gl_FILEBLOCKS): Move AC_LIBOBJ and
7182         gl_PREREQ_FILEBLOCKS invocations from here...
7183         * modules/fileblocks (configure.ac): ... to here.
7184
7185 2011-05-06  Bruno Haible  <bruno@clisp.org>
7186
7187         fflush: Move AC_LIBOBJ invocations to module description.
7188         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Remove macro.
7189         (gl_FUNC_FFLUSH): Inline it here. Move AC_LIBOBJ and gl_PREREQ_FFLUSH
7190         invocations from here...
7191         * modules/fflush (configure.ac): ... to here.
7192
7193 2011-05-06  Bruno Haible  <bruno@clisp.org>
7194
7195         fdopendir: Move AC_LIBOBJ invocations to module description.
7196         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Move AC_LIBOBJ invocations from
7197         here...
7198         * modules/fdopendir (configure.ac): ... to here.
7199         (Depends-on): Improve conditions.
7200
7201 2011-05-06  Bruno Haible  <bruno@clisp.org>
7202
7203         _Exit: Move AC_LIBOBJ invocations to module description.
7204         * m4/_Exit.m4 (gl_FUNC__EXIT): Move AC_LIBOBJ and gl_PREREQ__EXIT
7205         invocations from here...
7206         * modules/_Exit (configure.ac): ... to here.
7207
7208 2011-05-21  Bruno Haible  <bruno@clisp.org>
7209
7210         euidaccess: Respect rules for use of AC_LIBOBJ.
7211         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Call AC_CHECK_FUNCS instead of
7212         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_EUIDACCESS invocations
7213         from here...
7214         * modules/euidaccess (configure.ac): ... to here.
7215
7216 2011-05-06  Bruno Haible  <bruno@clisp.org>
7217
7218         error: Move AC_LIBOBJ invocations to module description.
7219         * m4/error.m4 (gl_ERROR): Inline AC_FUNC_ERROR_AT_LINE. Remove
7220         AC_LIBSOURCES invocation. Move AC_LIBOBJ and gl_PREREQ_ERROR
7221         invocations from here...
7222         * modules/error (configure.ac): ... to here.
7223
7224 2011-05-06  Bruno Haible  <bruno@clisp.org>
7225
7226         duplocale: Move AC_LIBOBJ invocations to module description.
7227         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Move AC_LIBOBJ and
7228         gl_PREREQ_DUPLOCALE invocations from here...
7229         * modules/duplocale (configure.ac): ... to here.
7230
7231 2011-05-05  Bruno Haible  <bruno@clisp.org>
7232
7233         dirfd: Move AC_LIBOBJ invocations to module description.
7234         * m4/dirfd.m4 (gl_PREREQ_DIRFD): New macro, extracted from
7235         gl_FUNC_DIRFD.
7236         (gl_FUNC_DIRFD): Move AC_LIBOBJ and gl_PREREQ_DIRFD invocations from
7237         here...
7238         * modules/dirfd (configure.ac): ... to here.
7239         (Depends-on): Fix condition.
7240
7241 2011-05-05  Bruno Haible  <bruno@clisp.org>
7242
7243         chown: Respect rules for use of AC_LIBOBJ.
7244         * m4/chown.m4 (gl_FUNC_CHOWN): Move AC_LIBOBJ invocations from here...
7245         * modules/chown (configure.ac): ... to here.
7246
7247 2011-05-05  Bruno Haible  <bruno@clisp.org>
7248
7249         chdir-long: Move AC_LIBOBJ invocations to module description.
7250         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Move AC_LIBOBJ and
7251         gl_PREREQ_CHDIR_LONG invocations from here...
7252         * modules/chdir-long (configure.ac): ... to here.
7253
7254 2011-05-05  Bruno Haible  <bruno@clisp.org>
7255
7256         canonicalize-lgpl: Move AC_LIBOBJ invocations to module description.
7257         * m4/canonicalize.m4 (gl_CANONICALIZE_LGPL): Move AC_LIBOBJ invocation
7258         from here...
7259         * modules/canonicalize-lgpl (configure.ac): ... to here.
7260
7261 2011-05-05  Bruno Haible  <bruno@clisp.org>
7262
7263         calloc-posix, calloc-gnu: Move AC_LIBOBJs to module description.
7264         * m4/calloc.m4 (gl_REPLACE_CALLOC): Remove macro.
7265         (gl_FUNC_CALLOC_GNU, gl_FUNC_CALLOC_POSIX): Instead, just set
7266         REPLACE_CALLOC.
7267         * modules/calloc-posix (configure.ac): Invoke AC_LIBOBJ here.
7268         * modules/calloc-gnu (configure.ac): Likewise.
7269
7270 2011-05-05  Bruno Haible  <bruno@clisp.org>
7271
7272         btowc: Move AC_LIBOBJ invocations to module description.
7273         * m4/btowc.m4 (gl_FUNC_BTOWC): Move AC_LIBOBJ and gl_PREREQ_BTOWC
7274         invocations from here...
7275         * modules/btowc (configure.ac): ... to here.
7276
7277 2011-05-21  Bruno Haible  <bruno@clisp.org>
7278
7279         atexit: Move AC_LIBOBJ invocations to module description.
7280         * m4/atexit.m4 (gl_FUNC_ATEXIT): Call AC_CHECK_FUNCS instead of
7281         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_ATEXIT invocations from
7282         here...
7283         * modules/atexit (configure.ac): ... to here.
7284
7285 2011-05-05  Bruno Haible  <bruno@clisp.org>
7286
7287         atoll: Move AC_LIBOBJ invocations to module description.
7288         * m4/atoll.m4 (gl_FUNC_ATOLL): Move AC_LIBOBJ and gl_PREREQ_ATOLL
7289         invocations from here...
7290         * modules/atoll (configure.ac): ... to here.
7291
7292 2011-05-05  Bruno Haible  <bruno@clisp.org>
7293
7294         argz: Move AC_LIBOBJ invocations to module description.
7295         * m4/argz.m4 (gl_FUNC_ARGZ): Move AC_LIBOBJ invocation from here...
7296         * modules/argz (configure.ac): ... to here.
7297
7298 2011-05-05  Bruno Haible  <bruno@clisp.org>
7299
7300         alphasort: Move AC_LIBOBJ invocations to module description.
7301         * m4/alphasort.m4 (gl_FUNC_ALPHASORT): Move AC_LIBOBJ and
7302         gl_PREREQ_ALPHASORT invocations from here...
7303         * modules/alphasort (configure.ac): ... to here.
7304
7305 2011-06-15  Paul Eggert  <eggert@cs.ucla.edu>
7306
7307         verify: new macro verify_expr; verify_true deprecated
7308         * NEWS: Mention this.
7309         * doc/verify.texi (Compile-time Assertions): Document this.
7310         * lib/verify.h (verify_true): Deprecate.
7311         (verify_expr): New macro.
7312         * tests/test-verify.c (function): Test verify_expr.
7313
7314 2011-06-14  Jim Meyering  <meyering@redhat.com>
7315
7316         init.sh: give more portable redirection-related advice in a comment
7317         * tests/init.sh (stderr_fileno_): Update the advice in comments.
7318         See http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/22488
7319         for lots of discussion.  Stefano Lattarini suggested the solution
7320         of putting "9>&2" after the command.  Reported by Bruno Haible.
7321
7322 2011-06-13  Bruno Haible  <bruno@clisp.org>
7323
7324         locale-zh: Reject zh_CN.GB18030 locale on Solaris 8.
7325         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): On Solaris 8, set LOCALE_ZH_CN to
7326         'none'.
7327
7328 2011-06-13  Paul Eggert  <eggert@cs.ucla.edu>
7329
7330         ftoastr: use strtof only if HAVE_STRTOF
7331         This is needed on HP-UX 11.11 with GCC 4.2.4; see Bruno Haible's report
7332         <http://lists.gnu.org/archive/html/bug-gnulib/2011-06/msg00154.html>.
7333         * lib/ftoastr.c (STRTOF) [LENGTH == 1]: Use strtof only if HAVE_STRTOF.
7334         * modules/ftoastr (configure.ac): Check for strtof.
7335
7336 2011-06-13  Bruno Haible  <bruno@clisp.org>
7337
7338         gnulib-tool: Addendum to 2011-06-08 commit.
7339         * gnulib-tool (func_emit_lib_Makefile_am): If options --makefile-name
7340         and --witness-c-macro have been given, augment AM_CPPFLAGS.
7341
7342 2011-06-13  Bruno Haible  <bruno@clisp.org>
7343
7344         fseeko: Provide a non-inline replacement of fseek().
7345         * lib/stdio.in.h (fseek): Don't provide if module 'fseek' is not used.
7346         * modules/fseeko (Depends-on): Add fseek.
7347         * modules/fseek (License): Change to LGPLv2+.
7348
7349 2011-06-13  Bruno Haible  <bruno@clisp.org>
7350
7351         ftello: Provide a non-inline replacement of ftell().
7352         * lib/stdio.in.h (ftell): Don't provide if module 'ftell' is not used.
7353         * m4/ftell.m4 (gl_FUNC_FTELL): Replace ftell also if the system does
7354         not have ftello() (such as on mingw).
7355         * modules/ftello (Depends-on): Add ftell.
7356         * modules/ftell (License): Change to LGPLv2+.
7357
7358 2011-05-07  Bruno Haible  <bruno@clisp.org>
7359
7360         ftell: Move AC_LIBOBJ invocations to module description.
7361         * m4/ftell.m4 (gl_FUNC_FTELL): Move AC_LIBOBJ invocation from here...
7362         * modules/ftell (configure.ac): ... to here.
7363
7364 2011-05-07  Bruno Haible  <bruno@clisp.org>
7365
7366         ftello: Respect rules for use of AC_LIBOBJ.
7367         * m4/ftello.m4 (gl_REPLACE_FTELLO): Remove macro.
7368         (gl_FUNC_FTELLO): Inline it here. Move AC_LIBOBJ invocation from
7369         here...
7370         * modules/ftello (configure.ac): ... to here.
7371
7372 2011-05-07  Bruno Haible  <bruno@clisp.org>
7373
7374         fseeko: Simplify.
7375         * m4/fseeko.m4 (gl_HAVE_FSEEKO): Remove macro.
7376         (gl_FUNC_FSEEKO): Inline it here.
7377
7378 2011-05-07  Bruno Haible  <bruno@clisp.org>
7379
7380         fseek: Move AC_LIBOBJ invocations to module description.
7381         * m4/fseek.m4 (gl_REPLACE_FSEEK): Remove macro.
7382         (gl_FUNC_FSEEK): Inline it here. Move AC_LIBOBJ invocation from here...
7383         * modules/fseek (configure.ac): ... to here.
7384
7385 2011-05-07  Bruno Haible  <bruno@clisp.org>
7386
7387         fseek: Respect rules for use of AC_LIBOBJ.
7388         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Move gl_REPLACE_FSEEK invocation from
7389         here...
7390         * m4/fseek.m4 (gl_FUNC_FSEEK): ... to here.
7391
7392 2011-05-07  Bruno Haible  <bruno@clisp.org>
7393
7394         fseeko: Respect rules for use of AC_LIBOBJ.
7395         * m4/fseeko.m4 (gl_REPLACE_FSEEKO): Remove macro.
7396         (gl_FUNC_FSEEKO): Inline it here. Move AC_LIBOBJ invocation from
7397         here...
7398         * modules/fseeko (configure.ac): ... to here.
7399
7400 2011-06-13  Bruno Haible  <bruno@clisp.org>
7401
7402         gnulib-tool: Allow comments in the 'Depends-on' section.
7403         * doc/gnulib.texi (Module description): Mention comment syntax in the
7404         Depends-on section.
7405         * gnulib-tool (func_get_dependencies): Filter out comment lines.
7406
7407 2011-06-13  Bruno Haible  <bruno@clisp.org>
7408
7409         file-set.h: guard __attibute__ use, now that it's not always defined
7410         * lib/file-set.h (record_file): Use __attribute__ only with compiler
7411         versions that support it.  This fixes a coreutils build failure with
7412         the vendor cc on HP-UX 11.31.
7413
7414 2011-06-12  Bruno Haible  <bruno@clisp.org>
7415
7416         acl: Add support for HP-UX >= 11.11 JFS ACLs.
7417         * doc/acl-resources.txt: Add info about the ACL APIs on HP-UX.
7418         * m4/acl.m4 (gl_FUNC_ACL): Also test for HP-UX 11.11 API.
7419         * lib/acl-internal.h [HP-UX 11.11]: Include <aclv.h>.
7420         (acl, aclsort): New declarations.
7421         (aclv_nontrivial): New declaration.
7422         * lib/file-has-acl.c (aclv_nontrivial) [HP-UX 11.11]: New function.
7423         (file_has_acl): Read also the second kind of HP-UX ACLs.
7424         * lib/set-mode-acl.c (qset_acl) [HP-UX 11.11]: Try to set the second
7425         kind of HP-UX ACLs if the first kind fails.
7426         * lib/copy-acl.c (qcopy_acl) [HP-UX 11.11]: Read and set also the
7427         second kind of HP-UX ACLs.
7428         * tests/test-sameacls.c [HP-UX 11.11]: Include <aclv.h>.
7429         (main) [HP-UX 11.11]: Test also whether the second kind of HP-UX ACLs
7430         agree.
7431         * tests/test-file-has-acl.sh (acl_flavor) [HP-UX 11.11]: Set to
7432         hpuxjfs.
7433         Handle hpuxjfs.
7434         * tests/test-set-mode-acl.sh (acl_flavor) [HP-UX 11.11]: Set to
7435         hpuxjfs.
7436         Handle hpuxjfs.
7437         * tests/test-copy-acl.sh (acl_flavor) [HP-UX 11.11]: Set to hpuxjfs.
7438         (func_test_same_acls): Use both lsacl and getacl.
7439         Handle hpuxjfs.
7440         * tests/test-copy-file.sh (acl_flavor) [HP-UX 11.11]: Set to hpuxjfs.
7441         (func_test_same_acls): Use both lsacl and getacl.
7442         Handle hpuxjfs.
7443
7444 2011-06-12  Bruno Haible  <bruno@clisp.org>
7445
7446         acl: Complete the 2010-08-10 fix.
7447         * lib/file-has-acl.c (file_has_acl) [HP-UX]: Also test against ENOTSUP.
7448         * lib/set-mode-acl.c (qset_acl) [HP-UX]: Likewise.
7449         * lib/copy-acl.c (qcopy_acl) [HP-UX]: Test for the errno values
7450         explicitly.
7451         * tests/test-sameacls.c (main) [HP-UX]: Also test against ENOTSUP.
7452         Reported in <http://debbugs.gnu.org/db/60/6053.html>.
7453
7454 2011-06-12  Bruno Haible  <bruno@clisp.org>
7455
7456         spawn-pipe tests: Comments.
7457         * tests/test-spawn-pipe-child.c (main): Update comment.
7458         Reported by James Youngman <jay@gnu.org>.
7459
7460 2011-06-11  James Youngman  <jay@gnu.org>
7461
7462         New module 'stat-size'.
7463         * modules/stat-size: New module.  Provides macros for accessing
7464         file size information in instances of struct stat.  Depends on the
7465         fileblocks module because it calls st_blocks.
7466         * lib/stat-size.h: New file, adapted from coreutils' system.h.
7467         * doc/gnulib.texi: Include stat-size.texi.
7468         * doc/stat-size.texi: Documentation for this module.
7469         * m4/stat-size.m4: New file; defines gl_STAT_SIZE.
7470         * m4/fileblocks.m4: Mention that stat-size depends on the call to
7471         AC_STRUCT_ST_BLOCKS.
7472
7473 2011-06-09  Bruno Haible  <bruno@clisp.org>
7474
7475         thread: Support pthreads-win32.
7476         * lib/glthread/thread.h (gl_thread_self): Define differently on
7477         pthreads-win32.
7478         (gl_null_thread): New declaration.
7479         (gl_thread_self_pointer): New macro.
7480         * lib/glthread/thread.c (gl_null_thread): New constant.
7481         * tests/test-lock.c: Use gl_thread_self_pointer instead of
7482         gl_thread_self.
7483         * tests/test-tls.c: Likewise.
7484         Suggested by Paul Eggert. Reported by Eric Blake.
7485
7486 2011-06-09  Bruno Haible  <bruno@clisp.org>
7487
7488         thread: Fix confusion between NULL and 0.
7489         * lib/glthread/thread.h (gl_thread_self): Use NULL and 0 appropriately.
7490         Reported by Paul Eggert.
7491
7492 2011-06-09  Bruno Haible  <bruno@clisp.org>
7493
7494         spawn-pipe tests: Avoid test failure on HP-UX 11.
7495         * tests/test-spawn-pipe-child.c (main) [HP-UX]: Don't assert that fd 2
7496         is closed.
7497
7498 2011-06-09  Bruno Haible  <bruno@clisp.org>
7499
7500         acl tests: Fix compilation error on HP-UX 11.
7501         * tests/test-sameacls.c: Include <sys/acl.h> also on HP-UX.
7502
7503 2011-06-09  Bruno Haible  <bruno@clisp.org>
7504
7505         rmdir: Avoid test failure on HP-UX 10.20.
7506         * tests/test-rmdir.h (test_rmdir_func): Accept ENOTEMPTY error, like
7507         EEXIST.
7508
7509 2011-06-08  Eric Blake  <eblake@redhat.com>
7510
7511         perror: fix test on mingw
7512         * modules/perror-tests (Depends-on): Add dup2.
7513
7514         strerror_r-posix: fix on MacOS
7515         * m4/strerror.m4 (gl_FUNC_STRERROR): Flush out MacOS bug.
7516         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R_WORKS): Likewise, and fix
7517         logic bug.
7518         * lib/strerror_r.c (strerror_r): Fix the bug.
7519         * lib/strerror.c (strerror): Likewise.
7520         * doc/posix-functions/strerror_r.texi (strerror_r): Document the
7521         problem.
7522         * doc/posix-functions/strerror.texi (strerror): Likewise.
7523         * doc/posix-functions/perror.texi (perror): Likewise.
7524         * tests/test-strerror.c (main): Enhance test.
7525         * tests/test-strerror_r.c (main): Likewise.
7526
7527 2011-06-08  Bruno Haible  <bruno@clisp.org>
7528
7529         gnulib-tool: Better isolation between different gnulib-tool invocations.
7530         * gnulib-tool: New option --witness-c-macro.
7531         (witness_c_macro): New variable.
7532         (func_emit_lib_Makefile_am): If --witness-c-macro was specified, let
7533         AM_CPPFLAGS define it as a C macro.
7534         (func_emit_tests_Makefile_am): Likewise.
7535         (func_import): Store witness_c_macro setting in gnulib-cache.m4 and
7536         read it from there.
7537         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_CONDITION): Define through
7538         m4_define, not AC_DEFUN.
7539         (gl_MODULE_INDICATOR_SET_VARIABLE_AUX,
7540         gl_MODULE_INDICATOR_SET_VARIABLE_AUX_OR): New macros.
7541         (gl_MODULE_INDICATOR_SET_VARIABLE): Use them.
7542         * modules/arpa_inet (Makefile.am): Use sed expression s/.../.../, not
7543         s|...|...|, to substitute the values of the GNULIB_* module indicator
7544         variables.
7545         * modules/dirent (Makefile.am): Likewise.
7546         * modules/fcntl-h (Makefile.am): Likewise.
7547         * modules/iconv-h (Makefile.am): Likewise.
7548         * modules/langinfo (Makefile.am): Likewise.
7549         * modules/locale (Makefile.am): Likewise.
7550         * modules/math (Makefile.am): Likewise.
7551         * modules/netdb (Makefile.am): Likewise.
7552         * modules/poll-h (Makefile.am): Likewise.
7553         * modules/pty (Makefile.am): Likewise.
7554         * modules/search (Makefile.am): Likewise.
7555         * modules/signal (Makefile.am): Likewise.
7556         * modules/spawn (Makefile.am): Likewise.
7557         * modules/stdio (Makefile.am): Likewise.
7558         * modules/stdlib (Makefile.am): Likewise.
7559         * modules/string (Makefile.am): Likewise.
7560         * modules/sys_ioctl (Makefile.am): Likewise.
7561         * modules/sys_select (Makefile.am): Likewise.
7562         * modules/sys_socket (Makefile.am): Likewise.
7563         * modules/sys_stat (Makefile.am): Likewise.
7564         * modules/sys_times (Makefile.am): Likewise.
7565         * modules/sys_utsname (Makefile.am): Likewise.
7566         * modules/sys_wait (Makefile.am): Likewise.
7567         * modules/termios (Makefile.am): Likewise.
7568         * modules/time (Makefile.am): Likewise.
7569         * modules/unistd (Makefile.am): Likewise.
7570         * modules/wchar (Makefile.am): Likewise.
7571
7572 2011-06-08  Eric Blake  <eblake@redhat.com>
7573
7574         strerror: simplify replacement
7575         * m4/strerror.m4 (gl_PREREQ_STRERROR): Delete.
7576         * modules/strerror (configure.ac): No prereqs needed here...
7577         * modules/strerror-override (configure.ac): ...but this needs it.
7578         (Files): Add file for needed prereq macro.
7579
7580 2011-06-08  Bruno Haible  <bruno@clisp.org>
7581
7582         strerror_r-posix: Tweaks.
7583         * m4/strerror.m4 (gl_FUNC_STRERROR): Omit the code that tests
7584         gl_cv_func_strerror_r_works if gl_FUNC_STRERROR_R_WORKS is not present.
7585         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R_WORKS): Fix AC_CACHE_CHECK
7586         message. Move gl_HEADER_STRING_H_DEFAULTS invocation from here...
7587         (gl_FUNC_STRERROR_R): ... to here.
7588         (gl_PREREQ_STRERROR_R): Test for __xpg_strerror_r.
7589
7590 2011-06-07  Eric Blake  <eblake@redhat.com>
7591
7592         perror: document fixed bugs
7593         * doc/posix-functions/perror.texi (perror): Document recent
7594         patches.
7595
7596 2011-06-07  Paul Eggert  <eggert@cs.ucla.edu>
7597
7598         stat-time: get_stat_birthtime failure is better-defined
7599         * lib/stat-time.h (get_stat_birthtime): If the time is not available,
7600         return a timestamp whose tv_sec and tv_nsec values are both -1.
7601         Previously, the spec said only that the tv_nsec value was negative.
7602         This upward-compatible change simplifies GNU tar a bit.
7603
7604 2011-06-07  Eric Blake  <eblake@redhat.com>
7605
7606         strerror_r-posix: work around cygwin 1.7.9
7607         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Split...
7608         (gl_FUNC_STRERROR_R_WORKS): ...into new macro, to detect Cygwin
7609         bug without replacing strerror_r.
7610         * m4/strerror.m4 (gl_FUNC_STRERROR): Replace strerror if
7611         strerror_r is buggy, but without requiring strerror_r compilation.
7612         * doc/posix-functions/strerror_r.texi (strerror_r): Fix docs.
7613
7614         test-perror: relax test to ignore cygwin bug
7615         * tests/test-perror2.c (main): Relax test on requiring detection
7616         of stream errors, and use unbuffered stream.
7617         * doc/posix-functions/dprintf.texi (dprintf): Document bug.
7618         * doc/posix-functions/fprintf.texi (fprintf): Likewise.
7619         * doc/posix-functions/fputc.texi (fputc): Likewise.
7620         * doc/posix-functions/fputs.texi (fputs): Likewise.
7621         * doc/posix-functions/fputws.texi (fputws): Likewise.
7622         * doc/posix-functions/fwprintf.texi (fwprintf): Likewise.
7623         * doc/posix-functions/fwrite.texi (fwrite): Likewise.
7624         * doc/posix-functions/getopt.texi (getopt): Likewise.
7625         * doc/posix-functions/perror.texi (perror): Likewise.
7626         * doc/posix-functions/printf.texi (printf): Likewise.
7627         * doc/posix-functions/psiginfo.texi (psiginfo): Likewise.
7628         * doc/posix-functions/psignal.texi (psignal): Likewise.
7629         * doc/posix-functions/putc.texi (putc): Likewise.
7630         * doc/posix-functions/putc_unlocked.texi (putc_unlocked):
7631         Likewise.
7632         * doc/posix-functions/putchar.texi (putchar): Likewise.
7633         * doc/posix-functions/putchar_unlocked.texi (putchar_unlocked):
7634         Likewise.
7635         * doc/posix-functions/puts.texi (puts): Likewise.
7636         * doc/posix-functions/putwc.texi (putwc): Likewise.
7637         * doc/posix-functions/putwchar.texi (putwchar): Likewise.
7638         * doc/posix-functions/vdprintf.texi (vdprintf): Likewise.
7639         * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
7640         * doc/posix-functions/vfwprintf.texi (vfwprintf): Likewise.
7641         * doc/posix-functions/vprintf.texi (vprintf): Likewise.
7642         * doc/posix-functions/vwprintf.texi (vwprintf): Likewise.
7643         * doc/posix-functions/wordexp.texi (wordexp): Likewise.
7644         * doc/posix-functions/wprintf.texi (wprintf): Likewise.
7645
7646 2011-05-22  Bruno Haible  <bruno@clisp.org>
7647
7648         strerror: Move AC_LIBOBJ invocations to module description.
7649         * m4/strerror.m4 (gl_FUNC_STRERROR): Move AC_LIBOBJ and
7650         gl_PREREQ_STRERROR invocations from here...
7651         * modules/strerror (configure.ac): ... to here.
7652
7653 2011-05-21  Bruno Haible  <bruno@clisp.org>
7654
7655         perror: Use common idiom.
7656         * modules/perror (configure.ac): Reorder statements.
7657
7658 2011-06-07  Stefano Lattarini  <stefano.lattarini@gmail.com>
7659
7660         tests: fix usage message in 'mktempd_'
7661         * tests/init.sh (mktempd_): In the usage message, use literal
7662         'mktempd_', not '$ME' (which is even undefined), as the name of
7663         the subroutine.
7664
7665 2011-06-07  Stefano Lattarini  <stefano.lattarini@gmail.com>
7666
7667         tests init: new function 'fatal_', for hard errors
7668         Before this patch, the only way offered by tests/init.sh to
7669         properly signal a hard error was the `framework_failure_'
7670         function.  But the error message issued by that function,
7671         as its name would suggest, refers to a set-up failure in the
7672         testsuite, while hard errors can obviously also be due to
7673         other reasons.  The best way to fix this inconsistency is to
7674         introduce a new function with a more general error message.
7675         * tests/init.sh (fatal_): New function.
7676
7677 2011-06-06  Eric Blake  <eblake@redhat.com>
7678
7679         canonicalize-lgpl: use common idiom
7680         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Prefer older rm -rf
7681         over newer POSIX -Rf.
7682         Reported by Bruno Haible.
7683
7684         canonicalize-lgpl: work around AIX realpath bug
7685         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Expose AIX bug.
7686         * doc/posix-functions/realpath.texi (realpath): Document it.
7687         Reported by Bruno Haible.
7688
7689         strerror: work around FreeBSD bug
7690         * lib/strerror.c (strerror): Special case 0.
7691         Reported by Bruno Haible.
7692
7693         strerror-override: avoid bloating errno module
7694         * modules/errno (Files, configure.ac): Move replacement strings...
7695         * modules/strerror-override: ...to new module.
7696         * modules/strerror (Depends-on): Add strerror-override.
7697         * modules/strerror_r-posix (Depends-on): Likewise.
7698         * MODULES.html.sh: Document new module.
7699         Reported by Bruno Haible.
7700
7701 2011-06-06  Bruno Haible  <bruno@clisp.org>
7702
7703         spawn-pipe tests: Rename program.
7704         * tests/test-spawn-pipe-main.c: Renamed from tests/test-spawn-pipe.c.
7705         * tests/test-spawn-pipe-child.c: Update comment.
7706         * tests/test-spawn-pipe.sh: Update.
7707         * modules/spawn-pipe-tests (Files, Makefile.am): Update.
7708
7709         spawn-pipe tests: Link the child program only against libc.
7710         * tests/test-spawn-pipe-child.c: New file, extracted from
7711         tests/test-spawn-pipe.c.
7712         (main): Expect only one argument.
7713         (is_open): New function, copied from tests/test-pipe.c.
7714         * tests/test-spawn-pipe.c: Don't include <errno.h>.
7715         (child_main): Remove function.
7716         (test_pipe): Pass only one argument to the child program.
7717         (main): Remove child process code. Expect the child program's name as
7718         first argument.
7719         * tests/test-spawn-pipe.sh: Pass the child program's name as first
7720         argument.
7721         * modules/spawn-pipe-tests (Files): Add tests/test-spawn-pipe-child.c.
7722         (Makefile.am): Add test-spawn-pipe-child to check_PROGRAMS. Link
7723         test-spawn-pipe-child against no libraries.
7724
7725 2011-06-06  Bruno Haible  <bruno@clisp.org>
7726
7727         careadlinkat: Avoid mismatch between ssize_t and int.
7728         * lib/careadlinkat.h (careadlinkatcwd): Declare as a function always.
7729         * lib/careadlinkat.c (careadlinkatcwd): Define always.
7730
7731 2011-06-06  Jim Meyering  <meyering@redhat.com>
7732
7733         gnulib-common.m4: add _GL_ATTRIBUTE_CONST and _GL_ATTRIBUTE_PURE
7734         * m4/gnulib-common.m4 (gl_COMMON): Emit definitions of
7735         _GL_ATTRIBUTE_CONST and _GL_ATTRIBUTE_PURE.
7736
7737 2011-06-05  Bruno Haible  <bruno@clisp.org>
7738
7739         ansi-c++-opt: Interoperability with libtool.
7740         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): When a C++ compiler is not found,
7741         set the variable to "no", not to ":".
7742         * NEWS: Mention the change.
7743
7744 2011-06-05  Bruno Haible  <bruno@clisp.org>
7745
7746         acl: Fix test failure on AIX 7.
7747         * tests/test-sameacls.c (main) [AIX]: Fix aclx_printStr invocation.
7748         Based on a patch by Jørn Amundsen <Jorn.Amundsen@ntnu.no>.
7749
7750 2011-06-05  Bruno Haible  <bruno@clisp.org>
7751
7752         pipe-filter-ii: Fix test failure on AIX and IRIX.
7753         * lib/pipe-filter-ii.c (pipe_filter_ii_execute): When write() fails
7754         with EAGAIN, retry with a smaller buffer size.
7755
7756 2011-06-05  Bruno Haible  <bruno@clisp.org>
7757
7758         localename: Fix link dependencies.
7759         * modules/localename (Link): Mention $(LIBTHREAD) or $(LTLIBTHREAD).
7760         * modules/localename-tests (Makefile.am): Link test-localename with
7761         $(LIBTHREAD).
7762
7763 2011-06-05  Bruno Haible  <bruno@clisp.org>
7764
7765         error: Avoid gcc warning.
7766         * lib/error.c (strerror_r): Declare also when its return type is 'int'.
7767
7768 2011-06-05  Bruno Haible  <bruno@clisp.org>
7769
7770         unsetenv: Avoid gcc warning.
7771         * lib/unsetenv.c (unsetenv): Provide declaration if system lacks it.
7772
7773 2011-06-05  Bruno Haible  <bruno@clisp.org>
7774
7775         setenv: Avoid gcc warning.
7776         * lib/setenv.c (setenv): Provide declaration if system lacks it.
7777
7778 2011-06-05  Bruno Haible  <bruno@clisp.org>
7779
7780         sys_select: Ensure memset is declared also on AIX 7.
7781         * lib/sys_select.in.h: Include <string.h> also on AIX.
7782         * doc/posix-headers/sys_select.texi: Mention that <sys/select.h> is not
7783         self-contained also on AIX 7.1.
7784
7785 2011-06-04  Jim Meyering  <meyering@redhat.com>
7786
7787         maint.mk: sc_unmarked_diagnostics: don't hard-code "error"
7788         * top/maint.mk (sc_unmarked_diagnostics): Don't hard-code the
7789         function name, "error".
7790         (_gl_translatable_diag_func_re): New configurable variable.
7791
7792 2011-06-04  Bruno Haible  <bruno@clisp.org>
7793
7794         getopt: Avoid gcc warning.
7795         * lib/getopt.c (_getopt_internal_r): Remove unused variable 'ambig'.
7796
7797 2011-06-04  Bruno Haible  <bruno@clisp.org>
7798
7799         strerror_r: Fix comments.
7800         * lib/strerror_r.c (strerror_r): Update comments after 2011-06-01
7801         commit.
7802
7803 2011-06-04  Bruno Haible  <bruno@clisp.org>
7804
7805         perror: Fix compilation error.
7806         * lib/perror.c: Don't include intprops.h, verify.h, strerror-impl.h.
7807         Undefine fprintf, not sprintf.
7808         * modules/perror (Depends-on): Remove intprops, verify.
7809
7810 2011-06-04  Bruno Haible  <bruno@clisp.org>
7811
7812         setlocale: Enable replacement on Cygwin 1.5.
7813         * m4/setlocale.m4 (gl_FUNC_SETLOCALE): Set REPLACE_SETLOCALE also on
7814         Cygwin 1.5.x.
7815         * doc/posix-functions/setlocale.texi: Mention that the problem with the
7816         LC_CTYPE category also exists on Cygwin 1.5.x.
7817
7818 2011-06-04  Bruno Haible  <bruno@clisp.org>
7819
7820         strerror-override: Don't disable symbol renamings.
7821         * lib/strerror-override.h: Include errno.h and stddef.h, not string.h.
7822         * lib/strerror-override.c: Include config.h.
7823         (strerror_override): Don't undefine.
7824
7825 2011-06-03  Bruno Haible  <bruno@clisp.org>
7826
7827         Copyright: Use LGPL 2.1 instead of LGPL 2.0.
7828         * lib/localename.h: Update copyright header.
7829         * lib/localename.c: Likewise.
7830         * lib/relocatable.h: Likewise.
7831         * lib/relocatable.c: Likewise.
7832
7833 2011-06-02  Bruno Haible  <bruno@clisp.org>
7834
7835         doc: Fix a module name.
7836         * doc/posix-functions/open.texi: Fix module name 'nonblocking'.
7837
7838 2011-06-02  Bruno Haible  <bruno@clisp.org>
7839
7840         pipe2: Remove dependency on 'nonblocking' module.
7841         * lib/pipe2.c: Include verify.h. Include nonblocking.h only if
7842         O_NONBLOCK is defined by gnulib.
7843         (pipe2) [WIN32]: If O_NONBLOCK is not defined by gnulib, verify that it
7844         is zero.
7845         * modules/pipe2 (Depends-on): Add verify. Remove nonblocking.
7846         * tests/test-pipe2.c: Include nonblocking.h only if O_NONBLOCK is
7847         defined by gnulib.
7848         (get_nonblocking_flag): New function.
7849         (main): Test O_NONBLOCK flag only if it is nonzero.
7850         * doc/glibc-functions/pipe2.texi: Mention the 'nonblocking' module.
7851
7852 2011-06-03  Jim Meyering  <meyering@redhat.com>
7853
7854         maint: three new prohibit-header-without-use rules
7855         Prohibit use of cloexec.h, posixver.h, same.h without use.
7856         * top/maint.mk (sc_prohibit_cloexec_without_use): New rule.
7857         (sc_prohibit_posixver_without_use): Likewise.
7858         (sc_prohibit_same_without_use): Likewise.
7859
7860 2011-06-02  Paul Eggert  <eggert@cs.ucla.edu>
7861
7862         allocator: 'die' routine is now given requested size
7863         * lib/allocator.h (struct allocator.die): New size arg.
7864         * lib/careadlinkat.c (careadlinkat): Pass size to 'die' function.
7865         If the actual problem is an ssize_t limitation, not a size_t or
7866         malloc failure, fail with errno==ENAMETOOLONG instead of calling 'die'.
7867
7868 2011-06-01  Eric Blake  <eblake@redhat.com>
7869
7870         strerror: drop strerror_r dependency
7871         * lib/strerror_r.c (strerror_r): Move gnulib replacement strings...
7872         * lib/strerror-override.c (strerror_override): ...to new file.
7873         * lib/strerror-override.h: Add prototype.
7874         * lib/strerror-impl.h: Delete.
7875         * lib/strerror.c (strerror): New implementation.
7876         * modules/errno (Files): Add new files.
7877         (configure.ac): Compile new file as appropriate.
7878         * modules/strerror (Files): Drop unused file.
7879         (Depends-on): Drop strerror_r-posix.
7880         * MODULES.html.sh: Document strerror_r-posix.
7881         Requested by Sam Steingold.
7882
7883         perror: call strerror_r directly
7884         * modules/perror (Files): Drop strerror-impl.h.
7885         * lib/perror.c (perror): Use our own stack buffer, rather than
7886         calling a wrapper that uses static storage.
7887         * doc/posix-functions/perror.texi (perror): Document a limitation
7888         of our replacement.
7889
7890         strerror_r: fix includes for FreeBSD
7891         * lib/strerror_r.c (includes): Use <stdlib.h> unconditionally,
7892         since we use abort on some platforms.
7893         Reported by Matthias Bolte.
7894
7895 2011-05-31  Bruno Haible  <bruno@clisp.org>
7896
7897         Fix link errors in tests: openat-die uses gettext-h.
7898         * modules/areadlinkat-tests (Makefile.am): Link test-areadlinkat
7899         against $(LIBINTL).
7900         * modules/dirent-safer-tests (Makefile.am): Link test-dirent-safer
7901         against $(LIBINTL).
7902         * modules/fdopendir-tests (Makefile.am): Link test-fdopendir against
7903         $(LIBINTL).
7904         * modules/fdutimensat-tests (Makefile.am): Link test-fdutimensat
7905         against $(LIBINTL).
7906         * modules/linkat-tests (Makefile.am): Link test-linkat against
7907         $(LIBINTL).
7908         * modules/mkfifoat-tests (Makefile.am): Link test-mkfifoat against
7909         $(LIBINTL).
7910         * modules/openat-safer-tests (Makefile.am): Link test-openat-safer
7911         against $(LIBINTL).
7912         * modules/openat-tests (Makefile.am): Link test-fchownat, test-fstatat,
7913         test-mkdirat, test-openat, test-unlinkat against $(LIBINTL).
7914         * modules/readlinkat-tests (Makefile.am): Link test-readlinkat against
7915         $(LIBINTL).
7916         * modules/symlinkat-tests (Makefile.am): Link test-symlinkat against
7917         $(LIBINTL).
7918         * modules/utimensat-tests (Makefile.am): Link test-utimensat against
7919         $(LIBINTL).
7920         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
7921
7922 2011-05-31  Bruno Haible  <bruno@clisp.org>
7923
7924         Fix link errors in tests: wait-process uses gettext-h.
7925         * modules/nonblocking-pipe-tests (Makefile.am): Set
7926         test_nonblocking_pipe_main_LDADD.
7927         * modules/nonblocking-socket-tests (Makefile.am): Link
7928         test-nonblocking-socket-main against $(LIBINTL).
7929         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
7930
7931 2011-05-29  Paul Eggert  <eggert@cs.ucla.edu>
7932
7933         assert-h: work around 'verify' incompatibility
7934         * lib/verify.h: Use @...@ directives, not ifdef.
7935         * modules/assert-h (assert.h): Implement the directives.
7936         (assert.h): Substitute the symbol-prefix more consistently.
7937
7938 2011-05-29  Jim Meyering  <meyering@redhat.com>
7939
7940         trim: remove three superfluous assignments
7941         * lib/trim.c (trim2): Remove three superfluous assignments
7942         and correct brace positioning.
7943
7944 2011-05-29  Bruno Haible  <bruno@clisp.org>
7945
7946         wctype-h: Avoid namespace pollution on Solaris 2.6.
7947         * lib/wctype.in.h: On Solaris, undefine 'multibyte' and a few other
7948         identifiers.
7949         * doc/posix-headers/wctype.texi: Mention the problem.
7950         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
7951
7952 2011-05-28  Jim Meyering  <meyering@redhat.com>
7953
7954         parse-datetime.y: accommodate -Wstrict-overflow
7955         * lib/parse-datetime.y (yylex): Rearrange pointer arithmetic to
7956         placate -Wstrict-overflow.
7957
7958         trim: avoid a warning from -O2 -Wstrict-overflow
7959         * lib/trim.c (trim2): Declare local to be "unsigned int", not "int".
7960
7961 2011-05-29  Bruno Haible  <bruno@clisp.org>
7962
7963         gnulib-tool: Fix bug in yesterday's commit.
7964         * gnulib-tool (func_create_testdir): Don't add gltests to $subdirs
7965         twice.
7966
7967 2011-05-29  Bruno Haible  <bruno@clisp.org>
7968
7969         Allow multiple gnulib generated include files to be combined.
7970         * gnulib-tool (func_compute_include_guard_prefix): New function.
7971         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Resolve also
7972         ${gl_include_guard_prefix} references.
7973         (func_import, func_create_testdir): Invoke
7974         func_compute_include_guard_prefix.
7975         * lib/arpa_inet.in.h: Use the @GUARD_PREFIX@ placeholder.
7976         * lib/ctype.in.h: Likewise.
7977         * lib/dirent.in.h: Likewise.
7978         * lib/errno.in.h: Likewise.
7979         * lib/fcntl.in.h: Likewise.
7980         * lib/float.in.h: Likewise.
7981         * lib/getopt.in.h: Likewise.
7982         * lib/iconv.in.h: Likewise.
7983         * lib/langinfo.in.h: Likewise.
7984         * lib/locale.in.h: Likewise.
7985         * lib/math.in.h: Likewise.
7986         * lib/netdb.in.h: Likewise.
7987         * lib/netinet_in.in.h: Likewise.
7988         * lib/poll.in.h: Likewise.
7989         * lib/pthread.in.h: Likewise.
7990         * lib/pty.in.h: Likewise.
7991         * lib/sched.in.h: Likewise.
7992         * lib/se-selinux.in.h: Likewise.
7993         * lib/search.in.h: Likewise.
7994         * lib/signal.in.h: Likewise.
7995         * lib/spawn.in.h: Likewise.
7996         * lib/stdarg.in.h: Likewise.
7997         * lib/stddef.in.h: Likewise.
7998         * lib/stdint.in.h: Likewise.
7999         * lib/stdio.in.h: Likewise.
8000         * lib/stdlib.in.h: Likewise.
8001         * lib/string.in.h: Likewise.
8002         * lib/strings.in.h: Likewise.
8003         * lib/sys_file.in.h: Likewise.
8004         * lib/sys_ioctl.in.h: Likewise.
8005         * lib/sys_select.in.h: Likewise.
8006         * lib/sys_socket.in.h: Likewise.
8007         * lib/sys_stat.in.h: Likewise.
8008         * lib/sys_time.in.h: Likewise.
8009         * lib/sys_times.in.h: Likewise.
8010         * lib/sys_uio.in.h: Likewise.
8011         * lib/sys_utsname.in.h: Likewise.
8012         * lib/sys_wait.in.h: Likewise.
8013         * lib/sysexits.in.h: Likewise.
8014         * lib/termios.in.h: Likewise.
8015         * lib/time.in.h: Likewise.
8016         * lib/unistd.in.h: Likewise.
8017         * lib/wchar.in.h: Likewise.
8018         * lib/wctype.in.h: Likewise.
8019         * modules/arpa_inet (Makefile.am): Substitute @GUARD_PREFIX@.
8020         * modules/ctype (Makefile.am): Likewise.
8021         * modules/dirent (Makefile.am): Likewise.
8022         * modules/errno (Makefile.am): Likewise.
8023         * modules/fcntl-h (Makefile.am): Likewise.
8024         * modules/float (Makefile.am): Likewise.
8025         * modules/getopt-posix (Makefile.am): Likewise.
8026         * modules/iconv-h (Makefile.am): Likewise.
8027         * modules/langinfo (Makefile.am): Likewise.
8028         * modules/locale (Makefile.am): Likewise.
8029         * modules/math (Makefile.am): Likewise.
8030         * modules/netdb (Makefile.am): Likewise.
8031         * modules/netinet_in (Makefile.am): Likewise.
8032         * modules/poll-h (Makefile.am): Likewise.
8033         * modules/pthread (Makefile.am): Likewise.
8034         * modules/pty (Makefile.am): Likewise.
8035         * modules/sched (Makefile.am): Likewise.
8036         * modules/search (Makefile.am): Likewise.
8037         * modules/selinux-h (Makefile.am): Likewise.
8038         * modules/signal (Makefile.am): Likewise.
8039         * modules/spawn (Makefile.am): Likewise.
8040         * modules/stdarg (Makefile.am): Likewise.
8041         * modules/stddef (Makefile.am): Likewise.
8042         * modules/stdint (Makefile.am): Likewise.
8043         * modules/stdio (Makefile.am): Likewise.
8044         * modules/stdlib (Makefile.am): Likewise.
8045         * modules/string (Makefile.am): Likewise.
8046         * modules/strings (Makefile.am): Likewise.
8047         * modules/sys_file (Makefile.am): Likewise.
8048         * modules/sys_ioctl (Makefile.am): Likewise.
8049         * modules/sys_select (Makefile.am): Likewise.
8050         * modules/sys_socket (Makefile.am): Likewise.
8051         * modules/sys_stat (Makefile.am): Likewise.
8052         * modules/sys_time (Makefile.am): Likewise.
8053         * modules/sys_times (Makefile.am): Likewise.
8054         * modules/sys_uio (Makefile.am): Likewise.
8055         * modules/sys_utsname (Makefile.am): Likewise.
8056         * modules/sys_wait (Makefile.am): Likewise.
8057         * modules/sysexits (Makefile.am): Likewise.
8058         * modules/termios (Makefile.am): Likewise.
8059         * modules/time (Makefile.am): Likewise.
8060         * modules/unistd (Makefile.am): Likewise.
8061         * modules/wchar (Makefile.am): Likewise.
8062         * modules/wctype-h (Makefile.am): Likewise.
8063         * modules/assert-h (Makefile.am): Replace _GL_VERIFY_H specially.
8064
8065 2011-05-29  Bruno Haible  <bruno@clisp.org>
8066
8067         assert-h: Allow multiple gnulib generated replacements to coexist.
8068         * lib/verify.h (struct _gl_verify_type): Avoid identical redefinition.
8069
8070 2011-05-29  Bruno Haible  <bruno@clisp.org>
8071
8072         argp: Allow coexistence with strerror_r-posix module.
8073         * lib/argp-help.c (__argp_failure): If strerror_r is defined as a macro
8074         (either to __xpg_strerror_r by glibc's <string.h> or to rpl_strerror_r
8075         by gnulib's <string.h> replacement), assume it has the POSIX signature,
8076         not the glibc signature.
8077
8078 2011-05-28  Bruno Haible  <bruno@clisp.org>
8079
8080         gnulib-tool: Alternative structure of testdirs, similar to --import.
8081         * gnulib-tool: New option --single-configure.
8082         (func_usage): Document it.
8083         (single_configure): New variable.
8084         (func_modules_transitive_closure_separately,
8085         func_modules_transitive_closure_separately,
8086         func_determine_use_libtests, func_modules_add_dummy_separately,
8087         func_modules_to_filelist_separately): New functions, extracted from
8088         func_import.
8089         (func_emit_tests_Makefile_am): Handle $single_configure = true case.
8090         (func_import): Use the new functions.
8091         (func_create_testdir): Set final_modules. Handle $single_configure =
8092         true case.
8093
8094 2011-05-28  Bruno Haible  <bruno@clisp.org>
8095
8096         getloadavg: Remove an unreliable safety check.
8097         * m4/getloadavg.m4 (gl_GETLOADAVG): Drop argument. Remove test whether
8098         getloadavg.c is in place.
8099         * modules/getloadavg (configure.ac): Drop argument of gl_GETLOADAVG.
8100         Reported by Sam Steingold <sds@gnu.org>.
8101
8102 2011-05-28  Bruno Haible  <bruno@clisp.org>
8103
8104         doc: Cleanup yet another file produced by texinfo.tex.
8105         * doc/Makefile (mostlyclean): Remove also gnulib.cn.
8106
8107 2011-05-28  Bruno Haible  <bruno@clisp.org>
8108
8109         Finish the conditional dependencies mechanism.
8110         * gnulib-tool: New option --no-conditional-dependencies.
8111         (func_usage): Document it. Don't mark --conditional-dependencies as
8112         experimental.
8113         (cond_dependencies): The possible values can now be true, false, empty.
8114         (func_modules_transitive_closure, func_emit_autoconf_snippets): Update.
8115         (func_import): Store setting in gnulib-cache.m4 and read it from there.
8116         * doc/gnulib-tool.texi (Conditional dependencies): New section.
8117
8118 2011-05-28  Bruno Haible  <bruno@clisp.org>
8119
8120         doc: Use a recent texinfo.tex.
8121         * doc/Makefile (tex_opts): New variable.
8122         (%.dvi, %.pdf): Pass it to texi2dvi and texi2pdf.
8123
8124 2011-05-28  Jim Meyering  <meyering@redhat.com>
8125
8126         intprops.h: adjust comment to match code change
8127         * lib/intprops.h (_GL_INT_CONVERT): Adjust comment: now that E is used
8128         only once, it *may* have side effects.  Also fix an unrelated typo.
8129         (_GL_INT_SIGNED): Likewise.
8130
8131 2011-05-26  Simon Josefsson  <simon@josefsson.org>
8132
8133         * lib/gen-uni-tables.c: Say "gen-uni-tables.c" consistently.
8134
8135 2011-05-26  Bruno Haible  <bruno@clisp.org>
8136
8137         mbsrchr: Avoid collision with system function on Interix.
8138         * lib/string.in.h (mbsrchr): Define as rpl_mbsrchr also on Interix.
8139         Reported by Markus Duft <mduft@gentoo.org>.
8140
8141 2011-05-15  James Youngman  <jay@gnu.org>
8142
8143         getopt: for ambiguous options, enumerate the possibilities.
8144         * lib/getopt.c (_getopt_internal_r): Merge glibc change printing
8145         the ambiguous options when an ambiguous prefix is given. This was
8146         http://sourceware.org/bugzilla/show_bug.cgi?id=7101.  The merged
8147         glibc change was
8148         http://sourceware.org/git/?p=glibc.git;a=commit;h=bd25564e1e98910ed69043ed6a6f884ce60e5780.
8149
8150 2011-05-25  Eric Blake  <eblake@redhat.com>
8151
8152         getcwd: work around mingw bug
8153         * lib/getcwd-lgpl.c (rpl_getcwd): Guarantee correct error.
8154         * doc/posix-functions/getcwd.texi (getcwd): Document it.
8155         Reported by Matthias Bolte.
8156
8157 2011-05-24  Paul Eggert  <eggert@cs.ucla.edu>
8158
8159         test-intprops: disable -Wtype-limits diagnostics
8160         * tests/test-intprops.c: Use a pragma to ignore -Wtype-limits
8161         diagnostics.  Otherwise, the integer overflow macros generate many
8162         diagnostics.  Reported by Jim Meyering in
8163         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00528.html>.
8164
8165         intprops: shorten, to pacify gcc -Woverlength-strings
8166         * lib/intprops.h (_GL_INT_CONVERT, _GL_INT_NEGATE_CONVERT):
8167         (_GL_BINARY_OP_OVERFLOW): Say "0 * (x)" rather than "(x) - (x)",
8168         so that, for example, verify (INT_MULTIPLY_OVERFLOW (...)) is less
8169         likely to run afoul of C compiler limits for string constant lengths.
8170         See <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00528.html>.
8171
8172 2011-05-24  Eric Blake  <eblake@redhat.com>
8173
8174         docs: document recently fixed glibc printf bug
8175         * doc/posix-functions/fprintf.texi (fprintf): Document it.
8176         * doc/posix-functions/printf.texi (printf): Likewise.
8177         * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
8178         * doc/posix-functions/vprintf.texi (vprintf): Likewise.
8179
8180         closein-tests: convert to init.sh
8181         * modules/closein-tests (Files): Add init.sh
8182         * tests/test-closein.sh Use it.
8183
8184         yesno-tests: convert to init.sh
8185         * modules/yesno-tests (Files): Add init.sh.
8186         * tests/test-yesno.sh: Use it.
8187
8188         atexit-tests: ensure reliable exit status
8189         * tests/test-atexit.sh: Prefer 'Exit' over 'exit'.
8190         Reported by Bruno Haible.
8191
8192 2011-05-24  Bruno Haible  <bruno@clisp.org>
8193
8194         strerror_r-posix: Respect rules for use of AC_LIBOBJ.
8195         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Move AC_LIBOBJ and
8196         gl_PREREQ_STRERROR_R invocations from here...
8197         * modules/strerror_r-posix (configure.ac): ... to here.
8198
8199 2011-05-24  Eric Blake  <eblake@redhat.com>
8200
8201         strerror_r: fix missing header
8202         * lib/strerror_r.c: Avoid compiler warning about snprintf.
8203
8204         strerror_r: fix AIX test failures
8205         * lib/strerror_r.c (strerror_r): Convert silent truncation to
8206         ERANGE failure.
8207
8208         strerror_r: fix Solaris test failures
8209         * lib/strerror_r.c (strerror_r): Partially populate buf on ERANGE
8210         failures.
8211         * doc/posix-functions/strerror_r.texi (strerror_r): Document this.
8212
8213         strerror_r: enforce POSIX recommendations
8214         * lib/strerror_r.c (safe_copy): New helper method.
8215         (strerror_r): Guarantee a non-empty string.
8216         * tests/test-strerror_r.c (main): Enhance tests to incorporate
8217         recent POSIX rulings and to match our strerror guarantees.
8218         * doc/posix-functions/strerror_r.texi (strerror_r): Document this.
8219
8220 2011-05-24  Jim Meyering  <meyering@redhat.com>
8221
8222         test-perror2.c: avoid warning about unused variable
8223         * tests/test-perror2.c (main): Remove declaration of unused "fp".
8224
8225 2011-05-24  Eric Blake  <eblake@redhat.com>
8226
8227         perror: avoid spurious test failure on HP-UX
8228         * tests/test-perror.sh: Use Exit to avoid wrong exit status.
8229
8230         tests: fix logic bug in init.sh
8231         * tests/init.sh: (gl_set_x_corrupts_stderr_): Clear for successful
8232         shell.
8233
8234 2011-05-24  Jim Meyering  <meyering@redhat.com>
8235
8236         utimensat: do not reference an out-of-scope buffer
8237         Otherwise, with __linux__ defined, "times" would point to a buffer, "ts"
8238         declared in an inner scope, yet "times" would be dereferenced outside
8239         the scope in which "ts" was valid.
8240         * lib/utimensat.c (rpl_utimensat) [__linux__]: Move the declaration
8241         of ts[2] "out/up", so that the use of aliased "times" (via
8242         "times = ts;") does not end up referencing an out-of-scope "ts"
8243
8244         opendir-safer.c: don't clobber errno; don't close negative FD
8245         * lib/opendir-safer.c (opendir_safer):
8246         [HAVE_FDOPENDIR || GNULIB_FDOPENDIR]: Don't close a negative
8247         file descriptor, and more importantly, don't clobber the
8248         offending errno value with EINVAL.  Before, upon failure
8249         of dup_safer, we would pass the negative file descriptor to
8250         fdopendir, which would clobber errno.
8251
8252 2011-05-23  Bruno Haible  <bruno@clisp.org>
8253
8254         idcache: Fix module description.
8255         * modules/idcache (Include): Set to "idcache.h".
8256
8257 2011-05-23  Paul Eggert  <eggert@cs.ucla.edu>
8258
8259         gnulib-tool: fix portability problem with MacOS sed
8260         A sed command like "/x/{s/a/b/}" is not portable; a newline is needed
8261         before the "}".  Problem reported by Leo in
8262         <http://lists.gnu.org/archive/html/emacs-devel/2011-05/msg00717.html>.
8263         * gnulib-tool (func_modules_transitive_closure): Insert newlines in
8264         sed_extract_condition1, sed_extract_condition2.
8265
8266 2011-05-23  Bruno Haible  <bruno@clisp.org>
8267
8268         hash: Simplify autoconf macro.
8269         * m4/hash.m4 (gl_HASH): Don't require AM_STDBOOL_H.
8270
8271 2011-05-23  Bruno Haible  <bruno@clisp.org>
8272
8273         getugroups: Fix module description.
8274         * modules/getugroups (Include): Set to "getugroups.h".
8275
8276 2011-05-23  Bruno Haible  <bruno@clisp.org>
8277
8278         linkat: Simplify autoconf macro.
8279         * m4/linkat.m4 (gl_FUNC_LINKAT): Don't require gl_FUNC_LINK.
8280
8281 2011-05-23  Bruno Haible  <bruno@clisp.org>
8282             Eric Blake  <eblake@redhat.com>
8283
8284         linkat, renameat: Update dependencies.
8285         * modules/renameat (Depends-on): Add dosname, save-cwd. Remove stpcpy.
8286         * modules/linkat (Depends-on): Likewise. Remove also readlink,
8287         symlinkat.
8288
8289 2011-05-23  Jim Meyering  <meyering@redhat.com>
8290
8291         maint.mk: more tight_scope improvements
8292         * top/maint.mk: (_gl_TS_var_match): Use $(_gl_TS_extern) here, too.
8293         (_gl_TS_headers): Define only in if-0'd block.
8294         (_gl_TS_dir): Omit the $(srcdir)/ prefix.  Sometimes we need it,
8295         sometimes we must *not* use it.  Adjust uses accordingly.
8296         (sc_tight_scope): Use much simpler grep-based test to determine
8297         whether we skip this rule.
8298
8299         maint.mk: generalize/improve the tight-scope rule
8300         * top/maint.mk: Emit a warning when the test is skipped.
8301         (_gl_TS_dir): Add $(srcdir)/ prefix.
8302         (_gl_TS_function_match): Simplify, rather than trying
8303         to enumerate common types.  Otherwise, it would fail to match an
8304         "extern unsigned char const *" declaration in idutils.
8305         (_gl_TS_extern): Do not endorse use of "XTERN", but do provide
8306         a way to support use of that type of macro.
8307         (_gl_TS_var_match): Simplify regexp.
8308         (_gl_TS_obj_files): New configurable variable.
8309         (_gl_TS_headers): Likewise.
8310
8311 2011-05-22  Paul Eggert  <eggert@cs.ucla.edu>
8312
8313         verify: fix bug when gnulib <assert.h> is also included
8314         * lib/verify.h (verify, verify_true): Define if _GL_VERIFY_H
8315         is defined, not if _GL_STATIC_ASSERT_H is not defined.
8316         Perhaps there's a better way, but this fixes the immediate problem.
8317         Problem reported by Bruno Haible in
8318         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00478.html>.
8319
8320 2011-05-22  Bruno Haible  <bruno@clisp.org>
8321
8322         xgetcwd: Simplify autoconf macro.
8323         * m4/xgetcwd.m4 (gl_XGETCWD): Don't require gl_FUNC_GETCWD.
8324
8325 2011-05-22  Bruno Haible  <bruno@clisp.org>
8326
8327         New module 'mktime-internal'.
8328         * modules/mktime-internal: New file.
8329         * m4/timegm.m4 (gl_PREREQ_TIMEGM): Move contents to ...
8330         * m4/mktime.m4 (gl_FUNC_MKTIME_INTERNAL): New macro. Define
8331         mktime_internal as a C macro if libc has __mktime_internal.
8332         * modules/timegm (Depends-on): Add mktime-internal. Remove mktime. Add
8333         conditions.
8334         * MODULES.html.sh (Date and time <time.h>): Add mktime-internal.
8335
8336 2011-05-22  Bruno Haible  <bruno@clisp.org>
8337
8338         timegm: Correct mktime replacement statements.
8339         * m4/timegm.m4 (gl_PREREQ_TIMEGM): Set REPLACE_MKTIME, instead of
8340         defining mktime as a C macro. This completes a 2009-07-28 commit.
8341
8342 2011-05-22  Bruno Haible  <bruno@clisp.org>
8343
8344         timegm: Simplify autoconf macro.
8345         * m4/timegm.m4 (gl_PREREQ_TIMEGM): Don't require gl_TIME_R.
8346
8347 2011-05-21  Paul Eggert  <eggert@cs.ucla.edu>
8348
8349         clock-time: change to LGPLv2+.
8350         * modules/clock-time: Change from GPL to LGPLv2+.  Actually, it's
8351         BSD-like but we have no mark for that; this is good enough for now.
8352
8353 2011-05-21  Bruno Haible  <bruno@clisp.org>
8354
8355         strerror_r: Fix comments.
8356         * lib/strerror_r.c (strerror_r): Fix comment about Cygwin and sys_nerr.
8357
8358 2011-05-21  Bruno Haible  <bruno@clisp.org>
8359
8360         relocatable-prog-wrapper: Fix possible link error.
8361         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Move determination of
8362         HAVE_SETENV and REPLACE_SETENV and AC_LIBOBJ invocation from here...
8363         (gl_FUNC_SETENV): ... to here.
8364         * m4/canonicalize.m4 (gl_CANONICALIZE_LGPL_SEPARATE): Update comment.
8365         * m4/readlink.m4 (gl_FUNC_READLINK_SEPARATE): Likewise.
8366
8367 2011-05-21  Bruno Haible  <bruno@clisp.org>
8368
8369         relocatable-prog-wrapper: Assume strerror() exists.
8370         * modules/relocatable-prog-wrapper (Files): Remove lib/strerror.c,
8371         m4/strerror.m4.
8372         (configure.ac): Don't invoke gl_FUNC_STRERROR_SEPARATE.
8373         * lib/relocwrapper.c: Remove mention of strerror module.
8374         * lib/strerror.c: Assume REPLACE_STRERROR is 1.
8375         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Remove macro.
8376         (gl_FUNC_STRERROR): Inline it here. Don't define REPLACE_STRERROR as a
8377         C macro.
8378
8379 2011-05-21  Bruno Haible  <bruno@clisp.org>
8380
8381         select: Simplify replacement idiom.
8382         * m4/select.m4 (gl_FUNC_SELECT): Set REPLACE_SELECT also on native
8383         Win32 platforms.
8384         * lib/sys_select.in.h (select): Simplify accordingly.
8385         * modules/select (Depends-on): Likewise.
8386
8387 2011-05-21  Bruno Haible  <bruno@clisp.org>
8388
8389         mkdir-p: Simplify autoconf macro.
8390         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Don't require gl_FUNC_LCHMOD,
8391         gl_FUNC_LCHOWN.
8392
8393 2011-05-21  Eric Blake  <eblake@redhat.com>
8394
8395         strerror_r: avoid clobbering strerror on cygwin
8396         * lib/strerror_r.c (strerror_r): Don't use cygwin's strerror_r;
8397         fall back instead to sys_errlist.
8398         * modules/strerror (configure.ac): Add witness.
8399         * tests/test-strerror_r.c (main): Enhance test.
8400         * doc/posix-functions/strerror_r.texi (strerror_r): Document it.
8401         * tests/test-perror2.c (main): Free memory before exit.
8402
8403 2011-05-21  Bruno Haible  <bruno@clisp.org>
8404
8405         mkdtemp: Use gnulib naming conventions.
8406         * m4/mkdtemp.m4 (gl_FUNC_MKDTEMP): Renamed from gt_FUNC_MKDTEMP.
8407         * modules/mkdtemp (configure.ac): Update.
8408
8409 2011-05-20  Eric Blake  <eblake@redhat.com>
8410
8411         strerror_r: avoid corrupting errno on Solaris
8412         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Check for Solaris behavior.
8413         * doc/posix-functions/strerror_r.texi (strerror_r): Document it.
8414
8415         strerror_r: avoid compiler warning
8416         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Don't return a char*.
8417
8418         strerror_r: simplify AIX code
8419         * lib/strerror_r.c (strerror_r): Filter out buflen of 1 up front.
8420
8421         test-perror: avoid spurious failure on FreeBSD
8422         * modules/perror-tests (Depends-on): Add strerror, now that
8423         strerror_r no longer pulls it in.
8424
8425 2011-05-20  Bruno Haible  <bruno@clisp.org>
8426
8427         strerror_r-posix: Remove unused dependencies.
8428         * modules/strerror_r-posix (Depends-on): Remove strerror.
8429         Reported by Eric Blake.
8430
8431 2011-05-20  Paul Eggert  <eggert@cs.ucla.edu>
8432
8433         intprops: remove assumption about A|B representation
8434         * lib/intprops.h (_GL_BINARY_OP_OVERFLOW): Do not assume that A|B
8435         is a valid integer if both A and B are.  Although this is true for
8436         all known practical hosts, the C standard doesn't guarantee it,
8437         and the code need not assume it.  Also, this change may work around
8438         HP-UX 11.23 and IRIX 6.5 cc bugs reported by Bruno Haible in
8439         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00426.html>.
8440
8441 2011-05-20  Eric Blake  <eblake@redhat.com>
8442
8443         perror: work around FreeBSD bug
8444         * m4/perror.m4 (gl_FUNC_PERROR): Also replace perror if strerror_r
8445         is broken.  Move AC_LIBOBJ...
8446         * modules/perror (configure.ac): Here.
8447         * doc/posix-functions/perror.texi (perror): Document this.
8448         * tests/test-perror2.c (main): Enhance test.
8449
8450         test-perror: check for strerror interactions
8451         * tests/macros.h (STREQ): Add macro.
8452         * modules/perror-tests (Files): Add second test.
8453         * tests/test-perror2.c (main): New file.
8454         * doc/posix-functions/perror.texi (perror): Document glibc bug.
8455
8456         test-perror: rewrite to use init script
8457         * modules/perror-tests (Files): Add init.sh.
8458         * tests/test-perror.sh: Use temporary directory.
8459
8460 2011-05-20  Jim Meyering  <meyering@redhat.com>
8461
8462         maint: replace misused "a" with "an"
8463         * doc/intprops.texi: "a integer"
8464         * doc/regex.texi: "a explanation"
8465         * lib/alignof.h: "a object"
8466         * lib/argmatch.h: "a explanation"
8467         * lib/argp-help.c: "a option" and "a OPTION_DOC"
8468         * lib/stdint.in.h: "a integer"
8469         * lib/userspec.c: "a owner"
8470         * doc/gnulib.texi: Fix "a idea", and reword.
8471
8472 2011-05-19  Jim Meyering  <meyering@redhat.com>
8473
8474         maint: correct misuse of "a" and "an"
8475         * doc/regex.texi (Collating Symbol Operators): s/an close.../a close/
8476         * lib/argp-help.c: "an docum...": s/an/a/
8477         * lib/argp-parse.c: "An vector": s/An/A/
8478         * lib/execute.c: "an native": s/an/a/
8479         * lib/spawn-pipe.c: Likewise.
8480         * lib/gc.h: "an Gc_rc": s/an/a/
8481         * lib/unigbrk.in.h: "an grapheme": s/an/a/
8482         * lib/fts.c: "an stat.st_dev": s/an/a/
8483
8484 2011-05-19  Paul Eggert  <eggert@cs.ucla.edu>
8485
8486         intprops-tests: work around HP-UX 11.23 cc bug with constants
8487         * tests/test-intprops.c (VERIFY): New macro.
8488         (main): Use it, instead of verify, to work around the compiler bug; see
8489         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00401.html>.
8490
8491         intprops: work around IRIX 6.5 cc bug with 0u - 0u + -1
8492         See http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00406.html
8493         * lib/intprops.h (_GL_INT_NEGATE_CONVERT): New macro.
8494         (_GL_INT_SIGNED, _GL_INT_MAXIMUM, _GL_DIVIDE_OVERFLOW):
8495         (_GL_REMAINDER_OVERFLOW): Use it.
8496
8497         intprops-tests: revert unsigned part of previous change
8498         * tests/test-intprops.c (UINT_MAX, ULONG_MAX, UINTMAX_MAX, U0, U1):
8499         Remove; they weren't actually needed.  All uses of U0 and U1 removed,
8500         and other casts to 'unsigned int' reverted to 'u' suffixes.  See
8501         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00406.html>.
8502
8503 2011-05-19  Bruno Haible  <bruno@clisp.org>
8504
8505         strerror_r: Work around strerror_r() change in Cygwin 1.7.8.
8506         * lib/strerror_r.c (strerror_r) [CYGWIN]: Recognize when the system's
8507         strerror_r() returned without filling the buffer.
8508         Reported by Eric Blake.
8509
8510 2011-05-19  Eric Blake  <eblake@redhat.com>
8511
8512         strerror_r: guarantee unchanged errno
8513         * lib/strerror_r.c (strerror_r): Guarantee unchanged errno.
8514         * lib/strerror-impl.h (strerror): Set errno to match strerror_r
8515         failure.
8516         * tests/test-strerror_r.c (main): Enhance test.
8517
8518 2011-05-19  Bruno Haible  <bruno@clisp.org>
8519
8520         strerror_r: Reorder #if blocks.
8521         * lib/strerror_r.c (strerror_r): Reorder conditionals in the function
8522         for consistency with the previous commit.
8523
8524 2011-05-19  Bruno Haible  <bruno@clisp.org>
8525
8526         perror: Avoid clobbering the strerror buffer when possible.
8527         * lib/strerror-impl.h: New file, extracted from lib/strerror.c.
8528         * lib/strerror.c: Include it.
8529         * modules/strerror (Files): Add lib/strerror-impl.h.
8530         * lib/perror.c: Include <stdlib.h>, intprops.h, verify.h.
8531         (my_strerror): New function, defined through lib/strerror-impl.h.
8532         (perror): Use it instead of strerror.
8533         * modules/perror (Files): Add lib/strerror-impl.h.
8534         (Depends-on): Remove strerror. Add intprops, verify, strerror_r-posix.
8535
8536 2011-05-19  Eric Blake  <eblake@redhat.com>
8537
8538         strerror_r: fix on newer cygwin
8539         * lib/strerror_r.c (strerror_r): Cygwin now has
8540         __xpg_strerror_r, use it.
8541
8542 2011-05-19  Bruno Haible  <bruno@clisp.org>
8543
8544         strerror_r: Avoid clobbering the strerror buffer when possible.
8545         * lib/strerror.c: Define _NETBSD_SOURCE. Include <nl_types.h>.
8546         (sys_nerr, sys_errlist): New declarations.
8547         (strerror_r): Be careful not to clobber the strerror buffer on NetBSD,
8548         HP-UX, native Win32, IRIX, and 32-bit Solaris.
8549         * m4/strerror_r.m4 (gl_PREREQ_STRERROR_R): Test whether catgets exists.
8550
8551 2011-05-19  Bruno Haible  <bruno@clisp.org>
8552
8553         strerror_r: Fix test failure on mingw.
8554         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Don't define
8555         EXTEND_STRERROR_R.
8556         * lib/strerror_r.c (strerror_r): Test the various GNULIB_defined_*
8557         macros from errno.in.h instead.
8558
8559 2011-05-19  Eric Blake  <eblake@redhat.com>
8560
8561         strerror: relax test for Solaris
8562         * tests/test-strerror.c (main): Permit Solaris behavior.
8563         * tests/test-strerror_r.c (main): Likewise.
8564
8565         strerror: enforce POSIX ruling on strerror(0)
8566         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Expose BSD bug.
8567         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Likewise.
8568         * lib/strerror_r.c (rpl_strerror_r): Work around it.
8569         * doc/posix-functions/strerror.texi (strerror): Document it.
8570         * doc/posix-functions/strerror_r.texi (strerror_r): Likewise.
8571         * tests/test-strerror.c (main): Strengthen test.
8572         * tests/test-strerror_r.c (main): Likewise.
8573
8574 2011-05-19  Paul Eggert  <eggert@cs.ucla.edu>
8575
8576         intprop-tests: port to older and more-pedantic compilers
8577         * modules/intprops-tests (Files): Add tests/macros.h.
8578         * tests/test-intprops.c: Include macros.h.
8579         (TYPE_IS_INTEGER): Use ASSERT, not verify, to test this macro, as
8580         it's no longer documented to expand to an integer constant expression.
8581         (TYPE_SIGNED): Use ASSERT, not verify, to test this macro when the
8582         argument is floating point, as it's no longer documented to expand
8583         to an integer constant expression in that case.
8584         (UINT_MAX, ULONG_MAX, UINTMAX_MAX): Redefine to work around
8585         compiler bugs reported by Bruno Haible.  See
8586         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00401.html>.
8587         (U0, U1): New constants, to work around the same bugs.  Also,
8588         in tests, use e.g., "(unsigned int) 39" rather than "39u".
8589
8590         intprops: work around C compiler bugs
8591         * lib/intprops.h (INT_MULTIPLY_RANGE_OVERFLOW): Work around compiler
8592         bug in Sun C 5.11 2010/08/13 and other compilers; see
8593         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00401.html>.
8594
8595         intprops: TYPE_IS_INTEGER, TYPE_SIGNED not integer constant exprs
8596         * doc/intprops.texi (Integer Type Determination): Fix
8597         documentation for TYPE_IS_INTEGER: it returns an constant
8598         expression, not an integer constant expression.  Fix doc for
8599         TYPE_SIGNED: it returns an integer constant expression only if its
8600         argument is an integer type.  (TYPE_IS_INTEGER is the same, but is
8601         hardly worth documented that way....)
8602
8603 2011-05-18  Bruno Haible  <bruno@clisp.org>
8604
8605         strerror_r: Avoid clobbering the strerror buffer when possible.
8606         * lib/strerror_r.c (strerror_r): Merge the three implementations.
8607         Handle gnulib defined errno values here. When strerror() returns NULL
8608         or an empty string, return EINVAL.
8609         * lib/strerror.c (strerror): Always call strerror_r. Don't handle
8610         gnulib defined errno values here.
8611         * modules/strerror (Depends-on): Add verify, strerror_r-posix.
8612
8613 2011-05-18  Eric Blake  <eblake@redhat.com>
8614
8615         fnmatch: avoid compiler warning
8616         * lib/fnmatch_loop.c (FCT): Use correct type.
8617         Reported by Matthias Bolte.
8618
8619 2011-05-13  Jim Meyering  <meyering@redhat.com>
8620
8621         maint.mk: three new prohibit_<HDR>_without_use rules
8622         * top/maint.mk (sc_prohibit_stdio--_without_use): New rule.
8623         (sc_prohibit_stdio-safer_without_use): Likewise.
8624         (sc_prohibit_xfreopen_without_use): Likewise.
8625
8626 2011-05-17  Jim Meyering  <meyering@redhat.com>
8627
8628         announce-gen: fail if the NEWS delta is empty
8629         If there's nothing noteworthy in NEWS, then either you forgot
8630         or you shouldn't be releasing.
8631         * build-aux/announce-gen: Die if the NEWS delta is effectively empty.
8632
8633 2011-05-17  Pádraig Brady <P@draigBrady.com>
8634
8635         * top/maint.mk (_gl_tight_scope:): Automatically exclude compiler
8636         reserved symbols starting with double underscore from the check.
8637
8638 2011-05-17  Paul Eggert  <eggert@cs.ucla.edu>
8639
8640         intprops: add doc
8641         * doc/intprops.texi: New file, documenting intprops.
8642         * doc/gnulib.texi (Particular Modules): Include it.
8643
8644         verify: add doc to gnulib manual and fix example
8645         * doc/gnulib.texi (Compile-time Assertions): New node, for 'verify'.
8646         * doc/verify.texi (Compile-time Assertions): Update 'assert' doc.
8647         (Compile-time Assertions): Fix example so it can't overflow.
8648
8649 2011-05-17  Jim Meyering  <meyering@redhat.com>
8650
8651         warnings.m4: don't usurp save_CPPFLAGS variable name
8652         * m4/warnings.m4: Prefix local temporary variable name with gl_.
8653
8654         doc: fix typo
8655         * doc/gnulib-intro.texi (Target Platforms): s/is/are/
8656
8657 2011-05-16  Paul Eggert  <eggert@cs.ucla.edu>
8658             Bruno Haible  <bruno@clisp.org>
8659
8660         doc: Tweak recent change.
8661         * README (Portability guidelines): Tweak new text.
8662         * doc/gnulib-intro.texi (Target Platforms): Likewise. Mention
8663         Interix 6.1.
8664
8665 2011-05-16  Eric Blake  <eblake@redhat.com>
8666
8667         inttypes: avoid autoconf warning
8668         * m4/inttypes.m4 (gl_INTTYPES_INCOMPLETE): Only expand once.
8669         * m4/stdint.m4 (gl_STDINT_H): Likewise.
8670
8671 2011-05-16  Sam Steingold <sds@gnu.org>
8672         and Eric Blake  <eblake@redhat.com>
8673
8674         vc-list-files: accept multiple directory operands
8675         * build-aux/vc-list-files: Iterate over all remaining operands.
8676
8677 2011-05-16  Bruno Haible  <bruno@clisp.org>
8678
8679         Fix confusion regarding deprecated modules.
8680         * modules/calloc (Status, Notice): Mark module as deprecated, not
8681         obsolete.
8682         * modules/fnmatch-posix (Status, Notice): Likewise.
8683         * modules/getdate (Status, Notice): Likewise.
8684         * modules/getopt (Status, Notice): Likewise.
8685         * modules/malloc (Status, Notice): Likewise.
8686         * modules/pipe (Status, Notice): Likewise.
8687         * modules/realloc (Status, Notice): Likewise.
8688         * modules/rename-dest-slash (Status, Notice): Likewise.
8689         * modules/unictype/bidicategory-all (Status, Notice): Likewise.
8690         * modules/unictype/bidicategory-byname (Status, Notice): Likewise.
8691         * modules/unictype/bidicategory-name (Status, Notice): Likewise.
8692         * modules/unictype/bidicategory-of (Status, Notice): Likewise.
8693         * modules/unictype/bidicategory-test (Status, Notice): Likewise.
8694
8695 2011-05-16  Bruno Haible  <bruno@clisp.org>
8696
8697         doc: List the target platforms.
8698         * doc/gnulib-intro.texi (Target Platforms): New section.
8699         * doc/gnulib.texi (Introduction): Update menu.
8700         * README (Portability guidelines): Refer to the new section. Update
8701         statement about oldest supported environment. Remove rationale why
8702         <errno.h>, <string.h>, <stdlib.h> are assumed. Update example of an
8703         unportable C89 function.
8704         Reported by Bastien Roucariès <roucaries.bastien@gmail.com> and
8705         Charles Wilson <cygwin@cwilson.fastmail.fm>. Feedback from Paul Eggert.
8706
8707 2011-05-16  Paul Eggert  <eggert@cs.ucla.edu>
8708
8709         * build-aux/bootstrap (gnulib_tool): Handle symlink timestamps better.
8710
8711 2011-05-13  Paul Eggert  <eggert@cs.ucla.edu>
8712
8713         intprops-tests: new module
8714         * modules/intprops-tests, tests/test-intprops.c: New files.
8715
8716         intprops: add safe, portable integer overflow checking
8717         * lib/intprops.h (_GL_INT_CONVERT, _GL_INT_TWOS_COMPLEMENT):
8718         (_GL_INT_SIGNED, _GL_INT_MINIMUM, _GL_INT_MAXIMUM):
8719         (_GL_SIGNED_INT_MINIMUM, INT_ADD_RANGE_OVERFLOW):
8720         (INT__SUBTRACT__RANGE_OVERFLOW, INT_NEGATE_RANGE_OVERFLOW):
8721         (INT_MULTIPLY_RANGE_OVERFLOW, INT_REMAINDER_RANGE_OVERFLOW):
8722         (INT_LEFT_SHIFT_RANGE_OVERFLOW, _GL_ADD_OVERFLOW):
8723         (_GL__SUBTRACT__OVERFLOW, _GL_MULTIPLY_OVERFLOW, _GL_DIVIDE_OVERFLOW):
8724         (_GL_REMAINDER_OVERFLOW, _GL_UNSIGNED_NEG_MULTIPLE, INT_ADD_OVERFLOW):
8725         (INT__SUBTRACT__OVERFLOW, INT_NEGATE_OVERFLOW, INT_MULTIPLY_OVERFLOW):
8726         (INT_DIVIDE_OVERFLOW, INT_REMAINDER_OVERFLOW):
8727         (INT_LEFT_SHIFT_OVERFLOW, _GL_BINARY_OP_OVERFLOW): New macros.
8728
8729 2011-05-12  James Youngman  <jay@gnu.org>
8730
8731         Add a test for glibc's Bugzilla bug #12378.
8732         * m4/fnmatch.m4: Use gnulib's fnmatch if the system fnmatch
8733         doesn't allow the literal matching of a lone "[" (which is
8734         required by POSIX).
8735         * tests/test-fnmatch.c (main): Check that "[/b" matches itself.
8736
8737 2011-05-11  Ulrich Drepper  <drepper@gmail.com>
8738
8739         Sync glibc change fixing Bugzilla bug #12378.
8740         * lib/fnmatch_loop.c (FCT): When matching '[' keep track of
8741         beginning and fall back to matching as normal character if the
8742         string ends before the matching ']' is found.  This is what POSIX
8743         requires.
8744
8745 2011-05-13  Eric Blake  <eblake@redhat.com>
8746
8747         getcwd-lgpl: relax test for FreeBSD
8748         * doc/posix-functions/getcwd.texi (getcwd): Document portability
8749         issue.
8750         * tests/test-getcwd-lgpl.c (main): Relax test.
8751         Reported by Matthias Bolte.
8752
8753 2011-05-11  Eric Blake  <eblake@redhat.com>
8754
8755         test-fflush: silence compiler warning
8756         * tests/test-fflush.c (main): Don't fclose a NULL pointer.
8757
8758 2011-05-11  Bruno Haible  <bruno@clisp.org>
8759
8760         canonicalize, canonicalize-lgpl: Avoid crash dialog on MacOS X.
8761         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Add GL_NOCRASH code.
8762         * modules/canonicalize (Depends-on): Add 'nocrash'.
8763         * modules/canonicalize-lgpl (Depends-on): Likewise.
8764         * doc/posix-functions/realpath.texi: Update platforms list.
8765         Reported by Ryan Schmidt <ryandesign@macports.org>.
8766
8767 2011-05-11  Bruno Haible  <bruno@clisp.org>
8768
8769         group-member: Declare function in <unistd.h>.
8770         * lib/unistd.in.h (group_member): New declaration.
8771         * lib/group-member.h: Remove file.
8772         * lib/group-member.c: Include <unistd.h> instead of group-member.h.
8773         * tests/test-unistd-c++.cc: Check signature of group_member.
8774         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Require
8775         gl_UNISTD_H_DEFAULTS. Set HAVE_GROUP_MEMBER.
8776         * m4/unistd_h.m4 (gl_UNISTD_H): Check whether group_member is declared.
8777         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GROUP_MEMBER,
8778         HAVE_GROUP_MEMBER.
8779         * modules/group-member (Files): Remove lib/group-member.h.
8780         (Depends-on): Add unistd. Specify conditions.
8781         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
8782         (Include): Change to <unistd.h>.
8783         * modules/unistd (Makefile.am): Substitute GNULIB_GROUP_MEMBER,
8784         HAVE_GROUP_MEMBER.
8785         * NEWS: Mention the change.
8786         * lib/euidaccess.c: Don't include group-member.h.
8787
8788 2011-05-11  Bruno Haible  <bruno@clisp.org>
8789
8790         group-member: Document module.
8791         * doc/glibc-functions/group_member.texi: Mention the 'group-member'
8792         module.
8793
8794 2011-05-11  Bruno Haible  <bruno@clisp.org>
8795
8796         fclose: Fix mistake earlier today.
8797         * lib/fclose.c (rpl_fclose): Don't assume that EOF < 0.
8798
8799 2011-05-11  Eric Blake  <eblake@redhat.com>
8800
8801         fclose: preserve fflush errors
8802         * lib/fclose.c (rpl_fclose): Don't lose fflush errors.
8803         Reported by Jim Meyering.
8804
8805         bootstrap: support a prereq of 'rpcgen -' on RHEL5
8806         * build-aux/bootstrap (check_versions): When no specific version
8807         is required, merely check that the app produces an exit status
8808         that indicates its existence.
8809
8810         maint.mk: drop redundant check
8811         * top/maint.mk (sc_the_the): Delete; sc_prohibit_doubled_word does
8812         the same but better.
8813
8814 2011-05-11  Bruno Haible  <bruno@clisp.org>
8815
8816         fclose: Fix possible link error.
8817         * lib/fclose.c (rpl_fclose): Invoke _gl_unregister_fd, not
8818         unregister_shadow_fd. Improve comments.
8819         * lib/sockets.c (close_fd_maybe_socket): Add comments. Reported by
8820         Eric Blake.
8821
8822 2011-05-11  Jim Meyering  <meyering@redhat.com>
8823
8824         maint.mk: improve "can not" detection and generalize rule name
8825         * top/maint.mk (sc_prohibit_undesirable_word_seq): Renamed from
8826         sc_prohibit_can_not, since we'll probably add a few more word pairs here.
8827         Use the same technique as in sc_prohibit_doubled_word, so that
8828         we recognize "can not" also when the words are separated by a newline.
8829         Suggested by Eric Blake.
8830         (perl_filename_lineno_text_): Define.  Factored out of...
8831         (prohibit_doubled_word_): ...here.  Use the new definition.
8832         (prohibit_undesirable_word_seq_): New var.  Use it here, too.
8833         (prohibit_undesirable_word_seq_RE_): New overridable variable.
8834         (ignore_undesirable_word_sequence_RE_): New overridable variable.
8835
8836 2011-05-10  Eric Blake  <eblake@redhat.com>
8837
8838         fclose: avoid double close race when possible
8839         * lib/fclose.c (rpl_fclose): Rewrite to avoid double-close race on
8840         all but WINDOWS_SOCKETS.
8841
8842 2011-05-10  Bastien Roucariès  <roucaries.bastien@gmail.com>
8843
8844         openat: correct new comment
8845         * lib/openat-proc.c (openat_proc_name): Correct the comment.
8846
8847 2011-05-10  Jim Meyering  <meyering@redhat.com>
8848
8849         openat: add comments
8850         * lib/openat-proc.c (openat_proc_name): Add comments,
8851         mostly from Eric Blake.
8852
8853 2011-05-09  Eric Blake  <eblake@redhat.com>
8854
8855         openat: reduce syscalls in first probe of /proc
8856         * lib/openat-proc.c (openat_proc_name): Require that /proc/self/fd
8857         be a directory.  Simplify the probe for .. bugs.
8858         * modules/openat (Depends-on): Drop same-inode.
8859         Reported by Bastien ROUCARIES.
8860
8861 2011-05-09  Jim Meyering  <meyering@redhat.com>
8862
8863         maint.mk: change semantics/name of tight_scope variables
8864         * top/maint.mk (_gl_TS_var_match, _gl_TS_function_match):
8865         Rename variables to align with semantics that make them more useful.
8866
8867         maint.mk: tweak new rule's name not to impinge
8868         * top/maint.mk (_gl_tight_scope): Rename from sc_tight_scope-0.
8869         (sc_tight_scope): Use new rule name rather than $@-0.
8870
8871         maint.mk: add a syntax-check rule to ensure tightly-scoped symbols
8872         * top/maint.mk (sc_tight_scope): New rule.
8873         (sc_tight_scope-0): New rule, ifdef'd out.
8874         (_gl_TS_dir): Default.
8875         (_gl_TS_unmarked_extern_functions, _gl_TS_function_regex): Define.
8876         (_gl_TS_unmarked_extern_vars, _gl_TS_var_regex): Define.
8877
8878 2011-05-09  Simon Josefsson  <simon@josefsson.org>
8879
8880         * m4/gc.m4: Remove gl_PREREQ_GC (not used).  Reported by Bruno
8881         Haible <bruno@clisp.org>.
8882
8883 2011-05-08  Bruno Haible  <bruno@clisp.org>
8884
8885         Comments.
8886         * m4/isnanf.m4: Add comment.
8887         * m4/isnanl.m4: Likewise.
8888
8889 2011-05-08  Bruno Haible  <bruno@clisp.org>
8890
8891         glob: Remove obsolete macro.
8892         * m4/glob.m4 (gl_GLOB_SUBSTITUTE): Remove macro.
8893
8894 2011-05-08  Paul Eggert  <eggert@cs.ucla.edu>
8895
8896         intprops: Sun C 5.11 supports __typeof__
8897         * lib/intprops.h (_GL_HAVE___TYPEOF__): New macro, which is set
8898         for either GCC 2 or later, as before, or for Sun C 5.11 or later,
8899         which is new.
8900         (_GL_SIGNED_TYPE_OR_EXPR): Use it.
8901
8902         intprops: switch to usual gnulib indenting and naming
8903         * lib/intprops.h (_GL_INTPROPS_H): Rename from GL_INTPROPS_H.
8904         (_GL_SIGNED_TYPE_OR_EXPR): Rename from signed_type_or_expr__.
8905
8906         * tests/test-inttostr.c (IS_TIGHT): Adjust to above renaming.
8907
8908 2011-05-08  Jim Meyering  <meyering@redhat.com>
8909
8910         maint.mk: suppress "Entering/Leaving directory" diag in announcement
8911         * top/maint.mk (release-prep): Use make's --no-print-directory
8912         option when generating the announcement.  This eliminates the
8913         pesky "make[2]: Entering/Leaving directory" diagnostics in the
8914         generated announcement template.
8915
8916 2011-05-08  Bruno Haible  <bruno@clisp.org>
8917
8918         tzset: Fix gettimeofday wrapper on Solaris 2.6.
8919         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): When invoking
8920         gl_GETTIMEOFDAY_REPLACE_LOCALTIME, also set REPLACE_GETTIMEOFDAY.
8921
8922 2011-05-07  Paul Eggert  <eggert@cs.ucla.edu>
8923
8924         ignore-value, verify: Omit include files from lib_SOURCES.
8925         * modules/ignore-value, modules/verify (Makefile.am):
8926         Don't put ignore-value.h, or verify.h, into lib_SOURCES, as
8927         that leads Automake to duplicate use of am__objects_... variables
8928         in Makefile.in.  See
8929         <http://lists.gnu.org/archive/html/emacs-devel/2011-05/msg00257.html>.
8930
8931 2011-05-07  Bruno Haible  <bruno@clisp.org>
8932
8933         fclose: Simplify autoconf macro.
8934         * m4/fclose.m4 (gl_FUNC_FCLOSE): Assume gl_FUNC_FFLUSH_STDIN is
8935         defined.
8936
8937 2011-05-07  Bruno Haible  <bruno@clisp.org>
8938
8939         canonicalize-lgpl: Fix autoconf macro ordering bug.
8940         * m4/canonicalize.m4 (gl_CANONICALIZE_LGPL): Require
8941         gl_STDLIB_H_DEFAULTS.
8942
8943 2011-05-06  Eric Blake  <eblake@redhat.com>
8944
8945         maintainer-makefile: make sc_po_check easier to tune
8946         * top/maint.mk (sc_po_check): Allow overriding which non-VC files
8947         to probe for strings, such as an alternate location for gnulib.
8948
8949         fclose: guarantee behavior on seekable stdin
8950         * modules/fclose (Depends-on): Add fflush.
8951         * doc/posix-functions/fclose.texi (fclose): Document this.
8952         * tests/test-fclose.c (main): Make test for this unconditional.
8953
8954 2011-05-06  Bruno Haible  <bruno@clisp.org>
8955
8956         fflush, fpurge: Relicense under LGPLv2+.
8957         * modules/fflush (License): Change from LGPLv3+ to LGPLv2+.
8958         * modules/fpurge (License): Likewise.
8959         With permission from Eric Blake and Jim Meyering.
8960         Suggested by Eric Blake.
8961
8962 2011-05-06  Karl Berry  <karl@gnu.org>
8963
8964         * MODULES.html.sh (func_all_modules): remove exit.
8965
8966 2011-05-06  Jim Meyering  <meyering@redhat.com>
8967
8968         maint.mk: use info-gnu@ as the default only for a stable release
8969         * top/maint.mk: Don't default to info-gnu for alpha or beta releases.
8970         For those, just use $(PACKAGE_BUGREPORT), in which case we don't have
8971         to set the Mail-Followup-To header.  Prompted by Reuben Thomas in
8972         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/26488
8973
8974 2011-05-05  Paul Eggert  <eggert@cs.ucla.edu>
8975
8976         assert-h: new module, which supports C1X-style static_assert
8977         * lib/assert.in.h, m4/assert_h.m4, modules/assert-h: New files.
8978         * lib/verify.h: Revamp so that this can be copied into assert.h,
8979         while retaining the ability to use it standalone as before.
8980         Rename private identifiers so as not to encroach on the
8981         standard C namespace, since this is now used by assert.h.
8982         (_GL_VERIFY_TYPE): New macro, factoring out differing parts of
8983         the old verify_true.
8984         (_GL_VERIFY_TRUE): New macro, with much of the contents of
8985         the old verify_true.  Use _GL_VERIFY_TYPE.
8986         (_GL_VERIFY): New macro, with much of the contents of the old verify.
8987         (static_assert): New macro, if _GL_STATIC_ASSERT_H
8988         is defined and static_assert is not; _GL_STATIC_ASSERT_H is
8989         defined when this file is copied into the replacement assert.h.
8990         (_Static_assert): New macro, if _GL_STATIC_ASSERT_H is defined
8991         and _Static_assert is not built in.
8992         (verify_true, verify): Define only if _GL_STATIC_ASSERT_H is not
8993         defined, and use the new macros mentioned above.
8994         * doc/posix-headers/assert.texi: Document this.
8995
8996 2011-05-05  Bruno Haible  <bruno@clisp.org>
8997
8998         fclose, fflush: Respect rules for use of AC_LIBOBJ.
8999         * m4/fflush.m4 (gl_FUNC_FFLUSH): Don't invoke gl_REPLACE_FCLOSE.
9000         * m4/fclose.m4 (gl_FUNC_FCLOSE): Invoke gl_FUNC_FFLUSH_STDIN and
9001         gl_REPLACE_FCLOSE here.
9002         * modules/fflush (Depends-on): Remove fclose.
9003         * doc/posix-functions/fclose.texi: Mention module 'fflush' only in
9004         combination with module 'fclose'.
9005
9006 2011-05-05  Bruno Haible  <bruno@clisp.org>
9007
9008         fflush, fseeko: Respect rules for use of AC_LIBOBJ.
9009         * m4/fflush.m4 (gl_FUNC_FFLUSH_STDIN): New macro, extracted from
9010         gl_FUNC_FFLUSH.
9011         (gl_FUNC_FFLUSH): Use it.
9012         (gl_REPLACE_FFLUSH): Don't invoke gl_REPLACE_FSEEKO.
9013         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Invoke gl_FUNC_FFLUSH_STDIN and
9014         gl_REPLACE_FSEEKO here.
9015
9016 2011-05-05  Bruno Haible  <bruno@clisp.org>
9017
9018         tzset: Relicense under LGPL.
9019         * modules/tzset (License): Change to LGPL.
9020         No agreement needed; it's a no-op.
9021
9022         strtoimax, strtoumax: Relicense under LGPL.
9023         * modules/strtoimax (License): Change to LGPL.
9024         * modules/strtoumax (License): Likewise.
9025         With permission from Jim Meyering, Paul Eggert:
9026         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00124.html>
9027         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00109.html>
9028
9029         getgroups: Relicense under LGPL.
9030         * modules/getgroups (License): Change to LGPL.
9031         With permission from Jim Meyering, Paul Eggert, Eric Blake:
9032         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00111.html>
9033         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00148.html>
9034         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00138.html>
9035
9036         nanosleep: Relicense under LGPL.
9037         * modules/nanosleep (License): Change to LGPL.
9038         With permission from Jim Meyering, Paul Eggert, Eric Blake, Bruno
9039         Haible:
9040         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00111.html>
9041         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00148.html>
9042         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00138.html>
9043         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00131.html>
9044
9045         futimens: Relicense under LGPL.
9046         * modules/futimens (License): Change to LGPL.
9047         With permission from Eric Blake:
9048         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00138.html>
9049
9050         fflush: Relicense under LGPL.
9051         * modules/fflush (License): Change to LGPL.
9052         With permission from Eric Blake, Bruno Haible, Jim Meyering:
9053         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00138.html>
9054         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00131.html>
9055         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00133.html>
9056
9057         tmpfile: Relicense under LGPL.
9058         * modules/tmpfile (License): Change to LGPL.
9059         With permission from Ben Pfaff:
9060         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00185.html>
9061
9062         isfinite: Relicense under LGPL.
9063         * modules/isfinite (License): Change to LGPL.
9064         With permission from Ben Pfaff, Bruno Haible:
9065         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00185.html>
9066         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00130.html>
9067
9068         acosl..tanl: Relicense under LGPL.
9069         * modules/acosl (License): Change to LGPL.
9070         * modules/asinl (License): Likewise.
9071         * modules/atanl (License): Likewise.
9072         * modules/cosl (License): Likewise.
9073         * modules/expl (License): Likewise.
9074         * modules/logl (License): Likewise.
9075         * modules/sinl (License): Likewise.
9076         * modules/sqrtl (License): Likewise.
9077         * modules/tanl (License): Likewise.
9078         Source code originally from glibc and Paolo Bonzini. Agreements:
9079         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00137.html>
9080         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00128.html>
9081
9082 2011-05-05  Bruno Haible  <bruno@clisp.org>
9083
9084         signal: Define sighandler_t.
9085         * lib/signal.in.h (sighandler_t): New type.
9086         * m4/signal_h.m4 (gl_SIGNAL_H): Require AC_USE_SYSTEM_EXTENSIONS. Test
9087         whether sighandler_t is defined.
9088         (gl_SIGNAL_H_DEFAULTS): Initialize HAVE_SIGHANDLER_T.
9089         * modules/signal (Depends-on): Add extensions.
9090         (Makefile.am): Substitute HAVE_SIGHANDLER_T.
9091         * doc/posix-headers/signal.texi: Mention the problem with sighandler_t.
9092         Suggested by Markus Steinborn <gnugv_maintainer@yahoo.de>.
9093
9094 2011-05-05  Eric Blake  <eblake@redhat.com>
9095
9096         maint: remove useless REPLACE_*_H macros
9097         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Delete.
9098         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H): Likewise.
9099         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H): Likewise.
9100         * m4/poll_h.m4 (gl_REPLACE_POLL_H): Likewise.
9101         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H): Likewise.
9102         * m4/sys_ioctl_h.m4 (gl_REPLACE_SYS_IOCTL_H): Likewise.
9103         * m4/wchar_h.m4 (gl_REPLACE_WCHAR_H): Likewise.
9104         * m4/btowc.m4: Update callers.
9105         * m4/dirfd.m4: Likewise.
9106         * m4/duplocale.m4: Likewise.
9107         * m4/fchdir.m4: Likewise.
9108         * m4/fdopendir.m4: Likewise.
9109         * m4/inet_ntop.m4: Likewise.
9110         * m4/inet_pton.m4: Likewise.
9111         * m4/ioctl.m4: Likewise.
9112         * m4/mbrlen.m4: Likewise.
9113         * m4/mbrtowc.m4: Likewise.
9114         * m4/mbsinit.m4: Likewise.
9115         * m4/mbsnrtowcs.m4: Likewise.
9116         * m4/mbsrtowcs.m4: Likewise.
9117         * m4/poll.m4: Likewise.
9118         * m4/setlocale.m4: Likewise.
9119         * m4/wcrtomb.m4: Likewise.
9120         * m4/wcsnrtombs.m4: Likewise.
9121         * m4/wcsrtombs.m4: Likewise.
9122         * m4/wctob.m4: Likewise.
9123         * m4/wcwidth.m4: Likewise.
9124         * modules/posix_spawn: Likewise.
9125         * modules/posix_spawn_file_actions_addclose: Likewise.
9126         * modules/posix_spawn_file_actions_adddup2: Likewise.
9127         * modules/posix_spawn_file_actions_addopen: Likewise.
9128         * modules/posix_spawn_file_actions_destroy: Likewise.
9129         * modules/posix_spawn_file_actions_init: Likewise.
9130         * modules/posix_spawnattr_destroy: Likewise.
9131         * modules/posix_spawnattr_getflags: Likewise.
9132         * modules/posix_spawnattr_getpgroup: Likewise.
9133         * modules/posix_spawnattr_getschedparam: Likewise.
9134         * modules/posix_spawnattr_getschedpolicy: Likewise.
9135         * modules/posix_spawnattr_getsigdefault: Likewise.
9136         * modules/posix_spawnattr_getsigmask: Likewise.
9137         * modules/posix_spawnattr_init: Likewise.
9138         * modules/posix_spawnattr_setflags: Likewise.
9139         * modules/posix_spawnattr_setpgroup: Likewise.
9140         * modules/posix_spawnattr_setschedparam: Likewise.
9141         * modules/posix_spawnattr_setschedpolicy: Likewise.
9142         * modules/posix_spawnattr_setsigdefault: Likewise.
9143         * modules/posix_spawnattr_setsigmask: Likewise.
9144         * modules/posix_spawnp: Likewise.
9145
9146 2011-05-04  Reuben Thomas  <rrt@sc3d.org>
9147
9148         Add option to do-release-commit-and-tag to specify branch.
9149         * build-aux/do-release-commit-and-tag: Add --branch.
9150
9151 2011-05-03  Bruno Haible  <bruno@clisp.org>
9152
9153         Avoid unnecessary compilation units, through conditional dependencies.
9154         * modules/accept (Depends-on): Add conditions to the dependencies.
9155         * modules/acosl (Depends-on): Likewise.
9156         * modules/argz (Depends-on): Likewise.
9157         * modules/asinl (Depends-on): Likewise.
9158         * modules/atanl (Depends-on): Likewise.
9159         * modules/atoll (Depends-on): Likewise.
9160         * modules/bind (Depends-on): Likewise.
9161         * modules/btowc (Depends-on): Likewise.
9162         * modules/canonicalize-lgpl (Depends-on): Likewise.
9163         * modules/ceil (Depends-on): Likewise.
9164         * modules/ceilf (Depends-on): Likewise.
9165         * modules/ceill (Depends-on): Likewise.
9166         * modules/chdir-long (Depends-on): Likewise.
9167         * modules/chown (Depends-on): Likewise.
9168         * modules/close (Depends-on): Likewise.
9169         * modules/connect (Depends-on): Likewise.
9170         * modules/cosl (Depends-on): Likewise.
9171         * modules/dirfd (Depends-on): Likewise.
9172         * modules/dprintf (Depends-on): Likewise.
9173         * modules/dprintf-posix (Depends-on): Likewise.
9174         * modules/error (Depends-on): Likewise.
9175         * modules/euidaccess (Depends-on): Likewise.
9176         * modules/expl (Depends-on): Likewise.
9177         * modules/faccessat (Depends-on): Likewise.
9178         * modules/fchdir (Depends-on): Likewise.
9179         * modules/fclose (Depends-on): Likewise.
9180         * modules/fcntl (Depends-on): Likewise.
9181         * modules/fdopendir (Depends-on): Likewise.
9182         * modules/fflush (Depends-on): Likewise.
9183         * modules/floor (Depends-on): Likewise.
9184         * modules/floorf (Depends-on): Likewise.
9185         * modules/floorl (Depends-on): Likewise.
9186         * modules/fnmatch (Depends-on): Likewise.
9187         * modules/fopen (Depends-on): Likewise.
9188         * modules/fprintf-posix (Depends-on): Likewise.
9189         * modules/frexp (Depends-on): Likewise.
9190         * modules/frexp-nolibm (Depends-on): Likewise.
9191         * modules/frexpl (Depends-on): Likewise.
9192         * modules/frexpl-nolibm (Depends-on): Likewise.
9193         * modules/fseek (Depends-on): Likewise.
9194         * modules/fsusage (Depends-on): Likewise.
9195         * modules/ftell (Depends-on): Likewise.
9196         * modules/ftello (Depends-on): Likewise.
9197         * modules/futimens (Depends-on): Likewise.
9198         * modules/getcwd (Depends-on): Likewise.
9199         * modules/getcwd-lgpl (Depends-on): Likewise.
9200         * modules/getdelim (Depends-on): Likewise.
9201         * modules/getdomainname (Depends-on): Likewise.
9202         * modules/getgroups (Depends-on): Likewise.
9203         * modules/gethostname (Depends-on): Likewise.
9204         * modules/getline (Depends-on): Likewise.
9205         * modules/getlogin_r (Depends-on): Likewise.
9206         * modules/getopt-posix (Depends-on): Likewise.
9207         * modules/getpeername (Depends-on): Likewise.
9208         * modules/getsockname (Depends-on): Likewise.
9209         * modules/getsockopt (Depends-on): Likewise.
9210         * modules/getsubopt (Depends-on): Likewise.
9211         * modules/getusershell (Depends-on): Likewise.
9212         * modules/glob (Depends-on): Likewise.
9213         * modules/grantpt (Depends-on): Likewise.
9214         * modules/iconv_open (Depends-on): Likewise.
9215         * modules/iconv_open-utf (Depends-on): Likewise.
9216         * modules/inet_ntop (Depends-on): Likewise.
9217         * modules/inet_pton (Depends-on): Likewise.
9218         * modules/ioctl (Depends-on): Likewise.
9219         * modules/isapipe (Depends-on): Likewise.
9220         * modules/isfinite (Depends-on): Likewise.
9221         * modules/isinf (Depends-on): Likewise.
9222         * modules/lchown (Depends-on): Likewise.
9223         * modules/ldexpl (Depends-on): Likewise.
9224         * modules/link (Depends-on): Likewise.
9225         * modules/linkat (Depends-on): Likewise.
9226         * modules/listen (Depends-on): Likewise.
9227         * modules/logl (Depends-on): Likewise.
9228         * modules/lstat (Depends-on): Likewise.
9229         * modules/mbrlen (Depends-on): Likewise.
9230         * modules/mbrtowc (Depends-on): Likewise.
9231         * modules/mbsinit (Depends-on): Likewise.
9232         * modules/mbsnrtowcs (Depends-on): Likewise.
9233         * modules/mbsrtowcs (Depends-on): Likewise.
9234         * modules/mbtowc (Depends-on): Likewise.
9235         * modules/memcmp (Depends-on): Likewise.
9236         * modules/mkdir (Depends-on): Likewise.
9237         * modules/mkdtemp (Depends-on): Likewise.
9238         * modules/mkfifo (Depends-on): Likewise.
9239         * modules/mkfifoat (Depends-on): Likewise.
9240         * modules/mknod (Depends-on): Likewise.
9241         * modules/mkostemp (Depends-on): Likewise.
9242         * modules/mkostemps (Depends-on): Likewise.
9243         * modules/mkstemp (Depends-on): Likewise.
9244         * modules/mkstemps (Depends-on): Likewise.
9245         * modules/mktime (Depends-on): Likewise.
9246         * modules/nanosleep (Depends-on): Likewise.
9247         * modules/open (Depends-on): Likewise.
9248         * modules/openat (Depends-on): Likewise.
9249         * modules/perror (Depends-on): Likewise.
9250         * modules/poll (Depends-on): Likewise.
9251         * modules/popen (Depends-on): Likewise.
9252         * modules/posix_spawn (Depends-on): Likewise.
9253         * modules/posix_spawn_file_actions_addclose (Depends-on): Likewise.
9254         * modules/posix_spawn_file_actions_adddup2 (Depends-on): Likewise.
9255         * modules/posix_spawn_file_actions_addopen (Depends-on): Likewise.
9256         * modules/posix_spawnp (Depends-on): Likewise.
9257         * modules/pread (Depends-on): Likewise.
9258         * modules/printf-posix (Depends-on): Likewise.
9259         * modules/ptsname (Depends-on): Likewise.
9260         * modules/putenv (Depends-on): Likewise.
9261         * modules/pwrite (Depends-on): Likewise.
9262         * modules/readline (Depends-on): Likewise.
9263         * modules/readlink (Depends-on): Likewise.
9264         * modules/readlinkat (Depends-on): Likewise.
9265         * modules/recv (Depends-on): Likewise.
9266         * modules/recvfrom (Depends-on): Likewise.
9267         * modules/regex (Depends-on): Likewise.
9268         * modules/remove (Depends-on): Likewise.
9269         * modules/rename (Depends-on): Likewise.
9270         * modules/renameat (Depends-on): Likewise.
9271         * modules/rmdir (Depends-on): Likewise.
9272         * modules/round (Depends-on): Likewise.
9273         * modules/roundf (Depends-on): Likewise.
9274         * modules/roundl (Depends-on): Likewise.
9275         * modules/rpmatch (Depends-on): Likewise.
9276         * modules/select (Depends-on): Likewise.
9277         * modules/send (Depends-on): Likewise.
9278         * modules/sendto (Depends-on): Likewise.
9279         * modules/setenv (Depends-on): Likewise.
9280         * modules/setlocale (Depends-on): Likewise.
9281         * modules/setsockopt (Depends-on): Likewise.
9282         * modules/shutdown (Depends-on): Likewise.
9283         * modules/sigaction (Depends-on): Likewise.
9284         * modules/signbit (Depends-on): Likewise.
9285         * modules/sigprocmask (Depends-on): Likewise.
9286         * modules/sinl (Depends-on): Likewise.
9287         * modules/sleep (Depends-on): Likewise.
9288         * modules/snprintf (Depends-on): Likewise.
9289         * modules/snprintf-posix (Depends-on): Likewise.
9290         * modules/socket (Depends-on): Likewise.
9291         * modules/sprintf-posix (Depends-on): Likewise.
9292         * modules/sqrtl (Depends-on): Likewise.
9293         * modules/stat (Depends-on): Likewise.
9294         * modules/strchrnul (Depends-on): Likewise.
9295         * modules/strdup-posix (Depends-on): Likewise.
9296         * modules/strerror (Depends-on): Likewise.
9297         * modules/strerror_r-posix (Depends-on): Likewise.
9298         * modules/strndup (Depends-on): Likewise.
9299         * modules/strnlen (Depends-on): Likewise.
9300         * modules/strptime (Depends-on): Likewise.
9301         * modules/strsep (Depends-on): Likewise.
9302         * modules/strsignal (Depends-on): Likewise.
9303         * modules/strstr-simple (Depends-on): Likewise.
9304         * modules/strtod (Depends-on): Likewise.
9305         * modules/strtoimax (Depends-on): Likewise.
9306         * modules/strtok_r (Depends-on): Likewise.
9307         * modules/strtoumax (Depends-on): Likewise.
9308         * modules/symlink (Depends-on): Likewise.
9309         * modules/symlinkat (Depends-on): Likewise.
9310         * modules/tanl (Depends-on): Likewise.
9311         * modules/tcgetsid (Depends-on): Likewise.
9312         * modules/tmpfile (Depends-on): Likewise.
9313         * modules/trunc (Depends-on): Likewise.
9314         * modules/truncf (Depends-on): Likewise.
9315         * modules/truncl (Depends-on): Likewise.
9316         * modules/uname (Depends-on): Likewise.
9317         * modules/unlink (Depends-on): Likewise.
9318         * modules/unlockpt (Depends-on): Likewise.
9319         * modules/unsetenv (Depends-on): Likewise.
9320         * modules/usleep (Depends-on): Likewise.
9321         * modules/utimensat (Depends-on): Likewise.
9322         * modules/vasprintf (Depends-on): Likewise.
9323         * modules/vdprintf (Depends-on): Likewise.
9324         * modules/vdprintf-posix (Depends-on): Likewise.
9325         * modules/vfprintf-posix (Depends-on): Likewise.
9326         * modules/vprintf-posix (Depends-on): Likewise.
9327         * modules/vsnprintf (Depends-on): Likewise.
9328         * modules/vsnprintf-posix (Depends-on): Likewise.
9329         * modules/vsprintf-posix (Depends-on): Likewise.
9330         * modules/wcrtomb (Depends-on): Likewise.
9331         * modules/wcscasecmp (Depends-on): Likewise.
9332         * modules/wcscspn (Depends-on): Likewise.
9333         * modules/wcsdup (Depends-on): Likewise.
9334         * modules/wcsncasecmp (Depends-on): Likewise.
9335         * modules/wcsnrtombs (Depends-on): Likewise.
9336         * modules/wcspbrk (Depends-on): Likewise.
9337         * modules/wcsrtombs (Depends-on): Likewise.
9338         * modules/wcsspn (Depends-on): Likewise.
9339         * modules/wcsstr (Depends-on): Likewise.
9340         * modules/wcstok (Depends-on): Likewise.
9341         * modules/wcswidth (Depends-on): Likewise.
9342         * modules/wctob (Depends-on): Likewise.
9343         * modules/wctomb (Depends-on): Likewise.
9344         * modules/wctype (Depends-on): Likewise.
9345         * modules/wcwidth (Depends-on): Likewise.
9346         * modules/write (Depends-on): Likewise.
9347
9348 2011-05-03  Bruno Haible  <bruno@clisp.org>
9349
9350         Support for conditional dependencies.
9351         * doc/gnulib.texi (Module description): Document the syntax of
9352         conditional dependencies.
9353         * gnulib-tool: New option --conditional-dependencies.
9354         (func_usage): Document it.
9355         (cond_dependencies): New variable.
9356         (func_get_automake_snippet_conditional,
9357         func_get_automake_snippet_unconditional): New functions, extracted from
9358         func_get_automake_snippet.
9359         (func_get_automake_snippet): Use them.
9360         (sed_first_32_chars): New variable.
9361         (func_module_shellfunc_name): New function.
9362         (func_module_shellvar_name): New function.
9363         (func_module_conditional_name): New function.
9364         (func_uncond_add_module, func_conddep_add_module, func_cond_module_p,
9365         func_cond_module_condition): New functions.
9366         (func_modules_transitive_closure): Add support for conditional
9367         dependencies.
9368         (func_emit_lib_Makefile_am): For a conditional module, enclose the
9369         conditional automake snippet in an automake conditional.
9370         (func_emit_autoconf_snippets): Emit shell functions that contain the
9371         code for conditional modules.
9372         (func_import, func_create_testdir): Update specification.
9373
9374 2011-05-03  Eric Blake  <eblake@redhat.com>
9375
9376         test-getaddrinfo: report error information
9377         * tests/test-getaddrinfo.c (simple): Use err outside of dbprintf.
9378
9379 2011-05-03  Jim Meyering  <meyering@redhat.com>
9380
9381         bootstrap: avoid build failure when $GZIP is set
9382         * build-aux/bootstrap (check_versions): Do not treat $GZIP as a
9383         program name.  If defined at all, it is supposed to list gzip options.
9384         Reported by Alan Curry in http://debbugs.gnu.org/8609
9385
9386 2011-05-03  Reuben Thomas  <rrt@sc3d.org>
9387
9388         readme-release: new module with release instructions
9389         * modules/readme-release: New module.
9390         * top/README-release: New file, from coreutils, grep, diffutils.
9391         * MODULES.html.sh (Support for maintaining and releasing): Add it.
9392
9393 2011-05-02  Eric Blake  <eblake@redhat.com>
9394
9395         fflush: also replace fclose when fixing fflush
9396         * modules/fflush (Depends-on): Add fclose.
9397         * m4/fflush.m4 (gl_FUNC_FFLUSH): Also replace fclose.
9398         * lib/fclose.c (rpl_fclose): Don't cause spurious failures on
9399         memstreams with no backing fd.
9400         * doc/posix-functions/fclose.texi (fclose): Document the use of
9401         fflush module to fix the bug.
9402         * tests/test-fclose.c (main): Relax test when fclose is used in
9403         isolation.
9404
9405         fclose: add some tests
9406         * modules/fclose-tests: New test module.
9407         * tests/test-fclose.c: New file.
9408         * doc/posix-functions/fclose.texi (fclose): Document the bug.
9409
9410         fclose: reduced dependencies
9411         * modules/fclose (Depends-on): Switch from fflush/fseeko to
9412         simpler lseek.
9413         * lib/fclose.c (rpl_fclose): Likewise.
9414         Reported by Simon Josefsson.
9415
9416         exit: drop remaining clients
9417         * modules/argmatch (Depends-on): Replace exit with stdlib.
9418         * modules/copy-file (Depends-on): Likewise.
9419         * modules/execute (Depends-on): Likewise.
9420         * modules/exitfail (Depends-on): Likewise.
9421         * modules/obstack (Depends-on): Likewise.
9422         * modules/pagealign_alloc (Depends-on): Likewise.
9423         * modules/pipe-filter-gi (Depends-on): Likewise.
9424         * modules/pipe-filter-ii (Depends-on): Likewise.
9425         * modules/savewd (Depends-on): Likewise.
9426         * modules/spawn-pipe (Depends-on): Likewise.
9427         * modules/wait-process (Depends-on): Likewise.
9428         * modules/xsetenv (Depends-on): Likewise.
9429         * modules/chdir-long (Depends-on): Add stdlib, for EXIT_FAILURE.
9430         * modules/git-merge-changelog (Depends-on): Likewise.
9431         * modules/long-options (Depends-on): Likewise.
9432         * modules/pt_chown (Depends-on): Likewise.
9433         * modules/sysexits (Depends-on): Likewise.
9434
9435         freading: relax license from LGPLv3+ to LGPLv2+
9436         * modules/freading (License): Relax LGPL version.
9437
9438 2011-05-02  Bruno Haible  <bruno@clisp.org>
9439
9440         fchdir: Remove unused dependencies.
9441         * modules/fchdir (Depends-on): Remove include_next.
9442
9443 2011-05-02  Bruno Haible  <bruno@clisp.org>
9444
9445         gnulib-tool: Refactor.
9446         * gnulib-tool (func_emit_autoconf_snippet): New function, extracted
9447         from func_emit_autoconf_snippets.
9448         (func_emit_autoconf_snippets): Use it.
9449
9450 2011-05-02  Simon Josefsson  <simon@josefsson.org>
9451
9452         * NEWS: Document removal of 'exit'.
9453         * modules/exit: Remove file.
9454
9455 2011-05-01  Bruno Haible  <bruno@clisp.org>
9456
9457         Update DEPENDENCIES.
9458         * DEPENDENCIES (gettext): Recommend the newest release.
9459         Reported by Simon Josefsson.
9460
9461 2011-05-01  Bruno Haible  <bruno@clisp.org>
9462
9463         gnulib-tool: Reduce code duplication.
9464         * gnulib-tool (func_emit_autoconf_snippets): New function.
9465         (func_import, func_create_testdir): Use it.
9466
9467 2011-04-30  Eric Blake  <eblake@redhat.com>
9468
9469         fclose: don't fail on non-seekable input stream
9470         * modules/fclose (Depends-on): Add freading, fflush, fseeko.
9471         * lib/fclose.c (rpl_fclose): Skip fflush for non-seekable input,
9472         since fflush is allowed to fail in that case.
9473
9474 2011-04-30  Bruno Haible  <bruno@clisp.org>
9475
9476         dup3: cleanup
9477         * lib/dup3.c: Remove old code, leftover from 2009-12-16.
9478
9479 2011-04-30  Bruno Haible  <bruno@clisp.org>
9480
9481         netdb: Make it work in C++ mode.
9482         * lib/netdb.in.h (struct addrinfo): In C++, define as a C struct.
9483         (getaddrinfo, freeaddrinfo, getnameinfo): Use macros from c++defs
9484         module.
9485         * m4/netdb_h.m4 (gl_NETDB_MODULE_INDICATOR): Invoke
9486         gl_MODULE_INDICATOR_FOR_TESTS.
9487         * modules/netdb-tests (Depends-on): Add netdb-c++-tests.
9488         * modules/netdb-c++-tests: New file.
9489         * tests/test-netdb-c++.cc: New file.
9490
9491 2011-04-30  Bruno Haible  <bruno@clisp.org>
9492
9493         New modules 'vfscanf', 'vscanf'.
9494         * modules/vfscanf: New file.
9495         * modules/vscanf: New file.
9496         * m4/stdio_h.m4 (gl_STDIO_H): Don't set GNULIB_VFSCANF, GNULIB_VSCANF
9497         here.
9498         * doc/posix-functions/vfscanf.texi: Mention module 'vfscanf'.
9499         * doc/posix-functions/vscanf.texi: Mention module 'vscanf'.
9500
9501 2011-04-30  Bruno Haible  <bruno@clisp.org>
9502
9503         passfd: Add comments.
9504         * lib/passfd.c: Add comments about platforms.
9505
9506 2011-04-30  Bruno Haible  <bruno@clisp.org>
9507
9508         sys_uio: Make <sys/uio.h> self-contained.
9509         * lib/sys_uio.in.h: Include <sys/types.h> before <sys/uio.h>.
9510         * doc/posix-headers/sys_uio.texi: Mention the OpenBSD problem.
9511
9512 2011-04-30  Bruno Haible  <bruno@clisp.org>
9513
9514         sys_socket: Ensure 'struct iovec' definition.
9515         * lib/sys_socket.in.h: Include <sys/uio.h> also on platforms that have
9516         <sys/socket.h>.
9517         * doc/posix-headers/sys_socket.texi: Mention the OpenBSD problem.
9518
9519 2011-04-30  Bruno Haible  <bruno@clisp.org>
9520
9521         sys_uio: Protect definition of 'struct iovec'.
9522         * lib/sys_uio.in.h (struct iovec): Avoid redefinition. In C++, define
9523         it as a C struct.
9524
9525 2011-04-30  Bruno Haible  <bruno@clisp.org>
9526
9527         manywarnings: fix indentation
9528         * m4/manywarnings.m4: Indent by 2 spaces consistently.
9529
9530 2011-04-30  Pádraig Brady <P@draigBrady.com>
9531
9532         manywarnings: add -Wno-missing-field-initializers if needed.
9533         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add the above
9534         option if it's needed to allow initialization with { 0, }
9535
9536 2011-04-29  Reuben Thomas  <rrt@sc3d.org>
9537
9538         announce-gen: cosmetic improvement
9539         * build-aux/announce-gen: Strip any leading ./ from the NEWS file name.
9540
9541 2011-04-29  Jim Meyering  <meyering@redhat.com>
9542
9543         vc-list-files: indent with spaces, not TABs
9544         * build-aux/vc-list-files: Convert leading TABs to spaces,
9545         to match the style of most other files in gnulib.
9546
9547         announce-gen: indent with spaces, not TABs
9548         * build-aux/announce-gen: Convert all TABs to spaces, to match
9549         the style of most other files in gnulib.
9550
9551 2011-04-29  Eric Blake  <eblake@redhat.com>
9552
9553         quotearg: avoid uninitialized variable use
9554         * lib/quotearg.c (quoting_options_from_style): Initialize
9555         remaining fields, and ensure that custom styles are only used via
9556         quoting_options rather than quoting_style.
9557
9558 2011-04-29  Jim Meyering  <meyering@redhat.com>
9559
9560         maint.mk: remove unused VC-tag variable
9561         * top/maint.mk (VC-tag): Remove unused variable.
9562
9563 2011-04-29  Bruno Haible  <bruno@clisp.org>
9564
9565         netdb: fix gai_strerror replacements
9566         * lib/netdb.in.h: Add _GL_FUNCDECL_RPL definitions.
9567         * modules/netdb: Substitute it.
9568
9569 2011-04-29  Jim Meyering  <meyering@redhat.com>
9570
9571         test-getcwd.c: avoid new set-but-not-used warning
9572         * tests/test-getcwd.c (test_abort_bug): Exit nonzero for any problem,
9573         not just the glibc/abort one that getcwd-abort-bug.m4 detects.
9574         * m4/getcwd-abort-bug.m4: Update this now-duplicated code to match,
9575         and adjust the code that sets gl_cv_func_getcwd_abort_bug accordingly.
9576
9577         test-hash.c: avoid a new shadowing warning
9578         * tests/test-hash.c (main): Don't shadow "dup".
9579
9580 2011-04-28  Eric Blake  <eblake@redhat.com>
9581
9582         getaddrinfo: fix gai_strerror signature
9583         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Detect broken signatures,
9584         and work around mingw with UNICODE defined.
9585         (gl_PREREQ_GETADDRINFO): Drop redundant decl check.
9586         * m4/netdb_h.m4 (gl_NETDB_H_DEFAULTS): Add witness.
9587         * modules/netdb (Makefile.am): Substitute it.
9588         * lib/netdb.in.h (gai_strerror): Declare replacement.
9589         * lib/gai_strerror.c (rpl_gai_strerror): Fix signature.
9590         * doc/posix-functions/gai_strerror.texi (gai_strerror): Document
9591         the fix.
9592
9593         getsockopt: avoid compiler warning
9594         * lib/getsockopt.c (rpl_getsockopt): Add a cast for mingw.
9595         Reported by Matthias Bolte.
9596
9597         tests: drop unused link dependency
9598         * modules/areadlinkat-tests (Makefile.am): Drop stale LDADD.
9599         * modules/dirent-safer-tests (Makefile.am): Likewise.
9600         * modules/fdopendir-tests (Makefile.am): Likewise.
9601         * modules/mkfifoat-tests (Makefile.am): Likewise.
9602         * modules/openat-safer-tests (Makefile.am): Likewise.
9603         * modules/openat-tests (Makefile.am): Likewise.
9604         * modules/readlinkat-tests (Makefile.am): Likewise.
9605         * modules/symlinkat-tests (Makefile.am): Likewise.
9606         * modules/linkat-tests (Makefile.am): Likewise.
9607         (Depends-on): Switch to filenamecat-lgpl.
9608         * modules/fdutimensat-tests (test_fdutimensat_LDADD): Drop unused
9609         LIBINTL.
9610         * modules/utimensat-tests (test_utimensat_LDADD): Likewise.
9611         * tests/test-linkat.c (main): Don't require xalloc.
9612
9613         hash, mgetgroups: drop xalloc dependency
9614         * lib/hash.c (includes): Adjust includes.
9615         * lib/mgetgroups.c (includes): Likewise.
9616         (xgetgroups): Move...
9617         * lib/xgetgroups.c: ...to new file.
9618         * lib/mgetgroups.h (xgetgroups): Make declaration conditional.
9619         * modules/xgetgroups: New file, split from...
9620         * modules/mgetgroups: ...here.
9621         (Depends-on): Add xalloc-oversized.
9622         * modules/hash (Depends-on): Likewise.
9623         * modules/hash-tests (Depends-on): Drop xalloc.
9624         (test_hash_LDADD): Drop unused library.
9625         * tests/test-hash.c (main): Break xalloc dependency.
9626         (includes): Drop unused include.
9627
9628         xalloc-oversized: new module
9629         * modules/xalloc-oversized: New module.
9630         * modules/xalloc (Depends-on): Add it.
9631         * lib/xalloc.h (xalloc_oversized): Move...
9632         * lib/xalloc-oversized.h: ...into new file.
9633
9634         utimecmp: drop dependency on xmalloc
9635         * lib/utimecmp.c (utimecmp): Work even if hash table cache fails
9636         due to memory pressure.
9637         * modules/utimecmp (Depends-on): Drop xalloc.
9638
9639 2011-04-27  Eric Blake  <eblake@redhat.com>
9640
9641         getcwd: fix mingw bugs
9642         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Detect one mingw bug.
9643         * doc/posix-functions/getcwd.texi (getcwd): Document the problems.
9644         * lib/getcwd-lgpl.c (rpl_getcwd): Fix return type.
9645
9646 2011-04-27  Bruno Haible  <bruno@clisp.org>
9647
9648         mkstemps: Ensure declaration on MacOS X 10.5.
9649         * lib/stdlib.in.h: Include <unistd.h> when mkstemps is requested.
9650         * doc/glibc-functions/mkstemps.texi: Document header file problem on
9651         MacOS X.
9652
9653 2011-04-27  Bruno Haible  <bruno@clisp.org>
9654
9655         mkstemp: More documentation.
9656         * doc/posix-functions/mkstemp.texi: Document header file problem on
9657         MacOS X.
9658
9659 2011-04-27  Bruno Haible  <bruno@clisp.org>
9660
9661         mkstemp: Tweak configure message when cross-compiling.
9662         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): When cross-compiling, qualify the
9663         result as a guess.
9664
9665 2011-04-27  Bruno Haible  <bruno@clisp.org>
9666
9667         clean-temp: Clarify what it does.
9668         * lib/clean-temp.h: Add more comments.
9669         * doc/posix-functions/mkstemp.texi: Tweak reference to 'clean-temp'
9670         module.
9671         * doc/glibc-functions/mkostemp.texi: Mention 'clean-temp' here too.
9672         * doc/glibc-functions/mkstemps.texi: Likewise.
9673         * doc/glibc-functions/mkostemps.texi: Likewise.
9674
9675 2011-04-27  Eric Blake  <eblake@redhat.com>
9676
9677         fchdir: avoid extra chdir and fix test
9678         * modules/fchdir (Depends-on): Add dosname, filenamecat-lgpl,
9679         getcwd-lgpl.
9680         * lib/fchdir.c (get_name): Any absolute name will do; it does not
9681         have to be canonical.
9682         (canonicalize_file_name): Drop unused macro.
9683         * m4/dup2.m4 (gl_REPLACE_DUP2): Ensure dup2 is replaced.
9684
9685         filenamecat-lgpl: fix licence
9686         * modules/filenamecat-lgpl (License): Mark as LGPLv2+, as intended
9687         when it was first created.
9688
9689         linkat, renameat: add missing dependency
9690         * modules/linkat (Depends-on): Require getcwd-lgpl.
9691         * modules/renameat (Depends-on): Likewise.
9692
9693         tests: reduce dependencies
9694         * tests/test-linkat.c (main): Use lighter-weight getcwd.
9695         * tests/test-renameat.c (main): Likewise.
9696         * modules/linkat-tests (Depends-on): Relax dependency.
9697         * modules/renameat-tests (Depends-on): Likewise.
9698         * modules/fchdir-tests (Depends-on): Likewise.  Also make cloexec
9699         dependency explicit.
9700
9701         save-cwd: reduce default dependency
9702         * modules/save-cwd (Depends-on): Use getcwd-lgpl.
9703         * lib/save-cwd.c: Update comments.
9704         * NEWS: Document the semantic change.
9705
9706         getcwd: enhance tests
9707         * tests/test-getcwd-lgpl.c: New file, taken from...
9708         * tests/test-getcwd.c: ...old contents.  Rewrite this file to
9709         repeat long path stress tests from m4 probe.
9710         * modules/getcwd-lgpl-tests: New module.
9711         * modules/getcwd-tests (Depends-on): Depend on lgpl tests.
9712         * m4/getcwd-abort-bug.m4: Update comment.
9713         * m4/getcwd-path-max.m4: Likewise.
9714
9715         getcwd-lgpl: new module
9716         * modules/getcwd-lgpl: New module.
9717         * lib/getcwd-lgpl.c: New file.
9718         * doc/posix-functions/getcwd.texi (getcwd): Document it.
9719         * MODULES.html.sh (lacking POSIX:2008): Likewise.
9720         * modules/getcwd (configure.ac): Set C witness.
9721         * m4/getcwd.m4 (gl_FUNC_GETCWD_LGPL): New macro.
9722
9723         getcwd: tweak comments
9724         * m4/getcwd-abort-bug.m4: Fix comments.
9725         * m4/getcwd-path-max.m4: Likewise.
9726         * m4/getcwd.m4: Likewise.
9727
9728 2011-04-27  Reuben Thomas  <rrt@sc3d.org>
9729         and Eric Blake  <eblake@redhat.com>
9730
9731         mkstemp: replace if system version uses wrong permissions
9732         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Add test for non-owner
9733         read/write mode bits set in file created by mkstemp.
9734         * doc/posix-functions/mkstemp.texi (mkstemp): Document the fix.
9735
9736 2011-04-27  Eric Blake  <eblake@redhat.com>
9737
9738         passfd: avoid compiler warning
9739         * lib/passfd.c (sendfd, recvfd): Avoid shadowing names.
9740         Reported by Laine Stump.
9741
9742 2011-04-27  J.T. Conklin  <jtc@acorntoolworks.com>  (tiny change)
9743
9744         * gnulib-tool: change "join -a 2" to "join -a2", the latter is
9745         required by the NetBSD (and perhaps other 4.4BSD derived) join.
9746
9747 2011-04-27  Reuben Thomas  <rrt@sc3d.org>
9748         and Eric Blake  <eblake@redhat.com>
9749
9750         mkstemp: mention clean-temp module
9751         * lib/mkstemp.c: Add comment.
9752         * doc/posix-functions/mkstemp.texi (mkstemp): Likewise.
9753
9754 2011-04-26  Paul Eggert  <eggert@cs.ucla.edu>
9755
9756         inttypes: also provide default values for 32-bit tests
9757         * m4/inttypes.m4 (gl_INTTYPES_H_DEFAULTS): Also provide default values
9758         for INT32_MAX_LT_INTMAX_MAX and for UINT32_MAX_LT_UINTMAX_MAX.
9759
9760 2011-04-25  Paul Eggert  <eggert@cs.ucla.edu>
9761
9762         strtoumax: remove dependency on strtoimax
9763         This is like the strtoull change of yesterday.
9764         * modules/strtoumax (Files): Add lib/strtoimax.c.
9765         (Depends-on): Remove strtoimax and add verify.
9766
9767         inttypes-incomplete: new module
9768         * m4/inttypes.m4 (gl_INTTYPES_INCOMPLETE): New macro, containing
9769         all but the PRI* and SCN* parts of gl_INTTYPES_H.
9770         (gl_INTTYPES_PRI_SCN): New macro, containing the PRI* and SCN* parts
9771         of gl_INTTYPES_H.
9772         (gl_INTTYPES_H): Rewrite in terms of these new macros.
9773         (gl_INTTYPES_H_DEFAULTS): Provide defaults for the PRI* and SCN*
9774         parts, in case gl_INTTYPE_PRI_SCN is not invoked.
9775         * modules/imaxabs, modules/imaxdiv, modules/strtoimax (Depends-on):
9776         * modules/strtoumax, modules/xstrtol (Depends-on):
9777         Depend on inttypes-incomplete, not inttypes.
9778         * modules/inttypes-incomplete: New module, containing the contents
9779         of the old modules/inttypes module, except that the Files: section
9780         omits m4/inttypes-pri.m4, and the configure.ac section invokes
9781         gl_INTTYPES_INCOMPLETE rather than gl_INTTYPES_H.
9782         * modules/inttypes (Files): Remove lib/inttypes.in.h, m4/inttypes.m4.
9783         (Depends-on): Depend only on inttypes-incomplete.
9784         (Makefile.am): Remove everything; this is now in inttypes-incomplete.
9785
9786         inttypes: omit now-redundant strtoimax and strtoumax work
9787         * m4/inttypes.m4 (gl_INTTYPES_H): Do not check for strtoimax and
9788         strtoumax decls; gl_FUNC_STRTOIMAX and gl_FUNC_STRTOUMAX now do this.
9789
9790         strtoimax, strtoumax: simplify, port to HP-UX 11.00 64-bit
9791         This supports apps that need pointers to strtoimax and strtoumax,
9792         and ports to HP-UX 11.00 64.bit, which has macros that expand to
9793         nonexistent functions.  See
9794         <http://lists.gnu.org/archive/html/bug-gnulib/2011-04/msg00241.html>
9795         et seq.
9796         * lib/inttypes.in.h (strtoimax, strtoumax): #undef before declaring.
9797         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Don't check whether it's
9798         a macro.
9799         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
9800
9801 2011-04-25  Simon Josefsson  <simon@josefsson.org>
9802
9803         * modules/gnumakefile (configure.ac): Replace TAB with SPCs.
9804
9805 2011-04-25  Bruno Haible  <bruno@clisp.org>
9806
9807         strtol, strtoul: Mark modules as obsolete.
9808         * modules/strtol (Status, Notice): New sections.
9809         * modules/strtoul (Status, Notice): New sections.
9810
9811 2011-04-25  Bruno Haible  <bruno@clisp.org>
9812
9813         strtod: Remove check for strtod, unless supporting old platforms.
9814         * modules/strtod-obsolete: New file.
9815         * m4/strtod-obsolete.m4: New file.
9816         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't check whether strtod is declared
9817         if gl_FUNC_STRTOD_OBSOLETE is not also defined.
9818         * modules/strtod (Depends-on): Add strtod-obsolete.
9819         * doc/posix-functions/strtod.texi: Mention module strtod-obsolete.
9820
9821 2011-04-25  Bruno Haible  <bruno@clisp.org>
9822
9823         strcase: Make module obsolete.
9824         * modules/strcase (Status, Notice): New sections.
9825
9826 2011-04-25  Bruno Haible  <bruno@clisp.org>
9827
9828         dup2: Remove check for dup2, unless supporting old obsolete platforms.
9829         * modules/dup2-obsolete: New file.
9830         * m4/dup2-obsolete.m4: New file.
9831         * m4/dup2.m4 (gl_FUNC_DUP2): Don't check whether dup2 exists if
9832         gl_FUNC_DUP2_OBSOLETE is not also defined.
9833         * modules/dup2 (Depends-on): Add dup2-obsolete.
9834         * doc/posix-functions/dup2.texi: Mention module dup2-obsolete.
9835
9836 2011-04-25  Bruno Haible  <bruno@clisp.org>
9837
9838         strnlen: Avoid memchr related link error on old obsolete platforms.
9839         * modules/memchr-obsolete: New file.
9840         * m4/memchr-obsolete.m4: New file.
9841         * m4/memchr.m4 (gl_FUNC_MEMCHR): Don't check whether memchr exists if
9842         gl_FUNC_MEMCHR_OBSOLETE is not also defined.
9843         * modules/memchr (Depends-on): Add memchr-obsolete.
9844         * modules/strnlen (Depends-on): Likewise.
9845         * doc/posix-functions/memchr.texi: Mention module memchr-obsolete.
9846
9847 2011-04-25  Jim Meyering  <meyering@redhat.com>
9848
9849         maint.mk: makefile_at_at_check extend and clean up
9850         * top/maint.mk (sc_makefile_at_at_check): Check *.mk files
9851         in addition to */Makefile.am.
9852         Exempt legitimate uses of @VAR@ notation, e.g.,
9853         MAKEINFO = env LANG= LC_MESSAGES= LC_ALL= LANGUAGE= @MAKEINFO@
9854         Remove obsolete coreutils-specific comment.
9855         Prompted by discussion here:
9856         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/26074
9857
9858 2011-04-24  Paul Eggert  <eggert@cs.ucla.edu>
9859
9860         strtoul: remove dependency on strtol
9861         This is so that 'configure' need not check for strtol merely because
9862         the application needs strtoul.
9863         * modules/strtoul (Files): Add lib/strtol.c.
9864         (Depends-on): Remove strtol.
9865
9866         strtoull: remove dependency on strtoul
9867         This is like the strtoll change.
9868         * modules/strtoull (Files): Add lib/strtol.c, lib/strtoul.c.
9869         (Depends-on): Remove strtoul.
9870
9871         strtoll: remove dependency on strtol
9872         This is so that 'configure' need not check for strtol merely because
9873         the application needs strtoll.
9874         * modules/strtoll (Files): Add lib/strtol.c.
9875         (Depends-on): Remove strtol.
9876
9877 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
9878
9879         inttypes: Move some configure check to module 'imaxdiv'.
9880         * m4/imaxdiv.m4 (gl_FUNC_IMAXDIV): Require gl_INTTYPES_H_DEFAULTS
9881         instead of gl_INTTYPES_H.  Check for imaxdiv decl here.
9882         * m4/inttypes.m4 (gl_INTTYPES_H): Don't check for imaxdiv decl here.
9883
9884 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
9885
9886         inttypes: Move some configure check to module 'imaxabs'.
9887         * m4/imaxabs.m4 (gl_FUNC_IMAXABS): Require gl_INTTYPES_H_DEFAULTS
9888         instead of gl_INTTYPES_H.  Check for imaxabs decl here.
9889         * m4/inttypes.m4 (gl_INTTYPES_H): Don't check for imaxabs decl here.
9890
9891 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
9892
9893         inttypes: Remove configure tests that are not needed since 2009-12-31.
9894         * m4/inttypes.m4 (gl_INTTYPES_H): Remove determination of
9895         gl_cv_header_working_inttypes_h.
9896
9897 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
9898
9899         * modules/strnlen (Depends-on): Remove memchr.
9900         The strnlen implementation doesn't need the memchr module's fixes; see
9901         <http://lists.gnu.org/archive/html/bug-gnulib/2011-04/msg00237.html>.
9902
9903         strtol: remove dependency on wchar
9904         * lib/strtol.c: Include <wchar.h> only if USE_WIDE_CHAR is defined.
9905         * modules/strtol (Depends-on): Remove wchar.
9906
9907 2011-04-21  Eric Blake  <eblake@redhat.com>
9908
9909         passfd: fix test regression on Linux
9910         * modules/passfd-tests (configure.ac): Correct socketpair check.
9911
9912         passfd: speed up configure and drop unused code
9913         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Rename...
9914         * m4/passfd.m4 (gl_PASSFD): ...to something more fitting of
9915         its use.  Drop test for setting unused HAVE_UNIXSOCKET_SCM_RIGHTS.
9916         Instead of probing at configure for unix_scm_rights_bsd44_way,
9917         instead probe for CMSG_FIRSTHDR at compile time.  Simplify BSD 4.3
9918         check to a struct member probe.
9919         * lib/passfd.c (includes): Nothing here requires <sys/un.h>.
9920         (sendfd, recvfd): Update preprocessor checks.
9921         * modules/passfd (Files): Reflect rename, and drop unused file.
9922         (Depends-on): Drop unused dependency.
9923
9924         passfd: allow compilation on mingw
9925         * modules/sys_socket (Depends-on): Add sys_uio.
9926         * lib/sys_socket.in.h [!@HAVE_SYS_SOCKET_H@]: Use it for struct
9927         iovec and a minimal struct msghdr.
9928         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Detect recvmsg/sendmsg.
9929         * tests/test-sys_socket.c (main): Enhance test.
9930         * lib/passfd.c (include): Drop <sys/uio.h>; <sys/sockets.h> is
9931         guaranteed to provide what we need.
9932         (sendmsg, recvmsg): Declare fallbacks if we lack sendmsg.
9933         * modules/passfd-tests (Depends-on): Add sys_wait.
9934         * tests/test-passfd.c (main): Skip test on mingw, for now.
9935         * doc/posix-headers/sys_socket.texi (sys/socket.h): Document the
9936         partial 'struct msghdr' implementation.
9937
9938         sys_uio: new module
9939         * modules/sys_uio: New module.
9940         * modules/sys_uio-tests: Likewise.
9941         * lib/sys_uio.in.h: New file.
9942         * m4/sys_uio_h.m4: Likewise.
9943         * tests/test-sys_uio.c: Likewise.
9944         * doc/posix-headers/sys_uio.texi (sys/uio.h): Document it.
9945         * MODULES.html.sh (systems lacking POSIX:2008): Likewise.
9946
9947 2011-04-20  Jim Meyering  <meyering@redhat.com>
9948
9949         useless-if-before-free: avoid false-positive
9950         * build-aux/useless-if-before-free: Adjust regexp for the non-brace
9951         disjunct so that it too requires a terminating ";".  Without that,
9952         this script would identify as useless one statement from gcc that
9953         was not:
9954           if (aligned_ptr)
9955             free (((void **) aligned_ptr) [-1]);
9956
9957 2011-04-20  Giuseppe Scrivano  <gscrivano@gnu.org>
9958
9959         doc: update users.txt.
9960         * users.txt: Add barcode.
9961
9962 2011-04-19  Bruno Haible  <bruno@clisp.org>
9963
9964         ioctl: Remove link dependency on native Windows.
9965         * lib/fd-hook.h: Renamed from lib/close-hook.h.
9966         (gl_close_fn, gl_ioctl_fn): New types.
9967         (struct fd_hook): Renamed from struct close_hook. Change type of
9968         private_close_fn field. Add private_ioctl_fn field.
9969         (close_hook_fn): Add parameter for primary close method.
9970         (execute_close_hooks, execute_all_close_hooks): Likewise.
9971         (ioctl_hook_fn): New type.
9972         (execute_ioctl_hooks, execute_all_ioctl_hooks): New declarations.
9973         (register_fd_hook): Renamed from register_close_hook. Add ioctl_hook
9974         argument.
9975         (unregister_fd_hook): Renamed from unregister_close_hook.
9976         * lib/fd-hook.c: Renamed from lib/close-hook.c.
9977         Don't include <unistd.h>.
9978         (close): Remove undef.
9979         (anchor): Update.
9980         (execute_close_hooks): Add argument for primary close method.
9981         (execute_all_close_hooks): Likewise.
9982         (execute_ioctl_hooks, execute_all_ioctl_hooks): New functions.
9983         (register_fd_hook): Renamed from register_close_hook. Add ioctl_hook
9984         argument. Allow each argument to be NULL.
9985         (unregister_fd_hook): Renamed from unregister_close_hook.
9986         * lib/close.c (rpl_close): Pass 'close' function pointer to
9987         execute_all_close_hooks.
9988         * lib/ioctl.c: Include <errno.h>, fd-hook.h.
9989         (primary_ioctl): New function.
9990         (ioctl): Don't call ioctlsocket here. Instead, call
9991         execute_all_ioctl_hooks.
9992         * lib/sockets.c (close_fd_maybe_socket): Add argument for primary
9993         close method.
9994         (ioctl_fd_maybe_socket): New function, with code from lib/ioctl.c.
9995         (fd_sockets_hook): Renamed from close_sockets_hook.
9996         (gl_sockets_startup, gl_sockets_cleanup): Update.
9997         * modules/fd-hook: Renamed from modules/close-hook. Update.
9998         * modules/close (Depends-on): Add fd-hook, remove close-hook.
9999         * modules/sockets (Depends-on): Likewise.
10000         * modules/ioctl (Depends-on): Add fd-hook.
10001         * tests/test-nonblocking.c (main): Use GNULIB_TEST_SOCKET, not
10002         GNULIB_SOCKET.
10003
10004 2011-04-19  Bruno Haible  <bruno@clisp.org>
10005
10006         Move the support of O_NONBLOCK in open() to the 'open' module.
10007         * modules/nonblocking (Depends-on): Remove 'open'.
10008         * m4/nonblocking.m4 (gl_NONBLOCKING_IO_BODY): Set
10009         gl_cv_have_open_O_NONBLOCK.
10010         * m4/open.m4 (gl_FUNC_OPEN): Replace open() also when required for
10011         O_NONBLOCK support.
10012         * doc/posix-functions/open.texi: Document support for O_NONBLOCK.
10013
10014 2011-04-17  Bruno Haible  <bruno@clisp.org>
10015
10016         pipe2: Simplify code.
10017         * lib/pipe2.c (pipe2): Reduce code duplication.
10018
10019 2011-04-17  Bruno Haible  <bruno@clisp.org>
10020
10021         nonblocking: Add comment.
10022         * lib/fcntl.in.h (O_NONBLOCK): Add comment.
10023
10024 2011-04-17  Bruno Haible  <bruno@clisp.org>
10025
10026         nonblocking: Add tests for sockets.
10027         * tests/test-nonblocking-socket.sh: New file.
10028         * tests/test-nonblocking-socket-main.c: New file.
10029         * tests/test-nonblocking-socket-child.c: New file.
10030         * tests/test-nonblocking-socket.h: New file.
10031         * tests/socket-server.h: New file.
10032         * tests/socket-client.h: New file.
10033         * modules/nonblocking-socket-tests: New file.
10034         * modules/nonblocking-tests (Depends-on): Add nonblocking-socket-tests.
10035
10036 2011-04-17  Bruno Haible  <bruno@clisp.org>
10037
10038         nonblocking: Add tests for pipes.
10039         * tests/test-nonblocking-pipe.sh: New file.
10040         * tests/test-nonblocking-pipe-main.c: New file.
10041         * tests/test-nonblocking-pipe-child.c: New file.
10042         * tests/test-nonblocking-pipe.h: New file.
10043         * tests/test-nonblocking-writer.h: New file.
10044         * tests/test-nonblocking-reader.h: New file.
10045         * tests/test-nonblocking-misc.h: New file.
10046         * modules/nonblocking-pipe-tests: New file.
10047         * modules/nonblocking-tests (Depends-on): Add nonblocking-pipe-tests.
10048
10049 2011-04-16  Bruno Haible  <bruno@clisp.org>
10050
10051         gettext: Clarify the needed programmer actions.
10052         * modules/gettext (Notice): New field.
10053         Suggested by Ben Pfaff <blp@cs.stanford.edu>.
10054
10055 2011-04-16  Bruno Haible  <bruno@clisp.org>
10056
10057         strchrnul: Tweak last commit.
10058         * doc/glibc-functions/strchrnul.texi: Add more details about Cygwin
10059         bug.
10060         * lib/string.in.h (strchrnul): Use same arguments in _GL_FUNCDECL_RPL
10061         as in _GL_FUNCDECL_SYS.
10062         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Invoke gl_PREREQ_STRCHRNUL after
10063         AC_LIBOBJ. When cross-compiling, say "guessing yes" not "yes".
10064
10065 2011-04-15  Eric Blake  <eblake@redhat.com>
10066
10067         strchrnul: work around cygwin bug
10068         * doc/glibc-functions/strchrnul.texi (strchrnul): Document bug.
10069         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Detect it.
10070         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): New witness.
10071         * modules/string (Makefile.am): Substitute it.
10072         * lib/string.in.h (strchrnul): Use it.
10073
10074 2011-04-15  Bruno Haible  <bruno@clisp.org>
10075
10076         Don't require lib/stdio-write.c when only module 'stdio' is used.
10077         * m4/stdio_h.m4 (gl_STDIO_H): Move the AC_LIBOBJ back into the m4_ifdef
10078         invocation.
10079         Reported by Rob Vermaas <rob.vermaas@gmail.com>.
10080
10081 2011-04-14  Bruno Haible  <bruno@clisp.org>
10082
10083         Support non-blocking pipe I/O in read() on native Windows.
10084         * lib/unistd.in.h: Include <sys/types.h> also for 'read'.
10085         (read): New declaration.
10086         * lib/read.c: New file.
10087         * lib/stdio.in.h (_GL_ATTRIBUTE_FORMAT_SCANF,
10088         _GL_ATTRIBUTE_FORMAT_SCANF_SYSTEM): New macros.
10089         (fgetc, fgets, fread, fscanf, getc, getchar, gets, scanf, vfscanf,
10090         vscanf): New declarations.
10091         * lib/stdio-read.c: New file.
10092         * m4/read.m4: New file.
10093         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_READ,
10094         REPLACE_READ.
10095         * m4/stdio_h.m4 (gl_STDIO_H): Set GNULIB_FGETC, GNULIB_FGETS,
10096         GNULIB_FREAD, GNULIB_FSCANF, GNULIB_GETC, GNULIB_GETCHAR, GNULIB_GETS,
10097         GNULIB_SCANF, GNULIB_VFSCANF, GNULIB_VSCANF. In non-blocking I/O is
10098         desired and needs workarounds, set REPLACE_STDIO_READ_FUNCS.
10099         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FGETC, GNULIB_FGETS,
10100         GNULIB_FREAD, GNULIB_FSCANF, GNULIB_GETC, GNULIB_GETCHAR, GNULIB_GETS,
10101         GNULIB_SCANF, GNULIB_VFSCANF, GNULIB_VSCANF, REPLACE_STDIO_READ_FUNCS.
10102         * modules/read: New file.
10103         * modules/nonblocking (Files): Add lib/stdio-read.c.
10104         * modules/unistd (Makefile.am): Substitute GNULIB_READ, REPLACE_READ.
10105         * modules/stdio (Makefile.am): Substitute GNULIB_FGETC, GNULIB_FGETS,
10106         GNULIB_FREAD, GNULIB_FSCANF, GNULIB_GETC, GNULIB_GETCHAR, GNULIB_GETS,
10107         GNULIB_SCANF, GNULIB_VFSCANF, GNULIB_VSCANF, REPLACE_STDIO_READ_FUNCS.
10108         * modules/pread (Depends-on): Add read.
10109         * modules/safe-read (Depends-on): Likewise.
10110         * tests/test-stdio-c++.cc (fgetc, fgets, fread, fscanf, getc, getchar,
10111         gets, scanf, vfscanf, vscanf): Verify signatures.
10112         * doc/posix-functions/read.texi: Mention 'nonblocking' module and
10113         problem with non-blocking pipes.
10114         * doc/posix-functions/fgetc.texi: Likewise.
10115         * doc/posix-functions/fgets.texi: Likewise.
10116         * doc/posix-functions/fread.texi: Likewise.
10117         * doc/posix-functions/fscanf.texi: Likewise.
10118         * doc/posix-functions/getc.texi: Likewise.
10119         * doc/posix-functions/getchar.texi: Likewise.
10120         * doc/posix-functions/gets.texi: Likewise.
10121         * doc/posix-functions/scanf.texi: Likewise.
10122         * doc/posix-functions/vfscanf.texi: Likewise.
10123         * doc/posix-functions/vscanf.texi: Likewise.
10124
10125 2011-04-14  Bruno Haible  <bruno@clisp.org>
10126
10127         Support non-blocking pipe I/O in write() on native Windows.
10128         * lib/write.c (rpl_write): Split a write request that failed merely
10129         because the byte count was larger than the pipe buffer's size.
10130         * doc/posix-functions/write.texi: Mention the problem with large byte
10131         counts.
10132
10133 2011-04-14  Bruno Haible  <bruno@clisp.org>
10134
10135         wchar: Ensure that wchar_t gets defined on uClibc.
10136         * lib/wchar.in.h: On uClibc, include <stddef.h>.
10137         Reported by Giuseppe Scrivano <gscrivano@gnu.org>.
10138
10139 2011-04-13  Bruno Haible  <bruno@clisp.org>
10140
10141         safe-write, full-read: Avoid unnecessary compilation units.
10142         * modules/safe-write (Files): Add lib/safe-read.c, m4/safe-read.m4.
10143         (Depends-on): Remove safe-read. Add ssize_t.
10144         * modules/full-read (Files): Add lib/full-write.c.
10145         (Depends-on): Add full-write.
10146
10147 2011-04-13  Bruno Haible  <bruno@clisp.org>
10148
10149         Support non-blocking pipe I/O and SIGPIPE in pwrite().
10150         * modules/pwrite (Depends-on): Add 'write'.
10151
10152 2011-04-13  Bruno Haible  <bruno@clisp.org>
10153
10154         Support non-blocking pipe I/O in write() on native Windows.
10155         * lib/unistd.in.h (write): Enable replacement also if
10156         GNULIB_UNISTD_H_NONBLOCKING is 1.
10157         * lib/write.c: Enable replacement also if GNULIB_NONBLOCKING.
10158         (rpl_write): When failing to write on a non-blocking pipe, change
10159         errno from ENOSPC to EAGAIN.
10160         * lib/stdio.in.h (fprintf, fputc, fputs, fwrite, printf, putc,
10161         putchar, puts, vfprintf, vprintf): Enable replacement also if
10162         GNULIB_STDIO_H_NONBLOCKING is 1.
10163         * lib/stdio-write.c: Enable replacements also if GNULIB_NONBLOCKING.
10164         (CLEAR_ERRNO, HANDLE_ENOSPC): New macros.
10165         (CLEAR_LastError, HANDLE_ERROR_NO_DATA): New macros, extracted from
10166         CALL_WITH_SIGPIPE_EMULATION.
10167         (CALL_WITH_SIGPIPE_EMULATION): Use them.
10168         * m4/nonblocking.m4: New file.
10169         * m4/write.m4 (gl_FUNC_WRITE): Enable REPLACE_WRITE also if required
10170         for non-blocking I/O support.
10171         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
10172         GNULIB_UNISTD_H_NONBLOCKING.
10173         * m4/stdio_h.m4 (gl_STDIO_H): Enable REPLACE_STDIO_WRITE_FUNCS also if
10174         required for non-blocking I/O support.
10175         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_STDIO_H_NONBLOCKING.
10176         * modules/nonblocking (Files): Add m4/nonblocking.m4,
10177         lib/stdio-write.c, m4/asm-underscore.m4.
10178         (Depends-on): Add stdio, unistd.
10179         (configure.ac): Invoke gl_NONBLOCKING_IO. Define GNULIB_NONBLOCKING.
10180         Set GNULIB_STDIO_H_NONBLOCKING, GNULIB_UNISTD_H_NONBLOCKING.
10181         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_NONBLOCKING.
10182         * modules/stdio (Makefile.am): Substitute GNULIB_STDIO_H_NONBLOCKING.
10183         * doc/posix-functions/fprintf.texi: Mention 'nonblocking' module and
10184         problem with non-blocking pipes.
10185         * doc/posix-functions/fputc.texi: Likewise.
10186         * doc/posix-functions/fputs.texi: Likewise.
10187         * doc/posix-functions/fwrite.texi: Likewise.
10188         * doc/posix-functions/printf.texi: Likewise.
10189         * doc/posix-functions/putc.texi: Likewise.
10190         * doc/posix-functions/putchar.texi: Likewise.
10191         * doc/posix-functions/puts.texi: Likewise.
10192         * doc/posix-functions/vfprintf.texi: Likewise.
10193         * doc/posix-functions/vprintf.texi: Likewise.
10194         * doc/posix-functions/write.texi: Likewise.
10195
10196 2011-04-10  Jim Meyering  <meyering@redhat.com>
10197
10198         maint.mk: prohibit doubled words
10199         Detect them also when they're separated by a newline.
10200         There are 3 ways to customize it:
10201           - disable the test on a per file basis, as usual with rules using
10202             $(VC_LIST_EXCEPT)
10203           - replace the default doubled-word-selecting regexp (affects all files)
10204           - ignore a particular file-vs-doubled-word match
10205         I nearly used that last one to ignore the "is is" match in
10206         coreutils' NEWS file, since the text was "ls -is is ..."
10207         To do that, I would have added this line to cfg.mk:
10208           ignore_doubled_word_match_RE_ = ^NEWS:[0-9]+:is[ ]is$
10209         but it would have ignored any "is is" match in NEWS.
10210         Low probability, but still...
10211         Instead, I changed the text, slightly:
10212           -  ls -is is now consistent with ls -lis in ignoring values returned
10213           +  "ls -is" is now consistent with ls -lis in ignoring values returned
10214         * top/maint.mk (prohibit_double_word_RE_): Provide default.
10215         (prohibit_doubled_word_): Define.
10216         (sc_prohibit_doubled_word): New rule.
10217         (sc_prohibit_the_the): Remove.  Subsumed by the above.
10218
10219 2011-04-10  Jim Meyering  <meyering@redhat.com>
10220
10221         maint: fix doubled-word typo in comment
10222         * m4/gethostname.m4: s/is is/it is/
10223         * m4/getdomainname.m4: Likewise.
10224
10225 2011-04-10  Jim Meyering  <meyering@redhat.com>
10226
10227         maint: remove doubled word: s/it it/it/
10228         * lib/stat-time.h (get_stat_birthtime): s/it it/it/
10229
10230 2011-04-10  Jim Meyering  <meyering@redhat.com>
10231
10232         maint.mk: remove useless semicolon and backslash
10233         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Remove stray
10234         semicolon and backslash.
10235
10236 2011-04-10  Bruno Haible  <bruno@clisp.org>
10237
10238         stdint test: Fix compilation failure on OSF/1 with DTK compiler.
10239         * modules/stdint-tests (Depends-on): Add wchar.
10240
10241 2011-04-10  Jim Meyering  <meyering@redhat.com>
10242
10243         maint: remove doubled words in comments, e.g., s/a a/a/
10244         * lib/strptime.c (day_of_the_week): s/the the/the/
10245         * tests/test-chown.h (test_chown): s/a a/a/
10246
10247         test-chown.h: correct a cast
10248         * tests/test-chown.h (test_chown): Cast -1 to gid_t (not uid_t)
10249         when the destination is a stat.st_gid.
10250
10251 2011-04-09  Mats Erik Andersson  <mats.andersson@gisladisker.se>  (tiny change)
10252
10253         getaddrinfo: Fix test for sa_len member.
10254         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): When testing for sa_len,
10255         include <sys/types.h> before <sys/socket.h>.
10256
10257 2011-04-09  Paul Eggert  <eggert@cs.ucla.edu>
10258
10259         maint: change "can not" to "cannot"
10260         * doc/posix-functions/iconv.texi (iconv): This one crossed line
10261         boundaries.
10262
10263 2011-04-09  Jim Meyering  <meyering@redhat.com>
10264
10265         maint: change "a a" to "a"
10266         * tests/test-lchown.h (test_lchown): s/a a/a/
10267
10268         maint.mk: prohibit \<the the\>
10269         * top/maint.mk (sc_prohibit_the_the): New rule.
10270
10271         maint: fix "the the" in comment
10272         * lib/count-one-bits.h: s/the the/the/
10273
10274         maint: change "can not" to "cannot"
10275         But do not change the occurrences in maintain.texi or in
10276         build-aux/po/Makefile.in.in, which I presume comes from gettext.
10277         * doc/gnulib-tool.texi: s/can not/cannot/
10278         * doc/posix-functions/accept.texi (accept): Likewise.
10279         * doc/posix-functions/socket.texi (socket): Likewise.
10280         * lib/mbrtowc.c: Likewise.
10281
10282         maint.mk: prohibit use of "can not"
10283         * top/maint.mk (sc_prohibit_can_not): New rule.
10284         Writing "can not" (rather than "cannot") is too common.  Prohibit it.
10285
10286 2011-04-09  Bruno Haible  <bruno@clisp.org>
10287
10288         careadlinkat: Guard against misuse of careadlinkatcwd.
10289         * lib/careadlinkat.c: Include <stdlib.h>.
10290         (careadlinkatcwd): Check that the fd argument is as expected.
10291
10292 2011-04-09  Bruno Haible  <bruno@clisp.org>
10293
10294         careadlinkat: Use common coding style.
10295         * lib/careadlinkat.c: Move gnulib includes after system includes.
10296
10297 2011-04-09  Bruno Haible  <bruno@clisp.org>
10298
10299         careadlinkat: Clarify specification.
10300         * lib/careadlinkat.h (careadlinkat): Clarify preadlinkat argument.
10301         (careadlinkatcwd): Add comment.
10302         * lib/careadlinkat.c (careadlinkat): Clarify preadlinkat argument.
10303
10304 2011-04-09  Bruno Haible  <bruno@clisp.org>
10305
10306         areadlinkat: Avoid link error on many platforms.
10307         * modules/areadlinkat (Depends-on): Add areadlink.
10308
10309 2011-04-09  Bruno Haible  <bruno@clisp.org>
10310
10311         allocator, careadlinkat: Fix double-inclusion guard.
10312         * lib/allocator.h: Fix double-inclusion guard.
10313         * lib/careadlinkat.h: Likewise.
10314
10315 2011-04-09  Bruno Haible  <bruno@clisp.org>
10316
10317         relocatable-prog-wrapper: Update after module 'areadlink' changed.
10318         * lib/relocwrapper.c: Update dependencies hierarchy.
10319         * build-aux/install-reloc: Update list of files to be compiled.
10320         * modules/relocatable-prog-wrapper (Files): Add lib/careadlinkat.[hc],
10321         lib/allocator.[hc].
10322
10323 2011-04-08  Eric Blake  <eblake@redhat.com>
10324
10325         strftime: silence gnulib-tool warning
10326         * modules/strftime-tests (Depends-on): Drop automatic dependency.
10327
10328 2011-04-08  Bruno Haible  <bruno@clisp.org>
10329
10330         verify: Fix syntax error with GCC 4.6 in C++ mode.
10331         * lib/verify.h (HAVE__STATIC_ASSERT): Don't define in C++ mode.
10332         (HAVE_STATIC_ASSERT): New macro.
10333         (verify_true, verify): Use 'static_assert' if it is supported and
10334         '_Static_assert' is not supported.
10335
10336 2011-04-08  Paul Eggert  <eggert@cs.ucla.edu>
10337
10338         allocator: New module.
10339         * modules/allocator, lib/allocator.c: New files.
10340         * lib/allocator.h (stdlib_allocator): New decl.
10341         * lib/careadlinkat.c (_GL_USE_STDLIB_ALLOC, standard_allocator):
10342         Remove.  Do not include <stdlib.h>.
10343         (careadlinkat): Use stdlib_allocator instead of rolling our own.
10344         * modules/careadlinkat (Files): Remove lib/allocator.h.
10345         (Depends-on): Add allocator.
10346
10347         stdlib: let modules use system malloc, realloc
10348         * lib/stdlib.in.h (malloc, realloc): Don't #define or add warnings
10349         if !_GL_USE_STDLIB_ALLOC.
10350         (malloc, realloc): Limit this change to a smaller scope.
10351
10352         * lib/careadlinkat.c (_GL_USE_STDLIB_ALLOC): Define.
10353         (malloc, realloc): Don't #undef; no longer needed.
10354         * lib/malloca.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
10355         * lib/progreloc.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
10356         * lib/setenv.c (_GL_USE_STDLIB_ALLOC, malloc, realloc): Likewise.
10357         * lib/canonicalize-lgpl.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
10358         * lib/relocatable.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
10359         * lib/relocwrapper.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
10360         * lib/malloc.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
10361         * lib/realloc.c (_GL_USE_STDLIB_ALLOC, malloc, realloc): Likewise.
10362
10363         careadlinkat: rename members to avoid problem
10364         * lib/allocator.h (struct allocator): Rename members from
10365         malloc/realloc to allocate/reallocate, to avoid problems if malloc
10366         and realloc are #define'd.  Reported by Eric Blake in
10367         <http://lists.gnu.org/archive/html/bug-gnulib/2011-04/msg00091.html>.
10368         * lib/careadlinkat.c (careadlinkat): Adjust to renaming.
10369
10370 2011-04-08  Eric Blake  <eblake@redhat.com>
10371
10372         nonblocking: reduce dependency
10373         * tests/test-nonblocking.c: Only test sockets when in use.
10374         * modules/nonblocking-tests (Depends-on): Drop socket.
10375         (Makefile.am): Link even if sockets are not present.
10376         * modules/pipe2-tests (Makefile.am): Likewise.
10377         * lib/ioctl.c (ioctl) [WIN32]: Fail if sockets are not also in use.
10378
10379         pipe2: fix O_NONBLOCK support on mingw
10380         * modules/pipe2 (Depends-on): Add nonblocking.
10381         * lib/pipe2.c (pipe2) [WIN32]: Add O_NONBLOCK support.
10382         * tests/test-pipe2.c (is_nonblocking): Adjust test accordingly.
10383         * tests/test-nonblocking.c (main): Likewise.
10384         * modules/pipe2-tests (Makefile.am): Avoid link failure.
10385
10386         fcntl-h: fix O_ACCMODE on cygwin
10387         * doc/posix-headers/fcntl.texi (fcntl.h): Document the bug.
10388         * lib/fcntl.in.h (O_ACCMODE): Fix it.
10389
10390         pipe-filter: drop O_NONBLOCK workarounds
10391         * modules/pipe-filter-gi (Depends-on): Add fcntl-h.
10392         * modules/pipe-filter-ii (Depends-on): Likewise.
10393         * lib/pipe-filter-aux.h (O_NONBLOCK): Delete workaround.
10394
10395         nonblocking: provide O_NONBLOCK for mingw
10396         * modules/nonblocking (Depends-on): Add open.
10397         (configure.ac): Set new witness macro.
10398         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Provide default for it.
10399         * modules/fcntl-h (Makefile.am): Substitute it.
10400         * lib/fcntl.in.h (O_NONBLOCK): Guarantee non-zero definition when
10401         nonblocking module is in use.
10402         * lib/nonblocking.c: Adjust portability test.
10403         * lib/open.c (open): Don't let native open see gnulib flag.
10404         * tests/test-fcntl-h.c (main): Enhance test.
10405         * tests/test-open.h (test_open): Likewise.
10406         * doc/posix-headers/fcntl.texi (fcntl.h): Document the replacement.
10407
10408         careadlinkat: fix compilation error on mingw
10409         * lib/careadlinkat.c (standard_allocator): Avoid renaming fields
10410         within struct allocator.
10411
10412 2011-04-06  Eric Blake  <eblake@redhat.com>
10413
10414         binary-io: relicense under LGPLv2+
10415         * modules/binary-io (License): Relax to LGPLv2+.
10416         Requested for libvirt, and required by pipe2.
10417
10418 2011-04-06  Paul Eggert  <eggert@cs.ucla.edu>
10419
10420         verify: use _Static_assert if available
10421         * lib/verify.h (HAVE__STATIC_ASSERT): New macro.
10422         (verify_true, verify): Use it if available.  This generates better
10423         diagnostics with GCC 4.6.0 and later.
10424
10425 2011-04-05  Bruno Haible  <bruno@clisp.org>
10426
10427         Remove leftover generated .h files after config.status changed.
10428
10429         * m4/alloca.m4 (gl_FUNC_ALLOCA): New automake conditional
10430         GL_GENERATE_ALLOCA_H.
10431         * modules/alloca-opt (Makefile.am): Remove alloca.h if
10432         GL_GENERATE_ALLOCA_H evaluates to false.
10433
10434         * m4/argz.m4 (gl_FUNC_ARGZ): New automake conditional
10435         GL_GENERATE_ARGZ_H.
10436         * modules/argz (Makefile.am): Remove argz.h if GL_GENERATE_ARGZ_H
10437         evaluates to false.
10438
10439         * m4/byteswap.m4 (gl_BYTESWAP): New automake conditional
10440         GL_GENERATE_BYTESWAP_H.
10441         * modules/byteswap (Makefile.am): Remove byteswap.h if
10442         GL_GENERATE_BYTESWAP_H evaluates to false.
10443
10444         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): New automake conditional
10445         GL_GENERATE_ERRNO_H.
10446         * modules/errno (Makefile.am): Remove errno.h if GL_GENERATE_ERRNO_H
10447         evaluates to false.
10448
10449         * m4/float_h.m4 (gl_FLOAT_H): New automake conditional
10450         GL_GENERATE_FLOAT_H.
10451         * modules/float (Makefile.am): Remove float.h if GL_GENERATE_FLOAT_H
10452         evaluates to false.
10453
10454         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): New automake conditional
10455         GL_GENERATE_FNMATCH_H.
10456         * modules/fnmatch (Makefile.am): Remove fnmatch.h if
10457         GL_GENERATE_FNMATCH_H evaluates to false.
10458
10459         * m4/glob.m4 (gl_GLOB_SUBSTITUTE, gl_GLOB): New automake conditional
10460         GL_GENERATE_GLOB_H.
10461         * modules/glob (Makefile.am): Remove glob.h if GL_GENERATE_GLOB_H
10462         evaluates to false.
10463
10464         * m4/iconv_h.m4 (gl_REPLACE_ICONV_H, gl_ICONV_H_DEFAULTS): New
10465         automake conditional GL_GENERATE_ICONV_H.
10466         * modules/iconv-h (Makefile.am): Remove iconv.h if GL_GENERATE_ICONV_H
10467         evaluates to false.
10468
10469         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): New automake conditional
10470         GL_GENERATE_NETINET_IN_H.
10471         * modules/netinet_in (Makefile.am): Remove netinet/in.h if
10472         GL_GENERATE_NETINET_IN_H evaluates to false.
10473
10474         * m4/pthread.m4 (gl_PTHREAD_CHECK): Set PTHREAD_H here. New automake
10475         conditional GL_GENERATE_PTHREAD_H.
10476         (gl_PTHREAD_DEFAULTS): Don't set PTHREAD_H here.
10477         * modules/pthread (Makefile.am): Remove pthread.h if
10478         GL_GENERATE_PTHREAD_H evaluates to false.
10479
10480         * m4/sched_h.m4 (gl_SCHED_H): New automake conditional
10481         GL_GENERATE_SCHED_H.
10482         * modules/sched (Makefile.am): Remove sched.h if GL_GENERATE_SCHED_H
10483         evaluates to false.
10484
10485         * m4/selinux-context-h.m4 (gl_HEADERS_SELINUX_CONTEXT_H): New automake
10486         conditional GL_GENERATE_SELINUX_CONTEXT_H.
10487         * modules/selinux-h (Makefile.am): Remove selinux/context.h if
10488         GL_GENERATE_SELINUX_CONTEXT_H evaluates to false.
10489
10490         * m4/stdarg.m4 (gl_STDARG_H): New automake conditional
10491         GL_GENERATE_STDARG_H.
10492         * modules/stdarg (Makefile.am): Remove stdarg.h if
10493         GL_GENERATE_STDARG_H evaluates to false.
10494
10495         * m4/stdbool.m4 (AM_STDBOOL_H): New automake conditional
10496         GL_GENERATE_STDBOOL_H.
10497         * modules/stdbool (Makefile.am): Remove stdbool.h if
10498         GL_GENERATE_STDBOOL_H evaluates to false.
10499
10500         * m4/stddef_h.m4 (gl_STDDEF_H): Set STDDEF_H here. New automake
10501         conditional GL_GENERATE_STDDEF_H.
10502         (gl_STDDEF_H_DEFAULTS): Don't set STDDEF_H here.
10503         * modules/stddef (Makefile.am): Remove stddef.h if
10504         GL_GENERATE_STDDEF_H evaluates to false.
10505
10506         * m4/stdint.m4 (gl_STDINT_H): New automake conditional
10507         GL_GENERATE_STDINT_H.
10508         * modules/stdint (Makefile.am): Remove stdint.h if
10509         GL_GENERATE_STDINT_H evaluates to false.
10510
10511         * m4/sysexits.m4 (gl_SYSEXITS): New automake conditional
10512         GL_GENERATE_SYSEXITS_H.
10513         * modules/sysexits (Makefile.am): Remove sysexits.h if
10514         GL_GENERATE_SYSEXITS_H evaluates to false.
10515
10516         Reported by Karl Berry and Ralf Wildenhues.
10517
10518 2011-04-05  Bruno Haible  <bruno@clisp.org>
10519
10520         Ensure to rebuild generated .h files when config.status has changed.
10521         * modules/arpa_inet (Makefile.am): Add dependency from .h file to
10522         config.status.
10523         * modules/ctype (Makefile.am): Likewise.
10524         * modules/dirent (Makefile.am): Likewise.
10525         * modules/errno (Makefile.am): Likewise.
10526         * modules/fcntl-h (Makefile.am): Likewise.
10527         * modules/float (Makefile.am): Likewise.
10528         * modules/getopt-posix (Makefile.am): Likewise.
10529         * modules/glob (Makefile.am): Likewise.
10530         * modules/iconv-h (Makefile.am): Likewise.
10531         * modules/inttypes (Makefile.am): Likewise.
10532         * modules/langinfo (Makefile.am): Likewise.
10533         * modules/locale (Makefile.am): Likewise.
10534         * modules/math (Makefile.am): Likewise.
10535         * modules/netdb (Makefile.am): Likewise.
10536         * modules/netinet_in (Makefile.am): Likewise.
10537         * modules/poll-h (Makefile.am): Likewise.
10538         * modules/pthread (Makefile.am): Likewise.
10539         * modules/pty (Makefile.am): Likewise.
10540         * modules/sched (Makefile.am): Likewise.
10541         * modules/search (Makefile.am): Likewise.
10542         * modules/selinux-h (Makefile.am): Likewise.
10543         * modules/signal (Makefile.am): Likewise.
10544         * modules/spawn (Makefile.am): Likewise.
10545         * modules/stdarg (Makefile.am): Likewise.
10546         * modules/stdbool (Makefile.am): Likewise.
10547         * modules/stddef (Makefile.am): Likewise.
10548         * modules/stdint (Makefile.am): Likewise.
10549         * modules/stdio (Makefile.am): Likewise.
10550         * modules/stdlib (Makefile.am): Likewise.
10551         * modules/string (Makefile.am): Likewise.
10552         * modules/strings (Makefile.am): Likewise.
10553         * modules/sys_file (Makefile.am): Likewise.
10554         * modules/sys_ioctl (Makefile.am): Likewise.
10555         * modules/sys_select (Makefile.am): Likewise.
10556         * modules/sys_socket (Makefile.am): Likewise.
10557         * modules/sys_stat (Makefile.am): Likewise.
10558         * modules/sys_time (Makefile.am): Likewise.
10559         * modules/sys_times (Makefile.am): Likewise.
10560         * modules/sys_utsname (Makefile.am): Likewise.
10561         * modules/sys_wait (Makefile.am): Likewise.
10562         * modules/sysexits (Makefile.am): Likewise.
10563         * modules/termios (Makefile.am): Likewise.
10564         * modules/time (Makefile.am): Likewise.
10565         * modules/unistd (Makefile.am): Likewise.
10566         * modules/wchar (Makefile.am): Likewise.
10567         * modules/wctype-h (Makefile.am): Likewise.
10568         Reported by Karl Berry, Eric Blake, and Ralf Wildenhues.
10569
10570 2011-04-05  Bruno Haible  <bruno@clisp.org>
10571
10572         pipe2: Relicense under LGPLv2+.
10573         * modules/pipe2 (License): Change to LGPLv2+.
10574         Requested by Eric Blake, for libvirt.
10575
10576 2011-04-05  Bruce Korb  <bkorb@gnu.org>
10577
10578         bootstrap: compute gnulib_extra_files after updating build_aux
10579         * build-aux/bootstrap (gnulib_extra_files): bootstrap.conf may
10580         change build_aux or also supply gnulib_extra_files.  Handle correctly.
10581
10582 2011-04-05  Eric Blake  <eblake@redhat.com>
10583
10584         bootstrap: preserve git whitelist item sorting
10585         * build-aux/bootstrap (sort_patterns): New function.
10586         (insert_sorted_if_absent): Use it to sink ! lines to the bottom.
10587
10588 2011-04-05  Simon Josefsson  <simon@josefsson.org>
10589
10590         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Don't trigger
10591         sc_space_tab check.
10592
10593 2011-04-05  Paul Eggert  <eggert@cs.ucla.edu>
10594
10595         areadlink, areadlinkat: rewrite in terms of careadlinkat
10596         * lib/areadlink.c, lib/areadlinkat.c: Include careadlinkat.h
10597         instead of errno.h, limits.h, stdint.h, stdlib.h, string.h, unistd.h.
10598         (SSIZE_MAX, INITIAL_BUF_SIZE): Remove.
10599         (malloc, realloc): Remove #undefs.
10600         (areadlink, areadlinkat): Rewrite in terms of careadlinkat.
10601         * modules/areadlink (Depends-on): Add careadlinkat.  Remove
10602         readlink, ssize_t, stdint, unistd.
10603         * modules/areadlinkat (Depends-on): Add careadlinkat.  Remove
10604         areadlink, stdint.
10605
10606         careadlinkat: new module
10607         * lib/allocator.h, lib/careadlinkat.h, lib/careadlinkat.c:
10608         * modules/careadlinkat: New files, written by me with
10609         a review and feedback from Ben Pfaff in
10610         <http://lists.gnu.org/archive/html/bug-gnulib/2011-04/msg00008.html>.
10611
10612 2011-04-01  Bruno Haible  <bruno@clisp.org>
10613
10614         wmemchr, wcschr, wcsrchr, wcspbrk, wcsstr: Avoid errors in C++ mode.
10615         * lib/wchar.in.h (wmemchr, wcschr, wcsrchr, wcspbrk, wcsstr): Use
10616         _GL_CXXALIAS_SYS_CAST2 instead of _GL_CXXALIAS_SYS. On glibc >= 2.10
10617         systems, use _GL_CXXALIASWARN1 instead of _GL_CXXALIASWARN.
10618         Reported by Bruce Korb <bruce.korb@gmail.com>.
10619
10620 2011-04-01  Bruno Haible  <bruno@clisp.org>
10621
10622         wcpcpy, wcpncpy: Ensure declaration on glibc >= 2.13 systems.
10623         * m4/wcpcpy.m4 (gl_FUNC_WCPCPY): Require AC_USE_SYSTEM_EXTENSIONS.
10624         * m4/wcpncpy.m4 (gl_FUNC_WCPNCPY): Likewise.
10625         * modules/wcpcpy (Depends-on): Add extensions.
10626         * modules/wcpncpy (Depends-on): Likewise.
10627         * doc/posix-functions/wcpcpy.texi: Mention missing declaration on glibc
10628         systems.
10629         * doc/posix-functions/wcpncpy.texi: Likewise.
10630         * doc/posix-functions/wcwidth.texi: Likewise.
10631
10632 2011-03-31  Eric Blake  <eblake@redhat.com>
10633
10634         nonblocking: fix mingw test failures
10635         * lib/nonblocking.c (set_nonblocking_flag): Succeed when clearing
10636         non-blocking flag on regular file.
10637         (get_nonblocking_flag): Set errno on invalid fd.
10638         * tests/test-nonblocking.c (main): Avoid test failure on
10639         directories if fchdir is not active.
10640         * modules/nonblocking-tests (Depends-on): Drop unused dependency.
10641
10642 2011-03-31  Bruno Haible  <bruno@clisp.org>
10643
10644         Fix bug with gl_WARN_ON_USE_PREPARE, introduced on 2011-01-23.
10645         * m4/gnulib-common.m4 (gl_ASSERT_NO_GNULIB_POSIXCHECK): Hide the
10646         gl_WARN_ON_USE_PREPARE definition from 'aclocal'.
10647         Reported by Simon Josefsson <simon@josefsson.org>.
10648
10649 2011-03-31  Bruno Haible  <bruno@clisp.org>
10650         and Eric Blake  <eblake@redhat.com>
10651
10652         nonblocking: new module
10653         * modules/nonblocking: New module.
10654         * modules/nonblocking-tests: Likewise.
10655         * lib/nonblocking.h: New file.
10656         * lib/nonblocking.c: Likewise.
10657         * tests/test-nonblocking.c: New test.
10658         * lib/ioctl.c (ioctl) [mingw]: Update comment.
10659
10660 2011-03-30  Bruno Haible  <bruno@clisp.org>
10661
10662         stdio: Avoid GCC >= 4.4 warnings when using %lld and similar on mingw.
10663         * lib/stdio.in.h (_GL_ATTRIBUTE_FORMAT_PRINTF): Use 'gnu_printf' format
10664         instead of 'printf' format for GCC >= 4.4.
10665         (_GL_ATTRIBUTE_FORMAT_PRINTF_SYSTEM): New macro.
10666         (fprintf, printf, vfprintf, vprintf): Declare with
10667         _GL_ATTRIBUTE_FORMAT_PRINTF_SYSTEM when the function ends up calling
10668         the system's vfprintf() function.
10669         Reported by Daniel P. Berrange <berrange@redhat.com> via Eric Blake.
10670
10671 2011-03-30  Eric Blake  <eblake@redhat.com>
10672
10673         passfd: fix scoping bug
10674         * lib/passfd.c (sendfd, recvfd): Don't let buf go out of scope
10675         before sendmsg/recvmsg.
10676
10677         passfd: standardize coding conventions
10678         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Drop check for something that
10679         can be learned at compile time.
10680         * lib/passfd.c (MSG_CMSG_CLOEXEC): Reduce number of in-function
10681         ifdefs.
10682         (sendfd, recvfd): Follow gnulib code conventions.
10683
10684         passfd: fix incorrect sendmsg arguments
10685         * lib/passfd.c (sendfd): Avoid uninitialized msg_flags field, and
10686         incorrect msg_controllen value.
10687         * modules/passfd-tests (Depends-on): Check for alarm.
10688         * tests/test-passfd.c (main) [HAVE_DECL_ALARM]: Avoid hanging test.
10689         Reported by Bastien ROUCARIES.
10690
10691 2011-03-30  Bruno Haible  <bruno@clisp.org>
10692
10693         c-strcasestr: Relicense under LGPLv2+.
10694         * modules/c-strcasestr (License): Change to LGPLv2+.
10695         Requested by Eric Blake, for libvirt.
10696
10697 2011-03-30  Simon Josefsson  <simon@josefsson.org>
10698
10699         * users.txt: Add libidn2.  Fix libtasn1 link.
10700
10701 2011-03-30  Jim Meyering  <meyering@redhat.com>
10702
10703         tests: readlink* ("",... fails with EINVAL on newer kernels
10704         readlink and readlinkat have typically failed with ENOENT for
10705         the invalid, empty file name,  "".  However, with the advent
10706         of linux-2.6.39, they fail with EINVAL.
10707         * tests/test-areadlink.h (test_areadlink): Also accept EINVAL
10708         when operating on the empty file name.
10709         * tests/test-readlink.h (test_readlink): Likewise.
10710
10711 2011-03-29  Bruno Haible  <bruno@clisp.org>
10712
10713         Relicense some modules under LGPLv2+, for libidn2.
10714         * modules/array-mergesort (License): Change to LGPLv2+.
10715         * modules/c-strcaseeq (License): Likewise.
10716         * modules/striconveh (License): Likewise.
10717         * modules/striconveha (License): Likewise.
10718         * modules/uniconv/base (License): Likewise.
10719         * modules/uniconv/u8-conv-from-enc (License): Likewise.
10720         * modules/uniconv/u8-strconv-from-enc (License): Likewise.
10721         * modules/uniconv/u8-strconv-from-locale (License): Likewise.
10722         * modules/unictype/base (License): Likewise.
10723         * modules/unictype/bidiclass-of (License): Likewise.
10724         * modules/unictype/category-M (License): Likewise.
10725         * modules/unictype/category-none (License): Likewise.
10726         * modules/unictype/category-of (License): Likewise.
10727         * modules/unictype/category-test (License): Likewise.
10728         * modules/unictype/category-test-withtable (License): Likewise.
10729         * modules/unictype/combining-class (License): Likewise.
10730         * modules/unictype/joiningtype-of (License): Likewise.
10731         * modules/unictype/scripts (License): Likewise.
10732         * modules/uninorm/base (License): Likewise.
10733         * modules/uninorm/canonical-decomposition (License): Likewise.
10734         * modules/uninorm/composition (License): Likewise.
10735         * modules/uninorm/decompose-internal (License): Likewise.
10736         * modules/uninorm/decomposition-table (License): Likewise.
10737         * modules/uninorm/nfc (License): Likewise.
10738         * modules/uninorm/nfd (License): Likewise.
10739         * modules/uninorm/u32-normalize (License): Likewise.
10740         * modules/unistr/base (License): Likewise.
10741         * modules/unistr/u32-cpy (License): Likewise.
10742         * modules/unistr/u32-mbtouc-unsafe (License): Likewise.
10743         * modules/unistr/u32-to-u8 (License): Likewise.
10744         * modules/unistr/u32-uctomb (License): Likewise.
10745         * modules/unistr/u8-check (License): Likewise.
10746         * modules/unistr/u8-mblen (License): Likewise.
10747         * modules/unistr/u8-mbtouc (License): Likewise.
10748         * modules/unistr/u8-mbtouc-unsafe (License): Likewise.
10749         * modules/unistr/u8-mbtoucr (License): Likewise.
10750         * modules/unistr/u8-prev (License): Likewise.
10751         * modules/unistr/u8-strlen (License): Likewise.
10752         * modules/unistr/u8-to-u32 (License): Likewise.
10753         * modules/unistr/u8-uctomb (License): Likewise.
10754         * modules/unitypes (License): Likewise.
10755         Requested by Simon Josefsson.
10756
10757 2011-03-29  Simon Josefsson  <simon@josefsson.org>
10758
10759         lib-symbol-visibility: Add a notice.
10760         * modules/lib-symbol-visibility (Notice): New field.
10761
10762 2011-03-29  Bruno Haible  <bruno@clisp.org>
10763
10764         getaddrinfo: Doc fix.
10765         * doc/posix-functions/getaddrinfo.texi: Mention Windows problem in the
10766         section "fixed in Gnulib".
10767
10768 2011-03-28  Simon Josefsson  <simon@josefsson.org>
10769
10770         * doc/posix-functions/getaddrinfo.texi: Drop netdb.h discussion.
10771         Reported by Bastien ROUCARIES <roucaries.bastien@gmail.com>.
10772
10773 2011-03-26  Bruno Haible  <bruno@clisp.org>
10774
10775         unictype/property-byname: Reduce the number of load-time relocations.
10776         * lib/unictype/pr_byname.c: Include <stdlib.h>.
10777         (UC_PROPERTY_INDEX_*): New enumeration values.
10778         (uc_property_byname): Convert an index from the lookup table to an
10779         uc_property_t.
10780         * lib/unictype/pr_byname.gperf: Store indices instead of uc_property_t
10781         values.
10782
10783 2011-03-26  Bruno Haible  <bruno@clisp.org>
10784
10785         unictype/property-byname: Allow omitted word separators and aliases.
10786         * lib/unictype/pr_byname.gperf: Add property names without word
10787         separators. Add aliases from Unicode 6.0 PropertyAliases.txt, except
10788         for 'space'.
10789
10790 2011-03-26  Bruno Haible  <bruno@clisp.org>
10791
10792         unictype/joininggroup-byname: Allow hyphens, omitted word separators.
10793         * lib/unictype/joininggroup_byname.c (uc_joining_group_byname): Convert
10794         also hyphens to space.
10795         * lib/unictype/joininggroup_byname.gperf: Recognize the names also
10796         without spaces.
10797         * tests/unictype/test-joininggroup_byname.c (main): Add more tests.
10798
10799 2011-03-26  Bruno Haible  <bruno@clisp.org>
10800
10801         unictype/joiningtype-byname: Recognize long names as well.
10802         * lib/unictype.in.h (uc_joiningtype_class_byname): Allow argument to be
10803         a long name.
10804         * lib/unictype/joiningtype_byname.c: Include <string.h>,
10805         unictype/joiningtype_byname.h.
10806         (uc_joiningtype_class_byname): Use uc_joining_type_lookup.
10807         * lib/unictype/joiningtype_byname.gperf: New file.
10808         * modules/unictype/joiningtype-byname (Files): Add
10809         lib/unictype/joiningtype_byname.gperf.
10810         (Depends-on): Add gperf.
10811         (Makefile.am): Add rule for generating unictype/joiningtype_byname.h.
10812         * tests/unictype/test-joiningtype_byname.c (main): Test the recognition of
10813         long names.
10814
10815         Tests for module 'unictype/joiningtype-longname'.
10816         * modules/unictype/joiningtype-longname-tests: New file.
10817         * tests/unictype/test-joiningtype_longname.c: New file.
10818
10819         New module 'unictype/joiningtype-longname'.
10820         * lib/unictype.in.h (uc_joiningtype_class_long_name): New declaration.
10821         * lib/unictype/joiningtype_longname.c: New file.
10822         * modules/unictype/joiningtype-longname: New file.
10823         * modules/unictype/joiningtype-all (Depends-on): Add
10824         unictype/joiningtype-longname.
10825
10826 2011-03-26  Bruno Haible  <bruno@clisp.org>
10827
10828         unictype/bidiclass-byname: Recognize long names as well.
10829         * lib/unictype.in.h (uc_bidi_class_byname): Allow argument to be a long
10830         name.
10831         * lib/unictype/bidi_byname.c: Include <string.h>,
10832         unictype/bidi_byname.h.
10833         (uc_bidi_class_byname): Use uc_bidi_class_lookup.
10834         * lib/unictype/bidi_byname.gperf: New file.
10835         * modules/unictype/bidiclass-byname (Files): Add
10836         lib/unictype/bidi_byname.gperf.
10837         (Depends-on): Add gperf.
10838         (Makefile.am): Add rule for generating unictype/bidi_byname.h.
10839         * tests/unictype/test-bidi_byname.c (main): Test the recognition of
10840         long names.
10841
10842         Tests for module 'unictype/bidiclass-longname'.
10843         * modules/unictype/bidiclass-longname-tests: New file.
10844         * tests/unictype/test-bidi_longname.c: New file.
10845
10846         New module 'unictype/bidiclass-longname'.
10847         * lib/unictype.in.h (uc_bidi_class_long_name): New declaration.
10848         * lib/unictype/bidi_longname.c: New file.
10849         * modules/unictype/bidiclass-longname: New file.
10850         * modules/unictype/bidiclass-all (Depends-on): Add
10851         unictype/bidiclass-longname.
10852
10853 2011-03-26  Bruno Haible  <bruno@clisp.org>
10854
10855         unictype/bidi*: Rename modules.
10856         * modules/unictype/bidiclass-all: Renamed from
10857         modules/unictype/bidicategory-all.
10858         * modules/unictype/bidiclass-name: Renamed from
10859         modules/unictype/bidiclass-name.
10860         (Description): Update.
10861         * modules/unictype/bidiclass-name-tests: Renamed from
10862         modules/unictype/bidicategory-name-tests.
10863         * modules/unictype/bidiclass-byname: Renamed from
10864         modules/unictype/bidicategory-byname.
10865         (Description): Update.
10866         * modules/unictype/bidiclass-byname-tests: Renamed from
10867         modules/unictype/bidicategory-byname-tests.
10868         * modules/unictype/bidiclass-of: Renamed from
10869         modules/unictype/bidicategory-of.
10870         (Description): Update.
10871         * modules/unictype/bidiclass-of-tests: Renamed from
10872         modules/unictype/bidicategory-of-tests.
10873         * modules/unictype/bidiclass-test: Renamed from
10874         modules/unictype/bidicategory-test.
10875         (Description): Update.
10876         * modules/unictype/bidiclass-test-tests: Renamed from
10877         modules/unictype/bidicategory-test-tests.
10878         * modules/unictype/bidicategory-all: New file, a simple redirection.
10879         * modules/unictype/bidicategory-name: Likewise.
10880         * modules/unictype/bidicategory-byname: Likewise.
10881         * modules/unictype/bidicategory-of: Likewise.
10882         * modules/unictype/bidicategory-test: Likewise.
10883         * modules/unictype/property-bidi-* (Dependencies): Update.
10884         * lib/unictype/bidi_*.c: Update comment.
10885
10886 2011-03-26  Bruno Haible  <bruno@clisp.org>
10887
10888         unictype/bidi*: Rename functions, part 2.
10889         * modules/unictype/bidicategory-name (configure.ac): Update required
10890         libunistring version.
10891         * modules/unictype/bidicategory-byname (configure.ac): Likewise.
10892
10893 2011-03-25  Bruno Haible  <bruno@clisp.org>
10894
10895         New module 'unictype/combining-class-all'.
10896         * modules/unictype/combining-class-all: New file.
10897
10898         Tests for module 'unictype/combining-class-byname'.
10899         * modules/unictype/combining-class-byname-tests: New file.
10900         * tests/unictype/test-combiningclass_byname.c: New file.
10901
10902         New module 'unictype/combining-class-byname'.
10903         * lib/unictype.in.h (uc_combining_class_byname): New declaration.
10904         * lib/unictype/combiningclass_byname.c: New file.
10905         * lib/unictype/combiningclass_byname.gperf: New file.
10906         * modules/unictype/combining-class-byname: New file.
10907
10908         Tests for module 'unictype/combining-class-longname'.
10909         * modules/unictype/combining-class-longname-tests: New file.
10910         * tests/unictype/test-combiningclass_longname.c: New file.
10911
10912         New module 'unictype/combining-class-longname'.
10913         * lib/unictype.in.h (uc_combining_class_long_name): New declaration.
10914         * lib/unictype/combiningclass_longname.c: New file.
10915         * modules/unictype/combining-class-longname: New file.
10916
10917         Tests for module 'unictype/combining-class-name'.
10918         * modules/unictype/combining-class-name-tests: New file.
10919         * tests/unictype/test-combiningclass_name.c: New file.
10920
10921         New module 'unictype/combining-class-name'.
10922         * lib/unictype.in.h (uc_combining_class_name): New declaration.
10923         * lib/unictype/combiningclass_name.c: New file.
10924         * modules/unictype/combining-class-name: New file.
10925
10926 2011-03-25  Bruno Haible  <bruno@clisp.org>
10927
10928         unictype/combining-class: Rename source files.
10929         * lib/gen-uni-tables.c (main): Emit unictype/combiningclass.h instead
10930         of unictype/combining.h.
10931         * lib/unictype/combiningclass.c: Renamed from lib/unictype/combining.c.
10932         Update.
10933         * lib/unictype/combiningclass.h: Renamed from lib/unictype/combining.h.
10934         * modules/unictype/combining-class (Description): Fix.
10935         (Files, Makefile.am): Update.
10936         * tests/unictype/test-combiningclass.c: Renamed from
10937         tests/unictype/test-combining.c.
10938         * modules/unictype/combining-class-tests (Files, Makefile.am): Update.
10939
10940 2011-03-25  Bruno Haible  <bruno@clisp.org>
10941
10942         unictype: Update list of canonical combining classes.
10943         * lib/unictype.in.h (UC_CCC_ATA): New enumeration value.
10944
10945 2011-03-25  Bruno Haible  <bruno@clisp.org>
10946
10947         unictype/category-byname: Recognize long names as well.
10948         * lib/unictype.in.h (uc_general_category_byname): Allow argument to be
10949         a long name.
10950         * lib/unictype/categ_byname.c: Include <stdlib.h>, <string.h>,
10951         unictype/categ_byname.h.
10952         (UC_CATEGORY_INDEX_*): New enumeration values.
10953         (uc_general_category_byname): Use uc_general_category_lookup and
10954         convert from index to value.
10955         * lib/unictype/categ_byname.gperf: New file.
10956         * modules/unictype/category-byname (Files): Add
10957         lib/unictype/categ_byname.gperf.
10958         (Depends-on): Add gperf.
10959         (Makefile.am): Add rule for generating unictype/categ_byname.h.
10960         * tests/unictype/test-categ_byname.c (main): Test the recognition of
10961         long names.
10962
10963         Tests for module 'unictype/category-longname'.
10964         * modules/unictype/category-longname-tests: New file.
10965         * tests/unictype/test-categ_longname.c: New file.
10966
10967         New module 'unictype/category-longname'.
10968         * lib/unictype.in.h (uc_general_category_long_name): New declaration.
10969         * lib/unictype/categ_longname.c: New file.
10970         * modules/unictype/category-longname: New file.
10971         * modules/unictype/category-all (Depends-on): Add it.
10972
10973 2011-03-25  Bruno Haible  <bruno@clisp.org>
10974
10975         Tests for module 'unictype/category-LC'.
10976         * modules/unictype/category-LC-tests: New file.
10977         * tests/unictype/test-categ_LC.c: New file, automatically generated.
10978
10979         New module 'unictype/category-LC'.
10980         * lib/unictype.in.h (UC_CATEGORY_MASK_LC): New enumeration value.
10981         (UC_CATEGORY_LC): New declaration.
10982         (UC_CASED_LETTER): New macro.
10983         * lib/gen-uni-tables.c (is_category_LC): New function.
10984         (output_categories): Also handle category LC.
10985         (UC_CATEGORY_MASK_LC): New enumeration value.
10986         (general_category_byname): Also handle category LC.
10987         * lib/unictype/categ_LC.c: New file.
10988         * lib/unictype/categ_LC.h: New file, automatically generated.
10989         * lib/unictype/categ_name.c (uc_general_category_name): Also handle
10990         category LC.
10991         * lib/unictype/categ_byname.c (uc_general_category_byname): Likewise.
10992         * modules/unictype/category-LC: New file.
10993         * modules/unictype/category-byname (Depends-on): Add
10994         unictype/category-LC.
10995         * modules/unictype/category-all (Depends-on): Likewise.
10996
10997 2011-03-25  Eric Blake  <eblake@redhat.com>
10998
10999         xmalloc: revert yesterday's regression
11000         * lib/xmalloc.c (xrealloc): Once again forward xrealloc(NULL,0) to
11001         realloc's underlying behavior (allowing allocation of zero-size
11002         objects, especially if malloc-gnu is also in use).
11003
11004 2011-03-25  Reuben Thomas  <rrt@sc3d.org>
11005
11006         maint.mk: add missing version to VC-tag
11007         * top/maint.mk: git tag was missing actual tag name; add it.
11008
11009         valgrind: do leak checking, and exit with code 1 on error (not 0)
11010         * m4/valgrind-tests.m4: Add `--error-exitcode=1 --leak-check=full'
11011         to VALGRIND.
11012
11013 2010-11-30  Reuben Thomas  <rrt@sc3d.org>
11014
11015         posix-modules: say what it does.
11016         * posix-modules: Add a line to the --help output saying what it does.
11017
11018 2011-03-24  Paul Eggert  <eggert@cs.ucla.edu>
11019
11020         xmalloc: Do not leak if underlying realloc is C99 compatible.
11021         * lib/xmalloc.c (xrealloc): If N is zero, call 'free' directly.
11022         This avoids a leak on C99-based systems.  See
11023         <http://lists.gnu.org/archive/html/bug-gnulib/2011-03/msg00243.html>.
11024
11025 2011-03-24  Eric Blake  <eblake@redhat.com>
11026
11027         realloc: document portability problem
11028         * doc/posix-functions/realloc.texi (realloc): Mention pitfalls of
11029         passing 0 size to realloc.
11030
11031 2011-03-23  Ben Walton  <bwalton@artsci.utoronto.ca>
11032
11033         doc: update users.txt
11034         * users.txt: Add cvsps, tmpwatch
11035
11036 2011-03-23  Matt Rice  <ratmice@gmail.com>
11037
11038         doc: update users.txt
11039         * users.txt: Add gdb.
11040
11041 2011-03-23  Jim Meyering  <meyering@redhat.com>
11042
11043         doc: update users.txt
11044         Looking through matches up to the following URL (there are still
11045         several more pages), I found several projects that use gnulib:
11046         http://codesearch.google.com/codesearch?start=50&q=gnulib-cache\.m4
11047         * users.txt: Add nagios plugins (nagiosplug), acct, gengetopt,
11048         gmediaserver, gtkreindeer, jugtail, libunistring, mini-httpd, reindeer.
11049
11050 2011-03-22  Bruno Haible  <bruno@clisp.org>
11051
11052         unictype/bidi*: Rename functions.
11053         * lib/unictype.in.h (uc_bidi_class_name, uc_bidi_class_byname,
11054         uc_bidi_class, uc_is_bidi_class): New declarations.
11055         * lib/unictype/bidi_byname.c (uc_bidi_class_byname): Renamed from
11056         uc_bidi_category_byname.
11057         (uc_bidi_category_byname): New function.
11058         * lib/unictype/bidi_name.c (u_bidi_class_name): Renamed from
11059         u_bidi_category_name.
11060         (uc_bidi_class_name): Renamed from uc_bidi_category_name.
11061         (uc_bidi_category_name): New function.
11062         * lib/unictype/bidi_of.c (uc_bidi_class): Renamed from
11063         uc_bidi_category.
11064         (uc_bidi_category): New function.
11065         * lib/unictype/bidi_test.c (uc_is_bidi_class): Renamed from
11066         uc_is_bidi_category. Invoke uc_bidi_class.
11067         (uc_is_bidi_category): New function.
11068         * tests/unictype/test-bidi_byname.c (main): Test uc_bidi_class_byname
11069         instead of uc_bidi_category_byname.
11070         * tests/unictype/test-bidi_name.c (main): Test uc_bidi_class_name
11071         instead of uc_bidi_category_name.
11072         * tests/unictype/test-bidi_of.c (main): Test uc_bidi_class instead of
11073         uc_bidi_category.
11074         * tests/unictype/test-bidi_test.c (main): Test uc_is_bidi_class
11075         instead of uc_is_bidi_category.
11076
11077 2011-03-21  Bruno Haible  <bruno@clisp.org>
11078
11079         New module 'unictype/joininggroup-all'.
11080         * modules/unictype/joininggroup-all: New file.
11081
11082         Tests for module 'unictype/joininggroup-of'.
11083         * modules/unictype/joininggroup-of-tests: New file.
11084         * tests/unictype/test-joininggroup_of.c: New file.
11085         * tests/unictype/test-joininggroup_of.h: New file, automatically
11086         generated by gen-uni-tables.
11087
11088         New module 'unictype/joininggroup-of'.
11089         * modules/unictype/joininggroup-of: New file.
11090         * lib/unictype/joininggroup_of.c: New file.
11091         * lib/unictype/joininggroup_of.h: New file, automatically generated by
11092         gen-uni-tables.
11093
11094         Tests for module 'unictype/joininggroup-byname'.
11095         * modules/unictype/joininggroup-byname-tests: New file.
11096         * tests/unictype/test-joininggroup_byname.c: New file.
11097
11098         New module 'unictype/joininggroup-byname'.
11099         * modules/unictype/joininggroup-byname: New file.
11100         * lib/unictype/joininggroup_byname.c: New file.
11101         * lib/unictype/joininggroup_byname.gperf: New file.
11102
11103         Tests for module 'unictype/joininggroup-name'.
11104         * modules/unictype/joininggroup-name-tests: New file.
11105         * tests/unictype/test-joininggroup_name.c: New file.
11106
11107         New module 'unictype/joininggroup-name'.
11108         * modules/unictype/joininggroup-name: New file.
11109         * lib/unictype/joininggroup_name.c: New file.
11110         * lib/unictype/joininggroup_name.h: New file.
11111
11112         New module 'unictype/joiningtype-all'.
11113         * modules/unictype/joiningtype-all: New file.
11114
11115         Tests for module 'unictype/joiningtype-of'.
11116         * modules/unictype/joiningtype-of-tests: New file.
11117         * tests/unictype/test-joiningtype_of.c: New file.
11118         * tests/unictype/test-joiningtype_of.h: New file, automatically
11119         generated by gen-uni-tables.
11120
11121         New module 'unictype/joiningtype-of'.
11122         * modules/unictype/joiningtype-of: New file.
11123         * lib/unictype/joiningtype_of.c: New file.
11124         * lib/unictype/joiningtype_of.h: New file, automatically generated by
11125         gen-uni-tables.
11126
11127         Tests for module 'unictype/joiningtype-byname'.
11128         * modules/unictype/joiningtype-byname-tests: New file.
11129         * tests/unictype/test-joiningtype_byname.c: New file.
11130
11131         New module 'unictype/joiningtype-byname'.
11132         * modules/unictype/joiningtype-byname: New file.
11133         * lib/unictype/joiningtype_byname.c: New file.
11134
11135         Tests for module 'unictype/joiningtype-name'.
11136         * modules/unictype/joiningtype-name-tests: New file.
11137         * tests/unictype/test-joiningtype_name.c: New file.
11138
11139         New module 'unictype/joiningtype-name'.
11140         * modules/unictype/joiningtype-name: New file.
11141         * lib/unictype/joiningtype_name.c: New file.
11142
11143         unictype: Add support for Arabic shaping properties.
11144         * lib/unictype.in.h (UC_JOINING_TYPE_*): New enumeration values.
11145         (uc_joining_type_name, uc_joining_type_byname, uc_joining_type): New
11146         declarations.
11147         (UC_JOINING_GROUP_*): New enumeration values.
11148         (uc_joining_group_name, uc_joining_group_byname, uc_joining_group): New
11149         declarations.
11150         * lib/gen-uni-tables.c (UC_JOINING_TYPE_*): New enumeration values.
11151         (unicode_joining_type): New variable.
11152         (UC_JOINING_GROUP_*): New enumeration values.
11153         (unicode_joining_group): New variable.
11154         (fill_arabicshaping, joining_type_as_c_identifier,
11155         output_joining_type_test, output_joining_type,
11156         joining_group_as_c_identifier, output_joining_group_test,
11157         output_joining_group): New functions.
11158         (main); Add an argument denoting the ArabicShaping.txt file. Invoke
11159         fill_arabicshaping and output_joining_type_test, output_joining_type,
11160         output_joining_group_test, output_joining_group.
11161         Reported by Simon Josefsson.
11162
11163 2011-03-21  Jim Meyering  <meyering@redhat.com>
11164
11165         strftime: fix a bug in yesterday's change
11166         * lib/strftime.c (add): Accommodate width's initial value of -1.
11167         Otherwise, nstrftime would copy uninitialized data into
11168         the result buffer.
11169
11170 2011-03-21  Jim Meyering  <meyering@redhat.com>
11171
11172         tests: add strftime-tests module
11173         * tests/test-strftime.c: New file.
11174         * modules/strftime-tests: New module.
11175
11176 2011-03-20  Paul Eggert  <eggert@cs.ucla.edu>
11177
11178         strftime: don't assume a byte count fits in 'int'
11179         * lib/strftime.c (add): Don't assume first arg fits in 'int'.  I
11180         found this problem by static analysis, using gcc -Wstrict-overflow
11181         (GCC 4.5.2, x86-64).  This reported an optimization that depended
11182         on an integer overflow having undefined behavior, but it turns out
11183         that the argument is a size, which might not fit in 'int' anyway,
11184
11185 2011-03-20  Paul Eggert  <eggert@cs.ucla.edu>
11186
11187         stdio: don't require ignore_value around fwrite
11188
11189         This patch works around libc bug 11959
11190         <http://sources.redhat.com/bugzilla/show_bug.cgi?id=11959>.
11191         Without this patch, applications must often write
11192         ignore_value (fwrite (...)) even though the ignore_value is
11193         not helpful here.  It's common to write many objects, using
11194         fwrite/printf/etc., and then use ferror to detect output error.
11195
11196         I considered making this patch optional, but decided against it,
11197         because libc is obviously being inconsistent here: there is no
11198         reason libc should insist that user code must inspect fwrite
11199         return's value without also insisting that it inspect printf's,
11200         putchar's, etc.  If user code wants to have a strict style where
11201         all these functions' values are checked (so that ferror need not
11202         be checked), we could add support for that style in a new gnulib
11203         module, but in the meantime it's better to be consistent and to
11204         support common usage.
11205
11206         * lib/stdio.in.h (rpl_fwrite): Define this wrapper around fwrite,
11207         to work around libc bug 11959, if __USE_FORTIFY_LEVEL indicates
11208         that we are compiling in checking mode, and if not C++, and
11209         if not already wrapping fwrite for some other reason.
11210         (fwrite): #define to rpl_fwrite if the latter is defined.
11211
11212 2011-03-20  Bruno Haible  <bruno@clisp.org>
11213
11214         verror: Fix compilation error introduced on 2011-02-13.
11215         * lib/verror.h (verror, verror_at_line): Use _GL_ATTRIBUTE_FORMAT macro
11216         instead of __attribute__.
11217         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
11218
11219 2011-03-20  Paul Eggert  <eggert@cs.ucla.edu>
11220             Bruno Haible  <bruno@clisp.org>
11221
11222         socklen: do not depend on sys_socket
11223         While trying to modify Emacs to use gnulib's socklen module,
11224         I discovered a circular dependency: socklen depends on sys_socket
11225         and vice versa.  Emacs can use socklen, but it does not need
11226         sys_socket because it has its own substitute for sys/socket.h.
11227         * m4/socklen.m4 (gl_SOCKET_HEADERS): New macro, extracted from
11228         gl_TYPE_SOCKLEN_T.
11229         (gl_CHECK_SOCKET_HEADERS): New macro, taken from parts of
11230         gl_PREREQ_SYS_H_SOCKET.
11231         (gl_TYPE_SOCKLEN_T): Require it instead of requiring
11232         gl_PREREQ_SYS_H_SOCKET.
11233         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_SOCKET): Require
11234         gl_CHECK_SOCKET_HEADERS instead of doing its work ourselves.
11235         * modules/socklen (Depends-on): Do not depend on sys_socket.
11236         (Include): Adjust to match the code used in gl_SOCKET_HEADERS.
11237
11238 2011-03-20  Jim Meyering  <meyering@redhat.com>
11239
11240         maint.mk: sort file names *after* new transformation
11241         * top/maint.mk (sc_po_check): Sorting before removing the $(srcdir)/
11242         prefix would have led to an unwarranted failure in GNU parted.
11243         Sort after that transformation.
11244
11245 2011-03-19  Jim Meyering  <meyering@redhat.com>
11246
11247         maint.mk: fix po-file syntax-check rule
11248         * top/maint.mk (sc_po_check): Fix fatal typo in yesterday's change.
11249         Patch by Bruno Haible.
11250
11251 2011-03-19  Bruno Haible  <bruno@clisp.org>
11252
11253         socklen: Update comment.
11254         * m4/socklen.m4: Update comment about platforms.
11255
11256 2011-03-19  Paul Eggert  <eggert@cs.ucla.edu>
11257             Bruno Haible  <bruno@clisp.org>
11258
11259         inet_ntop, inet_pton: Simplify.
11260         * modules/inet_ntop (Depends-on): Remove socklen, since sys_socket is
11261         documented to provide socklen_t and we already depend on sys_socket.
11262         * modules/inet_pton (Depends-on): Likewise.
11263         * lib/arpa_inet.in.h: Adjust comment.
11264
11265 2011-03-19  Paul Eggert  <eggert@cs.ucla.edu>
11266             Bruno Haible  <bruno@clisp.org>
11267
11268         netdb: Simplify.
11269         * modules/netdb (Depends-on): Remove socklen, since sys_socket is
11270         documented to provide socklen_t and we already depend on sys_socket.
11271         * lib/netdb.in.h: Adjust comment.
11272
11273 2011-03-19  Bruno Haible  <bruno@clisp.org>
11274
11275         sys_socket, netdb: Document problem with socklen_t.
11276         * doc/posix-headers/sys_socket.texi: Mention lack of socklen_t on some
11277         platforms.
11278         * doc/posix-headers/netdb.texi: Likewise.
11279
11280 2011-03-18  Eric Blake  <eblake@redhat.com>
11281
11282         maint.mk: let po check work in VPATH build
11283         * top/maint.mk (po_file): Allow cfg.mk override.
11284         (sc_po_check): Allow VPATH use.
11285         Reported by Jiri Denemark.
11286
11287 2011-03-16  Jim Meyering  <meyering@redhat.com>
11288
11289         maint.mk: allow fine-grained syntax-check exclusion via Make variables
11290         Before, you would have had to create one .x-sc_ file per rule in order
11291         to exempt offending files.  Now, you may instead use a Make variable --
11292         usually defined in cfg.mk -- whose name identifies the affected rule.
11293         * top/maint.mk (_sc_excl): Define.
11294         (VC_LIST_EXCEPT): Use it to exclude names on a per-rule basis.
11295         (_sc_search_regexp): When not using VC_LIST_EXCEPT, exclude here, too.
11296
11297 2011-03-13  Bruno Haible  <bruno@clisp.org>
11298
11299         ignore-value tests: Avoid warnings.
11300         * tests/test-ignore-value.c (_GL_ATTRIBUTE_RETURN_CHECK): Define to
11301         empty for gcc < 3.4.
11302
11303 2011-03-13  Bruno Haible  <bruno@clisp.org>
11304
11305         passfd: Fix link error on Solaris.
11306         * modules/passfd (Description): Correct.
11307         (Depends-on): Add socketlib.
11308         (Link): New section.
11309         * modules/passfd-tests (Makefile.am): Link test-passfd with LIBSOCKET.
11310
11311 2011-03-13  Bruno Haible  <bruno@clisp.org>
11312
11313         passfd: Fix link error on AIX 5.2.
11314         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Define _LINUX_SOURCE_COMPAT.
11315
11316 2011-03-13  Bruno Haible  <bruno@clisp.org>
11317
11318         passfd: Work around bug with CMSG_FIRSTHDR on FreeBSD 6.4.
11319         * lib/sys_socket.in.h: Include <stddef.h>.
11320         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Include <stddef.h> before using
11321         CMSG_FIRSTHDR. Remove unused variable.
11322
11323 2011-03-13  Bruno Haible  <bruno@clisp.org>
11324
11325         passfd: Fix compilation error on OpenBSD.
11326         * lib/passfd.c: Include <sys/uio.h>.
11327
11328 2011-03-13  Bruno Haible  <bruno@clisp.org>
11329
11330         passfd test: Fix warnings.
11331         * tests/test-passfd.c: Include <sys/wait.h>.
11332         (main): Fix typo.
11333
11334 2011-03-13  Bruno Haible  <bruno@clisp.org>
11335
11336         passfd module, part 4, tweaks.
11337         * tests/test-passfd.c: Reorder includes.
11338         (main): Fix perror and printf calls.
11339
11340 2011-03-07  Bastien Roucariès  <roucaries.bastien@gmail.com>
11341
11342         passfd module, part 4.
11343         * modules/passfd-tests: New file.
11344         * tests/test-passfd.c: New file.
11345
11346 2011-03-13  Jim Meyering  <meyering@redhat.com>
11347
11348         Makefile: rely on GNU make; derive syntax-check rule names
11349         Rather than requiring that each sc_ rule be listed as a dependent
11350         of "check", use features of GNU make to derive the list.
11351         * Makefile (syntax-check-rules): Define.
11352         (check): Depend on the new variable, not the hard-coded list.
11353
11354 2011-03-13  Bastien Roucariès  <roucaries.bastien@gmail.com>
11355             Bruno Haible  <bruno@clisp.org>
11356
11357         passfd module, part 3.
11358         * lib/passfd.h (recvfd): Add a flags argument.
11359         * lib/passfd.c: Include <fcntl.h>, cloexec.h.
11360         (recvfd): Add a flags argument.
11361         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Test whether MSG_CMSG_CLOEXEC
11362         exists.
11363         * modules/passfd (Depends-on): Add cloexec.
11364         Suggested by Eric Blake.
11365
11366 2011-03-13  Bruno Haible  <bruno@clisp.org>
11367
11368         passfd module, part 2, tweaks.
11369         * modules/passfd (Files): Reorder.
11370         (Depends-on): Remove errno.
11371         (Include): Remove <sys/socket.h>, <sys/un.h>.
11372         * lib/passfd.h: Use a GPLv3+ header. Make C++ safe.
11373         * lib/passfd.c: Untabify. Use a GPLv3+ header. Really include the
11374         specification header. Include <sys/socket.h> always. Don't include
11375         <winsock2.h>. Use "#if HAVE_..." instead of "#ifdef HAVE_...".
11376         (sendfd): Clarify that it sets errno when it fails.
11377         (recvfd): Fix specification.
11378
11379 2011-03-07  Bastien Roucariès  <roucaries.bastien@gmail.com>
11380
11381         passfd module, part 2.
11382         * modules/passfd: New file.
11383         * lib/passfd.h: New file.
11384         * lib/passfd.c: New file.
11385
11386 2011-03-12  Bruno Haible  <bruno@clisp.org>
11387
11388         wcswidth, mbswidth: Avoid integer overflow.
11389         * lib/wcswidth.c: Include <limits.h>.
11390         * lib/wcswidth-impl.h (wcswidth): Avoid 'int' overflow.
11391         * lib/mbswidth.c: Include <limits.h>.
11392         (mbsnwidth): Avoid 'int' overflow.
11393         Reported by Jim Meyering.
11394
11395 2011-03-12  Bruno Haible  <bruno@clisp.org>
11396
11397         futimens, utimensat: Avoid endless recursion on Solaris 10.
11398         * lib/sys_stat.in.h (futimens, utimensat): Define with rpl_ prefix on
11399         Solaris.
11400         Reported by Ben Walton <bwalton@artsci.utoronto.ca> via Eric Blake
11401         in <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=8230>.
11402
11403 2011-03-11  Jim Meyering  <meyering@redhat.com>
11404
11405         maint.mk: relax a regexp to accommodate other formatting styles
11406         * top/maint.mk (sc_unmarked_diagnostics): Allow 0 or 1 space
11407         between "ngettext" and the following "(".
11408
11409 2011-03-11  Pádraig Brady <P@draigBrady.com>
11410
11411         maint.mk: suppress a false positive warning
11412         * top/maint.mk ((sc_unmarked_diagnostics): Don't warn when
11413         diagnostics are marked with ngettext.
11414
11415 2011-03-10  Eric Blake  <eblake@redhat.com>
11416
11417         wchar: add explicit dependencies, for Tru64
11418         * modules/mbmemcasecoll (Depends-on): Add wchar.
11419         * modules/mbtowc (Depends-on): Likewise.
11420         * modules/vasnprintf (Depends-on): Likewise.
11421         * modules/unistdio/u-printf-args (Depends-on): Likewise.
11422         * modules/wctomb (Depends-on): Likewise.
11423         Reported by Peter O'Gorman.
11424
11425 2011-03-08  Bruno Haible  <bruno@clisp.org>
11426
11427         passfd module, part 1, tweaks.
11428         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Update AC_REQUIRE invocation.
11429         Improve indentation. Improve AC_MSG_CHECKING messages.
11430         * m4/sockpfaf.m4 (gl_SOCKET_FAMILY_UNIX): New macro, extracted from
11431         gl_SOCKET_FAMILIES.
11432
11433 2011-03-07  Bastien Roucariès  <roucaries.bastien@gmail.com>
11434
11435         passfd module, part 1.
11436         * m4/afunix.m4: New file.
11437         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Also test for UNIX domain
11438         sockets.
11439
11440 2011-03-08  Bruno Haible  <bruno@clisp.org>
11441
11442         regex-quote: New API.
11443         * lib/regex-quote.h: Include <stdbool.h>.
11444         (struct regex_quote_spec): New type.
11445         (regex_quote_spec_posix, regex_quote_spec_gnu, regex_quote_spec_pcre):
11446         New declarations.
11447         (regex_quote_length, regex_quote_copy, regex_quote): Take a
11448         'const struct regex_quote_spec *' argument.
11449         * lib/regex-quote.c (RE_*, PCRE_*): New macros.
11450         (pcre_special): New constant.
11451         (regex_quote_spec_posix, regex_quote_spec_gnu, regex_quote_spec_pcre):
11452         New functions.
11453         (regex_quote_length, regex_quote_copy, regex_quote): Take a
11454         'const struct regex_quote_spec *' argument.
11455         * modules/regex-quote (Depends-on): Add stdbool.
11456         * tests/test-regex-quote.c (check): Update for new API. Add test for
11457         anchored results.
11458         * NEWS: Mention the API change.
11459         Reported by Reuben Thomas and Eric Blake.
11460
11461 2011-03-06  Bruno Haible  <bruno@clisp.org>
11462
11463         regex-quote: Fix creation of POSIX extended regular expressions.
11464         * lib/regex-quote.c (ere_special): Add grouping and alternation
11465         operators.
11466
11467 2011-03-05  Bruno Haible  <bruno@clisp.org>
11468
11469         doc: Improve doc regarding autopoint vs. gnulib.
11470         * doc/gnulib-tool.texi (gettextize and autopoint): Recommend to
11471         disable autopoint while running autoreconf.
11472         Suggested by Ralf Wildenhues.
11473
11474 2011-03-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
11475
11476         Update AC_OPENMP macro for Lahey compiler on GNU/Linux.
11477         * m4/openmp.m4 (AC_OPENMP): Sync from Autoconf.
11478
11479 2011-03-03  Bruce Korb  <bkorb@gnu.org>
11480
11481         parse-duration: remove xalloc.h dependency
11482         * lib/parse-duration.c (parse_period): handle NULL return from
11483         strdup instead of calling xstrdup().
11484         * modules/parse-duration: remove "xalloc" dependency
11485
11486 2011-03-03  Matthew Booth  <mbooth@redhat.com>
11487
11488         bootstrap: honor m4_base when running aclocal
11489         * build-aux/bootstrap: Fix hard-coded use of m4 directory name.
11490
11491 2011-03-02  Jim Meyering  <meyering@redhat.com>
11492
11493         getopt-gnu: relax license from LGPLv3+ to LGPLv2+
11494         * modules/getopt-gnu (License): Relax to LGPLv2+, for augeas,
11495         on request from Matt Booth.
11496
11497 2011-03-01  Eric Blake  <eblake@redhat.com>
11498
11499         test-link: work on Hurd
11500         * tests/test-link.h (test_link): Hurd rejects linking directories
11501         with EISDIR instead of the POSIX-mandated EPERM.
11502
11503 2011-02-28  Paul Eggert  <eggert@cs.ucla.edu>
11504
11505         stdio: simplify by moving files to printf-posix, sigpipe
11506         * m4/stdio_h.m4 (gl_STDIO_H): Do not require gl_ASM_SYMBOL_PREFIX,
11507         since this symbol is needed only if printf is replaced.
11508         * m4/printf-posix-rpl.m4 (gl_REPLACE_PRINTF):
11509         Require gl_ASM_SYMBOL_PREFIX.
11510         * modules/printf-posix (Files): Add m4/asm-underscore.m4.
11511         * modules/sigpipe (Files): Likewise.  Also, add m4/stdio-write.c.
11512         (Depends-on): Add 'raise'.
11513         (configure.ac): Require gl_ASM_SYMBOL_PREFIX.
11514         * modules/stdio (Files): Remove lib/stdio-write.c,
11515         m4/asm-underscore.m4.
11516         (Depends-on): Remove 'raise'.
11517
11518         stdio: simplify by moving gl_STDIN_LARGE_OFFSET to fseeko, ftello
11519         * m4/fseeko.m4 (gl_STDIN_LARGE_OFFSET): Moved here, from ...
11520         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET): ... here, because
11521         * modules/ftello (Files): Add m4/fseeko.m4, for gl_STDIN_LARGE_OFFSET.
11522
11523 2011-02-28  Bruno Haible  <bruno@clisp.org>
11524
11525         localcharset: Assume ANSI C behaviour of free().
11526         * lib/localcharset.c (get_charset_aliases): Remove NULL test before
11527         calling free().
11528         Suggested by Simon Josefsson <simon@josefsson.org>.
11529
11530 2011-02-28  Corinna Vinschen  <vinschen@redhat.com>  (tiny change)
11531             Charles Wilson  <cygwin@cwilson.fastmail.fm>  (tiny change)
11532             Bruno Haible  <bruno@clisp.org>  (tiny change)
11533
11534         On Cygwin, use /proc file system instead of win32 API.
11535         * lib/relocatable.c: On Cygwin, use file names from /proc, rather than
11536         Win32 file names.
11537         (DllMain): Simplify by removing Cygwin specific code.
11538         (find_shared_library_fullname): Use Linux specific implementation also
11539         for Cygwin.
11540         (get_shared_library_fullname): Update accordingly.
11541         * lib/progreloc.c: On Cygwin, use file names from /proc, rather than
11542         Win32 file names.
11543         (find_executable): On Cygwin, use /proc, like on Linux. Remove previous
11544         Cygwin specific code.
11545
11546 2011-02-28  Christian Rössel  <christian.roessel@gmx.de>  (tiny change)
11547             Markus Geimer  <m.geimer@fz-juelich.de>  (tiny change)
11548
11549         Fix OpenMP flag detection for various Fortran compilers.
11550         * m4/openmp.m4 (_AC_LANG_OPENMP(Fortran 77)): Use '!$'
11551         OpenMP-conditional compilation construct, to force compile
11552         failure with missing OpenMP flag.
11553         (AC_OPENMP): Add flags for Cray CCE and NEC SX compilers.
11554
11555 2011-02-25  Eric Blake  <eblake@redhat.com>
11556
11557         strstr: expand test coverage
11558         * tests/test-strstr.c (main): Add much shorter trigger.  Fix C89
11559         compilation.
11560         * tests/test-memmem.c (main): Duplicate tests.
11561         * tests/test-strcasestr.c (main): Likewise.
11562         * tests/test-c-strcasestr.c (main): Likewise.
11563
11564 2011-02-25  Jim Meyering  <meyering@redhat.com>
11565
11566         maint.mk: detect missing-NL-at-EOF, too
11567         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Adjust so that
11568         it also detects when a file lacks a newline at EOF.
11569         (require_exactly_one_NL_at_EOF_): Renamed from
11570         detect_empty_lines_at_EOF_.  I opted not to rename the rule,
11571         since people may well have .x-sc_... file names tied to the
11572         existing name.  Suggested by Eric Blake.
11573
11574 2011-02-25  Paul Eggert  <eggert@cs.ucla.edu>
11575
11576         dirname: move m4/dos.m4 functionality into lib/dosname.h
11577
11578         m4/dos.m4 needs to go.  It laboriously invokes the C compiler, and
11579         extracts symbols from it, puts them into config.h; but it's much
11580         easier to use the symbols directly.  filename.h already does this,
11581         but it disagrees with dos.m4 in some respects.  This patch
11582         introduces a different include file dosname.h that packages up
11583         dos.m4, and then later we can work on merging filename.h and
11584         dosname.h.  Applications that need only the easy-to-configure
11585         symbols should consider including dosname.h rather than dirname.h.
11586         * NEWS: Mention incompatible changes.
11587         * m4/dos.m4: Remove.
11588         * lib/dosname.h, modules/dosname: New files.
11589         * lib/dirname.h (ISSLASH, FILE_SYSTEM_PREFIX_LEN):
11590         (FILE_SYSTEM_DRIVE_PREFIX_CAN_BE_RELATIVE):
11591         (IS_ABSOLUTE_FILE_NAME, IS_RELATIVE_FILE_NAME): Move to lib/dosname.h.
11592         * lib/at-func.c, lib/at-func2.c, lib/openat.c, lib/savewd.c:
11593         Include dosname.h, not dirname.h.
11594         * lib/rmdir.c, lib/stat.c, lib/unlink.c, lib/unlinkat.c:
11595         Include dosname.h, for definitions of symbols like ISSLASH
11596         that used to be in config.h.
11597         * m4/dirname.m4 (gl_DIRNAME_LGPL): Do not require gl_AC_DOS.
11598         * m4/rmdir.m4 (gl_FUNC_RMDIR): Likewise.
11599         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
11600         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
11601         * modules/dirname-lgpl (Files): Omit m4/dos.m4.
11602         * modules/rmdir (Files): Likewise.
11603         * modules/stat (Files): Likewise.
11604         * modules/unlink (Files): Likewise.
11605         * modules/dirname-lgpl (Depends-on): Add dosname.
11606         * modules/lstat (Depends-on): Likewise.
11607         * modules/openat (Depends-on): Likewise.
11608         * modules/rmdir (Depends-on): Likewise.
11609         * modules/savewd (Depends-on): Likewise.
11610         * modules/stat (Depends-on): Likewise.
11611         * modules/unlink (Depends-on): Likewise.
11612         * modules/openat (Depends-on): Remove dirname-lgpl.
11613         * modules/savewd (Depends-on): Likewise.
11614         * tests/test-dirname.c: Do not use removed symbols like
11615         FILE_SYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR.  Instead, use
11616         the remaining symbols, e.g., ISSLASH ('\\').
11617
11618 2011-02-25  Eric Blake  <eblake@redhat.com>
11619
11620         strstr: revert patches that introduced bug and pessimization
11621         * lib/str-two-way.h: Add another reference.
11622         (two_way_short_needle, two_way_long_needle): Revert changes from
11623         2011-02-24; they pessimize search speed.
11624         (critical_factorization): Partially revert changes from
11625         2010-06-22; they violate the requirement that the left half of the
11626         needle be smaller than the period of the needle.
11627
11628 2011-02-24  Paul Eggert  <eggert@cs.ucla.edu>
11629
11630         filenamecat: remove unnecessary dependency on dirname-lgpl
11631         * modules/filenamecat (Depends-on): Remove dirname-lgpl, as there
11632         is no direct dependency, just an indirect one via filenamecat-lgpl.
11633
11634         remove: remove unnecessary use of m4/dos.m4
11635         * m4/remove.m4 (gl_FUNC_REMOVE): Don't require gl_AC_DOS; not needed.
11636         * modules/remove (FILES): Remove m4/dos.m4.
11637
11638         * lib/openat-proc.c: Don't include dirname.h; not needed.
11639
11640         backupfile: remove unnecessary use of m4/dos.m4
11641         * m4/backupfile.m4 (gl_BACKUPFILE): Don't require gl_AC_DOS; none
11642         of its symbols are used by the backupfile code.  backupfile.c does
11643         use a symbol HAVE_DOS_FILE_NAMES, but that symbol is meant only
11644         for the rare case of programs that want all their backup file
11645         names to live within 8+3 limits, and dos.m4 doesn't address that.
11646         * modules/backupfile (Files): Remove m4/dos.m4.
11647
11648 2011-02-24  Jim Meyering  <meyering@redhat.com>
11649
11650         strstr: fix a bug whereby strstr would mistakenly return NULL
11651         * lib/str-two-way.h (two_way_short_needle): Correct off-by-one error
11652         in period calculation.
11653         (two_way_long_needle): Likewise.
11654         The original problem was reported by Mike Stump in
11655         http://thread.gmane.org/gmane.comp.sysutils.autoconf.bugs/7834
11656         Ralf Wildenhues provided the short needle and haystack.
11657         * tests/test-strstr.c: Add Ralf's test case to trigger the bug.
11658         Add a more involved test to trigger the bug in two_way_long_needle.
11659
11660 2011-02-24  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
11661
11662         gnulib-tool: remove use of bold display in help screen
11663         * gnulib-tool (func_usage): Do not use bold display anymore in the
11664         help screen.  That was just meant to be a temporary emphasis for a
11665         backward-incompatible change.
11666
11667 2011-02-23  Bruno Haible  <bruno@clisp.org>
11668
11669         Fix misindentation of preprocessor directives.
11670         * lib/argp-namefrob.h: Reindent preprocessor directives.
11671         * lib/getopt_int.h (struct _getopt_data): Likewise.
11672         * lib/progreloc.c (maybe_executable, find_executable): Likewise.
11673         * lib/vasnprintf.c (decode_long_double): Likewise.
11674         * tests/test-argmatch.c: Insert blank lines, for clarity.
11675         * tests/test-exclude.c: Likewise.
11676
11677 2011-02-22  Bruno Haible  <bruno@clisp.org>
11678
11679         ioctl: Fix for MacOS X in 64-bit mode.
11680         * lib/ioctl.c (rpl_ioctl): Zero-extend, not sign-extend, the request
11681         value.
11682         Suggested by Eric Blake.
11683         Reported by Markus Gothe <nietzsche@lysator.liu.se>.
11684
11685 2011-02-22  Jim Meyering  <meyering@redhat.com>
11686
11687         maint: sc_cpp_indent_check: remove the "only in lib/" restriction
11688         * Makefile (sc_cpp_indent_check): Don't limit the check to files
11689         in lib/.
11690
11691 2011-02-22  Eric Blake  <eblake@redhat.com>
11692
11693         maint: avoid any CDPATH issue
11694         * Makefile (sc_cpp_indent_check): Anchor cd argument.
11695
11696         maint: adjust cpp indentation for my modules, as well
11697         * Makefile (sc_cpp_indent_check): Add my name.
11698         * lib/fbufmode.c: Filter through cppi.
11699         * lib/fpurge.c: Likewise.
11700         * lib/freadable.c: Likewise.
11701         * lib/freading.c: Likewise.
11702         * lib/fwritable.c: Likewise.
11703         * lib/fwriting.c: Likewise.
11704         * lib/sigaction.c: Likewise.
11705
11706 2011-02-22  Jim Meyering  <meyering@redhat.com>
11707
11708         maint: adjust cpp indentation to reflect nesting depth
11709         I.e., in a block of code that begins with an unnested "#if",
11710         put one space between the "#" in column 1 and following token.
11711         For example,
11712         -#include <sys/vfs.h>
11713         +# include <sys/vfs.h>
11714         Do this only in .c files that are part of a module I maintain.
11715         * lib/linkat.c: Filter through cppi.
11716         * lib/nanosleep.c: Likewise.
11717         * lib/openat.c: Likewise.
11718         * lib/openat-die.c: Likewise.
11719         * lib/dup3.c: Likewise.
11720         * lib/fchownat.c: Likewise.
11721         * lib/flock.c: Likewise.
11722         * lib/fsync.c: Likewise.
11723         * lib/fts.c: Likewise.
11724         * lib/getpass.c: Likewise.
11725         * lib/gettimeofday.c: Likewise.
11726         * lib/userspec.c: Likewise.
11727         * Makefile (sc_cpp_indent_check): New rule, to check this.
11728
11729 2011-02-22  Bruno Haible  <bruno@clisp.org>
11730
11731         New module 'wctomb'.
11732         * lib/stdlib.in.h (wctomb): New declaration.
11733         * lib/wctomb.c: New file.
11734         * lib/wctomb-impl.h: New file.
11735         * m4/wctomb.m4: New file.
11736         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_WCTOMB,
11737         REPLACE_WCTOMB.
11738         * modules/stdlib (Makefile.am): Substitute GNULIB_WCTOMB,
11739         REPLACE_WCTOMB.
11740         * modules/wctomb: New file.
11741         * tests/test-stdlib-c++.cc: Test signature of wctomb.
11742         * doc/posix-functions/wctomb.texi: Mention the new module.
11743         * modules/wctob (Depends-on): Add wctomb.
11744
11745 2011-02-22  Bruno Haible  <bruno@clisp.org>
11746
11747         New module 'mbtowc'.
11748         * lib/stdlib.in.h (mbtowc): New declaration.
11749         * lib/mbtowc.c: New file.
11750         * lib/mbtowc-impl.h: New file, from libutf8 with modifications.
11751         * m4/mbtowc.m4: New file.
11752         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_MBTOWC,
11753         REPLACE_MBTOWC.
11754         * modules/stdlib (Makefile.am): Substitute GNULIB_MBTOWC,
11755         REPLACE_MBTOWC.
11756         * modules/mbtowc: New file.
11757         * tests/test-stdlib-c++.cc: Test signature of mbtowc.
11758         * doc/posix-functions/mbtowc.texi: Mention the new module.
11759         * modules/btowc (Depends-on): Add mbtowc.
11760
11761 2011-02-22  Bruno Haible  <bruno@clisp.org>
11762
11763         wcrtomb: Add more tests for native Windows platforms.
11764         * tests/test-wcrtomb-w32-1.sh: New file.
11765         * tests/test-wcrtomb-w32-2.sh: New file.
11766         * tests/test-wcrtomb-w32-3.sh: New file.
11767         * tests/test-wcrtomb-w32-4.sh: New file.
11768         * tests/test-wcrtomb-w32-5.sh: New file.
11769         * tests/test-wcrtomb-w32.c: New file.
11770         * modules/wcrtomb-tests (Files): Add them.
11771         (Makefile.am): Arrange to run these tests.
11772         * tests/test-wcrtomb-w32-6.sh: New file, currently unused.
11773         * tests/test-wcrtomb-w32-7.sh: New file, currently unused.
11774
11775 2011-02-20  Bruno Haible  <bruno@clisp.org>
11776
11777         wcrtomb: Enhance test.
11778         * tests/test-wcrtomb.c (main): Add test against bug with NULL argument.
11779
11780 2011-02-20  Bruno Haible  <bruno@clisp.org>
11781
11782         mbrtowc: Tiny optimization.
11783         * lib/mbrtowc.c (mbrtowc): Delay pstate assignment until it is needed.
11784
11785 2011-02-20  Jim Meyering  <meyering@redhat.com>
11786
11787         test-exclude.c: remove unmatched #endif
11788         * tests/test-exclude.c: Remove stray #endif, left over from
11789         the change of a week ago.
11790
11791 2011-02-19  Jim Meyering  <meyering@redhat.com>
11792
11793         git-version-gen: skip "-dirty" check when appropriate
11794         * build-aux/git-version-gen: Don't run any git commands when the
11795         version string comes from .tarball-version.  Prior to this, we
11796         would run git update-index --refresh even from a just-unpacked
11797         tarball directory, and that could affect a .git/ directory in a
11798         parent of the build directory.  Reported by Mike Frysinger.
11799
11800 2011-02-19  Bruno Haible  <bruno@clisp.org>
11801
11802         unictype/property-byname: Reduce the size of the 'data' segment.
11803         * lib/unictype/pr_byname.gperf: Add gperf option '%pic'.
11804
11805 2011-02-19  Bruno Haible  <bruno@clisp.org>
11806
11807         unictype/scripts: Reduce the size of the 'data' segment.
11808         * lib/gen-uni-tables.c (output_scripts_byname): Emit gperf option
11809         '%pic'.
11810         * lib/unictype/scripts_byname.gperf: Regenerated.
11811
11812 2011-02-19  Bruno Haible  <bruno@clisp.org>
11813
11814         stdint: Update documentation.
11815         * doc/posix-headers/stdint.texi: Mention WCHAR_MIN, WCHAR_MAX problem.
11816
11817 2011-02-18  Paul Eggert  <eggert@cs.ucla.edu>
11818
11819         stdint: omit redundant check for wchar.h
11820         * m4/stdint.m4 (gl_STDINT_H): The earlier part of this macro now
11821         always tests whether wchar.h exists, so remove the now-redundant test.
11822
11823 2011-02-18  Bruno Haible  <bruno@clisp.org>
11824
11825         stdint: Cut dependency to module 'wchar'.
11826         * lib/stdint.in.h: Include wchar.h only when HAVE_WCHAR_H is 1. Also
11827         include the necessary prerequisites.
11828         * m4/stdint.m4 (gl_STDINT_H): Test whether wchar.h exists.
11829         * modules/stdint (Depends-on): Remove wchar.
11830         (Makefile.am): Substitute HAVE_WCHAR_H.
11831         This reverts part of a 2007-01-06 commit. Reported by Paul Eggert.
11832
11833 2011-02-18  Eric Blake  <eblake@redhat.com>
11834
11835         longlong: skip, rather than fail, on cross-compilation
11836         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Avoid aborting configure
11837         when cross-compiling; regression from 2011-02-16.
11838
11839 2011-02-17  Paul Eggert  <eggert@cs.ucla.edu>
11840
11841         * NEWS: Mention 2011-02-08 change to stdlib.
11842
11843 2011-02-17  Bruno Haible  <bruno@clisp.org>
11844
11845         getloadavg: Add comments about platforms.
11846         * m4/getloadavg.m4: Add comment.
11847         * lib/getloadavg.c: Likewise.
11848
11849 2011-02-17  Bruno Haible  <bruno@clisp.org>
11850
11851         getloadavg: Fix link error on Solaris 2.6.
11852         * modules/getloadavg (Link): New section.
11853         * modules/getloadavg-tests (Makefile.am): Use GETLOADAVG_LIBS for
11854         linking test-getloadavg.
11855         * doc/glibc-functions/getloadavg.texi: Mention that Solaris 2.6 lacks
11856         getloadavg.
11857
11858 2011-02-17  Paul Eggert  <eggert@cs.ucla.edu>
11859
11860         * lib/getloadavg.c (getloadavg) [sgi]: Make ldav_off of type ptrdiff_t.
11861         It was 'int', but this doesn't match the IRIX 6.5 manual.
11862         Suggested by Bruno Haible in
11863         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00207.html>.
11864
11865 2011-02-17  Bruno Haible  <bruno@clisp.org>
11866
11867         havelib: Fix comments.
11868         * m4/lib-link.m4 (AC_LIB_RPATH): Update comments after 2007-01-02
11869         change.
11870
11871 2011-02-17  Bruno Haible  <bruno@clisp.org>
11872
11873         havelib: Update config.rpath.
11874         * build-aux/config.rpath: Update to match libtool.m4 from libtool-2.4.
11875
11876 2011-02-17  Bruno Haible  <bruno@clisp.org>
11877
11878         getloadavg test: Add some plausibility checks.
11879         * tests/test-getloadavg.c (check_avg): Print a warning when the value
11880         is improbable.
11881
11882 2011-02-16  Eric Blake  <eblake@redhat.com>
11883
11884         maintainer-makefile: make syntax-check a no-op from tarballs
11885         * top/maint.mk (no-vc-detected): New rule.
11886         (local-checks-available): Use it to avoid hanging if someone tries
11887         'make syntax-check' from a tarball.  Also append to any non-syntax
11888         checks already defined in cfg.mk.
11889
11890 2011-02-16  Paul Eggert  <eggert@cs.ucla.edu>
11891
11892         longlong: tune, particularly for common case of c99
11893
11894         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Don't bother compiling
11895         or running anything if c99, or if unsigned long long int does not
11896         work.  In either case, we know the answer without further tests.
11897         Do not compile _AC_TYPE_LONG_LONG_SNIPPET twice.  Instead, compile
11898         it at most once, and use its results for both long long int and
11899         unsigned long long int.  This is more likely to be efficient in
11900         the common case where the program wants to check for both long
11901         long int and unsigned long long int.
11902         (AC_TYPE_UNSIGNED_LONG_LONG_INT): Don't bother compiling if c99,
11903         since the answer is already known.
11904
11905 2011-02-15  Paul Eggert  <eggert@cs.ucla.edu>
11906
11907         getloadavg: set errno
11908         * lib/getloadavg.c: Set errno when returning -1.  If no other
11909         error number looks appropriate, set it to ENOSYS if the getloadavg
11910         looks like it can't possibly ever work, ENOTSUP otherwise.
11911         Suggested by Bruno Haible in
11912         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00187.html>.
11913
11914         getloadavg: trim unused parts and speed up 'configure'
11915         * NEWS: Document this.
11916         * lib/getloadavg.c: Ignore HAVE_GETLOADAVG; this file is now
11917         always compiled if getloadavg is absent.
11918         Move test code to ...
11919         * tests/test-getloadavg.c: New file, containing previous
11920         contents of test from lib/getloadavg.c.  It also contains
11921         suggestions by Bruno Haible in
11922         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00186.html>.
11923         * modules/getloadavg-tests: New file.
11924         * m4/getloadavg.m4 (gl_GETLOADAVG): Do not check for getloadavg twice.
11925         Do tests in the same order as they're needed for getloadavg.c.
11926         Omit setgid-related tests that generate symbols KMEM_GROUP,
11927         NEET_SETGID, GETLOADAVG_PRIVILEGED; nobody seems to use those any more.
11928         Do only the tests that are needed to see whether the system has
11929         getloadavg, moving the other tests into ...
11930         (gl_PREREQ_GETLOADAVG): ... here.  Do not define obsolete symbol
11931         NLIST_NAME_UNION; nobody should be using it.  Do not define
11932         symbols C_GETLOADAVG and HAVE_GETLOADAVG; they're no longer
11933         relevant, as the user of this module shouldn't care how getloadavg
11934         is implemented.
11935
11936         getloadavg: omit unused var
11937         * lib/getloadavg.c (getloadavg): Omit unused local variable.
11938
11939 2011-02-15  Jim Meyering  <meyering@redhat.com>
11940
11941         doc: update users.txt
11942         * users.txt: Update iwhd's URL.
11943
11944 2011-02-13  Bruno Haible  <bruno@clisp.org>
11945
11946         Consistent macro naming for macros that use GCC __attribute__.
11947         * lib/di-set.h (_GL_ATTRIBUTE_NONNULL): Renamed from
11948         _ATTRIBUTE_NONNULL_.
11949         * lib/ino-map.h (_GL_ATTRIBUTE_NONNULL): Likewise.
11950         * lib/hash.h (_GL_ATTRIBUTE_WUR): Renamed from ATTRIBUTE_WUR.
11951         * lib/ignore-value.h (_GL_ATTRIBUTE_DEPRECATED): Renamed from
11952         ATTRIBUTE_DEPRECATED.
11953         * lib/openat.h (_GL_ATTRIBUTE_NORETURN): Renamed from
11954         ATTRIBUTE_NORETURN.
11955         * lib/sigpipe-die.h (_GL_ATTRIBUTE_NORETURN): Likewise.
11956         * lib/xmemdup0.h (_GL_ATTRIBUTE_NORETURN): Likewise.
11957         * lib/xstrtol.h (_GL_ATTRIBUTE_NORETURN): Likewise.
11958         * lib/xalloc.h (_GL_ATTRIBUTE_NORETURN): Likewise.
11959         (_GL_ATTRIBUTE_MALLOC): Renamed from ATTRIBUTE_MALLOC.
11960         (_GL_ATTRIBUTE_ALLOC_SIZE): Renamed from ATTRIBUTE_ALLOC_SIZE.
11961         * lib/version-etc.h (_GL_ATTRIBUTE_SENTINEL): Renamed from
11962         ATTRIBUTE_SENTINEL.
11963         * lib/safe-alloc.h (_GL_ATTRIBUTE_RETURN_CHECK): Renamed from
11964         ATTRIBUTE_RETURN_CHECK.
11965         * tests/test-ignore-value.c (_GL_ATTRIBUTE_RETURN_CHECK): Likewise.
11966         * tests/test-argmatch.c (_GL_ATTRIBUTE_NORETURN): Renamed from
11967         ATTRIBUTE_NORETURN.
11968         * tests/test-exclude.c (_GL_ATTRIBUTE_NORETURN): Likewise.
11969         Reported by Paul Eggert.
11970
11971 2011-02-13  Bruno Haible  <bruno@clisp.org>
11972
11973         Don't interfere with a program's definition of __attribute__.
11974         * lib/argp.h (__attribute__): Remove definition.
11975         (_GL_ATTRIBUTE_FORMAT): New macro.
11976         (argp_error, __argp_error, argp_failure, __argp_failure): Use it.
11977         * lib/argp-fmtstream.h (__attribute__): Remove definition.
11978         (_GL_ATTRIBUTE_FORMAT): New macro.
11979         (__argp_fmtstream_printf, argp_fmtstream_printf): Use it.
11980         * lib/argp-help.c (hol_entry_long_iterate): Use __attribute__ only for
11981         GCC 3 or newer.
11982         * lib/error.h (__attribute__): Remove definition.
11983         (_GL_ATTRIBUTE_FORMAT): New macro.
11984         (error, error_at_line): Use it.
11985         * lib/hash.h (__attribute__): Remove definition.
11986         (ATTRIBUTE_WUR): Update definition. Define always.
11987         * lib/openat.h (__attribute__): Remove definition.
11988         (ATTRIBUTE_NORETURN): Update definition. Define always.
11989         * lib/sigpipe-die.h (__attribute__): Remove definition.
11990         (ATTRIBUTE_NORETURN): Update definition. Define always.
11991         * lib/vasnprintf.h (__attribute__): Remove definition.
11992         (_GL_ATTRIBUTE_FORMAT): New macro.
11993         (asnprintf, vasnprintf): Use it.
11994         * lib/xalloc.h (__attribute__): Remove definition.
11995         (ATTRIBUTE_NORETURN): Update definition. Define always.
11996         (ATTRIBUTE_MALLOC, ATTRIBUTE_ALLOC_SIZE): Define always.
11997         * lib/xmemdup0.h (__attribute__): Remove definition.
11998         (ATTRIBUTE_NORETURN): Update definition. Define always.
11999         * lib/xprintf.h (__attribute__): Remove definition.
12000         (_GL_ATTRIBUTE_FORMAT): New macro.
12001         (xprintf, xvprintf, xfprintf, xvfprintf): Use it.
12002         * lib/xstrtol.h (__attribute__): Remove definition.
12003         (ATTRIBUTE_NORETURN): Update definition. Define always.
12004         * lib/xvasprintf.h (__attribute__): Remove definition.
12005         (_GL_ATTRIBUTE_FORMAT): New macro.
12006         (xasprintf, xvasprintf): Use it.
12007         * tests/test-argmatch.c (__attribute__): Remove definition.
12008         (ATTRIBUTE_NORETURN): Update definition. Define always.
12009         * tests/test-exclude.c (__attribute__): Remove definition.
12010         (ATTRIBUTE_NORETURN): Update definition. Define always.
12011         Reported by Paul Eggert.
12012
12013 2011-02-13  Bruno Haible  <bruno@clisp.org>
12014
12015         mbrtowc: Add more tests for native Windows platforms.
12016         * tests/test-mbrtowc-w32-1.sh: New file.
12017         * tests/test-mbrtowc-w32-2.sh: New file.
12018         * tests/test-mbrtowc-w32-3.sh: New file.
12019         * tests/test-mbrtowc-w32-4.sh: New file.
12020         * tests/test-mbrtowc-w32-5.sh: New file.
12021         * tests/test-mbrtowc-w32.c: New file.
12022         * modules/mbrtowc-tests (Files): Add them.
12023         (Makefile.am): Arrange to run these tests.
12024         * tests/test-mbrtowc-w32-6.sh: New file, currently unused.
12025         * tests/test-mbrtowc-w32-7.sh: New file, currently unused.
12026
12027 2011-02-13  Bruno Haible  <bruno@clisp.org>
12028
12029         mbrtowc: Work around native Windows bug.
12030         * m4/mbrtowc.m4 (gl_MBRTOWC_RETVAL): Detect native Windows bug. Use the
12031         guess when no suitable locale for testing was found.
12032         * doc/posix-functions/mbrtowc.texi: Mention the native Windows bug.
12033
12034 2011-02-13  Bruno Haible  <bruno@clisp.org>
12035
12036         mbsinit: Work around mingw bug.
12037         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Replace mbsinit also on mingw.
12038         * lib/mbsinit.c (mbsinit): Provide an alternate definition for native
12039         Windows.
12040         * doc/posix-functions/mbsinit.texi: Mention the mingw bug.
12041
12042 2011-02-13  Bruno Haible  <bruno@clisp.org>
12043
12044         mbsinit: Don't crash for a NULL argument.
12045         * lib/mbsinit.c (mbsinit): When the argument is NULL, return 1.
12046         * tests/test-mbsinit.c (mbsinit): Check this behaviour.
12047
12048 2011-02-13  Bruno Haible  <bruno@clisp.org>
12049
12050         Don't interfere with a program's definition of __attribute__.
12051         * lib/stdio.in.h (__attribute__): Remove definition.
12052         (_GL_ATTRIBUTE_FORMAT, _GL_ATTRIBUTE_FORMAT_PRINTF): New macros.
12053         (dprintf, fprintf, obstack_printf, obstack_printf, obstack_vprintf,
12054         printf, snprintf, sprintf, asprintf, vasprintf, vdprintf, vfprintf,
12055         vsnprintf, vsprintf): Use _GL_ATTRIBUTE_FORMAT_PRINTF.
12056         * lib/string.in.h (__attribute__): Remove definition.
12057         Reported by Paul Eggert.
12058
12059 2011-02-12  Paul Eggert  <eggert@cs.ucla.edu>
12060
12061         stdlib: don't get in the way of non-GCC __attribute__
12062         See thread starting at
12063         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00161.html>.
12064         Revert previous stdlib change, installing the following instead:
12065         * lib/stdlib.in.h (__attribute__): Remove.  We do not want
12066         to get in the way of a non-GCC compiler that supports __attribute__.
12067         (_GL_ATTRIBUTE_RETURN): New macro.
12068         (_Exit): Use it instead of __attribute__.
12069
12070 2011-02-12  Bruno Haible  <bruno@clisp.org>
12071
12072         quotearg test: Avoid test failure on mingw.
12073         * tests/test-quotearg.sh: Convert the locale identifier from native
12074         Windows syntax to Unix syntax.
12075
12076 2011-02-12  Bruno Haible  <bruno@clisp.org>
12077
12078         setlocale: Prefer gnulib's override over libintl's override.
12079         * lib/locale.in.h (GNULIB_defined_setlocale): New macro.
12080         * lib/gettext.h (setlocale): Redefine to rpl_setlocale if
12081         GNULIB_defined_setlocale is set.
12082
12083 2011-02-12  Paul Eggert  <eggert@cs.ucla.edu>
12084
12085         stdlib: support non-GCC __attribute__
12086
12087         Fix a serious and tricky problem encountered when attempting to
12088         add the getloadavg module to Emacs.  Emacs worked fine on RHEL
12089         5.5, but it crashed due to memory corruption on Solaris 10 with
12090         Sun C 5.11.  Emacs normally ORs 3-bit tags into their low-order
12091         bits that are otherwise zero.  This tagging is optional inside
12092         Emacs but is preferred and is used when __attribute__ ((__aligned
12093         (8))) works, as it does with both recent-enough GCC and with Sun C
12094         5.11.  However, Sun C 5.11 is not GCC and does not #define
12095         __GNUC__ and __GNUC_MINOR__.
12096
12097         When I added the getloadavg module to Emacs, it brought in
12098         stdlib.in.h, which contained this fragment:
12099
12100            #ifndef __attribute__
12101            # if __GNUC__ < 2 || (__GNUC__ == 2 && __GNUC_MINOR__ < 8)
12102            #  define __attribute__(Spec)   /* empty */
12103            # endif
12104            #endif
12105
12106         When files that include <stdlib.h> were compiled with Sun C 5.11,
12107         the above code disabled __attribute__ ((__aligned (8))), which
12108         caused variables to not be properly aligned, which eventually led
12109         to the pointer corruption mentioned above.  (This was a bit hard
12110         to diagnose, unfortunately.)
12111
12112         Several "#define __attribute__(X) /* empty */" code snippets need
12113         to be eradicated from Gnulib to work with non-GCC compilers that
12114         support __attribute__.  The Autoconf way to do this is to test for
12115         each kind of attribute that we want support for, and selectively
12116         enable that in source code.
12117
12118         Fix this problem just for stdlib.h, by adding a test for the
12119         __noreturn__ attribute, and change stdlib.in.h to use that test
12120         when needed.  This technique can be easily generalized to the
12121         other *.in.h files and attributes, and a similar technique can be
12122         used for *.h and *.c files.  This patch is enough to solve the
12123         problem for Emacs + getloadavg, and I thought I'd publish it for
12124         feedback before undertaking further, similar fixes in other
12125         modules.
12126
12127         This patch does not arrange to #define HAVE_ATTRIBUTE_NORETURN
12128         because it's not needed for stdlib.h.  It merely substitutes the
12129         value directly into stdlib.h.  We may well need to #define it, or
12130         similar symbols, for other modules, but it's nice to also have an
12131         option to not #define it for applications like Emacs that do not
12132         need it.
12133
12134         * lib/stdlib.in.h (__attribute__): Do not #define.
12135         (_GL_ATTRIBUTE_NORETURN): New macro, which in stdlib.h needs to
12136         be defined only if the _Exit module is also used.
12137         * m4/_Exit.m4 (gl_FUNC__EXIT): Require gl_ATTRIBUTE_NORETURN.
12138         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Subst
12139         HAVE_ATTRIBUTE_NORETURN and default it to 1, its value on GNU
12140         platforms.
12141         * modules/_Exit (Files): Add m4/attribute.m4.
12142         * modules/stdlib (Makefile.am): Substitute HAVE_ATTRIBUTE_NORETURN.
12143         * m4/attribute.m4: New file.
12144
12145 2011-02-12  Bruno Haible  <bruno@clisp.org>
12146
12147         wcsrtombs: Work around bug on native Windows.
12148         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_NULL): Test against mingw bug.
12149         * lib/wcsrtombs.c (rpl_wcsrtombs): When dest is NULL, pass SIZE_MAX
12150         instead of len.
12151         * doc/posix-functions/wcsrtombs.texi: Document mingw bug.
12152
12153 2011-02-12  Bruno Haible  <bruno@clisp.org>
12154
12155         mbsrtowcs: Work around bug on native Windows.
12156         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Require gt_LOCALE_FR. Test
12157         against mingw bug.
12158         * doc/posix-functions/mbsrtowcs.texi: Document mingw bug.
12159
12160 2011-02-12  Bruno Haible  <bruno@clisp.org>
12161
12162         Avoid setlocale bugs in tests.
12163         * modules/btowc (Dependencies): Add setlocale.
12164         * modules/c-strcase (Dependencies): Likewise.
12165         * modules/mbmemcasecmp (Dependencies): Likewise.
12166         * modules/mbmemcasecoll (Dependencies): Likewise.
12167         * modules/mbrtowc (Dependencies): Likewise.
12168         * modules/mbscasecmp (Dependencies): Likewise.
12169         * modules/mbscasestr (Dependencies): Likewise.
12170         * modules/mbschr (Dependencies): Likewise.
12171         * modules/mbscspn (Dependencies): Likewise.
12172         * modules/mbsinit (Dependencies): Likewise.
12173         * modules/mbsncasecmp (Dependencies): Likewise.
12174         * modules/mbsnrtowcs (Dependencies): Likewise.
12175         * modules/mbspbrk (Dependencies): Likewise.
12176         * modules/mbspcasecmp (Dependencies): Likewise.
12177         * modules/mbsrchr (Dependencies): Likewise.
12178         * modules/mbsrtowcs (Dependencies): Likewise.
12179         * modules/mbsspn (Dependencies): Likewise.
12180         * modules/mbsstr (Dependencies): Likewise.
12181         * modules/nl_langinfo (Dependencies): Likewise.
12182         * modules/quotearg (Dependencies): Likewise.
12183         * modules/unicase/locale-language (Dependencies): Likewise.
12184         * modules/unicase/ulc-casecmp (Dependencies): Likewise.
12185         * modules/unicase/ulc-casecoll (Dependencies): Likewise.
12186         * modules/unigbrk/ulc-grapheme-breaks (Dependencies): Likewise.
12187         * modules/unistdio/u8-vasnprintf (Dependencies): Likewise.
12188         * modules/unistdio/u16-vasnprintf (Dependencies): Likewise.
12189         * modules/unistdio/u32-vasnprintf (Dependencies): Likewise.
12190         * modules/unistdio/ulc-vasnprintf (Dependencies): Likewise.
12191         * modules/uniwbrk/ulc-wordbreaks (Dependencies): Likewise.
12192         * modules/vasnprintf-posix (Dependencies): Likewise.
12193         * modules/wcrtomb (Dependencies): Likewise.
12194         * modules/wcsnrtombs (Dependencies): Likewise.
12195         * modules/wcsrtombs (Dependencies): Likewise.
12196
12197 2011-02-12  Bruno Haible  <bruno@clisp.org>
12198
12199         setlocale: Workaround native Windows bug.
12200         * lib/setlocale.c (rpl_setlocale): On native Windows, when setlocale
12201         succeeds but sets LC_CTYPE to "C", report a failure.
12202         * tests/test-setlocale2.sh: New file.
12203         * tests/test-setlocale2.c: New file.
12204         * modules/setlocale-tests (Files): Add the new files.
12205         (Makefile.am): Enable test-setlocale2.sh test.
12206         * doc/posix-functions/setlocale.texi: Mention workaround.
12207
12208 2011-02-11  Bruno Haible  <bruno@clisp.org>
12209
12210         Tests for module 'setlocale'.
12211         * modules/setlocale-tests: New file.
12212         * tests/test-setlocale1.sh: New file.
12213         * tests/test-setlocale1.c: New file.
12214
12215         New module 'setlocale'.
12216         * lib/locale.in.h (setlocale): New declaration.
12217         * lib/setlocale.c: New file, based on
12218         gettext/gettext-runtime/intl/setlocale.c.
12219         * m4/setlocale.m4: New file.
12220         * m4/locale_h.m4 (gl_LOCALE_H): Test whether setlocale is declared.
12221         (gl_LOCALE_H_DEFAULTS): Initialize GNULIB_SETLOCALE, REPLACE_SETLOCALE.
12222         * modules/locale (Makefile.am): Substitute GNULIB_SETLOCALE,
12223         REPLACE_SETLOCALE.
12224         * modules/setlocale: New file.
12225         * tests/test-locale-c++.cc: Test the declaration of setlocale.
12226         * doc/posix-functions/setlocale.texi: Mention the new module.
12227
12228 2011-02-11  Bruno Haible  <bruno@clisp.org>
12229
12230         Prepare for locale dependent tests on mingw.
12231         * m4/locale-ar.m4 (gt_LOCALE_AR): On native Windows, don't try "ar"
12232         because it has the wrong locale encoding.
12233         * m4/locale-fr.m4 (gt_LOCALE_FR): On native Windows, try
12234         French_France.1252 instead of "fr".
12235         (gt_LOCALE_FR_UTF8): On native Windows, try French_France.65001.
12236         * m4/locale-ja.m4 (gt_LOCALE_JA): On native Windows, don't try "ja"
12237         because it has the wrong locale encoding.
12238         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Require AC_CANONICAL_HOST. On
12239         native Windows, try Turkish_Turkey.65001.
12240         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): On native Windows, try
12241         Chinese_China.54936.
12242
12243         Prepare for locale dependent tests on mingw.
12244         * m4/locale-ar.m4 (gt_LOCALE_AR): On native Windows, call setlocale
12245         differently.
12246         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Likewise.
12247         * m4/locale-ja.m4 (gt_LOCALE_JA): Likewise.
12248         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
12249         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
12250
12251 2011-02-11  Eric Blake  <eblake@redhat.com>
12252
12253         strptime: avoid compiler warnings
12254         * lib/strptime.c (__strptime_internal) [!_NL_CURRENT]: Avoid
12255         compiler warnings about dead code.
12256         Reported by Daniel P. Berrange.
12257
12258 2011-02-11  Thien-Thi Nguyen  <ttn@gnuvola.org>
12259
12260         doc: update users.txt
12261         * users.txt: Add rcs.
12262
12263 2011-02-10  John W. Eaton  <jwe@gnu.org>
12264
12265         doc: update users.txt
12266         * users.txt: Add octave.
12267
12268 2011-02-10  Jim Meyering  <meyering@redhat.com>
12269
12270         doc: update users.txt
12271         * users.txt: Add iwhd.
12272
12273 2011-02-09  Bruno Haible  <bruno@clisp.org>
12274
12275         gnulib-tool: Make copyright notice adjustment more robust.
12276         * gnulib-tool (func_import): In sed_transform_main_lib_file,
12277         sed_transform_build_aux_file, sed_transform_testsrelated_lib_file,
12278         allow a line break to occur after "GNU" in "GNU [Lesser] General Public
12279         License".
12280         Reported by Glenn Morris <rgm@gnu.org> via Paul Eggert.
12281
12282 2011-02-06  Bruno Haible  <bruno@clisp.org>
12283
12284         New module 'towctrans'.
12285         * modules/towctrans: New file.
12286         * lib/wctype.in.h (towctrans): New declaration.
12287         * lib/towctrans.c: New file.
12288         * lib/towctrans-impl.h: New file.
12289         * m4/towctrans.m4: New file.
12290         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether towctrans is declared.
12291         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_TOWCTRANS.
12292         * modules/wctype-h (Makefile.am): Substitute GNULIB_TOWCTRANS.
12293         * tests/test-wctype-h-c++.cc: Test the declaration of towctrans.
12294         * doc/posix-functions/towctrans.texi: Mention the new module.
12295
12296 2011-02-06  Bruno Haible  <bruno@clisp.org>
12297
12298         New module 'wctrans'.
12299         * modules/wctrans: New file.
12300         * lib/wctype.in.h (wctrans): New declaration.
12301         * lib/wctrans.c: New file.
12302         * lib/wctrans-impl.h: New file.
12303         * m4/wctrans.m4: New file.
12304         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether wctrans is declared.
12305         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_WCTRANS.
12306         * modules/wctype-h (Makefile.am): Substitute GNULIB_WCTRANS.
12307         * tests/test-wctype-h-c++.cc: Test the declaration of wctrans.
12308         * doc/posix-functions/wctrans.texi: Mention the new module.
12309
12310 2011-02-06  Bruno Haible  <bruno@clisp.org>
12311
12312         New module 'iswctype'.
12313         * modules/iswctype: New file.
12314         * lib/wctype.in.h (iswctype): New declaration.
12315         * lib/iswctype.c: New file.
12316         * lib/iswctype-impl.h: New file.
12317         * m4/iswctype.m4: New file.
12318         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether iswctype is declared.
12319         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_ISWCTYPE.
12320         * modules/wctype-h (Makefile.am): Substitute GNULIB_ISWCTYPE.
12321         * tests/test-wctype-h-c++.cc: Test the declaration of iswctype.
12322         * doc/posix-functions/iswctype.texi: Mention the new module and the
12323         HP-UX 11.00 problem.
12324
12325 2011-02-06  Bruno Haible  <bruno@clisp.org>
12326
12327         New module 'wctype'.
12328         * modules/wctype: Change to represent the wctype() substitute.
12329         * lib/wctype.in.h (wctype): New declaration.
12330         * lib/wctype.c: New file.
12331         * lib/wctype-impl.h: New file.
12332         * m4/wctype.m4: New file.
12333         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether wctype is declared.
12334         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_WCTYPE.
12335         * modules/wctype-h (Makefile.am): Substitute GNULIB_WCTYPE.
12336         * tests/test-wctype-h-c++.cc: Test the declaration of wctype.
12337         * doc/posix-functions/wctype.texi: Mention the new module and the
12338         HP-UX 11.00 problem.
12339
12340 2011-02-06  Bruno Haible  <bruno@clisp.org>
12341
12342         wctype-h: Ensure wctype_t and wctrans_t are defined.
12343         * lib/wctype.in.h (wctype_t, wctrans_t): New type declarations.
12344         * m4/wctype_h.m4 (gl_WCTYPE_H): Determine HAVE_WCTYPE_T, HAVE_WCTRANS_T.
12345         (gl_WCTYPE_H_DEFAULTS): Initialize HAVE_WCTYPE_T, HAVE_WCTRANS_T.
12346         * modules/wctype-h (Makefile.am): Substitute HAVE_WCTYPE_T,
12347         HAVE_WCTRANS_T.
12348         * tests/test-wctype-h.c: Check that wctype_t and wctrans_t are defined.
12349
12350 2011-02-09  Paul Eggert  <eggert@cs.ucla.edu>
12351
12352         flock: fix license typo
12353
12354         * lib/flock.c: Fix typo in license.  One of the "Lesser"s was
12355         omitted.
12356
12357 2011-02-08  Bruno Haible  <bruno@clisp.org>
12358
12359         Split large sed scripts, for HP-UX sed.
12360         * modules/math (Makefile.am): Split sed scripts around 50 sed commands,
12361         to avoid HP-UX limit of 99 commands, in the near future.
12362         * modules/stdlib (Makefile.am): Likewise.
12363         * modules/unistd (Makefile.am): Likewise.
12364         * modules/wchar (Makefile.am): Likewise.
12365         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
12366         Suggestion by Ralf Wildenhues <Ralf.Wildenhues@gmx.de> in
12367         <http://lists.gnu.org/archive/html/bug-gnulib/2010-01/msg00216.html>.
12368
12369 2011-02-08  Paul Eggert  <eggert@cs.ucla.edu>
12370             Bruno Haible  <bruno@clisp.org>
12371
12372         stdlib: improve random_r modularization
12373         * lib/stdlib.in.h: Encapsulate all the stuff having to do with
12374         random_r inside "#if @GNULIB_RANDOM_R@", so that it's clearer that
12375         you also need the random_r module to get this material right.
12376         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Move check for random.h here ...
12377         * m4/stdlib_h.m4 (gl_STDLIB_H): ... from here.
12378         (gl_STDLIB_H_DEFAULTS): Default HAVE_RANDOM_H to 1, and AC_SUBST it.
12379
12380 2011-02-08  Paul Eggert  <eggert@cs.ucla.edu>
12381
12382         stdlib: don't depend on stdint
12383         * lib/stdlib.in.h: Don't include <stdint.h> merely because
12384         GNULIB_POSIXCHECK is defined.  GNULIB_POSIXCHECK seems to
12385         be independent of whether stdint.h is needed.
12386         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Check for struct random_data
12387         here, instead of ...
12388         * m4/stdlib_h.m4 (gl_STDLIB_H): ... here.  Applications that need
12389         struct random_data should be using the random_r module, not just
12390         the stdlib module (which wouldn't make sense: what package needs
12391         just struct random_data without also needing random_r?).
12392         * modules/stdlib (Depends-on): Remove stdint.
12393
12394         getloadavg: don't depend on c-strtod, cloexec, fcntl-safer
12395         See the thread rooted at
12396         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00090.html>.
12397         * lib/getloadavg.c: Do not include c-strtod.h, cloexec.h, or fcntl--.h.
12398         Include <fcntl.h> only if (defined __linux__ || defined __CYGWIN__
12399         || defined SUNOS_5 || (defined LOAD_AVE_TYPE && !  defined
12400         __VMS)); previously it was always included (via fcntl--.h).
12401         (getloadavg): Do not use c_strtod.  Instead, approximate it by
12402         hand; this is good enough for load averages.  Also, do not use
12403         set_cloexec_flag; instead, use the O_CLOEXEC and F_DUPFD_CLOEXEC
12404         flags directly if available and don't bother otherwise.  (Packages
12405         that need the extra reliability should use the modules that define
12406         these flags on older platforms that lack them.)
12407         * modules/getloadavg (Depends-on): Remove c-strtod, cloexec,
12408         fcntl-safer.
12409
12410 2011-02-08  Jim Meyering  <meyering@redhat.com>
12411
12412         di-set.h, ino-map.h: add multiple-inclusion guard
12413         Technically, the guard is required only for ino-map.h, due to its
12414         INO_MAP_INSERT_FAILURE definition, but do both for consistency.
12415         * lib/di-set.h: Add file-spanning #ifndef _GL_DI_SET_H.
12416         * lib/ino-map.h: Likewise.
12417
12418 2011-02-06  Bruno Haible  <bruno@clisp.org>
12419
12420         iswblank: Ensure declaration on glibc systems.
12421         * m4/iswblank.m4 (gl_FUNC_ISWBLANK): Require gl_USE_SYSTEM_EXTENSIONS.
12422         * modules/iswblank (Dependencies): Add 'extensions'.
12423         * doc/posix-functions/iswblank.texi: Document the glibc problem.
12424
12425 2011-02-06  Bruno Haible  <bruno@clisp.org>
12426
12427         New module 'iswblank'.
12428         * lib/wctype.in.h (iswblank): Don't declare if GNULIB_ISWBLANK is 0.
12429         * modules/iswblank: New file.
12430         * modules/wctype-h (Files): Remove lib/iswblank.c.
12431         (Makefile.am): Substitute GNULIB_ISWBLANK.
12432         * m4/iswblank.m4: New file, partially extracted from m4/wctype_h.m4.
12433         * m4/wctype_h.m4 (gl_WCTYPE_MODULE_INDICATOR): New macro.
12434         (gl_WCTYPE_H_DEFAULTS): New macro.
12435         (gl_WCTYPE_H): Require it. Remove iswblank related code.
12436         * modules/iswblank-tests: New file.
12437         * tests/test-iswblank.c: New file, extraced from tests/test-wctype-h.c.
12438         * tests/test-wctype-h.c (main): Remove iswblank tests.
12439         * tests/test-wctype-h-c++.cc: Guard the signature test of iswblank.
12440         * doc/posix-functions/iswblank.texi: Mention module 'iswblank' instead
12441         of 'wctype-h'.
12442         * NEWS: Mention the change.
12443         * modules/mbchar (Depends-on): Add iswblank.
12444
12445 2011-02-08  Bruno Haible  <bruno@clisp.org>
12446
12447         di-set tests: Refactor.
12448         * tests/test-di-set.c: Include di-set.h early. Include macros.h. Drop
12449         unnecessary includes.
12450         (ASSERT): Remove macro.
12451         (main): Make C90 compliant by avoiding variable declaration after
12452         statement.
12453         * modules/di-set-tests (Files): Add tests/macros.h.
12454
12455 2011-02-08  Bruno Haible  <bruno@clisp.org>
12456
12457         ino-map tests: Refactor.
12458         * tests/test-ino-map.c: Include ino-map.h early. Include macros.h. Drop
12459         unnecessary includes.
12460         (ASSERT): Remove macro.
12461         (main): Make C90 compliant by avoiding variable declaration after
12462         statement.
12463         * modules/ino-map-tests (Files): Add tests/macros.h.
12464
12465 2011-02-08  Jim Meyering  <meyering@redhat.com>
12466
12467         di-set: add "const" to a cast
12468         * lib/di-set.c (di_set_insert): Cast hash_insert0 argument to
12469         "(void const *)", not "(void *)".  Spotted by Bruno Haible.
12470
12471 2011-02-06  Bruno Haible  <bruno@clisp.org>
12472
12473         Rename module 'wctype' to 'wctype-h'.
12474         * modules/wctype-h: Renamed from modules/wctype.
12475         * modules/wctype: Simplyfy to a redirection to 'wctype-h'.
12476         * modules/wctype-h-tests: Renamed from modules/wctype-tests.
12477         (Files, Depends-on, Makefile.am): Update.
12478         * modules/wctype-h-c++-tests: Renamed from modules/wctype-c++-tests.
12479         (Files, Makefile.am): Update.
12480         * tests/test-wctype-h.c: Renamed from tests/test-wctype.c.
12481         * tests/test-wctype-h-c++.cc: Renamed from tests/test-wctype-c++.cc.
12482         * doc/posix-headers/wctype.texi: Update.
12483         * doc/posix-functions/iswalnum.texi: Update.
12484         * doc/posix-functions/iswalpha.texi: Update.
12485         * doc/posix-functions/iswblank.texi: Update.
12486         * doc/posix-functions/iswcntrl.texi: Update.
12487         * doc/posix-functions/iswdigit.texi: Update.
12488         * doc/posix-functions/iswgraph.texi: Update.
12489         * doc/posix-functions/iswlower.texi: Update.
12490         * doc/posix-functions/iswprint.texi: Update.
12491         * doc/posix-functions/iswpunct.texi: Update.
12492         * doc/posix-functions/iswspace.texi: Update.
12493         * doc/posix-functions/iswupper.texi: Update.
12494         * doc/posix-functions/iswxdigit.texi: Update.
12495         * doc/posix-functions/towlower.texi: Update.
12496         * doc/posix-functions/towupper.texi: Update.
12497         * NEWS: Mention the change.
12498         * modules/fnmatch (Dependencies): Add wctype-h, remove wctype.
12499         * modules/mbchar (Dependencies): Likewise.
12500         * modules/mbswidth (Dependencies): Likewise.
12501         * modules/quotearg (Dependencies): Likewise.
12502         * modules/regex (Dependencies): Likewise.
12503         * modules/wcscasecmp (Dependencies): Likewise.
12504         * modules/wcsncasecmp (Dependencies): Likewise.
12505         * modules/wcwidth (Dependencies): Likewise.
12506
12507 2011-02-06  Bruno Haible  <bruno@clisp.org>
12508
12509         New module 'wcswidth'.
12510         * modules/wcswidth: New file.
12511         * lib/wchar.in.h (wcswidth): New declaration.
12512         * lib/wcswidth.c: New file.
12513         * lib/wcswidth-impl.h: New file, from libutf8 with modifications.
12514         * m4/wcswidth.m4: New file.
12515         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcswidth is declared.
12516         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSWIDTH, HAVE_WCSWIDTH,
12517         REPLACE_WCSWIDTH.
12518         * modules/wchar (Makefile.am): Substitute GNULIB_WCSWIDTH,
12519         HAVE_WCSWIDTH, REPLACE_WCSWIDTH.
12520         * tests/test-wchar-c++.cc: Test the declaration of wcswidth.
12521         * doc/posix-functions/wcswidth.texi: Mention the new module.
12522
12523 2011-02-06  Bruno Haible  <bruno@clisp.org>
12524
12525         New module 'wcstok'.
12526         * modules/wcstok: New file.
12527         * lib/wchar.in.h (wcstok): New declaration.
12528         * lib/wcstok.c: New file.
12529         * lib/wcstok-impl.h: New file, from libutf8 with modifications.
12530         * m4/wcstok.m4: New file.
12531         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcstok is declared.
12532         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSTOK, HAVE_WCSTOK.
12533         * modules/wchar (Makefile.am): Substitute GNULIB_WCSTOK, HAVE_WCSTOK.
12534         * tests/test-wchar-c++.cc: Test the declaration of wcstok.
12535         * doc/posix-functions/wcstok.texi: Mention the new module.
12536
12537 2011-02-06  Bruno Haible  <bruno@clisp.org>
12538
12539         New module 'wcsstr'.
12540         * modules/wcsstr: New file.
12541         * lib/wchar.in.h (wcsstr): New declaration.
12542         * lib/wcsstr.c: New file.
12543         * lib/wcsstr-impl.h: New file, from libutf8 with modifications.
12544         * m4/wcsstr.m4: New file.
12545         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsstr is declared.
12546         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSSTR, HAVE_WCSSTR.
12547         * modules/wchar (Makefile.am): Substitute GNULIB_WCSSTR, HAVE_WCSSTR.
12548         * tests/test-wchar-c++.cc: Test the declaration of wcsstr.
12549         * doc/posix-functions/wcsstr.texi: Mention the new module.
12550
12551 2011-02-06  Bruno Haible  <bruno@clisp.org>
12552
12553         New module 'wcspbrk'.
12554         * modules/wcspbrk: New file.
12555         * lib/wchar.in.h (wcspbrk): New declaration.
12556         * lib/wcspbrk.c: New file.
12557         * lib/wcspbrk-impl.h: New file, from libutf8 with modifications.
12558         * m4/wcspbrk.m4: New file.
12559         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcspbrk is declared.
12560         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSPBRK, HAVE_WCSPBRK.
12561         * modules/wchar (Makefile.am): Substitute GNULIB_WCSPBRK, HAVE_WCSPBRK.
12562         * tests/test-wchar-c++.cc: Test the declaration of wcspbrk.
12563         * doc/posix-functions/wcspbrk.texi: Mention the new module.
12564
12565 2011-02-06  Bruno Haible  <bruno@clisp.org>
12566
12567         New module 'wcsspn'.
12568         * modules/wcsspn: New file.
12569         * lib/wchar.in.h (wcsspn): New declaration.
12570         * lib/wcsspn.c: New file.
12571         * lib/wcsspn-impl.h: New file, from libutf8 with modifications.
12572         * m4/wcsspn.m4: New file.
12573         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsspn is declared.
12574         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSSPN, HAVE_WCSSPN.
12575         * modules/wchar (Makefile.am): Substitute GNULIB_WCSSPN, HAVE_WCSSPN.
12576         * tests/test-wchar-c++.cc: Test the declaration of wcsspn.
12577         * doc/posix-functions/wcsspn.texi: Mention the new module.
12578
12579 2011-02-06  Bruno Haible  <bruno@clisp.org>
12580
12581         New module 'wcscspn'.
12582         * modules/wcscspn: New file.
12583         * lib/wchar.in.h (wcscspn): New declaration.
12584         * lib/wcscspn.c: New file.
12585         * lib/wcscspn-impl.h: New file, from libutf8 with modifications.
12586         * m4/wcscspn.m4: New file.
12587         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscspn is declared.
12588         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCSPN, HAVE_WCSCSPN.
12589         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCSPN, HAVE_WCSCSPN.
12590         * tests/test-wchar-c++.cc: Test the declaration of wcscspn.
12591         * doc/posix-functions/wcscspn.texi: Mention the new module.
12592
12593 2011-02-06  Bruno Haible  <bruno@clisp.org>
12594
12595         New module 'wcsrchr'.
12596         * modules/wcsrchr: New file.
12597         * lib/wchar.in.h (wcsrchr): New declaration.
12598         * lib/wcsrchr.c: New file.
12599         * lib/wcsrchr-impl.h: New file, from libutf8 with modifications.
12600         * m4/wcsrchr.m4: New file.
12601         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsrchr is declared.
12602         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSRCHR, HAVE_WCSRCHR.
12603         * modules/wchar (Makefile.am): Substitute GNULIB_WCSRCHR, HAVE_WCSRCHR.
12604         * tests/test-wchar-c++.cc: Test the declaration of wcsrchr.
12605         * doc/posix-functions/wcsrchr.texi: Mention the new module.
12606
12607 2011-02-06  Bruno Haible  <bruno@clisp.org>
12608
12609         New module 'wcschr'.
12610         * modules/wcschr: New file.
12611         * lib/wchar.in.h (wcschr): New declaration.
12612         * lib/wcschr.c: New file.
12613         * lib/wcschr-impl.h: New file, from libutf8 with modifications.
12614         * m4/wcschr.m4: New file.
12615         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcschr is declared.
12616         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCHR, HAVE_WCSCHR.
12617         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCHR, HAVE_WCSCHR.
12618         * tests/test-wchar-c++.cc: Test the declaration of wcschr.
12619         * doc/posix-functions/wcschr.texi: Mention the new module.
12620
12621 2011-02-06  Bruno Haible  <bruno@clisp.org>
12622
12623         New module 'wcsdup'.
12624         * modules/wcsdup: New file.
12625         * lib/wchar.in.h (wcsdup): New declaration.
12626         * lib/wcsdup.c: New file.
12627         * lib/wcsdup-impl.h: New file, from libutf8 with modifications.
12628         * m4/wcsdup.m4: New file.
12629         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsdup is declared.
12630         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSDUP, HAVE_WCSDUP.
12631         * modules/wchar (Makefile.am): Substitute GNULIB_WCSDUP, HAVE_WCSDUP.
12632         * tests/test-wchar-c++.cc: Test the declaration of wcsdup.
12633         * doc/posix-functions/wcsdup.texi: Mention the new module.
12634
12635 2011-02-06  Bruno Haible  <bruno@clisp.org>
12636
12637         New module 'wcsxfrm'.
12638         * modules/wcsxfrm: New file.
12639         * lib/wchar.in.h (wcsxfrm): New declaration.
12640         * lib/wcsxfrm.c: New file.
12641         * lib/wcsxfrm-impl.h: New file.
12642         * m4/wcsxfrm.m4: New file.
12643         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsxfrm is declared.
12644         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSXFRM, HAVE_WCSXFRM.
12645         * modules/wchar (Makefile.am): Substitute GNULIB_WCSXFRM, HAVE_WCSXFRM.
12646         * tests/test-wchar-c++.cc: Test the declaration of wcsxfrm.
12647         * doc/posix-functions/wcsxfrm.texi: Mention the new module.
12648
12649 2011-02-06  Bruno Haible  <bruno@clisp.org>
12650
12651         New module 'wcscoll'.
12652         * modules/wcscoll: New file.
12653         * lib/wchar.in.h (wcscoll): New declaration.
12654         * lib/wcscoll.c: New file.
12655         * lib/wcscoll-impl.h: New file.
12656         * m4/wcscoll.m4: New file.
12657         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscoll is declared.
12658         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCOLL, HAVE_WCSCOLL.
12659         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCOLL, HAVE_WCSCOLL.
12660         * tests/test-wchar-c++.cc: Test the declaration of wcscoll.
12661         * doc/posix-functions/wcscoll.texi: Mention the new module.
12662
12663 2011-02-06  Bruno Haible  <bruno@clisp.org>
12664
12665         New module 'wcsncasecmp'.
12666         * modules/wcsncasecmp: New file.
12667         * lib/wchar.in.h (wcsncasecmp): New declaration.
12668         * lib/wcsncasecmp.c: New file.
12669         * lib/wcsncasecmp-impl.h: New file, from libutf8 with modifications.
12670         * m4/wcsncasecmp.m4: New file.
12671         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncasecmp is declared.
12672         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCASECMP, HAVE_WCSNCASECMP.
12673         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCASECMP,
12674         HAVE_WCSNCASECMP.
12675         * tests/test-wchar-c++.cc: Test the declaration of wcsncasecmp.
12676         * doc/posix-functions/wcsncasecmp.texi: Mention the new module.
12677
12678 2011-02-06  Bruno Haible  <bruno@clisp.org>
12679
12680         New module 'wcscasecmp'.
12681         * modules/wcscasecmp: New file.
12682         * lib/wchar.in.h (wcscasecmp): New declaration.
12683         * lib/wcscasecmp.c: New file.
12684         * lib/wcscasecmp-impl.h: New file, from libutf8 with modifications.
12685         * m4/wcscasecmp.m4: New file.
12686         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscasecmp is declared.
12687         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCASECMP, HAVE_WCSCASECMP.
12688         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCASECMP,
12689         HAVE_WCSCASECMP.
12690         * tests/test-wchar-c++.cc: Test the declaration of wcscasecmp.
12691         * doc/posix-functions/wcscasecmp.texi: Mention the new module.
12692
12693 2011-02-05  Bruno Haible  <bruno@clisp.org>
12694
12695         New module 'wcsncmp'.
12696         * modules/wcsncmp: New file.
12697         * lib/wchar.in.h (wcsncmp): New declaration.
12698         * lib/wcsncmp.c: New file.
12699         * lib/wcsncmp-impl.h: New file, from libutf8 with modifications.
12700         * m4/wcsncmp.m4: New file.
12701         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncmp is declared.
12702         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCMP, HAVE_WCSNCMP.
12703         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCMP, HAVE_WCSNCMP.
12704         * tests/test-wchar-c++.cc: Test the declaration of wcsncmp.
12705         * doc/posix-functions/wcsncmp.texi: Mention the new module.
12706
12707 2011-02-05  Bruno Haible  <bruno@clisp.org>
12708
12709         New module 'wcscmp'.
12710         * modules/wcscmp: New file.
12711         * lib/wchar.in.h (wcscmp): New declaration.
12712         * lib/wcscmp.c: New file.
12713         * lib/wcscmp-impl.h: New file, from libutf8 with modifications.
12714         * m4/wcscmp.m4: New file.
12715         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscmp is declared.
12716         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCMP, HAVE_WCSCMP.
12717         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCMP, HAVE_WCSCMP.
12718         * tests/test-wchar-c++.cc: Test the declaration of wcscmp.
12719         * doc/posix-functions/wcscmp.texi: Mention the new module.
12720
12721 2011-02-05  Bruno Haible  <bruno@clisp.org>
12722
12723         New module 'wcsncat'.
12724         * modules/wcsncat: New file.
12725         * lib/wchar.in.h (wcsncat): New declaration.
12726         * lib/wcsncat.c: New file.
12727         * lib/wcsncat-impl.h: New file, from libutf8 with modifications.
12728         * m4/wcsncat.m4: New file.
12729         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncat is declared.
12730         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCAT, HAVE_WCSNCAT.
12731         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCAT, HAVE_WCSNCAT.
12732         * tests/test-wchar-c++.cc: Test the declaration of wcsncat.
12733         * doc/posix-functions/wcsncat.texi: Mention the new module.
12734
12735 2011-02-05  Bruno Haible  <bruno@clisp.org>
12736
12737         New module 'wcscat'.
12738         * modules/wcscat: New file.
12739         * lib/wchar.in.h (wcscat): New declaration.
12740         * lib/wcscat.c: New file.
12741         * lib/wcscat-impl.h: New file, from libutf8 with modifications.
12742         * m4/wcscat.m4: New file.
12743         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscat is declared.
12744         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCAT, HAVE_WCSCAT.
12745         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCAT, HAVE_WCSCAT.
12746         * tests/test-wchar-c++.cc: Test the declaration of wcscat.
12747         * doc/posix-functions/wcscat.texi: Mention the new module.
12748
12749 2011-02-05  Bruno Haible  <bruno@clisp.org>
12750
12751         New module 'wcpncpy'.
12752         * modules/wcpncpy: New file.
12753         * lib/wchar.in.h (wcpncpy): New declaration.
12754         * lib/wcpncpy.c: New file.
12755         * lib/wcpncpy-impl.h: New file, from libutf8 with modifications.
12756         * m4/wcpncpy.m4: New file.
12757         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcpncpy is declared.
12758         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCPNCPY, HAVE_WCPNCPY.
12759         * modules/wchar (Makefile.am): Substitute GNULIB_WCPNCPY, HAVE_WCPNCPY.
12760         * tests/test-wchar-c++.cc: Test the declaration of wcpncpy.
12761         * doc/posix-functions/wcpncpy.texi: Mention the new module.
12762
12763 2011-02-05  Bruno Haible  <bruno@clisp.org>
12764
12765         New module 'wcsncpy'.
12766         * modules/wcsncpy: New file.
12767         * lib/wchar.in.h (wcsncpy): New declaration.
12768         * lib/wcsncpy.c: New file.
12769         * lib/wcsncpy-impl.h: New file, from libutf8 with modifications.
12770         * m4/wcsncpy.m4: New file.
12771         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncpy is declared.
12772         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCPY, HAVE_WCSNCPY.
12773         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCPY, HAVE_WCSNCPY.
12774         * tests/test-wchar-c++.cc: Test the declaration of wcsncpy.
12775         * doc/posix-functions/wcsncpy.texi: Mention the new module.
12776
12777 2011-02-05  Bruno Haible  <bruno@clisp.org>
12778
12779         New module 'wcpcpy'.
12780         * modules/wcpcpy: New file.
12781         * lib/wchar.in.h (wcpcpy): New declaration.
12782         * lib/wcpcpy.c: New file.
12783         * lib/wcpcpy-impl.h: New file, from libutf8 with modifications.
12784         * m4/wcpcpy.m4: New file.
12785         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcpcpy is declared.
12786         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCPCPY, HAVE_WCPCPY.
12787         * modules/wchar (Makefile.am): Substitute GNULIB_WCPCPY, HAVE_WCPCPY.
12788         * tests/test-wchar-c++.cc: Test the declaration of wcpcpy.
12789         * doc/posix-functions/wcpcpy.texi: Mention the new module.
12790
12791 2011-02-05  Bruno Haible  <bruno@clisp.org>
12792
12793         New module 'wcscpy'.
12794         * modules/wcscpy: New file.
12795         * lib/wchar.in.h (wcscpy): New declaration.
12796         * lib/wcscpy.c: New file.
12797         * lib/wcscpy-impl.h: New file, from libutf8 with modifications.
12798         * m4/wcscpy.m4: New file.
12799         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscpy is declared.
12800         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCPY, HAVE_WCSCPY.
12801         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCPY, HAVE_WCSCPY.
12802         * tests/test-wchar-c++.cc: Test the declaration of wcscpy.
12803         * doc/posix-functions/wcscpy.texi: Mention the new module.
12804
12805 2011-02-05  Bruno Haible  <bruno@clisp.org>
12806
12807         New module 'wcsnlen'.
12808         * modules/wcsnlen: New file.
12809         * lib/wchar.in.h (wcsnlen): New declaration.
12810         * lib/wcsnlen.c: New file.
12811         * lib/wcsnlen-impl.h: New file, from libutf8 with modifications.
12812         * m4/wcsnlen.m4: New file.
12813         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsnlen is declared.
12814         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNLEN, HAVE_WCSNLEN.
12815         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNLEN, HAVE_WCSNLEN.
12816         * tests/test-wchar-c++.cc: Test the declaration of wcsnlen.
12817         * doc/posix-functions/wcsnlen.texi: Mention the new module.
12818
12819 2011-02-05  Bruno Haible  <bruno@clisp.org>
12820
12821         New module 'wcslen'.
12822         * modules/wcslen: New file.
12823         * lib/wchar.in.h (wcslen): New declaration.
12824         * lib/wcslen.c: New file.
12825         * lib/wcslen-impl.h: New file, from libutf8 with modifications.
12826         * m4/wcslen.m4: New file.
12827         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcslen is declared.
12828         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSLEN, HAVE_WCSLEN.
12829         * modules/wchar (Makefile.am): Substitute GNULIB_WCSLEN, HAVE_WCSLEN.
12830         * tests/test-wchar-c++.cc: Test the declaration of wcslen.
12831         * doc/posix-functions/wcslen.texi: Mention the new module.
12832
12833 2011-02-05  Bruno Haible  <bruno@clisp.org>
12834
12835         New module 'wmemset'.
12836         * modules/wmemset: New file.
12837         * lib/wchar.in.h (wmemset): New declaration.
12838         * lib/wmemset.c: New file.
12839         * lib/wmemset-impl.h: New file, from libutf8 with modifications.
12840         * m4/wmemset.m4: New file.
12841         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemset is declared.
12842         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMSET, HAVE_WMEMSET.
12843         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMSET, HAVE_WMEMSET.
12844         * tests/test-wchar-c++.cc: Test the declaration of wmemset.
12845         * doc/posix-functions/wmemset.texi: Mention the new module.
12846
12847 2011-02-05  Bruno Haible  <bruno@clisp.org>
12848
12849         New module 'wmemmove'.
12850         * modules/wmemmove: New file.
12851         * lib/wchar.in.h (wmemmove): New declaration.
12852         * lib/wmemmove.c: New file.
12853         * lib/wmemmove-impl.h: New file, from libutf8 with modifications.
12854         * m4/wmemmove.m4: New file.
12855         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemmove is declared.
12856         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMMOVE, HAVE_WMEMMOVE.
12857         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMMOVE,
12858         HAVE_WMEMMOVE.
12859         * tests/test-wchar-c++.cc: Test the declaration of wmemmove.
12860         * doc/posix-functions/wmemmove.texi: Mention the new module.
12861
12862 2011-02-05  Bruno Haible  <bruno@clisp.org>
12863
12864         New module 'wmemcpy'.
12865         * modules/wmemcpy: New file.
12866         * lib/wchar.in.h (wmemcpy): New declaration.
12867         * lib/wmemcpy.c: New file.
12868         * lib/wmemcpy-impl.h: New file, from libutf8 with modifications.
12869         * m4/wmemcpy.m4: New file.
12870         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemcpy is declared.
12871         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMCPY, HAVE_WMEMCPY.
12872         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMCPY, HAVE_WMEMCPY.
12873         * tests/test-wchar-c++.cc: Test the declaration of wmemcpy.
12874         * doc/posix-functions/wmemcpy.texi: Mention the new module.
12875
12876 2011-02-05  Bruno Haible  <bruno@clisp.org>
12877
12878         New module 'wmemcmp'.
12879         * modules/wmemcmp: New file.
12880         * lib/wchar.in.h (wmemcmp): New declaration.
12881         * lib/wmemcmp.c: New file.
12882         * lib/wmemcmp-impl.h: New file, from libutf8 with modifications.
12883         * m4/wmemcmp.m4: New file.
12884         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemcmp is declared.
12885         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMCMP, HAVE_WMEMCMP.
12886         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMCMP, HAVE_WMEMCMP.
12887         * tests/test-wchar-c++.cc: Test the declaration of wmemcmp.
12888         * doc/posix-functions/wmemcmp.texi: Mention the new module.
12889
12890 2011-02-07  Jim Meyering  <meyering@redhat.com>
12891
12892         di-set, ino-map: new modules, from coreutils
12893         * lib/di-set.c: New file.
12894         * lib/di-set.h: Likewise.
12895         * lib/ino-map.c: Likewise.
12896         * lib/ino-map.h: Likewise.
12897         * modules/di-set: Likewise.
12898         * modules/di-set-tests: Likewise.
12899         * modules/ino-map: Likewise.
12900         * modules/ino-map-tests: Likewise.
12901         * tests/test-di-set.c: Likewise.
12902         * tests/test-ino-map.c: Likewise.
12903
12904 2011-02-06  Paul Eggert  <eggert@cs.ucla.edu>
12905
12906         getloadavg: merge minor changes from Emacs
12907
12908         * lib/getloadavg.c (getloadavg_initialized): More-accurate comment.
12909         (getloadavg): Use memset, not bzero.
12910
12911         2008-07-25  Chong Yidong  <cyd@stupidchicken.com>
12912         * lib/getloadavg.c (nl): Rename to name_list to avoid ncurses.h
12913         clash (bug#86).
12914
12915 2010-11-14  Bruno Haible  <bruno@clisp.org>
12916
12917         Allow multiple gnulib generated replacements to coexist.
12918         * lib/getopt.in.h (struct option): Avoid identical redefinition.
12919         * lib/inttypes.in.h (imaxdiv_t): Likewise.
12920         * lib/langinfo.in.h (nl_item): Likewise.
12921         * lib/math.in.h (_NaN, NAN): Likewise.
12922         * lib/netdb.in.h (struct addrinfo): Likewise.
12923         * lib/poll.in.h (struct pollfd, nfds_t): Likewise.
12924         * lib/pthread.in.h (pthread_t, pthread_attr_t, pthread_barrier_t,
12925         pthread_barrierattr_t, pthread_cond_t, pthread_condattr_t,
12926         pthread_key_t, pthread_mutex_t, pthread_mutexattr_t, pthread_once_t,
12927         pthread_rwlock_t, pthread_rwlockattr_t, pthread_cond_destroy,
12928         pthread_cond_init, pthread_cond_signal, pthread_cond_wait,
12929         pthread_create, pthread_exit, pthread_join, pthread_mutexattr_destroy,
12930         pthread_mutexattr_init, pthread_mutexattr_settype,
12931         pthread_mutex_destroy, pthread_mutex_init, pthread_mutex_lock,
12932         pthread_mutex_trylock, pthread_mutex_unlock, pthread_spinlock_t,
12933         pthread_spin_init, pthread_spin_destroy, pthread_spin_lock,
12934         pthread_spin_trylock, pthread_spin_unlock): Likewise.
12935         * lib/sched.in.h (struct sched_param): Likewise.
12936         * lib/se-selinux.in.h (security_class_t, security_context_t,
12937         is_selinux_enabled, getcon, freecon, getfscreatecon, setfscreatecon,
12938         matchpathcon, getfilecon, lgetfilecon, fgetfilecon, setfilecon,
12939         lsetfilecon, fsetfilecon, security_check_context,
12940         security_check_context_raw, setexeccon, matchpathcon_init_prefix):
12941         Likewise.
12942         * lib/search.in.h (VISIT, _gl_search_compar_fn, _gl_search_action_fn):
12943         Likewise.
12944         * lib/signal.in.h (sig_atomic_t, sigset_t, verify_NSIG_constraint,
12945         _gl_function_taking_int_returning_void_t, union sigval,
12946         struct siginfo_t, siginfo_t, struct sigaction): Likewise.
12947         * lib/spawn.in.h (posix_spawnattr_t, posix_spawn_file_actions_t,
12948         verify_POSIX_SPAWN_USEVFORK_no_overlap): Likewise.
12949         * lib/stdint.in.h (gl_int8_t, gl_uint8_t, gl_int16_t, gl_uint16_t,
12950         gl_int32_t, gl_uint32_t, gl_int64_t, gl_uint64_t, int_least8_t,
12951         uint_least8_t, int_least16_t, uint_least16_t, int_least32_t,
12952         uint_least32_t, int_least64_t, uint_least64_t, gl_int_fast8_t,
12953         gl_uint_fast8_t, gl_int_fast16_t, gl_uint_fast16_t, gl_int_fast32_t,
12954         gl_uint_fast32_t, int_fast64_t, uint_fast64_t, gl_intptr_t,
12955         gl_uintptr_t, intmax_t, uintmax_t, _verify_intmax_size): Likewise.
12956         * lib/stdio.in.h (rpl_fseek, rpl_ftell): Likewise.
12957         * lib/sys_socket.in.h (sa_family_t, struct sockaddr_storage,
12958         socklen_t, rpl_fd_isset): Likewise.
12959         * lib/sys_stat.in.h (rpl_mkdir): Likewise.
12960         * lib/sys_time.in.h (struct timeval): Likewise.
12961         * lib/sys_times.in.h (struct tms): Likewise.
12962         * lib/sys_utsname.in.h (struct utsname):
12963         * lib/time.in.h (struct timespec, __time_t_must_be_integral): Likewise.
12964         * lib/unistd.in.h (getpagesize): Likewise.
12965         * lib/wchar.in.h (mbstate_t): Likewise.
12966         * lib/wctype.in.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
12967         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit,
12968         towlower, towupper): Likewise.
12969         Reported by Sam Steingold <sds@gnu.org>.
12970
12971 2011-02-05  Eric Blake  <eblake@redhat.com>
12972
12973         unsetenv: work around Haiku issues
12974         * m4/setenv.m4 (gl_FUNC_UNSETENV): Also detect Haiku issue.
12975         * doc/posix-functions/unsetenv.texi (unsetenv): Document it.
12976
12977 2010-12-30  Bruce Korb  <bkorb@gnu.org>
12978
12979         libposix: avoid calling error() within libposix
12980         * lib/openat-die.c: remove error module stuff when GNULIB_LIBPOSIX
12981         is defined.
12982
12983 2011-02-05  Eric Blake  <eblake@redhat.com>
12984
12985         strerror_r-posix: port to cygwin
12986         * lib/strerror_r.c (strerror_r) [__CYGWIN__]: Add cygwin
12987         implementation.
12988         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Adjust comment.
12989         * tests/test-strerror_r.c (main): Fix test.
12990         * doc/posix-functions/strerror_r.texi (strerror_r): Document the
12991         issue.
12992
12993 2011-02-05  Bruno Haible  <bruno@clisp.org>
12994
12995         New module 'wmemchr'.
12996         * modules/wmemchr: New file.
12997         * lib/wchar.in.h (wmemchr): New declaration.
12998         * lib/wmemchr.c: New file.
12999         * lib/wmemchr-impl.h: New file, from libutf8 with modifications.
13000         * m4/wmemchr.m4: New file.
13001         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemchr is declared.
13002         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMCHR, HAVE_WMEMCHR.
13003         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMCHR, HAVE_WMEMCHR.
13004         * tests/test-wchar-c++.cc: Test the declaration of wmemchr.
13005         * doc/posix-functions/wmemchr.texi: Mention the new module.
13006
13007 2011-02-04  Eric Blake  <eblake@redhat.com>
13008
13009         fdopendir: detect FreeBSD bug
13010         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Detect bug.
13011         * doc/posix-functions/fdopendir.texi (fdopendir): Document it.
13012
13013 2011-02-04  Paul Eggert  <eggert@cs.ucla.edu>
13014
13015         stdbool: do not define HAVE_STDBOOL_H
13016         * m4/stdbool.m4 (AC_CHECK_HEADER_STDBOOL): Renamed from
13017         AC_HEADER_STDBOOL.  All uses changed.  Do not define
13018         HAVE_STDBOOL_H, as gnulib does not need this.  This change is
13019         imported from the latest Autoconf git.  It was motivated by Emacs,
13020         which uses gnulib but does not need HAVE_STDBOOL_H.
13021
13022 2011-02-04  Bruno Haible  <bruno@clisp.org>
13023
13024         wcsnrtombs: Prepare for new module wwcsnrtombs.
13025         * lib/wcsnrtombs-impl.h: New file, extracted from lib/wcsnrtombs.c.
13026         * lib/wcsnrtombs.c: Include it.
13027         * modules/wcsnrtombs (Files): Add lib/wcsnrtombs-impl.h.
13028
13029         wcsrtombs: Prepare for new module wwcsrtombs.
13030         * lib/wcsrtombs-impl.h: New file, extracted from lib/wcsrtombs.c.
13031         * lib/wcsrtombs.c: Include it.
13032         * modules/wcsrtombs (Files): Add lib/wcsrtombs-impl.h.
13033
13034         mbsnrtowcs: Prepare for new module mbsnrtowwcs.
13035         * lib/mbsnrtowcs-impl.h: New file, extracted from lib/mbsnrtowcs.c.
13036         * lib/mbsnrtowcs.c: Include it.
13037         * modules/mbsnrtowcs (Files): Add lib/mbsnrtowcs-impl.h.
13038
13039         mbsrtowcs: Prepare for new module mbsrtowwcs.
13040         * lib/mbsrtowcs-impl.h: New file, extracted from lib/mbsrtowcs.c.
13041         * lib/mbsrtowcs.c: Include it.
13042         * modules/mbsrtowcs (Files): Add lib/mbsrtowcs-impl.h.
13043
13044 2011-02-04  Bruno Haible  <bruno@clisp.org>
13045
13046         vasnprintf: Reduce use of malloc for small format strings.
13047         * lib/printf-args.h (N_DIRECT_ALLOC_ARGUMENTS): New macro.
13048         (arguments): Add room for the first 7 arguments.
13049         * lib/printf-parse.h (N_DIRECT_ALLOC_DIRECTIVES): New macro.
13050         (char_directives, u8_directives, u16_directives, u32_directives): Add
13051         room for the first 7 directives.
13052         * lib/printf-parse.c: Include <string.h>.
13053         (PRINTF_PARSE): Change memory handling code so that it uses the first
13054         7 preallocated elements in an 'arguments' or 'DIRECTIVES' struct.
13055         * lib/vasnprintf.c (VASNPRINTF): Update memory handling code.
13056         Reported by Pádraig Brady <P@draigbrady.com>.
13057
13058 2011-01-31  Eric Blake  <eblake@redhat.com>
13059
13060         dup2: work around Haiku bug
13061         * m4/dup2.m4 (gl_FUNC_DUP2): Test for bug.
13062         * lib/dup2.c (rpl_dup2) [!WIN32]: Add workaround.
13063         * doc/posix-functions/dup2.texi (dup2): Document the bug.
13064         * tests/test-dup2.c (main): Enhance test.
13065
13066 2011-01-31  Simon Josefsson  <simon@josefsson.org>
13067
13068         doc: off_t is not available in eglibc 2.11.2 stdio.h.
13069         * doc/posix-headers/stdio.texi (stdio.h): Mention that off_t isn't
13070         declared by eglibc 2.11.2.
13071         * lib/stdio.in.h: Likewise.
13072
13073 2011-01-31  Eric Blake  <eblake@redhat.com>
13074
13075         ignore-value: add missing test dependency
13076         * tests/test-ignore-value.c: Revert previous change; stdio.h
13077         provides off_t.
13078         * modules/ignore-value-tests (Depends-on): Add missing dependency.
13079
13080 2011-01-30  Paul Eggert  <eggert@cs.ucla.edu>
13081
13082         mktime: clarify long_int width checking
13083         * lib/mktime.c (long_int_is_wide_enough): Move this assertion to
13084         the top level, to make it clearer that the assumption about
13085         long_int width is being checked.  See
13086         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00554.html>.
13087
13088 2011-01-30  Simon Josefsson  <simon@josefsson.org>
13089
13090         ignore-value: Fix self-test.
13091         * tests/test-ignore-value.c: Include sys/types.h for off_t.
13092
13093 2011-01-29  Paul Eggert  <eggert@cs.ucla.edu>
13094
13095         TYPE_MAXIMUM: avoid theoretically undefined behavior
13096         * lib/intprops.h (TYPE_MINIMUM, TYPE_MAXIMUM): Do not shift a
13097         negative number, which the C Standard says has undefined behavior.
13098         In practice this is not a problem, but might as well do it by the book.
13099         Reported by Rich Felker and Eric Blake; see
13100         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00493.html>.
13101         * lib/strtol.c (TYPE_MINIMUM, TYPE_MAXIMUM): Likewise.
13102         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
13103         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
13104         * m4/parse-datetime.m4 (gl_PARSE_DATETIME): Likewise.
13105         * m4/stdint.m4 (gl_STDINT_H): Likewise.
13106         * lib/mktime.c (TYPE_MAXIMUM): Redo slightly to match the others.
13107
13108         mktime: #undef mktime before #defining it
13109         * lib/mktime.c (mktime) [DEBUG]: #undef mktime before #defining it.
13110
13111         mktime: systematically normalize tm_isdst comparisons
13112         * lib/mktime.c (isdst_differ): New function.
13113         (__mktime_internal): Use it systematically for all isdst comparisons.
13114         This completes the fix for libc BZ #6723, and removes the need for
13115         normalizing tm_isdst.  See
13116         <http://sourceware.org/bugzilla/show_bug.cgi?id=6723>
13117         (not_equal_tm) [DEBUG]: Use isdst_differ here, too.
13118
13119         mktime: fix some integer overflow issues and sidestep the rest
13120
13121         This was prompted by a bug report by Benjamin Lindner for MinGW
13122         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00472.html>.
13123         His bug is due to signed integer overflow (0 - INT_MIN), and I
13124         I scanned through mktime.c looking for other integer overflow
13125         problems, fixing all the bugs I found.
13126
13127         Although the C Standard says the resulting code is still not safe
13128         in the presence of integer overflow, in practice it should be good
13129         enough for all real-world two's-complement implementations, except
13130         for debugging environments that deliberately trap on integer
13131         overflow (e.g., gcc -ftrapv).
13132
13133         * lib/mktime.c (WRAPV): New macro.
13134         (SHR): Also check that long_int and time_t shift right in the
13135         usual way, before using the fast-but-unportable method.
13136         (TYPE_ONES_COMPLEMENT, TYPE_SIGNED_MAGNITUDE): Remove, no longer
13137         used.  The code already assumed two's complement, so there's
13138         no need to test for alternatives.  All uses removed.
13139         (TYPE_MAXIMUM): Don't rely here on overflow behavior not defined by
13140         the C standard.  Problem reported by Rich Felker in
13141         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00488.html>.
13142         (twos_complement_arithmetic): Also check long_int and time_t.
13143         (time_t_avg, time_t_add_ok, time_t_int_add_ok): New functions.
13144         (guess_time_tm, ranged_convert, __mktime_internal): Use them.
13145         (__mktime_internal): Avoid integer overflow with unary subtraction
13146         in two instances where -1 - X is an adequate replacement for -X,
13147         since the calculations are approximate.
13148
13149 2011-01-29  Eric Blake  <eblake@redhat.com>
13150
13151         mktime: avoid infinite loop
13152         * m4/mktime.m4 (AC_FUNC_MKTIME): Avoid overflow on possibly-signed
13153         type; behavior is still undefined but portable to all known targets.
13154         Reported by Rich Felker.
13155
13156 2011-01-29  Simon Josefsson  <simon@josefsson.org>
13157
13158         rename, unlink, same-inode: Relicense.
13159         * modules/rename (License): Relax from LGPLv3+ to LGPLv2+.
13160         * modules/unlink (License): Likewise.
13161         * modules/same-inode (License): Likewise.
13162
13163 2011-01-28  Paul Eggert  <eggert@cs.ucla.edu>
13164
13165         mktime: avoid problems on NetBSD 5 / i386
13166         * lib/mktime.c (long_int): New type.  This works around a problem
13167         on NetBSD 5 / i386, where 'long int' and 'int' are both 32 bits
13168         but time_t is 64 bits, and where I expect the existing code is
13169         wrong in some cases.
13170         (leapyear, ydhms_diff, guess_time_tm, __mktime_internal): Use it.
13171         (ydhms_diff): Bring back the compile-time check for wide-enough
13172         year and yday.
13173
13174         mktime: fix misspelling in comment
13175         * lib/mktime.c (__mktime_internal): Fix misspelling in comment.
13176         This merges all recent glibc changes of importance.
13177
13178 2011-01-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
13179
13180         move-if-change: cope with concurrent mv of identical file.
13181         * build-aux/move-if-change (CMPPROG): Accept environment
13182         variable as an override for `cmp'.
13183         (usage): Document CMPPROG.
13184         Adjust comparison to drop stdout.  Cope with failure of mv if
13185         the target file exists and is identical to the source, for
13186         parallel builds.
13187         Report from H.J. Lu against binutils in PR binutils/12283.
13188
13189 2011-01-28  Bruce Korb  <bkorb@gnu.org>
13190
13191         * users.txt: Mention sharutils.
13192
13193 2011-01-28  Simon Josefsson  <simon@josefsson.org>
13194
13195         * users.txt: Mention OATH Toolkit.
13196
13197 2011-01-27  Bruno Haible  <bruno@clisp.org>
13198
13199         Prepare for supporting FreeBSD 10.
13200         * build-aux/config.libpath: Remove handling of freebsd1*.
13201
13202 2011-01-27  Gerald Pfeifer  <gerald@pfeifer.com>  (tiny change)
13203
13204         Prepare for supporting FreeBSD 10.
13205         * build-aux/config.rpath: Remove handling of freebsd1* which soon would
13206         match FreeBSD 10.0.
13207
13208 2011-01-27  Bruno Haible  <bruno@clisp.org>
13209
13210         vma-iter, get-rusage-as: Add OpenBSD support.
13211         * modules/vma-iter (configure.ac): Test for mquery.
13212         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Define also on OpenBSD.
13213         * lib/vma-iter.c: Include <sys/mman.h>.
13214         (vma_iterate): Add an implementation based on mquery().
13215         * lib/resource-ext.h (get_rusage_as): Update comments.
13216         * lib/get-rusage-as.c: Likewise.
13217         * lib/get-rusage-data.c: Likewise.
13218
13219 2011-01-26  Karl Berry  <karl@gnu.org>
13220
13221         * doc/Makefile (lang_env, makeinfo_prog, manual_opts): new
13222         variables to make it easier to override the makeinfo program used.
13223
13224 2011-01-26  Eric Blake  <eblake@redhat.com>
13225
13226         fcntl: work around Haiku F_DUPFD bugs
13227         * m4/fcntl.m4 (gl_FUNC_FCNTL): Also catch Haiku errno bug.
13228         * lib/fcntl.c (rpl_fcntl) [F_DUPFD]: Work around Haiku losing
13229         cloexec bit on duplication.
13230         * doc/posix-functions/fcntl.texi (fcntl): Document the bug.
13231
13232 2011-01-26  Bruno Haible  <bruno@clisp.org>
13233
13234         Enable memory leak tests on AIX.
13235         * tests/test-dprintf-posix2.c (main): Don't skip the test on AIX.
13236         * tests/test-fprintf-posix3.c (main): Likewise.
13237
13238 2011-01-26  Bruno Haible  <bruno@clisp.org>
13239
13240         Tests for module 'get-rusage-data'.
13241         * modules/get-rusage-data-tests: New file.
13242         * tests/test-get-rusage-data.c: New file.
13243
13244         New module 'get-rusage-data'.
13245         * lib/resource-ext.h (get_rusage_data): New declaration.
13246         * lib/get-rusage-data.c: New file.
13247         * modules/get-rusage-data: New file.
13248
13249 2011-01-25  Bruno Haible  <bruno@clisp.org>
13250
13251         get-rusage-as: Allow for easier testing.
13252         * lib/resource-ext.h (get_rusage_as): Add comment.
13253         * lib/get-rusage-as.c (get_rusage_as_via_setrlimit): Define always.
13254         (main): New function for interactive testing.
13255
13256 2011-01-25  Bruno Haible  <bruno@clisp.org>
13257
13258         vma-iter: Treat Haiku like BeOS.
13259         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Define on Haiku as well.
13260         * lib/vma-iter.c (vma_iterate) [Haiku]: Use the BeOS API.
13261
13262 2011-01-25  Eric Blake  <eblake@redhat.com>
13263
13264         c-stack: fix regression on cygwin when libsigsegv is present
13265         * lib/c-stack.c (die): Don't flatten error if sigsegv is present.
13266
13267 2011-01-24  Bruno Haible  <bruno@clisp.org>
13268
13269         vma-iter: Avoid empty intervals.
13270         * lib/vma-iter.c (vma_iterate) [IRIX, OSF/1]: Don't call the callback
13271         on an empty interval.
13272
13273 2011-01-24  Jim Meyering  <meyering@redhat.com>
13274
13275         u64: remove unnecessary #include
13276         * lib/u64.h: Don't include <stddef.h>.  It was not used.
13277
13278 2011-01-23  Paul Eggert  <eggert@cs.ucla.edu>
13279
13280         Allow the user to avoid the HAVE_RAW_DECL_* macros.
13281         * m4/gnulib-common.m4 (gl_ASSERT_NO_GNULIB_POSIXCHECK): New macro.
13282
13283 2011-01-23  Bruno Haible  <bruno@clisp.org>
13284
13285         New module 'vma-iter'.
13286         * lib/vma-iter.h: New file.
13287         * lib/vma-iter.c: New file, based on lib/get-rusage-as.c.
13288         * modules/vma-iter: New file.
13289         * lib/get-rusage-as.c: Include vma-iter.h. Don't include system headers
13290         for get_rusage_as_via_iterator.
13291         (vma_iterate_callback): New function.
13292         (get_rusage_as_via_iterator): Rewritten to use vma_iterate.
13293         * modules/get-rusage-as (Depends-on): Add vma-iter.
13294
13295 2011-01-23  Bruno Haible  <bruno@clisp.org>
13296
13297         uninorm: Tweak includes.
13298         * lib/uninorm/normalize-internal.h: Don't include <stddef.h>.
13299         Reported by Jim Meyering.
13300
13301 2011-01-23  Bruno Haible  <bruno@clisp.org>
13302
13303         get-rusage-as: Improve on NetBSD.
13304         * lib/get-rusage-as.c (get_rusage_as_via_iterator): On NetBSD, use
13305         /proc, like on FreeBSD.
13306
13307 2011-01-23  Jim Meyering  <meyering@redhat.com>
13308
13309         xreadlink.h: remove unnecessary #include
13310         * lib/xreadlink.h: Don't include <stddef.h>.  It was not used.
13311
13312         maint.mk: add syntax-check rule: detect unnecessary #include <stddef.h>
13313         * top/maint.mk (sc_prohibit_stddef_without_use): New rule.
13314
13315 2011-01-23  Bruno Haible  <bruno@clisp.org>
13316
13317         get-rusage-as: Fix bug.
13318         * lib/get-rusage-as.c (get_rusage_as_via_setrlimit): Restore the
13319         original limit when aborting the first loop.
13320
13321 2011-01-23  Bruno Haible  <bruno@clisp.org>
13322
13323         wctype: Ensure valid C syntax.
13324         * m4/wctype_h.m4 (gl_WCTYPE_H): Invoke gl_CHECK_NEXT_HEADERS
13325         unconditionally, instead of gl_NEXT_HEADERS conditionally.
13326
13327 2011-01-21  Paul Eggert  <eggert@cs.ucla.edu>
13328
13329         getopt: omit HAVE_OPTRESET, HAVE_GETOPT_CLIP from config.h
13330         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Do not put the
13331         symbols HAVE_OPTRESET and HAVE_GETOPT_CLIP into config.h,
13332         as they are needed only for configure's test case.
13333         This removes two unnecessary symbols from config.h.
13334
13335         gl_CHECK_NEXT_HEADERS implies AC_CHECK_HEADERS_ONCE
13336         * m4/include_next.m4 (gl_CHECK_HEXT_HEADERS): Document this.
13337         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Don't bother to invoke
13338         AC_CHECK_HEADERS_ONCE on a header that we also invoke
13339         gl_CHECK_NEXT_HEADERS on, since the latter invokes the former.
13340         * m4/netdb_h.m4 (gl_HEADER_NETDB): Likewise.
13341         * m4/pthread.m4 (gl_PTHREAD_CHECK): Likewise.
13342         * m4/sched_h.m4 (gl_SCHED_H): Likewise.
13343         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
13344         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
13345         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Likewise.
13346         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
13347         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
13348         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
13349         * m4/termios_h.m4 (gl_TERMIOS_H): Likewise.
13350         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
13351         * m4/wchar_h.m4 (gl_WCHAR_H): Likewise.
13352         * m4/wctype_h.m4 (gl_WCTYPE_H): Likewise.
13353
13354 2011-01-21  Eric Blake  <eblake@redhat.com>
13355
13356         maintainer-makefile: work with older git for submodule check
13357         * top/maint.mk (public-submodule-commit): Rewrite to avoid
13358         merge-base --independent, which Ubuntu 10.04 git 1.7.0.4 lacks.
13359         Reported by Matthias Bolte.
13360
13361         bootstrap: minor portability fixes
13362         * build-aux/bootstrap (me): Use $me instead of $0 in functions.
13363         (usage): Omit leading capital and trailing . on help phrases, per
13364         GNU Coding Standards.
13365         (check_versions, top level): Prefix messages with script name.
13366
13367 2011-01-21  Benjamin Lindner  <bjmldn@gmail.com>  (tiny change)
13368
13369         bootstrap: support --no-git option
13370         * build-aux/bootstrap: Add --no-git option, to be used when
13371         --gnulib-srcdir points to the exact desired checkout.
13372
13373 2011-01-21  Eric Blake  <eblake@redhat.com>
13374
13375         strerror_r-posix: work with glibc 2.13
13376         * lib/strerror_r.c (strerror_r): Fix return type.
13377
13378 2011-01-21  Pádraig Brady  <P@draigBrady.com>
13379             Bruno Haible  <bruno@clisp.org>
13380
13381         uN_strstr: New unit tests.
13382         * modules/unistr/u8-strstr-tests: New file.
13383         * modules/unistr/u16-strstr-tests: New file.
13384         * modules/unistr/u32-strstr-tests: New file.
13385         * tests/unistr/test-u-strstr.h: New file, based on tests/test-strstr.c.
13386         * tests/unistr/test-u8-strstr.c: New file.
13387         * tests/unistr/test-u16-strstr.c: New file.
13388         * tests/unistr/test-u32-strstr.c: New file.
13389
13390 2011-01-21  Pádraig Brady  <P@draigBrady.com>
13391             Bruno Haible  <bruno@clisp.org>
13392
13393         Make uN_strstr functions O(n) worst-case.
13394         * lib/unistr/u-strstr.h (FUNC): In the 8-bit case, use strstr. In the
13395         16-bit and 32-bit unit cases, use the unibyte algorithm from
13396         lib/mbsstr.c.
13397         * lib/unistr/u8-strstr.c: Include <string.h>.
13398         (UNIT_IS_UINT8_T): New macro.
13399         * lib/unistr/u16-strstr.c: Include malloca.h and str-kmp.h.
13400         (U_STRLEN, U_STRNLEN): New macros.
13401         * lib/unistr/u32-strstr.c: Include malloca.h and str-kmp.h.
13402         (U_STRLEN, U_STRNLEN): New macros.
13403         * modules/unistr/u8-strstr (Depends-on): Add strstr.
13404         (configure.ac): Update required libunistring version.
13405         * modules/unistr/u16-strstr (Files): Add lib/str-kmp.h.
13406         (Depends-on): Add unistr/u16-strlen, unistr/u16-strnlen, stdbool,
13407         malloca.
13408         (configure.ac): Update required libunistring version.
13409         * modules/unistr/u32-strstr (Files): Add lib/str-kmp.h.
13410         (Depends-on): Add unistr/u32-strlen, unistr/u32-strnlen, stdbool,
13411         malloca.
13412         (configure.ac): Update required libunistring version.
13413
13414 2011-01-21  Pádraig Brady  <P@draigBrady.com>
13415             Bruno Haible  <bruno@clisp.org>
13416
13417         Prepare for faster uN_strstr functions.
13418         * lib/str-kmp.h: Support definable UNITs.
13419         (knuth_morris_pratt): Renamed from knuth_morris_pratt_unibyte. Add
13420         needle_len argument.
13421         * lib/mbsstr.c (mbsstr): Adjust for the changed str-kmp.h.
13422         * lib/mbscasestr.c (mbscasestr): Likewise.
13423
13424 2011-01-21  Pádraig Brady <P@draigBrady.com>
13425
13426         malloca-tests: make faster by unsetting MALLOC_PERTURB_
13427         * tests/test-malloca.c (main): Unset the environment variable
13428         to greatly speed up the test.
13429         * tests/init.sh: Don't say that MALLOC_PERTURB_ is cheap.
13430         * modules/malloca-tests: Depend on unsetenv.
13431
13432 2011-01-21  Pádraig Brady <P@draigBrady.com>
13433
13434         ignore-value: remove stdint dependency
13435         * lib/ignore-value.h: Remove <stdint.h>
13436         * modules/ignore-value: Remove stdint dependency.
13437
13438 2011-01-21  Jim Meyering  <meyering@redhat.com>
13439
13440         maint.mk: adjust variable name to be consistent with other gl_ vars
13441         * top/maint.mk (gl_public_submodule_commit): Rename the variable
13442         to be lower case.
13443
13444 2011-01-20  Jim Meyering  <meyering@redhat.com>
13445
13446         maint.mk: make "check" depend on public-submodule-commit by default
13447         * top/maint.mk (GL_PUBLIC_SUBMODULE_COMMIT): New overridable variable.
13448
13449 2011-01-20  Bruno Haible  <bruno@clisp.org>
13450
13451         mbfile, mbiter: Complete change from 2008-12-21.
13452         * m4/mbfile.m4 (gl_MBFILE): Don't require AC_FUNC_MBRTOWC.
13453         * m4/mbiter.m4 (gl_MBITER): Likewise.
13454
13455 2011-01-20  Jim Meyering  <meyering@redhat.com>
13456
13457         init.sh: insert space between each function name and "()"
13458         * tests/init.sh: Make it a little easier to see that a function's
13459         name is "warn_", and not "warn" when looking at the first part of
13460         its definition: "warn_ ()".  Suggested by Ralf Wildenhues.
13461
13462 2011-01-20  Jim Meyering  <meyering@redhat.com>
13463
13464         mountlist: clean up code formatting
13465         * lib/mountlist.c (read_file_system_list): Split a long line,
13466         correct bracing style, use NULL in place of "(struct statfs *)0",
13467         don't parenthesize return value, add spaces around "=" and after
13468         ";-in-for-stmt".
13469
13470 2011-01-14  Markus Duft <mduft@gentoo.org>
13471
13472         mountlist: add support for Interix
13473         * lib/mountlist.c (read_file_system_list) [MOUNTED_INTERIX_STATVFS]:
13474         Apply statvfs to all entries of /dev/fs.
13475         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Check for statvfs,
13476         and if found, AC_DEFINE MOUNTED_INTERIX_STATVFS.
13477
13478 2011-01-20  Jim Meyering  <meyering@redhat.com>
13479
13480         maint.mk: improve the public-submodule-commit rule
13481         * top/maint.mk (public-submodule-commit): Prefix with $(AM_V_GEN),
13482         to suppress printing of its commands... unless V=1.
13483         Add git submodule's --quiet option to suppress printing of e.g.,
13484         "Entering gnulib" output.
13485         "cd" into $(srcdir) before running git submodule.
13486
13487 2011-01-20  Bruno Haible  <bruno@clisp.org>
13488
13489         include_next: Fix bug introduced on 2011-01-18.
13490         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): New macro, extracted
13491         from gl_CHECK_NEXT_HEADERS and gl_NEXT_HEADERS. Omit test of
13492         ac_cv_header_... variable if the second argument is not 'check'.
13493         (gl_CHECK_NEXT_HEADERS, gl_NEXT_HEADERS): Invoke
13494         gl_NEXT_HEADERS_INTERNAL.
13495
13496 2011-01-20  Bruno Haible  <bruno@clisp.org>
13497
13498         Allow the user to avoid the GNULIB_TEST_* macros.
13499         * m4/gnulib-common.m4 (gl_ASSERT_NO_GNULIB_TESTS): New macro.
13500         Suggested by Paul Eggert.
13501
13502 2011-01-14  Jim Meyering  <meyering@redhat.com>
13503
13504         bootstrap: avoid failure when there is no .gitmodules file
13505         ": ${gnulib_path=gnulib}" fails to set $gnulib_path when that variable
13506         has been assigned to, even when its value is the empty string.
13507         * build-aux/bootstrap (gnulib_path): Test explicitly for an empty
13508         "$gnulib_path", rather than using ${gnulib_path=gnulib}.
13509         Reported by John W. Eaton <jwe@gnu.org>.
13510
13511 2011-01-19  Paul Eggert  <eggert@cs.ucla.edu>
13512
13513         assume <ctype.h>, ..., <time.h> exist
13514         For years gnulib has been assuming the existence of the headers
13515         <ctime.h>, <errno.h>, <fcntl.h>, <locale.h>, <signal.h>,
13516         <stdio.h>, <stdlib.h>, <string.h>, and <time.h>.  Omit checks for
13517         them, since they don't appear to be needed.
13518         * README (Portability guidelines): Document this.
13519         * lib/flock.c: Assume <fcntl.h> exists.
13520         * lib/regex_internal.h: Assume <locale.h> exists.
13521         * m4/ctype.m4 (gl_CTYPE_H): Assume <ctype.h> exists.
13522         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Assume <errno.h> exists.
13523         * m4/fcntl_h.m4 (gl_FCNTL_H): Assume <fcntl.h> exists.
13524         * m4/flock.m4 (gl_PREREQ_FLOCK): Likewise.
13525         * m4/locale_h.m4 (gl_LOCALE_H): Assume <locale.h> exists.
13526         * m4/regex.m4 (gl_REGEX): Likewise.
13527         * m4/signal_h.m4 (gl_SIGNAL_H): Assume <signal.h> exists.
13528         * m4/stdio_h.m4 (gl_STDIO_H): Assume <stdio.h> exists.
13529         * m4/stdlib_h.m4 (gl_STDLIB_H): Assume <stdlib.h> exists.
13530         * m4/string_h.m4 (gl_STRING_H): Assume <string.h> exists.
13531         * tests/test-argp.c: Likewise.
13532         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Assume <time.h> exists.
13533
13534         multiarch: remove AA_APPLE_UNIVERSAL_BUILD
13535         * m4/multiarch.m4 (gl_MULTIARCH): Don't AC_DEFINE
13536         AA_APPLE_UNIVERSAL_BUILD.  See
13537         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00247.html>.
13538         * NEWS: Document this.
13539
13540 2011-01-19  Eric Blake  <eblake@redhat.com>
13541
13542         c-stack: assume stack overflow if SA_SIGINFO unsupported
13543         * lib/c-stack.c (SIGACTION_WORKS): Rename...
13544         (SIGINFO_WORKS): ...since gnulib module guarantees that (most) of
13545         sigaction will work.
13546         (die): Assume stack overflow if siginfo doesn't work, to let Haiku
13547         behavior match Linux.
13548         * tests/test-c-stack.c (main): Prefer NULL for pointers.
13549
13550         stdbool-tests: accomodate Haiku
13551         * tests/test-stdbool.c: Haiku's gcc 2.95 lacks native _Bool.
13552
13553         binary-io: fix O_TEXT on Haiku
13554         * modules/binary-io (Depends-on): Add fcntl-h.
13555         * lib/binary-io.h (O_TEXT): Rely on replacement <fcntl.h> rather
13556         than blindly undefining O_TEXT.
13557         Reported by Scott McCreary.
13558
13559 2011-01-18  Paul Eggert  <eggert@cs.ucla.edu>
13560
13561         include_next: do not check for standard headers like stddef.h
13562
13563         I found this problem when modifying Emacs to use gnulib.
13564         I noticed that it added HAVE_STDDEF_H to config.h, even though
13565         gnulib always assumes <stddef.h> exists as per README and this
13566         symbol is unnecessary.
13567         * m4/include_next.m4 (gl_NEXT_HEADERS): New macro, which does not
13568         use AC_CHECK_HEADERS_ONCE, but which otherwise contains what
13569         gl_CHECK_NEXT_HEADERS used to contain.  This makes 'configure' run
13570         faster for headers like stddef.h that are known to exist.
13571         (gl_CHECK_NEXT_HEADERS): Use it.
13572         * m4/float_h.m4 (gl_FLOAT_H): For float.h, use gl_NEXT_HEADERS
13573         rather than gl_CHECK_NEXT_HEADERS.
13574         * m4/stdarg.m4 (gl_STDARG_H): Likewise, for stdarg.h.
13575         * m4/stddef_h.m4 (gl_STDDEF_H): Likewise, for stddef.h.
13576
13577 2011-01-18  Eric Blake  <eblake@redhat.com>
13578
13579         ansi-c++-opt: skip C++ dependency style if C++ is unused
13580         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): Avoid full-blown dependency
13581         tests when we know C++ compilation is not desired.
13582         Reported by Scott McCreary.
13583
13584 2011-01-18  Bruno Haible  <bruno@clisp.org>
13585
13586         *printf-posix: Avoid test failures. Make tests work on MacOS X, Cygwin.
13587         * tests/test-fprintf-posix3.c: Include "resource-ext.h".
13588         (main): Perform test also when getrlimit and setrlimit don't exist or
13589         when setrlimit of RLIMIT_DATA fails (like on Cygwin). Instead of
13590         limiting the address space size using setrlimit, compare the address
13591         space size before and after the the test.
13592         * tests/test-dprintf-posix2.c: Likewise.
13593         * tests/test-fprintf-posix3.sh: Update skip messages.
13594         * tests/test-dprintf-posix2.sh: Likewise.
13595         * modules/fprintf-posix-tests (Depends-on): Add get-rusage-as.
13596         * modules/dprintf-posix-tests (Depends-on): Likewise.
13597         Reported by Bruce Korb <bkorb@gnu.org> and
13598         Gary V. Vaughan <gary@gnu.org>.
13599
13600 2011-01-18  Bruno Haible  <bruno@clisp.org>
13601
13602         get-rusage-as: Improvement for Cygwin.
13603         * lib/get-rusage-as.c (get_rusage_as_via_iterator): On Windows, ignore
13604         areas that are merely reserved.
13605
13606 2011-01-18  Paul Eggert  <eggert@cs.ucla.edu>
13607
13608         strftime: remove dependencies on multibyte modules
13609
13610         strftime depended on mbrlen, mbsinit, and wchar, but these modules
13611         are needed only if ! MULTIBYTE_IS_FORMAT_SAFE, and that is true
13612         only if __osf__ is defined, and I suspect OSF doesn't need these
13613         other modules.  If my guess is wrong, we'll need to come up with a
13614         variant of strftime that doesn't need the multibyte modules.
13615
13616         I discovered this problem when attempting modify Emacs to use the
13617         strftime module.  With the previous gnulib, this caused Emacs to
13618         need 31 new files, ranging from lib/config.charset to
13619         m4/wint_t.m4.  This was overkill and I expect would be offputting
13620         to the Emacs maintainers.  After this change, only 6 new files are
13621         needed, namely strftime.[ch], srtftime.m4, stdbool.in.h,
13622         stdbool.m4, and tm_gmtoff.m4.
13623
13624         * lib/strftime.c (MULTIBYTE_IS_FORMAT_SAFE): Define to 1 always.
13625         Suggested by Bruno Haible in
13626         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00238.html>.
13627         * m4/strftime.m4 (gl_FUNC_STRFTIME): Do not require AC_TYPE_MBSTATE_T,
13628         and do not check for wchar.h.
13629         * modules/strftime (Files): Remove m4/mbstate_t.m4.
13630         (Depends-on): Remove mbrlen, mbsinit, wchar.
13631
13632 2011-01-18  Bruno Haible  <bruno@clisp.org>
13633
13634         Tests for module 'get-rusage-as'.
13635         * modules/get-rusage-as-tests: New file.
13636         * tests/test-get-rusage-as.c: New file.
13637
13638         New module 'get-rusage-as'.
13639         * modules/get-rusage-as: New file.
13640         * lib/resource-ext.h: New file.
13641         * lib/get-rusage-as.c: New file.
13642
13643 2011-01-17  Eric Blake  <eblake@redhat.com>
13644
13645         sigaction: relax license from LGPLv3+ to LGPLv2+
13646         * modules/sigaction (License): Relax to LGPLv2+.
13647
13648 2011-01-14  Bruno Haible  <bruno@clisp.org>
13649
13650         filemode: Make function declarations usable in C++ mode.
13651         * lib/filemode.h: Enclose function declarations in extern "C" block.
13652         Reported by John W. Eaton <jwe@gnu.org>.
13653
13654 2011-01-12  Rob Vermaas  <rob.vermaas@gmail.com>
13655
13656         save-cwd: no longer include "xgetcwd.h"
13657         * lib/save-cwd.c: Don't include "xgetcwd.h"; it's no longer used.
13658         This avoids a compilation failure in projects that use save-cwd
13659         without also using the xgetcwd module.
13660
13661 2011-01-11  Paul Eggert  <eggert@cs.ucla.edu>
13662
13663         ftoastr: split into 3 modules ftoastr, dtoastr, ldtoastr
13664         This is so that a program like Emacs, which needs only dtoastr,
13665         does not have to bother with distributing and compiling ftoastr
13666         and ldtoastr.
13667         * MODULES.html.sh: Document these modules (ftoastr wasn't documented).
13668         * modules/dtoastr, modules/ldtoastr: New files.
13669         * modules/ftoastr: Now works just for 'float'.
13670         (Files): Remove lib/dtoastr.c, lib/ldtoastr.c.
13671         (Makefile.am): Remove ftoastr.h (not needed and no effect),
13672         dtoastr.c, ldtoastr.c.
13673
13674 2011-01-11  Jim Meyering  <meyering@redhat.com>
13675
13676         save-cwd: remove #if-!HAVE_FCHDIR'd code; use the fchdir module
13677         There is no need to work around the lack of the fchdir function,
13678         since gnulib can now provide a replacement when required.
13679         * lib/save-cwd.c: Remove #if !HAVE_FCHDIR...#endif code.
13680         * modules/save-cwd (Depends-on): Add fchdir.
13681
13682 2011-01-11  Paul Eggert  <eggert@cs.ucla.edu>
13683
13684         openat, save-cwd: avoid xmalloc
13685
13686         This removes a direct (but undocumented) dependency of openat on
13687         xalloc, along with an indirect dependency via save-cwd.  It also
13688         removes a dependency of save-cwd on xgetcwd, and thereby
13689         indirectly on xalloc.  This change causes the openat substitute
13690         to fall back on save_cwd when memory is tight, and for save_cwd to
13691         fail instead of dying when memory is tight, but that's good enough.
13692         Problem and initial idea for fix reported by Bastien Roucaries in
13693         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00170.html>.
13694
13695         * lib/openat-proc.c: Include stdlib.h (for malloc), not
13696         xalloc.h (for xmalloc).
13697         (openat_proc_name): Use malloc, not xmalloc.
13698         * lib/save-cwd.c (save_cwd): Use getcwd, not xgetcwd.
13699         * modules/save-cwd (Files): Depend on getcwd, not xgetcwd.
13700
13701         openat: Increase OPENAT_BUFFER_SIZE from 512 to at least 1024
13702         This avoids heap allocation for file names whose lengths are in
13703         the range 512..1023, with the upper bound increasing to at most
13704         4031 depending on the platform's PATH_MAX.  (We do not want
13705         pathmax.h here as it might supply a non-constant PATH_MAX.)
13706         * lib/openat-priv.h (SAFER_ALLOCA_MAX, SAFER_ALLOCA): New macros.
13707         Perhaps they should be moved to malloca.h?
13708         (OPENAT_BUFFER_SIZE): Use them.
13709
13710 2011-01-10  Bruno Haible  <bruno@clisp.org>
13711
13712         doc: Update users.txt.
13713         * users.txt: Add recutils.
13714
13715 2011-01-09  Karl Berry  <karl@gnu.org>
13716
13717         * doc/posix-functions/gai_strerror.texi: Insert missing @item.
13718
13719         * doc/configmake.texi: New file.
13720         * doc/gnulib.texi: Include it.
13721         * modules/configmake: Move documentation from here.
13722
13723 2011-01-09  Bruno Haible  <bruno@clisp.org>
13724
13725         Update to Unicode 6.0.0.
13726         * lib/gen-uni-tables.c (symbolic_width): Fix bounds of planes.
13727         (get_lbp): Update for Unicode 6.0.0.
13728         * lib/uniwidth/width.c (nonspacing_table_data): Add U+065F,
13729         U+0859..U+085B, U+093A, U+0956..U+0957, U+0F8D..U+0F8F, U+135D..U+135E,
13730         U+1BE6, U+1BE8..U+1BE9, U+1BED, U+1BEF..U+1BF1, U+1DFC, U+2D7F,
13731         U+11001, U+11038..U+11046. Remove U+06DE.
13732         (uc_width): Fix bounds of planes.
13733         * tests/uniwidth/test-uc_width2.sh: Same updates as in
13734         lib/uniwidth/width.c.
13735         * tests/unigbrk/GraphemeBreakTest.txt: Copied from Unicode 6.0.0, with
13736         trailing whitespace removed.
13737         * tests/uninorm/NormalizationTest.txt: Update from Unicode 6.0.0,
13738         without comments, but with the original copyright notice.
13739         * lib/unicase/cased.h: Regenerated for Unicode 6.0.0.
13740         * lib/unicase/ignorable.h: Likewise.
13741         * lib/unicase/tocasefold.h: Likewise.
13742         * lib/unicase/tolower.h: Likewise.
13743         * lib/unicase/totitle.h: Likewise.
13744         * lib/unicase/toupper.h: Likewise.
13745         * lib/unictype/bidi_of.h: Likewise.
13746         * lib/unictype/blocks.h: Likewise.
13747         * lib/unictype/categ_C.h: Likewise.
13748         * lib/unictype/categ_Cn.h: Likewise.
13749         * lib/unictype/categ_L.h: Likewise.
13750         * lib/unictype/categ_Ll.h: Likewise.
13751         * lib/unictype/categ_Lm.h: Likewise.
13752         * lib/unictype/categ_Lo.h: Likewise.
13753         * lib/unictype/categ_Lu.h: Likewise.
13754         * lib/unictype/categ_M.h: Likewise.
13755         * lib/unictype/categ_Mc.h: Likewise.
13756         * lib/unictype/categ_Me.h: Likewise.
13757         * lib/unictype/categ_Mn.h: Likewise.
13758         * lib/unictype/categ_N.h: Likewise.
13759         * lib/unictype/categ_Nd.h: Likewise.
13760         * lib/unictype/categ_No.h: Likewise.
13761         * lib/unictype/categ_P.h: Likewise.
13762         * lib/unictype/categ_Po.h: Likewise.
13763         * lib/unictype/categ_S.h: Likewise.
13764         * lib/unictype/categ_Sc.h: Likewise.
13765         * lib/unictype/categ_Sk.h: Likewise.
13766         * lib/unictype/categ_Sm.h: Likewise.
13767         * lib/unictype/categ_So.h: Likewise.
13768         * lib/unictype/categ_of.h: Likewise.
13769         * lib/unictype/combining.h: Likewise.
13770         * lib/unictype/ctype_alnum.h: Likewise.
13771         * lib/unictype/ctype_alpha.h: Likewise.
13772         * lib/unictype/ctype_graph.h: Likewise.
13773         * lib/unictype/ctype_lower.h: Likewise.
13774         * lib/unictype/ctype_print.h: Likewise.
13775         * lib/unictype/ctype_punct.h: Likewise.
13776         * lib/unictype/ctype_upper.h: Likewise.
13777         * lib/unictype/decdigit.h: Likewise.
13778         * lib/unictype/digit.h: Likewise.
13779         * lib/unictype/numeric.h: Likewise.
13780         * lib/unictype/pr_alphabetic.h: Likewise.
13781         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
13782         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
13783         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
13784         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
13785         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
13786         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
13787         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
13788         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
13789         * lib/unictype/pr_case_ignorable.h: Likewise.
13790         * lib/unictype/pr_cased.h: Likewise.
13791         * lib/unictype/pr_changes_when_casefolded.h: Likewise.
13792         * lib/unictype/pr_changes_when_casemapped.h: Likewise.
13793         * lib/unictype/pr_changes_when_lowercased.h: Likewise.
13794         * lib/unictype/pr_changes_when_titlecased.h: Likewise.
13795         * lib/unictype/pr_changes_when_uppercased.h: Likewise.
13796         * lib/unictype/pr_combining.h: Likewise.
13797         * lib/unictype/pr_composite.h: Likewise.
13798         * lib/unictype/pr_currency_symbol.h: Likewise.
13799         * lib/unictype/pr_decimal_digit.h: Likewise.
13800         * lib/unictype/pr_deprecated.h: Likewise.
13801         * lib/unictype/pr_format_control.h: Likewise.
13802         * lib/unictype/pr_grapheme_base.h: Likewise.
13803         * lib/unictype/pr_grapheme_extend.h: Likewise.
13804         * lib/unictype/pr_grapheme_link.h: Likewise.
13805         * lib/unictype/pr_id_continue.h: Likewise.
13806         * lib/unictype/pr_id_start.h: Likewise.
13807         * lib/unictype/pr_ideographic.h: Likewise.
13808         * lib/unictype/pr_lowercase.h: Likewise.
13809         * lib/unictype/pr_math.h: Likewise.
13810         * lib/unictype/pr_numeric.h: Likewise.
13811         * lib/unictype/pr_other_alphabetic.h: Likewise.
13812         * lib/unictype/pr_other_id_continue.h: Likewise.
13813         * lib/unictype/pr_other_math.h: Likewise.
13814         * lib/unictype/pr_punctuation.h: Likewise.
13815         * lib/unictype/pr_sentence_terminal.h: Likewise.
13816         * lib/unictype/pr_terminal_punctuation.h: Likewise.
13817         * lib/unictype/pr_unassigned_code_value.h: Likewise.
13818         * lib/unictype/pr_unified_ideograph.h: Likewise.
13819         * lib/unictype/pr_uppercase.h: Likewise.
13820         * lib/unictype/pr_xid_continue.h: Likewise.
13821         * lib/unictype/pr_xid_start.h: Likewise.
13822         * lib/unictype/scripts.h: Likewise.
13823         * lib/unictype/scripts_byname.gperf: Likewise.
13824         * lib/unictype/sy_java_ident.h: Likewise.
13825         * lib/unigbrk/gbrkprop.h: Likewise.
13826         * lib/unilbrk/lbrkprop1.h: Likewise.
13827         * lib/unilbrk/lbrkprop2.h: Likewise.
13828         * lib/uninorm/decomposition-table2.h: Likewise.
13829         * lib/uniwbrk/wbrkprop.h: Likewise.
13830         * tests/unicase/test-cased.c: Likewise.
13831         * tests/unicase/test-ignorable.c: Likewise.
13832         * tests/unicase/test-uc_tolower.c: Likewise.
13833         * tests/unicase/test-uc_totitle.c: Likewise.
13834         * tests/unicase/test-uc_toupper.c: Likewise.
13835         * tests/unictype/test-categ_C.c: Likewise.
13836         * tests/unictype/test-categ_Cn.c: Likewise.
13837         * tests/unictype/test-categ_L.c: Likewise.
13838         * tests/unictype/test-categ_Ll.c: Likewise.
13839         * tests/unictype/test-categ_Lm.c: Likewise.
13840         * tests/unictype/test-categ_Lo.c: Likewise.
13841         * tests/unictype/test-categ_Lu.c: Likewise.
13842         * tests/unictype/test-categ_M.c: Likewise.
13843         * tests/unictype/test-categ_Mc.c: Likewise.
13844         * tests/unictype/test-categ_Me.c: Likewise.
13845         * tests/unictype/test-categ_Mn.c: Likewise.
13846         * tests/unictype/test-categ_N.c: Likewise.
13847         * tests/unictype/test-categ_Nd.c: Likewise.
13848         * tests/unictype/test-categ_No.c: Likewise.
13849         * tests/unictype/test-categ_P.c: Likewise.
13850         * tests/unictype/test-categ_Po.c: Likewise.
13851         * tests/unictype/test-categ_S.c: Likewise.
13852         * tests/unictype/test-categ_Sc.c: Likewise.
13853         * tests/unictype/test-categ_Sk.c: Likewise.
13854         * tests/unictype/test-categ_Sm.c: Likewise.
13855         * tests/unictype/test-categ_So.c: Likewise.
13856         * tests/unictype/test-ctype_alnum.c: Likewise.
13857         * tests/unictype/test-ctype_alpha.c: Likewise.
13858         * tests/unictype/test-ctype_graph.c: Likewise.
13859         * tests/unictype/test-ctype_lower.c: Likewise.
13860         * tests/unictype/test-ctype_print.c: Likewise.
13861         * tests/unictype/test-ctype_punct.c: Likewise.
13862         * tests/unictype/test-ctype_upper.c: Likewise.
13863         * tests/unictype/test-decdigit.h: Likewise.
13864         * tests/unictype/test-digit.h: Likewise.
13865         * tests/unictype/test-numeric.h: Likewise.
13866         * tests/unictype/test-pr_alphabetic.c: Likewise.
13867         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
13868         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Likewise.
13869         * tests/unictype/test-pr_bidi_boundary_neutral.c: Likewise.
13870         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
13871         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
13872         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
13873         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
13874         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
13875         * tests/unictype/test-pr_case_ignorable.c: Likewise.
13876         * tests/unictype/test-pr_cased.c: Likewise.
13877         * tests/unictype/test-pr_changes_when_casefolded.c: Likewise.
13878         * tests/unictype/test-pr_changes_when_casemapped.c: Likewise.
13879         * tests/unictype/test-pr_changes_when_lowercased.c: Likewise.
13880         * tests/unictype/test-pr_changes_when_titlecased.c: Likewise.
13881         * tests/unictype/test-pr_changes_when_uppercased.c: Likewise.
13882         * tests/unictype/test-pr_combining.c: Likewise.
13883         * tests/unictype/test-pr_composite.c: Likewise.
13884         * tests/unictype/test-pr_currency_symbol.c: Likewise.
13885         * tests/unictype/test-pr_decimal_digit.c: Likewise.
13886         * tests/unictype/test-pr_deprecated.c: Likewise.
13887         * tests/unictype/test-pr_format_control.c: Likewise.
13888         * tests/unictype/test-pr_grapheme_base.c: Likewise.
13889         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
13890         * tests/unictype/test-pr_grapheme_link.c: Likewise.
13891         * tests/unictype/test-pr_id_continue.c: Likewise.
13892         * tests/unictype/test-pr_id_start.c: Likewise.
13893         * tests/unictype/test-pr_ideographic.c: Likewise.
13894         * tests/unictype/test-pr_lowercase.c: Likewise.
13895         * tests/unictype/test-pr_math.c: Likewise.
13896         * tests/unictype/test-pr_numeric.c: Likewise.
13897         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
13898         * tests/unictype/test-pr_other_id_continue.c: Likewise.
13899         * tests/unictype/test-pr_other_math.c: Likewise.
13900         * tests/unictype/test-pr_punctuation.c: Likewise.
13901         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
13902         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
13903         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
13904         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
13905         * tests/unictype/test-pr_uppercase.c: Likewise.
13906         * tests/unictype/test-pr_xid_continue.c: Likewise.
13907         * tests/unictype/test-pr_xid_start.c: Likewise.
13908         * tests/unigbrk/test-uc-gbrk-prop.h: Likewise.
13909         * lib/unicase/special-casing-table.gperf: Regenerated; only comment
13910         changes.
13911         * lib/unictype/categ_Cc.h: Likewise.
13912         * lib/unictype/categ_Cf.h: Likewise.
13913         * lib/unictype/categ_Co.h: Likewise.
13914         * lib/unictype/categ_Cs.h: Likewise.
13915         * lib/unictype/categ_Lt.h: Likewise.
13916         * lib/unictype/categ_Nl.h: Likewise.
13917         * lib/unictype/categ_Pc.h: Likewise.
13918         * lib/unictype/categ_Pd.h: Likewise.
13919         * lib/unictype/categ_Pe.h: Likewise.
13920         * lib/unictype/categ_Pf.h: Likewise.
13921         * lib/unictype/categ_Pi.h: Likewise.
13922         * lib/unictype/categ_Ps.h: Likewise.
13923         * lib/unictype/categ_Z.h: Likewise.
13924         * lib/unictype/categ_Zl.h: Likewise.
13925         * lib/unictype/categ_Zp.h: Likewise.
13926         * lib/unictype/categ_Zs.h: Likewise.
13927         * lib/unictype/ctype_blank.h: Likewise.
13928         * lib/unictype/ctype_cntrl.h: Likewise.
13929         * lib/unictype/ctype_digit.h: Likewise.
13930         * lib/unictype/ctype_space.h: Likewise.
13931         * lib/unictype/ctype_xdigit.h: Likewise.
13932         * lib/unictype/mirror.h: Likewise.
13933         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
13934         * lib/unictype/pr_bidi_block_separator.h: Likewise.
13935         * lib/unictype/pr_bidi_common_separator.h: Likewise.
13936         * lib/unictype/pr_bidi_control.h: Likewise.
13937         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
13938         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
13939         * lib/unictype/pr_bidi_european_digit.h: Likewise.
13940         * lib/unictype/pr_bidi_pdf.h: Likewise.
13941         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
13942         * lib/unictype/pr_bidi_whitespace.h: Likewise.
13943         * lib/unictype/pr_dash.h: Likewise.
13944         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
13945         * lib/unictype/pr_diacritic.h: Likewise.
13946         * lib/unictype/pr_extender.h: Likewise.
13947         * lib/unictype/pr_hex_digit.h: Likewise.
13948         * lib/unictype/pr_hyphen.h: Likewise.
13949         * lib/unictype/pr_ids_binary_operator.h: Likewise.
13950         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
13951         * lib/unictype/pr_ignorable_control.h: Likewise.
13952         * lib/unictype/pr_iso_control.h: Likewise.
13953         * lib/unictype/pr_join_control.h: Likewise.
13954         * lib/unictype/pr_left_of_pair.h: Likewise.
13955         * lib/unictype/pr_line_separator.h: Likewise.
13956         * lib/unictype/pr_logical_order_exception.h: Likewise.
13957         * lib/unictype/pr_non_break.h: Likewise.
13958         * lib/unictype/pr_not_a_character.h: Likewise.
13959         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
13960         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
13961         * lib/unictype/pr_other_id_start.h: Likewise.
13962         * lib/unictype/pr_other_lowercase.h: Likewise.
13963         * lib/unictype/pr_other_uppercase.h: Likewise.
13964         * lib/unictype/pr_paired_punctuation.h: Likewise.
13965         * lib/unictype/pr_paragraph_separator.h: Likewise.
13966         * lib/unictype/pr_pattern_syntax.h: Likewise.
13967         * lib/unictype/pr_pattern_white_space.h: Likewise.
13968         * lib/unictype/pr_private_use.h: Likewise.
13969         * lib/unictype/pr_quotation_mark.h: Likewise.
13970         * lib/unictype/pr_radical.h: Likewise.
13971         * lib/unictype/pr_soft_dotted.h: Likewise.
13972         * lib/unictype/pr_space.h: Likewise.
13973         * lib/unictype/pr_titlecase.h: Likewise.
13974         * lib/unictype/pr_variation_selector.h: Likewise.
13975         * lib/unictype/pr_white_space.h: Likewise.
13976         * lib/unictype/pr_zero_width.h: Likewise.
13977         * lib/unictype/sy_c_ident.h: Likewise.
13978         * lib/unictype/sy_c_whitespace.h: Likewise.
13979         * lib/unictype/sy_java_whitespace.h: Likewise.
13980         * lib/uninorm/composition-table.gperf: Likewise.
13981         * lib/uninorm/decomposition-table1.h: Likewise.
13982         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Add test for rule
13983         LB8.
13984         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
13985         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
13986         * modules/unictype/*: Bump version number of expected libunistring
13987         version.
13988
13989 2011-01-09  Bruno Haible  <bruno@clisp.org>
13990
13991         Update to Unicode 5.2.0.
13992         * tests/unigbrk/GraphemeBreakTest.txt: Copied from Unicode 5.2.0, with
13993         trailing whitespace removed.
13994
13995 2011-01-09  Bruno Haible  <bruno@clisp.org>
13996
13997         New Unicode character properties, from Unicode 5.2.0.
13998         * lib/unictype.in.h (UC_PROPERTY_CASED, UC_PROPERTY_CASE_IGNORABLE,
13999         UC_PROPERTY_CHANGES_WHEN_LOWERCASED,
14000         UC_PROPERTY_CHANGES_WHEN_UPPERCASED,
14001         UC_PROPERTY_CHANGES_WHEN_TITLECASED,
14002         UC_PROPERTY_CHANGES_WHEN_CASEFOLDED,
14003         UC_PROPERTY_CHANGES_WHEN_CASEMAPPED,
14004         uc_is_property_cased, uc_is_property_case_ignorable,
14005         uc_is_property_changes_when_lowercased,
14006         uc_is_property_changes_when_uppercased,
14007         uc_is_property_changes_when_titlecased,
14008         uc_is_property_changes_when_casefolded,
14009         uc_is_property_changes_when_casemapped): New declarations.
14010         * lib/unictype/pr_byname.gperf: Add the new properties.
14011         * modules/unictype/property-byname (Depends-on): Depend on the new
14012         properties modules.
14013         * modules/unictype/property-all (Depends-on): Likewise.
14014         * MODULES.html.sh (Unicode string functions): Add
14015         unictype/property-case-ignorable, unictype/property-cased,
14016         unictype/property-changes-when-casefolded,
14017         unictype/property-changes-when-casemapped,
14018         unictype/property-changes-when-lowercased,
14019         unictype/property-changes-when-titlecased,
14020         unictype/property-changes-when-uppercased.
14021
14022         New module 'unictype/property-changes-when-casemapped'.
14023         * modules/unictype/property-changes-when-casemapped: New file.
14024         * lib/unictype/pr_changes_when_casemapped.c: New file.
14025         * lib/unictype/pr_changes_when_casemapped.h: New file, automatically
14026         generated by gen-uni-tables.
14027         * modules/unictype/property-changes-when-casemapped-tests: New file.
14028         * tests/unictype/test-pr_changes_when_casemapped.c: New file,
14029         automatically generated by gen-uni-tables.
14030
14031         New module 'unictype/property-changes-when-casefolded'.
14032         * modules/unictype/property-changes-when-casefolded: New file.
14033         * lib/unictype/pr_changes_when_casefolded.c: New file.
14034         * lib/unictype/pr_changes_when_casefolded.h: New file, automatically
14035         generated by gen-uni-tables.
14036         * modules/unictype/property-changes-when-casefolded-tests: New file.
14037         * tests/unictype/test-pr_changes_when_casefolded.c: New file,
14038         automatically generated by gen-uni-tables.
14039
14040         New module 'unictype/property-changes-when-titlecased'.
14041         * modules/unictype/property-changes-when-titlecased: New file.
14042         * lib/unictype/pr_changes_when_titlecased.c: New file.
14043         * lib/unictype/pr_changes_when_titlecased.h: New file, automatically
14044         generated by gen-uni-tables.
14045         * modules/unictype/property-changes-when-titlecased-tests: New file.
14046         * tests/unictype/test-pr_changes_when_titlecased.c: New file,
14047         automatically generated by gen-uni-tables.
14048
14049         New module 'unictype/property-changes-when-uppercased'.
14050         * modules/unictype/property-changes-when-uppercased: New file.
14051         * lib/unictype/pr_changes_when_uppercased.c: New file.
14052         * lib/unictype/pr_changes_when_uppercased.h: New file, automatically
14053         generated by gen-uni-tables.
14054         * modules/unictype/property-changes-when-uppercased-tests: New file.
14055         * tests/unictype/test-pr_changes_when_uppercased.c: New file,
14056         automatically generated by gen-uni-tables.
14057
14058         New module 'unictype/property-changes-when-lowercased'.
14059         * modules/unictype/property-changes-when-lowercased: New file.
14060         * lib/unictype/pr_changes_when_lowercased.c: New file.
14061         * lib/unictype/pr_changes_when_lowercased.h: New file, automatically
14062         generated by gen-uni-tables.
14063         * modules/unictype/property-changes-when-lowercased-tests: New file.
14064         * tests/unictype/test-pr_changes_when_lowercased.c: New file,
14065         automatically generated by gen-uni-tables.
14066
14067         New module 'unictype/property-case-ignorable'.
14068         * modules/unictype/property-case-ignorable: New file.
14069         * lib/unictype/pr_case_ignorable.c: New file.
14070         * lib/unictype/pr_case_ignorable.h: New file, automatically generated
14071         by gen-uni-tables.
14072         * modules/unictype/property-case-ignorable-tests: New file.
14073         * tests/unictype/test-pr_case_ignorable.c: New file, automatically
14074         generated by gen-uni-tables.
14075
14076         New module 'unictype/property-cased'.
14077         * modules/unictype/property-cased: New file.
14078         * lib/unictype/pr_cased.c: New file.
14079         * lib/unictype/pr_cased.h: New file, automatically generated by
14080         gen-uni-tables.
14081         * modules/unictype/property-cased-tests: New file.
14082         * tests/unictype/test-pr_cased.c: New file, automatically generated by
14083         gen-uni-tables.
14084
14085 2011-01-09  Bruno Haible  <bruno@clisp.org>
14086
14087         Update to Unicode 5.2.0.
14088         * lib/gen-uni-tables.c (output_predicate, output_category,
14089         output_combclass, output_bidi_category, output_decimal_digit_test,
14090         output_decimal_digit, output_digit_test, output_digit,
14091         output_numeric_test, output_numeric, output_mirror, output_scripts,
14092         output_scripts_byname, output_blocks, output_ident_category): Fix
14093         comment header.
14094         (is_WBP_MIDNUMLET, is_WBP_MIDLETTER): New functions, extracted from
14095         get_wbp.
14096         (PROP_CASED, PROP_CASE_IGNORABLE, PROP_CHANGES_WHEN_*): New enumeration
14097         items.
14098         (fill_properties): Also fill the peoperties Cased, Case_Ignorable,
14099         Changes_When_Lowercased, Changes_When_Uppercased,
14100         Changes_When_Titlecased, Changes_When_Casefolded,
14101         Changes_When_Casemapped.
14102         (is_property_alphabetic, is_property_default_ignorable_code_point):
14103         Update for Unicode 5.2.0.
14104         (is_property_cased, is_property_case_ignorable,
14105         is_property_changes_when_lowercased,
14106         is_property_changes_when_uppercased,
14107         is_property_changes_when_titlecased,
14108         is_property_changes_when_casefolded,
14109         is_property_changes_when_casemapped): New functions.
14110         (output_properties): Output also the properties cased, case_ignorable,
14111         changes_when_lowercased, changes_when_uppercased,
14112         changes_when_titlecased, changes_when_casefolded,
14113         changes_when_casemapped.
14114         (symbolic_width): Update for Unicode 5.2.0, incorporating changes from
14115         Unicode TR#11 revision 17 -> 19.
14116         (LBP_CP): New enumeration value.
14117         (LBP_*): Adjust values accordingly.
14118         (get_lbp): Update for Unicode 5.2.0, incorporating changes from Unicode
14119         TR#14 revision 22 -> 24.
14120         (debug_output_lbp): Allow for LBP_* bits >= 32. Support LBP_CP.
14121         (fill_org_lbp, debug_output_org_lbp, output_lbp): Support LBP_CP.
14122         (get_wbp): Update for Unicode 5.2.0, incorporating changes from Unicode
14123         TR#29 revision 13 -> 15. Use functions is_WBP_MIDNUMLET,
14124         is_WBP_MIDLETTER.
14125         (output_composition_tables): Allow for 24 bits instead of 16 bits in
14126         the code1 and code2 of each composition rule.
14127         * lib/unicase/cased.h: Regenerated for Unicode 5.2.0.
14128         * lib/unicase/ignorable.h: Likewise.
14129         * lib/unicase/tocasefold.h: Likewise.
14130         * lib/unicase/tolower.h: Likewise.
14131         * lib/unicase/totitle.h: Likewise.
14132         * lib/unicase/toupper.h: Likewise.
14133         * lib/unictype/bidi_of.h: Likewise.
14134         * lib/unictype/blocks.h: Likewise.
14135         * lib/unictype/categ_C.h: Likewise.
14136         * lib/unictype/categ_Cf.h: Likewise.
14137         * lib/unictype/categ_Cn.h: Likewise.
14138         * lib/unictype/categ_L.h: Likewise.
14139         * lib/unictype/categ_Ll.h: Likewise.
14140         * lib/unictype/categ_Lm.h: Likewise.
14141         * lib/unictype/categ_Lo.h: Likewise.
14142         * lib/unictype/categ_Lu.h: Likewise.
14143         * lib/unictype/categ_M.h: Likewise.
14144         * lib/unictype/categ_Mc.h: Likewise.
14145         * lib/unictype/categ_Mn.h: Likewise.
14146         * lib/unictype/categ_N.h: Likewise.
14147         * lib/unictype/categ_Nd.h: Likewise.
14148         * lib/unictype/categ_Nl.h: Likewise.
14149         * lib/unictype/categ_No.h: Likewise.
14150         * lib/unictype/categ_P.h: Likewise.
14151         * lib/unictype/categ_Pd.h: Likewise.
14152         * lib/unictype/categ_Po.h: Likewise.
14153         * lib/unictype/categ_S.h: Likewise.
14154         * lib/unictype/categ_Sc.h: Likewise.
14155         * lib/unictype/categ_So.h: Likewise.
14156         * lib/unictype/categ_of.h: Likewise.
14157         * lib/unictype/combining.h: Likewise.
14158         * lib/unictype/ctype_alnum.h: Likewise.
14159         * lib/unictype/ctype_alpha.h: Likewise.
14160         * lib/unictype/ctype_graph.h: Likewise.
14161         * lib/unictype/ctype_lower.h: Likewise.
14162         * lib/unictype/ctype_print.h: Likewise.
14163         * lib/unictype/ctype_punct.h: Likewise.
14164         * lib/unictype/ctype_upper.h: Likewise.
14165         * lib/unictype/decdigit.h: Likewise.
14166         * lib/unictype/digit.h: Likewise.
14167         * lib/unictype/numeric.h: Likewise.
14168         * lib/unictype/pr_alphabetic.h: Likewise.
14169         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
14170         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
14171         * lib/unictype/pr_bidi_european_digit.h: Likewise.
14172         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
14173         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
14174         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
14175         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
14176         * lib/unictype/pr_combining.h: Likewise.
14177         * lib/unictype/pr_composite.h: Likewise.
14178         * lib/unictype/pr_currency_symbol.h: Likewise.
14179         * lib/unictype/pr_dash.h: Likewise.
14180         * lib/unictype/pr_decimal_digit.h: Likewise.
14181         * lib/unictype/pr_deprecated.h: Likewise.
14182         * lib/unictype/pr_diacritic.h: Likewise.
14183         * lib/unictype/pr_extender.h: Likewise.
14184         * lib/unictype/pr_grapheme_base.h: Likewise.
14185         * lib/unictype/pr_grapheme_extend.h: Likewise.
14186         * lib/unictype/pr_grapheme_link.h: Likewise.
14187         * lib/unictype/pr_id_continue.h: Likewise.
14188         * lib/unictype/pr_id_start.h: Likewise.
14189         * lib/unictype/pr_ideographic.h: Likewise.
14190         * lib/unictype/pr_ignorable_control.h: Likewise.
14191         * lib/unictype/pr_logical_order_exception.h: Likewise.
14192         * lib/unictype/pr_lowercase.h: Likewise.
14193         * lib/unictype/pr_numeric.h: Likewise.
14194         * lib/unictype/pr_other_alphabetic.h: Likewise.
14195         * lib/unictype/pr_punctuation.h: Likewise.
14196         * lib/unictype/pr_sentence_terminal.h: Likewise.
14197         * lib/unictype/pr_terminal_punctuation.h: Likewise.
14198         * lib/unictype/pr_unassigned_code_value.h: Likewise.
14199         * lib/unictype/pr_unified_ideograph.h: Likewise.
14200         * lib/unictype/pr_uppercase.h: Likewise.
14201         * lib/unictype/pr_xid_continue.h: Likewise.
14202         * lib/unictype/pr_xid_start.h: Likewise.
14203         * lib/unictype/pr_zero_width.h: Likewise.
14204         * lib/unictype/scripts.h: Likewise.
14205         * lib/unictype/scripts_byname.gperf: Likewise.
14206         * lib/unictype/sy_java_ident.h: Likewise.
14207         * lib/unigbrk/gbrkprop.h: Likewise.
14208         * lib/unilbrk/lbrkprop1.h: Likewise.
14209         * lib/unilbrk/lbrkprop2.h: Likewise.
14210         * lib/unilbrk/lbrktables.h: Likewise.
14211         * lib/unilbrk/lbrktables.c (unilbrk_table): Add a row and column for
14212         LBP_CP. Implement rule LB30.
14213         * lib/uniwidth/width.c (nonspacing_table_data): Add U+0816..U+0819,
14214         U+081B..U+0823, U+0825..U+0827, U+0829..U+082D, U+0900, U+0955, U+109D,
14215         U+1A56, U+1A58..U+1A5E, U+1A60, U+1A62, U+1A65..U+1A6C, U+1A73..U+1A7C,
14216         U+1A7F, U+1CD0..U+1CD2, U+1CD4..U+1CE0, U+1CE2..U+1CE8, U+1CED, U+1DFD,
14217         U+2CEF..U+2CF1, U+A6F0..U+A6F1, U+A8E0..U+A8F1, U+A980..U+A982, U+A9B3,
14218         U+A9B6..U+A9B9, U+A9BC, U+AAB0, U+AAB2..U+AAB4, U+AAB7..U+AAB8,
14219         U+AABE..U+AABF, U+AAC1, U+ABE5, U+ABE8, U+ABED, U+11080..U+11081,
14220         U+110B3..U+110B6, U+110B9..U+110BA, U+110BD.
14221         (uc_width): Return 2 also for unassigned code points of planes 2 and 3.
14222         * lib/uninorm/composition-table.gperf: Regenerated for Unicode 5.2.0.
14223         * lib/uninorm/composition.c (struct composition_rule): Allow for 24
14224         bits instead of 16 bits in the code1 and code2 of each composition
14225         rule.
14226         (uc_composition): Update for Unicode 5.2.0.
14227         * lib/uninorm/decomposition-table1.h: Regenerated for Unicode 5.2.0.
14228         * lib/uninorm/decomposition-table2.h: Likewise.
14229         * lib/uniwbrk/wbrkprop.h: Likewise.
14230         * tests/unicase/test-cased.c: Likewise.
14231         * tests/unicase/test-ignorable.c: Likewise.
14232         * tests/unicase/test-uc_tolower.c: Likewise.
14233         * tests/unicase/test-uc_totitle.c: Likewise.
14234         * tests/unicase/test-uc_toupper.c: Likewise.
14235         * tests/unictype/test-categ_C.c: Likewise.
14236         * tests/unictype/test-categ_Cf.c: Likewise.
14237         * tests/unictype/test-categ_Cn.c: Likewise.
14238         * tests/unictype/test-categ_L.c: Likewise.
14239         * tests/unictype/test-categ_Ll.c: Likewise.
14240         * tests/unictype/test-categ_Lm.c: Likewise.
14241         * tests/unictype/test-categ_Lo.c: Likewise.
14242         * tests/unictype/test-categ_Lu.c: Likewise.
14243         * tests/unictype/test-categ_M.c: Likewise.
14244         * tests/unictype/test-categ_Mc.c: Likewise.
14245         * tests/unictype/test-categ_Mn.c: Likewise.
14246         * tests/unictype/test-categ_N.c: Likewise.
14247         * tests/unictype/test-categ_Nd.c: Likewise.
14248         * tests/unictype/test-categ_Nl.c: Likewise.
14249         * tests/unictype/test-categ_No.c: Likewise.
14250         * tests/unictype/test-categ_P.c: Likewise.
14251         * tests/unictype/test-categ_Pd.c: Likewise.
14252         * tests/unictype/test-categ_Po.c: Likewise.
14253         * tests/unictype/test-categ_S.c: Likewise.
14254         * tests/unictype/test-categ_Sc.c: Likewise.
14255         * tests/unictype/test-categ_So.c: Likewise.
14256         * tests/unictype/test-ctype_alnum.c: Likewise.
14257         * tests/unictype/test-ctype_alpha.c: Likewise.
14258         * tests/unictype/test-ctype_graph.c: Likewise.
14259         * tests/unictype/test-ctype_lower.c: Likewise.
14260         * tests/unictype/test-ctype_print.c: Likewise.
14261         * tests/unictype/test-ctype_punct.c: Likewise.
14262         * tests/unictype/test-ctype_upper.c: Likewise.
14263         * tests/unictype/test-decdigit.h: Likewise.
14264         * tests/unictype/test-digit.h: Likewise.
14265         * tests/unictype/test-numeric.h: Likewise.
14266         * tests/unictype/test-pr_alphabetic.c: Likewise.
14267         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
14268         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
14269         * tests/unictype/test-pr_bidi_european_digit.c: Likewise.
14270         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
14271         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
14272         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
14273         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
14274         * tests/unictype/test-pr_combining.c: Likewise.
14275         * tests/unictype/test-pr_composite.c: Likewise.
14276         * tests/unictype/test-pr_currency_symbol.c: Likewise.
14277         * tests/unictype/test-pr_dash.c: Likewise.
14278         * tests/unictype/test-pr_decimal_digit.c: Likewise.
14279         * tests/unictype/test-pr_deprecated.c: Likewise.
14280         * tests/unictype/test-pr_diacritic.c: Likewise.
14281         * tests/unictype/test-pr_extender.c: Likewise.
14282         * tests/unictype/test-pr_grapheme_base.c: Likewise.
14283         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
14284         * tests/unictype/test-pr_grapheme_link.c: Likewise.
14285         * tests/unictype/test-pr_id_continue.c: Likewise.
14286         * tests/unictype/test-pr_id_start.c: Likewise.
14287         * tests/unictype/test-pr_ideographic.c: Likewise.
14288         * tests/unictype/test-pr_ignorable_control.c: Likewise.
14289         * tests/unictype/test-pr_logical_order_exception.c: Likewise.
14290         * tests/unictype/test-pr_lowercase.c: Likewise.
14291         * tests/unictype/test-pr_numeric.c: Likewise.
14292         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
14293         * tests/unictype/test-pr_punctuation.c: Likewise.
14294         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
14295         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
14296         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
14297         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
14298         * tests/unictype/test-pr_uppercase.c: Likewise.
14299         * tests/unictype/test-pr_xid_continue.c: Likewise.
14300         * tests/unictype/test-pr_xid_start.c: Likewise.
14301         * tests/unictype/test-pr_zero_width.c: Likewise.
14302         * tests/unigbrk/test-uc-gbrk-prop.h: Likewise.
14303         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Update for
14304         changed behaviour: line breaking is now disallowed between a letter
14305         or '=' and '('.
14306         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
14307         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
14308         * tests/unilbrk/test-ulc-possible-linebreaks.c (main): Likewise.
14309         * tests/unilbrk/test-ulc-width-linebreaks.c (main): Likewise.
14310         * tests/uniwidth/test-uc_width2.sh: Same updates as in
14311         lib/uniwidth/width.c.
14312         * tests/uninorm/NormalizationTest.txt: Update from Unicode 5.2.0,
14313         without comments, but with the original copyright notice.
14314         * lib/unicase/special-casing-table.gperf: Regenerated; only comment
14315         changes.
14316         * lib/unictype/categ_Cc.h: Likewise.
14317         * lib/unictype/categ_Co.h: Likewise.
14318         * lib/unictype/categ_Cs.h: Likewise.
14319         * lib/unictype/categ_Lt.h: Likewise.
14320         * lib/unictype/categ_Me.h: Likewise.
14321         * lib/unictype/categ_Pc.h: Likewise.
14322         * lib/unictype/categ_Pe.h: Likewise.
14323         * lib/unictype/categ_Pf.h: Likewise.
14324         * lib/unictype/categ_Pi.h: Likewise.
14325         * lib/unictype/categ_Ps.h: Likewise.
14326         * lib/unictype/categ_Sk.h: Likewise.
14327         * lib/unictype/categ_Sm.h: Likewise.
14328         * lib/unictype/categ_Z.h: Likewise.
14329         * lib/unictype/categ_Zl.h: Likewise.
14330         * lib/unictype/categ_Zp.h: Likewise.
14331         * lib/unictype/categ_Zs.h: Likewise.
14332         * lib/unictype/ctype_blank.h: Likewise.
14333         * lib/unictype/ctype_cntrl.h: Likewise.
14334         * lib/unictype/ctype_digit.h: Likewise.
14335         * lib/unictype/ctype_space.h: Likewise.
14336         * lib/unictype/ctype_xdigit.h: Likewise.
14337         * lib/unictype/mirror.h: Likewise.
14338         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
14339         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
14340         * lib/unictype/pr_bidi_block_separator.h: Likewise.
14341         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
14342         * lib/unictype/pr_bidi_common_separator.h: Likewise.
14343         * lib/unictype/pr_bidi_control.h: Likewise.
14344         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
14345         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
14346         * lib/unictype/pr_bidi_pdf.h: Likewise.
14347         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
14348         * lib/unictype/pr_bidi_whitespace.h: Likewise.
14349         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
14350         * lib/unictype/pr_format_control.h: Likewise.
14351         * lib/unictype/pr_hex_digit.h: Likewise.
14352         * lib/unictype/pr_hyphen.h: Likewise.
14353         * lib/unictype/pr_ids_binary_operator.h: Likewise.
14354         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
14355         * lib/unictype/pr_iso_control.h: Likewise.
14356         * lib/unictype/pr_join_control.h: Likewise.
14357         * lib/unictype/pr_left_of_pair.h: Likewise.
14358         * lib/unictype/pr_line_separator.h: Likewise.
14359         * lib/unictype/pr_math.h: Likewise.
14360         * lib/unictype/pr_non_break.h: Likewise.
14361         * lib/unictype/pr_not_a_character.h: Likewise.
14362         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
14363         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
14364         * lib/unictype/pr_other_id_continue.h: Likewise.
14365         * lib/unictype/pr_other_id_start.h: Likewise.
14366         * lib/unictype/pr_other_lowercase.h: Likewise.
14367         * lib/unictype/pr_other_math.h: Likewise.
14368         * lib/unictype/pr_other_uppercase.h: Likewise.
14369         * lib/unictype/pr_paired_punctuation.h: Likewise.
14370         * lib/unictype/pr_paragraph_separator.h: Likewise.
14371         * lib/unictype/pr_pattern_syntax.h: Likewise.
14372         * lib/unictype/pr_pattern_white_space.h: Likewise.
14373         * lib/unictype/pr_private_use.h: Likewise.
14374         * lib/unictype/pr_quotation_mark.h: Likewise.
14375         * lib/unictype/pr_radical.h: Likewise.
14376         * lib/unictype/pr_soft_dotted.h: Likewise.
14377         * lib/unictype/pr_space.h: Likewise.
14378         * lib/unictype/pr_titlecase.h: Likewise.
14379         * lib/unictype/pr_variation_selector.h: Likewise.
14380         * lib/unictype/pr_white_space.h: Likewise.
14381         * lib/unictype/sy_c_ident.h: Likewise.
14382         * lib/unictype/sy_c_whitespace.h: Likewise.
14383         * lib/unictype/sy_java_whitespace.h: Likewise.
14384         * modules/uni*/*: Bump version number of expected libunistring version.
14385         Reported by Simon Josefsson.
14386
14387 2011-01-09  Karl Heuer  <kwzh@gnu.org>
14388
14389         useless-if-before-free: fix typo in --help and make the internal,
14390         automatic version date update process work once again.
14391         --help output contained a NUL character instead of the
14392         backslash-zero that was intended.  Also, the "must lie within
14393         the first 8 lines" line is on line 9, and hence not getting
14394         automatically updated.
14395         * build-aux/useless-if-before-free: Fix the former by adding a
14396         backslash, and the latter by condensing the three lines of what-it-does
14397         to a single line, leaving one line of slack for the future.
14398
14399 2011-01-09  Bruno Haible  <bruno@clisp.org>
14400
14401         uniwidth/width: Fix width of U+1D173..U+1D17A.
14402         * lib/gen-uni-tables.c (is_nonspacing, output_nonspacing_property,
14403         symbolic_width, output_width_property_test): New functions.
14404         (main): Invoke output_nonspacing_property, output_width_property_test.
14405         * lib/uniwidth/width.c (nonspacing_table_data): Set bits for
14406         U+1D173..U+1D17A.
14407         * tests/uniwidth/test-uc_width2.sh: For U+1D173..U+1D17A, expect 0, not
14408         1.
14409         * modules/uniwidth/*: Bump version number of expected libunistring
14410         version.
14411         * modules/unilbrk/*: Likewise.
14412
14413 2011-01-08  Bruno Haible  <bruno@clisp.org>
14414
14415         uninorm tests: Preserve copyright of Unicode data file.
14416         * tests/uninorm/NormalizationTest.txt: Re-add original copyright.
14417         Mention modifications.
14418
14419 2011-01-08  Bruno Haible  <bruno@clisp.org>
14420
14421         gen-uni-tables: Prepare for Unicode 5.2.0.
14422         * lib/gen-uni-tables.c (get_lbp): Allow for more than 32 LBP_* values.
14423         (debug_output_lbp, output_lbp): Update.
14424
14425 2011-01-08  Bruno Haible  <bruno@clisp.org>
14426
14427         unilbrk: Clarify gen-uni-tables.c code.
14428         * lib/gen-uni-tables.c (get_lbp): Assume REVISION_22 to be false. These
14429         were mistakes in UAX #14 revision 22 that are corrected in revision 24.
14430         Clarify what to do with unilbrk/lbrkprop.txt and uniwbrk/wbrkprop.txt.
14431
14432 2011-01-07  Bruno Haible  <bruno@clisp.org>
14433
14434         strtod: Restore errno when successfully parsing Infinity or NaN.
14435         * lib/strtod.c (strtod): After successfully parsing an Infinity or NaN,
14436         restore the original errno.
14437
14438 2011-01-07  Bruno Haible  <bruno@clisp.org>
14439
14440         remove test: Avoid failure on HP-UX 11.
14441         * tests/test-remove.c (main): Allow EEXIST as alternative error code.
14442
14443 2011-01-07  Bruno Haible  <bruno@clisp.org>
14444
14445         mkdir, mkdirat tests: Avoid failure on HP-UX 11.11.
14446         * tests/test-mkdir.h (test_mkdir): Allow EOPNOTSUPP as alternative
14447         error code.
14448
14449 2011-01-07  Pádraig Brady <P@draigBrady.com>
14450
14451         ignore-value: fixup comments, and add Eric Blake
14452         as an author since he rewrote the macros.
14453         * lib/ignore-value.h (ignore_value):  State that
14454         we now support aggregates.  Also specify exactly
14455         when the GCC warn_unused_result feature was added.
14456
14457 2011-01-06  Eric Blake  <eblake@redhat.com>
14458
14459         ignore-value: support aggregate types
14460         * lib/ignore-value.h (ignore_value): Provide separate gcc
14461         definition.
14462         * modules/ignore-value-tests: New test module.
14463         * tests/test-ignore-value.c: New test.
14464
14465         maint.mk: improve sc_prohibit_strcmp regex
14466         * top/maint.mk (sc_prohibit_strcmp): Detect strcmp()!=0, as
14467         documented.  Also, detect strcmp((expr),expr) == 0.  Exempt the
14468         definition of STRNEQ.
14469
14470         signal: work around Haiku issue with SIGBUS
14471         * lib/siglist.h: Add comment.
14472         * lib/sig2str.c (numname_table): Swap SIGBUS order, to match
14473         strsignal's favoring of SIGSEGV.
14474         * tests/test-signal.c (main): Avoid test failure.
14475         * doc/posix-headers/signal.texi (signal.h): Document the issue.
14476         Reported by Scott McCreary.
14477
14478         maint.mk: add pre-release check to ensure submodule commits are public
14479         * top/maint.mk (public-submodule-commit): New rule.
14480         (submodule-checks): New variable.
14481         (alpha beta stable): Depend on the variable.
14482
14483 2011-01-05  Pádraig Brady <P@draigBrady.com>
14484         and Jim Meyering  <meyering@redhat.com>
14485
14486         ignore-value: make ignore_value more generic; deprecate ignore_ptr
14487         * lib/ignore-value.h: Include <stdint.h>, for decl of intptr_t.
14488         (ATTRIBUTE_DEPRECATED): Define.
14489         (_ignore_case): New function.
14490         (ignore_value): New macro, to replace the old function.
14491         (ignore_ptr): Arrange for any use to evoke a deprecation warning.
14492         * modules/ignore-value (Depends-on): Add stdint.
14493
14494 2011-01-04  Eric Blake  <eblake@redhat.com>
14495
14496         doc: regenerate INSTALL
14497         * doc/Makefile (INSTALL, INSTALL.ISO, INSTALL.UTF-8): Re-add
14498         @firstparagraphindent support, now that autoconf dropped it.
14499         (INSTALL_PRELUDE): Reinstate old macro.
14500         * doc/install.texi: Resync from autoconf.
14501         * doc/INSTALL: Reflect recent autoconf update.
14502         * doc/INSTALL.ISO: Likewise.
14503         * doc/INSTALL.UTF-8: Likewise.
14504         Reported by Karl Berry.
14505
14506 2011-01-04  Bruce Korb  <address@hidden>
14507
14508         git-version-gen: avoid a sub-shell
14509         * build-aux/git-version-gen: Redirect stderr in `...` via
14510         "exec 2>...", rather than via an added sub-shell.
14511
14512 2011-01-03  Ben Pfaff  <blp@cs.stanford.edu>
14513
14514         git-version-gen: use (...) rather than sh -c '...'
14515         * build-aux/git-version-gen: Rather than hard-coding a shell's name
14516         with "sh -c '...'", just use "(...)".  Less syntax is better, too.
14517
14518 2011-01-03  Jim Meyering  <meyering@redhat.com>
14519
14520         git-version-gen: convert leading TABs to spaces
14521         * build-aux/git-version-gen: Expand leading TABs.
14522
14523         git-version-gen: handle failed "git rev-list"
14524         * build-aux/git-version-gen: Rather than leaking a "fatal" error
14525         from git and proceeding as if it had succeeded but printed no SHA1
14526         checksums, suppress the diagnostic and handle the failure.
14527         Reported by Bruce Korb in http://marc.info/?l=git&m=129399145930450&w=2
14528
14529         git-version-gen: include command name in one more diagnostic
14530         * build-aux/git-version-gen: When the required .tarball-version file
14531         was missing or unreadable, you might see the diagnostic from "cat",
14532         but no trace of the name of the invoking script.  Now, you still see
14533         the diagnostic from cat, but also get one from "git-version-gen: ".
14534         Inspired by a patch from Bruce Korb.
14535
14536         update-copyright: adjust test to match changed code
14537         * tests/test-update-copyright.sh: Change test's expected output
14538         to match new actual output.
14539
14540 2011-01-02  Bruno Haible  <bruno@clisp.org>
14541
14542         getlogin_r: Avoid test failure on HP-UX 11.
14543         * tests/test-getlogin_r.c (main): Allow an error code EINVAL instead of
14544         ERANGE when the second argument is zero.
14545         * doc/posix-functions/getlogin_r.texi: Document the HP-UX 11
14546         portability problem.
14547
14548 2011-01-02  Bruce Korb  <bkorb@gnu.org>
14549
14550         * build-aux/update-copyright: doc Simon's changes
14551
14552 2011-01-02  Simon Josefsson  <simon@josefsson.org>
14553
14554         * build-aux/update-copyright: Support UPDATE_COPYRIGHT_HOLDER
14555         environment variable.
14556
14557 2011-01-02  Bruno Haible  <bruno@clisp.org>
14558
14559         unigbrk: Avoid gcc warnings.
14560         * lib/unigbrk/u16-grapheme-breaks.c (u16_grapheme_breaks): Remove
14561         unused variable.
14562         * lib/unigbrk/u16-grapheme-prev.c (u16_grapheme_prev): Likewise.
14563         * lib/unigbrk/u8-grapheme-prev.c (u8_grapheme_prev): Likewise.
14564         * tests/unigbrk/test-u16-grapheme-breaks.c (main): Likewise.
14565         * tests/unigbrk/test-u32-grapheme-breaks.c (main): Likewise.
14566         * tests/unigbrk/test-u8-grapheme-breaks.c (test_u8_grapheme_breaks):
14567         Change type of first argument to 'const char *'.
14568         (main): Remove unused variable.
14569         * tests/unigbrk/test-u8-grapheme-next.c (test_u8_grapheme_next): Change
14570         type of first argument to 'const char *'.
14571         * tests/unigbrk/test-u8-grapheme-prev.c (test_u8_grapheme_prev):
14572         Likewise.
14573         (main): Change type of variable 's'.
14574         * tests/unigbrk/test-uc-is-grapheme-break.c (main): Cast column number
14575         to 'int'.
14576
14577 2011-01-02  Bruno Haible  <bruno@clisp.org>
14578
14579         pwrite: Fix test whether it works and make it work on HP-UX 11.11.
14580         * m4/pwrite.m4 (gl_FUNC_PWRITE): Use AC_LANG_PROGRAM, not
14581         AC_LANG_SOURCE. Extend the test program to catch another HP-UX 11.11
14582         bug.
14583         * lib/pwrite.c: Undo 2010-12-31 patch.
14584         * doc/posix-functions/pwrite.texi: Document another HP-UX 11.11 bug.
14585
14586 2011-01-02  Bruno Haible  <bruno@clisp.org>
14587
14588         pread: Fix test whether it works.
14589         * m4/pread.m4 (gl_FUNC_PREAD): Use AC_LANG_PROGRAM, not AC_LANG_SOURCE.
14590
14591 2011-01-02  Bruno Haible  <bruno@clisp.org>
14592
14593         Fix detection of traditional Arabic locale on HP-UX, Solaris, Cygwin.
14594         * m4/locale-ar.m4 (gt_LOCALE_AR): Require that the locale encoding name
14595         ends in "6". Don't require a specific month name. Try also the locale
14596         names found on HP-UX 11 and Solaris 7.
14597
14598 2011-01-02  Bruno Haible  <bruno@clisp.org>
14599
14600         tcgetsid: Correct linkage in C++ mode on HP-UX 11.00.
14601         * lib/termios.in.h: In C++ mode, on HP-UX, include <sys/termios.h> with
14602         C linkage.
14603         * doc/posix-functions/tcgetsid.texi: Mention the HP-UX 11.00 bug.
14604
14605 2011-01-01  Ben Pfaff  <blp@cs.stanford.edu>
14606
14607         Rename uc_is_grapheme_cluster_break() to uc_is_grapheme_break()
14608         for consistency, since the "cluster" term is not used elsewhere.
14609         * lib/unigbrk.in.h: Update name.
14610         * lib/unigbrk/u16-grapheme-breaks.c: Update name.
14611         * lib/unigbrk/u16-grapheme-next.c: Update name.
14612         * lib/unigbrk/u16-grapheme-prev.c: Update name.
14613         * lib/unigbrk/u32-grapheme-breaks.c: Update name.
14614         * lib/unigbrk/u32-grapheme-next.c: Update name.
14615         * lib/unigbrk/u32-grapheme-prev.c: Update name.
14616         * lib/unigbrk/u8-grapheme-breaks.c: Update name.
14617         * lib/unigbrk/u8-grapheme-next.c: Update name.
14618         * lib/unigbrk/u8-grapheme-prev.c: Update name.
14619         * lib/unigbrk/uc-is-grapheme-break.c: Update name.
14620         * tests/unigbrk/test-uc-is-grapheme-break.c: Update name.
14621         Suggested by Bruno Haible.
14622
14623 2011-01-01  Ben Pfaff  <blp@cs.stanford.edu>
14624
14625         Remove module 'u8-grapheme-len' as too redundant with
14626         'u8-grapheme-next'.
14627         * modules/unigbrk/u8-grapheme-len: Delete file.
14628         * modules/unigbrk/u8-grapheme-len-tests: Delete file.
14629         * lib/unigbrk.in.h: Remove prototype for deleted function.
14630         * lib/unigbrk/u8-grapheme-len.c: Delete file.
14631         * tests/unigbrk/test-u8-grapheme-len.c: Delete file.
14632
14633         Remove module 'u16-grapheme-len' as too redundant with
14634         'u16-grapheme-next'.
14635         * modules/unigbrk/u16-grapheme-len: Delete file.
14636         * modules/unigbrk/u16-grapheme-len-tests: Delete file.
14637         * lib/unigbrk.in.h: Remove prototype for deleted function.
14638         * lib/unigbrk/u16-grapheme-len.c: Delete file.
14639         * tests/unigbrk/test-u16-grapheme-len.c: Delete file.
14640
14641         Remove module 'u32-grapheme-len' as too redundant with
14642         'u32-grapheme-next'.
14643         * modules/unigbrk/u32-grapheme-len: Delete file.
14644         * modules/unigbrk/u32-grapheme-len-tests: Delete file.
14645         * lib/unigbrk.in.h: Remove prototype for deleted function.
14646         * lib/unigbrk/u32-grapheme-len.c: Delete file.
14647         * tests/unigbrk/test-u32-grapheme-len.c: Delete file.
14648
14649         Suggested by Bruno Haible.
14650
14651 2011-01-01  Ben Pfaff  <blp@cs.stanford.edu>
14652
14653         * unigbrk.in.h: Fix typo: "ben" => "been".
14654         Reported by Bruno Haible.
14655
14656 2011-01-01  Jim Meyering  <meyering@redhat.com>
14657
14658         maint: update almost all copyright ranges to include 2011
14659         Run the new "make update-copyright" rule.
14660
14661 2011-01-01  Jim Meyering  <meyering@redhat.com>
14662
14663         maint: update-copyright: exempt doc/INSTALL*
14664         * Makefile (update-copyright): Also exclude doc/INSTALL*,
14665         since they are generated.  Suggested by Bruno Haible.
14666
14667 2011-01-01  Jim Meyering  <meyering@redhat.com>
14668
14669         maint: refine the update-copyright rule
14670         * Makefile (update-copyright): Also exclude any file that includes
14671         the "GENERATED AUTOMATICALLY" comment, being careful not to exclude
14672         code that merely generates the comment.
14673
14674 2010-12-31  Ben Pfaff  <blp@cs.stanford.edu>
14675
14676         New module 'u8-grapheme-len'.
14677         * modules/unigbrk/u8-grapheme-len: New file.
14678         * modules/unigbrk/u8-grapheme-len-tests: New file.
14679         * lib/unigbrk.in.h: Add prototype for new function.
14680         * lib/unigbrk/u8-grapheme-len.c: New file.
14681         * tests/unigbrk/test-u8-grapheme-len.c: New file.
14682
14683         New module 'u16-grapheme-len'.
14684         * modules/unigbrk/u16-grapheme-len: New file.
14685         * modules/unigbrk/u16-grapheme-len-tests: New file.
14686         * lib/unigbrk.in.h: Add prototype for new function.
14687         * lib/unigbrk/u16-grapheme-len.c: New file.
14688         * tests/unigbrk/test-u16-grapheme-len.c: New file.
14689
14690         New module 'u32-grapheme-len'.
14691         * modules/unigbrk/u32-grapheme-len: New file.
14692         * modules/unigbrk/u32-grapheme-len-tests: New file.
14693         * lib/unigbrk.in.h: Add prototype for new function.
14694         * lib/unigbrk/u32-grapheme-len.c: New file.
14695         * tests/unigbrk/test-u32-grapheme-len.c: New file.
14696
14697         New module 'u8-grapheme-next'.
14698         * modules/unigbrk/u8-grapheme-next: New file.
14699         * modules/unigbrk/u8-grapheme-next-tests: New file.
14700         * lib/unigbrk.in.h: Add prototype for new function.
14701         * lib/unigbrk/u8-grapheme-next.c: New file.
14702         * tests/unigbrk/test-u8-grapheme-next.c: New file.
14703
14704         New module 'u16-grapheme-next'.
14705         * modules/unigbrk/u16-grapheme-next: New file.
14706         * modules/unigbrk/u16-grapheme-next-tests: New file.
14707         * lib/unigbrk.in.h: Add prototype for new function.
14708         * lib/unigbrk/u16-grapheme-next.c: New file.
14709         * tests/unigbrk/test-u16-grapheme-next.c: New file.
14710
14711         New module 'u32-grapheme-next'.
14712         * modules/unigbrk/u32-grapheme-next: New file.
14713         * modules/unigbrk/u32-grapheme-next-tests: New file.
14714         * lib/unigbrk.in.h: Add prototype for new function.
14715         * lib/unigbrk/u32-grapheme-next.c: New file.
14716         * tests/unigbrk/test-u32-grapheme-next.c: New file.
14717
14718         New module 'u8-grapheme-prev'.
14719         * modules/unigbrk/u8-grapheme-prev: New file.
14720         * modules/unigbrk/u8-grapheme-prev-tests: New file.
14721         * lib/unigbrk.in.h: Add prototype for new function.
14722         * lib/unigbrk/u8-grapheme-prev.c: New file.
14723         * tests/unigbrk/test-u8-grapheme-prev.c: New file.
14724
14725         New module 'u16-grapheme-prev'.
14726         * modules/unigbrk/u16-grapheme-prev: New file.
14727         * modules/unigbrk/u16-grapheme-prev-tests: New file.
14728         * lib/unigbrk.in.h: Add prototype for new function.
14729         * lib/unigbrk/u16-grapheme-prev.c: New file.
14730         * tests/unigbrk/test-u16-grapheme-prev.c: New file.
14731
14732         New module 'u32-grapheme-prev'.
14733         * modules/unigbrk/u32-grapheme-prev: New file.
14734         * modules/unigbrk/u32-grapheme-prev-tests: New file.
14735         * lib/unigbrk.in.h: Add prototype for new function.
14736         * lib/unigbrk/u32-grapheme-prev.c: New file.
14737         * tests/unigbrk/test-u32-grapheme-prev.c: New file.
14738
14739         New module 'u8-grapheme-breaks'.
14740         * modules/unigbrk/u8-grapheme-breaks: New file.
14741         * modules/unigbrk/u8-grapheme-breaks-tests: New file.
14742         * lib/unigbrk.in.h: Add prototype for new function.
14743         * lib/unigbrk/u8-grapheme-breaks.c: New file.
14744         * tests/unigbrk/test-u8-grapheme-breaks.c: New file.
14745
14746         New module 'u16-grapheme-breaks'.
14747         * modules/unigbrk/u16-grapheme-breaks: New file.
14748         * modules/unigbrk/u16-grapheme-breaks-tests: New file.
14749         * lib/unigbrk.in.h: Add prototype for new function.
14750         * lib/unigbrk/u16-grapheme-breaks.c: New file.
14751         * tests/unigbrk/test-u16-grapheme-breaks.c: New file.
14752
14753         New module 'u32-grapheme-breaks'.
14754         * modules/unigbrk/u32-grapheme-breaks: New file.
14755         * modules/unigbrk/u32-grapheme-breaks-tests: New file.
14756         * lib/unigbrk.in.h: Add prototype for new function.
14757         * lib/unigbrk/u32-grapheme-breaks.c: New file.
14758         * tests/unigbrk/test-u32-grapheme-breaks.c: New file.
14759
14760         New module 'ulc-grapheme-breaks'.
14761         * modules/unigbrk/ulc-grapheme-breaks: New file.
14762         * modules/unigbrk/ulc-grapheme-breaks-tests: New file.
14763         * m4/locale-ar.m4: New file.
14764         * lib/unigbrk/ulc-grapheme-breaks.c: New file.
14765         * tests/unigbrk/test-ulc-grapheme-breaks.c: New file.
14766         * tests/unigbrk/test-ulc-grapheme-breaks.sh: New file.
14767
14768 2010-12-31  Ben Pfaff  <blp@cs.stanford.edu>
14769
14770         gbrkprop: Fix implementation of uc_graphemeclusterbreak_property.
14771         * lib/unigbrk/gbrkprop.h: Regenerate with gen-uni-tables.c.  I had
14772         modified how this file was generated before I initially submitted
14773         the module, but failed to regenerate it.  This meant that several
14774         of the level2 entries were wrong.
14775         * lib/unigbrk/uc-gbrk-prop.h (uc_graphemeclusterbreak_property):
14776         Remove the division-by-2 that is folded into the table now that
14777         gbrkprop.h has been regenerated properly.  Now -1 entries are
14778         handled correctly.
14779
14780         New module 'unigbrk/uc-gbrk-prop-tests'.
14781         * modules/unigbrk/uc-gbrk-prop-tests: New file.
14782         * lib/gen-uni-tables.c: Generate tests/test-uc-gbrk-prop.h.
14783         * tests/unigbrk/test-uc-gbrk-prop.c: New file.
14784         * tests/unigbrk/test-uc-gbrk-prop.h: New file.
14785
14786 2011-01-01  Bruno Haible  <bruno@clisp.org>
14787
14788         Avoid use of hexadecimal escapes.
14789         * tests/unigbrk/test-uc-is-grapheme-break.c (main): Use octal escapes
14790         instead of hexadecimal escapes.
14791
14792 2011-01-01  Jim Meyering  <meyering@redhat.com>
14793
14794         maint: new rule to update copyright year ranges
14795         * Makefile (update-copyright): New rule.
14796
14797         maint: indent with TABs in Makefile
14798         * Makefile: Expand leading sequences of spaces to TABs
14799
14800         version-etc: update the copyright year it reports
14801         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2011.
14802
14803 2010-12-31  Bruno Haible  <bruno@clisp.org>
14804
14805         isfinite: Avoid compiler bug of "cc -O" on HP-UX 11.11.
14806         * lib/isfinite.c (zerof, zerod, zerol): New variables.
14807         (gl_isfinitef, gl_isfinited, gl_isfinitel): Use them instead of literal
14808         zero.
14809
14810 2010-12-31  Bruno Haible  <bruno@clisp.org>
14811
14812         pwrite: Work around HP-UX 11.11 bug.
14813         * m4/pwrite.m4 (gl_FUNC_PWRITE): When pwrite exists, test whether it
14814         works and set REPLACE_PWRITE if not.
14815         * lib/pwrite.c (pwrite): Add an implementation that uses the system
14816         function.
14817         * doc/posix-functions/pwrite.texi: Document the HP-UX 11 bug.
14818
14819 2010-12-31  Bruno Haible  <bruno@clisp.org>
14820
14821         pread: Work around HP-UX 11 bugs.
14822         * m4/pread.m4 (gl_FUNC_PREAD): When pread exists, test whether it works
14823         and set REPLACE_PREAD if not.
14824         * doc/posix-functions/pread.texi: Document the HP-UX 11 bugs.
14825
14826 2010-12-31  Eric Blake  <eblake@redhat.com>
14827
14828         nl_langinfo: fix YESEXPR on Irix 6.5
14829         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Test for Irix bug.
14830         * lib/nl_langinfo.c (rpl_nl_langinfo): Work around it.
14831         * doc/posix-functions/nl_langinfo.texi (nl_langinfo): Document
14832         it.
14833
14834 2010-12-31  Bruno Haible  <bruno@clisp.org>
14835
14836         iconv: Document HP-UX 11 bug.
14837         * doc/posix-functions/iconv.texi: Document HP-UX 11 return value bug.
14838
14839 2010-12-31  Bruno Haible  <bruno@clisp.org>
14840
14841         ldexpl: Fix link error on HP-UX 11.
14842         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): When replacing ldexpl, set
14843         LDEXPL_LIBM, using $ISNANL_LIBM.
14844
14845 2010-12-31  Eric Blake  <eblake@redhat.com>
14846
14847         ftello: avoid compilation failure with SunStudio c89
14848         * lib/ftello.c (ftello): Use lseek, not llseek.
14849
14850         tests: avoid failing coreutils tests on cygwin
14851         * tests/init.sh (find_exe_basenames_): Exempt [.exe.
14852         (create_exe_shims_): Return 0 when skipping.
14853
14854 2010-12-31  Bruno Haible  <bruno@clisp.org>
14855
14856         sys_select: Avoid warning about missing memset declaration on HP-UX 11.
14857         * lib/sys_select.in.h: On HP-UX, include also <string.h>.
14858
14859 2010-12-31  Bruno Haible  <bruno@clisp.org>
14860
14861         waitpid: Fix link error in C++ mode.
14862         * lib/sys_wait.in.h: Remove extern "C" { ... } group.
14863
14864 2010-12-31  Bruno Haible  <bruno@clisp.org>
14865
14866         isnan: Use GCC built-ins when possible.
14867         * lib/math.in.h (gl_isnan_f): Use __builtin_isnanf instead of
14868         __builtin_isnan.
14869         (gl_isnan_l): Use __builtin_isnanl instead of __builtin_isnan.
14870         (isnan): Define using GCC built-ins for GCC >= 4.0.
14871
14872 2010-12-31  Bruno Haible  <bruno@clisp.org>
14873
14874         isnand: Fix mistake.
14875         * m4/isnand.m4 (gl_HAVE_ISNAND_IN_LIBM): Use __builtin_isnan, not
14876         __builtin_isnand.
14877
14878 2010-12-31  Bruno Haible  <bruno@clisp.org>
14879
14880         open: Avoid C++ error on HP-UX 11.
14881         * lib/fcntl.in.h (open): Disable _GL_CXXALIASWARN invocation on HP-UX.
14882
14883 2010-12-31  Bruno Haible  <bruno@clisp.org>
14884
14885         time_r: Add missing declarations on HP-UX 11.
14886         * lib/time.in.h (localtime_r, gmtime_r): Test HAVE_DECL_LOCALTIME_R
14887         instead of HAVE_LOCALTIME_R.
14888         * m4/time_r.m4 (gl_TIME_R): Test whether localtime_r is declared. Set
14889         HAVE_LOCALTIME_R always.
14890         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize
14891         HAVE_DECL_LOCALTIME_R, not HAVE_LOCALTIME_R.
14892         * modules/time (Makefile.am): Substitute HAVE_DECL_LOCALTIME_R, not
14893         HAVE_LOCALTIME_R.
14894         * doc/posix-functions/gmtime_r.texi: Document the HP-UX 11 problem.
14895         * doc/posix-functions/localtime_r.texi: Likewise.
14896
14897 2010-12-29  Eric Blake  <eblake@redhat.com>
14898
14899         mountlist: tweak previous commit
14900         * lib/mountlist.c (me_remote): Guarantee trailing backslash.
14901         Reported by Paul Eggert.
14902
14903         mountlist: fix local drive detection on cygwin
14904         * lib/mountlist.c (ME_REMOTE) [__CYGWIN__]: Provide implementation
14905         that works for cygwin.
14906
14907 2010-12-29  Paul Eggert  <eggert@cs.ucla.edu>
14908
14909         ftoastr, snprintf: ftoastr + snprintf module
14910         * lib/ftoastr.c: Use GNULIB_SNPRINTF, not GNULIB_SNPRINTF_POSIX,
14911         since the snprintf module now should be good enough here.
14912         * modules/snprintf (configure.ac): Add gl_MODULE_INDICATOR([snprintf]).
14913         It seems odd to have both gl_STDIO_MODULE_INDICATOR([snprintf])
14914         and gl_MODULE_INDICATOR([snprintf]), but the former enables
14915         GNULIB_SNPRINTF only for the test directory, and the latter
14916         doesn't arrange for gl_STDIO_H_DEFAULTS to be called, so neither
14917         seems to suffice by itself.
14918
14919 2010-12-28  Paul Eggert  <eggert@cs.ucla.edu>
14920
14921         alloca: one step towards thread-safety
14922         * lib/alloca.c (find_stack_direction): New arg PTR, to avoid the
14923         need for a static variable.  All callers changed.  This does not
14924         make the alloca replacement thread-safe, but it's one step.
14925
14926         tests: minor indenting change
14927         * tests/init.sh: Sync from coreutils housekeeping patch
14928         <http://lists.gnu.org/archive/html/coreutils/2010-12/msg00116.html>
14929         to keep lines within 80 columns.
14930
14931 2010-12-28  Jim Meyering  <meyering@redhat.com>
14932
14933         regex: don't infloop on persistent failing calloc
14934         * lib/regexec.c (build_trtable): Return failure indication upon
14935         calloc failure.  Otherwise, re_search_internal could infloop on OOM.
14936         In glibc, this was fixed for version 2.13:
14937         http://sourceware.org/bugzilla/show_bug.cgi?id=12348
14938
14939 2010-12-28  Bruno Haible  <bruno@clisp.org>
14940             Paul Eggert <eggert@cs.ucla.edu>
14941
14942         linkat: Make implementation robust against system behaviour variations.
14943         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Define
14944         LINK_FOLLOWS_SYMLINKS to -1 if it needs a runtime test in the Solaris
14945         way, and to -2 if it needs a generic runtime test.
14946         * lib/linkat.c (solaris_optimized_link_immediate,
14947         solaris_optimized_link_follow): New functions.
14948         * tests/test-linkat.c (EXPECT_LINK_HARDLINKS_SYMLINKS): New macro.
14949         (check_same_link): Use it.
14950
14951 2010-12-26  Ben Pfaff  <blp@cs.stanford.edu>
14952
14953         New module 'unigbrk/base'.
14954         * modules/unigbrk/base: New file.
14955         * lib/unigbrk.in.h: New file.
14956
14957         New module 'unigbrk/uc-gbrk-prop'.
14958         * lib/gen-uni-tables.c: Generate lib/unigbrk/gbrkprop.h.
14959         * modules/unigbrk/uc-gbrk-prop: New file.
14960         * lib/unigbrk/gbrkprop.h: New file.
14961         * lib/unigbrk/uc-gbrk-prop.c: New file.
14962
14963         New module 'unigbrk/uc-is-grapheme-break'.
14964         * modules/unigbrk/uc-is-grapheme-break: New file.
14965         * modules/unigbrk/uc-is-grapheme-break-tests: New file.
14966         * lib/unigbrk/uc-is-grapheme-break.c: New file.
14967         * tests/unigbrk/test-uc-is-grapheme-break.c: New file.
14968         * tests/unigbrk/test-uc-is-grapheme-break.sh: New file.
14969         * tests/unigbrk/GraphemeBreakTest.txt: New file.
14970
14971         With corrections and tweaks by Bruno Haible <bruno@clisp.org>.
14972
14973 2010-12-27  Bruno Haible  <bruno@clisp.org>
14974
14975         linkat test: Avoid failure on Solaris 11 2010-11.
14976         * tests/test-linkat.c (main): Allow ENOTDIR as alternative error code.
14977
14978 2010-12-27  Paul Eggert  <eggert@cs.ucla.edu>
14979
14980         utimens: work around glibc rounding bug on more platforms
14981         * lib/utimens.c (fdutimens): Work around rounding bug even if
14982         HAVE_WORKING_UTIMES.  Reported for Linux 2.4.21 by Bruno Haible in
14983         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00298.html>.
14984
14985 2010-12-27  Bruno Haible  <bruno@clisp.org>
14986
14987         select tests: Improve comments.
14988         * tests/test-select.c (do_select): Add comments.
14989
14990 2010-12-27  Bruno Haible  <bruno@clisp.org>
14991
14992         select tests: Safer way of handling timeout.
14993         * tests/test-select.c (do_select_nowait): Zero-initialize the timeout
14994         at every invocation.
14995
14996 2010-12-27  Bruno Haible  <bruno@clisp.org>
14997
14998         select tests: Use 'bool' where appropriate.
14999         * tests/test-select.c (connect_to_socket): Change argument type to
15000         'bool'.
15001
15002 2010-12-27  Bruno Haible  <bruno@clisp.org>
15003
15004         select tests: Use existing modules.
15005         * modules/select-tests (Depends-on): Add pipe-posix, unistd.
15006         (configure.ac): Don't test for unistd.h.
15007         * tests/test-select.c: Include <unistd.h> always. Use pipe() as
15008         declared in <unistd.h>.
15009
15010 2010-12-27  Bruno Haible  <bruno@clisp.org>
15011
15012         mbrtowc: Work around a Solaris 7 bug.
15013         * m4/mbrtowc.m4 (gl_MBRTOWC_NULL_ARG1): New macro.
15014         (gl_MBRTOWC_NULL_ARG2): Renamed from gl_MBRTOWC_NULL_ARG.
15015         (gl_FUNC_MBRTOWC): Update. Define MBRTOWC_NULL_ARG2_BUG instead of
15016         MBRTOWC_NULL_ARG_BUG. Invoke gl_MBRTOWC_NULL_ARG1 and define
15017         MBRTOWC_NULL_ARG1_BUG.
15018         * lib/mbrtowc.c (rpl_mbrtowc): Use MBRTOWC_NULL_ARG2_BUG instead of
15019         MBRTOWC_NULL_ARG_BUG. Handle MBRTOWC_NULL_ARG1_BUG.
15020         * tests/test-mbrtowc.c (main): Test support of a NULL first argument.
15021         * doc/posix-functions/mbrtowc.texi: Mention the Solaris 7 bug.
15022
15023 2010-12-27  Jim Meyering  <meyering@redhat.com>
15024
15025         read-file.c: tweak syntax
15026         * lib/read-file.c (fread_file): Remove space after "*" in function
15027         definitions.
15028
15029 2010-12-27  Bruno Haible  <bruno@clisp.org>
15030
15031         times test: Avoid gcc warnings on OSF/1.
15032         * tests/test-times.c (main): Cast printf arguments from clock_t to
15033         'long int'.
15034
15035 2010-12-27  Paul Eggert  <eggert@cs.ucla.edu>
15036
15037         utimens: work around glibc rounding bug on older Linux kernels
15038         * lib/utimens.c (fdutimens): If invoking futimesat or futimes
15039         on Linux with a glibc whose utimes might not work, then work
15040         around a longstanding glibc bug involving rounding rather than
15041         truncated time stamps.  Reported for Linux 2.4.21 by Bruno Haible in
15042         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00113.html>.
15043
15044 2010-12-26  Bruno Haible  <bruno@clisp.org>
15045
15046         inet_ntop: Hide mismatch of declaration on NonStop Kernel.
15047         * lib/arpa_inet.in.h (inet_ntop): Use _GL_CXXALIAS_SYS_CAST instead of
15048         _GL_CXXALIAS_SYS.
15049         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
15050
15051 2010-12-26  Bruno Haible  <bruno@clisp.org>
15052
15053         inet_ntop, inet_pton: Ensure declaration on NonStop Kernel.
15054         * lib/arpa_inet.in.h: On NonStop Kernel, include also <netdb.h>.
15055         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Likewise.
15056         * m4/inet_ntop.m4 (gl_PREREQ_INET_NTOP): Include also <netdb.h> when
15057         looking for the declaration.
15058         * m4/inet_pton.m4 (gl_PREREQ_INET_PTON): Likewise.
15059         * doc/posix-functions/inet_ntop.texi: Document the NonStop Kernel
15060         problem.
15061         * doc/posix-functions/inet_pton.texi: Likewise.
15062
15063 2010-12-26  Bruno Haible  <bruno@clisp.org>
15064
15065         arpa_inet: Use the common idioms with C++ support.
15066         * lib/arpa_inet.in.h: Include c++defs.h.
15067         (inet_ntop, inet_pton): Declare using the macros with C++ namespace
15068         support.
15069         * modules/arpa_inet (Depends-on): Add c++defs.
15070         (Makefile.am): Substitute the contents of c++defs.h.
15071         * modules/arpa_inet-tests (Depends-on): Add arpa_inet-c++-tests.
15072         * modules/arpa_inet-c++-tests: New file.
15073         * tests/test-arpa_inet-c++.cc: New file.
15074
15075 2010-12-25  Bruno Haible  <bruno@clisp.org>
15076
15077         Fix more C++ link errors on Solaris 8.
15078         * modules/fcntl-h-c++-tests (test_fcntl_h_c___LDADD): Add
15079         $(LIB_EACCESS).
15080         * modules/stdio-c++-tests (test_stdio_c___LDADD): Likewise.
15081         * modules/stdlib-c++-tests (test_stdlib_c___LDADD): Likewise.
15082         * modules/sys_ioctl-c++-tests (test_sys_ioctl_c___LDADD): Likewise.
15083         * modules/wchar-c++-tests (test_wchar_c___LDADD): Likewise.
15084         * modules/wctype-c++-tests (test_wctype_c___LDADD): Likewise.
15085
15086 2010-12-25  Bruno Haible  <bruno@clisp.org>
15087
15088         printf-posix: Fix link error when a non-GCC compiler is used.
15089         * lib/stdio.in.h (printf): When not using GCC, override printf
15090         correctly.
15091         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
15092
15093 2010-12-25  Bruno Haible  <bruno@clisp.org>
15094
15095         strerror_r-posix: Update doc.
15096         * doc/posix-functions/strerror_r.texi: Update doc about the return
15097         value. See <http://sources.redhat.com/bugzilla/show_bug.cgi?id=12204>.
15098
15099 2010-12-25  Paul Eggert  <eggert@cs.ucla.edu>
15100
15101         utimens: simplify the logic of the previous change
15102         * m4/utimes.m4 (gl_FUNC_UTIMES): Simplify the logic a bit.
15103         This should not affect whether the test succeeds or fails.
15104
15105         utimens: configure better on hosts with NFS clock skew
15106         * m4/utimes.m4 (gl_FUNC_UTIMES): Don't assume that utimes (f, NULL)
15107         uses the clock of the local host.  It might use the clock of the
15108         NFS server.  Reported for Linux 2.4.21 client by Bruno Haible in
15109         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00113.html>.
15110
15111 2010-12-25  Bruno Haible  <bruno@clisp.org>
15112
15113         ptsname test: Avoid failure on Solaris.
15114         * tests/test-ptsname.c (main): For Solaris, use the recommended way to
15115         open a pseudo-terminal; don't use BSD-style ptys.
15116         * doc/posix-functions/ptsname.texi: Document the limitation on Solaris.
15117
15118 2010-12-25  Bruno Haible  <bruno@clisp.org>
15119
15120         ptsname: Avoid ERANGE failure on some systems.
15121         * lib/ptsname.c (buffer): Increase size.
15122
15123 2010-12-25  Bruno Haible  <bruno@clisp.org>
15124
15125         rename, renameat: Avoid test failures at NFS mounted locations.
15126         * tests/test-rename.h (assert_nonexistent): Remove the old directory,
15127         so that subsequent mkdir calls succeed.
15128
15129 2010-12-25  Bruno Haible  <bruno@clisp.org>
15130
15131         iswblank: Fix C++ link error on Solaris 8.
15132         * lib/wctype.in.h (iswblank): Declare using _GL_FUNCDECL_RPL or
15133         _GL_FUNCDECL_SYS.
15134
15135 2010-12-25  Bruno Haible  <bruno@clisp.org>
15136
15137         unistd: Fix C++ link error on Solaris 8.
15138         * modules/unistd-c++-tests (test_unistd_c___LDADD): Add $(LIB_EACCESS).
15139
15140 2010-12-25  Bruno Haible  <bruno@clisp.org>
15141
15142         readlink doc: Mention an old glibc bug.
15143         * doc/posix-functions/readlink.texi: Mention glibc 2.4 bug (BZ #2450).
15144
15145 2010-12-25  Bruno Haible  <bruno@clisp.org>
15146
15147         fcntl-h: Fix for use of C++ on glibc systems.
15148         * lib/fcntl.in.h: Include <sys/stat.h> before include_next <fcntl.h>
15149         also on glibc systems in C++ mode.
15150         Reported by Gary V. Vaughan <gary@gnu.org>.
15151
15152 2010-12-25  Bruno Haible  <bruno@clisp.org>
15153
15154         roundl-ieee: Make it work on OSF/1 5.1 with cc.
15155         * modules/roundl-ieee (Depends-on): Add floorl-ieee, ceill-ieee.
15156
15157 2010-12-25  Bruno Haible  <bruno@clisp.org>
15158
15159         truncl-ieee: Make it work on OSF/1 5.1 with cc.
15160         * doc/posix-functions/truncl.texi: Mention the OSF/1 5.1 bug.
15161         * m4/truncl.m4 (gl_FUNC_TRUNCL): If gl_FUNC_TRUNCL_IEEE is also used,
15162         test whether truncl works according to ISO C 99 with IEC 60559.
15163         * m4/truncl-ieee.m4: New file.
15164         * modules/truncl-ieee (Files): Add it and m4/minus-zero.m4,
15165         m4/signbit.m4.
15166         (configure.ac): Invoke gl_FUNC_TRUNCL_IEEE.
15167
15168 2010-12-25  Bruno Haible  <bruno@clisp.org>
15169
15170         ceill-ieee: Make it work on OSF/1 5.1 with cc.
15171         * doc/posix-functions/ceill.texi: Mention the OSF/1 5.1 bug.
15172         * m4/ceill.m4 (gl_FUNC_CEILL): If gl_FUNC_CEILL_IEEE is also used,
15173         test whether ceill works according to ISO C 99 with IEC 60559.
15174         * m4/ceill-ieee.m4: New file.
15175         * modules/ceill-ieee (Files): Add it and m4/minus-zero.m4,
15176         m4/signbit.m4.
15177         (configure.ac): Invoke gl_FUNC_CEILL_IEEE.
15178
15179 2010-12-25  Bruno Haible  <bruno@clisp.org>
15180
15181         Ensure all prerequisites of <wchar.h> are included.
15182         * m4/btowc.m4 (gl_FUNC_BTOWC): Include <stddef.h>, <stdio.h>, <time.h>
15183         before <wchar.h>.
15184         * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL,
15185         gl_MBRLEN_NUL_RETVAL): Likewise.
15186         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
15187         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL,
15188         AC_FUNC_MBRTOWC): Likewise.
15189         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
15190         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Likewise.
15191         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
15192         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION, gl_WCSRTOMBS_NULL):
15193         Likewise.
15194         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
15195         * m4/wchar_h.m4 (gl_WCHAR_H_INLINE_OK): Likewise.
15196         (gl_WCHAR_H): Improve comments.
15197         * m4/wctype_h.m4 (gl_WCTYPE_H): Likewise.
15198
15199 2010-12-25  Bruno Haible  <bruno@clisp.org>
15200
15201         strtok_r: Fix C syntax error in autoconf macro.
15202         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Don't use UTF-8 encoded U+00A0
15203         characters in test program.
15204
15205 2010-12-24  Bruno Haible  <bruno@clisp.org>
15206
15207         ceil, trunc, round: Fix gcc warnings.
15208         * lib/ceil.c (MIN): Undefine before redefining.
15209         * lib/trunc.c (MIN): Likewise.
15210         * lib/round.c (MIN): Likewise.
15211         Include <math.h> first.
15212
15213 2010-12-24  Bruno Haible  <bruno@clisp.org>
15214
15215         select tests: Avoid failures on OSF/1 5.1.
15216         * tests/test-select.c (test_accept_first, test_socket_pair): Ignore
15217         failure of closing the last socket; it may fail with ECONNRESET.
15218
15219 2010-12-24  Eric Blake  <eblake@redhat.com>
15220
15221         stdint: avoid HP-UX 10.20 preprocessor bug
15222         * lib/stdint.in.h (INT64_MAX, UINT64_MAX): Check via #ifdef rather
15223         than #if.
15224         * tests/test-floor2.c (main): Likewise.
15225         Reported by Peter O'Gorman.
15226
15227         pipe: make obsoletion transition easier
15228         * lib/pipe.h: Restore file as thin shim around "spawn-pipe.h".
15229         * modules/pipe (Files): Include revived file.
15230         (Include): Drop reference, to mirror getdate's behavior.
15231
15232 2010-12-24  Bruno Haible  <bruno@clisp.org>
15233
15234         sys_socket: Hide mismatch of declarations on NonStop Kernel.
15235         * lib/sys_socket.in.h (connect, bind, sendto, setsockopt): Use
15236         _GL_CXXALIAS_SYS_CAST instead of _GL_CXXALIAS_SYS.
15237         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
15238
15239 2010-12-24  Bruno Haible  <bruno@clisp.org>
15240
15241         gethostname: Ensure declaration on NonStop Kernel.
15242         * lib/unistd.in.h: Include <netdb.h> also on NonStop Kernel systems.
15243         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
15244
15245 2010-12-24  Bruno Haible  <bruno@clisp.org>
15246
15247         sys_select: Ensure all necessary types on NonStop Kernel.
15248         * lib/sys_select.in.h: If the system does not have <sys/select.h>,
15249         include <sys/time.h>.
15250         * doc/posix-headers/sys_select.texi: Mention that it's missing on
15251         NonStop Kernel.
15252         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
15253
15254 2010-12-24  Bruno Haible  <bruno@clisp.org>
15255
15256         sys_select: Remove unneeded include.
15257         * lib/sys_select.in.h: Don't include <sys/socket.h> on platforms that
15258         have <sys/select.h>.
15259
15260 2010-12-24  Bruno Haible  <bruno@clisp.org>
15261
15262         gethostname: Provide a fallback for HOST_NAME_MAX.
15263         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): When neither HOST_NAME_MAX
15264         nor MAXHOSTNAMELEN is found in the usual system headers, use 256
15265         instead.
15266         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
15267
15268 2010-12-24  Bruno Haible  <bruno@clisp.org>
15269
15270         sigaction tests: Allow missing SA_RESETHAND and SA_RESTART.
15271         * tests/test-sigaction.c (SA_RESETHAND): Fall back to 0.
15272         (SA_RESTART): Likewise.
15273         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
15274
15275 2010-12-24  Bruno Haible  <bruno@clisp.org>
15276
15277         signal: Define NSIG.
15278         * lib/signal.in.h (NSIG): Define to 32 on NonStop Kernel.
15279         * tests/test-signal.c (nsig): New variable.
15280         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
15281
15282 2010-12-24  Bruno Haible  <bruno@clisp.org>
15283
15284         rename, renameat: Avoid test failures on OSF/1 5.1.
15285         * tests/test-rename.h (test_rename): Allow EEXIST and ENOTDIR as
15286         alternative error codes.
15287         * tests/test-renameat.c (main): Likewise.
15288
15289 2010-12-24  Bruno Haible  <bruno@clisp.org>
15290
15291         *printf: Detect large precisions bug on Solaris 10/SPARC.
15292         * m4/printf.m4 (gl_PRINTF_PRECISION): Add one more test code, provided
15293         by Paul Eggert.
15294         * tests/test-snprintf-posix.h (test_function): Add this test code here
15295         too.
15296         * tests/test-sprintf-posix.h (test_function): Likewise.
15297         * tests/test-vasnprintf-posix.c (test_function): Likewise.
15298         * tests/test-vasprintf-posix.c (test_function): Likewise.
15299         * doc/posix-functions/fprintf.texi: Mention Solaris 10 bug as worked
15300         around by gnulib.
15301         * doc/posix-functions/printf.texi: Likewise.
15302         * doc/posix-functions/snprintf.texi: Likewise.
15303         * doc/posix-functions/sprintf.texi: Likewise.
15304         * doc/posix-functions/vfprintf.texi: Likewise.
15305         * doc/posix-functions/vprintf.texi: Likewise.
15306         * doc/posix-functions/vsnprintf.texi: Likewise.
15307         * doc/posix-functions/vsprintf.texi: Likewise.
15308         * doc/posix-functions/dprintf.texi: Undo last commit.
15309         * doc/posix-functions/vdprintf.texi: Likewise.
15310
15311 2010-12-23  Paul Eggert  <eggert@cs.ucla.edu>
15312
15313         tests: port test-fdutimensat.c to Solaris 8
15314         * tests/test-fdutimensat.c (do_fdutimens): Don't assume
15315         fdutimensat works with a nonnegative fd and AT_SYMLINK_NOFOLLOW.
15316         On Solaris 8, it fails with errno == ENOSYS, because there is no
15317         futimens (so it can't use the fd), and there is no lutimens (so it
15318         can't implement AT_SYMLINK_NOFOLLOW on symlinks).
15319
15320         vsnprintf: make more consistent with snprintf; doc fixes
15321
15322         * doc/posix-functions/snprintf.texi (snprintf): The workaround for
15323         the byte count return problem was promoted from the snprintf-posix
15324         to the snprintf module.
15325         * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
15326         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Also check
15327         gl_SNPRINTF_RETVAL_C99, for consistency with gl_FUNC_SNPRINTF.
15328         * tests/test-snprintf.c (main): Check the byte count returned.
15329         * tests/test-vsnprintf.c (main): Likewise.
15330
15331 2010-12-23  Eric Blake  <eblake@redhat.com>
15332
15333         sigpipe: relax to LGPLv2+, since it did not have any LGPLv3+ parts
15334         * modules/sigpipe (License): Relax license.
15335
15336 2010-12-22  Paul Eggert  <eggert@cs.ucla.edu>
15337
15338         doc: document Solaris printf bug with large float precisions
15339         * doc/posix-functions/dprintf.texi (dprintf):
15340         * doc/posix-functions/fprintf.texi (fprintf):
15341         * doc/posix-functions/printf.texi (printf):
15342         * doc/posix-functions/snprintf.texi (snprintf):
15343         * doc/posix-functions/sprintf.texi (sprintf):
15344         * doc/posix-functions/vdprintf.texi (vdprintf):
15345         * doc/posix-functions/vfprintf.texi (vfprintf):
15346         * doc/posix-functions/vprintf.texi (vprintf):
15347         * doc/posix-functions/vsnprintf.texi (vsnprintf):
15348         * doc/posix-functions/vsprintf.texi (vsprintf):
15349         Mention that these functions mishandle large floating point
15350         precisions on Solaris 10.  The same bug is also present in Solaris
15351         8, and I assume earlier.  This causes "cd gnulib-tests; make
15352         check" to fail on Solaris 8 (and I assume, later) when building
15353         the latest coreutils, in test-vasprintf-posix's call to
15354         my_asprintf (&result, "%.4000f %d", 1.0, 99).  I have not checked
15355         the wide flavors (e.g., wprintf) so this patch just updates the
15356         documentation for the narrow ones.
15357
15358         test-posixtm.c: add two tests
15359         * tests/test-posixtm.c: Add two tests, to highlight the
15360         bug in Solaris 10 (and earlier) localtime.  Gnulib doesn't work
15361         around this bug; this is merely to document it.
15362
15363 2010-12-22  Bruno Haible  <bruno@clisp.org>
15364
15365         getlogin_r: Work around portability problem on OSF/1.
15366         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Detect the OSF/1 problem.
15367         * lib/unistd.in.h (getlogin_r): Replace if REPLACE_GETLOGIN_R is set.
15368         * lib/getlogin_r.c (getlogin_r): When getlogin_r exists, invoke it and
15369         test for a truncated result.
15370         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize REPLACE_GETLOGIN_R.
15371         * modules/unistd (Makefile.am): Substitute REPLACE_GETLOGIN_R.
15372         * modules/getlogin_r (Depends-on): Add memchr.
15373         * doc/posix-functions/getlogin_r.texi: Mention the OSF/1 problem.
15374
15375 2010-12-22  Bruno Haible  <bruno@clisp.org>
15376
15377         ptsname: Avoid test failure on OSF/1 5.1.
15378         * modules/ptsname-tests (Depends-on): Add 'same-inode'.
15379         * tests/test-ptsname.c: Include <sys/stat.h>, same-inode.h.
15380         (same_slave): New function.
15381         (main): Use it to compare ptsname's result with the expected file name.
15382
15383 2010-12-22  Bruno Haible  <bruno@clisp.org>
15384
15385         Port extended stdio modules to HP NonStop Kernel.
15386         * lib/stdio-impl.h (_IOERR, _IOREAD, _IOWRT, _IORW) [__TANDEM]: New
15387         macros.
15388         * lib/fbufmode.c: Update comments.
15389         * lib/fflush.c: Likewise.
15390         * lib/fpurge.c: Likewise.
15391         * lib/freadable.c: Likewise.
15392         * lib/freadahead.c: Likewise.
15393         * lib/freading.c: Likewise.
15394         * lib/freadptr.c: Likewise.
15395         * lib/freadseek.c: Likewise.
15396         * lib/fseeko.c: Likewise.
15397         * lib/fseterr.c: Likewise.
15398         * lib/fwritable.c: Likewise.
15399         * lib/fwriting.c: Likewise.
15400         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
15401
15402 2010-12-22  Bruno Haible  <bruno@clisp.org>
15403
15404         ttyname_r: Work around bug on OSF/1 5.1.
15405         * doc/posix-functions/ttyname_r.texi: Mention the OSF/1 bug.
15406         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Detect the OSF/1 bug. Say "no"
15407         instead of "guessing no" when the OSF/1 bug or the Solaris bug is
15408         present.
15409         * lib/ttyname_r.c (ttyname_r): Update comments.
15410
15411 2010-12-22  Bruno Haible  <bruno@clisp.org>
15412
15413         round: Implement result sign according to IEEE 754.
15414         * lib/round.c (MIN, MINUS_ZERO): New macros.
15415         (FLOOR_FREE_ROUND): Return -0.0 for -0.5 < x < 0.
15416         * tests/test-roundf-ieee.c (main): Test also values between -1 and 1.
15417         * tests/test-round-ieee.c (main): Likewise.
15418         * tests/test-roundl-ieee.c (main): Likewise.
15419
15420         trunc: Implement result sign according to IEEE 754.
15421         * lib/trunc.c (MIN, MINUS_ZERO): New macros.
15422         (FUNC): Return +0.0 for 0 < x < 1 and -0.0 for -1 < x < 0.
15423         * tests/test-trunc2.c: Include minus-zero.h.
15424         (MINUS_ZERO): New macro.
15425         (trunc_reference): Keep in sync with lib/trunc.c.
15426         * tests/test-truncf2.c: Include minus-zero.h.
15427         (MINUS_ZERO): New macro.
15428         (truncf_reference): Keep in sync with lib/trunc.c.
15429         * tests/test-truncf-ieee.c (main): Test also values between -1 and 1.
15430         * tests/test-trunc-ieee.c (main): Likewise.
15431         * tests/test-truncl-ieee.c (main): Likewise.
15432
15433         ceil: Implement result sign according to IEEE 754.
15434         * lib/ceil.c (MIN, MINUS_ZERO): New macros.
15435         (FUNC): Return -0.0 for -1 < x < 0.
15436         * tests/test-ceil2.c: Include minus-zero.h.
15437         (MINUS_ZERO): New macro.
15438         (ceil_reference): Keep in sync with lib/ceil.c.
15439         * tests/test-ceilf2.c: Include minus-zero.h.
15440         (MINUS_ZERO): New macro.
15441         (ceilf_reference): Keep in sync with lib/ceil.c.
15442         * tests/test-ceilf-ieee.c (main): Test also values between -1 and 1.
15443         * tests/test-ceil-ieee.c (main): Likewise.
15444         * tests/test-ceill-ieee.c (main): Likewise.
15445
15446         floor: Implement result sign according to IEEE 754.
15447         * lib/floor.c (FUNC): Return +0.0 for 0 < x < 1.
15448         * tests/test-floor2.c (floor_reference): Keep in sync with lib/floor.c.
15449         * tests/test-floorf2.c (floorf_reference): Likewise.
15450         * tests/test-floorf-ieee.c (main): Test also values between -1 and 1.
15451         * tests/test-floor-ieee.c (main): Likewise.
15452         * tests/test-floorl-ieee.c (main): Likewise.
15453
15454 2010-12-22  Bruno Haible  <bruno@clisp.org>
15455
15456         getaddrinfo: Update doc.
15457         * doc/posix-functions/gai_strerror.texi: Return type is also different
15458         on AIX and HP-UX.
15459
15460 2010-12-22  Paul Eggert  <eggert@cs.ucla.edu>
15461
15462         getaddrinfo, inet_ntop: Update doc for Solaris.
15463         * doc/posix-functions/gai_strerror.texi: Return type is also an
15464         issue on Solaris 9 and earlier.
15465         * doc/posix-functions/inet_ntop.texi: 4th arg type is also an issue
15466         on Solaris 10 and earlier.
15467
15468 2010-12-21  Bruno Haible  <bruno@clisp.org>
15469
15470         New module 'roundl-ieee'.
15471         * modules/roundl-ieee: New file.
15472         * m4/roundl.m4 (gl_FUNC_ROUNDL): If gl_FUNC_ROUNDL_IEEE is also used,
15473         test whether roundl works according to ISO C 99 with IEC 60559.
15474         * m4/roundl-ieee.m4: New file.
15475         * modules/roundl-ieee-tests: New file.
15476         * tests/test-roundl-ieee.c: New file, based on tests/test-roundl.c.
15477         * tests/test-roundl.c (main): Remove signbit tests.
15478         * modules/roundl-tests (Depends-on): Remove signbit.
15479         * doc/posix-functions/roundl.texi: Mention the new module.
15480
15481 2010-12-21  Bruno Haible  <bruno@clisp.org>
15482
15483         New module 'truncl-ieee'.
15484         * modules/truncl-ieee: New file.
15485         * modules/truncl-ieee-tests: New file.
15486         * tests/test-truncl-ieee.c: New file, based on tests/test-truncl.c.
15487         * tests/test-truncl.c (main): Remove signbit tests.
15488         * modules/truncl-tests (Depends-on): Remove signbit.
15489         * doc/posix-functions/truncl.texi: Mention the new module.
15490
15491 2010-12-21  Bruno Haible  <bruno@clisp.org>
15492
15493         New module 'ceill-ieee'.
15494         * modules/ceill-ieee: New file.
15495         * modules/ceill-ieee-tests: New file.
15496         * tests/test-ceill-ieee.c: New file, based on tests/test-ceill.c.
15497         * tests/test-ceill.c (main): Remove signbit tests.
15498         * modules/ceill-tests (Depends-on): Remove signbit.
15499         * doc/posix-functions/ceill.texi: Mention the new module.
15500
15501 2010-12-21  Bruno Haible  <bruno@clisp.org>
15502
15503         New module 'floorl-ieee'.
15504         * modules/floorl-ieee: New file.
15505         * modules/floorl-ieee-tests: New file.
15506         * tests/test-floorl-ieee.c: New file, based on tests/test-floorl.c.
15507         * tests/test-floorl.c (main): Remove signbit tests.
15508         * modules/floorl-tests (Depends-on): Remove signbit.
15509         * doc/posix-functions/floorl.texi: Mention the new module.
15510
15511 2010-12-21  Bruno Haible  <bruno@clisp.org>
15512
15513         New module 'round-ieee'.
15514         * modules/round-ieee: New file.
15515         * m4/round.m4 (gl_FUNC_ROUND): If gl_FUNC_ROUND_IEEE is also used, test
15516         whether round works according to ISO C 99 with IEC 60559.
15517         * m4/round-ieee.m4: New file.
15518         * modules/round-ieee-tests: New file.
15519         * tests/test-round-ieee.c: New file, based on tests/test-roundf-ieee.c.
15520         * tests/test-round1.c (main): Remove signbit tests.
15521         * modules/round-tests (Depends-on): Remove 'signbit'.
15522         * doc/posix-functions/round.texi: Mention the new module.
15523
15524 2010-12-21  Bruno Haible  <bruno@clisp.org>
15525
15526         New module 'trunc-ieee'.
15527         * modules/trunc-ieee: New file.
15528         * m4/trunc.m4 (gl_FUNC_TRUNC): If gl_FUNC_TRUNC_IEEE is also used, test
15529         whether trunc works according to ISO C 99 with IEC 60559.
15530         * m4/trunc-ieee.m4: New file.
15531         * lib/math.in.h (trunc): Replace if REPLACE_TRUNC is set.
15532         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNC.
15533         * modules/math (Makefile.am): Substitute REPLACE_TRUNC.
15534         * modules/trunc-ieee-tests: New file.
15535         * tests/test-trunc-ieee.c: New file, based on tests/test-truncf-ieee.c.
15536         * tests/test-trunc1.c (main): Remove signbit tests.
15537         * modules/trunc-tests (Depends-on): Remove 'signbit'.
15538         * doc/posix-functions/trunc.texi: Mention the new module.
15539
15540 2010-12-21  Bruno Haible  <bruno@clisp.org>
15541
15542         New module 'ceil-ieee'.
15543         * modules/ceil-ieee: New file.
15544         * m4/ceil.m4 (gl_FUNC_CEIL): Require gl_MATH_H_DEFAULTS. If
15545         gl_FUNC_CEIL_IEEE is also used, test whether ceil works according to
15546         ISO C 99 with IEC 60559.
15547         * m4/ceil-ieee.m4: New file.
15548         * modules/ceil (Files): Add lib/ceil.c.
15549         (Depends-on): Add 'float'.
15550         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
15551         * lib/math.in.h (ceil): New declaration.
15552         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEIL,
15553         REPLACE_CEIL.
15554         * modules/math (Makefile.am): Substitute GNULIB_CEIL, REPLACE_CEIL.
15555         * modules/ceil-ieee-tests: New file.
15556         * tests/test-ceil-ieee.c: New file, based on tests/test-ceilf-ieee.c.
15557         * tests/test-math-c++.cc: Check the signature of 'ceil'.
15558         * doc/posix-functions/ceil.texi: Mention the new module.
15559
15560 2010-12-21  Bruno Haible  <bruno@clisp.org>
15561
15562         New module 'floor-ieee'.
15563         * modules/floor-ieee: New file.
15564         * m4/floor.m4 (gl_FUNC_FLOOR): Require gl_MATH_H_DEFAULTS. If
15565         gl_FUNC_FLOOR_IEEE is also used, test whether floor works according to
15566         ISO C 99 with IEC 60559.
15567         * m4/floor-ieee.m4: New file.
15568         * modules/floor (Files): Add lib/floor.c.
15569         (Depends-on): Add 'float'.
15570         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
15571         * lib/math.in.h (floor): New declaration.
15572         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOOR,
15573         REPLACE_FLOOR.
15574         * modules/math (Makefile.am): Substitute GNULIB_FLOOR, REPLACE_FLOOR.
15575         * modules/floor-ieee-tests: New file.
15576         * tests/test-floor-ieee.c: New file, based on tests/test-floorf-ieee.c.
15577         * tests/test-math-c++.cc: Check the signature of 'floor'.
15578         * doc/posix-functions/floor.texi: Mention the new module.
15579
15580 2010-12-21  Bruno Haible  <bruno@clisp.org>
15581
15582         New module 'roundf-ieee'.
15583         * modules/roundf-ieee: New file.
15584         * m4/roundf.m4 (gl_FUNC_ROUNDF): If gl_FUNC_ROUNDF_IEEE is also used,
15585         test whether roundf works according to ISO C 99 with IEC 60559.
15586         * m4/roundf-ieee.m4: New file.
15587         * modules/roundf-ieee-tests: New file.
15588         * tests/test-roundf-ieee.c: New file, based on tests/test-roundf1.c.
15589         * tests/test-roundf1.c (main): Remove signbit tests.
15590         * modules/roundf-tests (Depends-on): Remove 'signbit'.
15591         * doc/posix-functions/roundf.texi: Mention the new module.
15592
15593 2010-12-21  Bruno Haible  <bruno@clisp.org>
15594
15595         New module 'truncf-ieee'.
15596         * modules/truncf-ieee: New file.
15597         * m4/truncf.m4 (gl_FUNC_TRUNCF): If gl_FUNC_TRUNCF_IEEE is also used,
15598         test whether truncf works according to ISO C 99 with IEC 60559.
15599         * m4/truncf-ieee.m4: New file.
15600         * lib/math.in.h (truncf): Replace if REPLACE_TRUNCF is set.
15601         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNCF.
15602         * modules/math (Makefile.am): Substitute REPLACE_TRUNCF.
15603         * modules/truncf-ieee-tests: New file.
15604         * tests/test-truncf-ieee.c: New file, based on tests/test-truncf1.c.
15605         * tests/test-truncf1.c (main): Remove signbit tests.
15606         * modules/truncf-tests (Depends-on): Remove 'signbit'.
15607         * doc/posix-functions/truncf.texi: Mention the new module.
15608
15609 2010-12-21  Bruno Haible  <bruno@clisp.org>
15610
15611         New module 'ceilf-ieee'.
15612         * modules/ceilf-ieee: New file.
15613         * m4/ceilf.m4 (gl_FUNC_FLOORF): If gl_FUNC_CEILF_IEEE is also used,
15614         test whether ceilf works according to ISO C 99 with IEC 60559.
15615         * m4/ceilf-ieee.m4: New file.
15616         * modules/ceilf-ieee-tests: New file.
15617         * tests/test-ceilf-ieee.c: New file, based on tests/test-ceilf1.c.
15618         * tests/test-ceilf1.c (main): Remove signbit tests.
15619         * modules/ceilf-tests (Depends-on): Remove 'signbit'.
15620         * doc/posix-functions/ceilf.texi: Mention the new module.
15621
15622 2010-12-21  Bruno Haible  <bruno@clisp.org>
15623
15624         New module 'floorf-ieee'.
15625         * modules/floorf-ieee: New file.
15626         * m4/floorf.m4 (gl_FUNC_FLOORF): If gl_FUNC_FLOORF_IEEE is also used,
15627         test whether floorf works according to ISO C 99 with IEC 60559.
15628         * m4/floorf-ieee.m4: New file.
15629         * modules/floorf-ieee-tests: New file.
15630         * tests/test-floorf-ieee.c: New file, based on tests/test-floorf1.c.
15631         * tests/test-floorf1.c (main): Remove signbit tests.
15632         * modules/floorf-tests (Depends-on): Remove 'signbit'.
15633         * doc/posix-functions/floorf.texi: Mention the new module.
15634
15635 2010-12-21  Bruno Haible  <bruno@clisp.org>
15636
15637         Support for minus zero in autoconf macros.
15638         * m4/minus-zero.m4: New file, based on tests/minus-zero.h.
15639         * m4/signbit.m4 (gl_FLOAT_SIGNBIT_CODE, gl_DOUBLE_SIGNBIT_CODE,
15640         gl_LONG_DOUBLE_SIGNBIT_CODE, gl_FLOATTYPE_SIGNBIT_CODE): New macros.
15641         * tests/minus-zero.h: Update comments.
15642
15643 2010-12-21  Bruno Haible  <bruno@clisp.org>
15644
15645         Tests for module 'ceil'.
15646         * modules/ceil-tests: New file.
15647         * tests/test-ceil1.c: New file, based on tests/test-ceill.c.
15648         * tests/test-ceil2.c: New file, based on tests/test-ceilf2.c.
15649
15650 2010-12-21  Bruno Haible  <bruno@clisp.org>
15651
15652         Tests for module 'floor'.
15653         * modules/floor-tests: New file.
15654         * tests/test-floor1.c: New file, based on tests/test-floorl.c.
15655         * tests/test-floor2.c: New file, based on tests/test-floorf2.c.
15656
15657 2010-12-21  Bruno Haible  <bruno@clisp.org>
15658
15659         math: Fix indentation.
15660         * lib/math.in.h (floorf): Fix indentation.
15661
15662 2010-12-21  Bruno Haible  <bruno@clisp.org>
15663
15664         Fix cross-compilation guesses on Solaris.
15665         * m4/fopen.m4 (gl_FUNC_FOPEN): Correct shell pattern so that it does
15666         not match "solaris2.10".
15667         * m4/open.m4 (gl_FUNC_OPEN): Likewise.
15668         * m4/printf.m4 (gl_SNPRINTF_TRUNCATION_C99, gl_SNPRINTF_DIRECTIVE_N,
15669         gl_VSNPRINTF_ZEROSIZE_C99): Likewise.
15670
15671 2010-12-21  Paul Eggert  <eggert@cs.ucla.edu>
15672
15673         snprintf: port snprintf (NULL, 0, ...) to Solaris 8 and 9
15674         This fixes a problem observed with the latest coreutils snapshot
15675         that caused a test to fail on Solaris 8.  src/csplit.c's call
15676         snprintf (NULL, 0, format, UINT_MAX) returns -1 on Solaris 9 and
15677         earlier, instead of returning the number of bytes that would have
15678         been generated; this causes csplit to incorrectly report memory
15679         exhaustion.
15680         * m4/printf.m4 (gl_SNPRINTF_RETVAL_C99): Also check for
15681         snprintf (NULL, 0, ...) and (for good measure) snprintf (buf, 0, ...).
15682         Guess that it doesn't work on Solaris 2.6 through 9.  Adjust
15683         comments to match.
15684         (gl_PRINTF_SIZES_C99, gl_PRINTF_DIRECTIVE_F, gl_SNPRINTF_RETVAL_C99):
15685         Fix typo in matching older versions of Solaris: "solaris2.10"
15686         is matched by the shell pattern "solaris2.[0-9]*".  This matters
15687         only for guessing while cross-compiling.
15688         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Also check gl_SNPRINTF_RETVAL_C99.
15689
15690 2010-12-20  Paul Eggert  <eggert@cs.ucla.edu>
15691
15692         ftoastr: fix comment again
15693         * lib/ftoastr.h: Fix typo in comment.  Noted by Ben Pfaff in
15694         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00149.html>.
15695         Also, simplify example a bit by using flags = 0.
15696
15697 2010-12-20  Bruno Haible  <bruno@clisp.org>
15698
15699         round*, trunc*: Update documentation regarding glibc.
15700         * doc/posix-functions/roundf.texi: Mention missing declaration problem.
15701         * doc/posix-functions/round.texi: Likewise.
15702         * doc/posix-functions/roundl.texi: Likewise.
15703         * doc/posix-functions/truncf.texi: Likewise.
15704         * doc/posix-functions/trunc.texi: Likewise.
15705         * doc/posix-functions/truncl.texi: Likewise.
15706
15707 2010-12-20  Bruno Haible  <bruno@clisp.org>
15708
15709         roundf, round, roundl: Update documentation regarding OSF/1 5.1.
15710         * doc/posix-functions/roundf.texi: Mention OSF/1 5.1 problem.
15711         * doc/posix-functions/round.texi: Likewise.
15712         * doc/posix-functions/roundl.texi: Likewise.
15713
15714 2010-12-20  Bruno Haible  <bruno@clisp.org>
15715
15716         ttyname_r: Add missing declaration on HP-UX 11.
15717         * lib/unistd.in.h (ttyname_r): Test HAVE_DECL_TTYNAME_R instead of
15718         HAVE_TTYNAME_R.
15719         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Test whether ttyname_r is
15720         declared. Set HAVE_TTYNAME_R always.
15721         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
15722         HAVE_DECL_TTYNAME_R, not HAVE_TTYNAME_R.
15723         * modules/unistd (Makefile.am): Substitute HAVE_DECL_TTYNAME_R, not
15724         HAVE_TTYNAME_R.
15725         * doc/posix-functions/ttyname_r.texi: Document the HP-UX 11 problem.
15726
15727 2010-12-20  Bruno Haible  <bruno@clisp.org>
15728
15729         getlogin, getlogin_r: Document HP-UX 11.11 bugs.
15730         * doc/posix-functions/getlogin.texi: Document HP-UX 11.11 bug.
15731         * doc/posix-functions/getlogin_r.texi: Likewise.
15732         * tests/test-getlogin.c: Include <errno.h>.
15733         (main): Avoid test failure on HP-UX 11.11.
15734         * tests/test-getlogin_r.c (main): Likewise.
15735
15736 2010-12-20  Bruno Haible  <bruno@clisp.org>
15737
15738         getlogin_r: Add missing declaration on HP-UX 11.
15739         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Test whether getlogin_r is
15740         declared also when it exists as a function.
15741         * doc/posix-functions/getlogin_r.texi: Document this workaround.
15742
15743 2010-12-20  Bruno Haible  <bruno@clisp.org>
15744
15745         wcsrtombs: Don't confuse mbstate_t with rpl_mbstate_t.
15746         * lib/wcsrtombs.c: If gnulib overrides mbstate_t, define wcsrtombs
15747         through wcrtomb.
15748
15749 2010-12-19  Paul Eggert  <eggert@cs.ucla.edu>
15750
15751         ftoastr: fix comment
15752         * lib/ftoastr.h: Fix typo in comment.  Noted by Ben Pfaff in
15753         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00130.html>.
15754
15755 2010-12-19  Bruno Haible  <bruno@clisp.org>
15756
15757         isnan: Ensure it is a macro.
15758         * lib/math.in.h (isnan): Define as a macro if not already a macro.
15759         * doc/posix-functions/isnan.texi: Mention problem on IRIX, OSF/1,
15760         Solaris.
15761
15762 2010-12-19  Bruno Haible  <bruno@clisp.org>
15763
15764         ldexpl test: Fix link error on OSF/1 5.1.
15765         * modules/ldexpl-tests (Makefile.am): Define test_ldexpl_LDADD.
15766
15767 2010-12-19  Bruno Haible  <bruno@clisp.org>
15768
15769         wctype: Make it work in C++ mode on OSF/1 5.1.
15770         * lib/wctype.in.h (iswblank): Declare but not define here.
15771         * lib/iswblank.c: New file, extracted from lib/wctype.in.h.
15772         * m4/wctype_h.m4 (gl_WCTYPE_H): Arrange to compile it if needed.
15773         * modules/wctype (Files): Add lib/iswblank.c.
15774
15775 2010-12-19  Bruno Haible  <bruno@clisp.org>
15776
15777         signal: Document problem with type of SIGRTMIN, SIGRTMAX on OSF/1 5.1.
15778         * doc/posix-headers/signal.texi: Document OSF/1 5.1 problem.
15779         * lib/strsignal.c (strsignal): Cast SIGRTMIN to 'int'.
15780
15781 2010-12-19  Bruno Haible  <bruno@clisp.org>
15782
15783         sys_socket: Use POSIX compatible declarations on OSF/1 5.1.
15784         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): On OSF/1, define
15785         _POSIX_PII_SOCKET.
15786         * doc/posix-functions/recv.texi: Document the OSF/1 problem.
15787         * doc/posix-functions/recvfrom.texi: Likewise.
15788         * doc/posix-functions/send.texi: Likewise.
15789         * doc/posix-functions/sendto.texi: Likewise.
15790
15791 2010-12-19  Bruno Haible  <bruno@clisp.org>
15792
15793         tcgetsid: Add missing declaration on OSF/1 5.1.
15794         * lib/termios.in.h (tcgetsid): Test HAVE_DECL_TCGETSID instead of
15795         HAVE_TCGETSID.
15796         * m4/tcgetsid.m4 (gl_FUNC_TCGETSID): Test whether tcgetsid is declared.
15797         Don't set HAVE_TCGETSID.
15798         * m4/termios_h.m4 (gl_TERMIOS_H_DEFAULTS): Initialize
15799         HAVE_DECL_TCGETSID, not HAVE_TCGETSID.
15800         * modules/termios (Makefile.am): Substitute HAVE_DECL_TCGETSID, not
15801         HAVE_TCGETSID.
15802         * doc/posix-functions/tcgetsid.texi: Mention the OSF/1 5.1 problem.
15803
15804 2010-12-19  Bruno Haible  <bruno@clisp.org>
15805
15806         stdio: Fix problem with popen() declaration on OSF/1 5.1.
15807         * lib/stdio.in.h: During the include_next statement, let recursive
15808         includes of this file include only the system header file.
15809
15810 2010-12-19  Bruno Haible  <bruno@clisp.org>
15811
15812         iconv_open: Fix regression from 2010-12-04.
15813         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Fix typo.
15814         Reported by Noah Lavine <noah.b.lavine@gmail.com>.
15815
15816 2010-12-19  Bruno Haible  <bruno@clisp.org>
15817
15818         stdbool test: Avoid a gcc warning.
15819         * tests/test-stdbool.c (main): Fail if e1 is false.
15820         Reported by Jim Meyering.
15821
15822 2010-12-19  Jim Meyering  <meyering@redhat.com>
15823
15824         setenv: restore to working order
15825         $HAVE_SETENV is used in gl_FUNC_SETENV, yet its definitions were
15826         mistakenly removed.
15827         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Restore code to set
15828         HAVE_SETENV.
15829         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Restore code to initialize
15830         HAVE_SETENV.
15831
15832 2010-12-19  Bruno Haible  <bruno@clisp.org>
15833
15834         Document some different function declarations on OSF/1 5.1.
15835         * doc/posix-functions/gai_strerror.texi: Mention different declaration.
15836         * doc/posix-functions/inet_ntop.texi: Likewise.
15837         * doc/posix-functions/gethostname.texi: Likewise.
15838         * lib/unistd.in.h (gethostname): Update comment.
15839
15840 2010-12-19  Bruno Haible  <bruno@clisp.org>
15841
15842         doc: Mention vasprintf-posix module.
15843         * doc/glibc-functions/asprintf.texi: Mention the workarounds present in
15844         the 'vasprintf-posix' module.
15845         * doc/glibc-functions/vasprintf.texi: Likewise.
15846
15847 2010-12-19  Bruno Haible  <bruno@clisp.org>
15848
15849         unsetenv: Add missing declaration on OSF/1 5.1.
15850         * lib/stdlib.in.h (setenv): Test HAVE_DECL_UNSETENV, not HAVE_UNSETENV.
15851         * m4/setenv.m4 (gl_FUNC_UNSETENV): Test whether unsetenv is declared.
15852         Don't set HAVE_UNSETENV. In the test program, set _BSD.
15853         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_DECL_UNSETENV,
15854         not HAVE_UNSETENV.
15855         * modules/stdlib (Makefile.am): Substitute HAVE_DECL_UNSETENV, not
15856         HAVE_UNSETENV.
15857         * doc/posix-functions/unsetenv.texi: Mention the OSF/1 5.1 problem.
15858
15859 2010-12-19  Bruno Haible  <bruno@clisp.org>
15860
15861         setenv: Add missing declaration on OSF/1 5.1.
15862         * lib/stdlib.in.h (setenv): Test HAVE_DECL_SETENV, not HAVE_SETENV.
15863         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Test whether setenv is
15864         declared. Don't set HAVE_SETENV.
15865         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_DECL_SETENV,
15866         not HAVE_SETENV.
15867         * modules/stdlib (Makefile.am): Substitute HAVE_DECL_SETENV, not
15868         HAVE_SETENV.
15869         * doc/posix-functions/setenv.texi: Mention the OSF/1 5.1 problem.
15870
15871 2010-12-19  Bruno Haible  <bruno@clisp.org>
15872
15873         nl_langinfo tests: Avoid gcc warning.
15874         * tests/test-nl_langinfo.c: Don't enable the GCC pragma for GCC 4.2.
15875
15876 2010-12-19  Bruno Haible  <bruno@clisp.org>
15877
15878         mknod: Avoid error in C++ mode on OSF/1 with GCC.
15879         * lib/sys_stat.in.h (mknod): Use _GL_CXXALIAS_SYS_CAST instead of
15880         _GL_CXXALIAS_SYS.
15881
15882 2010-12-19  Bruno Haible  <bruno@clisp.org>
15883
15884         stdbool: Relax test.
15885         * tests/test-stdbool.c (e): Don't require that casts from a variable's
15886         address to 'bool' work in static initializer, for compilers other than
15887         GCC.
15888
15889 2010-12-19  Bruno Haible  <bruno@clisp.org>
15890
15891         ftello: Add missing declaration on OSF/1 5.1.
15892         * lib/stdio.in.h (ftello): Test HAVE_DECL_FTELLO, not HAVE_FTELLO.
15893         * m4/ftello.m4 (gl_FUNC_FTELLO): Test whether ftello is declared.
15894         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_DECL_FTELLO.
15895         * modules/stdio (Makefile.am): Substitute HAVE_DECL_FTELLO.
15896         * doc/posix-functions/ftello.texi: Mention the OSF/1 5.1 problem.
15897
15898 2010-12-19  Bruno Haible  <bruno@clisp.org>
15899
15900         fseeko: Add missing declaration on OSF/1 5.1.
15901         * lib/stdio.in.h (fseeko): Test HAVE_DECL_FSEEKO, not HAVE_FSEEKO.
15902         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Test whether fseeko is declared.
15903         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_DECL_FSEEKO.
15904         * modules/stdio (Makefile.am): Substitute HAVE_DECL_FSEEKO.
15905         * doc/posix-functions/fseeko.texi: Mention the OSF/1 5.1 problem.
15906
15907 2010-12-19  Bruno Haible  <bruno@clisp.org>
15908
15909         fchdir: Add missing declaration on OSF/1 5.1.
15910         * lib/unistd.in.h (fchdir): Provide declaration if systems lacks it.
15911         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Check whether fchdir is declared.
15912         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_DECL_FCHDIR.
15913         * modules/unistd (Makefile.am): Substitute HAVE_DECL_FCHDIR.
15914         * doc/posix-functions/fchdir.texi: Mention the OSF/1 5.1 problem.
15915
15916 2010-12-19  Bruno Haible  <bruno@clisp.org>
15917
15918         relocatable-prog-wrapper: Separate from relocatable-prog.
15919         * modules/relocatable-prog (Makefile.am): Define uninstall-hook and
15920         uninstall-relocwrapper rule here.
15921         * modules/relocatable-prog-wrapper (Makefile.am): ... not here.
15922         Reported by Ian Beckwith <ianb@erislabs.net>.
15923
15924 2010-12-19  Bruno Haible  <bruno@clisp.org>
15925
15926         unistr/u8-mbsnlen: Add missing dependency.
15927         * modules/unistr/u8-mbsnlen (Depends-on): Add unistr/u8-mbtouc.
15928         Reported by Ian Beckwith <ianb@erislabs.net>.
15929
15930 2010-12-19  Bruno Haible  <bruno@clisp.org>
15931
15932         iconv: Make it possible again to use this module without 'iconv-h'.
15933         * modules/iconv (configure.ac): Don't invoke gl_ICONV_MODULE_INDICATOR
15934         if it is not defined.
15935         Reported by Ian Beckwith <ianb@erislabs.net>.
15936
15937 2010-12-18  Paul Eggert  <eggert@cs.ucla.edu>
15938
15939         acl: port to Solaris 8 when copying from tmpfs to ufs
15940         * lib/copy-acl.c (qcopy_acl): Also allow EINVAL as an ignorable
15941         error number.  Problem observed on Solaris 8 with latest
15942         coreutils, with "mv A B", where A is on a tmpfs file system and B
15943         is on a ufs file system.  This caused coreutils' mv/part-symlink
15944         test to fail.
15945
15946         tests: set fail=0 at start
15947         * tests/init.sh (setup_): Move fail=0 initialization here ...
15948         (mktempd_): ... from here, so that tests can rely on fail being
15949         set to 0 initially.  This fixes a problem in coreutils; see:
15950         http://lists.gnu.org/archive/html/coreutils/2010-12/msg00083.html
15951
15952 2010-12-18  Bruno Haible  <bruno@clisp.org>
15953
15954         memmem-simple: Stylistic changes.
15955         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): Avoid possible gcc warning.
15956         Fix preprocessor directive indentation.
15957
15958 2010-12-15  Pádraig Brady <P@draigBrady.com>
15959
15960         memmem, memmem-simple: reorganize and expand empty needle check
15961         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE, gl_FUNC_MEMMEM): Move all
15962         functional checks to memmem-simple so that one has a fully functional
15963         memmem by using just this module.
15964         Restrict the performance only check to the memmem module.
15965         Also expand the empty needle check to ensure the correct
15966         pointer is returned, not just a non NULL pointer.
15967         * doc/glibc-functions/memmem.texi: Rearrange the portability
15968         documentation to correlate with the rearranged checks.
15969         Clarify exactly how the memmem and memmem-simple modules
15970         relate to each other.
15971
15972 2010-12-15  Pádraig Brady <P@draigBrady.com>
15973             Bruno Haible  <bruno@clisp.org>
15974
15975         Improve cross-compilation guesses for uClibc.
15976         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): When cross-compiling, assume
15977         that uClibc does not have the glibc bug.
15978         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Likewise.
15979         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE): Likewise.
15980
15981 2010-12-14  Eric Blake  <eblake@redhat.com>
15982
15983         configmake: provide fallbacks for oldest supported autotools
15984         * m4/configmake.m4: New file.
15985         * modules/configmake (Files): Ship it.
15986         (configure.ac): Use it to guarantee fallbacks.
15987
15988 2010-12-13  Pádraig Brady <P@draigBrady.com>
15989
15990         read-file: Improve handling of large files
15991         * lib/read-file.c (fread_file): Minimize realloc()s
15992         for regular files, and better manage sizes around SIZE_MAX.
15993
15994 2010-12-13  Eric Blake  <eblake@redhat.com>
15995
15996         cloexec, fcntl: relax license
15997         * modules/cloexec (License): Change from LGPLv3+ to LGPLv2+, with
15998         consent from all contributors.
15999         * modules/fcntl (License): Likewise.
16000
16001 2010-12-10  Bruno Haible  <bruno@clisp.org>
16002
16003         Tests for module 'pipe-posix'.
16004         * modules/pipe-posix-tests: New file.
16005         * tests/test-pipe.c: New file, based on tests/test-pipe2.c.
16006
16007 2010-12-10  Bruno Haible  <bruno@clisp.org>
16008
16009         pipe-posix: Make it work in C++ mode.
16010         * lib/unistd.in.h: Don't include <io.h>, <fcntl.h> for pipe.
16011         (pipe): Use common idiom, not a macro definition.
16012         * lib/pipe.c: New file.
16013         * m4/pipe.m4: New file.
16014         * modules/pipe-posix (Description): Enhance.
16015         (Files): Add lib/pipe.c, m4/pipe.m4.
16016         (configure.ac): Invoke gl_FUNC_PIPE.
16017         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_PIPE.
16018         * modules/unistd (Makefile.am): Substitute HAVE_PIPE.
16019         * tests/test-unistd-c++.cc: Check the signature of pipe.
16020
16021 2010-12-10  Bruno Haible  <bruno@clisp.org>
16022
16023         Rename module 'pipe' to 'spawn-pipe'.
16024         * modules/spawn-pipe: New file, renamed from modules/pipe.
16025         (Files, configure.ac, Makefile.am): Update.
16026         (Include): Mention "spawn-pipe.h" instead of "pipe.h".
16027         * modules/pipe: Reduce to an obsolete indirection to 'spawn-pipe'.
16028         * lib/spawn-pipe.h: New file, renamed from lib/pipe.h.
16029         * lib/spawn-pipe.c: New file, renamed from lib/pipe.c. Include
16030         "spawn-pipe.h" instead of "pipe.h".
16031         * m4/spawn-pipe.m4: New file, renamed from m4/pipe.m4. Rename gl_PIPE
16032         to gl_SPAWN_PIPE.
16033         * modules/spawn-pipe-tests: New file, renamed from modules/pipe-tests.
16034         (Files, Makefile.am): Update.
16035         * tests/test-spawn-pipe.sh: New file, renamed from tests/test-pipe.sh.
16036         Update.
16037         * tests/test-spawn-pipe.c: New file, renamed from tests/test-pipe.c.
16038         Include "spawn-pipe.h" instead of "pipe.h".
16039         * lib/csharpcomp.c: Include "spawn-pipe.h" instead of "pipe.h".
16040         * lib/javacomp.c: Likewise.
16041         * lib/javaversion.c: Likewise.
16042         * lib/pipe-filter-gi.c: Likewise.
16043         * lib/pipe-filter-ii.c: Likewise.
16044         * modules/csharpcomp (Depends-on): Add 'spawn-pipe', remove 'pipe'.
16045         * modules/javacomp (Depends-on): Likewise.
16046         * modules/javaversion (Depends-on): Likewise.
16047         * modules/pipe-filter-gi (Depends-on): Likewise.
16048         * modules/pipe-filter-ii (Depends-on): Likewise.
16049         * MODULES.html.sh (Executing programs): Update.
16050         * NEWS: Mention the change.
16051
16052 2010-12-10  Eric Blake  <eblake@redhat.com>
16053
16054         pipe-posix: new module
16055         * modules/pipe-posix: New file.
16056         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set default.
16057         (gl_UNISTD_H): Check for declaration.
16058         * modules/unistd (Makefile.am): Substitute it.
16059         * lib/unistd.in.h (pipe): Provide it for mingw.
16060         * doc/posix-functions/pipe.texi (pipe): Update documentation.
16061         * MODULES.html.sh (File descriptor based Input/Output): Likewise.
16062
16063 2010-12-07  Bruno Haible  <bruno@clisp.org>
16064
16065         unistr/u8-strcmp: Avoid collision with libc function on Solaris 11.
16066         * lib/unistr.in.h (u8_strcmp) [__sun]: Declare with real name
16067         u8_strcmp_gnu.
16068         * modules/unistr/u8-strcmp (configure.ac): Bump version number.
16069
16070 2010-12-06  Bruno Haible  <bruno@clisp.org>
16071
16072         Update internal documentation.
16073         * m4/README: Document new idioms for AC_RUN_IFELSE invocations.
16074
16075 2010-12-04  Bruno Haible  <bruno@clisp.org>
16076
16077         Put more information about failed tests into the test return codes.
16078         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Change test
16079         program so that it returns an enumerated value (0, 1, 2, 3, 4, ...).
16080         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Likewise.
16081         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
16082         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Likewise.
16083         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
16084         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
16085         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
16086         * m4/isapipe.m4 (gl_PREREQ_ISAPIPE): Likewise.
16087         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
16088         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Likewise.
16089         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
16090         * m4/sleep.m4 (gl_FUNC_SLEEP): Likewise.
16091         * m4/stdint.m4 (gl_STDINT_H): Likewise.
16092         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Change test program so that it
16093         returns a bit mask.
16094         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Likewise.
16095         * m4/chown.m4 (gl_FUNC_CHOWN_FOLLOWS_SYMLINK): Likewise.
16096         * m4/dup2.m4 (gl_FUNC_DUP2): Likewise.
16097         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): Likewise.
16098         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): Likewise.
16099         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Likewise.
16100         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
16101         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
16102         * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
16103         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Likewise.
16104         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
16105         * m4/isnanf.m4 (gl_ISNANF_WORKS): Likewise.
16106         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
16107         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Likewise.
16108         * m4/link.m4 (gl_FUNC_LINK): Likewise.
16109         * m4/linkat.m4 (gl_FUNC_LINKAT): Likewise.
16110         * m4/mbrlen.m4 (gl_MBRLEN_RETVAL): Likewise.
16111         * m4/mbrtowc.m4 (gl_MBRTOWC_RETVAL): Likewise.
16112         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
16113         * m4/memchr.m4 (gl_FUNC_MEMCHR): Likewise.
16114         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
16115         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Likewise.
16116         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Likewise.
16117         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
16118         * m4/open.m4 (gl_FUNC_OPEN): Likewise.
16119         * m4/poll.m4 (gl_FUNC_POLL): Likewise.
16120         * m4/popen.m4 (gl_FUNC_POPEN): Likewise.
16121         * m4/printf.m4 (gl_PRINTF_SIZES_C99, gl_PRINTF_LONG_DOUBLE,
16122         gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE,
16123         gl_PRINTF_DIRECTIVE_A, gl_PRINTF_DIRECTIVE_F, gl_PRINTF_DIRECTIVE_LS,
16124         gl_PRINTF_PRECISION): Likewise.
16125         * m4/regex.m4 (gl_REGEX): Likewise.
16126         * m4/rename.m4 (gl_FUNC_RENAME): Likewise.
16127         * m4/rmdir.m4 (gl_FUNC_RMDIR): Likewise.
16128         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Likewise.
16129         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
16130         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
16131         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
16132         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Likewise.
16133         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Likewise.
16134         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
16135         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
16136         * m4/symlink.m4 (gl_FUNC_SYMLINK): Likewise.
16137         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Likewise.
16138         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Likewise.
16139         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Likewise.
16140         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
16141         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
16142         * m4/utimes.m4 (gl_FUNC_UTIMES): Likewise.
16143         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
16144         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
16145         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Likewise.
16146         (gl_FLOATTYPE_SIGN_LOCATION): Change test program so that it returns an
16147         enumerated value.
16148         * m4/acl.m4 (gl_ACL_GET_FILE): Use "if ... return 1; return 0;" style.
16149
16150 2010-12-04  Bruno Haible  <bruno@clisp.org>
16151
16152         Update for Solaris 11 2010-11.
16153         * doc/{glibc,posix}-{functions,headers}: Add info about Solaris 11
16154         Express, released in November 2010.
16155
16156 2010-12-04  Bruno Haible  <bruno@clisp.org>
16157
16158         nproc: Relax license.
16159         * modules/nproc (License): Change to LGPL, with consent by Glen Lenker
16160         and Paul Eggert.
16161         Requested by Ludovic Courtès <ludo@gnu.org>.
16162
16163 2010-12-01  Paul Eggert  <eggert@cs.ucla.edu>
16164
16165         utimecmp: fine-grained src to nearby coarse-grained dest
16166
16167         * lib/utimecmp.c (utimecmp): When UTIMECMP_TRUNCATE_SOURCE is set,
16168         and the source is on a file system with higher-resolution time
16169         stamps, than the destination, and _PC_TIMESTAMP_RESOLUTION does
16170         not work, and the time stamps are close together, the algorithm to
16171         determine the exact resolution from the read-back mtime was buggy:
16172         it had a "!=" where it should have had an "==".  This bug has been
16173         in the code ever since it was introduced to gnulib.
16174         Problem reported by Dan Jacobson in
16175         <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=7529>.
16176
16177 2010-11-30  Bruno Haible  <bruno@clisp.org>
16178
16179         strerror_r-posix: Fix autoconf test.
16180         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Fix typo.
16181
16182 2010-11-28  Bruno Haible  <bruno@clisp.org>
16183             Paul Eggert  <eggert@cs.ucla.edu>
16184
16185         Tests for module 'getdomainname'.
16186         * modules/getdomainname-tests: New file.
16187         * tests/test-getdomainname.c: New file, based on
16188         tests/test-gethostname.c.
16189
16190 2010-11-28  Bruno Haible  <bruno@clisp.org>
16191             Paul Eggert  <eggert@cs.ucla.edu>
16192
16193         getdomainname: Use the system function when possible.
16194         * lib/unistd.in.h: Include <netdb.h>, for getdomainname's declaration.
16195         (getdomainname): Replace if needed. Provide the declaration if it is
16196         missing. Don't use _GL_CXXALIAS_SYS_CAST.
16197         * lib/getdomainname.c: Include <limits.h> and <sys/systeminfo.h>.
16198         (getdomainname): When the system has getdomainname, call the system
16199         function. When sysinfo (SI_SRPC_DOMAIN, ...) is possible, use that.
16200         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Require
16201         gl_HEADER_SYS_SOCKET and gl_HEADER_NETDB. Test whether the function is
16202         found in libnsl. Look for the declaration also in <netdb.h>. Replace
16203         the function if its second argument is of type 'int' or if it is found
16204         in libnsl.
16205         (gl_PREREQ_GETDOMAINNAME): Define HAVE_GETDOMAINNAME. Check for
16206         <sys/systeminfo.h> and sysinfo().
16207         * modules/getdomainname (Depends-on): Add netdb, sys_socket.
16208         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
16209         HAVE_DECL_GETDOMAINNAME and REPLACE_GETDOMAINNAME instead of
16210         HAVE_GETDOMAINNAME.
16211         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETDOMAINNAME and
16212         REPLACE_GETDOMAINNAME instead of HAVE_GETDOMAINNAME.
16213         * doc/glibc-functions/getdomainname.texi: Document the problems with
16214         the getdomainname declaration.
16215
16216 2010-11-28  Bruno Haible  <bruno@clisp.org>
16217
16218         sys_socket: Ensure ss_family field on AIX.
16219         * lib/sys_socket.in.h (ss_family): New macro definition.
16220         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Set
16221         HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY. Set SYS_SOCKET_H if necessary.
16222         (gl_SYS_SOCKET_H_DEFAULTS): Initialize
16223         HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY.
16224         * modules/sys_socket (Makefile.am): Substitute
16225         HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY.
16226         * doc/posix-headers/sys_socket.texi: Mention the AIX bug.
16227
16228 2010-11-27  Bruno Haible  <bruno@clisp.org>
16229
16230         readline: Improve configure output.
16231         * m4/readline.m4 (gl_FUNC_READLINE): Make the
16232         "checking for readline..." result understandable.
16233
16234 2010-11-27  Bruno Haible  <bruno@clisp.org>
16235
16236         *printf-posix: Detect a bug on Solaris 10/x86.
16237         * m4/printf.m4 (gl_PRINTF_PRECISION): Detect crash with large precision
16238         for floating-point output.
16239         * tests/test-vasnprintf-posix.c (test_function): Test precision with %f
16240         directive.
16241         * tests/test-snprintf-posix.h (test_function): Likewise.
16242         * tests/test-sprintf-posix.h (test_function): Likewise.
16243         * tests/test-vasprintf-posix.c (test_function): Likewise.
16244         * doc/posix-functions/fprintf.texi: Mention Solaris/x86 bug.
16245         * doc/posix-functions/printf.texi: Likewise.
16246         * doc/posix-functions/snprintf.texi: Likewise.
16247         * doc/posix-functions/sprintf.texi: Likewise.
16248         * doc/posix-functions/vfprintf.texi: Likewise.
16249         * doc/posix-functions/vprintf.texi: Likewise.
16250         * doc/posix-functions/vsnprintf.texi: Likewise.
16251         * doc/posix-functions/vsprintf.texi: Likewise.
16252         * doc/glibc-functions/obstack_printf.texi: Likewise.
16253         * doc/glibc-functions/obstack_vprintf.texi: Likewise.
16254
16255 2010-11-27  Bruno Haible  <bruno@clisp.org>
16256
16257         Fix link error when module libunistring-optional is in use.
16258         * modules/striconveh-tests (Makefile.am): Link with $(LIBUNISTRING).
16259         * modules/striconveha-tests (Makefile.am): Likewise.
16260
16261 2010-11-27  Bruno Haible  <bruno@clisp.org>
16262
16263         regex: Mention link dependencies.
16264         * modules/regex (Link): New section.
16265         * modules/rpmatch (Link): Likewise.
16266         * modules/regex-quote-tests (Makefile.am): Link with $(LIBINTL).
16267
16268 2010-11-27  Bruno Haible  <bruno@clisp.org>
16269
16270         ftoastr: Fix compilation error on Solaris.
16271         * lib/ftoastr.c: Include <config.h>.
16272
16273 2010-11-27  Bruno Haible  <bruno@clisp.org>
16274
16275         getloadavg: Update documentation.
16276         * doc/glibc-functions/getloadavg.texi: Mention the Solaris problem.
16277
16278 2010-11-27  Bruno Haible  <bruno@clisp.org>
16279
16280         sys_socket: Fix test whether the functions are declared.
16281         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Include <sys/socket.h>,
16282         not <sys/select.h>.
16283
16284 2010-11-27  Bruno Haible  <bruno@clisp.org>
16285
16286         getpass: Make sure to get system declaration on some platforms.
16287         * m4/getpass.m4 (gl_FUNC_GETPASS, gl_FUNC_GETPASS_GNU): Require
16288         gl_USE_SYSTEM_EXTENSIONS.
16289         * modules/getpass (Depends-on): Add extensions.
16290
16291 2010-11-26  Bruno Haible  <bruno@clisp.org>
16292
16293         iconv-h: Fix test-iconv-h-c++ failure on Solaris 11 2010-11.
16294         * lib/iconv.in.h (iconv_open, iconv, iconv_close): Define only if the
16295         'iconv' module is present.
16296         (ICONV_CONST): New macro.
16297         * m4/iconv_h.m4 (gl_ICONV_H_DEFAULTS): Initialize GNULIB_ICONV and
16298         ICONV_CONST.
16299         * m4/iconv.m4 (AM_ICONV): If the gnulib module 'iconv-h' is present,
16300         set ICONV_CONST.
16301         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Don't set ICONV_CONST
16302         here.
16303         * modules/iconv (configure.ac): Invoke gl_ICONV_MODULE_INDICATOR.
16304         * modules/iconv-h (Makefile.am): Substitute GNULIB_ICONV.
16305         * tests/test-iconv-h.c (ICONV_CONST): Don't define here.
16306         * tests/test-iconv-h-c++.cc (ICONV_CONST): Don't define here.
16307         (iconv_open, iconv, iconv_close): Test only if the 'iconv' module is
16308         present.
16309
16310 2010-11-25  Paul Eggert  <eggert@cs.ucla.edu>
16311
16312         ftoastr: comment fix
16313         * lib/ftoastr.c: "little" -> "little or no" in comment
16314
16315 2010-11-24  Paul Eggert  <eggert@cs.ucla.edu>
16316
16317         stdint: port to GCC 4.3 + OSX + Octave
16318         On this platform, stdint.h is buggy and defines int64_t to long
16319         long int.  The replacement defined it to long int, causing
16320         problems with C++ style name mangling.  Instead, trust the system
16321         definition if INT64_MAX is defined, and likewise for the unsigned
16322         variant.   Problem reported by Jarno Rajahalme in
16323         <http://lists.gnu.org/archive/html/bug-gnulib/2010-04/msg00143.html>.
16324         * lib/stdint.in.h (GL_INT64_T): Define if INT64_MAX is defined,
16325         and don't mess with int64_t and INT64_MAX in this case.
16326         (GL_UINT64_T): Likewise for UINT64_MAX and uint64_t.
16327
16328 2010-11-24  Bruno Haible  <bruno@clisp.org>
16329
16330         doc: Corrections regarding MacOS X 10.4 and 10.5.
16331         * doc/{glibc,posix,pastposix}-functions/*.texi: Update info about
16332         MacOS X.
16333         Reported by Simon Josefsson.
16334
16335 2010-11-22  Ben Pfaff  <blp@cs.stanford.edu>
16336
16337         Uninstall ".bin" files installed by relocwrapper.
16338         * modules/relocatable-prog-wrapper (uninstall-relocwrapper):
16339         Recursively run "make uninstall" with ".bin" prefixed to EXEEXT,
16340         unless it is already there.
16341
16342 2010-11-21  Bruno Haible  <bruno@clisp.org>
16343
16344         Update for NetBSD 5.0.
16345         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Don't guess yes on
16346         NetBSD; the test fails on NetBSD 5.0.
16347         * doc/{glibc,posix,pastposix}-{headers,functions}/*.texi: Update info
16348         about NetBSD.
16349
16350 2010-11-21  Bruno Haible  <bruno@clisp.org>
16351
16352         Update for HP-UX 11.23 and HP-UX 11.31.
16353         * doc/{glibc,posix}-{headers,functions}/*.texi: Update info about
16354         HP-UX.
16355
16356 2010-11-21  Bruno Haible  <bruno@clisp.org>
16357
16358         Update for MacOS X 10.5.
16359         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Don't guess yes on
16360         MacOS X; the test fails on MacOS X 10.5.8.
16361         * doc/{glibc,posix,pastposix}-{headers,functions}/*.texi: Update info
16362         about MacOS X.
16363
16364 2010-11-20  Joel E. Denny  <joeldenny@joeldenny.org>
16365
16366         bootstrap: add bootstrap_sync option.
16367         See discussion at
16368         <http://lists.gnu.org/archive/html/bug-gnulib/2010-10/msg00369.html>,
16369         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00200.html>.
16370         * build-aux/bootstrap: Accept --bootstrap-sync to update
16371         bootstrap if it is not identical to the local gnulib's
16372         bootstrap.  Accept bootstrap_sync=true in bootstrap.conf to
16373         enable this by default.  Accept --no-bootstrap-sync to disable
16374         it.
16375
16376 2010-11-20  Bruno Haible  <bruno@clisp.org>
16377
16378         Ensure that <features.h> is included before __GLIBC__ is tested.
16379         * lib/printf-parse.h: Include <features.h>.
16380         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Require gl_FEATURES_H.
16381         Reported by Mike Frysinger <vapier@gentoo.org>.
16382
16383         Ensure that <features.h> is included before __GLIBC__ is tested.
16384         * lib/wchar.in.h: Include <features.h>.
16385         * m4/wchar_h.m4 (gl_WCHAR_H): Require gl_FEATURES_H.
16386         * modules/wchar (Makefile.am): Substitute HAVE_FEATURES_H.
16387         Reported by Mike Frysinger <vapier@gentoo.org>.
16388
16389         Ensure that <features.h> is included before __GLIBC__ is tested.
16390         * lib/arpa_inet.in.h: Include <features.h>.
16391         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Require gl_FEATURES_H.
16392         * modules/arpa_inet (Makefile.am): Substitute HAVE_FEATURES_H.
16393         Reported by Mike Frysinger <vapier@gentoo.org>.
16394
16395         Ensure that <features.h> is included before __GLIBC__ is tested.
16396         * build-aux/link-warning.h: Include <features.h>.
16397         * modules/link-warning (configure.ac): Require gl_FEATURES_H.
16398         (Makefile.am): Substitute HAVE_FEATURES_H into link-warning.h.
16399         Reported by Mike Frysinger <vapier@gentoo.org>.
16400
16401         Ensure that <features.h> is included before __GLIBC__ is tested.
16402         * m4/gnulib-common.m4 (gl_FEATURES_H): New macro.
16403         Reported by Mike Frysinger <vapier@gentoo.org>.
16404
16405 2010-11-20  Bruno Haible  <bruno@clisp.org>
16406
16407         memmem: Fix autoconf test.
16408         * m4/memmem.m4 (gl_FUNC_MEMMEM): Test HAVE_DECL_MEMMEM, not HAVE_MEMMEM.
16409
16410 2010-11-20  Bruno Haible  <bruno@clisp.org>
16411
16412         Port to uClibc.
16413         * build-aux/link-warning.h (GL_LINK_WARNING): Treat uClibc like glibc.
16414         * lib/fcntl.in.h: Likewise.
16415         * lib/hard-locale.c (GLIBC_VERSION): Likewise.
16416         * lib/mbrtowc.c (mbrtowc): Likewise.
16417         * lib/relocatable.c (find_shared_library_fullname): Likewise.
16418         * lib/strerror_r.c: Likewise.
16419         * lib/unistr/u8-strnlen.c: Likewise.
16420         * lib/vasnprintf.c (decimal_point_char): Likewise.
16421         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Likewise.
16422         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Likewise.
16423         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Likewise.
16424         * m4/glibc21.m4 (gl_GLIBC21): Likewise.
16425         * tests/test-sigaction.c (handler, main): Likewise.
16426         * lib/freading.h: Treat uClibc like a non-glibc platform.
16427         * lib/freading.c: Likewise.
16428         * lib/gettext.h: Likewise.
16429         * lib/localename.c (gl_locale_name_thread_unsafe, HAVE_LOCALE_NULL):
16430         Likewise.
16431         * lib/printf-parse.h (FLAG_LOCALIZED): Likewise.
16432         * lib/printf-parse.c (PRINTF_PARSE): Likewise.
16433         * lib/propername.c (proper_name_utf8): Likewise.
16434         * lib/spawn.in.h: Likewise.
16435         * lib/striconv.c (mem_cd_iconv, str_cd_iconv, str_iconv): Likewise.
16436         * lib/striconveh.c (iconveh_open, iconv_carefully, iconv_carefully_1,
16437         mem_cd_iconveh_internal): Likewise.
16438         * lib/striconveha.c (mem_iconveha, str_iconveha): Likewise.
16439         * lib/string.in.h (memchr, memrchr, rawmemchr, strchrnul, strpbrk,
16440         strstr, strcasestr): Likewise.
16441         * lib/unicodeio.c (unicode_to_mb): Likewise.
16442         * lib/uniconv/u16-conv-from-enc.c (UTF16_NAME): Likewise.
16443         * lib/uniconv/u16-conv-to-enc.c (UTF16_NAME): Likewise.
16444         * lib/uniconv/u16-strconv-to-enc.c (UTF16_NAME): Likewise.
16445         * lib/uniconv/u32-conv-from-enc.c (UTF32_NAME): Likewise.
16446         * lib/uniconv/u32-conv-to-enc.c (UTF32_NAME): Likewise.
16447         * lib/uniconv/u32-strconv-to-enc.c (UTF32_NAME): Likewise.
16448         * lib/unistr/u8-stpncpy.c: Likewise.
16449         * lib/vasnprintf.c (VASNPRINTF): Likewise.
16450         * lib/xmalloc.c (HAVE_GNU_CALLOC): Likewise.
16451         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
16452         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
16453         * m4/glibc2.m4 (gt_GLIBC2): Likewise.
16454         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Likewise.
16455         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE, gl_FUNC_MEMMEM): Likewise.
16456         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Likewise.
16457         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE, gl_FUNC_STRCASESTR):
16458         Likewise.
16459         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Likewise.
16460         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
16461         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Likewise.
16462         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
16463         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
16464         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
16465         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
16466         * m4/wchar_h.m4 (gl_WCHAR_H): Likewise.
16467         * tests/test-getopt.h (OPTIND_MIN): Likewise.
16468         * tests/test-striconveha.c (main): Likewise.
16469         * tests/test-vasnprintf-posix.c (test_function): Likewise.
16470         * tests/test-vasnprintf-posix3.c (test_function, main): Likewise.
16471         * doc/posix-functions/getdelim.texi: Mention an uClibc bug.
16472         * doc/posix-functions/getline.texi: Likewise.
16473         Reported by Mike Frysinger <vapier@gentoo.org>.
16474
16475 2010-11-20  Bruno Haible  <bruno@clisp.org>
16476
16477         nproc: Fix condition.
16478         * lib/nproc.c: Test HAVE_PTHREAD_GETAFFINITY_NP, not
16479         HAVE_PTHREAD_AFFINITY_NP.
16480
16481 2010-11-20  Bruno Haible  <bruno@clisp.org>
16482
16483         Fix a comment.
16484         * lib/vasnprintf.c (VASNPRINTF): Fix comment.
16485
16486 2010-11-19  Paul Eggert  <eggert@cs.ucla.edu>
16487
16488         ftoastr: don't assume snprintf
16489         * lib/ftoastr.c (snprintf) [! GNULIB_SNPRINTF_POSIX]:
16490         Implement a subset of snprintf here, by using sprintf safely.
16491         * modules/ftoastr (Depends-on): Remove snprintf.
16492
16493 2010-11-19  Jim Meyering  <meyering@redhat.com>
16494
16495         test-rename.h: fix compilation failure
16496         * tests/test-rename.h (test_rename): Add omitted "}".
16497
16498 2010-11-17  Jim Meyering  <meyering@redhat.com>
16499
16500         maint.mk: add a URL discussing the no-@acronym policy
16501         * top/maint.mk (sc_texinfo_acronym): Add a URL in a comment.
16502
16503 2010-11-18  Paul Eggert  <eggert@cs.ucla.edu>
16504
16505         ftoastr: depend on snprintf, improve comments
16506         * lib/ftoastr.c: Also mention Loitsch's draft.
16507         * lib/ftoastr.h: Require WIDTH to be nonnegative.  This isn't
16508         needed in the current implementation, but it might simplify
16509         speeding up the code later.
16510         * modules/ftoastr: Depend on snprintf; this improves portability.
16511         Suggested by Bruno Haible in the same email.
16512
16513         ftoastr: port to hosts lacking strtof and strtold
16514         Problem reported by Bruno Haible in
16515         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00242.html>.
16516         * lib/ftoastr.c (STRTOF): Define to strtod if in a pre-C99
16517         environment and strtold (and presumably strtof) are not available.
16518         * modules/ftoastr (Files): Add m4/c-strtod.m4.
16519         (configure.ac): Require gl_C99_STRTOLD.
16520
16521 2010-11-18  Bruno Haible  <bruno@clisp.org>
16522
16523         c-strtold: Avoid link error on AIX 7.
16524         * lib/c-strtod.c: Test also HAVE_STRTOD_L or HAVE_STRTOLD_L.
16525         * m4/c-strtod.m4 (gl_C_STRTOD): Test whether strtod_l exists.
16526         (gl_C_STRTOLD): Test whether strtold_l exists.
16527         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
16528
16529 2010-11-17  Paul Eggert  <eggert@cs.ucla.edu>
16530
16531         intprops: new macro INT_BITS_STRLEN_BOUND
16532         * lib/intprops.h (INT_BITS_STRLEN_BOUND): New macro, needed by
16533         ftoastr.h.  This exposes an internal of intprops.h that was formerly
16534         not exposed.  Also, it uses a slightly tighter bound than before;
16535         though this makes no practical difference, we might as well be as
16536         tight as we easily can.
16537
16538         ftoastr: new module, for lossless conversion of floats to short strings
16539         * lib/ftoastr.h, lib/ftoastr.c, lib/dtoastr.c, lib/ldtoastr.c:
16540         * modules/ftoastr: New files.
16541
16542 2010-11-15  Paul Eggert  <eggert@cs.ucla.edu>
16543
16544         bootstrap: port to Solaris sed
16545         * build-aux/bootstrap (get_version): Port to Solaris sed.
16546         See Ralf Wildenhues's note in
16547         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00156.html>.
16548
16549 2010-11-14  Jim Meyering  <meyering@redhat.com>
16550
16551         maint.mk: rename variable: s/noteworthy/gl_noteworthy_news_/
16552         * top/maint.mk (gl_noteworthy_news_): Rename from "noteworthy"
16553         and move definition closer to sole use.
16554
16555 2010-11-13  Jim Meyering  <meyering@redhat.com>
16556
16557         remove autoconf-2.57 work-around requiring AC_PROG_EGREP and AC_PROG_CPP
16558         Now we require at least autoconf-2.59, which means the work-around
16559         is no longer needed.
16560         * m4/alloca.m4 (gl_FUNC_ALLOCA): Remove work-around.
16561         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
16562         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Likewise.
16563         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Likewise.
16564         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
16565
16566 2010-11-13  Bruno Haible  <bruno@clisp.org>
16567
16568         rename, renameat: Avoid test failures at NFS mounted locations.
16569         * tests/test-rename.h (dentry_exists, assert_nonexistent): New
16570         functions.
16571         (test_rename): Use assert_nonexistent.
16572         * tests/test-rename.c: Include <dirent.h>.
16573         * tests/test-renameat.c: Likewise.
16574         Reported by Gary V. Vaughan <gary@gnu.org>.
16575
16576         rename, renameat: Document Linux bug with NFS
16577         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00154.html>.
16578         * doc/posix-functions/rename.texi: Mention the NFS bug on Linux.
16579         * doc/posix-functions/renameat.texi: Likewise.
16580         Suggested by Eric Blake.
16581
16582 2010-11-13  Bruno Haible  <bruno@clisp.org>
16583
16584         rename test: Add comments.
16585         * tests/test-rename.h (test_rename): Add structure and comments.
16586
16587 2010-11-13  Eric Blake  <eblake@redhat.com>
16588
16589         maintainer-makefile: cover a few more files
16590         * top/maint.mk (sc_prohibit_test_double_equal): Also cover shell
16591         scripts generated within C files, for libvirt.
16592
16593 2010-11-13  Bruno Haible  <bruno@clisp.org>
16594
16595         unistr/u8-mbtouc: Improve handling of ill-formed UTF-8 input.
16596         * lib/unistr/u8-mbtouc.c (u8_mbtouc): For an invalid multibyte
16597         character, return the number of bytes that belong together, not always
16598         1.
16599         * lib/unistr/u8-mbtouc-unsafe.c (u8_mbtouc_unsafe): Likewise.
16600         * lib/unistr/u8-mbtouc-aux.c (u8_mbtouc_aux): Likewise.
16601         * lib/unistr/u8-mbtouc-unsafe-aux.c (u8_mbtouc_unsafe_aux): Likewise.
16602         * lib/unistr/u8-mbsnlen.c (u8_mbsnlen): Use u8_mbtouc to determine the
16603         number of bytes of an invalid character.
16604         * tests/unistr/test-u8-mbtouc.c (test_safe_function): New function.
16605         (main): Invoke it.
16606         * tests/unistr/test-u8-mbtouc.h (test_function): Update two test
16607         results.
16608         * tests/unistr/test-u8-mbsnlen.c (main): Test various kinds of
16609         malformed byte sequences.
16610         * modules/unistr/u8-mbtouc (configure.ac): Bump version number.
16611         * modules/unistr/u8-mbtouc-unsafe (configure.ac): Likewise.
16612         * modules/unistr/u8-mbsnlen (configure.ac): Likewise.
16613         Reported by Ben Pfaff and Paolo Bonzini.
16614
16615 2010-11-13  Bruno Haible  <bruno@clisp.org>
16616
16617         openat: Work around glibc bug with fchownat() and empty file names.
16618         * m4/openat.m4 (gl_FUNC_FCHOWNAT_EMPTY_FILENAME_BUG): New macro.
16619         (gl_FUNC_FCHOWNAT): Invoke it.
16620         * lib/fchownat.c (rpl_fchownat): Handle the empty file name specially.
16621         * doc/posix-functions/fchownat.texi: Document the glibc bug.
16622         Reported by Gary V. Vaughan <gary@gnu.org>.
16623
16624 2010-11-13  Bruno Haible  <bruno@clisp.org>
16625
16626         openat: Ensure autoconf macro ordering.
16627         * m4/openat.m4 (gl_FUNC_FCHOWNAT_DEREF_BUG): Require
16628         gl_USE_SYSTEM_EXTENSIONS.
16629         (gl_FUNC_FCHOWNAT): Require gl_UNISTD_H_DEFAULTS.
16630
16631 2010-11-13  Bruno Haible  <bruno@clisp.org>
16632
16633         Update comments.
16634         * lib/unistr/u8-check.c: Update file name in comments.
16635         * lib/unistr/u8-mblen.c: Likewise.
16636         * lib/unistr/u8-prev.c: Likewise.
16637         * lib/unistr/u8-strmblen.c: Likewise.
16638         * lib/unistr/u8-strmbtouc.c: Likewise.
16639
16640 2010-11-13  Jim Meyering  <meyering@redhat.com>
16641
16642         tests: avoid test failure on Solaris 10 due to lack of PATH export
16643         * tests/test-update-copyright.sh: Don't forget to export PATH.
16644
16645         init.sh: ensure that IFS is defined, just in case...
16646         * tests/init.sh (setup_): Ensure that IFS is defined,
16647         so that saving and restoring it works as expected.  This
16648         appears to be useful at least for an old version of dash
16649         from a long time ago (RH 6).  See here for details:
16650         http://thread.gmane.org/gmane.comp.gnu.coreutils.general/436/focus=455
16651
16652         maint.mk: tighten "test a == b" check
16653         * top/maint.mk (sc_prohibit_test_double_equal): Restrict this
16654         test to files that contain something like #!/bin/sh.
16655         Without this, coreutils would get two false positives in
16656         the comments of C source files.
16657
16658 2010-11-12  Eric Blake  <eblake@redhat.com>
16659
16660         bootstrap: fix typo in previous attempt
16661         * build-aux/bootstrap (buildreq): Correct the grouping.
16662         Reported by Paul Eggert.
16663
16664         maintainer-makefile: prohibit test x == x
16665         * top/maint.mk (sc_prohibit_test_double_equal): New rule.
16666         Based on a report by Matthias Bolte.
16667
16668         bootstrap: allow FreeBSD gzip
16669         * build-aux/bootstrap (get_version): Parse FreeBSD gzip version,
16670         which has no '.' and goes to stderr.
16671         * build-aux/bootstrap.conf (buildreq): Improve the sample file.
16672         Reported by Matthias Bolte.
16673
16674         maintainer-makefile: check for i18n setup
16675         * top/maint.mk (sc_bindtextdomain): Check for evidence that _()
16676         will likely work.
16677
16678 2010-11-12  Bruno Haible  <bruno@clisp.org>
16679
16680         sleep, nanosleep: Work around Linux 2.6.9 nanosleep bug.
16681         * lib/sleep.c (rpl_sleep): Split in chunks no larger than 24 days.
16682         * lib/nanosleep.c (nanosleep): Likewise.
16683
16684 2010-11-11  Bruno Haible  <bruno@clisp.org>
16685
16686         fcntl-h: Fix for use of C++ on glibc systems.
16687         * lib/fcntl.in.h: Include <sys/stat.h> before include_next <fcntl.h>
16688         also on glibc systems in C++ mode.
16689         Reported by Gary V. Vaughan <gary@gnu.org>.
16690
16691 2010-11-11  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
16692
16693         mknod: avoid false failure with dash
16694         * m4/mknod.m4 (gl_FUNC_MKNOD): Use portable shell syntax.
16695
16696 2010-11-11  Paul Eggert  <eggert@cs.ucla.edu>
16697
16698         unlink: Fix "is it should" typo in diagnostic.
16699         * m4/unlink.m4 (gl_FUNC_UNLINK): Fix typo, as per Reuben Thomas in
16700         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00106.html>.
16701
16702 2010-11-11  Bruno Haible  <bruno@clisp.org>
16703
16704         Tests for module 'strerror_r-posix'.
16705         * modules/strerror_r-posix-tests: New file.
16706         * tests/test-strerror_r.c: New file.
16707         * tests/test-string-c++.cc: Check the signature of strerror_r.
16708
16709         New module 'strerror_r-posix'.
16710         * lib/string.in.h (strerror_r): New declaration.
16711         * lib/strerror_r.c: New file.
16712         * m4/strerror_r.m4: New file.
16713         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Check for the declaration
16714         of strerror_r.
16715         (gl_HEADER_STRING_H_DEFAULTS): Initialize GNULIB_STRERROR_R,
16716         HAVE_DECL_STRERROR_R, REPLACE_STRERROR_R.
16717         * modules/strerror_r-posix: New file.
16718         * modules/string (Makefile.am): Substitute GNULIB_STRERROR_R,
16719         HAVE_DECL_STRERROR_R, REPLACE_STRERROR_R.
16720         * doc/posix-functions/strerror_r.texi: Mention the new module and the
16721         portability problems.
16722
16723 2010-11-11  Torsten Scheck  <Torsten.Scheck@Leica-Microsystems.com> (tiny change)
16724
16725         * build-aux/pmccabe2html: Fixed a off-by-one error, so last input
16726         line is also considered for output. Quoted function name in shell
16727         command, so temporary files for functions like MyClass::operator()
16728         are removed correctly without errors.
16729
16730 2010-11-09  Bruno Haible  <bruno@clisp.org>
16731
16732         * doc/posix-functions/strerror.texi: List more failing platforms.
16733
16734         * doc/posix-functions/strerror.texi: Add a comment.
16735
16736 2010-11-07  Paul Eggert  <eggert@cs.ucla.edu>
16737
16738         fdopendir: fix bug on MacOS X when low on file descriptors
16739
16740         * lib/fdopendir.c (REPLACE_FCHDIR): #define to 0 if not defined.
16741         (fdopendir_with_dup, fd_clone_opendir): Now have extra CWD arg.
16742         All callers changed.
16743         (fdopendir): Invoke save_cwd at the top level, not after using
16744         multiple dup() calls to use up file descriptors.  Then retry
16745         fdopendir_with_dup.  This avoids failure with EMFILE if FD is 1
16746         less than the maximum number of open file descriptors, because
16747         save_cwd fails with errno == EMFILE.  Problem reported by tsteven4
16748         on Mac OS X 10.6.4 for tar 1.24
16749         <http://lists.gnu.org/archive/html/bug-tar/2010-10/msg00084.html>
16750         <http://lists.gnu.org/archive/html/bug-tar/2010-11/msg00000.html>
16751         and for tar 1.25
16752         <http://lists.gnu.org/archive/html/bug-tar/2010-11/msg00038.html>.
16753
16754 2010-11-07  Bruno Haible  <bruno@clisp.org>
16755
16756         vasnprintf: Support I flag on glibc systems.
16757         * lib/printf-parse.h (FLAG_LOCALIZED): New macro.
16758         * lib/printf-parse.c (PRINTF_PARSE): Handle the 'I' flag.
16759         * lib/vasnprintf.c (VASNPRINTF): Pass the 'I' flag on to the system's
16760         snprintf function.
16761         * tests/test-vasnprintf-posix.c (test_function): Test the 'I' flag on
16762         glibc systems.
16763         * tests/test-vasnprintf-posix3.c: New file.
16764         * modules/vasnprintf-posix-tests (Files): Add it.
16765         (TESTS, check_PROGRAMS): Add test-vasnprintf-posix3.
16766
16767 2010-11-05  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
16768
16769         [html] Fix copy/paste bug: Use unique name for compiler warnings.
16770         * MODULES.html.sh: For compiler warnings, use name
16771         `ansic_ext_compwarn' since `ansic_ext_misc' is already taken.
16772
16773 2010-11-05  Eric Blake  <eblake@redhat.com>
16774
16775         ceil, floor: avoid spurious failure with icc
16776         * tests/test-ceilf2.c (ceilf_reference): Avoid icc's use of DAZ
16777         [denormals-as-zero] when optimizing without -mieee-fp option.
16778         * tests/test-floorf2.c (floorf_reference): Likewise.
16779         * tests/test-ceilf1.c (dummy): New function.
16780         (main): Use it to outsmart icc's optimization.
16781         * tests/test-floorf1.c (dummy, main): Likewise.
16782
16783         tests: require working signbit
16784         * modules/ceilf-tests (Depends-on): Add signbit.
16785         * modules/ceill-tests (Depends-on): Likewise.
16786         * modules/floorf-tests (Depends-on): Likewise.
16787         * modules/floorl-tests (Depends-on): Likewise.
16788         * modules/round-tests (Depends-on): Likewise.
16789         * modules/roundf-tests (Depends-on): Likewise.
16790         * modules/roundl-tests (Depends-on): Likewise.
16791         * modules/trunc-tests (Depends-on): Likewise.
16792         * modules/truncf-tests (Depends-on): Likewise.
16793         * modules/truncl-tests (Depends-on): Likewise.
16794
16795         strtod: work around icc bug
16796         * lib/strtod.c (minus_zero): Define to working value.
16797         (strtod): Use it to avoid icc bug.
16798
16799         copysign: enhance tests
16800         * modules/copysign-tests (Files): Add minus-zero.h.
16801         * tests/test-copysign.c (main): Also test zeros.
16802
16803 2010-11-04  Eric Blake  <eblake@redhat.com>
16804
16805         ceil, floor, round, trunc: enhance tests of -0
16806         * tests/test-ceilf1.c (main): Ensure correct sign of result.
16807         * tests/test-ceill.c (main): Likewise.
16808         * tests/test-floorf1.c (main): Likewise.
16809         * tests/test-floorl.c (main): Likewise.
16810         * tests/test-round1.c (main): Likewise.
16811         * tests/test-roundf1.c (main): Likewise.
16812         * tests/test-roundl.c (main): Likewise.
16813         * tests/test-trunc1.c (main): Likewise.
16814         * tests/test-truncf1.c (main): Likewise.
16815         * tests/test-truncl.c (main): Likewise.
16816
16817 2010-11-04  Eric Blake  <eblake@redhat.com>
16818
16819         frexp, tests: work around ICC bug with -zero
16820         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Compute -0.0 in a way that
16821         works with more compilers.
16822         * tests/minus-zero.h: New file.
16823         * modules/ceilf-tests (Files): Include it.
16824         * modules/ceill-tests (Files): Likewise.
16825         * modules/floorf-tests (Files): Likewise.
16826         * modules/floorl-tests (Files): Likewise.
16827         * modules/frexp-nolibm-tests (Files): Likewise.
16828         * modules/frexp-tests (Files): Likewise.
16829         * modules/frexpl-nolibm-tests (Files): Likewise.
16830         * modules/frexpl-tests (Files): Likewise.
16831         * modules/isnan-tests (Files): Likewise.
16832         * modules/isnand-nolibm-tests (Files): Likewise.
16833         * modules/isnand-tests (Files): Likewise.
16834         * modules/isnanf-nolibm-tests (Files): Likewise.
16835         * modules/isnanf-tests (Files): Likewise.
16836         * modules/isnanl-nolibm-tests (Files): Likewise.
16837         * modules/isnanl-tests (Files): Likewise.
16838         * modules/round-tests (Files): Likewise.
16839         * modules/roundf-tests (Files): Likewise.
16840         * modules/roundl-tests (Files): Likewise.
16841         * modules/ldexpl-tests (Files): Likewise.
16842         * modules/signbit-tests (Files): Likewise.
16843         * modules/snprintf-posix-tests (Files): Likewise.
16844         * modules/sprintf-posix-tests (Files): Likewise.
16845         * modules/strtod-tests (Files): Likewise.
16846         * modules/trunc-tests (Files): Likewise.
16847         * modules/truncf-tests (Files): Likewise.
16848         * modules/truncl-tests (Files): Likewise.
16849         * modules/vsnprintf-posix-tests (Files): Likewise.
16850         * modules/vsprintf-posix-tests (Files): Likewise.
16851         * modules/vasnprintf-posix-tests (Files): Likewise.
16852         * modules/vasprintf-posix-tests (Files): Likewise.
16853         * tests/test-ceilf1.c (main): Use it.
16854         * tests/test-ceill.c (main): Likewise.
16855         * tests/test-floorf1.c (main): Likewise.
16856         * tests/test-floorl.c (main): Likewise.
16857         * tests/test-frexp.c (main): Likewise.
16858         * tests/test-frexpl.c (main): Likewise.
16859         * tests/test-isnan.c (main): Likewise.
16860         * tests/test-isnand.h (main): Likewise.
16861         * tests/test-isnanf.h (main): Likewise.
16862         * tests/test-isnanl.h (main): Likewise.
16863         * tests/test-ldexpl.c (main): Likewise.
16864         * tests/test-round.c (main): Likewise.
16865         * tests/test-roundf.c (main): Likewise.
16866         * tests/test-roundl.c (main): Likewise.
16867         * tests/test-signbit.c (test_signbitf, test_signbitd)
16868         (test_signbitl): Likewise.
16869         * tests/test-snprintf-posix.h (test_function): Likewise.
16870         * tests/test-sprintf-posix.h (test_function): Likewise.
16871         * tests/test-strtod.c (main): Likewise.
16872         * tests/test-trunc1.c (main): Likewise.
16873         * tests/test-truncf1.c (main): Likewise.
16874         * tests/test-truncl.c (main): Likewise.
16875
16876         isnanl: work around icc bug
16877         * lib/isnan.c (FUNC): Compute run-time NaN under ICC as well.
16878
16879 2010-11-03  Eric Blake  <eblake@redhat.com>
16880
16881         tests: fix compiler warnings
16882         * tests/test-getopt.h (test_getopt): Fix condition.
16883         * tests/test-getopt_long.h (test_getopt_long): Likewise.
16884         * tests/test-pipe2.c (main): Likewise.
16885         * tests/test-quotearg-simple.c (main): Avoid icc warning.
16886
16887         utimens: fix broken m4 test
16888         * m4/utimens.m4 (gl_UTIMENS): Include correct headers.
16889
16890 2010-10-28  Bruno Haible  <bruno@clisp.org>
16891
16892         posix_spawn*, getdtablesize: Relax license.
16893         * modules/posix_spawn (License): Change to LGPLv2+.
16894         * modules/posix_spawnp (License): Likewise.
16895         * modules/posix_spawn-internal (License): Likewise.
16896         * modules/posix_spawnattr_init (License): Likewise.
16897         * modules/posix_spawnattr_getflags (License): Likewise.
16898         * modules/posix_spawnattr_setflags (License): Likewise.
16899         * modules/posix_spawnattr_getpgroup (License): Likewise.
16900         * modules/posix_spawnattr_setpgroup (License): Likewise.
16901         * modules/posix_spawnattr_getschedparam (License): Likewise.
16902         * modules/posix_spawnattr_setschedparam (License): Likewise.
16903         * modules/posix_spawnattr_getschedpolicy (License): Likewise.
16904         * modules/posix_spawnattr_setschedpolicy (License): Likewise.
16905         * modules/posix_spawnattr_getsigdefault (License): Likewise.
16906         * modules/posix_spawnattr_setsigdefault (License): Likewise.
16907         * modules/posix_spawnattr_getsigmask (License): Likewise.
16908         * modules/posix_spawnattr_setsigmask (License): Likewise.
16909         * modules/posix_spawnattr_destroy (License): Likewise.
16910         * modules/posix_spawn_file_actions_init (License): Likewise.
16911         * modules/posix_spawn_file_actions_addclose (License): Likewise.
16912         * modules/posix_spawn_file_actions_adddup2 (License): Likewise.
16913         * modules/posix_spawn_file_actions_addopen (License): Likewise.
16914         * modules/posix_spawn_file_actions_destroy (License): Likewise.
16915         * modules/getdtablesize (License): Likewise.
16916         Requested by Adam Stokes <ajs@redhat.com> for use in netcf.
16917
16918 2010-10-26  Bruno Haible  <bruno@clisp.org>
16919
16920         unistd: Refine workaround from 2009-12-23 against Cygwin bug.
16921         * lib/unistd.in.h: Don't include <stdio.h> and <fcntl.h>, except on
16922         Cygwin and mingw.
16923         Suggested by Eric Blake.
16924
16925 2010-10-26  Bruno Haible  <bruno@clisp.org>
16926
16927         stdio: Work around compilation error due to renameat() on Solaris 10.
16928         * lib/stdio.in.h: Include <unistd.h> on Solaris.
16929         * lib/renameat.c: Don't include <unistd.h> here.
16930         * doc/posix-functions/renameat.texi: Mention the Solaris problem.
16931         Reported by Paul Eggert and Eric Blake.
16932
16933 2010-10-26  Paul Eggert  <eggert@cs.ucla.edu>
16934
16935         renameat: port to Solaris 10, which declares renameat in unistd.h
16936
16937         * lib/renameat.c: Include unistd.h before stdio.h, because
16938         Solaris 10 declares renameat in unistd.h.  Problem encountered
16939         when building GNU tar 1.24 on Solaris 10.
16940
16941 2010-10-26  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
16942
16943         fdopendir: fix C89 compilation
16944         * lib/fdopendir.c (fd_clone_opendir): Move declaration for older
16945         compilers.
16946
16947 2010-10-23  Paul Eggert  <eggert@cs.ucla.edu>
16948
16949         inttostr: simplify by removing unnecessary redundancy
16950         * lib/anytostr.c: Don't include verify.h.
16951         (anytostr): Don't verify that TYPE_SIGNED (inttype) equals
16952         inttype_is_signed.  Instead, disable the bogus GCC warnings, so that
16953         there's no need for inttype_is_signed and for calling TYPE_SIGNED.
16954         * lib/imaxtostr.c (inttype_is_signed): Remove; no longer needed.
16955         * lib/inttostr.c, lib/offtostr.c, lib/uinttostr.c, lib/umaxtostr.c:
16956         Likewise.
16957         * modules/inttostr (Depends-on): Remove 'verify'.
16958
16959 2010-10-23  Bruno Haible  <bruno@clisp.org>
16960
16961         nl_langinfo: Mention problem with CRNCYSTR on NetBSD 5.0.
16962         * doc/posix-functions/nl_langinfo.texi: Mention problem with CRNCYSTR.
16963         Reported by Eric Blake.
16964
16965 2010-10-23  Bruno Haible  <bruno@clisp.org>
16966
16967         Tests: Fix LOCALE_JA on MirBSD 10.
16968         * m4/locale-ja.m4 (gt_LOCALE_JA): Reject a locale identifier that leads
16969         to an UTF-8 locale.
16970         * m4/locale-fr.m4 (gt_LOCALE_FR): Likewise.
16971         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
16972         Reported by Eric Blake.
16973
16974 2010-10-21  Bruno Haible  <bruno@clisp.org>
16975
16976         nl_langinfo test: Avoid test failure on NetBSD 5.
16977         * tests/test-nl_langinfo.c (main): Relax test of nl_langinfo(CRNCYSTR).
16978         Reported by Eric Blake.
16979
16980 2010-10-21  Eric Blake  <eblake@redhat.com>
16981
16982         c-stack: work around libsigsegv 2.8 bug
16983         * lib/c-stack.c (SIGSTKSZ): Increase size to avoid alternate stack
16984         overflow on at least PowerPC64.
16985
16986 2010-10-17  Bruno Haible  <bruno@clisp.org>
16987
16988         userspec: Drop redundant file.
16989         * modules/userspec (Files): Remove lib/inttostr.h.
16990
16991 2010-10-17  Bruno Haible  <bruno@clisp.org>
16992
16993         nl_langinfo tests: Silence some warnings.
16994         * tests/test-nl_langinfo.c: Silence -Wtype-limits warnings.
16995         Reported by Jim Meyering.
16996
16997 2010-10-17  Bruno Haible  <bruno@clisp.org>
16998
16999         Make use of GCC's attribute __alloc_size__.
17000         * lib/xalloc.h (ATTRIBUTE_ALLOC_SIZE): New macro.
17001         (xmalloc, xzalloc, xcalloc, xrealloc, xmemdup, xnmalloc, xnrealloc,
17002         xcharalloc): Declare with ATTRIBUTE_ALLOC_SIZE.
17003         * lib/eealloc.h (eemalloc, eerealloc): Declare with attribute
17004         __alloc_size__.
17005         * lib/pagealign_alloc.h (pagealign_alloc, pagealign_xalloc): Likewise.
17006         Suggested by Jim Meyering.
17007
17008 2010-10-16  Joel E. Denny  <joeldenny@joeldenny.org>
17009
17010         bootstrap: anchor .gitignore entries.
17011         * build-aux/bootstrap (insert_sorted_if_absent): Replace all uses
17012         with...
17013         (insert_vc_ignore): ... this new function, which prepends `/' to
17014         all .gitignore entries before passing them to
17015         insert_sorted_if_absent.
17016
17017 2010-10-16  Bruno Haible  <bruno@clisp.org>
17018
17019         nextafter: Fix configure check.
17020         * modules/nextafter (configure.ac): Correct expected prototype.
17021
17022 2010-10-16  Bruno Haible  <bruno@clisp.org>
17023
17024         termios: Update documentation.
17025         * doc/posix-headers/termios.texi: Mention remaining mingw problems.
17026
17027 2010-10-16  Bruno Haible  <bruno@clisp.org>
17028
17029         tests: Make them compile with TinyCC.
17030         * tests/test-strstr.c (main): Remove parentheses around array
17031         initializer.
17032
17033 2010-10-15  Eric Blake  <eblake@redhat.com>
17034
17035         ignore-value: make header idempotent
17036         * lib/ignore-value.h: Add double-inclusion guards.
17037         Reported by Stefan Berger.
17038
17039 2010-10-15  Jim Meyering  <meyering@redhat.com>
17040
17041         GNUmakefile: handle "stable" target, not "major"
17042         * top/GNUmakefile (_is-dist-target): s/major/stable/ to match the
17043         lists in maint.mk and announce-gen.  Without this, "make stable"
17044         would fail to ensure that $(VERSION) is up to date.
17045
17046 2010-10-15  Ludovic Courtès  <ludo@gnu.org>
17047
17048         * lib/isnan.c (FUNC): Treat TinyCC (`__TINYC__') like `__SUNPRO_C'
17049         & co.
17050
17051 2010-10-14  Bruno Haible  <bruno@clisp.org>
17052
17053         vasnprintf: Don't set errno to 0.
17054         * lib/vasnprintf.c (VASNPRINTF): Save and restore errno around the
17055         block that sets it to 0.
17056         Reported by Gianluigi Tiesi <sherpya@netfarm.it>.
17057
17058 2010-10-14  Bruno Haible  <bruno@clisp.org>
17059
17060         socketlib: Fix.
17061         * modules/socketlib (Files): Add m4/sys_socket_h.m4. Needed for
17062         gl_PREREQ_SYS_H_WINSOCK2.
17063         Reported by Ian Beckwith <ianb@erislabs.net>.
17064
17065 2010-10-13  Jim Meyering  <meyering@redhat.com>
17066
17067         test-select-stdin.c: avoid warn_unused_result warnings
17068         * tests/test-select-stdin.c: Include "macros.h".
17069         ASSERT that read and fflush succeed.
17070
17071 2010-10-13  Jim Meyering  <meyering@redhat.com>
17072
17073         git-version-gen: do require git-VC'd files in cwd
17074         * build-aux/git-version-gen: Reject a git version string
17075         if there are no commits associated with the current directory.
17076         This avoids an unlikely false-positive (unrelated dir whose parent
17077         repository also contains a tag matching v*), as pointed out
17078         by Giuseppe Scrivano in
17079         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/21843/focus=23664
17080
17081 2010-10-13  Paul Eggert  <eggert@cs.ucla.edu>
17082
17083         argv-iter: omit nonconforming declaration
17084         * lib/argv-iter.h (enum argv_iter_err): Omit the useless
17085         enum arg_iter_err declaration, which doesn't conform to C99.
17086         Solaris 10 cc warns about this.
17087
17088 2010-10-13  Eric Blake  <eblake@redhat.com>
17089
17090         termios: fix compilation on mingw
17091         * m4/termios_h.m4 (gl_TERMIOS_H_DEFAULTS): Set default.
17092         (gl_TERMIOS_H): Adjust it on mingw.
17093         * modules/termios (Makefile.am): Substitute new key.
17094         * lib/termios.in.h (includes): Make include_next conditional.
17095         * doc/posix-headers/termios.texi (termios.h): Update
17096         documentation.
17097         Reported by Daniel P. Berrange.
17098
17099 2010-10-13  Jim Meyering  <meyering@redhat.com>
17100
17101         git-version-gen: don't require that .git/ be in the current dir
17102         * build-aux/git-version-gen: Adjust this script so that it works
17103         when run from any working directory beneath the top-level .git/-
17104         containing directory.  Inspired by a patch from Giuseppe Scrivano,
17105         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/21843/focus=21847
17106
17107         test-select: avoid warn_unused_result warnings
17108         * tests/test-select.c: Include "macros.h".
17109         ASSERT that each call to read, write, and pipe succeeds.
17110         While not technically required, also check each "close".
17111         * modules/select-tests (Files): Add tests/macros.h.
17112
17113         test-symlinkat: remove declaration of unused local
17114         * tests/test-symlinkat.c (main): Remove unused local, "buf".
17115
17116         test-inttostr: avoid shadowing warnings
17117         * tests/test-inttostr.c (main): Rename local, "buf" to "b",
17118         and use malloc rather than the stack for the same reason as
17119         mentioned in the comment justifying the other allocation.
17120
17121 2010-10-11  Bruno Haible  <bruno@clisp.org>
17122
17123         stdlib: Allow multiple gnulib generated replacements to coexist.
17124         * lib/stdlib.in.h (struct random_data): Avoid identical redefinition.
17125         Reported by Sam Steingold <sds@gnu.org>.
17126
17127 2010-10-11  Jim Meyering  <meyering@redhat.com>
17128
17129         fix a documentation typo
17130         * doc/posix-functions/futimens.texi (futimens): Fix typo: s/itme/item/
17131
17132 2010-10-11  Eric Blake  <eblake@redhat.com>
17133
17134         futimens: work around Solaris 11 bug
17135         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Detect the bug.
17136         * tests/test-futimens.h (test_futimens): Enhance, rather than
17137         weaken test.
17138         * doc/posix-functions/futimens.texi (futimens): Document the bug.
17139
17140 2010-10-11  Paul Eggert  <eggert@cs.ucla.edu>
17141
17142         Indentation.
17143         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Indent
17144         higher-level operators more to the left.
17145
17146 2010-10-11  Jim Meyering  <meyering@redhat.com>
17147
17148         test-futimens: avoid unwarranted test failure on Solaris 5.11
17149         * tests/test-futimens.h (test_futimens): When provoking EBADF, use an
17150         invalid file descriptor, so we don't provoke EFAULT from Solaris 5.11,
17151         because it tries to dereference the NULL name argument.
17152
17153 2010-10-11  Bruno Haible  <bruno@clisp.org>
17154
17155         Indentation.
17156         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Improve
17157         indentation.
17158
17159 2010-10-11  Jim Meyering  <meyering@redhat.com>
17160
17161         spawn.in.h: make indentation consistent with parentheses
17162         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap):
17163         Make indentation consistent with parentheses.
17164
17165 2010-10-11  Gary V. Vaughan  <gary@gnu.org>
17166
17167         Fix mismatched parens in previous commit
17168         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Fix mismatched
17169         parens.
17170
17171 2010-10-10  Paul Eggert  <eggert@cs.ucla.edu>
17172
17173         rewrite int foo[2*X-1] to verify(X) or to int foo[X?1:-1]
17174
17175         * lib/float+.h (verify_sizeof_flt, verify_sizeof_dbl):
17176         (verify_sizeof_ldbl): Rewrite 2*X-1 to X?1:-1.
17177         * lib/malloca.c: Include "verify.h".
17178         (verify1): Remove, replacing with a verify call.
17179         * lib/relocwrapper.c (verify1): Likewise.
17180         * lib/vasnprintf.c (mp_limb_verify, mp_twolimb_verify, TCHAR_T_verify):
17181         Likewise.
17182         * modules/malloca (Depends-on): Add 'verify'.
17183         * modules/relocatable-prog-wrapper (Depends-on): Add 'verify'.
17184         * modules/vasnprintf (Depends-on): Add 'verify'.
17185         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
17186         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
17187         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
17188         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
17189         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
17190         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
17191         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
17192
17193         prefer (X ? 1 : -1) when converting from boolean (1,0) to int (1,-1)
17194
17195         Formerly the style was sometimes 2*X - 1, because the C standard
17196         was wrongly thought to disallow ?: in integral constant expressions.
17197         * lib/inet_ntop.c (verify_int_size): Rewrite 2*X-7 (!) to 4<=X?1:-1.
17198         * lib/signal.in.h (verify_NSIG_constraint): Rewrite 2*X-1 to X?1:-1.
17199         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Likewise.
17200         * lib/stdint.in.h (_verify_intmax_size): Likewise.
17201         * lib/time.in.h (struct __time_t_must_be_integral): Rewrite
17202         2 * ((time_t) 1 / 2 == 0) - 1 to (time_t) 1; this suffices to
17203         verify that time_t cannot be floating.
17204
17205 2010-10-08  Eric Blake  <eblake@redhat.com>
17206
17207         time: enforce recent POSIX ruling that time_t is integral
17208         * lib/time.in.h (__time_t_must_be_integral): Detect any
17209         problematic systems, allowing the rest of gnulib to assume POSIX.
17210
17211 2010-10-08  Jim Meyering  <meyering@redhat.com>
17212
17213         fdopendir: fix a bug on systems lacking openat and /proc support
17214         OpenBSD 4.7 is one such system.  The most noticeable effect was
17215         failure of any application making nontrivial use of fts: rm, du,
17216         chown, chmod etc.  E.g., "mkdir -p a/b; ./rm -rf a" would fail with
17217           ./rm: traversal failed: `a': Bad file descriptor
17218         Debugging that, you see that even though FD 6 was closed just
17219         prior to the opendir call in fd_clone_opendir, its resulting
17220         dir->dd_fd was 8, rather than the expected value of 6:
17221
17222         Breakpoint 3, fdopendir_with_dup (fd=6, older_dupfd=-1) at fdopendir.c:93
17223         93                close (fd);
17224         (gdb) n
17225         94                dir = fd_clone_opendir (dupfd);
17226         (gdb) n
17227         95                saved_errno = errno;
17228         (gdb) p dir->dd_fd
17229         $11 = 8
17230
17231         Notice how it closes FD 6, then gets a DIR* pointer using FD 8.
17232         The problem is that on OpenBSD, fd_clone_opendir has to resort
17233         to using the old-style save/restore CWD mechanism, due to its
17234         lack of openat/proc support, and *that* would steal the FD (6)
17235         that opendir was supposed to use.
17236
17237         The fix is to squirrel away the desired FD so that save_cwd uses a
17238         different one, and then free the dest FD right before calling opendir.
17239         That guarantees opendir will use the required file descriptor.
17240
17241         * lib/fdopendir.c (fd_clone_opendir): Handle the above.
17242
17243 2010-10-08  Bruno Haible  <bruno@clisp.org>
17244
17245         sys_select: Avoid warning due to undeclared memset() on OpenBSD 4.5.
17246         * lib/sys_select.in.h: Include <string.h> also on OpenBSD.
17247
17248 2010-10-08  Bruno Haible  <bruno@clisp.org>
17249
17250         nanosleep: Make replacement POSIX compliant.
17251         * lib/nanosleep.c (nanosleep): Return -1/EINVAL if the delay's tv_nsec
17252         is out of range.
17253         Reported by Jim Meyering.
17254
17255 2010-10-08  Paul Eggert  <eggert@cs.ucla.edu>
17256
17257         bootstrap: add hook for altering gnulib.mk, for Bison
17258         * build-aux/bootstrap (gnulib_mk_hook): New function, so that
17259         the Bison bootstrapping process can rewrite file names and variables
17260         in this file before later parts of 'bootstrap' use the file.
17261         Bison wants to include lib/gnulib.mk from the top-level makefile,
17262         so it needs the file names in this file to be relative to the top
17263         level, not relative to lib; plus it needs variable names to be
17264         rewritten.
17265         (slurp): Use the new function.
17266
17267         bootstrap: reformat for readability
17268         * build-aux/bootstrap: Rewrite to avoid lines longer than 80 columns.
17269
17270 2010-10-08  Eric Blake  <eblake@redhat.com>
17271
17272         docs: update cygwin progress
17273         * doc/posix-functions/cacos.texi (cacos): Added after cygwin
17274         1.7.7.
17275         * doc/posix-functions/cacosf.texi (cacosf): Likewise.
17276         * doc/posix-functions/cacosh.texi (cacosh): Likewise.
17277         * doc/posix-functions/cacoshf.texi (cacoshf): Likewise.
17278         * doc/posix-functions/carg.texi (carg): Likewise.
17279         * doc/posix-functions/cargf.texi (cargf): Likewise.
17280         * doc/posix-functions/casin.texi (casin): Likewise.
17281         * doc/posix-functions/casinf.texi (casinf): Likewise.
17282         * doc/posix-functions/casinh.texi (casinh): Likewise.
17283         * doc/posix-functions/casinhf.texi (casinhf): Likewise.
17284         * doc/posix-functions/catan.texi (catan): Likewise.
17285         * doc/posix-functions/catanf.texi (catanf): Likewise.
17286         * doc/posix-functions/catanh.texi (catanh): Likewise.
17287         * doc/posix-functions/catanhf.texi (catanhf): Likewise.
17288         * doc/posix-functions/ccos.texi (ccos): Likewise.
17289         * doc/posix-functions/ccosf.texi (ccosf): Likewise.
17290         * doc/posix-functions/ccosh.texi (ccosh): Likewise.
17291         * doc/posix-functions/ccoshf.texi (ccoshf): Likewise.
17292         * doc/posix-functions/cexp.texi (cexp): Likewise.
17293         * doc/posix-functions/cexpf.texi (cexpf): Likewise.
17294         * doc/posix-functions/cimag.texi (cimag): Likewise.
17295         * doc/posix-functions/cimagf.texi (cimagf): Likewise.
17296         * doc/posix-functions/clog.texi (clog): Likewise.
17297         * doc/posix-functions/clogf.texi (clogf): Likewise.
17298         * doc/posix-functions/conj.texi (conj): Likewise.
17299         * doc/posix-functions/conjf.texi (conjf): Likewise.
17300         * doc/posix-functions/cpow.texi (cpow): Likewise.
17301         * doc/posix-functions/cpowf.texi (cpowf): Likewise.
17302         * doc/posix-functions/cproj.texi (cproj): Likewise.
17303         * doc/posix-functions/cprojf.texi (cprojf): Likewise.
17304         * doc/posix-functions/creal.texi (creal): Likewise.
17305         * doc/posix-functions/crealf.texi (crealf): Likewise.
17306         * doc/posix-functions/csin.texi (csin): Likewise.
17307         * doc/posix-functions/csinf.texi (csinf): Likewise.
17308         * doc/posix-functions/csinh.texi (csinh): Likewise.
17309         * doc/posix-functions/csinhf.texi (csinhf): Likewise.
17310         * doc/posix-functions/csqrt.texi (csqrt): Likewise.
17311         * doc/posix-functions/csqrtf.texi (csqrtf): Likewise.
17312         * doc/posix-functions/ctan.texi (ctan): Likewise.
17313         * doc/posix-functions/ctanf.texi (ctanf): Likewise.
17314         * doc/posix-functions/ctanh.texi (ctanh): Likewise.
17315         * doc/posix-functions/ctanhf.texi (ctanhf): Likewise.
17316         * doc/posix-headers/complex.texi (complex.h): Likewise.
17317
17318 2010-10-07  Jim Meyering  <meyering@redhat.com>
17319
17320         parse-datetime: avoid compilation failure on OpenBSD 4.7
17321         * lib/parse-datetime.y (_STDLIB_H) [_STDLIB_H_]: Define.
17322         This works around a compilation failure on OpenBSD 4.7:
17323         http://thread.gmane.org/gmane.comp.parsers.bison.bugs/3418
17324
17325 2010-10-07  Eric Blake  <eblake@redhat.com>
17326
17327         docs: update cygwin progress
17328         * doc/glibc-functions/mkostemp.texi (mkostemp): Added in cygwin
17329         1.7.6.
17330         * doc/glibc-functions/mkostemps.texi (mkostemps): Likewise.
17331         * doc/posix-headers/fenv.texi (fenv.h): Added after cygwin 1.7.7.
17332         * doc/posix-functions/feclearexcept.texi (feclearexcept): Likewise.
17333         * doc/posix-functions/fegetenv.texi (fegetenv): Likewise.
17334         * doc/posix-functions/fegetexceptflag.texi (fegetexceptflag):
17335         Likewise.
17336         * doc/posix-functions/fegetround.texi (fegetround): Likewise.
17337         * doc/posix-functions/feholdexcept.texi (feholdexcept): Likewise.
17338         * doc/posix-functions/feraiseexcept.texi (feraiseexcept):
17339         Likewise.
17340         * doc/posix-functions/fesetenv.texi (fesetenv): Likewise.
17341         * doc/posix-functions/fesetexceptflag.texi (fesetexceptflag):
17342         Likewise.
17343         * doc/posix-functions/fesetround.texi (fesetround): Likewise.
17344         * doc/posix-functions/fetestexcept.texi (fetestexcept): Likewise.
17345         * doc/posix-functions/feupdateenv.texi (feupdateenv): Likewise.
17346         * doc/glibc-functions/feenableexcept.texi (feenableexcept):
17347         Likewise.
17348         * doc/glibc-functions/fedisableexcept.texi (fedisableexcept):
17349         Likewise.
17350         * doc/glibc-functions/fegetexcept.texi (fegetexcept): Likewise.
17351
17352         docs: update parse-datetime history
17353         * doc/parse-datetime.texi (Authors of parse_datetime): Better
17354         documentation of this function's history and alternatives.
17355
17356         cygwin: use more robust version check
17357         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE, gl_FUNC_MEMMEM): Don't
17358         exclude an eventual cygwin 1.9.1.
17359         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Likewise.
17360         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE)
17361         (gl_FUNC_STRCASESTR): Likewise.
17362         Reported by Bruno Haible.
17363
17364 2010-10-06  Bruno Haible  <bruno@clisp.org>
17365
17366         string, sys_select: Avoid #including large headers unless necessary.
17367         * lib/string.in.h: Don't include <unistd.h> except on NetBSD.
17368         * lib/sys_select.in.h: Don't include <string.h> except on Solaris,
17369         OSF/1, BeOS, Haiku.
17370         Reported by Jim Meyering.
17371
17372 2010-10-05  Eric Blake  <eblake@redhat.com>
17373
17374         memmem, strstr, strcasestr: fix bug with long periodic needle
17375         * lib/str-two-way.h (two_way_long_needle): Avoid bug with long
17376         periodic needle having false positive.
17377         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): Detect bug in glibc 2.12
17378         and cygwin 1.7.7.
17379         (gl_FUNC_MEMMEM): Be more pessimistic when cross-compiling.
17380         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE)
17381         (gl_FUNC_STRCASESTR): Likewise.
17382         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Likewise.
17383         * tests/test-memmem.c (main): Expose the bug.
17384         * tests/test-strcasestr.c (main): Likewise.
17385         * tests/test-strstr.c (main): Likewise.
17386         * tests/test-c-strcasestr.c (main): Likewise.
17387         * doc/glibc-functions/memmem.texi (memmem): Document the bug.
17388         * doc/posix-functions/strstr.texi (strstr): Likewise.
17389         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
17390         Reported via http://sourceware.org/bugzilla/show_bug.cgi?id=12092
17391
17392 2010-10-05  Paul Eggert  <eggert@cs.ucla.edu>
17393
17394         parse-datetime: do some more renaming
17395         * doc/parse-datetime.texi (Authors of parse_datetime): Call it
17396         parse_datetime, not get_date.  Mention the renaming.
17397         * lib/parse-datetime.y:  Call it parse_datetime, not getdate,
17398         in comments.
17399         * m4/bison.m4: Likewise.
17400
17401 2010-10-05  Eric Blake  <eblake@redhat.com>
17402
17403         parse-datetime: better name than get_date
17404         * NEWS: Reword the deprecation notice.
17405         * modules/get_date: Rename to modules/parse-datetime.
17406         * modules/get_date-tests: Rename to modules/parse-datetime-tests.
17407         * m4/get_date.m4: Rename to m4/parse-datetime.m4.
17408         * lib/get_date.y: Rename to lib/parse-datetime.y.
17409         * tests/test-get_date.c: Rename to tests/test-parse-datetime.c.
17410         * doc/get_date.texi: Rename to doc/parse-datetime.texi.
17411         * doc/getdate.texi: Provide fallback wrapper.
17412         * lib/getdate.h: Move guts, and wrap...
17413         * lib/parse-datetime.h: ...new file.
17414         * lib/parse-datetime.y (get_date): Rename...
17415         (parse_datetime): ...to this.
17416         * m4/parse-datetime.m4 (gl_GET_DATE): Rename...
17417         (gl_PARSE_DATETIME): ...to this.
17418         * doc/posix-functions/getdate.texi (get_date): Provide fallback
17419         documentation.
17420         * modules/getdate (Files): Provide fallback docs and header.
17421         (Notice, Depends-on): Update references.
17422         * tests/test-parse-datetime.c: Likewise.
17423         * DEPENDENCIES: Likewise.
17424         * MODULES.html.sh (Date and time <time.h>): Likewise.
17425         * doc/parse-datetime.texi (Date input formats)
17426         (Authors of parse_datetime): Likewise.
17427         * modules/parse-datetime (Files, configure.ac, Makefile.am)
17428         (Include): Likewise.
17429         * modules/parse-datetime-tests (Files, Makefile.am): Likewise.
17430         * gnulib-tool: Likewise.
17431         * m4/bison.m4 (gl_BISON): Likewise.
17432         Suggested by Bruno Haible.
17433
17434 2010-10-05  Paul Eggert  <eggert@cs.ucla.edu>
17435
17436         more ports to Solaris tr, which needs [] around ranges
17437         * gnulib-tool: Solaris tr needs [] around ranges.
17438         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): Likewise.
17439         * tests/test-pipe-filter-gi1.c (main): Likewise.
17440         * tests/test-pipe-filter-ii1.c (main): Likewise.
17441
17442 2010-10-05  Eric Blake  <eblake@redhat.com>
17443
17444         bootstrap: fix Solaris regression
17445         * build-aux/bootstrap (check_versions): Solaris tr still needs []
17446         around ranges.
17447         Reported by Pádraig Brady.
17448
17449         bootstrap: work with pkg-config
17450         * build-aux/bootstrap (check_versions): Also transliterate - in
17451         prerequisite name.
17452         (print_versions): Be robust to any \ in $buildreq.  Avoid listing
17453         prerequisites that were already found, to avoid confusion.
17454         Reported by Justin Clift.
17455
17456         faccessat: remove unused wrappers
17457         * lib/openat.h (accessat, euidaccesat): Delete, since the mere
17458         presence of these wrappers dragged in -lgen on Solaris.
17459         Reported by Clemens Brogi; fix suggested by Paul Eggert.
17460
17461 2010-10-05  Jim Meyering  <meyering@redhat.com>
17462
17463         tests: require @PRAGMA_COLUMNS@ with each @PRAGMA_SYSTEM_HEADER@
17464         * Makefile (sc_pragma_columns): New syntax-check rule.
17465
17466 2010-10-04  Bruno Haible  <bruno@clisp.org>
17467
17468         gnulib-tool: Synthesize appropriate _LDFLAGS for a libtool library.
17469         * gnulib-tool (func_emit_lib_Makefile_am): When preparing for a libtool
17470         library, put '-no-undefined' and the link dependencies into _LDFLAGS.
17471         Reported by Bruce Korb and Eric Blake.
17472
17473 2010-10-04  Bruno Haible  <bruno@clisp.org>
17474
17475         threadlib: Make option --with-libpth-prefix work.
17476         * m4/threadlib.m4 (gl_THREADLIB_BODY): When testing whether pth works,
17477         use $LIBPTH, not just -lpth.
17478
17479 2010-10-04  Bruno Haible  <bruno@clisp.org>
17480
17481         Avoid line length limitation from HP NonStop system header files.
17482         * m4/include_next.m4 (gl_INCLUDE_NEXT): Define also PRAGMA_COLUMNS.
17483         * lib/arpa_inet.in.h: Use PRAGMA_COLUMNS.
17484         * lib/ctype.in.h: Likewise.
17485         * lib/dirent.in.h: Likewise.
17486         * lib/errno.in.h: Likewise.
17487         * lib/fcntl.in.h: Likewise.
17488         * lib/float.in.h: Likewise.
17489         * lib/getopt.in.h: Likewise.
17490         * lib/iconv.in.h: Likewise.
17491         * lib/inttypes.in.h: Likewise.
17492         * lib/langinfo.in.h: Likewise.
17493         * lib/locale.in.h: Likewise.
17494         * lib/math.in.h: Likewise.
17495         * lib/netdb.in.h: Likewise.
17496         * lib/netinet_in.in.h: Likewise.
17497         * lib/poll.in.h: Likewise.
17498         * lib/pthread.in.h: Likewise.
17499         * lib/pty.in.h: Likewise.
17500         * lib/sched.in.h: Likewise.
17501         * lib/se-selinux.in.h: Likewise.
17502         * lib/search.in.h: Likewise.
17503         * lib/signal.in.h: Likewise.
17504         * lib/spawn.in.h: Likewise.
17505         * lib/stdarg.in.h: Likewise.
17506         * lib/stddef.in.h: Likewise.
17507         * lib/stdint.in.h: Likewise.
17508         * lib/stdio.in.h: Likewise.
17509         * lib/stdlib.in.h: Likewise.
17510         * lib/string.in.h: Likewise.
17511         * lib/strings.in.h: Likewise.
17512         * lib/sys_file.in.h: Likewise.
17513         * lib/sys_ioctl.in.h: Likewise.
17514         * lib/sys_select.in.h: Likewise.
17515         * lib/sys_socket.in.h: Likewise.
17516         * lib/sys_stat.in.h: Likewise.
17517         * lib/sys_time.in.h: Likewise.
17518         * lib/sys_times.in.h: Likewise.
17519         * lib/sys_utsname.in.h: Likewise.
17520         * lib/sys_wait.in.h: Likewise.
17521         * lib/sysexits.in.h: Likewise.
17522         * lib/termios.in.h: Likewise.
17523         * lib/time.in.h: Likewise.
17524         * lib/unistd.in.h: Likewise.
17525         * lib/wchar.in.h: Likewise.
17526         * lib/wctype.in.h: Likewise.
17527         * modules/arpa_inet (Makefile.am): Substitute PRAGMA_COLUMNS.
17528         * modules/ctype (Makefile.am): Likewise.
17529         * modules/dirent (Makefile.am): Likewise.
17530         * modules/errno (Makefile.am): Likewise.
17531         * modules/fcntl-h (Makefile.am): Likewise.
17532         * modules/float (Makefile.am): Likewise.
17533         * modules/getopt-posix (Makefile.am): Likewise.
17534         * modules/iconv-h (Makefile.am): Likewise.
17535         * modules/inttypes (Makefile.am): Likewise.
17536         * modules/langinfo (Makefile.am): Likewise.
17537         * modules/locale (Makefile.am): Likewise.
17538         * modules/math (Makefile.am): Likewise.
17539         * modules/netdb (Makefile.am): Likewise.
17540         * modules/netinet_in (Makefile.am): Likewise.
17541         * modules/poll-h (Makefile.am): Likewise.
17542         * modules/pthread (Makefile.am): Likewise.
17543         * modules/pty (Makefile.am): Likewise.
17544         * modules/sched (Makefile.am): Likewise.
17545         * modules/search (Makefile.am): Likewise.
17546         * modules/selinux-h (Makefile.am): Likewise.
17547         * modules/signal (Makefile.am): Likewise.
17548         * modules/spawn (Makefile.am): Likewise.
17549         * modules/stdarg (Makefile.am): Likewise.
17550         * modules/stddef (Makefile.am): Likewise.
17551         * modules/stdint (Makefile.am): Likewise.
17552         * modules/stdio (Makefile.am): Likewise.
17553         * modules/stdlib (Makefile.am): Likewise.
17554         * modules/string (Makefile.am): Likewise.
17555         * modules/strings (Makefile.am): Likewise.
17556         * modules/sys_file (Makefile.am): Likewise.
17557         * modules/sys_ioctl (Makefile.am): Likewise.
17558         * modules/sys_select (Makefile.am): Likewise.
17559         * modules/sys_socket (Makefile.am): Likewise.
17560         * modules/sys_stat (Makefile.am): Likewise.
17561         * modules/sys_time (Makefile.am): Likewise.
17562         * modules/sys_times (Makefile.am): Likewise.
17563         * modules/sys_utsname (Makefile.am): Likewise.
17564         * modules/sys_wait (Makefile.am): Likewise.
17565         * modules/sysexits (Makefile.am): Likewise.
17566         * modules/termios (Makefile.am): Likewise.
17567         * modules/time (Makefile.am): Likewise.
17568         * modules/unistd (Makefile.am): Likewise.
17569         * modules/wchar (Makefile.am): Likewise.
17570         * modules/wctype (Makefile.am): Likewise.
17571
17572 2010-10-04  Bruno Haible  <bruno@clisp.org>
17573
17574         read-file tests: Avoid a test failure on NonStop Kernel.
17575         * tests/test-read-file.c (main): Don't assume that /etc/resolv.conf is
17576         a regular file.
17577         Reported by Joachim Schmitz <schmitz@hp.com>.
17578
17579 2010-10-03  Bruno Haible  <bruno@clisp.org>
17580
17581         gnulib-tool: Fixes for --create-testdir with --libtool.
17582         * gnulib-tool (func_get_automake_snippet): Don't augment
17583         EXTRA_lib_SOURCES for the pt_chown module, since pt_chown.o goes into
17584         an executable.
17585         (func_create_testdir): Handle module 'alloca' like func_import.
17586         Reported by Bruce Korb <bruce.korb@gmail.com>.
17587
17588 2010-10-03  Paul Eggert  <eggert@cs.ucla.edu>
17589
17590         Avoid some lines longer than 80 characters.
17591         * lib/stdint.in.h: Break long comment lines.
17592         * lib/math.in.h: Likewise.
17593         (_GL_NUM_UINT_WORDS): New macro, for readability.
17594         (gl_signbitf, gl_signbitd, gl_signbitl): Use it.
17595         * lib/stdio.in.h: Break lines in _GL_WARN_ON_USE calls.
17596         * lib/stdlib.in.h: Likewise.
17597         * lib/spawn.in.h: Likewise.
17598         * lib/sys_socket.in.h: Update an URL.
17599         * lib/sys_stat.in.h: Break long line.
17600
17601 2010-10-03  Reuben Thomas  <rrt@sc3d.org>
17602
17603         Improve pmccabe2html.
17604         * build-aux/pmccabe2html: Add CYCLO_SRCS variable, and make
17605         cyclo-$(PACKAGE).html depend on it, so the HTML file is remade
17606         when the sources change. Remove the line in the HTML about "Used
17607         ranges" (which implied that there might be other unused ranges),
17608         rename "Resume" to "Summary" (easier to understand for more users).
17609         * build-aux/pmccabe.css: Removing the dashed dividers, some unused
17610         styles, and some unnecessary blank lines.
17611
17612 2010-10-03  Bruno Haible  <bruno@clisp.org>
17613             Joachim Schmitz  <schmitz@hp.com>  (tiny change)
17614
17615         acl: Add support for ACLs on NonStop Kernel.
17616         * m4/acl.m4 (gl_FUNC_ACL): For Solaris, test for facl(), not for acl().
17617         Check whether the function aclsort() exists.
17618         * lib/acl-internal.h: For Solaris, test HAVE_FACL, not HAVE_ACL.
17619         (acl_nontrivial) [HAVE_ACLSORT]: New declaration.
17620         * lib/file-has-acl.c: For Solaris, test HAVE_FACL, not HAVE_ACL.
17621         (acl_nontrivial [HAVE_ACLSORT]: New function.
17622         (file_has_acl): Implement for NonStop Kernel.
17623         * lib/set-mode-acl.c: For Solaris, test HAVE_FACL, not HAVE_ACL.
17624         (qset_acl): Implement for NonStop Kernel.
17625         * lib/copy-acl.c (qcopy_acl): Implement for NonStop Kernel.
17626         * tests/test-sameacls.c: For Solaris, test HAVE_FACL, not HAVE_ACL.
17627         (main): Implement for NonStop Kernel.
17628         * tests/test-file-has-acl.sh (acl_flavor): Set to 'nsk' on NonStop
17629         Kernel. Handle this flavor.
17630         * tests/test-set-mode-acl.sh: Likewise.
17631         * tests/test-copy-acl.sh: Likewise.
17632         * tests/test-copy-file.sh: Likewise.
17633
17634 2010-10-03  Bruno Haible  <bruno@clisp.org>
17635
17636         Info about ACLs on NonStop Kernel.
17637         * doc/acl-resources.txt: Add info about NonStop Kernel.
17638         References by Joachim Schmitz <schmitz@hp.com>.
17639
17640 2010-10-02  Bruno Haible  <bruno@clisp.org>
17641
17642         Define missing EDQUOT on NonStop Kernel.
17643         * lib/errno.in.h (EDQUOT): Assign a value if missing.
17644         * lib/strerror.c (rpl_strerror): Handle missing EDQUOT.
17645         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Also test whether EDQUOT is
17646         missing.
17647         * doc/posix-headers/errno.texi: Mention the NSK bug.
17648         * doc/posix-functions/strerror.texi: Mention the workaround on NSK.
17649         Reported by Joachim Schmitz <schmitz@hp.com>.
17650
17651 2010-10-02  Bruno Haible  <bruno@clisp.org>
17652
17653         Update doc for POSIX:2008.
17654         * doc/posix-headers/*.texi [except ucontext.texi, sys_timeb.texi]:
17655         Update URL of POSIX specification.
17656
17657 2010-10-02  Bruno Haible  <bruno@clisp.org>
17658
17659         gnulib-tool: In testdirs, use the newest available config.{guess.sub}.
17660         * gnulib-tool (func_create_testdir): Use config.guess and config.sub
17661         from gnulib, not from Automake.
17662
17663 2010-10-02  Bruno Haible  <bruno@clisp.org>
17664
17665         New module 'system-posix'.
17666         * modules/system-posix: New file.
17667         * lib/stdlib.in.h: Include <sys/wait.h> only when the 'system-posix'
17668         module is present.
17669         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
17670         GNULIB_SYSTEM_POSIX.
17671         * modules/stdlib (Depends-on): Remove sys_wait.
17672         (Makefile.am): Substitute GNULIB_SYSTEM_POSIX.
17673         * doc/posix-functions/system.texi: Mention the new module.
17674         * doc/posix-headers/stdlib.texi: Likewise.
17675         * tests/test-stdlib.c: If GNULIB_TEST_SYSTEM_POSIX is not defined,
17676         define test_sys_wait_macros to a no-op.
17677         Reported by Sam Steingold <sds@gnu.org>.
17678
17679 2010-09-30  Bruno Haible  <bruno@clisp.org>
17680
17681         More renaming from 'getdate' to 'get_date'.
17682         * doc/get_date.texi: Renamed from doc/getdate.texi.
17683         * modules/get_date (Files): Update.
17684         * MODULES.html.sh (Date and time <time.h>): Update.
17685         * DEPENDENCIES: Update.
17686         * gnulib-tool: Update comment.
17687         * m4/bison.m4 (gl_BISON): Likewise.
17688         * m4/get_date.m4 (gl_GET_DATE): Likewise.
17689
17690 2010-09-30  Justin Clift  <jclift@redhat.com>  (tiny change)
17691
17692         bootstrap: support ACLOCAL_FLAGS during aclocal
17693         * build-aux/bootstrap (aclocal): Honor ACLOCAL_FLAGS, so the user
17694         can add additional -I dir for third-party .m4 files.
17695
17696 2010-09-30  Eric Blake  <eblake@redhat.com>
17697
17698         bootstrap: use glibtoolize on MacOS
17699         * build-aux/bootstrap (check_versions): Convert libtool into
17700         libtoolize.
17701         (tool search): Move libtool check earlier, and look for
17702         glibtoolize for MacOS.
17703         (gnulib_tool_options): Auto-add --libtool when appropriate.
17704         Reported by Justin Clift.
17705
17706         poll: fix typo that broke test on MacOS
17707         * m4/poll.m4 (gl_FUNC_POLL): Add missing test.
17708         Reported by Justin Clift.
17709
17710         getdate: rename to get_date
17711         Note: getdate.h is not renamed, to minimize client impact.
17712         * modules/getdate: Mark obsolete.  Move old contents...
17713         * modules/get_date: ...to new module name.
17714         * modules/getdate-tests: Move...
17715         * modules/get_date-tests: ...here.
17716         * m4/getdate.m4: Move...
17717         * m4/get_date.m4: ...here, and rename gl_GETDATE to gl_GET_DATE.
17718         * lib/getdate.y: Move...
17719         * lib/get_date.y: ...here.
17720         * tests/test-getdate.c: Move...
17721         * tests/test-get_date.c: ...here.
17722         * doc/posix-functions/getdate.texi (getdate): Update name.
17723         * NEWS: Mention the change.
17724
17725 2010-09-29  Bruno Haible  <bruno@clisp.org>
17726
17727         Separate the module 'waitpid' from the module 'sys_wait'.
17728         * lib/sys_wait.in.h (waitpid): Declare only if the 'waitpid' module is
17729         present.
17730         * m4/sys_wait_h.m4 (gl_SYS_WAIT_MODULE_INDICATOR): Invoke
17731         gl_MODULE_INDICATOR_FOR_TESTS.
17732         (gl_SYS_WAIT_H_DEFAULTS): Initialize GNULIB_WAITPID.
17733         * modules/sys_wait (Depends-on): Remove waitpid.
17734         (Makefile.am): Substitute GNULIB_WAITPID.
17735         * modules/waitpid (configure.ac): Invoke gl_SYS_WAIT_MODULE_INDICATOR.
17736         * tests/test-sys_wait-c++.cc (GNULIB_NAMESPACE::waitpid): Check the
17737         signature only if the 'waitpid' module is present.
17738         * doc/posix-functions/waitpid.texi: Mention the 'waitpid' module.
17739         * NEWS: Mention the change.
17740         * modules/grantpt (Depends-on): Add waitpid.
17741         * modules/wait-process (Depends-on): Likewise.
17742
17743 2010-09-29  Bruno Haible  <bruno@clisp.org>
17744
17745         More tests for module 'sys_wait'.
17746         * modules/sys_wait-c++-tests: New file.
17747         * tests/test-sys_wait-c++.cc: New file.
17748         * modules/sys_wait-tests (Depends-on): Add sys_wait-c++-tests.
17749         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>.
17750
17751 2010-09-29  Bruno Haible  <bruno@clisp.org>
17752
17753         New module 'waitpid'.
17754         * lib/waitpid.c: New file, extracted from lib/sys_wait.in.h.
17755         * lib/sys_wait.in.h: Include <sys/types.h>, c++defs.h, warn-on-use.h.
17756         Don't include <process.h>.
17757         (waitpid): Declare only, using modern idiom.
17758         * m4/waitpid.m4: New file.
17759         * m4/sys_wait_h.m4 (gl_SYS_WAIT_H): Check whether waitpid is declared.
17760         * modules/waitpid: New file.
17761         * modules/sys_wait (Depends-on): Add c++defs, warn-on-use, waitpid.
17762         (Makefile.am): Update.
17763         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>.
17764
17765 2010-09-28  Bruno Haible  <bruno@clisp.org>
17766
17767         poll: Assume ANSI C.
17768         * lib/poll.c (poll): Use an ANSI C declaration.
17769
17770 2010-09-28  Bruno Haible  <bruno@clisp.org>
17771
17772         poll-h: Create poll.h on all platforms.
17773         * lib/poll.in.h: Use double-inclusion guard. Don't define POLL*,
17774         struct pollfd, nfds_t, INFTIM when the system has <poll.h>.
17775         * m4/poll_h.m4 (gl_POLL_H): Set HAVE_POLL_H. Invoke
17776         gl_CHECK_NEXT_HEADERS. Don't set POLL_H.
17777         (gl_REPLACE_POLL_H): Don't set POLL_H.
17778         (gl_POLL_H_DEFAULTS): Don't initialize POLL_H.
17779         * modules/poll-h (Depends-on): Add include_next.
17780         (Makefile.am): Create poll.h unconditionally. Substitute also
17781         HAVE_POLL_H, INCLUDE_NEXT, PRAGMA_SYSTEM_HEADER, NEXT_POLL_H.
17782
17783 2010-09-28  Bruno Haible  <bruno@clisp.org>
17784
17785         Tests for module 'poll-h'.
17786         * modules/poll-h-c++-tests: New file.
17787         * tests/test-poll-h-c++.cc: New file.
17788
17789         Tests for module 'poll-h'.
17790         * modules/poll-h-tests: New file.
17791         * tests/test-poll-h.c: New file.
17792
17793 2010-09-28  Bruno Haible  <bruno@clisp.org>
17794
17795         poll-h: Ensure POLL{RD,WR}{NORM,BAND} are defined on glibc platforms.
17796         * modules/poll-h (Depends-on): Add 'extensions'.
17797
17798 2010-09-28  Bruno Haible  <bruno@clisp.org>
17799
17800         New module 'poll-h'.
17801         * lib/poll.in.h: Include c++defs.h and warn-on-use.h.
17802         (poll): Use modern idiom.
17803         * modules/poll-h: New file.
17804         * modules/poll (Files): Remove lib/poll.in.h.
17805         (Depends-on): Add poll-h.
17806         (configure.ac): Invoke gl_POLL_MODULE_INDICATOR.
17807         (Makefile.am): Move code for generation of poll.h to modules/poll-h.
17808         * m4/poll_h.m4: New file.
17809         * m4/poll.m4 (gl_FUNC_POLL): Require gl_POLL_H. Don't check for poll.h
17810         here. Don't set POLL_H here. Instead, set HAVE_POLL and REPLACE_POLL
17811         and invoke gl_REPLACE_POLL_H.
17812         * lib/poll.c: Use common idiom.
17813         * tests/test-poll.c: Likewise.
17814         * doc/posix-headers/poll.texi: Mention the poll-h module.
17815         Suggested by Eric Blake.
17816
17817 2010-09-26  Bruno Haible  <bruno@clisp.org>
17818
17819         sys_wait: Implement WSTOPSIG.
17820         * lib/sys_wait.in.h (WSTOPSIG): New macro.
17821         Reported by Simon Josefsson.
17822
17823 2010-09-26  Simon Josefsson  <simon@josefsson.org>
17824
17825         stdlib, sys_wait: Avoid compilation error on mingw.
17826         * lib/sys_wait.in.h: Include <signal.h>, for SIGTERM.
17827
17828 2010-09-26  Bruno Haible  <bruno@clisp.org>
17829
17830         stdlib tests: Avoid code duplication.
17831         * modules/stdlib-tests (Files): Add tests/test-sys_wait.h.
17832         * modules/sys_wait-tests (Files): Likewise.
17833         * tests/test-sys_wait.h: New file, extracted from tests/test-stdlib.c.
17834         * tests/test-stdlib.c: Include test-sys_wait.h.
17835         (main): Invoke test_sys_wait_macros.
17836         * tests/test-sys_wait.c: Include test-sys_wait.h.
17837         (main): Invoke test_sys_wait_macros.
17838
17839 2010-09-25  Simon Josefsson  <simon@josefsson.org>
17840
17841         * modules/getaddrinfo (Depends-on): Depend on the sockets module.
17842         * lib/getaddrinfo.c (use_win32_p): Call gl_sockets_startup to make
17843         sure Windows sockets are working before calling getaddrinfo.
17844         * tests/test-getaddrinfo.c (main): Don't call WSAStartup here.
17845         * doc/gnulib.texi (Windows sockets): Fix typo.
17846
17847 2010-09-25  Bruno Haible  <bruno@clisp.org>
17848
17849         Tests for module 'regex-quote'.
17850         * modules/regex-quote-tests: New file.
17851         * tests/test-regex-quote.c: New file.
17852
17853         New module 'regex-quote'.
17854         * lib/regex-quote.h: New file.
17855         * lib/regex-quote.c: New file.
17856         * modules/regex-quote: New file.
17857         Suggested by Reuben Thomas <rrt@sc3d.org>.
17858
17859 2010-09-24  Bruno Haible  <bruno@clisp.org>
17860
17861         unistr/u8-strchr: Fix a test failure on i586 glibc systems.
17862         * tests/unistr/test-strchr.h (test_strchr): Disable an invalid check.
17863
17864 2010-09-23  Bruno Haible  <bruno@clisp.org>
17865
17866         setenv: Relax license.
17867         * modules/setenv (License): Change to LGPLv2+, with consent by Eric
17868         Blake.
17869         Requested by Eric Blake.
17870
17871 2010-09-22  Bruno Haible  <bruno@clisp.org>
17872
17873         termios: Relax license.
17874         * modules/termios (License): Change to LGPLv2+.
17875         Requested by Eric Blake.
17876
17877 2010-09-22  Bruno Haible  <bruno@clisp.org>
17878
17879         threadlib: Allow the package to change the default to 'no'.
17880         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): When
17881         gl_THREADLIB_DEFAULT_NO is defined, change the default to 'no'.
17882         Reported by Paul Eggert.
17883
17884 2010-09-22  Pádraig Brady  <P@draigbrady.com>
17885             Bruno Haible  <bruno@clisp.org>
17886
17887         Fix endless loop in mbmemcasecoll.
17888         * lib/mbmemcasecoll.c (apply_towlower): When mbrtowc returns 0, copy 1
17889         byte.
17890         * tests/test-mbmemcasecmp.h (test_ascii): Test embedded NULs.
17891
17892 2010-09-22  Bruno Haible  <bruno@clisp.org>
17893
17894         Tests for module 'memcoll'.
17895         * modules/memcoll-tests: New file.
17896         * tests/test-memcoll.c: New file, based on tests/test-memcmp.c.
17897
17898         memcoll, xmemcoll: Clarify size vs. length.
17899         * modules/memcoll.c (memcoll0): Clarify specification.
17900         * modules/xmemcoll.c (xmemcoll0): Likewise. Reduce by 1 the lengths
17901         passed to collate_error.
17902
17903 2010-09-22  Bruno Haible  <bruno@clisp.org>
17904
17905         Tests for module 'memcasecmp'.
17906         * modules/memcasecmp-tests: New file.
17907         * tests/test-memcasecmp.c: New file, based on tests/test-memcmp.c.
17908
17909 2010-09-22  Paul Eggert  <eggert@cs.ucla.edu>
17910
17911         * lib/pthread.in.h: Add split double-inclusion guard, and include
17912         system <pthread.h> if there is one.  Use @@-style as in other
17913         .in.h files.  Define PTHREAD_COND_INITIALIZER etc. only if system
17914         pthread.h doesn't.
17915         (pthread_mutexattr_destroy, pthread_mutexattr_init):
17916         (pthread_mutexattr_settype, pthread_mutex_trylock):
17917         New static inline functions, if there's no system <pthread.h>.
17918         (pthread_spinlock_t, pthread_spin_init, pthread_spin_destroy):
17919         (pthread_spin_lock, pthread_spin_trylock, pthread_spin_unlock):
17920         Approximate with mutexes if the system lacks spinlocks, as in
17921         MacOS.
17922         * m4/pthread.m4 (gl_PTHREAD_CHECK): Require gl_PTHREAD_DEFAULTS.
17923         Add gl_CHECK_NEXT_HEADERS for pthread.h, and support the usual
17924         @@-style.  Check for spinlocks separately.
17925         (gl_PTHREAD_DEFAULTS): New macro.
17926         * modules/pthread: Redo to use a more typical style for in.h files.
17927
17928 2010-09-21  Eric Blake  <eblake@redhat.com>
17929
17930         net_if: enhance tests
17931         * tests/test-net_if.c (main): Move signature checks earlier.
17932         Print failures to stderr.
17933         * doc/posix-functions/if_freenameindex.texi (if_freenameindex):
17934         Document the bug that we do not yet fix.
17935
17936 2010-09-21  Reuben Thomas  <rrt@sc3d.org>
17937
17938         * doc/gnulib.texi (Out of memory handling): Rewrite section to be
17939         about gnulib, not GSS.
17940
17941 2010-09-21  Reuben Thomas  <rrt@sc3d.org>
17942
17943         * build-aux/pmccabe2html: Look for sources in src/ instead of lib/.
17944         * build-aux/pmccabe2html: Set cut_dir properly, and add mode line
17945         for Emacs.
17946         * build-aux/pmccabe2html: Make Makefile.am example code more
17947         cut-and-paste friendly.
17948
17949 2010-09-21  Simon Josefsson  <simon@josefsson.org>
17950
17951         * tests/test-net_if.c: New file.
17952         * modules/net_if-tests: New file.
17953
17954 2010-09-20  Paul Eggert  <eggert@cs.ucla.edu>
17955
17956         pthread: add pthread_spin_destroy
17957         * lib/pthread.in.h (pthread_spin_destroy): New function.
17958
17959 2010-09-19  Bruno Haible  <bruno@clisp.org>
17960
17961         gnulib-tool: Fix --help output.
17962         * gnulib-tool (func_usage): Fix help message.
17963         Reported by Reuben Thomas <rrt@sc3d.org>.
17964
17965 2010-09-18  Jim Meyering  <meyering@redhat.com>
17966
17967         maint.mk: avoid unexpanded \n in two diagnostics
17968         * top/maint.mk (sc_prohibit_always_true_header_tests):
17969         Don't use a literal \n in a halt=... assignment.  It would not be
17970         expanded, and the two \n bytes would appear in the diagnostic output
17971         rather than the desired newline.  Use halt=$$(printf ... instead.
17972         (sc_vulnerable_makefile_CVE-2009-4029): Likewise.
17973
17974 2010-09-18  Bruno Haible  <bruno@clisp.org>
17975
17976         netinet_in: Doc tweak.
17977         * doc/posix-headers/netinet_in.texi: Mention an affected platform.
17978         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
17979
17980 2010-09-18  Jim Meyering  <meyering@redhat.com>
17981
17982         init.sh: correct an outdated comment
17983         * tests/init.sh (create_exe_shims_):  s/function/alias/
17984
17985         init.sh: don't let an ephemeral "*.exe" make us skip all dir entries
17986         * tests/init.sh (find_exe_basenames_): Don't give up on a directory if
17987         a file named "*.exe" is removed between the glob expansion and the
17988         processing of that oddly named file.
17989
17990 2010-09-17  Eric Blake  <eblake@redhat.com>
17991
17992         mirbsd: add some more support
17993         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): MirBSD is
17994         in BSD family.
17995         * m4/gc-random.m4 (gl_GC_RANDOM): MirBSD supports same random
17996         devices as OpenBSD.
17997         * m4/host-os.m4 (mirbsd): Add MirBSD.
17998
17999         tests: fix unportable assumption on sys/wait.h
18000         * tests/test-sys_wait.c (main): Relax test.
18001         * tests/test-stdlib.c (main): Likewise.
18002
18003         init.sh: accomodate directory with no .exes
18004         * tests/init.sh: Accomodate directory containing only scripts.
18005
18006         tests: avoid compiler warning
18007         * tests/test-stdlib.c (main): Use the variable.
18008
18009         fdutimens, fdutimensat: update signature, again
18010         * lib/utimens.h (gl_futimens): Delete, and move signature...
18011         (fdutimens): ...here.
18012         (fdutimensat): Rearrange signature.
18013         (lutimensat): Rename variable for clarity.
18014         * lib/fdutimensat.c (fdutimensat): Update signature.
18015         * lib/utimens.c (fdutimens): Likewise.
18016         (gl_futimens): Delete.
18017         (utimens, lutimens): Update callers.
18018         * lib/futimens.c (futimens): Likewise.
18019         * tests/test-fdutimensat.c: Likewise.
18020         * tests/test-utimens.c: Likewise.
18021         * tests/test-futimens.h: Update comment.
18022         * NEWS: Mention this.
18023         Suggested by Paul Eggert.
18024
18025 2010-09-17  Bruno Haible  <bruno@clisp.org>
18026
18027         Take over the maintenance of some older macros from Autoconf.
18028         * m4/error.m4 (AC_FUNC_ERROR_AT_LINE): New macro, from GNU Autoconf.
18029         * m4/lstat.m4 (AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): New macro, from
18030         GNU Autoconf.
18031         * m4/memcmp.m4 (AC_FUNC_MEMCMP): New macro, from GNU Autoconf.
18032         * m4/mktime.m4 (AC_FUNC_MKTIME): Change comment.
18033
18034 2010-09-17  Eric Blake  <eblake@redhat.com>
18035
18036         fdutimensat: drop atflag validation
18037         * lib/fdutimensat.c (fdutimensat): Allow AT_SYMLINK_NOFOLLOW even
18038         with valid fd, to close a race scenario where futimens is
18039         unsupported and FILE was replaced by a symlink.
18040         * tests/test-fdutimensat.c (do_fdutimens, main): Adjust test
18041         accordingly.
18042         Suggested by Paul Eggert.
18043
18044 2010-09-16  Bruno Haible  <bruno@clisp.org>
18045
18046         unlockpt: Fix declaration within GNULIB_POSIXCHECK.
18047         * lib/stdlib.in.h (unlockpt): Fix warning declaration.
18048
18049 2010-09-16  Bruno Haible  <bruno@clisp.org>
18050
18051         login_tty: Fix detection of function on FreeBSD, OpenBSD, NetBSD.
18052         * m4/pty.m4 (gl_FUNC_LOGIN_TTY): Augment LIBS while checking whether
18053         login_tty exists.
18054         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
18055
18056 2010-09-16  Bruno Haible  <bruno@clisp.org>
18057
18058         login_tty: Make the replacement code work on BSD systems.
18059         * lib/login_tty.c: Include <sys/ioctl.h>.
18060         (login_tty): Use ioctl TIOCSCTTY when available.
18061         * modules/login_tty (Depends-on): Add sys_ioctl.
18062         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
18063
18064 2010-09-16  Bruno Haible  <bruno@clisp.org>
18065
18066         login_tty: Stricter unit test.
18067         * modules/login_tty-tests (Depends-on): Add tcgetsid.
18068         * tests/test-login_tty.c (main): Also check the results of tcgetpgrp()
18069         and tcgetsid() after login_tty.
18070         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
18071
18072 2010-09-16  Bruno Haible  <bruno@clisp.org>
18073
18074         New module 'tcgetsid'.
18075         * lib/tcgetsid.c: New file.
18076         * m4/tcgetsid.m4: New file.
18077         * modules/tcgetsid: New file.
18078         * modules/termios (Depends-on): Add c++defs, warn-on-use.
18079         (Makefile.am): Ensure c++defs.h, warn-on-use.h get included. Substitute
18080         GNULIB_TCGETSID, HAVE_TCGETSID.
18081         * lib/termios.in.h: Include <sys/types.h>.
18082         (tcgetsid): New declaration.
18083         * m4/termios_h.m4 (gl_TERMIOS_H): Check whether tcgetsid is declared.
18084         (gl_TERMIOS_H_DEFAULTS): Initialize GNULIB_TCGETSID, HAVE_TCGETSID.
18085         * doc/posix-functions/tcgetsid.texi: Mention the new module.
18086         * tests/test-termios-c++.cc: Check GNULIB_NAMESPACE::tcgetsid.
18087
18088 2010-09-16  Bruno Haible  <bruno@clisp.org>
18089
18090         Tests for module 'termios'.
18091         * modules/termios-c++-tests: New file.
18092         * modules/termios-tests: New file.
18093         * tests/test-termios-c++.cc: New file.
18094         * tests/test-termios.c: New file.
18095
18096         New module 'termios'.
18097         * modules/termios: New file.
18098         * lib/termios.in.h: New file.
18099         * m4/termios_h.m4: New file.
18100         * doc/posix-headers/termios.texi: Mention the new module.
18101
18102 2010-09-16  Eric Blake  <eblake@redhat.com>
18103
18104         fdutimensat: add an atflag parameter
18105         * lib/fdutimensat.c (fdutimensat): Add new parameter.
18106         * lib/utimens.h (fdutimensat): Update prototype.
18107         * tests/test-fdutimensat.c: Adjust test to match.
18108         * NEWS: Document the change.
18109         Suggested by Paul Eggert.
18110
18111 2010-09-16  Bruno Haible  <bruno@clisp.org>
18112
18113         Fix typos in comments.
18114         * lib/striconveh.h: Fix typo in comment.
18115         * lib/login_tty.c (login_tty): Likewise.
18116
18117 2010-09-15  Bruno Haible  <bruno@clisp.org>
18118
18119         stdlib: clarify MirBSD WEXITSTATUS bug
18120         * lib/stdlib.in.h: Clarify the MirBSD bug regarding WEXITSTATUS.
18121         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
18122
18123 2010-09-15  Eric Blake  <eblake@redhat.com>
18124
18125         stdlib: work around MirBSD WEXITSTATUS bug
18126         * lib/stdlib.in.h (includes): Guarantee WEXITSTATUS.
18127         * modules/stdlib (Depends-on): Add sys_wait.
18128         * tests/test-sys_wait.c (main): Enhance test.
18129         * tests/test-stdlib.c (main): Likewise.
18130         * doc/posix-headers/stdlib.texi (stdlib.h): Document the bug.
18131
18132         docs: mention MacOS issue with WEXITSTATUS(constant)
18133         * doc/posix-headers/sys_wait.texi (sys/wait.h): Document the
18134         issue.
18135         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
18136
18137         strnlen: add tests
18138         * modules/strnlen-tests: New file.
18139         * tests/test-strnlen.c: Likewise.
18140
18141 2010-09-14  Bruno Haible  <bruno@clisp.org>
18142
18143         unistr/base: Avoid link errors when module 'libunistring' is also used.
18144         * lib/unistr.in.h (u8_mbtouc_unsafe, u16_mbtouc_unsafe,
18145         u32_mbtouc_unsafe, u8_mbtouc, u16_mbtouc, u32_mbtouc, u8_mbtoucr,
18146         u16_mbtoucr, u32_mbtoucr, u8_uctomb_aux, u16_uctomb_aux, u32_uctomb):
18147         Declare also when HAVE_LIBUNISTRING is set.
18148         Reported by Pádraig Brady <P@draigbrady.com>.
18149
18150 2010-09-14  Eric Blake  <eblake@redhat.com>
18151
18152         test-rawmemchr: make more robust
18153         * modules/rawmemchr-tests (Files): Add zerosize-ptr.h, mmap-anon.m4.
18154         (Depends-on, configure.ac): Add needed prerequisites to use it.
18155         * modules/memchr-tests (Files, Depends-on, configure.ac):
18156         Likewise, to avoid implicit reliance on memchr module prereqs.
18157         * tests/test-memchr.c (main): Ensure proper masking.
18158         * tests/test-rawmemchr.c (main): Likewise.  Detect oversized
18159         reads.
18160
18161         memchr: detect glibc Alpha bug
18162         Avoids http://sourceware.org/bugzilla/show_bug.cgi?id=12019.
18163         * m4/memchr.m4 (gl_FUNC_MEMCHR): Detect glibc 2.11.2 failure on
18164         Alpha.
18165         * doc/posix-functions/memchr.texi (memchr): Tweak wording.
18166         * tests/test-memchr.c (main): Enhance test.
18167         Reported by Nelson H. F. Beebe.
18168
18169 2010-09-13  Paul Eggert  <eggert@cs.ucla.edu>
18170
18171         fts, getcwd, glob: audit for dirfd returning -1
18172         * lib/fts.c (opendir): Remove #define; no longer used.
18173         (opendirat): New arg PDIR_FD.  All callers changed.
18174         (fts_build, _opendir2): Use new opendirat to avoid the need for
18175         dirfd, or for checking whether dirfd returns a negative value.
18176         Don't use opendir; always use openat followed by fdopendir.
18177         * lib/getcwd.c (__getcwd): Don't reset fd; fdopendir no longer clobbers
18178         it.
18179         * lib/glob.c (link_exists_p): Add comment explaining why dirfd never
18180         returns -1 here.
18181         * modules/fts (Depends-on): Remove dirfd.
18182         * modules/getcwd (Depends-on): Likewise.
18183
18184 2010-09-13  Eric Blake  <eblake@redhat.com>
18185
18186         float: fix broken MirBSD header
18187         * m4/float_h.m4 (gl_FLOAT_H): MirBSD copied OpenBSD's bug.
18188         * doc/posix-headers/float.texi (float.h): Document it.
18189
18190 2010-09-13  Paul Eggert  <eggert@cs.ucla.edu>
18191
18192         fts: use O_NOFOLLOW to avoid race condition when opening a directory
18193         * lib/fts.c (opendirat): New arg extra_flags.
18194         (__opendir2): Use it to avoid following symlinks when opening
18195         a directory, if symlinks are not supposed to be followed.  See
18196         <http://lists.gnu.org/archive/html/bug-gnulib/2010-09/msg00213.html>.
18197
18198         fdopendir: preserve argument fd before returning
18199         * lib/fdopendir.c: Adjust comments to say POSIX, not Solaris.
18200         (fdopendir_with_dup, fd_clone_opendir): New static functions.
18201         (fdopendir): Use them, arranging for FD to be open to the same
18202         directory that it was when it started.  (It might be temporarily
18203         closed while fdopendir is running, so this not thread- or
18204         signal-safe.)  Be careful to do the right thing even when file
18205         descriptors are scarce and dup fails with errno == EMFILE.  See
18206         <http://lists.gnu.org/archive/html/bug-gnulib/2010-09/msg00208.html>.
18207
18208 2010-09-10  Paolo Bonzini  <bonzini@gnu.org>
18209
18210         regex: Pass the system regex if its only problem is 32-bit regoff_t.
18211         * NEWS: Document change.
18212         * m4/regex.m4: Disable test for regoff_t size.
18213
18214 2010-09-13  Jim Meyering  <meyering@redhat.com>
18215
18216         fts: don't operate on an invalid file descriptor after failed dup
18217         * lib/fts.c (fts_build): Don't call set_cloexec_flag on a
18218         negative file descriptor.
18219
18220 2010-09-12  Paul Eggert  <eggert@cs.ucla.edu>
18221
18222         savedir: add streamsavedir, deprecate fdsavedir
18223         * NEWS: Mention deprecation of fdsavedir.
18224         * lib/savedir.c (streamsavedir): New extern function, whose name
18225         ends in "savedir" to be consistent with the others.  This differs
18226         from savedirstream in that it doesn't close its argument.  The
18227         next version of GNU tar will use this instead of fdsavedir, to
18228         avoid some race conditions and conserve file descriptors.
18229         (savedirstream): Reimplement as a wrapper around streamsavedir.
18230         (fdsavedir): Add a comment deprecating this function.  As far as
18231         I know, only GNU tar used it, and GNU tar doesn't need it any more.
18232         * lib/savedir.h (streamsavedir): New decl.
18233         (fdsavedir): Add a comment deprecating this.
18234
18235 2010-09-10  Bruno Haible  <bruno@clisp.org>
18236
18237         langinfo: Fix last commit.
18238         * m4/langinfo_h.m4 (gl_LANGINFO_H): Initialize
18239         HAVE_LANGINFO_T_FMT_AMPM, HAVE_LANGINFO_YESEXPR.
18240         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
18241
18242 2010-09-10  Bruno Haible  <bruno@clisp.org>
18243
18244         relocatable-prog-wrapper: Fix compilation failure due to O_EXEC.
18245         * lib/progreloc.c (O_EXEC): Define fallback.
18246
18247 2010-09-10  Paul Eggert  <eggert@cs.ucla.edu>
18248
18249         fcntl-h: define O_CLOEXEC and O_EXEC if not defined; use new defines
18250         * NEWS: Document recent changes to fcntl-h.
18251         * doc/posix-headers/fcntl.texi (fcntl.h): Document that
18252         O_CLOEXEC is now defined to 0 if it is not defined, like other flags.
18253         Also, O_EXEC is now defined to be O_RDONLY if O_EXEC is not defined.
18254         Similarly for O_SEARCH; this last was already true, but not documented.
18255         * lib/fcntl.in.h (O_CLOEXEC): Define to 0 if not defined.
18256         * lib/dup-safer-flag.c (O_CLOEXEC): Remove now-useless #define.
18257         * lib/dup3.c, lib/pipe2.c, tests/test-dup-safer.c, tests/test-fcntl.c:
18258         Likewise.
18259         * lib/popen-safer.c (open_noinherit): Check whether O_CLOEXEC
18260         is zero, not whether it is defined.
18261         * tests/test-dup3.c, tests/test-pipe2.c (main): Likewise.
18262         * lib/progreloc.c (find_executable): Use O_EXEC rather than O_RDONLY.
18263         * lib/open.c (open): Check for O_SEARCH as well as for O_RDONLY.
18264
18265 2010-09-10  Bruno Haible  <bruno@clisp.org>
18266
18267         langinfo, nl_langinfo: Fix for IRIX 5.3.
18268         * m4/langinfo_h.m4 (gl_LANGINFO_H): Test whether langinfo.h defines
18269         T_FMT_AMPM, YESEXPR. Set HAVE_LANGINFO_T_FMT_AMPM,
18270         HAVE_LANGINFO_YESEXPR.
18271         * modules/langinfo (Makefile.am): Substitute HAVE_LANGINFO_T_FMT_AMPM,
18272         HAVE_LANGINFO_YESEXPR.
18273         * lib/langinfo.in.h (T_FMT_AMPM, GNULIB_defined_T_FMT_AMPM): Define if
18274         HAVE_LANGINFO_T_FMT_AMPM is 0.
18275         (YESEXPR, NOEXPR, GNULIB_defined_YESEXPR): Define if
18276         HAVE_LANGINFO_YESEXPR is 0.
18277         * lib/nl_langinfo.c (rpl_nl_langinfo): Handle also T_FMT_AMPM, YESEXPR,
18278         NOEXPR.
18279         * doc/posix-headers/langinfo.texi: Mention the IRIX 5.3 problem.
18280         * doc/posix-functions/nl_langinfo.texi: Likewise.
18281         Reported by Eric Blake.
18282
18283 2010-09-10  Bruno Haible  <bruno@clisp.org>
18284
18285         pty, readutmp: Fix for FreeBSD 8.0 and OpenBSD 4.6.
18286         * doc/glibc-functions/login_tty.texi: Mention the include file problem
18287         on FreeBSD 8.0 and OpenBSD 4.6.
18288         * lib/pty.in.h: Include <sys/types.h> before <libutil.h>.
18289         * m4/pty_h.m4 (gl_PTY_H): Likewise.
18290         * m4/pty.m4 (gl_FUNC_FORKPTY, gl_FUNC_OPENPTY): Likewise.
18291         * m4/readutmp.m4 (gl_READUTMP): Include <sys/types.h> before <utmp.h>.
18292         Invoke AC_INCLUDES_DEFAULT instead of using the undocumented variable
18293         ac_includes_default.
18294         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
18295
18296 2010-09-09  Eric Blake  <eblake@redhat.com>
18297
18298         strsignal: work around NetBSD bug
18299         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Also check in <unistd.h>.
18300         * lib/string.in.h (includes): Likewise.
18301         * doc/posix-functions/strsignal.texi (strsignal): Document the
18302         bug.
18303         Reported by Nelson H. F. Beebe.
18304
18305         gnulib-tool: work with NetBSD /bin/sh
18306         * gnulib-tool (func_cache_var, func_cache_lookup_module)
18307         (func_get_description, func_get_comment, func_get_status)
18308         (func_get_notice, func_get_applicability, func_get_filelist)
18309         (func_get_dependencies, func_get_autoconf_early_snippet)
18310         (func_get_autoconf_snippet, func_get_automake_snippet)
18311         (func_get_include_directive, func_get_link_directive)
18312         (func_get_license, func_get_maintainer, func_import): Avoid
18313         shell syntax errors from parsing syntax extensions.
18314
18315 2010-09-09  Bruno Haible  <bruno@clisp.org>
18316
18317         gnulib-tool: Avoid stderr output on IRIX related to 'alias', 'unalias'.
18318         * gnulib-tool: Don't fiddle with file descriptors 0, 1, 2. Instead, use
18319         a reliable way to determine whether the 'alias' command works.
18320
18321 2010-09-08  Jim Meyering  <meyering@redhat.com>
18322
18323         init.sh: penalize a set-x-impaired shell; don't disqualify it
18324         * tests/init.sh: Too many shells corrupt application stderr when
18325         you set -x, so we can't afford to disqualify them, since at least
18326         on Irix-6.5, that would disqualify all bourne shells.
18327         Instead, use a two-pass approach.
18328         On the first pass, try to find a shell that meets the stricter
18329         condition that set -x does not corrupt stderr.
18330         If no shell meets the stricter condition, retest each candidate
18331         shell, but without that extra condition.  Finally, when
18332         VERBOSE=yes is requested and set -x might cause trouble, simply
18333         issue a warning and refrain from enabling debug output.
18334
18335 2010-09-08  Eric Blake  <eblake@redhat.com>
18336
18337         unsetenv: fix OpenBSD bug
18338         * m4/setenv.m4 (gl_FUNC_UNSETENV): Check for OpenBSD bug.
18339         * doc/posix-functions/unsetenv.texi (unsetenv): Update
18340         documentation.
18341         Reported by Jim Meyering.
18342
18343         strtod: work around IRIX 6.5 bug
18344         * lib/strtod.c (strtod): Reparse number on shorter string if
18345         exponent parse was invalid.
18346         * tests/test-strtod.c (main): Add check for "0x1p 2".
18347         Reported by Tom G. Christensen.
18348
18349         getopt: optimize previous patch
18350         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Correctly check for
18351         empty variable.  Speed up awk script.
18352         Reported by Paolo Bonzini.
18353
18354 2010-09-08  Jim Meyering  <meyering@redhat.com>
18355
18356         test.sh: disqualify shells for which set -x corrupts stderr
18357         * tests/init.sh: Add a test to disqualify /bin/sh from SunOS 5.11
18358         and OpenBSD 4.7.  They make it so with "set -x", environment settings
18359         appear in stderr output.  For example, this command:
18360             /bin/sh -c 'set -x; P=1 true 2> err' 2>/dev/null; cat err
18361         prints "P=1" on those two systems:
18362
18363 2010-09-08  Bruno Haible  <bruno@clisp.org>
18364
18365         gnulib-tool: Avoid stderr output on IRIX related to 'alias', 'unalias'.
18366         * gnulib-tool: Use stderr redirection around the 'alias' and 'unalias'
18367         commands, because some shells ignore redirections when there is an
18368         error in the command lookup.
18369         Reported by Eric Blake.
18370
18371 2010-09-07  Reuben Thomas  <rrt@sc3d.org>
18372
18373         * lib/regex.h: Fix a mention of `regex_compile' (should be
18374         `re_compile_pattern').
18375         Correct and clarify documentation for RE_CONTEXT_INVALID_DUP.
18376         (re_set_registers): Correct name of parameter in comment.
18377
18378         * doc/regex.texi: Add documentation for missing syntax flags.
18379         Remove commented-out documentation of defunct syntax option
18380         RE_NO_EMPTY_ALTS.
18381         Correct name of RE_CHAR_CLASSES in one incorrect occurrence.
18382         Add documentation of re_set_registers.
18383         Document trick to re-use a pattern buffer by setting fastmap manually.
18384         Update documentation of struct re_pattern_buffer per public members.
18385         Uncomment documentation of equivalence class operators and
18386         collating symbol operators, since they are now implemented,
18387         Explain leftmost-longest matching in relation to alternatives.
18388         Tidy documentation of substring matching.
18389         Remove POSIX documentation, which is done better in
18390         glibc, and refer the reader there. Keep BSD API documentation, as
18391         that is not readily available elsewhere.
18392
18393 2010-09-07  Eric Blake  <eblake@redhat.com>
18394
18395         getopt: handle POSIXLY_CORRECT set but not exported
18396         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Restore pre-existing
18397         export state of POSIXLY_CORRECT, due to bash set -o posix.
18398         Reported by Dustin J. Mitchell.
18399
18400 2010-09-05  Bruno Haible  <bruno@clisp.org>
18401
18402         gnulib-tool: Highlight the changed options.
18403         * gnulib-tool (func_usage): Display the --import, --add-import,
18404         --remove-import explanations in bold font.
18405
18406 2010-09-06  Karl Berry  <karl@gnu.org>
18407
18408         * doc/gnulib-tool.texi (Modified imports): doc tweaks.
18409
18410 2010-09-05  Bruno Haible  <bruno@clisp.org>
18411
18412         uniwidth/width: Update comment.
18413         * lib/uniwidth/width.c (uc_width): Update comment for Unicode >= 3.1.
18414         Reported by Emanuele Giaquinta <emanuele.giaquinta@gmail.com>.
18415
18416 2010-09-05  Bruno Haible  <bruno@clisp.org>
18417
18418         isinf, isnan: Relax license.
18419         * modules/isinf (License): Change from GPL to LGPL, with consent from
18420         Ben Pfaff.
18421         * modules/isnan (License): Likewise.
18422         Requested by Ludovic Courtès.
18423
18424 2010-09-04  Bruno Haible  <bruno@clisp.org>
18425
18426         gnulib-tool: Help migration from --import to --add-import or --update.
18427         * gnulib-tool: Emit a verbose error message when --import is used
18428         without any module name.
18429
18430 2010-09-04  Bruno Haible  <bruno@clisp.org>
18431
18432         Update doc about gnulib-tool.
18433         * doc/gnulib-tool.texi (VCS Issues): Explain 'gnulib-tool --import' vs.
18434         'gnulib-tool --update' in more detail.
18435         Reported by Eric Blake.
18436
18437 2010-09-04  Bruno Haible  <bruno@clisp.org>
18438
18439         gnulib-tool: Change --import. New options --add/remove-import.
18440         * gnulib-tool: New options --add-import, --remove-import.
18441         (func_usage): Document them.
18442         (have_associative): Define always.
18443         (func_import): In import mode, don't merge the specified settings with
18444         the cached settings. Implement remove-import mode.
18445         * doc/gnulib-tool.texi (Modified imports): Mention the new options.
18446         Explain when to use them versus --import.
18447         (Simple update): Use --add-import instead of --import.
18448         * NEWS: Mention the change.
18449
18450 2010-09-04  Bruno Haible  <bruno@clisp.org>
18451
18452         * doc/gnulib-tool.texi (Initial import): Update paragraph about
18453         separate gnulib.mk.
18454
18455 2010-09-04  Bruno Haible  <bruno@clisp.org>
18456
18457         gnulib-tool: Don't talk about CVS any more.
18458         * gnulib-tool (func_usage, func_import): Write "version control"
18459         instead of CVS.
18460
18461 2010-09-04  Jim Meyering  <meyering@redhat.com>
18462
18463         maint.mk: avoid obscure sc_copyright_check failure in coreutils
18464         * top/maint.mk (v_etc_file): Prepend $(gnulib_dir)/, to avoid
18465         false positives (whose names may be ill-chosen) when searching
18466         non-VC'd files.  Otherwise, a file named "a b/lib/version-etc.c"
18467         would cause a false-positive.
18468
18469         avoid coreutils "make distcheck" failure
18470         Coreutils tests with an absolute build directory name that contains
18471         a space.  Not quoting this directory name caused a failure.
18472         * tests/test-vc-list-files-git.sh: Quote PATH dir name.
18473         * tests/test-vc-list-files-cvs.sh: Likewise.
18474
18475 2010-09-04  Bruno Haible  <bruno@clisp.org>
18476
18477         gnulib-tool: Avoid error when run in a package without Makefile.am.
18478         * gnulib-tool: When collecting the m4dirs in a package that does not
18479         have a Makefile.am, eliminate those directories that contain no
18480         gnulib-cache.m4. Fix expression that counts these directories.
18481
18482 2010-09-04  Bruno Haible  <bruno@clisp.org>
18483
18484         update-copyright test: Improve output when perl is missing or too old.
18485         * tests/test-update-copyright.sh: Move test of Perl version down after
18486         the test whether Perl exists. Provide an explanation relating Perl's
18487         error message to Automake's SKIP: message.
18488
18489 2010-09-04  Bruno Haible  <bruno@clisp.org>
18490
18491         Don't augment PATH in TESTS_ENVIRONMENT.
18492         * modules/update-copyright-tests (Makefile.am): In TESTS_ENVIRONMENT,
18493         set abs_aux_dir instead of augmenting PATH.
18494         * modules/vc-list-files-tests (Makefile.am): Likewise.
18495         * tests/test-update-copyright.sh: Augment PATH here.
18496         * tests/test-vc-list-files-cvs.sh: Augment PATH here, through
18497         path_prepend_.
18498         * tests/test-vc-list-files-git.sh: Likewise.
18499
18500 2010-09-04  Jim Meyering  <meyering@redhat.com>
18501
18502         tests: prohibit augmenting PATH via TESTS_ENVIRONMENT
18503         * Makefile (sc_prohibit_augmenting_PATH_via_TESTS_ENVIRONMENT): New rule.
18504
18505 2010-09-04  Bruno Haible  <bruno@clisp.org>
18506
18507         strdup: Fix compilation error in C++ mode.
18508         * lib/string.in.h (strdup): In C++ mode with GNULIB_NAMESPACE, undefine
18509         the macro.
18510
18511 2010-09-04  Bruno Haible  <bruno@clisp.org>
18512
18513         dirfd: Fix compilation error in C++ mode on MacOS X, *BSD, IRIX.
18514         * lib/dirent.in.h (dirfd): In C++ mode with GNULIB_NAMESPACE, turn the
18515         macro into a function.
18516         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
18517
18518 2010-09-04  Bruno Haible  <bruno@clisp.org>
18519
18520         Set PATH_SEPARATOR the same way autoconf does.
18521         * build-aux/relocatable.sh.in (func_find_curr_installdir): Determine
18522         the value of PATH_SEPARATOR the same way autoconf-generated configure
18523         scripts do.
18524         * m4/lib-ld.m4 (AC_LIB_PROG_LD): Likewise.
18525         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
18526
18527 2010-09-04  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
18528
18529         Set PATH_SEPARATOR the same way autoconf does.
18530         * gnulib-tool (func_gnulib_dir): Determine the value of PATH_SEPARATOR
18531         the same way autoconf-generated configure scripts do.
18532         * posix-modules: Likewise.
18533
18534 2010-09-02  Paul Eggert  <eggert@cs.ucla.edu>
18535
18536         hash: fix safe_hasher const typo
18537         * lib/hash.c (safe_hasher): Result is pointer, not pointer to
18538         const; otherwise, there is a type error later.
18539
18540 2010-09-02  Jim Meyering  <meyering@redhat.com>
18541
18542         test-update-copyright.sh: require perl 5.8.0
18543         * tests/test-update-copyright.sh: Require 5.8.0,
18544         which Tom G. Christensen has confirmed is adequate,
18545         while 5.6.1 is not.
18546
18547 2010-09-02  Eric Blake  <eblake@redhat.com>
18548
18549         tests: init.sh improvements for re-exec'ing with zsh
18550         * tests/init.sh: Borrow autoconf POSIX-mode sanitization.  Pass
18551         -vx through shell re-exec.
18552         Reported by Tom G. Christensen.
18553
18554         wctype: fix typo in previous commit
18555         * m4/wctype_h.m4 (gl_WCTYPE_H): Fix spelling.
18556         Reported by Ludovic Courtès.
18557
18558 2010-09-02  Jim Meyering  <meyering@redhat.com>
18559
18560         test-update-copyright.sh: skip test if Perl is too old
18561         * tests/test-update-copyright.sh: Exit 77 if Perl is too old.
18562         Reported by Tom G. Christensen.
18563
18564 2010-09-02  Bruno Haible  <bruno@clisp.org>
18565
18566         wctype: Avoid compilation error on IRIX 6.5.30.
18567         * lib/wctype.in.h (iswblank): Declare with a replacement if
18568         REPLACE_ISWBLANK is set.
18569         * m4/wctype_h.m4 (gl_WCTYPE_H): Check also whether iswblank is
18570         declared. Set REPLACE_ISWBLANK.
18571         * modules/wctype (Makefile.am): Substitute REPLACE_ISWBLANK.
18572         * doc/posix-functions/iswblank.texi: Mention the IRIX 6.5.30 problem.
18573         * doc/posix-headers/wctype.texi: Likewise.
18574         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
18575
18576 2010-09-01  Bruno Haible  <bruno@clisp.org>
18577
18578         New module 'socketlib'.
18579         * modules/socketlib: New file.
18580         * m4/socketlib.m4: New file, extracted from m4/sockets.m4.
18581         * m4/sockets.m4 (gl_SOCKETS): Require gl_SOCKETLIB.
18582         * modules/sockets (Depends-on): Add socketlib.
18583         Suggested by Sam Steingold <sds@gnu.org>.
18584
18585 2010-09-01  Paul Eggert  <eggert@cs.ucla.edu>
18586
18587         fcntl-h, etc.: prefer O_SEARCH to O_RDONLY when applicable
18588
18589         POSIX 2008 specifies a new 'open' flag O_SEARCH, which can be used
18590         when one needs search access to a directory but not read access.
18591         On systems where it is available, it works in some cases where
18592         O_RDONLY does not, namely on directories that are searchable but
18593         not readable, and which need only to be searchable.  If O_SEARCH
18594         is not available, fall back to the traditional method of using
18595         O_RDONLY.
18596
18597         * lib/fcntl.in.h (O_SEARCH): #define to O_RDONLY if not defined.
18598         * lib/chdir-long.c (cdb_advance_fd): Use O_SEARCH, not O_RDONLY,
18599         when opening a directory that needs only to be searchable.
18600         * lib/chdir-safer.c (chdir_no_follow): Likewise.
18601         * lib/fts.c (diropen, fts_open, fd_ring_check): Likewise.
18602         * lib/openat-proc.c (openat_proc_name): Likewise.
18603         * lib/openat.c (openat_needs_fchdir): Likewise.
18604         * lib/save-cwd.c (save_cwd): Likewise.
18605         * lib/savewd.c (savewd_save, savewd_chdir): Likewise.
18606
18607 2010-08-28  Bruno Haible  <bruno@clisp.org>
18608
18609         New module 'host-cpu-c-abi'.
18610         * modules/host-cpu-c-abi: New file.
18611         * m4/host-cpu-c-abi.m4: New file, based on part of
18612         clisp/src/m4/general.m4.
18613         Requested by Sam Steingold <sds@gnu.org>.
18614
18615 2010-08-31  Eric Blake  <eblake@redhat.com>
18616         and Jim Meyering  <meyering@redhat.com>
18617
18618         hash: factor, and guard against misbehaving hasher function
18619         * lib/hash.c (safe_hasher): New function, to encapsulate the checking
18620         of table->hasher's return value.  Also protect against a hash value
18621         so large that adding it to table->bucket results in a NULL pointer.
18622         (hash_lookup, hash_get_next, hash_find_entry, transfer_entries):
18623         Use it in place of open-coded check-and-abort.
18624
18625 2010-08-30  Bruno Haible  <bruno@clisp.org>
18626
18627         hash: silence spurious clang warning
18628         * lib/hash.c (hash_get_next): Remove unnecessary test against NULL.
18629         Reported by Eric Blake.
18630
18631 2010-08-30  Eric Blake  <eblake@redhat.com>
18632
18633         strstr, memmem, strcasestr: avoid leaked shell message
18634         * m4/strstr.m4 (gl_FUNC_STRSTR): Avoid "Alarm clock" message from
18635         FreeBSD.
18636         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
18637         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
18638
18639         tests: silence clang warning
18640         * tests/test-malloca.c (do_allocation): Avoid dead store.
18641
18642 2010-08-29  Bruno Haible  <bruno@clisp.org>
18643
18644         gettext: Fix recent mistake.
18645         * m4/intl.m4 (gt_CHECK_DECL): Fix typo introduced on 2010-08-26.
18646
18647 2010-08-29  Bruno Haible  <bruno@clisp.org>
18648
18649         selinux-h: Offer a --without-selinux option.
18650         * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): If
18651         --without-selinux was specified, skip all tests and define
18652         HAVE_SELINUX_SELINUX_H to 0.
18653         (gl_LIBSELINUX): Offer --without-selinux option. If it is specified,
18654         set LIB_SELINUX to empty.
18655         * m4/selinux-context-h.m4 (gl_HEADERS_SELINUX_CONTEXT_H): Require
18656         gl_LIBSELINUX. If --without-selinux was specified, replace
18657         selinux/context.h.
18658         Reported by Johan Hattne <johan.hattne@utsouthwestern.edu>.
18659
18660 2010-08-29  Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
18661             Bruno Haible  <bruno@clisp.org>
18662
18663         Make the module 'realloc-gnu' work again on AIX and OSF/1.
18664         * m4/realloc.m4 (gl_FUNC_REALLOC_GNU): Define HAVE_REALLOC_GNU instead
18665         of HAVE_REALLOC.
18666         * lib/realloc.c (NEED_REALLOC_GNU): Enable behaviour also when
18667         GNULIB_REALLOC_GNU && !HAVE_REALLOC_GNU.
18668         (SYSTEM_MALLOC_GLIBC_COMPATIBLE): Adjust definition.
18669         * modules/realloc-gnu (configure.ac): Use gl_MODULE_INDICATOR.
18670
18671 2010-08-29  Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
18672             Bruno Haible  <bruno@clisp.org>
18673
18674         Make the module 'calloc-gnu' work again on AIX and OSF/1.
18675         * m4/calloc.m4 (gl_FUNC_CALLOC_GNU): Define HAVE_CALLOC_GNU instead of
18676         HAVE_CALLOC.
18677         * lib/xmalloc.c: Update accordingly.
18678         * lib/calloc.c (NEED_CALLOC_GNU): Enable also when
18679         GNULIB_CALLOC_GNU && !HAVE_CALLOC_GNU.
18680         * modules/calloc-gnu (configure.ac): Invoke gl_MODULE_INDICATOR.
18681
18682 2010-08-29  Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
18683             Bruno Haible  <bruno@clisp.org>
18684
18685         Make the module 'malloc-gnu' work again on AIX and OSF/1.
18686         * m4/malloc.m4 (gl_FUNC_MALLOC_GNU): Define HAVE_MALLOC_GNU instead of
18687         HAVE_MALLOC.
18688         * lib/malloc.c (NEED_MALLOC_GNU): Enable behaviour also when
18689         GNULIB_MALLOC_GNU && !HAVE_MALLOC_GNU.
18690         * modules/malloc-gnu (configure.ac): Use gl_MODULE_INDICATOR.
18691
18692 2010-08-29  Bruno Haible  <bruno@clisp.org>
18693
18694         Update modules list.
18695         * MODULES.html.sh (Memory management functions <stdlib.h>): Add
18696         malloc-gnu, calloc-gnu, realloc-gnu. Remove malloc, calloc, realloc.
18697         (String handling <string.h>): Add astrxfrm.
18698         (File system functions): Add readlinkat.
18699
18700 2010-08-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
18701
18702         Tests for module 'realloc-gnu'.
18703         * modules/realloc-gnu-tests: New file.
18704         * tests/test-realloc-gnu.c: New file.
18705
18706         Tests for module 'calloc-gnu'.
18707         * modules/calloc-gnu-tests: New file.
18708         * tests/test-calloc-gnu.c: New file.
18709
18710         Tests for module 'malloc-gnu'.
18711         * modules/malloc-gnu-tests: New file.
18712         * tests/test-malloc-gnu.c: New file.
18713
18714 2010-08-28  Bruno Haible  <bruno@clisp.org>
18715
18716         Rename module 'realloc' -> 'realloc-gnu'.
18717         * modules/realloc-gnu: New file, copied from modules/realloc.
18718         * modules/realloc: Convert to a redirection to 'realloc-gnu'. Mark as
18719         obsolete.
18720         * modules/mgetgroups (Depends-on): Update.
18721         * doc/posix-functions/realloc.texi: Update.
18722         * NEWS: Mention the change.
18723
18724         Rename module 'calloc' -> 'calloc-gnu'.
18725         * modules/calloc-gnu: New file, copied from modules/calloc.
18726         * modules/calloc: Convert to a redirection to 'calloc-gnu'. Mark as
18727         obsolete.
18728         * doc/posix-functions/calloc.texi: Update.
18729         * NEWS: Mention the change.
18730
18731         Rename module 'malloc' -> 'malloc-gnu'.
18732         * modules/malloc-gnu: New file, copied from modules/malloc.
18733         * modules/malloc: Convert to a redirection to 'malloc-gnu'. Mark as
18734         obsolete.
18735         * modules/argp (Depends-on): Update.
18736         * modules/regex (Depends-on): Update.
18737         * doc/posix-functions/malloc.texi: Update.
18738         * NEWS: Mention the change.
18739
18740 2010-08-28  Eric Blake  <eblake@redhat.com>
18741
18742         pread, pwrite: add missing dependency
18743         * modules/pread (Depends-on): Add extensions.
18744         * modules/pwrite (Depends-on): Likewise.
18745
18746 2010-08-28  Bruno Haible  <bruno@clisp.org>
18747
18748         unistr/u*-strchr: Fix tests dependencies.
18749         * modules/unistr/u8-strchr-tests (Depends-on): Add unistr/u32-to-u8.
18750         * modules/unistr/u16-strchr-tests (Depends-on): Add unistr/u32-to-u16.
18751         Reported by Ian Beckwith <ianb@erislabs.net>.
18752
18753 2010-08-28  Bruno Haible  <bruno@clisp.org>
18754
18755         read-file: Don't occupy too much unused memory.
18756         * lib/read-file.c (fread_file): Shrink the buffer at the end.
18757
18758 2010-08-28  Giuseppe Scrivano  <gscrivano@gnu.org>
18759             Eric Blake  <eblake@redhat.com>
18760             Bruno Haible  <bruno@clisp.org>
18761
18762         read-file: Avoid memory reallocations with regular files.
18763         * lib/read-file.c: Include <sys/stat.h>, <stdio.h>, <stdint.h>.
18764         (fread_file): With regular files, use the remaining length as the
18765         initial buffer size.  Check against overflow.
18766         * modules/read-file (Depends-on): Add ftello, malloc-posix, stdint,
18767         sys_stat.
18768
18769 2010-08-28  Bruno Haible  <bruno@clisp.org>
18770
18771         ftello: Relax license.
18772         * modules/ftello (License): Relax to LGPLv2+.
18773         Reported by Eric Blake.
18774
18775 2010-08-28  Bruno Haible  <bruno@clisp.org>
18776
18777         Avoid relocwrapper link errors due to gnulib replacement functions.
18778         * lib/canonicalize-lgpl.c [IN_RELOCWRAPPER]: Use the system's getcwd
18779         function.
18780         Reported by Ben Pfaff <blp@cs.stanford.edu>.
18781
18782 2010-08-28  Bruno Haible  <bruno@clisp.org>
18783
18784         Prefer using AC_DEFUN_ONCE over AC_DEFUN in projects with gnulib.
18785         * m4/iconv.m4 (gl_iconv_AC_DEFUN): Use AC_DEFUN_ONCE if gl_00GNULIB is
18786         defined.
18787         * m4/libunistring.m4 (gl_libunistring_AC_DEFUN): Likewise.
18788         Suggested by Eric Blake.
18789
18790 2010-08-28  Bruno Haible  <bruno@clisp.org>
18791
18792         sys_socket, netdb: Ensure socklen_t gets defined.
18793         * modules/sys_socket (Depends-on): Add socklen.
18794         * modules/netdb (Depends-on): Likewise.
18795         * modules/getaddrinfo (Depends-on): Remove socklen.
18796         * modules/getsockopt (Depends-on): Likewise.
18797         * modules/setsockopt (Depends-on): Likewise.
18798         * tests/test-sys_socket.c: Check that socklen_t is defined.
18799         * tests/test-netdb.c: Likewise.
18800         * m4/socklen.m4: Update comments.
18801         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
18802
18803 2010-08-27  Eric Blake  <eblake@redhat.com>
18804
18805         login_tty: add missing dependency
18806         * modules/login_tty (Depends-on): Add pty.
18807
18808 2010-08-26  Eric Blake  <eblake@redhat.com>
18809
18810         lib-symbol-versions: fix m4 quoting
18811         * m4/ld-version-script.m4 (gl_LD_VERSION_SCRIPT): Use correct
18812         format for AC_LINK_IFELSE.
18813
18814         glob: fix compile test
18815         * m4/glob.m4 (gl_GLOB): Use correct format for AC_COMPILE_IFELSE.
18816
18817         btowc: fix missing file
18818         * modules/btowc (Files): Also ship locale-fr.m4.
18819
18820         lseek: fix link test
18821         * m4/lseek.m4 (gl_FUNC_LSEEK): Use correct format for
18822         AC_LINK_IFELSE.
18823
18824         include_next: silence autoconf 2.68 warning
18825         * m4/include_next.m4 (gl_INCLUDE_NEXT): Mark this use of
18826         AC_COMPILE_IFELSE as special.
18827         (AC_LANG_DEFINES_PROVIDED): Provide dummy implementation for
18828         autoconf < 2.68.
18829
18830         acl: fix compilation test
18831         * m4/acl.m4 (gl_FUNC_ALL): Use correct format for
18832         AC_COMPILE_IFELSE.
18833
18834 2010-08-26  Bruno Haible  <bruno@clisp.org>
18835
18836         Modernize AC_TRY_RUN invocations.
18837         * m4/btowc.m4 (gl_FUNC_BTOWC): Use AC_RUN_IFELSE instead of AC_TRY_RUN.
18838         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Likewise.
18839         * m4/exponentd.m4 (gl_DOUBLE_EXPONENT_LOCATION): Likewise.
18840         * m4/exponentf.m4 (gl_FLOAT_EXPONENT_LOCATION): Likewise.
18841         * m4/exponentl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Likewise.
18842         * m4/fopen.m4 (gl_FUNC_FOPEN): Likewise.
18843         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Likewise.
18844         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
18845         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
18846         * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
18847         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Likewise.
18848         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
18849         * m4/isnanf.m4 (gl_ISNANF_WORKS): Likewise.
18850         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
18851         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Likewise.
18852         * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL,
18853         gl_MBRLEN_NUL_RETVAL): Likewise.
18854         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
18855         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL):
18856         Likewise.
18857         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
18858         * m4/open.m4 (gl_FUNC_OPEN): Likewise.
18859         * m4/printf.m4 (gl_PRINTF_SIZES_C99, gl_PRINTF_LONG_DOUBLE,
18860         gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE,
18861         gl_PRINTF_DIRECTIVE_A, gl_PRINTF_DIRECTIVE_F, gl_PRINTF_DIRECTIVE_N,
18862         gl_PRINTF_DIRECTIVE_LS, gl_PRINTF_POSITIONS, gl_PRINTF_FLAG_GROUPING,
18863         gl_PRINTF_FLAG_LEFTADJUST, gl_PRINTF_FLAG_ZERO, gl_PRINTF_PRECISION,
18864         gl_SNPRINTF_TRUNCATION_C99, gl_SNPRINTF_RETVAL_C99,
18865         gl_SNPRINTF_DIRECTIVE_N, gl_SNPRINTF_SIZE1, gl_VSNPRINTF_ZEROSIZE_C99):
18866         Likewise.
18867         * m4/printf-posix.m4 (gt_PRINTF_POSIX): Likewise.
18868         * m4/signbit.m4 (gl_SIGNBIT, gl_FLOATTYPE_SIGN_LOCATION): Likewise.
18869         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
18870         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
18871         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
18872         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Likewise.
18873         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
18874         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION): Likewise.
18875         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
18876         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
18877
18878 2010-08-26  Bruno Haible  <bruno@clisp.org>
18879
18880         Modernize AC_TRY_LINK invocations.
18881         * m4/acosl.m4 (gl_FUNC_ACOSL): Use AC_LINK_IFELSE instead of
18882         AC_TRY_LINK.
18883         * m4/argp.m4 (gl_ARGP): Likewise.
18884         * m4/asinl.m4 (gl_FUNC_ASINL): Likewise.
18885         * m4/atanl.m4 (gl_FUNC_ATANL): Likewise.
18886         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Likewise.
18887         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
18888         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
18889         * m4/codeset.m4 (AM_LANGINFO_CODESET): Likewise.
18890         * m4/cosl.m4 (gl_FUNC_COSL): Likewise.
18891         * m4/expl.m4 (gl_FUNC_EXPL): Likewise.
18892         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
18893         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Likewise.
18894         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
18895         * m4/frexp.m4 (gl_FUNC_FREXP, gl_CHECK_FREXP_NO_LIBM): Likewise.
18896         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_CHECK_FREXPL_NO_LIBM): Likewise.
18897         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
18898         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
18899         * m4/hostent.m4 (gl_HOSTENT): Likewise.
18900         * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
18901         * m4/intl.m4 (gt_INTL_SUBDIR_CORE): Likewise.
18902         * m4/intlmacosx.m4 (gt_INTL_MACOSX): Likewise.
18903         * m4/isnand.m4 (gl_HAVE_ISNAND_IN_LIBM, gl_HAVE_ISNAND_NO_LIBM):
18904         Likewise.
18905         * m4/isnanf.m4 (gl_HAVE_ISNANF_NO_LIBM, gl_HAVE_ISNANF_IN_LIBM):
18906         Likewise.
18907         * m4/isnanl.m4 (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM):
18908         Likewise.
18909         * m4/lcmessage.m4 (gt_LC_MESSAGES): Likewise.
18910         * m4/ldexpl.m4 (gl_FUNC_LDEXPL, gl_CHECK_LDEXPL_NO_LIBM): Likewise.
18911         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Likewise.
18912         * m4/logb.m4 (gl_FUNC_LOGB): Likewise.
18913         * m4/logl.m4 (gl_FUNC_LOGL): Likewise.
18914         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Likewise.
18915         * m4/servent.m4 (gl_SERVENT): Likewise.
18916         * m4/signbit.m4 (gl_SIGNBIT): Likewise.
18917         * m4/sinl.m4 (gl_FUNC_SINL): Likewise.
18918         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Likewise.
18919         * m4/tanl.m4 (gl_FUNC_TANL): Likewise.
18920         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
18921         * m4/trunc.m4 (gl_FUNC_TRUNC): Likewise.
18922         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
18923         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
18924         * modules/tsearch-tests (configure.ac): Likewise.
18925
18926 2010-08-26  Bruno Haible  <bruno@clisp.org>
18927
18928         Modernize AC_TRY_COMPILE invocations.
18929         * m4/environ.m4 (gt_CHECK_VAR_DECL): Use AC_COMPILE_IFELSE instead of
18930         AC_TRY_COMPILE.
18931         * m4/iconv.m4 (gl_iconv_AC_DEFUN): Likewise.
18932         * m4/intl.m4 (gt_CHECK_DECL): Likewise.
18933         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Likewise.
18934         * m4/intmax_t.m4 (gt_AC_TYPE_INTMAX_T): Likewise.
18935         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Likewise.
18936         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
18937         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
18938         * m4/lock.m4 (gl_LOCK): Likewise.
18939         * m4/malloc.m4 (gl_CHECK_MALLOC_POSIX): Likewise.
18940         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
18941         * m4/minmax.m4 (gl_MINMAX_IN_HEADER): Likewise.
18942         * m4/setenv.m4 (gl_FUNC_UNSETENV): Likewise.
18943         * m4/size_max.m4 (gl_SIZE_MAX): Likewise.
18944         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Likewise.
18945         * m4/stdarg.m4 (gl_STDARG_H): Likewise.
18946         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Likewise.
18947         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Likewise.
18948         * m4/visibility.m4 (gl_VISIBILITY): Likewise.
18949         * m4/wchar_t.m4 (gt_TYPE_WCHAR_T): Likewise.
18950         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
18951         * m4/libunistring.m4 (gl_LIBUNISTRING_CORE): Likewise. Remove
18952         extraneous semicolon.
18953
18954 2010-08-26  Jim Meyering  <meyering@redhat.com>
18955
18956         stat-time: relax license LGPL
18957         * modules/stat-time (License): Change from GPL to LGPL,
18958         with consent from all contributors, for use in libguile.
18959         Requested by Ludovic Courtès.
18960
18961 2010-08-26  Erik Faye-Lund  <kusmabite@gmail.com>
18962
18963         poll: return immediately on POLLHUP.
18964         * lib/poll.c (poll): Always set timeout before wait_timeout is
18965         computed.
18966
18967 2010-08-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
18968
18969         Fix test-unlinkat, test-rmdir failure on AIX 5.3.
18970         * tests/test-rmdir.h (test_rmdir_func): Also accept EEXIST for
18971         rmdir ("dir/.//"), unlinkat.
18972
18973 2010-08-24  Paul Eggert  <eggert@cs.ucla.edu>
18974
18975         stdbool: avoid spurious failure with modern xlc
18976         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Resync with autoconf.
18977
18978 2010-08-24  Bruno Haible  <bruno@clisp.org>
18979
18980         getloadavg: simplify code
18981         * m4/getloadavg.m4 (gl_GETLOADAVG): Remove useless test of
18982         gl_have_func. Update comments.
18983
18984 2010-08-24  Eric Blake  <eblake@redhat.com>
18985
18986         getloadavg: don't define SVR4 on cygwin
18987         * m4/getloadavg.m4 (gl_GETLOADAVG): Sync with autoconf fix, to
18988         only define SVR4 when -lkvm is required.
18989         Reported by Yaakov Selkowitz.
18990
18991 2010-08-24  Bruno Haible  <bruno@clisp.org>
18992
18993         priv-set: fix comment
18994         * lib/priv-set.c (priv_set_restore): Fix typo in comment.
18995
18996 2010-08-23  Paul Eggert  <eggert@cs.ucla.edu>
18997
18998         priv-set: fix comments
18999         * lib/priv-set.c (priv_set_remove, priv_set_restore): Fix comments
19000         to match code, as suggested by David Bartley in:
19001         http://lists.gnu.org/archive/html/bug-tar/2010-08/msg00018.html
19002
19003 2010-08-23  Eric Blake  <eblake@redhat.com>
19004
19005         stdbool: avoid rejecting clang
19006         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Resync with autoconf.
19007         * tests/test-stdbool.c: Enable more tests if using the system
19008         <stdbool.h> instead of the gnulib replacement.
19009         (main): Move xlc bug test to a runtime test for all compilers.
19010         Reported by Anders Kaseorg.
19011
19012         argz: fix shell quoting issue
19013         * m4/argz.m4 (gl_FUNC_ARGZ): Allow for spaces in argument.
19014         Reported by Charles Wilson.
19015
19016 2010-08-22  Paolo Bonzini  <bonzini@gnu.org>
19017             Erik Faye-Lund <kusmabite@gmail.com>
19018
19019         poll, select: handle ERROR_BROKEN_PIPE.
19020         * lib/poll.c (win32_compute_revents): Return POLLHUP when
19021         PeekNamedPipe fails with ERROR_BROKEN_PIPE.
19022         * lib/select.c (win32_compute_revents): Do not mark a pipe
19023         as writeable if PeekNamedPipe fails with ERROR_BROKEN_PIPE.
19024
19025 2010-08-22  Giuseppe Scrivano  <gscrivano@gnu.org>
19026
19027         fts: allow compilation with C++
19028         * lib/fts_.h: Specify extern "C" linkage with C++.
19029
19030 2010-08-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
19031
19032         Fix gnulib-tool sed script de-commentation for AIX sed.
19033         * gnulib-tool (sed_comments): Try indented comments, for AIX 5.3
19034         sed.
19035
19036 2010-08-17  Eric Blake  <eblake@redhat.com>
19037
19038         test-stddef: test for (some) offsetof bugs
19039         * tests/test-stddef.c: Enhance test to ensure correct type of
19040         offsetof.
19041         * doc/posix-headers/stddef.texi (stddef.h): Document a Solaris bug
19042         that we are not fixing at this time.
19043
19044 2010-08-15  Bruno Haible  <bruno@clisp.org>
19045
19046         stpncpy: Allow stpncpy to be defined as a macro.
19047         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Don't attempt to redeclare stpncpy
19048         if it's already correctly declared.
19049         * lib/string.in.h (stpncpy): Undefine before redefining.
19050         Reported by Jeremy Huddleston <jeremyhu@macports.org>.
19051
19052 2010-08-14  Bruno Haible  <bruno@clisp.org>
19053
19054         Rename module 'memxfrm' to 'amemxfrm'.
19055         * lib/amemxfrm.h: Renamed from lib/memxfrm.h.
19056         (amemxfrm): Renamed from memxfrm.
19057         * lib/amemxfrm.c: Renamed from lib/memxfrm.h. Include amemxfrm.h.
19058         (amemxfrm): Renamed from memxfrm.
19059         * modules/amemxfrm: Renamed from modules/memxfrm. Update.
19060         * NEWS: Mention the change.
19061         * MODULES.html.sh (String handling <string.h>): Update.
19062         * lib/unicase/u-casexfrm.h: Invoke amemxfrm instead of memxfrm.
19063         * lib/unicase/u8-casexfrm.c: Include amemxfrm.h instead of memxfrm.h.
19064         * lib/unicase/u16-casexfrm.c: Likewise.
19065         * lib/unicase/u32-casexfrm.c: Likewise.
19066         * lib/uninorm/u-normxfrm.h: Invoke amemxfrm instead of memxfrm.
19067         * lib/uninorm/u8-normxfrm.c: Include amemxfrm.h instead of memxfrm.h.
19068         * lib/uninorm/u16-normxfrm.c: Likewise.
19069         * lib/uninorm/u32-normxfrm.c: Likewise.
19070         * modules/unicase/u8-casexfrm (Depends-on): Add amemxfrm, remove
19071         memxfrm.
19072         * modules/unicase/u16-casexfrm (Depends-on): Likewise.
19073         * modules/unicase/u32-casexfrm (Depends-on): Likewise.
19074         * modules/uninorm/u8-normxfrm (Depends-on): Likewise.
19075         * modules/uninorm/u16-normxfrm (Depends-on): Likewise.
19076         * modules/uninorm/u32-normxfrm (Depends-on): Likewise.
19077         Suggested by Paul Eggert.
19078
19079 2010-08-14  Bruno Haible  <bruno@clisp.org>
19080
19081         Tests for module 'astrxfrm'.
19082         * modules/astrxfrm-tests: New file.
19083         * tests/test-astrxfrm.c: New file.
19084
19085         New module 'astrxfrm'.
19086         * lib/astrxfrm.h: New file.
19087         * lib/astrxfrm.c: New file, based on lib/memxfrm.c.
19088         * modules/astrxfrm: New file.
19089
19090 2010-08-14  Reuben Thomas <rrt@sc3d.org>
19091
19092         regex: Tweak doc.
19093         * doc/regex.texi (Overview): Don't mention regex.c.
19094         (GNU Regular Expression Compiling): Likewise.
19095         (Match-end-of-line Operator): Mention 'not_eol'.
19096
19097 2010-08-14  Brian Gough  <bjg@gnu.org>
19098             Bruno Haible  <bruno@clisp.org>
19099
19100         git-merge-changelog: add doc relating to use with bzr and hg.
19101         * lib/git-merge-changelog.c: Add comments regarding bzr, hg, diff3.
19102
19103 2010-08-14  Matthias Bolte  <matthias.bolte@googlemail.com>
19104
19105         pthread: fix pthread.h creation for srcdir != builddir
19106         * modules/pthread (Makefile.am): Fix the rule to work also in a
19107         non-srcdir build.
19108
19109 2010-08-13  Karl Berry  <karl@gnu.org>
19110
19111         * doc/regex.texi (Predefined Syntaxes): @smallexample.
19112         * doc/posix-*/*: force line break before @url of POSIX
19113         specifications.
19114         Suggested by Werner Lemberg.
19115
19116 2010-08-10  Paul Eggert  <eggert@cs.ucla.edu>
19117
19118         strtod: fix const diagnostic
19119         * lib/strtod.c (strtod): Don't assign const char * to char *,
19120         as this elicits a warning from GCC when warnings are enabled.
19121
19122 2010-08-10  Pádraig Brady <P@draigbrady.com>
19123         and Eric Blake  <eblake@redhat.com>
19124
19125         copy-acl: ignore ENOTSUP on HP-UX
19126         * lib/acl-internal.h (ACL_NOT_WELL_SUPPORTED): Move definition up,
19127         so that it is available for HP-UX.
19128         * lib/copy-acl.c (qcopy_acl): Use it.
19129         Reported by Patrick M. Callahan.
19130
19131 2010-08-10  Eric Blake  <eblake@redhat.com>
19132
19133         open, chown: relax license
19134         * modules/open (License): Change to LGPLv2+, with consent by all
19135         authors, for use in augeas.
19136         * modules/chown (License): Likewise.
19137         * modules/lchown (Likewise): Likewise.
19138         Requested by Adam Stokes.
19139
19140 2010-08-09  Karl Berry  <karl@gnu.org>
19141
19142         * build-aux/ar-lib: new file, import from Automake.
19143         * config/srclist.txt: autocheck for updates.
19144
19145 2010-08-09  Eric Blake  <eblake@redhat.com>
19146
19147         readlinkat: adjust client modules
19148         * modules/areadlinkat (Depends-on): Use readlinkat, not
19149         symlinkat.
19150         * modules/areadlinkat-with-size (Depends-on): Likewise.
19151
19152         mknod: be more vocal about danger of running tests as root
19153         * m4/mknod.m4 (gl_FUNC_MKNOD): Make it harder to run configure as
19154         root, since that is just asking for problems.
19155         Suggested by Bruno Haible, based on a report by Rainer Tammer.
19156
19157         readlinkat: split into its own module
19158         * modules/symlinkat: Split readlinkat...
19159         * modules/readlinkat: ...into separate module.
19160         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Move readlinkat check...
19161         * m4/readlinkat.m4 (gl_FUNC_READLINAT): ...to new file.
19162         * lib/symlinkat.c (readlinkat): Move...
19163         * lib/readlinkat.c: ...into new file.
19164         * modules/symlinkat-tests: Split readlinkat test...
19165         * modules/readlinkat-tests: ...into separate module.
19166         * tests/test-symlinkat.c: Split...
19167         * tests/test-readlinkat.c: ...into new file.
19168         * NEWS: Document the split.
19169         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
19170         * lib/unistd.in.h (readlinkat): Likewise.
19171         Suggested by Bruno Haible.
19172
19173 2010-08-08  Bruno Haible  <bruno@clisp.org>
19174
19175         memxfrm: Speed up.
19176         * lib/memxfrm.c (memxfrm): Allocate enough memory ahead of time, so
19177         that usually only one call to strxfrm is necessary for each string
19178         part.
19179         Reported by Paul Eggert <eggert@cs.ucla.edu>.
19180
19181 2010-08-07  Karl Berry  <karl@gnu.org>
19182
19183         * doc/posix-headers/limits.texi,
19184         * doc/posix-functions/malloc.texi,
19185         * doc/posix-functions/strsignal.texi: missing @item.
19186         * doc/ld-version-script.texi: spurious leading i.
19187         * doc/regex.texi (Interval Operators): no commas inside @var.
19188
19189 2010-08-01  Bruno Haible  <bruno@clisp.org>
19190
19191         Integrate the regex documentation.
19192         * doc/gnulib.texi: Define 'cn' index.
19193         (Regular expressions): New a chapter that includes regex.texi and
19194         regexprops-generic.texi.
19195         * doc/regex.texi: Remove boilerplate stuff. Use simplified @node
19196         syntax.
19197
19198         Whitespace cleanup.
19199         * doc/regex.texi: Remove trailing spaces.
19200
19201         Add regex documentation.
19202         * doc/regex.texi: New file. Taken from regex-0.12/doc/regex.texi in
19203         http://ftp.gnu.org/old-gnu/regex/regex-0.12.tar.gz.
19204         Written by Kathy A. Hargreaves and Karl Berry.
19205
19206 2010-08-01  Bruno Haible  <bruno@clisp.org>
19207
19208         link: Update documentation.
19209         * doc/posix-functions/link.texi: Update regarding Solaris.
19210
19211 2010-07-31  Bruno Haible  <bruno@clisp.org>
19212
19213         Update modules list.
19214         * MODULES.html.sh (Sorting functions <stdlib.h>): Add array-mergesort.
19215         (String handling <string.h>): Add memcmp2, memxfrm.
19216         (Container data structures): Add xlist, xsublist, xoset.
19217         (Core language properties): Add alignof, unused-parameter.
19218         (Process control, Numeric conversion functions <stdlib.h>): Renamed
19219         from Numeric conversion functions <stdlib.h>. Add _Exit, atoll.
19220         (Unibyte characters <ctype.h>): New section.
19221         (String handling <string.h>): New section.
19222         (Mathematics <math.h>): Add acos, acosl, asin, asinl, atan, atan2,
19223         atanl, cbrt, copysign, cos, cosh, cosl, erf, erfc, exp, expl, fabs,
19224         fmod, hypot, j0, j1, jn, ldexp, lgamma, log, log10, log1p, logb, logl,
19225         modf, nextafter, pow, remainder, rint, sin, sinh, sinl, sqrt, sqrtl,
19226         tan, tanh, tanl, y0, y1, yn.
19227         (Support for systems lacking POSIX:2008): Add alphasort, dirent,
19228         dprintf, dprintf-posix, duplocale, fcntl, getlogin, getopt-posix,
19229         grantpt, iconv-h, ioctl, isblank, langinfo, nl_langinfo, pread,
19230         ptsname, pwrite, scandir, servent, sys_utsname, ttyname_r, uname,
19231         unlockpt, vdprintf, vdprintf-posix.
19232         (Enhancements for POSIX:2008 functions): Add getopt-gnu. Remove getopt.
19233         (File system functions): Add concat-filename, sys_file, sys_ioctl,
19234         xconcat-filename.
19235         (File descriptor based Input/Output): Add dup3, fd-safer-flag,
19236         getdtablesize, pipe2, pipe2-safer.
19237         (Security): New section.
19238         (Networking functions): Add accept4.
19239         (Signal handling): Add sigpipe.
19240         (Internationalization functions): Add xstriconveh, mbmemcasecmp,
19241         mbmemcasecoll.
19242         (Unicode string functions): Add libunistring-optional, unistr/u*-cmp2,
19243         unistr/u*-strcoll, uniwbrk/*, uninorm/*, unicase/*.
19244         (Executing programs): Add findprog-lgpl, pipe-filter-gi,
19245         pipe-filter-ii.
19246         (Misc): Add argp-version-etc, login_tty, parse-duration.
19247
19248 2010-07-31  Bruno Haible  <bruno@clisp.org>
19249
19250         Improve doc in MODULES.html.
19251         * modules/linkat (Description): Add the word "function".
19252         * modules/mkfifo (Description): Likewise.
19253         * modules/mknod (Description): Likewise.
19254         * modules/remove (Description): Likewise.
19255         * modules/renameat (Description): Likewise.
19256         * modules/stat (Description): Likewise.
19257         * modules/symlink (Description): Likewise.
19258         * modules/unlink (Description): Likewise.
19259
19260 2010-07-31  Bruno Haible  <bruno@clisp.org>
19261
19262         ansi-c++-opt: Provide option --enable-c++/--disable-c++ when possible.
19263         * m4/ansi-c++.m4 (gl_CXX_CHOICE): In Autoconf 2.66 or newer, provide
19264         option --enable/disable-c++ instead of --enable/disable-cxx.
19265         * NEWS: Mention the change.
19266
19267 2010-07-31  Bruno Haible  <bruno@clisp.org>
19268
19269         readlink, areadlink: Relax test a bit.
19270         * tests/test-readlink.h (test_readlink): Accept EINVAL as an
19271         alternative to ENOTDIR.
19272         * tests/test-areadlink.h (test_areadlink): Likewise.
19273         Reported by Rainer Tammer.
19274
19275 2010-07-31  Bruno Haible  <bruno@clisp.org>
19276
19277         unistr/u8-strstr, unistr/u16-strstr: Optimize the one-character case.
19278         * lib/unistr/u-strstr.h (FUNC): When the needle contains only one
19279         character, perform the search using U_STRCHR.
19280         * lib/unistr/u8-strstr.c (U_STRMBTOUC): New macro.
19281         * lib/unistr/u16-strstr.c (U_STRMBTOUC): Likewise.
19282         * modules/unistr/u8-strstr (Depends-on): Add unistr/u8-strmbtouc.
19283         * modules/unistr/u16-strstr (Depends-on): Add unistr/u16-strmbtouc.
19284         Suggested by Paolo Bonzini.
19285
19286 2010-07-31  Bruno Haible  <bruno@clisp.org>
19287
19288         unistr/u*-strstr: Fix dependencies.
19289         * modules/unistr/u8-strstr (Depends-on): Add unistr/u8-strchr.
19290         * modules/unistr/u16-strstr (Depends-on): Add unistr/u16-strchr.
19291         * modules/unistr/u32-strstr (Depends-on): Add unistr/u32-strchr.
19292
19293 2010-07-31  Bruno Haible  <bruno@clisp.org>
19294
19295         unistr/u8-chr, unistr/u8-strchr: Optimize and add comments.
19296         * lib/unistr/u8-chr.c (u8_chr): Add comments. Remove a useless test at
19297         the beginning of the loop.
19298         * lib/unistr/u8-strchr.c (u8_strchr): Add comments. Don't fall through
19299         cases in 'switch' statement.
19300
19301         unistr/u8-strchr: Fix several bugs.
19302         * lib/unistr/u8-strchr.c (u8_strchr): Don't search beyond the end of
19303         the string. When not found, return NULL, not a pointer near the end.
19304
19305         More tests for unistr/u8-strchr.
19306         * tests/unistr/test-strchr.h (test_strchr): Renamed from main. Check
19307         that the function does not read past the first occurrence of the byte
19308         being searched.
19309         * tests/unistr/test-u8-strchr.c (main): New function, with more tests.
19310         * tests/unistr/test-u16-strchr.c (main): New function.
19311         * tests/unistr/test-u32-strchr.c (main): New function.
19312
19313 2010-07-31  Bruno Haible  <bruno@clisp.org>
19314
19315         posix-modules: Ignore backup files of documentation files.
19316         * posix-modules: grep only through files named *.texi.
19317
19318 2010-07-31  Bruno Haible  <bruno@clisp.org>
19319
19320         symlinkat: Fix documentation.
19321         * doc/posix-functions/readlinkat.texi: Fix module name.
19322
19323 2010-07-31  Bruno Haible  <bruno@clisp.org>
19324
19325         fchownat: Replace also when chown has the trailing slash bug.
19326         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Move the test of REPLACE_CHOWN
19327         outside the gl_FUNC_FCHOWNAT_DEREF_BUG invocation. Fixes regression
19328         introduced on 2010-04-10.
19329         Reported by Rainer Tammer.
19330
19331 2010-07-31  Bruno Haible  <bruno@clisp.org>
19332
19333         linkat: Work around AIX 7.1 bug.
19334         * m4/linkat.m4 (gl_FUNC_LINKAT): Require AC_CANONICAL_HOST. Test
19335         whether linkat handles trailing slash correctly. If not, replace linkat
19336         and define LINKAT_TRAILING_SLASH_BUG.
19337         * lib/linkat.c (rpl_linkat): If LINKAT_TRAILING_SLASH_BUG is defined,
19338         check whether (fd1,file1) points to a directory if file1 or file2 ends
19339         in a slash. Code taken from lib/link.c.
19340         * doc/posix-functions/linkat.texi: Mention trailing slash bug.
19341         Reported by Rainer Tammer.
19342
19343 2010-07-31  Bruno Haible  <bruno@clisp.org>
19344
19345         Correctly determine whether pow is available in libc on AIX 7 with xlc.
19346         * m4/mathfunc.m4 (gl_MATHFUNC): Actually use the 'funcptr' variable.
19347         This disables an xlc optimization that was causing wrong test results.
19348         Reported by Rainer Tammer.
19349
19350 2010-07-31  Bruno Haible  <bruno@clisp.org>
19351
19352         iconv: Work around AIX 6.1..7.1 bug.
19353         * doc/posix-functions/iconv.texi: Mention AIX 6.1, 7.1 bug.
19354         * m4/iconv.m4 (AM_ICONV_LINK): Test against AIX 6.1, 7.1 bug. When
19355         cross-compiling, guess no on all versions of AIX.
19356         Reported by Rainer Tammer.
19357
19358 2010-07-31  Bruno Haible  <bruno@clisp.org>
19359
19360         readlink: Relax test a bit.
19361         * tests/test-readlink.h (test_readlink): Allow different errno value
19362         when readlink is called with a file name that ends in / and refers to
19363         a file.
19364         Suggested by Eric Blake.
19365         Reported by Rainer Tammer.
19366
19367 2010-07-31  Bruno Haible  <bruno@clisp.org>
19368
19369         copysign: Does not require -lm on glibc systems.
19370         * modules/copysign (configure.ac): Use gl_MATHFUNC, not
19371         gl_COMMON_DOUBLE_MATHFUNC.
19372         * m4/mathfunc.m4 (gl_COMMON_DOUBLE_MATHFUNC): Update comments.
19373
19374 2010-07-31  Bruno Haible  <bruno@clisp.org>
19375
19376         duplocale: Work around AIX 7.1 bug.
19377         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Let the test fail also when
19378         duplocale(LC_GLOBAL_LOCALE) returns (locale_t)0.
19379         * lib/duplocale.c (rpl_duplocale): Update comment.
19380         * doc/posix-functions/duplocale.texi: Mention the AIX 7.1 bug.
19381         Reported by Rainer Tammer.
19382
19383 2010-07-30  Bruno Haible  <bruno@clisp.org>
19384
19385         dirfd: Avoid link error on AIX 7.1.
19386         * lib/dirent.in.h (dirfd): Use modern idiom with REPLACE_DIRFD.
19387         * m4/dirfd.m4 (gl_FUNC_DIRFD): If the function is declared but does not
19388         exist, set REPLACE_DIRFD.
19389         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize REPLACE_DIRFD.
19390         * modules/dirent (Makefile.am): Substitute REPLACE_DIRFD.
19391         * doc/posix-functions/dirfd.texi: Update.
19392         Reported by Rainer Tammer.
19393
19394 2010-07-30  Eric Blake  <eblake@redhat.com>
19395
19396         strtod: next round of AIX fixes
19397         * lib/strtod.c (strtod): Work around AIX bug of parsing p with no
19398         exponent.
19399         * tests/test-strtod.c (main): Enhance tests.
19400         * doc/posix-functions/strtod.texi (strtod): Document next bug.
19401         Reported by Rainer Tammer.
19402
19403         futimens: fix configure check
19404         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Use correct logic.
19405         Reported by Bruno Haible.
19406
19407 2010-07-30  Bruno Haible  <bruno@clisp.org>
19408
19409         getline: Update regarding AIX.
19410         * doc/posix-functions/getline.texi: Mention bug on AIX 7.1.
19411         Reported by Rainer Tammer.
19412
19413 2010-07-30  Bruno Haible  <bruno@clisp.org>
19414
19415         wcwidth: Drop replacement on AIX 7.
19416         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): When cross-compiling, guess yes on
19417         AIX 7.
19418         Reported by Rainer Tammer.
19419
19420 2010-07-30  Bruno Haible  <bruno@clisp.org>
19421
19422         strtok_r: Avoid triggering bug in AIX 7.1 xlc compiler.
19423         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Don't cast an invalid address to
19424         a 'char *'.
19425         Reported by Rainer Tammer.
19426
19427 2010-07-30  Bruno Haible  <bruno@clisp.org>
19428
19429         unlink: Update regarding AIX.
19430         * doc/posix-functions/unlink.texi: Mention bug on AIX 7.1.
19431         * m4/unlink.m4 (gl_FUNC_UNLINK): Update comment.
19432         Reported by Rainer Tammer.
19433
19434 2010-07-30  Bruno Haible  <bruno@clisp.org>
19435
19436         symlink: Update regarding AIX.
19437         * doc/posix-functions/symlink.texi: Mention bug on AIX 7.1.
19438         * m4/symlink.m4 (gl_FUNC_SYMLINK): Update comment.
19439         Reported by Rainer Tammer.
19440
19441 2010-07-30  Bruno Haible  <bruno@clisp.org>
19442
19443         strndup: Update regarding AIX.
19444         * m4/strndup.m4 (gl_FUNC_STRNDUP): When cross-compiling, guess yes on
19445         AIX 7.
19446         Reported by Rainer Tammer.
19447
19448 2010-07-30  Bruno Haible  <bruno@clisp.org>
19449
19450         stat: Update regarding AIX.
19451         * doc/posix-functions/stat.texi: Mention bug on AIX 7.1.
19452         * m4/stat.m4 (gl_FUNC_STAT): Update comment.
19453         Reported by Rainer Tammer.
19454
19455 2010-07-30  Bruno Haible  <bruno@clisp.org>
19456
19457         truncl: Fix autoconf test.
19458         * m4/truncl.m4 (gl_FUNC_TRUNCL): Add TRUNCL_LIBM to LIBS while testing
19459         whether truncl works.
19460         Reported by Rainer Tammer.
19461
19462 2010-07-30  Bruno Haible  <bruno@clisp.org>
19463
19464         round: Update regarding AIX.
19465         * m4/round.m4 (gl_FUNC_ROUND): When cross-compiling, guess no on AIX 7.
19466         * doc/posix-functions/round.texi: Mention bug on AIX 7.1.
19467         Reported by Rainer Tammer.
19468
19469 2010-07-30  Bruno Haible  <bruno@clisp.org>
19470
19471         rename: Update regarding AIX.
19472         * doc/posix-functions/rename.texi: Mention bug on AIX 7.1.
19473         * m4/rename.m4 (gl_FUNC_RENAME): Update comment.
19474         Reported by Rainer Tammer.
19475
19476 2010-07-30  Bruno Haible  <bruno@clisp.org>
19477
19478         printf.m4: Update regarding AIX.
19479         * m4/printf.m4: Update comments regarding AIX.
19480         Reported by Rainer Tammer.
19481
19482 2010-07-30  Bruno Haible  <bruno@clisp.org>
19483
19484         iconv: Update regarding AIX.
19485         * m4/iconv.m4 (AM_ICONV_LINK): When cross-compiling, guess yes on
19486         AIX 7.
19487         Reported by Rainer Tammer.
19488
19489 2010-07-30  Bruno Haible  <bruno@clisp.org>
19490
19491         getopt: Update regarding AIX.
19492         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): When cross-compiling, guess
19493         no on AIX.
19494         * doc/posix-functions/getopt.texi: Mention that AIX has the optind bug.
19495         Reported by Rainer Tammer.
19496
19497 2010-07-30  Bruno Haible  <bruno@clisp.org>
19498
19499         ldexpl; Update regarding AIX.
19500         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): When cross-compiling, guess yes
19501         on AIX 7.
19502         Reported by Rainer Tammer.
19503
19504 2010-07-30  Bruno Haible  <bruno@clisp.org>
19505
19506         frexpl: Update regarding AIX.
19507         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): When cross-compiling, guess yes
19508         on AIX 7.
19509         Reported by Rainer Tammer.
19510
19511 2010-07-30  Bruno Haible  <bruno@clisp.org>
19512
19513         open, fopen: Update regarding AIX.
19514         * m4/open.m4 (gl_FUNC_OPEN): Adjust cross-compiling guess for AIX.
19515         * m4/fopen.m4 (gl_FUNC_FOPEN): Likewise.
19516         * doc/posix-functions/open.texi: Mention the trailing-slash bug on AIX.
19517         * doc/posix-functions/fopen.texi: Likewise.
19518         Reported by Rainer Tammer.
19519
19520 2010-07-30  Bruno Haible  <bruno@clisp.org>
19521
19522         chown: Update doc regarding AIX.
19523         * doc/posix-functions/chown.texi: Mention bug on AIX 7.1.
19524         * m4/chown.m4 (gl_FUNC_CHOWN): Update comment.
19525         Reported by Rainer Tammer.
19526
19527 2010-07-30  Eric Blake  <eblake@redhat.com>
19528
19529         strtod: fix bug in replacement function on AIX
19530         * lib/strtod.c (strtod): Special case broken "0x" parse in
19531         underlying strtod.
19532         * tests/test-strtod.c (main): Document AIX 7.1 bugs.
19533         * doc/posix-functions/strtod.texi (strtod): Likewise.
19534         Reported by Rainer Tammer.
19535
19536 2010-07-30  Bruno Haible  <bruno@clisp.org>
19537
19538         mbrlen: Fix cross-compilation guess for AIX.
19539         * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE): Fix cross-compilation
19540         guess. Leftover from 2008-12-22.
19541
19542 2010-07-30  Bruno Haible  <bruno@clisp.org>
19543
19544         mbrtowc: Fix cross-compilation guess for AIX.
19545         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE): Fix cross-compilation
19546         guess. Leftover from 2008-12-21.
19547
19548 2010-07-29  Peter O'Gorman  <pogma@thewrittenword.com>  (tiny change)
19549
19550         init.sh: work around trap limitation of some shells
19551         * tests/init.sh (setup_): Move exit trap outside of shell function.
19552
19553 2010-07-29  Eric Blake  <eblake@redhat.com>
19554
19555         strtod: aid debugging
19556         * m4/strtod.m4(gl_FUNC_STRTOD): Use distinct exit status to aid
19557         understanding why strtod is rejected.
19558
19559 2010-07-28  Bruno Haible  <bruno@clisp.org>
19560
19561         unistr/u*-chr, unistr/u*-strchr: Fix link errors and warnings.
19562         * lib/unistr/u8-chr.c: Include <string.h>.
19563         * tests/unistr/test-u8-chr.c: Likewise.
19564         * tests/unistr/test-u16-chr.c: Likewise.
19565         * tests/unistr/test-u32-chr.c: Likewise.
19566         * tests/unistr/test-u8-strchr.c: Likewise.
19567         * tests/unistr/test-u16-strchr.c: Likewise.
19568         * tests/unistr/test-u32-strchr.c: Likewise.
19569         * modules/unistr/u8-chr-tests (Depends-on): Add unistr/u32-set.
19570         * modules/unistr/u16-chr-tests (Depends-on): Likewise.
19571         * modules/unistr/u8-strchr-tests (Depends-on): Likewise.
19572         * modules/unistr/u16-strchr-tests (Depends-on): Likewise.
19573
19574 2010-07-28  Bruno Haible  <bruno@clisp.org>
19575
19576         Use spaces for indentation, not tabs.
19577         * lib/**/*.[hcy] except lib/reg*.[hc]: Untabify.
19578
19579 2010-07-27  Bruno Haible  <bruno@clisp.org>
19580
19581         mbspcasecmp: Fix function specification.
19582         * lib/string.in.h (mbspcasecmp): Fix specification comment.
19583         * lib/mbspcasecmp.c (mbspcasecmp): Likewise.
19584         Reported by Eric Blake <eblake@redhat.com>.
19585
19586 2010-07-26  Paul R. Eggert  <eggert@cs.ucla.edu>
19587
19588         timespec: use cast and not conditional, as truncation isn't possible
19589         * lib/timespec.h (timespec_cmp): Use cast to pacify gcc -Wconversion
19590         instead of a conditional.  Comment about the situation in more detail.
19591         This undoes most of the 2009-10-29 patch.
19592
19593 2010-07-23  Paolo Bonzini  <pbonzini@redhat.com>
19594
19595         unistr/u8-chr, unistr/u8-strchr: use Boyer-Moore like algorithm.
19596         * lib/unistr/u8-chr.c: Add Boyer-Moore like operation.
19597         * lib/unistr/u8-strchr.c: Likewise.
19598         * modules/unistr/u8-chr: Depend on memchr.
19599
19600         unistr/u*-strchr: add tests
19601         * modules/unistr/u8-strchr-tests: New file.
19602         * modules/unistr/u16-strchr-tests: New file.
19603         * modules/unistr/u32-strchr-tests: New file.
19604         * tests/unistr/test-strchr.h: New file.
19605         * tests/unistr/test-u8-strchr.c: New file.
19606         * tests/unistr/test-u16-strchr.c: New file.
19607         * tests/unistr/test-u32-strchr.c: New file.
19608
19609         unistr/u*-chr: test multibyte sequences more
19610         * tests/unistr/test-chr.h: Do complete testing of the characters in the
19611         test vector.
19612         * tests/unistr/test-u8-chr.c (U_UCTOMB): Define.
19613         * tests/unistr/test-u16-chr.c (U_UCTOMB): Likewise.
19614         * tests/unistr/test-u32-chr.c (U_UCTOMB): Likewise.
19615
19616         unistr/u*-chr: test multibyte sequences
19617         * tests/unistr/test-chr.h: Put characters above 0-127 in the test input.
19618
19619         unistr/u*-chr: prepare for multibyte tests
19620         * modules/unistr/u8-chr-tests: Depend on u32-to-u8.
19621         * modules/unistr/u16-chr-tests: Depend on u32-to-u16.
19622         * tests/unistr/test-chr.h: Build initial version as UCS-4 then convert.
19623         * tests/unistr/test-u8-chr.c (U32_TO_U): Define.
19624         * tests/unistr/test-u16-chr.c (U32_TO_U): Likewise.
19625         * tests/unistr/test-u32-chr.c (U32_TO_U): Likewise.
19626
19627 2010-07-18  Bruno Haible  <bruno@clisp.org>
19628
19629         unistr/u8-strchr: Optimize non-ASCII argument case.
19630         * lib/unistr/u8-strchr.c (u8_strchr): Compare the last byte first,
19631         because the first byte often matches anyway.
19632         Reported by Pádraig Brady <P@draigbrady.com>.
19633
19634 2010-07-15  Karl Berry  <karl@gnu.org>
19635
19636         * config/srclist.txt (fdl.texi): only one copy, from gnustandards.
19637
19638 2010-07-14  Paul R. Eggert  <eggert@cs.ucla.edu>
19639
19640         getcwd: on Solaris, work better if ancestors are inaccessible
19641         * lib/getcwd.c (__getcwd): If getcwd returns EINVAL for zero
19642         buffer and size, try again with a large buffer.  This works better
19643         on Solaris, since its getcwd succeeds even if the path to the root
19644         is inaccessible, and this is helpful in common cases such as .zfs
19645         hidden directories.  Problem reported by J Chapman Flack in
19646         http://lists.gnu.org/archive/html/bug-tar/2010-06/msg00000.html
19647         Use system getcwd if it's declared, not merely if it's partly
19648         working; use the partly-working test only to avoid needless effort
19649         if the system getcwd fails.
19650         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Omit
19651         comment that was already obsolete and is now even more obsolete.
19652         * modules/getcwd (Depends-on): Depend on strdup, since __getcwd
19653         now might call strdup.
19654
19655 2010-07-13  Paul R. Eggert  <eggert@cs.ucla.edu>
19656
19657         pthread: Add enough so that coreutils/src/sort.c compiles.
19658         * lib/pthread.in.h: Add self to author comment.  Conditionalize on
19659         _GL_PTHREAD_H, not PTHREAD_H_, for consistency with the rest of
19660         gnulib. Include <sched.h> and <time.h>, as per POSIX.
19661         Include <sys/types.h>, in case it defines pthread_t.
19662         (pthread_t, pthread_attr_t, pthread_barrier_t, pthread_barrierattr_t):
19663         (pthread_cond_t, pthread_condattr_t, pthread_key_t, pthread_mutex_t):
19664         (pthread_mutexattr_t, pthread_once_t, pthread_rwlock_t):
19665         (pthread_rwlockattr_t, pthread_spinlock_t):
19666         New typedefs, if HAVE_PTHREAD_T is not defined.
19667         (PTHREAD_COND_INITIALIZER, PTHREAD_MUTEX_INITIALIZER):
19668         (PTHREAD_ONCE_INIT, PTHREAD_RWLOCK_INITIALIZER):
19669         (PTHREAD_BARRIER_SERIAL_THREAD, PTHREAD_CANCEL_DEFERRED):
19670         (PTHREAD_CANCEL_ASYNCHRONOUS, PTHREAD_CANCEL_ENABLE):
19671         (PTHREAD_CANCEL_DISABLE, PTHREAD_CANCELED, PTHREAD_CREATE_JOINABLE):
19672         (PTHREAD_CREATE_DETACHED, PTHREAD_INHERIT_SCHED):
19673         (PTHREAD_EXPLICIT_SCHED, PTHREAD_MUTEX_DEFAULT, PTHREAD_MUTEX_NORMAL):
19674         (PTHREAD_MUTEX_ERRORCHECK, PTHREAD_MUTEX_RECURSIVE):
19675         (PTHREAD_MUTEX_STALLED, PTHREAD_MUTEX_ROBUST, PTHREAD_PRIO_NONE):
19676         (PTHREAD_PRIO_INHERIT, PTHREAD_PRIO_PROTECT, PTHREAD_PROCESS_PRIVATE):
19677         (PTHREAD_PROCESS_SHARED, PTHREAD_SCOPE_SYSTEM, PTHREAD_SCOPE_PROCESS):
19678         New macros.
19679         (pthread_cond_destroy, pthread_cond_init, pthread_cond_signal):
19680         (pthread_cond_wait, pthread_exit, pthread_mutex_destroy):
19681         (pthread_mutex_init, pthread_mutex_lock, pthread_mutex_unlock):
19682         (pthread_spin_init, pthread_spin_lock, pthread_spin_trylock);
19683         (pthread_spin_unlock): New dummy functions.
19684         (pthread_create): Return EAGAIN; don't set errno.
19685         * m4/pthread.m4 (gl_PTHREAD_CHECK): Check for pthread_t, and
19686         require AC_C_INLINE.
19687         * modules/pthread (Depends-on): Add sched, time.
19688         (pthread.h): Use AM_V_GEN.
19689
19690 2010-07-13  Bruno Haible  <bruno@clisp.org>
19691
19692         striconveh: Don't malloc memory if the result buffer is sufficient.
19693         * lib/striconveh.c (mem_cd_iconveh_internal): Use the provided result
19694         buffer if its size is sufficient.
19695         Reported by Ludovic Courtès <ludo@gnu.org>.
19696
19697 2010-07-13  Bruno Haible  <bruno@clisp.org>
19698
19699         strtod: Add safety check.
19700         * lib/strtod.c (ldexp): Abort if this dummy replacement gets called.
19701
19702 2010-07-12  Bruno Haible  <bruno@clisp.org>
19703
19704         Unify tests that set gl_cv_func_ldexpl_no_libm.
19705         * m4/ldexpl.m4 (gl_CHECK_LDEXPL_NO_LIBM): New macro, extracted from
19706         gl_FUNC_LDEXPL.
19707         (gl_FUNC_LDEXPL): Invoke it.
19708         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
19709
19710 2010-07-12  Bruno Haible  <bruno@clisp.org>
19711
19712         Unify tests that set gl_cv_func_ldexp_no_libm.
19713         * m4/ldexp.m4: New file, based on m4/mathfunc.m4.
19714         * m4/strtod.m4 (gl_PREREQ_STRTOD): Require gl_CHECK_LDEXP_NO_LIBM.
19715         * modules/ldexp (Files): Remove m4/mathfunc.m4. Add m4/ldexp.m4.
19716         (configure.ac): Simply invoke gl_FUNC_LDEXP.
19717         * modules/strtod (Files): Add m4/ldexp.m4.
19718
19719 2010-07-12  Bruno Haible  <bruno@clisp.org>
19720
19721         Unify tests that set gl_cv_func_frexpl_no_libm.
19722         * m4/frexpl.m4 (gl_CHECK_FREXPL_NO_LIBM): New macro, extracted from
19723         gl_FUNC_FREXPL_NO_LIBM.
19724         (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): Invoke it.
19725         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
19726
19727 2010-07-12  Bruno Haible  <bruno@clisp.org>
19728
19729         Unify tests that set gl_cv_func_frexp_no_libm.
19730         * m4/frexp.m4 (gl_CHECK_FREXP_NO_LIBM): New macro, extracted from
19731         gl_FUNC_FREXP_NO_LIBM.
19732         (gl_FUNC_FREXP, gl_FUNC_FREXP_NO_LIBM): Require it.
19733         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Likewise.
19734
19735 2010-07-12  Paul R. Eggert  <eggert@cs.ucla.edu>
19736
19737         memcoll: clarify sizes versus lengths, document better, and tweak perf
19738         * lib/memcoll.c (strcoll_loop, memcoll0):
19739         Improve quality of descriptive comments.  Name variables
19740         consistently as to whether they are lengths (which do not include
19741         terminating null) versus sizes (which do).
19742         * lib/xmemcoll.c (xmemcoll0): Likewise.
19743         * lib/memcoll.c (strcoll_loop): Tweak the way that the diff is
19744         returned when s1size == 0; this is easier to compile and saves
19745         about 17% of memcoll's code space on x86-64 with GCC 4.1.2.
19746
19747 2010-07-12  Bruno Haible  <bruno@clisp.org>
19748
19749         Tests for module '_Exit'.
19750         * modules/_Exit-tests: New file.
19751         * tests/test-_Exit.sh: New file.
19752         * tests/test-_Exit.c: New file.
19753
19754         New module '_Exit'.
19755         * lib/stdlib.in.h (__attribute__): New macro.
19756         (_Exit): New declaration.
19757         * lib/_Exit.c: New file.
19758         * m4/_Exit.m4: New file.
19759         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether _Exit is declared.
19760         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB__EXIT and HAVE__EXIT.
19761         * modules/stdlib (Makefile.am): Substitute GNULIB__EXIT and HAVE__EXIT.
19762         * modules/_Exit: New file.
19763         * tests/test-stdlib-c++.cc (_Exit): Check signature.
19764         * doc/posix-functions/_Exit_C99.texi: Mention the new module.
19765
19766 2010-07-12  Paul R. Eggert  <eggert@cs.ucla.edu>
19767
19768         strtod: make it more-accurate typically, and don't require libm
19769         * lib/strtod.c (_GL_ARG_NONNULL): Remove; no longer needed.
19770         Include limits.h.  Don't include string.h.
19771         (HAVE_LDEXP_IN_LIBC, HAVE_RAW_DECL_STRTOD): Define to 0 if not defined.
19772         (locale_isspace): New function, so that no casts are needed to
19773         check whether *s is a space.
19774         (ldexp): Provide an unused dummy if not available.
19775         (scale_radix_exp, parse_number, underlying_strtod): New functions.
19776         (strtod): Use them.  This implementation prefers to use the
19777         underlying strtod if available, falling back on our own code
19778         only to fix known bugs.  This is more likely to produce an
19779         accurate result.  Also, it avoids the use of libm functions.
19780         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't invoke _AC_LIBOBJ_STRTOD;
19781         no longer needed.  Invoke AC_LIBOBJ([strtod]); don't know why this
19782         was absent, but it caused a test failure with coreutils.
19783         (gl_PREREQ_STRTOD): Check wither ldexp can be used without linking
19784         with libm.
19785         * modules/strtod (Makefile.am, Link): libm is no longer needed.
19786         * modules/strtod-tests (Makefile.am): Likewise.
19787
19788 2010-07-11  Pádraig Brady  <P@draigBrady.com>
19789             Bruno Haible  <bruno@clisp.org>
19790
19791         unistr/u8-strchr: Optimize ASCII argument case.
19792         * lib/unistr/u8-strchr.c (u8_strchr): For ASCII arguments, use strchr.
19793
19794 2010-07-08  Paul Eggert  <eggert@cs.ucla.edu>
19795
19796         (x)memcoll: minor tweaks
19797         * lib/memcoll.c (strcoll_loop): Prefer the style where 'const'
19798         is after the type that it qualifies.
19799         (memcoll0): Likewise.
19800         * lib/memcoll.h (memcoll0): Likewise.
19801         * lib/xmemcoll.c (collate_error, xmemcoll0): Likewise.
19802         * lib/xmemcoll.h (xmemcoll0): Likewise.
19803         * lib/memcoll.c (memcoll0): Correct the comment.  This function
19804         differs from memcoll in that the NUL byte is part of the argument.
19805         Omit the abort-checks, as performance is a real issue here.  Plus,
19806         the checks were wrong anyway (an off-by-one error).  Omit local
19807         variable 'diff', as it's a bit clearer that way.
19808         * m4/memcoll.m4 (gl_MEMCOLL): Omit AC_FUNC_STRCOLL, as it's
19809         no longer needed.
19810
19811 2010-07-08  Chen Guo <chenguo4@yahoo.com>
19812
19813         (x)memcoll: speedup when input is known to be NUL delimited
19814         * lib/memcoll.c: Include stdlib.
19815         (memcoll0): New function.
19816         (strcoll_loop): New function, refactored for use in both memcoll
19817         and memcoll0.
19818         * lib/memcoll.h (memcoll0): Add prototype.
19819         * lib/xmemcoll.c (xmemcoll0): New function.
19820         (collate_error): New function, refactored for use in both xmemcoll
19821         and xmemcoll0.
19822         * lib/xmemcoll.h (xmemcoll0): Add prototype.
19823         * m4/memcoll.m4: add inline invocation.
19824
19825 2010-07-06  Pádraig Brady  <P@draigBrady.com>
19826
19827         * build-aux/bootstrap: Remove any local translations
19828         from the translation project synchronization directory,
19829         so that local only translations are not distributed.
19830
19831 2010-07-04  Bruno Haible  <bruno@clisp.org>
19832
19833         fsusage: Clarify which code applies to which platforms.
19834         * m4/fsusage.m4 (gl_FSUSAGE): Clarify which test succeeds on which
19835         platform.
19836         * lib/fsusage.c (get_fs_usage): Likewise.
19837
19838 2010-07-04  Bruno Haible  <bruno@clisp.org>
19839
19840         havelib: Fix bug when AC_LIB_FROMPACKAGE is used more than twice.
19841         * m4/lib-link.m4 (AC_LIB_FROMPACKAGE): Use m4_defn.
19842         Reported by Martin Lambers <marlam@marlam.de>.
19843
19844 2010-07-04  Jim Meyering  <meyering@redhat.com>
19845
19846         hash: once again explicitly disallow insertion of NULL
19847         * lib/hash.c (hash_insert0): Reinstate just-removed test:
19848         inserting a NULL pointer cannot work with these functions.
19849         Add a comment with details.
19850         This reverts part of the 2010-07-01 commit, 5bef1a35
19851         "hash: extend module to deal with non-pointer keys".
19852
19853 2010-07-01  Bruno Haible  <bruno@clisp.org>
19854
19855         stdbool: Update doc.
19856         * doc/posix-headers/stdbool.texi: Mention OpenBSD bug.
19857         Info from Christian Weisgerber <naddy@mips.inka.de>.
19858
19859 2010-07-01  Jim Meyering  <meyering@redhat.com>
19860
19861         hash: extend module to deal with non-pointer keys
19862         * lib/hash.c (hash_insert0): New interface, much like hash_insert
19863         but that allows insertion of non-pointer entries.
19864         Do not disallow an ENTRY value of NULL.
19865         (hash_insert): This is now just a thin wrapper.  Call hash_insert0.
19866         * lib/hash.h (hash_insert0): Declare.
19867
19868 2010-07-01  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
19869
19870         gettext: Use AC_GNU_SOURCE as a fallback for AC_USE_SYSTEM_EXTENSIONS.
19871         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): When AC_USE_SYSTEM_EXTENSIONS is
19872         not present (i.e. with autoconf 2.59 and when using gettextize, not
19873         gnulib), require AC_GNU_SOURCE instead.
19874
19875 2010-07-01  Ian Beckwith  <ianb@erislabs.net>
19876
19877         idpriv-drop: Fix tests.
19878         * tests/test-idpriv-drop.su.sh: Refer to the test-idpriv-drop program,
19879         not to the test-idpriv-droptemp program.
19880
19881 2010-06-29  Bruno Haible  <bruno@clisp.org>
19882
19883         string: Fix syntax error with g++ 2.96.
19884         * lib/string.in.h (__pure__): Remove definition.
19885         (_GL_ATTRIBUTE_PURE): New macro.
19886         (memchr, memmem, memrchr, rawmemchr, strchrnul, strnlen, strpbrk,
19887         strstr, strcasestr): Use it instead of __attribute__ ((__pure__)).
19888         Reported by Christian Weisgerber <naddy@mips.inka.de>.
19889
19890 2010-06-28  Ian Beckwith  <ianb@erislabs.net>
19891
19892         unitypes: Fix bug introduced on 2010-05-18.
19893         * modules/unitypes (Files): Really add m4/libunistring-base.m4.
19894
19895 2010-06-22  Eric Blake  <eblake@redhat.com>
19896
19897         memmem: slight optimization
19898         * lib/str-two-way.h (critical_factorization): Update comments.
19899         Reduce work during factorization phase.
19900         Reported by Carlos Bueno <carlos@bueno.org>.
19901
19902 2010-06-21  Bruno Haible  <bruno@clisp.org>
19903
19904         Fix HAVE_CALLOC_POSIX misnomer.
19905         * lib/stdlib.in.h (calloc): Use REPLACE_CALLOC instead of
19906         !HAVE_CALLOC_POSIX.
19907         * m4/calloc.m4 (gl_REPLACE_CALLOC): Set REPLACE_CALLOC instead of
19908         HAVE_CALLOC_POSIX.
19909         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_CALLOC
19910         instead of HAVE_CALLOC_POSIX.
19911         * modules/stdlib (Makefile.am): Substitute REPLACE_CALLOC instead of
19912         HAVE_CALLOC_POSIX.
19913
19914         Use modern idiom for calloc() replacement.
19915         * modules/calloc (configure.ac): Invoke gl_FUNC_CALLOC_GNU instead of
19916         AC_FUNC_CALLOC.
19917         * m4/calloc.m4 (gl_FUNC_CALLOC_GNU): Renamed from AC_FUNC_CALLOC.
19918         Require gl_STDLIB_H_DEFAULTS. Invoke gl_REPLACE_CALLOC.
19919         (gl_FUNC_CALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
19920         HAVE_CALLOC_POSIX. Invoke gl_REPLACE_CALLOC.
19921         (gl_REPLACE_CALLOC): New macro.
19922
19923 2010-06-21  Bruno Haible  <bruno@clisp.org>
19924
19925         Fix HAVE_REALLOC_POSIX misnomer.
19926         * lib/stdlib.in.h (realloc): Use REPLACE_REALLOC instead of
19927         !HAVE_REALLOC_POSIX.
19928         * m4/realloc.m4 (gl_REPLACE_REALLOC): Set REPLACE_REALLOC instead of
19929         HAVE_REALLOC_POSIX.
19930         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_REALLOC
19931         instead of HAVE_REALLOC_POSIX.
19932         * modules/stdlib (Makefile.am): Substitute REPLACE_REALLOC instead of
19933         HAVE_REALLOC_POSIX.
19934
19935         Use modern idiom for realloc() replacement.
19936         * modules/realloc (configure.ac): Invoke gl_FUNC_REALLOC_GNU instead of
19937         AC_FUNC_REALLOC.
19938         * m4/realloc.m4 (gl_FUNC_REALLOC_GNU): New macro, mostly copied from
19939         Autoconf's AC_FUNC_REALLOC.
19940         (gl_FUNC_REALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
19941         HAVE_REALLOC_POSIX. Invoke gl_REPLACE_REALLOC.
19942         (gl_REPLACE_REALLOC): New macro.
19943         Reported by Richard Lloyd <richard.lloyd@connectinternetsolutions.com>.
19944
19945 2010-06-21  Bruno Haible  <bruno@clisp.org>
19946
19947         Fix HAVE_MALLOC_POSIX misnomer.
19948         * lib/stdlib.in.h (malloc): Use REPLACE_MALLOC instead of
19949         !HAVE_MALLOC_POSIX.
19950         * m4/malloc.m4 (gl_REPLACE_MALLOC): Set REPLACE_MALLOC instead of
19951         HAVE_MALLOC_POSIX.
19952         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_MALLOC
19953         instead of HAVE_MALLOC_POSIX.
19954         * modules/stdlib (Makefile.am): Substitute REPLACE_MALLOC instead of
19955         HAVE_MALLOC_POSIX.
19956
19957         Use modern idiom for malloc() replacement.
19958         * modules/malloc (configure.ac): Invoke gl_FUNC_MALLOC_GNU instead of
19959         AC_FUNC_MALLOC.
19960         * m4/malloc.m4 (gl_FUNC_MALLOC_GNU): New macro, mostly copied from
19961         Autoconf's AC_FUNC_MALLOC.
19962         (gl_FUNC_MALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
19963         HAVE_MALLOC_POSIX. Invoke gl_REPLACE_MALLOC.
19964         (gl_REPLACE_MALLOC): New macro.
19965         Reported by Richard Lloyd <richard.lloyd@connectinternetsolutions.com>.
19966
19967 2010-06-20  Richard Lloyd  <richard.lloyd@connectinternetsolutions.com>
19968
19969         stdio.in.h: fix compilation failure when using HP-UX 11's C compiler
19970         * lib/stdio.in.h: Remove excess _GL_CXXALIAS_RPL macro argument.
19971         This macro takes 3 arguments, not 4.
19972
19973 2010-06-15  Giuseppe Scrivano  <gscrivano@gnu.org>
19974
19975         ipv6: fix detection under mingw
19976         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Include <ws2tcpip.h> for struct
19977         in6_addr.
19978
19979 2010-06-14  Ben Pfaff  <blp@cs.stanford.edu>
19980
19981         * m4/strtod.m4 (gl_FUNC_STRTOD): Factor out common code.  Assume
19982         that strtod() works when cross-compiling to a glibc version known
19983         to work.
19984
19985 2010-06-15  Bruno Haible  <bruno@clisp.org>
19986
19987         * m4/strtod.m4 (gl_FUNC_STRTOD): Stop using AC_FUNC_STRTOD.
19988
19989 2010-06-15  René Berber  <r.berber@computer.org>  (tiny change)
19990
19991         select: Correct timeout.
19992         * lib/select.c (rpl_select): Compute wait_timeout correctly.
19993
19994 2010-06-14  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
19995
19996         git-version-gen: init shell var to avoid env var influence
19997         * build-aux/git-version-gen (v): Init shell var to empty.
19998
19999 2010-06-14  Paul Eggert  <eggert@cs.ucla.edu>
20000
20001         priv-set: Don't assume that priv.h exists merely because getppriv does.
20002         See Jan Andersen's bug report about AIX 5L in
20003         http://lists.gnu.org/archive/html/bug-tar/2010-06/msg00019.html
20004         * m4/priv-set.m4 (gl_PRIV_SET): Check for priv.h.
20005         * lib/priv-set.c: Do nothing unless HAVE_PRIV_H.
20006         * lib/priv-set.h: Likewise.
20007         * tests/test-priv-set.c: Likewise.
20008
20009 2010-06-13  Bruno Haible  <bruno@clisp.org>
20010
20011         relocatable: Make it easier to test whether to install wrappers.
20012         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): New automake conditional
20013         RELOCATABLE_VIA_WRAPPER.
20014
20015 2010-06-13  Bruno Haible  <bruno@clisp.org>
20016
20017         gnulib-tool: Display specified modules and dependencies differently.
20018         * gnulib-tool (func_show_module_list): New function.
20019         (func_import, func_create_testdir): Invoke it.
20020         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
20021
20022 2010-06-13  Bruno Haible  <bruno@clisp.org>
20023
20024         gnulib-tool: Align code of func_import and func_create_testdir.
20025         * gnulib-tool (func_create_testdir): Rename variable saved_modules to
20026         specified_modules.
20027
20028 2010-06-12  Jim Meyering  <meyering@redhat.com>
20029
20030         test-inttostr: avoid spurious failure on Solaris 9
20031         * tests/test-inttostr.c (main): Skip the test when snprintf fails
20032         to accept "%ju".  Reported by Bruno Haible.
20033
20034 2010-06-11  Jim Meyering  <meyering@redhat.com>
20035
20036         test-sys_socket: mark variables as used more readably
20037         * tests/test-sys_socket.c (main): Mark otherwise unused variables
20038         as "used" explicitly via (void) statement casts.  This is more
20039         readable than using them in an artificial return expression.
20040         Suggestion from Bruno Haible.
20041
20042 2010-06-11  Bruno Haible  <bruno@clisp.org>
20043
20044         Avoid some more warnings from "gcc -Wwrite-strings".
20045         * tests/test-argp.c (test_optional): Change 5th and 6th argument type
20046         to 'const char *'.
20047         * tests/test-c-strstr.c (main): Add 'const' to variable declaration.
20048         * tests/test-c-strcasestr.c (main): Likewise.
20049         * tests/test-mbscasestr1.c (main): Likewise.
20050         * tests/test-mbscasestr2.c (main): Likewise.
20051         * tests/test-memmem.c (main): Likewise.
20052         * tests/test-strstr.c (main): Likewise.
20053         * tests/test-strcasestr.c (main): Likewise.
20054
20055 2010-06-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
20056
20057         init.sh: change framework_failure_ to fail with status 99, not 1
20058         * tests/init.sh (framework_failure_): Exit 99, not 1.  This informs
20059         automake's parallel-tests rule that this is an unexpected failure,
20060         even if the test is listed in XFAIL_TESTS.
20061
20062 2010-06-11  Jim Meyering  <meyering@redhat.com>
20063
20064         test-inttostr: avoid warnings about 4-6KB literal strings
20065         * tests/test-inttostr.c: Don't use <assert.h>.  Instead, ...
20066         Include "macros.h", for its definition of ASSERT.
20067         (CK): s/assert/ASSERT/
20068         * modules/inttostr-tests (Files): Add macros.h.
20069
20070         init.sh: don't use $ME_ or skip_ before they are defined
20071         * tests/init.sh: Hoist definitions of $ME_ and skip_ to precede
20072         their first uses.  Also hoist their companions: warn_, fail_,
20073         framework_failure_, $stderr_fileno.  Prompted by a patch from
20074         Stefano Lattarini.
20075
20076         test-sys_socket: avoid set-but-not-used warnings from gcc
20077         * tests/test-sys_socket.c (main): Use "i" and "x", in order to
20078         avoid warning about set-but-not-used variables.
20079
20080         test-xvasprintf: avoid 'const' discard warnings
20081         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Use
20082         "const" when assigning from literal strings.
20083         (test_xasprintf): Add "void" in function argument list to placate
20084         -Wstrict-prototypes and to be consistent with test_xvasprintf above.
20085
20086         tests: avoid compilation warnings in argmatch and exclude tests...
20087         in packages that define ARGMATCH_DIE_DECL, like coreutils.
20088         * tests/test-exclude.c [ARGMATCH_DIE_DECL]: Also declare the function.
20089         Since it always exits, declare with the "noreturn" attribute.
20090         * tests/test-argmatch.c: Likewise.
20091
20092         tests: avoid 'const' discard warnings in mbsstr tests
20093         * tests/test-mbsstr1.c (main): Add "const" to avoid trivial warning.
20094         * tests/test-mbsstr2.c (main): Likewise.
20095
20096         test-verify: avoid warning from gcc's -Wmissing-declarations
20097         * tests/test-verify.c (function): Declare to be static.
20098
20099         test-inttostr.c: include <string.h> for use of strcmp
20100         * tests/test-inttostr.c: Include <string.h> for strcmp declaration.
20101
20102         test-linkat: avoid failed assertion on "other" architectures
20103         * tests/test-linkat.c: Include <sys/stat.h>, for declarations of stat,
20104         lstat, mkdir.  Patch by John Rigby, to fix FTBFS on armel, powerpc,
20105         sparc: https://bugs.launchpad.net/bugs/591968
20106
20107 2010-06-11  Jim Meyering  <meyering@redhat.com>
20108
20109         printf.m4: avoid autoconf's "Expanded Before Required" warning
20110         * m4/printf.m4 (gl_SNPRINTF_RETVAL_C99): Define using AC_DEFUN_ONCE,
20111         rather than AC_DEFUN, to avoid the classic "Expanded Before Required"
20112         autoconf warning.
20113
20114 2010-06-10  Ben Pfaff  <blp@cs.stanford.edu>
20115
20116         Replacement header templates are now named with ".in", not "_".
20117         * doc/gnulib-intro.texi: Correct.
20118
20119 2010-06-10  Jim Meyering  <meyering@redhat.com>
20120
20121         inttostr-tests: depend on snprintf, not snprintf-posix
20122         * modules/inttostr-tests (Depends-on): Depend on snprintf, not
20123         snprintf-posix, to avoid this aclocal failure:
20124           missing file gnulib-tests/vasnprintf.c
20125           configure.ac:45: error: expected source file, required through \
20126           AC_LIBSOURCES, not found
20127
20128 2010-06-10  Jim Meyering  <meyering@redhat.com>
20129
20130         inttostr: add a new function, inttostr, and tests
20131         The namesake function was not available.  The existence of the
20132         template file, inttostr.c makes its addition nontrivial.
20133         * lib/anytostr.c: Rename from inttostr.c.
20134         (anytostr): Rename from inttostr.
20135         * lib/inttostr.c: New file.
20136         * modules/inttostr (Files): Add anytostr.c.
20137         (Makefile.am): Set lib_SOURCES instead of ...
20138         * m4/inttostr.m4: Remove uses of AC_LIBOBJ.
20139         * lib/imaxtostr.c: Update use.  s/inttostr/anytostr/
20140         * lib/offtostr.c: Likewise.
20141         * lib/uinttostr.c: Likewise.
20142         * lib/umaxtostr.c: Likewise.
20143         * modules/inttostr-tests: New file.
20144         * tests/test-inttostr.c: New file.  Test these functions.
20145
20146 2010-06-09  Ben Pfaff  <blp@cs.stanford.edu>
20147             Bruno Haible  <bruno@clisp.org>
20148
20149         Add "Extending Gnulib" chapter to manual.
20150         * doc/gnulib.texi (Writing Modules): Add cross-reference to new
20151         chapter.
20152         (Extending Gnulib): New chapter.
20153         * doc/gnulib-intro.texi (Openness): Add cross-reference to new
20154         chapter.
20155
20156 2010-06-09  Bruno Haible  <bruno@clisp.org>
20157
20158         Avoid relocwrapper link errors due to gnulib replacement functions.
20159         * lib/areadlink.c: Use the system's malloc, realloc functions.
20160         (areadlink): Set errno to ENOMEM explicitly.
20161         * modules/areadlink (Depends-on): Remove malloc-posix.
20162         Reported by Ben Pfaff <blp@cs.stanford.edu>.
20163
20164 2010-06-09  Bruno Haible  <bruno@clisp.org>
20165
20166         Avoid relocwrapper link errors due to gnulib replacement functions.
20167         * lib/canonicalize-lgpl.c: Use the system's malloc function.
20168         * lib/malloca.c: Likewise.
20169         * lib/relocatable.c: Likewise.
20170         * lib/progreloc.c: Use the system's malloc, sprintf functions.
20171         * lib/relocwrapper.c: Use the system's fprintf, malloc functions.
20172         * lib/setenv.c: Use the system's malloc, realloc functions.
20173         * lib/strerror.c: Use the system's sprintf function.
20174         Reported by Ben Pfaff <blp@cs.stanford.edu>.
20175
20176 2010-06-04  Bruno Haible  <bruno@clisp.org>
20177
20178         Prefer documented low-level autoconf macro names.
20179         * m4/lib-link.m4: Use m4_translit instead of translit.
20180         * m4/environ.m4: Likewise.
20181         * m4/mathfunc.m4: Likewise.
20182         * m4/onceonly.m4: Likewise.
20183         * m4/stdint.m4: Likewise.
20184         Suggested by Eric Blake.
20185
20186 2010-06-04  Martin Lambers  <marlam@marlam.de>
20187             Bruno Haible  <bruno@clisp.org>
20188
20189         havelib: Allow library names with '+' characters.
20190         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
20191         AC_LIB_FROMPACKAGE, AC_LIB_LINKFLAGS_BODY): Convert '+' in name to '_'.
20192
20193 2010-06-09  Bruno Haible  <bruno@clisp.org>
20194
20195         Module setenv does not depend on 'malloc-posix', 'realloc-posix'.
20196         * lib/setenv.c (__add_to_environ): Set errno to ENOMEM when malloc or
20197         realloc failed.
20198
20199 2010-06-08  Peter Simons  <simons@cryp.to>
20200
20201         maint.mk: make the news-check rule more configurable
20202         * top/maint.mk (news-check-lines-spec): New variable.
20203         (news-check): Use "sed -n 1,10p" in place of "head".
20204
20205 2010-06-07  Jim Meyering  <meyering@redhat.com>
20206
20207         do-release-commit-and-tag: fix typo in --help
20208         * build-aux/do-release-commit-and-tag (Usage): Fix typo in --help.
20209
20210         regex: avoid new dead-code warning with gcc-4.6.0
20211         * lib/regex_internal.c (re_string_reconstruct): #if-0-out a dead
20212         if-block containing a while-loop.  It's been unused for at least
20213         5 years.
20214
20215 2010-06-05  Bruno Haible  <bruno@clisp.org>
20216
20217         * doc/posix-functions/strcoll.texi: Mention Solaris limitation.
20218         Reported by River Tarnell <river.tarnell@wikimedia.de> via Eric Blake.
20219
20220 2010-06-04  Bruno Haible  <bruno@clisp.org>
20221
20222         Update to GNU gettext 0.18.1.
20223         * modules/gettext (configure.ac): Require gettext infrastructure from
20224         version 0.18.1.
20225
20226 2010-06-03  Bruno Haible  <bruno@clisp.org>
20227
20228         Don't use AC_LIBOBJ with file names in subdirectories.
20229         * m4/libunistring-base.m4 (gl_LIBUNISTRING_MODULE): Renamed from
20230         gl_LIBUNISTRING_LIBSOURCE. Take a module name as argument, not a file
20231         name. Define an automake conditional. Don't invoke AC_LIBOBJ.
20232         * m4/libunistring.m4 (gl_LIBUNISTRING): Update AC_BEFORE invocation.
20233         * modules/uni*/* (configure.ac): Use gl_LIBUNISTRING_MODULE instead of
20234         gl_LIBUNISTRING_LIBSOURCE.
20235         (Makefile.am): Augment lib_SOURCES here, conditionally.
20236         * NEWS: Drop requirement for Automake option 'subdir-objects'.
20237
20238 2010-06-03  Bruno Haible  <bruno@clisp.org>
20239
20240         Simplify gl_LIBUNISTRING_VERSION_CMP expansion.
20241         * m4/libunistring-base.m4 (gl_LIBUNISTRING_VERSION_CMP): Ensure
20242         expansion does not end with a newline.
20243         (gl_LIBUNISTRING_LIBSOURCE, gl_LIBUNISTRING_LIBHEADER): Avoid
20244         unnecessary newline.
20245
20246 2010-06-03  Bruno Haible  <bruno@clisp.org>
20247
20248         Reduce dependencies.
20249         * tests/test-quotearg.h: New file, extracted from
20250         tests/test-quotearg.c.
20251         * tests/test-quotearg-simple.c: New file, extracted from
20252         tests/test-quotearg.c.
20253         * tests/test-quotearg.c: Don't include <ctype.h>.
20254         (struct result_strings, struct result_groups, LQ, RQ, LQ_ENC, RQ_ENC,
20255         RQ_ESC, inputs, compare, use_quotearg_buffer, use_quotearg,
20256         use_quote_double_quotes, use_quotearg_colon): Moved to
20257         tests/test-quotearg.h.
20258         (results_g, flag_results, custom_quotes, custom_results): Moved
20259         to tests/test-quotearg-simple.c.
20260         (main): Moved the part that does not depend on gettext to
20261         tests/test-quotearg-simple.c. Return 77 if the test cannot be
20262         performed.
20263         * modules/quotearg-simple: New file.
20264         * modules/quotearg-simple-tests: New file.
20265         * modules/quotearg (Depends-on): Add quotearg-simple.
20266         * modules/quotearg-tests (Status): Mark as gettext-dependent-test.
20267         (Files): Add tests/test-quotearg.h.
20268         Reported by Paolo Bonzini.
20269
20270 2010-06-03  Bruno Haible  <bruno@clisp.org>
20271
20272         Reduce dependencies.
20273         * modules/acl (Depends-on): Add gettext-h. Remove gettext.
20274
20275 2010-06-03  Bruno Haible  <bruno@clisp.org>
20276
20277         time: Undefine more broken macros.
20278         * lib/time.in.h: Undefine broken localtime_r and gmtime_r macros only
20279         for pthread-win32. Undefine also asctime_r, ctime_r, rand_r, strtok_r.
20280         Reported by Eric Blake.
20281
20282 2010-06-03  Bruno Haible  <bruno@clisp.org>
20283
20284         Choose among AC_DEFUN_ONCE, AC_DEFUN in a way that aclocal understands.
20285         * m4/iconv.m4 (gl_iconv_AC_DEFUN): New macro.
20286         (AM_ICONV): Define it through gl_iconv_AC_DEFUN.
20287         * m4/libunistring.m4 (gl_libunistring_AC_DEFUN): New macro.
20288         (gl_LIBUNISTRING): Define it through gl_libunistring_AC_DEFUN.
20289         Reported by Ludovic Courtès <ludo@gnu.org>.
20290
20291 2010-06-02  Eric Blake  <eblake@redhat.com>
20292
20293         time: work with mingw + pthreads-win32 library
20294         * m4/time_h.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Set new variable
20295         if timespec is defined only in pthread.h.
20296         * modules/time (Makefile.am): Substitute it.
20297         * lib/time.in.h (!TIME_H_DEFINES_STRUCT_TIMESPEC): Include
20298         <pthread.h>, when needed.
20299         (GNULIB_TIME_R): Undefine broken localtime_r and gmtime_r macros
20300         from the library.
20301
20302 2010-05-31  Bruno Haible  <bruno@clisp.org>
20303
20304         Avoid expanding two macros in the wrong order.
20305         * m4/libunistring-base.m4 (gl_LIBUNISTRING_LIB_PREPARE): Require
20306         gl_LIBUNISTRING if it is defined.
20307         * m4/libunistring.m4 (gl_LIBUNISTRING): Define using AC_DEFUN_ONCE for
20308         autoconf >= 2.64.
20309         Reported by Ludovic Courtès <ludo@gnu.org>.
20310
20311 2010-05-27  Jim Meyering  <meyering@redhat.com>
20312
20313         maint.mk: also prohibit "#undef" of always-defined symbols
20314         * top/maint.mk (def_sym_regex): Handle #undef as well as #define.
20315         Allow more than one space before the symbol name.
20316         (sc_prohibit_always-defined_macros): Use grep's -E, now that
20317         the regexp uses alternation.
20318
20319 2010-05-26  Eric Blake  <eblake@redhat.com>
20320
20321         maint.mk: avoid echo -e
20322         * top/maint.mk (gzip_rsyncable, _ignore_case, _sc_say_and_exit):
20323         Convert all uses of echo -* to printf.
20324         Reported by Matthias Bolte.
20325
20326 2010-05-25  Bruno Haible  <bruno@clisp.org>
20327
20328         Update to GNU gettext 0.18, part 2.
20329         * build-aux/po/Makefile.in.in: Update to GNU gettext 0.18.
20330         Reported by Martin von Gagern <Martin.vGagern@gmx.net>.
20331
20332 2010-05-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
20333
20334         Add missing include in test-pwrite.c.
20335         * tests/test-pwrite.c: Include string.h, for strcmp.
20336
20337 2010-05-24  Bruno Haible  <bruno@clisp.org>
20338
20339         * NEWS: Mention requirement for Automake option 'subdir-objects'.
20340
20341 2010-05-24  Bruno Haible  <bruno@clisp.org>
20342
20343         Don't use conversion with transliteration in u{8,16,32}_strcoll.
20344         * lib/unistr/u-strcoll.h (FUNC): Use U_STRCONV_TO_ENCODING with
20345         iconveh_error argument.
20346         * lib/unistr/u8-strcoll.c: Define U_STRCONV_TO_ENCODING instead of
20347         U_STRCONV_TO_LOCALE.
20348         * lib/unistr/u16-strcoll.c: Likewise.
20349         * lib/unistr/u32-strcoll.c: Likewise.
20350         * modules/unistr/u8-strcoll (Depends-on): Add
20351         uniconv/u8-strconv-to-enc, localcharset. Remove
20352         uniconv/u8-strconv-to-locale.
20353         (configure.ac): Bump version number.
20354         * modules/unistr/u16-strcoll (Depends-on): Add
20355         uniconv/u16-strconv-to-enc, localcharset. Remove
20356         uniconv/u16-strconv-to-locale.
20357         (configure.ac): Bump version number.
20358         * modules/unistr/u32-strcoll (Depends-on): Add
20359         uniconv/u32-strconv-to-enc, localcharset. Remove
20360         uniconv/u32-strconv-to-locale.
20361         (configure.ac): Bump version number.
20362
20363 2010-05-24  Bruno Haible  <bruno@clisp.org>
20364
20365         Avoid a test failure on NetBSD 5.0.
20366         * tests/test-striconveh.c (main): On NetBSD, skip a test that triggers
20367         an iconv() bug.
20368
20369 2010-05-24  Bruno Haible  <bruno@clisp.org>
20370
20371         Adjust #include directive style.
20372         * modules/regex (Includes): Recommend to write <regex.h>.
20373
20374 2010-05-24  Bruno Haible  <bruno@clisp.org>
20375
20376         regex: Don't require alloca.
20377         * modules/regex (Depends-on): Remove alloca. Add alloca-opt.
20378         * lib/regex_internal.h (alloca): Ensure it's defined even if we call it
20379         only inside if (0).
20380
20381 2010-05-23  Jim Meyering  <meyering@redhat.com>
20382
20383         test-renameat.c: include <sys/stat.h>
20384         * tests/test-renameat.c: Include <sys/stat.h>; required for
20385         definition of S_IS* macros.
20386
20387 2010-05-23  Ben Pfaff  <blp@cs.stanford.edu>
20388
20389         Update maintainer documentation for 'relocatable-prog' module.
20390         * doc/relocatable-maint.texi: Update.
20391         Comments by Bruno Haible.
20392
20393 2010-05-23  Bruno Haible  <bruno@clisp.org>
20394
20395         git-merge-changelog: Enable --split-merged-entry by default.
20396         * lib/git-merge-changelog.c (main): Set split_merged_entry to true.
20397         (usage): Don't mention this option any more.
20398         Reported by Ralf Wildenhues.
20399
20400 2010-05-23  Jim Meyering  <meyering@redhat.com>
20401
20402         test-pwrite: do not leave behind a test file named "out"
20403         Revert commit d8fa18472a54c1cb2674c296b3d82443f234d5f7.
20404         The trivial-looking use of init.sh is really necessary.
20405         It ensures that the temporary file, "out", is created in
20406         a temporary directory, and removed upon termination.
20407         * tests/test-pwrite.sh: Re-add file.
20408         * modules/pwrite-tests: Reference it.
20409
20410 2010-05-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
20411
20412         Fix output redirection buglet in init.sh.
20413         * tests/init.sh: Fix redirection of stderr.
20414
20415 2010-05-20  Simon Josefsson  <simon@josefsson.org>
20416
20417         * modules/valgrind-tests (configure.ac): Invoke gl_VALGRIND_TESTS.
20418
20419 2010-05-17  Simon Josefsson  <simon@josefsson.org>
20420
20421         * modules/valgrind-tests: New file.
20422         * m4/valgrind-tests.m4: New file.
20423         * doc/valgrind-tests.texi: New file.
20424         * doc/gnulib.texi (Running self-tests under valgrind): New
20425         section.
20426
20427 2010-05-19  Bruno Haible  <bruno@clisp.org>
20428
20429         Clean up dead code in recent commit.
20430         * m4/libunistring-base.m4 (gl_LIBUNISTRING_VERSION_CMP): Include the
20431         body of gl_LIBUNISTRING_VERSION_CMP_ORIG as fallback.
20432         (gl_LIBUNISTRING_VERSION_CMP_ORIG): Remove macro.
20433         Suggested by Paolo Bonzini.
20434
20435 2010-05-19  Bruno Haible  <bruno@clisp.org>
20436
20437         Avoid valgrind error reports from libunistring.
20438         * lib/libunistring.valgrind: New file, based on lib/malloca.valgrind.
20439         * modules/libunistring (Files): Add it.
20440         * modules/libunistring-optional (Files): Likewise.
20441
20442 2010-05-18  Paolo Bonzini  <bonzini@gnu.org>
20443             Bruno Haible  <bruno@clisp.org>
20444
20445         New module 'libunistring-optional'.
20446         * modules/libunistring-optional: New file.
20447         * m4/libunistring-base.m4: New file.
20448         * m4/libunistring-optional.m4: New file.
20449         * lib/unicase.in.h: Renamed from lib/unicase.h.
20450         * lib/uniconv.in.h: Renamed from lib/uniconv.h.
20451         * lib/unictype.in.h: Renamed from lib/unictype.h.
20452         * lib/unilbrk.in.h: Renamed from lib/unilbrk.h.
20453         * lib/uniname.in.h: Renamed from lib/uniname.h.
20454         * lib/uninorm.in.h: Renamed from lib/uninorm.h.
20455         * lib/unistdio.in.h: Renamed from lib/unistdio.h.
20456         * lib/unistr.in.h: Renamed from lib/unistr.h.
20457         * lib/unitypes.in.h: Renamed from lib/unitypes.h.
20458         * lib/uniwbrk.in.h: Renamed from lib/uniwbrk.h.
20459         * lib/uniwidth.in.h: Renamed from lib/uniwidth.h.
20460         * m4/libunistring.m4 (gl_LIBUNISTRING_CORE): Renamed from
20461         gl_LIBUNISTRING. If the library was found, determine the installed
20462         version and set LIBUNISTRING_VERSION.
20463         (gl_LIBUNISTRING): New macro, as a wrapper arount it. Document that it
20464         sets LIBUNISTRING_VERSION. If the module libunistring-optional is used,
20465         handle a configuration option --with-included-libunistring.
20466         * modules/libunistring (Files): Add m4/absolute-header.m4.
20467         * modules/unicase/base (Files): Use unicase.in.h instead of unicase.h.
20468         Add m4/libunistring-base.m4.
20469         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
20470         (Makefile.am): Build unicase.h from unicase.in.h.
20471         * modules/uniconv/base (Files): Use uniconv.in.h instead of uniconv.h.
20472         Add m4/libunistring-base.m4.
20473         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
20474         (Makefile.am): Build uniconv.h from uniconv.in.h.
20475         * modules/unictype/base (Files): Use unictype.in.h instead of
20476         unictype.h. Add m4/libunistring-base.m4.
20477         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
20478         (Makefile.am): Build unictype.h from unictype.in.h.
20479         * modules/unilbrk/base (Files): Use unilbrk.in.h instead of unilbrk.h.
20480         Add m4/libunistring-base.m4.
20481         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
20482         (Makefile.am): Build unilbrk.h from unilbrk.in.h.
20483         * modules/uniname/base (Files): Use uniname.in.h instead of uniname.h.
20484         Add m4/libunistring-base.m4.
20485         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
20486         (Makefile.am): Build uniname.h from uniname.in.h.
20487         * modules/uninorm/base (Files): Use uninorm.in.h instead of uninorm.h.
20488         Add m4/libunistring-base.m4.
20489         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
20490         (Makefile.am): Build uninorm.h from uninorm.in.h.
20491         * modules/unistdio/base (Files): Use unistdio.in.h instead of
20492         unistdio.h. Add m4/libunistring-base.m4.
20493         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
20494         (Makefile.am): Build unistdio.h from unistdio.in.h.
20495         * modules/unistr/base (Files): Use unistr.in.h instead of unistr.h.
20496         Add m4/libunistring-base.m4.
20497         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
20498         (Makefile.am): Build unistr.h from unistr.in.h.
20499         * modules/unitypes (Files): Use unitypes.in.h instead of unitypes.h.
20500         Add m4/libunistring-base.m4.
20501         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
20502         (Makefile.am): Build unitypes.h from unitypes.in.h.
20503         * modules/uniwbrk/base (Files): Use uniwbrk.in.h instead of uniwbrk.h.
20504         Add m4/libunistring-base.m4.
20505         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
20506         (Makefile.am): Build uniwbrk.h from uniwbrk.in.h.
20507         * modules/uniwidth/base (Files): Use uniwidth.in.h instead of
20508         uniwidth.h. Add m4/libunistring-base.m4.
20509         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
20510         (Makefile.am): Build uniwidth.h from uniwidth.in.h.
20511         * modules/unicase/empty-prefix-context: Use gl_LIBUNISTRING_LIBSOURCE
20512         instead of augmenting lib_SOURCES.
20513         * modules/unicase/empty-suffix-context: Likewise.
20514         * modules/unicase/locale-language: Likewise.
20515         * modules/unicase/tolower: Likewise.
20516         * modules/unicase/totitle: Likewise.
20517         * modules/unicase/toupper: Likewise.
20518         * modules/unicase/u8-casecmp: Likewise.
20519         * modules/unicase/u8-casecoll: Likewise.
20520         * modules/unicase/u8-casefold: Likewise.
20521         * modules/unicase/u8-casexfrm: Likewise.
20522         * modules/unicase/u8-ct-casefold: Likewise.
20523         * modules/unicase/u8-ct-tolower: Likewise.
20524         * modules/unicase/u8-ct-totitle: Likewise.
20525         * modules/unicase/u8-ct-toupper: Likewise.
20526         * modules/unicase/u8-is-cased: Likewise.
20527         * modules/unicase/u8-is-casefolded: Likewise.
20528         * modules/unicase/u8-is-lowercase: Likewise.
20529         * modules/unicase/u8-is-titlecase: Likewise.
20530         * modules/unicase/u8-is-uppercase: Likewise.
20531         * modules/unicase/u8-prefix-context: Likewise.
20532         * modules/unicase/u8-suffix-context: Likewise.
20533         * modules/unicase/u8-tolower: Likewise.
20534         * modules/unicase/u8-totitle: Likewise.
20535         * modules/unicase/u8-toupper: Likewise.
20536         * modules/unicase/u16-casecmp: Likewise.
20537         * modules/unicase/u16-casecoll: Likewise.
20538         * modules/unicase/u16-casefold: Likewise.
20539         * modules/unicase/u16-casexfrm: Likewise.
20540         * modules/unicase/u16-ct-casefold: Likewise.
20541         * modules/unicase/u16-ct-tolower: Likewise.
20542         * modules/unicase/u16-ct-totitle: Likewise.
20543         * modules/unicase/u16-ct-toupper: Likewise.
20544         * modules/unicase/u16-is-cased: Likewise.
20545         * modules/unicase/u16-is-casefolded: Likewise.
20546         * modules/unicase/u16-is-lowercase: Likewise.
20547         * modules/unicase/u16-is-titlecase: Likewise.
20548         * modules/unicase/u16-is-uppercase: Likewise.
20549         * modules/unicase/u16-prefix-context: Likewise.
20550         * modules/unicase/u16-suffix-context: Likewise.
20551         * modules/unicase/u16-tolower: Likewise.
20552         * modules/unicase/u16-totitle: Likewise.
20553         * modules/unicase/u16-toupper: Likewise.
20554         * modules/unicase/u32-casecmp: Likewise.
20555         * modules/unicase/u32-casecoll: Likewise.
20556         * modules/unicase/u32-casefold: Likewise.
20557         * modules/unicase/u32-casexfrm: Likewise.
20558         * modules/unicase/u32-ct-casefold: Likewise.
20559         * modules/unicase/u32-ct-tolower: Likewise.
20560         * modules/unicase/u32-ct-totitle: Likewise.
20561         * modules/unicase/u32-ct-toupper: Likewise.
20562         * modules/unicase/u32-is-cased: Likewise.
20563         * modules/unicase/u32-is-casefolded: Likewise.
20564         * modules/unicase/u32-is-lowercase: Likewise.
20565         * modules/unicase/u32-is-titlecase: Likewise.
20566         * modules/unicase/u32-is-uppercase: Likewise.
20567         * modules/unicase/u32-prefix-context: Likewise.
20568         * modules/unicase/u32-suffix-context: Likewise.
20569         * modules/unicase/u32-tolower: Likewise.
20570         * modules/unicase/u32-totitle: Likewise.
20571         * modules/unicase/u32-toupper: Likewise.
20572         * modules/unicase/ulc-casecmp: Likewise.
20573         * modules/unicase/ulc-casecoll: Likewise.
20574         * modules/unicase/ulc-casexfrm: Likewise.
20575         * modules/uniconv/u8-conv-from-enc: Likewise.
20576         * modules/uniconv/u8-conv-to-enc: Likewise.
20577         * modules/uniconv/u8-strconv-from-enc: Likewise.
20578         * modules/uniconv/u8-strconv-from-locale: Likewise.
20579         * modules/uniconv/u8-strconv-to-enc: Likewise.
20580         * modules/uniconv/u8-strconv-to-locale: Likewise.
20581         * modules/uniconv/u16-conv-from-enc: Likewise.
20582         * modules/uniconv/u16-conv-to-enc: Likewise.
20583         * modules/uniconv/u16-strconv-from-enc: Likewise.
20584         * modules/uniconv/u16-strconv-from-locale: Likewise.
20585         * modules/uniconv/u16-strconv-to-enc: Likewise.
20586         * modules/uniconv/u16-strconv-to-locale: Likewise.
20587         * modules/uniconv/u32-conv-from-enc: Likewise.
20588         * modules/uniconv/u32-conv-to-enc: Likewise.
20589         * modules/uniconv/u32-strconv-from-enc: Likewise.
20590         * modules/uniconv/u32-strconv-from-locale: Likewise.
20591         * modules/uniconv/u32-strconv-to-enc: Likewise.
20592         * modules/uniconv/u32-strconv-to-locale: Likewise.
20593         * modules/unictype/bidicategory-byname: Likewise.
20594         * modules/unictype/bidicategory-name: Likewise.
20595         * modules/unictype/bidicategory-of: Likewise.
20596         * modules/unictype/bidicategory-test: Likewise.
20597         * modules/unictype/block-list: Likewise.
20598         * modules/unictype/block-test: Likewise.
20599         * modules/unictype/category-C: Likewise.
20600         * modules/unictype/category-Cc: Likewise.
20601         * modules/unictype/category-Cf: Likewise.
20602         * modules/unictype/category-Cn: Likewise.
20603         * modules/unictype/category-Co: Likewise.
20604         * modules/unictype/category-Cs: Likewise.
20605         * modules/unictype/category-L: Likewise.
20606         * modules/unictype/category-Ll: Likewise.
20607         * modules/unictype/category-Lm: Likewise.
20608         * modules/unictype/category-Lo: Likewise.
20609         * modules/unictype/category-Lt: Likewise.
20610         * modules/unictype/category-Lu: Likewise.
20611         * modules/unictype/category-M: Likewise.
20612         * modules/unictype/category-Mc: Likewise.
20613         * modules/unictype/category-Me: Likewise.
20614         * modules/unictype/category-Mn: Likewise.
20615         * modules/unictype/category-N: Likewise.
20616         * modules/unictype/category-Nd: Likewise.
20617         * modules/unictype/category-Nl: Likewise.
20618         * modules/unictype/category-No: Likewise.
20619         * modules/unictype/category-P: Likewise.
20620         * modules/unictype/category-Pc: Likewise.
20621         * modules/unictype/category-Pd: Likewise.
20622         * modules/unictype/category-Pe: Likewise.
20623         * modules/unictype/category-Pf: Likewise.
20624         * modules/unictype/category-Pi: Likewise.
20625         * modules/unictype/category-Po: Likewise.
20626         * modules/unictype/category-Ps: Likewise.
20627         * modules/unictype/category-S: Likewise.
20628         * modules/unictype/category-Sc: Likewise.
20629         * modules/unictype/category-Sk: Likewise.
20630         * modules/unictype/category-Sm: Likewise.
20631         * modules/unictype/category-So: Likewise.
20632         * modules/unictype/category-Z: Likewise.
20633         * modules/unictype/category-Zl: Likewise.
20634         * modules/unictype/category-Zp: Likewise.
20635         * modules/unictype/category-Zs: Likewise.
20636         * modules/unictype/category-and: Likewise.
20637         * modules/unictype/category-and-not: Likewise.
20638         * modules/unictype/category-byname: Likewise.
20639         * modules/unictype/category-name: Likewise.
20640         * modules/unictype/category-none: Likewise.
20641         * modules/unictype/category-of: Likewise.
20642         * modules/unictype/category-or: Likewise.
20643         * modules/unictype/category-test: Likewise.
20644         * modules/unictype/combining-class: Likewise.
20645         * modules/unictype/ctype-alnum: Likewise.
20646         * modules/unictype/ctype-alpha: Likewise.
20647         * modules/unictype/ctype-blank: Likewise.
20648         * modules/unictype/ctype-cntrl: Likewise.
20649         * modules/unictype/ctype-digit: Likewise.
20650         * modules/unictype/ctype-graph: Likewise.
20651         * modules/unictype/ctype-lower: Likewise.
20652         * modules/unictype/ctype-print: Likewise.
20653         * modules/unictype/ctype-punct: Likewise.
20654         * modules/unictype/ctype-space: Likewise.
20655         * modules/unictype/ctype-upper: Likewise.
20656         * modules/unictype/ctype-xdigit: Likewise.
20657         * modules/unictype/decimal-digit: Likewise.
20658         * modules/unictype/digit: Likewise.
20659         * modules/unictype/mirror: Likewise.
20660         * modules/unictype/numeric: Likewise.
20661         * modules/unictype/property-alphabetic: Likewise.
20662         * modules/unictype/property-ascii-hex-digit: Likewise.
20663         * modules/unictype/property-bidi-arabic-digit: Likewise.
20664         * modules/unictype/property-bidi-arabic-right-to-left: Likewise.
20665         * modules/unictype/property-bidi-block-separator: Likewise.
20666         * modules/unictype/property-bidi-boundary-neutral: Likewise.
20667         * modules/unictype/property-bidi-common-separator: Likewise.
20668         * modules/unictype/property-bidi-control: Likewise.
20669         * modules/unictype/property-bidi-embedding-or-override: Likewise.
20670         * modules/unictype/property-bidi-eur-num-separator: Likewise.
20671         * modules/unictype/property-bidi-eur-num-terminator: Likewise.
20672         * modules/unictype/property-bidi-european-digit: Likewise.
20673         * modules/unictype/property-bidi-hebrew-right-to-left: Likewise.
20674         * modules/unictype/property-bidi-left-to-right: Likewise.
20675         * modules/unictype/property-bidi-non-spacing-mark: Likewise.
20676         * modules/unictype/property-bidi-other-neutral: Likewise.
20677         * modules/unictype/property-bidi-pdf: Likewise.
20678         * modules/unictype/property-bidi-segment-separator: Likewise.
20679         * modules/unictype/property-bidi-whitespace: Likewise.
20680         * modules/unictype/property-byname: Likewise.
20681         * modules/unictype/property-combining: Likewise.
20682         * modules/unictype/property-composite: Likewise.
20683         * modules/unictype/property-currency-symbol: Likewise.
20684         * modules/unictype/property-dash: Likewise.
20685         * modules/unictype/property-decimal-digit: Likewise.
20686         * modules/unictype/property-default-ignorable-code-point: Likewise.
20687         * modules/unictype/property-deprecated: Likewise.
20688         * modules/unictype/property-diacritic: Likewise.
20689         * modules/unictype/property-extender: Likewise.
20690         * modules/unictype/property-format-control: Likewise.
20691         * modules/unictype/property-grapheme-base: Likewise.
20692         * modules/unictype/property-grapheme-extend: Likewise.
20693         * modules/unictype/property-grapheme-link: Likewise.
20694         * modules/unictype/property-hex-digit: Likewise.
20695         * modules/unictype/property-hyphen: Likewise.
20696         * modules/unictype/property-id-continue: Likewise.
20697         * modules/unictype/property-id-start: Likewise.
20698         * modules/unictype/property-ideographic: Likewise.
20699         * modules/unictype/property-ids-binary-operator: Likewise.
20700         * modules/unictype/property-ids-trinary-operator: Likewise.
20701         * modules/unictype/property-ignorable-control: Likewise.
20702         * modules/unictype/property-iso-control: Likewise.
20703         * modules/unictype/property-join-control: Likewise.
20704         * modules/unictype/property-left-of-pair: Likewise.
20705         * modules/unictype/property-line-separator: Likewise.
20706         * modules/unictype/property-logical-order-exception: Likewise.
20707         * modules/unictype/property-lowercase: Likewise.
20708         * modules/unictype/property-math: Likewise.
20709         * modules/unictype/property-non-break: Likewise.
20710         * modules/unictype/property-not-a-character: Likewise.
20711         * modules/unictype/property-numeric: Likewise.
20712         * modules/unictype/property-other-alphabetic: Likewise.
20713         * modules/unictype/property-other-default-ignorable-code-point: Likewise.
20714         * modules/unictype/property-other-grapheme-extend: Likewise.
20715         * modules/unictype/property-other-id-continue: Likewise.
20716         * modules/unictype/property-other-id-start: Likewise.
20717         * modules/unictype/property-other-lowercase: Likewise.
20718         * modules/unictype/property-other-math: Likewise.
20719         * modules/unictype/property-other-uppercase: Likewise.
20720         * modules/unictype/property-paired-punctuation: Likewise.
20721         * modules/unictype/property-paragraph-separator: Likewise.
20722         * modules/unictype/property-pattern-syntax: Likewise.
20723         * modules/unictype/property-pattern-white-space: Likewise.
20724         * modules/unictype/property-private-use: Likewise.
20725         * modules/unictype/property-punctuation: Likewise.
20726         * modules/unictype/property-quotation-mark: Likewise.
20727         * modules/unictype/property-radical: Likewise.
20728         * modules/unictype/property-sentence-terminal: Likewise.
20729         * modules/unictype/property-soft-dotted: Likewise.
20730         * modules/unictype/property-space: Likewise.
20731         * modules/unictype/property-terminal-punctuation: Likewise.
20732         * modules/unictype/property-test: Likewise.
20733         * modules/unictype/property-titlecase: Likewise.
20734         * modules/unictype/property-unassigned-code-value: Likewise.
20735         * modules/unictype/property-unified-ideograph: Likewise.
20736         * modules/unictype/property-uppercase: Likewise.
20737         * modules/unictype/property-variation-selector: Likewise.
20738         * modules/unictype/property-white-space: Likewise.
20739         * modules/unictype/property-xid-continue: Likewise.
20740         * modules/unictype/property-xid-start: Likewise.
20741         * modules/unictype/property-zero-width: Likewise.
20742         * modules/unictype/scripts: Likewise.
20743         * modules/unictype/syntax-c-ident: Likewise.
20744         * modules/unictype/syntax-c-whitespace: Likewise.
20745         * modules/unictype/syntax-java-ident: Likewise.
20746         * modules/unictype/syntax-java-whitespace: Likewise.
20747         * modules/unilbrk/u8-possible-linebreaks: Likewise.
20748         * modules/unilbrk/u8-width-linebreaks: Likewise.
20749         * modules/unilbrk/u16-possible-linebreaks: Likewise.
20750         * modules/unilbrk/u16-width-linebreaks: Likewise.
20751         * modules/unilbrk/u32-possible-linebreaks: Likewise.
20752         * modules/unilbrk/u32-width-linebreaks: Likewise.
20753         * modules/unilbrk/ulc-possible-linebreaks: Likewise.
20754         * modules/unilbrk/ulc-width-linebreaks: Likewise.
20755         * modules/uniname/uniname: Likewise.
20756         * modules/uninorm/canonical-decomposition: Likewise.
20757         * modules/uninorm/composition: Likewise.
20758         * modules/uninorm/decomposing-form: Likewise.
20759         * modules/uninorm/decomposition: Likewise.
20760         * modules/uninorm/filter: Likewise.
20761         * modules/uninorm/nfc: Likewise.
20762         * modules/uninorm/nfd: Likewise.
20763         * modules/uninorm/nfkc: Likewise.
20764         * modules/uninorm/nfkd: Likewise.
20765         * modules/uninorm/u8-normalize: Likewise.
20766         * modules/uninorm/u8-normcmp: Likewise.
20767         * modules/uninorm/u8-normcoll: Likewise.
20768         * modules/uninorm/u8-normxfrm: Likewise.
20769         * modules/uninorm/u16-normalize: Likewise.
20770         * modules/uninorm/u16-normcmp: Likewise.
20771         * modules/uninorm/u16-normcoll: Likewise.
20772         * modules/uninorm/u16-normxfrm: Likewise.
20773         * modules/uninorm/u32-normalize: Likewise.
20774         * modules/uninorm/u32-normcmp: Likewise.
20775         * modules/uninorm/u32-normcoll: Likewise.
20776         * modules/uninorm/u32-normxfrm: Likewise.
20777         * modules/unistdio/u8-asnprintf: Likewise.
20778         * modules/unistdio/u8-asprintf: Likewise.
20779         * modules/unistdio/u8-snprintf: Likewise.
20780         * modules/unistdio/u8-sprintf: Likewise.
20781         * modules/unistdio/u8-u8-asnprintf: Likewise.
20782         * modules/unistdio/u8-u8-asprintf: Likewise.
20783         * modules/unistdio/u8-u8-snprintf: Likewise.
20784         * modules/unistdio/u8-u8-sprintf: Likewise.
20785         * modules/unistdio/u8-u8-vasnprintf: Likewise.
20786         * modules/unistdio/u8-u8-vasprintf: Likewise.
20787         * modules/unistdio/u8-u8-vsnprintf: Likewise.
20788         * modules/unistdio/u8-u8-vsprintf: Likewise.
20789         * modules/unistdio/u8-vasnprintf: Likewise.
20790         * modules/unistdio/u8-vasprintf: Likewise.
20791         * modules/unistdio/u8-vsnprintf: Likewise.
20792         * modules/unistdio/u8-vsprintf: Likewise.
20793         * modules/unistdio/u16-asnprintf: Likewise.
20794         * modules/unistdio/u16-asprintf: Likewise.
20795         * modules/unistdio/u16-snprintf: Likewise.
20796         * modules/unistdio/u16-sprintf: Likewise.
20797         * modules/unistdio/u16-u16-asnprintf: Likewise.
20798         * modules/unistdio/u16-u16-asprintf: Likewise.
20799         * modules/unistdio/u16-u16-snprintf: Likewise.
20800         * modules/unistdio/u16-u16-sprintf: Likewise.
20801         * modules/unistdio/u16-u16-vasnprintf: Likewise.
20802         * modules/unistdio/u16-u16-vasprintf: Likewise.
20803         * modules/unistdio/u16-u16-vsnprintf: Likewise.
20804         * modules/unistdio/u16-u16-vsprintf: Likewise.
20805         * modules/unistdio/u16-vasnprintf: Likewise.
20806         * modules/unistdio/u16-vasprintf: Likewise.
20807         * modules/unistdio/u16-vsnprintf: Likewise.
20808         * modules/unistdio/u16-vsprintf: Likewise.
20809         * modules/unistdio/u32-asnprintf: Likewise.
20810         * modules/unistdio/u32-asprintf: Likewise.
20811         * modules/unistdio/u32-snprintf: Likewise.
20812         * modules/unistdio/u32-sprintf: Likewise.
20813         * modules/unistdio/u32-u32-asnprintf: Likewise.
20814         * modules/unistdio/u32-u32-asprintf: Likewise.
20815         * modules/unistdio/u32-u32-snprintf: Likewise.
20816         * modules/unistdio/u32-u32-sprintf: Likewise.
20817         * modules/unistdio/u32-u32-vasnprintf: Likewise.
20818         * modules/unistdio/u32-u32-vasprintf: Likewise.
20819         * modules/unistdio/u32-u32-vsnprintf: Likewise.
20820         * modules/unistdio/u32-u32-vsprintf: Likewise.
20821         * modules/unistdio/u32-vasnprintf: Likewise.
20822         * modules/unistdio/u32-vasprintf: Likewise.
20823         * modules/unistdio/u32-vsnprintf: Likewise.
20824         * modules/unistdio/u32-vsprintf: Likewise.
20825         * modules/unistdio/ulc-asnprintf: Likewise.
20826         * modules/unistdio/ulc-asprintf: Likewise.
20827         * modules/unistdio/ulc-fprintf: Likewise.
20828         * modules/unistdio/ulc-snprintf: Likewise.
20829         * modules/unistdio/ulc-sprintf: Likewise.
20830         * modules/unistdio/ulc-vasnprintf: Likewise.
20831         * modules/unistdio/ulc-vasprintf: Likewise.
20832         * modules/unistdio/ulc-vfprintf: Likewise.
20833         * modules/unistdio/ulc-vsnprintf: Likewise.
20834         * modules/unistdio/ulc-vsprintf: Likewise.
20835         * modules/unistr/u8-check: Likewise.
20836         * modules/unistr/u8-chr: Likewise.
20837         * modules/unistr/u8-cmp: Likewise.
20838         * modules/unistr/u8-cmp2: Likewise.
20839         * modules/unistr/u8-cpy: Likewise.
20840         * modules/unistr/u8-cpy-alloc: Likewise.
20841         * modules/unistr/u8-endswith: Likewise.
20842         * modules/unistr/u8-mblen: Likewise.
20843         * modules/unistr/u8-mbsnlen: Likewise.
20844         * modules/unistr/u8-mbtouc: Likewise.
20845         * modules/unistr/u8-mbtouc-unsafe: Likewise.
20846         * modules/unistr/u8-mbtoucr: Likewise.
20847         * modules/unistr/u8-move: Likewise.
20848         * modules/unistr/u8-next: Likewise.
20849         * modules/unistr/u8-prev: Likewise.
20850         * modules/unistr/u8-set: Likewise.
20851         * modules/unistr/u8-startswith: Likewise.
20852         * modules/unistr/u8-stpcpy: Likewise.
20853         * modules/unistr/u8-stpncpy: Likewise.
20854         * modules/unistr/u8-strcat: Likewise.
20855         * modules/unistr/u8-strchr: Likewise.
20856         * modules/unistr/u8-strcmp: Likewise.
20857         * modules/unistr/u8-strcoll: Likewise.
20858         * modules/unistr/u8-strcpy: Likewise.
20859         * modules/unistr/u8-strcspn: Likewise.
20860         * modules/unistr/u8-strdup: Likewise.
20861         * modules/unistr/u8-strlen: Likewise.
20862         * modules/unistr/u8-strmblen: Likewise.
20863         * modules/unistr/u8-strmbtouc: Likewise.
20864         * modules/unistr/u8-strncat: Likewise.
20865         * modules/unistr/u8-strncmp: Likewise.
20866         * modules/unistr/u8-strncpy: Likewise.
20867         * modules/unistr/u8-strnlen: Likewise.
20868         * modules/unistr/u8-strpbrk: Likewise.
20869         * modules/unistr/u8-strrchr: Likewise.
20870         * modules/unistr/u8-strspn: Likewise.
20871         * modules/unistr/u8-strstr: Likewise.
20872         * modules/unistr/u8-strtok: Likewise.
20873         * modules/unistr/u8-to-u16: Likewise.
20874         * modules/unistr/u8-to-u32: Likewise.
20875         * modules/unistr/u8-uctomb: Likewise.
20876         * modules/unistr/u16-check: Likewise.
20877         * modules/unistr/u16-chr: Likewise.
20878         * modules/unistr/u16-cmp: Likewise.
20879         * modules/unistr/u16-cmp2: Likewise.
20880         * modules/unistr/u16-cpy: Likewise.
20881         * modules/unistr/u16-cpy-alloc: Likewise.
20882         * modules/unistr/u16-endswith: Likewise.
20883         * modules/unistr/u16-mblen: Likewise.
20884         * modules/unistr/u16-mbsnlen: Likewise.
20885         * modules/unistr/u16-mbtouc: Likewise.
20886         * modules/unistr/u16-mbtouc-unsafe: Likewise.
20887         * modules/unistr/u16-mbtoucr: Likewise.
20888         * modules/unistr/u16-move: Likewise.
20889         * modules/unistr/u16-next: Likewise.
20890         * modules/unistr/u16-prev: Likewise.
20891         * modules/unistr/u16-set: Likewise.
20892         * modules/unistr/u16-startswith: Likewise.
20893         * modules/unistr/u16-stpcpy: Likewise.
20894         * modules/unistr/u16-stpncpy: Likewise.
20895         * modules/unistr/u16-strcat: Likewise.
20896         * modules/unistr/u16-strchr: Likewise.
20897         * modules/unistr/u16-strcmp: Likewise.
20898         * modules/unistr/u16-strcoll: Likewise.
20899         * modules/unistr/u16-strcpy: Likewise.
20900         * modules/unistr/u16-strcspn: Likewise.
20901         * modules/unistr/u16-strdup: Likewise.
20902         * modules/unistr/u16-strlen: Likewise.
20903         * modules/unistr/u16-strmblen: Likewise.
20904         * modules/unistr/u16-strmbtouc: Likewise.
20905         * modules/unistr/u16-strncat: Likewise.
20906         * modules/unistr/u16-strncmp: Likewise.
20907         * modules/unistr/u16-strncpy: Likewise.
20908         * modules/unistr/u16-strnlen: Likewise.
20909         * modules/unistr/u16-strpbrk: Likewise.
20910         * modules/unistr/u16-strrchr: Likewise.
20911         * modules/unistr/u16-strspn: Likewise.
20912         * modules/unistr/u16-strstr: Likewise.
20913         * modules/unistr/u16-strtok: Likewise.
20914         * modules/unistr/u16-to-u32: Likewise.
20915         * modules/unistr/u16-to-u8: Likewise.
20916         * modules/unistr/u16-uctomb: Likewise.
20917         * modules/unistr/u32-check: Likewise.
20918         * modules/unistr/u32-chr: Likewise.
20919         * modules/unistr/u32-cmp: Likewise.
20920         * modules/unistr/u32-cmp2: Likewise.
20921         * modules/unistr/u32-cpy: Likewise.
20922         * modules/unistr/u32-cpy-alloc: Likewise.
20923         * modules/unistr/u32-endswith: Likewise.
20924         * modules/unistr/u32-mblen: Likewise.
20925         * modules/unistr/u32-mbsnlen: Likewise.
20926         * modules/unistr/u32-mbtouc: Likewise.
20927         * modules/unistr/u32-mbtouc-unsafe: Likewise.
20928         * modules/unistr/u32-mbtoucr: Likewise.
20929         * modules/unistr/u32-move: Likewise.
20930         * modules/unistr/u32-next: Likewise.
20931         * modules/unistr/u32-prev: Likewise.
20932         * modules/unistr/u32-set: Likewise.
20933         * modules/unistr/u32-startswith: Likewise.
20934         * modules/unistr/u32-stpcpy: Likewise.
20935         * modules/unistr/u32-stpncpy: Likewise.
20936         * modules/unistr/u32-strcat: Likewise.
20937         * modules/unistr/u32-strchr: Likewise.
20938         * modules/unistr/u32-strcmp: Likewise.
20939         * modules/unistr/u32-strcoll: Likewise.
20940         * modules/unistr/u32-strcpy: Likewise.
20941         * modules/unistr/u32-strcspn: Likewise.
20942         * modules/unistr/u32-strdup: Likewise.
20943         * modules/unistr/u32-strlen: Likewise.
20944         * modules/unistr/u32-strmblen: Likewise.
20945         * modules/unistr/u32-strmbtouc: Likewise.
20946         * modules/unistr/u32-strncat: Likewise.
20947         * modules/unistr/u32-strncmp: Likewise.
20948         * modules/unistr/u32-strncpy: Likewise.
20949         * modules/unistr/u32-strnlen: Likewise.
20950         * modules/unistr/u32-strpbrk: Likewise.
20951         * modules/unistr/u32-strrchr: Likewise.
20952         * modules/unistr/u32-strspn: Likewise.
20953         * modules/unistr/u32-strstr: Likewise.
20954         * modules/unistr/u32-strtok: Likewise.
20955         * modules/unistr/u32-to-u16: Likewise.
20956         * modules/unistr/u32-to-u8: Likewise.
20957         * modules/unistr/u32-uctomb: Likewise.
20958         * modules/uniwbrk/u8-wordbreaks: Likewise.
20959         * modules/uniwbrk/u16-wordbreaks: Likewise.
20960         * modules/uniwbrk/u32-wordbreaks: Likewise.
20961         * modules/uniwbrk/ulc-wordbreaks: Likewise.
20962         * modules/uniwbrk/wordbreak-property: Likewise.
20963         * modules/uniwidth/u8-strwidth: Likewise.
20964         * modules/uniwidth/u8-width: Likewise.
20965         * modules/uniwidth/u16-strwidth: Likewise.
20966         * modules/uniwidth/u16-width: Likewise.
20967         * modules/uniwidth/u32-strwidth: Likewise.
20968         * modules/uniwidth/u32-width: Likewise.
20969         * modules/uniwidth/width: Likewise.
20970         * modules/unicase/cased-tests (Makefile.am): Link all test programs
20971         with $(LIBUNISTRING).
20972         * modules/unicase/ignorable-tests: Likewise.
20973         * modules/unicase/locale-language-tests: Likewise.
20974         * modules/unicase/tolower-tests: Likewise.
20975         * modules/unicase/totitle-tests: Likewise.
20976         * modules/unicase/toupper-tests: Likewise.
20977         * modules/unicase/u8-casecmp-tests: Likewise.
20978         * modules/unicase/u8-casecoll-tests: Likewise.
20979         * modules/unicase/u8-casefold-tests: Likewise.
20980         * modules/unicase/u8-is-cased-tests: Likewise.
20981         * modules/unicase/u8-is-casefolded-tests: Likewise.
20982         * modules/unicase/u8-is-lowercase-tests: Likewise.
20983         * modules/unicase/u8-is-titlecase-tests: Likewise.
20984         * modules/unicase/u8-is-uppercase-tests: Likewise.
20985         * modules/unicase/u8-tolower-tests: Likewise.
20986         * modules/unicase/u8-totitle-tests: Likewise.
20987         * modules/unicase/u8-toupper-tests: Likewise.
20988         * modules/unicase/u16-casecmp-tests: Likewise.
20989         * modules/unicase/u16-casecoll-tests: Likewise.
20990         * modules/unicase/u16-casefold-tests: Likewise.
20991         * modules/unicase/u16-is-cased-tests: Likewise.
20992         * modules/unicase/u16-is-casefolded-tests: Likewise.
20993         * modules/unicase/u16-is-lowercase-tests: Likewise.
20994         * modules/unicase/u16-is-titlecase-tests: Likewise.
20995         * modules/unicase/u16-is-uppercase-tests: Likewise.
20996         * modules/unicase/u16-tolower-tests: Likewise.
20997         * modules/unicase/u16-totitle-tests: Likewise.
20998         * modules/unicase/u16-toupper-tests: Likewise.
20999         * modules/unicase/u32-casecmp-tests: Likewise.
21000         * modules/unicase/u32-casecoll-tests: Likewise.
21001         * modules/unicase/u32-casefold-tests: Likewise.
21002         * modules/unicase/u32-is-cased-tests: Likewise.
21003         * modules/unicase/u32-is-casefolded-tests: Likewise.
21004         * modules/unicase/u32-is-lowercase-tests: Likewise.
21005         * modules/unicase/u32-is-titlecase-tests: Likewise.
21006         * modules/unicase/u32-is-uppercase-tests: Likewise.
21007         * modules/unicase/u32-tolower-tests: Likewise.
21008         * modules/unicase/u32-totitle-tests: Likewise.
21009         * modules/unicase/u32-toupper-tests: Likewise.
21010         * modules/unicase/ulc-casecmp-tests: Likewise.
21011         * modules/unicase/ulc-casecoll-tests: Likewise.
21012         * modules/uniconv/u8-conv-from-enc-tests: Likewise.
21013         * modules/uniconv/u8-conv-to-enc-tests: Likewise.
21014         * modules/uniconv/u8-strconv-from-enc-tests: Likewise.
21015         * modules/uniconv/u8-strconv-to-enc-tests: Likewise.
21016         * modules/uniconv/u16-conv-from-enc-tests: Likewise.
21017         * modules/uniconv/u16-conv-to-enc-tests: Likewise.
21018         * modules/uniconv/u16-strconv-from-enc-tests: Likewise.
21019         * modules/uniconv/u16-strconv-to-enc-tests: Likewise.
21020         * modules/uniconv/u32-conv-from-enc-tests: Likewise.
21021         * modules/uniconv/u32-conv-to-enc-tests: Likewise.
21022         * modules/uniconv/u32-strconv-from-enc-tests: Likewise.
21023         * modules/uniconv/u32-strconv-to-enc-tests: Likewise.
21024         * modules/unictype/bidicategory-byname-tests: Likewise.
21025         * modules/unictype/bidicategory-name-tests: Likewise.
21026         * modules/unictype/bidicategory-of-tests: Likewise.
21027         * modules/unictype/bidicategory-test-tests: Likewise.
21028         * modules/unictype/block-list-tests: Likewise.
21029         * modules/unictype/block-of-tests: Likewise.
21030         * modules/unictype/block-test-tests: Likewise.
21031         * modules/unictype/category-C-tests: Likewise.
21032         * modules/unictype/category-Cc-tests: Likewise.
21033         * modules/unictype/category-Cf-tests: Likewise.
21034         * modules/unictype/category-Cn-tests: Likewise.
21035         * modules/unictype/category-Co-tests: Likewise.
21036         * modules/unictype/category-Cs-tests: Likewise.
21037         * modules/unictype/category-L-tests: Likewise.
21038         * modules/unictype/category-Ll-tests: Likewise.
21039         * modules/unictype/category-Lm-tests: Likewise.
21040         * modules/unictype/category-Lo-tests: Likewise.
21041         * modules/unictype/category-Lt-tests: Likewise.
21042         * modules/unictype/category-Lu-tests: Likewise.
21043         * modules/unictype/category-M-tests: Likewise.
21044         * modules/unictype/category-Mc-tests: Likewise.
21045         * modules/unictype/category-Me-tests: Likewise.
21046         * modules/unictype/category-Mn-tests: Likewise.
21047         * modules/unictype/category-N-tests: Likewise.
21048         * modules/unictype/category-Nd-tests: Likewise.
21049         * modules/unictype/category-Nl-tests: Likewise.
21050         * modules/unictype/category-No-tests: Likewise.
21051         * modules/unictype/category-P-tests: Likewise.
21052         * modules/unictype/category-Pc-tests: Likewise.
21053         * modules/unictype/category-Pd-tests: Likewise.
21054         * modules/unictype/category-Pe-tests: Likewise.
21055         * modules/unictype/category-Pf-tests: Likewise.
21056         * modules/unictype/category-Pi-tests: Likewise.
21057         * modules/unictype/category-Po-tests: Likewise.
21058         * modules/unictype/category-Ps-tests: Likewise.
21059         * modules/unictype/category-S-tests: Likewise.
21060         * modules/unictype/category-Sc-tests: Likewise.
21061         * modules/unictype/category-Sk-tests: Likewise.
21062         * modules/unictype/category-Sm-tests: Likewise.
21063         * modules/unictype/category-So-tests: Likewise.
21064         * modules/unictype/category-Z-tests: Likewise.
21065         * modules/unictype/category-Zl-tests: Likewise.
21066         * modules/unictype/category-Zp-tests: Likewise.
21067         * modules/unictype/category-Zs-tests: Likewise.
21068         * modules/unictype/category-and-not-tests: Likewise.
21069         * modules/unictype/category-and-tests: Likewise.
21070         * modules/unictype/category-byname-tests: Likewise.
21071         * modules/unictype/category-name-tests: Likewise.
21072         * modules/unictype/category-none-tests: Likewise.
21073         * modules/unictype/category-of-tests: Likewise.
21074         * modules/unictype/category-or-tests: Likewise.
21075         * modules/unictype/category-test-withtable-tests: Likewise.
21076         * modules/unictype/combining-class-tests: Likewise.
21077         * modules/unictype/ctype-alnum-tests: Likewise.
21078         * modules/unictype/ctype-alpha-tests: Likewise.
21079         * modules/unictype/ctype-blank-tests: Likewise.
21080         * modules/unictype/ctype-cntrl-tests: Likewise.
21081         * modules/unictype/ctype-digit-tests: Likewise.
21082         * modules/unictype/ctype-graph-tests: Likewise.
21083         * modules/unictype/ctype-lower-tests: Likewise.
21084         * modules/unictype/ctype-print-tests: Likewise.
21085         * modules/unictype/ctype-punct-tests: Likewise.
21086         * modules/unictype/ctype-space-tests: Likewise.
21087         * modules/unictype/ctype-upper-tests: Likewise.
21088         * modules/unictype/ctype-xdigit-tests: Likewise.
21089         * modules/unictype/decimal-digit-tests: Likewise.
21090         * modules/unictype/digit-tests: Likewise.
21091         * modules/unictype/mirror-tests: Likewise.
21092         * modules/unictype/numeric-tests: Likewise.
21093         * modules/unictype/property-alphabetic-tests: Likewise.
21094         * modules/unictype/property-ascii-hex-digit-tests: Likewise.
21095         * modules/unictype/property-bidi-arabic-digit-tests: Likewise.
21096         * modules/unictype/property-bidi-arabic-right-to-left-tests: Likewise.
21097         * modules/unictype/property-bidi-block-separator-tests: Likewise.
21098         * modules/unictype/property-bidi-boundary-neutral-tests: Likewise.
21099         * modules/unictype/property-bidi-common-separator-tests: Likewise.
21100         * modules/unictype/property-bidi-control-tests: Likewise.
21101         * modules/unictype/property-bidi-embedding-or-override-tests: Likewise.
21102         * modules/unictype/property-bidi-eur-num-separator-tests: Likewise.
21103         * modules/unictype/property-bidi-eur-num-terminator-tests: Likewise.
21104         * modules/unictype/property-bidi-european-digit-tests: Likewise.
21105         * modules/unictype/property-bidi-hebrew-right-to-left-tests: Likewise.
21106         * modules/unictype/property-bidi-left-to-right-tests: Likewise.
21107         * modules/unictype/property-bidi-non-spacing-mark-tests: Likewise.
21108         * modules/unictype/property-bidi-other-neutral-tests: Likewise.
21109         * modules/unictype/property-bidi-pdf-tests: Likewise.
21110         * modules/unictype/property-bidi-segment-separator-tests: Likewise.
21111         * modules/unictype/property-bidi-whitespace-tests: Likewise.
21112         * modules/unictype/property-byname-tests: Likewise.
21113         * modules/unictype/property-combining-tests: Likewise.
21114         * modules/unictype/property-composite-tests: Likewise.
21115         * modules/unictype/property-currency-symbol-tests: Likewise.
21116         * modules/unictype/property-dash-tests: Likewise.
21117         * modules/unictype/property-decimal-digit-tests: Likewise.
21118         * modules/unictype/property-default-ignorable-code-point-tests: Likewise.
21119         * modules/unictype/property-deprecated-tests: Likewise.
21120         * modules/unictype/property-diacritic-tests: Likewise.
21121         * modules/unictype/property-extender-tests: Likewise.
21122         * modules/unictype/property-format-control-tests: Likewise.
21123         * modules/unictype/property-grapheme-base-tests: Likewise.
21124         * modules/unictype/property-grapheme-extend-tests: Likewise.
21125         * modules/unictype/property-grapheme-link-tests: Likewise.
21126         * modules/unictype/property-hex-digit-tests: Likewise.
21127         * modules/unictype/property-hyphen-tests: Likewise.
21128         * modules/unictype/property-id-continue-tests: Likewise.
21129         * modules/unictype/property-id-start-tests: Likewise.
21130         * modules/unictype/property-ideographic-tests: Likewise.
21131         * modules/unictype/property-ids-binary-operator-tests: Likewise.
21132         * modules/unictype/property-ids-trinary-operator-tests: Likewise.
21133         * modules/unictype/property-ignorable-control-tests: Likewise.
21134         * modules/unictype/property-iso-control-tests: Likewise.
21135         * modules/unictype/property-join-control-tests: Likewise.
21136         * modules/unictype/property-left-of-pair-tests: Likewise.
21137         * modules/unictype/property-line-separator-tests: Likewise.
21138         * modules/unictype/property-logical-order-exception-tests: Likewise.
21139         * modules/unictype/property-lowercase-tests: Likewise.
21140         * modules/unictype/property-math-tests: Likewise.
21141         * modules/unictype/property-non-break-tests: Likewise.
21142         * modules/unictype/property-not-a-character-tests: Likewise.
21143         * modules/unictype/property-numeric-tests: Likewise.
21144         * modules/unictype/property-other-alphabetic-tests: Likewise.
21145         * modules/unictype/property-other-default-ignorable-code-point-tests:
21146         Likewise.
21147         * modules/unictype/property-other-grapheme-extend-tests: Likewise.
21148         * modules/unictype/property-other-id-continue-tests: Likewise.
21149         * modules/unictype/property-other-id-start-tests: Likewise.
21150         * modules/unictype/property-other-lowercase-tests: Likewise.
21151         * modules/unictype/property-other-math-tests: Likewise.
21152         * modules/unictype/property-other-uppercase-tests: Likewise.
21153         * modules/unictype/property-paired-punctuation-tests: Likewise.
21154         * modules/unictype/property-paragraph-separator-tests: Likewise.
21155         * modules/unictype/property-pattern-syntax-tests: Likewise.
21156         * modules/unictype/property-pattern-white-space-tests: Likewise.
21157         * modules/unictype/property-private-use-tests: Likewise.
21158         * modules/unictype/property-punctuation-tests: Likewise.
21159         * modules/unictype/property-quotation-mark-tests: Likewise.
21160         * modules/unictype/property-radical-tests: Likewise.
21161         * modules/unictype/property-sentence-terminal-tests: Likewise.
21162         * modules/unictype/property-soft-dotted-tests: Likewise.
21163         * modules/unictype/property-space-tests: Likewise.
21164         * modules/unictype/property-terminal-punctuation-tests: Likewise.
21165         * modules/unictype/property-test-tests: Likewise.
21166         * modules/unictype/property-titlecase-tests: Likewise.
21167         * modules/unictype/property-unassigned-code-value-tests: Likewise.
21168         * modules/unictype/property-unified-ideograph-tests: Likewise.
21169         * modules/unictype/property-uppercase-tests: Likewise.
21170         * modules/unictype/property-variation-selector-tests: Likewise.
21171         * modules/unictype/property-white-space-tests: Likewise.
21172         * modules/unictype/property-xid-continue-tests: Likewise.
21173         * modules/unictype/property-xid-start-tests: Likewise.
21174         * modules/unictype/property-zero-width-tests: Likewise.
21175         * modules/unictype/scripts-tests: Likewise.
21176         * modules/unictype/syntax-c-ident-tests: Likewise.
21177         * modules/unictype/syntax-c-whitespace-tests: Likewise.
21178         * modules/unictype/syntax-java-ident-tests: Likewise.
21179         * modules/unictype/syntax-java-whitespace-tests: Likewise.
21180         * modules/unilbrk/u8-possible-linebreaks-tests: Likewise.
21181         * modules/unilbrk/u8-width-linebreaks-tests: Likewise.
21182         * modules/unilbrk/u16-possible-linebreaks-tests: Likewise.
21183         * modules/unilbrk/u16-width-linebreaks-tests: Likewise.
21184         * modules/unilbrk/u32-possible-linebreaks-tests: Likewise.
21185         * modules/unilbrk/u32-width-linebreaks-tests: Likewise.
21186         * modules/unilbrk/ulc-possible-linebreaks-tests: Likewise.
21187         * modules/unilbrk/ulc-width-linebreaks-tests: Likewise.
21188         * modules/uniname/uniname-tests: Likewise.
21189         * modules/uninorm/canonical-decomposition-tests: Likewise.
21190         * modules/uninorm/compat-decomposition-tests: Likewise.
21191         * modules/uninorm/composition-tests: Likewise.
21192         * modules/uninorm/decomposing-form-tests: Likewise.
21193         * modules/uninorm/decomposition-tests: Likewise.
21194         * modules/uninorm/filter-tests: Likewise.
21195         * modules/uninorm/nfc-tests: Likewise.
21196         * modules/uninorm/nfd-tests: Likewise.
21197         * modules/uninorm/nfkc-tests: Likewise.
21198         * modules/uninorm/nfkd-tests: Likewise.
21199         * modules/uninorm/u8-normcmp-tests: Likewise.
21200         * modules/uninorm/u8-normcoll-tests: Likewise.
21201         * modules/uninorm/u16-normcmp-tests: Likewise.
21202         * modules/uninorm/u16-normcoll-tests: Likewise.
21203         * modules/uninorm/u32-normcmp-tests: Likewise.
21204         * modules/uninorm/u32-normcoll-tests: Likewise.
21205         * modules/unistdio/u8-asnprintf-tests: Likewise.
21206         * modules/unistdio/u8-vasnprintf-tests: Likewise.
21207         * modules/unistdio/u8-vasprintf-tests: Likewise.
21208         * modules/unistdio/u8-vsnprintf-tests: Likewise.
21209         * modules/unistdio/u8-vsprintf-tests: Likewise.
21210         * modules/unistdio/u16-asnprintf-tests: Likewise.
21211         * modules/unistdio/u16-vasnprintf-tests: Likewise.
21212         * modules/unistdio/u16-vasprintf-tests: Likewise.
21213         * modules/unistdio/u16-vsnprintf-tests: Likewise.
21214         * modules/unistdio/u16-vsprintf-tests: Likewise.
21215         * modules/unistdio/u32-asnprintf-tests: Likewise.
21216         * modules/unistdio/u32-vasnprintf-tests: Likewise.
21217         * modules/unistdio/u32-vasprintf-tests: Likewise.
21218         * modules/unistdio/u32-vsnprintf-tests: Likewise.
21219         * modules/unistdio/u32-vsprintf-tests: Likewise.
21220         * modules/unistdio/ulc-asnprintf-tests: Likewise.
21221         * modules/unistdio/ulc-vasnprintf-tests: Likewise.
21222         * modules/unistdio/ulc-vasprintf-tests: Likewise.
21223         * modules/unistdio/ulc-vsnprintf-tests: Likewise.
21224         * modules/unistdio/ulc-vsprintf-tests: Likewise.
21225         * modules/unistr/u8-check-tests: Likewise.
21226         * modules/unistr/u8-chr-tests: Likewise.
21227         * modules/unistr/u8-cmp-tests: Likewise.
21228         * modules/unistr/u8-cmp2-tests: Likewise.
21229         * modules/unistr/u8-cpy-alloc-tests: Likewise.
21230         * modules/unistr/u8-cpy-tests: Likewise.
21231         * modules/unistr/u8-mblen-tests: Likewise.
21232         * modules/unistr/u8-mbsnlen-tests: Likewise.
21233         * modules/unistr/u8-mbtouc-tests: Likewise.
21234         * modules/unistr/u8-mbtouc-unsafe-tests: Likewise.
21235         * modules/unistr/u8-mbtoucr-tests: Likewise.
21236         * modules/unistr/u8-move-tests: Likewise.
21237         * modules/unistr/u8-next-tests: Likewise.
21238         * modules/unistr/u8-prev-tests: Likewise.
21239         * modules/unistr/u8-set-tests: Likewise.
21240         * modules/unistr/u8-stpcpy-tests: Likewise.
21241         * modules/unistr/u8-stpncpy-tests: Likewise.
21242         * modules/unistr/u8-strcat-tests: Likewise.
21243         * modules/unistr/u8-strcmp-tests: Likewise.
21244         * modules/unistr/u8-strcoll-tests: Likewise.
21245         * modules/unistr/u8-strcpy-tests: Likewise.
21246         * modules/unistr/u8-strdup-tests: Likewise.
21247         * modules/unistr/u8-strlen-tests: Likewise.
21248         * modules/unistr/u8-strmblen-tests: Likewise.
21249         * modules/unistr/u8-strmbtouc-tests: Likewise.
21250         * modules/unistr/u8-strncat-tests: Likewise.
21251         * modules/unistr/u8-strncmp-tests: Likewise.
21252         * modules/unistr/u8-strncpy-tests: Likewise.
21253         * modules/unistr/u8-strnlen-tests: Likewise.
21254         * modules/unistr/u8-to-u16-tests: Likewise.
21255         * modules/unistr/u8-to-u32-tests: Likewise.
21256         * modules/unistr/u8-uctomb-tests: Likewise.
21257         * modules/unistr/u16-check-tests: Likewise.
21258         * modules/unistr/u16-chr-tests: Likewise.
21259         * modules/unistr/u16-cmp-tests: Likewise.
21260         * modules/unistr/u16-cmp2-tests: Likewise.
21261         * modules/unistr/u16-cpy-alloc-tests: Likewise.
21262         * modules/unistr/u16-cpy-tests: Likewise.
21263         * modules/unistr/u16-mblen-tests: Likewise.
21264         * modules/unistr/u16-mbsnlen-tests: Likewise.
21265         * modules/unistr/u16-mbtouc-tests: Likewise.
21266         * modules/unistr/u16-mbtouc-unsafe-tests: Likewise.
21267         * modules/unistr/u16-mbtoucr-tests: Likewise.
21268         * modules/unistr/u16-move-tests: Likewise.
21269         * modules/unistr/u16-next-tests: Likewise.
21270         * modules/unistr/u16-prev-tests: Likewise.
21271         * modules/unistr/u16-set-tests: Likewise.
21272         * modules/unistr/u16-stpcpy-tests: Likewise.
21273         * modules/unistr/u16-stpncpy-tests: Likewise.
21274         * modules/unistr/u16-strcat-tests: Likewise.
21275         * modules/unistr/u16-strcmp-tests: Likewise.
21276         * modules/unistr/u16-strcoll-tests: Likewise.
21277         * modules/unistr/u16-strcpy-tests: Likewise.
21278         * modules/unistr/u16-strdup-tests: Likewise.
21279         * modules/unistr/u16-strlen-tests: Likewise.
21280         * modules/unistr/u16-strmblen-tests: Likewise.
21281         * modules/unistr/u16-strmbtouc-tests: Likewise.
21282         * modules/unistr/u16-strncat-tests: Likewise.
21283         * modules/unistr/u16-strncmp-tests: Likewise.
21284         * modules/unistr/u16-strncpy-tests: Likewise.
21285         * modules/unistr/u16-strnlen-tests: Likewise.
21286         * modules/unistr/u16-to-u32-tests: Likewise.
21287         * modules/unistr/u16-to-u8-tests: Likewise.
21288         * modules/unistr/u16-uctomb-tests: Likewise.
21289         * modules/unistr/u32-check-tests: Likewise.
21290         * modules/unistr/u32-chr-tests: Likewise.
21291         * modules/unistr/u32-cmp-tests: Likewise.
21292         * modules/unistr/u32-cmp2-tests: Likewise.
21293         * modules/unistr/u32-cpy-alloc-tests: Likewise.
21294         * modules/unistr/u32-cpy-tests: Likewise.
21295         * modules/unistr/u32-mblen-tests: Likewise.
21296         * modules/unistr/u32-mbsnlen-tests: Likewise.
21297         * modules/unistr/u32-mbtouc-tests: Likewise.
21298         * modules/unistr/u32-mbtouc-unsafe-tests: Likewise.
21299         * modules/unistr/u32-mbtoucr-tests: Likewise.
21300         * modules/unistr/u32-move-tests: Likewise.
21301         * modules/unistr/u32-next-tests: Likewise.
21302         * modules/unistr/u32-prev-tests: Likewise.
21303         * modules/unistr/u32-set-tests: Likewise.
21304         * modules/unistr/u32-stpcpy-tests: Likewise.
21305         * modules/unistr/u32-stpncpy-tests: Likewise.
21306         * modules/unistr/u32-strcat-tests: Likewise.
21307         * modules/unistr/u32-strcmp-tests: Likewise.
21308         * modules/unistr/u32-strcoll-tests: Likewise.
21309         * modules/unistr/u32-strcpy-tests: Likewise.
21310         * modules/unistr/u32-strdup-tests: Likewise.
21311         * modules/unistr/u32-strlen-tests: Likewise.
21312         * modules/unistr/u32-strmblen-tests: Likewise.
21313         * modules/unistr/u32-strmbtouc-tests: Likewise.
21314         * modules/unistr/u32-strncat-tests: Likewise.
21315         * modules/unistr/u32-strncmp-tests: Likewise.
21316         * modules/unistr/u32-strncpy-tests: Likewise.
21317         * modules/unistr/u32-strnlen-tests: Likewise.
21318         * modules/unistr/u32-to-u16-tests: Likewise.
21319         * modules/unistr/u32-to-u8-tests: Likewise.
21320         * modules/unistr/u32-uctomb-tests: Likewise.
21321         * modules/uniwbrk/u8-wordbreaks-tests: Likewise.
21322         * modules/uniwbrk/u16-wordbreaks-tests: Likewise.
21323         * modules/uniwbrk/u32-wordbreaks-tests: Likewise.
21324         * modules/uniwbrk/ulc-wordbreaks-tests: Likewise.
21325         * modules/uniwidth/u8-strwidth-tests: Likewise.
21326         * modules/uniwidth/u8-width-tests: Likewise.
21327         * modules/uniwidth/u16-strwidth-tests: Likewise.
21328         * modules/uniwidth/u16-width-tests: Likewise.
21329         * modules/uniwidth/u32-strwidth-tests: Likewise.
21330         * modules/uniwidth/u32-width-tests: Likewise.
21331         * modules/uniwidth/width-tests: Likewise.
21332
21333 2010-05-18  Richard Jones  <rjones@redhat.com>
21334
21335         doc: users.txt: list hivex
21336         * users.txt: Add hivex.
21337
21338 2010-05-18  Richard Jones  <rjones@redhat.com>
21339
21340         doc: users.txt: list febootstrap
21341         * users.txt: Add febootstrap.
21342
21343 2010-05-17  Giuseppe Scrivano  <gscrivano@gnu.org>
21344
21345         bootstrap: fix an error when gnulib is not used as a git submodule
21346         * build-aux/bootstrap (gnulib_path): If its length is zero then
21347         assign "gnulib" to it.
21348         * build-aux/bootstrap: Redirect "git clone -h" stderr to stdout.
21349
21350 2010-05-16  Bruno Haible  <bruno@clisp.org>
21351
21352         Avoid autoconf warnings about AM_ICONV.
21353         * m4/iconv.m4 (AM_ICONV): Define using AC_DEFUN_ONCE for autoconf >=
21354         2.64.
21355
21356 2010-05-16  Bruno Haible  <bruno@clisp.org>
21357
21358         absolute-header: Make the macro usable in more situations.
21359         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER_ONE): New macro, extracted
21360         from gl_ABSOLUTE_HEADER.
21361         (gl_ABSOLUTE_HEADER): Use it. Fix comment.
21362
21363 2010-05-16  James Youngman  <jay@gnu.org>
21364
21365         doc: update users.txt
21366         * users.txt: Add CSSC.
21367
21368 2010-05-16  Jim Meyering  <meyering@redhat.com>
21369
21370         init.sh: fix an error in the previous change; add more comments
21371         * tests/init.sh: Compare exit code in loop against 9, not 2.
21372         Patch by Bruno Haible.
21373         Make the two tests more similar by adding an empty "then" clause.
21374         Add comments.
21375
21376         init.sh: avoid unnecessary shell re-exec
21377         * tests/init.sh: Improve the re-exec-required check to first test the
21378         current shell.  If it passes the test, do not search for a shell that
21379         does pass, and do not re-exec.  This test is particularly contorted to
21380         avoid triggering misbehavior in Solaris 10's /bin/sh whereby any use
21381         of $(...) evokes a syntax error and causes immediate shell exit with
21382         status 2.  Bruno Haible reported that the re-exec made it impossible
21383         to single-step through any init.sh-using script.
21384
21385 2010-05-16  Bruno Haible  <bruno@clisp.org>
21386
21387         Fix collision between gnulib's and libintl's printf replacements.
21388         * lib/stdio.in.h (_GL_STDIO_STRINGIZE,
21389         _GL_STDIO_MACROEXPAND_AND_STRINGIZE): New macros.
21390         (printf): When using GNU C, map the __printf__ function to rpl_printf
21391         via __asm__. When not using GNU C, define rpl_printf instead of
21392         __printf__.
21393         * lib/printf.c: Ignore DEPENDS_ON_LIBINTL. Undoes the 2010-03-25
21394         commit.
21395         * lib/stdio-write.c: Ignore DEPENDS_ON_LIBINTL. Undoes the 2009-08-10
21396         commit.
21397         * m4/asm-underscore.m4: New file.
21398         * m4/stdio_h.m4 (gl_STDIO_H): Require gl_ASM_SYMBOL_PREFIX.
21399         * modules/stdio (Files): Add m4/asm-underscore.m4.
21400         (Makefile.am): Substitute ASM_SYMBOL_PREFIX.
21401         Reported by Ben Pfaff.
21402
21403 2010-05-16  Bruno Haible  <bruno@clisp.org>
21404
21405         verify: Avoid skipping the test on openSUSE 11.0.
21406         * tests/test-verify.sh: Unset MALLOC_PERTURB_.
21407
21408 2010-05-13  Bruno Haible  <bruno@clisp.org>
21409
21410         Avoid useless warnings from G++.
21411         * build-aux/c++defs.h (_GL_CXXALIASWARN_2, _GL_CXXALIASWARN1_2): Don't
21412         use _GL_WARN_ON_USE or _GL_WARN_ON_USE_CXX when optimizing.
21413         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
21414
21415 2010-05-11  Jim Meyering  <meyering@redhat.com>
21416
21417         maint.mk: tweak preceding change
21418         * top/maint.mk (gl_extract_significant_defines_): Make exclusion
21419         regexps tighter by anchoring at EOL, and make the new group "shy"
21420         for slightly decreased overhead.
21421
21422 2010-05-11  Eric Blake  <eblake@redhat.com>
21423
21424         maint.mk: gnulib doesn't guarantee NSIG
21425         * top/maint.mk (gl_extract_significant_defines_): Exclude NSIG.
21426
21427 2010-05-10  Peter O'Gorman  <pogma@thewrittenword.com>
21428
21429         test-pwrite.c: Remove unused variable declaration.
21430         * tests/test-pwrite.c (main): Remove read_buf declaration.
21431
21432         Remove useless test-pwrite.sh file.
21433         * tests/test-pwrite.sh: Delete file.
21434         * modules/pwrite-tests: Remove references.
21435         Reported by Bruno Haible.
21436
21437 2010-05-10  Peter O'Gorman  <pogma@thewrittenword.com>
21438
21439         init.sh: fix a typo
21440         * tests/init.sh: Correct typo in MALLOC_PERTURB_ initialization.
21441
21442 2010-05-10  Jim Meyering  <meyering@redhat.com>
21443
21444         maint.mk: avoid using a temporary file in the always-defined-macros check
21445         * top/maint.mk (.re-defmac): Remove rule.
21446         (gl_trap_): Remove definition.
21447         (sc_prohibit_always-defined_macros): Rewrite not to create and
21448         depend on a temporary file.  Instead, depend on GNU grep's ability
21449         to read a list of regular expressions from stdin when given "-f -".
21450
21451 2010-05-09  Bruno Haible  <bruno@clisp.org>
21452
21453         Update to GNU gettext 0.18, part 1.
21454         * m4/gettext.m4: Update to GNU gettext 0.18.
21455         * m4/intl.m4: Likewise.
21456         * m4/po.m4: Likewise.
21457         * modules/gettext (Files): Add m4/fcntl-o.m4.
21458         (configure.ac): Require gettext infrastructure from version 0.18.
21459
21460 2010-05-09  Jim Meyering  <meyering@redhat.com>
21461
21462         init.sh: enable MALLOC_PERTURB_
21463         * tests/init.sh: Enable glibc's malloc-perturbing option.
21464
21465         maint.mk: improve sc_cross_check_PATH_usage_in_tests
21466         With my recent change in init.sh from the two-line form:
21467             -#   : ${srcdir=.}
21468             -#   . "$srcdir/init.sh"; path_prepend_ .
21469             +#   . "${srcdir=.}/init.sh"; path_prepend_ .
21470         I noticed that using the one-line form would cause this test
21471         to fail with a false-positive, or to stop working altogether,
21472         depending on whether help-version changed or all the tests did.
21473         * top/maint.mk (_hv_regex): Remove this definition.
21474         (_hv_regex_weak): Use a weak regex to select all init.sh-sourcing files.
21475         (_hv_regex_strong): Use a stronger regex to check for conformance.
21476         (sc_cross_check_PATH_usage_in_tests): Rewrite to use the above.
21477         Give a separate diagnostic for lack of conforming use.
21478
21479         maint.mk: prohibit definition of symbols defined by gnulib
21480         * top/maint.mk (sc_prohibit_always-defined_macros): Reject the
21481         definition of symbols defined by gnulib.
21482
21483 2010-05-09  Bruno Haible  <bruno@clisp.org>
21484
21485         acl: Avoid test failure on Cygwin-hosted mingw.
21486         * tests/test-set-mode-acl.sh: Skip test if USE_ACL is 0.
21487
21488 2010-05-09  Bruno Haible  <bruno@clisp.org>
21489
21490         error: Use system's fcntl function.
21491         * lib/error.c (fcntl): Undefine.
21492
21493 2010-05-09  Jim Meyering  <meyering@redhat.com>
21494
21495         verify: adjust formatting to be more consistent
21496         * lib/verify.h (_GL_GENSYM): Add a space before each of a few
21497         argument-list '('s, and after one comma.
21498
21499 2010-05-09  Bruno Haible  <bruno@clisp.org>
21500
21501         error: More reliable output on mingw.
21502         * lib/error.c: Include <windows.h>.
21503         (is_open): New function.
21504         (flush_stdout): Call it instead of fcntl, also if F_GETFL is not
21505         defined.
21506
21507 2010-05-09  Bruno Haible  <bruno@clisp.org>
21508
21509         vasnprintf: Fix syntax errors in libintl build on mingw.
21510         * lib/vasnprintf.c (VASNPRINTF): Move a closing brace. Undefine
21511         pad_ourselves and prec_ourselves after use.
21512
21513 2010-05-08  Bruno Haible  <bruno@clisp.org>
21514
21515         * lib/config.charset: Update comments for Cygwin 1.7.
21516         * lib/localcharset.c: Likewise.
21517
21518 2010-05-07  Jim Meyering  <meyering@redhat.com>
21519
21520         init.sh: improve comments
21521         * tests/init.sh: Recommend the one-line init.sh-sourcing idiom:
21522         . "${srcdir=.}/init.sh"; path_prepend_ .
21523         Add a note about path_prepend_ and the alternative of using
21524         TESTS_ENVIRONMENT.
21525
21526 2010-05-06  Sergey Poznyakoff  <gray@gnu.org.ua>
21527
21528         exclude: Unescape hashed patterns in wildcard mode.
21529         * lib/exclude.c (add_exclude): Unescape the pattern before adding it
21530         to the hash list.
21531         * tests/test-exclude8.sh: New test case.
21532         * modules/exclude-tests: Add new test.
21533
21534 2010-05-05  Eric Blake  <eblake@redhat.com>
21535
21536         verify: automate tests
21537         * modules/verify-tests: New module.
21538         * tests/test-verify.sh: New file.
21539         * tests/test-verify.c: Guard each negative test with a unique id.
21540         Also avoid warning about unused left hand of comma expressions.
21541
21542 2010-05-05  Paul Eggert  <eggert@cs.ucla.edu>
21543
21544         Further improvements to verify.h, suggested by Eric Blake.
21545         * lib/verify.h (_GL_CONCAT, _GL_CONCAT0, _GL_GENSYM): Renamed from
21546         the GL_* versions, to avoid collision with OpenGL.
21547         (_GL_COUNTER): New macro, so that we can fall back on __LINE__ if
21548         __COUNTER__ doesn't work.  Test that __COUNTER__ increments rather
21549         than testing merely whether it's defined.
21550
21551         Modify verify.h to pacify gcc -Wredundant_decls.
21552         * lib/verify.h (GL_CONCAT, GL_CONCAT0, GL_GENSYM): New macros.
21553         These use the prefix "GL_" since they're likely to be useful elsewhere.
21554         We may need to break them out into a different .h file.
21555         (__COUNTER__): Define to 0 if the compiler doesn't support it.
21556         (verify) [!defined __cplusplus]: Use them to avoid duplicate decls
21557         of verify_function__.
21558
21559 2010-05-05  Peter O'Gorman  <pogma@thewrittenword.com>
21560
21561         Tests for module pwrite.
21562         * modules/pwrite-tests: New file.
21563         * tests/test-pwrite.sh: New file.
21564         * tests/test-pwrite.c: New file.
21565
21566         New module pwrite.
21567         * lib/unistd.in.h (pwrite): New declaration.
21568         * lib/pwrite.c: New file, from glibc with modifications.
21569         * m4/pwrite.m4: New file.
21570         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether pwrite is declared.
21571         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_PWRITE, HAVE_PWRITE,
21572         REPLACE_PWRITE.
21573         * modules/pwrite: New file.
21574         * modules/unistd (Makefile.am): Substitute GNULIB_PWRITE, HAVE_PWRITE,
21575         REPLACE_PWRITE.
21576         * tests/test-unistd-c++.cc: Check GNULIB_NAMESPACE::pwrite.
21577         * doc/posix-functions/pwrite.texi: Mention the new module.
21578
21579 2010-05-05  Peter O'Gorman  <pogma@thewrittenword.com>
21580
21581         pread: Update documentation.
21582         * doc/posix-functions/pread.texi: Mention the 'pread' module.
21583
21584 2010-05-04  Eric Blake  <eblake@redhat.com>
21585
21586         docs: update cygwin progress
21587         * doc/posix-functions/wctob.texi (wctob): Cygwin 1.7.6 will fix
21588         this bug.
21589         * doc/glibc-functions/get_nprocs_conf.texi (get_nprocs_conf):
21590         Added in cygwin 1.7.2.
21591         * doc/glibc-functions/get_phys_pages.texi (get_phys_pages):
21592         Likewise.
21593         * doc/glibc-functions/get_avphys_pages.texi (get_avphys_pages):
21594         Likewise.
21595         * doc/glibc-functions/dup3.texi (dup3): Likewise.
21596         * doc/glibc-functions/pipe2.texi (pipe2): Likewise.
21597         * doc/glibc-functions/accept4.texi (accept4): Likewise.
21598         * doc/posix-functions/strfmon.texi (strfmon): Likewise.
21599         * doc/glibc-functions/get_nprocs.texi (get_nprocs): Likewise.
21600         Mention nproc module.
21601         * doc/glibc-functions/xdr_uint16_t.texi (xdr_uint16_t): Mention
21602         bug in cygwin 1.7.5 addition.
21603         * doc/glibc-functions/xdr_uint32_t.texi (xdr_uint32_t): Likewise.
21604         * doc/glibc-functions/xdr_uint64_t.texi (xdr_uint64_t): Likewise.
21605         * doc/glibc-functions/xdr_uint8_t.texi (xdr_uint8_t): Likewise.
21606         * doc/glibc-functions/xdr_array.texi (xdr_array): Added in cygwin
21607         1.7.5.
21608         * doc/glibc-functions/xdr_bool.texi (xdr_bool): Likewise.
21609         * doc/glibc-functions/xdr_bytes.texi (xdr_bytes): Likewise.
21610         * doc/glibc-functions/xdr_char.texi (xdr_char): Likewise.
21611         * doc/glibc-functions/xdr_double.texi (xdr_double): Likewise.
21612         * doc/glibc-functions/xdr_enum.texi (xdr_enum): Likewise.
21613         * doc/glibc-functions/xdr_float.texi (xdr_float): Likewise.
21614         * doc/glibc-functions/xdr_free.texi (xdr_free): Likewise.
21615         * doc/glibc-functions/xdr_hyper.texi (xdr_hyper): Likewise.
21616         * doc/glibc-functions/xdr_int.texi (xdr_int): Likewise.
21617         * doc/glibc-functions/xdr_int16_t.texi (xdr_int16_t): Likewise.
21618         * doc/glibc-functions/xdr_int32_t.texi (xdr_int32_t): Likewise.
21619         * doc/glibc-functions/xdr_int64_t.texi (xdr_int64_t): Likewise.
21620         * doc/glibc-functions/xdr_int8_t.texi (xdr_int8_t): Likewise.
21621         * doc/glibc-functions/xdr_long.texi (xdr_long): Likewise.
21622         * doc/glibc-functions/xdr_longlong_t.texi (xdr_longlong_t):
21623         Likewise.
21624         * doc/glibc-functions/xdr_netobj.texi (xdr_netobj): Likewise.
21625         * doc/glibc-functions/xdr_opaque.texi (xdr_opaque): Likewise.
21626         * doc/glibc-functions/xdr_pointer.texi (xdr_pointer): Likewise.
21627         * doc/glibc-functions/xdr_reference.texi (xdr_reference):
21628         Likewise.
21629         * doc/glibc-functions/xdr_short.texi (xdr_short): Likewise.
21630         * doc/glibc-functions/xdr_sizeof.texi (xdr_sizeof): Likewise.
21631         * doc/glibc-functions/xdr_string.texi (xdr_string): Likewise.
21632         * doc/glibc-functions/xdr_u_char.texi (xdr_u_char): Likewise.
21633         * doc/glibc-functions/xdr_u_hyper.texi (xdr_u_hyper): Likewise.
21634         * doc/glibc-functions/xdr_u_int.texi (xdr_u_int): Likewise.
21635         * doc/glibc-functions/xdr_u_long.texi (xdr_u_long): Likewise.
21636         * doc/glibc-functions/xdr_u_longlong_t.texi (xdr_u_longlong_t):
21637         Likewise.
21638         * doc/glibc-functions/xdr_u_short.texi (xdr_u_short): Likewise.
21639         * doc/glibc-functions/xdr_union.texi (xdr_union): Likewise.
21640         * doc/glibc-functions/xdr_vector.texi (xdr_vector): Likewise.
21641         * doc/glibc-functions/xdr_void.texi (xdr_void): Likewise.
21642         * doc/glibc-functions/xdr_wrapstring.texi (xdr_wrapstring):
21643         Likewise.
21644         * doc/glibc-functions/xdrmem_create.texi (xdrmem_create):
21645         Likewise.
21646         * doc/glibc-functions/xdrrec_create.texi (xdrrec_create):
21647         Likewise.
21648         * doc/glibc-functions/xdrrec_endofrecord.texi
21649         (xdrrec_endofrecord): Likewise.
21650         * doc/glibc-functions/xdrrec_eof.texi (xdrrec_eof): Likewise.
21651         * doc/glibc-functions/xdrrec_skiprecord.texi (xdrrec_skiprecord):
21652         Likewise.
21653         * doc/glibc-functions/xdrstdio_create.texi (xdrstdio_create):
21654         Likewise.
21655
21656 2010-05-04  Jim Meyering  <meyering@redhat.com>
21657
21658         gendocs.sh: make its "-s FILE" option more useful
21659         * build-aux/gendocs.sh: When honoring the -s FILE option, update
21660         $PACKAGE to reflect the probably-different basename of "FILE".
21661
21662 2010-05-03  Giuseppe Scrivano  <gscrivano@gnu.org>
21663
21664         bootstrap: don't ignore download_po_files failure
21665         * build-aux/bootstrap (update_po_files): Don't ignore download_po_files
21666         failure.
21667
21668 2010-05-03  Jim Meyering  <meyering@redhat.com>
21669
21670         maint.mk: allow to pass options to gendocs.sh
21671         * top/maint.mk (web-manual): Pass gendocs_options_ to gendocs.sh.
21672         (gendocs_options_): New overridable variable.
21673
21674         gnu-web-doc-update: don't ignore configure or build failure
21675         * build-aux/gnu-web-doc-update: Exit nonzero upon internal failure.
21676
21677         announce-gen: backslash-escape '@'s in --help output
21678         * build-aux/announce-gen: Fix syntax errors.
21679
21680         maint.mk, announce-gen: allow project-specific announcement mail headers
21681         * top/maint.mk (translation_project_): Define default.
21682         (announcement_Cc_, announcement_mail_headers_): Likewise.
21683         (announcement): Invoke announce-gen with new --mail-headers option.
21684         * build-aux/announce-gen: New option: --mail-headers=HEADERS.
21685
21686         test-xalloc-die: avoid unwarranted test failure on OpenSolaris 5.11
21687         * tests/test-xalloc-die.sh: Redirect stdout before stderr, (i.e.,
21688         "> out 2> err", rather than "2> err > out").  Otherwise, with /bin/sh
21689         on OpenSolaris 5.11 snv_134, we would end up with a stray "1> out"
21690         line in the "err2" output file when running "make check" in verbose
21691         mode (i.e., with set -x enabled).
21692
21693 2010-05-03  Bruno Haible  <bruno@clisp.org>
21694
21695         wctob: Fix for weird platforms.
21696         * lib/wctob.c (wctob): When wint_t is larger than wchar_t, check the
21697         argument value.
21698
21699 2010-05-03  Jim Meyering  <meyering@redhat.com>
21700
21701         maint.mk: prohibit unwarranted use of <strings.h>
21702         * top/maint.mk (sc_prohibit_strings_without_use): Reject inclusion of
21703         strings.h in a file that does not also use strcasecmp, strncasecmp,
21704         ffs or ffsll.
21705
21706         maint.mk: remove obsolete comments
21707         * top/maint.mk: Remove stale, commented-out rules.
21708
21709 2010-05-02  Bruno Haible  <bruno@clisp.org>
21710
21711         wcwidth: Declare also when it's aliased.
21712         * lib/wchar.in.h (wcwidth): Don't test whether wcwidth is defined as a
21713         macro.
21714
21715 2010-05-02  Bruno Haible  <bruno@clisp.org>
21716
21717         Fix regression from 2010-04-25.
21718         * gnulib-tool (func_modules_transitive_closure): Check the status of
21719         all modules, not only of the tests that are of the form foo-tests where
21720         foo is a module.
21721
21722 2010-05-02  Bruno Haible  <bruno@clisp.org>
21723
21724         wctob: Work around nasty Cygwin 1.7.2 bug.
21725         * m4/wctob.m4 (gl_FUNC_WCTOB): Detect the Cygwin bug.
21726         * doc/posix-functions/wctob.texi: Mention the Cygwin bug.
21727
21728 2010-05-01  Bruno Haible  <bruno@clisp.org>
21729
21730         fpurge: Sharper test.
21731         * tests/test-fpurge.c (main): Add one more ftell check.
21732         * modules/fpurge-tests (Depends-on): Add ftell.
21733         Suggested by Eric Blake.
21734
21735 2010-05-01  Bruno Haible  <bruno@clisp.org>
21736
21737         ftello: Another test.
21738         * tests/test-ftello3.c: New file.
21739         * modules/ftello-tests (Files): Add it.
21740         (Makefile.am): Add it to TESTS and check_PROGRAMS. Augment
21741         MOSTLYCLEANFILES.
21742
21743         ftell: Another test.
21744         * tests/test-ftell3.c: New file.
21745         * modules/ftell-tests (Files): Add it.
21746         (Makefile.am): Add it to TESTS and check_PROGRAMS. Augment
21747         MOSTLYCLEANFILES.
21748
21749 2010-05-01  Bruno Haible  <bruno@clisp.org>
21750
21751         ftell, ftello: Work around Solaris bug.
21752         * m4/ftello.m4 (gl_FUNC_FTELLO): Detect Solaris bug.
21753         * lib/ftello.c: Include stdio-impl.h.
21754         (ftello): On Solaris, when _IOWRT is set, compute the result without
21755         looking at _IOREAD.
21756         * modules/ftello (Files): Add lib/stdio-impl.h.
21757         * doc/posix-functions/ftell.texi: Mention Solaris bug.
21758         * doc/posix-functions/ftello.texi: Likewise.
21759         Reported by Eric Blake.
21760
21761 2010-05-01  Bruno Haible  <bruno@clisp.org>
21762
21763         freading: Adapt to special meaning of _IOREAD flag on Solaris.
21764         * lib/freading.c (freading): On Solaris, ignore the _IOREAD flag if
21765         the _IOWRT flag is also set.
21766
21767 2010-05-01  Bruno Haible  <bruno@clisp.org>
21768
21769         Fix doc about a HP-UX stdio bug.
21770         * doc/posix-functions/ftell.texi: Mark HP-UX bug as unfixed.
21771         * doc/posix-functions/ftello.texi: Likewise.
21772
21773 2010-05-01  Bruno Haible  <bruno@clisp.org>
21774
21775         lseek test: Fix failure on Solaris.
21776         * tests/test-lseek.sh: Partially revert 2010-04-20 commit. Consume all
21777         output.
21778
21779 2010-04-30  Jim Meyering  <meyering@redhat.com>
21780
21781         bootstrap: don't ignore failure to generate po*/Makevars
21782         * build-aux/bootstrap (with_gettext): Don't ignore failure
21783         to create po/Makevars or runtime-po/Makevars.
21784
21785 2010-04-29  Eric Blake  <eblake@redhat.com>
21786
21787         headers: relax license to LGPLv2+
21788         * modules/fcntl-h (License): Relax license.
21789         * modules/getopt-posix (License): Likewise.
21790         * modules/locale (License): Likewise.
21791         * modules/math (License): Likewise.
21792         * modules/pty (License): Likewise.
21793         * modules/sched (License): Likewise.
21794         * modules/search (License): Likewise.
21795         * modules/spawn (License): Likewise.
21796         * modules/stdarg (License): Likewise.
21797         * modules/sysexits (License): Likewise.
21798
21799 2010-04-29  Jim Meyering  <meyering@redhat.com>
21800
21801         inttypes: relax license to LGPLv2+
21802         * modules/inttypes (License): Relax license.
21803
21804 2010-04-29  Simon Josefsson  <simon@josefsson.org>
21805
21806         * top/maint.mk (indent): Run twice to produce idempotent results.
21807
21808 2010-04-28  Bruno Haible  <bruno@clisp.org>
21809
21810         getdate: Generate getdate.c in the source directory.
21811         * modules/getdate (Makefile.am): Add rule for getdate.c. Augment
21812         MOSTLYCLEANFILES.
21813         Suggested by Daniel Richard G. <skunk@iskunk.org> and Ralf Wildenhues.
21814
21815 2010-04-27  Andreas Gruenbacher  <agruen@suse.de>  (tiny change)
21816
21817         * lib/utimens.c: On Tru64, the timestamp parameter of utimens(2)
21818         is not declared as a const *; avoid warnings in that case.
21819
21820 2010-04-28  Eric Blake  <eblake@redhat.com>
21821
21822         canonicalize-lgpl: avoid compiler warning
21823         * lib/canonicalize-lgpl.c (versioned_symbol): Avoid an 'empty
21824         declaration' / 'extraneous semicolon' warning with some compilers.
21825         Reported by Andreas Gruenbacher.
21826
21827 2010-04-28  Jim Meyering  <meyering@redhat.com>
21828
21829         init.sh: ensure a more reliable exit status when exiting via trap
21830         * tests/init.sh (setup_): Don't rely on $? in signal handler.
21831         Inspired by patches from Dmitry V. Levin.
21832         Also trap on signal 3 (SIGQUIT).
21833
21834 2010-04-27  Bruno Haible  <bruno@clisp.org>
21835
21836         Update doc about utimes().
21837         * doc/posix-functions/utimes.texi: Mention the OSF/1 problem and the
21838         'utimens' module.
21839         Reported by Andreas Gruenbacher <agruen@suse.de>.
21840
21841 2010-04-27  Eric Blake  <eblake@redhat.com>
21842
21843         full-read, full-write: relax license
21844         * modules/full-read (License): Drop to LGPLv2+.
21845         * modules/full-write (License): Likewise.
21846         * modules/safe-read (License): Likewise.
21847         * modules/safe-write (License): Likewise.
21848
21849         pthread: mention library for linking
21850         * modules/pthread (Link): Mention $(LIB_PTHREAD).
21851
21852 2010-04-27  Jim Meyering  <meyering@redhat.com>
21853
21854         maint.mk: fix a bug introduced in last change
21855         * top/maint.mk (gl_assured_headers_): Now that all names are on
21856         one line, use sed's "g" modifier.  Note that while the \.in\.h LHS
21857         is not anchored to end of word, it should be adequate.
21858
21859         maint.mk: avoid side-effect in latest syntax-check
21860         * top/maint.mk (sc_prohibit_always_true_header_tests): Rework not
21861         to run commands via $(shell...), and hence to incur cost only when
21862         the new rule is actually run.
21863
21864         maint.mk: syntax-check: prohibit HAVE_<header>_H that are always true
21865         Derive the list of guaranteed header names from gnulib/lib/*.in.h,
21866         and use that to create a regexp used to detect all #if HAVE_..._H uses.
21867         * top/maint.mk (sc_prohibit_always_true_header_tests): New rule.
21868         (gl_assured_headers_, az_, AZ_): Define.
21869         (gl_header_upper_case_or_, gl_have_header_regex_): Define.
21870
21871 2010-04-26  Jim Meyering  <jim@meyering.net>
21872             Bruno Haible  <bruno@clisp.org>
21873
21874         gnulib-common.m4: make glibc write diagnostics to stderr, not /dev/tty
21875         * m4/gnulib-common.m4 (gl_COMMON_BODY): Set LIBC_FATAL_STDERR_.
21876         Prompted by an exchange with Gilles Espinasse.
21877
21878 2010-04-26  Jim Meyering  <meyering@redhat.com>
21879
21880         git-version-gen: aesthetic tweak
21881         * build-aux/git-version-gen: Use "$nl" rather than a literal,
21882         so that the command remains on a single line.
21883
21884 2010-04-26  Eric Blake  <eblake@redhat.com>
21885
21886         git-version-gen: allow use on EBCDIC hosts
21887         * build-aux/git-version-gen (dirty): Use literal rather than tying
21888         ourselves to ascii.
21889         Reported by Steve Goetze.
21890
21891 2010-04-25  Bruno Haible  <bruno@clisp.org>
21892
21893         netdb: Add support for GNULIB_POSIXCHECK.
21894         * lib/netdb.in.h: Include warn-on-use.h.
21895         (getaddrinfo, freeaddrinfo, gai_strerror, getnameinfo): Warn if these
21896         functions are used when GNULIB_POSIXCHECK is defined and the
21897         getaddrinfo module is not in use.
21898         * m4/netdb_h.m4 (gl_HEADER_NETDB): Test whether getaddrinfo,
21899         freeaddrinfo, gai_strerror, getnameinfo are declared.
21900         * modules/netdb (Depends-on): Add warn-on-use.
21901         (Makefile.am): Include warn-on-use.h in netdb.h.
21902
21903 2010-04-24  Ian Beckwith  <ianb@erislabs.net>
21904
21905         build: avoid "make check" failure without .git/ directory
21906         * Makefile (sc_prefer_ac_check_funcs_once): Skip this test when
21907         there is no .git/ directory.
21908
21909 2010-04-25  Bruno Haible  <bruno@clisp.org>
21910
21911         ptsname: Fix misuse of ttyname_r.
21912         * lib/ptsname.c (__ptsname_r): Use __ttyname_r's return value instead
21913         of errno.
21914
21915 2010-04-25  Bruno Haible  <bruno@clisp.org>
21916
21917         ttyname_r: Make it work on Solaris 10.
21918         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Define HAVE_POSIXDECL_TTYNAME_R
21919         if the system function has the POSIX declaration. Test whether the
21920         function fails if the buffer is less than 128 bytes large.
21921         * lib/ttyname_r.c (ttyname_r): Handle both possible declarations of the
21922         system's ttyname_r function. Provide a reasonably large buffer.
21923         * modules/ttyname_r (Depends-on): Add extensions.
21924         * doc/posix-functions/ttyname_r.texi: Mention the Solaris problem.
21925
21926 2010-04-25  Bruno Haible  <bruno@clisp.org>
21927
21928         Use the 'extensions' module for some more functions on Solaris.
21929         * doc/posix-functions/asctime_r.texi: Recommend to use the 'extensions'
21930         module.
21931         * doc/posix-functions/ctime_r.texi: Likewise.
21932         * doc/posix-functions/getgrgid_r.texi: Likewise.
21933         * doc/posix-functions/getgrnam_r.texi: Likewise.
21934         * doc/posix-functions/getpwnam_r.texi: Likewise.
21935         * doc/posix-functions/getpwuid_r.texi: Likewise.
21936         * doc/posix-functions/readdir_r.texi: Likewise.
21937         * doc/posix-functions/sigwait.texi: Likewise.
21938         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Add comment.
21939         * doc/posix-functions/getlogin_r.texi: Mark Solaris problem as fixed.
21940
21941 2010-04-25  Bruno Haible  <bruno@clisp.org>
21942
21943         ttyname_r: Make it work on MacOS X 10.4 and Solaris 10.
21944         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Test whether the system function
21945         has the POSIX declaration. Set REPLACE_TTYNAME_R if not.
21946         * lib/ttyname_r.c: Include <limits.h>.
21947         (ttyname_r): Define using the system's ttyname_r function, if it exists
21948         and not on Solaris.
21949         * lib/unistd.in.h (ttyname_r): Replace function if REPLACE_TTYNAME_R is
21950         set.
21951         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize REPLACE_TTYNAME_R.
21952         * modules/unistd (Makefile.am): Substitute REPLACE_TTYNAME_R.
21953         * doc/posix-functions/ttyname_r.texi: Mark the problem as fixed.
21954         Reported by Simon Josefsson.
21955
21956 2010-04-25  Bruno Haible  <bruno@clisp.org>
21957
21958         Mention effects of _POSIX_PTHREAD_SEMANTICS on Solaris.
21959         * doc/posix-functions/asctime_r.texi: Mention the Solaris problem.
21960         * doc/posix-functions/ctime_r.texi: Likewise.
21961         * doc/posix-functions/getgrgid_r.texi: Likewise.
21962         * doc/posix-functions/getgrnam_r.texi: Likewise.
21963         * doc/posix-functions/getlogin_r.texi: Likewise.
21964         * doc/posix-functions/getpwnam_r.texi: Likewise.
21965         * doc/posix-functions/getpwuid_r.texi: Likewise.
21966         * doc/posix-functions/readdir_r.texi: Likewise.
21967         * doc/posix-functions/sigwait.texi: Likewise.
21968         * doc/posix-functions/ttyname_r.texi: Likewise.
21969         Reported by Simon Josefsson.
21970
21971 2010-04-25  Bruno Haible  <bruno@clisp.org>
21972
21973         gnulib-tool: Don't include hairy tests of dependencies in testdirs.
21974         * gnulib-tool (func_usage): Document that --with-*-tests options apply
21975         also to --create-testdir.
21976         (func_acceptable): Don't consider the status of *-tests modules here.
21977         (func_modules_transitive_closure): Consider it here, before including a
21978         test module.
21979         (func_import, func_create_testdir): Set inc_all_direct_tests,
21980         inc_all_indirect_tests.
21981         * doc/gnulib.texi (Extra tests modules): Document new behaviour of
21982         --create-testdir and --create-megatestdir.
21983
21984 2010-04-25  Bruno Haible  <bruno@clisp.org>
21985
21986         gnulib-tool: Add --without-*-tests options.
21987         * gnulib-tool (func_usage): Document the --without-*-tests options.
21988         (excl_cxx_tests, excl_longrunning_tests, excl_privileged_tests,
21989         excl_unportable_tests): New variables.
21990         Fail if they are specified with --import or --update.
21991         (func_acceptable): Respect the excl_*_tests variables.
21992         (func_import): Set the excl_*_tests variables to empty.
21993
21994 2010-04-25  Simon Josefsson  <simon@josefsson.org>
21995             Bruno Haible  <bruno@clisp.org>
21996
21997         Work around a MacOS X 10.4 bug with openpty.
21998         * doc/glibc-functions/openpty.texi: Mention the MacOS X 10.4 bug.
21999         * tests/test-openpty.c (main): Close the master side explicitly.
22000
22001 2010-04-25  Bruno Haible  <bruno@clisp.org>
22002
22003         strnlen: Fix a C++ test error on MacOS X and Solaris.
22004         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Don't set REPLACE_STRNLEN to 1 if
22005         the function is not declared.
22006         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com> and
22007         Simon Josefsson.
22008
22009 2010-04-24  Bruno Haible  <bruno@clisp.org>
22010
22011         Avoid a gcc warning.
22012         * tests/test-vasprintf.c (test_vasprintf, test_asprintf): Pass argument
22013         of correct type for %08lx directive.
22014         Reported by Eric Blake.
22015
22016 2010-04-24  Bruno Haible  <bruno@clisp.org>
22017
22018         vasnprintf: Correct errno value in case of out-of-memory.
22019         * lib/vasnprintf.c (VASNPRINTF): Set errno to 0 before calling SNPRINTF
22020         or sprintf. Use the errno value from SNPRINTF or sprintf.
22021         Reported by Ian Beckwith <ianb@erislabs.net>.
22022
22023 2010-04-24  Bruno Haible  <bruno@clisp.org>
22024
22025         ansi-c++-opt: Find correct compiler when cross-compiling.
22026         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): Use AC_CHECK_TOOLS instead of
22027         AC_CHECK_PROGS.
22028         Reported by Simon Josefsson.
22029
22030 2010-04-24  Giuseppe Scrivano  <gscrivano@gnu.org>
22031
22032         vc-list-files: Add support for subversion
22033         * build-aux/vc-list-files: Use "svn list" to generate the list of
22034         files controlled by subversion.
22035
22036 2010-04-23  Jim Meyering  <meyering@redhat.com>
22037
22038         vc-list-files tests: convert to use init.sh
22039         * tests/test-vc-list-files-cvs.sh: Invoke "$srcdir/init.sh" and
22040         path_prepend_.
22041         Use Exit, not exit.
22042         Use skip_ rather than open coding it.
22043         Remove trap set-up and compare definitions.
22044         * tests/test-vc-list-files-git.sh: Likewise.
22045         * modules/vc-list-files-tests (Files): Add tests/init.sh.
22046
22047 2010-04-22  Simon Josefsson  <simon@josefsson.org>
22048
22049         * top/maint.mk (sc_prohibit_backup_files): Prohibit checked in
22050         backup files.
22051
22052 2010-04-21  Simon Josefsson  <simon@josefsson.org>
22053
22054         * tests/test-vasprintf.c (test_vasprintf, test_asprintf): Test %08lx.
22055
22056 2010-04-20  Eric Blake  <eblake@redhat.com>
22057
22058         tests: be robust to ignored SIGPIPE
22059         * tests/test-select-in.sh: Consume all output.
22060         * tests/test-lseek.sh: Check correct exit status, while avoiding
22061         EPIPE.
22062
22063 2010-04-20  Simon Josefsson  <simon@josefsson.org>
22064             Bruno Haible  <bruno@clisp.org>
22065
22066         visibility: Don't use -fvisibility if it leads to a warning.
22067         * m4/visibility.m4 (gl_VISIBILITY): Check whether -Werror is usable. If
22068         yes, don't pretend that visibility works if it leads to a warning.
22069         Reported by Mike Gran <spk121@yahoo.com>.
22070
22071 2010-04-20  Andreas Gruenbacher  <agruen@suse.de>
22072
22073         * build-aux/bootstrap: Use "git -h" for testing for supported options
22074         instead of "git --help".  The short-form option only shows a summary,
22075         and doesn't layout the full man page.  Grep for the full option name
22076         in the summary, too.
22077
22078 2010-04-19  Bruno Haible  <bruno@clisp.org>
22079
22080         relocatable: Drop the need to define RELOCATABLE_STRIP in Makefile.am.
22081         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Set RELOCATABLE_STRIP.
22082         * doc/relocatable-maint.texi (Supporting Relocation): Remove the
22083         mention of RELOCATABLE_STRIP.
22084         Reported by Sylvain Beucler <beuc@beuc.net>.
22085
22086 2010-04-19  Bruno Haible  <bruno@clisp.org>
22087
22088         * lib/diffseq.h: Fix typo in comment.
22089         Reported by Eric Blake.
22090
22091 2010-04-19  Bruno Haible  <bruno@clisp.org>
22092
22093         ioctl: Move autoconf macro to a .m4 file.
22094         * m4/ioctl.m4: New file, extracted from modules/ioctl.
22095         * modules/ioctl (Files): Add it.
22096         (configure.ac): Simply invoke gl_FUNC_IOCTL.
22097         Reported by Ian Beckwith <ianb@erislabs.net>.
22098
22099 2010-04-18  Andreas Gruenbacher  <agruen@suse.de>
22100             Bruno Haible  <bruno@clisp.org>
22101
22102         diffseq: Accommodate use-case with abstract arrays.
22103         * lib/diffseq.h (struct context): Remove xvec, yvec fields if ELEMENT
22104         is not defined.
22105         (diag, compareseq): Remove local variables xv, yv if ELEMENT is not
22106         defined. Use local macro XREF_YREF_EQUAL instead of EQUAL.
22107
22108 2010-04-18  Bruno Haible  <bruno@clisp.org>
22109
22110         * doc/posix-headers/stdbool.texi: More precise wording.
22111
22112 2010-04-17  Jim Meyering  <meyering@redhat.com>
22113
22114         maint.mk: use gnu-style indentation in an embedded perl script
22115         * top/maint.mk (detect_empty_lines_at_EOF_): Clean up formatting.
22116         Rename variable: s/two/last_two_bytes/
22117
22118 2010-04-16  Eric Blake  <eblake@redhat.com>
22119
22120         test-stdbool: skip test that fails with Solaris CC
22121         * tests/test-stdbool.c (f): Skip test that causes compilation
22122         error under buggy C++ compiler.
22123         * lib/stdbool.in.h: Document the limitation.
22124         * doc/posix-headers/stdbool.texi (stdbool.h): Likewise.
22125
22126         setenv: allow compilation with C++
22127         * lib/setenv.c (__add_to_environ): Add a cast.  Also, drop use of
22128         register keyword.
22129
22130         stdint: allow test to pass with C++
22131         * tests/test-stdint.c: Define __STDC_CONSTANT_MACROS, for glibc.
22132
22133         getopt: allow compilation with C++
22134         * lib/getopt_int.h (__ordering): Hoist enum declaration outside
22135         struct.
22136         * lib/getopt.c (_getopt_internal_r): Use correct type.
22137         Reported by Dagobert Michelson, via Joel E. Denny.
22138
22139 2010-04-16  Bruno Haible  <bruno@clisp.org>
22140
22141         Override netdb.h always.
22142         * modules/netdb (Makefile.am): Augment BUILT_SOURCES always.
22143         * m4/netdb_h.m4 (gl_HEADER_NETDB): Don't set NETDB_H.
22144         Reported by Ludovic Courtès <ludo@gnu.org>.
22145
22146 2010-04-15  Bruno Haible  <bruno@clisp.org>
22147
22148         openpty: Fix mistake from 2010-03-21.
22149         * m4/pty.m4 (gl_FUNC_OPENPTY): Define HAVE_OPENPTY when openpty exists.
22150         Reported by Simon Josefsson.
22151
22152 2010-04-15  Eric Blake  <eblake@redhat.com>
22153
22154         test-forkpty: fix expected signature
22155         * tests/test-forkpty.c (SIGNATURE_CHECK): Add appropriate const.
22156         Reported by Simon Josefsson.
22157
22158 2010-04-15  Jim Meyering  <meyering@redhat.com>
22159
22160         maint.mk: texinfo_suffix_re_: correct the default regexp
22161         * top/maint.mk (texinfo_suffix_re_): Fix default regexp.
22162
22163         * top/maint.mk (sc_texinfo_acronym): Improve filename regexp, and
22164         make it configurable via texinfo_suffix_re_.
22165
22166 2010-04-14  Eric Blake  <eblake@redhat.com>
22167
22168         strtok_r: relax license to LGPLv2+
22169         * modules/strtok_r (License): Relax license.
22170         Reported by Matthias Bolte.
22171
22172 2010-04-14  Simon Josefsson  <simon@josefsson.org>
22173
22174         * lib/gc-libgcrypt.c (gc_init): Use MIN_GCRYPT_VERSION set to
22175         version 1.4.4 by default instead of requiring the libgcrypt
22176         version used during build.  This makes it possible to use the
22177         application with older but still binary compatible libgcrypt
22178         versions.
22179
22180 2010-04-13  Eric Blake  <eblake@redhat.com>
22181
22182         getopt-gnu: match recent glibc fixes and posix ruling
22183         * tests/test-getopt.h (test_getopt): Strengthen tests of leading
22184         '+' handling, when requesting extensions.
22185         * tests/test-getopt_long.h (test_getopt_long): Strengthen test of
22186         'W;' handling.
22187         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Detect glibc 2.11 bug.
22188         * doc/posix-functions/getopt.texi (getopt): Document this.
22189         * doc/glibc-functions/getopt_long.texi (getopt_long): Likewise.
22190         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
22191         Likewise.
22192
22193         getopt: merge bug fixes from glibc
22194         * lib/getopt.c (_getopt_internal_r): Use correct message for 'W;'
22195         diagnostics.  Honor '+:' correctly.  Reject ';'.
22196
22197         getopt-posix: detect MacOS bug
22198         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Reject MacOS botch of
22199         optind when missing a required argument.
22200         * doc/posix-functions/getopt.texi (getopt): Document the bug.
22201         * doc/glibc-functions/getopt_long.texi (getopt_long): Likewise.
22202         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
22203         Likewise.
22204
22205         getopt-posix: avoid spurious failure on Solaris
22206         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Check for getopt_clip as
22207         an indicator that setting optind=1 is sufficient for reset.
22208
22209         getopt-posix: avoid spurious failure on FreeBSD
22210         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Check for optreset even
22211         in POSIX mode, since the m4 test uses it.
22212
22213         gnulib-tool: silence warning on BSD sh
22214         * gnulib-tool: Avoid leaking warning about unknown 'declare'.
22215
22216 2010-04-13  Jim Meyering  <meyering@redhat.com>
22217
22218         doc: users.txt: GNU patch now uses gnulib
22219         * users.txt: Add patch.
22220
22221 2010-04-12  Jim Meyering  <meyering@redhat.com>
22222
22223         maint.mk: generate more concise timing data for syntax-check rules
22224         * top/maint.mk ($(sc_z_rules_)): Remove the ":", "sc_" prefix and
22225         " done" from each line that reports a syntax-check test duration.
22226
22227 2010-04-12  Andreas Gruenbacher  <agruen@suse.de>
22228
22229         git-version-gen: use "git update-index..." rather than "git status"
22230         * build-aux/git-version-gen: Use git update-index --refresh, not
22231         "git status".  With some versions of git, "git status" would fail
22232         to update the index and result in an unwarranted "-dirty" suffix.
22233
22234 2010-04-11  Jim Meyering  <meyering@redhat.com>
22235
22236         openat: correct formatting (no semantic change)
22237         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Correct formatting in AC_DEFINE.
22238         Suggested by Bruno Haible.
22239
22240 2010-04-11  Bruno Haible  <bruno@clisp.org>
22241
22242         Stricter declaration checking in testdirs.
22243         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
22244         If for_tests is true, augment AM_CPPFLAGS to define
22245         GNULIB_STRICT_CHECKING.
22246         * build-aux/warn-on-use.h (_GL_WARN_ON_USE, _GL_WARN_ON_USE_CXX): When
22247         GNULIB_STRICT_CHECKING is defined, verify that the function is
22248         declared.
22249
22250 2010-04-11  Paolo Bonzini  <bonzini@gnu.org>
22251             Bruno Haible  <bruno@clisp.org>
22252
22253         libunistring: Improve configure output.
22254         * m4/libunistring.m4 (gl_LIBUNISTRING): Check for libiconv first.
22255         Don't say "consider installing GNU libunistring" when checking again
22256         with libiconv.
22257
22258 2010-04-11  Bruno Haible  <bruno@clisp.org>
22259
22260         libunistring: Correct value of $LTLIBUNISTRING.
22261         * m4/libunistring.m4 (gl_LIBUNISTRING): When it depends on libiconv,
22262         correct the value of $LTLIBUNISTRING.
22263
22264 2010-04-11  Bruno Haible  <bruno@clisp.org>
22265
22266         havelib: Add static libraries to LIBS in the right order.
22267         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): When $LIB[]NAME contains no
22268         -l options, prepend it to $LIBS, instead of appending it to $LIBS.
22269
22270 2010-04-11  Bruno Haible  <bruno@clisp.org>
22271
22272         libunistring: Detect libunistring also when it depends on libiconv.
22273         * m4/libunistring.m4 (gl_LIBUNISTRING): Unset the cached result before
22274         the second AC_LIB_HAVE_LINKFLAGS invocation.
22275
22276 2010-04-11  James Youngman  <jay@gnu.org>
22277
22278         close-stream: declare local scalars to be "const"
22279         * lib/close-stream.c (close_stream): Make boolean variables const
22280         to document the fact that we set but do not change them.
22281
22282 2010-04-11  Bruno Haible  <bruno@clisp.org>
22283
22284         * m4/libunistring.m4 (gl_LIBUNISTRING): Fix typo in comment.
22285
22286 2010-04-11  Jim Meyering  <meyering@redhat.com>
22287
22288         maint.mk: don't include dist-check.mk
22289         * top/maint.mk: Remove bogus include directive.
22290
22291         maint.mk: improve empty-line-at-EOF check
22292         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Use Perl-based
22293         solution, rather than tail+Perl-based one.  The latter would read
22294         a few kilobytes from the end of each file, and did not handle empty
22295         files properly.
22296
22297         maint.mk: print the elapsed time for each syntax-check rule
22298         * top/maint.mk (sc_m_rules_): Save start time in a file.
22299         (sc_z_rules_): New rules: remove temp file and print elapsed time.
22300         (local-check): Interpose the .z rules
22301
22302 2010-04-11  Jim Meyering  <meyering@redhat.com>
22303
22304         maint.mk: detect_empty_lines_at_EOF_: avoid FP for an empty file
22305         * top/maint.mk (detect_empty_lines_at_EOF_): Don't confuse an
22306         empty file with one that ends in an empty line.
22307
22308 2010-04-10  Bruno Haible  <bruno@clisp.org>
22309
22310         mkdir: Make it work on mingw64.
22311         * lib/sys_stat.in.h: Include <direct.h> together with <io.h>.
22312         * lib/mkdir.c: Update comment.
22313         Reported by Roman Donchenko (Роман Ð”онченко) <dxdragon@yandex.ru>.
22314
22315 2010-04-10  Bruno Haible  <bruno@clisp.org>
22316
22317         Don't override improved macro from newer autoconf.
22318         * m4/gnulib-common.m4 (AC_C_RESTRICT): Don't define for
22319         autoconf >= 2.62.
22320         Reported by Joel E. Denny <jdenny@clemson.edu>.
22321
22322 2010-04-10  Jim Meyering  <meyering@redhat.com>
22323
22324         maint.mk: new syntax-check rule: prohibit empty lines at end of file
22325         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): New rule.
22326
22327         maint.mk: correct a diagnostic
22328         * top/maint.mk (sc_prohibit_HAVE_MBRTOWC): Fix obsolete use of $re
22329         in diagnostic; now use $prohibit.
22330
22331 2010-04-10  Bruno Haible  <address@hidden>
22332
22333         fchownat: Fix a C++ test error on Solaris 8.
22334         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Don't set REPLACE_FCHOWNAT to 1 if
22335         the function does not exist.
22336
22337 2010-04-10  Bruno Haible  <bruno@clisp.org>
22338
22339         vasnprintf: Add more tests.
22340         * tests/test-vasnprintf-posix.c: Include <errno.h>.
22341         (test_function): Test converting an invalid wide string.
22342
22343         vasnprintf: Correct handling of unconvertible wide string arguments.
22344         * lib/vasnprintf.c (MAX_ROOM_NEEDED): New function, extracted from
22345         VASNPRINTF.
22346         (VASNPRINTF): Use it. After snprintf failed, allocate more memory only
22347         if HAVE_SNPRINTF_RETVAL_C99 is false and the allocated memory is
22348         smaller than the expected maximum need for the directive. Set errno to
22349         EILSEQ, not EINVAL, when the directive is 'c' or 's'.
22350         (local_strnlen, local_wcslen, local_wcsnlen): Update conditions.
22351         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Require AC_C_INLINE and
22352         gl_SNPRINTF_RETVAL_C99. Define HAVE_SNPRINTF_RETVAL_C99.
22353         * modules/vasnprintf (Files): Add m4/printf.m4.
22354         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
22355
22356 2010-04-10  Bruno Haible  <bruno@clisp.org>
22357
22358         vasnprintf: Fix crash in %ls directive.
22359         * lib/vasnprintf.c (VASNPRINTF): Don't abort when a unconvertible wide
22360         string is passed as argument to %ls, with no precision and no width.
22361         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
22362
22363 2010-04-10  Bruno Haible  <bruno@clisp.org>
22364
22365         vasnprintf: Fix multiple test failures on mingw.
22366         * lib/vasnprintf.c (SNPRINTF) [mingw]: Define to snprintf, not
22367         _snprintf, or snwprintf, not _snwprintf.
22368
22369 2010-04-10  Bruno Haible  <bruno@clisp.org>
22370
22371         write: Fix a C++ test error on mingw.
22372         * lib/unistd.in.h (write): Use _GL_CXXALIAS_SYS_CAST.
22373
22374 2010-04-10  Bruno Haible  <bruno@clisp.org>
22375
22376         vasnprintf test: Reduce code duplication.
22377         * tests/test-vasnprintf.c (test_function): New function, extracted from
22378         test_vasnprintf.
22379         (test_vasnprintf, test_asnprintf): Invoke it.
22380
22381 2010-04-10  Bruno Haible  <bruno@clisp.org>
22382
22383         strnlen: Fix warning in C++ mode on MacOS X.
22384         * lib/string.in.h (strnlen): Use the modern idiom.
22385         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Set REPLACE_STRNLEN to 1, instead of
22386         defining strnlen as a macro already in <config.h>.
22387         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
22388         REPLACE_STRNLEN.
22389         * modules/string (Makefile.am): Substitute REPLACE_STRNLEN.
22390         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
22391
22392 2010-04-08  James Youngman  <jay@gnu.org>
22393
22394         * doc/manywarnings.texi (manywarnings): Add missing parenthesis in
22395         the example.
22396
22397 2010-04-09  Jim Meyering  <meyering@redhat.com>
22398
22399         maint.mk: print better diagnostic when there is no $(_hv_file)
22400         * top/maint.mk (sc_cross_check_PATH_usage_in_tests): Skip test and
22401         announce that when $(_hv_file) (aka help-version) does not exist.
22402
22403         init.sh: run tr in the "C" locale to avoid multibyte interpretation
22404         * tests/init.sh (rand_bytes_): Run tr in the "C" locale so it does
22405         not try to interpret its random input bytes.  Jarno Rajahalme reported
22406         that ./test-xalloc-die.sh would fail with "tr: Illegal byte sequence".
22407         on Darwin 10.3.0 with LC_CTYPE=UTF-8.
22408         (mktempd_): Likewise, just in case.
22409
22410         ftruncate: add two years to projected module removal date: 2012
22411         * m4/ftruncate.m4: Adjust comments.
22412
22413         ftruncate: mark module as obsolete; even MinGW provides it, now
22414         * modules/ftruncate (Status): Obsolete.
22415         (Notice): Say that.
22416         * doc/posix-functions/ftruncate.texi: Don't say MinGW lacks it.
22417         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/9203
22418
22419 2010-04-08  Bruno Haible  <bruno@clisp.org>
22420
22421         Fix side effects from tests-related modules.
22422         * modules/dprintf-posix (Comment): New section.
22423         * modules/fprintf-posix (Comment): Likewise.
22424         * modules/obstack-printf-posix (Comment): Likewise.
22425         * modules/printf-posix (Comment): Likewise.
22426         * modules/snprintf-posix (Comment): Likewise.
22427         * modules/sprintf-posix (Comment): Likewise.
22428         * modules/vasnprintf-posix (Comment): Likewise.
22429         * modules/vasprintf-posix (Comment): Likewise.
22430         * modules/vdprintf-posix (Comment): Likewise.
22431         * modules/vfprintf-posix (Comment): Likewise.
22432         * modules/vprintf-posix (Comment): Likewise.
22433         * modules/vsnprintf-posix (Comment): Likewise.
22434         * modules/vsprintf-posix (Comment): Likewise.
22435         * modules/xprintf-posix (Comment): Likewise.
22436         * modules/xvasprintf-posix (Comment): Likewise.
22437         * modules/ceilf-tests (Depends-on): Remove fprintf-posix.
22438         * modules/floorf-tests (Depends-on): Likewise.
22439         * modules/round-tests (Depends-on): Likewise.
22440         * modules/roundf-tests (Depends-on): Likewise.
22441         * modules/trunc-tests (Depends-on): Likewise.
22442         * modules/truncf-tests (Depends-on): Likewise.
22443         * tests/test-ceilf2.c (check): Don't invoke fprintf if the
22444         'fprintf-posix' module is not present.
22445         * tests/test-floorf2.c (check): Likewise.
22446         * tests/test-trunc2.c (check): Likewise.
22447         * tests/test-truncf2.c (check): Likewise.
22448         * tests/test-round2.c (equal): Likewise.
22449         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
22450
22451 2010-04-07  Karl Berry  <karl@gnu.org>
22452
22453         * config/srclist.txt,
22454         * config/srclistvars.sh,
22455         * config/srclist-update: doc fixes.
22456
22457 2010-04-07  Jim Meyering  <meyering@redhat.com>
22458
22459         maint.mk: add a PATH crosschecking syntax-check rule
22460         * top/maint.mk (sc_cross_check_PATH_usage_in_tests): New rule.
22461         Useful if you use a test like the one in help-version (coreutils,
22462         diffutils, grep, gzip) that ensures $(VERSION) matches what is
22463         printed by prog --version.
22464
22465 2010-04-06  Bruno Haible  <bruno@clisp.org>
22466
22467         Fix link error on mingw.
22468         * modules/unistd-c++-tests (test_unistd_c___LDADD): Add LIBSOCKET.
22469         * modules/fcntl-h-c++-tests (test_fcntl_h_c___LDADD): Likewise.
22470
22471 2010-04-06  Bruno Haible  <bruno@clisp.org>
22472
22473         Assume rmdir exists.
22474         * lib/rmdir.c (rpl_rmdir): Remove code that invokes the rmdir program.
22475
22476 2010-04-06  Giuseppe Scrivano <gscrivano@gnu.org>
22477
22478         doc: update users.txt
22479         * users.txt: Add gcal.
22480
22481 2010-04-06  Jim Meyering  <meyering@redhat.com>
22482
22483         init.sh: simply unset TMPDIR rather than risking env -i
22484         * tests/init.sh (mktempd_): Using env -i is rather harsh, and
22485         although it probably works fine on all Unix-based systems, some
22486         systems (Cygwin?) cannot tolerate a totally cleared environment.
22487         Suggestion from Eric Blake.
22488
22489 2010-04-06  Jim Meyering  <meyering@redhat.com>
22490
22491         init.sh: portability fix: use env's POSIX-specified -i option not -u
22492         * tests/init.sh (mktempd_): Use env -i and set PATH explicitly rather
22493         than unportable env -u.  Solaris 5.11's env lacks support for -u.
22494
22495 2010-04-05  Bruno Haible  <bruno@clisp.org>
22496
22497         btowc: Work around Cygwin 1.7.2 bug.
22498         * m4/btowc.m4 (gl_FUNC_BTOWC): Set REPLACE_BTOWC to 1 if the function
22499         does not map NUL to 0.
22500         * doc/posix-functions/btowc.texi: Mention the Cygwin bug.
22501
22502 2010-04-05  Bruno Haible  <bruno@clisp.org>
22503
22504         Make the multithread modules work on Cygwin 1.7.2.
22505         * m4/threadlib.m4 (gl_THREADLIB_BODY): Improve the test whether
22506         imported symbols can be declared weak, so that it returns "no" on
22507         Cygwin 1.7.2.
22508
22509 2010-04-05  Bruno Haible  <bruno@clisp.org>
22510
22511         Use the module 'strncat'.
22512         * modules/unistr/u8-strncat (Depends-on): Add strncat.
22513
22514         Tests for module 'strncat'.
22515         * modules/strncat-tests: New file.
22516         * tests/test-strncat.c: New file.
22517
22518         New module 'strncat'.
22519         * lib/string.in.h (strncat): New declaration.
22520         * lib/strncat.c: New file, based on lib/unistr/u-strncat.h.
22521         * m4/strncat.m4: New file, based on m4/memchr.m4.
22522         * modules/strncat: New file.
22523         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Also check whether strncat
22524         is declared.
22525         (gl_HEADER_STRING_H_DEFAULTS): Initialize GNULIB_STRNCAT,
22526         REPLACE_STRNCAT.
22527         * modules/string (Makefile.am): Substitute GNULIB_STRNCAT,
22528         REPLACE_STRNCAT.
22529         * doc/posix-functions/strncat.texi: Mention the Solaris bug and the new
22530         module.
22531         * tests/test-string-c++.cc: Check signature of strncat.
22532
22533 2010-04-05  Jim Meyering  <meyering@redhat.com>
22534
22535         xstrtoumax-tests: convert to use init.sh
22536         * modules/xstrtoumax-tests (Files): Add tests/init.sh.
22537         * tests/test-xstrtoumax.sh: Invoke "$srcdir/init.sh" and path_prepend_.
22538         Use Exit, not exit.
22539         Remove uses of $EXEEXT and "./" to run a program in the current dir.
22540
22541         xstrtoimax-tests: convert to use init.sh
22542         * modules/xstrtoimax-tests (Files): Add tests/init.sh.
22543         * tests/test-xstrtoimax.sh: Invoke "$srcdir/init.sh" and path_prepend_.
22544         Use Exit, not exit.
22545         Remove uses of $EXEEXT and "./" to run a program in the current dir.
22546
22547 2010-04-05  Bruno Haible  <bruno@clisp.org>
22548
22549         sys_socket: Avoid #define replacements in C++ mode.
22550         * lib/sys_socket.in.h (close, gethostname, select): In C++, attach a
22551         warning to the function if possible, rather than #defining the symbol
22552         to a dysfunctional alias.
22553
22554 2010-04-05  Bruno Haible  <bruno@clisp.org>
22555
22556         fseeko: Fix C++ test error on mingw.
22557         * m4/fseeko.m4 (gl_HAVE_FSEEKO): New macro, extracted from
22558         gl_FUNC_FSEEKO.
22559         (gl_REPLACE_FSEEKO): Also set REPLACE_FSEEKO if appropriate.
22560         (gl_FUNC_FSEEKO): Require gl_HAVE_FSEEKO. Update.
22561         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Don't fiddle with internals of the
22562         fseeko module. Instead, invoke gl_REPLACE_FSEEKO.
22563
22564 2010-04-05  Bruno Haible  <bruno@clisp.org>
22565
22566         duplocale: Improve test output.
22567         * tests/test-duplocale.c (main): Print reason for skipped test.
22568
22569 2010-04-05  Bruno Haible  <bruno@clisp.org>
22570
22571         Assume rmdir exists.
22572         * m4/rmdir.m4 (gl_FUNC_RMDIR): Remove test whether rmdir exists.
22573         * doc/posix-functions/rmdir.texi: Remove mention of "old platforms".
22574
22575 2010-04-05  Bruno Haible  <bruno@clisp.org>
22576
22577         Fix link error on Solaris 8 with cc.
22578         * modules/pty-c++-tests (test_pty_c___LDADD): Add LIBINTL.
22579
22580 2010-04-05  Bruno Haible  <bruno@clisp.org>
22581
22582         frexpl: Fix a C++ test error on Solaris 8 and Cygwin.
22583         * lib/math.in.h (frexpl): Fix condition on _GL_CXXALIASWARN invocation.
22584
22585 2010-04-05  Bruno Haible  <bruno@clisp.org>
22586
22587         vasprintf: Update documentation.
22588         * doc/glibc-functions/asprintf.texi: Mention the 'vasprintf' module.
22589
22590 2010-04-05  Bruno Haible  <bruno@clisp.org>
22591
22592         ptsname: Improve test.
22593         * tests/test-ptsname.c (main): Also try the various master names of BSD
22594         systems.
22595
22596 2010-04-05  Bruno Haible  <bruno@clisp.org>
22597
22598         memchr: Avoid a possible C++ test error.
22599         * lib/string.in.h (memchr): Provide declaration if function is missing.
22600         * m4/memchr.m4 (gl_FUNC_MEMCHR): If the function is missing, set
22601         HAVE_MEMCHR to 0, not REPLACE_MEMCHR to 1.
22602         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize HAVE_MEMCHR.
22603         * modules/string (Makefile.am): Substitute HAVE_MEMCHR.
22604
22605 2010-04-05  Bruno Haible  <bruno@clisp.org>
22606
22607         strtok_r: Improve idiom.
22608         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Invoke gl_PREREQ_STRDUP only when
22609         AC_LIBOBJ is used.
22610
22611 2010-04-05  Bruno Haible  <bruno@clisp.org>
22612
22613         strdup: Improve idiom.
22614         * m4/strdup.m4 (gl_FUNC_STRDUP): Invoke gl_PREREQ_STRDUP only when
22615         AC_LIBOBJ is used.
22616         (gl_FUNC_STRDUP_POSIX): When strdup is missing and malloc is not POSIX
22617         compliant, don't set REPLACE_STRDUP to 1. Invoke gl_PREREQ_STRDUP only
22618         when AC_LIBOBJ is used.
22619
22620 2010-04-05  Bruno Haible  <bruno@clisp.org>
22621
22622         mbsinit, mbrtowc, wcrtomb: Improve idioms.
22623         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): When the function does not exist,
22624         don't set REPLACE_MBSINIT to 1.
22625         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): When the function does not exist,
22626         don't set REPLACE_MBRTOWC to 1.
22627         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): When the function does not
22628         exist, don't set REPLACE_MBSRTOWCS to 1.
22629         * m4/mbsnrtowcs.m4 (gl_FUNC_MBSNRTOWCS): When the function does not
22630         exist, don't set REPLACE_MBSNRTOWCS to 1.
22631         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): When the function does not exist,
22632         don't set REPLACE_WCRTOMB to 1.
22633         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): When the function does not
22634         exist, don't set REPLACE_WCSRTOMBS to 1.
22635         * m4/wcsnrtombs.m4 (gl_FUNC_WCSNRTOMBS): When the function does not
22636         exist, don't set REPLACE_WCSNRTOMBS to 1.
22637
22638 2010-04-05  Bruno Haible  <bruno@clisp.org>
22639
22640         ldexpl: Improve idiom.
22641         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): When the function is not declared,
22642         make sure to set HAVE_DECL_LDEXPL to 0.
22643
22644 2010-04-05  Jim Meyering  <meyering@redhat.com>
22645
22646         xstrtol-tests: convert to use init.sh
22647         * modules/xstrtol-tests (Files): Add tests/init.sh.
22648         * tests/test-xstrtol.sh: Invoke "$srcdir/init.sh" and path_prepend_.
22649         Use Exit, not exit.
22650         Remove uses of $EXEEXT and "./" to run a program in the current dir.
22651
22652         atexit-tests: convert to use init.sh
22653         * modules/atexit-tests (Files): Add tests/init.sh.
22654         * tests/test-atexit.sh: Invoke "$srcdir/init.sh" and path_prepend_.
22655         Use Exit, not exit.
22656         Remove uses of $EXEEXT and "./" to run a program in the current dir.
22657
22658         init.sh: fix typo
22659         * tests/init.sh: Restore omitted ":" before stderr_fileno_ initialization.
22660
22661         init.sh: make it easier for a test script to write to the tty, ...
22662         when using automake's parallel-tests mode.
22663         * tests/init.sh (stderr_fileno_): Define overridable variable.
22664         (warn_): New function, to use it.
22665         (fail_, skip_, framework_failure_): Use warn_.
22666
22667 2010-04-04  Bruno Haible  <bruno@clisp.org>
22668
22669         btowc: Avoid warning.
22670         * lib/btowc.c: Include <stdlib.h>.
22671         Reported by Hauke Fath <hauke@espresso.rhein-neckar.de>.
22672
22673 2010-04-04  Hauke Fath  <hauke@espresso.rhein-neckar.de>  (tiny change)
22674             Bruno Haible  <bruno@clisp.org>
22675
22676         wchar: Port to NetBSD 1.5.
22677         * lib/wchar.in.h (WEOF): Provide fallback also when wint_t exists.
22678         * lib/wctype.in.h (WEOF): Likewise.
22679
22680 2010-04-04  Hauke Fath  <hauke@espresso.rhein-neckar.de>  (tiny change)
22681             Bruno Haible  <bruno@clisp.org>
22682
22683         Port extended stdio to NetBSD 1.5.
22684         * lib/stdio-impl.h [NetBSD]: Include <sys/param.h>.
22685         (struct __sfileext, fp_ub): Define the "old way" for NetBSD 1.5Z and
22686         older.
22687
22688 2010-04-04  Bruno Haible  <bruno@clisp.org>
22689
22690         string: Remove unused substitution.
22691         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Don't initialize
22692         HAVE_DECL_STRERROR.
22693         * modules/string (Makefile.am): Don't substitute HAVE_DECL_STRERROR.
22694
22695 2010-04-04  Bruno Haible  <bruno@clisp.org>
22696
22697         strtod: Avoid a possible C++ test error.
22698         * m4/strtod.m4 (gl_FUNC_STRTOD): When setting HAVE_STRTOD to 0, don't
22699         set REPLACE_STRTOD.
22700
22701 2010-04-04  Bruno Haible  <bruno@clisp.org>
22702
22703         strerror: Update documentation.
22704         * doc/posix-functions/strerror.texi: Remove mention of old platforms.
22705
22706 2010-04-04  Bruno Haible  <bruno@clisp.org>
22707
22708         stdio: Fix some C++ test errors on Solaris 8 with GCC.
22709         * lib/stdio.in.h (vdprintf, vfprintf, vprintf, vsprintf): Use
22710         _GL_CXXALIAS_SYS_CAST.
22711
22712 2010-04-04  Bruno Haible  <bruno@clisp.org>
22713
22714         frexpl: Fix a C++ test error on Solaris 8 and Cygwin.
22715         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): When the
22716         function is not declared, set HAVE_DECL_FREXPL to 0, instead of setting
22717         REPLACE_FREXPL to 1.
22718         * doc/posix-functions/frexpl.texi: Update documentation.
22719
22720 2010-04-04  Bruno Haible  <bruno@clisp.org>
22721
22722         math: Fix some C++ test errors on Solaris 8 and Cygwin.
22723         * lib/math.in.h (cosl, logl, sinl): Use simpler idiom.
22724
22725 2010-04-04  Bruno Haible  <bruno@clisp.org>
22726
22727         Implement nanosleep for native Windows.
22728         * lib/nanosleep.c (nanosleep): New implementation for native Windows.
22729
22730 2010-04-04  Bruno Haible  <bruno@clisp.org>
22731
22732         math: Fix some C++ test errors on Solaris 8.
22733         * lib/math.in.h (truncf, trunc): Use simpler idiom.
22734
22735 2010-04-04  Bruno Haible  <bruno@clisp.org>
22736
22737         math: Fix some C++ test errors on Cygwin.
22738         * lib/math.in.h (ceilf, ceill, floorf, floorl, roundf, round, roundl,
22739         truncl): Provide declaration if the system does not have it.
22740         * m4/ceilf.m4 (gl_FUNC_CEILF): If the function is not declared, set
22741         HAVE_DECL_CEILF to 0, not REPLACE_CEILF to 1.
22742         * m4/ceill.m4 (gl_FUNC_CEILL): If the function is not declared, set
22743         HAVE_DECL_CEILL to 0, not REPLACE_CEILL to 1.
22744         * m4/floorf.m4 (gl_FUNC_FLOORF): If the function is not declared, set
22745         HAVE_DECL_FLOORF to 0, not REPLACE_FLOORF to 1.
22746         * m4/floorl.m4 (gl_FUNC_FLOORL): If the function is not declared, set
22747         HAVE_DECL_FLOORL to 0, not REPLACE_FLOORL to 1.
22748         * m4/round.m4 (gl_FUNC_ROUND): If the function is not declared, set
22749         HAVE_DECL_ROUND to 0, not REPLACE_ROUND to 1.
22750         * m4/roundf.m4 (gl_FUNC_ROUNDF): If the function is not declared, set
22751         HAVE_DECL_ROUNDF to 0, not REPLACE_ROUNDF to 1.
22752         * m4/roundl.m4 (gl_FUNC_ROUNDL): If the function is not declared, set
22753         HAVE_DECL_ROUNDL to 0, not REPLACE_ROUNDL to 1.
22754         * m4/truncl.m4 (gl_FUNC_TRUNCL): If the function is not declared, set
22755         HAVE_DECL_TRUNCL to 0, not REPLACE_TRUNCL to 1.
22756         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize HAVE_DECL_CEILF,
22757         HAVE_DECL_CEILL, HAVE_DECL_FLOORF, HAVE_DECL_FLOORL, HAVE_DECL_ROUND,
22758         HAVE_DECL_ROUNDF, HAVE_DECL_ROUNDL, HAVE_DECL_TRUNCL.
22759         * modules/math (Makefile.am): Substitute HAVE_DECL_CEILF,
22760         HAVE_DECL_CEILL, HAVE_DECL_FLOORF, HAVE_DECL_FLOORL, HAVE_DECL_ROUND,
22761         HAVE_DECL_ROUNDF, HAVE_DECL_ROUNDL, HAVE_DECL_TRUNCL.
22762
22763 2010-04-04  Bruno Haible  <bruno@clisp.org>
22764
22765         * m4/ceilf.m4 (gl_FUNC_CEILF): Remove redundant AC_SUBST invocation.
22766         * m4/ceill.m4 (gl_FUNC_CEILL): Likewise.
22767         * m4/floorf.m4 (gl_FUNC_FLOORF): Likewise.
22768         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
22769         * m4/isfinite.m4 (gl_ISFINITE): Likewise.
22770         * m4/isinf.m4 (gl_ISINF): Likewise.
22771         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
22772
22773 2010-04-04  Bruno Haible  <bruno@clisp.org>
22774
22775         * m4/trunc.m4 (gl_FUNC_TRUNC): Remove redundant AC_SUBST invocation.
22776         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
22777
22778 2010-04-04  Bruno Haible  <bruno@clisp.org>
22779
22780         * m4/tmpfile.m4 (gl_FUNC_TMPFILE): Renamed from gl_TMPFILE.
22781         * modules/tmpfile (configure.ac): Update.
22782
22783         tmpfile: Fix C++ test error on mingw.
22784         * lib/stdio.in.h (tmpfile): New declaration.
22785         * m4/tmpfile.m4 (gl_TMPFILE): Require gl_STDIO_H_DEFAULTS. Set
22786         REPLACE_TMPFILE instead of defining tmpfile as a macro in config.h.
22787         * modules/tmpfile (Depends-on): Add stdio.
22788         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
22789         * m4/stdio_h.m4 (gl_STDIO_H): Also check whether tmpfile is declared.
22790         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_TMPFILE and REPLACE_TMPFILE.
22791         * modules/stdio (Makefile.am): Substitute GNULIB_TMPFILE and
22792         REPLACE_TMPFILE.
22793         * tests/test-stdio-c++.cc (tmpfile): Verify signature.
22794
22795 2010-04-04  Bruno Haible  <bruno@clisp.org>
22796
22797         ioctl: Fix C++ test error on mingw.
22798         * lib/ioctl.c (ioctl): Renamed from rpl_ioctl.
22799         * lib/sys_ioctl.in.h (ioctl): When SYS_IOCTL_H_HAVE_WINSOCK2_H is 1,
22800         use _GL_FUNCDECL_SYS, not _GL_FUNCDECL_RPL.
22801
22802 2010-04-03  Bruno Haible  <bruno@clisp.org>
22803
22804         wcwidth: Fix C++ test error on mingw.
22805         * lib/wcwidth.c (wcwidth): Renamed from rpl_wcwidth.
22806         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): If the wcwidth function does not
22807         exist, don't set REPLACE_WCWIDTH. Instead, rely on HAVE_DECL_WCWIDTH.
22808
22809 2010-04-03  Bruno Haible  <bruno@clisp.org>
22810
22811         nanosleep: Fix C++ test error on mingw.
22812         * lib/nanosleep.c (nanosleep): Renamed from rpl_nanosleep.
22813         * lib/time.in.h (nanosleep): Use modern idiom.
22814         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): When the system does not have a
22815         nanosleep function, set HAVE_NANOSLEEP to 0, instead of setting
22816         REPLACE_NANOSLEEP to 1.
22817         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_NANOSLEEP.
22818         * modules/time (Makefile.am): Substitute HAVE_NANOSLEEP.
22819
22820 2010-04-03  Bruno Haible  <bruno@clisp.org>
22821
22822         strptime: Fix C++ test error on mingw.
22823         * lib/time.in.h (strptime): Use HAVE_STRPTIME, not REPLACE_STRPTIME.
22824         * m4/strptime.m4 (gl_FUNC_STRPTIME): Set HAVE_STRPTIME, not
22825         REPLACE_STRPTIME. Invoke gl_PREREQ_STRPTIME.
22826         (gl_PREREQ_STRPTIME): New macro, extracted from gl_FUNC_STRPTIME.
22827         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_STRPTIME,
22828         not REPLACE_STRPTIME.
22829         * modules/time (Makefile.am): Substitute HAVE_STRPTIME, not
22830         REPLACE_STRPTIME.
22831
22832 2010-04-03  Bruno Haible  <bruno@clisp.org>
22833
22834         timegm: Fix C++ test error on mingw.
22835         * lib/time.in.h (timegm): Use modern idiom.
22836         * m4/timegm.m4 (gl_FUNC_TIMEGM): When timegm does not exist, set
22837         HAVE_TIMEGM to 0, not REPLACE_TIMEGM to 1.
22838         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_TIMEGM.
22839         * modules/time (Makefile.am): Substitute HAVE_TIMEGM.
22840
22841 2010-04-03  Bruno Haible  <bruno@clisp.org>
22842
22843         timegm: Assume declaration if function exists.
22844         * m4/timegm.m4 (gl_FUNC_TIMEGM): Assume timegm is declared if and only
22845         if it exists. Don't clobber ac_cv_func_timegm.
22846
22847 2010-04-03  Bruno Haible  <bruno@clisp.org>
22848
22849         time_r: Fix C++ test error on mingw.
22850         * lib/time.in.h (localtime_r, gmtime_r): Use modern idiom.
22851         * m4/time_r.m4 (gl_TIME_R): When localtime_r does not exist, set
22852         HAVE_LOCALTIME_R to 0, not REPLACE_LOCALTIME_R to 1.
22853         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_LOCALTIME_R.
22854         * modules/time (Makefile.am): Substitute HAVE_LOCALTIME_R.
22855
22856 2010-04-03  Bruno Haible  <bruno@clisp.org>
22857
22858         time_r: Minor updates.
22859         * modules/time_r (Description): Mention the provided functions.
22860         * lib/time_r.c: Don't include <string.h>.
22861         * doc/posix-functions/gmtime_r.texi: Mention the 'time_r' module.
22862         * doc/posix-functions/localtime_r.texi: Likewise.
22863
22864 2010-04-03  Bruno Haible  <bruno@clisp.org>
22865
22866         time: Fix regression introduced on 2010-03-08.
22867         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Require
22868         gl_HEADER_TIME_H_DEFAULTS, not gl_HEADER_STRING_H_DEFAULTS.
22869
22870 2010-04-03  Jim Meyering  <meyering@redhat.com>
22871
22872         maint.mk: don't silently disable project-specific syntax-check rules
22873         * top/maint.mk (_prohibit_regexp): Define, to help people realize
22874         that they need to convert their project-specific syntax-check rules
22875         to use the new _sc_search_regexp.
22876
22877 2010-04-03  Bruno Haible  <bruno@clisp.org>
22878
22879         fchdir: Fix regression introduced on 2010-03-08.
22880         * lib/unistd.in.h (fchdir): Fix declaration.
22881         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set HAVE_FCHDIR, not REPLACE_FCHDIR.
22882         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_FCHDIR, not
22883         REPLACE_FCHDIR.
22884         * modules/unistd (Makefile.am): Substitute HAVE_FCHDIR, not
22885         REPLACE_FCHDIR.
22886
22887 2010-04-03  Bruno Haible  <bruno@clisp.org>
22888
22889         getpagesize: Fix C++ test error on mingw.
22890         * lib/unistd.in.h (getpagesize): Don't use _GL_CXXALIASWARN if the
22891         system does not declare the function.
22892         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Also check whether it's
22893         declared.
22894         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
22895         HAVE_DECL_GETPAGESIZE.
22896         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETPAGESIZE.
22897
22898 2010-04-03  Bruno Haible  <bruno@clisp.org>
22899
22900         stdio: Make C++ tests work on mingw.
22901         * lib/stdio.in.h (getline): Don't use _GL_CXXALIASWARN if the system
22902         does not declare the function.
22903
22904 2010-04-03  Bruno Haible  <bruno@clisp.org>
22905
22906         ftello: Fix C++ test error on mingw.
22907         * lib/stdio.in.h (ftello): Use modern idiom.
22908         * lib/ftello.c (ftello): Renamed from rpl_ftello.
22909         * m4/ftello.m4 (gl_FUNC_FTELLO): Distinguish the case that the function
22910         is missing and that it needs to be replaced.
22911         (gl_REPLACE_FTELLO): Don't set REPLACE_FTELLO here.
22912         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_FTELLO.
22913         * modules/stdio (Makefile.am): Substitute HAVE_FTELLO.
22914
22915 2010-04-03  Bruno Haible  <bruno@clisp.org>
22916
22917         fseeko: Fix C++ test error on mingw.
22918         * lib/stdio.in.h (fseeko): Use modern idiom.
22919         * lib/fseeko.c (fseeko): Renamed from rpl_fseeko.
22920         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Distinguish the case that the function
22921         is missing and that it needs to be replaced.
22922         (gl_REPLACE_FSEEKO): Don't set REPLACE_FSEEKO here.
22923         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_FSEEKO.
22924         * modules/stdio (Makefile.am): Substitute HAVE_FSEEKO.
22925
22926 2010-04-03  Bruno Haible  <bruno@clisp.org>
22927
22928         mkstemp: Fix C++ test error on mingw.
22929         * lib/stdlib.in.h (mkstemp): Use modern idiom.
22930         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Distinguish the case that the
22931         function is missing and that it needs to be replaced.
22932         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_MKSTEMP.
22933         * modules/stdlib (Makefile.am): Substitute HAVE_MKSTEMP.
22934
22935 2010-04-03  Bruno Haible  <bruno@clisp.org>
22936
22937         stpncpy: Fix C++ test error on mingw.
22938         * lib/string.in.h (stpncpy): Use modern idiom.
22939         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Distinguish the case that the
22940         function is missing and that it needs to be replaced.
22941         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
22942         REPLACE_STPNCPY.
22943         * modules/string (Makefile.am): Substitute REPLACE_STPNCPY.
22944
22945 2010-04-03  Bruno Haible  <bruno@clisp.org>
22946
22947         sys_stat: Fix C++ test error on mingw.
22948         * build-aux/c++defs.h (_GL_CXXALIAS_RPL_CAST_1): New macro.
22949         * lib/sys_stat.in.h (lchmod): Use it instead of _GL_CXXALIAS_RPL_1.
22950
22951 2010-04-03  Bruno Haible  <bruno@clisp.org>
22952
22953         pty: Update doc.
22954         * doc/glibc-headers/pty.texi: Mention changes done since 2010-03-18.
22955
22956 2010-04-03  Bruno Haible  <bruno@clisp.org>
22957
22958         unistd: Fix C++ test error on mingw.
22959         * lib/unistd.in.h (getcwd): Use _GL_CXXALIAS_SYS_CAST.
22960
22961 2010-04-03  Bruno Haible  <bruno@clisp.org>
22962
22963         Update doc regarding mingw.
22964         * doc/glibc-functions/openpty.texi: Update regarding mingw.
22965         * doc/glibc-functions/login_tty.texi: Likewise.
22966         * doc/glibc-functions/forkpty.texi: Likewise.
22967
22968 2010-04-03  Bruno Haible  <bruno@clisp.org>
22969
22970         stdlib: Avoid compilation failure of c-strtold on mingw.
22971         * lib/stdlib.in.h: Don't include <unistd.h> on native Windows systems.
22972
22973 2010-04-03  Bruno Haible  <bruno@clisp.org>
22974
22975         locale: Make C++ tests work on Cygwin and mingw.
22976         * lib/locale.in.h (duplocale): Don't use _GL_CXXALIASWARN if gnulib
22977         cannot provide the function.
22978         Reported by Simon Josefsson.
22979
22980 2010-04-03  Bruno Haible  <bruno@clisp.org>
22981
22982         localename: Port to MacOS X 10.6.
22983         * lib/localename.c (gl_locale_name_thread_unsafe): On MacOS X, try the
22984         memory layout of the locales in MacOS X 10.6 as well.
22985         Reported by Panu Kekäläinen <panu@kekalainen.eu>.
22986
22987 2010-04-02  Bruno Haible  <bruno@clisp.org>
22988
22989         gnulib-tool: Ensure that long-running tests are executed last.
22990         * gnulib-tool (func_emit_tests_Makefile_am): Emit the code for long-
22991         running tests after the one for the other tests.
22992
22993 2010-04-02  Bruno Haible  <bruno@clisp.org>
22994
22995         gnulib-tool: Ensure the tests in the main directory are executed first.
22996         * gnulib-tool (func_emit_tests_Makefile_am): Initialize SUBDIRS to
22997         start with the current directory.
22998
22999 2010-04-02  Bruno Haible  <bruno@clisp.org>
23000
23001         Tests for module 'havelib', moved here from GNU gettext.
23002         * modules/havelib-tests: New file, from gettext/autoconf-lib-link with
23003         modifications.
23004         * tests/havelib/README: New file, from gettext/autoconf-lib-link.
23005         * tests/havelib/Makefile.am: New file, from gettext/autoconf-lib-link
23006         with modifications.
23007         * tests/havelib/rpath-1: New file, from gettext/autoconf-lib-link with
23008         modifications.
23009         * tests/havelib/rpath-1a: New file, from gettext/autoconf-lib-link.
23010         * tests/havelib/rpath-1b: New file, from gettext/autoconf-lib-link.
23011         * tests/havelib/rpath-2_a: New file, from gettext/autoconf-lib-link
23012         with modifications.
23013         * tests/havelib/rpath-2_b: New file, from gettext/autoconf-lib-link
23014         with modifications.
23015         * tests/havelib/rpath-2aaa: New file, from gettext/autoconf-lib-link.
23016         * tests/havelib/rpath-2aab: New file, from gettext/autoconf-lib-link.
23017         * tests/havelib/rpath-2aac: New file, from gettext/autoconf-lib-link.
23018         * tests/havelib/rpath-2aad: New file, from gettext/autoconf-lib-link.
23019         * tests/havelib/rpath-2aba: New file, from gettext/autoconf-lib-link.
23020         * tests/havelib/rpath-2abb: New file, from gettext/autoconf-lib-link.
23021         * tests/havelib/rpath-2abc: New file, from gettext/autoconf-lib-link.
23022         * tests/havelib/rpath-2abd: New file, from gettext/autoconf-lib-link.
23023         * tests/havelib/rpath-2baa: New file, from gettext/autoconf-lib-link.
23024         * tests/havelib/rpath-2bab: New file, from gettext/autoconf-lib-link.
23025         * tests/havelib/rpath-2bac: New file, from gettext/autoconf-lib-link.
23026         * tests/havelib/rpath-2bad: New file, from gettext/autoconf-lib-link.
23027         * tests/havelib/rpath-2bba: New file, from gettext/autoconf-lib-link.
23028         * tests/havelib/rpath-2bbb: New file, from gettext/autoconf-lib-link.
23029         * tests/havelib/rpath-2bbc: New file, from gettext/autoconf-lib-link.
23030         * tests/havelib/rpath-2bbd: New file, from gettext/autoconf-lib-link.
23031         * tests/havelib/rpath-3_a: New file, from gettext/autoconf-lib-link
23032         with modifications.
23033         * tests/havelib/rpath-3_b: New file, from gettext/autoconf-lib-link
23034         with modifications.
23035         * tests/havelib/rpath-3aaa: New file, from gettext/autoconf-lib-link.
23036         * tests/havelib/rpath-3aab: New file, from gettext/autoconf-lib-link.
23037         * tests/havelib/rpath-3aac: New file, from gettext/autoconf-lib-link.
23038         * tests/havelib/rpath-3aad: New file, from gettext/autoconf-lib-link.
23039         * tests/havelib/rpath-3aae: New file, from gettext/autoconf-lib-link.
23040         * tests/havelib/rpath-3aaf: New file, from gettext/autoconf-lib-link.
23041         * tests/havelib/rpath-3aag: New file, from gettext/autoconf-lib-link.
23042         * tests/havelib/rpath-3aah: New file, from gettext/autoconf-lib-link.
23043         * tests/havelib/rpath-3aba: New file, from gettext/autoconf-lib-link.
23044         * tests/havelib/rpath-3abb: New file, from gettext/autoconf-lib-link.
23045         * tests/havelib/rpath-3abc: New file, from gettext/autoconf-lib-link.
23046         * tests/havelib/rpath-3abd: New file, from gettext/autoconf-lib-link.
23047         * tests/havelib/rpath-3abe: New file, from gettext/autoconf-lib-link.
23048         * tests/havelib/rpath-3abf: New file, from gettext/autoconf-lib-link.
23049         * tests/havelib/rpath-3abg: New file, from gettext/autoconf-lib-link.
23050         * tests/havelib/rpath-3abh: New file, from gettext/autoconf-lib-link.
23051         * tests/havelib/rpath-3baa: New file, from gettext/autoconf-lib-link.
23052         * tests/havelib/rpath-3bab: New file, from gettext/autoconf-lib-link.
23053         * tests/havelib/rpath-3bac: New file, from gettext/autoconf-lib-link.
23054         * tests/havelib/rpath-3bad: New file, from gettext/autoconf-lib-link.
23055         * tests/havelib/rpath-3bae: New file, from gettext/autoconf-lib-link.
23056         * tests/havelib/rpath-3baf: New file, from gettext/autoconf-lib-link.
23057         * tests/havelib/rpath-3bag: New file, from gettext/autoconf-lib-link.
23058         * tests/havelib/rpath-3bah: New file, from gettext/autoconf-lib-link.
23059         * tests/havelib/rpath-3bba: New file, from gettext/autoconf-lib-link.
23060         * tests/havelib/rpath-3bbb: New file, from gettext/autoconf-lib-link.
23061         * tests/havelib/rpath-3bbc: New file, from gettext/autoconf-lib-link.
23062         * tests/havelib/rpath-3bbd: New file, from gettext/autoconf-lib-link.
23063         * tests/havelib/rpath-3bbe: New file, from gettext/autoconf-lib-link.
23064         * tests/havelib/rpath-3bbf: New file, from gettext/autoconf-lib-link.
23065         * tests/havelib/rpath-3bbg: New file, from gettext/autoconf-lib-link.
23066         * tests/havelib/rpath-3bbh: New file, from gettext/autoconf-lib-link.
23067         * tests/havelib/rpathx/rpathx.c: New file, from
23068         gettext/autoconf-lib-link.
23069         * tests/havelib/rpathx/Makefile.am: New file, from
23070         gettext/autoconf-lib-link.
23071         * tests/havelib/rpathx/configure.ac: New file, from
23072         gettext/autoconf-lib-link with modifications.
23073         * tests/havelib/rpathy/rpathy.c: New file, from
23074         gettext/autoconf-lib-link.
23075         * tests/havelib/rpathy/Makefile.am: New file, from
23076         gettext/autoconf-lib-link.
23077         * tests/havelib/rpathy/configure.ac: New file, from
23078         gettext/autoconf-lib-link with modifications.
23079         * tests/havelib/rpathz/rpathz.c: New file, from
23080         gettext/autoconf-lib-link.
23081         * tests/havelib/rpathz/Makefile.am: New file, from
23082         gettext/autoconf-lib-link.
23083         * tests/havelib/rpathz/configure.ac: New file, from
23084         gettext/autoconf-lib-link with modifications.
23085         * tests/havelib/rpathlx/usex.c: New file, from
23086         gettext/autoconf-lib-link.
23087         * tests/havelib/rpathlx/Makefile.am: New file, from
23088         gettext/autoconf-lib-link.
23089         * tests/havelib/rpathlx/configure.ac: New file, from
23090         gettext/autoconf-lib-link with modifications.
23091         * tests/havelib/rpathly/usey.c: New file, from
23092         gettext/autoconf-lib-link.
23093         * tests/havelib/rpathly/Makefile.am: New file, from
23094         gettext/autoconf-lib-link.
23095         * tests/havelib/rpathly/configure.ac: New file, from
23096         gettext/autoconf-lib-link with modifications.
23097         * tests/havelib/rpathlz/usez.c: New file, from
23098         gettext/autoconf-lib-link.
23099         * tests/havelib/rpathlz/Makefile.am: New file, from
23100         gettext/autoconf-lib-link.
23101         * tests/havelib/rpathlz/configure.ac: New file, from
23102         gettext/autoconf-lib-link with modifications.
23103         * tests/havelib/rpathlyx/usey.c: New file, from
23104         gettext/autoconf-lib-link.
23105         * tests/havelib/rpathlyx/Makefile.am: New file, from
23106         gettext/autoconf-lib-link.
23107         * tests/havelib/rpathlyx/configure.ac: New file, from
23108         gettext/autoconf-lib-link with modifications.
23109         * tests/havelib/rpathlzyx/usez.c: New file, from
23110         gettext/autoconf-lib-link.
23111         * tests/havelib/rpathlzyx/Makefile.am: New file, from
23112         gettext/autoconf-lib-link.
23113         * tests/havelib/rpathlzyx/configure.ac: New file, from
23114         gettext/autoconf-lib-link with modifications.
23115         * tests/havelib/rpathcfg.sh: New file, from gettext/autoconf-lib-link
23116         with modifications.
23117
23118 2010-04-02  Bruno Haible  <bruno@clisp.org>
23119
23120         gnulib-tool: Create distributed built sources also for the tests.
23121         * gnulib-tool (func_create_testdir): Also generate distributed built
23122         sources in the tests directory.
23123
23124 2010-04-02  Bruno Haible  <bruno@clisp.org>
23125
23126         gnulib-tool: Obey user's environment variables.
23127         * gnulib-tool (func_create_testdir): When creating built sources,
23128         respect the environment variables for autoconf, automake, etc. given by
23129         the user.
23130
23131 2010-04-02  Bruno Haible  <bruno@clisp.org>
23132
23133         gnulib-tool: Provide the value of --m4-base to modules.
23134         * gnulib-tool (func_import, func_create_testdir): Emit a definition
23135         of gl_m4_base.
23136
23137 2010-04-02  Eric Blake  <eblake@redhat.com>
23138
23139         maint.mk: fix some fallout
23140         * NEWS: Document the incompatible change, and its effect on cfg.mk.
23141         * top/maint.mk (sc_prohibit_test_minus_ao): Update.
23142
23143 2010-03-28  Jose E. Marchesi  <jemarch@gnu.org>
23144
23145         maint.mk: _sc_search_regexp: generalize and rename from _prohibit_regexp
23146         * top/maint.mk (_sc_search_regexp): Rename from _prohibit_regexp.
23147         (sc_cast_of_argument_to_free): Adapt to use _sc_search_regexp.
23148         (sc_cast_of_x_alloc_return_value): Likewise.
23149         (sc_cast_of_alloca_return_value): Likewise.
23150         (sc_space_tab): Likewise.
23151         (sc_prohibit_atoi_atof): Likewise.
23152         (sc_prohibit_magic_number_exit): Likewise.
23153         (sc_error_exit_success): Likewise.
23154         (sc_file_system): Likewise.
23155         (sc_prohibit_have_config_h): Likewise.
23156         (sc_require_config_h): Likewise.
23157         (sc_prohibit_HAVE_MBRTOWC): Likewise.
23158         (sc_obsolete_symbols): Likewise.
23159         (sc_changelog): Likewise.
23160         (sc_program_name): Likewise.
23161         (sc_the_the): Likewise.
23162         (sc_trailing_blank): Likewise.
23163         (sc_two_space_separator_in_usage): Likewise.
23164         (sc_useless_cpp_parens): Likewise.
23165         (sc_GPL_version): Likewise.
23166         (sc_GFDL_version): Likewise.
23167         (sc_texinfo_acronym): Likewise.
23168         (sc_prohibit_cvs_keyword): Likewise.
23169         (sc_prohibit_stat_st_blocks): Likewise.
23170         (sc_prohibit_S_IS_definition): Likewise.
23171         (sc_redundant_const): Likewise.
23172         (sc_makefile_TAB_only_indentation): Likewise.
23173         (sc_m4_quote_check): Likewise.
23174         (sc_makefile_path_separator_check): Likewise.
23175         (sc_copyright_check): Likewise.
23176         (sc_Wundef_boolean): Likewise.
23177         (sc_vulnerable_makefile_CVE-2009-4029): Likewise.
23178
23179         maint.mk: match 0 or more whitespace-before-function-call '('
23180         * top/maint.mk (sc_error_exit_success): Relax regexp to match uses
23181         that have zero or two-and-more spaces between the function name
23182         and the open parenthesis.
23183         (sc_error_message_warn_fatal): Likewise.
23184         (sc_error_message_uppercase): Likewise.
23185         (sc_error_message_period): Likewise.
23186
23187 2010-03-31  Eric Blake  <eblake@redhat.com>
23188
23189         maint.mk: check for [ as well as test
23190         * top/maint.mk (sc_prohibit_test_minus_ao): Extend test.
23191         Based on a libvirt report by Matthias Bolte.
23192
23193         gnumakefile: don't squelch _version output
23194         * top/GNUmakefile (_version): Create one-shot dependency rather
23195         than using $(shell) when version must be regenerated.
23196         (_autoreconf): Run verbosely, by default.
23197
23198         sys_time: avoid compiler warnings
23199         * lib/sys_time.in.h (includes): Ensure gcc pragma is
23200         unconditional, fixing regression from 2010-03-29.
23201         Reported by Simon Josefsson.
23202
23203 2010-03-28  Jose E. Marchesi  <jemarch@gnu.org>
23204
23205         maint.mk: s/_header_without_use/_sc_header_without_use/
23206         * top/maint.mk (_sc_header_without_use): Rename from _header_without_use.
23207         (sc_prohibit_assert_without_use): Use the new name.
23208         (sc_prohibit_close_stream_without_use): Likewise.
23209         (sc_prohibit_getopt_without_use): Likewise.
23210         (sc_prohibit_quotearg_without_use): Likewise.
23211         (sc_prohibit_quote_without_use): Likewise.
23212         (sc_prohibit_long_options_without_use): Likewise.
23213         (sc_prohibit_inttostr_without_use): Likewise.
23214         (sc_prohibit_ignore_value_without_use): Likewise.
23215         (sc_prohibit_error_without_use): Likewise.
23216         (sc_prohibit_xalloc_without_use): Likewise.
23217         (sc_prohibit_hash_without_use): Likewise.
23218         (sc_prohibit_hash_pjw_without_use): Likewise.
23219         (sc_prohibit_safe_read_without_use): Likewise.
23220         (sc_prohibit_argmatch_without_use): Likewise.
23221         (sc_prohibit_canonicalize_without_use): Likewise.
23222         (sc_prohibit_root_dev_ino_without_use): Likewise.
23223         (sc_prohibit_openat_without_use): Likewise.
23224         (sc_prohibit_c_ctype_without_use): Likewise.
23225         (sc_prohibit_signal_without_use): Likewise.
23226         (sc_prohibit_intprops_without_use): Likewise.
23227
23228 2010-03-30  Eric Blake  <eblake@redhat.com>
23229
23230         maint: improve module indicators
23231         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_SET_VARIABLE)
23232         (gl_MODULE_INDICATOR, gl_MODULE_INDICATOR_FOR_TESTS): Fit in 80
23233         columns, and avoid extra macro expansion.
23234
23235         fdopendir: work around FreeBSD bug
23236         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): New witness.
23237         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Set it.
23238         * modules/dirent (Makefile.am): Substitute it.
23239         * lib/dirent.in.h (fdopendir): Supply missing FreeBSD
23240         declaration.
23241         * doc/posix-functions/fdopendir.texi (fdopendir): Document the
23242         fix.
23243         Reported by Christian Weisgerber <naddy@mips.inka.de>.
23244
23245 2010-03-29  Bruno Haible  <bruno@clisp.org>
23246
23247         Emit #pragma system_header after the inclusion guard, not before.
23248         * lib/arpa_inet.in.h: Emit #pragma system_header after the inclusion
23249         guard that spans the entire file, not before. This enables an
23250         optimization in GCC's preprocessor.
23251         * lib/ctype.in.h: Likewise.
23252         * lib/dirent.in.h: Likewise.
23253         * lib/errno.in.h: Likewise.
23254         * lib/float.in.h: Likewise.
23255         * lib/getopt.in.h: Likewise.
23256         * lib/iconv.in.h: Likewise.
23257         * lib/langinfo.in.h: Likewise.
23258         * lib/locale.in.h: Likewise.
23259         * lib/math.in.h: Likewise.
23260         * lib/netdb.in.h: Likewise.
23261         * lib/netinet_in.in.h: Likewise.
23262         * lib/pty.in.h: Likewise.
23263         * lib/sched.in.h: Likewise.
23264         * lib/se-selinux.in.h: Likewise.
23265         * lib/search.in.h: Likewise.
23266         * lib/spawn.in.h: Likewise.
23267         * lib/stdarg.in.h: Likewise.
23268         * lib/stdint.in.h: Likewise.
23269         * lib/string.in.h: Likewise.
23270         * lib/strings.in.h: Likewise.
23271         * lib/sys_file.in.h: Likewise.
23272         * lib/sys_ioctl.in.h: Likewise.
23273         * lib/sys_time.in.h: Likewise.
23274         * lib/sys_times.in.h: Likewise.
23275         * lib/sys_utsname.in.h: Likewise.
23276         * lib/sys_wait.in.h: Likewise.
23277         * lib/sysexits.in.h: Likewise.
23278         * lib/wctype.in.h: Likewise.
23279
23280 2010-03-28  James Youngman  <jay@gnu.org>
23281
23282         save-cwd: don't leak a file descriptor when the caller execs.
23283         * lib/save-cwd.c (save_cwd): set the close-on-exec flag for the
23284         saved file descriptor.
23285         * modules/save-cwd (Depends-on): Depend on cloexec.
23286
23287 2010-03-29  Bruno Haible  <bruno@clisp.org>
23288
23289         Remove vestiges of fts-lgpl module.
23290         * lib/fts_.h: Assume GNULIB_FTS is 1.
23291         * lib/fts.c: Likewise.
23292         * modules/fts (configure.ac): Remove gl_MODULE_INDICATOR invocation.
23293
23294 2010-03-28  Bruno Haible  <bruno@clisp.org>
23295
23296         Fix definition of tests witness macro.
23297         * gnulib-tool (func_import): Fix definition of witness macro.
23298
23299 2010-03-28  Bruno Haible  <bruno@clisp.org>
23300
23301         Fix ioctl's protoype on glibc systems.
23302         * lib/sys_ioctl.in.h (ioctl): If REPLACE_IOCTL is 1, use a wrapper. Use
23303         _GL_CXXALIAS_SYS, not _GL_CXXALIAS_SYS_CAST.
23304         * lib/ioctl.c (rpl_ioctl) [HAVE_IOCTL]: New wrapper.
23305         * modules/ioctl (configure.ac): Test whether ioctl has the POSIX
23306         signature. If not, arrange to replace the ioctl function.
23307         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H_DEFAULTS): Initialize
23308         REPLACE_IOCTL.
23309         * modules/sys_ioctl (Makefile.am): Substitute REPLACE_IOCTL.
23310         * doc/posix-functions/ioctl.texi: Mention the glibc problem.
23311         Reported by Ludovic Courtès <ludo@gnu.org>.
23312
23313 2010-03-28  Javier Villavicencio  <the_paya@gentoo.org>
23314
23315         exclude: fix the case of globs vs. EXCLUDE_INCLUDE
23316         * lib/exclude.c (excluded_file_pattern_p): Fix logic error that
23317         made it so grep -r --include=GLOB* ... did not work.
23318
23319 2010-03-26  Jim Meyering  <meyering@redhat.com>
23320             Eric Blake  <eblake@redhat.com>
23321
23322         maint.mk: prohibit use of test's -o and -a operators
23323         * top/maint.mk (sc_prohibit_test_minus_ao): New rule.
23324
23325 2010-03-28  Bruno Haible  <bruno@clisp.org>
23326
23327         Remove unused GNULIB_XYZ macro definitions.
23328         * modules/crypto/gc-camellia (configure.ac): Remove gl_MODULE_INDICATOR
23329         invocation.
23330
23331 2010-03-28  Bruno Haible  <bruno@clisp.org>
23332
23333         Mark privileged tests modules.
23334         * modules/idpriv-drop-tests (Status): New section.
23335         * modules/idpriv-droptemp-tests (Status): New section.
23336
23337 2010-03-28  Bruno Haible  <bruno@clisp.org>
23338
23339         Split C++ tests into separate tests modules.
23340         * modules/dirent-c++-tests: New file, extracted from
23341         modules/dirent-tests.
23342         * modules/dirent-tests: Depend on it.
23343         * modules/fcntl-h-c++-tests: New file, extracted from
23344         modules/fcntl-h-tests.
23345         * modules/fcntl-h-tests: Depend on it.
23346         * modules/glob-c++-tests: New file, extracted from modules/glob-tests.
23347         * modules/glob-tests: Depend on it.
23348         * modules/iconv-h-c++-tests: New file, extracted from
23349         modules/iconv-h-tests.
23350         * modules/iconv-h-tests: Depend on it.
23351         * modules/langinfo-c++-tests: New file, extracted from
23352         modules/langinfo-tests.
23353         * modules/langinfo-tests: Depend on it.
23354         * modules/locale-c++-tests: New file, extracted from
23355         modules/locale-tests.
23356         * modules/locale-tests: Depend on it.
23357         * modules/math-c++-tests: New file, extracted from modules/math-tests.
23358         * modules/math-tests: Depend on it.
23359         * modules/pty-c++-tests: New file, extracted from modules/pty-tests.
23360         * modules/pty-tests: Depend on it.
23361         * modules/search-c++-tests: New file, extracted from
23362         modules/search-tests.
23363         * modules/search-tests: Depend on it.
23364         * modules/signal-c++-tests: New file, extracted from
23365         modules/signal-tests.
23366         * modules/signal-tests: Depend on it.
23367         * modules/spawn-c++-tests: New file, extracted from
23368         modules/spawn-tests.
23369         * modules/spawn-tests: Depend on it.
23370         * modules/stdio-c++-tests: New file, extracted from
23371         modules/stdio-tests.
23372         * modules/stdio-tests: Depend on it.
23373         * modules/stdlib-c++-tests: New file, extracted from
23374         modules/stdlib-tests.
23375         * modules/stdlib-tests: Depend on it.
23376         * modules/string-c++-tests: New file, extracted from
23377         modules/string-tests.
23378         * modules/string-tests: Depend on it.
23379         * modules/sys_ioctl-c++-tests: New file, extracted from
23380         modules/sys_ioctl-tests.
23381         * modules/sys_ioctl-tests: Depend on it.
23382         * modules/sys_select-c++-tests: New file, extracted from
23383         modules/sys_select-tests.
23384         * modules/sys_select-tests: Depend on it.
23385         * modules/sys_socket-c++-tests: New file, extracted from
23386         modules/sys_socket-tests.
23387         * modules/sys_socket-tests: Depend on it.
23388         * modules/sys_stat-c++-tests: New file, extracted from
23389         modules/sys_stat-tests.
23390         * modules/sys_stat-tests: Depend on it.
23391         * modules/sys_time-c++-tests: New file, extracted from
23392         modules/sys_time-tests.
23393         * modules/sys_time-tests: Depend on it.
23394         * modules/time-c++-tests: New file, extracted from modules/time-tests.
23395         * modules/time-tests: Depend on it.
23396         * modules/unistd-c++-tests: New file, extracted from
23397         modules/unistd-tests.
23398         * modules/unistd-tests: Depend on it.
23399         * modules/wchar-c++-tests: New file, extracted from
23400         modules/wchar-tests.
23401         * modules/wchar-tests: Depend on it.
23402         * modules/wctype-c++-tests: New file, extracted from
23403         modules/wctype-tests.
23404         * modules/wctype-tests: Depend on it.
23405         Reported by Simon Josefsson.
23406
23407 2010-03-28  Bruno Haible  <bruno@clisp.org>
23408
23409         gnulib-tool: Allow 'foo-tests' module even if there is no module 'foo'.
23410         * gnulib-tool (func_exists_module): New function, extracted from
23411         func_verify_module.
23412         (func_verify_module): Use it.
23413         (func_get_dependencies): Synthetize a dependency from 'foo-tests' to
23414         'foo' only if 'foo' exists.
23415         * doc/gnulib.texi (Extra tests modules): Explain how to split a tests
23416         module.
23417
23418 2010-03-28  Bruno Haible  <bruno@clisp.org>
23419
23420         gnulib-tool: Add support for special categories of tests.
23421         * gnulib-tool: New options --with-c++-tests, --with-longrunning-tests,
23422         --with-privileged-tests, --with-unportable-tests, --with-all-tests.
23423         (func_usage): Document them.
23424         (inc_cxx_tests, inc_longrunning_tests, inc_privileged_tests,
23425         inc_unportable_tests, inc_all_tests): New variables.
23426         (func_acceptable): Consider these variables.
23427         (func_modules_transitive_closure): Make it work when the 'Status' field
23428         consists of multiple words.
23429         (func_import): Store and restore the values of inc_cxx_tests,
23430         inc_longrunning_tests, inc_privileged_tests, inc_unportable_tests,
23431         inc_all_tests in gnulib-comp.m4.
23432         (func_create_testdir): Set inc_all_tests to true.
23433         * doc/gnulib.texi (Extra tests modules): New section.
23434         Suggested by Jim Meyering.
23435
23436 2010-03-28  Bruno Haible  <bruno@clisp.org>
23437
23438         ansi-c++-opt: Allow turning off the C++ build by default.
23439         * m4/ansi-c++.m4 (gl_CXX_CHOICE): Let CXX_CHOICE default to 'no' if
23440         gl_CXX_CHOICE_DEFAULT_NO is defined.
23441         Requested by Eric Blake.
23442
23443 2010-03-28  Bruno Haible  <bruno@clisp.org>
23444
23445         unistd: Avoid #define replacements in C++ mode.
23446         * lib/unistd.in.h (socket, connect, accept, bind, getpeername,
23447         getsockname, getsockopt, listen, recv, send, recvfrom, sendto,
23448         setsockopt, shutdown, select): In C++, attach a warning to the function
23449         if possible, rather than #defining the symbol to a dysfunctional alias.
23450         Reported by John W. Eaton <jwe@gnu.org>.
23451
23452 2010-03-28  Bruno Haible  <bruno@clisp.org>
23453
23454         Fix link errors on mingw.
23455         * lib/sys_ioctl.in.h (ioctl): Fix declaration idiom.
23456         * modules/sys_ioctl-tests (Makefile.am): Link test-sys_ioctl-c++ with
23457         $(LIBSOCKET).
23458         * modules/sys_select-tests (Makefile.am): Link test-sys_select-c++ with
23459         $(LIBSOCKET).
23460
23461 2010-03-28  Bruno Haible  <bruno@clisp.org>
23462             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
23463
23464         lib-ignore: Determine different options for different compilers.
23465         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Set a variable which
23466         depends on the current language (C/C++/Fortran). Don't set LDFLAGS.
23467         Add comments.
23468         (_gl_IGNORE_UNUSED_LIBRARIES_OPTIONS): New macro.
23469         * NEWS: Mention the change.
23470
23471 2010-03-27  Bruno Haible  <bruno@clisp.org>
23472
23473         Remove unused GNULIB_XYZ macro definitions.
23474         * modules/dup3 (configure.ac): Remove gl_MODULE_INDICATOR invocation.
23475         * modules/fseek (configure.ac): Likewise.
23476         * modules/ioctl (configure.ac): Likewise.
23477         * modules/open (configure.ac): Likewise.
23478         * modules/stdlib-safer (configure.ac): Likewise.
23479
23480 2010-03-27  Bruno Haible  <bruno@clisp.org>
23481
23482         Add a remark about certain modules.
23483         * modules/malloc (Comment): New section.
23484         * modules/realloc (Comment): Likewise.
23485         * modules/sigpipe (Comment): Likewise.
23486
23487 2010-03-27  Bruno Haible  <bruno@clisp.org>
23488
23489         Resolve conflict between the two kinds of module indicators.
23490         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_FOR_TESTS): Define
23491         GNULIB_TEST_XYZ instead of GNULIB_XYZ.
23492         * modules/canonicalize (configure.ac): Invoke
23493         gl_MODULE_INDICATOR_FOR_TESTS.
23494         * tests/test-canonicalize-lgpl.c: Test GNULIB_TEST_XYZ instead of
23495         GNULIB_XYZ.
23496         * tests/test-dirent-c++.cc: Likewise.
23497         * tests/test-dirent-safer.c: Likewise.
23498         * tests/test-dup2.c: Likewise.
23499         * tests/test-fchdir.c: Likewise.
23500         * tests/test-fcntl-h-c++.cc: Likewise.
23501         * tests/test-getopt.c: Likewise.
23502         * tests/test-getopt.h: Likewise.
23503         * tests/test-langinfo-c++.cc: Likewise.
23504         * tests/test-locale-c++.cc: Likewise.
23505         * tests/test-math-c++.cc: Likewise.
23506         * tests/test-pty-c++.cc: Likewise.
23507         * tests/test-search-c++.cc: Likewise.
23508         * tests/test-signal-c++.cc: Likewise.
23509         * tests/test-spawn-c++.cc: Likewise.
23510         * tests/test-stdio-c++.cc: Likewise.
23511         * tests/test-stdlib-c++.cc: Likewise.
23512         * tests/test-string-c++.cc: Likewise.
23513         * tests/test-sys_ioctl-c++.cc: Likewise.
23514         * tests/test-sys_select-c++.cc: Likewise.
23515         * tests/test-sys_socket-c++.cc: Likewise.
23516         * tests/test-sys_stat-c++.cc: Likewise.
23517         * tests/test-sys_time-c++.cc: Likewise.
23518         * tests/test-time-c++.cc: Likewise.
23519         * tests/test-unistd-c++.cc: Likewise.
23520         * tests/test-wchar-c++.cc: Likewise.
23521         * tests/uninorm/test-u8-nfc.c: Likewise.
23522         * tests/uninorm/test-u8-nfd.c: Likewise.
23523         * tests/uninorm/test-u8-nfkc.c: Likewise.
23524         * tests/uninorm/test-u8-nfkd.c: Likewise.
23525         * tests/uninorm/test-u16-nfc.c: Likewise.
23526         * tests/uninorm/test-u16-nfd.c: Likewise.
23527         * tests/uninorm/test-u16-nfkc.c: Likewise.
23528         * tests/uninorm/test-u16-nfkd.c: Likewise.
23529         * tests/uninorm/test-u32-nfc.c: Likewise.
23530         * tests/uninorm/test-u32-nfc-big.c: Likewise.
23531         * tests/uninorm/test-u32-nfd.c: Likewise.
23532         * tests/uninorm/test-u32-nfd-big.c: Likewise.
23533         * tests/uninorm/test-u32-nfkc.c: Likewise.
23534         * tests/uninorm/test-u32-nfkc-big.c: Likewise.
23535         * tests/uninorm/test-u32-nfkd.c: Likewise.
23536         * tests/uninorm/test-u32-nfkd-big.c: Likewise.
23537         * tests/uninorm/test-u32-normalize-big.c: Likewise.
23538
23539 2010-03-27  Bruno Haible  <bruno@clisp.org>
23540
23541         Distinguish two kinds of module indicators.
23542         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_FOR_TESTS): Renamed from
23543         gl_MODULE_INDICATOR.
23544         (gl_MODULE_INDICATOR): New macro.
23545         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Invoke
23546         gl_MODULE_INDICATOR_FOR_TESTS instead of gl_MODULE_INDICATOR.
23547         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Likewise.
23548         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Likewise.
23549         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Likewise.
23550         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Likewise.
23551         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Likewise.
23552         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Likewise.
23553         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Likewise.
23554         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Likewise.
23555         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Likewise.
23556         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Likewise.
23557         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Likewise.
23558         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Likewise.
23559         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Likewise.
23560         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Likewise.
23561         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Likewise.
23562         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Likewise.
23563         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Likewise.
23564         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Likewise.
23565         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Likewise.
23566         * modules/cloexec (configure.ac): Likewise.
23567         * modules/getopt-gnu (configure.ac): Likewise.
23568         * modules/uninorm/u8-normalize (configure.ac): Likewise.
23569         * modules/uninorm/u16-normalize (configure.ac): Likewise.
23570         * modules/uninorm/u32-normalize (configure.ac): Likewise.
23571         * modules/fdopendir (configure.ac): Invoke gl_MODULE_INDICATOR.
23572
23573 2010-03-27  Bruno Haible  <bruno@clisp.org>
23574
23575         New module description field 'Comment'.
23576         * gnulib-tool: New option --extract-comment.
23577         (func_usage): Document it.
23578         (sed_extract_prog, sed_extract_field_header): Support 'Comment' field.
23579         (func_get_comment): New function.
23580         * modules/TEMPLATE-EXTENDED: Add a blank Comment field.
23581
23582 2010-03-27  Bruno Haible  <bruno@clisp.org>
23583
23584         Addendum to 2010-02-07 commit.
23585         * gnulib-tool (func_usage): Document --extract-applicability option.
23586
23587 2010-03-27  Bruno Haible  <bruno@clisp.org>
23588
23589         Use GNULIB_POSIXCHECK instead of GNULIB_PORTCHECK.
23590         * lib/time.in.h (asctime, asctime_r, ctime, ctime_r): Test
23591         GNULIB_POSIXCHECK, not GNULIB_PORTCHECK. Provide compile-time warnings
23592         rather than link errors.
23593
23594 2010-03-27  Bruno Haible  <bruno@clisp.org>
23595
23596         Avoid side effects from tests-related modules on the compilation of lib.
23597         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_CONDITION): New macro.
23598         (gl_MODULE_INDICATOR_SET_VARIABLE): Use its expansion as a value.
23599         * gnulib-tool (func_emit_tests_Makefile_am): Accept a witness_macro
23600         parameter. Emit into AM_CPPFLAGS a definition of the designated C
23601         macro.
23602         (func_import): Define a witness macro. Assign it a value that depends
23603         on the current package. Override gl_MODULE_INDICATOR_CONDITION for the
23604         tests-related modules.
23605         (func_create_testdir): Update func_emit_tests_Makefile_am invocation.
23606         Reported by Jim Meyering.
23607
23608 2010-03-27  Bruno Haible  <bruno@clisp.org>
23609
23610         Factorize common .m4 code.
23611         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_SET_VARIABLE): New macro.
23612         * m4/arpa_inet_h.m4 (gl_ARPA_INET_MODULE_INDICATOR): Use it.
23613         * m4/ctype.m4 (gl_CTYPE_MODULE_INDICATOR): Likewise.
23614         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Likewise.
23615         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Likewise.
23616         * m4/iconv_h.m4 (gl_ICONV_MODULE_INDICATOR): Likewise.
23617         * m4/inttypes.m4 (gl_INTTYPES_MODULE_INDICATOR): Likewise.
23618         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Likewise.
23619         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Likewise.
23620         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Likewise.
23621         * m4/netdb_h.m4 (gl_NETDB_MODULE_INDICATOR): Likewise.
23622         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Likewise.
23623         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Likewise.
23624         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Likewise.
23625         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Likewise.
23626         * m4/stddef_h.m4 (gl_STDDEF_MODULE_INDICATOR): Likewise.
23627         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Likewise.
23628         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Likewise.
23629         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Likewise.
23630         * m4/strings_h.m4 (gl_STRINGS_MODULE_INDICATOR): Likewise.
23631         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_MODULE_INDICATOR): Likewise.
23632         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Likewise.
23633         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Likewise.
23634         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Likewise.
23635         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Likewise.
23636         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Likewise.
23637         * m4/sys_times_h.m4 (gl_SYS_TIMES_MODULE_INDICATOR): Likewise.
23638         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_MODULE_INDICATOR): Likewise.
23639         * m4/sys_wait_h.m4 (gl_SYS_WAIT_MODULE_INDICATOR): Likewise.
23640         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Likewise.
23641         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Likewise.
23642         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Likewise.
23643
23644 2010-03-27  Bruno Haible  <bruno@clisp.org>
23645
23646         Fix a compilation error on Cygwin with g++ >= 4.3.
23647         * lib/sys_stat.in.h (lchmod): Don't warn about the use of this function
23648         if it is undefined or if we alias it to chmod.
23649         (lstat): Don't warn about the use of this function if it is undefined
23650         or if we alias it to stat.
23651         Reported by Simon Josefsson.
23652
23653 2010-03-27  Bruno Haible  <bruno@clisp.org>
23654
23655         * m4/getlogin.m4 (gl_FUNC_GETLOGIN): Renamed from gl_GETLOGIN.
23656         * modules/getlogin (configure.ac): Update.
23657
23658         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Renamed from gl_GETLOGIN_R.
23659         * modules/getlogin_r (configure.ac): Update.
23660
23661         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Renamed from gl_INET_NTOP.
23662         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Update.
23663         * modules/inet_ntop (configure.ac): Update.
23664
23665         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Renamed from gl_INET_PTON.
23666         * modules/inet_pton (configure.ac): Update.
23667
23668         * m4/mbslen.m4 (gl_FUNC_MBSLEN): Renamed from gl_MBSLEN.
23669         * modules/mbslen (configure.ac): Update.
23670
23671         * m4/pty.m4 (gl_FUNC_FORKPTY): Renamed from gl_FORKPTY.
23672         (gl_FUNC_OPENPTY): Renamed from gl_OPENPTY.
23673         * modules/forkpty (configure.ac): Update.
23674         * modules/openpty (configure.ac): Update.
23675
23676 2010-03-26  Simon Josefsson  <simon@josefsson.org>
23677
23678         * top/maint.mk (sc_texinfo_acronym): Don't infloop if there is
23679         no *.texi files.  Reported by Eric Blake <eblake@redhat.com>.
23680
23681 2010-03-25  Eric Blake  <eblake@redhat.com>
23682
23683         maint: use pragma consistently across replacement headers
23684         * lib/ctype.in.h (system_header): Hoist for consistent placement.
23685         * lib/dirent.in.h (system_header): Likewise.
23686         * lib/errno.in.h (system_header): Likewise.
23687         * lib/float.in.h (system_header): Likewise.
23688         * lib/getopt.in.h (system_header): Likewise.
23689         * lib/iconv.in.h (system_header): Likewise.
23690         * lib/inttypes.in.h (system_header): Likewise.
23691         * lib/langinfo.in.h (system_header): Likewise.
23692         * lib/locale.in.h (system_header): Likewise.
23693         * lib/math.in.h (system_header): Likewise.
23694         * lib/netdb.in.h (system_header): Likewise.
23695         * lib/netinet_in.in.h (system_header): Likewise.
23696         * lib/pty.in.h (system_header): Likewise.
23697         * lib/sched.in.h (system_header): Likewise.
23698         * lib/se-selinux.in.h (system_header): Likewise.
23699         * lib/search.in.h (system_header): Likewise.
23700         * lib/spawn.in.h (system_header): Likewise.
23701         * lib/stdarg.in.h (system_header): Likewise.
23702         * lib/stdint.in.h (system_header): Likewise.
23703         * lib/string.in.h (system_header): Likewise.
23704         * lib/strings.in.h (system_header): Likewise.
23705         * lib/sys_file.in.h (system_header): Likewise.
23706         * lib/sys_ioctl.in.h (system_header): Likewise.
23707         * lib/sys_socket.in.h (system_header): Likewise.
23708         * lib/sys_times.in.h (system_header): Likewise.
23709         * lib/sys_utsname.in.h (system_header): Likewise.
23710         * lib/sys_wait.in.h (system_header): Likewise.
23711         * lib/sysexits.in.h (system_header): Likewise.
23712         * lib/unistd.in.h (system_header): Likewise.
23713         * lib/wctype.in.h (system_header): Likewise.
23714
23715         arpa/inet: fix mingw compilation warning
23716         * lib/arpa_inet.in.h (system_header): Hoist to be unconditional.
23717         Reported by Matthew Bolte.
23718
23719 2010-03-25  Bruno Haible  <bruno@clisp.org>
23720
23721         Avoid collision between gnulib wrapper and libintl wrapper.
23722         * lib/printf.c (printf): Don't define if a printf wrapper is already
23723         defined in intl/printf.c.
23724         Reported by Michel Boaventura <michel@michelboaventura.com>.
23725
23726 2010-03-25  Bruno Haible  <bruno@clisp.org>
23727
23728         Use ANSI C.
23729         * lib/readutmp.h (getutent): Provide ANSI C prototype.
23730
23731 2010-03-25  Bruno Haible  <bruno@clisp.org>
23732
23733         Minor formatting changes.
23734         * lib/acosl.c: Insert space before function argument list.
23735         * lib/argz.c: Likewise.
23736         * lib/asinl.c: Likewise.
23737         * lib/expl.c: Likewise.
23738         * lib/gen-uni-tables.c: Likewise.
23739         * lib/gettext.h: Likewise.
23740         * lib/glthread/lock.h: Likewise.
23741         * lib/tanl.c: Likewise.
23742         * lib/uniname/uniname.c: Likewise.
23743         * tests/test-idpriv-drop.c: Likewise.
23744         * tests/test-idpriv-droptemp.c: Likewise.
23745         * tests/test-lock.c: Likewise.
23746         * tests/test-tls.c: Likewise.
23747         * lib/argp-help.c: Insert space before function-like macro argument
23748         list.
23749         * lib/memcmp.c: Likewise.
23750         * tests/test-base64.c: Likewise.
23751         * lib/localename.c: Insert space before sizeof's argument list.
23752         * lib/safe-alloc.h: Likewise.
23753         * lib/file-set.h: Insert space before macro argument list.
23754         * tests/test-argp.c: Likewise.
23755         * lib/argp-namefrob.h: Insert space before function parameter list.
23756         * lib/getaddrinfo.c: Likewise.
23757         * lib/netdb.in.h: Likewise.
23758         * lib/parse-duration.h: Likewise.
23759         * lib/parse-duration.c: Likewise.
23760         * lib/poll.c: Likewise.
23761         * lib/select.c: Likewise.
23762         * lib/trim.h: Likewise.
23763         * tests/test-usleep.c: Likewise.
23764         * lib/ldexpl.c: Insert space before function parameter list and before
23765         function argument list.
23766         * lib/logl.c: Likewise.
23767         * lib/sqrtl.c: Likewise.
23768         * lib/trim.c: Likewise.
23769         * lib/cosl.c: Use GNU style indentation. Insert space before function
23770         argument list.
23771         * lib/sinl.c: Likewise.
23772         * lib/tsearch.c: Insert space after 'for'.
23773         Reported by Jim Meyering.
23774
23775 2010-03-23  Pádraig Brady  <P@draigBrady.com>  (tiny change)
23776
23777         * maint.mk (sc_Wundef_boolean): Check for the presence of the
23778         config header before grepping, as it's not present before
23779         autoreconf/configure are run.  Reported by Simon Josefsson.
23780
23781 2010-03-23  Bruno Haible  <bruno@clisp.org>
23782
23783         pt_chown: Make it work with automake < 1.11.
23784         * modules/pt_chown (Makefile.am): Define pkglibexecdir.
23785         Reported by Simon Josefsson.
23786
23787 2010-03-23  Bruno Haible  <bruno@clisp.org>
23788
23789         pt_chown: Don't depend on GPLed modules.
23790         * lib/pt_chown.c: Don't include idpriv.h.
23791         (main): Don't drop privileges.
23792         * modules/pt_chown (Depends-on): Remove idpriv-drop.
23793         Reported by Simon Josefsson.
23794
23795 2010-03-24  Simon Josefsson  <simon@josefsson.org>
23796
23797         * top/maint.mk (sc_texinfo_acronym): Add rule, based on
23798         suggestions from karl@freefriends.org (Karl Berry).
23799
23800 2010-03-22  Eric Blake  <eblake@redhat.com>
23801
23802         gethostname: further tweaks
23803         * lib/unistd.in.h (includes): Only worry about <winsock2.h> if we
23804         are overriding gethostname.
23805         Suggested by Bruno Haible.
23806
23807 2010-03-21  Bruno Haible  <bruno@clisp.org>
23808
23809         Fix comments.
23810         * lib/forkpty.c (rpl_forkpty): Fix comment.
23811         * lib/openpty.c (rpl_openpty): Likewise.
23812         Reported by Eric Blake.
23813
23814 2010-03-22  Eric Blake  <eblake@redhat.com>
23815
23816         gethostname: fix build on mingw
23817         * lib/unistd.in.h (includes): Work around fact that mingw
23818         <winsock2.h> re-includes <unistd.h>, by avoiding any
23819         redeclarations if we are being included by <winsock2.h>.
23820         Reported by Matthias Bolte.
23821
23822 2010-03-21  Bruno Haible  <bruno@clisp.org>
23823
23824         forkpty: Provide replacement on AIX, HP-UX, IRIX, Solaris.
23825         * lib/forkpty.c (forkpty): New replacement function, from glibc with
23826         modifications.
23827         * lib/pty.in.h (forkpty): Update declaration. Add comments.
23828         * m4/pty.m4 (gl_FORKPTY): If forkpty is not declared, arrange to
23829         provide the replacement.
23830         * modules/forkpty (Depends-on): Add openpty, login_tty.
23831         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Initialize HAVE_FORKPTY.
23832         * modules/pty (Makefile.am): Substitute HAVE_FORKPTY.
23833         * doc/glibc-functions/forkpty.texi: More supported platforms.
23834         * config/srclist.txt: Add forkpty.c (commented).
23835
23836 2010-03-21  Bruno Haible  <bruno@clisp.org>
23837
23838         * modules/forkpty-tests: Use the common TEMPLATE-TESTS.
23839         (Makefile.am): Verify that PTY_LIB is defined.
23840
23841         * modules/openpty-tests: Use the common TEMPLATE-TESTS.
23842
23843 2010-03-21  Bruno Haible  <bruno@clisp.org>
23844
23845         Tests for module 'login_tty'.
23846         * modules/login_tty-tests: New file.
23847         * tests/test-login_tty.c: New file.
23848
23849         New module 'login_tty'.
23850         * lib/login_tty.c: New file.
23851         * m4/pty.m4 (gl_FUNC_LOGIN_TTY): New macro.
23852         * modules/login_tty: New file.
23853         * doc/glibc-functions/login_tty.texi: Mention the new module.
23854
23855 2010-03-21  Bruno Haible  <bruno@clisp.org>
23856
23857         login_tty: Documentation.
23858         * doc/glibc-functions/login_tty.texi: New file.
23859         * doc/gnulib.texi (Glibc <utmp.h>): Include it.
23860
23861 2010-03-21  Bruno Haible  <bruno@clisp.org>
23862
23863         pty: Consistent macro naming.
23864         * m4/pty_h.m4 (gl_PTY_H): Renamed from gl_PTY.
23865         * m4/pty.m4 (gl_FORKPTY, gl_OPENPTY): Update.
23866         * modules/pty (configure.ac): Update.
23867
23868 2010-03-21  Bruno Haible  <bruno@clisp.org>
23869
23870         Tests for openpty: Make stricter.
23871         * tests/test-openpty.c (main): Add test of canonical processing and
23872         erase.
23873         * modules/openpty-tests (Makefile.am): Verify that PTY_LIB is defined.
23874
23875         openpty: Provide replacement on AIX, HP-UX, IRIX, Solaris.
23876         * lib/openpty.c (openpty): New replacement function.
23877         * lib/pty.in.h: Include <termios.h>.
23878         (openpty): Update declaration. Add comments.
23879         * m4/pty.m4 (gl_OPENPTY): Require AC_USE_SYSTEM_EXTENSIONS. If openpty
23880         is not declared, arrange to provide the replacement. Check for _getpty
23881         and posix_openpt.
23882         * modules/openpty (Depends-on): Add extensions, fcntl-h, ioctl.
23883         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Initialize HAVE_OPENPTY.
23884         * modules/pty (Makefile.am): Substitute HAVE_OPENPTY.
23885         * modules/pty-tests (test_pty_c___LDADD): New variable.
23886         * doc/glibc-functions/openpty.texi: More supported platforms.
23887
23888 2010-03-21  Bruno Haible  <bruno@clisp.org>
23889
23890         setenv: Tweaks.
23891         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Include necessary headers in
23892         the test program.
23893         * doc/posix-functions/setenv.texi: Update platforms list.
23894
23895 2010-03-21  Bruno Haible  <bruno@clisp.org>
23896
23897         New module 'unlockpt'.
23898         * lib/unlockpt.c: New file, from glibc with modifications.
23899         * m4/unlockpt.m4: New file.
23900         * modules/unlockpt: New file.
23901         * lib/stdlib.in.h (unlockpt): New declaration.
23902         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether unlockpt is declared.
23903         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_UNLOCKPT, HAVE_UNLOCKPT.
23904         * modules/stdlib (Makefile.am): Substitute GNULIB_UNLOCKPT,
23905         HAVE_UNLOCKPT.
23906         * doc/posix-functions/unlockpt.texi: Mention the new module.
23907         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::unlockpt.
23908         * config/srclist.txt: Add unlockpt.c (commented).
23909
23910 2010-03-21  Jim Meyering  <meyering@redhat.com>
23911
23912         maint.mk: prohibit inclusion of "intprops.h" without use
23913         * top/maint.mk (sc_prohibit_intprops_without_use): New rule.
23914
23915 2010-03-21  Bruno Haible  <bruno@clisp.org>
23916
23917         New module 'grantpt'.
23918         * lib/grantpt.c: New file, from glibc with modifications.
23919         * m4/grantpt.m4: New file.
23920         * modules/grantpt: New file.
23921         * lib/stdlib.in.h (grantpt): New declaration.
23922         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether grantpt is declared.
23923         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_GRANTPT, HAVE_GRANTPT.
23924         * modules/stdlib (Makefile.am): Substitute GNULIB_GRANTPT,
23925         HAVE_GRANTPT.
23926         * doc/posix-functions/grantpt.texi: Mention the new module.
23927         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::grantpt.
23928         * config/srclist.txt: Add grantpt.c (commented).
23929
23930 2010-03-21  Bruno Haible  <bruno@clisp.org>
23931
23932         New module 'pt_chown'.
23933         * lib/pt_chown.c: New file, from glibc with modifications.
23934         * lib/pty-private.h: New file, from glibc with modifications.
23935         * modules/pt_chown: New file.
23936         * config/srclist.txt: Add pt_chown.c, pty-private.h (commented).
23937
23938 2010-03-21  Bruno Haible  <bruno@clisp.org>
23939
23940         Tests for module 'ptsname'.
23941         * modules/ptsname-tests: New file.
23942         * tests/test-ptsname.c: New file.
23943
23944         New module 'ptsname'.
23945         * lib/ptsname.c: New file, from glibc with modifications.
23946         * m4/ptsname.m4: New file.
23947         * modules/ptsname: New file.
23948         * lib/stdlib.in.h (ptsname): New declaration.
23949         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether ptsname is declared.
23950         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_PTSNAME, HAVE_PTSNAME.
23951         * modules/stdlib (Makefile.am): Substitute GNULIB_PTSNAME,
23952         HAVE_PTSNAME.
23953         * doc/posix-functions/ptsname.texi: Mention the new module.
23954         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::ptsname.
23955         * config/srclist.txt: Add ptsname.c (commented).
23956
23957 2010-03-21  Bruno Haible  <bruno@clisp.org>
23958
23959         Tests for module 'ttyname_r'.
23960         * modules/ttyname_r-tests: New file.
23961         * tests/test-ttyname_r.c: New file.
23962
23963         New module 'ttyname_r'.
23964         * lib/ttyname_r.c: New file.
23965         * m4/ttyname_r.m4: New file.
23966         * modules/ttyname_r: New file.
23967         * lib/unistd.in.h (ttyname_r): New declaration.
23968         * m4/unistd_h.m4 (gl_UNISTD_H): Check whether ttyname_r is declared.
23969         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_TTYNAME_R, HAVE_TTYNAME_R.
23970         * modules/unistd (Makefile.am): Substitute GNULIB_TTYNAME_R,
23971         HAVE_TTYNAME_R.
23972         * tests/test-unistd-c++.cc: Check GNULIB_NAMESPACE::ttyname_r.
23973         * doc/posix-functions/ttyname_r.texi: Mention the new module.
23974
23975 2010-03-20  Bruno Haible  <bruno@clisp.org>
23976
23977         signal: Undefine macro definitions in C++ mode.
23978         * lib/signal.in.h (sigismember, sigemptyset, sigaddset, sigdelset,
23979         sigfillset): Undefine macro definitions from the system header in C++
23980         mode.
23981         Reported by John W. Eaton <jwe@gnu.org>.
23982
23983 2010-03-20  Bruno Haible  <bruno@clisp.org>
23984
23985         Ensure no #include statements inside extern "C" { ... }.
23986         * lib/obstack.h: Shrink extern "C" { ... } region so that it does not
23987         contain #include statements.
23988         * lib/time.in.h: Likewise.
23989
23990 2010-03-20  Bruno Haible  <bruno@clisp.org>
23991
23992         Make _GL_WARN_ON_USE usable in C++ and C mode in the same compilation.
23993         * build-aux/warn-on-use.h (_GL_WARN_EXTERN_C): New macro.
23994         (_GL_WARN_ON_USE, _GL_WARN_ON_USE_CXX): Likewise.
23995         Reported by John W. Eaton <jwe@gnu.org>.
23996
23997 2010-03-20  Bruno Haible  <bruno@clisp.org>
23998
23999         * m4/unlink.m4 (gl_FUNC_UNLINK): Fix last commit.
24000         Reported by Jim Meyering.
24001
24002 2010-03-20  Bruno Haible  <bruno@clisp.org>
24003
24004         pipe: Set errno upon failure.
24005         * lib/pipe.h: Specify that when -1 is returned, errno is set.
24006         * lib/pipe.c (create_pipe): Set errno when returning -1. Use the right
24007         errno value in error message.
24008
24009 2010-03-20  Bruno Haible  <bruno@clisp.org>
24010             Jim Meyering  <meyering@redhat.com>
24011
24012         lchown: Avoid "unused variable" warning.
24013         * lib/lchown.c (rpl_lchown): Move variable 'st' into #if block.
24014
24015 2010-03-20  Bruno Haible  <bruno@clisp.org>
24016
24017         Work around unlink() bug on MacOS X 10.5.6.
24018         * lib/unlink.c (rpl_unlink): If UNLINK_PARENT_BUG is defined, fail when
24019         attempting to unlink a parent directory.
24020         * m4/unlink.m4 (gl_FUNC_UNLINK): Require AC_CANONICAL_HOST. Test for
24021         MacOS X 10.5 bug. If the bug is present, define UNLINK_PARENT_BUG and
24022         activate for the replacement function.
24023         * doc/posix-functions/unlink.texi: Mention the MacOS X 10.5 bug.
24024
24025 2010-03-20  Bruno Haible  <bruno@clisp.org>
24026
24027         Fix link errors on Solaris 8.
24028         * modules/dirent-tests (test_dirent_c___LDADD): Add LIB_NANOSLEEP.
24029         * modules/wctype-tests (test_wctype_c___LDADD): Likewise.
24030
24031 2010-03-19  Jim Meyering  <meyering@redhat.com>
24032
24033         regcomp.c: make non-_LIBC implementation of build_range_exp consistent
24034         The _LIBC implementation of build_range_exp correctly honors the
24035         RE_NO_EMPTY_RANGES flag when checking for reversed range endpoints.
24036         However, the non-_LIBC implementation would ignore that syntax-bit
24037         flag and return REG_ERANGE unconditionally.
24038         This change makes it honor that flag.
24039         * lib/regcomp.c (build_range_exp) [!_LIBC]: Add a parameter: "syntax".
24040         Make two pointer parameters "const".
24041         Use "syntax" bits in order to honor RE_NO_EMPTY_RANGES.
24042         (parse_bracket_exp): Update caller.
24043
24044         regex.m4: correct the reversed range endpoint ([b-a]) test
24045         * m4/regex.m4: When requiring that [b-a] evoke failure,
24046         use RE_NO_EMPTY_RANGES.  This makes this entire configure-time
24047         test pass once again for x86-based systems.
24048
24049 2010-03-19  Bruno Haible  <bruno@clisp.org>
24050
24051         scandir: Fix link error on Solaris 8.
24052         * lib/scandir.c (_D_EXACT_NAMLEN, _D_ALLOC_NAMLEN): New fallback
24053         macros.
24054
24055 2010-03-19  Bruno Haible  <bruno@clisp.org>
24056
24057         getusershell: Fix documentation.
24058         * doc/glibc-functions/endusershell.texi: Refer to the getusershell
24059         module.
24060         * doc/glibc-functions/setusershell.texi: Likewise.
24061
24062         getusershell: Provide declaration, missing on Solaris 9.
24063         * lib/unistd.in.h (getusershell, setusershell, endusershell): Declare
24064         also if HAVE_GETUSERSHELL && !HAVE_DECL_GETUSERSHELL.
24065         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): When the function exists,
24066         check whether it is declared. Set HAVE_DECL_GETUSERSHELL.
24067         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
24068         HAVE_DECL_GETUSERSHELL, not HAVE_GETUSERSHELL.
24069         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETUSERSHELL, not
24070         HAVE_GETUSERSHELL.
24071         * doc/glibc-functions/getusershell.texi: Mention the Solaris problem.
24072
24073 2010-03-19  Bruno Haible  <bruno@clisp.org>
24074
24075         wctype: Provide iswblank function.
24076         * lib/wctype.in.h (iswblank): Provide a replacement also when iswcntrl
24077         exists and is fine.
24078         * m4/wctype_h.m4 (gl_WCTYPE_H): Also check whether iswcntrl exists.
24079         * modules/wctype (Makefile.am): Substitute HAVE_ISWBLANK.
24080         * tests/test-wctype.c (main): Re-enable the iswblank tests.
24081         * doc/posix-functions/iswblank.texi: Update.
24082
24083 2010-03-19  Bruno Haible  <bruno@clisp.org>
24084
24085         Tests of module 'pty' in C++ mode.
24086         * modules/pty-tests: New file.
24087         * tests/test-pty-c++.cc: New file.
24088         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
24089
24090 2010-03-19  Eric Blake  <eblake@redhat.com>
24091
24092         logb: fix documentation
24093         * doc/posix-functions/logb.texi (logb): Gnulib fixes the cygwin
24094         1.5 declaration bug.
24095
24096         forkpty, openpty: prefer glibc's const-safe prototype
24097         * lib/forkpty.c (rpl_forkpty): New file.
24098         * lib/openpty.c (rpl_openpty): Likewise.
24099         * modules/forkpty (Files): Distribute it.
24100         * modules/openpty (Files): Likewise.
24101         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Add new witnesses.  Move decl
24102         check...
24103         * m4/pty.m4 (gl_FORKPTY, gl_OPENPTY): ...here.  Request
24104         replacement for for non-const BSD signature.
24105         * modules/pty (Makefile.am): Substitute witnesses.
24106         * lib/pty.in.h (forkpty, openpty): Declare replacements.
24107         * tests/test-forkpty.c: Update signature check.
24108         * tests/test-openpty.c: Likewise.
24109         * doc/glibc-functions/forkpty.texi (forkpty): Document the fix.
24110         * doc/glibc-functions/openpty.texi (openpty): Likewise.
24111
24112         forkpty, openpty: split functions into new modules
24113         * modules/pty (Makefile.am): Substitute new witnesses.
24114         (Libraries): Move library detection...
24115         * modules/forkpty: ...into new module.
24116         * modules/openpty: Another new module.
24117         * modules/pty-tests: Rename and split...
24118         * modules/forkpty-tests: ...to this...
24119         * modules/openpty-tests: ...and this.
24120         * tests/test-pty.c: Rename and split...
24121         * tests/test-forkpty.c: ...to this...
24122         * tests/test-openpty.c: ...and this.
24123         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Add new witnesses.
24124         (gl_PTY): Split library searching...
24125         * m4/pty.m4 (gl_PTY_LIB): ...into new file.
24126         (gl_FORKPTY, gl_OPENPTY): New macros.
24127         * lib/pty.in.h (forkpty, openpty): Honor new witnesses.
24128         * NEWS: Mention the split.
24129         * MODULES.html.sh (Misc): Document the modules.
24130         * doc/glibc-functions/forkpty.texi (forkpty): Likewise.
24131         * doc/glibc-functions/openpty.texi (openpty): Likewise.
24132
24133         pty: improve replacement header
24134         * lib/pty.in.h: New file.
24135         * modules/pty (Files): Ship it.
24136         (Makefile.am): Always build replacement.
24137         * m4/pty.m4: Rename...
24138         * m4/pty_h.m4: ...to this.
24139         (gl_PTY): Modernize setting of witness macros; update check of
24140         forkpty to take proper advantage of cache.
24141         (gl_PTY_MODULE_INDICATOR, gl_PTY_H_DEFAULTS): New macros.
24142
24143         getopt: avoid compiler warning
24144         * lib/getopt.c (attribute_hidden): Remove unused macro.
24145
24146 2010-03-18  Bruno Haible  <bruno@clisp.org>
24147
24148         Fix link errors on Solaris 8.
24149         * modules/iconv-h-tests (test_iconv_h_c___LDADD): Add LIB_NANOSLEEP.
24150         * modules/search-tests (test_search_c___LDADD): Likewise.
24151         * modules/signal-tests (test_signal_c___LDADD): Likewise.
24152         * modules/spawn-tests (test_spawn_c___LDADD): Likewise.
24153         * modules/stdio-tests (test_stdio_c___LDADD): Likewise.
24154         * modules/sys_select-tests (test_sys_select_c___LDADD): Likewise.
24155         * modules/sys_socket-tests (test_sys_socket_c___LDADD): Likewise.
24156         * modules/sys_time-tests (test_sys_time_c___LDADD): Likewise.
24157         * modules/wchar-tests (test_wchar_c___LDADD): Likewise.
24158
24159 2010-03-18  Bruno Haible  <bruno@clisp.org>
24160
24161         Fix bug introduced on 2010-03-14.
24162         * m4/spawn_h.m4 (gl_HAVE_POSIX_SPAWN): New macro.
24163         (gl_SPAWN_H): Require it.
24164         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): Likewise.
24165         Reported by Simon Josefsson.
24166
24167 2010-03-18  Bruno Haible  <bruno@clisp.org>
24168
24169         Fix typo introduced on 2009-12-31.
24170         * m4/spawn_h.m4 (gl_SPAWN_H): Check for the declaration of
24171         posix_spawn_file_actions_adddup2.
24172
24173 2010-03-17  Bert Wesarg  <bert.wesarg@googlemail.com>  (tiny change)
24174         and Eric Blake  <eblake@redhat.com>
24175
24176         test-vc-list-files-git: make more robust
24177         * tests/test-vc-list-files-git.sh: Unset problematic environment
24178         variables.  Chain commands together.
24179
24180 2010-03-17  Ludovic Courtès <ludo@gnu.org>  (tiny change)
24181
24182         * m4/pty.m4: Unset $ac_cv_have_decl_forkpty before the second
24183         `AC_CHECK_DECL' invocation.
24184
24185 2010-03-15  Sergey Poznyakoff  <gray@gnu.org.ua>
24186
24187         * lib/inttostr.c (inttostr): Make sure the invocation of verify
24188         appears before executable statements. Suggested by Petr Sumbera
24189         <Petr.Sumbera@Sun.COM>.
24190
24191 2010-03-14  Bruno Haible  <bruno@clisp.org>
24192
24193         * tests/test-flock.c (test_exclusive): Comment out a test that causes
24194         portability problems. Instead use a simpler test.
24195         (main): Check that invalid arguments are rejected only on Linux.
24196
24197 2010-03-14  Bruno Haible  <bruno@clisp.org>
24198
24199         Fix bug introduced on 2009-12-31.
24200         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Invoke
24201         gl_PREREQ_SYS_H_WINSOCK2 always.
24202         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise. Remove
24203         SYS_SOCKET_H variable.
24204         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Remove test for flock.
24205         Update comments.
24206         * m4/ctype.m4 (gl_CTYPE_H): Update comments.
24207         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
24208         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
24209         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
24210         * m4/sys_wait_h.m4 (gl_SYS_WAIT_H): Likewise.
24211
24212 2010-03-14  Bruno Haible  <bruno@clisp.org>
24213
24214         Fix values returned by sinl, cosl.
24215         * lib/trigl.h: Add specification comments.
24216         * lib/sincosl.c (kernel_sinl, kernel_cosl): Fix comments and formula
24217         that combines the values from the precomputed table with the values of
24218         the Chebyshev polynomials.
24219
24220 2010-03-14  Bruno Haible  <bruno@clisp.org>
24221
24222         Fix compilation error when modules 'posix_spawn[p]' are not used.
24223         * m4/spawn_h.m4 (gl_SPAWN_H): Set HAVE_POSIX_SPAWN here.
24224         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): ... not here.
24225
24226 2010-03-14  Bruno Haible  <bruno@clisp.org>
24227
24228         Fix compilation error on mingw when module 'time_r' is not used.
24229         * lib/time.in.h (localtime_r, gmtime_r): Declare only if GNULIB_TIME_R
24230         is 1.
24231         * tests/test-time-c++.cc (localtime_r, gmtime_r): Likewise.
24232         * modules/time_r (configure.ac): Invoke gl_TIME_MODULE_INDICATOR.
24233         * modules/time (Makefile.am): Substitute GNULIB_TIME_R.
24234         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize GNULIB_TIME_R.
24235
24236 2010-03-14  Bruno Haible  <bruno@clisp.org>
24237
24238         Fix compilation error with Sun C.
24239         * lib/strtol.c: Use LLONG_MIN instead of GCC specific LONG_LONG_MIN.
24240         Use LLONG_MAX instead of GCC specific LONG_LONG_MAX. Use ULLONG_MAX
24241         instead of GCC specific ULONG_LONG_MAX.
24242         * lib/xstrtoll.c: Likewise.
24243         * lib/xstrtoull.c: Likewise.
24244
24245 2010-03-13  Bruno Haible  <bruno@clisp.org>
24246
24247         Allow the user to disable C++ code and tests.
24248         * m4/ansi-c++.m4 (gl_CXX_CHOICE): New macro.
24249         (gl_PROG_ANSI_CXX): Require it.
24250
24251 2010-03-13  Bruno Haible  <bruno@clisp.org>
24252
24253         * DEPENDENCIES (libtool): Mention libtool 2.2.x requirement in special
24254         cases.
24255
24256 2010-03-13  Bruno Haible  <bruno@clisp.org>
24257
24258         Test that gnulib does not break the standard C++ headers.
24259         * tests/test-locale-c++2.cc: New file.
24260         * modules/locale-tests (Files): Add it.
24261         (Makefile.am): Compile it for test-locale-c++.
24262         * tests/test-math-c++2.cc: New file.
24263         * modules/math-tests (Files): Add it.
24264         (Makefile.am): Compile it for test-math-c++.
24265         * tests/test-signal-c++2.cc: New file.
24266         * modules/signal-tests (Files): Add it.
24267         (Makefile.am): Compile it for test-signal-c++.
24268         * tests/test-stdio-c++2.cc: New file.
24269         * modules/stdio-tests (Files): Add it.
24270         (Makefile.am): Compile it for test-stdio-c++.
24271         * tests/test-stdlib-c++2.cc: New file.
24272         * modules/stdlib-tests (Files): Add it.
24273         (Makefile.am): Compile it for test-stdlib-c++.
24274         * tests/test-string-c++2.cc: New file.
24275         * modules/string-tests (Files): Add it.
24276         (Makefile.am): Compile it for test-string-c++.
24277         * tests/test-time-c++2.cc: New file.
24278         * modules/time-tests (Files): Add it.
24279         (Makefile.am): Compile it for test-time-c++.
24280         Reported by John W. Eaton <jwe@gnu.org>.
24281
24282 2010-03-13  Bruno Haible  <bruno@clisp.org>
24283
24284         * gnulib-tool (func_usage): Clarify which options are available for
24285         --create-testdir and --create-megatestdir.
24286
24287 2010-03-13  Bruno Haible  <bruno@clisp.org>
24288
24289         Fix compilation error with glibc >= 2.10 and g++ >= 4.4.
24290         * build-aux/warn-on-use.h (_GL_WARN_ON_USE_CXX): New macro.
24291         * build-aux/c++defs.h (_GL_CXXALIASWARN1): New macro.
24292         * lib/string.in.h (memchr, memrchr, rawmemchr, strchrnul, strpbrk,
24293         strstr, strcasestr): Use _GL_CXXALIASWARN1 instead of _GL_CXXALIASWARN
24294         when appropriate.
24295         Reported by Jim Meyering.
24296
24297 2010-03-12  Simon Josefsson  <simon@josefsson.org>
24298
24299         * gnulib-tool (func_import): Explain origin of code.
24300
24301 2010-03-12  Bruno Haible  <bruno@clisp.org>
24302
24303         Fix problem with automake's definition of CXXLINK.
24304         * gnulib-tool (func_create_testdir): After LT_INIT, also use LT_LANG.
24305         Reported by Simon Josefsson and Ludovic Courtès.
24306
24307 2010-03-12  Bruno Haible  <bruno@clisp.org>
24308
24309         * doc/gnulib-intro.texi (Steady Development): Mention Ian Beckwith's
24310         stable releases.
24311
24312 2010-03-11  Bruno Haible  <bruno@clisp.org>
24313
24314         Fix problems with overloaded C++ definitions of memchr, strpbrk, etc.
24315         * build-aux/c++defs.h (_GL_CXXALIAS_SYS_CAST2): Make it work regardless
24316         whether the system provides one variant or multiple variants of the
24317         function.
24318         * lib/string.in.h (memchr, strpbrk): Use _GL_CXXALIAS_SYS_CAST2 for all
24319         C++ compilers.
24320         (memrchr, rawmemchr, strchrnul, strstr, strcasestr): Use
24321         _GL_CXXALIAS_SYS_CAST2 instead of _GL_CXXALIAS_SYS.
24322         Reported by Jim Meyering.
24323
24324 2010-03-09  Simon Josefsson  <simon@josefsson.org>
24325
24326         * gnulib-tool (LIBTOOLPATH): Fix cut'n'paste bug.
24327
24328 2010-03-08  Bruno Haible  <bruno@clisp.org>
24329
24330         gnulib-tool: Add support for --libtool in --create-testdir.
24331         * gnulib-tool (LIBTOOLPATH, LIBTOOLIZE): New variables.
24332         (func_create_testdir): Emit LT_INIT invocations. Invoke LIBTOOLIZE.
24333
24334 2010-03-08  Eric Blake  <eblake@redhat.com>
24335
24336         gnulib-tool.texi: mention possibility of git submodule
24337         * doc/gnulib-tool.texi (VCS Issues): Add details about using git
24338         submodules.
24339         * doc/.gitignore: Ignore another generated file.
24340
24341 2010-03-08  Karl Berry  <karl@gnu.org>
24342
24343         * doc/gnulib-tool.texi (VCS Issues): Mention third option
24344         of committing gnulib files while skipping others.
24345
24346 2010-03-07  Bruno Haible  <bruno@clisp.org>
24347
24348         Tests of module 'wctype' in C++ mode.
24349         * tests/test-wctype-c++.cc: New file.
24350         * modules/wctype-tests (Files): Add it and tests/signature.h.
24351         (Depends-on): Add ansi-c++-opt.
24352         (Makefile.am): Arrange to compile and run test-wctype-c++.
24353
24354         Tests of module 'wchar' in C++ mode.
24355         * tests/test-wchar-c++.cc: New file.
24356         * modules/wchar-tests (Files): Add it and tests/signature.h.
24357         (Depends-on): Add ansi-c++-opt.
24358         (Makefile.am): Arrange to compile and run test-wchar-c++.
24359         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Invoke
24360         gl_MODULE_INDICATOR.
24361
24362         Tests of module 'unistd' in C++ mode.
24363         * tests/test-unistd-c++.cc: New file.
24364         * modules/unistd-tests (Files): Add it and tests/signature.h.
24365         (Depends-on): Add ansi-c++-opt.
24366         (Makefile.am): Arrange to compile and run test-unistd-c++.
24367         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Invoke
24368         gl_MODULE_INDICATOR.
24369
24370         Tests of module 'time' in C++ mode.
24371         * tests/test-time-c++.cc: New file.
24372         * modules/time-tests (Files): Add it and tests/signature.h.
24373         (Depends-on): Add ansi-c++-opt.
24374         (Makefile.am): Arrange to compile and run test-time-c++.
24375         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
24376
24377         Tests of module 'sys_time' in C++ mode.
24378         * tests/test-sys_time-c++.cc: New file.
24379         * modules/sys_time-tests (Files): Add it and tests/signature.h.
24380         (Depends-on): Add ansi-c++-opt.
24381         (Makefile.am): Arrange to compile and run test-sys_time-c++.
24382         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Invoke
24383         gl_MODULE_INDICATOR.
24384
24385         Tests of module 'sys_stat' in C++ mode.
24386         * tests/test-sys_stat-c++.cc: New file.
24387         * modules/sys_stat-tests (Files): Add it and tests/signature.h.
24388         (Depends-on): Add ansi-c++-opt.
24389         (Makefile.am): Arrange to compile and run test-sys_stat-c++.
24390         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Invoke
24391         gl_MODULE_INDICATOR.
24392
24393         Tests of module 'sys_socket' in C++ mode.
24394         * tests/test-sys_socket-c++.cc: New file.
24395         * modules/sys_socket-tests (Files): Add it and tests/signature.h.
24396         (Depends-on): Add ansi-c++-opt.
24397         (Makefile.am): Arrange to compile and run test-sys_socket-c++.
24398         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Invoke
24399         gl_MODULE_INDICATOR.
24400
24401         Tests of module 'sys_select' in C++ mode.
24402         * tests/test-sys_select-c++.cc: New file.
24403         * modules/sys_select-tests (Files): Add it and tests/signature.h.
24404         (Depends-on): Add ansi-c++-opt.
24405         (Makefile.am): Arrange to compile and run test-sys_select-c++.
24406         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Invoke
24407         gl_MODULE_INDICATOR.
24408
24409         Tests of module 'sys_ioctl' in C++ mode.
24410         * tests/test-sys_ioctl-c++.cc: New file.
24411         * modules/sys_ioctl-tests (Files): Add it and tests/signature.h.
24412         (Depends-on): Add ansi-c++-opt.
24413         (Makefile.am): Arrange to compile and run test-sys_ioctl-c++.
24414         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Invoke
24415         gl_MODULE_INDICATOR.
24416
24417         Tests of module 'string' in C++ mode.
24418         * tests/test-string-c++.cc: New file.
24419         * modules/string-tests (Files): Add it and tests/signature.h.
24420         (Depends-on): Add ansi-c++-opt.
24421         (Makefile.am): Arrange to compile and run test-string-c++.
24422         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Invoke
24423         gl_MODULE_INDICATOR.
24424
24425         Tests of module 'stdlib' in C++ mode.
24426         * tests/test-stdlib-c++.cc: New file.
24427         * modules/stdlib-tests (Files): Add it and tests/signature.h.
24428         (Depends-on): Add ansi-c++-opt.
24429         (Makefile.am): Arrange to compile and run test-stdlib-c++.
24430         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Invoke
24431         gl_MODULE_INDICATOR.
24432
24433         Tests of module 'stdio' in C++ mode.
24434         * tests/test-stdio-c++.cc: New file.
24435         * modules/stdio-tests (Files): Add it and tests/signature.h.
24436         (Depends-on): Add ansi-c++-opt.
24437         (Makefile.am): Arrange to compile and run test-stdio-c++.
24438         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Invoke
24439         gl_MODULE_INDICATOR.
24440
24441         Tests of module 'spawn' in C++ mode.
24442         * tests/test-spawn-c++.cc: New file.
24443         * modules/spawn-tests (Files): Add it and tests/signature.h.
24444         (Depends-on): Add ansi-c++-opt.
24445         (Makefile.am): Arrange to compile and run test-spawn-c++.
24446         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Invoke
24447         gl_MODULE_INDICATOR.
24448
24449         Tests of module 'signal' in C++ mode.
24450         * tests/test-signal-c++.cc: New file.
24451         * modules/signal-tests (Files): Add it and tests/signature.h.
24452         (Depends-on): Add ansi-c++-opt.
24453         (Makefile.am): Arrange to compile and run test-signal-c++.
24454         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Invoke
24455         gl_MODULE_INDICATOR.
24456
24457         Tests of module 'search' in C++ mode.
24458         * tests/test-search-c++.cc: New file.
24459         * modules/search-tests (Files): Add it and tests/signature.h.
24460         (Depends-on): Add ansi-c++-opt.
24461         (Makefile.am): Arrange to compile and run test-search-c++.
24462         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Invoke
24463         gl_MODULE_INDICATOR.
24464
24465         Tests of module 'math' in C++ mode.
24466         * tests/test-math-c++.cc: New file.
24467         * modules/math-tests (Files): Add it and tests/signature.h.
24468         (Depends-on): Add ansi-c++-opt.
24469         (Makefile.am): Arrange to compile and run test-math-c++.
24470         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
24471
24472         Tests of module 'locale' in C++ mode.
24473         * tests/test-locale-c++.cc: New file.
24474         * modules/locale-tests (Files): Add it and tests/signature.h.
24475         (Depends-on): Add ansi-c++-opt.
24476         (Makefile.am): Arrange to compile and run test-locale-c++.
24477         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Invoke
24478         gl_MODULE_INDICATOR.
24479
24480         Tests of module 'langinfo' in C++ mode.
24481         * tests/test-langinfo-c++.cc: New file.
24482         * modules/langinfo-tests (Files): Add it and tests/signature.h.
24483         (Depends-on): Add ansi-c++-opt.
24484         (Makefile.am): Arrange to compile and run test-langinfo-c++.
24485         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Invoke
24486         gl_MODULE_INDICATOR.
24487
24488         Tests of module 'iconv-h' in C++ mode.
24489         * tests/test-iconv-h-c++.cc: New file.
24490         * modules/iconv-h-tests (Files): Add it and tests/signature.h.
24491         (Depends-on): Add ansi-c++-opt.
24492         (Makefile.am): Arrange to compile and run test-iconv-h-c++.
24493
24494         Tests of module 'glob' in C++ mode.
24495         * tests/test-glob-c++.cc: New file.
24496         * modules/glob-tests (Files): Add it.
24497         (Depends-on): Add ansi-c++-opt.
24498         (Makefile.am): Arrange to compile and run test-glob-c++.
24499
24500         Tests of module 'fcntl-h' in C++ mode.
24501         * tests/test-fcntl-h-c++.cc: New file.
24502         * modules/fcntl-h-tests (Files): Add it and tests/signature.h.
24503         (Depends-on): Add ansi-c++-opt.
24504         (Makefile.am): Arrange to compile and run test-fcntl-h-c++.
24505         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Invoke
24506         gl_MODULE_INDICATOR.
24507
24508         Tests of module 'dirent' in C++ mode.
24509         * tests/test-dirent-c++.cc: New file.
24510         * modules/dirent-tests (Files): Add it and tests/signature.h.
24511         (Depends-on): Add ansi-c++-opt.
24512         (Makefile.am): Arrange to compile and run test-dirent-c++.
24513         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Invoke
24514         gl_MODULE_INDICATOR.
24515
24516         New module 'ansi-c++-opt'.
24517         * modules/ansi-c++-opt: New file.
24518         * m4/ansi-c++.m4: New file, from GNU gettext with modifications.
24519
24520         Document C++ namespace mode.
24521         * doc/gnulib.texi (A C++ namespace for gnulib): New section.
24522
24523         wctype: Avoid #define replacements in C++ mode.
24524         * lib/wctype.in.h: Include c++defs.h, warn-on-use.h.
24525         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph, iswlower,
24526         iswprint, iswpunct, iswspace, iswupper, iswxdigit, towlower, towupper):
24527         In C++, define a namespaced alias symbol.
24528         * m4/wctype_h.m4 (gl_WCTYPE_H): Don't set WCTYPE_H.
24529         * modules/wctype (Depends-on): Add c++defs, warn-on-use.
24530         (Makefile.am): Provide a wctype.h replacement always. Update wctype.h
24531         rule.
24532
24533         wchar: Avoid #define replacements in C++ mode.
24534         * lib/wchar.in.h: Include c++defs.h.
24535         (btowc, wctob, mbsinit, mbrtowc, mbrlen, mbsrtowcs, mbsnrtowcs,
24536         wcrtomb, wcsrtombs, wcsnrtombs): In C++, define a namespaced alias
24537         symbol.
24538         (wcwidth): Likewise. Fix prototype to be POSIX compliant.
24539         * modules/wchar (Depends-on): Add c++defs.
24540         (Makefile.am): Update wchar.h rule.
24541
24542         unistd: Avoid #define replacements in C++ mode.
24543         * lib/unistd.in.h: Include c++defs.h.
24544         (chown, close, dup, dup2, dup3, euidaccess, faccessat, fchdir,
24545         fchownat, fsync, ftruncate, getcwd, getdomainname, getdtablesize,
24546         getgroups, gethostname, getlogin, getlogin_r, getpagesize,
24547         getusershell, setusershell, endusershell, lchown, link, linkat, lseek,
24548         pipe2, pread, readlink, readlinkat, rmdir, sleep, symlink, symlinkat,
24549         unlink, unlinkat, usleep, write): In C++, define a namespaced alias
24550         symbol.
24551         (environ): Update.
24552         * modules/unistd (Depends-on): Add c++defs.
24553         (Makefile.am): Update unistd.h rule.
24554
24555         time: Avoid #define replacements in C++ mode.
24556         * lib/time.in.h: Include c++defs.h, warn-on-use.h.
24557         (nanosleep, mktime, localtime_r, gmtime_r, strptime, timegm): In C++,
24558         define a namespaced alias symbol.
24559         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): New macro.
24560         (gl_HEADER_TIME_H_DEFAULTS): Initialize also GNULIB_MKTIME,
24561         GNULIB_NANOSLEEP, GNULIB_STRPTIME, GNULIB_TIMEGM.
24562         * modules/time (Depends-on): Add c++defs, warn-on-use.
24563         (Makefile.am): Update time.h rule.
24564         * modules/mktime (configure.ac): Invoke gl_TIME_MODULE_INDICATOR.
24565         * modules/nanosleep (configure.ac): Likewise.
24566         * modules/strptime (configure.ac): Likewise.
24567         * modules/timegm (configure.ac): Likewise.
24568
24569         sys_time: Avoid #define replacements in C++ mode.
24570         * lib/sys_time.in.h: Include c++defs.h.
24571         (gettimeofday): In C++, define a namespaced alias symbol.
24572         * modules/sys_time (Depends-on): Add c++defs.
24573         (Makefile.am): Update sys/time.h rule.
24574
24575         sys_stat: Avoid #define replacements in C++ mode.
24576         * lib/sys_stat.in.h: Include c++defs.h.
24577         (fchmodat, fstat, fstatat, futimens, lchmod, lstat, mkdir, mkdirat,
24578         mkfifo, mkfifoat, mknod, mknodat, utimensat): In C++, define a
24579         namespaced alias symbol.
24580         In C++, define a namespaced alias symbol.
24581         * modules/sys_stat (Depends-on): Add c++defs.
24582         (Makefile.am): Update sys/stat.h rule.
24583
24584         sys_socket: Avoid #define replacements in C++ mode.
24585         * lib/sys_socket.in.h: Handle the case of recursive include on Cygwin.
24586         Include c++defs.h. Include warn-on-use.h earlier. Enable the function
24587         definitions also when the system has a <sys/socket.h>.
24588         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
24589         listen, recv, send, recvfrom, sendto, setsockopt, shutdown, accept4):
24590         In C++, define a namespaced alias symbol.
24591         * modules/sys_socket (Depends-on): Add c++defs.
24592         (Makefile.am): Update sys/socket.h rule.
24593
24594         sys_select: Avoid #define replacements in C++ mode.
24595         * lib/sys_select.in.h: Include c++defs.h. Enable the function
24596         definitions also when the system has a <sys/select.h>.
24597         (select): In C++, define a namespaced alias symbol.
24598         * modules/sys_select (Depends-on): Add c++defs.
24599         (Makefile.am): Update sys/select.h rule.
24600
24601         sys_ioctl: Avoid #define replacements in C++ mode.
24602         * lib/sys_ioctl.in.h: Include c++defs.h.
24603         (ioctl): In C++, define a namespaced alias symbol.
24604         * modules/sys_ioctl (Depends-on): Add c++defs.
24605         (Makefile.am): Update sys/ioctl.h rule.
24606
24607         string: Avoid #define replacements in C++ mode.
24608         * lib/string.in.h: Include c++defs.h.
24609         (stpncpy): Define to rpl_stpncpy, not gnu_stpncpy.
24610         (memchr, memmem, mempcpy, memrchr, rawmemchr, stpcpy, stpncpy,
24611         strchrnul, strdup, strndup, strnlen, strpbrk, strsep, strstr,
24612         strcasestr, strtok_r, mbslen, mbschr, mbsrchr, mbspbrk, strerror,
24613         strsignal, strverscmp): In C++, define a namespaced alias symbol.
24614         * modules/string (Depends-on): Add c++defs.
24615         (Makefile.am): Update string.h rule.
24616
24617         stdlib: Avoid #define replacements in C++ mode.
24618         * lib/stdlib.in.h: Include c++defs.h.
24619         (atoll, calloc, canonicalize_file_name, getloadavg, getsubopt, malloc,
24620         mkdtemp, mkostemp, mkostemps, mkstemp, mkstemps, putenv, random_r,
24621         srandom_r, initstate_r, setstate_r, realloc, realpath, rpmatch, setenv,
24622         strtod, strtoll, strtoull, unsetenv): In C++, define a namespaced alias
24623         symbol.
24624         * modules/stdlib (Depends-on): Add c++defs.
24625         (Makefile.am): Update stdlib.h rule.
24626
24627         stdio: Avoid #define replacements in C++ mode.
24628         * lib/stdio.in.h: Include c++defs.h.
24629         (dprintf, fclose, fflush, fopen, fprintf, fpurge, fputc, fputs,
24630         freopen, fseek, fseeko, ftell, ftello, fwrite, getdelim, getline,
24631         obstack_printf, obstack_vprintf, perror, popen, printf, fputc, putchar,
24632         puts, remove, rename, renameat, snprintf, sprintf, asprintf, vasprintf,
24633         vdprintf, vfprintf, vprintf, vsnprintf, vsprintf): In C++, define a
24634         namespaced alias symbol.
24635         * modules/stdio (Depends-on): Add c++defs.
24636         (Makefile.am): Update stdio.h rule.
24637
24638         spawn: Avoid #define replacements in C++ mode.
24639         * lib/spawn.in.h: Include c++defs.h.
24640         (posix_spawn, posix_spawnp, posix_spawnattr_init,
24641         posix_spawnattr_destroy, posix_spawnattr_getsigdefault,
24642         posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask,
24643         posix_spawnattr_setsigmask, posix_spawnattr_getflags,
24644         posix_spawnattr_setflags, posix_spawnattr_getpgroup,
24645         posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy,
24646         posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam,
24647         posix_spawnattr_setschedparam, posix_spawn_file_actions_init,
24648         posix_spawn_file_actions_destroy, posix_spawn_file_actions_addopen,
24649         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2):
24650         In C++, define a namespaced alias symbol.
24651         * modules/spawn (Depends-on): Add c++defs.
24652         (Makefile.am): Update spawn.h rule.
24653
24654         signal: Avoid #define replacements in C++ mode.
24655         * lib/signal.in.h: Include c++defs.h.
24656         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset,
24657         sigpending, sigprocmask, signal, raise, sigaction): In C++, define a
24658         namespaced alias symbol.
24659         * modules/signal (Depends-on): Add c++defs.
24660         (Makefile.am): Update signal.h rule.
24661
24662         search: Avoid #define replacements in C++ mode.
24663         * lib/search.in.h: Include c++defs.h.
24664         (_gl_search_compar_fn, _gl_search_action_fn): New types.
24665         (tsearch, tfind, tdelete, twalk): In C++, define a namespaced alias
24666         symbol.
24667         * modules/search (Depends-on): Add c++defs.
24668         (Makefile.am): Update search.h rule.
24669
24670         math: Avoid #define replacements in C++ mode.
24671         * lib/math.in.h: Include c++defs.h.
24672         (frexp, acosl, asinl, atanl, ceilf, ceill, cosl, expl, floorf, floorl,
24673         frexpl, ldexpl, logl, roundf, round, roundl, sinl, sqrtl, tanl, truncf,
24674         trunc, truncl): In C++, define a namespaced alias symbol.
24675         * modules/math (Depends-on): Add c++defs.
24676         (Makefile.am): Update math.h rule.
24677
24678         locale: Avoid #define replacements in C++ mode.
24679         * lib/locale.in.h: Include c++defs.h.
24680         (duplocale): In C++, define a namespaced alias symbol.
24681         * m4/locale_h.m4 (gl_LOCALE_H_DEFAULTS): Initialize HAVE_DUPLOCALE.
24682         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Set HAVE_DUPLOCALE.
24683         * modules/locale (Depends-on): Add c++defs.
24684         (Makefile.am): Update locale.h rule. Substitute HAVE_DUPLOCALE.
24685
24686         langinfo: Avoid #define replacements in C++ mode.
24687         * lib/langinfo.in.h: Include c++defs.h.
24688         (nl_langinfo): In C++, define a namespaced alias symbol.
24689         * modules/langinfo (Depends-on): Add c++defs.
24690         (Makefile.am): Update langinfo.h rule.
24691
24692         iconv-h: Avoid #define replacements in C++ mode.
24693         * lib/iconv.in.h: Include c++defs.h, warn-on-use.h.
24694         (iconv_open, iconv, iconv_close): In C++, define a namespaced alias
24695         symbol.
24696         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Invoke gl_REPLACE_ICONV_H
24697         whenever iconv is present.
24698         * modules/iconv-h (Depends-on): Add c++defs, warn-on-use.
24699         (Makefile.am): Update iconv.h rule.
24700
24701         glob: Avoid #define replacements in C++ mode.
24702         * lib/glob.in.h: Include c++defs.h, warn-on-use.h.
24703         (_gl_glob_errfunc_fn): New type.
24704         (glob, globfree, glob_pattern_p): In C++, define a namespaced alias
24705         symbol.
24706         * modules/glob (Depends-on): Add c++defs, warn-on-use.
24707         (Makefile.am): Update glob.h rule.
24708
24709         fcntl-h: Avoid #define replacements in C++ mode.
24710         * lib/fcntl.in.h: Include c++defs.h.
24711         (fcntl, open, openat): In C++, define a namespaced alias symbol.
24712         * modules/fcntl-h (Depends-on): Add c++defs.
24713         (Makefile.am): Update fcntl.h rule.
24714
24715         dirent: Avoid #define replacements in C++ mode.
24716         * lib/dirent.in.h: Include c++defs.h.
24717         (closedir, fdopendir, opendir, scandir, alphasort): In C++, define a
24718         namespaced alias symbol.
24719         (dirfd): Update declaration.
24720         * modules/dirent (Depends-on): Add c++defs.
24721         (Makefile.am): Update dirent.h rule.
24722
24723         ctype: Make it usable in C++ code.
24724         * lib/ctype.in.h: Include c++defs.h.
24725         (isblank): Declare as extern "C".
24726         * modules/ctype (Depends-on): Add c++defs.
24727         (Makefile.am): Update ctype.h rule.
24728
24729         New module 'c++defs'.
24730         * modules/c++defs: New file.
24731         * build-aux/c++defs.h: New file.
24732         Reported by John W. Eaton <jwe@gnu.org>.
24733
24734 2010-03-07  Bruno Haible  <bruno@clisp.org>
24735
24736         logb: Provide missing declaration for Cygwin.
24737         * lib/math.in.h (logb): New declaration.
24738         * m4/logb.m4: New file.
24739         * modules/logb (Files): Add m4/logb.m4.
24740         (Depends-on): Add math.
24741         (configure.ac): Invoke gl_FUNC_LOGB, gl_MATH_MODULE_INDICATOR.
24742         * m4/math_h.m4 (gl_MATH_H): Check also for logb declaration.
24743         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOGB, HAVE_DECL_LOGB.
24744         * modules/math (Makefile.am): Substitute GNULIB_LOGB, HAVE_DECL_LOGB.
24745         * doc/posix-functions/logb.texi: Mention the Cygwin bug.
24746
24747 2010-03-07  Bruno Haible  <bruno@clisp.org>
24748
24749         Fix test-cond link error.
24750         * tests/test-cond.c: Include <stdio.h>.
24751
24752 2010-03-07  Bruno Haible  <bruno@clisp.org>
24753
24754         Fix test-dirent-safer link error.
24755         * modules/dirent-safer-tests (Makefile.am): Define
24756         test_dirent_safer_LDADD.
24757
24758 2010-03-07  Bruno Haible  <bruno@clisp.org>
24759
24760         * gnulib-tool (func_create_testdir): Don't use 'lib-ignore' module
24761         among default module list.
24762
24763 2010-03-07  Bruno Haible  <bruno@clisp.org>
24764
24765         Fix link error on platforms with GNU libiconv.
24766         * modules/unistr/u8-strcoll-tests (Makefile): Define
24767         test_u8_strcoll_LDADD.
24768         * modules/unistr/u16-strcoll-tests (Makefile): Define
24769         test_u16_strcoll_LDADD.
24770         * modules/unistr/u32-strcoll-tests (Makefile): Define
24771         test_u32_strcoll_LDADD.
24772
24773 2010-03-07  Bruno Haible  <bruno@clisp.org>
24774
24775         Use POSIX declarations for socket functions.
24776         * lib/sys_socket.in.h (rpl_connect, rpl_accept, rpl_bind,
24777         rpl_getpeername, rpl_getsockname, rpl_recv, rpl_send, rpl_recvfrom,
24778         rpl_sendto): Change declaration to match POSIX.
24779         * lib/connect.c (rpl_connect): Likewise.
24780         * lib/accept.c (rpl_accept): Likewise.
24781         * lib/bind.c (rpl_bind): Likewise.
24782         * lib/getpeername.c (rpl_getpeername): Likewise.
24783         * lib/getsockname.c (rpl_getsockname): Likewise.
24784         * lib/recv.c (rpl_recv): Likewise.
24785         * lib/send.c (rpl_send): Likewise.
24786         * lib/recvfrom.c (rpl_recvfrom): Likewise.
24787         * lib/sendto.c (rpl_sendto): Likewise.
24788
24789 2010-03-06  Bruno Haible  <bruno@clisp.org>
24790
24791         Clarify access, euidaccess, faccessat.
24792         * doc/posix-functions/faccessat.texi: Mention security problem under
24793         "Other problems", not "Portability problems".
24794         * doc/posix-functions/access.texi: Likewise. Mention a related security
24795         problem.
24796         * doc/glibc-functions/euidaccess.texi: Mention security problems.
24797         * lib/euidaccess.c: Add comments about platforms.
24798         * lib/unistd.in.h (access, euidaccess): Add warnings.
24799
24800 2010-03-07  Bruno Haible  <bruno@clisp.org>
24801
24802         Ensure posix_spawnattr_{get,set}sched{policy,param} are defined.
24803         * lib/spawn.in.h (POSIX_SPAWN_SETSCHEDPARAM): Define fallback.
24804         (POSIX_SPAWN_SETSCHEDULER): Likewise.
24805         (POSIX_SPAWN_USEVFORK): Define in a way that works when
24806         POSIX_SPAWN_SETSCHEDPARAM and POSIX_SPAWN_SETSCHEDULER are zero.
24807         (posix_spawnattr_getschedpolicy, posix_spawnattr_setschedpolicy): Also
24808         declare when POSIX_SPAWN_SETSCHEDULER is zero.
24809         (posix_spawnattr_getschedparam, posix_spawnattr_setschedparam): Also
24810         declare when POSIX_SPAWN_SETSCHEDPARAM is zero.
24811         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): Test whether
24812         POSIX_SPAWN_SETSCHEDULER or POSIX_SPAWN_SETSCHEDPARAM are zero.
24813         * modules/posix_spawnattr_getschedparam (configure.ac): Enable the
24814         replacement also when POSIX_SPAWN_SETSCHEDPARAM is zero.
24815         * modules/posix_spawnattr_setschedparam (configure.ac): Likewise.
24816         * modules/posix_spawnattr_getschedpolicy (configure.ac): Enable the
24817         replacement also when POSIX_SPAWN_SETSCHEDULER is zero.
24818         * modules/posix_spawnattr_setschedpolicy (configure.ac): Likewise.
24819         * lib/spawnattr_getschedparam.c (posix_spawnattr_getschedparam): Do
24820         nothing if POSIX_SPAWN_SETSCHEDPARAM is zero.
24821         * lib/spawnattr_setschedparam.c (posix_spawnattr_setschedparam):
24822         Likewise.
24823         * lib/spawnattr_getschedpolicy.c (posix_spawnattr_getschedpolicy): Do
24824         nothing if POSIX_SPAWN_SETSCHEDULER is zero.
24825         * lib/spawnattr_setschedpolicy.c (posix_spawnattr_setschedpolicy):
24826         Likewise.
24827         * tests/test-spawn.c (main): Make it work when
24828         POSIX_SPAWN_SETSCHEDPARAM and POSIX_SPAWN_SETSCHEDULER are zero.
24829
24830 2010-03-07  Bruno Haible  <bruno@clisp.org>
24831
24832         Fix incorrect Makefile.am generation in German locale.
24833         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
24834         Execute sed command with character range in C locale.
24835
24836 2010-03-06  Bruno Haible  <bruno@clisp.org>
24837
24838         Tests for module 'iconv-h'.
24839         * modules/iconv-h-tests: New file.
24840         * tests/test-iconv-h.c: New file.
24841
24842         New module 'iconv-h'.
24843         * modules/iconv-h: New file.
24844         * modules/iconv_open (Files): Remove lib/iconv.in.h, m4/iconv_h.m4.
24845         (Depends-on): Add iconv-h. Remove include_next, arg-nonnull.
24846         (configure.ac): Remove gl_ICONV_H.
24847         (Makefile.am): Remove rule for iconv.h.
24848
24849 2010-03-06  Bruno Haible  <bruno@clisp.org>
24850
24851         More consistent naming of *.m4 files.
24852         * m4/wctype_h.m4: Renamed from m4/wctype.m4.
24853         * modules/wctype (Files): Update.
24854
24855         More consistent naming of *.m4 files.
24856         * m4/wchar_h.m4: Renamed from m4/wchar.m4.
24857         * modules/wchar (Files): Update.
24858
24859 2010-03-06  Jim Meyering  <meyering@redhat.com>
24860
24861         euidaccess: relax license to LGPLv2+
24862         * modules/euidaccess (License): Relax to LGPLv2+.
24863
24864 2010-03-06  Bruno Haible  <bruno@clisp.org>
24865
24866         Prefer lib_SOURCES over unconditional AC_LIBOBJ.
24867         * modules/exitfail (configure.ac): Remove AC_LIBOBJ invocation.
24868         (Makefile.am): Augment lib_SOURCES instead.
24869
24870 2010-03-04  Jim Meyering  <meyering@redhat.com>
24871
24872         utime: remove obsolete module
24873         This module, like autoconf's AC_FUNC_UTIME_NULL macro, has been
24874         unnecessary for years, and has been marked as obsolete for 10 months.
24875         * modules/utime: Remove file.
24876         * lib/utime.c: Remove file.
24877         * m4/utime.m4: Remove file.
24878         * m4/utimes-null.m4: Remove file.
24879         * doc/posix-functions/utime.texi (utime): Remove reference to
24880         the module.  Move the sole "fixed by gnulib" item into the
24881         "problems not fixed by Gnulib" list.
24882         * MODULES.html.sh (func_all_modules): Remove reference to "utime".
24883
24884 2010-03-05  Simon Josefsson  <simon@josefsson.org>
24885
24886         * modules/exit (License): Relax license to LGPLv2+.
24887         (Status): Mark as obsolete.
24888         * NEWS: Mention deprecated 'exit' module.
24889         * doc/posix-functions/exit.texi: Recommend 'stdlib' module instead
24890         of now obsolete 'exit'.
24891
24892 2010-03-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
24893
24894         fts-lgpl: remove unused module
24895         * modules/fts-lgpl: Remove.
24896         * MODULES.html.sh (func_all_modules): Adjust.
24897         * check-module (find_included_lib_files): Adjust.
24898         * m4/fts.m4 (gl_FUNC_FTS_LGPL): Remove.
24899
24900 2010-03-02  Ben Walton  <bwalton@artsci.utoronto.ca>  (tiny change)
24901
24902         copy-acl: enhance Solaris ACL error handling
24903         * lib/copy-acl.c (qcopy_acl): Also ignore EOPNOTSUPP.
24904         * lib/set-mode-acl.c (qset_acl): Likewise.
24905
24906 2010-03-02  Bruno Haible  <bruno@clisp.org>
24907
24908         spawn: Don't override the system defined values on FreeBSD 8.
24909         * lib/spawn.in.h (POSIX_SPAWN_RESETIDS, POSIX_SPAWN_SETPGROUP,
24910         POSIX_SPAWN_SETSIGDEF, POSIX_SPAWN_SETSIGMASK,
24911         POSIX_SPAWN_SETSCHEDPARAM, POSIX_SPAWN_SETSCHEDULER): Don't redefine
24912         if HAVE_POSIX_SPAWN is 1.
24913         Reported by Johan van Selst <johans@stack.nl> via Eric Blake.
24914
24915 2010-03-01  Bruno Haible  <bruno@clisp.org>
24916
24917         * doc/gnulib-tool.texi (Initial import): Clarify the requirements
24918         regarding Automake.
24919
24920 2010-02-25  Bruno Haible  <bruno@clisp.org>
24921
24922         Fix breakage of gnulib-tool with ksh, introduced on 2010-02-21.
24923         * gnulib-tool: Define 'echo' as a function only before the ksh alias
24924         setting, not afterwards.
24925         Reported by Ben Walton <bwalton@artsci.utoronto.ca>.
24926
24927 2010-02-24  Eric Blake  <eblake@redhat.com>
24928
24929         bootstrap, git-version-gen: use timestamp
24930         * build-aux/git-version-gen (scriptversion): Force UTC.
24931         * build-aux/bootstrap (scriptversion): New variable.
24932
24933         bootstrap: allow older git
24934         * build-aux/bootstrap (GNULIB_SRCDIR): Add fallback if git is
24935         older than 1.6.4.  Requested by the libvirt project.
24936
24937 2010-02-23  Eric Blake  <eblake@redhat.com>
24938
24939         warn-on-use: work with old autoconf
24940         * m4/warn-on-use.m4 (gl_WARN_ON_USE_PREPARE): Accomodate older
24941         AS_VAR semantics of autoconf 2.60.
24942         Reported by Bruno Haible.
24943
24944         bootstrap: improve some comments
24945         * build-aux/bootstrap: Drop unneeded emacs hint.  Add some
24946         clarification comments.
24947
24948         gettimeofday: provide correct function
24949         * lib/gettimeofday.c (gettimeofday): Provide rpl_gettimeofday only
24950         when replacement is declared, otherwise provide gettimeofday.
24951         Reported by Michael Goffioul.
24952
24953 2010-02-23  Jim Meyering  <meyering@redhat.com>
24954
24955         lib-ignore: relax license to "unlimited", not LGPLv2+
24956         * modules/lib-ignore (License): Relax to "unlimited".
24957
24958 2010-02-23  Jim Meyering  <meyering@redhat.com>
24959
24960         lib-ignore: relax license to LGPLv2+
24961         * modules/lib-ignore (License): Relax to LGPLv2+.
24962
24963 2010-02-22  Eric Blake  <eblake@redhat.com>
24964
24965         lseek: avoid bash 3.2 broken pipe bug
24966         * m4/lseek.m4 (gl_FUNC_LSEEK): Drain pipe, to avoid spurious
24967         warning from bash 3.2.
24968         Reported by Ben Pfaff, with analysis from Bruno Haible.
24969
24970         bootstrap: support non-FSF copyright holder
24971         * build-aux/bootstrap (COPYRIGHT_HOLDER, with_gettext): Allow
24972         bootstrap.conf override of COPYRIGHT_HOLDER.
24973         (MSGID_BUGS_ADDRESS): Allow URL rather than email.
24974
24975         bootstrap: interoperate with gettext 0.14.1
24976         * build-aux/bootstrap (slurp): Fix typo when using older gettext.
24977
24978         bootstrap: allow for alternate submodule location
24979         * build-aux/bootstrap (gnulib_path): New variable; use instead of
24980         hardcoding submodule location.
24981         (gnulib_mk): Allow direct use of Makefile.am.
24982
24983         bootstrap: use GNULIB_SRCDIR to reduce disk usage
24984         * build-aux/bootstrap (GNULIB_SRCDIR): If set, use as a reference,
24985         rather than reconfiguring where the submodule points.
24986
24987         gettimeofday: restore support for platforms that lack function
24988         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Also compile
24989         replacement if function is missing.
24990         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_DEFAULTS): New witness.
24991         * modules/sys_time (Makefile.am): Substitute it.
24992         * lib/sys_time.in.h (gettimeofday): Check it.
24993         Reported by Michael Goffioul.
24994
24995 2010-02-21  Bruno Haible  <bruno@clisp.org>
24996
24997         * lib/stdio.in.h (obstack_printf): Fix typo.
24998
24999 2010-02-21  Jose E. Marchesi  <jemarch@gnu.org>
25000
25001         vc-list-files: use bzr ls's -R option
25002         * build-aux/vc-list-files: Invoke bazaar to generate a recursive
25003         list of versioned files based on 'dir' (usage of -R in 'bzr ls').
25004
25005 2010-02-21  Jim Meyering  <meyering@redhat.com>
25006
25007         init.sh: fix EXEEXT shims to work also for names like test-prog
25008         * tests/init.sh: Re-exec a better shell, when needed.
25009         If the current shell lacks support for posix $(...), an init.sh-using
25010         test will now try to find a shell that supports that.  If EXEEXT is
25011         nonempty, we also require support for hyphen-in-alias-name and shell
25012         substitutions like ${var#glob}.  Failure to find such a shell results
25013         in a skipped test.
25014
25015 2010-02-21  Bruno Haible  <bruno@clisp.org>
25016
25017         Really work around around "broken pipe" error message from bash 3.2.
25018         * gnulib-tool (func_reset_sigpipe): Remove function.
25019         (echo): In bash 3.2, define to a function that uses printf.
25020         Analyzed by Ralf Wildenhues, Chet Ramey, Ben Pfaff.
25021
25022 2010-02-20  Bruno Haible  <bruno@clisp.org>
25023
25024         Restore support for automake 1.9.6 with autoconf 2.61.
25025         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): Ensure MKDIR_P is AC_SUBSTed.
25026         Reported by James Youngman <jay@gnu.org>.
25027
25028 2010-02-20  Bruno Haible  <bruno@clisp.org>
25029
25030         Improve *printf warning condition.
25031         * lib/stdio.in.h (fprintf, printf, vfprintf, vprintf): Emit warning
25032         also if GNULIB_POSIXCHECK is defined, the *-posix module is not used,
25033         and the function is overridden due to SIGPIPE emulation.
25034
25035 2010-02-20  Bruno Haible  <bruno@clisp.org>
25036
25037         * lib/stdio.in.h: Tweak comments.
25038
25039 2010-02-19  Bruno Haible  <bruno@clisp.org>
25040
25041         Make it easier to find modules. New gnulib-tool option '--find'.
25042         * gnulib-tool: New option --find.
25043         (func_usage): Document it.
25044         (func_sanitize_modulelist): New function, extracted from
25045         func_all_modules.
25046         (func_all_modules): Invoke it.
25047         * doc/gnulib-tool.texi (Which modules?): New node.
25048
25049 2010-02-18  Markus Duft <mduft@gentoo.org>  (tiny change)
25050
25051         * lib/sys_select.in.h: Provide select replacement even if
25052         sys/select.h exists on a system, for Interix.
25053
25054 2010-02-18  Jim Meyering  <meyering@redhat.com>
25055
25056         init.sh: don't use $(...) just yet
25057         * tests/init.sh (create_exe_shim_functions_): Use `...`, not $(...),
25058         to accommodate e.g., Solaris' /bin/sh.
25059
25060 2010-02-17  Bruno Haible  <bruno@clisp.org>
25061
25062         * doc/posix-headers/netdb.texi: Mention NetBSD 5.0 problem.
25063         Reported by Ludovic Courtès <ludo@gnu.org>.
25064
25065 2010-02-16  Simon Josefsson  <simon@josefsson.org>
25066
25067         * modules/userspec-tests (test_userspec_LDADD): Add variable, for
25068         linking with -lintl.
25069
25070 2010-02-17  Simon Josefsson  <simon@josefsson.org>
25071
25072         * lib/netdb.in.h (AI_V4MAPPED, AI_ALL, AI_ADDRCONFIG): Define to 0
25073         if not provided by the system's netdb.h.  Reported by
25074         ludo@gnu.org (Ludovic Courtès).
25075
25076 2010-02-15  Jim Meyering  <meyering@redhat.com>
25077
25078         init.sh: improve portability and efficiency
25079         * tests/init.sh (find_exe_basenames_): Remove unnecessary use of
25080         "dummy" in a for loop.
25081         Use '!', not '^' to select the complement of a character set used
25082         in a "case" statement.
25083         Use shell variable manipulation, a la ${...%.exe}, rather than sed.
25084         Suggestions from Eric Blake.
25085
25086         init.sh: automatically accommodate programs with the .exe suffix
25087         Automatically arrange for an invocation of "prog" to execute the
25088         program named "prog$EXEEXT" (usually prog.exe).  Thus, all invocations
25089         may use the simpler "prog", yet still work when built on a system
25090         that requires specifying the added suffix.
25091         Do this by constructing a function named "prog" that invokes
25092         "prog.exe" for each .exe file in selected directories.
25093         * tests/init.sh (find_exe_basenames_): New function.
25094         (create_exe_shim_functions_): New function.
25095         (path_prepend_): Use it.
25096
25097         maint.mk: mark syntax-check sc_*.m rules as .PHONY
25098         * top/maint.mk ($(syntax-check-rules)): Add .PHONY, so that
25099         "make -t syntax-check" doesn't create a ton of sc_*.m files.
25100
25101 2010-02-14  Jim Meyering  <meyering@redhat.com>
25102
25103         maint.mk: prohibit inclusion of "hash-pjw.h" without_use
25104         * top/maint.mk (sc_prohibit_hash_without_use): Re-add "@".
25105         (sc_prohibit_hash_pjw_without_use): New rule.
25106
25107         maint.mk: allow the default upload destination dir to be overridden
25108         * top/maint.mk (upload_dest_dir_): Define with a default that
25109         preserves the status quo.
25110         (emit_upload_commands): Use it, rather than hard-coding $(PACKAGE).
25111         Reported by Peter Simons.
25112
25113         maint.mk: prohibit inclusion of "hash.h" without_use
25114         * top/maint.mk (sc_prohibit_hash_without_use): New rule.
25115
25116 2010-02-10  Jim Meyering  <meyering@redhat.com>
25117
25118         maint.mk: prohibit inclusion of "ignore-value.h" without_use
25119         * top/maint.mk (sc_prohibit_ignore_value_without_use): New rule.
25120
25121 2010-02-09  Eric Blake  <ebb9@byu.net>
25122         and Bruno Haible  <bruno@clisp.org>
25123
25124         obstack-printf-posix: ensure declaration
25125         * m4/obstack-printf.m4 (gl_DECL_OBSTACK_PRINTF): New macro,
25126         extracted from gl_FUNC_OBSTACK_PRINTF.
25127         (gl_FUNC_OBSTACK_PRINTF): Invoke it.
25128         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX):
25129         Likewise.
25130         * lib/stdio.in.h (obstack_printf, obstack_vprintf): Declare also
25131         if GNULIB_OBSTACK_PRINTF_POSIX is 1 and GNULIB_OBSTACK_PRINTF is
25132         0.
25133
25134 2010-02-08  Bruno Haible  <bruno@clisp.org>
25135
25136         gnulib-tool: Fix typo in 2010-02-07 commit.
25137         * gnulib-tool (func_get_dependencies): Fix typo in last commit.
25138         Reported by Eric Blake.
25139
25140 2010-02-07  Bruno Haible  <bruno@clisp.org>
25141
25142         gnulib-tool: Fix up caching patches.
25143         * gnulib-tool: New options --cache-modules, --no-cache-modules. Remove
25144         option --no-cache. Use associative arrays when supported by the shell.
25145         (sed_comments): New variable.
25146         (modcache): Renamed from do_cache.
25147         (sed_extract_field_header): Renamed from sed_extract_cache_prog. Don't
25148         abbreviate unnecessarily.
25149         (have_associative): New variable.
25150         (func_cache_var): Define correctly for bash 1.x. Define in an optimized
25151         way also for ksh and zsh.
25152         (func_init_sed_convert_to_cache_statements): New function, extracted
25153         from func_cache_lookup_module. Add support for associative arrays.
25154         Don't set the c_MODULE_cached variable here. Ignore all lines before
25155         the first field header. Remove only the final newline, not all trailing
25156         newlines. Support empty fields correctly. Limit the use of 'eval' to
25157         assignments.
25158         (func_get_description, func_get_status, func_get_notice,
25159         func_get_applicability, func_get_filelist, func_get_dependencies,
25160         func_get_autoconf_early_snippet, func_get_autoconf_snippet,
25161         func_get_automake_snippet, func_get_include_directive,
25162         func_get_link_directive, func_get_license, func_get_maintainer):
25163         Update documentation. List the unoptimized code first. Add support for
25164         associative arrays. Limit the use of 'eval' to assignments.
25165         (func_get_applicability): Undo stylistic pessimisations.
25166         (func_get_automake_snippet, func_get_include_directive): Reduce code
25167         duplication.
25168         (func_modules_transitive_closure, func_modules_add_dummy,
25169         func_modules_notice, func_modules_to_filelist, func_add_file,
25170         func_update_file, func_emit_lib_Makefile_am, func_emit_po_Makevars,
25171         func_emit_po_POTFILES_in, func_emit_tests_Makefile_am, func_import,
25172         func_create_testdir, func_create_megatestdir): Update documentation.
25173
25174 2010-01-18  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
25175
25176         * gnulib-tool (func_cache_lookup_module): Store the module name
25177         belonging to the cache variable; error out if two different
25178         module names map to the same cache variable name.
25179
25180 2010-01-18  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
25181
25182         gnulib-tool: Make caching optional.
25183         * gnulib-tool: Accept option --no-cache, turning off $do_cache.
25184         Update matching short versions of --no-changelog.
25185         (func_usage): Update.
25186         (sed_extract_cache_prog): Renamed from ...
25187         (sed_extract_prog): ... this; revert to old extraction script.
25188         (func_get_description, func_get_status)
25189         (func_get_notice, func_get_applicability, func_get_filelist)
25190         (func_get_dependencies, func_get_autoconf_early_snippet)
25191         (func_get_autoconf_snippet, func_get_automake_snippet)
25192         (func_get_include_directive, func_get_link_directive)
25193         (func_get_license, func_get_maintainer): If $do_cache is false,
25194         use old, non-caching extraction scripts.
25195         Suggestion by Bruno Haible.
25196
25197 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
25198
25199         gnulib-tool: cache module metainformation.
25200         * gnulib-tool (sed_extract_prog): Match newline before each
25201         header, and rewrite header to a shell variable suffix.
25202         (func_cache_var, func_cache_lookup_module): New functions,
25203         to turn a module name into a cache variable prefix, and to
25204         look up and cache module metainformation.
25205         (func_get_description, func_get_status)
25206         (func_get_notice, func_get_applicability, func_get_filelist)
25207         (func_get_dependencies, func_get_autoconf_early_snippet)
25208         (func_get_autoconf_snippet, func_get_automake_snippet)
25209         (func_get_include_directive, func_get_link_directive)
25210         (func_get_license, func_get_maintainer): Use
25211         func_cache_lookup_module.
25212
25213 2010-02-07  Bruno Haible  <bruno@clisp.org>
25214
25215         fnctl: Fix missing dependency.
25216         * modules/fcntl (Depends-on): Add getdtablesize.
25217         Reported by John W. Eaton <jwe@gnu.org>.
25218
25219 2010-02-05  Sergey Poznyakoff  <gray@gnu.org.ua>
25220
25221         Argp: fix recognition of short alias options.
25222
25223         * lib/argp-parse.c (convert_options): Fix improper use of
25224         `|' between character values.
25225         * tests/test-argp.c (group1_option): New alias option
25226         --read (-r).
25227         (group1_parser): Special handling for 'r'.
25228         (test15): New test case.
25229         (test_fun): Add test15.
25230         * tests/test-argp-2.sh: Update expected --help and --usage
25231         outputs.
25232
25233 2010-02-05  Sergey Poznyakoff  <gray@gnu.org.ua>
25234
25235         * tests/test-argp.c: Fix indentation.
25236
25237 2010-02-04  Eric Blake  <ebb9@byu.net>
25238
25239         gettimeofday: expose type of second argument
25240         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Do better detection
25241         of glibc extension signature, and define GETTIMEOFDAY_TIMEZONE.
25242         * tests/test-gettimeofday.c: Use it to silence warning.
25243         * doc/posix-functions/gettimeofday.texi (gettimeofday): Document
25244         the issue.
25245
25246 2010-02-03  Jim Meyering  <meyering@redhat.com>
25247
25248         regcomp.c: avoid the sole warning from gcc's -Wtype-limits
25249         * lib/regcomp.c (TYPE_SIGNED): Define.
25250         (parse_dup_op): Use it to avoid the sole warning from -Wtype-limits.
25251
25252         regcomp.c: avoid a new -Wshadow warning
25253         * lib/regcomp.c (create_initial_state): Do not shadow local "err".
25254
25255 2010-02-01  Jim Meyering  <meyering@redhat.com>
25256
25257         removing useless parentheses in cpp #define directives
25258         For motivation, see commit c0221df4, "define STREQ(a,b)
25259         consistently, removing useless parentheses"
25260         * lib/memcmp.c (CMP_LT_OR_GT): Remove useless parentheses.
25261         * lib/mountlist.c (MNT_IGNORE): Likewise.
25262         * lib/trim.h (trim, trim_trailing, trim_leading): Likewise.
25263
25264 2010-02-01  Eric Blake  <ebb9@byu.net>
25265
25266         sys_time: use link-warning
25267         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Split defaults...
25268         (gl_HEADER_SYS_TIME_H_DEFAULTS): ...into new macro.
25269         (gl_SYS_TIME_MODULE_INDICATOR): New macro.
25270         * modules/sys_time (Depends-on): Add warn-on-use.
25271         (Makefile.am): Always build replacement.
25272         (configure.ac): Update substitutions.
25273         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY)
25274         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Include defaults, and no longer
25275         bother with SYS_TIME_H.
25276         * modules/gettimeofday (configure.ac): Declare indicator.
25277         * lib/sys_time.in.h (gettimeofday): Warn if gnulib module is not
25278         in use.
25279
25280         closein-tests: silence compiler warning
25281         * tests/test-closein.c (main): Ignore fread result.
25282         * modules/closein-tests (Depends-on): Add ignore-value.
25283
25284         tests: silence warning about system return
25285         * tests/test-areadlink-with-size.c (main): Ignore system result.
25286         * tests/test-areadlink.c (main): Likewise.
25287         * tests/test-areadlinkat-with-size.c (main): Likewise.
25288         * tests/test-areadlinkat.c (main): Likewise.
25289         * tests/test-canonicalize-lgpl.c (main): Likewise.
25290         * tests/test-canonicalize.c (main): Likewise.
25291         * tests/test-chown.c (main): Likewise.
25292         * tests/test-fchownat.c (main): Likewise.
25293         * tests/test-fdutimensat.c (main): Likewise.
25294         * tests/test-fstatat.c (main): Likewise.
25295         * tests/test-futimens.c (main): Likewise.
25296         * tests/test-lchown.c (main): Likewise.
25297         * tests/test-link.c (main): Likewise.
25298         * tests/test-linkat.c (main): Likewise.
25299         * tests/test-lstat.c (main): Likewise.
25300         * tests/test-mkdir.c (main): Likewise.
25301         * tests/test-mkdirat.c (main): Likewise.
25302         * tests/test-mkfifo.c (main): Likewise.
25303         * tests/test-mkfifoat.c (main): Likewise.
25304         * tests/test-mknod.c (main): Likewise.
25305         * tests/test-readlink.c (main): Likewise.
25306         * tests/test-remove.c (main): Likewise.
25307         * tests/test-rename.c (main): Likewise.
25308         * tests/test-renameat.c (main): Likewise.
25309         * tests/test-rmdir.c (main): Likewise.
25310         * tests/test-symlink.c (main): Likewise.
25311         * tests/test-symlinkat.c (main): Likewise.
25312         * tests/test-unlink.c (main): Likewise.
25313         * tests/test-unlinkat.c (main): Likewise.
25314         * tests/test-utimens.c (main): Likewise.
25315         * tests/test-utimensat.c (main): Likewise.
25316         * modules/areadlink-tests (Depends-on): Add ignore-value.
25317         * modules/areadlink-with-size-tests (Depends-on): Likewise.
25318         * modules/areadlinkat-tests (Depends-on): Likewise.
25319         * modules/areadlinkat-with-size-tests (Depends-on): Likewise.
25320         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
25321         * modules/canonicalize-tests (Depends-on): Likewise.
25322         * modules/chown-tests (Depends-on): Likewise.
25323         * modules/fdutimensat-tests (Depends-on): Likewise.
25324         * modules/futimens-tests (Depends-on): Likewise.
25325         * modules/lchown-tests (Depends-on): Likewise.
25326         * modules/link-tests (Depends-on): Likewise.
25327         * modules/linkat-tests (Depends-on): Likewise.
25328         * modules/lstat-tests (Depends-on): Likewise.
25329         * modules/mkdir-tests (Depends-on): Likewise.
25330         * modules/mkfifo-tests (Depends-on): Likewise.
25331         * modules/mkfifoat-tests (Depends-on): Likewise.
25332         * modules/mknod-tests (Depends-on): Likewise.
25333         * modules/openat-tests (Depends-on): Likewise.
25334         * modules/readlink-tests (Depends-on): Likewise.
25335         * modules/remove-tests (Depends-on): Likewise.
25336         * modules/rename-tests (Depends-on): Likewise.
25337         * modules/renameat-tests (Depends-on): Likewise.
25338         * modules/rmdir-tests (Depends-on): Likewise.
25339         * modules/symlink-tests (Depends-on): Likewise.
25340         * modules/symlinkat-tests (Depends-on): Likewise.
25341         * modules/unlink-tests (Depends-on): Likewise.
25342         * modules/utimens-tests (Depends-on): Likewise.
25343         * modules/utimensat-tests (Depends-on): Likewise.
25344
25345 2010-01-31  Bruno Haible  <bruno@clisp.org>
25346
25347         Perform the same test for many <math.h> functions.
25348         * m4/mathfunc.m4 (gl_COMMON_DOUBLE_MATHFUNC,
25349         gl_COMMON_DOUBLE_MATHFUNC_TEST): New macros.
25350         * m4/sqrt.m4 (gl_FUNC_SQRT): Invoke gl_COMMON_DOUBLE_MATHFUNC instead
25351         of gl_MATHFUNC.
25352         * modules/acos (configure.ac): Likewise.
25353         * modules/asin (configure.ac): Likewise.
25354         * modules/atan (configure.ac): Likewise.
25355         * modules/atan2 (configure.ac): Likewise.
25356         * modules/cbrt (configure.ac): Likewise.
25357         * modules/copysign (configure.ac): Likewise.
25358         * modules/cos (configure.ac): Likewise.
25359         * modules/cosh (configure.ac): Likewise.
25360         * modules/erf (configure.ac): Likewise.
25361         * modules/erfc (configure.ac): Likewise.
25362         * modules/exp (configure.ac): Likewise.
25363         * modules/fmod (configure.ac): Likewise.
25364         * modules/hypot (configure.ac): Likewise.
25365         * modules/j0 (configure.ac): Likewise.
25366         * modules/j1 (configure.ac): Likewise.
25367         * modules/jn (configure.ac): Likewise.
25368         * modules/lgamma (configure.ac): Likewise.
25369         * modules/log (configure.ac): Likewise.
25370         * modules/log10 (configure.ac): Likewise.
25371         * modules/log1p (configure.ac): Likewise.
25372         * modules/pow (configure.ac): Likewise.
25373         * modules/remainder (configure.ac): Likewise.
25374         * modules/sin (configure.ac): Likewise.
25375         * modules/sinh (configure.ac): Likewise.
25376         * modules/tan (configure.ac): Likewise.
25377         * modules/tanh (configure.ac): Likewise.
25378         * modules/y0 (configure.ac): Likewise.
25379         * modules/y1 (configure.ac): Likewise.
25380         * modules/yn (configure.ac): Likewise.
25381         Suggested by Paolo Bonzini.
25382
25383 2010-01-31  Bruno Haible  <bruno@clisp.org>
25384
25385         * m4/getline.m4 (gl_FUNC_GETLINE): Add comment about REPLACE_GETLINE.
25386
25387 2010-01-31  Bruno Haible  <bruno@clisp.org>
25388
25389         Work around getdelim() bug on FreeBSD 8.0.
25390         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Test whether getdelim supports an
25391         initially NULL line. Set REPLACE_GETDELIM if getdelim exists but does
25392         not work.
25393         * lib/stdio.in.h (getdelim): Define as an alias if REPLACE_GETDELIM
25394         is 1.
25395         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize REPLACE_GETDELIM.
25396         * modules/stdio (Makefile.am): Also substitute REPLACE_GETDELIM.
25397         * tests/test-getdelim.c (main): Also test result for a NULL buffer and
25398         a non-zero size.
25399         * doc/posix-functions/getdelim.texi: Mention the FreeBSD bug.
25400
25401 2010-01-31  Bruno Haible  <bruno@clisp.org>
25402
25403         Work around getline() bug on FreeBSD 8.0.
25404         * m4/getline.m4 (gl_FUNC_GETLINE): Also test result for a NULL buffer
25405         and a non-zero size.
25406         * tests/test-getline.c (main): Likewise.
25407         * doc/posix-functions/getline.texi: Mention the FreeBSD bug.
25408         Reported by Dennis <noordsij@cs.helsinki.fi> via Eric Blake.
25409
25410 2010-01-28  Eric Blake  <ebb9@byu.net>
25411
25412         regex: fix build failure
25413         * lib/regex_internal.h (__GNUC_PREREQ): Define for non-glibc
25414         platforms.
25415
25416 2010-01-28  Jim Meyering  <meyering@redhat.com>
25417
25418         regex: do not ignore memory allocation failure
25419         * lib/regex_internal.c (create_cd_newstate): Detect
25420         re_node_set_init_copy failure.   Extracted from glibc commit
25421         2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
25422
25423         regex: sync more white-space changes from libc
25424         * lib/regex_internal.c: White-space only changes.
25425         * lib/regexec.c: Likewise.
25426
25427         regex: add many uses of __attribute_warn_unused_result__
25428         * lib/regex_internal.c: Use __attribute_warn_unused_result__.
25429         * lib/regexec.c: Likewise.
25430         Extracted from a messy glibc commit.
25431
25432         regcomp.c: spelling and merge-artifact from glibc
25433         * lib/regcomp.c: Merge remainder of glibc's
25434         2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
25435
25436         regcomp.c: sync white-space changes from glibc
25437         * lib/regcomp.c: Merge to accommodate white space
25438         changes from glibc's 2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
25439
25440         regcomp.c: do not ignore internal return values
25441         * lib/regcomp.c: Do not ignore internal return values.
25442         This is from glibc's 2da42bc06566bc89785e580fa1ac89b4c9f2a63c,
25443         but without its white-space changes and spelling fixes.
25444
25445         regex_internal.h: define __attribute_warn_unused_result__
25446         * lib/regex_internal.h (__attribute_warn_unused_result__): Define.
25447
25448         maint: add a syntax-check rule to check for vulnerable Makefile.in
25449         * top/maint.mk (sc_vulnerable_makefile_CVE-2009-4029): New rule.
25450
25451 2010-01-27  Jim Meyering  <meyering@redhat.com>
25452
25453         ncftpput-ftp: clean up spaces
25454         * build-aux/ncftpput-ftp: Make Copyright line consistent.
25455         Remove trailing blanks.
25456
25457 2010-01-27  Simon Josefsson  <simon@josefsson.org>
25458
25459         * build-aux/git-version-gen: Fix copyright statement.
25460         * build-aux/gnupload: Likewise.
25461         * tests/test-arcfour.c: Likewise.
25462         * tests/test-arctwo.c: Likewise.
25463         * tests/test-count-one-bits.c: Likewise.
25464         * tests/test-crc.c: Likewise.
25465         * tests/test-des.c: Likewise.
25466         * tests/test-gc-arcfour.c: Likewise.
25467         * tests/test-gc-arctwo.c: Likewise.
25468         * tests/test-gc-des.c: Likewise.
25469         * tests/test-gc-hmac-md5.c: Likewise.
25470         * tests/test-gc-hmac-sha1.c: Likewise.
25471         * tests/test-gc-md2.c: Likewise.
25472         * tests/test-gc-md4.c: Likewise.
25473         * tests/test-gc-md5.c: Likewise.
25474         * tests/test-gc-pbkdf2-sha1.c: Likewise.
25475         * tests/test-gc-rijndael.c: Likewise.
25476         * tests/test-gc-sha1.c: Likewise.
25477         * tests/test-gc.c: Likewise.
25478         * tests/test-gethostname.c: Likewise.
25479         * tests/test-gettimeofday.c: Likewise.
25480         * tests/test-hash.c: Likewise.
25481         * tests/test-hmac-md5.c: Likewise.
25482         * tests/test-hmac-sha1.c: Likewise.
25483         * tests/test-md2.c: Likewise.
25484         * tests/test-md4.c: Likewise.
25485         * tests/test-md5.c: Likewise.
25486         * tests/test-memchr.c: Likewise.
25487         * tests/test-memchr2.c: Likewise.
25488         * tests/test-memcmp.c: Likewise.
25489         * tests/test-memmem.c: Likewise.
25490         * tests/test-memrchr.c: Likewise.
25491         * tests/test-rawmemchr.c: Likewise.
25492         * tests/test-read-file.c: Likewise.
25493         * tests/test-rijndael.c: Likewise.
25494         * tests/test-sockets.c: Likewise.
25495         * tests/test-strchrnul.c: Likewise.
25496         * tests/test-strstr.c: Likewise.
25497         * tests/test-strtod.c: Likewise.
25498         * build-aux/ncftpput-ftp: Likewise.
25499
25500 2010-01-26  Eric Blake  <ebb9@byu.net>
25501
25502         ignore-value: update recommended header name
25503         * modules/ignore-value (Include): Only use <> for headers that
25504         exist in glibc.
25505
25506 2010-01-26  Jim Meyering  <meyering@redhat.com>
25507
25508         test-userspec.c: avoid compiler warnings
25509         * tests/test-userspec.c (main): Avoid shadowing ("uid"),
25510         and "initialization discards qualifiers..." warnings.
25511         Put the first "uid" in its own scope, and make char* members "const".
25512
25513 2010-01-25  Bruno Haible  <bruno@clisp.org>
25514
25515         gnulib-tool: Make warning diagnostics consistent.
25516         * gnulib-tool (func_warning): New function.
25517         Use it everywhere where gnulib-tool produces output to stderr and it is
25518         not a fatal error.
25519
25520 2010-01-25  Bruno Haible  <bruno@clisp.org>
25521
25522         Fix test dependencies.
25523         * modules/xstrtol-tests (Depends-on): Add inttypes.
25524         * modules/xstrtoll-tests (Depends-on): Likewise. Remove xstrtoll.
25525
25526 2010-01-25 Pádraig Brady <P@draigBrady.com>
25527
25528         syntax-check: detect incorrect boolean macro values in config.h
25529         * modules/maintainer-makefile (configure.ac): Parameterize the location
25530         of config.h which will be available to makefiles as $(CONFIG_INCLUDE).
25531         The logic is from Eric Blake and the location indicated by Jim Meyering.
25532         Note the more natural CONFIG_HEADER name is prohibited by automake
25533         for backwards compatibility reasons.
25534         * top/maint.mk (sc_Wundef_boolean): New rule.
25535
25536 2010-01-25  Jim Meyering  <meyering@redhat.com>
25537
25538         bootstrap: detect MacOS 10.6's shasum, too
25539         * build-aux/bootstrap: Also recognize MacOS 10.6's shasum.
25540         Suggested by Thomas Treichl <Thomas.Treichl@gmx.net>.
25541
25542 2010-01-23  Jim Meyering  <meyering@redhat.com>
25543
25544         xstrtoll: new module
25545         * modules/xstrtoll: New file.
25546         * MODULES.html.sh (Numeric conversion functions): Add xstrtoll.
25547         * lib/xstrtol.h [HAVE_LONG_LONG_INT]: Declare xstrtoll and xstrtoull.
25548         * lib/xstrtoll.c, lib/xstrtoull.c: New files.
25549         ./configure fails if you use this module and lack "long long".
25550         * modules/xstrtoll-tests: New module.
25551         * tests/test-xstrtoll.c, tests/test-xstrtoull.c: New files.
25552         * tests/test-xstrtoll.sh: Like test-xstrtol.c, but use the
25553         new init.sh-based test framework.
25554
25555 2010-01-24  Bruno Haible  <bruno@clisp.org>
25556
25557         Tests for module 'yn'.
25558         * modules/yn-tests: New file.
25559         * tests/test-yn.c: New file.
25560
25561         Tests for module 'y1'.
25562         * modules/y1-tests: New file.
25563         * tests/test-y1.c: New file.
25564
25565         Tests for module 'y0'.
25566         * modules/y0-tests: New file.
25567         * tests/test-y0.c: New file.
25568
25569         Tests for module 'tanh'.
25570         * modules/tanh-tests: New file.
25571         * tests/test-tanh.c: New file.
25572
25573         Tests for module 'tan'.
25574         * modules/tan-tests: New file.
25575         * tests/test-tan.c: New file.
25576
25577         Tests for module 'sqrt'.
25578         * modules/sqrt-tests: New file.
25579         * tests/test-sqrt.c: New file.
25580
25581         Tests for module 'sinh'.
25582         * modules/sinh-tests: New file.
25583         * tests/test-sinh.c: New file.
25584
25585         Tests for module 'sin'.
25586         * modules/sin-tests: New file.
25587         * tests/test-sin.c: New file.
25588
25589         Tests for module 'rint'.
25590         * modules/rint-tests: New file.
25591         * tests/test-rint.c: New file.
25592
25593         Tests for module 'remainder'.
25594         * modules/remainder-tests: New file.
25595         * tests/test-remainder.c: New file.
25596
25597         Tests for module 'pow'.
25598         * modules/pow-tests: New file.
25599         * tests/test-pow.c: New file.
25600
25601         Tests for module 'nextafter'.
25602         * modules/nextafter-tests: New file.
25603         * tests/test-nextafter.c: New file.
25604
25605         Tests for module 'modf'.
25606         * modules/modf-tests: New file.
25607         * tests/test-modf.c: New file.
25608
25609         Tests for module 'logb'.
25610         * modules/logb-tests: New file.
25611         * tests/test-logb.c: New file.
25612
25613         Tests for module 'log1p'.
25614         * modules/log1p-tests: New file.
25615         * tests/test-log1p.c: New file.
25616
25617         Tests for module 'log10'.
25618         * modules/log10-tests: New file.
25619         * tests/test-log10.c: New file.
25620
25621         Tests for module 'log'.
25622         * modules/log-tests: New file.
25623         * tests/test-log.c: New file.
25624
25625         Tests for module 'lgamma'.
25626         * modules/lgamma-tests: New file.
25627         * tests/test-lgamma.c: New file.
25628
25629         Tests for module 'ldexp'.
25630         * modules/ldexp-tests: New file.
25631         * tests/test-ldexp.c: New file.
25632
25633         Tests for module 'jn'.
25634         * modules/jn-tests: New file.
25635         * tests/test-jn.c: New file.
25636
25637         Tests for module 'j1'.
25638         * modules/j1-tests: New file.
25639         * tests/test-j1.c: New file.
25640
25641         Tests for module 'j0'.
25642         * modules/j0-tests: New file.
25643         * tests/test-j0.c: New file.
25644
25645         Tests for module 'hypot'.
25646         * modules/hypot-tests: New file.
25647         * tests/test-hypot.c: New file.
25648
25649         Tests for module 'fmod'.
25650         * modules/fmod-tests: New file.
25651         * tests/test-fmod.c: New file.
25652
25653         Tests for module 'fabs'.
25654         * modules/fabs-tests: New file.
25655         * tests/test-fabs.c: New file.
25656
25657         Tests for module 'exp'.
25658         * modules/exp-tests: New file.
25659         * tests/test-exp.c: New file.
25660
25661         Tests for module 'erfc'.
25662         * modules/erfc-tests: New file.
25663         * tests/test-erfc.c: New file.
25664
25665         Tests for module 'erf'.
25666         * modules/erf-tests: New file.
25667         * tests/test-erf.c: New file.
25668
25669         Tests for module 'cosh'.
25670         * modules/cosh-tests: New file.
25671         * tests/test-cosh.c: New file.
25672
25673         Tests for module 'cos'.
25674         * modules/cos-tests: New file.
25675         * tests/test-cos.c: New file.
25676
25677         Tests for module 'copysign'.
25678         * modules/copysign-tests: New file.
25679         * tests/test-copysign.c: New file.
25680
25681         Tests for module 'cbrt'.
25682         * modules/cbrt-tests: New file.
25683         * tests/test-cbrt.c: New file.
25684
25685         Tests for module 'atan2'.
25686         * modules/atan2-tests: New file.
25687         * tests/test-atan2.c: New file.
25688
25689         Tests for module 'atan'.
25690         * modules/atan-tests: New file.
25691         * tests/test-atan.c: New file.
25692
25693         Tests for module 'asin'.
25694         * modules/asin-tests: New file.
25695         * tests/test-asin.c: New file.
25696
25697         Tests for module 'acos'.
25698         * modules/acos-tests: New file.
25699         * tests/test-acos.c: New file.
25700
25701 2010-01-24  Bruno Haible  <bruno@clisp.org>
25702
25703         Fix tests for common <math.h> functions.
25704         * m4/mathfunc.m4 (gl_MATHFUNC): Take two additional parameters. Use a
25705         code snippet that references the function pointer, rather than merely
25706         calling the function. Substitute the FUNC_LIBM variable.
25707         * m4/sqrt.m4 (gl_FUNC_SQRT): Update gl_MATHFUNC invocation.
25708         * modules/acos (configure.ac): Likewise.
25709         * modules/asin (configure.ac): Likewise.
25710         * modules/atan (configure.ac): Likewise.
25711         * modules/atan2 (configure.ac): Likewise.
25712         * modules/cbrt (configure.ac): Likewise.
25713         * modules/copysign (configure.ac): Likewise.
25714         * modules/cos (configure.ac): Likewise.
25715         * modules/cosh (configure.ac): Likewise.
25716         * modules/erf (configure.ac): Likewise.
25717         * modules/erfc (configure.ac): Likewise.
25718         * modules/exp (configure.ac): Likewise.
25719         * modules/fabs (configure.ac): Likewise.
25720         * modules/fmod (configure.ac): Likewise.
25721         * modules/hypot (configure.ac): Likewise.
25722         * modules/j0 (configure.ac): Likewise.
25723         * modules/j1 (configure.ac): Likewise.
25724         * modules/jn (configure.ac): Likewise.
25725         * modules/ldexp (configure.ac): Likewise.
25726         * modules/lgamma (configure.ac): Likewise.
25727         * modules/log (configure.ac): Likewise.
25728         * modules/log10 (configure.ac): Likewise.
25729         * modules/log1p (configure.ac): Likewise.
25730         * modules/logb (configure.ac): Likewise.
25731         * modules/modf (configure.ac): Likewise.
25732         * modules/nextafter (configure.ac): Likewise.
25733         * modules/pow (configure.ac): Likewise.
25734         * modules/remainder (configure.ac): Likewise.
25735         * modules/rint (configure.ac): Likewise.
25736         * modules/sin (configure.ac): Likewise.
25737         * modules/sinh (configure.ac): Likewise.
25738         * modules/tan (configure.ac): Likewise.
25739         * modules/tanh (configure.ac): Likewise.
25740         * modules/y0 (configure.ac): Likewise.
25741         * modules/y1 (configure.ac): Likewise.
25742         * modules/yn (configure.ac): Likewise.
25743
25744 2010-01-24  Bruno Haible  <bruno@clisp.org>
25745
25746         Tests: Defeat inlining of math functions by GCC >= 4.3.0.
25747         * tests/test-acosl.c (x): New variable.
25748         (main): Store argument in x and fetch it from x.
25749         * tests/test-asinl.c (x): New variable.
25750         (main): Store argument in x and fetch it from x.
25751         * tests/test-atanl.c (x): New variable.
25752         (main): Store argument in x and fetch it from x.
25753         * tests/test-cosl.c (x): New variable.
25754         (main): Store argument in x and fetch it from x.
25755         * tests/test-expl.c (x): New variable.
25756         (main): Store argument in x and fetch it from x.
25757         * tests/test-logl.c (x): New variable.
25758         (main): Store argument in x and fetch it from x.
25759         * tests/test-sinl.c (x): New variable.
25760         (main): Store argument in x and fetch it from x.
25761         * tests/test-sqrtl.c (x): New variable.
25762         (main): Store argument in x and fetch it from x.
25763         * tests/test-tanl.c (x): New variable.
25764         (main): Store argument in x and fetch it from x.
25765
25766 2010-01-24  Bruno Haible  <bruno@clisp.org>
25767
25768         Provide EXEEXT and srcdir in TESTS_ENVIRONMENT by default.
25769         * gnulib-tool (func_emit_tests_Makefile_am): Add EXEEXT and srcdir
25770         assignments to the initial TESTS_ENVIRONMENT.
25771         * doc/gnulib.texi (Unit test modules): Document it.
25772         * modules/acl-tests (Makefile.am): Drop EXEEXT assignment from
25773         TESTS_ENVIRONMENT.
25774         * modules/btowc-tests (Makefile.am): Likewise.
25775         * modules/c-stack-tests (Makefile.am): Likewise.
25776         * modules/c-strcase-tests (Makefile.am): Likewise.
25777         * modules/copy-file-tests (Makefile.am): Likewise.
25778         * modules/mbmemcasecmp-tests (Makefile.am): Likewise.
25779         * modules/mbmemcasecoll-tests (Makefile.am): Likewise.
25780         * modules/mbrtowc-tests (Makefile.am): Likewise.
25781         * modules/mbscasecmp-tests (Makefile.am): Likewise.
25782         * modules/mbscasestr-tests (Makefile.am): Likewise.
25783         * modules/mbschr-tests (Makefile.am): Likewise.
25784         * modules/mbscspn-tests (Makefile.am): Likewise.
25785         * modules/mbsinit-tests (Makefile.am): Likewise.
25786         * modules/mbsncasecmp-tests (Makefile.am): Likewise.
25787         * modules/mbsnrtowcs-tests (Makefile.am): Likewise.
25788         * modules/mbspbrk-tests (Makefile.am): Likewise.
25789         * modules/mbspcasecmp-tests (Makefile.am): Likewise.
25790         * modules/mbsrchr-tests (Makefile.am): Likewise.
25791         * modules/mbsrtowcs-tests (Makefile.am): Likewise.
25792         * modules/mbsspn-tests (Makefile.am): Likewise.
25793         * modules/mbsstr-tests (Makefile.am): Likewise.
25794         * modules/nl_langinfo-tests (Makefile.am): Likewise.
25795         * modules/unicase/locale-language-tests (Makefile.am): Likewise.
25796         * modules/unistdio/u16-vasnprintf-tests (Makefile.am): Likewise.
25797         * modules/unistdio/u32-vasnprintf-tests (Makefile.am): Likewise.
25798         * modules/unistdio/u8-vasnprintf-tests (Makefile.am): Likewise.
25799         * modules/unistdio/ulc-vasnprintf-tests (Makefile.am): Likewise.
25800         * modules/uniwbrk/ulc-wordbreaks-tests (Makefile.am): Likewise.
25801         * modules/vasnprintf-posix-tests (Makefile.am): Likewise.
25802         * modules/wcrtomb-tests (Makefile.am): Likewise.
25803         * modules/wcsnrtombs-tests (Makefile.am): Likewise.
25804         * modules/wcsrtombs-tests (Makefile.am): Likewise.
25805         * modules/quotearg-tests (Makefile.am): Drop EXEEXT and srcdir
25806         assignments from TESTS_ENVIRONMENT.
25807         * modules/argp-tests (Makefile.am): Drop TESTS_ENVIRONMENT
25808         augmentation.
25809         * modules/argp-version-etc-tests (Makefile.am): Likewise.
25810         * modules/atexit-tests (Makefile.am): Likewise.
25811         * modules/binary-io-tests (Makefile.am): Likewise.
25812         * modules/closein-tests (Makefile.am): Likewise.
25813         * modules/dprintf-posix-tests (Makefile.am): Likewise.
25814         * modules/exclude-tests (Makefile.am): Likewise.
25815         * modules/fflush-tests (Makefile.am): Likewise.
25816         * modules/fpending-tests (Makefile.am): Likewise.
25817         * modules/fprintf-posix-tests (Makefile.am): Likewise.
25818         * modules/freadahead-tests (Makefile.am): Likewise.
25819         * modules/freadptr-tests (Makefile.am): Likewise.
25820         * modules/freadseek-tests (Makefile.am): Likewise.
25821         * modules/fseek-tests (Makefile.am): Likewise.
25822         * modules/fseeko-tests (Makefile.am): Likewise.
25823         * modules/ftell-tests (Makefile.am): Likewise.
25824         * modules/ftello-tests (Makefile.am): Likewise.
25825         * modules/idpriv-drop-tests (Makefile.am): Likewise.
25826         * modules/idpriv-droptemp-tests (Makefile.am): Likewise.
25827         * modules/lseek-tests (Makefile.am): Likewise.
25828         * modules/parse-duration-tests (Makefile.am): Likewise.
25829         * modules/perror-tests (Makefile.am): Likewise.
25830         * modules/pipe-filter-gi-tests (Makefile.am): Likewise.
25831         * modules/pipe-filter-ii-tests (Makefile.am): Likewise.
25832         * modules/pipe-tests (Makefile.am): Likewise.
25833         * modules/pread-tests (Makefile.am): Likewise.
25834         * modules/printf-posix-tests (Makefile.am): Likewise.
25835         * modules/select-tests (Makefile.am): Likewise.
25836         * modules/sigpipe-tests (Makefile.am): Likewise.
25837         * modules/tsearch-tests (Makefile.am): Likewise.
25838         * modules/unicase/ulc-casecmp-tests (Makefile.am): Likewise.
25839         * modules/unicase/ulc-casecoll-tests (Makefile.am): Likewise.
25840         * modules/uniname/uniname-tests (Makefile.am): Likewise.
25841         * modules/uniwidth/width-tests (Makefile.am): Likewise.
25842         * modules/vdprintf-posix-tests (Makefile.am): Likewise.
25843         * modules/version-etc-tests (Makefile.am): Likewise.
25844         * modules/vfprintf-posix-tests (Makefile.am): Likewise.
25845         * modules/vprintf-posix-tests (Makefile.am): Likewise.
25846         * modules/xalloc-die-tests (Makefile.am): Likewise.
25847         * modules/xprintf-posix-tests (Makefile.am): Likewise.
25848         * modules/xstrtoimax-tests (Makefile.am): Likewise.
25849         * modules/xstrtol-tests (Makefile.am): Likewise.
25850         * modules/xstrtoumax-tests (Makefile.am): Likewise.
25851         * modules/yesno-tests (Makefile.am): Likewise.
25852         Suggested by Jim Meyering.
25853
25854 2010-01-24  Bruno Haible  <bruno@clisp.org>
25855
25856         More documentation.
25857         * doc/gnulib.texi (Writing modules): New chapter.
25858         (Miscellaneous Notes): Move sections "Comments" and "Header files" to
25859         the new chapter.
25860
25861 2010-01-24  Jim Meyering  <meyering@redhat.com>
25862
25863         maint.mk: do not prepend "./" after filtering
25864         * top/maint.mk (_prepend_srcdir_prefix): New variable
25865         (VC_LIST_EXCEPT): Use it to avoid prepending (post-filter)
25866         "./" when $(srcdir) is ".".
25867
25868         define STREQ(a,b) consistently, removing useless parentheses
25869         #define STREQ(a, b) (strcmp ((a), (b)) == 0) is over-parenthesized,
25870         since the only risk is that "a" or "b" contains an unparenthesized
25871         comma, but if either did that, STREQ would have 3 or more arguments.
25872         Hence, #define STREQ(a, b) (strcmp (a, b) == 0) is better.
25873         * lib/fts.c (STREQ): Remove unnecessary parentheses.
25874         * lib/hash-triple.c (STREQ): Likewise.
25875         * tests/test-argv-iter.c (STREQ): Use a and b, not s1 and s2.
25876         * lib/getugroups.c (STREQ): Likewise.
25877
25878 2010-01-23  Jim Meyering  <meyering@redhat.com>
25879
25880         maint.mk: fix syntax-check in a non-srcdir build directory
25881         * top/maint.mk (_dot_escaped_srcdir): Remove erroneous backslash,
25882         introduced in my 2010-01-21 commit, a6da6c45.  Reported by Eric Blake.
25883
25884 2010-01-22  Jim Meyering  <meyering@redhat.com>
25885
25886         userspec: add unit tests
25887         * tests/test-userspec.c: New file.
25888         * modules/userspec-tests: Likewise.
25889
25890 2010-01-21  Jim Meyering  <meyering@redhat.com>
25891
25892         maint.mk: handle source file names containing "." robustly
25893         * top/maint.mk (_dot_escaped_srcdir): Define.
25894         (VC_LIST): Use it in LHS of sed substitution.
25895
25896 2010-01-21  Jiri Denemark  <jdenemar@redhat.com>
25897
25898         maint.mk: fix VC_LIST_EXCEPT for srcdir != builddir
25899         * top/maint.mk (VC_LIST_EXCEPT): Preprocess the output of
25900         $(VC_LIST) to remove a prefix of '$(srcdir)/', so that it works
25901         from a non-srcdir build.
25902
25903 2010-01-20  Eric Blake  <ebb9@byu.net>
25904
25905         warn-on-use: use instead of link-warning
25906         * modules/stdio (Depends-on, Makefile.am): Drop link-warning.
25907         * modules/unistd (Depends-on, Makefile.am): Likewise.
25908         * modules/arpa_inet (Depends-on): Replace link-warning with
25909         warn-on-use.
25910         (Makefile.am): Update rules accordingly.
25911         * modules/ctype (Depends-on, Makefile.am): Likewise.
25912         * modules/dirent (Depends-on, Makefile.am): Likewise.
25913         * modules/fcntl-h (Depends-on, Makefile.am): Likewise.
25914         * modules/inttypes (Depends-on, Makefile.am): Likewise.
25915         * modules/langinfo (Depends-on, Makefile.am): Likewise.
25916         * modules/locale (Depends-on, Makefile.am): Likewise.
25917         * modules/math (Depends-on, Makefile.am): Likewise.
25918         * modules/search (Depends-on, Makefile.am): Likewise.
25919         * modules/signal (Depends-on, Makefile.am): Likewise.
25920         * modules/spawn (Depends-on, Makefile.am): Likewise.
25921         * modules/stdlib (Depends-on, Makefile.am): Likewise.
25922         * modules/string (Depends-on, Makefile.am): Likewise.
25923         * modules/strings (Depends-on, Makefile.am): Likewise.
25924         * modules/sys_file (Depends-on, Makefile.am): Likewise.
25925         * modules/sys_ioctl (Depends-on, Makefile.am): Likewise.
25926         * modules/sys_select (Depends-on, Makefile.am): Likewise.
25927         * modules/sys_socket (Depends-on, Makefile.am): Likewise.
25928         * modules/sys_stat (Depends-on, Makefile.am): Likewise.
25929         * modules/sys_times (Depends-on, Makefile.am): Likewise.
25930         * modules/sys_utsname (Depends-on, Makefile.am): Likewise.
25931         * modules/wchar (Depends-on, Makefile.am): Likewise.
25932         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Check which functions
25933         should be poisoned.
25934         * m4/ctype.m4 (gl_CTYPE_H): Likewise.
25935         * m4/dirent_h.m4 (gl_DIRENT_H): Likewise.
25936         * m4/fcntl_h.m4 (gl_FCNTL_H): Likewise.
25937         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
25938         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
25939         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
25940         * m4/math_h.m4 (gl_MATH_H): Likewise.
25941         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
25942         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
25943         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
25944         * m4/stdio_h.m4 (gl_STDIO_H): Likewise.
25945         * m4/stdlib_h.m4 (gl_STDLIB_H): Likewise.
25946         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Likewise.
25947         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_BODY): Likewise.
25948         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H_DEFAULTS): Likewise.
25949         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Likewise.
25950         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
25951         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
25952         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
25953         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
25954         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
25955         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
25956         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
25957         * lib/arpa_inet.in.h: Use _GL_WARN_ON_USE instead of
25958         GL_LINK_WARNING.
25959         * lib/ctype.in.h: Likewise.
25960         * lib/dirent.in.h: Likewise.
25961         * lib/fcntl.in.h: Likewise.
25962         * lib/inttypes.in.h: Likewise.
25963         * lib/langinfo.in.h: Likewise.
25964         * lib/locale.in.h: Likewise.
25965         * lib/math.in.h: Likewise.
25966         * lib/search.in.h: Likewise.
25967         * lib/signal.in.h: Likewise.
25968         * lib/spawn.in.h: Likewise.
25969         * lib/stdio.in.h: Likewise.
25970         * lib/stdlib.in.h: Likewise.
25971         * lib/string.in.h: Likewise.
25972         * lib/strings.in.h: Likewise.
25973         * lib/sys_file.in.h: Likewise.
25974         * lib/sys_ioctl.in.h: Likewise.
25975         * lib/sys_select.in.h: Likewise.
25976         * lib/sys_socket.in.h: Likewise.
25977         * lib/sys_stat.in.h: Likewise.
25978         * lib/sys_times.in.h: Likewise.
25979         * lib/sys_utsname.in.h: Likewise.
25980         * lib/unistd.in.h: Likewise.
25981         * lib/wchar.in.h: Likewise.
25982
25983 2010-01-20  Bruno Haible  <bruno@clisp.org>
25984
25985         Avoid duplicate -lm.
25986         * m4/isnan.m4 (gl_ISNAN): Avoid duplicate -lm in $ISNAN_LIBM.
25987         * m4/round.m4 (gl_FUNC_ROUND): Avoid duplicate -lm in $ROUND_LIBM.
25988         * m4/roundf.m4 (gl_FUNC_ROUNDF): Avoid duplicate -lm in $ROUNDF_LIBM.
25989         * m4/roundl.m4 (gl_FUNC_ROUNDL): Avoid duplicate -lm in $ROUNDL_LIBM.
25990         * m4/acosl.m4 (gl_FUNC_ACOSL): Avoid duplicate -lm in $ACOSL_LIBM.
25991         * m4/cosl.m4 (gl_FUNC_COSL): Avoid duplicate -lm in $COSL_LIBM.
25992         * m4/logl.m4 (gl_FUNC_LOGL): Avoid duplicate -lm in $LOGL_LIBM.
25993         * m4/sinl.m4 (gl_FUNC_SINL): Avoid duplicate -lm in $SINL_LIBM.
25994         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Avoid duplicate -lm in $SQRTL_LIBM.
25995         * m4/tanl.m4 (gl_FUNC_TANL): Avoid duplicate -lm in $TANL_LIBM.
25996         * m4/asinl.m4 (gl_FUNC_ASINL): Same change, for consistency.
25997         * m4/atanl.m4 (gl_FUNC_ATANL): Likewise.
25998         Reported by Paolo Bonzini.
25999
26000 2010-01-19  Bruno Haible  <bruno@clisp.org>
26001
26002         langinfo, nl_langinfo: Relicense under LGPLv2+.
26003         * modules/langinfo (License): Change to LGPLv2+.
26004         * modules/nl_langinfo (License): Likewise.
26005         Patch by David Lutterkort <lutter@redhat.com>.
26006
26007 2010-01-19  Bruno Haible  <bruno@clisp.org>
26008
26009         Avoid compilation error with cc on OSF/1 5.1.
26010         * lib/fcntl.in.h: Include <unistd.h> after the #include_next <fcntl.h>
26011         statement, not before.
26012         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
26013
26014 2010-01-18  Bruno Haible  <bruno@clisp.org>
26015
26016         Avoid a link error due to the __printf__ symbol.
26017         * lib/stdio.in.h (__attribute__): Define to empty also for gcc 2.5.x
26018         and 2.6.x.
26019         (__format__, __printf__): Remove definitions.
26020         * lib/argp-fmtstream.h: Likewise.
26021         * lib/argp.h: Likewise.
26022         * lib/error.h: Likewise.
26023         * lib/vasnprintf.h: Likewise.
26024         * lib/xprintf.h: Likewise.
26025         * lib/xvasprintf.h: Likewise.
26026         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
26027
26028 2010-01-18  Bruno Haible  <bruno@clisp.org>
26029
26030         Tests for module 'tanl'.
26031         * modules/tanl-tests: New file.
26032         * tests/test-tanl.c: New file.
26033
26034         Tests for module 'sqrtl'.
26035         * modules/sqrtl-tests: New file.
26036         * tests/test-sqrtl.c: New file.
26037
26038         Tests for module 'sinl'.
26039         * modules/sinl-tests: New file.
26040         * tests/test-sinl.c: New file.
26041
26042         Tests for module 'logl'.
26043         * modules/logl-tests: New file.
26044         * tests/test-logl.c: New file.
26045
26046         Tests for module 'expl'.
26047         * modules/expl-tests: New file.
26048         * tests/test-expl.c: New file.
26049
26050         Tests for module 'cosl'.
26051         * modules/cosl-tests: New file.
26052         * tests/test-cosl.c: New file.
26053
26054         Tests for module 'atanl'.
26055         * modules/atanl-tests: New file.
26056         * tests/test-atanl.c: New file.
26057
26058         Tests for module 'asinl'.
26059         * modules/asinl-tests: New file.
26060         * tests/test-asinl.c: New file.
26061
26062         Tests for module 'acosl'.
26063         * modules/acosl-tests: New file.
26064         * tests/test-acosl.c: New file.
26065
26066         New modules acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl.
26067         * lib/math.in.h (acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl,
26068         tanl): Use the standard gnulib idiom.
26069         * lib/cosl.c: Don't include trigl.c and sincosl.c.
26070         * lib/sinl.c: Likewise.
26071         * lib/tanl.c: Don't include trigl.c.
26072         (kernel_tanl): Make static.
26073         * lib/sincosl.c: Include trigl.h first.
26074         * lib/trigl.c: Likewise.
26075         * m4/acosl.m4: New file.
26076         * m4/asinl.m4: New file.
26077         * m4/atanl.m4: New file.
26078         * m4/cosl.m4: New file.
26079         * m4/expl.m4: New file.
26080         * m4/logl.m4: New file.
26081         * m4/sinl.m4: New file.
26082         * m4/sqrtl.m4: New file.
26083         * m4/tanl.m4: New file.
26084         * m4/mathl.m4: Remove file.
26085         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_* and HAVE_*
26086         variables for acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl.
26087         Don't initialize GNULIB_MATHL.
26088         * modules/acosl: New file.
26089         * modules/asinl: New file.
26090         * modules/atanl: New file.
26091         * modules/cosl: New file.
26092         * modules/expl: New file.
26093         * modules/logl: New file.
26094         * modules/sinl: New file.
26095         * modules/sqrtl: New file.
26096         * modules/tanl: New file.
26097         * modules/math (Makefile.am): Substitute GNULIB_* and HAVE_* variables
26098         for acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl. Don't
26099         substitute GNULIB_MATHL.
26100         * modules/mathl: Rewritten.
26101         * doc/posix-functions/acosl.texi: Mention the 'acosl' module.
26102         * doc/posix-functions/asinl.texi: Mention the 'asinl' module.
26103         * doc/posix-functions/atanl.texi: Mention the 'atanl' module.
26104         * doc/posix-functions/cosl.texi: Mention the 'cosl' module.
26105         * doc/posix-functions/expl.texi: Mention the 'expl' module.
26106         * doc/posix-functions/logl.texi: Mention the 'logl' module.
26107         * doc/posix-functions/sinl.texi: Mention the 'sinl' module.
26108         * doc/posix-functions/sqrtl.texi: Mention the 'sqrtl' module.
26109         * doc/posix-functions/tanl.texi: Mention the 'tanl' module.
26110
26111 2010-01-18  Bruno Haible  <bruno@clisp.org>
26112
26113         sqrt: Make gl_FUNC_SQRT requirable.
26114         * m4/sqrt.m4: New file.
26115         * modules/sqrt (Files): Add it.
26116         (configure.ac): Invoke gl_FUNC_SQRT.
26117
26118 2010-01-18  Bruno Haible  <bruno@clisp.org>
26119
26120         New modules for common <math.h> functions.
26121         * m4/mathfunc.m4: New file.
26122         * modules/acos: New file.
26123         * modules/asin: New file.
26124         * modules/atan: New file.
26125         * modules/atan2: New file.
26126         * modules/cbrt: New file.
26127         * modules/copysign: New file.
26128         * modules/cos: New file.
26129         * modules/cosh: New file.
26130         * modules/erf: New file.
26131         * modules/erfc: New file.
26132         * modules/exp: New file.
26133         * modules/fabs: New file.
26134         * modules/fmod: New file.
26135         * modules/hypot: New file.
26136         * modules/j0: New file.
26137         * modules/j1: New file.
26138         * modules/jn: New file.
26139         * modules/ldexp: New file.
26140         * modules/lgamma: New file.
26141         * modules/log: New file.
26142         * modules/log10: New file.
26143         * modules/log1p: New file.
26144         * modules/logb: New file.
26145         * modules/modf: New file.
26146         * modules/nextafter: New file.
26147         * modules/pow: New file.
26148         * modules/remainder: New file.
26149         * modules/rint: New file.
26150         * modules/sin: New file.
26151         * modules/sinh: New file.
26152         * modules/sqrt: New file.
26153         * modules/tan: New file.
26154         * modules/tanh: New file.
26155         * modules/y0: New file.
26156         * modules/y1: New file.
26157         * modules/yn: New file.
26158         * doc/posix-functions/acos.texi: Mention the 'acos' module.
26159         * doc/posix-functions/asin.texi: Mention the 'asin' module.
26160         * doc/posix-functions/atan.texi: Mention the 'atan' module.
26161         * doc/posix-functions/atan2.texi: Mention the 'atan2' module.
26162         * doc/posix-functions/cbrt.texi: Mention the 'cbrt' module.
26163         * doc/posix-functions/copysign.texi: Mention the 'copysign' module.
26164         * doc/posix-functions/cos.texi: Mention the 'cos' module.
26165         * doc/posix-functions/cosh.texi: Mention the 'cosh' module.
26166         * doc/posix-functions/erf.texi: Mention the 'erf' module.
26167         * doc/posix-functions/erfc.texi: Mention the 'erfc' module.
26168         * doc/posix-functions/exp.texi: Mention the 'exp' module.
26169         * doc/posix-functions/fabs.texi: Mention the 'fabs' module.
26170         * doc/posix-functions/fmod.texi: Mention the 'fmod' module.
26171         * doc/posix-functions/hypot.texi: Mention the 'hypot' module.
26172         * doc/posix-functions/j0.texi: Mention the 'j0' module.
26173         * doc/posix-functions/j1.texi: Mention the 'j1' module.
26174         * doc/posix-functions/jn.texi: Mention the 'jn' module.
26175         * doc/posix-functions/ldexp.texi: Mention the 'ldexp' module.
26176         * doc/posix-functions/lgamma.texi: Mention the 'lgamma' module.
26177         * doc/posix-functions/log.texi: Mention the 'log' module.
26178         * doc/posix-functions/log10.texi: Mention the 'log10' module.
26179         * doc/posix-functions/log1p.texi: Mention the 'log1p' module.
26180         * doc/posix-functions/logb.texi: Mention the 'logb' module.
26181         * doc/posix-functions/modf.texi: Mention the 'modf' module.
26182         * doc/posix-functions/nextafter.texi: Mention the 'nextafter' module.
26183         * doc/posix-functions/pow.texi: Mention the 'pow' module.
26184         * doc/posix-functions/remainder.texi: Mention the 'remainder' module.
26185         * doc/posix-functions/rint.texi: Mention the 'rint' module.
26186         * doc/posix-functions/sin.texi: Mention the 'sin' module.
26187         * doc/posix-functions/sinh.texi: Mention the 'sinh' module.
26188         * doc/posix-functions/sqrt.texi: Mention the 'sqrt' module.
26189         * doc/posix-functions/tan.texi: Mention the 'tan' module.
26190         * doc/posix-functions/tanh.texi: Mention the 'tanh' module.
26191         * doc/posix-functions/y0.texi: Mention the 'y0' module.
26192         * doc/posix-functions/y1.texi: Mention the 'y1' module.
26193         * doc/posix-functions/yn.texi: Mention the 'yn' module.
26194
26195 2010-01-18  Jim Meyering  <meyering@redhat.com>
26196
26197         ignore-value: relax license to LGPLv2+
26198         * modules/ignore-value (License): Relax to LGPLv2+.
26199
26200         getdate: don't leak when TZ contains two or more '"'s
26201         * lib/getdate.y (get_date): Don't leak a copy of TZ for each
26202         double quote in TZ after the first one.
26203
26204         readtokens: do not leak internal token_lengths buffer
26205         * lib/readtokens.c (readtokens): Free the local, lengths,
26206         when the supplied "token_lengths" parameter is NULL.
26207
26208 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
26209
26210         Fix a couple of missing LIBTHREAD link failures on AIX.
26211         * modules/git-merge-changelog (git_merge_changelog_LDADD): Add
26212         $(LIBTHREAD).
26213         * modules/strsignal-tests (test_strsignal_LDADD): Likewise.
26214
26215         Link test-poll against INET_PTON_LIB.
26216         * modules/poll-tests (test_poll_LDADD): Add $(INET_PTON_LIB),
26217         for inet_pton on Solaris 10.
26218
26219 2010-01-17  Bruno Haible  <bruno@clisp.org>
26220
26221         unistdio/*-sprintf: Fix typo in module description.
26222         * modules/unistdio/u8-sprintf (Depends-on): Fix typo.
26223         * modules/unistdio/u8-u8-sprintf (Depends-on): Likewise.
26224         * modules/unistdio/u16-sprintf (Depends-on): Likewise.
26225         * modules/unistdio/u16-u16-sprintf (Depends-on): Likewise.
26226         * modules/unistdio/u32-sprintf (Depends-on): Likewise.
26227         * modules/unistdio/u32-u32-sprintf (Depends-on): Likewise.
26228         * modules/unistdio/ulc-sprintf (Depends-on): Likewise.
26229         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
26230
26231 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
26232
26233         gnulib-tool: fix filelist for AIX, HP-UX ksh.
26234         * gnulib-tool (func_filter_filelist): Do not quote possibly-empty
26235         variables in shell case patterns, for AIX and HP-UX ksh.
26236
26237         Split large sed scripts, for HP-UX sed.
26238         * modules/stdio: Split sed scripts around 50 sed commands,
26239         to avoid HP-UX limit of 99 commands, in the near future.
26240         * modules/string: Likewise.
26241         * modules/unistd: Likewise.
26242
26243         gnulib-tool: avoid writing in the current directory.
26244         * gnulib-tool (func_emit_lib_Makefile_am)
26245         (func_emit_tests_Makefile_am): Put temporary files in $tmp,
26246         not in the current directory, so concurrent gnulib-tool
26247         instances do not interfere.
26248
26249 2010-01-16  Jim Meyering  <meyering@redhat.com>
26250
26251         doc: update users.txt
26252         * users.txt: Add grep.
26253         (diffutils, gzip): Update URLs.
26254
26255 2010-01-12  Bruno Haible  <bruno@clisp.org>
26256
26257         posix_spawn: Avoid test failure on Cygwin.
26258         * tests/test-posix_spawn3.c (DATA_FILENAME) [CYGWIN]: Use less risky
26259         characters.
26260         Reported by Simon Josefsson.
26261
26262 2010-01-12  Bruno Haible  <bruno@clisp.org>
26263
26264         * tests/test-cond.c (main): When skipping the test, show the reason.
26265
26266 2010-01-12  Simon Josefsson  <simon@josefsson.org>
26267
26268         * lib/striconv.c (str_cd_iconv): Avoid if before free.
26269
26270 2010-01-12  Simon Josefsson  <simon@josefsson.org>
26271
26272         * top/maint.mk (VC_LIST_EXCEPT): Filter list through
26273         VC_LIST_ALWAYS_EXCLUDE_REGEX.
26274
26275 2010-01-12  Eric Blake  <ebb9@byu.net>
26276
26277         build: guarantee AS_VAR_IF
26278         * m4/warnings.m4 (gl_WARN_ADD): Use autoconf name.
26279         (gl_AS_VAR_IF): Move...
26280         * m4/gnulib-common.m4 (AS_VAR_IF): ...here.
26281         Reported by Simon Josefsson.
26282
26283 2010-01-12  Simon Josefsson  <simon@josefsson.org>
26284
26285         * lib/stdio.in.h: Fix typo.
26286
26287 2010-01-12  Simon Josefsson  <simon@josefsson.org>
26288
26289         * m4/gc.m4: Check if linking to libgcrypt also needs linking to
26290         libgpg-error.
26291
26292 2010-01-12  Simon Josefsson  <simon@josefsson.org>
26293
26294         * tests/test-xalloc-die.sh: Use $EXEEXT.
26295
26296 2010-01-12  Simon Josefsson  <simon@josefsson.org>
26297             Bruno Haible  <bruno@clisp.org>
26298
26299         getlogin, getlogin_r: Avoid test failure.
26300         * tests/test-getlogin.c: Include <stdio.h>.
26301         (main): Skip the test when the function fails because stdin is not a
26302         tty.
26303         * tests/test-getlogin_r.c: Include <stdio.h>.
26304         (main): Skip the test when the function fails because stdin is not a
26305         tty.
26306
26307 2010-01-11  Eric Blake  <ebb9@byu.net>
26308
26309         tests: avoid more large file warnings
26310         * tests/test-fflush.c: Avoid warning about ftell use.
26311         * tests/test-fseek.c: Avoid warning about fseek use.
26312
26313 2010-01-10  Bruno Haible  <bruno@clisp.org>
26314
26315         nproc: Work better on Linux when /proc and /sys are not mounted.
26316         * lib/nproc.c (num_processors): Use num_processors_via_affinity_mask ()
26317         as lower bound when, on glibc/Linux systems,
26318         sysconf (_SC_NPROCESSORS_CONF) returns 1.
26319         Suggested by Pádraig Brady <P@draigbrady.com>.
26320         Reported by Dmitry V. Levin <ldv@altlinux.org>.
26321
26322         nproc: Refactor.
26323         * lib/nproc.c (num_processors_via_affinity_mask): New function,
26324         extracted from num_processors.
26325         (num_processors): Call it.
26326
26327 2010-01-11  Jim Meyering  <meyering@redhat.com>
26328
26329         utimecmp: avoid new warning from upcoming gcc-4.5.0
26330         * lib/utimecmp.c (BILLION): Define using #define rather than an
26331         anonymous enum, to placate upcoming gcc-4.5.0's -Wenum-compare.
26332
26333 2010-01-11  Eric Blake  <ebb9@byu.net>
26334
26335         math: add portability warnings for classification macros
26336         * modules/math (Depends-on): Add warn-on-use.
26337         (Makefile.am): Provide new substitutions.
26338         * m4/math_h.m4 (gl_MATH_H): Require inline.
26339         * lib/math.in.h (_GL_WARN_REAL_FLOATING_DECL)
26340         (_GL_WARN_REAL_FLOATING_IMPL): New helper macros.
26341         (isfinite, isinf, isnan, signbit) [GNULIB_POSIXCHECK]: Use them to
26342         implement warnings.
26343
26344         unistd: warn on use of environ without module
26345         * modules/unistd (Depends-on): Add warn-on-use.
26346         (Makefile.am): Provide new substitutions.
26347         * m4/unistd_h.m4 (gl_UNISTD_H): Check for inline and environ.
26348         * lib/unistd.in.h (environ): Wrap with a warning helper function.
26349
26350         stdio: warn on suspicious uses
26351         * modules/stdio (Depends-on): Add warn-on-use.
26352         (Makefile.am): Provide new substitutions.
26353         * m4/stdio_h.m4 (gl_STDIO_H): Check for inline, ftello, and
26354         fseeko.
26355         * lib/stdio.in.h (gets): Always warn on use.
26356         (fseek, ftell): Adjust when warnings are issued, and honor
26357         _GL_NO_LARGE_FILES as a way to silence the warning.
26358         * tests/test-fpurge.c [!GNULIB_FSEEK]: Use new means to squelch
26359         any warning about large file offsets.
26360         * tests/test-freadable.c [!GNULIB_FSEEK]: Likewise.
26361         * tests/test-freading.c [!GNULIB_FSEEK]: Likewise.
26362         * tests/test-fseeko.c [!GNULIB_FSEEK]: Likewise.
26363         * tests/test-ftell.c [!GNULIB_FSEEK]: Likewise.
26364         * tests/test-ftello.c [!GNULIB_FSEEK]: Likewise.
26365         * tests/test-fwritable.c [!GNULIB_FSEEK]: Likewise.
26366         * tests/test-fwriting.c [!GNULIB_FSEEK]: Likewise.
26367         * tests/test-getopt.c [!GNULIB_FTELL]: Likewise.
26368
26369         warn-on-use: new module
26370         * modules/warn-on-use: New file.
26371         * build-aux/warn-on-use.h: Likewise.
26372         * m4/warn-on-use.m4: Likewise.
26373         * MODULES.html.sh (Support for building): Mention it.
26374
26375 2010-01-10  Bruno Haible  <bruno@clisp.org>
26376
26377         Tests for module 'unistr/u32-strdup'.
26378         * modules/unistr/u32-strdup-tests: New file.
26379         * tests/unistr/test-u32-strdup.c: New file.
26380
26381         Tests for module 'unistr/u16-strdup'.
26382         * modules/unistr/u16-strdup-tests: New file.
26383         * tests/unistr/test-u16-strdup.c: New file.
26384
26385         Tests for module 'unistr/u8-strdup'.
26386         * modules/unistr/u8-strdup-tests: New file.
26387         * tests/unistr/test-u8-strdup.c: New file.
26388         * tests/unistr/test-strdup.h: New file.
26389
26390         Tests for module 'unistr/u32-strncmp'.
26391         * modules/unistr/u32-strncmp-tests: New file.
26392         * tests/unistr/test-u32-strncmp.c: New file.
26393
26394         Tests for module 'unistr/u16-strncmp'.
26395         * modules/unistr/u16-strncmp-tests: New file.
26396         * tests/unistr/test-u16-strncmp.c: New file.
26397
26398         Tests for module 'unistr/u8-strncmp'.
26399         * modules/unistr/u8-strncmp-tests: New file.
26400         * tests/unistr/test-u8-strncmp.c: New file.
26401         * tests/unistr/test-strncmp.h: New file.
26402
26403         Tests for module 'unistr/u32-strcoll'.
26404         * modules/unistr/u32-strcoll-tests: New file.
26405         * tests/unistr/test-u32-strcoll.c: New file.
26406
26407         Tests for module 'unistr/u16-strcoll'.
26408         * modules/unistr/u16-strcoll-tests: New file.
26409         * tests/unistr/test-u16-strcoll.c: New file.
26410
26411         Tests for module 'unistr/u8-strcoll'.
26412         * modules/unistr/u8-strcoll-tests: New file.
26413         * tests/unistr/test-u8-strcoll.c: New file.
26414
26415         Tests for module 'unistr/u32-strcmp'.
26416         * modules/unistr/u32-strcmp-tests: New file.
26417         * tests/unistr/test-u32-strcmp.c: New file.
26418         * tests/unistr/test-u32-strcmp.h: New file.
26419
26420         Tests for module 'unistr/u16-strcmp'.
26421         * modules/unistr/u16-strcmp-tests: New file.
26422         * tests/unistr/test-u16-strcmp.c: New file.
26423         * tests/unistr/test-u16-strcmp.h: New file.
26424
26425         Tests for module 'unistr/u8-strcmp'.
26426         * modules/unistr/u8-strcmp-tests: New file.
26427         * tests/unistr/test-u8-strcmp.c: New file.
26428         * tests/unistr/test-u8-strcmp.h: New file.
26429         * tests/unistr/test-strcmp.h: New file.
26430
26431         Tests for module 'unistr/u32-strncat'.
26432         * modules/unistr/u32-strncat-tests: New file.
26433         * tests/unistr/test-u32-strncat.c: New file.
26434
26435         Tests for module 'unistr/u16-strncat'.
26436         * modules/unistr/u16-strncat-tests: New file.
26437         * tests/unistr/test-u16-strncat.c: New file.
26438
26439         Tests for module 'unistr/u8-strncat'.
26440         * modules/unistr/u8-strncat-tests: New file.
26441         * tests/unistr/test-u8-strncat.c: New file.
26442         * tests/unistr/test-strncat.h: New file.
26443
26444         Tests for module 'unistr/u32-strcat'.
26445         * modules/unistr/u32-strcat-tests: New file.
26446         * tests/unistr/test-u32-strcat.c: New file.
26447
26448         Tests for module 'unistr/u16-strcat'.
26449         * modules/unistr/u16-strcat-tests: New file.
26450         * tests/unistr/test-u16-strcat.c: New file.
26451
26452         Tests for module 'unistr/u8-strcat'.
26453         * modules/unistr/u8-strcat-tests: New file.
26454         * tests/unistr/test-u8-strcat.c: New file.
26455         * tests/unistr/test-strcat.h: New file.
26456
26457         Tests for module 'unistr/u32-stpncpy'.
26458         * modules/unistr/u32-stpncpy-tests: New file.
26459         * tests/unistr/test-u32-stpncpy.c: New file.
26460
26461         Tests for module 'unistr/u16-stpncpy'.
26462         * modules/unistr/u16-stpncpy-tests: New file.
26463         * tests/unistr/test-u16-stpncpy.c: New file.
26464
26465         Tests for module 'unistr/u8-stpncpy'.
26466         * modules/unistr/u8-stpncpy-tests: New file.
26467         * tests/unistr/test-u8-stpncpy.c: New file.
26468         * tests/unistr/test-stpncpy.h: New file.
26469
26470         Tests for module 'unistr/u32-strncpy'.
26471         * modules/unistr/u32-strncpy-tests: New file.
26472         * tests/unistr/test-u32-strncpy.c: New file.
26473
26474         Tests for module 'unistr/u16-strncpy'.
26475         * modules/unistr/u16-strncpy-tests: New file.
26476         * tests/unistr/test-u16-strncpy.c: New file.
26477
26478         Tests for module 'unistr/u8-strncpy'.
26479         * modules/unistr/u8-strncpy-tests: New file.
26480         * tests/unistr/test-u8-strncpy.c: New file.
26481         * tests/unistr/test-strncpy.h: New file.
26482
26483         Tests for module 'unistr/u32-stpcpy'.
26484         * modules/unistr/u32-stpcpy-tests: New file.
26485         * tests/unistr/test-u32-stpcpy.c: New file.
26486
26487         Tests for module 'unistr/u16-stpcpy'.
26488         * modules/unistr/u16-stpcpy-tests: New file.
26489         * tests/unistr/test-u16-stpcpy.c: New file.
26490
26491         Tests for module 'unistr/u8-stpcpy'.
26492         * modules/unistr/u8-stpcpy-tests: New file.
26493         * tests/unistr/test-u8-stpcpy.c: New file.
26494         * tests/unistr/test-stpcpy.h: New file.
26495
26496         Tests for module 'unistr/u32-strcpy'.
26497         * modules/unistr/u32-strcpy-tests: New file.
26498         * tests/unistr/test-u32-strcpy.c: New file.
26499
26500         Tests for module 'unistr/u16-strcpy'.
26501         * modules/unistr/u16-strcpy-tests: New file.
26502         * tests/unistr/test-u16-strcpy.c: New file.
26503
26504         Tests for module 'unistr/u8-strcpy'.
26505         * modules/unistr/u8-strcpy-tests: New file.
26506         * tests/unistr/test-u8-strcpy.c: New file.
26507         * tests/unistr/test-strcpy.h: New file.
26508
26509         Tests for module 'unistr/u32-strnlen'.
26510         * modules/unistr/u32-strnlen-tests: New file.
26511         * tests/unistr/test-u32-strnlen.c: New file.
26512
26513         Tests for module 'unistr/u16-strnlen'.
26514         * modules/unistr/u16-strnlen-tests: New file.
26515         * tests/unistr/test-u16-strnlen.c: New file.
26516
26517         Tests for module 'unistr/u8-strnlen'.
26518         * modules/unistr/u8-strnlen-tests: New file.
26519         * tests/unistr/test-u8-strnlen.c: New file.
26520         * tests/unistr/test-strnlen.h: New file.
26521
26522         Tests for module 'unistr/u32-strlen'.
26523         * modules/unistr/u32-strlen-tests: New file.
26524         * tests/unistr/test-u32-strlen.c: New file.
26525
26526         Tests for module 'unistr/u16-strlen'.
26527         * modules/unistr/u16-strlen-tests: New file.
26528         * tests/unistr/test-u16-strlen.c: New file.
26529
26530         Tests for module 'unistr/u8-strlen'.
26531         * modules/unistr/u8-strlen-tests: New file.
26532         * tests/unistr/test-u8-strlen.c: New file.
26533
26534         Tests for module 'unistr/u32-prev'.
26535         * modules/unistr/u32-prev-tests: New file.
26536         * tests/unistr/test-u32-prev.c: New file.
26537
26538         Tests for module 'unistr/u16-prev'.
26539         * modules/unistr/u16-prev-tests: New file.
26540         * tests/unistr/test-u16-prev.c: New file.
26541
26542         Tests for module 'unistr/u8-prev'.
26543         * modules/unistr/u8-prev-tests: New file.
26544         * tests/unistr/test-u8-prev.c: New file.
26545
26546         Tests for module 'unistr/u32-next'.
26547         * modules/unistr/u32-next-tests: New file.
26548         * tests/unistr/test-u32-next.c: New file.
26549
26550         Tests for module 'unistr/u16-next'.
26551         * modules/unistr/u16-next-tests: New file.
26552         * tests/unistr/test-u16-next.c: New file.
26553
26554         Tests for module 'unistr/u8-next'.
26555         * modules/unistr/u8-next-tests: New file.
26556         * tests/unistr/test-u8-next.c: New file.
26557
26558         Tests for module 'unistr/u32-strmbtouc'.
26559         * modules/unistr/u32-strmbtouc-tests: New file.
26560         * tests/unistr/test-u32-strmbtouc.c: New file.
26561
26562         Tests for module 'unistr/u16-strmbtouc'.
26563         * modules/unistr/u16-strmbtouc-tests: New file.
26564         * tests/unistr/test-u16-strmbtouc.c: New file.
26565
26566         Tests for module 'unistr/u8-strmbtouc'.
26567         * modules/unistr/u8-strmbtouc-tests: New file.
26568         * tests/unistr/test-u8-strmbtouc.c: New file.
26569
26570         Tests for module 'unistr/u32-strmblen'.
26571         * modules/unistr/u32-strmblen-tests: New file.
26572         * tests/unistr/test-u32-strmblen.c: New file.
26573
26574         Tests for module 'unistr/u16-strmblen'.
26575         * modules/unistr/u16-strmblen-tests: New file.
26576         * tests/unistr/test-u16-strmblen.c: New file.
26577
26578         Tests for module 'unistr/u8-strmblen'.
26579         * modules/unistr/u8-strmblen-tests: New file.
26580         * tests/unistr/test-u8-strmblen.c: New file.
26581
26582         Tests for module 'unistr/u32-cpy-alloc'.
26583         * modules/unistr/u32-cpy-alloc-tests: New file.
26584         * tests/unistr/test-u32-cpy-alloc.c: New file.
26585
26586         Tests for module 'unistr/u16-cpy-alloc'.
26587         * modules/unistr/u16-cpy-alloc-tests: New file.
26588         * tests/unistr/test-u16-cpy-alloc.c: New file.
26589
26590         Tests for module 'unistr/u8-cpy-alloc'.
26591         * modules/unistr/u8-cpy-alloc-tests: New file.
26592         * tests/unistr/test-u8-cpy-alloc.c: New file.
26593         * tests/unistr/test-cpy-alloc.h: New file.
26594
26595         Tests for module 'unistr/u32-mbsnlen'.
26596         * modules/unistr/u32-mbsnlen-tests: New file.
26597         * tests/unistr/test-u32-mbsnlen.c: New file.
26598
26599         Tests for module 'unistr/u16-mbsnlen'.
26600         * modules/unistr/u16-mbsnlen-tests: New file.
26601         * tests/unistr/test-u16-mbsnlen.c: New file.
26602
26603         Tests for module 'unistr/u8-mbsnlen'.
26604         * modules/unistr/u8-mbsnlen-tests: New file.
26605         * tests/unistr/test-u8-mbsnlen.c: New file.
26606
26607         Tests for module 'unistr/u32-chr'.
26608         * modules/unistr/u32-chr-tests: New file.
26609         * tests/unistr/test-u32-chr.c: New file.
26610
26611         Tests for module 'unistr/u16-chr'.
26612         * modules/unistr/u16-chr-tests: New file.
26613         * tests/unistr/test-u16-chr.c: New file.
26614
26615         Tests for module 'unistr/u8-chr'.
26616         * modules/unistr/u8-chr-tests: New file.
26617         * tests/unistr/test-u8-chr.c: New file.
26618         * tests/unistr/test-chr.h: New file, based on tests/test-memchr.c.
26619
26620         Tests for module 'unistr/u32-cmp2'.
26621         * modules/unistr/u32-cmp2-tests: New file.
26622         * tests/unistr/test-u32-cmp2.c: New file.
26623
26624         Tests for module 'unistr/u16-cmp2'.
26625         * modules/unistr/u16-cmp2-tests: New file.
26626         * tests/unistr/test-u16-cmp2.c: New file.
26627
26628         Tests for module 'unistr/u8-cmp2'.
26629         * modules/unistr/u8-cmp2-tests: New file.
26630         * tests/unistr/test-u8-cmp2.c: New file.
26631         * tests/unistr/test-cmp2.h: New file, based on tests/unistr/test-cmp.h.
26632
26633         Tests for module 'unistr/u32-cmp'.
26634         * modules/unistr/u32-cmp-tests: New file.
26635         * tests/unistr/test-u32-cmp.c: New file.
26636
26637         Tests for module 'unistr/u16-cmp'.
26638         * modules/unistr/u16-cmp-tests: New file.
26639         * tests/unistr/test-u16-cmp.c: New file.
26640
26641         Tests for module 'unistr/u8-cmp'.
26642         * modules/unistr/u8-cmp-tests: New file.
26643         * tests/unistr/test-u8-cmp.c: New file.
26644         * tests/unistr/test-cmp.h: New file, based on tests/test-memcmp.c.
26645
26646         Tests for module 'unistr/u32-set'.
26647         * modules/unistr/u32-set-tests: New file.
26648         * tests/unistr/test-u32-set.c: New file.
26649
26650         Tests for module 'unistr/u16-set'.
26651         * modules/unistr/u16-set-tests: New file.
26652         * tests/unistr/test-u16-set.c: New file.
26653
26654         Tests for module 'unistr/u8-set'.
26655         * modules/unistr/u8-set-tests: New file.
26656         * tests/unistr/test-u8-set.c: New file.
26657         * tests/unistr/test-set.h: New file.
26658
26659         Tests for module 'unistr/u32-move'.
26660         * modules/unistr/u32-move-tests: New file.
26661         * tests/unistr/test-u32-move.c: New file.
26662
26663         Tests for module 'unistr/u16-move'.
26664         * modules/unistr/u16-move-tests: New file.
26665         * tests/unistr/test-u16-move.c: New file.
26666
26667         Tests for module 'unistr/u8-move'.
26668         * modules/unistr/u8-move-tests: New file.
26669         * tests/unistr/test-u8-move.c: New file.
26670         * tests/unistr/test-move.h: New file.
26671
26672         Tests for module 'unistr/u32-cpy'.
26673         * modules/unistr/u32-cpy-tests: New file.
26674         * tests/unistr/test-u32-cpy.c: New file.
26675
26676         Tests for module 'unistr/u16-cpy'.
26677         * modules/unistr/u16-cpy-tests: New file.
26678         * tests/unistr/test-u16-cpy.c: New file.
26679
26680         Tests for module 'unistr/u8-cpy'.
26681         * modules/unistr/u8-cpy-tests: New file.
26682         * tests/unistr/test-u8-cpy.c: New file.
26683         * tests/unistr/test-cpy.h: New file.
26684
26685 2010-01-09  Bruno Haible  <bruno@clisp.org>
26686
26687         Tests for module 'unistr/u32-uctomb'.
26688         * modules/unistr/u32-uctomb-tests: New file.
26689         * tests/unistr/test-u32-uctomb.c: New file.
26690
26691         Tests for module 'unistr/u16-uctomb'.
26692         * modules/unistr/u16-uctomb-tests: New file.
26693         * tests/unistr/test-u16-uctomb.c: New file.
26694
26695         Tests for module 'unistr/u8-uctomb'.
26696         * modules/unistr/u8-uctomb-tests: New file.
26697         * tests/unistr/test-u8-uctomb.c: New file.
26698
26699         Tests for module 'unistr/u32-mbtoucr'.
26700         * modules/unistr/u32-mbtoucr-tests: New file.
26701         * tests/unistr/test-u32-mbtoucr.c: New file.
26702
26703         Tests for module 'unistr/u16-mbtoucr'.
26704         * modules/unistr/u16-mbtoucr-tests: New file.
26705         * tests/unistr/test-u16-mbtoucr.c: New file.
26706
26707         Tests for module 'unistr/u8-mbtoucr'.
26708         * modules/unistr/u8-mbtoucr-tests: New file.
26709         * tests/unistr/test-u8-mbtoucr.c: New file.
26710
26711         Tests for module 'unistr/u32-mbtouc'.
26712         * modules/unistr/u32-mbtouc-tests: New file.
26713         * tests/unistr/test-u32-mbtouc.c: New file.
26714
26715         Tests for module 'unistr/u16-mbtouc'.
26716         * modules/unistr/u16-mbtouc-tests: New file.
26717         * tests/unistr/test-u16-mbtouc.c: New file.
26718
26719         Tests for module 'unistr/u8-mbtouc'.
26720         * modules/unistr/u8-mbtouc-tests: New file.
26721         * tests/unistr/test-u8-mbtouc.c: New file.
26722
26723         Tests for module 'unistr/u32-mbtouc-unsafe'.
26724         * modules/unistr/u32-mbtouc-unsafe-tests: New file.
26725         * tests/unistr/test-u32-mbtouc-unsafe.c: New file.
26726         * tests/unistr/test-u32-mbtouc.h: New file.
26727
26728         Tests for module 'unistr/u16-mbtouc-unsafe'.
26729         * modules/unistr/u16-mbtouc-unsafe-tests: New file.
26730         * tests/unistr/test-u16-mbtouc-unsafe.c: New file.
26731         * tests/unistr/test-u16-mbtouc.h: New file.
26732
26733         Tests for module 'unistr/u8-mbtouc-unsafe'.
26734         * modules/unistr/u8-mbtouc-unsafe-tests: New file.
26735         * tests/unistr/test-u8-mbtouc-unsafe.c: New file.
26736         * tests/unistr/test-u8-mbtouc.h: New file.
26737
26738         Tests for module 'unistr/u32-mblen'.
26739         * modules/unistr/u32-mblen-tests: New file.
26740         * tests/unistr/test-u32-mblen.c: New file.
26741
26742         Tests for module 'unistr/u16-mblen'.
26743         * modules/unistr/u16-mblen-tests: New file.
26744         * tests/unistr/test-u16-mblen.c: New file.
26745
26746         Tests for module 'unistr/u8-mblen'.
26747         * modules/unistr/u8-mblen-tests: New file.
26748         * tests/unistr/test-u8-mblen.c: New file.
26749
26750         Tests for module 'unistr/u32-to-u16'.
26751         * modules/unistr/u32-to-u16-tests: New file.
26752         * tests/unistr/test-u32-to-u16.c: New file.
26753
26754         Tests for module 'unistr/u32-to-u8'.
26755         * modules/unistr/u32-to-u8-tests: New file.
26756         * tests/unistr/test-u32-to-u8.c: New file.
26757
26758         Tests for module 'unistr/u16-to-u32'.
26759         * modules/unistr/u16-to-u32-tests: New file.
26760         * tests/unistr/test-u16-to-u32.c: New file.
26761
26762         Tests for module 'unistr/u16-to-u8'.
26763         * modules/unistr/u16-to-u8-tests: New file.
26764         * tests/unistr/test-u16-to-u8.c: New file.
26765
26766         Tests for module 'unistr/u8-to-u32'.
26767         * modules/unistr/u8-to-u32-tests: New file.
26768         * tests/unistr/test-u8-to-u32.c: New file.
26769
26770         Tests for module 'unistr/u8-to-u16'.
26771         * modules/unistr/u8-to-u16-tests: New file.
26772         * tests/unistr/test-u8-to-u16.c: New file.
26773
26774         Tests for module 'unistr/u32-check'.
26775         * modules/unistr/u32-check-tests: New file.
26776         * tests/unistr/test-u32-check.c: New file.
26777
26778         Tests for module 'unistr/u16-check'.
26779         * modules/unistr/u16-check-tests: New file.
26780         * tests/unistr/test-u16-check.c: New file.
26781
26782         Tests for module 'unistr/u8-check'.
26783         * modules/unistr/u8-check-tests: New file.
26784         * tests/unistr/test-u8-check.c: New file.
26785
26786         * tests/unictype/test-categ_byname.c: Include <stdbool.h>.
26787         (category_equals): New function.
26788         (main): Add more tests.
26789         * modules/unictype/category-byname-tests (Depends-on): Add stdbool.
26790
26791         * tests/unictype/test-bidi_byname.c (main): Add more tests.
26792
26793 2010-01-10  Bruno Haible  <bruno@clisp.org>
26794
26795         unistr/u*-strcoll: Try harder to distinguish different strings.
26796         * lib/unistr/u-strcoll.h (FUNC): When sl1 and sl2 are the same,
26797         compare s1 and s2 to see if they are different.
26798
26799 2010-01-10  Bruno Haible  <bruno@clisp.org>
26800
26801         unistr/u*-stpncpy: Fix the return value.
26802         * lib/unistr.h (u8_stpncpy, u16_stpncpy, u32_stpncpy): Make the
26803         description of the return value consistent with stpncpy in glibc.
26804         * lib/unistr/u-stpncpy.h (FUNC): Return the pointer past the last
26805         written non-NUL unit.
26806
26807 2010-01-10  Bruno Haible  <bruno@clisp.org>
26808
26809         unistr/u*-next: Add missing dependencies.
26810         * modules/unistr/u8-next (Depends-on): Add unistr/u8-strmbtouc.
26811         * modules/unistr/u16-next (Depends-on): Add unistr/u16-strmbtouc.
26812         * modules/unistr/u32-next (Depends-on): Add unistr/u32-strmbtouc.
26813
26814 2010-01-10  Bruno Haible  <bruno@clisp.org>
26815
26816         unistr/u8-mbsnlen: Fix return value for incomplete character.
26817         * lib/unistr/u8-mbsnlen.c (u8_mbsnlen): Use u8_mbtoucr instead of
26818         u8_mblen.
26819         * modules/unistr/u8-mbsnlen (Depends-on): Add unistr/u8-mbtoucr.
26820         Remove unistr/u8-mblen.
26821         * lib/unistr/u16-mbsnlen.c (u16_mbsnlen): Use u16_mbtoucr instead of
26822         u16_mblen.
26823         * modules/unistr/u16-mbsnlen (Depends-on): Add unistr/u16-mbtoucr.
26824         Remove unistr/u16-mblen.
26825
26826 2010-01-10  Bruno Haible  <bruno@clisp.org>
26827
26828         wchar: Fix compilation error when <wchar.h> is used from coreutils.
26829         * lib/wchar.in.h: Treat __need_wint_t like __need_mbstate_t.
26830         Reported by Brian Gough <bjg@gnu.org> and
26831         Chris Clayton <chris2553@googlemail.com> via
26832         Mike Frysinger <vapier@gentoo.org> and Jim Meyering <jim@meyering.net>.
26833
26834 2010-01-09  Bruno Haible  <bruno@clisp.org>
26835
26836         unistr/u16-to-u32: Reject invalid input.
26837         * lib/unistr/u16-to-u32.c (u16_to_u32): Call u16_mbtoucr instead of
26838         u16_mbtouc.
26839         * modules/unistr/u16-to-u32 (Depends-on): Add unistr/u16-mbtoucr.
26840         Remove unistr/u16-mbtouc.
26841
26842         unistr/u16-to-u8: Reject invalid input.
26843         * lib/unistr/u16-to-u8.c (u16_to_u8): Call u16_mbtoucr instead of
26844         u16_mbtouc.
26845         * modules/unistr/u16-to-u8 (Depends-on): Add unistr/u16-mbtoucr.
26846         Remove unistr/u16-mbtouc.
26847
26848         unistr/u8-to-u32: Reject invalid input.
26849         * lib/unistr/u8-to-u32.c (u8_to_u32): Call u8_mbtoucr instead of
26850         u8_mbtouc.
26851         * modules/unistr/u8-to-u32 (Depends-on): Add unistr/u8-mbtoucr.
26852         Remove unistr/u8-mbtouc.
26853
26854         unistr/u8-to-u16: Reject invalid input.
26855         * lib/unistr/u8-to-u16.c (u8_to_u16): Call u8_mbtoucr instead of
26856         u8_mbtouc.
26857         * modules/unistr/u8-to-u16 (Depends-on): Add unistr/u8-mbtoucr.
26858         Remove unistr/u8-mbtouc.
26859
26860 2010-01-09  Bruno Haible  <bruno@clisp.org>
26861
26862         Tests for module 'getlogin'.
26863         * modules/getlogin-tests: New file.
26864         * tests/test-getlogin.c: New file.
26865
26866         New module 'getlogin'.
26867         * lib/unistd.in.h (getlogin): New declaration.
26868         * lib/getlogin.c: New file.
26869         * m4/getlogin.m4: New file.
26870         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETLOGIN,
26871         HAVE_GETLOGIN.
26872         * modules/unistd (Makefile.am): Substitute GNULIB_GETLOGIN,
26873         HAVE_GETLOGIN.
26874         * modules/getlogin: New file.
26875         * doc/posix-functions/getlogin.texi: Mention the new module.
26876         Reported by John W. Eaton <jwe@gnu.org>.
26877
26878 2010-01-09  Bruno Haible  <bruno@clisp.org>
26879
26880         getlogin_r: Support for native Windows.
26881         * lib/getlogin_r.c: Include <windows.h>
26882         (getlogin_r): Implement for native Windows.
26883         * tests/test-getlogin_r.c (main): Also test with a huge buffer.
26884         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>
26885         via John W. Eaton <jwe@gnu.org>.
26886
26887 2010-01-09  Bruno Haible  <bruno@clisp.org>
26888
26889         getlogin_r: Small fixes.
26890         * lib/getlogin_r.c (getlogin_r): Don't set errno if the function
26891         succeeds.
26892         * m4/getlogin_r.m4 (gl_GETLOGIN_R): Require gl_USE_SYSTEM_EXTENSIONS
26893         before testing whether getlogin_r is declared. No need to set
26894         HAVE_DECL_GETLOGIN_R to 1.
26895         (gl_PREREQ_GETLOGIN_R): Don't check for the getlogin_r declaration.
26896
26897 2010-01-09  Bruno Haible  <bruno@clisp.org>
26898
26899         * lib/unistd.in.h (getlogin_r): Add comment.
26900
26901 2010-01-09  Bruno Haible  <bruno@clisp.org>
26902
26903         Tests for module 'getlogin_r'.
26904         * modules/getlogin_r-tests: New file.
26905         * tests/test-getlogin_r.c: New file.
26906
26907 2010-01-09  Jim Meyering  <meyering@redhat.com>
26908
26909         maint.mk: extend proper_name_utf8-vs-LIBICONV-checking rule
26910         * top/maint.mk (sc_proper_name_utf8_requires_ICONV): Adapt to work
26911         also when $(LIBICONV) is part of LDADD, rather than ${prog}_LDADD.
26912
26913 2010-01-08  Simon Josefsson  <simon@josefsson.org>
26914
26915         * lib/dup2.c (rpl_dup2): Improve comment.
26916
26917 2010-01-08  Eric Blake  <ebb9@byu.net>
26918
26919         maint.mk: allow packages to add makefile @@ exceptions
26920         * top/maint.mk (_makefile_at_at_check_exceptions): New hook.
26921         (sc_makefile_check): Rename...
26922         (sc_makefile_at_at_check): ...to this, and use hook.
26923
26924         dup2: work around mingw bug
26925         * lib/dup2.c (rpl_dup2): Sanitize return value on mingw.
26926         Reported by Simon Josefsson.
26927
26928 2010-01-07  John W. Eaton  <jwe@octave.org>  (tiny change)
26929
26930         glob: Fix C++ compilation.
26931         * lib/glob.in.h [__cplusplus]: Define __BEGIN_DECLS and __END_DECLS for
26932         C++.
26933
26934 2010-01-07  Bruno Haible  <bruno@clisp.org>
26935
26936         Fix indentation of wctype.in.h, broken since 2007-01-06.
26937         * lib/wctype.in.h: Fix indentation of preprocessor directives.
26938
26939 2010-01-07  Bruno Haible  <bruno@clisp.org>
26940
26941         mbslen: Avoid collision with system function.
26942         * lib/string.in.h [MirBSD]: Include <wchar.h>.
26943         (mbslen): Undefine first. Alias mbslen to rpl_mbslen.
26944         * m4/mbslen.m4: New file.
26945         * modules/mbslen (Files): Add it.
26946         (configure.ac): Invoke gl_MBSLEN.
26947         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize HAVE_MBSLEN.
26948         * modules/string (Makefile.am): Substitute HAVE_MBSLEN.
26949         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>
26950         via Ian Beckwith <ianb@erislabs.net>.
26951
26952 2010-01-07  Bruno Haible  <bruno@clisp.org>
26953
26954         dirent: Document the last fix.
26955         * doc/posix-headers/dirent.texi: Document the bug of missing 'ino_t'.
26956
26957 2010-01-07  Bruno Haible  <bruno@clisp.org>
26958
26959         stdio: Ensure <stdio.h> defines off_t, ssize_t, va_list.
26960         * lib/stdio.in.h: Include <sys/types.h> unconditionally.
26961         * tests/test-stdio.c: Verify that fpos_t, off_t, size_t, ssize_t,
26962         va_list are defined.
26963         * doc/posix-headers/stdio.texi: Document the bug of missing types.
26964         Reported by Eric Blake.
26965
26966 2010-01-07  Bruno Haible  <bruno@clisp.org>
26967
26968         xlist, xoset: Fix missing dependency bug, introduced on 2009-12-13.
26969         * modules/xlist (Depends-on): Add 'list',
26970         * modules/xoset (Depends-on): Add 'oset'.
26971         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
26972
26973 2010-01-07  Bruno Haible  <bruno@clisp.org>
26974
26975         * doc/posix-functions/strcasecmp.texi: Clarify the platforms.
26976         * doc/posix-functions/strncasecmp.texi: Likewise.
26977
26978 2010-01-07  Bruno Haible  <bruno@clisp.org>
26979
26980         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Simplify logic.
26981
26982 2010-01-07  John W. Eaton  <jwe@octave.org>
26983
26984         wctype: allow C++ use
26985         * lib/wctype.in.h: Add extern "C" block for C++.
26986
26987 2010-01-06  Eric Blake  <ebb9@byu.net>
26988
26989         maint.mk: detect incorrect GFDL usage
26990         * top/maint.mk (_GFDL_regexp, sc_GFDL_version): New rule.
26991
26992 2010-01-06  Jim Meyering  <meyering@redhat.com>
26993         and Eric Blake  <ebb9@byu.net>
26994
26995         maint.mk: ignore multi-line copyright in NEWS
26996         * top/maint.mk (NEWS_hash): Add immunity to multi-line copyright.
26997
26998 2010-01-06  Eric Blake  <ebb9@byu.net>
26999
27000         select: add missing dependency
27001         * modules/select-tests (Depends-on): Move sockets dependency...
27002         * modules/select (Depends-on): ...here.
27003         Reported by Ian Beckwith.
27004
27005         doc: regenerate INSTALL
27006         * doc/INSTALL: Reflect recent autoconf update.
27007         * doc/INSTALL.ISO: Likewise.
27008         * doc/INSTALL.UTF-8: Likewise.
27009
27010         pread: fix compilation on glibc
27011         * m4/pread.m4 (gl_FUNC_PREAD): Request all interfaces.
27012         Reported by Ralf Wildenhues.
27013
27014         dirent: fix test failure
27015         * lib/dirent.in.h (includes): Guarantee ino_t.
27016         Reported by Ralf Wildenhues.
27017
27018 2010-01-06  Petr Salinger  <Petr.Salinger@seznam.cz>  (tiny change)
27019
27020         linkat, renameat: avoid bad free
27021         * lib/at-func2.c (at_func2): Fix typo.
27022         Reported via Ian Beckwith, from http://bugs.debian.org/561117.
27023
27024 2010-01-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
27025
27026         cleanup after gl_FUNC_READLINK, for gl_FUNC_SYMLINK test
27027         * m4/readlink.m4 (gl_FUNC_READLINK): Remove conftest.lnk2,
27028         to avoid failure of symlink test later.
27029
27030 2010-01-06  Eric Blake  <ebb9@byu.net>
27031
27032         stdio, unistd: guarantee ssize_t
27033         * lib/unistd.in.h (includes): Ensure that types required by POSIX
27034         2008 are exposed when needed.
27035         * lib/stdio.in.h (includes): Likewise.
27036         Reported by Ralf Wildenhues.
27037
27038 2010-01-06  Paolo Bonzini  <bonzini@gnu.org>
27039
27040         nl_langinfo: do not call AC_CHECK_FUNC_ONCE inside if.
27041         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Do not call
27042         AC_CHECK_FUNC_ONCE inside if, do not adjust ac_cv_func_nl_langinfo.
27043
27044 2010-01-06  Jim Meyering  <meyering@redhat.com>
27045
27046         readtokens: this module *does* require xalloc.h
27047         It uses only functions that were omitted by the old syntax-check rule.
27048         * lib/readtokens.c: Include "xalloc.h" once again.
27049         * modules/readtokens (Depends-on): Add xalloc.
27050         This reverts part of 0e0f8f12ec241c0f1c1f21f960bb5cf908a0fa3c.
27051
27052 2010-01-05  Eric Blake  <ebb9@byu.net>
27053
27054         maint: support 'make announcement' from a VPATH build
27055         * top/maint.mk (announcement): Look for correct NEWS file.
27056
27057 2010-01-05  Aurelien Jarno  <aurelien@aurel32.net>  (tiny change)
27058
27059         utimens (fdutimens): ignore a negative FD, per contract
27060         * lib/utimens.c (fdutimens) [HAVE_FUTIMENS]: Call futimens only
27061         when we have a valid file descriptor.  Otherwise, using a brand
27062         new glibc (with just-patched futimens that now fails with EBADF)
27063         would cause this function to fail with ENOSYS.
27064         Reported by Guillaume Ayoub in http://bugs.debian.org/563726.
27065         See also http://bugzilla.redhat.com/552320.
27066
27067 2010-01-05  Eric Blake  <ebb9@byu.net>
27068
27069         strcase: document what it provides
27070         * doc/posix-functions/strcasecmp.texi (strcasecmp): Mention the
27071         gnulib module.
27072         * doc/posix-functions/strncasecmp.texi (strncasecmp): Likewise.
27073         Reported by Dilyan Palauzov <Dilyan.Palauzov@aegee.org>.
27074
27075 2010-01-05  Jim Meyering  <meyering@redhat.com>
27076
27077         maint: remove useless inclusions of "xalloc.h"
27078         * lib/getloadavg.c: Remove useless inclusion of "xalloc.h".
27079         * lib/readtokens.c: Likewise.
27080         * lib/same.c: Likewise.
27081         * modules/getloadavg (Depends-on): Remove xalloc.
27082         * modules/readtokens: Likewise.
27083         * modules/same: Likewise.
27084
27085         maint.mk: include 4 more function names in alloca.h-checking regexp
27086         * top/maint.mk (sc_prohibit_xalloc_without_use): Use more complete
27087         regexp.  Before, we would give a false-positive (saying alloca.h
27088         is included unnecessarily) when the only uses involved omitted symbols.
27089
27090         xalloc.h: use consistent formatting
27091         * lib/xalloc.h: Move declarations to start in the first column.
27092
27093 2010-01-05  Eric Blake  <ebb9@byu.net>
27094
27095         mkdir: avoid xalloc
27096         * lib/mkdir.c (includes): Drop unused header.
27097         Reported by John W. Eaton.
27098
27099 2010-01-04  Jim Meyering  <meyering@redhat.com>
27100
27101         nl_langinfo: avoid configure-time syntax error
27102         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): When we've already tested
27103         for nl_langinfo.h, AC_CHECK_FUNCS_ONCE([nl_langinfo]) expands to
27104         the empty string.  Don't let that provoke a shell syntax error.
27105
27106         regcomp, regexec, fnmatch: avoid array bounds read error
27107         * lib/regcomp.c (build_equiv_class): From glibc:
27108         Use only the low 24 bits of a findidx return value as an index
27109         into the weights array.  Patch by Ulrich Drepper:
27110         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commit;h=b7d1c5fa30
27111         * lib/regexec.c (check_node_accept_bytes): Likewise.
27112         * lib/fnmatch_loop.c (FCT): Likewise.
27113
27114         regcomp: skip collseq lookup when there are no rules
27115         * lib/regcomp.c (lookup_collation_sequence_value): From glibc:
27116         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commitdiff;h=a532a41df58
27117
27118         regcomp: recognize ill-formed { } expressions
27119         * lib/regcomp.c (parse_dup_op): From glibc:
27120         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commitdiff;h=a87cd2894cb
27121
27122         regcomp: fix typo in comment
27123         * lib/regcomp.c (duplicate_node_closure): Sync from glibc.
27124         s/satisfy/satisfies/.
27125
27126         regcomp: sync from glibc: remove dead store
27127         * lib/regcomp.c (duplicate_node_closure): Remove useless
27128         search_duplicated_node call and dead store.
27129
27130         regcomp: sync from glibc; always use nl_langinfo
27131         * lib/regcomp.c (init_dfa) [!LIBC]: Always use nl_langinfo (CODESET),
27132         now that gnulib provides it.  Recognize UTF8 as well as UTF-8.
27133         * modules/regex (Depends-on): Add nl_langinfo.
27134
27135 2010-01-04  Eric Blake  <ebb9@byu.net>
27136
27137         fdopendir: fix configure test
27138         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Check for existing file.
27139
27140 2010-01-01  Bruno Haible  <bruno@clisp.org>
27141
27142         wchar: Remove unused configure check.
27143         * m4/wchar.m4 (gl_WCHAR_H): Don't test whether <wchar.h> is standalone.
27144
27145 2010-01-01  Eric Blake  <ebb9@byu.net>
27146
27147         headers: make check of system header explicit
27148         * m4/netdb_h.m4 (gl_HEADER_NETDB): Don't exploit knowledge of
27149         gl_CHECK_NEXT_HEADER internals, but call AC_CHECK_HEADERS_ONCE
27150         ourselves.
27151         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
27152         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
27153         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Likewise.
27154         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise, for gt_INTTYPES_PRI
27155         internals.
27156         * m4/wchar.m4 (gl_WCHAR_H): Skip followup test if header is
27157         missing.
27158         Suggested by Bruno Haible.
27159
27160 2010-01-01  Jim Meyering  <meyering@redhat.com>
27161
27162         ChangeLog: tweak to eliminate unnecessary copyright line
27163         * ChangeLog: Remove a copyright line that was mistakenly updated
27164         by today's update-copyright run.  Reported by Eric Blake.
27165
27166         test-update-copyright: don't let envvar setting cause test failure
27167         * tests/test-update-copyright.sh: Set UPDATE_COPYRIGHT_MAX_LINE_LENGTH.
27168
27169 2010-01-01  Bruno Haible  <bruno@clisp.org>
27170
27171         localename: Avoid gcc warning.
27172         * lib/localename.c (gl_locale_name_thread_unsafe): Don't define this
27173         function if it is not used.
27174
27175 2010-01-01  Jim Meyering  <meyering@redhat.com>
27176
27177         update nearly all FSF copyright year lists to include 2010
27178         Use the same procedure as for 2009, outlined in
27179         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/20081
27180
27181         version-etc: set COPYRIGHT_YEAR to 2010
27182         * lib/version-etc.c (COPYRIGHT_YEAR): Manually update the enum.
27183
27184 2009-12-31  Eric Blake  <ebb9@byu.net>
27185
27186         doc: correct availability of cygwin 1.5.x getopt
27187         * doc/posix-functions/optarg.texi (optarg): Cygwin supplies getopt
27188         variables.
27189         * doc/posix-functions/opterr.texi (opterr): Likewise.
27190         * doc/posix-functions/optind.texi (optind): Likewise.
27191         * doc/posix-functions/optopt.texi (optopt): Likewise.
27192         * doc/posix-functions/tzname.texi (tzname): Likewise.
27193
27194         openat: update maintainer
27195         * modules/openat (Maintainer): Add myself.
27196
27197         utimens: avoid shadowing warning
27198         * lib/utimens.c (fdutimens, lutimens): Consolidate separate stat
27199         buffers into one, to avoid shadowing, as well as avoiding a
27200         redundant stat.
27201         Reported by Jim Meyering.
27202
27203         test-dup2: avoid compiler warning
27204         * tests/test-dup2.c (is_inheritable): Only define if used.
27205
27206 2010-01-01  Bruno Haible  <bruno@clisp.org>
27207
27208         vasnprintf: Avoid passing an 'rpl_mbstate_t *' to the system's wcrtomb.
27209         * lib/vasnprintf.c (VASNPRINTF): If GNULIB_defined_mbstate_t is
27210         defined, use wctomb instead of wcrtomb.
27211
27212 2010-01-01  Bruno Haible  <bruno@clisp.org>
27213
27214         iconv: Reject native Solaris iconv.
27215         * m4/iconv.m4 (AM_ICONV_LINK): Recognize native Solaris iconv() bug.
27216         * doc/posix-functions/iconv.texi: Document native Solaris iconv() bug.
27217
27218 2009-12-31  Bruno Haible  <bruno@clisp.org>
27219
27220         * tests/test-signal.c (main): Remove test of 'SIG'.
27221
27222 2009-12-31  Bruno Haible  <bruno@clisp.org>
27223
27224         spawn: Fix incomplete fix.
27225         * lib/spawn.in.h (posix_spawnattr_getflags, posix_spawnattr_setflags,
27226         posix_spawnattr_getpgroup, posix_spawnattr_setpgroup): Correct the link
27227         warnings for GNULIB_POSIXCHECK again.
27228         Reported by Eric Blake.
27229
27230 2009-12-31  Bruno Haible  <bruno@clisp.org>
27231
27232         Avoid namespace pollution on glibc systems.
27233         * lib/spawn.in.h: Don't include <sched.h>, <signal.h> on glibc systems.
27234         * lib/sys_times.in.h: Don't include <time.h> on glibc systems.
27235         * lib/wchar.in.h: Don't include <stddef.h>, <stdio.h>, <time.h> on
27236         glibc systems.
27237
27238 2009-12-31  Bruno Haible  <bruno@clisp.org>
27239
27240         * m4/wchar.m4 (gl_WCHAR_H): Remove gl_STDDEF_H invocation.
27241         (gl_REPLACE_WCHAR_H): Turn into a no-op.
27242         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Likewise.
27243         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H): Likewise.
27244         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H): Likewise.
27245         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H): Likewise.
27246         * m4/sys_ioctl_h.m4 (gl_REPLACE_SYS_IOCTL_H): Likewise.
27247
27248 2009-12-31  Bruno Haible  <bruno@clisp.org>
27249
27250         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Invoke
27251         gl_CHECK_NEXT_HEADERS before testing ac_cv_header_sys_select_h, not
27252         afterwards.
27253
27254 2009-12-31  Bruno Haible  <bruno@clisp.org>
27255
27256         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H_DEFAULTS): Don't set
27257         SYS_UTSNAME_H.
27258
27259 2009-12-31  Bruno Haible  <bruno@clisp.org>
27260
27261         spawn: Fix misapplied patch.
27262         * lib/spawn.in.h (posix_spawnattr_getflags, posix_spawnattr_setflags,
27263         posix_spawnattr_getpgroup, posix_spawnattr_setpgroup): Correct the link
27264         warnings for GNULIB_POSIXCHECK.
27265
27266 2009-12-31  Bruno Haible  <bruno@clisp.org>
27267
27268         times: Update after sys_times changed.
27269         * m4/times.m4: New file, extracted from modules/times. Set HAVE_TIMES.
27270         * modules/times (Files): Add it.
27271         (configure.ac): Invoke gl_FUNC_TIMES.
27272
27273 2009-12-31  Bruno Haible  <bruno@clisp.org>
27274
27275         Use AC_C_INLINE where necessary.
27276         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Require AC_C_INLINE.
27277         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
27278         * m4/fts.m4 (gl_FUNC_FTS_CORE): Likewise.
27279         * m4/mbchar.m4 (gl_MBCHAR): Likewise.
27280         * m4/mbfile.m4 (gl_MBFILE): Likewise.
27281         * m4/mbiter.m4 (gl_MBITER): Likewise.
27282         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
27283         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
27284         * m4/wait-process.m4 (gl_WAIT_PROCESS): Likewise.
27285         * modules/u64 (configure.ac): Likewise.
27286
27287 2009-12-31  Bruno Haible  <bruno@clisp.org>
27288
27289         Use AC_C_INLINE instead of module 'inline' where possible.
27290         * modules/inline (Description): Clarify purpose.
27291         * m4/count-one-bits.m4 (gl_COUNT_ONE_BITS): Require AC_C_INLINE.
27292         * modules/count-one-bits (Depends-on): Remove inline.
27293         * m4/openat.m4 (gl_PREREQ_OPENAT): Require AC_C_INLINE.
27294         * modules/openat (Depends-on): Remove inline.
27295         * modules/fdutimensat (Depends-on, configure.ac): Require AC_C_INLINE
27296         instead of depending on module 'inline'.
27297         * modules/filevercmp (Depends-on, configure.ac): Likewise.
27298         * modules/unicase/cased (Depends-on, configure.ac): Likewise.
27299         * modules/unicase/ignorable (Depends-on, configure.ac): Likewise.
27300         * modules/unictype/category-of (Depends-on, configure.ac): Likewise.
27301         * modules/unictype/category-test (Depends-on, configure.ac): Likewise.
27302         * modules/unictype/ctype-alnum (Depends-on, configure.ac): Likewise.
27303         * modules/unictype/ctype-alpha (Depends-on, configure.ac): Likewise.
27304         * modules/unictype/ctype-blank (Depends-on, configure.ac): Likewise.
27305         * modules/unictype/ctype-cntrl (Depends-on, configure.ac): Likewise.
27306         * modules/unictype/ctype-digit (Depends-on, configure.ac): Likewise.
27307         * modules/unictype/ctype-graph (Depends-on, configure.ac): Likewise.
27308         * modules/unictype/ctype-lower (Depends-on, configure.ac): Likewise.
27309         * modules/unictype/ctype-print (Depends-on, configure.ac): Likewise.
27310         * modules/unictype/ctype-punct (Depends-on, configure.ac): Likewise.
27311         * modules/unictype/ctype-space (Depends-on, configure.ac): Likewise.
27312         * modules/unictype/ctype-upper (Depends-on, configure.ac): Likewise.
27313         * modules/unictype/ctype-xdigit (Depends-on, configure.ac): Likewise.
27314         * modules/unictype/property-alphabetic (Depends-on, configure.ac):
27315         Likewise.
27316         * modules/unictype/property-ascii-hex-digit (Depends-on,
27317         configure.ac): Likewise.
27318         * modules/unictype/property-bidi-arabic-digit (Depends-on,
27319         configure.ac): Likewise.
27320         * modules/unictype/property-bidi-arabic-right-to-left (Depends-on,
27321         configure.ac): Likewise.
27322         * modules/unictype/property-bidi-block-separator (Depends-on,
27323         configure.ac): Likewise.
27324         * modules/unictype/property-bidi-boundary-neutral (Depends-on,
27325         configure.ac): Likewise.
27326         * modules/unictype/property-bidi-common-separator (Depends-on,
27327         configure.ac): Likewise.
27328         * modules/unictype/property-bidi-control (Depends-on, configure.ac):
27329         Likewise.
27330         * modules/unictype/property-bidi-embedding-or-override (Depends-on,
27331         configure.ac): Likewise.
27332         * modules/unictype/property-bidi-eur-num-separator (Depends-on,
27333         configure.ac): Likewise.
27334         * modules/unictype/property-bidi-eur-num-terminator (Depends-on,
27335         configure.ac): Likewise.
27336         * modules/unictype/property-bidi-european-digit (Depends-on,
27337         configure.ac): Likewise.
27338         * modules/unictype/property-bidi-hebrew-right-to-left (Depends-on,
27339         configure.ac): Likewise.
27340         * modules/unictype/property-bidi-left-to-right (Depends-on,
27341         configure.ac): Likewise.
27342         * modules/unictype/property-bidi-non-spacing-mark (Depends-on,
27343         configure.ac): Likewise.
27344         * modules/unictype/property-bidi-other-neutral (Depends-on,
27345         configure.ac): Likewise.
27346         * modules/unictype/property-bidi-pdf (Depends-on, configure.ac):
27347         Likewise.
27348         * modules/unictype/property-bidi-segment-separator (Depends-on,
27349         configure.ac): Likewise.
27350         * modules/unictype/property-bidi-whitespace (Depends-on,
27351         configure.ac): Likewise.
27352         * modules/unictype/property-combining (Depends-on, configure.ac):
27353         Likewise.
27354         * modules/unictype/property-composite (Depends-on, configure.ac):
27355         Likewise.
27356         * modules/unictype/property-currency-symbol (Depends-on,
27357         configure.ac): Likewise.
27358         * modules/unictype/property-dash (Depends-on, configure.ac): Likewise.
27359         * modules/unictype/property-decimal-digit (Depends-on, configure.ac):
27360         Likewise.
27361         * modules/unictype/property-default-ignorable-code-point (Depends-on,
27362         configure.ac): Likewise.
27363         * modules/unictype/property-deprecated (Depends-on, configure.ac):
27364         Likewise.
27365         * modules/unictype/property-diacritic (Depends-on, configure.ac):
27366         Likewise.
27367         * modules/unictype/property-extender (Depends-on, configure.ac):
27368         Likewise.
27369         * modules/unictype/property-format-control (Depends-on, configure.ac):
27370         Likewise.
27371         * modules/unictype/property-grapheme-base (Depends-on, configure.ac):
27372         Likewise.
27373         * modules/unictype/property-grapheme-extend (Depends-on, configure.ac):
27374         Likewise.
27375         * modules/unictype/property-grapheme-link (Depends-on, configure.ac):
27376         Likewise.
27377         * modules/unictype/property-hex-digit (Depends-on, configure.ac):
27378         Likewise.
27379         * modules/unictype/property-hyphen (Depends-on, configure.ac):
27380         Likewise.
27381         * modules/unictype/property-id-continue (Depends-on, configure.ac):
27382         Likewise.
27383         * modules/unictype/property-id-start (Depends-on, configure.ac):
27384         Likewise.
27385         * modules/unictype/property-ideographic (Depends-on, configure.ac):
27386         Likewise.
27387         * modules/unictype/property-ids-binary-operator (Depends-on,
27388         configure.ac): Likewise.
27389         * modules/unictype/property-ids-trinary-operator (Depends-on,
27390         configure.ac): Likewise.
27391         * modules/unictype/property-ignorable-control (Depends-on,
27392         configure.ac): Likewise.
27393         * modules/unictype/property-iso-control (Depends-on, configure.ac):
27394         Likewise.
27395         * modules/unictype/property-join-control (Depends-on, configure.ac):
27396         Likewise.
27397         * modules/unictype/property-left-of-pair (Depends-on, configure.ac):
27398         Likewise.
27399         * modules/unictype/property-line-separator (Depends-on, configure.ac):
27400         Likewise.
27401         * modules/unictype/property-logical-order-exception (Depends-on,
27402         configure.ac): Likewise.
27403         * modules/unictype/property-lowercase (Depends-on, configure.ac):
27404         Likewise.
27405         * modules/unictype/property-math (Depends-on, configure.ac): Likewise.
27406         * modules/unictype/property-non-break (Depends-on, configure.ac):
27407         Likewise.
27408         * modules/unictype/property-not-a-character (Depends-on, configure.ac):
27409         Likewise.
27410         * modules/unictype/property-numeric (Depends-on, configure.ac):
27411         Likewise.
27412         * modules/unictype/property-other-alphabetic (Depends-on,
27413         configure.ac): Likewise.
27414         * modules/unictype/property-other-default-ignorable-code-point
27415         (Depends-on, configure.ac): Likewise.
27416         * modules/unictype/property-other-grapheme-extend (Depends-on,
27417         configure.ac): Likewise.
27418         * modules/unictype/property-other-id-continue (Depends-on,
27419         configure.ac): Likewise.
27420         * modules/unictype/property-other-id-start (Depends-on, configure.ac):
27421         Likewise.
27422         * modules/unictype/property-other-lowercase (Depends-on, configure.ac):
27423         Likewise.
27424         * modules/unictype/property-other-math (Depends-on, configure.ac):
27425         Likewise.
27426         * modules/unictype/property-other-uppercase (Depends-on, configure.ac):
27427         Likewise.
27428         * modules/unictype/property-paired-punctuation (Depends-on,
27429         configure.ac): Likewise.
27430         * modules/unictype/property-paragraph-separator (Depends-on,
27431         configure.ac): Likewise.
27432         * modules/unictype/property-pattern-syntax (Depends-on, configure.ac):
27433         Likewise.
27434         * modules/unictype/property-pattern-white-space (Depends-on,
27435         configure.ac): Likewise.
27436         * modules/unictype/property-private-use (Depends-on, configure.ac):
27437         Likewise.
27438         * modules/unictype/property-punctuation (Depends-on, configure.ac):
27439         Likewise.
27440         * modules/unictype/property-quotation-mark (Depends-on, configure.ac):
27441         Likewise.
27442         * modules/unictype/property-radical (Depends-on, configure.ac):
27443         Likewise.
27444         * modules/unictype/property-sentence-terminal (Depends-on,
27445         configure.ac): Likewise.
27446         * modules/unictype/property-soft-dotted (Depends-on, configure.ac):
27447         Likewise.
27448         * modules/unictype/property-space (Depends-on, configure.ac): Likewise.
27449         * modules/unictype/property-terminal-punctuation (Depends-on,
27450         configure.ac): Likewise.
27451         * modules/unictype/property-titlecase (Depends-on, configure.ac):
27452         Likewise.
27453         * modules/unictype/property-unassigned-code-value (Depends-on,
27454         configure.ac): Likewise.
27455         * modules/unictype/property-unified-ideograph (Depends-on,
27456         configure.ac): Likewise.
27457         * modules/unictype/property-uppercase (Depends-on, configure.ac):
27458         Likewise.
27459         * modules/unictype/property-variation-selector (Depends-on,
27460         configure.ac): Likewise.
27461         * modules/unictype/property-white-space (Depends-on, configure.ac):
27462         Likewise.
27463         * modules/unictype/property-xid-continue (Depends-on, configure.ac):
27464         Likewise.
27465         * modules/unictype/property-xid-start (Depends-on, configure.ac):
27466         Likewise.
27467         * modules/unictype/property-zero-width (Depends-on, configure.ac):
27468         Likewise.
27469         * modules/unictype/syntax-c-ident (Depends-on, configure.ac): Likewise.
27470         * modules/unictype/syntax-java-ident (Depends-on, configure.ac):
27471         Likewise.
27472
27473 2009-12-31  Bruno Haible  <bruno@clisp.org>
27474
27475         Remove unnecessary AC_C_INLINE invocation.
27476         * m4/popen.m4 (gl_PREREQ_POPEN): Don't invoke AC_C_INLINE. Not needed
27477         since 2009-08-21.
27478
27479 2009-12-31  Jim Meyering  <meyering@redhat.com>
27480
27481         maint.mk: don't require explicit gpg_key_ID in cfg.mk
27482         * top/maint.mk (gpg_key_ID): Derive key ID from signed release tag.
27483         With this change, we can all remove the gpg_key_ID = ... definition
27484         from our respective cfg.mk files.
27485
27486         maint.mk: create announcement template in ~/, not in /tmp
27487         * top/maint.mk (emit_upload_commands): Adjust.
27488         (release-prep): Emit into ~/announce-..., not /tmp/announce-...
27489         Remove temporary file, .ci-msg.
27490
27491 2009-12-31  Eric Blake  <ebb9@byu.net>
27492
27493         link-warning: always build headers with link warnings
27494         * modules/arpa_inet (Makefile.am): Always build replacement
27495         header.
27496         * modules/ctype (Makefile.am): Likewise.
27497         * modules/dirent (Makefile.am): Likewise.
27498         * modules/inttypes (Makefile.am): Likewise.
27499         * modules/langinfo (Makefile.am): Likewise.
27500         * modules/locale (Makefile.am): Likewise.
27501         * modules/spawn (Makefile.am): Likewise.
27502         * modules/sys_file (Makefile.am): Likewise.
27503         * modules/sys_ioctl (Makefile.am): Likewise.
27504         * modules/sys_select (Makefile.am): Likewise.
27505         * modules/sys_socket (Makefile.am): Likewise.
27506         * modules/sys_times (Makefile.am): Likewise.
27507         * modules/sys_utsname (Makefile.am): Likewise.
27508         * modules/sys_wait (Makefile.am): Likewise.
27509         * modules/wchar (Makefile.am): Likewise.
27510         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET)
27511         (gl_ARPA_INET_H_DEFAULTS): Drop unneeded variable.
27512         * m4/ctype.m4 (gl_CTYPE_H_DEFAULTS): Likewise.
27513         * m4/isblank.m4 (gl_FUNC_ISBLANK): Likewise.
27514         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H, gl_DIRENT_H_DEFAULTS):
27515         Likewise.
27516         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
27517         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
27518         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H, gl_LOCALE_H_DEFAULTS):
27519         Likewise.
27520         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H, gl_SPAWN_H_DEFAULTS):
27521         Likewise.
27522         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Likewise.
27523         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H, gl_REPLACE_SYS_IOCTL_H)
27524         (gl_SYS_IOCTL_H_DEFAULTS): Likewise.
27525         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
27526         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
27527         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H)
27528         (gl_SYS_UTSNAME_H_DEFAULTS): Likewise.
27529         * m4/wchar.m4 (gl_WCHAR_H, gl_REPLACE_WCHAR_H)
27530         (gl_WCHAR_H_DEFAULTS): Likewise.
27531
27532 2009-12-31  Eric Blake  <ebb9@byu.net>
27533
27534         signal, spawn: use link warnings
27535         * lib/signal.in.h (sigset_t): Make unconditional.
27536         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset)
27537         (sigpending, sigprocmask, sigaction): Add link warnings.
27538         * lib/spawn.in.h (posix_spawn, posix_spawnp, posix_spawnattr_init)
27539         (posix_spawnattr_destroy, posix_spawnattr_getsigdefault)
27540         (posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask)
27541         (posix_spawnattr_setsigmask, posix_spawnattr_getflags)
27542         (posix_spawnattr_setflags, posix_spawnattr_getpgroup)
27543         (posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy)
27544         (posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam)
27545         (posix_spawnattr_setschedparam, posix_spawn_file_actions_init)
27546         (posix_spawn_file_actions_destroy)
27547         (posix_spawn_file_actions_addopen)
27548         (posix_spawn_file_actions_addclose)
27549         (posix_spawn_file_actions_adddup2): Likewise.
27550         * m4/signal_h.m4 (gl_SIGNAL_H): Guarantee uid_t.
27551         * tests/test-signal.c (main): Enhance test.
27552
27553         spawn: improve wrapper support
27554         * m4/spawn_h.m4 (gl_SPAWN_H): Check for type existence.
27555         (gl_SPAWN_H_DEFAULTS): New defaults.
27556         * modules/spawn (Makefile.am): Substitute them.
27557         * lib/spawn.in.h: (posix_spawnattr_t, posix_spawn_file_actions_t):
27558         Only declare if missing or broken.
27559
27560         sys_times, sys_utsname: use include_next
27561         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Support wrapping an existing
27562         header.
27563         (gl_SYS_TIMES_H_DEFAULTS): Add another variable.
27564         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H)
27565         (gl_SYS_UTSNAME_H_DEFAULTS): Likewise.
27566         * modules/sys_times (Depends-on): Add include_next.
27567         (Makefile.am): Substitute additional values.
27568         * modules/sys_utsname (Depends-on, Makefile.am): Likewise.
27569         * lib/sys_times.in.h (includes): Include native header, if
27570         available.
27571         * lib/sys_utsname.in.h (includes): Likewise.
27572         * tests/test-sys_times.c (main): Enhance test.
27573
27574         fdutimensat: revert prior patch
27575         * modules/fdutimensat (Depends-on): Re-add inline; it is needed by
27576         utimens.h.
27577         Reported by Bruno Haible.
27578
27579 2009-12-30  Eric Blake  <ebb9@byu.net>
27580
27581         sys_wait: drop link-warning dependency
27582         * modules/sys_wait (Depends-on, Makefile.am): Drop unneeded
27583         link-warning efforts.
27584         * lib/sys_wait.in.h: Likewise.
27585
27586         fdutimensat: remove bogus dependency
27587         * modules/fdutimensat (Depends-on): Drop inline.
27588
27589         unistd: fix typo
27590         * lib/unistd.in.h (linkat) [GNULIB_POSIXCHECK]: Fix typo.
27591
27592 2009-12-30  Bruno Haible  <bruno@clisp.org>
27593
27594         Fix compilation error with Solaris cc.
27595         * lib/unicase/u8-is-invariant.c: Include <stdbool.h>.
27596         * lib/unicase/u16-is-invariant.c: Likewise.
27597         * lib/unicase/u32-is-invariant.c: Likewise.
27598         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
27599
27600 2009-12-30  Bruno Haible  <bruno@clisp.org>
27601
27602         Fix test crash.
27603         * tests/test-localename.c (test_locale_name_thread): Skip unavailable
27604         locales.
27605         Reported by Simon Josefsson <simon@josefsson.org>.
27606
27607 2009-12-30  Bruno Haible  <bruno@clisp.org>
27608
27609         Fix compilation error on most platforms.
27610         * tests/test-localename.c (categories): Define only if HAVE_NEWLOCALE.
27611         Reported by Simon Josefsson <simon@josefsson.org>
27612         and Nelson H. F. Beebe <beebe@math.utah.edu>.
27613
27614 2009-12-30  Eric Blake  <ebb9@byu.net>
27615
27616         futimens, utimensat: work around ntfs-3g bug
27617         * lib/utimensat.c (rpl_utimensat): Drop attempts to cache whether
27618         a ctime bug is present, and expand workaround to cover ntfs-3g.
27619         * lib/utimens.c (fdutimens, lutimens): Likewise.
27620         (utimensat_ctime_really, detect_ctime_bug): Drop cache mechanism.
27621         (validate_timespec): Adjust return value.
27622         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Update comment.
27623         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
27624         Reported by ctrn3e8 <ctrn3e8@gmail.com>.
27625
27626 2009-12-29  Eric Blake  <ebb9@byu.net>
27627
27628         link-warning: make usage consistent
27629         * modules/ctype (Depends-on): Add link-warning.
27630         (Makefile.am): Update rules accordingly.
27631         * modules/langinfo (Depends-on, Makefile.am): Likewise.
27632         * modules/locale (Depends-on, Makefile.am): Likewise.
27633         * modules/sys_file (Makefile.am): Likewise.
27634         * modules/getopt-posix (Makefile.am): Delete unused link warning
27635         efforts.
27636         * lib/ctype.in.h (GL_LINK_WARNING): Ensure definition before use.
27637         * lib/langinfo.in.h (GL_LINK_WARNING): Likewise.
27638         * lib/locale.in.h (GL_LINK_WARNING): Likewise.
27639         * lib/sys_file.in.h (GL_LINK_WARNING): Likewise.
27640
27641         stdio: remove unused variables
27642         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Remove unused variables.
27643         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Likewise.
27644         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
27645
27646         tests: test more substitute headers
27647         * modules/ctype-tests: New file.
27648         * modules/dirent-tests: Likewise.
27649         * modules/spawn-tests: Likewise.
27650         * modules/sys_file-tests: Likewise.
27651         * modules/sys_ioctl-tests: Likewise.
27652         * modules/sys_wait-tests: Likewise.
27653         * tests/test-ctype.c: Likewise.
27654         * tests/test-dirent.c: Likewise.
27655         * tests/test-spawn.c: Likewise.
27656         * tests/test-sys_file.c: Likewise.
27657         * tests/test-sys_ioctl.c: Likewise.
27658         * tests/test-sys_wait.c: Likewise.
27659         * m4/spawn_h.m4 (gl_SPAWN_H): Replace header if it is missing.
27660         * lib/sys_file.in.h (LOCK_SH, LOCK_EX, LOCK_UN, LOCK_NB): Provide
27661         whether or not flock is in use.
27662
27663         tests: remove License section from module
27664         * modules/arpa_inet-tests: Remove unneeded section.
27665         * modules/byteswap-tests: Likewise.
27666         * modules/ceilf-tests: Likewise.
27667         * modules/ceill-tests: Likewise.
27668         * modules/crypto/des-tests: Likewise.
27669         * modules/crypto/gc-arcfour-tests: Likewise.
27670         * modules/crypto/gc-arctwo-tests: Likewise.
27671         * modules/crypto/gc-des-tests: Likewise.
27672         * modules/crypto/gc-hmac-md5-tests: Likewise.
27673         * modules/crypto/gc-hmac-sha1-tests: Likewise.
27674         * modules/crypto/gc-md2-tests: Likewise.
27675         * modules/crypto/gc-md4-tests: Likewise.
27676         * modules/crypto/gc-md5-tests: Likewise.
27677         * modules/crypto/gc-pbkdf2-sha1-tests: Likewise.
27678         * modules/crypto/gc-rijndael-tests: Likewise.
27679         * modules/crypto/gc-sha1-tests: Likewise.
27680         * modules/crypto/gc-tests: Likewise.
27681         * modules/crypto/md2-tests: Likewise.
27682         * modules/crypto/md4-tests: Likewise.
27683         * modules/fcntl-h-tests: Likewise.
27684         * modules/floorf-tests: Likewise.
27685         * modules/floorl-tests: Likewise.
27686         * modules/frexp-nolibm-tests: Likewise.
27687         * modules/frexp-tests: Likewise.
27688         * modules/frexpl-nolibm-tests: Likewise.
27689         * modules/frexpl-tests: Likewise.
27690         * modules/getaddrinfo-tests: Likewise.
27691         * modules/inttypes-tests: Likewise.
27692         * modules/isfinite-tests: Likewise.
27693         * modules/isinf-tests: Likewise.
27694         * modules/ldexpl-tests: Likewise.
27695         * modules/locale-tests: Likewise.
27696         * modules/math-tests: Likewise.
27697         * modules/netdb-tests: Likewise.
27698         * modules/netinet_in-tests: Likewise.
27699         * modules/printf-frexp-tests: Likewise.
27700         * modules/printf-frexpl-tests: Likewise.
27701         * modules/priv-set-tests: Likewise.
27702         * modules/random_r-tests: Likewise.
27703         * modules/round-tests: Likewise.
27704         * modules/roundf-tests: Likewise.
27705         * modules/roundl-tests: Likewise.
27706         * modules/search-tests: Likewise.
27707         * modules/select-tests: Likewise.
27708         * modules/signal-tests: Likewise.
27709         * modules/stdbool-tests: Likewise.
27710         * modules/stddef-tests: Likewise.
27711         * modules/stdint-tests: Likewise.
27712         * modules/stdio-tests: Likewise.
27713         * modules/stdlib-tests: Likewise.
27714         * modules/string-tests: Likewise.
27715         * modules/strings-tests: Likewise.
27716         * modules/sys_select-tests: Likewise.
27717         * modules/sys_socket-tests: Likewise.
27718         * modules/sys_stat-tests: Likewise.
27719         * modules/sys_time-tests: Likewise.
27720         * modules/sys_utsname-tests: Likewise.
27721         * modules/sysexits-tests: Likewise.
27722         * modules/time-tests: Likewise.
27723         * modules/trunc-tests: Likewise.
27724         * modules/truncf-tests: Likewise.
27725         * modules/truncl-tests: Likewise.
27726         * modules/tsearch-tests: Likewise.
27727         * modules/unistd-tests: Likewise.
27728         * modules/wchar-tests: Likewise.
27729         * modules/wctype-tests: Likewise.
27730
27731         tests: fix license on several tests
27732         * tests/test-des.c: Update to GPLv3+.
27733         * tests/test-flock.c: Likewise.
27734         * tests/test-fsync.c: Likewise.
27735         * tests/test-futimens.h: Likewise.
27736         * tests/test-gc-arcfour.c: Likewise.
27737         * tests/test-gc-arctwo.c: Likewise.
27738         * tests/test-gc-des.c: Likewise.
27739         * tests/test-gc-hmac-md5.c: Likewise.
27740         * tests/test-gc-hmac-sha1.c: Likewise.
27741         * tests/test-gc-md2.c: Likewise.
27742         * tests/test-gc-md4.c: Likewise.
27743         * tests/test-gc-md5.c: Likewise.
27744         * tests/test-gc-pbkdf2-sha1.c: Likewise.
27745         * tests/test-gc-rijndael.c: Likewise.
27746         * tests/test-gc-sha1.c: Likewise.
27747         * tests/test-gc.c: Likewise.
27748         * tests/test-getcwd.c: Likewise.
27749         * tests/test-link.c: Likewise.
27750         * tests/test-link.h: Likewise.
27751         * tests/test-lutimens.h: Likewise.
27752         * tests/test-md2.c: Likewise.
27753         * tests/test-md4.c: Likewise.
27754         * tests/test-mkdir.h: Likewise.
27755         * tests/test-rename.c: Likewise.
27756         * tests/test-rename.h: Likewise.
27757         * tests/test-safe-alloc.c: Likewise.
27758         * tests/test-utimens-common.h: Likewise.
27759         * tests/test-utimens.h: Likewise.
27760
27761         maint: sync license texts
27762         * config/srclist.txt: Add gpl-1.3.texi, lgpl-1.3.texi.
27763         * doc/gpl-3.0.texi: Revert copyright year update.
27764         * doc/lgpl-3.0.texi: Likewise.
27765
27766 2009-12-29  Jim Meyering  <meyering@redhat.com>
27767
27768         update nearly all FSF copyright year lists to include 2009
27769         The files named by the following are exempted:
27770             grep -v '^#' config/srclist.txt|grep -v '^$' | while read src dst; do
27771               test -f "$dst" && { echo "$dst"; continue; }
27772               test -d "$dst" || continue
27773               echo "$dst"/$(basename "$src")
27774             done > exempt
27775             git ls-files tests/unictype >> exempt
27776         In the remaining files, convert to all-interval notation if
27777         - there is already at least one year interval like 2000-2003
27778         - the file is maintained by me
27779         - the file is in lib/uni*/, where that style already prevails
27780         Otherwise, use update-copyright's default.
27781
27782 2009-12-29  Simon Josefsson  <simon@josefsson.org>
27783         and Eric Blake  <ebb9@byu.net>
27784
27785         tests: don't require debug system() to pass
27786         * tests/test-lstat.h (test_lstat_func): Move debug cleanup...
27787         * tests/test-rmdir.h (test_rmdir_func): Likewise.
27788         * tests/test-unlink.h (test_unlink_func): Likewise.
27789         * tests/test-fstatat.c (main): ...into callers.
27790         * tests/test-lstat.c (main): Likewise.
27791         * tests/test-rmdir.c (main): Likewise.
27792         * tests/test-unlink.c (main): Likewise.
27793         * tests/test-unlinkat.c (main): Likewise.
27794         * tests/test-areadlink-with-size.c (main): Don't require a
27795         debug-only system call to pass, aiding cross-testing to mingw.
27796         * tests/test-areadlink.c (main): Likewise.
27797         * tests/test-areadlinkat-with-size.c (main): Likewise.
27798         * tests/test-areadlinkat.c (main): Likewise.
27799         * tests/test-canonicalize-lgpl.c (main): Likewise.
27800         * tests/test-canonicalize.c (main): Likewise.
27801         * tests/test-chown.c (main): Likewise.
27802         * tests/test-fchownat.c (main): Likewise.
27803         * tests/test-lchown.c (main): Likewise.
27804         * tests/test-fdutimensat.c (main): Likewise.
27805         * tests/test-futimens.c (main): Likewise.
27806         * tests/test-link.c (main): Likewise.
27807         * tests/test-linkat.c (main): Likewise.
27808         * tests/test-mkdir.c (main): Likewise.
27809         * tests/test-mkdirat.c (main): Likewise.
27810         * tests/test-mkfifo.c (main): Likewise.
27811         * tests/test-mkfifoat.c (main): Likewise.
27812         * tests/test-mknod.c (main): Likewise.
27813         * tests/test-readlink.c (main): Likewise.
27814         * tests/test-remove.c (main): Likewise.
27815         * tests/test-rename.c (main): Likewise.
27816         * tests/test-renameat.c (main): Likewise.
27817         * tests/test-symlink.c (main): Likewise.
27818         * tests/test-symlinkat.c (main): Likewise.
27819         * tests/test-utimens.c (main): Likewise.
27820         * tests/test-utimensat.c (main): Likewise.
27821
27822 2009-12-29  Simon Josefsson  <simon@josefsson.org>
27823
27824         * modules/selinux-h (selinux/selinux.h, selinux/context.h): Depend
27825         on $(UNUSED_PARAMETER_H) to avoid build failure.
27826
27827 2009-12-28  Jim Meyering  <meyering@redhat.com>
27828
27829         update-copyright: you may specify a max. line length other than 72
27830         * build-aux/update-copyright: Honor $UPDATE_COPYRIGHT_MAX_LINE_LENGTH.
27831
27832         maint: use consistent FSF copyright line syntax
27833         * lib/posixtm.c: Add missing comma in FSF copyright line.
27834         * lib/posixtm.h: Likewise.
27835         * lib/getugroups.c: Add missing ", Inc.".
27836
27837         pmccabe2html: emit consistent FSF copyright; remove trailing blanks
27838         * build-aux/pmccabe2html: Insert comma before "Inc." in emitted
27839         FSF copyright line.  Remove trailing blanks.
27840
27841 2009-12-28  Eric Blake  <ebb9@byu.net>
27842
27843         test-dup2: reduce dependencies
27844         * modules/cloexec (Configure.ac): Set witness.
27845         * modules/dup2-tests (Depends-on): Drop cloexec.
27846         * tests/test-dup2.c (main): Skip portion of test if cloexec module
27847         not present.
27848         Suggested by Bruno Haible.
27849
27850 2009-12-26  Bruno Haible  <bruno@clisp.org>
27851
27852         Remove an unneeded dependency.
27853         * modules/fseterr (Depends-on): Remove dup2.
27854
27855 2009-12-26  Eric Blake  <ebb9@byu.net>
27856
27857         tests: use macros.h in more places
27858         * tests/macros.h (ASSERT): Depend on ASSERT_STREAM.
27859         (ASSERT_STREAM): Provide default of stderr.
27860         * tests/test-dirent-safer.c: Include macros.h, using alternate
27861         stream for assertions.
27862         * tests/test-dup-safer.c: Likewise.
27863         * tests/test-freopen-safer.c: Likewise.
27864         * tests/test-getopt.c: Likewise.
27865         * tests/test-openat-safer.c: Likewise.
27866         * tests/test-pipe.c: Likewise.
27867         * tests/test-popen-safer.c: Likewise.
27868         * modules/dirent-safer-tests (Files): Include macros.h.
27869         * modules/unistd-safer-tests (Files): Likewise.
27870         * modules/freopen-safer-tests (Files): Likewise.
27871         * modules/getopt-posix-tests (Files): Likewise.
27872         * modules/openat-safer-tests (Files): Likewise.
27873         * modules/pipe-tests (Files): Likewise.
27874
27875 2009-12-26  Bruno Haible  <bruno@clisp.org>
27876
27877         javacomp: Portability fix.
27878         * m4/javacomp.m4 (gt_JAVACOMP): Fix creation of conftestver.class so
27879         that it also works on Solaris.
27880
27881 2009-12-26  Bruno Haible  <bruno@clisp.org>
27882
27883         localename: Fix storage allocation of gl_locale_name_thread's result.
27884         * lib/localename.c (SIZE_BITS, string_hash, struct hash_node,
27885         HASH_TABLE_SIZE, struniq_hash_table, struniq_lock, struniq): Define on
27886         all platforms that have 'uselocale'.
27887         (gl_locale_name_thread_unsafe): New function, extracted from
27888         gl_locale_name_thread.
27889         (gl_locale_name_thread): Call struniq on all platforms that have
27890         'uselocale'.
27891         * tests/test-localename.c (test_locale_name_thread): Check that the
27892         resulting strings are permanently allocated.
27893         * modules/localename-tests (Depends-on): Add strdup.
27894
27895 2009-12-26  Bruno Haible  <bruno@clisp.org>
27896
27897         * tests/test-localename.c (categories): Fill in the strings.
27898
27899 2009-12-26  Jim Meyering  <meyering@redhat.com>
27900
27901         isdir: complete the removal of m4/isdir.m4
27902         * modules/isdir (configure.ac): Remove reference to gl_ISDIR.
27903
27904         isdir: clean up, since at least grep still uses it
27905         * lib/isdir.c: Include "isdir.h".
27906         (S_ISDIR): Remove now-unneeded definition.
27907         * modules/isdir (Files): Add lib/isdir.h.
27908         * lib/isdir.h: New file, with declaration.
27909         * m4/isdir.m4: Remove file -- unneeded.
27910
27911 2009-12-25  Bruno Haible  <bruno@clisp.org>
27912
27913         selinux-h: Make generated .h files standalone.
27914         * lib/se-context.in.h: Arrange to include _GL_UNUSED_PARAMETER
27915         definition. Use _GL_UNUSED_PARAMETER instead of _GL_UNUSED.
27916         * lib/se-selinux.in.h: Likewise.
27917         * modules/selinux-h (Depends-on): Add unused-parameter.
27918         (Makefile.am): Insert definition of _GL_UNUSED_PARAMETER into
27919         selinux/selinux.h and selinux/context.h.
27920         Suggested by Eric Blake.
27921
27922 2009-12-25  Bruno Haible  <bruno@clisp.org>
27923
27924         Move gl_FCNTL_O_FLAGS to a separate .m4 file.
27925         * m4/fcntl-o.m4: New file, extracted from m4/fcntl_h.m4.
27926         * m4/fcntl_h.m4 (gl_FCNTL_O_FLAGS): Remove macro.
27927         * modules/fcntl-h (Files): Add m4/fcntl-o.m4.
27928         * modules/localcharset (Files): Likewise. Remove m4/fcntl_h.m4.
27929
27930 2009-12-24  Bruno Haible  <bruno@clisp.org>
27931
27932         openat: Fix warning.
27933         * lib/openat-proc.c: Include <unistd.h>.
27934
27935 2009-12-24  Bruno Haible  <bruno@clisp.org>
27936
27937         New module 'unused-parameter'.
27938         * build-aux/unused-parameter.h: New file, extracted from earlier
27939         gnulib-common.m4.
27940         * modules/unused-parameter: New file.
27941         * lib/unistr.h: Include unused-parameter.h.
27942         (u32_mbtouc_unsafe, u32_mbtouc): Use _GL_UNUSED_PARAMETER instead of
27943         _GL_UNUSED.
27944         * modules/unistr/base (Depends-on): Add unused-parameter.
27945
27946 2009-12-24  Bruno Haible  <bruno@clisp.org>
27947
27948         Add missing dependencies to 'extensions' module.
27949         * m4/extensions.m4: Add comment.
27950         * modules/accept4 (Depends-on): Add extensions.
27951         * modules/dup3 (Depends-on): Likewise.
27952         * modules/fcntl (Depends-on): Likewise.
27953         * modules/futimens (Depends-on): Likewise.
27954         * modules/mknod (Depends-on): Likewise.
27955         * modules/pipe2 (Depends-on): Likewise.
27956         * modules/stat-time (Depends-on): Likewise.
27957         * modules/strcasestr-simple (Depends-on): Likewise.
27958         * modules/strsignal (Depends-on): Likewise.
27959         * modules/utimensat (Depends-on): Likewise.
27960         * modules/localcharset (Depends-on): Likewise. Needed because of
27961         gl_FCNTL_O_FLAGS.
27962         * modules/wcrtomb (Depends-on): Likewise. Needed because of
27963         AC_TYPE_MBSTATE_T.
27964         * modules/wcsnrtombs (Depends-on): Likewise.
27965         * modules/wcsrtombs (Depends-on): Likewise.
27966
27967 2009-12-24  Bruno Haible  <bruno@clisp.org>
27968
27969         binary-io: Avoid gcc warning due to SET_BINARY.
27970         * lib/binary-io.h (SET_BINARY): Cast the result to void.
27971         Reported by Jim Meyering <jim@meyering.net>. Suggestion by Eric Blake.
27972
27973 2009-12-24  Bruno Haible  <bruno@clisp.org>
27974
27975         Avoid future namespace pollution on glibc systems.
27976         * lib/arpa_inet.in.h: Don't include <sys/socket.h> on glibc systems.
27977         * lib/sys_ioctl.in.h: Don't include <unistd.h> on glibc systems.
27978         * lib/sys_select.in.h: Don't include <sys/time.h> and <string.h> on
27979         glibc systems.
27980
27981 2009-12-24  Bruno Haible  <bruno@clisp.org>
27982
27983         Refactor common macros used in tests.
27984         * tests/macros.h: New file.
27985         * tests/test-areadlink.c: Include macros.h. Don't include <stdio.h>
27986         and/or <stdlib.h>, if appropriate.
27987         (ASSERT, SIZEOF): Remove macros.
27988         * tests/test-areadlink-with-size.c: Likewise.
27989         * tests/test-areadlinkat.c: Likewise.
27990         * tests/test-areadlinkat-with-size.c: Likewise.
27991         * tests/test-argmatch.c: Likewise.
27992         * tests/test-argv-iter.c: Likewise.
27993         * tests/test-array-mergesort.c: Likewise.
27994         * tests/test-array_list.c: Likewise.
27995         * tests/test-array_oset.c: Likewise.
27996         * tests/test-avltree_list.c: Likewise.
27997         * tests/test-avltree_oset.c: Likewise.
27998         * tests/test-avltreehash_list.c: Likewise.
27999         * tests/test-base64.c: Likewise.
28000         * tests/test-binary-io.c: Likewise.
28001         * tests/test-bitrotate.c: Likewise.
28002         * tests/test-btowc.c: Likewise.
28003         * tests/test-byteswap.c: Likewise.
28004         * tests/test-c-ctype.c: Likewise.
28005         * tests/test-c-stack.c: Likewise.
28006         * tests/test-c-strcasecmp.c: Likewise.
28007         * tests/test-c-strcasestr.c: Likewise.
28008         * tests/test-c-strncasecmp.c: Likewise.
28009         * tests/test-c-strstr.c: Likewise.
28010         * tests/test-canonicalize-lgpl.c: Likewise.
28011         * tests/test-canonicalize.c: Likewise.
28012         * tests/test-carray_list.c: Likewise.
28013         * tests/test-ceilf1.c: Likewise.
28014         * tests/test-ceilf2.c: Likewise.
28015         * tests/test-ceill.c: Likewise.
28016         * tests/test-chown.c: Likewise.
28017         * tests/test-cloexec.c: Likewise.
28018         * tests/test-copy-acl.c: Likewise.
28019         * tests/test-copy-file.c: Likewise.
28020         * tests/test-count-one-bits.c: Likewise.
28021         * tests/test-dprintf-posix.c: Likewise.
28022         * tests/test-dup2.c: Likewise.
28023         * tests/test-dup3.c: Likewise.
28024         * tests/test-duplocale.c: Likewise.
28025         * tests/test-fbufmode.c: Likewise.
28026         * tests/test-fchdir.c: Likewise.
28027         * tests/test-fchownat.c: Likewise.
28028         * tests/test-fcntl-safer.c: Likewise.
28029         * tests/test-fcntl.c: Likewise.
28030         * tests/test-fdopendir.c: Likewise.
28031         * tests/test-fdutimensat.c: Likewise.
28032         * tests/test-fflush2.c: Likewise.
28033         * tests/test-file-has-acl.c: Likewise.
28034         * tests/test-filevercmp.c: Likewise.
28035         * tests/test-flock.c: Likewise.
28036         * tests/test-floorf1.c: Likewise.
28037         * tests/test-floorf2.c: Likewise.
28038         * tests/test-floorl.c: Likewise.
28039         * tests/test-fnmatch.c: Likewise.
28040         * tests/test-fopen.h: Likewise.
28041         * tests/test-fpending.c: Likewise.
28042         * tests/test-fprintf-posix.c: Likewise.
28043         * tests/test-fpurge.c: Likewise.
28044         * tests/test-freadable.c: Likewise.
28045         * tests/test-freadahead.c: Likewise.
28046         * tests/test-freading.c: Likewise.
28047         * tests/test-freadptr.c: Likewise.
28048         * tests/test-freadptr2.c: Likewise.
28049         * tests/test-freadseek.c: Likewise.
28050         * tests/test-freopen.c: Likewise.
28051         * tests/test-frexp.c: Likewise.
28052         * tests/test-frexpl.c: Likewise.
28053         * tests/test-fseek.c: Likewise.
28054         * tests/test-fseeko.c: Likewise.
28055         * tests/test-fstatat.c: Likewise.
28056         * tests/test-fstrcmp.c: Likewise.
28057         * tests/test-fsync.c: Likewise.
28058         * tests/test-ftell.c: Likewise.
28059         * tests/test-ftello.c: Likewise.
28060         * tests/test-func.c: Likewise.
28061         * tests/test-futimens.c: Likewise.
28062         * tests/test-fwritable.c: Likewise.
28063         * tests/test-fwriting.c: Likewise.
28064         * tests/test-getcwd.c: Likewise.
28065         * tests/test-getdate.c: Likewise.
28066         * tests/test-getdelim.c: Likewise.
28067         * tests/test-getdtablesize.c: Likewise.
28068         * tests/test-getgroups.c: Likewise.
28069         * tests/test-getline.c: Likewise.
28070         * tests/test-getndelim2.c: Likewise.
28071         * tests/test-glob.c: Likewise.
28072         * tests/test-hash.c: Likewise.
28073         * tests/test-i-ring.c: Likewise.
28074         * tests/test-iconv-utf.c: Likewise.
28075         * tests/test-iconv.c: Likewise.
28076         * tests/test-idpriv-drop.c: Likewise.
28077         * tests/test-idpriv-droptemp.c: Likewise.
28078         * tests/test-inet_ntop.c: Likewise.
28079         * tests/test-inet_pton.c: Likewise.
28080         * tests/test-isblank.c: Likewise.
28081         * tests/test-isfinite.c: Likewise.
28082         * tests/test-isinf.c: Likewise.
28083         * tests/test-isnan.c: Likewise.
28084         * tests/test-isnand.h: Likewise.
28085         * tests/test-isnanf.h: Likewise.
28086         * tests/test-isnanl.h: Likewise.
28087         * tests/test-lchown.c: Likewise.
28088         * tests/test-ldexpl.c: Likewise.
28089         * tests/test-link.c: Likewise.
28090         * tests/test-linkat.c: Likewise.
28091         * tests/test-linked_list.c: Likewise.
28092         * tests/test-linkedhash_list.c: Likewise.
28093         * tests/test-localename.c: Likewise.
28094         * tests/test-lseek.c: Likewise.
28095         * tests/test-lstat.c: Likewise.
28096         * tests/test-mbmemcasecmp.c: Likewise.
28097         * tests/test-mbmemcasecoll.c: Likewise.
28098         * tests/test-mbrtowc.c: Likewise.
28099         * tests/test-mbscasecmp.c: Likewise.
28100         * tests/test-mbscasestr1.c: Likewise.
28101         * tests/test-mbscasestr2.c: Likewise.
28102         * tests/test-mbscasestr3.c: Likewise.
28103         * tests/test-mbscasestr4.c: Likewise.
28104         * tests/test-mbschr.c: Likewise.
28105         * tests/test-mbscspn.c: Likewise.
28106         * tests/test-mbsinit.c: Likewise.
28107         * tests/test-mbsncasecmp.c: Likewise.
28108         * tests/test-mbsnrtowcs.c: Likewise.
28109         * tests/test-mbspbrk.c: Likewise.
28110         * tests/test-mbspcasecmp.c: Likewise.
28111         * tests/test-mbsrchr.c: Likewise.
28112         * tests/test-mbsrtowcs.c: Likewise.
28113         * tests/test-mbsspn.c: Likewise.
28114         * tests/test-mbsstr1.c: Likewise.
28115         * tests/test-mbsstr2.c: Likewise.
28116         * tests/test-mbsstr3.c: Likewise.
28117         * tests/test-memchr.c: Likewise.
28118         * tests/test-memchr2.c: Likewise.
28119         * tests/test-memcmp.c: Likewise.
28120         * tests/test-memmem.c: Likewise.
28121         * tests/test-memrchr.c: Likewise.
28122         * tests/test-mkdir.c: Likewise.
28123         * tests/test-mkdirat.c: Likewise.
28124         * tests/test-mkfifo.c: Likewise.
28125         * tests/test-mkfifoat.c: Likewise.
28126         * tests/test-mknod.c: Likewise.
28127         * tests/test-nanosleep.c: Likewise.
28128         * tests/test-nl_langinfo.c: Likewise.
28129         * tests/test-obstack-printf.c: Likewise.
28130         * tests/test-open.c: Likewise.
28131         * tests/test-openat.c: Likewise.
28132         * tests/test-pipe-filter-gi1.c: Likewise.
28133         * tests/test-pipe-filter-gi2-main.c: Likewise.
28134         * tests/test-pipe-filter-ii1.c: Likewise.
28135         * tests/test-pipe-filter-ii2-main.c: Likewise.
28136         * tests/test-pipe2.c: Likewise.
28137         * tests/test-popen.h: Likewise.
28138         * tests/test-posixtm.c: Likewise.
28139         * tests/test-pread.c: Likewise.
28140         * tests/test-printf-frexp.c: Likewise.
28141         * tests/test-printf-frexpl.c: Likewise.
28142         * tests/test-printf-posix.c: Likewise.
28143         * tests/test-priv-set.c: Likewise.
28144         * tests/test-quotearg.c: Likewise.
28145         * tests/test-random_r.c: Likewise.
28146         * tests/test-rawmemchr.c: Likewise.
28147         * tests/test-rbtree_list.c: Likewise.
28148         * tests/test-rbtree_oset.c: Likewise.
28149         * tests/test-rbtreehash_list.c: Likewise.
28150         * tests/test-readlink.c: Likewise.
28151         * tests/test-remove.c: Likewise.
28152         * tests/test-rename.c: Likewise.
28153         * tests/test-renameat.c: Likewise.
28154         * tests/test-rmdir.c: Likewise.
28155         * tests/test-round1.c: Likewise.
28156         * tests/test-roundf1.c: Likewise.
28157         * tests/test-roundl.c: Likewise.
28158         * tests/test-safe-alloc.c: Likewise.
28159         * tests/test-sameacls.c: Likewise.
28160         * tests/test-set-mode-acl.c: Likewise.
28161         * tests/test-setenv.c: Likewise.
28162         * tests/test-sigaction.c: Likewise.
28163         * tests/test-signbit.c: Likewise.
28164         * tests/test-sleep.c: Likewise.
28165         * tests/test-snprintf-posix.c: Likewise.
28166         * tests/test-snprintf.c: Likewise.
28167         * tests/test-sprintf-posix.c: Likewise.
28168         * tests/test-stat-time.c: Likewise.
28169         * tests/test-stat.c: Likewise.
28170         * tests/test-strcasestr.c: Likewise.
28171         * tests/test-strchrnul.c: Likewise.
28172         * tests/test-strerror.c: Likewise.
28173         * tests/test-striconv.c: Likewise.
28174         * tests/test-striconveh.c: Likewise.
28175         * tests/test-striconveha.c: Likewise.
28176         * tests/test-strsignal.c: Likewise.
28177         * tests/test-strstr.c: Likewise.
28178         * tests/test-strtod.c: Likewise.
28179         * tests/test-strverscmp.c: Likewise.
28180         * tests/test-symlink.c: Likewise.
28181         * tests/test-symlinkat.c: Likewise.
28182         * tests/test-trunc1.c: Likewise.
28183         * tests/test-trunc2.c: Likewise.
28184         * tests/test-truncf1.c: Likewise.
28185         * tests/test-truncf2.c: Likewise.
28186         * tests/test-truncl.c: Likewise.
28187         * tests/test-uname.c: Likewise.
28188         * tests/test-unlink.c: Likewise.
28189         * tests/test-unlinkat.c: Likewise.
28190         * tests/test-unsetenv.c: Likewise.
28191         * tests/test-usleep.c: Likewise.
28192         * tests/test-utimens.c: Likewise.
28193         * tests/test-utimensat.c: Likewise.
28194         * tests/test-vasnprintf-posix.c: Likewise.
28195         * tests/test-vasnprintf-posix2.c: Likewise.
28196         * tests/test-vasnprintf.c: Likewise.
28197         * tests/test-vasprintf-posix.c: Likewise.
28198         * tests/test-vasprintf.c: Likewise.
28199         * tests/test-vdprintf-posix.c: Likewise.
28200         * tests/test-vfprintf-posix.c: Likewise.
28201         * tests/test-vprintf-posix.c: Likewise.
28202         * tests/test-vsnprintf-posix.c: Likewise.
28203         * tests/test-vsnprintf.c: Likewise.
28204         * tests/test-vsprintf-posix.c: Likewise.
28205         * tests/test-wcrtomb.c: Likewise.
28206         * tests/test-wcsnrtombs.c: Likewise.
28207         * tests/test-wcsrtombs.c: Likewise.
28208         * tests/test-wctype.c: Likewise.
28209         * tests/test-wcwidth.c: Likewise.
28210         * tests/test-xfprintf-posix.c: Likewise.
28211         * tests/test-xmemdup0.c: Likewise.
28212         * tests/test-xprintf-posix.c: Likewise.
28213         * tests/test-xvasprintf.c: Likewise.
28214         * tests/unicase/test-locale-language.c: Likewise.
28215         * tests/unicase/test-mapping-part1.h: Likewise.
28216         * tests/unicase/test-predicate-part1.h: Likewise.
28217         * tests/unicase/test-u8-casecmp.c: Likewise.
28218         * tests/unicase/test-u8-casecoll.c: Likewise.
28219         * tests/unicase/test-u8-casefold.c: Likewise.
28220         * tests/unicase/test-u8-is-cased.c: Likewise.
28221         * tests/unicase/test-u8-is-casefolded.c: Likewise.
28222         * tests/unicase/test-u8-is-lowercase.c: Likewise.
28223         * tests/unicase/test-u8-is-titlecase.c: Likewise.
28224         * tests/unicase/test-u8-is-uppercase.c: Likewise.
28225         * tests/unicase/test-u8-tolower.c: Likewise.
28226         * tests/unicase/test-u8-totitle.c: Likewise.
28227         * tests/unicase/test-u8-toupper.c: Likewise.
28228         * tests/unicase/test-u16-casecmp.c: Likewise.
28229         * tests/unicase/test-u16-casecoll.c: Likewise.
28230         * tests/unicase/test-u16-casefold.c: Likewise.
28231         * tests/unicase/test-u16-is-cased.c: Likewise.
28232         * tests/unicase/test-u16-is-casefolded.c: Likewise.
28233         * tests/unicase/test-u16-is-lowercase.c: Likewise.
28234         * tests/unicase/test-u16-is-titlecase.c: Likewise.
28235         * tests/unicase/test-u16-is-uppercase.c: Likewise.
28236         * tests/unicase/test-u16-tolower.c: Likewise.
28237         * tests/unicase/test-u16-totitle.c: Likewise.
28238         * tests/unicase/test-u16-toupper.c: Likewise.
28239         * tests/unicase/test-u32-casecmp.c: Likewise.
28240         * tests/unicase/test-u32-casecoll.c: Likewise.
28241         * tests/unicase/test-u32-casefold.c: Likewise.
28242         * tests/unicase/test-u32-is-cased.c: Likewise.
28243         * tests/unicase/test-u32-is-casefolded.c: Likewise.
28244         * tests/unicase/test-u32-is-lowercase.c: Likewise.
28245         * tests/unicase/test-u32-is-titlecase.c: Likewise.
28246         * tests/unicase/test-u32-is-uppercase.c: Likewise.
28247         * tests/unicase/test-u32-tolower.c: Likewise.
28248         * tests/unicase/test-u32-totitle.c: Likewise.
28249         * tests/unicase/test-u32-toupper.c: Likewise.
28250         * tests/unicase/test-ulc-casecmp.c: Likewise.
28251         * tests/unicase/test-ulc-casecoll.c: Likewise.
28252         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
28253         * tests/uniconv/test-u8-conv-to-enc.c: Likewise.
28254         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
28255         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
28256         * tests/uniconv/test-u16-conv-from-enc.c: Likewise.
28257         * tests/uniconv/test-u16-conv-to-enc.c: Likewise.
28258         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
28259         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
28260         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
28261         * tests/uniconv/test-u32-conv-to-enc.c: Likewise.
28262         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
28263         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
28264         * tests/unictype/test-bidi_byname.c: Likewise.
28265         * tests/unictype/test-bidi_name.c: Likewise.
28266         * tests/unictype/test-bidi_of.c: Likewise.
28267         * tests/unictype/test-bidi_test.c: Likewise.
28268         * tests/unictype/test-block_list.c: Likewise.
28269         * tests/unictype/test-block_of.c: Likewise.
28270         * tests/unictype/test-block_test.c: Likewise.
28271         * tests/unictype/test-categ_and.c: Likewise.
28272         * tests/unictype/test-categ_and_not.c: Likewise.
28273         * tests/unictype/test-categ_byname.c: Likewise.
28274         * tests/unictype/test-categ_name.c: Likewise.
28275         * tests/unictype/test-categ_none.c: Likewise.
28276         * tests/unictype/test-categ_of.c: Likewise.
28277         * tests/unictype/test-categ_or.c: Likewise.
28278         * tests/unictype/test-categ_test_withtable.c: Likewise.
28279         * tests/unictype/test-combining.c: Likewise.
28280         * tests/unictype/test-decdigit.c: Likewise.
28281         * tests/unictype/test-digit.c: Likewise.
28282         * tests/unictype/test-mirror.c: Likewise.
28283         * tests/unictype/test-numeric.c: Likewise.
28284         * tests/unictype/test-pr_byname.c: Likewise.
28285         * tests/unictype/test-pr_test.c: Likewise.
28286         * tests/unictype/test-predicate-part1.h: Likewise.
28287         * tests/unictype/test-scripts.c: Likewise.
28288         * tests/unictype/test-sy_c_ident.c: Likewise.
28289         * tests/unictype/test-sy_java_ident.c: Likewise.
28290         * tests/unilbrk/test-u8-possible-linebreaks.c: Likewise.
28291         * tests/unilbrk/test-u8-width-linebreaks.c: Likewise.
28292         * tests/unilbrk/test-u16-possible-linebreaks.c: Likewise.
28293         * tests/unilbrk/test-u16-width-linebreaks.c: Likewise.
28294         * tests/unilbrk/test-u32-possible-linebreaks.c: Likewise.
28295         * tests/unilbrk/test-u32-width-linebreaks.c: Likewise.
28296         * tests/unilbrk/test-ulc-possible-linebreaks.c: Likewise.
28297         * tests/unilbrk/test-ulc-width-linebreaks.c: Likewise.
28298         * tests/uninorm/test-canonical-decomposition.c: Likewise.
28299         * tests/uninorm/test-compat-decomposition.c: Likewise.
28300         * tests/uninorm/test-composition.c: Likewise.
28301         * tests/uninorm/test-decomposing-form.c: Likewise.
28302         * tests/uninorm/test-decomposition.c: Likewise.
28303         * tests/uninorm/test-u8-nfc.c: Likewise.
28304         * tests/uninorm/test-u8-nfd.c: Likewise.
28305         * tests/uninorm/test-u8-nfkc.c: Likewise.
28306         * tests/uninorm/test-u8-nfkd.c: Likewise.
28307         * tests/uninorm/test-u8-normcmp.c: Likewise.
28308         * tests/uninorm/test-u8-normcoll.c: Likewise.
28309         * tests/uninorm/test-u16-nfc.c: Likewise.
28310         * tests/uninorm/test-u16-nfd.c: Likewise.
28311         * tests/uninorm/test-u16-nfkc.c: Likewise.
28312         * tests/uninorm/test-u16-nfkd.c: Likewise.
28313         * tests/uninorm/test-u16-normcmp.c: Likewise.
28314         * tests/uninorm/test-u16-normcoll.c: Likewise.
28315         * tests/uninorm/test-u32-nfc.c: Likewise.
28316         * tests/uninorm/test-u32-nfd.c: Likewise.
28317         * tests/uninorm/test-u32-nfkc.c: Likewise.
28318         * tests/uninorm/test-u32-nfkd.c: Likewise.
28319         * tests/uninorm/test-u32-normalize-big.c: Likewise.
28320         * tests/uninorm/test-u32-normcmp.c: Likewise.
28321         * tests/uninorm/test-u32-normcoll.c: Likewise.
28322         * tests/uninorm/test-uninorm-filter-nfc.c: Likewise.
28323         * tests/unistdio/test-u8-asnprintf1.c: Likewise.
28324         * tests/unistdio/test-u8-vasnprintf1.c: Likewise.
28325         * tests/unistdio/test-u8-vasnprintf2.c: Likewise.
28326         * tests/unistdio/test-u8-vasnprintf3.c: Likewise.
28327         * tests/unistdio/test-u8-vasprintf1.c: Likewise.
28328         * tests/unistdio/test-u8-vsnprintf1.c: Likewise.
28329         * tests/unistdio/test-u8-vsprintf1.c: Likewise.
28330         * tests/unistdio/test-u16-asnprintf1.c: Likewise.
28331         * tests/unistdio/test-u16-vasnprintf1.c: Likewise.
28332         * tests/unistdio/test-u16-vasnprintf2.c: Likewise.
28333         * tests/unistdio/test-u16-vasnprintf3.c: Likewise.
28334         * tests/unistdio/test-u16-vasprintf1.c: Likewise.
28335         * tests/unistdio/test-u16-vsnprintf1.c: Likewise.
28336         * tests/unistdio/test-u16-vsprintf1.c: Likewise.
28337         * tests/unistdio/test-u32-asnprintf1.c: Likewise.
28338         * tests/unistdio/test-u32-vasnprintf1.c: Likewise.
28339         * tests/unistdio/test-u32-vasnprintf2.c: Likewise.
28340         * tests/unistdio/test-u32-vasnprintf3.c: Likewise.
28341         * tests/unistdio/test-u32-vasprintf1.c: Likewise.
28342         * tests/unistdio/test-u32-vsnprintf1.c: Likewise.
28343         * tests/unistdio/test-u32-vsprintf1.c: Likewise.
28344         * tests/unistdio/test-ulc-asnprintf1.c: Likewise.
28345         * tests/unistdio/test-ulc-vasnprintf1.c: Likewise.
28346         * tests/unistdio/test-ulc-vasnprintf2.c: Likewise.
28347         * tests/unistdio/test-ulc-vasnprintf3.c: Likewise.
28348         * tests/unistdio/test-ulc-vasprintf1.c: Likewise.
28349         * tests/unistdio/test-ulc-vsnprintf1.c: Likewise.
28350         * tests/unistdio/test-ulc-vsprintf1.c: Likewise.
28351         * tests/uniwbrk/test-u8-wordbreaks.c: Likewise.
28352         * tests/uniwbrk/test-u16-wordbreaks.c: Likewise.
28353         * tests/uniwbrk/test-u32-wordbreaks.c: Likewise.
28354         * tests/uniwbrk/test-ulc-wordbreaks.c: Likewise.
28355         * tests/uniwidth/test-u8-strwidth.c: Likewise.
28356         * tests/uniwidth/test-u8-width.c: Likewise.
28357         * tests/uniwidth/test-u16-strwidth.c: Likewise.
28358         * tests/uniwidth/test-u16-width.c: Likewise.
28359         * tests/uniwidth/test-u32-strwidth.c: Likewise.
28360         * tests/uniwidth/test-u32-width.c: Likewise.
28361         * tests/uniwidth/test-uc_width.c: Likewise.
28362         * tests/uniwidth/test-uc_width2.c: Likewise.
28363         * modules/acl-tests (Files): Add tests/macros.h.
28364         * modules/areadlink-tests (Files): Likewise.
28365         * modules/areadlink-with-size-tests (Files): Likewise.
28366         * modules/areadlinkat-tests (Files): Likewise.
28367         * modules/areadlinkat-with-size-tests (Files): Likewise.
28368         * modules/argmatch-tests (Files): Likewise.
28369         * modules/argv-iter-tests (Files): Likewise.
28370         * modules/array-list-tests (Files): Likewise.
28371         * modules/array-mergesort-tests (Files): Likewise.
28372         * modules/array-oset-tests (Files): Likewise.
28373         * modules/avltree-list-tests (Files): Likewise.
28374         * modules/avltree-oset-tests (Files): Likewise.
28375         * modules/avltreehash-list-tests (Files): Likewise.
28376         * modules/base64-tests (Files): Likewise.
28377         * modules/binary-io-tests (Files): Likewise.
28378         * modules/bitrotate-tests (Files): Likewise.
28379         * modules/btowc-tests (Files): Likewise.
28380         * modules/byteswap-tests (Files): Likewise.
28381         * modules/c-ctype-tests (Files): Likewise.
28382         * modules/c-stack-tests (Files): Likewise.
28383         * modules/c-strcase-tests (Files): Likewise.
28384         * modules/c-strcasestr-tests (Files): Likewise.
28385         * modules/c-strstr-tests (Files): Likewise.
28386         * modules/canonicalize-lgpl-tests (Files): Likewise.
28387         * modules/canonicalize-tests (Files): Likewise.
28388         * modules/carray-list-tests (Files): Likewise.
28389         * modules/ceilf-tests (Files): Likewise.
28390         * modules/ceill-tests (Files): Likewise.
28391         * modules/chown-tests (Files): Likewise.
28392         * modules/cloexec-tests (Files): Likewise.
28393         * modules/copy-file-tests (Files): Likewise.
28394         * modules/count-one-bits-tests (Files): Likewise.
28395         * modules/dprintf-posix-tests (Files): Likewise.
28396         * modules/dup2-tests (Files): Likewise.
28397         * modules/dup3-tests (Files): Likewise.
28398         * modules/duplocale-tests (Files): Likewise.
28399         * modules/fbufmode-tests (Files): Likewise.
28400         * modules/fchdir-tests (Files): Likewise.
28401         * modules/fcntl-safer-tests (Files): Likewise.
28402         * modules/fcntl-tests (Files): Likewise.
28403         * modules/fdopendir-tests (Files): Likewise.
28404         * modules/fdutimensat-tests (Files): Likewise.
28405         * modules/fflush-tests (Files): Likewise.
28406         * modules/filevercmp-tests (Files): Likewise.
28407         * modules/flock-tests (Files): Likewise.
28408         * modules/floorf-tests (Files): Likewise.
28409         * modules/floorl-tests (Files): Likewise.
28410         * modules/fnmatch-tests (Files): Likewise.
28411         * modules/fopen-safer-tests (Files): Likewise.
28412         * modules/fopen-tests (Files): Likewise.
28413         * modules/fpending-tests (Files): Likewise.
28414         * modules/fprintf-posix-tests (Files): Likewise.
28415         * modules/fpurge-tests (Files): Likewise.
28416         * modules/freadable-tests (Files): Likewise.
28417         * modules/freadahead-tests (Files): Likewise.
28418         * modules/freading-tests (Files): Likewise.
28419         * modules/freadptr-tests (Files): Likewise.
28420         * modules/freadseek-tests (Files): Likewise.
28421         * modules/freopen-tests (Files): Likewise.
28422         * modules/frexp-nolibm-tests (Files): Likewise.
28423         * modules/frexp-tests (Files): Likewise.
28424         * modules/frexpl-nolibm-tests (Files): Likewise.
28425         * modules/frexpl-tests (Files): Likewise.
28426         * modules/fseek-tests (Files): Likewise.
28427         * modules/fseeko-tests (Files): Likewise.
28428         * modules/fstrcmp-tests (Files): Likewise.
28429         * modules/fsync-tests (Files): Likewise.
28430         * modules/ftell-tests (Files): Likewise.
28431         * modules/ftello-tests (Files): Likewise.
28432         * modules/func-tests (Files): Likewise.
28433         * modules/futimens-tests (Files): Likewise.
28434         * modules/fwritable-tests (Files): Likewise.
28435         * modules/fwriting-tests (Files): Likewise.
28436         * modules/getcwd-tests (Files): Likewise.
28437         * modules/getdate-tests (Files): Likewise.
28438         * modules/getdelim-tests (Files): Likewise.
28439         * modules/getdtablesize-tests (Files): Likewise.
28440         * modules/getgroups-tests (Files): Likewise.
28441         * modules/getline-tests (Files): Likewise.
28442         * modules/getndelim2-tests (Files): Likewise.
28443         * modules/glob-tests (Files): Likewise.
28444         * modules/hash-tests (Files): Likewise.
28445         * modules/i-ring-tests (Files): Likewise.
28446         * modules/iconv-tests (Files): Likewise.
28447         * modules/iconv_open-utf-tests (Files): Likewise.
28448         * modules/idpriv-drop-tests (Files): Likewise.
28449         * modules/idpriv-droptemp-tests (Files): Likewise.
28450         * modules/inet_ntop-tests (Files): Likewise.
28451         * modules/inet_pton-tests (Files): Likewise.
28452         * modules/isblank-tests (Files): Likewise.
28453         * modules/isfinite-tests (Files): Likewise.
28454         * modules/isinf-tests (Files): Likewise.
28455         * modules/isnan-tests (Files): Likewise.
28456         * modules/isnand-nolibm-tests (Files): Likewise.
28457         * modules/isnand-tests (Files): Likewise.
28458         * modules/isnanf-nolibm-tests (Files): Likewise.
28459         * modules/isnanf-tests (Files): Likewise.
28460         * modules/isnanl-nolibm-tests (Files): Likewise.
28461         * modules/isnanl-tests (Files): Likewise.
28462         * modules/lchown-tests (Files): Likewise.
28463         * modules/ldexpl-tests (Files): Likewise.
28464         * modules/link-tests (Files): Likewise.
28465         * modules/linkat-tests (Files): Likewise.
28466         * modules/linked-list-tests (Files): Likewise.
28467         * modules/linkedhash-list-tests (Files): Likewise.
28468         * modules/localename-tests (Files): Likewise.
28469         * modules/lseek-tests (Files): Likewise.
28470         * modules/lstat-tests (Files): Likewise.
28471         * modules/mbmemcasecmp-tests (Files): Likewise.
28472         * modules/mbmemcasecoll-tests (Files): Likewise.
28473         * modules/mbrtowc-tests (Files): Likewise.
28474         * modules/mbscasecmp-tests (Files): Likewise.
28475         * modules/mbscasestr-tests (Files): Likewise.
28476         * modules/mbschr-tests (Files): Likewise.
28477         * modules/mbscspn-tests (Files): Likewise.
28478         * modules/mbsinit-tests (Files): Likewise.
28479         * modules/mbsncasecmp-tests (Files): Likewise.
28480         * modules/mbsnrtowcs-tests (Files): Likewise.
28481         * modules/mbspbrk-tests (Files): Likewise.
28482         * modules/mbspcasecmp-tests (Files): Likewise.
28483         * modules/mbsrchr-tests (Files): Likewise.
28484         * modules/mbsrtowcs-tests (Files): Likewise.
28485         * modules/mbsspn-tests (Files): Likewise.
28486         * modules/mbsstr-tests (Files): Likewise.
28487         * modules/memchr-tests (Files): Likewise.
28488         * modules/memchr2-tests (Files): Likewise.
28489         * modules/memcmp-tests (Files): Likewise.
28490         * modules/memmem-tests (Files): Likewise.
28491         * modules/memrchr-tests (Files): Likewise.
28492         * modules/mkdir-tests (Files): Likewise.
28493         * modules/mkfifo-tests (Files): Likewise.
28494         * modules/mkfifoat-tests (Files): Likewise.
28495         * modules/mknod-tests (Files): Likewise.
28496         * modules/nanosleep-tests (Files): Likewise.
28497         * modules/nl_langinfo-tests (Files): Likewise.
28498         * modules/obstack-printf-tests (Files): Likewise.
28499         * modules/open-tests (Files): Likewise.
28500         * modules/openat-tests (Files): Likewise.
28501         * modules/pipe-filter-gi-tests (Files): Likewise.
28502         * modules/pipe-filter-ii-tests (Files): Likewise.
28503         * modules/pipe2-tests (Files): Likewise.
28504         * modules/popen-safer-tests (Files): Likewise.
28505         * modules/popen-tests (Files): Likewise.
28506         * modules/posixtm-tests (Files): Likewise.
28507         * modules/pread-tests (Files): Likewise.
28508         * modules/printf-frexp-tests (Files): Likewise.
28509         * modules/printf-frexpl-tests (Files): Likewise.
28510         * modules/printf-posix-tests (Files): Likewise.
28511         * modules/priv-set-tests (Files): Likewise.
28512         * modules/quotearg-tests (Files): Likewise.
28513         * modules/random_r-tests (Files): Likewise.
28514         * modules/rawmemchr-tests (Files): Likewise.
28515         * modules/rbtree-list-tests (Files): Likewise.
28516         * modules/rbtree-oset-tests (Files): Likewise.
28517         * modules/rbtreehash-list-tests (Files): Likewise.
28518         * modules/readlink-tests (Files): Likewise.
28519         * modules/remove-tests (Files): Likewise.
28520         * modules/rename-tests (Files): Likewise.
28521         * modules/renameat-tests (Files): Likewise.
28522         * modules/rmdir-tests (Files): Likewise.
28523         * modules/round-tests (Files): Likewise.
28524         * modules/roundf-tests (Files): Likewise.
28525         * modules/roundl-tests (Files): Likewise.
28526         * modules/safe-alloc-tests (Files): Likewise.
28527         * modules/setenv-tests (Files): Likewise.
28528         * modules/sigaction-tests (Files): Likewise.
28529         * modules/signbit-tests (Files): Likewise.
28530         * modules/sleep-tests (Files): Likewise.
28531         * modules/snprintf-posix-tests (Files): Likewise.
28532         * modules/snprintf-tests (Files): Likewise.
28533         * modules/sprintf-posix-tests (Files): Likewise.
28534         * modules/stat-tests (Files): Likewise.
28535         * modules/stat-time-tests (Files): Likewise.
28536         * modules/strcasestr-tests (Files): Likewise.
28537         * modules/strchrnul-tests (Files): Likewise.
28538         * modules/strerror-tests (Files): Likewise.
28539         * modules/striconv-tests (Files): Likewise.
28540         * modules/striconveh-tests (Files): Likewise.
28541         * modules/striconveha-tests (Files): Likewise.
28542         * modules/strsignal-tests (Files): Likewise.
28543         * modules/strstr-tests (Files): Likewise.
28544         * modules/strtod-tests (Files): Likewise.
28545         * modules/strverscmp-tests (Files): Likewise.
28546         * modules/symlink-tests (Files): Likewise.
28547         * modules/symlinkat-tests (Files): Likewise.
28548         * modules/trunc-tests (Files): Likewise.
28549         * modules/truncf-tests (Files): Likewise.
28550         * modules/truncl-tests (Files): Likewise.
28551         * modules/uname-tests (Files): Likewise.
28552         * modules/unicase/cased-tests (Files): Likewise.
28553         * modules/unicase/ignorable-tests (Files): Likewise.
28554         * modules/unicase/locale-language-tests (Files): Likewise.
28555         * modules/unicase/tolower-tests (Files): Likewise.
28556         * modules/unicase/totitle-tests (Files): Likewise.
28557         * modules/unicase/toupper-tests (Files): Likewise.
28558         * modules/unicase/u8-casecmp-tests (Files): Likewise.
28559         * modules/unicase/u8-casecoll-tests (Files): Likewise.
28560         * modules/unicase/u8-casefold-tests (Files): Likewise.
28561         * modules/unicase/u8-is-cased-tests (Files): Likewise.
28562         * modules/unicase/u8-is-casefolded-tests (Files): Likewise.
28563         * modules/unicase/u8-is-lowercase-tests (Files): Likewise.
28564         * modules/unicase/u8-is-titlecase-tests (Files): Likewise.
28565         * modules/unicase/u8-is-uppercase-tests (Files): Likewise.
28566         * modules/unicase/u8-tolower-tests (Files): Likewise.
28567         * modules/unicase/u8-totitle-tests (Files): Likewise.
28568         * modules/unicase/u8-toupper-tests (Files): Likewise.
28569         * modules/unicase/u16-casecmp-tests (Files): Likewise.
28570         * modules/unicase/u16-casecoll-tests (Files): Likewise.
28571         * modules/unicase/u16-casefold-tests (Files): Likewise.
28572         * modules/unicase/u16-is-cased-tests (Files): Likewise.
28573         * modules/unicase/u16-is-casefolded-tests (Files): Likewise.
28574         * modules/unicase/u16-is-lowercase-tests (Files): Likewise.
28575         * modules/unicase/u16-is-titlecase-tests (Files): Likewise.
28576         * modules/unicase/u16-is-uppercase-tests (Files): Likewise.
28577         * modules/unicase/u16-tolower-tests (Files): Likewise.
28578         * modules/unicase/u16-totitle-tests (Files): Likewise.
28579         * modules/unicase/u16-toupper-tests (Files): Likewise.
28580         * modules/unicase/u32-casecmp-tests (Files): Likewise.
28581         * modules/unicase/u32-casecoll-tests (Files): Likewise.
28582         * modules/unicase/u32-casefold-tests (Files): Likewise.
28583         * modules/unicase/u32-is-cased-tests (Files): Likewise.
28584         * modules/unicase/u32-is-casefolded-tests (Files): Likewise.
28585         * modules/unicase/u32-is-lowercase-tests (Files): Likewise.
28586         * modules/unicase/u32-is-titlecase-tests (Files): Likewise.
28587         * modules/unicase/u32-is-uppercase-tests (Files): Likewise.
28588         * modules/unicase/u32-tolower-tests (Files): Likewise.
28589         * modules/unicase/u32-totitle-tests (Files): Likewise.
28590         * modules/unicase/u32-toupper-tests (Files): Likewise.
28591         * modules/unicase/ulc-casecmp-tests (Files): Likewise.
28592         * modules/unicase/ulc-casecoll-tests (Files): Likewise.
28593         * modules/uniconv/u8-conv-from-enc-tests (Files): Likewise.
28594         * modules/uniconv/u8-conv-to-enc-tests (Files): Likewise.
28595         * modules/uniconv/u8-strconv-from-enc-tests (Files): Likewise.
28596         * modules/uniconv/u8-strconv-to-enc-tests (Files): Likewise.
28597         * modules/uniconv/u16-conv-from-enc-tests (Files): Likewise.
28598         * modules/uniconv/u16-conv-to-enc-tests (Files): Likewise.
28599         * modules/uniconv/u16-strconv-from-enc-tests (Files): Likewise.
28600         * modules/uniconv/u16-strconv-to-enc-tests (Files): Likewise.
28601         * modules/uniconv/u32-conv-from-enc-tests (Files): Likewise.
28602         * modules/uniconv/u32-conv-to-enc-tests (Files): Likewise.
28603         * modules/uniconv/u32-strconv-from-enc-tests (Files): Likewise.
28604         * modules/uniconv/u32-strconv-to-enc-tests (Files): Likewise.
28605         * modules/unictype/bidicategory-byname-tests (Files): Likewise.
28606         * modules/unictype/bidicategory-name-tests (Files): Likewise.
28607         * modules/unictype/bidicategory-of-tests (Files): Likewise.
28608         * modules/unictype/bidicategory-test-tests (Files): Likewise.
28609         * modules/unictype/block-list-tests (Files): Likewise.
28610         * modules/unictype/block-of-tests (Files): Likewise.
28611         * modules/unictype/block-test-tests (Files): Likewise.
28612         * modules/unictype/category-C-tests (Files): Likewise.
28613         * modules/unictype/category-Cc-tests (Files): Likewise.
28614         * modules/unictype/category-Cf-tests (Files): Likewise.
28615         * modules/unictype/category-Cn-tests (Files): Likewise.
28616         * modules/unictype/category-Co-tests (Files): Likewise.
28617         * modules/unictype/category-Cs-tests (Files): Likewise.
28618         * modules/unictype/category-L-tests (Files): Likewise.
28619         * modules/unictype/category-Ll-tests (Files): Likewise.
28620         * modules/unictype/category-Lm-tests (Files): Likewise.
28621         * modules/unictype/category-Lo-tests (Files): Likewise.
28622         * modules/unictype/category-Lt-tests (Files): Likewise.
28623         * modules/unictype/category-Lu-tests (Files): Likewise.
28624         * modules/unictype/category-M-tests (Files): Likewise.
28625         * modules/unictype/category-Mc-tests (Files): Likewise.
28626         * modules/unictype/category-Me-tests (Files): Likewise.
28627         * modules/unictype/category-Mn-tests (Files): Likewise.
28628         * modules/unictype/category-N-tests (Files): Likewise.
28629         * modules/unictype/category-Nd-tests (Files): Likewise.
28630         * modules/unictype/category-Nl-tests (Files): Likewise.
28631         * modules/unictype/category-No-tests (Files): Likewise.
28632         * modules/unictype/category-P-tests (Files): Likewise.
28633         * modules/unictype/category-Pc-tests (Files): Likewise.
28634         * modules/unictype/category-Pd-tests (Files): Likewise.
28635         * modules/unictype/category-Pe-tests (Files): Likewise.
28636         * modules/unictype/category-Pf-tests (Files): Likewise.
28637         * modules/unictype/category-Pi-tests (Files): Likewise.
28638         * modules/unictype/category-Po-tests (Files): Likewise.
28639         * modules/unictype/category-Ps-tests (Files): Likewise.
28640         * modules/unictype/category-S-tests (Files): Likewise.
28641         * modules/unictype/category-Sc-tests (Files): Likewise.
28642         * modules/unictype/category-Sk-tests (Files): Likewise.
28643         * modules/unictype/category-Sm-tests (Files): Likewise.
28644         * modules/unictype/category-So-tests (Files): Likewise.
28645         * modules/unictype/category-Z-tests (Files): Likewise.
28646         * modules/unictype/category-Zl-tests (Files): Likewise.
28647         * modules/unictype/category-Zp-tests (Files): Likewise.
28648         * modules/unictype/category-Zs-tests (Files): Likewise.
28649         * modules/unictype/category-and-not-tests (Files): Likewise.
28650         * modules/unictype/category-and-tests (Files): Likewise.
28651         * modules/unictype/category-byname-tests (Files): Likewise.
28652         * modules/unictype/category-name-tests (Files): Likewise.
28653         * modules/unictype/category-none-tests (Files): Likewise.
28654         * modules/unictype/category-of-tests (Files): Likewise.
28655         * modules/unictype/category-or-tests (Files): Likewise.
28656         * modules/unictype/category-test-withtable-tests (Files): Likewise.
28657         * modules/unictype/combining-class-tests (Files): Likewise.
28658         * modules/unictype/ctype-alnum-tests (Files): Likewise.
28659         * modules/unictype/ctype-alpha-tests (Files): Likewise.
28660         * modules/unictype/ctype-blank-tests (Files): Likewise.
28661         * modules/unictype/ctype-cntrl-tests (Files): Likewise.
28662         * modules/unictype/ctype-digit-tests (Files): Likewise.
28663         * modules/unictype/ctype-graph-tests (Files): Likewise.
28664         * modules/unictype/ctype-lower-tests (Files): Likewise.
28665         * modules/unictype/ctype-print-tests (Files): Likewise.
28666         * modules/unictype/ctype-punct-tests (Files): Likewise.
28667         * modules/unictype/ctype-space-tests (Files): Likewise.
28668         * modules/unictype/ctype-upper-tests (Files): Likewise.
28669         * modules/unictype/ctype-xdigit-tests (Files): Likewise.
28670         * modules/unictype/decimal-digit-tests (Files): Likewise.
28671         * modules/unictype/digit-tests (Files): Likewise.
28672         * modules/unictype/mirror-tests (Files): Likewise.
28673         * modules/unictype/numeric-tests (Files): Likewise.
28674         * modules/unictype/property-alphabetic-tests (Files): Likewise.
28675         * modules/unictype/property-ascii-hex-digit-tests (Files): Likewise.
28676         * modules/unictype/property-bidi-arabic-digit-tests (Files): Likewise.
28677         * modules/unictype/property-bidi-arabic-right-to-left-tests (Files):
28678         Likewise.
28679         * modules/unictype/property-bidi-block-separator-tests (Files):
28680         Likewise.
28681         * modules/unictype/property-bidi-boundary-neutral-tests (Files):
28682         Likewise.
28683         * modules/unictype/property-bidi-common-separator-tests (Files):
28684         Likewise.
28685         * modules/unictype/property-bidi-control-tests (Files): Likewise.
28686         * modules/unictype/property-bidi-embedding-or-override-tests (Files):
28687         Likewise.
28688         * modules/unictype/property-bidi-eur-num-separator-tests (Files):
28689         Likewise.
28690         * modules/unictype/property-bidi-eur-num-terminator-tests (Files):
28691         Likewise.
28692         * modules/unictype/property-bidi-european-digit-tests (Files): Likewise.
28693         * modules/unictype/property-bidi-hebrew-right-to-left-tests (Files):
28694         Likewise.
28695         * modules/unictype/property-bidi-left-to-right-tests (Files): Likewise.
28696         * modules/unictype/property-bidi-non-spacing-mark-tests (Files):
28697         Likewise.
28698         * modules/unictype/property-bidi-other-neutral-tests (Files): Likewise.
28699         * modules/unictype/property-bidi-pdf-tests (Files): Likewise.
28700         * modules/unictype/property-bidi-segment-separator-tests (Files):
28701         Likewise.
28702         * modules/unictype/property-bidi-whitespace-tests (Files): Likewise.
28703         * modules/unictype/property-byname-tests (Files): Likewise.
28704         * modules/unictype/property-combining-tests (Files): Likewise.
28705         * modules/unictype/property-composite-tests (Files): Likewise.
28706         * modules/unictype/property-currency-symbol-tests (Files): Likewise.
28707         * modules/unictype/property-dash-tests (Files): Likewise.
28708         * modules/unictype/property-decimal-digit-tests (Files): Likewise.
28709         * modules/unictype/property-default-ignorable-code-point-tests (Files):
28710         Likewise.
28711         * modules/unictype/property-deprecated-tests (Files): Likewise.
28712         * modules/unictype/property-diacritic-tests (Files): Likewise.
28713         * modules/unictype/property-extender-tests (Files): Likewise.
28714         * modules/unictype/property-format-control-tests (Files): Likewise.
28715         * modules/unictype/property-grapheme-base-tests (Files): Likewise.
28716         * modules/unictype/property-grapheme-extend-tests (Files): Likewise.
28717         * modules/unictype/property-grapheme-link-tests (Files): Likewise.
28718         * modules/unictype/property-hex-digit-tests (Files): Likewise.
28719         * modules/unictype/property-hyphen-tests (Files): Likewise.
28720         * modules/unictype/property-id-continue-tests (Files): Likewise.
28721         * modules/unictype/property-id-start-tests (Files): Likewise.
28722         * modules/unictype/property-ideographic-tests (Files): Likewise.
28723         * modules/unictype/property-ids-binary-operator-tests (Files): Likewise.
28724         * modules/unictype/property-ids-trinary-operator-tests (Files):
28725         Likewise.
28726         * modules/unictype/property-ignorable-control-tests (Files): Likewise.
28727         * modules/unictype/property-iso-control-tests (Files): Likewise.
28728         * modules/unictype/property-join-control-tests (Files): Likewise.
28729         * modules/unictype/property-left-of-pair-tests (Files): Likewise.
28730         * modules/unictype/property-line-separator-tests (Files): Likewise.
28731         * modules/unictype/property-logical-order-exception-tests (Files):
28732         Likewise.
28733         * modules/unictype/property-lowercase-tests (Files): Likewise.
28734         * modules/unictype/property-math-tests (Files): Likewise.
28735         * modules/unictype/property-non-break-tests (Files): Likewise.
28736         * modules/unictype/property-not-a-character-tests (Files): Likewise.
28737         * modules/unictype/property-numeric-tests (Files): Likewise.
28738         * modules/unictype/property-other-alphabetic-tests (Files): Likewise.
28739         * modules/unictype/property-other-default-ignorable-code-point-tests
28740         (Files): Likewise.
28741         * modules/unictype/property-other-grapheme-extend-tests (Files):
28742         Likewise.
28743         * modules/unictype/property-other-id-continue-tests (Files): Likewise.
28744         * modules/unictype/property-other-id-start-tests (Files): Likewise.
28745         * modules/unictype/property-other-lowercase-tests (Files): Likewise.
28746         * modules/unictype/property-other-math-tests (Files): Likewise.
28747         * modules/unictype/property-other-uppercase-tests (Files): Likewise.
28748         * modules/unictype/property-paired-punctuation-tests (Files): Likewise.
28749         * modules/unictype/property-paragraph-separator-tests (Files): Likewise.
28750         * modules/unictype/property-pattern-syntax-tests (Files): Likewise.
28751         * modules/unictype/property-pattern-white-space-tests (Files): Likewise.
28752         * modules/unictype/property-private-use-tests (Files): Likewise.
28753         * modules/unictype/property-punctuation-tests (Files): Likewise.
28754         * modules/unictype/property-quotation-mark-tests (Files): Likewise.
28755         * modules/unictype/property-radical-tests (Files): Likewise.
28756         * modules/unictype/property-sentence-terminal-tests (Files): Likewise.
28757         * modules/unictype/property-soft-dotted-tests (Files): Likewise.
28758         * modules/unictype/property-space-tests (Files): Likewise.
28759         * modules/unictype/property-terminal-punctuation-tests (Files):
28760         Likewise.
28761         * modules/unictype/property-test-tests (Files): Likewise.
28762         * modules/unictype/property-titlecase-tests (Files): Likewise.
28763         * modules/unictype/property-unassigned-code-value-tests (Files):
28764         Likewise.
28765         * modules/unictype/property-unified-ideograph-tests (Files): Likewise.
28766         * modules/unictype/property-uppercase-tests (Files): Likewise.
28767         * modules/unictype/property-variation-selector-tests (Files): Likewise.
28768         * modules/unictype/property-white-space-tests (Files): Likewise.
28769         * modules/unictype/property-xid-continue-tests (Files): Likewise.
28770         * modules/unictype/property-xid-start-tests (Files): Likewise.
28771         * modules/unictype/property-zero-width-tests (Files): Likewise.
28772         * modules/unictype/scripts-tests (Files): Likewise.
28773         * modules/unictype/syntax-c-ident-tests (Files): Likewise.
28774         * modules/unictype/syntax-c-whitespace-tests (Files): Likewise.
28775         * modules/unictype/syntax-java-ident-tests (Files): Likewise.
28776         * modules/unictype/syntax-java-whitespace-tests (Files): Likewise.
28777         * modules/unilbrk/u8-possible-linebreaks-tests (Files): Likewise.
28778         * modules/unilbrk/u8-width-linebreaks-tests (Files): Likewise.
28779         * modules/unilbrk/u16-possible-linebreaks-tests (Files): Likewise.
28780         * modules/unilbrk/u16-width-linebreaks-tests (Files): Likewise.
28781         * modules/unilbrk/u32-possible-linebreaks-tests (Files): Likewise.
28782         * modules/unilbrk/u32-width-linebreaks-tests (Files): Likewise.
28783         * modules/unilbrk/ulc-possible-linebreaks-tests (Files): Likewise.
28784         * modules/unilbrk/ulc-width-linebreaks-tests (Files): Likewise.
28785         * modules/uninorm/canonical-decomposition-tests (Files): Likewise.
28786         * modules/uninorm/compat-decomposition-tests (Files): Likewise.
28787         * modules/uninorm/composition-tests (Files): Likewise.
28788         * modules/uninorm/decomposing-form-tests (Files): Likewise.
28789         * modules/uninorm/decomposition-tests (Files): Likewise.
28790         * modules/uninorm/filter-tests (Files): Likewise.
28791         * modules/uninorm/nfc-tests (Files): Likewise.
28792         * modules/uninorm/nfd-tests (Files): Likewise.
28793         * modules/uninorm/nfkc-tests (Files): Likewise.
28794         * modules/uninorm/nfkd-tests (Files): Likewise.
28795         * modules/uninorm/u8-normcmp-tests (Files): Likewise.
28796         * modules/uninorm/u8-normcoll-tests (Files): Likewise.
28797         * modules/uninorm/u16-normcmp-tests (Files): Likewise.
28798         * modules/uninorm/u16-normcoll-tests (Files): Likewise.
28799         * modules/uninorm/u32-normcmp-tests (Files): Likewise.
28800         * modules/uninorm/u32-normcoll-tests (Files): Likewise.
28801         * modules/unistdio/u8-asnprintf-tests (Files): Likewise.
28802         * modules/unistdio/u8-vasnprintf-tests (Files): Likewise.
28803         * modules/unistdio/u8-vasprintf-tests (Files): Likewise.
28804         * modules/unistdio/u8-vsnprintf-tests (Files): Likewise.
28805         * modules/unistdio/u8-vsprintf-tests (Files): Likewise.
28806         * modules/unistdio/u16-asnprintf-tests (Files): Likewise.
28807         * modules/unistdio/u16-vasnprintf-tests (Files): Likewise.
28808         * modules/unistdio/u16-vasprintf-tests (Files): Likewise.
28809         * modules/unistdio/u16-vsnprintf-tests (Files): Likewise.
28810         * modules/unistdio/u16-vsprintf-tests (Files): Likewise.
28811         * modules/unistdio/u32-asnprintf-tests (Files): Likewise.
28812         * modules/unistdio/u32-vasnprintf-tests (Files): Likewise.
28813         * modules/unistdio/u32-vasprintf-tests (Files): Likewise.
28814         * modules/unistdio/u32-vsnprintf-tests (Files): Likewise.
28815         * modules/unistdio/u32-vsprintf-tests (Files): Likewise.
28816         * modules/unistdio/ulc-asnprintf-tests (Files): Likewise.
28817         * modules/unistdio/ulc-vasnprintf-tests (Files): Likewise.
28818         * modules/unistdio/ulc-vasprintf-tests (Files): Likewise.
28819         * modules/unistdio/ulc-vsnprintf-tests (Files): Likewise.
28820         * modules/unistdio/ulc-vsprintf-tests (Files): Likewise.
28821         * modules/uniwbrk/u8-wordbreaks-tests (Files): Likewise.
28822         * modules/uniwbrk/u16-wordbreaks-tests (Files): Likewise.
28823         * modules/uniwbrk/u32-wordbreaks-tests (Files): Likewise.
28824         * modules/uniwbrk/ulc-wordbreaks-tests (Files): Likewise.
28825         * modules/uniwidth/u8-strwidth-tests (Files): Likewise.
28826         * modules/uniwidth/u8-width-tests (Files): Likewise.
28827         * modules/uniwidth/u16-strwidth-tests (Files): Likewise.
28828         * modules/uniwidth/u16-width-tests (Files): Likewise.
28829         * modules/uniwidth/u32-strwidth-tests (Files): Likewise.
28830         * modules/uniwidth/u32-width-tests (Files): Likewise.
28831         * modules/uniwidth/width-tests (Files): Likewise.
28832         * modules/unlink-tests (Files): Likewise.
28833         * modules/unsetenv-tests (Files): Likewise.
28834         * modules/usleep-tests (Files): Likewise.
28835         * modules/utimens-tests (Files): Likewise.
28836         * modules/utimensat-tests (Files): Likewise.
28837         * modules/vasnprintf-posix-tests (Files): Likewise.
28838         * modules/vasnprintf-tests (Files): Likewise.
28839         * modules/vasprintf-posix-tests (Files): Likewise.
28840         * modules/vasprintf-tests (Files): Likewise.
28841         * modules/vdprintf-posix-tests (Files): Likewise.
28842         * modules/vfprintf-posix-tests (Files): Likewise.
28843         * modules/vprintf-posix-tests (Files): Likewise.
28844         * modules/vsnprintf-posix-tests (Files): Likewise.
28845         * modules/vsnprintf-tests (Files): Likewise.
28846         * modules/vsprintf-posix-tests (Files): Likewise.
28847         * modules/wcrtomb-tests (Files): Likewise.
28848         * modules/wcsnrtombs-tests (Files): Likewise.
28849         * modules/wcsrtombs-tests (Files): Likewise.
28850         * modules/wctype-tests (Files): Likewise.
28851         * modules/wcwidth-tests (Files): Likewise.
28852         * modules/xmemdup0-tests (Files): Likewise.
28853         * modules/xprintf-posix-tests (Files): Likewise.
28854         * modules/xvasprintf-tests (Files): Likewise.
28855
28856 2009-12-24  Eric Blake  <ebb9@byu.net>
28857
28858         test-nanosleep: fix typo
28859         * tests/test-nanosleep.c (SIGNATURE_CHECK): Fix typo in previous
28860         patch.
28861         Reported by Bruno Haible.
28862
28863 2009-12-24  Bruno Haible  <bruno@clisp.org>
28864
28865         Reduce namespace pollution on glibc systems.
28866         * lib/inttypes.in.h: Don't include <stdint.h> on glibc systems.
28867         * lib/stdlib.in.h: Don't include <stdint.h>, <unistd.h> on glibc
28868         systems.
28869         * lib/unistd.in.h: Don't include <stdio.h>, <fcntl.h>, <stdlib.h>,
28870         <getopt.h> on glibc systems.
28871         * lib/fcntl.in.h: Don't include <sys/stat.h>, <unistd.h> on glibc
28872         systems.
28873         * lib/fcntl.c: Include <unistd.h> here instead.
28874
28875 2009-12-24  Bruno Haible  <bruno@clisp.org>
28876
28877         * lib/stdlib.in.h (includes): Fix typo in today's commit.
28878
28879 2009-12-24  Eric Blake  <ebb9@byu.net>
28880
28881         tests: add signature checks
28882         * tests/signature.h (SIGNATURE_CHECK): New file.
28883         * modules/atexit-tests (Files): Use it.
28884         * modules/btowc-tests (Files): Likewise.
28885         * modules/canonicalize-lgpl-tests (Files): Likewise.
28886         * modules/ceilf-tests (Files): Likewise.
28887         * modules/ceill-tests (Files): Likewise.
28888         * modules/chown-tests (Files): Likewise.
28889         * modules/dprintf-posix-tests (Files): Likewise.
28890         * modules/dup2-tests (Files): Likewise.
28891         * modules/dup3-tests (Files): Likewise.
28892         * modules/duplocale-tests (Files): Likewise.
28893         * modules/fchdir-tests (Files): Likewise.
28894         * modules/fcntl-tests (Files): Likewise.
28895         * modules/fdopendir-tests (Files): Likewise.
28896         * modules/fflush-tests (Files): Likewise.
28897         * modules/flock-tests (Files): Likewise.
28898         * modules/floorf-tests (Files): Likewise.
28899         * modules/floorl-tests (Files): Likewise.
28900         * modules/fnmatch-tests (Files): Likewise.
28901         * modules/fopen-tests (Files): Likewise.
28902         * modules/fprintf-posix-tests (Files): Likewise.
28903         * modules/freopen-tests (Files): Likewise.
28904         * modules/frexp-nolibm-tests (Files): Likewise.
28905         * modules/frexp-tests (Files): Likewise.
28906         * modules/frexpl-nolibm-tests (Files): Likewise.
28907         * modules/frexpl-tests (Files): Likewise.
28908         * modules/fseek-tests (Files): Likewise.
28909         * modules/fseeko-tests (Files): Likewise.
28910         * modules/fsync-tests (Files): Likewise.
28911         * modules/ftell-tests (Files): Likewise.
28912         * modules/ftello-tests (Files): Likewise.
28913         * modules/futimens-tests (Files): Likewise.
28914         * modules/getaddrinfo-tests (Files): Likewise.
28915         * modules/getcwd-tests (Files): Likewise.
28916         * modules/getdelim-tests (Files): Likewise.
28917         * modules/getdtablesize-tests (Files): Likewise.
28918         * modules/getgroups-tests (Files): Likewise.
28919         * modules/gethostname-tests (Files): Likewise.
28920         * modules/getline-tests (Files): Likewise.
28921         * modules/getopt-posix-tests (Files): Likewise.
28922         * modules/gettimeofday-tests (Files): Likewise.
28923         * modules/glob-tests (Files): Likewise.
28924         * modules/iconv-tests (Files): Likewise.
28925         * modules/inet_ntop-tests (Files): Likewise.
28926         * modules/inet_pton-tests (Files): Likewise.
28927         * modules/isblank-tests (Files): Likewise.
28928         * modules/lchown-tests (Files): Likewise.
28929         * modules/ldexpl-tests (Files): Likewise.
28930         * modules/link-tests (Files): Likewise.
28931         * modules/linkat-tests (Files): Likewise.
28932         * modules/lseek-tests (Files): Likewise.
28933         * modules/lstat-tests (Files): Likewise.
28934         * modules/mbrtowc-tests (Files): Likewise.
28935         * modules/mbsinit-tests (Files): Likewise.
28936         * modules/mbsnrtowcs-tests (Files): Likewise.
28937         * modules/mbsrtowcs-tests (Files): Likewise.
28938         * modules/memchr-tests (Files): Likewise.
28939         * modules/memcmp-tests (Files): Likewise.
28940         * modules/memmem-tests (Files): Likewise.
28941         * modules/memrchr-tests (Files): Likewise.
28942         * modules/mkdir-tests (Files): Likewise.
28943         * modules/mkfifo-tests (Files): Likewise.
28944         * modules/mkfifoat-tests (Files): Likewise.
28945         * modules/mknod-tests (Files): Likewise.
28946         * modules/nanosleep-tests (Files): Likewise.
28947         * modules/nl_langinfo-tests (Files): Likewise.
28948         * modules/obstack-printf-tests (Files): Likewise.
28949         * modules/open-tests (Files): Likewise.
28950         * modules/openat-tests (Files): Likewise.
28951         * modules/perror-tests (Files): Likewise.
28952         * modules/pipe2-tests (Files): Likewise.
28953         * modules/poll-tests (Files): Likewise.
28954         * modules/popen-tests (Files): Likewise.
28955         * modules/posix_spawn-tests (Files): Likewise.
28956         * modules/posix_spawnp-tests (Files): Likewise.
28957         * modules/pread-tests (Files): Likewise.
28958         * modules/printf-posix-tests (Files): Likewise.
28959         * modules/pty-tests (Files): Likewise.
28960         * modules/random_r-tests (Files): Likewise.
28961         * modules/rawmemchr-tests (Files): Likewise.
28962         * modules/readlink-tests (Files): Likewise.
28963         * modules/remove-tests (Files): Likewise.
28964         * modules/rename-tests (Files): Likewise.
28965         * modules/renameat-tests (Files): Likewise.
28966         * modules/rmdir-tests (Files): Likewise.
28967         * modules/round-tests (Files): Likewise.
28968         * modules/roundf-tests (Files): Likewise.
28969         * modules/roundl-tests (Files): Likewise.
28970         * modules/select-tests (Files): Likewise.
28971         * modules/setenv-tests (Files): Likewise.
28972         * modules/sigaction-tests (Files): Likewise.
28973         * modules/sleep-tests (Files): Likewise.
28974         * modules/snprintf-posix-tests (Files): Likewise.
28975         * modules/snprintf-tests (Files): Likewise.
28976         * modules/sprintf-posix-tests (Files): Likewise.
28977         * modules/stat-tests (Files): Likewise.
28978         * modules/strcasestr-tests (Files): Likewise.
28979         * modules/strchrnul-tests (Files): Likewise.
28980         * modules/strerror-tests (Files): Likewise.
28981         * modules/strsignal-tests (Files): Likewise.
28982         * modules/strstr-tests (Files): Likewise.
28983         * modules/strtod-tests (Files): Likewise.
28984         * modules/strverscmp-tests (Files): Likewise.
28985         * modules/symlink-tests (Files): Likewise.
28986         * modules/symlinkat-tests (Files): Likewise.
28987         * modules/times-tests (Files): Likewise.
28988         * modules/trunc-tests (Files): Likewise.
28989         * modules/truncf-tests (Files): Likewise.
28990         * modules/truncl-tests (Files): Likewise.
28991         * modules/tsearch-tests (Files): Likewise.
28992         * modules/uname-tests (Files): Likewise.
28993         * modules/unlink-tests (Files): Likewise.
28994         * modules/unsetenv-tests (Files): Likewise.
28995         * modules/usleep-tests (Files): Likewise.
28996         * modules/utimensat-tests (Files): Likewise.
28997         * modules/vasprintf-tests (Files): Likewise.
28998         * modules/vdprintf-posix-tests (Files): Likewise.
28999         * modules/vfprintf-posix-tests (Files): Likewise.
29000         * modules/vprintf-posix-tests (Files): Likewise.
29001         * modules/vsnprintf-posix-tests (Files): Likewise.
29002         * modules/vsnprintf-tests (Files): Likewise.
29003         * modules/vsprintf-posix-tests (Files): Likewise.
29004         * modules/wcrtomb-tests (Files): Likewise.
29005         * modules/wcsnrtombs-tests (Files): Likewise.
29006         * modules/wcsrtombs-tests (Files): Likewise.
29007         * modules/wcwidth-tests (Files): Likewise.
29008         * tests/test-isfinite.c (isfinite): Ensure macro declaration.
29009         * tests/test-isinf.c (isinf): Likewise.
29010         * tests/test-isnan.c (isnan): Likewise.
29011         * tests/test-signbit.c (signbit): Likewise.
29012         * tests/test-select.c (FD_CLR, FD_ISSET, FD_SET, FD_ZERO): Ensure
29013         declaration, either as macro or with correct signature.
29014         (select): Ensure function under test is declared with correct
29015         signature in correct header.
29016         * tests/test-atexit.c (atexit): Likewise.
29017         * tests/test-btowc.c (btowc): Likewise.
29018         * tests/test-canonicalize-lgpl.c (realpath)
29019         (canonicalize_file_name): Likewise.
29020         * tests/test-ceilf1.c (ceilf): Likewise.
29021         * tests/test-ceill.c (ceill): Likewise.
29022         * tests/test-chown.c (chown): Likewise.
29023         * tests/test-dprintf-posix.c (dprintf): Likewise.
29024         * tests/test-dup2.c (dup2): Likewise.
29025         * tests/test-dup3.c (dup3): Likewise.
29026         * tests/test-duplocale.c (duplocale): Likewise.
29027         * tests/test-fchdir.c (fchdir): Likewise.
29028         * tests/test-fchownat.c (fchownat): Likewise.
29029         * tests/test-fcntl.c (fcntl): Likewise.
29030         * tests/test-fdopendir.c (fdopendir): Likewise.
29031         * tests/test-fflush.c (fflush): Likewise.
29032         * tests/test-flock.c (flock): Likewise.
29033         * tests/test-floorf1.c (floorf): Likewise.
29034         * tests/test-floorl.c (floorl): Likewise.
29035         * tests/test-fnmatch.c (fnmatch): Likewise.
29036         * tests/test-fopen.c (fopen): Likewise.
29037         * tests/test-fprintf-posix.c (fprintf): Likewise.
29038         * tests/test-freopen.c (freopen): Likewise.
29039         * tests/test-frexp.c (frexp): Likewise.
29040         * tests/test-frexpl.c (frexpl): Likewise.
29041         * tests/test-fseek.c (fseek): Likewise.
29042         * tests/test-fseeko.c (fseeko): Likewise.
29043         * tests/test-fstatat.c (fstatat): Likewise.
29044         * tests/test-fsync.c (fsync): Likewise.
29045         * tests/test-ftell.c (ftell): Likewise.
29046         * tests/test-ftello.c (ftello): Likewise.
29047         * tests/test-futimens.c (futimens): Likewise.
29048         * tests/test-getaddrinfo.c (getaddrinfo, freeaddrinfo)
29049         (gai_strerror): Likewise.
29050         * tests/test-getcwd.c (getcwd): Likewise.
29051         * tests/test-getdelim.c (getdelim): Likewise.
29052         * tests/test-getdtablesize.c (getdtablesize): Likewise.
29053         * tests/test-getgroups.c (getgroups): Likewise.
29054         * tests/test-gethostname.c (gethostname): Likewise.
29055         * tests/test-getline.c (getline): Likewise.
29056         * tests/test-getopt.c (getopt, getopt_long, getopt_long_only):
29057         Likewise.
29058         * tests/test-gettimeofday.c (gettimeofday): Likewise.
29059         * tests/test-glob.c (glob, globfree): Likewise.
29060         * tests/test-iconv.c (iconv, iconv_open, iconv_close): Likewise.
29061         * tests/test-inet_ntop.c (inet_ntop): Likewise.
29062         * tests/test-inet_pton.c (inet_pton): Likewise.
29063         * tests/test-isblank.c (isblank): Likewise.
29064         * tests/test-lchown.c (lchown): Likewise.
29065         * tests/test-ldexpl.c (ldexpl): Likewise.
29066         * tests/test-link.c (link): Likewise.
29067         * tests/test-linkat.c (linkat): Likewise.
29068         * tests/test-lseek.c (lseek): Likewise.
29069         * tests/test-lstat.c (lstat): Likewise.
29070         * tests/test-mbrtowc.c (mbrtowc): Likewise.
29071         * tests/test-mbsinit.c (mbsinit): Likewise.
29072         * tests/test-mbsnrtowcs.c (mbsnrtowcs): Likewise.
29073         * tests/test-mbsrtowcs.c (mbsrtowcs): Likewise.
29074         * tests/test-memchr.c (memchr): Likewise.
29075         * tests/test-memcmp.c (memcmp): Likewise.
29076         * tests/test-memmem.c (memmem): Likewise.
29077         * tests/test-memrchr.c (memrchr): Likewise.
29078         * tests/test-mkdir.c (mkdir): Likewise.
29079         * tests/test-mkdirat.c (mkdirat): Likewise.
29080         * tests/test-mkfifo.c (mkfifo): Likewise.
29081         * tests/test-mkfifoat.c (mkfifoat, mknodat): Likewise.
29082         * tests/test-mknod.c (mknod): Likewise.
29083         * tests/test-nanosleep.c (nanosleep): Likewise.
29084         * tests/test-nl_langinfo.c (nl_langinfo): Likewise.
29085         * tests/test-obstack-printf.c (obstack_printf, obstack_vprintf):
29086         Likewise.
29087         * tests/test-open.c (open): Likewise.
29088         * tests/test-openat.c (openat): Likewise.
29089         * tests/test-perror.c (perror): Likewise.
29090         * tests/test-pipe2.c (pipe2): Likewise.
29091         * tests/test-poll.c (poll): Likewise.
29092         * tests/test-popen.c (popen, pclose): Likewise.
29093         * tests/test-posix_spawn1.c (posix_spawnp, posix_spawnattr_init)
29094         (posix_spawnattr_destroy, posix_spawnattr_setsigmask)
29095         (posix_spawnattr_setflags, posix_spawn_file_actions_init)
29096         (posix_spawn_file_actions_destroy)
29097         (posix_spawn_file_actions_addclose)
29098         (posix_spawn_file_actions_addopen)
29099         (posix_spawn_file_actions_adddup2): Likewise.
29100         * tests/test-posix_spawn3.c (posix_spawn): Likewise.
29101         * tests/test-pread.c (pread): Likewise.
29102         * tests/test-printf-posix.c (printf): Likewise.
29103         * tests/test-pty.c (openpty, forkpty): Likewise.
29104         * tests/test-random_r.c (srandom_r, initstate_r, setstate_r)
29105         (random_r): Likewise.
29106         * tests/test-rawmemchr.c (rawmemchr): Likewise.
29107         * tests/test-readlink.c (readlink): Likewise.
29108         * tests/test-remove.c (remove): Likewise.
29109         * tests/test-rename.c (rename): Likewise.
29110         * tests/test-renameat.c (renameat): Likewise.
29111         * tests/test-rmdir.c (rmdir): Likewise.
29112         * tests/test-round1.c (round): Likewise.
29113         * tests/test-roundf1.c (roundf): Likewise.
29114         * tests/test-roundl.c (roundl): Likewise.
29115         * tests/test-setenv.c (setenv): Likewise.
29116         * tests/test-sigaction.c (sigaction): Likewise.
29117         * tests/test-sleep.c (sleep): Likewise.
29118         * tests/test-snprintf.c (snprintf): Likewise.
29119         * tests/test-sprintf-posix.c (sprintf): Likewise.
29120         * tests/test-stat.c (stat): Likewise.
29121         * tests/test-stpncpy.c (stpncpy): Likewise.
29122         * tests/test-strcasestr.c (strcasestr): Likewise.
29123         * tests/test-strchrnul.c (strchrnul): Likewise.
29124         * tests/test-strerror.c (strerror): Likewise.
29125         * tests/test-strsignal.c (strsignal): Likewise.
29126         * tests/test-strstr.c (strstr): Likewise.
29127         * tests/test-strtod.c (strtod): Likewise.
29128         * tests/test-strverscmp.c (strverscmp): Likewise.
29129         * tests/test-symlink.c (symlink): Likewise.
29130         * tests/test-symlinkat.c (symlinkat, readlinkat): Likewise.
29131         * tests/test-times.c (times): Likewise.
29132         * tests/test-trunc1.c (trunc): Likewise.
29133         * tests/test-truncf1.c (truncf): Likewise.
29134         * tests/test-truncl.c (truncl): Likewise.
29135         * tests/test-tsearch.c (tdelete, tfind, tsearch, twalk):
29136         Likewise.
29137         * tests/test-uname.c (uname): Likewise.
29138         * tests/test-unlink.c (unlink): Likewise.
29139         * tests/test-unlinkat.c (unlinkat): Likewise.
29140         * tests/test-unsetenv.c (unsetenv): Likewise.
29141         * tests/test-usleep.c (usleep): Likewise.
29142         * tests/test-utimensat.c (utimensat): Likewise.
29143         * tests/test-vasprintf.c (asprintf, vasprintf): Likewise.
29144         * tests/test-vdprintf-posix.c (vdprintf): Likewise.
29145         * tests/test-vfprintf-posix.c (vfprintf): Likewise.
29146         * tests/test-vprintf-posix.c (vprintf): Likewise.
29147         * tests/test-vsnprintf.c (vsnprintf): Likewise.
29148         * tests/test-vsprintf-posix.c (vsprintf): Likewise.
29149         * tests/test-wcrtomb.c (wcrtomb): Likewise.
29150         * tests/test-wcsnrtombs.c (wcsnrtombs): Likewise.
29151         * tests/test-wcsrtombs.c (wcsrtombs): Likewise.
29152         * tests/test-wcwidth.c (wcwidth): Likewise.
29153
29154         build: pull in conditional headers during GNULIB_POSIXCHECK
29155         * lib/stdio.in.h (includes): Using GNULIB_POSIXCHECK also requires
29156         definitions from any conditionally-included headers.
29157         * lib/stdlib.in.h (includes): Likewise.
29158         * lib/unistd.in.h (includes): Likewise.
29159
29160 2009-12-24  Bruno Haible  <bruno@clisp.org>
29161
29162         * tests/test-argv-iter.c: Include header file being tested immediately
29163         after config.h.
29164         * tests/test-base64.c: Likewise.
29165         * tests/test-flock.c: Likewise.
29166         * tests/test-fsync.c: Likewise.
29167         * tests/test-getdate.c: Likewise.
29168         * tests/test-getndelim2.c: Likewise.
29169         * tests/test-isfinite.c: Likewise.
29170         * tests/test-isinf.c: Likewise.
29171         * tests/test-strerror.c: Likewise.
29172         * tests/test-strsignal.c: Likewise.
29173
29174 2009-12-23  Eric Blake  <ebb9@byu.net>
29175
29176         unistd: work around cygwin bug
29177         * lib/unistd.in.h (includes): Pick up headers needed for cygwin.
29178         * doc/posix-functions/unlinkat.texi (unlinkat): Document the bug.
29179         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
29180
29181 2009-12-23  Bruno Haible  <bruno@clisp.org>
29182
29183         localename: More tests.
29184         * tests/test-localename.c (SIZEOF): New macro.
29185         (categories): New variable.
29186         (test_locale_name, test_locale_name_posix, test_locale_name_environ,
29187         test_locale_name_default): Add test w.r.t. thread locale.
29188         (test_locale_name_thread): New function.
29189         (main): Invoke it.
29190
29191         localename: Make aware of thread locale.
29192         * lib/localename.h (gl_locale_name_thread): New declaration.
29193         (gl_locale_name, gl_locale_name_posix, gl_locale_name_default): Clarify
29194         behaviour with respect to thread locale.
29195         * lib/localename.c: Include <limits.h>, <stddef.h>, <xlocale.h>,
29196         <langinfo.h>, glthread/lock.h.
29197         (SIZE_BITS): New macro.
29198         (string_hash): New function.
29199         (struct hash_node): New type.
29200         (HASH_TABLE_SIZE): New macro.
29201         (struniq_hash_table, struniq_lock): New variables.
29202         (struniq): New function.
29203         (gl_locale_name_thread): New function.
29204         (gl_locale_name): Invoke it.
29205         * m4/localename.m4 (gl_LOCALENAME): Test for uselocale function.
29206         * modules/localename (Depends-on): Add lock.
29207         Reported by Mike Gran <spk121@yahoo.com>.
29208
29209 2009-12-23  Eric Blake  <ebb9@byu.net>
29210
29211         va-args: new module
29212         * modules/va-args: New file.
29213         * m4/va-args.m4 (gl_VA_ARGS): Likewise.
29214         * MODULES.html.sh (Core language properties): Mention it.
29215
29216         gnulib-common: prefer _GL_UNUSED over _UNUSED_PARAMETER_
29217         * m4/gnulib-common.m4 (gl_COMMON): Create a more-appropriately
29218         named alias for __attribute__((__unused__)).
29219         * lib/chown.c: Update client.
29220         * lib/fchmodat.c: Likewise.
29221         * lib/fts.c: Likewise.
29222         * lib/getdate.y: Likewise.
29223         * lib/getgroups.c: Likewise.
29224         * lib/getopt.c: Likewise.
29225         * lib/getugroups.c: Likewise.
29226         * lib/mkdir.c: Likewise.
29227         * lib/mkfifo.c: Likewise.
29228         * lib/mkfifoat.c: Likewise.
29229         * lib/mknod.c: Likewise.
29230         * lib/mknodat.c: Likewise.
29231         * lib/readlink.c: Likewise.
29232         * lib/se-context.in.h: Likewise.
29233         * lib/se-selinux.in.h: Likewise.
29234         * lib/sockets.c: Likewise.
29235         * lib/symlink.c: Likewise.
29236         * lib/symlinkat.c: Likewise.
29237         * lib/unicodeio.c: Likewise.
29238         * lib/unistr.h: Likewise.
29239         * tests/test-areadlink.c: Likewise.
29240         * tests/test-areadlinkat.c: Likewise.
29241         * tests/test-filenamecat.c: Likewise.
29242         * tests/test-fseeko.c: Likewise.
29243         * tests/test-ftello.c: Likewise.
29244         * tests/test-getdate.c: Likewise.
29245         * tests/test-getgroups.c: Likewise.
29246         * tests/test-gethostname.c: Likewise.
29247         * tests/test-quotearg.c: Likewise.
29248         * tests/test-version-etc.c: Likewise.
29249         * tests/test-xalloc-die.c: Likewise.
29250         * tests/test-xfprintf-posix.c: Likewise.
29251         * tests/test-xprintf-posix.c: Likewise.
29252         * tests/test-xvasprintf.c: Likewise.
29253
29254         tests: avoid compiler warnings
29255         * tests/test-fcntl.c (main): Delete unused parameters.
29256         * tests/test-freopen-safer.c (main): Likewise.
29257         * tests/test-xalloc-die.c (main): Mark unused parameters.
29258         * tests/test-fseeko.c (main): Likewise.
29259         * tests/test-ftello.c (main): Likewise.
29260         * tests/test-nanosleep.c (main): Avoid declaration warning.
29261         * tests/test-sleep.c (main): Likewise.
29262         * tests/test-unsetenv.c (main): Silence warning about string
29263         literal.
29264         * m4/setenv.m4 (gl_FUNC_UNSETENV): Likewise.
29265
29266 2009-12-23  Bruno Haible  <bruno@clisp.org>
29267
29268         * tests/test-localename.c (test_locale_name): New function, extracted
29269         from main. Also test mixed situations.
29270         (test_locale_name_posix, test_locale_name_environ,
29271         test_locale_name_default): New functions.
29272         (main): Invoke them all.
29273         * modules/localename-tests (configure.ac): Test for newlocale.
29274
29275 2009-12-23  Bruno Haible  <bruno@clisp.org>
29276
29277         unistd: Ensure getcwd gets declared before being overridden.
29278         * lib/unistd.in.h: Conditionally include <io.h>.
29279
29280 2009-12-22  Bruno Haible  <bruno@clisp.org>
29281
29282         wchar: Diagnose broken combination of glibc and gcc versions and flags.
29283         * m4/wchar.m4 (gl_WCHAR_H_INLINE_OK): New macro.
29284         (gl_WCHAR_H): Invoke it.
29285         * m4/btowc.m4 (gl_FUNC_BTOWC): Require it.
29286         * doc/posix-headers/wchar.texi: Mention the interoperability problem.
29287         Reported by Karl Berry <karl@freefriends.org>.
29288
29289 2009-12-22  Eric Blake  <ebb9@byu.net>
29290
29291         math, unistd: avoid redundant includes
29292         * lib/math.in.h (isnan): No need to re-include <math.h>.
29293         * lib/unistd.in.h (getcwd): Likewise, for <stdlib.h>.
29294
29295         getsubopt: work around cygwin bug
29296         * lib/stdlib.in.h (includes): Move unistd inclusion sooner, to
29297         avoid conflicting with system getsubopt.
29298         * doc/posix-functions/getsubopt.texi (getsubopt): Document the
29299         bug.
29300
29301         getopt: synchronize from glibc
29302         * lib/getopt.c (_getopt_initialize, _getopt_internal_r): Swap
29303         parameter order.  Adjust all callers.
29304         (_getopt_internal_r, main): Adjust quoting in error messages.
29305         Drop considerations for outdated POSIX 1003.2 error message.
29306         * lib/getopt1.c (_getopt_long_r, _getopt_long_only_r): Adjust
29307         callers.
29308         * lib/getopt_int.h (_getopt_internal_r): Adjust prototype.
29309
29310         test-getopt: test stderr behavior
29311         * modules/getopt-posix-tests (Depends-on): Add dup2.
29312         * tests/test-getopt.c (ASSERT): Avoid stderr.
29313         (main): Move stderr to a temporary file.
29314         * tests/test-getopt.h (getopt_loop): No longer manipulate opterr.
29315         Instead, add parameter to inform caller if output occurred.
29316         (test_getopt): Adjust all existing tests to expect silence, and
29317         add new tests of leading ":".
29318         * doc/glibc-functions/getopt_long.texi (getopt_long): Document
29319         glibc shortcomings with leading "-:" or "+:" in optstring.
29320         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
29321         Likewise.
29322         * doc/posix-functions/getopt.texi (getopt): Likewise.
29323
29324         test-getopt: enhance test
29325         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Require that getopt_long
29326         supports optind=0.
29327         * tests/test-getopt.c (OPTIND_MIN): Move...
29328         * tests/test-getopt.h (OPTIND_MIN): ...here.
29329         * tests/test-getopt_long.h (test_getopt_long): Add more coverage.
29330         Require that optind=0 works, since modern BSD supports it in
29331         addition to optreset, and since coreutils expects it.
29332         (test_getopt_long_only): New test.
29333         * doc/glibc-functions/getopt_long.texi (getopt_long): Document
29334         glibc shortcomings with 'W;', and enforcement of optind=0.
29335         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
29336         Likewise.
29337
29338 2009-12-21  Bruno Haible  <bruno@clisp.org>
29339
29340         localename: Improvements for MacOS X and Cygwin.
29341         * lib/localename.h (gl_locale_name_environ): New declaration.
29342         * lib/localename.c (gl_locale_name_environ): New function, extracted from
29343         gl_locale_name_posix. Ignore dummy LANG values on MacOS X and Cygwin.
29344         (gl_locale_name_posix): Invoke it.
29345         (gl_locale_name_default): Add comments. Use Windows native API also on
29346         Cygwin.
29347
29348 2009-12-21  Bruno Haible  <bruno@clisp.org>
29349
29350         Update list of Win32 locale ids.
29351         * lib/localename.c (LANG_ROMANSH): Renamed from LANG_RHAETO_ROMANCE.
29352         (LANG_SAMI): Renamed from LANG_SAAMI.
29353         (LANG_BASHKIR, LANG_LUXEMBOURGISH, LANG_GREENLANDIC,
29354         LANG_MAPUDUNGUN, LANG_MOHAWK, LANG_BRETON, LANG_OCCITAN, LANG_CORSICAN,
29355         LANG_ALSATIAN, LANG_YAKUT, LANG_KICHE, LANG_KINYARWANDA, LANG_WOLOF,
29356         LANG_DARI, LANG_SCOTTISH_GAELIC): New macros.
29357         (SUBLANG_AFRIKAANS_SOUTH_AFRICA, SUBLANG_ALBANIAN_ALBANIA,
29358         SUBLANG_ALSATIAN_FRANCE, SUBLANG_AMHARIC_ETHIOPIA,
29359         SUBLANG_ARMENIAN_ARMENIA, SUBLANG_ASSAMESE_INDIA,
29360         SUBLANG_BASHKIR_RUSSIA, SUBLANG_BASQUE_BASQUE,
29361         SUBLANG_BELARUSIAN_BELARUS, SUBLANG_BRETON_FRANCE,
29362         SUBLANG_BULGARIAN_BULGARIA, SUBLANG_CAMBODIAN_CAMBODIA,
29363         SUBLANG_CATALAN_SPAIN, SUBLANG_CORSICAN_FRANCE,
29364         SUBLANG_CZECH_CZECH_REPUBLIC, SUBLANG_DANISH_DENMARK,
29365         SUBLANG_DARI_AFGHANISTAN, SUBLANG_DIVEHI_MALDIVES,
29366         SUBLANG_DUTCH_SURINAM, SUBLANG_ESTONIAN_ESTONIA,
29367         SUBLANG_FAEROESE_FAROE_ISLANDS, SUBLANG_FARSI_IRAN,
29368         SUBLANG_FINNISH_FINLAND, SUBLANG_FRISIAN_NETHERLANDS,
29369         SUBLANG_GALICIAN_SPAIN, SUBLANG_GEORGIAN_GEORGIA,
29370         SUBLANG_GREEK_GREECE, SUBLANG_GREENLANDIC_GREENLAND,
29371         SUBLANG_GUJARATI_INDIA, SUBLANG_HAUSA_NIGERIA_LATIN,
29372         SUBLANG_HEBREW_ISRAEL, SUBLANG_HINDI_INDIA, SUBLANG_HUNGARIAN_HUNGARY,
29373         SUBLANG_ICELANDIC_ICELAND, SUBLANG_IGBO_NIGERIA,
29374         SUBLANG_INDONESIAN_INDONESIA, SUBLANG_INUKTITUT_CANADA,
29375         SUBLANG_INUKTITUT_CANADA_LATIN, SUBLANG_IRISH_IRELAND,
29376         SUBLANG_JAPANESE_JAPAN, SUBLANG_KANNADA_INDIA,
29377         SUBLANG_KAZAK_KAZAKHSTAN, SUBLANG_KICHE_GUATEMALA,
29378         SUBLANG_KINYARWANDA_RWANDA, SUBLANG_KONKANI_INDIA,
29379         SUBLANG_KYRGYZ_KYRGYZSTAN, SUBLANG_LAO_LAOS, SUBLANG_LATVIAN_LATVIA,
29380         SUBLANG_LITHUANIAN_LITHUANIA, SUBLANG_LOWER_SORBIAN_GERMANY,
29381         SUBLANG_LUXEMBOURGISH_LUXEMBOURG, SUBLANG_MACEDONIAN_MACEDONIA,
29382         SUBLANG_MALAYALAM_INDIA, SUBLANG_MALTESE_MALTA,
29383         SUBLANG_MAORI_NEW_ZEALAND, SUBLANG_MAPUDUNGUN_CHILE,
29384         SUBLANG_MARATHI_INDIA, SUBLANG_MOHAWK_CANADA, SUBLANG_NEPALI_NEPAL,
29385         SUBLANG_OCCITAN_FRANCE, SUBLANG_ORIYA_INDIA,
29386         SUBLANG_PASHTO_AFGHANISTAN, SUBLANG_POLISH_POLAND,
29387         SUBLANG_ROMANSH_SWITZERLAND, SUBLANG_SAMI_NORTHERN_NORWAY,
29388         SUBLANG_SAMI_NORTHERN_SWEDEN, SUBLANG_SAMI_NORTHERN_FINLAND,
29389         SUBLANG_SAMI_LULE_NORWAY, SUBLANG_SAMI_LULE_SWEDEN,
29390         SUBLANG_SAMI_SOUTHERN_NORWAY, SUBLANG_SAMI_SOUTHERN_SWEDEN,
29391         SUBLANG_SAMI_SKOLT_FINLAND, SUBLANG_SAMI_INARI_FINLAND,
29392         SUBLANG_SANSKRIT_INDIA, SUBLANG_SINHALESE_SRI_LANKA,
29393         SUBLANG_SLOVAK_SLOVAKIA, SUBLANG_SLOVENIAN_SLOVENIA,
29394         SUBLANG_SOTHO_SOUTH_AFRICA, SUBLANG_SWAHILI_KENYA,
29395         SUBLANG_SWEDISH_SWEDEN, SUBLANG_SYRIAC_SYRIA,
29396         SUBLANG_TAGALOG_PHILIPPINES, SUBLANG_TAJIK_TAJIKISTAN,
29397         SUBLANG_TAMIL_INDIA, SUBLANG_TATAR_RUSSIA, SUBLANG_TELUGU_INDIA,
29398         SUBLANG_THAI_THAILAND, SUBLANG_TSWANA_SOUTH_AFRICA,
29399         SUBLANG_TURKISH_TURKEY, SUBLANG_TURKMEN_TURKMENISTAN,
29400         SUBLANG_UKRAINIAN_UKRAINE, SUBLANG_UPPER_SORBIAN_GERMANY,
29401         SUBLANG_VIETNAMESE_VIETNAM, SUBLANG_WELSH_UNITED_KINGDOM,
29402         SUBLANG_WOLOF_SENEGAL, SUBLANG_XHOSA_SOUTH_AFRICA,
29403         SUBLANG_YAKUT_RUSSIA, SUBLANG_YI_PRC, SUBLANG_YORUBA_NIGERIA,
29404         SUBLANG_ZULU_SOUTH_AFRICA): New macros.
29405         (gl_locale_name_from_win32_LANGID): Handle also the territory neutral
29406         locale ids. Add support for Alsatian, Bashkir, Breton, Corsican, Dari,
29407         Greenlandic, K'iche', Kinyarwanda, Luxembourgish, Mapudungun, Mohawk,
29408         Occitan, Scottish Gaelic, Wolof, Yakut. Change language code for Yi.
29409         Add more languages and countries for Sami, Sorbian. Add more countries
29410         for Serbian, Dutch. Add more scripts for Inuktitut. Be more precise
29411         for Pashto. Change country for Syriac, Tswana.
29412
29413 2009-12-21  Eric Blake  <ebb9@byu.net>
29414
29415         test-utimens: avoid spurious failure
29416         * tests/test-chown.h (nap): Factor...
29417         * tests/nap.h: ...into new file.
29418         * tests/test-lchown.h (nap): Avoid duplication.
29419         * tests/test-utimens-common.h (nap): Use shared implementation,
29420         necessary on file systems with 1-second resolution.
29421         * modules/chown-tests (Files): Include new file.
29422         * modules/fdutimensat-tests (Files): Likewise.
29423         * modules/futimens-tests (Files): Likewise.
29424         * modules/lchown-tests (Files): Likewise.
29425         * modules/openat-tests (Files): Likewise.
29426         * modules/utimens-tests (Files): Likewise.
29427         * modules/utimensat-tests (Files): Likewise.
29428
29429 2009-12-19  Eric Blake  <ebb9@byu.net>
29430
29431         futimens, utimensat: work around Linux bug
29432         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Detect ctime bug.
29433         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
29434         * lib/utimensat.c (rpl_utimensat): Work around it.
29435         * lib/futimens.c (rpl_futimens): Adjust comment.
29436
29437         utimens: work around Linux ctime bug
29438         * lib/utimens.c (detect_ctime_bug): New helper function.
29439         (update_timespec): Differentiate between workaround needed for
29440         this bug vs. what is needed for systems that lack utimensat.
29441         (fdutimens, lutimens): Work around bug.
29442
29443         utimens: check for ctime update
29444         * tests/test-utimens-common.h (check_ctime): Define.
29445         * tests/test-utimens.h (test_utimens): Expose the Linux bug.
29446         * tests/test-futimens.h (test_futimens): Likewise.
29447         * tests/test-lutimens.h (test_lutimens): Likewise.
29448         * doc/posix-functions/futimens.texi (futimens): Document the bug.
29449         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
29450
29451 2009-12-19  Bruno Haible  <bruno@clisp.org>
29452
29453         dprintf-posix: Check against memory leak fixed on 2009-12-15.
29454         * tests/test-dprintf-posix2.sh: New file.
29455         * tests/test-dprintf-posix2.c: New file.
29456         * modules/dprintf-posix-tests (Files): Add them.
29457         (configure.ac): Check for getrlimit and setrlimit.
29458         (Makefile.am): Augment TESTS and CHECK_PROGRAMS.
29459
29460 2009-12-19  Bruno Haible  <bruno@clisp.org>
29461
29462         fprintf-posix: Check against memory leak fixed on 2009-12-15.
29463         * tests/test-fprintf-posix3.sh: New file.
29464         * tests/test-fprintf-posix3.c: New file.
29465         * modules/fprintf-posix-tests (Files): Add them.
29466         (Makefile.am): Augment TESTS and CHECK_PROGRAMS.
29467
29468 2009-12-19  Eric Blake  <ebb9@byu.net>
29469
29470         dirfd: fix prototype
29471         * lib/dirent.in.h (dirfd): Argument is not const, per POSIX.
29472         * lib/dirfd.c (dirfd): Likewise.
29473
29474         canonicalize: reduce memory usage
29475         * lib/canonicalize.c (canonicalize_filename_mode): Trim the
29476         allocation to size.
29477         Reported by Solar Designer <solar@openwall.com>.
29478
29479 2009-12-19  Bruno Haible  <bruno@clisp.org>
29480
29481         New module attribute 'Applicability'.
29482         * modules/TEMPLATE-EXTENDED: New field 'Applicability'.
29483         * gnulib-tool: New option --extract-applicability.
29484         (func_usage): Document it.
29485         (sed_extract_prog): Recognize it.
29486         (func_get_applicability): New function.
29487         (func_import): Generalize handling of 'link-warning' module.
29488         * modules/link-warning (Applicability): New section.
29489         * modules/arg-nonnull (Applicability): New section.
29490         Repoted by Simon Josefsson <simon@josefsson.org>.
29491
29492 2009-12-19  Bruno Haible  <bruno@clisp.org>
29493
29494         fflush: tweak
29495         * lib/fflush.c (update_fpos_cache): Don't use fpos_t on Cygwin.
29496         * lib/fseeko.c (rpl_fseeko): Likewise.
29497
29498 2009-12-16  José E. Marchesi  <jemarch@gnu.org>  (tiny change)
29499
29500         * lib/gl_list.h: Fix typo in comment.
29501
29502 2009-12-16  Eric Blake  <ebb9@byu.net>
29503
29504         fcntl: use to simplify other modules
29505         * modules/cloexec (Depends-on): Add fcntl.
29506         * modules/fchdir (Depends-on): Likewise.
29507         * modules/fd-safer-flag (Depends-on): Likewise.
29508         * modules/unistd-safer (Depends-on): Likewise.
29509         * modules/dup3 (configure.ac): Set module indicator.
29510         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Replace fcntl if fchdir is
29511         missing.
29512         * lib/fchdir.c (_gl_register_dup): Fix comment.
29513         * lib/cloexec.c (dup_cloexec): Simplify, by relying on fcntl.
29514         * lib/dup-safer.c (dup_safer): Likewise.
29515         * lib/dup-safer-flag.c (dup_safer_flag): Likewise.
29516         * lib/dup3.c (dup3): Likewise.
29517         * tests/test-fchdir.c (main): Enhance test.
29518         Fixes a dup_cloexec bug reported by OndÅ™ej Vašík.
29519
29520         fcntl: port portions of fcntl to mingw
29521         * m4/fcntl.m4 (gl_FUNC_FCNTL): Also build fcntl.c on mingw.
29522         * lib/fcntl.c (fcntl) <F_DUPFD, F_DUPFD_CLOEXEC, F_GETFD>: Provide
29523         replacement for mingw.
29524         * modules/fcntl (Description): Update.
29525         (Depends-on): Add dup2.
29526         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Add witness.
29527         * modules/fcntl-h (Makefile.am): Substitute it.
29528         * lib/fcntl.in.h (fcntl): Update declaration.
29529         (F_DUPFD, F_GETFD): New macros, when needed.
29530         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
29531         * doc/posix-functions/fcntl.texi (fcntl): Likewise.
29532         * tests/test-fcntl.c (check_flags, main): Enhance test for items
29533         we now guarantee.
29534
29535         fcntl: work around cygwin bug in F_DUPFD
29536         * m4/fcntl.m4 (gl_REPLACE_FCNTL): New macro.
29537         (gl_FUNC_FCNTL): Use it.  Test for F_DUPFD bug.
29538         * lib/fcntl.c (rpl_fcntl) <F_DUPFD>: Work around it.
29539         <F_DUPFD_CLOEXEC>: Reduce calls to _gl_register_dup.
29540         * doc/posix-functions/fcntl.texi (fcntl): Document it.
29541
29542         fcntl: support F_DUPFD_CLOEXEC on systems with fcntl
29543         * modules/fcntl (Files): List new files.
29544         (configure.ac): Run a test.
29545         * m4/fcntl.m4 (gl_FUNC_FCNTL): New file.
29546         * lib/fcntl.c (rpl_fcntl): Likewise.
29547         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Add witness defaults.
29548         (gl_FCNTL_H): Always replace fcntl.h.
29549         * modules/fcntl-h (Makefile.am): Substitute witnesses.
29550         * lib/fcntl.in.h (fcntl): Declare replacement.
29551         (F_DUPFD_CLOEXEC, GNULIB_defined_F_DUPFD_CLOEXEC): New macro when
29552         needed, plus a witness.
29553         * doc/posix-functions/fcntl.texi (fcntl): Document this.
29554         * doc/posix-headers/fcntl.texi (fcntl.h): Likewise.
29555         * tests/test-fcntl.c: New file.
29556         * modules/fcntl-tests: Likewise.
29557
29558         binary-io: avoid potential compilation warning
29559         * lib/binary-io.h [__DJGPP__]: Avoid null preprocessor
29560         directives.
29561
29562         fflush: avoid compilation error on NetBSD
29563         * lib/fflush.c (update_fpos_cache): Use a union to safely convert
29564         between off_t and fpos_t, since the latter is sometimes a struct.
29565         * lib/fseeko.c (rpl_fseeko): Likewise.
29566         Reported by Alexander Nasonov <alnsn@yandex.ru>.
29567
29568 2009-12-15  Eric Blake  <ebb9@byu.net>
29569
29570         fcntl-h, stdio, sys_ioctl: fix declarations
29571         * lib/stdio.in.h (dprintf): Use of link warning on a variadic
29572         function must not take arguments.
29573         * lib/sys_ioctl.in.h (ioctl): Likewise.
29574         * lib/fcntl.in.h (openat): Likewise.  Declare extern.
29575         (open): Add a link warning.
29576
29577 2009-12-15  Jim Meyering  <meyering@redhat.com>
29578
29579         areadlink, areadlink-with-size: relax license to LGPLv2+
29580         * modules/areadlink (License): Relax to LGPLv2+.
29581         * modules/areadlink-with-size (License): Likewise.
29582
29583 2009-12-15  Joel E. Denny  <jdenny@clemson.edu>
29584             Bruno Haible  <bruno@clisp.org>
29585
29586         *printf: Fix memory leak.
29587         * lib/fprintf.c (fprintf): Free memory allocated by vasnprintf.
29588         * lib/vfprintf.c (vfprintf): Likewise.
29589         * lib/dprintf.c (dprintf): Likewise.
29590         * lib/vdprintf.c (vdprintf): Likewise.
29591
29592 2009-12-14  Eric Blake  <ebb9@byu.net>
29593
29594         accept4: adjust module dependencies
29595         * modules/accept4 (Depends-on): Use fcntl-h, not fcntl.
29596
29597         utimens: one more try at avoiding compiler warning
29598         * lib/utimens.c (lutimens): Lower scope of result.
29599
29600 2009-12-13  Bruno Haible  <bruno@clisp.org>
29601
29602         Move the malloc checking from module 'list' to new module 'xlist'.
29603         * modules/xlist: New file.
29604         * lib/gl_xlist.h: New file.
29605         * lib/gl_xlist.c: New file.
29606         * lib/gl_list.h (gl_list_create_empty, gl_list_create,
29607         gl_list_node_set_value, gl_list_set_at, gl_list_add_first,
29608         gl_list_add_last, gl_list_add_before, gl_list_add_after,
29609         gl_list_nx_add_at, gl_sortedlist_add): Disable declarations.
29610         (gl_list_nx_create_empty, gl_list_nx_create, gl_list_node_nx_set_value,
29611         gl_list_nx_set_at, gl_list_nx_add_first, gl_list_nx_add_last,
29612         gl_list_nx_add_before, gl_list_nx_add_after, gl_list_nx_add_at,
29613         gl_sortedlist_nx_add): New declarations.
29614         (struct gl_list_implementation): Rename and change methods accordingly.
29615         (gl_list_nx_create_empty): Renamed from gl_list_create_empty.
29616         (gl_list_nx_create): Renamed from gl_list_create.
29617         (gl_list_node_nx_set_value): Renamed from gl_list_node_set_value.
29618         (gl_list_nx_set_at): Renamed from gl_list_set_at.
29619         (gl_list_nx_add_first): Renamed from gl_list_add_first.
29620         (gl_list_nx_add_last): Renamed from gl_list_add_last.
29621         (gl_list_nx_add_before): Renamed from gl_list_add_before.
29622         (gl_list_nx_add_after): Renamed from gl_list_add_after.
29623         (gl_list_nx_add_at): Renamed from gl_list_add_at.
29624         (gl_sortedlist_nx_add): Renamed from gl_sortedlist_add.
29625         * lib/gl_list.c (gl_list_nx_create_empty): Renamed from
29626         gl_list_create_empty.
29627         (gl_list_nx_create): Renamed from gl_list_create.
29628         (gl_list_node_nx_set_value): Renamed from gl_list_node_set_value.
29629         (gl_list_nx_set_at): Renamed from gl_list_set_at.
29630         (gl_list_nx_add_first): Renamed from gl_list_add_first.
29631         (gl_list_nx_add_last): Renamed from gl_list_add_last.
29632         (gl_list_nx_add_before): Renamed from gl_list_add_before.
29633         (gl_list_nx_add_after): Renamed from gl_list_add_after.
29634         (gl_list_nx_add_at): Renamed from gl_list_add_at.
29635         (gl_sortedlist_nx_add): Renamed from gl_sortedlist_add.
29636         * lib/gl_array_list.c: Don't include xalloc.h.
29637         (gl_array_nx_create_empty): Renamed from gl_array_create_empty. Return
29638         NULL upon out-of-memory.
29639         (gl_array_nx_create): Renamed from gl_array_create. Return NULL upon
29640         out-of-memory.
29641         (gl_array_node_nx_set_value): Renamed from gl_array_node_set_value.
29642         Change return type to 'int'.
29643         (gl_array_nx_set_at): Renamed from gl_array_set_at.
29644         (grow): Change return type to 'int'. Return -1 upon out-of-memory.
29645         (gl_array_nx_add_first): Renamed from gl_array_add_first. Return NULL
29646         upon out-of-memory.
29647         (gl_array_nx_add_last): Renamed from gl_array_add_last. Return NULL
29648         upon out-of-memory.
29649         (gl_array_nx_add_before): Renamed from gl_array_add_before. Return NULL
29650         upon out-of-memory.
29651         (gl_array_nx_add_after): Renamed from gl_array_add_after. Return NULL
29652         upon out-of-memory.
29653         (gl_array_nx_add_at): Renamed from gl_array_add_at. Return NULL upon
29654         out-of-memory.
29655         (gl_array_sortedlist_nx_add): Renamed from gl_array_sortedlist_add.
29656         Update.
29657         (gl_array_list_implementation): Update.
29658         * lib/gl_carray_list.c: Don't include xalloc.h.
29659         (gl_carray_nx_create_empty): Renamed from gl_carray_create_empty.
29660         Return NULL upon out-of-memory.
29661         (gl_carray_nx_create): Renamed from gl_carray_create. Return NULL upon
29662         out-of-memory.
29663         (gl_carray_node_nx_set_value): Renamed from gl_carray_node_set_value.
29664         Change return type to 'int'.
29665         (gl_carray_nx_set_at): Renamed from gl_carray_set_at.
29666         (grow): Change return type to 'int'. Return -1 upon out-of-memory.
29667         (gl_carray_nx_add_first): Renamed from gl_carray_add_first. Return NULL
29668         upon out-of-memory.
29669         (gl_carray_nx_add_last): Renamed from gl_carray_add_last. Return NULL
29670         upon out-of-memory.
29671         (gl_carray_nx_add_at): Renamed from gl_carray_add_at. Return NULL upon
29672         out-of-memory.
29673         (gl_carray_nx_add_before): Renamed from gl_carray_add_before. Update.
29674         (gl_carray_nx_add_after): Renamed from gl_carray_add_after. Update.
29675         (gl_carray_sortedlist_nx_add): Renamed from gl_carray_sortedlist_add.
29676         Update.
29677         (gl_carray_list_implementation): Update.
29678         * lib/gl_anyhash_list2.h (hash_resize): Do nothing upon out-of-memory.
29679         * lib/gl_anylinked_list2.h (gl_linked_nx_create_empty): Renamed from
29680         gl_linked_create_empty. Return NULL upon out-of-memory.
29681         (gl_linked_nx_create): Renamed from gl_linked_create. Return NULL upon
29682         out-of-memory.
29683         (gl_linked_node_nx_set_value): Renamed from gl_linked_node_set_value.
29684         Change return type to 'int'. Return -1 upon out-of-memory.
29685         (gl_linked_nx_set_at): Renamed from gl_linked_set_at. Return NULL upon
29686         out-of-memory.
29687         (gl_linked_nx_add_first): Renamed from gl_linked_add_first. Return NULL
29688         upon out-of-memory.
29689         (gl_linked_nx_add_last): Renamed from gl_linked_add_last. Return NULL
29690         upon out-of-memory.
29691         (gl_linked_nx_add_before): Renamed from gl_linked_add_before. Return
29692         NULL upon out-of-memory.
29693         (gl_linked_nx_add_after): Renamed from gl_linked_add_after. Return NULL
29694         upon out-of-memory.
29695         (gl_linked_nx_add_at): Renamed from gl_linked_add_at. Return NULL upon
29696         out-of-memory.
29697         (gl_linked_sortedlist_nx_add): Renamed from gl_linked_sortedlist_add.
29698         Update.
29699         * lib/gl_linked_list.c: Don't include xalloc.h.
29700         (gl_linked_list_implementation): Update.
29701         * lib/gl_linkedhash_list.c: Don't include xalloc.h.
29702         (add_to_bucket): Change return type to 'int'.
29703         (gl_linkedhash_list_implementation): Update.
29704         * lib/gl_anytree_list1.h (free_subtree): New function.
29705         * lib/gl_anytree_list2.h (gl_tree_nx_create_empty): Renamed from
29706         gl_tree_create_empty. Return NULL upon out-of-memory.
29707         (gl_tree_node_nx_set_value): Renamed from gl_tree_node_set_value.
29708         Change return type to 'int'. Return -1 upon out-of-memory.
29709         (gl_tree_nx_set_at): Renamed from gl_tree_set_at. Return NULL upon
29710         out-of-memory.
29711         (gl_tree_nx_add_at): Renamed from gl_tree_add_at. Update.
29712         (gl_tree_remove_node): New function, moved here from
29713         lib/gl_anyavltree_list2.h and lib/gl_anyrbtree_list2.h.
29714         (gl_tree_sortedlist_nx_add): Renamed from gl_tree_sortedlist_add.
29715         Update.
29716         * lib/gl_anyavltree_list2.h (create_subtree_with_contents): Use
29717         malloc, not xmalloc. Return NULL upon out-of-memory.
29718         (gl_tree_nx_create): Renamed from gl_tree_create. Return NULL upon
29719         out-of-memory.
29720         (gl_tree_remove_node_from_tree): New function, extracted from
29721         gl_tree_remove_node.
29722         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Return NULL
29723         upon out-of-memory.
29724         (gl_tree_nx_add_last): Renamed from gl_tree_add_last. Return NULL upon
29725         out-of-memory.
29726         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Return NULL
29727         upon out-of-memory.
29728         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Return NULL
29729         upon out-of-memory.
29730         (gl_tree_remove_node): Remove function. Moved to gl_anytree_list2.h.
29731         * lib/gl_anyrbtree_list2.h (create_subtree_with_contents): Use malloc,
29732         not xmalloc. Return NULL upon out-of-memory.
29733         (gl_tree_nx_create): Renamed from gl_tree_create. Return NULL upon
29734         out-of-memory.
29735         (gl_tree_remove_node_from_tree): New function, extracted from
29736         gl_tree_remove_node.
29737         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Return NULL
29738         upon out-of-memory.
29739         (gl_tree_nx_add_last): Renamed from gl_tree_add_last. Return NULL upon
29740         out-of-memory.
29741         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Return NULL
29742         upon out-of-memory.
29743         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Return NULL
29744         upon out-of-memory.
29745         (gl_tree_remove_node): Remove function. Moved to gl_anytree_list2.h.
29746         * lib/gl_avltree_list.c: Don't include xalloc.h. Include
29747         gl_anytree_list1.h before gl_anyavltree_list2.h.
29748         (gl_avltree_list_implementation): Update.
29749         * lib/gl_rbtree_list.c: Don't include xalloc.h. Include
29750         gl_anytree_list1.h before gl_anyavltree_list2.h.
29751         (gl_rbtree_list_implementation): Update.
29752         * lib/gl_anytreehash_list1.h (add_to_bucket, add_nodes_to_buckets):
29753         Change return type to 'int'. Return -1 upon out-of-memory. Use
29754         __builtin_expect.
29755         * lib/gl_avltreehash_list.c: Don't include xalloc.h.
29756         (gl_avltreehash_list_implementation): Update.
29757         * lib/gl_rbtreehash_list.c: Don't include xalloc.h.
29758         (gl_rbtreehash_list_implementation): Update.
29759         * modules/array-list (Depends-on): Remove xalloc.
29760         * modules/carray-list (Depends-on): Likewise.
29761         * modules/linked-list (Depends-on): Likewise.
29762         * modules/linkedhash-list (Depends-on): Likewise.
29763         * modules/avltree-list (Depends-on): Likewise.
29764         * modules/rbtree-list (Depends-on): Likewise.
29765         * modules/avltreehash-list (Depends-on): Likewise.
29766         * modules/rbtreehash-list (Depends-on): Likewise.
29767
29768         * modules/xsublist: New file.
29769         * lib/gl_xsublist.h: New file.
29770         * lib/gl_xsublist.c: New file.
29771         * lib/gl_sublist.h (gl_sublist_create): Disable declaration.
29772         (gl_sublist_nx_create): New declaration.
29773         * lib/gl_sublist.c: Don't include xalloc.h.
29774         (gl_sublist_nx_create_empty): Renamed from gl_sublist_create_empty.
29775         (gl_sublist_nx_create_fill): Renamed from gl_sublist_create_fill.
29776         (gl_sublist_node_nx_set_value): Renamed from gl_sublist_node_set_value.
29777         Change return type to 'int'. Return -1 upon out-of-memory.
29778         (gl_sublist_nx_set_at): Renamed from gl_sublist_set_at. Return NULL
29779         upon out-of-memory.
29780         (gl_sublist_nx_add_first): Renamed from gl_sublist_add_first. Return
29781         NULL upon out-of-memory.
29782         (gl_sublist_nx_add_last): Renamed from gl_sublist_add_last. Return NULL
29783         upon out-of-memory.
29784         (gl_sublist_nx_add_before): Renamed from gl_sublist_add_before. Return
29785         NULL upon out-of-memory.
29786         (gl_sublist_nx_add_after): Renamed from gl_sublist_add_after. Return
29787         NULL upon out-of-memory.
29788         (gl_sublist_nx_add_at): Renamed from gl_sublist_add_at. Return NULL
29789         upon out-of-memory.
29790         (gl_sublist_sortedlist_nx_add): Renamed from gl_sublist_sortedlist_add.
29791         (gl_sublist_list_implementation): Update.
29792         (gl_sublist_nx_create): Renamed from gl_sublist_create. Return NULL
29793         upon out-of-memory.
29794         * modules/sublist (Depends-on): Remove xalloc.
29795
29796         * tests/test-array_list.c: Use gl_list_nx_* functions where possible.
29797         * tests/test-carray_list.c: Likewise.
29798         * tests/test-linked_list.c: Likewise.
29799         * tests/test-linkedhash_list.c: Likewise.
29800         * tests/test-avltree_list.c: Likewise.
29801         * tests/test-rbtree_list.c: Likewise.
29802         * tests/test-avltreehash_list.c: Likewise.
29803         * tests/test-rbtreehash_list.c: Likewise.
29804         * modules/array-list-tests (Makefile.am): Don't link with @LIBINTL@.
29805         * modules/carray-list-tests (Makefile.am): Likewise.
29806         * modules/linked-list-tests (Makefile.am): Likewise.
29807         * modules/linkedhash-list-tests (Makefile.am): Likewise.
29808         * modules/avltree-list-tests (Makefile.am): Likewise.
29809         * modules/rbtree-list-tests (Makefile.am): Likewise.
29810         * modules/avltreehash-list-tests (Makefile.am): Likewise.
29811         * modules/rbtreehash-list-tests (Makefile.am): Likewise.
29812
29813         * NEWS: Mention the changes.
29814
29815         * lib/clean-temp.c: Include gl_xlist.h.
29816         * modules/clean-temp (Depends-on): Add xlist.
29817
29818         * lib/git-merge-changelog.c: Include gl_xlist.h instead of gl_list.h.
29819         * modules/git-merge-changelog (Depends-on): Add xlist. Remove list.
29820
29821         * tests/test-array_oset.c: Include gl_xlist.h.
29822         * modules/array-oset-tests (Depends-on): Add xlist.
29823
29824         Reported by José E. Marchesi <jemarch@gnu.org>.
29825
29826 2009-12-13  Bruno Haible  <bruno@clisp.org>
29827
29828         Move the malloc checking from module 'oset' to new module 'xoset'.
29829         * modules/xoset: New file.
29830         * lib/gl_xoset.h: New file.
29831         * lib/gl_xoset.c: New file.
29832         * lib/gl_oset.h (gl_oset_create_empty, gl_oset_add): Disable
29833         declarations.
29834         (gl_oset_nx_create_empty, gl_oset_nx_add): New declarations.
29835         (struct gl_oset_implementation): Rename and change methods accordingly.
29836         (gl_oset_nx_create_empty): Renamed from gl_oset_create_empty.
29837         (gl_oset_nx_add): Renamed from gl_oset_add. Change return type to
29838         'int'. Mark as __warn_unused_result__.
29839         * lib/gl_oset.c (gl_oset_nx_create_empty): Renamed from
29840         gl_oset_create_empty.
29841         (gl_oset_nx_add): Renamed from gl_oset_add. Change return type to
29842         'int'.
29843         * lib/gl_array_oset.c: Don't include xalloc.h.
29844         (gl_array_nx_create_empty): Renamed from gl_array_create_empty. Use
29845         malloc, not xmalloc.
29846         (grow): Change return type to 'int'. Don't call xalloc_die.
29847         (gl_array_nx_add_at): Renamed from gl_array_add_at. Change return type
29848         to 'int'.
29849         (gl_array_nx_add): Renamed from gl_array_add. Change return type to
29850         'int'.
29851         (gl_array_oset_implementation): Update.
29852         * lib/gl_anytree_oset.h (gl_tree_nx_create_empty): Renamed from
29853         gl_tree_create_empty.
29854         (gl_tree_nx_add): Renamed from gl_tree_add. Change return type to
29855         'int'.
29856         * lib/gl_avltree_oset.c: Don't include xalloc.h.
29857         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Use malloc, not
29858         xmalloc.
29859         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Use malloc,
29860         not xmalloc.
29861         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Use malloc, not
29862         xmalloc.
29863         (gl_avltree_oset_implementation): Update.
29864         * lib/gl_rbtree_oset.c: Don't include xalloc.h.
29865         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Use malloc, not
29866         xmalloc.
29867         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Use malloc,
29868         not xmalloc.
29869         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Use malloc, not
29870         xmalloc.
29871         (gl_rbtree_oset_implementation): Update.
29872         * modules/array-oset (Depends-on): Remove xalloc.
29873         * modules/avltree-oset (Depends-on): Likewise.
29874         * modules/rbtree-oset (Depends-on): Likewise.
29875         * tests/test-array_oset.c: Use gl_oset_nx_* functions where possible.
29876         * tests/test-avltree_oset.c: Likewise.
29877         * tests/test-rbtree_oset.c: Likewise.
29878         * lib/gl_anytreehash_list1.h (add_to_bucket): Likewise.
29879         * modules/avltree-oset-tests (Makefile.am): Don't link with @LIBINTL@.
29880         * modules/rbtree-oset-tests (Makefile.am): Likewise.
29881         * NEWS: Mention the change.
29882
29883 2009-12-05  Alfred M. Szmidt  <ams@gnu.org>
29884
29885         maint.mk: allow a project to override release-prep commands
29886         * top/maint.mk (alpha, beta, stable): Move release-preparatory
29887         commands into a new rule.
29888         (release-prep): New rule.
29889         (release-prep-hook): New overridable variable.
29890
29891 2009-12-13  Bruno Haible  <bruno@clisp.org>
29892
29893         * lib/localcharset.c (locale_charset): Fix comment about use of GetACP.
29894
29895 2009-12-13  Jim Meyering  <meyering@redhat.com>
29896
29897         maint.mk (null_AM_MAKEFLAGS, built_programs): remove unused definitions
29898         * top/maint.mk (null_AM_MAKEFLAGS, built_programs): Remove definitions.
29899
29900 2009-12-12  Bruno Haible  <bruno@clisp.org>
29901
29902         duplocale: Tweak.
29903         * lib/duplocale.c (rpl_duplocale): Mark categories array as 'const'.
29904
29905 2009-12-12  Karl Berry  <karl@gnu.org>
29906
29907         * config/srclist.txt (strtoll.c): tab changes, no more sync.
29908
29909 2009-12-12  Bruno Haible  <bruno@clisp.org>
29910
29911         * m4/po.m4: Undo incorrect untabification.
29912
29913 2009-12-12  Bruno Haible  <bruno@clisp.org>
29914
29915         c-strtod, c-strtold: Use multithread-safe implementation on MacOS X.
29916         * modules/c-strtod (Depends-on): Add locale.
29917         * modules/c-strtold (Depends-on): Likewise.
29918
29919 2009-12-12  Bruno Haible  <bruno@clisp.org>
29920
29921         * lib/localcharset.c (locale_charset): Add comment about use of GetACP.
29922
29923 2009-12-11  Eric Blake  <ebb9@byu.net>
29924
29925         setenv: relax requirement in light of POSIX ruling
29926         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Test handling of "" but
29927         not NULL.
29928         * tests/test-setenv.c (main): Relax test.
29929         * tests/test-unsetenv.c (main): Likewise.
29930         * doc/posix-functions/setenv.texi (setenv): Document this.
29931         * doc/posix-functions/unsetenv.texi (unsetenv): Likewise.
29932
29933 2009-12-11  Bruno Haible  <bruno@clisp.org>
29934
29935         New module 'fd-safer-flag'.
29936         * lib/dup-safer-flag.c: New file, extracted from lib/dup-safer.c.
29937         * lib/dup-safer.c (dup_safer_flag): Remove function.
29938         * lib/fd-safer-flag.c: New file, extracted from lib/fd-safer.c.
29939         * lib/fd-safer.c (fd_safer_flag): Remove function.
29940         * lib/unistd-safer.h (dup_safer_flag, fd_safer_flag): Update condition.
29941         * modules/cloexec (configure.ac): Drop indicator macro.
29942         * modules/fd-safer-flag: New file.
29943         * modules/pipe2-safer (Depends-on): Add fd-safer-flag. Remove cloexec.
29944         * modules/stdlib-safer (Depends-on): Add fd-safer-flag.
29945         * modules/unistd-safer-tests (Depends-on): Add fd-safer-flag.
29946
29947 2009-12-11  Bruno Haible  <bruno@clisp.org>
29948
29949         Tests for module 'nl_langinfo'.
29950         * modules/nl_langinfo-tests: New file.
29951         * tests/test-nl_langinfo.sh: New file.
29952         * tests/test-nl_langinfo.c: New file.
29953
29954         New module 'nl_langinfo'.
29955         * lib/nl_langinfo.c: New file.
29956         * m4/nl_langinfo.m4: New file.
29957         * modules/nl_langinfo: New file.
29958         * doc/posix-functions/nl_langinfo.texi: Mention the new module.
29959
29960 2009-12-11  Bruno Haible  <bruno@clisp.org>
29961
29962         Tests for module 'langinfo'.
29963         * modules/langinfo-tests: New file.
29964         * tests/test-langinfo.c: New file.
29965
29966         New module 'langinfo'.
29967         * lib/langinfo.in.h: New file.
29968         * m4/langinfo_h.m4: New file.
29969         * modules/langinfo: New file.
29970         * doc/posix-headers/langinfo.texi: Mention the new module.
29971
29972 2009-12-11  Bruno Haible  <bruno@clisp.org>
29973
29974         * lib/config.charset: Untabify.
29975
29976 2009-12-11  Bruno Haible  <bruno@clisp.org>
29977
29978         * modules/unistd-safer (configure.ac): Drop indicator macro.
29979
29980 2009-12-11  Bruno Haible  <bruno@clisp.org>
29981
29982         Move pipe2-safer code to its own file.
29983         * lib/pipe2-safer.c: New file, extracted from lib/pipe-safer.c.
29984         * lib/pipe-safer.c (pipe2_safer): Remove function.
29985         * modules/pipe2-safer (Files): Add lib/pipe2-safer.c.
29986         (Makefile.am): Add it to lib_SOURCES.
29987
29988 2009-12-10  Bruno Haible  <bruno@clisp.org>
29989
29990         * lib/recvfrom.c (rpl_recvfrom): Allow the from argument to be NULL.
29991
29992 2009-12-10  Bruno Haible  <bruno@clisp.org>
29993
29994         Declare which arguments expect non-NULL values, for GCC and clang.
29995         * build-aux/arg-nonnull.h: New file.
29996         * modules/arg-nonnull: New file.
29997         * lib/arpa_inet.in.h (_GL_ARG_NONNULL): New placeholder.
29998         (inet_ntop, inet_pton): Use it.
29999         * lib/dirent.in.h (_GL_ARG_NONNULL): New placeholder.
30000         (closedir, dirfd, opendir, scandir, alphasort): Use it.
30001         * lib/fcntl.in.h (_GL_ARG_NONNULL): New placeholder.
30002         (open, openat): Use it.
30003         * lib/fnmatch.in.h (_GL_ARG_NONNULL): New placeholder.
30004         (fnmatch): Use it.
30005         * lib/getopt.in.h (_GL_ARG_NONNULL): New placeholder.
30006         (getopt, getopt_long, getopt_long_only): Use it.
30007         * lib/glob.in.h (_GL_ARG_NONNULL): New placeholder.
30008         * lib/glob-libc.h (glob, globfree, glob64, globfree64, glob_pattern_p):
30009         Use it.
30010         * lib/iconv.in.h (_GL_ARG_NONNULL): New placeholder.
30011         (iconv_open): Use it.
30012         * lib/inttypes.in.h (_GL_ARG_NONNULL): New placeholder.
30013         (strtoimax, strtoumax): Use it.
30014         * lib/locale.in.h (_GL_ARG_NONNULL): New placeholder.
30015         (duplocale): Use it.
30016         * lib/math.in.h (_GL_ARG_NONNULL): New placeholder.
30017         (frexp, frexpl): Use it.
30018         * lib/netdb.in.h (_GL_ARG_NONNULL): New placeholder.
30019         (getaddrinfo, freeaddrinfo, getnameinfo): Use it.
30020         * lib/search.in.h (_GL_ARG_NONNULL): New placeholder.
30021         (tsearch, tfind, tdelete, twalk): Use it.
30022         * lib/signal.in.h (_GL_ARG_NONNULL): New placeholder.
30023         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset,
30024         sigpending): Use it.
30025         * lib/spawn.in.h (_GL_ARG_NONNULL): New placeholder.
30026         (posix_spawn, posix_spawnp, posix_spawnattr_init,
30027         posix_spawnattr_destroy, posix_spawnattr_getsigdefault,
30028         posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask,
30029         posix_spawnattr_setsigmask, posix_spawnattr_getflags,
30030         posix_spawnattr_setflags, posix_spawnattr_getpgroup,
30031         posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy,
30032         posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam,
30033         posix_spawnattr_setschedparam, posix_spawn_file_actions_init,
30034         posix_spawn_file_actions_destroy, posix_spawn_file_actions_addopen,
30035         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2):
30036         Use it.
30037         * lib/stdio.in.h (_GL_ARG_NONNULL): New placeholder.
30038         (dprintf, fclose, fopen, fprintf, fpurge, fputc, fputs, freopen,
30039         rpl_fseek, fseeko, rpl_ftell, ftello, fwrite, getdelim, getline,
30040         obstack_printf, obstack_vprintf, popen, printf, putc, puts, remove,
30041         rename, renameat, snprintf, sprintf, asprintf, vasprintf, vdprintf,
30042         vfprintf, vprintf, vsnprintf, vsprintf): Use it.
30043         * lib/stdlib.in.h (_GL_ARG_NONNULL): New placeholder.
30044         (atoll, canonicalize_file_name, getloadavg, getsubopt, mkdtemp,
30045         mkostemp, mkostemps, mkstemp, mkstemps, putenv, srandom_r, initstate_r,
30046         setstate_r, random_r, realpath, rpmatch, setenv, strtod, strtoll,
30047         strtoull, unsetenv): Use it.
30048         * lib/string.in.h (_GL_ARG_NONNULL): New placeholder.
30049         (memchr, memmem, mempcpy, memrchr, rawmemchr, stpcpy, stpncpy,
30050         strchrnul, strdup, strndup, strnlen, strpbrk, strsep, strstr,
30051         strcasestr, strtok_r, mbslen, mbsnlen, mbschr, mbsrchr, mbsstr,
30052         mbscasecmp, mbsncasecmp, mbspcasecmp, mbscasestr, mbscspn, mbspbrk,
30053         mbsspn, mbssep, mbstok_r, strverscmp): Use it.
30054         * lib/strings.in.h (_GL_ARG_NONNULL): New placeholder.
30055         (strcasecmp, strncasecmp): Use it.
30056         * lib/sys_socket.in.h (_GL_ARG_NONNULL): New placeholder.
30057         (rpl_connect, rpl_bind, rpl_getpeername, rpl_getsockname,
30058         rpl_getsockopt, rpl_recv, rpl_send, rpl_recvfrom, rpl_sendto,
30059         rpl_setsockopt): Use it.
30060         * lib/sys_stat.in.h (_GL_ARG_NONNULL): New placeholder.
30061         (fchmodat, fstat, fstatat, lchmod, rpl_lstat, mkdir, mkdirat, mkfifo,
30062         mkfifoat, mknod, mknodat, stat, utimensat): Use it.
30063         * lib/sys_time.in.h (_GL_ARG_NONNULL): New placeholder.
30064         (gettimeofday): Use it.
30065         * lib/sys_times.in.h (_GL_ARG_NONNULL): New placeholder.
30066         (times): Use it.
30067         * lib/sys_utsname.in.h (_GL_ARG_NONNULL): New placeholder.
30068         (uname): Use it.
30069         * lib/time.in.h (_GL_ARG_NONNULL): New placeholder.
30070         (nanosleep, mktime, localtime_r, gmtime_r, strptime, timegm): Use it.
30071         * lib/unistd.in.h (_GL_ARG_NONNULL): New placeholder.
30072         (chown, euidaccess, faccessat, _gl_register_fd, fchownat,
30073         getdomainname, gethostname, getlogin_r, lchown, link, linkat, pipe2,
30074         pread, readlink, readlinkat, rmdir, symlink, symlinkat, unlink,
30075         unlinkat, write): Use it.
30076         * lib/wchar.in.h (_GL_ARG_NONNULL): New placeholder.
30077         (mbsrtowcs, mbsnrtowcs, wcsrtombs, wcsnrtombs): Use it.
30078         * lib/argv-iter.h: Include arg-nonnull.h.
30079         (_ATTRIBUTE_NONNULL_): Remove macro.
30080         (argv_iter_init_argv, argv_iter_init_stream, argv_iter,
30081         argv_iter_n_args, argv_iter_free): Use _GL_ARG_NONNULL.
30082         * lib/canonicalize-lgpl.c (_GL_ARG_NONNULL): Define, to defeat gcc
30083         optimization.
30084         * lib/getaddrinfo.c (_GL_ARG_NONNULL): Likewise.
30085         * lib/getdelim.c (_GL_ARG_NONNULL): Likewise.
30086         * lib/glob.c (_GL_ARG_NONNULL): Likewise.
30087         * lib/random_r.c (_GL_ARG_NONNULL): Likewise.
30088         * lib/setenv.c (_GL_ARG_NONNULL): Likewise.
30089         * lib/strtod.c (_GL_ARG_NONNULL): Likewise.
30090         * lib/tsearch.c (_GL_ARG_NONNULL): Likewise.
30091         * lib/unsetenv.c (_GL_ARG_NONNULL): Likewise.
30092         * modules/arpa_inet (Depends-on): Add arg-nonnull.
30093         (Makefile.am): Insert arg-nonnull.h into arpa/inet.h.
30094         * modules/dirent (Depends-on): Add arg-nonnull.
30095         (Makefile.am): Insert arg-nonnull.h into dirent.h.
30096         * modules/fcntl-h (Depends-on): Add arg-nonnull.
30097         (Makefile.am): Insert arg-nonnull.h into fcntl.h.
30098         * modules/fnmatch (Depends-on): Add arg-nonnull.
30099         (Makefile.am): Insert arg-nonnull.h into fnmatch.h.
30100         * modules/getopt-posix (Depends-on): Add arg-nonnull.
30101         (Makefile.am): Insert arg-nonnull.h into getopt.h.
30102         * modules/glob (Depends-on): Add arg-nonnull.
30103         (Makefile.am): Insert arg-nonnull.h into glob.h.
30104         * modules/iconv_open (Depends-on): Add arg-nonnull.
30105         (Makefile.am): Insert arg-nonnull.h into iconv.h.
30106         * modules/inttypes (Depends-on): Add arg-nonnull.
30107         (Makefile.am): Insert arg-nonnull.h into inttypes.h.
30108         * modules/locale (Depends-on): Add arg-nonnull.
30109         (Makefile.am): Insert arg-nonnull.h into locale.h.
30110         * modules/math (Depends-on): Add arg-nonnull.
30111         (Makefile.am): Insert arg-nonnull.h into math.h.
30112         * modules/netdb (Depends-on): Add arg-nonnull.
30113         (Makefile.am): Insert arg-nonnull.h into netdb.h.
30114         * modules/search (Depends-on): Add arg-nonnull.
30115         (Makefile.am): Insert arg-nonnull.h into search.h.
30116         * modules/signal (Depends-on): Add arg-nonnull.
30117         (Makefile.am): Insert arg-nonnull.h into signal.h.
30118         * modules/spawn (Depends-on): Add arg-nonnull.
30119         (Makefile.am): Insert arg-nonnull.h into spawn.h.
30120         * modules/stdio (Depends-on): Add arg-nonnull.
30121         (Makefile.am): Insert arg-nonnull.h into stdio.h.
30122         * modules/stdlib (Depends-on): Add arg-nonnull.
30123         (Makefile.am): Insert arg-nonnull.h into stdlib.h.
30124         * modules/string (Depends-on): Add arg-nonnull.
30125         (Makefile.am): Insert arg-nonnull.h into string.h.
30126         * modules/strings (Depends-on): Add arg-nonnull.
30127         (Makefile.am): Insert arg-nonnull.h into strings.h.
30128         * modules/sys_socket (Depends-on): Add arg-nonnull.
30129         (Makefile.am): Insert arg-nonnull.h into sys/socket.h.
30130         * modules/sys_stat (Depends-on): Add arg-nonnull.
30131         (Makefile.am): Insert arg-nonnull.h into sys/stat.h.
30132         * modules/sys_time (Depends-on): Add arg-nonnull.
30133         (Makefile.am): Insert arg-nonnull.h into sys/time.h.
30134         * modules/sys_times (Depends-on): Add arg-nonnull.
30135         (Makefile.am): Insert arg-nonnull.h into sys/times.h.
30136         * modules/sys_utsname (Depends-on): Add arg-nonnull.
30137         (Makefile.am): Insert arg-nonnull.h into sys/utsname.h.
30138         * modules/time (Depends-on): Add arg-nonnull.
30139         (Makefile.am): Insert arg-nonnull.h into time.h.
30140         * modules/unistd (Depends-on): Add arg-nonnull.
30141         (Makefile.am): Insert arg-nonnull.h into unistd.h.
30142         * modules/wchar (Depends-on): Add arg-nonnull.
30143         (Makefile.am): Insert arg-nonnull.h into wchar.h.
30144         * modules/argv-iter (Depends-on): Add arg-nonnull.
30145         * tests/test-canonicalize.c (null_ptr): New function.
30146         (main): Use it.
30147         * tests/test-canonicalize-lgpl.c (null_ptr): New function.
30148         (main): Use it.
30149         * tests/test-memmem.c (null_ptr): New function.
30150         (main): Use it.
30151         Reported by Jim Meyering.
30152
30153 2009-12-10  Bruno Haible  <bruno@clisp.org>
30154
30155         Use spaces for indentation, not tabs.
30156         * lib/**/*.[hcy] except lib/reg*.[hc]: Untabify.
30157         * m4/*.m4: Untabify.
30158         * build-aux/*.h: Untabify.
30159         * tests/**/*.[hc]: Untabify.
30160         * README: New section "Indent with spaces, not TABs", based on
30161         coreutils/HACKING and comments by Pádraig Brady and Paolo Bonzini.
30162         * NEWS: Mention the change.
30163
30164 2009-12-10  Bruno Haible  <bruno@clisp.org>
30165
30166         pty test: Fix link error.
30167         * modules/pty-tests (Makefile.am): Add the default LDADD value to
30168         test_pty_LDADD.
30169
30170 2009-12-07  Simon Josefsson  <simon@josefsson.org>
30171
30172         * modules/pty: New file.
30173         * modules/pty-tests: New file.
30174         * m4/pty.m4: New file.
30175         * tests/test-pty.c: New file.
30176         * doc/glibc-headers/pty.texi: Modified.
30177         * doc/glibc-functions/forkpty.texi: Modified.
30178         * doc/glibc-functions/openpty.texi: Modified.
30179
30180 2009-12-10  Bruno Haible  <bruno@clisp.org>
30181
30182         Avoid syntax error in C++ mode.
30183         * lib/stdio.in.h (rename): Don't use parameter name 'new'.
30184
30185 2009-12-10  Bruno Haible  <bruno@clisp.org>
30186
30187         Use sed with option -e.
30188         * gnulib-tool (func_version, func_emit_copyright_notice,
30189         func_emit_initmacro_end, func_import, func_create_testdir): Pass
30190         option -e to sed.
30191         * modules/link-warning (Makefile.am): Likewise.
30192
30193 2009-12-10  Jim Meyering  <meyering@redhat.com>
30194
30195         mgetgroups: do not write bytes beyond end of malloc'd buffer
30196         * lib/mgetgroups.c: Fix an off-by-one error.  When we have no
30197         username, we call getgroups with a one-element-shorter buffer,
30198         but still told it the length was original, max_n_groups.
30199
30200 2009-12-09  Eric Blake  <ebb9@byu.net>
30201
30202         cloexec: relax license
30203         * modules/cloexec (Maintainer): Add myself.
30204         (License): Use LGPL, not GPL.
30205
30206         link-warning: optimize generation
30207         * modules/link-warning (Makefile.am): Reduce process usage.
30208
30209 2009-12-09  Bruno Haible  <bruno@clisp.org>
30210
30211         * doc/posix-functions/unsetenv.texi: Mention Solaris 10 bug for which a
30212         workaround was added on 2009-11-17.
30213
30214 2009-12-09  Jim Meyering  <meyering@redhat.com>
30215             Bruno Haible  <bruno@clisp.org>
30216
30217         link-warning: Allow extra lines at the top of build-aux/link-warning.h.
30218         * modules/link-warning (Makefile.am): Make the comment-removing sed
30219         command more robust in the face of bootstrap-prepended comment lines.
30220
30221 2009-12-09  Bruno Haible  <bruno@clisp.org>
30222
30223         * lib/mgetgroups.c (mgetgroups): Don't remove duplicates if there is at
30224         most one group.
30225
30226 2009-12-09  Simon Josefsson <simon@josefsson.org>
30227             Bruno Haible  <bruno@clisp.org>
30228
30229         * build-aux/link-warning.h: Add copyright notice.
30230         * modules/link-warning (Makefile.am): Generate link-warning.h from
30231         build-aux/link-warning.h. Update LINK_WARNING_H accordingly.
30232         * NEWS: Mention change in link-warning module.
30233         * modules/arpa_inet (Makefile.am): Add dependency to arpa/inet.h.
30234         * modules/dirent (Makefile.am): Add dependency to dirent.h.
30235         * modules/fcntl-h (Makefile.am): Add dependency to fcntl.h.
30236         * modules/getopt-posix (Makefile.am): Add dependency to getopt.h.
30237         * modules/inttypes (Makefile.am): Add dependency to inttypes.h.
30238         * modules/math (Makefile.am): Add dependency to math.h.
30239         * modules/search (Makefile.am): Add dependency to search.h.
30240         * modules/signal (Makefile.am): Add dependency to signal.h.
30241         * modules/spawn (Makefile.am): Add dependency to spawn.h.
30242         * modules/stdio (Makefile.am): Add dependency to stdio.h.
30243         * modules/stdlib (Makefile.am): Add dependency to stdlib.h.
30244         * modules/string (Makefile.am): Add dependency to string.h.
30245         * modules/strings (Makefile.am): Add dependency to strings.h.
30246         * modules/sys_ioctl (Makefile.am): Add dependency to sys/ioctl.h.
30247         * modules/sys_select (Makefile.am): Add dependency to sys/select.h.
30248         * modules/sys_socket (Makefile.am): Add dependency to sys/socket.h.
30249         * modules/sys_stat (Makefile.am): Add dependency to sys/stat.h.
30250         * modules/sys_times (Makefile.am): Add dependency to sys/times.h.
30251         * modules/sys_utsname (Makefile.am): Add dependency to sys/utsname.h.
30252         * modules/sys_wait (Makefile.am): Add dependency to sys/wait.h.
30253         * modules/unistd (Makefile.am): Add dependency to unistd.h.
30254         * modules/wchar (Makefile.am): Add dependency to wchar.h.
30255
30256 2009-12-09  Bruno Haible  <bruno@clisp.org>
30257
30258         fchdir: Optimize away rpl_fstat when possible.
30259         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set REPLACE_FSTAT only together with
30260         REPLACE_OPEN_DIRECTORY.
30261         * lib/fchdir.c (rpl_fstat): Define only when REPLACE_OPEN_DIRECTORY.
30262
30263 2009-12-09  Bruno Haible  <bruno@clisp.org>
30264
30265         * lib/fchdir.c: Update comment.
30266
30267 2009-12-09  Bruno Haible  <bruno@clisp.org>
30268
30269         * lib/cloexec.c (set_cloexec_flag): Clarify intent of dup2 call.
30270
30271 2009-12-08  Eric Blake  <ebb9@byu.net>
30272
30273         fchdir: avoid memory leak on re-registration.
30274         * lib/fchdir.c (ensure_dirs_slot): Avoid memory leak.
30275
30276 2009-12-08  Jim Meyering  <meyering@redhat.com>
30277
30278         init.sh: avoid Solaris 10 /bin/sh portability problem
30279         Solaris 10's /bin/sh does not pass '.' arguments 2.. to the
30280         sourced script:
30281           $ printf 'echo "$@"\n' > f; /bin/sh -c '. ./f bar'
30282           $ printf 'echo "$@"\n' > f; /bin/bash -c '. ./f bar'
30283           bar
30284         tests/init.sh relied on that, accepting a --set-path=DIR argument,
30285         and two tests used that idiom.
30286         * tests/init.sh: Update suggested usage comments.
30287         (path_prepend_): New function, to be used in place
30288         of the --src-path=DIR option.
30289         (setup_): Move PATH-prepending code into path_prepend_.
30290         * tests/test-pread.sh: Adapt to new usage.
30291         * tests/test-xalloc-die.sh: Likewise.
30292
30293 2009-12-08  Simon Josefsson  <simon@josefsson.org>
30294
30295         * doc/gnulib.texi (Glibc pty.h): Add.
30296         * doc/glibc-functions/forkpty.texi: Add.
30297         * doc/glibc-functions/openpty.texi: Add.
30298         Suggested by Bruno Haible.
30299
30300 2009-12-08  Eric Blake  <ebb9@byu.net>
30301
30302         fchdir: fix logic bugs
30303         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Fix logic bug.
30304         * tests/test-fchdir.c (main): Enhance test.
30305         * lib/fchdir.c (rpl_fstat): Always provide if fchdir replacement
30306         is in use.
30307
30308         dup2: fix logic bugs
30309         * lib/dup2.c (dup2): Fix logic bugs.  Use HAVE_DUP2 rather than
30310         REPLACE_DUP2 to decide when rpl_dup2 is needed.
30311         * m4/dup2.m4 (gl_REPLACE_DUP2): Only define REPLACE_DUP2 when dup2
30312         exists.
30313         (gl_FUNC_DUP2): Drop unneeded AC_DEFINE.
30314
30315 2009-12-07  Eric Blake  <ebb9@byu.net>
30316
30317         unlink: fix m4 detection
30318         * m4/unlink.m4 (gl_FUNC_UNLINK): Include correct header.
30319
30320         unistd-safer: add unit test
30321         * modules/unistd-safer-tests: New file.
30322         * tests/test-dup-safer.c: Likewise.
30323         * tests/test-cloexec.c (setmode): Avoid compiler warning.
30324         * tests/test-dup2.c (setmode): Likewise.
30325         * lib/cloexec.c (dup_cloexec): Fix mingw compile error.
30326
30327         cloexec: preserve text vs. binary across dup_cloexec
30328         * lib/cloexec.c (dup_cloexec) [W32]: Query and use translation
30329         mode.
30330         * modules/dup2-tests (Depends-on): Add binary-io.
30331         * modules/cloexec-tests (Depends-on): Likewise.
30332         * tests/test-dup2.c (setmode, is_mode): New helpers.
30333         (main): Add tests that translation mode is preserved.
30334         * tests/test-cloexec.c (setmode, is_mode, main): Likewise.
30335         Reported by Bruno Haible.
30336
30337         mgetgroups: reduce duplicate listings
30338         * lib/mgetgroups.c (mgetgroups): Reduce duplicates from the
30339         resulting array.
30340         * tests/test-chown.h (test_chown): Simplify client.
30341         * tests/test-lchown.h (test_lchown): Likewise.
30342
30343 2009-12-06  Bruno Haible  <bruno@clisp.org>
30344
30345         * lib/cloexec.c (dup_cloexec): Fix handling of _gl_register_dup return
30346         value.
30347
30348 2009-12-06  Bruno Haible  <bruno@clisp.org>
30349
30350         * lib/progname.c: Include stdio.h, stdlib.h.
30351         (set_program_name): Reject a NULL argument.
30352
30353 2009-12-05  Eric Blake  <ebb9@byu.net>
30354
30355         pipe2-safer: new module
30356         * modules/pipe2-safer: New file.
30357         * lib/unistd-safer.h (pipe2_safer): New prototype.
30358         * lib/unistd--.h (pipe2): New wrapper.
30359         * lib/pipe-safer.c (pipe2_safer): New function.
30360         * modules/pipe (Depends-on): Add pipe2-safer.
30361         * lib/pipe.c (create_pipe) [WIN32]: Let pipe2_safer do the work.
30362
30363         stdlib-safer: preserve cloexec flag for mkostemp[s]
30364         * lib/mkstemp-safer.c (mkostemp_safer, mkostemps_safer): Use new
30365         fd_safer_flag.
30366
30367         unistd-safer: allow preservation of cloexec status via flag
30368         * lib/unistd-safer.h (dup_safer_flag, fd_safer_flag): New
30369         prototypes.
30370         * lib/dup-safer.c (dup_safer_flag): New function.
30371         * lib/fd-safer.c (fd_safer_flag): Likewise.
30372         * modules/cloexec (configure.ac): Set witness.
30373
30374         test-dup2: enhance test
30375         * modules/dup2-tests (Depends-on): Add cloexec.
30376         * tests/test-dup2.c (main): Enhance test.
30377
30378         cloexec: add dup_cloexec
30379         * lib/cloexec.h (dup_cloexec): New prototype.  Add copyright
30380         header and comments.
30381         * lib/cloexec.c (set_cloexec_flag): Add comments.
30382         (dup_cloexec): New function, with mingw implementation borrowed
30383         from...
30384         * lib/w32spawn.h (dup_noinherit): ...here.
30385         * modules/execute (Depends-on): Add cloexec.
30386         * modules/pipe (Depends-on): Likewise.
30387         * modules/cloexec (Depends-on): Add dup2.
30388         * modules/cloexec-tests (Files): New file.
30389         * tests/test-cloexec.c: Likewise.
30390
30391         test-xalloc-die: fix test for mingw
30392         * modules/xalloc-die-tests (Files): Add tests/init.sh.
30393         * tests/test-xalloc-die.sh: Rewrite to use init.sh.  Strip
30394         directory and .exe suffix off argv[0] output.
30395
30396         test-fseeko: fix test for mingw
30397         * tests/test-fseeko.c (fseek): Redefine GL_LINK_WARNING, rather
30398         than undefining fseek, so test will pass on mingw.
30399
30400 2009-12-05  Bruno Haible  <bruno@clisp.org>
30401
30402         * lib/progname.h (set_program_name): Clarify specification.
30403         * lib/progname.c (set_program_name): Likewise.
30404         Reported by Jim Meyering.
30405
30406 2009-12-05  Jim Meyering  <meyering@redhat.com>
30407
30408         maint.mk: backslash-escape parens in default regexp
30409         * top/maint.mk (news-check-regexp): Now that we're using grep -E,
30410         backslash-escape the literal parentheses.
30411
30412         maint.mk: news-date-check: use grep -E
30413         * top/maint.mk (today): Define a Make variable, not a...
30414         (news-date-check): ...shell variable.
30415         (news-date-regexp): Use the Make variable.
30416         Use grep's -E option.  Change the failing diagnostic to mention
30417         the variable, $(news-date-regexp).
30418
30419 2009-12-04  Alfred M. Szmidt  <ams@gnu.org>
30420
30421         maintainer-makefile: allow customization of NEWS entry format
30422         * top/maint.mk (news-date-regexp): New overridable variable.
30423         (news-date-check): Use it.
30424
30425 2009-12-04  Eric Blake  <ebb9@byu.net>
30426
30427         mgetgroups: add xgetgroups, and avoid ENOSYS failures
30428         * lib/mgetgroups.h (xgetgroups): New prototype.
30429         * lib/mgetgroups.c (xgetgroups): New wrapper.
30430         (mgetgroups): Handle ENOSYS.
30431         * modules/mgetgroups (Depends-on): Add realloc.
30432         Reported by Scott Harrison <scott.gnu.2009@scottrix.co.uk>.
30433
30434         mgetgroups: avoid argument promotion issues with -1
30435         * lib/mgetgroups.c (mgetgroups): A cast is required when checking
30436         for invalid gid_t.
30437         * tests/test-chown.h (getegid, test_chown): Likewise.
30438         * tests/test-lchown.h (getegid, test_lchown): Likewise.
30439
30440 2009-12-03  Paolo Bonzini  <bonzini@gnu.org>
30441
30442         exclude: Fix header file problems.
30443         * lib/exclude.h: Add multiple inclusion guards and include stdbool.h.
30444
30445 2009-12-01  Jim Meyering  <meyering@redhat.com>
30446
30447         fts: fts_open: do not let an empty string cause immediate failure
30448         This is required in support of GNU rm, for which the command
30449         "rm A '' B" must process and remove both A and B, in spite of
30450         the empty string argument.
30451         * lib/fts.c (fts_open): Do not let the presence of an empty string
30452         cause fts_open to fail immediately.  Most fts-using tools must be
30453         able to process all arguments, in order, and can be expected to
30454         diagnose such arguments themselves.
30455
30456 2009-11-30  Eric Blake  <ebb9@byu.net>
30457
30458         utimens: fix compilation error
30459         * lib/utimens.c (lutimens) [!HAVE_UTIMENSAT && HAVE_LUTIMES]:
30460         Declare variable at right scope.
30461
30462 2009-11-29  Jim Meyering  <meyering@redhat.com>
30463
30464         bootstrap: handle perl-5.11's changed --version output
30465         * build-aux/bootstrap (get_version): Handle perl separately,
30466         since perl-5.11's --version output is different.
30467
30468 2009-11-28  Jim Meyering  <meyering@redhat.com>
30469
30470         userspec: depend on the inttostr module, too
30471         * modules/userspec (Depends-on): Add inttostr.
30472
30473         userspec: disallow an ID that maps to (uid_t)-1 or (gid_t)-1
30474         * lib/userspec.c (parse_with_separator): Do not accept a user ID
30475         number of MAXUID when it evaluates to (uid_t) -1.
30476         Likewise for group ID.  Reported by Matt McCutchen in
30477         <http://savannah.gnu.org/bugs/?28113>
30478
30479         userspec: reformat to use spaces, not TABs
30480         * lib/userspec.c: Expand TABs to spaces.
30481         Add Emacs' "indent-tabs-mode: nil" hint.
30482
30483 2009-11-27  Eric Blake  <ebb9@byu.net>
30484
30485         getopt-gnu: flush out another BSD bug
30486         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Test for the bug.
30487         * tests/test-getopt.c (main): Check POSIXLY_CORRECT first, to
30488         flush out BSD bug.
30489         * tests/test-getopt.h (test_getopt): End lists with NULL.
30490         * tests/test-getopt_long.h (test_getopt_long): Likewise.
30491         (test_getopt_long_posix): Enhance test.
30492         * modules/getopt-posix-tests (Depends-on): Add stdbool.
30493         * doc/glibc-functions/getopt_long.texi (getopt_long): Mention
30494         getopt-gnu.
30495         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
30496         Likewise.
30497
30498 2009-11-27  Simon Josefsson  <simon@josefsson.org>
30499
30500         * modules/idpriv-droptemp-tests (Notice): Fix text.
30501
30502 2009-11-27  Jim Meyering  <meyering@redhat.com>
30503
30504         test-xalloc-die: avoid spurious failure due to libtool argv difference
30505         In a libtool-enabled project, this test would fail due to a difference
30506         in the emitted program name, e.g.,
30507         -test-xalloc-die: memory exhausted
30508         +/tmp/.../tests/.libs/lt-test-xalloc-die: memory exhausted
30509         Use program to avoid that.
30510         * modules/xalloc-die-tests (Depends-on): Add progname.
30511         * tests/test-xalloc-die.c: Include progname.h".
30512         (program_name): Remove decl.
30513         (main): Call set_program_name.
30514         * tests/test-xalloc-die.sh (compare): Remove unnecessary ${EXE}.
30515
30516 2009-11-26  Richard Jones  <rjones@redhat.com>
30517
30518         w32sock: leave win32 error in place.
30519         * lib/w32sock.h (set_winsock_errno): Do not call WSASetLastError.
30520
30521 2009-11-26  Eric Blake  <ebb9@byu.net>
30522
30523         init.sh: suggest to use skip_ and fail_ functions in comments
30524         * tests/init.sh: Add a sentence.
30525
30526 2009-11-25  Bruno Haible  <bruno@clisp.org>
30527
30528         init.sh: add documentation in comments
30529         * tests/init.sh: Add some developer and user documentation.
30530
30531 2009-11-26  Jim Meyering  <meyering@redhat.com>
30532
30533         init.sh: accommodate even those who specify bogus srcdir manually
30534         * tests/init.sh: Normally, srcdir is guaranteed by automake and
30535         configure-time tests to be sanitized, so that there is no need to
30536         use "$srcdir" in Makefile rules and shell scripts.  Using $srcdir
30537         (with no double quotes) suffices.  However, since tests may be
30538         invoked manually, and since you may explicitly set srcdir to the
30539         name of a directory containing spaces, do quote its uses here.
30540         * tests/test-pread.sh: Likewise.
30541         Suggested by Bruno Haible.
30542
30543         test-pread.sh: avoid diagnostics for those who ignore SIGPIPE
30544         * tests/test-pread.sh: Write no data into the pipe, because
30545         test-pread actually reads none.  This avoids a diagnostic,
30546         "bash: echo: write error: Broken pipe", that arises in the unusual
30547         event something is ignoring SIGPIPE, and might be interpreted
30548         as some sort of failure.  Reported by Bruno Haible.
30549
30550 2009-11-25  Jim Meyering  <meyering@redhat.com>
30551
30552         test-pread: cover failure with ESPIPE and EINVAL
30553         * tests/test-pread.c (main): Test for failure, too.
30554         * tests/test-pread.sh: Invoke with stdin on a pipe.
30555         Suggested by Eric Blake.
30556
30557         pread: improvement and fix
30558         * modules/pread (Depends-on): Depend on lseek, for portability to
30559         e.g., mingw.  Suggested by Eric Blake.
30560         * lib/pread.c (__libc_read): Define.  Reported by Richard W.M. Jones.
30561
30562         unistd.in.h: correct declaration of pread
30563         * lib/unistd.in.h: Correct type of "buf" parameter: void*, not char*
30564         Reported by Richard W.M. Jones.
30565
30566         test-pread.sh: distribute the test script
30567         * modules/pread-tests (Files): Include test-pread.sh.
30568
30569         test-pread.sh: clean up
30570         * tests/test-pread.sh: Don't refer to $builddir. Just use equivalent ".".
30571         * modules/pread-tests (TESTS_ENVIRONMENT): Don't export builddir.
30572         That is unnecessary, since it's always ".".
30573         Suggestion from Eric Blake.
30574
30575         test-pread.sh: make executable
30576         * tests/test-pread.sh: Set executable bit.
30577         Reported by Eric Blake.
30578
30579         correct typo in test-pread.sh
30580         * tests/test-pread.sh: Add #! line.
30581
30582         test pread
30583         * tests/test-pread.c: New file.
30584         * tests/test-pread.sh: Likewise.
30585         * modules/pread-tests: Likewise.
30586
30587         pread: new module
30588         * modules/pread: New file.
30589         * lib/unistd.in.h (pread): Define/declare.
30590         * lib/pread.c (pread): New file.
30591         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Define defaults.
30592         * modules/unistd (Makefile.am): Substitute witnesses.
30593         * doc/posix-functions/pread.texi (pread): Update.
30594         * MODULES.html.sh: Add pread.
30595
30596 2009-11-25  Jim Meyering  <meyering@redhat.com>
30597
30598         tests/init.sh: new file to be used via most *.sh tests
30599         * tests/init.sh: New file.
30600
30601 2009-11-25  Eric Blake  <ebb9@byu.net>
30602
30603         utimens: work around older Linux failure with symlinks
30604         * lib/utimens.c (lutimensat_works_really): New variable.
30605         (fdutimens, lutimens): Use it to manage kernels that support
30606         nanosecond times on files, but not on symlinks.
30607         Reported by OndÅ™ej Vašík.
30608
30609         utimes: fix configure grammar
30610         * m4/utimes.m4 (gl_FUNC_UTIMES): Delete spurious word.
30611
30612 2009-11-25  Paolo Bonzini  <bonzini@gnu.org>
30613
30614         regex: Fix fastmap for multibyte character ranges.
30615         * lib/regcomp.c (re_compute_fastmap_iter): Add all multibyte lead
30616         characters when a multibyte character range is included.
30617
30618 2009-11-22  Andy Wingo  <wingo@pobox.com>
30619
30620         version-etc: work also with AM_INIT_AUTOMAKE's no-define option
30621         * lib/version-etc.c [!defined PACKAGE]: Define to PACKAGE_TARNAME.
30622
30623 2009-11-24  Bruno Haible  <bruno@clisp.org>
30624
30625         doc: Most *_l functions exist in MacOS X 10.5.
30626         * doc/posix-functions/duplocale.texi: Update platforms list.
30627         * doc/posix-functions/freelocale.texi: Likewise.
30628         * doc/posix-functions/newlocale.texi: Likewise.
30629         * doc/posix-functions/uselocale.texi: Likewise.
30630         * doc/posix-functions/isalnum_l.texi: Likewise.
30631         * doc/posix-functions/isalpha_l.texi: Likewise.
30632         * doc/posix-functions/isblank_l.texi: Likewise.
30633         * doc/posix-functions/iscntrl_l.texi: Likewise.
30634         * doc/posix-functions/isdigit_l.texi: Likewise.
30635         * doc/posix-functions/isgraph_l.texi: Likewise.
30636         * doc/posix-functions/islower_l.texi: Likewise.
30637         * doc/posix-functions/isprint_l.texi: Likewise.
30638         * doc/posix-functions/ispunct_l.texi: Likewise.
30639         * doc/posix-functions/isspace_l.texi: Likewise.
30640         * doc/posix-functions/isupper_l.texi: Likewise.
30641         * doc/posix-functions/iswalnum_l.texi: Likewise.
30642         * doc/posix-functions/iswalpha_l.texi: Likewise.
30643         * doc/posix-functions/iswblank_l.texi: Likewise.
30644         * doc/posix-functions/iswcntrl_l.texi: Likewise.
30645         * doc/posix-functions/iswctype_l.texi: Likewise.
30646         * doc/posix-functions/iswdigit_l.texi: Likewise.
30647         * doc/posix-functions/iswgraph_l.texi: Likewise.
30648         * doc/posix-functions/iswlower_l.texi: Likewise.
30649         * doc/posix-functions/iswprint_l.texi: Likewise.
30650         * doc/posix-functions/iswpunct_l.texi: Likewise.
30651         * doc/posix-functions/iswspace_l.texi: Likewise.
30652         * doc/posix-functions/iswupper_l.texi: Likewise.
30653         * doc/posix-functions/iswxdigit_l.texi: Likewise.
30654         * doc/posix-functions/isxdigit_l.texi: Likewise.
30655         * doc/posix-functions/nl_langinfo_l.texi: Likewise.
30656         * doc/posix-functions/strcasecmp_l.texi: Likewise.
30657         * doc/posix-functions/strcoll_l.texi: Likewise.
30658         * doc/posix-functions/strfmon_l.texi: Likewise.
30659         * doc/posix-functions/strftime_l.texi: Likewise.
30660         * doc/posix-functions/strncasecmp_l.texi: Likewise.
30661         * doc/posix-functions/strxfrm_l.texi: Likewise.
30662         * doc/posix-functions/tolower_l.texi: Likewise.
30663         * doc/posix-functions/toupper_l.texi: Likewise.
30664         * doc/posix-functions/towctrans_l.texi: Likewise.
30665         * doc/posix-functions/towlower_l.texi: Likewise.
30666         * doc/posix-functions/towupper_l.texi: Likewise.
30667         * doc/posix-functions/wcscoll_l.texi: Likewise.
30668         * doc/posix-functions/wcsxfrm_l.texi: Likewise.
30669         * doc/posix-functions/wctrans_l.texi: Likewise.
30670         * doc/posix-functions/wctype_l.texi: Likewise.
30671         * doc/glibc-functions/strptime_l.texi: Likewise.
30672         * doc/glibc-functions/strtod_l.texi: Likewise.
30673         * doc/glibc-functions/strtof_l.texi: Likewise.
30674         * doc/glibc-functions/strtol_l.texi: Likewise.
30675         * doc/glibc-functions/strtold_l.texi: Likewise.
30676         * doc/glibc-functions/strtoll_l.texi: Likewise.
30677         * doc/glibc-functions/strtoul_l.texi: Likewise.
30678         * doc/glibc-functions/strtoull_l.texi: Likewise.
30679         * doc/glibc-functions/wcsftime_l.texi: Likewise.
30680         * doc/glibc-functions/wcstod_l.texi: Likewise.
30681         * doc/glibc-functions/wcstof_l.texi: Likewise.
30682         * doc/glibc-functions/wcstol_l.texi: Likewise.
30683         * doc/glibc-functions/wcstold_l.texi: Likewise.
30684         * doc/glibc-functions/wcstoll_l.texi: Likewise.
30685         * doc/glibc-functions/wcstoul_l.texi: Likewise.
30686         * doc/glibc-functions/wcstoull_l.texi: Likewise.
30687
30688 2009-11-24  Bruno Haible  <bruno@clisp.org>
30689
30690         duplocale: Fix logic bug.
30691         * lib/duplocale.c: Don't include <langinfo.h>.
30692         (_NL_LOCALE_NAME): Remove macro.
30693         (rpl_duplocale): Use setlocale instead of nl_langinfo.
30694         * tests/test-duplocale.c (main): Also test duplocale after uselocale.
30695
30696 2009-11-23  Jim Meyering  <meyering@redhat.com>
30697
30698         test-update-copyright: don't hard-code /usr/bin/perl
30699         * tests/test-update-copyright.sh (YEAR): Use date +%Y, rather than
30700         perl to print the current year.  Gilles Espinasse reported that
30701         the replaced use of perl was hard-coded as /usr/bin/perl.
30702
30703 2009-11-23  Bruno Haible  <bruno@clisp.org>
30704
30705         duplocale: Add support for glibc 2.3.x.
30706         * lib/duplocale.c (rpl_duplocale): Add fallback code for glibc 2.3.x.
30707
30708 2009-11-22  Bruno Haible  <bruno@clisp.org>
30709
30710         vasnprintf: Tiny optimization.
30711         * lib/vasnprintf.c (decimal_point_char): Choose the fast path also on
30712         MacOS X.
30713
30714 2009-11-22  Bruno Haible  <bruno@clisp.org>
30715
30716         Tests for module 'duplocale'.
30717         * modules/duplocale-tests: New file.
30718         * tests/test-duplocale.c: New file.
30719
30720         New module 'duplocale'.
30721         * m4/duplocale.m4: New file.
30722         * lib/locale.in.h (duplocale): New declaration.
30723         * lib/duplocale.c: New file.
30724         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H, gl_LOCALE_MODULE_INDICATOR,
30725         gl_LOCALE_H_DEFAULTS): New macros.
30726         (gl_LOCALE_H): Require gl_LOCALE_H_DEFAULTS. Invoke
30727         gl_CHECK_NEXT_HEADERS unconditionally. Invoke gl_REPLACE_LOCALE_H.
30728         * modules/locale (Makefile.am): Substitute also GNULIB_DUPLOCALE,
30729         REPLACE_DUPLOCALE.
30730         * modules/duplocale: New file.
30731         * doc/posix-functions/duplocale.texi: Mention the glibc bug.
30732
30733 2009-11-22  Bruno Haible  <bruno@clisp.org>
30734
30735         * modules/locale-tests (configure.ac): Test for newlocale function.
30736         * tests/test-locale.c: When the system has extended locale functions,
30737         verify that <locale.h> defines locale_t and LC_GLOBAL_LOCALE.
30738
30739         locale: Make locale_t available when possible.
30740         * lib/locale.in.h: Include <xlocale.h> when it exists.
30741         * m4/locale_h.m4 (gl_LOCALE_H): Check for <xlocale.h> and arrange to
30742         replace <locale.h> if it does not define locale_t but <xlocale.h> does.
30743         * modules/locale (Depends-on): Add extensions.
30744         (Makefile.am): Also substitute HAVE_XLOCALE_H.
30745         * doc/posix-headers/locale.texi: Document the problem with locale_t.
30746
30747 2009-11-22  Bruno Haible  <bruno@clisp.org>
30748
30749         Add comments.
30750         * m4/dirent_h.m4 (gl_DIRENT_H): Add comment about gl_CHECK_NEXT_HEADERS
30751         invocation.
30752         * m4/iconv_h.m4 (gl_ICONV_H): Likewise.
30753         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
30754         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
30755
30756 2009-11-22  Bruno Haible  <bruno@clisp.org>
30757
30758         error: account for the possibility of freopen (stdout).
30759         * lib/error.c: Include <unistd.h>.
30760         (flush_stdout): New function, extracted from error and error_at_line.
30761         Determine stdout's fd dynamically.
30762         (error, error_at_line): Invoke flush_stdout.
30763         * m4/error.m4 (gl_PREREQ_ERROR): Require AC_C_INLINE.
30764         * modules/error (Depends-on): Add unistd.
30765
30766 2009-11-22  Bruno Haible  <bruno@clisp.org>
30767
30768         diffseq: Add comment.
30769         * lib/diffseq.h (IF_LINT): Add comment about pitfall.
30770
30771 2009-11-22  Jim Meyering  <meyering@redhat.com>
30772
30773         c-stack: avoid defining an unused static function
30774         * lib/c-stack.c (find_stack_direction): Do not define this function
30775         when it will not be used.
30776
30777         diffseq: avoid spurious gcc warnings
30778         * lib/diffseq.h (IF_LINT2): Define.
30779         (compareseq): Use it to initialize two members of "part".
30780         This avoids two used-uninitialized warnings.
30781
30782 2009-11-21  Jim Meyering  <meyering@redhat.com>
30783
30784         c-stack: avoid "ignoring return value of `write'" warning
30785         * lib/c-stack.c: Include "ignore-value.h".
30786         (die): Explicitly ignore each write return value.
30787         * modules/c-stack (Depends-on): Add ignore-value.
30788
30789 2009-11-21  Bruno Haible  <bruno@clisp.org>
30790
30791         diffseq: reduce scope of variable 'best'.
30792         * lib/diffseq.h (diag) [USE_HEURISTIC]: Reduce scope of 'best'
30793         variable, earlier used for two different purposes.
30794
30795 2009-11-21  Jim Meyering  <meyering@redhat.com>
30796
30797         diffseq: remove useless assignment to "best"
30798         * lib/diffseq.h (diag) [USE_HEURISTIC]: Remove useless "best = 0"
30799         assignment.  At that point "best" is already guaranteed to be zero.
30800
30801 2009-11-20  Eric Blake  <ebb9@byu.net>
30802
30803         build: mention ftp redirector in release announcements
30804         * top/maint.mk (gnu_rel_host, url_dir_list): Provide defaults for
30805         values that used to come from cfg.mk; mention FTP redirect URL.
30806         * build-aux/announce-gen: Mention the mirror list.
30807         Suggested by Karl Berry.
30808
30809         nanosleep: improve port to mingw
30810         * lib/nanosleep.c (rpl_nanosleep): Reject invalid arguments.
30811         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Incorporate LIBSOCKET into
30812         LIB_NANOSLEEP, but only when needed.
30813         * modules/select (Link): Document LIBSOCKET.
30814         * m4/select.m4 (gl_FUNC_SELECT): Ensure LIBSOCKET is defined early
30815         enough.
30816
30817         nanosleep: work around cygwin bug
30818         * lib/nanosleep.c (rpl_nanosleep) [HAVE_BUG_BIG_NANOSLEEP]:
30819         Fix logic bug when nanosleep fails.  Work around cygwin 1.5.x
30820         bug.
30821         (getnow): Delete, not needed.
30822         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): No longer require
30823         LIB_CLOCK_GETTIME.
30824         * modules/nanosleep (Depends-on): Add intprops and verify.  Drop
30825         clock-time, gettime.
30826         * doc/posix-functions/nanosleep.texi (nanosleep): Document the
30827         bug.
30828         * modules/nanosleep-tests: New test.
30829         * tests/test-nanosleep.c: New file.
30830
30831         sleep: work around cygwin bug
30832         * lib/sleep.c (rpl_sleep): Work around the bug.
30833         * m4/sleep.m4 (gl_FUNC_SLEEP): Detect the bug.
30834         (gl_PREREQ_SLEEP): Delete unused macro.
30835         * modules/sleep (Depends-on): Add verify.
30836         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add default.
30837         * modules/unistd (Makefile.am): Substitute witness.
30838         * lib/unistd.in.h (sleep): Update prototype.
30839         * doc/posix-functions/sleep.texi (sleep): Document the bug.
30840         * tests/test-sleep.c (main) [HAVE_DECL_ALARM]: Test it.
30841         * modules/sleep-tests (Depends-on): Check for alarm.
30842
30843 2009-11-20  Jim Meyering  <meyering@redhat.com>
30844
30845         maint.mk: improve sc_prohibit_magic_number_exit
30846         * top/maint.mk (sc_prohibit_magic_number_exit): Tighten regexp
30847         so it does not match uses like System.exit(1).
30848         Add comments showing how to correct all offenders.
30849
30850 2009-11-19  Eric Blake  <ebb9@byu.net>
30851
30852         xalloc-die-tests: add missing library
30853         * modules/xalloc-die-tests (Makefile.am): Add LDADD line.
30854
30855         test-xvasprintf: silence compiler warnings
30856         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Mask
30857         empty string from gcc.
30858
30859 2009-11-19  Jim Meyering  <meyering@redhat.com>
30860
30861         xfreopen: new module, from coreutils
30862         * modules/xfreopen: New module.
30863         * lib/xfreopen.c: New file.
30864         * lib/xfreopen.h: New file.
30865         * MODULES.html.sh (File stream based Input/Output"): Add it.
30866
30867 2009-11-19  Eric Blake  <ebb9@byu.net>
30868
30869         manywarnings: depend on warnings
30870         * modules/manywarnings (Depends-on): Add warnings.
30871
30872         build: avoid compiler warnings
30873         * lib/select.c (rpl_select): Delete unused variable.
30874         * lib/setsockopt.c (rpl_setsockopt): Avoid incompatible pointer.
30875
30876 2009-11-18  Eric Blake  <ebb9@byu.net>
30877
30878         tests: avoid false negative with --with-packager
30879         * tests/test-version-etc.sh: Discard packager information.
30880         * tests/test-argp-version-etc-1.sh: Likewise.
30881         Reported by Mike Frysinger.
30882
30883         utimens: fix regression on Solaris
30884         * m4/utimens.m4 (gl_UTIMENS): Check for BSD bug.
30885         * lib/utimens.c (fdutimens): Revert 2009-11-08 change; Solaris 10
30886         can only change fd timestamps via futimesat.  Instead, use an
30887         additional witness macro to avoid BSD bug.
30888         Reported by Jim Meyering.
30889
30890 2009-11-17  Eric Blake  <ebb9@byu.net>
30891
30892         usleep: use it to simplify tests
30893         * modules/stat-time-tests (Depends-on): Add usleep.
30894         (configure.ac): Drop usleep check.
30895         * modules/chown-tests (Depends-on, configure.ac): Likewise.
30896         * modules/lchown-tests (Depends-on, configure.ac): Likewise.
30897         * modules/fdutimensat-tests (Depends-on, configure.ac): Likewise.
30898         * modules/futimens-tests (Depends-on, configure.ac): Likewise.
30899         * modules/openat-tests (Depends-on, configure.ac): Likewise.
30900         * modules/utimens-tests (Depends-on, configure.ac): Likewise.
30901         * modules/utimensat-tests (Depends-on, configure.ac): Likewise.
30902         * modules/pipe-filter-gi-tests (Depends-on, configure.ac):
30903         Likewise.
30904         * tests/test-chown.h (nap): Rely on nicer usleep semantics.
30905         * tests/test-lchown.h (nap): Likewise.
30906         * tests/test-pipe-filter-gi2-main.c (small_nap): Likewise.
30907         * tests/test-stat-time.c (nap): Likewise.
30908         * tests/test-utimens-common.h (nap): Update comments.
30909
30910         usleep: new module
30911         * modules/usleep: New file.
30912         * m4/usleep.m4 (gl_FUNC_USLEEP): Likewise.
30913         * lib/usleep.c (usleep): Likewise.
30914         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add defaults.
30915         * modules/unistd (Makefile.am): Substitute witnesses.
30916         * lib/unistd.in.h (usleep): Add declaration.
30917         * doc/pastposix-functions/usleep.texi (usleep): Document this.
30918         * MODULES.html.sh (Date and time): Likewise.
30919         * modules/usleep-tests (Depends-on): New test.
30920         * tests/test-usleep.c: New file.
30921
30922         chown: work around OpenBSD bug
30923         * lib/chown.c (rpl_chown): Work around the bug.
30924         * lib/lchown.c (rpl_lchown): Attempt to do likewise.
30925         * m4/chown.m4 (gl_FUNC_CHOWN): Test for ctime bug.
30926         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check for lchmod.
30927         * modules/chown (Depends-on): Add stdbool.
30928         * modules/lchown (Depends-on): Likewise.
30929         * doc/posix-functions/chown.texi (chown): Document the bug.
30930         * doc/posix-functions/lchown.texi (lchown): Likewise.
30931         * tests/test-lchown.h (test_chown): Relax test.
30932
30933         mkstemp: avoid conflict with C++ keyword template
30934         * lib/mkdtemp.c (mkdtemp): Change spelling of template.
30935         * lib/mkostemp.c (mkostemp): Likewise.
30936         * lib/mkostemps.c (mkostemps): Likewise.
30937         * lib/mkstemp.c (mkstemp): Likewise.
30938         * lib/mkstemps.c (mkstemps): Likewise.
30939
30940         xalloc-die-tests: optimize
30941         * tests/test-xalloc-die.sh: Reduce number of processes.
30942
30943 2009-11-17  Simon Josefsson  <simon@josefsson.org>
30944
30945         * gnulib-tool: Support LGPLv3+ licenses in module files.  Tiny
30946         patch from ludo@gnu.org (Ludovic Courtès).
30947
30948 2009-11-17  Jim Meyering  <meyering@redhat.com>
30949
30950         version-etc: use proper license string
30951         * modules/version-etc (License): Use LGPL, not LGPLv3+.
30952         * modules/version-etc-fsf: Likewise.
30953
30954 2009-11-17  Simon Josefsson  <simon@josefsson.org>
30955
30956         * tests/test-xalloc-die.sh: Add license.  Check that nothing is
30957         printed to stdout.  Deal with EOL differences.
30958
30959 2009-11-17  Eric Blake  <ebb9@byu.net>
30960
30961         unsetenv: work around Solaris bug
30962         * m4/setenv.m4 (gl_FUNC_UNSETENV): Check for bug.
30963         * lib/unsetenv.c (rpl_unsetenv): Work around it.
30964         Reported by Jim Meyering.
30965
30966         vasnprintf: avoid compiler warnings
30967         * lib/vasnprintf.c (VASNPRINTF): Avoid shadowing our own local
30968         variables.
30969         * lib/printf-args.c (PRINTF_FETCHARGS): Avoid type mismatch.
30970
30971 2009-11-17  Simon Josefsson  <simon@josefsson.org>
30972
30973         * modules/xalloc-die-tests (Makefile.am): Drop XFAIL_TESTS
30974         settings since xalloc-die is no longer the self test,
30975         xalloc-die.sh is.
30976
30977 2009-11-17  Jim Meyering  <meyering@redhat.com>
30978
30979         test-xalloc-die.sh: make the code agree with the commit log
30980         * tests/test-xalloc-die.sh: Put "." at the front of $PATH, not
30981         at the end, just in case you happen to have a test-xalloc-die
30982         program in some other PATH directory.
30983
30984         test-xalloc-die.sh: fix a portability bug
30985         * tests/test-xalloc-die.sh: Do not invoke via ./test-xalloc-die.
30986         Instead, set PATH to start with "." and invoke via "test-xalloc-die".
30987         Otherwise, argv[0] (as often seen in diagnostics) would be too
30988         system-dependent, sometimes with, and sometimes without the leading "./".
30989
30990         version-etc-fsf: relax license to LGPLv3+
30991         * modules/version-etc-fsf (License): Relax license.
30992
30993 2009-11-16  Eric Blake  <ebb9@byu.net>
30994
30995         xalloc-die-tests: avoid printing null pointer
30996         * modules/xalloc-die-tests (Files, Makefile.am): Wrap execution in
30997         shell script.
30998         * tests/test-xalloc-die.c (program_name): Declare.
30999         * tests/test-xalloc-die.sh (tmpfiles): New file.
31000
31001         setenv, unsetenv: work around various bugs
31002         * lib/setenv.c (setenv) [!HAVE_SETENV]: Resync from glibc.
31003         (setenv) [HAVE_SETENV]: Work around bugs.
31004         * lib/unsetenv.c (unsetenv) [HAVE_UNSETENV]: Work around bugs.
31005         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE, gl_FUNC_UNSETENV): Check
31006         for bugs.
31007         (gl_FUNC_SETENV): Write in terms of gl_FUNC_SETENV_SEPARATE.
31008         * m4/environ.m4 (gl_ENVIRON): Avoid expand-before-require.
31009         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Update defaults.
31010         * modules/stdlib (Makefile.am): Update substitutions.
31011         * lib/stdlib.in.h (setenv, unsetenv): Update prototypes.
31012         * doc/posix-functions/setenv.texi (setenv): Document the bugs.
31013         * doc/posix-functions/unsetenv.texi (unsetenv): Likewise.
31014         * modules/setenv-tests: New test.
31015         * modules/unsetenv-tests: Likewise.
31016         * tests/test-setenv.c: New file.
31017         * tests/test-unsetenv.c: Likewise.
31018
31019 2009-11-16  Jim Meyering  <meyering@redhat.com>
31020
31021         version-etc: relax license to LGPLv3+
31022         * modules/version-etc (License): Relax license.
31023
31024         better AC_REQUIRE expanded-before-required-warning avoidance
31025         * m4/chown.m4 (gl_FUNC_CHOWN, gl_FUNC_CHOWN_FOLLOWS_SYMLINK): Define
31026         with AC_DEFUN_ONCE, rather than AC_DEFUN, to avoid AC_REQUIRE warnings.
31027         Suggested by Eric Blake.  This change also reverts commit 1b712ba8,
31028         which is no longer needed.
31029
31030 2009-11-16  Eric Blake  <ebb9@byu.net>
31031
31032         test-freading: clean up temporary file
31033         * tests/test-freading.c (main): Remove file on success, and use
31034         ASSERT more liberally.
31035         Reported by Jim Meyering.
31036
31037 2009-11-16  Jim Meyering  <meyering@redhat.com>
31038
31039         avoid new AC_REQUIRE expanded-before-required warnings
31040         * modules/chown (configure.ac): Require gl_FUNC_CHOWN, rather than
31041         merely using it.
31042         * modules/euidaccess (configure.ac): Likewise for gl_FUNC_EUIDACCESS.
31043         * modules/faccessat (configure.ac): Likewise for gl_FUNC_FACCESSAT.
31044
31045 2009-11-15  Simon Josefsson  <simon@josefsson.org>
31046
31047         * tests/test-xalloc-die.c: New file.
31048         * modules/xalloc-die-tests: New file.
31049         * gnulib-tool (func_emit_tests_Makefile_am): Also initialize
31050         XFAIL_TESTS so it can be appended by modules.
31051
31052 2009-11-15  Simon Josefsson  <simon@josefsson.org>
31053
31054         * lib/gc-pbkdf2-sha1.c: Remove comments from RFC 2898.  Reported
31055         by Vladimir 'phcoder' Serbinenko <phcoder@gmail.com>.
31056
31057 2009-11-14  Eric Blake  <ebb9@byu.net>
31058
31059         fnmatch: avoid compiler warning
31060         * lib/fnmatch_loop.c (NEW_PATTERN): Coerce addition to unsigned,
31061         to silence compiler warning about mismatch signedness in ?:.
31062         Reported by Robert Millan.
31063
31064         intprops: add double-inclusion guard
31065         * lib/intprops.h: Allow idempotent includes.
31066         Suggested by Bruce Korb.
31067
31068         openat: detect Solaris fchownat bug
31069         * lib/fchownat.c (rpl_fchownat): Work around Solaris bug.  Avoid
31070         penalizing glibc chownat when only lchownat is broken.
31071         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Replace fchownat if there are
31072         trailing slash bugs.
31073         * doc/posix-functions/fchownat.texi (fchownat): Document the bug.
31074         * modules/openat-tests (Files): Include more files.
31075         (Depends-on): Add mgetgroups, sleep, stat-time.
31076         (configure.ac): Add additional checks.
31077         (Makefile.am): Build new test.
31078         * tests/test-fchownat.c: New file.
31079
31080         lchown: detect Solaris and FreeBSD bug
31081         * lib/lchown.c (rpl_lchown): Work around bug.
31082         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check for trailing slash bugs.
31083         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
31084         * modules/unistd (Makefile.am): Populate it.
31085         * lib/unistd.in.h (lchown): Update declaration.
31086         * doc/posix-functions/lchown.texi (lchown): Document the bug.
31087         * modules/lchown-tests: New file.
31088         * tests/test-lchown.h (test_lchown): Likewise.
31089         * tests/test-lchown.c (main): Likewise.
31090
31091         chown: detect Solaris and FreeBSD bug
31092         * lib/chown.c (rpl_chown): Work around bug.
31093         * m4/chown.m4 (gl_FUNC_CHOWN): Check for trailing slash bugs.
31094         (gl_PREREQ_CHOWN): Delete.
31095         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
31096         * modules/unistd (Makefile.am): Populate it.
31097         * lib/unistd.in.h (chown): Update declaration.
31098         * lib/lchown.c (chown): Update client.
31099         * modules/lchown (Depends-on): Add lstat.
31100         * doc/posix-functions/chown.texi (chown): Document the bug.
31101         * doc/posix-functions/getgroups.texi (getgroups): Document
31102         getgroups pitfall.
31103         * modules/chown-tests: New file.
31104         * tests/test-chown.h (test_chown): Likewise.
31105         * tests/test-chown.c (main): Likewise.
31106
31107 2009-11-14  Robert Millan  <rmh.grub@aybabtu.com>  (tiny change)
31108
31109         gnulib-tool: correctly detect absence of m4 directories
31110         * gnulib-tool: Avoid extra newline on data passed to wc -l.
31111
31112 2009-11-14  Jim Meyering  <meyering@redhat.com>
31113
31114         maint.mk: Prohibit inclusion of "xalloc.h" without use.
31115         * top/maint.mk (sc_prohibit_close_stream_without_use): New rule.
31116
31117 2009-11-14  John W. Eaton  <jwe@gnu.org>
31118
31119         strftime.h: wrap funtion declaration in extern "C" block
31120         * lib/strftime.h (nstrftime) [__cplusplus]: Wrap declaration.
31121
31122 2009-11-13  Eric Blake  <ebb9@byu.net>
31123
31124         getgroups: avoid compiler warning
31125         * lib/getgroups.c (rpl_getgroups): Delete shadowed variable.
31126
31127         getgroups: work around FreeBSD bug
31128         * lib/getgroups.c (rpl_getgroups): Work around the bug.
31129         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Detect the bug.
31130         * doc/posix-functions/getgroups.texi (getgroups): Document it.
31131         * tests/test-getgroups.c (main): Fix buffer overrun.
31132
31133         getgroups: avoid compilation failure
31134         * lib/getgroups.c (includes): Include <stdint.h> for SIZE_MAX.
31135         * modules/getgroups (Depends-on): Add stdint.
31136
31137 2009-11-13  Jim Meyering  <meyering@redhat.com>
31138
31139         test-getgroups: avoid compilation failure
31140         * tests/test-getgroups.c: Include <stdint.h> for use of SIZE_MAX.
31141
31142 2009-11-13  Eric Blake  <ebb9@byu.net>
31143
31144         mgetgroups: new module, taken from coreutils
31145         * modules/mgetgroups: New file.
31146         * lib/mgetgroups.h: Likewise.
31147         * lib/mgetgroups.c (mgetgroups): Likewise.
31148         * m4/mgetgroups.m4 (gl_MGETGROUPS): Likewise.
31149         * MODULES.html.sh (Users and groups): Mention it.
31150
31151         getgroups: don't expose GETGROUPS_T to user
31152         * lib/getgroups.c (rpl_getgroups): Change signature.  Copy array
31153         an element at a time if GETGROUPS_T is wrong size.
31154         * lib/getugroups.h (getugroups): Change signature.
31155         * lib/unistd.in.h (getgroups): Likewise.
31156         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Use replacement if
31157         signature needs fixing.
31158         * m4/getugroups.m4 (gl_GETUGROUPS): No longer need
31159         AC_TYPE_GETGROUPS.
31160         * modules/group-member (Depends-on): Add getgroups.
31161         * lib/group-member.c (group_info, get_group_info): Use gid_t.
31162         (group_member): Rely on getgroups replacement.
31163         * lib/getugroups.c (getugroups): Use gid_t.
31164         * tests/test-getgroups.c (main): Likewise.
31165         * NEWS: Mention the signature change.
31166         * doc/posix-functions/getgroups.texi (getgroups): Mention the
31167         problem with signature.
31168         * doc/glibc-functions/setgroups.texi (setgroups): Mention that
31169         GETGROUPS_T is still useful for setgroups.
31170
31171         getgroups, getugroups: provide stubs for mingw
31172         * lib/getgroups.c (getgroups): Provide ENOSYS stub for mingw.
31173         * lib/getugroups.c (getugroups): Likewise.
31174         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Check for missing
31175         function.  Modernize replacement scheme.
31176         (gl_PREREQ_GETGROUPS): Delete.
31177         * m4/getugroups.m4 (gl_GETUGROUPS): Check for <grp.h>.
31178         * modules/getgroups (configure.ac): Declare witness.
31179         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add default.
31180         * modules/unistd (Depends-on): Substitute witness.
31181         * lib/unistd.in.h (getgroups): Declare replacement.
31182
31183         getgroups: avoid calling exit
31184         * modules/getgroups (Depends-on): Add malloc-posix and unistd,
31185         drop xalloc.
31186         * modules/getgroups-tests (Depends-on, Makefile.am): Drop unneeded
31187         dependencies.
31188         * lib/getgroups.c (rpl_getgroups): Fail with ENOMEM rather than
31189         exiting, in the rare case of malloc failure.
31190
31191         getgroups: fix logic error
31192         * lib/getgroups.c (rpl_getgroups): Don't fail if current process
31193         has more than 20 groups.
31194         * modules/getgroups-tests: New test.
31195         * tests/test-getgroups.c: New file.
31196
31197 2009-11-13  Simon Josefsson  <simon@josefsson.org>
31198
31199         * tests/test-base64.c: Improve.
31200
31201 2009-11-13  Simon Josefsson  <simon@josefsson.org>
31202
31203         * tests/test-xvasprintf.c: Fix memory leak, suggested by Eric
31204         Blake <ebb9@byu.net>.
31205
31206 2009-11-13  Simon Josefsson  <simon@josefsson.org>
31207
31208         * tests/test-xvasprintf.c: Add %s%s related checks.
31209
31210 2009-11-12  Eric Blake  <ebb9@byu.net>
31211
31212         version-etc: match standards.texi style
31213         * lib/version-etc.c (emit_bug_reporting_address): Drop periods,
31214         and use <> only for URLs.
31215
31216 2009-11-10  Kamil Dudka  <kdudka@redhat.com>
31217
31218         fts: do not fail on a submount during traversal
31219         * lib/fts.c (fts_build): Read the stat info again after opening
31220         a directory if the FTS_TIGHT_CYCLE_CHECK flag is set.
31221         Original report at http://bugzilla.redhat.com/501848.
31222
31223 2009-11-12  Jim Meyering  <meyering@redhat.com>
31224
31225         bootstrap: sync from coreutils
31226         * build-aux/bootstrap (bootstrap_epilogue): New function.
31227         Use git_modules_config in one more place.  This make bootstrap's
31228         --gnulib-srcdir option more useful for testing.
31229
31230         bootstrap: generalize autoheader check
31231         * build-aux/bootstrap: Look for AC_CONFIG_HEADER as well as
31232         AC_CONFIG_HEADERS.
31233
31234 2009-11-11  Eric Blake  <ebb9@byu.net>
31235
31236         mkfifoat: use new modules for Solaris and BSD bugs
31237         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Simplify.
31238         * lib/mkfifoat.c (mknodat): Split...
31239         * lib/mknodat.c (mknodat): ...into new file.
31240         * modules/mkfifoat (Files): Ship new file.
31241         (Depends-on): Add mkfifo, mknod.
31242         * modules/mkfifoat-tests (Files): Reuse mkfifo tests.
31243         (Depends-on): Add symlink.
31244         * tests/test-mkfifoat.c (main): Enhance test.  Drop portions now
31245         redundant with test_mkfifo.h.
31246         (do_mkfifoat, do_mknodat): New helpers.
31247
31248         mknod: new module
31249         * modules/mknod: New file.
31250         * m4/mknod.m4 (gl_FUNC_MKNOD): Likewise.
31251         * lib/mknod.c (mknod): Likewise.
31252         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Set witness
31253         defaults.
31254         * modules/sys_stat (Makefile.am): Substitute them.
31255         * lib/sys_stat.in.h (mknod): Declare replacement.
31256         * MODULES.html.sh (Support for systems lacking POSIX:2008):
31257         Document it.
31258         * doc/posix-functions/mknod.texi (mknod): Likewise.
31259         * modules/mknod-tests: New test.
31260         * tests/test-mknod.c: Likewise.
31261
31262         mkfifo: new module
31263         * modules/mkfifo: New file.
31264         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Likewise.
31265         * lib/mkfifo.c (mkfifo): Likewise.
31266         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Set witness
31267         defaults.
31268         * modules/sys_stat (Makefile.am): Substitute them.
31269         * lib/sys_stat.in.h (mkfifo): Declare replacement.
31270         * MODULES.html.sh (Support for systems lacking POSIX:2008):
31271         Document it.
31272         * doc/posix-functions/mkfifo.texi (mkfifo): Likewise.
31273         * modules/mkfifo-tests: New test.
31274         * tests/test-mkfifo.h (test_mkfifo): New file, borrowed in part
31275         from test-mkfifoat.c.
31276         * tests/test-mkfifo.c: New file.
31277
31278         readlink: detect FreeBSD bug
31279         * m4/readlink.m4 (gl_FUNC_READLINK): Also detect FreeBSD bug with
31280         slash on symlink.
31281         * doc/posix-functions/readlink.texi (readlink): Document the bug.
31282         * tests/test-readlink.h (test_readlink): Enhance test.
31283
31284         symlink: detect FreeBSD bug
31285         * m4/symlink.m4 (gl_FUNC_SYMLINK): Also detect FreeBSD bug with
31286         slash on symlink.
31287         * doc/posix-functions/symlink.texi (symlink): Document the bug.
31288         * tests/test-symlink.h (test_symlink): Enhance test.
31289
31290 2009-11-10  Eric Blake  <ebb9@byu.net>
31291
31292         link: detect FreeBSD bug
31293         * m4/link.m4 (gl_FUNC_LINK): Also detect FreeBSD bug with slash on
31294         symlink.
31295         * doc/posix-functions/link.texi (link): Document the bug.
31296         * tests/test-link.h (test_link): Enhance test.
31297         * tests/test-linkat.c (main): Update caller.
31298
31299         unlink, remove: detect FreeBSD bug
31300         * m4/unlink.m4 (gl_FUNC_UNLINK): Also detect FreeBSD bug with
31301         slash on symlink.
31302         * doc/posix-functions/unlink.texi (unlink): Document the bug.
31303         * doc/posix-functions/remove.texi (remove): Likewise.
31304         * tests/test-unlink.h (test_unlink): Enhance test.
31305         * tests/test-remove.c (main): Likewise.
31306
31307 2009-11-09  Eric Blake  <ebb9@byu.net>
31308
31309         rename: detect FreeBSD bug
31310         * m4/rename.m4 (gl_FUNC_RENAME): Also detect FreeBSD bug with
31311         slash on symlink.
31312         * modules/renameat-tests (Depends-on): Add filenamecat.
31313         * tests/test-rename.h (test_rename): Allow one more errno.
31314         * tests/test-renameat.c (main): Likewise.
31315         * doc/posix-functions/rename.texi (rename): Document the bug.
31316
31317         open: detect FreeBSD bug
31318         * m4/open.m4 (gl_FUNC_OPEN): Also detect FreeBSD bug with slash on
31319         symlink.
31320         * doc/posix-functions/open.texi (open): Document the bug.
31321         * doc/posix-functions/utimes.texi (utimes): Likewise.
31322         * tests/test-open.h (test_open): Add parameters, and test symlink
31323         handling.
31324         * tests/test-open.c (main): Adjust caller.
31325         * tests/test-fcntl-safer.c (main): Likewise.
31326         * modules/open-tests (Depends-on): Add stdbool, symlink.
31327         * modules/fcntl-safer-tests (Depends-on): Likewise.
31328         * tests/test-openat.c (main): Add test-open tests.
31329
31330         stat: detect FreeBSD bug
31331         * m4/stat.m4 (gl_FUNC_STAT): Also detect FreeBSD bug with slash on
31332         symlink.
31333         * doc/posix-functions/stat.texi (stat): Document the bug.
31334         * tests/test-stat.h (test_stat_func): Add argument.
31335         * tests/test-stat.c (main): Adjust caller.
31336         * tests/test-fstatat.c (main): Likewise.
31337         * modules/stat-tests (Depends-on): Add stdbool, symlink.
31338         Reported by Jim Meyering.
31339
31340 2009-11-09  James Youngman  <jay@gnu.org>
31341
31342         strftime.c: include ignore-value.h only when FPRINTFTIME is defined
31343         * lib/strftime.c: Correct placement of #include "ignore-value.h".
31344
31345 2009-11-08  Jim Meyering  <meyering@redhat.com>
31346
31347         utimens: remove invalid futimesat call
31348         * lib/utimens.c (fdutimens): Remove invalid futimesat call.
31349         It used the file descriptor of the target file as the DIR_FD
31350         parameter and NULL as the file name.  That caused failure with
31351         errno == EFAULT on FreeBSD-8.0-rc2
31352
31353 2009-11-07  Eric Blake  <ebb9@byu.net>
31354
31355         fflush, freadseek: use fseeko, not fseek
31356         * lib/fflush.c (clear_ungetc_buffer_preserving_position)
31357         (clear_ungetc_buffer): Avoid potential problems on large files.
31358         * lib/freadseek.c (freadseek): Likewise.
31359         * modules/freadseek (Depends-on): Add fseeko.
31360         * modules/fseek (configure.ac): Set a witness.
31361         * tests/test-fflush.c (main): Use fseeko.
31362         * tests/test-fpurge.c (fseek): Disable link warning.
31363         * tests/test-freadable.c (fseek): Likewise.
31364         * tests/test-freading.c (fseek): Likewise.
31365         * tests/test-fseeko.c (fseek): Likewise.
31366         * tests/test-ftell.c (fseek): Likewise.
31367         * tests/test-ftello.c (fseek): Likewise.
31368         * tests/test-fwritable.c (fseek): Likewise.
31369         * tests/test-fwriting.c (fseek): Likewise.
31370
31371 2009-11-06  Simon Josefsson  <simon@josefsson.org>
31372
31373         * modules/memchr (Depends-on): Drop getpagesize dependency.
31374
31375 2009-11-06  Simon Josefsson  <simon@josefsson.org>
31376
31377         * build-aux/pmccabe2html: Disable execute bit.  Suggested by
31378         Reported by Ludovic Courtès.
31379         * build-aux/pmccabe2html: Improve example usage.
31380         * build-aux/pmccabe2html: Drop #! header.  Doc fix.
31381
31382 2009-11-06  Jim Meyering  <meyering@redhat.com>
31383
31384         do-release-commit-and-tag: New module.
31385         Automate the release-commit and tag process.
31386         * build-aux/do-release-commit-and-tag: New script, from coreutils.
31387         * modules/do-release-commit-and-tag: New file.
31388         * MODULES.html.sh (Support for maintaining and releasing): Add it.
31389
31390 2009-11-06  Simon Josefsson  <simon@josefsson.org>
31391
31392         * modules/select-tests (test_select_LDADD): Add $(INET_PTON_LIB)
31393         because test-select.c uses inet_pton.
31394
31395 2009-11-06  Simon Josefsson  <simon@josefsson.org>
31396
31397         * m4/getaddrinfo.m4: Add content of INET_NTOP_LIB to
31398         GETADDRINFO_LIB.  Bump serial number.
31399         * modules/getaddrinfo (Link): Only mention GETADDRINFO_LIB again.
31400         Suggested by Eric Blake <ebb9@byu.net>.
31401
31402 2009-11-05  Eric Blake  <ebb9@byu.net>
31403
31404         strtod: detect darwin bug
31405         * m4/strtod.m4 (gl_FUNC_STRTOD): Filter out darwin bug on "nan(".
31406         Reported by Leo Davis.
31407
31408         freopen-safer: new module
31409         * modules/freopen-safer: New module.
31410         * m4/stdio-safer.m4 (gl_FREOPEN_SAFER): New macro.
31411         * lib/freopen-safer.c (freopen_safer): New file.
31412         * lib/stdio-safer.h (freopen_safer): New declaration.
31413         * lib/stdio--.h (freopen): New override.
31414         * MODULES.html.sh (File stream based Input/Output): Mention it.
31415         * doc/posix-functions/freopen.texi (freopen): Mention pitfalls and
31416         freopen-safer module.
31417         * doc/posix-functions/stderr.texi (stderr): Likewise.
31418         * doc/posix-functions/stdin.texi (stdin): Likewise.
31419         * doc/posix-functions/stdout.texi (stdout): Likewise.
31420         * modules/freopen-safer-tests: New test.
31421         * tests/test-reopen-safer.c: New file.
31422
31423 2009-11-05  Jim Meyering  <meyering@redhat.com>
31424
31425         maint.mk: Prohibit inclusion of "close-stream.h" without use.
31426         * top/maint.mk (sc_prohibit_close_stream_without_use): New rule.
31427
31428 2009-11-05  Simon Josefsson  <simon@josefsson.org>
31429
31430         * modules/pmccabe2html (configure.ac): Check for pmccabe tool.
31431
31432 2009-11-05  Simon Josefsson  <simon@josefsson.org>
31433
31434         * modules/getaddrinfo (Link): Add $(INET_NTOP_LIB).
31435
31436 2009-11-05  Simon Josefsson  <simon@josefsson.org>
31437
31438         Fix link error.
31439         * m4/inet_ntop.m4 (gl_INET_NTOP): Fix test of AC_SEARCH_LIBS result.
31440         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
31441
31442 2009-11-05  Simon Josefsson  <simon@josefsson.org>
31443
31444         * tests/test-func.c: Also test value of __func__.
31445
31446 2009-11-05  Simon Josefsson  <simon@josefsson.org>
31447
31448         * tests/test-sys_socket.c: Use smaller constant value, sa_family_t
31449         may be an 8-bit type.  Reported by Bruno Haible <bruno@clisp.org>.
31450
31451 2009-11-05  Bruno Haible  <bruno@clisp.org>
31452
31453         Fix link error.
31454         * m4/inet_ntop.m4 (gl_INET_NTOP): Fix test of AC_SEARCH_LIBS result.
31455         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
31456         Reported by Brad Hards <bradh@frogmouth.net> via Simon Josefsson.
31457
31458 2009-11-05  Bruno Haible  <bruno@clisp.org>
31459
31460         Tests for module 'inet_pton'.
31461         * modules/inet_pton-tests: New file.
31462         * tests/test-inet_pton.c: New file.
31463
31464 2009-11-05  Bruno Haible  <bruno@clisp.org>
31465
31466         Tests for module 'inet_ntop'.
31467         * modules/inet_ntop-tests: New file.
31468         * tests/test-inet_ntop.c: New file.
31469
31470 2009-11-04  Eric Blake  <ebb9@byu.net>
31471
31472         stdlib-safer: wrap all mkstemp variants
31473         * modules/mkostemp (configure.ac): Set witness.
31474         * modules/mkostemps (configure.ac): Likewise.
31475         * modules/mkstemps (configure.ac): Likewise.
31476         * lib/stdlib-safer.h (mkostemp_safer, mkostemps_safer)
31477         (mkstemps_safer): Wrap more functions.
31478         * lib/stdlib--.h (mkostemp, mkostemps, mkstemps): Default the
31479         wrapping.
31480         * lib/mkstemp-safer.c (mkostemp_safer, mkostemps_safer)
31481         (mkstemps_safer): Implement the wrappers.
31482
31483         mkstemps, mkostemps: new modules
31484         * modules/mkostemps: New module.
31485         * modules/mkstemps: Likewise.
31486         * lib/mkostemps.c (mkostemps): New file.
31487         * lib/mkstemps.c (mkstemps): Likewise.
31488         * m4/mkostemps.m4 (gl_FUNC_MKOSTEMPS): Likewise.
31489         * m4/mkstemps.m4 (gl_FUNC_MKSTEMPS): Likewise.
31490         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Add witnesses.
31491         * modules/stdlib (Makefile.am): Substitute them.
31492         * lib/stdlib.in.h (mkostemps, mkstemps): Declare them.
31493         * doc/glibc-functions/mkstemps.texi (mkstemps): New file.
31494         * doc/glibc-functions/mkostemps.texi (mkostemps): Likewise.
31495         * doc/gnulib.texi (Glibc stdlib.h): Include them.
31496         * MODULES.html.sh (File system functions): Mention them.
31497
31498         tempname: resync from glibc
31499         * lib/tempname.c (__gen_tempname): Add suffixlen argument.  Use
31500         same values for __GT_FILE as glibc.  Abort even when assertions
31501         are disabled.
31502         * lib/tempname.h (GT_FILE): Use glibc __GT_FILE, if available, and
31503         match its value otherwise.  Allow idempotent inclusion.
31504         * lib/mkdtemp.c (mkdtemp): Adjust caller.
31505         * lib/mkostemp.c (mkostemp): Likewise.
31506         * lib/mkstemp.c (mkstemp): Likewise.
31507         * lib/tmpfile.c (tmpfile): Likewise.
31508         * NEWS: Document this.
31509
31510         utimens: fix use of futimens on older Linux
31511         * lib/utimens.c (fdutimens): Use updated, rather than original,
31512         timespec to avoid bug in older Linux kernel.
31513         Reported by Simon Josefsson.
31514
31515 2009-11-04  Bruno Haible  <bruno@clisp.org>
31516
31517         Make num_processors more flexible and consistent.
31518         * lib/nproc.h (enum nproc_query): New type.
31519         (num_processors): Add a 'query' argument.
31520         * lib/nproc.c: Include <stdlib.h>, <sched.h>, c-ctype.h.
31521         (num_processors): Add a 'query' argument. Test the value of the
31522         OMP_NUM_THREADS environment variable if requested. On Linux, NetBSD,
31523         mingw, count the number of CPUs available for the current process.
31524         * m4/nproc.m4 (gl_PREREQ_NPROC): Require AC_USE_SYSTEM_EXTENSIONS.
31525         Check for sched_getaffinity and sched_getaffinity_np.
31526         * modules/nproc (Depends-on): Add c-ctype, extensions.
31527         * NEWS: Mention the change.
31528
31529 2009-11-03  Bruno Haible  <bruno@clisp.org>
31530
31531         * NEWS: Document the new library dependencies of inet_ntop, inet_pton.
31532
31533 2009-11-03  Jim Meyering  <meyering@redhat.com>
31534
31535         test-getaddrinfo: avoid compilation failure on FreeBSD 7.2
31536         * tests/test-getaddrinfo.c (simple): Test for EAI_NODATA only
31537         if it is defined.
31538
31539 2009-11-02  Eric Blake  <ebb9@byu.net>
31540
31541         mktime, timegm: share common declaration
31542         * lib/mktime-internal.h: New file.
31543         * lib/mktime.c: Use it rather than open-coding a declaration.
31544         * lib/timegm.c: Likewise.
31545         * modules/mktime (Files): Ship it.
31546         * modules/timegm (Files): Likewise.
31547         Suggested by Bruno Haible.
31548
31549         test-update-copyright: update test to match script changes
31550         * tests/test-update-copyright.sh: Avoid hard-coding perl
31551         location.  Don't update *.bak created by earlier runs.
31552
31553 2009-11-02  Paul Eggert  <eggert@cs.ucla.edu>
31554             Simon Josefsson  <simon@josefsson.org>
31555             Bruno Haible  <bruno@clisp.org>
31556
31557         Fix link error on Solaris 8.
31558         * m4/inet_pton.m4 (gl_INET_PTON): Search for the function inet_pton
31559         also in libnsl. Define also INET_PTON_LIB.
31560         * modules/inet_pton (Link): New section.
31561
31562 2009-11-02  Simon Josefsson  <simon@josefsson.org>
31563             Bruno Haible  <bruno@clisp.org>
31564
31565         * m4/inet_ntop.m4 (gl_INET_NTOP): Define also INET_NTOP_LIB.
31566         * modules/inet_ntop (Link): New section.
31567         Reported by Boyan Kasarov <bkasarov@gmail.com>.
31568
31569 2009-11-02  Eric Blake  <ebb9@byu.net>
31570
31571         maint: avoid compiler warnings in m4 macros
31572         * m4/ungetc.m4 (gl_FUNC_UNGETC_WORKS): Avoid unused variable.
31573         * m4/rmdir.m4 (gl_FUNC_RMDIR): Include correct header.
31574
31575 2009-11-02  Simon Josefsson  <simon@josefsson.org>
31576
31577         * m4/pmccabe2html.m4: Remove file.
31578         * modules/pmccabe2html: Drop pmccabe2html.m4.  Don't call m4
31579         function.  Change maintainer.
31580         * build-aux/pmccabe2html: Use /bin/sh with magic instead of
31581         hard-coding path to awk.  Tiny patch from ludo@gnu.org (Ludovic
31582         Courtès).
31583
31584 2009-10-31  Eric Blake  <ebb9@byu.net>
31585
31586         fseeko: fix m4 regression
31587         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Use modern macro.  Fixes
31588         regression from 2009-10-27.
31589         Reported by Ralf Wildenhues.
31590
31591 2009-10-31  Jim Meyering  <meyering@redhat.com>
31592
31593         inttostr: aesthetics and improved (compile-time) safety
31594         Define inttype_is_signed rather than inttype_is_unsigned,
31595         since the sole use is via "#if inttype_is_signed".
31596         * lib/imaxtostr.c (inttype_is_signed): Define this, rather than
31597         inttype_is_unsigned.
31598         * lib/offtostr.c (inttype_is_signed): Likewise.
31599         * lib/uinttostr.c (inttype_is_signed): Likewise.
31600         * lib/umaxtostr.c (inttype_is_signed): Likewise.
31601         * lib/inttostr.c (inttostr): Use verify to cross-check the
31602         inttype_is_signed value and the signedness of the actual type.
31603         * modules/inttostr (Depends-on): Add verify.
31604
31605 2009-10-30  Eric Blake  <ebb9@byu.net>
31606
31607         build: avoid compiler warnings
31608         * lib/fchmodat.c (lchmod): Mark unused variables.
31609         * lib/getopt.c (_getopt_initialize): Likewise.
31610         * lib/mktime.c (__mktime_internal): Provide prototype.
31611         * lib/inttostr.c (inttostr): Avoid compiler warning even with
31612         older gcc that do not understand #pragma GCC diagnostic.
31613         * lib/uinttostr.c (inttype_is_unsigned): Define.
31614         * lib/umaxtostr.c (inttype_is_unsigned): Likewise.
31615
31616 2009-10-30  Michael Haubenwallner  <michael.haubenwallner@salomon.at>
31617
31618         stat: fix compilation on AIX
31619         * lib/sys_stat.in.h (stat): Work with fact that large files on AIX
31620         only see struct stat64.
31621
31622 2009-10-30  Eric Blake  <ebb9@byu.net>
31623
31624         exclude: make more robust
31625         * lib/exclude.c (excluded_file_name): Abort on unexpected value,
31626         rather than masking a coding bug.
31627         Suggested by Bruno Haible.
31628
31629 2009-10-30  Jim Meyering  <meyering@redhat.com>
31630
31631         perl scripts: remove #!/usr/bin/perl in favor of more portable...
31632         Rather than putting #!/usr/bin/perl on the first line,
31633         start with a variant of what's recommended by "man perlrun" that
31634         invokes the first "perl" program from your shell's search path.
31635         * build-aux/gitlog-to-changelog: Replace #!... as above.
31636         Add a "Local Variables" perl mode setting.
31637         Prompted by a patch from Ludovic Courtès.
31638         Improved by Eric Blake.
31639         * build-aux/useless-if-before-free: Likewise.
31640         * build-aux/announce-gen: Likewise.
31641         * build-aux/update-copyright: Likewise.
31642
31643 2009-10-29  Eric Blake  <ebb9@byu.net>
31644
31645         filenamecat-lgpl: adjust clients
31646         * modules/linkat (Depends-on): Use filenamecat-lgpl, not
31647         filenamecat.
31648         * modules/renameat (Depends-on): Likewise.
31649
31650         filenamecat: split into filenamecat-lgpl
31651         * modules/filenamecat-lgpl: New module.
31652         * modules/filenamecat (Files): Move library-safe files into
31653         filenamecat-lgpl.
31654         (Depends-on): Add filenamecat-lgpl.
31655         (configure.ac): Declare witness.
31656         * lib/filenamecat.h (file_name_concat): Only declare when using
31657         GPL module.
31658         * lib/filenamecat.c (longest_relative_suffix, mfile_name_concat):
31659         Move...
31660         * lib/filenamecat-lgpl.c: ...into new file.
31661         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT_LGPL): New macro.
31662         (gl_FILE_NAME_CONCAT): Use it.
31663         * MODULES.html.sh (File system functions): Mention new module.
31664
31665         argp: avoid memory leak
31666         * modules/argp (Depends-on): Use dirname-lgpl, not dirname.
31667         * lib/argp-namefrob.h (__argp_base_name): Use last_component, not
31668         base_name, since the latter malloc()s and can call exit().
31669         Leak introduced 2006-07-03.
31670
31671         dirname-lgpl: adjust clients that don't need full dirname
31672         * modules/backupfile (Depends-on): Use dirname-lgpl, not dirname.
31673         * modules/filenamecat (Depends-on): Likewise.
31674         * modules/linkat (Depends-on): Likewise.
31675         * modules/mkancesdirs (Depends-on): Likewise.
31676         * modules/mkdir (Depends-on): Likewise.
31677         * modules/openat (Depends-on): Likewise.
31678         * modules/savewd (Depends-on): Likewise.
31679         * modules/rename (Depends-on): Likewise.
31680         (License): Relax license.
31681         * modules/mkdir-tests (Depends-on): Drop progname.
31682         (Makefile.am): Delete unneeded LDADD.
31683         * modules/rename-tests (Depends-on, Makefile.am): Likewise.
31684
31685         dirname: split into dirname-lgpl
31686         * modules/dirname-lgpl: New module.
31687         * modules/dirname (Files): Move library-safe files into
31688         dirname-lgpl.
31689         (Depends-on): Add dirname-lgpl.
31690         (configure.ac): Declare witness.
31691         * modules/double-slash-root (License): Relax license.
31692         * lib/dirname.h (base_name, dir_name): Only declare when using GPL
31693         module.
31694         * lib/dirname.c (dir_len, mdir_name): Move...
31695         * lib/dirname-lgpl.c: ...into new file.
31696         * lib/basename.c (last_component, base_len): Move...
31697         * lib/basename-lgpl.c: ...into new file.
31698         * m4/dirname.m4 (gl_DIRNAME_LGPL): New macro.
31699         (gl_DIRNAME): Use it.
31700         * MODULES.html.sh (Enhancements for POSIX:2008 functions):
31701         Mention new module.
31702         * modules/dirname-tests (Depends-on): Add progname.
31703         * tests/test-dirname.c (program_name): Delete.
31704
31705         mkdir: make safe for libraries
31706         * modules/mkdir (Depends-on): Drop xalloc.
31707         * lib/mkdir.c (rpl_mkdir): Fail with ENOMEM rather than calling
31708         exit.
31709
31710         tests: avoid some compiler warnings
31711         * tests/test-getaddrinfo.c (simple): Mark static, and allow string
31712         literals.
31713         * tests/test-memchr.c (main): Avoid type mismatch.
31714         * tests/test-arpa_inet.c (main): Avoid unused parameters.
31715         * tests/test-base64.c (main): Likewise.
31716         * tests/test-getdelim.c (main): Likewise.
31717         * tests/test-gethostname.c (main): Likewise.
31718         * tests/test-getline.c (main): Likewise.
31719         * tests/test-netinet_in.c (main): Likewise.
31720         * tests/test-select.c (open_server_socket, main): Likewise.
31721         * tests/test-select-stdin.c (main): Likewise.
31722         * tests/test-sockets.c (main): Likewise.
31723         * tests/test-strsignal.c (main): Likewise.
31724         * tests/test-sys_select.c (main): Likewise.
31725         * tests/test-sys_socket.c (main): Likewise.
31726         * tests/test-u64.c (main): Likewise.
31727         * tests/test-xfprintf-posix.c (main): Likewise.
31728         * tests/test-xvasprintf.c (test_xvasprintf, main): Likewise.
31729
31730         sockets: avoid compiler warning
31731         * lib/sockets.c (gl_sockets_startup): Mark unused parameter.
31732
31733         maint: detect usage(1) and other suspicious exits
31734         * top/maint.mk (sc_prohibit_magic_number_exit): New rule.
31735
31736 2009-10-29  Jim Meyering  <meyering@redhat.com>
31737
31738         timespec: long-to-int truncation could make timespec_cmp malfunction
31739         * lib/timespec.h (timespec_cmp): Do not interpret a difference of
31740         a multiple of 2^32 nanoseconds as no difference.
31741
31742 2009-10-28  Jim Meyering  <meyering@redhat.com>
31743
31744         fprintftime: wrap macro code argument in "do {...} while(0)"
31745         * lib/strftime.c (cpy) [FPRINTFTIME]: The second argument to the
31746         cpy macro must be a statement that can be followed by a semicolon.
31747         Now that the else clause contains a comment and is hence longer
31748         than one line, I require curly braces.  That in turn requires
31749         that we wrap this code block in the standard do...while(0).
31750
31751         fprintftime: remove stray semicolon from previous change
31752         * lib/strftime.c (cpy) [FPRINTFTIME]: Remove trailing semicolon.
31753
31754         fprintftime: avoid a warning about ignored fwrite return value
31755         * lib/strftime.c [FPRINTFTIME]: Include "ignore-value.h".
31756         (cpy) [FPRINTFTIME]: Ignore fwrite failure, even though technically,
31757         that is unsafe.
31758         * modules/fprintftime (Depends-on): Add ignore-value.
31759
31760         exclude: avoid an unwarranted warning
31761         * lib/exclude.c (excluded_file_name): Initialize "rc" before switch.
31762
31763 2009-10-27  Eric Blake  <ebb9@byu.net>
31764
31765         fseek: avoid compilation failure when fflush is replaced
31766         * m4/fseek.m4 (gl_REPLACE_FSEEK): New macro.
31767         * m4/fseeko.m4 (gl_REPLACE_FSEEKO): Also replace fseek, if fseek
31768         module is in use.
31769         * lib/stdio.in.h (GNULIB_FSEEKO): Only poison fseek if fseek
31770         module is not in use; since REPLACE_FSEEK worked otherwise.
31771         (GNULIB_FTELLO): Likewise for ftell.
31772         Reported by Ian Beckwith and others.
31773
31774 2009-10-27  Bruno Haible  <bruno@clisp.org>
31775
31776         * lib/isnan.c (rpl_isnan[fdl]): Repeat the specification declaration.
31777         Reported by Jim Meyering.
31778
31779 2009-10-27  Jim Meyering  <jim@meyering.net>
31780             Bruno Haible  <bruno@clisp.org>
31781
31782         Avoid warning despite dropping the return value of fwrite.
31783         * lib/unicodeio.c: Include ignore-value.h.
31784         (fwrite_success_callback): Explicitly ignore fwrite's return value.
31785         * modules/unicodeio (Depends-on): Add ignore-value.
31786
31787 2009-10-26  Eric Blake  <ebb9@byu.net>
31788
31789         areadlinkat: fix fallback path
31790         * lib/at-func.c (AT_FUNC_NAME): Avoid signed comparison between
31791         pointer and zero.
31792
31793 2009-10-22  Pádraig Brady  <P@draigBrady.com>
31794
31795         Use a better IO block size for modern systems
31796         * lib/copy-file.c (copy_file_preserving): Used a 32KiB malloced buffer.
31797         * lib/md2.c: Likewise.
31798         * lib/md4.c: Likewise.
31799         * lib/md5.c: Likewise.
31800         * lib/sha1.c: Likewise.
31801         * lib/sha256.c: Likewise.
31802         * lib/sha512.c: Likewise.
31803
31804 2009-10-22  Eric Blake  <ebb9@byu.net>
31805
31806         tests: avoid several compiler warnings
31807         * tests/test-getcwd.c (main): Avoid buffer underflow.
31808         * tests/test-getdate.c (main): String literals are not safe with
31809         putenv, so use setenv.  Declare unused argument.
31810         * modules/getdate-tests (Depends-on): Add setenv.
31811         * tests/test-argv-iter.c (main): Declare unused argument.  Avoid
31812         problems with string literals in char *.
31813         * tests/test-hash.c (main): Avoid shadowing declaration.
31814         (insert_new): Treat string literals as char const *.
31815         * tests/test-getopt.h (test_getopt): Likewise.
31816         (getopt_loop): Alter types to minimize casting elsewhere.
31817         * tests/test-getopt_long.h (test_getopt_long, getopt_long_loop)
31818         (test_getopt_long_posix): Likewise.
31819         (do_getopt_long): Add wrapper to minimize casting.
31820         * tests/test-atexit.c (clear_temp_file): Use void.
31821         * tests/test-areadlink-with-size.c (main): Declare unused
31822         arguments.
31823         * tests/test-areadlink.c (main): Likewise.
31824         * tests/test-areadlinkat-with-size.c (main): Likewise.
31825         * tests/test-areadlinkat.c (main): Likewise.
31826         * tests/test-canonicalize-lgpl.c (main): Likewise.
31827         * tests/test-canonicalize.c (main): Likewise.
31828         * tests/test-dirent-safer.c (main): Likewise.
31829         * tests/test-dirname.c (main): Likewise.
31830         * tests/test-dup2.c (main): Likewise.
31831         * tests/test-fchdir.c (main): Likewise.
31832         * tests/test-fcntl-h.c (main): Likewise.
31833         * tests/test-fcntl-safer.c (main): Likewise.
31834         * tests/test-fdopendir.c (main): Likewise.
31835         * tests/test-fdutimensat.c (main): Likewise.
31836         * tests/test-fflush.c (main): Likewise.
31837         * tests/test-filenamecat.c (main): Likewise.
31838         * tests/test-filevercmp.c (main): Likewise.
31839         * tests/test-fopen-safer.c (main): Likewise.
31840         * tests/test-fopen.c (main): Likewise.
31841         * tests/test-fpending.c (main): Likewise.
31842         * tests/test-fpurge.c (main): Likewise.
31843         * tests/test-freading.c (main): Likewise.
31844         * tests/test-fstatat.c (main): Likewise.
31845         * tests/test-fsync.c (main): Likewise.
31846         * tests/test-futimens.c (main): Likewise.
31847         * tests/test-getndelim2.c (main): Likewise.
31848         * tests/test-gettimeofday.c (main): Likewise.
31849         * tests/test-getopt.c (main): Likewise.
31850         * tests/test-i-ring.c (main): Likewise.
31851         * tests/test-inttypes.c (main): Likewise.
31852         * tests/test-link.c (main): Likewise.
31853         * tests/test-lstat.c (main): Likewise.
31854         * tests/test-math.c (main): Likewise.
31855         * tests/test-md5.c (main): Likewise.
31856         * tests/test-memchr2.c (main): Likewise.
31857         * tests/test-memrchr.c (main): Likewise.
31858         * tests/test-mkdir.c (main): Likewise.
31859         * tests/test-mkdirat.c (main): Likewise.
31860         * tests/test-mkfifoat.c (main): Likewise.
31861         * tests/test-open.c (main): Likewise.
31862         * tests/test-openat-safer.c (main): Likewise.
31863         * tests/test-openat.c (main): Likewise.
31864         * tests/test-quotearg.c (main): Likewise.
31865         * tests/test-rawmemchr.c (main): Likewise.
31866         * tests/test-readlink.c (main): Likewise.
31867         * tests/test-remove.c (main): Likewise.
31868         * tests/test-rename.c (main): Likewise.
31869         * tests/test-renameat.c (main): Likewise.
31870         * tests/test-rmdir.c (main): Likewise.
31871         * tests/test-sha1.c (main): Likewise.
31872         * tests/test-signal.c (main): Likewise.
31873         * tests/test-sigaction.c (main): Likewise.
31874         * tests/test-stat.c (main): Likewise.
31875         * tests/test-stat-time.c (main): Likewise.
31876         * tests/test-stddef.c (main): Likewise.
31877         * tests/test-stdint.c (main): Likewise.
31878         * tests/test-stdio.c (main): Likewise.
31879         * tests/test-stdlib.c (main): Likewise.
31880         * tests/test-strchrnul.c (main): Likewise.
31881         * tests/test-strerror.c (main): Likewise.
31882         * tests/test-string.c (main): Likewise.
31883         * tests/test-strtod.c (main): Likewise.
31884         * tests/test-strverscmp.c (main): Likewise.
31885         * tests/test-symlink.c (main): Likewise.
31886         * tests/test-symlinkat.c (main): Likewise.
31887         * tests/test-sys_stat.c (main): Likewise.
31888         * tests/test-sys_time.c (main): Likewise.
31889         * tests/test-time.c (main): Likewise.
31890         * tests/test-unistd.c (main): Likewise.
31891         * tests/test-unlink.c (main): Likewise.
31892         * tests/test-unlinkat.c (main): Likewise.
31893         * tests/test-utimens.c (main): Likewise.
31894         * tests/test-utimensat.c (main): Likewise.
31895         * tests/test-version-etc.c (main): Likewise.
31896         * tests/test-wchar.c (main): Likewise.
31897         * tests/test-wctype.c (main): Likewise.
31898         * tests/test-xprintf-posix.c (main): Likewise.
31899         * tests/test-posixtm.c (main): Likewise.
31900         (STREQ): Delete unused macro.
31901         * tests/test-linkat.c (main): Declare unused arguments.  Avoid
31902         shadowed variables.
31903         * tests/test-memchr.c (main): Likewise.
31904
31905 2009-10-21  Eric Blake  <ebb9@byu.net>
31906
31907         areadlinkat: avoid failure on older glibc
31908         * lib/at-func.c (AT_FUNC_NAME): Check for explicit FUNC_FAIL,
31909         rather than mis-comparing 0 against FUNC_RESULT of char*.
31910
31911 2009-10-21  Bruno Haible  <bruno@clisp.org>
31912
31913         * modules/stpncpy (License): Relicense under LGPLv2+.
31914         Reported by David Lutterkort <lutter@redhat.com>.
31915
31916 2009-10-20  Eric Blake  <ebb9@byu.net>
31917
31918         utimensat: work around Solaris 9 bug
31919         * lib/utimens.c (fdutimens, lutimens): Force a stat if platform
31920         has trailing slash bugs.
31921         * tests/test-lutimens.h (test_lutimens): Enhance test.
31922         * tests/test-utimens.h (test_utimens): Likewise.
31923         * doc/posix-functions/utime.texi (utime): Enhance documentation.
31924         * doc/posix-functions/utimes.texi (utimes): Likewise.
31925         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
31926         * doc/glibc-functions/futimesat.texi (futimesat): Likewise.
31927         * doc/glibc-functions/lutimes.texi (lutimes): Likewise.
31928         * doc/posix-functions/futimens.texi (futimens): Likewise.
31929
31930         fdutimensat: new module
31931         * modules/fdutimensat: New file.
31932         * lib/fdutimensat.c (fdutimensat): Likewise.
31933         * lib/utimens.h (fdutimensat, lutimensat): Declare new functions.
31934         * MODULES.html.sh (File system functions): Mention module.
31935         * modules/fdutimensat-tests: New test.
31936         * tests/test-fdutimensat.c: Likewise.
31937
31938         doc: regenerate INSTALL
31939         * doc/INSTALL: Reflect recent autoconf update.
31940         * doc/INSTALL.ISO: Likewise.
31941         * doc/INSTALL.UTF-8: Likewise.
31942
31943 2009-10-20  Pádraig Brady  <P@draigBrady.com>
31944
31945         acl: warn if ACL support is not detected
31946         * m4/acl.m4 (gl_FUNC_ACL): Output a warning if ACL support is not found.
31947
31948 2009-10-19  Giuseppe Scrivano  <gscrivano@gnu.org>
31949
31950         * lib/nproc.h: Add extern "C" block for C++.
31951
31952 2009-10-18  Reuben Thomas  <rrt@sc3d.org>
31953             Bruno Haible  <bruno@clisp.org>
31954
31955         * doc/posix-functions/isascii.texi: Document the 2 alternative APIs.
31956         * doc/posix-functions/isalnum.texi: Document the 4 alternative APIs.
31957         * doc/posix-functions/isalpha.texi: Likewise.
31958         * doc/posix-functions/isblank.texi: Likewise.
31959         * doc/posix-functions/iscntrl.texi: Likewise.
31960         * doc/posix-functions/isdigit.texi: Likewise.
31961         * doc/posix-functions/isgraph.texi: Likewise.
31962         * doc/posix-functions/islower.texi: Likewise.
31963         * doc/posix-functions/isprint.texi: Likewise.
31964         * doc/posix-functions/ispunct.texi: Likewise.
31965         * doc/posix-functions/isspace.texi: Likewise.
31966         * doc/posix-functions/isupper.texi: Likewise.
31967         * doc/posix-functions/isxdigit.texi: Likewise.
31968
31969 2009-10-18  Bruno Haible  <bruno@clisp.org>
31970
31971         Tests for module 'isblank'.
31972         * modules/isblank-tests: New file.
31973         * tests/test-isblank.c: New file.
31974
31975         New module 'isblank'.
31976         * lib/isblank.c: New file.
31977         * m4/isblank.m4: New file.
31978         * modules/isblank: New file.
31979         * doc/posix-functions/isblank.texi: Mention the new module.
31980
31981 2009-10-18  Bruno Haible  <bruno@clisp.org>
31982
31983         New module 'ctype'.
31984         * lib/ctype.in.h: New file.
31985         * m4/ctype.m4: New file.
31986         * modules/ctype: New file.
31987         * doc/posix-headers/ctype.texi: Mention the new module.
31988
31989 2009-10-18  Jim Meyering  <meyering@redhat.com>
31990
31991         m4: stylistic-only: hoist AC_SUBST to be adjacent to initialization
31992         Declare a variable like LIB_CLOCK_GETTIME to be AC_SUBSTituted
31993         right after its initialization, rather than farther down.
31994         Keeping these in close proximity makes it easier to ensure
31995         that each such variable is initialized.  E.g.,
31996
31997             LIB_CLOCK_GETTIME=
31998             AC_SUBST([LIB_CLOCK_GETTIME])
31999
32000         This change also increments these serial numbers.
32001         * m4/clock_time.m4 (gl_CLOCK_TIME): Hoist AC_SUBST use.
32002         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
32003         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
32004
32005 2009-10-18  Bruno Haible  <bruno@clisp.org>
32006
32007         Don't let environment variables perturb build.
32008         * m4/gethrxtime.m4 (gl_GETHRXTIME): Initialize LIB_GETHRXTIME here...
32009         (gl_PREREQ_GETHRXTIME): ... not here.
32010
32011 2009-10-18  Bruno Haible  <bruno@clisp.org>
32012
32013         Avoid symlink attack in localcharset module.
32014         * lib/localcharset.c: Include <fcntl.h>, <unistd.h>.
32015         (O_NOFOLLOW): Define fallback.
32016         (get_charset_aliases): Don't open the file if it is a symbolic link.
32017         * m4/fcntl_h.m4 (gl_FCNTL_O_FLAGS): New macro, extracted from
32018         gl_FCNTL_H.
32019         (gl_FCNTL_H): Require it.
32020         * m4/localcharset.m4 (gl_LOCALCHARSET): Likewise.
32021         * modules/localcharset (Files): Add m4/fcntl_h.m4.
32022         Reported by Fergal Glynn <fglynn@veracode.com>.
32023
32024 2009-10-18  Bruno Haible  <bruno@clisp.org>
32025
32026         Implement nproc for mingw.
32027         * lib/nproc.c: Include <windows.h>
32028         (num_processors): On native Windows platforms, try GetSystemInfo.
32029
32030 2009-10-18  Bruno Haible  <bruno@clisp.org>
32031
32032         Implement nproc for IRIX.
32033         * lib/nproc.c: Include <sys/sysmp.h>.
32034         (num_processors): On IRIX systems, try sysmp.
32035         * m4/nproc.m4 (gl_PREREQ_NPROC): Check for sys/sysmp.h and sysmp.
32036
32037 2009-10-18  Bruno Haible  <bruno@clisp.org>
32038
32039         Implement nproc for HP-UX.
32040         * lib/nproc.c: Include <sys/pstat.h>
32041         (num_processors): On HP-UX systems, try pstat_getdynamic.
32042         * m4/nproc.m4 (gl_PREREQ_NPROC): Check for sys/pstat.h and
32043         pstat_getdynamic.
32044
32045 2009-10-18  Giuseppe Scrivano  <gscrivano@gnu.org>
32046             Bruno Haible  <bruno@clisp.org>
32047
32048         Implement nproc for NetBSD, OpenBSD.
32049         * lib/nproc.c: Include <sys/types.h>, <sys/param.h>, <sys/sysctl.h>.
32050         (ARRAY_SIZE): New macro.
32051         (num_processors): On BSD systems, try sysctl of HW_NCPU.
32052         * m4/nproc.m4: New file.
32053         * modules/nproc (Files): Add m4/nproc.m4.
32054         (configure.ac): Invoke gl_NPROC. Remove AC_LIBOBJ invocation.
32055         (Makefile.am): Instead, augment lib_SOURCES.
32056
32057 2009-10-18  Bruno Haible  <bruno@clisp.org>
32058
32059         Fix recognition of sys/sysctl.h on OpenBSD 4.0.
32060         * m4/physmem.m4 (gl_PHYSMEM): Before including sys/sysctl.h, include
32061         sys/param.h.
32062
32063 2009-10-16  Eric Blake  <ebb9@byu.net>
32064
32065         utimensat: new module
32066         * modules/utimensat: New file.
32067         * lib/utimensat.c (utimensat): Likewise.
32068         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
32069         * lib/utimens.c (utimensat): Avoid recursion into rpl_utimensat,
32070         so we can work around Linux bugs.
32071         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
32072         * modules/sys_stat (Makefile.am): Substitute them.
32073         * lib/sys_stat.in.h (utimensat): Declare it.
32074         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
32075         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
32076         * modules/utimensat-tests: New test.
32077         * tests/test-utimensat.c: Likewise.
32078
32079         utimens: let lutimens work on non-symlinks
32080         * lib/utimens.c (lutimens): Fall back to utimens rather than
32081         failing with ENOSYS, when file is not a symlink.
32082         (utimens): Reduce redirection.
32083         * tests/test-lutimens.h (test_lutimens): Update test to cover
32084         non-symlinks.
32085         * tests/test-utimens.h (test_utimens): Update test to cover
32086         symlinks.
32087         * tests/test-utimens.c (main): Update caller.
32088
32089         utimens: cache whether utimensat syscall works
32090         * lib/utimens.c (utimensat_works_really): New cache variable.
32091         (fdutimens, lutimens): Use it to avoid failing syscall.
32092
32093         test-stat-time, test-utimens: improve portability
32094         * tests/test-stat-time.c (nap): Lengthen delay to 20ms, for
32095         ext4 on alpha, and for cygwin.
32096         * tests/test-utimens-common.h: New file.
32097         (nap): Factor delays into single function.
32098         * tests/test-lutimens.h (test_lutimens): Use new header.
32099         * tests/test-futimens.h (test_futimens): Likewise.
32100         * tests/test-utimens.h (test_utimens): Likewise.  Also, force NFS
32101         timestamps to occur from same machine, as was done previously for
32102         test_utimens.
32103         * modules/utimens-tests (Files): Ship new file.
32104         * modules/futimens-tests (Files): Likewise.
32105         Reported in part by Jim Meyering.
32106
32107         sys_stat: sort replacement declarations
32108         * lib/sys_stat.in.h: Sort declarations.
32109         * lib/futimens.c (futimens): Fix typo.
32110
32111 2009-10-15  Jim Meyering  <meyering@redhat.com>
32112
32113         don't let environment settings perturb build
32114         Setting the envvars, LIB_CLOCK_GETTIME, LIB_EACCESS or LIB_NANOSLEEP
32115         could cause a configure-time and/or build-time malfunction.
32116         Typically, a configure-time function-in-library test is performed
32117         via code like this:
32118
32119           LIB_VAR=
32120           AC_SUBST([LIB_VAR])
32121           prefix_saved_LIBS=$LIBS
32122             AC_SEARCH_LIBS([FUNC], [LIB_NAME],
32123                        [test "$ac_cv_search_FUNC" = "none required" ||
32124                         LIB_VAR=$ac_cv_search_FUNC])
32125           LIBS=$prefix_saved_LIBS
32126
32127         However, in each of the files affected by this change, the LIB_VAR=
32128         initialization was omitted.  Thus, when set in the environment, its
32129         value would propagate into generated Makefiles when FUNC is not found
32130         in LIB_NAME.
32131         * m4/clock_time.m4 (gl_CLOCK_TIME): Initialize AC_SUBST'd var.
32132         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
32133         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
32134
32135 2009-10-14  Eric Blake  <ebb9@byu.net>
32136
32137         fchdir: avoid infinite recursion in mingw
32138         * lib/fchdir.c (rpl_fstat): Call system fstat, rather than
32139         recursing.
32140
32141         test-stat-time: port to mingw
32142         * tests/test-stat-time.c (force_unlink): Return a value.
32143         (test_ctime) [W32]: Fix compilation error.
32144         (nap): Don't call usleep with too large an argument.  Use
32145         force_unlink.
32146         * doc/pastposix-functions/usleep.texi (usleep): Document the
32147         portability issue.
32148
32149 2009-10-13  Jim Meyering  <meyering@redhat.com>
32150
32151         use AC_CHECK_FUNCS_ONCE, not AC_CHECK_FUNCS in modules/*
32152         * modules/pipe-filter-gi: Use AC_CHECK_FUNCS_ONCE, not AC_CHECK_FUNCS.
32153         * modules/pipe-filter-ii: Likewise.
32154         * modules/sys_socket-tests: Likewise.
32155         * modules/tsearch-tests: Likewise.
32156         * Makefile (sc_prefer_ac_check_funcs_once): New rule.
32157         (check): Depend on it.
32158
32159 2009-10-12  Eric Blake  <ebb9@byu.net>
32160
32161         utimens-tests: port to NFS file systems
32162         * tests/test-utimens.h (test_utimens): Refactor utimecmp
32163         comparisons to avoid spurious failures from timestamp drift
32164         between NFS machines.
32165
32166 2009-10-12  Eric Blake  <ebb9@byu.net>
32167
32168         stat-time-tests: minor cleanups
32169         * modules/stat-time-tests (configure.ac): Use AC_CHECK_FUNCS_ONCE.
32170         * tests/test-stat-time.c (nap): Separate assignment from call.
32171         Suggested by Paolo Bonzini and Bruno Haible.
32172
32173         sys_stat: guarantee struct timespec
32174         * lib/sys_stat.in.h (includes): Always include <time.h>
32175         * modules/sys_stat (Depends-on): Add time.
32176         * tests/test-sys_stat.c: Guarantee struct timespec, as well as
32177         mode_t permission values.
32178         * doc/posix-headers/sys_stat.texi (sys/stat.h): Document how to
32179         get at subsecond timestamps.
32180
32181 2009-10-10  Eric Blake  <ebb9@byu.net>
32182
32183         futimens: new module
32184         * modules/futimens: New file.
32185         * lib/futimens.c (futimens): Likewise.
32186         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Likewise.
32187         * lib/utimens.c (futimens): Avoid recursion into rpl_futimens, so
32188         we can work around Linux bugs.
32189         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
32190         * modules/sys_stat (Makefile.am): Substitute them.
32191         * lib/sys_stat.in.h (futimens): Declare it.
32192         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
32193         * doc/posix-functions/futimens.texi (futimens): Likewise.
32194         * modules/futimens-tests: New test.
32195         * tests/test-futimens.c: Likewise.
32196
32197         utimens: introduce fdutimens
32198         * lib/utimens.h (fdutimens): New prototype.
32199         * lib/utimens.c (gl_futimens): Move guts...
32200         (fdutimens): ...to new interface.
32201         * tests/test-utimens.c (do_fdutimens): Use it.
32202
32203         utimens: add UTIME_NOW and UTIME_OMIT support
32204         * lib/utimens.c (validate_timespec, update_timespec): New helper
32205         functions.
32206         (gl_futimens, lutimens): Use them.
32207         * modules/utimens (Depends-on): Add gettime, lstat, stat-time,
32208         stdbool, sys_stat.
32209         (Link): Mention resulting library dependency.
32210         * modules/utimecmp (Link): Likewise.
32211         * modules/utimens-tests (Depends-on): Drop stat-time, stdbool.
32212         (Makefile.am): Pick up library dependency.
32213         * lib/sys_stat.in.h (UTIME_NOW, UTIME_OMIT): Guarantee a
32214         definition.
32215         * tests/test-sys_stat.c: Test the definitions.
32216         * doc/posix-headers/sys_stat.texi (sys/stat.h): Document this.
32217         * NEWS: Document library dependency.
32218
32219         utimecmp: support symlink timestamps
32220         * lib/utimecmp.c (utimecmp): Use new interface.  Skip effort of
32221         hashing when possible.  Use pathconf when available.
32222         (SYSCALL_RESOLUTION): Recognize tighter resolution.
32223         * modules/utimecmp (Depends-on): Add lstat.
32224
32225         utimens: add lutimens interface
32226         * lib/utimens.c (lutimens): New function.
32227         * m4/utimens.m4 (gl_UTIMENS): Check for lutimes.
32228         * lib/utimens.h (lutimens): Declare new interface.
32229         * tests/test-utimens.c (main): Enhance test.
32230         * tests/test-lutimens.h (test_lutimens): New file.
32231         * modules/utimens-tests (Files): Distribute it.
32232         (Depends-on): Add symlink.
32233         (configure.ac): Check for usleep.
32234
32235         utimens: validate futimens usage
32236         * lib/utimens.c (gl_futimens): Require valid fd up front, using
32237         fewer syscalls on failure later on.  Avoid compiler warning on
32238         mingw.
32239         * modules/utimens (Depends-on): Add dup2.
32240
32241         utimens: add test
32242         * modules/utimens-tests: New test.
32243         * tests/test-utimens.h: New file.
32244         * tests/test-futimens.h: Likewise.
32245         * tests/test-utimens.c: Likewise.
32246
32247         doc: mention timestamp portability issues
32248         * doc/glibc-functions/lutimes.texi (lutimes): Refer to utimensat
32249         instead.
32250         * doc/posix-functions/utime.texi (utime): Likewise.
32251         * doc/posix-functions/utimes.texi (utimes): Likewise.
32252         * doc/glibc-functions/futimes.texi (futimes): Refer to futimens
32253         instead.
32254         * doc/posix-functions/futimens.texi (futimens): Mention utimens
32255         module.
32256         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
32257         Mention weakness with symlink timestamps.
32258         * doc/glibc-functions/futimesat.texi (futimesat): New file; refer
32259         to utimensat/futimens instead.
32260         * doc/gnulib.texi (Glibc sys/time.h): Include new file.
32261
32262         test-dup2: enhance test
32263         * tests/test-dup2.c (main): Also check AT_FDCWD.
32264
32265         test-stat-time: avoid more spurious failures
32266         * tests/test-stat-time.c (nap): Wait for 15ms rather than 2ms, for
32267         xfs; and avoid race if the two timestamps cross quantization edge.
32268
32269         relocatable: prefer 'file system' over 'filesystem'
32270         * m4/relocatable-lib.m4 (gl_RELOCATABLE_NOP): Use AS_HELP_STRING.
32271         (gl_RELOCATABLE_LIBRARY_BODY): Fix spelling.
32272         * doc/relocatable-maint.texi (Supporting Relocation): Likewise.
32273         * doc/relocatable.texi (Enabling Relocatability): Likewise.
32274         * lib/relocatable.c (compute_curr_prefix): Likewise.
32275
32276 2009-10-10  Jim Meyering  <meyering@redhat.com>
32277
32278         stat-time-tests: check for the usleep function
32279         * modules/stat-time-tests (configure.ac): Now that we test HAVE_USLEEP.
32280
32281 2009-10-10  Bruno Haible  <bruno@clisp.org>
32282
32283         * modules/xnanosleep: Put the Link section after the Include section.
32284
32285 2009-10-09  Eric Blake  <ebb9@byu.net>
32286
32287         dup2: work around FreeBSD 6.1 bug
32288         * m4/dup2.m4 (gl_FUNC_DUP2): Detect bug.
32289         * doc/posix-functions/dup2.texi (dup2): Document it.
32290         Reported by Nelson H. F. Beebe and Jim Meyering.
32291
32292         test-stat-time: port to buggy NFS clients
32293         * tests/test-stat-time.c (main) [W32]: Reduce ifdefs.
32294         (test_ctime): Also skip test if mtime and ctime are skewed.
32295
32296         maint: prefer 'file system' over 'filesystem'
32297         * doc/posix-functions/fstatat.texi (fstatat): Likewise.
32298         * doc/posix-functions/lstat.texi (lstat): Likewise.
32299         * lib/file-has-acl.c (file_has_acl): Likewise.
32300         * lib/fwriteerror.c [TEST]: Likewise.
32301         * tests/test-areadlink.h (test_areadlink): Likewise.
32302         * tests/test-areadlinkat-with-size.c (main): Likewise.
32303         * tests/test-areadlinkat.c (main): Likewise.
32304         * tests/test-canonicalize-lgpl.c (main): Likewise.
32305         * tests/test-canonicalize.c (main): Likewise.
32306         * tests/test-fstatat.c (main): Likewise.
32307         * tests/test-linkat.c (main): Likewise.
32308         * tests/test-lstat.h (test_lstat_func): Likewise.
32309         * tests/test-mkdir.h (test_mkdir): Likewise.
32310         * tests/test-readlink.h (test_readlink): Likewise.
32311         * tests/test-remove.c (main): Likewise.
32312         * tests/test-rename.h (test_rename): Likewise.
32313         * tests/test-renameat.c (main): Likewise.
32314         * tests/test-rmdir.h (test_rmdir_func): Likewise.
32315         * tests/test-symlink.h (test_symlink): Likewise.
32316         * tests/test-symlinkat.c (main): Likewise.
32317         * tests/test-unlink.h (test_unlink_func): Likewise.
32318         * tests/test-unlinkat.c (main): Likewise.
32319
32320         maint: make realtime library usage explicit
32321         * modules/gethrxtime (Link): Mention LIB_GETHRXTIME.
32322         * modules/gettime (Link): Mention LIB_CLOCK_GETTIME.
32323         * modules/settime (Link): Likewise.
32324         * modules/xnanosleep (Link): Mention LIB_NANOSLEEP.
32325
32326         test-stat-time: speed up execution
32327         * tests/test-stat-time.c (test_ctime) [!W32]: Avoid compiler
32328         warning on mingw.
32329         (nap): New helper function.
32330         (prepare_test): Use it to reduce sleep time.
32331         (test_mtime, test_ctime, test_birthtime): Allow for subsecond
32332         execution.
32333         * modules/stat-time-tests (configure.ac): Check for usleep.
32334
32335 2009-10-09  Jim Meyering  <meyering@redhat.com>
32336
32337         selinux-h: always use getfilecon wrappers
32338         * lib/getfilecon.c: New file.
32339         * lib/se-selinux.in.h: Use a better inclusion guard symbol name.
32340         [HAVE_SELINUX_SELINUX_H]: Include-next <selinux/selinux.h>.
32341         [!HAVE_SELINUX_SELINUX_H]: Use better parameter names.
32342         (fgetfilecon): Provide a stub.
32343         * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): Don't
32344         AC_SUBST SELINUX_SELINUX_H, since now we're generating that
32345         file unconditionally.
32346         When <selinux/selinux.h> is found, arrange to use wrappers.
32347         * modules/selinux-h (Files): Add getfilecon.c.
32348         (Makefile.am): Substitute include-next-related bits
32349         into the now-always-generated selinux/selinux.h file.
32350         * doc/glibc-functions/lgetfilecon.texi: New file.
32351         * doc/glibc-functions/fgetfilecon.texi: New file.
32352         * doc/glibc-functions/getfilecon.texi: New file.
32353         * doc/glibc-functions/getfilecon-desc.texi: New file.
32354         * doc/gnulib.texi (Glibc selinux/selinux.h): New section, by
32355         which to pull in the new files.
32356         * MODULES.html.sh (Misc): Add selinux-h.
32357
32358 2009-10-08  Jim Meyering  <meyering@redhat.com>
32359
32360         unistd: fix comment typo
32361         * lib/unistd.in.h (euidaccess): Fix a comment typo.
32362
32363 2009-10-08  Eric Blake  <ebb9@byu.net>
32364
32365         areadlink: use SIZE_MAX consistently
32366         * modules/areadlink (Depends-on): Add stdint.
32367         * modules/areadlink-with-size (Depends-on): Likewise.
32368         * lib/areadlink-with-size.c (includes): Drop stdio, since stdlib
32369         gives NULL; drop sys/types, since unistd gives size_t; and add
32370         stdint for SIZE_MAX.
32371         (SIZE_MAX): Rely on headers.
32372         * lib/areadlinkat-with-size.c (includes): Drop stdio, sys/types,
32373         and add stdint.
32374         * lib/areadlink.c (includes): Drop sys/types, and add stdint.
32375         (SIZE_MAX): Likewise.
32376         (INITIAL_BUF_SIZE): Turn into enum.
32377         * lib/areadlinkat.c (INITIAL_BUF_SIZE): Likewise.
32378
32379 2009-10-08  Jim Meyering  <meyering@redhat.com>
32380
32381         areadlinkat: avoid compilation failure
32382         * lib/areadlinkat.c: Include <stdint.h> for use of SIZE_MAX.
32383         Fix typo in comment.
32384
32385 2009-10-07  Eric Blake  <ebb9@byu.net>
32386
32387         areadlinkat-with-size: new module
32388         * modules/areadlinkat-with-size: New module.
32389         * lib/areadlinkat-with-size.c (areadlinkat_with_size): New file.
32390         * lib/areadlink.h (areadlinkat): Declare it.
32391         * MODULES.html.sh (File system functions): Mention it.
32392         * modules/areadlinkat-with-size-tests: New test.
32393         * tests/test-areadlinkat-with-size.c: New file.
32394
32395         xreadlinkat: new module
32396         * modules/xreadlinkat: New module.
32397         * lib/xreadlinkat.c (xreadlinkat): New file.
32398         * lib/xreadlink.h (xreadlinkat): Declare it.
32399         * MODULES.html.sh (File system functions): Mention it.
32400
32401         areadlinkat: new module
32402         * lib/at-func.c (FUNC_FAIL): New define.
32403         (AT_FUNC_NAME, VALIDATE_FLAG): Use it rather than raw -1.
32404         * modules/areadlinkat: New module.
32405         * lib/linkat.c (areadlinkat): Move...
32406         * lib/areadlinkat.c (areadlinkat): ...to new file.
32407         * lib/areadlink.h (areadlinkat): Declare it.
32408         * modules/linkat (Depends-on): Add areadlinkat.
32409         * MODULES.html.sh (File system functions): Mention it.
32410         * modules/areadlinkat-tests: New test.
32411         * tests/test-areadlinkat.c: New file.
32412
32413         areadlink, areadlink-with-size: add tests
32414         * modules/areadlink-tests: New test.
32415         * modules/areadlink-with-size-tests: Likewise.
32416         * tests/test-areadlink.h: New file.
32417         * tests/test-areadlink.c: Likewise.
32418         * tests/test-areadlink-with-size.c: Likewise.
32419
32420         maint: minor cleanups
32421         * lib/fts.c (ATTRIBUTE_UNUSED): Delete; use gnulib-guaranteed
32422         _UNUSED_PARAMETER_ instead.
32423         * lib/getdate.y (ATTRIBUTE_UNUSED): Likewise.
32424         * lib/utimens.c (ATTRIBUTE_UNUSED): Likewise.
32425         * modules/linkat-tests (Files): Distribute test-link.h.
32426
32427         openat, utimens: whitespace cleanup
32428         * lib/openat.c: Prefer space throughout, rather than mix of 8
32429         spaces vs. tabs.
32430         * lib/at-func.c: Likewise.
32431         * lib/utimens.c: Likewise.
32432
32433         openat: avoid using wrong fd
32434         * lib/openat.c (openat_permissive): Reject user's fd if saving the
32435         working directory chooses same fd.
32436         * lib/at-func.c (AT_FUNC_NAME): Likewise.
32437
32438         mkdir, mkdirat: fix cygwin 1.5.x bug
32439         * lib/mkdir.c (rpl_mkdir) [FUNC_MKDIR_DOT_BUG]: Work around bug.
32440         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Move...
32441         * m4/mkdir.m4 (gl_FUNC_MKDIR): ...here, and add check for cygwin
32442         bug.
32443         (gl_PREREQ_MKDIR): Delete unused macro.
32444         * modules/mkdir (Files): Track file rename.
32445         (configure.ac): Update macro name.
32446         * modules/openat (Depends-on): Add mkdir.
32447         * doc/posix-functions/mkdir.texi (mkdir): Document the bug.
32448
32449         mkdir, mkdirat: add tests
32450         * modules/mkdir-tests: New test.
32451         * tests/test-mkdir.h: New file.
32452         * tests/test-mkdir.c: Likewise.
32453         * tests/test-mkdirat.c: Likewise.
32454         * modules/openat-tests (Files): Add new files.
32455         (Makefile.am): Run new test.
32456
32457 2009-10-06  Eric Blake  <ebb9@byu.net>
32458
32459         doc: tweak *at function documentation
32460         * doc/posix-functions/faccessat.texi (faccessat): Mention
32461         known issue with replacement.
32462         * doc/posix-functions/fchdir.texi (fchdir): Likewise.
32463         * doc/posix-functions/linkat.texi (linkat): Likewise.
32464         * doc/posix-functions/mkfifoat.texi (mkfifoat): Likewise.
32465         * doc/posix-functions/mknodat.texi (mknodat): Likewise.
32466         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
32467         * doc/posix-functions/renameat.texi (renameat): Likewise.
32468         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
32469
32470         openat: fix GNU/Hurd bug in unlinkat
32471         * m4/openat.m4 (gl_FUNC_OPENAT): Replace unlinkat if unlink is
32472         broken.
32473         * doc/posix-functions/unlink.texi (unlink): Document this.
32474         * doc/posix-functions/unlinkat.texi (unlinkat): Likewise.
32475
32476         fdopendir: fix GNU/Hurd bug
32477         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Check for Hurd bug in
32478         allowing non-directory fds.
32479         * lib/fdopendir.c (rpl_fdopendir): Work around it.
32480         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): New witness.
32481         * modules/dirent (Makefile.am): Substitute it.
32482         * lib/dirent.in.h (fdopendir): Declare replacement.
32483         * doc/posix-functions/fdopendir.texi (fdopendir): Document this.
32484         * tests/test-fdopendir.c (main): Test something other than
32485         /dev/null, since on Hurd that behaves like a directory.
32486
32487         test-symlink: port to GNU/Hurd
32488         * tests/test-symlink.h (test_symlink): Relax expected errno.
32489
32490         doc: tweak more cygwin information
32491         * doc/glibc-headers/getopt.texi (getopt.h): Cygwin 1.7 getopt is
32492         now compatible with glibc.
32493         * doc/posix-functions/getopt.texi (getopt): Likewise.
32494
32495         getopt-gnu: add another test
32496         * tests/test-getopt_long.h (test_getopt_long_posix): New test, to
32497         guarantee behavior relied on by m4.
32498         * tests/test-getopt.c (main): Use it.
32499         * modules/getopt-posix-tests (Depends-on): Add setenv.
32500         See http://lists.gnu.org/archive/html/bug-m4/2006-09/msg00028.html.
32501
32502         getopt: fix compilation on darwin
32503         * lib/getopt.in.h (includes): Leave breadcrumbs during system
32504         include.
32505         * lib/unistd.in.h (getopt): Use them to avoid recursive include.
32506         Reported by Ludovic Courtès.
32507
32508 2009-10-06  Bruno Haible  <bruno@clisp.org>
32509
32510         * modules/size_max (Description): Discourage its use.
32511         Reported by Simon Josefsson.
32512
32513 2009-10-06  Jim Meyering  <meyering@redhat.com>
32514
32515         linkat: avoid compilation failure
32516         * lib/linkat.c: Include <stdint.h> for use of SIZE_MAX.
32517
32518 2009-10-05  Eric Blake  <ebb9@byu.net>
32519
32520         linkat: support Linux 2.6.17
32521         * m4/linkat.m4 (gl_FUNC_LINKAT): Default to always replacing
32522         linkat on Linux, but allow cache variable override.
32523         * lib/linkat.c (rpl_linkat): Define override.
32524         * modules/linkat (Depends-on): Add symlinkat.
32525         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add new default.
32526         * modules/unistd (Makefile.am): Substitute it.
32527         * lib/unistd.in.h (linkat): Declare replacement.
32528         Reported by Pádraig Brady.
32529
32530         quotearg: port test to systems with C.UTF-8 locale
32531         * tests/test-quotearg.c (struct result_strings): Add another
32532         member, differentiating between C.ASCII and C.UTF-8 handling.
32533         (compare_strings): Add parameter.
32534         (main): Adjust all callers.
32535
32536         getopt: avoid clash with FreeBSD _getopt_internal
32537         * lib/getopt.in.h (_getopt_internal): Override the name.
32538         * lib/getopt_int.h (includes): Pick up any overrides.
32539         Reported by Reuben Thomas.
32540
32541         hash: allow C89 compilation
32542         * lib/hash.c (check_tuning): Move declaration before statement.
32543         Reported by Reuben Thomas.
32544
32545 2009-10-05  Karl Berry  <karl@gnu.org>
32546
32547         * doc/gnulib.texi: @include execvpe.texi, missing for several days.
32548
32549 2009-10-04  Paolo Bonzini  <bonzini@gnu.org>
32550             Bruno Haible  <bruno@clisp.org>
32551
32552         * lib/uname.c (uname): Use a table-driven algorithm to compute
32553         Windows NT versions.
32554
32555 2009-10-04  Bruno Haible  <bruno@clisp.org>
32556
32557         * lib/progname.c (set_program_name): Also remove the "lt-" prefix from
32558         program_invocation_short_name.
32559         * modules/progname (configure.ac): Test for presence of
32560         program_invocation_short_name.
32561         Reported by Sergey Poznyakoff <gray@gnu.org.ua>.
32562
32563 2009-10-04  Bruno Haible  <bruno@clisp.org>
32564
32565         * lib/progname.c (set_program_name): Fix comment.
32566         Reported by Jim Meyering.
32567
32568 2009-10-03  Paolo Bonzini  <bonzini@gnu.org>
32569             Bruno Haible  <bruno@clisp.org>
32570
32571         * lib/uname.c: Include <string.h>.
32572         (uname): Do only one call to GetVersionEx in the common case.
32573
32574 2009-10-03  Paolo Bonzini  <bonzini@gnu.org>
32575             Bruno Haible  <bruno@clisp.org>
32576
32577         * lib/uname.c (VER_PLATFORM_WIN32_CE, PROCESSOR_ARCHITECTURE_AMD64,
32578         PROCESSOR_ARCHITECTURE_IA32_ON_WIN64): Define fallbacks.
32579         (uname): Add support for Windows CE and various non-x86 CPU types.
32580
32581 2009-10-03  Bruno Haible  <bruno@clisp.org>
32582
32583         * gnulib-tool (func_create_testdir): Conditionally emit AM_PROG_CC_C_O
32584         invocation to tests/configure.ac.
32585         Reported by Ian Beckwith <ianb@erislabs.net>.
32586
32587 2009-10-02  Eric Blake  <ebb9@byu.net>
32588
32589         fchdir: avoid compiler warning
32590         * lib/fchdir.c (canonicalize_file_name)
32591         [!HAVE_CANONICALIZE_FILE_NAME]: Avoid compiler warning on mingw.
32592
32593         test-open: support mingw errno values
32594         * tests/test-open.h (test_open): Relax test.
32595         * tests/test-fopen.h (test_fopen): Likewise.
32596         * tests/test-openat-safer.c (main): Likewise.
32597
32598         open: fix opening directory on mingw
32599         * lib/open.c (open) [REPLACE_OPEN_DIRECTORY]: Correct typo.
32600
32601         test-open: on GNU/Hurd, /dev/null is a directory
32602         * tests/test-fopen.h (main): Rename...
32603         (test_fopen): ...to this.  Use a guaranteed non-directory when
32604         confirming open behavior on trailing slash.
32605         * tests/test-openat-safer.c (main): Likewise.
32606         * tests/test-open.h (main): Likewise....
32607         (test_open): ...to this.
32608         * tests/test-fopen.c (main): Adjust caller.
32609         * tests/test-fopen-safer.c (main): Likewise.
32610         * tests/test-open.c (main): Likewise.
32611         * tests/test-fcntl-safer.c (main): Likewise.
32612         Reported by Samuel Thibault.
32613
32614         rename, fchdir: don't ignore chdir failure
32615         * lib/fchdir.c (get_name): Abort on unexpected chdir failure.
32616         * lib/rename.c (rpl_rename) [W32]: Likewise.
32617         (rpl_rename) [RENAME_DEST_EXISTS_BUG]: Avoid one case of losing
32618         an empty destination directory if source cannot be renamed,
32619         although there is still possibility for failure.
32620         * doc/posix-functions/rename.texi (rename): Document the race.
32621         Reported by Jim Meyering.
32622
32623         maint: cleanup whitespace in recent commits
32624         * lib/rename.c (rpl_rename): Remove tabs.
32625         * tests/test-link.h (test_link): Likewise.
32626         * lib/fchdir.c (get_name): Likewise.
32627         Reported by Jim Meyering.
32628
32629 2009-10-02  Ben Pfaff  <blp@gnu.org>
32630
32631         relocatable-prog-wrapper: Add missing dependency on
32632         double-slash-root.
32633         * modules/relocatable-prog-wrapper: Add dependency.
32634         Reported by Ian Beckwith <ianb@erislabs.net>.
32635
32636 2009-10-02  Eric Blake  <ebb9@byu.net>
32637
32638         renameat: fix Solaris bugs
32639         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Replace renameat if rename
32640         needed fixing.
32641         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): New witness.
32642         * modules/stdio (Makefile.am): Substitute it.
32643         * lib/stdio.in.h (renameat): Declare replacement.
32644         * lib/renameat.c (rpl_renameat): Implement fix.
32645
32646         renameat: new module
32647         * modules/renameat: New file.
32648         * lib/renameat.c (renameat): Likewise.
32649         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Likewise.
32650         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add witnesses.
32651         * modules/stdio (Makefile.am): Substitute them.
32652         * lib/stdio.in.h (renameat): Declare it.
32653         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
32654         * doc/posix-functions/renameat.texi (renameat): Likewise.
32655         * modules/renameat-tests: New test.
32656         * tests/test-renameat.c: Likewise.
32657
32658         rename: fix mingw bugs
32659         * lib/rename.c (rpl_rename) [W32]: Fix trailing slash and
32660         directory overwrite bugs.
32661
32662         rename: fix another cygwin 1.5 bug
32663         * m4/rename.m4 (gl_FUNC_RENAME): Split cygwin bugs into two
32664         checks.
32665         * lib/rename.c (rpl_rename): Don't penalize NetBSD with
32666         unnecessary cygwin workarounds.  Also work around bug with moving
32667         full directory onto an empty one.
32668         * modules/rename (Depends-on): Add canonicalize-lgpl, rmdir.
32669
32670         rename-dest-slash: merge into rename module
32671         * modules/rename-dest-slash (Status): Mark obsolete.
32672         (Depends-on): Add rename.
32673         (Files): Let rename do it all.
32674         * m4/rename.m4 (gl_FUNC_RENAME): Also test for NetBSD bugs,
32675         subsuming the test from gl_FUNC_RENAME_TRAILING_DEST_SLASH...
32676         * m4/rename-dest-slash.m4: ...so this file can be deleted.
32677         * lib/rename-dest-slash.c (rpl_rename_dest_slash): Delete.
32678         * lib/rename.c (rpl_rename): Update comments.
32679
32680         rename: fix cygwin 1.5.x bugs
32681         * m4/rename.m4 (gl_FUNC_RENAME): Detect cygwin bugs.
32682         * lib/rename.c (rpl_rename): Work around them.
32683         * modules/rename (Depends-on): Add same-inode.
32684
32685         rename: fix Solaris 10 bug
32686         * m4/rename.m4 (gl_FUNC_RENAME): Detect Solaris bug.
32687         * lib/rename.c (rpl_rename): Don't cripple POSIX behavior if this
32688         was the only bug.
32689
32690         rename: fix Solaris 9 bug
32691         * lib/rename.c (rpl_rename): Rewrite to recognize trailing slash
32692         on non-directory.  Avoid calling exit.
32693         * modules/rename (Depends-on): Drop xalloc; add lstat, stdbool,
32694         strdup.
32695         * modules/rename-tests (Depends-on): Drop lstat.
32696         * m4/rename.m4 (gl_FUNC_RENAME): Detect Solaris bug.
32697         (gl_PREREQ_RENAME): Delete unused macro.
32698
32699         rename-dest-slash: fix NetBSD bug
32700         * lib/rename-dest-slash.c (rpl_rename_dest_slash): Detect hard
32701         links.
32702         * modules/rename-dest-slash (Depends-on): Add same-inode.
32703
32704         rename-tests: new test, exposes several platform bugs
32705         * modules/rename-tests: New file.
32706         * tests/test-rename.h: Likewise.
32707         * tests/test-rename.c: Likewise.
32708         * doc/posix-functions/rename.texi (rename): Improve documentation,
32709         including bugs that will eventually be fixed in gnulib.
32710
32711 2009-10-02  Paolo Bonzini  <bonzini@gnu.org>
32712
32713         * lib/uname.c: Include <stdlib.h>
32714         (uname): Assume version info is available.
32715
32716 2009-10-02  Jim Meyering  <meyering@redhat.com>
32717
32718         gnu-web-doc-update: correct --help output
32719         * build-aux/gnu-web-doc-update: Make --help output relevant.
32720
32721         gnu-web-doc-update: add standard options
32722         * build-aux/gnu-web-doc-update: Add --help, --version, etc.
32723
32724         gnu-web-doc-update: New module.
32725         Use this script to automatically update the on-line web documentation
32726         for your GNU project at http://www.gnu.org/software/$pkg/manual/
32727         * modules/gnu-web-doc-update: New file, from coreutils.
32728         * build-aux/gnu-web-doc-update: New script.
32729
32730 2009-10-01  Paolo Bonzini  <bonzini@gnu.org>
32731
32732         link: LoadLibrary is not needed.
32733         * lib/link.c: Use GetModuleHandle.
32734
32735 2009-10-01  Eric Blake  <ebb9@byu.net>
32736
32737         getopt: bump serial number
32738         * m4/getopt.m4: Increment serial number, to account for 2009-09-24
32739         change.
32740
32741         tests: tighten link, rmdir, and remove tests
32742         * tests/test-link.h (includes): No need to use <config.h> here.
32743         Clean up if directory hard link was created, otherwise test for
32744         trailing '.'.
32745         * tests/test-linkat.c (main): Simplify.
32746         * tests/test-remove.c (main): Enhance test for trailing '.'.
32747         * tests/test-rmdir.h (test_rmdir_func): Likewise.
32748
32749 2009-10-01  Jim Meyering  <meyering@redhat.com>
32750
32751         maint.mk: requiring "make major" was annoying, for a "minor" release.
32752         What is intended is "stable", to contrast with alpha and beta,
32753         so require "make stable", not "make major".
32754         * build-aux/announce-gen (%valid_release_types): s/major/stable/.
32755         (get_tool_versions): Likewise.
32756         * top/maint.mk (ALL_RECURSIVE_TARGETS): s/major/stable/
32757
32758 2009-09-30  Ben Pfaff  <blp@gnu.org>
32759
32760         Fix broken build of replacement for Windows tmpfile().
32761         * lib/tmpfile.c (tmpfile): Fix call to gen_tempname() to provide
32762         flags argument added along with the 'mkostemp' module.
32763
32764 2009-09-28  Bruno Haible  <bruno@clisp.org>
32765
32766         Avoid identifier clash with POSIX function 'remove' defined as a macro.
32767         * lib/gl_list.h (struct gl_list_implementation): Rename field 'remove'
32768         to 'remove_elt'.
32769         (gl_list_remove): Update.
32770         * lib/gl_list.c (gl_list_remove): Update.
32771         * lib/gl_oset.h (struct gl_oset_implementation): Rename field 'remove'
32772         to 'remove_elt'.
32773         (gl_oset_remove): Update.
32774         * lib/gl_list.c (gl_oset_remove): Update.
32775         Reported by Eric Blake.
32776
32777 2009-09-28  Eric Blake  <ebb9@byu.net>
32778
32779         doc: mention yet more cygwin 1.7 status
32780         * doc/posix-functions/fexecve.texi (fexecve): Now implemented in
32781         cygwin.
32782         * doc/glibc-functions/execvpe.texi (execvpe): New file.
32783         * doc/gnulib.texi (Glibc unistd.h): Mention it.
32784
32785         argp: fix test failure
32786         * lib/argp-help.c (hol_entry_cmp): Don't use _tolower on values
32787         that are not upper-case.  Pass correct range to tolower.
32788
32789 2009-09-27  Jim Meyering  <meyering@redhat.com>
32790
32791         test-yesno: work around sparc-dash here-document infelicity
32792         Without this change, the literal \177 byte in a here document
32793         would make dash 0.5.5.1-3 access uninitialized memory.
32794         * tests/test-yesno.sh: Don't put the \177 byte in the here document.
32795         Instead, use a marker, "@", and filter through tr to create the desired
32796         contents.  Reported as <http://bugs.debian.org/548493> by Kurt Roeckx.
32797
32798 2009-09-27  Bruno Haible  <bruno@clisp.org>
32799
32800         Disable untested support for new flavours of ACLs on AIX.
32801         * lib/file-has-acl.c (file_has_acl): Mark newer AIX code as work in
32802         progress.
32803         * lib/set-mode-acl.c (qset_acl): Likewise.
32804
32805 2008-12-07  Bruno Haible  <bruno@clisp.org>
32806
32807         Add support for new flavours of ACLs on AIX. (Untested.)
32808         * lib/file-has-acl.c [AIX] (acl_nfs4_nontrivial): New function.
32809         (file_has_acl): Add support for newer AIX.
32810         * lib/set-mode-acl.c (qset_acl): Likewise.
32811         * tests/test-sameacls.c (main): Fix use of aclx_get function. Hint by
32812         Rainer Tammer <tammer@tammer.net>.
32813
32814 2009-09-26  Eric Blake  <ebb9@byu.net>
32815
32816         argp: fix compilation of getopt
32817         * lib/getopt.in.h (includes): Use different guard than glibc.
32818         Reported by Sergey Poznyakoff.
32819
32820         doc: mention more cygwin 1.7 status
32821         * doc/posix-functions/access.texi (access): Mention cygwin 1.5
32822         bug.
32823         * doc/posix-functions/execl.texi (execl): Likewise.
32824         * doc/posix-functions/execle.texi (execle): Likewise.
32825         * doc/posix-functions/execlp.texi (execlp): Likewise.
32826         * doc/posix-functions/execv.texi (execv): Likewise.
32827         * doc/posix-functions/execve.texi (execve): Likewise.
32828         * doc/posix-functions/execvp.texi (execvp): Likewise.
32829         * doc/glibc-functions/canonicalize_file_name.texi
32830         (canonicalize_file_name): Cygwin 1.7 now provides this.
32831         * doc/glibc-functions/euidaccess.texi (euidaccess): Likewise.
32832         * doc/posix-functions/fchmodat.texi (fchmodat): Mention limitation
32833         on AT_SYMLINK_NOFOLLOW.
32834
32835 2009-09-24  Eric Blake  <ebb9@byu.net>
32836
32837         test-linkat: make test more robust
32838         * tests/test-linkat.c (main): Avoid collision with EEXIST.
32839
32840         getopt: fix inclusion guards for cygwin
32841         * modules/getopt-posix (Depends-on): Add include-next.
32842         (Makefile.am): Substitute more items in replacement header.
32843         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Also check for native
32844         <getopt.h>.
32845         * lib/getopt.in.h (includes): Use split inclusion guard, and
32846         prefer <getopt.h> over include <unistd.h> when one is present.
32847         (option): Also override name of 'struct option'.
32848
32849         same-inode: revert prior change; it is not yet ready
32850         * NEWS: Undo mention of this change.
32851         * lib/same-inode.h (same-inode.h): Undo tri-state change.
32852         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Update caller.
32853         * lib/cycle-check.c (cycle_check): Likewise.
32854         * lib/same.c (same_name): Likewise.
32855         * lib/at-func2.c (at_func2): Likewise.
32856
32857 2009-09-23  Eric Blake  <ebb9@byu.net>
32858
32859         linkat: new module
32860         * modules/linkat: New file.
32861         * lib/at-func2.c (at_func2): Likewise.
32862         * lib/linkat.c (linkat): Likewise.
32863         * m4/linkat.m4 (gl_FUNC_LINKAT): Likewise.
32864         * lib/openat-priv.h (at_func2): Add declaration.
32865         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
32866         * modules/unistd (Makefile.am): Substitute them.
32867         * lib/unistd.in.h (linkat): Declare it.
32868         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
32869         * doc/posix-functions/linkat.texi (linkat): Likewise.
32870         * doc/posix-functions/link.texi (link): Tweak wording.
32871         * tests/test-link.c (main): Move guts...
32872         * tests/test-link.h (test_link): ...into new file.
32873         * modules/linkat-tests: New test.
32874         * tests/test-linkat.c: Likewise.
32875         * modules/link-tests (Files): Ship new file.
32876         (Depends-on): Add stdbool.
32877
32878         dirname: add library-safe mdir_name
32879         * lib/dirname.h (mdir_name): New prototype.
32880         * lib/dirname.c (dir_name): Move guts...
32881         (mdir_name): ...to new function that avoids xalloc_die.
32882
32883         fchdir: another mingw fix
32884         * modules/fchdir (Depends-on): Drop canonicalize-lgpl.
32885         * lib/fchdir.c (get_name): New helper method; skips canonicalize
32886         on mingw (where it has not yet been ported), and make it optional
32887         elsewhere.
32888         (_gl_register_fd): Use it.
32889
32890         same-inode: make SAME_INODE tri-state, to port to mingw
32891         * NEWS: Mention this change.
32892         * lib/same-inode.h (same-inode.h): Recognize mingw limitation of
32893         st_ino always being 0.
32894         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Update caller.
32895         * lib/cycle-check.c (cycle_check): Likewise.
32896         * lib/same.c (same_name): Likewise.
32897
32898         lstat: avoid mingw compilation error
32899         * m4/lstat.m4 (gl_FUNC_LSTAT): Avoid duplicate calls to
32900         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK, and deal with missing
32901         lstat ourselves.
32902         * lib/lstat.c [!HAVE_LSTAT]: Do nothing if <sys/stat.h> override
32903         was adequate.
32904         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Let lstat module handle
32905         the checks for lstat.
32906         (gl_SYS_STAT_H_DEFAULTS): Set default for HAVE_LSTAT.
32907
32908         link: fix test failure on Solaris 9
32909         * lib/link.c (rpl_link): Don't assume link will catch bogus
32910         trailing slash on source.
32911
32912         test-symlinkat: enhance test
32913         * tests/test-readlink.c (main): Move guts...
32914         * tests/test-readlink.h (test_readlink): ...into new file.
32915         * tests/test-symlink.c (main): Move guts...
32916         * tests/test-symlink.h (test_symlink): ...into new file.
32917         * tests/test-symlinkat.c (main): Use new files for further
32918         coverage.
32919         (do_symlink, do_readlink): New helper functions.
32920         * modules/symlink-tests (Files): Ship new file.
32921         (Depends-on): Add stdbool.
32922         * modules/readlink-tests (Files): Ship new file.
32923         (Depends-on): Add stdbool.
32924         * modules/symlinkat-tests (Files): Use new files.
32925
32926 2009-09-23  Eric Blake  <ebb9@byu.net>
32927
32928         readlink: document portability issue with symlink length
32929         * doc/posix-functions/lstat.texi (lstat): Mention that some file
32930         systems have bogus st_size on symlinks, and mention the
32931         areadlink-with-size module.
32932         * doc/posix-functions/fstatat.texi (fstatat): Likewise.
32933         * doc/posix-functions/readlink.texi (readlink): Mention the
32934         areadlink module, and ERANGE failure.
32935         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
32936         * tests/test-readlink.c (main): Relax test for AIX, HP-UX.
32937
32938         readlink: fix Solaris 9 bug with trailing slash
32939         * lib/readlink.c (rpl_readlink): Work around trailing slash bug.
32940         * m4/readlink.m4 (gl_FUNC_READLINK): Detect the bug.
32941         * doc/posix-functions/readlink.texi (readlink): Document this.
32942         * modules/readlink-tests: New test.
32943         * tests/test-readlink.c: Likewise.
32944
32945         readlink: fix cygwin 1.5.x bug with return type
32946         * m4/readlink.m4 (gl_FUNC_READLINK): Require correct signature.
32947         * lib/unistd.in.h (readlink): Use ssize_t.
32948         * lib/readlink.c (readlink): Likewise.
32949         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
32950         * modules/unistd (Makefile.am): Substitute it.
32951         * lib/unistd.in.h (readlink): Declare replacement.
32952         * doc/posix-functions/readlink.texi (readlink): Document this.
32953
32954         symlink: use throughout gnulib
32955         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Omit symlink check.
32956         * lib/symlinkat.c (symlinkat) [!HAVE_SYMLINK]: Document why
32957         symlink is not used.
32958         * modules/symlinkat (Depends-on): Add symlink.
32959         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
32960         * modules/canonicalize-tests (Depends-on): Likewise.
32961         * modules/lstat-tests (Depends-on): Likewise.
32962         * modules/openat-tests (Depends-on): Likewise.
32963         * modules/remove-tests (Depends-on): Likewise.
32964         * modules/rmdir-tests (Depends-on): Likewise.
32965         * modules/unlink-tests (Depends-on): Likewise.
32966         * tests/test-canonicalize-lgpl.c (symlink): Delete stub.
32967         * tests/test-canonicalize.c (symlink): Likewise.
32968         * tests/test-fstatat.c (symlink): Likewise.
32969         * tests/test-lstat.c (symlink): Likewise.
32970         * tests/test-remove.c (symlink): Likewise.
32971         * tests/test-rmdir.c (symlink): Likewise.
32972         * tests/test-unlink.c (symlink): Likewise.
32973         * tests/test-unlinkat.c (symlink): Likewise.
32974
32975         symlink: new module, for Solaris 9 bug
32976         * modules/symlink: New file.
32977         * m4/symlink.m4 (gl_FUNC_SYMLINK): Likewise.
32978         * lib/symlink.c: Likewise.
32979         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add defaults.
32980         * modules/unistd (Makefile.am): Substitute them.
32981         * lib/unistd.in.h (symlink): Declare replacement.
32982         * MODULES.html.sh (File system functions): Mention it.
32983         * doc/posix-functions/symlink.texi (symlink): Likewise.
32984         * modules/symlink-tests: New test.
32985         * tests/test-symlink.c: Likewise.
32986
32987 2009-09-23  Bruno Haible  <bruno@clisp.org>
32988
32989         * gnulib-tool (func_import): Add 'link-warning' to testsrelated_modules
32990         when needed.
32991         Test case: gnulib-tool --import --with-tests atexit inttypes.
32992         Reported by Pauli Miettinen <pauli.miettinen@cs.helsinki.fi>.
32993
32994 2009-09-23  Bruno Haible  <bruno@clisp.org>
32995
32996         * gnulib-tool (func_emit_tests_Makefile_am): Set uses_subdirs in a
32997         subcommand, not in a subshell.
32998
32999 2009-09-22  Eric Blake  <ebb9@byu.net>
33000
33001         unistd: sort replacement declarations
33002         * lib/unistd.in.h: Sort declarations.
33003
33004         open, openat: minor optimization
33005         * lib/open.c (open): If open succeeded, len is non-zero.
33006         * lib/openat.c (rpl_openat): Likewise.
33007
33008         link-follow: ensure correct result
33009         * m4/fcntl_h.m4 (gl_FCNTL_H): Clean up temporary file.
33010         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Likewise, and
33011         distinguish between possible failures.
33012
33013 2009-09-21  Eric Blake  <ebb9@byu.net>
33014
33015         fts: avoid compiler warning
33016         * lib/fts.c (dirent_inode_sort_may_be_useful)
33017         (leaf_optimization_applies) [!__linux__]: Mark unused parameters.
33018
33019 2009-09-19  Bruno Haible  <bruno@clisp.org>
33020
33021         * lib/progreloc.c (canonicalize_file_name): New declaration.
33022
33023 2009-09-19  Eric Blake  <ebb9@byu.net>
33024
33025         link: fix quoting
33026         * m4/link.m4 (gl_FUNC_LINK): Fix shell quoting.
33027
33028         openat: fix openat bugs on Solaris 9
33029         * lib/openat.c (rpl_openat): Work around Solaris 9 bug.
33030         * m4/openat.m4 (gl_FUNC_OPENAT): Also replace openat on Solaris.
33031         * modules/openat (Depends-on): Add open.
33032         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Provide new default.
33033         * modules/fcntl-h (Makefile.am): Substitute it.
33034         * lib/fcntl.in.h (openat): Declare replacement.
33035         * doc/posix-functions/openat.texi (openat): Document this.
33036
33037         openat: move fstatat and unlinkat into correct files
33038         * m4/openat.m4 (gl_FUNC_OPENAT): Adjust which files will be
33039         compiled.
33040         * lib/openat.c (fstatat, unlinkat): Move...
33041         * lib/fstatat.c (fstatat): ...into correct files.
33042         * lib/unlinkat.c (unlinkat): Likewise.
33043
33044         openat: fix unlinkat bugs on Solaris 9
33045         * lib/unlinkat.c (unlinkat): New file.
33046         * modules/openat (Depends-on): Add unlink.
33047         (Files): Distribute it.
33048         * m4/openat.m4 (gl_FUNC_OPENAT): Mark unlinkat for replacement if
33049         trailing slash behavior is broken.
33050         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
33051         * modules/unistd (Makefile.am): Substitute it.
33052         * lib/unistd.in.h (unlinkat): Declare replacement.
33053         * doc/posix-functions/unlinkat.texi (unlinkat): Document this.
33054
33055         openat: fix fstatat bugs on Solaris 9
33056         * lib/fstatat.c (rpl_fstatat): Copy recent fixes from lstat and
33057         stat.
33058         * doc/posix-functions/fstatat.texi (fstatat): Document this.
33059
33060         test-unlinkat: enhance test, to expose Solaris 9 bug
33061         * tests/test-unlink.c (main): Factor guts...
33062         * tests/test-unlink.h (test_rmdir_func): ...into new file.
33063         * tests/test-rmdir.h (test_rmdir_func): Add parameter.
33064         * tests/test-rmdir.c (main): Adjust caller.
33065         * tests/test-unlinkat.c (main): Likewise.  Add unlink tests.
33066         (unlinker): New helper function.
33067         (rmdirat): Enhance check.
33068         * modules/rmdir-tests (Depends-on): Add stdbool.
33069         * modules/unlink-tests (Depends-on): Likewise.
33070         (Files): Add test-unlink.h.
33071         * modules/openat-tests (Files): Likewise.
33072         (Depends-on): Add unlinkdir.
33073
33074         test-fstatat: new test, to expose Solaris 9 bugs
33075         * tests/test-stat.c (main): Factor guts...
33076         * tests/test-stat.h (test_stat_func): ...into new file.
33077         * tests/test-lstat.c (main): Factor guts...
33078         * tests/test-lstat.h (test_lstat_func): ...into new file.
33079         * tests/test-fstatat.c: New file.
33080         * modules/stat-tests (Files): Add test-stat.h.
33081         * modules/lstat-tests (Files): Add test-lstat.h.
33082         (Depends-on): Add stdbool.
33083         * modules/openat-tests (Depends-on): Add pathmax.
33084         (Files): Add test-lstat.h, test-stat.h, test-fstatat.c.
33085         (Makefile.am): Run new test.
33086
33087         remove: new module, for mingw and Solaris 9 bugs
33088         * modules/remove: New file.
33089         * lib/remove.c: Likewise.
33090         * m4/remove.m4 (gl_FUNC_REMOVE): Likewise.
33091         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add witnesses.
33092         * modules/stdio (Makefile.am): Use them.
33093         * lib/stdio.in.h (remove): Declare replacement.
33094         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
33095         * doc/posix-functions/remove.texi (remove): Likewise.
33096         * modules/remove-tests: New test.
33097         * tests/test-remove.c: Likewise.
33098
33099         unlink: new module, for Solaris 9 bug
33100         * modules/unlink: New file.
33101         * lib/unlink.c: Likewise.
33102         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
33103         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
33104         * modules/unistd (Makefile.am): Use them.
33105         * lib/unistd.in.h (stat): Declare replacement.
33106         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
33107         * doc/posix-functions/unlink.texi (unlink): Likewise.
33108         * modules/unlink-tests: New test.
33109         * tests/test-unlink.c: Likewise.
33110
33111         lstat: fix Solaris 9 bug
33112         * lib/lstat.c (lstat): Also check for trailing slash on
33113         non-symlink, non-directories.  Use stat module to simplify logic.
33114         * doc/posix-functions/lstat.texi (lstat): Document it.
33115         * modules/lstat-tests (Depends-on): Add errno, same-inode.
33116         (configure.ac): Check for symlink.
33117         * tests/test-lstat.c (main): Add more tests.
33118
33119         stat: add as dependency to other modules
33120         * modules/chown (Depends-on): Add stat.
33121         * modules/euidaccess (Depends-on): Likewise.
33122         * modules/fchdir (Depends-on): Likewise.
33123         * modules/isdir (Depends-on): Likewise.
33124         * modules/link (Depends-on): Likewise.
33125         * modules/lstat (Depends-on): Likewise.
33126         * modules/mkdir-p (Depends-on): Likewise.
33127         * modules/modechange (Depends-on): Likewise.
33128         * modules/open (Depends-on): Likewise.
33129         * modules/readlink (Depends-on): Likewise.
33130         * modules/same (Depends-on): Likewise.
33131
33132         stat: fix Solaris 9 bug
33133         * m4/stat.m4 (gl_FUNC_STAT): Detect Solaris 9 bug with trailing
33134         slash.
33135         * lib/stat.c (rpl_stat): Work around it.
33136         * doc/posix-functions/stat.texi (stat): Update documentation.
33137
33138         stat: new module, for mingw bug
33139         * modules/stat: New file.
33140         * lib/stat.c: Likewise.
33141         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
33142         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
33143         * modules/sys_stat (Makefile.am): Use them.
33144         * lib/sys_stat.in.h (stat): Declare replacement.
33145         * lib/openat.c (fstatat): Deal with lstat and stat being function
33146         macros.
33147         * modules/openat (Depends-on): Add inline.
33148         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
33149         * doc/posix-functions/stat.texi (stat): Likewise.
33150         * modules/stat-tests: New test.
33151         * tests/test-stat.c: Likewise.
33152
33153 2009-09-19  Jim Meyering  <meyering@redhat.com>
33154
33155         syntax-check: detect unnecessary inclusion of canonicalize.h
33156         * top/maint.mk (sc_prohibit_canonicalize_without_use): New rule.
33157
33158 2009-09-19  Eric Blake  <ebb9@byu.net>
33159
33160         canonicalize-lgpl: adjust clients to use correct header
33161         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE)
33162         (gl_CANONICALIZE_LGPL): Use correct shell quoting.
33163         * modules/relocatable-prog-wrapper (Files): Drop canonicalize.h.
33164         * lib/fchdir.c (includes): Use <stdlib.h>, not "canonicalize.h".
33165         * lib/progreloc.c (includes): Likewise.
33166
33167 2009-09-19  Jim Meyering  <meyering@redhat.com>
33168
33169         test-posixtm.c: correct a comment
33170         * tests/test-posixtm.c: Correct first-line comment.
33171         Spotted by Eric Blake.
33172
33173 2009-09-16  Jim Meyering  <meyering@redhat.com>
33174
33175         posixtm-tests: make T const-correct; add a test case
33176         * tests/test-posixtm.c (T): Declare const.
33177         Add a test for -(2^31+1).
33178         Remove useless can-succeed-only-in-2002 test.
33179
33180         posixtm-tests: adjust the sole failing test
33181         * tests/test-posixtm.c: Correct 0000-01-01 00:00:00 test so that
33182         expected output matches what mktime now produces.  Cross-checked via
33183         erlang's calendar:datetime_to_gregorian_seconds({{1970,1,1},{0,0,0}})
33184
33185         posixtm: move #ifdef'd tests into a new module
33186         * lib/posixtm.c (posixtime): Remove #ifdef'd tests.  Move to...
33187         * tests/test-posixtm.c: ... this new file.
33188         * modules/posixtm-tests: New module.
33189
33190 2009-09-19  Eric Blake  <ebb9@byu.net>
33191
33192         openat: simplify use of at-func.c
33193         * lib/at-func.c (includes): Include prerequisites here, to
33194         simplify requirements on client files.
33195         * lib/openat-priv.h: Add double-inclusion guard.
33196         * lib/faccessat.c (includes): Simplify.
33197         * lib/fchmodat.c (includes): Likewise.
33198         * lib/fchownat.c (includes): Likewise.
33199         * lib/mkdirat.c (includes): Likewise.
33200         * lib/mkfifoat.c (includes): Likewise.
33201         * lib/symlinkat.c (includes): Likewise.
33202
33203         openat: allow return of fd 0
33204         * modules/chdir-long (Depends-on): Relax openat-safer to openat.
33205         * modules/save-cwd (Depends-on): Replace fcntl-safer with
33206         unistd-safer.
33207         * lib/chdir-long.c (includes): Replace "fcntl--.h" with
33208         <fcntl.h>; this module does not leak fds.
33209         * lib/openat.c (includes): Do not use "fcntl_safer"; plain openat
33210         must be allowed to return 0, leaving openat_safer to add the
33211         safety.
33212         (openat_permissive): Avoid writing to just-opened fd 2 if
33213         restoring the current directory fails.
33214         * lib/openat-die.c (openat_restore_fail): Add comment.
33215         * lib/save-cwd.c (includes): Make "fcntl--.h" conditional.
33216         (save_cwd): Guarantee safe fd, but without use of open_safer.
33217         * tests/test-openat.c: New test.
33218         * modules/openat-tests (Files, Makefile.am): Distribute and build
33219         new file.
33220
33221         relocatable-prog-wrapper: fix build
33222         * modules/relocatable-prog-wrapper (Files): Update name of
33223         canonicalize m4 file, broken on 2009-09-17.
33224         Reported by emad hajjar <aleppos@hotmail.com>.
33225
33226 2009-09-19  Bruno Haible  <bruno@clisp.org>
33227
33228         * lib/safe-alloc.h: Use the standard header with GPL copyright.
33229         * lib/safe-alloc.c: Likewise.
33230         Reported by Ian Beckwith <ianb@erislabs.net>.
33231
33232 2009-09-18  Bruno Haible  <bruno@clisp.org>
33233
33234         * gnulib-tool: Add advice to "cannot find configure.ac" error message.
33235         Reported by <erobles@sensacd.com.mx>.
33236
33237 2009-09-17  Eric Blake  <ebb9@byu.net>
33238
33239         canonicalize: in CAN_ALL_BUT_LAST, allow trailing slash
33240         * lib/canonicalize.c (canonicalize_filename_mode): Skip trailing
33241         slashes when checking if last component is missing.
33242         * tests/test-canonicalize.c (main): Test this.
33243
33244         canonicalize, canonicalize-lgpl: honor // if distinct from /
33245         * modules/canonicalize (Files): Add double-slash-root.m4.
33246         * modules/canonicalize-lgpl (Files): Likewise.
33247         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE)
33248         (gl_CANONICALIZE_LGPL_SEPARATE): Add dependency.
33249         * lib/canonicalize.c (DOUBLE_SLASH_IS_DISTINCT_ROOT): Provide
33250         fallback definition.
33251         (canonicalize_filename_mode): Use it to protect //.
33252         * lib/canonicalize-lgpl.c (DOUBLE_SLASH_IS_DISTINCT_ROOT)
33253         (__realpath): Likewise.
33254         * tests/test-canonicalize.c (main): Test this.
33255         * tests/test-canonicalize-lgpl.c (main): Likewise.
33256         * modules/canonicalize-tests (Depends-on): Add same-inode.
33257         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
33258
33259         canonicalize-lgpl: fix glibc bug with trailing slash
33260         * m4/canonicalize-lgpl.m4: Move contents...
33261         * m4/canonicalize.m4: ...here.
33262         (gl_CANONICALIZE_LGPL): Factor realpath check...
33263         (gl_FUNC_REALPATH_WORKS): ...into new macro.  Enhance to catch
33264         glibc 2.3.5 bug, fixed 2005-04-27.
33265         (gl_FUNC_CANONICALIZE_FILENAME_MODE): Use it.
33266         (gl_PREREQ_CANONICALIZE_LGPL): Inline...
33267         (gl_CANONICALIZE_LGPL_SEPARATE): ...into this macro.
33268         * modules/canonicalize-lgpl (Files): Manage file rename.
33269         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide default.
33270         * modules/stdlib (Makefile.am): Substitute witness.
33271         * lib/stdlib.in.h (canonicalize_file_name): Declare if replacement
33272         is needed.
33273         * lib/canonicalize-lgpl.c: Also compile if canonicalize_file_name
33274         replacement is required.
33275         * lib/canonicalize.c (canonicalize_file_name): Likewise.
33276         * doc/glibc-functions/canonicalize_file_name.texi
33277         (canonicalize_file_name): Document this.
33278         * doc/posix-functions/realpath.texi (realpath): Likewise.
33279
33280         canonicalize-lgpl: reject non-directory with trailing slash
33281         * lib/canonicalize-lgpl.c (__realpath): Synchronize with glibc.
33282         * tests/test-canonicalize-lgpl.c (main): Enhance test.  This
33283         catches failures in glibc 2.3.5.
33284         * tests/test-canonicalize.c (main): Likewise.
33285
33286         canonicalize-lgpl: use native realpath if it works
33287         * lib/canonicalize-lgpl.c (realpath): Guard with
33288         FUNC_REALPATH_WORKS.
33289         * lib/stdlib.in.h (realpath): Make declaration optional based on
33290         HAVE_REALPATH.
33291         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL): Check whether
33292         native realpath works.
33293         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide default.
33294         * modules/stdlib (Makefile.am): Substitute witness.
33295
33296         canonicalize, canonicalize-lgpl: use <stdlib.h>
33297         * modules/canonicalize-lgpl (Files): Drop canonicalize.h.
33298         (Include): Mention <stdlib.h>.
33299         (configure.ac): Mention functions we provide.
33300         * modules/canonicalize (configure.ac): Likewise.
33301         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL): Always replace
33302         realpath if canonicalize_file_name is missing.
33303         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide defaults.
33304         * modules/stdlib (Makefile.am): Substitute witnesses.
33305         * lib/stdlib.in.h (canonicalize_file_name, realpath): Declare.
33306         * lib/canonicalize-lgpl.c (includes): Adjust accordingly.
33307         * lib/canonicalize.h (canonicalize_file_name): Drop declaration.
33308         * NEWS: Document this.
33309         * doc/glibc-functions/canonicalize_file_name.texi
33310         (canonicalize_file_name): Likewise.
33311         * doc/posix-functions/realpath.texi (realpath): Likewise.
33312         * tests/test-canonicalize-lgpl.c (includes): Use <stdlib.h>.
33313
33314         test-canonicalize: consolidate into single C program
33315         * tests/test-canonicalize.sh: Delete; move setup into...
33316         * tests/test-canonicalize.c (main): ...the program, making it
33317         easier to run in debugger.  Add some tests.
33318         * modules/canonicalize-tests (Files): Remove unused file.
33319         (Depends-on): Add progname.
33320         (configure.ac, Makefile.am): Simplify.
33321
33322         test-canonicalize-lgpl: consolidate into single C program
33323         * tests/test-canonicalize-lgpl.sh: Delete; move setup into...
33324         * tests/test-canonicalize-lgpl.c (main): ...the program, making it
33325         easier to run in debugger.  Add some tests.
33326         * modules/canonicalize-lgpl-tests (Files): Remove unused file.
33327         (configure.ac, Makefile.am): Simplify.
33328
33329         canonicalize: avoid resolvepath
33330         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE): Delete
33331         unnecessary checks.
33332         * lib/canonicalize.c (includes): Simplify.
33333         (canonicalize_file_name): Drop resolvepath implementation.
33334         * modules/canonicalize (Depends-on): Drop filenamecat.
33335
33336         canonicalize: don't lose errno
33337         * lib/canonicalize.c (canonicalize_filename_mode): Protect errno
33338         over calls to free.
33339
33340         canonicalize: simplify errno handling
33341         * lib/canonicalize.c (__set_errno): Delete macro, and use direct
33342         assignment.
33343
33344         canonicalize, canonicalize-lgpl: update module dependencies
33345         * modules/canonicalize (Depends-on): Add extensions, lstat,
33346         pathmax, stdlib.
33347         (Files): Drop pathmax.h.
33348         (configure.ac): Adjust macro name.
33349         * modules/canonicalize-lgpl (Depends-on): Add errno, extensions,
33350         lstat, stdlib, sys_stat.
33351         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Rename...
33352         (gl_FUNC_CANONICALIZE_FILENAME_MODE): ...to this, and require
33353         extensions.
33354         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL)
33355         (gl_CANONICALIZE_LGPL_SEPARATE): Require extensions.
33356         (gl_PREREQ_CANONICALIZE_LGPL): Assume unistd.h.
33357         * lib/canonicalize.h (canonicalize_file_name): Use <stdlib.h>
33358         declaration, if available.
33359         * lib/canonicalize-lgpl.c [HAVE_READLINK]: Delete this condition;
33360         we can rely on the readlink module.
33361         (MAXSYMLINKS): Also consult SYMLOOP_MAX.
33362         (includes): Use <unistd.h> unconditionally.
33363
33364 2009-09-17  Eric Blake  <ebb9@byu.net>
33365
33366         maint: make Include sections of modules consistent
33367         * modules/alloca: Use only header name; no need to list #include.
33368         * modules/alloca-opt: Likewise.
33369         * modules/arpa_inet: Likewise.
33370         * modules/canon-host: Likewise.
33371         * modules/configmake: Likewise.
33372         * modules/dirent: Likewise.
33373         * modules/eealloc: Likewise.
33374         * modules/environ: Likewise.
33375         * modules/fchdir: Likewise.
33376         * modules/fcntl: Likewise.
33377         * modules/fcntl-h: Likewise.
33378         * modules/gethrxtime: Likewise.
33379         * modules/gettime: Likewise.
33380         * modules/ignore-value: Likewise.
33381         * modules/inet_ntop: Likewise.
33382         * modules/inet_pton: Likewise.
33383         * modules/inttypes: Likewise.
33384         * modules/isnand-nolibm: Likewise.
33385         * modules/isnanf-nolibm: Likewise.
33386         * modules/mbchar: Likewise.
33387         * modules/mbfile: Likewise.
33388         * modules/mbiter: Likewise.
33389         * modules/mbuiter: Likewise.
33390         * modules/netdb: Likewise.
33391         * modules/netinet_in: Likewise.
33392         * modules/nproc: Likewise.
33393         * modules/pagealign_alloc: Likewise.
33394         * modules/poll: Likewise.
33395         * modules/printf-frexp: Likewise.
33396         * modules/pthread: Likewise.
33397         * modules/putenv: Likewise.
33398         * modules/random_r: Likewise.
33399         * modules/relocatable-prog: Likewise.
33400         * modules/search: Likewise.
33401         * modules/select: Likewise.
33402         * modules/selinux-h: Likewise.
33403         * modules/settime: Likewise.
33404         * modules/signal: Likewise.
33405         * modules/size_max: Likewise.
33406         * modules/socklen: Likewise.
33407         * modules/ssize_t: Likewise.
33408         * modules/stdarg: Likewise.
33409         * modules/stdbool: Likewise.
33410         * modules/stddef: Likewise.
33411         * modules/stdint: Likewise.
33412         * modules/stdio: Likewise.
33413         * modules/stdlib: Likewise.
33414         * modules/string: Likewise.
33415         * modules/strings: Likewise.
33416         * modules/sys_file: Likewise.
33417         * modules/sys_ioctl: Likewise.
33418         * modules/sys_select: Likewise.
33419         * modules/sys_socket: Likewise.
33420         * modules/sys_stat: Likewise.
33421         * modules/sys_time: Likewise.
33422         * modules/sys_times: Likewise.
33423         * modules/sys_utsname: Likewise.
33424         * modules/sys_wait: Likewise.
33425         * modules/sysexits: Likewise.
33426         * modules/time: Likewise.
33427         * modules/times: Likewise.
33428         * modules/tmpfile: Likewise.
33429         * modules/trim: Likewise.
33430         * modules/unistd: Likewise.
33431         * modules/wchar: Likewise.
33432         * modules/wctype: Likewise.
33433
33434 2009-09-17  Bruno Haible  <bruno@clisp.org>
33435
33436         Make getdate.y compile on QNX and NetBSD 5 / i386.
33437         * m4/getdate.m4 (gl_GETDATE): Conditionally define
33438         TIME_T_FITS_IN_LONG_INT.
33439         * lib/getdate.y (long_time_t): New type.
33440         (relative_time): Change type of 'seconds' field to long_time_t.
33441         (get_date): Update types of local variables. Check against overflow
33442         during conversion from long_time_t to time_t.
33443         Reported by Matt Kraai <kraai@ftbfs.org>
33444         and Hasso Tepper <hasso@netbsd.org>.
33445
33446 2009-09-17  Bruno Haible  <bruno@clisp.org>
33447
33448         * modules/COPYING: Update copyright years.
33449         * modules/README: Likeiwse.
33450         * doc/gnulib-intro.texi (Copyright): Use a wildcard year.
33451         Reported by Ian Beckwith <ianb@erislabs.net>.
33452
33453 2009-09-17  Ian Beckwith  <ianb@erislabs.net>  (tiny change)
33454
33455         * users.txt: Update references for gnuit package.
33456
33457 2009-09-17  Ian Beckwith  <ianb@erislabs.net>  (tiny change)
33458
33459         * m4/getdelim.m4: Fix typo in copyright line.
33460
33461 2009-09-17  Bruno Haible  <bruno@clisp.org>
33462
33463         * lib/atoll.c: Use the standard header with GPL copyright.
33464         * lib/argz.in.h: Likewise.
33465         * lib/glob.c: Likewise.
33466         * lib/glob-libc.h: Likewise.
33467         * lib/random_r.c: Likewise.
33468         * lib/siglist.h: Likewise.
33469         * lib/strsignal.c: Likewise.
33470         Reported by Ian Beckwith <ianb@erislabs.net>.
33471
33472 2009-09-17  Eric Blake  <ebb9@byu.net>
33473
33474         rmdir: ensure correct dependency order
33475         * m4/rmdir.m4 (gl_FUNC_RMDIR): Require unistd defaults.
33476
33477 2009-09-17  Bruno Haible  <bruno@clisp.org>
33478
33479         Disable assertion that fails on NetBSD 5 / i386.
33480         * lib/mktime.c (ydhms_diff): Disable assertion about time_t size.
33481         Reported by Sam Steingold <sds@gnu.org>
33482         and Hasso Tepper <hasso@netbsd.org>.
33483
33484 2009-09-16  Eric Blake  <ebb9@byu.net>
33485
33486         unlinkdir: port to mingw
33487         * m4/unlinkdir.m4 (gl_UNLINKDIR): Add mingw to list of platforms
33488         on which no one can unlink a directory.
33489
33490         stdlib: sort witness names
33491         * modules/stdlib (Makefile.am): Sort replacements.
33492         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Likewise.
33493         * lib/stdlib.in.h: Likewise.
33494
33495         parse-duration-tests: avoid link failure
33496         * modules/parse-duration-tests (test_parse_duration_LDADD): Add
33497         LIBINTL.
33498         Reported by Tom G. Christensen.
33499
33500         openat-tests: ensure unlinkat behaves like rmdir
33501         * tests/test-rmdir.c (main): Factor guts...
33502         * tests/test-rmdir.h (test_rmdir_func): ...into new file.
33503         * modules/rmdir-tests (Files): Ship new file.
33504         * modules/openat-tests: New test.
33505         * tests/test-unlinkat.c: Likewise.
33506
33507         rmdir-errno: mark obsolete, it is unsafe for cross-compilation
33508         * modules/rmdir-errno (Status, Notice): Now obsolete.
33509
33510         rmdir: work around cygwin 1.5.x and mingw bugs
33511         * m4/rmdir.m4 (gl_FUNC_RMDIR): Detect the bugs.
33512         * lib/rmdir.c (rmdir): Work around it.
33513         * modules/rmdir (Status, Notice): No longer obsolete.
33514         (Files): Add dos.m4.
33515         (Depends-on): Add unistd.
33516         (configure.ac): Set witnesses.
33517         (License): Relax to LGPLv2+.
33518         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set defaults.
33519         * modules/unistd (Makefile.am): Substitute witnesses.
33520         * lib/unistd.in.h (rmdir): Declare replacement.
33521         * doc/posix-functions/rmdir.texi (rmdir): Document this.
33522         * modules/rmdir-tests: New tests.
33523         * tests/test-rmdir.c: Likewise.
33524
33525 2009-09-15  Eric Blake  <ebb9@byu.net>
33526
33527         fchdir: improve use of replacement functions
33528         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set appropriate witnesses.
33529         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add REPLACE_FSTAT.
33530         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Add REPLACE_OPENDIR,
33531         REPLACE_CLOSEDIR.
33532         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add REPLACE_DUP.
33533         * modules/sys_stat (Makefile.am): Substitute correct witness.
33534         * modules/dirent (Makefile.am): Likewise.
33535         * modules/unistd (Makefile.am): Likewise.
33536         * lib/dirent.in.h (opendir, closedir): Use better witnesses.
33537         * lib/unistd.in.h (dup): Likewise.
33538         * lib/sys_stat.in.h (fstat): Likewise.
33539
33540         maint: ignore gnulib-tool temp files
33541         * .gitignore: Ignore files created during gnulib-tool --test.
33542
33543 2009-09-13  Jim Meyering  <meyering@redhat.com>
33544
33545         posixtm: don't reject a time that specify "60" as the number of seconds
33546         * lib/posixtm.c (posixtime): The code to reject invalid dates
33547         would also reject a time specified with the .60 suffix.
33548         But POSIX allows that, in order to accommodate leap seconds.
33549         So don't reject it.
33550         (main): Adjust tests accordingly.
33551         * modules/posixtm (Depends-on): Add stpcpy.
33552
33553 2009-09-11  Jim Meyering  <meyering@redhat.com>
33554
33555         announce-gen: include [$release_type] in emitted Subject:
33556         * build-aux/announce-gen (get_tool_versions): Include [$release_type],
33557         e.g., [stable] in the emitted Subject: line.
33558
33559 2009-09-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
33560
33561         Remove obsolete macros from several modules.
33562         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Replace
33563         obsolete Autoconf macros with their modern counterparts.
33564         * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): Likewise.
33565         * m4/gc-camellia.m4 (gl_GC_CAMELLIA): Likewise.
33566         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Likewise.
33567         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Likewise.
33568         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Likewise.
33569         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
33570         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
33571         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
33572         * m4/poll.m4 (gl_FUNC_POLL): Likewise.
33573         * m4/readline.m4 (gl_FUNC_READLINE): Likewise.
33574         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
33575         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
33576         * m4/select.m4 (gl_FUNC_SELECT): Likewise.
33577         * m4/sockets.m4 (gl_SOCKETS): Likewise.
33578         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Likewise.
33579         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Likewise.
33580         * m4/sysexits.m4 (gl_SYSEXITS): Likewise.
33581         * m4/time_r.m4 (gl_TIME_R): Likewise.
33582         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Likewise.
33583         * m4/vararrays.m4 (AC_C_VARARRAYS): Likewise.
33584         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
33585
33586         Fix copyright header in build-aux scripts.
33587         * build-aux/git-version-gen: Fix copyright header to match GPLv3
33588         recommendation.
33589         * build-aux/ncftpput-ftp: Likewise.
33590         * build-aux/update-copyright: Likewise.
33591
33592 2009-09-09  Eric Blake  <ebb9@byu.net>
33593
33594         test-link: allow Linux choice of errno
33595         * tests/test-link.c (main): Relax test for alternate error.
33596
33597         strndup: fix improper m4 caching
33598         * m4/strndup.m4 (gl_FUNC_STRNDUP): Rework to avoid side effects
33599         inside AC_CACHE_CHECK.  Use REPLACE_STRNDUP, not HAVE_STRNDUP.
33600         (gl_PREREQ_STRNDUP): Delete.
33601         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Update default.
33602         * modules/string (Makefile.am): Substitute it.
33603         * lib/string.in.h (strndup): Modernize prototype.
33604
33605         getcwd: port to mingw
33606         * m4/getcwd.m4 (gl_FUNC_GETCWD): Mingw directories are very
33607         different from the POSIX assumptions made throughout the getcwd
33608         module; fortunately, the mingw getcwd does not need replacement.
33609         (gl_FUNC_GETCWD_NULL): Skip test on mingw.
33610         * modules/getcwd-tests: New test.
33611         * tests/test-getcwd.c: Likewise.
33612
33613         link: fix platform bugs
33614         * m4/link.m4 (gl_FUNC_LINK): Detect Solaris and Cygwin bugs.
33615         * lib/link.c (link): Work around them.  Fix related mingw bug.
33616         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add REPLACE_LINK.
33617         * modules/unistd (Makefile.am): Substitute it.
33618         * lib/unistd.in.h (link): Declare replacement.
33619         * doc/posix-functions/link.texi (link): Document this.
33620         * modules/link (Depends-on): Add strdup-posix, sys_stat.
33621
33622         test-link: consolidate into single C program, test more cases
33623         * tests/test-link.sh: Delete.
33624         * tests/test-link.c: Test more error conditions.  Exposes bugs on
33625         at least Cygwin and Solaris.
33626         * modules/link-tests (Files): Remove unused file.
33627         (Depends-on): Add errno, sys_stat.
33628         (Makefile.am): Simplify.
33629
33630 2009-09-08  Bruno Haible  <bruno@clisp.org>
33631
33632         Work around towlower, towupper bug on mingw.
33633         * lib/wctype.in.h (towlower, towupper) [__MINGW32__]: New replacements.
33634         * m4/wctype.m4 (gl_WCTYPE_H): Replace <wctype.h> also on mingw.
33635         * doc/posix-functions/towlower.texi: Mention the mingw bug.
33636         * doc/posix-functions/towupper.texi: Likewise.
33637         Reported by Eric Blake.
33638
33639 2009-09-08  Jim Meyering  <meyering@redhat.com>
33640
33641         build: don't try to run autoheader if we don't use it
33642         * build-aux/bootstrap: Define AUTOHEADER=true when AC_CONFIG_HEADERS
33643         is not used in configure.ac.
33644
33645 2009-09-08  Eric Blake  <ebb9@byu.net>
33646
33647         euidaccess: fix compilation error
33648         * lib/euidaccess.c (includes): Add <fcntl.h>, for AT_EACCESS.
33649
33650         rawmemchr: relax license
33651         * modules/rawmemchr (License): Derived from glibc, so LGPLv2+ is
33652         okay.
33653         Reported by Jim Meyering.
33654
33655         mkfifoat: new module
33656         * modules/mkfifoat: New file.
33657         * lib/mkfifoat.c: Likewise.
33658         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Likewise.
33659         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
33660         * modules/sys_stat (Makefile.am): Use them.
33661         * lib/sys_stat.in.h (mkfifoat, mknodat): Declare them.
33662         * MODULES.html.sh (File system functions): Mention module.
33663         * doc/posix-functions/mkfifoat.texi (mkfifoat): Likewise.
33664         * doc/posix-functions/mknodat.texi (mknodat): Likewise.
33665         * modules/mkfifoat-tests: New test.
33666         * tests/test-mkfifoat.c: Likewise.
33667
33668         strchrnul: relax license
33669         * modules/strchrnul (License): Derived from glibc, so LGPLv2+ is
33670         okay.
33671         Reported by Jim Meyering.
33672
33673 2009-09-08  Eric Blake  <ebb9@byu.net>
33674
33675         fstatat: fix compilation on Solaris
33676         * lib/fstatat.c (includes): Add fcntl.h.
33677         Reported by Pádraig Brady.
33678
33679 2009-09-07  Eric Blake  <ebb9@byu.net>
33680
33681         rename: modernize replacement
33682         * modules/rename (Depends-on): Add stdio.
33683         (configure.ac): Declare witness.
33684         * m4/rename.m4 (gl_FUNC_RENAME): Ensure dependency order, and let
33685         stdio take care of replacement.
33686         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add new defaults.
33687         * modules/stdio (Makefile.am): Substitute them.
33688         * lib/stdio.in.h (rename): Declare replacement.
33689         * lib/rename.c (includes): Allow cross-compilation to non-windows
33690         machines.
33691         * doc/posix-functions/rename.texi (rename): Improve
33692         documentation.
33693
33694         stdio: sort witness names
33695         * modules/stdio (Makefile.am): Sort replacements.
33696         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
33697         * lib/stdio.in.h: Likewise.
33698
33699         getcwd: minor cleanups
33700         * lib/getcwd.c (AT_FDCWD): Delete; rely on <fcntl.h> instead.
33701         (is_ENAMETOOLONG): Delete; ENAMETOOLONG is portable.
33702
33703         openat: provide more convenience names
33704         * modules/faccessat (configure.ac): Add C witness.
33705         * lib/unistd.in.h (readlinkat): Fix typo.
33706         * lib/openat.h (statat, lstatat, accessat, euidaccessat): New
33707         convenience wrappers.
33708         * top/maint.mk (sc_prohibit_openat_without_use): Allow these
33709         wrappers in syntax checks.
33710
33711 2009-09-06  Eric Blake  <ebb9@byu.net>
33712
33713         doc: fix comments in recent patches
33714         * lib/faccessat.c: Mention correct function.
33715         * lib/fchmodat.c: Likewise.
33716         * lib/fchownat.c: Likewise.
33717         * lib/symlinkat.c: Likewise.
33718         * doc/posix-headers/fcntl.texi (fcntl.h): Cygwin 1.7 has AT_*
33719         constants.
33720
33721         faccessat, symlinkat: continue cleanup of previous patch
33722         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Ensure dependency order.
33723         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Likewise.
33724         * modules/unistd (Makefile.am): Substitute GNULIB_READLINKAT.
33725         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Offer GNULIB_READLINKAT.
33726         * modules/symlinkat (configure.ac): Set GNULIB_READLINKAT.
33727         * lib/unistd.in.h (readlinkat): Declare if GNULIB_READLINKAT is
33728         set.
33729
33730 2009-09-06  Bruno Haible  <bruno@clisp.org>
33731
33732         * lib/sys_stat.in.h (fchmodat): Declare if GNULIB_FCHMODAT is set.
33733         (fstatat): Declare if GNULIB_FSTATAT is set.
33734         (mkdirat): Declare if GNULIB_MKDIRAT is set.
33735         * lib/unistd.in.h (fchownat): Declare if GNULIB_FCHOWNAT is set.
33736         (unlinkat): Declare if GNULIB_UNLINKAT is set.
33737         * modules/fcntl-h (Files): Remove m4/openat.m4.
33738         * modules/sys_stat (Files): Remove m4/openat.m4.
33739         (Makefile.am): Substitute GNULIB_FCHMODAT, GNULIB_FSTATAT,
33740         GNULIB_MKDIRAT instead of GNULIB_OPENAT.
33741         * modules/unistd (Files): Remove m4/openat.m4.
33742         (Makefile.am): Substitute GNULIB_FCHOWNAT, GNULIB_UNLINKAT instead of
33743         GNULIB_OPENAT.
33744         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Initialize GNULIB_OPENAT,
33745         HAVE_OPENAT here. Don't require gl_OPENAT_DEFAULTS.
33746         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize
33747         GNULIB_FCHMODAT, GNULIB_FSTATAT, GNULIB_MKDIRAT, HAVE_FCHMODAT,
33748         HAVE_FSTATAT, HAVE_MKDIRAT, REPLACE_FSTATAT here. Don't require
33749         gl_OPENAT_DEFAULTS.
33750         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_FCHOWNAT,
33751         GNULIB_UNLINKAT, HAVE_FCHOWNAT, HAVE_UNLINKAT, REPLACE_FCHOWNAT here.
33752         Don't require gl_OPENAT_DEFAULTS.
33753         * m4/openat.m4 (gl_FUNC_OPENAT): Require gl_FCNTL_H_DEFAULTS,
33754         gl_SYS_STAT_H_DEFAULTS, gl_UNISTD_H_DEFAULTS. Set GNULIB_FCHMODAT,
33755         GNULIB_FSTATAT, GNULIB_MKDIRAT, GNULIB_FCHOWNAT, GNULIB_UNLINKAT.
33756         (gl_OPENAT_DEFAULTS): Remove macro.
33757
33758 2009-09-06  Bruno Haible  <bruno@clisp.org>
33759
33760         * modules/openat (configure.ac): Remove unneeded witness.
33761
33762 2009-09-06  Bruno Haible  <bruno@clisp.org>
33763
33764         Set errno to ENOSYS when a function is entirely unsupported.
33765         * lib/chown.c (rpl_chown) [!HAVE_CHOWN]: Set errno to ENOSYS instead of
33766         EOPNOTSUPP.
33767         * lib/lchown.c (lchown) [!HAVE_CHOWN]: Likewise.
33768         * modules/chown (Depends-on): Remove errno.
33769
33770 2009-09-06  Bruno Haible  <bruno@clisp.org>
33771
33772         * doc/posix-headers/fcntl.texi (AT_*): Mention affected platforms.
33773
33774 2009-09-06  Bruno Haible  <bruno@clisp.org>
33775
33776         * lib/sys_stat.in.h: Fix preprocessor command indentation.
33777
33778 2009-09-06  Ben Pfaff  <blp@gnu.org>
33779             Bruno Haible  <bruno@clisp.org>
33780
33781         Work around a glibc bug in strtok_r.
33782         * lib/string.in.h (strtok_r): Replace if REPLACE_STRTOK_R is set.
33783         Undefine if UNDEFINE_STRTOK_R is set.
33784         * lib/strtok_r.c (strtok_r, __strtok_r) [!_LIBC]: Don't undefine.
33785         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
33786         REPLACE_STRTOK_R and UNDEFINE_STRTOK_R.
33787         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Check against the glibc bug.
33788         * modules/string (Makefile.am): Substitute REPLACE_STRTOK_R,
33789         UNDEFINE_STRTOK_R.
33790         * doc/posix-functions/strtok_r.texi: Mention the glibc 2.7 bug.
33791
33792 2009-09-06  Sergey Poznyakoff  <gray@gnu.org.ua>
33793
33794         exclude: minor fix
33795         * lib/exclude.c: Include wctype.h
33796
33797 2009-09-06  Akim Demaille  <demaille@gostai.com>
33798
33799         bootstrap: improve error message
33800         * build-aux/bootstrap (find_tool): Upon failure, report the list
33801         of candidates.
33802         Honor the initial value of the envvar.
33803
33804 2009-09-05  Eric Blake  <ebb9@byu.net>
33805
33806         symlinkat: new module
33807         * modules/symlinkat: New file.
33808         * lib/symlinkat.c: Likewise.
33809         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Likewise.
33810         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
33811         * modules/unistd (Makefile.am): Use them.
33812         * lib/unistd.in.h (symlinkat, readlinkat): Declare them.
33813         (faccessat) [GNULIB_POSIXCHECK]: Fix typo.
33814         * lib/at-func.c (FUNC_RESULT): New macro, defaulting to int.
33815         * MODULES.html.sh (File system functions): Mention module.
33816         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
33817         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
33818         * modules/symlinkat-tests: New test.
33819         * tests/test-symlinkat.c: Likewise.
33820
33821         test-openat-safer: add more checks
33822         * tests/test-openat-safer.c (main): Check more code paths.
33823
33824 2009-09-05  Jim Meyering  <meyering@redhat.com>
33825
33826         syntax-check: detect unnecessary inclusion of openat.h
33827         * top/maint.mk (sc_prohibit_openat_without_use): New rule.
33828
33829 2009-09-05  Bruno Haible  <bruno@clisp.org>
33830
33831         Support towlower, towupper.
33832         * doc/posix-functions/towlower.texi: Mention module wctype.
33833         * doc/posix-functions/towupper.texi: Likewise.
33834         * lib/wctype.in.h (towlower, towupper): New functions.
33835         * tests/test-wctype.c: Include stdio.h, stdlib.h.
33836         (ASSERT): New macro.
33837         (e): New variable.
33838         (main): Test also towlower, towupper. Test WEOF argument.
33839         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
33840
33841 2009-09-05  Bruno Haible  <bruno@clisp.org>
33842
33843         Fix conversion behaviour when the input is invalid.
33844         * lib/striconveh.c (mem_cd_iconveh_internal): Fix storing of question
33845         mark occurring in first pass of indirect conversion.
33846         * tests/test-striconveh.c (main): Test conversion of invalid ASCII
33847         input.
33848         Found by clang's static analyzer.
33849
33850 2009-09-05  Bruno Haible  <bruno@clisp.org>
33851
33852         * tests/test-striconveh.c (main): Test indirect conversion on platforms
33853         where direct conversion is possible.
33854
33855 2009-09-04  Eric Blake  <ebb9@byu.net>
33856
33857         openat: fail with ENOENT on empty name
33858         * lib/openat-proc.c (openat_proc_name): Special-case the empty
33859         buffer.
33860
33861         link-follow: fix logic bug in prior patch
33862         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Fix bug that
33863         reversed sense of yes and no in prior patch.  Avoid confusing
33864         compilation failure with desired semantics.
33865
33866         link-follow: accomodate mingw and cross-compilation
33867         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Rename...
33868         (gl_FUNC_LINK_FOLLOWS_SYMLINK): ...to this.  Change
33869         cross-compilation results to -1, to make linkat easier to
33870         implement when cross-compiling.  Trivially support mingw.
33871         * modules/link-follow (configure.ac): Call new name.
33872         * NEWS: Mention this.
33873
33874 2009-09-03  Eric Blake  <ebb9@byu.net>
33875
33876         faccessat: compile replacement
33877         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Build replacement when
33878         needed.
33879
33880         fts: fix compilation error
33881         * lib/fts.c (includes): Re-add "openat.h", for
33882         openat_needs_fchdir.
33883
33884         faccessat: new module
33885         * modules/faccessat: New file.
33886         * lib/faccessat.c: Likewise.
33887         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Likewise.
33888         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
33889         * modules/unistd (Makefile.am): Use it.
33890         * lib/unistd.in.h (faccessat): Declare it.
33891         (F_OK, X_OK, W_OK, R_OK): Provide definitions.
33892         * lib/fcntl.in.h (AT_SYMLINK_FOLLOW, AT_EACCESS): Likewise.
33893         * MODULES.html.sh (File system functions): Mention it.
33894         * doc/posix-functions/faccessat.texi (faccessat): Likewise.
33895         * doc/posix-headers/fcntl.texi (fcntl.h): Likewise.
33896
33897         euidaccess: prefer POSIX over non-standard implementation
33898         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Check for faccessat.
33899         * lib/euidaccess.c (euidaccess): Use it if available.
33900
33901         openat: make template easier to use
33902         * lib/at-func.c (CALL_FUNC): Allow AT_FUNC_USE_F1_COND and
33903         AT_FUNC_F2 to be undefined.
33904         (VALIDATE_FLAG): New macro; use it to reject bad flags.
33905         (AT_FUNC_USE_F1_COND): Change sense to just flag bit.
33906         * lib/fchmodat.c (AT_FUNC_USE_F1_COND): Adjust.
33907         * lib/fchownat.c (AT_FUNC_USE_F1_COND): Likewise.
33908         * lib/openat.c (AT_FUNC_USE_F1_COND) [fstatat, unlinkat]:
33909         Likewise.
33910         * lib/mkdirat.c (AT_FUNC_F2, AT_FUNC_USE_F1_COND): Delete.
33911         * lib/selinux-at.c (AT_FUNC_F2, AT_FUNC_USE_F1_COND)
33912         [getfileconat, lgetfileconat, setfileconat, lsetfileconat]:
33913         Likewise.
33914
33915         openat: declare in POSIX headers
33916         * NEWS: Mention this.
33917         * modules/openat (configure.ac): Declare witnesses.
33918         (Depends-on): Add fcntl-h, sys_stat, unistd.
33919         (Include): Mention correct headers.
33920         * modules/fcntl-h (Depends-on): Add link-warning.
33921         (Files): Add openat.m4.
33922         (Makefile.am): Substitute witnesses.
33923         * modules/sys_stat (Files, Makefile.am): Likewise.
33924         * modules/unistd (Files, Makefile.am): Likewise.
33925         * m4/openat.m4 (gl_FUNC_OPENAT, gl_FUNC_FCHOWNAT): Set witnesses.
33926         (gl_OPENAT_DEFAULTS): New macro.
33927         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Use it.
33928         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Likewise.
33929         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Likewise.
33930         (SYS_STAT_H): Remove unused variable.
33931         * doc/posix-headers/fcntl.texi (fcntl.h): Update content.
33932         * lib/fcntl--.h (includes): Remove unneeded header.
33933         * lib/openat-safer.c (includes): Likewise.
33934         * lib/openat.h (AT_FDCWD, AT_SYMLINK_NOFOLLOW, AT_REMOVEDIR)
33935         (openat, fstatat, unlinkat, mkdirat, fchmodat, fchownat): Move to
33936         appropriate headers.
33937         (__OPENAT_PREFIX): Delete.
33938         * lib/fcntl.in.h (openat): Provide declaration.
33939         (AT_FDCWD): Fix Solaris bug.
33940         (AT_SYMLINK_NOFOLLOW, AT_REMOVEDIR): Provide macros.
33941         * lib/sys_stat.in.h (fstatat, mkdirat): Provide declaration.
33942         * lib/fchmodat.c (includes):  Adjust to find declaration.
33943         * lib/fchownat.c (includes): Likewise.
33944         * lib/mkdirat.c (includes): Likewise.
33945         * lib/fstatat.c (includes): Likewise.  Ensure original fstatat is
33946         still visible.
33947
33948 2009-09-02  Eric Blake  <ebb9@byu.net>
33949
33950         errno: use consistently
33951         * lib/c-stack.c (ENOTSUP): <errno.h> guarantees a definition.
33952         * lib/canonicalize-lgpl.c (ENAMETOOLONG): Likewise.
33953         * lib/canonicalize.c (ELOOP): Likewise.
33954         * lib/inet_ntop.c (EAFNOSUPPORT): Likewise.
33955         * lib/inet_pton.c (EAFNOSUPPORT): Likewise.
33956         * lib/lchown.c (EOPNOTSUPP): Likewise.
33957         * lib/openat-priv.h (ENOSYS, EOPNOTSUPP): Likewise.
33958         * lib/savewd.c (ESTALE): Likewise.
33959         * lib/settime.c (ENOSYS): Likewise.
33960         * lib/utimens.c (ENOSYS): Likewise.
33961         * lib/xgethostname.c (ENAMETOOLONG): Likewise.
33962         * lib/chdir-safer.c (ELOOP): Likewise.
33963         (chdir_no_follow): Use HAVE_READLINK, not ELOOP, as witness.
33964         * modules/c-stack (Depends-on): Add errno.
33965         * modules/canonicalize (Depends-on): Likewise.
33966         * modules/chdir-safer (Depends-on): Likewise.
33967         * modules/fdopendir (Depends-on): Likewise.
33968         * modules/inet_ntop (Depends-on): Likewise.
33969         * modules/inet_pton (Depends-on): Likewise.
33970         * modules/lchown (Depends-on): Likewise.
33971         * modules/openat (Depends-on): Likewise.
33972         * modules/savewd (Depends-on): Likewise.
33973         * modules/settime (Depends-on): Likewise.
33974         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Check for readlink.
33975
33976         fts: avoid leaking fds
33977         * modules/fts (Depends-on): Add cloexec.
33978         * lib/fts.c (opendirat, diropen, fts_build): Set close-on-exec
33979         flag.
33980
33981         fts: make directory fds more robust
33982         * lib/fts.c (O_DIRECTORY): Let <fcntl.h> take care of this.
33983         (opendirat): Specify O_DIRECTORY, and add fallbacks for safety.
33984
33985         backupfile, chdir-long, fts, savedir: make safer
33986         * lib/backupfile.c (includes): Use "dirent--.h", since
33987         numbered_backup can write to stderr during readdir.
33988         * lib/savedir.c (includes): Likewise.
33989         * lib/chdir-long.c (includes): Use "fcntl--.h", since openat
33990         emulation can write to stderr on failure.
33991         * lib/fts.c (includes) [!_LIBC]: Likewise for opendir and openat.
33992         * lib/getcwd.c: Document why opendir_safer is unused.
33993         * lib/glob.c: Likewise.
33994         * lib/scandir.c: Likewise.
33995         * lib/openat-proc.c: Likewise, for open_safer.
33996         * modules/backupfile (Depends-on): Add dirent-safer.
33997         * modules/savedir (Depends-on): Likewise.
33998         * modules/fts (Depends-on): Add dirent-safer and openat-safer.
33999         * modules/chdir-long (Depends-on): Add openat-safer.
34000
34001         openat-safer: new module
34002         * modules/openat-safer: New file.
34003         * lib/openat-safer.c: Likewise.
34004         * m4/fcntl-safer.m4 (gl_OPENAT_SAFER): New macro.
34005         * lib/fcntl-safer.h (openat_safer): Declare.
34006         * lib/fcntl--.h (openat): Override.
34007         * MODULES.html.sh (File descriptor based I/O): Mention it.
34008         * lib/openat.h: Add double-inclusion guards.
34009         * lib/openat.c (includes): Only include "fcntl-safer.h", not
34010         "fcntl--.h", so we can implement openat.
34011         * modules/openat-safer-tests: New test.
34012         * tests/test-openat-safer.c: New file.
34013
34014         dirent-safer: new module
34015         * modules/dirent-safer: New file.
34016         * lib/dirent--.h: Likewise.
34017         * lib/dirent-safer.h: Likewise.
34018         * lib/opendir-safer.c: Likewise.
34019         * m4/dirent-safer.m4: Likewise.
34020         * MODULES.html.sh (Enhancements for POSIX:2008): Mention it.
34021         * modules/dirent-safer-tests: New test.
34022         * tests/test-dirent-safer.c: New file.
34023         * lib/fdopendir.c (includes): Ensure fdopendir is also safe.
34024
34025         fdopendir: optimize on mingw
34026         * lib/unistd.in.h (_gl_directory_name): New prototype.
34027         * lib/fchdir.c (_gl_directory_name): Implement it.
34028         (fchdir): Use it to simplify implementation.
34029         * lib/fdopendir.c (fdopendir) [REPLACE_FCHDIR]: Use metadata from
34030         fchdir, when available, to avoid calling [f]chdir().
34031
34032         fdopendir: split into its own module
34033         * lib/openat.c (fdopendir): Move...
34034         * lib/fdopendir.c: ...into new file.
34035         * modules/fdopendir: New module.
34036         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): New file.
34037         * modules/openat (Depends-on): Add fdopendir.
34038         * m4/openat.m4 (gl_FUNC_OPENAT): No longer need to check for
34039         fdopendir here.
34040         * modules/savedir (Depends-on): Only need fdopendir, not full
34041         openat.
34042         * lib/savedir.c (include): Use <dirent.h>, not "openat.h".
34043         * lib/openat.h (fdopendir): Drop prototype.
34044         * lib/dirent.in.h (fdopendir): Provide prototype.
34045         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Add replacements.
34046         * modules/dirent (Makefile.am): Substitute them.
34047         * MODULES.html.sh (File system functions): Mention it.
34048         * doc/posix-functions/fdopendir.texi (fdopendir): Likewise.
34049         * modules/fdopendir-tests: New file.
34050         * tests/test-fdopendir.c: Likewise.
34051
34052         fchdir: use more consistent macro convention
34053         * lib/fcntl.in.h (_gl_register_fd): Move declaration to unistd.
34054         * lib/sys_stat.in.h (rpl_fstat): Declare via make-time
34055         REPLACE_FCHDIR, rather than relying on config.h macros.
34056         * lib/unistd.in.h (fchdir): Move all fchdir internal declarations
34057         inside a single make-time REPLACE_FCHDIR block, rather than using
34058         the config.h FCHDIR_REPLACEMENT.
34059         * m4/fchdir.m4 (gl_FUNC_FCHDIR): REPLACE_FCHDIR was already
34060         AC_SUBST'd, also AC_DEFINE it.  Don't define FCHDIR_REPLACEMENT.
34061         Manage fstat replacement.
34062         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Pick up
34063         REPLACE_FCHDIR.
34064         * modules/sys_stat (Files): Add m4/unistd_h.m4.
34065         (Makefile.am): Substitute REPLACE_FCHDIR.
34066         * lib/close.c (rpl_close): Use REPLACE_FCHDIR, not
34067         FCHDIR_REPLACEMENT.
34068         * lib/dup-safer.c (dup_safer): Likewise.
34069         * lib/dup2.c (rpl_dup2): Likewise.
34070         * lib/dup3.c (rpl_dup3): Likewise.
34071         * lib/open.c (rpl_open): Likewise.
34072
34073         fchdir: simplify error handling, and support dup3
34074         * modules/fchdir (Depends-on): Use strdup-posix, not strdup.  Add
34075         stdbool, malloc-posix, realloc-posix.
34076         * lib/fchdir.c (struct dir_info_t): Delete saved_errno.
34077         (ensure_dirs_slot): Return false on allocation failure.
34078         (rpl_dup2): Delete.
34079         (_gl_register_dup): New function.
34080         (_gl_unregister_fd, rpl_opendir, rpl_dup): Update callers.
34081         (_gl_register_fd): Close fd on allocation failure.
34082         * lib/fcntl.in.h (_gl_register_fd): Update signature.
34083         * lib/unistd.in.h (_gl_register_dup) [FCHDIR_REPLACEMENT]: New
34084         prototype.
34085         (rpl_dup2_fchdir): Delete prototype.
34086         * lib/open.c (open): Update caller.
34087         * lib/dup2.c (dup2): Track fchdir metadata.
34088         * lib/dup3.c (dup3): Likewise.
34089         * m4/dup2.m4 (gl_REPLACE_DUP2): New macro.
34090         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Use it.
34091
34092 2009-09-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
34093
34094         * gnulib-tool (func_create_testdir, func_create_megatestdir): Use
34095         AC_CONFIG_HEADERS instead of AM_CONFIG_HEADER. Use AC_CONFIG_FILES and
34096         don't pass arguments to AC_OUTPUT.
34097
34098 2009-09-02  Bruno Haible  <bruno@clisp.org>
34099
34100         * modules/mkdtemp (License): Relicense under LGPLv2+.
34101         Reported by Paolo Bonzini.
34102
34103 2009-09-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
34104
34105         Replace uses of obsolete autoconf macros in Jim's modules.
34106         The Autoconf macros AC_TRY_CPP, AC_TRY_COMPILE, AC_TRY_LINK and
34107         AC_TRY_RUN have been obsolete since Autoconf 2.55, and each use
34108         can evoke a warning from autoconf when run with -Wobsolete
34109         enabled.  They were declared obsolete for good reasons (see
34110         the `AC_FOO_IFELSE vs AC_TRY_FOO' node in the Autoconf manual,
34111         recently renamed to `AC_ACT_IFELSE vs AC_TRY_ACT'), and we
34112         should not continue using the deprecated macros.
34113         * m4/d-type.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Replace
34114         obsolete Autoconf macros with modern counterparts.
34115         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
34116         * m4/dos.m4 (gl_AC_DOS): Likewise.
34117         * m4/fpending.m4 (gl_FUNC_FPENDING): Likewise.
34118         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Likewise.
34119         * m4/getloadavg.m4 (gl_PREREQ_GETLOADAVG): Likewise.
34120         * m4/jm-winsz1.m4 (gl_WINSIZE_IN_PTEM): Likewise.
34121         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Likewise.
34122         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Likewise.
34123         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Likewise.
34124         * m4/mode_t.m4 (gl_PROMOTED_TYPE_MODE_T): Likewise.
34125         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH):
34126         Likewise.
34127         * m4/rename.m4 (gl_FUNC_RENAME): Likewise.
34128         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
34129         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Likewise.
34130         * m4/st_dm_mode.m4 (AC_STRUCT_ST_DM_MODE): Likewise.
34131         * m4/stat-time.m4 (gl_STAT_TIME): Likewise.
34132         * m4/utimes-null.m4 (gl_FUNC_UTIMES_NULL): Likewise.
34133
34134 2009-09-01  Eric Blake  <ebb9@byu.net>
34135
34136         fchdir: fix off-by-one bug in previous patch
34137         * lib/fchdir.c (rpl_fstat): Use correct bounds.
34138         (_gl_unregister_fd): Delete useless if.
34139
34140 2009-09-01  Daniel P. Berrange  <berrange@redhat.com>
34141
34142         maint.mk: sort the list of syntax-check rules
34143         * top/maint.mk (syntax-check-rules): Sort syntax-check rules, so it's
34144         easier to get a sense of progress when the rules are run sequentially
34145         and take a long time.
34146
34147 2009-09-01  Simon Josefsson  <simon@josefsson.org>
34148
34149         * modules/arpa_inet: Use $(MKDIR_P) instead of @MKDIR_P@.
34150         * modules/netinet_in: Likewise.
34151         * modules/sys_file: Likewise.
34152         * modules/sys_ioctl: Likewise.
34153         * modules/sys_select: Likewise.
34154         * modules/sys_socket: Likewise.
34155         * modules/sys_stat: Likewise.
34156         * modules/sys_time: Likewise.
34157         * modules/sys_times: Likewise.
34158         * modules/sys_utsname: Likewise.
34159         * modules/sys_wait: Likewise.
34160
34161 2009-09-01  Jim Meyering  <meyering@redhat.com>
34162
34163         fts: help ensure that return values are not ignored
34164         * lib/fts_.h (__GNUC_PREREQ): Define.
34165         (__attribute_warn_unused_result__): Define.
34166         (fts_children, fts_close, fts_open, fts_read): Declare with
34167         __attribute_warn_unused_result__.
34168
34169         fts: fts_close now fails also when closing a dir file descriptor fails
34170         * lib/fts.c (fts_close): Detect close failure, not just fchdir failure,
34171         and propagate to caller, along with errno.
34172
34173         announce-gen: correct formatting in --help output
34174         * build-aux/announce-gen (usage): Move the one-line description in
34175         --help output "up", to where it belongs, just after Usage:.
34176
34177 2009-08-31  Eric Blake  <ebb9@byu.net>
34178
34179         fchdir: port to mingw
34180         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Check for mingw bug.
34181         * lib/open.c (open) [FCHDIR_REPLACEMENT]: If directories can't be
34182         opened, then use a substitute.
34183         * lib/sys_stat.in.h (fstat) [REPLACE_OPEN_DIRECTORY]: Declare
34184         replacement.
34185         * lib/fchdir.c (fstat) [REPLACE_OPEN_DIRECTORY]: Implement it.
34186         (_gl_register_fd): No need to check stat if open already filters
34187         all directories.
34188         (fchdir): Fix error condition to match POSIX.
34189         * modules/fchdir (Depends-on): Add sys_stat.
34190         * doc/posix-functions/open.texi (open): Document the limitation.
34191         * modules/fchdir-tests: New file.
34192         * tests/test-fchdir.c: Likewise.
34193
34194         canonicalize: allow cross-testing from cygwin to mingw
34195         * modules/canonicalize-tests (configure.ac): Define HAVE_SYMLINK.
34196         (Makefile.am): Pass it through TESTS_ENVIRONMENT.
34197         * modules/canonicalize-lgpl-tests (configure.ac, Makefile.am):
34198         Likewise.
34199         * tests/test-canonicalize.sh: Also skip test if 'ln -s' works, but
34200         target does not support symlinks.
34201         * tests/test-canonicalize-lgpl.sh: Likewise.
34202
34203         chown: avoid compilation warning on mingw
34204         * m4/chown.m4 (gl_FUNC_CHOWN): Recognize missing chown.
34205         * lib/chown.c (rpl_chown) [!HAVE_CHOWN]: Always return failure on
34206         mingw.
34207         * lib/lchown.c (lchown) [!HAVE_CHOWN]: Likewise.
34208         * modules/chown (Depends-on): Add errno.
34209
34210 2009-08-31  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
34211
34212         * gnulib-tool: Fix test whether $CONFIG_SHELL has a working 'echo'
34213         command.
34214
34215 2009-08-31  Jim Meyering  <meyering@redhat.com>
34216
34217         canonicalize: remove useless initialization
34218         * lib/canonicalize.c (canonicalize_filename_mode): Remove useless
34219         initialization of local, "end".
34220
34221 2009-08-30  Bruno Haible  <bruno@clisp.org>
34222
34223         Fix an unnecessary error on Solaris 10 on NFSv3 file systems.
34224         * lib/set-mode-acl.c (qset_acl) [Solaris 10 new]: Treat EOPNOTSUPP like
34225         ENOSYS.
34226
34227 2009-08-30  Bruno Haible  <bruno@clisp.org>
34228
34229         * tests/test-pipe-filter-ii1.sh: Prefer /usr/xpg6/bin/tr over
34230         /usr/xpg4/bin/tr when it exists.
34231         * tests/test-pipe-filter-gi1.sh: Likewise.
34232
34233 2009-08-30  Bruno Haible  <bruno@clisp.org>
34234
34235         Work around deficient /usr/bin/id program on Solaris.
34236         * tests/test-file-has-acl.sh (ID): New variable.
34237         * tests/test-set-mode-acl.sh (ID): Likewise.
34238         * tests/test-copy-acl.sh (ID): Likewise.
34239         * tests/test-copy-file.sh (ID): Likewise.
34240
34241 2009-08-30  Bruno Haible  <bruno@clisp.org>
34242
34243         New module 'xstriconveh'.
34244         * lib/xstriconveh.h: New file.
34245         * lib/xstriconveh.c: New file.
34246         * modules/xstriconveh: New file.
34247
34248 2009-08-30  Bruno Haible  <bruno@clisp.org>
34249
34250         Make it easier to use mem_cd_iconveh.
34251         * lib/striconveh.h (iconveh_t): New type.
34252         (iconveh_open, iconveh_close): New declarations.
34253         (mem_cd_iconveh, str_cd_iconveh): Replace the three iconv_t arguments
34254         with a single 'const iconveh_t *' argument.
34255         * lib/striconveh.c (iconveh_open, iconveh_close): New functions.
34256         (mem_cd_iconveh, str_cd_iconveh): Replace the three iconv_t arguments
34257         with a single 'const iconveh_t *' argument.
34258         (mem_iconveh, str_iconveh): Use iconveh_open, iconveh_close.
34259         * tests/test-striconveh.c (main): Update.
34260         * NEWS: Mention the change.
34261
34262 2009-08-30  Bruno Haible  <bruno@clisp.org>
34263
34264         * doc/posix-functions/iconv_open.texi: Mention indirect conversion
34265         problem.
34266
34267 2009-08-30  Bruno Haible  <bruno@clisp.org>
34268
34269         Work around iconv_open problem on Solaris.
34270         * lib/iconv_open-solaris.gperf: New file.
34271         * lib/iconv_open.c (ICONV_FLAVOR_SOLARIS): New macro.
34272         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Also handle Solaris.
34273         * modules/iconv_open (Files): Add lib/iconv_open-solaris.gperf.
34274         (Makefile.am): Add rule for iconv_open-solaris.h. Augment
34275         BUILT_SOURCES, MOSTLYCLEANFILES, MAINTAINERCLEANFILES, EXTRA_DIST.
34276         * doc/posix-functions/iconv_open.texi: Mention the Solaris problem.
34277
34278 2009-08-29  Jim Meyering  <meyering@redhat.com>
34279
34280         maint.mk: remove more coreutils-specific targets; XZ_OPT=-9ev
34281         * top/maint.mk (cvs-check): Remove target; it was just an alias
34282         to the better-named vc-diff-check.
34283         (maintainer-distcheck): Remove rule.  It was used only from
34284         the (alpha/beta/major) target, and all of its commands but one
34285         were coreutils-specific.
34286         (vc-dist): Remove rule.
34287         (alpha beta major): Run "$(MAKE) distcheck" explicitly.
34288         Run vc-diff-check, not vc-dist.
34289         Run $(MAKE) dist with XZ_OPT=-9ev.  Note spelling, with "-".
34290
34291 2009-08-27  Bruno Haible  <bruno@clisp.org>
34292
34293         * tests/test-bitrotate.c (main): Remove test that uses a shift count
34294         of 0.
34295
34296 2009-08-27  Bruno Haible  <bruno@clisp.org>
34297
34298         * tests/test-func.c (main): Don't verify sizeof __func__ on SunPRO C
34299         compilers.
34300         * doc/func.texi: Document the SunPRO C bug.
34301
34302 2009-08-27  Bruno Haible  <bruno@clisp.org>
34303
34304         Fix link error on Solaris.
34305         * tests/test-parse-duration.c (xstrdup): Remove function.
34306
34307 2009-08-26  Pádraig Brady  <P@draigbrady.com>
34308
34309         ignore-value: handle pointer types, too
34310         * lib/ignore-value.h (__attribute__): Remove definition.
34311         (ignore_value): Remove use of "__attribute__ ((unused))" in favor
34312         of a more concise and more-often effective "(void) i" statement.
34313         (ignore_ptr): New function to suppress warnings from functions that
34314         return pointers, and to make it explicit that one function doesn't
34315         handle all cases.
34316
34317 2009-08-25  Bruno Haible  <bruno@clisp.org>
34318
34319         dup2: work around a Linux bug.
34320         * m4/dup2.m4 (gl_FUNC_DUP2): Test for the Linux bug.
34321         * lib/dup2.c (rpl_dup2): Correct the return value if it is -EBADF.
34322         * doc/posix-functions/dup2.texi: Mention the Linux bug.
34323         Reported by Simon Josefsson.
34324
34325 2009-08-25  Jim Meyering  <meyering@redhat.com>
34326
34327         libguestfs uses gnulib
34328         * users.txt: Add libguestfs.
34329
34330 2009-08-24  Eric Blake  <ebb9@byu.net>
34331
34332         dup2, pipe2: fix some recent test failures on cygwin 1.5.x
34333         * lib/pipe2.c (includes): Add binary-io.h.
34334         * lib/dup2.c (rpl_dup2): Correct buggy errno value.
34335
34336 2009-08-24  Bruno Haible  <bruno@clisp.org>
34337
34338         Tolerate declared but missing accept4 syscall.
34339         * lib/accept4.c (accept4): Invoke original accept4 function first, if
34340         available.
34341         * lib/sys_socket.in.h (accept4): If the function is already present,
34342         override it.
34343         * m4/accept4.m4 (gl_FUNC_ACCEPT4): Remove AC_LIBOBJ invocation.
34344         * modules/accept4 (Makefile.am): Compile accept4.c always.
34345         Reported by Paolo Bonzini and Eric Blake.
34346
34347 2009-08-23  Bruno Haible  <bruno@clisp.org>
34348
34349         New module 'accept4'.
34350         * lib/sys_socket.in.h (accept4): New declaration.
34351         * lib/accept4.c: New file.
34352         * m4/accept4.m4: New file.
34353         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Initialize
34354         GNULIB_ACCEPT4, HAVE_ACCEPT4.
34355         * modules/sys_socket (Makefile.am): Substitute GNULIB_ACCEPT4,
34356         HAVE_ACCEPT4.
34357         * modules/accept4: New file.
34358         * doc/glibc-functions/accept4.texi: Mention the new module.
34359
34360 2009-08-24  Jim Meyering  <meyering@redhat.com>
34361
34362         progname: also set global program_invocation_name, when possible
34363         Before this change, a libtool-enabled program that calls glibc's
34364         error function would report the program name as
34365         "/abs/dir/.libs/lt-program_name" rather than the desired program_name.
34366         * modules/progname (configure.ac): Check for a declaration of
34367         program_invocation_name.
34368         * lib/progname.c:  Include <errno.h>.
34369         (set_program_name) [HAVE_DECL_PROGRAM_INVOCATION_NAME]:
34370         Set program_invocation_name.
34371
34372 2009-08-23  Bruno Haible  <bruno@clisp.org>
34373
34374         * lib/dup3.c: Include <string.h>.
34375
34376 2009-08-23  Bruno Haible  <bruno@clisp.org>
34377
34378         * lib/dup3.c (dup3): Test only once whether the system actually exists.
34379         * lib/pipe2.c (pipe2): Likewise.
34380         Suggested by Eric Blake.
34381
34382 2009-08-23  Bruno Haible  <bruno@clisp.org>
34383
34384         Tolerate declared but missing dup3 syscall.
34385         * lib/dup3.c (dup3): Invoke original dup3 function first, if available.
34386         * lib/unistd.in.h (dup3): If the function is already present,
34387         override it.
34388         * m4/dup3.m4 (gl_FUNC_DUP3): Remove AC_LIBOBJ invocation.
34389         * modules/dup3 (Makefile.am): Compile dup3.c always.
34390         Reported by Paolo Bonzini.
34391
34392 2009-08-23  Bruno Haible  <bruno@clisp.org>
34393
34394         Tolerate declared but missing pipe2 syscall.
34395         * lib/pipe2.c (pipe2): Invoke original pipe2 function first, if
34396         available.
34397         * lib/unistd.in.h (pipe2): If the function is already present,
34398         override it.
34399         * m4/pipe2.m4 (gl_FUNC_PIPE2): Remove AC_LIBOBJ invocation.
34400         * modules/pipe2 (Makefile.am): Compile pipe2.c always.
34401         Reported by Paolo Bonzini.
34402
34403 2009-08-23  Bruno Haible  <bruno@clisp.org>
34404
34405         * lib/pipe2.c (pipe2): Move #ifs inside function.
34406
34407 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
34408
34409         quotearg: document limitations of quote_these_too
34410         * lib/quotearg.c (quotearg_buffer_restyled): Add comments where
34411         those limitations are created.
34412         * lib/quotearg.h (set_char_quoting): Document that digits and
34413         letters that are special after backslash are not permitted.
34414         (quotearg_char): Cross-reference set_char_quoting documentation.
34415
34416 2009-08-23  Joel E. Denny  <jdenny@clemson.edu>
34417
34418         quotearg: implement custom_quoting_style
34419         * lib/quotearg.c: (struct quoting_options): Add left_quote and
34420         right_quote fields.
34421         (set_custom_quoting): New public function.
34422         (quotearg_buffer_restyled): Add left_quote and right_quote
34423         arguments, handle them very much like locale quoting, and update
34424         all uses.
34425         (quotearg_n_custom): New public function.
34426         (quotearg_n_custom_mem): New public function.
34427         (quotearg_custom): New public function.
34428         (quotearg_custom_mem): New public function.
34429         * lib/quotearg.h: Prototype and document new public functions.
34430         (enum quoting_style): For escape_quoting_style and
34431         clocale_quoting_style, comment that QA_SPLIT_TRIGRAPHS is
34432         ignored even though they're otherwise like c_quoting_style.
34433         Add custom_quoting_style member and document with comparison to
34434         clocale_quoting_style.
34435         * tests/test-quotearg.c (custom_quotes): New array.
34436         (custom_results): New array.
34437         (main): Extend to test custom quoting.
34438
34439 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
34440
34441         quotearg: fix right quote escaping when it's in quote_these_too
34442         * lib/quotearg.c (quotearg_buffer_restyled): Upon seeing a right
34443         quote, be sure to prepend only one backslash.
34444         * tests/test-quotearg.c (use_quote_double_quotes): New function.
34445         (main): Test it.
34446
34447 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
34448
34449         quotearg-tests: test escaping of embedded locale quotes
34450         * tests/test-quotearg.c (struct result_strings): Add member for
34451         new input.
34452         (LQ_ENC, RQ_ENC, RQ_ESC): New macros.
34453         (inputs): Add new input.
34454         (results_g): Add expected results.
34455         (flag_results): Likewise.
34456         (locale_results): Likewise.
34457         (compare_strings): Check those.
34458
34459 2009-08-23  Bruno Haible  <bruno@clisp.org>
34460
34461         Tests for module 'dup3'.
34462         * modules/dup3-tests: New file.
34463         * tests/test-dup3.c: New file.
34464
34465         New module 'dup3'.
34466         * lib/unistd.in.h (dup3): New declaration.
34467         * lib/dup3.c: New file.
34468         * m4/dup3.m4: New file.
34469         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_DUP3 and
34470         HAVE_DUP3.
34471         * modules/unistd (Makefile.am): Substitute GNULIB_DUP3 and HAVE_DUP3.
34472         * modules/dup3: New file.
34473         * doc/glibc-functions/dup3.texi: Mention the new module.
34474
34475 2009-08-23  Bruno Haible  <bruno@clisp.org>
34476
34477         Tweak the dup2 test.
34478         * tests/test-dup2.c (main): Create the test file empty. Verify that an
34479         out-of-range fd yields EBADF. Verify that after writing to /dev/null,
34480         the test file is still empty. Fix argument order of lseek.
34481
34482 2009-08-23  Bruno Haible  <bruno@clisp.org>
34483
34484         Avoid test link errors when the modules getopt-gnu, gettext are used.
34485         * modules/getopt-posix-tests (Makefile.am): Define test_getopt_LDADD.
34486         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
34487
34488 2009-08-23  Bruno Haible  <bruno@clisp.org>
34489
34490         Fix getdtablesize() on mingw.
34491         * lib/getdtablesize.c (getdtablesize): Implement differently.
34492         * lib/unistd.in.h (getdtablesize): Improve comment.
34493
34494 2009-08-23  Bruno Haible  <bruno@clisp.org>
34495
34496         New module 'mkostemp'.
34497         Based on Ulrich Drepper's 2007-08-10 change in glibc.
34498         * lib/stdlib.in.h (mksotemp): New declaration.
34499         * lib/mkostemp.c: New file, from glibc with modifications.
34500         * lib/tempname.h (GT_FILE): Remove outdated comment.
34501         (gen_tempname): Add flags argument.
34502         * lib/tempname.c (__GT_BIGFILE): Remove macro.
34503         (__GT_FILE): Map to 1.
34504         (small_open, large_open): Remove macros.
34505         (__gen_tempname): Add flags argument. Remove code for __GT_BIGFILE.
34506         * lib/mkstemp.c (mkstemp): Update.
34507         * lib/mkdtemp.c (mkdtemp): Likewise.
34508         * m4/mkostemp.m4: New file.
34509         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_MKOSTEMP,
34510         HAVE_MKOSTEMP.
34511         * modules/stdlib (Makefile.am): Substitute GNULIB_MKOSTEMP,
34512         HAVE_MKOSTEMP.
34513         * modules/mkostemp: New file, based on modules/mkstemp.
34514         * doc/glibc-functions/mkostemp.texi: Mention the new module.
34515         * NEWS: Mention the change.
34516
34517 2009-08-23  Bruno Haible  <bruno@clisp.org>
34518
34519         * lib/pipe2.c (pipe2): Support O_TEXT, O_BINARY on all platforms.
34520         Reported by Eric Blake.
34521
34522 2009-08-23  Bruno Haible  <bruno@clisp.org>
34523
34524         * lib/pipe2.c (pipe2): Fix test of fcntl's return value.
34525         Reported by Eric Blake.
34526
34527 2009-08-23  Bruno Haible  <bruno@clisp.org>
34528
34529         * modules/fchdir (Depends-on): Use fcntl-h instead of fcntl.
34530         * modules/pipe2 (Depends-on): Likewise.
34531
34532 2009-08-23  Eric Blake  <ebb9@byu.net>
34533
34534         fcntl-h: add O_TTY_INIT support
34535         * lib/fcntl.in.h (O_TTY_INIT): Support another POSIX macro.
34536         * tests/test-fcntl-h.c (o): Test it.
34537         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
34538
34539         fcntl-h: rename from fcntl, in preparation for fcntl(2)
34540         * modules/fcntl: Move <fcntl.h> header replacement...
34541         * modules/fcntl-h: ...to new name, so as not to collide with
34542         like-named function.
34543         * tests/test-fcntl.c: Rename...
34544         * tests/test-fcntl-h.c: ...to this.  Test FD_CLOEXEC.
34545         * modules/fcntl-tests: Rename...
34546         * modules/fcntl-h-tests: ...to this.  Update test file name.
34547         * modules/chdir-long (Depends-on): Update clients.
34548         * modules/chdir-safer (Depends-on): Likewise.
34549         * modules/fcntl-safer (Depends-on): Likewise.
34550         * modules/fts (Depends-on): Likewise.
34551         * modules/mkancesdirs (Depends-on): Likewise.
34552         * modules/mkdir-p (Depends-on): Likewise.
34553         * modules/open (Depends-on): Likewise.
34554         * modules/savewd (Depends-on): Likewise.
34555         * MODULES.html.sh (systems lacking POSIX:2008): Update name.
34556         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
34557
34558 2009-08-22  Bruno Haible  <bruno@clisp.org>
34559
34560         * modules/binary-io (License): Relicense under LGPL.
34561         * modules/pipe2 (License): Likewise.
34562
34563 2009-08-22  Bruno Haible  <bruno@clisp.org>
34564
34565         * lib/pipe-filter-ii.c (pipe_filter_ii_execute): Fix test of fcntl's
34566         return value.
34567         * lib/pipe-filter-gi.c (filter_init): Likewise.
34568         Reported by Eric Blake.
34569
34570 2009-08-22  Bruno Haible  <bruno@clisp.org>
34571
34572         * lib/pipe.c (create_pipe): Use pipe2 instead of _pipe.
34573         * modules/pipe (Depends-on): Add pipe2.
34574
34575 2009-08-22  Bruno Haible  <bruno@clisp.org>
34576
34577         Tests for module 'pipe2'.
34578         * modules/pipe2-tests: New file.
34579         * tests/test-pipe2.c: New file.
34580
34581         New module 'pipe2'.
34582         * lib/unistd.in.h (pipe2): New declaration.
34583         * lib/pipe2.c: New file.
34584         * m4/pipe2.m4: New file.
34585         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_PIPE2 and
34586         HAVE_PIPE2.
34587         * modules/unistd (Makefile.am): Substitute GNULIB_PIPE2 and HAVE_PIPE2.
34588         * modules/pipe2: New file.
34589         * doc/glibc-functions/pipe2.texi: Mention the new module.
34590
34591 2009-08-22  Bruno Haible  <bruno@clisp.org>
34592
34593         Reference some new glibc functions.
34594         * doc/glibc-functions/accept4.texi: New file.
34595         * doc/glibc-functions/dup3.texi: New file.
34596         * doc/glibc-functions/mkostemp.texi: New file.
34597         * doc/glibc-functions/pipe2.texi: New file.
34598         * doc/gnulib.texi (Glibc stdlib.h): Refer to mkostemp.
34599         (Glibc sys/socket.h): Refer to accept4.
34600         (Glibc unistd.h): Refer to dup3, pipe2.
34601         Reported by Eric Blake.
34602
34603 2009-08-22  Jim Meyering  <meyering@redhat.com>
34604             Bruno Haible  <bruno@clisp.org>
34605
34606         annotate automake snippets with $(AM_V_GEN) and $(AM_V_at)
34607         This makes it so packages using automake-1.11's silent-rules option
34608         can print e.g., a single "GEN    configmake.h" line, rather than
34609         the 30+ statements that perform the job.  If you want to see the
34610         actual commands, you can still run "make V=1".
34611         * modules/alloca-opt: Add $(AM_V_GEN) and $(AM_V_at) prefixes
34612         so that make output is abbreviated when those variables are defined
34613         appropriately.
34614         * modules/argz: Likewise.
34615         * modules/arpa_inet: Likewise.
34616         * modules/byteswap: Likewise.
34617         * modules/configmake: Likewise.
34618         * modules/dirent: Likewise.
34619         * modules/errno: Likewise.
34620         * modules/fcntl: Likewise.
34621         * modules/float: Likewise.
34622         * modules/fnmatch: Likewise.
34623         * modules/getopt-posix: Likewise.
34624         * modules/glob: Likewise.
34625         * modules/iconv_open: Likewise.
34626         * modules/inttypes: Likewise.
34627         * modules/localcharset: Likewise.
34628         * modules/locale: Likewise.
34629         * modules/math: Likewise.
34630         * modules/netdb: Likewise.
34631         * modules/netinet_in: Likewise.
34632         * modules/poll: Likewise.
34633         * modules/posix_spawnp-tests: Likewise.
34634         * modules/sched: Likewise.
34635         * modules/search: Likewise.
34636         * modules/selinux-h: Likewise.
34637         * modules/signal: Likewise.
34638         * modules/spawn: Likewise.
34639         * modules/stdarg: Likewise.
34640         * modules/stdbool: Likewise.
34641         * modules/stddef: Likewise.
34642         * modules/stdint: Likewise.
34643         * modules/stdio: Likewise.
34644         * modules/stdlib: Likewise.
34645         * modules/string: Likewise.
34646         * modules/strings: Likewise.
34647         * modules/sys_file: Likewise.
34648         * modules/sys_ioctl: Likewise.
34649         * modules/sys_select: Likewise.
34650         * modules/sys_socket: Likewise.
34651         * modules/sys_stat: Likewise.
34652         * modules/sys_time: Likewise.
34653         * modules/sys_times: Likewise.
34654         * modules/sys_utsname: Likewise.
34655         * modules/sys_wait: Likewise.
34656         * modules/sysexits: Likewise.
34657         * modules/time: Likewise.
34658         * modules/unistd: Likewise.
34659         * modules/wchar: Likewise.
34660         * modules/wctype: Likewise.
34661
34662 2009-08-22  Jim Meyering  <meyering@redhat.com>
34663
34664         announce-gen: detect write failure
34665         * build-aux/announce-gen: Add Coda at end.
34666         Remove equivalent-but-more-verbose block at top.
34667
34668 2009-08-19  Akim Demaille  <demaille@gostai.com>
34669
34670         bootstrap: --help to stdout.
34671         * bootstrap (usage): Don't send --help to stderr.
34672         Use a here doc instead of a long string.
34673
34674 2009-08-21  Eric Blake  <ebb9@byu.net>
34675
34676         test-popen-safer: split from test-popen
34677         * tests/test-popen.c (main): Move...
34678         * tests/test-popen.h: ...into new file.
34679         * tests/test-popen-safer2.c: New file.
34680         * modules/popen-tests (Files): Add test-popen.h.
34681         * modules/popen-safer-tests (Files): Add test-popen-safer2.c.
34682         Suggested by Bruno Haible.
34683
34684         test-fcntl-safer: split from test-open
34685         * tests/test-open.c (main): Move...
34686         * tests/test-open.h: ...into new file.
34687         * tests/test-fcntl-safer.c: New file.
34688         * modules/open-tests (Files): Add test-open.h.
34689         * modules/fcntl-safer-tests: New file.
34690         Suggested by Bruno Haible.
34691
34692         test-fopen-safer: split from test-fopen
34693         * tests/test-fopen.c (main): Move...
34694         * tests/test-fopen.h: ...into new file.
34695         * tests/test-fopen-safer.c: New file.
34696         * modules/fopen-tests (Files): Add test-fopen.h.
34697         * modules/fopen-safer-tests: New file.
34698         Suggested by Bruno Haible.
34699
34700 2009-08-21  Paolo Bonzini  <bonzini@gnu.org>
34701
34702         popen-safer: test O_CLOEXEC at run-time.
34703         * lib/popen-safer.c: Test O_CLOEXEC at run-time.
34704
34705 2009-08-21  Paolo Bonzini  <bonzini@gnu.org>
34706
34707         fcntl: move more flags to the header
34708         * lib/cloexec.c: Do not define FD_CLOEXEC here.
34709         * lib/popen-safer.c: Do not alias O_NOINHERIT to O_CLOEXEC here.
34710         * lib/fcntl.in.h: Do both things here.
34711
34712 2009-08-21  Jim Meyering  <meyering@redhat.com>
34713
34714         consistently remove $@-t before redirecting to it
34715         * modules/argz: Remove $@-t and $@ before redirecting to the former.
34716         * modules/alloca-opt: Likewise.
34717         * modules/byteswap: Likewise.
34718         * modules/fnmatch: Likewise.
34719         * modules/getopt-posix: Likewise.
34720         * modules/glob: Likewise.
34721         * modules/poll: Likewise.
34722         * modules/posix_spawnp-tests: Likewise.
34723         * modules/sys_socket: Likewise.
34724         * modules/sysexits: Likewise.
34725
34726 2009-08-21  Eric Blake  <ebb9@byu.net>
34727
34728         popen: simplify access to original popen
34729         * lib/popen.c (rpl_popen): No need to worry about popen being a
34730         macro.
34731         Reported by Bruno Haible.
34732
34733 2009-08-20  Eric Blake  <ebb9@byu.net>
34734
34735         build: avoid some compiler warnings
34736         * lib/selinux-at.h: Use dir_fd, not dirfd, to avoid shadowing.
34737         * lib/exclude.c (fnmatch_pattern_has_wildcards): Use correct
34738         type.
34739         (new_exclude_segment, excluded_file_pattern_p)
34740         (excluded_file_name_p): Reduce scope.
34741         * lib/vasnprintf.c (decimal_point_char): Avoid warning on
34742         old-style declaration.
34743
34744 2009-08-20  Simon Josefsson  <simon@josefsson.org>
34745
34746         * tests/test-exclude1.sh: Handle Windows EOL.
34747         * tests/test-exclude2.sh: Likewise.
34748         * tests/test-exclude3.sh: Likewise.
34749         * tests/test-exclude4.sh: Likewise.
34750         * tests/test-exclude5.sh: Likewise.
34751         * tests/test-exclude6.sh: Likewise.
34752         * tests/test-exclude7.sh: Likewise.
34753
34754 2009-08-19  Akim Demaille  <demaille@gostai.com>
34755
34756         bootstrap: find sha1sum when named gsha1sum.
34757         * bootstrap (find_tool): New.
34758         ($SHA1SUM): New.
34759         Use it.
34760
34761 2009-08-20  Jim Meyering  <meyering@redhat.com>
34762
34763         maint.mk: _header_without_use: fix a quoting bug and remove a bash'ism
34764         * top/maint.mk (_header_without_use): Use "\\\\", not "\\" in the sed
34765         expression that converts "." in a file name to "\." in the resulting
34766         regexp.  Start with a dummy statement, so that prior shell variable
34767         definitions are expanded portably.  Reported by Simon Josefsson.
34768
34769 2009-08-20  Paolo Bonzini  <bonzini@gnu.org>
34770
34771         Fix polling for writeability of a screen buffer.
34772         * lib/poll.c: Distinguish input and screen buffers for the
34773         Win32 implementation.
34774         * lib/select.c: Likewise.
34775
34776 2009-08-19  Eric Blake  <ebb9@byu.net>
34777
34778         popen-safer: prevent popen from clobbering std descriptors
34779         * modules/popen-safer: New file.
34780         * lib/popen-safer.c: Likewise.
34781         * m4/stdio-safer.m4 (gl_POPEN_SAFER): New macro.
34782         * lib/stdio--.h (popen): Provide override.
34783         * lib/stdio-safer.h (popen_safer): Provide declaration.
34784         * tests/test-popen.c (includes): Partially test this.
34785         * modules/popen-safer-tests: New file, for more tests.
34786         * tests/test-popen-safer.c: Likewise.
34787         * MODULES.html.sh (file stream based Input/Output): Mention it.
34788
34789         tests: test some of the *-safer modules
34790         * modules/fopen-safer (Depends-on): Add fopen.
34791         * modules/fcntl-safer (Depends-on): Add fcntl.
34792         * modules/stdlib-safer (Depends-on): Add stdlib.
34793         (configure.ac): Set indicator.
34794         * modules/unistd-safer (configure.ac): Likewise.
34795         * modules/tmpfile-safer (configure.ac): Likewise.
34796         (Depends-on): Add tmpfile.
34797         * lib/stdio--.h (fopen, tmpfile): Don't override unless module is
34798         active.
34799         * tests/test-fopen.c (includes): Test safer versions when they are
34800         in use.
34801         * tests/test-open.c (includes): Likewise.
34802
34803         popen: fix cygwin 1.5 bug when stdin closed
34804         * doc/posix-functions/popen.texi (popen): Document cygwin bugs.
34805         * modules/popen: New file.
34806         * modules/popen-tests: Likewise.
34807         * tests/test-popen.c: Likewise.
34808         * m4/popen.m4: Likewise.
34809         * lib/popen.c: Likewise.
34810         * lib/stdio.in.h (popen): New declaration.
34811         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add popen.
34812         * modules/stdio (Makefile.am): Likewise.
34813         * MODULES.html.sh (systems lacking POSIX:2008): Mention it.
34814
34815 2009-08-17  Joel E. Denny  <jdenny@clemson.edu>
34816
34817         maint.mk: give full control over update-copyright exclusions
34818         * top/maint.mk (VC_LIST_EXCEPT): Instead of ChangeLog, use
34819         ${VC_LIST_EXCEPT_DEFAULT-ChangeLog} as the default exclusion.
34820         (update-copyright): Don't force inclusion of top-level
34821         ChangeLog.  Don't force exclusion of all COPYING files, but make
34822         them the default exclusion instead.
34823
34824 2009-08-16  Bruno Haible  <bruno@clisp.org>
34825
34826         Fix test failures on Solaris 10.
34827         * tests/uniconv/test-u8-conv-from-enc.c (main): Disable autodetect_jp
34828         tests when Solaris iconv() is used.
34829         * tests/uniconv/test-u16-conv-from-enc.c (main): Likewise.
34830         * tests/uniconv/test-u32-conv-from-enc.c (main): Likewise.
34831         * tests/uniconv/test-u8-strconv-from-enc.c (main): Likewise.
34832         * tests/uniconv/test-u16-strconv-from-enc.c (main): Likewise.
34833         * tests/uniconv/test-u32-strconv-from-enc.c (main): Likewise.
34834
34835 2009-08-16  Bruno Haible  <bruno@clisp.org>
34836
34837         Fix test failures on Solaris 10.
34838         * tests/test-pipe-filter-ii1.sh: Determine the filename of a working
34839         'tr' program and pass it as first argument.
34840         * tests/test-pipe-filter-gi1.sh: Likewise.
34841         * tests/test-pipe-filter-ii1.c (main): Except the filename of a 'tr'
34842         program as first argument.
34843         * tests/test-pipe-filter-gi1.c (main): Likewise.
34844
34845 2009-08-16  Eric Blake  <ebb9@byu.net>
34846
34847         fpurge: fix previous commits
34848         * modules/fpurge (Makefile.am): Make replacement conditional,
34849         partially reverting 2007-04-29 change; missed in previous
34850         attempt.
34851         * m4/fpurge.m4 (gl_FUNC_FPURGE): Also compile fpurge.c when fpurge
34852         is missing.
34853
34854 2009-08-16  Bruno Haible  <bruno@clisp.org>
34855
34856         Clarify fpurge's effect on the file position.
34857         * lib/stdio.in.h (fpurge): Specify the file position after fpurge.
34858         * tests/test-fpurge.c (main): Make a second pass for checking the file
34859         position.
34860
34861 2009-08-16  Bruno Haible  <bruno@clisp.org>
34862
34863         * m4/fpurge.m4 (gl_FUNC_FPURGE): Don't compile fpurge.c if only the
34864         declaration of fpurge is missing.
34865         * tests/test-fpurge.c (main): Check that the file has not more contents
34866         than expected. Close the file before removing it.
34867
34868 2009-08-15  Eric Blake  <ebb9@byu.net>
34869
34870         fpurge: don't wrap working cygwin implementation
34871         * lib/fpurge.c (fpurge): Fix comment typo.
34872         * m4/fpurge.m4 (gl_FUNC_FPURGE): Detect BSD bug, allowing cygwin
34873         1.7 to avoid replacement.
34874         * tests/test-fpurge.c (main): Enhance test.
34875
34876 2009-08-15  Eric Blake  <ebb9@byu.net>
34877         and Jim Meyering  <meyering@redhat.com>
34878
34879         test-update-copyright: skip if perl is insufficient
34880         * tests/test-update-copyright.sh: Failure to run maintainer tool
34881         should not cause testsuite failure on cygwin 1.5.
34882
34883 2009-08-14  Eric Blake  <ebb9@byu.net>
34884
34885         doc: mention more functions added in cygwin 1.7.0
34886         * doc/posix-headers/limits.texi (limits.h): Update for recent
34887         cygwin additions.
34888         * doc/posix-headers/wordexp.texi (wordexp.h): Likewise.
34889         * doc/posix-functions/wordexp.texi (wordexp): Likewise.
34890         * doc/posix-functions/wordfree.texi (wordfree): Likewise.
34891         * doc/posix-functions/setlocale.texi (setlocale): Likewise.
34892         * doc/posix-functions/nl_langinfo.texi (nl_langinfo): Likewise.
34893
34894 2009-08-14  Eric Blake  <ebb9@byu.net>
34895
34896         maint.mk: simplify update-copyright rule
34897         * top/maint.mk (update-copyright-local): Delete, and document how
34898         to do it in cfg.mk instead.
34899         (update-copyright-exclude-regexp): Delete, and document how to do
34900         it in .x-update-copyright instead.
34901         (update-copyright): Simplify, thanks to VC_LIST_EXCEPT.  Don't
34902         exclude ChangeLog.
34903
34904 2009-08-14  Bruno Haible  <bruno@clisp.org>
34905
34906         * m4/wchar.m4 (gl_WCHAR_H): Undo invalid optimization in last commit.
34907
34908 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
34909
34910         maint.mk: support update-copyright-env
34911         * top/maint.mk (update-copyright-env): Define place-holder.
34912         (update-copyright): Expand $(update-copyright-env) before
34913         invoking update-copyright.
34914
34915 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
34916
34917         update-copyright: implement forced reformatting
34918         * build-aux/update-copyright: Implement and document
34919         UPDATE_COPYRIGHT_FORCE.
34920         * tests/test-update-copyright.sh: Test it.
34921
34922 2009-08-14  Eric Blake  <ebb9@byu.net>
34923         and Bruno Haible  <bruno@clisp.org>
34924
34925         stddef: fix NetBSD 5.0 NULL bug, rather than working around it
34926         * tests/test-locale.c: Revert previous patch related to NULL.
34927         * tests/test-stdio.c: Likewise.
34928         * tests/test-stdlib.c: Likewise.
34929         * tests/test-string.c: Likewise.
34930         * tests/test-unistd.c: Likewise.
34931         * modules/time-tests (Depends-on): Add verify.
34932         * modules/wchar-tests (Depends-on): Likewise.
34933         * tests/test-time.c: Test for NULL compliance.
34934         * tests/test-wchar.c: Likewise.
34935         * modules/locale (Depends-on): Add stddef.
34936         * modules/stdio (Depends-on): Likewise.
34937         * modules/stdlib (Depends-on): Likewise.
34938         * modules/string (Depends-on): Likewise.
34939         * modules/time (Depends-on): Likewise.
34940         * modules/unistd (Depends-on): Likewise.
34941         * modules/wchar (Depends-on): Likewise.
34942         * lib/locale.in.h (includes): Use <stddef.h> to fix NULL.
34943         * lib/stdlib.in.h (includes): Likewise.
34944         * lib/string.in.h (includes): Likewise.
34945         * lib/time.in.h (includes): Likewise.
34946         * lib/unistd.in.h (includes): Likewise.
34947         * m4/locale_h.m4 (gl_LOCALE_H): Replace locale.h if stddef.h was
34948         replaced.
34949         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
34950         * m4/stddef_h.m4: New file.
34951         * modules/stddef: Likewise.
34952         * lib/stddef.in.h: Likewise.
34953         * modules/stddef-tests: Likewise.
34954         * tests/test-stddef.c: Likewise.
34955         * MODULES.html.sh (Basic types <stddef.h>): Mention new module.
34956         * doc/posix-headers/stddef.texi (stddef.h): Document the bug.
34957         * doc/posix-headers/locale.texi (locale.h): Likewise.
34958         * doc/posix-headers/stdio.texi (stdio.h): Likewise.
34959         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
34960         * doc/posix-headers/string.texi (string.h): Likewise.
34961         * doc/posix-headers/time.texi (time.h): Likewise.
34962         * doc/posix-headers/unistd.texi (unistd.h): Likewise.
34963         * doc/posix-headers/wchar.texi (wchar.h): Likewise.
34964
34965 2009-08-14  Eric Blake  <ebb9@byu.net>
34966
34967         doc: improve git diff of texinfo files
34968         * .gitattributes: Add rule for *.texi files, with hint on how to
34969         use it.
34970         Copied from m4, and based on a report by Bruno Haible.
34971
34972 2009-08-14  Bruno Haible  <bruno@clisp.org>
34973
34974         Disable multithread support by default on Cygwin 1.5.x for real.
34975         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): Fix last commit.
34976
34977 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
34978
34979         update-copyright: much ado about intervals
34980         * build-aux/update-copyright: Implement and document
34981         UPDATE_COPYRIGHT_USE_INTERVALS to control expansion and collapse
34982         of copyright year intervals.
34983         Also, document UPDATE_COPYRIGHT_YEAR.
34984         * tests/test-update-copyright.sh: Test it.
34985
34986         update-copyright: convert 2-digit to 4-digit years
34987         * build-aux/update-copyright: Implement and document.
34988         * tests/test-update-copyright.sh: Update.
34989
34990 2009-08-14  Jim Meyering  <meyering@redhat.com>
34991
34992         test-exclude: avoid coreutils "make check" failure
34993         * tests/test-exclude.c (ARGMATCH_DIE_DECL) [ARGMATCH_DIE_DECL]: Define,
34994         just as in test-argmatch.c.
34995
34996 2009-08-13  Eric Blake  <ebb9@byu.net>
34997
34998         test-dup2: fix bad assumption
34999         * tests/test-dup2.c (main): Tolerate leaked fds from environment.
35000         Reported by Peter Breitenlohner <peb@mppmu.mpg.de>.
35001
35002         test-version-etc: fix CRLF portability issue
35003         * tests/test-version-etc.sh: Use tr, not sed, as not all sed
35004         recognize \r.
35005         * tests/test-argp-version-etc-1.sh: Likewise.
35006
35007         getopt: update client modules
35008         * modules/argp (Depends-on): Use getopt-gnu.
35009         * modules/git-merge-changelog (Depends-on): Likewise.
35010         * modules/long-options (Depends-on): Likewise.
35011         * modules/xstrtol (Depends-on): Likewise.
35012
35013 2009-08-13  Simon Josefsson  <simon@josefsson.org>
35014
35015         * tests/test-version-etc.sh: Don't fail on different
35016         project/version.  Don't fail on CRLF differences.  Rewrite to use
35017         multiple -e instead of multiple sed forks, suggested by Eric Blake
35018         <ebb9@byu.net>.
35019         * tests/test-argp-version-etc-1.sh: Likewise.
35020
35021 2009-08-13  Simon Josefsson  <simon@josefsson.org>
35022
35023         * tests/test-version-etc.sh: Don't fail on different
35024         project/version.
35025
35026 2009-08-12  Bruno Haible  <bruno@clisp.org>
35027
35028         Tests for modules 'getopt-posix', 'getopt-gnu'.
35029         * modules/getopt-posix-tests: New file.
35030         * tests/test-getopt.c: New file.
35031         * tests/test-getopt.h: New file.
35032         * tests/test-getopt_long.h: New file.
35033
35034         New modules 'getopt-posix', 'getopt-gnu'.
35035         * modules/getopt-gnu: New file, renamed from modules/getopt.
35036         * modules/getopt-posix: New file.
35037         * modules/getopt: Turn into an obsolete alias for getopt-gnu.
35038         * m4/getopt.m4 (gl_FUNC_GETOPT_POSIX, gl_FUNC_GETOPT_GNU): New macros.
35039         (gl_GETOPT): Remove macro.
35040         (gl_GETOPT_CHECK_HEADERS): Do some checks only for gl_FUNC_GETOPT_GNU.
35041         Disable the test against BSD systems that declare optreset. Test
35042         against mingw bug. Test against lack of support of optional arguments
35043         on many platforms.
35044         * doc/glibc-headers/getopt.texi: Update module name and list of
35045         relevant platforms.
35046         * doc/posix-functions/getopt.texi: Mention modules 'getopt-posix' and
35047         'getopt-gnu' and more portability problems.
35048         * NEWS: Mention the changes.
35049
35050 2009-08-12  Bruno Haible  <bruno@clisp.org>
35051
35052         Ensure that optarg etc. get declared by <unistd.h>.
35053         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Require
35054         AC_USE_SYSTEM_EXTENSIONS.
35055         * modules/getopt (Depends-on): Add 'extensions'.
35056
35057 2009-08-12  Bruno Haible  <bruno@clisp.org>
35058
35059         Avoid test link errors.
35060         * modules/pipe-filter-ii-tests (Makefile.am): Define
35061         test_pipe_filter_ii1_LDADD and test_pipe_filter_ii2_main_LDADD.
35062         * modules/pipe-filter-gi-tests (Makefile.am): Define
35063         test_pipe_filter_gi1_LDADD and test_pipe_filter_gi2_main_LDADD.
35064         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
35065
35066 2009-08-12  Bruno Haible  <bruno@clisp.org>
35067
35068         * m4/getopt.m4 (gl_REPLACE_GETOPT): New macro, was called
35069         gl_GETOPT_SUBSTITUTE before.
35070         (gl_GETOPT): Use it.
35071         * m4/argp.m4 (gl_ARGP): Update.
35072         Reported by Sergey Poznyakoff.
35073
35074         * m4/getopt.m4: Reorder macros.
35075         (gl_GETOPT): Inline gl_GETOPT_SUBSTITUTE.
35076         (gl_GETOPT_SUBSTITUTE): Remove macro.
35077
35078 2009-08-12  Sergey Poznyakoff  <gray@gnu.org.ua>
35079
35080         Minor improvement in gitlog-to-changelog
35081
35082         * build-aux/gitlog-to-changelog: New option `--format' makes
35083         output format string configurable.
35084
35085 2009-08-12  Sergey Poznyakoff  <gray@gnu.org.ua>
35086
35087         Optimize exclude: use hash tables for non-wildcard patterns.
35088
35089         * lib/exclude.c: Include hash.h and mbuiter.h
35090         (struct exclude_pattern, exclude_segment): New data types.
35091         (struct exclude): Rewrite.
35092         (fnmatch_pattern_has_wildcards): New function.
35093         (new_exclude_segment, free_exclude_segment): New functions.
35094         (excluded_file_pattern_p, excluded_file_name_p): New functions.
35095         (excluded_file_name, add_exclude): Rewrite using new struct exclude.
35096         * lib/exclude.h (is_fnmatch_pattern): New prototype.
35097         * modules/exclude: Depend on hash and mbuiter.
35098
35099         * modules/exclude-tests: New file.
35100         * tests/test-exclude.c: New file.
35101         * tests/test-exclude1.sh: New file.
35102         * tests/test-exclude2.sh: New file.
35103         * tests/test-exclude3.sh: New file.
35104         * tests/test-exclude4.sh: New file.
35105         * tests/test-exclude5.sh: New file.
35106         * tests/test-exclude6.sh: New file.
35107         * tests/test-exclude7.sh: New file.
35108
35109 2009-08-12  Bruno Haible  <bruno@clisp.org>
35110
35111         Ensure that getopt() gets declared by <unistd.h>.
35112         * lib/unistd.in.h: Conditionally include getopt.h.
35113         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): Require gl_UNISTD_H_DEFAULTS.
35114         Set GNULIB_UNISTD_H_GETOPT.
35115         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
35116         GNULIB_UNISTD_H_GETOPT.
35117         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_GETOPT.
35118
35119 2009-08-12  Bruno Haible  <bruno@clisp.org>
35120
35121         Clarify logic.
35122         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS, gl_GETOPT_IFELSE): Use
35123         gl_replace_getopt instead of GETOPT_H.
35124
35125 2009-08-12  Bruno Haible  <bruno@clisp.org>
35126
35127         * m4/getopt.m4: Add comments.
35128
35129 2009-08-12  Bruno Haible  <bruno@clisp.org>
35130
35131         Disable multithread support by default on Cygwin 1.5.x.
35132         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): On Cygwin 1.5.x and older,
35133         set gl_use_threads=no if not specified otherwise.
35134
35135 2009-08-11  Bruno Haible  <bruno@clisp.org>
35136
35137         Avoid compilation error on NetBSD 5.0.
35138         * tests/test-locale.c: Write sizeof (NULL) instead of sizeof NULL.
35139         * tests/test-stdio.c: Likewise.
35140         * tests/test-stdlib.c: Likewise.
35141         * tests/test-string.c: Likewise.
35142         * tests/test-unistd.c: Likewise.
35143         Reported by Greg Troxel <gdt@ir.bbn.com>
35144         at <https://savannah.gnu.org/support/?106973>.
35145
35146 2009-08-11  Bruno Haible  <bruno@clisp.org>
35147
35148         * modules/dup2-tests (Depends-on): Remove close.
35149
35150         Undo 2009-07-19 commit.
35151         * modules/acl-tests (Depends-on): Remove close.
35152         * modules/binary-io-tests (Depends-on): Likewise.
35153         * modules/closein-tests (Depends-on): Likewise.
35154         * modules/flock-tests (Depends-on): Likewise.
35155         * modules/fsync-tests (Depends-on): Likewise.
35156         * modules/lseek-tests (Depends-on): Likewise.
35157         * modules/pipe-tests (Depends-on): Likewise.
35158         * modules/posix_spawn-tests (Depends-on): Likewise.
35159         * modules/posix_spawnp-tests (Depends-on): Likewise.
35160         * modules/stat-time-tests (Depends-on): Likewise.
35161         * modules/yesno-tests (Depends-on): Likewise.
35162
35163 2009-08-10  Bruno Haible  <bruno@clisp.org>
35164
35165         * lib/vasnprintf.c (DCHAR_SET): Undefine at the end.
35166
35167 2009-08-10  Bruno Haible  <bruno@clisp.org>
35168
35169         Fix a gcc warning.
35170         * lib/write.c (rpl_write): Cast result of _get_osfhandle.
35171
35172 2009-08-10  Bruno Haible  <bruno@clisp.org>
35173
35174         Don't optimize AC_LIBOBJs, as they may appear in different contexts.
35175         * m4/close.m4 (gl_REPLACE_CLOSE): Execute AC_LIBOBJ unconditionally,
35176         not only the first time.
35177         * m4/fclose.m4 (gl_REPLACE_FCLOSE): Likewise.
35178         * m4/open.m4 (gl_REPLACE_OPEN): Likewise.
35179         * m4/strstr.m4 (gl_FUNC_STRSTR): Execute AC_LIBOBJ when REPLACE_STRSTR
35180         is 1, not only the the first time.
35181
35182 2009-08-10  Bruno Haible  <bruno@clisp.org>
35183
35184         Make it possible to use module 'gethostname' without module 'close'.
35185         * lib/unistd.in.h (close): Evoke a link error only if
35186         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS is set.
35187         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
35188         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
35189         * modules/unistd (Makefile.am): Substitute
35190         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
35191         * lib/sys_ioctl.in.h (ioctl): Evoke a link error only if
35192         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS is set.
35193         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H_DEFAULTS): Initialize
35194         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
35195         * modules/sys_ioctl (Makefile.am): Substitute
35196         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
35197         * modules/socket (configure.ac): On native Windows, set
35198         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS and
35199         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
35200         Reported by Sam Steingold <sds@gnu.org>.
35201
35202 2009-08-10  Bruno Haible  <bruno@clisp.org>
35203
35204         * m4/close.m4 (gl_FUNC_CLOSE): Add comment.
35205         * modules/ioctl (configure.ac): Likewise.
35206
35207 2009-08-10  Bruno Haible  <bruno@clisp.org>
35208
35209         Avoid collision between gnulib wrapper and libintl wrapper.
35210         * lib/stdio-write.c (printf): Don't define if a printf wrapper is
35211         already defined in intl/printf.c.
35212         (vprintf): Test REPLACE_VPRINTF_POSIX, not REPLACE_VFPRINTF_POSIX.
35213         (vfprintf): Test REPLACE_VFPRINTF_POSIX, not REPLACE_VPRINTF_POSIX.
35214
35215 2009-08-09  Bruno Haible  <bruno@clisp.org>
35216
35217         Make <sys/select.h> really self-contained, also on Solaris 10.
35218         * lib/sys_select.in.h: Include <string.h>.
35219         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Test also against
35220         Solaris 10 problem.
35221         * tests/test-sys_select.c (main): Add check that FD_ZERO can be used.
35222         * doc/posix-headers/sys_select.texi: Mention the Solaris 10 problem.
35223         Reported by Jim Meyering.
35224
35225 2009-08-09  Bruno Haible  <bruno@clisp.org>
35226
35227         Avoid warnings from 'aclocal' that are due to a use of macro name
35228         AM_XGETTEXT_OPTION that is not defined in automake.
35229         * modules/argp (configure.ac): Hide use of AM_XGETTEXT_OPTION from
35230         automake.
35231         * modules/error (configure.ac): Likewise.
35232         * modules/propername (configure.ac): Likewise.
35233         * modules/vasprintf (configure.ac): Likewise.
35234         * modules/verror (configure.ac): Likewise.
35235         * modules/xprintf (configure.ac): Likewise.
35236         * modules/xvasprintf (configure.ac): Likewise.
35237
35238 2009-08-08  Bruno Haible  <bruno@clisp.org>
35239
35240         Avoid compilation error in C++ mode.
35241         * lib/gettimeofday.c (rpl_gettimeofday): Cast timezone argument.
35242         Reported by Sam Steingold <sds@gnu.org>.
35243
35244 2009-08-08  Bruno Haible  <bruno@clisp.org>
35245
35246         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Define HOST_NAME_MAX also
35247         for the various Unix platforms.
35248         * doc/posix-headers/limits.texi: Update platforms list regarding
35249         HOST_NAME_MAX.
35250         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
35251
35252 2009-08-07  Jim Meyering  <meyering@redhat.com>
35253
35254         selinux-at: fix typo in a comment
35255         * lib/selinux-at.h: s/getfileconat/getfilecon/ in a comment.
35256         Spotted by Paolo Bonzini.
35257
35258         selinux-at: remove redundant m4 code, add documentation
35259         * modules/selinux-at (configure.ac): Remove redundant code.
35260         LIB_SELINUX is already set via the dependent module, selinux-h.
35261         (Include): Add quotes around selinux-at.h.
35262         * lib/selinux-at.h: Add documentation.
35263         Reported by Bruno Haible in
35264         http://marc.info/?l=gnulib-bug&m=124958988300749
35265
35266 2009-08-07  Bruno Haible  <bruno@clisp.org>
35267
35268         Avoid link error on MacOS X 10.3 and 10.4.
35269         * lib/argp-ba.c (argp_program_bug_address): Explicitly zero-initialize
35270         on non-ELF systems.
35271         * lib/argp-pv.c (argp_program_version): Likewise.
35272         Reported by Simon Josefsson.
35273
35274 2009-08-07  Simon Josefsson  <simon@josefsson.org>
35275
35276         * tests/test-version-etc.sh: Use $EXEEXT.
35277
35278 2009-08-06  Joel E. Denny  <jdenny@clemson.edu>
35279
35280         update-copyright: update documentation to point to maint.mk
35281         * build-aux/update-copyright: Here.
35282
35283 2009-08-06  Jim Meyering  <meyering@redhat.com>
35284
35285         maint.mk: support update-copyright-local
35286         * top/maint.mk (update-copyright-local): Define place-holder.
35287         (update-copyright): Depend on $(update-copyright-local).
35288
35289 2009-08-06  Jim Meyering  <meyering@redhat.com>
35290
35291         selinux-at: new module
35292         Initially written for coreutils, this module will soon be
35293         used by findutils, too.
35294         * MODULES.html.sh [Misc]: Add selinux-at.
35295         * lib/selinux-at.h: New file, from coreutils.
35296         * lib/selinux-at.c: Likewise.
35297         * modules/selinux-at: Likewise.
35298         (License): Change from LGPL to GPL, since it depends
35299         on the GPL'd openat module.
35300
35301         doc: update README
35302         * README: Remove references to cogito.
35303         Remove cvs-repo-updating instructions from 2007.
35304         Don't imply that CVS is better if you have limited disk space.
35305
35306 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
35307
35308         update-copyright: support C-style comments
35309         * build-aux/update-copyright: Implement and document.
35310         * tests/test-update-copyright.sh: Test.
35311
35312 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
35313
35314         update-copyright: support omitted "(C)"
35315         * build-aux/update-copyright: Implement and document.  Also,
35316         allow variable whitespace before "(C)".
35317         * tests/test-update-copyright.sh: Test.
35318
35319 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
35320
35321         update-copyright: don't trip on non-FSF copyright statements
35322         * build-aux/update-copyright: Fix so that the first correctly
35323         formatted FSF copyright statement is recognized no matter what
35324         appears before it.  Update documentation.
35325         * tests/test-update-copyright.sh: Test that.
35326
35327 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
35328
35329         update-copyright: clean up code a little
35330         * build-aux/update-copyright: Append "_re" to the name of any
35331         variable holding a regular expression.
35332         Replace "old" and "new" with "stmt" in variable names.
35333         Do not accept 2-digit UPDATE_COPYRIGHT_YEAR, which was not
35334         handled correctly.
35335         Format code more consistently.
35336
35337 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
35338
35339         update-copyright-tests: improve portability
35340         * tests/test-update-copyright.sh: Use cmp if diff cannot handle
35341         -u or /dev/null.  Suggested by Jim Meyering and Eric Blake.
35342
35343 2009-08-03  Joel E. Denny  <jdenny@clemson.edu>
35344
35345         update-copyright: support @copyright{} and &copy;
35346         * build-aux/update-copyright: Implement and document.
35347         * tests/test-update-copyright.sh: Test.
35348
35349 2009-08-04  Jim Meyering  <meyering@redhat.com>
35350
35351         update-copyright-tests: correctly test EOL=\r\n handling
35352         * tests/test-update-copyright.sh: Put \r at the end of some lines
35353         for the dos-eol tests.  Based on a patch by Joel E. Denny.
35354
35355         maint.mk: make update-copyright exclusion list more configurable
35356         * top/maint.mk (update-copyright): Default to excluding COPYING,
35357         but allow an override, in case someone does want to update that file.
35358
35359         maint.mk: don't update copyright date in COPYING
35360         * top/maint.mk (update-copyright): Exclude COPYING.
35361
35362         maint.mk: add a copyright-updating rule
35363         * top/maint.mk (update-copyright): New rule.
35364         Derived from coreutils/Makefile.am.
35365
35366         update-copyright: rename some variables
35367         * build-aux/update-copyright: Rename a few variables for clarity.
35368         Tweak syntax.  List Joel E. Denny as coauthor.
35369
35370 2009-08-03  Joel E. Denny  <jdenny@clemson.edu>
35371
35372         update-copyright: fix bug for 2-digit last year and add tests
35373         * build-aux/update-copyright: Fix bug.
35374         Use UPDATE_COPYRIGHT_YEAR from environment as current year if
35375         specified.
35376         * modules/update-copyright-tests: New
35377         * tests/test-update-copyright.sh: New.
35378
35379 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
35380
35381         update-copyright: handle leading tabs in line prefix
35382         * build-aux/update-copyright: Count leading tabs as 8 spaces
35383         when computing margin.  This helps with the formatting of
35384         ChangeLogs, for example.
35385         Fix documentation a little.
35386
35387 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
35388
35389         update-copyright: support EOL=\r\n
35390         * build-aux/update-copyright: Implement that.
35391
35392 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
35393
35394         update-copyright: automatically format copyright statements
35395         * build-aux/update-copyright: Implement that.
35396         Also, be a little more predictable and safer by always failing
35397         when the full copyright format is not perfectly recognized as an
35398         unbroken whole.  Discussed at
35399         <http://lists.gnu.org/archive/html/bug-gnulib/2009-07/msg00131.html>.
35400         Rewrite documentation.
35401
35402 2009-08-03  Bruno Haible  <bruno@clisp.org>
35403
35404         * m4/iconv.m4 (AM_ICONV): Fix displayed message with autoconf-2.64.
35405
35406 2009-08-02  Bruno Haible  <bruno@clisp.org>
35407
35408         Tests for module 'uname'.
35409         * modules/uname-tests: New file.
35410         * tests/test-uname.c: New file.
35411
35412         New module 'uname'.
35413         * lib/uname.c: New file.
35414         * m4/uname.m4: New file.
35415         * modules/uname: New file.
35416         * doc/posix-functions/uname.texi: Mention the new module.
35417
35418 2009-08-02  Bruno Haible  <bruno@clisp.org>
35419
35420         Tests for module 'sys_utsname'.
35421         * modules/sys_utsname-tests: New file.
35422         * tests/test-sys_utsname.c: New file.
35423
35424         New module 'sys_utsname'.
35425         * lib/sys_utsname.in.h: New file, based on glibc's <sys/utsname.h>.
35426         * m4/sys_utsname_h.m4: New file.
35427         * modules/sys_utsname: New file.
35428         * doc/posix-headers/sys_utsname.texi: Mention the new module.
35429
35430 2009-08-02  Bruno Haible  <bruno@clisp.org>
35431
35432         Implicitly initialize the sockets library.
35433         * lib/gethostname.c: Include sockets.h.
35434         (rpl_gethostname): Invoke gl_sockets_startup.
35435         * lib/socket.c: Include sockets.h.
35436         (rpl_socket): Invoke gl_sockets_startup.
35437         * modules/gethostname (Depends-on): Add sockets.
35438         * modules/socket (Depends-on): Likewise.
35439         * tests/test-poll.c: Don't include sockets.h.
35440         (main): Don't invoke gl_sockets_startup.
35441         * tests/test-select.c: Don't include sockets.h.
35442         (main): Don't invoke gl_sockets_startup.
35443
35444 2009-08-02  Bruno Haible  <bruno@clisp.org>
35445
35446         Allow multiple calls to gl_sockets_startup.
35447         * lib/sockets.c (initialized_sockets_version): New variable.
35448         (gl_sockets_startup): Do nothing if already called for this or a higher
35449         version.
35450         (gl_sockets_cleanup): Reset initialized_sockets_version.
35451
35452 2009-08-03  Simon Josefsson  <simon@josefsson.org>
35453
35454         * tests/test-argp-version-etc-1.sh: Use EXEEXT.  Don't fail on
35455         different project/version.
35456
35457 2009-08-02  Paolo Bonzini  <bonzini@gnu.org>
35458             Bruno Haible  <bruno@clisp.org>
35459
35460         Tests for module 'pipe-filter-gi'.
35461         * modules/pipe-filter-gi-tests: New file.
35462         * tests/test-pipe-filter-gi1.sh: New file.
35463         * tests/test-pipe-filter-gi1.c: New file.
35464         * tests/test-pipe-filter-gi2.sh: New file.
35465         * tests/test-pipe-filter-gi2-main.c: New file.
35466         * tests/test-pipe-filter-gi2-child.c: New file.
35467
35468         New module 'pipe-filter-gi'.
35469         * lib/pipe-filter-gi.c: New file.
35470         * modules/pipe-filter-gi: New file.
35471
35472 2009-08-02  Bruno Haible  <bruno@clisp.org>
35473             Paolo Bonzini  <bonzini@gnu.org>
35474
35475         Tests for module 'pipe-filter-ii'.
35476         * modules/pipe-filter-ii-tests: New file.
35477         * tests/test-pipe-filter-ii1.sh: New file.
35478         * tests/test-pipe-filter-ii1.c: New file.
35479         * tests/test-pipe-filter-ii2.sh: New file.
35480         * tests/test-pipe-filter-ii2-main.c: New file.
35481         * tests/test-pipe-filter-ii2-child.c: New file.
35482
35483         New module 'pipe-filter-ii'.
35484         * lib/pipe-filter.h: New file.
35485         * lib/pipe-filter-ii.c: New file.
35486         * lib/pipe-filter-aux.h: New file.
35487         * modules/pipe-filter-ii: New file.
35488
35489 2009-08-02  Simon Josefsson  <simon@josefsson.org>
35490
35491         * lib/gc-libgcrypt.c: Change copyright to FSF.
35492         * lib/gc-gnulib.c: Likewise.
35493
35494 2009-08-02  Martin Lambers  <marlam@marlam.de>  (tiny change)
35495
35496         * lib/gethostname.c: Include limits.h.
35497
35498 2009-08-02  Simon Josefsson  <simon@josefsson.org>
35499             Bruno Haible  <bruno@clisp.org>
35500
35501         Ensure HOST_NAME_MAX as part of the gethostname module.
35502         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): On native Windows platforms,
35503         define also HOST_NAME_MAX.
35504         * tests/test-gethostname.c: Include <limits.h>.
35505         (main): Check also HOST_NAME_MAX.
35506         * doc/posix-headers/limits.texi: Document the mingw problem.
35507
35508 2009-08-02  Bruno Haible  <bruno@clisp.org>
35509
35510         * lib/gethostname.c (gethostname): Fix handling of large len argument.
35511         Add comments.
35512
35513 2009-03-31  Simon Josefsson  <simon@josefsson.org>
35514
35515         * lib/gethostname.c: Add Windows wrapper.
35516         * m4/gethostname.m4: Look for gethostname in -lws2_32.
35517         * modules/gethostname: Depend on sys_socket & errno, for also
35518         added lib/w32sock.h.  Add GETHOSTNAME_LIB link directive.
35519         * modules/gethostname-tests: Link to @GETHOSTNAME_LIB@.
35520
35521 2009-07-31  Jim Meyering  <meyering@redhat.com>
35522
35523         getloadavg: fix symbol name in comment
35524         * lib/getloadavg.c: Correct a typo I introduced when adding
35525         comments to Matt's change: s/NLIST_POINTER/N_NAME_POINTER/.
35526         Matt Kraai spotted the problem.
35527
35528 2009-07-29  Matt Kraai  <mkraai@beckman.com>
35529
35530         getloadavg: check whether n_name is a pointer, for QNX 6.4.1
35531         * lib/getloadavg.c (getloadavg): Use the strcpy-into-nlist.n_name
35532         code also if ! defined N_NAME_POINTER.
35533         * m4/getloadavg.m4 (gl_GETLOADAVG): Add a link-test for N_NAME_POINTER.
35534         This is required on QNX 6.4.1, where /usr/include/nlist.h exists,
35535         but the n_name member is a 12-byte array.
35536
35537 2009-07-29  Joel E. Denny  <jdenny@clemson.edu>
35538
35539         update-copyright: generalize comment handling
35540         * build-aux/update-copyright: Handle copyright statements
35541         within more comment styles.
35542         Document usage.
35543         Report any file with an external copyright holder or parse failure.
35544
35545 2009-07-29  Jim Meyering  <meyering@redhat.com>
35546
35547         mktime: correct setting of REPLACE_MKTIME
35548         * m4/mktime.m4 (gl_FUNC_MKTIME): Set REPLACE_MKTIME=0, when required.
35549
35550         update-copyright: new module
35551         * modules/update-copyright: New file.
35552         * build-aux/update-copyright: New file.
35553         * MODULES.html.sh (maint+release support): Add update-copyright.
35554
35555 2009-07-27  Bruno Haible  <bruno@clisp.org>
35556
35557         Fix compilation error when <ctime> is used and mktime is replaced.
35558         * lib/time.in.h (mktime): New declaration.
35559         * m4/mktime.m4 (gl_FUNC_MKTIME): Require gl_HEADER_TIME_H_DEFAULTS. Set
35560         REPLACE_MKTIME instead of defining mktime in config.h.
35561         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize REPLACE_MKTIME.
35562         * modules/time (Makefile.am): Substitute REPLACE_MKTIME.
35563         Reported by Ross McFarland <rwmcfa1@neces.com>.
35564
35565 2009-07-27  Bruno Haible  <bruno@clisp.org>
35566
35567         * lib/math.in.h (cosl, logl, sinl): Undefine before declaring it.
35568         Reported by Matt Kraai <mkraai@beckman.com>.
35569
35570 2009-07-25  Jim Meyering  <meyering@redhat.com>
35571
35572         maint.mk: avoid warnings about missing files
35573         * top/maint.mk (PREV_VERSION): Suppress stderr, to hide a
35574         diagnostic when .prev-version does not exist.
35575         (_cfg_mk): Define, so it can be empty when cfg.mk does not exist.
35576         (syntax-check-rules): Use $(_cfg_mk) to avoid a diagnostic about
35577         nonexistent cfg.mk.
35578         Suggestions from Simon Josefsson.
35579
35580 2009-07-25  Bruno Haible  <bruno@clisp.org>
35581
35582         * lib/math.in.h (cosl, logl, sinl): Don't declare if they are already
35583         defined as macros. Needed on QNX 6.4.1.
35584         Reported by Matt Kraai <mkraai@beckman.com>.
35585
35586 2009-07-23  Jim Meyering  <meyering@redhat.com>
35587
35588         maint.mk: invoke "make dist" with a working value of XZ_OPT
35589         * top/maint.mk (vc-dist): Use no "-" in the value of XZ_OPT.
35590
35591 2009-07-22  Matt Kraai  <mkraai@beckman.com>  (tiny change)
35592
35593         Make fseeko.c compile on QNX.
35594         * lib/fseeko.c (rpl_fseeko): Use the numerical value of _MWRITE.
35595
35596 2009-07-22  Peter Simons  <simons@cryp.to>
35597
35598         C++: wrap md2,md5,sha1,etc. function declarations in extern "C" scope
35599         * lib/md2.h [__cplusplus]: Wrap declarations in extern "C" scope.
35600         * lib/md4.h: Likewise.
35601         * lib/md5.h: Likewise.
35602         * lib/sha1.h: Likewise.
35603         * lib/sha256.h: Likewise.
35604         * lib/sha512.h: Likewise.
35605
35606         tests-sha1: don't assign literal string to 'char *' variable
35607         * tests/test-sha1.c (main): Declare locals with "const" to match
35608         attributes of the right hand side.
35609
35610 2009-07-21  Eric Blake  <ebb9@byu.net>
35611
35612         dup2: fix more mingw problems
35613         * lib/dup2.c (rpl_dup2) [_WIN32]: Avoid hanging when duplicating
35614         fd to itself.
35615         * doc/posix-functions/dup2.texi (dup2): Document the bug.
35616         * lib/unistd.in.h (dup2) [REPLACE_FCHDIR]: Avoid name collision.
35617         * lib/fchdir.c (dup2): Manage preprocessor macros correctly.
35618         (rpl_dup2_fchdir): Rename from rpl_dup2, and let dup2 module take
35619         care of mingw bugs.
35620
35621 2009-07-21  Jim Meyering  <meyering@redhat.com>
35622
35623         vc-list-files: avoid failure when /bin/sh is dash
35624         * build-aux/vc-list-files: Avoid a shell portability problem with dash.
35625         On some Debian based systems, /bin/sh is a symlink to dash, and running
35626         this command would omit the "/" following each 'tests' prefix:
35627           dash -x build-aux/vc-list-files -C . tests
35628         That is because bash and dash work differently:
35629           $ for i in bash dash; do $i -c 'a=odd; a=ok b=$a; echo '$i' $b'; done
35630           bash ok
35631           dash odd
35632
35633 2009-07-21  Eric Blake  <ebb9@byu.net>
35634
35635         dup2-tests: test previous patch
35636         * modules/dup2-tests: New file.
35637         * tests/test-dup2.c: Likewise.
35638         * tests/test-open.c (main): Avoid unspecified behavior.
35639         * tests/test-pipe.c (child_main): Use dup2 semantics to simplify
35640         test.
35641
35642         dup2: work around mingw and cygwin 1.5 bug
35643         * m4/dup2.m4 (gl_FUNC_DUP2): Detect mingw bug.
35644         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
35645         * modules/unistd (Makefile.am): Substitute it.
35646         * lib/unistd.in.h (dup2): Declare the replacement.
35647         * lib/dup2.c (dup2) [REPLACE_DUP2]: Implement it.
35648         * doc/posix-functions/dup2.texi (dup2): Document the bugs.
35649         * lib/fchdir.c (rpl_dup2): Don't collide with mingw replacement.
35650         * modules/execute (Depends-on): Add dup2.
35651         * modules/fseterr (Depends-on): Likewise.
35652         * modules/pipe (Depends-on): Likewise.
35653         * modules/posix_spawn-internal (Depends-on): Likewise.
35654
35655 2009-07-21  Bruno Haible  <bruno@clisp.org>
35656
35657         * modules/.gitattributes: New file.
35658
35659 2009-07-20  Bruno Haible  <bruno@clisp.org>
35660
35661         * tests/test-pipe.c (BACKUP_STDERR_FILENO): New macro.
35662         (main): Use it.
35663
35664 2009-07-20  Eric Blake  <ebb9@byu.net>
35665
35666         test-pipe: make a bit more robust.
35667         * tests/test-pipe.c (myerr): Allow error messages regardless of
35668         what we do to stderr.
35669         (test_pipe): Rearrange to avoid deadlock.
35670         (child_main): Try a larger read, to ensure we avoided deadlock.
35671         * lib/pipe.c (create_pipe) [_WIN32]: Fix comment.
35672         * lib/pipe.h (create_pipe_bidi): Document potential for deadlock
35673         if misused.
35674
35675 2009-07-19  Jim Meyering  <meyering@redhat.com>
35676
35677         fts: avoid false-positive cycle-detection
35678         * lib/fts.c (fts_read): Reinitialize cycle-detection data structures
35679         for each new command line argument.
35680
35681 2009-07-19  Bruno Haible  <bruno@clisp.org>
35682
35683         Fix build error on mingw with the modules sys_select and unistd.
35684         * modules/acl-tests (Depends-on): Add close.
35685         * modules/binary-io-tests (Depends-on): Likewise.
35686         * modules/closein-tests (Depends-on): Likewise.
35687         * modules/flock-tests (Depends-on): Likewise.
35688         * modules/fsync-tests (Depends-on): Likewise.
35689         * modules/lseek-tests (Depends-on): Likewise.
35690         * modules/pipe-tests (Depends-on): Likewise.
35691         * modules/posix_spawn-tests (Depends-on): Likewise.
35692         * modules/posix_spawnp-tests (Depends-on): Likewise.
35693         * modules/stat-time-tests (Depends-on): Likewise.
35694         * modules/yesno-tests (Depends-on): Likewise.
35695
35696 2009-07-19  Bruno Haible  <bruno@clisp.org>
35697
35698         Unify conditionals.
35699         * lib/pipe.h: Detect native Win32 by looking at _WIN32 and __WIN32__
35700         macros, not at the compiler macros.
35701         * lib/pipe.c: Likewise.
35702         * lib/execute.c: Likewise.
35703         * lib/spawni.c: Likewise.
35704
35705 2009-07-19  Bruno Haible  <bruno@clisp.org>
35706
35707         Fix handling of closed stdin/stdout/stderr on mingw.
35708         * lib/w32spawn.h: Include unistd.h.
35709         (dup_noinherit): Return -1 if the old handle is invalid. Allocate new
35710         file descriptor with O_NOINHERIT flag.
35711         (fd_safer_noinherit): New function, based on fd-safer.c.
35712         (dup_safer_noinherit): New function, based on dup-safer.c.
35713         (undup_safer_noinherit): New function.
35714         * lib/execute.c (execute) [WIN32]: Use dup_safer_noinherit instead of
35715         dup_noinherit. Use undup_safer_noinherit instead of dup2 and close.
35716         * lib/pipe.c (create_pipe) [WIN32]: Likewise. Use fd_safer_noinherit
35717         instead of fd_safer.
35718         * tests/test-pipe.c: Include <windows.h>.
35719         (child_main) [WIN32]: Test the handle of STDERR_FILENO, not its close()
35720         result.
35721
35722         * tests/test-pipe.c (child_main, parent_main): New functions, extracted
35723         from main.
35724         (test_pipe): Pass an extra argument for disambiguation.
35725         (main): Invoke parent_main or child_main.
35726
35727         * tests/test-pipe.c (test_pipe): Pass slave_process = true argument
35728         consistently.
35729
35730 2009-07-18  Eric Blake  <ebb9@byu.net>
35731
35732         test-pipe: fix mingw build
35733         * tests/test-pipe.c (main): Avoid fcntl on mingw.
35734
35735 2009-07-18  Bruno Haible  <bruno@clisp.org>
35736
35737         * modules/pipe-tests (Makefile.am): Fix typo.
35738
35739 2009-07-18  Eric Blake  <ebb9@byu.net>
35740
35741         error: fix mingw build
35742         * lib/error.c (error, error_at_line): Avoid fcntl on mingw.
35743         Reported by Bruno Haible.
35744
35745         error: avoid undefined use of stdout
35746         * lib/error.c (error, error_at_line): Check that fd 1 is open
35747         before flushing stdout.  Avoids a crash on cygwin when libsigsegv
35748         is handling faults and the close_stdout module wants to report the
35749         detection of closed stdout as an error.
35750
35751 2009-07-17  Eric Blake  <ebb9@byu.net>
35752
35753         pipe: be robust in face of closed fds
35754         * lib/pipe.c (create_pipe): Closed standard descriptors in parent
35755         should cause child to misbehave.
35756         * modules/pipe-tests: New module.
35757         * tests/test-pipe.c: New file.
35758         * tests/test-pipe.sh: New file.
35759         Reported by Akim Demaille.
35760
35761 2009-07-14  Bruno Haible  <bruno@clisp.org>
35762
35763         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Guess it works on glibc systems.
35764         Reported by anonymous kc.
35765
35766 2009-07-07  Jim Meyering  <meyering@redhat.com>
35767
35768         maint.mk: don't look for translatable strings in *.m4 or *.mk
35769         * top/maint.mk (sc_po_check): Skip *.m4 and *.mk files,
35770         when searching for translatable strings.
35771
35772 2009-07-05  Jim Meyering  <meyering@redhat.com>
35773
35774         remove superfluous parentheses in STREQ definition
35775         * tests/test-argv-iter.c (STREQ): Remove redundant parentheses.
35776         * lib/getugroups.c (STREQ): Likewise.
35777         * lib/fnmatch.c (STREQ): Likewise.
35778         Spotted by Bruno Haible.
35779
35780 2009-07-04  Jim Meyering  <meyering@redhat.com>
35781
35782         argv-iter: new module
35783         * MODULES.html.sh: Add argv-iter.
35784         * lib/argv-iter.c, lib/argv-iter.h: New files.
35785         * modules/argv-iter: New file.
35786         * modules/argv-iter-tests: New file.
35787         * tests/test-argv-iter.c: Test it.
35788
35789 2009-07-04  Bruno Haible  <bruno@clisp.org>
35790
35791         Fix assertion.
35792         * lib/git-merge-changelog.c (compute_mapping): In the case where file1
35793         contains more exact copies of a given entry than file2, leave the extra
35794         copies unpaired rather than aborting.
35795         Reported by Eric Blake.
35796
35797 2009-07-02  Bruno Haible  <bruno@clisp.org>
35798
35799         Speedup git-merge-changelog for git cherry-pick.
35800         * lib/git-merge-changelog.c (struct entries_mapping): New type.
35801         (entries_mapping_get): New function, extracted from compute_mapping.
35802         (entries_mapping_reverse_get): New function.
35803         (compute_mapping): Add a 'full' argument. Return the result in a
35804         'struct entries_mapping'.
35805         (main): Update. Access the mappings through entries_mapping_get.
35806         Reported by Eric Blake.
35807
35808 2009-07-02  Bruno Haible  <bruno@clisp.org>
35809
35810         * lib/git-merge-changelog.c (compute_mapping): Fix determination of
35811         best_i.
35812
35813 2009-07-02  Bruno Haible  <bruno@clisp.org>
35814
35815         Speed up approximate search for matching ChangeLog entries.
35816         * lib/git-merge-changelog.c (entry_fstrcmp): Add a lower_bound
35817         argument. Call fstrcmp_bounded instead of fstrcmp.
35818         (compute_mapping, try_split_merged_entry, main): Update callers.
35819
35820 2009-07-02  Bruno Haible  <bruno@clisp.org>
35821
35822         * lib/git-merge-changelog.c (main): Add comment about git cherry-pick.
35823
35824 2009-06-30  Bruno Haible  <bruno@clisp.org>
35825
35826         Reduce the number of uc_is_cased calls.
35827         * lib/unicase.h (casing_suffix_context_t): Add
35828         'first_char_except_ignorable' field.
35829         * lib/unicase/context.h (SCC_FINAL_SIGMA_MASK): Remove macro.
35830         (SCC_MORE_ABOVE_MASK, SCC_BEFORE_DOT_MASK): Update.
35831         * lib/unicase/empty-suffix-context.c (unicase_empty_suffix_context):
35832         Update initializer.
35833         * lib/unicase/u-casemap.h (FUNC): Don't invoke uc_is_cased on
35834         case-ignorable characters.
35835         * lib/unicase/u-ct-totitle.h (FUNC): Likewise.
35836         * lib/unicase/u-suffix-context.h (FUNC2): Don't call uc_is_cased here.
35837         * modules/unicase/u8-suffix-context (Depends-on): Remove unicase/cased.
35838         * modules/unicase/u16-suffix-context (Depends-on): Likewise.
35839         * modules/unicase/u32-suffix-context (Depends-on): Likewise.
35840
35841 2009-06-30  Bruno Haible  <bruno@clisp.org>
35842
35843         Tests for module 'unicase/ignorable'.
35844         * modules/unicase/ignorable-tests: New file.
35845         * tests/unicase/test-ignorable.c: New file, generated by
35846         gen-uni-tables.
35847
35848         Tests for module 'unicase/cased'.
35849         * modules/unicase/cased-tests: New file.
35850         * tests/unicase/test-cased.c: New file, generated by gen-uni-tables.
35851         * tests/unicase/test-predicate-part1.h: New file, derived from
35852         tests/unictype/test-predicate-part1.h.
35853         * tests/unicase/test-predicate-part2.h: New file, same as
35854         tests/unictype/test-predicate-part2.h.
35855
35856         Fix evaluation of "Before C" condition of FINAL_SIGMA.
35857         * lib/gen-uni-tables.c (is_cased, is_case_ignorable): New functions.
35858         (output_casing_properties): New function.
35859         (main): Call it.
35860         * lib/unicase/cased.h: New file, generated by gen-uni-tables.
35861         * lib/unicase/cased.c: Include unictype/bitmap.h.
35862         (uc_is_cased): Define through a bitmap lookup.
35863         * lib/unicase/ignorable.h: New file, generated by gen-uni-tables.
35864         * lib/unicase/ignorable.c: Include unictype/bitmap.h.
35865         (uc_is_case_ignorable): Define through a bitmap lookup.
35866         * modules/unicase/cased (Files): Add lib/unicase/cased.h,
35867         lib/unictype/bitmap.h.
35868         (Depends-on): Add inline. Clean up.
35869         * modules/unicase/ignorable (Files): Add lib/unicase/ignorable.h,
35870         lib/unictype/bitmap.h.
35871         (Depends-on): Add inline. Clean up.
35872         * tests/unicase/test-u8-tolower.c (main): Add more tests of FINAL_SIGMA
35873         recognition.
35874         * tests/unicase/test-u16-tolower.c (main): Likewise.
35875         * tests/unicase/test-u32-tolower.c (main): Likewise.
35876
35877 2009-06-30  Bruno Haible  <bruno@clisp.org>
35878
35879         * lib/unicase/u8-casemap.c: Don't include uniwbrk.h.
35880         * lib/unicase/u16-casemap.c: Likewise.
35881         * lib/unicase/u32-casemap.c: Likewise.
35882
35883 2009-06-29  Bruno Haible  <bruno@clisp.org>
35884
35885         Define u32_casefold as a wrapper around u32_ct_casefold.
35886         * lib/unicase/u32-casefold.c: Update.
35887         * modules/unicase/u32-casefold (Depends-on): Add
35888         unicase/u32-ct-casefold, unicase/empty-prefix-context,
35889         unicase/empty-suffix-context. Clean up.
35890
35891         Define u16_casefold as a wrapper around u16_ct_casefold.
35892         * lib/unicase/u16-casefold.c: Update.
35893         * modules/unicase/u16-casefold (Depends-on): Add
35894         unicase/u16-ct-casefold, unicase/empty-prefix-context,
35895         unicase/empty-suffix-context. Clean up.
35896
35897         Define u8_casefold as a wrapper around u8_ct_casefold.
35898         * lib/unicase/u-casefold.h (FUNC): Delegate to U_CT_CASEFOLD.
35899         * lib/unicase/u8-casefold.c: Update.
35900         * modules/unicase/u8-casefold (Depends-on): Add unicase/u8-ct-casefold,
35901         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
35902
35903         Define u32_totitle as a wrapper around u32_ct_totitle.
35904         * lib/unicase/u32-totitle.c: Update.
35905         * modules/unicase/u32-totitle (Depends-on): Add unicase/u32-ct-totitle,
35906         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
35907
35908         Define u16_totitle as a wrapper around u16_ct_totitle.
35909         * lib/unicase/u16-totitle.c: Update.
35910         * modules/unicase/u16-totitle (Depends-on): Add unicase/u16-ct-totitle,
35911         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
35912
35913         Define u8_totitle as a wrapper around u8_ct_totitle.
35914         * lib/unicase/u-totitle.h (is_cased, is_case_ignorable): Remove
35915         functions.
35916         (FUNC): Delegate to U_CT_TOTITLE.
35917         * lib/unicase/u8-totitle.c: Update.
35918         * modules/unicase/u8-totitle (Depends-on): Add unicase/u8-ct-totitle,
35919         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
35920
35921         * lib/unicase/u32-tolower.c (u32_tolower): Update u32_casemap
35922         invocation.
35923         * modules/unicase/u32-tolower (Depends-on): Add
35924         unicase/empty-prefix-context, unicase/empty-suffix-context.
35925
35926         * lib/unicase/u16-tolower.c (u16_tolower): Update u16_casemap
35927         invocation.
35928         * modules/unicase/u16-tolower (Depends-on): Add
35929         unicase/empty-prefix-context, unicase/empty-suffix-context.
35930
35931         * lib/unicase/u8-tolower.c (u8_tolower): Update u8_casemap invocation.
35932         * modules/unicase/u8-tolower (Depends-on): Add
35933         unicase/empty-prefix-context, unicase/empty-suffix-context.
35934
35935         * lib/unicase/u32-toupper.c (u32_toupper): Update u32_casemap
35936         invocation.
35937         * modules/unicase/u32-toupper (Depends-on): Add
35938         unicase/empty-prefix-context, unicase/empty-suffix-context.
35939
35940         * lib/unicase/u16-toupper.c (u16_toupper): Update u16_casemap
35941         invocation.
35942         * modules/unicase/u16-toupper (Depends-on): Add
35943         unicase/empty-prefix-context, unicase/empty-suffix-context.
35944
35945         * lib/unicase/u8-toupper.c (u8_toupper): Update u8_casemap invocation.
35946         * modules/unicase/u8-toupper (Depends-on): Add
35947         unicase/empty-prefix-context, unicase/empty-suffix-context.
35948
35949         New module 'unicase/u32-ct-casefold'.
35950         * lib/unicase/u32-ct-casefold.c: New file.
35951         * modules/unicase/u32-ct-casefold: New file.
35952
35953         New module 'unicase/u16-ct-casefold'.
35954         * lib/unicase/u16-ct-casefold.c: New file.
35955         * modules/unicase/u16-ct-casefold: New file.
35956
35957         New module 'unicase/u8-ct-casefold'.
35958         * lib/unicase/u8-ct-casefold.c: New file.
35959         * lib/unicase/u-ct-casefold.h: New file, derived from
35960         lib/unicase/u-casefold.h.
35961         * modules/unicase/u8-ct-casefold: New file.
35962
35963         New module 'unicase/u32-ct-totitle'.
35964         * lib/unicase/u32-ct-totitle.c: New file.
35965         * modules/unicase/u32-ct-totitle: New file.
35966
35967         New module 'unicase/u16-ct-totitle'.
35968         * lib/unicase/u16-ct-totitle.c: New file.
35969         * modules/unicase/u16-ct-totitle: New file.
35970
35971         New module 'unicase/u8-ct-totitle'.
35972         * lib/unicase/u8-ct-totitle.c: New file.
35973         * lib/unicase/u-ct-totitle.h: New file, derived from
35974         lib/unicase/u-totitle.h.
35975         * modules/unicase/u8-ct-totitle: New file.
35976
35977         New module 'unicase/u32-ct-tolower'.
35978         * lib/unicase/u32-ct-tolower.c: New file.
35979         * modules/unicase/u32-ct-tolower: New file.
35980
35981         New module 'unicase/u16-ct-tolower'.
35982         * lib/unicase/u16-ct-tolower.c: New file.
35983         * modules/unicase/u16-ct-tolower: New file.
35984
35985         New module 'unicase/u8-ct-tolower'.
35986         * lib/unicase/u8-ct-tolower.c: New file.
35987         * modules/unicase/u8-ct-tolower: New file.
35988
35989         New module 'unicase/u32-ct-toupper'.
35990         * lib/unicase/u32-ct-toupper.c: New file.
35991         * modules/unicase/u32-ct-toupper: New file.
35992
35993         New module 'unicase/u16-ct-toupper'.
35994         * lib/unicase/u16-ct-toupper.c: New file.
35995         * modules/unicase/u16-ct-toupper: New file.
35996
35997         New module 'unicase/u8-ct-toupper'.
35998         * lib/unicase/u8-ct-toupper.c: New file.
35999         * modules/unicase/u8-ct-toupper: New file.
36000
36001         Add context arguments to u*_casemap functions.
36002         * lib/unicase/unicasemap.h: Include unicase.h.
36003         (u8_casemap, u16_casemap, u32_casemap): Add prefix_context and
36004         suffix_context arguments.
36005         * lib/unicase/u-casemap.h (is_cased, is_case_ignorable): Remove
36006         functions.
36007         (FUNC): Add prefix_context and suffix_context arguments. Use
36008         uc_is_cased and uc_is_case_ignorable.
36009         * lib/unicase/u8-casemap.c: Include caseprop.h and context.h.
36010         * lib/unicase/u16-casemap.c: Likewise.
36011         * lib/unicase/u32-casemap.c: Likewise.
36012         * modules/unicase/u8-casemap (Files): Add lib/unicase/context.h.
36013         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
36014         * modules/unicase/u16-casemap (Files): Add lib/unicase/context.h.
36015         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
36016         * modules/unicase/u32-casemap (Files): Add lib/unicase/context.h.
36017         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
36018
36019         New module 'unicase/u32-suffix-context'.
36020         * lib/unicase/u32-suffix-context.c: New file.
36021         * modules/unicase/u32-suffix-context: New file.
36022
36023         New module 'unicase/u16-suffix-context'.
36024         * lib/unicase/u16-suffix-context.c: New file.
36025         * modules/unicase/u16-suffix-context: New file.
36026
36027         New module 'unicase/u8-suffix-context'.
36028         * lib/unicase/u8-suffix-context.c: New file.
36029         * lib/unicase/u-suffix-context.h: New file.
36030         * modules/unicase/u8-suffix-context: New file.
36031
36032         New module 'unicase/empty-suffix-context'.
36033         * lib/unicase/empty-suffix-context.c: New file.
36034         * modules/unicase/empty-suffix-context: New file.
36035
36036         New module 'unicase/u32-prefix-context'.
36037         * lib/unicase/u32-prefix-context.c: New file.
36038         * modules/unicase/u32-prefix-context: New file.
36039
36040         New module 'unicase/u16-prefix-context'.
36041         * lib/unicase/u16-prefix-context.c: New file.
36042         * modules/unicase/u16-prefix-context: New file.
36043
36044         New module 'unicase/u8-prefix-context'.
36045         * lib/unicase/u8-prefix-context.c: New file.
36046         * lib/unicase/u-prefix-context.h: New file.
36047         * lib/unicase/context.h: New file.
36048         * modules/unicase/u8-prefix-context: New file.
36049
36050         New module 'unicase/empty-prefix-context'.
36051         * lib/unicase/empty-prefix-context.c: New file.
36052         * modules/unicase/empty-prefix-context: New file.
36053
36054         New module 'unicase/ignorable'.
36055         * lib/unicase/ignorable.c: New file.
36056         * modules/unicase/ignorable: New file.
36057
36058         New module 'unicase/cased'.
36059         * lib/unicase/caseprop.h: New file.
36060         * lib/unicase/cased.c: New file.
36061         * modules/unicase/cased: New file.
36062
36063         New functions for case mapping of substrings.
36064         * lib/unicase.h (casing_prefix_context_t): New type.
36065         (unicase_empty_prefix_context): New variable.
36066         (u8_casing_prefix_context, u16_casing_prefix_context,
36067         u32_casing_prefix_context, u8_casing_prefixes_context,
36068         u16_casing_prefixes_context, u32_casing_prefixes_context): New
36069         declarations.
36070         (casing_suffix_context_t): New type.
36071         (unicase_empty_suffix_context): New variable.
36072         (u8_casing_suffix_context, u16_casing_suffix_context,
36073         u32_casing_suffix_context, u8_casing_suffixes_context,
36074         u16_casing_suffixes_context, u32_casing_suffixes_context,
36075         u8_ct_toupper, u16_ct_toupper, u32_ct_toupper, u8_ct_tolower,
36076         u16_ct_tolower, u32_ct_tolower, u8_ct_totitle, u16_ct_totitle,
36077         u32_ct_totitle, u8_ct_casefold, u16_ct_casefold, u32_ct_casefold): New
36078         declarations.
36079
36080 2009-06-28  Jim Meyering  <meyering@redhat.com>
36081
36082         boostrap: indent only with spaces
36083         * build-aux/bootstrap: Indent only with spaces, never TABs.
36084
36085         bootstrap: split long lines
36086         * build-aux/bootstrap: Keep line length < 80.
36087
36088         bootstrap: sync from coreutils
36089         * build-aux/bootstrap: Honor variables like $ACLOCAL, etc.,
36090         just as autoreconf does.  Verify a list of prerequisite
36091         package-name,version-number pairs if defined in bootstrap.conf.
36092         Refer to README-prereq, if prerequisites are not satisfied.
36093
36094 2009-06-27  Eric Blake  <ebb9@byu.net>
36095
36096         tests: add test for bogus NULL definition
36097         * tests/test-stdio.c: Ensure POSIX 2008 requirement on NULL.
36098         * tests/test-stdlib.c: Likewise.
36099         * tests/test-string.c: Likewise.
36100         * tests/test-locale.c: Likewise.
36101         * tests/test-unistd.c: Likewise.
36102         * modules/stdio-tests (Depends-on): Add verify.
36103         * modules/stdlib-tests (Depends-on): Likewise.
36104         * modules/string-tests (Depends-on): Likewise.
36105         * modules/locale-tests (Depends-on): Likewise.
36106         * modules/unistd-tests (Depends-on): Likewise.
36107
36108 2009-06-27  Paolo Bonzini  <bonzini@gnu.org>
36109
36110         * m4/selinux-context-h (gl_HEADERS_SELINUX_CONTEXT_H): Remove
36111         self-explaining comment.
36112         * m4/selinux-selinux-h: Update serial.
36113         (gl_LIBSELINUX): New macro, adding a warning for missing development
36114         packages to code extracted from...
36115         (gl_HEADERS_SELINUX_SELINUX_H): ... this one.  Require gl_LIBSELINUX.
36116         Add warning for missing development packages here, too.
36117
36118 2009-06-26  Paolo Bonzini  <bonzini@gnu.org>
36119
36120         * build-aux/bootstrap: Do not use GIT_CONFIG_LOCAL.
36121
36122 2009-06-25  Eric Blake  <ebb9@byu.net>
36123
36124         version-etc: fix regression
36125         * lib/version-etc.h (ATTRIBUTE_SENTINEL): Define for new enough
36126         gcc.
36127         (version_etc): Use it, to catch bugs with trailing NULL.
36128         * lib/version-etc.c (version_etc_arn): Delete unused argument.
36129         (version_etc_va): Fix logic bug.
36130         * modules/version-etc-tests: Add test.
36131         * tests/test-version-etc.c: New file.
36132         * tests/test-version-etc.sh: Likewise.
36133
36134 2009-06-25  Sam Steingold  <sds@gnu.org>
36135
36136         * mbrtowc.m4 (gl_MBRTOWC_SANITYCHECK): Include <stdlib.h>, for the
36137         mbtowc declaration.
36138
36139 2009-06-25  Eric Blake  <ebb9@byu.net>
36140
36141         fpurge: migrate into <stdio.h>
36142         * lib/fpurge.h: Delete...
36143         * lib/stdio.in.h (fpurge): ...and declare here, instead.
36144         * lib/fpurge.c (fpurge): Change declaring header.
36145         * modules/fpurge (Files): Drop deleted file.
36146         (Depends-on): Add stdio.
36147         (configure.ac): Set witness.
36148         * modules/stdio (Makefile.am): Support fpurge macros.
36149         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
36150         * m4/fpurge.m4 (gl_FUNC_FPURGE): Set appropriate variables.
36151         * lib/fflush.c: Update client.
36152         * tests/test-fpurge.c: Likewise.
36153         * NEWS: Mention the change.
36154
36155 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
36156
36157         * lib/argp-version-etc.c (program_authors): Add const
36158         qualifier.
36159         * lib/version-etc.c: Fix typos in the comments.
36160         * modules/argp-version-etc: Depends on version-etc.
36161
36162 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
36163
36164         argp-version-etc: new module.
36165
36166         * lib/argp-version-etc.c: New file.
36167         * lib/argp-version-etc.h: New file.
36168         * modules/argp-version-etc: New file.
36169         * modules/argp-version-etc-tests: New file.
36170         * tests/test-argp-version-etc.c: New test.
36171         * tests/test-argp-version-etc-1.sh: New test.
36172
36173 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
36174
36175         Provide additional interfaces and documentation for version-etc
36176         module.
36177
36178         * lib/version-etc.c (version_etc_arn, version_etc_ar): New
36179         interfaces.
36180         * lib/version-etc.h (version_etc_arn, version_etc_ar): New
36181         prototypes.
36182
36183 2009-06-24  Bruno Haible  <bruno@clisp.org>
36184
36185         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Fix description of
36186         HAVE_LIB${NAME} macro.
36187         Reported by Sam Steingold <sds@gnu.org>.
36188
36189 2009-06-23  Simon Josefsson  <simon@josefsson.org>
36190
36191         * modules/hash-tests (test_hash_LDADD): Link to libintl when
36192         needed.
36193
36194 2009-06-21  Bruno Haible  <bruno@clisp.org>
36195
36196         Make two consecutive identical invocations of AC_LIB_HAVE_LINKFLAGS
36197         work.
36198         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Reset HAVE_LIB${NAME}
36199         together with LIB${NAME}, LTLIB${NAME}.
36200         Reported by Sam Steingold <sds@gnu.org>.
36201
36202 2009-06-20  Jim Meyering  <meyering@redhat.com>
36203
36204         tests: make sc_require_test_exit_idiom more generic
36205         * top/maint.mk (Exit_witness_file): New overridable variable.
36206         (sc_require_test_exit_idiom): Don't hard-code tests/test-lib.sh.
36207         Relax test for /^Exit \$fail$$/ to just /^Exit ./.
36208
36209 2009-06-19  Jim Meyering  <meyering@redhat.com>
36210
36211         hash: reverse order of src/dst parameters in an internal interface
36212         * lib/hash.c (transfer_entries): Reverse order of parameters to
36213         put DST before SRC.  Adjust callers.
36214
36215         tests: test-hash: avoid wholesale duplication
36216         * tests/test-hash.c (main): Don't copy/paste a 60-line loop.
36217         Instead, use a loop and add a single conditional.
36218
36219         tests: test-hash: allow seed selection via a command line argument
36220         * tests/test-hash.c (get_seed): New function.
36221         (main): Use it.
36222
36223 2009-06-19  Eric Blake  <ebb9@byu.net>
36224
36225         hash: avoid memory leak on allocation failure
36226         * lib/hash.c: (hash_rehash): Avoid memory leak on allocation
36227         failure.  Factor repeated algorithm...
36228         (transfer_entries): ...into new helper routine.
36229         (hash_delete): React to hash_rehash return value.
36230
36231         hash: reduce memory pressure in hash_rehash no-op case
36232         * lib/hash.c (next_prime): Avoid overflow.
36233         (hash_initialize): Factor bucket size computation...
36234         (compute_bucket_size): ...into new helper function.
36235         (hash_rehash): Use new function and open coding to reduce memory
36236         pressure, and avoid a memory leak in USE_OBSTACK code.
36237         Reported by Jim Meyering.
36238
36239 2009-06-18  Eric Blake  <ebb9@byu.net>
36240
36241         hash: make rotation more obvious
36242         * modules/hash (Depends-on): Add bitrotate and stdint.
36243         * lib/bitrotate.h (rotl_sz, rotr_sz): New functions.
36244         * lib/hash.c (headers): Drop limits.h.  Add stdint.h.
36245         (SIZE_MAX): Rely on headers for definition.
36246         (hash_string) [USE_DIFF_HASH]: Use rotl_sz.
36247         (raw_hasher): Use rotr_sz.
36248         Suggested by Jim Meyering.
36249
36250         hash: fix memory leak in last patch
36251         * lib/hash.c (hash_rehash): Avoid memory leak.
36252
36253         hash: avoid no-op rehashing
36254         * lib/hash.c (hash_rehash): Recognize useless rehash attempts.
36255
36256         hash: provide default callback functions
36257         * lib/hash.c (raw_hasher, raw_comparator): New functions.
36258         (hash_initialize): Use them as defaults.
36259         * tests/test-hash.c (main): Test this.
36260
36261         hash: minor optimization
36262         * lib/hash.c (hash_lookup, hash_find_entry): Avoid function call
36263         when possible.
36264         (hash_initialize): Document this promise.
36265         (hash_do_for_each, hash_clear, hash_free): Use C89 syntax.
36266         * tests/test-hash.c (hash_compare_strings): Test this.
36267
36268 2009-06-18  Bruno Haible  <bruno@clisp.org>
36269
36270         * m4/strstr.m4 (gl_FUNC_STRSTR): Skip linear time test if strstr is
36271         going to be replaced anyway.
36272
36273 2009-06-18  Bruno Haible  <bruno@clisp.org>
36274
36275         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Invoke AC_LIBOBJ only
36276         in one place.
36277         (gl_FUNC_STRCASESTR): Skip linear time test if strcasestr is going to
36278         be replaced anyway.
36279
36280 2009-06-18  Eric Blake  <ebb9@byu.net>
36281
36282         hash: check for resize before insertion
36283         * lib/hash.c (hash_insert): Check whether bucket usage exceeds
36284         threshold before insertion, so that a pathological hash_rehash
36285         that fills every bucket can still trigger another rehash.
36286
36287 2009-06-18  Jim Meyering  <meyering@redhat.com>
36288
36289         hash-tests: add a loop around the small tests
36290         * tests/test-hash.c (main): Repeat small tests with selected
36291         small initial table sizes.
36292
36293 2009-06-17  Eric Blake  <ebb9@byu.net>
36294
36295         hash: minor cleanups
36296         * lib/hash.h (hash_entry): Make opaque, by moving...
36297         * lib/hash.c (hash_entry): ...here.
36298         (hash_insert): Clarify restrictions on what can be inserted.
36299         (hash_get_next): Clarify when it is safe to remove an element
36300         during traversal.
36301         (check_tuning): Skip verification when tuning is known safe.
36302         (hash_initialize): Clarify restrictions on tuning.
36303
36304 2009-06-17  Jim Meyering  <jim@meyering.net>
36305         and Eric Blake  <ebb9@byu.net>
36306
36307         hash-tests: new module
36308         * modules/hash-tests: New file.
36309         * tests/test-hash.c: New file.
36310
36311 2009-06-17  Eric Blake  <ebb9@byu.net>
36312
36313         strstr-simple: document new module
36314         * MODULES.html.sh: Document new module.
36315
36316         strstr, strcasestr: replace on platforms with broken memchr
36317         * modules/strstr: Split into...
36318         * modules/strstr-simple: ...new module that does not care about
36319         performance, but does care about glibc bug.
36320         * m4/strstr.m4 (gl_FUNC_STRSTR): Split...
36321         (gl_FUNC_STRSTR_SIMPLE): ...into new macro, which replaces strstr
36322         if platform memchr is broken, per Debian bug 521737.
36323         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): React to broken
36324         memchr.
36325         * m4/memchr.m4 (gl_FUNC_MEMCHR): Only expand once.
36326         * doc/posix-functions/strstr.texi (strstr): Document the fix.
36327         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
36328         * modules/mountlist (Depends-on): Add strstr-simple.
36329         * modules/gen-uni-tables (Depends-on): Likewise.
36330         * modules/argz (Depends-on): Add strstr.
36331
36332 2009-06-17  Bruno Haible  <bruno@clisp.org>
36333
36334         * modules/posix_spawn-internal (Depends-on): Add errno.
36335
36336 2009-06-17  Bruno Haible  <bruno@clisp.org>
36337
36338         Define missing ESTALE on Interix 3.5.
36339         * lib/errno.in.h (ESTALE): Assign a value if missing.
36340         * lib/strerror.c (rpl_strerror): Handle missing ESTALE and ECANCELED.
36341         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Also test whether ESTALE is
36342         missing.
36343         * doc/posix-headers/errno.texi: Mention the Interix bug.
36344         Reported by Jay Krell <jay.krell@cornell.edu> via Eric Blake.
36345
36346 2009-06-15  Eric Blake  <ebb9@byu.net>
36347
36348         memchr, memchr2: add valgrind exception
36349         * lib/memchr.valgrind: New file.
36350         * lib/memchr2.valgrind: New file.
36351         * modules/memchr (Files): Distribute valgrind file.
36352         * modules/memchr2 (Files): Likewise.
36353
36354         docs: memchr is no longer obsolete
36355         * MODULES.html.sh: Move memchr from obsolete to string.h section.
36356         * lib/string.in.h (memchr): Simplify logic.
36357
36358 2009-06-14  Jim Meyering  <meyering@redhat.com>
36359
36360         link-follow: fix the "checking..." message to not mention trailing slash
36361         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): This test has
36362         never considered trailing slashes.
36363
36364 2009-06-14  Bruno Haible  <bruno@clisp.org>
36365
36366         * m4/memchr.m4: Mention also the bug on IA-64.
36367         * doc/posix-functions/memchr.texi: Likewise.
36368
36369 2009-06-12  Eric Blake  <ebb9@byu.net>
36370
36371         memchr: detect broken x86_64 and alpha implementations
36372         * modules/memchr-tests (Depends-on): Move mmap detection...
36373         * modules/memchr (Depends-on): ...here.
36374         (configure.ac): Set indicator.
36375         * lib/string.in.h (memchr): Declare replacement.
36376         * modules/string (Makefile.am): Trigger replacement.
36377         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Likewise.
36378         * m4/memchr.m4 (gl_FUNC_MEMCHR): Use mmap to detect platform
36379         bugs.
36380         * doc/posix-functions/memchr.texi (memchr): Document the bug.
36381         * modules/getpagesize (License): Relax license.
36382
36383 2009-06-11  Bruno Haible  <bruno@clisp.org>
36384
36385         * lib/idpriv.h: Add more references.
36386
36387 2009-06-08  Bruno Haible  <bruno@clisp.org>
36388
36389         Tests for module 'idpriv-droptemp'.
36390         * modules/idpriv-droptemp-tests: New file.
36391         * tests/test-idpriv-droptemp.sh: New file.
36392         * tests/test-idpriv-droptemp.su.sh: New file.
36393         * tests/test-idpriv-droptemp.c: New file.
36394
36395         New module 'idpriv-droptemp'.
36396         * lib/idpriv-droptemp.c: New file.
36397         * modules/idpriv-droptemp: New file.
36398
36399 2009-06-08  Bruno Haible  <bruno@clisp.org>
36400
36401         Tests for module 'idpriv-drop'.
36402         * modules/idpriv-drop-tests: New file.
36403         * tests/test-idpriv-drop.sh: New file.
36404         * tests/test-idpriv-drop.su.sh: New file.
36405         * tests/test-idpriv-drop.c: New file.
36406
36407         New module 'idpriv-drop'.
36408         * lib/idpriv.h: New file.
36409         * lib-idpriv-drop.c: New file.
36410         * m4/idpriv.m4: New file.
36411         * modules/idpriv-drop: New file.
36412
36413 2009-06-08  Bruno Haible  <bruno@clisp.org>
36414
36415         * modules/unistdio/u8-vasnprintf (Depends-on): Add memchr.
36416         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
36417         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
36418         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
36419         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
36420         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
36421         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
36422
36423 2009-06-08  Eric Blake  <ebb9@byu.net>
36424
36425         test-strstr: use memory fence, when possible
36426         * tests/test-strstr.c (main): Use memory fence, in order to be
36427         more likely to trigger Debian bug 521737.
36428         * modules/strstr-tests (Files): Pull in additional files.
36429
36430         memchr: no longer obsolete, for wider field testing
36431         * modules/memchr (Status, Notice): Delete, this module is no
36432         longer obsolete.
36433         * modules/vasnprintf (Depends-on): Add memchr.
36434
36435 2009-06-07  Jim Meyering  <meyering@redhat.com>
36436
36437         hash: declare some functions with the warn_unused_result attribute
36438         * lib/hash.h (__attribute__, ATTRIBUTE_WUR): Define.
36439
36440 2009-06-07  Bruno Haible  <bruno@clisp.org>
36441
36442         * tests/test-alignof.c: Don't test int64_t if it does not exist.
36443         Reported by Eric Blake.
36444
36445 2009-06-06  Eric Blake  <ebb9@byu.net>
36446
36447         test-alignof: fix typo with long double
36448         * tests/test-alignof.c (CHECK): Use longdouble typedef to avoid
36449         compiler error.
36450
36451 2009-06-06  Neil Jerram  <neil@ossau.uklinux.net>  (tiny change)
36452
36453         Escape non-texinfo { and }s.
36454         * doc/ld-output-def.texi (Visual Studio Compatibility): Fix
36455         markup error.
36456
36457 2009-06-04  Jim Meyering  <meyering@redhat.com>
36458
36459         gitlog-to-changelog: don't infloop on an empty commit log
36460         * build-aux/gitlog-to-changelog: Warn about an empty log message.
36461         Reported by Boris Petersen <transacid@centerim.org>.
36462
36463 2009-06-03  Mike Frysinger  <vapier@gentoo.org>
36464
36465         version-etc: extend for packagers
36466         Add three new configure options, intended for packagers:
36467           --with-packager="packager name"
36468           --with-packager-version="packager-specific version"
36469           --with-packager-bug-reports="packager bug reporting"
36470         An example with coreutils:
36471           $ ./configure \
36472             --with-packager=Gentoo \
36473             --with-packager-bug-report=http://bugs.gentoo.org/ \
36474             --with-packager-version="patchset 1.6"
36475           $ ./src/ls --version | head -n2
36476           ls (GNU coreutils) 7.1-dirty
36477           Packaged by Gentoo (patchset 1.6)
36478         Note that the bug reporting info via --help doesn't show up because
36479         coreutils uses its own custom emit_bug_reporting_address() implementation
36480         in src/system.h.  If it didn't, it'd look like:
36481           $ ./src/ls --help | tail -n4
36482           Report bugs to <bug-coreutils@gnu.org>.
36483           Report Gentoo bugs to <http://bugs.gentoo.org/>.
36484           GNU coreutils home page: <http://www.gnu.org/software/coreutils/>.
36485           General help using GNU software: <http://www.gnu.org/gethelp/>.
36486         * lib/version-etc.c: Print new information, if provided.
36487         * m4/version-etc.m4: New file.
36488         * modules/version-etc (Files): Add m4/version-etc.m4.
36489         (configure.ac): Add gl_VERSION_ETC.
36490
36491 2009-05-31  Bruno Haible  <bruno@clisp.org>
36492
36493         * tests/test-alignof.c: Include <stdint.h>. Check also 'long double'
36494         and 'int64_t'.
36495         * modules/alignof-tests (Dependencies): Add stdint.
36496         Reported by Eric Blake.
36497
36498 2009-05-31  Bruno Haible  <bruno@clisp.org>
36499
36500         * lib/alignof.h (alignof_slot, alignof_type, alignof): Document
36501         restriction due to compiler bugs.
36502         Reported by Eric Blake.
36503
36504 2009-05-31  Simon Josefsson  <simon@josefsson.org>
36505             Bruno Haible  <bruno@clisp.org>
36506
36507         Fix test-alignof failure.
36508         * lib/alignof.h (alignof_slot): New macro.
36509         (alignof_type): New macro, with the same semantics as the previous
36510         'alignof'.
36511         (alignof): Alias to alignof_slot.
36512         * tests/test-alignof.c (CHECK): Check alignof_slot, not alignof. Also
36513         check that the results are usable as constant expressions.
36514
36515 2009-05-31  Bruno Haible  <bruno@clisp.org>
36516
36517         * tests/zerosize-ptr.h (zerosize_ptr): Specify more details.
36518         * tests/test-memchr.c (main): Check that memchr does not read past the
36519         first occurrence of the byte.
36520         * tests/test-strstr.c (main): Update comment.
36521         Suggested by Eric Blake.
36522
36523 2009-05-30  Bruno Haible  <bruno@clisp.org>
36524
36525         * doc/ld-output-def.texi (Visual Studio Compatibility): Explain in more
36526         detail how to use dumpbin.
36527         Reported by David Byron <dbyron@dbyron.com>.
36528
36529 2009-06-02  Simon Josefsson  <simon@josefsson.org>
36530
36531         * tests/test-parse-duration.sh: Don't use non-portable 'read -u3'.
36532
36533 2009-06-02  Simon Josefsson  <simon@josefsson.org>
36534
36535         * m4/manywarnings.m4: Add GCC 4.4 warnings.
36536
36537 2009-05-28  Bruno Haible  <bruno@clisp.org>
36538
36539         * gnulib-tool (func_import): Don't do HAVE_CONFIG_H replacements on
36540         build-aux/ files.
36541
36542 2009-05-28  Simon Josefsson  <simon@josefsson.org>
36543
36544         * gnulib-tool (func_import): Transform license on build-aux/ files too.
36545
36546 2009-05-27  Simon Josefsson  <simon@josefsson.org>
36547
36548         * gnulib-tool (sed_transform_main_lib_file)
36549         (sed_transform_testsrelated_lib_file): : Don't use non-POSIX
36550         regexps.
36551
36552 2009-05-26  Simon Josefsson  <simon@josefsson.org>
36553
36554         * tests/test-strstr.c: Add another self-test.
36555         * tests/test-strstr.c: Rewrite to use malloc/strcpy instead of
36556         strdup.  Suggested by Eric Blake  <ebb9@byu.net>.
36557
36558 2009-05-23  Bruno Haible  <bruno@clisp.org>
36559
36560         * doc/havelib.texi (AC_LIB_HAVE_LINKFLAGS): Update for 2009-04-26
36561         change.
36562
36563 2009-05-21  Bruno Haible  <bruno@clisp.org>
36564
36565         Simplify use of mode_t varargs.
36566         * lib/open.c (open): Use PROMOTED_MODE_T instead of a conditional that
36567         uses 'mode_t' or 'int'.
36568         * lib/openat.c (openat): Likewise.
36569         * lib/open-safer.c (open_safer): Likewise.
36570         * m4/mode_t.m4: New file.
36571         * m4/open.m4 (gl_PREREQ_OPEN): Require gl_PROMOTED_TYPE_MODE_T.
36572         * m4/openat.m4 (gl_PREREQ_OPENAT): Likewise.
36573         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Likewise.
36574         * modules/open (Files): Add m4/mode_t.m4.
36575         * modules/openat (Files): Likewise.
36576         * modules/fcntl-safer (Files): Likewise.
36577         Suggested by Eric Blake.
36578
36579 2009-05-21  Pádraig Brady  <P@draigbrady.com>
36580
36581         * doc/glibc-functions/fallocate.texi: New file.
36582         * doc/gnulib.texi: Include it.
36583
36584 2009-05-21  Eric Blake  <ebb9@byu.net>
36585             Bruno Haible  <bruno@clisp.org>
36586
36587         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Remove redundant m4_quote
36588         invocations.
36589         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
36590
36591 2009-05-21  Eric Blake  <ebb9@byu.net>
36592             Bruno Haible  <bruno@clisp.org>
36593
36594         Second attempt to work around an AIX 5.3, 6.1 compiler bug with
36595         include_next. Fix of 2008-11-20 commit.
36596         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Also set
36597         NEXT_AS_FIRST_DIRECTIVE_FOO_H.
36598         * lib/math.in.h: Use NEXT_AS_FIRST_DIRECTIVE_MATH_H instead of
36599         NEXT_MATH_H.
36600         * modules/math (Makefile.am): Substitute NEXT_AS_FIRST_DIRECTIVE_MATH_H
36601         instead of NEXT_MATH_H.
36602
36603 2009-05-21  Bruno Haible  <bruno@clisp.org>
36604
36605         Avoid redefinition warnings for SIZE_MAX.
36606         * m4/size_max.m4 (gl_SIZE_MAX): Avoid redefining SIZE_MAX in config.h.
36607         Reported by Simon Josefsson.
36608
36609 2009-05-21  Bruno Haible  <bruno@clisp.org>
36610
36611         * m4/size_max.m4 (gl_SIZE_MAX): Use AC_CACHE_CHECK instead of
36612         AC_CACHE_VAL.
36613
36614 2009-05-20  Bruno Haible  <bruno@clisp.org>
36615
36616         Make zeroptr.h work on mingw.
36617         * tests/zerosize-ptr.h: Test for the presence of <sys/mman.h> and
36618         mprotect.
36619         * modules/memchr-tests (configure.ac): Also test for sys/mman.h.
36620         * modules/memchr2-tests (configure.ac): Likewise.
36621         * modules/memcmp-tests (configure.ac): Likewise.
36622         * modules/memmem-tests (configure.ac): Likewise.
36623         * modules/memrchr-tests (configure.ac): Likewise.
36624         Reported by Simon Josefsson.
36625
36626 2009-05-20  Simon Josefsson  <simon@josefsson.org>
36627
36628         * tests/test-glob.c: Include string.h for strcmp prototype.
36629
36630 2009-05-20  Simon Josefsson  <simon@josefsson.org>
36631
36632         * modules/getdelim (Depends-on): Add explicit stdint, although it
36633         was implicitly already pulled in via realloc-posix.
36634         * lib/getdelim.c: Get SIZE_MAX from stdint.h.
36635
36636 2009-05-20  Simon Josefsson  <simon@josefsson.org>
36637
36638         MinGW and IRIX does not have sa_family_t type.  Reported by "Tom
36639         G. Christensen" <tgc@jupiterrise.com>.
36640         * m4/sys_socket_h.m4: Check for sa_family_t.
36641         * lib/sys_socket.in.h: Typedef sa_family_t when needed.
36642         * modules/sys_socket: Substitute HAVE_SA_FAMILY_T.
36643         * tests/test-sys_socket.c: Check that sa_family_t works.
36644
36645 2009-05-18  Eric Blake  <ebb9@byu.net>
36646
36647         maint.mk: allow gnulib_dir in VPATH build
36648         * top/maint.mk (gnulib_dir): Make relative to $(srcdir).
36649
36650 2009-05-15  Jim Meyering  <meyering@redhat.com>
36651
36652         maint.mk: Give gnulib_dir a default definition.
36653         * top/maint.mk (gnulib_dir): Define to 'gnulib', by default.
36654         Thus, most packages no longer need to specify this variable in cfg.mk
36655
36656 2009-05-14  Tom Prince  <tom.prince@ualberta.net>  (tiny change)
36657
36658         rename.m4: fix typos that would make non-mingw cross-configure fail
36659         * m4/rename.m4 (gl_FUNC_RENAME): Fix typos.
36660
36661 2009-05-13  Eric Blake  <ebb9@byu.net>
36662
36663         mmap-anon: avoid out-of-order autoconf expansion
36664         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Use correct
36665         SYSTEM_EXTENSIONS macro to silence warnings from autoconf 2.63b.
36666         * modules/memchr-tests (Depends-on): Add extensions.
36667         * modules/memchr2-tests (Depends-on): Add extensions.
36668         * modules/memcmp-tests (Depends-on): Add extensions.
36669         * modules/memmem-tests (Depends-on): Add extensions.
36670         * modules/memrchr-tests (Depends-on): Add extensions.
36671
36672 2009-05-13  Bruno Haible  <bruno@clisp.org>
36673
36674         Make some tests ISO C 99 compliant.
36675         * tests/zerosize-ptr.h: New file.
36676         * tests/test-memchr.c: Include zerosize-ptr.h.
36677         (main): Use a zero-size object pointer instead of NULL.
36678         * tests/test-memchr2.c: Include zerosize-ptr.h.
36679         (main): Use a zero-size object pointer instead of NULL.
36680         * tests/test-memcmp.c: Include zerosize-ptr.h.
36681         (main): Use a zero-size object pointer instead of NULL.
36682         * tests/test-memmem.c: Include zerosize-ptr.h.
36683         (main): Use a zero-size object pointer instead of NULL.
36684         * tests/test-memrchr.c: Include zerosize-ptr.h.
36685         (main): Use a zero-size object pointer instead of NULL.
36686         * modules/memchr-tests (Files): Add tests/zerosize-ptr.h,
36687         m4/mmap-anon.m4.
36688         (Depends-on): Add getpagesize.
36689         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
36690         * modules/memchr2-tests (Files): Add tests/zerosize-ptr.h,
36691         m4/mmap-anon.m4.
36692         (Depends-on): Add getpagesize.
36693         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
36694         * modules/memcmp-tests (Files): Add tests/zerosize-ptr.h,
36695         m4/mmap-anon.m4.
36696         (Depends-on): Add getpagesize.
36697         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
36698         * modules/memmem-tests (Files): Add tests/zerosize-ptr.h,
36699         m4/mmap-anon.m4.
36700         (Depends-on): Add getpagesize.
36701         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
36702         * modules/memrchr-tests (Files): Add tests/zerosize-ptr.h,
36703         m4/mmap-anon.m4.
36704         (Depends-on): Add getpagesize.
36705         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
36706
36707 2009-05-12  Bruno Haible  <bruno@clisp.org>
36708
36709         Tests for module 'alignof'.
36710         * modules/alignof-tests: New file.
36711         * tests/test-alignof.c: New file.
36712
36713 2009-05-12  Bruno Haible  <bruno@clisp.org>
36714
36715         Fix alignof macro.
36716         * lib/alignof.h (alignof): Remove special cases for AIX and HP-UX
36717         vendor compilers that are always correct.
36718
36719 2009-05-12  Bruno Haible  <bruno@clisp.org>
36720
36721         Make the MAP_ANONYMOUS detection work on HP-UX 11.
36722         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Check whether mmap exists, but
36723         not whether its fully works.
36724
36725 2009-05-12  Bruno Haible  <bruno@clisp.org>
36726
36727         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Add comments.
36728
36729 2009-05-12  Jim Meyering  <meyering@redhat.com>
36730
36731         * top/maint.mk: Adjust backslash alignment.
36732
36733 2009-05-11  Simon Josefsson  <simon@josefsson.org>
36734
36735         * top/maint.mk: Make $(srcdir)/build-aux configurable.
36736
36737 2009-05-11  Eric Blake  <ebb9@byu.net>
36738
36739         argp: avoid undefined behavior
36740         * lib/argp-fmtstream.c (weak_alias): Pass correct types to ctype
36741         macros.
36742
36743 2009-05-08  Simon Josefsson  <simon@josefsson.org>
36744
36745         * tests/test-vc-list-files-git.sh: Do git config of user.email and
36746         user.name to prevent git commit from complaining.
36747
36748 2009-05-10  Bruno Haible  <bruno@clisp.org>
36749
36750         * gnulib-tool (func_import, func_create_testdir, copy-file): Change
36751         sed_rewrite_old_files, sed_rewrite_new_files, sed_rewrite_files so that
36752         it rewrites every file name only once.
36753         Reported by Simon Josefsson. Helped by Ralf Wildenhues.
36754
36755 2009-05-08  Bruno Haible  <bruno@clisp.org>
36756
36757         * lib/sys_socket.in.h (_SS_PADSIZE): Use a conditional expression
36758         instead of 'max'.
36759
36760 2009-05-08  Simon Josefsson  <simon@josefsson.org>
36761
36762         * m4/sys_socket_h.m4: Test for ws2tcpip.h earlier, needed for
36763         sockaddr_storage test.
36764
36765 2009-05-07  Simon Josefsson  <simon@josefsson.org>
36766
36767         * modules/sys_socket (Makefile.am): Substitute
36768         HAVE_STRUCT_SOCKADDR_STORAGE.  Depend on alignof.
36769         * m4/sys_socket_h.m4: Check for sockaddr_storage.
36770         * lib/sys_socket.in.h (sockaddr_storage): Define when needed.
36771         * tests/test-sys_socket.c: Check sockaddr_storage.
36772
36773 2009-05-08  Bruno Haible  <bruno@clisp.org>
36774
36775         New module 'alignof'.
36776         * lib/alignof.h: New file.
36777         * modules/alignof: New file.
36778
36779 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
36780             Bruno Haible  <bruno@clisp.org>
36781
36782         Fix test-file-has-acl on FreeBSD.
36783         * tests/test-file-has-acl.sh: Also test a directory. On FreeBSD, the
36784         mask is implicitly added.
36785         * tests/test-file-has-acl.c: Include <signal.h>.
36786         (main): Terminate the test after 5 seconds.
36787         * modules/acl-tests (configure.ac): Check for alarm function.
36788
36789 2009-05-04  Bruno Haible  <bruno@clisp.org>
36790
36791         Exploit new semantics of AC_DEFUN_ONCE available since 2009-01-26.
36792         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Remove outdated comment.
36793         * modules/errno (configure.ac): Drop AC_REQUIRE.
36794         * m4/multiarch.m4 (gl_MULTIARCH): Remove outdated comment.
36795         * modules/multiarch (configure.ac): Drop AC_REQUIRE.
36796
36797 2009-05-04  Simon Josefsson  <simon@josefsson.org>
36798
36799         * modules/glob-tests: New module.
36800         * tests/test-glob.c: Add.
36801
36802 2009-05-04  Simon Josefsson  <simon@josefsson.org>
36803
36804         * modules/fnmatch-tests: New module.
36805         * tests/test-fnmatch.c: Add.
36806
36807 2009-05-04  Eric Blake  <ebb9@byu.net>
36808
36809         maint: make the new no-submodule-changes rule VPATH-safe
36810         * top/maint.mk (no-submodule-changes): Don't assume a srcdir build.
36811
36812 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
36813             Bruno Haible  <bruno@clisp.org>
36814
36815         acl: Fix infinite loop on FreeBSD.
36816         * lib/acl_entries.c (acl_entries) [Linux, FreeBSD]: Fix interpretation
36817         of return value from acl_get_entry.
36818         * lib/file-has-acl.c (acl_access_nontrivial) [Linux, FreeBSD]:
36819         Likewise.
36820
36821 2009-05-03  Bruno Haible  <bruno@clisp.org>
36822
36823         * lib/acl-internal.h (acl_entries): Clarify return value.
36824         * lib/acl_entries.c (acl_entries): Likewise.
36825
36826 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
36827
36828         Bug fix in acl module.
36829         * lib/set-mode-acl.c: Use correct struct with ACL_SETACL.
36830
36831 2009-05-03  Bruno Haible  <bruno@clisp.org>
36832
36833         Create gperf-generated file in the source dir, not in the build dir.
36834         * modules/iconv_open (iconv_open-aix.h, iconv_open-hpux.h,
36835         iconv_open-irix.h, iconv_open-osf.h): Create file in the source tree.
36836         * modules/unicase/locale-language (unicase/locale-languages.h):
36837         Likewise.
36838         * modules/unicase/special-casing (unicase/special-casing-table.h):
36839         Likewise.
36840         * modules/unictype/property-byname (unictype/pr_byname.h): Likewise.
36841         * modules/unictype/scripts (unictype/scripts_byname.h): Likewise.
36842         * modules/uninorm/composition (uninorm/composition-table.h): Likewise.
36843         Reported by Ralf Wildenhues.
36844
36845 2009-05-03  Bruno Haible  <bruno@clisp.org>
36846
36847         * modules/fnmatch (Description, configure.ac): Taken from
36848         fnmatch-posix.
36849         * modules/fnmatch-posix: Turn into a symbolic reference to the
36850         'fnmatch' module, and deprecate.
36851         * doc/posix-functions/fnmatch.texi: Mention the fnmatch module.
36852
36853 2009-05-03  Bruno Haible  <bruno@clisp.org>
36854
36855         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF,
36856         gl_PREREQ_VASNPRINTF_LONG_DOUBLE): Define through AC_DEFUN_ONCE.
36857         Reported by Ralf Wildenhues.
36858
36859 2009-05-04  Simon Josefsson  <simon@josefsson.org>
36860
36861         * m4/fnmatch.m4: Fix fnmatch re-define.
36862
36863 2009-04-27  David Bartley  <dtbartle@csclub.uwaterloo.ca>
36864
36865         priv-set: new module and tests; adapt write-any-file
36866         * lib/priv-set.c: New file.
36867         * lib/priv-set.h: New file.
36868         * lib/unlinkdir.c: Make cannot_unlink_dir thread-safe.
36869         * lib/write-any-file.c: Simplify by using priv-set module.
36870         * m4/priv-set.m4: New file.
36871         * modules/priv-set: New file.
36872         * modules/unlinkdir: Add dependency on priv-set module.
36873         * modules/write-any-file: Likewise.
36874
36875         Tests for module 'priv-set'.
36876         * modules/priv-set-tests: New file.
36877         * tests/test-priv-set.c: New file.
36878
36879 2009-05-03  Jim Meyering  <meyering@redhat.com>
36880             Bruno Haible  <bruno@clisp.org>
36881
36882         * lib/propername.c (proper_name_utf8): Ignore no-op translations;
36883         use the converted UTF-8 variant of the name instead.
36884
36885 2009-05-03  Jim Meyering  <meyering@redhat.com>
36886
36887         tests: tighten some getdate tests
36888         * tests/test-getdate.c (main): Tighten tests: require equality,
36889         not just greater than.  Set TZ envvar to UTC0.
36890
36891 2009-05-03  Giuseppe Scrivano  <gscrivano@gnu.org>
36892
36893         getdate: correctly interpret "next monday" when run on a Monday
36894         * lib/getdate.y (get_date): Correct the calculation of tm_mday so
36895         that e.g., "next tues" (when run on a tuesday) results in a date
36896         that is one week in the future, and not today's date.
36897         I.e., add a week when the wday is the same as the current one.
36898         Reported by Tom Broadhurst in http://savannah.gnu.org/bugs/?25406,
36899         and earlier by Martin Bernreuther and Jan Minář.
36900         * tests/test-getdate.c (main): Check that "next DAY" is always in
36901         the future and that "last DAY" is always in the past.
36902
36903 2009-05-02  Jim Meyering  <meyering@redhat.com>
36904
36905         build: ensure that a release build fails when a submodule is unclean
36906         * top/maint.mk (no-submodule-changes): New rule.
36907         (alpha beta major): Depend on it.
36908
36909 2009-05-02  Bruno Haible  <bruno@clisp.org>
36910
36911         Remove incompatibility between modules fnmatch-posix and fnmatch-gnu.
36912         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX, gl_FUNC_FNMATCH_GNU): Use a
36913         shell variable gl_fnmatch_required to detect which variant is
36914         requested.
36915         (_AC_FUNC_FNMATCH_IF, _AC_LIBOBJ_FNMATCH): Remove macros. Inlined into
36916         gl_FUNC_FNMATCH_POSIX.
36917         * gnulib-tool (func_create_testdir, func_create_megatestdir): Don't
36918         exclude fnmatch-posix.
36919
36920 2009-05-02  Bruno Haible  <bruno@clisp.org>
36921
36922         Relicense mbsrtowcs and strnlen1 under LGPLv2+.
36923         * modules/mbsrtowcs (License): Change to LGPLv2+.
36924         * modules/strnlen1 (License): Likewise.
36925         Reported by Simon Josefsson.
36926
36927 2009-05-02  Bruno Haible  <bruno@clisp.org>
36928
36929         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Say "guessing no" instead of
36930         "cross".
36931         (gl_FUNC_FNMATCH_POSIX, gl_FUNC_FNMATCH_GNU): Update. Don't assume that
36932         gnulib-tool was called with option --source-base=lib.
36933
36934 2009-05-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
36935
36936         Use automake *-local hooks without commands, for extensibility.
36937         * modules/localcharset (Makefile.am): Rename install-exec-local
36938         rule to install-exec-localcharset, and make it a prerequisite of
36939         install-exec-local.  Likewise, rename the uninstall-local rule to
36940         uninstall-localcharset, and make it a prerequisite of the former.
36941
36942 2009-05-01  Bruno Haible  <bruno@clisp.org>
36943
36944         * lib/wchar.in.h (wcsnrtombs): Define if REPLACE_WCSNRTOMBS is 1.
36945         * m4/wcsnrtombs.m4 (gl_FUNC_WCSRTOMBS): Invoke gl_MBSTATE_T_BROKEN, and
36946         set REPLACE_WCSNRTOMBS if mbstate_t must be replaced.
36947         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCSNRTOMBS.
36948         * modules/wchar (Makefile.am): Substitute REPLACE_WCSNRTOMBS.
36949         * modules/wcsnrtombs (Files): Add m4/mbrtowc.m4, m4/locale-ja.m4,
36950         m4/locale-zh.m4, m4/codeset.m4.
36951
36952         * m4/wcsrtombs.m4 (gl_FUNC_WCSNRTOMBS): Invoke gl_MBSTATE_T_BROKEN, and
36953         set REPLACE_WCSRTOMBS if mbstate_t must be replaced.
36954         * modules/wcsrtombs (Files): Add m4/mbrtowc.m4, m4/locale-ja.m4,
36955         m4/locale-zh.m4.
36956
36957         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Invoke gl_MBSTATE_T_BROKEN, and set
36958         REPLACE_WCRTOMB if mbstate_t must be replaced.
36959         * modules/wcrtomb (Files): Add m4/mbrtowc.m4.
36960         Reported by Jens Rehsack <rehsack@googlemail.com> via Eric Blake.
36961
36962 2009-05-01  Bruno Haible  <bruno@clisp.org>
36963
36964         Avoid compiler warnings when redefining macros defined by <libintl.h>.
36965         * lib/gettext.h [!ENABLE_NLS] (gettext, dgettext, dcgettext, ngettext,
36966         dngettext, dcngettext, textdomain, bindtextdomain,
36967         bind_textdomain_codeset): Undefine before redefining.
36968
36969 2009-04-30  Bruno Haible  <bruno@clisp.org>
36970
36971         Fix bug introduced on 2009-04-25.
36972         * lib/math.in.h (gl_signbitf_OPTIMIZED_MACRO,
36973         gl_signbitd_OPTIMIZED_MACRO, gl_signbitl_OPTIMIZED_MACRO): New macros.
36974         * lib/signbitf.c (gl_signbitd): Undefine if gl_signbitf_OPTIMIZED_MACRO
36975         is defined.
36976         * lib/signbitd.c (gl_signbitd): Undefine if gl_signbitd_OPTIMIZED_MACRO
36977         is defined.
36978         * lib/signbitl.c (gl_signbitd): Undefine if gl_signbitl_OPTIMIZED_MACRO
36979         is defined.
36980         Reported by Elbert_Pol <elbert.pol@gmail.com>.
36981
36982 2009-04-28  Bruno Haible  <bruno@clisp.org>
36983
36984         Comment tweaks.
36985         * lib/unistr.h (u*_cmp2): Clarify what memcmp2 is.
36986         * lib/uninorm.h (u*_normxfrm): Fix description of return value.
36987         * lib/unicase.h (u*_casexfrm): Likewise.
36988         Reported by Paolo Bonzini.
36989
36990 2009-04-28  Bruno Haible  <bruno@clisp.org>
36991
36992         Fix a compilation error.
36993         * lib/mbsrtowcs-state.c (_gl_mbsrtowcs_state): Fix initializer.
36994         * lib/wcsrtombs-state.c (_gl_wcsrtombs_state): Likewise.
36995         Reported by Jim Meyering.
36996
36997 2009-04-27  Bruno Haible  <bruno@clisp.org>
36998
36999         New module 'libunistring'.
37000         * modules/libunistring: New file.
37001         * m4/libunistring.m4: New file.
37002         * MODULES.html.sh (Unicode string functions): Add it.
37003
37004 2009-04-27  Eric Blake  <ebb9@byu.net>
37005
37006         maint.mk: allow package-specific header to provide <config.h>
37007         * top/maint.mk (sc_require_config_h): New variable.
37008         (sc_require_config_h, sc_require_config_h_first): Use it.
37009
37010 2009-04-27  Simon Josefsson  <simon@josefsson.org>
37011
37012         * top/maint.mk (sc_avoid_if_before_free): Except
37013         useless-if-before-free script.
37014
37015 2009-04-27  Eric Blake  <ebb9@byu.net>
37016
37017         maintainer-makefile: depend on all required helper scripts
37018         * modules/maintainer-makefile (Depends-on): Add vc-list-files and
37019         useless-if-before-free.
37020         * top/maint.mk (VC_LIST, sc_avoid_if_before_free): Use local
37021         version, rather than assuming gnulib checkout is available.
37022         Reported by Simen Josefsson.
37023
37024 2009-04-26  Bruno Haible  <bruno@clisp.org>
37025
37026         Make the lib vs. lib64 recognition work on openSUSE 11 with "gcc -m32".
37027         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): Ignore paths that end in
37028         "../" or "..".
37029
37030 2009-04-26  Bruno Haible  <bruno@clisp.org>
37031
37032         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Accept a fifth argument.
37033         * m4/libsigsegv.m4 (gl_LIBSIGSEGV): Simplify by using
37034         AC_LIB_HAVE_LINKFLAGS.
37035
37036 2009-04-26  Bruno Haible  <bruno@clisp.org>
37037
37038         Simplify calling convention of u*_conv_from_encoding.
37039         * lib/uniconv.h (u8_conv_from_encoding, u16_conv_from_encoding,
37040         u32_conv_from_encoding): Expect a resultbuf argument and return the
37041         result directly as a pointer.
37042         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Likewise.
37043         * lib/uniconv/u-conv-from-enc.h (FUNC): Likewise.
37044         * lib/uniconv/u-strconv-from-enc.h (FUNC): Update.
37045         * lib/unicase/ulc-casecmp.c (ulc_u8_casefold): Update.
37046         * lib/unicase/ulc-casexfrm.c (ulc_casexfrm): Update.
37047         * lib/unilbrk/ulc-possible-linebreaks.c (ulc_possible_linebreaks):
37048         Update.
37049         * lib/unilbrk/ulc-width-linebreaks.c (ulc_width_linebreaks): Update.
37050         * lib/uniwbrk/ulc-wordbreaks.c (ulc_wordbreaks): Update.
37051         * lib/vasnprintf.c (VASNPRINTF): Update.
37052         * tests/uniconv/test-u8-conv-from-enc.c (main): Update.
37053         * tests/uniconv/test-u16-conv-from-enc.c (main): Update.
37054         * tests/uniconv/test-u32-conv-from-enc.c (main): Update.
37055         * NEWS: Mention the change.
37056
37057 2009-04-26  Bruno Haible  <bruno@clisp.org>
37058
37059         Simplify calling convention of u*_conv_to_encoding.
37060         * lib/uniconv.h (u8_conv_to_encoding, u16_conv_to_encoding,
37061         u32_conv_to_encoding): Expect a resultbuf argument and return the
37062         result directly as a pointer.
37063         * lib/uniconv/u8-conv-to-enc.c (u8_conv_to_encoding): Likewise.
37064         * lib/uniconv/u-conv-to-enc.h (FUNC): Likewise. Preserve errno while
37065         freeing scaled_offsets if mem_iconveha failed.
37066         * lib/unicase/u-casexfrm.h (FUNC): Update.
37067         * lib/uninorm/u-normxfrm.h (FUNC): Update.
37068         * lib/vasnprintf.c (VASNPRINTF): Update.
37069         * tests/uniconv/test-u8-conv-to-enc.c (main): Update.
37070         * tests/uniconv/test-u16-conv-to-enc.c (main): Update.
37071         * tests/uniconv/test-u32-conv-to-enc.c (main): Update.
37072         * NEWS: Mention the change.
37073
37074 2009-04-26  Bruno Haible  <bruno@clisp.org>
37075
37076         Avoid test failures on AIX and OSF/1.
37077         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Avoid calling
37078         malloc(0).
37079         * lib/uniconv/u8-conv-to-enc.c (u8_conv_to_encoding): Likewise.
37080         * lib/unilbrk/ulc-possible-linebreaks.c (ulc_possible_linebreaks):
37081         Likewise.
37082         * lib/unilbrk/ulc-width-linebreaks.c (ulc_width_linebreaks): Likewise.
37083         * lib/uniwbrk/ulc-wordbreaks.c (ulc_wordbreaks): Likewise.
37084         * lib/uniconv/u-conv-to-enc.h (FUNC): Likewise. Fix memory leak.
37085         * lib/unistr/u-cpy-alloc.h (FUNC): Call malloc(1) instead of malloc(0).
37086         * doc/posix-functions/malloc.texi: Document the portability problem
37087         related to malloc(0).
37088
37089 2009-04-26  Bruno Haible  <bruno@clisp.org>
37090
37091         * modules/unistr/u8-cpy-alloc (Depends-on): Add malloc-posix.
37092         * modules/unistr/u16-cpy-alloc (Depends-on): Likewise.
37093         * modules/unistr/u32-cpy-alloc (Depends-on): Likewise.
37094
37095 2009-04-25  Bruno Haible  <bruno@clisp.org>
37096
37097         Avoid link error when creating a namespace clean library.
37098         * lib/math.in.h (gl_signbitf, gl_signbitd, gl_signbitl): Don't define
37099         as macro with arguments if already defined as an alias.
37100         * lib/signbitf.c (gl_signbitf): Don't undefine.
37101         * lib/signbitd.c (gl_signbitd): Don't undefine.
37102         * lib/signbitl.c (gl_signbitl): Don't undefine.
37103
37104 2009-04-25  Jim Meyering  <meyering@redhat.com>
37105
37106         vc-list-files: fix another quoting bug
37107         * build-aux/vc-list-files: Avoid sed backslash expansion
37108         of pathological directory names.
37109
37110 2009-04-25  Eric Blake  <ebb9@byu.net>
37111
37112         vc-list-files: fix shell quoting error
37113         * build-aux/vc-list-files: Protect against $ in $dir.  Normalize
37114         timestamp.
37115
37116 2009-04-25  Jim Meyering  <meyering@redhat.com>
37117
37118         vc-list-files: restore lost functionality with subdir argument
37119         * build-aux/vc-list-files: When given a non-"." sub-directory
37120         argument, substitute the $dir/ prefix back onto each resulting name.
37121         Otherwise, coreutils' root_tests check would fail.
37122
37123 2009-04-24  Eric Blake  <ebb9@byu.net>
37124
37125         vc-list-files: ignore git symlinks
37126         * build-aux/vc-list-files (.git): Use ls-tree and a filter, rather
37127         than ls-files, to ignore git symlinks.
37128
37129         maint.mk: import improvements from m4
37130         * top/maint.mk (VC-tag): Use signing key from cfg.mk.
37131         (move_if_change): Delete unused macro.
37132         (news-date-check, vc-diff-check): Support VPATH builds.
37133         (announcement): Likewise.  Split --bootstrap-tools list...
37134         (boostrap-tools): ...into separate list, which can be overridden
37135         in cfg.mk.
37136         (sc_avoid_if_before_free): Point to $(gnulib_dir), rather than
37137         requiring dependency on useless-if-before-free module.
37138         (VC_LIST, VC_LIST_EXCEPT): Likewise for vc-list-files module.
37139         Support VPATH builds.
37140
37141 2009-04-24  Jim Meyering  <meyering@redhat.com>
37142
37143         maint.mk: remove coreutils-specific rules and variables
37144         * top/maint.mk (bin, taint-distcheck, coreutils-path-check, t): Remove.
37145         (fake_home, install-transform-check, my-instcheck, pfx, TMPDIR): Remove.
37146         (t_prefix, t_taint, tp, warn_cflags, write_loser, my-distcheck): Remove.
37147
37148         maint.mk: remove obsolete rule
37149         * top/maint.mk (rel-check): Remove rule.
37150         (WGET, WGETFLAGS): Remove now-unused variables.
37151
37152 2009-04-24  Simon Josefsson  <simon@josefsson.org>
37153
37154         * top/maint.mk (makefile-check): Renamed to sc_makefile_check for
37155         consistency.
37156
37157         * modules/vc-list-files-tests (TESTS_ENVIRONMENT): Use
37158         '$(PATH_SEPARATOR)' instead of ':'.
37159
37160 2009-04-24  Simon Josefsson  <simon@josefsson.org>
37161
37162         * lib/getopt1.c (main): Use 'const' for static array.
37163
37164 2009-04-24  Simon Josefsson  <simon@josefsson.org>
37165
37166         * top/maint.mk: Sync with coreutils.
37167         * NEWS: Explain incompatibilities.
37168
37169 2009-04-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
37170             Bruno Haible  <bruno@clisp.org>
37171
37172         Fix cross-compilation results.
37173         * m4/btowc.m4 (gl_FUNC_BTOWC): Use no-op statement, rather than empty
37174         statement, as third argument of AC_TRY_RUN.
37175         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
37176         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL):
37177         Likewise.
37178         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
37179         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION, gl_WCSRTOMBS_NULL):
37180         Likewise.
37181         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
37182         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise. Update for AIX 4.3.
37183         * doc/posix-functions/wcrtomb.texi: Mention the bug on AIX 4.3.
37184
37185 2009-04-20  Bruno Haible  <bruno@clisp.org>
37186
37187         Avoid test failure on mingw.
37188         * tests/uniwidth/test-uc_width2.sh: Convert newlines in output.
37189
37190 2009-04-20  Bruno Haible  <bruno@clisp.org>
37191
37192         Avoid compilation error on mingw.
37193         * modules/localename-tests (Depends-on): Add locale.
37194
37195 2009-04-19  Bruno Haible  <bruno@clisp.org>
37196
37197         Support for building a shared library on Windows platforms.
37198         * tests/uninorm/test-nfc.c (n): Don't define if WOE32DLL.
37199         (main): Test the presence of UNINORM_NFC here.
37200         * tests/uninorm/test-nfd.c (n): Don't define if WOE32DLL.
37201         (main): Test the presence of UNINORM_NFD here.
37202         * tests/uninorm/test-nfkc.c (n): Don't define if WOE32DLL.
37203         (main): Test the presence of UNINORM_NFKC here.
37204         * tests/uninorm/test-nfkd.c (n): Don't define if WOE32DLL.
37205         (main): Test the presence of UNINORM_NFKD here.
37206
37207 2009-04-19  Bruno Haible  <bruno@clisp.org>
37208
37209         Avoid a compiler warning.
37210         * tests/uninorm/test-u32-normalize-big.c (read_normalization_test_file):
37211         Change type of variable 'sequence'.
37212
37213 2009-04-19  Bruno Haible  <bruno@clisp.org>
37214
37215         * modules/configmake (Makefile.am): When the contents of configmake.h
37216         does not change, arrange to preserve its modification time.
37217
37218 2009-04-17  Simon Josefsson  <simon@josefsson.org>
37219
37220         * top/maint.mk (PO_DOMAIN): New variable, allows overriding of
37221         gettext domain.
37222
37223 2009-04-16  Jim Meyering  <meyering@redhat.com>
37224
37225         useless-if-before-free: improve conversion code
37226         * build-aux/useless-if-before-free: Adjust code-in-comment to match
37227         "...!= 0" as well as "...!= NULL".  emacs has one of the former.
37228
37229 2009-04-14  Bruno Haible  <bruno@clisp.org>
37230
37231         * modules/fcntl (Depends-on): Add extensions.
37232         * m4/fcntl_h.m4 (gl_FCNTL_H): Add a comment.
37233
37234 2009-04-12  Ben Pfaff  <blp@gnu.org>
37235
37236         Make fcntl module detect O_NOATIME, O_NOFOLLOW on GNU/Linux.
37237         * m4/fcntl_h.m4 (gl_FCNTL_H): Require AC_USE_SYSTEM_EXTENSIONS.
37238
37239 2009-03-20  Ben Pfaff  <blp@gnu.org>
37240
37241         Make rename replace existing destinations on Windows.
37242         * m4/rename.m4: Add test for Mingw.
37243         * lib/rename.c: Add rename replacement that uses MoveFileEx with
37244         MOVEFILE_REPLACE_EXISTING to replace existing destination files.
37245         * doc/posix-functions/rename.texi: Document.
37246
37247 2009-04-10  Bruno Haible  <bruno@clisp.org>
37248
37249         New include file "iconveh.h".
37250         * lib/iconveh.h: New file, extracted from lib/striconveh.h.
37251         * lib/striconveh.h: Include it.
37252         (enum iconv_ilseq_handler): Remove definition.
37253         * lib/striconveha.h: Include <stddef.h> and iconveh.h instead of
37254         striconveh.h.
37255         * lib/striconveha.c: Include striconveh.h.
37256         * lib/uniconv.h: Include iconveh.h instead of striconveh.h.
37257         * modules/striconveh (Files): Add lib/iconveh.h.
37258         * modules/uniconv/base (Files): Add lib/iconveh.h. Remove
37259         lib/striconveh.h.
37260
37261 2009-04-10  Bruno Haible  <bruno@clisp.org>
37262
37263         * lib/uniconv.h: Update comment.
37264
37265 2009-04-10  Bruno Haible  <bruno@clisp.org>
37266
37267         * lib/unistr/u8-mbtouc-aux.c: Inside libunistring, define the function
37268         always.
37269         * lib/unistr/u8-mbtouc-unsafe-aux.c: Likewise.
37270         * lib/unistr/u16-mbtouc-aux.c: Likewise.
37271         * lib/unistr/u16-mbtouc-unsafe-aux.c: Likewise.
37272         * lib/unistr/u8-mbtouc.c: Inside libunistring, include
37273         "unistring-notinline.h", so that the function gets defined always.
37274         * lib/unistr/u8-mbtouc-unsafe.c: Likewise.
37275         * lib/unistr/u8-uctomb.c: Likewise.
37276         * lib/unistr/u16-mbtouc.c: Likewise.
37277         * lib/unistr/u16-mbtouc-unsafe.c: Likewise.
37278         * lib/unistr/u16-uctomb.c: Likewise.
37279         * lib/unistr/u32-mbtouc.c: Likewise.
37280         * lib/unistr/u32-mbtouc-unsafe.c: Likewise.
37281         * lib/unistr/u32-uctomb.c: Likewise.
37282
37283 2009-04-10  Bruno Haible  <bruno@clisp.org>
37284
37285         Mark 'utime' obsolete.
37286         * modules/utime (Status, Notice): New sections.
37287         Suggested by Jim Meyering.
37288
37289         Fix cross-compile guess for utime test.
37290         * m4/utime.m4 (AC_FUNC_UTIME_NULL): Add definition from newest unstable
37291         autoconf.
37292         * doc/posix-functions/utime.texi: Give more precisions.
37293         Reported by Jan <ipif@ymail.com>.
37294
37295 2009-04-09  Kamil Dudka  <kdudka@redhat.com>
37296
37297         filevercmp: correct today's change
37298         * lib/filevercmp.c: Also handle coreutils' test inputs.
37299         * tests/test-filevercmp.c: Add inputs from one of coreutils' test scripts.
37300
37301         Fix regression in 'filevercmp' module. Thanks Sven Joachim
37302         for reporting it.
37303         * lib/filevercmp.c: Special handle for "", "." and "..".
37304         * tests/test-filevercmp.c: Enlarge the set suite.
37305
37306 2009-04-07  Jim Meyering  <meyering@redhat.com>
37307
37308         useless-if-before-free: show how to remove braced useless free, too
37309         * build-aux/useless-if-before-free: still only in a comment, though.
37310
37311 2009-04-07  Reuben Thomas  <rrt@sc3d.org>
37312
37313         maint.mk: import changes to syntax-check macros from coreutils
37314         * top/maint.mk (_prohibit_regexp, _header_without_use): Define.
37315         Use them in the relevant macros.
37316
37317 2009-04-06  Bruno Haible  <bruno@clisp.org>
37318
37319         Fix unportable use of bit-fields.
37320         * lib/unicase/special-casing.h (struct special_casing_rule): Change the
37321         bit-field type from 'int' to 'signed int'. Otherwise Solaris cc,
37322         AIX xlc, and OSF/1 cc interpret it as 'unsigned int'.
37323
37324 2009-04-06  Bruno Haible  <bruno@clisp.org>
37325
37326         Avoid test failures on AIX and OSF/1.
37327         * tests/unicase/test-u8-casefold.c (check): Account for the possibility
37328         that malloc(0) = NULL.
37329         * tests/unicase/test-u8-tolower.c (check): Likewise.
37330         * tests/unicase/test-u8-totitle.c (check): Likewise.
37331         * tests/unicase/test-u8-toupper.c (check): Likewise.
37332         * tests/unicase/test-u16-casefold.c (check): Likewise.
37333         * tests/unicase/test-u16-tolower.c (check): Likewise.
37334         * tests/unicase/test-u16-totitle.c (check): Likewise.
37335         * tests/unicase/test-u16-toupper.c (check): Likewise.
37336         * tests/unicase/test-u32-casefold.c (check): Likewise.
37337         * tests/unicase/test-u32-tolower.c (check): Likewise.
37338         * tests/unicase/test-u32-totitle.c (check): Likewise.
37339         * tests/unicase/test-u32-toupper.c (check): Likewise.
37340         * tests/uninorm/test-u8-nfc.c (check): Likewise.
37341         * tests/uninorm/test-u8-nfd.c (check): Likewise.
37342         * tests/uninorm/test-u8-nfkc.c (check): Likewise.
37343         * tests/uninorm/test-u8-nfkd.c (check): Likewise.
37344         * tests/uninorm/test-u16-nfc.c (check): Likewise.
37345         * tests/uninorm/test-u16-nfd.c (check): Likewise.
37346         * tests/uninorm/test-u16-nfkc.c (check): Likewise.
37347         * tests/uninorm/test-u16-nfkd.c (check): Likewise.
37348         * tests/uninorm/test-u32-nfc.c (check): Likewise.
37349         * tests/uninorm/test-u32-nfd.c (check): Likewise.
37350         * tests/uninorm/test-u32-nfkc.c (check): Likewise.
37351         * tests/uninorm/test-u32-nfkd.c (check): Likewise.
37352
37353 2009-04-05  Bruno Haible  <bruno@clisp.org>
37354
37355         Work around an autoconf limitation.
37356         * gnulib-tool (func_emit_lib_Makefile_am): Omit the "Reproduce by"
37357         comment line if it would be longer than 3 KB.
37358
37359 2009-04-05  Bruno Haible  <bruno@clisp.org>
37360
37361         Avoid test failure with libiconv-1.13.
37362         * tests/test-striconveh.c (main): Allow result of libiconv 1.13 as one
37363         of the expected test results.
37364
37365 2009-04-05  Bruno Haible  <bruno@clisp.org>
37366
37367         * gnulib-tool (func_emit_lib_Makefile_am): Don't add the library to
37368         noinst_LTLIBRARIES if the Makefile.am in the same directory specifies
37369         that it should be installed.
37370
37371 2009-04-05  Bruno Haible  <bruno@clisp.org>
37372
37373         * gnulib-tool: New option --copy-file.
37374         (func_usage): Document it.
37375         (func_dest_tmpfilename): Moved out of func_import.
37376         (func_add_file, func_update_file): New functions, extracted from
37377         func_import.
37378         (func_import): Update.
37379
37380 2009-04-05  Karl Berry  <karl@gnu.org>
37381
37382         * README: prominently mention gnulib-tool.
37383         Rearrange sections so getting the code is near the top.
37384
37385 2009-04-05  Bruno Haible  <bruno@clisp.org>
37386
37387         * lib/unicase.h: Mention u*_cmp2.
37388         * lib/unicase/u-casecmp.h (FUNC): Invoke U_CMP2 instead of U_CMP.
37389         * lib/unicase/u8-casecmp.c: Use u8_cmp2 instead of u8_cmp.
37390         * lib/unicase/ulc-casecmp.c: Likewise.
37391         * lib/unicase/u16-casecmp.c: Use u16_cmp2 instead of u16_cmp.
37392         * lib/unicase/u32-casecmp.c: Use u32_cmp2 instead of u32_cmp.
37393         * modules/unicase/u8-casecmp (Depends-on): Add unistr/u8-cmp2, remove
37394         unistr/u8-cmp.
37395         * modules/unicase/ulc-casecmp (Depends-on): Likewise.
37396         * modules/unicase/u16-casecmp (Depends-on): Add unistr/u16-cmp2, remove
37397         unistr/u16-cmp.
37398         * modules/unicase/u32-casecmp (Depends-on): Add unistr/u32-cmp2, remove
37399         unistr/u32-cmp.
37400
37401         * lib/uninorm.h: Mention u*_cmp2.
37402         * lib/uninorm/u-normcmp.h (FUNC): Invoke U_CMP2 instead of U_CMP.
37403         * lib/uninorm/u8-normcmp.c: Use u8_cmp2 instead of u8_cmp.
37404         * lib/uninorm/u16-normcmp.c: Use u16_cmp2 instead of u16_cmp.
37405         * lib/uninorm/u32-normcmp.c: Use u32_cmp2 instead of u32_cmp.
37406         * modules/uninorm/u8-normcmp (Depends-on): Add unistr/u8-cmp2, remove
37407         unistr/u8-cmp.
37408         * modules/uninorm/u16-normcmp (Depends-on): Add unistr/u16-cmp2, remove
37409         unistr/u16-cmp.
37410         * modules/uninorm/u32-normcmp (Depends-on): Add unistr/u32-cmp2, remove
37411         unistr/u32-cmp.
37412
37413         New module 'unistr/u32-cmp2'.
37414         * lib/unistr/u32-cmp2.c: New file.
37415         * modules/unistr/u32-cmp2: New file.
37416
37417         New module 'unistr/u16-cmp2'.
37418         * lib/unistr/u16-cmp2.c: New file.
37419         * modules/unistr/u16-cmp2: New file.
37420
37421         New module 'unistr/u8-cmp2'.
37422         * lib/unistr.h (u8_cmp2, u16_cmp2, u32_cmp2): New declarations.
37423         * lib/unistr/u8-cmp2.c: New file.
37424         * lib/unistr/u-cmp2.h: New file.
37425         * modules/unistr/u8-cmp2: New file.
37426
37427 2009-04-05  Bruno Haible  <bruno@clisp.org>
37428
37429         * lib/unictype.h (uc_property_is_valid): New macro.
37430         * tests/unictype/test-pr_byname.c (main): Use it.
37431
37432         * lib/unistr.h: Doc fixes.
37433         * lib/uniconv.h: Doc fixes.
37434         * lib/unictype.h: Doc fixes.
37435
37436 2009-04-03  Paul Eggert  <eggert@cs.ucla.edu>
37437
37438         Port coreutils 7.2 to Solaris 8.
37439
37440         * modules/arpa_inet (arpa/inet.h): Depend on arpa_inet.in.h.
37441         * m4/inet_ntop.m4 (gl_INET_NTOP): Search for inet_ntop in -lnsl,
37442         for Solaris 8.  This is a bit of a hack, as it means it's the
37443         caller's responsibility to add -lnsl if needed, but most likely it
37444         won't be needed since only getaddrinfo uses this and getaddrinfo
37445         isn't needed on Solaris 8.
37446
37447         * modules/fnmatch (Depends-on): Add mbsrtowcs, to fix a porting
37448         problem to Solaris 8 encountered with coreutils 7.2, which
37449         resulted in a message "fnmatch.c:292: warning: passing argument 4
37450         of 'mbsrtowcs' from incompatible pointer type".  Also, add mbsinit
37451         at the suggestion of Bruno Haible, since fnmatch uses mbsinit.
37452
37453 2009-04-03  Simon Josefsson  <simon@josefsson.org>
37454
37455         * m4/ld-version-script.m4: Add FIXME comment.
37456
37457 2009-04-02  Simon Josefsson  <simon@josefsson.org>
37458
37459         * doc/ld-output-def.texi: Use DLL_VERSION instead of confusing
37460         SOVERSION variable.
37461
37462 2009-04-02  Bruno Haible  <bruno@clisp.org>
37463
37464         * Makefile (info, html, dvi, pdf): Combine the rules.
37465         Suggested by Jim Meyering.
37466
37467 2009-04-01  Bruno Haible  <bruno@clisp.org>
37468
37469         * Makefile (info, html, dvi, pdf): New targets.
37470         Reported by Reuben Thomas <rrt@sc3d.org>.
37471
37472 2009-04-01  Bruno Haible  <bruno@clisp.org>
37473
37474         * doc/gnulib-tool.texi (Invoking gnulib-tool): Document how gnulib-tool
37475         can be put into PATH.
37476         Reported by Reuben Thomas <rrt@sc3d.org>. Suggested by Karl Berry.
37477
37478 2009-04-01  Bruno Haible  <bruno@clisp.org>
37479
37480         * doc/lib-symbol-visibility.texi: Follow texinfo style conventions.
37481
37482 2009-04-01  Bruno Haible  <bruno@clisp.org>
37483
37484         Rename module 'visibility'.
37485         * modules/lib-symbol-visibility: Renamed from modules/visibility.
37486         * doc/lib-symbol-visibility.texi: Renamed from visibility.texi.
37487         * doc/gnulib.texi: Update.
37488         * MODULES.html.sh (Misc): Update.
37489         * NEWS: Mention the change.
37490
37491 2009-04-01  Simon Josefsson  <simon@josefsson.org>
37492
37493         * modules/lib-msvc-compat: New module.  Thanks to Bruno Haible
37494         <bruno@clisp.org>, Ralf Wildenhues <Ralf.Wildenhues@gmx.de>, and
37495         Eric Blake <ebb9@byu.net> for review.
37496         * MODULES.html.sh: Add lib-msvc-compat.
37497         * doc/gnulib.texi: Link to new section.
37498         * m4/ld-output-def.m4: New file.
37499         * doc/ld-output-def.texi: New file.
37500
37501 2009-04-01  Simon Josefsson  <simon@josefsson.org>
37502
37503         Rename ld-version-script to lib-symbol-versions.  Suggested by
37504         Bruno Haible <bruno@clisp.org>.
37505         * modules/ld-version-script: Renamed to lib-symbol-versions.
37506         * doc/ld-version-script.texi: Fix module name.
37507         * MODULES.html.sh: Add lib-symbol-versions.
37508
37509 2009-03-31  Simon Josefsson  <simon@josefsson.org>
37510
37511         * modules/u64-tests: New file.
37512         * tests/test-u64.c: New file.
37513
37514 2009-03-04  Simon Josefsson  <simon@josefsson.org>
37515
37516         * MODULES.html.sh: Mention u64.
37517         * modules/u64: New module.
37518         * modules/crypto/sha512: Depend on u64 module instead of providing
37519         u64.h.
37520
37521 2009-03-27  Eric Blake  <ebb9@byu.net>
37522
37523         test-strerror: make debugging EAI_SYSTEM easier
37524         * modules/getaddrinfo-tests (Depends-on): Add strerror.
37525         * test-getaddrinfo.c (simple) [ENABLE_DEBUGGING]: Report errno if
37526         failure was EAI_SYSTEM.
37527
37528 2009-03-25  Bruno Haible  <bruno@clisp.org>
37529
37530         Fix a problem with --enable-relocatable on Solaris 7.
37531         * modules/relocatable-prog-wrapper (Depends-on): Add environ. Needed
37532         since 2008-02-24.
37533
37534 2009-03-25  Eric Blake  <ebb9@byu.net>
37535
37536         test-sockets: avoid gcc warning
37537         * tests/test-sockets.c (main): Silence compiler warning.
37538
37539 2009-03-25  Paul Eggert  <eggert@cs.ucla.edu>
37540
37541         New modules nproc, pthread, contributed by Glen Lenker.
37542
37543         * MODULES.html.sh: Add pthread, nproc.
37544         * lib/nproc.c: New file.
37545         * lib/nproc.h: New file.
37546         * lib/pthread.in.h: New file.
37547         * m4/pthread.m4: New file.
37548         * modules/nproc: New file.
37549         * modules/pthread: New file.
37550
37551 2009-03-24  Simon Josefsson  <simon@josefsson.org>
37552
37553         * modules/unicase/locale-language-tests (test_locale_language_LDADD):
37554         New variable.
37555
37556 2009-03-24  Kamil Dudka  <kdudka@redhat.com>
37557
37558         filevercmp: handle simple~ and numbered.~3~ backup suffixes
37559         * lib/filevercmp.c: Handle simple~ and numbered.~3~ backup suffixes.
37560         * tests/test-filevercmp.c: Add tests for backup suffixes.
37561
37562 2009-03-24  Simon Josefsson  <simon@josefsson.org>
37563
37564         * modules/stdlib (Depends-on): Add stdint, needed when defining
37565         struct random_data on, for example, HP-UX 10.20.  Reported by
37566         Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
37567
37568 2009-03-24  Simon Josefsson  <simon@josefsson.org>
37569
37570         * lib/readline.c (readline): Call fflush on stdout after printing
37571         prompt.
37572
37573 2009-03-20  Bruno Haible  <bruno@clisp.org>
37574
37575         Remove dependency from 'close' module to -lws2_32 on native Windows.
37576         * lib/close-hook.h: New file.
37577         * lib/close-hook.c: New file.
37578         * lib/close.c: Include close-hook.h. Don't include <sys/socket.h>,
37579         w32sock.h.
37580         (_gl_close_fd_maybe_socket): Remove function.
37581         (rpl_close): Invoke execute_all_close_hooks instead of
37582         _gl_close_fd_maybe_socket.
37583         * lib/sockets.c: Include close-hook.h, w32sock.h.
37584         (close_fd_maybe_socket): New function, essentially from lib/close.c.
37585         (close_sockets_hook): New variable.
37586         (gl_sockets_startup): Register close_fd_maybe_socket as a hook.
37587         (gl_sockets_cleanup): Unregister it.
37588         * lib/unistd.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET): Remove macro.
37589         * m4/close.m4 (gl_REPLACE_CLOSE): Undo 2009-02-05 change.
37590         * modules/close-hook: New file.
37591         * modules/close (Files): Remove lib/w32sock.h.
37592         (Depends-on): Add close-hook.
37593         (Link): Remove section.
37594         * modules/sockets (Files): Add lib/w32sock.h.
37595         (Depends-on): Add close-hook.
37596         * modules/sys_socket (configure.ac): Remove gl_MODULE_INDICATOR
37597         invocation.
37598         * NEWS: Mention that LIB_CLOSE is gone.
37599
37600 2009-03-23  Eric Blake  <ebb9@byu.net>
37601
37602         signal-tests: test previous patch
37603         * tests/test-signal.c: New file.
37604         * modules/signal-tests: Likewise.
37605
37606         signal.h: always support 'volatile sig_atomic_t'
37607         * m4/signal_h.m4 (gl_SIGNAL_H): Check for AIX limitation.
37608         (gl_SIGNAL_H_DEFAULTS): Add a default.
37609         * modules/signal (Makefile.am): Substitute if needed.
37610         * lib/signal.in.h (sig_atomic_t): Redefine if needed, so that
37611         users can blindly add volatile.
37612         * doc/posix-headers/signal.texi (signal.h): Document it.
37613         Reported by Matthew Woehlke.
37614
37615 2009-03-23  Jim Meyering  <meyering@redhat.com>
37616
37617         pathmax: PATH_MAX: use pathconf only when available
37618         * lib/pathmax.h (PATH_MAX): Select the pathconf-using definition
37619         only if HAVE_PATHCONF is defined.  Patch by Sylvain Beucler.
37620         * m4/pathmax.m4 (gl_PATHMAX): Check for pathconf.
37621         This avoids a link failure in a PSP cross-compilation environment
37622         described in http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/17048
37623
37624         * lib/vasnprintf.c (divide): Fix typo in comment.
37625
37626 2009-03-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
37627
37628         * gnulib-tool (func_filter_filelist): Fix comment.
37629
37630 2009-03-20  Bruno Haible  <bruno@clisp.org>
37631
37632         Make sockets.h self-contained.
37633         * lib/sockets.c: Include sockets.h first.
37634         * lib/sockets.h: Include <sys/socket.h> before using the SOCKET type.
37635
37636 2009-03-19  Eric Blake  <ebb9@byu.net>
37637
37638         doc: mention more functions added in cygwin 1.7.0
37639         * doc/posix-functions/log2.texi: Mention recent cygwin 1.7.0
37640         addition.
37641         * doc/posix-functions/log2f.texi: Likewise.
37642
37643 2009-03-19  Jim Meyering  <meyering@redhat.com>
37644
37645         fsusage: avoid syntax error due to statement-before-declaration
37646         * lib/fsusage.c (get_fs_usage): Put warning-avoidance statement
37647         after all declarations.  Reported by Matthew Woehlke in
37648         http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/16231
37649
37650 2009-03-18  Eric Blake  <ebb9@byu.net>
37651
37652         build-aux/compile: sync from automake
37653         * build-aux/compile: New file, from automake.
37654         * config/srclist.txt: Mention build-aux/compile.
37655
37656 2009-03-17  Bruno Haible  <bruno@clisp.org>
37657
37658         * lib/git-merge-changelog.c: Fix typo in comment.
37659         Reported by Reuben Thomas <rrt@sc3d.org>.
37660
37661 2009-03-17  Reuben Thomas  <rrt@sc3d.org>
37662
37663         * m4/regex.m4: update and improve help for
37664         --without-included-regex.
37665
37666 2009-03-17  Simon Josefsson  <simon@josefsson.org>
37667
37668         * modules/isnanl-nolibm-tests (Files): Add tests/nan.h to avoid
37669         failure on missing include files.
37670
37671 2009-03-17  Eric Blake  <ebb9@byu.net>
37672
37673         doc: mention more functions added in cygwin 1.7.0
37674         * doc/posix-functions/fwprintf.texi: Mention recent cygwin 1.7.0
37675         addition.
37676         * doc/posix-functions/fwscanf.texi: Likewise.
37677         * doc/posix-functions/swprintf.texi: Likewise.
37678         * doc/posix-functions/swscanf.texi: Likewise.
37679         * doc/posix-functions/vfwprintf.texi: Likewise.
37680         * doc/posix-functions/vfwscanf.texi: Likewise.
37681         * doc/posix-functions/vswprintf.texi: Likewise.
37682         * doc/posix-functions/vswscanf.texi: Likewise.
37683         * doc/posix-functions/vwprintf.texi: Likewise.
37684         * doc/posix-functions/vwscanf.texi: Likewise.
37685         * doc/posix-functions/wcscasecmp.texi: Likewise.
37686         * doc/posix-functions/wcsdup.texi: Likewise.
37687         * doc/posix-functions/wcsftime.texi: Likewise.
37688         * doc/posix-functions/wcsncasecmp.texi: Likewise.
37689         * doc/posix-functions/wprintf.texi: Likewise.
37690         * doc/posix-functions/wscanf.texi: Likewise.
37691         * doc/glibc-functions/gethostbyname2.texi: Likewise.
37692
37693 2009-03-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
37694
37695         maint.mk: really add $(AM_MAKEFLAGS)
37696         * top/maint.mk (init-coverage, build-coverage): `$(AM_MAKEFLAGS)'
37697         was inadvertently omitted in the last commit.
37698         Spotted by Bruno Haible.
37699
37700         maint.mk: use $(MAKE) $(AM_MAKEFLAGS) not make
37701         * top/maint.mk (init-coverage, build-coverage): Use `$(MAKE)
37702         $(AM_MAKEFLAGS)' rather than plain `make'.
37703
37704         gnulib-tool: execute $MAKE not make
37705         * gnulib-tool: Default $MAKE to 'make'.
37706         (func_create_testdir, func_create_megatestdir): Use $MAKE rather
37707         than make.  Initialize $MAKE in the do-autobuild script.
37708
37709         gnulib-tool: use $MAKE not make in generated files
37710         * gnulib-tool (func_create_megatestdir): Use $MAKE rather than
37711         make, in generated files.  Initialize $MAKE in the do-autobuild
37712         script.
37713
37714         * top/GNUmakefile (_have-git-version-gen): Fix typo.
37715
37716         GNUmakefile: disable parallelism only for multiple, recursive targets
37717         * top/GNUmakefile (ALL_RECURSIVE_TARGETS): New macro; allow user
37718         additions in the Makefile.
37719         (AM_RECURSIVE_TARGETS): New macro, override only if not provided
37720         by Automake.
37721         (.NOTPARALLEL): Only disable parallel builds if multiple targets
37722         are listed on the command line and at least one of them is
37723         listed in $(ALL_RECURSIVE_TARGETS).
37724
37725 2009-03-14  Bruno Haible  <bruno@clisp.org>
37726
37727         * modules/unilbrk/u8-possible-linebreaks (Depends-on): Replace
37728         utf8-ucs4-unsafe with unistr/u8-mbtouc-unsafe.
37729         * modules/unilbrk/u8-width-linebreaks (Depends-on): Likewise.
37730         * modules/unilbrk/u16-possible-linebreaks (Depends-on): Replace
37731         utf16-ucs4-unsafe with unistr/u16-mbtouc-unsafe.
37732         * modules/unilbrk/u16-width-linebreaks (Depends-on): Likewise.
37733         * modules/unistr/u8-chr (Depends-on): Replace ucs4-utf8 with
37734         unistr/u8-uctomb.
37735         * modules/unistr/u8-strchr (Depends-on): Likewise.
37736         * modules/unistr/u8-strrchr (Depends-on): Likewise.
37737         * modules/unistr/u16-chr (Depends-on): Replace ucs4-utf16 with
37738         unistr/u16-uctomb.
37739         * modules/unistr/u16-strchr (Depends-on): Likewise.
37740         * modules/unistr/u16-strrchr (Depends-on): Likewise.
37741
37742 2009-03-12  Bruno Haible  <bruno@clisp.org>
37743
37744         Work around select() bug on Interix 3.5.
37745         * lib/sys_select.in.h (select): Also replace if REPLACE_SELECT is 1.
37746         * lib/select.c (rpl_select): Add an implementation for Unix platforms.
37747         * m4/select.m4: New file.
37748         * m4/sys_select_h.m4 (gl_SYS_SELECT_H_DEFAULTS): Initialize REPLACE_SELECT.
37749         * modules/sys_select (Makefile.am): Substitute REPLACE_SELECT.
37750         * modules/select (Files): Add m4/select.m4.
37751         (configure.ac): Move conditional to m4/select.m4. Invoke gl_FUNC_SELECT.
37752         * modules/nanosleep (Depends-on): Add select.
37753         * modules/poll (Depends-on): Likewise.
37754         * doc/posix-functions/select.texi: Mention the Interix bug.
37755         Reported by Markus Duft <mduft@gentoo.org>.
37756
37757         * lib/select.c: Renamed from lib/winsock-select.c.
37758         * modules/select (Files): Add lib/select.c, remove
37759         lib/winsock-select.c.
37760         (configure.ac): Update.
37761
37762 2009-03-12  Jim Meyering  <meyering@redhat.com>
37763
37764         avoid gcc warnings about unused macro definitions
37765         * lib/readtokens.c (STREQ): Remove unused definition.
37766         * lib/xmalloc.c (SIZE_MAX): Likewise.
37767         * lib/openat-die.c (N_): Likewise.
37768         * lib/mountlist.c (SIZE_MAX): Remove definition.
37769         Instead, include <stdint.h>.
37770         * lib/readutmp.c: Likewise.
37771         * modules/readutmp (Depends-on): Add stdint.
37772         * modules/mountlist (Depends-on): Add stdint.
37773         * lib/userspec.c (ISDIGIT): Move definition into #if block where used.
37774
37775 2009-03-10  Bruno Haible  <bruno@clisp.org>
37776
37777         Tests for module 'mbmemcasecoll'.
37778         * modules/mbmemcasecoll-tests: New file.
37779         * tests/test-mbmemcasecoll1.sh: New file.
37780         * tests/test-mbmemcasecoll2.sh: New file.
37781         * tests/test-mbmemcasecoll3.sh: New file.
37782         * tests/test-mbmemcasecoll.c: New file.
37783
37784         New module 'mbmemcasecoll'.
37785         * lib/mbmemcasecoll.h: New file.
37786         * lib/mbmemcasecoll.c: New file.
37787         * modules/mbmemcasecoll: New file.
37788
37789         * tests/test-mbmemcasecmp.h: New file, extracted from
37790         tests/test-mbmemcasecmp.c.
37791         * tests/test-mbmemcasecmp.c: Include test-mbmemcasecmp.h.
37792         (test_ascii, test_iso_8859_1, test_utf_8): Remove functions.
37793         (main): Update.
37794         * modules/mbmemcasecmp-tests (Files): Add tests/test-mbmemcasecmp.h.
37795
37796 2009-03-09  Bruno Haible  <bruno@clisp.org>
37797
37798         Tests for module 'mbmemcasecmp'.
37799         * modules/mbmemcasecmp-tests: New file.
37800         * tests/test-mbmemcasecmp1.sh: New file.
37801         * tests/test-mbmemcasecmp2.sh: New file.
37802         * tests/test-mbmemcasecmp3.sh: New file.
37803         * tests/test-mbmemcasecmp.c: New file.
37804
37805         New module 'mbmemcasecmp'.
37806         * lib/mbmemcasecmp.h: New file.
37807         * lib/mbmemcasecmp.c: New file.
37808         * modules/mbmemcasecmp: New file.
37809
37810 2009-03-09  Bruno Haible  <bruno@clisp.org>
37811
37812         Tests for module 'unicase/ulc-casecoll'.
37813         * modules/unicase/ulc-casecoll-tests: New file.
37814         * tests/unicase/test-ulc-casecoll1.sh: New file.
37815         * tests/unicase/test-ulc-casecoll2.sh: New file.
37816         * tests/unicase/test-ulc-casecoll.c: New file.
37817
37818         New module 'unicase/ulc-casecoll'.
37819         * lib/unicase.h (ulc_casecoll): New declaration.
37820         * lib/unicase/ulc-casecoll.c: New file.
37821         * modules/unicase/ulc-casecoll: New file.
37822
37823         New module 'unicase/ulc-casexfrm'.
37824         * lib/unicase.h (ulc_casexfrm): New declaration.
37825         * lib/unicase/ulc-casexfrm.c: New file.
37826         * modules/unicase/ulc-casexfrm: New file.
37827
37828 2009-03-09  Bruno Haible  <bruno@clisp.org>
37829
37830         Followup to 2008-12-22 commit: Remove unnecessary AC_FUNC_MBRTOWC
37831         invocations.
37832
37833         * m4/mbscasecmp.m4: Remove file.
37834         * modules/mbscasecmp (Files): Remove it and m4/mbrtowc.m4
37835         (configure.ac): Remove gl_FUNC_MBSCASECMP invocation.
37836
37837         * m4/mbscasestr.m4: Remove file.
37838         * modules/mbscasestr (Files): Remove it and m4/mbrtowc.m4
37839         (configure.ac): Remove gl_FUNC_MBSCASESTR invocation.
37840
37841         * m4/mbschr.m4: Remove file.
37842         * modules/mbschr (Files): Remove it and m4/mbrtowc.m4
37843         (configure.ac): Remove gl_FUNC_MBSCHR invocation.
37844
37845         * m4/mbscspn.m4: Remove file.
37846         * modules/mbscspn (Files): Remove it and m4/mbrtowc.m4
37847         (configure.ac): Remove gl_FUNC_MBSCSPN invocation.
37848
37849         * m4/mbslen.m4: Remove file.
37850         * modules/mbslen (Files): Remove it and m4/mbrtowc.m4
37851         (configure.ac): Remove gl_FUNC_MBSLEN invocation.
37852
37853         * m4/mbsncasecmp.m4: Remove file.
37854         * modules/mbsncasecmp (Files): Remove it and m4/mbrtowc.m4
37855         (configure.ac): Remove gl_FUNC_MBSNCASECMP invocation.
37856
37857         * m4/mbsnlen.m4: Remove file.
37858         * modules/mbsnlen (Files): Remove it and m4/mbrtowc.m4
37859         (configure.ac): Remove gl_FUNC_MBSNLEN invocation.
37860
37861         * m4/mbspbrk.m4: Remove file.
37862         * modules/mbspbrk (Files): Remove it and m4/mbrtowc.m4
37863         (configure.ac): Remove gl_FUNC_MBSPBRK invocation.
37864
37865         * m4/mbspcasecmp.m4: Remove file.
37866         * modules/mbspcasecmp (Files): Remove it and m4/mbrtowc.m4
37867         (configure.ac): Remove gl_FUNC_MBSPCASECMP invocation.
37868
37869         * m4/mbsrchr.m4: Remove file.
37870         * modules/mbsrchr (Files): Remove it and m4/mbrtowc.m4
37871         (configure.ac): Remove gl_FUNC_MBSRCHR invocation.
37872
37873         * m4/mbssep.m4: Remove file.
37874         * modules/mbssep (Files): Remove it and m4/mbrtowc.m4
37875         (configure.ac): Remove gl_FUNC_MBSSEP invocation.
37876
37877         * m4/mbsspn.m4: Remove file.
37878         * modules/mbsspn (Files): Remove it and m4/mbrtowc.m4
37879         (configure.ac): Remove gl_FUNC_MBSSPN invocation.
37880
37881         * m4/mbsstr.m4: Remove file.
37882         * modules/mbsstr (Files): Remove it and m4/mbrtowc.m4
37883         (configure.ac): Remove gl_FUNC_MBSSTR invocation.
37884
37885         * m4/mbstok_r.m4: Remove file.
37886         * modules/mbstok_r (Files): Remove it and m4/mbrtowc.m4
37887         (configure.ac): Remove gl_FUNC_MBSTOK_R invocation.
37888
37889         * m4/mbswidth.m4 (gl_MBSWIDTH): Remove AC_FUNC_MBRTOWC invocation.
37890
37891         * m4/quotearg.m4 (gl_QUOTEARG): Remove mbsinit test and
37892         AC_TYPE_MBSTATE_T, AC_FUNC_MBRTOWC invocations.
37893
37894         * modules/trim (configure.ac): Remove AC_FUNC_MBRTOWC invocation.
37895
37896 2009-03-08  Bruno Haible  <bruno@clisp.org>
37897
37898         Tests for module 'unicase/ulc-casecmp'.
37899         * modules/unicase/ulc-casecmp-tests: New file.
37900         * tests/unicase/test-ulc-casecmp1.sh: New file.
37901         * tests/unicase/test-ulc-casecmp2.sh: New file.
37902         * tests/unicase/test-ulc-casecmp.c: New file.
37903
37904         New module 'unicase/ulc-casecmp'.
37905         * lib/unicase.h (ulc_casecmp): New declaration.
37906         * lib/unicase/ulc-casecmp.c: New file.
37907         * lib/unicase/u-casecmp.h (FUNC): Change argument types to
37908         'const SRC_UNIT *'.
37909         * lib/unicase/u8-casecmp.c (SRC_UNIT): Define like UNIT.
37910         * lib/unicase/u16-casecmp.c (SRC_UNIT): Likewise.
37911         * lib/unicase/u32-casecmp.c (SRC_UNIT): Likewise.
37912         * modules/unicase/ulc-casecmp: New file.
37913
37914         Tests for module 'unicase/u32-is-cased'.
37915         * modules/unicase/u32-is-cased-tests: New file.
37916         * tests/unicase/test-u32-is-cased.c: New file.
37917
37918         Tests for module 'unicase/u16-is-cased'.
37919         * modules/unicase/u16-is-cased-tests: New file.
37920         * tests/unicase/test-u16-is-cased.c: New file.
37921
37922         Tests for module 'unicase/u8-is-cased'.
37923         * modules/unicase/u8-is-cased-tests: New file.
37924         * tests/unicase/test-u8-is-cased.c: New file.
37925         * tests/unicase/test-is-cased.h: New file.
37926
37927         New module 'unicase/u32-is-cased'.
37928         * lib/unicase/u32-is-cased.c: New file.
37929         * modules/unicase/u32-is-cased: New file.
37930
37931         New module 'unicase/u16-is-cased'.
37932         * lib/unicase/u16-is-cased.c: New file.
37933         * modules/unicase/u16-is-cased: New file.
37934
37935         New module 'unicase/u8-is-cased'.
37936         * lib/unicase/u8-is-cased.c: New file.
37937         * lib/unicase/u-is-cased.h: New file.
37938         * modules/unicase/u8-is-cased: New file.
37939
37940         Tests for module 'unicase/u32-is-casefolded'.
37941         * modules/unicase/u32-is-casefolded-tests: New file.
37942         * tests/unicase/test-u32-is-casefolded.c: New file.
37943
37944         Tests for module 'unicase/u16-is-casefolded'.
37945         * modules/unicase/u16-is-casefolded-tests: New file.
37946         * tests/unicase/test-u16-is-casefolded.c: New file.
37947
37948         Tests for module 'unicase/u8-is-casefolded'.
37949         * modules/unicase/u8-is-casefolded-tests: New file.
37950         * tests/unicase/test-u8-is-casefolded.c: New file.
37951         * tests/unicase/test-is-casefolded.h: New file.
37952
37953         New module 'unicase/u32-is-casefolded'.
37954         * lib/unicase/u32-is-casefolded.c: New file.
37955         * modules/unicase/u32-is-casefolded: New file.
37956
37957         New module 'unicase/u16-is-casefolded'.
37958         * lib/unicase/u16-is-casefolded.c: New file.
37959         * modules/unicase/u16-is-casefolded: New file.
37960
37961         New module 'unicase/u8-is-casefolded'.
37962         * lib/unicase/u8-is-casefolded.c: New file.
37963         * modules/unicase/u8-is-casefolded: New file.
37964
37965         Tests for module 'unicase/u32-is-titlecase'.
37966         * modules/unicase/u32-is-titlecase-tests: New file.
37967         * tests/unicase/test-u32-is-titlecase.c: New file.
37968
37969         Tests for module 'unicase/u16-is-titlecase'.
37970         * modules/unicase/u16-is-titlecase-tests: New file.
37971         * tests/unicase/test-u16-is-titlecase.c: New file.
37972
37973         Tests for module 'unicase/u8-is-titlecase'.
37974         * modules/unicase/u8-is-titlecase-tests: New file.
37975         * tests/unicase/test-u8-is-titlecase.c: New file.
37976         * tests/unicase/test-is-titlecase.h: New file.
37977
37978         New module 'unicase/u32-is-titlecase'.
37979         * lib/unicase/u32-is-titlecase.c: New file.
37980         * modules/unicase/u32-is-titlecase: New file.
37981
37982         New module 'unicase/u16-is-titlecase'.
37983         * lib/unicase/u16-is-titlecase.c: New file.
37984         * modules/unicase/u16-is-titlecase: New file.
37985
37986         New module 'unicase/u8-is-titlecase'.
37987         * lib/unicase/u8-is-titlecase.c: New file.
37988         * modules/unicase/u8-is-titlecase: New file.
37989
37990         Tests for module 'unicase/u32-is-lowercase'.
37991         * modules/unicase/u32-is-lowercase-tests: New file.
37992         * tests/unicase/test-u32-is-lowercase.c: New file.
37993
37994         Tests for module 'unicase/u16-is-lowercase'.
37995         * modules/unicase/u16-is-lowercase-tests: New file.
37996         * tests/unicase/test-u16-is-lowercase.c: New file.
37997
37998         Tests for module 'unicase/u8-is-lowercase'.
37999         * modules/unicase/u8-is-lowercase-tests: New file.
38000         * tests/unicase/test-u8-is-lowercase.c: New file.
38001         * tests/unicase/test-is-lowercase.h: New file.
38002
38003         New module 'unicase/u32-is-lowercase'.
38004         * lib/unicase/u32-is-lowercase.c: New file.
38005         * modules/unicase/u32-is-lowercase: New file.
38006
38007         New module 'unicase/u16-is-lowercase'.
38008         * lib/unicase/u16-is-lowercase.c: New file.
38009         * modules/unicase/u16-is-lowercase: New file.
38010
38011         New module 'unicase/u8-is-lowercase'.
38012         * lib/unicase/u8-is-lowercase.c: New file.
38013         * modules/unicase/u8-is-lowercase: New file.
38014
38015         Tests for module 'unicase/u32-is-uppercase'.
38016         * modules/unicase/u32-is-uppercase-tests: New file.
38017         * tests/unicase/test-u32-is-uppercase.c: New file.
38018
38019         Tests for module 'unicase/u16-is-uppercase'.
38020         * modules/unicase/u16-is-uppercase-tests: New file.
38021         * tests/unicase/test-u16-is-uppercase.c: New file.
38022
38023         Tests for module 'unicase/u8-is-uppercase'.
38024         * modules/unicase/u8-is-uppercase-tests: New file.
38025         * tests/unicase/test-u8-is-uppercase.c: New file.
38026         * tests/unicase/test-is-uppercase.h: New file.
38027
38028         New module 'unicase/u32-is-uppercase'.
38029         * lib/unicase/u32-is-uppercase.c: New file.
38030         * modules/unicase/u32-is-uppercase: New file.
38031
38032         New module 'unicase/u16-is-uppercase'.
38033         * lib/unicase/u16-is-uppercase.c: New file.
38034         * modules/unicase/u16-is-uppercase: New file.
38035
38036         New module 'unicase/u8-is-uppercase'.
38037         * lib/unicase/u8-is-uppercase.c: New file.
38038         * modules/unicase/u8-is-uppercase: New file.
38039
38040         New module 'unicase/u32-is-invariant'.
38041         * lib/unicase/u32-is-invariant.c: New file.
38042         * modules/unicase/u32-is-invariant: New file.
38043
38044         New module 'unicase/u16-is-invariant'.
38045         * lib/unicase/u16-is-invariant.c: New file.
38046         * modules/unicase/u16-is-invariant: New file.
38047
38048         New module 'unicase/u8-is-invariant'.
38049         * lib/unicase/u8-is-invariant.c: New file.
38050         * lib/unicase/invariant.h: New file.
38051         * lib/unicase/u-is-invariant.h: New file.
38052         * modules/unicase/u8-is-invariant: New file.
38053
38054         Tests for module 'unicase/u32-casecoll'.
38055         * modules/unicase/u32-casecoll-tests: New file.
38056         * tests/unicase/test-u32-casecoll.c: New file.
38057
38058         Tests for module 'unicase/u16-casecoll'.
38059         * modules/unicase/u16-casecoll-tests: New file.
38060         * tests/unicase/test-u16-casecoll.c: New file.
38061
38062         Tests for module 'unicase/u8-casecoll'.
38063         * modules/unicase/u8-casecoll-tests: New file.
38064         * tests/unicase/test-u8-casecoll.c: New file.
38065
38066         New module 'unicase/u32-casecoll'.
38067         * lib/unicase/u32-casecoll.c: New file.
38068         * modules/unicase/u32-casecoll: New file.
38069
38070         New module 'unicase/u16-casecoll'.
38071         * lib/unicase/u16-casecoll.c: New file.
38072         * modules/unicase/u16-casecoll: New file.
38073
38074         New module 'unicase/u8-casecoll'.
38075         * lib/unicase/u8-casecoll.c: New file.
38076         * lib/unicase/u-casecoll.h: New file.
38077         * modules/unicase/u8-casecoll: New file.
38078
38079         New module 'unicase/u32-casexfrm'.
38080         * lib/unicase/u32-casexfrm.c: New file.
38081         * modules/unicase/u32-casexfrm: New file.
38082
38083         New module 'unicase/u16-casexfrm'.
38084         * lib/unicase/u16-casexfrm.c: New file.
38085         * modules/unicase/u16-casexfrm: New file.
38086
38087         New module 'unicase/u8-casexfrm'.
38088         * lib/unicase/u8-casexfrm.c: New file.
38089         * lib/unicase/u-casexfrm.h: New file.
38090         * modules/unicase/u8-casexfrm: New file.
38091
38092         Tests for module 'unicase/u32-casecmp'.
38093         * modules/unicase/u32-casecmp-tests: New file.
38094         * tests/unicase/test-u32-casecmp.c: New file.
38095
38096         Tests for module 'unicase/u16-casecmp'.
38097         * modules/unicase/u16-casecmp-tests: New file.
38098         * tests/unicase/test-u16-casecmp.c: New file.
38099
38100         Tests for module 'unicase/u8-casecmp'.
38101         * modules/unicase/u8-casecmp-tests: New file.
38102         * tests/unicase/test-u8-casecmp.c: New file.
38103         * tests/unicase/test-casecmp.h: New file.
38104
38105         New module 'unicase/u32-casecmp'.
38106         * lib/unicase/u32-casecmp.c: New file.
38107         * modules/unicase/u32-casecmp: New file.
38108
38109         New module 'unicase/u16-casecmp'.
38110         * lib/unicase/u16-casecmp.c: New file.
38111         * modules/unicase/u16-casecmp: New file.
38112
38113         New module 'unicase/u8-casecmp'.
38114         * lib/unicase/u8-casecmp.c: New file.
38115         * lib/unicase/u-casecmp.h: New file.
38116         * modules/unicase/u8-casecmp: New file.
38117
38118         Tests for module 'unicase/u32-casefold'.
38119         * modules/unicase/u32-casefold-tests: New file.
38120         * tests/unicase/test-u32-casefold.c: New file.
38121
38122         Tests for module 'unicase/u16-casefold'.
38123         * modules/unicase/u16-casefold-tests: New file.
38124         * tests/unicase/test-u16-casefold.c: New file.
38125
38126         Tests for module 'unicase/u8-casefold'.
38127         * modules/unicase/u8-casefold-tests: New file.
38128         * tests/unicase/test-u8-casefold.c: New file.
38129
38130         New module 'unicase/u32-casefold'.
38131         * lib/unicase/u32-casefold.c: New file.
38132         * modules/unicase/u32-casefold: New file.
38133
38134         New module 'unicase/u16-casefold'.
38135         * lib/unicase/u16-casefold.c: New file.
38136         * modules/unicase/u16-casefold: New file.
38137
38138         New module 'unicase/u8-casefold'.
38139         * lib/unicase/u8-casefold.c: New file.
38140         * lib/unicase/u-casefold.h: New file.
38141         * modules/unicase/u8-casefold: New file.
38142
38143         New module 'unicase/tocasefold'.
38144         * lib/unicase/casefold.h: New file.
38145         * lib/unicase/tocasefold.c: New file.
38146         * lib/unicase/tocasefold.h: New file, generated by gen-uni-tables.c.
38147         * modules/unicase/tocasefold: New file.
38148
38149         Tests for module 'unicase/u32-totitle'.
38150         * modules/unicase/u32-totitle-tests: New file.
38151         * tests/unicase/test-u32-totitle.c: New file.
38152
38153         Tests for module 'unicase/u16-totitle'.
38154         * modules/unicase/u16-totitle-tests: New file.
38155         * tests/unicase/test-u16-totitle.c: New file.
38156
38157         Tests for module 'unicase/u8-totitle'.
38158         * modules/unicase/u8-totitle-tests: New file.
38159         * tests/unicase/test-u8-totitle.c: New file.
38160
38161         New module 'unicase/u32-totitle'.
38162         * lib/unicase/u32-totitle.c: New file.
38163         * modules/unicase/u32-totitle: New file.
38164
38165         New module 'unicase/u16-totitle'.
38166         * lib/unicase/u16-totitle.c: New file.
38167         * modules/unicase/u16-totitle: New file.
38168
38169         New module 'unicase/u8-totitle'.
38170         * lib/unicase/u8-totitle.c: New file.
38171         * lib/unicase/u-totitle.h: New file.
38172         * modules/unicase/u8-totitle: New file.
38173
38174         Tests for module 'unicase/u32-tolower'.
38175         * modules/unicase/u32-tolower-tests: New file.
38176         * tests/unicase/test-u32-tolower.c: New file.
38177
38178         Tests for module 'unicase/u16-tolower'.
38179         * modules/unicase/u16-tolower-tests: New file.
38180         * tests/unicase/test-u16-tolower.c: New file.
38181
38182         Tests for module 'unicase/u8-tolower'.
38183         * modules/unicase/u8-tolower-tests: New file.
38184         * tests/unicase/test-u8-tolower.c: New file.
38185
38186         New module 'unicase/u32-tolower'.
38187         * lib/unicase/u32-tolower.c: New file.
38188         * modules/unicase/u32-tolower: New file.
38189
38190         New module 'unicase/u16-tolower'.
38191         * lib/unicase/u16-tolower.c: New file.
38192         * modules/unicase/u16-tolower: New file.
38193
38194         New module 'unicase/u8-tolower'.
38195         * lib/unicase/u8-tolower.c: New file.
38196         * modules/unicase/u8-tolower: New file.
38197
38198         Tests for module 'unicase/u32-toupper'.
38199         * modules/unicase/u32-toupper-tests: New file.
38200         * tests/unicase/test-u32-toupper.c: New file.
38201
38202         Tests for module 'unicase/u16-toupper'.
38203         * modules/unicase/u16-toupper-tests: New file.
38204         * tests/unicase/test-u16-toupper.c: New file.
38205
38206         Tests for module 'unicase/u8-toupper'.
38207         * modules/unicase/u8-toupper-tests: New file.
38208         * tests/unicase/test-u8-toupper.c: New file.
38209
38210         New module 'unicase/u32-toupper'.
38211         * lib/unicase/u32-toupper.c: New file.
38212         * modules/unicase/u32-toupper: New file.
38213
38214         New module 'unicase/u16-toupper'.
38215         * lib/unicase/u16-toupper.c: New file.
38216         * modules/unicase/u16-toupper: New file.
38217
38218         New module 'unicase/u8-toupper'.
38219         * lib/unicase/u8-toupper.c: New file.
38220         * modules/unicase/u8-toupper: New file.
38221
38222         New module 'unicase/u32-casemap'.
38223         * lib/unicase/u32-casemap.c: New file.
38224         * modules/unicase/u32-casemap: New file.
38225
38226         New module 'unicase/u16-casemap'.
38227         * lib/unicase/u16-casemap.c: New file.
38228         * modules/unicase/u16-casemap: New file.
38229
38230         New module 'unicase/u8-casemap'.
38231         * lib/unicase/unicasemap.h: New file.
38232         * lib/unicase/u8-casemap.c: New file.
38233         * lib/unicase/u-casemap.h: New file.
38234         * modules/unicase/u8-casemap: New file.
38235
38236         New module 'unicase/special-casing'.
38237         * lib/unicase/special-casing.h: New file.
38238         * lib/unicase/special-casing.c: New file.
38239         * lib/unicase/special-casing-table.gperf: New file, generated by
38240         gen-uni-tables.c.
38241         * modules/unicase/special-casing: New file.
38242
38243         Tests for module 'unicase/locale-language'.
38244         * modules/unicase/locale-language-tests: New file.
38245         * tests/unicase/test-locale-language.sh: New file.
38246         * tests/unicase/test-locale-language.c: New file.
38247
38248         New module 'unicase/locale-language'.
38249         * lib/unicase/locale-language.c: New file.
38250         * lib/unicase/locale-languages.gperf: New file.
38251         * modules/unicase/locale-language: New file.
38252
38253         Generate more tables for case conversion and case folding.
38254         * lib/gen-uni-tables.c (SCC_*): New enum items.
38255         (struct special_casing_rule): New type.
38256         (casing_rules, num_casing_rules, allocated_casing_rules): New
38257         variables.
38258         (add_casing_rule, fill_casing_rules): New functions.
38259         (struct casefold_rule): New type.
38260         (casefolding_rules, num_casefolding_rules,
38261         allocated_casefolding_rules): New variables.
38262         (fill_casefolding_rules): New function.
38263         (unicode_casefold): New variable.
38264         (to_casefold, redistribute_casefolding_rules, compare_casing_rules,
38265         sort_casing_rules, output_casing_rules): New functions.
38266         (main): Accept to more arguments: SpecialCasing.txt and
38267         CaseFolding.txt. Invoke fill_casing_rules, fill_casefolding_rules,
38268         redistribute_casefolding_rules, sort_casing_rules, output_casing_rules.
38269         Output mapping for casefolding.
38270
38271         * lib/unicase.h: Include stdbool.h, uninorm.h.
38272         (u8_toupper, u16_toupper, u32_toupper, u8_tolower, u16_tolower,
38273         u32_tolower, u8_totitle, u16_totitle, u32_totitle): Add nf argument.
38274         (u8_casefold, u16_casefold, u32_casefold): Add iso639_language and nf
38275         arguments.
38276         (u8_casecmp, u16_casecmp, u32_casecmp): Add iso639_language, nf,
38277         resultp arguments.
38278         (u8_casexfrm, u16_casexfrm, u32_casexfrm): New declarations.
38279         (u8_casecoll, u16_casecoll, u32_casecoll): Add iso639_language, nf,
38280         resultp arguments.
38281         (u8_is_uppercase, u16_is_uppercase, u32_is_uppercase, u8_is_lowercase,
38282         u16_is_lowercase, u32_is_lowercase, u8_is_titlecase, u16_is_titlecase,
38283         u32_is_titlecase, u8_is_casefolded, u16_is_casefolded,
38284         u32_is_casefolded, u8_is_cased, u16_is_cased, u32_is_cased): New
38285         declarations.
38286         * modules/unicase/base (Depends-on): Add uninorm/base, stdbool.
38287
38288 2009-03-08  Bruno Haible  <bruno@clisp.org>
38289
38290         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp, u8_normcoll,
38291         u16_normcoll, u32_normcoll): Rename argument 'result' to 'resultp'.
38292         * lib/uninorm/u-normcmp.h (FUNC): Likewise.
38293         * lib/uninorm/u-normcoll.h (FUNC): Likewise.
38294
38295 2009-03-07  Bruno Haible  <bruno@clisp.org>
38296
38297         Adjust u*_normcmp, u*_normcoll API.
38298         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp, u8_normcoll,
38299         u16_normcoll, u32_normcoll): Change failure conventions.
38300         * lib/uninorm/u-normcmp.h (FUNC): Upon failure, store the error code in
38301         errno and return -1.
38302         * lib/uninorm/u-normcoll.h (FUNC): Likewise.
38303
38304 2009-03-07  Bruno Haible  <bruno@clisp.org>
38305
38306         Tests for module 'uninorm/u32-normcoll'.
38307         * modules/uninorm/u32-normcoll-tests: New file.
38308         * tests/uninorm/test-u32-normcoll.c: New file.
38309
38310         Tests for module 'uninorm/u16-normcoll'.
38311         * modules/uninorm/u16-normcoll-tests: New file.
38312         * tests/uninorm/test-u16-normcoll.c: New file.
38313
38314         Tests for module 'uninorm/u8-normcoll'.
38315         * modules/uninorm/u8-normcoll-tests: New file.
38316         * tests/uninorm/test-u8-normcoll.c: New file.
38317
38318 2009-03-07  Bruno Haible  <bruno@clisp.org>
38319
38320         * tests/uninorm/test-u32-normcmp.h: New file, extracted from
38321         tests/uninorm/test-u32-normcmp.c.
38322         * tests/uninorm/test-u32-normcmp.c: Include it.
38323         (test_nonascii): New function, extracted from main. Add some more
38324         tests.
38325         (main): Invoke test_ascii and test_nonascii.
38326         * modules/uninorm/u32-normcmp-tests (Files): Add
38327         tests/uninorm/test-u32-normcmp.h.
38328         (Depends-on): Remove uninorm/u32-normcmp.
38329
38330         * tests/uninorm/test-u16-normcmp.h: New file, extracted from
38331         tests/uninorm/test-u16-normcmp.c.
38332         * tests/uninorm/test-u16-normcmp.c: Include it.
38333         (test_nonascii): New function, extracted from main. Add some more
38334         tests.
38335         (main): Invoke test_ascii and test_nonascii.
38336         * modules/uninorm/u16-normcmp-tests (Files): Add
38337         tests/uninorm/test-u16-normcmp.h.
38338         (Depends-on): Remove uninorm/u16-normcmp.
38339
38340         * tests/uninorm/test-u8-normcmp.h: New file, extracted from
38341         tests/uninorm/test-u8-normcmp.c.
38342         * tests/uninorm/test-u8-normcmp.c: Include it.
38343         (test_nonascii): New function, extracted from main. Add some more
38344         tests.
38345         (main): Invoke test_ascii and test_nonascii.
38346         * modules/uninorm/u8-normcmp-tests (Files): Add
38347         tests/uninorm/test-u8-normcmp.h.
38348         (Depends-on): Remove uninorm/u8-normcmp.
38349
38350 2009-03-07  Bruno Haible  <bruno@clisp.org>
38351
38352         New module 'uninorm/u32-normcoll'.
38353         * lib/uninorm/u32-normcoll.c: New file.
38354         * modules/uninorm/u32-normcoll: New file.
38355
38356         New module 'uninorm/u16-normcoll'.
38357         * lib/uninorm/u16-normcoll.c: New file.
38358         * modules/uninorm/u16-normcoll: New file.
38359
38360         New module 'uninorm/u8-normcoll'.
38361         * lib/uninorm.h (u8_normcoll, u16_normcoll, u32_normcoll): New
38362         declarations.
38363         * lib/uninorm/u8-normcoll.c: New file.
38364         * lib/uninorm/u-normcoll.h: New file.
38365         * modules/uninorm/u8-normcoll: New file.
38366
38367         New module 'uninorm/u32-normxfrm'.
38368         * lib/uninorm/u32-normxfrm.c: New file.
38369         * modules/uninorm/u32-normxfrm: New file.
38370
38371         New module 'uninorm/u16-normxfrm'.
38372         * lib/uninorm/u16-normxfrm.c: New file.
38373         * modules/uninorm/u16-normxfrm: New file.
38374
38375         New module 'uninorm/u8-normxfrm'.
38376         * lib/uninorm.h (u8_normxfrm, u16_normxfrm, u32_normxfrm): New
38377         declarations.
38378         * lib/uninorm/u8-normxfrm.c: New file.
38379         * lib/uninorm/u-normxfrm.h: New file.
38380         * modules/uninorm/u8-normxfrm: New file.
38381
38382 2009-03-07  Bruno Haible  <bruno@clisp.org>
38383
38384         * modules/uninorm/u8-normcmp (Depends-on): Add uninorm/base.
38385         * modules/uninorm/u16-normcmp (Depends-on): Likewise.
38386         * modules/uninorm/u32-normcmp (Depends-on): Likewise.
38387
38388 2009-03-07  Bruno Haible  <bruno@clisp.org>
38389
38390         New module 'memxfrm'.
38391         * lib/memxfrm.h: New file.
38392         * lib/memxfrm.c: New file.
38393         * modules/memxfrm: New file.
38394
38395 2009-03-07  Bruno Haible  <bruno@clisp.org>
38396
38397         New module 'memcmp2'.
38398         * lib/memcmp2.h: New file.
38399         * lib/memcmp2.c: New file.
38400         * modules/memcmp2: New file.
38401
38402 2009-03-07  Bruno Haible  <bruno@clisp.org>
38403
38404         Tests for module 'uninorm/decomposing-form'.
38405         * modules/uninorm/decomposing-form-tests: New file.
38406         * tests/uninorm/test-decomposing-form.c: New file.
38407
38408         New module 'uninorm/decomposing-form'.
38409         * lib/uninorm.h (uninorm_decomposing_form): New declaration.
38410         * lib/uninorm/normalize-internal.h (struct unicode_normalization_form):
38411         Add 'decomposing_variant' field.
38412         * lib/uninorm/decomposing-form.c: New file.
38413         * lib/uninorm/nfc.c (uninorm_nfc): Update.
38414         * lib/uninorm/nfd.c (uninorm_nfd): Update.
38415         * lib/uninorm/nfkc.c (uninorm_nfkc): Update.
38416         * lib/uninorm/nfkd.c (uninorm_nfkd): Update.
38417         * modules/uninorm/decomposing-form: New file.
38418         * modules/uninorm/nfc (Depends-on): Add uninorm/nfd.
38419         * modules/uninorm/nfkc (Depends-on): Add uninorm/nfkd.
38420
38421 2009-03-07  Bruno Haible  <bruno@clisp.org>
38422
38423         * lib/uninorm/u-normcmp.h (FUNC): Use stack=allocated buffers for small
38424         strings.
38425
38426 2009-03-06  Bruno Haible  <bruno@clisp.org>
38427
38428         Tests for module 'uninorm/u32-normcmp'.
38429         * tests/uninorm/test-u32-normcmp.c: New file.
38430         * modules/uninorm/u32-normcmp-tests: New file.
38431
38432         Tests for module 'uninorm/u16-normcmp'.
38433         * tests/uninorm/test-u16-normcmp.c: New file.
38434         * modules/uninorm/u16-normcmp-tests: New file.
38435
38436         Tests for module 'uninorm/u8-normcmp'.
38437         * tests/uninorm/test-u8-normcmp.c: New file.
38438         * modules/uninorm/u8-normcmp-tests: New file.
38439
38440         New module 'uninorm/u32-normcmp'.
38441         * lib/uninorm/u32-normcmp.c: New file.
38442         * modules/uninorm/u32-normcmp: New file.
38443
38444         New module 'uninorm/u16-normcmp'.
38445         * lib/uninorm/u16-normcmp.c: New file.
38446         * modules/uninorm/u16-normcmp: New file.
38447
38448         New module 'uninorm/u8-normcmp'.
38449         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp): New
38450         declarations.
38451         * lib/uninorm/u8-normcmp.c: New file.
38452         * lib/uninorm/u-normcmp.h: New file.
38453         * modules/uninorm/u8-normcmp: New file.
38454
38455 2009-03-06  Bruno Haible  <bruno@clisp.org>
38456
38457         * lib/w32spawn.h (dup_noinherit): Add cast, to avoid gcc warning.
38458         Reported by Eric Blake.
38459
38460 2009-03-06  Eric Blake  <ebb9@byu.net>
38461             Bruno Haible  <bruno@clisp.org>
38462
38463         * lib/spawni.c (__spawni) [WIN32_NATIVE]: Define as a stub.
38464         * modules/posix_spawn-tests (configure.ac): Define POSIX_SPAWN_PORTED
38465         condition.
38466         (Makefile.am): Do nothing if POSIX_SPAWN_PORTED is false.
38467         * modules/posix_spawnp-tests (configure.ac): Define POSIX_SPAWN_PORTED
38468         condition.
38469         (Makefile.am): Do nothing if POSIX_SPAWN_PORTED is false.
38470
38471 2009-03-06  Eric Blake  <ebb9@byu.net>
38472
38473         * lib/execute.c (execute) [WIN32_NATIVE]: Cast arguments of spawnvpe,
38474         to avoid compiler warnings.
38475         * lib/pipe.c (create_pipe) [WIN32_NATIVE]: Likewise.
38476
38477 2009-03-05  Bruno Haible  <bruno@clisp.org>
38478
38479         * tests/test-ftell.c (main): Disable test beyond end of file on
38480         FreeMiNT.
38481         Patch by Alan Hourihane <alanh@fairlite.co.uk>.
38482
38483 2009-03-05  Kamil Dudka  <kdudka@redhat.com>
38484
38485         * lib/filevercmp.c: Move hidden files up in ordering.
38486         * tests/test-filevercmp.c: Add tests for hidden files.
38487
38488 2009-03-04  Bruno Haible  <bruno@clisp.org>
38489
38490         * modules/visibility (Makefile.am): Augment AM_CFLAGS.
38491         * gnulib-tool (func_emit_lib_Makefile_am): Emit initialization of
38492         AM_CFLAGS.
38493         Reported by Simon Josefsson.
38494
38495 2009-03-03  Bruno Haible  <bruno@clisp.org>
38496
38497         * doc/visibility.texi: Recommend to use HAVE_VISIBILITY as a C macro.
38498         Reported by Simon Josefsson.
38499
38500         * doc/ld-version-script.texi: Update node reference.
38501
38502 2009-03-03  Bruno Haible  <bruno@clisp.org>
38503
38504         * modules/visibility (License): Change to 'unlimited'.
38505         Suggested by Simon Josefsson.
38506
38507 2009-03-03  Jim Meyering  <meyering@redhat.com>
38508
38509         unlinkdir: cannot_unlink_dir may modify process state
38510         * lib/unlinkdir.c (cannot_unlink_dir): Add a comment warning that
38511         it's neither thread-safe nor appropriate for use in a library.
38512
38513 2009-03-03  Eric Blake  <ebb9@byu.net>
38514
38515         test-closein: silence test under Darwin
38516         * tests/test-closein.sh: Ignore stderr from cat, since we don't
38517         care if it dies from EPIPE or EBADF.
38518
38519 2009-03-03  Bruno Haible  <bruno@clisp.org>
38520
38521         * doc/gnulib.texi: Include visibility.texi and ld-version-script.texi
38522         earlier.
38523         * doc/visibility.texi: Fix @node and @section.
38524
38525 2009-03-03  Simon Josefsson  <simon@josefsson.org>
38526
38527         * doc/gnulib.texi: Link to sections for ld version script and
38528         visibility.
38529         * doc/visibility.texi: Add @node and @section.
38530         * modules/ld-version-script: New module.
38531         * m4/ld-version-script.m4: New file.
38532         * doc/ld-version-script.texi: New file.
38533
38534 2009-03-02  David Lutterkort  <lutter@redhat.com>
38535
38536         * lib/safe-alloc.h (__GNUC_PREREQ): New macro.
38537         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
38538
38539 2009-03-02  Bruno Haible  <bruno@clisp.org>
38540
38541         * doc/visibility.texi: Mention libtool's -export-symbols option.
38542
38543 2009-03-02  Jim Meyering  <meyering@redhat.com>
38544
38545         announce-gen: new option: --no-print-checksums
38546         * build-aux/announce-gen (usage): Describe it.
38547         (print_checksums): Print a newline here, not in the [*] footnote.
38548         (main): Honor it.
38549
38550 2009-03-01  Bruno Haible  <bruno@clisp.org>
38551
38552         Use socklen_t in the native Windows replacements prototypes.
38553         * lib/sys_socket.in.h (rpl_getsockopt, rpl_setsockopt): Use socklen_t
38554         instead of 'int'.
38555         * lib/getsockopt.c (rpl_getsockopt): Likewise.
38556         * lib/setsockopt.c (rpl_setsockopt): Likewise.
38557         * modules/getsockopt (Depends-on): Add socklen.
38558         * modules/setsockopt (Depends-on): Add socklen.
38559
38560 2009-03-01  Bruno Haible  <bruno@clisp.org>
38561
38562         * gnulib-tool (sed): Do alias as "sed --posix" if sed's version is at
38563         least 4.2.
38564
38565 2009-03-01  Eric Blake  <ebb9@byu.net>
38566             Bruno Haible  <bruno@clisp.org>
38567
38568         * lib/wait-process.h (wait_subprocess): Describe effect of termsigp on
38569         error messages.
38570         * lib/wait-process.c (wait_subprocess): Omit error message about
38571         deadly signal sent to the child of termsigp != NULL.
38572
38573 2009-03-01  Eric Blake  <ebb9@byu.net>
38574
38575         * lib/wait-process.c (wait_subprocess): Remove unnecessary cast.
38576
38577 2009-03-01  Bruno Haible  <bruno@clisp.org>
38578
38579         Avoid a gcc warning.
38580         * tests/test-sched.c (b): Make global.
38581         Reported by Eric Blake.
38582
38583 2009-01-19  Martin Lambers  <marlam@marlam.de>
38584
38585         Provide POSIX semantics for socket timeout options on W32.
38586         * lib/setsockopt.c: Convert struct timeval to milliseconds on W32.
38587         * lib/getsockopt.c: Convert milliseconds to struct timeval on W32.
38588         * modules/setsockopt: Depend on sys_time module for struct timeval.
38589         * modules/getsockopt: Depend on sys_time module for struct timeval.
38590
38591 2009-03-01  Simon Josefsson  <simon@josefsson.org>
38592
38593         * lib/gai_strerror.c (values): Use EAI_INPROGRESS instead of
38594         __USE_GNU, for consistency with netdb.in.h.
38595         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
38596
38597 2009-03-01  Bruno Haible  <bruno@clisp.org>
38598
38599         More support for FreeMiNT.
38600         * lib/fseeko.c (rpl_fseeko): Complete last commit.
38601         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
38602
38603 2009-03-01  Bruno Haible  <bruno@clisp.org>
38604
38605         More support for FreeMiNT.
38606         * lib/fpurge.c (fpurge): Correct last commit.
38607         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
38608
38609 2009-03-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
38610
38611         Fix unportable awk script in vc-list-files.
38612         * build-aux/vc-list-files: In the replacement awk script, use
38613         substr with a second argument of 1, not zero.
38614         Report by Simon Josefsson.
38615
38616 2009-02-28  Bruno Haible  <bruno@clisp.org>
38617
38618         More support for FreeMiNT.
38619         * lib/freading.c (freading) [__MINT__]: Use new macros that were added
38620         to FreeMiNT today.
38621         * lib/fwriting.c (fwriting): Likewise.
38622         Based on patch by Alan Hourihane <alanh@fairlite.co.uk>.
38623
38624 2009-02-28  Bruno Haible  <bruno@clisp.org>
38625
38626         * tests/test-freadseek.c (main): Disable test beyond end of file on
38627         FreeMiNT.
38628         * tests/test-ftello.c (main): Likewise.
38629         Patch by Alan Hourihane <alanh@fairlite.co.uk>.
38630
38631 2009-02-28  Bruno Haible  <bruno@clisp.org>
38632
38633         Add tentative support for FreeMiNT.
38634         * lib/fbufmode.c (fbufmode) [__MINT__]: Add conditional code.
38635         * lib/fpurge.c (fpurge): Likewise.
38636         * lib/freadable.c (freadable): Likewise.
38637         * lib/freading.c (freading): Likewise.
38638         * lib/freadptr.c (freadptr): Likewise.
38639         * lib/freadseek.c (freadptrinc): Likewise.
38640         * lib/fseeko.c (rpl_fseeko): Likewise.
38641         * lib/fseterr.c (fseterr): Likewise.
38642         * lib/fwritable.c (fwritable): Likewise.
38643         * lib/fwriting.c (fwriting): Likewise.
38644         * lib/freadahead.c (freadahead): Likewise, based on code by Alan
38645         Hourihane.
38646         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
38647
38648 2009-02-28  Bruno Haible  <bruno@clisp.org>
38649
38650         * lib/wait-process.h (wait_subprocess): Clarify restriction regarding
38651         SIGCHLD.
38652         Reported by Jim Meyering.
38653
38654 2009-02-28  Bruno Haible  <bruno@clisp.org>
38655
38656         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Separate the two first tests.
38657         Mention the results of these tests on various platforms.
38658         * doc/posix-functions/fprintf.texi: Mention platforms in canonical
38659         order.
38660         * doc/posix-functions/printf.texi: Likewise.
38661         * doc/posix-functions/snprintf.texi: Likewise.
38662         * doc/posix-functions/sprintf.texi: Likewise.
38663         * doc/posix-functions/vfprintf.texi: Likewise.
38664         * doc/posix-functions/vprintf.texi: Likewise.
38665         * doc/posix-functions/vsnprintf.texi: Likewise.
38666         * doc/posix-functions/vsprintf.texi: Likewise.
38667         * doc/glibc-functions/obstack_printf.texi: Likewise.
38668         * doc/glibc-functions/obstack_vprintf.texi: Likewise.
38669
38670 2009-02-28  Bruno Haible  <bruno@clisp.org>
38671
38672         * build-aux/po/Makefile.in.in: Update from GNU gettext 0.17.
38673         Reported by Loïc Minier <lool@dooz.org>.
38674
38675 2009-02-27  Bruno Haible  <bruno@clisp.org>
38676
38677         * gnulib-tool (func_import): Make the sed expression used to create the
38678         sed script for updating the .gitignore file POSIX compliant.
38679         Reported by Eric Blake.
38680
38681 2009-02-27  Bruno Haible  <bruno@clisp.org>
38682
38683         * gnulib-tool (sed): Don't alias as "sed --posix".
38684         Reported by Eric Blake.
38685
38686 2009-02-27  Bruno Haible  <bruno@clisp.org>
38687
38688         Avoid test link errors.
38689         * modules/uninorm/nfc-tests (test_u32_nfc_big_LDADD): New variable.
38690         * modules/uninorm/nfd-tests (test_u32_nfd_big_LDADD): New variable.
38691         * modules/uninorm/nfkc-tests (test_u32_nfkc_big_LDADD): New variable.
38692         * modules/uninorm/nfkd-tests (test_u32_nfkd_big_LDADD): New variable.
38693         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
38694
38695 2009-02-27  Bruno Haible  <bruno@clisp.org>
38696
38697         Avoid spurious "(cached)" in configure output.
38698         * m4/gnulib-common.m4 (gl_CACHE_VAL_SILENT): New macro.
38699         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Use it instead of AC_CACHE_VAL.
38700         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
38701         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
38702         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
38703         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Likewise.
38704         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
38705         * m4/stdarg.m4 (gl_STDARG_H): Likewise.
38706         Reported by Eric Blake.
38707
38708 2009-02-27  Eric Blake  <ebb9@byu.net>
38709
38710         printf: fix regression in previous patch
38711         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Fix compilation error.
38712
38713 2009-02-27  Bruno Haible  <bruno@clisp.org>
38714
38715         * lib/inttypes.in.h: Test merely whether _LP64 is defined, not its
38716         value.
38717         * lib/stdint.in.h: Likewise.
38718         Suggested by Eric Blake. Reported by Peter Bray <pdb_ml@yahoo.com.au>.
38719
38720 2009-02-27  Eric Blake  <ebb9@byu.net>
38721
38722         doc: mention more functions added in cygwin 1.7.0
38723         * doc/posix-functions/mbsnrtowcs.texi: Mention recent cygwin 1.7.0
38724         addition.
38725         * doc/posix-functions/open_wmemstream.texi: Likewise.
38726         * doc/posix-functions/wcsnlen.texi: Likewise.
38727         * doc/posix-functions/wcsnrtombs.texi: Likewise.
38728         * doc/posix-functions/wcstod.texi: Likewise.
38729         * doc/posix-functions/wcstof.texi: Likewise.
38730         * doc/posix-functions/wcstoimax.texi: Likewise.
38731         * doc/posix-functions/wcstok.texi: Likewise.
38732         * doc/posix-functions/wcstoumax.texi: Likewise.
38733
38734         Detect bug in cygwin 1.5.x *printf on 1-character %ls.
38735         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Enhance filter.
38736         * doc/posix-functions/fprintf.texi: Update.
38737         * doc/posix-functions/printf.texi: Update.
38738         * doc/posix-functions/snprintf.texi: Update.
38739         * doc/posix-functions/sprintf.texi: Update.
38740         * doc/posix-functions/vfprintf.texi: Update.
38741         * doc/posix-functions/vprintf.texi: Update.
38742         * doc/posix-functions/vsnprintf.texi: Update.
38743         * doc/posix-functions/vsprintf.texi: Update.
38744         * doc/glibc-functions/obstack_printf.texi: Update.
38745         * doc/glibc-functions/obstack_vprintf.texi: Update.
38746
38747 2009-02-26  Eric Blake  <ebb9@byu.net>
38748
38749         avoid gcc 3.4.3 bug on long double NaN on Irix 6.5
38750         * tests/nan.h (NaNl): Rewrite as function on Irix, to avoid
38751         compilation bug by using runtime conversion.
38752         * m4/isfinite.m4 (gl_ISFINITE): Likewise.
38753         * m4/isnanl.m4 (gl_FUNC_ISNANL): Likewise.
38754         * modules/ceill-tests (Files): Use nan.h.
38755         * modules/floorl-tests (Files): Likewise.
38756         * modules/frexpl-tests (Files): Likewise.
38757         * modules/isnanl-tests (Files): Likewise.
38758         * modules/ldexpl-tests (Files): Likewise.
38759         * modules/roundl-tests (Files): Likewise.
38760         * modules/truncl-tests (Files): Likewise.
38761         * tests/test-ceill.c (main): Use a working NaN.
38762         * tests/test-floorl.c (main): Likewise.
38763         * tests/test-frexpl.c (main): Likewise.
38764         * tests/test-isnan.c (test_long_double): Likewise.
38765         * tests/test-isnanl.h (main): Likewise.
38766         * tests/test-ldexpl.h (main): Likewise.
38767         * tests/test-roundl.h (main): Likewise.
38768         * tests/test-truncl.h (main): Likewise.
38769         See http://lists.gnu.org/archive/html/bug-gnulib/2009-02/msg00190.html.
38770
38771 2009-02-26  Eric Blake  <ebb9@byu.net>
38772             Bruno Haible  <bruno@clisp.org>
38773
38774         Work around a *printf bug with %ls on Solaris.
38775         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Also test whether, when a
38776         precision is specified, sprintf stops converting the wide string
38777         argument when the number of bytes that have been produced by this
38778         conversion equals or exceeds the precision.
38779         * doc/posix-functions/fprintf.texi: Update.
38780         * doc/posix-functions/printf.texi: Update.
38781         * doc/posix-functions/snprintf.texi: Update.
38782         * doc/posix-functions/sprintf.texi: Update.
38783         * doc/posix-functions/vfprintf.texi: Update.
38784         * doc/posix-functions/vprintf.texi: Update.
38785         * doc/posix-functions/vsnprintf.texi: Update.
38786         * doc/posix-functions/vsprintf.texi: Update.
38787         * doc/glibc-functions/obstack_printf.texi: Update.
38788         * doc/glibc-functions/obstack_vprintf.texi: Update.
38789
38790 2009-02-26  Eric Blake  <ebb9@byu.net>
38791
38792         stdlib: favor compiler check of random.h
38793         * m4/stdlib_h.m4 (gl_STDLIB_H): Skip preprocessor check.  Needed
38794         to avoid an ObjC random.h installed by Swarm.
38795
38796 2009-02-26  Bruno Haible  <bruno@clisp.org>
38797
38798         Work around *printf bug with %g directive and 0.0 on HP-UX 10.20.
38799         * m4/printf.m4 (gl_PRINTF_INFINITE): Also test for %g output of -0.0.
38800         Reported by Gary V. Vaughan <gary@gnu.org>.
38801
38802 2009-02-26  Bruno Haible  <bruno@clisp.org>
38803
38804         Fix *printf behaviour regarding the %ls directive.
38805         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): New macro.
38806         * lib/vasnprintf.c (local_wcslen, VASNPRINTF): Handle
38807         NEED_PRINTF_DIRECTIVE_LS.
38808         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_LS): New macro.
38809         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
38810         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
38811         gl_PREREQ_VASNPRINTF_DIRECTIVE_LS and test its result. Invoke
38812         gl_PREREQ_VASNPRINTF_DIRECTIVE_LS.
38813         * m4/dprintf-posix.m4 (gl_FUNC_DPRINTF_POSIX): Likewise.
38814         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX): Likewise.
38815         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
38816         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
38817         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
38818         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
38819         * m4/vdprintf-posix.m4 (gl_FUNC_VDPRINTF_POSIX): Likewise.
38820         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
38821         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
38822         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
38823         * doc/posix-functions/fprintf.texi: Update.
38824         * doc/posix-functions/printf.texi: Update.
38825         * doc/posix-functions/snprintf.texi: Update.
38826         * doc/posix-functions/sprintf.texi: Update.
38827         * doc/posix-functions/vfprintf.texi: Update.
38828         * doc/posix-functions/vprintf.texi: Update.
38829         * doc/posix-functions/vsnprintf.texi: Update.
38830         * doc/posix-functions/vsprintf.texi: Update.
38831         * doc/glibc-functions/obstack_printf.texi: Update.
38832         * doc/glibc-functions/obstack_vprintf.texi: Update.
38833         Reported by Eric Blake.
38834
38835 2009-02-25  Bruno Haible  <bruno@clisp.org>
38836
38837         * m4/mbrtowc.m4 (gl_MBRTOWC_NUL_RETVAL): Update guess for Solaris 8
38838         with known value.
38839         Reported by Gary V. Vaughan <gary@gnu.org>.
38840
38841 2009-02-25  Bruno Haible  <bruno@clisp.org>
38842
38843         Work around mbrtowc bug in zh_CN.GB18030 locale on Solaris 8.
38844         * m4/mbrtowc.m4 (gl_MBRTOWC_SANITYCHECK): New macro.
38845         (gl_MBSTATE_T_BROKEN): Invoke it. Replace mbstate_t when it says "no".
38846         * doc/posix-functions/mbrtowc.texi: Document the Solaris 8 bug.
38847         Reported by Gary V. Vaughan <gary@gnu.org>.
38848
38849 2009-02-25  Bruno Haible  <bruno@clisp.org>
38850
38851         Work around broken INT8_MAX, UINT8_MAX etc. values on HP-UX 11.23.
38852         * m4/stdint.m4 (gl_STDINT_H): Also check whether the expansions of
38853         INT8_MAX, UINT8_MAX etc. contain casts to elementary types.
38854         * doc/posix-headers/stdint.texi: Mention the HP-UX bug.
38855         Reported by Gary V. Vaughan <gary@gnu.org>.
38856
38857 2009-02-25  Eric Blake  <ebb9@byu.net>
38858
38859         tests: skip fseek/ftell tests if ungetc is broken
38860         * m4/ungetc.m4: New file.
38861         * modules/fseek-tests: Split test, so ungetc dependency is
38862         separate from rest of test.
38863         * modules/fseeko-tests: Likewise.
38864         * modules/ftell-tests: Likewise.
38865         * modules/ftello-tests: Likewise.
38866         * tests/test-fseek.c (main): Isolate ungetc dependency.
38867         * tests/test-fseeko.c (main): Likewise.
38868         * tests/test-ftell.c (main): Likewise.
38869         * tests/test-ftello.c (main): Likewise.
38870         * tests/test-fseek2.sh: New file.
38871         * tests/test-fseeko2.sh: Likewise.
38872         * tests/test-ftell2.sh: Likewise.
38873         * tests/test-ftello2.sh: Likewise.
38874
38875 2009-02-25  OndÅ™ej Vašík  <ovasik@redhat.com>
38876
38877         test-getaddrinfo: fix usage of skip return code 77
38878         * tests/test-gettaddrinfo.c: Return skip code 77 only
38879         for first occurance of skip (4x77 is not 77)
38880
38881 2009-02-25  Gary V. Vaughan  <gary@gnu.org>
38882
38883         strtod: avoid C99 decl-after-statement
38884         * m4/strtod.m4 (gl_FUNC_STRTOD): Rearrange declaration.
38885
38886 2009-02-24  Eric Blake  <ebb9@byu.net>
38887
38888         strtod: detect HP-UX 11.31 bug
38889         * m4/strtod.m4 (gl_FUNC_STRTOD): Detect errno handling bug.
38890         Reported by Gary V. Vaughan.
38891
38892 2009-02-23  Bruno Haible  <bruno@clisp.org>
38893
38894         Fix invalid read past end of memory block.
38895         * lib/vasnprintf.c (DCHAR_SET): Define.
38896         (local_wcslen): Define only when needed.
38897         (local_strnlen, local_wcsnlen): New functions.
38898         (VASNPRINTF) [!USE_SNPRINTF && HAVE_WCHAR_T]: Implement the %s and %ls
38899         directives that involve a conversion ourselves.
38900         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Also check for strnlen,
38901         wcsnlen, mbrtowc, wcrtomb.
38902         * tests/test-vasnprintf-posix.c (test_function): Add tests for %.*s.
38903         * tests/test-vasprintf-posix.c (test_function): Likewise.
38904         * tests/test-snprintf-posix.h (test_function): Likewise.
38905         * tests/test-sprintf-posix.h (test_function): Likewise.
38906         Reported by Ben Pfaff <blp@cs.stanford.edu>.
38907
38908 2009-02-22  Bruno Haible  <bruno@clisp.org>
38909
38910         Implement new clarified decomposition of Hangul syllables.
38911         * lib/uninorm/decomposition.c (uc_decomposition): For Hangul syllables
38912         of type LTV, return only a pairwise decomposition.
38913         * lib/uninorm/canonical-decomposition.c (uc_canonical_decomposition):
38914         Likewise.
38915         * tests/uninorm/test-decomposition.c (main): Updated expected result.
38916         * tests/uninorm/test-canonical-decomposition.c (main): Likewise.
38917         * tests/uninorm/test-compat-decomposition.c (main): Likewise.
38918
38919 2009-02-22  Bruno Haible  <bruno@clisp.org>
38920
38921         * lib/uninorm/u-normalize-internal.h (FUNC): At the end, handle
38922         zero-length results and shrink excess allocated memory.
38923         * tests/uninorm/test-u8-nfc.c (test_u8_nfc): Check empty string result.
38924         * tests/uninorm/test-u8-nfd.c (test_u8_nfd): Likewise.
38925         * tests/uninorm/test-u8-nfkc.c (test_u8_nfkc): Likewise.
38926         * tests/uninorm/test-u8-nfkd.c (test_u8_nfkd): Likewise.
38927         * tests/uninorm/test-u16-nfc.c (test_u16_nfc): Likewise.
38928         * tests/uninorm/test-u16-nfd.c (test_u16_nfd): Likewise.
38929         * tests/uninorm/test-u16-nfkc.c (test_u16_nfkc): Likewise.
38930         * tests/uninorm/test-u16-nfkd.c (test_u16_nfkd): Likewise.
38931         * tests/uninorm/test-u32-nfc.c (test_u32_nfc): Likewise.
38932         * tests/uninorm/test-u32-nfd.c (test_u32_nfd): Likewise.
38933         * tests/uninorm/test-u32-nfkc.c (test_u32_nfkc): Likewise.
38934         * tests/uninorm/test-u32-nfkd.c (test_u32_nfkd): Likewise.
38935
38936 2009-02-21  Bruno Haible  <bruno@clisp.org>
38937
38938         * doc/gnulib.texi: Include safe-alloc.texi earlier.
38939         * doc/safe-alloc.texi: Terminate sentences with a period. Use two
38940         spaces after a period. Put a space between a macro name and its
38941         argument list. Trivial rewordings.
38942         * lib/safe-alloc.c: Include safe-alloc.h right after config.h.
38943         * tests/test-safe-alloc.c: Likewise. Include stdlib.h.
38944         (main): Return 0 explicitly.
38945
38946 2009-02-21  Bruno Haible  <bruno@clisp.org>
38947
38948         Tests for module 'uninorm/filter'.
38949         * tests/uninorm/test-uninorm-filter-nfc.c: New file.
38950         * modules/uninorm/filter-tests: New file.
38951
38952         New module 'uninorm/filter'.
38953         * lib/uninorm.h (uninorm_filter_create, uninorm_filter_write,
38954         uninorm_filter_flush, uninorm_filter_free): New declarations.
38955         * lib/uninorm/uninorm-filter.c: New file.
38956         * modules/uninorm/filter: New file.
38957
38958 2009-02-21  Bruno Haible  <bruno@clisp.org>
38959
38960         Tests for module 'uninorm/nfkc'.
38961         * tests/uninorm/test-nfkc.c: New file.
38962         * tests/uninorm/test-u8-nfkc.c: New file.
38963         * tests/uninorm/test-u16-nfkc.c: New file.
38964         * tests/uninorm/test-u32-nfkc.c: New file.
38965         * tests/uninorm/test-u32-nfkc-big.sh: New file.
38966         * tests/uninorm/test-u32-nfkc-big.c: New file.
38967         * modules/uninorm/nfkc-tests: New file.
38968
38969         New module 'uninorm/nfkc'.
38970         * lib/uninorm/nfkc.c: New file.
38971         * modules/uninorm/nfkc: New file.
38972
38973         Tests for module 'uninorm/nfkd'.
38974         * tests/uninorm/test-nfkd.c: New file.
38975         * tests/uninorm/test-u8-nfkd.c: New file.
38976         * tests/uninorm/test-u16-nfkd.c: New file.
38977         * tests/uninorm/test-u32-nfkd.c: New file.
38978         * tests/uninorm/test-u32-nfkd-big.sh: New file.
38979         * tests/uninorm/test-u32-nfkd-big.c: New file.
38980         * modules/uninorm/nfkd-tests: New file.
38981
38982         New module 'uninorm/nfkd'.
38983         * lib/uninorm/nfkd.c: New file.
38984         * modules/uninorm/nfkd: New file.
38985
38986         Tests for module 'uninorm/nfc'.
38987         * tests/uninorm/test-nfc.c: New file.
38988         * tests/uninorm/test-u8-nfc.c: New file.
38989         * tests/uninorm/test-u16-nfc.c: New file.
38990         * tests/uninorm/test-u32-nfc.c: New file.
38991         * tests/uninorm/test-u32-nfc-big.sh: New file.
38992         * tests/uninorm/test-u32-nfc-big.c: New file.
38993         * modules/uninorm/nfc-tests: New file.
38994
38995         New module 'uninorm/nfc'.
38996         * lib/uninorm/nfc.c: New file.
38997         * modules/uninorm/nfc: New file.
38998
38999         Tests for module 'uninorm/nfd'.
39000         * tests/uninorm/test-nfd.c: New file.
39001         * tests/uninorm/test-u8-nfd.c: New file.
39002         * tests/uninorm/test-u16-nfd.c: New file.
39003         * tests/uninorm/test-u32-nfd.c: New file.
39004         * tests/uninorm/test-u32-nfd-big.sh: New file.
39005         * tests/uninorm/test-u32-nfd-big.c: New file.
39006         * tests/uninorm/test-u32-normalize-big.h: New file.
39007         * tests/uninorm/test-u32-normalize-big.c: New file.
39008         * tests/uninorm/NormalizationTest.txt: New file, created from
39009         Unicode 5.1.0 NormalizationTest.txt.
39010         * modules/uninorm/nfd-tests: New file.
39011
39012         New module 'uninorm/nfd'.
39013         * lib/uninorm/nfd.c: New file.
39014         * modules/uninorm/nfd: New file.
39015
39016         New module 'uninorm/u32-normalize'.
39017         * lib/uninorm/u32-normalize.c: New file.
39018         * modules/uninorm/u32-normalize: New file.
39019
39020         New module 'uninorm/u16-normalize'.
39021         * lib/uninorm/u16-normalize.c: New file.
39022         * modules/uninorm/u16-normalize: New file.
39023
39024         New module 'uninorm/u8-normalize'.
39025         * lib/uninorm/u8-normalize.c: New file.
39026         * lib/uninorm/normalize-internal.h: New file.
39027         * lib/uninorm/u-normalize-internal.h: New file.
39028         * modules/uninorm/u8-normalize: New file.
39029
39030         New module 'uninorm/decompose-internal'.
39031         * lib/uninorm/decompose-internal.c: New file.
39032         * modules/uninorm/decompose-internal: New file.
39033
39034         Tests for module 'uninorm/composition'.
39035         * tests/uninorm/test-composition.c: New file.
39036         * modules/uninorm/composition-tests: New file.
39037
39038         New module 'uninorm/composition'.
39039         * lib/uninorm/composition.c: New file.
39040         * lib/uninorm/composition-table.gperf: New file, generated by
39041         gen-uni-tables.
39042         * modules/uninorm/composition: New file.
39043
39044         Tests for module 'uninorm/compat-decomposition'.
39045         * tests/uninorm/test-compat-decomposition.c: New file.
39046         * modules/uninorm/compat-decomposition-tests: New file.
39047
39048         New module 'uninorm/compat-decomposition'.
39049         * lib/uninorm/decompose-internal.h: New file.
39050         * lib/uninorm/compat-decomposition.c: New file.
39051         * modules/uninorm/compat-decomposition: New file.
39052
39053         Tests for module 'uninorm/canonical-decomposition'.
39054         * tests/uninorm/test-canonical-decomposition.c: New file.
39055         * modules/uninorm/canonical-decomposition-tests: New file.
39056
39057         New module 'uninorm/canonical-decomposition'.
39058         * lib/uninorm/canonical-decomposition.c: New file.
39059         * modules/uninorm/canonical-decomposition: New file.
39060
39061         Tests for module 'uninorm/decomposition'.
39062         * tests/uninorm/test-decomposition.c: New file.
39063         * modules/uninorm/decomposition-tests: New file.
39064
39065         New module 'uninorm/decomposition'.
39066         * lib/uninorm/decomposition.c: New file.
39067         * modules/uninorm/decomposition: New file.
39068
39069         New module 'uninorm/decomposition-table'.
39070         * lib/uninorm/decomposition-table.h: New file.
39071         * lib/uninorm/decomposition-table.c: New file.
39072         * lib/uninorm/decomposition-table1.h: New file, generated by
39073         gen-uni-tables.
39074         * lib/uninorm/decomposition-table2.h: New file, generated by
39075         gen-uni-tables.
39076         * modules/uninorm/decomposition-table: New file.
39077
39078         * lib/gen-uni-tables.c (MAX_DECOMP_LENGTH): New macro.
39079         (UC_DECOMP_*): New enumeration items.
39080         (get_decomposition): New function.
39081         (struct decomp_table): New type.
39082         (output_decomposition, output_decomposition_tables): New functions.
39083         (unicode_composition_exclusions): New variable.
39084         (fill_composition_exclusions, debug_output_composition_tables): New
39085         functions.
39086         (main): Accept one more argument. Invoke fill_composition_exclusions.
39087         Output decomposition and composition tables.
39088
39089         New module 'uninorm/base'.
39090         * lib/uninorm.h: New file.
39091         * lib/unictype.h: Update comment.
39092         * modules/uninorm/base: New file.
39093
39094 2009-02-21  David Lutterkort  <lutter@redhat.com>
39095
39096         Tests for module 'safe-alloc'.
39097         * tests/test-safe-alloc.c: New file.
39098         * modules/safe-alloc-tests: New file.
39099
39100         New module 'safe-alloc'.
39101         * lib/safe-alloc.h: New file.
39102         * lib/safe-alloc.c: New file.
39103         * m4/safe-alloc.m4: New file.
39104         * modules/safe-alloc: New file.
39105         * doc/safe-alloc.texi: New file.
39106         * doc/gnulib.texi: Include it.
39107         * MODULES.html.sh (Memory management functions <stdlib.h>): Add
39108         safe-alloc.
39109
39110 2009-02-18  Bruno Haible  <bruno@clisp.org>
39111
39112         Fix link error on non-glibc systems.
39113         * modules/uniwbrk/ulc-wordbreaks-tests (test_ulc_wordbreaks_LDADD): New
39114         variable.
39115         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
39116
39117 2009-02-18  Jim Meyering  <meyering@redhat.com>
39118
39119         fts: avoid used-uninitialized error due to recent change
39120         * lib/fts.c (fts_read): Guard uses of the new member,
39121         parent->fts_n_dirs_remaining, since it's not relevant for
39122         the parent of a directory specified on the command-line.
39123
39124 2009-02-17  James Youngman  <jay@gnu.org>
39125             Bruno Haible  <bruno@clisp.org>
39126
39127         * m4/include_next.m4: Reformulate comment.
39128
39129 2009-02-16  Jim Meyering  <meyering@redhat.com>
39130
39131         fts: add #if guards so that the fts_lgpl module still builds
39132         * lib/fts.c: Guard just-added hash-table-using parts with
39133         #if GNULIB_FTS, so as not to break builds of the fts_lgpl module.
39134         Reported by Simon Josefsson.
39135
39136 2009-02-15  Bruno Haible  <bruno@clisp.org>
39137
39138         * modules/array-mergesort-tests: New file.
39139         * tests/test-array-mergesort.c: New file.
39140
39141         New module 'array-mergesort'.
39142         * modules/array-mergesort: New file.
39143         * lib/array-mergesort.h: New file.
39144
39145 2009-02-15  Bruno Haible  <bruno@clisp.org>
39146
39147         Fix 2009-02-07 commit.
39148         * lib/gen-uni-tables.c (output_predicate, output_category,
39149         output_combclass, output_bidi_category, output_decimal_digit,
39150         output_digit, output_numeric, output_mirror, output_scripts,
39151         output_ident_category, output_simple_mapping): Fix format directives.
39152         (output_lbp, output_wbp): Don't convert -1 to a size_t implicitly.
39153
39154 2009-02-15  Albert Chin-A-Young  <china@thewrittenword.com>
39155
39156         * m4/include_next.m4: Update comment about IBM C 9.0/10.1 bug, now that
39157         fixes are available from IBM.
39158
39159 2009-02-13  Jim Meyering  <meyering@redhat.com>
39160
39161         fts: arrange not to stat non-directories in more cases
39162         This makes GNU find (when it doesn't need to stat each file)
39163         *much* more efficient at traversing reiserfs file systems.
39164         * lib/fts_.h (struct ftsent) [fts_n_dirs_remaining]: New member.
39165         (struct FTS) [fts_leaf_optimization_works_ht]: Add member.
39166         * lib/fts.c (fts_close): Free ->fts_leaf_optimization_works_ht.
39167         (S_MAGIC_REISERFS, S_MAGIC_PROC): Define.
39168         (leaf_optimization_applies): New function.
39169         (LCO_hash, LCO_compare): New helper functions.
39170         (link_count_optimize_ok): New function.
39171         (fts_stat): Initialize new member (if dir).
39172         (fts_read): Decrement parent's fts_n_dirs_remaining count if
39173         we've just stat'ed a directory.  Skip the stat call when possible.
39174         ---
39175         Note this AFS-related exchange:
39176         http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=143111
39177         and note find's pioctl call in find/fstype.c.
39178         But that is necessary only if you want to enable the
39179         optimization for AFS, and for now, I don't.
39180
39181         fts: move a function definition "up" (no semantic change)
39182         * lib/fts.c (dirent_inode_sort_may_be_useful): Move definition
39183         "up" to precede upcoming use of a related function.
39184
39185 2009-02-11  Jim Meyering  <meyering@redhat.com>
39186
39187         fts: correct internal computation of nlinks (optimization-related)
39188         * lib/fts.c (fts_build): ISSET(FTS_NOSTAT) has no bearing on
39189         whether the current entry is a directory, so don't test it.
39190
39191 2009-02-10  Bruno Haible  <bruno@clisp.org>
39192
39193         Tests for module 'uniwbrk/ulc-wordbreaks'.
39194         * modules/uniwbrk/ulc-wordbreaks-tests: New file.
39195         * tests/uniwbrk/test-ulc-wordbreaks.sh: New file.
39196         * tests/uniwbrk/test-ulc-wordbreaks.c: New file.
39197
39198         Tests for module 'uniwbrk/u32-wordbreaks'.
39199         * modules/uniwbrk/u32-wordbreaks-tests: New file.
39200         * tests/uniwbrk/test-u32-wordbreaks.c: New file.
39201
39202         Tests for module 'uniwbrk/u16-wordbreaks'.
39203         * modules/uniwbrk/u16-wordbreaks-tests: New file.
39204         * tests/uniwbrk/test-u16-wordbreaks.c: New file.
39205
39206         Tests for module 'uniwbrk/u8-wordbreaks'.
39207         * modules/uniwbrk/u8-wordbreaks-tests: New file.
39208         * tests/uniwbrk/test-u8-wordbreaks.c: New file.
39209
39210 2009-02-10  Bruno Haible  <bruno@clisp.org>
39211
39212         * modules/uniwbrk/u8-wordbreaks (Depends-on): Add uniwbrk/wordbreak
39213         property.
39214         * modules/uniwbrk/u16-wordbreaks (Depends-on): Likewise.
39215         * modules/uniwbrk/u32-wordbreaks (Depends-on): Likewise.
39216         * modules/uniwbrk/ulc-wordbreaks (Depends-on): Add localcharset.
39217
39218 2009-02-10  Simon Josefsson  <simon@josefsson.org>
39219
39220         * m4/sockets.m4: Call AC_C_INLINE since sockets.h now can use
39221         inline keywords.  Reported by Bruno Haible <bruno@clisp.org>.
39222
39223 2009-02-10  Bruno Haible  <bruno@clisp.org>
39224
39225         * lib/unilbrk/lbrktables.h: Renamed from lib/unilbrk/tables.h.
39226         * lib/unilbrk/lbrktables.c: Renamed from lib/unilbrk/tables.c.
39227         * modules/unilbrk/tables (Files, Makefile.am, Include): Update.
39228         * lib/unilbrk/u8-possible-linebreaks.c: Update.
39229         * lib/unilbrk/u16-possible-linebreaks.c: Likewise.
39230         * lib/unilbrk/u32-possible-linebreaks.c: Likewise.
39231
39232 2009-02-09  Simon Josefsson  <simon@josefsson.org>
39233
39234         * lib/sockets.h (gl_fd_to_handle): New function.
39235
39236         * tests/test-sockets.c: Call gl_fd_to_handle.
39237
39238 2009-02-09  Bruno Haible  <bruno@clisp.org>
39239
39240         * doc/havelib.texi: Document the conventions on bi-arch systems.
39241
39242 2009-02-08  Bruno Haible  <bruno@clisp.org>
39243
39244         Document the AC_LIB_LINKFLAGS macro.
39245         * doc/havelib.texi: New file, mostly written on 2005-05-24.
39246         * doc/gnulib.texi: Include it.
39247
39248 2009-02-08  Bruno Haible  <bruno@clisp.org>
39249
39250         Fix wrong order of sections, compared to TOC.
39251         * doc/gnulib.texi: Include relocatable-maint.texi after the
39252         "Regular expressions" node, not before.
39253
39254 2009-02-08  Bruno Haible  <bruno@clisp.org>
39255
39256         Tests for module 'unicase/totitle'.
39257         * modules/unicase/totitle-tests: New file.
39258
39259         Tests for module 'unicase/tolower'.
39260         * modules/unicase/tolower-tests: New file.
39261
39262         Tests for module 'unicase/toupper'.
39263         * modules/unicase/toupper-tests: New file.
39264         * tests/unicase/test-mapping-part1.h: New file.
39265         * tests/unicase/test-mapping-part2.h: New file.
39266
39267         New module 'unicase/totitle'.
39268         * modules/unicase/totitle: New file.
39269         * lib/unicase/totitle.c: New file.
39270
39271         New module 'unicase/tolower'.
39272         * modules/unicase/tolower: New file.
39273         * lib/unicase/tolower.c: New file.
39274
39275         New module 'unicase/toupper'.
39276         * modules/unicase/toupper: New file.
39277         * lib/unicase/toupper.c: New file.
39278         * lib/unicase/simple-mapping.h: New file.
39279
39280         * lib/gen-uni-tables.c (output_simple_mapping_test): New function.
39281         (mapping_table): New structure.
39282         (output_simple_mapping): New function.
39283         (main): Invoke output_simple_mapping_test and output_simple_mapping.
39284         * modules/gen-uni-tables (Description): Update.
39285         * lib/unicase/toupper.h: New file, automatically generated by
39286         gen-uni-tables.
39287         * lib/unicase/tolower.h: New file, automatically generated by
39288         gen-uni-tables.
39289         * lib/unicase/totitle.h: New file, automatically generated by
39290         gen-uni-tables.
39291         * tests/unicase/test-uc_toupper.c: New file, automatically generated by
39292         gen-uni-tables.
39293         * tests/unicase/test-uc_tolower.c: New file, automatically generated by
39294         gen-uni-tables.
39295         * tests/unicase/test-uc_totitle.c: New file, automatically generated by
39296         gen-uni-tables.
39297
39298         New module 'unicase/base'.
39299         * modules/unicase/base: New file.
39300         * lib/unicase.h: New file.
39301
39302 2009-02-08  Bruno Haible  <bruno@clisp.org>
39303
39304         New module 'uniwbrk/ulc-wordbreaks'.
39305         * modules/uniwbrk/ulc-wordbreaks: New file.
39306         * lib/uniwbrk/ulc-wordbreaks.c: New file.
39307
39308         New module 'uniwbrk/u32-wordbreaks'.
39309         * modules/uniwbrk/u32-wordbreaks: New file.
39310         * lib/uniwbrk/u32-wordbreaks.c: New file.
39311
39312         New module 'uniwbrk/u16-wordbreaks'.
39313         * modules/uniwbrk/u16-wordbreaks: New file.
39314         * lib/uniwbrk/u16-wordbreaks.c: New file.
39315
39316         New module 'uniwbrk/u8-wordbreaks'.
39317         * modules/uniwbrk/u8-wordbreaks: New file.
39318         * lib/uniwbrk/u8-wordbreaks.c: New file.
39319         * lib/uniwbrk/u-wordbreaks.h: New file.
39320
39321         New module 'uniwbrk/table'.
39322         * modules/uniwbrk/table: New file.
39323         * lib/uniwbrk/wbrktable.h: New file.
39324         * lib/uniwbrk/wbrktable.c: New file.
39325
39326         New module 'uniwbrk/wordbreak-property'.
39327         * modules/uniwbrk/wordbreak-property: New file.
39328         * lib/uniwbrk/wordbreak-property.c: New file.
39329
39330         * lib/gen-uni-tables.c (WBP_*): New enum items.
39331         (get_wbp, debug_output_wbp, debug_output_wbrk_tables): New functions.
39332         (unicode_org_wbp): New variable.
39333         (fill_org_wbp, debug_output_org_wbp, debug_output_org_wbrk_tables):
39334         New functions.
39335         (wbp_table): New structure.
39336         (output_wbp, output_wbrk_tables): New functions.
39337         (main): Accept additional argument. Invoke fill_org_wbp,
39338         debug_output_wbrk_tables, debug_output_org_wbrk_tables,
39339         output_wbrk_tables.
39340         * modules/gen-uni-tables (Description): Update.
39341         * lib/uniwbrk/wbrkprop.h: New file, automatically generated by
39342         gen-uni-tables.
39343
39344         New module 'uniwbrk/base'.
39345         * modules/uniwbrk/base: New file.
39346         * lib/uniwbrk.h: New file.
39347
39348 2009-02-08  Bruno Haible  <bruno@clisp.org>
39349
39350         Update to Unicode 5.1.0.
39351         * lib/gen-uni-tables.c (is_property_alphabetic): Include
39352         U+2185..U+2188.
39353         (is_property_default_ignorable_code_point): Don't include characters
39354         of category Cc or Cs and not-a-characters.
39355         (get_lbp): Assume REVISION_22. Special handling of U+0609, U+060A,
39356         U+0D79, U+109E, U+109F, U+A60C.
39357         * lib/unictype/bidi_of.h: Regenerated.
39358         * lib/unictype/blocks.h: Regenerated.
39359         * lib/unictype/categ_C.h: Regenerated.
39360         * lib/unictype/categ_Cf.h: Regenerated.
39361         * lib/unictype/categ_Cn.h: Regenerated.
39362         * lib/unictype/categ_L.h: Regenerated.
39363         * lib/unictype/categ_Ll.h: Regenerated.
39364         * lib/unictype/categ_Lm.h: Regenerated.
39365         * lib/unictype/categ_Lo.h: Regenerated.
39366         * lib/unictype/categ_Lu.h: Regenerated.
39367         * lib/unictype/categ_M.h: Regenerated.
39368         * lib/unictype/categ_Mc.h: Regenerated.
39369         * lib/unictype/categ_Me.h: Regenerated.
39370         * lib/unictype/categ_Mn.h: Regenerated.
39371         * lib/unictype/categ_N.h: Regenerated.
39372         * lib/unictype/categ_Nd.h: Regenerated.
39373         * lib/unictype/categ_Nl.h: Regenerated.
39374         * lib/unictype/categ_No.h: Regenerated.
39375         * lib/unictype/categ_P.h: Regenerated.
39376         * lib/unictype/categ_Pd.h: Regenerated.
39377         * lib/unictype/categ_Pe.h: Regenerated.
39378         * lib/unictype/categ_Pf.h: Regenerated.
39379         * lib/unictype/categ_Pi.h: Regenerated.
39380         * lib/unictype/categ_Po.h: Regenerated.
39381         * lib/unictype/categ_Ps.h: Regenerated.
39382         * lib/unictype/categ_S.h: Regenerated.
39383         * lib/unictype/categ_Sk.h: Regenerated.
39384         * lib/unictype/categ_Sm.h: Regenerated.
39385         * lib/unictype/categ_So.h: Regenerated.
39386         * lib/unictype/categ_of.h: Regenerated.
39387         * lib/unictype/combining.h: Regenerated.
39388         * lib/unictype/ctype_alnum.h: Regenerated.
39389         * lib/unictype/ctype_alpha.h: Regenerated.
39390         * lib/unictype/ctype_graph.h: Regenerated.
39391         * lib/unictype/ctype_lower.h: Regenerated.
39392         * lib/unictype/ctype_print.h: Regenerated.
39393         * lib/unictype/ctype_punct.h: Regenerated.
39394         * lib/unictype/ctype_upper.h: Regenerated.
39395         * lib/unictype/decdigit.h: Regenerated.
39396         * lib/unictype/digit.h: Regenerated.
39397         * lib/unictype/mirror.h: Regenerated.
39398         * lib/unictype/numeric.h: Regenerated.
39399         * lib/unictype/pr_alphabetic.h: Regenerated.
39400         * lib/unictype/pr_bidi_arabic_digit.h: Regenerated.
39401         * lib/unictype/pr_bidi_arabic_right_to_left.h: Regenerated.
39402         * lib/unictype/pr_bidi_boundary_neutral.h: Regenerated.
39403         * lib/unictype/pr_bidi_eur_num_terminator.h: Regenerated.
39404         * lib/unictype/pr_bidi_left_to_right.h: Regenerated.
39405         * lib/unictype/pr_bidi_non_spacing_mark.h: Regenerated.
39406         * lib/unictype/pr_bidi_other_neutral.h: Regenerated.
39407         * lib/unictype/pr_combining.h: Regenerated.
39408         * lib/unictype/pr_dash.h: Regenerated.
39409         * lib/unictype/pr_decimal_digit.h: Regenerated.
39410         * lib/unictype/pr_default_ignorable_code_point.h: Regenerated.
39411         * lib/unictype/pr_deprecated.h: Regenerated.
39412         * lib/unictype/pr_diacritic.h: Regenerated.
39413         * lib/unictype/pr_extender.h: Regenerated.
39414         * lib/unictype/pr_format_control.h: Regenerated.
39415         * lib/unictype/pr_grapheme_base.h: Regenerated.
39416         * lib/unictype/pr_grapheme_extend.h: Regenerated.
39417         * lib/unictype/pr_grapheme_link.h: Regenerated.
39418         * lib/unictype/pr_id_continue.h: Regenerated.
39419         * lib/unictype/pr_id_start.h: Regenerated.
39420         * lib/unictype/pr_ideographic.h: Regenerated.
39421         * lib/unictype/pr_ignorable_control.h: Regenerated.
39422         * lib/unictype/pr_lowercase.h: Regenerated.
39423         * lib/unictype/pr_math.h: Regenerated.
39424         * lib/unictype/pr_numeric.h: Regenerated.
39425         * lib/unictype/pr_other_alphabetic.h: Regenerated.
39426         * lib/unictype/pr_other_default_ignorable_code_point.h: Regenerated.
39427         * lib/unictype/pr_other_grapheme_extend.h: Regenerated.
39428         * lib/unictype/pr_other_id_continue.h: Regenerated.
39429         * lib/unictype/pr_other_lowercase.h: Regenerated.
39430         * lib/unictype/pr_other_math.h: Regenerated.
39431         * lib/unictype/pr_punctuation.h: Regenerated.
39432         * lib/unictype/pr_sentence_terminal.h: Regenerated.
39433         * lib/unictype/pr_soft_dotted.h: Regenerated.
39434         * lib/unictype/pr_terminal_punctuation.h: Regenerated.
39435         * lib/unictype/pr_unassigned_code_value.h: Regenerated.
39436         * lib/unictype/pr_unified_ideograph.h: Regenerated.
39437         * lib/unictype/pr_uppercase.h: Regenerated.
39438         * lib/unictype/pr_xid_continue.h: Regenerated.
39439         * lib/unictype/pr_xid_start.h: Regenerated.
39440         * lib/unictype/pr_zero_width.h: Regenerated.
39441         * lib/unictype/scripts.h: Regenerated.
39442         * lib/unictype/scripts_byname.gperf: Regenerated.
39443         * lib/unictype/sy_java_ident.h: Regenerated.
39444         * lib/unilbrk/lbrkprop1.h: Regenerated.
39445         * lib/unilbrk/lbrkprop2.h: Regenerated.
39446         * tests/unictype/test-categ_C.c: Regenerated.
39447         * tests/unictype/test-categ_Cf.c: Regenerated.
39448         * tests/unictype/test-categ_Cn.c: Regenerated.
39449         * tests/unictype/test-categ_L.c: Regenerated.
39450         * tests/unictype/test-categ_Ll.c: Regenerated.
39451         * tests/unictype/test-categ_Lm.c: Regenerated.
39452         * tests/unictype/test-categ_Lo.c: Regenerated.
39453         * tests/unictype/test-categ_Lu.c: Regenerated.
39454         * tests/unictype/test-categ_M.c: Regenerated.
39455         * tests/unictype/test-categ_Mc.c: Regenerated.
39456         * tests/unictype/test-categ_Me.c: Regenerated.
39457         * tests/unictype/test-categ_Mn.c: Regenerated.
39458         * tests/unictype/test-categ_N.c: Regenerated.
39459         * tests/unictype/test-categ_Nd.c: Regenerated.
39460         * tests/unictype/test-categ_Nl.c: Regenerated.
39461         * tests/unictype/test-categ_No.c: Regenerated.
39462         * tests/unictype/test-categ_P.c: Regenerated.
39463         * tests/unictype/test-categ_Pd.c: Regenerated.
39464         * tests/unictype/test-categ_Pe.c: Regenerated.
39465         * tests/unictype/test-categ_Pf.c: Regenerated.
39466         * tests/unictype/test-categ_Pi.c: Regenerated.
39467         * tests/unictype/test-categ_Po.c: Regenerated.
39468         * tests/unictype/test-categ_Ps.c: Regenerated.
39469         * tests/unictype/test-categ_S.c: Regenerated.
39470         * tests/unictype/test-categ_Sk.c: Regenerated.
39471         * tests/unictype/test-categ_Sm.c: Regenerated.
39472         * tests/unictype/test-categ_So.c: Regenerated.
39473         * tests/unictype/test-ctype_alnum.c: Regenerated.
39474         * tests/unictype/test-ctype_alpha.c: Regenerated.
39475         * tests/unictype/test-ctype_graph.c: Regenerated.
39476         * tests/unictype/test-ctype_lower.c: Regenerated.
39477         * tests/unictype/test-ctype_print.c: Regenerated.
39478         * tests/unictype/test-ctype_punct.c: Regenerated.
39479         * tests/unictype/test-ctype_upper.c: Regenerated.
39480         * tests/unictype/test-decdigit.h: Regenerated.
39481         * tests/unictype/test-digit.h: Regenerated.
39482         * tests/unictype/test-numeric.h: Regenerated.
39483         * tests/unictype/test-pr_alphabetic.c: Regenerated.
39484         * tests/unictype/test-pr_bidi_arabic_digit.c: Regenerated.
39485         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Regenerated.
39486         * tests/unictype/test-pr_bidi_boundary_neutral.c: Regenerated.
39487         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Regenerated.
39488         * tests/unictype/test-pr_bidi_left_to_right.c: Regenerated.
39489         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Regenerated.
39490         * tests/unictype/test-pr_bidi_other_neutral.c: Regenerated.
39491         * tests/unictype/test-pr_combining.c: Regenerated.
39492         * tests/unictype/test-pr_dash.c: Regenerated.
39493         * tests/unictype/test-pr_decimal_digit.c: Regenerated.
39494         * tests/unictype/test-pr_default_ignorable_code_point.c: Regenerated.
39495         * tests/unictype/test-pr_deprecated.c: Regenerated.
39496         * tests/unictype/test-pr_diacritic.c: Regenerated.
39497         * tests/unictype/test-pr_extender.c: Regenerated.
39498         * tests/unictype/test-pr_format_control.c: Regenerated.
39499         * tests/unictype/test-pr_grapheme_base.c: Regenerated.
39500         * tests/unictype/test-pr_grapheme_extend.c: Regenerated.
39501         * tests/unictype/test-pr_grapheme_link.c: Regenerated.
39502         * tests/unictype/test-pr_id_continue.c: Regenerated.
39503         * tests/unictype/test-pr_id_start.c: Regenerated.
39504         * tests/unictype/test-pr_ideographic.c: Regenerated.
39505         * tests/unictype/test-pr_ignorable_control.c: Regenerated.
39506         * tests/unictype/test-pr_lowercase.c: Regenerated.
39507         * tests/unictype/test-pr_math.c: Regenerated.
39508         * tests/unictype/test-pr_numeric.c: Regenerated.
39509         * tests/unictype/test-pr_other_alphabetic.c: Regenerated.
39510         * tests/unictype/test-pr_other_default_ignorable_code_point.c:
39511         Regenerated.
39512         * tests/unictype/test-pr_other_grapheme_extend.c: Regenerated.
39513         * tests/unictype/test-pr_other_id_continue.c: Regenerated.
39514         * tests/unictype/test-pr_other_lowercase.c: Regenerated.
39515         * tests/unictype/test-pr_other_math.c: Regenerated.
39516         * tests/unictype/test-pr_punctuation.c: Regenerated.
39517         * tests/unictype/test-pr_sentence_terminal.c: Regenerated.
39518         * tests/unictype/test-pr_soft_dotted.c: Regenerated.
39519         * tests/unictype/test-pr_terminal_punctuation.c: Regenerated.
39520         * tests/unictype/test-pr_unassigned_code_value.c: Regenerated.
39521         * tests/unictype/test-pr_unified_ideograph.c: Regenerated.
39522         * tests/unictype/test-pr_uppercase.c: Regenerated.
39523         * tests/unictype/test-pr_xid_continue.c: Regenerated.
39524         * tests/unictype/test-pr_xid_start.c: Regenerated.
39525         * tests/unictype/test-pr_zero_width.c: Regenerated.
39526
39527         Update to Unicode 5.1.0.
39528         * lib/uniwidth/width.c (nonspacing_table_data): Add U+0487,
39529         U+0616..U+061A, U+0A51, U+0A75, U+0B44, U+0B62..U+0B63, U+0C62..U+0C63,
39530         U+0D44, U+0D62..U+0D63, U+1033..U+1035, U+103A, U+103D..U+103E,
39531         U+105E..U+1060, U+1071..U+1074, U+1082, U+1085..U+1086, U+108D,
39532         U+1B80..U+1B81, U+1BA2..U+1BA5, U+1BA8..U+1BA9, U+1C2C..U+1C33,
39533         U+1C36..U+1C37, U+1DCB..U+1DE6, U+2064, U+20F0, U+2DE0..U+2DFF,
39534         U+A66F..U+A672, U+A67C..U+A67D, U+A8C4, U+A926..U+A92D, U+A947..U+A951,
39535         U+AA29..U+AA2E, U+AA31..U+AA32, U+AA35..U+AA36, U+AA43, U+AA4C,
39536         U+FE24..U+FE26, U+101FD. Remove U+1929..U+192B.
39537         (nonspacing_table_ind): Update.
39538         * tests/uniwidth/test-uc_width2.sh: Update expected result.
39539
39540         Update to Unicode 5.1.0.
39541         * lib/uniname/gen-uninames.lisp (main): Add the range 0x1Fxxx to the
39542         code transform.
39543         * lib/uniname/uniname.c (unicode_character_name,
39544         unicode_name_character): Add the range 0x1Fxxx to the code transform.
39545         * lib/uniname/uninames.h: Regenerated.
39546         * tests/uniname/UnicodeDataNames.txt: Update to Unicode 5.1.0.
39547
39548 2009-02-07  Bruno Haible  <bruno@clisp.org>
39549
39550         Merge gen-ctype and gen-lbrk into a single program.
39551         * lib/gen-uni-tables.c: New file, incorporating
39552         lib/unictype/gen-ctype.c and lib/unilbrk/gen-lbrk.c.
39553         Add directory prefixes to the names of the generated files.
39554         * lib/unictype/gen-ctype.c: Remove file.
39555         * lib/unilbrk/gen-lbrk.c: Remove file.
39556         * modules/gen-uni-tables: New file.
39557         * modules/unictype/gen-ctype: Remove file.
39558         * modules/unilbrk/gen-lbrk: Remove file.
39559
39560 2009-02-07  Bruno Haible  <bruno@clisp.org>
39561
39562         * lib/unistr.h (u8_strcoll, u16_strcoll, u32_strcoll): New declations.
39563
39564         New module 'unistr/u32-strcoll'.
39565         * modules/unistr/u32-strcoll: New file.
39566         * lib/unistr/u32-strcoll.c: New file.
39567
39568         New module 'unistr/u16-strcoll'.
39569         * modules/unistr/u16-strcoll: New file.
39570         * lib/unistr/u16-strcoll.c: New file.
39571
39572         New module 'unistr/u8-strcoll'.
39573         * modules/unistr/u8-strcoll: New file.
39574         * lib/unistr/u8-strcoll.c: New file.
39575         * lib/unistr/u-strcoll.h: New file.
39576
39577 2009-02-07  Bruno Haible  <bruno@clisp.org>
39578
39579         * test-mbrtowc4.sh (LOCALE_ZH_CN): Fix default value.
39580         * test-mbsnrtowcs4.sh (LOCALE_ZH_CN): Likewise.
39581         * test-mbsrtowcs4.sh (LOCALE_ZH_CN): Likewise.
39582         * test-wcrtomb.sh (LOCALE_ZH_CN): Likewise.
39583         * test-wcsnrtombs4.sh (LOCALE_ZH_CN): Likewise.
39584         * test-wcsrtombs4.sh (LOCALE_ZH_CN): Likewise.
39585
39586 2009-02-07  Bruno Haible  <bruno@clisp.org>
39587
39588         Make 64-bit clean.
39589         * lib/unictype/gen-ctype.c (output_predicate, output_category,
39590         output_combclass, output_bidi_category, output_decimal_digit,
39591         output_digit, output_numeric, output_mirror, output_scripts,
39592         output_ident_category): Use proper width specifier in format strings.
39593
39594 2009-02-07  Bruno Haible  <bruno@clisp.org>
39595
39596         * doc/posix-functions/dirfd.texi: Clarify situation on mingw. Document
39597         failure behaviour.
39598
39599 2009-02-07  Jim Meyering  <meyering@redhat.com>
39600
39601         regex: avoid compilation failure with upcoming gcc-4.4
39602         * lib/regex_internal.h: Revert e48d8b47fb3eee81d341b71c3e006efe9e3433a7
39603         [workaround for PGC prior to 6.1-2].  Otherwise, we'd get this:
39604         "... error: integer overflow in preprocessor expression".
39605
39606 2009-02-05  Ben Pfaff  <blp@gnu.org>
39607
39608         Fix link errors on Windows when close module is used.
39609         * modules/close: Add $(LIB_CLOSE) to Link section.
39610         * m4/close.m4 (gl_REPLACE_CLOSE): Substitute -lws2_32 into
39611         $(LIB_CLOSE) on Windows.
39612
39613 2009-02-05  Jim Meyering  <meyering@redhat.com>
39614
39615         still avoid unused-parameter warnings, but do it cleanly
39616         * lib/fsusage.c (UNUSED_PARAM): Remove definition.
39617         (get_fs_usage): Cast to void instead.
39618         * lib/mountlist.c (UNUSED_PARAM): Remove definition.
39619         (dev_from_mount_options, read_file_system_list): Cast to void.
39620         Prompted by Bruno Haible.
39621
39622 2009-02-04  Jim Meyering  <meyering@redhat.com>
39623
39624         fsusage.c: correct copyright year
39625         * lib/fsusage.c: Reflect year in which the change is pushed into
39626
39627         avoid misc. warnings
39628         * lib/fsusage.c (UNUSED_PARAM): Define.
39629         (get_fs_usage): Mark parameter "disk" as unused.
39630         * lib/getugroups.c (getgrent): Use "void" in prototype.
39631         * lib/mountlist.c: Mark unused parameters.
39632         (read_file_system_list): Declare a local with "const".
39633         * lib/nanosleep.c (getnow): Declare static.
39634         * lib/strftime.c: Include strftime.h, for declaration of nstrftime.
39635
39636         dirfd: set errno upon failure
39637         * lib/dirfd.c: Include <errno.h>.
39638         Set errno to ENOTSUP when returning -1.
39639         * modules/dirfd (Depends-on): Add errno.
39640         Suggested by John Kodis <kodis@comcast.net>.
39641
39642 2009-02-01  Bruno Haible  <bruno@clisp.org>
39643
39644         Don't assume sizeof (long) >= sizeof (void *).
39645         * lib/memcmp.c: Include stdint.h.
39646         (memcmp_bytes): Change argument types to op_t. Change type of srcp1,
39647         srcp2 to 'const byte *'.
39648         (memcmp_common_alignment, memcmp_not_common_alignment): Change argument
39649         types to uintptr_t.
39650         (rpl_memcmp): Change type of srcp1, srcp2 to 'uintptr_t'.
39651         * modules/memcmp (Depends-on): Add stdint.
39652         Reported by Ozkan Sezer <sezeroz@gmail.com>.
39653
39654 2009-01-30  Eric Blake  <ebb9@byu.net>
39655
39656         fix more require-before-expand issues
39657         * m4/pmccabe2html.m4 (gl_PMCCABE2HTML): Require, rather than
39658         expand, AC_PROG_AWK.
39659         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): Use AC_DEFUN_ONCE.
39660
39661 2009-01-28  Eric Blake  <ebb9@byu.net>
39662
39663         version-etc: use consistent URL formatting
39664         * lib/version-etc.c (emit_bug_reporting_address, version_etc_va):
39665         Improve formatting.  Use fputs for string without %.
39666
39667 2009-01-28  Jim Meyering  <meyering@redhat.com>
39668
39669         00gnulib.m4: add m4 quotes in shell comment to avoid autoconf warning
39670         * m4/00gnulib.m4 (AC_DEFUN_ONCE): Add quotes to avoid an
39671         "underquoted definition of NAME" from autoconf-2.59.
39672
39673 2009-01-28  Bruno Haible  <bruno@clisp.org>
39674
39675         * doc/gnulib.texi: Add "Obsolete modules" to index.
39676
39677 2009-01-28  Jim Meyering  <meyering@redhat.com>
39678
39679         useless-if-before-free: recognize more variants
39680         * build-aux/useless-if-before-free: Also recognize e.g.,
39681         if (NULL != p) free (p);
39682
39683 2009-01-27  Mark McLoughlin  <markmc@redhat.com>
39684
39685         test-getaddrinfo: skip (don't fail) this test when there's no network
39686         * tests/test-getaddrinfo.c: Skip test upon failure with EAI_AGAIN,
39687         on the presumption that it means you lack network access.
39688
39689 2009-01-26  Jim Meyering  <meyering@redhat.com>
39690
39691         fflush: avoid warnings on modern systems
39692         * lib/fflush.c (rpl_fflush): Move declarations of locals,
39693         pos and result, into scopes where they're used.
39694
39695 2009-01-26  Eric Blake  <ebb9@byu.net>
39696
39697         Silence warning reintroduced by recent extensions patch.
39698         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS)
39699         (gl_USE_SYSTEM_EXTENSIONS): Use AC_DEFUN_ONCE to silence newer
39700         autoconf.
39701
39702         Backport improved autoconf semantics of AC_DEFUN_ONCE.
39703         * m4/00gnulib.m4: New file.
39704         * gnulib-tool (func_get_filelist): Always use it.
39705         * m4/gnulib-common.m4 (gl_COMMON): Force the file to be used.
39706         Reported by Bruno Haible, with suggestions from Paolo Bonzini.
39707
39708 2009-01-25  Bruno Haible  <bruno@clisp.org>
39709
39710         Make test-quotearg work on MacOS X and AIX.
39711         * tests/test-quotearg.sh: New file.
39712         * tests/locale/fr/LC_MESSAGES/test-quotearg.po: New file.
39713         * tests/locale/fr/LC_MESSAGES/test-quotearg.mo: New file.
39714         * tests/test-quotearg.c: Include <locale.h> and gettext.h. Don't
39715         include <libintl.h>.
39716         (fake_locale): Remove variable.
39717         (gettext, dgettext, dcgettext): Remove functions.
39718         (main): Instead of setting a fake locale, set a real locale. Call
39719         textdomain and bindtextdomain.
39720         * modules/quotearg-tests (Files): Add the new files.
39721         (Depends-on): Add gettext, setenv, unsetenv.
39722         (configure.ac): Invoke gt_LOCALE_FR and gt_LOCALE_FR_UTF8.
39723         (Makefile.am): Add test-quotearg.sh to TESTS, remove test-quotearg.
39724         Augment TESTS_ENVIRONMENT.
39725
39726 2009-01-25  Bruno Haible  <bruno@clisp.org>
39727
39728         * m4/locale-fr.m4 (gt_LOCALE_FR): Remove special code that hid the
39729         fr_FR.ISO8859-1 locale on MacOS X.
39730         * m4/locale-ja.m4 (gt_LOCALE_JA): Remove special code that hid the
39731         ja_JP.eucJP locale on MacOS X.
39732         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Remove special code that hid the
39733         zh_CN.GB18030 locale on MacOS X.
39734
39735 2009-01-25  Bruno Haible  <bruno@clisp.org>
39736
39737         Avoid link errors on MacOS X 10.3.
39738         * lib/mbsrtowcs-state.c (_gl_mbsrtowcs_state): Add initializer.
39739         * lib/wcsrtombs-state.c (_gl_wcsrtombs_state): Likewise.
39740
39741 2009-01-25  Bruno Haible  <bruno@clisp.org>
39742
39743         * lib/pipe.c: On Unix, assume HAVE_POSIX_SPAWN and use posix_spawnp.
39744         * m4/pipe.m4 (gl_PIPE): Remove tests for vfork() based code.
39745         * modules/pipe (Files): Remove m4/posix_spawn.m4.
39746         (Depends-on): Add spawn, posix_spawnp, posix_spawn_file_actions_init,
39747         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2,
39748         posix_spawn_file_actions_addopen, posix_spawn_file_actions_destroy,
39749         posix_spawnattr_init, posix_spawnattr_setsigmask,
39750         posix_spawnattr_setflags, posix_spawnattr_destroy.
39751
39752         * lib/execute.c: On Unix, assume HAVE_POSIX_SPAWN and use posix_spawnp.
39753         * m4/execute.m4 (gl_EXECUTE): Remove tests for vfork() based code.
39754         * modules/execute (Files): Remove m4/posix_spawn.m4.
39755         (Depends-on): Add spawn, posix_spawnp, posix_spawn_file_actions_init,
39756         posix_spawn_file_actions_addopen, posix_spawn_file_actions_destroy,
39757         posix_spawnattr_init, posix_spawnattr_setsigmask,
39758         posix_spawnattr_setflags, posix_spawnattr_destroy.
39759
39760 2009-01-25  Bruno Haible  <bruno@clisp.org>
39761
39762         * lib/glthread/threadlib.c: Include <stdlib.h>.
39763
39764 2009-01-25  Bruno Haible  <bruno@clisp.org>
39765
39766         * lib/glthread/threadlib.c (dummy): New declaration.
39767
39768 2009-01-25  Bruno Haible  <bruno@clisp.org>
39769
39770         * lib/mbrtowc.c (mbrtowc): Distinguish invalid and incomplete
39771         multibyte characters also for the GB18030 encoding. Don't crash when
39772         the encoding is unknown and nstate = 0. Needed on OSF/1 5.1.
39773
39774 2009-01-25  Bruno Haible  <bruno@clisp.org>
39775
39776         Avoid redefining 'struct random_data' on OSF/1 5.1.
39777         * lib/stdlib.in.h: Include <random.h> if it exists.
39778         * m4/stdlib_h.m4 (gl_STDLIB_H): Test whether <random.h> exists. Set
39779         HAVE_RANDOM_H. Include <random.h> when testing whether
39780         'struct random_data' exists.
39781         * modules/stdlib (Makefile.am): Substitute HAVE_RANDOM_H.
39782
39783 2009-01-25  Bruno Haible  <bruno@clisp.org>
39784
39785         Don't install charset.alias on MacOS X >= 10.3.
39786         * lib/localcharset.c (DARWIN7): New macro.
39787         (get_charset_aliases): Hardcode the result for Darwin7.
39788         * modules/localcharset (install-exec-local): Don't install
39789         charset.alias on MacOS X >= 10.3, if the file does not yet exist.
39790
39791 2009-01-25  Bruno Haible  <bruno@clisp.org>
39792
39793         Don't install charset.alias on mingw and Cygwin.
39794         * modules/localcharset (install-exec-local): Don't install
39795         charset.alias on mingw and Cygwin, if the file does not yet exist.
39796         The result for these platforms is hardcoded in localcharset.c.
39797
39798 2009-01-25  Bruno Haible  <bruno@clisp.org>
39799
39800         Make it possible again to use AC_GNU_SOURCE together with gnulib.
39801         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Require AC_GNU_SOURCE
39802         before requiring AC_USE_SYSTEM_EXTENSIONS.
39803
39804 2009-01-25  Jim Meyering  <meyering@redhat.com>
39805
39806         c-strtod: avoid warnings
39807         * lib/c-strtod.c (C_STRTOD): Cast nptr to (char *) to avoid
39808         "assignment discards qualifiers from pointer target type" warnings.
39809
39810 2009-01-24  Bruno Haible  <bruno@clisp.org>
39811
39812         Add support for non-UTF-8 locales on MacOS X.
39813         * lib/config.charset: Add CP1131, ARMSCII-8, PT154 to the list of
39814         canonical encodings. For Darwin 7 and newer, don't map traditional
39815         encodings to UTF-8.
39816         Reported by Vincent Lefevre <vincent@vinc17.org>
39817         at <http://savannah.gnu.org/bugs/?25235>.
39818
39819 2009-01-24  Bruno Haible  <bruno@clisp.org>
39820
39821         * doc/gnulib.texi (Obsolete modules): New section.
39822         Reported by Mike Frysinger <vapier@gentoo.org>.
39823
39824 2009-01-24  Bruno Haible  <bruno@clisp.org>
39825
39826         * doc/Makefile (%.pdf): Clarify where to find texmf.cnf.
39827         (%.dvi): New rule.
39828
39829 2009-01-24  Bruno Haible  <bruno@clisp.org>
39830
39831         * lib/c-strtod.h (c_strtod, c_strtold): Adjust specification.
39832         Reported by Eric Blake.
39833
39834 2009-01-24  Bruno Haible  <bruno@clisp.org>
39835
39836         * lib/c-stack.c (segv_handler): If !HAVE_XSI_STACK_OVERFLOW_HEURISTIC,
39837         set signo = 0 also if info->si_code <= 0. Needed on HP-UX 11.11.
39838         Reported by Gary V. Vaughan <gary@gnu.org>.
39839
39840 2009-01-24  Bruno Haible  <bruno@clisp.org>
39841
39842         * lib/c-strtod.h (c_strtod, c_strtold): Add specification.
39843
39844 2009-01-23  Bruno Haible  <bruno@clisp.org>
39845
39846         Make c-strtod, c-strtold usable in libraries.
39847         * lib/c-strtod.c: Include string.h instead of xalloc.h.
39848         (C_STRTOD): Call strdup instead of xstrdup.
39849         * modules/c-strtod (Depends-on): Add strdup-posix, remove xalloc.
39850         * modules/c-strtold (Depends-on): Likewise.
39851         * doc/c-strtod.texi: Remove the sentence mentioning xalloc_die.
39852         * NEWS: Mention the change.
39853         Reported by Michael Gold <mgold@ncf.ca>.
39854
39855 2009-01-23  Jim Meyering  <meyering@redhat.com>
39856
39857         c-strtod: when ENDPTR is non-NULL, set *ENDPTR in new failure path
39858         * lib/c-strtod.c (C_STRTOD) [LC_ALL_MASKC]: Ensure that when
39859         ENDPTR is non-NULL, *ENDPTR is set to NPTR upon failure.
39860
39861 2009-01-23  Simon Josefsson  <simon@josefsson.org>
39862
39863         * lib/version-etc.c: Add emit_bug_reporting_address, inspired by
39864         GNU CoreUtils.
39865         * lib/version-etc.h: Add prototype for emit_bug_reporting_address.
39866         * modules/version-etc (Description): Update.
39867
39868 2009-01-22  Bruno Haible  <bruno@clisp.org>
39869
39870         Cache the C locale object.
39871         * lib/c-strtod.c (c_locale_cache): New variable.
39872         (c_locale): New function.
39873         (C_STRTOD): Use it, and don't call freelocale.
39874         * m4/c-strtod.m4 (gl_C_STRTOD, gl_C_STRTOLD): Require AC_C_INLINE.
39875         Suggested by Paolo Bonzini.
39876
39877 2009-01-21  Bruno Haible  <bruno@clisp.org>
39878
39879         * lib/getloadavg.c (getloadavg): Check c_strtod result against error
39880         conditions other than overflow.
39881
39882 2009-01-21  Bruno Haible  <bruno@clisp.org>
39883
39884         * lib/c-strtod.c: Include errno.h.
39885         (C_STRTOD): Check against NULL return from newlocale. Preserve errno
39886         value from STRTOD_L and STRTOD.
39887
39888 2009-01-21  Bruno Haible  <bruno@clisp.org>
39889         and Jim Meyering  <meyering@redhat.com>
39890
39891         nanosleep: skip configure test (fail it) for apple universal builds
39892         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require gl_MULTIARCH. In Apple
39893         universal builds, assume that nanosleep does not work.
39894         * modules/nanosleep (Depends-on): Add multiarch.
39895
39896         mktime: skip configure test (fail it) for apple universal builds
39897         * m4/mktime.m4 (AC_FUNC_MKTIME): Require gl_MULTIARCH. In Apple
39898         universal builds, assume that mktime does not work.
39899         * modules/mktime (Depends-on): Add multiarch.
39900
39901 2009-01-21  Eric Blake  <ebb9@byu.net>
39902
39903         multiarch: avoid expand-before-require warning
39904         * modules/multiarch (configure.ac): Require, rather than expand,
39905         gl_MULTIARCH.
39906         * m4/multiarch.m4 (gl_MULTIARCH_BODY): Merge...
39907         (gl_MULTIARCH): ...into this macro, and use AC_DEFUN_ONCE to
39908         enforce that all clients require it.  Partial reversion of
39909         2008-12-29 patch.
39910
39911         error: avoid expand-before-require warning
39912         * modules/errno (configure.ac): Require, rather than expand,
39913         gl_HEADER_ERRNO_H.
39914         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Merge...
39915         (gl_HEADER_ERRNO_H): ...into this macro, and use AC_DEFUN_ONCE to
39916         enforce that all clients require it.
39917
39918         gnulib-tool: avoid warnings from using obsolete AC_GNU_SOURCE
39919         * gnulib-tool (func_dest_tmpfilename, func_create_testdir): Using
39920         obsolete AC_GNU_SOURCE causes out-of-order expansion; avoid it,
39921         and rely solely on gl_USE_SYSTEM_EXTENSIONS.
39922
39923 2009-01-21  Paolo Bonzini  <bonzini@gnu.org>
39924
39925         Revert:
39926         2009-01-20  Paolo Bonzini  <bonzini@gnu.org>
39927
39928         regex: do not depend on obsolete modules.
39929         * modules/regex: Remove memcmp and memmove.
39930
39931 2009-01-20  Bruno Haible  <bruno@clisp.org>
39932
39933         Make the 'link' module link on Windows NT 4.
39934         * lib/link.c (_WIN32_WINNT): Don't define.
39935         (CreateHardLinkFuncType): New type.
39936         (CreateHardLinkFunc, initialized): New variables.
39937         (initialize): New function.
39938         (link): Invoke CreateHardLink indirectly through the function pointer.
39939
39940 2009-01-20  Bruno Haible  <bruno@clisp.org>
39941
39942         Fix compilation failure on mingw.
39943         * tests/test-link.c (main): Don't assume that EOPNOTSUPP exists.
39944
39945 2009-01-20  Michael Gold  <mgold@ncf.ca>  (tiny change)
39946
39947         * doc/c-strtod.texi: Mention a couple of restrictions.
39948
39949 2009-01-20  Jim Meyering  <meyering@redhat.com>
39950
39951         gettimeofday: move more declarations out of functions
39952         * lib/gettimeofday.c: Move extern declarations of tzset and
39953         gmtime out of containing functions.  Prompted by Bruno Haible.
39954
39955 2009-01-20  Paolo Bonzini  <bonzini@gnu.org>
39956
39957         regex: do not depend on obsolete modules.
39958         * modules/regex: Remove memcmp and memmove.
39959
39960 2009-01-19  Bruno Haible  <bruno@clisp.org>
39961
39962         Don't use AC_REQUIRE([AC_C_BIGENDIAN]).
39963         * modules/uniconv/u16-conv-from-enc (configure.ac): Require
39964         gl_BIGENDIAN, not AC_C_BIGENDIAN.
39965         * modules/uniconv/u16-conv-to-enc (configure.ac): Likewise.
39966         * modules/uniconv/u16-strconv-to-enc (configure.ac): Likewise.
39967
39968 2009-01-19  Bruno Haible  <bruno@clisp.org>
39969
39970         * tests/test-link.c: Include <errno.h>.
39971         (main): Exit with code 77 when a hard link cannot be created due to
39972         the file system.
39973         * tests/test-link.sh: Skip test when a hard link cannot be created due
39974         to the file system.
39975         Suggested by Eric Blake.
39976
39977 2009-01-19  Martin Lambers  <marlam@marlam.de>
39978
39979         * modules/link-tests: New file.
39980         * tests/test-link.sh: New file.
39981         * tests/test-link.c: New file.
39982
39983 2009-01-19  Eric Blake  <ebb9@byu.net>
39984
39985         doc: mention another function added in cygwin 1.7.0
39986         * doc/glibc-functions/glob_pattern_p.texi (glob_pattern_p):
39987         Another new function in cygwin 1.7.
39988
39989 2009-01-19  Bruno Haible  <bruno@clisp.org>
39990
39991         Don't use AC_REQUIRE([AC_C_BIGENDIAN]).
39992         * m4/gnulib-common.m4 (gl_BIGENDIAN): New macro.
39993         * m4/exponentl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Require
39994         gl_BIGENDIAN, not AC_C_BIGENDIAN.
39995         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
39996         * m4/isinf.m4 (gl_ISINFL_WORKS): Likewise.
39997         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
39998         * m4/md4.m4 (gl_MD4): Likewise.
39999         * m4/md5.m4 (gl_MD5): Likewise.
40000         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Likewise.
40001         * m4/sha1.m4 (gl_SHA1): Likewise.
40002         * m4/sha256.m4 (gl_SHA256): Likewise.
40003         * m4/sha512.m4 (gl_SHA512): Likewise.
40004
40005 2009-01-19  Bruno Haible  <bruno@clisp.org>
40006
40007         * modules/uniname/uniname-tests (Depends-on): Add progname.
40008         * tests/uniname/test-uninames.c: Include progname.h.
40009         (main): Call set_program_name.
40010
40011         * modules/unistdio/u8-vsprintf-tests (Depends-on): Add progname.
40012         * tests/unistdio/test-u8-vsprintf1.c: Include progname.h.
40013         (main): Call set_program_name.
40014
40015         * modules/unistdio/u8-vsnprintf-tests (Depends-on): Add progname.
40016         * tests/unistdio/test-u8-vsnprintf1.c: Include progname.h.
40017         (main): Call set_program_name.
40018
40019         * modules/unistdio/u16-vsprintf-tests (Depends-on): Add progname.
40020         * tests/unistdio/test-u16-vsprintf1.c: Include progname.h.
40021         (main): Call set_program_name.
40022
40023         * modules/unistdio/u16-vsnprintf-tests (Depends-on): Add progname.
40024         * tests/unistdio/test-u16-vsnprintf1.c: Include progname.h.
40025         (main): Call set_program_name.
40026
40027         * modules/unistdio/u32-vsprintf-tests (Depends-on): Add progname.
40028         * tests/unistdio/test-u32-vsprintf1.c: Include progname.h.
40029         (main): Call set_program_name.
40030
40031         * modules/unistdio/u32-vsnprintf-tests (Depends-on): Add progname.
40032         * tests/unistdio/test-u32-vsnprintf1.c: Include progname.h.
40033         (main): Call set_program_name.
40034
40035         * modules/unistdio/ulc-vsprintf-tests (Depends-on): Add progname.
40036         * tests/unistdio/test-ulc-vsprintf1.c: Include progname.h.
40037         (main): Call set_program_name.
40038
40039         * modules/unistdio/ulc-vsnprintf-tests (Depends-on): Add progname.
40040         * tests/unistdio/test-ulc-vsnprintf1.c: Include progname.h.
40041         (main): Call set_program_name.
40042
40043 2009-01-19  Eric Blake  <ebb9@byu.net>
40044
40045         test-unistd: test previous patch
40046         * tests/test-unistd.c: Test *_FILENO macros.
40047
40048         unistd: guarantee STDIN_FILENO here, for OS/2 EMX
40049         * lib/unistd.in.h (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
40050         Guarantee a definition.
40051         * doc/posix-headers/unistd.texi (unistd.h): Document the bug.
40052         * modules/unistd-safer (Depends-on): Add dependency on unistd.
40053         * lib/c-stack.c (STDERR_FILENO): Rely on <unistd.h>.
40054         * lib/dup-safer.c (STDERR_FILENO): Likewise.
40055         * lib/execute.c (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
40056         Likewise.
40057         * lib/fd-safer.c (STDIN_FILENO, STDERR_FILENO): Likewise.
40058         * lib/fopen-safer.c (STDERR_FILENO): Likewise.
40059         * lib/pipe.c (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
40060         Likewise.
40061         * lib/tmpfile-safer.c (STDERR_FILENO): Likewise.
40062         * tests/test-posix_spawn1.c (STDIN_FILENO, STDOUT_FILENO)
40063         (STDERR_FILENO): Likewise.
40064         * tests/test-posix_spawn2.c (STDIN_FILENO, STDOUT_FILENO)
40065         (STDERR_FILENO): Likewise.
40066         * tests/test-posix_spawn3.c (STDIN_FILENO, STDOUT_FILENO)
40067         (STDERR_FILENO): Likewise.
40068         Reported by Elbert Pol.
40069
40070 2009-01-19  Eric Blake  <ebb9@byu.net>
40071
40072         doc: mention more functions added in cygwin 1.7.0
40073         * doc/posix-functions/abort.texi (abort): Update wording related
40074         to cygwin.
40075         * doc/posix-functions/daylight.texi (daylight): Likewise.
40076         * doc/posix-functions/optarg.texi (optarg): Likewise.
40077         * doc/posix-functions/optarg.texi (opterr): Likewise.
40078         * doc/posix-functions/optarg.texi (optind): Likewise.
40079         * doc/posix-functions/optarg.texi (optopt): Likewise.
40080         * doc/posix-functions/wprintf.texi (wprintf): Cygwin wprintf never
40081         worked in 1.5.x, and was withdrawn in 1.7.
40082         * doc/posix-functions/vwprintf.texi (vwprintf): Likewise.
40083         * doc/posix-functions/fprintf.texi (fprintf): Tighten mention of
40084         cygwin versions.
40085         * doc/posix-functions/perror.texi (perror): Likewise.
40086         * doc/posix-functions/printf.texi (printf): Likewise.
40087         * doc/posix-functions/snprintf.texi (snprintf): Likewise.
40088         * doc/posix-functions/sprintf.texi (sprintf): Likewise.
40089         * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
40090         * doc/posix-functions/vprintf.texi (vprintf): Likewise.
40091         * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
40092         * doc/posix-functions/vsprintf.texi (vsprintf): Likewise.
40093         * doc/glibc-functions/obstack_printf.texi (obstack_printf):
40094         Likewise.
40095         * doc/glibc-functions/obstack_vprintf.texi (obstack_vprintf):
40096         Likewise.
40097         * doc/glibc-functions/cfmakeraw.texi (cfmakeraw): Cygwin 1.7 adds
40098         this function.
40099         * doc/glibc-functions/in6addr_any.texi (in6addr_any): Likewise.
40100         * doc/glibc-functions/in6addr_loopback.texi (in6addr_loopback):
40101         Likewise.
40102         * doc/glibc-functions/updwtmpx.texi (updwtmpx): Likewise.
40103         * doc/posix-functions/_Exit_C99.texi (_Exit): Likewise.
40104         * doc/posix-functions/confstr.texi (confstr): Likewise.
40105         * doc/posix-functions/dprintf.texi (dprintf): Likewise.
40106         * doc/posix-functions/fgetwc.texi (fgetwc): Likewise.
40107         * doc/posix-functions/fgetws.texi (fgetws): Likewise.
40108         * doc/posix-functions/fputwc.texi (fputwc): Likewise.
40109         * doc/posix-functions/fputws.texi (fputws): Likewise.
40110         * doc/posix-functions/fwide.texi (fwide): Likewise.
40111         * doc/posix-functions/getwc.texi (getwc): Likewise.
40112         * doc/posix-functions/getwchar.texi (getwchar): Likewise.
40113         * doc/posix-functions/putwc.texi (putwc): Likewise.
40114         * doc/posix-functions/putwchar.texi (putwchar): Likewise.
40115         * doc/posix-functions/sigignore.texi (sigignore): Likewise.
40116         * doc/posix-functions/ungetwc.texi (ungetwc): Likewise.
40117         * doc/posix-functions/vdprintf.texi (vdprintf): Likewise.
40118         * doc/posix-functions/wcpcpy.texi (wcpcpy): Likewise.
40119         * doc/posix-functions/wcpncpy.texi (wcpncpy): Likewise.
40120         * doc/posix-functions/wcstol.texi (wcstol): Likewise.
40121         * doc/posix-functions/wcstoll.texi (wcstoll): Likewise.
40122         * doc/posix-functions/wcstoul.texi (wcstoul): Likewise.
40123         * doc/posix-functions/wcstoull.texi (wcstoull): Likewise.
40124         * doc/posix-functions/wcsxfrm.texi (wcsxfrm): Likewise.
40125
40126 2009-01-19  Daniel P. Berrange  <berrange@redhat.com>
40127
40128         ioctl: avoid warning: no previous prototype for 'rpl_ioctl'
40129         * lib/ioctl.c: Include <sys/ioctl.h>.
40130
40131 2009-01-19  Simon Josefsson  <simon@josefsson.org>
40132
40133         * modules/getdate-tests (Depends-on): Add progname.
40134         * tests/test-getdate.c: Use progname module, to avoid link errors
40135         on non-glibc systems.
40136
40137 2009-01-18  Simon Josefsson  <simon@josefsson.org>
40138
40139         * modules/filenamecat-tests (Depends-on): Add progname.
40140         * modules/fstrcmp-tests (Depends-on): Likewise.
40141
40142         * tests/test-filenamecat.c: Use progname module, to avoid link
40143         errors on non-glibc systems.
40144         * tests/test-fstrcmp.c: Likewise.
40145
40146 2009-01-19  Daniel P. Berrange  <berrange@redhat.com>
40147
40148         gettimeofday: avoid warning: nested extern declaration of 'localtime'
40149         * lib/gettimeofday.c: Move extern declaration out of function.
40150
40151 2009-01-18  Bruno Haible  <bruno@clisp.org>
40152
40153         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't test for mblen and mbrlen.
40154         * lib/strftime.c (HAVE_MBLEN, HAVE_MBRLEN): Remove macros.
40155         (MULTIBYTE_IS_FORMAT_SAFE): Define to 1 on all platforms except OSF/1.
40156
40157 2009-01-18  Bruno Haible  <bruno@clisp.org>
40158
40159         * lib/strftime.c (MEMPCPY): Remove unused macro.
40160         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't test for mempcpy.
40161
40162 2009-01-18  Martin Lambers  <marlam@marlam.de>
40163
40164         New module 'link'.
40165         * lib/unistd.in.h (link): New declaration.
40166         * lib/link.c: New file.
40167         * m4/link.m4: New file.
40168         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_LINK,
40169         HAVE_LINK.
40170         * modules/unistd (Makefile.am): Substitute GNULIB_LINK, HAVE_LINK.
40171         * modules/link: New file.
40172         * doc/posix-functions/link.texi: Mention the new module.
40173
40174 2009-01-18  Bruno Haible  <bruno@clisp.org>
40175
40176         * tests/test-avltree_list.c (main): Call set_program_name.
40177         * tests/test-avltree_oset.c (main): Likewise.
40178         * tests/test-obstack-printf.c: Include progname.h.
40179         (main): Call set_program_name.
40180         * tests/test-quotearg.c: Include progname.h.
40181         (main): Call set_program_name.
40182         * tests/test-xmemdup0.c: Include progname.h.
40183         (main): Call set_program_name.
40184
40185 2009-01-18  Bruno Haible  <bruno@clisp.org>
40186
40187         New module 'alphasort'.
40188         * lib/dirent.in.h (alphasort): New declaration.
40189         * lib/alphasort.c: New file, from glibc with modifications.
40190         * m4/alphasort.m4: New file.
40191         * modules/alphasort: New file.
40192         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_ALPHASORT,
40193         HAVE_ALPHASORT.
40194         * modules/dirent (Makefile.am): Substitute GNULIB_ALPHASORT,
40195         HAVE_ALPHASORT.
40196         * doc/posix-functions/alphasort.texi: Mention the new module and the
40197         portability problems.
40198
40199 2009-01-18  Bruno Haible  <bruno@clisp.org>
40200
40201         New module 'scandir'.
40202         * lib/dirent.in.h (scandir): New declaration.
40203         * lib/scandir.c: New file, from glibc with modifications.
40204         * m4/scandir.m4: New file.
40205         * modules/scandir: New file.
40206         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_SCANDIR,
40207         HAVE_SCANDIR.
40208         * modules/dirent (Makefile.am): Substitute GNULIB_SCANDIR,
40209         HAVE_SCANDIR.
40210         * doc/posix-functions/scandir.texi: Mention the new module and the
40211         portability problems.
40212
40213 2009-01-17  Bruno Haible  <bruno@clisp.org>
40214
40215         * gnulib-tool (func_remove_prefix): Escape all dots in the prefix.
40216         Update documentation.
40217         (func_remove_suffix): Escape all dots in the suffix. Update
40218         documentation.
40219         (func_filter_filelist): Update documentation.
40220         Reported by Ralf Wildenhues.
40221
40222 2009-01-17  Bruno Haible  <bruno@clisp.org>
40223
40224         * modules/dprintf-posix-tests: New file.
40225         * tests/test-dprintf-posix.sh: New file.
40226         * tests/test-dprintf-posix.c: New file.
40227
40228         New modules 'dprintf', 'dprintf-posix'.
40229         * lib/stdio.in.h (dprintf): New declaration.
40230         * lib/dprintf.c: New file.
40231         * m4/dprintf.m4: New file.
40232         * m4/dprintf-posix.m4: New file.
40233         * modules/dprintf: New file.
40234         * modules/dprintf-posix: New file.
40235         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_DPRINTF,
40236         HAVE_DPRINTF, REPLACE_DPRINTF.
40237         * modules/stdio (Makefile.am): Substitute also GNULIB_DPRINTF,
40238         HAVE_DPRINTF, REPLACE_DPRINTF.
40239         * doc/posix-functions/dprintf.texi: Mention the new modules.
40240
40241 2009-01-17  Bruno Haible  <bruno@clisp.org>
40242
40243         * modules/vdprintf-posix-tests: New file.
40244         * tests/test-vdprintf-posix.sh: New file.
40245         * tests/test-vdprintf-posix.c: New file.
40246
40247         New modules 'vdprintf', 'vdprintf-posix'.
40248         * lib/stdio.in.h (vdprintf): New declaration.
40249         * lib/vdprintf.c: New file.
40250         * m4/vdprintf.m4: New file.
40251         * m4/vdprintf-posix.m4: New file.
40252         * modules/vdprintf: New file.
40253         * modules/vdprintf-posix: New file.
40254         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_VDPRINTF,
40255         HAVE_VDPRINTF, REPLACE_VDPRINTF.
40256         * modules/stdio (Makefile.am): Substitute also GNULIB_VDPRINTF,
40257         HAVE_VDPRINTF, REPLACE_VDPRINTF.
40258         * doc/posix-functions/vdprintf.texi: Mention the new modules.
40259
40260 2009-01-17  Bruno Haible  <bruno@clisp.org>
40261
40262         Fix replacement of fopen on mingw.
40263         * m4/fopen.m4 (gl_FUNC_FOPEN): Define FOPEN_TRAILING_SLASH_BUG also on
40264         mingw.
40265
40266 2009-01-17  Bruno Haible  <bruno@clisp.org>
40267
40268         Fix compilation error on HP-UX 11.00, present since 2008-09-24.
40269         * lib/fopen.c: Include <sys/types.h> and <sys/types.h>.
40270
40271 2009-01-17  Bruno Haible  <bruno@clisp.org>
40272
40273         Avoid test-fflush2.sh failure on mingw.
40274         * tests/test-fflush2.c: Include binary-io.h.
40275         (main): Put standard input into binary mode.
40276         * modules/fflush-tests (Depends-on): Add binary-io.
40277
40278 2009-01-17  Bruno Haible  <bruno@clisp.org>
40279
40280         * lib/wchar.in.h: In another particular situation, include only the
40281         system's <wchar.h> file.
40282         (_GL_ALREADY_INCLUDING_WCHAR_H): New macro.
40283         Reported by Albert Chin-A-Young <china@thewrittenword.com>
40284         and Thomas Guyot-Sionnest <dermoth@aei.ca>.
40285
40286 2009-01-17  Bruno Haible  <bruno@clisp.org>
40287
40288         Support for stripping executables in --enable-relocatable.
40289         * build-aux/install-reloc: Expect one more argument, or an environment
40290         variable RELOC_STRIP_PROG. If set, strip the destination program and
40291         its wrapper.
40292         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): In INSTALL_PROGRAM_ENV, set
40293         RELOC_STRIP_PROG.
40294         * doc/relocatable-maint.texi (Supporting Relocation): Mention the need
40295         to set RELOCATABLE_STRIP.
40296         * NEWS: Mention the new Makefile requirement.
40297
40298 2009-01-17  Bruno Haible  <bruno@clisp.org>
40299
40300         * build-aux/install-reloc: Remove debugging information left over by
40301         C compiler on MacOS X.
40302
40303 2009-01-17  Bruno Haible  <bruno@clisp.org>
40304
40305         Update use of _NSGetExecutablePath after API change in MacOS X 10.4.
40306         * lib/progreloc.c (find_executable): Fix type of pointer passed to
40307         _NSGetExecutablePath.
40308
40309 2009-01-16  Jim Meyering  <meyering@redhat.com>
40310
40311         strerror: avoid warnings about discarding "const"
40312         * lib/strerror.c (rpl_strerror): Instead of returning a const
40313         string from each and every "case", use a variable, and add a single
40314         cast after the switch.
40315
40316 2009-01-16  Albert Chin-A-Young <china@thewrittenword.com>
40317
40318         * lib/arpa_inet.in.h: Add extern "C" block for C++.
40319
40320 2009-01-16  Bruno Haible  <bruno@clisp.org>
40321
40322         * m4/printf.m4 (gl_SNPRINTF_SIZE1, gl_VSNPRINTF_ZEROSIZE_C99): Use an
40323         array initializer syntax that also works in C++ mode.
40324         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
40325
40326 2009-01-16  Jim Meyering  <meyering@redhat.com>
40327
40328         poll: suppress a warning
40329         * lib/poll.c: Use #pragma GCC diagnostic ignored "-Wtype-limits"
40330         to ignore "...unsigned expression < 0 is always false" warnings.
40331
40332 2009-01-16  Daniel P. Berrange  <berrange@redhat.com>
40333
40334         poll: remove declarations of unused variables
40335         * lib/poll.c (poll) [WIN32_NATIVE]: Remove declarations of unused
40336         sockbuf and optlen.
40337
40338 2009-01-15  Bruno Haible  <bruno@clisp.org>
40339
40340         Make fflush-after-ungetc POSIX compliant on BSD systems.
40341         * lib/fflush.c (clear_ungetc_buffer_preserving_position): New function.
40342         (clear_ungetc_buffer): Implement also for other systems.
40343         (rpl_fflush): On glibc systems, invoke
40344         clear_ungetc_buffer_preserving_position. Otherwise, invoke
40345         clear_ungetc_buffer after fetching the stream's position, not before.
40346
40347 2009-01-15  Bruno Haible  <bruno@clisp.org>
40348
40349         Make fflush-after-ungetc POSIX compliant on glibc systems.
40350         * m4/fflush.m4 (gl_FUNC_FFLUSH): Test also the behaviour of fflush
40351         after ungetc.
40352         * lib/fflush.c (clear_ungetc_buffer): Implement for glibc systems.
40353         (rpl_fflush): On glibc systems, simply call the system's fflush
40354         function after clearing the ungetc buffer.
40355         * lib/fseeko.c (rpl_fseeko): Don't try to lseek past the end of file.
40356         Instead, lseek only to the end of file, then use the system's fseeko
40357         for the rest. On glibc systems, reset the EOF indicator bit.
40358
40359 2009-01-15  Jim Meyering  <meyering@redhat.com>
40360
40361         openmp.m4: revert quote-adding change, for portability to older autoconf
40362         * m4/openmp.m4: Remove the quotes added on 2009-01-14.
40363         This reverts part of 42d1eda5dcce2d68deab7a642e7f29bcd7144a0d.
40364         Simon Josefsson noticed the problem when using autoconf-2.61.
40365
40366 2009-01-15  Bruno Haible  <bruno@clisp.org>
40367
40368         * tests/test-fflush2.sh: Invoke test-fflush2 twice.
40369         * tests/test-fflush2.c (ASSERT): Always fail.
40370         (main): Add two tests for fflush() after ungetc(), taking into account
40371         the Austin Group's clarification.
40372         Suggested by Eric Blake.
40373
40374 2009-01-15  Albert Chin-A-Young  <china@thewrittenword.com>
40375
40376         mktime.m4: remove K&R-style function prototypes
40377         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove K&R-style function prototypes
40378         for the Sun C++ compiler.
40379
40380 2009-01-14  Bruno Haible  <bruno@clisp.org>
40381
40382         * lib/stdint.in.h (_GL_JUST_INCLUDE_SYSTEM_WCHAR_H): New macro, defined
40383         while including <wchar.h>.
40384         * lib/wchar.in.h: In two particular situations on HP-UX, include only
40385         the system's <wchar.h> file.
40386         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
40387
40388 2009-01-14  Bruno Haible  <bruno@clisp.org>
40389
40390         * m4/csharp.m4: Don't mention gettext on the serial number line.
40391         * m4/csharpexec.m4: Likewise.
40392         * m4/eaccess.m4: Likewise.
40393         * m4/javaexec.m4: Likewise.
40394         * m4/sig_atomic_t.m4: Likewise.
40395         * m4/tmpdir.m4: Likewise.
40396         * m4/intldir.m4: Bump gettext version.
40397         * m4/lib-ld.m4: Likewise.
40398
40399 2009-01-14  Bruno Haible  <bruno@clisp.org>
40400
40401         * lib/progname.c (set_program_name): Add more comments.
40402         Reported by Sergey Poznyakoff <gray@gnu.org.ua>.
40403
40404 2009-01-14  Simon Josefsson  <simon@josefsson.org>
40405
40406         * lib/sys_stat.in.h: Include sys/types.h for nlink_t on systems
40407         were sys/stat.h does not define it.
40408
40409 2009-01-14  Jim Meyering  <meyering@redhat.com>
40410
40411         many *.m4 files: improve m4 quoting
40412         99% of this change was performed by running the following commands:
40413         git ls-files | grep '\.m4$' | xargs perl -pi \
40414           -e 's/(AC_\w+\()([^[()]+?)([,)])/$1\[$2]$3/g;' \
40415           -e 's/(AC_\w+\((?:\[[^,]+?\], ){1})([^,[()]+?)([,)])/$1\[$2]$3/g;' \
40416           -e 's/(AC_\w+\((?:\[[^,]+?\], ){2})([^,[()]+?)([,)])/$1\[$2]$3/g;' \
40417           -e 's/(AC_\w+\((?:\[[^,]+?\], ){3})([^,[()]+?)([,)])/$1\[$2]$3/g'
40418         perl -pi -e 's/\[\.\.\.\]/.../' m4/onceonly.m4
40419         The remainder were to add Copyright dates, increment serial numbers,
40420         undo some changes in comments, exclude m4/intl.m4, and add quotes
40421         around the "1" in ",1" where the unusual spacing prohibited the
40422         above regexps from doing the job.  For more details, see
40423         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/16175>.
40424         * m4/acl.m4: Modified.
40425         * m4/afs.m4: Likewise.
40426         * m4/alloca.m4: Likewise.
40427         * m4/argp.m4: Likewise.
40428         * m4/argz.m4: Likewise.
40429         * m4/atexit.m4: Likewise.
40430         * m4/bison-i18n.m4: Likewise.
40431         * m4/bison.m4: Likewise.
40432         * m4/byteswap.m4: Likewise.
40433         * m4/c-stack.m4: Likewise.
40434         * m4/c-strtod.m4: Likewise.
40435         * m4/calloc.m4: Likewise.
40436         * m4/canonicalize-lgpl.m4: Likewise.
40437         * m4/chown.m4: Likewise.
40438         * m4/clock_time.m4: Likewise.
40439         * m4/codeset.m4: Likewise.
40440         * m4/copy-file.m4: Likewise.
40441         * m4/csharp.m4: Likewise.
40442         * m4/csharpcomp.m4: Likewise.
40443         * m4/csharpexec.m4: Likewise.
40444         * m4/d-ino.m4: Likewise.
40445         * m4/d-type.m4: Likewise.
40446         * m4/dirfd.m4: Likewise.
40447         * m4/double-slash-root.m4: Likewise.
40448         * m4/eaccess.m4: Likewise.
40449         * m4/eealloc.m4: Likewise.
40450         * m4/environ.m4: Likewise.
40451         * m4/errno_h.m4: Likewise.
40452         * m4/euidaccess.m4: Likewise.
40453         * m4/execute.m4: Likewise.
40454         * m4/fatal-signal.m4: Likewise.
40455         * m4/fchdir.m4: Likewise.
40456         * m4/fcntl_h.m4: Likewise.
40457         * m4/fileblocks.m4: Likewise.
40458         * m4/filenamecat.m4: Likewise.
40459         * m4/findprog.m4: Likewise.
40460         * m4/flexmember.m4: Likewise.
40461         * m4/fnmatch.m4: Likewise.
40462         * m4/fopen.m4: Likewise.
40463         * m4/fpending.m4: Likewise.
40464         * m4/fprintf-posix.m4: Likewise.
40465         * m4/free.m4: Likewise.
40466         * m4/frexp.m4: Likewise.
40467         * m4/frexpl.m4: Likewise.
40468         * m4/fsusage.m4: Likewise.
40469         * m4/ftruncate.m4: Likewise.
40470         * m4/gc-camellia.m4: Likewise.
40471         * m4/gc-random.m4: Likewise.
40472         * m4/gc.m4: Likewise.
40473         * m4/getaddrinfo.m4: Likewise.
40474         * m4/getcwd-abort-bug.m4: Likewise.
40475         * m4/getcwd-path-max.m4: Likewise.
40476         * m4/getdate.m4: Likewise.
40477         * m4/getdomainname.m4: Likewise.
40478         * m4/getgroups.m4: Likewise.
40479         * m4/gethostname.m4: Likewise.
40480         * m4/gethrxtime.m4: Likewise.
40481         * m4/getline.m4: Likewise.
40482         * m4/getloadavg.m4: Likewise.
40483         * m4/getndelim2.m4: Likewise.
40484         * m4/getpass.m4: Likewise.
40485         * m4/gettext.m4: Likewise.
40486         * m4/gettime.m4: Likewise.
40487         * m4/gettimeofday.m4: Likewise.
40488         * m4/gnulib-common.m4: Likewise.
40489         * m4/group-member.m4: Likewise.
40490         * m4/host-os.m4: Likewise.
40491         * m4/iconv.m4: Likewise.
40492         * m4/iconv_open.m4: Likewise.
40493         * m4/inet_ntop.m4: Likewise.
40494         * m4/inet_pton.m4: Likewise.
40495         * m4/inline.m4: Likewise.
40496         * m4/intldir.m4: Likewise.
40497         * m4/intlmacosx.m4: Likewise.
40498         * m4/intmax.m4: Likewise.
40499         * m4/intmax_t.m4: Likewise.
40500         * m4/inttypes.m4: Likewise.
40501         * m4/inttypes_h.m4: Likewise.
40502         * m4/inttypes-pri.m4: Likewise.
40503         * m4/isapipe.m4: Likewise.
40504         * m4/isnand.m4: Likewise.
40505         * m4/isnanf.m4: Likewise.
40506         * m4/isnanl.m4: Likewise.
40507         * m4/javacomp.m4: Likewise.
40508         * m4/javaexec.m4: Likewise.
40509         * m4/jm-winsz1.m4: Likewise.
40510         * m4/jm-winsz2.m4: Likewise.
40511         * m4/lchown.m4: Likewise.
40512         * m4/lcmessage.m4: Likewise.
40513         * m4/ldexpl.m4: Likewise.
40514         * m4/lib-ld.m4: Likewise.
40515         * m4/lib-link.m4: Likewise.
40516         * m4/libsigsegv.m4: Likewise.
40517         * m4/link-follow.m4: Likewise.
40518         * m4/localcharset.m4: Likewise.
40519         * m4/locale-fr.m4: Likewise.
40520         * m4/locale-ja.m4: Likewise.
40521         * m4/locale-tr.m4: Likewise.
40522         * m4/locale-zh.m4: Likewise.
40523         * m4/lock.m4: Likewise.
40524         * m4/longlong.m4: Likewise.
40525         * m4/ls-mntd-fs.m4: Likewise.
40526         * m4/lstat.m4: Likewise.
40527         * m4/malloc.m4: Likewise.
40528         * m4/mathl.m4: Likewise.
40529         * m4/mbrtowc.m4: Likewise.
40530         * m4/mbstate_t.m4: Likewise.
40531         * m4/mbswidth.m4: Likewise.
40532         * m4/memchr.m4: Likewise.
40533         * m4/memcmp.m4: Likewise.
40534         * m4/memcpy.m4: Likewise.
40535         * m4/memmem.m4: Likewise.
40536         * m4/memmove.m4: Likewise.
40537         * m4/mempcpy.m4: Likewise.
40538         * m4/memrchr.m4: Likewise.
40539         * m4/memset.m4: Likewise.
40540         * m4/minmax.m4: Likewise.
40541         * m4/mkdir-slash.m4: Likewise.
40542         * m4/mkdtemp.m4: Likewise.
40543         * m4/mktime.m4: Likewise.
40544         * m4/mmap-anon.m4: Likewise.
40545         * m4/mountlist.m4: Likewise.
40546         * m4/nanosleep.m4: Likewise.
40547         * m4/nls.m4: Likewise.
40548         * m4/nocrash.m4: Likewise.
40549         * m4/open.m4: Likewise.
40550         * m4/openat.m4: Likewise.
40551         * m4/openmp.m4: Likewise.
40552         * m4/pathmax.m4: Likewise.
40553         * m4/perl.m4: Likewise.
40554         * m4/physmem.m4: Likewise.
40555         * m4/pipe.m4: Likewise.
40556         * m4/po.m4: Likewise.
40557         * m4/poll.m4: Likewise.
40558         * m4/posixtm.m4: Likewise.
40559         * m4/posixver.m4: Likewise.
40560         * m4/printf-frexp.m4: Likewise.
40561         * m4/printf-frexpl.m4: Likewise.
40562         * m4/printf-posix.m4: Likewise.
40563         * m4/printf-posix-rpl.m4: Likewise.
40564         * m4/printf.m4: Likewise.
40565         * m4/progtest.m4: Likewise.
40566         * m4/putenv.m4: Likewise.
40567         * m4/readline.m4: Likewise.
40568         * m4/readlink.m4: Likewise.
40569         * m4/readutmp.m4: Likewise.
40570         * m4/realloc.m4: Likewise.
40571         * m4/regex.m4: Likewise.
40572         * m4/relocatable.m4: Likewise.
40573         * m4/relocatable-lib.m4: Likewise.
40574         * m4/rename-dest-slash.m4: Likewise.
40575         * m4/rename.m4: Likewise.
40576         * m4/rmdir-errno.m4: Likewise.
40577         * m4/rmdir.m4: Likewise.
40578         * m4/roundf.m4: Likewise.
40579         * m4/roundl.m4: Likewise.
40580         * m4/rpmatch.m4: Likewise.
40581         * m4/save-cwd.m4: Likewise.
40582         * m4/selinux-selinux-h.m4: Likewise.
40583         * m4/setenv.m4: Likewise.
40584         * m4/settime.m4: Likewise.
40585         * m4/sig2str.m4: Likewise.
40586         * m4/sig_atomic_t.m4: Likewise.
40587         * m4/signalblocking.m4: Likewise.
40588         * m4/signbit.m4: Likewise.
40589         * m4/sigpipe.m4: Likewise.
40590         * m4/sockets.m4: Likewise.
40591         * m4/sockpfaf.m4: Likewise.
40592         * m4/st_dm_mode.m4: Likewise.
40593         * m4/stat-time.m4: Likewise.
40594         * m4/stdbool.m4: Likewise.
40595         * m4/stdint.m4: Likewise.
40596         * m4/stdint_h.m4: Likewise.
40597         * m4/stpcpy.m4: Likewise.
40598         * m4/stpncpy.m4: Likewise.
40599         * m4/strcase.m4: Likewise.
40600         * m4/strchrnul.m4: Likewise.
40601         * m4/strcspn.m4: Likewise.
40602         * m4/strdup.m4: Likewise.
40603         * m4/strftime.m4: Likewise.
40604         * m4/strndup.m4: Likewise.
40605         * m4/strnlen.m4: Likewise.
40606         * m4/strpbrk.m4: Likewise.
40607         * m4/strptime.m4: Likewise.
40608         * m4/strsep.m4: Likewise.
40609         * m4/strtod.m4: Likewise.
40610         * m4/strtoimax.m4: Likewise.
40611         * m4/strtok_r.m4: Likewise.
40612         * m4/strtol.m4: Likewise.
40613         * m4/strtoll.m4: Likewise.
40614         * m4/strtoul.m4: Likewise.
40615         * m4/strtoull.m4: Likewise.
40616         * m4/strtoumax.m4: Likewise.
40617         * m4/strverscmp.m4: Likewise.
40618         * m4/threadlib.m4: Likewise.
40619         * m4/timegm.m4: Likewise.
40620         * m4/tm_gmtoff.m4: Likewise.
40621         * m4/tmpdir.m4: Likewise.
40622         * m4/tmpfile.m4: Likewise.
40623         * m4/tzset.m4: Likewise.
40624         * m4/uintmax_t.m4: Likewise.
40625         * m4/unlinkdir.m4: Likewise.
40626         * m4/unlocked-io.m4: Likewise.
40627         * m4/uptime.m4: Likewise.
40628         * m4/userspec.m4: Likewise.
40629         * m4/utimbuf.m4: Likewise.
40630         * m4/utime.m4: Likewise.
40631         * m4/utimes-null.m4: Likewise.
40632         * m4/utimes.m4: Likewise.
40633         * m4/vararrays.m4: Likewise.
40634         * m4/vasnprintf.m4: Likewise.
40635         * m4/vfprintf-posix.m4: Likewise.
40636         * m4/vprintf-posix.m4: Likewise.
40637         * m4/wait-process.m4: Likewise.
40638         * m4/wchar_t.m4: Likewise.
40639         * m4/wint_t.m4: Likewise.
40640         * m4/write-any-file.m4: Likewise.
40641         * m4/yield.m4: Likewise.
40642
40643 2009-01-13  Bruno Haible  <bruno@clisp.org>
40644
40645         Avoid test-copy-file.sh failures when ACL support insufficient.
40646         * modules/copy-file-tests (Makefile.am): Pass USE_ACL in
40647         TESTS_ENVIRONMENT.
40648         * tests/test-copy-file.sh: Skip the ACL comparisons if USE_ACL is 0.
40649         Reported by Jim Meyering.
40650
40651 2009-01-13  Bruno Haible  <bruno@clisp.org>
40652
40653         * modules/unistdio/u-printf-args (Files): Add m4/stdint_h.m4 and
40654         m4/inttypes_h.m4, needed by m4/intmax_t.m4.
40655         * modules/unistdio/u8-printf-parse (Files): Likewise.
40656         * modules/unistdio/u32-printf-parse (Files): Likewise.
40657         * modules/unistdio/ulc-printf-parse (Files): Likewise.
40658
40659 2009-01-13  Simon Josefsson  <simon@josefsson.org>
40660
40661         * modules/unistdio/u16-printf-parse (Files): Add m4/stdint_h.m4
40662         and m4/inttypes_h.m4 too.
40663
40664 2009-01-12  Eric Blake  <ebb9@byu.net>
40665
40666         tests: IRIX 6.2 cc can't compile -0.0 into .data
40667         * tests/test-ceill.c (minus_zero): Compute -0.0L at runtime,
40668         rather than at compile-time.
40669         * tests/test-floorl.c (minus_zero): Likewise.
40670         * tests/test-frexpl.c (minus_zero): Likewise.
40671         * tests/test-isnan.c (minus_zerol): Likewise.
40672         * tests/test-isnanl.h (minus_zero): Likewise.
40673         * tests/test-ldexpl.c (minus_zero): Likewise.
40674         * tests/test-roundl.c (minus_zero): Likewise.
40675         * tests/test-signbit.c (minus_zerol): Likewise.
40676         * tests/test-snprintf-posix.h (minus_zerol): Likewise.
40677         * tests/test-sprintf-posix.h (minus_zerol): Likewise.
40678         * tests/test-truncl.c (minus_zero): Likewise.
40679         * tests/test-vasnprintf-posix.c (minus_zerol): Likewise.
40680         * tests/test-vasprintf-posix.c (minus_zerol): Likewise.
40681         Reported by Tom G. Christensen and Nelson H. F. Beebe.
40682
40683 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
40684
40685         regex: fix glibc bug 9697
40686         * lib/regcomp.c (re_compile_fastmap_iter): Rewrite COMPLEX_BRACKET
40687         handling.
40688
40689 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
40690
40691         regex: fix glibc bug 697
40692         * lib/regexec.c (prune_impossible_nodes): Handle sifted_states[0]
40693         being NULL also if there are no backreferences.
40694
40695 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
40696
40697         regex: merge glibc changes
40698         * lib/regcomp.c (re_compile_fastmap_iter): Use __mbrtowc.
40699         * lib/regex_internal.c (build_wcs_buffer, build_wcs_upper_buffer,
40700         re_string_skip_chars, re_string_reconstruct): Likewise.
40701         * lib/regex_internal.h [!_LIBC] (__mbrtowc): New #define.
40702
40703 2009-01-07  Jim Meyering  <meyering@redhat.com>
40704
40705         poll: filter through cppi
40706         * lib/poll.c: Indent cpp directives to reflect nesting.
40707
40708 2009-01-07  Daniel P. Berrange  <berrange@redhat.com>
40709
40710         poll: don't return uninitialized
40711         * lib/poll.c (poll) [WIN32_NATIVE]: Initialize "rc".
40712
40713 2009-01-06  Jeremy Olexa <darkside@gentoo.org>  (tiny change)
40714
40715         avoid compile failure on AIX 6.1
40716         * lib/getloadavg.c [HAVE_LIBPERFSTAT]: Include <sys/protosw.h>.
40717         Details in http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/15465
40718
40719 2009-01-04  Jim Meyering  <meyering@redhat.com>
40720
40721         remove duplicate inclusion of <stdio.h>
40722         * tests/test-fprintf-posix.c: Likewise.
40723         * tests/test-printf-posix.c: Likewise.
40724         * tests/test-snprintf-posix.c: Likewise.
40725         * tests/test-sprintf-posix.c: Likewise.
40726         * tests/test-vasprintf-posix.c: Likewise.
40727         * tests/test-vfprintf-posix.c: Likewise.
40728         * tests/test-vprintf-posix.c: Likewise.
40729         * tests/test-vsnprintf-posix.c: Likewise.
40730         * tests/test-vsprintf-posix.c: Likewise.
40731
40732 2009-01-03  Jim Meyering  <meyering@redhat.com>
40733
40734         gnulib-tool: fix sed-based filtering
40735         * gnulib-tool (func_filter_filelist): Remove extra backslash
40736         in sed_fff_filter definition.
40737
40738 2009-01-02  Jim Meyering  <meyering@redhat.com>
40739
40740         strftime: avoid compilation failure on Solaris 2.6
40741         * modules/strftime (Depends-on): Add mbrlen and mbsinit.
40742         * lib/strftime.c [DO_MULTIBYTE]: Include <wchar.h> unconditionally.
40743         Don't #define mbrlen or mbsinit, since now they're guaranteed to
40744         be available.  Reported by Tom G. Christensen.  Details in
40745         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/16180>.
40746
40747 2009-01-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
40748             Bruno Haible  <bruno@clisp.org>
40749
40750         Speed up gnulib-tool by doing more string processing through shell
40751         built-ins.
40752         * gnulib-tool (fast_func_append): New variable.
40753         (func_remove_prefix, func_remove_suffix): New functions.
40754         (fast_func_remove_prefix, fast_func_remove_suffix): New variables.
40755         (func_filter_filelist): New function.
40756         (func_get_dependencies): Use func_remove_suffix instead of sed.
40757         (func_get_automake_snippet): Use func_filter_filelist instead of a
40758         subshell and sed invocation.
40759
40760 2009-01-01  Bruno Haible  <bruno@clisp.org>
40761
40762         Fix a security bug.
40763         * gnulib-tool (func_import, import, update): Don't allow the characters
40764         '"', '$', '`', '\' in macro arguments that become part of commands that
40765         are evaluated.
40766
40767 2009-01-01  Bruno Haible  <bruno@clisp.org>
40768
40769         * gnulib-tool (func_reset_sigpipe): Add more comments.
40770
40771 2009-01-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
40772
40773         * gnulib-tool (func_modules_add_dummy, func_emit_lib_Makefile_am,
40774         func_emit_tests_Makefile_am, func_import): Abort loops early if we
40775         already know the answer.
40776
40777 2009-01-01  Jim Meyering  <meyering@redhat.com>
40778
40779         * lib/version-etc.c (version_etc_va): Update copyright year.
40780
40781 2008-12-30  Bruno Haible  <bruno@clisp.org>
40782
40783         * m4/lib-prefix.m4 (AC_LIB_LINKFLAGS_BODY): Don't overwrite
40784         LIB${NAME}_PREFIX when considering the dependencies of lib${name}.
40785         Reported by Charles Wilson <cygwin@cwilson.fastmail.fm>.
40786
40787 2008-12-29  Eric Blake  <ebb9@byu.net>
40788
40789         multiarch: avoid autoconf AC_REQUIRE bug
40790         * m4/multiarch.m4 (gl_MULTIARCH): Split body...
40791         (gl_MULTIARCH_BODY): ...into new macro, to work around bug in Autoconf
40792         2.63 and older.
40793         Reported by Bruno Haible, and analyzed in
40794         http://lists.gnu.org/archive/html/bug-autoconf/2008-12/msg00039.html
40795
40796 2008-12-29  Bruno Haible  <bruno@clisp.org>
40797
40798         * gnulib-tool (func_import): When generating sed-ignore-removed, handle
40799         files in subdirectories correctly.
40800         Reported by Ralf Wildenhues.
40801
40802 2008-12-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
40803
40804         * gnulib-tool (func_update_ignorelist): Use 'join - FILE'
40805         rather than 'join FILE -', for Solaris join.
40806
40807 2008-12-29  Bruno Haible  <bruno@clisp.org>
40808
40809         * m4/codeset.m4 (AM_LANGINFO_CODESET): More systematic m4 argument
40810         quoting.
40811         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
40812         * m4/glibc2.m4 (gt_GLIBC2): Likewise.
40813         * m4/glibc21.m4 (gl_GLIBC21): Likewise.
40814         * m4/iconv.m4 (AM_ICONV_LINK, AM_ICONV): Likewise.
40815         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
40816         * m4/intlmacosx.m4 (gt_INTL_MACOSX): Likewise.
40817         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Likewise.
40818         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Likewise.
40819         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
40820         * m4/lcmessage.m4 (gt_LC_MESSAGES): Likewise.
40821         * m4/nls.m4 (AM_NLS): Likewise.
40822         * m4/po.m4 (AM_PO_SUBDIRS): Likewise.
40823         * m4/printf-posix.m4 (gt_PRINTF_POSIX): Likewise.
40824         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
40825         * m4/size_max.m4 (gl_SIZE_MAX): Likewise.
40826         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Likewise.
40827         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
40828         * m4/uintmax_t.m4 (gl_AC_TYPE_UINTMAX_T): Likewise.
40829         * m4/visibility.m4 (gl_VISIBILITY): Likewise.
40830         * m4/wchar_t.m4 (gt_TYPE_WCHAR_T): Likewise.
40831         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
40832         * m4/xsize.m4 (gl_XSIZE): Likewise.
40833         Suggested by Jim Meyering.
40834
40835 2008-11-17  Bruce Korb  <bkorb@gnu.org>
40836
40837         * lib/parse-duration.h: non-iso form accepts years, months weeks, too
40838         * lib/parse-duration.c: use a switch instead of cascading if's.
40839
40840 2008-12-29  Eric Blake  <ebb9@byu.net>
40841
40842         wchar.h: supply WEOF on Irix 5.3
40843         * lib/wchar.in.h (wint_t): Also supply WEOF.
40844         * lib/wctype.in.h (wint_t): Likewise.
40845         * doc/posix-headers/wchar.texi (wchar.h): Document the bug.
40846         * doc/posix-headers/wctype.texi (wctype.h): Likewise.
40847         Reported by Tom G. Christensen.
40848
40849 2008-12-26  Bruno Haible  <bruno@clisp.org>
40850
40851         * m4/multiarch.m4 (gl_MULTIARCH): Recognize also the architecture names
40852         i486, i586, i686.
40853
40854 2008-12-26  Bruno Haible  <bruno@clisp.org>
40855
40856         * lib/stdlib.in.h (struct random_data): Fix indentation of comments.
40857
40858 2008-12-26  Bruno Haible  <bruno@clisp.org>
40859
40860         * lib/stdint.in.h: Move the include of <wchar.h> down until after all
40861         the types are defined. Also conditionalize it on __STDC_LIMIT_MACROS,
40862         not __STDC_CONSTANT_MACROS.
40863         Reported by Nelson H. F. Beebe <beebe@math.utah.edu> via Eric Blake.
40864
40865 2008-12-25  Bruno Haible  <bruno@clisp.org>
40866
40867         Add support for universal builds to vasnprintf.
40868         * m4/printf.m4 (gl_PRINTF_ENOMEM): Require gl_MULTIARCH. In Apple
40869         universal builds, guess no.
40870         * modules/vasnprintf-posix (Depends-on): Add multiarch.
40871         * modules/vasprintf-posix (Depends-on): Likewise.
40872         * modules/fprintf-posix (Depends-on): Likewise.
40873         * modules/vfprintf-posix (Depends-on): Likewise.
40874         * modules/snprintf-posix (Depends-on): Likewise.
40875         * modules/vsnprintf-posix (Depends-on): Likewise.
40876         * modules/sprintf-posix (Depends-on): Likewise.
40877         * modules/vsprintf-posix (Depends-on): Likewise.
40878         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
40879         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
40880         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
40881         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
40882         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
40883         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
40884         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
40885
40886         Add support for universal builds to <inttypes.h>.
40887         * lib/inttypes.in.h (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX,
40888         _SCNu64_PREFIX): In Apple
40889         universal builds, define directly, using _LP64.
40890         * m4/inttypes.m4 (gl_INTTYPES_H): In Apple universal builds, set
40891         INT64_MAX_EQ_LONG_MAX and UINT64_MAX_EQ_ULONG_MAX to -1.
40892         * modules/inttypes (Depends-on): Add multiarch.
40893         (Makefile.am): Substitute APPLE_UNIVERSAL_BUILD.
40894
40895         Add support for universal builds to <stdint.h>.
40896         * lib/stdint.in.h (PDFDIFF_MIN, PTRDIFF_MAX, SIZE_MAX): In Apple
40897         universal builds, define directly, using _LP64.
40898         * m4/stdint.m4 (gl_STDINT_TYPE_PROPERTIES): Require gl_MULTIARCH. In
40899         Apple universal builds, don't test for the size and suffix of ptrdiff_t
40900         and size_t.
40901         * modules/stdint (Depends-on): Add multiarch.
40902         (Makefile.am): Substitute APPLE_UNIVERSAL_BUILD.
40903
40904         New module 'multiarch'.
40905         * modules/multiarch: New file.
40906         * m4/multiarch.m4: New file.
40907
40908 2008-12-25  Bruno Haible  <bruno@clisp.org>
40909
40910         * gnulib-tool (func_create_testdir): Avoid failure of mv command.
40911
40912 2008-12-25  Bruno Haible  <bruno@clisp.org>
40913
40914         * modules/btowc (License): Relicense under LGPLv2+.
40915         * modules/mbsinit (License): Likewise.
40916         * modules/mbrtowc (License): Likewise.
40917         * modules/wcrtomb (License): Likewise.
40918         * modules/streq (License): Likewise.
40919         Reported by David Lutterkort <lutter@redhat.com>.
40920
40921 2008-12-23  Bruno Haible  <bruno@clisp.org>
40922
40923         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Fix conditional and comment.
40924
40925 2008-12-23  Bruno Haible  <bruno@clisp.org>
40926
40927         Module getaddrinfo requires linking with $(GETADDRINFO_LIB).
40928         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Put link options into
40929         GETADDRINFO_LIB, not in LIBS.
40930         * modules/getaddrinfo (Link): Set to $(GETADDRINFO_LIB).
40931         * modules/canon-host (Link): Likewise.
40932         * NEWS: Mention the change.
40933         * modules/getaddrinfo-tests (test_getaddrinfo_LDADD): Add the
40934         GETADDRINFO_LIB.
40935
40936 2008-12-22  Bruno Haible  <bruno@clisp.org>
40937
40938         * doc/posix-functions/iswalnum_l.texi: Mention limitation of wchar_t.
40939         * doc/posix-functions/iswalpha_l.texi: Likewise.
40940         * doc/posix-functions/iswblank_l.texi: Likewise.
40941         * doc/posix-functions/iswcntrl_l.texi: Likewise.
40942         * doc/posix-functions/iswctype_l.texi: Likewise.
40943         * doc/posix-functions/iswdigit_l.texi: Likewise.
40944         * doc/posix-functions/iswgraph_l.texi: Likewise.
40945         * doc/posix-functions/iswlower_l.texi: Likewise.
40946         * doc/posix-functions/iswprint_l.texi: Likewise.
40947         * doc/posix-functions/iswpunct_l.texi: Likewise.
40948         * doc/posix-functions/iswspace_l.texi: Likewise.
40949         * doc/posix-functions/iswupper_l.texi: Likewise.
40950         * doc/posix-functions/iswxdigit_l.texi: Likewise.
40951         * doc/posix-functions/mbsnrtowcs.texi: Likewise.
40952         * doc/posix-functions/open_wmemstream.texi: Likewise.
40953         * doc/posix-functions/swscanf.texi: Likewise.
40954         * doc/posix-functions/towctrans_l.texi: Likewise.
40955         * doc/posix-functions/towlower.texi: Likewise.
40956         * doc/posix-functions/towlower_l.texi: Likewise.
40957         * doc/posix-functions/towupper.texi: Likewise.
40958         * doc/posix-functions/towupper_l.texi: Likewise.
40959         * doc/posix-functions/vfwprintf.texi: Likewise.
40960         * doc/posix-functions/vfwscanf.texi: Likewise.
40961         * doc/posix-functions/vswscanf.texi: Likewise.
40962         * doc/posix-functions/vwprintf.texi: Likewise.
40963         * doc/posix-functions/vwscanf.texi: Likewise.
40964         * doc/posix-functions/wcpcpy.texi: Likewise.
40965         * doc/posix-functions/wcpncpy.texi: Likewise.
40966         * doc/posix-functions/wcscasecmp.texi: Likewise.
40967         * doc/posix-functions/wcscasecmp_l.texi: Likewise.
40968         * doc/posix-functions/wcscoll_l.texi: Likewise.
40969         * doc/posix-functions/wcsdup.texi: Likewise.
40970         * doc/posix-functions/wcsncasecmp.texi: Likewise.
40971         * doc/posix-functions/wcsncasecmp_l.texi: Likewise.
40972         * doc/posix-functions/wcsnlen.texi: Likewise.
40973         * doc/posix-functions/wcsnrtombs.texi: Likewise.
40974         * doc/posix-functions/wcsxfrm_l.texi: Likewise.
40975         * doc/posix-functions/wctrans_l.texi: Likewise.
40976         * doc/posix-functions/wctype_l.texi: Likewise.
40977         * doc/glibc-functions/fgetwc_unlocked.texi: Likewise.
40978         * doc/glibc-functions/fgetws_unlocked.texi: Likewise.
40979         * doc/glibc-functions/fputwc_unlocked.texi: Likewise.
40980         * doc/glibc-functions/fputws_unlocked.texi: Likewise.
40981         * doc/glibc-functions/getwc_unlocked.texi: Likewise.
40982         * doc/glibc-functions/getwchar_unlocked.texi: Likewise.
40983         * doc/glibc-functions/putwc_unlocked.texi: Likewise.
40984         * doc/glibc-functions/putwchar_unlocked.texi: Likewise.
40985         * doc/glibc-functions/wcschrnul.texi: Likewise.
40986         * doc/glibc-functions/wcsftime_l.texi: Likewise.
40987         * doc/glibc-functions/wcstod_l.texi: Likewise.
40988         * doc/glibc-functions/wcstof_l.texi: Likewise.
40989         * doc/glibc-functions/wcstol_l.texi: Likewise.
40990         * doc/glibc-functions/wcstold_l.texi: Likewise.
40991         * doc/glibc-functions/wcstoll_l.texi: Likewise.
40992         * doc/glibc-functions/wcstoq.texi: Likewise.
40993         * doc/glibc-functions/wcstoul_l.texi: Likewise.
40994         * doc/glibc-functions/wcstoull_l.texi: Likewise.
40995         * doc/glibc-functions/wcstouq.texi: Likewise.
40996         * doc/glibc-functions/wmempcpy.texi: Likewise.
40997
40998 2008-12-22  Ingo Weinhold  <ingo_weinhold@gmx.de>  (tiny change)
40999             Eric Blake  <ebb9@byu.net>
41000             Paolo Bonzini  <bonzini@gnu.org>
41001             Bruno Haible  <bruno@clisp.org>
41002
41003         Make c-stack work on Haiku.
41004         * lib/c-stack.c (SA_ONSTACK): Define fallback.
41005         (c_stack_action): Use SA_ONSTACK flag.
41006
41007 2008-12-22  Bruno Haible  <bruno@clisp.org>
41008
41009         * m4/locale-fr.m4 (gt_LOCALE_FR_UTF8): Treat Haiku like BeOS.
41010
41011 2008-12-22  Bruno Haible  <bruno@clisp.org>
41012
41013         Work around mbrlen() bugs on AIX, HP-UX, OSF/1, Solaris.
41014         * m4/mbrlen.m4 (gl_FUNC_MBRLEN): Set REPLACE_MBRLEN if mbrtowc is
41015         being overridden.
41016         (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL, gl_MBRLEN_NUL_RETVAL):
41017         New macros.
41018         * lib/wchar.in.h (mbrlen): Override if REPLACE_MBRLEN is set.
41019         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBRLEN.
41020         * modules/wchar (Makefile.am): Substitute REPLACE_MBRLEN.
41021         * doc/posix-functions/mbrlen.texi: Mention the various platform bugs.
41022
41023 2008-12-22  Bruno Haible  <bruno@clisp.org>
41024
41025         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE): Remove unused variable
41026         from test code.
41027
41028 2008-12-22  Eric Blake  <ebb9@byu.net>
41029
41030         Avoid gcc warnings on cygwin.
41031         * lib/regex_internal.c (re_string_reconstruct) [!RE_ENABLE_I18N]:
41032         Avoid unused variable.
41033         * lib/regexec.c (check_arrival_add_next_nodes) [!RE_ENABLE_I18N]:
41034         Likewise.
41035
41036 2008-12-22  Bruno Haible  <bruno@clisp.org>
41037
41038         Remove HAVE_MBRTOWC conditionals.
41039         * lib/mbscasecmp.c: Include mbuiter.h unconditionally.
41040         (mbscasecmp): Assume mbrtowc function.
41041         * lib/mbscasestr.c: Include mbuiter.h unconditionally.
41042         (knuth_morris_pratt_multibyte, mbscasestr): Assume mbrtowc function.
41043         * lib/mbschr.c: Include mbuiter.h unconditionally.
41044         (mbschr): Assume mbrtowc function.
41045         * lib/mbscspn.c: Include mbuiter.h unconditionally.
41046         (mbscspn): Assume mbrtowc function.
41047         * lib/mbslen.c: Include mbuiter.h unconditionally.
41048         (mbslen): Assume mbrtowc function.
41049         * lib/mbsncasecmp.c: Include mbuiter.h unconditionally.
41050         (mbsncasecmp): Assume mbrtowc function.
41051         * lib/mbsnlen.c: Include mbiter.h unconditionally.
41052         (mbsnlen): Assume mbrtowc function.
41053         * lib/mbspbrk.c: Include mbuiter.h unconditionally.
41054         (mbspbrk): Assume mbrtowc function.
41055         * lib/mbspcasecmp.c: Include mbuiter.h unconditionally.
41056         (mbspcasecmp): Assume mbrtowc function.
41057         * lib/mbsrchr.c: Include mbuiter.h unconditionally.
41058         (mbsrchr): Assume mbrtowc function.
41059         * lib/mbssep.c: Include mbuiter.h unconditionally.
41060         (mbssep): Assume mbrtowc function.
41061         * lib/mbsspn.c: Include mbuiter.h unconditionally.
41062         (mbsspn): Assume mbrtowc function.
41063         * lib/mbsstr.c: Include mbuiter.h unconditionally.
41064         (knuth_morris_pratt_multibyte, mbsstr): Assume mbrtowc function.
41065         * lib/mbstok_r.c: Include mbuiter.h unconditionally.
41066         (mbstok_r): Assume mbrtowc function.
41067         * lib/propername.c: Include mbuiter.h unconditionally.
41068         (mbsstr_trimmed_wordbounded): Assume mbrtowc function.
41069         * lib/trim.c: Include mbchar.h, mbiter.h uncondtionally.
41070         (trim2): Assume mbrtowc function.
41071         * lib/mbswidth.c (mbsinit): Remove fallback definition.
41072         (mbsnwidth): Assume mbrtowc function.
41073         * modules/mbswidth (Depends-on): Add mbrtowc, mbsinit.
41074         * lib/quotearg.c (MB_CUR_MAX, mbstate_t, mbrtowc, iswprint): Remove
41075         fallback definitions.
41076         * modules/quotearg (Depends-on): Add mbrtowc, mbsinit.
41077
41078 2008-12-22  Bruno Haible  <bruno@clisp.org>
41079
41080         * doc/posix-functions/mbtowc.texi: Mention a glibc bug.
41081
41082 2008-12-22  Paolo Bonzini  <bonzini@gnu.org>
41083
41084         * modules/regex: Request emulations for the mb*/wc* functions we need.
41085         * m4/regex.m4: Don't look for those functions here.
41086         * lib/regex_internal.h: Do not check HAVE_WCRTOMB and HAVE_MBRTOWC.
41087
41088 2008-12-22  Bruno Haible  <bruno@clisp.org>
41089
41090         * modules/fnmatch (Depends-on): Remove duplicated dependency.
41091
41092 2008-12-21  Bruno Haible  <bruno@clisp.org>
41093
41094         Make mbiter.h, mbuiter.h, mbfile.h usable unconditionally.
41095         * modules/mbiter (Depends-on): Add mbrtowc, mbsinit.
41096         (Include): Remove conditionalization.
41097         * modules/mbuiter (Depends-on): Add mbrtowc, mbsinit.
41098         (Include): Remove conditionalization.
41099         * modules/mbfile (Depends-on): Add mbrtowc, mbsinit.
41100         (Include): Remove conditionalization.
41101         * m4/mbiter.m4 (gl_MBITER): Deprecate the use of AC_FUNC_MBRTOWC.
41102         * m4/mbfile.m4 (gl_MBFILE): Likewise.
41103         * NEWS: Mention the change.
41104         Reported by Alan Hourihane <alanh@fairlite.co.uk>
41105         via Sergey Poznyakoff <gray@gnu.org.ua>.
41106
41107 2008-12-21  Bruno Haible  <bruno@clisp.org>
41108
41109         * MODULES.html.sh (Extended multibyte and wide character utilities
41110         <wchar.h>): Add btowc, wctob, mbsinit, mbrlen, mbrtowc, mbsrtowcs,
41111         wcrtomb, wcsrtombs.
41112         (Support for systems lacking POSIX:2008): Add accept, bind, close,
41113         connect, fclose, getpeername, getsockname, getsockopt, hostent, listen,
41114         mbsnrtowcs, posix_spawn*, recv, recvfrom, sched, select, send, sendto,
41115         setsockopt, shutdown, socket, spawn, sys_wait, wcsnrtombs, write.
41116
41117 2008-12-21  Bruno Haible  <bruno@clisp.org>
41118
41119         * MODULES.html.sh: Change section titles to refer to POSIX:2008.
41120
41121 2008-12-21  Bruno Haible  <bruno@clisp.org>
41122
41123         * modules/wcsnrtombs-tests: New file.
41124         * tests/test-wcsnrtombs1.sh: New file.
41125         * tests/test-wcsnrtombs2.sh: New file.
41126         * tests/test-wcsnrtombs3.sh: New file.
41127         * tests/test-wcsnrtombs4.sh: New file.
41128         * tests/test-wcsnrtombs.c: New file.
41129
41130         New module 'wcsnrtombs'.
41131         * lib/wchar.in.h (wcsnrtombs): New declaration.
41132         * lib/wcsnrtombs.c: New file.
41133         * lib/wcsrtombs-state.c: New file.
41134         * lib/wcsrtombs.c: Refer to _gl_wcsrtombs_state.
41135         (internal_state): Remove variable.
41136         * m4/wcsnrtombs.m4: New file.
41137         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): Add wcsrtombs-state.c to the
41138         compilation units.
41139         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNRTOMBS,
41140         HAVE_WCSNRTOMBS.
41141         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNRTOMBS,
41142         HAVE_WCSNRTOMBS.
41143         * modules/wcsnrtombs: New file.
41144         * modules/wcsrtombs (Files): Add lib/wcsrtombs-state.c.
41145         * doc/posix-functions/wcsnrtombs.texi: Mention the new module.
41146
41147 2008-12-21  Bruno Haible  <bruno@clisp.org>
41148
41149         * modules/wcsrtombs-tests: New file.
41150         * tests/test-wcsrtombs1.sh: New file.
41151         * tests/test-wcsrtombs2.sh: New file.
41152         * tests/test-wcsrtombs3.sh: New file.
41153         * tests/test-wcsrtombs4.sh: New file.
41154         * tests/test-wcsrtombs.c: New file.
41155
41156         New module 'wcsrtombs'.
41157         * lib/wchar.in.h (wcsrtombs): New declaration.
41158         * lib/wcsrtombs.c: New file.
41159         * m4/wcsrtombs.m4: New file.
41160         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSRTOMBS,
41161         HAVE_WCSRTOMBS, REPLACE_WCSRTOMBS.
41162         * modules/wchar (Makefile.am): Substitute GNULIB_WCSRTOMBS,
41163         HAVE_WCSRTOMBS, REPLACE_WCSRTOMBS.
41164         * modules/wcsrtombs: New file.
41165         * doc/posix-functions/wcsrtombs.texi: Mention the new module and the
41166         bugs.
41167
41168 2008-12-21  Bruno Haible  <bruno@clisp.org>
41169
41170         Work around a wcrtomb() bug on Solaris 10 and OSF/1 5.1.
41171         * lib/wchar.in.h (wcrtomb): Override if REPLACE_WCRTOMB is set.
41172         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Test the return value of wcrtomb
41173         with NULL destination argument in various locales. Set REPLACE_WCRTOMB
41174         if not correct.
41175         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCRTOMB.
41176         * modules/wchar (Makefile.am): Substitute REPLACE_WCRTOMB.
41177         * modules/wcrtomb (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
41178         m4/locale-zh.m4, m4/codeset.m4.
41179         * doc/posix-functions/wcrtomb.texi: Document the bug.
41180
41181 2008-12-21  Bruno Haible  <bruno@clisp.org>
41182
41183         Work around a btowc() bug on IRIX 6.5.
41184         * lib/wchar.in.h (btowc): Override if REPLACE_BTOWC is set.
41185         * m4/btowc.m4 (gl_FUNC_BTOWC): Test whether btowc(EOF) is correct. Set
41186         REPLACE_WTOBC if not.
41187         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_BTOWC.
41188         * modules/wchar (Makefile.am): Substitute REPLACE_BTOWC.
41189         * doc/posix-functions/btowc.texi: Mention the IRIX bug.
41190
41191 2008-12-21  Bruno Haible  <bruno@clisp.org>
41192
41193         * modules/wcrtomb-tests: New file.
41194         * tests/test-wcrtomb.sh: New file.
41195         * tests/test-wcrtomb.c: New file.
41196
41197         New module 'wcrtomb'.
41198         * lib/wchar.in.h (wcrtomb): New declaration.
41199         * lib/wcrtomb.c: New file.
41200         * m4/wcrtomb.m4: New file.
41201         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCRTOMB,
41202         HAVE_WCRTOMB.
41203         * modules/wchar (Makefile.am): Substitute GNULIB_WCRTOMB,
41204         HAVE_WCRTOMB.
41205         * modules/wcrtomb: New file.
41206         * doc/posix-functions/wcrtomb.texi: Mention the new module.
41207
41208 2008-12-21  Bruno Haible  <bruno@clisp.org>
41209
41210         * modules/mbrtowc (Files): Add m4/codeset.m4, needed by m4/locale-fr.m4.
41211         * modules/mbsrtowcs (Files): Likewise.
41212         * modules/wctob (Files): Likewise.
41213         * modules/c-strcase-tests (Files): Likewise.
41214         * modules/unistdio/u8-vasnprintf-tests (Files): Likewise.
41215         * modules/unistdio/u16-vasnprintf-tests (Files): Likewise.
41216         * modules/unistdio/u32-vasnprintf-tests (Files): Likewise.
41217         * modules/unistdio/ulc-vasnprintf-tests (Files): Likewise.
41218         * modules/vasnprintf-posix-tests (Files): Likewise.
41219
41220 2008-12-21  William Pursell  <bill.pursell@gmail.com>
41221
41222         gitlog-to-changelog: pass all command-line arguments to git-log
41223         * build-aux/gitlog-to-changelog: When producing a ChangeLog,
41224         it is sometimes convenient to filter the commits in various ways.
41225         gitlog-to-changelog only allows --since to specify a start date,
41226         but git-log itself supports many other filtering mechanisms.
41227         At the moment, I want to filter by branch name.  Rather than
41228         adding a --branch option to gitlog-to-changelog, it seems more
41229         flexible to simply pass all options directly to git-log and let
41230         git do the work.  Notice that this effectively makes --since a
41231         redundant option for gitlog-to-changelog, but removing it would
41232         require current usage to change since calls would then require
41233         an additional '--'.
41234
41235 2008-12-21  Bruno Haible  <bruno@clisp.org>
41236
41237         * modules/mbsnrtowcs-tests: New file.
41238         * tests/test-mbsnrtowcs1.sh: New file.
41239         * tests/test-mbsnrtowcs2.sh: New file.
41240         * tests/test-mbsnrtowcs3.sh: New file.
41241         * tests/test-mbsnrtowcs4.sh: New file.
41242         * tests/test-mbsnrtowcs.c: New file.
41243
41244         New module 'mbsnrtowcs'.
41245         * lib/wchar.in.h (mbsnrtowcs): New declaration.
41246         * lib/mbsnrtowcs.c: New file.
41247         * lib/mbsrtowcs-state.c: New file.
41248         * lib/mbsrtowcs.c: Refer to _gl_mbsrtowcs_state.
41249         (internal_state): Remove variable.
41250         * m4/mbsnrtowcs.m4: New file.
41251         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Add mbsrtowcs-state.c to the
41252         compilation units.
41253         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSNRTOWCS,
41254         HAVE_MBSNRTOWCS, REPLACE_MBSNRTOWCS.
41255         * modules/wchar (Makefile.am): Substitute GNULIB_MBSNRTOWCS,
41256         HAVE_MBSNRTOWCS, REPLACE_MBSNRTOWCS.
41257         * modules/mbsnrtowcs: New file.
41258         * modules/mbsrtowcs (Files): Add lib/mbsrtowcs-state.c.
41259         * doc/posix-functions/mbsnrtowcs.texi: Mention the new module and a
41260         portability problem.
41261
41262 2008-12-21  Bruno Haible  <bruno@clisp.org>
41263
41264         Work around mbsrtowcs bug.
41265         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): New macro.
41266         (gl_FUNC_MBSRTOWCS): Invoke it.
41267         * modules/mbsrtowcs (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
41268         m4/locale-zh.m4.
41269         * doc/posix-functions/mbsrtowcs.texi: Document the bug.
41270
41271 2008-12-21  Bruno Haible  <bruno@clisp.org>
41272
41273         * tests/test-mbsrtowcs.c (main): Execute the loop also for unlimited=1.
41274
41275 2008-12-21  Bruno Haible  <bruno@clisp.org>
41276
41277         Update doc for AIX.
41278         * doc/pastposix-functions/wcswcs.texi: Mention that AIX has only a
41279         16-bit wchar_t type.
41280         * doc/posix-functions/btowc.texi: Likewise.
41281         * doc/posix-functions/fgetwc.texi: Likewise.
41282         * doc/posix-functions/fgetws.texi: Likewise.
41283         * doc/posix-functions/fputwc.texi: Likewise.
41284         * doc/posix-functions/fputws.texi: Likewise.
41285         * doc/posix-functions/fwide.texi: Likewise.
41286         * doc/posix-functions/fwprintf.texi: Likewise.
41287         * doc/posix-functions/fwscanf.texi: Likewise.
41288         * doc/posix-functions/getwchar.texi: Likewise.
41289         * doc/posix-functions/getwc.texi: Likewise.
41290         * doc/posix-functions/iswalnum.texi: Likewise.
41291         * doc/posix-functions/iswalpha.texi: Likewise.
41292         * doc/posix-functions/iswblank.texi: Likewise.
41293         * doc/posix-functions/iswcntrl.texi: Likewise.
41294         * doc/posix-functions/iswctype.texi: Likewise.
41295         * doc/posix-functions/iswdigit.texi: Likewise.
41296         * doc/posix-functions/iswgraph.texi: Likewise.
41297         * doc/posix-functions/iswlower.texi: Likewise.
41298         * doc/posix-functions/iswprint.texi: Likewise.
41299         * doc/posix-functions/iswpunct.texi: Likewise.
41300         * doc/posix-functions/iswspace.texi: Likewise.
41301         * doc/posix-functions/iswupper.texi: Likewise.
41302         * doc/posix-functions/iswxdigit.texi: Likewise.
41303         * doc/posix-functions/mbrtowc.texi: Likewise.
41304         * doc/posix-functions/mbsrtowcs.texi: Likewise.
41305         * doc/posix-functions/mbstowcs.texi: Likewise.
41306         * doc/posix-functions/mbtowc.texi: Likewise.
41307         * doc/posix-functions/putwchar.texi: Likewise.
41308         * doc/posix-functions/putwc.texi: Likewise.
41309         * doc/posix-functions/swprintf.texi: Likewise.
41310         * doc/posix-functions/tolower.texi: Likewise.
41311         * doc/posix-functions/toupper.texi: Likewise.
41312         * doc/posix-functions/towctrans.texi: Likewise.
41313         * doc/posix-functions/ungetwc.texi: Likewise.
41314         * doc/posix-functions/vswprintf.texi: Likewise.
41315         * doc/posix-functions/wcrtomb.texi: Likewise.
41316         * doc/posix-functions/wcscat.texi: Likewise.
41317         * doc/posix-functions/wcschr.texi: Likewise.
41318         * doc/posix-functions/wcscmp.texi: Likewise.
41319         * doc/posix-functions/wcscoll.texi: Likewise.
41320         * doc/posix-functions/wcscpy.texi: Likewise.
41321         * doc/posix-functions/wcscspn.texi: Likewise.
41322         * doc/posix-functions/wcsftime.texi: Likewise.
41323         * doc/posix-functions/wcslen.texi: Likewise.
41324         * doc/posix-functions/wcsncat.texi: Likewise.
41325         * doc/posix-functions/wcsncmp.texi: Likewise.
41326         * doc/posix-functions/wcsncpy.texi: Likewise.
41327         * doc/posix-functions/wcspbrk.texi: Likewise.
41328         * doc/posix-functions/wcsrchr.texi: Likewise.
41329         * doc/posix-functions/wcsrtombs.texi: Likewise.
41330         * doc/posix-functions/wcsspn.texi: Likewise.
41331         * doc/posix-functions/wcsstr.texi: Likewise.
41332         * doc/posix-functions/wcstod.texi: Likewise.
41333         * doc/posix-functions/wcstof.texi: Likewise.
41334         * doc/posix-functions/wcstoimax.texi: Likewise.
41335         * doc/posix-functions/wcstok.texi: Likewise.
41336         * doc/posix-functions/wcstold.texi: Likewise.
41337         * doc/posix-functions/wcstoll.texi: Likewise.
41338         * doc/posix-functions/wcstol.texi: Likewise.
41339         * doc/posix-functions/wcstombs.texi: Likewise.
41340         * doc/posix-functions/wcstoull.texi: Likewise.
41341         * doc/posix-functions/wcstoul.texi: Likewise.
41342         * doc/posix-functions/wcstoumax.texi: Likewise.
41343         * doc/posix-functions/wcswidth.texi: Likewise.
41344         * doc/posix-functions/wcsxfrm.texi: Likewise.
41345         * doc/posix-functions/wctob.texi: Likewise.
41346         * doc/posix-functions/wctomb.texi: Likewise.
41347         * doc/posix-functions/wctrans.texi: Likewise.
41348         * doc/posix-functions/wctype.texi: Likewise.
41349         * doc/posix-functions/wcwidth.texi: Likewise.
41350         * doc/posix-functions/wmemchr.texi: Likewise.
41351         * doc/posix-functions/wmemcmp.texi: Likewise.
41352         * doc/posix-functions/wmemcpy.texi: Likewise.
41353         * doc/posix-functions/wmemmove.texi: Likewise.
41354         * doc/posix-functions/wmemset.texi: Likewise.
41355         * doc/posix-functions/wprintf.texi: Likewise.
41356         * doc/posix-functions/wscanf.texi: Likewise.
41357
41358 2008-12-21  Bruno Haible  <bruno@clisp.org>
41359
41360         Update doc for HP-UX 11.11.
41361         * doc/posix-functions/btowc.texi: Clarify that the function is missing
41362         in HP-UX version 11.00, not in all versions of HP-UX 11.
41363         * doc/posix-functions/fwide.texi: Likewise.
41364         * doc/posix-functions/fwprintf.texi: Likewise.
41365         * doc/posix-functions/fwscanf.texi: Likewise.
41366         * doc/posix-functions/inet_ntop.texi: Likewise.
41367         * doc/posix-functions/inet_pton.texi: Likewise.
41368         * doc/posix-functions/mbrlen.texi: Likewise.
41369         * doc/posix-functions/mbrtowc.texi: Likewise.
41370         * doc/posix-functions/mbsinit.texi: Likewise.
41371         * doc/posix-functions/mbsrtowcs.texi: Likewise.
41372         * doc/posix-functions/swprintf.texi: Likewise.
41373         * doc/posix-functions/swscanf.texi: Likewise.
41374         * doc/posix-functions/towctrans.texi: Likewise.
41375         * doc/posix-functions/vfwprintf.texi: Likewise.
41376         * doc/posix-functions/vswprintf.texi: Likewise.
41377         * doc/posix-functions/vwprintf.texi: Likewise.
41378         * doc/posix-functions/wcrtomb.texi: Likewise.
41379         * doc/posix-functions/wcsrtombs.texi: Likewise.
41380         * doc/posix-functions/wcsstr.texi: Likewise.
41381         * doc/posix-functions/wctob.texi: Likewise.
41382         * doc/posix-functions/wctrans.texi: Likewise.
41383         * doc/posix-functions/wmemchr.texi: Likewise.
41384         * doc/posix-functions/wmemcmp.texi: Likewise.
41385         * doc/posix-functions/wmemcpy.texi: Likewise.
41386         * doc/posix-functions/wmemmove.texi: Likewise.
41387         * doc/posix-functions/wmemset.texi: Likewise.
41388         * doc/posix-functions/wprintf.texi: Likewise.
41389         * doc/posix-functions/wscanf.texi: Likewise.
41390
41391 2008-12-21  Bruno Haible  <bruno@clisp.org>
41392
41393         Work around a portability problem.
41394         * tests/test-mbsrtowcs.c (main): Use a temporary conversion state.
41395         * doc/posix-functions/mbsrtowcs.texi: Document the portability problem.
41396
41397 2008-12-20  Bruno Haible  <bruno@clisp.org>
41398
41399         * lib/wchar.in.h (mbsrtowcs): Redefine if REPLACE_MBSRTOWCS is set.
41400         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Invoke gl_MBSTATE_T_BROKEN. Set
41401         REPLACE_MBSRTOWCS if mbsrtowcs needs to be overridden.
41402         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBSRTOWCS.
41403         * modules/wchar (Makefile.am): Substitute REPLACE_MBSRTOWCS.
41404
41405         Work around mbrtowc bugs on AIX, HP-UX, OSF/1, Solaris.
41406         * lib/wchar.in.h (mbstate_t): Redefine also if REPLACE_MBSTATE_T is
41407         set.
41408         (GNULIB_defined_mbstate_t): New macro.
41409         (mbsinit): Redefine if REPLACE_MBSINIT is set.
41410         (mbrtowc): Redefine if REPLACE_MBRTOWC is set.
41411         * lib/mbrtowc.c (rpl_mbrtowc): Add an alternative implementation that
41412         reuses the system's mbrtowc function but works around the bugs.
41413         * m4/mbrtowc.m4 (gl_MBSTATE_T_BROKEN, gl_MBRTOWC_INCOMPLETE_STATE,
41414         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL): New
41415         macros.
41416         (gl_FUNC_MBRTOWC): Invoke them. Set REPLACE_MBRTOWC if mbrtowc needs to
41417         be overridden. Optionally define MBRTOWC_NULL_ARG_BUG,
41418         MBRTOWC_RETVAL_BUG, MBRTOWC_NUL_RETVAL_BUG.
41419         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Invoke gl_MBSTATE_T_BROKEN. Set
41420         REPLACE_MBSINIT if mbsinit needs to be overridden.
41421         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBSTATE_T,
41422         REPLACE_MBSINIT, REPLACE_MBRTOWC.
41423         * modules/wchar (Makefile.am): Substitute REPLACE_MBSTATE_T,
41424         REPLACE_MBSINIT, REPLACE_MBRTOWC.
41425         * modules/mbrtowc (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
41426         m4/locale-zh.m4.
41427         (Depends): Add mbsinit.
41428         * modules/mbsinit (Depends): Add mbrtowc.
41429         * doc/posix-functions/mbrtowc.texi: Mention the various bugs.
41430
41431 2008-12-20  Bruno Haible  <bruno@clisp.org>
41432
41433         * tests/test-mbrtowc.c (main): Change sample string in EUC-JP encoding
41434         so that there are no conversion errors on AIX.
41435         * tests/test-mbsrtowcs.c (main): LIkewise.
41436
41437 2008-12-20  Bruno Haible  <bruno@clisp.org>
41438
41439         Work around wctob bug on Solaris <= 9.
41440         * lib/wchar.in.h (wctob): Redefine if REPLACE_WCTOB is set.
41441         * m4/wctob.m4 (gl_FUNC_WCTOB): Test whether wctob works.
41442         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCTOB.
41443         * modules/wchar (Makefile.am): Substitute REPLACE_WCTOB.
41444         * modules/wctob (Files): Add m4/locale-fr.m4.
41445         * doc/posix-functions/wctob.texi: Mention the Solaris bug.
41446
41447 2008-12-20  Bruno Haible  <bruno@clisp.org>
41448
41449         * doc/posix-functions/select.texi: Mention Solaris 2.6 bug with
41450         /dev/null.
41451         * tests/test-select-in.sh: Likewise.
41452         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
41453
41454 2008-12-20  Bruno Haible  <bruno@clisp.org>
41455
41456         Don't pretend that Cygwin has a ja_JP.EUC-JP locale.
41457         * m4/locale-ja.m4 (gt_LOCALE_JA): Add test for MB_CUR_MAX. Needed on
41458         Cygwin 1.5.x.
41459
41460 2008-12-20  Bruno Haible  <bruno@clisp.org>
41461
41462         Ensure mbstate_t is defined on HP-UX 11.11.
41463         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Require
41464         AC_CANONICAL_HOST. On HP-UX, define _XOPEN_SOURCE to 500.
41465         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Require
41466         AC_USE_SYSTEM_EXTENSIONS.
41467         * modules/fnmatch (Depends-on): Add extensions.
41468         * modules/mbrlen (Depends-on): Likewise.
41469         * modules/mbrtowc (Depends-on): Likewise.
41470         * modules/mbsinit (Depends-on): Likewise.
41471         * modules/mbsrtowcs (Depends-on): Likewise.
41472         * modules/mbswidth (Depends-on): Likewise.
41473         * modules/quotearg (Depends-on): Likewise.
41474         * modules/strftime (Depends-on): Likewise.
41475
41476 2008-12-20  Bruno Haible  <bruno@clisp.org>
41477
41478         Ensure wctob is declared on IRIX 6.5.
41479         * lib/wchar.in.h (wctob): Declare also when HAVE_DECL_WCTOB is 0.
41480         * m4/wctob.m4 (gl_FUNC_WCTOB): Set HAVE_DECL_WCTOB instead of
41481         HAVE_WCTOB. Also test whether <wchar.h> declares wctob.
41482         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize HAVE_DECL_WCTOB instead
41483         of HAVE_WCTOB.
41484         * modules/wchar (Makefile.am): Substitute HAVE_DECL_WCTOB instead of
41485         HAVE_WCTOB.
41486         * doc/posix-functions/wctob.texi: Mention missing declaration on IRIX.
41487
41488 2008-12-19  Bruno Haible  <bruno@clisp.org>
41489
41490         * modules/mbsrtowcs-tests: New file.
41491         * tests/test-mbsrtowcs1.sh: New file.
41492         * tests/test-mbsrtowcs2.sh: New file.
41493         * tests/test-mbsrtowcs3.sh: New file.
41494         * tests/test-mbsrtowcs4.sh: New file.
41495         * tests/test-mbsrtowcs.c: New file.
41496
41497         New module 'mbsrtowcs'.
41498         * lib/wchar.in.h (mbsrtowcs): New declaration.
41499         * lib/mbsrtowcs.c: New file.
41500         * m4/mbsrtowcs.m4: New file.
41501         * modules/mbsrtowcs: New file.
41502         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSRTOWCS and
41503         HAVE_MBSRTOWCS.
41504         * modules/wchar (Makefile.am): Substitute GNULIB_MBSRTOWCS and
41505         HAVE_MBSRTOWCS.
41506         * doc/posix-functions/mbsrtowcs.texi: Document the new module.
41507
41508 2008-12-19  Bruno Haible  <bruno@clisp.org>
41509
41510         New module 'mbrlen'.
41511         * lib/wchar.in.h (mbrlen): New declaration.
41512         * lib/mbrlen.c: New file.
41513         * m4/mbrlen.m4: New file.
41514         * modules/mbrlen: New file.
41515         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBRLEN and
41516         HAVE_MBRLEN.
41517         * modules/wchar (Makefile.am): Substitute GNULIB_MBRLEN and
41518         HAVE_MBRLEN.
41519         * doc/posix-functions/mbrlen.texi: Document the new module.
41520
41521 2008-12-19  Bruno Haible  <bruno@clisp.org>
41522
41523         * lib/mbrtowc.c: Include verify.h. Verify an assumption.
41524         * modules/mbrtowc (Depends-on): Add verify.
41525         Suggested by Paul Eggert.
41526
41527 2008-12-18  Bruno Haible  <bruno@clisp.org>
41528
41529         * modules/mbsinit-tests: New file.
41530         * tests/test-mbsinit.sh: New file.
41531         * tests/test-mbsinit.c: New file.
41532
41533 2008-12-18  Bruno Haible  <bruno@clisp.org>
41534
41535         * modules/mbrtowc-tests: New file.
41536         * tests/test-mbrtowc1.sh: New file.
41537         * tests/test-mbrtowc2.sh: New file.
41538         * tests/test-mbrtowc3.sh: New file.
41539         * tests/test-mbrtowc4.sh: New file.
41540         * tests/test-mbrtowc.c: New file.
41541
41542         New module 'mbrtowc'.
41543         * lib/wchar.in.h (mbstate_t): Override when the system does not have
41544         mbsinit and mbrtowc.
41545         (mbrtowc): New declaration.
41546         * lib/mbrtowc.c: New file.
41547         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC, gl_PREREQ_MBRTOWC): New macros.
41548         * modules/mbrtowc: New file.
41549         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBRTOWC and
41550         HAVE_MBRTOWC.
41551         * modules/wchar (Makefile.am): Substitute GNULIB_MBRTOWC and
41552         HAVE_MBRTOWC.
41553         * doc/posix-functions/mbrtowc.texi: Document the new module.
41554
41555 2008-12-18  Bruno Haible  <bruno@clisp.org>
41556
41557         New module 'wctob'.
41558         * lib/wchar.in.h (wctob): New declaration.
41559         * lib/wctob.c: New file.
41560         * m4/wctob.m4: New file.
41561         * modules/wctob: New file.
41562         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCTOB and
41563         HAVE_WCTOB.
41564         * modules/wchar (Makefile.am): Substitute GNULIB_WCTOB and HAVE_WCTOB.
41565         * doc/posix-functions/wctob.texi: Document the new module.
41566
41567 2008-12-18  Bruno Haible  <bruno@clisp.org>
41568
41569         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Invoke gl_REPLACE_WCHAR_H.
41570         * m4/btowc.m4 (gl_FUNC_BTOWC): Likewise.
41571
41572 2008-12-18  Simon Josefsson  <simon@josefsson.org>
41573
41574         * lib/flock.c: Use proper #if symbol in check.  Reported by "Tom
41575         G. Christensen" <tgc@jupiterrise.com>.
41576
41577         * lib/flock.c: Need to include errno.h.  Reported by "Tom
41578         G. Christensen" <tgc@jupiterrise.com>.
41579
41580         * lib/flock.c: Need to include string.h.  Reported by "Tom
41581         G. Christensen" <tgc@jupiterrise.com> and Eric Blake
41582         <ebb9@byu.net>.
41583
41584 2008-12-18  Bruno Haible  <bruno@clisp.org>
41585
41586         * m4/locale-ja.m4: New file, from GNU gettext.
41587
41588 2008-12-17  Bruno Haible  <bruno@clisp.org>
41589
41590         * m4/mbrtowc.m4 (AC_FUNC_MBRTOWC): Don't override in autoconf >= 2.60.
41591         Suggested by Eric Blake.
41592
41593 2008-12-17  Bruno Haible  <bruno@clisp.org>
41594
41595         * m4/errno_h.m4 (AC_COMPUTE_INT): Provide fallback definition.
41596
41597 2008-12-17  Bruno Haible  <bruno@clisp.org>
41598
41599         * lib/mbsinit.c: Include verify.h. Verify an assumption.
41600         * modules/mbsinit (Depends-on): Add verify.
41601         Suggested by Paul Eggert.
41602
41603 2008-12-17  Bruno Haible  <bruno@clisp.org>
41604
41605         * m4/mbrtowc.m4 (AC_FUNC_MBRTOWC): Renamed from gl_FUNC_MBRTOWC.
41606         * m4/mbfile.m4 (gl_MBFILE): Use AC_FUNC_MBRTOWC instead of
41607         gl_FUNC_MBRTOWC.
41608         * m4/mbiter.m4 (gl_MBITER): LIkewise.
41609         * m4/mbscasecmp.m4 (gl_PREREQ_MBSCASECMP): Likewise.
41610         * m4/mbscasestr.m4 (gl_PREREQ_MBSCASESTR): Likewise.
41611         * m4/mbschr.m4 (gl_PREREQ_MBSCHR): Likewise.
41612         * m4/mbscspn.m4 (gl_PREREQ_MBSCSPN): Likewise.
41613         * m4/mbslen.m4 (gl_PREREQ_MBSLEN): Likewise.
41614         * m4/mbsncasecmp.m4 (gl_PREREQ_MBSNCASECMP): Likewise.
41615         * m4/mbsnlen.m4 (gl_PREREQ_MBSNLEN): Likewise.
41616         * m4/mbspbrk.m4 (gl_PREREQ_MBSPBRK): Likewise.
41617         * m4/mbspcasecmp.m4 (gl_PREREQ_MBSPCASECMP): Likewise.
41618         * m4/mbsrchr.m4 (gl_PREREQ_MBSRCHR): Likewise.
41619         * m4/mbssep.m4 (gl_PREREQ_MBSSEP): Likewise.
41620         * m4/mbsspn.m4 (gl_PREREQ_MBSSPN): Likewise.
41621         * m4/mbsstr.m4 (gl_PREREQ_MBSSTR): Likewise.
41622         * m4/mbstok_r.m4 (gl_PREREQ_MBSTOK_R): Likewise.
41623         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
41624         * m4/quotearg.m4 (gl_QUOTEARG): Likewise.
41625         * modules/trim (configure.ac): Likewise.
41626
41627 2008-12-17  Bruno Haible  <bruno@clisp.org>
41628
41629         * modules/btowc-tests: New file.
41630         * tests/test-btowc1.sh: New file.
41631         * tests/test-btowc2.sh: New file.
41632         * tests/test-btowc.c: New file.
41633
41634         New module 'btowc'.
41635         * lib/wchar.in.h (btowc): New declaration.
41636         * lib/btowc.c: New file.
41637         * m4/btowc.m4: New file.
41638         * modules/btowc: New file.
41639         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_BTOWC and
41640         HAVE_BTOWC.
41641         * modules/wchar (Makefile.am): Substitute GNULIB_BTOWC and HAVE_BTOWC.
41642         * doc/posix-functions/btowc.texi: Document the new module.
41643
41644 2008-12-17  Bruno Haible  <bruno@clisp.org>
41645
41646         New module 'mbsinit'.
41647         * lib/wchar.in.h (mbsinit): New declaration.
41648         * lib/mbsinit.c: New file.
41649         * m4/mbsinit.m4: New file.
41650         * modules/mbsinit: New file.
41651         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSINIT and
41652         HAVE_MBSINIT.
41653         * modules/wchar (Makefile.am): Substitute GNULIB_MBSINIT and
41654         HAVE_MBSINIT.
41655         * doc/posix-functions/mbsinit.texi: Document the new module.
41656
41657 2008-12-16  Bruno Haible  <bruno@clisp.org>
41658
41659         * lib/unistd.in.h: Add comment.
41660         * tests/test-environ.c: Don't include <stdlib.h>.
41661
41662 2008-12-16  Bruno Haible  <bruno@clisp.org>
41663
41664         * lib/parse-duration.h (parse_duration): Document return value
41665         convention.
41666         * lib/parse-duration.c: Include specification header first. Add
41667         comments.
41668         (_): Remove macro.
41669         (parse_year_month_day, parse_hour_minute_second): Move side effects
41670         outside of strchr call.
41671         (parse_non_iso8601): Move side effects outside of isspace call.
41672         (parse_duration): Don't test errno is res != BAD_TIME. Remove fprintf
41673         call.
41674
41675 2008-12-16  Bruno Haible  <bruno@clisp.org>
41676
41677         * tests/test-parse-duration.sh: Produce no output when the test
41678         succeeds.
41679
41680 2008-12-16  Bruno Haible  <bruno@clisp.org>
41681
41682         * tests/test-parse-duration.sh: Fix quoting of $tmp and $tmpf
41683         expressions.
41684
41685 2008-12-15  Bruno Haible  <bruno@clisp.org>
41686
41687         * doc/glibc-functions/fgetxattr.texi: Tweak wording.
41688         * doc/glibc-functions/flistxattr.texi: Likewise.
41689         * doc/glibc-functions/fopencookie.texi: Likewise.
41690         * doc/glibc-functions/fremovexattr.texi: Likewise.
41691         * doc/glibc-functions/fsetxattr.texi: Likewise.
41692         * doc/glibc-functions/getxattr.texi: Likewise.
41693         * doc/glibc-functions/lgetxattr.texi: Likewise.
41694         * doc/glibc-functions/listxattr.texi: Likewise.
41695         * doc/glibc-functions/llistxattr.texi: Likewise.
41696         * doc/glibc-functions/lremovexattr.texi: Likewise.
41697         * doc/glibc-functions/lsetxattr.texi: Likewise.
41698         * doc/glibc-functions/removexattr.texi: Likewise.
41699         * doc/glibc-functions/setxattr.texi: Likewise.
41700         * doc/posix-functions/open_memstream.texi: Likewise.
41701
41702 2008-12-15  Eric Blake  <ebb9@byu.net>
41703
41704         Update doc for cygwin 1.7.
41705         * doc/posix-functions/faccessat.texi: Cygwin 1.7 added several new
41706         functions.
41707         * doc/posix-functions/fchmodat.texi: Likewise.
41708         * doc/posix-functions/fchownat.texi: Likewise.
41709         * doc/posix-functions/fdopendir.texi: Likewise.
41710         * doc/posix-functions/fmemopen.texi: Likewise.
41711         * doc/posix-functions/freeaddrinfo.texi: Likewise.
41712         * doc/posix-functions/fstatat.texi: Likewise.
41713         * doc/posix-functions/futimens.texi: Likewise.
41714         * doc/posix-functions/gai_strerror.texi: Likewise.
41715         * doc/posix-functions/getaddrinfo.texi: Likewise.
41716         * doc/posix-functions/getnameinfo.texi: Likewise.
41717         * doc/posix-functions/if_freenameindex.texi: Likewise.
41718         * doc/posix-functions/if_indextoname.texi: Likewise.
41719         * doc/posix-functions/if_nameindex.texi: Likewise.
41720         * doc/posix-functions/if_nametoindex.texi: Likewise.
41721         * doc/posix-functions/insque.texi: Likewise.
41722         * doc/posix-functions/linkat.texi: Likewise.
41723         * doc/posix-functions/llrint.texi: Likewise.
41724         * doc/posix-functions/llrintf.texi: Likewise.
41725         * doc/posix-functions/llrintl.texi: Likewise.
41726         * doc/posix-functions/lockf.texi: Likewise.
41727         * doc/posix-functions/lrintl.texi: Likewise.
41728         * doc/posix-functions/mkdirat.texi: Likewise.
41729         * doc/posix-functions/mkfifoat.texi: Likewise.
41730         * doc/posix-functions/mknodat.texi: Likewise.
41731         * doc/posix-functions/mq_close.texi: Likewise.
41732         * doc/posix-functions/mq_getattr.texi: Likewise.
41733         * doc/posix-functions/mq_notify.texi: Likewise.
41734         * doc/posix-functions/mq_open.texi: Likewise.
41735         * doc/posix-functions/mq_receive.texi: Likewise.
41736         * doc/posix-functions/mq_send.texi: Likewise.
41737         * doc/posix-functions/mq_setattr.texi: Likewise.
41738         * doc/posix-functions/mq_timedreceive.texi: Likewise.
41739         * doc/posix-functions/mq_timedsend.texi: Likewise.
41740         * doc/posix-functions/mq_unlink.texi: Likewise.
41741         * doc/posix-functions/open_memstream.texi: Likewise.
41742         * doc/posix-functions/openat.texi: Likewise.
41743         * doc/posix-functions/posix_fadvise.texi: Likewise.
41744         * doc/posix-functions/posix_fallocate.texi: Likewise.
41745         * doc/posix-functions/posix_madvise.texi: Likewise.
41746         * doc/posix-functions/posix_memalign.texi: Likewise.
41747         * doc/posix-functions/posix_openpt.texi: Likewise.
41748         * doc/posix-functions/readlinkat.texi: Likewise.
41749         * doc/posix-functions/remque.texi: Likewise.
41750         * doc/posix-functions/renameat.texi: Likewise.
41751         * doc/posix-functions/rintl.texi: Likewise.
41752         * doc/posix-functions/sem_unlink.texi: Likewise.
41753         * doc/posix-functions/shm_open.texi: Likewise.
41754         * doc/posix-functions/shm_unlink.texi: Likewise.
41755         * doc/posix-functions/signgam.texi: Likewise.
41756         * doc/posix-functions/sigset.texi: Likewise.
41757         * doc/posix-functions/stpcpy.texi: Likewise.
41758         * doc/posix-functions/stpncpy.texi: Likewise.
41759         * doc/posix-functions/strerror.texi: Likewise.
41760         * doc/posix-functions/strtod.texi: Likewise.
41761         * doc/posix-functions/symlinkat.texi: Likewise.
41762         * doc/posix-functions/unlinkat.texi: Likewise.
41763         * doc/posix-functions/utimensat.texi: Likewise.
41764         * doc/glibc-functions/bindresvport.texi: Likewise.
41765         * doc/glibc-functions/dn_expand.texi: Likewise.
41766         * doc/glibc-functions/exp10.texi: Likewise.
41767         * doc/glibc-functions/exp10f.texi: Likewise.
41768         * doc/glibc-functions/fgetxattr.texi: Likewise.
41769         * doc/glibc-functions/flistxattr.texi: Likewise.
41770         * doc/glibc-functions/fopencookie.texi: Likewise.
41771         * doc/glibc-functions/freeifaddrs.texi: Likewise.
41772         * doc/glibc-functions/fremovexattr.texi: Likewise.
41773         * doc/glibc-functions/fsetxattr.texi: Likewise.
41774         * doc/glibc-functions/getifaddrs.texi: Likewise.
41775         * doc/glibc-functions/getxattr.texi: Likewise.
41776         * doc/glibc-functions/lgetxattr.texi: Likewise.
41777         * doc/glibc-functions/listxattr.texi: Likewise.
41778         * doc/glibc-functions/llistxattr.texi: Likewise.
41779         * doc/glibc-functions/lremovexattr.texi: Likewise.
41780         * doc/glibc-functions/lsetxattr.texi: Likewise.
41781         * doc/glibc-functions/pow10.texi: Likewise.
41782         * doc/glibc-functions/pow10f.texi: Likewise.
41783         * doc/glibc-functions/rcmd_af.texi: Likewise.
41784         * doc/glibc-functions/removexattr.texi: Likewise.
41785         * doc/glibc-functions/res_init.texi: Likewise.
41786         * doc/glibc-functions/res_mkquery.texi: Likewise.
41787         * doc/glibc-functions/res_query.texi: Likewise.
41788         * doc/glibc-functions/res_querydomain.texi: Likewise.
41789         * doc/glibc-functions/res_send.texi: Likewise.
41790         * doc/glibc-functions/rresvport_af.texi: Likewise.
41791         * doc/glibc-functions/setxattr.texi: Likewise.
41792         * doc/glibc-functions/strcasestr.texi: Likewise.
41793
41794 2008-12-15  Bruno Haible  <bruno@clisp.org>
41795
41796         Fix compilation error on OSF/1 4.0.
41797         * lib/sys_select.in.h: When invoked from OSF/1 <sys/types.h> or
41798         <sys/time.h>, simply delegate to the system header.
41799         Reported by Daniel Richard G. <oss@teragram.com>.
41800
41801 2008-12-15  Bruno Haible  <bruno@clisp.org>
41802
41803         * doc/posix-functions/openat.texi: Mention the 'openat' module.
41804         * doc/posix-functions/fchmodat.texi: Likewise.
41805         * doc/posix-functions/fchownat.texi: Likewise.
41806         * doc/posix-functions/fdopendir.texi: Likewise.
41807         * doc/posix-functions/fstatat.texi: Likewise.
41808         * doc/posix-functions/mkdirat.texi: Likewise.
41809         * doc/posix-functions/unlinkat.texi: Likewise.
41810
41811 2008-12-14  Bruno Haible  <bruno@clisp.org>
41812
41813         Update doc for POSIX:2008.
41814         * doc/posix-functions/faccessat.texi: New file.
41815         * doc/posix-functions/fchmodat.texi: New file.
41816         * doc/posix-functions/fchownat.texi: New file.
41817         * doc/posix-functions/fdopendir.texi: New file.
41818         * doc/posix-functions/fstatat.texi: New file.
41819         * doc/posix-functions/futimens.texi: New file.
41820         * doc/posix-functions/linkat.texi: New file.
41821         * doc/posix-functions/mkdirat.texi: New file.
41822         * doc/posix-functions/mkfifoat.texi: New file.
41823         * doc/posix-functions/mknodat.texi: New file.
41824         * doc/posix-functions/open_wmemstream.texi: New file.
41825         * doc/posix-functions/openat.texi: New file.
41826         * doc/posix-functions/psiginfo.texi: New file.
41827         * doc/posix-functions/pthread_mutex_consistent.texi: New file.
41828         * doc/posix-functions/pthread_mutexattr_getrobust.texi: New file.
41829         * doc/posix-functions/pthread_mutexattr_setrobust.texi: New file.
41830         * doc/posix-functions/readlinkat.texi: New file.
41831         * doc/posix-functions/renameat.texi: New file.
41832         * doc/posix-functions/strerror_l.texi: New file.
41833         * doc/posix-functions/symlinkat.texi: New file.
41834         * doc/posix-functions/unlinkat.texi: New file.
41835         * doc/posix-functions/utimensat.texi: New file.
41836         * doc/gnulib.texi (Function Substitutes): Add these subsections.
41837
41838 2008-12-14  Bruno Haible  <bruno@clisp.org>
41839
41840         Update doc for POSIX:2008.
41841         * doc/posix-functions/alphasort.texi: Renamed from
41842         doc/glibc-functions/alphasort.texi.
41843         * doc/posix-functions/dirfd.texi: Renamed from
41844         doc/glibc-functions/dirfd.texi.
41845         * doc/posix-functions/dprintf.texi: Renamed from
41846         doc/glibc-functions/dprintf.texi.
41847         * doc/posix-functions/duplocale.texi: Renamed from
41848         doc/glibc-functions/duplocale.texi.
41849         * doc/posix-functions/fexecve.texi: Renamed from
41850         doc/glibc-functions/fexecve.texi.
41851         * doc/posix-functions/fmemopen.texi: Renamed from
41852         doc/glibc-functions/fmemopen.texi.
41853         * doc/posix-functions/freelocale.texi: Renamed from
41854         doc/glibc-functions/freelocale.texi.
41855         * doc/posix-functions/getdate_err.texi: Renamed from
41856         doc/glibc-functions/getdate_err.texi.
41857         * doc/posix-functions/isalnum_l.texi: Renamed from
41858         doc/glibc-functions/isalnum_l.texi.
41859         * doc/posix-functions/isalpha_l.texi: Renamed from
41860         doc/glibc-functions/isalpha_l.texi.
41861         * doc/posix-functions/isblank_l.texi: Renamed from
41862         doc/glibc-functions/isblank_l.texi.
41863         * doc/posix-functions/iscntrl_l.texi: Renamed from
41864         doc/glibc-functions/iscntrl_l.texi.
41865         * doc/posix-functions/isdigit_l.texi: Renamed from
41866         doc/glibc-functions/isdigit_l.texi.
41867         * doc/posix-functions/isgraph_l.texi: Renamed from
41868         doc/glibc-functions/isgraph_l.texi.
41869         * doc/posix-functions/islower_l.texi: Renamed from
41870         doc/glibc-functions/islower_l.texi.
41871         * doc/posix-functions/isprint_l.texi: Renamed from
41872         doc/glibc-functions/isprint_l.texi.
41873         * doc/posix-functions/ispunct_l.texi: Renamed from
41874         doc/glibc-functions/ispunct_l.texi.
41875         * doc/posix-functions/isspace_l.texi: Renamed from
41876         doc/glibc-functions/isspace_l.texi.
41877         * doc/posix-functions/isupper_l.texi: Renamed from
41878         doc/glibc-functions/isupper_l.texi.
41879         * doc/posix-functions/iswalnum_l.texi: Renamed from
41880         doc/glibc-functions/iswalnum_l.texi.
41881         * doc/posix-functions/iswalpha_l.texi: Renamed from
41882         doc/glibc-functions/iswalpha_l.texi.
41883         * doc/posix-functions/iswblank_l.texi: Renamed from
41884         doc/glibc-functions/iswblank_l.texi.
41885         * doc/posix-functions/iswcntrl_l.texi: Renamed from
41886         doc/glibc-functions/iswcntrl_l.texi.
41887         * doc/posix-functions/iswctype_l.texi: Renamed from
41888         doc/glibc-functions/iswctype_l.texi.
41889         * doc/posix-functions/iswdigit_l.texi: Renamed from
41890         doc/glibc-functions/iswdigit_l.texi.
41891         * doc/posix-functions/iswgraph_l.texi: Renamed from
41892         doc/glibc-functions/iswgraph_l.texi.
41893         * doc/posix-functions/iswlower_l.texi: Renamed from
41894         doc/glibc-functions/iswlower_l.texi.
41895         * doc/posix-functions/iswprint_l.texi: Renamed from
41896         doc/glibc-functions/iswprint_l.texi.
41897         * doc/posix-functions/iswpunct_l.texi: Renamed from
41898         doc/glibc-functions/iswpunct_l.texi.
41899         * doc/posix-functions/iswspace_l.texi: Renamed from
41900         doc/glibc-functions/iswspace_l.texi.
41901         * doc/posix-functions/iswupper_l.texi: Renamed from
41902         doc/glibc-functions/iswupper_l.texi.
41903         * doc/posix-functions/iswxdigit_l.texi: Renamed from
41904         doc/glibc-functions/iswxdigit_l.texi.
41905         * doc/posix-functions/isxdigit_l.texi: Renamed from
41906         doc/glibc-functions/isxdigit_l.texi.
41907         * doc/posix-functions/mbsnrtowcs.texi: Renamed from
41908         doc/glibc-functions/mbsnrtowcs.texi.
41909         * doc/posix-functions/mkdtemp.texi: Renamed from
41910         doc/glibc-functions/mkdtemp.texi.
41911         * doc/posix-functions/newlocale.texi: Renamed from
41912         doc/glibc-functions/newlocale.texi.
41913         * doc/posix-functions/nl_langinfo_l.texi: Renamed from
41914         doc/glibc-functions/nl_langinfo_l.texi.
41915         * doc/posix-functions/open_memstream.texi: Renamed from
41916         doc/glibc-functions/open_memstream.texi.
41917         * doc/posix-functions/opterr.texi: Renamed from
41918         doc/glibc-functions/opterr.texi.
41919         * doc/posix-functions/optind.texi: Renamed from
41920         doc/glibc-functions/optind.texi.
41921         * doc/posix-functions/optopt.texi: Renamed from
41922         doc/glibc-functions/optopt.texi.
41923         * doc/posix-functions/psignal.texi: Renamed from
41924         doc/glibc-functions/psignal.texi.
41925         * doc/posix-functions/scandir.texi: Renamed from
41926         doc/glibc-functions/scandir.texi.
41927         * doc/posix-functions/sched_get_priority_min.texi: Renamed from
41928         doc/glibc-functions/sched_get_priority_min.texi.
41929         * doc/posix-functions/signgam.texi: Renamed from
41930         doc/glibc-functions/signgam.texi.
41931         * doc/posix-functions/stpcpy.texi: Renamed from
41932         doc/glibc-functions/stpcpy.texi.
41933         * doc/posix-functions/stpncpy.texi: Renamed from
41934         doc/glibc-functions/stpncpy.texi.
41935         * doc/posix-functions/strcasecmp_l.texi: Renamed from
41936         doc/glibc-functions/strcasecmp_l.texi.
41937         * doc/posix-functions/strcoll_l.texi: Renamed from
41938         doc/glibc-functions/strcoll_l.texi.
41939         * doc/posix-functions/strfmon_l.texi: Renamed from
41940         doc/glibc-functions/strfmon_l.texi.
41941         * doc/posix-functions/strftime_l.texi: Renamed from
41942         doc/glibc-functions/strftime_l.texi.
41943         * doc/posix-functions/strncasecmp_l.texi: Renamed from
41944         doc/glibc-functions/strncasecmp_l.texi.
41945         * doc/posix-functions/strndup.texi: Renamed from
41946         doc/glibc-functions/strndup.texi.
41947         * doc/posix-functions/strnlen.texi: Renamed from
41948         doc/glibc-functions/strnlen.texi.
41949         * doc/posix-functions/strsignal.texi: Renamed from
41950         doc/glibc-functions/strsignal.texi.
41951         * doc/posix-functions/strxfrm_l.texi: Renamed from
41952         doc/glibc-functions/strxfrm_l.texi.
41953         * doc/posix-functions/timer_gettime.texi: Renamed from
41954         doc/glibc-functions/timer_gettime.texi.
41955         * doc/posix-functions/tolower_l.texi: Renamed from
41956         doc/glibc-functions/tolower_l.texi.
41957         * doc/posix-functions/toupper_l.texi: Renamed from
41958         doc/glibc-functions/toupper_l.texi.
41959         * doc/posix-functions/towctrans_l.texi: Renamed from
41960         doc/glibc-functions/towctrans_l.texi.
41961         * doc/posix-functions/towlower_l.texi: Renamed from
41962         doc/glibc-functions/towlower_l.texi.
41963         * doc/posix-functions/towupper_l.texi: Renamed from
41964         doc/glibc-functions/towupper_l.texi.
41965         * doc/posix-functions/uselocale.texi: Renamed from
41966         doc/glibc-functions/uselocale.texi.
41967         * doc/posix-functions/vdprintf.texi: Renamed from
41968         doc/glibc-functions/vdprintf.texi.
41969         * doc/posix-functions/wcpcpy.texi:
41970         Renamed from doc/glibc-functions/wcpcpy.texi.
41971         * doc/posix-functions/wcpncpy.texi: Renamed from
41972         doc/glibc-functions/wcpncpy.texi.
41973         * doc/posix-functions/wcscasecmp.texi: Renamed from
41974         doc/glibc-functions/wcscasecmp.texi.
41975         * doc/posix-functions/wcscasecmp_l.texi: Renamed from
41976         doc/glibc-functions/wcscasecmp_l.texi.
41977         * doc/posix-functions/wcscoll_l.texi: Renamed from
41978         doc/glibc-functions/wcscoll_l.texi.
41979         * doc/posix-functions/wcsdup.texi: Renamed from
41980         doc/glibc-functions/wcsdup.texi.
41981         * doc/posix-functions/wcsncasecmp.texi: Renamed from
41982         doc/glibc-functions/wcsncasecmp.texi.
41983         * doc/posix-functions/wcsncasecmp_l.texi: Renamed from
41984         doc/glibc-functions/wcsncasecmp_l.texi.
41985         * doc/posix-functions/wcsnlen.texi: Renamed from
41986         doc/glibc-functions/wcsnlen.texi.
41987         * doc/posix-functions/wcsnrtombs.texi: Renamed from
41988         doc/glibc-functions/wcsnrtombs.texi.
41989         * doc/posix-functions/wcsxfrm_l.texi: Renamed from
41990         doc/glibc-functions/wcsxfrm_l.texi.
41991         * doc/posix-functions/wctrans_l.texi: Renamed from
41992         doc/glibc-functions/wctrans_l.texi.
41993         * doc/posix-functions/wctype_l.texi: Renamed from
41994         doc/glibc-functions/wctype_l.texi.
41995         * doc/gnulib.texi (Function Substitutes): Add these subsections.
41996         (Glibc ctype.h, Glibc dirent.h, Glibc getopt.h, Glibc math.h,
41997         Glibc sched.h, Glibc signal.h, Glibc stdio.h, Glibc stdlib.h,
41998         Glibc string.h, Glibc time.h, Glibc unistd.h, Glibc wchar.h): Remove
41999         these subsections.
42000         (Glibc langinfo.h, Glibc locale.h, Glibc monetary.h, Glibc wctype.h):
42001         Remove sections.
42002
42003 2008-12-14  Bruno Haible  <bruno@clisp.org>
42004
42005         Update doc for POSIX:2008.
42006         * doc/posix-functions/*.texi: Update URL of POSIX specification.
42007
42008 2008-12-14  Bruno Haible  <bruno@clisp.org>
42009
42010         Update doc for POSIX:2008.
42011         * doc/pastposix-functions/bcmp.texi: Renamed from
42012         doc/posix-functions/bcmp.texi.
42013         * doc/pastposix-functions/bcopy.texi: Renamed from
42014         doc/posix-functions/bcopy.texi.
42015         * doc/pastposix-functions/bsd_signal.texi: Renamed from
42016         doc/posix-functions/bsd_signal.texi.
42017         * doc/pastposix-functions/bzero.texi: Renamed from
42018         doc/posix-functions/bzero.texi.
42019         * doc/pastposix-functions/ecvt.texi: Renamed from
42020         doc/posix-functions/ecvt.texi.
42021         * doc/pastposix-functions/fcvt.texi: Renamed from
42022         doc/posix-functions/fcvt.texi.
42023         * doc/pastposix-functions/ftime.texi: Renamed from
42024         doc/posix-functions/ftime.texi.
42025         * doc/pastposix-functions/gcvt.texi: Renamed from
42026         doc/posix-functions/gcvt.texi.
42027         * doc/pastposix-functions/getcontext.texi: Renamed from
42028         doc/posix-functions/getcontext.texi.
42029         * doc/pastposix-functions/gethostbyaddr.texi: Renamed from
42030         doc/posix-functions/gethostbyaddr.texi.
42031         * doc/pastposix-functions/gethostbyname.texi: Renamed from
42032         doc/posix-functions/gethostbyname.texi.
42033         * doc/pastposix-functions/getwd.texi: Renamed from
42034         doc/posix-functions/getwd.texi.
42035         * doc/pastposix-functions/h_errno.texi: Renamed from
42036         doc/posix-functions/h_errno.texi.
42037         * doc/pastposix-functions/index.texi: Renamed from
42038         doc/posix-functions/index.texi.
42039         * doc/pastposix-functions/makecontext.texi: Renamed from
42040         doc/posix-functions/makecontext.texi.
42041         * doc/pastposix-functions/mktemp.texi: Renamed from
42042         doc/posix-functions/mktemp.texi.
42043         * doc/pastposix-functions/pthread_attr_getstackaddr.texi: Renamed from
42044         doc/posix-functions/pthread_attr_getstackaddr.texi.
42045         * doc/pastposix-functions/pthread_attr_setstackaddr.texi: Renamed from
42046         doc/posix-functions/pthread_attr_setstackaddr.texi.
42047         * doc/pastposix-functions/rindex.texi: Renamed from
42048         doc/posix-functions/rindex.texi.
42049         * doc/pastposix-functions/scalb.texi: Renamed from
42050         doc/posix-functions/scalb.texi.
42051         * doc/pastposix-functions/setcontext.texi: Renamed from
42052         doc/posix-functions/setcontext.texi.
42053         * doc/pastposix-functions/swapcontext.texi: Renamed from
42054         doc/posix-functions/swapcontext.texi.
42055         * doc/pastposix-functions/ualarm.texi: Renamed from
42056         doc/posix-functions/ualarm.texi.
42057         * doc/pastposix-functions/usleep.texi: Renamed from
42058         doc/posix-functions/usleep.texi.
42059         * doc/pastposix-functions/vfork.texi: Renamed from
42060         doc/posix-functions/vfork.texi.
42061         * doc/pastposix-functions/wcswcs.texi: Renamed from
42062         doc/posix-functions/wcswcs.texi.
42063         * doc/gnulib.texi (Legacy Function Substitutes): New chapter.
42064         (Function Substitutes): Update.
42065
42066 2008-12-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
42067
42068         * modules/relocatable-prog-wrapper (Depends-on): Add errno, needed by
42069         m4/strerror.m4.
42070
42071 2008-12-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
42072             Bruno Haible  <bruno@clisp.org>
42073
42074         * modules/unilbrk/tables (Depends-on): Add unilbrk/base.
42075
42076 2008-12-13  Bruno Haible  <bruno@clisp.org>
42077
42078         * modules/strtoull (Depends-on): Remove unistd.
42079
42080 2008-12-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
42081
42082         * modules/strtoull (Depends-on): Add stdlib.
42083
42084 2008-12-11  Simon Josefsson  <simon@josefsson.org>
42085
42086         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add more warnings.
42087
42088 2008-12-10  Jim Meyering  <meyering@redhat.com>
42089
42090         gl_ASSERT: don't say assertions are disabled when they're not
42091         * m4/assert.m4 (gl_ASSERT): Do not make configure report
42092         "checking whether to enable assertions... no", when they are in
42093         fact enabled.  This is solely a bug in the output of configure.
42094         In spite of saying "no", NDEBUG was not defined in that case.
42095         Also, as noted by Eric Blake, leave assertions enabled upon
42096         --enable-assert=INVALID.
42097
42098 2008-12-10  Bruno Haible  <bruno@clisp.org>
42099
42100         Change MODULES.html to refer to POSIX:2008 where possible.
42101         * MODULES.html.sh (POSIX2008_URL): New variable.
42102         (posix_headers): Remove sys/timeb, ucontext.
42103         (posix2001_headers): New variable.
42104         (posix_functions): Remove bcmp, bcopy, bsd_signal, bzero, ecvt, fcvt,
42105         ftime, gcvt, getcontext, gethostbyaddr, gethostbyname, getwd, h_errno,
42106         index, makecontext, mktemp, pthread_attr_getstackaddr,
42107         pthread_attr_setstackaddr, rindex, scalb, setcontext, swapcontext,
42108         ualarm, usleep, vfork, wcswcs. Add the new POSIX:2008 functions.
42109         (posix2001_functions): New variable.
42110         (func_module): Use URLs to POSIX:2008 where possible and to POSIX:2001
42111         otherwise.
42112
42113 2008-12-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
42114
42115         add missing include to parse-duration.c
42116         * lib/parse-duration.c: #include "xalloc.h", for xstrdup.
42117         * modules/parse-duration (Depends-on): Add xalloc.
42118
42119         fix sed script reading maint.mk
42120         * top/maint.mk (MYSELF): New macro, define as $(srcdir)/$(ME).
42121         (syntax-check-rules): Use it.
42122
42123 2008-12-09  Bruno Haible  <bruno@clisp.org>
42124
42125         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Add another check, that fails on
42126         MacOS X 10.4/PowerPC.
42127         Reported by Simon Josefsson.
42128
42129 2008-12-08  Jim Meyering  <meyering@redhat.com>
42130
42131         work around mingw's lack of some S_IF definitions
42132         * lib/fts.c (S_IFLNK, S_IFSOCK): Define if not already defined.
42133         Reported by Simon Josefsson.
42134
42135 2008-12-08  Bruno Haible  <bruno@clisp.org>
42136
42137         * m4/signbitl.m4 (gl_SIGNBIT_TEST_PROGRAM): Add a link check of signbit
42138         applied to variables. Needed on MacOS X 10.4/PowerPC.
42139         Reported by Simon Josefsson.
42140
42141 2008-12-08  William Pursell  <bill.pursell@gmail.com>  (tiny change)
42142         and Eric Blake  <ebb9@byu.net>
42143
42144         assert: honor --enable-assert
42145         * m4/assert.m4 (gl_ASSERT): Synchronize with autoconf 2.64, in
42146         order to honor --enable-assert, rather than treating it as a
42147         synonym for --disable-assert.
42148
42149 2008-12-08  Jim Meyering  <meyering@redhat.com>
42150
42151         * lib/posixtm.c: Remove now-useless declaration of mktime.
42152
42153         * build-aux/announce-gen (get_tool_versions): Accept .xz tarballs.
42154
42155 2008-12-07  Bruno Haible  <bruno@clisp.org>
42156
42157         * tests/test-lock.c (test_lock, test_rwlock, test_recursive_lock,
42158         test_once): Mark functions as static.
42159         * tests/test-tls.c (test_tls): Likewise.
42160
42161 2008-12-07  Bruno Haible  <bruno@clisp.org>
42162
42163         * lib/striconveha.h (uniconv_register_autodetect): Renamed from
42164         iconv_register_autodetect.
42165
42166 2008-12-07  Jim Meyering  <meyering@redhat.com>
42167
42168         posixtm.c: avoid a warning
42169         * lib/posixtm.c (posixtime): Don't initialize tm0.
42170         It's no longer needed to placate gcc4's -Wuninitialized,
42171         and the attempt to placate would elicit a new warning.
42172
42173         unicodeio.c: mark unused parameters
42174         * lib/unicodeio.c (exit_failure_callback): Mark unused parameter.
42175         (fallback_failure_callback): Likewise.
42176
42177 2008-12-07  Bruno Haible  <bruno@clisp.org>
42178
42179         * gnulib-tool (func_create_testdir): When building the tests
42180         subdirectory, ignore the modules gnumakefile and maintainer-makefile.
42181         Reported by Simon Josefsson.
42182
42183 2008-12-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
42184
42185         * doc/manywarnings.texi, doc/gnulib-intro.texi: Fix typos.
42186
42187 2008-12-06  Bruno Haible  <bruno@clisp.org>
42188
42189         * lib/c-stack.h (c_stack_action): Clarify possible side effects.
42190         Suggested by Eric Blake.
42191
42192 2008-12-06  Bruno Haible  <bruno@clisp.org>
42193
42194         Fix a c-stack test failure on MacOS X.
42195         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Require
42196         AC_CANONICAL_HOST. Define FAULT_YIELDS_SIGBUS. If set, install a signal
42197         handler for SIGBUS as well.
42198         * lib/c-stack.c (c_stack_action): If FAULT_YIELDS_SIGBUS is set,
42199         install a signal handler for SIGBUS as well.
42200         Reported by Bruce Dugan <bld0401@gmail.com> via Eric Blake.
42201
42202 2008-12-06  Bruno Haible  <bruno@clisp.org>
42203
42204         Advocacy documentation.
42205         * doc/gnulib-intro.texi (Benefits): New section.
42206         * doc/gnulib.texi: Update.
42207
42208 2008-12-06  Bruno Haible  <bruno@clisp.org>
42209
42210         Document the 'manywarnings' module.
42211         * doc/manywarnings.texi: New file.
42212         * doc/gnulib.texi: Include it.
42213
42214 2008-12-05  Eric Blake  <ebb9@byu.net>
42215
42216         tests: silence some gcc warnings
42217         * tests/test-getdate.c (LOG) [!DEBUG]: Mark no-op void.
42218         * tests/uniwidth/test-uc_width2.c (finish_interval): Avoid printf
42219         type mismatches.
42220
42221 2008-12-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
42222             Bruno Haible  <bruno@clisp.org>
42223
42224         * m4/openmp.m4 (AC_OPENMP): Do not define with Autoconf 2.62 or newer.
42225
42226 2008-11-29  Jim Meyering  <meyering@redhat.com>
42227
42228         unicodeio.c: mark unused parameters
42229         * lib/unicodeio.c (exit_failure_callback): Mark unused parameter.
42230         (fallback_failure_callback): Likewise.
42231
42232         fts: fix a thinko
42233         * lib/fts.c (s_ifmt_shift_bits): Remove function.  Not needed after all.
42234         (set_stat_type): Return S_IF*-valued "type" directly.
42235         Prompted by James Youngman's spotting a related bug.
42236         Confirmed by further testing through find.
42237
42238         fts: provide dirent.d_type via FTSENT.fts_statp, when possible
42239         * lib/fts.c (D_TYPE): Define.
42240         (DT_UNKNOWN, DT_BLK, DT_CHR) [HAVE_STRUCT_DIRENT_D_TYPE]: Define.
42241         (DT_DIR, DT_FIFO, DT_LNK, DT_REG, DT_SOCK): Likewise.
42242         (s_ifmt_shift_bits): New function.
42243         (set_stat_type): New function.
42244         (fts_build): When not calling fts_stat, call set_stat_type
42245         to propagate dirent.d_type info to fts_read caller.
42246         * lib/fts_.h (FTSENT) [FTS_DEFER_STAT]: Mention that
42247         fts_statp->st_mode type information may be valid.
42248
42249 2008-11-28  Simon Josefsson  <simon@josefsson.org>
42250
42251         * lib/sys_time.in.h: Add extern "C" block for C++.  Suggested by
42252         Brian Dessent <brian@dessent.net>.  Reported by Sam Steingold
42253         <sds@gnu.org>.
42254
42255 2008-11-20  Bruno Haible  <bruno@clisp.org>
42256
42257         Attempt to work around an AIX 5.3, 6.1 compiler bug with include_next.
42258         * lib/math.in.h: Use INCLUDE_NEXT_AS_FIRST_DIRECTIVE instead of
42259         INCLUDE_NEXT.
42260         * m4/include_next.m4 (gl_INCLUDE_NEXT): Set also
42261         INCLUDE_NEXT_AS_FIRST_DIRECTIVE.
42262         * modules/math (Makefile.am): Substitute
42263         INCLUDE_NEXT_AS_FIRST_DIRECTIVE instead of INCLUDE_NEXT.
42264         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
42265
42266 2008-11-18  Alexandre Duret-Lutz  <adl@lrde.epita.fr>
42267             Bruno Haible  <bruno@clisp.org>
42268
42269         * lib/stdint.in.h: Define all type macros so that their expansion is
42270         a single typedef'ed token. Fixes a compilation failure in Boost which
42271         does "using ::int8_t;".
42272
42273 2008-11-18  Simon Josefsson  <simon@josefsson.org>
42274
42275         * m4/manywarnings.m4: New file with gl_MANYWARN_COMPLEMENT and
42276         gl_MANYWARN_ALL_GCC.
42277         * m4/warnings.m4: Removed gl_WARN_SUPPORTED and
42278         gl_WARN_COMPLEMENT.  Suggested by Bruno Haible <bruno@clisp.org>.
42279         * modules/manywarnings: New file.
42280         * MODULES.html.sh: Mention manywarnings module.
42281
42282 2008-11-18  Bruno Haible  <bruno@clisp.org>
42283
42284         * doc/gnulib-tool.texi (Unit tests): New section.
42285
42286 2008-11-18  Simon Josefsson  <simon@josefsson.org>
42287
42288         * top/maint.mk (refresh-po): Fix sed regexp to avoid problems with
42289         paths like 'lib/po/foo.po'.
42290
42291 2008-11-17  Simon Josefsson  <simon@josefsson.org>
42292
42293         * m4/warnings.m4: Improve code.  Reported by Ralf Wildenhues
42294         <Ralf.Wildenhues@gmx.de> and Paolo Bonzini <bonzini@gnu.org>.
42295
42296 2008-11-17  Simon Josefsson  <simon@josefsson.org>
42297
42298         * m4/warnings.m4: Use CPPFLAGS to really check whether the
42299         parameter works.
42300
42301 2008-11-17  Simon Josefsson  <simon@josefsson.org>
42302
42303         * m4/warnings.m4: Add gl_WARN_COMPLEMENT and gl_WARN_SUPPORTED.
42304
42305 2008-11-17  Bruce Korb  <bkorb@gnu.org>
42306
42307         * modules/parse-duration-tests: New file.
42308         * tests/test-parse-duration.sh: New file.
42309         * tests/test-parse-duration.c: New file.
42310
42311         New module 'parse-duration'.
42312         * lib/parse-duration.h: New file.
42313         * lib/parse-duration.c: New file.
42314         * modules/parse-duration: New file.
42315
42316 2008-11-17  Bruno Haible  <bruno@clisp.org>
42317
42318         * tests/test-select-out.sh: Comment out the first pipe test.
42319         Reported by Simon Josefsson.
42320
42321 2008-11-17  Bruno Haible  <bruno@clisp.org>
42322
42323         * modules/getaddrinfo (Depends-on): Add servent, hostent.
42324         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Use gl_SERVENT and
42325         gl_HOSTENT.
42326
42327 2008-11-17  Bruno Haible  <bruno@clisp.org>
42328
42329         * m4/sockets.m4 (gl_SOCKETS): After trying -lsocket, try also
42330         -lnetwork and -lnet. Needed for Haiku and BeOS.
42331
42332 2008-11-16  Bruno Haible  <bruno@clisp.org>
42333
42334         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix indentation.
42335
42336 2008-11-16  Bruno Haible  <bruno@clisp.org>
42337
42338         Avoid test failure on Haiku.
42339         * tests/test-fsync.c: Include <errno.h>.
42340         (main): Don't require that fsync (0) fails.
42341
42342 2008-11-15  Bruno Haible  <bruno@clisp.org>
42343
42344         New module 'hostent'.
42345         * modules/hostent: New file.
42346         * m4/hostent.m4: New file, based on code in m4/getaddrinfo.m4.
42347
42348 2008-11-15  Bruno Haible  <bruno@clisp.org>
42349
42350         New module 'servent'.
42351         * modules/servent: New file.
42352         * m4/servent.m4: New file, based on code in m4/getaddrinfo.m4.
42353
42354 2008-11-15  Bruno Haible  <bruno@clisp.org>
42355
42356         Avoid generating same test program with two different rules.
42357         * modules/frexp-nolibm-tests (Makefile.am): Rename test program from
42358         test-frexp to test-frexp-nolibm.
42359         * modules/frexpl-nolibm-tests (Makefile.am): Rename test program from
42360         test-frexpl to test-frexpl-nolibm.
42361
42362 2008-11-15  Bruno Haible  <bruno@clisp.org>
42363
42364         * modules/frexpl-tests (Makefile.am): Link test-frexpl with
42365         $(FREXPL_LIBM).
42366
42367 2008-11-15  Bruno Haible  <bruno@clisp.org>
42368
42369         * lib/netdb.in.h: Activate the definitions also when the system's
42370         <netdb.h> has 'struct addrinfo'.
42371         * m4/netdb_h.m4 (gl_HEADER_NETDB): Replace netdb.h also when it lacks
42372         EAI_OVERFLOW or AI_NUMERICSERV.
42373         * doc/posix-headers/netdb.texi: Document the problem.
42374
42375 2008-11-15  Bruno Haible  <bruno@clisp.org>
42376
42377         * tests/test-sched.c: Test also the existence of the SCHED_* macros.
42378
42379         Make the 'sched' module work on platforms where <sched.h> exists but
42380         is incomplete (such as Haiku).
42381         * lib/sched.in.h; Include the system's <sched.h> if it exists.
42382         (SCHED_FIFO, SCHED_RR, SCHED_OTHER): New macros.
42383         * m4/sched_h.m4 (gl_SCHED_H): Test whether <sched.h> exists and also
42384         defines SCHED_FIFO, SCHED_RR, SCHED_OTHER. Set HAVE_SCHED_H,
42385         HAVE_STRUCT_SCHED_PARAM.
42386         * modules/sched (Depends-on): Add include_next.
42387         (Makefile.am): Substitute HAVE_SCHED_H, INCLUDE_NEXT,
42388         PRAGMA_SYSTEM_HEADER, NEXT_SCHED_H, HAVE_STRUCT_SCHED_PARAM.
42389         * doc/posix-headers/sched.texi: Document the issue.
42390
42391 2008-11-13  Jim Meyering  <meyering@redhat.com>
42392
42393         test-argp-2: avoid test failure when PACKAGE_BUGREPORT is defined
42394         * tests/test-argp-2.sh: When PACKAGE_BUGREPORT was defined, this
42395         test would fail due to the difference in the Report bugs to ...
42396         line.  The expected address is empty, "<>", while the actual
42397         would contain e.g., "<bug-tar@gnu.org>".  Filter out any address.
42398
42399 2008-11-12  Bruno Haible  <bruno@clisp.org>
42400
42401         lstat: don't compile lstat.c on systems lacking lstat
42402         * m4/lstat.m4 (gl_FUNC_LSTAT): Don't compile lstat.c on systems
42403         which don't have lstat; this is handled by lib/sys_stat.in.h already.
42404         Reported by Daniel P. Berrange via Jim Meyering.
42405
42406 2008-11-12  Jim Meyering  <meyering@redhat.com>
42407
42408         * lib/unicodeio.c (unicode_to_mb): Correct spelling of u8_uctomb.
42409
42410 2008-11-12  Simon Josefsson  <simon@josefsson.org>
42411
42412         * modules/warnings (configure.ac): Do AC_SUBST([WARN_CFLAGS]) here
42413         instead.
42414
42415 2008-11-12  Bruno Haible  <bruno@clisp.org>
42416
42417         * lib/unicodeio.c: Include unistr.h.
42418         (utf8_wctomb): Remove function.
42419         (unicode_to_mb): Use utf8_uctomb instead of utf8_wctomb.
42420
42421 2008-11-12  Simon Josefsson  <simon@josefsson.org>
42422
42423         * m4/warnings.m4 (gl_WARN_INIT): Remove, suggested by Ralf
42424         Wildenhues <Ralf.Wildenhues@gmx.de> and Bruno Haible
42425         <bruno@clisp.org>.
42426         * modules/warnings (configure.ac): Don't call gl_WARN_INIT.
42427
42428 2008-11-12  Simon Josefsson  <simon@josefsson.org>
42429
42430         * doc/warnings.texi: New file, from Bruno Haible <bruno@clisp.org>.
42431         * doc/gnulib.texi: Add section for warnings.
42432
42433 2008-11-11  Bruno Haible  <bruno@clisp.org>
42434
42435         * lib/sockets.h: Add a comment.
42436
42437 2008-11-11  Karl Berry  <karl@gnu.org>
42438
42439         * config/srclist.txt (fdl.texi): add, syncing from gnustandards.
42440
42441 2008-11-11  Eric Blake  <ebb9@byu.net>
42442
42443         fdl.texi: avoid git symlinks
42444         * doc/fdl.texi: Copy, rather than link, fdl-1.3.texi.
42445
42446 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
42447
42448         * m4/warnings.m4 (gl_WARN_ADD): Don't AC_SUBST the empty string.
42449
42450 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
42451
42452         * m4/warnings.m4 (gl_WARN_INIT): Substitute WARN_CFLAGS.
42453         (gl_WARN_ADD): Substitute $2 if literal.
42454
42455 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
42456
42457         * m4/warning.m4: Remove.
42458
42459 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
42460
42461         * m4/warnings.m4: Almost complete rewrite. :-)
42462
42463 2008-11-10  Simon Josefsson  <simon@josefsson.org>
42464
42465         * modules/warnings: New module.
42466         * m4/warnings.m4: New file.
42467         * MODULES.html.sh: Mention warnings module.
42468         With review improvements from Paolo Bonzini <bonzini@gnu.org> and
42469         Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
42470
42471 2008-11-10  Eric Blake  <ebb9@byu.net>
42472
42473         fdl.texi: make a symlink to the latest version
42474         * doc/standards.texi: Revert today's earlier change.
42475         * doc/fdl-1.2.texi: Rename from old fdl.texi...
42476         * doc/fdl.texi: ...and replace this with a symlink to the newer
42477         fdl-1.3.texi.
42478
42479 2008-11-10  Bruno Haible  <bruno@clisp.org>
42480
42481         * tests/test-select-fd.c (main): Accept the result file name as fourth
42482         argument.
42483         * tests/test-select-in.sh: Pass t-select-in.tmp as fourth argument.
42484         * tests/test-select-out.sh: Pass t-select-out.tmp as fourth argument.
42485
42486 2008-11-10  Bruno Haible  <bruno@clisp.org>
42487
42488         * lib/netdb.in.h: Use HAVE_STRUCT_ADDRINFO, HAVE_DECL_GETADDRINFO,
42489         HAVE_DECL_FREEADDRINFO, HAVE_DECL_GAI_STRERROR, HAVE_DECL_GETNAMEINFO
42490         as autoconf-substituted macros.
42491         * m4/netdb_h.m4 (gl_NETDB_H_DEFAULTS): Initialize these variables to 1.
42492         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Require
42493         gl_NETDB_H_DEFAULTS. Set these variables.
42494         * modules/netdb (Makefile.am): Substitute these variables.
42495
42496 2008-11-10  Eric Blake  <ebb9@byu.net>
42497
42498         standards.texi: include correct file for FDL 1.3
42499         * doc/standards.texi (GNU Free Documentation License): Change
42500         include file to pull in FDL 1.3, not 1.2.
42501
42502         fdl.texi: revert accidental change to license
42503         * doc/fdl.texi: This is FDL 1.2, not 1.3.
42504
42505 2008-11-10  Bruno Haible  <bruno@clisp.org>
42506
42507         * m4/printf.m4 (gl_PRINTF_ENOMEM): Guess yes on Haiku. Use the
42508         cross-compiling guesses also when the native compile gives no result.
42509
42510 2008-11-10  Bruno Haible  <bruno@clisp.org>
42511
42512         * lib/spawni.c (__spawni): Force variable into the stack.
42513
42514 2008-11-10  Bruno Haible  <bruno@clisp.org>
42515
42516         Add support for Haiku.
42517         * lib/fbufmode.c (fbufmode): Test a symbol that is not only defined on
42518         glibc and BeOS, but also on Haiku.
42519         * lib/fpurge.c (fpurge): Likewise.
42520         * lib/freadable.c (freadable): Likewise.
42521         * lib/freadahead.c (freadahead): Likewise.
42522         * lib/freading.c (freading): Likewise.
42523         * lib/freadptr.c (freadptr): Likewise.
42524         * lib/freadseek.c (freadptrinc): Likewise.
42525         * lib/fseeko.c (rpl_fseeko): Likewise.
42526         * lib/fseterr.c (fseterr): Likewise.
42527         * lib/fwritable.c (fwritable): Likewise.
42528         * lib/fwriting.c (fwriting): Likewise.
42529         Reported by Ingo Weinhold <ingo_weinhold@gmx.de>.
42530
42531 2008-11-10  Ingo Weinhold  <ingo_weinhold@gmx.de>
42532
42533         * lib/config.charset: Treat Haiku like BeOS.
42534
42535 2008-11-10  Ingo Weinhold  <ingo_weinhold@gmx.de>
42536
42537         * lib/binary-io.h (O_BINARY, O_TEXT): Treat Haiku like BeOS.
42538         * lib/fcntl.in.h (O_BINARY, O_TEXT): Likewise.
42539
42540 2008-11-08  Bruno Haible  <bruno@clisp.org>
42541
42542         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Avoid using AC_CHECK_DECL inside
42543         AC_CACHE_CHECK.
42544
42545 2008-11-08  Bruno Haible  <bruno@clisp.org>
42546
42547         * modules/select-tests (configure.ac): Check for unistd.h, sys/wait.h.
42548
42549 2008-11-08  Bruno Haible  <bruno@clisp.org>
42550
42551         * tests/test-select-fd.c: New file.
42552         * tests/test-select-in.sh: New file.
42553         * tests/test-select-out.sh: New file.
42554         * tests/test-select-stdin.c: New file.
42555         * modules/select-tests (Files): Add the new files.
42556         (Depends-on): Add gettimeofday.
42557         (Makefile.am): Add test-select-in.sh, test-select-out.sh to TESTS.
42558         Set TESTS_ENVIRONMENT. Add test-select-fd, test-select-stdin to
42559         check_PROGRAMS. Define test_select_fd_LDADD, test_select_stdin_LDADD.
42560
42561 2008-11-06  Alexander V. Lukyanov  <lav@netis.ru>
42562             Bruno Haible  <bruno@clisp.org>
42563
42564         * lib/sys_stat.in.h: Enclose function definitions in extern "C".
42565
42566 2008-10-12  Giuseppe Scrivano  <gscrivano@gnu.org>
42567
42568         * build-aux/pmccabe2html: Added support for C++ source files.
42569
42570 2008-11-05  Ben Pfaff  <blp@gnu.org>
42571
42572         Fix lib/close.c build on Windows.
42573         * modules/close (Files): Add lib/w32sock.h.
42574
42575 2008-11-05  Joel E. Denny  <jdenny@ces.clemson.edu>
42576
42577         Accept Bison's NEWS format.
42578         * build-aux/announce-gen (print_news_deltas): Tweak
42579         $re_prefix.
42580
42581 2008-11-04  Bruno Haible  <bruno@clisp.org>
42582
42583         * modules/random_r (Maintainer): Add glibc.
42584
42585 2008-11-04  Simon Josefsson  <simon@josefsson.org>
42586
42587         * doc/alloca-opt.texi: Change license to GFDLv1.3+, as suggested
42588         by karl@freefriends.org (Karl Berry).
42589         * doc/alloca.texi: Likewise.
42590         * doc/c-ctype.texi: Likewise.
42591         * doc/c-strcase.texi: Likewise.
42592         * doc/c-strcaseeq.texi: Likewise.
42593         * doc/c-strcasestr.texi: Likewise.
42594         * doc/c-strstr.texi: Likewise.
42595         * doc/c-strtod.texi: Likewise.
42596         * doc/c-strtold.texi: Likewise.
42597         * doc/ctime.texi: Likewise.
42598         * doc/error.texi: Likewise.
42599         * doc/fdl.texi: Likewise.
42600         * doc/gcd.texi: Likewise.
42601         * doc/getdate.texi: Likewise.
42602         * doc/gnulib-intro.texi: Likewise.
42603         * doc/gnulib-tool.texi: Likewise.
42604         * doc/gnulib.texi: Likewise.
42605         * doc/inet_ntoa.texi: Likewise.
42606         * doc/maintain.texi: Likewise.
42607         * doc/make-stds.texi: Likewise.
42608         * doc/quote.texi: Likewise.
42609         * doc/regexprops-generic.texi: Likewise.
42610         * doc/standards.texi: Likewise.
42611         * doc/verify.texi: Likewise.
42612         * doc/visibility.texi: Likewise.
42613         * doc/gnulib.texi (GNU Free Documentation License): Include
42614         fdl-1.3.texi instead of fdl.texi.
42615
42616 2008-11-04  Simon Josefsson  <simon@josefsson.org>
42617
42618         * doc/fdl-1.3.texi: New file, from
42619         <http://www.gnu.org/licenses/fdl-1.3.texi>.
42620         * modules/fdl-1.3: Add.
42621         * MODULES.html.sh: Add fdl-1.3.
42622
42623 2008-11-03  Bruno Haible  <bruno@clisp.org>
42624
42625         Make determination of absolute name of header file work with AIX xlc.
42626         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Require
42627         AC_CANONICAL_HOST. On AIX, use "$CPP -C" rather than "$CPP" for
42628         preprocessing.
42629         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
42630         Reported by Gary V. Vaughan <gary@thewrittenword.com>.
42631
42632 2008-11-03  Simon Josefsson  <simon@josefsson.org>
42633
42634         * top/maint.mk (COVERAGE_CCOPTS): Use --coverage instead of
42635         -fprofile-arcs -ftest-coverage.  Suggested by Ludovic Courtès
42636         <ludo@gnu.org>.
42637
42638 2008-11-02  Bruno Haible  <bruno@clisp.org>
42639
42640         Mark 'strpbrk' obsolete.
42641         * modules/strpbrk (Status, Notice): New sections.
42642         * modules/strtok_r (Depends-on): Add strpbrk.
42643
42644 2008-11-02  Bruno Haible  <bruno@clisp.org>
42645
42646         Mark 'strdup' obsolete.
42647         * modules/strdup (Status, Notice): New sections.
42648         * modules/findprog (Depends-on): Add strdup.
42649         * modules/getaddrinfo (Depends-on): Likewise.
42650         * modules/localename (Depends-on): Likewise.
42651         * modules/relocatable-lib (Depends-on): Likewise.
42652         * modules/relocatable-lib-lgpl (Depends-on): Likewise.
42653         * modules/relocatable-prog (Depends-on): Likewise.
42654         * modules/trim (Depends-on): Likewise.
42655         * modules/unictype/gen-ctype (Depends-on): Likewise.
42656         * modules/unilbrk/gen-lbrk (Depends-on): Likewise.
42657
42658 2008-11-02  Bruno Haible  <bruno@clisp.org>
42659
42660         Mark 'strcspn' obsolete.
42661         * modules/strcspn (Status, Notice): New sections.
42662
42663 2008-11-02  Bruno Haible  <bruno@clisp.org>
42664
42665         Mark 'rmdir' obsolete.
42666         * modules/rmdir (Status, Notice): New sections.
42667         * modules/clean-temp (Depends-on): Add rmdir.
42668         * modules/openat (Depends-on): Likewise.
42669
42670 2008-11-02  Bruno Haible  <bruno@clisp.org>
42671
42672         Mark 'raise' obsolete.
42673         * modules/raise (Status, Notice): New sections.
42674         (Include): Specify <signal.h>.
42675         * modules/stdio (Depends-on): Add raise.
42676         * modules/write (Depends-on): Likewise.
42677
42678 2008-11-02  Bruno Haible  <bruno@clisp.org>
42679
42680         Mark 'memset' obsolete.
42681         * modules/memset (Status, Notice): New sections.
42682
42683 2008-11-02  Bruno Haible  <bruno@clisp.org>
42684
42685         Mark 'memmove' obsolete.
42686         * modules/memmove (Status, Notice): New sections.
42687         * modules/argp (Depends-on): Add memmove.
42688         * modules/argz (Depends-on): Likewise.
42689         * modules/canonicalize (Depends-on): Likewise.
42690         * modules/canonicalize-lgpl (Depends-on): Likewise.
42691         * modules/fts (Depends-on): Likewise.
42692         * modules/getcwd (Depends-on): Likewise.
42693         * modules/human (Depends-on): Likewise.
42694         * modules/regex (Depends-on): Likewise.
42695         * modules/striconveh (Depends-on): Likewise.
42696         * modules/trim (Depends-on): Likewise.
42697         * modules/unistr/u8-move (Depends-on): Likewise.
42698         * modules/unistr/u16-move (Depends-on): Likewise.
42699         * modules/unistr/u32-move (Depends-on): Likewise.
42700
42701 2008-11-02  Bruno Haible  <bruno@clisp.org>
42702
42703         Mark 'memcpy' obsolete.
42704         * modules/memcpy (Status, Notice): New sections.
42705
42706 2008-11-02  Bruno Haible  <bruno@clisp.org>
42707
42708         Mark 'memcmp' obsolete.
42709         * modules/memcmp (Status, Notice): New sections.
42710         * modules/argmatch (Depends-on): Add memchr.
42711         * modules/backupfile (Depends-on): Likewise.
42712         * modules/c-strcasestr (Depends-on): Likewise.
42713         * modules/crypto/des (Depends-on): Likewise.
42714         * modules/csharpcomp (Depends-on): Likewise.
42715         * modules/fnmatch (Depends-on): Likewise.
42716         * modules/git-merge-changelog (Depends-on): Likewise.
42717         * modules/isnand (Depends-on): Likewise.
42718         * modules/isnand-nolibm (Depends-on): Likewise.
42719         * modules/isnanf (Depends-on): Likewise.
42720         * modules/isnanf-nolibm (Depends-on): Likewise.
42721         * modules/isnanl (Depends-on): Likewise.
42722         * modules/isnanl-nolibm (Depends-on): Likewise.
42723         * modules/mbchar (Depends-on): Likewise.
42724         * modules/memcoll (Depends-on): Likewise.
42725         * modules/quotearg (Depends-on): Likewise.
42726         * modules/regex (Depends-on): Likewise.
42727         * modules/relocatable-prog (Depends-on): Likewise.
42728         * modules/same (Depends-on): Likewise.
42729         * modules/signbit (Depends-on): Likewise.
42730         * modules/strcasestr-simple (Depends-on): Likewise.
42731         * modules/unictype/gen-ctype (Depends-on): Likewise.
42732         * modules/unilbrk/gen-lbrk (Depends-on): Likewise.
42733         * modules/uniname/uniname (Depends-on): Likewise.
42734         * modules/unistr/u8-cmp (Depends-on): Likewise.
42735
42736 2008-11-02  Bruno Haible  <bruno@clisp.org>
42737
42738         Mark 'memchr' obsolete.
42739         * modules/memchr (Status, Notice): New sections.
42740         * modules/argp (Depends-on): Add memchr.
42741         * modules/base64 (Depends-on): Likewise.
42742         * modules/c-strcasestr (Depends-on): Likewise.
42743         * modules/chdir-long (Depends-on): Likewise.
42744         * modules/fnmatch (Depends-on): Likewise.
42745         * modules/getsubopt (Depends-on): Likewise.
42746         * modules/git-merge-changelog (Depends-on): Likewise.
42747         * modules/glob (Depends-on): Likewise.
42748         * modules/strcasestr-simple (Depends-on): Likewise.
42749         * modules/strnlen (Depends-on): Likewise.
42750
42751 2008-11-02  Bruno Haible  <bruno@clisp.org>
42752
42753         Mark 'atexit' obsolete.
42754         * modules/atexit (Status, Notice): New sections.
42755         * modules/chdir-long (Depends-on): Add atexit.
42756         * modules/wait-process (Depends-on): Likewise.
42757
42758 2008-11-02  Bruno Haible  <bruno@clisp.org>
42759
42760         * gnulib-tool: New option --with-obsolete.
42761         (func_usage): Document it.
42762         (func_modules_transitive_closure): Drop obsolete dependencies if
42763         incobsolete is not true.
42764         (func_import): Read and save the incobsolete variable to the cache.
42765
42766 2008-11-02  Bruno Haible  <bruno@clisp.org>
42767
42768         * modules/TEMPLATE-EXTENDED: New field 'Status'.
42769         * gnulib-tool: New option --extract-status.
42770         (func_usage): Document it.
42771         (sed_extract_prog): Recognize it.
42772         (func_get_status): New function.
42773
42774 2008-10-30  Simon Josefsson  <simon@josefsson.org>
42775
42776         * modules/sockets (License): Change from LGPL to LGPLv2+.
42777
42778 2008-10-28  Simon Josefsson  <simon@josefsson.org>
42779
42780         * top/maint.mk: Add coverage rules, inspired by scripts in gnupdf.
42781
42782 2008-10-28  Simon Josefsson  <simon@josefsson.org>
42783
42784         * MODULES.html.sh (Support for systems lacking POSIX:2001):
42785         Mention times and sys_times.
42786         * modules/sys_times, modules/sys_times-tests: New modules.
42787         * modules/times, modules/times-tests: Likewise
42788         * m4/sys_times_h.m4: New file.
42789         * lib/sys_times.in.h: Likewise
42790         * lib/times.c: Likewise.
42791         * tests/test-sys_times.c: Likewise.
42792         * tests/test-times.c: Likewise.
42793         * doc/posix-headers/sys_times.texi: Update.
42794         * doc/posix-functions/times.texi: Update.
42795
42796 2008-10-28  Jim Meyering  <meyering@redhat.com>
42797
42798         * modules/tempname (Depends-on): Add lstat.
42799
42800         * modules/lstat (License): Relicense: LGPL -> LGPLv2+.
42801
42802 2008-10-28  Simon Josefsson  <simon@josefsson.org>
42803
42804         * gnulib-tool (func_emit_tests_Makefile_am): Revert last commit.
42805         * modules/argp-tests (test_argp_LDADD): Set EXEEXT here instead,
42806         using idiom used elsewhere in gnulib.
42807
42808 2008-10-27  Jim Meyering  <meyering@redhat.com>
42809
42810         * modules/gethostname (License): Relicense: LGPL -> LGPLv2+.
42811
42812 2008-10-27  Simon Josefsson  <simon@josefsson.org>
42813
42814         * gnulib-tool (func_emit_tests_Makefile_am): Set EXEEXT in
42815         TESTS_ENVIRONMENT, for shell scripts that needs to call built
42816         programs.
42817         * tests/test-argp-2.sh: Use $EXEEXT when needed.
42818
42819 2008-10-27  Simon Josefsson  <simon@josefsson.org>
42820
42821         * lib/sys_stat.in.h (lstat): Fix declaration for mingw.
42822
42823 2008-10-27  Bruno Haible  <bruno@clisp.org>
42824
42825         * tests/test-lstat.c: Include <stdio.h>.
42826
42827 2008-10-27  Simon Josefsson  <simon@josefsson.org>
42828
42829         * modules/lstat-tests: New module.
42830         * tests/test-lstat.c: New file.
42831
42832 2008-10-26  Jim Meyering  <meyering@redhat.com>
42833
42834         * lib/mkdir.c (rpl_mkdir) [_WIN32...]: Mark mode as an unused parameter.
42835
42836 2008-10-26  Simon Josefsson  <simon@josefsson.org>
42837             Bruno Haible  <bruno@clisp.org>
42838
42839         Fix a clash between the type DATADIR on Windows and the macro DATADIR.
42840         * modules/configmake (Include): Add a note that the include must come
42841         after all system headers.
42842         * lib/javaversion.c: Include configmake.h after all other includes.
42843
42844 2008-10-26  Bruno Haible  <bruno@clisp.org>
42845
42846         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Set default of
42847         HAVE_STRUCT_RANDOM_DATA to 1.
42848         (gl_STDLIB_H): Simplify.
42849
42850 2008-10-26  Simon Josefsson  <simon@josefsson.org>
42851
42852         * m4/stdlib_h.m4: Check for struct random_data.  Initialize and
42853         substitute HAVE_STRUCT_RANDOM_DATA.
42854         * lib/stdlib.in.h [!HAVE_STRUCT_RANDOM_DATA]: Provide struct
42855         random_data.
42856         * modules/stdlib (Makefile.am): Substitute
42857         HAVE_STRUCT_RANDOM_DATA.
42858
42859 2008-10-26  Simon Josefsson  <simon@josefsson.org>
42860
42861         * doc/gnulib.texi (@copying): Use GFDLv1.2+.
42862         * doc/gnulib-intro.texi (Copyright): Likewise.
42863
42864 2008-10-26  Simon Josefsson  <simon@josefsson.org>
42865
42866         * doc/gnulib.texi (Header files): C++ fixes, based on Bruno's
42867         findings.
42868
42869 2008-10-25  Ben Pfaff  <blp@cs.stanford.edu>
42870             Bruno Haible  <bruno@clisp.org>
42871
42872         * lib/unistd.in.h: Include <winsock2.h>.
42873         (socket, connect,accept, bind, getpeername, getsockname, getsockopt,
42874         listen, recv, send, recvfrom, sendto, setsockopt, shutdown, select):
42875         Provide dummy declarations.
42876         (gethostname): Override.
42877         * lib/sys_socket.in.h (gethostname): Provide dummy declaration.
42878         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Invoke
42879         gl_PREREQ_SYS_H_WINSOCK2.
42880         * modules/gethostname (Files): Add m4/sys_socket_h.m4.
42881         * doc/posix-functions/gethostname.texi: More details.
42882
42883 2008-10-25  Bruno Haible  <bruno@clisp.org>
42884
42885         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Require
42886         gl_UNISTD_H_DEFAULTS, gl_SYS_IOCTL_H_DEFAULTS only if they exist.
42887         * modules/sys_socket (Files): Remove m4/unistd_h.m4, m4/sys_ioctl_h.m4.
42888
42889         * lib/sys_socket.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET); Move macro from
42890         here ...
42891         * lib/unistd.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET); ... to here.
42892         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Remove invocation of
42893         gl_UNISTD_H_DEFAULTS.
42894
42895 2008-10-25  Eric Blake  <ebb9@byu.net>
42896
42897         signbit: avoid spurious compiler failure
42898         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Move non-constant
42899         declarations inside function.
42900
42901 2008-10-24  Simon Josefsson  <simon@josefsson.org>
42902             Bruno Haible  <bruno@clisp.org>
42903
42904         * lib/stdlib.in.h (@GNULIB_RANDOM_R@): Include stdint.h.
42905         * modules/random_r (Depends-on): Add stdint.
42906
42907 2008-10-24  Bruno Haible  <bruno@clisp.org>
42908
42909         * modules/intprops (License): Change to LGPLv2+, with approval by Paul
42910         Eggert.
42911         * modules/strerror (License): Likewise.
42912
42913 2008-10-24  Jim Meyering  <meyering@redhat.com>
42914
42915         sys_socket: fix typo that inhibited expansion of @GNULIB_SEND@
42916         * modules/sys_socket (Depends-on) [Depends-on]: Fix typo.
42917
42918 2008-10-24  Eric Blake  <ebb9@byu.net>
42919
42920         getgroups: fix compilation when getgroups is available
42921         * lib/getgroups.c (includes): Include <unistd.h> for getgroups,
42922         but with <config.h> override of getgroups disabled.
42923
42924 2008-10-24  Simon Josefsson  <simon@josefsson.org>
42925
42926         * doc/gnulib.texi (Header files): Add note about C++ problems.
42927         Explained by Bruno Haible <bruno@clisp.org>.
42928
42929 2008-10-23  Bruno Haible  <bruno@clisp.org>
42930
42931         Define a dummy SA_NODEFER macro on Interix.
42932         * lib/signal.in.h (SA_NODEFER): Define fallback.
42933         Reported by Aleksey Cheusov <cheusov@tut.by> via
42934         Thomas Klausner <wiz@netbsd.org> and Eric Blake.
42935
42936 2008-10-23  Bruno Haible  <bruno@clisp.org>
42937
42938         * modules/freadahead (License): Change to LGPLv2+.
42939         Suggested by Simon Josefsson.
42940
42941 2008-10-23  Jim Meyering  <meyering@redhat.com>
42942
42943         random_r: new module
42944         * modules/random_r: New file.
42945         * m4/random_r.m4: New file.
42946         * lib/random_r.c: New file, from glibc.
42947         * modules/random_r-tests: New file.
42948         * tests/test-random_r.c: New file.
42949         * lib/stdlib.in.h (srandom_r, initstate_r, setstate_r, random_r):
42950          Declare.
42951         (RAND_MAX): Define.
42952         * m4/stdlib_h.m4: Define and AC_SUBST GNULIB_RANDOM_R and HAVE_RANDOM_R.
42953         * modules/stdlib: Substitute them, too.
42954         * MODULES.html.sh (Extra functions based on POSIX:2001) [Misc]: Add it.
42955         * doc/glibc-functions/initstate_r.texi: Mention the new module.
42956         * doc/glibc-functions/random_r.texi: Likewise.
42957         * doc/glibc-functions/setstate_r.texi: Likewise.
42958         * doc/glibc-functions/srandom_r.texi: Likewise.
42959         * config/srclist.txt: Mention it.
42960
42961 2008-10-23  David Lutterkort  <lutter@redhat.com>
42962
42963         * modules/selinux-h: Search for LIB_SELINUX and mark it as a
42964         link requirement
42965
42966 2008-10-23  Jim Meyering  <meyering@redhat.com>
42967
42968         selinux-h: mark parameters of stub functions as intentionally unused
42969         * lib/se-selinux.in.h: Mark parameters as _UNUSED_PARAMETER_.
42970         * lib/se-context.in.h: Likewise.
42971
42972 2008-10-22  Simon Josefsson  <simon@josefsson.org>
42973
42974         * lib/sys_socket.in.h (FD_ISSET): Fix warnings under mingw.
42975
42976 2008-10-22  Simon Josefsson  <simon@josefsson.org>
42977
42978         * m4/getgroups.m4: Avoid invoking test with wrong parameters.
42979
42980 2008-10-22  Eric Blake  <ebb9@byu.net>
42981
42982         glthread/thread: avoid compiler warning
42983         * lib/glthread/thread.c (gl_thread_exit_func) [USE_WIN32_THREADS]:
42984         Add unreachable abort to silence compiler.
42985
42986 2008-10-22  Eric Blake  <ebb9@byu.net>
42987
42988         netdb: also supply struct addrinfo for cygwin 1.5.x
42989         * m4/netdb_h.m4 (gl_HEADER_NETDB): Check for incomplete header on
42990         older cygwin.
42991         * lib/netdb.in.h [!HAVE_STRUCT_ADDRINFO]: Also supply contents for
42992         cygwin.
42993         * doc/posix-headers/netdb.texi (netdb.h): Document this.
42994
42995 2008-10-22  Bruno Haible  <bruno@clisp.org>
42996
42997         * users.txt: Update entry about pspp.
42998
42999 2008-10-21  Bruno Haible  <bruno@clisp.org>
43000
43001         Simplification.
43002         * lib/sys_socket.in.h (_gl_close_fd_maybe_socket): Remove declaration.
43003         * lib/close.c (_gl_close_fd_maybe_socket): Make static.
43004
43005         Simplification.
43006         * lib/ioctl.c (ioctl): Don't undefine.
43007         * lib/socket.c (socket): Don't undefine.
43008
43009         Remove unused module indicator macros.
43010         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Don't define
43011         GNULIB_$1 as a C macro.
43012
43013         * doc/posix-functions/close.texi: Undo last change.
43014         * doc/posix-functions/ioctl.texi: Merge the two paragraphs about
43015         Windows platforms.
43016
43017 2008-10-21  Bruno Haible  <bruno@clisp.org>
43018
43019         Add gethostname() declaration to <unistd.h>.
43020         * lib/unistd.in.h (gethostname): New declaration.
43021         * lib/gethostname.c: Include <unistd.h>.
43022         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Require
43023         gl_UNISTD_H_DEFAULTS. Set HAVE_GETHOSTNAME.
43024         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETHOSTNAME
43025         and HAVE_GETHOSTNAME.
43026         * modules/gethostname (Depends-on): Add unistd.
43027         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
43028         (Include): Specify <unistd.h>.
43029         * modules/unistd (Makefile.am): Substitute GNULIB_GETHOSTNAME and
43030         HAVE_GETHOSTNAME.
43031         * tests/test-gethostname.c: Include <unistd.h> first.
43032
43033 2008-10-21  Bruno Haible  <bruno@clisp.org>
43034
43035         * modules/poll-tests (Depends-on): Add sys_ioctl, ioctl.
43036         * modules/select-tests (Depends-on): Likewise.
43037         Reported by Simon Josefsson.
43038
43039 2008-10-21  Simon Josefsson  <simon@josefsson.org>
43040
43041         * lib/close.c: Add _gl_close_fd_maybe_socket from winsock.c.
43042         * lib/accept.c: New file, based on winsock.c.
43043         * lib/bind.c: New file, based on winsock.c.
43044         * lib/connect.c: New file, based on winsock.c.
43045         * lib/getpeername.c: New file, based on winsock.c.
43046         * lib/getsockname.c: New file, based on winsock.c.
43047         * lib/getsockopt.c: New file, based on winsock.c.
43048         * lib/ioctl.c: New file, based on winsock.c.
43049         * lib/listen.c: New file, based on winsock.c.
43050         * lib/recv.c: New file, based on winsock.c.
43051         * lib/recvfrom.c: New file, based on winsock.c.
43052         * lib/send.c: New file, based on winsock.c.
43053         * lib/sendto.c: New file, based on winsock.c.
43054         * lib/setsockopt.c: New file, based on winsock.c.
43055         * lib/shutdown.c: New file, based on winsock.c.
43056         * lib/socket.c: New file, based on winsock.c.
43057         * lib/w32sock.h: New file, based on winsock.c.
43058         * lib/winsock.c: Remove file.
43059         * modules/accept: Likewise.
43060         * modules/bind: Likewise.
43061         * modules/connect: Likewise.
43062         * modules/getpeername: Likewise.
43063         * modules/getsockname: Likewise.
43064         * modules/getsockopt: Likewise.
43065         * modules/ioctl: Likewise.
43066         * modules/listen: Likewise.
43067         * modules/recv: Likewise.
43068         * modules/recvfrom: Likewise.
43069         * modules/send: Likewise.
43070         * modules/sendto: Likewise.
43071         * modules/setsockopt: Likewise.
43072         * modules/shutdown: Likewise.
43073         * modules/socket: Use socket.c instead of winsock.c.
43074         * modules/sys_socket: Remove (unneeded?) dependency on winsock.c.
43075         * doc/posix-functions/accept.texi: Doc fix.
43076         * doc/posix-functions/bind.texi: Doc fix.
43077         * doc/posix-functions/close.texi: Doc fix.
43078         * doc/posix-functions/connect.texi: Doc fix.
43079         * doc/posix-functions/getpeername.texi: Doc fix.
43080         * doc/posix-functions/getsockname.texi: Doc fix.
43081         * doc/posix-functions/getsockopt.texi: Doc fix.
43082         * doc/posix-functions/ioctl.texi: Doc fix.
43083         * doc/posix-functions/listen.texi: Doc fix.
43084         * doc/posix-functions/recv.texi: Doc fix.
43085         * doc/posix-functions/recvfrom.texi: Doc fix.
43086         * doc/posix-functions/send.texi: Doc fix.
43087         * doc/posix-functions/sendto.texi: Doc fix.
43088         * doc/posix-functions/setsockopt.texi: Doc fix.
43089         * doc/posix-functions/shutdown.texi: Doc fix.
43090         * doc/posix-functions/socket.texi: Doc fix.
43091
43092 2008-10-20  Bruno Haible  <bruno@clisp.org>
43093
43094         Take into account the role of SIGABRT_COMPAT on Windows 2008.
43095         * lib/sigprocmask.c (SIGABRT_COMPAT, SIGABRT_COMPAT_MASK): New macros.
43096         (sigismember, sigaddset, sigdelset, sigfillset, rpl_signal): Handle it
43097         as an alias for SIGABRT.
43098         * lib/sigaction.c (SIGABRT_COMPAT): New macro.
43099         (sigaction): Map it to SIGABRT.
43100         Reported by Ramiro Polla <ramiro.polla@gmail.com> via Eric Blake.
43101
43102 2008-10-20  Bruno Haible  <bruno@clisp.org>
43103
43104         * lib/fts.c: Don't include lstat.h.
43105         * lib/openat.c: Include <sys/stat.h> instead of lstat.h.
43106
43107         Move the lstat() declaration to <sys/stat.h>.
43108         * lib/lstat.h: Remove file.
43109         * lib/sys_stat.in.h: Add special invocation convention.
43110         (lstat): New declaration.
43111         * lib/lstat.c (orig_lstat): New function.
43112         (rpl_lstat): Use orig_lstat instead of lstat.
43113         * m4/lstat.m4 (gl_FUNC_LSTAT): Require gl_SYS_STAT_H_DEFAULTS and
43114         AC_C_INLINE. Set REPLACE_LSTAT.
43115         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_LSTAT
43116         and REPLACE_LSTAT.
43117         * modules/lstat (Files): Remove lib/lstat.h.
43118         (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR.
43119         (Include): Specify <sys/stat.h> instead of lstat.h.
43120         * modules/sys_stat (Makefile.am): Substitute GNULIB_LSTAT and
43121         REPLACE_LSTAT.
43122         * NEWS: Mention the change.
43123
43124 2008-10-20  Bruno Haible  <bruno@clisp.org>
43125
43126         * modules/posix_spawn-tests: New file.
43127         * tests/test-posix_spawn3.c: New file.
43128
43129 2008-10-20  Bruno Haible  <bruno@clisp.org>
43130
43131         * modules/posix_spawnp-tests (Depends-on): Add sys_wait.
43132         * tests/test-posix_spawn1.c (WTERMSIG, WCOREDUMP, WEXITSTATUS,
43133         WIFSIGNALED, WIFEXITED, WIFSTOPPED): Remove fallback definitions.
43134         * tests/test-posix_spawn2.c (WTERMSIG, WCOREDUMP, WEXITSTATUS,
43135         WIFSIGNALED, WIFEXITED, WIFSTOPPED): Likewise.
43136
43137 2008-10-20  Bruno Haible  <bruno@clisp.org>
43138
43139         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Test against another bug
43140         of posix_spawn on AIX 5.3.
43141
43142 2008-10-20  Bruno Haible  <bruno@clisp.org>
43143
43144         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Make the check on MacOS X.
43145
43146 2008-10-20  Bruno Haible  <bruno@clisp.org>
43147
43148         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Use AC_LANG_SOURCE instead
43149         of AC_LANG_PROGRAM.
43150
43151 2008-10-20  Simon Josefsson  <simon@josefsson.org>
43152
43153         * lib/netdb.in.h: Don't define GNU specific constants until they
43154         are supported or needed.  Reported by Bruno Haible
43155         <bruno@clisp.org>.
43156
43157 2008-10-20  Simon Josefsson  <simon@josefsson.org>
43158
43159         * lib/canon-host.c: Include netdb.h instead of getaddrinfo.h.
43160
43161 2008-10-20  Simon Josefsson  <simon@josefsson.org>
43162
43163         * lib/getaddrinfo.h: Remove file.
43164         * modules/getaddrinfo: Reflect move from getaddrinfo.h to netdb.h.
43165         * m4/getaddrinfo.m4: Call gl_HEADER_NETDB.  Don't check for netdb.h.
43166         * lib/netdb.in.h: Add declarations from getaddrinfo.h.
43167         * m4/netdb_h.m4: Initialize GNULIB_GETADDRINFO to 0.
43168         * modules/netdb: Substitute GNULIB_GETADDRINFO.
43169         * lib/getaddrinfo.c: Include netdb.h instead of getaddrinfo.h.
43170         * tests/test-getaddrinfo.c: Likewise.
43171         * lib/gai_strerror.c: Likewise.  Also drop HAVE_NETDB_H check.
43172         * NEWS: Mention change.
43173
43174 2008-10-19  Bruno Haible  <bruno@clisp.org>
43175
43176         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Remove unneeded code.
43177
43178 2008-10-19  Bruno Haible  <bruno@clisp.org>
43179
43180         * lib/wait-process.c: Include simply <sys/wait.h>.
43181         (waitpid, WTERMSIG, WCOREDUMP, WEXITSTATUS, WIFSIGNALED, WIFEXITED,
43182         WIFSTOPPED): Remove fallback definitions.
43183         * modules/wait-process (Depends-on): Add sys_wait.
43184
43185         New module 'sys_wait'.
43186         * modules/sys_wait: New file.
43187         * lib/sys_wait.in.h: New file, partially copied from
43188         lib/wait-process.c.
43189         * m4/sys_wait_h.m4: New file.
43190         * doc/posix-headers/sys_wait.texi: Mention the new module.
43191
43192 2008-10-19  Bruno Haible  <bruno@clisp.org>
43193
43194         * m4/wait-process.m4 (gl_WAIT_PROCESS): Remove test for unistd.h.
43195
43196 2008-10-19  Bruno Haible  <bruno@clisp.org>
43197
43198         Assume that waitpid() fills an 'int' status, not a 'union wait'.
43199         * lib/wait-process.c (WAIT_T): Remove type.
43200         (WTERMSIG, WCOREDUMP, WEXITSTATUS): Define fallbacks using bit masks.
43201         (wait_subprocess): Update.
43202
43203 2008-10-19  Bruno Haible  <bruno@clisp.org>
43204
43205         New module 'atoll'.
43206         * modules/atoll: New file.
43207         * lib/stdlib.in.h (atoll): New declaration.
43208         * lib/atoll.c: New file, from glibc with modifications.
43209         * m4/atoll.m4: New file.
43210         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_ATOLL,
43211         HAVE_ATOLL.
43212         * modules/stdlib (Makefile.am): Substitute GNULIB_ATOLL, HAVE_ATOLL.
43213         * doc/posix-functions/atoll.texi: Mention the new module.
43214
43215 2008-10-19  Bruno Haible  <bruno@clisp.org>
43216
43217         Add strtoull() declaration to <stdlib.h>.
43218         * lib/stdlib.in.h (strtoull): New declaration.
43219         * m4/strtoull.m4 (gl_FUNC_STRTOLL): Require gl_STDLIB_H_DEFAULTS.
43220         Set HAVE_STRTOULL.
43221         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_STRTOULL,
43222         HAVE_STRTOULL.
43223         * modules/strtoull (Depends-on): Add stdlib.
43224         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
43225         * modules/stdlib (Makefile.am): Substitute GNULIB_STRTOULL,
43226         HAVE_STRTOULL.
43227
43228 2008-10-19  Bruno Haible  <bruno@clisp.org>
43229
43230         Add strtoll() declaration to <stdlib.h>.
43231         * lib/stdlib.in.h (strtoll): New declaration.
43232         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Require gl_STDLIB_H_DEFAULTS.
43233         Set HAVE_STRTOLL.
43234         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_STRTOLL,
43235         HAVE_STRTOLL.
43236         * modules/strtoll (Depends-on): Add stdlib.
43237         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
43238         * modules/stdlib (Makefile.am): Substitute GNULIB_STRTOLL, HAVE_STRTOLL.
43239
43240 2008-10-19  Bruno Haible  <bruno@clisp.org>
43241
43242         * modules/bcopy (Depends-on): Add strings.
43243         (Include): Specify <strings.h>.
43244
43245 2008-10-19  Bruno Haible  <bruno@clisp.org>
43246
43247         * doc/posix-functions/atexit.texi: Update doc regarding mingw.
43248
43249 2008-10-19  Bruno Haible  <bruno@clisp.org>
43250
43251         * lib/openat-die.c (openat_save_fail, openat_restore_fail): Rename
43252         the parameter from 'errno' to 'errnum'. Fixes a compilation error on
43253         mingw.
43254
43255 2008-10-19  Bruno Haible  <bruno@clisp.org>
43256
43257         * lib/atanl.c: Don't include isnanl.h.
43258         * lib/cosl.c: Likewise.
43259         * lib/ldexpl.c: Likewise.
43260         * lib/logl.c: Likewise.
43261         * lib/sinl.c: Likewise.
43262         * lib/sqrtl.c: Likewise.
43263         * lib/tanl.c: Likewise.
43264
43265         Move the isnanf(), isnand(), isnanl() declarations to <math.h>.
43266         * lib/isnanf.h: Remove file.
43267         * lib/isnand.h: Remove file.
43268         * lib/isnanl.h: Remove file.
43269         * lib/math.in.h: Include the contents of lib/isnanf.h, lib/isnand.h,
43270         lib/isnanl.h. Use HAVE_ISNANF, HAVE_ISNAND, HAVE_ISNANL as substituted
43271         macros.
43272         * m4/isnanf.m4 (gl_FUNC_ISNANF): Require gl_MATH_H_DEFAULTS. Set
43273         HAVE_ISNANF, don't define it as a C macro.
43274         * m4/isnand.m4 (gl_FUNC_ISNAND): Require gl_MATH_H_DEFAULTS. Set
43275         HAVE_ISNAND, don't define it as a C macro.
43276         * m4/isnanl.m4 (gl_FUNC_ISNANL): Require gl_MATH_H_DEFAULTS. Set
43277         HAVE_ISNANL, don't define it as a C macro.
43278         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_ISNAN[FDL] and
43279         HAVE_ISNAN[FDL].
43280         * modules/isnanf (Files): Remove lib/isnanf.h.
43281         (Depends-on): Add math.
43282         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
43283         (Include): Specify <math.h> instead of isnanf.h.
43284         * modules/isnand (Files): Remove lib/isnand.h.
43285         (Depends-on): Add math.
43286         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
43287         (Include): Specify <math.h> instead of isnand.h.
43288         * modules/isnanl (Files): Remove lib/isnanl.h.
43289         (Depends-on): Add math.
43290         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
43291         (Include): Specify <math.h> instead of isnanl.h.
43292         * modules/math (Makefile.am): Substitute GNULIB_ISNAN[FDL] and
43293         HAVE_ISNAN[FDL].
43294         * tests/test-isnanf.c: Include <math.h> instead of isnanf.h.
43295         * tests/test-isnand.c: Include <math.h> instead of isnand.h.
43296         * tests/test-isnanl.c: Include <math.h> instead of isnanl.h.
43297         * NEWS: Mention the change.
43298
43299 2008-10-18  Bruno Haible  <bruno@clisp.org>
43300
43301         Add getusershell(), setusershell(), endusershell() declarations to
43302         <unistd.h>.
43303         * lib/unistd.in.h (getusershell, setusershell, endusershell): New
43304         declarations.
43305         * lib/getusershell.c: Include unistd.h.
43306         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): Require
43307         gl_UNISTD_H_DEFAULTS and AC_USE_SYSTEM_EXTENSIONS. Set
43308         HAVE_GETUSERSHELL.
43309         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETUSERSHELL
43310         and HAVE_GETUSERSHELL.
43311         * modules/getusershell (Depends-on): Add unistd, extensions.
43312         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
43313         (Include): Specify <unistd.h>.
43314         * modules/unistd (Makefile.am): Substitute GNULIB_GETUSERSHELL and
43315         HAVE_GETUSERSHELL.
43316
43317 2008-10-18  Bruno Haible  <bruno@clisp.org>
43318
43319         Add a getloadavg() declaration to <stdlib.h>.
43320         * lib/stdlib.in.h; Include <sys/loadavg.h> when needed for the
43321         getloadavg declaration.
43322         (getloadavg): New declaration.
43323         * lib/getloadavg.c: Include <stdlib.h> first.
43324         * m4/getloadavg.m4 (gl_GETLOADAVG): Require gl_STDLIB_H_DEFAULTS and
43325         AC_USE_SYSTEM_EXTENSIONS. Test whether sys/loadavg.h exists. Set
43326         HAVE_SYS_LOADAVG_H and HAVE_DECL_GETLOADAVG.
43327         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_GETLOADAVG,
43328         HAVE_SYS_LOADAVG_H, HAVE_DECL_GETLOADAVG.
43329         * modules/getloadavg (Depends-on): Add stdlib, extensions.
43330         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
43331         (Include): Specify <stdlib.h>.
43332         * modules/stdlib (Makefile.am): Substitute GNULIB_GETLOADAVG,
43333         HAVE_SYS_LOADAVG_H, HAVE_DECL_GETLOADAVG.
43334
43335 2008-10-18  Bruno Haible  <bruno@clisp.org>
43336
43337         * lib/dirchownmod.c: Don't include lchmod.h.
43338
43339         Move the lchmod() declaration to <sys/stat.h>.
43340         * lib/lchmod.h: Remove file.
43341         * lib/sys_stat.in.h: Add placeholder for GL_LINK_WARNING.
43342         (lchmod): New declaration, moved here from lib/lchown.h.
43343         * m4/lchmod.m4 (gl_FUNC_LCHMOD): Require gl_SYS_STAT_H_DEFAULTS and
43344         AC_USE_SYSTEM_EXTENSIONS. Set HAVE_LCHMOD.
43345         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_LCHMOD
43346         and HAVE_LCHMOD.
43347         * modules/lchmod (Files): Remove lib/lchmod.h.
43348         (Depends-on): Add sys_stat, extensions.
43349         (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR.
43350         (Include): Specify <sys/stat.h> instead of lchmod.h.
43351         * modules/sys_stat (Depends-on): Add link-warning.
43352         (Makefile.am): Substitute GNULIB_LCHMOD, HAVE_LCHMOD, and the
43353         definition of GL_LINK_WARNING.
43354         * NEWS: Mention the change.
43355
43356 2008-10-18  Bruno Haible  <bruno@clisp.org>
43357
43358         * lib/fchdir.c: Don't include dirfd.h.
43359         * lib/fts.c: Likewise.
43360         * lib/getcwd.c: Likewise.
43361         * lib/glob.c: Likewise.
43362
43363         Move the dirfd() declaration to <dirent.h>.
43364         * lib/dirfd.h: Remove file.
43365         * lib/dirent.in.h: Add placeholder for GL_LINK_WARNING.
43366         (dirfd): New declaration.
43367         * lib/dirfd.c: Include <dirent.h> instead of dirfd.h.
43368         * m4/dirfd.m4 (gl_FUNC_DIRFD): Require gl_DIRENT_H_DEFAULTS and
43369         AC_USE_SYSTEM_EXTENSIONS. Invoke gl_REPLACE_DIRENT_H. Set
43370         HAVE_DECL_DIRFD.
43371         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_DIRFD and
43372         HAVE_DECL_DIRFD.
43373         * modules/dirfd (Files): Remove lib/dirfd.h.
43374         (Depends-on): Add dirent, extensions.
43375         (configure.ac): Invoke gl_DIRENT_MODULE_INDICATOR.
43376         (Include): Specify <dirent.h> instead of dirfd.h.
43377         * modules/dirent (Depends-on): Add link-warning.
43378         (Makefile.am): Substitute GNULIB_DIRFD, HAVE_DECL_DIRFD, and
43379         definition of GL_LINK_WARNING.
43380         * NEWS: Mention the change.
43381
43382 2008-10-18  Bruno Haible  <bruno@clisp.org>
43383
43384         Move the euidaccess() declaration to <unistd.h>.
43385         * lib/euidaccess.h: Remove file.
43386         * lib/unistd.in.h (euidaccess): New declaration.
43387         * lib/euidaccess.c: Don't include euidaccess.h.
43388         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Require gl_UNISTD_H_DEFAULTS.
43389         Don't check whether euidaccess is declared. Set HAVE_EUIDACCESS.
43390         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_EUIDACCESS
43391         and HAVE_EUIDACCESS.
43392         * modules/euidaccess (Files): Remove lib/euidaccess.h.
43393         (Depends-on): Add unistd.
43394         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
43395         (Include): Specify <unistd.h> instead of euidaccess.h.
43396         * modules/unistd (Makefile.am): Substitute GNULIB_EUIDACCESS and
43397         HAVE_EUIDACCESS.
43398         * NEWS: Mention the change.
43399
43400 2008-10-18  Bruno Haible  <bruno@clisp.org>
43401
43402         * lib/xgetdomainname.c: Include <unistd.h> instead of getdomainname.h.
43403
43404         Move the getdomainname() declaration to <unistd.h>.
43405         * lib/getdomainname.h: Remove file.
43406         * lib/unistd.in.h (getdomainname): New declaration.
43407         * lib/getdomainname.c: Include <unistd.h> instead of getdomainname.h.
43408         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Require
43409         gl_UNISTD_H_DEFAULTS and AC_USE_SYSTEM_EXTENSIONS. Set
43410         HAVE_GETDOMAINNAME.
43411         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
43412         GNULIB_GETDOMAINNAME and HAVE_GETDOMAINNAME.
43413         * modules/getdomainname (Files): Remove lib/getdomainname.h.
43414         (Depends-on): Add unistd, extensions.
43415         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
43416         (Includes): Specify <unistd.h> instead of getdomainname.h.
43417         * modules/unistd (Makefile.am): Substitute GNULIB_GETDOMAINNAME and
43418         HAVE_GETDOMAINNAME.
43419         * NEWS: Mention the change.
43420
43421 2008-10-18  Bruno Haible  <bruno@clisp.org>
43422
43423         * modules/dirent: New file.
43424         * m4/dirent_h.m4: New file.
43425         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_DIRENT_H_DEFAULTS.
43426         Invoke gl_REPLACE_DIRENT_H. Don't assign DIRENT_H directly.
43427         * modules/fchdir (Files): Remove lib/dirent.in.h.
43428         (Depends-on): Add dirent.
43429         (Makefile.am): Move rules to modules/dirent.
43430         * doc/posix-headers/dirent.texi: Mention the new module.
43431
43432 2008-10-18  Bruno Haible  <bruno@clisp.org>
43433
43434         Avoid -Wunused-parameter warnings in public gnulib header files.
43435         * m4/gnulib-common.m4 (gl_COMMON_BODY): Define _UNUSED_PARAMETER_ as a
43436         macro.
43437         * lib/unistr.h (u32_mbtouc_unsafe, u32_mbtouc): Use it.
43438
43439 2008-10-18  Bruno Haible  <bruno@clisp.org>
43440
43441         * doc/glibc-functions/dirfd.texi: Mention the module 'dirfd'.
43442         * doc/glibc-functions/error.texi: Mention the module 'error'.
43443         * doc/glibc-functions/euidaccess.texi: Mention the module 'euidaccess'.
43444         * doc/glibc-functions/getdomainname.texi: Mention the module
43445         'getdomainname'.
43446         * doc/glibc-functions/getloadavg.texi: Mention the module 'getloadavg'.
43447         * doc/glibc-functions/getpagesize.texi: Mention the module
43448         'getpagesize'.
43449         * doc/glibc-functions/getusershell.texi: Mention the module
43450         'getusershell'.
43451         * doc/glibc-functions/isnanl.texi: Mention the module 'isnanl'.
43452         * doc/glibc-functions/lchmod.texi: Mention the module 'lchmod'.
43453         * doc/glibc-functions/mempcpy.texi: Mention the module 'mempcpy'.
43454         * doc/glibc-functions/memrchr.texi: Mention the module 'memrchr'.
43455         * doc/glibc-functions/mkdtemp.texi: Mention the module 'mkdtemp'.
43456         * doc/glibc-functions/rpmatch.texi: Mention the module 'rpmatch'.
43457         * doc/glibc-functions/stpcpy.texi: Mention the module 'stpcpy'.
43458         * doc/glibc-functions/stpncpy.texi: Mention the module 'stpncpy'.
43459         * doc/glibc-functions/strchrnul.texi: Mention the module 'strchrnul'.
43460         * doc/glibc-functions/strndup.texi: Mention the module 'strndup'.
43461         * doc/glibc-functions/strnlen.texi: Mention the module 'strnlen'.
43462         * doc/glibc-functions/strsep.texi: Mention the module 'strsep'.
43463         * doc/glibc-functions/timegm.texi: Mention the module 'timegm'.
43464         * doc/glibc-functions/vasprintf.texi: Mention the module 'vasprintf'.
43465
43466 2008-10-17  Bruno Haible  <bruno@clisp.org>
43467
43468         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): On platforms other than
43469         HP-UX and IRIX, use -0.0L.
43470         * tests/test-ceill.c (minus_zero): Likewise.
43471         * tests/test-floorl.c (minus_zero): Likewise.
43472         * tests/test-frexpl.c (minus_zero): Likewise.
43473         * tests/test-isnan.c (minus_zerol): Likewise.
43474         * tests/test-isnanl.h (minus_zero): Likewise.
43475         * tests/test-ldexpl.c (minus_zero): Likewise.
43476         * tests/test-roundl.c (minus_zero): Likewise.
43477         * tests/test-signbit.c (minus_zerol): Likewise.
43478         * tests/test-snprintf-posix.h (minus_zerol): Likewise.
43479         * tests/test-sprintf-posix.h (minus_zerol): Likewise.
43480         * tests/test-truncl.c (minus_zero): Likewise.
43481         * tests/test-vasnprintf-posix.c (minus_zerol): Likewise.
43482         * tests/test-vasprintf-posix.c (minus_zerol): Likewise.
43483         Reported by Markus Armbruster <armbru@redhat.com> via Jim Meyering
43484         and by Nelson H. F. Beebe <beebe@math.utah.edu> via Eric Blake.
43485
43486 2008-10-17  Bruno Haible  <bruno@clisp.org>
43487
43488         Avoid gcc warnings because of #pragma GCC system_header on older gcc.
43489         * lib/arpa_inet.in.h: Encloses reference to PRAGMA_SYSTEM_HEADER so
43490         that it gets activated only for gcc >= 3.0.
43491         * lib/dirent.in.h: Likewise.
43492         * lib/errno.in.h: Likewise.
43493         * lib/fcntl.in.h: Likewise.
43494         * lib/float.in.h: Likewise.
43495         * lib/iconv.in.h: Likewise.
43496         * lib/inttypes.in.h: Likewise.
43497         * lib/locale.in.h: Likewise.
43498         * lib/math.in.h: Likewise.
43499         * lib/netdb.in.h: Likewise.
43500         * lib/netinet_in.in.h: Likewise.
43501         * lib/search.in.h: Likewise.
43502         * lib/signal.in.h: Likewise.
43503         * lib/spawn.in.h: Likewise.
43504         * lib/stdarg.in.h: Likewise.
43505         * lib/stdint.in.h: Likewise.
43506         * lib/stdio.in.h: Likewise.
43507         * lib/stdlib.in.h: Likewise.
43508         * lib/string.in.h: Likewise.
43509         * lib/strings.in.h: Likewise.
43510         * lib/sys_file.in.h: Likewise.
43511         * lib/sys_ioctl.in.h: Likewise.
43512         * lib/sys_select.in.h: Likewise.
43513         * lib/sys_socket.in.h: Likewise.
43514         * lib/sys_stat.in.h: Likewise.
43515         * lib/sys_time.in.h: Likewise.
43516         * lib/sysexits.in.h: Likewise.
43517         * lib/time.in.h: Likewise.
43518         * lib/unistd.in.h: Likewise.
43519         * lib/wchar.in.h: Likewise.
43520         * lib/wctype.in.h: Likewise.
43521         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
43522
43523 2008-10-17  Jim Meyering  <meyering@redhat.com>
43524
43525         ignore-value: don't depend on inline module
43526         * modules/ignore-value (Depends-on): Remove 'inline'.
43527         (configure.ac): Instead, add AC_REQUIRE([AC_C_INLINE]) here.
43528         Suggestion from Bruno Haible.
43529
43530 2008-10-17  Bruno Haible  <bruno@clisp.org>
43531
43532         New implementation of condition variables for Win32.
43533         * lib/glthread/cond.h (struct gl_waitqueue_link): New type.
43534         (gl_linked_waitqueue_t): New type.
43535         (gl_cond_t): Use it.
43536         * lib/glthread/cond.c (struct gl_waitqueue_element): New type.
43537         (gl_waitqueue_init, gl_waitqueue_add, gl_waitqueue_remove,
43538         gl_waitqueue_notify_first, gl_waitqueue_notify_all): New functions.
43539         (glthread_cond_init_func, glthread_cond_wait_func,
43540         glthread_cond_timedwait_func, glthread_cond_signal_func,
43541         glthread_cond_broadcast_func, glthread_cond_destroy_func):
43542         Reimplemented on the basis of gl_linked_waitqueue_t.
43543         * lib/glthread/lock.h (gl_carray_waitqueue_t): Renamed from
43544         gl_waitqueue_t.
43545         (gl_rwlock_t): Update.
43546         * lib/glthread/lock.c (gl_waitqueue_t): Alias to gl_carray_waitqueue_t.
43547
43548 2008-10-17  Simon Josefsson  <simon@josefsson.org>
43549
43550         * modules/recvfrom (Depends-on): Add dependency on getpeername.
43551         Reported by Yoann Vandoorselaere <yoann@prelude-ids.org>.
43552
43553 2008-10-17  Jim Meyering  <meyering@redhat.com>
43554
43555         ignore-value: new module
43556         * modules/ignore-value: New file.
43557         * lib/ignore-value.h: New file.
43558         * MODULES.html.sh (Compiler warning management): New section,
43559         just for this module.  More to come.
43560
43561 2008-10-16  Paul Eggert  <eggert@cs.ucla.edu>
43562
43563         open-safer.c: avoid 'signed and unsigned in conditional...' warning
43564         * lib/open-safer.c (open_safer): Use an "if/else" statement in place
43565         of the ternary operator.  Reported by Reuben Thomas <rrt@sc3d.org>.
43566
43567 2008-10-16  Jim Meyering  <meyering@redhat.com>
43568
43569         openat-die.c: avoid 'no previous prototype' warning
43570         * lib/openat-die.c: Include "openat.h".
43571         Reported by Reuben Thomas <rrt@sc3d.org>.
43572
43573 2008-10-16  Simon Josefsson  <simon@josefsson.org>
43574
43575         * m4/netdb_h.m4: Assume that if netdb.h exists, it works.
43576         * lib/netdb.in.h: Fix typo.
43577         Reported by Bruno Haible  <bruno@clisp.org>
43578
43579         * lib/netdb.in.h: Include sys/socket.h for platforms without
43580         netdb.h, to get structures like hostent on MinGW.
43581         * modules/netdb (Depends-on): Add sys_socket.
43582
43583 2008-10-15  Simon Josefsson  <simon@josefsson.org>
43584
43585         * modules/netdb, modules/netdb-tests: New file.
43586         * m4/netdb_h.m4: New file.
43587         * lib/netdb.in.h: Add, currently just an empty file pending
43588         definitions.
43589         * tests/test-netdb.c: New file.
43590         * doc/posix-headers/netdb.texi: Mention that we replace it if
43591         needed.
43592         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
43593         netdb.
43594
43595 2008-10-15  Simon Josefsson  <simon@josefsson.org>
43596
43597         * doc/gnulib.texi (Getaddrinfo and WINVER): Sync documentation
43598         with code.
43599
43600 2008-10-13  Bruno Haible  <bruno@clisp.org>
43601
43602         * lib/glthread/cond.c (glthread_cond_wait_func,
43603         glthread_cond_timedwait_func): Add a comment.
43604
43605 2008-10-13  Yoann Vandoorselaere  <yoann@prelude-ids.org>
43606
43607         * tests/test-poll.c: Include <sys/ioctl.h>, for ioctl().
43608         * tests/test-select.c: Likewise,
43609
43610 2008-10-13  Bruno Haible  <bruno@clisp.org>
43611
43612         * lib/glthread/cond.c (glthread_cond_wait_func,
43613         glthread_cond_timedwait_func): Fix variable name.
43614         Reported by Yoann Vandoorselaere <yoann@prelude-ids.org>.
43615
43616 2008-10-13  Paolo Bonzini  <bonzini@gnu.org>
43617
43618         fix getaddrinfo emulation for systems with struct sockaddr.sa_len
43619         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Detect
43620         struct sockaddr.sa_len.
43621         * lib/getaddrinfo.c (getaddrinfo): Set it if appropriate.
43622
43623 2008-10-13  Simon Josefsson  <simon@josefsson.org>
43624
43625         * build-aux/pmccabe2html: Add css and css_url parameters.
43626
43627 2008-10-12  Bruno Haible  <bruno@clisp.org>
43628
43629         * tests/test-sameacls.c (main) [AIX]: Clear type argument before
43630         calling aclx_get.
43631         Reported by Rainer Tammer <tammer@tammer.net>.
43632
43633 2008-10-12  Bruno Haible  <bruno@clisp.org>
43634
43635         Use msvcrt aware primitives for creation/termination of Win32 threads.
43636         * lib/glthread/thread.c: Include <process.h>.
43637         (glthread_create_func): Use _beginthreadex instead of CreateThread.
43638         (wrapper_func): Update signature.
43639         (gl_thread_exit_func): Use _endthreadex instead of EndThread.
43640
43641 2008-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
43642             Bruno Haible  <bruno@clisp.org>
43643
43644         Provide a Win32 implementation of the 'cond' module.
43645         * lib/glthread/cond.h [USE_WIN32]: New implementation.
43646         * lib/glthread/cond.c (glthread_cond_init_func,
43647         glthread_cond_wait_func, glthread_cond_timedwait_func,
43648         glthread_cond_signal_func, glthread_cond_broadcast_func,
43649         glthread_cond_destroy_func) [USE_WIN32]: New functions.
43650         * modules/cond (Dependencies): Add gettimeofday.
43651
43652 2008-10-11  Bruno Haible  <bruno@clisp.org>
43653
43654         Make sleep work on older versions of mingw.
43655         * m4/sleep.m4 (gl_FUNC_SLEEP): Test whether 'sleep' is declared, not
43656         only whether it exists.
43657         * doc/posix-functions/sleep.texi: Mention the problem with older
43658         versions of mingw.
43659
43660 2008-10-11  Bruno Haible  <bruno@clisp.org>
43661
43662         New module 'shutdown'.
43663         * modules/shutdown: New file.
43664         * lib/sys_socket.in.h (shutdown): New declaration.
43665         * lib/winsock.c (shutdown): New function.
43666         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Initialize
43667         GNULIB_SHUTDOWN.
43668         * modules/sys_socket (Makefile.am): Substitute GNULIB_SHUTDOWN.
43669         * doc/posix-functions/shutdown.texi: Document the new module.
43670
43671 2008-10-11  Jim Meyering  <meyering@redhat.com>
43672
43673         * lib/fclose.c: Fix typo in comment: s/close/fclose/.
43674
43675 2008-10-11  Bruno Haible  <bruno@clisp.org>
43676
43677         New module 'fclose'.
43678         * modules/fclose: New file.
43679         * lib/stdio.in.h (fclose): New declaration.
43680         * lib/fclose.c: New file.
43681         * m4/fclose.m4: New file.
43682         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FCLOSE,
43683         REPLACE_FCLOSE.
43684         * m4/close.m4 (gl_REPLACE_CLOSE): Invoke gl_REPLACE_FCLOSE.
43685         * modules/stdio (Makefile.am): Substitute GNULIB_FCLOSE,
43686         REPLACE_FCLOSE.
43687         * modules/close (Depends-on): fclose.
43688         * doc/posix-functions/fclose.texi: Mention the problem on Windows.
43689
43690 2008-10-11  Bruno Haible  <bruno@clisp.org>
43691
43692         * lib/winsock.c (_gl_close_fd_maybe_socket): If closesocket fails,
43693         set errno and don't call _close.
43694
43695 2008-10-10  Bruno Haible  <bruno@clisp.org>
43696
43697         * lib/copy-acl.c (qcopy_acl) [CYGWIN]: Call chmod before setting the
43698         ACL, not afterwards. Fixes test failure on Cygwin.
43699
43700 2008-10-09  Ben Pfaff  <blp@gnu.org>
43701
43702         * build-aux/announce-gen: Fix gnulib version related part of usage
43703         message.  Die with a useful error message if no tarballs are
43704         found.
43705
43706 2008-10-10  Jim Meyering  <meyering@redhat.com>
43707
43708         bootstrap: use git's --depth=N option only if it's supported
43709         * build-aux/bootstrap: Work with git-1.4.4.4, which does not
43710         recognize the --depth option.  Reported by Pádraig Brady.
43711
43712 2008-10-09  Bruno Haible  <bruno@clisp.org>
43713
43714         New module 'ioctl'.
43715         * modules/ioctl: New file.
43716         * lib/sys_socket.in.h (ioctl): Remove declaration.
43717         * lib/winsock.c: Include <sys/ioctl.h>.
43718         (rpl_ioctl): Define only of the gnulib module 'ioctl' is present.
43719         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Require
43720         gl_SYS_IOCTL_H_DEFAULTS. Set also SYS_IOCTL_H_HAVE_WINSOCK2_H.
43721         * modules/sys_socket (Files): Add m4/sys_ioctl_h.m4.
43722         * doc/posix-functions/ioctl.texi: Mention the new module.
43723
43724 2008-10-09  Bruno Haible  <bruno@clisp.org>
43725
43726         New module 'sys_ioctl'.
43727         * lib/sys_ioctl.in.h: New file.
43728         * m4/sys_ioctl_h.m4: New file.
43729         * modules/sys_ioctl: New file.
43730         * doc/glibc-headers/sys_ioctl.texi: Mention the new module.
43731
43732 2008-10-09  Bruno Haible  <bruno@clisp.org>
43733
43734         * lib/sys_socket.in.h (ioctl): Make signature POSIX compliant.
43735         * lib/winsock.c: Include <stdarg.h>.
43736         (rpl_ioctl): Change to second argument 'int' and then varargs.
43737
43738 2008-10-09  Bruno Haible  <bruno@clisp.org>
43739
43740         * m4/close.m4 (gl_FUNC_CLOSE): Arrange to replace the close() function
43741         when the sys_socket module is present and the system has <winsock2.h>.
43742
43743 2008-10-09  Bruno Haible  <bruno@clisp.org>
43744
43745         * doc/posix-functions/close.texi: Mention module 'close' instead of
43746         module 'sys_socket'.
43747
43748 2008-10-09  Bruno Haible  <bruno@clisp.org>
43749
43750         * doc/glibc-headers/sys_ioctl.texi: New file.
43751         * doc/gnulib.texi: Include it.
43752
43753 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
43754             Bruno Haible  <bruno@clisp.org>
43755
43756         Combine the two replacements of 'close'.
43757         * lib/sys_socket.in.h (close): Define to a reminder to include
43758         <unistd.h>.
43759         (_gl_close_fd_maybe_socket): New declaration.
43760         (HAVE__GL_CLOSE_FD_MAYBE_SOCKET): New macro.
43761         * lib/winsock.c (close): Remove undefinition.
43762         (_gl_close_fd_maybe_socket): Renamed from rpl_close. Define only when
43763         needed for the gnulib module 'close'.
43764         * lib/unistd.in.h (close): If the gnulib module 'close' is not used,
43765         define to an error symbol or to a warning, if suitable.
43766         * lib/close.c: Include <sys/socket.h>.
43767         (rpl_close): Invoke _gl_close_fd_maybe_socket when gnulib defines it.
43768         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Set also
43769         UNISTD_H_HAVE_WINSOCK2_H.
43770         (gl_SYS_SOCKET_H_DEFAULTS): Require gl_UNISTD_H_DEFAULTS.
43771         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
43772         UNISTD_H_HAVE_WINSOCK2_H.
43773         * modules/sys_socket (Files): Add m4/unistd_h.m4.
43774         (configure.ac): Set a module indicator.
43775         (Makefile.am): Substitute GNULIB_CLOSE.
43776         * modules/unistd (Makefile.am): Substitute UNISTD_H_HAVE_WINSOCK2_H.
43777         * modules/poll-tests (Depends-on): Add close.
43778         * modules/select-tests (Depends-on): Likewise.
43779
43780 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
43781             Bruno Haible  <bruno@clisp.org>
43782
43783         New module 'close'.
43784         * modules/close: New file.
43785         * lib/unistd.in.h (close): Move declaration out of the
43786         FCHDIR_REPLACEMENT scope.
43787         (_gl_unregister_fd): New declaration.
43788         * lib/close.c: New file.
43789         * lib/fchdir.c (rpl_close): Remove function.
43790         * m4/close.m4: New file.
43791         * m4/fchdir.m4 (gl_FUNC_FCHDIR): When replacing fchdir, also replace
43792         close.
43793         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_CLOSE and
43794         REPLACE_CLOSE.
43795         * modules/unistd (Makefile.am): Substitute GNULIB_CLOSE and
43796         REPLACE_CLOSE.
43797         * modules/fchdir (Depends-on): Add close.
43798
43799 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
43800             Bruno Haible  <bruno@clisp.org>
43801
43802         * lib/fcntl.in.h (open): Simplify conditionals.
43803         (_gl_register_fd): New declaration.
43804         * lib/fchdir.c (rpl_open): Remove function.
43805         * lib/open.c: When FCHDIR_REPLACEMENT is defined, compile the file
43806         also.
43807         (open): When FCHDIR_REPLACEMENT is defined, invoke _gl_register_fd.
43808         * m4/fchdir.m4 (gl_FUNC_FCHDIR): When replacing fchdir, also replace
43809         open.
43810
43811 2008-10-09  Jim Meyering  <meyering@redhat.com>
43812
43813         GNUmakefile: use the more name-space-friendly "_version"
43814         * top/GNUmakefile (_dummy): Update.
43815         (_version): Rename from "version".
43816
43817 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
43818             Bruno Haible  <bruno@clisp.org>
43819
43820         * lib/fchdir.c (_gl_unregister_fd): New functions, extracted from
43821         rpl_close.
43822         (_gl_register_fd): New function, extracted from rpl_open.
43823         (rpl_close, rpl_closedir): Use _gl_unregister_fd.
43824         (rpl_open, rpl_opendir): Use _gl_register_fd.
43825
43826 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
43827
43828         Fix organization of 'open' replacement.
43829         * m4/open.m4 (gl_REPLACE_OPEN): New macro.
43830         (gl_FUNC_OPEN): Use it.
43831         (gl_PREREQ_OPEN): Add a : to make the body non-empty.
43832
43833 2008-10-08  Bruno Haible  <bruno@clisp.org>
43834
43835         * modules/getdate-tests (test_getdata_LDADD): Add LIBINTL.
43836
43837 2008-10-08  Simon Josefsson  <simon@josefsson.org>
43838
43839         * m4/sys_socket_h.m4: Don't AC_LIBOBJ(winsock).  The file is
43840         AC_LIBOBJ'ed by each gnulib module that needs it (e.g., socket,
43841         listen).
43842
43843 2008-10-08  Eric Blake  <ebb9@byu.net>
43844
43845         GNUmakefile: add 'make version' target
43846         * top/GNUmakefile (_curr-ver): Split version update rules...
43847         (version): ...into a target.
43848
43849 2008-10-07  Bruno Haible  <bruno@clisp.org>
43850
43851         Use a more portable replacement expression for -0.0L.
43852         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Use -LDBL_MIN * LDBL_MIN
43853         instead of -0.0L. Fix m4 quotation.
43854
43855         * tests/test-signbit.c: Include <float.h>.
43856         (minus_zero): New variable.
43857         (test_signbitl): Use minus_zero instead of -zero.
43858         * modules/signbit-tests (Depends-on): Add float.
43859
43860         * tests/test-ceill.c: Include <float.h>.
43861         (zero): Remove variable.
43862         (minus_zero): New variable.
43863         (main): Use minus_zero instead of -zero.
43864         * modules/ceill-tests (Depends-on): Add float.
43865
43866         * tests/test-floorl.c: Include <float.h>.
43867         (zero): Remove variable.
43868         (minus_zero): New variable.
43869         (main): Use minus_zero instead of -zero.
43870         * modules/floorl-tests (Depends-on): Add float.
43871
43872         * tests/test-roundl.c: Include <float.h>.
43873         (zero): Remove variable.
43874         (minus_zero): New variable.
43875         (main): Use minus_zero instead of -zero.
43876         * modules/roundl-tests (Depends-on): Add float.
43877
43878         * tests/test-truncl.c: Include <float.h>.
43879         (zero): Remove variable.
43880         (minus_zero): New variable.
43881         (main): Use minus_zero instead of -zero.
43882         * modules/truncl-tests (Depends-on): Add float.
43883
43884         * tests/test-frexpl.c (zero): Remove variable.
43885         (minus_zero): New variable.
43886         (main): Use minus_zero instead of -zero.
43887         * modules/frexpl-tests (Depends-on): Add float.
43888
43889         * tests/test-isnan.c (zerol): Remove variable.
43890         (minus_zerol): New variable.
43891         (test_long_double): Use minus_zerol instead of -zerol.
43892         * modules/isnan-tests (Depends-on): Add float.
43893
43894         * tests/test-isnanl.h (zero): Remove variable.
43895         (minus_zero): New variable.
43896         (main): Use minus_zero instead of -zero.
43897         * modules/isnanl-nolibm-tests (Depends-on): Add float.
43898         * modules/isnanl-tests (Depends-on): Add float.
43899
43900         * tests/test-ldexpl.c (zero): Remove variable.
43901         (minus_zero): New variable.
43902         (main): Use minus_zero instead of -zero.
43903         * modules/ldexpl-tests (Depends-on): Add float.
43904
43905         * tests/test-snprintf-posix.h (zerol): Remove variable.
43906         (minus_zerol): New variable.
43907         (test_function): Use minus_zerol instead of -zerol.
43908         * modules/snprintf-posix-tests (Depends-on): Add float.
43909         * modules/vsnprintf-posix-tests (Depends-on): Add float.
43910
43911         * tests/test-sprintf-posix.h (zerol): Remove variable.
43912         (minus_zerol): New variable.
43913         (test_function): Use minus_zerol instead of -zerol.
43914         * modules/sprintf-posix-tests (Depends-on): Add float.
43915         * modules/vsprintf-posix-tests (Depends-on): Add float.
43916
43917         * tests/test-vasnprintf-posix.c (zerol): Remove variable.
43918         (minus_zerol): New variable.
43919         (test_function): Use minus_zerol instead of -zerol.
43920         * modules/vasnprintf-posix-tests (Depends-on): Add float.
43921
43922         * tests/test-vasprintf-posix.c (zerol): Remove variable.
43923         (minus_zerol): New variable.
43924         (test_function): Use minus_zerol instead of -zerol.
43925         * modules/vasprintf-posix-tests (Depends-on): Add float.
43926
43927 2008-10-07  Simon Josefsson  <simon@josefsson.org>
43928
43929         * MODULES.html.sh (Support for building documentation): Mention
43930         pmccabe2html.  Sort entries.
43931
43932         Add pmccabe2html module, from gnupdf.
43933         * build-aux/pmccabe.css: New file.
43934         * build-aux/pmccabe2html: New file.
43935         * m4/pmccabe2html.m4: New file.
43936         * modules/pmccabe2html: New file.
43937
43938 2008-10-07  Richard W.M. Jones <rjones@redhat.com>
43939
43940         flock: new module
43941         * MODULES.html.sh: Add to list of modules.
43942         * lib/flock.c: flock implementation for Windows and Unix systems
43943         which have fcntl.
43944         * doc/glibc-functions/flock.texi: Update documentation.
43945         * lib/sys_file.in.h: <sys/file.h> header file.
43946         * m4/flock.m4: M4 macros.
43947         * m4/sys_file_h.m4: M4 macros for replacement sys/file.h.
43948         * modules/flock: flock module.
43949         * modules/flock-tests: flock tests module.
43950         * modules/sys_file: sys/file.h module.
43951         * tests/test-flock.c: test suite for flock.
43952
43953 2008-10-06  Jim Meyering  <meyering@redhat.com>
43954
43955         bootstrap: check for LT_INIT more portably still ;-)
43956         * build-aux/bootstrap: Don't rely on \>, since it's not portable.
43957         Spotted by Bruno Haible.
43958
43959 2008-10-06  Eric Blake  <ebb9@byu.net>
43960
43961         test-signbit: avoid tripping Irix cc bug on -0.0L
43962         * tests/test-signbit.c (minus_zerol): Delete, and replace with
43963         '-zerol'.  This may break on HP-UX/hppa, but at least makes the
43964         entire testsuite consistent and avoids an Irix 6.2 bug.
43965
43966 2008-10-05  Bruno Haible  <bruno@clisp.org>
43967             Jim Meyering  <jim@meyering.net>
43968
43969         Add an option for ignoring EPIPE during close_stdout.
43970         * lib/closeout.h: Include <stdbool.h>.
43971         (close_stdout_set_ignore_EPIPE): New declaration.
43972         * lib/closeout.c: Include <stdbool.h>.
43973         (ignore_EPIPE): New variable.
43974         (close_stdout_set_ignore_EPIPE): New function.
43975         (close_stdout): Ignore EPIPE error if ignore_EPIPE is set.
43976         * lib/close-stream.c (close_stream): Mention the possible EPIPE
43977         failure.
43978         * modules/closeout (Depends-on): Add stdbool.
43979
43980 2008-10-05  Bruno Haible  <bruno@clisp.org>
43981
43982         * modules/accept: New file.
43983         * modules/bind: New file.
43984         * modules/connect: New file.
43985         * modules/getpeername: New file.
43986         * modules/getsockname: New file.
43987         * modules/getsockopt: New file.
43988         * modules/listen: New file.
43989         * modules/recv: New file.
43990         * modules/recvfrom: New file.
43991         * modules/send: New file.
43992         * modules/sendto: New file.
43993         * modules/setsockopt: New file.
43994         * modules/socket: New file.
43995         * lib/sys_socket.in.h: Include the GL_LINK_WARNING definition.
43996         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
43997         listen, recv, send, recvfrom, sendto, setsockopt): Declare only when
43998         the particular module is requested. Add a link warning when the
43999         particular module is not requested.
44000         * lib/winsock.c (rpl_socket, rpl_connect, rpl_accept, rpl_bind,
44001         rpl_getpeername, rpl_getsockname, rpl_getsockopt, rpl_listen, rpl_recv,
44002         rpl_send, rpl_recvfrom, rpl_sendto, rpl_setsockopt): Define only when
44003         the particular module is requested.
44004         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR,
44005         gl_SYS_SOCKET_H_DEFAULTS): New macros.
44006         (gl_HEADER_SYS_SOCKET): Require gl_SYS_SOCKET_H_DEFAULTS.
44007         * modules/sys_socket (Depends-on): Add link-warning.
44008         (Makeifle.am): Substitute GNULIB_SOCKET, GNULIB_CONNECT, GNULIB_ACCEPT,
44009         GNULIB_BIND, GNULIB_GETPEERNAME, GNULIB_GETSOCKNAME, GNULIB_GETSOCKOPT,
44010         GNULIB_LISTEN, GNULIB_RECV, GNULIB_SEND, GNULIB_RECVFROM,
44011         GNULIB_SENDTO, GNULIB_SETSOCKOPT, and the definition of
44012         GL_LINK_WARNING.
44013         * doc/posix-functions/accept.texi: Mention the new module 'accept'.
44014         * doc/posix-functions/bind.texi: Mention the new module 'bind'.
44015         * doc/posix-functions/connect.texi: Mention the new module 'connect'.
44016         * doc/posix-functions/getpeername.texi: Mention the new module
44017         'getpeername'.
44018         * doc/posix-functions/getsockname.texi: Mention the new module
44019         'getsockname'.
44020         * doc/posix-functions/getsockopt.texi: Mention the new module
44021         'getsockopt'.
44022         * doc/posix-functions/listen.texi: Mention the new module 'listen'.
44023         * doc/posix-functions/recv.texi: Mention the new module 'recv'.
44024         * doc/posix-functions/recvfrom.texi: Mention the new module 'recvfrom'.
44025         * doc/posix-functions/send.texi: Mention the new module 'send'.
44026         * doc/posix-functions/sendto.texi: Mention the new module 'sendto'.
44027         * doc/posix-functions/setsockopt.texi: Mention the new module
44028         'setsockopt'.
44029         * doc/posix-functions/socket.texi: Mention the new module 'socket'.
44030         * modules/poll-tests (Depends-on): Add socket, bind, getsockopt,
44031         listen, connect, accept.
44032         * modules/select-tests (Depends-on): Likewise.
44033
44034 2008-10-05  Bruno Haible  <bruno@clisp.org>
44035
44036         * lib/winsock.c (strerror): Remove unused #undef.
44037         (rpl_close): Remove unused local variable.
44038
44039         * modules/sys_socket (Depends-on); Add errno.
44040
44041 2008-10-05  Bruno Haible  <bruno@clisp.org>
44042
44043         * lib/sys_select.in.h: Include the GL_LINK_WARNING definition.
44044         (select): Add a link warning when the 'select' module is not used.
44045         * modules/sys_select (Depends-on): Add link-warning.
44046         (Makefile.am): Substitute the definition of GL_LINK_WARNING.
44047         Suggested by Paolo Bonzini.
44048
44049 2008-10-05  Jim Meyering  <meyering@redhat.com>
44050
44051         bootstrap: check for LT_INIT more portably
44052         * build-aux/bootstrap: Avoid using grep -E, since it's not
44053         portable enough.  Suggestion from Bruno Haible.
44054
44055 2008-10-05  Bruno Haible  <bruno@clisp.org>
44056
44057         * doc/posix-headers/sys_select.texi: Mention 'struct timeval' problem
44058         as being fixed by gnulib.
44059
44060 2008-10-05  Bruno Haible  <bruno@clisp.org>
44061
44062         * modules/select-tests: New file, mostly copied from
44063         modules/sys_select-tests.
44064         * tests/test-select.c: New file, mostly copied from
44065         tests/test-sys_select.c.
44066         * tests/test-sys_select.c: Move most of the code to tests/test-select.c.
44067         * modules/sys_select-tests (Depends-on): Remove all dependencies.
44068         (Makefile.am): Remove test_sys_select_LDADD.
44069
44070         * lib/sys_select.in.h (select): If GNULIB_SELECT is not set, define it
44071         to an undefined symbol, for an error message.
44072         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): New macro.
44073         (gl_SYS_SELECT_H_DEFAULTS): New macro.
44074         (gl_HEADER_SYS_SELECT): Require it. Don't require compilation of
44075         winsock-select.c here.
44076         * modules/sys_select (Files): Remove lib/winsock-select.c.
44077         (Depends-on): Remove alloca.
44078         (Makefile.am): Substitute GNULIB_SELECT.
44079         * modules/select: New file.
44080         * doc/posix-functions/select.texi: Update.
44081
44082 2008-10-05  Bruno Haible  <bruno@clisp.org>
44083
44084         * lib/spawn_faction_addclose.c (__sysconf): Use getdtablesize always.
44085         * lib/spawn_faction_adddup2.c (__sysconf): Likewise.
44086         * lib/spawn_faction_addopen.c (__sysconf): Likewise.
44087         * modules/posix_spawn_file_actions_addclose (Depends-on): Add
44088         getdtablesize.
44089         * modules/posix_spawn_file_actions_adddup2 (Depends-on): Likewise.
44090         * modules/posix_spawn_file_actions_addopen (Depends-on): Likewise.
44091
44092 2008-10-05  Bruno Haible  <bruno@clisp.org>
44093
44094         * modules/getdtablesize-tests: New file.
44095         * tests/test-getdtablesize.c: New file.
44096
44097         New module 'getdtablesize'.
44098         * lib/unistd.in.h (getdtablesize): New declaration.
44099         * lib/getdtablesize.c: New file.
44100         * m4/getdtablesize.m4: New file.
44101         * modules/getdtablesize: New file.
44102         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
44103         GNULIB_GETDTABLESIZE, HAVE_GETDTABLESIZE.
44104         * modules/unistd (Makefile.am): Substitute GNULIB_GETDTABLESIZE,
44105         HAVE_GETDTABLESIZE.
44106         * doc/glibc-functions/getdtablesize.texi: Mention the new module.
44107
44108 2008-10-05  Bruno Haible  <bruno@clisp.org>
44109
44110         * modules/sched (Makefile.am): Fix typo.
44111         Reported by Simon Josefsson.
44112
44113 2008-10-05  Jim Meyering  <meyering@redhat.com>
44114
44115         bootstrap: check for LT_INIT, too
44116         * build-aux/bootstrap: Both AC_PROG_LIBTOOL and AM_PROG_LIBTOOL
44117         are deprecated.  Suggestion from Ralf Wildenhues.
44118
44119 2008-10-05  Bruno Haible  <bruno@clisp.org>
44120
44121         * lib/spawn.in.h (POSIX_SPAWN_*): Use the system's values, rather than
44122         overriding them by ours.
44123         (POSIX_SPAWN_USEVFORK): Use the next free bit position.
44124
44125 2008-10-05  Jim Meyering  <meyering@redhat.com>
44126
44127         bootstrap: check for AC_PROG_LIBTOOL as well as AM_PROG_LIBTOOL
44128         * build-aux/bootstrap: Check for AC_PROG_LIBTOOL, as well as the
44129         obsolete AM_PROG_LIBTOOL.  Spotted by Debarshi Ray <rishi@gnu.org>.
44130
44131 2008-10-04  Bruno Haible  <bruno@clisp.org>
44132
44133         * modules/dup2 (License): Change to LGPLv2+.
44134         * modules/sleep (License): Likewise.
44135         * modules/perror (License): Likewise.
44136         * modules/fopen (License): Change to LGPLv2+, with approval by Eric
44137         Blake.
44138         * modules/signal (License): Likewise.
44139         * modules/sigprocmask (License): Likewise.
44140         * modules/raise (License): Change to LGPLv2+, with approval by Jim
44141         Meyering.
44142
44143 2008-10-04  Bruno Haible  <bruno@clisp.org>
44144
44145         * lib/spawn.in.h (POSIX_SPAWN_*): Undefine before redefining.
44146         Reported by Rainer Tammer <tammer@tammer.net>.
44147
44148 2008-10-03  Paolo Bonzini  <bonzini@gnu.org>
44149             Bruno Haible  <bruno@clisp.org>
44150
44151         * lib/errno.in.h (EWOULDBLOCK) [win32]: Define to EAGAIN.
44152         * lib/winsock.c (set_winsock_errno): Map WSAEWOULDBLOCK to EWOULDBLOCK.
44153         * lib/strerror.c (rpl_strerror): Remove error string for EWOULDBLOCK.
44154
44155 2008-10-03  Kamil Dudka  <kdudka@redhat.com>
44156
44157         filevercmp: new module
44158         * lib/filevercmp.h: New function filevercmp comparing version strings.
44159         * lib/filevercmp.c: Implementation of filevercmp function.
44160         * modules/filevercmp: Module metadata.
44161         * tests/test-filevercmp.c: Unit test for new module.
44162         * modules/filevercmp-tests: Unit test metadata.
44163         * MODULES.html.sh: Add filevercmp module.
44164
44165 2008-10-03  Bruno Haible  <bruno@clisp.org>
44166
44167         * lib/c-ctype.h: Add comment.
44168         Reported by Jim Meyering.
44169
44170 2008-10-02  Bruno Haible  <bruno@clisp.org>
44171
44172         * modules/posix_spawn-internal (Depends-on): Add 'open'.
44173
44174 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
44175
44176         * build-aux/bootstrap: Allow renaming bootstrap, and change the
44177         name of bootstrap.conf accordingly.
44178
44179 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
44180
44181         * build-aux/bootstrap: Install git-merge-changelog configuration
44182         items into .gitconfig if needed.
44183
44184 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
44185
44186         * build-aux/bootstrap: Recognize `gnulib' being a submodule in a
44187         git repository, and initialize/update it accordingly.
44188
44189 2008-10-02  Richard W.M. Jones  <rjones@redhat.com>
44190
44191         * modules/fsync-tests: New file.
44192         * tests/test-fsync.c: New file.
44193
44194         New module 'fsync'.
44195         * lib/fsync.c: New file.
44196         * m4/fsync.m4: New file.
44197         * modules/fsync: New file.
44198         * lib/unistd.in.h (fsync): New declaration.
44199         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Define and AC_SUBST both
44200         GNULIB_FSYNC and HAVE_FSYNC.
44201         * modules/unistd: Substitute GNULIB_FSYNC and HAVE_FSYNC.
44202         * MODULES.html.sh (posix_functions): Add fsync.
44203         * doc/posix-functions/fsync.texi: Mention the new module.
44204
44205 2008-10-02  Jim Meyering  <meyering@redhat.com>
44206
44207         fts.c: sync with similar code from coreutils' remove.c
44208         * lib/fts.c (dirent_inode_sort_may_be_useful): Merge from coreutils.
44209         Guard also with "#if defined __linux__", since for now at least,
44210         this code is Linux-kernel-specific.
44211
44212 2008-10-02  Jim Meyering  <meyering@redhat.com>
44213
44214         fts: bug fixes
44215         * lib/fts.c: Remove unnecessary "defined" in cpp directive.
44216         Include <sys/vfs.h>, not <sys/statfs.h>.
44217
44218         * m4/fts.m4 (gl_FUNC_FTS_CORE): Fix typo s/vfs/vfs.h/.
44219         Include <sys/vfs.h>, not <sys/statfs.h>.
44220
44221 2008-10-01  Bruno Haible  <bruno@clisp.org>
44222
44223         Avoid the broken posix_spawn function on AIX 5.3 and 6.1.
44224         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): New macro.
44225         (gl_POSIX_SPAWN_BODY): Invoke it. Set REPLACE_POSIX_SPAWN if needed.
44226         * doc/posix-functions/posix_spawn.texi: Mention the AIX bugs.
44227         * doc/posix-functions/posix_spawnp.texi: Likewise.
44228         * m4/execute.m4 (gl_EXECUTE): Invoke gl_POSIX_SPAWN_WORKS, to check
44229         whether posix_spawn actually works.
44230         * m4/pipe.m4 (gl_PIPE): Likewise.
44231         * modules/execute (Files): Add m4/posix_spawn.m4.
44232         * modules/pipe (Files): Add m4/posix_spawn.m4.
44233         Reported and analyzed by Rainer Tammer <tammer@tammer.net>.
44234
44235 2008-10-01  Jim Meyering  <meyering@redhat.com>
44236
44237         remove trailing spaces
44238         * NEWS: Likewise.
44239         * lib/poll.c (poll): Likewise.
44240         * lib/sys_socket.in.h (SHUT_RDWR): Likewise.
44241         * lib/winsock.c (rpl_close): Likewise.
44242         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Likewise.
44243         * modules/yield: Likewise.
44244         * tests/test-poll.c (connect_to_socket, poll1): Likewise.
44245         * tests/test-sys_select.c (connect_to_socket): Likewise.
44246
44247         fts.c: adjust a new interface to be more generally useful
44248         * lib/fts.c (dirent_inode_sort_may_be_useful): Take an FD parameter.
44249         (fts_build): Adjust caller.
44250
44251 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
44252
44253         * modules/cond-tests: New file.
44254         * tests/test-cond.c: New file.
44255
44256 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
44257             Bruno Haible  <bruno@clisp.org>
44258
44259         * modules/cond (Dependencies): Add errno, time.
44260         * lib/glthread/cond.h: Include <time.h>.
44261         (gl_cond_define, gl_cond_define_initialized): Use the same definition
44262         across platforms.
44263
44264 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
44265             Bruno Haible  <bruno@clisp.org>
44266
44267         * m4/thread.m4 (gl_THREAD): Fix detection of pthread_atfork function.
44268
44269 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
44270             Bruno Haible  <bruno@clisp.org>
44271
44272         * modules/tls-tests (Depends-on): Add thread, yield.
44273         (configure.ac): Remove all checks.
44274         (test_tls_LDADD): Use YIELD_LIB instead of LIBSCHED.
44275         * tests/test-tls.c (gl_thread_t, gl_thread_join, gl_thread_yield,
44276         gl_thread_self): Remove definitions. Include glthread/thread.h and
44277         glthread/yield.h instead.
44278         (test_tls): Pass an additional NULL argument to gl_thread_join.
44279
44280 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
44281             Bruno Haible  <bruno@clisp.org>
44282
44283         * modules/lock-tests (Depends-on): Add thread, yield.
44284         (configure.ac): Remove all checks.
44285         (test_lock_LDADD): Use YIELD_LIB instead of LIBSCHED.
44286         * tests/test-lock.c (gl_thread_t, gl_thread_join, gl_thread_yield,
44287         gl_thread_self): Remove definitions. Include glthread/thread.h and
44288         glthread/yield.h instead.
44289         (test_lock, test_rwlock, test_recursive_lock, test_once): Pass an
44290         additional NULL argument to gl_thread_join.
44291
44292 2008-09-30  Bruno Haible  <bruno@clisp.org>
44293
44294         Fix the Win32 implementation of the 'thread' module.
44295         * lib/glthread/thread.h [USE_WIN32_THREADS] (gl_thread_t): Change to a
44296         pointer type.
44297         (gl_thread_self): Invoke gl_thread_self_func.
44298         (gl_thread_self_func): New declaration.
44299         * lib/glthread/thread.c [USE_WIN32_THREADS] (self_key): New variable.
44300         (do_init_self_key, init_self_key): New functions.
44301         (struct gl_thread_struct): Renamed from 'struct thread_extra'.
44302         Remove some fields.
44303         (running_threads, running_lock): Remove variables.
44304         (get_current_thread_handle): New function.
44305         (gl_thread_self_func, wrapper_func, glthread_create_func,
44306         glthread_join_func, gl_thread_exit_func): Largely rewritten and
44307         simplified.
44308
44309 2008-09-30  Bruno Haible  <bruno@clisp.org>
44310
44311         * lib/winsock-select.c (win32_poll_handle): Add shortcut for regular
44312         files.
44313
44314 2008-09-30  Jim Meyering  <meyering@redhat.com>
44315
44316         fts.m4: correct the test for statfs.f_type
44317         * m4/fts.m4 (gl_FUNC_FTS_CORE): Include <sys/statfs.h>
44318         when checking for statfs.f_type.
44319
44320 2008-09-15  Simon Josefsson  <simon@josefsson.org>
44321
44322         tests: avoid some compiler warnings
44323         * tests/test-memchr.c (main): Pass NULL indirectly.
44324         * tests/test-getdate.c (main): Remove unused variable 'ret'.
44325
44326 2008-09-29  OndÅ™ej Vašík  <ovasik@redhat.com>
44327
44328         getdate.y: disallow countable dayshifts like "4 yesterday ago"
44329         * lib/getdate.y (relative_time_table) [tDAY_SHIFT]: New type for
44330         exactly specified dayshifts.
44331         (dayshift): New rule.
44332         (rel): Add dayshift.
44333         (relative_time_table) [tomorrow, yesterday, today, now]:
44334         Use tDAY_SHIFT in place of tDAY_UNIT.
44335         * tests/test-getdate.c: Add tests for now-disallowed countable
44336         dayshifts, e.g., "4 yesterday ago".
44337
44338 2008-09-29  Bruno Haible  <bruno@clisp.org>
44339
44340         * tests/test-posix_spawn1.c: Renamed from tests/test-posix_spawn.c.
44341         * tests/test-posix_spawn1.in.sh: Renamed from
44342         tests/test-posix_spawn.in.sh.
44343         * tests/test-posix_spawn2.c: New file.
44344         * tests/test-posix_spawn2.in.sh: New file.
44345         * modules/posix_spawnp-tests (Files): Update.
44346         (Makefile.am): Update. Add test-posix_spawn2 to the tests.
44347
44348 2008-09-29  Bruno Haible  <bruno@clisp.org>
44349
44350         Propagate effects of putenv/setenv/unsetenv to child processes.
44351         * lib/execute.c (execute): Use spawnvpe instead of spawnvp.
44352         * lib/pipe.c (create_pipe): Likewise.
44353
44354 2008-09-29  Bruno Haible  <bruno@clisp.org>
44355
44356         Enable use of shell scripts as executables in mingw.
44357         * lib/execute.c (execute): When spawnv fails with error ENOEXEC,
44358         run the program as a shell script.
44359         * lib/pipe.c (create_pipe): Likewise.
44360         * lib/w32spawn.h (prepare_spawn): Add a hidden element in front of the
44361         resulting array.
44362
44363 2008-09-29  Eric Blake  <ebb9@byu.net>
44364
44365         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Fix typo.
44366
44367 2008-08-24  Paolo Bonzini  <bonzini@gnu.org>
44368
44369         * doc/posix-functions/accept.texi: Update mingw problems.
44370         * doc/posix-functions/bind.texi: Update mingw problems.
44371         * doc/posix-functions/close.texi: Update mingw problems.
44372         * doc/posix-functions/connect.texi: Update mingw problems.
44373         * doc/posix-functions/getpeername.texi: Update mingw problems.
44374         * doc/posix-functions/getsockname.texi: Update mingw problems.
44375         * doc/posix-functions/getsockopt.texi: Update mingw problems.
44376         * doc/posix-functions/ioctl.texi: Update mingw problems.
44377         * doc/posix-functions/listen.texi: Update mingw problems.
44378         * doc/posix-functions/recv.texi: Update mingw problems.
44379         * doc/posix-functions/recvfrom.texi: Update mingw problems.
44380         * doc/posix-functions/select.texi: Update mingw problems.
44381         * doc/posix-functions/send.texi: Update mingw problems.
44382         * doc/posix-functions/sendto.texi: Update mingw problems.
44383         * doc/posix-functions/setsockopt.texi: Update mingw problems.
44384         * doc/posix-functions/socket.texi: Update mingw problems.
44385
44386 2008-09-29  Paolo Bonzini  <bonzini@gnu.org>
44387             Bruno Haible  <bruno@clisp.org>
44388
44389         * lib/sys_select.in.h: Include sys/time.h.
44390         * m4/sys_select.h.m4: Test that struct timeval is fully defined.
44391         * modules/sys_select: Depend on sys_time.
44392         * tests/test-sys_select.c: Test that sys/select.h defines struct
44393         timeval fully.
44394
44395 2008-09-29  Bruno Haible  <bruno@clisp.org>
44396
44397         * lib/sys_socket.in.h: Wrap the definitions in 'extern "C"'.
44398         * lib/sys_select.in.h: Likewise.
44399
44400 2008-09-29  Bruno Haible  <bruno@clisp.org>
44401
44402         * lib/winsock.c (rpl_close, rpl_socket): Remove unused variables.
44403
44404 2008-09-29  Bruno Haible  <bruno@clisp.org>
44405
44406         * m4/sockets.m4 (gl_SOCKETS): Check also for the need to use -lsocket.
44407         Set LIBSOCKET instead of augmenting LIBS.
44408         * modules/sockets (Link): New section.
44409         * modules/sockets-tests (test_sockets_LDADD): New variable.
44410         * modules/sys_select-tests (test_sys_select_LDADD): New variable.
44411         * modules/poll-tests (test_poll_LDADD): New variable.
44412         * NEWS: Document the change.
44413
44414 2008-09-29  Bruno Haible  <bruno@clisp.org>
44415
44416         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): New macro.
44417         * m4/inet_ntop.m4 (gl_INET_NTOP): Invoke it instead of assigning
44418         ARPA_INET_H directly.
44419         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
44420
44421 2008-09-28  Bruno Haible  <bruno@clisp.org>
44422
44423         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): New macro, extracted
44424         from gl_HEADER_SYS_SOCKET.
44425         (gl_HEADER_SYS_SOCKET): Invoke it.
44426         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
44427
44428 2008-09-28  Bruno Haible  <bruno@clisp.org>
44429
44430         * doc/posix-headers/sys_select.texi: Mention 'struct timeval' problem.
44431         * tests/test-sys_select.c: Include <sys/time.h>, for struct timeval.
44432         Needed on OSF/1 4.0.
44433
44434 2008-09-28  Bruno Haible  <bruno@clisp.org>
44435
44436         Override open more carefully.
44437         * lib/open.c (orig_open): New function.
44438         (rpl_open): Use orig_open instead of open.
44439         * lib/fcntl.in.h: Add special invocation convention.
44440         * m4/open.m4 (gl_PREREQ_OPEN): New macro.
44441         (gl_FUNC_OPEN): Invoke it.
44442
44443         Override freopen more carefully.
44444         * lib/freopen.c (orig_freopen): New function.
44445         (rpl_freopen): Use orig_freopen instead of freopen.
44446         * m4/freopen.m4 (gl_PREREQ_FREOPEN): New macro.
44447         (gl_FUNC_FREOPEN): Invoke it.
44448
44449         Override fopen more carefully.
44450         * lib/fopen.c (orig_fopen): New function.
44451         (rpl_fopen): Use orig_fopen instead of fopen.
44452         * m4/fopen.m4 (gl_PREREQ_FOPEN): New macro.
44453         (gl_FUNC_FOPEN): Invoke it.
44454         Needed on AIX. Reported by Rainer Tammer <tammer@tammer.net>.
44455
44456 2008-09-28  Bruno Haible  <bruno@clisp.org>
44457
44458         * lib/pipe.h (create_pipe_out, create_pipe_bidi): Add comment about
44459         SIGPIPE.
44460
44461 2008-09-28  Bruno Haible  <bruno@clisp.org>
44462
44463         * tests/test-sigaction.c (handler, main): Disable the check whether
44464         SA_RESETHAND has reverted the installed handler to SIG_DFL. Needed on
44465         glibc systems with LinuxThreads.
44466
44467 2008-09-28  Bruno Haible  <bruno@clisp.org>
44468
44469         * doc/posix-functions/freopen.texi: Mention the trailing slash problem.
44470
44471         * lib/stdio.in.h (fopen, freopen): Undefine before redefining. Needed
44472         with AIX xlc.
44473         * lib/fcntl.in.h (open): Likewise.
44474         Reported by Rainer Tammer <tammer@tammer.net>.
44475
44476 2008-09-28  Bruno Haible  <bruno@clisp.org>
44477
44478         * modules/posix_spawnp-tests: New file.
44479         * tests/test-posix_spawn.c: New file.
44480         * tests/test-posix_spawn.in.sh: New file.
44481
44482         New module 'posix_spawnp'.
44483         * modules/posix_spawnp: New file.
44484         * lib/spawnp.c: New file, from GNU libc with modifications.
44485         * doc/posix-functions/posix_spawnp.texi: Mention the new module.
44486
44487         New module 'posix_spawn'.
44488         * modules/posix_spawn: New file.
44489         * lib/spawn.c: New file, from GNU libc with modifications.
44490         * doc/posix-functions/posix_spawn.texi: Mention the new module.
44491
44492         New module 'posix_spawnattr_destroy'.
44493         * modules/posix_spawnattr_destroy: New file.
44494         * lib/spawnattr_destroy.c: New file, from GNU libc with modifications.
44495         * doc/posix-functions/posix_spawnattr_destroy.texi: Mention the new
44496         module.
44497
44498         New module 'posix_spawnattr_setsigmask'.
44499         * modules/posix_spawnattr_setsigmask: New file.
44500         * lib/spawnattr_setsigmask.c: New file, from GNU libc with
44501         modifications.
44502         * doc/posix-functions/posix_spawnattr_setsigmask.texi: Mention the
44503         new module.
44504
44505         New module 'posix_spawnattr_getsigmask'.
44506         * modules/posix_spawnattr_getsigmask: New file.
44507         * lib/spawnattr_getsigmask.c: New file, from GNU libc with
44508         modifications.
44509         * doc/posix-functions/posix_spawnattr_getsigmask.texi: Mention the
44510         new module.
44511
44512         New module 'posix_spawnattr_setsigdefault'.
44513         * modules/posix_spawnattr_setsigdefault: New file.
44514         * lib/spawnattr_setdefault.c: New file, from GNU libc with
44515         modifications.
44516         * doc/posix-functions/posix_spawnattr_setsigdefault.texi: Mention the
44517         new module.
44518
44519         New module 'posix_spawnattr_getsigdefault'.
44520         * modules/posix_spawnattr_getsigdefault: New file.
44521         * lib/spawnattr_getdefault.c: New file, from GNU libc with
44522         modifications.
44523         * doc/posix-functions/posix_spawnattr_getsigdefault.texi: Mention the
44524         new module.
44525
44526         New module 'posix_spawnattr_setschedpolicy'.
44527         * modules/posix_spawnattr_setschedpolicy: New file.
44528         * lib/spawnattr_setschedpolicy.c: New file, from GNU libc with
44529         modifications.
44530         * doc/posix-functions/posix_spawnattr_setschedpolicy.texi: Mention the
44531         new module.
44532
44533         New module 'posix_spawnattr_getschedpolicy'.
44534         * modules/posix_spawnattr_getschedpolicy: New file.
44535         * lib/spawnattr_getschedpolicy.c: New file, from GNU libc with
44536         modifications.
44537         * doc/posix-functions/posix_spawnattr_getschedpolicy.texi: Mention the
44538         new module.
44539
44540         New module 'posix_spawnattr_setschedparam'.
44541         * modules/posix_spawnattr_setschedparam: New file.
44542         * lib/spawnattr_setschedparam.c: New file, from GNU libc with
44543         modifications.
44544         * doc/posix-functions/posix_spawnattr_setschedparam.texi: Mention the
44545         new module.
44546
44547         New module 'posix_spawnattr_getschedparam'.
44548         * modules/posix_spawnattr_getschedparam: New file.
44549         * lib/spawnattr_getschedparam.c: New file, from GNU libc with
44550         modifications.
44551         * doc/posix-functions/posix_spawnattr_getschedparam.texi: Mention the
44552         new module.
44553
44554         New module 'posix_spawnattr_setpgroup'.
44555         * modules/posix_spawnattr_setpgroup: New file.
44556         * lib/spawnattr_setpgroup.c: New file, from GNU libc with
44557         modifications.
44558         * doc/posix-functions/posix_spawnattr_setpgroup.texi: Mention the new
44559         module.
44560
44561         New module 'posix_spawnattr_getpgroup'.
44562         * modules/posix_spawnattr_getpgroup: New file.
44563         * lib/spawnattr_getpgroup.c: New file, from GNU libc with
44564         modifications.
44565         * doc/posix-functions/posix_spawnattr_getpgroup.texi: Mention the new
44566         module.
44567
44568         New module 'posix_spawnattr_setflags'.
44569         * modules/posix_spawnattr_setflags: New file.
44570         * lib/spawnattr_setflags.c: New file, from GNU libc with modifications.
44571         * doc/posix-functions/posix_spawnattr_setflags.texi: Mention the new
44572         module.
44573
44574         New module 'posix_spawnattr_getflags'.
44575         * modules/posix_spawnattr_getflags: New file.
44576         * lib/spawnattr_getflags.c: New file, from GNU libc with modifications.
44577         * doc/posix-functions/posix_spawnattr_getflags.texi: Mention the new
44578         module.
44579
44580         New module 'posix_spawnattr_init'.
44581         * modules/posix_spawnattr_init: New file.
44582         * lib/spawnattr_init.c: New file, from GNU libc with modifications.
44583         * doc/posix-functions/posix_spawnattr_init.texi: Mention the new
44584         module.
44585
44586         New module 'posix_spawn_file_actions_destroy'.
44587         * modules/posix_spawn_file_actions_destroy: New file.
44588         * lib/spawn_faction_destroy.c: New file, from GNU libc with
44589         modifications.
44590         * doc/posix-functions/posix_spawn_file_actions_destroy.texi: Mention
44591         the new module.
44592
44593         New module 'posix_spawn_file_actions_addopen'.
44594         * modules/posix_spawn_file_actions_addopen: New file.
44595         * lib/spawn_faction_addopen.c: New file, from GNU libc with
44596         modifications.
44597         * doc/posix-functions/posix_spawn_file_actions_addopen.texi: Mention
44598         the new module.
44599
44600         New module 'posix_spawn_file_actions_adddup2'.
44601         * modules/posix_spawn_file_actions_adddup2: New file.
44602         * lib/spawn_faction_adddup2.c: New file, from GNU libc with
44603         modifications.
44604         * doc/posix-functions/posix_spawn_file_actions_adddup2.texi: Mention
44605         the new module.
44606
44607         New module 'posix_spawn_file_actions_addclose'.
44608         * modules/posix_spawn_file_actions_addclose: New file.
44609         * lib/spawn_faction_addclose.c: New file, from GNU libc with
44610         modifications.
44611         * doc/posix-functions/posix_spawn_file_actions_addclose.texi: Mention
44612         the new module.
44613
44614         New module 'posix_spawn_file_actions_init'.
44615         * modules/posix_spawn_file_actions_init: New file.
44616         * lib/spawn_faction_init.c: New file, from GNU libc with modifications.
44617         * doc/posix-functions/posix_spawn_file_actions_init.texi: Mention the
44618         new module.
44619
44620         New module 'posix_spawn-internal'.
44621         * modules/posix_spawn-internal: New file.
44622         * lib/spawn_int.h: New file, from GNU libc with modifications.
44623         * lib/spawni.c: New file, from GNU libc with modifications.
44624         * m4/posix_spawn.m4: New file.
44625
44626         New module 'spawn'.
44627         * modules/spawn: New file.
44628         * lib/spawn.in.h: New file, from GNU libc with modifications.
44629         * m4/spawn_h.m4: New file.
44630         * doc/posix-headers/spawn.texi: Mention the new module.
44631
44632 2008-09-28  Bruno Haible  <bruno@clisp.org>
44633
44634         * modules/sched-tests: New file.
44635         * tests/test-sched.c: New file.
44636
44637         New module 'sched'.
44638         * modules/sched: New file.
44639         * lib/sched.in.h: New file.
44640         * m4/sched_h.m4: New file.
44641         * doc/posix-headers/sched.texi: Mention the new module.
44642
44643 2008-09-27  Eric Blake  <ebb9@byu.net>
44644
44645         Fix previous patch, and tweak references to $0.
44646         * posix-modules: Call func_gnulib_dir before using $gnulib_dir.
44647         (func_version, func_gnulib_dir): Don't call this program
44648         gnulib-tool.
44649         (func_gnulib_dir, func_tmpdir, func_fatal_error): Avoid shell bugs
44650         with using $0 in function.
44651         * gnulib-tool (func_gnulib_dir, func_tmpdir): Likewise.
44652         (func_fatal_error): Reuse the name the user invoked us with.
44653
44654 2008-09-27  Bruno Haible  <bruno@clisp.org>
44655
44656         * m4/iconv_h.m4 (gl_REPLACE_ICONV_H): New macro.
44657         (gl_ICONV_H_DEFAULTS): Initialize ICONV_H here...
44658         (gl_ICONV_H): Not here.
44659         * m4/iconv_open.m4 (gl_REPLACE_ICONV_OPEN): Invoke gl_REPLACE_ICONV_H
44660         instead of assigning ICONV_H directly.
44661
44662         * m4/wchar.m4 (gl_REPLACE_WCHAR_H): New macro.
44663         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Invoke it instead of assigning
44664         WCHAR_H directly.
44665
44666 2008-09-27  Bruno Haible  <bruno@clisp.org>
44667
44668         * lib/arpa_inet.in.h: Include the GL_LINK_WARNING anchor.
44669         * modules/arpa_inet (Depends-on): Add link-warning.
44670         (Makefile.am): Insert the definition of GL_LINK-WARNING.
44671         * modules/unistd (Makefile.am): Likewise.
44672
44673 2008-09-26  Bruno Haible  <bruno@clisp.org>
44674
44675         * posix-modules (cvsdatestamp, last_checkin_date, version): Remove
44676         variables.
44677         (func_version): Essentially copied from gnulib-tool.
44678         (func_exit, func_gnulib_dir, func_tmpdir, func_fatal_error,
44679         func_readlink): Copied from gnulib-tool.
44680
44681 2008-09-26  Bruno Haible  <bruno@clisp.org>
44682
44683         * gnulib-tool (func_version): Change directory to $gnulib_dir before
44684         invoking git-version-gen.
44685
44686 2008-09-26  Bruno Haible  <bruno@clisp.org>
44687
44688         * posix-modules: Update to directory names changed on 2008-01-19.
44689         Remove commas in output before splitting into words. No more need to
44690         avoid 'ftruncate' since 2007-02-19.
44691
44692 2008-09-26  Bruno Haible  <bruno@clisp.org>
44693
44694         * doc/posix-headers/errno.texi: Remove mention of module 'EOVERFLOW'.
44695
44696 2008-09-26  Bruno Haible  <bruno@clisp.org>
44697
44698         * lib/fwriteerror.c (do_fwriteerror): Ignore error EPIPE.
44699         * modules/fwriteerror (Depends-on): Add errno.
44700
44701 2008-09-26  Bruno Haible  <bruno@clisp.org>
44702
44703         * tests/test-vc-list-files-git.sh: Explain reason for skipping test.
44704         * tests/test-vc-list-files-cvs.sh: Likewise.
44705
44706 2008-09-26  Bruno Haible  <bruno@clisp.org>
44707
44708         * doc/posix-headers/sys_resource.texi: Reorder items.
44709
44710 2008-09-26  Jim Meyering  <meyering@redhat.com>
44711
44712         fts: tweak inode comparison function
44713         * lib/fts.c (fts_compare_ino): Sort on increasing, not decreasing
44714         inode numbers, as documented.
44715
44716         fts: sort dirent entries on inode number before traversing
44717         This avoids a quadratic, seek-related performance penalty when
44718         operating on a directory containing many entries (measurable at 10k;
44719         3.5 hours at 2 million entries with a cold cache) on certain types
44720         of file systems, including ext3 and ext4, but not tmpfs.
44721         * lib/fts.c (DT_MUST_BE, NOT_AN_INODE_NUMBER, D_INO): Define.
44722         (FTS_INODE_SORT_DIR_ENTRIES_THRESHOLD): Define if not defined.
44723         (S_MAGIC_TMPFS, S_MAGIC_NFS): Define.
44724         (fs_handles_readdir_ordered_dirents_efficiently): New function.
44725         (dirent_inode_sort_may_be_useful, fts_compare_ino): Likewise.
44726         (fts_build): Set the stat.st_ino member from D_INO.
44727         If it is likely to be useful, sort dirent entries on inode number.
44728
44729         * m4/fts.m4 (gl_FUNC_FTS_CORE): Check for fstatfs, sys/vfs.h,
44730         and the struct statfs.f_type member.
44731         * modules/fts (Depends-on): Add d-ino.
44732
44733 2008-09-26  Bruno Haible  <bruno@clisp.org>
44734
44735         * modules/sigpipe-die (Depends-on): Add sigpipe.
44736
44737         * lib/stdio.in.h (fprintf, vfprintf, printf, vprintf, fputc, putc,
44738         putchar, fputs, puts, fwrite): Replace when REPLACE_STDIO_WRITE_FUNCS
44739         and GNULIB_STDIO_H_SIGPIPE are set.
44740         * lib/stdio-write.c: New file.
44741         * m4/stdio_h.m4 (gl_STDIO_H): Set GNULIB_FPRINTF, GNULIB_PRINTF,
44742         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
44743         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
44744         REPLACE_STDIO_WRITE_FUNCS.
44745         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FPRINTF, GNULIB_PRINTF,
44746         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
44747         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
44748         GNULIB_STDIO_H_SIGPIPE, REPLACE_STDIO_WRITE_FUNCS.
44749         * modules/stdio (Files): Add lib/stdio-write.c.
44750         (Makefile.am): Substitute GNULIB_FPRINTF, GNULIB_PRINTF,
44751         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
44752         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
44753         GNULIB_STDIO_H_SIGPIPE, REPLACE_STDIO_WRITE_FUNCS.
44754         * m4/fprintf-posix.m4 (gl_REPLACE_FPRINTF): Define
44755         REPLACE_FPRINTF_POSIX.
44756         * m4/printf-posix-rpl.m4 (gl_REPLACE_PRINTF): Define
44757         REPLACE_PRINTF_POSIX.
44758         * m4/vfprintf-posix.m4 (gl_REPLACE_VFPRINTF): Define
44759         REPLACE_VFPRINTF_POSIX.
44760         * m4/vprintf-posix.m4 (gl_REPLACE_VPRINTF): Define
44761         REPLACE_VPRINTF_POSIX.
44762         * doc/posix-functions/fprintf.texi: Mention the sigpipe module and the
44763         SIGPIPE issue.
44764         * doc/posix-functions/fputc.texi: Likewise.
44765         * doc/posix-functions/fputs.texi: Likewise.
44766         * doc/posix-functions/fwrite.texi: Likewise.
44767         * doc/posix-functions/printf.texi: Likewise.
44768         * doc/posix-functions/putc.texi: Likewise.
44769         * doc/posix-functions/putchar.texi: Likewise.
44770         * doc/posix-functions/puts.texi: Likewise.
44771         * doc/posix-functions/vfprintf.texi: Likewise.
44772         * doc/posix-functions/vprintf.texi: Likewise.
44773
44774         * modules/safe-write (Depends-on): Add write.
44775
44776         * modules/sigpipe-tests: New file.
44777         * tests/test-sigpipe.c: New file.
44778         * tests/test-sigpipe.sh: New file.
44779
44780         * modules/write: New file.
44781         * lib/unistd.in.h: Include <sys/types.h>.
44782         (write): New declaration.
44783         * lib/write.c: New file.
44784         * m4/write.m4: New file.
44785         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
44786         GNULIB_UNISTD_H_SIGPIPE, GNULIB_WRITE, REPLACE_WRITE.
44787         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_SIGPIPE,
44788         GNULIB_WRITE, REPLACE_WRITE.
44789         * doc/posix-functions/write.texi: Mention the write, sigpipe modules
44790         and the SIGPIPE issue.
44791
44792         * lib/signal.in.h (SIGPIPE): Define to a replacement value.
44793         (raise): New declaration.
44794         * lib/sigprocmask.c (SIGPIPE_handler): New variable.
44795         (ext_signal): New function.
44796         (rpl_raise): New function.
44797         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize
44798         GNULIB_SIGNAL_H_SIGPIPE.
44799         * modules/signal (Makefile.am): Substitute GNULIB_SIGNAL_H_SIGPIPE.
44800         * doc/posix-headers/signal.texi: Mention the SIGPIPE issue.
44801
44802         * modules/sigpipe: New file.
44803         * m4/sigpipe.m4: New file.
44804
44805 2008-09-25  Derek Price  <derek@ximbiot.com>
44806             Bruno Haible  <bruno@clisp.org>
44807
44808         * gnulib-tool (func_import): Report all license incompatibilities, not
44809         just the first one.
44810
44811 2008-09-25  Bruno Haible  <bruno@clisp.org>
44812
44813         * gnulib-tool (func_import): When computing the edits, consider not
44814         only the Makefile.ams that exist but also those that will be generated.
44815
44816 2008-09-25  Simon Josefsson  <simon@josefsson.org>
44817
44818         * modules/sys_select-tests (Depends-on): Remove sys_select itself,
44819         fixes gnulib-tool --test warning about duplicate dependency.
44820
44821 2008-09-25  Bruno Haible  <bruno@clisp.org>
44822
44823         * gnulib-tool: Don't ask the user to perform edits in the generated
44824         Makefile.ams.
44825         (func_emit_lib_Makefile_am): Emit empty SUBDIRS. Execute edits that
44826         apply to the Makefile.am being generated.
44827         (func_emit_tests_Makefile_am): Execute edits that apply to the
44828         Makefile.am being generated.
44829         (func_import): Setup list of Makefile.am edits before emitting the
44830         Makefile.ams, not at the end.
44831         (func_create_testdir): Update.
44832         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
44833
44834 2008-09-25  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
44835
44836         * gnulib-tool (func_import): Store the --tests-base option in the
44837         comment in gnulib-cache.m4.
44838
44839 2008-09-24  Paolo Bonzini  <bonzini@gnu.org>
44840
44841         * NEWS: Document increased portability that sys_select now provides.
44842
44843         * lib/sys_select.in.h: Install select wrapper.
44844         * lib/sys_socket.in.h: Use more descriptive name when there is no
44845         select wrapper.
44846         * lib/winsock-select.c: New.
44847         * m4/sys_select_h.m4: Compile lib/winsock-select.c if WinSock is used.
44848         Require gl_HEADER_SYS_SOCKET.
44849         * modules/sys_select: Depend on alloca, add lib/winsock-select.c.
44850         * modules/sys_select-tests: Copy dependencies from modules/poll-tests.
44851         * tests/test-sys_select.c: Add functional tests.
44852
44853 2008-09-24  Eric Blake  <ebb9@byu.net>
44854
44855         open, fopen: close fd leak in last patch
44856         * lib/open.c (rpl_open): Close fd before returning error.
44857         * lib/fopen.c (rpl_fopen): Close fd before returning error.
44858         * doc/posix-functions/open.texi (open): Document that Irix also
44859         has the bug.
44860         * doc/posix-functions/fopen.texi (fopen): Likewise.
44861         Reported by Paolo Bonzini.
44862
44863 2008-09-24  Bruno Haible  <bruno@clisp.org>
44864
44865         Ensure that a filename ending in a slash cannot be used to access a
44866         non-directory.
44867         * lib/open.c (rpl_open): When the filename ends in a slash, use fstat()
44868         to check whether it's really a directory.
44869         * lib/fopen.c: Include fcntl.h, unistd.h.
44870         (rpl_fopen): When the filename ends in a slash, use open(), fstat(),
44871         and fdopen().
44872         * modules/fopen (Depends-on): Add unistd.
44873         * tests/test-open.c (main): Try to open "/dev/null/" as a directory.
44874         * tests/test-fopen.c (main): Likewise.
44875         * doc/posix-functions/open.texi: Mention the HP-UX, Solaris bug.
44876         * doc/posix-functions/fopen.texi: Likewise.
44877         Reported by Eric Blake.
44878
44879 2008-09-23  Eric Blake  <ebb9@byu.net>
44880
44881         c-stack: avoid compiler optimizations when provoking overflow
44882         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Make
44883         recursion harder to optimize, to ensure a stack overflow occurs.
44884         * tests/test-c-stack.c (recurse): Likewise.
44885         Borrowed from libsigsegv.
44886
44887         c-stack: work around Irix sigaltstack bug
44888         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Check
44889         whether sigaltstack uses wrong end of stack_t (copied in part from
44890         libsigsegv).
44891         * lib/c-stack.c (c_stack_action) [!HAVE_LIBSIGSEGV]: Work around
44892         Irix bug, without requiring an over-allocation.
44893         * doc/posix-functions/sigaltstack.texi (sigaltstack): Document the
44894         bug.
44895
44896         fopen: document mingw bug on directories
44897         * doc/posix-functions/fopen.texi (fopen): Mention mingw bug for
44898         not allowing a stream visiting a directory, even though reading
44899         from such a stream is not portable.
44900
44901 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
44902
44903         * lib/poll.c: Rewrite.
44904         * modules/poll: Depend on alloca.
44905
44906 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
44907
44908         * lib/sys_socket.in.h: Do not implement rpl_setsockopt here,
44909         instead define prototypes for a full set of wrappers.  Ensure
44910         that Cygwin does not use the compatibility code, which is only
44911         for MinGW.
44912         * lib/winsock.c: New.
44913         * m4/sys_socket_h.m4: Compile lib/winsock.c if WinSock is being used.
44914         * modules/sys_socket: Add lib/winsock.c.
44915
44916         * modules/poll-tests: Add errno and perror.
44917         * tests/test-poll.c: Use ioctl, not ioctlsocket.
44918
44919 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
44920
44921         * tests/test-poll.c: Downgrade minimum needed Winsock version.
44922
44923 2008-09-23  Bruno Haible  <bruno@clisp.org>
44924
44925         * doc/posix-functions/*: Add info about functions missing on IRIX 5.3.
44926         * doc/glibc-functions/*: Likewise.
44927
44928 2008-09-23  Simon Josefsson  <simon@josefsson.org>
44929
44930         * tests/test-perror.sh (tmpfiles): Cleanup temporary files on
44931         success.
44932
44933 2008-09-22  Eric Blake  <ebb9@byu.net>
44934             Bruno Haible  <bruno@clisp.org>
44935
44936         vasnprintf: fix x86/glibc regression on printf("%La", 0.0L)
44937         * lib/vasnprintf.c (VASNPRINTF): Support 0.0 on platforms that
44938         supply %A but mishandle pseudo-NaN.
44939         Reported by Simon Josefsson.
44940
44941 2008-09-21  Bruno Haible  <bruno@clisp.org>
44942
44943         * tests/test-lock.c (main): Tweak skip message.
44944         * tests/test-tls.c (main): Likewise.
44945
44946 2008-09-21  Bruno Haible  <bruno@clisp.org>
44947
44948         * m4/sigaction.m4 (gl_SIGACTION): Remove unnecessary AC_SUBST. Check
44949         whether 'struct sigaction' has sa_sigaction here...
44950         (gl_PREREQ_SIG_HANDLER_H): ... not here.
44951         (gl_PREREQ_SIGACTION): Remove unnecessary AC_SUBST.
44952
44953 2008-09-21  Bruno Haible  <bruno@clisp.org>
44954
44955         * MODULES.html.sh (Support for obsolete systems lacking ANSI C 89): New
44956         section.
44957         (Support for systems lacking ANSI C 89): Move stdlib, exit, strtol,
44958         strtoul, memchr, memcmp, memcpy, memmove, memset, strcspn, strpbrk to
44959         the new section.
44960         (Support for obsolete systems lacking POSIX:2001): New section.
44961         (String handling <string.h>): Move strdup to the new section.
44962         Suggested by Simon Josefsson and Paolo Bonzini.
44963
44964 2008-09-21  Bruno Haible  <bruno@clisp.org>
44965
44966         * tests/test-vasnprintf-posix.c (test_function): Allow 3-digit
44967         exponents in %e and %g results on 'long double'. Needed for mingw's
44968         improved *printf functions.
44969         * tests/test-vasprintf-posix.c (test_function): Likewise.
44970         * tests/test-snprintf-posix.h (test_function): Likewise.
44971         * tests/test-sprintf-posix.h (test_function): Likewise.
44972         Reported by Eric Blake.
44973
44974 2008-09-21  Bruno Haible  <bruno@clisp.org>
44975
44976         * tests/test-snprintf-posix.h (test_function): Remove useless ASSERTs.
44977         * tests/test-sprintf-posix.h (test_function): Likewise.
44978
44979 2008-09-21  Bruno Haible  <bruno@clisp.org>
44980
44981         * modules/getpass (Depends-on): Add strdup-posix.
44982
44983         New module 'strdup-posix'.
44984         * modules/strdup-posix: New file.
44985         * m4/strdup.m4 (gl_FUNC_STRDUP_POSIX): New macro.
44986         * lib/string.in.h (strdup): Replace if REPLACE_STRDUP is 1.
44987         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
44988         REPLACE_STRDUP.
44989         * modules/string (Makefile.am): Substitute REPLACE_STRDUP.
44990         * doc/posix-functions/strdup.texi: Mention module strdup-posix.
44991         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
44992         strdup-posix.
44993
44994         * modules/strdup (Depends-on): Remove malloc-posix.
44995
44996 2008-09-20  Bruno Haible  <bruno@clisp.org>
44997
44998         * lib/fstrcmp.c: Add data about branch probabilities, from Ralf
44999         Wildenhues.
45000
45001 2008-09-20  Bruno Haible  <bruno@clisp.org>
45002
45003         Ensure that wint_t gets defined on IRIX 5.3.
45004         * lib/wchar.in.h (wint_t): Define if not defined by the system.
45005         * lib/wctype.in.h (wint_t): Likewise.
45006         (__wctype_wint_t): Remove type.
45007         (isw*): Use wint_t instead of __wctype_wint_t.
45008         * m4/wchar.m4 (gl_WCHAR_H): Invoke gt_TYPE_WINT_T and set HAVE_WINT_T.
45009         * modules/wchar (Files): Add m4/wint_t.m4.
45010         (Makefile.am): Substitute HAVE_WINT_T.
45011         * tests/test-wchar.c: Check that wchar_t and wint_t are defined.
45012         * tests/test-wctype.c: Check that wint_t is defined.
45013         * doc/posix-headers/wchar.texi: Mention the IRIX 5 problem.
45014         * doc/posix-headers/wctype.texi: Likewise.
45015         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
45016
45017 2008-09-18  Bruno Haible  <bruno@clisp.org>
45018
45019         * gnulib-tool (func_exit): Update comment.
45020
45021 2008-09-18  Simon Josefsson  <simon@josefsson.org>
45022
45023         * modules/getaddrinfo (Depends-on): Remove strdup, this module
45024         assumes strdup exists and does not depend on strdup to return
45025         ENOMEM on out of memory conditions.
45026
45027 2008-09-18  Bruno Haible  <bruno@clisp.org>
45028
45029         * lib/vasnprintf.c (VASNPRINTF): When printing Â±0.0L in
45030         NEED_PRINTF_INFINITE_LONG_DOUBLE case with 'e' format, always use two
45031         digits for the exponent.
45032
45033 2008-09-18  Jim Meyering  <meyering@redhat.com>
45034             Bruno Haible  <bruno@clisp.org>
45035
45036         * lib/vasnprintf.c (decimal_point_char): Define also if
45037         NEED_PRINTF_INFINITE_LONG_DOUBLE.
45038
45039 2008-09-16  Bruno Haible  <bruno@clisp.org>
45040         and Eric Blake  <ebb9@byu.net>
45041
45042         vasnprintf: support Irix 5.3
45043         * lib/vasnprintf.c (VASNPRINTF): Also handle -0.0L on platforms
45044         that mishandle long double infinity.
45045         Reported by Tom G. Christensen.
45046
45047 2008-09-16  Bruno Haible  <bruno@clisp.org>
45048
45049         * doc/glibc-functions/scandir.texi: Mention the function is missing on
45050         Solaris 9.
45051         * doc/glibc-functions/alphasort.texi: Likewise.
45052         Reported by Michael Haubenwallner <michael.haubenwallner@salomon.at>.
45053
45054 2008-09-16  Jim Meyering  <meyering@redhat.com>
45055
45056         posix-shell.m4: reject opensolaris's "sh (AT&T Research) 1993-12-28 s+"
45057         * m4/posix-shell.m4 (gl_POSIX_SHELL): Reject a shell that lets
45058         a umask modification leak out of a subshell.  Otherwise, the
45059         opensolaris /bin/sh would be accepted and thus cause unwarranted
45060         failures in the coreutils test suite.
45061
45062 2008-09-16  Paolo Bonzini  <bonzini@gnu.org>
45063
45064         * tests/test-poll.c (connect_to_socket): Allow non-blocking connect
45065         to succeed.
45066
45067 2008-09-16  Jim Meyering  <meyering@redhat.com>
45068
45069         avoid spurious test failure when library is built without ACL support
45070         * m4/acl.m4 (USE_ACL): Define as a shell variable, too, for...
45071         * modules/acl-tests (Makefile.am) [TESTS_ENVIRONMENT]: Add USE_ACL.
45072         * tests/test-file-has-acl.sh: Skip if USE_ACL == 0.
45073         * tests/test-copy-acl.sh: Likewise.
45074
45075 2008-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
45076
45077         * lib/fstrcmp.c (fstrcmp_bounded): Use a second, less quick upper bound
45078         based on character occurrence counts.
45079
45080 2008-09-15  Eric Blake  <ebb9@byu.net>
45081
45082         tests: avoid some compiler warnings
45083         * tests/test-memchr.c (main): Pass NULL indirectly.
45084         * tests/test-closein.c (main): Avoid unused variable.
45085
45086 2008-09-15  Bruno Haible  <bruno@clisp.org>
45087
45088         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Test for all the macros that
45089         are missing on OpenBSD 4.0 individually.
45090         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
45091
45092 2008-09-15  Bruno Haible  <bruno@clisp.org>
45093
45094         * doc/posix-headers/errno.texi: Mention the Cygwin problem.
45095         * doc/posix-functions/strerror.texi: Mention also Cygwin.
45096         * doc/posix-functions/perror.texi: Likewise.
45097         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Test also whether ECANCELED
45098         is missing.
45099         Reported by Eric Blake.
45100
45101         * lib/errno.in.h: Use replacement values >= 2000.
45102         Reported by Eric Blake.
45103
45104 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
45105
45106         * lib/fstrcmp.c (EXTRA_CONTEXT_FIELDS): Add field 'edit_count_limit'.
45107         (EARLY_ABORT): Return true when the edit_count has grown too beyond the
45108         limit.
45109         (fstrcmp_bounded): Initialize the edit_count_limit. Return 0 when
45110         compareseq was aborted.
45111
45112 2008-09-14  Bruno Haible  <bruno@clisp.org>
45113
45114         * lib/fstrcmp.c (EXTRA_CONTEXT_FIELDS): Combine xvec_edit_count and
45115         yvec_edit_count.
45116         (NOTE_DELETE, NOTE_INSERT): Increment the combined edit count.
45117         (fstrcmp_bounded): Simplify result computation accordingly.
45118
45119 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
45120
45121         * lib/fstrcmp.h (fstrcmp_bounded): New declaration.
45122         (fstrcmp): Define in terms of fstrcmp_bounded.
45123         * lib/fstrcmp.c (fstrcmp_bounded): Renamed from fstrcmp. Add
45124         lower_bound argument.
45125         Return quickly if the result is certainly < lower_bound.
45126         * tests/test-fstrcmp.c (check_fstrcmp): Test also fstrcmp_bounded.
45127
45128 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
45129
45130         * lib/diffseq.h (EARLY_ABORT): New macro.
45131         (compareseq): Change return type to bool. Return true when EARLY_ABORT
45132         evaluates to true.
45133
45134 2008-09-14  Bruno Haible  <bruno@clisp.org>
45135
45136         * modules/perror-tests: New file.
45137         * tests/test-perror.sh: New file.
45138         * tests/test-perror.c: New file.
45139
45140         New module 'perror'.
45141         * lib/stdio.in.h (perror): New declaration.
45142         * lib/perror.c: New file.
45143         * m4/perror.m4: New file.
45144         * modules/perror: New file.
45145         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add perror.
45146         * doc/posix-functions/perror.texi: Mention the perror module.
45147         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_PERROR,
45148         REPLACE_PERROR.
45149         * modules/stdio (Makefile.am): Substitute GNULIB_PERROR,
45150         REPLACE_PERROR.
45151
45152 2008-09-14  Bruno Haible  <bruno@clisp.org>
45153
45154         * modules/stdio (Makefile.am): Reorder to match the order in
45155         lib/stdio.in.h.
45156         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
45157
45158 2008-09-13  Bruno Haible  <bruno@clisp.org>
45159
45160         * lib/sys_socket.in.h (EINPROGRESS, ...): Remove definitions.
45161
45162 2008-09-13  Bruno Haible  <bruno@clisp.org>
45163
45164         Extend strerror to cover the added errno values.
45165         * lib/strerror.c: Include errno.h and winsock2.h if it exists.
45166         (rpl_strerror): Provide error messages for the added errno values and
45167         for the WSA* values.
45168         * m4/strerror.m4 (gl_FUNC_STRERROR): Test REPLACE_STRERROR.
45169         (gl_FUNC_STRERROR_SEPARATE): If errno.h is replaced, always replace
45170         strerror.
45171         (gl_PREREQ_STRERROR): Test whether winsock2.h exists.
45172         * modules/strerror (Depends-on): Add errno.
45173         * doc/posix-functions/strerror.texi: Document the change.
45174         * tests/test-strerror.c (main): Check also the string for ETIMEDOUT
45175         and EOVERFLOW.
45176
45177 2008-09-13  Bruno Haible  <bruno@clisp.org>
45178
45179         * modules/EOVERFLOW: Remove file.
45180         * m4/eoverflow.m4: Remove file.
45181         * modules/EOVERFLOW-tests: Remove file.
45182         * tests/test-EOVERFLOW.c: Remove file.
45183         * modules/fprintf-posix (Depends-on): Replace EOVERFLOW with errno.
45184         * modules/ftell (Depends-on): Likewise.
45185         * modules/getdelim (Depends-on): Likewise.
45186         * modules/getugroups (Depends-on): Likewise.
45187         * modules/poll (Depends-on): Likewise.
45188         * modules/snprintf (Depends-on): Likewise.
45189         * modules/sprintf-posix (Depends-on): Likewise.
45190         * modules/vasnprintf (Depends-on): Likewise.
45191         * modules/vasprintf (Depends-on): Likewise.
45192         * modules/vfprintf-posix (Depends-on): Likewise.
45193         * modules/vsnprintf (Depends-on): Likewise.
45194         * modules/vsprintf-posix (Depends-on): Likewise.
45195         * modules/xvasprintf (Depends-on): Likewise.
45196         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
45197         * modules/unistdio/u8-vasprintf (Depends-on): Likewise.
45198         * modules/unistdio/u8-vsnprintf (Depends-on): Likewise.
45199         * modules/unistdio/u8-vsprintf (Depends-on): Likewise.
45200         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
45201         * modules/unistdio/u8-u8-vasprintf (Depends-on): Likewise.
45202         * modules/unistdio/u8-u8-vsnprintf (Depends-on): Likewise.
45203         * modules/unistdio/u8-u8-vsprintf (Depends-on): Likewise.
45204         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
45205         * modules/unistdio/u16-u16-vasprintf (Depends-on): Likewise.
45206         * modules/unistdio/u16-u16-vsnprintf (Depends-on): Likewise.
45207         * modules/unistdio/u16-u16-vsprintf (Depends-on): Likewise.
45208         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
45209         * modules/unistdio/u16-vasprintf (Depends-on): Likewise.
45210         * modules/unistdio/u16-vsnprintf (Depends-on): Likewise.
45211         * modules/unistdio/u16-vsprintf (Depends-on): Likewise.
45212         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
45213         * modules/unistdio/u32-vasprintf (Depends-on): Likewise.
45214         * modules/unistdio/u32-vsnprintf (Depends-on): Likewise.
45215         * modules/unistdio/u32-vsprintf (Depends-on): Likewise.
45216         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
45217         * modules/unistdio/u32-u32-vasprintf (Depends-on): Likewise.
45218         * modules/unistdio/u32-u32-vsnprintf (Depends-on): Likewise.
45219         * modules/unistdio/u32-u32-vsprintf (Depends-on): Likewise.
45220         * modules/unistdio/ulc-fprintf (Depends-on): Likewise.
45221         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
45222         * modules/unistdio/ulc-vasprintf (Depends-on): Likewise.
45223         * modules/unistdio/ulc-vfprintf (Depends-on): Likewise.
45224         * modules/unistdio/ulc-vsnprintf (Depends-on): Likewise.
45225         * modules/unistdio/ulc-vsprintf (Depends-on): Likewise.
45226         * MODULES.html.sh: Remove EOVERFLOW.
45227         * NEWS: Mention the change.
45228
45229 2008-09-13  Bruno Haible  <bruno@clisp.org>
45230
45231         * modules/errno-tests: New file.
45232         * tests/test-errno.c: New file, incorporating tests/test-EOVERFLOW.c.
45233
45234         * lib/errno.in.h: New file.
45235         * m4/errno_h.m4: New file, borrowing from m4/eoverflow.m4.
45236         * modules/errno: New file.
45237         * doc/posix-headers/errno.texi: Update documentation.
45238         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add errno.
45239
45240 2008-09-13  Bruno Haible  <bruno@clisp.org>
45241
45242         * tests/test-poll.c: Use #if for native Windows, rather than testing
45243         __MSVCRT__.
45244
45245 2008-09-13  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
45246             Bruno Haible  <bruno@clisp.org>
45247
45248         * lib/glob.c: Don't include <pwd.h> on native Windows.
45249         (WINDOWS32): New macro.
45250         (glob) [WINDOW32]: Provide a reasonable replacement for getenv("HOME").
45251
45252 2008-09-13  Bruno Haible  <bruno@clisp.org>
45253
45254         * lib/glthread/cond.h [USE_SOLARIS_THREADS]
45255         (ETIMEDOUT): Remove macro.
45256         (glthread_cond_timedwait_multithreaded): New declaration.
45257         (glthread_cond_timedwait): Use it.
45258         * lib/glthread/cond.c [USE_SOLARIS_THREADS]
45259         (glthread_cond_timedwait_multithreaded): New function.
45260
45261 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
45262
45263         * modules/poll-tests: Do not check for io.h.
45264         * tests/test-poll.c: Check for __MSVCRT__ instead.
45265
45266 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
45267
45268         * lib/sys_socket.in.h (EINPROGRESS): Define for Winsock case.
45269         * modules/poll-tests: Add inet_pton, stdbool, sockets.
45270         * tests/test-poll.c: Use them.  Use _pipe on Windows.
45271
45272 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
45273
45274         * modules/poll-tests: New.
45275         * tests/test-poll.c: New.
45276
45277 2008-09-12  Eric Blake  <ebb9@byu.net>
45278
45279         frexp: test for NetBSD failure on -0.0
45280         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Enhance test, since some, but
45281         not all, bugs from NetBSD 3.0 have been fixed.
45282         * doc/posix-functions/frexp.texi (frexp): Document bug.
45283         Reported by Thomas Klausner.
45284
45285         signbit: work around bug of HP-UX 10.20 cc with -0.0 literal
45286         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Rewrite test to avoid
45287         literal -0.0.
45288         Reported by Jonathan C. Patschke <jp@centtech.com>.
45289
45290 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
45291
45292         * lib/glthread/cond.h: Use dummy implementation also if
45293         USE_WIN32_THREADS.
45294
45295 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
45296
45297         * modules/fnmatch-posix (License): Change to LGPLv2+.
45298         * modules/fnmatch-gnu (License): Likewise.
45299
45300 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
45301
45302         * lib/poll.c (poll): Fix polling unconnected server sockets on WIN32.
45303
45304 2008-09-11  Jim Meyering  <meyering@redhat.com>
45305
45306         * users.txt: Add gtk-vnc.
45307
45308 2008-09-08  Simon Josefsson  <simon@josefsson.org>
45309
45310         * tests/test-bitrotate.c: Test 8/16-bit rotates with 0 and maximum
45311         rotate amounts.
45312
45313         * lib/bitrotate.h: Doc fix, mention that N can be wider than minimally
45314         required for 16-bit and 8-bit rotates.
45315         * lib/bitrotate.h (rotl64, rotr64, rotl32, rotl32, rotl16, rotr16,
45316         rotl8, rotr8): Use UINT64_MAX, UINT32_MAX, UINT16_MAX, and
45317         UINT8_MAX instead of hard-coded constants.
45318         Suggested by Paul Eggert.
45319
45320 2008-09-07  Bruno Haible  <bruno@clisp.org>
45321
45322         * tests/test-striconveh.c (main): Check behaviour when converting from
45323         UTF-7.
45324
45325         Make striconveh work better with stateful encodings.
45326         * lib/striconveh.c (iconv_carefully, iconv_carefully_1): Don't assume
45327         that iconv does not increment the inptr when returning -1/EINVAL.
45328
45329 2008-09-07  Bruno Haible  <bruno@clisp.org>
45330
45331         * build-aux/config.rpath: Update according to libtool-2.2.6.
45332         * build-aux/config.libpath: Likewise.
45333
45334 2008-09-06  Bruno Haible  <bruno@clisp.org>
45335
45336         * lib/freadahead.c (freadahead): Add conditional for SLOW_BUT_NO_HACKS.
45337         * lib/freadptr.c (freadptr): Likewise.
45338         * lib/freadseek.c (freadptrinc): Likewise.
45339         Reported by Simon Josefsson.
45340
45341 2008-09-06  Bruno Haible  <bruno@clisp.org>
45342
45343         * modules/freadptr (License): Change to LGPLv2+.
45344         * modules/freadseek (License): Likewise.
45345         Suggested by Eric Blake.
45346
45347         * modules/memchr2 (License): Change to LGPLv2+.
45348         Approved by Eric Blake.
45349
45350 2008-09-04  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
45351             Bruno Haible  <bruno@clisp.org>
45352
45353         Make gnulib-tool work with native 'sed' on AIX.
45354         * gnulib-tool (sed_noop): New variable.
45355         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am, func_import,
45356         func_add_or_update, func_create_testdir): Use it to initialize sed
45357         script variables.
45358         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
45359
45360 2008-09-04  Albert Chin  <bug-gnulib@mlists.thewrittenword.com>
45361             Bruno Haible  <bruno@clisp.org>
45362
45363         * m4/include_next.m4 (gl_INCLUDE_NEXT): Add check whether #include_next
45364         also works after #include directives.
45365
45366 2008-09-04  OndÅ™ej Vašík  <ovasik@redhat.com>
45367
45368         getdate.y: reject an out-of-range timezone value
45369         * lib/getdate.y (time_zone_hhmm): Reject any TZ offset that is outside
45370         the range [-24...+24].  When specified with only one or two digits,
45371         * tests/test-getdate.c: Tests for the fix.
45372         * doc/getdate.texi: Document this change.
45373
45374 2008-09-03  Bruno Haible  <bruno@clisp.org>
45375
45376         * doc/glibc-functions/strverscmp.texi: Mention the strverscmp module.
45377
45378 2008-09-02  Simon Josefsson  <simon@josefsson.org>
45379
45380         * lib/bitrotate.h (rotl64, rotr64): Add.  Suggested by Bruce Korb
45381         <bruce.korb@gmail.com> with ideas from Ben Pfaff
45382         <blp@cs.stanford.edu>, Bruno Haible <bruno@clisp.org> and Eric
45383         Blake <ebb9@byu.net>.
45384
45385         * tests/test-bitrotate.c: Add more test vectors.
45386
45387 2008-09-02  Eric Blake  <ebb9@byu.net>
45388
45389         vasnprintf-posix: handle large precision via %.*d
45390         * lib/vasnprintf.c (VASNPRINTF): Don't pass precision to snprintf
45391         when handling it ourselves.
45392         * tests/test-vasnprintf-posix.c (test_function): Add test.
45393         * tests/test-snprintf-posix.h (test_function): Likewise.
45394         * tests/test-sprintf-posix.h (test_function): Likewise.
45395         * tests/test-vasprintf-posix.c (test_function): Likewise.
45396         Reported by Alain Guibert.
45397
45398 2008-09-01  Eric Blake  <ebb9@byu.net>
45399
45400         c-stack: make configure-time check more robust
45401         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Check for
45402         successful sigaction call.
45403         Reported by Tom G. Christensen.
45404
45405 2008-09-01  Bruno Haible  <bruno@clisp.org>
45406
45407         New module 'findprog-lgpl'.
45408         * modules/findprog-lgpl: New file.
45409         * lib/findprog-lgpl.c: New file.
45410         * lib/findprog.c: Compile nothing in findprog.c if findprog-lgpl.c is
45411         also compiled. Consider the possibly defined symbol IN_FINDPROG_LGPL
45412         to decide whether to use strdup or xstrdup, concatenated_filename or
45413         xconcatenated_filename.
45414
45415 2008-09-01  Bruno Haible  <bruno@clisp.org>
45416
45417         Split module 'concat-filename' into 'concat-filename' (LGPL) and
45418         'xconcat-filename' (GPL).
45419         * modules/concat-filename (Depends-on): Add malloc-posix, remove xalloc.
45420         (License): Change to LGPLv2+.
45421         * modules/xconcat-filename: New file.
45422         * lib/concat-filename.h (concatenated_filename): Change specification.
45423         (xconcatenated_filename): New declaration.
45424         * lib/concat-filename.c: Include errno.h, stdlib.h, not xalloc.h.
45425         (concatenated_filename): Use malloc instead of xalloc. Handle out-of-
45426         memory situations.
45427         * lib/xconcat-filename.c: New file.
45428         * NEWS: Mention the change.
45429         * lib/findprog.c: Include concat-filename.h, not filename.h.
45430         (find_in_path): Use xconcatenated_filename instead of
45431         concatenated_filename.
45432         * lib/javacomp.c: Include concat-filename.h, not filename.h.
45433         (is_envjavac_gcj43_usable, is_envjavac_oldgcj_14_14_usable,
45434         is_envjavac_oldgcj_14_13_usable, is_envjavac_nongcj_usable,
45435         is_gcj_present, is_gcj43_usable, is_oldgcj_14_14_usable,
45436         is_oldgcj_14_13_usable, is_javac_usable): Use xconcatenated_filename
45437         instead of concatenated_filename.
45438         * lib/javaexec.c: Include concat-filename.h, not filename.h.
45439         (execute_java_class): Use xconcatenated_filename instead of
45440         concatenated_filename.
45441         * modules/findprog (Depends-on): Add xconcat-filename, remove filename.
45442         * modules/javacomp (Depends-on): Likewise.
45443         * modules/javaexec (Depends-on): Likewise.
45444
45445 2008-09-01  Bruno Haible  <bruno@clisp.org>
45446
45447         Split module 'filename' into 'filename' and 'concat-filename'.
45448         * modules/filename: Keep only lib/filename.h.
45449         (License): Change to LGPLv2+.
45450         * modules/concat-filename: New file, extracted from modules/filename.
45451         * lib/filename.h (concatenated_filename): Remove declaration.
45452         * lib/concat-filename.h: New file, extracted from lib/filename.h.
45453         * lib/concat-filename.c: Include concat-filename.h.
45454         * NEWS: Mention the change.
45455
45456 2008-09-01  Simon Josefsson  <simon@josefsson.org>
45457
45458         * lib/bitrotate.h (rotl8, rotr8): Add.
45459
45460         * modules/bitrotate (configure.ac): Need
45461         AC_REQUIRE([AC_C_INLINE]).
45462         (Description): Mention stdint.h.  Reported by Bruno Haible
45463         <bruno@clisp.org>.
45464
45465         * lib/bitrotate.h (rotr16, rotl16): Fix mask value.  Reported by
45466         Paolo Bonzini <bonzini@gnu.org>.
45467
45468 2008-08-31  Bruno Haible  <bruno@clisp.org>
45469
45470         Assume Solaris specific bi-arch conventions on Solaris systems.
45471         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): On Solaris in 64-bit
45472         mode, set acl_libdirstem to lib/64. Also set acl_libdirstem2.
45473         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): If acl_libdirstem does not
45474         work, try acl_libdirstem2 as fallback. Otherwise treat acl_libdirstem2
45475         like acl_libdirstem.
45476         (AC_LIB_LINKFLAGS_FROM_LIBS): Treat acl_libdirstem2 like
45477         acl_libdirstem.
45478         * NEWS: Mention the change.
45479         Reported by Ben Taylor <bentaylor.solx86@gmail.com>.
45480
45481 2008-08-31  Jim Meyering  <meyering@redhat.com>
45482
45483         * lib/strftime.h: Add comments describing the two added arguments.
45484
45485         remove duplicate #include directives
45486         * lib/chdir-long.c [TEST_CHDIR]: Remove duplicate #include <stdio.h>.
45487         * lib/putenv.c: Remove duplicate #include <stdlib.h>.
45488
45489 2008-08-31  Bruno Haible  <bruno@clisp.org>
45490
45491         New module 'sigpipe-die'.
45492         * modules/sigpipe-die: New file.
45493         * lib/sigpipe-die.h: New file.
45494         * lib/sigpipe-die.c: New file.
45495         * MODULES.html.sh (Signal handling): Add sigpipe-die.
45496
45497 2008-08-31  Bruno Haible  <bruno@clisp.org>
45498
45499         Don't override previously installed signal handlers.
45500         * lib/fatal-signal.c (saved_sigactions): New variable.
45501         (uninstall_handlers): Reset the signal to the saved handler, not
45502         to SIG_DFL (except when ignored).
45503         (install_handlers): Save the previous handlers.
45504
45505 2008-08-30  Bruno Haible  <bruno@clisp.org>
45506
45507         * gnulib-tool (func_reset_sigpipe): New function.
45508         (func_get_automake_snippet, func_modules_transitive_closure,
45509         func_import): Invoke it before a join command that reads from stdin,
45510         to avoid "echo: write error: Broken pipe" error messages on stderr.
45511         Reported by Sam Steingold <sds@gnu.org>.
45512
45513 2008-08-30  Bruno Haible  <bruno@clisp.org>
45514
45515         * m4/fopen.m4 (gl_FUNC_FOPEN): Test against bug with trailing slash.
45516         Code copied from m4/open.m4.
45517         * lib/fopen.c (rpl_fopen): Return NULL if the mode specifies write
45518         access and the filename ends in a slash. Code copied from lib/open.c.
45519         * doc/posix-functions/fopen.texi: Document bug with trailing slash.
45520         * tests/test-fopen.c (main): Check against bug with trailing slash.
45521
45522 2008-08-29  Bruno Haible  <bruno@clisp.org>
45523
45524         Avoid some "gcc -pedantic" warnings.
45525         * m4/include_next.m4 (gl_INCLUDE_NEXT): Set also PRAGMA_SYSTEM_HEADER.
45526         * lib/arpa_inet.in.h: Use PRAGMA_SYSTEM_HEADER.
45527         * lib/dirent.in.h: Likewise.
45528         * lib/fcntl.in.h: Likewise.
45529         * lib/float.in.h: Likewise.
45530         * lib/iconv.in.h: Likewise.
45531         * lib/inttypes.in.h: Likewise.
45532         * lib/locale.in.h: Likewise.
45533         * lib/math.in.h: Likewise.
45534         * lib/netinet_in.in.h: Likewise.
45535         * lib/search.in.h: Likewise.
45536         * lib/signal.in.h: Likewise.
45537         * lib/stdarg.in.h: Likewise.
45538         * lib/stdint.in.h: Likewise.
45539         * lib/stdio.in.h: Likewise.
45540         * lib/stdlib.in.h: Likewise.
45541         * lib/string.in.h: Likewise.
45542         * lib/strings.in.h: Likewise.
45543         * lib/sys_select.in.h: Likewise.
45544         * lib/sys_socket.in.h: Likewise.
45545         * lib/sys_stat.in.h: Likewise.
45546         * lib/sys_time.in.h: Likewise.
45547         * lib/sysexits.in.h: Likewise.
45548         * lib/time.in.h: Likewise.
45549         * lib/unistd.in.h: Likewise.
45550         * lib/wchar.in.h: Likewise.
45551         * lib/wctype.in.h: Likewise.
45552         * modules/arpa_inet (Makefile.am): Also substitute PRAGMA_SYSTEM_HEADER.
45553         * modules/fchdir (Makefile.am): Likewise.
45554         * modules/fcntl (Makefile.am): Likewise.
45555         * modules/float (Makefile.am): Likewise.
45556         * modules/iconv_open (Makefile.am): Likewise.
45557         * modules/inttypes (Makefile.am): Likewise.
45558         * modules/locale (Makefile.am): Likewise.
45559         * modules/math (Makefile.am): Likewise.
45560         * modules/netinet_in (Makefile.am): Likewise.
45561         * modules/search (Makefile.am): Likewise.
45562         * modules/signal (Makefile.am): Likewise.
45563         * modules/stdarg (Makefile.am): Likewise.
45564         * modules/stdint (Makefile.am): Likewise.
45565         * modules/stdio (Makefile.am): Likewise.
45566         * modules/stdlib (Makefile.am): Likewise.
45567         * modules/string (Makefile.am): Likewise.
45568         * modules/strings (Makefile.am): Likewise.
45569         * modules/sys_select (Makefile.am): Likewise.
45570         * modules/sys_socket (Makefile.am): Likewise.
45571         * modules/sys_stat (Makefile.am): Likewise.
45572         * modules/sys_time (Makefile.am): Likewise.
45573         * modules/sysexits (Makefile.am): Likewise.
45574         * modules/time (Makefile.am): Likewise.
45575         * modules/unistd (Makefile.am): Likewise.
45576         * modules/wchar (Makefile.am): Likewise.
45577         * modules/wctype (Makefile.am): Likewise.
45578         Reported by Reuben Thomas <rrt@sc3d.org>.
45579
45580 2008-08-29  Bruno Haible  <bruno@clisp.org>
45581
45582         * m4/include_next.m4 (gl_INCLUDE_NEXT): Don't define HAVE_INCLUDE_NEXT
45583         any more.
45584
45585 2008-08-29  Simon Josefsson  <simon@josefsson.org>
45586
45587         * MODULES.html.sh (Misc): Add bitrotate.
45588
45589         * modules/bitrotate: New file.
45590
45591         * lib/bitrotate.h: New file.
45592
45593         * modules/bitrotate-tests: New file.
45594
45595         * tests/test-bitrotate.c: New file.
45596
45597         * modules/crypto/gc-arctwo, modules/crypto/arctwo: Add dependency
45598         on the bitrotate module.
45599
45600         * lib/arctwo.c: Use new bitrotate module.
45601
45602 2008-08-29  Jim Meyering  <meyering@redhat.com>
45603
45604         bootstrap: merge changes from coreutils
45605         * build-aux/bootstrap (cp_mark_as_generated): Preserve perms
45606         of copied files.  Remove a kludge, now that this is fixed.
45607         * build-aux/bootstrap: Fix unportable expr usage. (by Ralf Wildenhues)
45608         * build-aux/bootstrap: Remove $bt and $bt2 also when not using gettext.
45609         * build-aux/bootstrap: Remove coreutils-specific SUBDIRS-related code.
45610
45611 2008-08-29  Bruno Haible  <bruno@clisp.org>
45612
45613         * MODULES.html.sh: Remove --cvs-urls option.
45614
45615 2008-08-28  Jose E. Marchesi  <jemarch@gnu.org>  (tiny change)
45616
45617         maint.mk: adjust to file name change
45618         * top/maint.mk: s/Makefile.cfg/cfg.mk/.
45619
45620 2008-08-28  Jim Meyering  <meyering@redhat.com>
45621
45622         * modules/getndelim2 (License): Relicense to LGPLv2+.
45623         Approved by Richard Stallman for the version of 1995, and by
45624         Paul Eggert, Bruno Haible, Eric Blake for their contributions.
45625
45626 2008-08-27  Paolo Bonzini  <bonzini@gnu.org>
45627
45628         * lib/getdelim.c (flockfile, funlockfile): Make all of them
45629         dummy if one is not available.  Do not touch them if
45630         USE_UNLOCKED_IO, instead letting unlocked-io.h do that.
45631         (getc_maybe_unlocked): New.
45632         * m4/getdelim.m4 (gl_PREREQ_GETDELIM): Check for getc_unlocked.
45633
45634 2008-08-26  Eric Blake  <ebb9@byu.net>
45635
45636         doc/INSTALL: resync from autoconf
45637         * doc/Makefile (INSTALL, INSTALL.ISO, INSTALL.UTF-8): Simplify.
45638         (INSTALL_PRELUDE): Delete; this is done more efficiently by
45639         moving...
45640         * install.texi [!autoconf]: ...here.  Resync from autoconf.
45641         * INSTALL: Regenerate.
45642         * INSTALL.ISO: New file.
45643         * INSTALL.UTF-8: Likewise.
45644
45645 2008-08-26  Jim Meyering  <meyering@redhat.com>
45646
45647         GNUmakefile: cfg.mk definitions override default autoreconf-rerun policy
45648         * top/GNUmakefile (_is-dist-target, _is-install-target): Make
45649         these definitions conditional, so that they may be overridden, too.
45650
45651 2008-08-26  Bruno Haible  <bruno@clisp.org>
45652
45653         Generate INSTALL file variants with prettier quotes.
45654         * doc/Makefile (INSTALL_PRELUDE): New macro.
45655         (INSTALL): Use it.
45656         (INSTALL.ISO, INSTALL.UTF-8): New rules.
45657
45658 2008-08-26  Bruno Haible  <bruno@clisp.org>
45659
45660         Run makeinfo in an English locale.
45661         * doc/Makefile (MAKEINFO): New variable.
45662
45663 2008-08-26  Bruno Haible  <bruno@clisp.org>
45664
45665         * doc/Makefile (INSTALL): Use --no-validate instead of --no-warn.
45666         Suggested by Eric Blake.
45667
45668 2008-08-25  Bruno Haible  <bruno@clisp.org>
45669
45670         * doc/Makefile (INSTALL): Generate with @firstparagraphindent set.
45671
45672 2008-08-25  Eric Blake  <ebb9@byu.net>
45673
45674         c-stack: test that stack overflow can be caught
45675         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Also check
45676         that platform allows handling stack overflow; at least OS/2 EMX
45677         has sigaltstack, but crashes before transferring control to
45678         handler on stack overflow.
45679         * lib/c-stack.c [HAVE_SIGALTSTACK]: Adjust conditions to also
45680         check for HAVE_STACK_OVERFLOW_HANDLING.
45681         Reported by Elbert Pol.
45682
45683 2008-08-25  Bruno Haible  <bruno@clisp.org>
45684
45685         * doc/posix-functions/strftime.texi: Fix description of strftime
45686         module.
45687
45688 2008-08-24  Bruno Haible  <bruno@clisp.org>
45689
45690         * tests/uniwidth/test-uc_width2.c: New file.
45691         * tests/uniwidth/test-uc_width2.sh: New file.
45692         * modules/uniwidth/width-tests (Files): Add the new files.
45693         (TESTS): Add uniwidth/test-uc_width2.sh.
45694         (TESTS_ENVIRONMENT): New variable.
45695         (check_PROGRAMS): Add test-uc_width2.
45696         (test_uc_width2_SOURCES): New variable.
45697
45698         Fix uc_width(0x00AB) bug, introduced on 2007-07-08.
45699         * lib/uniwidth/width.c (nonspacing_table_data): Set bit for 0x00AD,
45700         not 0x00AB.
45701         Reported by Alexander V. Lukyanov <lav@netis.ru>.
45702
45703 2008-08-22  Eric Blake  <ebb9@byu.net>
45704
45705         test-lock, test-tls: mention why a test is skipped
45706         * tests/test-lock.c (main) [!USE_*_THREADS]: Print why test is
45707         skipped.
45708         * tests/test-tls.c (main) [!USE_*_THREADS]: Likewise.
45709
45710         count-one-bits: relax license
45711         * modules/count-one-bits (License): Relicense to LGPLv2+.
45712         Suggested by Ludovic Courtès, approved by Ben Pfaff.
45713
45714 2008-08-22  Andreas Schwab  <schwab@suse.de>
45715
45716         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX):
45717         Remove spurious space in assignment.
45718
45719 2008-08-21  Simon Josefsson  <simon@josefsson.org>
45720
45721         * m4/autobuild.m4: Use TZ=UTC0 instead of TZ=UTC.  Reported by
45722         Paul Eggert <eggert@CS.UCLA.EDU>.
45723
45724 2008-08-20  Paolo Bonzini  <bonzini@gnu.org>
45725
45726         * modules/gettext: Add m4/threadlib.m4.
45727
45728 2008-08-19  Eric Blake  <ebb9@byu.net>
45729
45730         test-c-stack: fix compilation failure on FreeBSD 5.0
45731         * tests/test-c-stack.c [HAVE_SETRLIMIT]: Include prerequisite
45732         headers before <sys/resource.h>.
45733         * doc/posix-headers/sys_resource.texi (sys/resource.h): Document
45734         the bug.
45735         Reported by Nelson H. F. Beebe.
45736
45737         strverscmp: migrate from "strverscmp.h" to <string.h>
45738         * modules/string (Makefile.am): Add new hooks.
45739         * modules/strverscmp (Files): Remove strverscmp.h.
45740         (Depends-on): Add string.
45741         (configure.ac): Add indicator.
45742         (Include): Mention new header.
45743         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Provide new
45744         defaults.
45745         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Inform string module of
45746         results.
45747         * lib/strverscmp.h: Delete.
45748         * lib/string.in.h (strverscmp): Provide declaration, when needed.
45749         * tests/test-strverscmp.c (includes): Adjust client.
45750         * lib/check-version.c (includes): Likewise.
45751         * NEWS: Document the change.
45752
45753         strverscmp: add unit test
45754         * modules/strverscmp-tests: New file.
45755         * tests/test-strverscmp.c: Likewise.
45756
45757 2008-08-19  Simon Josefsson  <simon@josefsson.org>
45758
45759         * lib/gc-gnulib.c: Indentation cleanup.  Add some comments
45760         regarding Windows crypto stuff, from Mono.
45761
45762 2008-08-19  Adam Strzelecki <ono@java.pl>  (tiny change)
45763
45764         * lib/gc-gnulib.c: Use CRYPT_VERIFY_CONTEXT.  Try to use Intel CSP
45765         if present, for intel RND.  Return error on failures.
45766
45767 2008-08-18  Ben Pfaff  <blp@gnu.org>
45768
45769         gitlog-to-changelog: give better diagnostic for failed pipe-open
45770         * build-aux/gitlog-to-changelog: Improve error message: suggest
45771         that the version of Git may be too old.
45772
45773 2008-08-18  Simon Josefsson  <simon@josefsson.org>
45774
45775         * m4/autobuild.m4: Use TZ=UTC to avoid time zone complexity.  Use
45776         ISO 8601 format.  Suggested by Greg Troxel <gdt@ir.bbn.com>.
45777
45778 2008-08-18  Bruno Haible  <bruno@clisp.org>
45779
45780         * lib/glthread/thread.h [USE_SOLARIS_THREADS]: Use thread_in_use(), not
45781         pthread_in_use().
45782
45783 2008-08-18  Bruno Haible  <bruno@clisp.org>
45784
45785         * lib/glthread/threadlib.c: Include <pthread.h>.
45786
45787 2008-08-18  Bruno Haible  <bruno@clisp.org>
45788
45789         * lib/glthread/lock.h [USE_SOLARIS_THREADS]: Fix
45790         glthread_recursive_lock_* macros.
45791         * lib/glthread/lock.c (glthread_recursive_lock_destroy_multithreaded):
45792         Fix syntax error.
45793
45794 2008-08-18  Bruno Haible  <bruno@clisp.org>
45795
45796         * lib/glthread/thread.c: Avoid forcing a context switch right after
45797         thread creation.
45798
45799 2008-08-17  Bruno Haible  <bruno@clisp.org>
45800
45801         * lib/glthread/thread.c: New file, based on code from tests/test-lock.c.
45802         * lib/glthread/thread.h: Provide Win32 specific implementation.
45803         * modules/thread (Files): Add lib/glthread/thread.c.
45804         (Depends-on): Add lock.
45805         (Makefile.am): Add glthread/thread.c to lib_SOURCES.
45806
45807 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
45808
45809         New module 'yield'.
45810         * modules/yield: New file.
45811         * lib/glthread/yield.h: New file.
45812         * m4/yield.m4: New file.
45813         * MODULES.html.sh (Multithreading): Add yield.
45814
45815 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
45816
45817         New module 'thread'.
45818         * modules/thread: New file.
45819         * lib/glthread/thread.h: New file.
45820         * m4/thread.m4: New file.
45821         * MODULES.html.sh (Multithreading): Add thread.
45822
45823 2008-08-17  Bruno Haible  <bruno@clisp.org>
45824
45825         * lib/glthread/lock.h: Include <stdlib.h> always.
45826         * lib/glthread/tls.h: Likewise.
45827         * lib/glthread/cond.h: Likewise.
45828
45829 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
45830
45831         New module 'cond'.
45832         * modules/cond: New file.
45833         * lib/glthread/cond.h: New file.
45834         * lib/glthread/cond.c: New file.
45835         * m4/cond.m4: New file.
45836         * MODULES.html.sh (Multithreading): Add cond.
45837
45838 2008-08-16  Eric Blake  <ebb9@byu.net>
45839
45840         c-stack: fix regression on Irix 5.3 from 2008-06-21
45841         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Move check for
45842         sa_sigaction...
45843         * m4/sigaction.m4 (gl_PREREQ_SIG_HANDLER_H): ...here.
45844         (gl_PREREQ_SIGACTION): Depend on sig-handler.h prereq's.
45845         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Set the default.
45846         * modules/signal (Makefile.am): Use the value.
45847         * lib/signal.in.h (sa_sigaction) [HAVE_SIGACTION
45848         && !HAVE_STRUCT_SIGACTION_SA_SIGACTION]: Define.
45849         * doc/posix-headers/signal.texi (signal.h): Document this
45850         portability issue.
45851         * doc/posix-functions/sigaction.texi (sigaction): Likewise.
45852         Reported by Tom G. Christensen.
45853
45854 2008-08-17  Bruno Haible  <bruno@clisp.org>
45855
45856         New module 'threadlib'.
45857         * modules/threadlib: New file.
45858         * lib/glthread/threadlib.c: New file, extracted from
45859         lib/glthread/lock.c.
45860         * lib/glthread/lock.c (dummy_thread_func, glthread_in_use): Remove
45861         functions.
45862         * m4/threadlib.m4: New file, from m4/lock.m4, renaming gl_LOCK to
45863         gl_THREADLIB and gl_LOCK_EARLY to gl_THREADLIB_EARLY.
45864         * m4/lock.m4 (gl_LOCK_EARLY, gl_LOCK_EARLY_BODY, gl_LOCK_BODY): Remove
45865         macros.
45866         (gl_LOCK): Just require gl_THREADLIB and perform checks for lock.h.
45867         (gl_DISABLE_THREADS): Remove macro.
45868         * modules/lock (Files): Remove build-aux/config.rpath.
45869         (Depends-on): Remove havelib. Add threadlib.
45870         (configure.ac-early): Remove section.
45871         * m4/tls.m4 (gl_TLS): Require gl_THREADLIB instead of gl_LOCK.
45872         * modules/tls (Depends-on): Remove lock. Add threadlib.
45873         (Link): New section, copied from threadlib.
45874         * MODULES.html.sh (Multithreading): Add threadlib.
45875
45876 2008-08-14  Bruno Haible  <bruno@clisp.org>
45877
45878         * lib/glthread/lock.h (glthread_lock_lock, glthread_lock_unlock,
45879         glthread_lock_destroy, glthread_rwlock_rdlock, glthread_rwlock_wrlock,
45880         glthread_rwlock_unlock, glthread_rwlock_destroy,
45881         glthread_recursive_lock_lock, glthread_recursive_lock_unlock,
45882         glthread_recursive_lock_destroy): Define as macros always.
45883         * lib/glthread/lock.c (glthread_lock_lock_func): Renamed from
45884         glthread_lock_lock.
45885         (glthread_lock_unlock_func): Renamed from glthread_lock_unlock.
45886         (glthread_lock_destroy_func): Renamed from glthread_lock_destroy.
45887         (glthread_rwlock_rdlock_func): Renamed from glthread_rwlock_rdlock.
45888         (glthread_rwlock_wrlock_func): Renamed from glthread_rwlock_wrlock.
45889         (glthread_rwlock_unlock_func): Renamed from glthread_rwlock_unlock.
45890         (glthread_rwlock_destroy_func): Renamed from glthread_rwlock_destroy.
45891         (glthread_recursive_lock_lock_func): Renamed from
45892         glthread_recursive_lock_lock.
45893         (glthread_recursive_lock_unlock_func): Renamed from
45894         glthread_recursive_lock_unlock.
45895         (glthread_recursive_lock_destroy_func): Renamed from
45896         glthread_recursive_lock_destroy.
45897
45898 2008-08-14  Bruno Haible  <bruno@clisp.org>
45899
45900         * lib/glthread/lock.h: Renamed from lib/lock.h.
45901         * lib/glthread/lock.c: Renamed from lib/lock.c. Update includes.
45902         * lib/glthread/tls.h: Renamed from lib/tls.h.
45903         * lib/glthread/tls.c: Renamed from lib/tls.c. Update includes.
45904         * lib/fstrcmp.c: Update includes.
45905         * lib/strsignal.c: Update includes.
45906         * modules/lock (Files, Makefile.am): Update.
45907         (Include): Change to "glthread/lock.h".
45908         * modules/tls (Files, Makefile.am): Update.
45909         (Include): Change to "glthread/tls.h".
45910         * tests/test-lock.c: Update includes.
45911         * tests/test-tls.c: Update includes.
45912         * NEWS: Mention the renamed header files.
45913
45914 2008-08-11  Jim Meyering  <meyering@redhat.com>
45915
45916         * lib/fts_.h: Fix grammar (insert a missing "is") in a comment.
45917
45918 2008-08-11  Eric Blake  <ebb9@byu.net>
45919
45920         test-c-stack: avoid C99-ism
45921         * tests/test-c-stack.c (main): Fix whitespace, move declaration
45922         before statement.
45923         Reported by Alain Guibert.
45924
45925 2008-08-10  Jim Meyering  <meyering@redhat.com>
45926
45927         ensure that return value of uinttostr et al are not ignored
45928         * lib/inttostr.h (__GNUC_PREREQ): Define.
45929         (__attribute_warn_unused_result__): Define.
45930         (offtostr, imaxtostr, umaxtostr, uinttostr): Apply the attribute.
45931
45932 2008-08-07  Paolo Bonzini  <bonzini@gnu.org>
45933
45934         * lib/lock.c (glthread_recursive_lock_init_multithreaded)
45935         [!PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: Fix typo.
45936
45937 2008-08-07  Jim Meyering  <meyering@redhat.com>
45938
45939         * m4/inet_pton.m4: Fix typo in comment: s/inet_ntop/inet_pton/.
45940
45941         * modules/mkstemp (License): Relicense under LGPLv2+.
45942         * modules/tempname (License): Likewise.
45943
45944 2008-08-06  Bruno Haible  <bruno@clisp.org>
45945
45946         * lib/poll.c (poll): Further micro-optimization.
45947
45948 2008-08-06  Jim Meyering  <meyering@redhat.com>
45949
45950         inet_pton.c: use locale-independent tolower
45951         * lib/inet_pton.c: Include <c-ctype.h> rather than <ctype.h>.
45952         (inet_pton6): Use c_tolower rather than tolower.
45953         * modules/inet_pton (Depends-on): Add c-ctype.
45954
45955 2008-08-06  Paolo Bonzini  <bonzini@gnu.org>
45956
45957         * lib/poll.c (poll): Avoid division when timeout is 0, cache
45958         _SC_OPEN_MAX, avoid repeated access to errno.  Check for nfd < 0.
45959
45960 2008-08-06  Jim Meyering  <meyering@redhat.com>
45961
45962         * modules/inet_pton (License): Relicense under LGPLv2+.
45963
45964 2008-08-03  Bruno Haible  <bruno@clisp.org>
45965
45966         Additional non-aborting API for lock and tls.
45967         * lib/lock.h: Include <errno.h>.
45968         (glthread_lock_init): New macro/function.
45969         (gl_lock_init): Define as wrapper around glthread_lock_init.
45970         (glthread_lock_lock): New macro/function.
45971         (gl_lock_lock): Define as wrapper around glthread_lock_lock.
45972         (glthread_lock_unlock): New macro/function.
45973         (gl_lock_unlock): Define as wrapper around glthread_lock_unlock.
45974         (glthread_lock_destroy): New macro/function.
45975         (gl_lock_destroy): Define as wrapper around glthread_lock_destroy.
45976         (glthread_rwlock_init): New macro/function.
45977         (gl_rwlock_init): Define as wrapper around glthread_rwlock_init.
45978         (glthread_rwlock_rdlock): New macro/function.
45979         (gl_rwlock_rdlock): Define as wrapper around glthread_rwlock_rdlock.
45980         (glthread_rwlock_wrlock): New macro/function.
45981         (gl_rwlock_wrlock): Define as wrapper around glthread_rwlock_wrlock.
45982         (glthread_rwlock_unlock): New macro/function.
45983         (gl_rwlock_unlock): Define as wrapper around glthread_rwlock_unlock.
45984         (glthread_rwlock_destroy): New macro/function.
45985         (gl_rwlock_destroy): Define as wrapper around glthread_rwlock_destroy.
45986         (glthread_recursive_lock_init): New macro/function.
45987         (gl_recursive_lock_init): Define as wrapper around
45988         glthread_recursive_lock_init.
45989         (glthread_recursive_lock_lock): New macro/function.
45990         (gl_recursive_lock_lock): Define as wrapper around
45991         glthread_recursive_lock_lock.
45992         (glthread_recursive_lock_unlock): New macro/function.
45993         (gl_recursive_lock_unlock): Define as wrapper around
45994         glthread_recursive_lock_unlock.
45995         (glthread_recursive_lock_destroy): New macro/function.
45996         (gl_recursive_lock_destroy): Define as wrapper around
45997         glthread_recursive_lock_destroy.
45998         (glthread_once): New macro/function.
45999         (gl_once): Define as wrapper around glthread_once.
46000         Update function declarations.
46001         * lib/lock.c (glthread_rwlock_init_multithreaded): Renamed from
46002         glthread_rwlock_init. Return error code.
46003         (glthread_rwlock_rdlock_multithreaded): Renamed from
46004         glthread_rwlock_rdlock. Return error code.
46005         (glthread_rwlock_wrlock_multithreaded): Renamed from
46006         glthread_rwlock_wrlock. Return error code.
46007         (glthread_rwlock_unlock_multithreaded): Renamed from
46008         glthread_rwlock_unlock. Return error code.
46009         (glthread_rwlock_destroy_multithreaded): Renamed from
46010         glthread_rwlock_destroy. Return error code.
46011         (glthread_recursive_lock_init_multithreaded): Renamed from
46012         glthread_recursive_lock_init. Return error code.
46013         (glthread_recursive_lock_lock_multithreaded): Renamed from
46014         glthread_recursive_lock_lock. Return error code.
46015         (glthread_recursive_lock_unlock_multithreaded): Renamed from
46016         glthread_recursive_lock_unlock. Return error code.
46017         (glthread_recursive_lock_destroy_multithreaded): Renamed from
46018         glthread_recursive_lock_destroy. Return error code.
46019         (glthread_once_call): Make static.
46020         (glthread_once_multithreaded): Renamed from glthread_once.
46021         * lib/tls.h: Include <errno.h>.
46022         (glthread_tls_key_init): New macro/function.
46023         (gl_tls_key_init): Define as wrapper around glthread_tls_key_init.
46024         (glthread_tls_set): New macro/function.
46025         (gl_tls_set): Define as wrapper around glthread_tls_set.
46026         (glthread_tls_key_destroy): New macro/function.
46027         (gl_tls_key_destroy): Define as wrapper around glthread_tls_key_destroy.
46028         Update function declarations.
46029         * lib/tls.c (glthread_tls_get_multithreaded): Renamed from
46030         glthread_tls_get.
46031         Suggested by Yoann Vandoorselaere <yoann@prelude-ids.org>.
46032
46033 2008-08-04  Eric Blake  <ebb9@byu.net>
46034
46035         gnumakefile: use space, not TAB, outside of targets
46036         * top/GNUmakefile (_dummy): Fix whitespace error in prior edit.
46037
46038 2008-08-02  Jim Meyering  <meyering@redhat.com>
46039
46040         getdate.y: avoid locale-dependent date parsing failure
46041         In Turkish locales, getdate would fail to recognize keywords
46042         containing a lowercase "i".  The solution is not to rely on
46043         locale-sensitive case-conversion.
46044         * lib/getdate.y: Include <c-ctype.h> rather than <ctype.h>.
46045         (lookup_word): Use c_toupper in place of toupper.
46046         (yylex, get_date): Use c_ prefixed variants of isspace and isalpha, too.
46047         Reported by Vefa Bicakci <bicave@superonline.com> in
46048         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/14184>.
46049         * modules/getdate (Depends-on): Add c-ctype.
46050
46051 2008-08-02  Bruno Haible  <bruno@clisp.org>
46052
46053         * gnulib-tool (func_import): When updating or creating a .gitignore
46054         file, prepend each added line with a slash, and ignore leading slashes
46055         from the existing lines.
46056         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
46057
46058 2008-08-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
46059
46060         Portability fix for GNU make 3.79.1.
46061         * top/GNUmakefile: Avoid 'else COND', which older GNU make
46062         versions do not understand.
46063
46064 2008-08-01  Bruno Haible  <bruno@clisp.org>
46065
46066         Work around bug of HP-UX 10.20 cc with -0.0 literal.
46067         * tests/test-isnanf.h (zero): New variable.
46068         (main): Avoid literal -0.0f.
46069         * tests/test-isnand.h (zero): New variable.
46070         (main): Avoid literal -0.0.
46071         * tests/test-isnanl.h (zero): New variable.
46072         (main): Avoid literal -0.0L.
46073         * tests/test-isnan.c (zerof, zerod, zerol): New variables.
46074         (test_float, test_double, test_long_double): Avoid literals -0.0f,
46075         -0.0, -0.0L.
46076         * tests/test-signbit.c (test_signbitf): Avoid literal -0.0f.
46077         (test_signbitd): Avoid literal -0.0.
46078         (test_signbitl): Avoid literal -0.0L.
46079         * tests/test-ceilf1.c (zero): New variable.
46080         (main): Avoid literal -0.0f.
46081         * tests/test-ceill.c (zero): New variable.
46082         (main): Avoid literal -0.0L.
46083         * tests/test-floorf1.c (zero): New variable.
46084         (main): Avoid literal -0.0f.
46085         * tests/test-floorl.c (zero): New variable.
46086         (main): Avoid literal -0.0L.
46087         * tests/test-roundf1.c (zero): New variable.
46088         (main): Avoid literal -0.0f.
46089         * tests/test-round1.c (zero): New variable.
46090         (main): Avoid literal -0.0.
46091         * tests/test-roundl.c (zero): New variable.
46092         (main): Avoid literal -0.0L.
46093         * tests/test-truncf1.c (zero): New variable.
46094         (main): Avoid literal -0.0f.
46095         * tests/test-trunc1.c (zero): New variable.
46096         (main): Avoid literal -0.0.
46097         * tests/test-truncl.c (zero): New variable.
46098         (main): Avoid literal -0.0L.
46099         * tests/test-frexp.c (zero): New variable.
46100         (main): Avoid literal -0.0.
46101         * tests/test-frexpl.c (zero): New variable.
46102         (main): Avoid literal -0.0L.
46103         * tests/test-ldexpl.c (zero): New variable.
46104         (main): Avoid literal -0.0L.
46105         * tests/test-snprintf-posix.h (have_minus_zero): Avoid literal -0.0.
46106         (zerod, zerol): New variables.
46107         (test_function): Avoid literals -0.0, -0.0L.
46108         * tests/test-sprintf-posix.h (have_minus_zero): Avoid literal -0.0.
46109         (zerod, zerol): New variables.
46110         (test_function): Avoid literals -0.0, -0.0L.
46111         * tests/test-vasnprintf-posix.c (have_minus_zero): Avoid literal -0.0.
46112         (zerod, zerol): New variables.
46113         (test_function): Avoid literals -0.0, -0.0L.
46114         * tests/test-vasprintf-posix.c (have_minus_zero): Avoid literal -0.0.
46115         (zerod, zerol): New variables.
46116         (test_function): Avoid literals -0.0, -0.0L.
46117         * tests/test-strtod.c (zero): New variable.
46118         (main): Avoid literal -0.0.
46119         Reported by Jonathan C. Patschke <jp@centtech.com>.
46120
46121 2008-07-31  Jim Meyering  <meyering@redhat.com>
46122
46123         sha256.h: correct definition of SHA224_DIGEST_SIZE
46124         * lib/sha256.h (SHA224_DIGEST_SIZE): Define to 28, not 24.
46125         Reported by Paulie Pena IV <paulie4@gmail.com>.
46126         Define as 224 / 8, rather than as a literal.
46127         (SHA256_DIGEST_SIZE): Define as 256/8 rather than equivalent literal.
46128         * lib/sha512.h (SHA384_DIGEST_SIZE): Likewise, define as equiv: 384/8.
46129         (SHA512_DIGEST_SIZE): Likewise, define as equivalent quotient: 512/8.
46130
46131 2008-07-31  Bruno Haible  <bruno@clisp.org>
46132
46133         * lib/regex_internal.h (BITSET_WORD_BITS): Make first conditional work
46134         on HP-UX 10.20 with "cc -Ae". Fix second conditional.
46135         Reported by Jonathan Patschke <jp@centtech.com>.
46136
46137 2008-07-31  Bruno Haible  <bruno@clisp.org>
46138
46139         * gnulib-tool (func_import): Make change from 2008-06-23 more robust.
46140         Reported by Paolo Bonzini <bonzini@gnu.org>.
46141
46142 2008-07-30  Eric Blake  <ebb9@byu.net>
46143
46144         test-strtod: allow compilation without -lm
46145         * tests/test-strtod.c (main): Avoid link dependence on fabs.
46146         Reported by Dennis Clarke <blastwave@gmail.com>.
46147
46148 2008-07-28  Jim Meyering  <meyering@redhat.com>
46149
46150         bootstrap: work also when there are no .po files in po/
46151         * build-aux/bootstrap (update_po_files): Complete the change
46152         that I began in bc960df8c789c878f1c1c54a28a3c2648dead8d9.
46153
46154 2008-07-27  Jim Meyering  <meyering@redhat.com>
46155
46156         * users.txt: Add zile.
46157
46158 2008-07-26  Ben Pfaff  <blp@gnu.org>
46159
46160         Add missing dependencies on new m4/exponent[fdl].m4 files.
46161         * modules/isnanf-nolibm: Add m4/exponentf.m4.
46162         * modules/isnand-nolibm: Add m4/exponentd.m4.
46163         * modules/isnanl-nolibm: Add m4/exponentl.m4.
46164         * modules/signbit-tests: Use m4/exponent[fdl].m4 instead of
46165         m4/isnan[fdl].m4, because the macros actually used moved.
46166         Reported by Jim Meyering.
46167
46168 2008-07-14  Ben Pfaff  <blp@gnu.org>
46169
46170         Add isinf module.
46171         * lib/isinf.c: New file.
46172         * lib/math.in.h: Define isinf macro if we have decided to replace
46173         it.
46174         * m4/isinf.m4: New file.
46175         * m4/math_h.m4: Initialize and substitute variables for isinf
46176         module.
46177         * modules/isinf: New file.
46178         * modules/isinf-tests: New file.
46179         * modules/math: Add substitutions for new module.
46180         * tests/test-isinf.c: New file.
46181         * doc/posix-functions/isinf.texi: Mention new module.
46182         * MODULES.html.sh: Mention new module.
46183
46184 2008-07-14  Ben Pfaff  <blp@gnu.org>
46185
46186         Factor out some macros for use by additional modules.
46187         * m4/isnanf.m4 (gl_FLOAT_EXPONENT_LOCATION): Move into new file
46188         exponentf.m4.
46189         * m4/isnand.m4 (gl_DOUBLE_EXPONENT_LOCATION): Move into new file
46190         exponentd.m4.
46191         * m4/isnanl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Move into new
46192         file exponentl.m4.
46193         * m4/exponentf.m4: New file.
46194         * m4/exponentd.m4: New file.
46195         * m4/exponentl.m4: New file.
46196         * modules/isnanf: Use new file m4/exponentf.m4.
46197         * modules/isnand: Use new file m4/exponentd.m4.
46198         * modules/isnanl: Use new file m4/exponentl.m4.
46199
46200 2008-07-23  Ulrich Drepper  <drepper@redhat.com>
46201
46202         mktime.c: normalize tp->tm_isdst value to -1/0/1.
46203         * lib/mktime.c (__mktime_internal): Normalize tp->tm_isdst value.
46204         Reported by Michael Ringe <Michael.Ringe@gmx.de> in
46205         <http://sourceware.org/bugzilla/show_bug.cgi?id=6723>.
46206
46207         * lib/canonicalize-lgpl.c (__realpath): Avoid buffer overflow after
46208         readlink on platforms without PATH_MAX.
46209
46210 2008-07-21  Eric Blake  <ebb9@byu.net>
46211
46212         Warn, not fail, on stale version.
46213         * top/GNUmakefile (_curr-ver): Tone down previous patch.
46214
46215         Don't allow installation with stale devel version number.
46216         * top/GNUmakefile (_is-install-target): New macro.
46217         (_curr-ver): Forbid installation with stale version number.
46218
46219 2008-07-20  Bruno Haible  <bruno@clisp.org>
46220
46221         * modules/c-stack-tests (Makefile.am): Add LIBSIGSEGV to
46222         TESTS_ENVIRONMENT.
46223         * tests/test-c-stack2.sh: React differently if LIBSIGSEGV is in use.
46224
46225 2008-07-20  Bruno Haible  <bruno@clisp.org>
46226
46227         * lib/c-stack.h (c_stack_action): Add documentation.
46228         * lib/c-stack.c (c_stack_action): Remove incomplete documentation.
46229
46230 2008-07-20  Bruno Haible  <bruno@clisp.org>
46231
46232         * modules/canonicalize-lgpl (License): Relicense under LGPLv2+.
46233         * modules/readlink (License): Likewise.
46234
46235 2008-07-17  Eric Blake  <ebb9@byu.net>
46236
46237         * modules/c-stack (Link): Fix typo.
46238
46239         Make c-stack use libsigsegv, when available.
46240         * modules/c-stack (Depends-on): Add libsigsegv.
46241         * modules/c-stack-tests (Makefile.am): Link with libsigsegv, if
46242         needed.
46243         * lib/c-stack.c (SIGSTKSZ): Define fallback.
46244         (segv_handler, overflow_handler, c_stack_action)
46245         [HAVE_LIBSIGSEGV && !HAVE_XSI_STACK_OVERFLOW_HEURISTIC]: Add new
46246         implementation when libsigsegv is available, but only when using
46247         the library is necessary.
46248         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Add
46249         comment, explaining why XSI check fails on Linux.
46250         (gl_PREREQ_C_STACK): Supply LIBCSTACK, LTLIBCSTACK.
46251         * tests/test-c-stack2.sh: Tweak skip message.
46252         * NEWS: Document new link-time requirements.
46253
46254 2008-07-16  Eric Blake  <ebb9@byu.net>
46255
46256         c-stack: Expose false positives when not using libsigsegv.
46257         * modules/c-stack-tests (Files): Expand test.
46258         * tests/test-c-stack.c (main): Add means to conditionally trigger
46259         non-overflow SIGSEGV.
46260         * tests/test-c-stack2.sh: New file.
46261
46262 2008-07-14  Bruno Haible  <bruno@clisp.org>
46263
46264         * m4/libsigsegv.m4: Remove unneeded AC_PREREQ.
46265         Reported by Eric Blake.
46266
46267 2008-07-14  Sam Steingold  <sds@gnu.org>
46268             Bruno Haible  <bruno@clisp.org>
46269
46270         New module libsigsegv.
46271         * modules/libsigsegv: New file.
46272         * m4/libsigsegv.m4: New file, from GNU clisp sigsegv.m4 with
46273         modifications.
46274         * MODULES.html.sh (Signal handling): New section.
46275
46276 2008-07-14  Bruno Haible  <bruno@clisp.org>
46277
46278         * modules/unictype/ctype-* (Description): Add the word "function".
46279         Improves the resulting doc in MODULES.html.
46280
46281 2008-07-12  Ben Pfaff  <blp@gnu.org>
46282
46283         Add longlong module.
46284         * modules/longlong: New file.
46285
46286 2008-07-12  Bruno Haible  <bruno@clisp.org>
46287
46288         * m4/isnan.m4 (gl_ISNAN): When the replacement is used, set ISNAN_LIBM
46289         to empty.
46290
46291 2008-07-10  Ben Pfaff  <blp@gnu.org>
46292
46293         Add isnan module.
46294         * doc/posix-functions/isnan.texi: Mention new module.
46295         * lib/math.in.h: Define isnan macro if we have decided to replace
46296         it.
46297         * m4/isnan.m4: New file.
46298         * m4/isnanl.m4 (gl_FUNC_ISNANL): Factor out some code into new
46299         macro gl_BUILD_ISNANL so that isnan.m4 can use that functionality
46300         also.
46301         (gl_FUNC_ISNANL_NO_LIBM): Factor out same code, to reduce
46302         redundancy.
46303         * m4/math_h.m4: Initialize and substitute variables for isnan
46304         module.
46305         * modules/isnan: New file.
46306         * modules/isnan-tests: New file.
46307         * modules/math: Add substitutions for new module.
46308         * tests/test-isnan.c: New file.
46309         * MODULES.html.sh: Mention new module.
46310
46311 2008-07-10  Ben Pfaff  <blp@gnu.org>
46312
46313         Add isnanf module.
46314         * lib/isnanf.m4: New file.
46315         * m4/isnanf.m4 (gl_FUNC_ISNANF): New macro.
46316         (gl_HAVE_ISNANF_IN_LIBM): New macro.
46317         (gl_BUILD_ISNANF): New macro used by gl_FUNC_ISNANF,
46318         gl_FUNC_ISNANF_NO_LIBM, and gl_FUNC_ISNAN.
46319         * modules/isnanf: New file.
46320         * modules/isnanf-tests: New file.
46321         * modules/isnanf-nolibm-tests: Add tests/test-isnanf.h to list of
46322         files.
46323         * tests/test-isnanf-nolibm.c: factored most of its contents into
46324         new file tests/test-isnanf.h.
46325         * tests/test-isnanf.h: New file.
46326         * tests/test-isnanf.c: New file.
46327         * MODULES.html.sh: Mention new module.
46328         * doc/glibc-functions/isnanf.texi: Mention new module.
46329
46330 2008-07-10  Ben Pfaff  <blp@gnu.org>
46331
46332         Add isnand module.
46333         * lib/isnand.h: New file.
46334         * m4/isnand.m4 (gl_FUNC_ISNAND): New macro.
46335         (gl_FUNC_ISNAND_NO_LIBM): Split partially into new macro
46336         gl_HAVE_ISNAND_NO_LIBM so that gl_FUNC_ISNAND can use that
46337         functionality also.
46338         (gl_BUILD_ISNAND): New macro used by gl_FUNC_ISNAND,
46339         gl_FUNC_ISNAND_NO_LIBM, and gl_FUNC_ISNAN.
46340         (gl_HAVE_ISNAND_IN_LIBM): New macro.
46341         * modules/isnand: New file.
46342         * modules/isnand-tests: New file.
46343         * modules/isnand-nolibm-tests: Add tests/test-isnand.h to list of
46344         files.
46345         * tests/test-isnand-nolibm.c: factored most of its contents into
46346         new file tests/test-isnand.h.
46347         * tests/test-isnand.h: New file.
46348         * tests/test-isnand.c: New file.
46349         * MODULES.html.sh: Mention new module.
46350
46351 2008-07-10  Ben Pfaff  <blp@gnu.org>
46352
46353         * lib/isnanf.h: Rename lib/isnanf-nolibm.h.
46354         * lib/isnand.h: Rename lib/isnand-nolibm.h.
46355         * tests/test-isnanf.c: Rename tests/test-isnanf-nolibm.c.
46356         * tests/test-isnand.c: Rename tests/test-isnand-nolibm.c.
46357         * modules/isnanf-nolibm: Update references to renamed files.
46358         * modules/isnand-nolibm: Likewise.
46359         * modules/isnanf-nolibm-tests: Likewise.
46360         * modules/isnand-nolibm-tests: Likewise.
46361         * lib/frexp.c: Likewise.
46362         * lib/isfinite.c: Likewise.
46363         * lib/signbitd.c: Likewise.
46364         * lib/signbitf.c: Likewise.
46365         * lib/vasnprintf.c: Likewise.
46366         * tests/test-ceilf1.c: Likewise.
46367         * tests/test-ceilf2.c: Likewise.
46368         * tests/test-floorf1.c: Likewise.
46369         * tests/test-floorf2.c: Likewise.
46370         * tests/test-frexp.c: Likewise.
46371         * tests/test-round1.c: Likewise.
46372         * tests/test-round2.c: Likewise.
46373         * tests/test-roundf1.c: Likewise.
46374         * tests/test-strtod.c: Likewise.
46375         * tests/test-trunc1.c: Likewise.
46376         * tests/test-trunc2.c: Likewise.
46377         * tests/test-truncf1.c: Likewise.
46378         * tests/test-truncf2.c: Likewise.
46379         * NEWS: Mention the renamed header files.
46380
46381 2008-07-11  Jim Meyering  <meyering@redhat.com>
46382
46383         vc-list-files: make the last-resort awk code more portable
46384         * build-aux/vc-list-files: Don't rely on awk's "sub" command.
46385         /bin/awk from OpenSolaris 11's SUNWesu version 2008.03.22.10.56
46386         does not support it.
46387
46388 2008-07-10  Eric Blake  <ebb9@byu.net>
46389
46390         Work with tar's bootstrap.
46391         * gnulib-tool (func_emit_initmacro_end): Use m4_defn in the case
46392         where LIBSOURCES_DIR contains .#bootmp but must not be treated as
46393         an m4 comment.
46394
46395 2008-07-09  Jim Meyering  <meyering@redhat.com>
46396
46397         posix-shell.m4: fix typo that made this test malfunction
46398         * m4/posix-shell.m4: Remove capitalization in variable name.
46399
46400 2008-07-08  Bruno Haible  <bruno@clisp.org>
46401
46402         * m4/onceonly.m4: Update comments.
46403         Reported by Ben Pfaff <blp@cs.stanford.edu>.
46404
46405 2008-07-04  Jim Meyering  <meyering@redhat.com>
46406
46407         * users.txt: Add vc-dwim.
46408         (bison, coreutils): Use the gitweb URL.
46409
46410 2008-07-03  Jim Meyering  <meyering@redhat.com>
46411
46412         * users.txt: Add libffcall.  From Sam Steingold.
46413
46414 2008-07-03  OndÅ™ej Vašík  <ovasik@redhat.com>
46415
46416         getdate.y: do not ignore TZ with relative day, month or year offset
46417         * lib/getdate.y (get_date): Move the tz-handling block to follow the
46418         relative-date-handling, since otherwise, the latter would clobber the
46419         sole output (an updated Start value) of the tz-handling block.
46420         * tests/test-getdate.c: Tests for the fix
46421
46422 2008-07-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
46423
46424         Recognize 'foo_LIBRARIES += libgnu.a'.
46425         * gnulib-tool (func_emit_lib_Makefile_am): Recognize if a
46426         makefile snippet has already specified an installation location,
46427         also using '+='.
46428
46429 2008-07-02  OndÅ™ej Vašík  <ovasik@redhat.com>
46430
46431         getdate.y: factor out common actions
46432         * lib/getdate.y (apply_relative_time, set_hhmmss): New functions.
46433         Use them in place of open-coded actions.
46434
46435 2008-07-01  Simon Josefsson  <simon@josefsson.org>
46436
46437         Add self-test for getdate module.
46438         * modules/getdate-tests: New file.
46439         * tests/test-getdate.c: New file.
46440
46441 2008-06-29  Bruno Haible  <bruno@clisp.org>
46442
46443         * gnulib-tool (func_import): Put gnulib-comp.m4 into .cvsignore or
46444         .gitignore.
46445         Reported by Sylvain Beucler <beuc@beuc.net>.
46446
46447 2008-06-29  Bruno Haible  <bruno@clisp.org>
46448
46449         * doc/gnulib-tool.texi (VCS Issues): Mention --no-vc-files option.
46450         * m4/gnulib-tool.m4: Update to match current gnulib-tool.
46451
46452 2008-06-29  Bruno Haible  <bruno@clisp.org>
46453
46454         * gnulib-tool (func_import): Recommend to put gnulib-cache.m4 into
46455         EXTRA_DIST.
46456         Reported by Sylvain Beucler <beuc@beuc.net>.
46457
46458 2008-06-26  Jim Meyering  <meyering@redhat.com>
46459
46460         make several modules depend on the "open" module
46461         This provides slightly increased consistency when opening-for-write
46462         the name of a non-directory spelled with a trailing slash.
46463         * modules/chdir-safer: Likewise.
46464         * modules/chown: Likewise.
46465         * modules/clean-temp: Likewise.
46466         * modules/copy-file: Likewise.
46467         * modules/fchdir: Likewise.
46468         * modules/fcntl-safer: Likewise.
46469         * modules/pipe: Likewise.
46470         * modules/utime: Likewise.
46471         Prompted by Eric Blake and Bruno Haible.
46472
46473 2008-06-24  Andreas Schwab  <schwab@suse.de>
46474
46475         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Don't test whether compound
46476         literals can be used as initializers for global variables.
46477
46478 2008-06-23  Eric Blake  <ebb9@byu.net>
46479
46480         Make gnulib-cache.m4 easier to diff.
46481         * gnulib-tool (func_import): Allow newlines when reading cached
46482         gl_MODULES, and generate newlines when creating gnulib-cache.m4.
46483
46484 2008-06-23  Bruno Haible  <bruno@clisp.org>
46485
46486         * m4/signalblocking.m4 (gl_PREREQ_SIG_HANDLER_H): Remove macro.
46487         (gl_PREREQ_SIGPROCMASK): Don't invoke it.
46488         * m4/sigaction.m4 (gl_PREREQ_SIG_HANDLER_H): New macro, moved here from
46489         m4/signalblocking.m4.
46490         (gl_PREREQ_SIGACTION): Don't invoke it.
46491         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Invoke
46492         gl_PREREQ_SIG_HANDLER_H.
46493         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
46494         Don't check for sigaction here.
46495
46496 2008-06-23  Bruno Haible  <bruno@clisp.org>
46497
46498         * lib/fatal-signal.c (fatal_signal_handler): Update comment.
46499         (install_handlers): Don't set the SA_RESETHAND flag.
46500
46501 2008-06-23  Bruno Haible  <bruno@clisp.org>
46502
46503         * m4/sigaction.m4: Comment fixes.
46504         * lib/signal.in.h: Likewise.
46505
46506 2008-06-23  Eric Blake  <ebb9@byu.net>
46507
46508         Fix typo.
46509         * tests/test-sigaction.c (MASK_SA_FLAGS): Add missing operator.
46510
46511         Avoid SA_ namespace.
46512         * tests/test-sigaction.c (MASK_SA_FLAGS): Rename from SA_MASK.
46513         Reported by Ralf Wildenhues.
46514
46515         Avoid test failure due to SA_RESTORER.
46516         * tests/test-sigaction.c (SA_MASK): New macro.
46517         (main): Avoid failing due to extension flags being set.
46518         Reported by Jim Meyering.
46519
46520         Revert use of sig-handler.h in sigprocmask.c.
46521         * modules/sigprocmask (Files): Don't rely on sig-handler.h, since
46522         it requires the existence of struct sigaction.
46523         * lib/sigprocmask.c (handler_t): Restore typedef.
46524         (rpl_signal, old_handlers): Use local type.
46525
46526 2008-06-22  Bruno Haible  <bruno@clisp.org>
46527
46528         * tests/test-stdint.c: Disable the INTMAX_MAX preprocessor test
46529         conditionally.
46530         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
46531
46532 2008-06-22  Bruno Haible  <bruno@clisp.org>
46533
46534         * doc/posix-functions/siginterrupt.texi: Move note.
46535
46536         * lib/signal.in.h (SA_RESTART): New macro.
46537         * lib/sigaction.c: Update comment.
46538
46539         * m4/sigaction.m4 (gl_SIGACTION): Require gl_SIGNAL_H_DEFAULTS.
46540
46541         * m4/signalblocking.m4 (gl_PREREQ_SIG_HANDLER_H): New macro.
46542         (gl_PREREQ_SIGPROCMASK): Invoke it.
46543         * m4/sigaction.m4 (gl_PREREQ_SIGACTION): Likewise.
46544
46545         * lib/nanosleep.c (rpl_nanosleep): Setup newact only when it is needed.
46546
46547         * lib/sigprocmask.c: Update a comment.
46548
46549 2008-06-21  Eric Blake  <ebb9@byu.net>
46550
46551         Use sigaction module rather than signal().
46552         * modules/c-stack (Depends-on): Add sigaction.
46553         * modules/fatal-signal (Depends-on): Likewise.
46554         * modules/nanosleep (Depends-on): Likewise.
46555         * modules/sigprocmask (Files): Add sig-handler.h.
46556         * modules/sigaction (Files): Likewise.
46557         * lib/sig-handler.h (get_handler): New file, suggested by Paul
46558         Eggert.
46559         * lib/c-stack.c (SIGACTION_WORKS): Simplify conditions.
46560         (c_stack_action) [!SIGACTION_WORKS]: Use sigaction, not signal.
46561         * lib/fatal-signal.c (uninstall_handlers, install_handlers)
46562         (init_fatal_signals): Likewise.
46563         * lib/nanosleep.c (rpl_nanosleep): Likewise.
46564         (siginterrupt): Delete fallback.
46565         * lib/sigprocmask.c (handler_t, old_handlers): Use sa_handler_t
46566         instead.
46567         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Drop check for
46568         siginterrupt.
46569
46570         New module sigaction, for mingw.
46571         * modules/sigaction: New module...
46572         * modules/sigaction-tests: ...and its test.
46573         * m4/sigaction.m4: New file.
46574         * lib/sigaction.c: Likewise.
46575         * tests/test-sigaction.c: Likewise.
46576         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Add sigaction variables.
46577         * modules/signal (Makefile.am): Likewise.
46578         * lib/signal.in.h (!@HAVE_SIGACTION@): Define replacements when
46579         needed.
46580         * doc/posix-headers/signal.texi (signal.h): Mention provided
46581         types.
46582         * doc/posix-functions/siginterrupt.texi (siginterrupt): Mention
46583         that sigaction is preferable.
46584         * doc/posix-functions/sigaction.texi (sigaction): Mention new
46585         module.
46586         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
46587         sigaction.
46588
46589         Improve robustness of sigprocmask by overriding signal.
46590         * lib/signal.in.h (rpl_signal): Override signal when sigprocmask
46591         is in use.
46592         * lib/sigprocmask.c (blocked_handler): Reinstall block handler.
46593         (SIGKILL, SIGSTOP): Provide fallbacks.
46594         (rpl_signal): Implement.
46595         (old_handlers, blocked_set): Mark volatile, since sigprocmask and
46596         signal can be called inside handlers.
46597
46598         Fix nanosleep module on mingw.
46599         * modules/nanosleep (Depends-on): Add sys_select.
46600         * lib/nanosleep.c (HAVE_SYS_SELECT_H): Rely on gnulib module.
46601
46602         Fix licensing of sigprocmask.
46603         * modules/raise (License): Relicense as LGPL.
46604
46605 2008-06-21  Bruno Haible  <bruno@clisp.org>
46606
46607         * lib/propername.c (proper_name_utf8): Don't use the transliterated
46608         result if it contains question marks.
46609         Reported by Michael Geng <linux@michaelgeng.de>.
46610
46611 2008-06-19  Bruno Haible  <bruno@clisp.org>
46612
46613         Fix CVS-ism.
46614         * doc/gnulib.texi: Include updated-stamp.texi.
46615         * doc/Makefile (GNULIB_TEXI_FILES): New variable.
46616         (updated-stamp.texi): New rule.
46617         (gnulib.info): Depend on it.
46618         * doc/.gitignore: Add updated-stamp.texi.
46619         Based on a patch by Thien-Thi Nguyen <ttn@gnuvola.org>.
46620
46621 2008-06-19  Bruno Haible  <bruno@clisp.org>
46622
46623         * doc/Makefile (gnulib.info): Update and simplify dependencies.
46624         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
46625
46626 2008-06-19  Eric Blake  <ebb9@byu.net>
46627
46628         Fix VPATH 'make dist' with GNU make and non-VCS tarball.
46629         * top/GNUmakefile (_curr-ver): Don't use $(srcdir) unnecessarily.
46630         Reported by Stepan Kasal.
46631
46632 2008-06-18  Bruno Haible  <bruno@clisp.org>
46633
46634         * lib/fatal-signal.c (init_fatal_signals): Add comment.
46635         Reported by Eric Blake.
46636
46637 2008-06-18  Eric Blake  <ebb9@byu.net>
46638
46639         Work around cygwin 1.5.25 strsignal bug.
46640         * tests/test-strsignal.c: Allow for const char *.
46641         * doc/glibc-functions/strsignal.texi (strsignal): Document the bug.
46642
46643 2008-06-18  Simon Josefsson  <simon@josefsson.org>
46644
46645         * users.txt: Update URL to article and add author/date
46646         information.
46647
46648 2008-06-17  Bruno Haible  <bruno@clisp.org>
46649
46650         New macro gl_DISABLE_THREADS.
46651         * m4/lock.m4 (gl_LOCK_EARLY_BODY): Use value gl_use_threads_default
46652         if the user did not pass --enable-threads or --disable-threads option.
46653         (gl_DISABLE_THREADS): New macro.
46654         Reported by Eric Blake <ebb9@byu.net>.
46655
46656 2008-06-17  Bruno Haible  <bruno@clisp.org>
46657
46658         * lib/tls.h (gl_tls_key_init): Evaluate the destructor argument also
46659         when the macro ignores it.
46660         Based on a patch by Eric Blake <ebb9@byu.net>.
46661
46662 2008-06-17  Bruno Haible  <bruno@clisp.org>
46663
46664         * modules/tls (License): Change to LGPLv2+.
46665         Reported by Eric Blake.
46666
46667 2008-06-17  Eric Blake  <ebb9@byu.net>
46668
46669         Simplify c-stack prerequisites.
46670         * lib/c-stack.c (includes): Remove unused <sys/resource.h>.
46671         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Posix 200x
46672         no longer requires <ucontext.h> to exist.  Optimize setrlimit
46673         check.
46674         (gl_PREREQ_C_STACK): Remove check for unused getcontext and
46675         <sys/resource.h>.
46676
46677         Move c-stack test into testsuite.
46678         * modules/c-stack-tests: New file.
46679         * lib/c-stack.c [DEBUG]: Move test program...
46680         * tests/test-c-stack.c: ...into this new file.  Skip rather than
46681         fail test if sigaltstack is lacking.
46682         * tests/test-c-stack.sh: New driver file.
46683
46684 2008-06-16  Eric Blake  <ebb9@byu.net>
46685
46686         Use raise module consistently.
46687         * modules/fatal-signal (Depends-on): Add raise.
46688         * modules/sigprocmask (Depends-on): Likewise.
46689         * lib/fatal-signal.c (fatal_signal_handler): Rely on raise.
46690         * lib/sigprocmask.c (sigprocmask): Likewise.
46691         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
46692         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Likewise.
46693
46694         Fix compliance bug in sigpending.
46695         * lib/sigprocmask.c (sigpending): Return pending array via
46696         parameter, not return value.
46697
46698 2008-06-14  Eric Blake  <ebb9@byu.net>
46699
46700         Improve obstack-printf test code.
46701         * tests/test-obstack-printf.c (test_function): Fix comment, and
46702         simplify usage of obstack_* in macros.  Add a test for coverage.
46703         Reported by Bruno Haible.
46704
46705 2008-06-14  Bruno Haible  <bruno@clisp.org>
46706
46707         * lib/obstack_printf.c (obstack_vprintf): Define the stack-allocated
46708         array size as a constant, not as a const variable.
46709         * m4/obstack-printf.m4 (gl_FUNC_OBSTACK_PRINTF): Require
46710         AC_USE_SYSTEM_EXTENSIONS.
46711         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX): Likewise.
46712         Test whether the obstack_printf function actually exists.
46713         * modules/obstack-printf (Depends-on): Add extensions.
46714         (Include): Remove obstack.h.
46715         * modules/obstack-printf-posix (Depends-on): Add extensions.
46716         (Include): Remove obstack.h.
46717
46718 2008-06-13  Eric Blake  <ebb9@byu.net>
46719
46720         Add obstack-printf and obstack-printf-posix modules.
46721         * modules/obstack-printf: New file.
46722         * modules/obstack-printf-posix: Likewise.
46723         * MODULES.html.sh (Misc): Mention them.
46724         * doc/glibc-functions/obstack_printf.texi (obstack_printf):
46725         Likewise.
46726         * doc/glibc-functions/obstack_vprintf.texi (obstack_vprintf):
46727         Likewise.
46728         * modules/stdio (Makefile.am): Accomodate new modules.
46729         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
46730         * lib/stdio.in.h (rpl_obstack_printf, rpl_obstack_vprintf):
46731         Declare.
46732         * lib/obstack_printf.c (obstack_printf, obstack_vprintf): New
46733         functions.
46734         * m4/obstack-printf.m4 (gl_OBSTACK_PRINTF)
46735         (gl_REPLACE_OBSTACK_PRINTF): New macros
46736         * m4/obstack-printf-posix.m4 (gl_OBSTACK_PRINTF_POSIX): Likewise.
46737         * tests/test-obstack-printf.c: New file.
46738         * modules/obstack-printf-tests: Likewise.
46739         * modules/obstack-printf-posix-tests: Likewise.
46740
46741 2008-06-11  Bruno Haible  <bruno@clisp.org>
46742
46743         * m4/open.m4 (gl_FUNC_OPEN): Add test against trailing slash bug.
46744         * lib/open.c: Include errno.h.
46745         (open): Fail when attempting to write to a file that has a trailing
46746         slash.
46747         * tests/test-open.c (main): Test against trailing slash bug.
46748         * doc/posix-functions/open.texi: Mention the trailing slash bug.
46749
46750 2008-06-10  Bruno Haible  <bruno@clisp.org>
46751
46752         * tests/test-vc-list-files-git.sh: Make double use of 'exit'. Needed
46753         for $? to work inside the trap command, with various /bin/sh-s.
46754         * tests/test-vc-list-files-cvs.sh: Likewise.
46755
46756 2008-06-10  Bruno Haible  <bruno@clisp.org>
46757
46758         * lib/acl-internal.h: Don't include gettext.h here.
46759         * lib/set-mode-acl.c: Include gettext.h here.
46760         * lib/copy-acl.c: Likewise.
46761
46762 2008-06-10  Bruno Haible  <bruno@clisp.org>
46763
46764         * lib/wait-process.h (wait_subprocess): Add termsigp argument.
46765         * lib/wait-process.c (wait_subprocess): Likewise.
46766         * lib/execute.h (execute): Add termsigp argument.
46767         * lib/execute.c (execute): Likewise.
46768         * lib/csharpcomp.c (compile_csharp_using_pnet,
46769         compile_csharp_using_mono, compile_csharp_using_sscli): Update.
46770         * lib/csharpexec.c (execute_csharp_using_pnet,
46771         execute_csharp_using_mono, execute_csharp_using_sscli): Update.
46772         * lib/javacomp.c (compile_using_envjavac, compile_using_gcj,
46773         compile_using_javac, compile_using_jikes, is_envjavac_gcj,
46774         is_envjavac_gcj43, is_gcj_present, is_gcj_43, is_javac_present,
46775         is_jikes_present): Update.
46776         * lib/javaexec.c (execute_java_class): Update.
46777         * lib/javaversion.c (execute_and_read_line): Update.
46778         * NEWS: Document the changes.
46779         Reported by Eric Blake.
46780
46781 2008-06-10  Eric Blake  <ebb9@byu.net>
46782
46783         Add missing include.
46784         * tests/test-strstr.c (includes): Add <signal.h>.
46785         * tests/test-strcasestr.c (includes): Likewise.
46786         * tests/test-memmem.c (includes): Likewise.
46787
46788 2008-06-10  Bruno Haible  <bruno@clisp.org>
46789
46790         * lib/wait-process.c (wait_subprocess): Add an assertion.
46791
46792 2008-06-10  Bruno Haible  <bruno@clisp.org>
46793
46794         * lib/wait-process.c (wait_subprocess): Try to fix waitid() based code.
46795
46796 2008-06-10  Bruno Haible  <bruno@clisp.org>
46797
46798         * tests/test-memmem.c (main): Reset SIGALRM to default handling before
46799         using alarm().
46800         * tests/test-strcasestr.c (main): Likewise.
46801         * tests/test-strstr.c (main): Likewise.
46802
46803 2008-06-09  Bruno Haible  <bruno@clisp.org>
46804
46805         Work around the Solaris 10 ACE ACLs ABI change.
46806         * lib/acl-internal.h (acl_nontrivial, acl_ace_nontrivial): Don't
46807         declare if ACL_NO_TRIVIAL is present.
46808         (ACE_ACCESS_ALLOWED_ACE_TYPE, ACE_ACCESS_DENIED_ACE_TYPE,
46809         NEW_ACE_OWNER, NEW_ACE_GROUP, NEW_ACE_IDENTIFIER_GROUP, ACE_EVERYONE,
46810         NEW_ACE_READ_DATA, NEW_ACE_WRITE_DATA, NEW_ACE_EXECUTE): New macros.
46811         * lib/file-has-acl.c (acl_nontrivial, acl_ace_nontrivial): Don't
46812         define if ACL_NO_TRIVIAL is present.
46813         (acl_ace_nontrivial): Detect whether the old or new ABI is in use,
46814         and use the current ABI.
46815         (file_has_acl): Use same #if condition as elsewhere.
46816         * lib/set-mode-acl.c (qset_acl): Detect whether the old or new ABI is
46817         in use, and use the current ABI.
46818         * doc/acl-resources.txt: More doc about newer Solaris 10 versions.
46819         Reported by Jim Meyering.
46820
46821 2008-06-09  Eric Blake  <ebb9@byu.net>
46822
46823         Work around environments that (stupidly) ignore SIGALRM.
46824         * m4/strstr.m4 (gl_FUNC_STRSTR): Reset SIGALRM to default handling
46825         before using alarm().
46826         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
46827         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
46828         Reported by Ian Beckwith <ianb@erislabs.net>.
46829
46830         Produce autobuild blurb earlier in log.
46831         * modules/autobuild (configure.ac-early): Move AB_INIT here.
46832
46833 2008-06-09  Jim Meyering  <meyering@redhat.com>
46834         and OndÅ™ej Vašík  <ovasik@redhat.com>
46835
46836         utimens.c: correct kernel bug work-around
46837         OndÅ™ej Vašík found that the invalid return value of 280 indicates
46838         failure, not success, and the kernel bug we're trying to work
46839         around affects not just the utimensat call, but also the fallback
46840         futimens call.
46841         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT]: Simulate failure,
46842         not success.
46843         [HAVE_FUTIMENS]: Use the same work-around, here.
46844
46845 2008-06-09  Jim Meyering  <meyering@redhat.com>
46846
46847         add more guards around definition of ACE_-related code
46848         * lib/file-has-acl.c (acl_ace_nontrivial): Define only if
46849         ALLOW and ACE_OWNER are also defined.
46850
46851 2008-06-08  Bruno Haible  <bruno@clisp.org>
46852
46853         * lib/acl-internal.h: Add me as co-author.
46854         * lib/file-has-acl.c: Likewise.
46855         * lib/set-mode-acl.c: Likewise.
46856         * lib/copy-acl.c: Likewise.
46857
46858 2008-06-08  Bruno Haible  <bruno@clisp.org>
46859
46860         Add support for AIX ACLs.
46861         * lib/acl-internal.h (acl_nontrivial): New declaration.
46862         * lib/file-has-acl.c (acl_nontrivial): New function.
46863         (file_has_acl): Add implementation using AIX 4 ACL API.
46864         * lib/set-mode-acl.c (qset_acl): Likewise.
46865         * lib/copy-acl.c (qcopy_acl): Likewise.
46866
46867 2008-06-08  Bruno Haible  <bruno@clisp.org>
46868
46869         Add support for HP-UX ACLs.
46870         * lib/acl-internal.h (acl_nontrivial): New declaration.
46871         * lib/file-has-acl.c (acl_nontrivial): New function.
46872         (file_has_acl): Add implementation using HP-UX 11 ACL API.
46873         * lib/set-mode-acl.c (qset_acl): Likewise.
46874         * lib/copy-acl.c (qcopy_acl): Likewise.
46875
46876 2008-06-08  Bruno Haible  <bruno@clisp.org>
46877
46878         Add support for Cygwin ACLs.
46879         * lib/acl-internal.h (MODE_INSIDE_ACL): New macro for Solaris-like API.
46880         * lib/set-mode-acl.c (qset_acl) [!MODE_INSIDE_ACL]: Don't optimize away
46881         the chmod_or_fchmod call.
46882         * lib/copy-acl.c (qcopy_acl) [!MODE_INSIDE_ACL]: Likewise.
46883
46884 2008-06-08  Bruno Haible  <bruno@clisp.org>
46885
46886         Fix bug with setuid modes in Solaris 10+ code.
46887         * lib/set-mode-acl.c (qset_acl): Call chmod_or_fchmod when acl_set
46888         succeeded, when the mode contains some special bits.
46889
46890 2008-06-08  Bruno Haible  <bruno@clisp.org>
46891
46892         Add support for Solaris 7..10 ACLs.
46893         * lib/acl-internal.h (acl_nontrivial, acl_ace_nontrivial): New
46894         declarations.
46895         * lib/file-has-acl.c (acl_nontrivial, acl_ace_nontrivial): New
46896         functions.
46897         (file_has_acl): Add implementation using Solaris 7..10 ACL API.
46898         * lib/set-mode-acl.c (qset_acl): Likewise.
46899         * lib/copy-acl.c (qcopy_acl): Likewise.
46900
46901 2008-06-08  Bruno Haible  <bruno@clisp.org>
46902
46903         * lib/acl-internal.h (acl_extended_nontrivial) [MacOS X]: New
46904         declaration.
46905         * lib/file-has-acl.c (acl_extended_nontrivial) [MacOS X]: New function.
46906         (acl_access_nontrivial): Remove MacOS X case.
46907         (file_has_acl): Use acl_extended_nontrivial.
46908         * lib/copy-acl.c (qcopy_acl): Likewise.
46909
46910 2008-06-08  Bruno Haible  <bruno@clisp.org>
46911
46912         * lib/set-mode-acl.c (qset_acl): Trivial code simplifications.
46913
46914 2008-06-08  Jim Meyering  <meyering@redhat.com>
46915
46916         * modules/acl (Maintainer): Add Bruno Haible.
46917
46918 2008-06-07  Bruno Haible  <bruno@clisp.org>
46919
46920         Improve support for Tru64 ACLs.
46921         * lib/file-has-acl.c (file_has_acl): Don't test the ACL_TYPE_DEFAULT
46922         ACL on OSF/1.
46923
46924 2008-06-07  Bruno Haible  <bruno@clisp.org>
46925
46926         Add support for MacOS X ACLs.
46927         * lib/file-has-acl.c (file_has_acl): Use ACL_TYPE_EXTENDED instead of
46928         ACL_TYPE_ACCESS and ACL_TYPE_DEFAULT.
46929         * lib/set-mode-acl.c (qset_acl): Likewise.
46930         * lib/copy-acl.c (qcopy_acl): Likewise.
46931
46932 2008-06-07  Bruno Haible  <bruno@clisp.org>
46933
46934         Fix memory leak introduced on 2008-05-22.
46935         * lib/set-mode-acl.c (qset_acl) [!MODE_INSIDE_ACL]: Free ACLs after
46936         use.
46937
46938 2008-06-07  Bruno Haible  <bruno@clisp.org>
46939
46940         * lib/set-mode-acl.c (qset_acl): Use acl_init(), not acl_from_text(),
46941         to construct an empty ACL.
46942
46943 2008-06-07  Bruno Haible  <bruno@clisp.org>
46944
46945         * lib/set-mode-acl.c (chmod_or_fchmod): Document return value
46946         precisely.
46947         * lib/copy-acl.c (qcopy_acl): Trivial code simplifications.
46948
46949 2008-06-07  Bruno Haible  <bruno@clisp.org>
46950
46951         * lib/copy-acl.c (qcopy_acl): Make the #if branches independent.
46952         * lib/set-mode-acl.c (qset_acl): Choose better local variable names.
46953
46954 2008-06-07  Bruno Haible  <bruno@clisp.org>
46955
46956         * doc/posix-functions/_setjmp.texi: Explain the use of this function
46957         regardless of POSIX.
46958         * doc/posix-functions/_longjmp.texi: Likewise.
46959         * doc/posix-functions/setjmp.texi: Mention HP-UX as not counting as a
46960         SystemV platform in this case.
46961
46962 2008-06-06  Eric Blake  <ebb9@byu.net>
46963
46964         Document abort() bugs.
46965         * doc/posix-functions/abort.texi (abort): Mention anomalies.
46966
46967         * doc/posix-functions/setjmp.texi (setjmp): Mingw has setjmp.
46968         * doc/posix-functions/sigsetjmp.texi (sigsetjmp): Cygwin has
46969         sigsetjmp.
46970         * doc/posix-functions/siglongjmp.texi (siglongjmp): Cygwin has
46971         siglongjmp, but only as a macro.
46972         * doc/posix-functions/_longjmp.texi (_longjmp): Mention that this
46973         is obsolete.
46974         * doc/posix-functions/_setjmp.texi (_setjmp): Likewise.
46975
46976         Tweak documentation to cover cygwin argz bugs.
46977         * m4/argz.m4 (gl_FUNC_ARGZ): Mention date of last known cygwin
46978         argz bug fix; no code change needed since no cygwin releases
46979         occurred between the last fix and the bug being tested.
46980         * doc/glibc-functions/argz_add.texi (argz_add): Document the argz
46981         module and recently fixed cygwin bugs.
46982         * doc/glibc-functions/argz_add_sep.texi (argz_add_sep): Likewise.
46983         * doc/glibc-functions/argz_append.texi (argz_append): Likewise.
46984         * doc/glibc-functions/argz_count.texi (argz_count): Likewise.
46985         * doc/glibc-functions/argz_create.texi (argz_create): Likewise.
46986         * doc/glibc-functions/argz_create_sep.texi (argz_create_sep):
46987         Likewise.
46988         * doc/glibc-functions/argz_delete.texi (argz_delete): Likewise.
46989         * doc/glibc-functions/argz_extract.texi (argz_extract): Likewise.
46990         * doc/glibc-functions/argz_insert.texi (argz_insert): Likewise.
46991         * doc/glibc-functions/argz_next.texi (argz_next): Likewise.
46992         * doc/glibc-functions/argz_replace.texi (argz_replace): Likewise.
46993         * doc/glibc-functions/argz_stringify.texi (argz_stringify):
46994         Likewise.
46995
46996         Avoid gcc warning on cygwin.
46997         * lib/copy-acl.c (qcopy_acl) [!HAVE_ACL_GET_FILE &&
46998         !ACL_NO_TRIVIAL]: Avoid unused variable.
46999
47000 2008-06-05  Eric Blake  <ebb9@byu.net>
47001
47002         Be tolerant of UNKNOWN version in gnulib-tool test dir.
47003         * top/GNUmakefile (_dummy): Warn rather than reconfigure if
47004         git-version-gen fails to come up with a version.
47005         Reported by Simon Josefsson.
47006
47007 2008-06-05  Jim Meyering  <meyering@redhat.com>
47008             Paul Eggert  <eggert@cs.ucla.edu>
47009
47010         utimens.c: work around a probable Linux kernel bug
47011         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT]: Work around what
47012         appears to be a kernel bug that causes utimensat to return 280
47013         instead of 0, indicating success.
47014
47015 2008-06-04  Bruno Haible  <bruno@clisp.org>
47016
47017         * lib/copy-acl.c (qcopy_acl): Call qset_acl, not set_acl. Fixes
47018         2008-06-01 commit.
47019
47020 2008-06-04  Bruno Haible  <bruno@clisp.org>
47021
47022         * lib/acl-internal.h (acl_access_nontrivial): New declaration.
47023         * lib/file-has-acl.c (acl_access_nontrivial): New function.
47024         (file_has_acl): Use it. Save errno afterwards.
47025         * lib/copy-acl.c (qcopy_acl): Use acl_access_nontrivial.
47026
47027 2008-06-03  Bruno Haible  <bruno@clisp.org>
47028
47029         * lib/file-has-acl.c (file_has_acl): Put Solaris 10 code after POSIX-
47030         draft code. Simplify #ifs.
47031         * lib/set-mode-acl.c (qset_acl): Don't test for symlink if !USE_ACL.
47032         Put Solaris code after POSIX-draft code. Fix comments regarding
47033         Solaris 10, HP-UX. Mention Cygwin.
47034         * lib/copy-acl.c (qcopy_acl): Simplify #ifs.
47035
47036 2008-06-03  Eric Blake  <ebb9@byu.net>
47037
47038         Provide fallback for older kernels.
47039         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT, HAVE_FUTIMENS]:
47040         Provide runtime fallback if kernel lacks support.
47041         Reported by Mike Frysinger.
47042
47043 2008-06-02  Bruno Haible  <bruno@clisp.org>
47044
47045         * lib/acl-internal.h (ACL_NOT_WELL_SUPPORTED): Include EOPNOTSUPP if
47046         it exists.
47047
47048 2008-06-02  Bruno Haible  <bruno@clisp.org>
47049
47050         * lib/acl_entries.c (acl_entries): Rewrite to use acl_get_entry.
47051         * lib/copy-acl.c (qcopy_acl): Update comment.
47052
47053 2008-06-02  Bruno Haible  <bruno@clisp.org>
47054
47055         * lib/acl-entries.h: Enclose most definitions in #ifs for POSIX-draft
47056         like ACL APIs.
47057
47058 2008-06-02  Bruno Haible  <bruno@clisp.org>
47059
47060         * tests/test-file-has-acl.sh: Use different code for Cygwin.
47061         * tests/test-set-mode-acl.sh: Likewise.
47062         * tests/test-copy-acl.sh: Likewise.
47063         * tests/test-copy-file.sh: Likewise.
47064
47065 2008-06-02  Bruno Haible  <bruno@clisp.org>
47066
47067         * tests/test-file-has-acl.sh: Remove unused code.
47068
47069 2008-06-01  Bruno Haible  <bruno@clisp.org>
47070
47071         * lib/copy-acl.c (qcopy_acl): New function, extracted from copy_acl.
47072         (copy_acl): Just a wrapper around qcopy_acl that emits the error
47073         messages.
47074         * lib/set-mode-acl.c (qset_acl): Document return value precisely.
47075
47076 2008-06-01  Bruno Haible  <bruno@clisp.org>
47077
47078         * m4/acl.m4 (gl_FUNC_ACL): Separate the POSIX-like and the Solaris
47079         tests. Test for libpacl, needed for OSF/1. Test for extended ACLs,
47080         needed for MacOS X. Test for HP-UX API. Test for newer and older AIX
47081         APIs.
47082         * modules/acl-tests (configure.ac): Remove tests now contained in
47083         m4/acl.m4.
47084
47085 2008-06-02  Jim Meyering  <meyering@redhat.com>
47086
47087         announce-gen: use a better key-server host name
47088         * build-aux/announce-gen (main): Recommend keys.gnupg.net, since
47089         it may be more consistently reliable.  Suggested by Werner Koch
47090         in <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/13717>.
47091
47092 2008-06-01  Bruno Haible  <bruno@clisp.org>
47093
47094         * lib/stdio-impl.h (fp_ub): Use fp_. Needed for DragonFly BSD.
47095         Reported by Voroskoi Andras <voroskoi@gmail.com>.
47096
47097 2008-06-01  Voroskoi Andras  <voroskoi@gmail.com>  (tiny change)
47098
47099         * lib/stdio-impl.h [__DragonFly__]: Fix typo.
47100
47101 2008-06-01  Bruno Haible  <bruno@clisp.org>
47102
47103         New ACL tests.
47104         * tests/test-file-has-acl.sh: New file.
47105         * tests/test-file-has-acl.c: New file.
47106         * tests/test-set-mode-acl.sh: New file.
47107         * tests/test-set-mode-acl.c: New file.
47108         * tests/test-copy-acl.sh: New file, based on tests/test-copy-file.sh.
47109         * tests/test-copy-acl.c: New file.
47110         * modules/acl-tests: New file, based on modules/copy-file-tests.
47111         * modules/copy-file-tests (Files): Remove tests/test-sameacls.c.
47112         (Depends-on): Add acl-tests.
47113         (configure.ac): Remove checks.
47114         (Makefile.am): Don't create test-sameacls program here any more.
47115
47116 2008-06-01  Bruno Haible  <bruno@clisp.org>
47117
47118         * tests/test-copy-file.sh: Portability fixes for Solaris, HP-UX, IRIX.
47119         * tests/test-sameacls.c: Include progname.h.
47120         (main): Invoke set_program_name. Portability fixes for MacOS X,
47121         Solaris, HP-UX.
47122
47123 2008-06-01  Bruno Haible  <bruno@clisp.org>
47124
47125         * lib/freadahead.c (freadahead) [__DragonFly__]: Use the __sreadahead
47126         function.
47127         Reported by VOROSKOI Andras <voroskoi@gmail.com>.
47128
47129 2008-06-01  Bruno Haible  <bruno@clisp.org>
47130
47131         * modules/rpmatch (Depends-on): Add strdup.
47132
47133 2008-06-01  Bruno Haible  <bruno@clisp.org>
47134
47135         * lib/pipe.c: Include unistd-safer.h.
47136         (create_pipe): Ensure the returned file descriptors are not in {0,1,2}.
47137         * modules/pipe (Depends-on): Add unistd-safer.
47138
47139 2008-05-30  Simon Josefsson  <simon@josefsson.org>
47140
47141         * modules/autobuild (configure.ac): Call AB_INIT.
47142
47143 2008-05-30  Simon Josefsson  <simon@josefsson.org>
47144
47145         * tests/test-getaddrinfo.c: Don't print debug messages by default.
47146         Suggested by Bruno Haible <bruno@clisp.org>.
47147
47148 2008-05-30  Simon Josefsson  <simon@josefsson.org>
47149
47150         * tests/test-base64.c: Cast size_t to unsigned long when invoking
47151         printf.  Use %lu instead of %d.  Reported by Bruno Haible
47152         <bruno@clisp.org>.
47153
47154 2008-05-29  Eric Blake  <ebb9@byu.net>
47155
47156         Prefer new POSIX 200x interfaces over futimesat.
47157         * m4/utimens.m4 (gl_UTIMENS): Check for futimens, utimensat.
47158         * lib/utimens.c (gl_futimens): Use them for nanosecond resolution
47159         when available.
47160         [HAVE_BUGGY_NFS_TIME_STAMPS]: Allow C89 compilation.
47161
47162 2008-05-28  Bruno Haible  <bruno@clisp.org>
47163
47164         * modules/stpcpy (License): Change to LGPLv2+.
47165         Requested by David Lutterkort <dlutter@redhat.com>.
47166
47167 2008-05-27  Bruno Haible  <bruno@clisp.org>
47168
47169         * lib/localename.c (SUBLANG_TIBETAN_BHUTAN): Force value 2. Needed for
47170         current mingw.
47171         Reported by Jose E. Marchesi <jemarch@gnu.org>.
47172
47173 2008-05-27  Bruno Haible  <bruno@clisp.org>
47174
47175         * modules/iconv_open (Link): New section, from module 'iconv'.
47176         * modules/striconv (Link): Likewise.
47177         * modules/striconveh (Link): Likewise.
47178         * modules/xstriconv (Link): Likewise.
47179         * modules/unicodeio (Link): Likewise.
47180         * modules/propername (Link): Likewise.
47181         Reported by Jim Meyering.
47182
47183 2008-05-26  Jim Meyering  <meyering@redhat.com>
47184
47185         sha256: do not artificially restrict buffer length to be < 2^32
47186         * lib/sha256.h (struct sha256_ctx) [buflen]: Change type from
47187         uint32_t to size_t.
47188         * lib/sha256.c (sha256_conclude_ctx): Change type of a local
47189         to match.
47190
47191         avoid unaligned access errors, e.g., on sparc
47192         * lib/sha512.c (sha512_conclude_ctx): Use set_uint64 rather than
47193         direct access through a possibly-unaligned uint64* pointer.
47194         * lib/sha256.c (sha256_conclude_ctx): Use set_uint32 rather than
47195         direct access through a possibly-unaligned uint32* pointer.
47196         Prompted by this patch from Tom "spot" Callaway:
47197         http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/13638
47198
47199         sha512.c: fix typo in comment
47200         * lib/sha512.c (sha512_conclude_ctx): Length is 128-bit, not 64-bit.
47201
47202 2008-05-25  Bruno Haible  <bruno@clisp.org>
47203
47204         * lib/set-mode-acl.c: Renamed from lib/acl.c.
47205         * modules/acl (Files): Add lib/set-mode-acl.c, remove lib/acl.c.
47206         (Makefile.am): Update lib_SOURCES.
47207
47208 2008-05-25  Bruno Haible  <bruno@clisp.org>
47209
47210         * m4/acl.m4 (gl_FUNC_ACL): Don't set LIB_ACL_TRIVIAL.
47211
47212 2008-05-25  Jim Meyering  <meyering@redhat.com>
47213
47214         useless-if-before-free: freed expr may have white-space differences
47215         * build-aux/useless-if-before-free: Recognize cases in which the
47216         freed expression differs from the tested one in embedded white
47217         space, e.g., if (p[i + 1]) free(p[i+1]).  Correct thinko in prev:
47218         $1 was used, so we can't make any regexp shy.  Improved tests now
47219         detect this.
47220
47221         useless-if-before-free: accept white space in the expression.
47222         * build-aux/useless-if-before-free: For now, any white space
47223         in the expression must be identical in the free argument.
47224
47225         useless-if-before-free: efficiency tweak
47226         * build-aux/useless-if-before-free: Make the expression-matching
47227         regexp "shy".
47228         Make the *outer* regexp shy, not the expr-matching one.
47229
47230         update code-in-comment to accept cast of free arg
47231         * build-aux/useless-if-before-free: Update regexp.
47232
47233 2008-05-25  Bruno Haible  <bruno@clisp.org>
47234
47235         * tests/test-sameacls.c: Renamed from tests/test-copy-file-sameacls.c.
47236         * modules/copy-file-tests (Files, Makefile.am): Update.
47237         * tests/test-copy-file.c (func_test_copy): Update.
47238
47239 2008-05-24  Andreas Färber  <andreas.faerber@web.de>  (tiny change)
47240
47241         * lib/stdbool.in.h [__HAIKU__]: Disable __BEOS__ workarounds.
47242
47243 2008-05-23  Bruno Haible  <bruno@clisp.org>
47244
47245         Improve support for ACLs on OSF/1.
47246         * lib/acl.c (qset_acl): For OSF/1, use a string that ends in a comma.
47247         Remove fallback for unknown flavors of ACLs.
47248
47249 2008-05-22  Bruno Haible  <bruno@clisp.org>
47250
47251         Add support for ACLs on OSF/1.
47252         * lib/acl-internal.h (acl_get_fd, acl_set_fd): New inline function
47253         replacements.
47254         (acl_free_text): New macro fallback.
47255         * lib/acl_entries.c (acl_entries): Use acl_free_text instead of
47256         acl_free.
47257         * m4/acl.m4 (gl_FUNC_ACL): Look also in libpacl library. Test for
47258         acl_free_text function. Require AC_C_INLINE.
47259
47260 2008-05-22  Bruno Haible  <bruno@clisp.org>
47261
47262         Make copy_acl work on MacOS X 10.5.
47263         * lib/acl-internal.h (MODE_INSIDE_ACL): New macro.
47264         (ACL_NOT_WELL_SUPPORTED): On MacOS X, also handle ENOENT.
47265         * lib/acl.c (qset_acl): Add different code branch for !MODE_INSIDE_ACL.
47266         If MODE_INSIDE_ACL, don't assume that every system has the same text
47267         representation for ACLs as FreeBSD.
47268         * lib/copy-acl.c (copy_acl): Add support for platforms with
47269         !MODE_INSIDE_ACL.
47270         * lib/file-has-acl.c (file_has_acl): Likewise.
47271         * m4/acl.m4 (gl_FUNC_ACL): Test for some functions that are witness of
47272         FreeBSD, MacOS X, or IRIX, respectively.
47273
47274 2008-05-22  Bruno Haible  <bruno@clisp.org>
47275
47276         * lib/acl.h: Don't include <sys/acl.h>.
47277         (GETACLCNT): Move fallback to lib/acl-internal.h.
47278         * lib/acl-internal.h: Include <sys/acl.h> here.
47279         (GETACLCNT): New macro fallback, moved here from lib/acl.h.
47280
47281 2008-05-22  Bruno Haible  <bruno@clisp.org>
47282
47283         Split off copy_acl function to separate file.
47284         * lib/copy-acl.c: New file, extracted from lib/acl.c.
47285         * lib/acl.c (copy_acl): Moved function to separate file.
47286         * m4/acl.m4 (gl_FUNC_ACL): Remove unconditional AC_LIBOBJs.
47287         * modules/acl (Files): Add lib/copy-acl.c.
47288         (Makefiles.am): Augment lib_SOURCES.
47289
47290 2008-05-22  Bruno Haible  <bruno@clisp.org>
47291
47292         * modules/copy-file-tests: New file.
47293         * tests/test-copy-file.sh: New file.
47294         * tests/test-copy-file.c: New file.
47295         * tests/test-copy-file-sameacls.c: New file.
47296
47297 2008-05-22  Eric Blake  <ebb9@byu.net>
47298
47299         Avoid gcc warning.
47300         * tests/test-memcmp.c (main): Pass NULL indirectly.
47301
47302 2008-05-21  Bruno Haible  <bruno@clisp.org>
47303
47304         Add reference doc about ACLs.
47305         * doc/acl-resources.txt: New file.
47306         * doc/acl-cygwin.txt: New file.
47307
47308 2008-05-21  Bruno Haible  <bruno@clisp.org>
47309
47310         Avoid one more warning from gcc.
47311         * lib/vasnprintf.c (IF_LINT): Update comments.
47312         (VASNPRINTF): Use it also for the 'prefix' array initializer.
47313
47314 2008-05-21  Jim Meyering  <meyering@redhat.com>
47315
47316         avoid a warning from gcc
47317         * lib/vasnprintf.c (IF_LINT): Define.
47318         (scale10_round_decimal_long_double):
47319         Use it to avoid a "may be used uninitialized" warning.
47320         (scale10_round_decimal_double): Likewise.
47321
47322 2008-05-21  Simon Josefsson  <simon@josefsson.org>
47323
47324         * m4/memcmp.m4: When cross-compiling, assume memcmp works if it is
47325         declared.
47326
47327 2008-05-20  Bruno Haible  <bruno@clisp.org>
47328
47329         * tests/test-memcmp.c (main): Test also the sign of the result. Test
47330         against two known bugs; code taken from autoconf's AC_FUNC_MEMCMP.
47331
47332 2008-05-20  Simon Josefsson  <simon@josefsson.org>
47333
47334         * modules/memcmp-tests: New file.
47335         * tests/test-memcmp.c: New file.
47336
47337 2008-05-19  Bruno Haible  <bruno@clisp.org>
47338
47339         * modules/propername (Notice, configure.ac): Put quoted "..." into
47340         --keyword option.
47341         * lib/propername.h: Update comments accordingly.
47342         Reported by Eric Blake.
47343
47344 2008-05-19  Martin Lambers  <marlam@marlam.de>  (tiny change)
47345
47346         * modules/getpass-gnu (Depends-on): Add fseeko.
47347
47348 2008-05-19  Simon Josefsson  <simon@josefsson.org>
47349
47350         * modules/base64-tests: New file.
47351
47352 2008-05-19  Bo Borgerson <gigabo@gmail.com>
47353
47354         * lib/base64.c (base64_decode_ctx): If a decode context structure
47355         was passed in use it to ignore newlines.  If a context structure
47356         was _not_ passed in, continue to treat newlines as garbage (this
47357         is the historical behavior).  Formerly base64_decode.
47358         (base64_decode_alloc_ctx): Formerly base64_decode_alloc.  Now
47359         takes a decode context structure.
47360         * lib/base64.h (base64_decode): Macro for four-argument calls.
47361         (base64_decode_alloc): Likewise.
47362         * lib/base64.c (base64_decode_ctx): If a decode context structure
47363         was passed in use it to ignore newlines.  If a context structure
47364         was _not_ passed in, continue to treat newlines as garbage (this
47365         is the historical behavior).  Formerly base64_decode.
47366         (base64_decode_alloc_ctx): Formerly base64_decode_alloc.  Now
47367         takes a decode context structure.
47368         * lib/base64.h (base64_decode): Macro for four-argument calls.
47369         (base64_decode_alloc): Likewise.
47370
47371 2008-05-19  Jim Meyering  <meyering@redhat.com>
47372
47373         avoid a warning from gcc
47374         * lib/trim.c (IF_LINT): Define.
47375         (trim2): Use it to avoid a "may be used uninitialized" warning.
47376
47377         Fix doc typo.
47378         * doc/glibc-functions/getpass.texi (getpass): s/PATH_MAX/PASS_MAX/.
47379
47380 2008-05-19  Bruno Haible  <bruno@clisp.org>
47381
47382         * doc/glibc-functions/getpass.texi: Document limits of other
47383         implementations.
47384
47385 2008-05-19  Simon Josefsson  <simon@josefsson.org>
47386             Bruno Haible <bruno@clisp.org>
47387
47388         * doc/glibc-functions/getpass.texi: Document gnulib implementation.
47389
47390 2008-05-18  Bruno Haible  <bruno@clisp.org>
47391
47392         * modules/propername: New file, from GNU gettext.
47393         * lib/propername.h: New file, from GNU gettext.
47394         * lib/propername.c: New file, from GNU gettext.
47395         * MODULES.html.sh (Internationalization functions): Add propername.
47396
47397 2008-05-16  Jim Meyering  <meyering@redhat.com>
47398             Bruno Haible  <bruno@clisp.org>
47399
47400         Avoid some warnings from "gcc -Wshadow".
47401         * lib/vasnprintf.c (exp, remainder): Define to different identifiers.
47402
47403 2008-05-15  Eric Blake  <ebb9@byu.net>
47404
47405         Extend previous patch to cygwin 1.7.0.
47406         * m4/memmem.m4 (gl_FUNC_MEMMEM): When cross-compiling, assume a
47407         fast implementation in cygwin >= 1.7.0.
47408         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
47409         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
47410
47411 2008-05-15  Bruno Haible  <bruno@clisp.org>
47412
47413         * m4/memmem.m4 (gl_FUNC_MEMMEM): When cross-compiling, assume a fast
47414         implementation in glibc >= 2.9.
47415         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
47416         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
47417
47418 2008-05-15  Bruno Haible  <bruno@clisp.org>
47419
47420         * MODULES.html.sh (Internationalization functions): Remove linebreak.
47421         (Unicode string functions): Add unilbrk/*.
47422         Reported by Karl Berry.
47423
47424 2008-05-15  Eric Blake  <ebb9@byu.net>
47425
47426         Fix violation of <stdbool.h> replacement in regex.
47427         * lib/regcomp.c (re_compile_internal): Avoid implicit cast to bool.
47428         * lib/regexec.c (re_search_internal): Likewise.
47429         Reported by Heinrich Mislik <Heinrich.Mislik@univie.ac.at>.
47430
47431 2008-05-15  Jim Meyering  <meyering@redhat.com>
47432
47433         avoid distracting test output when git or cvs is not found
47434         * tests/test-vc-list-files-cvs.sh: Suppress 'init' error output.
47435         * tests/test-vc-list-files-git.sh: Likewise.
47436
47437 2008-05-15  Eric Blake  <ebb9@byu.net>
47438
47439         Glibc finally accepted the memmem speedup code, bugzilla #5514.
47440         * doc/glibc-functions/memmem.texi (memmem): Mention last broken
47441         glibc version.
47442         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
47443         * doc/posix-functions/strstr.texi (strstr): Likewise.
47444         * lib/str-two-way.h (MAX): Sychronize with glibc.
47445
47446 2008-05-15  Paolo Bonzini  <bonzini@gnu.org>
47447
47448         * lib/regcomp.c (optimize_utf8): Add a note on why we test
47449         opr.ctx_type.
47450         (calc_first): Initialize constraint field.
47451         (duplicate_node_closure): Use it instead of special casing ANCHORS.
47452         Fix grammar.
47453         (duplicate_node): Merge constraint field for all node types.
47454         (calc_eclosure_iter): Look at constraint field for all node types.
47455         * lib/regex_internal.c (create_cd_newstate): Don't look at
47456         opr.ctx_type.
47457
47458 2008-05-14  Bruno Haible  <bruno@clisp.org>
47459
47460         Help GCC to do better code generation.
47461         * lib/eealloc.h (eemalloc) [GCC >= 3]: Declare with attribute 'malloc'.
47462         * lib/pagealign_alloc.h (pagealign_alloc, pagealign_xalloc): Likewise.
47463         * lib/xalloc.h (ATTRIBUTE_MALLOC): New macro.
47464         (xmalloc, xzalloc, xcalloc, xmemdup, xstrdup, xnmalloc, xcharalloc):
47465         Declare with attribute 'malloc' if supported.
47466
47467 2008-05-14  Lasse Collin  <lasse.collin@tukaani.org>
47468
47469         use "echo STR|wc -c" rather than unportable "expr length STR"
47470         * build-aux/mktempd (mktempd): Vendor-supplied expr from at least
47471         OpenBSD 4.3 and Solaris 10 do not honor expr's "length" function.
47472
47473 2008-05-14  Jim Meyering  <meyering@redhat.com>
47474
47475         use dd ibs=$n count=1 ... rather than less-portable head -c$n
47476         * build-aux/mktempd (rand_bytes): head's -cN option is not accepted
47477         by Solaris 10's /bin/head or by the one from HP-UX 11.x.
47478         Reported in http://sourceforge.net/forum/message.php?msg_id=4960334
47479         via Collin Lasse.
47480
47481 2008-05-14  Eric Blake  <ebb9@byu.net>
47482
47483         Avoid quadratic growth in gl_LIBSOURCES.
47484         * gnulib-tool (func_emit_initmacro_done): s/\(m4_append\)_uniq/\1/.
47485         Suggested by Bruno Haible.
47486
47487         Test xmemdup0.
47488         * modules/xmemdup0-tests: New file.
47489         * tests/test-xmemdup0.c: Likewise.
47490
47491 2008-05-13  Eric Blake  <ebb9@byu.net>
47492
47493         Split xmemdup0 into its own module.
47494         * modules/xmemdup0: New file.
47495         * lib/xmemdup0.h: Likewise.
47496         * lib/xmemdup0.c: Likewise.
47497         * MODULES.html.sh (Memory management functions): Add xmemdup0.
47498         * lib/xalloc.h (xmemdup0): Remove.
47499         * lib/xmalloc.c (xmemdup0): Likewise.
47500
47501 2008-05-13  Eric Blake  <ebb9@byu.net>
47502             Bruno Haible  <bruno@clisp.org>
47503
47504         Reduce number of forks required during autoconf.
47505         * gnulib-tool (func_emit_initmacro_start): Prepare gl_LIBSOURCES_LIST
47506         and gl_LIBSOURCES_DIR.
47507         (func_emit_initmacro_end): Use them here in a single m4_syscmd...
47508         (func_emit_initmacro_done) <gl_LIBSOURCES>: ...rather than in one
47509         m4_syscmd per file.
47510         <m4_foreach_w>: Move...
47511         * m4/gnulib-common.m4 (m4_foreach_w): ...here.
47512
47513 2008-05-13  Eric Blake  <ebb9@byu.net>
47514
47515         * gnulib-tool: Fix various comment typos.
47516
47517 2008-05-12  Bruno Haible  <bruno@clisp.org>
47518
47519         Tailor the linebreaking algorithm.
47520         * lib/unilbrk/tables.c (unilbrk_table): Change (IS,AL) entry.
47521
47522 2008-05-12  Bruno Haible  <bruno@clisp.org>
47523
47524         Update to Unicode 5.0.0.
47525         * lib/unilbrk/tables.h (LBP_*): Add LBP_WJ, LBP_H2, LBP_H3, LBP_JL,
47526         LBP_JV, LBP_JT. Redistribute values.
47527         (unilbrk_table): Change size.
47528         * lib/unilbrk/tables.c (unilbrk_table): Change size. Update to match
47529         Unicode TR#14 rev. 22.
47530         * lib/unilbrk/gen-lbrk.c (LBP_*): Add LBP_WJ, LBP_H2, LBP_H3, LBP_JL,
47531         LBP_JV, LBP_JT. Redistribute values.
47532         (get_lbp): Update to match Unicode TR#14 rev. 21/22 and Unicode 5.0.0.
47533         (debug_output_lbp, fill_org_lbp, debug_output_org_lbp, output_lbp):
47534         Update.
47535         * lib/unilbrk/lbrkprop1.h: Regenerated.
47536         * lib/unilbrk/lbrkprop2.h: Regenerated.
47537         * lib/unilbrk/u8-possible-linebreaks.c (u8_possible_linebreaks):
47538         Change handling of LBP_CM after LBP_ZW. Update for new value of LBP_BK.
47539         * lib/unilbrk/u16-possible-linebreaks.c (u16_possible_linebreaks):
47540         Likewise.
47541         * lib/unilbrk/u32-possible-linebreaks.c (u32_possible_linebreaks):
47542         Likewise.
47543         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Update expected
47544         result.
47545         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
47546         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
47547         * tests/unilbrk/test-ulc-possible-linebreaks.c (main): Likewise.
47548         * tests/unilbrk/test-u8-width-linebreaks.c (main): Likewise.
47549         * tests/unilbrk/test-u16-width-linebreaks.c (main): Likewise.
47550         * tests/unilbrk/test-u32-width-linebreaks.c (main): Likewise.
47551
47552 2008-05-11  Bruno Haible  <bruno@clisp.org>
47553
47554         * lib/unilbrk/gen-lbrk.c (output_lbp): Fix whitespace.
47555
47556 2008-05-11  Bruno Haible  <bruno@clisp.org>
47557
47558         * lib/unilbrk/gen-lbrk.c: New file, from GNU gettext (gen-lbrkprop.c).
47559         * modules/unilbrk/gen-lbrk: New file.
47560
47561 2008-05-11  Bruno Haible  <bruno@clisp.org>
47562
47563         * m4/sha256.m4 (gl_SHA256): Require AC_C_INLINE.
47564         * m4/sha512.m4 (gl_SHA512): Likewise.
47565
47566 2008-05-11  Jim Meyering  <meyering@redhat.com>
47567
47568         New modules: crypto/sha256, crypto/sha512 (from coreutils)
47569         * modules/crypto/sha256: New file.
47570         * modules/crypto/sha512: Likewise.
47571         * lib/sha256.c: Likewise.
47572         * lib/sha256.h: Likewise.
47573         * lib/sha512.c: Likewise.
47574         * lib/sha512.h: Likewise.
47575         * lib/u64.h: Likewise.
47576         * m4/sha256.m4: Likewise.
47577         * m4/sha512.m4: Likewise.
47578         * MODULES.html.sh (Cryptographic computations (low-level)): List them.
47579
47580 2008-05-10  Bruno Haible  <bruno@clisp.org>
47581
47582         * MODULES.html.sh (Environment variables <stdlib.h>): Add unsetenv.
47583         (Input/Output <stdio.h>): Add xprintf.
47584         (Signal handling <signal.h>): Add strsignal.
47585         (Cryptographic computations (high-level)): Add crypto/gc-camellia.
47586         (Core language properties): Add func.
47587         (Mathematics <math.h>): Add ceil, floor, frexp-nolibm.
47588         (Support for systems lacking POSIX:2001): Add environ, EOVERFLOW,
47589         strings.
47590         (Enhancements for POSIX:2001 functions): Add iconv_open-utf.
47591         (Input/output): New section.
47592         (File system functions): Add openat-die, stat-macros.
47593         (Networking functions): Add sockets.
47594         (Unicode string functions): Add unictype/*.
47595         (Support for building libraries and executables): Add gperf.
47596         (Support for building documentation): Add agpl-3.0.
47597         (Misc): Add nocrash.
47598
47599 2008-05-10  Bruno Haible  <bruno@clisp.org>
47600
47601         * modules/unictype/gen-ctype: New file.
47602
47603 2008-05-10  Jim Meyering  <meyering@redhat.com>
47604
47605         Make chdir-safer.c more efficient on a system with no symlinks.
47606         * lib/chdir-safer.c (chdir_no_follow): Skip lstat and fstat calls
47607         also if ELOOP is zero.  Suggested by Bruno Haible.
47608
47609         Make chdir-safer.c slightly safer.
47610         * lib/chdir-safer.c (chdir_no_follow): Test HAVE_WORKING_O_NOFOLLOW,
47611         not O_NOFOLLOW, in case the latter is nonzero and open ignores it.
47612
47613         Avoid compile failure on systems without ELOOP (like mingw).
47614         * lib/chdir-safer.c (ELOOP): Define if not already defined.
47615         Reported by Bruno Haible.
47616
47617 2008-05-10  Bruno Haible  <bruno@clisp.org>
47618
47619         * lib/unilbrk/ulc-common.c: Include c-strcaseeq.h instead of streq.h.
47620         (is_utf8_encoding): Use a case-insensitive comparison.
47621         * modules/unilbrk/ulc-common (Depends-on): Add c-strcaseeq. Remove
47622         streq.
47623
47624 2008-05-10  Bruno Haible  <bruno@clisp.org>
47625
47626         * lib/unilbrk/ulc-common.c: Don't include <stdlib.h>.
47627         (iconv_string_length, iconv_string_keeping_offsets): Remove functions.
47628         * lib/unilbrk/ulc-common.h (iconv_string_length,
47629         iconv_string_keeping_offsets): Remove declarations.
47630         * lib/unilbrk/ulc-possible-linebreaks.c: Include <string.h>, uniconv.h.
47631         Don't include <iconv.h>, streq.h, xsize.h.
47632         (ulc_possible_linebreaks): Use u8_conv_from_encoding for doing the
47633         conversion.
47634         * lib/unilbrk/ulc-width-linebreaks.c: Include uniconv.h. Don't include
47635         <iconv.h>, streq.h, xsize.h.
47636         (ulc_width_linebreaks): Use u8_conv_from_encoding for doing the
47637         conversion.
47638         * modules/unilbrk/ulc-common (Depends-on): Remove iconv.
47639         * modules/unilbrk/ulc-possible-linebreaks (Depends-on): Add
47640         uniconv/u8-conv-from-enc. Remove iconv_open, streq, xsize.
47641         * modules/unilbrk/ulc-width-linebreaks (Depends-on): Likewise.
47642
47643 2008-05-10  Bruno Haible  <bruno@clisp.org>
47644
47645         * modules/unilbrk/ulc-width-linebreaks-tests: New file.
47646         * tests/unilbrk/test-ulc-width-linebreaks.c: New file.
47647
47648         * modules/unilbrk/u32-width-linebreaks-tests: New file.
47649         * tests/unilbrk/test-u32-width-linebreaks.c: New file.
47650
47651         * modules/unilbrk/u16-width-linebreaks-tests: New file.
47652         * tests/unilbrk/test-u16-width-linebreaks.c: New file.
47653
47654         * modules/unilbrk/u8-width-linebreaks-tests: New file.
47655         * tests/unilbrk/test-u8-width-linebreaks.c: New file.
47656
47657         * modules/unilbrk/ulc-possible-linebreaks-tests: New file.
47658         * tests/unilbrk/test-ulc-possible-linebreaks.c: New file.
47659
47660         * modules/unilbrk/u32-possible-linebreaks-tests: New file.
47661         * tests/unilbrk/test-u32-possible-linebreaks.c: New file.
47662
47663         * modules/unilbrk/u16-possible-linebreaks-tests: New file.
47664         * tests/unilbrk/test-u16-possible-linebreaks.c: New file.
47665
47666         * modules/unilbrk/u8-possible-linebreaks-tests: New file.
47667         * tests/unilbrk/test-u8-possible-linebreaks.c: New file.
47668
47669 2008-05-10  Bruno Haible  <bruno@clisp.org>
47670
47671         Split up 'linebreak' module.
47672         * lib/unilbrk.h: New file, based on lib/linebreak.h.
47673         * lib/unilbrk/lbrkprop1.h: New file, extracted from lib/lbrkprop.h.
47674         * lib/unilbrk/lbrkprop2.h: New file, renamed from lib/lbrkprop.h with
47675         modifications.
47676         * lib/unilbrk/tables.h: New file, extracted from lib/linebreak.c.
47677         * lib/unilbrk/tables.c: New file, extracted from lib/linebreak.c.
47678         * lib/unilbrk/u8-possible-linebreaks.c: New file, extracted from
47679         lib/linebreak.c.
47680         * lib/unilbrk/u16-possible-linebreaks.c: New file, extracted from
47681         lib/linebreak.c.
47682         * lib/unilbrk/u32-possible-linebreaks.c: New file, extracted from
47683         lib/linebreak.c.
47684         * lib/unilbrk/ulc-common.h: New file, extracted from lib/linebreak.c.
47685         * lib/unilbrk/ulc-common.c: New file, extracted from lib/linebreak.c.
47686         * lib/unilbrk/ulc-possible-linebreaks.c: New file, extracted from
47687         lib/linebreak.c.
47688         * lib/unilbrk/u8-width-linebreaks.c: New file, extracted from
47689         lib/linebreak.c.
47690         * lib/unilbrk/u16-width-linebreaks.c: New file, extracted from
47691         lib/linebreak.c.
47692         * lib/unilbrk/u32-width-linebreaks.c: New file, extracted from
47693         lib/linebreak.c.
47694         * lib/unilbrk/ulc-width-linebreaks.c: New file, extracted from
47695         lib/linebreak.c.
47696         * modules/unilbrk/base: New file.
47697         * modules/unilbrk/tables: New file.
47698         * modules/unilbrk/u8-possible-linebreaks: New file.
47699         * modules/unilbrk/u16-possible-linebreaks: New file.
47700         * modules/unilbrk/u32-possible-linebreaks: New file.
47701         * modules/unilbrk/ulc-common: New file.
47702         * modules/unilbrk/ulc-possible-linebreaks: New file.
47703         * modules/unilbrk/u8-width-linebreaks: New file.
47704         * modules/unilbrk/u16-width-linebreaks: New file.
47705         * modules/unilbrk/u32-width-linebreaks: New file.
47706         * modules/unilbrk/ulc-width-linebreaks: New file.
47707         * lib/linebreak.h: Remove file.
47708         * lib/linebreak.c: Remove file.
47709         * m4/linebreak.m4: Remove file.
47710         * modules/linebreak: Remove file.
47711         * NEWS: Mention the changes.
47712
47713 2008-05-09  Eric Blake  <ebb9@byu.net>
47714
47715         Add xmemdup0.
47716         * lib/xalloc.h (xmemdup0): New prototype and C++ typesafe
47717         implementation.
47718         * lib/xmalloc.c (xmemdup0): New C implementation.
47719
47720 2008-05-08  Bruno Haible  <bruno@clisp.org>
47721
47722         * m4/wctype.m4 (gl_WCTYPE_H): Correct indentation.
47723
47724 2008-05-07  Eric Blake  <ebb9@byu.net>
47725
47726         Support cross-compilation of <wctype.h>.
47727         * m4/wctype.m4 (gl_WCTYPE_H): Fix improper nesting in
47728         AC_CACHE_CHECK.
47729
47730 2008-05-06  Soren Hansen  <soren@ubuntu.com>  (tiny change)
47731
47732         * build-aux/vc-list-files: Add support for bzr.
47733
47734 2008-05-03  Jim Meyering  <meyering@redhat.com>
47735
47736         avoid failed assertion with tight malloc
47737         * tests/test-getndelim2.c: Correct an off-by-one assertion.
47738
47739 2008-05-03  Simon Josefsson  <simon@josefsson.org>
47740
47741         * m4/inet_pton.m4: Set HAVE_DECL_INET_PTON to 0 when declarations
47742         are needed from arpa/inet.h.
47743         * m4/inet_ntop.m4: Likewise, for HAVE_DECL_INET_NTOP.
47744         Reported by Bruno Haible.
47745
47746 2008-05-02  Jim Meyering  <meyering@redhat.com>
47747
47748         avoid compilation error on FreeBSD 6
47749         * tests/test-getaddrinfo.c [!defined EAI_NODATA] (EAI_NODATA): Define.
47750
47751 2008-05-01  Jim Meyering  <meyering@redhat.com>
47752
47753         useless-if-before-free: correct --help's exit status description
47754         * build-aux/useless-if-before-free (usage): Like grep, exit 0
47755         for one or more matches, etc.  Reported by Bruno Haible.
47756
47757         vc-list-files: make the stand-alone gnulib test work
47758         * modules/vc-list-files-tests (configure.ac):
47759         Define and AC_SUBST abs_aux_dir.
47760         (Makefile.am) [TESTS_ENVIRONMENT]: Rather than passing
47761         $(abs_top_srcdir) to each script and having each of them
47762         duplicate the work of setting PATH, set PATH here, using
47763         the new variable, abs_aux_dir instead.
47764         * tests/test-vc-list-files-cvs.sh: Don't set PATH here.
47765         * tests/test-vc-list-files-git.sh: Likewise.
47766         Reported by Bruno Haible.
47767
47768 2008-05-01  Bruno Haible  <bruno@clisp.org>
47769
47770         * lib/getndelim2.c (getndelim2): Fix newsize computation during
47771         reallocation. Rename 'done' to 'found_delimiter'.
47772
47773 2008-05-01  Jim Meyering  <meyering@redhat.com>
47774
47775         vc-list-files: accommodate /bin/sh like the one from Solaris 10
47776         * build-aux/vc-list-files: Use `...`, not $(...).
47777
47778 2008-04-30  Jim Meyering  <meyering@redhat.com>
47779
47780         add tests for vc-list-files
47781         * modules/vc-list-files-tests: New module.
47782         * tests/test-vc-list-files-cvs.sh: New file.
47783         * tests/test-vc-list-files-git.sh: New file.
47784
47785         avoid a warning from gcc
47786         * lib/getndelim2.c (IF_LINT): Define.
47787         (getndelim2): Use it to avoid a "may be used uninitialized" warning.
47788
47789         vc-list-files: work properly with build-aux/cvsu, too
47790         * build-aux/vc-list-files: Hoist the "./"-removing code to apply
47791         to all cvs-based clauses.
47792
47793         vc-list-files: work properly in the CVS+awk case, too
47794         * build-aux/vc-list-files: In the CVS+awk case, remove "./" prefix.
47795
47796         vc-list-files: avoid use of ${*-*} that fails when /bin/sh is dash
47797         * build-aux/vc-list-files: Simplify ${*-*} to $dir, since we no longer
47798         take more than one file argument, so .  Add quotes, just in case $dir
47799         ever contains a shell meta-character.  Prompted by Soren Hansen in
47800         <http://thread.gmane.org/gmane.comp.emulators.libvirt/6221/focus=6240>.
47801
47802 2008-04-29  Eric Blake  <ebb9@byu.net>
47803
47804         Optimize getndelim2 to use block operations when possible.
47805         * modules/getndelim2 (Depends-on): Add stdbool, freadptr,
47806         freadseek, and memchr2.
47807         * lib/getndelim2.c (getndelim2): Use them for block reads.
47808
47809 2008-04-29  Bruno Haible  <bruno@clisp.org>
47810
47811         * m4/inet_ntop.m4 (gl_INET_NTOP): Require gl_USE_SYSTEM_EXTENSIONS.
47812         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
47813         * modules/inet_ntop (Depends-on): Add extensions.
47814         * modules/inet_pton (Depends-on): Likewise.
47815         Reported by Simon Josefsson.
47816
47817 2008-04-29  Jim Meyering  <meyering@redhat.com>
47818
47819         When the is more than one match in a block, match all of them.
47820         * build-aux/useless-if-before-free: Iterate through each block
47821         until there are no more matches.
47822
47823         Fix broken useless-if-before-free script.
47824         * build-aux/useless-if-before-free: Fix typo: missing "?" after
47825         the expression to match cast of argument to free-like function.
47826
47827 2008-04-29  Eric Blake  <ebb9@byu.net>
47828
47829         Use new header.
47830         * lib/getaddrinfo.c (includes): s/"inet_ntop.h"/<arpa/inet.h>/.
47831
47832 2008-04-29  Jim Meyering  <meyering@redhat.com>
47833
47834         Avoid test segfault on x86_64 due to lack of inet_ntop declaration.
47835         * tests/test-getaddrinfo.c: Include <arpa/inet.h>, now guaranteed
47836         by gnulib to exist and to declare e.g., inet_ntop.
47837         Don't include "inet_ntop.h", now removed.
47838
47839         * m4/arpa_inet_h.m4: Remove trailing blanks.
47840
47841 2008-04-29  Eric Blake  <ebb9@byu.net>
47842
47843         Silence valgrind on safe reads beyond potential array bounds.
47844         * lib/rawmemchr.valgrind: New file.
47845         * lib/strchrnul.valgrind: Likewise.
47846         * modules/rawmemchr (Files): Distribute new file.
47847         * modules/strchrnul (Files): Likewise.
47848         Suggested by Bruno Haible.
47849
47850 2008-04-29  Bruno Haible  <bruno@clisp.org>
47851
47852         * lib/arpa_inet.in.h: Include system's <arpa/inet.h> if it exists.
47853         (inet_ntop, inet_pton): Change portability warning's wording.
47854         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Set HAVE_ARPA_INET_H.
47855         Invoke gl_CHECK_NEXT_HEADERS.
47856         (gl_ARPA_INET_H_DEFAULTS): Initialize ARPA_INET_H.
47857         * m4/inet_ntop.m4 (gl_INET_NTOP): Require gl_ARPA_INET_H_DEFAULTS and
47858         set ARPA_INET_H.
47859         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
47860         * modules/arpa_inet (Description): No longer only for systems that
47861         lack it.
47862         (Depends-on): Add include_next.
47863         (Makeile.am): Substitute INCLUDE_NEXT, NEXT_ARPA_INET_H,
47864         HAVE_ARPA_INET_H.
47865
47866 2008-04-29  Jim Meyering  <meyering@redhat.com>
47867
47868         * modules/mkdir (License): Re-license as LGPLv2+.
47869
47870 2008-04-29  Bruno Haible  <bruno@clisp.org>
47871
47872         * modules/rawmemchr (Maintainer): Set to Eric.
47873         * modules/strchrnul (Maintainer): Likewise.
47874
47875 2008-04-29  Simon Josefsson  <simon@josefsson.org>
47876
47877         * m4/arpa_inet_h.m4 (gl_ARPA_INET_H_DEFAULTS): Set
47878         HAVE_DECL_INET_NTOP and HAVE_DECL_INET_PTON.
47879
47880         * modules/arpa_inet (arpa/inet.h): Use them.
47881
47882 2008-04-28  Eric Blake  <ebb9@byu.net>
47883
47884         Test getndelim2.
47885         * modules/getndelim2-tests: New file.
47886         * tests/test-getndelim2.c: Likewise.
47887         * lib/getndelim2.c (getndelim2): Never return 0.  Lock the
47888         stream.
47889         * m4/getndelim2.m4 (gl_GETNDELIM2): Check for lock functions.
47890
47891         * MODULES.html.sh: Document new module.
47892
47893 2008-04-20  Bruno Haible  <bruno@clisp.org>
47894
47895         * lib/c-stack.c (die): Use raise.
47896         * modules/c-stack (Depends-on): Add raise.
47897
47898 2008-04-28  Bruno Haible  <bruno@clisp.org>
47899
47900         Expect rpmatch to be declared.
47901         * lib/yesno.c (rpmatch): Remove declaration.
47902
47903         Declare rpmatch.
47904         * lib/stdlib.in.h (rpmatch): New declaration.
47905         * lib/rpmatch.c: Include <stdlib.h> first.
47906         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Require AC_USE_SYSTEM_EXTENSIONS and
47907         gl_STDLIB_H_DEFAULTS. Set HAVE_RPMATCH.
47908         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_RPMATCH,
47909         HAVE_RPMATCH.
47910         * modules/rpmatch (Depends-on): Add stdlib, extensions.
47911         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
47912         (Include): Set to <stdlib.h>.
47913         * modules/stdlib (Makefile.am): Substitute GNULIB_RPMATCH and
47914         HAVE_RPMATCH.
47915         * NEWS: Document the change.
47916
47917 2008-04-28  Bruno Haible  <bruno@clisp.org>
47918
47919         Change rpmatch to use nl_langinfo when appropriate.
47920         * lib/rpmatch.c: Include stdbool.h, string.h, langinfo.h.
47921         (N_): New macro.
47922         (localized_pattern): New function/macro.
47923         (try): Remove match, nomatch arguments. Copy the pattern into safe
47924         memory before caching it.
47925         (rpmatch): Use localized_pattern. Add translator comments.
47926         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Test for nl_langinfo and YESEXPR.
47927         Suggested by Eric Blake.
47928         * modules/rpmatch (Depends-on): Add stdbool.
47929
47930 2008-04-28  Eric Blake  <ebb9@byu.net>
47931
47932         Add rawmemchr module, matching glibc.
47933         * modules/string (Makefile.am): New indicator.
47934         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Set it.
47935         * lib/string.in.h (rawmemchr): Declare when appropriate.
47936         * modules/rawmemchr: New file.
47937         * m4/rawmemchr.m4: Likewise.
47938         * lib/rawmemchr.c: Likewise.
47939         * modules/rawmemchr-tests: Likewise.
47940         * tests/test-rawmemchr.c: Likewise.
47941         * doc/glibc-functions/rawmemchr.texi (rawmemchr): Document
47942         module.
47943         * modules/strchrnul (Depends-on): Add rawmemchr.
47944         * lib/strchrnul.c (strchrnul): Optimize a corner case.
47945
47946         Whitespace cleanup.
47947         * tests/test-strchrnul.c: Reindent.
47948         * lib/strchrnul.c: Likewise.
47949
47950         Optimize and test strchrnul.
47951         * lib/strchrnul.c (strchrnul): Rewrite to do parallel search.
47952         * modules/strchrnul-tests: New file.
47953         * tests/test-strchrnul.c: Likewise.
47954
47955         Remove intprops dependency.
47956         * modules/memchr (Depends-on): Remove intprops.
47957         * modules/memrchr (Depends-on): Likewise.
47958         * modules/memchr2 (Depends-on): Likewise.
47959         * lib/memchr.c (__memchr): Hand-inline the TYPE_MAXIMUM check.
47960         * lib/memrchr.c (__memrchr): Likewise.
47961         * lib/memrchr2.c (memchr2): Likewise.
47962         Reported by Simon Josefsson.
47963
47964 2008-04-28  Simon Josefsson  <simon@josefsson.org>
47965
47966         * m4/sys_socket_h.m4: Move AC_REQUIRE([AC_C_INLINE]) to top.
47967         Suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
47968
47969 2008-04-28  Simon Josefsson  <simon@josefsson.org>
47970
47971         * lib/inet_ntop.h, lib/inet_pton.h: Remove files.
47972
47973         * lib/inet_ntop.c: Include arpa/inet.h instead of inet_ntop.h.
47974
47975         * lib/inet_pton.c: Include arpa/inet.h instead of inet_pton.h.
47976
47977         * lib/arpa_inet.in.h [@GNULIB_INET_NTOP@]: Inline inet_ntop.h
47978         declarations.
47979         [@GNULIB_INET_PTON@]: Inline inet_pton.h declarations.
47980
47981         * m4/inet_pton.m4: Don't check for header files.
47982
47983         * m4/inet_ntop.m4: Don't check for header files.
47984
47985 2008-04-28  Simon Josefsson  <simon@josefsson.org>
47986
47987         * m4/sys_socket_h.m4: Require AC_C_INLINE when necessary.
47988         * lib/sys_socket.in.h (setsockopt): Use proper win32 tests (don't
47989         trigger for cygwin).
47990         Reported by Bruno Haible  <bruno@clisp.org>.
47991
47992 2008-04-28  Bruno Haible  <bruno@clisp.org>
47993
47994         * doc/posix-functions/strdup.texi: Mention mingw problem.
47995
47996 2008-04-27  Bruno Haible  <bruno@clisp.org>
47997
47998         * modules/stat-time-tests (Depends-on): Add sleep.
47999         * tests/test-stat-time.c (force_unlink): New function.
48000         (cleanup): Use it.
48001         (test_mtime): Remove the ctime related tests.
48002         (test_ctime): New function, containing the ctime related tests.
48003         (main): Call test_ctime, except on native Windows platforms.
48004
48005 2008-04-27  Bruno Haible  <bruno@clisp.org>
48006
48007         * lib/rpmatch.c (rpmatch): Add some comments.
48008         Reported by James Youngman <jay@gnu.org>.
48009
48010 2008-04-27  Bruno Haible  <bruno@clisp.org>
48011
48012         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Also test the behaviour on
48013         quiet NaNs.
48014
48015 2008-04-27  Bruno Haible  <bruno@clisp.org>
48016
48017         Make test-yesno.sh work on mingw.
48018         * tests/test-yesno.sh: Postprocess the output to convert CR/LF to LF.
48019         * tests/test-yesno.c: Include yesno.h first. Include binary-io.h.
48020         (main): Set stdin to binary mode.
48021         * modules/yesno-tests (Depends-on): Add binary-io.
48022
48023 2008-04-27  Bruno Haible  <bruno@clisp.org>
48024
48025         Fix 'isfinite' on x86, x86_64, ia64 platforms.
48026         * tests/test-isfinite.c (test_isfinitel): Also test the behavior on
48027         argument that lie outside the IEEE 854 domain.
48028         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): New macro.
48029         (gl_ISFINITE): Use it.
48030         * doc/posix-functions/isfinite.texi: Document the fixed bugs.
48031
48032 2008-04-27  Bruno Haible  <bruno@clisp.org>
48033
48034         Allow local renaming in config.h.
48035         * lib/memrchr.c (memrchr): Don't undefine outside libc.
48036
48037 2008-04-27  Bruno Haible  <bruno@clisp.org>
48038
48039         * lib/memchr.c (__memchr): Change type of 'i'.
48040         * lib/memchr2.c (memchr2): Likewise.
48041
48042 2008-04-26  Eric Blake  <ebb9@byu.net>
48043         and Bruno Haible  <bruno@clisp.org>
48044
48045         Optimize and test memrchr.
48046         * modules/memrchr (Depends-on): Add intprops.
48047         * lib/memrchr.c (__memrchr): Avoid false positives in loop.
48048         * modules/memrchr-tests: New file.
48049         * tests/test-memrchr.c: New file.
48050
48051 2008-04-26  Bruno Haible  <bruno@clisp.org>
48052
48053         Add tentative support for DragonFly BSD.
48054         * lib/stdio-impl.h: Add macros for DragonFly BSD.
48055         * lib/fbufmode.c (fbufmode): Update conditionals. Use fp_ instead of
48056         fp.
48057         * lib/fflush.c (clear_ungetc_buffer, disable_seek_optimization,
48058         restore_seek_optimization, update_fpos_cache, rpl_fflush: Likewise.
48059         * lib/fpurge.c (fpurge): Likewise.
48060         * lib/freadable.c (freaadable): Likewise.
48061         * lib/freadahead.c (freadahead): Likewise.
48062         * lib/freading.c (freading): Likewise.
48063         * lib/freadptr.c (freadptr): Likewise.
48064         * lib/freadseek.c (freadptrinc): Likewise.
48065         * lib/fseeko.c (fseeko): Likewise.
48066         * lib/fseterr.c (fseterr): Likewise.
48067         * lib/fwritable.c (fwritable): Likewise.
48068         * lib/fwriting.c (fwriting): Likewise.
48069
48070 2008-04-26  Bruno Haible  <bruno@clisp.org>
48071
48072         * lib/stdio-impl.h: New file.
48073         * lib/fbufmode.c: Include stdio-impl.h.
48074         (fbufmode): Use fp_, remove redundant #defines.
48075         * lib/fflush.c: Include stdio-impl.h.
48076         (clear_ungetc_buffer): Remove redundant #defines.
48077         * lib/fpurge.c: Include stdio-impl.h.
48078         (fpurge): Remove redundant #defines.
48079         * lib/freadable.c: Include stdio-impl.h.
48080         (freadable): Remove redundant #defines.
48081         * lib/freadahead.c: Include stdio-impl.h.
48082         (freadahead): Remove redundant #defines.
48083         * lib/freading.c: Include stdio-impl.h.
48084         (freading): Remove redundant #defines.
48085         * lib/freadptr.c: Include stdio-impl.h.
48086         (freadptr): Remove redundant #defines.
48087         * lib/freadseek.c: Include stdio-impl.h.
48088         (freadptrinc): Remove redundant #defines.
48089         * lib/fseeko.c: Include stdio-impl.h.
48090         (rpl_fseeko): Remove redundant #defines.
48091         * lib/fseterr.c: Include stdio-impl.h.
48092         (fseterr): Remove redundant #defines.
48093         * lib/fwritable.c: Include stdio-impl.h.
48094         (fwritable: Remove redundant #defines.
48095         * lib/fwriting.c: Include stdio-impl.h.
48096         (fwriting): Remove redundant #defines.
48097         * modules/fbufmode (Files): Add lib/stdio-impl.h.
48098         * modules/fflush (Files): Likewise.
48099         * modules/fpurge (Files): Likewise.
48100         * modules/freadable (Files): Likewise.
48101         * modules/freadahead (Files): Likewise.
48102         * modules/freading (Files): Likewise.
48103         * modules/freadptr (Files): Likewise.
48104         * modules/freadseek (Files): Likewise.
48105         * modules/fseeko (Files): Likewise.
48106         * modules/fseterr (Files): Likewise.
48107         * modules/fwritable (Files): Likewise.
48108         * modules/fwriting (Files): Likewise.
48109
48110 2008-04-26  Bruno Haible  <bruno@clisp.org>
48111
48112         * lib/fflush.c (clear_ungetc_buffer, disable_seek_optimization,
48113         restore_seek_optimization, update_fpos_cache): New functions, extracted
48114         from rpl_fflush.
48115         (rpl_fflush): Use them.
48116         * m4/fflush.m4 (gl_PREREQ_FFLUSH): New macro.
48117         (gl_REPLACE_FFLUSH): Use it.
48118
48119 2008-04-26  Bruno Haible  <bruno@clisp.org>
48120
48121         * tests/test-xstrtol.sh: Work around limitation of an old 'tr' program
48122         on Solaris.
48123         * tests/test-xstrtoimax.sh: Likewise.
48124         * tests/test-xstrtoumax.sh: Likewise.
48125         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
48126
48127 2008-04-26  Bruno Haible  <bruno@clisp.org>
48128
48129         * modules/memchr-tests: New file.
48130         * tests/test-memchr.c; New file, based on tests/test-memchr2.c.
48131
48132 2008-04-26  Eric Blake  <ebb9@byu.net>
48133             Bruno Haible  <bruno@clisp.org>
48134
48135         * lib/memchr.c: Include intprops.h.
48136         (__memchr): Optimize parallel detection of matching bytes. Rename local
48137         variables. Add explanatory comments.
48138
48139 2008-04-26  Bruno Haible  <bruno@clisp.org>
48140
48141         Fix module 'memchr', broken since 2000-10-28.
48142         * lib/memchr.c: Outside glibc, define memchr, not __memchr.
48143
48144 2008-04-26  Bruno Haible  <bruno@clisp.org>
48145
48146         * lib/memchr2.c (memchr2): Rename local variables. Add explanatory
48147         comments.
48148
48149 2008-04-25  Eric Blake  <ebb9@byu.net>
48150
48151         Use native fstatat on cygwin 1.7.0.
48152         * m4/openat.m4 (gl_FUNC_OPENAT): Make sure lstat check is made
48153         first.
48154
48155 2008-04-23  Eric Blake  <ebb9@byu.net>
48156
48157         Improve memchr2 performance.
48158         * lib/memchr2.c (memchr2): Further optimize parallel detection of
48159         NUL bytes.
48160         * modules/memchr2 (Depends-on): Use intprops.h.
48161
48162 2008-04-23  Simon Josefsson  <simon@josefsson.org>
48163
48164         * lib/sys_socket.in.h (setsockopt): Be more type safe by declaring
48165         an inline function instead of a CPP macro.  Patch by Ben Pfaff
48166         <blp@cs.stanford.edu>.
48167
48168 2008-04-23  Simon Josefsson  <simon@josefsson.org>
48169
48170         * lib/arpa_inet.in.h: New file.
48171
48172         * modules/arpa_inet (Files): Add lib/arpa_inet.in.h.
48173         (Makefile.am): Sed in substitute header file.
48174
48175         * m4/arpa_inet_h.m4: Add gl_ARPA_INET_H_DEFAULTS and
48176         gl_ARPA_INET_MODULE_INDICATOR.  Use them.
48177
48178         * modules/inet_ntop (configure.ac): Use
48179         gl_ARPA_INET_MODULE_INDICATOR.
48180
48181         * modules/inet_pton (configure.ac): Use
48182         gl_ARPA_INET_MODULE_INDICATOR.
48183
48184 2008-04-22  Jim Meyering  <meyering@redhat.com>
48185
48186         * modules/verify (License): Re-license as LGPLv2+.
48187
48188 2008-04-22  Simon Josefsson  <simon@josefsson.org>
48189
48190         * lib/sys_socket.in.h: Define setsockopt macro to cast fourth
48191         parameter to void* as per POSIX standard (MinGW uses char*).
48192
48193 2008-04-21  Bruno Haible  <bruno@clisp.org>
48194
48195         * lib/wctype.in.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
48196         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit):
48197         Define to replacements if REPLACE_ISWCNTRL is 1.
48198         * m4/wctype.m4 (gl_WCTYPE_H): Test whether the isw* functions work.
48199         If not, set WCTYPE_H to nonempty and REPLACE_ISWCNTRL to 1.
48200         * modules/wctype (Makefile.am): Substitute REPLACE_ISWCNTRL.
48201         * doc/posix-functions/iswalnum.texi: Mention the 'wctype' module and
48202         what it fixes.
48203         * doc/posix-functions/iswalpha.texi: Likewise.
48204         * doc/posix-functions/iswblank.texi: Likewise.
48205         * doc/posix-functions/iswcntrl.texi: Likewise.
48206         * doc/posix-functions/iswdigit.texi: Likewise.
48207         * doc/posix-functions/iswgraph.texi: Likewise.
48208         * doc/posix-functions/iswlower.texi: Likewise.
48209         * doc/posix-functions/iswprint.texi: Likewise.
48210         * doc/posix-functions/iswpunct.texi: Likewise.
48211         * doc/posix-functions/iswspace.texi: Likewise.
48212         * doc/posix-functions/iswupper.texi: Likewise.
48213         * doc/posix-functions/iswxdigit.texi: Likewise.
48214         Reported by Alain Guibert.
48215
48216 2008-04-21  Bruno Haible  <bruno@clisp.org>
48217
48218         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Fix typo in last commit.
48219         Patch by Alain Guibert.
48220
48221 2008-04-21  Bruno Haible  <bruno@clisp.org>
48222
48223         Fix test failures on mingw.
48224         * tests/test-xstrtol.c (print_no_progname): New function.
48225         (main): Install it in error_print_progname hook.
48226         * tests/test-xstrtol.sh: Convert CR/LF to NL in output.
48227         * tests/test-xstrtoimax.sh: Likewise.
48228         * tests/test-xstrtoumax.sh: Likewise.
48229
48230 2008-04-21  Bruno Haible  <bruno@clisp.org>
48231
48232         Fix test failure on mingw.
48233         * tests/test-argp-2.sh (func_compare): Remove CRs from sed's output.
48234
48235 2008-04-21  Bruno Haible  <bruno@clisp.org>
48236
48237         * lib/localename.c (SUBLANG_TIBETAN_PRC, SUBLANG_TIBETAN_BHUTAN):
48238         Actually assign a value.
48239
48240 2008-04-20  Bruno Haible  <bruno@clisp.org>
48241
48242         Fix conflict between modules 'canonicalize' and 'canonicalize-lgpl',
48243         take 2.
48244         * lib/canonicalize.c (canonicalize_file_name): Elide if the
48245         'canonicalize-lgpl' module is also used.
48246         * lib/canonicalize-lgpl.c: Undo last change.
48247         * modules/canonicalize-lgpl (configure.ac): Invoke gl_MODULE_INDICATOR.
48248
48249 2008-04-20  Bruno Haible  <bruno@clisp.org>
48250
48251         * lib/mkdir.c (mkdir): Undefine after the includes, not right after
48252         config.h. Provide _mkdir based fallback for mingw.
48253         * lib/sys_stat.in.h (mkdir): Define through an 'extern' declaration
48254         if REPLACE_MKDIR is 1. Otherwise, test for mingw directly.
48255         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Require
48256         gl_SYS_STAT_H_DEFAULTS. When doing the replacement, set REPLACE_MKDIR
48257         rather than defining mkdir in config.h.
48258         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): New macro.
48259         (gl_SYS_STAT_H_DEFAULTS): New macro.
48260         (gl_HEADER_SYS_STAT_H): Require it. Don't set HAVE_DECL_MKDIR and
48261         HAVE_IO_H any more.
48262         * modules/sys_stat (Makefile.am): Substitute REPLACE_MKDIR instead of
48263         HAVE_DECL_MKDIR and HAVE_IO_H.
48264
48265 2008-04-20  Bruno Haible  <bruno@clisp.org>
48266
48267         * lib/isapipe.c: Port to native Windows platforms.
48268
48269 2008-04-20  Bruno Haible  <bruno@clisp.org>
48270
48271         * lib/gc-gnulib.c: Include <windows.h> before <wincrypt.h>.
48272
48273 2008-04-21  Eric Blake  <ebb9@byu.net>
48274
48275         Work around preprocessors that don't handle UINTMAX_MAX.
48276         * lib/memchr2.c (memchr2): Avoid embedded #if.
48277         Reported by Alain Guibert, fix suggested by Bruno Haible.
48278
48279 2008-04-21  Simon Josefsson  <simon@josefsson.org>
48280
48281         * doc/posix-functions/strftime.texi (strftime): Explain better
48282         Windows incompatibility.  Suggested by Micah Cowan
48283         <micah@cowan.name>.
48284
48285 2008-04-20  Bruno Haible  <bruno@clisp.org>
48286
48287         * modules/uniconv/u32-conv-to-enc (Depends-on): Add unistr/u32-mblen,
48288         unistr/u8-mblen.
48289
48290 2008-04-20  Bruno Haible  <bruno@clisp.org>
48291
48292         Fix test failure on platforms with non-GNU iconv.
48293         * lib/uniconv/u16-conv-to-enc.c (u16_to_u8_lenient): New function.
48294         (U_TO_U8): Use it, rather than u16_to_u8.
48295         * lib/uniconv/u-conv-to-enc.h (FUNC): Allow an incomplete sequence of
48296         units at the end of the input string.
48297         * modules/uniconv/u16-conv-to-enc (Depends-on): Update.
48298
48299 2008-04-20  Bruno Haible  <bruno@clisp.org>
48300
48301         * tests/uniconv/test-u8-conv-to-enc.c (main): Accept result == NULL
48302         when the resulting length is 0.
48303         * tests/uniconv/test-u16-conv-to-enc.c (main): Likewise.
48304
48305 2008-04-20  Bruno Haible  <bruno@clisp.org>
48306
48307         * m4/roundf.m4 (gl_FUNC_ROUNDF): Add test whether roundf actually
48308         works.
48309         * doc/posix-functions/roundf.texi: Mention roundf bug on mingw.
48310
48311 2008-04-20  Bruno Haible  <bruno@clisp.org>
48312
48313         * tests/test-tsearch.c (main): Don't use initstate if it is missing.
48314         * modules/tsearch-tests (configure.ac): Test for initstate function.
48315
48316 2008-04-20  Bruno Haible  <bruno@clisp.org>
48317
48318         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Also provided a substitute
48319         for nlink_t if missing.
48320         * tests/test-sys_stat.c: Check the existence of the nlink_t type.
48321
48322 2008-04-19  Bruno Haible  <bruno@clisp.org>
48323
48324         Work around snprintf bug on Linux libc5.
48325         * m4/printf.m4 (gl_SNPRINTF_SIZE1): New macro.
48326         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
48327         gl_SNPRINTF_SIZE1.
48328         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
48329         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Likewise. Replace snprintf if
48330         that test failed.
48331         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Likewise.
48332         * lib/vasnprintf.c (USE_SNPRINTF): Set to 0 on Linux libc5 systems.
48333         * modules/snprintf (Files): Add m4/printf.m4.
48334         * modules/vsnprintf (Files): Likewise.
48335         * doc/posix-functions/snprintf.texi: Document Linux libc5 problem.
48336         * doc/posix-functions/vsnprintf.texi: Likewise.
48337
48338 2008-04-19  Bruno Haible  <bruno@clisp.org>
48339
48340         * lib/vasnprintf.c (floorlog10l, floorlog10): Reduce maximum error
48341         from 0.0058 to less than 10^-7.
48342
48343 2008-04-19  Bruno Haible  <bruno@clisp.org>
48344
48345         Fix rounding when a precision is given.
48346         * lib/vasnprintf.c (is_borderline): New function.
48347         (VASNPRINTF): For %e and %g, consider replacing the digits 10....0 with
48348         9...9x.
48349         * tests/test-vasnprintf-posix.c (test_function): Test rounding with %f,
48350         %e, %g.
48351         * tests/test-vasprintf-posix.c (test_function): Likewise.
48352         * tests/test-snprintf-posix.h (test_function): Likewise.
48353         * tests/test-sprintf-posix.h (test_function): Likewise.
48354         * tests/test-fprintf-posix.h (test_function): Test rounding with %f.
48355         * tests/test-printf-posix.h (test_function): Likewise.
48356         * tests/test-printf-posix.output: Update.
48357         Reported by John Darrington <john@darrington.wattle.id.au> via
48358         Ben Pfaff <blp@cs.stanford.edu>.
48359
48360 2008-04-18  Simon Josefsson  <simon@josefsson.org>
48361
48362         * doc/posix-functions/strftime.texi (strftime): Clarify platform.
48363         Suggested by Bruno Haible <bruno@clisp.org>.
48364
48365 2008-04-17  Bruno Haible  <bruno@clisp.org>
48366
48367         * lib/lock.h (gl_lock_destroy, gl_rwlock_destroy,
48368         gl_recursive_lock_destroy): Provide no-op definitions for the dummy
48369         implementation.
48370         Patch by Bruce Merry <bmerry@gmail.com>.
48371
48372 2008-04-17  Simon Josefsson  <simon@josefsson.org>
48373
48374         * doc/posix-functions/strftime.texi (strftime): Mention that %e
48375         doesn't work under Windows.
48376
48377 2008-04-16  Bruno Haible  <bruno@clisp.org>
48378
48379         * lib/localename.c (LANG_MAORI, LANG_QUECHUA, LANG_SOTHO, LANG_UIGHUR):
48380         New macros.
48381         (SUBLANG_BOSNIAN_BOSNIA_HERZEGOVINA_LATIN,
48382         SUBLANG_BOSNIAN_BOSNIA_HERZEGOVINA_CYRILLIC,
48383         SUBLANG_CROATIAN_CROATIA, SUBLANG_CROATIAN_BOSNIA_HERZEGOVINA_LATIN,
48384         SUBLANG_MONGOLIAN_CYRILLIC_MONGOLIA, SUBLANG_MONGOLIAN_PRC,
48385         SUBLANG_QUECHUA_BOLIVIA, SUBLANG_QUECHUA_ECUADOR, SUBLANG_QUECHUA_PERU,
48386         SUBLANG_RUSSIAN_RUSSIA, SUBLANG_RUSSIAN_MOLDAVIA, SUBLANG_SPANISH_US,
48387         SUBLANG_TIBETAN_PRC, SUBLANG_TIBETAN_BHUTAN, SUBLANG_UIGHUR_PRC): New
48388         macros.
48389         (gl_locale_name_from_win32_LANGID): Refine code for Croatian/Bosnian,
48390         Mongolian, Russian, Spanish, Tibetan. Add code for Maori, Quechua,
48391         Northern Sotho, Uighur.
48392
48393 2008-04-16  Bruno Haible  <bruno@clisp.org>
48394
48395         * lib/localename.c (SUBLANG_SINDHI_INDIA): New macro.
48396         (SUBLANG_SINDHI_PAKISTAN): Change value from 1 to 2.
48397         (gl_locale_name_from_win32_LANGID): Fix code for Sindhi.
48398         Reported by Daniel Bergström <daniel@octocode.com>.
48399
48400 2007-12-25  KJK::Hyperion  <hackbunny@reactos.com>
48401             Bruno Haible  <bruno@clisp.org>
48402
48403         * lib/localename.c (gl_locale_name_canonicalize) [WIN32_NATIVE]: New
48404         function.
48405         (gl_locale_name_from_win32_LANGID, gl_locale_name_from_win32_LCID):
48406         New functions, mostly extracted from gl_locale_name_default.
48407         (gl_locale_name_default): Use gl_locale_name_from_win32_LCID.
48408
48409 2008-04-16  Eric Blake  <ebb9@byu.net>
48410
48411         Adjust strtod detection to catch glibc 2.7 bug.
48412         * m4/strtod.m4 (gl_FUNC_STRTOD): Test "nan()" behavior.
48413         Reported by John Gatewood Ham.
48414
48415 2008-04-16  Bruno Haible  <bruno@clisp.org>
48416
48417         Add tentative support for Linux libc5.
48418         * lib/fbufmode.c (fbufmode) [__GNU_LIBRARY__==1]: Reuse glibc2 code.
48419         * lib/fpurge.c (fpurge): Likewise.
48420         * lib/freadable.c (freadable): Likewise.
48421         * lib/freadahead.c (freadahead): Likewise.
48422         * lib/freading.c (freading): Likewise.
48423         * lib/freadptr.c (freadptr): Likewise.
48424         * lib/freadseek.c (freadptrinc): Likewise.
48425         * lib/fseeko.c (rpl_fseeko): Likewise.
48426         * lib/fseterr.c (fseterr): Likewise.
48427         * lib/fwritable.c (fwritable): Likewise.
48428         * lib/fwriting.c (fwriting): Likewise.
48429         Reported by Alain Guibert <alguibert+bts@free.fr>.
48430
48431 2008-04-15  Bruno Haible  <bruno@clisp.org>
48432
48433         * modules/mathl (configure.ac): Define module indicator.
48434
48435 2008-04-15  Bruno Haible  <bruno@clisp.org>
48436
48437         * lib/logl.c (logl): Remove unused variables.
48438
48439 2008-04-15  Bruno Haible  <bruno@clisp.org>
48440
48441         * lib/uniconv/u-conv-to-enc.h (FUNC): Fix return value when U_TO_U8
48442         fails.
48443
48444 2008-04-15  Bruno Haible  <bruno@clisp.org>
48445
48446         * lib/trim.c (trim2): Fix argument of isspace() macro.
48447
48448 2008-04-15  Paolo Bonzini  <bonzini@gnu.org>
48449
48450         * lib/tanl.c (kernel_tanl): Rename flag to invert, initialize it
48451         to 0.
48452         * lib/trigl.c (ieee754_rem_pio2l): Fix range checks.
48453
48454 2008-04-14  Bruno Haible  <bruno@clisp.org>
48455
48456         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Fix underquoting of
48457         AC_LANG_PROGRAM argument.
48458         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Likewise.
48459         * m4/gethrxtime.m4 (gl_ARITHMETIC_HRTIME_T): Likewise.
48460         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
48461         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
48462         * m4/math_h.m4 (gl_MATH_H): Likewise.
48463         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Likewise.
48464         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
48465         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Likewise.
48466         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): Likewise.
48467         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
48468         * m4/regex.m4 (gl_REGEX): Likewise.
48469         * m4/stdint.m4 (gl_INTEGER_TYPE_SUFFIX): Likewise.
48470         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET): Likewise.
48471         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
48472         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Likewise.
48473         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
48474         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
48475         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
48476         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
48477
48478 2008-04-14  Jim Meyering  <meyering@redhat.com>
48479
48480         test-strtod: fix typos: s/abs/fabs/
48481         * tests/test-strtod.c (main): Use fabs, not narrowing-to-int "abs".
48482
48483 2008-04-13  Bruno Haible  <bruno@clisp.org>
48484
48485         Fix conflict between modules 'canonicalize' and 'canonicalize-lgpl'.
48486         * lib/canonicalize-lgpl.c: Elide the contents if the 'canonicalize'
48487         module is also used and while not building the reloc-wrapper.
48488
48489 2008-04-13  Bruno Haible  <bruno@clisp.org>
48490
48491         * tests/test-getaddrinfo.c (simple): Ignore EAI_NODATA error.
48492
48493 2008-04-13  Bruno Haible  <bruno@clisp.org>
48494
48495         Fix AIX compilation failure introduced on 2008-04-02.
48496         * tests/test-frexp.c (exp): Undefine before redefining.
48497         * tests/test-frexpl.c (exp): Likewise.
48498
48499 2008-04-13  Bruno Haible  <bruno@clisp.org>
48500
48501         Work around a HP-UX stdio bug.
48502         * tests/test-ftell.c (main): Disable the fseek/ftell test on HP-UX.
48503         * tests/test-ftello.c (main): Likewise.
48504         * doc/posix-functions/ftell.texi: Mention HP-UX bug.
48505         * doc/posix-functions/ftello.texi: Likewise.
48506
48507 2008-04-13  Bruno Haible  <bruno@clisp.org>
48508
48509         Make test-signbit pass on HP-UX/hppa.
48510         * tests/test-signbit.c (minus_zerol): New variable.
48511         (test_signbitl): Use it.
48512
48513 2008-04-13  Bruno Haible  <bruno@clisp.org>
48514
48515         Make truncl work on OSF/1 4.0.
48516         * m4/truncl.m4 (gl_FUNC_TRUNCL): Test whether truncl actually works.
48517         Set REPLACE_TRUNCL, not HAVE_DECL_TRUNCL.
48518         * lib/math.in.h (truncl): Test REPLACE_TRUNCL, not HAVE_DECL_TRUNCL.
48519         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNCL, not
48520         HAVE_DECL_TRUNCL.
48521         * modules/math (Makefile.am): Substitute REPLACE_TRUNCL, not
48522         HAVE_DECL_TRUNCL.
48523         * doc/posix-functions/truncl.texi: Document the OSF/1 4.0 problem.
48524
48525 2008-04-13  Bruno Haible  <bruno@clisp.org>
48526
48527         * lib/unictype.h: Remove trailing comma from enumeration definitions.
48528
48529 2008-04-13  Bruno Haible  <bruno@clisp.org>
48530
48531         * lib/count-one-bits.h (COUNT_ONE_BITS): Rewrite verification
48532         expression, so as to avoid HP-UX 11 cc compiler bug.
48533
48534 2008-04-13  Bruno Haible  <bruno@clisp.org>
48535
48536         * m4/regex.m4 (gl_PREREQ_REGEX): Also check for <libintl.h>.
48537
48538 2008-04-13  Bruno Haible  <bruno@clisp.org>
48539
48540         * lib/git-merge-changelog.c: Remove empty declaration outside of
48541         functions.
48542
48543 2008-04-13  Bruno Haible  <bruno@clisp.org>
48544
48545         * modules/quotearg-tests (Makefile.am): Define test_quotearg_LDADD.
48546
48547 2008-04-13  Bruno Haible  <bruno@clisp.org>
48548
48549         * doc/posix-headers/sys_socket.texi: Document the problem on EMX.
48550         * lib/sys_socket.in.h (SHUT_RD, SHUT_WR, SHUT_RDWR): Define if missing.
48551         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Replace <sys/socket.h>
48552         also if it exists but lacks definitions of the SHUT_* macros.
48553         * modules/sys_socket (Description): Update.
48554         Reported by Elbert Pol <e.pol@chello.nl>.
48555
48556 2008-04-13  Bruno Haible  <bruno@clisp.org>
48557
48558         * lib/localcharset.c (OS2): Don't redefine if already defined.
48559         Reported by Elbert Pol <e.pol@chello.nl>.
48560
48561 2008-04-13  Bruno Haible  <bruno@clisp.org>
48562
48563         * lib/binary-io.h [__EMX__]: Include <io.h>.
48564         Reported by Elbert Pol <e.pol@chello.nl>.
48565
48566 2008-04-12  Bruno Haible  <bruno@clisp.org>
48567
48568         * lib/fpucw.h: Enable the definitions also for x86_64.
48569         Needed for NetBSD/x86_64.
48570         Reported by Thomas Klausner <tk@giga.or.at>.
48571
48572 2008-04-12  Bruno Haible  <bruno@clisp.org>
48573
48574         * tests/test-strtod.c: Include isnand.h.
48575         (main): Use isnand instead of isnan.
48576         Reported by Jim Meyering.
48577
48578 2008-04-12  Bruno Haible  <bruno@clisp.org>
48579
48580         * m4/isnanf.m4 (gl_ISNANF_WORKS): Add a test for a special NaN.
48581         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
48582
48583 2008-04-12  Jim Meyering  <meyering@redhat.com>
48584
48585         * m4/math_h.m4 (gl_MATH_H): Fix typos.
48586
48587 2008-04-12  Bruno Haible  <bruno@clisp.org>
48588
48589         * lib/freadptr.c (freadptr) [__EMX__]: Fix wrong assertion.
48590         Reported by Elbert Pol <e.pol@chello.nl>.
48591
48592 2008-04-12  Eric Blake  <ebb9@byu.net>
48593
48594         Work around Solaris 10 math.h bug.
48595         * m4/math_h.m4 (gl_MATH_H): Check for bug.
48596         (gl_MATH_H_DEFAULTS): Set up default.
48597         * modules/math (Makefile.am): Replace new indicators.
48598         * lib/math.in.h (NAN, HUGE_VAL): Provide replacements.
48599         * tests/test-math.c (main): Test this.
48600         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't rely on HUGE_VAL.
48601         * doc/posix-headers/math.texi (math.h): Mention bug.
48602         Reported by Nelson H. F. Beebe and Jim Meyering.
48603
48604 2008-04-11  Bruno Haible  <bruno@clisp.org>
48605
48606         Adapt to future versions of Apple GCC.
48607         * lib/argp-fmtstream.h (ARGP_FS_EI): Don't test __GNUC_GNU_INLINE__.
48608         Reported by Peter O'Gorman <peter@pogma.com>.
48609
48610 2008-04-11  Bruno Haible  <bruno@clisp.org>
48611
48612         * tests/test-getaddrinfo.c (simple): Ignore EAI_NONAME error.
48613
48614 2008-04-11  Bruno Haible  <bruno@clisp.org>
48615
48616         * modules/strsignal-tests (Makefile.am): Define test_strsignal_LDADD.
48617
48618         * modules/getaddrinfo-tests (Makefile.am): Define
48619         test_getaddrinfo_LDADD.
48620
48621 2008-04-11  Bruno Haible  <bruno@clisp.org>
48622
48623         * lib/strsignal.c (_sys_siglist): Don't declare if already declared.
48624         (init): Fix syntax error.
48625         * m4/strsignal.m4 (gl_PREREQ_STRSIGNAL): Check whether _sys_siglist
48626         is declared.
48627
48628 2008-04-11  Bruno Haible  <bruno@clisp.org>
48629
48630         * lib/glob.c: Include <stdbool.h>. Needed at least with IRIX cc.
48631         * modules/glob (Depends-on): Add stdbool.
48632
48633 2008-04-11  Bruno Haible  <bruno@clisp.org>
48634
48635         * lib/trim.c: Include <string.h>.
48636
48637 2008-04-11  Eric Blake  <ebb9@byu.net>
48638
48639         Avoid compile failure on OS/2.
48640         * lib/regex_internal.h (internal_function): Disable optimization
48641         on OS/2 (__EMX__), where it caused compiler error.
48642         Reported by Elbert Pol.
48643
48644 2008-04-11  Bruno Haible  <bruno@clisp.org>
48645
48646         Flush the standard error stream before aborting. Needed on mingw.
48647         * tests/test-argmatch.c (ASSERT): Call fflush(stderr) before abort().
48648         * tests/test-array_list.c (ASSERT): Likewise.
48649         * tests/test-array_oset.c (ASSERT): Likewise.
48650         * tests/test-avltree_list.c (ASSERT): Likewise.
48651         * tests/test-avltree_oset.c (ASSERT): Likewise.
48652         * tests/test-avltreehash_list.c (ASSERT): Likewise.
48653         * tests/test-binary-io.c (ASSERT): Likewise.
48654         * tests/test-byteswap.c (ASSERT): Likewise.
48655         * tests/test-c-ctype.c (ASSERT): Likewise.
48656         * tests/test-c-strcasecmp.c (ASSERT): Likewise.
48657         * tests/test-c-strcasestr.c (ASSERT): Likewise.
48658         * tests/test-c-strncasecmp.c (ASSERT): Likewise.
48659         * tests/test-c-strstr.c (ASSERT): Likewise.
48660         * tests/test-canonicalize-lgpl.c (ASSERT): Likewise.
48661         * tests/test-canonicalize.c (ASSERT): Likewise.
48662         * tests/test-carray_list.c (ASSERT): Likewise.
48663         * tests/test-ceilf1.c (ASSERT): Likewise.
48664         * tests/test-ceilf2.c (ASSERT): Likewise.
48665         * tests/test-ceill.c (ASSERT): Likewise.
48666         * tests/test-count-one-bits.c (ASSERT): Likewise.
48667         * tests/test-fbufmode.c (ASSERT): Likewise.
48668         * tests/test-fflush2.c (ASSERT): Likewise.
48669         * tests/test-floorf1.c (ASSERT): Likewise.
48670         * tests/test-floorf2.c (ASSERT): Likewise.
48671         * tests/test-floorl.c (ASSERT): Likewise.
48672         * tests/test-fopen.c (ASSERT): Likewise.
48673         * tests/test-fpending.c (ASSERT): Likewise.
48674         * tests/test-fprintf-posix.c (ASSERT): Likewise.
48675         * tests/test-fpurge.c (ASSERT): Likewise.
48676         * tests/test-freadable.c (ASSERT): Likewise.
48677         * tests/test-freadahead.c (ASSERT): Likewise.
48678         * tests/test-freading.c (ASSERT): Likewise.
48679         * tests/test-freadptr.c (ASSERT): Likewise.
48680         * tests/test-freadptr2.c (ASSERT): Likewise.
48681         * tests/test-freadseek.c (ASSERT): Likewise.
48682         * tests/test-freopen.c (ASSERT): Likewise.
48683         * tests/test-frexp.c (ASSERT): Likewise.
48684         * tests/test-frexpl.c (ASSERT): Likewise.
48685         * tests/test-fseek.c (ASSERT): Likewise.
48686         * tests/test-fseeko.c (ASSERT): Likewise.
48687         * tests/test-fstrcmp.c (ASSERT): Likewise.
48688         * tests/test-ftell.c (ASSERT): Likewise.
48689         * tests/test-ftello.c (ASSERT): Likewise.
48690         * tests/test-func.c (ASSERT): Likewise.
48691         * tests/test-fwritable.c (ASSERT): Likewise.
48692         * tests/test-fwriting.c (ASSERT): Likewise.
48693         * tests/test-getdelim.c (ASSERT): Likewise.
48694         * tests/test-getline.c (ASSERT): Likewise.
48695         * tests/test-i-ring.c (ASSERT): Likewise.
48696         * tests/test-iconv-utf.c (ASSERT): Likewise.
48697         * tests/test-iconv.c (ASSERT): Likewise.
48698         * tests/test-isfinite.c (ASSERT): Likewise.
48699         * tests/test-isnand.c (ASSERT): Likewise.
48700         * tests/test-isnanf.c (ASSERT): Likewise.
48701         * tests/test-isnanl.h (ASSERT): Likewise.
48702         * tests/test-ldexpl.c (ASSERT): Likewise.
48703         * tests/test-linked_list.c (ASSERT): Likewise.
48704         * tests/test-linkedhash_list.c (ASSERT): Likewise.
48705         * tests/test-localename.c (ASSERT): Likewise.
48706         * tests/test-lseek.c (ASSERT): Likewise.
48707         * tests/test-mbscasecmp.c (ASSERT): Likewise.
48708         * tests/test-mbscasestr1.c (ASSERT): Likewise.
48709         * tests/test-mbscasestr2.c (ASSERT): Likewise.
48710         * tests/test-mbscasestr3.c (ASSERT): Likewise.
48711         * tests/test-mbscasestr4.c (ASSERT): Likewise.
48712         * tests/test-mbschr.c (ASSERT): Likewise.
48713         * tests/test-mbscspn.c (ASSERT): Likewise.
48714         * tests/test-mbsncasecmp.c (ASSERT): Likewise.
48715         * tests/test-mbspbrk.c (ASSERT): Likewise.
48716         * tests/test-mbspcasecmp.c (ASSERT): Likewise.
48717         * tests/test-mbsrchr.c (ASSERT): Likewise.
48718         * tests/test-mbsspn.c (ASSERT): Likewise.
48719         * tests/test-mbsstr1.c (ASSERT): Likewise.
48720         * tests/test-mbsstr2.c (ASSERT): Likewise.
48721         * tests/test-mbsstr3.c (ASSERT): Likewise.
48722         * tests/test-memchr2.c (ASSERT): Likewise.
48723         * tests/test-memmem.c (ASSERT): Likewise.
48724         * tests/test-open.c (ASSERT): Likewise.
48725         * tests/test-printf-frexp.c (ASSERT): Likewise.
48726         * tests/test-printf-frexpl.c (ASSERT): Likewise.
48727         * tests/test-printf-posix.c (ASSERT): Likewise.
48728         * tests/test-quotearg.c (ASSERT): Likewise.
48729         * tests/test-rbtree_list.c (ASSERT): Likewise.
48730         * tests/test-rbtree_oset.c (ASSERT): Likewise.
48731         * tests/test-rbtreehash_list.c (ASSERT): Likewise.
48732         * tests/test-round1.c (ASSERT): Likewise.
48733         * tests/test-roundf1.c (ASSERT): Likewise.
48734         * tests/test-roundl.c (ASSERT): Likewise.
48735         * tests/test-signbit.c (ASSERT): Likewise.
48736         * tests/test-sleep.c (ASSERT): Likewise.
48737         * tests/test-snprintf-posix.c (ASSERT): Likewise.
48738         * tests/test-snprintf.c (ASSERT): Likewise.
48739         * tests/test-sprintf-posix.c (ASSERT): Likewise.
48740         * tests/test-stat-time.c (ASSERT): Likewise.
48741         * tests/test-strcasestr.c (ASSERT): Likewise.
48742         * tests/test-strerror.c (ASSERT): Likewise.
48743         * tests/test-striconv.c (ASSERT): Likewise.
48744         * tests/test-striconveh.c (ASSERT): Likewise.
48745         * tests/test-striconveha.c (ASSERT): Likewise.
48746         * tests/test-strsignal.c (ASSERT): Likewise.
48747         * tests/test-strstr.c (ASSERT): Likewise.
48748         * tests/test-strtod.c (ASSERT): Likewise.
48749         * tests/test-trunc1.c (ASSERT): Likewise.
48750         * tests/test-trunc2.c (ASSERT): Likewise.
48751         * tests/test-truncf1.c (ASSERT): Likewise.
48752         * tests/test-truncf2.c (ASSERT): Likewise.
48753         * tests/test-truncl.c (ASSERT): Likewise.
48754         * tests/test-vasnprintf-posix.c (ASSERT): Likewise.
48755         * tests/test-vasnprintf-posix2.c (ASSERT): Likewise.
48756         * tests/test-vasnprintf.c (ASSERT): Likewise.
48757         * tests/test-vasprintf-posix.c (ASSERT): Likewise.
48758         * tests/test-vasprintf.c (ASSERT): Likewise.
48759         * tests/test-vfprintf-posix.c (ASSERT): Likewise.
48760         * tests/test-vprintf-posix.c (ASSERT): Likewise.
48761         * tests/test-vsnprintf-posix.c (ASSERT): Likewise.
48762         * tests/test-vsnprintf.c (ASSERT): Likewise.
48763         * tests/test-vsprintf-posix.c (ASSERT): Likewise.
48764         * tests/test-wcwidth.c (ASSERT): Likewise.
48765         * tests/test-xfprintf-posix.c (ASSERT): Likewise.
48766         * tests/test-xprintf-posix.c (ASSERT): Likewise.
48767         * tests/test-xvasprintf.c (ASSERT): Likewise.
48768         * tests/uniconv/test-u16-conv-from-enc.c (ASSERT): Likewise.
48769         * tests/uniconv/test-u16-conv-to-enc.c (ASSERT): Likewise.
48770         * tests/uniconv/test-u16-strconv-from-enc.c (ASSERT): Likewise.
48771         * tests/uniconv/test-u16-strconv-to-enc.c (ASSERT): Likewise.
48772         * tests/uniconv/test-u32-conv-from-enc.c (ASSERT): Likewise.
48773         * tests/uniconv/test-u32-conv-to-enc.c (ASSERT): Likewise.
48774         * tests/uniconv/test-u32-strconv-from-enc.c (ASSERT): Likewise.
48775         * tests/uniconv/test-u32-strconv-to-enc.c (ASSERT): Likewise.
48776         * tests/uniconv/test-u8-conv-from-enc.c (ASSERT): Likewise.
48777         * tests/uniconv/test-u8-conv-to-enc.c (ASSERT): Likewise.
48778         * tests/uniconv/test-u8-strconv-from-enc.c (ASSERT): Likewise.
48779         * tests/uniconv/test-u8-strconv-to-enc.c (ASSERT): Likewise.
48780         * tests/unictype/test-bidi_byname.c (ASSERT): Likewise.
48781         * tests/unictype/test-bidi_name.c (ASSERT): Likewise.
48782         * tests/unictype/test-bidi_of.c (ASSERT): Likewise.
48783         * tests/unictype/test-bidi_test.c (ASSERT): Likewise.
48784         * tests/unictype/test-block_list.c (ASSERT): Likewise.
48785         * tests/unictype/test-block_of.c (ASSERT): Likewise.
48786         * tests/unictype/test-block_test.c (ASSERT): Likewise.
48787         * tests/unictype/test-categ_and.c (ASSERT): Likewise.
48788         * tests/unictype/test-categ_and_not.c (ASSERT): Likewise.
48789         * tests/unictype/test-categ_byname.c (ASSERT): Likewise.
48790         * tests/unictype/test-categ_name.c (ASSERT): Likewise.
48791         * tests/unictype/test-categ_none.c (ASSERT): Likewise.
48792         * tests/unictype/test-categ_of.c (ASSERT): Likewise.
48793         * tests/unictype/test-categ_or.c (ASSERT): Likewise.
48794         * tests/unictype/test-categ_test_withtable.c (ASSERT): Likewise.
48795         * tests/unictype/test-combining.c (ASSERT): Likewise.
48796         * tests/unictype/test-decdigit.c (ASSERT): Likewise.
48797         * tests/unictype/test-digit.c (ASSERT): Likewise.
48798         * tests/unictype/test-mirror.c (ASSERT): Likewise.
48799         * tests/unictype/test-numeric.c (ASSERT): Likewise.
48800         * tests/unictype/test-pr_byname.c (ASSERT): Likewise.
48801         * tests/unictype/test-pr_test.c (ASSERT): Likewise.
48802         * tests/unictype/test-predicate-part1.h (ASSERT): Likewise.
48803         * tests/unictype/test-scripts.c (ASSERT): Likewise.
48804         * tests/unictype/test-sy_c_ident.c (ASSERT): Likewise.
48805         * tests/unictype/test-sy_java_ident.c (ASSERT): Likewise.
48806         * tests/unistdio/test-u16-asnprintf1.c (ASSERT): Likewise.
48807         * tests/unistdio/test-u16-vasnprintf1.c (ASSERT): Likewise.
48808         * tests/unistdio/test-u16-vasnprintf2.c (ASSERT): Likewise.
48809         * tests/unistdio/test-u16-vasnprintf3.c (ASSERT): Likewise.
48810         * tests/unistdio/test-u16-vasprintf1.c (ASSERT): Likewise.
48811         * tests/unistdio/test-u16-vsnprintf1.c (ASSERT): Likewise.
48812         * tests/unistdio/test-u16-vsprintf1.c (ASSERT): Likewise.
48813         * tests/unistdio/test-u32-asnprintf1.c (ASSERT): Likewise.
48814         * tests/unistdio/test-u32-vasnprintf1.c (ASSERT): Likewise.
48815         * tests/unistdio/test-u32-vasnprintf2.c (ASSERT): Likewise.
48816         * tests/unistdio/test-u32-vasnprintf3.c (ASSERT): Likewise.
48817         * tests/unistdio/test-u32-vasprintf1.c (ASSERT): Likewise.
48818         * tests/unistdio/test-u32-vsnprintf1.c (ASSERT): Likewise.
48819         * tests/unistdio/test-u32-vsprintf1.c (ASSERT): Likewise.
48820         * tests/unistdio/test-u8-asnprintf1.c (ASSERT): Likewise.
48821         * tests/unistdio/test-u8-vasnprintf1.c (ASSERT): Likewise.
48822         * tests/unistdio/test-u8-vasnprintf2.c (ASSERT): Likewise.
48823         * tests/unistdio/test-u8-vasnprintf3.c (ASSERT): Likewise.
48824         * tests/unistdio/test-u8-vasprintf1.c (ASSERT): Likewise.
48825         * tests/unistdio/test-u8-vsnprintf1.c (ASSERT): Likewise.
48826         * tests/unistdio/test-u8-vsprintf1.c (ASSERT): Likewise.
48827         * tests/unistdio/test-ulc-asnprintf1.c (ASSERT): Likewise.
48828         * tests/unistdio/test-ulc-vasnprintf1.c (ASSERT): Likewise.
48829         * tests/unistdio/test-ulc-vasnprintf2.c (ASSERT): Likewise.
48830         * tests/unistdio/test-ulc-vasnprintf3.c (ASSERT): Likewise.
48831         * tests/unistdio/test-ulc-vasprintf1.c (ASSERT): Likewise.
48832         * tests/unistdio/test-ulc-vsnprintf1.c (ASSERT): Likewise.
48833         * tests/unistdio/test-ulc-vsprintf1.c (ASSERT): Likewise.
48834         * tests/uniwidth/test-u16-strwidth.c (ASSERT): Likewise.
48835         * tests/uniwidth/test-u16-width.c (ASSERT): Likewise.
48836         * tests/uniwidth/test-u32-strwidth.c (ASSERT): Likewise.
48837         * tests/uniwidth/test-u32-width.c (ASSERT): Likewise.
48838         * tests/uniwidth/test-u8-strwidth.c (ASSERT): Likewise.
48839         * tests/uniwidth/test-u8-width.c (ASSERT): Likewise.
48840         * tests/uniwidth/test-uc_width.c (ASSERT): Likewise.
48841         Reported by Eric Blake.
48842
48843 2008-04-11  Bruno Haible  <bruno@clisp.org>
48844
48845         * lib/wchar.in.h: Tweak comment.
48846
48847 2008-04-11  Bruno Haible  <bruno@clisp.org>
48848
48849         Fix __GNUC_STDC_INLINE__ predefine with Apple GCC on MacOS X 10.5.
48850         * gnulib-tool (func_emit_initmacro_start): Emit an invocation of
48851         gl_COMMON.
48852         * m4/gnulib-common.m4 (gl_COMMON, gl_COMMON_BODY): New macros.
48853
48854 2008-04-11  Bruno Haible  <bruno@clisp.org>
48855
48856         * modules/git-merge-changelog (git_merge_changelog_LDADD): Add LIBINTL.
48857
48858 2008-04-11  Simon Josefsson  <simon@josefsson.org>
48859
48860         * lib/gc-gnulib.c: On Windows, use CryptGenRandom from CSP instead
48861         of attempting to use non-existing /dev/*random.  Based on patch
48862         from Adam Strzelecki <ono@java.pl> in
48863         <http://lists.gnu.org/archive/html/help-gsasl/2008-02/msg00000.html>.
48864
48865 2008-04-08  Bruno Haible  <bruno@clisp.org>
48866
48867         Add tentative support for emx+gcc.
48868         * lib/fbufmode.c (fbufmode) [__EMX__]: Add conditional code.
48869         * lib/fpurge.c (fpurge): Likewise.
48870         * lib/freadable.c (freadable): Likewise.
48871         * lib/freadahead.c (freadahead): Likewise.
48872         * lib/freading.c (freading): Likewise.
48873         * lib/freadptr.c (freadptr): Likewise.
48874         * lib/freadseek.c (freadptrinc): Likewise.
48875         * lib/fseeko.c (rpl_fseeko): Likewise.
48876         * lib/fseterr.c (fseterr): Likewise.
48877         * lib/fwritable.c (fwritable): Likewise.
48878         * lib/fwriting.c (fwriting): Likewise.
48879         * m4/fpending.m4 (gl_FUNC_FPENDING): Add a variant for emx+gcc.
48880
48881 2008-04-09  Eric Blake  <ebb9@byu.net>
48882
48883         Avoid some autoconf warnings.
48884         * m4/regex.m4 (gl_REGEX): s/AC_HELP_STRING/AS_HELP_STRING/.
48885         * m4/acl.m4 (gl_FUNC_ACL): Likewise.
48886         * m4/afs.m4 (gl_AFS): Likewise.
48887         * m4/gc-random.m4 (gl_GC_RANDOM): Likewise.
48888         * m4/include_next.m4 (gl_INCLUDE_NEXT): s/AC_FOREACH/m4_foreach_w/.
48889         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
48890         * m4/stdint.m4 (gl_STDINT_BITSIZEOF, gl_CHECK_TYPES_SIGNED)
48891         (gl_INTEGER_TYPE_SUFFIX): Likewise.
48892         * m4/onceonly_2_57.m4 (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE)
48893         (AC_CHECK_DECLS_ONCE): Likewise.
48894         Rename file...
48895         * m4/onceonly.m4: ...to this, and delete 2.54 variant, now that
48896         gnulib-tool requires autoconf 2.59 or better.
48897         * gnulib-tool (func_get_filelist): s/\(onceonly\)_2_57.m4/\1.m4/.
48898
48899 2008-04-08  Eric Blake  <ebb9@byu.net>
48900
48901         Use 'git describe --match' if present (added in git 1.5.5).
48902         * build-aux/git-version-gen: Limit result to tags that match 'v*'
48903         if possible.
48904
48905 2008-04-08  Bruno Haible  <bruno@clisp.org>
48906
48907         Add tentative support for OpenServer.
48908         * lib/fbufmode.c (fbufmode): Add conditional define for _flag, _base,
48909         _ptr, _cnt.
48910         * lib/fpurge.c (fpurge): Likewise.
48911         * lib/freadable.c (freadable): Likewise.
48912         * lib/freadahead.c (freadahead): Likewise.
48913         * lib/freading.c (freading): Likewise.
48914         * lib/freadptr.c (freadptr): Likewise.
48915         * lib/freadseek.c (freadptrinc): Likewise.
48916         * lib/fseeko.c (rpl_fseeko): Likewise.
48917         * lib/fseterr.c (fseterr): Likewise.
48918         * lib/fwritable.c (fwritable): Likewise.
48919         * lib/fwriting.c (fwriting): Likewise.
48920         Reported by Roger Cornelius <rac@tenzing.org> and
48921         Brian K. White <brian@aljex.com>.
48922
48923 2008-04-06  Jim Meyering  <meyering@redhat.com>
48924
48925         * gnulib-tool (func_add_or_update): s/backuped/backed up/ in diagnostic
48926
48927 2008-04-06  Bruno Haible  <bruno@clisp.org>
48928
48929         Avoid possible error with non-ASCII bytes in UTF-8 locales.
48930         * tests/test-fprintf-posix.sh: Use "LC_ALL=C tr" instead of "tr".
48931         * tests/test-printf-posix.sh: Likewise.
48932         * tests/test-vfprintf-posix.sh: Likewise.
48933         * tests/test-vprintf-posix.sh: Likewise.
48934         * tests/test-xprintf-posix.sh: Likewise.
48935
48936 2008-04-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
48937
48938         * m4/double-slash-root.m4 (gl_DOUBLE_SLASH_ROOT): Fix quoting,
48939         hide error from 'ls', needed on OS/2.
48940         Report by Elbert Pol <elbert.pol@gmail.com>.
48941
48942 2008-04-04  Eric Blake  <ebb9@byu.net>
48943
48944         Make test-fseeko.c failures meaningful.
48945         * tests/test-fseeko.c: Print line number on failure.
48946         * tests/test-fseek.c: Likewise.
48947         Reported by Nelson H. F. Beebe.
48948
48949         Improve strtod bug detection check.
48950         * m4/strtod.m4 (gl_FUNC_STRTOD): Also check for hex-float parsing,
48951         required for Solaris 10.
48952         Reported by Bob Friesenhahn and Nelson H. F. Beebe.
48953
48954 2008-04-04  Bruno Haible  <bruno@clisp.org>
48955
48956         * modules/relocatable-prog-wrapper (Files): Add m4/environ.m4. Needed
48957         by m4/setenv.m4.
48958
48959 2008-04-03  Eric Blake  <ebb9@byu.net>
48960
48961         Ensure sane .version contents.
48962         * top/GNUmakefile (_dummy): Also delete .version when rebuilding
48963         version string.
48964         * build-aux/git-version-gen: Improve documentation.
48965
48966         Make GNU make output nicer.
48967         * top/GNUmakefile [!_have-Makefile]: Add dependency on
48968         MAKECMDGOALS to enforce message for all command line targets.  Set
48969         srcdir for use in maint.mk.
48970
48971         Another maintainer tweak.
48972         * top/GNUmakefile (_is-dist-target): Allow maintainer-distcheck as
48973         a target that regenerates version.
48974
48975 2008-04-03  Jim Meyering  <meyering@redhat.com>
48976
48977         vc-list-files: don't cause coreutils "make po-check" failure
48978         * build-aux/vc-list-files: Skip postprocessing when $2 is '.'
48979
48980 2008-04-03  Eric Blake  <ebb9@byu.net>
48981
48982         Allow VPATH usage of vc-list-files.
48983         * build-aux/vc-list-files (scriptversion): Add timestamp.
48984         (options): Add --help, --version, -C.
48985         (CVS): Support installed cvsu.
48986
48987 2008-04-02  Bruno Haible  <bruno@clisp.org>
48988
48989         Avoid some "statement with no effect" warnings from gcc.
48990         * tests/test-wctype.c (main): Explicitly ignore unused values.
48991         Reported by Jim Meyering.
48992
48993 2008-04-02  Jim Meyering  <meyering@redhat.com>
48994
48995         Avoid some warnings from "gcc -Wshadow".
48996         * tests/test-frexp.c (exp): Define to a different identifier.
48997         * tests/test-frexpl.c (exp): Likewise.
48998
48999 2008-04-03  Jim Meyering  <meyering@redhat.com>
49000
49001         bootstrap: remove dangling *.[ch] symlinks from lib
49002         * build-aux/bootstrap [dangling symlink removal]: Move find's
49003         -depth option to precede all others, to avoid a warning.
49004         Remove *.[ch] files too, and from "$source_base" (usually lib/).
49005
49006 2008-04-02  Bruno Haible  <bruno@clisp.org>
49007
49008         Avoid some warnings from "gcc -Wshadow".
49009         * tests/tests-vfprintf-posix.c (my_fprintf): Move after test_function.
49010         * tests/tests-vprintf-posix.c (my_printf): Move after test_function.
49011         * tests/tests-vsnprintf-posix.c (my_snprintf): Move after test_function.
49012         * tests/tests-vsprintf-posix.c (my_sprintf): Move after test_function.
49013         Reported by Jim Meyering.
49014
49015 2008-04-01  Bruno Haible  <bruno@clisp.org>
49016
49017         Fix test to work on IRIX 6.5 with cc.
49018         * tests/test-math.c (numeric_equal): New function.
49019         (main): Use it.
49020
49021 2008-04-01  Bruno Haible  <bruno@clisp.org>
49022
49023         * doc/posix-headers/math.texi: Refine documentation of NAN problem.
49024
49025 2008-04-01  Bruno Haible  <bruno@clisp.org>
49026
49027         * tests/test-vasnprintf-posix.c: Include nan.h instead of <math.h>.
49028         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
49029         * modules/vasnprintf-posix-tests (Files): Add tests/nan.h.
49030         (Depends-on): Remove math.
49031
49032         * tests/test-vasprintf-posix.c: Include nan.h instead of <math.h>.
49033         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
49034         * modules/vasprintf-posix-tests (Files): Add tests/nan.h.
49035         (Depends-on): Remove math.
49036
49037         * tests/test-snprintf-posix.h: Include nan.h instead of <math.h>.
49038         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
49039         * modules/snprintf-posix-tests (Files): Add tests/nan.h.
49040         (Depends-on): Remove math.
49041         * modules/vsnprintf-posix-tests (Files): Add tests/nan.h.
49042         (Depends-on): Remove math.
49043
49044         * tests/test-sprintf-posix.h: Include nan.h instead of <math.h>.
49045         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
49046         * modules/sprintf-posix-tests (Files): Add tests/nan.h.
49047         (Depends-on): Remove math.
49048         * modules/vsprintf-posix-tests (Files): Add tests/nan.h.
49049         (Depends-on): Remove math.
49050
49051         * tests/test-round1.c: Include nan.h.
49052         (main): Use NaNd instead of NAN.
49053         * modules/round-tests (Files): Add tests/nan.h.
49054
49055         * tests/test-trunc1.c: Include nan.h.
49056         (main): Use NaNd instead of NAN.
49057         * modules/trunc-tests (Files): Add tests/nan.h.
49058
49059         * tests/test-roundf1.c: Include nan.h.
49060         (main): Use NaNf instead of NAN.
49061         * modules/roundf-tests (Files): Add tests/nan.h.
49062
49063         * tests/test-truncf1.c: Include nan.h.
49064         (main): Use NaNf instead of NAN.
49065         * modules/truncf-tests (Files): Add tests/nan.h.
49066
49067         * tests/test-ceilf1.c: Include nan.h.
49068         (main): Use NaNf instead of NAN.
49069         * modules/ceilf-tests (Files): Add tests/nan.h.
49070
49071         * tests/test-floorf1.c: Include nan.h.
49072         (main): Use NaNf instead of NAN.
49073         * modules/floorf-tests (Files): Add tests/nan.h.
49074
49075         * tests/test-isnanf.c: Include nan.h instead of <math.h>.
49076         (main): Use NaNf instead of NAN.
49077         * modules/isnanf-nolibm-tests (Files): Add tests/nan.h.
49078
49079         * tests/test-isnand.c: Include nan.h instead of <math.h>.
49080         (main): Use NaNd instead of NAN.
49081         * modules/isnand-nolibm-tests (Files): Add tests/nan.h.
49082
49083         * tests/test-frexp.c: Include nan.h.
49084         (main): Use NaNd instead of NAN.
49085         * modules/frexp-tests (Files): Add tests/nan.h.
49086
49087         * lib/isnan.c: Don't include <math.h>.
49088         (FUNC): Don't use NAN macro.
49089         * modules/isnand-nolibm (Depends-on): Remove math.
49090         * modules/isnanf-nolibm (Depends-on): Remove math.
49091         * modules/isnanl (Depends-on): Remove math.
49092         * modules/isnanl-nolibm (Depends-on): Remove math.
49093
49094         * tests/nan.h: New file.
49095
49096 2008-04-01  Eric Blake  <ebb9@byu.net>
49097
49098         Fix typos.
49099         * tests/test-strtod.c (main): s/FLT_/DBL_/ for minimum and epsilon
49100         values to be the right type.
49101
49102         For now, cater to gnulib strtod inaccuracies.
49103         * tests/test-strtod.c (main): Allow 1-ulp error on expected
49104         fractional results.  While not as nice from a QoI perspective, it
49105         is a quicker patch than correctly implementing decimal to binary
49106         rounding.
49107
49108 2008-03-31  Eric Blake  <ebb9@byu.net>
49109
49110         Guarantee a definition of NAN.
49111         * lib/math.in.h (NAN): Define if missing.
49112         * tests/test-math.c (main): Test it.
49113         * doc/posix-headers/math.texi (math.h): Document this.
49114         * lib/isnan.c (rpl_isnand): Use it.
49115         * tests/test-ceilf1.c (NaN): Delete, and use NAN instead.
49116         * tests/test-floorf1.c (NaN): Likewise.
49117         * tests/test-frexp.c (NaN): Likewise.
49118         * tests/test-isnand.c (NaN): Likewise.
49119         * tests/test-isnanf.c (NaN): Likewise.
49120         * tests/test-round1.c (NaN): Likewise.
49121         * tests/test-roundf1.c (NaN): Likewise.
49122         * tests/test-snprintf-posix.h (NaN): Likewise.
49123         * tests/test-sprintf-posix.h (NaN): Likewise.
49124         * tests/test-trunc1.c (NaN): Likewise.
49125         * tests/test-truncf1.c (NaN): Likewise.
49126         * tests/test-vasnprintf-posix.c (NaN): Likewise.
49127         * tests/test-vasprintf-posix.c (NaN): Likewise.
49128         * modules/isnand-nolibm (Depends-on): Add math.
49129         * modules/isnanf-nolibm (Depends-on): Likewise.
49130         * modules/isnanl (Depends-on): Likewise.
49131         * modules/isnanl-nolibm (Depends-on): Likewise.
49132         * modules/snprintf-posix-tests (Depends-on): Likewise.
49133         * modules/sprintf-posix-tests (Depends-on): Likewise.
49134         * modules/vsnprintf-posix-tests (Depends-on): Likewise.
49135         * modules/vsprintf-posix-tests (Depends-on): Likewise.
49136         * modules/vasnprintf-posix-tests (Depends-on): Likewise.
49137         * modules/vasprintf-posix-tests (Depends-on): Likewise.
49138
49139 2008-03-31  Bruno Haible  <bruno@clisp.org>
49140
49141         * tests/test-strtod.c (main): Update results for OSF/1 platforms.
49142         * doc/posix-functions/strtod.texi: Likewise.
49143
49144 2008-03-31  Bruno Haible  <bruno@clisp.org>
49145
49146         * tests/test-strtod.c (main): Don't use C99 syntax.
49147
49148 2008-03-31  Bruno Haible  <bruno@clisp.org>
49149
49150         * tests/test-strtod.c (main): Don't test NAN macro. Needed for Solaris.
49151         Reported by Eric Blake.
49152
49153 2008-03-31  Jim Meyering  <meyering@redhat.com>
49154
49155         Don't compare actual signbit return values.
49156         * tests/test-strtod.c (main): Rather, compare only their
49157         zero/non-zero nature.
49158
49159 2008-03-31  Eric Blake  <ebb9@byu.net>
49160
49161         More strtod documentation.
49162         * doc/posix-functions/strtod.texi (strtod): Interpret more test
49163         failures as distinct bugs.
49164
49165 2008-03-30  Paul Eggert  <eggert@cs.ucla.edu>
49166
49167         * lib/wchar.in.h [defined __need_mbstate_t]: Just include <wchar.h>.
49168         Problem reported by Erik Benada in
49169         <http://lists.gnu.org/archive/html/bug-gnulib/2008-03/msg00249.html>.
49170
49171 2008-03-30  Bruno Haible  <bruno@clisp.org>
49172
49173         * tests/test-strtod.c: Add comments about which assertion fails on which
49174         platform.
49175         * doc/posix-functions/strtod.texi: Add info about many more platforms.
49176
49177 2008-03-30  Eric Blake  <ebb9@byu.net>
49178
49179         Test signbit behavior on zeros.
49180         * tests/test-signbit.c (test_signbitf): Add tests for zero.
49181         (test_signbitd, test_signbitl): Likewise.
49182
49183         More strtod touchups.
49184         * tests/test-strtod.c (main): Ignore tests for signbit on NaN, and
49185         sign of negative underflow, for now.  Use .5, not .1.
49186         * doc/posix-functions/strtod.texi (strtod): Mention these
49187         limitations.
49188         Reported by Jim Meyering.
49189
49190 2008-03-30  Bruno Haible  <bruno@clisp.org>
49191
49192         * lib/striconveh.h (mem_iconveh, str_iconveh): Optimize the conversion
49193         from UTF-8 to UTF-8//TRANSLIT in the same way as from UTF-8 to UTF-8.
49194
49195 2008-03-30  Bruno Haible  <bruno@clisp.org>
49196
49197         Avoid failure when attempting to return empty iconv results on some
49198         platforms.
49199         * lib/striconveh.c (mem_cd_iconveh_internal): In the final memory
49200         allocation, don't report ENOMEM when the resulting string is empty.
49201
49202 2008-03-30  Bruno Haible  <bruno@clisp.org>
49203
49204         Fix buffer overrun.
49205         * lib/vasnprintf.c (VASNPRINTF): If !USE_SNPRINTF && pad_ourselves:
49206         Don't consider the width for tmp_length. Check count against tmp_length
49207         before doing the padding. Ensure enough allocation during padding.
49208
49209 2008-03-30  Eric Blake  <ebb9@byu.net>
49210
49211         strtod touchups.
49212         * lib/strtod.c (strtod): Avoid compiler warnings.
49213         Reported by Jim Meyering.
49214
49215 2008-03-30  Bruno Haible  <bruno@clisp.org>
49216
49217         * lib/unistdio/u-vsprintf.h (EOVERFLOW): Remove fallback.
49218         * modules/unistdio/ulc-vsprintf (Depends-on): Add EOVERFLOW.
49219         * modules/unistdio/u8-vsprintf (Depends-on): Add EOVERFLOW.
49220         * modules/unistdio/u8-u8-vsprintf (Depends-on): Add EOVERFLOW.
49221         * modules/unistdio/u16-vsprintf (Depends-on): Add EOVERFLOW.
49222         * modules/unistdio/u16-u16-vsprintf (Depends-on): Add EOVERFLOW.
49223         * modules/unistdio/u32-vsprintf (Depends-on): Add EOVERFLOW.
49224         * modules/unistdio/u32-u32-vsprintf (Depends-on): Add EOVERFLOW.
49225
49226         * lib/unistdio/u-vsnprintf.h (EOVERFLOW): Remove fallback.
49227         * modules/unistdio/ulc-vsnprintf (Depends-on): Add EOVERFLOW.
49228         * modules/unistdio/u8-vsnprintf (Depends-on): Add EOVERFLOW.
49229         * modules/unistdio/u8-u8-vsnprintf (Depends-on): Add EOVERFLOW.
49230         * modules/unistdio/u16-vsnprintf (Depends-on): Add EOVERFLOW.
49231         * modules/unistdio/u16-u16-vsnprintf (Depends-on): Add EOVERFLOW.
49232         * modules/unistdio/u32-vsnprintf (Depends-on): Add EOVERFLOW.
49233         * modules/unistdio/u32-u32-vsnprintf (Depends-on): Add EOVERFLOW.
49234
49235         * lib/unistdio/u-vasprintf.h (EOVERFLOW): Remove fallback.
49236         * modules/unistdio/ulc-vasprintf (Depends-on): Add EOVERFLOW.
49237         * modules/unistdio/u8-vasprintf (Depends-on): Add EOVERFLOW.
49238         * modules/unistdio/u8-u8-vasprintf (Depends-on): Add EOVERFLOW.
49239         * modules/unistdio/u16-vasprintf (Depends-on): Add EOVERFLOW.
49240         * modules/unistdio/u16-u16-vasprintf (Depends-on): Add EOVERFLOW.
49241         * modules/unistdio/u32-vasprintf (Depends-on): Add EOVERFLOW.
49242         * modules/unistdio/u32-u32-vasprintf (Depends-on): Add EOVERFLOW.
49243
49244         * lib/unistdio/ulc-vfprintf.c (EOVERFLOW): Remove fallback.
49245         * modules/unistdio/ulc-vfprintf (Depends-on): Add EOVERFLOW.
49246
49247         * lib/unistdio/ulc-fprintf.c (EOVERFLOW): Remove fallback.
49248         * modules/unistdio/ulc-fprintf (Depends-on): Add EOVERFLOW.
49249
49250         * lib/xvasprintf.c (EOVERFLOW): Remove fallback.
49251         * modules/xvasprintf (Depends-on): Add EOVERFLOW.
49252
49253         * lib/vsprintf.c (EOVERFLOW): Remove fallback.
49254         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Drop gl_EOVERFLOW.
49255         * modules/vsprintf-posix (Depends-on): Add EOVERFLOW.
49256
49257         * lib/vsnprintf.c (EOVERFLOW): Remove fallback.
49258         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Drop gl_EOVERFLOW.
49259         * modules/vsnprintf (Depends-on): Add EOVERFLOW.
49260
49261         * lib/vfprintf.c (EOVERFLOW): Remove fallback.
49262         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Drop gl_EOVERFLOW.
49263         * modules/vfprintf-posix (Depends-on): Add EOVERFLOW.
49264
49265         * lib/vasprintf.c (EOVERFLOW): Remove fallback.
49266         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Drop gl_EOVERFLOW.
49267         * modules/vasprintf (Depends-on): Add EOVERFLOW.
49268
49269         * lib/vasnprintf.c (EOVERFLOW): Remove fallback.
49270         * m4/vasnprintf.m4 (gl_FUNC_VASNPRINTF): Drop gl_EOVERFLOW.
49271         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Drop gl_EOVERFLOW.
49272         * modules/vasnprintf (Files): Remove m4/eoverflow.m4.
49273         (Depends-on): Add EOVERFLOW.
49274         * modules/unistdio/ulc-vasnprintf (Files): Remove m4/eoverflow.m4.
49275         (Depends-on): Add EOVERFLOW.
49276         * modules/unistdio/u8-vasnprintf (Files): Remove m4/eoverflow.m4.
49277         (Depends-on): Add EOVERFLOW.
49278         * modules/unistdio/u8-u8-vasnprintf (Files): Remove m4/eoverflow.m4.
49279         (Depends-on): Add EOVERFLOW.
49280         * modules/unistdio/u16-vasnprintf (Files): Remove m4/eoverflow.m4.
49281         (Depends-on): Add EOVERFLOW.
49282         * modules/unistdio/u16-u16-vasnprintf (Files): Remove m4/eoverflow.m4.
49283         (Depends-on): Add EOVERFLOW.
49284         * modules/unistdio/u32-vasnprintf (Files): Remove m4/eoverflow.m4.
49285         (Depends-on): Add EOVERFLOW.
49286         * modules/unistdio/u32-u32-vasnprintf (Files): Remove m4/eoverflow.m4.
49287         (Depends-on): Add EOVERFLOW.
49288
49289         * lib/sprintf.c (EOVERFLOW): Remove fallback.
49290         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Drop gl_EOVERFLOW.
49291         * modules/sprintf-posix (Depends-on): Add EOVERFLOW.
49292
49293         * lib/snprintf.c (EOVERFLOW): Remove fallback.
49294         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Drop gl_EOVERFLOW.
49295         * modules/snprintf (Depends-on): Add EOVERFLOW.
49296
49297         * lib/poll.c (EOVERFLOW): Remove fallback.
49298         * modules/poll (Depends-on): Add EOVERFLOW.
49299
49300         * lib/getugroups.c (EOVERFLOW): Remove fallback.
49301         * modules/getugroups (Depends-on): Add EOVERFLOW.
49302
49303         * lib/getdelim.c (EOVERFLOW): Remove fallback.
49304         * modules/getdelim (Depends-on): Add EOVERFLOW.
49305
49306         * lib/ftell.c (EOVERFLOW): Remove fallback.
49307         * modules/ftell (Depends-on): Add EOVERFLOW.
49308
49309         * lib/fprintf.c (EOVERFLOW): Remove fallback.
49310         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Drop gl_EOVERFLOW.
49311         * modules/fprintf-posix (Depends-on): Add EOVERFLOW.
49312
49313         * lib/c-stack.c (EOVERFLOW): Remove unused fallback.
49314
49315         * modules/EOVERFLOW-tests: New file.
49316         * tests/test-EOVERFLOW.c: New file.
49317
49318         * modules/EOVERFLOW: New file.
49319         * doc/posix-headers/errno.texi: Mention EOVERFLOW portability problem.
49320
49321 2008-03-30  Bruno Haible  <bruno@clisp.org>
49322
49323         Fix bug introduced on 2007-06-10.
49324         * lib/vasnprintf.c (VASNPRINTF): When performing zero-padding, use
49325         spaces instead of 0 digits for 's' also when ENABLE_UNISTDIO.
49326
49327 2008-03-30  Bruno Haible  <bruno@clisp.org>
49328
49329         Improve freadseek's efficiency after ungetc.
49330         * lib/freadseek.c: Include freadahead.h.
49331         (freadptrinc): New function, extracted from freadseek.
49332         (freadseek): Use it in a loop. Use freadahead to determine the number
49333         of loop iterations.
49334         * modules/freadseek (Depends-on): Add freadahead.
49335         (configure.ac): Require AC_C_INLINE.
49336
49337 2008-03-30  Bruno Haible  <bruno@clisp.org>
49338
49339         * lib/freadseek.c (freadseek): Don't ignore the return value of
49340         freadptr.
49341
49342 2008-03-29  Eric Blake  <ebb9@byu.net>
49343
49344         Add hex float support.
49345         * modules/strtod (Depends-on): Add c-ctype.
49346         (Link): Mention POW_LIB.
49347         * lib/strtod.c (strtod): Recognize hex floats.  Don't allow
49348         whitespace between 'e' and exponent.
49349         * tests/test-strtod.c (main): Enable hex float tests.
49350         * doc/posix-functions/strtod.texi (strtod): Document what gnulib
49351         now provides.
49352
49353         Document various strtod bugs, with some fixes.
49354         * doc/posix-functions/strtod.texi (strtod): Document bugs with
49355         "-0x", "inf", "nan", and hex constants.
49356         * doc/posix-functions/atof.texi (atof): Likewise.
49357         * modules/stdlib (Makefile.am): Support strtod.
49358         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Likewise.
49359         * m4/strtod.m4 (gl_FUNC_STRTOD): Fit in stdlib framework, and
49360         detect additional strtod bugs.
49361         * lib/stdlib.in.h (rpl_strtod): Add declarations.
49362         * lib/strtod.c (strtod): Return -0.0 on negative underflow.  Use
49363         bool where appropriate.  Parse 'inf' and 'nan'.
49364         * tests/test-strtod.c: New file.
49365         * modules/strtod (Depends-on): Add stdbool, stdlib.
49366         (configure.ac): Turn on module indicator.
49367         * modules/strtod-tests: New module.
49368
49369 2008-03-29  Eric Blake  <ebb9@byu.net>
49370
49371         Fix ftell on mingw.
49372         * lib/ftell.c (EOVERFLOW): Define if the system lacks it.
49373         * modules/ftell-tests (Depends-on): Add binary-io.
49374         * modules/ftello-tests (Depends-on): Likewise.
49375         * tests/test-ftell.c (main): Enhance test to cover behavior after
49376         ungetc.  Enforce binary mode.
49377         * tests/test-ftello.c (main): Likewise.
49378
49379         Pass test-freadseek on cygwin.
49380         * modules/freadseek (Depends-on): Use freadptr, not freadahead.
49381         * lib/freadseek.c (freadseek): Don't increment beyond bounds of
49382         ungetc buffer.
49383
49384         * tests/test-fflush2.c (main): Fix typo.
49385
49386 2008-03-29  Bruno Haible  <bruno@clisp.org>
49387
49388         * tests/test-fflush2.c (main): Temporarily disable the contents of
49389         this test.
49390         * m4/fflush.m4 (gl_FUNC_FFLUSH): Add a TODO.
49391         Reported by Eric Blake.
49392
49393 2008-03-28  Simon Josefsson  <simon@josefsson.org>
49394
49395         * lib/gc.h (enum Gc_hash): Add GC_SHA224.
49396         (GC_SHA224_DIGEST_SIZE): Add.
49397
49398         * lib/gc-libgcrypt.c (gc_hash_open): Handle SHA-224.
49399         (gc_hash_digest_length): Likewise.
49400         (gc_hash_buffer): Likewise.
49401
49402 2008-03-25  Bruno Haible  <bruno@clisp.org>
49403
49404         * doc/gnulib-tool.texi (gettextize and autopoint): Explain in more
49405         detail which gettext release to use.
49406         Reported by Simon Josefsson.
49407
49408 2008-03-26  Jim Meyering  <meyering@redhat.com>
49409
49410         gnumakefile: remove file from $(top_builddir), not from $(top_srcdir)
49411         * modules/gnumakefile (clean-GNUmakefile): Also, use
49412         test ... && ... || : syntax rather than if-then ... fi.
49413
49414         gnumakefile: Don't double-quote-expand $(VPATH) value.
49415         * modules/gnumakefile (clean-GNUmakefile): Use single quotes.
49416
49417 2008-03-24  Eric Blake  <ebb9@byu.net>
49418
49419         Alter GNUmakefile to install into top directory.
49420         * modules/maintainer-makefile: Split, and add dependency...
49421         * modules/gnumakefile: to this new module.
49422         * build-aux/GNUmakefile: Move...
49423         * top/GNUmakefile: ...here.
49424         * build-aux/maint.mk: Move...
49425         * top/maint.mk: ...here.
49426         * MODULES.html.sh (Support for maintaining...): Document new
49427         module.
49428
49429 2008-03-23  Bruno Haible  <bruno@clisp.org>
49430
49431         * gnulib-tool: New options --vc-files, --no-vc-files.
49432         (func_usage): Document them.
49433         (vc_files): New variable.
49434         (func_import): Consider vc_files.
49435         (func_create_testdir): Set vc_files to empty.
49436         Suggested by Jim Meyering and Karl Berry.
49437
49438 2008-03-23  Bruno Haible  <bruno@clisp.org>
49439
49440         Fix regex compilation error on HP-UX 11.
49441         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_TYPE_MBSTATE_T.
49442         * modules/regex (Files): Add m4/mbstate_t.m4.
49443         Reported by Ton Voon <ton.voon@altinity.com>.
49444
49445 2008-03-23  Bruno Haible  <bruno@clisp.org>
49446
49447         * doc/gnulib-tool.texi (gettextize and autopoint): New section.
49448
49449 2008-03-23  Eric Blake  <ebb9@byu.net>
49450             Bruno Haible  <bruno@clisp.org>
49451
49452         Install files from top/ in the destination directory.
49453         * gnulib-tool (func_get_automake_snippet): Synthesize an EXTRA_DIST
49454         augmentation also for the files from top/.
49455         (func_import, func_create_testdir): Rewrite file names:
49456         top/filename -> filename.
49457
49458 2008-03-23  Bruno Haible  <bruno@clisp.org>
49459
49460         Tweak "gnulib --version" output.
49461         * gnulib-tool (func_version): Replace "-dirty" suffix with "-modified".
49462
49463 2008-03-23  Bruno Haible  <bruno@clisp.org>
49464
49465         Tweak "gnulib --version" output.
49466         * gnulib-tool (func_version): Use date of last commit to ChangeLog,
49467         rather than contents of ChangeLog, when possible.
49468
49469 2008-03-21  Eric Blake  <ebb9@byu.net>
49470
49471         More --version tweaks.
49472         * gnulib-tool (func_version): Obey GNU Coding Standards.  Output
49473         date of last ChangeLog entry.
49474
49475 2008-03-21  Jim Meyering  <meyering@redhat.com>
49476
49477         * build-aux/GNUmakefile (_have-git-version-gen): Split long line.
49478
49479 2008-03-20  Eric Blake  <ebb9@byu.net>
49480
49481         VPATH fix.
49482         * build-aux/GNUmakefile (_have_git-version-gen): Look in correct dir.
49483
49484 2008-03-20  Simon Josefsson  <simon@josefsson.org>
49485
49486         * build-aux/GNUmakefile: Make git-version-gen optional.  Add
49487         _build-aux variable.  Suggested by Eric Blake <ebb9@byu.net>.
49488
49489 2008-03-20  Eric Blake  <ebb9@byu.net>
49490
49491         Sync GNUmakefile with coreutils.
49492         * build-aux/GNUmakefile (have-Makefile): Rename...
49493         (_have-Makefile): ...to this, for namespace consideration.
49494         (GNUmakefile.cfg): Include, if present.
49495         (_autoreconf): Define a default.
49496         (_is-dist-target): New rule for rebuilds to pick up intra-release
49497         version.
49498         (maint-cfg.mk): Rename...
49499         (cfg.mk): ...to this.
49500
49501 2008-03-18  Jim Meyering  <meyering@redhat.com>
49502
49503         New script and module: mktempd
49504         * MODULES.html.sh (maint+release support): Add mktempd.
49505         * build-aux/mktempd: New file.
49506         * modules/mktempd: New file.
49507
49508 2008-03-15  Jim Meyering  <meyering@redhat.com>
49509
49510         Undo last change.
49511         * lib/sha1.c, lib/md5.c: 63 != ~63.
49512         Reported by Andreas Schwab.
49513
49514         sha1.c, md5.c: Hoist a redundant expression.
49515         * lib/sha1.c (sha1_process_bytes): AND-off the low bits in
49516         "ctx->buflen" only once, before calling *_process_block.
49517         * lib/md5.c (md5_process_bytes): Likewise.
49518
49519 2008-03-14  Eric Blake  <ebb9@byu.net>
49520
49521         Bump copyright year in files generated by gnulib-tool.
49522         * gnulib-tool (func_emit_copyright_notice): Extract copyright from
49523         gnulib-tool, rather than hard-coding it.
49524
49525         Fix 'gnulib-tool --version' output to work with git.
49526         * gnulib-tool (func_gnulib_dir): New function, extracted from...
49527         (startup): ...here.
49528         (func_version): Use it to invoke git-version-gen, rather than
49529         relying on CVS keyword expansion.  Modernize wording.
49530         (cvsdatestamp, last_checkin_date, version): Kill unused
49531         variables.
49532
49533 2008-03-12  Jim Meyering  <meyering@redhat.com>
49534
49535         Recognize optional cast of the argument to free.
49536         * build-aux/useless-if-before-free: Update regexps.
49537
49538         * build-aux/bootstrap (gnulib_tool): Remove trailing blanks.
49539
49540 2008-03-11  Bruno Haible  <bruno@clisp.org>
49541
49542         Extend AC_LIB_LINKFLAGS to the situation of several libraries provided
49543         by a single package.
49544         * m4/lib-link.m4 (AC_LIB_FROMPACKAGE): New macro.
49545         (AC_LIB_LINKFLAGS_BODY): Use the information stored by
49546         AC_LIB_FROMPACKAGE. Use AC_ARG_WITH instead of AC_LIB_ARG_WITH.
49547         Reported by Sam Steingold <sds@gnu.org>.
49548
49549 2008-03-12  Sergey Poznyakoff  <gray@gnu.org.ua>
49550
49551         * build-aux/bootstrap (version_controlled_file): Adapt for SVN
49552         repositories.
49553
49554 2008-03-11  Bruno Haible  <bruno@clisp.org>
49555
49556         Avoid conflicts between local macro definitions.
49557         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
49558         AC_LIB_LINKFLAGS_BODY): Use pushdef/popdef instead of define/undefine.
49559
49560 2008-03-10  Peter O'Gorman  <bug-gnulib@mlists.thewrittenword.com>
49561             Bruno Haible  <bruno@clisp.org>
49562
49563         Make va_copy work with some version of xlc on AIX 5.1.
49564         * lib/stdarg.in.h: New file.
49565         * m4/stdarg.m4 (gl_STDARG_H): Initialize STDARG_H and NEXT_STDARG_H.
49566         On AIX, use a <stdarg.h> file substitute.
49567         * modules/stdarg (Files): Add lib/stdarg.in.h.
49568         (Depends-on): Add include_next.
49569         (Makefile.am): Build a stdarg.h substitute if requested.
49570         * doc/posix-functions/va_copy.texi: Document the platforms lacking it.
49571
49572 2008-03-10  Bruno Haible  <bruno@clisp.org>
49573
49574         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Document a restriction.
49575         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
49576         Reported by Peter O'Gorman <bug-gnulib@mlists.thewrittenword.com>.
49577
49578 2008-03-10  Bruno Haible  <bruno@clisp.org>
49579
49580         * modules/stdlib (Depends-on): Add include_next, remove
49581         absolute-header.
49582
49583 2008-03-09  Bruno Haible  <bruno@clisp.org>
49584
49585         * lib/freadahead.h (freadahead): Document more precisely.
49586         * lib/freadahead.c (freadahead): When an ungetc is in effect, return
49587         the sum of both buffer sizes.
49588         * tests/test-freadahead.c (main): Also test behaviour after ungetc.
49589         * NEWS: Document the change.
49590
49591 2008-03-09  Bruno Haible  <bruno@clisp.org>
49592
49593         Extend freadptr to return also the buffer size.
49594         * lib/freadptr.h (freadptr): Add sizep argument.
49595         * lib/freadptr.c: Include freadptr.h, not freadahead.h.
49596         (freadptr): Add sizep argument. Determine buffer size like freadahead
49597         does.
49598         * tests/test-freadptr.c: Don't include freadahead.h.
49599         (main): Adapt for new calling convention of freadptr.
49600         * tests/test-freadptr2.c: New file, based on tests/test-freadahead.c.
49601         * tests/test-freadptr2.sh: New file, based on tests/test-freadahead.sh.
49602         * modules/freadptr-tests (Files): Add tests/test-freadptr2.c,
49603         tests/test-freadptr2.sh.
49604         (Depends): Remove freadahead.
49605         (TESTS): Add test-freadptr2.sh.
49606         (check_PROGRAMS): Add test-freadptr2.
49607
49608 2008-03-09  Bruno Haible  <bruno@clisp.org>
49609
49610         * doc/Makefile (%.pdf): Explain how to remedy the save_size error.
49611         Report and solution by Simon Josefsson.
49612
49613 2008-03-06  Bruno Haible  <bruno@clisp.org>
49614
49615         Make fflush after ungetc work on BSD platforms.
49616         * lib/fflush.c (rpl_fflush): Discard ungetc buffer if possible.
49617         * tests/test-fflush2.c: New file.
49618         * tests/test-fflush2.sh: New file.
49619         * modules/fflush-tests (Files): Add tests/test-fflush2.sh,
49620         tests/test-fflush2.c.
49621         (Makefile.am): Build test-fflush2 and run test-fflush2.sh.
49622         * doc/posix-functions/fflush.texi: Document fflush after ungetc bug.
49623
49624 2008-03-06  Eric Blake  <ebb9@byu.net>
49625
49626         Likewise for ftello.
49627         * modules/ftello (Dependencies): Add extensions.
49628         * m4/ftello.m4 (gl_FUNC_FTELLO): Require AC_USE_SYSTEM_EXTENSIONS.
49629
49630 2008-03-06  Bruno Haible  <bruno@clisp.org>
49631
49632         * modules/fseeko (Dependencies): Add extensions.
49633         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Require AC_USE_SYSTEM_EXTENSIONS.
49634         Needed on glibc systems.
49635
49636 2008-03-06  Bruno Haible  <bruno@clisp.org>
49637
49638         * doc/gnulib-tool.texi (@nosuchmodulenote): Avoid line break inside
49639         email address.
49640         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
49641
49642 2008-03-06  Bruno Haible  <bruno@clisp.org>
49643
49644         * users.txt: Add libgnupdf.
49645
49646 2008-03-06  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
49647
49648         * doc/gnulib-tool.texi (@nosuchmodulenote): New macro.
49649         (Header File Substitutes, Function Substitutes,
49650         Glibc Header File Substitutes, Glibc Function Substitutes): Use it.
49651         (Build robot for gnulib): Fix typo.
49652
49653 2008-03-06  Bruno Haible  <bruno@clisp.org>
49654
49655         * doc/gnulib-tool.texi (VCS Issues): Small updates.
49656         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
49657
49658 2008-03-06  Bruno Haible  <bruno@clisp.org>
49659
49660         * doc/func.texi: New file, extracted from doc/gnulib.texi.
49661         * doc/gnulib.texi: Include it.
49662
49663 2008-03-06  Simon Josefsson  <simon@josefsson.org>
49664
49665         * modules/func (License): Change license to unlimited; there was
49666         no LGPL parts in the module anyway.
49667
49668 2008-03-06  Simon Josefsson  <simon@josefsson.org>
49669
49670         * modules/__func__: Renamed to modules/func.
49671         * modules/__func__-tests: Renamed to modules/func-tests.
49672         * tests/test-__func__.c: Renamed to tests/test-func.c.
49673         * m4/__func__.m4: Renamed to m4/func.m4.
49674         * doc/gnulib.texi (__func__): Section renamed to func.
49675         Suggested by Eric Blake <ebb9@byu.net>.
49676
49677 2008-03-06  Simon Josefsson  <simon@josefsson.org>
49678
49679         * doc/gnulib.texi (__func__): Use C99 terminology when talking
49680         about __func__.  Make example self-contained.  Suggested by Eric
49681         Blake <ebb9@byu.net>.
49682
49683         * tests/test-__func__.c (main): Avoid extraneous () around __func.
49684         Suggested by Eric Blake <ebb9@byu.net>.
49685
49686 2008-03-06  Simon Josefsson  <simon@josefsson.org>
49687
49688         * modules/__func__: New file.
49689         * modules/__func__-tests: New file.
49690         * tests/test-__func__.c: New file.
49691         * m4/__func__.m4: New file.
49692         * doc/gnulib.texi (__func__): Document __func__ module.
49693
49694 2008-03-05  Simon Josefsson  <simon@josefsson.org>
49695
49696         * modules/byteswap (License): Re-license as LGPLv2+.
49697
49698 2008-03-05  Simon Josefsson  <simon@josefsson.org>
49699
49700         * doc/Makefile: Add pdf target.
49701
49702 2008-03-05  Simon Josefsson  <simon@josefsson.org>
49703
49704         * modules/inline (License): Use 'unlimited', since there are only
49705         *.m4 files in this module.
49706
49707 2008-03-03  John E. Malmberg  <wb8tyw@qsl.net>  (tiny change)
49708             Bruno Haible  <bruno@clisp.org>
49709
49710         Add support for HP C 7.1 on OpenVMS 8.3.
49711         * lib/alloca.in.h (alloca): Define as alias for DEC C on VMS.
49712
49713 2008-03-03  John E. Malmberg  <wb8tyw@qsl.net>  (tiny change)
49714
49715         Update VMS specifics.
49716         * lib/getopt.c [VMS]: Remove include of unixlib.h.
49717
49718 2008-03-02  Jim Meyering  <meyering@redhat.com>
49719
49720         Remove the last dependency on the "free" module.
49721         * m4/readutmp.m4 (gl_READUTMP): Don't require gl_FUNC_FREE.
49722         Reported by Bob Proulx.
49723
49724         * lib/getdelim.c (getdelim): Don't leak memory upon failed realloc.
49725
49726         Remove useless "if" tests before free.  Deprecate "free" module.
49727         * doc/posix-functions/free.texi: Mention that this
49728         module is no longer useful.
49729         * modules/free (Notice): Say this module is obsolete.
49730         * modules/readutmp (Depends-on): Remove free.
49731         * lib/save-cwd.c (free_cwd): Remove useless "if" before free.
49732         * lib/putenv.c (putenv): Likewise.
49733         * lib/gc-gnulib.c (gc_cipher_close): Likewise.
49734         * lib/getaddrinfo.c (freeaddrinfo): Likewise.
49735         * tests/test-c-strcasestr.c (main): Likewise.
49736         * tests/test-c-strstr.c (main): Likewise.
49737         * tests/test-mbscasestr1.c (main): Likewise.
49738         * tests/test-mbscasestr2.c (main): Likewise.
49739         * tests/test-mbsstr1.c (main): Likewise.
49740         * tests/test-mbsstr2.c (main): Likewise.
49741         * tests/test-memmem.c (main): Likewise.
49742         * tests/test-strcasestr.c (main): Likewise.
49743         * tests/test-striconv.c (main): Likewise.
49744         * tests/test-striconveh.c (main): Likewise.
49745         * tests/test-striconveha.c (main): Likewise.
49746         * tests/test-strstr.c (main): Likewise.
49747
49748         * build-aux/git-version-gen: Adjust a comment and the Usage string.
49749
49750         bootstrap: sync from coreutils again
49751         * build-aux/bootstrap: Remove dangling m4/*.m4 symlinks.
49752
49753 2008-03-01  Jim Meyering  <meyering@redhat.com>
49754
49755         bootstrap: sync from coreutils
49756         * build-aux/bootstrap (update_po_files): Copy a .po file into place
49757         also when the target doesn't exist.
49758
49759 2008-03-01  Eric Blake  <ebb9@byu.net>
49760
49761         Fix bugs in last patch.
49762         * lib/memchr2.c (memchr2): Fix typo.
49763         * tests/test-memchr2.c: Test previous bug, and don't use GNU
49764         extension.
49765         Reported by Bruce Korb.
49766
49767         New module 'memchr2'.
49768         * modules/memchr2: New file.
49769         * modules/memchr2-tests: Likewise.
49770         * lib/memchr2.h: Likewise.
49771         * lib/memchr2.c: Likewise, based on memchr.c.
49772         * tests/test-memchr2.c: New test.
49773         * MODULES.html.sh (String handling): Add memchr2.
49774
49775 2008-02-29  Bruno Haible  <bruno@clisp.org>
49776
49777         * modules/freadseek-tests: New file.
49778         * tests/test-freadseek.sh: New file.
49779         * tests/test-freadseek.c: New file.
49780
49781         New module 'freadseek'.
49782         * modules/freadseek: New file.
49783         * lib/freadseek.h: New file.
49784         * lib/freadseek.c: New file.
49785         * MODULES.html.sh (File stream based Input/Output): Add freadseek.
49786
49787 2008-02-29  Sergey Poznyakoff  <gray@gnu.org.ua>
49788
49789         * users.txt: Add anubis, cpio, mailfromd, mailutils, radius,
49790         wydawca.
49791
49792         * m4/argp.m4 (gl_ARGP): Use AC_TRY_LINK to test if
49793         program_invocation_name and program_invocation_short_name are
49794         present.
49795
49796 2008-02-28  Bruno Haible  <bruno@clisp.org>
49797
49798         * tests/test-freadptr.c: Add a test for behaviour after ungetc.
49799         * tests/test-freadptr.sh: Also test non-seekable stdin.
49800
49801 2008-02-28  Sergey Poznyakoff  <gray@gnu.org.ua>
49802
49803         * build-aux/bootstrap (source_base, m4_base)
49804         (doc_base, tests_base): New variables.
49805         (gnulib_tool_options): Do not hardcode base directories, use
49806         the above variables instead.
49807
49808 2008-02-28  Atsushi SAKAI  <sakaia@jp.fujitsu.com>
49809
49810         * lib/xsize.h: Fix typo in comment: s/tupe/type/.
49811
49812 2008-02-28  Bruno Haible  <bruno@clisp.org>
49813
49814         * modules/freadptr-tests: New file.
49815         * tests/test-freadptr.sh: New file.
49816         * tests/test-freadptr.c: New file.
49817
49818         New module 'freadptr'.
49819         * modules/freadptr: New file.
49820         * lib/freadptr.h: New file.
49821         * lib/freadptr.c: New file.
49822         * MODULES.html.sh (File stream based Input/Output): Add freadptr.
49823
49824 2008-02-26  Karl Berry  <karl@freefriends.org>
49825
49826         Sync from Libtool:
49827         * libltdl/argz.c (argz_add, argz_count): New functions.
49828         * libltdl/argz.in.h: Declare them.
49829         Report by Juan Manuel Guerrero <juan.guerrero@gmx.de>.
49830
49831 2008-02-22  Bruno Haible  <bruno@clisp.org>
49832
49833         * m4/time_r.m4 (gl_TIME_R): Also check that localtime_r's return type
49834         is a pointer type.  Needed for HP-UX 10.
49835         * doc/posix-functions/localtime_r.texi: Mention HP-UX 10.
49836         * doc/posix-functions/gmtime_r.texi: Likewise.
49837         Reported by Peter O'Gorman <bug-gnulib@mlists.thewrittenword.com>.
49838
49839 2008-02-24  Bruno Haible  <bruno@clisp.org>
49840
49841         * modules/environ-tests: New file.
49842         * tests/test-environ.c: New file.
49843
49844         New module 'environ'.
49845         * modules/environ: New file.
49846         * lib/unistd.in.h (environ): New declaration.
49847         * m4/environ.m4: New file.
49848         (gt_CHECK_VAR_DECL): Moved here from m4/setenv.m4. Undefine gt_cv_var
49849         after use.
49850         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_ENVIRON and
49851         HAVE_DECL_ENVIRON.
49852         * modules/unistd (Makefile.am): Substitute also GNULIB_ENVIRON and
49853         HAVE_DECL_ENVIRON.
49854         * doc/posix-functions/environ.texi: Mention module 'environ'. Remove
49855         wrong claim that 'environ' is missing on some systems.
49856         * modules/execute (Depends-on): Add environ.
49857         * lib/execute.c (environ): Remove fallback declaration.
49858         * modules/pipe (Depends-on): Add environ.
49859         * lib/pipe.c (environ): Remove fallback declaration.
49860         * modules/setenv (Depends-on): Add environ.
49861         * lib/setenv.c (environ): Remove fallback declaration.
49862         * modules/unsetenv (Depends-on): Add environ.
49863         * lib/unsetenv.c (environ): Remove fallback declaration.
49864         * m4/setenv.m4 (gt_CHECK_VAR_DECL): Remove macro. Moved to
49865         m4/environ.m4.
49866         (gl_PREREQ_SETENV): Require gl_ENVIRON instead of testing for environ.
49867         (gl_PREREQ_UNSETENV): Likewise.
49868
49869 2008-02-24  Bruno Haible  <bruno@clisp.org>
49870
49871         * doc/posix-functions/environ.texi: Document the MacOS X problem.
49872
49873 2008-02-20  Bob Proulx  <bob@proulx.com>
49874
49875         Enable use of older two part flavor 'git describe'.
49876         * build-aux/git-version-gen: If using the older two part flavor of
49877         git version then recreate the third part now present in the
49878         newer three part flavor of git describe.
49879
49880 2008-02-20  Martin Buchholz  <martin@xemacs.org>  (tiny change)
49881
49882         * lib/fts.c (fts_build): Typo correction to comment.
49883
49884 2008-02-17  Bruno Haible  <bruno@clisp.org>
49885
49886         * lib/git-merge-changelog.c (main) [split_merged_entry]: Avoid
49887         generating no-op conflicts.
49888
49889 2008-02-17  Bruno Haible  <bruno@clisp.org>
49890
49891         Speed up by 10%.
49892         * lib/git-merge-changelog.c (main): Use the iterator to iterate through
49893         result_entries, rather than an index-based loop.
49894
49895 2008-02-17  Bruno Haible  <bruno@clisp.org>
49896
49897         Speed up by 25%.
49898         * lib/git-merge-changelog.c (struct entry): New fields 'hashcode',
49899         'hashcode_cached'.
49900         (entry_create): New function.
49901         (entry_hashcode): Use the cached hashcode if possible.
49902         (read_changelog_file, try_split_merged_entry): Use entry_create.
49903
49904 2008-02-17  Bruno Haible  <bruno@clisp.org>
49905
49906         Speed up from O(n^2) to O(n) for long ChangeLog files.
49907         * lib/git-merge-changelog.c: Include gl_rbtreehash_list.h.
49908         (read_changelog_file): Change implementation of entries_reversed list
49909         to rbtreehash.
49910         * modules/git-merge-changelog (Depends-on): Add rbtreehash-list.
49911
49912 2008-02-17  Bruno Haible  <bruno@clisp.org>
49913
49914         New option --split-merged-entry.
49915         * lib/git-merge-changelog.c (FSTRCMP_STRICTER_THRESHOLD): New macro.
49916         (find_paragraph_end, try_split_merged_entry): New functions.
49917         (long_options): Add option --split-merged-entry.
49918         (usage): Document option --split-merged-entry.
49919         (main): Implement option --split-merged-entry.
49920         Reported by Eric Blake.
49921
49922 2008-02-17  Bruno Haible  <bruno@clisp.org>
49923
49924         * lib/git-merge-changelog.c: Include c-strstr.h.
49925         (main): Support the "git pull --rebase" situation.
49926         * modules/git-merge-changelog (Depends-on): Add c-strstr.
49927         Reported by Eric Blake.
49928
49929 2008-02-16  Eric Blake  <ebb9@byu.net>
49930
49931         Avoid doubling \ in common case of "c-maybe" quoting style.
49932         * lib/quotearg.c (quotearg_buffer_restyled): Don't escape \ when
49933         eliding outer quotes.
49934         * lib/quotearg.h: Document this.
49935         * tests/test-quotearg.c (result_strings, inputs, results_g)
49936         (flag_results, locale_results): Test it by adding a new string to
49937         each test group.
49938         (compare_strings): Test new string.
49939
49940 2008-02-13  Eric Blake  <ebb9@byu.net>
49941
49942         Avoid trigraph quoting in default output.
49943         * lib/quotearg.h (enum quoting_flags): Add QA_SPLIT_TRIGRAPHS.
49944         * lib/quotearg.c (quotearg_buffer_restyled): Don't quote trigraphs
49945         unless explicitly requested.
49946         * tests/test-quotearg.c (flag_results, main): Add additional tests.
49947
49948 2008-02-13  Lasse Collin  <lasse.collin@tukaani.org>
49949
49950         Don't rely on signed integer overflowing to negative value.
49951         * lib/getugroups.c (getugroups): Include <limits.h>.
49952         Instead, compare against INT_MAX, and increment only if the test passes.
49953
49954 2008-02-13  Jim Meyering  <meyering@redhat.com>
49955         and Eric Blake  <ebb9@byu.net>
49956
49957         Avoid shadowing warning and compile errors on Linux.
49958         * tests/test-quotearg.c [ENABLE_NLS]: Disable <libintl.h>
49959         forwarding macros on Linux.
49960         (dcgettext): Define a stub, for Linux.
49961         (results_g, main): Avoid warnings.
49962
49963 2008-02-12  Eric Blake  <ebb9@byu.net>
49964
49965         Silence warning in last patch.
49966         * lib/quotearg.c (quotearg_buffer_restyled): Add missing const.
49967
49968         Quotearg part 4: add tests, fix c-maybe colon quoting.
49969         * lib/quotearg.h: Improve documentation.
49970         * lib/quotearg.c (quotearg_buffer_restyled): Don't add extra
49971         escapes when adding outer quotes.  When quoting trigraphs, use
49972         valid C notation.  When quoting NUL, omit extra characters if next
49973         character is not digit.  Alter prototype.
49974         (quotearg_buffer, quotearg_alloc_mem, quotearg_n_options): Adjust
49975         callers.
49976         * modules/quotearg-tests: New module.
49977         * tests/test-quotearg.c: New test.
49978
49979 2008-02-07  Eric Blake  <ebb9@byu.net>
49980
49981         Quotearg part 3: add flag to control outer quote elision.
49982         * lib/quotearg.h (c_maybe_quoting_style): New style.
49983         (enum quoting_flags): Better documentation of flags.
49984         * lib/quotearg.c (quoting_style_args, quoting_style_vals): Add
49985         c-maybe style.
49986         (quotearg_buffer_restyled): Handle new flag to elide outer
49987         quotes.
49988
49989         Quotearg part 2: add flag that can control NUL elision.
49990         * lib/quotearg.h (set_quoting_flags): New prototype.
49991         * lib/quotearg.c (struct quoting_options): Add flag field.
49992         (set_quoting_flags): New function.
49993         (quotearg_buffer_restyled): Add flags parameter.
49994         (quotearg_alloc_mem): Set the flag if length cannot be returned.
49995         (quotearg_n_options): Set the flag, since length cannot be
49996         returned.
49997         (quoting_options_from_style): Default flags correctly.
49998
49999         Quotearg part 1: more wrappers, restore quotearg_char state.
50000         * lib/quotearg.h (quotearg_alloc_mem, quotearg_n_mem)
50001         (quotearg_mem, quotearg_style_mem, quotearg_char_mem)
50002         (quotearg_colon_mem): New wrappers.
50003         * lib/quotearg.c (quotearg_alloc, quotearg_char): Rewrite...
50004         (quotearg_alloc_mem, quotearg_char_mem): ...in terms of these new
50005         functions.
50006         (quotearg_n_mem, quotearg_mem, quotearg_style_mem)
50007         (quotearg_colon_mem): New functions.
50008
50009 2008-02-11  Bruno Haible  <bruno@clisp.org>
50010
50011         * modules/git-merge-changelog (Makefile.am): Don't use -L and -l for a
50012         library in the current directory: it does not work with parallel make.
50013         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
50014
50015 2008-02-11  Bruno Haible  <bruno@clisp.org>
50016
50017         * .gitattributes: New file.
50018
50019 2008-02-11  Jim Meyering  <meyering@redhat.com>
50020
50021         useless-if-before-free: Fix reversed exit values.
50022         * build-aux/useless-if-before-free: Use correct values
50023         for EXIT_MATCH and EXIT_NO_MATCH.
50024
50025         * build-aux/useless-if-before-free: Close stdout carefully.
50026
50027 2008-02-10  Bruno Haible  <bruno@clisp.org>
50028
50029         New module 'git-merge-changelog'.
50030         * modules/git-merge-changelog: New file.
50031         * lib/git-merge-changelog.c: New file.
50032
50033 2008-02-10  Jim Meyering  <meyering@redhat.com>
50034
50035         useless-if-before-free: New option: --list (-l).
50036
50037         useless-if-before-free: Don't exit immediately upon open failure.
50038         * build-aux/useless-if-before-free: Exit 2 for errors.
50039         Upon failure to open a file, don't exit immediately.
50040         Rather, just warn and continue with any remaining files.
50041
50042 2008-02-10  Bruno Haible  <bruno@clisp.org>
50043
50044         New abstract list operation 'node_set_value'.
50045         * lib/gl_list.h (gl_list_node_set_value): New function.
50046         (struct gl_list_implementation): New field node_set_value.
50047         * lib/gl_list.c (gl_list_node_set_value): New function.
50048         * lib/gl_array_list.c (gl_array_node_set_value): New function.
50049         (gl_array_list_implementation): Update.
50050         * lib/gl_carray_list.c (gl_carray_node_set_value): New function.
50051         (gl_carray_list_implementation): Update.
50052         * lib/gl_anylinked_list2.h (gl_linked_node_set_value): New function.
50053         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
50054         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
50055         * lib/gl_anytree_list2.h (gl_tree_node_set_value): New function.
50056         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
50057         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
50058         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
50059         Update.
50060         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Update.
50061         * lib/gl_sublist.c (gl_sublist_node_set_value): New function.
50062         (gl_sublist_list_implementation): Update.
50063
50064 2008-02-10  Bruno Haible  <bruno@clisp.org>
50065
50066         * lib/diffseq.h: Write "ELEMENT const" instead of "const ELEMENT".
50067         Needed when ELEMENT is #defined to 'some_type *'.
50068
50069 2008-02-10  Jim Meyering  <meyering@redhat.com>
50070
50071         New script and module: useless-if-before-free
50072         * MODULES.html.sh (maint+release support): Add useless-if-before-free.
50073         * build-aux/useless-if-before-free: New file.
50074         * modules/useless-if-before-free: New file.
50075
50076         * build-aux/gitlog-to-changelog: Use committer date, not author date.
50077
50078         xstrtol_error: Fix typo.
50079         * lib/xstrtol-error.c (xstrtol_error): The parameter was unused:
50080         s/exit_failure/exit_status/.
50081
50082 2008-02-09  Jim Meyering  <meyering@redhat.com>
50083
50084         New script and module: gitlog-to-changelog
50085         * MODULES.html.sh (maint+release support): Add gitlog-to-changelog.
50086         * modules/gitlog-to-changelog: New file.
50087         * build-aux/gitlog-to-changelog: New file.
50088
50089 2008-02-08  Jim Meyering  <meyering@redhat.com>
50090
50091         Avoid two "parameter unused" warnings.
50092         * lib/stat-time.h (get_stat_birthtime_ns, get_stat_birthtime):
50093         Mark "st" as used.
50094
50095         Use "git COMMAND", not "git-COMMAND".
50096         * build-aux/bootstrap (version_controlled_file): s/git-rm/git-rm/.
50097         * build-aux/announce-gen (get_tool_versions): Correct a diagnostic.
50098         * build-aux/git-version-gen: Use "git status", not "git-status".
50099
50100 2008-02-07  Bruno Haible  <bruno@clisp.org>
50101
50102         * lib/vasnprintf.c (VASNPRINTF): Don't use %n on native Woe32 systems.
50103         Avoids a crash on Windows Vista.
50104         Reported by Adam Strzelecki <ono@java.pl> via
50105         Simon Josefsson <simon@josefsson.org>.
50106
50107 2008-02-06  Bruno Haible  <bruno@clisp.org>
50108
50109         Fix *printf behaviour regarding the left-adjust flag on HP-UX 10.20.
50110         * m4/printf.m4 (gl_PRINTF_FLAG_LEFTADJUST): New macro.
50111         * lib/vasnprintf.c (VASNPRINTF): Handle NEED_PRINTF_FLAG_LEFTADJUST.
50112         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_LEFTADJUST): New macro.
50113         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
50114         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
50115         gl_PRINTF_FLAG_LEFTADJUST and test its result. Invoke
50116         gl_PREREQ_VASNPRINTF_FLAG_LEFTADJUST.
50117         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
50118         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
50119         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
50120         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
50121         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
50122         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
50123         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
50124         * tests/test-vasnprintf-posix.c (test_function): Add testcases for the
50125         left-adjust flag.
50126         * tests/test-snprintf-posix.h (test_function): Likewise.
50127         * tests/test-sprintf-posix.h (test_function): Likewise.
50128         * tests/test-vasprintf-posix.c (test_function): Likewise.
50129         * doc/posix-functions/fprintf.texi: Update.
50130         * doc/posix-functions/printf.texi: Update.
50131         * doc/posix-functions/snprintf.texi: Update.
50132         * doc/posix-functions/sprintf.texi: Update.
50133         * doc/posix-functions/vfprintf.texi: Update.
50134         * doc/posix-functions/vprintf.texi: Update.
50135         * doc/posix-functions/vsnprintf.texi: Update.
50136         * doc/posix-functions/vsprintf.texi: Update.
50137         Reported by Peter Fales <psfales@alcatel-lucent.com>.
50138
50139 2008-02-06  Bruno Haible  <bruno@clisp.org>
50140
50141         Fix bug introduced on 2008-01-26.
50142         * lib/isnan.c (FUNC): Set to rpl_isnand, not rpl_isnan.
50143
50144 2008-02-06  Bruno Haible  <bruno@clisp.org>
50145
50146         Fix bug introduced on 2007-06-10.
50147         * lib/vasnprintf.c (VASNPRINTF): Perform zero-padding also if
50148         !NEED_PRINTF_FLAG_ZERO.
50149
50150 2008-02-05  Peter O'Gorman <pogma@thewrittenword.com>
50151
50152         getloadavg: use libperfstat on AIX5
50153         * lib/getloadavg.c, m4/getloadavg.m4 [aix]: Use libperfstat
50154
50155 2008-02-03  Bruno Haible  <bruno@clisp.org>
50156
50157         * lib/diffseq.h: Add comments about required #includes.
50158         Reported by Michael Biggs <gnulib@doubleplum.net>.
50159
50160 2008-02-01  Bruno Haible  <bruno@clisp.org>
50161
50162         * users.txt: Add gnuit.
50163
50164 2008-01-31  Bruno Haible  <bruno@clisp.org>
50165
50166         * lib/md4.c (set_uint32): Mark as inline.
50167         * lib/md5.c (set_uint32): Likewise.
50168         * lib/sha1.c (set_uint32): Likewise.
50169         * m4/md4.m4 (gl_MD4): Require AC_C_INLINE.
50170         * m4/md5.m4 (gl_MD5): Likewise.
50171         * m4/sha1.m4 (gl_SHA1): Likewise.
50172
50173 2008-01-31  Jim Meyering  <meyering@redhat.com>
50174
50175         Use "sizeof VAR", rather than a literal "4".
50176         * lib/md5.c (md5_read_ctx): Use sizeof ctx->A, not 4.
50177         * lib/md4.c (md4_read_ctx): Likewise.
50178         * lib/sha1.c (sha1_read_ctx): Likewise.
50179
50180 2008-01-31  Simon Josefsson  <simon@josefsson.org>
50181
50182         * tests/test-sha1.c: New file, based on test-md5.c.
50183
50184         * modules/crypto/sha1-tests: New file.
50185
50186 2008-01-31  Simon Josefsson  <simon@josefsson.org>
50187
50188         * lib/sha1.h (SHA1_DIGEST_SIZE): Define.
50189
50190 2008-01-31  Jim Meyering  <meyering@redhat.com>
50191
50192         Prefer "sizeof v" over the equivalent "4".
50193         * lib/md4.c (set_uint32): Use "sizeof v" as memcpy length, not 4.
50194         * lib/md5.c (set_uint32): Likewise.
50195         * lib/sha1.c (set_uint32): Likewise.
50196
50197 2008-01-31  Simon Josefsson  <simon@josefsson.org>
50198
50199         * lib/sha1.c (set_uint32): Mark function as static.
50200
50201 2008-01-31  Simon Josefsson  <simon@josefsson.org>
50202
50203         md2: clarify comments to say that alignment is not required.
50204         * lib/md2.h: Remove warning about alignment in comment.
50205         * lib/md2.c (md2_read_ctx, md2_finish_ctx): Doc fix, alignment has
50206         never been required.
50207
50208 2008-01-31  Simon Josefsson  <simon@josefsson.org>
50209
50210         md4: adapt alignment constraint fix from sha1.
50211         * lib/md4.c (set_uint32): New function, from sha1.c
50212         (md4_read_ctx): Use it.
50213         (md4_finish_ctx): Doc fix.
50214         * lib/md4.h: Doc fix.
50215
50216 2008-01-31  Simon Josefsson  <simon@josefsson.org>
50217
50218         md5: adapt alignment constraint fix from sha1.
50219         * lib/md5.c (set_uint32): New function, from sha1.c
50220         (md5_read_ctx): Use it.
50221         (md5_finish_ctx): Doc fix.
50222         * lib/md5.h: Doc fix.
50223
50224 2008-01-30  Peter Palfrader  <weasel@debian.org>
50225
50226         sha1: remove the result buffer alignment constraint
50227         * lib/sha1.c (set_uint32): New function.
50228         (sha1_read_ctx): Rewrite to remove the result buffer alignment
50229         constraint.
50230         (sha1_finish_ctx): Remove comment warning about alignment constraint.
50231         * lib/sha1.h: Likewise.
50232
50233 2008-01-30  Andreas Schwab  <schwab@suse.de>
50234             Bruno Haible  <bruno@clisp.org>
50235
50236         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Include <float.h> and ensure a
50237         correct definition of LDBL_MIN_EXP.
50238
50239 2008-01-30  Karl Berry  <karl@gnu.org>
50240
50241         * config/srclist-update: try to preserve x bit on updates.
50242         * config/srclistvars.sh: update for karl.
50243
50244 2008-01-29  Jim Meyering  <meyering@redhat.com>
50245
50246         vasnprintf.c: Avoid warning about unused label
50247         * lib/vasnprintf.c (VASNPRINTF) [!USE_SNPRINTF]: Guard the
50248         "overflow" label definition and associated code with the
50249         same cpp condition that guards the sole use of that label.
50250
50251 2008-01-26  Bruno Haible  <bruno@clisp.org>
50252
50253         * m4/isnanl.m4 (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM,
50254         gl_FUNC_ISNANL_WORKS): Test the GCC >= 4.0 built-in.
50255         * lib/isnanl.h (isnanl): Use the GCC >= 4.0 built-in.
50256         * lib/isnanl-nolibm.h (isnanl): Likewise.
50257         Reported by Paul Eggert <eggert@cs.ucla.edu>.
50258
50259 2008-01-26  Bruno Haible  <bruno@clisp.org>
50260
50261         * m4/isnand.m4 (gl_FUNC_ISNAND_NO_LIBM): Test the GCC >= 4.0 built-in.
50262         * lib/isnand.h (isnand): Use the GCC >= 4.0 built-in.
50263
50264 2008-01-26  Bruno Haible  <bruno@clisp.org>
50265
50266         * m4/isnanf.m4 (gl_HAVE_ISNANF_NO_LIBM, gl_ISNANF_WORKS): Test the
50267         GCC >= 4.0 built-in.
50268         * lib/isnanf.h (isnanf): Use the GCC >= 4.0 built-in.
50269
50270 2008-01-26  Bruno Haible  <bruno@clisp.org>
50271
50272         Rename isnan, applicable to 'double' only, to isnand.
50273         * modules/isnand-nolibm: Renamed from modules/isnan-nolibm.
50274         (Files): Add lib/isnand.h, lib/isnand.c. Remove lib/isnan.h.
50275         (configure.ac): Update.
50276         (Include): Replace "isnan.h" with "isnand.h".
50277         * m4/isnand.m4: Renamed from m4/isnan.m4.
50278         (gl_FUNC_ISNAND_NO_LIBM): Renamed from gl_FUNC_ISNAN_NO_LIBM. Set
50279         HAVE_ISNAND_IN_LIBC instead of HAVE_ISNAN_IN_LIBC. Build isnand.c
50280         instead of isnan.c.
50281         * lib/isnand.h: Renamed from lib/isnan.h. Test HAVE_ISNAND_IN_LIBC
50282         instead of HAVE_ISNAN_IN_LIBC.
50283         (isnand): Renamed from isnan.
50284         * lib/isnand.c: New file.
50285         * modules/isnand-nolibm-tests: Renamed from modules/isnan-nolibm-tests.
50286         (Files): Add tests/test-isnand.c. Remove tests/test-isnan.c.
50287         (Makefile.am): Update.
50288         * tests/test-isnand.c: Renamed from tests/test-isnan.c.
50289         Include isnand.h instead of isnan.h.
50290         (main): Test isnand instead of isnan.
50291         * modules/fprintf-posix (Depends-on): Add isnand-nolibm, remove
50292         isnan-nolibm.
50293         * modules/frexp (Depends-on): Likewise.
50294         * modules/frexp-tests (Depends-on): Likewise.
50295         * modules/frexp-nolibm (Depends-on): Likewise.
50296         * modules/frexp-nolibm-tests (Depends-on): Likewise.
50297         * modules/isfinite (Depends-on): Likewise.
50298         * modules/round-tests (Depends-on): Likewise.
50299         * modules/signbit (Depends-on): Likewise.
50300         * modules/signbit-tests (Depends-on): Likewise.
50301         * modules/snprintf-posix (Depends-on): Likewise.
50302         * modules/sprintf-posix (Depends-on): Likewise.
50303         * modules/trunc-tests (Depends-on): Likewise.
50304         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
50305         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
50306         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
50307         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
50308         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
50309         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
50310         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
50311         * modules/vasnprintf-posix (Depends-on): Likewise.
50312         * modules/vasprintf-posix (Depends-on): Likewise.
50313         * modules/vfprintf-posix (Depends-on): Likewise.
50314         * modules/vsnprintf-posix (Depends-on): Likewise.
50315         * modules/vsprintf-posix (Depends-on): Likewise.
50316         * lib/frexp.c: Include isnand.h instead of isnan.h.
50317         (ISNAN): Set to isnand instead of isnan.
50318         * lib/isfinite.c: Include isnand.h instead of isnan.h.
50319         (gl_isfinited): Use isnand instead of isnan.
50320         * lib/signbitd.c: Include isnand.h instead of isnan.h.
50321         (gl_signbitd): Use isnand instead of isnan.
50322         * lib/vasnprintf.c: Include isnand.h instead of isnan.h.
50323         (is_infinite_or_zero, VASNPRINTF): Use isnand instead of isnan.
50324         * tests/test-frexp.c: Include isnand.h instead of isnan.h.
50325         (main): Use isnand instead of isnan.
50326         * tests/test-round1.c: Include isnand.h.
50327         (main): Use isnand instead of isnan.
50328         * tests/test-round2.c: Include isnand.h instead of isnan.h.
50329         (ISNAN): Set to isnand instead of isnan.
50330         * tests/test-trunc1.c: Include isnand.h.
50331         (main): Use isnand instead of isnan.
50332         * tests/test-trunc2.c: Include isnand.h instead of isnan.h.
50333         (equal): Use isnand instead of isnan.
50334         * MODULES.html.sh (Mathematics <math.h>): Replace isnan-nolibm with
50335         isnand-nolibm.
50336         * NEWS: Mention the change.
50337
50338 2008-01-25  Paul Eggert  <eggert@cs.ucla.edu>
50339             Bruno Haible  <bruno@clisp.org>
50340
50341         * m4/signbit.m4 (gl_SIGNBIT): Require a macro definition. Test whether
50342         the GCC builtins for signbits are present and set
50343         REPLACE_SIGNBIT_USING_GCC if so.
50344         * lib/math.in.h (signbit): Define using GCC builtins if
50345         REPLACE_SIGNBIT_USING_GCC is set.
50346         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize
50347         REPLACE_SIGNBIT_USING_GCC.
50348         * modules/math (Makefile.am): Substitute REPLACE_SIGNBIT_USING_GCC.
50349
50350 2008-01-25  Jim Meyering  <meyering@redhat.com>
50351
50352         Prefer <config.h> over "config.h".  See autoconf doc for explanation.
50353         * lib/poll.c: Include <config.h>, not "config.h".
50354         * tests/test-getaddrinfo.c: Likewise.
50355
50356 2008-01-25  Simon Josefsson  <simon@josefsson.org>
50357
50358         * modules/sockets-tests: New file.
50359
50360 2008-01-24  Simon Josefsson  <simon@josefsson.org>
50361
50362         * modules/sockets: New module, can be used to call WSA_Startup and
50363         WSA_Cleanup when needed.
50364
50365         * lib/sockets.h, lib/sockets.c: New files.
50366
50367         * m4/sockets.m4: New file.
50368
50369         * tests/test-sockets.c: New file.
50370
50371 2008-01-19  Bruno Haible  <bruno@clisp.org>
50372
50373         * doc/posix-headers: Renamed from doc/headers.
50374         * doc/posix-functions: Renamed from doc/functions.
50375         * doc/gnulib.texi: Update.
50376
50377 2008-01-19  Bruno Haible  <bruno@clisp.org>
50378
50379         * doc/glibc-functions/strcasestr.texi: Include contents of
50380         doc/functions/strcasestr.texi, fixing the list of platforms.
50381         * doc/functions/strcasestr.texi: Remove file.
50382
50383 2008-01-19  Bruno Haible  <bruno@clisp.org>
50384
50385         * doc/glibc-functions/memmem.texi: Include contents of
50386         doc/functions/memmem.texi.
50387         * doc/functions/memmem.texi: Remove file.
50388
50389 2008-01-18  Bruno Haible  <bruno@clisp.org>
50390
50391         * doc/glibc-functions/*.texi: New files.
50392         * doc/gnulib.texi (Glibc Function Substitutes): Completely rewritten
50393         to use the new files.
50394
50395 2008-01-17  Bruno Haible  <bruno@clisp.org>
50396
50397         * tests/test-gethostname.c (main): Fix printf statement.
50398
50399 2008-01-17  Simon Josefsson  <simon@josefsson.org>
50400
50401         * modules/gethostname-tests: New file.
50402
50403         * tests/test-gethostname.c: New file.
50404
50405 2008-01-17  Simon Josefsson  <simon@josefsson.org>
50406
50407         * lib/gethostname.c: Include string.h unconditionally, strncpy is
50408         used by the UNAME case.  Reported by Bruno Haible
50409         <bruno@clisp.org>.
50410
50411 2008-01-17  Eric Blake  <ebb9@byu.net>
50412
50413         Convert c-strcasestr to be more efficient.
50414         * modules/c-strcasestr (Files): Use Two-Way, not KMP.
50415         (Depends-on): Add c-strcase, remove malloca, strnlen.
50416         * tests/test-c-strcasestr.c (main): Enhance test.
50417         * lib/c-strcasestr.c (c_strcasestr): Rewrite to new algorithm.
50418
50419 2007-01-16  Paolo Bonzini  <bonzini@gnu.org>
50420
50421         * build-aux/bootstrap (MSGID_BUGS_ADDRESS): New overridable variable.
50422         Use it in creating po/Makevars.
50423
50424 2008-01-15  Simon Josefsson  <simon@josefsson.org>
50425
50426         * lib/gc-libgcrypt.c (gc_init): Disable secure memory by default.
50427         Applications that requires it should initialize libgcrypt
50428         manually.
50429
50430 2008-01-16  Simon Josefsson  <simon@josefsson.org>
50431
50432         * lib/gethostname.c [!HAVE_UNAME]: Need string.h for strcpy.
50433
50434 2008-01-15  Paul Eggert  <eggert@cs.ucla.edu>
50435
50436         Fix problem with getdate on mingw32 reported by Simon Josefsson
50437         in <http://lists.gnu.org/archive/html/bug-gnulib/2008-01/msg00192.html>.
50438         * lib/getdate.y (get_date): Check "HAVE_DECL_TZNAME", not "defined
50439         tzname", when deciding whether to declare tzname.
50440         * lib/strftime.c (tzname): Likewise.
50441
50442 2008-01-15  Bruno Haible  <bruno@clisp.org>
50443
50444         Work around a MacOS X 10.5 bug in frexpl().
50445         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Also check denormalized numbers.
50446         * doc/functions/frexpl.texi: Document the bug.
50447         Reported by Elias Pipping <pipping@gentoo.org>.
50448
50449 2008-01-14  Eric Blake  <ebb9@byu.net>
50450
50451         Touch up previous patch.
50452         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Fix typo.
50453         * doc/functions/strcasestr.texi (strcasestr): Document OpenBSD bug.
50454
50455         Convert strcasestr module to use Two-Way algorithm.
50456         * modules/strcasestr-simple: New module, based on the old
50457         strcasestr, but with Two-Way rather than KMP.
50458         * modules/strcasestr (Depends-on): Change to strcasestr-simple.
50459         * lib/string.in.h (rpl_strcasestr): Declare.
50460         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Check for linear
50461         performance.
50462         * lib/strcasestr.c (strcasestr): Simplify, and avoid malloc.
50463         * modules/string (Makefile.am): Support strcasestr.
50464         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Likewise.
50465         * modules/strcasestr-tests (Depends-on): Check for alarm.
50466         * tests/test-strcasestr.c: Augment test.
50467         * lib/str-two-way.h: Clean up stray macro.
50468         * NEWS: Document new module.
50469         * MODULES.html.sh (string handling): Likewise.
50470         * doc/functions/strcasestr.texi: New file.
50471         * doc/gnulib.texi (Function Substitutes): New node.  Move memmem
50472         here, since it is not a POSIX function.
50473
50474 2008-01-14  Colin Watson  <cjwatson@debian.org>
50475             Bruno Haible  <bruno@clisp.org>
50476
50477         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Also check whether strsignal
50478         works fine; if not, set REPLACE_STRSIGNAL.
50479         (gl_PREREQ_STRSIGNAL): Require AC_DECL_SYS_SIGLIST.
50480         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
50481         REPLACE_STRSIGNAL.
50482         * lib/string.in.h (strsignal): Consider REPLACE_STRSIGNAL.
50483         * modules/string (Makefile.am): Substitute REPLACE_STRSIGNAL.
50484         * tests/test-strsignal.c (main): Check out-of-range signal numbers.
50485
50486 2008-01-14  Bruno Haible  <bruno@clisp.org>
50487
50488         * modules/strsignal (Include): Change to <string.h>.
50489
50490 2008-01-14  Colin Watson  <cjwatson@debian.org>
50491
50492         * modules/argp (Notice): Add a notice recommending to change
50493         XGETTEXT_OPTIONS.
50494         (configure.ac): Invoke AM_XGETTEXT_OPTION if it exists.
50495
50496 2008-01-13  Colin Watson  <cjwatson@debian.org>
50497
50498         * modules/strsignal-tests: New file.
50499         * tests/test-strsignal.c: New file.
50500
50501         * lib/strsignal.c: New file, from glibc with modifications.
50502         * lib/siglist.h: New file, from glibc with modifications.
50503         * lib/string.in.h (strsignal): New declaration.
50504         * m4/strsignal.m4: New file.
50505         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
50506         GNULIB_STRSIGNAL and HAVE_DECL_STRSIGNAL.
50507         * modules/strsignal: New file.
50508         * modules/string (Makefile.am): Substitute GNULIB_STRSIGNAL and
50509         HAVE_DECL_STRSIGNAL.
50510
50511 2008-01-13  Bruno Haible  <bruno@clisp.org>
50512
50513         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Check that the
50514         locale encoding is not ASCII. Needed for OpenBSD 4.0.
50515         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
50516         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
50517
50518 2008-01-13  Bruno Haible  <bruno@clisp.org>
50519
50520         * lib/argp-fmtstream.h (__attribute__): Don't redefine if
50521         __STRICT_ANSI__ is set: it's not needed by any version of gcc.
50522         * lib/argp.h (__attribute__): Likewise.
50523         * lib/c-stack.c (__attribute__): Likewise.
50524         * lib/error.h (__attribute__): Likewise.
50525         * lib/fts.c (__attribute__): Likewise.
50526         * lib/openat.h (__attribute__): Likewise.
50527         * lib/stdio.in.h (__attribute__): Likewise.
50528         * lib/string.in.h (__attribute__): Likewise.
50529         * lib/utimens.c (__attribute__): Likewise.
50530         * lib/vasnprintf.h (__attribute__): Likewise.
50531         * lib/xalloc.h (__attribute__): Likewise.
50532         * lib/xprintf.h (__attribute__): Likewise.
50533         * lib/xstrtol.h (__attribute__): Likewise.
50534         * lib/xvasprintf.h (__attribute__): Likewise.
50535
50536 2008-01-12  Bruno Haible  <bruno@clisp.org>
50537
50538         * doc/gnulib.texi (Glibc Header File Substitutes): New chapter.
50539         * doc/glibc-headers/a.out.texi: New file.
50540         * doc/glibc-headers/aliases.texi: New file.
50541         * doc/glibc-headers/alloca.texi: New file.
50542         * doc/glibc-headers/ar.texi: New file.
50543         * doc/glibc-headers/argp.texi: New file.
50544         * doc/glibc-headers/argz.texi: New file.
50545         * doc/glibc-headers/byteswap.texi: New file.
50546         * doc/glibc-headers/crypt.texi: New file.
50547         * doc/glibc-headers/endian.texi: New file.
50548         * doc/glibc-headers/envz.texi: New file.
50549         * doc/glibc-headers/err.texi: New file.
50550         * doc/glibc-headers/error.texi: New file.
50551         * doc/glibc-headers/execinfo.texi: New file.
50552         * doc/glibc-headers/fpu_control.texi: New file.
50553         * doc/glibc-headers/fstab.texi: New file.
50554         * doc/glibc-headers/fts.texi: New file.
50555         * doc/glibc-headers/getopt.texi: New file.
50556         * doc/glibc-headers/ieee754.texi: New file.
50557         * doc/glibc-headers/ifaddrs.texi: New file.
50558         * doc/glibc-headers/libintl.texi: New file.
50559         * doc/glibc-headers/mcheck.texi: New file.
50560         * doc/glibc-headers/mntent.texi: New file.
50561         * doc/glibc-headers/obstack.texi: New file.
50562         * doc/glibc-headers/paths.texi: New file.
50563         * doc/glibc-headers/printf.texi: New file.
50564         * doc/glibc-headers/pty.texi: New file.
50565         * doc/glibc-headers/resolv.texi: New file.
50566         * doc/glibc-headers/shadow.texi: New file.
50567         * doc/glibc-headers/sysexits.texi: New file.
50568         * doc/glibc-headers/ttyent.texi: New file.
50569
50570 2008-01-12  Jim Meyering  <meyering@redhat.com>
50571
50572         announce-gen: emit Gnulib's git-based version string.
50573         * build-aux/announce-gen: Remove option: --gnulib-snapshot-time-stamp=S.
50574         New option --gnulib-version=V, where V is expected to be
50575         the output of running git describe in the gnulib directory.
50576         (get_tool_versions): Request feedback on xdelta.  I suspect it's
50577         not useful, and plan to stop publishing an xdelta file with each
50578         coreutils release.
50579
50580         * build-aux/announce-gen: Also check for lzma-compressed files.
50581
50582 2008-01-11  Bruno Haible  <bruno@clisp.org>
50583
50584         * tests/test-memmem.c (main): Increase maximum allowed time.
50585         * tests/test-strstr.c (main): Likewise.
50586
50587 2008-01-11  Bruno Haible  <bruno@clisp.org>
50588
50589         * doc/functions/memmem.texi: Add more precisions about platforms.
50590         * doc/functions/strstr.texi: Likewise.
50591
50592 2008-01-10  Eric Blake  <ebb9@byu.net>
50593
50594         * m4/strstr.m4: Delete cruft from copy-n-paste.
50595         Reported by Bruno Haible.
50596
50597 2008-01-10  Bruno Haible  <bruno@clisp.org>
50598
50599         Make c-strstr rely on strstr.
50600         * lib/c-strstr.c: Don't include str-kmp.h.
50601         (c_strstr): Define in terms of strstr.
50602         * modules/c-strstr (Files): Remove lib/str-kmp.h.
50603         (Depends-on): Remove stdbool, malloca, strnlen. Add strstr.
50604
50605 2008-01-10  Bruno Haible  <bruno@clisp.org>
50606
50607         * doc/gnulib.texi (String Functions in C Locale): New section.
50608         * doc/c-ctype.texi: New file.
50609         * doc/c-strcase.texi: New file.
50610         * doc/c-strcaseeq.texi: New file.
50611         * doc/c-strcasestr.texi: New file.
50612         * doc/c-strstr.texi: New file.
50613         * doc/c-strtod.texi: New file.
50614         * doc/c-strtold.texi: New file.
50615
50616 2008-01-10  Eric Blake  <ebb9@byu.net>
50617
50618         * lib/relocatable.h: Fix a comment.
50619
50620 2008-01-10  Eric Blake  <ebb9@byu.net>
50621
50622         Share two-way algorithm.
50623         * lib/str-two-way.h: New file, merged from...
50624         * lib/memmem.c: ...here...
50625         * lib/strstr.c: ...and here.
50626         * modules/memmem (Files): Use it.
50627         * modules/strstr (Files): Likewise.
50628
50629         Avoid quadratic strstr implementations.
50630         * lib/strstr.c: New file.
50631         * m4/strstr.m4: Likewise.
50632         * modules/strstr: Likewise.
50633         * modules/strstr-tests: Likewise.
50634         * tests/test-strstr.c: Likewise.
50635         * lib/string.in.h (rpl_strstr): Declare.
50636         (memmem) [GNULIB_POSIXCHECK]: Document speed issue.
50637         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Support strstr.
50638         * modules/string (Makefile.am): Likewise.
50639         * MODULES.html.sh (string handling): Mention new module.
50640         * doc/functions/strstr.texi (strstr): Document the bug.
50641
50642 2008-01-10  Bruno Haible  <bruno@clisp.org>
50643
50644         * lib/relocatable.h (relocate): State whether result is freshly
50645         allocated or not.
50646         * lib/relocatable.c (relocate): Return a freshly allocated string
50647         instead of a pointer to a privately held string.
50648         Reported by Sylvain Beucler <beuc@gnu.org>.
50649
50650 2008-01-10  Colin Watson  <cjwatson@debian.org>
50651
50652         * lib/canonicalize-lgpl.c [!_LIBC]: Fix typo in #if directive:
50653         s/S_ISNLK/S_ISLNK/.
50654
50655 2008-01-09  Bruno Haible  <bruno@clisp.org>
50656
50657         * doc/functions/memmem.texi: Use the same structure as snprintf.texi
50658         and other files.
50659         * m4/memmem.m4 (gl_FUNC_MEMMEM): Say "guessing no" instead of "no"
50660         if it's only a guess.
50661         * modules/memmem: Simplify by depending on memmem-simple.
50662
50663 2008-01-09  Bruno Haible  <bruno@clisp.org>
50664
50665         Work around OpenBSD 4.0 tdelete() bug.
50666         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Also check tdelete's return value.
50667         * lib/search.in.h: If REPLACE_TSEARCH is 1, define tsearch etc. as
50668         macros and don't redefine the enum values.
50669         * m4/search_h.m4 (gl_SEARCH_H_DEFAULTS): Initialize REPLACE_TSEARCH.
50670         * modules/search (Makefile.am): Also substitute REPLACE_TSEARCH.
50671         * doc/functions/tdelete.texi: Document the OpenBSD 4.0 bug.
50672
50673 2008-01-09  Bruno Haible  <bruno@clisp.org>
50674
50675         * tests/test-wcwidth.c: Include <string.h> and localcharset.h.
50676         (main): Don't perform the tests if setlocale did not install a UTF-8
50677         locale. Needed on OpenBSD 4.0.
50678         * modules/wcwidth-tests (Depends-on): Add localcharset.
50679
50680 2008-01-09  Paul Eggert  <eggert@cs.ucla.edu>
50681
50682         gl_FUNC_ALLOCA no longer defines HAVE_ALLOCA_H unconditionally.
50683         See <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00149.html>.
50684         * NEWS: announce this.
50685         * m4/alloca.m4 (gl_FUNC_ALLOCA): Don't define HAVE_ALLOCA_H.
50686
50687 2008-01-09  Simon Josefsson  <simon@josefsson.org>
50688         and Eric Blake  <ebb9@byu.net>
50689
50690         Add memmem-simple module.
50691         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): New macro.
50692         (gl_FUNC_MEMMEM): Separate performance from presence checks.
50693         * modules/memmem-simple: New file.
50694         * modules/memmem (Description): Tweak.
50695         * MODULES.html.sh (string handling): Mention new module.
50696         * doc/functions/memmem.texi (memmem): Distinguish which flaws are
50697         addressed by memmem-simple.
50698         * NEWS: Document the difference.
50699
50700 2008-01-09  Eric Blake  <ebb9@byu.net>
50701
50702         Give gcc some memmem optimization hints.
50703         * lib/string.in.h (memmem, memrchr, strchrnul, strnlen, strpbrk)
50704         (strcasestr): Declare as pure.
50705         * modules/memmem (Maintainer): Claim my implementation.
50706
50707 2008-01-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
50708
50709         Support AIX 6.1 and higher.
50710         * build-aux/config.libpath: Likewise.
50711         * build-aux/config.rpath: Likewise.
50712
50713 2008-01-08  Jim Meyering  <meyering@redhat.com>
50714             Bruno Haible  <bruno@clisp.org>
50715
50716         * lib/printf-parse.c (PRINTF_PARSE): Handle a size specifier "q"
50717         on MacOS X and a size specifier "I64" on mingw. Needed for PRIdMAX.
50718         Reported by Peter Fales in
50719         <http://lists.gnu.org/archive/html/bug-coreutils/2007-12/msg00148.html>.
50720
50721 2008-01-08  Bruno Haible  <bruno@clisp.org>
50722
50723         * modules/unictype/category-of (Depends-on): Add
50724         unictype/category-none.
50725         * modules/unictype/category-and-tests (Depends-on): Add
50726         unictype/category-{L,N,Lu,Nd}.
50727         * modules/unictype/category-and-not-tests (Depends-on): Likewise.
50728         * modules/unictype/category-or-tests (Depends-on): Add
50729         unictype/category-{L,N}.
50730         * modules/unictype/category-name-tests (Depends-on): Add
50731         unictype/category-{Z,Nl}.
50732         Reported by Simon Josefsson.
50733
50734 2008-01-08  Bruno Haible  <bruno@clisp.org>
50735
50736         * lib/str-kmp.h (knuth_morris_pratt_unibyte): Document the calling
50737         convention better.
50738         * lib/mbsstr.c (knuth_morris_pratt_multibyte): Likewise.
50739         * lib/mbscasestr.c (knuth_morris_pratt_multibyte): Likewise.
50740         Reported by Peter Miller <millerp@canb.auug.org.au>.
50741
50742 2008-01-08  Eric Blake  <ebb9@byu.net>
50743
50744         Rewrite memmem to guarantee linear complexity without malloc.
50745         * lib/memmem.c (memmem): Use Two-Way rather than
50746         Knuth-Morris-Pratt, to allow O(1) space usage.
50747         (critical_factorization, two_way_short_needle)
50748         (two_way_long_needle): New functions.
50749         (knuth_morris_pratt): Delete.
50750         * modules/memmem (Depends-on): No longer need malloca or stdbool.
50751         Add stdint.
50752         * tests/test-memmem.c (main): Add tests for periodic needle and
50753         sublinear performance.
50754         * doc/functions/memmem.texi (memmem): Document other deficiencies
50755         in cygwin and older glibc.
50756
50757 2008-01-08  Bruno Haible  <bruno@clisp.org>
50758
50759         * modules/memmem-tests (Makefile.am): Remove TESTS_ENVIRONMENT
50760         augmentation.
50761
50762 2008-01-08  Mike Frysinger  <vapier@gentoo.org>
50763
50764         Add a configure time option: --disable-acl.
50765         * m4/acl.m4 (gl_FUNC_ACL): Wrap all ACL logic in a call to
50766         AC_ARG_ENABLE(acl).
50767
50768 2008-01-06  Simon Josefsson  <simon@josefsson.org>
50769
50770         * tests/test-localename.c: Don't include obsolete "setenv.h".
50771
50772         * modules/localename-tests (Depends-on): Need unsetenv.
50773
50774 2008-01-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
50775
50776         * DEPENDENCIES: Require Texinfo version 4.6 or newer.
50777
50778 2008-01-06  Colin Watson  <cjwatson@debian.org>
50779
50780         * users.txt: Add man-db.
50781
50782 2008-01-07  Bruno Haible  <bruno@clisp.org>
50783
50784         * doc/gnulib-intro.texi (Library vs Reusable Code): Restore the
50785         previous section name.
50786
50787 2008-01-07  Bruno Haible  <bruno@clisp.org>
50788
50789         * lib/progname.c (set_program_name): Don't strip off a leading
50790         "lt-" prefix outside a .libs directory.
50791         Suggested by Paul Eggert.
50792
50793 2008-01-01  Sylvain Beucler  <beuc@gnu.org>
50794             Bruno Haible  <bruno@clisp.org>
50795
50796         Improve memory cleanup in 'relocatable' module.
50797         * lib/relocatable.h (compute_curr_prefix): Change return type to
50798         'char *'.
50799         * lib/relocatable.c (compute_curr_prefix): Change return type to
50800         'char *'. Free curr_installdir after use.
50801         (relocate): Free curr_prefix_better after use.
50802         * lib/progreloc.c (prepare_relocate): Free curr_prefix after use.
50803
50804 2008-01-01  Bruno Haible  <bruno@clisp.org>
50805
50806         * tests/test-wcwidth.c (main): Relax test of U+2060. Avoids a test
50807         failure on older glibc systems.
50808         Reported by Peter Fales <psfales@alcatel-lucent.com>.
50809
50810 2008-01-05  Eric Blake  <ebb9@byu.net>
50811
50812         Avoid quadratic system memmem.
50813         * m4/memmem.m4 (gl_FUNC_MEMMEM): Check for quadratic memmem.
50814         Reported by Ralf Wildenhues.
50815
50816         Fix memmem test for mingw.
50817         * modules/memmem-tests (configure.ac): Check for alarm.
50818         * tests/test-memmem.c (main): Avoid alarm on platforms that lack
50819         it.
50820         * doc/functions/memmem.texi: New file.
50821         * doc/gnulib.texi (Function Substitutes): Add memmem.
50822         Reported by Bruno Haible.
50823
50824 2008-01-04  Bruno Haible  <bruno@clisp.org>
50825
50826         * m4/strcase.m4 (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP):
50827         Require gl_HEADER_STRINGS_H_DEFAULTS, not
50828         gl_HEADER_STRING_H_DEFAULTS.
50829
50830 2008-01-04  Eric Blake  <ebb9@byu.net>
50831
50832         Shorten duration of memmem test.
50833         * tests/test-memmem.c (main): Use alarm to declare failure if test
50834         is taking too long.
50835         Reported by Ralf Wildenhues.
50836
50837 2007-12-21  Simon Josefsson  <simon@josefsson.org>
50838
50839         * modules/relocatable-prog-wrapper (Depends-on): Add intprops and
50840         string, needed by strerror.
50841
50842 2008-01-03  Colin Watson  <cjwatson@debian.org>
50843             Bruno Haible  <bruno@clisp.org>
50844
50845         * doc/gnulib-tool.texi (Localization): New section.
50846
50847 2008-01-02  Bruno Haible  <bruno@clisp.org>
50848
50849         * lib/memmem.c (knuth_morris_pratt, memmem): Change all 'char *'
50850         variables to 'unsigned char *' type.
50851         Reported by Paul Eggert.
50852
50853 2008-01-02  Jim Meyering  <jim@meyering.net>
50854
50855         * lib/version-etc.c (COPYRIGHT_YEAR): Increase for new year.
50856
50857 2007-12-31  Jim Meyering  <jim@meyering.net>
50858
50859         Avoid use of private FTS type name.
50860         * lib/fts.c (fts_sort): Use FTSENT rather than "struct _ftsent".
50861
50862 2007-12-30  Karl Berry  <karl@gnu.org>
50863
50864         * doc/gnulib.texi (Library vs. Reusable Code): remove period, to
50865         work around defect in Texinfo and/or the standalone Info browser.
50866
50867 2007-12-30  Bruno Haible  <bruno@clisp.org>
50868
50869         Unify 5 copies of the KMP code.
50870         * lib/str-kmp.h: New file.
50871         * lib/c-strcasestr.c: Include str-kmp.h.
50872         (knuth_morris_pratt): Remove function.
50873         (c_strcasestr): Update.
50874         * lib/c-strstr.c: Include str-kmp.h.
50875         (knuth_morris_pratt): Remove function.
50876         (c_strcasestr): Update.
50877         * lib/mbscasestr.c: Include str-kmp.h.
50878         (knuth_morris_pratt_unibyte): Remove function.
50879         * lib/mbsstr.c: Include str-kmp.h.
50880         (knuth_morris_pratt_unibyte): Remove function.
50881         * lib/strcasestr.c: Include str-kmp.h.
50882         (knuth_morris_pratt): Remove function.
50883         (strcasestr): Update.
50884         * modules/c-strcasestr (Files): Add lib/str-kmp.h.
50885         * modules/c-strstr (Files): Likewise.
50886         * modules/mbscasestr (Files): Likewise.
50887         * modules/mbsstr (Files): Likewise.
50888         * modules/strcasestr (Files): Likewise.
50889         Suggested by Paul Eggert.
50890
50891 2007-12-30  Bruno Haible  <bruno@clisp.org>
50892
50893         * lib/xmalloca.c (xmmalloca): Don't define if HAVE_ALLOCA is not
50894         defined.
50895
50896 2007-12-30  Bruno Haible  <bruno@clisp.org>
50897
50898         * lib/xmalloca.h: Include xalloc.h.
50899         (xnmalloca): New macro.
50900
50901 2007-12-30  Bruno Haible  <bruno@clisp.org>
50902
50903         * lib/malloca.h (nmalloca): New macro.
50904         * lib/c-strcasestr.c (knuth_morris_pratt): Use it.
50905         * lib/c-strstr.c (knuth_morris_pratt): Likewise.
50906         * lib/mbscasestr.c (knuth_morris_pratt_unibyte,
50907         knuth_morris_pratt_multibyte): Likewise.
50908         * lib/mbsstr.c (knuth_morris_pratt_unibyte,
50909         knuth_morris_pratt_multibyte): Likewise.
50910         * lib/memmem.c (knuth_morris_pratt): Likewise.
50911         * lib/strcasestr.c (knuth_morris_pratt): Likewise.
50912
50913 2007-12-25  Bruno Haible  <bruno@clisp.org>
50914
50915         Fixup after 2007-10-17 commit. Ensure that 'glob' stays under LGPLv2+.
50916         * lib/glob.c: Don't include openat.h.
50917         (link_exists2_p): Add back the code that deals with the
50918         !GLOB_ALTDIRFUNC case.
50919         (link_exists_p) [!_LIBC && !HAVE_FSTATAT]: Just call link_exists2_p and
50920         let it do the filename concatenation.
50921         * m4/glob.m4 (gl_PREREQ_GLOB): Add check for fstatat.
50922         * modules/glob (Depends-on): Remove openat.
50923
50924 2007-12-31  Bruno Haible  <bruno@clisp.org>
50925
50926         * modules/dirfd (License): Change to LGPLv2+.
50927         Approved by Jim Meyering.
50928
50929 2007-12-29  Paul Eggert  <eggert@cs.ucla.edu>
50930
50931         * lib/memmem.c (knuth_morris_pratt): Check for size_t overflow
50932         when multiplying M by sizeof (size_t).
50933
50934 2007-12-10  Martin Lambers  <marlam@marlam.de>
50935
50936         Override getpagesize on mingw.
50937         * lib/getpagesize.c: New file.
50938         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Enable replacement on mingw.
50939         * modules/getpagesize (Files): Add lib/getpagesize.c.
50940         * lib/unistd.in.h (getpagesize): Declare if we are using a replacement.
50941         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
50942         REPLACE_GETPAGESIZE.
50943         * modules/unistd (Makefile.am): Substitute REPLACE_GETPAGESIZE.
50944
50945 2007-12-25  Bruno Haible  <bruno@clisp.org>
50946
50947         * modules/localcharset (Notice): New field.
50948         (configure.ac): Define LOCALCHARSET_TESTS_ENVIRONMENT.
50949         Suggested by Ben Pfaff <blp@cs.stanford.edu>.
50950
50951 2007-12-25  Paul Eggert  <eggert@cs.ucla.edu>
50952             Bruno Haible  <bruno@clisp.org>
50953
50954         Avoid using the syntax symbol() in formatted documentation.
50955         * MODULES.html.sh (func_module): When replacing symbol() with a
50956         hyperlink, remove the parentheses. Show an error if some remain.
50957         Recognize and render the '...' syntax.
50958         * doc/alloca-opt.texi: Remove parentheses from symbol reference.
50959         Rework. Add paragraph about GCC's inlining.
50960         * doc/alloca.texi: Likewise.
50961         * doc/error.texi: Remove parentheses from symbol reference.
50962         * doc/gnulib-intro.texi: Likewise.
50963         * doc/gnulib.texi (alloca, alloca-opt): New nodes.
50964         * modules/fnmatch (Description): Reword to say "the ... function".
50965         * modules/full-read (Description): Likewise.
50966         * modules/full-write (Description): Likewise.
50967         * modules/safe-read (Description): Likewise.
50968         * modules/safe-write (Description): Likewise.
50969         * modules/strchrnul (Description): Likewise.
50970         * modules/trim (Description): Likewise.
50971         * modules/error (Description): Remove parentheses from symbol
50972         references.
50973         * modules/verror (Description): Likewise.
50974         Reported by Karl Berry.
50975
50976 2007-12-25  Bruno Haible  <bruno@clisp.org>
50977
50978         Fixup after 2007-10-16 commit.
50979         * lib/glob.c (glob_in_dir): Don't use ISO C99 syntax.
50980
50981 2007-12-24  Bruno Haible  <bruno@clisp.org>
50982
50983         Make --enable-relocatable work with DESTDIR.
50984         * build-aux/install-reloc: Accept another argument 'destdir'. Use it
50985         to compute installdir from destprog.
50986         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): In INSTALL_PROGRAM_ENV,
50987         also set the RELOC_DESTDIR variable.
50988         Reported by Ð›ÐµÐ²Ð°ÑˆÐµÐ² Ð˜Ð²Ð°Ð½ <octagram@bluebottle.com>.
50989
50990 2007-12-24  Bruno Haible  <bruno@clisp.org>
50991
50992         Fix link error due to xalloc_die().
50993         * lib/progreloc.c: When NO_XMALLOC is defined, use areadlink instead
50994         of xreadlink.
50995         * lib/relocwrapper.c: Update comments.
50996         * build-aux/install-reloc: Remove xreadlink.c from file list.
50997         * modules/relocatable-prog-wrapper (Files): Remove xreadlink.h and
50998         xreadlink.c.
50999         Reported by Ð›ÐµÐ²Ð°ÑˆÐµÐ² Ð˜Ð²Ð°Ð½ <octagram@bluebottle.com>.
51000
51001 2007-12-24  Bruno Haible  <bruno@clisp.org>
51002
51003         Split setenv module into setenv and unsetenv. Get rid of setenv.h.
51004         * lib/setenv.h: Remove file.
51005         * lib/stdlib.in.h (setenv, unsetenv): New declarations, moved here from
51006         lib/setenv.h.
51007         * modules/setenv (Files): Remove lib/setenv.h, lib/unsetenv.c.
51008         (Depends-on): Add stdlib.
51009         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR. Don't invoke
51010         gl_FUNC_UNSETENV.
51011         (Include): Replace setenv.h with <stdlib.h>.
51012         * modules/unsetenv: New file.
51013         * lib/setenv.c: Include <stdlib.h> first, after alloca.h.
51014         * lib/unsetenv.c: Include <stdlib.h> first.
51015         * m4/setenv.m4 (gl_FUNC_SETENV, gl_FUNC_SETENV_SEPARATE): Require
51016         gl_STDLIB_H_DEFAULTS. Conditionally set HAVE_SETENV to 0.
51017         (gl_FUNC_UNSETENV): Require gl_STDLIB_H_DEFAULTS. Conditionally set
51018         HAVE_UNSETENV to 0. Set VOID_UNSETENV as an AC_SUBSTed variable.
51019         * modules/stdlib (Makefile.am): Substitute also GNULIB_SETENV,
51020         HAVE_SETENV, GNULIB_UNSETENV, HAVE_UNSETENV, VOID_UNSETENV.
51021         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_SETENV,
51022         HAVE_SETENV, GNULIB_UNSETENV, HAVE_UNSETENV, VOID_UNSETENV.
51023         * doc/functions/unsetenv.texi: Update.
51024         * modules/xsetenv (Depends-on): Add unsetenv.
51025         * modules/getdate (Depends-on): Likewise.
51026         * lib/xsetenv.h: Include <stdlib.h> instead of setenv.h.
51027         * lib/xsetenv.c: Don't include setenv.h.
51028         * lib/getdate.y: Likewise.
51029         * lib/relocwrapper.c: Likewise.
51030         * modules/relocatable-prog-wrapper (Files): Remove lib/setenv.h.
51031         (Depends-on): Add stdlib.
51032         * NEWS: Mention the changes.
51033         Reported by Ð›ÐµÐ²Ð°ÑˆÐµÐ² Ð˜Ð²Ð°Ð½ <octagram@bluebottle.com>.
51034
51035 2007-12-23  Bruno Haible  <bruno@clisp.org>
51036
51037         * lib/memmem.c (memmem): Use lowercase variable names. Tab
51038         indentation.
51039
51040 2007-12-23  Bruno Haible  <bruno@clisp.org>
51041
51042         * lib/c-strcasestr.c: Add more comments.
51043         * lib/c-strstr.c: Likewise.
51044         * lib/mbscasestr.c: Likewise.
51045         * lib/mbsstr.c: Likewise.
51046         * lib/strcasestr.c: Likewise.
51047         * lib/memmem.c: Likewise.
51048
51049 2007-12-23  Bruno Haible  <bruno@clisp.org>
51050
51051         * tests/test-memmem.c: Include <string.h> first.
51052
51053 2007-12-22  Bruno Haible  <bruno@clisp.org>
51054
51055         * gnulib-tool (func_create_testdir): Change $auxdir while generating
51056         the contents of $testsbase.
51057         Reported by Ralf Wildenhues.
51058
51059 2007-12-22  Bruno Haible  <bruno@clisp.org>
51060
51061         * gnulib-tool (func_emit_tests_Makefile_am): Replace local_ldadd with
51062         two variables local_ldadd_before, local_ldadd_last.
51063
51064 2007-12-20  Eric Blake  <ebb9@byu.net>
51065
51066         Work around circular library issue when cross-compiling.
51067         * lib/progname.c (set_program_name): Use strncmp, not memcmp, so
51068         that progname.o does not need to pull in rpl_memcmp.
51069
51070 2007-12-19  Eric Blake  <ebb9@byu.net>
51071
51072         Fix memmem to avoid O(n^2) worst-case complexity.
51073         * lib/memmem.c (knuth_morris_pratt): New function.
51074         (memmem): Use it if first few naive iterations fail.
51075         * m4/memmem.m4 (gl_FUNC_MEMMEM): Detect cygwin bug.
51076         * modules/memcmp (License): Set to LGPLv2+, not LGPL.
51077         * modules/memchr (License): Likewise.
51078         * modules/memmem (Depends-on): Add memcmp, memchr, stdbool, and
51079         malloca.
51080         * tests/test-memmem.c: Rewrite, borrowing ideas from
51081         test-mbsstr1.c; the old version wouldn't even compile!
51082         * modules/memmem-tests: New file.
51083         * lib/string.in.h (rpl_memmem): Add declaration.
51084         * modules/string (Makefile.am): Substitute REPLACE_MEMMEM.
51085         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Default for
51086         REPLACE_MEMMEM.
51087
51088 2007-12-18  Paul Eggert  <eggert@cs.ucla.edu>
51089
51090         Fix problem with _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H on VMS.
51091         * lib/stdint.in.h (_GL_JUST_INCLUDE_SYSTEM_INTTYPES_H): Define
51092         before any system include files, and undef after them all.  This
51093         should fix a problem on VMS reported by John E. Malmberg in
51094         <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00118.html>.
51095
51096 2007-12-17  Eric Blake  <ebb9@byu.net>
51097
51098         Revert addition of verify, for BSD/OS.
51099         * lib/fseeko.c [!HAVE_FSEEKO]: Allow off_t > long, even though it
51100         can't handle large files, for the sake of obsolete platforms.
51101         * modules/fseeko (Depends-on): Remove verify.
51102         * doc/functions/fseeko.texi (fseeko): Document BSD/OS limitation.
51103         * doc/functions/ftello.texi (ftello): Likewise.
51104         * doc/functions/fgetpos.texi (fgetpos): Likewise.
51105         Reported by Larry Jones.
51106
51107 2007-12-17  Petr Salinger  <Petr.Salinger@seznam.cz>
51108
51109         getcwd.c: Use a more readable witness: HAVE_OPENAT_SUPPORT
51110         * lib/getcwd.c: Define and use HAVE_OPENAT_SUPPORT, in place of AT_FDCWD.
51111
51112 2007-12-17  Jim Meyering  <meyering@redhat.com>
51113
51114         Port to GNU/kFreeBSD - FreeBSD kernel + GNU libc,
51115         which has no openat syscall, yet <fcntl.h> does define AT_FDCWD.
51116         * lib/getcwd.c: Undef AT_FDCWD if there is no openat function.
51117         * modules/getcwd (Depends-on): Add openat.
51118         Reported by Petr Salinger.
51119
51120 2007-12-17  Bruno Haible  <bruno@clisp.org>
51121
51122         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Use GL_NOCRASH to
51123         avoid a segmentation fault of the configure test on x86_64 systems.
51124
51125 2007-12-15  Jim Meyering  <meyering@redhat.com>
51126
51127         * build-aux/gnupload (GPG): Don't hard-code absolute name of gpg binary.
51128
51129 2007-12-13  Eric Blake  <ebb9@byu.net>
51130
51131         Another fseek test.
51132         * tests/test-fseek.c (main): Also test ungetc handling.
51133         * tests/test-fseeko.c (main): Likewise.
51134         * modules/fseeko (Depends-on): Add verify.
51135         * lib/fseeko.c [!HAVE_FSEEKO]: Verify that off_t is not too
51136         large.
51137         Reported by Larry Jones.
51138
51139         Fix fseeko on mingw.
51140         * lib/fseeko.c (rpl_fseeko) [_IOERR]: Reset EOF flag on successful
51141         seek.
51142
51143         Beef up fseek tests.
51144         * tests/test-fseek.c (main): Also test eof handling.
51145         * tests/test-fseeko.c (main): Likewise.
51146         Reported by Larry Jones.
51147
51148 2007-12-13  Larry Jones  <lawrence.jones@siemens.com>  (tiny change)
51149
51150         Fix fseeko on BSD-based platforms.
51151         * lib/fseeko.c (rpl_fseeko) [__sferror]: Reset EOF flag on
51152         successful seek.
51153
51154 2007-12-12  Eric Blake  <ebb9@byu.net>
51155
51156         Allow circular dependency of separate libtests.a
51157         * gnulib-tool (func_emit_tests_Makefile_am): Add AM_LIBTOOLFLAGS
51158         when use_libtests.
51159
51160 2007-12-11  Eric Blake  <ebb9@byu.net>
51161
51162         Fix bug with -0.0L in previous patch.
51163         * lib/isnan.c (rpl_isnanl): Make robust to -0.0L and pad bits.
51164         * tests/test-isnan.c (main): Also test on zeroes.
51165         * tests/test-isnanf.c (main): Likewise.
51166         * tests/test-isnanl.h (main): Likewise.
51167
51168         Detect pseudo-denormals on x86 even when cross-compiling.
51169         * lib/isnan.c (rpl_isnanl) [!KNOWN_EXPBIT0_LOCATION
51170         && USE_LONG_DOUBLE && x86]: Add one more check to filter out
51171         invalid bit patterns that happen to satisfy ==.
51172
51173         Avoid link failures with separate libtests.a.
51174         * gnulib-tool (func_emit_tests_Makefile_am): Also list local_ldadd
51175         last, to satisfy circular dependencies.
51176
51177 2007-12-11  Eric Blake  <ebb9@byu.net>
51178         and Bruno Haible  <bruno@clisp.org>
51179
51180         Fix OpenBSD 4.0 <float.h> handling of long double.
51181         * m4/float_h.m4 (gl_FLOAT_H): Also claim OpenBSD is broken.
51182         * lib/float.in.h [__OpenBSD__]: Add fixes for OpenBSD.
51183         * doc/headers/float.texi (float.h): Document OpenBSD bug.
51184
51185 2007-12-11  Jim Meyering  <meyering@redhat.com>
51186
51187         * users.txt: Add libvirt.
51188
51189         Support versions of autoconf prior to 2.59c.
51190         * gnulib-tool (func_emit_initmacro_done): Define m4_foreach_w
51191         if it is not already defined.
51192
51193 2007-12-09  Bruno Haible  <bruno@clisp.org>
51194
51195         Let 'gnulib-tool --import' collect sources needed for the tests in
51196         tests/ rather than in lib/.
51197         * gnulib-tool (func_emit_tests_Makefile_am): Accept use_libtests
51198         argument. If true, add rules to generate libtests.a, and put libtests.a
51199         into $(LDADD). Consider source files in subdirectories and set
51200         uses_subdirs.
51201         (func_emit_initmacro_start, func_emit_initmacro_end,
51202         func_emit_initmacro_done): Pass all arguments explicitly.
51203         (func_import): Determine two module lists main_modules,
51204         testsrelated_modules. Determine use_libtests. Determine two variables
51205         sed_transform_main_lib_file, sed_transform_testsrelated_lib_file
51206         instead of just sed_transform_lib_file. Determine two variables
51207         main_files and testsrelated_files. Compute 'files' as the union of
51208         both. Adjust sed_rewrite_old_files, sed_rewrite_new_files,
51209         func_add_or_update. In the generated gnulib-comp.m4, collect the
51210         object files for tests/ in different variables than those for lib/.
51211         Substitute LIBTESTS_LIBDEPS.
51212         (func_create_testdir): Combine the uses_subdirs results from
51213         func_emit_lib_Makefile_am and from func_emit_tests_Makefile_am.
51214
51215 2007-12-09  Bruno Haible  <bruno@clisp.org>
51216
51217         * gnulib-tool (func_emit_tests_Makefile_am): Expand references to
51218         the build-aux directory.
51219
51220 2007-12-09  Bruno Haible  <bruno@clisp.org>
51221
51222         * gnulib-tool (func_emit_tests_Makefile_am): Remove redundant code
51223         introduced on 2006-09-09.
51224
51225 2007-12-07  Jim Meyering  <meyering@redhat.com>
51226
51227         Let these macros work also with autoconf-2.59.
51228         * m4/getline.m4 (gl_FUNC_GETLINE): Require only autoconf-2.59.  2.60
51229         is not needed, since gnulib now permits use of AC_CHECK_DECLS_ONCE.
51230         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
51231
51232 2007-12-06  Jim Meyering  <meyering@redhat.com>
51233
51234         Avoid a configure-time syntax error in gl_FUNC_ACL.
51235         * m4/acl.m4 (gl_FUNC_ACL): Be careful to check for the acl_trivial
51236         function in each branch, before testing the cache variable.
51237
51238 2007-12-04  Eric Blake  <ebb9@byu.net>
51239
51240         Make scripts executable.
51241         * build-aux/config.guess: Add execute permissions.
51242         * build-aux/config.sub: Likewise.
51243         * build-aux/gendocs.sh: Likewise.
51244
51245         Fix frexp on mingw.
51246         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Detect mingw bug when
51247         cross-compiling.
51248         * doc/functions/frexp.texi (frexp): Document the bug.
51249
51250         Make cygwin fseeko check more reliable.
51251         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET) [__CYGWIN__]: Use cygwin
51252         version numbers, rather than unrelated feature check.
51253         * doc/functions/fseeko.texi (fseeko): Tweak failure report.
51254         * doc/functions/ftello.texi (ftello): Likewise.
51255         Reported by Bruno Haible.
51256
51257         * m4/strerror.m4: Bump version number.
51258
51259 2007-12-03  Bruno Haible  <bruno@clisp.org>
51260
51261         * doc/functions/mprotect.texi: Mention the mingw problem.
51262
51263 2007-12-03  Eric Blake  <ebb9@byu.net>
51264
51265         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Ensure
51266         REPLACE_STRERROR is initialized before this macro.
51267
51268 2007-12-03  Paul Eggert  <eggert@cs.ucla.edu>
51269
51270         Add support for Solaris 10 ACLs.  Also, ACLs are Gnulib, not Autoconf.
51271         * modules/acl (configure.ac): Rename AC_FUNC_ACL to gl_FUNC_ACL.
51272         * m4/acl.m4 (gl_FUNC_ACL): Renamed from AC_FUNC_ACL.  On Solaris,
51273         put -lsec in even for programs other than 'ls'.  This fixes a problem
51274         for gettext reported by Bruno Haible in
51275         <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00007.html>.
51276         * lib/acl.c (copy_acl, qset_acl) [USE_ACL && defined ACL_NO_TRIVIAL]:
51277         Add support for Solaris 10.  This isn't efficient, but should get the
51278         job done for now.
51279
51280 2007-12-03  James Youngman  <jay@gnu.org>
51281
51282         * doc/regexprops-generic.texi: change "an close-group" to "a
51283         close-group" and "illegal" to "not allowed".
51284
51285 2007-11-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
51286
51287         * lib/unictype/pr_byname.c: Include unictype/pr_byname.h instead of
51288         pr_byname.h. Needed for the rare case when the maintainer has done
51289         "make maintainer-clean" in the source directory and then attempts a
51290         build outside the source directory.
51291         * lib/unictype/scripts.c: Include unictype/scripts_byname.h instead of
51292         scripts_byname.h.
51293
51294 2007-12-02  Martin Lambers <marlam@marlam.de>
51295             Bruno Haible  <bruno@clisp.org>
51296
51297         * lib/getpagesize.h: Remove file.
51298         * lib/unistd.in.h: Include declaration of getpagesize here.
51299         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Renamed from gl_GETPAGESIZE.
51300         Invoke gl_UNISTD_H_DEFAULTS. Set HAVE_GETPAGESIZE, HAVE_OS_H,
51301         HAVE_SYS_PARAM_H.
51302         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETPAGESIZE,
51303         HAVE_GETPAGESIZE, HAVE_OS_H, HAVE_SYS_PARAM_H.
51304         * modules/getpagesize (Files): Remove lib/getpagesize.h.
51305         (Depends-on): Add unistd.
51306         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
51307         (Include): Use <unistd.h> instead of getpagesize.h.
51308         * modules/unistd (Makefile.am): Substitute also GNULIB_GETPAGESIZE,
51309         HAVE_GETPAGESIZE, HAVE_OS_H, HAVE_SYS_PARAM_H.
51310         * m4/pagealign_alloc.m4 (gl_PREREQ_PAGEALIGN_ALLOC): Remove
51311         gl_GETPAGESIZE invocation, already handled by module dependency.
51312         * lib/pagealign_alloc.c: Don't include getpagesize.h.
51313
51314 2007-12-02  Bruno Haible  <bruno@clisp.org>
51315
51316         * modules/strings-tests: New file.
51317         * tests/test-strings.c: New file.
51318
51319         Move declarations of str{,n}casecmp from <string.h> to <strings.h>.
51320         * lib/strings.in.h: New file.
51321         * lib/string.in.h (strcasecmp, strncasecmp): Remove declarations.
51322         * m4/strings_h.m4: New file.
51323         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Remove initialization
51324         of HAVE_STRCASECMP, HAVE_DECL_STRNCASECMP.
51325         * modules/strings: New file.
51326         * modules/string (Makefile.am): Update.
51327         * modules/strcase (Include): Mention <strings.h>, not <string.h>.
51328         Reported by Karl Berry.
51329
51330 2007-12-01  Eric Blake  <ebb9@byu.net>
51331
51332         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET) [__CYGWIN__]: Rewrite to
51333         accomodate fix in cygwin 1.5.25.
51334
51335 2007-12-01  Jim Meyering  <meyering@redhat.com>
51336
51337         Fix a bug that inhibited much of the utf8-optimization in regcomp.c.
51338         * lib/regcomp.c (optimize_utf8): Fix a typo, s/idx/ctx_type/,
51339         that would inhibit utf8-optimization of a regexp containing line-
51340         or buffer-anchors, e.g., `^', `$'.
51341
51342 2007-11-30  Bruno Haible  <bruno@clisp.org>
51343
51344         * lib/lock.h (gl_recursive_lock_init) [PTHREAD &&
51345         PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: Call
51346         glthread_recursive_lock_init.
51347         * lib/lock.c (glthread_recursive_lock_init)
51348         [PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: New function.
51349         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
51350
51351 2007-11-28  Paul Eggert  <eggert@cs.ucla.edu>
51352
51353         New function qset_acl, like set_acl but with syscall semantics.
51354         * lib/acl.h (qset_acl): New decl.
51355         * lib/acl.c (qset_acl): New function.
51356         (set_acl): Use new function.  Use more-consistent diagnostics.
51357
51358 2007-11-28  Jim Meyering  <meyering@redhat.com>
51359
51360         * modules/physmem (License): Change from GPL to LGPLv2+.
51361
51362 2007-11-26  Bruno Haible  <bruno@clisp.org>
51363
51364         * lib/vasnprintf.c (decode_long_double): Don't abort if the
51365         'long double' type has excess precision.
51366         Reported by Jim Meyering in
51367         <http://lists.gnu.org/archive/html/bug-gnulib/2007-11/msg00120.html>.
51368
51369 2007-11-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
51370
51371         * doc/fdl.texi, doc/gpl-3.0.texi, doc/lgpl-3.0.texi:
51372         Sync from <http://gnu.org/licenses>.
51373         * modules/agpl-3.0, doc/agpl-3.0.texi: New module,
51374         with license text from same location.
51375         * doc/maintain.texi, doc/standards.texi:  Sync from
51376         <http://savannah.gnu.org/projects/gnustandards>.
51377
51378 2007-11-22  OndÅ™ej Vašík  <ovasik@redhat.com>
51379         and Jim Meyering  <meyering@redhat.com>
51380
51381         Adjust getdate' grammar to accept a slightly more regular language.
51382         E.g., accept "YYYYMMDD +N days" as well as "YYYYMMDD N days".
51383         Before, the former was rejected.
51384         * lib/getdate.y (digits_to_date_time): New function, factored
51385         out of ...
51386         (number): ...here.  Just call digits_to_date_time.
51387         (hybrid): New non-terminal to handle an <unsigned number,
51388         signed relative offset> sequence consistently.
51389
51390 2007-11-18  Jim Meyering  <meyering@redhat.com>
51391
51392         Pull my changes from coreutils:
51393         bootstrap: fix typo to enable use of $gnulib_tool_option_extras.
51394         * build-aux/bootstrap (gnulib_tool_options): Add a space before the
51395         use of $gnulib_tool_option_extras, so that it's separated from the
51396         preceding argument.
51397
51398         Fix bootstrap failure to handle files like lib/uniwidth/cjk.h.
51399         * build-aux/bootstrap (cp_mark_as_generated): Create any required
51400         parent destination directories before copying a file into place.
51401
51402 2007-11-18  Sergey Poznyakoff  <gray@gnu.org.ua>
51403
51404         bootstrap: work also with 4-argument variant of AC_INIT
51405         * build-aux/bootstrap (gnulib_extra_files): Adjust sed command.
51406
51407 2007-11-16  Paul Eggert  <eggert@cs.ucla.edu>
51408
51409         Port test-getaddrinfo to Solaris.
51410         Problem reported by Bruno Haible in
51411         <http://lists.gnu.org/archive/html/bug-gnulib/2007-03/msg00171.html>.
51412         * tests/test-getaddrinfo.c (simple): Add a comment asking for an
51413         explanation of setting 'hints'.
51414         Don't reject an implementation merely because it returns EAI_SERVICE.
51415         (EAI_SERVICE): Define to 0 if not defined.
51416
51417 2007-11-15  Paul Eggert  <eggert@cs.ucla.edu>
51418
51419         The license of gnu-make and posix-shell is now "GPLed build tool".
51420         * modules/gnu-make (License): Likewise.
51421         * modules/posix-shell (License): Likewise.
51422
51423         New module posix-shell, for determining a POSIX shell
51424         or perhaps something that is close enough to a POSIX shell.
51425         * m4/posix-shell.m4: New file.
51426         * modules/posix-shell: New file.
51427
51428         * MODULES.html.sh: Mention new module.
51429
51430         New module gnu-make, for determining whether we're using GNU Make.
51431         * m4/gnu-make.m4: New file.
51432         * modules/gnu-make: New file.
51433         * MODULES.html.sh: Mention new module.
51434
51435 2007-11-14  Jim Meyering  <meyering@redhat.com>
51436
51437         Define a sometimes-link-required function using ARGMATCH_DIE_DECL.
51438         * tests/test-argmatch.c (ARGMATCH_DIE_DECL): When defined,
51439         use this macro to create a function _definition_.
51440         Remove useless "#undef ARGMATCH_DIE".
51441
51442 2007-11-14  Bruno Haible  <bruno@clisp.org>
51443
51444         * lib/config.charset: Update for OpenBSD 4.1.
51445         Reported and helped by Ben Pfaff <blp@cs.stanford.edu>.
51446
51447 2007-11-12  Paul Eggert  <eggert@cs.ucla.edu>
51448
51449         Document 64-bit #if problems in stdint.texi.
51450         * doc/headers/stdint.texi (stdint.h): Mention problems with
51451         64-bit-#if, and how to work around them.
51452
51453         Don't insist on 'long long int' support in the preprocessor.  It
51454         breaks too many things.  For example, PRIdMAX still uses a 'long
51455         long int' format with the latest Sun compiler, even though
51456         HAVE_LONG_LONG_INT isn't defined due to that compiler's
51457         preprocessor problem.  This causes the latest coreutils to dump
51458         core on Solaris 10 sparc with the Sun C compiler.
51459         Instead, fix the 2007-10-16 problem in a different way, by evaluating
51460         the troublesome expressions at configure-time, not at #if-time.
51461         * m4/longlong.m4 (_AC_TYPE_LONG_LONG_SNIPPET): Don't test the
51462         preprocessor.
51463         * m4/inttypes.m4 (gl_INTTYPES_H): Move the #if checks into
51464         compile-time C checks, done at 'configure'-time.
51465         (gl_INTTYPES_CHECK_LONG_LONG_INT_CONDITION): New macro.
51466         * modules/inttypes (Makefile): Substitute the new symbols that
51467         gl_INTTYPES_H now generates.
51468         * lib/inttypes.in.h: Don't use constants wider than 'long' in #if.
51469
51470 2007-11-12  Bruno Haible  <bruno@clisp.org>
51471
51472         Tests for Unicode character classification functions.
51473
51474         * modules/unictype/bidicategory-byname-tests: New file.
51475         * modules/unictype/bidicategory-name-tests: New file.
51476         * modules/unictype/bidicategory-of-tests: New file.
51477         * modules/unictype/bidicategory-test-tests: New file.
51478         * modules/unictype/block-list-tests: New file.
51479         * modules/unictype/block-of-tests: New file.
51480         * modules/unictype/block-test-tests: New file.
51481         * modules/unictype/category-C-tests: New file.
51482         * modules/unictype/category-Cc-tests: New file.
51483         * modules/unictype/category-Cf-tests: New file.
51484         * modules/unictype/category-Cn-tests: New file.
51485         * modules/unictype/category-Co-tests: New file.
51486         * modules/unictype/category-Cs-tests: New file.
51487         * modules/unictype/category-L-tests: New file.
51488         * modules/unictype/category-Ll-tests: New file.
51489         * modules/unictype/category-Lm-tests: New file.
51490         * modules/unictype/category-Lo-tests: New file.
51491         * modules/unictype/category-Lt-tests: New file.
51492         * modules/unictype/category-Lu-tests: New file.
51493         * modules/unictype/category-M-tests: New file.
51494         * modules/unictype/category-Mc-tests: New file.
51495         * modules/unictype/category-Me-tests: New file.
51496         * modules/unictype/category-Mn-tests: New file.
51497         * modules/unictype/category-N-tests: New file.
51498         * modules/unictype/category-Nd-tests: New file.
51499         * modules/unictype/category-Nl-tests: New file.
51500         * modules/unictype/category-No-tests: New file.
51501         * modules/unictype/category-P-tests: New file.
51502         * modules/unictype/category-Pc-tests: New file.
51503         * modules/unictype/category-Pd-tests: New file.
51504         * modules/unictype/category-Pe-tests: New file.
51505         * modules/unictype/category-Pf-tests: New file.
51506         * modules/unictype/category-Pi-tests: New file.
51507         * modules/unictype/category-Po-tests: New file.
51508         * modules/unictype/category-Ps-tests: New file.
51509         * modules/unictype/category-S-tests: New file.
51510         * modules/unictype/category-Sc-tests: New file.
51511         * modules/unictype/category-Sk-tests: New file.
51512         * modules/unictype/category-Sm-tests: New file.
51513         * modules/unictype/category-So-tests: New file.
51514         * modules/unictype/category-Z-tests: New file.
51515         * modules/unictype/category-Zl-tests: New file.
51516         * modules/unictype/category-Zp-tests: New file.
51517         * modules/unictype/category-Zs-tests: New file.
51518         * modules/unictype/category-and-not-tests: New file.
51519         * modules/unictype/category-and-tests: New file.
51520         * modules/unictype/category-byname-tests: New file.
51521         * modules/unictype/category-name-tests: New file.
51522         * modules/unictype/category-none-tests: New file.
51523         * modules/unictype/category-of-tests: New file.
51524         * modules/unictype/category-or-tests: New file.
51525         * modules/unictype/category-test-withtable-tests: New file.
51526         * modules/unictype/combining-class-tests: New file.
51527         * modules/unictype/ctype-alnum-tests: New file.
51528         * modules/unictype/ctype-alpha-tests: New file.
51529         * modules/unictype/ctype-blank-tests: New file.
51530         * modules/unictype/ctype-cntrl-tests: New file.
51531         * modules/unictype/ctype-digit-tests: New file.
51532         * modules/unictype/ctype-graph-tests: New file.
51533         * modules/unictype/ctype-lower-tests: New file.
51534         * modules/unictype/ctype-print-tests: New file.
51535         * modules/unictype/ctype-punct-tests: New file.
51536         * modules/unictype/ctype-space-tests: New file.
51537         * modules/unictype/ctype-upper-tests: New file.
51538         * modules/unictype/ctype-xdigit-tests: New file.
51539         * modules/unictype/decimal-digit-tests: New file.
51540         * modules/unictype/digit-tests: New file.
51541         * modules/unictype/mirror-tests: New file.
51542         * modules/unictype/numeric-tests: New file.
51543         * modules/unictype/property-alphabetic-tests: New file.
51544         * modules/unictype/property-ascii-hex-digit-tests: New file.
51545         * modules/unictype/property-bidi-arabic-digit-tests: New file.
51546         * modules/unictype/property-bidi-arabic-right-to-left-tests: New file.
51547         * modules/unictype/property-bidi-block-separator-tests: New file.
51548         * modules/unictype/property-bidi-boundary-neutral-tests: New file.
51549         * modules/unictype/property-bidi-common-separator-tests: New file.
51550         * modules/unictype/property-bidi-control-tests: New file.
51551         * modules/unictype/property-bidi-embedding-or-override-tests: New file.
51552         * modules/unictype/property-bidi-eur-num-separator-tests: New file.
51553         * modules/unictype/property-bidi-eur-num-terminator-tests: New file.
51554         * modules/unictype/property-bidi-european-digit-tests: New file.
51555         * modules/unictype/property-bidi-hebrew-right-to-left-tests: New file.
51556         * modules/unictype/property-bidi-left-to-right-tests: New file.
51557         * modules/unictype/property-bidi-non-spacing-mark-tests: New file.
51558         * modules/unictype/property-bidi-other-neutral-tests: New file.
51559         * modules/unictype/property-bidi-pdf-tests: New file.
51560         * modules/unictype/property-bidi-segment-separator-tests: New file.
51561         * modules/unictype/property-bidi-whitespace-tests: New file.
51562         * modules/unictype/property-byname-tests: New file.
51563         * modules/unictype/property-combining-tests: New file.
51564         * modules/unictype/property-composite-tests: New file.
51565         * modules/unictype/property-currency-symbol-tests: New file.
51566         * modules/unictype/property-dash-tests: New file.
51567         * modules/unictype/property-decimal-digit-tests: New file.
51568         * modules/unictype/property-default-ignorable-code-point-tests: New file.
51569         * modules/unictype/property-deprecated-tests: New file.
51570         * modules/unictype/property-diacritic-tests: New file.
51571         * modules/unictype/property-extender-tests: New file.
51572         * modules/unictype/property-format-control-tests: New file.
51573         * modules/unictype/property-grapheme-base-tests: New file.
51574         * modules/unictype/property-grapheme-extend-tests: New file.
51575         * modules/unictype/property-grapheme-link-tests: New file.
51576         * modules/unictype/property-hex-digit-tests: New file.
51577         * modules/unictype/property-hyphen-tests: New file.
51578         * modules/unictype/property-id-continue-tests: New file.
51579         * modules/unictype/property-id-start-tests: New file.
51580         * modules/unictype/property-ideographic-tests: New file.
51581         * modules/unictype/property-ids-binary-operator-tests: New file.
51582         * modules/unictype/property-ids-trinary-operator-tests: New file.
51583         * modules/unictype/property-ignorable-control-tests: New file.
51584         * modules/unictype/property-iso-control-tests: New file.
51585         * modules/unictype/property-join-control-tests: New file.
51586         * modules/unictype/property-left-of-pair-tests: New file.
51587         * modules/unictype/property-line-separator-tests: New file.
51588         * modules/unictype/property-logical-order-exception-tests: New file.
51589         * modules/unictype/property-lowercase-tests: New file.
51590         * modules/unictype/property-math-tests: New file.
51591         * modules/unictype/property-non-break-tests: New file.
51592         * modules/unictype/property-not-a-character-tests: New file.
51593         * modules/unictype/property-numeric-tests: New file.
51594         * modules/unictype/property-other-alphabetic-tests: New file.
51595         * modules/unictype/property-other-default-ignorable-code-point-tests: New file.
51596         * modules/unictype/property-other-grapheme-extend-tests: New file.
51597         * modules/unictype/property-other-id-continue-tests: New file.
51598         * modules/unictype/property-other-id-start-tests: New file.
51599         * modules/unictype/property-other-lowercase-tests: New file.
51600         * modules/unictype/property-other-math-tests: New file.
51601         * modules/unictype/property-other-uppercase-tests: New file.
51602         * modules/unictype/property-paired-punctuation-tests: New file.
51603         * modules/unictype/property-paragraph-separator-tests: New file.
51604         * modules/unictype/property-pattern-syntax-tests: New file.
51605         * modules/unictype/property-pattern-white-space-tests: New file.
51606         * modules/unictype/property-private-use-tests: New file.
51607         * modules/unictype/property-punctuation-tests: New file.
51608         * modules/unictype/property-quotation-mark-tests: New file.
51609         * modules/unictype/property-radical-tests: New file.
51610         * modules/unictype/property-sentence-terminal-tests: New file.
51611         * modules/unictype/property-soft-dotted-tests: New file.
51612         * modules/unictype/property-space-tests: New file.
51613         * modules/unictype/property-terminal-punctuation-tests: New file.
51614         * modules/unictype/property-test-tests: New file.
51615         * modules/unictype/property-titlecase-tests: New file.
51616         * modules/unictype/property-unassigned-code-value-tests: New file.
51617         * modules/unictype/property-unified-ideograph-tests: New file.
51618         * modules/unictype/property-uppercase-tests: New file.
51619         * modules/unictype/property-variation-selector-tests: New file.
51620         * modules/unictype/property-white-space-tests: New file.
51621         * modules/unictype/property-xid-continue-tests: New file.
51622         * modules/unictype/property-xid-start-tests: New file.
51623         * modules/unictype/property-zero-width-tests: New file.
51624         * modules/unictype/scripts-tests: New file.
51625         * modules/unictype/syntax-c-ident-tests: New file.
51626         * modules/unictype/syntax-c-whitespace-tests: New file.
51627         * modules/unictype/syntax-java-ident-tests: New file.
51628         * modules/unictype/syntax-java-whitespace-tests: New file.
51629         * tests/unictype/test-bidi_byname.c: New file.
51630         * tests/unictype/test-bidi_name.c: New file.
51631         * tests/unictype/test-bidi_of.c: New file.
51632         * tests/unictype/test-bidi_test.c: New file.
51633         * tests/unictype/test-block_list.c: New file.
51634         * tests/unictype/test-block_of.c: New file.
51635         * tests/unictype/test-block_test.c: New file.
51636         * tests/unictype/test-categ_and.c: New file.
51637         * tests/unictype/test-categ_and_not.c: New file.
51638         * tests/unictype/test-categ_byname.c: New file.
51639         * tests/unictype/test-categ_name.c: New file.
51640         * tests/unictype/test-categ_none.c: New file.
51641         * tests/unictype/test-categ_of.c: New file.
51642         * tests/unictype/test-categ_or.c: New file.
51643         * tests/unictype/test-categ_test_withtable.c: New file.
51644         * tests/unictype/test-combining.c: New file.
51645         * tests/unictype/test-decdigit.c: New file.
51646         * tests/unictype/test-digit.c: New file.
51647         * tests/unictype/test-mirror.c: New file.
51648         * tests/unictype/test-numeric.c: New file.
51649         * tests/unictype/test-pr_byname.c: New file.
51650         * tests/unictype/test-pr_test.c: New file.
51651         * tests/unictype/test-predicate-part1.h: New file.
51652         * tests/unictype/test-predicate-part2.h: New file.
51653         * tests/unictype/test-scripts.c: New file.
51654         * tests/unictype/test-sy_c_ident.c: New file.
51655         * tests/unictype/test-sy_java_ident.c: New file.
51656
51657         * tests/unictype/test-categ_C.c: New file, generated by gen-ctype.c
51658         for Unicode 5.0.0.
51659         * tests/unictype/test-categ_Cc.c: Likewise.
51660         * tests/unictype/test-categ_Cf.c: Likewise.
51661         * tests/unictype/test-categ_Cn.c: Likewise.
51662         * tests/unictype/test-categ_Co.c: Likewise.
51663         * tests/unictype/test-categ_Cs.c: Likewise.
51664         * tests/unictype/test-categ_L.c: Likewise.
51665         * tests/unictype/test-categ_Ll.c: Likewise.
51666         * tests/unictype/test-categ_Lm.c: Likewise.
51667         * tests/unictype/test-categ_Lo.c: Likewise.
51668         * tests/unictype/test-categ_Lt.c: Likewise.
51669         * tests/unictype/test-categ_Lu.c: Likewise.
51670         * tests/unictype/test-categ_M.c: Likewise.
51671         * tests/unictype/test-categ_Mc.c: Likewise.
51672         * tests/unictype/test-categ_Me.c: Likewise.
51673         * tests/unictype/test-categ_Mn.c: Likewise.
51674         * tests/unictype/test-categ_N.c: Likewise.
51675         * tests/unictype/test-categ_Nd.c: Likewise.
51676         * tests/unictype/test-categ_Nl.c: Likewise.
51677         * tests/unictype/test-categ_No.c: Likewise.
51678         * tests/unictype/test-categ_P.c: Likewise.
51679         * tests/unictype/test-categ_Pc.c: Likewise.
51680         * tests/unictype/test-categ_Pd.c: Likewise.
51681         * tests/unictype/test-categ_Pe.c: Likewise.
51682         * tests/unictype/test-categ_Pf.c: Likewise.
51683         * tests/unictype/test-categ_Pi.c: Likewise.
51684         * tests/unictype/test-categ_Po.c: Likewise.
51685         * tests/unictype/test-categ_Ps.c: Likewise.
51686         * tests/unictype/test-categ_S.c: Likewise.
51687         * tests/unictype/test-categ_Sc.c: Likewise.
51688         * tests/unictype/test-categ_Sk.c: Likewise.
51689         * tests/unictype/test-categ_Sm.c: Likewise.
51690         * tests/unictype/test-categ_So.c: Likewise.
51691         * tests/unictype/test-categ_Z.c: Likewise.
51692         * tests/unictype/test-categ_Zl.c: Likewise.
51693         * tests/unictype/test-categ_Zp.c: Likewise.
51694         * tests/unictype/test-categ_Zs.c: Likewise.
51695         * tests/unictype/test-ctype_alnum.c: Likewise.
51696         * tests/unictype/test-ctype_alpha.c: Likewise.
51697         * tests/unictype/test-ctype_blank.c: Likewise.
51698         * tests/unictype/test-ctype_cntrl.c: Likewise.
51699         * tests/unictype/test-ctype_digit.c: Likewise.
51700         * tests/unictype/test-ctype_graph.c: Likewise.
51701         * tests/unictype/test-ctype_lower.c: Likewise.
51702         * tests/unictype/test-ctype_print.c: Likewise.
51703         * tests/unictype/test-ctype_punct.c: Likewise.
51704         * tests/unictype/test-ctype_space.c: Likewise.
51705         * tests/unictype/test-ctype_upper.c: Likewise.
51706         * tests/unictype/test-ctype_xdigit.c: Likewise.
51707         * tests/unictype/test-decdigit.h: Likewise.
51708         * tests/unictype/test-digit.h: Likewise.
51709         * tests/unictype/test-numeric.h: Likewise.
51710         * tests/unictype/test-pr_alphabetic.c: Likewise.
51711         * tests/unictype/test-pr_ascii_hex_digit.c: Likewise.
51712         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
51713         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Likewise.
51714         * tests/unictype/test-pr_bidi_block_separator.c: Likewise.
51715         * tests/unictype/test-pr_bidi_boundary_neutral.c: Likewise.
51716         * tests/unictype/test-pr_bidi_common_separator.c: Likewise.
51717         * tests/unictype/test-pr_bidi_control.c: Likewise.
51718         * tests/unictype/test-pr_bidi_embedding_or_override.c: Likewise.
51719         * tests/unictype/test-pr_bidi_eur_num_separator.c: Likewise.
51720         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
51721         * tests/unictype/test-pr_bidi_european_digit.c: Likewise.
51722         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
51723         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
51724         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
51725         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
51726         * tests/unictype/test-pr_bidi_pdf.c: Likewise.
51727         * tests/unictype/test-pr_bidi_segment_separator.c: Likewise.
51728         * tests/unictype/test-pr_bidi_whitespace.c: Likewise.
51729         * tests/unictype/test-pr_combining.c: Likewise.
51730         * tests/unictype/test-pr_composite.c: Likewise.
51731         * tests/unictype/test-pr_currency_symbol.c: Likewise.
51732         * tests/unictype/test-pr_dash.c: Likewise.
51733         * tests/unictype/test-pr_decimal_digit.c: Likewise.
51734         * tests/unictype/test-pr_default_ignorable_code_point.c: Likewise.
51735         * tests/unictype/test-pr_deprecated.c: Likewise.
51736         * tests/unictype/test-pr_diacritic.c: Likewise.
51737         * tests/unictype/test-pr_extender.c: Likewise.
51738         * tests/unictype/test-pr_format_control.c: Likewise.
51739         * tests/unictype/test-pr_grapheme_base.c: Likewise.
51740         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
51741         * tests/unictype/test-pr_grapheme_link.c: Likewise.
51742         * tests/unictype/test-pr_hex_digit.c: Likewise.
51743         * tests/unictype/test-pr_hyphen.c: Likewise.
51744         * tests/unictype/test-pr_id_continue.c: Likewise.
51745         * tests/unictype/test-pr_id_start.c: Likewise.
51746         * tests/unictype/test-pr_ideographic.c: Likewise.
51747         * tests/unictype/test-pr_ids_binary_operator.c: Likewise.
51748         * tests/unictype/test-pr_ids_trinary_operator.c: Likewise.
51749         * tests/unictype/test-pr_ignorable_control.c: Likewise.
51750         * tests/unictype/test-pr_iso_control.c: Likewise.
51751         * tests/unictype/test-pr_join_control.c: Likewise.
51752         * tests/unictype/test-pr_left_of_pair.c: Likewise.
51753         * tests/unictype/test-pr_line_separator.c: Likewise.
51754         * tests/unictype/test-pr_logical_order_exception.c: Likewise.
51755         * tests/unictype/test-pr_lowercase.c: Likewise.
51756         * tests/unictype/test-pr_math.c: Likewise.
51757         * tests/unictype/test-pr_non_break.c: Likewise.
51758         * tests/unictype/test-pr_not_a_character.c: Likewise.
51759         * tests/unictype/test-pr_numeric.c: Likewise.
51760         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
51761         * tests/unictype/test-pr_other_default_ignorable_code_point.c: Likewise.
51762         * tests/unictype/test-pr_other_grapheme_extend.c: Likewise.
51763         * tests/unictype/test-pr_other_id_continue.c: Likewise.
51764         * tests/unictype/test-pr_other_id_start.c: Likewise.
51765         * tests/unictype/test-pr_other_lowercase.c: Likewise.
51766         * tests/unictype/test-pr_other_math.c: Likewise.
51767         * tests/unictype/test-pr_other_uppercase.c: Likewise.
51768         * tests/unictype/test-pr_paired_punctuation.c: Likewise.
51769         * tests/unictype/test-pr_paragraph_separator.c: Likewise.
51770         * tests/unictype/test-pr_pattern_syntax.c: Likewise.
51771         * tests/unictype/test-pr_pattern_white_space.c: Likewise.
51772         * tests/unictype/test-pr_private_use.c: Likewise.
51773         * tests/unictype/test-pr_punctuation.c: Likewise.
51774         * tests/unictype/test-pr_quotation_mark.c: Likewise.
51775         * tests/unictype/test-pr_radical.c: Likewise.
51776         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
51777         * tests/unictype/test-pr_soft_dotted.c: Likewise.
51778         * tests/unictype/test-pr_space.c: Likewise.
51779         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
51780         * tests/unictype/test-pr_titlecase.c: Likewise.
51781         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
51782         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
51783         * tests/unictype/test-pr_uppercase.c: Likewise.
51784         * tests/unictype/test-pr_variation_selector.c: Likewise.
51785         * tests/unictype/test-pr_white_space.c: Likewise.
51786         * tests/unictype/test-pr_xid_continue.c: Likewise.
51787         * tests/unictype/test-pr_xid_start.c: Likewise.
51788         * tests/unictype/test-pr_zero_width.c: Likewise.
51789         * tests/unictype/test-sy_c_whitespace.c: Likewise.
51790         * tests/unictype/test-sy_java_whitespace.c: Likewise.
51791
51792 2007-11-12  Bruno Haible  <bruno@clisp.org>
51793
51794         Unicode character classification functions.
51795         * lib/unictype.h: New file.
51796         * modules/unictype/base: New file.
51797         * modules/unictype/category-L: New file.
51798         * modules/unictype/category-Lu: New file.
51799         * modules/unictype/category-Ll: New file.
51800         * modules/unictype/category-Lt: New file.
51801         * modules/unictype/category-Lm: New file.
51802         * modules/unictype/category-Lo: New file.
51803         * modules/unictype/category-M: New file.
51804         * modules/unictype/category-Mn: New file.
51805         * modules/unictype/category-Mc: New file.
51806         * modules/unictype/category-Me: New file.
51807         * modules/unictype/category-N: New file.
51808         * modules/unictype/category-Nd: New file.
51809         * modules/unictype/category-Nl: New file.
51810         * modules/unictype/category-No: New file.
51811         * modules/unictype/category-P: New file.
51812         * modules/unictype/category-Pc: New file.
51813         * modules/unictype/category-Pd: New file.
51814         * modules/unictype/category-Ps: New file.
51815         * modules/unictype/category-Pe: New file.
51816         * modules/unictype/category-Pi: New file.
51817         * modules/unictype/category-Pf: New file.
51818         * modules/unictype/category-Po: New file.
51819         * modules/unictype/category-S: New file.
51820         * modules/unictype/category-Sm: New file.
51821         * modules/unictype/category-Sc: New file.
51822         * modules/unictype/category-Sk: New file.
51823         * modules/unictype/category-So: New file.
51824         * modules/unictype/category-Z: New file.
51825         * modules/unictype/category-Zs: New file.
51826         * modules/unictype/category-Zl: New file.
51827         * modules/unictype/category-Zp: New file.
51828         * modules/unictype/category-C: New file.
51829         * modules/unictype/category-Cc: New file.
51830         * modules/unictype/category-Cf: New file.
51831         * modules/unictype/category-Cs: New file.
51832         * modules/unictype/category-Co: New file.
51833         * modules/unictype/category-Cn: New file.
51834         * modules/unictype/category-or: New file.
51835         * modules/unictype/category-of: New file.
51836         * modules/unictype/category-test: New file.
51837         * modules/unictype/category-test-withtable: New file.
51838         * modules/unictype/category-byname: New file.
51839         * modules/unictype/category-none: New file.
51840         * modules/unictype/category-and: New file.
51841         * modules/unictype/category-and-not: New file.
51842         * modules/unictype/category-name: New file.
51843         * modules/unictype/combining-class: New file.
51844         * modules/unictype/category-all: New file.
51845         * modules/unictype/bidicategory-all: New file.
51846         * modules/unictype/bidicategory-byname: New file.
51847         * modules/unictype/bidicategory-name: New file.
51848         * modules/unictype/bidicategory-of: New file.
51849         * modules/unictype/bidicategory-test: New file.
51850         * modules/unictype/decimal-digit: New file.
51851         * modules/unictype/digit: New file.
51852         * modules/unictype/numeric: New file.
51853         * modules/unictype/mirror: New file.
51854         * modules/unictype/property-white-space: New file.
51855         * modules/unictype/property-alphabetic: New file.
51856         * modules/unictype/property-other-alphabetic: New file.
51857         * modules/unictype/property-not-a-character: New file.
51858         * modules/unictype/property-default-ignorable-code-point: New file.
51859         * modules/unictype/property-other-default-ignorable-code-point: New
51860         file.
51861         * modules/unictype/property-deprecated: New file.
51862         * modules/unictype/property-logical-order-exception: New file.
51863         * modules/unictype/property-variation-selector: New file.
51864         * modules/unictype/property-private-use: New file.
51865         * modules/unictype/property-unassigned-code-value: New file.
51866         * modules/unictype/property-uppercase: New file.
51867         * modules/unictype/property-other-uppercase: New file.
51868         * modules/unictype/property-lowercase: New file.
51869         * modules/unictype/property-other-lowercase: New file.
51870         * modules/unictype/property-titlecase: New file.
51871         * modules/unictype/property-soft-dotted: New file.
51872         * modules/unictype/property-id-start: New file.
51873         * modules/unictype/property-other-id-start: New file.
51874         * modules/unictype/property-id-continue: New file.
51875         * modules/unictype/property-other-id-continue: New file.
51876         * modules/unictype/property-xid-start: New file.
51877         * modules/unictype/property-xid-continue: New file.
51878         * modules/unictype/property-pattern-white-space: New file.
51879         * modules/unictype/property-pattern-syntax: New file.
51880         * modules/unictype/property-join-control: New file.
51881         * modules/unictype/property-grapheme-base: New file.
51882         * modules/unictype/property-grapheme-extend: New file.
51883         * modules/unictype/property-other-grapheme-extend: New file.
51884         * modules/unictype/property-grapheme-link: New file.
51885         * modules/unictype/property-bidi-control: New file.
51886         * modules/unictype/property-bidi-left-to-right: New file.
51887         * modules/unictype/property-bidi-hebrew-right-to-left: New file.
51888         * modules/unictype/property-bidi-arabic-right-to-left: New file.
51889         * modules/unictype/property-bidi-european-digit: New file.
51890         * modules/unictype/property-bidi-eur-num-separator: New file.
51891         * modules/unictype/property-bidi-eur-num-terminator: New file.
51892         * modules/unictype/property-bidi-arabic-digit: New file.
51893         * modules/unictype/property-bidi-common-separator: New file.
51894         * modules/unictype/property-bidi-block-separator: New file.
51895         * modules/unictype/property-bidi-segment-separator: New file.
51896         * modules/unictype/property-bidi-whitespace: New file.
51897         * modules/unictype/property-bidi-non-spacing-mark: New file.
51898         * modules/unictype/property-bidi-boundary-neutral: New file.
51899         * modules/unictype/property-bidi-pdf: New file.
51900         * modules/unictype/property-bidi-embedding-or-override: New file.
51901         * modules/unictype/property-bidi-other-neutral: New file.
51902         * modules/unictype/property-hex-digit: New file.
51903         * modules/unictype/property-ascii-hex-digit: New file.
51904         * modules/unictype/property-ideographic: New file.
51905         * modules/unictype/property-unified-ideograph: New file.
51906         * modules/unictype/property-radical: New file.
51907         * modules/unictype/property-ids-binary-operator: New file.
51908         * modules/unictype/property-ids-trinary-operator: New file.
51909         * modules/unictype/property-zero-width: New file.
51910         * modules/unictype/property-space: New file.
51911         * modules/unictype/property-non-break: New file.
51912         * modules/unictype/property-iso-control: New file.
51913         * modules/unictype/property-format-control: New file.
51914         * modules/unictype/property-dash: New file.
51915         * modules/unictype/property-hyphen: New file.
51916         * modules/unictype/property-punctuation: New file.
51917         * modules/unictype/property-line-separator: New file.
51918         * modules/unictype/property-paragraph-separator: New file.
51919         * modules/unictype/property-quotation-mark: New file.
51920         * modules/unictype/property-sentence-terminal: New file.
51921         * modules/unictype/property-terminal-punctuation: New file.
51922         * modules/unictype/property-currency-symbol: New file.
51923         * modules/unictype/property-math: New file.
51924         * modules/unictype/property-other-math: New file.
51925         * modules/unictype/property-paired-punctuation: New file.
51926         * modules/unictype/property-left-of-pair: New file.
51927         * modules/unictype/property-combining: New file.
51928         * modules/unictype/property-composite: New file.
51929         * modules/unictype/property-decimal-digit: New file.
51930         * modules/unictype/property-numeric: New file.
51931         * modules/unictype/property-diacritic: New file.
51932         * modules/unictype/property-extender: New file.
51933         * modules/unictype/property-ignorable-control: New file.
51934         * modules/unictype/property-test: New file.
51935         * modules/unictype/property-byname: New file.
51936         * modules/unictype/property-all: New file.
51937         * modules/unictype/scripts: New file.
51938         * modules/unictype/scripts-all: New file.
51939         * modules/unictype/block-of: New file.
51940         * modules/unictype/block-test: New file.
51941         * modules/unictype/block-list: New file.
51942         * modules/unictype/block-all: New file.
51943         * modules/unictype/syntax-c-whitespace: New file.
51944         * modules/unictype/syntax-java-whitespace: New file.
51945         * modules/unictype/syntax-c-ident: New file.
51946         * modules/unictype/syntax-java-ident: New file.
51947         * modules/unictype/ctype-alnum: New file.
51948         * modules/unictype/ctype-alpha: New file.
51949         * modules/unictype/ctype-cntrl: New file.
51950         * modules/unictype/ctype-digit: New file.
51951         * modules/unictype/ctype-graph: New file.
51952         * modules/unictype/ctype-lower: New file.
51953         * modules/unictype/ctype-print: New file.
51954         * modules/unictype/ctype-punct: New file.
51955         * modules/unictype/ctype-space: New file.
51956         * modules/unictype/ctype-upper: New file.
51957         * modules/unictype/ctype-xdigit: New file.
51958         * modules/unictype/ctype-blank: New file.
51959         * lib/unictype/bidi_byname.c: New file.
51960         * lib/unictype/bidi_name.c: New file.
51961         * lib/unictype/bidi_of.c: New file.
51962         * lib/unictype/bidi_test.c: New file.
51963         * lib/unictype/bitmap.h: New file.
51964         * lib/unictype/block_test.c: New file.
51965         * lib/unictype/blocks.c: New file.
51966         * lib/unictype/categ_C.c: New file.
51967         * lib/unictype/categ_Cc.c: New file.
51968         * lib/unictype/categ_Cf.c: New file.
51969         * lib/unictype/categ_Cn.c: New file.
51970         * lib/unictype/categ_Co.c: New file.
51971         * lib/unictype/categ_Cs.c: New file.
51972         * lib/unictype/categ_L.c: New file.
51973         * lib/unictype/categ_Ll.c: New file.
51974         * lib/unictype/categ_Lm.c: New file.
51975         * lib/unictype/categ_Lo.c: New file.
51976         * lib/unictype/categ_Lt.c: New file.
51977         * lib/unictype/categ_Lu.c: New file.
51978         * lib/unictype/categ_M.c: New file.
51979         * lib/unictype/categ_Mc.c: New file.
51980         * lib/unictype/categ_Me.c: New file.
51981         * lib/unictype/categ_Mn.c: New file.
51982         * lib/unictype/categ_N.c: New file.
51983         * lib/unictype/categ_Nd.c: New file.
51984         * lib/unictype/categ_Nl.c: New file.
51985         * lib/unictype/categ_No.c: New file.
51986         * lib/unictype/categ_P.c: New file.
51987         * lib/unictype/categ_Pc.c: New file.
51988         * lib/unictype/categ_Pd.c: New file.
51989         * lib/unictype/categ_Pe.c: New file.
51990         * lib/unictype/categ_Pf.c: New file.
51991         * lib/unictype/categ_Pi.c: New file.
51992         * lib/unictype/categ_Po.c: New file.
51993         * lib/unictype/categ_Ps.c: New file.
51994         * lib/unictype/categ_S.c: New file.
51995         * lib/unictype/categ_Sc.c: New file.
51996         * lib/unictype/categ_Sk.c: New file.
51997         * lib/unictype/categ_Sm.c: New file.
51998         * lib/unictype/categ_So.c: New file.
51999         * lib/unictype/categ_Z.c: New file.
52000         * lib/unictype/categ_Zl.c: New file.
52001         * lib/unictype/categ_Zp.c: New file.
52002         * lib/unictype/categ_Zs.c: New file.
52003         * lib/unictype/categ_and.c: New file.
52004         * lib/unictype/categ_and_not.c: New file.
52005         * lib/unictype/categ_byname.c: New file.
52006         * lib/unictype/categ_name.c: New file.
52007         * lib/unictype/categ_none.c: New file.
52008         * lib/unictype/categ_of.c: New file.
52009         * lib/unictype/categ_or.c: New file.
52010         * lib/unictype/categ_test.c: New file.
52011         * lib/unictype/combining.c: New file.
52012         * lib/unictype/ctype_alnum.c: New file.
52013         * lib/unictype/ctype_alpha.c: New file.
52014         * lib/unictype/ctype_blank.c: New file.
52015         * lib/unictype/ctype_cntrl.c: New file.
52016         * lib/unictype/ctype_digit.c: New file.
52017         * lib/unictype/ctype_graph.c: New file.
52018         * lib/unictype/ctype_lower.c: New file.
52019         * lib/unictype/ctype_print.c: New file.
52020         * lib/unictype/ctype_punct.c: New file.
52021         * lib/unictype/ctype_space.c: New file.
52022         * lib/unictype/ctype_upper.c: New file.
52023         * lib/unictype/ctype_xdigit.c: New file.
52024         * lib/unictype/decdigit.c: New file.
52025         * lib/unictype/digit.c: New file.
52026         * lib/unictype/identsyntaxmap.h: New file.
52027         * lib/unictype/mirror.c: New file.
52028         * lib/unictype/numeric.c: New file.
52029         * lib/unictype/pr_alphabetic.c: New file.
52030         * lib/unictype/pr_ascii_hex_digit.c: New file.
52031         * lib/unictype/pr_bidi_arabic_digit.c: New file.
52032         * lib/unictype/pr_bidi_arabic_right_to_left.c: New file.
52033         * lib/unictype/pr_bidi_block_separator.c: New file.
52034         * lib/unictype/pr_bidi_boundary_neutral.c: New file.
52035         * lib/unictype/pr_bidi_common_separator.c: New file.
52036         * lib/unictype/pr_bidi_control.c: New file.
52037         * lib/unictype/pr_bidi_embedding_or_override.c: New file.
52038         * lib/unictype/pr_bidi_eur_num_separator.c: New file.
52039         * lib/unictype/pr_bidi_eur_num_terminator.c: New file.
52040         * lib/unictype/pr_bidi_european_digit.c: New file.
52041         * lib/unictype/pr_bidi_hebrew_right_to_left.c: New file.
52042         * lib/unictype/pr_bidi_left_to_right.c: New file.
52043         * lib/unictype/pr_bidi_non_spacing_mark.c: New file.
52044         * lib/unictype/pr_bidi_other_neutral.c: New file.
52045         * lib/unictype/pr_bidi_pdf.c: New file.
52046         * lib/unictype/pr_bidi_segment_separator.c: New file.
52047         * lib/unictype/pr_bidi_whitespace.c: New file.
52048         * lib/unictype/pr_byname.c: New file.
52049         * lib/unictype/pr_byname.gperf: New file.
52050         * lib/unictype/pr_combining.c: New file.
52051         * lib/unictype/pr_composite.c: New file.
52052         * lib/unictype/pr_currency_symbol.c: New file.
52053         * lib/unictype/pr_dash.c: New file.
52054         * lib/unictype/pr_decimal_digit.c: New file.
52055         * lib/unictype/pr_default_ignorable_code_point.c: New file.
52056         * lib/unictype/pr_deprecated.c: New file.
52057         * lib/unictype/pr_diacritic.c: New file.
52058         * lib/unictype/pr_extender.c: New file.
52059         * lib/unictype/pr_format_control.c: New file.
52060         * lib/unictype/pr_grapheme_base.c: New file.
52061         * lib/unictype/pr_grapheme_extend.c: New file.
52062         * lib/unictype/pr_grapheme_link.c: New file.
52063         * lib/unictype/pr_hex_digit.c: New file.
52064         * lib/unictype/pr_hyphen.c: New file.
52065         * lib/unictype/pr_id_continue.c: New file.
52066         * lib/unictype/pr_id_start.c: New file.
52067         * lib/unictype/pr_ideographic.c: New file.
52068         * lib/unictype/pr_ids_binary_operator.c: New file.
52069         * lib/unictype/pr_ids_trinary_operator.c: New file.
52070         * lib/unictype/pr_ignorable_control.c: New file.
52071         * lib/unictype/pr_iso_control.c: New file.
52072         * lib/unictype/pr_join_control.c: New file.
52073         * lib/unictype/pr_left_of_pair.c: New file.
52074         * lib/unictype/pr_line_separator.c: New file.
52075         * lib/unictype/pr_logical_order_exception.c: New file.
52076         * lib/unictype/pr_lowercase.c: New file.
52077         * lib/unictype/pr_math.c: New file.
52078         * lib/unictype/pr_non_break.c: New file.
52079         * lib/unictype/pr_not_a_character.c: New file.
52080         * lib/unictype/pr_numeric.c: New file.
52081         * lib/unictype/pr_other_alphabetic.c: New file.
52082         * lib/unictype/pr_other_default_ignorable_code_point.c: New file.
52083         * lib/unictype/pr_other_grapheme_extend.c: New file.
52084         * lib/unictype/pr_other_id_continue.c: New file.
52085         * lib/unictype/pr_other_id_start.c: New file.
52086         * lib/unictype/pr_other_lowercase.c: New file.
52087         * lib/unictype/pr_other_math.c: New file.
52088         * lib/unictype/pr_other_uppercase.c: New file.
52089         * lib/unictype/pr_paired_punctuation.c: New file.
52090         * lib/unictype/pr_paragraph_separator.c: New file.
52091         * lib/unictype/pr_pattern_syntax.c: New file.
52092         * lib/unictype/pr_pattern_white_space.c: New file.
52093         * lib/unictype/pr_private_use.c: New file.
52094         * lib/unictype/pr_punctuation.c: New file.
52095         * lib/unictype/pr_quotation_mark.c: New file.
52096         * lib/unictype/pr_radical.c: New file.
52097         * lib/unictype/pr_sentence_terminal.c: New file.
52098         * lib/unictype/pr_soft_dotted.c: New file.
52099         * lib/unictype/pr_space.c: New file.
52100         * lib/unictype/pr_terminal_punctuation.c: New file.
52101         * lib/unictype/pr_test.c: New file.
52102         * lib/unictype/pr_titlecase.c: New file.
52103         * lib/unictype/pr_unassigned_code_value.c: New file.
52104         * lib/unictype/pr_unified_ideograph.c: New file.
52105         * lib/unictype/pr_uppercase.c: New file.
52106         * lib/unictype/pr_variation_selector.c: New file.
52107         * lib/unictype/pr_white_space.c: New file.
52108         * lib/unictype/pr_xid_continue.c: New file.
52109         * lib/unictype/pr_xid_start.c: New file.
52110         * lib/unictype/pr_zero_width.c: New file.
52111         * lib/unictype/scripts.c: New file.
52112         * lib/unictype/sy_c_ident.c: New file.
52113         * lib/unictype/sy_c_whitespace.c: New file.
52114         * lib/unictype/sy_java_ident.c: New file.
52115         * lib/unictype/sy_java_whitespace.c: New file.
52116
52117         * lib/unictype/bidi_of.h: New file, generated by gen-ctype.c for
52118         Unicode 5.0.0.
52119         * lib/unictype/blocks.h: Likewise.
52120         * lib/unictype/categ_C.h: Likewise.
52121         * lib/unictype/categ_Cc.h: Likewise.
52122         * lib/unictype/categ_Cf.h: Likewise.
52123         * lib/unictype/categ_Cn.h: Likewise.
52124         * lib/unictype/categ_Co.h: Likewise.
52125         * lib/unictype/categ_Cs.h: Likewise.
52126         * lib/unictype/categ_L.h: Likewise.
52127         * lib/unictype/categ_Ll.h: Likewise.
52128         * lib/unictype/categ_Lm.h: Likewise.
52129         * lib/unictype/categ_Lo.h: Likewise.
52130         * lib/unictype/categ_Lt.h: Likewise.
52131         * lib/unictype/categ_Lu.h: Likewise.
52132         * lib/unictype/categ_M.h: Likewise.
52133         * lib/unictype/categ_Mc.h: Likewise.
52134         * lib/unictype/categ_Me.h: Likewise.
52135         * lib/unictype/categ_Mn.h: Likewise.
52136         * lib/unictype/categ_N.h: Likewise.
52137         * lib/unictype/categ_Nd.h: Likewise.
52138         * lib/unictype/categ_Nl.h: Likewise.
52139         * lib/unictype/categ_No.h: Likewise.
52140         * lib/unictype/categ_P.h: Likewise.
52141         * lib/unictype/categ_Pc.h: Likewise.
52142         * lib/unictype/categ_Pd.h: Likewise.
52143         * lib/unictype/categ_Pe.h: Likewise.
52144         * lib/unictype/categ_Pf.h: Likewise.
52145         * lib/unictype/categ_Pi.h: Likewise.
52146         * lib/unictype/categ_Po.h: Likewise.
52147         * lib/unictype/categ_Ps.h: Likewise.
52148         * lib/unictype/categ_S.h: Likewise.
52149         * lib/unictype/categ_Sc.h: Likewise.
52150         * lib/unictype/categ_Sk.h: Likewise.
52151         * lib/unictype/categ_Sm.h: Likewise.
52152         * lib/unictype/categ_So.h: Likewise.
52153         * lib/unictype/categ_Z.h: Likewise.
52154         * lib/unictype/categ_Zl.h: Likewise.
52155         * lib/unictype/categ_Zp.h: Likewise.
52156         * lib/unictype/categ_Zs.h: Likewise.
52157         * lib/unictype/categ_of.h: Likewise.
52158         * lib/unictype/combining.h: Likewise.
52159         * lib/unictype/ctype_alnum.h: Likewise.
52160         * lib/unictype/ctype_alpha.h: Likewise.
52161         * lib/unictype/ctype_blank.h: Likewise.
52162         * lib/unictype/ctype_cntrl.h: Likewise.
52163         * lib/unictype/ctype_digit.h: Likewise.
52164         * lib/unictype/ctype_graph.h: Likewise.
52165         * lib/unictype/ctype_lower.h: Likewise.
52166         * lib/unictype/ctype_print.h: Likewise.
52167         * lib/unictype/ctype_punct.h: Likewise.
52168         * lib/unictype/ctype_space.h: Likewise.
52169         * lib/unictype/ctype_upper.h: Likewise.
52170         * lib/unictype/ctype_xdigit.h: Likewise.
52171         * lib/unictype/decdigit.h: Likewise.
52172         * lib/unictype/digit.h: Likewise.
52173         * lib/unictype/mirror.h: Likewise.
52174         * lib/unictype/numeric.h: Likewise.
52175         * lib/unictype/pr_alphabetic.h: Likewise.
52176         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
52177         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
52178         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
52179         * lib/unictype/pr_bidi_block_separator.h: Likewise.
52180         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
52181         * lib/unictype/pr_bidi_common_separator.h: Likewise.
52182         * lib/unictype/pr_bidi_control.h: Likewise.
52183         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
52184         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
52185         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
52186         * lib/unictype/pr_bidi_european_digit.h: Likewise.
52187         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
52188         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
52189         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
52190         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
52191         * lib/unictype/pr_bidi_pdf.h: Likewise.
52192         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
52193         * lib/unictype/pr_bidi_whitespace.h: Likewise.
52194         * lib/unictype/pr_combining.h: Likewise.
52195         * lib/unictype/pr_composite.h: Likewise.
52196         * lib/unictype/pr_currency_symbol.h: Likewise.
52197         * lib/unictype/pr_dash.h: Likewise.
52198         * lib/unictype/pr_decimal_digit.h: Likewise.
52199         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
52200         * lib/unictype/pr_deprecated.h: Likewise.
52201         * lib/unictype/pr_diacritic.h: Likewise.
52202         * lib/unictype/pr_extender.h: Likewise.
52203         * lib/unictype/pr_format_control.h: Likewise.
52204         * lib/unictype/pr_grapheme_base.h: Likewise.
52205         * lib/unictype/pr_grapheme_extend.h: Likewise.
52206         * lib/unictype/pr_grapheme_link.h: Likewise.
52207         * lib/unictype/pr_hex_digit.h: Likewise.
52208         * lib/unictype/pr_hyphen.h: Likewise.
52209         * lib/unictype/pr_id_continue.h: Likewise.
52210         * lib/unictype/pr_id_start.h: Likewise.
52211         * lib/unictype/pr_ideographic.h: Likewise.
52212         * lib/unictype/pr_ids_binary_operator.h: Likewise.
52213         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
52214         * lib/unictype/pr_ignorable_control.h: Likewise.
52215         * lib/unictype/pr_iso_control.h: Likewise.
52216         * lib/unictype/pr_join_control.h: Likewise.
52217         * lib/unictype/pr_left_of_pair.h: Likewise.
52218         * lib/unictype/pr_line_separator.h: Likewise.
52219         * lib/unictype/pr_logical_order_exception.h: Likewise.
52220         * lib/unictype/pr_lowercase.h: Likewise.
52221         * lib/unictype/pr_math.h: Likewise.
52222         * lib/unictype/pr_non_break.h: Likewise.
52223         * lib/unictype/pr_not_a_character.h: Likewise.
52224         * lib/unictype/pr_numeric.h: Likewise.
52225         * lib/unictype/pr_other_alphabetic.h: Likewise.
52226         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
52227         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
52228         * lib/unictype/pr_other_id_continue.h: Likewise.
52229         * lib/unictype/pr_other_id_start.h: Likewise.
52230         * lib/unictype/pr_other_lowercase.h: Likewise.
52231         * lib/unictype/pr_other_math.h: Likewise.
52232         * lib/unictype/pr_other_uppercase.h: Likewise.
52233         * lib/unictype/pr_paired_punctuation.h: Likewise.
52234         * lib/unictype/pr_paragraph_separator.h: Likewise.
52235         * lib/unictype/pr_pattern_syntax.h: Likewise.
52236         * lib/unictype/pr_pattern_white_space.h: Likewise.
52237         * lib/unictype/pr_private_use.h: Likewise.
52238         * lib/unictype/pr_punctuation.h: Likewise.
52239         * lib/unictype/pr_quotation_mark.h: Likewise.
52240         * lib/unictype/pr_radical.h: Likewise.
52241         * lib/unictype/pr_sentence_terminal.h: Likewise.
52242         * lib/unictype/pr_soft_dotted.h: Likewise.
52243         * lib/unictype/pr_space.h: Likewise.
52244         * lib/unictype/pr_terminal_punctuation.h: Likewise.
52245         * lib/unictype/pr_titlecase.h: Likewise.
52246         * lib/unictype/pr_unassigned_code_value.h: Likewise.
52247         * lib/unictype/pr_unified_ideograph.h: Likewise.
52248         * lib/unictype/pr_uppercase.h: Likewise.
52249         * lib/unictype/pr_variation_selector.h: Likewise.
52250         * lib/unictype/pr_white_space.h: Likewise.
52251         * lib/unictype/pr_xid_continue.h: Likewise.
52252         * lib/unictype/pr_xid_start.h: Likewise.
52253         * lib/unictype/pr_zero_width.h: Likewise.
52254         * lib/unictype/scripts.h: Likewise.
52255         * lib/unictype/scripts_byname.gperf: Likewise.
52256         * lib/unictype/sy_c_ident.h: Likewise.
52257         * lib/unictype/sy_c_whitespace.h: Likewise.
52258         * lib/unictype/sy_java_ident.h: Likewise.
52259         * lib/unictype/sy_java_whitespace.h: Likewise.
52260
52261         * lib/unictype/Makefile: New file.
52262         * lib/unictype/gen-ctype.c: New file, based on gen-unicode-ctype.c in
52263         glibc.
52264         * lib/unictype/3level.h: New file, copied from glibc.
52265         * lib/unictype/3levelbit.h: New file.
52266
52267 2007-11-11  Bruno Haible  <bruno@clisp.org>
52268
52269         * modules/gperf: New file.
52270         * modules/iconv_open (Depends-on): Add it.
52271         (Makefile.am): Remove the GPERF definition.
52272
52273 2007-11-11  Bruno Haible  <bruno@clisp.org>
52274
52275         * m4/round.m4 (gl_FUNC_ROUND): Test against NetBSD 3.0 bug.
52276         * doc/functions/round.texi: Mention the NetBSD 3.0 bug.
52277
52278 2007-11-11  Bruno Haible  <bruno@clisp.org>
52279
52280         * tests/test-argmatch.c (ARGMATCH_DIE): Undefine.
52281         (usage): Remove function.
52282
52283 2007-11-11  Bruno Haible  <bruno@clisp.org>
52284
52285         * m4/roundf.m4 (gl_FUNC_ROUNDF): Use gl_FUNC_FLOORF_LIBS and
52286         gl_FUNC_CEILF_LIBS.
52287         * m4/round.m4 (gl_FUNC_ROUND): Use gl_FUNC_FLOOR_LIBS and
52288         gl_FUNC_CEIL_LIBS.
52289         * m4/roundl.m4 (gl_FUNC_ROUNDL): Use gl_FUNC_FLOORL_LIBS and
52290         gl_FUNC_CEILL_LIBS.
52291         * modules/roundf (Files): Add m4/floorf.m4, m4/ceilf.m4.
52292         * modules/round (Files): Add m4/floor.m4, m4/ceil.m4.
52293         * modules/roundl (Files): Add m4/floorl.m4, m4/ceill.m4.
52294
52295 2007-11-11  Bruno Haible  <bruno@clisp.org>
52296
52297         * m4/roundf.m4 (gl_FUNC_ROUNDF): Handle the case that floorf and
52298         roundf were declared but do not exist on functions.
52299         * m4/roundl.m4 (gl_FUNC_ROUNDL): Handle the case that floorl and
52300         roundl were declared but do not exist on functions.
52301         * lib/round.c (HAVE_FLOOR_AND_CEIL): Use HAVE_FLOORF_AND_CEILF and
52302         HAVE_FLOORL_AND_CEILL, respectively.
52303         Needed for Sun C on Solaris 10.
52304
52305 2007-11-11  Bruno Haible  <bruno@clisp.org>
52306
52307         * m4/roundf.m4 (gl_FUNC_ROUNDF): Set REPLACE_ROUNDF instead of
52308         HAVE_DECL_ROUNDF. Remove redundant AC_SUBST.
52309         * m4/round.m4 (gl_FUNC_ROUND): Set REPLACE_ROUND instead of
52310         HAVE_DECL_ROUND. Remove redundant AC_SUBST.
52311         * m4/roundl.m4 (gl_FUNC_ROUNDL): Set REPLACE_ROUNDL instead of
52312         HAVE_DECL_ROUNDL. Remove redundant AC_SUBST.
52313         * lib/math.in.h (roundf): Use REPLACE_ROUNDF instead of
52314         HAVE_DECL_ROUNDF.
52315         (round): Use REPLACE_ROUND instead of HAVE_DECL_ROUND.
52316         (roundl): Use REPLACE_ROUNDL instead of HAVE_DECL_ROUNDL.
52317         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_ROUND* instead
52318         of HAVE_DECL_ROUND*.
52319         * modules/math (Makefile.am): Update.
52320
52321 2007-11-10  Bruno Haible  <bruno@clisp.org>
52322
52323         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Use same check for
52324         ptrdiff_t as m4/intl.m4.
52325
52326 2007-11-10  Jim Meyering  <meyering@redhat.com>
52327
52328         Avoid link failure for the argmatch test.
52329         * tests/test-argmatch.c (usage): Define function to avoid a link
52330         failure: argmatch_die requires a usage function.
52331
52332 2007-11-09  Bruno Haible  <bruno@clisp.org>
52333
52334         * doc/functions/snprintf.texi: Mention BeOS deficiency.
52335         * doc/functions/vsnprintf.texi: Likewise.
52336         * lib/vasnprintf.c (VASNPRINTF): Ensure that we never call snprintf
52337         with a size argument < 2.
52338
52339 2007-11-09  Bruno Haible  <bruno@clisp.org>
52340
52341         * lib/vasnprintf.c (VASNPRINTF): Increase reallocation of snprintf
52342         buffer. Fixes an inefficiency introduced on 2007-11-03.
52343
52344 2007-11-09  Bruno Haible  <bruno@clisp.org>
52345
52346         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8) [BeOS]: Make this test return
52347         none instead of tr_TR. Fixes a failure of test-c-strcasecmp.c.
52348
52349 2007-11-08  Jim Meyering  <meyering@redhat.com>
52350
52351         Change cache variable name prefix "jm_" to "gl_" everywhere.
52352         * m4/d-type.m4, m4/jm-winsz1.m4, m4/jm-winsz2.m4, m4/link-follow.m4:
52353         * m4/putenv.m4, m4/strtoimax.m4, m4/strtoumax.m4, m4/unlink-busy.m4:
52354         * m4/uptime.m4: s/gl_/jm_/
52355
52356 2007-11-07  Bruno Haible  <bruno@clisp.org>
52357
52358         Update to GNU gettext 0.17.
52359         * m4/intl.m4: Update to GNU gettext 0.17.
52360         * m4/po.m4: Likewise.
52361         * modules/gettext (Files): Remove m4/ulonglong.m4.
52362         (configure.ac): Require gettext infrastructure from version 0.17.
52363
52364 2007-11-06  Bruno Haible  <bruno@clisp.org>
52365
52366         * lib/fbufmode.c (fbufmode) [QNX]: Use numerical values for flags; the
52367         symbolic values are not defined in a public header.
52368         * lib/freadable.c (freadable) [QNX]: Likewise.
52369         * lib/freadahead.c (freadahead) [QNX]: Likewise.
52370         * lib/freading.c (freading) [QNX]: Likewise.
52371         * lib/fseterr.c (fseterr) [QNX]: Likewise.
52372         * lib/fwritable.c (fwritable) [QNX]: Likewise.
52373         * lib/fwriting.c (fwriting) [QNX]: Likewise.
52374         * lib/fpurge.c (fpurge) [QNX]: Likewise. Add a return statement.
52375         Reported by Alain Magloire.
52376
52377         * m4/fpending.m4 (gl_FUNC_FPENDING): Add a variant for QNX.
52378
52379 2007-11-05  Bruno Haible  <bruno@clisp.org>
52380
52381         * lib/vasnprintf.c (VASNPRINTF): Expand the NEED_PRINTF_DIRECTIVE_A
52382         code when NEED_PRINTF_LONG_DOUBLE or NEED_PRINTF_DOUBLE is set.
52383         Needed on Cygwin, where !NEED_PRINTF_DIRECTIVE_A && NEED_PRINTF_DOUBLE.
52384         Reported by Eric Blake.
52385
52386 2007-10-27  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
52387             Bruno Haible  <bruno@clisp.org>
52388
52389         * modules/malloc (configure.ac): Define GNULIB_MALLOC_GNU always.
52390         * modules/realloc (configure.ac): Define GNULIB_REALLOC_GNU always.
52391         * lib/realloc.c (SYSTEM_MALLOC_GLIBC_COMPATIBLE): New macro.
52392         (malloc): Undefine also before including <stdlib.h>.
52393         (rpl_realloc): Turn malloc(0) into malloc(1) if necessary.
52394         Needed on OSF/1 4.0.
52395
52396 2007-11-05  Jim Meyering  <meyering@redhat.com>
52397
52398         git-version-gen: sync from coreutils.
52399         * build-aux/git-version-gen: Add comments.
52400         Change the first '-' to '.' in the snapshot version string,
52401         e.g., 6.9-377-08144 -> 6.9.377-08144
52402         Remove first parameter.
52403         Don't declare a version "-dirty" merely because a time
52404         stamp has changed.
52405
52406 2007-11-04  Bruno Haible  <bruno@clisp.org>
52407
52408         * lib/lock.h: Protect all macro definitions containing an 'if'
52409         statement through a "do { ... } while (0)".
52410         * lib/tls.h: Likewise.
52411
52412 2007-11-04  Bruno Haible  <bruno@clisp.org>
52413
52414         * lib/vasnprintf.c (DCHAR_IS_TCHAR, DCHAR_CPY): Undefine at the end.
52415
52416 2007-11-04  Bruno Haible  <bruno@clisp.org>
52417
52418         * m4/printf.m4 (gl_PRINTF_ENOMEM): Use GL_NOCRASH.
52419         * modules/fprintf-posix (Depends-on): Add nocrash.
52420         * modules/snprintf-posix (Depends-on): Likewise.
52421         * modules/sprintf-posix (Depends-on): Likewise.
52422         * modules/vasnprintf-posix (Depends-on): Likewise.
52423         * modules/vasprintf-posix (Depends-on): Likewise.
52424         * modules/vfprintf-posix (Depends-on): Likewise.
52425         * modules/vsnprintf-posix (Depends-on): Likewise.
52426         * modules/vsprintf-posix (Depends-on): Likewise.
52427         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
52428         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
52429         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
52430         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
52431         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
52432         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
52433         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
52434
52435 2007-11-04  Bruno Haible  <bruno@clisp.org>
52436
52437         * modules/nocrash: New file.
52438         * m4/nocrash.m4: New file, taken from GNU clisp. Code taken from
52439         GNU libsigsegv, with permission of GNU libsigsegv's copyright holders.
52440
52441 2007-11-04  Bruno Haible  <bruno@clisp.org>
52442
52443         * tests/test-vasnprintf-posix.c (test_function): Add some tests of
52444         precision handling.
52445         * tests/test-vasprintf-posix.c (test_function): Likewise.
52446         * tests/test-snprintf-posix.h (test_function): Likewise.
52447         * tests/test-sprintf-posix.h (test_function): Likewise.
52448
52449         Fix *printf behaviour for large precisions on mingw and BeOS.
52450         * m4/printf.m4 (gl_PRINTF_PRECISION): New macro.
52451         * lib/vasnprintf.c (VASNPRINTF): Handle NEED_PRINTF_UNBOUNDED_PRECISION.
52452         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_PRECISION): New macro.
52453         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
52454         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
52455         gl_PRINTF_PRECISION and test its result. Invoke
52456         gl_PREREQ_VASNPRINTF_PRECISION.
52457         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
52458         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
52459         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
52460         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
52461         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
52462         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
52463         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
52464         * doc/functions/fprintf.texi: Update.
52465         * doc/functions/printf.texi: Update.
52466         * doc/functions/snprintf.texi: Update.
52467         * doc/functions/sprintf.texi: Update.
52468         * doc/functions/vfprintf.texi: Update.
52469         * doc/functions/vprintf.texi: Update.
52470         * doc/functions/vsnprintf.texi: Update.
52471         * doc/functions/vsprintf.texi: Update.
52472
52473 2007-11-04  Bruno Haible  <bruno@clisp.org>
52474
52475         * lib/vasnprintf.c (scale10_round_decimal_decoded): Fix shift loop.
52476
52477 2007-11-04  Bruno Haible  <bruno@clisp.org>
52478
52479         * modules/relocatable-prog (Files): Add m4/lib-ld.m4.
52480         Reported by Sylvain Beucler <beuc@gnu.org>.
52481
52482 2007-11-03  Bruno Haible  <bruno@clisp.org>
52483
52484         * tests/test-fprintf-posix2.sh: New file.
52485         * tests/test-fprintf-posix2.c: New file.
52486         * modules/fprintf-posix-tests (Files): Add them.
52487         (TESTS): Add test-fprintf-posix2.sh.
52488         (configure.ac): Check for getrlimit and setrlimit.
52489         (check_PROGRAMS): Add test-fprintf-posix2.
52490
52491         * tests/test-printf-posix2.sh: New file.
52492         * tests/test-printf-posix2.c: New file.
52493         * modules/printf-posix-tests (Files): Add them.
52494         (TESTS): Add test-printf-posix2.sh.
52495         (configure.ac): Check for getrlimit and setrlimit.
52496         (check_PROGRAMS): Add test-printf-posix2.
52497
52498         Fix *printf behaviour in out-of-memory situations on MacOS X and *BSD.
52499         * m4/printf.m4 (gl_PRINTF_ENOMEM): New macro.
52500         * lib/vasnprintf.c: Implement NEED_PRINTF_DOUBLE.
52501         (decode_double): New function, copied from decode_long_double.
52502         (scale10_round_decimal_decoded): New function, extracted from
52503         scale10_round_decimal_long_double.
52504         (scale10_round_decimal_long_double): Use it.
52505         (scale10_round_decimal_double): New function.
52506         (floorlog10): New function.
52507         (VASNPRINTF): Handle NEED_PRINTF_DOUBLE case.
52508         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_ENOMEM): New macro.
52509         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
52510         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
52511         gl_PRINTF_ENOMEM and test its result. Invoke
52512         gl_PREREQ_VASNPRINTF_ENOMEM.
52513         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
52514         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
52515         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
52516         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
52517         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
52518         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
52519         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
52520         * modules/fprintf-posix (Depends-on): Add frexp-nolibm.
52521         * modules/snprintf-posix (Depends-on): Likewise.
52522         * modules/sprintf-posix (Depends-on): Likewise.
52523         * modules/vasnprintf-posix (Depends-on): Likewise.
52524         * modules/vasprintf-posix (Depends-on): Likewise.
52525         * modules/vfprintf-posix (Depends-on): Likewise.
52526         * modules/vsnprintf-posix (Depends-on): Likewise.
52527         * modules/vsprintf-posix (Depends-on): Likewise.
52528         * doc/functions/fprintf.texi: Update.
52529         * doc/functions/printf.texi: Update.
52530         * doc/functions/snprintf.texi: Update.
52531         * doc/functions/sprintf.texi: Update.
52532         * doc/functions/vfprintf.texi: Update.
52533         * doc/functions/vprintf.texi: Update.
52534         * doc/functions/vsnprintf.texi: Update.
52535         * doc/functions/vsprintf.texi: Update.
52536
52537 2007-11-03  Bruno Haible  <bruno@clisp.org>
52538
52539         * modules/frexp-nolibm-tests: New file.
52540
52541         * modules/frexp-nolibm: New file.
52542         * m4/frexp.m4 (gl_FUNC_FREXP_NO_LIBM): New macro.
52543
52544 2007-11-03  Bruno Haible  <bruno@clisp.org>
52545
52546         * lib/vasnprintf.c (VASNPRINTF): Don't assume that snprintf's return
52547         value is C99 compliant.
52548         Needed for OSF/1 5.1.
52549
52550 2007-11-03  Bruno Haible  <bruno@clisp.org>
52551
52552         Fix out-of-memory handling of vasnprintf.
52553         * lib/printf-parse.c: Include <errno.h>.
52554         (PRINTF_PARSE): When failing, set errno to EINVAL or ENOMEM.
52555         * lib/vasnprintf.c (VASNPRINTF): When PRINTF_PARSE fails, assume errno
52556         is already set.
52557
52558 2007-11-02  Eric Blake  <ebb9@byu.net>
52559
52560         Fix tests on cygwin.
52561         * modules/xprintf-posix-tests (Makefile.am): Link against -lintl.
52562
52563 2007-11-01  Bruno Haible  <bruno@clisp.org>
52564
52565         * lib/stdlib.in.h (putenv): Remove the "not POSIX compliant everywhere"
52566         warning.
52567         * doc/functions/putenv.texi: Clarify that the 'putenv' module is not
52568         needed for POSIX compatibility.
52569
52570 2007-11-01  Paul Eggert  <eggert@cs.ucla.edu>
52571
52572         * m4/putenv.m4 (gl_FUNC_PUTENV): Also mention that we're checking
52573         for compatibility with GNU.
52574
52575 2007-11-01  Bruno Haible  <bruno@clisp.org>
52576
52577         * lib/putenv.c: Include <stdlib.h>. Remove rpl_putenv declaration.
52578         (putenv): Renamed from rpl_putenv. Change argument type from
52579         'const char *' to 'char *'.
52580         * m4/putenv.m4 (gl_FUNC_PUTENV): Require gl_STDLIB_H_DEFAULTS. Instead
52581         of defining putenv in config.h, just set REPLACE_PUTENV.
52582         * modules/putenv (Depends-on): Add stdlib.
52583         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
52584         (Include): Use <stdlib.h>.
52585         * lib/stdlib.in.h (putenv): New declaration.
52586         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_PUTENV and
52587         REPLACE_PUTENV.
52588         * modules/stdlib (Makefile.am): Substitute GNULIB_PUTENV and
52589         REPLACE_PUTENV.
52590         Needed for MacOS X 10.5.0.
52591         Reported by Peter O'Gorman <peter@pogma.com>.
52592
52593 2007-11-01  Jim Meyering  <meyering@redhat.com>
52594
52595         Treat an empty date string exactly like "0".
52596         * lib/getdate.y (get_date): Once any isspace or TZ= prefix is consumed,
52597         if the remaining date string (to be parsed) is empty, use "0".
52598         Reported by Mischa Molhoek and discussed in this thread:
52599         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/11726>.
52600
52601 2007-10-31  Bruno Haible  <bruno@clisp.org>
52602
52603         * m4/intmax_t.m4 (gl_AC_TYPE_INTMAX_T, gt_AC_TYPE_INTMAX_T): Use
52604         AC_TYPE_LONG_LONG_INT instead of gl_AC_TYPE_LONG_LONG.
52605         * m4/uintmax_t.m4 (gl_AC_TYPE_UINTMAX_T): Use
52606         AC_TYPE_UNSIGNED_LONG_LONG_INT instead of gl_AC_TYPE_UNSIGNED_LONG_LONG.
52607         * m4/longlong.m4 (gl_AC_TYPE_LONG_LONG): Remove macro.
52608         * m4/ulonglong.m4 (gl_AC_TYPE_UNSIGNED_LONG_LONG): Remove macro.
52609
52610 2007-10-31  Bruno Haible  <bruno@clisp.org>
52611
52612         * m4/longlong.m4 (_AC_TYPE_LONG_LONG_SNIPPET): New macro, extracted
52613         from AC_TYPE_LONG_LONG_INT and AC_TYPE_UNSIGNED_LONG_LONG_INT.
52614         (AC_TYPE_LONG_LONG_INT): Use it.
52615         (AC_TYPE_UNSIGNED_LONG_LONG_INT): Moved here from m4/ulonglong.m4. Use
52616         it as well.
52617         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Remove macro; moved
52618         to m4/longlong.m4.
52619         * modules/stdint (Files): Remove m4/ulonglong.m4.
52620         * modules/strtoull (Files): Use m4/longlong.m4 instead of
52621         m4/ulonglong.m4.
52622         * modules/strtoumax (Files): Likewise.
52623
52624 2007-10-30  Bruno Haible  <bruno@clisp.org>
52625
52626         * modules/xvasprintf-posix: New file.
52627         Suggested by Eric Blake.
52628
52629 2007-10-30  Bruno Haible  <bruno@clisp.org>
52630
52631         * modules/xprintf-posix-tests: New file.
52632         * tests/test-xprintf-posix.sh: New file.
52633         * tests/test-xprintf-posix.c: New file.
52634         * tests/test-xfprintf-posix.c: New file.
52635
52636         * modules/xprintf-posix: New file.
52637
52638 2007-10-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
52639
52640         * modules/fbufmode-tests (MOSTLYCLEANFILES): Remove temp files.
52641         * modules/freadable-tests (MOSTLYCLEANFILES): Likewise.
52642         * modules/fwritable-tests (MOSTLYCLEANFILES): Likewise.
52643
52644 2007-10-29  Bruno Haible  <bruno@clisp.org>
52645
52646         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Rename the cache variable to
52647         contain the special marker '_cv_'.
52648         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
52649         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
52650         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
52651         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Likewise.
52652         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
52653         Reported by Ralf Wildenhues.
52654
52655 2007-10-29  Bruno Haible  <bruno@clisp.org>
52656
52657         * gnulib-tool (func_import): When --lgpl is not specified, set
52658         sed_transform_lib_file to convert LGPL and GPLv2+ copyright headers to
52659         GPLv3.
52660         Reported by Simon Josefsson.
52661
52662 2007-10-28  Bruno Haible  <bruno@clisp.org>
52663
52664         * lib/math.in.h: Test REPLACE_ISFINITE instead of HAVE_DECL_ISFINITE.
52665         * m4/isfinite.m4 (gl_ISFINITE): Initialize REPLACE_ISFINITE instead of
52666         HAVE_DECL_ISFINITE.
52667         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Update.
52668         * modules/math (Makefile.am): Substitute REPLACE_ISFINITE instead of
52669         HAVE_DECL_ISFINITE.
52670
52671 2007-10-28  Bruno Haible  <bruno@clisp.org>
52672
52673         * lib/stdint.in.h (_STDINT_MAX): Subtract 1 from an unused signed
52674         integer shift in the signed case. Fixes warnings with OSF/1 5.1 cc.
52675
52676 2007-10-28  Bruno Haible  <bruno@clisp.org>
52677
52678         Fix link errors with Sun C 5.0 on Solaris 10.
52679         * m4/floorf.m4 (gl_FUNC_FLOORF): Consider also the case that the
52680         function is declared but not present in the compiler's libm.
52681         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
52682         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
52683         * m4/ceill.m4 (gl_FUNC_CEILL: Likewise.
52684         * lib/math.in.h: Test REPLACE_CEILF instead of HAVE_DECL_CEILF.
52685         Test REPLACE_CEILL instead of HAVE_DECL_CEILL.
52686         Test REPLACE_FLOORF instead of HAVE_DECL_FLOORF.
52687         Test REPLACE_FLOORL instead of HAVE_DECL_FLOORL.
52688         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Update.
52689         * modules/math (Makefile.am): Substitute REPLACE_CEILF instead of
52690         HAVE_DECL_CEILF, REPLACE_CEILL instead of HAVE_DECL_CEILL,
52691         REPLACE_FLOORF instead of HAVE_DECL_FLOORF, REPLACE_FLOORL instead of
52692         HAVE_DECL_FLOORL.
52693
52694 2007-10-28  Bruno Haible  <bruno@clisp.org>
52695
52696         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): New macro, extracted from
52697         gl_FUNC_FLOORL. Cache the result.
52698         (gl_FUNC_FLOORL): Use it.
52699         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): New macro, extracted from
52700         gl_FUNC_CEILL. Cache the result.
52701         (gl_FUNC_CEILL): Use it.
52702
52703         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): New macro, extracted from
52704         gl_FUNC_FLOOR. Cache the result.
52705         (gl_FUNC_FLOOR): Use it.
52706         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): New macro, extracted from
52707         gl_FUNC_CEIL. Cache the result.
52708         (gl_FUNC_CEIL): Use it.
52709
52710         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): New macro, extracted from
52711         gl_FUNC_FLOORF. Cache the result.
52712         (gl_FUNC_FLOORF): Use it.
52713         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): New macro, extracted from
52714         gl_FUNC_CEILF. Cache the result.
52715         (gl_FUNC_CEILF): Use it.
52716
52717 2007-10-28  Bruno Haible  <bruno@clisp.org>
52718
52719         * gnulib-tool: Allow specifying the LGPL version number through
52720         --lgpl=2 or --lgpl=3.
52721         (func_usage): Document --lgpl with argument.
52722         Handle --lgpl=... arguments.
52723         (func_import): Recognize also gl_LGPL calls with an argument. When
52724         --lgpl=2 is used and the module's license is just LGPL, report an
52725         error. Set sed_transform_lib_file according to the lgpl variable. In
52726         the generated files, use --lgpl or gl_LGPL invocations with argument,
52727         if necessary.
52728         * doc/gnulib-intro.texi (Copyright): Explain how to get modules under
52729         an LGPv2+ license.
52730         * doc/gnulib-tool.texi (Modified imports): Update explanation of
52731         gl_LGPL macro.
52732
52733 2007-10-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
52734             Bruno Haible  <bruno@clisp.org>
52735
52736         * lib/unistr.h (u8_uctomb_aux): Declare also if !HAVE_INLINE.
52737         (u16_uctomb_aux): Likewise.
52738         * lib/unistr/u8-uctomb-aux.c (u8_uctomb_aux): Define also if
52739         !HAVE_INLINE.
52740         * lib/unistr/u16-uctomb-aux.c (u16_uctomb_aux): Likewise
52741
52742 2007-10-28  Bruno Haible  <bruno@clisp.org>
52743
52744         * modules/error: Add a notice recommending to change XGETTEXT_OPTIONS.
52745         Invoke AM_GETTEXT_OPTION if it exists.
52746         * modules/vasprintf: Likewise.
52747         * modules/verror: Likewise.
52748         * modules/xprintf: Likewise.
52749         * modules/xvasprintf: Likewise.
52750
52751 2007-10-27  Ben Pfaff  <blp@gnu.org>
52752
52753         * lib/math.in.h: Define isfinite macro and prototypes for
52754         gl_isfinitef, gl_isfinited, gl_isfinitel if we are providing
52755         implementations.
52756         * m4/math_h.m4: New substitutions for isfinite module.
52757         * lib/isfinite.c: New file.
52758         * m4/isfinite.m4: New file.
52759         * modules/math: Replace isfinite-related @VARS@ in math.in.h.
52760         * modules/isfinite: New file.
52761         * modules/isfinite-tests: New file.
52762         * tests/tests-isfinite.c: New file.
52763         * doc/functions/isfinite.texi: Mention isfinite module.
52764         * MODULES.html.sh: Mention new module.
52765
52766 2007-10-27  Ben Pfaff  <blp@gnu.org>
52767
52768         Ralf Wildenhues reported that Tru64 4.0D declares the round
52769         functions but does not have definitions.
52770         * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): If the target function
52771         cannot be found in any library, set the output variable to
52772         "missing" instead of "".
52773         * m4/round.m4: Also use our substitute if we cannot find round in
52774         any library, even if it is declared.
52775         * m4/roundf.m4: Likewise for roundf.
52776         * m4/roundl.m4: Likewise for roundl.
52777         * lib/math.in.h: Undefine roundf, round, roundl before defining
52778         their replacements, to allow for hypothetical systems where these
52779         may be defined as macros but not available in libraries.
52780
52781 2007-10-27  Bruno Haible  <bruno@clisp.org>
52782
52783         * doc/gnulib.texi: Invoke @firstparagraphindent.
52784         * doc/gnulib-tool.texi (Simple update): Mention possible incompatible
52785         changes in gnulib.
52786         (Source changes): New section.
52787
52788 2007-10-26  Bruno Haible  <bruno@clisp.org>
52789
52790         * m4/gnulib-common.m4 (AC_C_RESTRICT): New overriding definition,
52791         borrowed from autoconf.
52792
52793 2007-10-26  Bruno Haible  <bruno@clisp.org>
52794
52795         * lib/strerror.c (rpl_strerror): Return "Unknown error ..." also if
52796         strerror returned the empty string. Needed on HP-UX 11.00.
52797
52798 2007-10-24  Micah Cowan  <micah@cowan.name>
52799
52800         Remove vestiges of cvs-gnulib-checkout process.  Now we use git.
52801         * build-aux/bootstrap: Remove support for now-unnecessary option,
52802         --cvs-user, and envvars CVS_USER, CVS_RSH.
52803
52804 2007-10-24  Jim Meyering  <meyering@redhat.com>
52805
52806         Avoid diagnostics from sha1sum when there is no cached checksum.
52807         * build-aux/bootstrap (update_po_files): Skip the sha1sum check
52808         if the po.s1 file hasn't been created yet.
52809
52810         * build-aux/bootstrap: Sync from coreutils:
52811         2007-10-24  Jim Meyering  <meyering@redhat.com>
52812         Get gnulib from the git repository, not from an obsolete cvs one.
52813         * build-aux/bootstrap: Suggestion from Micah Cowan.
52814         2007-10-04  Jim Meyering  <jim@meyering.net>
52815         * build-aux/bootstrap (slurp): Adapt to _.h -> .in.h name change.
52816         (update_po_files): Work also when there are no .po files in po/.
52817
52818 2007-10-24  Paul Eggert  <eggert@cs.ucla.edu>
52819
52820         * README: Append ".git" to git and cg examples.
52821         Problem reported by Benoit Sigoure.
52822
52823 2007-10-23  Micah Cowan  <micah@cowan.name>
52824
52825         * users.txt: Add wget.
52826
52827 2007-10-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
52828
52829         Fix linking of some unistdio tests on FreeBSD.
52830         * modules/unistdio/u16-vsnprintf-tests
52831         (test_u16_vsprintf1_LDADD): Add @LIBINTL@.
52832         * modules/unistdio/u16-vsprintf-tests
52833         (test_u16_vsnprintf1_LDADD): Likewise.
52834         * modules/unistdio/u32-vsnprintf-tests
52835         (test_u32_vsnprintf1_LDADD): Likewise.
52836         * modules/unistdio/u32-vsprintf-tests
52837         (test_u32_vsprintf1_LDADD): Likewise.
52838         * modules/unistdio/u8-vsnprintf-tests
52839         (test_u8_vsnprintf1_LDADD): Likewise.
52840         * modules/unistdio/u8-vsprintf-tests
52841         (test_u8_vsprintf1_LDADD): Likewise.
52842         * modules/unistdio/ulc-vsnprintf-tests
52843         (test_ulc_vsnprintf1_LDADD): Likewise.
52844         * modules/unistdio/ulc-vsprintf-tests
52845         (test_ulc_vsprintf1_LDADD): Likewise.
52846
52847         Fix linking of some uniconv tests on FreeBSD.
52848         * modules/uniconv/u16-conv-from-enc-tests
52849         (test_u16_conv_from_enc_LDADD): Link $(LDADD) before @LIBICONV@.
52850         * modules/uniconv/u16-conv-to-enc-tests
52851         (test_u16_conv_to_enc_LDADD): Likewise.
52852         * modules/uniconv/u16-strconv-from-enc-tests
52853         (test_u16_strconv_from_enc_LDADD): Likewise.
52854         * modules/uniconv/u16-strconv-to-enc-tests
52855         (test_u16_strconv_to_enc_LDADD): Likewise.
52856         * modules/uniconv/u32-conv-from-enc-tests
52857         (test_u32_conv_from_enc_LDADD): Likewise.
52858         * modules/uniconv/u32-conv-to-enc-tests
52859         (test_u32_conv_to_enc_LDADD): Likewise.
52860         * modules/uniconv/u32-strconv-from-enc-tests
52861         (test_u32_strconv_from_enc_LDADD): Likewise.
52862         * modules/uniconv/u32-strconv-to-enc-tests
52863         (test_u32_strconv_to_enc_LDADD): Likewise.
52864         * modules/uniconv/u8-conv-from-enc-tests
52865         (test_u8_conv_from_enc_LDADD): Likewise.
52866         * modules/uniconv/u8-conv-to-enc-tests
52867         (test_u8_conv_to_enc_LDADD): Likewise.
52868         * modules/uniconv/u8-strconv-from-enc-tests
52869         (test_u8_strconv_from_enc_LDADD): Likewise.
52870         * modules/uniconv/u8-strconv-to-enc-tests
52871         (test_u8_strconv_to_enc_LDADD): Likewise.
52872
52873 2007-10-22  Bruno Haible  <bruno@clisp.org>
52874
52875         * lib/stdint.in.h: Add check that intmax_t and uintmax_t have the same
52876         size.
52877
52878 2007-10-22  Eric Blake  <ebb9@byu.net>
52879
52880         Tweak x*printf documentation.
52881         * lib/xprintf.c (xprintf, xvprintf, xfprintf, xvfprintf): Adjust
52882         variable name and comments.
52883         Suggested by Bruno Haible.
52884
52885 2007-10-22  Bruno Haible  <bruno@clisp.org>
52886
52887         * lib/acl.c (copy_acl): Fix file name in comment.
52888
52889 2007-10-22  Paul Eggert  <eggert@cs.ucla.edu>
52890
52891         Fix Tru64 problem with stdbool.h.
52892         * lib/stdbool.in.h (false, true):
52893         [! (defined __cplusplus || defined __BEOS__) && !defined __GNUC__]:
52894         Don't declare as an enum in this situation; it runs afoul of Tru64.
52895         Problem reported by Steven M. Schweda in
52896         <http://lists.gnu.org/archive/html/bug-autoconf/2007-10/msg00019.html>.
52897
52898 2007-10-22  Eric Blake  <ebb9@byu.net>
52899
52900         Also wrap vf?printf.
52901         * lib/xprintf.h (xvprintf, xvfprintf): New declarations.
52902         * lib/xprintf.c (xprintf, xfprintf): Work for C89.
52903         (xvprintf, xvfprintf): New functions.
52904
52905 2007-10-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
52906
52907         * modules/fstrcmp-tests (test_fstrcmp_LDADD): New, add
52908         @LIBINTL@ for FreeBSD 6.2, $(LIBTHREAD) for AIX 4.3.3.
52909
52910         * lib/uniconv/u16-conv-to-enc.c (U_MBLEN): Define.
52911         * lib/uniconv/u32-conv-to-enc.c (U_MBLEN): Likewise.
52912
52913 2007-10-22  Paul Eggert  <eggert@cs.ucla.edu>
52914
52915         * lib/acl.c (copy_acl): Adjust to IRIX 6.5.  Problem reported
52916         by Bruno Haible.
52917
52918 2007-10-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
52919
52920         * lib/getloadavg.c
52921         [defined (__osf__) && (defined (__alpha) || defined (__alpha__)]:
52922         Undef `sys' after including sys/table.h, for Tru64 4.0D.
52923
52924         * tests/test-i-ring.c: Work for C89.
52925
52926 2007-10-22  Bruno Haible  <bruno@clisp.org>
52927
52928         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Use -1ull, not
52929         -1u, in preprocessor expression, so that we don't test for the bug
52930         in HP-UX 11.00 cpp.  Testing for this bug caused problems; see
52931         <http://lists.gnu.org/archive/html/bug-gnulib/2007-10/msg00329.html>.
52932
52933 2007-10-22  Eric Blake  <ebb9@byu.net>
52934
52935         * tests/test-yesno.sh: Silence stderr during test.
52936
52937 2007-10-22  Simon Josefsson  <simon@josefsson.org>
52938
52939         * modules/crypto/gc-camellia: New file.
52940
52941         * m4/gc-camellia.m4: New file.
52942
52943         * lib/gc-libgcrypt.c (gc_cipher_open): Support Camellia.
52944
52945         * lib/gc.h (enum Gc_cipher): Add GC_CAMELLIA128, GC_CAMELLIA256.
52946
52947 2007-10-22  Simon Josefsson  <simon@josefsson.org>
52948
52949         * build-aux/maint.mk (gzip_rsyncable): Don't fail if gzip sends
52950         --help to stdout.  Reported by sms@antinode.org (Steven
52951         M. Schweda).
52952
52953 2007-10-22  Simon Josefsson  <simon@josefsson.org>
52954
52955         * users.txt: Fix link to libksba.
52956
52957 2007-10-21  Ben Pfaff  <blp@gnu.org>
52958
52959         * modules/roundf-tests: Add dependency on floorf, ceilf to allow
52960         round.c roundf implementation that depends on floorf and ceilf to
52961         be tested unconditionally.
52962
52963 2007-10-21  Ben Pfaff  <blp@gnu.org>
52964
52965         * m4/check-libm-func.m4: Removed.
52966         * m4/check-math-lib.m4: New file.
52967         * m4/round.m4: Rewrite to use gl_CHECK_MATH_LIB.
52968         * m4/roundf.m4: Ditto, and fix lack of HAVE_DECL_ROUNDF
52969         definition and lack of AC_LIBOBJ([roundf]).
52970         * m4/roundl.m4: Ditto, and similarly for roundl.
52971         * modules/round: Reference new m4 file.
52972         * modules/roundf: Ditto.
52973         * modules/roundl: Ditto.
52974         * tests/test-round2.c (main): Use ROUND instead of round.
52975         Bug report from Bruno Haible.
52976
52977 2007-10-21  Bruno Haible  <bruno@clisp.org>
52978
52979         * lib/printf-parse.c: Don't assume <stdint.h> exists in IN_LIBASPRINTF
52980         context.
52981
52982 2007-10-21  Bruno Haible  <bruno@clisp.org>
52983
52984         * tests/test-wcwidth.c (main): Allow negative result for some control
52985         characters.
52986
52987         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Check also the width of U+200B.
52988         Needed on OSF/1 5.1.
52989
52990 2007-10-21  Bruno Haible  <bruno@clisp.org>
52991
52992         * tests/test-floorf1.c: Include isnanf.h.
52993         (main): Use isnanf() instead of isnan().
52994         * tests/test-ceilf1.c: Include isnanf.h.
52995         (main): Use isnanf() instead of isnan().
52996         * tests/test-truncf1.c: Include isnanf.h.
52997         (main): Use isnanf() instead of isnan().
52998         * tests/test-roundf1.c: Include isnanf.h.
52999         (main): Use isnanf() instead of isnan().
53000
53001 2007-10-21  Eric Blake  <ebb9@byu.net>
53002
53003         * users.txt: Update URL for m4.
53004
53005 2007-10-21  Bruno Haible  <bruno@clisp.org>
53006
53007         * users.txt: Add clisp. Update URLs to Simon Josefsson's projects.
53008
53009 2007-10-21  Bruno Haible  <bruno@clisp.org>
53010
53011         * gnulib-tool (func_create_megatestdir): Determine the cvsdate from
53012         Git's management files if the CVS files are not present.
53013
53014 2007-10-20  Bruno Haible  <bruno@clisp.org>
53015
53016         * lib/count-one-bits.h (COUNT_ONE_BITS): Use the builtin also for
53017         gcc-3.4.x.
53018
53019 2007-10-20  Ben Pfaff  <blp@gnu.org>
53020
53021         * lib/math.in.h: Declare round, roundf, roundl if we are providing
53022         implementations.
53023         * m4/math_h.m4: New substitutions for round, roundf, roundl modules.
53024         * lib/round.c: New file.
53025         * lib/roundf.c: New file.
53026         * lib/roundl.c: New file.
53027         * m4/round.m4: New file.
53028         * m4/roundf.m4: New file.
53029         * m4/roundl.m4: New file.
53030         * m4/check-libm-func-m4: New file.
53031         * modules/math: Replace round, roundf, roundl related @VARS@ in
53032         math.in.h.
53033         * modules/round: New file.
53034         * modules/round-tests: New file.
53035         * modules/roundf: New file.
53036         * modules/roundf-tests: New file.
53037         * modules/roundl: New file.
53038         * modules/roundl-tests: New file.
53039         * tests/test-round1.c: New file.
53040         * tests/test-round2.c: New file.
53041         * tests/test-roundf1.c: New file.
53042         * tests/test-roundf2.c: New file.
53043         * tests/test-roundl.c: New file.
53044         * doc/functions/round.texi: Mention round module.
53045         * doc/functions/roundf.texi: Mention roundf module.
53046         * doc/functions/roundl.texi: Mention roundl module.
53047         * MODULES.html.sh: Mention new modules.
53048         Thanks to Bruno Haible for suggestions.
53049
53050 2007-10-20  Jim Meyering  <meyering@redhat.com>
53051
53052         * lib/xprintf.c: Include <config.h> unconditionally.
53053
53054         Change xprintf's license to GPL.
53055         * modules/xprintf (License): s/LGPL/GPL/, since this module
53056         depends on modules (exit and exitfail) which are GPL.
53057         Suggestion from Bruno Haible.
53058
53059         xprintf fixes.
53060         * lib/xprintf.c (xprintf, xfprintf): Use va_end.
53061         Use a clearer diagnostic.
53062         Patch from Bruno Haible.
53063
53064 2007-10-20  Bruno Haible  <bruno@clisp.org>
53065
53066         * lib/vasnprintf.c (VASNPRINTF): Don't report overflow if the available
53067         length is INT_MAX and sizeof (DCHAR_T) > sizeof (TCHAR_T).
53068         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
53069
53070 2007-10-20  Bruno Haible  <bruno@clisp.org>
53071
53072         * tests/test-floorf2.c (correct_result_p): Don't rely on excess
53073         precision in the comparison result > x - 1 or similar.
53074         * tests/test-ceilf2.c (correct_result_p): Likewise.
53075         * tests/test-truncf2.c (correct_result_p): Likewise.
53076         * tests/test-trunc2.c (correct_result_p): Likewise.
53077         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
53078
53079 2007-10-20  Bruno Haible  <bruno@clisp.org>
53080
53081         * modules/ceil: New file.
53082         * m4/ceil.m4: New file.
53083         * doc/functions/ceil.texi: Mention the 'ceil' module.
53084
53085 2007-10-20  Bruno Haible  <bruno@clisp.org>
53086
53087         * modules/floor: New file.
53088         * m4/floor.m4: New file.
53089         * doc/functions/floor.texi: Mention the 'floor' module.
53090
53091 2007-10-20  Bruno Haible  <bruno@clisp.org>
53092
53093         * modules/ceilf-tests (Depends-on): Add fprintf-posix. Needed for use
53094         of %a.
53095         * modules/floorf-tests (Depends-on): Likewise.
53096         * modules/truncf-tests (Depends-on): Likewise.
53097         * modules/trunc-tests (Depends-on): Likewise.
53098         Reported by Ben Pfaff.
53099
53100 2007-10-19  Jim Meyering  <meyering@redhat.com>
53101
53102         * lib/xprintf.c (xprintf, xfprintf): Test err < 0, not just "err".
53103         Don't bother testing specific errno values.  Just test ferror.
53104
53105         New module: xprintf
53106         * modules/xprintf, lib/xprintf.c, lib/xprintf.h: New files.
53107
53108 2007-10-19  Bruno Haible  <bruno@clisp.org>
53109
53110         * modules/csharpexec (Makefile.am): Use @FOO@ syntax instead of $(FOO)
53111         syntax.
53112         * modules/javaexec (Makefile.am): Likewise.
53113         * modules/relocatable-prog (Makefile.am): Likewise.
53114         Suggested by Jim Meyering.
53115
53116 2007-10-18  Bruno Haible  <bruno@clisp.org>
53117
53118         * lib/vasnprintf.c (VASNPRINTF): Don't use %n on glibc >= 2.3 systems.
53119         Reported by Jim Meyering.
53120
53121 2007-10-18  Eric Blake  <ebb9@byu.net>
53122
53123         * modules/filenamecat-tests (Makefile.am): Link against -lintl.
53124
53125 2007-10-18  Bruno Haible  <bruno@clisp.org>
53126
53127         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_N, gl_SNPRINTF_DIRECTIVE_N): Put
53128         the format string into writable memory. Needed in Fortify conditions.
53129
53130 2007-10-18  Colin Watson <cjwatson@debian.org>  (tiny change)
53131             Bruno Haible  <bruno@clisp.org>
53132
53133         * lib/trim.c: Include config.h unconditionally. Include trim.h always.
53134         Include ctype.h always. Include stdlib.h, not mbuiter.h, for MB_CUR_MAX.
53135         * modules/trim (Depends-on): Add mbchar.
53136         (configure.ac): Add gl_FUNC_MBRTOWC.
53137         (Makefile.am): Augment lib_SOURCES.
53138
53139 2007-10-17  Paul Eggert  <eggert@cs.ucla.edu>
53140
53141         Modify glob.c to use fstatat and dirfd, to simplify it.
53142         Suggested by Eric Blake.
53143         * lib/glob.c (__fxstatat64) [!_LIBC]: New macro.
53144         Don't include <stdbool.h>; not used.
53145         (link_exists2_p, glob_in_dir) [!_LIBC]: No longer a special case.
53146         (link_exists_p): Simplify implementation, since we can now assume
53147         dirfd and fstatat.
53148         * modules/glob (Depends-on): Add dirfd, openat.  Remove stdbool.
53149
53150 2007-10-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
53151
53152         * gnulib-tool (func_get_dependencies): Fix sed script to
53153         match only tests.
53154
53155 2007-10-17  Bruno Haible  <bruno@clisp.org>
53156
53157         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): On Cygwin, don't
53158         allow locale names without encoding suffix.
53159         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
53160         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
53161
53162 2007-10-16  Bruno Haible  <bruno@clisp.org>
53163
53164         * lib/getcwd.c (__getcwd): Define with explicit rpl_ prefix.
53165         * lib/getgroups.c (getgroups): Likewise.
53166         * lib/gettimeofday.c (localtime, gmtime, tzset): Likewise.
53167
53168 2007-10-16  Bruno Haible  <bruno@clisp.org>
53169
53170         * modules/absolute-header (License): Change from LGPL to LGPLv2+.
53171         * modules/malloc-posix (License): Likewise.
53172         * modules/realloc-posix (License): Likewise.
53173         * modules/calloc-posix (License): Likewise.
53174         * modules/intprops (License): Change from GPL to LGPL, with
53175         Paul Eggert's approval.
53176
53177 2007-10-16  Paul Eggert  <eggert@cs.ucla.edu>
53178
53179         Merge glibc changes into lib/glob.c.
53180
53181         * lib/glob.c (glob_in_dir): Sync with glibc/posix/glob.c, dated
53182         2007-10-15 04:59:03 UTC.  Here are the changes:
53183
53184         2007-10-14  Ulrich Drepper  <drepper@redhat.com>
53185
53186         * lib/glob.c: Reimplement link_exists_p to use fstatat64.
53187
53188         * lib/glob.c: Add some branch prediction throughout.
53189
53190         2007-10-07  Ulrich Drepper  <drepper@redhat.com>
53191
53192         [BZ #5103]
53193         * lib/glob.c (glob): Recognize patterns starting \/.
53194
53195         2007-02-14  Jakub Jelinek  <jakub@redhat.com>
53196
53197         [BZ #3996]
53198         * lib/glob.c (attribute_hidden): Define if not defined.
53199         (glob): Unescape dirname, filename or username when needed and not
53200         GLOB_NOESCAPE.  Handle \/ correctly.  Handle GLOB_MARK if filename
53201         is NULL.  Handle unescaped [ in pattern without closing ].
53202         Don't pass GLOB_CHECK down to recursive glob for directories.
53203         (__glob_pattern_type): New function.
53204         (__glob_pattern_p): Implement using __glob_pattern_type.
53205         (glob_in_dir): Handle GLOB_NOCHECK patterns containing no meta
53206         characters and backslashes if not GLOB_NOESCAPE or unterminated [.
53207         Remove unreachable code.
53208
53209         2006-09-30  Ulrich Drepper  <drepper@redhat.com>
53210
53211         * lib/glob.c (glob_in_dir): Add some comments and asserts to
53212         explain why there are no leaks.
53213
53214         2006-09-25  Jakub Jelinek  <jakub@redhat.com>
53215
53216         [BZ #3253]
53217         * lib/glob.c (glob_in_dir): Don't alloca one struct globlink at a
53218         time, rather allocate increasingly bigger arrays of pointers, if
53219         possible with alloca, if too large with malloc.
53220
53221 2007-10-16  Paul Eggert  <eggert@cs.ucla.edu>
53222
53223         Check for 64-bit int errors in HP-UX 10.20 preprocessor.
53224         Problem reported by H.Merijn Brand in
53225         <http://lists.gnu.org/archive/html/bug-tar/2007-10/msg00018.html>.
53226         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Check preprocessor too.
53227         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Likewise.
53228
53229 2007-10-15  Bruno Haible  <bruno@clisp.org>
53230
53231         * lib/fchdir.c (close, open, closedir, opendir, dup, dup2): Define
53232         with explicit rpl_ prefix.
53233         * lib/fopen.c (fopen): Likewise.
53234         * lib/freopen.c (freopen): Likewise.
53235         * lib/iconv.c (iconv): Likewise.
53236         * lib/iconv_close.c (iconv_close): Likewise.
53237
53238 2007-10-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
53239
53240         * m4/iconv_open (gl_FUNC_ICONV_OPEN_UTF): Fix cache variable name.
53241
53242 2007-10-15  Bruno Haible  <bruno@clisp.org>
53243
53244         * m4/getaddrinfo.m4 (gl_GETADDRINFO, gl_PREREQ_GETADDRINFO): Use
53245         <stddef.h> instead of <stdlib.h> since we only need NULL.
53246         Reported by Ben Pfaff <blp@cs.stanford.edu>.
53247
53248 2007-10-15  Bruno Haible  <bruno@clisp.org>
53249
53250         * doc/gnulib-tool.texi (Initial import): Swap order of -I directives.
53251         Replace paragraph talking about LIBOBJS.
53252         Reported by Colin Watson <cjwatson@debian.org>.
53253
53254 2007-10-15  Bruno Haible  <bruno@clisp.org>
53255
53256         * m4/getaddrinfo.m4 (gl_GETADDRINFO, gl_PREREQ_GETADDRINFO): Include
53257         <stdlib.h> before using NULL.
53258
53259 2007-10-15  Simon Josefsson  <simon@josefsson.org>
53260
53261         * m4/getaddrinfo.m4: Use NULL rather than 0 for pointers.
53262         Reported by Albert Chin <china@thewrittenword.com>.
53263
53264 2007-10-14  Bruno Haible  <bruno@clisp.org>
53265
53266         * modules/iconv_open-utf-tests: New file.
53267         * tests/test-iconv-utf.c: New file.
53268
53269         Enhance iconv_open to support UTF-16BE, UTF-16LE, UTF-32BE, UTF-32LE.
53270         * modules/iconv_open-utf: New file.
53271         * lib/iconv.in.h (_ICONV_UTF8_UTF*, _ICONV_UTF*_UTF8): New macros.
53272         (iconv, iconv_close): New declarations.
53273         * lib/iconv_open.c: Include c-strcase.h. Don't require ICONV_FLAVOR to
53274         be defined.
53275         (iconv_open): Add special handling of conversion between UTF-8 and
53276         UTF-{16,32}{BE,LE}.
53277         * lib/iconv.c: New file, incorporating code from GNU libiconv 1.11.
53278         * lib/iconv_close.c: New file.
53279         * m4/iconv_open.m4 (gl_REPLACE_ICONV_OPEN): New macro, extracted from
53280         gl_FUNC_ICONV_OPEN.
53281         (gl_FUNC_ICONV_OPEN): Use it.
53282         (gl_FUNC_ICONV_OPEN_UTF): New macro.
53283         * m4/iconv_h.m4 (gl_ICONV_H_DEFAULTS): Initialize also REPLACE_ICONV
53284         and REPLACE_ICONV_UTF.
53285         * modules/iconv_open (Depends-on): Add c-strcase.
53286         (Makefile.am): Substitute also REPLACE_ICONV, REPLACE_ICONV_UTF,
53287         ICONV_CONST.
53288         * doc/functions/iconv_open.texi: Mention the iconv_open-utf module.
53289
53290 2007-10-13  Albert Chin  <china@thewrittenword.com>
53291             Bruno Haible  <bruno@clisp.org>
53292
53293         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Perform the test for getaddrinfo
53294         through a link check that includes <netdb.h>. Needed for OSF/1 5.1.
53295
53296 2007-10-13  Bruno Haible  <bruno@clisp.org>
53297
53298         * lib/argp-fmtstream.h (ARGP_FS_EI): If __GNUC_STDC_INLINE__ is
53299         defined, use the ISO C99 inline semantics.
53300         * lib/argp.h (ARGP_EI): Likewise.
53301
53302 2007-10-13  Bruno Haible  <bruno@clisp.org>
53303
53304         Handle 'inline' change in gcc 4.3.0.
53305         * lib/argp-fmtstream.h (argp_fmtstream_putc, argp_fmtstream_puts,
53306         argp_fmtstream_write, argp_fmtstream_set_lmargin,
53307         argp_fmtstream_set_rmargin, argp_fmtstream_set_wmargin,
53308         argp_fmtstream_point): Disable 'extern' declaration if the function
53309         definition is going to be provided inline.
53310         (ARGP_FS_EI): If __GNUC_STDC_INLINE__ is defined, use the GNU C inline
53311         semantics, not the ISO C99 inline semantics.
53312         * lib/argp.h (argp_usage, _option_is_short, _option_is_end): Disable
53313         'extern' declaration if the function definition is going to be provided
53314         inline.
53315         (ARGP_EI): Don't assume GNU C. If __GNUC_STDC_INLINE__ is defined, use
53316         the GNU C inline semantics, not the ISO C99 inline semantics. With
53317         GCC 4.2, avoid a warning.
53318
53319 2007-10-13  Bruno Haible  <bruno@clisp.org>
53320
53321         * lib/freading.h (freading): Enable the use of __freading for
53322         glibc >= 2.7.
53323         * lib/freading.c (freading): Likewise.
53324
53325 2007-10-12  Paul Eggert  <eggert@cs.ucla.edu>
53326
53327         * lib/argp-fmtstream.h (ARGP_FS_EI): Work around GCC 4.2.1 diagnostic
53328         "warning: C99 inline functions are not supported; using GNU89".
53329
53330 2007-10-12  Bruno Haible  <bruno@clisp.org>
53331
53332         * lib/ceil.c (FUNC): Avoid rounding errors for values near a power
53333         of 2.
53334         * tests/test-ceilf2.c: New file.
53335         * modules/ceilf-tests: (Files, Depends-on, Makefile.am): Add new test.
53336
53337         * tests/test-ceilf1.c: Renamed from tests/test-ceilf.c.
53338         * modules/ceilf-tests: Update.
53339
53340 2007-10-12  Bruno Haible  <bruno@clisp.org>
53341
53342         * lib/floor.c (FUNC): Avoid rounding errors for values near a power
53343         of 2.
53344         * tests/test-floorf2.c: New file.
53345         * modules/floorf-tests: (Files, Depends-on, Makefile.am): Add new test.
53346
53347         * tests/test-floorf1.c: Renamed from tests/test-floorf.c.
53348         * modules/floorf-tests: Update.
53349
53350 2007-10-12  Bruno Haible  <bruno@clisp.org>
53351
53352         * tests/test-trunc2.c: New file.
53353         * modules/trunc-tests: (Files, Depends-on, Makefile.am): Add new test.
53354
53355         * tests/test-trunc1.c: Renamed from tests/test-trunc.c.
53356         * modules/trunc-tests: Update.
53357
53358 2007-10-12  Bruno Haible  <bruno@clisp.org>
53359
53360         * lib/trunc.c (FUNC): Avoid rounding errors for values near a power
53361         of 2.
53362         * tests/test-truncf2.c: New file.
53363         * modules/truncf-tests: (Files, Depends-on, Makefile.am): Add new test.
53364
53365         * tests/test-truncf1.c: Renamed from tests/test-truncf.c.
53366         * modules/truncf-tests: Update.
53367
53368 2007-10-11  Eric Blake  <ebb9@byu.net>
53369
53370         Don't claim strerror is broken on Interix.
53371         * doc/functions/strerror.texi (strerror): Known broken systems are
53372         now Solaris 8, and not Interix.
53373         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): No longer filter out
53374         Interix on cross-compile.
53375         Reported by Martin Koeppe in
53376         http://lists.gnu.org/archive/html/bug-gnulib/2007-10/msg00005.html.
53377
53378 2007-10-11  Bruno Haible  <bruno@clisp.org>
53379
53380         * modules/i-ring-tests: New file.
53381         * tests/test-i-ring.c: Renamed from lib/i-ring-test.c. Use ASSERT
53382         instead of assert.
53383
53384 2007-10-11  Bruno Haible  <bruno@clisp.org>
53385
53386         * modules/filenamecat-tests: New file.
53387         * tests/test-filenamecat.c: New file, extracted from lib/filenamecat.c.
53388         * lib/filenamecat.c: Remove test code.
53389
53390 2007-10-11  Paul Eggert  <eggert@cs.ucla.edu>
53391
53392         Simplify and modernize strerror substitute, partly to fix Solaris 8 bug.
53393
53394         * lib/strerror.c: Include <string.h> always, to test interface,
53395         and to remove the need for the dummy.
53396         Include intprops.h to compute width instead of doing it ourselves
53397         and missing a CHAR_BIT declaration, which broke tar 1.19 on Solaris 8.
53398         (strerror): Define it to return NULL if there's no system strerror.
53399         (rpl_strerror): Use INT_STRLEN_BOUND to compute bound.
53400         Omit !HAVE_STRERROR code.  We don't need to worry about supporting
53401         ancient pre-strerror Unix systems well any more.  Saying "unknown
53402         system error" is enough.
53403         * lib/string.in.h (strerror): Simplify the ifdef to reflect the
53404         simpler strerror.c implementation.
53405         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE, gl_PREREQ_STDERROR):
53406         Simplify the tests to reflect the simpler strerror implementation.
53407         * modules/strerror (Depends-on): Add intprops.
53408
53409 2007-10-09  Eric Blake  <ebb9@byu.net>
53410
53411         Silence test-fpending.
53412         * modules/fpending-tests (Files): Add wrapper script.
53413         * tests/test-fpending.sh: New file.
53414
53415 2007-10-09  Bruno Haible  <bruno@clisp.org>
53416
53417         * MODULES.html.sh (func_module): Don't create a hyperlink for
53418         function names like 'printf_frexp'.
53419         (Misc): Add crc, memxor.
53420         (Characteristics of floating types): New section.
53421         (Mathematics): Add ceilf, ceill, floorf, floorl, frexpl-nolibm,
53422         isnanf-nolibm, signbit, trunc, truncf, truncl.
53423         (Enhancements for ISO C 99 functions): New subsection Input/output.
53424         (Support for systems lacking POSIX:2001): Add arpa_inet, calloc-posix,
53425         fcntl, fopen, freopen, fseek, fseeko, ftell, ftello, iconv_open,
53426         locale, malloc-posix, netinet_in, open, realloc-posix, signal, sleep.
53427         (Compatibility checks for POSIX:2001 functions): Add clock-time.
53428         (Enhancements for POSIX:2001 functions): Add chdir-long.
53429         (File system functions): Add areadlink, chdir-safer, read-file.
53430         Remove cycle-check.
53431         (File system as inode set): New section.
53432         (Date and time): Add gethrxtime.
53433         (Multithreading): Add openmp.
53434         (Internationalization functions): Add localename.
53435         (Unicode string functions): Add unistr/u*-mbsnlen.
53436         (Support for maintaining and releasing projects): Add git-version-gen.
53437         (Lone files): Remove directories.
53438
53439 2007-10-08  Ben Pfaff  <blp@gnu.org>
53440
53441         * lib/xmalloca.h: Fix typo in comment.
53442
53443 2007-10-08  Paul Eggert  <eggert@cs.ucla.edu>
53444
53445         * lib/xnanosleep.c (xnanosleep): Don't assume GCC 4.3.0 behavior
53446         when avoiding problems with integer overflow.  Use a portable test
53447         instead.
53448
53449 2007-10-08  Simon Josefsson  <simon@josefsson.org>
53450
53451         * modules/dummy (License): Change to LGPLv2+.
53452         * modules/float (License): Likewise
53453         * modules/realloc (License): Likewise
53454         * modules/stdlib (License): Likewise
53455
53456 2007-10-07  Bruno Haible  <bruno@clisp.org>
53457
53458         * trunc.c (TWO_MANT_DIG): Change type to DOUBLE.
53459         * floor.c (TWO_MANT_DIG): Likewise.
53460         * ceil.c (TWO_MANT_DIG): Likewise.
53461         Reported by Ben Pfaff.
53462
53463 2007-10-07  Bruno Haible  <bruno@clisp.org>
53464
53465         Avoid gcc warnings "declaration of 'exp' shadows a global declaration".
53466         * lib/math.in.h (frexp, frexpl): Change parameter name to 'expptr'.
53467         * lib/frexp.c (FUNC): Likewise.
53468         * lib/printf-frexp.h (printf_frexp): Likewise.
53469         * lib/printf-frexpl.h (printf_frexpl): Likewise.
53470         * lib/printf-frexp.c (FUNC): Likewise.
53471         Suggested by Jim Meyering.
53472
53473 2007-10-07  Jim Meyering  <meyering@redhat.com>
53474
53475         Make xnanosleep's integer overflow test more robust.
53476         * lib/xnanosleep.c (xnanosleep): Declare a temporary to be "volatile",
53477         so that gcc-4.3.0 doesn't optimize away this test for overflow.
53478
53479 2007-10-07  Bruno Haible  <bruno@clisp.org>
53480
53481         * NEWS: Mention the license change.
53482
53483         * doc/gnulib-intro.texi (Copyright): Update the meaning of the license
53484         abbreviations in the modules files.
53485
53486         Change copyright notice from GPLv2+ to GPLv3+.
53487         * README: Change copyright notice.
53488         * MODULES.html.sh: Likewise.
53489         * build-aux/bootstrap.conf: Likewise.
53490         * build-aux/config.libpath: Likewise.
53491         * build-aux/csharpcomp.sh.in: Likewise.
53492         * build-aux/csharpexec.sh.in: Likewise.
53493         * build-aux/install-reloc: Likewise.
53494         * build-aux/javacomp.sh.in: Likewise.
53495         * build-aux/javaexec.sh.in: Likewise.
53496         * build-aux/ldd.sh.in: Likewise.
53497         * build-aux/reloc-ldflags: Likewise.
53498         * build-aux/relocatable.sh.in: Likewise.
53499         * build-aux/x-to-1.in: Likewise.
53500         * check-module: Likewise.
53501         * config/srclistvars.sh: Likewise.
53502         * gnulib-tool: Likewise.
53503         * lib/acl-internal.h: Likewise.
53504         * lib/acl.c: Likewise.
53505         * lib/acl.h: Likewise.
53506         * lib/acl_entries.c: Likewise.
53507         * lib/areadlink-with-size.c: Likewise.
53508         * lib/areadlink.c: Likewise.
53509         * lib/areadlink.h: Likewise.
53510         * lib/argmatch.c: Likewise.
53511         * lib/argmatch.h: Likewise.
53512         * lib/argp-ba.c: Likewise.
53513         * lib/argp-eexst.c: Likewise.
53514         * lib/argp-fmtstream.c: Likewise.
53515         * lib/argp-fmtstream.h: Likewise.
53516         * lib/argp-fs-xinl.c: Likewise.
53517         * lib/argp-help.c: Likewise.
53518         * lib/argp-namefrob.h: Likewise.
53519         * lib/argp-parse.c: Likewise.
53520         * lib/argp-pin.c: Likewise.
53521         * lib/argp-pv.c: Likewise.
53522         * lib/argp-pvh.c: Likewise.
53523         * lib/argp-xinl.c: Likewise.
53524         * lib/argp.h: Likewise.
53525         * lib/at-func.c: Likewise.
53526         * lib/atanl.c: Likewise.
53527         * lib/backupfile.c: Likewise.
53528         * lib/backupfile.h: Likewise.
53529         * lib/basename.c: Likewise.
53530         * lib/binary-io.h: Likewise.
53531         * lib/byteswap.in.h: Likewise.
53532         * lib/c-stack.c: Likewise.
53533         * lib/c-stack.h: Likewise.
53534         * lib/c-strcasestr.c: Likewise.
53535         * lib/c-strcasestr.h: Likewise.
53536         * lib/c-strstr.c: Likewise.
53537         * lib/c-strstr.h: Likewise.
53538         * lib/c-strtod.c: Likewise.
53539         * lib/calloc.c: Likewise.
53540         * lib/canon-host.c: Likewise.
53541         * lib/canon-host.h: Likewise.
53542         * lib/canonicalize-lgpl.c: Likewise.
53543         * lib/canonicalize.c: Likewise.
53544         * lib/canonicalize.h: Likewise.
53545         * lib/ceil.c: Likewise.
53546         * lib/ceilf.c: Likewise.
53547         * lib/ceill.c: Likewise.
53548         * lib/chdir-long.c: Likewise.
53549         * lib/chdir-long.h: Likewise.
53550         * lib/chdir-safer.c: Likewise.
53551         * lib/chdir-safer.h: Likewise.
53552         * lib/chown.c: Likewise.
53553         * lib/classpath.c: Likewise.
53554         * lib/classpath.h: Likewise.
53555         * lib/clean-temp.c: Likewise.
53556         * lib/clean-temp.h: Likewise.
53557         * lib/cloexec.c: Likewise.
53558         * lib/close-stream.c: Likewise.
53559         * lib/closein.c: Likewise.
53560         * lib/closein.h: Likewise.
53561         * lib/closeout.c: Likewise.
53562         * lib/closeout.h: Likewise.
53563         * lib/concat-filename.c: Likewise.
53564         * lib/copy-file.c: Likewise.
53565         * lib/copy-file.h: Likewise.
53566         * lib/count-one-bits.h: Likewise.
53567         * lib/crc.c: Likewise.
53568         * lib/crc.h: Likewise.
53569         * lib/creat-safer.c: Likewise.
53570         * lib/csharpcomp.c: Likewise.
53571         * lib/csharpcomp.h: Likewise.
53572         * lib/csharpexec.c: Likewise.
53573         * lib/csharpexec.h: Likewise.
53574         * lib/cycle-check.c: Likewise.
53575         * lib/cycle-check.h: Likewise.
53576         * lib/diacrit.c: Likewise.
53577         * lib/diacrit.h: Likewise.
53578         * lib/diffseq.h: Likewise.
53579         * lib/dirchownmod.c: Likewise.
53580         * lib/dirent.in.h: Likewise.
53581         * lib/dirfd.c: Likewise.
53582         * lib/dirfd.h: Likewise.
53583         * lib/dirname.c: Likewise.
53584         * lib/dirname.h: Likewise.
53585         * lib/dummy.c: Likewise.
53586         * lib/dup-safer.c: Likewise.
53587         * lib/dup2.c: Likewise.
53588         * lib/eealloc.h: Likewise.
53589         * lib/error.c: Likewise.
53590         * lib/error.h: Likewise.
53591         * lib/euidaccess.c: Likewise.
53592         * lib/exclude.c: Likewise.
53593         * lib/exclude.h: Likewise.
53594         * lib/execute.c: Likewise.
53595         * lib/execute.h: Likewise.
53596         * lib/exitfail.c: Likewise.
53597         * lib/exitfail.h: Likewise.
53598         * lib/expl.c: Likewise.
53599         * lib/fatal-signal.c: Likewise.
53600         * lib/fatal-signal.h: Likewise.
53601         * lib/fbufmode.c: Likewise.
53602         * lib/fbufmode.h: Likewise.
53603         * lib/fchdir.c: Likewise.
53604         * lib/fchmodat.c: Likewise.
53605         * lib/fchownat.c: Likewise.
53606         * lib/fcntl--.h: Likewise.
53607         * lib/fcntl-safer.h: Likewise.
53608         * lib/fcntl.in.h: Likewise.
53609         * lib/fd-safer.c: Likewise.
53610         * lib/fflush.c: Likewise.
53611         * lib/file-has-acl.c: Likewise.
53612         * lib/file-set.c: Likewise.
53613         * lib/file-type.c: Likewise.
53614         * lib/file-type.h: Likewise.
53615         * lib/fileblocks.c: Likewise.
53616         * lib/filemode.c: Likewise.
53617         * lib/filemode.h: Likewise.
53618         * lib/filename.h: Likewise.
53619         * lib/filenamecat.c: Likewise.
53620         * lib/filenamecat.h: Likewise.
53621         * lib/findprog.c: Likewise.
53622         * lib/findprog.h: Likewise.
53623         * lib/float.in.h: Likewise.
53624         * lib/floor.c: Likewise.
53625         * lib/floorf.c: Likewise.
53626         * lib/floorl.c: Likewise.
53627         * lib/fopen-safer.c: Likewise.
53628         * lib/fopen.c: Likewise.
53629         * lib/fpending.c: Likewise.
53630         * lib/fpending.h: Likewise.
53631         * lib/fprintf.c: Likewise.
53632         * lib/fprintftime.h: Likewise.
53633         * lib/fpucw.h: Likewise.
53634         * lib/fpurge.c: Likewise.
53635         * lib/fpurge.h: Likewise.
53636         * lib/freadable.c: Likewise.
53637         * lib/freadable.h: Likewise.
53638         * lib/freadahead.c: Likewise.
53639         * lib/freadahead.h: Likewise.
53640         * lib/freading.c: Likewise.
53641         * lib/freading.h: Likewise.
53642         * lib/free.c: Likewise.
53643         * lib/freopen.c: Likewise.
53644         * lib/frexp.c: Likewise.
53645         * lib/frexpl.c: Likewise.
53646         * lib/fseek.c: Likewise.
53647         * lib/fseterr.c: Likewise.
53648         * lib/fseterr.h: Likewise.
53649         * lib/fstatat.c: Likewise.
53650         * lib/fstrcmp.c: Likewise.
53651         * lib/fstrcmp.h: Likewise.
53652         * lib/fsusage.c: Likewise.
53653         * lib/fsusage.h: Likewise.
53654         * lib/ftell.c: Likewise.
53655         * lib/ftello.c: Likewise.
53656         * lib/fts-cycle.c: Likewise.
53657         * lib/fts.c: Likewise.
53658         * lib/fts_.h: Likewise.
53659         * lib/full-read.c: Likewise.
53660         * lib/full-read.h: Likewise.
53661         * lib/full-write.c: Likewise.
53662         * lib/full-write.h: Likewise.
53663         * lib/fwritable.c: Likewise.
53664         * lib/fwritable.h: Likewise.
53665         * lib/fwriteerror.c: Likewise.
53666         * lib/fwriteerror.h: Likewise.
53667         * lib/fwriting.c: Likewise.
53668         * lib/fwriting.h: Likewise.
53669         * lib/gcd.c: Likewise.
53670         * lib/gcd.h: Likewise.
53671         * lib/getcwd.c: Likewise.
53672         * lib/getdate.h: Likewise.
53673         * lib/getdate.y: Likewise.
53674         * lib/getdomainname.c: Likewise.
53675         * lib/getdomainname.h: Likewise.
53676         * lib/getgroups.c: Likewise.
53677         * lib/gethostname.c: Likewise.
53678         * lib/gethrxtime.c: Likewise.
53679         * lib/gethrxtime.h: Likewise.
53680         * lib/getloadavg.c: Likewise.
53681         * lib/getndelim2.c: Likewise.
53682         * lib/getndelim2.h: Likewise.
53683         * lib/getnline.c: Likewise.
53684         * lib/getnline.h: Likewise.
53685         * lib/getopt.c: Likewise.
53686         * lib/getopt.in.h: Likewise.
53687         * lib/getopt1.c: Likewise.
53688         * lib/getopt_int.h: Likewise.
53689         * lib/getpagesize.h: Likewise.
53690         * lib/getsubopt.c: Likewise.
53691         * lib/gettime.c: Likewise.
53692         * lib/getugroups.c: Likewise.
53693         * lib/getugroups.h: Likewise.
53694         * lib/getusershell.c: Likewise.
53695         * lib/gl_anyavltree_list1.h: Likewise.
53696         * lib/gl_anyavltree_list2.h: Likewise.
53697         * lib/gl_anyhash_list1.h: Likewise.
53698         * lib/gl_anyhash_list2.h: Likewise.
53699         * lib/gl_anylinked_list1.h: Likewise.
53700         * lib/gl_anylinked_list2.h: Likewise.
53701         * lib/gl_anyrbtree_list1.h: Likewise.
53702         * lib/gl_anyrbtree_list2.h: Likewise.
53703         * lib/gl_anytree_list1.h: Likewise.
53704         * lib/gl_anytree_list2.h: Likewise.
53705         * lib/gl_anytree_oset.h: Likewise.
53706         * lib/gl_anytreehash_list1.h: Likewise.
53707         * lib/gl_anytreehash_list2.h: Likewise.
53708         * lib/gl_array_list.c: Likewise.
53709         * lib/gl_array_list.h: Likewise.
53710         * lib/gl_array_oset.c: Likewise.
53711         * lib/gl_array_oset.h: Likewise.
53712         * lib/gl_avltree_list.c: Likewise.
53713         * lib/gl_avltree_list.h: Likewise.
53714         * lib/gl_avltree_oset.c: Likewise.
53715         * lib/gl_avltree_oset.h: Likewise.
53716         * lib/gl_avltreehash_list.c: Likewise.
53717         * lib/gl_avltreehash_list.h: Likewise.
53718         * lib/gl_carray_list.c: Likewise.
53719         * lib/gl_carray_list.h: Likewise.
53720         * lib/gl_linked_list.c: Likewise.
53721         * lib/gl_linked_list.h: Likewise.
53722         * lib/gl_linkedhash_list.c: Likewise.
53723         * lib/gl_linkedhash_list.h: Likewise.
53724         * lib/gl_list.c: Likewise.
53725         * lib/gl_list.h: Likewise.
53726         * lib/gl_oset.c: Likewise.
53727         * lib/gl_oset.h: Likewise.
53728         * lib/gl_rbtree_list.c: Likewise.
53729         * lib/gl_rbtree_list.h: Likewise.
53730         * lib/gl_rbtree_oset.c: Likewise.
53731         * lib/gl_rbtree_oset.h: Likewise.
53732         * lib/gl_rbtreehash_list.c: Likewise.
53733         * lib/gl_rbtreehash_list.h: Likewise.
53734         * lib/gl_sublist.c: Likewise.
53735         * lib/gl_sublist.h: Likewise.
53736         * lib/group-member.c: Likewise.
53737         * lib/group-member.h: Likewise.
53738         * lib/hard-locale.c: Likewise.
53739         * lib/hard-locale.h: Likewise.
53740         * lib/hash-pjw.c: Likewise.
53741         * lib/hash-pjw.h: Likewise.
53742         * lib/hash-triple.c: Likewise.
53743         * lib/hash.c: Likewise.
53744         * lib/hash.h: Likewise.
53745         * lib/human.c: Likewise.
53746         * lib/human.h: Likewise.
53747         * lib/i-ring.c: Likewise.
53748         * lib/i-ring.h: Likewise.
53749         * lib/idcache.c: Likewise.
53750         * lib/imaxabs.c: Likewise.
53751         * lib/imaxdiv.c: Likewise.
53752         * lib/inet_pton.c: Likewise.
53753         * lib/inet_pton.h: Likewise.
53754         * lib/intprops.h: Likewise.
53755         * lib/inttostr.c: Likewise.
53756         * lib/inttostr.h: Likewise.
53757         * lib/inttypes.in.h: Likewise.
53758         * lib/isapipe.c: Likewise.
53759         * lib/isdir.c: Likewise.
53760         * lib/isnan.c: Likewise.
53761         * lib/isnan.h: Likewise.
53762         * lib/isnanf.c: Likewise.
53763         * lib/isnanf.h: Likewise.
53764         * lib/isnanl-nolibm.h: Likewise.
53765         * lib/isnanl.c: Likewise.
53766         * lib/isnanl.h: Likewise.
53767         * lib/javacomp.c: Likewise.
53768         * lib/javacomp.h: Likewise.
53769         * lib/javaexec.c: Likewise.
53770         * lib/javaexec.h: Likewise.
53771         * lib/javaversion.c: Likewise.
53772         * lib/javaversion.h: Likewise.
53773         * lib/javaversion.java: Likewise.
53774         * lib/lbrkprop.h: Likewise.
53775         * lib/lchmod.h: Likewise.
53776         * lib/lchown.c: Likewise.
53777         * lib/ldexpl.c: Likewise.
53778         * lib/linebreak.c: Likewise.
53779         * lib/linebreak.h: Likewise.
53780         * lib/linebuffer.c: Likewise.
53781         * lib/linebuffer.h: Likewise.
53782         * lib/locale.in.h: Likewise.
53783         * lib/logl.c: Likewise.
53784         * lib/long-options.c: Likewise.
53785         * lib/long-options.h: Likewise.
53786         * lib/lstat.c: Likewise.
53787         * lib/lstat.h: Likewise.
53788         * lib/math.in.h: Likewise.
53789         * lib/mbchar.c: Likewise.
53790         * lib/mbchar.h: Likewise.
53791         * lib/mbfile.h: Likewise.
53792         * lib/mbiter.h: Likewise.
53793         * lib/mbscasecmp.c: Likewise.
53794         * lib/mbscasestr.c: Likewise.
53795         * lib/mbschr.c: Likewise.
53796         * lib/mbscspn.c: Likewise.
53797         * lib/mbslen.c: Likewise.
53798         * lib/mbsncasecmp.c: Likewise.
53799         * lib/mbsnlen.c: Likewise.
53800         * lib/mbspbrk.c: Likewise.
53801         * lib/mbspcasecmp.c: Likewise.
53802         * lib/mbsrchr.c: Likewise.
53803         * lib/mbssep.c: Likewise.
53804         * lib/mbsspn.c: Likewise.
53805         * lib/mbsstr.c: Likewise.
53806         * lib/mbstok_r.c: Likewise.
53807         * lib/mbswidth.c: Likewise.
53808         * lib/mbswidth.h: Likewise.
53809         * lib/mbuiter.h: Likewise.
53810         * lib/memcasecmp.c: Likewise.
53811         * lib/memcasecmp.h: Likewise.
53812         * lib/memchr.c: Likewise.
53813         * lib/memcmp.c: Likewise.
53814         * lib/memcoll.c: Likewise.
53815         * lib/memcoll.h: Likewise.
53816         * lib/memcpy.c: Likewise.
53817         * lib/memrchr.c: Likewise.
53818         * lib/mkancesdirs.c: Likewise.
53819         * lib/mkdir-p.c: Likewise.
53820         * lib/mkdir-p.h: Likewise.
53821         * lib/mkdir.c: Likewise.
53822         * lib/mkdirat.c: Likewise.
53823         * lib/mkdtemp.c: Likewise.
53824         * lib/mkstemp-safer.c: Likewise.
53825         * lib/mkstemp.c: Likewise.
53826         * lib/modechange.c: Likewise.
53827         * lib/modechange.h: Likewise.
53828         * lib/mountlist.c: Likewise.
53829         * lib/mountlist.h: Likewise.
53830         * lib/mpsort.c: Likewise.
53831         * lib/nanosleep.c: Likewise.
53832         * lib/obstack.c: Likewise.
53833         * lib/obstack.h: Likewise.
53834         * lib/open-safer.c: Likewise.
53835         * lib/open.c: Likewise.
53836         * lib/openat-die.c: Likewise.
53837         * lib/openat-priv.h: Likewise.
53838         * lib/openat-proc.c: Likewise.
53839         * lib/openat.c: Likewise.
53840         * lib/openat.h: Likewise.
53841         * lib/pagealign_alloc.c: Likewise.
53842         * lib/pagealign_alloc.h: Likewise.
53843         * lib/physmem.c: Likewise.
53844         * lib/physmem.h: Likewise.
53845         * lib/pipe-safer.c: Likewise.
53846         * lib/pipe.c: Likewise.
53847         * lib/pipe.h: Likewise.
53848         * lib/posixtm.c: Likewise.
53849         * lib/posixtm.h: Likewise.
53850         * lib/posixver.c: Likewise.
53851         * lib/printf-frexp.c: Likewise.
53852         * lib/printf-frexp.h: Likewise.
53853         * lib/printf-frexpl.c: Likewise.
53854         * lib/printf-frexpl.h: Likewise.
53855         * lib/printf.c: Likewise.
53856         * lib/progname.c: Likewise.
53857         * lib/progname.h: Likewise.
53858         * lib/progreloc.c: Likewise.
53859         * lib/putenv.c: Likewise.
53860         * lib/quote.c: Likewise.
53861         * lib/quote.h: Likewise.
53862         * lib/quotearg.c: Likewise.
53863         * lib/quotearg.h: Likewise.
53864         * lib/raise.c: Likewise.
53865         * lib/readline.c: Likewise.
53866         * lib/readline.h: Likewise.
53867         * lib/readlink.c: Likewise.
53868         * lib/readtokens.c: Likewise.
53869         * lib/readtokens.h: Likewise.
53870         * lib/readtokens0.c: Likewise.
53871         * lib/readtokens0.h: Likewise.
53872         * lib/readutmp.c: Likewise.
53873         * lib/readutmp.h: Likewise.
53874         * lib/realloc.c: Likewise.
53875         * lib/relocwrapper.c: Likewise.
53876         * lib/rename-dest-slash.c: Likewise.
53877         * lib/rename.c: Likewise.
53878         * lib/rmdir.c: Likewise.
53879         * lib/rpmatch.c: Likewise.
53880         * lib/safe-read.c: Likewise.
53881         * lib/safe-read.h: Likewise.
53882         * lib/safe-write.c: Likewise.
53883         * lib/safe-write.h: Likewise.
53884         * lib/same-inode.h: Likewise.
53885         * lib/same.c: Likewise.
53886         * lib/same.h: Likewise.
53887         * lib/save-cwd.c: Likewise.
53888         * lib/save-cwd.h: Likewise.
53889         * lib/savedir.c: Likewise.
53890         * lib/savedir.h: Likewise.
53891         * lib/savewd.c: Likewise.
53892         * lib/savewd.h: Likewise.
53893         * lib/search.in.h: Likewise.
53894         * lib/setenv.c: Likewise.
53895         * lib/setenv.h: Likewise.
53896         * lib/settime.c: Likewise.
53897         * lib/sh-quote.c: Likewise.
53898         * lib/sh-quote.h: Likewise.
53899         * lib/sig2str.c: Likewise.
53900         * lib/sig2str.h: Likewise.
53901         * lib/signal.in.h: Likewise.
53902         * lib/signbitd.c: Likewise.
53903         * lib/signbitf.c: Likewise.
53904         * lib/signbitl.c: Likewise.
53905         * lib/sigprocmask.c: Likewise.
53906         * lib/sincosl.c: Likewise.
53907         * lib/sleep.c: Likewise.
53908         * lib/sprintf.c: Likewise.
53909         * lib/sqrtl.c: Likewise.
53910         * lib/stat-time.h: Likewise.
53911         * lib/stdio--.h: Likewise.
53912         * lib/stdio-safer.h: Likewise.
53913         * lib/stdlib--.h: Likewise.
53914         * lib/stdlib-safer.h: Likewise.
53915         * lib/stdlib.in.h: Likewise.
53916         * lib/stpcpy.c: Likewise.
53917         * lib/stpncpy.c: Likewise.
53918         * lib/strchrnul.c: Likewise.
53919         * lib/strcspn.c: Likewise.
53920         * lib/strerror.c: Likewise.
53921         * lib/strftime.c: Likewise.
53922         * lib/strftime.h: Likewise.
53923         * lib/striconveh.c: Likewise.
53924         * lib/striconveh.h: Likewise.
53925         * lib/striconveha.c: Likewise.
53926         * lib/striconveha.h: Likewise.
53927         * lib/stripslash.c: Likewise.
53928         * lib/strnlen1.c: Likewise.
53929         * lib/strnlen1.h: Likewise.
53930         * lib/strtod.c: Likewise.
53931         * lib/strtoimax.c: Likewise.
53932         * lib/strtok_r.c: Likewise.
53933         * lib/strtol.c: Likewise.
53934         * lib/strtoll.c: Likewise.
53935         * lib/strtoul.c: Likewise.
53936         * lib/strtoull.c: Likewise.
53937         * lib/sysexits.in.h: Likewise.
53938         * lib/tempname.c: Likewise.
53939         * lib/tempname.h: Likewise.
53940         * lib/timespec.h: Likewise.
53941         * lib/tls.c: Likewise.
53942         * lib/tls.h: Likewise.
53943         * lib/tmpdir.c: Likewise.
53944         * lib/tmpdir.h: Likewise.
53945         * lib/tmpfile-safer.c: Likewise.
53946         * lib/tmpfile.c: Likewise.
53947         * lib/trigl.c: Likewise.
53948         * lib/trigl.h: Likewise.
53949         * lib/trim.c: Likewise.
53950         * lib/trim.h: Likewise.
53951         * lib/trunc.c: Likewise.
53952         * lib/truncf.c: Likewise.
53953         * lib/truncl.c: Likewise.
53954         * lib/tsearch.c: Likewise.
53955         * lib/unicodeio.c: Likewise.
53956         * lib/unicodeio.h: Likewise.
53957         * lib/unistd--.h: Likewise.
53958         * lib/unistd-safer.h: Likewise.
53959         * lib/unistdio/ulc-fprintf.c: Likewise.
53960         * lib/unistdio/ulc-vfprintf.c: Likewise.
53961         * lib/unlinkdir.c: Likewise.
53962         * lib/unlinkdir.h: Likewise.
53963         * lib/unlocked-io.h: Likewise.
53964         * lib/unsetenv.c: Likewise.
53965         * lib/userspec.c: Likewise.
53966         * lib/utime.c: Likewise.
53967         * lib/utimecmp.c: Likewise.
53968         * lib/utimecmp.h: Likewise.
53969         * lib/utimens.c: Likewise.
53970         * lib/verify.h: Likewise.
53971         * lib/verror.c: Likewise.
53972         * lib/verror.h: Likewise.
53973         * lib/version-etc-fsf.c: Likewise.
53974         * lib/version-etc.c: Likewise.
53975         * lib/version-etc.h: Likewise.
53976         * lib/vfprintf.c: Likewise.
53977         * lib/vprintf.c: Likewise.
53978         * lib/vsprintf.c: Likewise.
53979         * lib/w32spawn.h: Likewise.
53980         * lib/wait-process.c: Likewise.
53981         * lib/wait-process.h: Likewise.
53982         * lib/wcwidth.c: Likewise.
53983         * lib/write-any-file.c: Likewise.
53984         * lib/xalloc-die.c: Likewise.
53985         * lib/xalloc.h: Likewise.
53986         * lib/xasprintf.c: Likewise.
53987         * lib/xgetcwd.c: Likewise.
53988         * lib/xgetcwd.h: Likewise.
53989         * lib/xgetdomainname.c: Likewise.
53990         * lib/xgetdomainname.h: Likewise.
53991         * lib/xgethostname.c: Likewise.
53992         * lib/xmalloc.c: Likewise.
53993         * lib/xmalloca.c: Likewise.
53994         * lib/xmalloca.h: Likewise.
53995         * lib/xmemcoll.c: Likewise.
53996         * lib/xnanosleep.c: Likewise.
53997         * lib/xreadlink.c: Likewise.
53998         * lib/xreadlink.h: Likewise.
53999         * lib/xsetenv.c: Likewise.
54000         * lib/xsetenv.h: Likewise.
54001         * lib/xstriconv.c: Likewise.
54002         * lib/xstriconv.h: Likewise.
54003         * lib/xstrndup.c: Likewise.
54004         * lib/xstrndup.h: Likewise.
54005         * lib/xstrtod.c: Likewise.
54006         * lib/xstrtod.h: Likewise.
54007         * lib/xstrtol-error.c: Likewise.
54008         * lib/xstrtol.c: Likewise.
54009         * lib/xstrtol.h: Likewise.
54010         * lib/xtime.h: Likewise.
54011         * lib/xvasprintf.c: Likewise.
54012         * lib/xvasprintf.h: Likewise.
54013         * lib/yesno.c: Likewise.
54014         * lib/yesno.h: Likewise.
54015         * posix-modules: Likewise.
54016         * tests/test-alloca-opt.c: Likewise.
54017         * tests/test-arcfour.c: Likewise.
54018         * tests/test-arctwo.c: Likewise.
54019         * tests/test-argmatch.c: Likewise.
54020         * tests/test-argp-2.sh: Likewise.
54021         * tests/test-argp.c: Likewise.
54022         * tests/test-arpa_inet.c: Likewise.
54023         * tests/test-array_list.c: Likewise.
54024         * tests/test-array_oset.c: Likewise.
54025         * tests/test-atexit.c: Likewise.
54026         * tests/test-avltree_list.c: Likewise.
54027         * tests/test-avltree_oset.c: Likewise.
54028         * tests/test-avltreehash_list.c: Likewise.
54029         * tests/test-base64.c: Likewise.
54030         * tests/test-binary-io.c: Likewise.
54031         * tests/test-byteswap.c: Likewise.
54032         * tests/test-c-ctype.c: Likewise.
54033         * tests/test-c-strcasecmp.c: Likewise.
54034         * tests/test-c-strcasestr.c: Likewise.
54035         * tests/test-c-strncasecmp.c: Likewise.
54036         * tests/test-c-strstr.c: Likewise.
54037         * tests/test-canonicalize-lgpl.c: Likewise.
54038         * tests/test-canonicalize.c: Likewise.
54039         * tests/test-carray_list.c: Likewise.
54040         * tests/test-ceilf.c: Likewise.
54041         * tests/test-ceill.c: Likewise.
54042         * tests/test-count-one-bits.c: Likewise.
54043         * tests/test-crc.c: Likewise.
54044         * tests/test-dirname.c: Likewise.
54045         * tests/test-fbufmode.c: Likewise.
54046         * tests/test-fcntl.c: Likewise.
54047         * tests/test-fflush.c: Likewise.
54048         * tests/test-floorf.c: Likewise.
54049         * tests/test-floorl.c: Likewise.
54050         * tests/test-fopen.c: Likewise.
54051         * tests/test-fprintf-posix.c: Likewise.
54052         * tests/test-fprintf-posix.h: Likewise.
54053         * tests/test-fpurge.c: Likewise.
54054         * tests/test-freadable.c: Likewise.
54055         * tests/test-freadahead.c: Likewise.
54056         * tests/test-freading.c: Likewise.
54057         * tests/test-freopen.c: Likewise.
54058         * tests/test-frexp.c: Likewise.
54059         * tests/test-frexpl.c: Likewise.
54060         * tests/test-fseek.c: Likewise.
54061         * tests/test-fseeko.c: Likewise.
54062         * tests/test-fseterr.c: Likewise.
54063         * tests/test-fstrcmp.c: Likewise.
54064         * tests/test-ftell.c: Likewise.
54065         * tests/test-ftello.c: Likewise.
54066         * tests/test-fwritable.c: Likewise.
54067         * tests/test-fwriting.c: Likewise.
54068         * tests/test-getaddrinfo.c: Likewise.
54069         * tests/test-getpass.c: Likewise.
54070         * tests/test-gettimeofday.c: Likewise.
54071         * tests/test-hmac-md5.c: Likewise.
54072         * tests/test-hmac-sha1.c: Likewise.
54073         * tests/test-iconv.c: Likewise.
54074         * tests/test-iconvme.c: Likewise.
54075         * tests/test-inttypes.c: Likewise.
54076         * tests/test-isnan.c: Likewise.
54077         * tests/test-isnanf.c: Likewise.
54078         * tests/test-isnanl-nolibm.c: Likewise.
54079         * tests/test-isnanl.c: Likewise.
54080         * tests/test-isnanl.h: Likewise.
54081         * tests/test-ldexpl.c: Likewise.
54082         * tests/test-linked_list.c: Likewise.
54083         * tests/test-linkedhash_list.c: Likewise.
54084         * tests/test-locale.c: Likewise.
54085         * tests/test-localename.c: Likewise.
54086         * tests/test-lock.c: Likewise.
54087         * tests/test-lseek.c: Likewise.
54088         * tests/test-malloca.c: Likewise.
54089         * tests/test-math.c: Likewise.
54090         * tests/test-mbscasecmp.c: Likewise.
54091         * tests/test-mbscasestr1.c: Likewise.
54092         * tests/test-mbscasestr2.c: Likewise.
54093         * tests/test-mbscasestr3.c: Likewise.
54094         * tests/test-mbscasestr4.c: Likewise.
54095         * tests/test-mbschr.c: Likewise.
54096         * tests/test-mbscspn.c: Likewise.
54097         * tests/test-mbsncasecmp.c: Likewise.
54098         * tests/test-mbspbrk.c: Likewise.
54099         * tests/test-mbspcasecmp.c: Likewise.
54100         * tests/test-mbsrchr.c: Likewise.
54101         * tests/test-mbsspn.c: Likewise.
54102         * tests/test-mbsstr1.c: Likewise.
54103         * tests/test-mbsstr2.c: Likewise.
54104         * tests/test-mbsstr3.c: Likewise.
54105         * tests/test-md5.c: Likewise.
54106         * tests/test-memmem.c: Likewise.
54107         * tests/test-netinet_in.c: Likewise.
54108         * tests/test-open.c: Likewise.
54109         * tests/test-printf-frexp.c: Likewise.
54110         * tests/test-printf-frexpl.c: Likewise.
54111         * tests/test-printf-posix.c: Likewise.
54112         * tests/test-printf-posix.h: Likewise.
54113         * tests/test-rbtree_list.c: Likewise.
54114         * tests/test-rbtree_oset.c: Likewise.
54115         * tests/test-rbtreehash_list.c: Likewise.
54116         * tests/test-read-file.c: Likewise.
54117         * tests/test-rijndael.c: Likewise.
54118         * tests/test-search.c: Likewise.
54119         * tests/test-signbit.c: Likewise.
54120         * tests/test-sleep.c: Likewise.
54121         * tests/test-snprintf-posix.c: Likewise.
54122         * tests/test-snprintf-posix.h: Likewise.
54123         * tests/test-snprintf.c: Likewise.
54124         * tests/test-sprintf-posix.c: Likewise.
54125         * tests/test-sprintf-posix.h: Likewise.
54126         * tests/test-stat-time.c: Likewise.
54127         * tests/test-stdbool.c: Likewise.
54128         * tests/test-stdint.c: Likewise.
54129         * tests/test-stdio.c: Likewise.
54130         * tests/test-stdlib.c: Likewise.
54131         * tests/test-stpncpy.c: Likewise.
54132         * tests/test-strcasestr.c: Likewise.
54133         * tests/test-striconv.c: Likewise.
54134         * tests/test-striconveh.c: Likewise.
54135         * tests/test-striconveha.c: Likewise.
54136         * tests/test-string.c: Likewise.
54137         * tests/test-sys_select.c: Likewise.
54138         * tests/test-sys_socket.c: Likewise.
54139         * tests/test-sys_stat.c: Likewise.
54140         * tests/test-sys_time.c: Likewise.
54141         * tests/test-sysexits.c: Likewise.
54142         * tests/test-time.c: Likewise.
54143         * tests/test-tls.c: Likewise.
54144         * tests/test-trunc.c: Likewise.
54145         * tests/test-truncf.c: Likewise.
54146         * tests/test-truncl.c: Likewise.
54147         * tests/test-unistd.c: Likewise.
54148         * tests/test-vasnprintf-posix.c: Likewise.
54149         * tests/test-vasnprintf-posix2.c: Likewise.
54150         * tests/test-vasnprintf.c: Likewise.
54151         * tests/test-vasprintf-posix.c: Likewise.
54152         * tests/test-vasprintf.c: Likewise.
54153         * tests/test-verify.c: Likewise.
54154         * tests/test-vfprintf-posix.c: Likewise.
54155         * tests/test-vprintf-posix.c: Likewise.
54156         * tests/test-vsnprintf-posix.c: Likewise.
54157         * tests/test-vsnprintf.c: Likewise.
54158         * tests/test-vsprintf-posix.c: Likewise.
54159         * tests/test-wchar.c: Likewise.
54160         * tests/test-wctype.c: Likewise.
54161         * tests/test-wcwidth.c: Likewise.
54162         * tests/test-xstrtol.c: Likewise.
54163         * tests/test-xvasprintf.c: Likewise.
54164         * tests/uniconv/test-u16-conv-from-enc.c: Likewise.
54165         * tests/uniconv/test-u16-conv-to-enc.c: Likewise.
54166         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
54167         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
54168         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
54169         * tests/uniconv/test-u32-conv-to-enc.c: Likewise.
54170         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
54171         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
54172         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
54173         * tests/uniconv/test-u8-conv-to-enc.c: Likewise.
54174         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
54175         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
54176         * tests/uniname/test-uninames.c: Likewise.
54177         * tests/unistdio/test-u16-asnprintf1.c: Likewise.
54178         * tests/unistdio/test-u16-asnprintf1.h: Likewise.
54179         * tests/unistdio/test-u16-printf1.h: Likewise.
54180         * tests/unistdio/test-u16-vasnprintf1.c: Likewise.
54181         * tests/unistdio/test-u16-vasnprintf2.c: Likewise.
54182         * tests/unistdio/test-u16-vasnprintf3.c: Likewise.
54183         * tests/unistdio/test-u16-vasprintf1.c: Likewise.
54184         * tests/unistdio/test-u16-vsnprintf1.c: Likewise.
54185         * tests/unistdio/test-u16-vsprintf1.c: Likewise.
54186         * tests/unistdio/test-u32-asnprintf1.c: Likewise.
54187         * tests/unistdio/test-u32-asnprintf1.h: Likewise.
54188         * tests/unistdio/test-u32-printf1.h: Likewise.
54189         * tests/unistdio/test-u32-vasnprintf1.c: Likewise.
54190         * tests/unistdio/test-u32-vasnprintf2.c: Likewise.
54191         * tests/unistdio/test-u32-vasnprintf3.c: Likewise.
54192         * tests/unistdio/test-u32-vasprintf1.c: Likewise.
54193         * tests/unistdio/test-u32-vsnprintf1.c: Likewise.
54194         * tests/unistdio/test-u32-vsprintf1.c: Likewise.
54195         * tests/unistdio/test-u8-asnprintf1.c: Likewise.
54196         * tests/unistdio/test-u8-asnprintf1.h: Likewise.
54197         * tests/unistdio/test-u8-printf1.h: Likewise.
54198         * tests/unistdio/test-u8-vasnprintf1.c: Likewise.
54199         * tests/unistdio/test-u8-vasnprintf2.c: Likewise.
54200         * tests/unistdio/test-u8-vasnprintf3.c: Likewise.
54201         * tests/unistdio/test-u8-vasprintf1.c: Likewise.
54202         * tests/unistdio/test-u8-vsnprintf1.c: Likewise.
54203         * tests/unistdio/test-u8-vsprintf1.c: Likewise.
54204         * tests/unistdio/test-ulc-asnprintf1.c: Likewise.
54205         * tests/unistdio/test-ulc-asnprintf1.h: Likewise.
54206         * tests/unistdio/test-ulc-printf1.h: Likewise.
54207         * tests/unistdio/test-ulc-vasnprintf1.c: Likewise.
54208         * tests/unistdio/test-ulc-vasnprintf2.c: Likewise.
54209         * tests/unistdio/test-ulc-vasnprintf3.c: Likewise.
54210         * tests/unistdio/test-ulc-vasprintf1.c: Likewise.
54211         * tests/unistdio/test-ulc-vsnprintf1.c: Likewise.
54212         * tests/unistdio/test-ulc-vsprintf1.c: Likewise.
54213         * tests/uniwidth/test-u16-strwidth.c: Likewise.
54214         * tests/uniwidth/test-u16-width.c: Likewise.
54215         * tests/uniwidth/test-u32-strwidth.c: Likewise.
54216         * tests/uniwidth/test-u32-width.c: Likewise.
54217         * tests/uniwidth/test-u8-strwidth.c: Likewise.
54218         * tests/uniwidth/test-u8-width.c: Likewise.
54219         * tests/uniwidth/test-uc_width.c: Likewise.
54220         * config/srclist-update: Likewise.
54221         (fixlicense): Update to GPLv3+.
54222
54223         Change copyright notice from LGPLv2.1+ to LGPLv3+.
54224         * tests/test-tsearch.c: Change copyright notice.
54225
54226         Change copyright notice from LGPLv2.0+ to LGPLv3+.
54227         * lib/c-strcaseeq.h: Change copyright notice.
54228         * lib/streq.h: Likewise.
54229         * lib/uniconv.h: Likewise.
54230         * lib/uniconv/u-conv-from-enc.h: Likewise.
54231         * lib/uniconv/u-conv-to-enc.h: Likewise.
54232         * lib/uniconv/u-strconv-from-enc.h: Likewise.
54233         * lib/uniconv/u-strconv-to-enc.h: Likewise.
54234         * lib/uniconv/u16-conv-from-enc.c: Likewise.
54235         * lib/uniconv/u16-conv-to-enc.c: Likewise.
54236         * lib/uniconv/u16-strconv-from-enc.c: Likewise.
54237         * lib/uniconv/u16-strconv-from-locale.c: Likewise.
54238         * lib/uniconv/u16-strconv-to-enc.c: Likewise.
54239         * lib/uniconv/u16-strconv-to-locale.c: Likewise.
54240         * lib/uniconv/u32-conv-from-enc.c: Likewise.
54241         * lib/uniconv/u32-conv-to-enc.c: Likewise.
54242         * lib/uniconv/u32-strconv-from-enc.c: Likewise.
54243         * lib/uniconv/u32-strconv-from-locale.c: Likewise.
54244         * lib/uniconv/u32-strconv-to-enc.c: Likewise.
54245         * lib/uniconv/u32-strconv-to-locale.c: Likewise.
54246         * lib/uniconv/u8-conv-from-enc.c: Likewise.
54247         * lib/uniconv/u8-conv-to-enc.c: Likewise.
54248         * lib/uniconv/u8-strconv-from-enc.c: Likewise.
54249         * lib/uniconv/u8-strconv-from-locale.c: Likewise.
54250         * lib/uniconv/u8-strconv-to-enc.c: Likewise.
54251         * lib/uniconv/u8-strconv-to-locale.c: Likewise.
54252         * lib/uniname.h: Likewise.
54253         * lib/uniname/uniname.c: Likewise.
54254         * lib/unistdio.h: Likewise.
54255         * lib/unistdio/u-asnprintf.h: Likewise.
54256         * lib/unistdio/u-asprintf.h: Likewise.
54257         * lib/unistdio/u-printf-args.c: Likewise.
54258         * lib/unistdio/u-printf-args.h: Likewise.
54259         * lib/unistdio/u-printf-parse.h: Likewise.
54260         * lib/unistdio/u-snprintf.h: Likewise.
54261         * lib/unistdio/u-sprintf.h: Likewise.
54262         * lib/unistdio/u-vasprintf.h: Likewise.
54263         * lib/unistdio/u-vsnprintf.h: Likewise.
54264         * lib/unistdio/u-vsprintf.h: Likewise.
54265         * lib/unistdio/u16-asnprintf.c: Likewise.
54266         * lib/unistdio/u16-asprintf.c: Likewise.
54267         * lib/unistdio/u16-printf-parse.c: Likewise.
54268         * lib/unistdio/u16-snprintf.c: Likewise.
54269         * lib/unistdio/u16-sprintf.c: Likewise.
54270         * lib/unistdio/u16-u16-asnprintf.c: Likewise.
54271         * lib/unistdio/u16-u16-asprintf.c: Likewise.
54272         * lib/unistdio/u16-u16-snprintf.c: Likewise.
54273         * lib/unistdio/u16-u16-sprintf.c: Likewise.
54274         * lib/unistdio/u16-u16-vasnprintf.c: Likewise.
54275         * lib/unistdio/u16-u16-vasprintf.c: Likewise.
54276         * lib/unistdio/u16-u16-vsnprintf.c: Likewise.
54277         * lib/unistdio/u16-u16-vsprintf.c: Likewise.
54278         * lib/unistdio/u16-vasnprintf.c: Likewise.
54279         * lib/unistdio/u16-vasprintf.c: Likewise.
54280         * lib/unistdio/u16-vsnprintf.c: Likewise.
54281         * lib/unistdio/u16-vsprintf.c: Likewise.
54282         * lib/unistdio/u32-asnprintf.c: Likewise.
54283         * lib/unistdio/u32-asprintf.c: Likewise.
54284         * lib/unistdio/u32-printf-parse.c: Likewise.
54285         * lib/unistdio/u32-snprintf.c: Likewise.
54286         * lib/unistdio/u32-sprintf.c: Likewise.
54287         * lib/unistdio/u32-u32-asnprintf.c: Likewise.
54288         * lib/unistdio/u32-u32-asprintf.c: Likewise.
54289         * lib/unistdio/u32-u32-snprintf.c: Likewise.
54290         * lib/unistdio/u32-u32-sprintf.c: Likewise.
54291         * lib/unistdio/u32-u32-vasnprintf.c: Likewise.
54292         * lib/unistdio/u32-u32-vasprintf.c: Likewise.
54293         * lib/unistdio/u32-u32-vsnprintf.c: Likewise.
54294         * lib/unistdio/u32-u32-vsprintf.c: Likewise.
54295         * lib/unistdio/u32-vasnprintf.c: Likewise.
54296         * lib/unistdio/u32-vasprintf.c: Likewise.
54297         * lib/unistdio/u32-vsnprintf.c: Likewise.
54298         * lib/unistdio/u32-vsprintf.c: Likewise.
54299         * lib/unistdio/u8-asnprintf.c: Likewise.
54300         * lib/unistdio/u8-asprintf.c: Likewise.
54301         * lib/unistdio/u8-printf-parse.c: Likewise.
54302         * lib/unistdio/u8-snprintf.c: Likewise.
54303         * lib/unistdio/u8-sprintf.c: Likewise.
54304         * lib/unistdio/u8-u8-asnprintf.c: Likewise.
54305         * lib/unistdio/u8-u8-asprintf.c: Likewise.
54306         * lib/unistdio/u8-u8-snprintf.c: Likewise.
54307         * lib/unistdio/u8-u8-sprintf.c: Likewise.
54308         * lib/unistdio/u8-u8-vasnprintf.c: Likewise.
54309         * lib/unistdio/u8-u8-vasprintf.c: Likewise.
54310         * lib/unistdio/u8-u8-vsnprintf.c: Likewise.
54311         * lib/unistdio/u8-u8-vsprintf.c: Likewise.
54312         * lib/unistdio/u8-vasnprintf.c: Likewise.
54313         * lib/unistdio/u8-vasprintf.c: Likewise.
54314         * lib/unistdio/u8-vsnprintf.c: Likewise.
54315         * lib/unistdio/u8-vsprintf.c: Likewise.
54316         * lib/unistdio/ulc-asnprintf.c: Likewise.
54317         * lib/unistdio/ulc-asprintf.c: Likewise.
54318         * lib/unistdio/ulc-printf-parse.c: Likewise.
54319         * lib/unistdio/ulc-snprintf.c: Likewise.
54320         * lib/unistdio/ulc-sprintf.c: Likewise.
54321         * lib/unistdio/ulc-vasnprintf.c: Likewise.
54322         * lib/unistdio/ulc-vasprintf.c: Likewise.
54323         * lib/unistdio/ulc-vsnprintf.c: Likewise.
54324         * lib/unistdio/ulc-vsprintf.c: Likewise.
54325         * lib/unistr.h: Likewise.
54326         * lib/unistr/u-cpy-alloc.h: Likewise.
54327         * lib/unistr/u-cpy.h: Likewise.
54328         * lib/unistr/u-endswith.h: Likewise.
54329         * lib/unistr/u-move.h: Likewise.
54330         * lib/unistr/u-set.h: Likewise.
54331         * lib/unistr/u-startswith.h: Likewise.
54332         * lib/unistr/u-stpcpy.h: Likewise.
54333         * lib/unistr/u-stpncpy.h: Likewise.
54334         * lib/unistr/u-strcat.h: Likewise.
54335         * lib/unistr/u-strcpy.h: Likewise.
54336         * lib/unistr/u-strcspn.h: Likewise.
54337         * lib/unistr/u-strdup.h: Likewise.
54338         * lib/unistr/u-strlen.h: Likewise.
54339         * lib/unistr/u-strncat.h: Likewise.
54340         * lib/unistr/u-strncpy.h: Likewise.
54341         * lib/unistr/u-strnlen.h: Likewise.
54342         * lib/unistr/u-strpbrk.h: Likewise.
54343         * lib/unistr/u-strspn.h: Likewise.
54344         * lib/unistr/u-strstr.h: Likewise.
54345         * lib/unistr/u-strtok.h: Likewise.
54346         * lib/unistr/u16-check.c: Likewise.
54347         * lib/unistr/u16-chr.c: Likewise.
54348         * lib/unistr/u16-cmp.c: Likewise.
54349         * lib/unistr/u16-cpy-alloc.c: Likewise.
54350         * lib/unistr/u16-cpy.c: Likewise.
54351         * lib/unistr/u16-endswith.c: Likewise.
54352         * lib/unistr/u16-mblen.c: Likewise.
54353         * lib/unistr/u16-mbsnlen.c: Likewise.
54354         * lib/unistr/u16-mbtouc-aux.c: Likewise.
54355         * lib/unistr/u16-mbtouc-unsafe-aux.c: Likewise.
54356         * lib/unistr/u16-mbtouc-unsafe.c: Likewise.
54357         * lib/unistr/u16-mbtouc.c: Likewise.
54358         * lib/unistr/u16-mbtoucr.c: Likewise.
54359         * lib/unistr/u16-move.c: Likewise.
54360         * lib/unistr/u16-next.c: Likewise.
54361         * lib/unistr/u16-prev.c: Likewise.
54362         * lib/unistr/u16-set.c: Likewise.
54363         * lib/unistr/u16-startswith.c: Likewise.
54364         * lib/unistr/u16-stpcpy.c: Likewise.
54365         * lib/unistr/u16-stpncpy.c: Likewise.
54366         * lib/unistr/u16-strcat.c: Likewise.
54367         * lib/unistr/u16-strchr.c: Likewise.
54368         * lib/unistr/u16-strcmp.c: Likewise.
54369         * lib/unistr/u16-strcpy.c: Likewise.
54370         * lib/unistr/u16-strcspn.c: Likewise.
54371         * lib/unistr/u16-strdup.c: Likewise.
54372         * lib/unistr/u16-strlen.c: Likewise.
54373         * lib/unistr/u16-strmblen.c: Likewise.
54374         * lib/unistr/u16-strmbtouc.c: Likewise.
54375         * lib/unistr/u16-strncat.c: Likewise.
54376         * lib/unistr/u16-strncmp.c: Likewise.
54377         * lib/unistr/u16-strncpy.c: Likewise.
54378         * lib/unistr/u16-strnlen.c: Likewise.
54379         * lib/unistr/u16-strpbrk.c: Likewise.
54380         * lib/unistr/u16-strrchr.c: Likewise.
54381         * lib/unistr/u16-strspn.c: Likewise.
54382         * lib/unistr/u16-strstr.c: Likewise.
54383         * lib/unistr/u16-strtok.c: Likewise.
54384         * lib/unistr/u16-to-u32.c: Likewise.
54385         * lib/unistr/u16-to-u8.c: Likewise.
54386         * lib/unistr/u16-uctomb-aux.c: Likewise.
54387         * lib/unistr/u16-uctomb.c: Likewise.
54388         * lib/unistr/u32-check.c: Likewise.
54389         * lib/unistr/u32-chr.c: Likewise.
54390         * lib/unistr/u32-cmp.c: Likewise.
54391         * lib/unistr/u32-cpy-alloc.c: Likewise.
54392         * lib/unistr/u32-cpy.c: Likewise.
54393         * lib/unistr/u32-endswith.c: Likewise.
54394         * lib/unistr/u32-mblen.c: Likewise.
54395         * lib/unistr/u32-mbsnlen.c: Likewise.
54396         * lib/unistr/u32-mbtouc-unsafe.c: Likewise.
54397         * lib/unistr/u32-mbtouc.c: Likewise.
54398         * lib/unistr/u32-mbtoucr.c: Likewise.
54399         * lib/unistr/u32-move.c: Likewise.
54400         * lib/unistr/u32-next.c: Likewise.
54401         * lib/unistr/u32-prev.c: Likewise.
54402         * lib/unistr/u32-set.c: Likewise.
54403         * lib/unistr/u32-startswith.c: Likewise.
54404         * lib/unistr/u32-stpcpy.c: Likewise.
54405         * lib/unistr/u32-stpncpy.c: Likewise.
54406         * lib/unistr/u32-strcat.c: Likewise.
54407         * lib/unistr/u32-strchr.c: Likewise.
54408         * lib/unistr/u32-strcmp.c: Likewise.
54409         * lib/unistr/u32-strcpy.c: Likewise.
54410         * lib/unistr/u32-strcspn.c: Likewise.
54411         * lib/unistr/u32-strdup.c: Likewise.
54412         * lib/unistr/u32-strlen.c: Likewise.
54413         * lib/unistr/u32-strmblen.c: Likewise.
54414         * lib/unistr/u32-strmbtouc.c: Likewise.
54415         * lib/unistr/u32-strncat.c: Likewise.
54416         * lib/unistr/u32-strncmp.c: Likewise.
54417         * lib/unistr/u32-strncpy.c: Likewise.
54418         * lib/unistr/u32-strnlen.c: Likewise.
54419         * lib/unistr/u32-strpbrk.c: Likewise.
54420         * lib/unistr/u32-strrchr.c: Likewise.
54421         * lib/unistr/u32-strspn.c: Likewise.
54422         * lib/unistr/u32-strstr.c: Likewise.
54423         * lib/unistr/u32-strtok.c: Likewise.
54424         * lib/unistr/u32-to-u16.c: Likewise.
54425         * lib/unistr/u32-to-u8.c: Likewise.
54426         * lib/unistr/u32-uctomb.c: Likewise.
54427         * lib/unistr/u8-check.c: Likewise.
54428         * lib/unistr/u8-chr.c: Likewise.
54429         * lib/unistr/u8-cmp.c: Likewise.
54430         * lib/unistr/u8-cpy-alloc.c: Likewise.
54431         * lib/unistr/u8-cpy.c: Likewise.
54432         * lib/unistr/u8-endswith.c: Likewise.
54433         * lib/unistr/u8-mblen.c: Likewise.
54434         * lib/unistr/u8-mbsnlen.c: Likewise.
54435         * lib/unistr/u8-mbtouc-aux.c: Likewise.
54436         * lib/unistr/u8-mbtouc-unsafe-aux.c: Likewise.
54437         * lib/unistr/u8-mbtouc-unsafe.c: Likewise.
54438         * lib/unistr/u8-mbtouc.c: Likewise.
54439         * lib/unistr/u8-mbtoucr.c: Likewise.
54440         * lib/unistr/u8-move.c: Likewise.
54441         * lib/unistr/u8-next.c: Likewise.
54442         * lib/unistr/u8-prev.c: Likewise.
54443         * lib/unistr/u8-set.c: Likewise.
54444         * lib/unistr/u8-startswith.c: Likewise.
54445         * lib/unistr/u8-stpcpy.c: Likewise.
54446         * lib/unistr/u8-stpncpy.c: Likewise.
54447         * lib/unistr/u8-strcat.c: Likewise.
54448         * lib/unistr/u8-strchr.c: Likewise.
54449         * lib/unistr/u8-strcmp.c: Likewise.
54450         * lib/unistr/u8-strcpy.c: Likewise.
54451         * lib/unistr/u8-strcspn.c: Likewise.
54452         * lib/unistr/u8-strdup.c: Likewise.
54453         * lib/unistr/u8-strlen.c: Likewise.
54454         * lib/unistr/u8-strmblen.c: Likewise.
54455         * lib/unistr/u8-strmbtouc.c: Likewise.
54456         * lib/unistr/u8-strncat.c: Likewise.
54457         * lib/unistr/u8-strncmp.c: Likewise.
54458         * lib/unistr/u8-strncpy.c: Likewise.
54459         * lib/unistr/u8-strnlen.c: Likewise.
54460         * lib/unistr/u8-strpbrk.c: Likewise.
54461         * lib/unistr/u8-strrchr.c: Likewise.
54462         * lib/unistr/u8-strspn.c: Likewise.
54463         * lib/unistr/u8-strstr.c: Likewise.
54464         * lib/unistr/u8-strtok.c: Likewise.
54465         * lib/unistr/u8-to-u16.c: Likewise.
54466         * lib/unistr/u8-to-u32.c: Likewise.
54467         * lib/unistr/u8-uctomb-aux.c: Likewise.
54468         * lib/unistr/u8-uctomb.c: Likewise.
54469         * lib/unitypes.h: Likewise.
54470         * lib/uniwidth.h: Likewise.
54471         * lib/uniwidth/cjk.h: Likewise.
54472         * lib/uniwidth/u16-strwidth.c: Likewise.
54473         * lib/uniwidth/u16-width.c: Likewise.
54474         * lib/uniwidth/u32-strwidth.c: Likewise.
54475         * lib/uniwidth/u32-width.c: Likewise.
54476         * lib/uniwidth/u8-strwidth.c: Likewise.
54477         * lib/uniwidth/u8-width.c: Likewise.
54478         * lib/uniwidth/width.c: Likewise.
54479
54480 2007-10-07  Bruno Haible  <bruno@clisp.org>
54481
54482         * lib/inttypes.in.h: Change copyright notice from LGPL to GPL.
54483         The file is still under LGPL (see modules/inttypes).
54484
54485 2007-10-06  Bruno Haible  <bruno@clisp.org>
54486
54487         * modules/trunc (Dependencies): Add 'extensions'.
54488         * m4/trunc.m4 (gl_FUNC_TRUNC): Require gl_USE_SYSTEM_EXTENSIONS.
54489         Reported by Ben Pfaff <blp@gnu.org>.
54490
54491 2007-10-06  Bruno Haible  <bruno@clisp.org>
54492
54493         * modules/freopen-tests: New file.
54494         * tests/test-freopen.c: New file.
54495
54496         * modules/fopen-tests: New file.
54497         * tests/test-fopen.c: New file.
54498
54499         * modules/fopen: New file.
54500         * lib/fopen.c: New file.
54501         * m4/fopen.m4: New file.
54502         * modules/freopen: New file.
54503         * lib/freopen.c: New file.
54504         * m4/freopen.m4: New file.
54505         * lib/stdio.in.h (fopen, freopen): New declarations.
54506         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize also GNULIB_FOPEN,
54507         GNULIB_FREOPEN, REPLACE_FOPEN, REPLACE_FREOPEN.
54508         * modules/stdio (Makefile.am): Substitute also GNULIB_FOPEN,
54509         GNULIB_FREOPEN, REPLACE_FOPEN, REPLACE_FREOPEN.
54510         * doc/functions/fopen.texi: Mention the 'fopen' module.
54511         * doc/functions/freopen.texi: Mention the 'freopen' module.
54512
54513 2007-10-06  Bruno Haible  <bruno@clisp.org>
54514
54515         * modules/open-tests: New file.
54516         * tests/test-open.c: New file.
54517
54518         * modules/open: New file.
54519         * lib/open.c: New file.
54520         * m4/open.m4: New file.
54521         * lib/fchdir.c (open): If the gnulib module 'open' is used, do what
54522         lib/open.c does.
54523         * lib/fcntl.in.h (open): Declare also if replaced by the 'open' module.
54524         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR, gl_FCNTL_H_DEFAULTS): New
54525         macros.
54526         (gl_FCNTL_H): Require gl_FCNTL_H_DEFAULTS.
54527         * modules/fcntl (Makefile.am): Also substitute GNULIB_OPEN and
54528         REPLACE_OPEN.
54529         * doc/functions/open.texi: Mention the 'open' module.
54530
54531 2007-10-04  Bruno Haible  <bruno@clisp.org>
54532
54533         * modules/ceill-tests: New file.
54534         * tests/test-ceill.c: New file.
54535
54536         * modules/ceill: New file.
54537         * lib/ceill.c: Replace entire file.
54538         * m4/ceill.m4: New file.
54539         * lib/math.in.h (ceill): Replace declaration.
54540         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEILL.
54541         * modules/math (Makefile.am): Substitute also GNULIB_CEILL.
54542         * doc/functions/ceill.texi: Mention the 'ceill' module.
54543         * modules/mathl (Files): Remove lib/ceill.c.
54544         (Depends-on): Add ceill.
54545
54546 2007-10-04  Bruno Haible  <bruno@clisp.org>
54547
54548         * modules/ceilf-tests: New file.
54549         * tests/test-ceilf.c: New file.
54550
54551         * modules/ceilf: New file.
54552         * lib/ceil.c: New file.
54553         * lib/ceilf.c: New file.
54554         * m4/ceilf.m4: New file.
54555         * lib/math.in.h (ceilf): New declaration.
54556         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEILF and
54557         HAVE_DECL_CEILF.
54558         * modules/math (Makefile.am): Substitute also GNULIB_CEILF and
54559         HAVE_DECL_CEILF.
54560         * doc/functions/ceilf.texi: Mention the 'ceilf' module.
54561
54562 2007-10-04  Bruno Haible  <bruno@clisp.org>
54563
54564         * modules/floorl-tests: New file.
54565         * tests/test-floorl.c: New file.
54566
54567         * modules/floorl: New file.
54568         * lib/floorl.c: Replace entire file.
54569         * m4/floorl.m4: New file.
54570         * lib/math.in.h (floorl): Replace declaration.
54571         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOORL.
54572         * modules/math (Makefile.am): Substitute also GNULIB_FLOORL.
54573         * doc/functions/floorl.texi: Mention the 'floorl' module.
54574         * modules/mathl (Files): Remove lib/floorl.c.
54575         (Depends-on): Add floorl.
54576
54577 2007-10-04  Bruno Haible  <bruno@clisp.org>
54578
54579         * modules/floorf-tests: New file.
54580         * tests/test-floorf.c: New file.
54581
54582         * modules/floorf: New file.
54583         * lib/floor.c: New file.
54584         * lib/floorf.c: New file.
54585         * m4/floorf.m4: New file.
54586         * lib/math.in.h (floorf): New declaration.
54587         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOORF and
54588         HAVE_DECL_FLOORF.
54589         * modules/math (Makefile.am): Substitute also GNULIB_FLOORF and
54590         HAVE_DECL_FLOORF.
54591         * doc/functions/floorf.texi: Mention the 'floorf' module.
54592
54593 2007-10-04  Benoit Sigoure  <tsuna@lrde.epita.fr>
54594             Bruno Haible  <bruno@clisp.org>
54595
54596         Advertise for the Git server instead of the CVS server.
54597         * doc/gnulib-intro.texi (Steady Development): Mention the Git
54598         repository instead of the CVS one.
54599         * doc/gnulib-tool.texi (VCS Issues): Renamed from "CVS Issues". Talk
54600         about all VCS systems generically.
54601         * doc/gnulib.texi (Introduction): Capitalize `Git'.
54602
54603 2007-10-04  Bruno Haible  <bruno@clisp.org>
54604
54605         * doc/gnulib.texi (Function Substitutes): Explain what an absent module
54606         means.
54607         Reported by Benoît Sigoure <tsuna@lrde.epita.fr>.
54608
54609 2007-10-04  Bruno Haible  <bruno@clisp.org>
54610
54611         * modules/truncl-tests: New file.
54612         * tests/test-truncl.c: New file.
54613
54614         * modules/truncl: New file.
54615         * lib/truncl.c: New file.
54616         * m4/truncl.m4: New file.
54617         * lib/math.in.h (truncl): New declaration.
54618         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNCL and
54619         HAVE_DECL_TRUNCL.
54620         * modules/math (Makefile.am): Substitute also GNULIB_TRUNCL and
54621         HAVE_DECL_TRUNCL.
54622         * doc/functions/truncl.texi: Mention the 'truncl' module.
54623
54624 2007-10-04  Bruno Haible  <bruno@clisp.org>
54625
54626         * modules/truncf-tests: New file.
54627         * tests/test-truncf.c: New file.
54628
54629         * modules/truncf: New file.
54630         * lib/trunc.c: Make paramerizable through USE_* macros.
54631         * lib/truncf.c: New file.
54632         * m4/truncf.m4: New file.
54633         * lib/math.in.h (truncf): New declaration.
54634         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNCF and
54635         HAVE_DECL_TRUNCF.
54636         * modules/math (Makefile.am): Substitute also GNULIB_TRUNCF and
54637         HAVE_DECL_TRUNCF.
54638         * doc/functions/truncf.texi: Mention the 'truncf' module.
54639
54640 2007-10-03  Bruno Haible  <bruno@clisp.org>
54641
54642         * gnulib-tool (func_get_automake_snippet): Synthesize an EXTRA_DIST
54643         augmentation also for tests modules.
54644         * modules/argp-tests (Makefile.am): Remove EXTRA_DIST augmentation.
54645         * modules/atexit-tests (Makefile.am): Likewise.
54646         * modules/binary-io-tests (Makefile.am): Likewise.
54647         * modules/c-strcase-tests (Makefile.am): Likewise.
54648         * modules/canonicalize-lgpl-tests (Makefile.am): Likewise.
54649         * modules/canonicalize-tests (Makefile.am): Likewise.
54650         * modules/closein-tests (Makefile.am): Likewise.
54651         * modules/fprintf-posix-tests (Makefile.am): Likewise.
54652         * modules/freadahead-tests (Makefile.am): Likewise.
54653         * modules/fseek-tests (Makefile.am): Likewise.
54654         * modules/fseeko-tests (Makefile.am): Likewise.
54655         * modules/ftell-tests (Makefile.am): Likewise.
54656         * modules/ftello-tests (Makefile.am): Likewise.
54657         * modules/isnanl-nolibm-tests (Makefile.am): Likewise.
54658         * modules/isnanl-tests (Makefile.am): Likewise.
54659         * modules/lseek-tests (Makefile.am): Likewise.
54660         * modules/mbscasecmp-tests (Makefile.am): Likewise.
54661         * modules/mbscasestr-tests (Makefile.am): Likewise.
54662         * modules/mbschr-tests (Makefile.am): Likewise.
54663         * modules/mbscspn-tests (Makefile.am): Likewise.
54664         * modules/mbsncasecmp-tests (Makefile.am): Likewise.
54665         * modules/mbspbrk-tests (Makefile.am): Likewise.
54666         * modules/mbspcasecmp-tests (Makefile.am): Likewise.
54667         * modules/mbsrchr-tests (Makefile.am): Likewise.
54668         * modules/mbsspn-tests (Makefile.am): Likewise.
54669         * modules/mbsstr-tests (Makefile.am): Likewise.
54670         * modules/printf-posix-tests (Makefile.am): Likewise.
54671         * modules/snprintf-posix-tests (Makefile.am): Likewise.
54672         * modules/sprintf-posix-tests (Makefile.am): Likewise.
54673         * modules/tsearch-tests (Makefile.am): Likewise.
54674         * modules/uniname/uniname-tests (Makefile.am): Likewise.
54675         * modules/unistdio/u16-vasnprintf-tests (Makefile.am): Likewise.
54676         * modules/unistdio/u32-vasnprintf-tests (Makefile.am): Likewise.
54677         * modules/unistdio/u8-vasnprintf-tests (Makefile.am): Likewise.
54678         * modules/unistdio/ulc-vasnprintf-tests (Makefile.am): Likewise.
54679         * modules/vasnprintf-posix-tests (Makefile.am): Likewise.
54680         * modules/vfprintf-posix-tests (Makefile.am): Likewise.
54681         * modules/vprintf-posix-tests (Makefile.am): Likewise.
54682         * modules/vsnprintf-posix-tests (Makefile.am): Likewise.
54683         * modules/vsprintf-posix-tests (Makefile.am): Likewise.
54684         * modules/xstrtoimax-tests (Makefile.am): Likewise.
54685         * modules/xstrtol-tests (Makefile.am): Likewise.
54686         * modules/xstrtoumax-tests (Makefile.am): Likewise.
54687         * modules/yesno-tests (Makefile.am): Likewise.
54688
54689 2007-10-03  Bruno Haible  <bruno@clisp.org>
54690
54691         * modules/trunc-tests: New file.
54692         * tests/test-trunc.c: New file.
54693
54694         * modules/trunc: New file.
54695         * lib/trunc.c: New file.
54696         * m4/trunc.m4: New file.
54697         * lib/math.in.h (trunc): New declaration.
54698         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNC and
54699         HAVE_DECL_TRUNC.
54700         * modules/math (Makefile.am): Substitute also GNULIB_TRUNC and
54701         HAVE_DECL_TRUNC.
54702         * doc/functions/trunc.texi: Mention the 'trunc' module.
54703
54704 2007-10-03  Bruno Haible  <bruno@clisp.org>
54705
54706         * tests/test-fpending.c: New file, mostly copied
54707         from coreutils/lib/t-fpending.c.
54708         * modules/fpending-tests: New file.
54709
54710 2007-10-03  Bruno Haible  <bruno@clisp.org>
54711
54712         Port the stdio extensions to QNX (untested).
54713         * lib/fseterr.c (fseterr): Add support for QNX.
54714         * lib/fbufmode.c (fbufmode): Likewise.
54715         * lib/freadable.c (freadable): Likewise.
54716         * lib/fwritable.c (fwritable): Likewise.
54717         * lib/freading.c (freading): Likewise.
54718         * lib/fwriting.c (fwriting): Likewise.
54719         * lib/freadahead.c (freadahed): Likewise.
54720         * lib/fpurge.c (fpurge): Likewise.
54721         * lib/fseeko.c (rpl_fseeko): Likewise.
54722
54723 2007-10-03  Bruno Haible  <bruno@clisp.org>
54724             Jim Meyering  <jim@meyering.net>
54725             Eric Blake  <ebb9@byu.net>
54726
54727         * doc/relocatable.texi: Use @command instead of @program.
54728
54729 2007-10-02  Jim Meyering  <jim@meyering.net>
54730
54731         Perform one more "_.h" -> ".in.h" substitution.
54732         * modules/unistd (Makefile.am) [unistd.h]: Use unistd.h.in
54733         instead of unistd_.h here, too.
54734
54735 2007-10-01  Bruno Haible  <bruno@clisp.org>
54736
54737         * gnulib-tool (func_emit_initmacro_done): Special case for alloca.c.
54738         Needed for the alloca-opt module.
54739
54740 2007-09-30  Bruno Haible  <bruno@clisp.org>
54741
54742         * lib/alloca.in.h: Renamed from lib/alloca_.h.
54743         * modules/alloca-opt (Files, Makefile.am): Use alloca.in.h instead of
54744         alloca_.h.
54745         * lib/argz.in.h: Renamed from lib/argz_.h.
54746         * modules/argz (Files, Makefile.am): Use argz.in.h instead of argz_.h.
54747         * lib/byteswap.in.h: Renamed from lib/byteswap_.h.
54748         * modules/byteswap (Files, Makefile.am): Use byteswap.in.h instead of
54749         byteswap_.h.
54750         * lib/dirent.in.h: Renamed from lib/dirent_.h.
54751         * modules/fchdir (Files, Makefile.am): Use dirent.in.h instead of
54752         dirent_.h.
54753         * lib/fcntl.in.h: Renamed from lib/fcntl_.h.
54754         * modules/fcntl (Files, Makefile.am): Use fcntl.in.h instead of
54755         fcntl_.h.
54756         * lib/float.in.h: Renamed from lib/float_.h.
54757         * modules/float (Files, Makefile.am): Use float.in.h instead of
54758         float_.h.
54759         * lib/fnmatch.in.h: Renamed from lib/fnmatch_.h.
54760         * modules/fnmatch (Files, Makefile.am): Use fnmatch.in.h instead of
54761         fnmatch_.h.
54762         * lib/getopt.in.h: Renamed from lib/getopt_.h.
54763         * modules/getopt (Files, Makefile.am): Use getopt.in.h instead of
54764         getopt_.h.
54765         * lib/glob.in.h: Renamed from lib/glob_.h.
54766         * modules/glob (Files, Makefile.am): Use glob.in.h instead of glob_.h.
54767         * lib/iconv.in.h: Renamed from lib/iconv_.h.
54768         * modules/iconv_open (Files, Makefile.am): Use iconv.in.h instead of
54769         iconv_.h.
54770         * lib/inttypes.in.h: Renamed from lib/inttypes_.h.
54771         * modules/inttypes (Files, Makefile.am): Use inttypes.in.h instead of
54772         inttypes_.h.
54773         * lib/locale.in.h: Renamed from lib/locale_.h.
54774         * modules/locale (Files, Makefile.am): Use locale.in.h instead of
54775         locale_.h.
54776         * lib/math.in.h: Renamed from lib/math_.h.
54777         * modules/math (Files, Makefile.am): Use math.in.h instead of math_.h.
54778         * lib/netinet_in.in.h: Renamed from lib/netinet_in_.h.
54779         * modules/netinet_in (Files, Makefile.am): Use netinet_in.in.h instead
54780         of netinet_in_.h. Add dependency.
54781         * lib/poll.in.h: Renamed from lib/poll_.h.
54782         * modules/poll (Files, Makefile.am): Use poll.in.h instead of poll_.h.
54783         * lib/search.in.h: Renamed from lib/search_.h.
54784         * modules/search (Files, Makefile.am): Use search.in.h instead of
54785         search_.h.
54786         * lib/signal.in.h: Renamed from lib/signal_.h.
54787         * modules/signal (Files, Makefile.am): Use signal.in.h instead of
54788         _signal.h.
54789         * lib/stdbool.in.h: Renamed from lib/stdbool_.h.
54790         * modules/stdbool (Files, Makefile.am): Use stdbool.in.h instead of
54791         stdbool_.h.
54792         * lib/stdint.in.h: Renamed from lib/stdint_.h.
54793         * modules/stdint (Files, Makefile.am): Use stdint.in.h instead of
54794         stdint_.h.
54795         * lib/stdio.in.h: Renamed from lib/stdio_.h.
54796         * modules/stdio (Files, Makefile.am): Use stdio.in.h instead of
54797         stdio_.h.
54798         * lib/stdlib.in.h: Renamed from lib/stdlib_.h.
54799         * modules/stdlib (Files, Makefile.am): Use stdlib.in.h instead of
54800         stdlib_.h.
54801         * lib/string.in.h: Renamed from lib/string_.h.
54802         * modules/string (Files, Makefile.am): Use string.in.h instead of
54803         string_.h.
54804         * doc/gnulib-tool.texi (Initial import): Update.
54805         * lib/sys_select.in.h: Renamed from lib/sys_select_.h.
54806         * modules/sys_select (Files, Makefile.am): Use sys_select.in.h instead
54807         of sys_select_.h. Add dependency.
54808         * lib/sys_socket.in.h: Renamed from lib/sys_socket_.h.
54809         * modules/sys_socket (Files, Makefile.am): Use sys_socket.in.h instead
54810         of sys_socket_.h.
54811         * lib/sys_stat.in.h: Renamed from lib/sys_stat_.h.
54812         * modules/sys_stat (Files, Makefile.am): Use sys_stat.in.h instead of
54813         sys_stat_.h.
54814         * lib/sys_time.in.h: Renamed from lib/sys_time_.h.
54815         * modules/sys_time (Files, Makefile.am): Use sys_time.in.h instead of
54816         sys_time_.h.
54817         * lib/sysexits.in.h: Renamed from lib/sysexits_.h.
54818         * modules/sysexits (Files, Makefile.am): Use sysexits.in.h instead of
54819         sysexits_.h.
54820         * lib/time.in.h: Renamed from lib/time_.h.
54821         * modules/time (Files, Makefile.am): Use time.in.h instead of time_.h.
54822         * lib/unistd.in.h: Renamed from lib/unistd_.h.
54823         * modules/unistd (Files, Makefile.am): Use unistd.in.h instead of
54824         unistd_.h.
54825         * lib/wchar.in.h: Renamed from lib/wchar_.h.
54826         * modules/wchar (Files, Makefile.am): Use wchar.in.h instead of
54827         wchar_.h.
54828         * lib/wctype.in.h: Renamed from lib/wctype_.h.
54829         * modules/wctype (Files, Makefile.am): Use wctype.in.h instead of
54830         wctype_.h.
54831         * build-aux/bootstrap (slurp): Update.
54832         * lib/.cppi-disable: Update.
54833
54834 2007-09-30  Bruno Haible  <bruno@clisp.org>
54835
54836         * tests/test-getaddrinfo.c (AF_UNSPEC): Provide a fallback definition.
54837         Needed on BeOS.
54838
54839 2007-09-30  Bruno Haible  <bruno@clisp.org>
54840
54841         * modules/dirname-tests (check_PROGRAMS): Renamed from noinst_PROGRAMS.
54842
54843 2007-09-29  Bruno Haible  <bruno@clisp.org>
54844
54845         * lib/stdio_.h (getdelim, getline): Add identifiers. Doc tweak.
54846
54847 2007-09-29  Bruno Haible  <bruno@clisp.org>
54848
54849         * lib/xreadlink.c (xreadlink): Simplify to a wrapper around areadlink.
54850         * modules/xreadlink (Depends-on): Add areadlink, remove readlink etc.
54851         * build-aux/install-reloc: Compile also areadlink.c.
54852         * modules/relocatable-prog-wrapper (Files): Add lib/areadlink.[hc].
54853
54854 2007-09-29  Bruno Haible  <bruno@clisp.org>
54855
54856         * gnulib-tool (func_emit_initmacro_done): Indentation.
54857
54858 2007-09-29  Bruno Haible  <bruno@clisp.org>
54859
54860         * README: Add CVS checkout update instructions.
54861         Info from Bob Proulx <bob@proulx.com>.
54862
54863 2007-09-28  Eric Blake  <ebb9@byu.net>
54864
54865         Provide move-if-change.
54866         * build-aux/move-if-change: New file, based on best practice
54867         rather than any canonical upstream location.
54868
54869 2007-09-28  Jim Meyering  <jim@meyering.net>
54870
54871         Fix canonicalize loop-detection corner case.
54872         Do not attempt to stat the symlink values stored via seen_triple.
54873         Without this, coreutils' tests/misc/readlink-fp-loop test would fail
54874         on linux-2.6.18, (but not 2.6.22).
54875         * lib/canonicalize.c (seen_triple): Use triple_compare_ino_str, not
54876         triple_compare.  The former compares dev,ino,filename, while the latter
54877         would actually stat dirname(filename) when dev and ino were equal.
54878         * lib/hash-triple.c: Install <string.h>.
54879         (STREQ): Define.
54880         (triple_compare_ino_str): New function.
54881         * lib/hash-triple.h (triple_compare_ino_str): Declare it.
54882
54883 2007-09-28  Eric Blake  <ebb9@byu.net>
54884
54885         Enforce that AC_REPLACE_FUNCS files exist.
54886         * gnulib-tool (func_emit_initmacro_done): Make AC_LIBSOURCES
54887         override check for typos.
54888
54889         Fix test-closein on Solaris 10.
54890         * tests/test-closein.c (main): Don't assume stdin can be inherited
54891         closed on all systems.
54892         * tests/test-closein.sh: Likewise.
54893         Reported by Piotr Tarnowski.
54894
54895 2007-09-28  Jim Meyering  <jim@meyering.net>
54896
54897         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Fix typo in comment.
54898
54899 2007-09-27  Jim Meyering  <jim@meyering.net>
54900
54901         canonicalize: Avoid a false-positive cycle failure.
54902         * modules/canonicalize (Depends-on): Add file-set and hash-triple.
54903         Sort.  Remove cycle-check.
54904         * lib/canonicalize.c: Include file-set.h and hash-triple.h,
54905         not cycle-check.h.
54906         (seen_triple): New function.
54907         (canonicalize_filename_mode): Use it instead of cycle-check.
54908         * tests/test-canonicalize.c: Add a test for this bug.
54909         * tests/test-canonicalize.sh: Set up and run the test.
54910
54911         New module, file-set, from coreutils.
54912         * modules/file-set: Define it.
54913         * lib/file-set.c, lib/file-set.h: Implement.
54914
54915         New module, hash-triple, from coreutils.
54916         * modules/hash-triple: Define it.
54917         * lib/hash-triple.c, lib/hash-triple.h: Implement.
54918
54919 2007-09-25  Eric Blake  <ebb9@byu.net>
54920
54921         Fix strerror on Interix.
54922         * lib/string_.h (strerror): Declare replacement.
54923         * doc/functions/strerror.texi (strerror): Document the Interix
54924         shortcoming.
54925         * modules/string (Makefile.am): Support new hooks.
54926         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Add new hooks.
54927         * m4/strerror.m4 (gl_FUNC_STRERROR): Defer to
54928         gl_FUNC_STRERROR_SEPARATE.
54929         (gl_FUNC_STRERROR_SEPARATE): Check for Interix bug.
54930         * lib/strerror.c (rpl_strerror): Provide replacement.
54931         * modules/strerror (Depends-on): Add string.
54932         (configure.ac): Detect use of module.
54933         * tests/test-strerror.c: New file.
54934         * modules/strerror-tests: New test module.
54935         * modules/argp (Depends-on): Add strerror.
54936         * modules/error (Depends-on): Likewise.
54937         Reported by Martin Koeppe.
54938
54939 2007-09-24  Bruno Haible  <bruno@clisp.org>
54940
54941         * README: Update git instructions.
54942
54943 2007-09-24  Eric Blake  <ebb9@byu.net>
54944
54945         Revert fpending breakage from 2007-09-08.
54946         * m4/fpending.m4 (gl_FUNC_FPENDING): Don't require existence of
54947         __fpending.c.
54948
54949 2007-09-24  Jim Meyering  <jim@meyering.net>
54950
54951         filenamecat.c: Add a test.
54952         * lib/filenamecat.c (main) [TEST_FILE_NAME_CONCAT]: Add a test
54953         showing how the function works when DIR is the empty string.
54954
54955 2007-09-21  Simon Josefsson  <simon@josefsson.org>
54956
54957         * tests/test-canonicalize.sh: Turn on executable bit.
54958
54959 2007-09-19  Eric Blake  <ebb9@byu.net>
54960
54961         * README: Update CVS instructions.
54962
54963 2007-09-18  Bruno Haible  <bruno@clisp.org>
54964
54965         * modules/areadlink: New file.
54966         * lib/areadlink.h (areadlink): New declaration.
54967         * lib/areadlink.c: New file, based on lib/xreadlink.c.
54968
54969 2007-09-17  Jim Meyering  <jim@meyering.net>
54970
54971         * lib/savewd.c (ESTALE) [!defined]: Define.
54972         Reported to be required on Interix by Martin Koeppe.
54973
54974 2007-09-17  Bruno Haible  <bruno@clisp.org>
54975
54976         * gnulib-tool (func_version): Use $version.
54977
54978 2007-09-16  Bruno Haible  <bruno@clisp.org>
54979
54980         * m4/printf.m4 (gl_PRINTF_LONG_DOUBLE, gl_PRINTF_INFINITE,
54981         gl_PRINTF_INFINITE_LONG_DOUBLE): Increase buf's size from 100 to 10000.
54982         Needed on glibc-2.6.1 with -fstack-protector -D_FORTIFY_SOURCE=2.
54983         Reported by Greg Schafer <gschafer@zip.com.au>.
54984
54985 2007-09-15  Bruno Haible  <bruno@clisp.org>
54986
54987         * gnulib-tool (sed): Try a little harder to make bash understand the
54988         alias.
54989         Reported by Bruce Korb <bruce.korb@gmail.com>.
54990
54991 2007-09-13  Eric Blake  <ebb9@byu.net>
54992
54993         * ChangeLog: Remove conflict markers.
54994
54995 2007-09-13  Simon Josefsson  <simon@josefsson.org>
54996
54997         * lib/gc-gnulib.c (gc_hash_open): Catch NULL calloc return value.
54998         Reported by Bruno Haible <bruno@clisp.org>.
54999
55000 2007-09-12  Bruno Haible  <bruno@clisp.org>
55001
55002         * m4/lock.m4: Don't provide an AC_USE_SYSTEM_EXTENSIONS definition.
55003         (gl_LOCK_EARLY_BODY): Use AC_GNU_SOURCE when AC_USE_SYSTEM_EXTENSIONS
55004         is not defined.
55005
55006 2007-09-12  Eric Blake  <ebb9@byu.net>
55007
55008         Track CVS Autoconf on AC_USE_SYSTEM_EXTENSIONS.
55009         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Update to CVS
55010         Autoconf definition.
55011         * modules/euidaccess (Depends-on): Add extensions, for
55012         AC_USE_SYSTEM_EXTENSIONS with autoconf <= 2.59.
55013         * modules/fnmatch (Depends-on): Likewise.
55014         * modules/getaddrinfo (Depends-on): Likewise.
55015         * modules/getdelim (Depends-on): Likewise.
55016         * modules/getline (Depends-on): Likewise.
55017         * modules/getsubopt (Depends-on): Likewise.
55018         * modules/gettext (Depends-on): Likewise.
55019         * modules/group-member (Depends-on): Likewise.
55020         * modules/mbchar (Depends-on): Likewise.
55021         * modules/memmem (Depends-on): Likewise.
55022         * modules/mempcpy (Depends-on): Likewise.
55023         * modules/memrchr (Depends-on): Likewise.
55024         * modules/pagealign_alloc (Depends-on): Likewise.
55025         * modules/readutmp (Depends-on): Likewise.
55026         * modules/stpcpy (Depends-on): Likewise.
55027         * modules/stpncpy (Depends-on): Likewise.
55028         * modules/strchrnul (Depends-on): Likewise.
55029         * modules/strndup (Depends-on): Likewise.
55030         * modules/strsep (Depends-on): Likewise.
55031         * modules/strverscmp (Depends-on): Likewise.
55032         * modules/vasprintf (Depends-on): Likewise.
55033         * modules/wcwidth (Depends-on): Likewise.
55034         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): AC_GNU_SOURCE will be
55035         obsolete in Autoconf 2.62; use AC_USE_SYSTEM_EXTENSIONS instead.
55036         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_GNU): Likewise.
55037         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDR_INFO): Likewise.
55038         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
55039         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
55040         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Likewise.
55041         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
55042         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Likewise.
55043         * m4/mbchar.m4 (gl_MBCHAR): Likewise.
55044         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
55045         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Likewise.
55046         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Likewise.
55047         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Likewise.
55048         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC): Likewise.
55049         * m4/readutmp.m4 (gl_READUTMP): Likewise.
55050         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
55051         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Likewise.
55052         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
55053         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Likewise.
55054         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
55055         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Likewise.
55056         * m4/strsep.m4 (gl_FUNC_STRSEP): Likewise.
55057         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Likewise.
55058         * m4/vasprintf.m4 (gl_PREREQ_VASPRINTF_H): Likewise.
55059         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
55060         * m4/lock.m4 (gl_LOCK_EARLY_BODY): Likewise, but provide fallback,
55061         so that lock.m4 can be used in gettext without extensions module.
55062
55063 2007-09-11  Bruno Haible  <bruno@clisp.org>
55064
55065         * m4/isc-posix.m4: Remove file.
55066         Suggested by Eric Blake.
55067
55068 2007-09-11  Eric Blake  <ebb9@byu.net>
55069
55070         * ChangeLog: Restore lines accidentally truncated 2007-04-06.
55071
55072 2007-09-10  Bruno Haible  <bruno@clisp.org>
55073
55074         * posix-modules: Fix typo in error message.
55075         Reported by Matt <mkraai@beckman.com>.
55076
55077 2007-09-09  Bruno Haible  <bruno@clisp.org>
55078
55079         * doc/functions/getdelim.texi: Update list of platforms lacking the
55080         function.
55081         * doc/functions/getline.texi: Likewise.
55082
55083 2007-09-09  Jim Meyering  <jim@meyering.net>
55084
55085         * lib/hash.c (hash_initialize): Detect calloc failure.
55086         Reported by Bruno Haible.
55087
55088 2007-09-09  Bruno Haible  <bruno@clisp.org>
55089
55090         * lib/canonicalize-lgpl.c (__realpath): Set errno to ENOMEM when
55091         malloc or realloc fails.
55092
55093 2007-09-09  Bruno Haible  <bruno@clisp.org>
55094
55095         * modules/getcwd (Depends-on): Add malloc-posix.
55096         * modules/glob (Depends-on): Likewise.
55097         * modules/putenv (Depends-on): Likewise.
55098         * modules/strdup (Depends-on): Likewise.
55099         * modules/getdelim (Depends-on): Add realloc-posix.
55100         * modules/read-file (Depends-on): Likewise.
55101
55102 2007-09-09  Bruno Haible  <bruno@clisp.org>
55103
55104         * m4/malloc.m4 (gl_CHECK_MALLOC_POSIX): New macro.
55105         (gl_FUNC_MALLOC_POSIX): Require it.
55106         * m4/realloc.m4 (gl_FUNC_REALLOC_POSIX): Likewise.
55107         * m4/calloc.m4 (gl_FUNC_CALLOC_POSIX): Likewise.
55108         * modules/realloc (Files): Add m4/malloc.m4.
55109         * modules/calloc (Files): Likewise.
55110
55111 2007-09-09  Bruno Haible  <bruno@clisp.org>
55112
55113         * modules/malloc-posix: New file.
55114         * modules/malloc (Depends-on): Add malloc-posix.
55115         * lib/malloc.c: Include errno.h.
55116         (rpl_malloc): Merge the requirements of a glibc-compatible malloc
55117         and a POSIX-compatible malloc into a single function. Set ENOMEM
55118         when returning NULL.
55119         * m4/malloc.m4: New file.
55120         * doc/functions/malloc.texi: Mention the malloc-posix module.
55121         * lib/stdlib_.h (malloc): New declaration.
55122         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
55123         GNULIB_MALLOC_POSIX and HAVE_MALLOC_POSIX.
55124         * modules/stdlib (stdlib.h): Substitute also GNULIB_MALLOC_POSIX
55125         and HAVE_MALLOC_POSIX.
55126
55127 2007-09-09  Bruno Haible  <bruno@clisp.org>
55128
55129         * modules/realloc-posix: New file.
55130         * modules/realloc (Depends-on): Add realloc-posix.
55131         * lib/realloc.c: Include errno.h.
55132         (rpl_realloc): Merge the requirements of a glibc-compatible realloc
55133         and a POSIX-compatible realloc into a single function. Set ENOMEM
55134         when returning NULL.
55135         * m4/realloc.m4: New file.
55136         * doc/functions/realloc.texi: Mention the realloc-posix module.
55137         * lib/stdlib_.h (realloc): New declaration.
55138         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
55139         GNULIB_REALLOC_POSIX and HAVE_REALLOC_POSIX.
55140         * modules/stdlib (stdlib.h): Substitute also GNULIB_REALLOC_POSIX
55141         and HAVE_REALLOC_POSIX.
55142
55143 2007-09-09  Bruno Haible  <bruno@clisp.org>
55144
55145         * modules/calloc-posix: New file.
55146         * modules/calloc (Depends-on): Add calloc-posix.
55147         * lib/calloc.c: Include errno.h.
55148         (rpl_calloc): Merge the requirements of a glibc-compatible calloc
55149         and a POSIX-compatible calloc into a single function. Set ENOMEM
55150         when returning NULL.
55151         * m4/calloc.m4 (gl_FUNC_CALLOC_POSIX): New macro.
55152         * doc/functions/calloc.texi: Mention the calloc-posix module.
55153         * lib/stdlib_.h (calloc): New declaration.
55154         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
55155         GNULIB_CALLOC_POSIX and HAVE_CALLOC_POSIX.
55156         * modules/stdlib (stdlib.h): Substitute also GNULIB_CALLOC_POSIX
55157         and HAVE_CALLOC_POSIX.
55158
55159 2007-09-09  Bruno Haible  <bruno@clisp.org>
55160
55161         Allow for modules to show an arbitrary notice.
55162         * modules/TEMPLATE-EXTENDED: Add 'Notice' field.
55163         * gnulib-tool: New option --extract-notice.
55164         (func_usage): Document it.
55165         (sed_extract_prog): Update.
55166         (func_get_notice): New function.
55167         (func_modules_notice): New function.
55168         (func_import, func_create_testdir): Invoke it.
55169         Suggested by Jim Meyering.
55170
55171 2007-09-09  Bruno Haible  <bruno@clisp.org>
55172
55173         * gnulib-tool: New options --verbose, --quiet.
55174         (func_usage): Document them.
55175         (verbose): New variable.
55176         (func_execute_command): New function.
55177         (func_import): Don't show the module list and the file list if
55178         $verbose < 0.
55179         (func_create_testdir): Likewise. Use func_execute_command.
55180         (func_create_megatestdir): Use func_execute_command.
55181
55182 2007-09-08  Bruno Haible  <bruno@clisp.org>
55183
55184         * gnulib-tool (func_import): Prefer rsync over wget when available,
55185         for fetching the PO files.
55186
55187 2007-09-08  Bruno Haible  <bruno@clisp.org>
55188
55189         * posix-modules: New file. Portions copied from gnulib-tool.
55190         * doc/gnulib.texi (POSIX Substitutes Library): New chapter.
55191
55192 2007-09-08  Jim Meyering  <jim@meyering.net>
55193
55194         Rename __fpending.c -> fpending.c and __fpending.h -> fpending.h
55195         * lib/fpending.h: Rename from __fpending.h.
55196         * lib/fpending.c: Rename from __fpending.c.
55197         Include "fpending.h", not "__fpending.h".
55198         * lib/__fpending.h, lib/__fpending.c: Remove files.
55199         * modules/fpending (Files): Reflect new file names.
55200         * lib/close-stream.c: Include "fpending.h", not "__fpending.h".
55201
55202 2007-09-08  Bruno Haible  <bruno@clisp.org>
55203
55204         * m4/inttypes-h.m4: Remove stub file.
55205
55206 2007-09-07  Simon Josefsson  <simon@josefsson.org>
55207
55208         * doc/headers/stdint.texi: Discuss #include_next issue.
55209
55210 2007-09-06  Paul Eggert  <eggert@cs.ucla.edu>
55211
55212         * build-aux/bootstrap: Remove obsolete comment about wget --help.
55213
55214 2007-09-06  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
55215
55216         * m4/time_h.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Fix misspelling
55217         in variable name.
55218
55219 2007-09-03  Jim Meyering  <jim@meyering.net>
55220
55221         New module: git-version-gen.
55222         * modules/git-version-gen: New file.
55223
55224         Import changes from coreutils for bootstrap script.
55225
55226         * build-aux/bootstrap (WGET_COMMAND): Remove code to set this variable.
55227
55228         bootstrap: uses rsync to download the .po files
55229         * build-aux/bootstrap (po_download_command_format): New global.
55230         (download_po_files): Use rsync.
55231         (update_po_files): Don't remove .po files after download,
55232         so future rsync runs can take advantage of the copies.
55233
55234         * build-aux/bootstrap (gnulib_tool): Make sha1sum check quietly.
55235
55236         Solve the unnecessary-.po-file-regeneration problem once and for all.
55237         * build-aux/bootstrap (download_po_files): New function, renamed from
55238         get_translations.  Now, downloads, but doesn't update LINGUAS.
55239         (update_po_files): New function.
55240
55241         bootstrap: Ignore more.
55242         * build-aux/bootstrap (symlink_to_dir): Add a directory name like
55243         uniwidth to e.g., lib/.gitignore.
55244         (slurp): Handle the sys_stat_.h -> sys mapping, too.
55245
55246         * build-aux/bootstrap: New setting: vc_ignore.
55247         (insert_sorted_if_absent): Create $file if absent.
55248         Adapt to new, possibly empty, list: $vc_ignore.
55249
55250         bootstrap: generate more ignorable names
55251         * build-aux/bootstrap (slurp): When generating ignorable names,
55252         also map .sin to .sed, .gperf to .c, and .y to .c.
55253
55254 2007-09-03  Jim Meyering  <jim@meyering.net>
55255
55256         * build-aux/git-version-gen: New file, from coreutils.  For details, see
55257         http://git.sv.gnu.org/gitweb/?p=coreutils.git;a=commitdiff;h=bfe49f506
55258
55259 2007-09-02  Bruno Haible  <bruno@clisp.org>
55260
55261         Fix mis-recognition of 'mcs' on QNX 6.
55262         * m4/csharpcomp.m4 (gt_CSHARPCOMP): Test whether the "mcs --version"
55263         output contains the string "Mono".
55264         * lib/csharpcomp.c (compile_csharp_using_mono): Likewise.
55265         Reported by <kraai@ftbfs.org> at <https://savannah.gnu.org/bugs/?18337>.
55266
55267 2007-09-01  Bruno Haible  <bruno@clisp.org>
55268
55269         Fix collision between uniwidth/* and linebreak modules.
55270         * lib/linebreak.h (locale_charset, uc_width, u8_width, u16_width,
55271         u32_width): Remove declarations.
55272         * lib/linebreak.c: Include uniwidth.h, uniwidth/cjk.h, streq.h.
55273         (u32_mbtouc_unsafe, streq9, streq8, streq7, streq6, streq5, streq4,
55274         streq3, streq2, streq1, streq0): Remove functions.
55275         (STREQ): Remove macro.
55276         (is_cjk_encoding): Remove function.
55277         (nonspacing_table_data, nonspacing_table_ind): Remove constants.
55278         (uc_width, u8_width, u16_width, u32_width): Remove functions.
55279         * modules/linebreak (Depends-on): Add streq, uniwidth/width.
55280         * NEWS: Document the change.
55281
55282 2007-09-01  Bruno Haible  <bruno@clisp.org>
55283
55284         * lib/streq.h: Add double-inclusion guard.
55285
55286 2007-09-01  Karl Berry  <karl@gnu.org>
55287
55288         * MODULES.html.sh: Rename mreadlink_with_size to areadlink_with_size.
55289
55290 2007-08-28  Jim Meyering  <jim@meyering.net>
55291
55292         Rename mreadlink_with_size to areadlink_with_size.
55293         * NEWS: Document the change.
55294         * lib/mreadlink-with-size.c (mreadlink_with_size): Rename this to...
55295         * lib/areadlink-with-size.c (areadlink_with_size): ...this.
55296         * lib/mreadlink.h: Rename this to...
55297         * lib/areadlink.h: ...this.
55298         * modules/mreadlink-with-size: Rename this to...
55299         * modules/areadlink-with-size: ...this.
55300         * lib/canonicalize.c: Reflect the renaming.
55301         * modules/canonicalize: Likewise.
55302
55303 2007-08-26  Bruno Haible  <bruno@clisp.org>
55304
55305         * gnulib-tool (func_import): When deciding which files to remove,
55306         consider also dangling symbolic links.
55307         Reported by Eric Blake.
55308
55309 2007-08-26  Bruno Haible  <bruno@clisp.org>
55310
55311         * gnulib-tool (func_ln_if_changed): Use "test -h", not "test -L".
55312
55313 2007-08-23  Simon Josefsson  <simon@josefsson.org>
55314
55315         * lib/readline.c: Don't include getline.h, the prototype is now
55316         found in stdio.h.
55317
55318 2007-08-23  Jim Meyering  <jim@meyering.net>
55319
55320         Getdelim touchup.
55321         * lib/getdelim.c (getdelim): Don't bother to save/restore errno
55322         around the funlockfile call, since funlockfile never sets errno.
55323         Don't set errno upon failed realloc.
55324
55325 2007-08-22  Eric Blake  <ebb9@byu.net>
55326
55327         Getline touchups.
55328         * lib/getdelim.c (getdelim): Revert regression that required *n to
55329         be 0 when *lineptr is NULL.  Preserve errno across funlockfile.
55330         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Check for declaration of
55331         getdelim, rather than whether implementation is missing.
55332         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise for getline.
55333         * lib/stdio_.h (getline): Also declare if replacement is
55334         required.
55335         * doc/functions/getdelim.texi: New file.
55336         * doc/functions/getline.texi: Likewise.
55337         * doc/gnulib.texi (Function Substitutes): Add new files.
55338         Reported by Bruno Haible.
55339
55340 2007-08-22  Ludovic Courtès  <ludo@gnu.org>
55341
55342         * users.txt: Add Guile.
55343
55344 2007-08-22  Eric Blake  <ebb9@byu.net>
55345
55346         * tests/test-getdelim.c (main): Use remove, not unlink.
55347         * tests/test-getline.c (main): Likewise.
55348
55349         Move getline and getdelim into stdio.h, per POSIX 200x.
55350         * modules/getline (Files): Remove getline.h.
55351         (Depends-on): Add stdio.
55352         (configure.ac): Add module indicator.
55353         * modules/getdelim (Files): Remove getdelim.h.
55354         (Depends-on): Add stdio.
55355         (configure.ac): Add module indicator.
55356         * modules/stdio (Makefile.am): Work with new indicators.
55357         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add new defaults.
55358         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Work with stdio needs.
55359         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
55360         * lib/getdelim.h: Delete.
55361         * lib/getline.h: Delete.
55362         * lib/stdio_.h (getdelim, getline): Declare.
55363         * modules/getdelim-tests: New module.
55364         * modules/getline-tests: Likewise.
55365         * tests/test-getdelim.c: New file.
55366         * tests/test-getline.c: Likewise.
55367         * NEWS: Document the change.
55368         * lib/getline.c: Update choice of header.
55369         * lib/csharpcomp.c: Likewise.
55370         * lib/getpass.c: Likewise.
55371         * lib/javacomp.c: Likewise.
55372         * lib/javaversion.c: Likewise.
55373         * lib/yesno.c: Likewise.
55374         * lib/getdelim.c: Likewise.
55375         (getdelim): Set errno on failure, and avoid memory leak.
55376
55377 2007-08-19  Bruno Haible  <bruno@clisp.org>
55378
55379         * modules/closein (Depends-on): Add freadahead.
55380         * lib/closein.c: Include freadahead.h.
55381         (close_stdin): Skip the fseeko and fflush calls if freadahead(stdin)
55382         is zero.
55383
55384 2007-08-19  Bruno Haible  <bruno@clisp.org>
55385
55386         * modules/freadahead-tests: New file.
55387         * tests/test-freadahead.sh: New file.
55388         * tests/test-freadahead.c: New file.
55389
55390         * modules/freadahead: New file.
55391         * lib/freadahead.h: New file.
55392         * lib/freadahead.c: New file.
55393         * MODULES.html.sh (File stream based Input/Output): Add freadahead,
55394         fbufmode, fpurge, freadable, fwritable.
55395
55396 2007-08-19  Eric Blake  <ebb9@byu.net>
55397
55398         Test yesno in combination with closein.
55399         * lib/yesno.c (yesno): Document use of stdin.
55400         * modules/yesno-tests (Files): New module.
55401         * tests/test-yesno.c (main): New file.
55402         * tests/test-yesno.sh: Likewise.
55403
55404 2007-08-19  Bruno Haible  <bruno@clisp.org>
55405
55406         * lib/fbufmode.c (fbufmode): Add tentative support for Solaris/AMD64.
55407         * lib/fseeko.c (rpl_fseeko): Likewise.
55408         * lib/fseterr.c (fseterr): Likewise.
55409
55410 2007-08-19  Bruno Haible  <bruno@clisp.org>
55411
55412         * tests/test-lseek.c (main): Disable a test for BeOS.
55413         * doc/functions/lseek.texi: Document the BeOS bug.
55414
55415 2007-08-19  Bruno Haible  <bruno@clisp.org>
55416             Eric Blake  <ebb9@byu.net>
55417
55418         * lib/lseek.c: Include <sys/stat.h>.
55419         (rpl_lseek): Add workaround code also for Unix platforms.
55420         Needed for BeOS.
55421         * m4/lseek.m4 (gl_FUNC_LSEEK): When cross-compiling, fail on BeOS.
55422         * doc/functions/lseek.texi: Document BeOS definiency.
55423
55424 2007-08-18  Bruno Haible  <bruno@clisp.org>
55425
55426         * modules/fstrcmp-tests: New file.
55427         * tests/test-fstrcmp.c: New file.
55428
55429 2007-08-18  Bruno Haible  <bruno@clisp.org>
55430
55431         * modules/fstrcmp: New file, from GNU gettext with modifications.
55432         * lib/fstrcmp.h: New file, from GNU gettext.
55433         * lib/fstrcmp.c: New file, from GNU gettext.
55434         * MODULES.html.sh (String handling): Add fstrcmp.
55435
55436 2007-08-18  Bruno Haible  <bruno@clisp.org>
55437
55438         * lib/diffseq.h (struct context): Change type of 'heuristic' field to
55439         'bool'.
55440         (diag, compareseq): Remove const from the ctxt argument.
55441         (USE_HEURISTIC): Undefine at the end.
55442
55443 2007-08-18  Jim Meyering  <jim@meyering.net>
55444
55445         New file: lib/idcache.h
55446         * NEWS: Mention the addition.
55447         * modules/idcache (Files): Add lib/idcache.h
55448         * lib/idcache.c: Include "idcache.h".
55449         Don't include <sys/types.h>.
55450         Add a FIXME comment.
55451         Move file-scoped "static" declarations to the top.
55452         * lib/idcache.h: New file.  Include <sys/types.h> here, instead.
55453
55454 2007-08-17  Bruno Haible  <bruno@clisp.org>
55455         and Paul Eggert  <eggert@cs.ucla.edu>
55456
55457         * MODULES.html.sh: Add diffseq.
55458         * modules/diffseq: New file.
55459         * lib/diffseq.h: New file, from GNU gettext with a few minor changes,
55460         extracted from GNU gettext's fstrcmp.c and GNU diff's analyze.c.
55461
55462 2007-08-15  Paul Eggert  <eggert@cs.ucla.edu>
55463
55464         Import changes from coreutils for bootstrap script.
55465
55466         2007-07-21  Paul Eggert  <eggert@cs.ucla.edu>
55467
55468         * build-aux/bootstrap (slurp): Work even in environments where
55469         "ls" defaults to "ls -A".  Put in a FIXME, though, since the
55470         current code does not slurp files whose names start with ".", and
55471         this looks like it might be a troublesome area.
55472
55473         2007-07-11  Jim Meyering  <jim@meyering.net>
55474
55475         If there's a GPL vN copyright comment, require that N == 3.
55476
55477         2007-07-08  Jim Meyering  <jim@meyering.net>
55478
55479         Run the coreutils-specific code only if tests/Makefile.am.in exists.
55480         * build-aux/bootstrap (mam_template): Move definition out of loop.
55481
55482         Create symlinks for gl/{lib,m4}/*, just as for gnulib/{lib,m4}/*.
55483
55484         * build-aux/bootstrap (symlink_to_dir): Rename function from
55485         symlink_to_gnulib.  Add a directory parameter.  Update all
55486         callers.
55487         (cp_mark_as_generated): Also check for -- and link to -- files in
55488         gl/.
55489
55490         2007-07-08  Jim Meyering  <jim@meyering.net>
55491
55492         Adapt to deeper hierarchy in gnulib.
55493         * build-aux/bootstrap (symlink_to_dir): If the destination
55494         directory doesn't exist, create it. This is required at least for
55495         "lib/uniwidth/cjk.h".
55496
55497         2007-05-15  Jim Meyering  <jim@meyering.net>
55498
55499         * build-aux/bootstrap: Now that generated Makefile.am files
55500         are no longer under version control, they must be created at
55501         bootstrap time.
55502
55503 2007-08-14  Ben Pfaff  <blp@gnu.org>
55504
55505         * lib/count-one-bits.h: Add comments.  From Bruno Haible.
55506
55507 2007-08-14  Paul Eggert  <eggert@cs.ucla.edu>
55508
55509         * lib/count-one-bits.h: Don't include <limits.h>; no longer needed
55510         given the changes below.
55511         (COUNT_ONE_BITS): Use 'verify' rather than 'verify_true'.  Work
55512         even on hosts that have padding bits beyond the supported 64.
55513
55514 2007-08-10  Paul Eggert  <eggert@cs.ucla.edu>
55515
55516         * NEWS: In xstrtol, remove STRTOL_FATAL_ERROR and add xstrtol_fatal.
55517         * lib/xstrtol.h: Don't include exitfail.h; that's now internal to
55518         xstrtol.c.  Include getopt.h, since xstrtol_fatal's signature
55519         depends on it.
55520         (xstrtol_error): Remove.
55521         (xstrtol_fatal): New decl, replacing the functionality of xstrtol_error
55522         but with a different signature.
55523         (ATTRIBUTE_NORETURN, __attribute__): New macros.
55524         * lib/xstrtol-error.c: Include exitfail.h.
55525         (xstrtol_fatal): New function, with a different signature from the
55526         old xstrtol_error, so that the caller need not worry about passing
55527         in an exit status, or about storage management of the option argument.
55528         (xstrtol_error): Now a static function.  Redo signature to
55529         implement xstrtol_fatal.  Output the correct number of hyphens in
55530         front of the option so that the caller need not worry about
55531         storage management.
55532         (N_): New macro.
55533         (_): Remove; not used now.
55534         * modules/xstrtol: Depend on getopt.
55535         * tests/test-xstrtol.c (main): Use new xstrtol_error function instead
55536         of old STRTOL_FATAL_ERROR macro.
55537         * tests/test-xstrtol.sh (t-xstrtol.xo): Adjust to match new behavior
55538         of test program.
55539         * tests/test-xstrtoimax.sh (t-xstrtoimax.xo): Likewise.
55540         * tests/test-xstrtoumax.sh (t-xstrtoumax.xo): Likewise.
55541
55542 2007-08-08  Eric Blake  <ebb9@byu.net>
55543
55544         * lib/xstrtol-error.c: Add missing include.
55545
55546         Move xstrtol messages into gnulib domain, when --pobase is used.
55547         * lib/xstrtol.h (_STRTOL_ERROR): Move messages out of macro...
55548         * lib/xstrtol-error.c (xstrtol_error): ...into new file.
55549         * modules/xstrtol (Files): Distribute new file.
55550         * m4/xstrtol.m4 (gl_XSTRTOL): Build new file.
55551         * lib/xstrtol.c (TESTING_XSTRTO): Move tests...
55552         * tests/test-xstrtol.c: ...into new file.
55553         * tests/test-xstrtoul.c: Also test xstrtoul.
55554         * tests/test-xstrtoimax.c: Also test xstrtoimax.
55555         * tests/test-xstrtoumax.c: Also test xstrtoumax.
55556         * tests/test-xstrtol.sh: Drive the tests.
55557         * tests/test-xstrtoimax.sh: Likewise.
55558         * tests/test-xstrtoumax.sh: Likewise.
55559         * modules/xstrtol-tests: New module.
55560         * modules/xstrtoimax-tests: Likewise.
55561         * modules/xstrtoumax-tests: Likewise.
55562
55563 2007-08-08  Jim Meyering  <jim@meyering.net>
55564
55565         New function: mfile_name_concat.
55566         * lib/filenamecat.c (mfile_name_concat): New function, just like
55567         file_name_concat, but return NULL upon failure rather than exiting
55568         with a diagnostic.
55569         * lib/filenamecat.h: Declare it.
55570
55571 2007-08-07  Bruno Haible  <bruno@clisp.org>
55572
55573         * m4/inttypes.m4 (gl_INTTYPES_H): Use GL_TRIGGER_STDC_LIMIT_MACROS
55574         instead of __STDC_LIMIT_MACROS_TRIGGER. This avoids a redefinition
55575         warning from gcc.
55576         Reported by Eric Blake.
55577
55578 2007-08-07  Simon Josefsson  <simon@josefsson.org>
55579
55580         * modules/crypto/arctwo (License): Use the synonymous term "LGPLv2+".
55581         * modules/crypto/arcfour (License): Likewise.
55582         * modules/crypto/des-tests (License): Likewise.
55583         * modules/crypto/gc-arctwo-tests (License): Likewise.
55584         * modules/crypto/gc-des-tests (License): Likewise.
55585         * modules/crypto/gc-hmac-md5-tests (License): Likewise.
55586         * modules/crypto/gc-hmac-sha1-tests (License): Likewise.
55587         * modules/crypto/gc-md2-tests (License): Likewise.
55588         * modules/crypto/gc-md4-tests (License): Likewise.
55589         * modules/crypto/gc-md5-tests (License): Likewise.
55590         * modules/crypto/gc-pbkdf2-sha1-tests (License): Likewise.
55591         * modules/crypto/gc-rijndael-tests (License): Likewise.
55592         * modules/crypto/gc-sha1-tests (License): Likewise.
55593         * modules/crypto/gc-tests (License): Likewise.
55594         * modules/crypto/hmac-md5 (License): Likewise.
55595         * modules/crypto/hmac-sha1 (License): Likewise.
55596         * modules/crypto/md2-tests (License): Likewise.
55597         * modules/crypto/md4-tests (License): Likewise.
55598         * modules/crypto/md5 (License): Likewise.
55599         * modules/crypto/rijndael (License): Likewise.
55600         * modules/crypto/sha1 (License): Likewise.
55601         * modules/memxor (License): Likewise.
55602
55603 2007-08-06  Paul Eggert  <eggert@cs.ucla.edu>
55604         and Bruno Haible  <bruno@clisp.org>
55605
55606         * NEWS: Describe interface changes to human, xstrtol.
55607         * lib/human.h: Include <xstrtol.h>.
55608         (human_options): Return enum strtol_error, not int.  Remove
55609         bool arg; take int * instead.
55610         * lib/human.c: Don't include "gettext.h".
55611         (_): Remove; no longer used.
55612         Don't include <xstrtol.h>, since human.h does it.
55613         (human_options): Adjust to abovementioned interface changes.
55614         Do not report error to stderr; that's now the caller's
55615         responsibility.
55616         * lib/xstrtol.c (main) [defined TESTING_XSTRTO]: Adjust to
55617         interface change.
55618         * lib/xstrtol.h (_STRTOL_ERROR): Take Option, Arg rather than
55619         Str, Argument_type_string.  All uses changed.  Put " argument"
55620         in diagnostics to make them clearer.  Change wording of suffix
55621         message for clarity.
55622         (STRTOL_FATAL_ERROR): Take Option, Arg rather than Str,
55623         Argument_type_string.
55624         (STRTOL_FATAL_WARN): Remove; no longer used.
55625         * modules/human (Depends-on): Remove gettext-h.
55626
55627 2007-08-06  Simon Josefsson  <simon@josefsson.org>
55628
55629         * build-aux/maint.mk, build-aux/GNUmakefile: Relicense to GPLv3+.
55630
55631 2007-07-31  Bruno Haible  <bruno@clisp.org>
55632
55633         * m4/stdint.m4 (gl_STDINT_H): Test whether WCHAR_MIN and WCHAR_MAX
55634         are defined by <stdint.h> (as opposed to <wchar.h>, as on Dragonfly).
55635         Reported by Joerg Sonnenberger <joerg@britannica.bec.de>.
55636
55637 2007-07-31  Bruno Haible  <bruno@clisp.org>
55638
55639         * lib/fflush.c (rpl_fflush): On BSD systems, use the __SNPT flag.
55640         Suggested by Joerg Sonnenberger <joerg@britannica.bec.de>.
55641
55642 2007-07-30  Bruno Haible  <bruno@clisp.org>
55643
55644         * modules/base64 (License): Use the synonymous term "LGPLv2+".
55645         * modules/c-ctype (License): Likewise.
55646         * modules/c-strcase (License): Likewise.
55647         * modules/check-version (License): Likewise.
55648         * modules/iconv (License): Likewise.
55649         * modules/iconv_open (License): Likewise.
55650         * modules/read-file (License): Likewise.
55651         * modules/striconv (License): Likewise.
55652         * modules/strverscmp (License): Likewise.
55653         * modules/vasprintf (License): Likewise.
55654         * modules/crypto/des (License): Likewise.
55655         * modules/crypto/gc (License): Likewise.
55656         * modules/crypto/gc-arcfour (License): Likewise.
55657         * modules/crypto/gc-arctwo (License): Likewise.
55658         * modules/crypto/gc-des (License): Likewise.
55659         * modules/crypto/gc-hmac-md5 (License): Likewise.
55660         * modules/crypto/gc-hmac-sha1 (License): Likewise.
55661         * modules/crypto/gc-md2 (License): Likewise.
55662         * modules/crypto/gc-md4 (License): Likewise.
55663         * modules/crypto/gc-md5 (License): Likewise.
55664         * modules/crypto/gc-pbkdf2-sha1 (License): Likewise.
55665         * modules/crypto/gc-random (License): Likewise.
55666         * modules/crypto/gc-rijndael (License): Likewise.
55667         * modules/crypto/gc-sha1 (License): Likewise.
55668         * modules/crypto/md2 (License): Likewise.
55669         * modules/crypto/md4 (License): Likewise.
55670
55671 2007-07-30  Jim Meyering  <jim@meyering.net>
55672
55673         * lib/fts.c (fts_read): Upon failure to chdir into a subdirectory,
55674         set fts_info to FTS_DNR, not to FTS_ERR, so that the caller knows
55675         it has valid stat data.  This bug would cause du not to count the
55676         sizes of inaccessible directories.
55677         Patch by Bryan Mason <bmason@redhat.com>, via Jose Maria Plans
55678         in <http://bugzilla.redhat.com/250077>.
55679
55680 2007-07-25  Peter O'Gorman  <peter@pogma.com>
55681             Bruno Haible  <bruno@clisp.org>
55682
55683         * m4/include_next.m4 (gl_INCLUDE_NEXT): Test whether #include_next
55684         really works. Needed because AIX 4.3 "xlc -E" doesn't understand
55685         #include_next, gives a diagnostic about it, but reports no error in
55686         the exit code.
55687         Reported by Gary V. Vaughan <gary@thewrittenword.com>.
55688
55689 2007-07-24  Ben Pfaff  <blp@gnu.org>
55690
55691         Improve name: "count-one-bits" is better than "popcount".
55692         * MODULES.html.sh: Update name.
55693         * lib/popcount.h: Renamed lib/count-one-bits.h.
55694         (popcount): Renamed count_one_bits.
55695         (popcountl): Renamed count_one_bits_l.
55696         (popcountll): Renamed count_one_bits_ll.
55697         * m4/popcount.m4: Renamed m4/count-one-bits.m4.
55698         * modules/popcount: Renamed module/count-one-bits.
55699         * modules/popcount-tests: Renamed module/count-one-bits-tests.
55700         * tests/test-popcount.c: Renamed tests/test-count-one-bits.c.
55701
55702 2007-07-23  Ben Pfaff  <blp@gnu.org>
55703
55704         * lib/popcount.h (popcount32): Reduce size of constants, to allow
55705         better code generation, and add U to large constants to avoid
55706         warnings, in non-GCC case.
55707         Suggested by Bruno Haible.
55708
55709 2007-07-23  Ben Pfaff  <blp@gnu.org>
55710
55711         * lib/popcount.h: Use verify_true instead of if...abort.
55712         * modules/popcount: Depend on verify module.
55713         Suggested by Jim Meyering.
55714
55715 2007-07-23  Bruno Haible  <bruno@clisp.org>
55716
55717         * gnulib-tool (func_import): Create a .cvsignore file also when the
55718         directory is not yet in CVS but the toplevel directory is. When
55719         creating a .cvsignore file, add ".deps" and ".dirstamp" to it.
55720         Reported by Karl Berry.
55721
55722 2007-07-22  Ben Pfaff  <blp@gnu.org>
55723
55724         * lib/popcount.h: Use faster, branchless algorithm for non-GCC
55725         case.
55726         Suggested by Eric Blake.
55727
55728 2007-07-22  Ben Pfaff  <blp@gnu.org>
55729
55730         New module: popcount.
55731         * MODULES.html.sh: Add popcount.
55732         * modules/popcount: New file.
55733         * modules/popcount-tests: New file.
55734         * tests/test-popcount.c: New file.
55735         * lib/popcount.h: New file.
55736         * m4/popcount.m4: New file.
55737
55738 2007-07-22  Paul Eggert  <eggert@cs.ucla.edu>
55739
55740         * build-aux/announce-gen: Update to GPLv3.
55741
55742         * build-aux/config.guess: Update from config.
55743
55744 2007-07-21  Bruno Haible  <bruno@clisp.org>
55745
55746         * lib/error.c (_) [ENABLE_NLS]: Define to gettext.
55747         * lib/verror.c (_) [ENABLE_NLS]: Likewise.
55748
55749 2007-07-20  Jim Meyering  <jim@meyering.net>
55750
55751         * check-module: Diagnose a self-dependency.
55752
55753 2007-07-19  Bruno Haible  <bruno@clisp.org>
55754
55755         * gnulib-tool (func_import): Don't abort if pobase or po_domain is
55756         empty.
55757         Reported by Eric Blake.
55758
55759 2007-07-18  Bruno Haible  <bruno@clisp.org>
55760
55761         * gnulib-tool: New options --po-base, --po-domain.
55762         (func_usage): Document them.
55763         (pobase, po_domain): New variables.
55764         (func_emit_lib_Makefile_am): Augment AM_CPPFLAGS, defining
55765         DEFAULT_TEXT_DOMAIN.
55766         (func_emit_po_Makevars, func_emit_po_POTFILES_in): New functions.
55767         (func_import): Consider pobase and po_domain. Create a po/ directory.
55768         (func_create_testdir): Set pobase and po_domain to empty.
55769         * build-aux/po/Makefile.in.in: New file, from GNU gettext 0.16.1.
55770         * build-aux/po/remove-potcdate.sin: New file, from GNU gettext 0.16.1.
55771
55772 2007-07-18  Bruno Haible  <bruno@clisp.org>
55773
55774         * gnulib-tool (func_get_automake_snippet): Synthesize also an
55775         EXTRA_DIST augmentation for files in build-aux/.
55776
55777 2007-07-16  Bruno Haible  <bruno@clisp.org>
55778
55779         * modules/lseek (License): Use the synonymous term "LGPLv2+".
55780         * modules/getdelim (License): Likewise.
55781
55782 2007-07-16  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
55783
55784         * modules/arpa_inet (License): Use the synonymous term LGPLv2+.
55785         * modules/d-type (License): Likewise.
55786         * modules/extensions (License): Likewise.
55787         * modules/fnmatch (License): Likewise.
55788         * modules/fseeko (License): Likewise.
55789         * modules/getaddrinfo (License): Likewise.
55790         * modules/getline (License): Likewise.
55791         * modules/getlogin_r (License): Likewise.
55792         * modules/getpass (License): Likewise.
55793         * modules/gettimeofday (License): Likewise.
55794         * modules/glob (License): Likewise.
55795         * modules/inet_ntop (License): Likewise.
55796         * modules/malloc (License): Likewise.
55797         * modules/malloca (License): Likewise.
55798         * modules/memmem (License): Likewise.
55799         * modules/mempcpy (License): Likewise.
55800         * modules/memset (License): Likewise.
55801         * modules/minmax (License): Likewise.
55802         * modules/mktime (License): Likewise.
55803         * modules/netinet_in (License): Likewise.
55804         * modules/pathmax (License): Likewise.
55805         * modules/poll (License): Likewise.
55806         * modules/regex (License): Likewise.
55807         * modules/snprintf (License): Likewise.
55808         * modules/stdbool (License): Likewise.
55809         * modules/stdint (License): Likewise.
55810         * modules/stdio (License): Likewise.
55811         * modules/strcase (License): Likewise.
55812         * modules/strcasestr (License): Likewise.
55813         * modules/strdup (License): Likewise.
55814         * modules/string (License): Likewise.
55815         * modules/strndup (License): Likewise.
55816         * modules/strnlen (License): Likewise.
55817         * modules/strpbrk (License): Likewise.
55818         * modules/strptime (License): Likewise.
55819         * modules/strsep (License): Likewise.
55820         * modules/sys_select (License): Likewise.
55821         * modules/sys_socket (License): Likewise.
55822         * modules/sys_stat (License): Likewise.
55823         * modules/sys_time (License): Likewise.
55824         * modules/time (License): Likewise.
55825         * modules/time_r (License): Likewise.
55826         * modules/timegm (License): Likewise.
55827         * modules/unistd (License): Likewise.
55828         * modules/vsnprintf (License): Likewise.
55829         * modules/wctype (License): Likewise.
55830
55831 2007-07-16  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
55832
55833         * modules/argz (License): LGPLv2+.
55834
55835 2007-07-15  Karl Berry  <karl@gnu.org>
55836
55837         * doc/gnulib.texi: revise node structure per new fdl.texi.
55838
55839 2007-07-14  Bruno Haible  <bruno@clisp.org>
55840
55841         * lib/uniname/gen-uninames.lisp (main): Emit a "do not edit" line to
55842         the output file.
55843         * lib/uniname/uninames.h: Regenerated.
55844
55845 2007-07-14  Karl Berry  <karl@gnu.org>
55846
55847         * doc/*gpl*.texi, doc/fdl.texi: new versions, consistently
55848         omitting sectioning and index commands.
55849
55850 2007-07-13  Bruno Haible  <bruno@clisp.org>
55851
55852         New gnulib-tool option --more-symlinks.
55853         * gnulib-tool (func_usage): Document --more-symlinks.
55854         (do_copyrights): New variable.
55855         Recognize option --more-symlinks.
55856         (func_import): Don't add a copyright notice transform to
55857         sed_transform_lib_file if do_copyrights is empty.
55858
55859 2007-07-13  Bruno Haible  <bruno@clisp.org>
55860
55861         * lib/vasnprintf.c (decimal_point_char): Define also if
55862         (NEED_PRINTF_LONG_DOUBLE || NEED_PRINTF_INFINITE_DOUBLE)
55863         && !NEED_PRINTF_DIRECTIVE_A.
55864         Reported by Clemens Koller <clemens.koller@anagramm.de> via
55865         Gary V. Vaughan <gary@gnu.org>.
55866
55867 2007-07-13  Paul Eggert  <eggert@cs.ucla.edu>
55868
55869         * lib/inttypes_.h: Undo previous change, since it was fixed
55870         in a different way in the 2007-07-02 fix to m4/inttypes.m4.
55871
55872 2007-07-13  Bruno Haible  <bruno@clisp.org>
55873
55874         * lib/stdint_.h: Fix typo: _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H was
55875         misspelled as _GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H.
55876
55877 2007-07-13  Jim Meyering  <jim@meyering.net>
55878
55879         df: Don't fail for Tru64's "file-on-file mount".
55880         * m4/fsusage.m4 (gl_FSUSAGE): Reject Tru64's buggy statvfs,
55881         so we fall through and use statfs instead.  Details here:
55882         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/10878>
55883         Reported by Albert Chin.
55884
55885 2007-07-13  Bruno Haible  <bruno@clisp.org>
55886
55887         * modules/alloca-opt (License): Use the synonymous term "LGPLv2+".
55888         * modules/configmake (License): Likewise.
55889         * modules/gettext (License): Likewise.
55890         * modules/gettext-h (License): Likewise.
55891         * modules/include_next (License): Likewise.
55892         * modules/link-warning (License): Likewise.
55893         * modules/localcharset (License): Likewise.
55894         * modules/localename (License): Likewise.
55895         * modules/lock (License): Likewise.
55896         * modules/relocatable-lib-lgpl (License): Likewise.
55897         * modules/size_max (License): Likewise.
55898         * modules/vasnprintf (License): Likewise.
55899         * modules/wchar (License): Likewise.
55900         * modules/xsize (License): Likewise.
55901
55902 2007-07-13  Bruno Haible  <bruno@clisp.org>
55903
55904         * gnulib-tool (func_import): Treat LGPLv2 as synonymous to LGPL.
55905         (func_create_testdir): Handle copying terms "GPLv2+" and "LGPLv2+".
55906
55907 2007-07-12  Bruno Haible  <bruno@clisp.org>
55908
55909         * doc/gnulib-intro.texi (Copyright): Clarify the license abbreviations
55910         in the modules files.
55911
55912 2007-07-11  Karl Berry  <karl@gnu.org>
55913
55914         * MODULES.html.sh (func_module): use
55915          sed -e '\|^'"${includefile}"'$|d'
55916          instead of /.../d, to avoid errors on $includefile's containing /.
55917
55918 2007-07-10  Sergey Poznyakoff  <gray@gnu.org.ua>
55919
55920         * gnulib-tool (func_import): Avoid duplication of --avoid
55921         statements
55922         (func_dest_tmpfilename,func_create_testdir): Translate `-' in file
55923         names to `_' in variable names.
55924
55925 2007-07-10  Eric Blake  <ebb9@byu.net>
55926
55927         * lib/version-etc.c (version_etc_va): Default to GPLv3+.
55928         * NEWS: Document this change.
55929
55930 2007-07-08  Bruno Haible  <bruno@clisp.org>
55931
55932         Update to Unicode 5.0.
55933         * lib/uniwidth/width.c (nonspacing_table_data): Add U+00AD,
55934         U+0350..U+035F, U+05A2, U+05BA, U+05C5, U+05C7, U+0600..U+0603,
55935         U+0610..U+0615, U+0656..U+065E, U+07EB..U+07F3, U+0A01, U+0AE2..U+0AE3,
55936         U+0CBC. Remove U+0CBF, U+0CC6. Add U+0CE2..U+0CE3, U+135F,
55937         U+17B4..U+17B5, U+17DD. Remove U+180E. Add U+1920..U+1922,
55938         U+1927..U+192B, U+1932, U+1939..U+193B, U+1A17..U+1A18, U+1B00..U+1B03,
55939         U+1B34, U+1B36..U+1B3A, U+1B3C, U+1B42, U+1B6B..U+1B73, U+1DC0..U+1DCA,
55940         U+1DFE..U+1DFF, U+20EB..U+20EF, U+A802, U+A806, U+A80B, U+A825..U+A826,
55941         U+10A01..U+10A03, U+10A05..U+10A06, U+10A0C..U+10A0F, U+10A38..U+10A3A,
55942         U+10A3F, U+1D242..U+1D244.
55943         (nonspacing_table_ind): Update.
55944         (uc_width): Assign width 0 to U+E0100..U+E01EF. Assign width 1 to
55945         U+4DC0..U+4DFF. Assign width 2 to U+2329..U+232A, U+FE10..U+FE1F.
55946
55947 2007-07-08  Bruno Haible  <bruno@clisp.org>
55948
55949         Update to Unicode 5.0.
55950         * lib/uniname/gen-uninames.lisp (main): Add the range 0x12xxx to the
55951         code transform. Extend the name index field of unicode_name_to_code and
55952         unicode_code_to_name from 16 to 24 bits.
55953         * lib/uniname/uniname.c (unicode_character_name,
55954         unicode_name_character): Add the range 0x12xxx to the code transform.
55955         * lib/uniname/uninames.h: Regenerated.
55956         * tests/uniname/UnicodeDataNames.txt: Update to Unicode 5.0.
55957
55958 2007-07-07  Bruno Haible  <bruno@clisp.org>
55959
55960         * modules/wcwidth-tests: New file.
55961         * tests/test-wcwidth.c: New file.
55962
55963         Work around MacOS X wcwidth() bug.
55964         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Test against MacOS X 10.3 bug.
55965         * lib/wcwidth.c: Include localcharset.h, streq.h, uniwidth.h.
55966         (rpl_wcwidth): Special-case the UTF-8 locales. Fall back to the
55967         original wcwidth in non-UTF-8 locales.
55968         * modules/wcwidth (Depends-on): Add localcharset, streq,
55969         uniwidth/width.
55970         * doc/functions/wcwidth.texi: Update.
55971
55972 2007-07-07  Bruno Haible  <bruno@clisp.org>
55973
55974         * lib/wchar_.h: Include the GL_LINK_WARNING macro.
55975         (wcwidth): New declaration.
55976         * m4/wchar.m4 (gl_WCHAR_MODULE_INDICATOR, gl_WCHAR_H_DEFAULTS): New
55977         macros.
55978         (gl_WCHAR_H): Require gl_WCHAR_H_DEFAULTS. Don't set WCHAR_H to empty
55979         here. Prepare for creating <wchar.h> unconditionally.
55980         * modules/wchar (Depends-on): Add link-warning.
55981         (Makefile.am): Substitute also GNULIB_WCWIDTH, HAVE_DECL_WCWIDTH,
55982         REPLACE_WCWIDTH, and GL_LINK_WARNING.
55983         * lib/wcwidth.h: Remove file.
55984         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Require gl_WCHAR_H_DEFAULTS. Set
55985         HAVE_DECL_WCWIDTH, REPLACE_WCWIDTH, WCHAR_H.
55986         * modules/wcwidth (Files): Remove lib/wcwidth.h.
55987         (configure.ac): Invoke gl_WCHAR_MODULE_INDICATOR.
55988         (Include): Replace wcwidth.h with <wchar.h>.
55989         * lib/wcwidth.c: Include <wchar.h> instead of wcwidth.h.
55990         * lib/mbchar.h: Don't include wcwidth.h.
55991         * lib/mbswidth.c: Likewise.
55992         * NEWS: Mention the change.
55993
55994 2007-07-07  Bruno Haible  <bruno@clisp.org>
55995
55996         * lib/wcwidth.c: New file, extracted from lib/wcwidth.h.
55997         * lib/wcwidth.h: Don't include wctype.h. Replace inline function
55998         definition with an external declaration.
55999         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Use wcwidth.c when wcwidth is not
56000         defined as a function. Remove AC_C_INLINE requirement.
56001         * modules/wcwidth (Files): Add lib/wcwidth.c.
56002         (Makefile.am): Remove redundant statement.
56003
56004 2007-07-07  Bruno Haible  <bruno@clisp.org>
56005
56006         * MODULES.html.sh (Unicode string functions): Add the new modules.
56007
56008         * tests/uniwidth/test-u32-strwidth.c: New file.
56009         * modules/uniwidth/u32-strwidth-tests: New file.
56010
56011         * lib/uniwidth/u32-strwidth.c: New file.
56012         * modules/uniwidth/u32-strwidth: New file.
56013
56014         * tests/uniwidth/test-u16-strwidth.c: New file.
56015         * modules/uniwidth/u16-strwidth-tests: New file.
56016
56017         * lib/uniwidth/u16-strwidth.c: New file.
56018         * modules/uniwidth/u16-strwidth: New file.
56019
56020         * tests/uniwidth/test-u8-strwidth.c: New file.
56021         * modules/uniwidth/u8-strwidth-tests: New file.
56022
56023         * lib/uniwidth/u8-strwidth.c: New file.
56024         * modules/uniwidth/u8-strwidth: New file.
56025
56026         * tests/uniwidth/test-u32-width.c: New file.
56027         * modules/uniwidth/u32-width-tests: New file.
56028
56029         * lib/uniwidth/u32-width.c: New file.
56030         * modules/uniwidth/u32-width: New file.
56031
56032         * tests/uniwidth/test-u16-width.c: New file.
56033         * modules/uniwidth/u16-width-tests: New file.
56034
56035         * lib/uniwidth/u16-width.c: New file.
56036         * modules/uniwidth/u16-width: New file.
56037
56038         * tests/uniwidth/test-u8-width.c: New file.
56039         * modules/uniwidth/u8-width-tests: New file.
56040
56041         * lib/uniwidth/u8-width.c: New file.
56042         * modules/uniwidth/u8-width: New file.
56043
56044         * tests/uniwidth/test-uc_width.c: New file.
56045         * modules/uniwidth/width-tests: New file.
56046
56047         * lib/uniwidth/width.c: New file, from GNU libiconv.
56048         * lib/uniwidth/cjk.h: New file, from GNU libiconv.
56049         * modules/uniwidth/width: New file.
56050
56051         * lib/uniwidth.h: New file, from GNU libiconv.
56052         * modules/uniwidth/base: New file.
56053
56054 2007-07-07  Bruno Haible  <bruno@clisp.org>
56055
56056         * lib/uniname.h: New file, from GNU gettext.
56057         * lib/uniname/gen-uninames.lisp: New file, from GNU gettext.
56058         * lib/uniname/uninames.h: New file, from GNU gettext.
56059         * lib/uniname/uniname.c: New file, from GNU gettext.
56060         * tests/uniname/test-uninames.sh: New file.
56061         * tests/uniname/test-uninames.c: New file, from GNU gettext.
56062         * tests/uniname/UnicodeDataNames.txt: New file, from GNU gettext.
56063         * modules/uniname/base: New file.
56064         * modules/uniname/uniname: New file.
56065         * modules/uniname/uniname-tests: New file.
56066         * MODULES.html.sh (Unicode string functions): Add the new modules.
56067
56068 2007-07-06  Bruno Haible  <bruno@clisp.org>
56069
56070         * doc/Makefile (TEXI2HTML): Specify a --reference-limit.
56071
56072 2007-07-06  Bruno Haible  <bruno@clisp.org>
56073
56074         * lib/sys_time_.h: Use a recursion-safe inclusion guard rather than
56075         a split double-inclusion guard. Needed for cygwin, where <sys/time.h>
56076         includes <cygwin/sys_time.h> which includes <sys/select.h> which
56077         include <sys/time.h>.
56078         Reported by Eric Blake.
56079
56080 2007-07-06  Eric Blake  <ebb9@byu.net>
56081
56082         Fix testing canonicalize on cygwin.
56083         * modules/canonicalize-lgpl-tests (test_canonicalize_lgpl_LDADD):
56084         Revert patch from 2007-06-19.
56085         * tests/test-canonicalize-lgpl.c (main): Instead, skip test when
56086         canonicalize module is also in use.
56087         * tests/test-canonicalize.c: New file.
56088         * tests/test-canonicalize.sh: Likewise.
56089         * modules/canonicalize-tests: Likewise.
56090
56091 2007-07-06  Jim Meyering  <jim@meyering.net>
56092
56093         * lib/getugroups.c (getugroups): Detect getgrent failure.
56094         Adjust comment to reflect reality: this function may return -1.
56095
56096 2007-07-05  Sergey Poznyakoff  <gray@gnu.org.ua>
56097
56098         * build-aux/bootstrap (TP_URL,get_translations): Update to use
56099         the new TP address.
56100         (usage): Fix typo
56101         (gnulib_mk): New variable.
56102
56103 2007-07-05  Jim Meyering  <jim@meyering.net>
56104
56105         Don't let endgrent clobber errno, no matter how improbable.
56106         * lib/getugroups.c (getugroups): Save and restore errno around
56107         endgrent call.
56108
56109         Close the group DB even when failing with 2^31 or more members.
56110         * lib/getugroups.c (getugroups): Don't return without calling endgrent.
56111
56112 2007-07-04  Jim Meyering  <jim@meyering.net>
56113
56114         * lib/getugroups.h: New file.
56115         * lib/getugroups.c: Include "getugroups.h".
56116         Remove uses of "register" keyword.
56117         Move local variable, "cp", down into scope where used.
56118         Give "username" parameter the "const" attribute.
56119         * modules/getugroups (Files): Add lib/getugroups.h
56120
56121 2007-07-04  Karl Berry  <karl@gnu.org>
56122
56123         * MODULES.html.sh (func_all_modules): Complete rename of
56124         gpl/lgpl to gpl-2.0 and lgpl-2.1, and add gpl-3.0.
56125
56126 2007-07-02  Bruno Haible  <bruno@clisp.org>
56127
56128         * m4/inttypes.m4 (gl_INTTYPES_H): Define __STDC_LIMIT_MACROS in C++
56129         mode, when inttypes.h comes from gnulib.
56130         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
56131
56132 2007-07-02  Simon Josefsson  <simon@josefsson.org>
56133
56134         * NEWS: Mention lgpl module name change.
56135
56136         * modules/lgpl-2.1: Renamed from lgpl.
56137
56138         * NEWS: Mention gpl module name change.
56139
56140         * modules/gpl-3.0: New file, based on gpl-2.0.
56141
56142         * modules/gpl-2.0: Renamed from gpl.
56143
56144         * modules/gpl: Fix filename, doc/gpl.texi is now found at
56145         doc/gpl-2.0.texi.
56146
56147 2007-07-02  Paul Eggert  <eggert@cs.ucla.edu>
56148
56149         * lib/inttypes_.h [defined __cplusplus&&!defined __STDC_LIMIT_MACROS]:
56150         #define __STDC_LIMIT_MACROS temporarily while including
56151         <stdint.h>, so that __STDC_LIMIT_MACROS is defined.
56152         Problem reported by Joel E. Denny in
56153         <http://lists.gnu.org/archive/html/bug-gnulib/2007-07/msg00008.html>.
56154
56155 2007-07-01  Bruno Haible  <bruno@clisp.org>
56156
56157         * lib/unistdio.h: New file.
56158         * lib/unistdio/u-asnprintf.h: New file.
56159         * lib/unistdio/u-asprintf.h: New file.
56160         * lib/unistdio/u-printf-args.c: New file.
56161         * lib/unistdio/u-printf-args.h: New file.
56162         * lib/unistdio/u-printf-parse.h: New file.
56163         * lib/unistdio/u-snprintf.h: New file.
56164         * lib/unistdio/u-sprintf.h: New file.
56165         * lib/unistdio/u-vasprintf.h: New file.
56166         * lib/unistdio/u-vsnprintf.h: New file.
56167         * lib/unistdio/u-vsprintf.h: New file.
56168         * lib/unistdio/ulc-asnprintf.c: New file.
56169         * lib/unistdio/ulc-asprintf.c: New file.
56170         * lib/unistdio/ulc-fprintf.c: New file, based on lib/fprintf.c.
56171         * lib/unistdio/ulc-printf-parse.c: New file.
56172         * lib/unistdio/ulc-snprintf.c: New file.
56173         * lib/unistdio/ulc-sprintf.c: New file.
56174         * lib/unistdio/ulc-vasnprintf.c: New file.
56175         * lib/unistdio/ulc-vasprintf.c: New file.
56176         * lib/unistdio/ulc-vfprintf.c: New file, based on lib/vfprintf.c.
56177         * lib/unistdio/ulc-vsnprintf.c: New file.
56178         * lib/unistdio/ulc-vsprintf.c: New file.
56179         * lib/unistdio/u8-asnprintf.c: New file.
56180         * lib/unistdio/u8-asprintf.c: New file.
56181         * lib/unistdio/u8-printf-parse.c: New file.
56182         * lib/unistdio/u8-snprintf.c: New file.
56183         * lib/unistdio/u8-sprintf.c: New file.
56184         * lib/unistdio/u8-vasnprintf.c: New file.
56185         * lib/unistdio/u8-vasprintf.c: New file.
56186         * lib/unistdio/u8-vsnprintf.c: New file.
56187         * lib/unistdio/u8-vsprintf.c: New file.
56188         * lib/unistdio/u8-u8-asnprintf.c: New file.
56189         * lib/unistdio/u8-u8-asprintf.c: New file.
56190         * lib/unistdio/u8-u8-snprintf.c: New file.
56191         * lib/unistdio/u8-u8-sprintf.c: New file.
56192         * lib/unistdio/u8-u8-vasnprintf.c: New file.
56193         * lib/unistdio/u8-u8-vasprintf.c: New file.
56194         * lib/unistdio/u8-u8-vsnprintf.c: New file.
56195         * lib/unistdio/u8-u8-vsprintf.c: New file.
56196         * lib/unistdio/u16-asnprintf.c: New file.
56197         * lib/unistdio/u16-asprintf.c: New file.
56198         * lib/unistdio/u16-printf-parse.c: New file.
56199         * lib/unistdio/u16-snprintf.c: New file.
56200         * lib/unistdio/u16-sprintf.c: New file.
56201         * lib/unistdio/u16-vasnprintf.c: New file.
56202         * lib/unistdio/u16-vasprintf.c: New file.
56203         * lib/unistdio/u16-vsnprintf.c: New file.
56204         * lib/unistdio/u16-vsprintf.c: New file.
56205         * lib/unistdio/u16-u16-asnprintf.c: New file.
56206         * lib/unistdio/u16-u16-asprintf.c: New file.
56207         * lib/unistdio/u16-u16-snprintf.c: New file.
56208         * lib/unistdio/u16-u16-sprintf.c: New file.
56209         * lib/unistdio/u16-u16-vasnprintf.c: New file.
56210         * lib/unistdio/u16-u16-vasprintf.c: New file.
56211         * lib/unistdio/u16-u16-vsnprintf.c: New file.
56212         * lib/unistdio/u16-u16-vsprintf.c: New file.
56213         * lib/unistdio/u32-asnprintf.c: New file.
56214         * lib/unistdio/u32-asprintf.c: New file.
56215         * lib/unistdio/u32-printf-parse.c: New file.
56216         * lib/unistdio/u32-snprintf.c: New file.
56217         * lib/unistdio/u32-sprintf.c: New file.
56218         * lib/unistdio/u32-vasnprintf.c: New file.
56219         * lib/unistdio/u32-vasprintf.c: New file.
56220         * lib/unistdio/u32-vsnprintf.c: New file.
56221         * lib/unistdio/u32-vsprintf.c: New file.
56222         * lib/unistdio/u32-u32-asnprintf.c: New file.
56223         * lib/unistdio/u32-u32-asprintf.c: New file.
56224         * lib/unistdio/u32-u32-snprintf.c: New file.
56225         * lib/unistdio/u32-u32-sprintf.c: New file.
56226         * lib/unistdio/u32-u32-vasnprintf.c: New file.
56227         * lib/unistdio/u32-u32-vasprintf.c: New file.
56228         * lib/unistdio/u32-u32-vsnprintf.c: New file.
56229         * lib/unistdio/u32-u32-vsprintf.c: New file.
56230         * tests/unistdio/test-ulc-asnprintf1.c: New file.
56231         * tests/unistdio/test-ulc-asnprintf1.h: New file.
56232         * tests/unistdio/test-ulc-printf1.h: New file.
56233         * tests/unistdio/test-ulc-vasnprintf1.c: New file.
56234         * tests/unistdio/test-ulc-vasnprintf2.c: New file.
56235         * tests/unistdio/test-ulc-vasnprintf2.sh: New file.
56236         * tests/unistdio/test-ulc-vasnprintf3.c: New file.
56237         * tests/unistdio/test-ulc-vasnprintf3.sh: New file.
56238         * tests/unistdio/test-ulc-vasprintf1.c: New file.
56239         * tests/unistdio/test-ulc-vsnprintf1.c: New file.
56240         * tests/unistdio/test-ulc-vsprintf1.c: New file.
56241         * tests/unistdio/test-u8-asnprintf1.c: New file.
56242         * tests/unistdio/test-u8-asnprintf1.h: New file.
56243         * tests/unistdio/test-u8-printf1.h: New file.
56244         * tests/unistdio/test-u8-vasnprintf1.c: New file.
56245         * tests/unistdio/test-u8-vasnprintf2.c: New file.
56246         * tests/unistdio/test-u8-vasnprintf2.sh: New file.
56247         * tests/unistdio/test-u8-vasnprintf3.c: New file.
56248         * tests/unistdio/test-u8-vasnprintf3.sh: New file.
56249         * tests/unistdio/test-u8-vasprintf1.c: New file.
56250         * tests/unistdio/test-u8-vsnprintf1.c: New file.
56251         * tests/unistdio/test-u8-vsprintf1.c: New file.
56252         * tests/unistdio/test-u16-asnprintf1.c: New file.
56253         * tests/unistdio/test-u16-asnprintf1.h: New file.
56254         * tests/unistdio/test-u16-printf1.h: New file.
56255         * tests/unistdio/test-u16-vasnprintf1.c: New file.
56256         * tests/unistdio/test-u16-vasnprintf2.c: New file.
56257         * tests/unistdio/test-u16-vasnprintf2.sh: New file.
56258         * tests/unistdio/test-u16-vasnprintf3.c: New file.
56259         * tests/unistdio/test-u16-vasnprintf3.sh: New file.
56260         * tests/unistdio/test-u16-vasprintf1.c: New file.
56261         * tests/unistdio/test-u16-vsnprintf1.c: New file.
56262         * tests/unistdio/test-u16-vsprintf1.c: New file.
56263         * tests/unistdio/test-u32-asnprintf1.c: New file.
56264         * tests/unistdio/test-u32-asnprintf1.h: New file.
56265         * tests/unistdio/test-u32-printf1.h: New file.
56266         * tests/unistdio/test-u32-vasnprintf1.c: New file.
56267         * tests/unistdio/test-u32-vasnprintf2.c: New file.
56268         * tests/unistdio/test-u32-vasnprintf2.sh: New file.
56269         * tests/unistdio/test-u32-vasnprintf3.c: New file.
56270         * tests/unistdio/test-u32-vasnprintf3.sh: New file.
56271         * tests/unistdio/test-u32-vasprintf1.c: New file.
56272         * tests/unistdio/test-u32-vsnprintf1.c: New file.
56273         * tests/unistdio/test-u32-vsprintf1.c: New file.
56274         * modules/unistdio/base: New file.
56275         * modules/unistdio/u-printf-args: New file.
56276         * modules/unistdio/ulc-asnprintf: New file.
56277         * modules/unistdio/ulc-asprintf: New file.
56278         * modules/unistdio/ulc-fprintf: New file.
56279         * modules/unistdio/ulc-printf-parse: New file.
56280         * modules/unistdio/ulc-snprintf: New file.
56281         * modules/unistdio/ulc-sprintf: New file.
56282         * modules/unistdio/ulc-vasnprintf: New file.
56283         * modules/unistdio/ulc-vasprintf: New file.
56284         * modules/unistdio/ulc-vfprintf: New file.
56285         * modules/unistdio/ulc-vsnprintf: New file.
56286         * modules/unistdio/ulc-vsprintf: New file.
56287         * modules/unistdio/u8-asnprintf: New file.
56288         * modules/unistdio/u8-asprintf: New file.
56289         * modules/unistdio/u8-printf-parse: New file.
56290         * modules/unistdio/u8-snprintf: New file.
56291         * modules/unistdio/u8-sprintf: New file.
56292         * modules/unistdio/u8-vasnprintf: New file.
56293         * modules/unistdio/u8-vasprintf: New file.
56294         * modules/unistdio/u8-vsnprintf: New file.
56295         * modules/unistdio/u8-vsprintf: New file.
56296         * modules/unistdio/u8-u8-asnprintf: New file.
56297         * modules/unistdio/u8-u8-asprintf: New file.
56298         * modules/unistdio/u8-u8-snprintf: New file.
56299         * modules/unistdio/u8-u8-sprintf: New file.
56300         * modules/unistdio/u8-u8-vasnprintf: New file.
56301         * modules/unistdio/u8-u8-vasprintf: New file.
56302         * modules/unistdio/u8-u8-vsnprintf: New file.
56303         * modules/unistdio/u8-u8-vsprintf: New file.
56304         * modules/unistdio/u16-asnprintf: New file.
56305         * modules/unistdio/u16-asprintf: New file.
56306         * modules/unistdio/u16-printf-parse: New file.
56307         * modules/unistdio/u16-snprintf: New file.
56308         * modules/unistdio/u16-sprintf: New file.
56309         * modules/unistdio/u16-vasnprintf: New file.
56310         * modules/unistdio/u16-vasprintf: New file.
56311         * modules/unistdio/u16-vsnprintf: New file.
56312         * modules/unistdio/u16-vsprintf: New file.
56313         * modules/unistdio/u16-u16-asnprintf: New file.
56314         * modules/unistdio/u16-u16-asprintf: New file.
56315         * modules/unistdio/u16-u16-snprintf: New file.
56316         * modules/unistdio/u16-u16-sprintf: New file.
56317         * modules/unistdio/u16-u16-vasnprintf: New file.
56318         * modules/unistdio/u16-u16-vasprintf: New file.
56319         * modules/unistdio/u16-u16-vsnprintf: New file.
56320         * modules/unistdio/u16-u16-vsprintf: New file.
56321         * modules/unistdio/u32-asnprintf: New file.
56322         * modules/unistdio/u32-asprintf: New file.
56323         * modules/unistdio/u32-printf-parse: New file.
56324         * modules/unistdio/u32-snprintf: New file.
56325         * modules/unistdio/u32-sprintf: New file.
56326         * modules/unistdio/u32-vasnprintf: New file.
56327         * modules/unistdio/u32-vasprintf: New file.
56328         * modules/unistdio/u32-vsnprintf: New file.
56329         * modules/unistdio/u32-vsprintf: New file.
56330         * modules/unistdio/u32-u32-asnprintf: New file.
56331         * modules/unistdio/u32-u32-asprintf: New file.
56332         * modules/unistdio/u32-u32-snprintf: New file.
56333         * modules/unistdio/u32-u32-sprintf: New file.
56334         * modules/unistdio/u32-u32-vasnprintf: New file.
56335         * modules/unistdio/u32-u32-vasprintf: New file.
56336         * modules/unistdio/u32-u32-vsnprintf: New file.
56337         * modules/unistdio/u32-u32-vsprintf: New file.
56338         * modules/unistdio/ulc-asnprintf-tests: New file.
56339         * modules/unistdio/ulc-vasnprintf-tests: New file.
56340         * modules/unistdio/ulc-vasprintf-tests: New file.
56341         * modules/unistdio/ulc-vsnprintf-tests: New file.
56342         * modules/unistdio/ulc-vsprintf-tests: New file.
56343         * modules/unistdio/u8-asnprintf-tests: New file.
56344         * modules/unistdio/u8-vasnprintf-tests: New file.
56345         * modules/unistdio/u8-vasprintf-tests: New file.
56346         * modules/unistdio/u8-vsnprintf-tests: New file.
56347         * modules/unistdio/u8-vsprintf-tests: New file.
56348         * modules/unistdio/u16-asnprintf-tests: New file.
56349         * modules/unistdio/u16-vasnprintf-tests: New file.
56350         * modules/unistdio/u16-vasprintf-tests: New file.
56351         * modules/unistdio/u16-vsnprintf-tests: New file.
56352         * modules/unistdio/u16-vsprintf-tests: New file.
56353         * modules/unistdio/u32-asnprintf-tests: New file.
56354         * modules/unistdio/u32-vasnprintf-tests: New file.
56355         * modules/unistdio/u32-vasprintf-tests: New file.
56356         * modules/unistdio/u32-vsnprintf-tests: New file.
56357         * modules/unistdio/u32-vsprintf-tests: New file.
56358         * MODULES.html.sh (Unicode string functions): Add the new modules.
56359
56360 2007-07-01  Bruno Haible  <bruno@clisp.org>
56361
56362         * lib/sprintf.c (sprintf): Limit the available length estimation,
56363         to avoid address wraparound.
56364         * lib/vsprintf.c (vsprintf): Likewise.
56365         * modules/sprintf-posix (Dependencies): Add stdint.
56366         * modules/vsprintf-posix (Dependencies): Likewise.
56367
56368 2007-07-01  Bruno Haible  <bruno@clisp.org>
56369
56370         * gnulib-tool (self_abspathname): Determine PATH_SEPARATOR and handle
56371         Windows PATH as well. Conservative double-quoting. Comments.
56372
56373 2007-07-01  Bruno Haible  <bruno@clisp.org>
56374             Eric Blake  <ebb9@byu.net>
56375             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
56376
56377         * gnulib-tool (self_abspathname): Fix algorithm to cope with
56378         empty components in $PATH, denoting '.'.
56379
56380 2007-07-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
56381
56382         * gnulib-tool: Fix indentation.
56383         (func_create_megatestdir): Likewise.
56384         Report by Bruno Haible.
56385
56386 2007-06-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
56387
56388         Sync from Automake.
56389         * build-aux/gnupload: Fix shell portability issues with for loops.
56390         Report by Karl Berry.
56391
56392 2007-06-29  Simon Josefsson  <simon@josefsson.org>
56393
56394         * build-aux/maint.mk (POURL): Use translationproject.org.
56395
56396 2007-06-27  Simon Josefsson  <simon@josefsson.org>
56397             Bruno Haible  <bruno@clisp.org>
56398
56399         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Require gl_HEADER_SYS_SOCKET
56400         before using HAVE_WS2TCPIP_H. Check for gai_strerror through an
56401         explicit link test, rather than AC_REPLACE_FUNCS - for mingw.
56402         (gl_PREREQ_GETADDRINFO): Require gl_HEADER_SYS_SOCKET before using
56403         HAVE_SYS_SOCKET_H and HAVE_WS2TCPIP_H.
56404
56405 2007-06-27  Bruno Haible  <bruno@clisp.org>
56406
56407         * build-aux/config.rpath: Upgrade to libtool-1.5.24.
56408         * build-aux/config.libpath: Upgrade to libtool-1.5.24.
56409
56410 2007-06-26  Karl Berry  <karl@gnu.org>
56411
56412         * MODULES.html.sh: remove xreadlink-with-size.
56413
56414 2007-06-23  Paul Eggert  <eggert@cs.ucla.edu>
56415
56416         * lib/time_.h: Port to Solaris 8 with Sun Studio 11, using a
56417         method that I hope also handles the double-include problem noted
56418         by Bruno Haible in
56419         <http://lists.gnu.org/archive/html/bug-gnulib/2007-05/msg00186.html>.
56420
56421 2007-06-23  Bruno Haible  <bruno@clisp.org>
56422
56423         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
56424         Don't let the 'mostlyclean' target fail if the last subdirectory could
56425         not be removed.
56426         Reported by Karl Berry.
56427
56428 2007-06-23  Bruno Haible  <bruno@clisp.org>
56429
56430         * gnulib-tool (echo): Add a speedier workaround for ksh.
56431         * tests/test-echo.sh: Likewise.
56432
56433 2007-06-23  Bruno Haible  <bruno@clisp.org>
56434
56435         * gnulib-tool (echo): Add workarounds also for bash versions < 2.04.
56436         * tests/test-echo.sh: Likewise.
56437
56438 2007-06-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
56439
56440         * gnulib-tool (IFS): Initialize early, so we don't set it to
56441         empty later.
56442         (self_abspathname): Rewrite algorithm to set it, reindent.
56443         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am)
56444         (func_create_megatestdir): Merge some sed scripts.
56445
56446 2007-06-23  Paul Eggert  <eggert@cs.ucla.edu>
56447
56448         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Check some typos
56449         exposed by Sun Studio 11 cc on Solaris 8.
56450
56451 2007-06-22  Bruno Haible  <bruno@clisp.org>
56452
56453         * gnulib-tool (echo): Ensure the echo primitive does not interpret
56454         backslashes.
56455         * tests/test-echo.sh: New file.
56456
56457 2007-06-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
56458
56459         * gnulib-tool (func_add_or_update, func_create_testdir): Do not
56460         simplify `sed_replace_build_aux' scripts, they are portable but
56461         echoing them with `echo' is not.
56462         Report and analysis by Fernando Ferreira <fernando.prog@netcabo.pt>.
56463
56464 2007-06-21  Karl Berry  <karl@gnu.org>
56465
56466         * config/srclist.txt: guess we can't handle the licenses via
56467         srclist at the moment.
56468
56469 2007-06-21  Paul Eggert  <eggert@cs.ucla.edu>
56470
56471         * MODULES.html.sh: Add include_next.
56472         * modules/include_next: New file.
56473
56474 2007-06-20  Paul Eggert  <eggert@cs.ucla.edu>
56475
56476         * m4/include_next.m4 (gl_INCLUDE_NEXT): Define and AC_SUBST
56477         INCLUDE_NEXT.
56478         (gl_CHECK_NEXT_HEADERS): New macro.
56479         * m4/fcntl_h.m4 (gl_FCNTL_H): use gl_CHECK_NEXT_HEADERS instead of
56480         the obsolescent gl_ABSOLUTE_HEADER.
56481         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Likewise.
56482         * m4/float_h.m4 (gl_FLOAT_H): Likewise.
56483         * m4/iconv_h.m4 (gl_ICONV_H): Likewise.
56484         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
56485         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
56486         * m4/math_h.m4 (gl_MATH_H): Likewise.
56487         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Likewise.
56488         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
56489         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
56490         * m4/stdint.m4 (gl_STDINT_H): Likewise.
56491         * m4/stdio_h.m4 (gl_STDIO_H): Likewise.
56492         * m4/stdlib_h.m4 (gl_STDLIB_H): Likewise.
56493         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Likewise.
56494         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
56495         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
56496         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
56497         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Likewise.
56498         * m4/sysexits.m4 (gl_SYSEXITS): Likewise.
56499         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Likewise.
56500         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
56501         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
56502         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
56503         * m4/inttypes.m4 (gl_INTTYPES_H): Define
56504         _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H to avoid the problem of unclean
56505         builds, since ABSOLUTE_INTTYPES_H is no longer being defined.
56506         * m4/stdint.m4 (gl_STDINT_H): Likewise, for
56507         _GL_JUST_INCLUDE_SYSTEM_STDINT_H.
56508         * lib/fcntl_.h: Use @INCLUDE_NEXT@ @NEXT_foo_H@
56509         rather than @HAVE_INCLUDE_NEXT@ and @ABSOLUTE_foo_H@.
56510         * lib/float_.h: Likewise.
56511         * lib/inttypes_.h: Likewise.
56512         * lib/math_.h: Likewise.
56513         * lib/search_.h: Likewise.
56514         * lib/signal_.h: Likewise.
56515         * lib/stdint_.h: Likewise.
56516         * lib/stdio_.h: Likewise.
56517         * lib/stdlib_.h: Likewise.
56518         * lib/string_.h: Likewise.
56519         * lib/sys_stat_.h: Likewise.
56520         * lib/sys_time_.h: Likewise.
56521         * lib/time_.h: Likewise.
56522         * lib/unistd_.h: Likewise.
56523         * lib/wchar_.h: Likewise.
56524         * lib/wctype_.h: Likewise.
56525         * lib/dirent_.h: Likewise.
56526         * lib/iconv_.h: Likewise.
56527         * lib/locale_.h: Likewise.
56528         * lib/netinet_in_.h: Likewise.
56529         * lib/sys_select_.h: Likewise.
56530         * lib/sys_socket_.h: Likewise.
56531         * lib/sysexits_.h: Likewise.
56532         * modules/fcntl (Depends-on): Depend on include_next, not
56533         absolute_header.
56534         (Makefile): Substitute INCLUDE_NEXT and NEXT_foo_H, not
56535         HAVE_INCLUDE_NEXT and ABSOLUTE_foo_H.
56536         * modules/fchdir: Likewise.
56537         * modules/float: Likewise.
56538         * modules/iconv_open: Likewise.
56539         * modules/inttypes: Likewise.
56540         * modules/locale: Likewise.
56541         * modules/math: Likewise.
56542         * modules/netinet_in: Likewise.
56543         * modules/search: Likewise.
56544         * modules/signal: Likewise.
56545         * modules/stdint: Likewise.
56546         * modules/stdio: Likewise.
56547         * modules/stdlib: Likewise.
56548         * modules/string: Likewise.
56549         * modules/sys_select: Likewise.
56550         * modules/sys_socket: Likewise.
56551         * modules/sys_stat: Likewise.
56552         * modules/sys_time: Likewise.
56553         * modules/sysexits: Likewise.
56554         * modules/time: Likewise.
56555         * modules/unistd: Likewise.
56556         * modules/wchar: Likewise.
56557         * modules/wctype: Likewise.
56558         * modules/sys_stat: Change maintainer to "all".
56559         * modules/unistd: Likewise.
56560
56561 2007-06-20  Karl Berry  <karl@gnu.org>
56562
56563         * config/srclist.txt: track www changes in license files.
56564
56565 2007-06-20  Sergey Poznyakoff  <gray@gnu.org.ua>
56566
56567         * build-aux/bootstrap: Remove stray dot.
56568         Make sure build_aux settings are honored when linking
56569         gnulib_extra_files.
56570
56571 2007-06-19  Eric Blake  <ebb9@byu.net>
56572
56573         * modules/canonicalize-lgpl-tests (test_canonicalize_lgpl_LDADD):
56574         Allow compilation on cygwin.
56575
56576 2007-06-19  Jim Meyering  <jim@meyering.net>
56577
56578         xreadlink-with-size: Remove module.  No longer used.
56579         Ex-callers now use xreadlink or mreadlink-with-size.
56580         * modules/xreadlink-with-size: Remove module.
56581         * lib/xreadlink-with-size.c: Remove file.
56582         * lib/xreadlink.h (xreadlink_with_size): Remove prototype.
56583         (xreadlink): Remove inaccurate comment.  The one in xreadlink.c,
56584         just before the function definition *is* accurate.
56585
56586         Eliminate one way canonicalize_filename_mode could exit.
56587         * lib/canonicalize.c (canonicalize_filename_mode):
56588         Use mreadlink_with_size, not xreadlink_with_size.
56589
56590 2007-06-18  Paul Eggert  <eggert@cs.ucla.edu>
56591
56592         Detect porting problems to FreeBSD/arm, which has time_t wider than
56593         long int.  Original problem reported for GNU diff by Xin Li in
56594         <http://lists.gnu.org/archive/html/bug-gnu-utils/2007-06/msg00091.html>.
56595         * modules/getdate (Depends-on): Add intprops, verify.
56596         * lib/getdate.y: Include intprops.h, verify.h.  Verify that time_t
56597         is an integer type no wider than long int.
56598
56599 2007-06-18  Jim Meyering  <jim@meyering.net>
56600
56601         New module: mreadlink-with-size.
56602         * MODULES.html.sh: Add mreadlink-with-size.
56603         * modules/mreadlink-with-size: New module
56604         * modules/canonicalize (Depends-on): Depend on mreadlink-with-size,
56605         not xreadlink-with-size.
56606         * lib/mreadlink-with-size.c, lib/mreadlink.h: New files.
56607
56608 2007-06-16  Bruno Haible  <bruno@clisp.org>
56609
56610         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Catch the MacOS X 10.4 bug.
56611         * doc/functions/frexpl.texi: Document the MacOS X 10.4 bug.
56612         Reported by Gary V. Vaughan <gary@gnu.org>.
56613
56614 2007-06-15  Paul Eggert  <eggert@cs.ucla.edu>
56615
56616         Revamp lchown so that it lives in unistd.h where it belongs.
56617         * lib/lchown.h: Remove.
56618         * lib/dirchownmod.c: Don't include lib/lchown.h.
56619         * lib/fchownat.c: Likewise.
56620         * lib/openat.c: Likewise.
56621         * lib/lchown.c (REPLACE_CHOWN): Define to 0 if the system chown
56622         does not follow symlinks.
56623         (EOPNOTSUPP): Define if not defined.
56624         * lib/unistd_.h (chown): Do not replace if REPLADE_CHOWN
56625         is defined to 0.
56626         (lchown): New decl.
56627         * m4/lchown.m4 (gl_FUNC_LCHOWN): Require gl_UNISTD_H_DEFAULTS.
56628         Do not check for lchown decl.
56629         Set REPLACE_LCHOWN.
56630         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set GNULIB_LCHOWN,
56631         REPLACE_LCHOWN.
56632         * modules/chown: Make it clear it follows symlinks.
56633         * modules/lchown: Make it clear it doesn't follow symlinks.
56634         (Files): Remove lib/lchown.h
56635         (Depends-on): Add unistd.
56636         (configure.ac): Add gl_UNISTD_MODULE_INDICATOR([lchown]).
56637         (Include): Include <unistd.h>, not "lchown.h".
56638         * modules/unistd (unistd.h): Substitude GNULIB_LCHOWN and
56639         REPLACE_LCHOWN.
56640
56641 2007-06-15  Jim Meyering  <jim@meyering.net>
56642
56643         Change license (GPL to LGPL) of fsusage and dependents.
56644         * modules/fsusage (License): Change to LGPL.
56645         * modules/full-read (License): Likewise.
56646         * modules/full-write (License): Likewise.
56647         * modules/safe-read (License): Likewise.
56648         * modules/safe-write (License): Likewise.
56649
56650 2007-06-14  Ben Pfaff  <blp@gnu.org>
56651
56652         Missing part of allocsa -> malloca transition.
56653         * modules/relocatable-prog-wrapper: gl_ALLOCSA should be
56654         gl_MALLOCA.
56655
56656 2007-06-12  Bruno Haible  <bruno@clisp.org>
56657
56658         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Guess no when cross-compiling
56659         to ia64, x86_64, i386.
56660         Reported by Eric Blake.
56661
56662 2007-06-12  Bruno Haible  <bruno@clisp.org>
56663
56664         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Guess no also when
56665         cross-compiling to x86_64.
56666
56667 2007-06-12  Paul Eggert  <eggert@cs.ucla.edu>
56668
56669         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Fix POSIX sed portability
56670         glitch reported by Ralf Wildenhues in
56671         <http://lists.gnu.org/archive/html/bug-gnulib/2007-06/msg00114.html>.
56672
56673         * m4/regex.m4 (gl_REGEX): Catch a bug with [[:alnum:]_-] reported by
56674         Vin Shelton.
56675
56676 2007-06-11  Bruno Haible  <bruno@clisp.org>
56677
56678         * lib/printf-args.c (PRINTF_FETCHARGS) [ENABLE_UNISTDIO]: Fix NULL
56679         replacement string.
56680         Reported by Eric Blake.
56681
56682 2007-06-10  Bruno Haible  <bruno@clisp.org>
56683
56684         Prepare vasnprintf code for use with Unicode strings.
56685         * lib/printf-args.h (PRINTF_FETCHARGS): New macro.
56686         (arg_type) [ENABLE_UNISTDIO]: Define TYPE_U8_STRING, TYPE_U16_STRING,
56687         TYPE_U32_STRING.
56688         (argument) [ENABLE_UNISTDIO]: Add a_u8_string, a_u16_string,
56689         a_u32_string variants.
56690         (PRINTF_FETCHARGS): Renamed from printf_fetchargs.
56691         * lib/printf-args.c: Don't include config.h and the specification
56692         header if PRINTF_FETCHARGS is already defined.
56693         (PRINTF_FETCHARGS): Renamed from printf_fetchargs.
56694         (PRINTF_FETCHARGS) [ENABLE_UNISTDIO]: Add code for TYPE_U8_STRING,
56695         TYPE_U16_STRING, TYPE_U32_STRING.
56696         * lib/printf-parse.h [ENABLE_UNISTDIO] (u8_directive, u8_directives,
56697         u16_directive, u16_directives, u32_directive, u32_directives): New
56698         types.
56699         (ulc_printf_parse, u8_printf_parse, u16_printf_parse, u32_printf_parse):
56700         New declarations.
56701         * lib/printf-parse.c: Don't include config.h and the specification
56702         header if PRINTF_PARSE is already defined. Eliminate the set of
56703         parameters for WIDE_CHAR_VERSION; the user of this file must provide
56704         them now. Include c-ctype.h.
56705         (PRINTF_PARSE) [ENABLE_UNISTDIO]: Add code implementing the 'U'
56706         directive and CHAR_T_ONLY_ASCII.
56707         * lib/vasnprintf.c: Don't include config.h and the specification header
56708         if VASNPRINTF is already defined.
56709         (DCHAR_IS_TCHAR, DCHAR_CPY): New macros.
56710         (VASNPRINTF): Use PRINTF_FETCHARGS instead of printf_fetchargs. Use
56711         DCHAR_CPY. Handle the case that DCHAR_T and FCHAR_T are not the same
56712         type. Handle the case that TCHAR_T and FCHAR_T are not of the same
56713         size. Handle the case that DCHAR_T and TCHAR_T are not the same type,
56714         add a conversion from TCHAR_T[] to DCHAR_T[], and rework the padding
56715         code accordingly.
56716         (VASNPRINTF) [ENABLE_UNISTDIO]: Implement the 'U' directive. Enable
56717         pad_ourselves also in this case, with the 'c' and 's' directives, and
56718         with a different notion of "width".
56719         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): New macros.
56720
56721 2007-06-10  Bruno Haible  <bruno@clisp.org>
56722
56723         * modules/unistr/u32-mbsnlen: New file.
56724         * lib/unistr/u32-mbsnlen.c: New file.
56725
56726         * modules/unistr/u16-mbsnlen: New file.
56727         * lib/unistr/u16-mbsnlen.c: New file.
56728
56729         * modules/unistr/u8-mbsnlen: New file.
56730         * lib/unistr/u8-mbsnlen.c: New file.
56731
56732         * lib/unistr.h (u8_mbsnlen, u16_mbsnlen, u32_mbsnlen): New
56733         declarations.
56734
56735 2007-06-10  Bruno Haible  <bruno@clisp.org>
56736
56737         * lib/string_.h (mbsnlen): New declaration.
56738         * lib/mbsnlen.c: New file.
56739         * m4/mbsnlen.m4: New file.
56740         * modules/mbsnlen: New file.
56741         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Set GNULIB_MBSNLEN.
56742         * modules/string (string.h): Substitute GNULIB_MBSNLEN.
56743         * MODULES.html.sh (Internationalization functions): Add mbsnlen.
56744
56745 2007-06-10  Bruno Haible  <bruno@clisp.org>
56746
56747         * lib/mbslen.c: Include <stdlib.h>, needed for MB_CUR_MAX.
56748
56749 2007-06-10  Bruno Haible  <bruno@clisp.org>
56750
56751         * lib/mbiter.h: Include <stddef.h>, needed for ptrdiff_t.
56752         * lib/mbuiter.h: Likewise.
56753
56754 2007-06-10  Bruno Haible  <bruno@clisp.org>
56755
56756         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Check for _snprintf
56757         declaration.
56758
56759 2007-06-10  Karl Berry  <karl@gnu.org>
56760
56761         * config/srclist.txt: remove gettext entries, Bruno prefers
56762         to update individually.
56763
56764 2007-06-10  Bruno Haible  <bruno@clisp.org>
56765
56766         * lib/vasnprintf.c (VASNPRINTF) [!USE_SNPRINTF]: Remove variable
56767         'maxlen'. Ensure only length + width bytes are allocated, not
56768         length + 1 + width.
56769
56770 2007-06-09  Bruno Haible  <bruno@clisp.org>
56771
56772         * lib/vasnprintf.c (FCHAR_T, DCHAR_T, TCHAR_T): New macros.
56773         (CHAR_T): Remove macro.
56774         (VASNPRINTF): Update.
56775
56776 2007-06-09  Bruno Haible  <bruno@clisp.org>
56777
56778         * MODULES.html.sh (Unicode string functions): Add the new modules.
56779
56780         * modules/uniconv/u32-conv-to-enc: New file.
56781         * lib/uniconv/u32-conv-to-enc.c: New file.
56782         * modules/uniconv/u32-conv-to-enc-tests: New file.
56783         * tests/uniconv/test-u32-conv-to-enc.c: New file.
56784
56785         * modules/uniconv/u16-conv-to-enc: New file.
56786         * lib/uniconv/u16-conv-to-enc.c: New file.
56787         * lib/uniconv/u-conv-to-enc.h: New file.
56788         * modules/uniconv/u16-conv-to-enc-tests: New file.
56789         * tests/uniconv/test-u16-conv-to-enc.c: New file.
56790
56791         * modules/uniconv/u8-conv-to-enc: New file.
56792         * lib/uniconv/u8-conv-to-enc.c: New file.
56793         * modules/uniconv/u8-conv-to-enc-tests: New file.
56794         * tests/uniconv/test-u8-conv-to-enc.c: New file.
56795
56796         * lib/uniconv.h (u8_conv_to_encoding, u16_conv_to_encoding,
56797         u32_conv_to_encoding): New declarations.
56798
56799 2007-06-09  Bruno Haible  <bruno@clisp.org>
56800
56801         * tests/uniconv/test-u32-strconv-to-enc.c (main): Remove unused code.
56802
56803 2007-06-09  Bruno Haible  <bruno@clisp.org>
56804
56805         Rename 'allocsa' -> 'malloca', 'freesa' -> 'freea'.
56806         * modules/malloca: Renamed from modules/allocsa, updated.
56807         * lib/malloca.h: Renamed from lib/allocsa.h, updated.
56808         * lib/malloca.c: Renamed from lib/allocsa.c, updated.
56809         * lib/malloca.valgrind: Renamed from lib/allocsa.valgrind, updated.
56810         * m4/malloca.m4: Renamed from m4/allocsa.m4, updated.
56811         * modules/malloca-tests: Renamed from modules/allocsa-tests, updated.
56812         * tests/test-malloca.c: Renamed from tests/test-allocsa.c, updated.
56813         * modules/xmalloca: Renamed from modules/xallocsa, updated.
56814         * lib/xmalloca.h: Renamed from lib/xallocsa.h, updated.
56815         * lib/xmalloca.c: Renamed from lib/xallocsa.c, updated.
56816         * modules/c-strcasestr (Depends-on): Update.
56817         * lib/c-strcasestr.c: Update.
56818         * modules/c-strstr (Depends-on): Update.
56819         * lib/c-strstr.c: Update.
56820         * modules/canonicalize-lgpl (Depends-on): Update.
56821         * lib/canonicalize-lgpl.c: Update.
56822         * modules/clean-temp (Depends-on): Update.
56823         * lib/clean-temp.c: Update.
56824         * modules/csharpcomp (Depends-on): Update.
56825         * lib/csharpcomp.c: Update.
56826         * modules/csharpexec (Depends-on): Update.
56827         * lib/csharpexec.c: Update.
56828         * modules/javacomp (Depends-on): Update.
56829         * lib/javacomp.c: Update.
56830         * modules/javaexec (Depends-on): Update.
56831         * lib/javaexec.c: Update.
56832         * modules/mbscasestr (Depends-on): Update.
56833         * lib/mbscasestr.c: Update.
56834         * modules/mbsstr (Depends-on): Update.
56835         * lib/mbsstr.c: Update.
56836         * modules/setenv (Depends-on): Update.
56837         * lib/setenv.c: Update.
56838         * modules/strcasestr (Depends-on): Update.
56839         * lib/strcasestr.c: Update.
56840         * modules/striconveha (Depends-on): Update.
56841         * lib/striconveha.c: Update.
56842         * modules/relocatable-prog-wrapper (Files): Update.
56843         * lib/relocwrapper.c: Update.
56844         * build-aux/install-reloc: Update.
56845         * MODULES.html.sh (Memory management functions <stdlib.h>): Update.
56846
56847 2007-06-08  Bruno Haible  <bruno@clisp.org>
56848
56849         Port to uClibc.
56850         * lib/fbufmode.c (fbufmode): Add special code for uClibc.
56851         * lib/fpurge.c (fpurge): Likewise.
56852         * lib/freading.c (freading): Likewise.
56853         * lib/fseeko.c (rpl_fseeko): Likewise.
56854         * lib/fseterr.c (fseterr): Likewise.
56855         * lib/fwriting.c (fwriting): Likewise.
56856         * tests/test-fflush.c (main): Avoid a failure on uClibc.
56857
56858 2007-06-08  Bruno Haible  <bruno@clisp.org>
56859
56860         * m4/intlmacosx.m4: New file, extracted from gettext.m4.
56861         * m4/gettext.m4 (gt_INTL_MACOSX): Remove macro, moved to intlmacosx.m4.
56862         * modules/gettext (Files): Add m4/intlmacosx.m4.
56863
56864 2007-06-07  Bruno Haible  <bruno@clisp.org>
56865
56866         * modules/localename-tests: New file.
56867         * tests/test-localename.c: New file.
56868
56869         New module 'localename'.
56870         * lib/localename.h: New file.
56871         * lib/localename.c: New file, from GNU gettext.
56872         * m4/localename.m4: New file.
56873         * modules/localename: New file.
56874
56875 2007-06-07  Bruno Haible  <bruno@clisp.org>
56876
56877         Work around the lack of <wchar.h> on some builds of uClibc.
56878         * doc/headers/wchar.texi: Update.
56879         * lib/wchar_.h: Include <wchar.h> only if it exists.
56880         * m4/wchar.m4 (gl_WCHAR_H): Check for <wchar.h>. Set HAVE_WCHAR_H.
56881         * m4/stdint.m4 (gl_STDINT_H): Check for <wchar.h>.
56882         (gl_STDINT_TYPE_PROPERTIES): Don't try to include <wchar.h> if it
56883         doesn't exist.
56884         * modules/wchar (wchar.h): Substitute HAVE_WCHAR_H.
56885         * modules/mbfile (Depends-on): Add wchar.
56886         * modules/mbiter (Depends-on): Likewise.
56887         * modules/mbuiter (Depends-on): Likewise.
56888         Reported by Simon Josefsson.
56889
56890 2007-06-06  Paul Eggert  <eggert@cs.ucla.edu>
56891
56892         Work around problem reported by Steven M. Schweda in
56893         <http://lists.gnu.org/archive/html/bug-tar/2007-06/msg00002.html>:
56894         Tru64 5.1B with the Compaq compiler environment installed declares
56895         an 'isblank' function but does not define it in the C library.
56896         * lib/fnmatch.c (isblank): Check for HAVE_ISBLANK, too.
56897         * lib/regex_internal.h (isblank): Likewise.
56898         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for isblank existence.
56899         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
56900
56901 2007-06-05  Bruno Haible  <bruno@clisp.org>
56902
56903         Fix *printf so that it recognizes non-IEEE numbers on i386, x86_64,
56904         ia64.
56905         * modules/printf-safe: New file.
56906         * modules/fprintf-posix (Depends-on): Add printf-safe.
56907         * modules/printf-posix (Depends-on): Likewise.
56908         * modules/snprintf-posix (Depends-on): Likewise.
56909         * modules/sprintf-posix (Depends-on): Likewise.
56910         * modules/vasnprintf-posix (Depends-on): Likewise.
56911         * modules/vasprintf-posix (Depends-on): Likewise.
56912         * modules/vfprintf-posix (Depends-on): Likewise.
56913         * modules/vprintf-posix (Depends-on): Likewise.
56914         * modules/vsnprintf-posix (Depends-on): Likewise.
56915         * modules/vsprintf-posix (Depends-on): Likewise.
56916         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Require
56917         AC_C_BIGENDIAN. Define CHECK_PRINTF_SAFE if printf-safe is used. Test
56918         non-IEEE numbers on i386, x86_64, ia64. When cross-compiling, guess
56919         "no" on i386, x86_64, ia64.
56920         * tests/test-snprintf-posix.h (LDBL80_WORDS): New macro.
56921         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
56922         on i386, x86_64, ia64.
56923         * tests/test-sprintf-posix.h (LDBL80_WORDS): New macro.
56924         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
56925         on i386, x86_64, ia64.
56926         * tests/test-vasnprintf-posix.c: Include float.h.
56927         (LDBL80_WORDS): New macro.
56928         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
56929         on i386, x86_64, ia64.
56930         * tests/test-vasprintf-posix.c: Include float.h.
56931         (LDBL80_WORDS): New macro.
56932         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
56933         on i386, x86_64, ia64.
56934         * tests/test-snprintf-posix.c: Include float.h.
56935         * tests/test-sprintf-posix.c: Likewise.
56936         * tests/test-vsnprintf-posix.c: Likewise.
56937         * tests/test-vsprintf-posix.c: Likewise.
56938
56939 2007-06-05  Bruno Haible  <bruno@clisp.org>
56940
56941         Fix isnanl so that it recognizes non-IEEE numbers on i386, x86_64, ia64.
56942         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Require AC_C_BIGENDIAN. Test
56943         non-IEEE numbers on i386, x86_64, ia64.
56944         (gl_LONG_DOUBLE_EXPONENT_LOCATION): Require AC_C_BIGENDIAN.
56945         * lib/isnan.c (FUNC): Add special code for i386, x86_64, ia64.
56946         * tests/test-isnanl.h: Include float.h.
56947         (main): Check also non-IEEE numbers on i386, x86_64, ia64.
56948
56949 2007-06-05  Bruno Haible  <bruno@clisp.org>
56950
56951         * lib/vasnprintf.c (VASNPRINTF): Do the extra handling of NaN and Inf
56952         also the %a / %A. Handle the %a / %A code before this extra handling.
56953
56954 2007-06-05  Bruno Haible  <bruno@clisp.org>
56955
56956         * lib/vasnprintf.c [NEED_PRINTF_LONG_DOUBLE ||
56957         NEED_PRINTF_INFINITE_LONG_DOUBLE]: Include fpucw.h.
56958
56959 2007-06-05  Bruno Haible  <bruno@clisp.org>
56960
56961         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE): Fix
56962         typo in variable name.
56963
56964 2007-06-05  Eric Blake  <ebb9@byu.net>
56965
56966         * m4/lseek.m4 (gl_FUNC_LSEEK): Work when cross-compiling.
56967         Reported by Simon Josefsson.
56968
56969 2007-06-04  Bruno Haible  <bruno@clisp.org>
56970
56971         Avoid test failures on some PowerPC platforms.
56972         * tests/test-printf-frexpl.c (MIN_NORMAL_EXP, MIN_SUBNORMAL_EXP):
56973         Define differently for PowerPC.
56974         * tests/test-frexpl.c (MIN_NORMAL_EXP): Likewise.
56975         Reported by Gary V. Vaughan <gary@gnu.org>.
56976
56977 2007-06-02  Bruno Haible  <bruno@clisp.org>
56978
56979         Fix test-stdint failure on FreeBSD/ia64.
56980         * m4/stdint.m4 (gl_STDINT_H): Check the values of PTRDIFF_MIN,
56981         PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX, SIZE_MAX, WCHAR_MIN,
56982         WCHAR_MAX, WINT_MIN, WINT_MAX entirely, not only for plausibility.
56983         * doc/headers/stdint.texi: Update.
56984
56985 2007-06-01  Bruno Haible  <bruno@clisp.org>
56986
56987         * tests/test-binary-io.c (main): Pass a third argument to open().
56988         Reported by Gary V. Vaughan <gary@gnu.org>.
56989
56990 2007-06-01  Bruno Haible  <bruno@clisp.org>
56991
56992         * doc/functions/frexpl.texi: Update for mingw.
56993
56994 2007-06-01  Bruno Haible  <bruno@clisp.org>
56995
56996         * tests/test-lseek.c (main): Disable test of errno for invalid third
56997         argument.
56998         * doc/functions/lseek.texi: Update.
56999         Reported by Gary V. Vaughan <gary@gnu.org>.
57000
57001 2007-05-28  Bruno Haible  <bruno@clisp.org>
57002
57003         * m4/intl.m4 (AM_INTL_SUBDIR): Substitute variables WOE32, WINDRES.
57004
57005 2007-05-31  Eric Blake  <ebb9@byu.net>
57006
57007         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Guess no on mingw when
57008         cross compiling.
57009
57010 2007-05-30  Eric Blake  <ebb9@byu.net>
57011         and Bruno Haible  <bruno@clisp.org>
57012
57013         Work around mingw test failures exposed by m4-1.4.9b.
57014         * m4/stdint.m4 (gl_STDINT_H): Detect mingw bug.
57015         * tests/test-unistd.c: Disable uid_t and git_t tests for the
57016         moment.
57017
57018 2007-05-30  Bruno Haible  <bruno@clisp.org>
57019
57020         * tests/test-lseek.c: Explicitly close file descriptors 0 and 1 before
57021         assuming that they are closed. Needed on HP-UX 11.
57022
57023 2007-05-29  Bruno Haible  <bruno@clisp.org>
57024
57025         Fix a problem with #include_next.
57026         * lib/dirent_.h: Split the double-inclusion guard.
57027         * lib/fcntl_.h: Likewise.
57028         * lib/float_.h: Likewise.
57029         * lib/iconv_.h: Likewise.
57030         * lib/inttypes_.h: Likewise.
57031         * lib/locale_.h: Likewise.
57032         * lib/math_.h: Likewise.
57033         * lib/netinet_in_.h: Likewise.
57034         * lib/search_.h: Likewise.
57035         * lib/signal_.h: Likewise.
57036         * lib/stdint_.h: Likewise.
57037         * lib/stdio_.h: Likewise.
57038         * lib/stdlib_.h: Likewise.
57039         * lib/string_.h: Likewise.
57040         * lib/sys_select_.h: Likewise.
57041         * lib/sys_socket_.h: Likewise.
57042         * lib/sys_stat_.h: Likewise.
57043         * lib/sys_time_.h: Likewise.
57044         * lib/sysexits_.h: Likewise.
57045         * lib/time_.h: Likewise.
57046         * lib/unistd_.h: Likewise.
57047         * lib/wchar_.h: Likewise.
57048         * lib/wctype_.h: Likewise.
57049
57050 2007-05-29  Bruno Haible  <bruno@clisp.org>
57051
57052         * tests/test-unistd.c: Disable the tests for useconds_t and intptr_t
57053         for the moment.
57054
57055 2007-05-29  Bruno Haible  <bruno@clisp.org>
57056
57057         * m4/isnan.m4 (gl_DOUBLE_EXPONENT_LOCATION): Silence the AC_C_BIGENDIAN
57058         invocation.
57059         Reported by Eric Blake.
57060
57061 2007-05-29  Bruno Haible  <bruno@clisp.org>
57062
57063         * m4/isnanf.m4 (gl_FLOAT_EXPONENT_LOCATION): Fix typo in cross-
57064         compiling case.
57065
57066 2007-05-29  Eric Blake  <ebb9@byu.net>
57067             Bruno Haible  <bruno@clisp.org>
57068
57069         * m4/isnanf.m4 (gl_FUNC_ISNANF_NO_LIBM): Avoid syntax error on
57070         cross compiles.
57071
57072 2007-05-28  Eric Blake  <ebb9@byu.net>
57073
57074         * modules/closein-tests (test_closein_LDADD): Support test on
57075         cygwin with libtool.
57076
57077 2007-05-28  Bruno Haible  <bruno@clisp.org>
57078
57079         * tests/uniconv/test-u16-conv-from-enc.c: Remove #ifdef HAVE_CONFIG_H.
57080         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
57081         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
57082         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
57083         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
57084         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
57085         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
57086         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
57087         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
57088
57089 2007-05-28  Eric Blake  <ebb9@byu.net>
57090
57091         Unconditionally include <config.h> in unit tests.
57092         * tests/test-alloca-opt.c: Remove #ifdef HAVE_CONFIG_H.
57093         * tests/test-allocsa.c, tests/test-arcfour.c,
57094         tests/test-arctwo.c, tests/test-argmatch.c, tests/test-argp.c,
57095         tests/test-array_list.c, tests/test-array_oset.c,
57096         tests/test-atexit.c, test-avltree_list.c, test-avltree_oset.c,
57097         test-avltreehash_list.c, test-base64.c, test-binary-io.c,
57098         test-c-ctype.c, test-c-strcasecmp.c, test-c-strcasestr.c,
57099         test-c-strncasecmp.c, test-c-strstr.c, test-canonicalize-lgpl.c,
57100         test-carray_list.c, test-crc.c, test-des.c, test-dirname.c,
57101         test-fflush.c, test-fprintf-posix.c, test-gc-arcfour.c,
57102         test-gc-arctwo.c, test-gc-des.c, test-gc-hmac-md5.c,
57103         test-gc-hmac-sha1.c, test-gc-md2.c, test-gc-md4.c, test-gc-md5.c,
57104         test-gc-pbkdf2-sha1.c, test-gc-rijndael.c, test-gc-sha1.c,
57105         test-gc.c, test-getpass.c, test-hmac-md5.c, test-hmac-sha1.c,
57106         test-iconv.c, test-linked_list.c, test-linkedhash_list.c,
57107         test-lock.c, test-mbscasecmp.c, test-mbscasestr1.c,
57108         test-mbscasestr2.c, test-mbscasestr3.c, test-mbscasestr4.c,
57109         test-mbschr.c, test-mbscspn.c, test-mbsncasecmp.c, test-mbspbrk.c,
57110         test-mbspcasecmp.c, test-mbsrchr.c, test-mbsspn.c, test-mbsstr1.c,
57111         test-mbsstr2.c, test-mbsstr3.c, test-md2.c, test-md4.c,
57112         test-md5.c, test-memmem.c, test-printf-posix.c,
57113         test-rbtree_list.c, test-rbtree_oset.c, test-rbtreehash_list.c,
57114         test-read-file.c, test-rijndael.c, test-snprintf-posix.c,
57115         test-snprintf.c, test-sprintf-posix.c, test-stdint.c,
57116         test-strcasestr.c, test-striconv.c, test-striconveh.c,
57117         test-striconveha.c, test-tls.c, test-vasnprintf-posix.c,
57118         test-vasnprintf-posix2.c, test-vasnprintf.c,
57119         test-vasprintf-posix.c, test-vasprintf.c, test-verify.c,
57120         test-vfprintf-posix.c, test-vprintf-posix.c,
57121         test-vsnprintf-posix.c, test-vsnprintf.c, test-vsprintf-posix.c,
57122         test-xvasprintf.c: Likewise.
57123
57124 2007-05-28  Bruno Haible  <bruno@clisp.org>
57125
57126         * gnulib-tool (func_import): Remember the --with-tests command-line
57127         option through the macro gl_WITH_TESTS in the gnulib-cache.m4.
57128         Reported by Eric Blake.
57129
57130 2007-05-28  Bruno Haible  <bruno@clisp.org>
57131
57132         * modules/ftell-tests: New file.
57133         * tests/test-ftell.c: New file, based on tests/test-ftello.c.
57134         * tests/test-ftell.sh: New file, based on tests/test-ftello.sh.
57135
57136         * lib/ftell.c: New file.
57137         * modules/ftell: New file.
57138         * m4/ftell.m4: New file.
57139         * doc/functions/ftell.texi: Update.
57140         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FTELL,
57141         REPLACE_FTELL.
57142         * lib/stdio_.h (rpl_ftell): New declaration.
57143         * modules/stdio (Makefile.am): Substitute also GNULIB_FTELL,
57144         REPLACE_FTELL.
57145
57146 2007-05-28  Eric Blake  <ebb9@byu.net>
57147
57148         * lib/allocsa.h (safe_alloca): Avoid compiler warning.
57149
57150 2007-05-28  Bruno Haible  <bruno@clisp.org>
57151
57152         * modules/fseek-tests: New file.
57153         * tests/test-fseek.c: New file, based on tests/test-fseeko.c.
57154         * tests/test-fseek.sh: New file, based on tests/test-fseeko.sh.
57155
57156         * lib/fseek.c: New file.
57157         * modules/fseek: New file.
57158         * m4/fseek.m4: New file.
57159         * doc/functions/fseek.texi: Update.
57160         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FSEEK,
57161         REPLACE_FSEEK.
57162         * lib/stdio_.h (rpl_fseek): New declaration.
57163         * modules/stdio (Makefile.am): Substitute also GNULIB_FSEEK,
57164         REPLACE_FSEEK.
57165
57166 2007-05-28  Bruno Haible  <bruno@clisp.org>
57167
57168         * lib/stdio_.h (fflush): More comments.
57169
57170 2007-05-28  Bruno Haible  <bruno@clisp.org>
57171
57172         * m4/lseek.m4 (gl_FUNC_LSEEK): When not cross-compiling, perform a real
57173         runtime test.
57174
57175 2007-05-28  Eric Blake  <ebb9@byu.net>
57176
57177         Improve lseek module.
57178         * lib/lseek.c (rpl_lseek): Detect EBADF on mingw.
57179         * lib/unistd_.h (lseek): Scale back link warning message.
57180         * tests/test-lseek.c: Beef up test.
57181         * tests/test-lseek.sh: Exercise more facets of lseek.
57182         Reported by Bruno Haible.
57183
57184 2007-05-28  Bruno Haible  <bruno@clisp.org>
57185
57186         * tests/test-unistd.c: Test all the types that <unistd.h> is expected
57187         to define.
57188
57189 2007-05-27  Bruno Haible  <bruno@clisp.org>
57190
57191         * m4/iconv.m4 (AM_ICONV_LINK): Fix 2007-03-31 patch.
57192
57193 2007-05-27  Bruno Haible  <bruno@clisp.org>
57194
57195         * modules/openmp: New file.
57196         * m4/openmp.m4: New file, taken from autoconf's CVS with changes by
57197         Noah Misch.
57198
57199 2007-05-26  Bruno Haible  <bruno@clisp.org>
57200
57201         * modules/chdir-long (Depends-on): Add fchdir.
57202         * modules/chdir-safer (Depends-on): Likewise.
57203         * modules/fts (Depends-on): Likewise.
57204         * modules/fts-lgpl (Depends-on): Likewise.
57205         * modules/openat (Depends-on): Likewise.
57206         * modules/savewd (Depends-on): Likewise.
57207
57208 2007-05-24  Eric Blake  <ebb9@byu.net>
57209
57210         Fix lseek on mingw.
57211         * modules/lseek: New module.
57212         * m4/lseek.m4: New file.
57213         * lib/lseek.c: New file.
57214         * modules/lseek-tests: New file.
57215         * tests/test-lseek.c: New file.
57216         * tests/test-lseek.sh: New file.
57217         * MODULES.html.sh: Document lseek module.
57218         * modules/fflush (Depends-on): Add lseek, fseeko.
57219         * modules/fseeko (Depends-on): Likewise.
57220         * modules/ftello (Depends-on): Likewise.
57221         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Replace fseek[o] if lseek is
57222         broken.
57223         * m4/ftello.m4 (gl_FUNC_FTELLO): Replace ftell[o] if lseek is
57224         broken.
57225         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Trigger fseeko module.
57226         * lib/fseeko.c (rpl_fseeko): Quit early on non-seekable files.
57227         * lib/ftello.c (rpl_ftello): Likewise.
57228         * tests/test-fseeko.c (main): Test this.
57229         * tests/test-fseeko.sh: Likewise.
57230         * tests/test-ftello.c (main): Likewise.
57231         * tests/test-ftello.sh: Likewise.
57232         * lib/stdio_.h (fseek, ftell): Simplify, since missing fseeko now
57233         implies replacing fseek.
57234         * modules/stdio (Makefile.am): No longer need HAVE_FSEEKO,
57235         HAVE_FTELLO.
57236         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add lseek info.
57237         * modules/unistd (Makefile.am): Likewise.
57238         * lib/unistd_.h (lseek): Declare a replacement.
57239         * doc/functions/lseek.texi (lseek): Document this fix.
57240         * doc/functions/fseek.texi (fseek): Likewise.
57241         * doc/functions/ftell.texi (ftell): Likewise.
57242
57243 2007-05-24  Bruno Haible  <bruno@clisp.org>
57244
57245         * tests/test-vasnprintf-posix.c (test_function): Allow up to 50 bytes
57246         in the printed representation of a NaN.
57247         * tests/test-vasprintf-posix.c (test_function): Likewise.
57248         * tests/test-snprintf-posix.h (test_function): Likewise.
57249         * tests/test-sprintf-posix.h (test_function): Likewise.
57250         Reported by Eric Blake.
57251
57252 2007-05-23  Eric Blake  <ebb9@byu.net>
57253
57254         Fix fseeko/ftello on cygwin 1.5.24.
57255         * doc/functions/fseeko.texi (fseeko): Document the fix.
57256         * doc/functions/ftello.texi (ftello): Document the fix.
57257         * doc/functions/stdin.texi (stdin): Document the cygwin bug.
57258         * doc/functions/stdout.text (stdout): New file.
57259         * doc/functions/stderr.text (stderr): New file.
57260         * doc/gnulib.texi (Function Substitutes): Use new files.
57261         * tests/test-fseeko.c (main): Check for broken fseeko on cygwin
57262         prior to 1.7.0.
57263         * tests/test-ftello.c (main): Likewise for ftello.
57264         * tests/test-fseeko.sh: New file.
57265         * tests/test-ftello.sh: New file.
57266         * modules/fseeko-tests (Makefile.am): Ensure test-fseeko is run
57267         with seekable stdin.
57268         * modules/ftello-tests (Makefile.am): Likewise for test-ftello.
57269         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Detect the cygwin bug.
57270         (gl_REPLACE_FSEEKO): New macro.
57271         * m4/ftello.m4 (gl_FUNC_FTELLO, gl_REPLACE_FTELLO): Likewise.
57272         * modules/fseeko (Files): Distribute fseeko.c.
57273         * modules/ftello (Files): Distribute ftello.c.
57274         * lib/fseeko.c (rpl_fseeko) [__CYGWIN__]: Convert stdin to 64-bit
57275         mode.
57276         * lib/ftello.c (rpl_ftello): New file.
57277         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Allow replacement of
57278         fseeko, ftello.
57279         (gl_STDIN_LARGE_OFFSET): New macro.
57280         * modules/stdio (Makefile.am): Perform the replacement.
57281         * lib/stdio_.h (rpl_fseeko, rpl_ftello): Define when needed.
57282
57283 2007-05-23  Bruno Haible  <bruno@clisp.org>
57284
57285         * lib/stdio_.h (fseeko, ftello): Provide a link warning only if
57286         GNULIB_POSIXCHECK is defined.
57287
57288 2007-05-21  Bruno Haible  <bruno@clisp.org>
57289
57290         * m4/printf.m4 (gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE):
57291         Check also the output for NaN arguments. When cross-compiling, guess
57292         no on IRIX.
57293         * lib/vasnprintf.c: Update comments.
57294         * tests/test-vasnprintf-posix.c (strisnan): New function.
57295         (test_function): Use it.
57296         * tests/test-vasprintf-posix.c (strisnan): New function.
57297         (test_function): Use it.
57298         * tests/test-snprintf-posix.h (strisnan): New function.
57299         (test_function): Use it.
57300         * tests/test-sprintf-posix.h (strisnan): New function.
57301         (test_function): Use it.
57302         Reported by Eric Blake.
57303
57304 2007-05-20  Bruno Haible  <bruno@clisp.org>
57305
57306         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Add test for large finite
57307         numbers that fails on BeOS.
57308         * doc/functions/frexpl.texi: Update.
57309
57310 2007-05-20  Jim Meyering  <jim@meyering.net>
57311
57312         * NEWS: Mention the incompatible change (s/futimens/gl_futimens/)
57313         forced upon us by glibc-2.6.
57314
57315 2007-05-20  Bruno Haible  <bruno@clisp.org>
57316
57317         Fix *printf result for NaN, Inf on AIX, Solaris, OSF/1.
57318         * m4/printf.m4 (gl_PRINTF_INFINITE): Update cross-compiling guesses.
57319         (gl_PRINTF_INFINITE_LONG_DOUBLE): New macro.
57320         * lib/vasnprintf.c: Use NEED_PRINTF_INFINITE_DOUBLE instead of
57321         NEED_PRINTF_INFINITE.
57322         (is_infinitel): New function.
57323         (VASNPRINTF): Handle NEED_PRINTF_INFINITE_LONG_DOUBLE case.
57324         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE_DOUBLE): Renamed from
57325         gl_PREREQ_VASNPRINTF_INFINITE.
57326         (gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE): New macro.
57327         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
57328         gl_PRINTF_INFINITE_LONG_DOUBLE and test its result. Invoke
57329         gl_PREREQ_VASNPRINTF_INFINITE_DOUBLE and
57330         gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE instead of
57331         gl_PREREQ_VASNPRINTF_INFINITE.
57332         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
57333         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
57334         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
57335         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
57336         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
57337         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
57338         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
57339         * doc/functions/fprintf.texi: Update.
57340         * doc/functions/printf.texi: Update.
57341         * doc/functions/snprintf.texi: Update.
57342         * doc/functions/sprintf.texi: Update.
57343         * doc/functions/vfprintf.texi: Update.
57344         * doc/functions/vprintf.texi: Update.
57345         * doc/functions/vsnprintf.texi: Update.
57346         * doc/functions/vsprintf.texi: Update.
57347
57348 2007-05-20  Bruno Haible  <bruno@clisp.org>
57349
57350         * m4/frexpl.m4 (gl_FUNC_FREXPL_NO_LIBM): Set REPLACE_FREXPL if frexpl
57351         was not found in libc.
57352         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
57353
57354 2007-05-20  Bruno Haible  <bruno@clisp.org>
57355
57356         * tests/test-vasnprintf-posix.c (test_function): Allow NaN to be
57357         printed as "-nan" instead of "nan".
57358         * tests/test-vasprintf-posix.c (test_function): Likewise.
57359         * tests/test-snprintf-posix.h (test_function): Likewise.
57360         * tests/test-sprintf-posix.h (test_function): Likewise.
57361         Needed for HP-UX 11.
57362
57363 2007-05-20  Jim Meyering  <jim@meyering.net>
57364
57365         Fix buggy test for the fchownat-deref bug.
57366         * m4/openat.m4 (gl_FUNC_FCHOWNAT_DEREF_BUG): Create the dangling
57367         symlink required for the run-test.  Without it, this test would
57368         always declare that fchownat doesn't work, and client code would
57369         unnecessarily use the replacement function with fixed libc.
57370         (gl_FUNC_FCHOWNAT): Eliminate a variable that wasn't initialized.
57371         Reported by Greg Schafer.
57372
57373 2007-05-19  Bruno Haible  <bruno@clisp.org>
57374
57375         * m4/isnanf.m4 (gl_ISNANF_WORKS): New macro.
57376         (gl_FUNC_ISNANF_NO_LIBM): Invoke it.
57377         * lib/isnan.c (FUNC): Use run-time expressions for SGI compiler.
57378         Needed for IRIX 6.5 and Solaris 2.5.1.
57379
57380 2007-05-19  Bruno Haible  <bruno@clisp.org>
57381
57382         * tests/test-vasnprintf-posix.c (have_minus_zero): New function.
57383         (test_function): Skip tests involving -0.0 on platforms where
57384         -0.0 = 0.0.
57385         * tests/test-vasprintf-posix.c (have_minus_zero): New function.
57386         (test_function): Skip tests involving -0.0 on platforms where
57387         -0.0 = 0.0.
57388         * tests/test-snprintf-posix.h (have_minus_zero): New function.
57389         (test_function): Skip tests involving -0.0 on platforms where
57390         -0.0 = 0.0.
57391         * tests/test-sprintf-posix.h (have_minus_zero): New function.
57392         (test_function): Skip tests involving -0.0 on platforms where
57393         -0.0 = 0.0.
57394         * tests/test-fprintf-posix.h (test_function): Remove all -0.0 related
57395         tests.
57396         * tests/test-printf-posix.h (test_function): Likewise.
57397         * tests/test-printf-posix.output: Remove all -0.0 related results.
57398         Needed for IRIX 6.5.
57399
57400 2007-05-19  Bruno Haible  <bruno@clisp.org>
57401
57402         * tests/test-vasnprintf-posix.c (test_function): Allow NaN to be
57403         printed as "nan0x7fffffff" instead of "nan".
57404         * tests/test-vasprintf-posix.c (test_function): Likewise.
57405         * tests/test-snprintf-posix.h (test_function): Likewise.
57406         * tests/test-sprintf-posix.h (test_function): Likewise.
57407         * tests/test-fprintf-posix.h (NaN): Remove macro.
57408         (test_function): Remove all NaN related tests.
57409         * tests/test-printf-posix.h (NaN): Remove macro.
57410         (test_function): Remove all NaN related tests.
57411         * tests/test-printf-posix.output: Remove all NaN related results.
57412         Needed for IRIX 6.5.
57413
57414 2007-05-19  Bruno Haible  <bruno@clisp.org>
57415
57416         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Fix C89 syntax error in test code.
57417         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
57418
57419 2007-05-19  Bruno Haible  <bruno@clisp.org>
57420
57421         * lib/float_.h: New file.
57422         * m4/float_h.m4: New file.
57423         * modules/float: New file.
57424         * modules/isnanl (Dependencies): Add float.
57425         * modules/isnanl-nolibm (Dependencies): Likewise.
57426         * modules/mathl (Dependencies): Likewise.
57427         * modules/printf-frexpl (Dependencies): Likewise.
57428         * modules/signbit (Dependencies): Likewise.
57429         * modules/vasnprintf (Dependencies): Likewise.
57430         * doc/headers/float.texi: Update.
57431
57432 2007-05-19  Jim Meyering  <jim@meyering.net>
57433
57434         * lib/utimens.c (gl_futimens): Rename from futimens,
57435         now that glibc-2.6 declares futimens.
57436         * lib/utimens.h: Likewise.
57437
57438 2007-05-19  Bruno Haible  <bruno@clisp.org>
57439
57440         Avoid test failures on mingw.
57441         * tests/test-fprintf-posix.sh: Convert CR/LF to LF in output.
57442         * tests/test-printf-posix.sh: Likewise.
57443         * tests/test-vfprintf-posix.sh: Likewise.
57444         * tests/test-vprintf-posix.sh: Likewise.
57445
57446 2007-05-19  Bruno Haible  <bruno@clisp.org>
57447
57448         Fix *printf result for NaN, Inf, -0.0 on mingw.
57449         * m4/printf.m4 (gl_PRINTF_INFINITE): New macro.
57450         * lib/vasnprintf.c: Include math.h and isnan.h.
57451         (is_infinite_or_zero): New function.
57452         (VASNPRINTF): Fix also the handling of infinite or zero 'double'
57453         values in the %f, %F, %e, %E, %g, %G directives.
57454         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE): New macro.
57455         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
57456         gl_PRINTF_INFINITE and test its result. Invoke
57457         gl_PREREQ_VASNPRINTF_INFINITE.
57458         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
57459         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
57460         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
57461         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
57462         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
57463         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
57464         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
57465         * doc/functions/fprintf.texi: Update.
57466         * doc/functions/printf.texi: Update.
57467         * doc/functions/snprintf.texi: Update.
57468         * doc/functions/sprintf.texi: Update.
57469         * doc/functions/vfprintf.texi: Update.
57470         * doc/functions/vprintf.texi: Update.
57471         * doc/functions/vsnprintf.texi: Update.
57472         * doc/functions/vsprintf.texi: Update.
57473
57474 2007-05-19  Bruno Haible  <bruno@clisp.org>
57475
57476         * lib/vasnprintf.c (convert_to_decimal): Add an extra_zeroes argument.
57477         (scale10_round_decimal_long_double): Inline scale10_round_long_double.
57478         Instead of multiplying with 10^k, set extra_zeroes to k.
57479         (scale10_round_long_double): Remove function.
57480
57481 2007-05-18  Bruno Haible  <bruno@clisp.org>
57482
57483         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_ZERO]: Fix logic bug
57484         introduced on 2007-05-06.
57485
57486 2007-05-18  Bruno Haible  <bruno@clisp.org>
57487
57488         * tests/test-vasnprintf-posix.c (test_function): Also test the %e and
57489         %g directives.
57490         * tests/test-vasprintf-posix.c (test_function): Likewise.
57491         * tests/test-snprintf-posix.h (test_function): Likewise.
57492         * tests/test-sprintf-posix.h (test_function): Likewise.
57493
57494 2007-05-18  Bruno Haible  <bruno@clisp.org>
57495
57496         * tests/test-vasnprintf-posix.c (SIZEOF): New macro.
57497         (strmatch): New function.
57498         (test_function): Test the %f directive on numbers of various exponents.
57499         * tests/test-vasprintf-posix.c (SIZEOF): New macro.
57500         (strmatch): New function.
57501         (test_function): Test the %f directive on numbers of various exponents.
57502         * tests/test-snprintf-posix.h (strmatch): New function.
57503         (test_function): Test the %f directive on numbers of various exponents.
57504         * tests/test-sprintf-posix.h (strmatch): New function.
57505         (test_function): Test the %f directive on numbers of various exponents.
57506         * tests/test-snprintf-posix.c (SIZEOF): New macro.
57507         * tests/test-sprintf-posix.c (SIZEOF): New macro.
57508         * tests/test-vsnprintf-posix.c (SIZEOF): New macro.
57509         * tests/test-vsprintf-posix.c (SIZEOF): New macro.
57510
57511 2007-05-18  Bruno Haible  <bruno@clisp.org>
57512
57513         Add support for 'long double' number output.
57514         * m4/printf.m4 (gl_PRINTF_LONG_DOUBLE): New macro.
57515         * lib/vasnprintf.c: Include math.h and float+.h.
57516         (mp_limb_t): New type.
57517         (GMP_LIMB_BITS): New macro.
57518         (mp_twolimb_t): New type.
57519         (GMP_TWOLIMB_BITS): New macro.
57520         (mpn_t): New type.
57521         (multiply, divide, convert_to_decimal, decode_long_double,
57522         scale10_round_long_double, scale10_round_decimal_long_double,
57523         floorlog10l): New functions.
57524         (VASNPRINTF) [NEED_PRINTF_LONG_DOUBLE]: Implement 'long double' support
57525         for the %f, %F, %e, %E, %g, %G directives.
57526         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_LONG_DOUBLE): New macro.
57527         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
57528         gl_PRINTF_LONG_DOUBLE and test its result. Invoke
57529         gl_PREREQ_VASNPRINTF_LONG_DOUBLE.
57530         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
57531         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
57532         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
57533         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
57534         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
57535         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
57536         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
57537         * modules/fprintf-posix (Depends-on): Add frexpl-nolibm.
57538         * modules/snprintf-posix (Depends-on): Likewise.
57539         * modules/sprintf-posix (Depends-on): Likewise.
57540         * modules/vasnprintf-posix (Depends-on): Likewise.
57541         * modules/vasprintf-posix (Depends-on): Likewise.
57542         * modules/vfprintf-posix (Depends-on): Likewise.
57543         * modules/vsnprintf-posix (Depends-on): Likewise.
57544         * modules/vsprintf-posix (Depends-on): Likewise.
57545         * modules/vasnprintf (Files): Add lib/float+.h.
57546         * doc/functions/fprintf.texi: Update.
57547         * doc/functions/printf.texi: Update.
57548         * doc/functions/snprintf.texi: Update.
57549         * doc/functions/sprintf.texi: Update.
57550         * doc/functions/vfprintf.texi: Update.
57551         * doc/functions/vprintf.texi: Update.
57552         * doc/functions/vsnprintf.texi: Update.
57553         * doc/functions/vsprintf.texi: Update.
57554
57555 2007-05-18  Bruno Haible  <bruno@clisp.org>
57556
57557         * lib/vasnprintf.c (USE_SNPRINTF): Define to 0 on BeOS.
57558
57559 2007-05-18  Bruno Haible  <bruno@clisp.org>
57560
57561         * lib/vasnprintf.c (VASNPRINTF) [WIN32]: Use %I64d instead of %lld
57562         for printing 64-bit integers. Needed for mingw.
57563
57564 2007-05-18  Bruno Haible  <bruno@clisp.org>
57565
57566         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Invoke
57567         gl_FUNC_FREXPL_WORKS.
57568         * modules/printf-frexpl (Files): Add m4/frexpl.m4.
57569
57570 2007-05-18  Bruno Haible  <bruno@clisp.org>
57571
57572         * modules/frexpl-nolibm-tests: New file.
57573
57574         * modules/frexpl-nolibm: New file.
57575         * m4/frexpl.m4 (gl_FUNC_FREXPL_NO_LIBM): New macro.
57576
57577 2007-05-17  Paul Eggert  <eggert@cs.ucla.edu>
57578
57579         * lib/dirent_.h: Prefer #include_next <foo.h> to #include
57580         @ABSOLUTE_FOO_H@ if @HAVE_INCLUDE_NEXT@.  This works better with
57581         GCC 4.2, which otherwise issues a lot of warnings.
57582         * lib/iconv_.h, lib/locale_.h, lib/netinet_in_.h, lib/sys_select_.h:
57583         * lib/sys_socket_.h, lib/sys_stat_.h, lib/sysexits_.h, lib/unistd_.h:
57584         Likewise.
57585         * modules/fchdir (dirent.h): Substitute @HAVE_INCLUDE_NEXT@.
57586         * modules/iconv_open (iconv.h): Likewise.
57587         * modules/locale (locale.h): Likewise.
57588         * modules/netinet_in (netinet/in.h): Likewise.
57589         * modules/sys_select (sys_select.h): Likewise.
57590         * modules/sys_socket (sys/socket.h): Likewise.
57591         * modules/sys_stat (sys/stat.h): Likewise.
57592         * modules/sysexits (sysexits.h): Likewise.
57593         * modules/unistd (unistd.h): Likewise.
57594
57595 2007-05-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
57596
57597         * modules/closein-tests (Makefile.am): Distribute
57598         `test-closein.sh'.
57599
57600 2007-05-17  Bruno Haible  <bruno@clisp.org>
57601
57602         * tests/test-printf-posix.output: Renamed from
57603         tests/test-fprintf-posix.out.
57604         * modules/fprintf-posix-tests: Update.
57605         * modules/printf-posix-tests: Update.
57606         * modules/vfprintf-posix-tests: Update.
57607         * modules/vprintf-posix-tests: Update.
57608         * tests/test-fprintf-posix.sh: Update.
57609         * tests/test-printf-posix.sh: Update.
57610         * tests/test-vfprintf-posix.sh: Update.
57611         * tests/test-vprintf-posix.sh: Update.
57612         Reported by Ralf Wildenhues.
57613
57614 2007-05-16  Paul Eggert  <eggert@cs.ucla.edu>
57615
57616         * lib/fcntl_.h: Prefer #include_next <foo.h> to #include
57617         @ABSOLUTE_FOO_H@ if @HAVE_INCLUDE_NEXT@.  This works better with
57618         GCC 4.2, which otherwise issues a lot of warnings.
57619         * lib/inttypes_.h, lib/math_.h, lib/search_.h, lib/signal_.h:
57620         * lib/stdint_.h, lib/stdio_.h, lib/stdlib_.h, lib/string_.h:
57621         * lib/sys_time_.h, lib/time_.h, lib/wchar_.h, lib/wctype_.h: Likewise.
57622         * lib/stdlib_.h: Don't bother with #pragma GCC system_header, as
57623         it should no longer be needed.
57624         * lib/string_.h: Likewise.
57625         * modules/absolute-header (HAVE_INCLUDE_NEXT): New 'make' define.
57626         * modules/fcntl (fcntl.h): Substitute @HAVE_INCLUDE_NEXT@.
57627         * modules/inttypes (inttypes.h): Likewise.
57628         * modules/math (math.h): Likewise.
57629         * modules/search (search.h): Likewise.
57630         * modules/signal (signal.h): Likewise.
57631         * modules/stdint (stdint.h): Likewise.
57632         * modules/stdio (stdio.h): Likewise.
57633         * modules/stdlib (stdlib.h): Likewise.
57634         * modules/string (string.h): Likewise.
57635         * modules/sys_time (sys/time.h): Likewise.
57636         * modules/time (time.h): Likewise.
57637         * modules/wchar (wchar.h): Likewise.
57638         * modules/wctype (wtype.h): Likewise.
57639
57640 2007-05-16  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
57641
57642         * doc/gnulib-tool.texi (CVS Issues): Fix typo.
57643
57644 2007-05-13  Bruno Haible  <bruno@clisp.org>
57645
57646         * stpcpy.m4 (gl_FUNC_STPCPY): Require AC_C_RESTRICT.
57647         * stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
57648         * strsep.m4 (gl_FUNC_STRSEP): Likewise.
57649         * strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
57650         (gl_PREREQ_STRTOK_R): Don't require it here.
57651
57652 2007-05-13  Bruno Haible  <bruno@clisp.org>
57653
57654         * lib/stdlib_.h (mkdtemp, mkstemp): Comment out argument name. Needed
57655         when used in C++ mode.
57656
57657 2007-05-12  Bruno Haible  <bruno@clisp.org>
57658
57659         * lib/linebuffer.h: Tweak doc.
57660         * lib/linebuffer.c: Likewise.
57661
57662 2007-05-12  James Youngman  <jay@gnu.org>
57663
57664         * lib/linebuffer.c (readlinebuffer_delim): New function,
57665         like readlinebuffer, but use a caller-specified delimiter.
57666         (readlinebuffer): Just call readlinebuffer_delim with '\n'
57667         as the delimiter.
57668         * lib/linebuffer.h (readlinebuffer_delim): Declare it.
57669
57670 2007-05-12  Sergey Poznyakoff  <gray@gnu.org.ua>
57671
57672         * m4/openat.m4 (gl_FUNC_OPENAT): Do not require openat-die.
57673         * modules/openat (Files): Remove openat-die.c.
57674         (Depends-on): Add openat-die.
57675         * modules/openat-die: New module.
57676
57677 2007-05-06  Bruno Haible  <bruno@clisp.org>
57678
57679         * m4/printf.m4 (gl_PRINTF_FLAG_GROUPING, gl_VSNPRINTF_ZEROSIZE_C99):
57680         Update with info about Cygwin.
57681         * doc/functions/fprintf.texi: Update.
57682         * doc/functions/printf.texi: Update.
57683         * doc/functions/snprintf.texi: Update.
57684         * doc/functions/sprintf.texi: Update.
57685         * doc/functions/vfprintf.texi: Update.
57686         * doc/functions/vprintf.texi: Update.
57687         * doc/functions/vsnprintf.texi: Update.
57688         * doc/functions/vsprintf.texi: Update.
57689         Reported by Eric Blake.
57690
57691 2007-05-06  Bruno Haible  <bruno@clisp.org>
57692
57693         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_ZERO]: Perform the
57694         padding ourselves for the floating-point directives.
57695         * m4/printf.m4 (gl_PRINTF_FLAG_ZERO): New macro.
57696         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_ZERO): New macro.
57697         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
57698         gl_PRINTF_FLAG_ZERO and test its result. Invoke
57699         gl_PREREQ_VASNPRINTF_FLAG_ZERO.
57700         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
57701         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Likewise.
57702         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
57703         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
57704         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
57705         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
57706         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
57707         * tests/test-snprintf-posix.h (test_function): Also check the width
57708         and some flags in the %f directive.
57709         * tests/test-sprintf-posix.h (test_function): Likewise.
57710         * tests/test-vasnprintf-posix.c (test_function): Likewise.
57711         * tests/test-vasprintf-posix.c (test_function): Likewise.
57712         * doc/functions/fprintf.texi: Update.
57713         * doc/functions/printf.texi: Update.
57714         * doc/functions/snprintf.texi: Update.
57715         * doc/functions/sprintf.texi: Update.
57716         * doc/functions/vfprintf.texi: Update.
57717         * doc/functions/vprintf.texi: Update.
57718         * doc/functions/vsnprintf.texi: Update.
57719         * doc/functions/vsprintf.texi: Update.
57720
57721 2007-05-06  Bruno Haible  <bruno@clisp.org>
57722
57723         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_GROUPING]: Don't
57724         pass the ' flag character to sprintf or snprintf.
57725         * m4/printf.m4 (gl_PRINTF_FLAG_GROUPING): New macro.
57726         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_GROUPING): New macro.
57727         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
57728         gl_PRINTF_FLAG_GROUPING and test its result. Invoke
57729         gl_PREREQ_VASNPRINTF_FLAG_GROUPING.
57730         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
57731         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Likewise.
57732         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
57733         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
57734         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
57735         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
57736         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
57737         * tests/test-snprintf-posix.h (test_function): Also check the grouping
57738         flag.
57739         * tests/test-sprintf-posix.h (test_function): Likewise.
57740         * tests/test-vasnprintf-posix.c (test_function): Likewise.
57741         * tests/test-vasprintf-posix.c (test_function): Likewise.
57742         * doc/functions/fprintf.texi: Update.
57743         * doc/functions/printf.texi: Update.
57744         * doc/functions/snprintf.texi: Update.
57745         * doc/functions/sprintf.texi: Update.
57746         * doc/functions/vfprintf.texi: Update.
57747         * doc/functions/vprintf.texi: Update.
57748         * doc/functions/vsnprintf.texi: Update.
57749         * doc/functions/vsprintf.texi: Update.
57750
57751 2007-05-01  Bruno Haible  <bruno@clisp.org>
57752
57753         * tests/test-argp-2.sh (func_compare): Drop .exe suffix.
57754
57755 2007-05-03  Paul Eggert  <eggert@cs.ucla.edu>
57756
57757         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Use better
57758         comment for D_INO_IN_DIRENT.  Problem reported by James Youngman.
57759
57760 2007-05-02  Paul Eggert  <eggert@cs.ucla.edu>
57761
57762         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Test whether
57763         readdir returns garbage in d_ino.  Problem reported by Kaz Sasayama in
57764         <http://lists.gnu.org/archive/html/bug-gnulib/2007-05/msg00021.html>.
57765
57766 2007-05-02  Sergey Poznyakoff  <gray@gnu.org.ua>
57767
57768         * lib/argp-help.c (struct hol_entry): New member `ord'.
57769         (HOL_ENTRY_PTRCMP): Use ord for comparison
57770         (hol_sort): Initialize ord.
57771
57772 2007-05-01  Bruno Haible  <bruno@clisp.org>
57773
57774         * doc/functions/_Exit_C99.texi: Renamed from doc/functions/_Exit.texi.
57775         Reported by Eric Blake.
57776         * doc/gnulib.texi (Function Substitutes): Update.
57777
57778 2007-05-01  Bruno Haible  <bruno@clisp.org>
57779
57780         * doc/functions.texi: Remove file, now redundant through
57781         doc/functions/*.texi.
57782
57783 2007-05-01  Bruno Haible  <bruno@clisp.org>
57784
57785         * modules/argp (Depends-on): Add sleep.
57786
57787 2007-05-01  Bruno Haible  <bruno@clisp.org>
57788
57789         * modules/sleep-tests: New file.
57790         * tests/test-sleep.c: New file.
57791
57792         * modules/sleep: New file.
57793         * lib/sleep.c: New file.
57794         * m4/sleep.m4: New file.
57795         * lib/unistd_.h (sleep): New declaration.
57796         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_SLEEP,
57797         HAVE_SLEEP.
57798         * modules/unistd (Makefile.am): Substitute GNULIB_SLEEP, HAVE_SLEEP.
57799         * doc/functions/sleep.texi: Document the sleep module.
57800
57801 2007-05-01  Bruno Haible  <bruno@clisp.org>
57802
57803         * lib/sigprocmask.h: Remove file.
57804         * lib/signal_.h: Incorporate the previous contents of sigprocmask.h.
57805         * lib/sigprocmask.c: Include <signal.h> instead of sigprocmask.h.
57806         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Substitute GNULIB_SIGPROCMASK,
57807         HAVE_POSIX_SIGNALBLOCKING, HAVE_SIGSET_T.
57808         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Require
57809         gl_SIGNAL_H_DEFAULTS. Set HAVE_POSIX_SIGNALBLOCKING as a shell variable.
57810         (gl_PREREQ_SIGPROCMASK): Require gl_SIGNAL_H_DEFAULTS. Set
57811         HAVE_SIGSET_T as a shell variable.
57812         * modules/signal (Makefile.am): Substitute GNULIB_SIGPROCMASK,
57813         HAVE_POSIX_SIGNALBLOCKING, HAVE_SIGSET_T into signal.h.
57814         * modules/sigprocmask (Files): Remove lib/sigprocmask.h.
57815         (Depends-on): Add signal. Remove verify.
57816         (configure.ac): Invoke gl_SIGNAL_MODULE_INDICATOR.
57817         (Include): Mention <signal.h> instead of sigprocmask.h.
57818         * NEWS: Mention the change.
57819         * lib/fatal-signal.c: Don't include sigprocmask.h.
57820
57821 2007-05-01  Bruno Haible  <bruno@clisp.org>
57822
57823         * modules/signal: New file.
57824         * lib/signal_.h: New file.
57825         * m4/signal_h.m4: New file.
57826
57827 2007-05-01  Bruno Haible  <bruno@clisp.org>
57828
57829         * lib/wctype_.h: Test HAVE_ISWCNTRL at configure time.
57830         * m4/wctype.m4 (gl_WCTYPE_H): Substitute HAVE_ISWCNTRL.
57831         * modules/wctype (Makefile.am): Substitute HAVE_ISWCNTRL instead of
57832         HAVE_WCTYPE_CTMP_BUG into wctype.h.
57833
57834 2007-05-01  Bruno Haible  <bruno@clisp.org>
57835
57836         * lib/sys_stat_.h: Test HAVE_LSTAT, HAVE_DECL_MKDIR, HAVE_IO_H at
57837         configure time.
57838         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Substitute HAVE_LSTAT,
57839         HAVE_DECL_MKDIR, HAVE_IO_H via AC_SUBST.
57840         * modules/sys_stat (Makefile.am): Substitute their values into
57841         sys/stat.h.
57842
57843 2007-05-01  Bruno Haible  <bruno@clisp.org>
57844
57845         * lib/glob_.h: Test HAVE_SYS_CDEFS_H at configure time.
57846         * m4/glob.m4 (gl_PREREQ_GLOB): Substitute HAVE_SYS_CDEFS_H via AC_SUBST.
57847         * modules/glob (Makefile.am): Put HAVE_SYS_CDEFS_H value into glob.h.
57848
57849 2007-05-01  Bruno Haible  <bruno@clisp.org>
57850
57851         * doc/header/assert.texi: Undo last change: don't mention the gnulib
57852         'assert' module here.
57853
57854 2007-05-01  Bruno Haible  <bruno@clisp.org>
57855
57856         * doc/functions/*.texi: New files.
57857         * doc/functions/google-ranking.txt: New file.
57858         * doc/gnulib.texi (Function Substitutes): New chapter.
57859         (ctime, inet_ntoa): Remove sections.
57860         * doc/ctime.texi: Remove file.
57861         * doc/inet_ntoa.texi: Remove file.
57862         * doc/Makefile (gnulib.info, gnulib.html, gnulib.dvi): Update
57863         dependencies.
57864         (%.info): New rule, specifying a --reference-limit.
57865
57866 2007-05-01  Bruno Haible  <bruno@clisp.org>
57867
57868         * MODULES.html.sh (posix_functions): Remove 'exec', 'toc'.
57869
57870 2007-05-01  Bruno Haible  <bruno@clisp.org>
57871
57872         * modules/mkdir (Depends-on): Add sys_stat, because sys_stat provides
57873         the portability of 'mkdir' to mingw systems.
57874
57875 2007-05-01  Bruno Haible  <bruno@clisp.org>
57876
57877         * doc/headers/google-ranking.txt: New file.
57878
57879 2007-04-30  Eric Blake  <ebb9@byu.net>
57880
57881         Prefer fseeko to fseek.
57882         * modules/getpass (Depends-on): Add fseeko.
57883         * lib/getpass.c (getpass): Use fseeko, not fseek.
57884
57885 2007-04-30  Sergey Poznyakoff  <gray@gnu.org.ua>
57886
57887         * lib/argp-help.c (hol_entry_cmp): Option sorting algorithm
57888         assumes the sorting is stable, while most qsort implementations
57889         are not.  Use argument addresses to ensure they never compare as
57890         equal.
57891
57892         * tests/test-argp-2.sh (usage-indent test): Fix output
57893         (func_compare): Restore diff options
57894         * tests/test-argp.c: Restore #include "progname.h"
57895
57896 2007-04-29  Bruno Haible  <bruno@clisp.org>
57897
57898         * m4/printf.m4 (gl_VSNPRINTF_ZEROSIZE_C99): New macro.
57899         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
57900         gl_VSNPRINTF_ZEROSIZE_C99. Test gl_cv_func_vsnprintf_zerosize_c99.
57901         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
57902         * modules/snprintf-posix-tests (Files): Add tests/test-snprintf.c.
57903         (configure.ac): Define CHECK_SNPRINTF_POSIX.
57904         (TESTS, check_PROGRAMS): Add test-snprintf.
57905         * modules/vsnprintf-posix-tests (Files): Add tests/test-vsnprintf.c.
57906         (configure.ac): Define CHECK_VSNPRINTF_POSIX.
57907         (TESTS, check_PROGRAMS): Add test-vsnprintf.
57908         * tests/test-snprintf.c (main) [!CHECK_SNPRINTF_POSIX]: Disable
57909         assertions that fail on HP-UX, OSF/1, or IRIX.
57910         * tests/test-vsnprintf.c (main) [!CHECK_VSNPRINTF_POSIX]: Likewise.
57911
57912 2007-04-29  Bruno Haible  <bruno@clisp.org>
57913
57914         * MODULES.html.sh (posix_functions): Remove 'contents'.
57915
57916 2007-04-29  Karl Berry  <karl@gnu.org>
57917
57918         * config/srclist.txt (gendocs_template_min): new entry.
57919
57920 2007-04-29  Bruno Haible  <bruno@clisp.org>
57921
57922         Work around fpurge bug on BSD systems.
57923         * modules/fpurge (Makefile.am): Compile fpurge.c unconditionally.
57924         * m4/fpurge.m4 (gl_FUNC_FPURGE): Don't invoke AC_LIBOBJ.
57925         * lib/fpurge.h (fpurge): Don't handle __fpurge wrapper here. Define
57926         fpurge to rpl_fpurge if the system already has this function.
57927         * lib/fpurge.c (fpurge): Handle also the __fpurge wrapper case and
57928         the case where the system already has this function. Correct invariants
57929         on BSD systems.
57930         * lib/fseeko.c (rpl_fseeko): Update recognition of preceding fflush on
57931         BSD systems.
57932
57933 2007-04-29  Sergey Poznyakoff  <gray@gnu.org.ua>
57934
57935         * lib/argp-help.c (hol_cluster_cmp): Reverse comparison.  Change
57936         proposed by Sven Verdoolaege.
57937
57938         * tests/test-argp.c: Fix option ordering.  Test deeply clustered
57939         options.
57940         * tests/test-argp-2.sh (func_compare): Use diff instead of cmp.
57941         (usage and help tests): Update
57942
57943 2007-04-29  Bruno Haible  <bruno@clisp.org>
57944
57945         * tests/test-fflush.c (main): Use a file of size 17, not 10.
57946         Print more information in case of failure. Disable a test on BeOS.
57947
57948 2007-04-29  Bruno Haible  <bruno@clisp.org>
57949
57950         * tests/**/test-*.[hc] (ASSERT): Use fprintf to show the line number.
57951         This helps debugging on systems on which no gdb is available.
57952
57953 2007-04-29  Bruno Haible  <bruno@clisp.org>
57954
57955         * lib/freading.h: Improve comments.
57956         * lib/fwriting.h: Likewise.
57957         * tests/test-freading.c (main): Don't check freading immediately after
57958         repositioning. Needed for glibc.
57959
57960 2007-04-29  Bruno Haible  <bruno@clisp.org>
57961
57962         * lib/freading.c (freading): Trivial simplification.
57963
57964 2007-04-28  Bruno Haible  <bruno@clisp.org>
57965
57966         * tests/test-fwriting.c (main): Also test the interaction between
57967         fflush and fwriting.
57968         * modules/fwriting-tests (Depends-on): Add fflush.
57969
57970         * tests/test-freading.c (main): Also test the interaction between
57971         fflush and freading.
57972         * modules/freading-tests (Depends-on): Add fflush.
57973
57974 2007-04-28  Bruno Haible  <bruno@clisp.org>
57975
57976         * lib/stdio_.h (fseek, ftell): Provide link warnings suggesting to use
57977         fseeko and ftello.
57978         Suggested by Eric Blake.
57979
57980 2007-04-28  Jim Meyering  <jim@meyering.net>
57981
57982         Avoid false-negative in gl_STDINT_H's C99 conformance test.
57983         * m4/stdint.m4 (gl_STDINT_H): When checking whether stdint.h conforms
57984         to C99, include all of gl_STDINT_INCLUDES, not just <stddef.h>.
57985
57986 2007-04-27  Eric Blake  <ebb9@byu.net>
57987
57988         * doc/headers/assert.texi (assert.h): Document assert module use.
57989
57990 2007-04-27  Bruno Haible  <bruno@clisp.org>
57991
57992         * doc/headers/*.texi: New files.
57993         * doc/gnulib.texi (Header File Substitutes): New chapter.
57994         * doc/Makefile (gnulib.info, gnulib.html, gnulib.dvi): Specify
57995         dependencies.
57996         (standards.info ,standards.html, standards.dvi): Update dependencies.
57997         (mostlyclean, clean): New targets.
57998
57999 2007-04-27  Bruno Haible  <bruno@clisp.org>
58000
58001         * lib/sysexits_.h: Renamed from lib/sysexit_.h.
58002         * modules/sysexits (Files, Makefile.am): Update.
58003
58004         * lib/sys_socket_.h: Renamed from lib/socket_.h.
58005         * modules/sys_socket (Files, Makefile.am): Update.
58006
58007         * lib/sys_stat_.h: Renamed from lib/stat_.h.
58008         * modules/sys_stat (Files, Makefile.am): Update.
58009
58010 2007-04-27  Eric Blake  <ebb9@byu.net>
58011
58012         * lib/freading.h: Improve comments.
58013         * lib/fwriting.h: Likewise.
58014         * lib/fflush.c: Likewise.
58015
58016         Fix closein for mingw.
58017         * modules/closein-tests: Add tests for closein.
58018         * tests/test-closein.c: New file.
58019         * tests/test-closein.sh: Likewise.
58020         * lib/unistd_.h [!SEEK_CUR]: Mingw also needs stdlib.h for _exit.
58021         * lib/closein.c (close_stdin): Don't fflush non-seekable streams.
58022
58023 2007-04-27  Bruno Haible  <bruno@clisp.org>
58024
58025         * lib/inttypes_.h [_DECC]: Don't use #include_next if the compiler
58026         version is < 6.
58027         * lib/math_.h [__DECC]: Likewise.
58028         * lib/stdio_.h [__DECC]: Likewise.
58029         * lib/stdlib_.h [__DECC]: Likewise.
58030         * lib/string_.h [__DECC]: Likewise.
58031         * lib/time_.h [__DECC]: Likewise.
58032         * lib/wchar_.h [__DECC]: Likewise.
58033         * lib/wctype_.h [__DECC]: Likewise.
58034
58035 2007-04-27  Bruno Haible  <bruno@clisp.org>
58036
58037         * tests/test-fbufmode.c (main): Relax test, to avoid failure on mingw.
58038
58039 2007-04-27  Bruno Haible  <bruno@clisp.org>
58040
58041         * lib/fflush.c: Add comments.
58042         * modules/fpurge-tests (Depends-on): Add fflush.
58043         * modules/freadable-tests (Depends-on): Likewise.
58044         * modules/fwritable-tests (Depends-on): Likewise.
58045
58046 2007-04-27  Charles Wilson  <libtool@cwilson.fastmail.fm>
58047
58048         * m4/argz.m4 (gl_FUNC_ARGZ): Use !HAVE_WORKING_ARGZ instead of
58049         SYSTEM_ARGZ_IS_BROKEN.  Also, minor stylistic improvements.
58050         Report by Bruno Haible <bruno@clisp.org>.
58051
58052 2007-04-26  Eric Blake  <ebb9@byu.net>
58053
58054         Fix fflush on mingw.
58055         * modules/fflush (Depends-on): Add freading.
58056         * lib/fflush.c (rpl_fflush): Use freading to avoid losing buffered
58057         but unread data.
58058
58059 2007-04-26  Eric Blake  <ebb9@byu.net>
58060         and Bruno Haible  <bruno@clisp.org>
58061
58062         Implement freading and fwriting.
58063         * lib/freading.c: New file.
58064         * lib/freading.h: Likewise.
58065         * m4/freading.m4: Likewise.
58066         * modules/freading: Likewise.
58067         * modules/freading-tests: Likewise.
58068         * tests/test-freading.c: Likewise.
58069         * lib/fwriting.c: New file.
58070         * lib/fwriting.h: Likewise.
58071         * m4/fwriting.m4: Likewise.
58072         * modules/fwriting: Likewise.
58073         * modules/fwriting-tests: Likewise.
58074         * tests/test-fwriting.c: Likewise.
58075         * MODULES.html.sh (File stream based Input/Output): Mention them.
58076
58077 2007-04-26  Bruno Haible  <bruno@clisp.org>
58078
58079         * lib/stdio_.h (fseeko, ftello): Check that off_t has the same size as
58080         'long' when we assume it.
58081         Suggested by Eric Blake.
58082
58083 2007-04-26  Bruno Haible  <bruno@clisp.org>
58084
58085         Ensure fseeko, ftello are declared on glibc systems.
58086         * modules/fflush (configure.ac-early): Require AC_FUNC_FSEEKO.
58087         * modules/fseeko (configure.ac-early): Likewise.
58088         * modules/ftello (configure.ac-early): Likewise.
58089         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Don't define HAVE_FSEEKO, rely on
58090         AC_FUNC_FSEEKO for this.
58091         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Inline gl_CHECK_FSEEKO.
58092         (gl_CHECK_FSEEKO): Remove macro.
58093
58094 2007-04-26  Bruno Haible  <bruno@clisp.org>
58095
58096         * tests/test-fflush.c (main): Also check the ftell result after
58097         fflush and fseek/fseeko.
58098         * lib/fflush.c (rpl_fflush): For BSD implementations, update the
58099         file descriptor position cache in the stream.
58100         * lib/fseeko.c (rpl_fseeko): Likewise.
58101
58102 2007-04-26  Bruno Haible  <bruno@clisp.org>
58103
58104         * modules/fflush-tests (Depends-on): Add fseeko.
58105
58106 2007-04-25  Charles Wilson  <libtool@cwilson.fastmail.fm>
58107             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
58108
58109         * lib/argz_.h: ensure error_t definition is obtained in same
58110         mechanism system argz.h would have.
58111         * m4/argz.m4 (gl_FUNC_ARGZ): add new test to check if $host's
58112         argz facilities are known bad.  Err on the side of caution if
58113         cross-compiling.
58114
58115 2007-04-25  Eric Blake  <ebb9@byu.net>
58116
58117         * lib/fpurge.c (includes): Use stdlib.h for free.
58118         * tests/test-fflush.c (main): Also test fflush-fseeko.
58119
58120 2007-04-25  Bruno Haible  <bruno@clisp.org>
58121
58122         Make fflush+fseek POSIX-compliant on FreeBSD and MacOS X.
58123         * lib/fseeko.c: New file.
58124         * lib/stdio_.h: Include <sys/types.h> when off_t is needed.
58125         (fseeko, fseek): Define to replacements if REPLACE_FFLUSH.
58126         * m4/fseeko.m4 (gl_CHECK_FSEEKO): New macro, extracted from
58127         gl_FUNC_FSEEKO.
58128         (gl_FUNC_FSEEKO): Invoke it.
58129         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Arrange to compile fseeko.c. Invoke
58130         gl_CHECK_FSEEKO. Define HAVE_FSEEKO.
58131         * modules/fflush (Files): Add lib/fseeko.c, m4/fseeko.m4.
58132
58133 2007-04-25  Bruno Haible  <bruno@clisp.org>
58134
58135         * modules/fflush (Depends-on): Add ftello.
58136
58137 2007-04-25  Bruno Haible  <bruno@clisp.org>
58138
58139         * modules/ftello-tests: New file.
58140         * tests/test-ftello.c: New file.
58141
58142         * modules/ftello: New file.
58143         * m4/ftello.m4: New file.
58144         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FTELLO,
58145         HAVE_FTELLO.
58146         * lib/stdio_.h (ftello): New declaration.
58147         * modules/stdio (Makefile.am): Substitute also GNULIB_FTELLO,
58148         HAVE_FTELLO.
58149
58150 2007-04-25  Bruno Haible  <bruno@clisp.org>
58151
58152         * modules/fseeko-tests: New file.
58153         * tests/test-fseeko.c: New file.
58154
58155         * modules/fseeko: New file.
58156         * m4/fseeko.m4: New file.
58157         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FSEEKO,
58158         HAVE_FSEEKO.
58159         * lib/stdio_.h (fseeko): New declaration.
58160         * modules/stdio (Makefile.am): Substitute also GNULIB_FSEEKO,
58161         HAVE_FSEEKO.
58162
58163 2007-04-25  Bruno Haible  <bruno@clisp.org>
58164
58165         * lib/stdio_.h (fflush): Add support for GNULIB_POSIXCHECK.
58166
58167 2007-04-25  Bruno Haible  <bruno@clisp.org>
58168
58169         * lib/unistd_.h: Include <stdio.h> if needed to get the SEEK_* macros.
58170         * tests/test-stdio.c: Check that the various SEEK_* macros are defined.
58171         * tests/test-unistd.c: Likewise.
58172         * tests/test-fcntl.c: Likewise.
58173
58174 2007-04-23  Eric Blake  <ebb9@byu.net>
58175
58176         * lib/fflush.c: Fix missing include.
58177         Reported by Bruno Haible.
58178
58179 2007-04-23  Bruno Haible  <bruno@clisp.org>
58180
58181         * lib/fpurge.c (fpurge) [glibc, BSD]: Free a malloc()ed ungetc buffer.
58182         Reported by Eric Blake.
58183
58184 2007-04-23  Bruno Haible  <bruno@clisp.org>
58185
58186         * lib/fbufmode.c (fbufmode): Port to Solaris/SPARC64.
58187
58188 2007-04-23  Bruno Haible  <bruno@clisp.org>
58189
58190         * lib/fseterr.c (fseterr): Don't hardcode the value of _IOERR.
58191
58192 2007-04-23  Bruno Haible  <bruno@clisp.org>
58193
58194         * tests/test-fbufmode.c (main): Be prepared to a failure of setvbuf.
58195         Needed on HP-UX 11.
58196
58197 2007-04-16  Eric Blake  <ebb9@byu.net>
58198
58199         Make fflush rely on fpurge.
58200         * lib/fflush.c (rpl_fflush): Rely on fpurge module, rather than
58201         open coding all variants.
58202         * modules/fflush (Depends-on): Add fpurge and unistd.
58203         * modules/fflush-tests (Depends-on): Unistd is no longer extra.
58204         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Simplify.
58205
58206         Fix --with-tests compilation on cygwin.
58207         * modules/argmatch-tests (Makefile.am): List gnulib library first
58208         in LDADD.
58209         * modules/argp-tests (Makefile.am): Likewise.
58210         * modules/array-list-tests (Makefile.am): Likewise.
58211         * modules/array-oset-tests (Makefile.am): Likewise.
58212         * modules/avltree-list-tests (Makefile.am): Likewise.
58213         * modules/avltree-oset-tests (Makefile.am): Likewise.
58214         * modules/avltreehash-list-tests (Makefile.am): Likewise.
58215         * modules/carray-list-tests (Makefile.am): Likewise.
58216         * modules/dirname-tests (Makefile.am): Likewise.
58217         * modules/frexp-tests (Makefile.am): Likewise.
58218         * modules/isnanl-tests (Makefile.am): Likewise.
58219         * modules/linked-list-tests (Makefile.am): Likewise.
58220         * modules/linkedhash-list-tests (Makefile.am): Likewise.
58221         * modules/lock-tests (Makefile.am): Likewise.
58222         * modules/rbtree-list-tests (Makefile.am): Likewise.
58223         * modules/rbtree-oset-tests (Makefile.am): Likewise.
58224         * modules/rbtreehash-list-tests (Makefile.am): Likewise.
58225         * modules/tls-tests (Makefile.am): Likewise.
58226         * modules/tsearch-tests (Makefile.am): Likewise.
58227         * modules/xvasprintf-tests (Makefile.am): Likewise.
58228
58229         Fix fpurge for cygwin.
58230         * lib/fpurge.c (fpurge): Fix order of operation flub, and return a
58231         value.
58232         * modules/fpurge-tests (Depends-on): Clean up trash.
58233
58234 2007-04-16  Simon Josefsson  <simon@josefsson.org>
58235
58236         * lib/gc-libgcrypt.c (gc_hash_open): Shut up compiler warnings.
58237
58238         * m4/autobuild.m4: Re-indent.
58239
58240 2007-04-13  Bruno Haible  <bruno@clisp.org>
58241
58242         * modules/fpurge-tests: New file.
58243         * tests/test-fpurge.c: New file.
58244
58245         * modules/fpurge: New file.
58246         * lib/fpurge.h: New file.
58247         * lib/fpurge.c: New file.
58248         * m4/fpurge.m4: New file.
58249
58250 2007-04-13  Bruno Haible  <bruno@clisp.org>
58251
58252         * modules/fbufmode-tests: New file.
58253         * tests/test-fbufmode.c: New file.
58254
58255         * modules/fbufmode: New file.
58256         * lib/fbufmode.h: New file.
58257         * lib/fbufmode.c: New file.
58258         * m4/fbufmode.m4: New file.
58259
58260 2007-04-13  Bruno Haible  <bruno@clisp.org>
58261
58262         * modules/fwritable-tests: New file.
58263         * tests/test-fwritable.c: New file.
58264
58265         * modules/fwritable: New file.
58266         * lib/fwritable.h: New file.
58267         * lib/fwritable.c: New file.
58268         * m4/fwritable.m4: New file.
58269
58270 2007-04-13  Bruno Haible  <bruno@clisp.org>
58271
58272         * modules/freadable-tests: New file.
58273         * tests/test-freadable.c: New file.
58274
58275         * modules/freadable: New file.
58276         * lib/freadable.h: New file.
58277         * lib/freadable.c: New file.
58278         * m4/freadable.m4: New file.
58279
58280 2007-04-13  Bruno Haible  <bruno@clisp.org>
58281
58282         * modules/fflush-tests (Makefile.am): Remove EXTRA_DIST. Augment
58283         MOSTLYCLEANFILES.
58284
58285 2007-04-13  Paul Eggert  <eggert@cs.ucla.edu>
58286
58287         * build-aux/bootstrap (gnulib_tool_option_extras): New var, used by
58288         gzip bootstrap.conf to avoid dragging in i18n machinery.
58289         (gnulib_tool_option): Use it.
58290
58291 2007-04-13  Bruno Haible  <bruno@clisp.org>
58292
58293         * tests/test-vasnprintf-posix.c (test_function): Add tests for %f and
58294         %F directives.
58295         * tests/test-vasprintf-posix.c (test_function): Likewise.
58296         * tests/test-snprintf-posix.h (test_function): Likewise.
58297         * tests/test-sprintf-posix.h (test_function): Likewise.
58298         * tests/test-fprintf-posix.h (test_function): Likewise.
58299         * tests/test-printf-posix.h (test_function): Likewise.
58300         * tests/test-fprintf-posix.out: Likewise.
58301
58302 2007-04-13  Bruno Haible  <bruno@clisp.org>
58303
58304         * modules/lock-tests (configure.ac): For LIBSCHED, try also -lposix4.
58305         * modules/tls-tests (configure.ac): Likewise.
58306         Reported by Arto C. Nirkko <anirkko@insel.ch>.
58307
58308 2007-04-13  Bruno Haible  <bruno@clisp.org>
58309
58310         * lib/tls.c (glthread_tls_get): Fix return type.
58311         Patch by Arto C. Nirkko <anirkko@insel.ch>.
58312
58313 2007-04-12  Eric Blake  <ebb9@byu.net>
58314
58315         * modules/gettime (Depends-on): Remove gettime.
58316         Reported by Dmitry V. Levin.
58317
58318 2007-04-12  Bruno Haible  <bruno@clisp.org>
58319
58320         * modules/fflush (Include): Mention <stdio.h>.
58321         * modules/strtoimax (Include): Mention <inttypes.h>.
58322         * modules/strtoumax (Include): Likewise.
58323
58324 2007-04-12  Eric Blake  <ebb9@byu.net>
58325
58326         * .cvsignore: New file.
58327         * .gitignore: Likewise.
58328
58329 2007-04-12  Bruno Haible  <bruno@clisp.org>
58330
58331         * modules/iconv-tests (test_iconv_LDADD): Mention -liconv after LDADD,
58332         not before, since $(LDADD) often contains libgnu.a.
58333         * modules/striconv-tests (test_striconv_LDADD): Likewise.
58334         * modules/striconveh-tests (test_striconveh_LDADD): Likewise.
58335         * modules/striconveha-tests (test_striconveha_LDADD): Likewise.
58336         Needed on Cygwin.
58337
58338 2007-04-12  Eric Blake  <ebb9@byu.net>
58339
58340         Work around glibc's failure to flush stdin on fclose.
58341         * lib/closein.c (close_stdin): Flush stdin before closing.
58342
58343         Work around glibc's failure to reset seekable stdin on exit.
58344         * modules/closein: New module.
58345         * lib/closein.c: New file.
58346         * lib/closein.h: Likewise.
58347         * m4/closein.m4: Likewise.
58348         * MODULES.html.sh (File stream based Input/Output): Document it.
58349
58350 2007-04-12  Simon Josefsson  <simon@josefsson.org>
58351
58352         * gnulib-tool: Rename generated 'autobuild' script to
58353         'do-autobuild' in --create-megatestdir output.
58354
58355         * doc/gnulib.texi (Build robot for gnulib): Fix.
58356
58357 2007-04-12  Simon Josefsson  <simon@josefsson.org>
58358
58359         * modules/sysexits (Depends-on): Add absolute-header.
58360
58361 2007-04-12  Eric Blake  <ebb9@byu.net>
58362
58363         No need to preserve errno on success.
58364         * lib/fflush.c (rpl_fflush): Simplify errno tracking.
58365         Reported by Bruno Haible.
58366
58367 2007-04-12  Simon Josefsson  <simon@josefsson.org>
58368
58369         * MODULES.html.sh (Support for maintaining and releasing
58370         projects): Add autobuild.  Suggested by Eric Blake <ebb9@byu.net>.
58371
58372 2007-04-12  Simon Josefsson  <simon@josefsson.org>
58373
58374         * gnulib-tool (func_modules_add_dummy): Respect --avoid=dummy.
58375
58376 2007-04-12  Simon Josefsson  <simon@josefsson.org>
58377
58378         * modules/autobuild: New module.
58379
58380         * m4/autobuild.m4: New file.
58381
58382 2007-04-11  Bruno Haible  <bruno@clisp.org>
58383
58384         * lib/vasnprintf.c (VASNPRINTF): Implement the %F directive using the
58385         %f directive, if NEED_PRINTF_DIRECTIVE_F is defined.
58386         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_F): New macro.
58387         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_F): New macro.
58388         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
58389         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
58390         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
58391         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
58392         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
58393         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
58394         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Invoke
58395         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
58396         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
58397         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Invoke
58398         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
58399         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
58400         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Invoke
58401         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
58402         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
58403         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Invoke
58404         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
58405         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
58406         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Invoke
58407         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
58408         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
58409         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Invoke
58410         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
58411         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
58412         Reported by Eric Blake.
58413
58414 2007-04-11  Bruno Haible  <bruno@clisp.org>
58415
58416         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Fix test. It always failed.
58417
58418 2007-04-10  Bruno Haible  <bruno@clisp.org>
58419
58420         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Add a test for correct result
58421         for NaN and Infinity. Needed on FreeBSD 6.1.
58422         * tests/test-vasnprintf-posix.c (test_function): Undo last change
58423         regarding results for "%010a" of Infinity and NaN.
58424         * tests/test-vasprintf-posix.c (test_function): Likewise.
58425         * tests/test-snprintf-posix.h (test_function): Likewise.
58426         * tests/test-sprintf-posix.h (test_function): Likewise.
58427         * tests/test-fprintf-posix.h (test_function): Likewise.
58428         * tests/test-printf-posix.h (test_function): Likewise.
58429         * tests/test-fprintf-posix.out: Likewise.
58430
58431 2007-04-10  Bruno Haible  <bruno@clisp.org>
58432
58433         * modules/locale-tests: New file.
58434         * tests/test-locale.c: New file.
58435
58436         * modules/locale: New file.
58437         * lib/locale_.h: New file.
58438         * m4/locale_h.m4: New file.
58439
58440 2007-04-10  Paul Eggert  <eggert@cs.ucla.edu>
58441             Bruno Haible  <bruno@clisp.org>
58442
58443         * m4/signbit.m4 (gl_SIGNBIT): When the sign bit position could not
58444         be determined, test for availability of the copysignf, copysign,
58445         copysignl functions.
58446         * lib/signbitf.c (gl_signbitf): Use copysignf if available in libc.
58447         * lib/signbitd.c (gl_signbitd): Use copysign if available in libc.
58448         * lib/signbitl.c (gl_signbitl): Use copysignl if available in libc.
58449
58450 2007-04-09  Eric Blake  <ebb9@byu.net>
58451
58452         * lib/stdio_.h [REPLACE_FFLUSH]: Declare rpl_fflush.
58453         * modules/stdio (Makefile.am): Support fflush.
58454         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
58455         * modules/fflush: New file.
58456         * lib/fflush.c: Likewise.
58457         * m4/fflush.m4: Likewise.
58458         * modules/fflush-tests: New test.
58459         * tests/test-fflush.c: Likewise.
58460         * MODULES.html.sh (Input/output <stdio.h>): Document new module.
58461
58462 2007-04-06  Bruno Haible  <bruno@clisp.org>
58463
58464         * lib/vasnprintf.c: Include <math.h>. Don't include float+.h.
58465         (VASNPRINTF): Use signbit for faster determination whether to print a
58466         minus sign.
58467         * modules/vasnprintf (Files): Remove lib/float+.h.
58468         * modules/fprintf-posix (Depends-on): Add signbit.
58469         * modules/snprintf-posix (Depends-on): Likewise.
58470         * modules/sprintf-posix (Depends-on): Likewise.
58471         * modules/vasnprintf-posix (Depends-on): Likewise.
58472         * modules/vasprintf-posix (Depends-on): Likewise.
58473         * modules/vfprintf-posix (Depends-on): Likewise.
58474         * modules/vsnprintf-posix (Depends-on): Likewise.
58475         * modules/vsprintf-posix (Depends-on): Likewise.
58476
58477 2007-04-06  Bruno Haible  <bruno@clisp.org>
58478
58479         * tests/test-frexp.c (main): Test also the sign bit of zero results.
58480         * tests/test-frexpl.c (main): Likewise.
58481         * tests/test-ldexpl.c (main): Likewise.
58482         * modules/frexp-tests (Depends-on): Add signbit.
58483         * modules/frexpl-tests (Depdends-on): Likewise.
58484         * modules/ldexpl-tests (Depdends-on): Likewise.
58485
58486 2007-04-06  Bruno Haible  <bruno@clisp.org>
58487
58488         * modules/signbit-tests: New file.
58489         * tests/test-signbit.c: New file.
58490
58491         * modules/signbit: New file.
58492         * lib/signbitf.c: New file.
58493         * lib/signbitd.c: New file.
58494         * lib/signbitl.c: New file.
58495         * m4/signbit.m4: New file.
58496         * lib/math_.h (gl_signbitf, gl_signbitd, gl_signbitl): New declarations.
58497         (signbit): New macro.
58498         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_SIGNBIT and
58499         REPLACE_SIGNBIT.
58500         * modules/math (Makefile.am): Substibute also GNULIB_SIGNBIT and
58501         REPLACE_FREXPL into math.h.
58502
58503 2007-04-06  Bruno Haible  <bruno@clisp.org>
58504
58505         * modules/isnanf-nolibm-tests: New file.
58506         * tests/test-isnanf.c: New file.
58507
58508         * modules/isnanf-nolibm: New file.
58509         * lib/isnanf.h: New file.
58510         * lib/isnanf.c: New file.
58511         * lib/isnan.c: Consider the USE_FLOAT macro.
58512         * m4/isnanf.m4: New file.
58513
58514 2007-04-06  Bruno Haible  <bruno@clisp.org>
58515
58516         * modules/gettext-h (configure.ac): AC_SUBST LIBINTL and LTLIBINTL.
58517         (Link): New section.
58518
58519         * modules/canonicalize-lgpl-tests (Makefile.am): Undo last change.
58520
58521 2007-04-06  Bruno Haible  <bruno@clisp.org>
58522
58523         Assume the 'long double' type.
58524         * m4/longdouble.m4: Remove file.
58525         * config/srclist.txt: Don't mention longdouble.m4.
58526         * lib/allocsa.h: Assume HAVE_LONG_DOUBLE to be true.
58527         * lib/float+.h: Likewise.
58528         * lib/frexp.c: Likewise.
58529         * lib/printf-args.h: Likewise.
58530         * lib/printf-args.c: Likewise.
58531         * lib/printf-frexp.c: Likewise.
58532         * lib/printf-parse.c: Likewise.
58533         * lib/vasnprintf.c: Likewise.
58534         * m4/allocsa.m4: Remove gt_TYPE_LONGDOUBLE invocation.
58535         * m4/intl.m4: Likewise.
58536         * m4/isnanl.m4: Likewise.
58537         * m4/printf.m4: Likewise.
58538         * m4/printf-frexpl.m4: Likewise.
58539         * m4/vasnprintf.m4: Likewise.
58540         * modules/allocsa (Files): Remove m4/longdouble.m4.
58541         * modules/gettext (Files): Likewise.
58542         * modules/relocatable-prog-wrapper (Files): Likewise.
58543         * modules/vasnprintf (Files): Likewise.
58544         * modules/isnanl (Files): Likewise.
58545         (Include): Simplify.
58546         * modules/isnanl-nolibm (Files): Remove m4/longdouble.m4.
58547         (Include): Simplify.
58548         * modules/printf-frexpl (Files): Remove m4/longdouble.m4.
58549         (Include): Simplify.
58550         * modules/snprintf-posix-tests (Files): Remove m4/longdouble.m4.
58551         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
58552         * modules/sprintf-posix-tests (Files): Remove m4/longdouble.m4.
58553         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
58554         * modules/vasnprintf-posix-tests (Files): Remove m4/longdouble.m4.
58555         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
58556         * modules/vasprintf-posix-tests (Files): Remove m4/longdouble.m4.
58557         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
58558         * modules/vsnprintf-posix-tests (Files): Remove m4/longdouble.m4.
58559         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
58560         * modules/vsprintf-posix-tests (Files): Remove m4/longdouble.m4.
58561         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
58562         * tests/test-isnanl-nolibm.c: Assume HAVE_LONG_DOUBLE to be true.
58563         * tests/test-isnanl.c: Likewise.
58564         * tests/test-snprintf-posix.h: Likewise.
58565         * tests/test-sprintf-posix.h: Likewise.
58566         * tests/test-vasnprintf-posix.c: Likewise.
58567         * tests/test-vasnprintf-posix2.c: Likewise.
58568         * tests/test-vasprintf-posix.c: Likewise.
58569
58570 2007-04-06  Bruno Haible  <bruno@clisp.org>
58571
58572         Fix problem with Compaq (ex-DEC) Desktop C compiler on Tru64.
58573         * lib/math_.h [__DECC]: Include the overridden include file through
58574         #include_next, outside the double-inclusion guard.
58575         * lib/stdio_.h [__DECC]: Likewise.
58576         * lib/stdlib_.h [__DECC]: Likewise.
58577         * lib/string_.h [__DECC]: Likewise.
58578         * lib/time_.h [__DECC]: Likewise.
58579         * lib/wchar_.h [__DECC]: Likewise.
58580         * lib/wctype_.h [__DECC]: Likewise.
58581         * lib/inttypes_.h [__DECC]: Likewise.
58582         Reported by Albert Chin <china@thewrittenword.com> in
58583         <http://lists.gnu.org/archive/html/bug-gnulib/2007-04/msg00088.html>.
58584
58585 2007-04-04  Eric Blake  <ebb9@byu.net>
58586
58587         * m4/stdint.m4 (gl_STDINT_H): Detect WINT_MAX bug in cygwin
58588         1.5.x.
58589
58590 2007-04-04  Bruno Haible  <bruno@clisp.org>
58591
58592         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Add a test for correct
58593         rounding. Don't assume that FreeBSD 6 and NetBSD 4 pass this test.
58594
58595 2007-04-04  Bruno Haible  <bruno@clisp.org>
58596
58597         * tests/test-vasnprintf-posix.c (test_function): Allow two possible
58598         results for "%010a" of Infinity and NaN.
58599         * tests/test-vasprintf-posix.c (test_function): Likewise.
58600         * tests/test-snprintf-posix.h (test_function): Likewise.
58601         * tests/test-sprintf-posix.h (test_function): Likewise.
58602         * tests/test-fprintf-posix.h (test_function): Remove these tests.
58603         * tests/test-printf-posix.h (test_function): Likewise.
58604         * tests/test-fprintf-posix.out: Update.
58605         Needed for FreeBSD 6.1.
58606
58607 2007-04-04  Bruno Haible  <bruno@clisp.org>
58608
58609         * DEPENDENCIES: Remove mentions of tar and gzip, since they are not
58610         directly used by the gnulib modules nor by gnulib-tool.
58611
58612 2007-04-04  Paul Eggert  <eggert@cs.ucla.edu>
58613
58614         * DEPENDENCIES: Give overall description of version dependency
58615         desirability.  Use more-typical names for apps.
58616         Add shell, coreutils, diffutils, grep, tar, gzip.
58617
58618 2007-04-04  Simon Josefsson  <simon@josefsson.org>
58619
58620         * MODULES.html.sh: Rename crypto modules.  Remove iconvme.
58621
58622 2007-04-04  Karl Berry  <karl@gnu.org>
58623
58624         * MODULES.html.sh (func_module): missing '.
58625
58626 2007-04-03  Bruno Haible  <bruno@clisp.org>
58627
58628         * modules/argmatch-tests (Makefile.am): New variable
58629         test_argmatch_LDADD.
58630         * modules/argp-tests (Makefile.am): New variable test_argp_LDADD.
58631         * modules/array-list-tests (Makefile.am): New variable
58632         test_array_list_LDADD.
58633         * modules/array-oset-tests (Makefile.am): New variable
58634         test_array_oset_LDADD.
58635         * modules/avltree-list-tests (Makefile.am): New variable
58636         test_avltree_list_LDADD.
58637         * modules/avltree-oset-tests (Makefile.am): New variable
58638         test_avltree_oset_LDADD.
58639         * modules/avltreehash-list-tests (Makefile.am): New variable
58640         test_avltreehash_list_LDADD.
58641         * modules/canonicalize-lgpl-tests (Makefile.am): New variable
58642         test_canonicalize_lgpl_LDADD.
58643         * modules/carray-list-tests (Makefile.am): New variable
58644         test_carray_list_LDADD.
58645         * modules/dirname-tests (Makefile.am): New variable
58646         test_dirname_LDADD.
58647         * modules/linked-list-tests (Makefile.am): New variable
58648         test_linked_list_LDADD.
58649         * modules/linkedhash-list-tests (Makefile.am): New variable
58650         test_linkedhash_list_LDADD.
58651         * modules/rbtree-list-tests (Makefile.am): New variable
58652         test_rbtree_list_LDADD.
58653         * modules/rbtree-oset-tests (Makefile.am): New variable
58654         test_rbtree_oset_LDADD.
58655         * modules/rbtreehash-list-tests (Makefile.am): New variable
58656         test_rbtreehash_list_LDADD.
58657         * modules/xvasprintf-tests (Makefile.am): New variable
58658         test_xvasprintf_LDADD.
58659         Reported by Eric Blake.
58660
58661 2007-04-03  Eric Blake  <ebb9@byu.net>
58662
58663         * DEPENDENCIES: Weaken m4 requirements.
58664
58665 2007-04-03  Bruno Haible  <bruno@clisp.org>
58666
58667         * modules/frexp-tests (configure.ac): Remove AC_SUBST.
58668         * modules/isnanl-tests (configure.ac): Likewise.
58669
58670 2007-04-03  Ben Pfaff  <blp@gnu.org>
58671
58672         * modules/iconv_open: Add $(srcdir)/ to source directory
58673         references in Makefile fragments that call gperf, to fix VPATH
58674         builds.
58675
58676 2007-04-03  Bruno Haible  <bruno@clisp.org>
58677
58678         * modules/ldexpl (Depends-on): Add isnanl, remove isnanl-nolibm.
58679         * lib/ldexpl.c: Undo last change.
58680
58681 2007-04-03  Bruno Haible  <bruno@clisp.org>
58682
58683         * modules/printf-frexpl (Depends-on): Undo last change.
58684         (Files): Add m4/ldexpl.m4.
58685
58686 2007-04-03  Bruno Haible  <bruno@clisp.org>
58687
58688         * m4/isnanl.m4 (gl_FUNC_ISNANL): Substitute ISNANL_LIBM.
58689         * modules/isnanl (Link): New section.
58690
58691         * m4/frexp.m4 (gl_FUNC_FREXP): Substitute FREXP_LIBM.
58692         * modules/frexp (Link): New section.
58693
58694         * m4/frexpl.m4 (gl_FUNC_FREXPL): Substitute FREXPL_LIBM.
58695         * modules/frexpl (Link): New section.
58696
58697         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Substitute LDEXPL_LIBM.
58698         * modules/ldexpl (Link): New section.
58699
58700 2007-04-03  Bruno Haible  <bruno@clisp.org>
58701
58702         * modules/TEMPLATE-EXTENDED: New file.
58703         * gnulib-tool (func_all_modules, func_verify_module): Exclude it.
58704
58705 2007-04-03  Bruno Haible  <bruno@clisp.org>
58706
58707         * DEPENDENCIES: New file.
58708         Suggested by Simon Josefsson.
58709
58710 2007-04-03  Bruno Haible  <bruno@clisp.org>
58711
58712         * doc/gnulib.texi: Escape @.
58713
58714 2007-04-03  James Youngman  <jay@gnu.org>
58715         and Paul Eggert  <eggert@cs.ucla.edu>
58716
58717         * lib/stat-time.h (get_stat_birthtime): Check for zero-valued
58718         birthtime on all systems that have birthtime, not just those which
58719         use st_birthtimensec rather than st_birthtim.  Putting zero in
58720         st_birthtim.tv_sec is how (for example) FreeBSD/x86 6.1 indicates
58721         that the birth time is not available for files on an NFS mount.
58722
58723 2007-04-03  Simon Josefsson  <simon@josefsson.org>
58724
58725         * modules/memxor: Move back from crypto/, suggested by Bruno.
58726         * modules/crypto/hmac-sha1: Fix memxor dependency.
58727
58728         * modules/crypto/gc: Moved from ../.
58729
58730 2007-04-02  Eric Blake  <ebb9@byu.net>
58731
58732         * lib/ldexpl.c (includes): Avoid libm.
58733
58734         * modules/printf-frexpl (Depends-on): Depend on ldexpl.
58735
58736 2007-04-02  Bruno Haible  <bruno@clisp.org>
58737
58738         * lib/sysexit_.h (EX_OK): Disable the EX_OK definition from <unistd.h>
58739         on IRIX.
58740
58741 2007-04-02  Bruno Haible  <bruno@clisp.org>
58742
58743         * m4/intdiv0.m4 (gt_INTDIV0): Avoid performing the test for real on
58744         x86 or x86_64 platforms running MacOS X.
58745         Reported by Ryan Schmidt <@ryandesign.com>.
58746
58747 2007-04-02  Bruno Haible  <bruno@clisp.org>
58748
58749         * m4/intdiv0.m4 (gt_INTDIV0): When cross-compiling, treat x86_64 like
58750         i386.
58751
58752 2007-04-01  Simon Josefsson  <simon@josefsson.org>
58753
58754         * modules/crypto/arcfour: Moved from ../.
58755         * modules/crypto/arcfour-tests: Moved from ../.
58756         * modules/crypto/arctwo: Moved from ../.
58757         * modules/crypto/arctwo-tests: Moved from ../.
58758         * modules/crypto/des: Moved from ../.
58759         * modules/crypto/des-tests: Moved from ../.
58760         * modules/crypto/gc-arcfour: Moved from ../.
58761         * modules/crypto/gc-arcfour-tests: Moved from ../.
58762         * modules/crypto/gc-arctwo: Moved from ../.
58763         * modules/crypto/gc-arctwo-tests: Moved from ../.
58764         * modules/crypto/gc-des: Moved from ../.
58765         * modules/crypto/gc-des-tests: Moved from ../.
58766         * modules/crypto/gc-hmac-md5: Moved from ../.
58767         * modules/crypto/gc-hmac-md5-tests: Moved from ../.
58768         * modules/crypto/gc-hmac-sha1: Moved from ../.
58769         * modules/crypto/gc-hmac-sha1-tests: Moved from ../.
58770         * modules/crypto/gc-md2: Moved from ../.
58771         * modules/crypto/gc-md2-tests: Moved from ../.
58772         * modules/crypto/gc-md4: Moved from ../.
58773         * modules/crypto/gc-md4-tests: Moved from ../.
58774         * modules/crypto/gc-md5: Moved from ../.
58775         * modules/crypto/gc-md5-tests: Moved from ../.
58776         * modules/crypto/gc-pbkdf2-sha1: Moved from ../.
58777         * modules/crypto/gc-pbkdf2-sha1-tests: Moved from ../.
58778         * modules/crypto/gc-random: Moved from ../.
58779         * modules/crypto/gc-rijndael: Moved from ../.
58780         * modules/crypto/gc-rijndael-tests: Moved from ../.
58781         * modules/crypto/gc-sha1: Moved from ../.
58782         * modules/crypto/gc-sha1-tests: Moved from ../.
58783         * modules/crypto/gc-tests: Moved from ../.
58784         * modules/crypto/hmac-md5: Moved from ../.
58785         * modules/crypto/hmac-md5-tests: Moved from ../.
58786         * modules/crypto/hmac-sha1: Moved from ../.
58787         * modules/crypto/hmac-sha1-tests: Moved from ../.
58788         * modules/crypto/md2: Moved from ../.
58789         * modules/crypto/md2-tests: Moved from ../.
58790         * modules/crypto/md4: Moved from ../.
58791         * modules/crypto/md4-tests: Moved from ../.
58792         * modules/crypto/md5: Moved from ../.
58793         * modules/crypto/md5-tests: Moved from ../.
58794         * modules/crypto/memxor: Moved from ../.
58795         * modules/crypto/rijndael: Moved from ../.
58796         * modules/crypto/rijndael-tests: Moved from ../.
58797         * modules/crypto/sha1: Moved from ../.
58798
58799 2007-03-30  James Youngman  <jay@gnu.org>
58800
58801         * tests/test-stat-time.c (prepare_test): use chmod() rather than
58802         rename() to change the ctime of a file (because ctime is unaffected
58803         by rename on jfs2 on AIX 5.1).
58804         (main): Start by doing cleanup, in case a previous run failed leaving
58805         test files behind.
58806
58807 2007-03-31  Bruno Haible  <bruno@clisp.org>
58808
58809         Support old proprietary implementations of iconv.
58810         * modules/iconv_open: New file.
58811         * lib/iconv_.h: New file.
58812         * m4/iconv_h.m4: New file.
58813         * lib/iconv_open.c: New file.
58814         * lib/iconv_open-aix.gperf: New file.
58815         * lib/iconv_open-hpux.gperf: New file.
58816         * lib/iconv_open-irix.gperf: New file.
58817         * lib/iconv_open-osf.gperf: New file.
58818         * m4/iconv_open.m4: New file.
58819         * modules/linebreak (Depends-on): Add iconv_open.
58820         * modules/striconv (Depends-on): Likewise.
58821         * modules/striconveh (Depends-on): Likewise.
58822         * modules/unicodeio (Depends-on): Likewise.
58823         * lib/striconveh.h (mem_cd_iconveh, str_cd_iconveh): Allow cd to be
58824         (iconv_t)(-1).
58825         * lib/striconveh.c (mem_cd_iconveh_internal): Use an indirect
58826         conversion if cd is (iconv_t)(-1).
58827         (mem_iconveh, str_iconveh): Don't fail just because a direct conversion
58828         is not possible.
58829
58830 2007-03-31  Bruno Haible  <bruno@clisp.org>
58831
58832         * tests/test-striconveha.c (main): Don't expect "autodetect_jp" to
58833         work on Solaris either. Protect also second use of "autodetect_jp".
58834
58835 2007-03-31  Bruno Haible  <bruno@clisp.org>
58836
58837         * m4/frexpl.m4 (gl_FUNC_FREXPL): Set HAVE_DECL_FREXPL to 0 when
58838         the function is not present.
58839
58840 2007-03-31  Bruno Haible  <bruno@clisp.org>
58841
58842         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Set HAVE_DECL_LDEXPL to 0 when
58843         the function is not present.
58844
58845 2007-03-31  Bruno Haible  <bruno@clisp.org>
58846
58847         * m4/iconv.m4 (AM_ICONV_LINK): Fix 2007-03-29 patch. Test also against
58848         a bug in HP-UX iconv_open().
58849
58850 2007-03-31  Bruno Haible  <bruno@clisp.org>
58851
58852         * MODULES.html.sh (func_module): Don't show gnulib-common.m4.
58853         (Mathematics <math.h>): New section, add fpieee.
58854         (Input/output <stdio.h>): Add fseterr.
58855         (Mathematics <math.h>): New section, add printf-frexp.
58856         (Container data structures): Add sublist.
58857         (Core language properties): Add fpucw, inline.
58858         (Functions for greatest-width integer types <inttypes.h>): Add
58859         imaxabs, imaxdiv, inttypes.
58860         (Mathematics <math.h>): Add frexp, frexpl, isnan-nolibm, isnanl,
58861         isnanl-nolibm, ldexp.
58862         (Mathematics <math.h>): New section, add printf-frexpl.
58863         (Support for systems lacking POSIX:2001): Add fprintf-posix,
58864         printf-posix, snprintf-posix, sprintf-posix, string, search, socklen,
58865         sys_select, sys_socket, vasnprintf-posix, vasprintf-posix,
58866         vfprintf-posix, vprintf-posix, vsnprintf-posix, vsprintf-posix.
58867         (Unicode string functions): Add unistr/u*-mbtoucr.
58868         (Java): Add javacomp-script, javaexec-script.
58869         (C#): Add csharpcomp-script, csharpexec-script.
58870         (Support for building libraries and executables): Add havelib,
58871         relocatable-*.
58872         (Support for maintaining and releasing projects): Renamed from
58873         'Support for maintaining and release projects'. Add announce-gen.
58874
58875 2007-03-31  Bruno Haible  <bruno@clisp.org>
58876
58877         * README: Talk primarily about git.
58878         (git and CVS): Renamed from CVS.
58879         * doc/gnulib.texi (Introduction, Build robot for gnulib): Mention that
58880         gnulib is available through git.
58881         * doc/gnulib-tool.texi (CVS Issues): Mention git and svn as well.
58882
58883 2007-03-30  Bruno Haible  <bruno@clisp.org>
58884
58885         * lib/alloca_.h: Change prefix of double-inclusion guard macro to _GL_.
58886         * lib/poll_.h: Likewise.
58887         * lib/stat_.h: Likewise.
58888         * lib/sys_time_.h: Likewise.
58889         * lib/sysexit_.h: Likewise.
58890         * lib/glob_.h: Prefix double-inclusion guard macro with _GL_.
58891         * lib/stdbool_.h: Likewise.
58892         * lib/byteswap_.h: Add double-inclusion guard.
58893
58894 2007-03-30  Sergey Poznyakoff  <gray@mirddin.farlep.net>
58895
58896         * lib/sysexit_.h: Prefix double-inclusion guard macro with _GNULIB.
58897
58898 2007-03-30  Karl Berry  <karl@gnu.org>
58899
58900         * config/srclist-update: double space after USA in the license
58901         substitution, since that's how it's usually (?) written.
58902
58903 2007-03-30  Paul Eggert  <eggert@cs.ucla.edu>
58904
58905         * lib/write-any-file.c (can_write_any_file): Fix else-else bug
58906         reported by Bruno Haible.
58907
58908 2007-03-29  Bruno Haible  <bruno@clisp.org>
58909
58910         * m4/iconv.m4 (AM_ICONV_LINK): Require AC_CANONICAL_HOST. Test against
58911         a bug in AIX iconv().
58912
58913 2007-03-29  Bruno Haible  <bruno@clisp.org>
58914
58915         * modules/ldexpl-tests: New file.
58916         * tests/test-ldexpl.c: New file.
58917
58918 2007-03-29  Bruno Haible  <bruno@clisp.org>
58919
58920         * lib/ldexpl.c: Include fpucw.h.
58921         (ldexpl): Use BEGIN/END_LONG_DOUBLE_ROUNDING. Skip the last unneeded
58922         multiplication.
58923         * modules/ldexpl (Depends-on): Add fpucw.
58924
58925 2007-03-29  Bruno Haible  <bruno@clisp.org>
58926
58927         * modules/ldexpl: New file.
58928         * m4/ldexpl.m4: New file.
58929         * lib/math_.h (ldexpl): Define to a replacement if REPLACE_LDEXPL is
58930         set.
58931         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize also GNULIB_LDEXPL,
58932         REPLACE_LDEXPL.
58933         * modules/math (Makefile.am): Substitute also GNULIB_LDEXPL,
58934         REPLACE_LDEXPL.
58935         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Invoke
58936         gl_FUNC_LDEXPL_WORKS.
58937         * m4/mathl.m4 (gl_FUNC_LONG_DOUBLE_MATH): Remove test for ldexpl.
58938         * modules/mathl (Files): Remove lib/ldexpl.c.
58939         (Depends-on): Add ldexpl.
58940
58941 2007-03-29  Bruno Haible  <bruno@clisp.org>
58942
58943         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Declare frexpl.
58944
58945 2007-03-29  Bruno Haible  <bruno@clisp.org>
58946
58947         * tests/test-striconveh.c (main): Don't assume that a direct conversion
58948         between ISO-8859-1 and ISO-8859-2 is possible. Needed for OSF/1, IRIX
58949         and possibly also HP-UX.
58950         * tests/test-striconveha.c (main): Don't expect "autodetect_jp" to
58951         work on AIX, IRIX, HP-UX, OSF/1.
58952         * tests/uniconv/test-u16-conv-from-enc.c (main): Likewise.
58953         * tests/uniconv/test-u16-strconv-from-enc.c (main): Likewise.
58954         * tests/uniconv/test-u32-conv-from-enc.c (main): Likewise.
58955         * tests/uniconv/test-u32-strconv-from-enc.c (main): Likewise.
58956         * tests/uniconv/test-u8-conv-from-enc.c (main): Likewise.
58957         * tests/uniconv/test-u8-strconv-from-enc.c (main): Likewise.
58958
58959 2007-03-29  Bruno Haible  <bruno@clisp.org>
58960
58961         * tests/test-stat-time.c: Include <fcntl.h>, not <sys/fcntl.h>.
58962
58963 2007-03-29  Paul Eggert  <eggert@cs.ucla.edu>
58964
58965         * lib/acl-internal.h (acl_get_fd, acl_set_fd): undef before defining,
58966         to work around a problem on OSF/1 5.1 reported by Bruno Haible.
58967
58968 2007-03-29  Eric Blake  <ebb9@byu.net>
58969
58970         * lib/acl-internal.h: Remove redundant include.
58971         (ACL_NOT_WELL_SUPPORTED): Also filter on EBUSY, returned by
58972         Cygwin when a file is locked.
58973
58974 2007-03-29  Bruno Haible  <bruno@clisp.org>
58975
58976         * lib/vasprintf.c [IN_LIBASPRINTF]: Include different specification
58977         file.
58978         * lib/asprintf.c [IN_LIBASPRINTF]: Likewise.
58979
58980 2007-03-29  Paul Eggert  <eggert@cs.ucla.edu>
58981
58982         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Don't bother to
58983         try to remove a parent directory if the child couldn't be removed
58984         (except for the first rmdir, which could fail because the child
58985         doesn't exist).  Problem reported by Jeff Blaine in
58986         <http://lists.gnu.org/archive/html/bug-tar/2007-03/msg00014.html>.
58987
58988 2007-03-28  Bruno Haible  <bruno@clisp.org>
58989
58990         * lib/striconveh.c (utf8conv_carefully): New function.
58991         (mem_cd_iconveh_internal): Invoke it.
58992
58993 2007-03-28  Bruno Haible  <bruno@clisp.org>
58994
58995         * lib/striconveh.c (mem_cd_iconveh_internal): Use u8_mbtoucr instead
58996         of u8_mbtouc in order to distinguish invalid and incomplete UTF-8
58997         input.
58998         * modules/striconveh (Depends-on): Add unistr/u8-mbtoucr. Replace
58999         utf8-ucs4 with unistr/u8-mbtouc. Replace ucs4-utf8 with
59000         unistr/u8-uctomb.
59001
59002 2007-03-28  Bruno Haible  <bruno@clisp.org>
59003
59004         * modules/unistr/u8-mbtoucr: New file.
59005         * lib/unistr/u8-mbtoucr.c: New file.
59006         * modules/unistr/u16-mbtoucr: New file.
59007         * lib/unistr/u16-mbtoucr.c: New file.
59008         * modules/unistr/u16-mbtoucr: New file.
59009         * lib/unistr/u16-mbtoucr.c: New file.
59010         * lib/unistr.h (u8_mbtoucr, u16_mbtoucr, u32_mbtoucr): New declarations.
59011
59012 2007-03-27  Simon Josefsson  <simon@josefsson.org>
59013             Bruno Haible  <bruno@clisp.org>
59014
59015         * m4/vasprintf.m4: Convert AC_SUBST into shell variable for
59016         REPLACE_VASPRINTF.  Set HAVE_VASPRINTF.  Add
59017         AC_REQUIRE([gl_STDIO_H_DEFAULTS]).
59018
59019         * m4/stdio_h.m4: Add stubs for vasprintf too.
59020
59021         * modules/stdio: Support vasprintf in sed command.
59022
59023         * modules/vasprintf: Depend on stdio for prototypes.  Remove
59024         vasprintf.h.  Add stdio module indicator.
59025
59026         * lib/stdio_.h: Declare asprintf and vasprintf, based on
59027         vasprintf.h.
59028
59029         * lib/vasprintf.h: File removed.
59030
59031         * lib/asprintf.c: Use stdio.h instead of vasprintf.h.
59032         * lib/vasprintf.c: Ditto.
59033         * lib/xvasprintf.c: Ditto.
59034         * tests/test-vasprintf-posix.c: Ditto.
59035         * tests/test-vasprintf.c: Ditto.
59036
59037 2007-03-27  Bruno Haible  <bruno@clisp.org>
59038
59039         Make vasnprintf multithread-safe.
59040         * lib/vasnprintf.c (decimal_point_char): New function.
59041         (VASNPRINTF): Use it.
59042         Suggested by Simon Josefsson.
59043
59044 2007-03-27  Eric Blake  <ebb9@byu.net>
59045
59046         Support sub-second birthtime on cygwin.
59047         * m4/stat-time.m4 (gl_STAT_BIRTHTIME): Also check for st_birthtim.
59048         * lib/stat-time.h (STAT_TIMESPEC): Adjust comments.
59049         (get_stat_birthtime): Also work with st_birthtim.
59050
59051 2007-03-27  Paul Eggert  <eggert@cs.ucla.edu>
59052
59053         * lib/stat-time.h (USE_BIRTHTIME): Remove.
59054         (get_stat_atime_ns, get_stat_ctime_ns, get_stat_mtime_ns):
59055         (get_stat_birthtime_ns): Do not try to use "spare" fields.
59056         (get_stat_birthtime_ns): Simplify compile-time tests.
59057         (get_stat_birthtime): Change the API to look like
59058         get_stat_mtime etc., except return a negative tv_nsec on error.
59059         * m4/stat-time.m4 (gl_STAT_TIME, gl_STAT_BIRTHTIME):
59060         Don't check for "spare" fields.
59061         (gl_STAT_BIRTHTIME): Don't check for struct stat.st_birthtimespec.tv_sec
59062         or for struct stat.st_birthtime, as these tests aren't used.
59063         * tests/test-stat-time.c (test_birthtime): Adjust to new API.
59064
59065 2007-03-27  Bruno Haible  <bruno@clisp.org>
59066
59067         * lib/stat-time.h: Include <sys/stat.h>.
59068
59069 2007-03-27  James Youngman  <jay@gnu.org>
59070
59071         * lib/stat-time.h (get_stat_birthtime): New function for
59072           retrieving st_birthtime as provided by UFS2 (hence *BSD).
59073         * m4/stat-time.m4 (gl_STAT_BIRTHTIME): Probe for st_birthtime
59074           and its variants.
59075         * modules/stat-time (configure.ac): call gl_STAT_BIRTHTIME.
59076         * modules/stat-time-test: New file.
59077         * tests/test-stat-time.c: New test, devised by Bruno Haible.
59078
59079 2007-03-26  Bruno Haible  <bruno@clisp.org>
59080
59081         Better support of signalling NaNs.
59082         * lib/atanl.c: Include isnanl.h.
59083         (atanl): Perform test for NaN at the beginning of the function and
59084         through a call to isnanl.
59085         * lib/cosl.c: Include isnanl.h.
59086         (cosl): Perform test for NaN at the beginning of the function and
59087         through a call to isnanl.
59088         * lib/ldexpl.c: Include isnanl.h.
59089         (ldexpl): Perform test for NaN through a call to isnanl.
59090         * lib/logl.c: Include isnanl.h.
59091         (logl): Perform test for NaN at the beginning of the function and
59092         through a call to isnanl.
59093         * lib/sinl.c: Include isnanl.h.
59094         (sinl): Perform test for NaN at the beginning of the function and
59095         through a call to isnanl.
59096         * lib/sqrtl.c: Include isnanl.h.
59097         (sqrtl): Perform test for NaN at the beginning of the function and
59098         through a call to isnanl.
59099         * lib/tanl.c: Include isnanl.h.
59100         (tanl): Perform test for NaN at the beginning of the function and
59101         through a call to isnanl.
59102         * lib/trigl.c (ieee754_rem_pio2l): Remove test for NaN.
59103         * modules/mathl (Depends-on): Add isnanl.
59104
59105 2007-03-26  Eric Blake  <ebb9@byu.net>
59106
59107         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): Fix
59108         regression in logic sense of previous patch.
59109
59110 2007-03-26  Bruno Haible  <bruno@clisp.org>
59111
59112         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): Don't use
59113         unportable shell command "if ! ...".
59114         Reported by Ralf Wildenhues.
59115
59116 2007-03-25  Bruno Haible  <bruno@clisp.org>
59117
59118         * lib/sysexit_,h: If HAVE_SYSEXITS_H is defined, include the original
59119         <sysexits.h> file, and only add EX_CONFIG.
59120         * m4/sysexits.m4 (gl_SYSEXITS): If <sysexits.h> exists, check its
59121         absolute file name and whether it is sufficient. Substitute also
59122         HAVE_SYSEXITS_H and ABSOLUTE_SYSEXITS_H.
59123         * modules/sysexits (Makefile.am): Substitute HAVE_SYSEXITS_H and
59124         ABSOLUTE_SYSEXITS_H into sysexits.h.
59125
59126 2007-03-25  Bruno Haible  <bruno@clisp.org>
59127
59128         * lib/getaddrinfo.c (getaddrinfo): Don't access hints->ai_flags when
59129         hints is NULL.
59130
59131 2007-03-25  Bruno Haible  <bruno@clisp.org>
59132
59133         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Add a cast.
59134         * lib/uniconv/u8-strconv-to-enc.c (u8_strconv_to_encoding): Likewise.
59135
59136 2007-03-25  Bruno Haible  <bruno@clisp.org>
59137
59138         * lib/vasnprintf.c: Include langinfo.h.
59139         (VASNPRINTF): Prefer nl_langinfo over localeconv, since it's more
59140         multithread-safe.
59141         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): New macro.
59142         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke it.
59143         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
59144         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
59145         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
59146         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
59147         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
59148         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX: Likewise.
59149         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
59150         Reported by Simon Josefsson.
59151
59152 2007-03-25  Bruno Haible  <bruno@clisp.org>
59153
59154         * lib/printf-parse.c [!IN_LIBINTL]: Include <stdint.h>, for intmax_t.
59155         (PRINTF_PARSE): Make the support for size specifier 'j' unconditional.
59156         * modules/vasnprintf (Depends-on): Add stdint.
59157
59158 2007-03-25  Bruno Haible  <bruno@clisp.org>
59159
59160         * modules/fpieee: New file.
59161         * m4/fpieee.m4: New file.
59162         * modules/isnan-nolibm (Depends-on): Add fpieee.
59163         * modules/isnanl-nolibm (Depends-on): Add fpieee.
59164         * modules/isnanl (Depends-on): Add fpieee.
59165
59166 2007-03-25  Bruno Haible  <bruno@clisp.org>
59167
59168         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Test also finite numbers.
59169
59170 2007-03-25  Bruno Haible  <bruno@clisp.org>
59171
59172         Avoid test failures on IRIX 6.5.
59173         * tests/test-frexpl.c (MIN_NORMAL_EXP): New macro.
59174         (main): Use it.
59175         * tests/test-printf-frexpl.c (MIN_NORMAL_EXP, MIN_SUBNORMAL_EXP): New
59176         macros.
59177         (main): Use them.
59178
59179 2007-03-25  Bruno Haible  <bruno@clisp.org>
59180
59181         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): New macro.
59182         (gl_FUNC_FREXPL): Invoke it. Set REPLACE_FREXPL to 1 if it frexpl
59183         exists but doesn't work.
59184         * lib/math_.h (frexpl): Define as a replacement macro if REPLACE_FREXPL
59185         is set. Don't provide a prototype if REPLACE_FREXPL is not set.
59186         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_FREXPL.
59187         * modules/math (Makefile.am): Substibute also REPLACE_FREXPL into
59188         math.h.
59189
59190 2007-03-25  Bruno Haible  <bruno@clisp.org>
59191
59192         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Add check whether frexp(inf)
59193         returns inf. Needed on IRIX 6.5.
59194
59195 2007-03-25  Bruno Haible  <bruno@clisp.org>
59196
59197         * tests/test-frexpl.c: Include isnanl-nolibm.h.
59198         (main): Use isnanl instead of x != x idiom.
59199         * modules/frexpl-tests (Depends-on): Add isnanl-nolibm.
59200
59201         * tests/test-frexp.c: Include isnan.h.
59202         (main): Use isnan instead of x != x idiom.
59203         * modules/frexp-tests (Depends-on): Add isnan-nolibm.
59204
59205 2007-03-25  Bruno Haible  <bruno@clisp.org>
59206
59207         * tests/test-frexp.c (NaN): New function/macro.
59208         (main): Use it instead of 0.0 / 0.0.
59209         * tests/test-isnan.c (NaN): New function/macro.
59210         (main): Use it instead of 0.0 / 0.0.
59211         * tests/test-vasnprintf-posix.c (NaN): New function/macro.
59212         (test_function): Use it instead of 0.0 / 0.0.
59213         * tests/test-vasprintf-posix.c (NaN): New function/macro.
59214         (test_function): Use it instead of 0.0 / 0.0.
59215         * tests/test-snprintf-posix.h (NaN): New function/macro.
59216         (test_function): Use it instead of 0.0 / 0.0.
59217         * tests/test-sprintf-posix.h (NaN): New function/macro.
59218         (test_function): Use it instead of 0.0 / 0.0.
59219         * tests/test-fprintf-posix.h (NaN): New function/macro.
59220         (test_function): Use it instead of 0.0 / 0.0.
59221         * tests/test-printf-posix.h (NaN): New function/macro.
59222         (test_function): Use it instead of 0.0 / 0.0.
59223
59224         * lib/isnan.c (FUNC): Work around a DEC C compiler bug.
59225
59226 2007-03-25  Bruno Haible  <bruno@clisp.org>
59227
59228         * lib/glob_.h: Include <sys/stat.h>. Avoids warnings on AIX 5.1.
59229
59230 2007-03-25  Bruno Haible  <bruno@clisp.org>
59231
59232         * lib/regexec.c (merge_state_with_log): Make static.
59233
59234 2007-03-25  Bruno Haible  <bruno@clisp.org>
59235
59236         * lib/trigl.c (kernel_rem_pio2): Make static.
59237
59238 2007-03-25  Bruno Haible  <bruno@clisp.org>
59239
59240         * lib/sincosl.c (sincosl_table): Make static.
59241
59242 2007-03-25  Bruno Haible  <bruno@clisp.org>
59243
59244         * lib/argp.h (__restrict): Define to empty, rather than to 'restrict',
59245         if the compiler does not support C99.
59246
59247 2007-03-25  Bruno Haible  <bruno@clisp.org>
59248
59249         * modules/time (Makefile.am): Ensure all rule action lines start with a
59250         tab.
59251
59252 2007-03-24  Bruno Haible  <bruno@clisp.org>
59253
59254         * modules/tsearch-tests: New file.
59255         * tests/test-tsearch.sh: New file.
59256         * tests/test-tsearch.c: New file, mostly copied from glibc.
59257
59258         * modules/search-tests: New file.
59259         * tests/test-search.c: New file.
59260
59261         * modules/search: New file.
59262         * lib/search_.h: New file, incorporating lib/tsearch.h.
59263         * m4/search_h.m4: New file.
59264         * lib/tsearch.h: Remove file.
59265         * lib/tsearch.c: Include search.h instead of tsearch.h.
59266         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Require gl_SEARCH_H_DEFAULTS. Set
59267         HAVE_TSEARCH.
59268         * modules/tsearch (Files): Remove lib/tsearch.h.
59269         (Depends-on): Add search.
59270         (configure.ac): Invoke gl_SEARCH_MODULE_INDICATOR.
59271         (Include): Change tsearch.h into search.h.
59272
59273 2007-03-24  Bruno Haible  <bruno@clisp.org>
59274
59275         * modules/fpucw: New file.
59276         * lib/fpucw.h: New file.
59277         * lib/frexp.c: Include fpucw.h.
59278         (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): New macros.
59279         (FUNC): Use them.
59280         * lib/printf-frexp.c: Include fpucw.h.
59281         (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): New macros.
59282         (FUNC): Use them.
59283         * lib/vasnprintf.c: Include fpucw.h.
59284         (VASNPRINTF): Invoke BEGIN/END_LONG_DOUBLE_ROUNDING around the
59285         'long double' calculations.
59286         * tests/test-frexpl.c: Include fpucw.h.
59287         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING.
59288         * tests/test-printf-frexpl.c: Include fpucw.h.
59289         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING.
59290         * modules/frexpl (Depends-on): Add fpucw.
59291         * modules/printf-frexpl (Depends-on): Likewise.
59292         * modules/fprintf-posix (Depends-on): Likewise.
59293         * modules/snprintf-posix (Depends-on): Likewise.
59294         * modules/sprintf-posix (Depends-on): Likewise.
59295         * modules/vasnprintf-posix (Depends-on): Likewise.
59296         * modules/vasprintf-posix (Depends-on): Likewise.
59297         * modules/vfprintf-posix (Depends-on): Likewise.
59298         * modules/vsnprintf-posix (Depends-on): Likewise.
59299         * modules/vsprintf-posix (Depends-on): Likewise.
59300         * modules/frexpl-tests (Depends-on): Likewise.
59301         * modules/printf-frexpl-tests (Depends-on): Likewise.
59302
59303 2007-03-24  Bruno Haible  <bruno@clisp.org>
59304
59305         * lib/float+.h: New file.
59306         * lib/isnan.c: Include float+.h.
59307         (SIZE): New macro.
59308         (FUNC): Compare only SIZE bytes of the value.
59309         * lib/vasnprintf.c: Include float+.h.
59310         (VASNPRINTF): When comparing agains +0.0L or +0.0, compare only
59311         SIZEOF_LDBL or SIZEOF_DBL bytes.
59312         * modules/isnan-nolibm (Files): Add lib/float+.h.
59313         * modules/isnanl-nolibm (Files): Add lib/float+.h.
59314         * modules/isnanl (Files): Add lib/float+.h.
59315         * modules/vasnprintf (Files): Add lib/float+.h.
59316
59317 2007-03-24  Bruno Haible  <bruno@clisp.org>
59318
59319         * lib/vasnprintf.c [!HAVE_LONG_DOUBLE]: Include printf-frexp.h. Don't
59320         include isnanl-nolibm.h.
59321
59322 2007-03-24  Bruno Haible  <bruno@clisp.org>
59323
59324         * tests/test-read-file.c (main): Don't produce spurious output for
59325         expected situations. Make the test fail if it encountered unexpected
59326         results.
59327
59328 2007-03-24  Bruno Haible  <bruno@clisp.org>
59329
59330         * m4/locale-fr.m4 (gt_LOCALE_FR): Remove the special-casing of NetBSD,
59331         since its fr_FR.ISO8859-1 locale wouldn't pass the tests.
59332
59333 2007-03-24  Bruno Haible  <bruno@clisp.org>
59334
59335         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Fix last change.
59336
59337 2007-03-24  Bruno Haible  <bruno@clisp.org>
59338
59339         * modules/unistr/base (Depends-on): Remove utf8-ucs4-unsafe,
59340         utf16-ucs4-unsafe, utf8-ucs4, utf16-ucs4, ucs4-utf8, ucs4-utf16.
59341
59342         * modules/unistr/u8-mbtouc: Add source files from module utf8-ucs4.
59343         * modules/utf8-ucs4: Turn into a symbolic link to module
59344         unistr/u8-mbtouc.
59345
59346         * modules/unistr/u8-mbtouc-unsafe: Add source files from module
59347         utf8-ucs4-unsafe.
59348         * modules/utf8-ucs4-unsafe: Turn into a symbolic link to module
59349         unistr/u8-mbtouc-unsafe.
59350
59351         * modules/unistr/u16-mbtouc: Add source files from module utf16-ucs4.
59352         * modules/utf16-ucs4: Turn into a symbolic link to module
59353         unistr/u16-mbtouc.
59354
59355         * modules/unistr/u16-mbtouc-unsafe: Add source files from module
59356         utf16-ucs4-unsafe.
59357         * modules/utf16-ucs4-unsafe: Turn into a symbolic link to module
59358         unistr/u16-mbtouc-unsafe.
59359
59360         * modules/unistr/u8-uctomb: Add source files from module utf4-utf8.
59361         * modules/ucs4-utf8: Turn into a symbolic link to module
59362         unistr/u8-ubtomb.
59363
59364         * modules/unistr/u16-uctomb: Add source files from module utf4-utf16.
59365         * modules/ucs4-utf16: Turn into a symbolic link to module
59366         unistr/u16-ubtomb.
59367
59368 2007-03-24  Bruno Haible  <bruno@clisp.org>
59369
59370         * lib/unistr/u8-mbtouc-aux.c: Renamed from lib/unistr/utf8-ucs4.c.
59371         Enable the function only if HAVE_INLINE.
59372         * lib/unistr/u8-mbtouc-unsafe-aux.c: Renamed from
59373         lib/unistr/utf8-ucs4-unsafe.c. Enable the function only if HAVE_INLINE.
59374         * lib/unistr/u16-mbtouc-aux.c: Renamed from lib/unistr/utf16-ucs4.c.
59375         Enable the function only if HAVE_INLINE.
59376         * lib/unistr/u16-mbtouc-unsafe-aux.c: Renamed from
59377         lib/unistr/utf16-ucs4-unsafe.c. Enable the function only if HAVE_INLINE.
59378         * lib/unistr/u8-uctomb-aux.c: Renamed from lib/unistr/ucs4-utf8.c.
59379         Enable the function only if HAVE_INLINE.
59380         * lib/unistr/u16-uctomb-aux.c: Renamed from lib/unistr/ucs4-utf16.c.
59381         Enable the function only if HAVE_INLINE.
59382         * modules/utf8-ucs4: Update.
59383         * modules/utf8-ucs4-unsafe: Update.
59384         * modules/utf16-ucs4: Update.
59385         * modules/utf16-ucs4-unsafe: Update.
59386         * modules/ucs4-utf8: Update.
59387         * modules/ucs4-utf16: Update.
59388
59389 2007-03-24  Bruno Haible  <bruno@clisp.org>
59390
59391         * lib/utf8-ucs4.h: Remove file.
59392         * lib/utf8-ucs4-unsafe.h: Remove file.
59393         * lib/utf16-ucs4.h: Remove file.
59394         * lib/utf16-ucs4-unsafe.h: Remove file.
59395         * lib/ucs4-utf8.h: Remove file.
59396         * lib/ucs4-utf16.h: Remove file.
59397         * lib/unistr.h: Include their previous contents.
59398         * m4/utf-ucs4.m4: Remove file.
59399         * m4/ucs4-utf.m4: Remove file.
59400         * modules/utf8-ucs4 (Files): Remove lib/utf8-ucs4.h.
59401         (Depends-on): Add unistr/base.
59402         (configure.ac): Remove gl_UTF_UCS4.
59403         (Makefile.am): Update.
59404         (Include): Change to unistr.h.
59405         * modules/utf8-ucs4-unsafe (Files): Remove lib/utf8-ucs4-unsafe.h.
59406         (Depends-on): Add unistr/base.
59407         (configure.ac): Remove gl_UTF_UCS4.
59408         (Makefile.am): Update.
59409         (Include): Change to unistr.h.
59410         * modules/utf16-ucs4 (Files): Remove lib/utf16-ucs4.h.
59411         (Depends-on): Add unistr/base.
59412         (configure.ac): Remove gl_UTF_UCS4.
59413         (Makefile.am): Update.
59414         (Include): Change to unistr.h.
59415         * modules/utf16-ucs4-unsafe (Files): Remove lib/utf16-ucs4-unsafe.h.
59416         (Depends-on): Add unistr/base.
59417         (configure.ac): Remove gl_UTF_UCS4.
59418         (Makefile.am): Update.
59419         (Include): Change to unistr.h.
59420         * modules/ucs4-utf8 (Files): Remove lib/ucs4-utf8.h.
59421         (Depends-on): Add unistr/base.
59422         (configure.ac): Remove gl_UCS4_UTF.
59423         (Makefile.am): Update.
59424         (Include): Change to unistr.h.
59425         * modules/ucs4-utf16 (Files): Remove lib/ucs4-utf16.h.
59426         (Depends-on): Add unistr/base.
59427         (configure.ac): Remove gl_UCS4_UTF.
59428         (Makefile.am): Update.
59429         (Include): Change to unistr.h.
59430         * lib/unistr/utf8-ucs4.c: Include unistr.h instead of utf8-ucs4.h.
59431         * lib/unistr/utf8-ucs4-unsafe.c: Include unistr.h instead of
59432         utf8-ucs4-unsafe.h.
59433         * lib/unistr/utf16-ucs4.c: Include unistr.h instead of utf16-ucs4.h.
59434         * lib/unistr/utf16-ucs4-unsafe.c: Include unistr.h instead of
59435         utf16-ucs4-unsafe.h.
59436         * lib/unistr/ucs4-utf8.c: Include unistr.h instead of ucs4-utf8.h.
59437         * lib/unistr/ucs4-utf16.c: Include unistr.h instead of ucs4-utf16.h.
59438         * lib/unistr/u8-chr.c: Don't include ucs4-utf8.h.
59439         * lib/unistr/u8-strchr.c: Likewise.
59440         * lib/unistr/u8-strrchr.c: Likewise.
59441         * lib/unistr/u16-chr.c: Don't include ucs4-utf16.h.
59442         * lib/unistr/u16-strchr.c: Likewise.
59443         * lib/unistr/u16-strrchr.c: Likewise.
59444         * lib/striconveh.c: Update.
59445         * lib/linebreak.c: Update.
59446
59447 2007-03-24  Bruno Haible  <bruno@clisp.org>
59448
59449         * lib/argp-help.c (fill_in_uparams, canon_doc_option): Cast the
59450         arguments of isspace, isalpha, isalnum, isdigit to 'unsigned char'.
59451
59452 2007-03-22  Bruno Haible  <bruno@clisp.org>
59453
59454         * lib/strptime.c (__strptime_internal): Use ANSI C syntax.
59455
59456 2007-03-23  Paul Eggert  <eggert@cs.ucla.edu>
59457
59458         * MODULES.html.sh (File system functions): New module write-any-file.
59459         * modules/write-any-file, lib/write-any-file.c, lib/write-any-file.h:
59460         * m4/write-any-file.m4: New files.
59461
59462 2007-03-23  Eric Blake  <ebb9@byu.net>
59463
59464         * gnulib-tool: Rearrange space-tab sequences, since some editors
59465         like to eat them.
59466
59467 2007-03-23  Eric Blake  <ebb9@byu.net>
59468
59469         * lib/version-etc.c (version_etc_va): Update license wording to
59470         be more concise.  Recommended by Richard Stallman.
59471
59472 2007-03-22  Bruno Haible  <bruno@clisp.org>
59473
59474         * lib/poll.c (MSG_PEEK): New fallback definition.
59475
59476 2007-03-22  Bruno Haible  <bruno@clisp.org>
59477
59478         * modules/sys_socket-tests (configure.ac): Check for shutdown function.
59479         * tests/test-sys_socket.c (a): Test only if shutdown() exists.
59480         (main): Update.
59481         Fixes a compilation error on BeOS.
59482
59483 2007-03-22  Bruno Haible  <bruno@clisp.org>
59484
59485         * modules/frexpl-tests: New file.
59486         * tests/test-frexpl.c: New file.
59487
59488         * modules/frexpl: New file.
59489         * m4/frexpl.m4: New file.
59490         * modules/math (Makefile.am): Also substitute GNULIB_FREXPL into math.h.
59491         * lib/math_.h (frexpl): Test GNULIB_FREXPL instead of GNULIB_MATHL.
59492         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FREXPL.
59493         * modules/mathl (Files): Remove lib/frexpl.c, lib/frexp.c.
59494         (Depends-on): Add frexpl. Remove isnanl-nolibm.
59495         * m4/mathl.m4 (gl_FUNC_LONG_DOUBLE_MATH): Don't test for frexpl.
59496
59497 2007-03-22  Bruno Haible  <bruno@clisp.org>
59498
59499         * lib/frexpl.c: Share code with lib/frexp.c.
59500         * modules/mathl (Files): Add lib/frexp.c.
59501         (Depends-on): Add isnanl-nolibm.
59502
59503 2007-03-22  Bruno Haible  <bruno@clisp.org>
59504
59505         * modules/printf-frexp (Files): Add m4/frexp.m4.
59506         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Define HAVE_FREXP_IN_LIBC
59507         only if the found frexp function actually works.
59508
59509 2007-03-22  Bruno Haible  <bruno@clisp.org>
59510
59511         * lib/frexp.c: Remove older implementation that uses divisions.
59512
59513 2007-03-21  Bruno Haible  <bruno@clisp.org>
59514
59515         * modules/frexp-tests: New file.
59516         * tests/test-frexp.c: New file.
59517
59518         * modules/frexp: New file.
59519         * lib/frexp.c: New file.
59520         * m4/frexp.m4: New file.
59521         * lib/math_.h (frexp): New declaration.
59522         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Also initialize GNULIB_FREXP and
59523         REPLACE_FREXP.
59524         * modules/math (math.h): Also substitute GNULIB_FREXP, REPLACE_FREXP.
59525
59526 2007-03-21  Bruno Haible  <bruno@clisp.org>
59527
59528         * modules/isnanl-tests: New file.
59529         * tests/test-isnanl.c: New file.
59530
59531         * modules/isnanl: New file.
59532         * lib/isnanl.h: New file.
59533         * m4/isnanl.m4 (gl_FUNC_ISNANL): New macro.
59534         (gl_FUNC_ISNANL_NO_LIBM): Invoke gl_HAVE_ISNANL_NO_LIBM,
59535         gl_FUNC_ISNANL_WORKS.
59536         (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM, gl_FUNC_ISNANL_WORKS):
59537         New macros.
59538
59539 2007-03-21  Bruno Haible  <bruno@clisp.org>
59540
59541         * modules/isnanl-nolibm (Files): Add lib/isnanl-nolibm.h, remove
59542         lib/isnanl.h.
59543         (Include): Update.
59544         * lib/isnanl-nolibm.h: Renamed from lib/isnanl.h.
59545         * lib/vasnprintf.c: Update.
59546         * modules/isnanl-nolibm-tests (Files): Add tests/test-isnanl-nolibm.c,
59547         tests/test-isnanl.h, remove tests/test-isnanl.c.
59548         (Makefile.am): Update.
59549         * tests/test-isnanl-nolibm.c: New file.
59550         * tests/test-isnanl.h: New file.
59551         * tests/test-isnanl.c: Remove file.
59552
59553 2007-03-21  Jim Meyering  <jim@meyering.net>
59554
59555         When trying to open ".", treat ESTALE like EACCES.
59556         * lib/savewd.c (savewd_save): Resort to forking not just upon
59557         failure with EACCES, but also when errno is ESTALE.
59558
59559 2007-03-20  Bruno Haible  <bruno@clisp.org>
59560
59561         * lib/string_.h (strndup): Enable declaration also if HAVE_STRNDUP.
59562         Needed on AIX 5.1. Reported by Matthew Woehlke.
59563
59564 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
59565
59566         Suggestions by Bruno Haible:
59567         * lib/acl-internal.h: Include "gettext.h" rather than rolling
59568         our own.
59569         (ACL_NOT_WELL_SUPPORTED): Parenthesize arg when used.
59570         * modules/acl (Depends-on): Add gettext.
59571
59572 2007-03-19  Bruno Haible  <bruno@clisp.org>
59573
59574         * modules/iconvme: Remove file.
59575         * lib/iconvme.h: Remove file.
59576         * lib/iconvme.c: Remove file.
59577         * m4/iconvme.m4: Remove file.
59578
59579 2007-03-19  Bruno Haible  <bruno@clisp.org>
59580
59581         * doc/relocatable-maint.texi: Break long shell script line.
59582         Suggested by Thien-Thi Nguyen <ttn@gnuvola.org>.
59583
59584 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
59585
59586         Add limited support for Solaris 10 ZFS-style ACLs: just enough to
59587         handle file_has_acl.
59588         * lib/acl-internal.h, lib/acl_entries.c, lib/file-has-acl.c: New files.
59589         * lib/acl.c: Move header inclusions and related macro defns into
59590         lib/acl-internal.h.
59591         (S_ISLNK): Remove defn, since that's now done for us.
59592         (file_has_acl): Move to lib/file-has-acl.c.
59593         Call acl_trivial if available.  This is the crucial part of the fix.
59594         (acl_entries): Move to lib/acl_entries.c.  Now extern, since it's
59595         shared within the library.  Rewrite a bit, partly to make it compatible
59596         with the GNU coding style.
59597         * m4/acl.m4 (AC_FUNC_ACL): Add AC_LIBOBJ([file-has-acl]).
59598         Remove unnecessary double-quotes.
59599         Don't test for acl_to_text; the build will catch that.
59600         Replace acl_entries if it doesn't exist and it is needed.
59601         Check for -lsec and acl_trivial (as used on Solaris 10).
59602         * modules/acl (Files): Add lib/acl-internal.h, lib/acl_entries.c,
59603         lib/file-has-acl.c.
59604         (Depends-on): Add sys_stat, for S_ISLNK.
59605
59606 2007-03-19  Ben Pfaff  <blp@gnu.org>
59607
59608         * doc/gnulib.texi: Fix typos.
59609         Suggested by Thien-Thi Nguyen <ttn@gnuvola.org>.
59610
59611 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
59612
59613         * lib/getcwd.c (__getcwd): Remove redundant comparison of buf to NULL.
59614         If size is zero here, buf must be zero.
59615
59616 2007-03-19  Simon Josefsson  <simon@josefsson.org>
59617
59618         * des.c: Remove weak_keys_chksum.  Reported by Bruno Haible
59619         <bruno@clisp.org>.
59620
59621 2007-03-18  Bruno Haible  <bruno@clisp.org>
59622
59623         * lib/vasnprintf.c (VASNPRINTF): Undo first part of last patch.
59624         Suggested by Eric Blake.
59625
59626 2007-03-18  Ben Pfaff  <blp@gnu.org>
59627
59628         * doc/relocatable.texi: Recommend using as prefix a directory
59629         that does not exist and will never be created.  Based on
59630         discussion with Bruno Haible, Ralf Wildenhues, Matthew Woehlke,
59631         and others.
59632
59633 2007-03-17  Bruno Haible  <bruno@clisp.org>
59634
59635         * lib/fchownat.c: Include lchown.h.
59636
59637 2007-03-17  Bruno Haible  <bruno@clisp.org>
59638
59639         Fix endless loop when the given allocated size was > INT_MAX.
59640         * lib/vasnprintf.c (EOVERFLOW): New fallback definition.
59641         (VASNPRINTF): Fail with EOVERFLOW when the given allocated size is
59642         larger than INT_MAX, or when it grow to a value larger than INT_MAX.
59643         * lib/vsprintf.c (vsprintf): Don't pass a size > INT_MAX to vasnprintf.
59644         * lib/sprintf.c (sprintf): Likewise.
59645
59646 2007-03-17  Bruno Haible  <bruno@clisp.org>
59647
59648         * tests/test-argp-2.sh (func_compare): Output a context diff.
59649
59650 2007-03-17  Bruno Haible  <bruno@clisp.org>
59651
59652         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Check also the
59653         locale's decimal-point character.
59654
59655 2007-03-17  Bruno Haible  <bruno@clisp.org>
59656
59657         * lib/vasnprintf.c (VASNPRINTF): Clear out the memory used for arg_mem
59658         before comparing it. Needed because on some platforms (e.g. x86) a
59659         'long double' occupies less bytes than sizeof (long double).
59660
59661 2007-03-17  Bruno Haible  <bruno@clisp.org>
59662
59663         * tests/test-crc.c (main): Make printf statements 64-bit clean.
59664         * tests/test-gc-pbkdf2-sha1.c (main): Likewise.
59665         * tests/test-getaddrinfo.c (simple): Likewise.
59666         * tests/test-read-file.c (main): Likewise.
59667
59668 2007-03-17  Bruno Haible  <bruno@clisp.org>
59669
59670         * tests/test-dirname.c (main): Make printf statements 64-bit clean.
59671
59672 2007-03-17  Bruno Haible  <bruno@clisp.org>
59673
59674         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Remove
59675         unused variable.
59676
59677 2007-03-17  Bruno Haible  <bruno@clisp.org>
59678
59679         * tests/test-c-strcasecmp.c: Include c-strcase.h.
59680         * tests/test-c-strncasecmp.c: Likewise.
59681
59682 2007-03-17  Bruno Haible  <bruno@clisp.org>
59683
59684         * modules/stdlib (Depends-on): Add unistd.
59685         * lib/stdlib_.h: Include <unistd.h> if mkstemp is desired.
59686         Needed for MacOS X 10.3.
59687
59688 2007-03-17  Bruno Haible  <bruno@clisp.org>
59689
59690         * lib/unistr/u-strdup.h: Include <stdlib.h>.
59691
59692 2007-03-17  Bruno Haible  <bruno@clisp.org>
59693
59694         * lib/unistr/u-cpy-alloc.h: Include <stdlib.h>.
59695
59696 2007-03-17  Bruno Haible  <bruno@clisp.org>
59697
59698         * gnulib-tool (func_import): Update .cvsignore and .gitignore files
59699         to reflect files copied from gnulib (with or without modifications).
59700         Suggested by Jim Meyering.
59701
59702 2007-03-17  Eric Blake  <ebb9@byu.net>
59703
59704         * NEWS: Document stdlib change from 2007-02-18.
59705
59706 2007-03-17  Jim Meyering  <jim@meyering.net>
59707
59708         Detect use of AC_CONFIG_AUX_DIR also when its argument is quoted.
59709         * build-aux/bootstrap: Put ""s around use of $build_aux, in case
59710         someone uses a name containing shell meta-characters.
59711         Reported by Alfred M. Szmidt.
59712
59713         * build-aux/bootstrap: Don't use \> in grep regexp.  For HP-UX.
59714
59715 2007-03-16  Alfred M. Szmidt  <ams@gnu.org>
59716
59717         * build-aux/bootstrap (with_gettext): New variable.  Run autopoint
59718         and copy gettext configuration files only if configure.ac contains
59719         a use of AM_GNU_GETTEXT_VERSION.
59720
59721 2007-03-16  Alfred M. Szmidt  <ams@gnu.org>
59722
59723         * build-aux/bootstrap (gnulib_name): New variable.
59724         (gnulib_tool_options): Use it.
59725
59726 2007-03-13  Simon Josefsson  <simon@josefsson.org>
59727
59728         * tests/test-des.c: Use new namespace.
59729
59730 2007-03-15  Bruno Haible  <bruno@clisp.org>
59731
59732         * lib/dummy.c (gl_dummy_symbol): Renamed from 'dummy'.
59733         Reported by James Youngman <jay@gnu.org>.
59734
59735 2007-03-15  Bruno Haible  <bruno@clisp.org>
59736
59737         * lib/glob.c (glob): Add 'restrict' so that prototype matches the
59738         declared prototype. Needed with cc on OSF/1 5.1.
59739
59740 2007-03-15  Bruno Haible  <bruno@clisp.org>
59741
59742         * lib/gl_list.h (gl_listelement_dispose_fn): New type.
59743         (gl_list_create_empty, gl_list_create): Add dispose_fn argument.
59744         (struct gl_list_implementation): Add dispose_fn argument to the
59745         'create_empty', 'create' methods.
59746         (struct gl_list_impl_base): Add field 'dispose_fn'.
59747         * lib/gl_list.c (gl_list_create_empty, gl_list_create): Add dispose_fn
59748         argument.
59749         * lib/gl_array_list.c (gl_array_create_empty, gl_array_create): Add
59750         dispose_fn argument.
59751         (gl_array_remove_node, gl_array_remove_at, gl_array_list_free): Call
59752         dispose_fn on the dropped values.
59753         * lib/gl_carray_list.c (gl_carray_create_empty, gl_carray_create): Add
59754         dispose_fn argument.
59755         (gl_carray_remove_at, gl_carray_list_free): Call dispose_fn on the
59756         dropped values.
59757         * lib/gl_anyavltree_list2.h (gl_tree_create): Add dispose_fn argument.
59758         (gl_tree_remove_node): Call dispose_fn on the dropped value.
59759         * lib/gl_anyrbtree_list2.h (gl_tree_create): Add dispose_fn argument.
59760         (gl_tree_remove_node): Call dispose_fn on the dropped value.
59761         * lib/gl_anytree_list2.h (gl_tree_create_empty): Add dispose_fn
59762         argument.
59763         (gl_tree_list_free): Call dispose_fn on the dropped values.
59764         * lib/gl_anytreehash_list2.h (gl_tree_list_free): Call dispose_fn on
59765         the dropped values.
59766         * lib/gl_anylinked_list2.h (gl_linked_create_empty, gl_linked_create):
59767         Add dispose_fn argument.
59768         (gl_linked_remove_node, gl_linked_remove_at, gl_linked_list_free):
59769         Call dispose_fn on the dropped values.
59770         * lib/gl_sublist.c (gl_sublist_create_empty, gl_sublist_create_fill):
59771         Add dispose_fn argument.
59772         (gl_sublist_create): Initialize the 'dispose_fn' field.
59773         * lib/clean-temp.c (create_temp_dir, register_fd): Update.
59774         * tests/test-array_list.c (main): Update.
59775         * tests/test-carray_list.c (main): Update.
59776         * tests/test-avltree_list.c (main): Update.
59777         * tests/test-rbtree_list.c (main): Update.
59778         * tests/test-avltreehash_list.c (main): Update.
59779         * tests/test-rbtreehash_list.c (main): Update.
59780         * tests/test-linked_list.c (main): Update.
59781         * tests/test-linkedhash_list.c (main): Update.
59782         * tests/test-array_oset.c (main): Update.
59783
59784 2007-03-15  Bruno Haible  <bruno@clisp.org>
59785
59786         * lib/gl_oset.h (gl_setelement_dispose_fn): New type.
59787         (gl_oset_create_empty): Add dispose_fn argument.
59788         (struct gl_oset_implementation): Add dispose_fn argument to
59789         'create_empty' method.
59790         (struct gl_oset_impl_base): Add dispose_fn field.
59791         * lib/gl_oset.c (gl_oset_create_empty): Add dispose_fn argument.
59792         * lib/gl_array_oset.c (gl_array_create_empty): Add dispose_fn argument.
59793         (gl_array_remove_at, gl_array_free): Call dispose_fn on the dropped
59794         values.
59795         * lib/gl_anytree_oset.h (gl_tree_create_empty): Add dispose_fn argument.
59796         (gl_tree_oset_free): Call dispose_fn on the dropped values.
59797         * lib/gl_avltree_oset.c (gl_tree_remove_node): Call dispose_fn on the
59798         dropped value.
59799         * lib/gl_rbtree_oset.c (gl_tree_remove_node): Call dispose_fn on the
59800         dropped value.
59801         * tests/test-array_oset.c (main): Update.
59802         * tests/test-avltree_oset.c (main): Update.
59803         * tests/test-rbtree_oset.c (main): Update.
59804         * lib/gl_anytreehash_list1.h (add_to_bucket): Update.
59805
59806 2007-03-13  Bruno Haible  <bruno@clisp.org>
59807
59808         * tests/test-stdbool.c (i): Update after last patch.
59809
59810 2007-03-12  Bruno Haible  <bruno@clisp.org>
59811
59812         * lib/quotearg.c: Include <wctype.h> early, before the definition of
59813         the iswprint macro. Needed on Solaris 2.5.1.
59814
59815 2007-03-12  Bruno Haible  <bruno@clisp.org>
59816
59817         * tests/test-printf-frexp.c (main): Declare x as volatile.
59818
59819 2007-03-12  Simon Josefsson  <simon@josefsson.org>
59820
59821         * doc/gnulib.texi (Build robot for gnulib): New section.
59822
59823 2007-03-12  Jim Meyering  <jim@meyering.net>
59824
59825         * build-aux/bootstrap: New file.
59826         * build-aux/bootstrap.conf: New file, from coreutils.
59827
59828 2007-03-11  Bruno Haible  <bruno@clisp.org>
59829
59830         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Require AC_C_INLINE.
59831
59832 2007-03-12  Simon Josefsson  <simon@josefsson.org>
59833
59834         * lib/des.h, lib/des.c, lib/gc-gnulib.c: Use gl_ namespace, to
59835         avoid collisions with 'des_setkey'.  Reported by Bruno Haible
59836         <bruno@clisp.org>.  Also change 'tripledes_' to '3des_'.
59837
59838 2007-03-11  Bruno Haible  <bruno@clisp.org>
59839
59840         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): If the test program fails to
59841         compile, set LOCALE_TR_UTF8 to 'none' instead of empty.
59842
59843 2007-03-11  Bruno Haible  <bruno@clisp.org>
59844
59845         * lib/stdint_.h (INT64_MIN, INTMAX_MIN): Avoid using the ~INT..._MAX
59846         formula. Needed for SunPRO C 5.0.
59847
59848 2007-03-11  Bruno Haible  <bruno@clisp.org>
59849
59850         * modules/long-options (Depends-on): Add getopt.
59851
59852 2007-03-11  Bruno Haible  <bruno@clisp.org>
59853
59854         * modules/modechange (Depends-on): Add stdbool.
59855
59856 2007-03-11  Bruno Haible  <bruno@clisp.org>
59857
59858         * modules/i-ring (Depends-on): Add stdbool.
59859
59860 2007-03-11  Bruno Haible  <bruno@clisp.org>
59861
59862         * modules/gc-des (Depends-on): Add stdbool.
59863
59864 2007-03-11  Bruno Haible  <bruno@clisp.org>
59865
59866         * m4/mktime.m4 (gl_PREREQ_MKTIME): Require AC_C_INLINE.
59867
59868 2007-03-11  Bruno Haible  <bruno@clisp.org>
59869
59870         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Require AC_C_RESTRICT.
59871
59872 2007-03-11  Bruno Haible  <bruno@clisp.org>
59873
59874         * lib/unistr/u32-mbtouc-unsafe.c (u32_mbtouc_unsafe): Fix syntax error.
59875
59876 2007-03-11  Bruno Haible  <bruno@clisp.org>
59877
59878         * lib/vasnprintf.c (sprintf): Undefine.
59879
59880 2007-03-11  Bruno Haible  <bruno@clisp.org>
59881
59882         * lib/isnan.c (rpl_isnan, rpl_isnanl): Work around bug regarding
59883         initializers in SunPRO C and Compaq C compilers.
59884
59885 2007-03-11  Bruno Haible  <bruno@clisp.org>
59886
59887         * lib/gl_array_oset.c (gl_array_iterator_next): Make pointer
59888         decrementing code ANSI C compliant.
59889
59890 2007-03-11  Bruno Haible  <bruno@clisp.org>
59891
59892         * lib/dummy.c [__sun]: Define a dummy variable, not just a typedef.
59893         Needed for Solaris 2.5.1 ranlib and SunPRO C 5.0.
59894
59895 2007-03-11  Bruno Haible  <bruno@clisp.org>
59896
59897         * tests/test-stdbool.c (s, d, e, xlcbug): Disable checks that gnulib's
59898         <stdbool.h> substitute doesn't pass.
59899
59900 2007-03-11  Bruno Haible  <bruno@clisp.org>
59901
59902         * lib/vasnprintf.c (snprintf): Undefine. Avoids an endless recursion.
59903
59904 2007-03-11  Bruno Haible  <bruno@clisp.org>
59905
59906         * gnulib-tool (func_create_megatestdir): Create also an autobuild
59907         script, for submission to autobuild.josefsson.org.
59908
59909 2007-03-10  Bruno Haible  <bruno@clisp.org>
59910
59911         * modules/canonicalize-lgpl-tests: New file.
59912         * tests/test-canonicalize-lgpl.sh: New file.
59913         * tests/test-canonicalize-lgpl.c: New file.
59914
59915         * modules/c-strcase-tests: New file.
59916         * tests/test-c-strcase.sh: New file.
59917         * tests/test-c-strcasecmp.c: New file.
59918         * tests/test-c-strncasecmp.c: New file.
59919
59920         * modules/atexit-tests: New file.
59921         * tests/test-atexit.sh: New file.
59922         * tests/test-atexit.c: New file.
59923
59924 2007-03-10  Bruno Haible  <bruno@clisp.org>
59925
59926         * tests/test-binary-io.sh: Use temporary filenames that are not so
59927         likely to clash with those of other tests (in a parallel make).
59928         * tests/test-binary-io.c: Likewise.
59929
59930 2007-03-10  Bruno Haible  <bruno@clisp.org>
59931
59932         * lib/fseterr.c (fseterr): Port to Solaris/SPARC64. Deactivate the
59933         fallback; use #error instead.
59934         Suggested by Simon Josefsson.
59935
59936 2007-03-10  Bruno Haible  <bruno@clisp.org>
59937
59938         * gnulib-tool (func_create_testdir): Treat MOSTLYCLEANFILES like
59939         CLEANFILES. Put spaces in each line of $cleaned_files, not only the
59940         first and the last.
59941
59942 2007-03-10  Bruno Haible  <bruno@clisp.org>
59943
59944         * lib/stdint_.h (uint_least64_t): Fix typo in last patch.
59945
59946 2007-03-10  Bruno Haible  <bruno@clisp.org>
59947
59948         * modules/snprintf-posix-tests (EXTRA_DIST): New variable. Needed for
59949         "make distcheck".
59950         * modules/sprintf-posix-tests (EXTRA_DIST): Likewise.
59951         * modules/vsnprintf-posix-tests (EXTRA_DIST): Likewise.
59952         * modules/vsprintf-posix-tests (EXTRA_DIST): Likewise.
59953
59954 2007-03-10  Bruno Haible  <bruno@clisp.org>
59955
59956         * modules/allocsa-tests (test_allocsa_SOURCES): Remove redundant
59957         variable.
59958         * modules/dirname-tests (test_dirname_SOURCES): Remove redundant
59959         variable.
59960
59961 2007-03-09  Eric Blake  <ebb9@byu.net>
59962         and Matthew Woehlke  <mw_triad@users.sourceforge.net>  (tiny change)
59963
59964         * lib/stdint_.h (int64_t, uint64_t): Don't undefine if 64-bit
59965         types are not being provided by gnulib.
59966         (GL_INT64_T, GL_UINT64_T): New witnesses of whether gnulib 64-bit
59967         types are supported.
59968
59969 2007-03-10  Bruno Haible  <bruno@clisp.org>
59970
59971         * lib/stdio_.h (__attribute__): New macro.
59972         (fprintf, vfprintf, printf, vprintf, snprintf, vsnprintf, sprintf,
59973         vsprintf): Specify __attribute__ __format__ for GCC.
59974         Suggested by Eric Blake.
59975
59976 2007-03-09  Bruno Haible  <bruno@clisp.org>
59977
59978         * modules/printf-posix-tests: New file.
59979         * tests/test-printf-posix.sh: New file.
59980         * tests/test-printf-posix.c: New file.
59981
59982         * modules/printf-posix: New file.
59983         * lib/printf.c: New file.
59984         * m4/printf-posix-rpl.m4: New file.
59985         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_PRINTF_POSIX,
59986         REPLACE_PRINTF.
59987         * lib/stdio_.h (printf): New declaration.
59988         (format, __format__, ____printf____, ____scanf____, ____strftime____,
59989         ____strfmon____): New macros.
59990         * modules/stdio (Makefile.am): Substitute also GNULIB_PRINTF_POSIX,
59991         REPLACE_PRINTF.
59992
59993 2007-03-09  Bruno Haible  <bruno@clisp.org>
59994
59995         * tests/test-vasnprintf-posix2.sh: New file.
59996         * tests/test-vasnprintf-posix2.c: New file.
59997         * modules/vasnprintf-posix-tests (Files): Add them and m4/locale-fr.m4.
59998         (configure.ac): Invoke gt_LOCALE_FR and gt_LOCALE_FR_UTF8.
59999         (Makefile.am): Activate test-vasnprintf-posix2.sh.
60000
60001         * lib/vasnprintf.c (VASNPRINTF): For the 'a' and 'A' directives, use
60002         a locale dependent decimal point, rather than always '.'.
60003
60004 2007-03-09  Eric Blake  <ebb9@byu.net>
60005
60006         * lib/stdlib_.h (EXIT_FAILURE): GNU code expects this to be 1, in
60007         spite of platforms like Tandem/NSK that define it to -1.
60008
60009 2007-03-08  Bruno Haible  <bruno@clisp.org>
60010
60011         * modules/vprintf-posix-tests: New file.
60012         * tests/test-vprintf-posix.sh: New file.
60013         * tests/test-vprintf-posix.c: New file.
60014         * tests/test-printf-posix.h: New file.
60015
60016         * modules/vprintf-posix: New file.
60017         * lib/vprintf.c: New file.
60018         * m4/vprintf-posix.m4: New file.
60019         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VPRINTF_POSIX,
60020         REPLACE_VPRINTF.
60021         * lib/stdio_.h (vprintf): New declaration.
60022         * modules/stdio (Makefile.am): Substitute also GNULIB_VPRINTF_POSIX,
60023         REPLACE_VPRINTF.
60024
60025 2007-03-08  Bruno Haible  <bruno@clisp.org>
60026
60027         * modules/fprintf-posix-tests: New file.
60028         * tests/test-fprintf-posix.sh: New file.
60029         * tests/test-fprintf-posix.c: New file.
60030
60031         * modules/fprintf-posix: New file.
60032         * lib/fprintf.c: New file.
60033         * m4/fprintf-posix.m4: New file.
60034         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FPRINTF_POSIX,
60035         REPLACE_FPRINTF.
60036         * lib/stdio_.h (fprintf): New declaration.
60037         * modules/stdio (Makefile.am): Substitute also GNULIB_FPRINTF_POSIX,
60038         REPLACE_FPRINTF.
60039
60040 2007-03-08  Bruno Haible  <bruno@clisp.org>
60041
60042         * modules/vfprintf-posix-tests: New file.
60043         * tests/test-vfprintf-posix.sh: New file.
60044         * tests/test-vfprintf-posix.c: New file.
60045         * tests/test-fprintf-posix.h: New file.
60046         * tests/test-fprintf-posix.out: New file.
60047
60048         * modules/vfprintf-posix: New file.
60049         * lib/vfprintf.c: New file.
60050         * m4/vfprintf-posix.m4: New file.
60051         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VFPRINTF_POSIX,
60052         REPLACE_VFPRINTF.
60053         * lib/stdio_.h (vfprintf): New declaration.
60054         * modules/stdio (Makefile.am): Substitute also GNULIB_VFPRINTF_POSIX,
60055         REPLACE_VFPRINTF.
60056
60057 2007-03-08  Bruno Haible  <bruno@clisp.org>
60058
60059         * lib/stdio_.h: Treat __need___FILE like __need_FILE.
60060
60061 2007-03-08  Bruno Haible  <bruno@clisp.org>
60062
60063         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Use 'case' statements
60064         instead of 'expr' invocations.
60065         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
60066         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
60067         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
60068         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
60069         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
60070         Suggested by Paul Eggert.
60071
60072 2007-03-08  Bruno Haible  <bruno@clisp.org>
60073
60074         * modules/fseterr-tests: New file.
60075         * tests/test-fseterr.c: New file.
60076
60077         * modules/fseterr: New file.
60078         * lib/fseterr.h: New file.
60079         * lib/fseterr.c: New file.
60080
60081 2007-03-08  Bruno Haible  <bruno@clisp.org>
60082
60083         * lib/fnmatch_.h: Convert tabs in the middle of lines to spaces.
60084         * lib/getopt_.h: Likewise.
60085         * lib/mbswidth.h: Likewise.
60086         * lib/setenv.h: Likewise.
60087         * lib/vasnprintf.h: Likewise.
60088         * lib/vasprintf.h: Likewise.
60089         * lib/verror.h: Likewise.
60090         * lib/xsetenv.h: Likewise.
60091         * lib/xvasprintf.h: Likewise.
60092
60093 2007-03-08  Jim Meyering  <jim@meyering.net>
60094
60095         * users.txt: Add parted.
60096
60097         * ChangeLog: Restore 1500 lines mistakenly removed from the end.
60098
60099 2007-03-07  Bruno Haible  <bruno@clisp.org>
60100
60101         * m4/printf.m4: Make the shell script snippets copy&pastable.
60102
60103 2007-03-02  Bruno Haible  <bruno@clisp.org>
60104
60105         * lib/netinet_in_.h: New file.
60106         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Test whether netinet/in.h
60107         is self-contained. Set ABSOLUTE_NETINET_IN_H, HAVE_NETINET_IN_H.
60108         * modules/netinet_in (Files): Add lib/netinet_in_.h.
60109         (Depends-on): Add absolute-header.
60110         (Makefile.am): Substitute ABSOLUTE_NETINET_IN_H, HAVE_NETINET_IN_H
60111         into netinet/in.h.
60112
60113 2007-03-03  Bruno Haible  <bruno@clisp.org>
60114
60115         * lib/sys_select_.h: New file.
60116         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SELECT): Test whether sys/select.h
60117         is self-contained. Set ABSOLUTE_SYS_SELECT_H, HAVE_SYS_SELECT_H.
60118         * modules/sys_select (Files): Add lib/sys_select_.h.
60119         (Depends-on): Add absolute-header.
60120         (Makefile.am): Substitute ABSOLUTE_SYS_SELECT_H, HAVE_SYS_SELECT_H
60121         into sys/select.h.
60122
60123 2007-03-02  Bruno Haible  <bruno@clisp.org>
60124
60125         * lib/socket_.h: If sys/socket.h exists, include that and <sys/types.h>
60126         before it. Turn HAVE_WINSOCK2_H and HAVE_WS2TCPIP_H into configute-time
60127         values.
60128         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Test also whether
60129         <sys/socket.h> is self-contained. Set ABSOLUTE_SYS_SOCKET_H,
60130         HAVE_SYS_SOCKET_H, HAVE_WINSOCK2_H, HAVE_WS2TCPIP_H.
60131         * modules/sys_socket (Depends-on): Add absolute-header.
60132         (Makefile.am): Substitute ABSOLUTE_SYS_SOCKET_H, HAVE_SYS_SOCKET_H,
60133         HAVE_WINSOCK2_H, HAVE_WS2TCPIP_H into sys/socket.h.
60134         (Include): Remove requirement of inclusion of <sys/types.h>.
60135
60136 2007-03-02  Bruno Haible  <bruno@clisp.org>
60137
60138         * lib/byteswap_.h (bswap_32): Fix formula.
60139
60140 2007-03-06  Bruno Haible  <bruno@clisp.org>
60141
60142         * modules/sprintf-posix-tests: New file.
60143         * tests/test-sprintf-posix.c: New file.
60144
60145         * modules/sprintf-posix: New file.
60146         * lib/sprintf.c: New file.
60147         * m4/sprintf-posix.m4: New file.
60148         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_SPRINTF_POSIX,
60149         REPLACE_SPRINTF.
60150         * lib/stdio_.h (sprintf): New declaration.
60151         * modules/stdio (Makefile.am): Substitute also GNULIB_SPRINTF_POSIX,
60152         REPLACE_SPRINTF.
60153
60154 2007-03-06  Bruno Haible  <bruno@clisp.org>
60155
60156         * modules/vsprintf-posix-tests: New file.
60157         * tests/test-vsprintf-posix.c: New file.
60158         * tests/test-sprintf-posix.h: New file.
60159
60160         * modules/vsprintf-posix: New file.
60161         * lib/vsprintf.c: New file.
60162         * m4/vsprintf-posix.m4: New file.
60163         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VSPRINTF_POSIX,
60164         REPLACE_VSPRINTF.
60165         * lib/stdio_.h (vsprintf): New declaration.
60166         * modules/stdio (Makefile.am): Substitute also GNULIB_VSPRINTF_POSIX,
60167         REPLACE_VSPRINTF.
60168
60169 2007-03-06  Bruno Haible  <bruno@clisp.org>
60170
60171         * modules/vsnprintf (Depend-on): Remove minmax.
60172
60173 2007-03-06  Bruno Haible  <bruno@clisp.org>
60174
60175         * modules/snprintf-posix-tests: New file.
60176         * tests/test-snprintf-posix.c: New file.
60177
60178         * modules/snprintf-posix: New file.
60179         * m4/snprintf-posix.m4: New file.
60180         * m4/snprintf.m4 (gl_REPLACE_SNPRINTF): New macro, extracted from
60181         gl_FUNC_SNPRINTF.
60182         (gl_FUNC_SNPRINTF): Invoke it.
60183         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also REPLACE_SNPRINTF.
60184         * lib/stdio_.h (snprintf): Define as a replacement if REPLACE_SNPRINTF
60185         is set.
60186         * modules/stdio (Makefile.am): Substitute also REPLACE_SNPRINTF.
60187
60188 2007-03-06  Bruno Haible  <bruno@clisp.org>
60189
60190         * modules/vsnprintf-posix-tests: New file.
60191         * tests/test-vsnprintf-posix.c: New file.
60192         * tests/test-snprintf-posix.h: New file.
60193
60194         * modules/vsnprintf-posix: New file.
60195         * m4/vsnprintf-posix.m4: New file.
60196         * m4/vsnprintf.m4 (gl_REPLACE_VSNPRINTF): New macro, extracted from
60197         gl_FUNC_VSNPRINTF.
60198         (gl_FUNC_VSNPRINTF): Invoke it.
60199         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also REPLACE_VSNPRINTF.
60200         * lib/stdio_.h (vsnprintf): Define as a replacement if
60201         REPLACE_VSNPRINTF is set.
60202         * modules/stdio (Makefile.am): Substitute also REPLACE_VSNPRINTF.
60203
60204 2007-03-06  Bruno Haible  <bruno@clisp.org>
60205
60206         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): Test for vasnprintf here.
60207         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): ... not here.
60208
60209 2007-03-06  Bruno Haible  <bruno@clisp.org>
60210
60211         * lib/math_.h (acosl): Declare also if HAVE_DECL_ACOSL is set.
60212         (asinl): Declare also if HAVE_DECL_ASINL is set.
60213         (atanl): Declare also if HAVE_DECL_ATANL is set.
60214         (ceill): Declare also if HAVE_DECL_CEILL is set.
60215         (cosl): Declare also if HAVE_DECL_COSL is set.
60216         (expl): Declare also if HAVE_DECL_EXPL is set.
60217         (floorl): Declare also if HAVE_DECL_FLOORL is set.
60218         (frexpl): Declare also if HAVE_DECL_FREXPL is set.
60219         (ldexpl): Declare also if HAVE_DECL_LDEXPL is set.
60220         (logl): Declare also if HAVE_DECL_LOGL is set.
60221         (sinl): Declare also if HAVE_DECL_SINL is set.
60222         (sqrtl): Declare also if HAVE_DECL_SQRTL is set.
60223         (tanl): Declare also if HAVE_DECL_TANL is set.
60224         * modules/math (Makefile.am): Substitute the values of HAVE_DECL_*.
60225         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Set HAVE_DECL_* to 1.
60226         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Fix tests for the
60227         declaration of frexpl, ldexpl.
60228         * modules/printf-frexpl (Depends-on): Add math.
60229         * lib/printf-frexp.c (frexpl, ldexpl): Undo last change.
60230
60231 2007-03-05  Bruno Haible  <bruno@clisp.org>
60232
60233         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Also test whether
60234         frexpl and ldexpl are declared.
60235         * lib/printf-frexp.c (frexpl, ldexpl): Provide fallback declarations.
60236
60237 2007-03-05  Bruno Haible  <bruno@clisp.org>
60238
60239         * gnulib-tool (func_get_automake_snippet): Don't synthesize an
60240         EXTRA_lib_SOURCES augmentation for the relocatable-prog-wrapper module.
60241
60242 2007-03-05  Bruno Haible  <bruno@clisp.org>
60243
60244         * lib/stdio_.h: Include <stddef.h>.
60245
60246 2007-03-05  Bruno Haible  <bruno@clisp.org>
60247
60248         * m4/printf.m4 (gl_SNPRINTF_DIRECTIVE_N): New macro.
60249
60250 2007-03-05  Bruno Haible  <bruno@clisp.org>
60251
60252         * m4/printf.m4: Update with info about OpenBSD 3.9, HP-UX 10.20,
60253         NetBSD 4, from Ralf Wildenhues.
60254
60255 2007-03-04  Bruno Haible  <bruno@clisp.org>
60256
60257         * lib/vasprintf.h: Update #if logic for the case when the functions
60258         exist but are overridden.
60259
60260 2007-03-04  Bruno Haible  <bruno@clisp.org>
60261
60262         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Exclude two buggy
60263         implementations: glibc-2.4 and MacOS X 10.3.
60264         * tests/test-vasnprintf-posix.c (test_function): Test also the case
60265         that exhibits the bugs in glibc-2.4 and MacOS X 10.3.
60266         * tests/test-vasprintf-posix.c (test_function): Likewise.
60267
60268 2007-03-04  Bruno Haible  <bruno@clisp.org>
60269
60270         * modules/vasprintf-posix-tests: New file.
60271         * tests/test-vasprintf-posix.c: New file.
60272
60273         * modules/vasprintf-posix: New file.
60274         * lib/vasprintf.h (asprintf, vasprintf): Rename if REPLACE_VASPRINTF is
60275         defined.
60276         * m4/vasprintf-posix.m4: New file.
60277         * m4/vasprintf.m4 (gl_REPLACE_VASPRINTF): New macro, extracted from
60278         gl_FUNC_VASPRINTF.
60279         (gl_FUNC_VASPRINTF): Invoke it.
60280         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): Define REPLACE_VASNPRINTF
60281         here.
60282         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Not here.
60283
60284 2007-03-04  Bruno Haible  <bruno@clisp.org>
60285
60286         * lib/sys_time_.h: Rename GETTIMEOFDAY_REPLACEMENT to
60287         REPLACE_GETTIMEOFDAY.
60288         * modules/sys_time (Makefile.am): Likewise.
60289         * m4/sys_time_h.m4: Likewise.
60290         * m4/gettimeofday.m4: Likewise.
60291
60292 2007-03-04  Bruno Haible  <bruno@clisp.org>
60293
60294         * modules/vasnprintf-posix-tests: New file.
60295         * tests/test-vasnprintf-posix.c: New file.
60296
60297         * modules/vasnprintf-posix: New file.
60298         * lib/vasnprintf.c: Include isnan.h, isnanl.h, printf-frexp.h,
60299         printf-frexpl.h.
60300         (VASNPRINTF): Handle the 'a' and 'A' directives here, if needed.
60301         * lib/vasnprintf.h (asnprintf, vasnprintf): Rename if
60302         REPLACE_VASNPRINTF is defined.
60303         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): New macro, extracted from
60304         gl_FUNC_VASNPRINTF.
60305         (gl_FUNC_VASNPRINTF): Invoke it.
60306         * m4/vasnprintf-posix.m4: New file.
60307         * m4/printf.m4: New file.
60308
60309 2007-03-04  Bruno Haible  <bruno@clisp.org>
60310
60311         Compile progreloc.c only if --enable-relocatable is specified.
60312         * m4/relocatable.m4 (gl_RELOCATABLE): Arrange to compile progreloc.c
60313         if --enable-relocatable was specified.
60314         * modules/relocatable-prog (Makefile.am): Remove progreloc.c from
60315         lib_SOURCES.
60316
60317 2007-03-04  Jim Meyering  <jim@meyering.net>
60318
60319         * lib/acl.c (ACL_NOT_WELL_SUPPORTED): New macro.
60320         Use it consistently, rather than enumerating errno constants.
60321
60322 2007-03-04  Bruno Haible  <bruno@clisp.org>
60323
60324         * modules/xvasprintf-tests: New file.
60325         * tests/test-xvasprintf.c: New file.
60326
60327         * modules/vasprintf-tests: New file.
60328         * tests/test-vasprintf.c: New file.
60329
60330         * modules/vasnprintf-tests: New file.
60331         * tests/test-vasnprintf.c: New file.
60332
60333         * modules/vsnprintf-tests: New file.
60334         * tests/test-vsnprintf.c: New file.
60335
60336         * modules/snprintf-tests: New file.
60337         * tests/test-snprintf.c: New file.
60338
60339 2007-03-04  Bruno Haible  <bruno@clisp.org>
60340
60341         Compile relocatable.c only if --enable-relocatable is specified.
60342         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY_BODY): Renamed from
60343         gl_RELOCATABLE_LIBRARY.
60344         (gl_RELOCATABLE_LIBRARY, gl_RELOCATABLE_LIBRARY_SEPARATE): New macros.
60345         * m4/relocatable.m4 (gl_RELOCATABLE): Invoke gl_RELOCATABLE_LIBRARY.
60346         (gl_RELOCATABLE_BODY): Require gl_RELOCATABLE_LIBRARY_BODY instead of
60347         gl_RELOCATABLE_LIBRARY.
60348         * modules/relocatable-lib (configure.ac): Invoke gl_RELOCATABLE_LIBRARY.
60349         (Makefile.am): Remove lib_SOURCES.
60350         * modules/relocatable-lib-lgpl (configure.ac): Invoke
60351         gl_RELOCATABLE_LIBRARY.
60352         (Makefile.am): Remove lib_SOURCES.
60353         * modules/relocatable-prog (Makefile.am): Don't compile relocatable.c
60354         always.
60355         * modules/relocatable-prog-wrapper (configure.ac): Invoke
60356         gl_RELOCATABLE_LIBRARY_SEPARATE instead of gl_RELOCATABLE_LIBRARY.
60357
60358 2007-03-04  Bruno Haible  <bruno@clisp.org>
60359
60360         * modules/argmatch-tests: New file.
60361         * tests/test-argmatch.c: New file.
60362
60363         * tests/test-allocsa.c (main): Halve the number of loop runs.
60364
60365         * modules/alloca-opt-tests: New file.
60366         * tests/test-alloca-opt.c: New file.
60367
60368 2007-03-04  Jim Meyering  <jim@meyering.net>
60369
60370         Work around difference between Linux ACLs and Solaris 10 ZFS.
60371         * lib/acl.c (set_acl): Revert to using chmod_or_fchmod also
60372         for EINVAL.
60373
60374 2007-03-03  Bruno Haible  <bruno@clisp.org>
60375
60376         * modules/relocatable-prog (Depends-on): Add back progreloc's
60377         dependencies: canonicalize-lgpl, xalloc, xreadlink, stdbool, unistd.
60378
60379 2007-03-03  Bruno Haible  <bruno@clisp.org>
60380
60381         * modules/relocatable-lib-lgpl: Renamed from modules/relocatable-lib.
60382         * modules/relocatable-lib: New file.
60383
60384 2007-03-03  Bruno Haible  <bruno@clisp.org>
60385
60386         * modules/relocatable-prog: Renamed from modules/relocatable.
60387         * doc/relocatable-maint.texi: Talk about module 'relocatable-prog'.
60388
60389 2007-03-03  Bruno Haible  <bruno@clisp.org>
60390
60391         * modules/relocatable-script (Files): Add doc/relocatable.texi,
60392         m4/relocatable-lib.m4.
60393         (Depends-on): Remove 'relocatable'.
60394         (configure.ac): Add gl_RELOCATABLE_NOP.
60395
60396 2007-03-03  Bruno Haible  <bruno@clisp.org>
60397
60398         * modules/relocatable-prog-wrapper: New file.
60399         * modules/relocatable (Depends-on): Add it. Remove all other
60400         dependencies except progname.
60401         (Files): Remove build-aux/install-reloc, lib/relocwrapper.c.
60402
60403         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): New macro.
60404         (gl_FUNC_STRERROR): Nop.
60405         * lib/strerror.c: Compile the file only if !HAVE_STRERROR.
60406
60407         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): New macro.
60408         * lib/setenv.c: Compile the file only if _LIBC || !HAVE_SETENV.
60409
60410         * m4/readlink.m4 (gl_FUNC_READLINK_SEPARATE): New macro.
60411         (gl_FUNC_READLINK): Update.
60412
60413         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL_SEPARATE): New macro.
60414
60415 2007-03-03  Bruno Haible  <bruno@clisp.org>
60416
60417         * lib/xreadlink.c: Include <unistd.h> unconditionally.
60418         * modules/xreadlink (Depends-on): Add unistd.
60419         * modules/xreadlink-with-size (Depends-on): Likewise.
60420
60421 2007-03-03  Bruno Haible  <bruno@clisp.org>
60422
60423         * m4/setenv.m4 (gl_FUNC_SETENV, gl_FUNC_UNSETENV): New macros,
60424         extracted from gt_FUNC_SETENV.
60425         (gt_FUNC_SETENV): Remove macro.
60426         * modules/setenv (configure.ac): Add gl_FUNC_SETENV, gl_FUNC_UNSETENV,
60427         remove gt_FUNC_SETENV.
60428
60429 2007-03-03  Bruno Haible  <bruno@clisp.org>
60430
60431         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY): Define
60432         ENABLE_RELOCATABLE here.
60433         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Don't define it here.
60434
60435 2007-03-03  Bruno Haible  <bruno@clisp.org>
60436
60437         * modules/rbtreehash-list-tests (Depends-on): Add progname.
60438         * tests/test-rbtreehash_list.c: Include progname.h.
60439         (main): Call set_program_name.
60440
60441         * modules/rbtree-oset-tests (Depends-on): Add progname.
60442         * tests/test-rbtree_oset.c: Include progname.h.
60443         (main): Call set_program_name.
60444
60445         * modules/rbtree-list-tests (Depends-on): Add progname.
60446         * tests/test-rbtree_list.c: Include progname.h.
60447         (main): Call set_program_name.
60448
60449         * modules/linked-list-tests (Depends-on): Add progname.
60450         * tests/test-linked_list.c: Include progname.h.
60451         (main): Call set_program_name.
60452
60453 2007-03-03  Bruno Haible  <bruno@clisp.org>
60454
60455         * lib/glob-libc.h (_Restrict_): New macro, copied from lib/regex.h.
60456         All uses of __restrict changed to _Restrict_.
60457         * lib/glob_.h (__restrict): Remove macro.
60458
60459 2007-03-02  Bruno Haible  <bruno@clisp.org>
60460
60461         * modules/gettext (configure.ac): Require gettext infrastructure
60462         from version 0.16.1.
60463
60464 2007-03-02  Bruno Haible  <bruno@clisp.org>
60465
60466         * modules/linkedhash-list-tests (Depends-on): Add progname.
60467         * tests/test-linkedhash_list.c: Include progname.h.
60468         (main): Call set_program_name.
60469
60470         * modules/carray-list-tests (Depends-on): Add progname.
60471         * tests/test-carray_list.c: Include progname.h.
60472         (main): Call set_program_name.
60473
60474         * modules/avltreehash-list-tests (Depends-on): Add progname.
60475         * tests/test-avltreehash_list.c: Include progname.h.
60476         (main): Call set_program_name.
60477
60478         * modules/avltree-oset-tests (Depends-on): Add progname.
60479         * tests/test-avltree_oset.c: Include progname.h.
60480         (main): Call set_program_name.
60481
60482         * modules/avltree-list-tests (Depends-on): Add progname.
60483         * tests/test-avltree_list.c: Include progname.h.
60484         (main): Call set_program_name.
60485
60486         * modules/array-oset-tests (Depends-on): Add progname.
60487         * tests/test-array_oset.c: Include progname.h.
60488         (main): Call set_program_name.
60489
60490         * modules/array-list-tests (Depends-on): Add progname.
60491         * tests/test-array_list.c: Include progname.h.
60492         (main): Call set_program_name.
60493
60494         * modules/argp-tests (Depends-on): Add progname.
60495         * tests/test-argp.c: Include argp.h first. Include progname.h.
60496         (main): Call set_program_name.
60497
60498 2007-03-02  Paul Eggert  <eggert@cs.ucla.edu>
60499
60500         * doc/gnulib-tool.texi (Initial import): Reword description of
60501         _FILE_OFFSET_BITS and _GNU_SOURCE, since they sometimes have a
60502         limited effect even if defined after the first system include.
60503
60504 2007-03-01  Bruno Haible  <bruno@clisp.org>
60505
60506         * build-aux/config.libpath: Update to libtool-1.5.22.
60507         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
60508
60509 2007-03-01  Bruno Haible  <bruno@clisp.org>
60510
60511         * doc/relocatable-maint.texi: Recommend to set foo_CPPFLAGS, not
60512         foo_CFLAGS.
60513         Reported by Ralf Wildenhues.
60514
60515 2007-03-01  Bruno Haible  <bruno@clisp.org>
60516
60517         * build-aux/install-reloc: Remove object files left over by some
60518         compilers.
60519         Reported by Ralf Wildenhues.
60520
60521 2007-03-01  Bruno Haible  <bruno@clisp.org>
60522
60523         * build-aux/install-reloc: Break long lines.
60524
60525 2007-03-01  Bruno Haible  <bruno@clisp.org>
60526
60527         * doc/relocatable.texi: Document that it may not work on OpenBSD.
60528         Reported by Ralf Wildenhues.
60529
60530 2007-03-01  Bruno Haible  <bruno@clisp.org>
60531
60532         * doc/gnulib-tool.texi (Initial import): Remove paragraph about
60533         include ordering constraints.
60534
60535 2007-03-01  Paul Eggert  <eggert@cs.ucla.edu>
60536
60537         Followup to the 2007-02-12 patch, using suggestions from Bruno Haible in
60538         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00136.html>.
60539         * doc/gnulib-tool.texi (Initial import): Mention _FILE_OFFSET_BITS
60540         as another example.
60541         * lib/time_.h: Fix misspelling.
60542         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
60543         Require gl_HEADER_TIME_H_DEFAULTS.
60544         * m4/strptime.m4 (gl_FUNC_STRPTIME): Likewise.
60545         * m4/time_r.m4 (gl_TIME_R): Likewise.
60546         * m4/timegm.m4 (gl_FUNC_TIMEGM): Likewise.
60547
60548 2007-03-01  Bruno Haible  <bruno@clisp.org>
60549
60550         * m4/utimecmp.m4 (gl_UTIMECMP): Don't require gl_TIMESPEC.
60551         * m4/utimens.m4 (gl_UTIMENS): Likewise.
60552
60553 2007-03-01  Jim Meyering  <jim@meyering.net>
60554
60555         * modules/xreadlink (Maintainer): Add my name.
60556         * modules/xreadlink-with-size (Depends-on): Alphabetize.
60557
60558 2007-02-26  Ben Pfaff  <blp@cs.stanford.edu>
60559             Bruno Haible  <bruno@clisp.org>
60560
60561         * build-aux/install-reloc: Compile also c-ctype.c.
60562         * build-aux/relocatable.sh.in: New file.
60563         * doc/relocatable.texi: New file.
60564         * doc/relocatable-maint.texi: New file.
60565         * doc/gnulib.texi: Include relocatable-maint.texi.
60566         * lib/progreloc.c: Include unistd.h unconditionally.
60567         * lib/relocwrapper.c: Include unistd.h unconditionally.
60568         Include c-ctype.h.
60569         (add_dotbin): Use c_tolower.
60570         * m4/relocatable-lib.m4: New file, extracted from m4/relocatable.m4.
60571         (gl_RELOCATABLE_LIBRARY): Renamed from AC_RELOCATABLE_LIBRARY.
60572         (gl_RELOCATABLE_NOP): Renamed from AC_RELOCATABLE_NOP.
60573         * m4/relocatable.m4 (AC_RELOCATABLE_LIBRARY, AC_RELOCATABLE_NOP): Move
60574         to m4/relocatable-lib.m4.
60575         (gl_RELOCATABLE): Renamed from AC_RELOCATABLE. Set also
60576         RELOCATABLE_CONFIG_H_DIR, RELOCATABLE_SRC_DIR, RELOCATABLE_BUILD_DIR.
60577         (gl_RELOCATABLE_BODY): Renamed from AC_RELOCATABLE_BODY. Don't
60578         require obsolete macro AC_EXEEXT. Don't check for unistd.h. Don't set
60579         SET_RELOCATABLE. Instead set RELOCATABLE_LDFLAGS, INSTALL_PROGRAM_ENV.
60580         * modules/relocatable: New file.
60581         * modules/relocatable-lib: New file.
60582         * modules/relocatable-script: New file.
60583
60584 2007-02-28  Bruno Haible  <bruno@clisp.org>
60585
60586         Import --enable-relocatable infrastructure.
60587         * build-aux/config.libpath: New file, from GNU gettext.
60588         * build-aux/install-reloc: New file, from GNU gettext.
60589         * build-aux/reloc-ldflags: New file, from GNU gettext.
60590         * lib/relocatable.h: New file, from GNU gettext.
60591         * lib/relocatable.c: New file, from GNU gettext.
60592         * lib/relocwrapper.c: New file, from GNU gettext.
60593         * m4/relocatable.m4: New file, from GNU gettext.
60594
60595 2007-02-28  Bruno Haible  <bruno@clisp.org>
60596
60597         * MODULES.html.sh (File system functions): Add xreadlink-with-size.
60598
60599         * modules/xreadlink: New file, from GNU gettext with modifications.
60600         * lib/xreadlink.c: New file, from GNU gettext.
60601         * lib/xreadlink.h: Add comments.
60602         (xreadlink): New declaration.
60603
60604         * modules/xreadlink-with-size: Renamed from modules/xreadlink.
60605         (Files): Remove m4/xreadlink.m4. Replace lib/xreadlink.c with
60606         lib/xreadlink-with-size.c.
60607         (configure.ac): Remove gl_XREADLINK invocation.
60608         (Makefile.am): Augment lib_SOURCES.
60609         * m4/xreadlink.m4: Remove file.
60610         * lib/xreadlink-with-size.c: Renamed from lib/xreadlink.c.
60611         (xreadlink_with_size): Renamed from xreadink.
60612         * lib/xreadlink.h (xreadlink_with_size): Renamed from xreadink.
60613         * modules/canonicalize (Depends-on): Replace xreadlink with
60614         xreadlink-with-size.
60615         * lib/canonicalize.c (canonicalize_filename_mode): Update.
60616
60617 2007-02-25  Jim Meyering  <jim@meyering.net>
60618
60619         * build-aux/announce-gen: When complaining about excess arguments,
60620         list them.
60621
60622 2007-02-25  Paul Eggert  <eggert@cs.ucla.edu>
60623
60624         * README: Document signed integer overflow situation more
60625         accurately.
60626
60627 2007-02-25  Bruno Haible  <bruno@clisp.org>
60628
60629         * lib/vasnprintf.c (VASNPRINTF): Fix estimate of size needed for a
60630         'a' or 'A' conversion.
60631
60632 2007-02-25  Bruno Haible  <bruno@clisp.org>
60633
60634         * modules/filename: Renamed from modules/pathname.
60635         (Files): Replace lib/pathname.h with lib/filename.h. Replace
60636         lib/concatpath.c with lib/concat-filename.c.
60637         (Makefile.am): Update.
60638         (Include): Replace pathname.h with filename.h.
60639         * lib/filename.h: Renamed from lib/pathname.h.
60640         (concatenated_filename): Renamed from concatenated_pathname.
60641         * lib/concat-filename.c: Renamed from lib/concatpath.c.
60642         (concatenated_filename): Renamed from concatenated_pathname.
60643         * lib/findprog.c: Include filename.h instead of pathname.h.
60644         (find_in_path): Update.
60645         * lib/javacomp.c: Include filename.h instead of pathname.h.
60646         (is_envjavac_gcj43_usable, is_envjavac_oldgcj_14_14_usable,
60647         is_envjavac_oldgcj_14_13_usable, is_envjavac_nongcj_usable,
60648         is_gcj_present, is_gcj43_usable, is_oldgcj_14_14_usable,
60649         is_oldgcj_14_13_usable, is_javac_usable): Update.
60650         * lib/javaexec.c: Include filename.h instead of pathname.h.
60651         (execute_java_class): Update.
60652         * modules/findprog: Update.
60653         * modules/javacomp: Update.
60654         * modules/javaexec: Update.
60655         * MODULES.html.sh (File system functions): Add 'filename', remove
60656         'pathname'.
60657
60658 2007-02-25  Bruno Haible  <bruno@clisp.org>
60659
60660         * modules/printf-frexpl-tests: New file.
60661         * tests/test-printf-frexpl.c: New file.
60662
60663         * modules/printf-frexpl: New file.
60664         * lib/printf-frexpl.h: New file.
60665         * lib/printf-frexpl.c: New file.
60666         * m4/printf-frexpl.m4: New file.
60667
60668 2007-02-25  Bruno Haible  <bruno@clisp.org>
60669
60670         * modules/printf-frexp-tests: New file.
60671         * tests/test-printf-frexp.c: New file.
60672
60673         * modules/printf-frexp: New file.
60674         * lib/printf-frexp.h: New file.
60675         * lib/printf-frexp.c: New file.
60676         * m4/printf-frexp.m4: New file.
60677
60678 2007-02-25  Bruno Haible  <bruno@clisp.org>
60679
60680         Assume automake >= 1.10 for the tests.
60681         * modules/arcfour-tests (TESTS): Remove $(EXEEXT) suffix.
60682         * modules/arctwo-tests: Likewise.
60683         * modules/argp-tests: Likewise.
60684         * modules/avltree-list-tests: Likewise.
60685         * modules/avltree-oset-tests: Likewise.
60686         * modules/avltreehash-list-tests: Likewise.
60687         * modules/carray-list-tests: Likewise.
60688         * modules/crc-tests: Likewise.
60689         * modules/des-tests: Likewise.
60690         * modules/gc-arcfour-tests: Likewise.
60691         * modules/gc-arctwo-tests: Likewise.
60692         * modules/gc-des-tests: Likewise.
60693         * modules/gc-hmac-md5-tests: Likewise.
60694         * modules/gc-hmac-sha1-tests: Likewise.
60695         * modules/gc-md2-tests: Likewise.
60696         * modules/gc-md4-tests: Likewise.
60697         * modules/gc-md5-tests: Likewise.
60698         * modules/gc-pbkdf2-sha1-tests: Likewise.
60699         * modules/gc-rijndael-tests: Likewise.
60700         * modules/gc-sha1-tests: Likewise.
60701         * modules/gc-tests: Likewise.
60702         * modules/getaddrinfo-tests: Likewise.
60703         * modules/hmac-md5-tests: Likewise.
60704         * modules/hmac-sha1-tests: Likewise.
60705         * modules/linked-list-tests: Likewise.
60706         * modules/linkedhash-list-tests: Likewise.
60707         * modules/lock-tests: Likewise.
60708         * modules/md2-tests: Likewise.
60709         * modules/md4-tests: Likewise.
60710         * modules/md5-tests: Likewise.
60711         * modules/rbtree-list-tests: Likewise.
60712         * modules/rbtree-oset-tests: Likewise.
60713         * modules/rbtreehash-list-tests: Likewise.
60714         * modules/read-file-tests: Likewise.
60715         * modules/rijndael-tests: Likewise.
60716         * modules/stdint-tests: Likewise.
60717         * modules/tls-tests: Likewise.
60718
60719 2007-02-24  Bruno Haible  <bruno@clisp.org>
60720
60721         * lib/isnanl.h (isnanl): Define through isnan if isnan is a macro.
60722         * m4/isnan.m4 (gl_FUNC_ISNAN_NO_LIBM): Don't check for isnan as a
60723         function; instead check whether isnan with a double argument links.
60724         * m4/isnanl.m4 (gl_FUNC_ISNANL_NO_LIBM): Don't check for isnanl as a
60725         function; instead check whether isnan with a 'long double' argument
60726         links.
60727         Reported by Eric Blake <ebb9@byu.net>.
60728
60729 2007-02-24  Bruno Haible  <bruno@clisp.org>
60730
60731         * lib/isnan.c: Support the 'long double' case if USE_LONG_DOUBLE is
60732         defined.
60733         * lib/isnanl.c: Remove all code. Just include isnan.c.
60734         * modules/isnanl-nolibm (Files): Add lib/isnan.c.
60735
60736 2007-02-25  Jim Meyering  <jim@meyering.net>
60737
60738         Avoid conflicting types for 'unsetenv' on FreeBSD.
60739         * lib/putenv.c (_unsetenv): Rename from "unsetenv", to avoid
60740         conflicting with FreeBSD's (5.0 and 6.1) function declaration
60741         in stdlib.h.
60742
60743 2007-02-24  Bruno Haible  <bruno@clisp.org>
60744
60745         * modules/isnanl-nolibm-tests: New file.
60746         * tests/test-isnanl.c: New file.
60747
60748         * modules/isnanl-nolibm: New file.
60749         * lib/isnanl.h: New file.
60750         * lib/isnanl.c: New file.
60751         * m4/isnanl.m4: New file.
60752
60753 2007-02-24  Bruno Haible  <bruno@clisp.org>
60754
60755         * modules/isnan-nolibm-tests: New file.
60756         * tests/test-isnan.c: New file.
60757
60758         * modules/isnan-nolibm: New file.
60759         * lib/isnan.h: New file.
60760         * lib/isnan.c: New file.
60761         * m4/isnan.m4: New file.
60762
60763 2007-02-24  Bruno Haible  <bruno@clisp.org>
60764
60765         * lib/frexpl.c (frexpl): Correct return values for x = 1.0L. Don't
60766         assume that an exponent fits in 20 bits.
60767
60768 2007-02-24  Jim Meyering  <jim@meyering.net>
60769
60770         * m4/regex.m4: Update the description of the configure-time option,
60771         --without-included-regex, to state accurately what the defaults are,
60772         and perhaps to give people an idea why using this option is risky.
60773
60774 2007-02-24  Paul Eggert  <eggert@cs.ucla.edu>
60775
60776         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check for a nanosleep that
60777         loops on small arguments.  This attempts to avoid the problem
60778         Bruno Haible reported for AIX 4.3.2 in
60779         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00309.html>.
60780
60781 2007-02-23  Bruno Haible  <bruno@clisp.org>
60782
60783         * m4/perl.m4 (gl_PERL): Require version 5.005, not 5.003.
60784         Needed for help2man.
60785
60786 2007-02-23  Karl Berry  <karl@gnu.org>
60787
60788         * doc/gnulib-tool.texi (CVS Issues): mention that when foo_.h
60789         exists, foo.h should be cvs-ignored, not committed.
60790
60791 2007-02-23  Eric Blake  <ebb9@byu.net>
60792
60793         * lib/getdate.h (includes):  Include <time.h>, not "timespec.h".
60794         * lib/stat-time.h (includes): Likewise.
60795         * lib/utimecmp.c (includes): Likewise.
60796         * lib/utimens.h (includes): Likewise.
60797         * lib/getdate.y (includes): Also include "timespec.h" for use
60798         internal to the module.
60799         * modules/utimens (Depends-on): Revert yesterday's patch.
60800         * modules/nanosleep (Depends-on): Add missing dependency.
60801
60802 2007-02-22  Bruno Haible  <bruno@clisp.org>
60803
60804         * lib/glob.c: Don't include getlogin_r.h.
60805
60806 2007-02-22  Jim Meyering  <jim@meyering.net>
60807
60808         * modules/utimens (Depends-on): Add timespec, required for
60809         utimens.h's inclusion of timespec.h.
60810
60811 2007-02-21  Paul Eggert  <eggert@cs.ucla.edu>
60812
60813         * lib/getcwd.c (__getcwd): Undo previous change; it mishandled
60814         long unreadable paths in GNU/Linux.  Problem reported by Andreas
60815         Schwab in
60816         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00261.html>.
60817         I'll try to think of a better way to fix the Solaris problem.
60818
60819         * lib/getcwd.c (__getcwd): Don't assume getcwd (NULL, 0) works
60820         like glibc; on Solaris 10, it fails with errno == EINVAL.
60821         POSIX says the behavior is unspecified if the first argument is NULL,
60822         so play it safe and never pass NULL to the system getcwd.
60823
60824 2007-02-21  Jim Meyering  <jim@meyering.net>
60825
60826         * lib/gettimeofday.c (rpl_gettimeofday): Remove declaration
60827         of gettimeofday.  It would conflict with the one now always
60828         provided via sys_time_.h.  Reported by Matthew Woehlke, as
60829         an IRIX 6.5 build failure.
60830
60831 2007-02-20  Paul Eggert  <eggert@cs.ucla.edu>
60832
60833         Minor fixups to port to Solaris 10 with Sun C 5.8.
60834         * lib/getcwd.c [!_LIBC]: Include dirfd.h, since we use dirfd.
60835         * modules/getcwd (Depends-on): Add dirfd.
60836         * lib/putenv.c (putenv): #undef it.
60837         (rpl_putenv): New decl.
60838         (malloc, free): Include <stdlib.h> rather than prototyping separately.
60839
60840 2007-02-20  Bruno Haible  <bruno@clisp.org>
60841
60842         * modules/stdio-tests: New file.
60843         * tests/test-stdio.c: New file.
60844
60845         * modules/vsnprintf (Files): Remove lib/vsnprintf.h.
60846         (Depends-on): Add stdio.
60847         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
60848         (Include): Use <stdio.h> instead of vsnprintf.h.
60849         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Require gl_STDIO_H_DEFAULTS. Set
60850         HAVE_DECL_VSNPRINTF.
60851         * lib/vsnprintf.c: Include <stdio.h> instead of vsnprintf.h.
60852
60853         * modules/snprintf (Files): Remove lib/snprintf.h.
60854         (Depends-on): Add stdio.
60855         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
60856         (Include): Use <stdio.h> instead of snprintf.h.
60857         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Require gl_STDIO_H_DEFAULTS. Set
60858         HAVE_DECL_SNPRINTF.
60859         * lib/snprintf.c: Include <stdio.h> instead of snprintf.h.
60860         * lib/getaddrinfo.c: Likewise.
60861
60862         * modules/stdio: New file.
60863         * lib/stdio_.h: New file, incorporating snprintf.h and vsnprintf.h.
60864         * lib/snprintf.h: Remove file.
60865         * lib/vsnprintf.h: Remove file.
60866         * lib/.cppi-disable: Remove snprintf.h.
60867         * m4/stdio_h.m4: New file.
60868         * MODULES.html.sh (Support for systems lacking ISO C 99): Add stdio.
60869
60870 2007-02-20  Jim Meyering  <jim@meyering.net>
60871
60872         * lib/ftruncate.c [HAVE_CHSIZE]: Document that this code is
60873         used by e.g., mingw.  From Bruno Haible.
60874
60875 2007-02-19  Bruno Haible  <bruno@clisp.org>
60876
60877         * lib/string_.h: Use "#pragma GCC system_header" to suppress some gcc
60878         warnings.
60879         Reported by Ben Pfaff <blp@cs.stanford.edu>.
60880
60881 2007-02-19  Bruno Haible  <bruno@clisp.org>
60882
60883         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Don't request a complaint mail
60884         from mingw users.
60885
60886 2007-02-19  Bruno Haible  <bruno@clisp.org>
60887
60888         * lib/stdlib_.h: Use "#pragma GCC system_header" to suppress some gcc
60889         warnings.
60890         Reported by Joel E. Denny <jdenny@ces.clemson.edu> via Paul Eggert.
60891
60892 2007-02-19  Jim Meyering  <jim@meyering.net>
60893
60894         Don't use FD after a successful "fdopendir (fd)".
60895         * lib/getcwd.c (__getcwd) [AT_FDCWD]: fdopendir (fd) usually closes fd.
60896         Reset it by calling dirfd on the just-obtained DIR*.
60897
60898         * m4/ftruncate.m4: Adjust comment to give this module a 3-year reprieve.
60899         Prompted by a report from Bruno Haible that mingw lacks ftruncate.
60900
60901 2007-02-18  Bruno Haible  <bruno@clisp.org>
60902
60903         * lib/readlink.c: Include <unistd.h>.
60904         * m4/readlink.m4 (gl_FUNC_READLINK): Require gl_UNISTD_H_DEFAULTS. Set
60905         HAVE_READLINK.
60906         * modules/readlink (Depends-on): Add unistd.
60907         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
60908         (Include): Add <unistd.h>.
60909
60910         * lib/getlogin_r.h: Remove file.
60911         * lib/getlogin_r.c: Include <unistd.h> instead of getlogin_r.h.
60912         * m4/getlogin_r.m4 (gl_GETLOGIN_R_SUBSTITUTE): Remove macro.
60913         (gl_GETLOGIN_R): Inline it here. Require gl_UNISTD_H_DEFAULTS. Set
60914         HAVE_DECL_GETLOGIN_R.
60915         * modules/getlogin_r (Files): Remove lib/getlogin_r.h.
60916         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
60917         (Include): Use <unistd.h> instead of getlogin_r.h.
60918
60919         * lib/getcwd.h: Remove file.
60920         * lib/getcwd.c: Include <unistd.h> instead of getcwd.h.
60921         * lib/xgetcwd.c: Likewise.
60922         * m4/getcwd.m4 (gl_FUNC_GETCWD): Require gl_UNISTD_H_DEFAULTS. Set
60923         REPLACE_GETCWD. Don't define __GETCWD_PREFIX.
60924         * modules/getcwd (Files): Remove lib/getcwd.h.
60925         (Depends-on): Add unistd.
60926         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
60927         (Include): Use <unistd.h> instad of getcwd.h.
60928
60929         * lib/ftruncate.c: Include <unistd.h> first.
60930         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Require gl_UNISTD_H_DEFAULTS.
60931         Set HAVE_FTRUNCATE.
60932         * modules/ftruncate (Depends-on): Add unistd.
60933         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
60934
60935         * lib/fchdir.c: Include <unistd.h> first.
60936         * lib/dirent_.h: Test REPLACE_FCHDIR, not FCHDIR_REPLACEMENT.
60937         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_UNISTD_H_DEFAULTS instead
60938         of gl_HEADER_UNISTD_DEFAULTS. Set REPLACE_FCHDIR. Don't set UNISTD_H.
60939         * modules/fchdir (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
60940         (Makefile.am): Substitute also REPLACE_FCHDIR into dirent.h.
60941
60942         * lib/dup2.c: Include <unistd.h> first.
60943         * m4/dup2.m4 (gl_FUNC_DUP2): Require gl_UNISTD_H_DEFAULTS. Set
60944         HAVE_DUP2.
60945         * modules/dup2 (Depends-on): Add unistd.
60946         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
60947
60948         * lib/chown.c: Include <unistd.h> first. Undefine chown later.
60949         * m4/chown.m4 (gl_FUNC_CHOWN): Require gl_UNISTD_H_DEFAULTS. Set
60950         REPLACE_CHOWN. Don't define chown as a macro here.
60951         * modules/chown (Depends-on): Add unistd.
60952         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
60953
60954         * lib/unistd_.h: Test HAVE_UNISTD_H determined at configure time.
60955         Add definition for GL_LINK_WARNING.
60956         (chown, dup2): New declarations.
60957         (fchdir): Test REPLACE_FCHDIR, not FCHDIR_REPLACEMENT. Provide optional
60958         link warning.
60959         (ftruncate): New declaration.
60960         (getcwd): New declaration, taken from old getcwd.h.
60961         (getlogin_r): New declaration, taken from old getlogin_r.h.
60962         (readlink): New declaration.
60963         * m4/unistd_h.m4 (gl_UNISTD_H): Renamed from gl_HEADER_UNISTD. Don't
60964         set UNISTD_H. Inline gl_PREREQ_UNISTD. Set HAVE_UNISTD_H.
60965         (gl_PREREQ_UNISTD): Remove macro.
60966         (gl_UNISTD_MODULE_INDICATOR): New macro.
60967         (gl_UNISTD_H_DEFAULTS): Renamed from gl_HEADER_UNISTD_DEFAULTS. Set
60968         many new variables. Don't set UNISTD_H.
60969         * modules/unistd (Description): Change.
60970         (Depends-on): Add link-warning.
60971         (configure.ac): Update.
60972         (Makefile.am): Create unistd.h always. Substitute many new variables
60973         into it.
60974
60975 2007-02-18  Bruno Haible  <bruno@clisp.org>
60976
60977         * lib/stdlib_.h (getsubopt): New declaration, copied from getsubopt.h.
60978         * modules/stdlib (stdlib.h): Also substitute GNULIB_GETSUBOPT and
60979         HAVE_GETSUBOPT.
60980         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Also initialize
60981         GNULIB_GETSUBOPT and HAVE_GETSUBOPT.
60982         * lib/getsubopt.h: Remove file.
60983         * modules/getsubopt (Files): Remove lib/getsubopt.h.
60984         (Depends-on): Add stdlib.
60985         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
60986         (Includes): Use <stdlib.h> instead of getsubopt.h.
60987         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Require gl_STDLIB_H_DEFAULTS.
60988         Set HAVE_GETSUBOPT.
60989         * lib/getsubopt.c: Don't include getsubopt.h.
60990
60991 2007-02-18  Bruno Haible  <bruno@clisp.org>
60992
60993         * modules/fchdir (Depends-on): Add dup2.
60994
60995 2007-02-18  Bruno Haible  <bruno@clisp.org>
60996
60997         * lib/stdlib_.h: Handle glibc's special invocation convention
60998         specially.
60999
61000 2007-02-18  Bruno Haible  <bruno@clisp.org>
61001
61002         * modules/stdlib-tests: New file.
61003         * tests/test-stdlib.c: New file.
61004
61005         * modules/mkstemp (Files): Remove lib/mkstemp.h.
61006         (Depends-on): Add stdlib.
61007         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
61008         (Includes): Use <stdlib.h> instead of mkstemp.h.
61009         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require gl_STDLIB_H_DEFAULTS. Set
61010         REPLACE_MKSTEMP. Remove definition of __MKSTEMP_PREFIX.
61011         * lib/mkstemp.c: Don't include mkstemp.h.
61012         * lib/mkstemp-safer.c: Include <stdlib.h> instead of mkstemp.h.
61013         * lib/stdlib--.h: Don't include mkstemp.h.
61014
61015         * modules/mkdtemp (Files): Remove lib/mkdtemp.h.
61016         (Depends-on): Add stdlib.
61017         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
61018         (Includes): Use <stdlib.h> instead of mkdtemp.h.
61019         * m4/mkdtemp.m4 (gt_FUNC_MKDTEMP): Require gl_STDLIB_H_DEFAULTS. Set
61020         HAVE_MKDTEMP.
61021         * lib/mkdtemp.c: Don't include mkdtemp.h.
61022         * lib/clean-temp.c: Don't include mkdtemp.h.
61023
61024         * modules/exit (Files): Remove lib/exit.h.
61025         (Depends-on): Add stdlib.
61026         (Makefile.am): Remove lib_SOURCES.
61027         (Include): Use <stdlib.h> instead of exit.h.
61028         * lib/argmatch.c: Don't include exit.h.
61029         * lib/execute.c: Likewise.
61030         * lib/pagealign_alloc.c: Likewise.
61031         * lib/pipe.c: Likewise.
61032         * lib/wait-process.c: Likewise.
61033         * lib/copy-file.c: Include <stdlib.h> instead of exit.h.
61034         * lib/exitfail.c: Likewise.
61035         * lib/savewd.c: Likewise.
61036         * lib/xsetenv.c: Likewise.
61037
61038         * modules/stdlib: New file.
61039         * lib/stdlib_.h: New file, incorporating exit.h, mkdtemp.h, mkstemp.h
61040         and extra comments about mkstemp().
61041         * lib/exit.h: Remove file.
61042         * lib/mkdtemp.h: Remove file.
61043         * lib/mkstemp.h: Remove file.
61044         * m4/stdlib_h.m4: New file.
61045         * MODULES.html.sh (Support for systems lacking ANSI C 89): Add stdlib.
61046
61047 2007-02-18  Bruno Haible  <bruno@clisp.org>
61048
61049         * modules/math-tests: New file.
61050         * tests/test-math.c: New file.
61051
61052         * modules/math: New file.
61053         * modules/mathl (Files): Remove lib/mathl.h.
61054         (Depends-on): Add math.
61055         (Makefile.am): Don't mention mathl.h.
61056         (Include): Use <math.h> instead of mathl.h.
61057         * lib/math_.h: New file.
61058         * lib/mathl.h: Remove file.
61059         * lib/acosl.c: Include <config.h> and <math.h> first. Don't include
61060         mathl.h.
61061         * lib/asinl.c: Likewise.
61062         * lib/atanl.c: Likewise.
61063         * lib/ceill.c: Likewise.
61064         * lib/cosl.c: Likewise.
61065         * lib/expl.c: Likewise.
61066         * lib/floorl.c: Likewise.
61067         * lib/frexpl.c: Likewise.
61068         * lib/ldexpl.c: Likewise.
61069         * lib/logl.c: Likewise.
61070         * lib/sincosl.c: Likewise.
61071         * lib/sinl.c: Likewise.
61072         * lib/sqrtl.c: Likewise.
61073         * lib/tanl.c: Likewise.
61074         * lib/trigl.c: Likewise.
61075         * m4/math_h.m4: New file.
61076         * MODULES.html.sh (Mathematics): Add math.
61077
61078 2007-02-17  Bruno Haible  <bruno@clisp.org>
61079
61080         * modules/wctype-tests: New file.
61081         * tests/test-wctype.c: New file.
61082
61083         * modules/wchar-tests: New file.
61084         * tests/test-wchar.c: New file.
61085
61086         * modules/unistd-tests: New file.
61087         * tests/test-unistd.c: New file.
61088
61089         * modules/time-tests: New file.
61090         * tests/test-time.c: New file.
61091
61092         * modules/sysexits-tests: New file.
61093         * tests/test-sysexits.c: New file.
61094
61095         * modules/sys_time-tests: New file.
61096         * tests/test-sys_time.c: New file.
61097
61098         * modules/sys_stat-tests: New file.
61099         * tests/test-sys_stat.c: New file.
61100
61101         * modules/sys_socket-tests: New file.
61102         * tests/test-sys_socket.c: New file.
61103
61104         * modules/sys_select-tests: New file.
61105         * tests/test-sys_select.c: New file.
61106
61107         * modules/string-tests: New file.
61108         * tests/test-string.c: New file.
61109
61110         * modules/stdbool-tests: New file.
61111         * tests/test-stdbool.c: New file.
61112
61113         * modules/netinet_in-tests: New file.
61114         * tests/test-netinet_in.c: New file.
61115
61116         * modules/inttypes-tests: New file.
61117         * tests/test-inttypes.c: New file.
61118
61119         * modules/fcntl-tests: New file.
61120         * tests/test-fcntl.c: New file.
61121
61122         * modules/byteswap-tests: New file.
61123         * tests/test-byteswap.c: New file.
61124
61125         * modules/arpa_inet-tests: New file.
61126         * tests/test-arpa_inet.c: New file.
61127
61128 2007-02-17  Bruno Haible  <bruno@clisp.org>
61129
61130         * lib/inttypes_.h: Add definition for GL_LINK_WARNING.
61131         (imaxabs, imaxdiv, strtoimax, strtoumax): Don't declare the function
61132         if the corresponding module is not enabled. Emit link warnings if
61133         the function is used nevertheless.
61134         * m4/inttypes.m4 (gl_INTTYPES_H): Never use the existing <inttypes.h>.
61135         Don't AC_SUBST HAVE_DECL_IMAXABS, HAVE_DECL_IMAXDIV,
61136         HAVE_DECL_STRTOIMAX, HAVE_DECL_STRTOUMAX.
61137         (gl_INTTYPES_MODULE_INDICATOR, gl_INTTYPES_H_DEFAULTS): New macros.
61138         * modules/inttypes (Depends-on): Add link-warning.
61139         (Makefile.am): Copy the contents of build-aux/link-warning.h into
61140         inttypes.h. Substitute also GNULIB_IMAXABS, GNULIB_IMAXDIV,
61141         GNULIB_STRTOIMAX, GNULIB_STRTOUMAX.
61142         * modules/imaxabs (configure.ac): Invoke gl_INTTYPES_MODULE_INDICATOR.
61143         * modules/imaxdiv (configure.ac): Likewise.
61144         * modules/strtoimax (configure.ac): Likewise.
61145         * modules/strtoumax (configure.ac): Likewise.
61146
61147 2007-02-17  Bruno Haible  <bruno@clisp.org>
61148
61149         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Include the contents of
61150         gl_STRING_MODULE_INDICATOR_DEFAULTS.
61151         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Remove macro.
61152         (gl_HEADER_STRING_H_BODY, gl_STRING_MODULE_INDICATOR): Update.
61153
61154 2007-02-17  Bruno Haible  <bruno@clisp.org>
61155
61156         * modules/link-warning: New file.
61157         * build-aux/link-warning.h: New file, extracted from lib/string_.h.
61158         * lib/string_.h (GL_LINK_WARNING): Remove definition.
61159         * modules/string (Depends-on): Add link-warning.
61160         (Makefile.am): Copy the contents of build-aux/link-warning.h into
61161         string.h.
61162         * MODULES.html.sh (Support for building libraries and executables): Add
61163         link-warning.
61164
61165 2007-02-17  Bruno Haible  <bruno@clisp.org>
61166
61167         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strcasecmp,
61168         strncasecmp, strchr, strchrnul, strdup, strndup, strnlen, strcspn,
61169         strpbrk, strspn, strrchr, strsep, strstr, strcasestr, strtok_r): Break
61170         long lines.
61171
61172 2007-02-17  Ben Pfaff  <blp@cs.stanford.edu>
61173             Bruno Haible  <bruno@clisp.org>
61174
61175         * modules/tmpfile: New file.
61176         * lib/tmpfile.c: New file.
61177         * m4/tmpfile.m4: New file.
61178         * MODULES.html.sh (func_all_modules): New section "Input/output".
61179
61180 2007-02-15  Bruno Haible  <bruno@clisp.org>
61181
61182         * lib/clean-temp.c [WIN32 && !CYGWIN]: Include <windows.h>.
61183         (supports_delete_on_close): New function.
61184         (open_temp, fopen_temp): Use _O_TEMPORARY when supported.
61185
61186 2007-02-14  Bruno Haible  <bruno@clisp.org>
61187
61188         * modules/mbspcasecmp-tests: New file.
61189         * tests/test-mbspcasecmp.sh: New file.
61190         * tests/test-mbspcasecmp.c: New file.
61191
61192         New module mbspcasecmp.
61193         * modules/mbspcasecmp: New file.
61194         * lib/mbspcasecmp.c: New file.
61195         * lib/string_.h (strncasecmp): Change warning message.
61196         (mbspcasecmp): New declaration.
61197         * m4/mbspcasecmp.m4: New file.
61198         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
61199         GNULIB_MBSPCASECMP.
61200         * modules/string (string.h): Also substitute GNULIB_MBSPCASECMP.
61201         * MODULES.html.sh (Internationalization functions): Add mbspcasecmp.
61202
61203 2007-02-14  Bruno Haible  <bruno@clisp.org>
61204
61205         * modules/mbsncasecmp-tests: New file.
61206         * tests/test-mbsncasecmp.sh: New file.
61207         * tests/test-mbsncasecmp.c: New file.
61208
61209         New module mbsncasecmp.
61210         * modules/mbsncasecmp: New file.
61211         * lib/mbsncasecmp.c: New file.
61212         * lib/string_.h (mbsncasecmp): New declaration.
61213         * m4/mbsncasecmp.m4: New file.
61214         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
61215         GNULIB_MBSNCASECMP.
61216         * modules/string (string.h): Also substitute GNULIB_MBSNCASECMP.
61217         * MODULES.html.sh (Internationalization functions): Add mbsncasecmp.
61218
61219 2007-02-14  Paul Eggert  <eggert@cs.ucla.edu>
61220
61221         * lib/exclude.c (FNM_EXTMATCH): Define if system does not.
61222         Verify that it doesn't overlap with our flags.
61223         (fnmatch_no_wildcards): Don't use strcasecmp or strncasecmp, which
61224         do not have the desired effect in multibyte locales; instead, use
61225         mbscasecmp.
61226         * modules/exclude (Depends-on): Depend on mbscasecmp, not strcase.
61227         Add dependency on xalloc.  Depend on fnmatch, not fnmatch-gnu, since
61228         we don't require GNU fnmatch ourselves (if our users require it, they
61229         should do so explicitly).
61230
61231         Fix regex code so it doesn't rely on strcasecmp.
61232         * lib/regex_internal.h: Include <langinfo.h> only if _LIBC is defined.
61233         Otherwise, include gnulib's langinfo.h.
61234         * lib/regcomp.c (init_dfa): Don't use strcasecmp, as it can have
61235         undesirable behavior in non-C locales.  Instead, rely on localecharset.
61236         * m4/regex.m4 (gl_PREREQ_REGEX): Don't require AM_LANGINFO_CODESET.
61237         * modules/regex (FILES): Remove m4/codeset.m4.
61238         (Depends-on): Add localcharset.  Remove strcase.
61239
61240 2007-02-13  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
61241
61242         * m4/unlinkdir.m4 (gl_UNLINKDIR): Fix m4 quoting bug.
61243         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Likewise.
61244
61245 2007-02-13  Bruno Haible  <bruno@clisp.org>
61246
61247         * m4/intdiv0.m4 (gt_INTDIV0): Assume ANSI C. Fix underquoting bug.
61248         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
61249
61250 2007-02-12  Bruno Haible  <bruno@clisp.org>
61251
61252         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strchrnul,
61253         strdup, strndup, strnlen, strpbrk, strsep, strtok_r): If
61254         GNULIB_POSIXCHECK and the gnulib module not enabled, provoke a link-
61255         time warning rather than a link error.
61256
61257 2007-02-12  Bruno Haible  <bruno@clisp.org>
61258
61259         * m4/locale-fr.m4 (gt_LOCALE_FR): Fix m4 quoting bug.
61260         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
61261         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
61262
61263 2007-02-12  Paul Eggert  <eggert@cs.ucla.edu>
61264
61265         * lib/string_.h (strncasecmp): Fix typo: this macro takes 3
61266         args, not 2.
61267
61268 2007-02-12  Paul Eggert  <eggert@cs.ucla.edu>
61269
61270         New module 'time', so that apps can include <time.h> as per
61271         POSIX and GNU instead of separate include files like time_r.h
61272         and timegm.h.  This implementation tries out a simpler approach
61273         for replacing decls in standard include files (as compared to
61274         the string module), somewhat as an experiment.
61275
61276         * config/srclist.txt: Comment out mktime.c for now.
61277         * doc/gnulib-tool.texi (Initial import): Don't use time_r as an example
61278         since it doesn't apply any more.  Use generic wording instead.
61279         * MODULES.html.sh (Support for systems lacking POSIX:2001): New module
61280         'time'.
61281         * lib/time_.h, m4/time_h.m4, modules/time: New files.
61282         * lib/strptime.h, lib/time_r.h, lib/timegm.h: Remove.
61283         * lib/mktime.c: Include config.h depending on _LIBC, not HAVE_CONFIG_H.
61284         Don't include <sys/types.h>; no longer needed since we assume C89.
61285         * lib/mktime.c: Don't include "time_r.h"; no longer needed.
61286         * lib/strftime.c: Likewise.
61287         * lib/time_r.c: Likewise.
61288         * lib/nanosleep.c (nanosleep): #undef after include files, not before.
61289         * lib/nanosleep.c: Include <time.h> first, to check interface.
61290         * lib/strptime.c: Likewise.
61291         * lib/time_r.c: Likewise.
61292         * lib/timegm.c: Likewise.
61293         * lib/strptime.c: Don't include strptime.h or time_r.h; no longer
61294         needed.
61295         * lib/timegm.c: Don't include timegm.h; no longer needed.
61296         * lib/timespec.h: Don't include <sys/time.h> before <time.h>;
61297         time.h now handles any problems in that area.
61298         (struct timespec, nanosleep): Remove; time.h now arranges for these.
61299         * lib/xnanosleep.c: Don't include timespec.h; no longer needed now
61300         that time.h defines struct timespec.
61301         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check that nanosleep is declared.
61302         Set REPLACE_NANOSLEEP.  Don't AC_DEFINE nanosleep; the time module now
61303         handles that.
61304         * m4/strptime.m4 (gl_FUNC_STPRTIME): Set REPLACE_STRPTIME.
61305         * m4/time_r.m4 (gl_TIME_R): Don't define HAVE_TIME_R_POSIX; no longer
61306         needed.  Set REPLACE_LOCALTIME.
61307         * m4/timegm.m4 (gl_FUNC_TIMEGM): Set REPLACE_TIMEGM.
61308         * m4/timespec.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Move to time_h.m4.
61309         (gl_TIMESPEC): Don't check for sys/time.h or struct timespec or
61310         nanosleep; time_h.m4 now does that.  Don't require
61311         gl_USE_SYSTEM_EXTENSIONS; no longer needed directly, and the time
61312         module handles this now.
61313         * modules/getdate (Depends-on): Remove timespec.  Add time.
61314         * modules/nanosleep (Depends-on): Likewise.
61315         * modules/stat-time (Depends-on): Likewise.
61316         * modules/nanosleep (Include): Include time.h, not timespec.h.
61317         * modules/strptime (Files): Remove lib/strptime.h.
61318         (Depends-on): Add extensions, time.
61319         (Include): Include time.h, not strptime.h.
61320         * modules/time_r (Files): Remove lib/time_r.h.
61321         (Depends-on): Add time.
61322         (Include): Include time.h, not time_r.h.
61323         * modules/timegm: Likewise.
61324         * modules/timespec (Description): Now does timespec-related decls
61325         of our own, instead of struct timespec itself.
61326         (Depends-on): Add time; remove extensions.
61327         (Maintainer): Add self.
61328         * modules/utimecmp (Depends-on): Add time; remove timespec.
61329         * modules/utimens (Depends-on): Likewise.
61330         * modules/xnanosleep (Depends-on): Likewise.
61331
61332 2007-02-11  Bruno Haible  <bruno@clisp.org>
61333
61334         * lib/c-strstr.c: Include allocsa.h.
61335         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
61336         * lib/c-strcasestr.c: Include allocsa.h.
61337         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
61338         * lib/strcasestr.c: Include allocsa.h.
61339         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
61340         * lib/mbsstr.c: Include allocsa.h.
61341         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): Use
61342         allocsa/freesa instead of malloc/free.
61343         * lib/mbscasestr.c: Include allocsa.h.
61344         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): Use
61345         allocsa/freesa instead of malloc/free.
61346         * modules/c-strstr (Depends-on): Add allocsa.
61347         * modules/c-strcasestr (Depends-on): Likewise.
61348         * modules/strcasestr (Depends-on): Likewise.
61349         * modules/mbsstr (Depends-on): Likewise.
61350         * modules/mbscasestr (Depends-on): Likewise.
61351
61352 2007-02-11  Bruno Haible  <bruno@clisp.org>
61353
61354         * lib/mbsspn.c (mbsspn): Fix bug. Remove unnecessary strlen call.
61355
61356         * modules/mbsspn-tests: New file.
61357         * tests/test-mbsspn.sh: New file.
61358         * tests/test-mbsspn.c: New file.
61359
61360 2007-02-11  Bruno Haible  <bruno@clisp.org>
61361
61362         * lib/mbspbrk.c (mbspbrk): Remove unneeded cast.
61363
61364         * modules/mbspbrk-tests: New file.
61365         * tests/test-mbspbrk.sh: New file.
61366         * tests/test-mbspbrk.c: New file.
61367
61368 2007-02-11  Bruno Haible  <bruno@clisp.org>
61369
61370         * lib/mbscspn.c (mbscspn): Remove unnecessary strlen call and
61371         unneeded cast.
61372
61373         * modules/mbscspn-tests: New file.
61374         * tests/test-mbscspn.sh: New file.
61375         * tests/test-mbscspn.c: New file.
61376
61377 2007-02-11  Bruno Haible  <bruno@clisp.org>
61378
61379         * modules/mbscasecmp-tests: New file.
61380         * tests/test-mbscasecmp.sh: New file.
61381         * tests/test-mbscasecmp.c: New file.
61382
61383 2007-02-11  Bruno Haible  <bruno@clisp.org>
61384
61385         Ensure O(n) worst-case complexity of mbscasestr.
61386         * lib/mbscasestr.c: Include stdbool.h.
61387         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): New
61388         functions.
61389         (mbscasestr): Add some bookkeeping. Invoke knuth_morris_pratt_* when
61390         the bookkeeping indicates that it's worth it.
61391         * modules/mbscasestr (Depends-on): Add stdbool, mbslen, strnlen.
61392
61393         * modules/mbscasestr-tests: New file.
61394         * tests/test-mbscasestr1.c: New file.
61395         * tests/test-mbscasestr2.sh: New file.
61396         * tests/test-mbscasestr2.c: New file.
61397         * tests/test-mbscasestr3.sh: New file.
61398         * tests/test-mbscasestr3.c: New file.
61399         * tests/test-mbscasestr4.sh: New file.
61400         * tests/test-mbscasestr4.c: New file.
61401         * m4/locale-tr.m4: New file.
61402
61403 2007-02-11  Bruno Haible  <bruno@clisp.org>
61404
61405         Ensure O(n) worst-case complexity of mbsstr.
61406         * lib/mbsstr.c: Include stdbool.h.
61407         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): New
61408         functions.
61409         (mbsstr): Add some bookkeeping. Invoke knuth_morris_pratt_* when the
61410         bookkeeping indicates that it's worth it.
61411         * modules/mbsstr (Depends-on): Add stdbool, mbslen, strnlen.
61412
61413         * modules/mbsstr-tests: New file.
61414         * tests/test-mbsstr1.c: New file.
61415         * tests/test-mbsstr2.sh: New file.
61416         * tests/test-mbsstr2.c: New file.
61417         * tests/test-mbsstr3.sh: New file.
61418         * tests/test-mbsstr3.c: New file.
61419         * m4/locale-fr.m4: New file.
61420
61421 2007-02-11  Bruno Haible  <bruno@clisp.org>
61422
61423         * lib/mbsrchr.c (mbsrchr): Fix bug.
61424
61425         * modules/mbsrchr-tests: New file.
61426         * tests/test-mbsrchr.sh: New file.
61427         * tests/test-mbsrchr.c: New file.
61428
61429 2007-02-11  Bruno Haible  <bruno@clisp.org>
61430
61431         * lib/mbschr.c (mbschr): Fix bug.
61432
61433         * modules/mbschr-tests: New file.
61434         * tests/test-mbschr.sh: New file.
61435         * tests/test-mbschr.c: New file.
61436         * m4/locale-zh.m4: New file.
61437
61438 2007-02-11  Bruno Haible  <bruno@clisp.org>
61439
61440         Support for copying multibyte string iterators.
61441         * lib/mbiter.h: Include <string.h>.
61442         (mbiter_multi_copy): New function.
61443         (mbi_copy): New macro.
61444         * lib/mbuiter.h: Include <string.h>.
61445         (mbuiter_multi_copy): New function.
61446         (mbui_copy): New macro.
61447
61448 2007-02-11  Bruno Haible  <bruno@clisp.org>
61449
61450         New module mbslen.
61451         * modules/mbslen: New file.
61452         * lib/mbslen.c: New file.
61453         * lib/string_.h (mbslen): New declaration.
61454         * m4/mbslen.m4: New file.
61455         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
61456         GNULIB_MBSLEN.
61457         * modules/string (string.h): Also substitute GNULIB_MBSLEN.
61458         * MODULES.html.sh (Internationalization functions): Add mbslen.
61459
61460 2007-02-11  Bruno Haible  <bruno@clisp.org>
61461
61462         Ensure O(n) worst-case complexity of strcasestr substitute.
61463         * lib/strcasestr.c: Include stdbool.h.
61464         (knuth_morris_pratt): New function.
61465         (strcasestr): Add some bookkeeping. Invoke knuth_morris_pratt when the
61466         bookkeeping indicates that it's worth it.
61467         * modules/strcasestr (Depends-on): Add stdbool, strnlen.
61468
61469         * modules/strcasestr-tests: New file.
61470         * tests/test-strcasestr.c: New file.
61471
61472 2007-02-11  Bruno Haible  <bruno@clisp.org>
61473
61474         Ensure O(n) worst-case complexity of c_strcasestr.
61475         * lib/c-strcasestr.c: Include stdbool.h, string.h.
61476         (knuth_morris_pratt): New function.
61477         (c_strcasestr): Add some bookkeeping. Invoke knuth_morris_pratt when
61478         the bookkeeping indicates that it's worth it.
61479         * modules/c-strcasestr (Depends-on): Add stdbool, strnlen.
61480
61481         * modules/c-strcasestr-tests: New file.
61482         * tests/test-c-strcasestr.c: New file.
61483
61484 2007-02-11  Bruno Haible  <bruno@clisp.org>
61485
61486         Ensure O(n) worst-case complexity of c_strstr.
61487         * lib/c-strstr.c: Include stdbool.h, string.h.
61488         (knuth_morris_pratt): New function.
61489         (c_strstr): Add some bookkeeping. Invoke knuth_morris_pratt when the
61490         bookkeeping indicates that it's worth it.
61491         * modules/c-strstr (Depends-on): Add stdbool, strnlen.
61492
61493         * lib/c-strstr.c: Complete rewrite for maintainability.
61494
61495         * modules/c-strstr-tests: New file.
61496         * tests/test-c-strstr.c: New file.
61497
61498 2007-02-11  Bruno Haible  <bruno@clisp.org>
61499
61500         * m4/javacomp.m4 (gt_JAVACOMP): Work around a 'tr' bug in coreutils
61501         5.2.1 and earlier, whereby \055 was treated just like the range
61502         delimiter '-'.
61503         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
61504
61505 2007-02-08  Bruno Haible  <bruno@clisp.org>
61506
61507         * modules/regex (Depends-on): Add stdbool.
61508         Reported by Dalibor Topic <robilad@kaffe.org>.
61509
61510 2007-02-05  Paul Eggert  <eggert@cs.ucla.edu>
61511
61512         * m4/regex.m4 (gl_REGEX): Check for glibc bug #3957.
61513         Prefer returning from main to exiting from it.
61514         Remove unnecessary parens after sizeof.
61515
61516 2007-02-05  Bruno Haible  <bruno@clisp.org>
61517
61518         New module mbssep.
61519         * modules/mbssep: New file.
61520         * lib/mbssep.c: New file.
61521         * lib/string_.h (strsep): Add a conditional link warning.
61522         (mbssep): New declaration.
61523         * m4/mbssep.m4: New file.
61524         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
61525         GNULIB_MBSSEP.
61526         * modules/string (string.h): Also substitute GNULIB_MBSSEP.
61527         * MODULES.html.sh (Internationalization functions): Add mbssep.
61528
61529 2007-02-05  Bruno Haible  <bruno@clisp.org>
61530
61531         * lib/strsep.c (strsep): Fix actions in case of no delimiters.
61532         Optimize search in case of 1 delimiter.
61533
61534 2007-02-05  Paolo Bonzini  <bonzini@gnu.org>
61535
61536         * lib/acl.h: Include sys/types.h before sys/acl.h.
61537
61538 2007-02-05  Paolo Bonzini  <bonzini@gnu.org>
61539
61540         Merge upstream fix for glibc bugzilla #3957:
61541
61542         2007-02-05  Jakub Jelinek  <jakub@redhat.com>
61543
61544         * lib/regcomp.c (parse_bracket_exp): Set '\n' bit rather than '\0'
61545         bit for RE_HAT_LISTS_NOT_NEWLINE.
61546         (build_charclass_op): Remove bogus comment.
61547
61548 2007-02-05  Simon Josefsson  <simon@josefsson.org>
61549
61550         * lib/gc.h, lib/gc-libgcrypt.c: Support SHA-256/384/512.
61551
61552 2007-02-04  Paul Eggert  <eggert@cs.ucla.edu>
61553
61554         * lib/getsubopt.c [!_LIBC]: Include config.h and getsubopt.h.
61555         * lib/memmem.c [!defined _LIBC]: Include config.h.
61556
61557 2007-02-04  Bruno Haible  <bruno@clisp.org>
61558
61559         * lib/string_.h (GL_LINK_WARNING2): Put the word "warning:" into the
61560         warning message.
61561
61562 2007-02-04  Bruno Haible  <bruno@clisp.org>
61563
61564         New module mbstok_r.
61565         * modules/mbstok_r: New file.
61566         * lib/mbstok_r.c: New file.
61567         * lib/string_.h (strtok_r): Change argument names to match the
61568         comments. Add a conditional link warning.
61569         (mbstok_r): New declaration.
61570         * m4/mbstok_r.m4: New file.
61571         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
61572         GNULIB_MBSTOK_R.
61573         * modules/string (string.h): Also substitute GNULIB_MBSTOK_R.
61574         * MODULES.html.sh (Internationalization functions): Add mbstok_r.
61575
61576 2007-02-04  Bruno Haible  <bruno@clisp.org>
61577
61578         New module mbsspn.
61579         * modules/mbsspn: New file.
61580         * lib/mbsspn.c: New file.
61581         * lib/string_.h (strspn): Add a conditional link warning.
61582         (mbsspn): New declaration.
61583         * m4/mbsspn.m4: New file.
61584         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
61585         GNULIB_MBSSPN.
61586         * modules/string (string.h): Also substitute GNULIB_MBSSPN.
61587         * MODULES.html.sh (Internationalization functions): Add mbsspn.
61588
61589 2007-02-04  Bruno Haible  <bruno@clisp.org>
61590
61591         New module mbspbrk.
61592         * modules/mbspbrk: New file.
61593         * lib/mbspbrk.c: New file.
61594         * lib/string_.h (strpbrk): Add a conditional link warning.
61595         (mbspbrk): New declaration.
61596         * m4/mbspbrk.m4: New file.
61597         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
61598         GNULIB_MBSPBRK.
61599         * modules/string (string.h): Also substitute GNULIB_MBSPBRK.
61600         * MODULES.html.sh (Internationalization functions): Add mbspbrk.
61601
61602 2007-02-04  Bruno Haible  <bruno@clisp.org>
61603
61604         New module mbscspn.
61605         * modules/mbscspn: New file.
61606         * lib/mbscspn.c: New file.
61607         * lib/string_.h (strcspn): Add a conditional link warning.
61608         (mbscspn): New declaration.
61609         * m4/mbscspn.m4: New file.
61610         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
61611         GNULIB_MBSCSPN.
61612         * modules/string (string.h): Also substitute GNULIB_MBSCSPN.
61613         * MODULES.html.sh (Internationalization functions): Add mbscspn.
61614
61615 2007-02-04  Bruno Haible  <bruno@clisp.org>
61616
61617         New module mbscasestr, reduced goal of strcasestr.
61618         * modules/mbscasestr: New file.
61619         * lib/mbscasestr.c: New file, copied from lib/strcasestr.c.
61620         (mbscasestr): Renamed from strcasestr.
61621         * lib/strcasestr.c: Don't include mbuiter.h.
61622         (strcasestr): Remove support for multibyte locales.
61623         * lib/string_.h (strcasestr): Don`t rename. Declare only if missing.
61624         Change the conditional link warning.
61625         (mbscasestr): New declaration.
61626         * m4/mbscasestr.m4: New file.
61627         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Enable the replacement only if
61628         the system does not have strcasestr. Set HAVE_STRCASESTR instead of
61629         REPLACE_STRCASESTR.
61630         (gl_PREREQ_STRCASESTR): Don't require gl_FUNC_MBRTOWC.
61631         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
61632         HAVE_STRCASESTR instead of REPLACE_STRCASESTR.
61633         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize GNULIB_MBSCASESTR.
61634         * modules/string (string.h): Also substitute GNULIB_MBSCASESTR.
61635         Substitute HAVE_STRCASESTR instead of REPLACE_STRCASESTR.
61636         * modules/strcasestr (Files): Remove m4/mbrtowc.m4.
61637         (Depends-on): Remove mbuiter.
61638         * MODULES.html.sh (Internationalization functions): Add mbscasestr.
61639
61640 2007-02-04  Bruno Haible  <bruno@clisp.org>
61641
61642         Simplify handling of strncasecmp.
61643         * lib/string_.h (strncasecmp): Remove test for GNULIB_STRCASE. Change
61644         the conditional link warning.
61645         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
61646         HAVE_STRCASECMP, not REPLACE_STRCASECMP.
61647         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Don't initialize GNULIB_STRCASE.
61648         * modules/strcase (configure.ac): Don't invoke
61649         gl_STRING_MODULE_INDICATOR.
61650         * modules/string (string.h): Don't substitute GNULIB_STRCASE.
61651
61652 2007-02-04  Bruno Haible  <bruno@clisp.org>
61653
61654         New module mbscasecmp, reduced goal of strcasecmp.
61655         * modules/mbscasecmp: New file.
61656         * lib/mbscasecmp.c: New file, copied from lib/strcasecmp.c.
61657         (mbscasecmp): Renamed from strcasecmp.
61658         * lib/strcasecmp.c: Don't include mbuiter.h.
61659         (strcasecmp): Remove support for multibyte locales.
61660         * lib/string_.h (strcasecmp): Don`t rename. Declare only if missing.
61661         Change the conditional link warning.
61662         (mbscasecmp): New declaration.
61663         * m4/mbscasecmp.m4: New file.
61664         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Enable the replacement only if
61665         the system lacks strcasecmp. Set HAVE_STRCASECMP instead of
61666         REPLACE_STRCASECMP.
61667         (gl_PREREQ_STRCASECMP): Don't require gl_FUNC_MBRTOWC.
61668         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
61669         GNULIB_MBSCASECMP.
61670         * modules/string (string.h): Also substitute GNULIB_MBSCASECMP.
61671         Substitute HAVE_STRCASECMP instead of REPLACE_STRCASECMP.
61672         * modules/strcase (Files): Remove m4/mbrtowc.m4.
61673         (Depends-on): Remove mbuiter.
61674         * MODULES.html.sh (Internationalization functions): Add mbscasecmp.
61675
61676 2007-02-04  Bruno Haible  <bruno@clisp.org>
61677
61678         New module mbsstr. Remove module strstr.
61679         * modules/mbsstr: New file.
61680         * modules/strstr: Remove file.
61681         * lib/mbsstr.c: Renamed from lib/strstr.c.
61682         (mbsstr): Renamed from strstr.
61683         * lib/string_.h (strstr): Remove declaration. Change the conditional
61684         link warning.
61685         (mbsstr): New declaration.
61686         * m4/mbsstr.m4: New file.
61687         * m4/strstr.m4: Remove file.
61688         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Don't initialize
61689         REPLACE_STRSTR.
61690         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize GNULIB_MBSSTR.
61691         Don't initialize GNULIB_STRSTR.
61692         * modules/string (string.h): Also substitute GNULIB_MBSSTR. Don't
61693         substitute GNULIB_STRSTR and REPLACE_STRSTR.
61694         * MODULES.html.sh (Internationalization functions): Add mbsstr.
61695         (Support for systems lacking ANSI C 89): Remove strstr.
61696
61697 2007-02-04  Bruno Haible  <bruno@clisp.org>
61698
61699         New module mbsrchr.
61700         * modules/mbsrchr: New file.
61701         * lib/mbsrchr.c: New file.
61702         * lib/string_.h (strrchr): Add a conditional link warning.
61703         (mbsrchr): New declaration.
61704         * m4/mbsrchr.m4: New file.
61705         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
61706         GNULIB_MBSRCHR.
61707         * modules/string (string.h): Also substitute GNULIB_MBSRCHR.
61708         * MODULES.html.sh (Internationalization functions): Add mbsrchr.
61709
61710 2007-02-04  Bruno Haible  <bruno@clisp.org>
61711
61712         New module mbschr.
61713         * modules/mbschr: New file.
61714         * lib/mbschr.c: New file.
61715         * lib/string_.h (strchr): Add a conditional link warning.
61716         (mbschr): New declaration.
61717         * m4/mbschr.m4: New file.
61718         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
61719         GNULIB_MBSCHR.
61720         * modules/string (string.h): Also substitute GNULIB_MBSCHR.
61721         * MODULES.html.sh (Internationalization functions): Add mbschr.
61722
61723 2007-02-04  Paul Eggert  <eggert@cs.ucla.edu>
61724
61725         * lib/stdbool_.h: Mention that bool bit-fields aren't supported.
61726
61727         * modules/stdarg (configure.ac-early): Require AC_PROG_CC_STDC.
61728
61729 2007-02-04  Bruno Haible  <bruno@clisp.org>
61730
61731         New module description section 'configure.ac-early'.
61732         * gnulib-tool (sed_extract_prog): Recognize configure.ac-early.
61733         (func_get_autoconf_early_snippet): New function.
61734         (func_import, func_create_testdir): Use it. Remove special cases for
61735         modules 'extensions' and 'lock'.
61736         * modules/extensions (configure.ac-early): Require
61737         gl_USE_SYSTEM_EXTENSIONS.
61738         * modules/lock (configure.ac-early): Require gl_LOCK_EARLY.
61739
61740 2007-02-04  Bruno Haible  <bruno@clisp.org>
61741
61742         Make use of gcj-4.3's -fsource and -ftarget option.
61743         * m4/javacomp.m4 (gt_JAVACOMP): Test whether gcj is in version >= 4.3,
61744         and if so try the options -fsource and -ftarget.
61745         * lib/javacomp.c (compile_using_gcj): Add fsource_option,
61746         source_version, ftarget_option, target_version arguments.
61747         (is_envjavac_gcj43, is_envjavac_gcj43_usable): New functions.
61748         (is_envjavac_oldgcj_14_14_usable): Renamed from
61749         is_envjavac_gcj_14_14_usable.
61750         (is_envjavac_oldgcj_14_13_usable): Renamed from
61751         is_envjavac_gcj_14_13_usable.
61752         (is_gcj_present): Update.
61753         (is_gcj_43, is_gcj43_usable): New functions.
61754         (is_oldgcj_14_14_usable): Renamed from is_gcj_14_14_usable. Update.
61755         (is_oldgcj_14_13_usable): Renamed from is_gcj_14_13_usable. Update.
61756         (compile_java_class): Test whether gcj is in version >= 4.3, and if so
61757         try the options -fsource and -ftarget.
61758
61759 2007-02-03  Paul Eggert  <eggert@cs.ucla.edu>
61760
61761         * lib/xalloc.h (x2nrealloc): Fix an unlikely bug in the overflow
61762         checking code.  Set N = ceil (1.5 * N) rather than to a slightly
61763         larger value.
61764
61765 2007-02-03  Jim Meyering  <jim@meyering.net>
61766
61767         Give tools a better chance to allocate space for very large buffers.
61768         * lib/xalloc.h (x2nrealloc): Use 3/2, not 2, as buffer size factor.
61769
61770         Make pwd and readlink work also when run with an unreadable parent dir
61771         on systems with openat support.
61772         * lib/getcwd.c (__getcwd) [HAVE_PARTLY_WORKING_GETCWD]: Use the system
61773         provided getcwd function, even when we have openat support.
61774         Reported by Dmitry V. Levin in <http://bugzilla.redhat.com/227168>.
61775
61776 2007-02-02  Bruno Haible  <bruno@clisp.org>
61777
61778         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strchrnul,
61779         strdup, strndup, strnlen, strpbrk, strsep, strtok_r): Provoke a link
61780         error only if GNULIB_POSIXCHECK is defined. Needed to avoid artificial
61781         portability problems if one of these functions is only used on specific
61782         platforms.
61783         Reported by Paul Eggert.
61784
61785 2007-02-02  Paul Eggert  <eggert@cs.ucla.edu>
61786
61787         Avoid mempcpy in the regex code, as the string.h mempcpy stuff
61788         is causing more trouble than it's curing.
61789         * lib/regex_internal.h (__mempcpy): Remove.
61790         * lib/regcomp.c (regerror): Rewrite to avoid the need for mempcpy
61791         (and make the code a tad smaller to boot).
61792         * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for mempcpy.
61793
61794 2007-02-02  Jim Meyering  <jim@meyering.net>
61795
61796         * modules/arpa_inet: Put AC_PROG_MKDIR_P in the configure.ac:
61797         section, not in the Makefile.am: one.
61798
61799 2007-02-02  Eric Blake  <ebb9@byu.net>
61800
61801         * lib/strchrnul.c: Always include config.h first.
61802
61803         * modules/mountlist (Depends-on): Revert 2007-01-31 change,
61804         gnulib strstr is not necessary here.
61805
61806 2007-02-02  Simon Josefsson  <simon@josefsson.org>
61807
61808         * m4/socklen.m4: Fix typo.
61809
61810 2007-02-02  Eric Blake  <ebb9@byu.net>
61811
61812         * modules/arpa_inet (Makefile.am): Use MKDIR_P to avoid races.
61813         * modules/netinet_in (Makefile.am): Likewise.
61814
61815 2007-02-01  Bruno Haible  <bruno@clisp.org>
61816
61817         * lib/string_.h (GL_LINK_WARNING): New macro.
61818         (strcasecmp, strstr, strcasestr): If provided by the system,
61819         conditionally define as a macro that leads to a warning instead of to
61820         an error.
61821         (strncasecmp): Conditionally define as a macro that leads to a warning.
61822
61823 2007-02-01  Karl Berry  <karl@gnu.org>
61824
61825         * config/srclist.txt (strtok_r.c): lose sync, no more strtok_r.h.
61826
61827 2007-02-01  Bruno Haible  <bruno@clisp.org>
61828
61829         * MODULES.html.sh (Unicode string functions): Update after 2007-01-27
61830         renamings.
61831
61832 2007-02-01  Eric Blake  <ebb9@byu.net>
61833
61834         * modules/regex (Depends-on): Revert dependence on mempcpy.
61835         * lib/regex_internal.h [! _LIBC && !__mempcpy]: Undo string
61836         module's definition of mempcpy.
61837         Reported by Paul Eggert.
61838
61839 2007-02-01  Paul Eggert  <eggert@cs.ucla.edu>
61840
61841         * lib/string_.h: If the gnulib module XYZ is not present, undefine
61842         the symbol XYZ before redefining it.  This fixes a problem with
61843         programs that don't use XYZ, when compiled on systems that define
61844         XYZ to something else.
61845
61846 2007-01-31  Paul Eggert  <eggert@cs.ucla.edu>
61847
61848         * lib/mkdir-p.c (make_dir_parents): Close a race condition that
61849         occurs when "mkdir -m foo" creates a setgid directory that is (1)
61850         writeable to group or other and (2) is intended to have a special
61851         mode bit that is set or cleared.  In such a case, the directory
61852         should be neither group- nor other-writeable until the special
61853         mode bits are right.
61854
61855 2007-01-31  Eric Blake  <ebb9@byu.net>
61856
61857         * modules/mountlist (Depends-on): Add strstr.
61858
61859         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Correct m4 usage
61860         bug.
61861         * modules/string (Makefile.am): Remove redundant replacement.
61862         * modules/regex (Depends-on): Add mempcpy.
61863
61864 2007-01-31  Bruno Haible  <bruno@clisp.org>
61865
61866         New module description field 'Link'.
61867         * gnulib-tool (func_usage): Document --extract-link-directive.
61868         (sed_extract_prog): Recognize 'Link' directive.
61869         (func_get_link_directive): New function.
61870         (func_import): Show summary of link directives.
61871         Handle --extract-link-directive option.
61872         * modules/acl (Link): New section.
61873         * modules/clock-time (Link): New section.
61874         * modules/euidaccess (Link): New section.
61875         * modules/gettext (Link): New section.
61876         * modules/iconv (Link): New section.
61877         * modules/lock (Link): New section.
61878         * modules/nanosleep (Link): New section.
61879         * modules/readline (Link): New section.
61880
61881 2007-01-27  Bruno Haible  <bruno@clisp.org>
61882
61883         Enforce the use of gnulib modules for unportable <string.h> functions.
61884         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): New macro.
61885         (gl_STRING_MODULE_INDICATOR_DEFAULTS): New macro.
61886         (gl_HEADER_STRING_H_BODY): Require it.
61887         * lib/string_.h: If the gnulib module XYZ is not present, redefine
61888         the symbol XYZ to one that gives a link error.
61889         * modules/string (Makefile.am): Also substitute the GNULIB_* variables.
61890         * modules/memmem (configure.ac): Invoke gl_STRING_MODULE_INDICATOR.
61891         * modules/mempcpy (configure.ac): Likewise.
61892         * modules/memrchr (configure.ac): Likewise.
61893         * modules/stpcpy (configure.ac): Likewise.
61894         * modules/stpncpy (configure.ac): Likewise.
61895         * modules/strcase (configure.ac): Likewise.
61896         * modules/strcasestr (configure.ac): Likewise.
61897         * modules/strchrnul (configure.ac): Likewise.
61898         * modules/strdup (configure.ac): Likewise.
61899         * modules/strndup (configure.ac): Likewise.
61900         * modules/strnlen (configure.ac): Likewise.
61901         * modules/strpbrk (configure.ac): Likewise.
61902         * modules/strsep (configure.ac): Likewise.
61903         * modules/strstr (configure.ac): Likewise.
61904         * modules/strtok_r (configure.ac): Likewise.
61905
61906 2007-01-31  Jean-Louis Martineau  <martineau@zmanda.com>  (tiny change)
61907
61908         * lib/gai_strerror.c (values): Add EAI_OVERFLOW.
61909
61910 2007-01-30  Jim Meyering  <jim@meyering.net>
61911
61912         * lib/mpsort.c (mpsort): Remove spurious "return" in void function.
61913
61914 2007-01-29  Bruno Haible  <bruno@clisp.org>
61915
61916         * lib/allocsa.h: Use '#if HAVE_*' instead of '#ifdef HAVE_*'.
61917         * lib/execute.c: Likewise.
61918         * lib/pipe.c: Likewise.
61919         * lib/printf-args.h: Likewise.
61920         * lib/printf-args.c: Likewise.
61921         * lib/printf-parse.c: Likewise.
61922         * lib/vasnprintf.c: Likewise.
61923
61924 2007-01-29  Eric Blake  <ebb9@byu.net>
61925
61926         * lib/memrchr.c: Assume <string.h> unconditionally, to pull in
61927         declaration.
61928
61929 2007-01-29  Paul Eggert  <eggert@cs.ucla.edu>
61930
61931         * lib/strptime.h (strptime): Use 'restrict' for args where
61932         POSIX requires this.
61933         * lib/strptime.c (strptime): Likewise.
61934         Change license notice from LGPL to GPL, since gnulib-tool will
61935         change this as needed.
61936         Include <config.h> if _LIBC is not defined, not if HAVE_CONFIG_H is
61937         defined.
61938         Include "strptime.h" first, to check interface.
61939         Do not #undef _LIBC and _NL_CURRENT.
61940         Do not include <stdlib.h>; no longer needed.
61941         Include "time_r.h" and declare ptime_locale_status
61942         only if _LIBC is not defined.
61943         (__P): Remove unused macro.
61944         (match_string): Bring back glibc version, but use it only if _LIBC
61945         is defined.
61946         (__strptime_internal): Compile tm_gmtoff code if _LIBC is defined, too.
61947         Remove unnecessary assertion and abort() call.
61948         Use #ifdef _NL_CURRENT rather than #if 0, for benefit of glibc.
61949         * m4/strptime.m4: Fix serial number comment.
61950         (gl_FUNC_STRPTIME): Require AC_C_RESTRICT, gl_TM_GMTOFF.
61951         * modules/strptime (Files): Add m4/tm_gmtoff.m4.
61952         (Depends-on): Add time_r.
61953
61954 2007-01-29  Bruno Haible  <bruno@clisp.org>
61955
61956         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
61957         strptime.
61958         * modules/strptime (Depends-on): Add stdbool.
61959         * lib/strptime.h: Include <time.h> always. Add comments.
61960
61961 2007-01-29  Yoann Vandoorselaere  <yoann@prelude-ids.org>
61962
61963         * modules/strptime: New file.
61964         * lib/strptime.h: New file.
61965         * lib/strptime.c: New file.
61966         * m4/strptime.m4: New file.
61967
61968 2007-01-28  Paul Eggert  <eggert@cs.ucla.edu>
61969
61970         * MODULES.html.sh: New module mpsort.
61971         * lib/mpsort.c, lib/mpsort.h, m4/mpsort.m4, modules/mpsort: New files.
61972
61973         * lib/regex.h (_Restrict_): Renamed from __restrict, to avoid
61974         a circularity problem with HP-UX ia64 reported by Bob Proulx in
61975         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00394.html>.
61976         All uses changed.
61977         (_Restrict_arr_): Renamed from __restrict_arr, for similar reasons.
61978         All uses changed.
61979         * lib/regcomp.c, lib/regexec.c: Change all uses from __restrict
61980         to _Restrict_.
61981         * lib/regexec.c (regexec): Declare pmatch with _Restrict_arr_, so that
61982         the parameter matches the prototype.
61983
61984 2007-01-28  Jim Meyering  <jim@meyering.net>
61985
61986         * modules/sys_time (Makefile.am) [MOSTLYCLEANFILES]: Do use
61987         sys/time.h here, reverting that part of the previous patch:
61988         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/8959>.
61989
61990 2007-01-28  Bruno Haible  <bruno@clisp.org>
61991
61992         * modules/sys_time (Makefile.am): Build sys/time.h only when it's the
61993         value of $(SYS_TIME_H).
61994         [MOSTLYCLEANFILES]: Now that sys/time.h is created only when needed,
61995         remove it conditionally, too. [added by Jim Meyering]
61996         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Set SYS_TIME_H.
61997         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY):
61998         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Set SYS_TIME_H when setting
61999         GETTIMEOFDAY_REPLACEMENT to 1.
62000
62001 2007-01-28  Bruno Haible  <bruno@clisp.org>
62002
62003         * m4/unistd_h.m4 (gl_HEADER_UNISTD_DEFAULTS): New macro.
62004         (gl_HEADER_UNISTD): Require it. Don't set UNISTD_H to empty here.
62005         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_HEADER_UNISTD_DEFAULTS.
62006         Set UNISTD_H instead of UNISTD_H2.
62007         * modules/fchdir (BUILT_SOURCES): Drop $(UNISTD_H2).
62008
62009 2007-01-28  Bruno Haible  <bruno@clisp.org>
62010
62011         * modules/mbchar (Makefile.am): Add mbchar.c to lib_SOURCES.
62012         * m4/mbchar.m4 (gl_MBCHAR): Remove AC_LIBOBJ invocation.
62013
62014 2007-01-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
62015
62016         * gnulib-tool (func_emit_lib_Makefile_am, func_add_or_update)
62017         (func_create_testdir): Ensure C locale for `grep' and `tr'
62018         character ranges.
62019         (func_create_megatestdir): Avoid one `grep'.  Fix bug in
62020         ACLOCAL_AMFLAGS parsing state machine.
62021
62022 2007-01-27  Bruno Haible  <bruno@clisp.org>
62023
62024         * modules/unistr/base: Update.
62025
62026 2007-01-27  Bruno Haible  <bruno@clisp.org>
62027
62028         Rename u32-mbtouc -> u32-mbtouc-unsafe, u32-mbtouc-safe -> u32-mbtouc,
62029         u32_mbtouc -> u32_mbtouc_unsafe, u32_mbtouc_safe -> u32_mbtouc.
62030         * modules/unistr/u32-mbtouc-unsafe: Renamed from
62031         modules/unistr/u32-mbtouc.
62032         * lib/unistr/u32-mbtouc-unsafe.c: Renamed from lib/unistr/u32-mbtouc.c.
62033         * lib/unistr.h: Update.
62034         * lib/linebreak.c: Update.
62035         * modules/unistr/u32-mbtouc: Renamed from
62036         modules/unistr/u32-mbtouc-safe.
62037         * lib/unistr/u32-mbtouc.c: Renamed from lib/unistr/u32-mbtouc-safe.c.
62038         * lib/unistr.h: Update.
62039         * lib/unistr/u32-to-u8.c: Update.
62040         * lib/unistr/u32-to-u16.c: Update.
62041
62042 2007-01-27  Bruno Haible  <bruno@clisp.org>
62043
62044         Rename utf16-ucs4 -> utf16-ucs4-unsafe, utf16-ucs4-safe -> utf16-ucs4,
62045         u16_mbtouc -> u16_mbtouc_unsafe, u16_mbtouc_safe -> u16_mbtouc.
62046         * modules/utf16-ucs4-unsafe: Renamed from modules/utf16-ucs4.
62047         * lib/utf16-ucs4-unsafe.h: Renamed from lib/utf16-ucs4.h.
62048         * lib/unistr/utf16-ucs4-unsafe.c: Renamed from lib/unistr/utf16-ucs4.c.
62049         * modules/unistr/u16-mbtouc-unsafe: Renamed from
62050         modules/unistr/u16-mbtouc.
62051         * lib/unistr/u16-mbtouc-unsafe.c: Renamed from lib/unistr/u16-mbtouc.c.
62052         * lib/unistr.h: Update.
62053         * lib/linebreak.c: Update.
62054         * modules/linebreak: Update.
62055         * modules/utf16-ucs4: Renamed from modules/utf16-ucs4-safe.
62056         * lib/utf16-ucs4.h: Renamed from lib/utf16-ucs4-safe.h.
62057         * lib/unistr/utf16-ucs4.c: Renamed from lib/unistr/utf16-ucs4-safe.c.
62058         * modules/unistr/u16-mbtouc: Renamed from
62059         modules/unistr/u16-mbtouc-safe.
62060         * lib/unistr/u16-mbtouc.c: Renamed from lib/unistr/u16-mbtouc-safe.c.
62061         * lib/unistr.h: Update.
62062         * lib/unistr/u16-to-u8.c: Update.
62063         * modules/unistr/u16-to-u8: Update.
62064         * lib/unistr/u16-to-u32.c: Update.
62065         * modules/unistr/u16-to-u32: Update.
62066
62067 2007-01-27  Bruno Haible  <bruno@clisp.org>
62068
62069         Rename utf8-ucs4 -> utf8-ucs4-unsafe, utf8-ucs4-safe -> utf8-ucs4,
62070         u8_mbtouc -> u8_mbtouc_unsafe, u8_mbtouc_safe -> u8_mbtouc.
62071         * modules/utf8-ucs4-unsafe: Renamed from modules/utf8-ucs4.
62072         * lib/utf8-ucs4-unsafe.h: Renamed from lib/utf8-ucs4.h.
62073         * lib/unistr/utf8-ucs4-unsafe.c: Renamed from lib/unistr/utf8-ucs4.c.
62074         * modules/unistr/u8-mbtouc-unsafe: Renamed from
62075         modules/unistr/u8-mbtouc.
62076         * lib/unistr/u8-mbtouc-unsafe.c: Renamed from lib/unistr/u8-mbtouc.c.
62077         * lib/unistr.h: Update.
62078         * lib/striconveh.c: Update.
62079         * modules/striconveh: Update.
62080         * lib/linebreak.c: Update.
62081         * modules/linebreak: Update.
62082         * modules/utf8-ucs4: Renamed from modules/utf8-ucs4-safe.
62083         * lib/utf8-ucs4.h: Renamed from lib/utf8-ucs4-safe.h.
62084         * lib/unistr/utf8-ucs4.c: Renamed from lib/unistr/utf8-ucs4-safe.c.
62085         * modules/unistr/u8-mbtouc: Renamed from modules/unistr/u8-mbtouc-safe.
62086         * lib/unistr/u8-mbtouc.c: Renamed from lib/unistr/u8-mbtouc-safe.c.
62087         * lib/unistr.h: Update.
62088         * lib/striconveh.c: Update.
62089         * modules/striconveh: Update.
62090         * lib/unistr/u8-to-u16.c: Update.
62091         * modules/unistr/u8-to-u16: Update.
62092         * lib/unistr/u8-to-u32.c: Update.
62093         * modules/unistr/u8-to-u32: Update.
62094
62095 2007-01-27  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
62096
62097         Sync from Libtool.
62098         * lib/argz.c: Do not include strings.h nor memory.h, include
62099         string.h unconditionally.  Patch by Simon Josefsson.
62100
62101 2007-01-27  Bruno Haible  <bruno@clisp.org>
62102
62103         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): New macro, extracted
62104         from gl_HEADER_STRING_H_BODY.
62105         (gl_HEADER_STRING_H_BODY): Require it.
62106         * m4/memmem.m4 (gl_FUNC_MEMMEM): Require gl_HEADER_STRING_H_DEFAULTS.
62107         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Likewise.
62108         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Likewise.
62109         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Likewise.
62110         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
62111         * m4/strcase.m4 (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP): Likewise.
62112         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
62113         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Likewise.
62114         * m4/strdup.m4 (gl_FUNC_STRDUP): Likewise.
62115         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
62116         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Likewise.
62117         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Likewise.
62118         * m4/strsep.m4 (gl_FUNC_STRSEP): Likewise.
62119         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
62120         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
62121
62122 2007-01-27  Bruno Haible  <bruno@clisp.org>
62123
62124         * gnulib-tool (func_emit_lib_Makefile_am): If $for_test is true, turn
62125         check_PROGRAMS into noinst_PROGRAMS.
62126         (func_emit_tests_Makefile_am): Likewise. Also don't initialize
62127         check_PROGRAMS in this case.
62128         (func_import): Set for_test to false.
62129         (func_create_testdir): Set for_test to true.
62130
62131 2007-01-27  Yoann Vandoorselaere <yoann.v@prelude-ids.com>
62132             Bruno Haible  <bruno@clisp.org>
62133
62134         * modules/strcasestr (Files): Remove lib/strcasestr.h.
62135         (Depends-on): Add string.
62136         (Includes): Use <string.h> instead of strcasestr.h.
62137         * modules/string (Makefile.am): Also substitute the value of
62138         REPLACE_STRCASESTR.
62139         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Don't define strcasestr here;
62140         assume strcasestr is declared in <string.h> not <strings.h>. Also
62141         set REPLACE_STRCASESTR.
62142         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Provide a default value for
62143         REPLACE_STRCASESTR.
62144         * lib/strcasestr.h: Remove file.
62145         * lib/strcasestr.c: Include <string.h> instead of strcasestr.h.
62146         * lib/string_.h (strcasestr): New declaration.
62147
62148 2007-01-27  Bruno Haible  <bruno@clisp.org>
62149
62150         * lib/string_.h: Use 'extern'.
62151
62152 2007-01-27  Jim Meyering  <jim@meyering.net>
62153
62154         * lib/regex_internal.c (re_string_reconstruct): Remove declaration
62155         of set-but-not-used local, "q".
62156
62157         * lib/mempcpy.c: Include <config.h> before <string.h>.
62158         This fixes a compilation error on HP-UX, due to the system's
62159         "restrict"-using mempcpy prototype.
62160
62161 2007-01-26  Bruno Haible  <bruno@clisp.org>
62162
62163         Small optimization.
62164         * lib/javacomp.c: Include c-strstr.h.
62165          (is_envjavac_gcj): Use c_strstr instead of strstr.
62166         * modules/javacomp (Depends-on): Add c-strstr, remove strstr.
62167
62168 2007-01-26  Bruno Haible  <bruno@clisp.org>
62169
62170         * MODULES.html.sh (Unicode string functions): Add the new modules.
62171
62172         * modules/uniconv/u32-strconv-to-locale: New file.
62173         * lib/uniconv/u32-strconv-to-locale.c: New file.
62174
62175         * modules/uniconv/u16-strconv-to-locale: New file.
62176         * lib/uniconv/u16-strconv-to-locale.c: New file.
62177
62178         * modules/uniconv/u8-strconv-to-locale: New file.
62179         * lib/uniconv/u8-strconv-to-locale.c: New file.
62180
62181         * modules/uniconv/u32-strconv-from-locale: New file.
62182         * lib/uniconv/u32-strconv-from-locale.c: New file.
62183
62184         * modules/uniconv/u16-strconv-from-locale: New file.
62185         * lib/uniconv/u16-strconv-from-locale.c: New file.
62186
62187         * modules/uniconv/u8-strconv-from-locale: New file.
62188         * lib/uniconv/u8-strconv-from-locale.c: New file.
62189
62190         * modules/uniconv/u32-strconv-to-enc: New file.
62191         * lib/uniconv/u32-strconv-to-enc.c: New file.
62192         * modules/uniconv/u32-strconv-to-enc-tests: New file.
62193         * tests/uniconv/test-u32-strconv-to-enc.c: New file.
62194
62195         * modules/uniconv/u16-strconv-to-enc: New file.
62196         * lib/uniconv/u16-strconv-to-enc.c: New file.
62197         * lib/uniconv/u-strconv-to-enc.h: New file.
62198         * modules/uniconv/u16-strconv-to-enc-tests: New file.
62199         * tests/uniconv/test-u16-strconv-to-enc.c: New file.
62200
62201         * modules/uniconv/u8-strconv-to-enc: New file.
62202         * lib/uniconv/u8-strconv-to-enc.c: New file.
62203         * modules/uniconv/u8-strconv-to-enc-tests: New file.
62204         * tests/uniconv/test-u8-strconv-to-enc.c: New file.
62205
62206         * modules/uniconv/u32-strconv-from-enc: New file.
62207         * lib/uniconv/u32-strconv-from-enc.c: New file.
62208         * modules/uniconv/u32-strconv-from-enc-tests: New file.
62209         * tests/uniconv/test-u32-strconv-from-enc.c: New file.
62210
62211         * modules/uniconv/u16-strconv-from-enc: New file.
62212         * lib/uniconv/u16-strconv-from-enc.c: New file.
62213         * modules/uniconv/u16-strconv-from-enc-tests: New file.
62214         * tests/uniconv/test-u16-strconv-from-enc.c: New file.
62215
62216         * modules/uniconv/u8-strconv-from-enc: New file.
62217         * lib/uniconv/u8-strconv-from-enc.c: New file.
62218         * lib/uniconv/u-strconv-from-enc.h: New file.
62219         * modules/uniconv/u8-strconv-from-enc-tests: New file.
62220         * tests/uniconv/test-u8-strconv-from-enc.c: New file.
62221
62222         * modules/uniconv/u32-conv-from-enc: New file.
62223         * lib/uniconv/u32-conv-from-enc.c: New file.
62224         * modules/uniconv/u32-conv-from-enc-tests: New file.
62225         * tests/uniconv/test-u32-conv-from-enc.c: New file.
62226
62227         * modules/uniconv/u16-conv-from-enc: New file.
62228         * lib/uniconv/u16-conv-from-enc.c: New file.
62229         * lib/uniconv/u-conv-from-enc.h: New file.
62230         * modules/uniconv/u16-conv-from-enc-tests: New file.
62231         * tests/uniconv/test-u16-conv-from-enc.c: New file.
62232
62233         * modules/uniconv/u8-conv-from-enc: New file.
62234         * lib/uniconv/u8-conv-from-enc.c: New file.
62235         * modules/uniconv/u8-conv-from-enc-tests: New file.
62236         * tests/uniconv/test-u8-conv-from-enc.c: New file.
62237
62238         * modules/uniconv/base: New file.
62239         * lib/uniconv.h: New file.
62240
62241 2007-01-26  Paul Eggert  <eggert@cs.ucla.edu>
62242
62243         * doc/gnulib-tool.texi (Initial import): Update to match current
62244         behavior with strdup module.
62245         * lib/.cppi-disable: Remove strcase.h, strdup.h, strndup.h, strnlen.h.
62246         * lib/memmem.h: Remove; all uses removed.  This is now done
62247         by <string.h>.
62248         * lib/mempcpy.h: Likewise.
62249         * lib/memrchr.h: Likewise.
62250         * lib/stpcpy.h: Likewise.
62251         * lib/stpncpy.h: Likewise.
62252         * lib/strcase.h: Likewise.
62253         * lib/strchrnul.h: Likewise.
62254         * lib/strdup.h: Likewise.
62255         * lib/strndup.h: Likewise.
62256         * lib/strnlen.h: Likewise.
62257         * lib/strpbrk.h: Likewise.
62258         * lib/strsep.h: Likewise.
62259         * lib/strstr.h: Likewise.
62260         * lib/strtok_r.h: Likewise.
62261         * lib/string_.h: New file.
62262         * lib/argp-namefrob.h: Don't include no-longer-existent include files.
62263         Rely on <string.h> instead.
62264         * lib/canon-host.c: Likewise.
62265         * lib/chdir-long.c: Likewise.
62266         * lib/concatpath.c: Likewise.
62267         * lib/exclude.c: Likewise.
62268         * lib/fchdir.c: Likewise.
62269         * lib/getaddrinfo.c: Likewise.
62270         * lib/getcwd.c: Likewise.
62271         * lib/getsubopt.c: Likewise.
62272         * lib/glob.c: Likewise.
62273         * lib/hard-locale.c: Likewise.
62274         * lib/iconvme.c: Likewise.
62275         * lib/javacomp.c: Likewise.
62276         * lib/mempcpy.c: Likewise.
62277         * lib/memrchr.c: Likewise.
62278         * lib/regex_internal.h: Likewise.
62279         * lib/stpncpy.c: Likewise.
62280         * lib/strcasecmp.c: Likewise.
62281         * lib/strchrnul.c: Likewise.
62282         * lib/strdup.c: Likewise.
62283         * lib/striconv.c: Likewise.
62284         * lib/striconveh.c: Likewise.
62285         * lib/striconveha.c: Likewise.
62286         * lib/strncasecmp.c: Likewise.
62287         * lib/strndup.c: Likewise.
62288         * lib/strnlen.c: Likewise.
62289         * lib/strsep.c: Likewise.
62290         * lib/strstr.c: Likewise.
62291         * lib/strtok_r.c: Likewise.
62292         * lib/userspec.c: Likewise.
62293         * lib/w32spawn.h: Likewise.
62294         * lib/xstrndup.c: Likewise.
62295         * lib/mountlist.c (strstr): Remove decl.
62296         * m4/string_h.m4: New file.
62297         * m4/memmem.m4 (gl_FUNC_MEMMEM): Set HAVE_DECL_MEMMEM if necessary.
62298         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Set HAVE_MEMPCPY if necessary.
62299         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Set HAVE_MEMRCHR
62300         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Set HAVE_STPCPY if necessary.
62301         * m4/stpncpy.m4 (gl_PREREQ_STPNCPY): Set HAVE_STPNCPY if necessary.
62302         * m4/strcase.m4 (gl_FUNC_STRCASECMP):
62303         Set REPLACE_STRCASECMP if necessary.
62304         (gl_FUNC_STRNCASECMP): Set HAVE_DECL_STRNCASECMP if necessary.
62305         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Set HAVE_STRCHRNUL if necessary.
62306         * m4/strdup.m4 (gl_FUNC_STRDUP): Set HAVE_DECL_STRDUP if necessary.
62307         * m4/strndup.m4 (gl_FUNC_STRNDUP): Set HAVE_DECL_STRNLEN and
62308         HAVE_DECL_STRDUP if necessary.
62309         (gl_PREREQ_STRNLEN): Don't bother to check for strnlen decl,
62310         since gl_FUNC_STRNDUP does that now.
62311         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Set HAVE_DECL_STRNLEN if necessary.
62312         Check for decl here...
62313         (gl_PREREQ_STRNLEN): ... not here.
62314         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Set HAVE_STRPBRK if necessary.
62315         * m4/strsep.m4 (gl_FUNC_STRSEP): Set HAVE_STRSEP if necessary.
62316         * m4/strstr.m4 (gl_FUNC_STRSTR): Set REPLACE_STRSTR if necessary.
62317         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Set HAVE_DECL_STRTOK_R if
62318         necessary.
62319         * modules/string: New file.
62320         * modules/memmem (Files): Remove special-purpose include file.
62321         (Depends-on): Add string.
62322         (Include): Include <string.h>, not the removed file.
62323         * modules/mempcpy: Likewise.
62324         * modules/memrchr: Likewise.
62325         * modules/stpcpy: Likewise.
62326         * modules/stpncpy: Likewise.
62327         * modules/strcase: Likewise.
62328         * modules/strchrnul: Likewise.
62329         * modules/strdup: Likewise.
62330         * modules/strndup: Likewise.
62331         * modules/strnlen: Likewise.
62332         * modules/strpbrk: Likewise.
62333         * modules/strsep: Likewise.
62334         * modules/strstr: Likewise.
62335         * modules/strtok_r: Likewise.
62336         * tests/test-dirname.c: Don't include "strdup.h", since
62337         <string.h> now suffices.
62338         * tests/test-memmem.c: Don't include "memmem.h", since
62339         <string.h> now suffices.
62340
62341 2007-01-25  Bruno Haible  <bruno@clisp.org>
62342
62343         * lib/striconveh.c (mem_cd_iconveh_internal): Ignore *lengthp if
62344         *resultp is 0.
62345
62346         * lib/unistr/u16-to-u8.c (u16_to_u8): Fix u8_uctomb invocation.
62347         * lib/unistr/u32-to-u8.c (u32_to_u8): Likewise.
62348         * lib/unistr/u8-to-u16.c (u8_to_u16): Fix u16_uctomb invocation.
62349         * lib/unistr/u32-to-u16.c (u32_to_u16): Likewise.
62350
62351         * modules/unistr/u8-to-u16 (Depends-on): Add missing modules.
62352         * modules/unistr/u8-to-u32 (Depends-on): Add missing modules.
62353         * modules/unistr/u16-to-u8 (Depends-on): Add missing modules.
62354         * modules/unistr/u16-to-u32 (Depends-on): Add missing modules.
62355         * modules/unistr/u32-to-u8 (Depends-on): Add missing modules.
62356         * modules/unistr/u32-to-u16 (Depends-on): Add missing modules.
62357
62358 2007-01-24  Bruno Haible  <bruno@clisp.org>
62359
62360         Don't AC_REQUIRE autoconf macros that invoke AC_LIBOBJ. See
62361         <http://lists.gnu.org/archive/html/bug-gnulib/2006-10/msg00279.html>.
62362         * m4/argp.m4 (gl_ARGP): Invoke, don't require, gl_GETOPT_SUBSTITUTE.
62363         * m4/fts.m4 (gl_FUNC_FTS, gl_FUNC_FTS_LGPL): Invoke, don't require,
62364         gl_FUNC_FTS_CORE.
62365         (gl_FUNC_FTS_CORE): Invoke, don't require, gl_FUNC_OPENAT.
62366         * m4/lstat.m4 (gl_FUNC_LSTAT): Invoke, don't require,
62367         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
62368         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Invoke, don't require, AC_FUNC_MEMCMP.
62369         * m4/mktime.m4 (gl_FUNC_MKTIME): Invoke, don't require, AC_FUNC_MKTIME.
62370         * m4/openat.m4 (gl_FUNC_OPENAT): Invoke, don't require,
62371         gl_FUNC_FCHOWNAT.
62372         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Invoke, don't require,
62373         gl_FUNC_STRFTIME.
62374         * m4/strtod.m4 (gl_FUNC_STRTOD): Invoke, don't require, AC_FUNC_STRTOD.
62375         Reported by Ralf Wildenhues.
62376
62377 2007-01-24  Bruno Haible  <bruno@clisp.org>
62378
62379         Drop AC_REQUIRE calls that are redundant with the module dependencies.
62380         * m4/canon-host.m4 (gl_PREREQ_CANON_HOST): Don't require
62381         gl_GETADDRINFO.
62382         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Don't require AM_STDBOOL_H,
62383         gl_FUNC_MEMPCPY, gl_FUNC_OPENAT, gl_FUNC_MEMRCHR.
62384         * m4/openat.m4 (gl_PREREQ_OPENAT): Don't require gl_SAVE_CWD.
62385
62386 2007-01-24  Paul Eggert  <eggert@cs.ucla.edu>
62387
62388         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Add test for glibc bug 361.
62389         Don't use 'exit'; just return from 'main'.
62390         (_AC_LIBOBJ_FNMATCH): Check for headers and functions just once.
62391
62392         * lib/fnmatch_.h: Readjust white space and comments to match
62393         glibc, to avoid spurious diffs.
62394
62395 2007-01-23  Paul Eggert  <eggert@cs.ucla.edu>
62396
62397         * lib/fnmatch_loop.c (internal_fnmatch) [!_LIBC]: #if-out the
62398         2004-12-01 change by Jakub Jelinek, since this code won't compile
62399         if !LIBC.  Problem reported by Bob Proulx.
62400
62401 2007-01-23  Bruno Haible  <bruno@clisp.org>
62402
62403         * lib/striconveh.c: Include c-strcaseeq.h.
62404         (mem_iconveh, str_iconveh): Use STRCASEEQ instead of c_strcasecmp.
62405         * modules/striconveh (Depends-on): Add c-strcaseeq.
62406
62407 2007-01-23  Bruno Haible  <bruno@clisp.org>
62408
62409         * MODULES.html.sh (String handling): Add streq, c-strcaseeq.
62410
62411         * modules/c-strcaseeq: New file.
62412         * lib/c-strcaseeq.h: New file.
62413
62414         * modules/streq: New file.
62415         * lib/streq.h: New file.
62416
62417 2007-01-23  Bruno Haible  <bruno@clisp.org>
62418
62419         * modules/striconveha-tests: New file.
62420         * tests/test-striconveha.c: New file.
62421
62422         * lib/striconveha.h: Include <stdbool.h>.
62423         (mem_iconveha, str_iconveha): Add 'transliterate' argument.
62424         * lib/striconveha.c: Include allocsa.h, strdup.h, c-strcase.h.
62425         (mem_iconveha_notranslit): Renamed from mem_iconveha.
62426         (mem_iconveha): New function.
62427         (str_iconveha_notranslit): Renamed from str_iconveha.
62428         (str_iconveha): New function.
62429         * modules/striconveha (Depends-on): Add stdbool, allocsa, strdup,
62430         c-strcase.
62431
62432 2007-01-23  Bruno Haible  <bruno@clisp.org>
62433
62434         * lib/striconveha.c (mem_iconveha): Fix endless recursion. Try all
62435         encodings without forgiving before trying any encoding with handler.
62436         (str_iconveha): Try all encodings without forgiving before trying any
62437         encoding with handler.
62438
62439 2007-01-23  Paul Eggert  <eggert@cs.ucla.edu>
62440
62441         Import the following changes from libc.
62442
62443         2005-10-14  Ulrich Drepper  <drepper@redhat.com>
62444
62445         * lib/fnmatch_loop.c: Adjust for changed secondary hash function.
62446
62447         2004-12-01  Jakub Jelinek  <jakub@redhat.com>
62448
62449         * lib/fnmatch_loop.c (internal_fnmatch): Clear is_seqval after
62450         normal_bracket label.
62451
62452         2004-09-01  Jakub Jelinek  <jakub@redhat.com>
62453
62454         [BZ #361]
62455         * lib/fnmatch_loop.c (FCT): For backslash between brackets, branch
62456         to normal_bracket after fetching the next character.
62457
62458 2007-01-22  Bruno Haible  <bruno@clisp.org>
62459
62460         * lib/striconveh.h (mem_cd_iconveh, mem_iconveh): Add 'offsets'
62461         argument.
62462         * lib/striconveh.c (iconv_carefully_1): New function.
62463         (mem_cd_iconveh_internal, mem_cd_iconveh, mem_iconveh): Add 'offsets'
62464         argument.
62465         (str_cd_iconveh): Update.
62466         * lib/striconveha.h (mem_iconveha): Add 'offsets' argument.
62467         * lib/striconveha.c (mem_iconveha): Add 'offsets' argument.
62468         * tests/test-striconveh.c (MAGIC): New macro.
62469         (new_offsets): New function.
62470         (main): Test call with and without offsets.
62471
62472 2007-01-22  Bruno Haible  <bruno@clisp.org>
62473
62474         * modules/sys_stat (Makefile.am): Use @MKDIR_P@ instead of $(MKDIR_P).
62475         * modules/sys_select (Makefile.am): Likewise.
62476         * modules/sys_socket (Makefile.am): Likewise.
62477         * modules/sys_time (Makefile.am): Likewise.
62478
62479 2007-01-22  Paul Eggert  <eggert@cs.ucla.edu>
62480
62481         * modules/gettimeofday (License): Change from GPL to LGPL, since
62482         gettimeofday is a library function.
62483
62484 2007-01-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
62485
62486         * lib/poll.c (rpl_poll): Don't check against FD_SETSIZE under Win32.
62487
62488 2007-01-21  Bruno Haible  <bruno@clisp.org>
62489
62490         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): New macro.
62491
62492 2007-01-21  Bruno Haible  <bruno@clisp.org>
62493
62494         * modules/striconveha: New file.
62495         * lib/striconveha.h: New file.
62496         * lib/striconveha.c: New file.
62497         * MODULES.html.sh (Internationalization functions): Add striconveha.
62498         * lib/striconv.c (str_iconv): Optimize the case of an empty input
62499         string.
62500         * lib/striconveh.c (mem_iconveh, str_iconveh): Likewise.
62501
62502 2007-01-21  Bruno Haible  <bruno@clisp.org>
62503
62504         * lib/striconv.c (str_iconv): Guarantee errno is set when strdup fails.
62505         * lib/striconveh.c (str_iconveh): Likewise.
62506
62507 2007-01-21  Bruno Haible  <bruno@clisp.org>
62508
62509         * lib/striconveh.h (mem_iconveh): New declaration.
62510         * lib/striconveh.c (mem_iconveh): New function.
62511         * tests/test-striconveh.c (main): Add tests for mem_iconveh.
62512
62513 2007-01-21  Bruno Haible  <bruno@clisp.org>
62514
62515         * lib/xstriconv.h (xmem_cd_iconv): Change specification.
62516
62517         * lib/striconveh.h (mem_cd_iconveh): Change specification.
62518         * lib/striconveh.c (mem_cd_iconveh): Don't free the user-supplied
62519         original result buffer.
62520         (str_cd_iconveh): Update.
62521         * tests/test-striconveh.c (main): Update.
62522
62523         * lib/striconv.h (mem_cd_iconv): Change specification.
62524         * lib/striconv.c (mem_cd_iconv): Don't free the user-supplied original
62525         result buffer.
62526         (str_cd_iconv): Update.
62527         * tests/test-striconv.c (main): Update.
62528
62529 2007-01-21  Bruno Haible  <bruno@clisp.org>
62530
62531         * gnulib-tool: Fix test whether sed is GNU sed supporting --posix.
62532
62533 2007-01-20  Jim Meyering  <jim@meyering.net>
62534
62535         * lib/userspec.c (parse_with_separator): If a user or group string
62536         starts with "+", skip the corresponding name-to-ID look-up, since
62537         such a look-up must fail: user and group names may not include "+".
62538
62539 2007-01-19  Paul Eggert  <eggert@cs.ucla.edu>
62540
62541         * lib/poll.c: Include sys/time.h and time.h unconditionally,
62542         since we now assume the sys_time module.
62543         * m4/poll.m4 (gl_PREREQ_POLL): Don't require AC_HEADER_TIME or
62544         check for sys/time.h; no longer needed.
62545         * modules/poll (Depends-on): Depend on sys_time.
62546
62547 2007-01-18  Bruno Haible  <bruno@clisp.org>
62548
62549         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove test for <sys/time.h>.
62550         * m4/strftime.m4 (gl_FUNC_STRFTIME): Likewise.
62551
62552         * m4/tempname.m4 (gl_PREREQ_TEMPNAME): Remove tests for sys/time.h and
62553         gettimeofday.
62554
62555         * tests/test-gettimeofday.c: Include <time.h>.
62556         (dummy): Remove variable.
62557
62558         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Renamed from
62559         gl_HEADER_SYS_TIME_H.
62560         (gl_HEADER_SYS_TIME_H): New macro.
62561
62562         * lib/sys_time_.h: Test GETTIMEOFDAY_REPLACEMENT instead of
62563         HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
62564         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY,
62565         gl_FUNC_GETTIMEOFDAY_CLOBBER): Set GETTIMEOFDAY_REPLACEMENT instead of
62566         HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
62567         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H): Initialize
62568         GETTIMEOFDAY_REPLACEMENT instead of HAVE_GETTIMEOFDAY_POSIX_SIGNATURE
62569         and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
62570         * modules/sys_time (sys/time.h): Substitute GETTIMEOFDAY_REPLACEMENT
62571         instead of HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and
62572         GETTIMEOFDAY_CLOBBERS_LOCALTIME.
62573
62574         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Undo the
62575         last change; it caused a compilation error when cross-compiling to
62576         Cygwin.
62577
62578 2007-01-18  Jim Meyering  <jim@meyering.net>
62579
62580         Use "$(MKDIR_P) sys", not race-prone "test -d sys || mkdir sys".
62581         * modules/sys_stat (Makefile.am): Use "$(MKDIR_P) sys", rather
62582         than the race-prone "test -d sys || mkdir sys".
62583         (configure.ac): Use AC_PROG_MKDIR_P.
62584         * modules/sys_select: Likewise.
62585         * modules/sys_socket: Likewise.
62586         * modules/sys_time: Likewise.
62587
62588 2007-01-18  Eric Blake  <ebb9@byu.net>
62589
62590         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Also
62591         replace gettimeofday.
62592         * lib/gettimeofday.c (rpl_gettimeofday): Declare with replacement
62593         name, to avoid infinite recursion.
62594
62595 2007-01-17  Paul Eggert  <eggert@cs.ucla.edu>
62596
62597         * MODULES.html.sh (Support for systems lacking POSIX:2001): New
62598         module sys_time.
62599         * lib/gethrxtime.c: Include <sys/time.h>, since we can no longer
62600         assume timespec.h defines struct timeval.
62601         * lib/settime.c: Likewise.
62602         * lib/utimens.c: Likewise.
62603         * lib/gettime.c (gettime): Remove test against HAVE_GETTIMEOFDAY,
62604         since we now assume the gettimeofday module.
62605         * lib/tempname.c (__gen_tempname): Likewise.
62606         * lib/gettimeofday.h: Remove.
62607         * lib/gettimeofday.c: Include <sys/time.h> instead of "gettimeofday.h".
62608         Don't include <sys/types.h> and <stdlib.h>; shouldn't be needed.
62609         Include <time.h>, for 'time()'.
62610         (localtime_buffer_addr): Also use this workaround if
62611         TZSET_CLOBBERS_LOCALTIME.  Set to a dummy static variable by default,
62612         to simplify the uses.  All uses changed.
62613         (localtime, gmtime, tzset, gettimeofday): Reformat slightly so
62614         that #undef is inside {}, and 'const' follows type name consistently.
62615         (tzset): Define replacement only if TZSET_CLOBBERS_LOCALTIME.
62616         (gettimeofday): Do not use the maximum possible value for
62617         tv->tv_usec, since that might break usages other than ls.c.
62618         Instead, we'll leave ls.c alone.  This undoes today's patch
62619         by Bruno.  Add a compile-time warning for 1s-clock resolution;
62620         we've never observed the problem but might as well keep the
62621         canary.
62622         * lib/nanosleep.c: Include timespec.h first, for interface check.
62623         * lib/nanosleep.c: Include <sys/time.h> unconditionally, since we
62624         now assume the sys_time module.
62625         * lib/tempname.c: Likewise.
62626         * lib/timespec.h: Likewise.
62627         * lib/nanosleep.c: Don't worry about TIME_WITH_SYS_TIME; no longer
62628         needed.
62629         * lib/strftime.c: Likewise.
62630         * lib/timespec.h: Likewise.
62631         * lib/posixtm.c: Include posixtm.h first, for interface check.
62632         Don't worry about TM_IN_SYS_TIME; that's wayyy obsolete.
62633         * lib/posixtm.h: Include stdbool.h and time.h, for proper interface.
62634         * lib/strftime.c: Don't include <sys/types.h>; shouldn't be needed.
62635         * lib/sys_time_.h: New file.
62636         * lib/timespec.h (struct timespec): Use long int, not long.
62637         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY):
62638         (gl_FUNC_GETTIMEOFDAY_CLOBBER, gl_PREREQ_GETTIMEOFDAY):
62639         Remove obsolescent call to AC_HEADER_TIME.
62640         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
62641         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
62642         * m4/strftime.m4 (gl_FUNC_STRFTIME): Likewise.
62643         * m4/timespec.m4 (gl_TIMESPEC, gl_CHECK_TYPE_STRUCT_TIMESPEC):
62644         Likewise.
62645         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Likewise.
62646         * m4/utimbuf.m4 (gl_CHECK_TYPE_STRUCT_UTIMBUF): Likewise.
62647         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Move sys/time.h tests
62648         into the sys_time module.  Check for gettimeofday just once.
62649         Prefix our variables with gl_, not with ac_ or jm_.  Tighten test
62650         for gettimeofday signature to just check the signature.  Merely
62651         compile it, since linking doesn't test signature.  Improve test for
62652         whether gettimeofday.o is actually needed.
62653         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Renamed from
62654         AC_FUNC_GETTIMEOFDAY_CLOBBER.  All uses changed.  Use
62655         AC_RUN_IFELSE rather than AC_TRY_RUN.  If clobbering, set
62656         and define GETTIMEOFDAY_CLOBBERS_LOCALTIME.
62657         (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Don't define
62658         GETTIMEOFDAY_CLOBBERS_LOCALTIME; that's gl_FUNC_GETTIMEOFDAY_CLOBBER's
62659         job.  Don't define tzset; that's gl_FUNC_TZSET_CLOBBER's job.
62660         * m4/mktime.m4 (AC_FUNC_MKTIME): Just include <time.h> rather
62661         than worrying about sys/time.h.
62662         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
62663         Don't bother worrying about TIME_WITH_SYS_TIME.
62664         * m4/stat-time.m4 (gl_STAT_TIME): Likewise.
62665         * m4/posixtm.m4 (gl_POSIXTM): Remove obsolescent call to AC_STRUCT_TM.
62666         * m4/sys_time_h.m4: New file.
62667         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Require gl_HEADER_SYS_TIME_H.
62668         Don't include sys/time.h.  Return from main rather than exiting.
62669         Define TZSET_CLOBBERS_LOCALTIME, for consistency with other names;
62670         all uses changed.
62671         * modules/gethrxtime (Depends-on): Add sys_time.
62672         * modules/gettime (Depends-on): Likewise.
62673         * modules/gettimeofday (Depends-on): Likewise.
62674         * modules/nanosleep (Depends-on): Likewise.
62675         * modules/settime (Depends-on): Likewise.
62676         * modules/tempname (Depends-on): Likewise.
62677         * modules/utimens (Depends-on): Likewise.
62678         * modules/gettimeofday (Files): Remove lib/gettimeofday.h.
62679         (Include): Change back to <sys/time.h>.
62680         (Maintainer): Add self.
62681         * modules/sys_time: New file.
62682         * modules/tempname (Depends-on): Add gettimeofday.
62683         * tests/test-gettimeofday.c: Include <sys/time.h>
62684         rather than gettimeofday.h.
62685
62686 2007-01-17  Bruno Haible  <bruno@clisp.org>
62687
62688         * gnulib-tool (func_get_license): Revert last patch. Instead, let
62689         the license default to GPL.
62690         (func_create_testdir): Don't complain if a module is LGPL and its
62691         tests module depends on GPLed modules.
62692
62693 2007-01-17  Bruno Haible  <bruno@clisp.org>
62694
62695         * lib/gettimeofday.c (gettimeofday): Add code for the case
62696         HAVE_GETTIMEOFDAY && !GETTIMEOFDAY_CLOBBERS_LOCALTIME. Use the
62697         maximum possible value for tv->tv_usec, rather than the minimum one.
62698
62699 2005-10-08  Martin Lambers  <marlam@marlam.de>
62700 2005-10-08  Paul Eggert  <eggert@cs.ucla.edu>
62701 2007-01-16  Bruno Haible  <bruno@clisp.org>
62702
62703         * modules/gettimeofday (Files): Add lib/gettimeofday.h.
62704         (configure.ac): Remove AC_FUNC_GETTIMEOFDAY_CLOBBER. Add
62705         gl_FUNC_GETTIMEOFDAY.
62706         (Include): Add gettimeofday.h.
62707         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): New macro.
62708         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Don't invoke gl_PREREQ_GETTIMEOFDAY.
62709         (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Define
62710         GETTIMEOFDAY_CLOBBERS_LOCALTIME. Invoke gl_PREREQ_GETTIMEOFDAY here.
62711         (gl_PREREQ_GETTIMEOFDAY): Check for <sys/timeb.h> and _ftime.
62712         * lib/gettimeofday.h: New file.
62713         * lib/gettimeofday.c: Include <sys/timeb.h>.
62714         (localtime_buffer_addr, rpl_localtime, rpl_gmtime, rpl_tzset): Define
62715         only if GETTIMEOFDAY_CLOBBERS_LOCALTIME.
62716         (rpl_gettimeofday) [!HAVE_GETTIMEOFDAY]: Use _ftime() when available;
62717         fall back on time().
62718
62719         * tests/test-gettimeofday.c: New file.
62720         * modules/gettimeofday-tests: New file.
62721
62722 2007-01-16  Eric Blake  <ebb9@byu.net>
62723
62724         * modules/fnmatch (Depends-on): Depend on wchar.
62725         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Assume <wchar.h>.
62726         * m4/fnmatch.m4: Likewise.
62727         * modules/mbchar (Makefile.am): Assume <wchar.h>.
62728         * m4/mbchar.m4: Likewise.
62729         * modules/mbswidth (Depends-on): Depend on wchar.
62730         * lib/mbswidth.c: Assume <wchar.h>.
62731         * m4/mbswidth.m4: Likewise.
62732         * modules/quotearg (Depends-on): Depend on wchar.
62733         * lib/quotearg.c: Assume <wchar.h>.
62734         * m4/quotearg.m4: Likewise.
62735         * modules/regex (Depends-on): Depend on wchar.
62736         * lib/regex_internal.h: Assume <wchar.h>.
62737         * m4/regex.m4: Likewise.
62738         * modules/stdint (Depends-on): Depend on wchar.
62739         * lib/stdint_.h [!defined WCHAR_MIN]: Assume <wchar.h>.
62740         * m4/stdint.m4: Likewise.
62741         * tests/test-stdint.c [HAVE_WINT_T]: Likewise.
62742         * modules/strftime (Depends-on): Depend on wchar.
62743         * lib/strftime.c (DO_MULTIBYTE): Assume <wchar.h>.
62744         * modules/strtol (Depends-on): Depend on wchar.
62745         * lib/strtol.c: Assume <wchar.h>.
62746         * modules/wcwidth (Depends-on): Depend on wchar.
62747         * lib/wcwidth.h: Assume <wchar.h>.
62748         * m4/wcwidth.m4: Likewise.
62749
62750 2007-01-16  Bruno Haible  <bruno@clisp.org>
62751
62752         * modules/csharpexec-script: New, created from...
62753         * modules/csharpexec: ... this.
62754
62755 2007-01-16  Paolo Bonzini  <bonzini@gnu.org>
62756
62757         * modules/javaexec-script: New, created from...
62758         * modules/javaexec: ... this.
62759
62760 2007-01-16  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
62761
62762         * modules/poll (Dependencies): Add sys_select.
62763
62764 2007-01-15  Jim Meyering  <jim@meyering.net>
62765
62766         * m4/readutmp.m4 (gl_READUTMP): Work around AIX 4.3 struct-
62767         redefinition bug when using both <utmp.h> and <utmpx.h> headers.
62768         * lib/readutmp.h: Likewise.  Reported by Daniel Richard G. in
62769         <http://article.gmane.org/gmane.comp.gnu.core-utils.bugs/9415>.
62770
62771 2007-01-15  Bruno Haible  <bruno@clisp.org>
62772
62773         * modules/striconveh: New file.
62774         * lib/striconveh.h: New file.
62775         * lib/striconveh.c: New file.
62776         * MODULES.html.sh (Internationalization functions): Add striconveh.
62777
62778         * modules/striconveh-tests: New file.
62779         * tests/test-striconveh.c: New file.
62780
62781 2007-01-15  Bruno Haible  <bruno@clisp.org>
62782
62783         * lib/striconv.c (str_cd_iconv): Use the first algorithm if iconv is
62784         not from GNU libiconv or GNU libc.
62785
62786 2007-01-15  Bruno Haible  <bruno@clisp.org>
62787
62788         * doc/gnulib-intro.texi (Copyright): Explain the different license
62789         terms for module descriptions, autoconf macros, tests, documentation.
62790
62791 2007-01-14  Bruno Haible  <bruno@clisp.org>
62792
62793         * modules/striconv-tests: New file.
62794         * tests/test-striconv.c: New file.
62795
62796 2007-01-14  Bruno Haible  <bruno@clisp.org>
62797
62798         * modules/iconv-tests: New file.
62799         * tests/test-iconv.c: New file.
62800
62801 2007-01-14  Bruno Haible  <bruno@clisp.org>
62802
62803         * gnulib-tool (func_get_license): For test modules, use the license of
62804         the main module.
62805
62806 2007-01-14  Bruno Haible  <bruno@clisp.org>
62807
62808         * modules/iconv (Include): Clarify that <iconv.h> can only be included
62809         if iconv is found to exist.
62810
62811 2007-01-14  Bruno Haible  <bruno@clisp.org>
62812
62813         * modules/c-ctype-tests: New file.
62814         * tests/test-c-ctype.c: New file.
62815
62816 2007-01-14  Bruno Haible  <bruno@clisp.org>
62817
62818         * modules/binary-io-tests: New file.
62819         * tests/test-binary-io.sh: New file.
62820         * tests/test-binary-io.c: New file.
62821
62822 2007-01-14  Bruno Haible  <bruno@clisp.org>
62823
62824         * modules/array-oset-tests: New file.
62825         * tests/test-array_oset.c: New file.
62826
62827 2007-01-14  Bruno Haible  <bruno@clisp.org>
62828
62829         * modules/array-list-tests: New file.
62830         * tests/test-array_list.c: New file.
62831
62832 2007-01-14  Bruno Haible  <bruno@clisp.org>
62833
62834         * gnulib-tool (func_create_testdir): Don't unnecessarily run configure
62835         and make.
62836         Reported by Simon Josefsson in
62837         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00139.html>
62838
62839 2007-01-14  Bruno Haible  <bruno@clisp.org>
62840
62841         * modules/allocsa-tests: New file.
62842         * tests/test-allocsa.c: New file.
62843
62844 2007-01-14  Bruno Haible  <bruno@clisp.org>
62845
62846         * modules/fchdir (Depends-on): Add absolute-header.
62847         * modules/unistd (Depends-on): Likewise.
62848
62849 2006-12-30  Bruno Haible  <bruno@clisp.org>
62850
62851         * modules/fchdir: New file.
62852         * modules/unistd (Files): Add lib/unistd_.h.
62853         (Makefile.am): Generate unistd.h from unistd_.h.
62854         * lib/fchdir.c: New file.
62855         * lib/dirent_.h: New file.
62856         * lib/unistd_.h: New file.
62857         * lib/fcntl_.h (open) [FCHDIR_REPLACEMENT]: New replacement.
62858         * m4/fchdir.m4: New file.
62859         * m4/unistd_h.m4 (gl_PREREQ_UNISTD): New macro.
62860         (gl_HEADER_UNISTD): Invoke it.
62861         * lib/dup-safer.c (dup_safer) [FCHDIR_REPLACEMENT]: Use the dup
62862         function.
62863         * lib/backupfile.c (opendir, closedir): Undefine.
62864         * lib/chown.c (open, close): Undefine.
62865         * lib/clean-temp.c (open, close): Undefine.
62866         * lib/copy-file.c (open, close): Undefine.
62867         * lib/execute.c (open, close): Undefine.
62868         * lib/fsusage.c (open, close): Undefine.
62869         * lib/gc-gnulib.c (open, close): Undefine.
62870         * lib/getcwd.c (opendir, closedir): Undefine.
62871         * lib/glob.c (opendir, closedir): Undefine.
62872         * lib/javacomp.c (open, close): Undefine.
62873         * lib/mountlist.c (open, close, opendir, closedir): Undefine.
62874         * lib/openat-proc.c (open, close): Undefine.
62875         * lib/pagealign_alloc.c (open, close): Undefine.
62876         * lib/pipe.c (open, close): Undefine.
62877         * lib/progreloc.c (open, close): Undefine.
62878         * lib/savedir.c (opendir, closedir): Undefine.
62879         * lib/utime.c (open, close): Undefine.
62880         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add fchdir.
62881
62882 2007-01-10  Bruno Haible  <bruno@clisp.org>
62883
62884         * lib/striconv.c (mem_cd_iconv): Align the temporary buffer.
62885
62886 2007-01-12  Eric Blake  <ebb9@byu.net>
62887
62888         Provide a robust <wchar.h>.  Further simplifications are now
62889         possible in other modules, but not included here.
62890         * modules/wchar: New module.
62891         * m4/wchar.m4: New file.
62892         * lib/wchar_.h: Likewise.
62893         * modules/mbchar (Depends-on): Depend on wchar, as the first use
62894         of the new module.
62895         * MODULES.html.sh (Extended multibyte and wide character utilities):
62896         New section.
62897
62898 2007-01-12  Paul Eggert  <eggert@cs.ucla.edu>
62899
62900         * lib/xreadlink.c (SYMLINK_MAX) [!defined SYMLINK_MAX]: Define
62901         to a reasonable default for memory allocation.
62902         (xreadlink): Don't allocate a huge buffer, to work around a buggy
62903         file system that reports garbage st_size values for symlinks.
62904         Problem reported by Liyang Hu.
62905
62906 2007-01-11  Simon Josefsson  <simon@josefsson.org>
62907
62908         * gnulib-tool (func_all_modules): Exclude all .* files (e.g.,
62909         Emacs .#* auto-save files).
62910
62911 2007-01-11  Bruno Haible  <bruno@clisp.org>
62912
62913         * gnulib-tool (func_all_modules): Exclude all files inside the CVS
62914         directory.
62915
62916 2007-01-10  Paul Eggert  <eggert@cs.ucla.edu>
62917
62918         Use @...@ consistently in lib/wctype_.h.
62919         * lib/wctype_.h [HAVE_WINT_T]: Go back to using @...@, but rely
62920         on it being set to 1 or 0.
62921         * m4/wctype.m4 (gl_WCTYPE_H): Set HAVE_WINT_T to 1 or 0, and
62922         go back to AC_SUBSTing it.
62923         * modules/wctype (Makefile.am): Undo previous change.
62924
62925 2007-01-10  Eric Blake  <ebb9@byu.net>
62926
62927         * lib/wctype_.h [HAVE_WINT_T]: Rely on AC_DEFINE.
62928         * m4/wctype.m4 (gl_WCTYPE_H): No need to AC_SUBST(HAVE_WINT_T).
62929         * modules/wctype (Makefile.am): Likewise.
62930         Reported by Chris McGuire.
62931
62932 2007-01-10  Jim Meyering  <jim@meyering.net>
62933
62934         fts.c: a small readability/maintainability improvement
62935         * lib/fts.c (fts_read): Make this code slightly more readable and
62936         maintainable by hoisting the "sp->fts_cur = p" assignments to
62937         immediately follow the statements that set P.  Derived from
62938         the patch by Miloslav Trmac in http://bugzilla.redhat.com/222089.
62939
62940 2007-01-10  Eric Blake  <ebb9@byu.net>
62941
62942         * lib/wctype_.h [HAVE_WINT_T]: Include <stddef.h> before
62943         <wchar.h>, to work around BSDI bug in BSD/OS 4.0.1.
62944         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
62945         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
62946         Reported by Chris McGuire.
62947
62948 2007-01-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
62949
62950         * gnulib-tool (func_all_modules): Use POSIX conforming escaping
62951         in sed script.
62952
62953 2007-01-09  Bruno Haible  <bruno@clisp.org>
62954
62955         * MODULES.html.sh: Accept options --cvs-urls, --git-urls.
62956         (repo_url_prefix, repo_url_suffix, repo_url_suffix_repl): New
62957         variables.
62958         (func_module): Use them.
62959
62960 2007-01-09  Bruno Haible  <bruno@clisp.org>
62961
62962         * modules/unistr/base: New file.
62963         * lib/unistr.h: New file.
62964
62965         * modules/unistr/u8-to-u16: New file.
62966         * lib/unistr/u8-to-u16.c: New file.
62967
62968         * modules/unistr/u8-to-u32: New file.
62969         * lib/unistr/u8-to-u32.c: New file.
62970
62971         * modules/unistr/u16-to-u8: New file.
62972         * lib/unistr/u16-to-u8.c: New file.
62973
62974         * modules/unistr/u16-to-u32: New file.
62975         * lib/unistr/u16-to-u32.c: New file.
62976
62977         * modules/unistr/u32-to-u8: New file.
62978         * lib/unistr/u32-to-u8.c: New file.
62979
62980         * modules/unistr/u32-to-u16: New file.
62981         * lib/unistr/u32-to-u16.c: New file.
62982
62983         * modules/unistr/u8-check: New file.
62984         * modules/unistr/u16-check: New file.
62985         * modules/unistr/u32-check: New file.
62986         * lib/unistr/u8-check.c: New file.
62987         * lib/unistr/u16-check.c: New file.
62988         * lib/unistr/u32-check.c: New file.
62989
62990         * modules/unistr/u8-chr: New file.
62991         * modules/unistr/u16-chr: New file.
62992         * modules/unistr/u32-chr: New file.
62993         * lib/unistr/u8-chr.c: New file.
62994         * lib/unistr/u16-chr.c: New file.
62995         * lib/unistr/u32-chr.c: New file.
62996
62997         * modules/unistr/u8-cmp: New file.
62998         * modules/unistr/u16-cmp: New file.
62999         * modules/unistr/u32-cmp: New file.
63000         * lib/unistr/u8-cmp.c: New file.
63001         * lib/unistr/u16-cmp.c: New file.
63002         * lib/unistr/u32-cmp.c: New file.
63003
63004         * modules/unistr/u8-cpy: New file.
63005         * modules/unistr/u16-cpy: New file.
63006         * modules/unistr/u32-cpy: New file.
63007         * lib/unistr/u8-cpy.c: New file.
63008         * lib/unistr/u16-cpy.c: New file.
63009         * lib/unistr/u32-cpy.c: New file.
63010         * lib/unistr/u-cpy.h: New file.
63011
63012         * modules/unistr/u8-cpy-alloc: New file.
63013         * modules/unistr/u16-cpy-alloc: New file.
63014         * modules/unistr/u32-cpy-alloc: New file.
63015         * lib/unistr/u8-cpy-alloc.c: New file.
63016         * lib/unistr/u16-cpy-alloc.c: New file.
63017         * lib/unistr/u32-cpy-alloc.c: New file.
63018         * lib/unistr/u-cpy-alloc.h: New file.
63019
63020         * modules/unistr/u8-endswith: New file.
63021         * modules/unistr/u16-endswith: New file.
63022         * modules/unistr/u32-endswith: New file.
63023         * lib/unistr/u8-endswith.c: New file.
63024         * lib/unistr/u16-endswith.c: New file.
63025         * lib/unistr/u32-endswith.c: New file.
63026         * lib/unistr/u-endswith.h: New file.
63027
63028         * modules/unistr/u8-mblen: New file.
63029         * modules/unistr/u16-mblen: New file.
63030         * modules/unistr/u32-mblen: New file.
63031         * lib/unistr/u8-mblen.c: New file.
63032         * lib/unistr/u16-mblen.c: New file.
63033         * lib/unistr/u32-mblen.c: New file.
63034
63035         * modules/unistr/u8-mbtouc: New file.
63036         * modules/unistr/u16-mbtouc: New file.
63037         * modules/unistr/u32-mbtouc: New file.
63038         * lib/unistr/u8-mbtouc.c: New file.
63039         * lib/unistr/u16-mbtouc.c: New file.
63040         * lib/unistr/u32-mbtouc.c: New file.
63041
63042         * modules/unistr/u8-mbtouc-safe: New file.
63043         * modules/unistr/u16-mbtouc-safe: New file.
63044         * modules/unistr/u32-mbtouc-safe: New file.
63045         * lib/unistr/u8-mbtouc-safe.c: New file.
63046         * lib/unistr/u16-mbtouc-safe.c: New file.
63047         * lib/unistr/u32-mbtouc-safe.c: New file.
63048
63049         * modules/unistr/u8-move: New file.
63050         * modules/unistr/u16-move: New file.
63051         * modules/unistr/u32-move: New file.
63052         * lib/unistr/u8-move.c: New file.
63053         * lib/unistr/u16-move.c: New file.
63054         * lib/unistr/u32-move.c: New file.
63055         * lib/unistr/u-move.h: New file.
63056
63057         * modules/unistr/u8-next: New file.
63058         * modules/unistr/u16-next: New file.
63059         * modules/unistr/u32-next: New file.
63060         * lib/unistr/u8-next.c: New file.
63061         * lib/unistr/u16-next.c: New file.
63062         * lib/unistr/u32-next.c: New file.
63063
63064         * modules/unistr/u8-prev: New file.
63065         * modules/unistr/u16-prev: New file.
63066         * modules/unistr/u32-prev: New file.
63067         * lib/unistr/u8-prev.c: New file.
63068         * lib/unistr/u16-prev.c: New file.
63069         * lib/unistr/u32-prev.c: New file.
63070
63071         * modules/unistr/u8-set: New file.
63072         * modules/unistr/u16-set: New file.
63073         * modules/unistr/u32-set: New file.
63074         * lib/unistr/u8-set.c: New file.
63075         * lib/unistr/u16-set.c: New file.
63076         * lib/unistr/u32-set.c: New file.
63077         * lib/unistr/u-set.h: New file.
63078
63079         * modules/unistr/u8-startswith: New file.
63080         * modules/unistr/u16-startswith: New file.
63081         * modules/unistr/u32-startswith: New file.
63082         * lib/unistr/u8-startswith.c: New file.
63083         * lib/unistr/u16-startswith.c: New file.
63084         * lib/unistr/u32-startswith.c: New file.
63085         * lib/unistr/u-startswith.h: New file.
63086
63087         * modules/unistr/u8-stpcpy: New file.
63088         * modules/unistr/u16-stpcpy: New file.
63089         * modules/unistr/u32-stpcpy: New file.
63090         * lib/unistr/u8-stpcpy.c: New file.
63091         * lib/unistr/u16-stpcpy.c: New file.
63092         * lib/unistr/u32-stpcpy.c: New file.
63093         * lib/unistr/u-stpcpy.h: New file.
63094
63095         * modules/unistr/u8-stpncpy: New file.
63096         * modules/unistr/u16-stpncpy: New file.
63097         * modules/unistr/u32-stpncpy: New file.
63098         * lib/unistr/u8-stpncpy.c: New file.
63099         * lib/unistr/u16-stpncpy.c: New file.
63100         * lib/unistr/u32-stpncpy.c: New file.
63101         * lib/unistr/u-stpncpy.h: New file.
63102
63103         * modules/unistr/u8-strcat: New file.
63104         * modules/unistr/u16-strcat: New file.
63105         * modules/unistr/u32-strcat: New file.
63106         * lib/unistr/u8-strcat.c: New file.
63107         * lib/unistr/u16-strcat.c: New file.
63108         * lib/unistr/u32-strcat.c: New file.
63109         * lib/unistr/u-strcat.h: New file.
63110
63111         * modules/unistr/u8-strchr: New file.
63112         * modules/unistr/u16-strchr: New file.
63113         * modules/unistr/u32-strchr: New file.
63114         * lib/unistr/u8-strchr.c: New file.
63115         * lib/unistr/u16-strchr.c: New file.
63116         * lib/unistr/u32-strchr.c: New file.
63117
63118         * modules/unistr/u8-strcmp: New file.
63119         * modules/unistr/u16-strcmp: New file.
63120         * modules/unistr/u32-strcmp: New file.
63121         * lib/unistr/u8-strcmp.c: New file.
63122         * lib/unistr/u16-strcmp.c: New file.
63123         * lib/unistr/u32-strcmp.c: New file.
63124
63125         * modules/unistr/u8-strcpy: New file.
63126         * modules/unistr/u16-strcpy: New file.
63127         * modules/unistr/u32-strcpy: New file.
63128         * lib/unistr/u8-strcpy.c: New file.
63129         * lib/unistr/u16-strcpy.c: New file.
63130         * lib/unistr/u32-strcpy.c: New file.
63131         * lib/unistr/u-strcpy.h: New file.
63132
63133         * modules/unistr/u8-strcspn: New file.
63134         * modules/unistr/u16-strcspn: New file.
63135         * modules/unistr/u32-strcspn: New file.
63136         * lib/unistr/u8-strcspn.c: New file.
63137         * lib/unistr/u16-strcspn.c: New file.
63138         * lib/unistr/u32-strcspn.c: New file.
63139         * lib/unistr/u-strcspn.h: New file.
63140
63141         * modules/unistr/u8-strdup: New file.
63142         * modules/unistr/u16-strdup: New file.
63143         * modules/unistr/u32-strdup: New file.
63144         * lib/unistr/u8-strdup.c: New file.
63145         * lib/unistr/u16-strdup.c: New file.
63146         * lib/unistr/u32-strdup.c: New file.
63147         * lib/unistr/u-strdup.h: New file.
63148
63149         * modules/unistr/u8-strlen: New file.
63150         * modules/unistr/u16-strlen: New file.
63151         * modules/unistr/u32-strlen: New file.
63152         * lib/unistr/u8-strlen.c: New file.
63153         * lib/unistr/u16-strlen.c: New file.
63154         * lib/unistr/u32-strlen.c: New file.
63155         * lib/unistr/u-strlen.h: New file.
63156
63157         * modules/unistr/u8-strmblen: New file.
63158         * modules/unistr/u16-strmblen: New file.
63159         * modules/unistr/u32-strmblen: New file.
63160         * lib/unistr/u8-strmblen.c: New file.
63161         * lib/unistr/u16-strmblen.c: New file.
63162         * lib/unistr/u32-strmblen.c: New file.
63163
63164         * modules/unistr/u8-strmbtouc: New file.
63165         * modules/unistr/u16-strmbtouc: New file.
63166         * modules/unistr/u32-strmbtouc: New file.
63167         * lib/unistr/u8-strmbtouc.c: New file.
63168         * lib/unistr/u16-strmbtouc.c: New file.
63169         * lib/unistr/u32-strmbtouc.c: New file.
63170
63171         * modules/unistr/u8-strncat: New file.
63172         * modules/unistr/u16-strncat: New file.
63173         * modules/unistr/u32-strncat: New file.
63174         * lib/unistr/u8-strncat.c: New file.
63175         * lib/unistr/u16-strncat.c: New file.
63176         * lib/unistr/u32-strncat.c: New file.
63177         * lib/unistr/u-strncat.h: New file.
63178
63179         * modules/unistr/u8-strncmp: New file.
63180         * modules/unistr/u16-strncmp: New file.
63181         * modules/unistr/u32-strncmp: New file.
63182         * lib/unistr/u8-strncmp.c: New file.
63183         * lib/unistr/u16-strncmp.c: New file.
63184         * lib/unistr/u32-strncmp.c: New file.
63185
63186         * modules/unistr/u8-strncpy: New file.
63187         * modules/unistr/u16-strncpy: New file.
63188         * modules/unistr/u32-strncpy: New file.
63189         * lib/unistr/u8-strncpy.c: New file.
63190         * lib/unistr/u16-strncpy.c: New file.
63191         * lib/unistr/u32-strncpy.c: New file.
63192         * lib/unistr/u-strncpy.h: New file.
63193
63194         * modules/unistr/u8-strnlen: New file.
63195         * modules/unistr/u16-strnlen: New file.
63196         * modules/unistr/u32-strnlen: New file.
63197         * lib/unistr/u8-strnlen.c: New file.
63198         * lib/unistr/u16-strnlen.c: New file.
63199         * lib/unistr/u32-strnlen.c: New file.
63200         * lib/unistr/u-strnlen.h: New file.
63201
63202         * modules/unistr/u8-strpbrk: New file.
63203         * modules/unistr/u16-strpbrk: New file.
63204         * modules/unistr/u32-strpbrk: New file.
63205         * lib/unistr/u8-strpbrk.c: New file.
63206         * lib/unistr/u16-strpbrk.c: New file.
63207         * lib/unistr/u32-strpbrk.c: New file.
63208         * lib/unistr/u-strpbrk.h: New file.
63209
63210         * modules/unistr/u8-strrchr: New file.
63211         * modules/unistr/u16-strrchr: New file.
63212         * modules/unistr/u32-strrchr: New file.
63213         * lib/unistr/u8-strrchr.c: New file.
63214         * lib/unistr/u16-strrchr.c: New file.
63215         * lib/unistr/u32-strrchr.c: New file.
63216
63217         * modules/unistr/u8-strspn: New file.
63218         * modules/unistr/u16-strspn: New file.
63219         * modules/unistr/u32-strspn: New file.
63220         * lib/unistr/u8-strspn.c: New file.
63221         * lib/unistr/u16-strspn.c: New file.
63222         * lib/unistr/u32-strspn.c: New file.
63223         * lib/unistr/u-strspn.h: New file.
63224
63225         * modules/unistr/u8-strstr: New file.
63226         * modules/unistr/u16-strstr: New file.
63227         * modules/unistr/u32-strstr: New file.
63228         * lib/unistr/u8-strstr.c: New file.
63229         * lib/unistr/u16-strstr.c: New file.
63230         * lib/unistr/u32-strstr.c: New file.
63231         * lib/unistr/u-strstr.h: New file.
63232
63233         * modules/unistr/u8-strtok: New file.
63234         * modules/unistr/u16-strtok: New file.
63235         * modules/unistr/u32-strtok: New file.
63236         * lib/unistr/u8-strtok.c: New file.
63237         * lib/unistr/u16-strtok.c: New file.
63238         * lib/unistr/u32-strtok.c: New file.
63239         * lib/unistr/u-strtok.h: New file.
63240
63241         * modules/unistr/u8-uctomb: New file.
63242         * modules/unistr/u16-uctomb: New file.
63243         * modules/unistr/u32-uctomb: New file.
63244         * lib/unistr/u8-uctomb.c: New file.
63245         * lib/unistr/u16-uctomb.c: New file.
63246         * lib/unistr/u32-uctomb.c: New file.
63247
63248         * MODULES.html.sh (Unicode string functions): Add the new modules.
63249
63250 2007-01-08  Bruno Haible  <bruno@clisp.org>
63251
63252         * gnulib-tool (func_all_modules): Use find, not ls, to traverse the
63253         modules directory. Filter out CVS, ChangeLog, COPYING, README also from
63254         subdirectories.
63255
63256 2007-01-08  Karl Berry  <karl@gnu.org>
63257
63258         * doc/error.texi: mention that main() fns must set program_name
63259         when progname is used.
63260
63261 2007-01-08  Paul Eggert  <eggert@cs.ucla.edu>
63262
63263         * m4/wctype.m4 (gl_WCTYPE_H): Compute ABSOLUTE_WCTYPE_H even if
63264         WCTYPE_H is empty, for the benefit of builds from non-distclean
63265         directories.  Problem reported by Eric Blake in
63266         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00157.html>.
63267
63268 2007-01-08  Bruno Haible  <bruno@clisp.org>
63269
63270         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Remove
63271         PROVIDE_CANONICALIZE_FILENAME_MODE macro definition.
63272         * lib/canonicalize.h: Test GNULIB_CANONICALIZE instead of
63273         PROVIDE_CANONICALIZE_FILENAME_MODE.
63274         * modules/canonicalize (configure.ac): Use gl_MODULE_INDICATOR.
63275
63276 2007-01-08  Bruno Haible  <bruno@clisp.org>
63277
63278         * m4/fts.m4 (gl_FUNC_FTS_LGPL): Remove _LGPL_PACKAGE macro definition.
63279         * lib/fts_.h (_LGPL_PACKAGE): Remove macro.
63280         Use !GNULIB_FTS instead of _LGPL_PACKAGE.
63281         * lib/fts.c: Likewise.
63282         * modules/fts (configure.ac): Use gl_MODULE_INDICATOR.
63283
63284 2006-12-25  Bruno Haible  <bruno@clisp.org>
63285
63286         * modules/utf8-ucs4-safe: New file.
63287         * lib/utf8-ucs4-safe.h: New file.
63288         * lib/unistr/utf8-ucs4-safe.c: New file.
63289
63290         * modules/utf16-ucs4-safe: New file.
63291         * lib/utf16-ucs4-safe.h: New file.
63292         * lib/unistr/utf16-ucs4-safe.c: New file.
63293
63294         * MODULES.html.sh (Unicode string functions): Add the new modules.
63295
63296 2007-01-08  Bruno Haible  <bruno@clisp.org>
63297
63298         * modules/utf8-ucs4 (Files, lib_SOURCES): Add unistr/utf8-ucs4.c.
63299         (Depends-on): Add unitypes.
63300         * lib/utf8-ucs4.h: Add double-inclusion guard. Include unitypes.h.
63301         (u8_mbtouc_aux): Move out to separate file.
63302         (u8_mbtouc): Use ucs4_t, uint8_t types.
63303         * lib/unistr/utf8-ucs4.c: New file.
63304
63305         * modules/utf16-ucs4 (Files, lib_SOURCES): Add unistr/utf16-ucs4.c.
63306         (Depends-on): Add unitypes.
63307         * lib/utf16-ucs4.h: Add double-inclusion guard. Include unitypes.h.
63308         (u16_mbtouc_aux): Move out to separate file.
63309         (u16_mbtouc): Use ucs4_t, uint16_t types.
63310         * lib/unistr/utf16-ucs4.c: New file.
63311
63312         * modules/ucs4-utf8 (Files, lib_SOURCES): Add unistr/ucs4-utf8.c.
63313         (Depends-on): Add unitypes.
63314         * lib/ucs4-utf8.h: Add double-inclusion guard. Include unitypes.h.
63315         (u8_uctomb_aux): Move out to separate file.
63316         (u8_uctomb): Use ucs4_t, uint8_t types.
63317         * lib/unistr/ucs4-utf8.c: New file.
63318
63319         * modules/ucs4-utf16 (Files, lib_SOURCES): Add unistr/ucs4-utf16.c.
63320         (Depends-on): Add unitypes.
63321         * lib/ucs4-utf16.h: Add double-inclusion guard. Include unitypes.h.
63322         (u16_uctomb_aux): Move out to separate file.
63323         (u16_uctomb): Use ucs4_t, uint16_t types.
63324         * lib/unistr/ucs4-utf16.c: New file.
63325
63326 2006-12-25  Bruno Haible  <bruno@clisp.org>
63327
63328         * modules/unitypes: New file.
63329         * lib/unitypes.h: New file.
63330         * MODULES.html.sh (func_all_modules): New section "Unicode string
63331         functions". Move ucs4-utf8, ucs4-utf16, utf8-ucs4, utf16-ucs4 to
63332         this section. Add unitypes.
63333
63334 2007-01-08  Bruno Haible  <bruno@clisp.org>
63335
63336         Avoid variable names that conflict with those from libtool.
63337         * m4/lib-link.m4 (AC_LIB_RPATH, AC_LIB_LINKFLAGS_BODY,
63338         AC_LIB_LINKFLAGS_FROM_LIBS): Rename libext to acl_libext,
63339         shlibext to acl_shlibext, libname_spec to acl_libname_spec,
63340         library_names_spec to acl_library_names_spec, hardcode_* to
63341         acl_hardcode_*.
63342         Reported by Ralf Wildenhues.
63343
63344 2007-01-08  Bruno Haible  <bruno@clisp.org>
63345
63346         * m4/gc-arcfour.m4 (gl_GC_ARCFOUR): Remove GC_USE_ARCFOUR macro
63347         definition.
63348         * m4/gc-arctwo.m4 (gl_GC_ARCTWO): Remove GC_USE_ARCTWO macro
63349         definition.
63350         * m4/gc-des.m4 (gl_GC_DES): Remove GC_USE_DES macro definition.
63351         * m4/gc-hmac-md5.m4 (gl_GC_HMAC_MD5): Remove GC_USE_HMAC_MD5 macro
63352         definition.
63353         * m4/gc-hmac-sha1.m4 (gl_GC_HMAC_SHA1): Remove GC_USE_HMAC_SHA1 macro
63354         definition.
63355         * m4/gc-md2.m4 (gl_GC_MD2): Remove GC_USE_MD2 macro definition.
63356         * m4/gc-md4.m4 (gl_GC_MD4): Remove GC_USE_MD4 macro definition.
63357         * m4/gc-md5.m4 (gl_GC_MD5): Remove GC_USE_MD5 macro definition.
63358         * m4/gc-random.m4 (gl_GC_RANDOM): Remove GC_USE_RANDOM macro
63359         definition.
63360         * m4/gc-rijndael.m4 (gl_GC_RIJNDAEL): Remove GC_USE_RIJNDAEL macro
63361         definition.
63362         * m4/gc-sha1.m4 (gl_GC_SHA1): Remove GC_USE_SHA1 macro definition.
63363         * lib/gc-gnulib.c: Use GNULIB_GC_<algorithm> instead of
63364         GC_USE_<algorithm>.
63365         * lib/gc-libgcrypt.c: Likewise.
63366         * modules/gc-arcfour (configure.ac): Use gl_MODULE_INDICATOR.
63367         * modules/gc-arctwo (configure.ac): Likewise.
63368         * modules/gc-des (configure.ac): Likewise.
63369         * modules/gc-hmac-md5 (configure.ac): Likewise.
63370         * modules/gc-hmac-sha1 (configure.ac): Likewise.
63371         * modules/gc-md2 (configure.ac): Likewise.
63372         * modules/gc-md4 (configure.ac): Likewise.
63373         * modules/gc-md5 (configure.ac): Likewise.
63374         * modules/gc-random (configure.ac): Likewise.
63375         * modules/gc-rijndael (configure.ac): Likewise.
63376         * modules/gc-sha1 (configure.ac): Likewise.
63377
63378 2007-01-08  Bruno Haible  <bruno@clisp.org>
63379
63380         * m4/close-stream.m4 (gl_CLOSE_STREAM): Remove GNULIB_CLOSE_STREAM
63381         macro definition.
63382         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Remove GNULIB_FCNTL_SAFER macro
63383         definition.
63384         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Remove GNULIB_FOPEN_SAFER macro
63385         definition.
63386         * modules/close-stream (configure.ac): Invoke gl_MODULE_INDICATOR.
63387         * modules/fcntl-safer (configure.ac): Likewise.
63388         * modules/fopen-safer (configure.ac): Likewise.
63389         * modules/fwriteerror (configure.ac): Likewise. Remove explicit
63390         GNULIB_FWRITEERROR macro definition.
63391
63392 2007-01-08  Bruno Haible  <bruno@clisp.org>
63393
63394         * m4/gnulib-common.m4: New file.
63395         * gnulib-tool (func_get_autoconf_snippet): Undo last change.
63396         (func_get_filelist): Add m4/gnulib-common.m4.
63397
63398 2007-01-08  Bruno Haible  <bruno@clisp.org>
63399
63400         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Simplify the sorting
63401         command.
63402
63403 2007-01-08  Jim Meyering  <jim@meyering.net>
63404
63405         Use a more robust test for a "can't happen" condition.
63406         * lib/fts.c (fts_read): Revert the change of 2006-11-22, since it
63407         narrowed the st_size value.  Presuming the "can't happen" condition
63408         is true, that narrowing could conceivably convert an invalid st_size
63409         value into a valid one.  Instead, use a change based on Matthew
63410         Woehlke's original patch.
63411
63412         Slight readability improvement: use an assert-like macro
63413         in place of literal "abort ()" uses.
63414         * lib/fts.c (fts_assert): Define.
63415         (fts_set_stat_required, cwd_advance_fd, fts_read, fd_ring_check):
63416         Use this macro instead of a bare 'abort'.
63417
63418 2007-01-05  Paul Eggert  <eggert@cs.ucla.edu>
63419
63420         Don't worry about using IRIX 5.3's wctype.h broken definitions;
63421         simply work around them.
63422         * lib/wctype_.h: Remove test for HAVE_WCTYPE_CTMP_BUG.
63423         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph, iswlower):
63424         (iswprint, iswpunct, iswspace, iswupper, iswxdigit): Undef before
63425         declaring.
63426         Don't bother to define as macros, since the standard doesn't require it.
63427         * m4/wctype.m4 (WCTYPE_H, ABSOLUTE_WCTYPE_H): Simplify, since we no
63428         longer worry about IRIX 5.3.
63429         (HAVE_WCTYPE_CTMP_BUG): Remove.
63430
63431 2007-01-04  Paul Eggert  <eggert@cs.ucla.edu>
63432
63433         * lib/wctype_.h (_ctmp_) [HAVE_WCTYPE_CTMP_BUG]: Now of type wchar_t,
63434         not wint_t.  Also, include <ctype.h>, to fix another IRIX bug.
63435         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
63436         Problems reported by Georg Schwarz for IRIX 5.3.
63437
63438         * gnulib-tool (autoconf_minversion): Take the maximum version number
63439         found, not the minimum.  Problem reported by James Youngman.
63440
63441 2007-01-03  Karl Berry  <karl@gnu.org>
63442
63443         * doc/error.texi: new file, explaining interaction with progname.
63444         * doc/gnulib.texi: include it.  Update copyright.
63445
63446 2007-01-03  Simon Josefsson  <simon@josefsson.org>
63447
63448         * gnulib-tool (func_create_testdir): Run AC_CANONICAL_BUILD and
63449         AC_CANONICAL_HOST, to improve autobuild outputs.
63450
63451 2007-01-03  Paolo Bonzini  <bonzini@gnu.org>
63452             Yoann Vandoorselaere <yoann.v@prelude-ids.com>
63453
63454         * lib/poll.c (poll): Use recv on Mac OS X to distinguish connected
63455         sockets, server sockets, and other file descriptors.  Count errors
63456         to compute the return value.  Reorder the code a bit to be easier
63457         to follow.  Don't set event bits that were not requested (except
63458         POLLERR and POLLHUP).
63459
63460 2007-01-01  Bruno Haible  <bruno@clisp.org>
63461
63462         * modules/lchmod (Include): Require lchmod.h, not lchown.h.
63463
63464 2007-01-03  Jim Meyering  <jim@meyering.net>
63465
63466         * modules/fts-lgpl (Depends-on): Add i-ring.  Reported by Bruno Haible.
63467
63468 2007-01-02  Bruno Haible  <bruno@clisp.org>
63469
63470         * modules/settime (Include): Require timespec.h.
63471         * modules/nanosleep (Include): Likewise.
63472
63473 2007-01-01  Bruno Haible  <bruno@clisp.org>
63474
63475         * gnulib-tool (func_emit_copyright_notice): Bump year.
63476         (func_get_autoconf_snippet): Emit a GNULIB_<modulename> macro.
63477
63478 2007-01-01  Bruno Haible  <bruno@clisp.org>
63479
63480         Improve support for OpenBSD.
63481         * build-aux/config.rpath (libname_spec): Export.
63482         (library_names_spec): New variable. Export.
63483         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Extract libname_spec and
63484         library_names_spec from the config.rpath output. Locate shared library
63485         through the name pattern in library_names_spec.
63486
63487 2007-01-01  Eric Blake  <ebb9@byu.net>
63488
63489         * lib/version-etc.c (COPYRIGHT_YEAR): Bump for new year.
63490
63491 2006-12-30  Paul Eggert  <eggert@cs.ucla.edu>
63492
63493         * gnulib-tool (SORT): Remove, since we no longer assume GNU sort.
63494         Rewrite so as not to assume GNU sort or "tail -1".  Also, don't
63495         assume the C locale, and avoid an "eval" that could cause trouble.
63496         Problem with SORT reported by Bob Proulx.
63497
63498         * lib/getpagesize.h (getpagesize) [defined __amigaos4__]:
63499         Define.  Trivial patch from Henning Nielsen Lund, originally
63500         sent to bug-grep@gnu.org today.
63501
63502 2006-12-29  Paul Eggert  <eggert@cs.ucla.edu>
63503
63504         * lib/acl.h: Include sys/types.h and sys/stat.h, for mode_t and
63505         struct stat.  Problem reported by Henning Nielsen Lund.
63506         * lib/acl.c: Include acl.h first, to check interface.  Don't
63507         bother to include sys/types.h and sys/stat.h again.
63508
63509 2006-12-28  Paul Eggert  <eggert@cs.ucla.edu>
63510
63511         Import the following change from libc; problem reported by
63512         Sven Verdoolaege.
63513
63514         2005-10-13  Ulrich Drepper  <drepper@redhat.com>
63515
63516         [BZ #1373]
63517         * lib/argp.h: Remove __NTH for __argp_usage inline function.
63518
63519 2006-12-28  Jim Meyering  <jim@meyering.net>
63520
63521         * build-aux/announce-gen: Do not assume that the package
63522         builds any of tar.gz, tar.bz2, and .xdelta files.
63523         Suggestion from Simon Josefsson.
63524
63525 2006-12-28  Simon Josefsson  <simon@josefsson.org>
63526
63527         * modules/announce-gen: New file.
63528
63529 2006-12-27  Paul Eggert  <eggert@cs.ucla.edu>
63530
63531         * lib/mbchar.h: Just include <wctype.h>; the wctype module
63532         handles its gotchas now.
63533         * lib/mbswidth.c: Likewise.
63534         * lib/wcwidth.h: Likewise.
63535         * m4/mbchar.m4 (gl_MBCHAR): Don't bother checking for wctype.h
63536         and iswcntrl; the wctype module does this stuff now.
63537         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
63538         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
63539         * modules/mbchar (Depends-on): Add wctype.
63540         * modules/mbswidth (Depends-on): Likewise.
63541         * modules/wcwidth (Depends-on): Likewise.
63542
63543 2006-12-27  Eric Blake  <ebb9@byu.net>
63544
63545         * lib/fnmatch.c: Reinstate inclusion of <wchar.h>, since this
63546         module uses more than what <wctype.h> is required to provide.
63547
63548 2006-12-26  Eric Blake  <ebb9@byu.net>
63549
63550         * gnulib-tool (sed_extract_prog): Avoid space-tab.
63551
63552 2006-12-26  Eric Blake  <ebb9@byu.net>
63553
63554         * modules/absolute-header: New module.
63555         * modules/fcntl (Depends-on): Depend on it.
63556         * modules/inttypes (Depends-on): Likewise.
63557         * modules/stdint (Depends-on): Likewise.
63558         * modules/sys_stat (Depends-on): Likewise.
63559         * modules/wctype (Depends-on): Likewise.
63560         * MODULES.html.sh (Support for building libraries and
63561         executables): Document it.
63562
63563 2006-12-25  Paul Eggert  <eggert@cs.ucla.edu>
63564
63565         * gnulib-tool (SED): Remove, undoing previous change.
63566         The problem was that it broke coreutils on Solaris, because
63567         "sed --posix" leaked into a makefile.
63568         (sed): New alias, if 'alias' and GNU sed.
63569
63570 2006-12-24  Jim Meyering  <jim@meyering.net>
63571
63572         Work around an fchownat bug in glibc-2.4:
63573         http://lists.ubuntu.com/archives/ubuntu-users/2006-September/093218.html
63574         This bug would cause "chown -RP ... DIR" to follow symlinks in DIR,
63575         in spite of the -P option.
63576         * m4/openat.m4 (gl_FUNC_FCHOWNAT, gl_FUNC_FCHOWNAT_DEREF_BUG):
63577         New macros.
63578         (gl_PREREQ_OPENAT): Require gl_FUNC_FCHOWNAT.
63579         * modules/openat (Files): Add lib/fchownat.c.
63580         * lib/openat.c (fchownat): Don't define here.  Move to...
63581         * lib/fchownat.c: ...this new file.
63582
63583 2006-12-23  Paul Eggert  <eggert@cs.ucla.edu>
63584
63585         Fix bug reported by Bruno Haible in
63586         <http://lists.gnu.org/archive/html/bug-gnulib/2006-12/msg00228.html>
63587         where quotearg.c didn't compile on Mac OS X 10.2 because it
63588         lacks <wchar.h> and wint_t.
63589         * lib/wctype_.h (__wctype_wint_t): New type.
63590         Include <stdio.h>, <time.h>, <wchar.h> only if HAVE_WINT_T.
63591         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph):
63592         (iswlower, iswprint, iswpunct, iswspace, iswupper, ixwxdigit):
63593         Arg is now of type __wctype_wint_t, not wint_t.
63594         * m4/wctype.m4 (gl_WCTYPE_H): Require gt_TYPE_WINT_T, and
63595         substitute HAVE_WINT_T.
63596         * modules/wctype (Files): Add m4/wint_t.m4.
63597         (wctype.h): Substitute HAVE_WINT_T.
63598
63599 2006-12-23  Bruno Haible  <bruno@clisp.org>
63600
63601         * lib/safe-read.h [C++]: Wrap declarations in extern "C".
63602
63603 2006-12-23  Bruno Haible  <bruno@clisp.org>
63604
63605         * lib/canonicalize-lgpl.c (__realpath): Test HAVE_READLINK instead of
63606         S_ISLNK.
63607         Needed because gnulib's sys/stat.h replacement defines S_ISLNK on
63608         mingw.
63609
63610 2006-12-22  Bruno Haible  <bruno@clisp.org>
63611
63612         * lib/copy-file.c: Include acl.h.
63613         (copy_file_preserving) [USE_ACL]: Use copy_acl instead of chmod.
63614         Close the file descriptors only after being done with copy_acl.
63615         * modules/copy-file (Depends-on): Add acl.
63616
63617 2006-12-22  Bruno Haible  <bruno@clisp.org>
63618
63619         * gnulib-tool (SED): New variable.
63620         Use $SED instead of sed everywhere.
63621
63622 2006-12-22  Bruno Haible  <bruno@clisp.org>
63623
63624         * modules/no-c++: New file.
63625         * m4/no-c++.m4: New file.
63626         * MODULES.html.sh (Support for building libraries and executables):
63627         Add no-c++.
63628
63629 2006-12-22  Paul Eggert  <eggert@cs.ucla.edu>
63630
63631         * m4/mktime.m4 (AC_FUNC_MKTIME): Sync from Autoconf.
63632         Include <limits.h>, and use its INT_MAX to rewrite the
63633         j loop so that it does not overflow 'int'.  Problem reported by
63634         Ralf Wildenhues in
63635         <http://lists.gnu.org/archive/html/bug-gnulib/2006-12/msg00084.html>.
63636         Play it safe by shifting left by 1 rather than multiplying by 2,
63637         as GCC is less likely to optimize this away when the value
63638         is signed (when it assumes overflow leads to undefined behavior).
63639         Also, don't assume time_t uses two's complement.
63640
63641 2006-12-21  Paul Eggert  <eggert@cs.ucla.edu>
63642
63643         * MODULES.html.sh: New module wctype.
63644         * lib/wctype_.h, m4/wctype.m4, modules/wctype: New files.
63645         * lib/fnmatch.c: Don't bother to include <wchar.h> before
63646         <wctype.h>, since the new wctype module should fix this.
63647         * lib/quotearg.c: Include <wctype.h> unconditionally, since
63648         the wctype module should arrange for it.
63649         * lib/regex_internal.h: Likewise.
63650         * m4/quotearg.m4 (gl_QUOTEARG): Don't check for wctype.h or iswprint,
63651         since the wctype module should handle this now.
63652         * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for wctype.h.
63653         * modules/fnmatch (Depends-on): Add wctype.
63654         * modules/quotearg (Depends-on): Likewise.
63655         * modules/regex (Depends-on): Likewise.
63656
63657 2006-12-19  Bruno Haible  <bruno@clisp.org>
63658
63659         * lib/strdup.h [C++]: Wrap definitions in extern "C".
63660         Suggested by Lorenzo Bettini <bettini@dsi.unifi.it>.
63661
63662 2006-12-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
63663
63664         * modules/savewd (Depends-on): Fix dependency on fcntl.
63665
63666 2006-12-18  Paul Eggert  <eggert@cs.ucla.edu>
63667
63668         * m4/stdint.m4 (gl_STDINT_H): Set STDINT_H to empty if stdint.h
63669         conforms to C99, rather than relying on the user's environment
63670         setting of STDINT_H.
63671
63672 2006-12-18  Paul Eggert  <eggert@cs.ucla.edu>
63673         and Eric Blake  <ebb9@byu.net>
63674
63675         * lib/dirname.h (DOUBLE_SLASH_IS_DISTINCT_ROOT): Default to 0, not 1.
63676         This is more consistent with the other defines here.
63677         * m4/double-slash-root.m4 (gl_DOUBLE_SLASH_ROOT):
63678         Port to z/OS.  Problem reported by Paul Gilmartin.
63679         Change local vars to use gl_ prefix rather than ac_.
63680         Don't define DOUBLE_SLASH_IS_DISTINCT_ROOT to 0, for consistency
63681         with other defines.
63682         * modules/double-slash-root: New module.
63683         * modules/dirname (Files): Remove m4/double-slash-root.m4.
63684         (Depends-on): Add double-slash-root.
63685         * MODULES.html.sh (File system functions): Mention new module.
63686
63687 2006-12-14  Paul Eggert  <eggert@cs.ucla.edu>
63688
63689         * lib/yesno.c [!ENABLE_NLS]: Don't include getline.h.
63690         (yesno) [!ENABLE_NLS]: Don't invoke getline or rpmatch.
63691         This is for the benefit of gzip, which doesn't do i18n.
63692
63693 2006-12-12  Jim Meyering  <jim@meyering.net>
63694
63695         * m4/acl.m4 (gl_ACL_GET_FILE): Fix logic error.
63696         Reported by Andreas Schwab <schwab@suse.de>.
63697
63698 2006-12-12  Bruno Haible  <bruno@clisp.org>
63699
63700         Merge these changes.
63701         2006-09-05  Bruno Haible  <bruno@clisp.org>
63702         * lib/iconvme.c (iconv_string): No need to save and restore errno when
63703         iconv_alloc succeeded.
63704         (iconv_alloc): Don't assume that malloc() or realloc(), when failing,
63705         sets errno to ENOMEM. (malloc on GNU/kFreeBSD doesn't.) No need to
63706         test for " && dest " at the end - dest is always != NULL there. Call
63707         iconv with 4xNULL arguments initially, to reset the state. Call iconv
63708         with 2xNULL arguments, also to flush the state storage. Handle the
63709         IRIX iconv behaviour. Realloc the final result, to throw away unused
63710         memory.
63711
63712 2006-12-11  Paul Eggert  <eggert@cs.ucla.edu>
63713
63714         * m4/openat.m4 (gl_FUNC_OPENAT): Don't compile mkdirat
63715         and fchmodat unconditionally, since glibc 2.4 has them.
63716         Problem reported by Arkadiusz Miskiewicz.
63717
63718 2006-12-10  Bruno Haible  <bruno@clisp.org>
63719
63720         * gnulib-tool (func_import): Show the include files only for those
63721         modules that are copied and specified.
63722         Reported by Karl Berry.
63723
63724 2006-12-08  Jim Meyering  <jim@meyering.net>
63725
63726         * build-aux/announce-gen ($VERSION): Don't use of $Revision...$.
63727         Instead, use Emacs' time-stamp write hook.  Note that the time is UTC.
63728
63729         * build-aux/announce-gen: Add two new options, both optional:
63730         --bootstrap-tools=TOOL_LIST
63731               a comma-separated list of tools, e.g.,
63732               autoconf,automake,bison,gnulib
63733         --gnulib-snapshot-date=DATE
63734               if gnulib is in the bootstrap tool list,
63735               then report this as the snapshot date.
63736               If not specified, use the current date/time.
63737               If you specify a date here, be sure it's UTC.
63738
63739 2006-12-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
63740
63741         * tests/test-argp-2.sh: Fix test to match actual output.
63742         (func_compare): Fix sed script to be portable.
63743
63744 2006-12-05  Paul Eggert  <eggert@cs.ucla.edu>
63745
63746         * lib/utimens.c (futimens) [HAVE_BUGGY_NFS_TIME_STAMPS]: Add a
63747         workaround for this case.  It is not autoconfigured now; offhand
63748         it's hard to see how to autoconfigure it.
63749
63750 2006-12-03  Paul Eggert  <eggert@cs.ucla.edu>
63751
63752         * lib/mkdir-p.c (make_dir_parents): Fix race condition when making
63753         a directory that is about to be chowned.  Such a directory's
63754         initial file permissions should permit the owner only and this
63755         should not be changed until after the chown, since the group and
63756         other bits would be incorrect if they granted permission before
63757         the chown.
63758
63759         Fix porting problem for iswctype reported by Georg Schwarz in:
63760         http://lists.gnu.org/archive/html/bug-coreutils/2006-12/msg00017.html
63761         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Require HAVE_ISWCTYPE, too.
63762         * lib/regex_internal.h (RE_ENABLE_I18N): Likewise.
63763         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for iswctype, too.
63764         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
63765
63766 2006-12-03  Jim Meyering  <jim@meyering.net>
63767
63768         * lib/fts.c (fts_load): Don't set sp->fts_dev here, since
63769         p->fts_statp may not yet be defined.
63770         (fts_read): Instead, set it in the caller, once p->fts_statp is
63771         sure to be defined, and corresponds to a top-level directory.
63772         This bug made du -x fail.  Here's the coreutils test case:
63773         http://git.sv.gnu.org/gitweb/?p=coreutils.git;a=commit;h=ba45154d8e9f
63774         Reported by Mike Frysinger.
63775
63776 2006-12-01  Jim Meyering  <jim@meyering.net>
63777
63778         * modules/savewd (Depends-on): Add fcntl_h to avoid self-test
63779         build failure due to missing definition of HAVE_WORKING_O_NOFOLLOW.
63780         Reported by Simon Josefsson.
63781
63782 2006-11-30  Jim Meyering  <jim@meyering.net>
63783
63784         * m4/warning.m4: Use the all-permissive copyright notice
63785         recommended by RMS (rather than LGPL).
63786         * m4/vararrays.m4: Likewise.
63787         * m4/flexmember.m4: Likewise.
63788
63789 2006-11-29  Bruno Haible  <bruno@clisp.org>
63790
63791         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
63792         noinst_LIBRARIES. Augment noinst_LIBRARIES and noinst_LTLIBRARIES
63793         using +=.
63794         Reported by Simon Josefsson <simon@josefsson.org>.
63795
63796 2006-11-28  James Youngman <jay@gnu.org>
63797
63798         * README: Advise users that they might find the bug-gnulib@gnu.org
63799         and autotools-announce@gnu.org mailing lists useful.
63800
63801 2006-11-28  Bruno Haible  <bruno@clisp.org>
63802
63803         * m4/ptrdiff_max.m4: Remove file.
63804
63805 2006-11-21  Bruno Haible  <bruno@clisp.org>
63806
63807         * m4/eoverflow.m4 (gl_EOVERFLOW): Use AC_COMPUTE_INT instead of
63808         _AC_COMPUTE_INT.
63809         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
63810         * m4/ptrdiff_max.m4 (gl_PTRDIFF_MAX): Use AC_COMPUTE_INT instead of
63811         _AC_COMPUTE_INT.
63812         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
63813         * m4/size_max.m4 (gl_SIZE_MAX): Use AC_COMPUTE_INT instead of
63814         _AC_COMPUTE_INT.
63815         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
63816
63817 2006-11-28  Jim Meyering  <jim@meyering.net>
63818
63819         * lib/regcomp.c (parse_branch): Rename local, exp->expr, to avoid
63820         warning from "gcc -Wshadow" about shadowing the builtin.
63821
63822 2006-11-27  Bruno Haible  <bruno@clisp.org>
63823
63824         * m4/stdint.m4 (gl_STDINT_BITSIZEOF): Use AC_COMPUTE_INT instead of
63825         _AC_COMPUTE_INT.
63826         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
63827
63828 2006-11-27  Bruno Haible  <bruno@clisp.org>
63829             Paul Eggert  <eggert@cs.ucla.edu>
63830
63831         * lib/regex.h (__restrict_arr): Redo logic of #if, for clarity.
63832
63833 2006-11-26  Bruno Haible  <bruno@clisp.org>
63834
63835         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
63836         noinst_LTLIBRARIES.
63837
63838 2006-11-27  Paul Eggert  <eggert@cs.ucla.edu>
63839             Bruno Haible  <bruno@clisp.org>
63840
63841         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Define to 0
63842         if compiling with "gcc -ansi".
63843
63844 2006-11-26  Paul Eggert  <eggert@cs.ucla.edu>
63845
63846         Fix some incompatibilities with gcc -ansi -pedantic.
63847         * lib/regex.h (__restrict_arr): Don't use the [restrict] syntax
63848         if compiling pedantically with GCC, unless it's C99 or later.
63849         Don't trust sys/cdefs.h's definition of __restrict_arr, either, as
63850         it mishandles gcc -ansi -pedantic as well.
63851         * lib/regex_internal.h (re_token_t): Don't use enum bitfields
63852         if gcc -pedantic.
63853         * lib/regexec.c (check_node_accept_bytes): Don't use auto
63854         initializers for struct if -pedantic, unless it's C99 or later.
63855
63856 2006-11-25  Nix  <nix@esperi.org.uk>  (tiny change)
63857
63858         * m4/fcntl_h.m4 (gl_FCNTL_H): Test the atime, not the mtime.
63859         Don't close an fd more than once. Identical atimes indicate
63860         success, not failure.
63861
63862 2006-11-22  Robinson Mittmann <bob@hoplon.com>  (tiny change)
63863
63864         * lib/sincosl.c (kernel_sinl): Fix typo in threshold.
63865
63866 2006-11-23  Jim Meyering  <jim@meyering.net>
63867
63868         * build-aux/announce-gen: New file.  From coreutils.
63869
63870 2006-11-22  Jim Meyering  <jim@meyering.net>
63871
63872         Work around a compile-time error from the HP-UX 11.00 /bin/cc.
63873         * lib/fts.c (enum Fts_stat): Give this previously-anon enum a name.
63874         (fts_read): Use a temporary to narrow the overused st_size member
63875         before using it in a switch statement.  Reported by Matthew Woehlke.
63876
63877         * m4/clock_time.m4 (gl_CLOCK_TIME): Quote AC_SUBST argument.
63878         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
63879
63880 2006-11-20  Bruno Haible  <bruno@clisp.org>
63881
63882         * gettext.m4 (AM_GNU_GETTEXT): Revert 2005-07-28 patch: Use
63883         changequote instead of pairs of brackets.
63884         Reported by Andreas Schwab <schwab@suse.de>.
63885
63886 2006-11-21  Jim Meyering  <jim@meyering.net>
63887
63888         * lib/fts.c (fts_safe_changedir): Move a declaration "up",
63889         so as to remain compatible with older compilers.
63890         Patch from Michael Deutschmann.
63891
63892 2006-11-20  Paul Eggert  <eggert@cs.ucla.edu>
63893
63894         * MODULES.html.sh (File system functions): Add openat.
63895
63896         * lib/openat.h (rpl_fstatat): New macro, if
63897         [HAVE_OPENAT && ! LSTAT_FOLLOWS_SLASHED_SYMLINK.
63898         (fstatat): Define to rpl_fstatat under the same conditions,
63899         unless COMPILING_FSTATAT.
63900         * m4/openat.m4 (gl_FUNC_OPENAT): Compile fstatat.c too, if fstatat
63901         seems to have the bug.
63902         * lib/fstatat.c: New file.
63903         * modules/openat (Files): Add it.
63904
63905 2006-11-20  Bruno Haible  <bruno@clisp.org>
63906
63907         * Makefile: New file.
63908
63909 2006-11-20  Jim Meyering  <jim@meyering.net>
63910
63911         The beginnings of syntax-related checks for gnulib.
63912         * lib/Makefile: New file.
63913         * lib/t-idcache: New script.  Ensure that the two halves of
63914         idcache.c stay in sync.
63915
63916         * lib/idcache.c: Adjust comments in user- and group- portions to
63917         be more accurate, and to be consistent with one another.
63918
63919 2006-11-20  Jim Meyering  <jim@meyering.net>
63920
63921         * lib/idcache.c: Restore most of the 2006-11-06 patch, so as to
63922         continue using the flexible array member (thus, this module performs
63923         half as many malloc calls), with the addition that...
63924         (getgroup, getuser): Consistently record a non-match via an empty
63925         "name" string, and map an empty string match to a NULL return value.
63926         * modules/idcache (Depends-on): Re-add flexmember.
63927
63928         * lib/idcache.c (getuser): Remove all uses of the register keyword.
63929         (getuidbyname, getgroup, getgidbyname): Likewise.
63930
63931         Use cleaner syntax: NULL rather than 0.
63932         * lib/idcache.c (getuidbyname, getgidbyname): Return NULL, not 0.
63933
63934 2006-11-20  Paul Eggert  <eggert@cs.ucla.edu>
63935
63936         * lib/idcache.c: Undo most recent patch, dated 2006-11-06.
63937         It mishandled the case where the group was missing.
63938         Problem reported by Greg Schafer.
63939         * modules/idcache: Likewise.
63940
63941 2006-11-18  Jim Meyering  <jim@meyering.net>
63942
63943         * check-module (%exempt_header): Add exception for some
63944         conditionally-included headers.
63945
63946         * modules/i-ring (Depends-on): Add verify.
63947         (License): Change to LGPL.
63948
63949 2006-11-16  Paul Eggert  <eggert@cs.ucla.edu>
63950
63951         * modules/getaddinfo (Depends-on): Remove inttostr; add snprintf.
63952         * lib/getaddrinfo.c: Include snprintf.h rather than intprops.h
63953         and inttostr.h.  Use snprintf rather than uinttostr, so that
63954         LGPLed code doesn't depend on GPLed.
63955
63956 2006-11-17  Paul Eggert  <eggert@cs.ucla.edu>
63957
63958         * modules/inline (License): Change from GPL to LGPL.
63959
63960 2006-11-17  Jim Meyering  <jim@meyering.net>
63961
63962         * modules/d-type (License): Switch to LGPL.
63963
63964 2006-11-15  Bruno Haible  <bruno@clisp.org>
63965
63966         * m4/alloca.m4 (gl_FUNC_ALLOCA): Fix the AC_CACHE_CHECK message.
63967
63968 2006-11-15  Eric Blake  <ebb9@byu.net>
63969
63970         * m4/allocsa.m4 (gl_ALLOCSA): Don't invoke macro already picked up by
63971         the module dependency.
63972
63973 2006-11-15  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
63974             Bruno Haible  <bruno@clisp.org>
63975
63976         * gnulib-tool (func_create_testdir): Add license consistency check.
63977
63978 2006-11-15  Eric Blake  <ebb9@byu.net>
63979
63980         * m4/alloca.m4 (gl_FUNC_ALLOCA): Use AC_CACHE_CHECK to avoid a
63981         random "(cached)" in configure output.
63982
63983 2006-11-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
63984
63985         * m4/inttypes.m4 (gl_INTTYPES_H): Use AC_CACHE_CHECK so that the
63986         test for conforming inttypes.h is both announced and cached.
63987
63988         * MODULES.html.sh (seen_modules, seen_files): New variables.
63989         (func_module): Rewrite to use a few less gnulib-tool and sed
63990         invocations.  Avoid a couple of quadratic algorithms for ...
63991         (missed_modules, missed_files): ... these, with ...
63992         (func_append, func_tmpdir): ... these new functions, from
63993         gnulib-tool.  Analogously, install traps for cleanup.
63994
63995         * tests/test-gc.c (main): Remove unused variables.
63996         * tests/test-read-file.c: Include stdlib.h, for 'free'.
63997
63998 2006-11-14  Paul Eggert  <eggert@cs.ucla.edu>
63999
64000         * modules/inttostr (License): Change to LGPL.
64001
64002 2006-11-14  Eric Blake  <ebb9@byu.net>
64003
64004         * modules/tempname (License): Change to LGPL.
64005
64006 2006-11-14  Eric Blake  <ebb9@byu.net>
64007
64008         * doc/functions.texi (Function Portability): *printf functions on
64009         Cygwin now understand all POSIX size specifiers.
64010
64011 2006-11-14  Bruno Haible  <bruno@clisp.org>
64012
64013         * modules/c-ctype (License): Change to LGPL.
64014
64015 2006-11-12  Bruno Haible  <bruno@clisp.org>
64016
64017         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
64018         AC_LIB_LINKFLAGS_BODY): Also set a LIB${NAME}_PREFIX variable. Needed
64019         for GNOME libraries, for which the include files are installed in
64020         subdirectories of $prefix/include.
64021
64022 2006-11-12  Bruno Haible  <bruno@clisp.org>
64023
64024         * m4/lib-link.m4: Require at least autoconf-2.54.
64025         (AC_LIB_LINKFLAGS_BODY) [autoconf < 2.61]: Turn dots into the library
64026         name to underscores for the --with option.
64027
64028 2006-11-13  Bruno Haible  <bruno@clisp.org>
64029
64030         * gnulib-tool (func_create_testdir): Set gl_source_base correctly in
64031         the tests directory.
64032         Reported by Ralf Wildenhues.
64033
64034 2006-11-13  Bruno Haible  <bruno@clisp.org>
64035
64036         * gnulib-tool (func_emit_initmacro_start): Also override AC_LIBSOURCES.
64037         (func_emit_initmacro_end): Undo the override here.
64038         (func_emit_initmacro_done): Emit a definition for gl_LIBSOURCES.
64039         Works around the famous automake error in coreutils.
64040
64041 2006-11-13  Eric Blake  <ebb9@byu.net>
64042
64043         * lib/gl_anytree_oset.h (gl_tree_search_atleast): Return the
64044         element, not its node.
64045
64046 2006-11-12  Bruno Haible  <bruno@clisp.org>
64047
64048         * gnulib-tool (func_emit_lib_Makefile_am): Replace occurrences of
64049         '$(top_srcdir)/build-aux/', taking into account the real auxdir.
64050
64051 2006-11-12  Bruno Haible  <bruno@clisp.org>
64052
64053         * gnulib-tool: New option --local-symlink.
64054         (func_usage): Document it.
64055         (lsymbolic): New variable.
64056         (func_import, func_create_testdir): If --symlink was not specified,
64057         test whether --local-symlink was specified and the file comes from
64058         the local_gnulib_dir.
64059
64060 2006-11-12  Bruno Haible  <bruno@clisp.org>
64061
64062         * gnulib-tool (func_ln): New function.
64063         (func_ln_if_changed, func_create_testdir): Use it instead of "ln -s".
64064
64065 2006-11-12  Bruno Haible  <bruno@clisp.org>
64066
64067         Finish support for source files in subdirectories.
64068         * gnulib-tool (func_emit_lib_Makefile_am): If some of the source files
64069         are in subdirectories, set uses_subdirs and add 'subdir-objects' to
64070         AUTOMAKE_OPTIONS.
64071         (func_import, func_create_testdir): Invoke AM_PROG_CC_C_O in this case.
64072
64073 2006-11-12  Bruno Haible  <bruno@clisp.org>
64074
64075         * gnulib-tool (func_get_automake_snippet): Synthesize also an
64076         EXTRA_lib_SOURCES augmentation.
64077         (func_emit_lib_Makefile_am): Initialize EXTRA_lib..._SOURCES to empty.
64078
64079 2006-11-12  Jim Meyering  <jim@meyering.net>
64080
64081         Make fts (in FTS_CWDFD mode) more efficient by caching a few open
64082         file descriptors.  This also averts a failure on systems with
64083         native openat support when a traversed directory lacks "x" access.
64084         * lib/fts_.h: Include "i-ring.h"
64085         (struct FTS) [fts_fd_ring]: New member.
64086         * lib/fts.c (RESTORE_INITIAL_CWD): Also call fd_ring_clear.
64087         (FCHDIR): Add parentheses.
64088         (fd_ring_check, fd_ring_print) [!FTS_DEBUG]: Define away.
64089         (cwd_advance_fd): Add a 3rd parameter.  Adjust all callers.
64090         When descending, rather than simply closing the previous
64091         fts_cwd_fd value, push that file descriptor onto the ring.
64092         (same_fd, fd_ring_print, fd_ring_check) [FTS_DEBUG]: New functions.
64093         (fts_open): Initialize the new fd_ring member.
64094         (fts_close): Clear the ring.
64095         (fts_safe_changedir): When possible, use our new fd_ring to skip
64096         the diropen and fstat and dev/ino comparison that would normally
64097         accompany a virtual `chdir ("..")'.
64098
64099         * modules/fts (Depends-on): Add i-ring.
64100         * modules/i-ring: New module.
64101         * lib/i-ring.c, lib/i-ring.h, lib/i-ring-test.c: New files.
64102         * m4/i-ring.m4: New file.
64103
64104 2006-11-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
64105
64106         * gnulib-tool (func_create_testdir): Fix replacement of
64107         `build-aux' in configure.ac.  Run autotools in gltests
64108         subdirectory.
64109         (func_create_testdir, func_create_megatestdir, test): There is
64110         no need for '--force' in most autotool invocations in a new
64111         tree.  Actually fail the whole test if any of the tools, or the
64112         configure or make stages fail.
64113
64114         Sync from Automake.
64115         * build-aux/gnupload: Revert last change.  Add pointer to upload
64116         instructions of the GNU Maintenance Instructions.
64117         Suggestion by Karl Berry.
64118
64119 2006-11-10  Jim Meyering  <jim@meyering.net>
64120
64121         * lib/fts.c [FTS_DEBUG]: Don't try to print a pointer via %s.
64122
64123 2006-11-09  Paul Eggert  <eggert@cs.ucla.edu>
64124
64125         * lib/gettext.h (dgettext, dcgettext, ngettext) [! ENABLE_NLS]:
64126         (dngettext, dcngettext, bindtextdomain) [! ENABLE_NLS]:
64127         (bind_textdomain_codeset) [! ENABLE_NLS]:
64128         Evaluate all the arguments.  That way, callers get compatible behavior
64129         if the arguments have side effects.  Also, it avoids some GCC
64130         diagnostics in some cases; Joel E. Denny reported problems when Bison
64131         was configured with --enable-gcc-warnigs.
64132
64133 2006-11-10  Jim Meyering  <jim@meyering.net>
64134
64135         * m4/inline.m4 (gl_INLINE): Check with the compiler, not cpp, so that
64136         relevant options in CFLAGS (like -O, -fno-inline) are taken into
64137         account.
64138
64139 2006-11-10  Jim Meyering  <jim@meyering.net>
64140
64141         * modules/inline: New file/module.
64142         * modules/xalloc (Files): Remove m4/inline.m4.
64143         (Depends-on): Add inline, instead.
64144         * modules/oset: Likewise.
64145         * modules/list: Likewise.
64146
64147 2006-11-09  Paul Eggert  <eggert@cs.ucla.edu>
64148
64149         * lib/stdint_.h (uintmax_t): Fix typo: int64_t -> uint64_t.
64150         Problem reported by Matthew Woehlke.
64151
64152 2006-11-09  Bruno Haible  <bruno@clisp.org>
64153
64154         * lib/tempname.c (gen_tempname): Remove variant that invokes
64155         __gen_tempname.
64156         * m4/tempname.m4 (gl_FUNC_GEN_TEMPNAME): Don't test for
64157         __gen_tempname.
64158
64159 2006-11-08  Bruno Haible  <bruno@clisp.org>
64160
64161         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Set ac_cv_type_long_long_int
64162         to 'yes' instead of 'cross-compiling'.
64163
64164 2006-11-08  Paul Eggert  <eggert@cs.ucla.edu>
64165
64166         * lib/quotearg.h (quotearg_free): New decl.
64167         * lib/quotearg.c (quotearg_free): New function.
64168         (slot0, nslots, slotvec0, slotvec):
64169         Now file-scope so that quotearg_free can get at them.
64170
64171 2006-11-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
64172
64173         Sync from Automake.
64174         * build-aux/gnupload: Add missing 'gnu' to example URL.
64175         Report by Karl Berry.
64176
64177 2006-11-08  Bruno Haible  <bruno@clisp.org>
64178
64179         * m4/inline.m4 (gl_INLINE): Also test __NO_INLINE__.
64180         Suggested by Paul Eggert.
64181
64182 2006-11-08  Jim Meyering  <jim@meyering.net>
64183
64184         * lib/fts.c [!_LGPL_PACKAGE]: Don't include fcntl--.h twice.
64185         It's already included if !_LIBC.
64186         (fts_safe_changedir): Add a comment.
64187
64188 2006-11-07  Paul Eggert  <eggert@cs.ucla.edu>
64189
64190         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Detect bug in
64191         Tandem NonStop Kernel (OSS) cc -O circa 2004, reported by
64192         Matthew Woehlke.
64193
64194         * lib/xalloc.h (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): Move
64195         definitions up, to avoid colliding with change below.
64196         (static_inline) [HAVE_INLINE]: New macro.
64197         (xnmalloc, xnrealloc, x2nrealloc, xcharalloc):
64198         Provide extern decls when !HAVE_INLINE.  Do not define unless
64199         static_inline is defined, either by us or by xmalloc.c.  Use
64200         static_inline rather than static inline.
64201         (XCALLOC): Optimize sizeof(T) = 1 case.
64202         * lib/xmalloc.c (static_inline) [!HAVE_INLINE]: New macro.
64203
64204 2006-11-07  Bruno Haible  <bruno@clisp.org>
64205
64206         * lib/xalloc.h (XNMALLOC): Restore optimization of sizeof(T) = 1 case.
64207         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Require gl_INLINE instead of
64208         AC_C_INLINE.
64209         * modules/xalloc (Files): Add m4/inline.m4.
64210
64211 2006-11-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
64212
64213         * README: Fix typo.
64214         * doc/gnulib.texi (Miscellaneous Notes): Likewise, rename...
64215         (Miscellanous Notes): ...from this.
64216
64217 2006-11-07  Paul Eggert  <eggert@cs.ucla.edu>
64218
64219         * m4/flexmember.m4 (AC_C_FLEXIBLE_ARRAY_MEMBER):
64220         Mention that offsetof should be used instead of sizeof.
64221         From Bruno Haible.
64222
64223 2006-11-07  Bruno Haible  <bruno@clisp.org>
64224
64225         * lib/w32spawn.h (prepare_spawn): Use XNMALLOC instead of xmalloc.
64226
64227 2006-11-06  Paul Eggert  <eggert@cs.ucla.edu>
64228
64229         Simplify xmalloc expressions. Add overflow check in xmalloc arguments.
64230         * lib/gl_anyavltree_list2.h (create_subtree_with_contents):
64231         (gl_tree_create, gl_tree_add_first, gl_tree_add_last):
64232         (gl_tree_add_before, gl_tree_add_after):
64233         Use XMALLOC instead of xmalloc, and XCALLOC instead of xzalloc.
64234         * lib/gl_anyhash_list2.h (hash_resize): Likewise.
64235         * lib/gl_anylinked_list2.h (gl_linked_create_empty, gl_linked_create):
64236         (gl_linked_add_first, gl_linked_add_last, gl_linked_add_before):
64237         (gl_linked_add_after, gl_linked_add_at): Likewise.
64238         * lib/gl_anyrbtree_list2.h (create_subtree_with_contents):
64239         (gl_tree_create, gl_tree_add_first, gl_tree_add_last):
64240         (gl_tree_add_before, gl_tree_add_after): Likewise.
64241         * lib/gl_anytree_list2.h (gl_tree_create_empty): Likewise.
64242         * lib/gl_anytree_oset.h (gl_tree_create_empty): Likewise.
64243         * lib/gl_anytreehash_list1.h (add_to_bucket): Likewise.
64244
64245 2006-11-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
64246
64247         * lib/gl_oset.h: Use C comment style, not C++ comment style.
64248
64249 2006-11-06  Bruno Haible  <bruno@clisp.org>
64250
64251         * m4/inline.m4: New file.
64252         * m4/gl_list.m4 (gl_LIST): Require gl_INLINE.
64253         * modules/list (Files): Add m4/inline.m4.
64254         * modules/oset (Files): Likewise.
64255
64256 2006-11-06  Paul Eggert  <eggert@cs.ucla.edu>
64257
64258         * lib/idcache.c: Include <stddef.h>, for offsetof.
64259         (struct userid.name): Change from char * to a flexible array member.
64260         All uses changed.
64261         * modules/idcache (Depends-on): Add flexmember.
64262
64263         * MODULES.html.sh (Core language properties): New module flexmember.
64264         * modules/flexmember, m4/flexmember.m4: New files.
64265
64266         * lib/xalloc.h (xnmalloc, xnrealloc, x2nrealloc): Now static
64267         inline functions that are identical with the old xnmalloc_inline,
64268         xnrealloc_inline, x2nrealloc_inline of lib/xmalloc.c.  This is so
64269         that we can avoid some unnecessary integer multiplications and
64270         divisions in the common case where the element size is known at
64271         compile time.
64272         (XNMALLOC) [HAVE_INLINE]: Remove special case, which is no longer
64273         needed.
64274         (xnboundedmalloc): Remove.
64275         (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): Use lower-case letters for
64276         arguments, for consistency with rest of this header.
64277         (xcharalloc): Rewrite using XNMALLOC.
64278         * lib/xmalloc.c (xnmalloc_inline, xnmalloc, xnrealloc_inline):
64279         (xnrealloc, x2nrealloc_inline, x2nrealloc): Remove.  The *_inline
64280         versions have been moved to lib/xalloc.h and renamed to be the
64281         non-*_inline versions.
64282         (xmalloc, xrealloc): Implement without reference to the xnmalloc
64283         and xnrealloc functions, since those functions are now inline and
64284         now call us.
64285         (x2realloc): Invoke x2realloc, not x2realloc_inline, to accommodate
64286         renaming described above.
64287         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Remove AC_C_INLINE since
64288         xmalloc.c no longer uses inline directly.  gl_PREREQ_XALLOC now
64289         captures the dependency in AC_C_INLINE.
64290
64291         New module canonicalize-lgpl, proposed by Charles Wilson in
64292         <http://lists.gnu.org/archive/html/bug-gnulib/2006-11/msg00020.html>
64293         with a few small changes afterwards.
64294         * MODULES.html.sh (File system functions): New module
64295         canonicalize-lgpl.
64296         * lib/canonicalize.h: Add comments for canonicalize_filename_mode
64297         and canonicalize_file_name.
64298         * lib/canonicalize-lgpl.c, m4/canonicalize-lgpl.m4:
64299         * modules/canonicalize-lgpl: New files.
64300
64301 2006-11-05  Bruno Haible  <bruno@clisp.org>
64302
64303         * gnulib-tool (func_import, func_create_testdir): Create directories
64304         also for files in subdirectories of lib/.
64305
64306 2006-11-05  Bruno Haible  <bruno@clisp.org>
64307
64308         * lib/gl_array_list.c (gl_array_iterator_next): Make pointer decrement
64309         ANSI C compliant.
64310
64311 2006-11-03  Bruno Haible  <bruno@clisp.org>
64312
64313         Simplify xmalloc expressions. Add overflow check in xmalloc arguments.
64314         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Require AC_C_INLINE.
64315         * lib/xalloc.h (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): New macros.
64316         (xnboundedmalloc): New inline function.
64317         * lib/classpath.c (new_classpath): Use XNMALLOC instead of xmalloc.
64318         * lib/clean-temp.c (create_temp_dir): Use XNMALLOC, XMALLOC instead of
64319         xmalloc.
64320         * lib/concatpath.c (concatenated_pathname): Use XNMALLOC instead of
64321         xmalloc.
64322         * lib/fatal-signal.c (at_fatal_signal): Use XNMALLOC instead of xmalloc.
64323         * lib/findprog.c (find_in_path): Use XNMALLOC instead of xmalloc.
64324         * lib/gl_array_list.c (gl_array_create_empty): Use XMALLOC instead of
64325         xmalloc.
64326         (gl_array_create): Use XNMALLOC, XMALLOC instead of xmalloc.
64327         * lib/gl_array_oset.c (gl_array_create_empty): Use XNMALLOC instead of
64328         xmalloc.
64329         * lib/gl_avltree_oset.c (gl_tree_add_first, gl_tree_add_before,
64330         gl_tree_add_after): Use XMALLOC instead of xmalloc.
64331         * lib/gl_carray_list.c (gl_carray_create_empty): Use XMALLOC instead of
64332         xmalloc.
64333         (gl_carray_create): Use XNMALLOC, XMALLOC instead of xmalloc.
64334         * lib/gl_rbtree_oset.c (gl_tree_add_first, gl_tree_add_before,
64335         gl_tree_add_after): Use XMALLOC instead of xmalloc.
64336         * lib/gl_sublist.c (gl_sublist_create): Use XMALLOC instead of xmalloc.
64337         * lib/pagealign_alloc.c (new_memnode): Use XMALLOC instead of xmalloc.
64338         * lib/sh-quote.c (shell_quote_argv): Use XNMALLOC instead of xmalloc.
64339         * lib/xvasprintf.c (xstrcat): Use XNMALLOC instead of xmalloc.
64340
64341 2006-11-03  Bruno Haible  <bruno@clisp.org>
64342
64343         * lib/c-ctype.h [C++]: Define functions without name mangling.
64344         * lib/fwriteerror.h [C++]: Likewise.
64345         * lib/gcd.h [C++]: Likewise.
64346         * lib/linebreak.h [C++]: Likewise.
64347
64348 2006-11-03  Paul Eggert  <eggert@cs.ucla.edu>
64349
64350         * lib/canonicalize.h: (canonicalize_mode_t, CAN_EXISTING):
64351         (CAN_ALL_BUT_LAST, CAN_MISSING, canonicalize_filename_mode):
64352         Define only if PROVIDE_CANONICALIZE_FILENAME_MODE is defined.
64353         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME):
64354         Check for functions and headers just once.
64355         Check for declaration of canonicalize_file_name.
64356         Define PROVIDE_CANONICALIZE_FILENAME_MODE.
64357
64358 2006-11-02  Charles Wilson  <cygwin@cwilson.fastmail.fm>
64359
64360         * gnulib-tool (func_import): Fix typo in actioncmd.
64361
64362 2006-11-02  Bruno Haible  <bruno@clisp.org>
64363
64364         * gnulib-tool (func_get_automake_snippet): Interpret a backslash-
64365         newline sequence in the Makefile.am snippet as a space, like "make"
64366         does.
64367         Reported by Roger Persson <perrog@gmail.com>.
64368
64369 2006-11-01  Bruno Haible  <bruno@clisp.org>
64370
64371         * m4/strcase.m4 (gl_FUNC_STRNCASECMP): Check whether strncasecmp is
64372         already declared in <string.h>.
64373         * lib/strcase.h (strncasecmp): Don't declare it if yes.
64374
64375 2006-11-01  Bruno Haible  <bruno@clisp.org>
64376
64377         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Don't define strcasecmp here.
64378         * lib/strcase.h: Include <string.h>.
64379         (strcasecmp): Define to rpl_strcasecmp here.
64380
64381 2006-11-01  Bruno Haible  <bruno@clisp.org>
64382
64383         * lib/printf-parse.c (PRINTF_PARSE): Cast malloc/realloc results.
64384
64385 2006-11-01  Eric Blake  <ebb9@byu.net>
64386
64387         * lib/mkstemp-safer.c (mkstemp_safer): Allow C++ compilation.
64388
64389         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Allow C++ configuration.
64390
64391 2006-10-29  Bruno Haible  <bruno@clisp.org>
64392
64393         Make it compile in C++ mode.
64394         * lib/full-write.c (full_rw): Add a cast.
64395
64396 2006-11-01  Bruno Haible  <bruno@clisp.org>
64397
64398         * gnulib-tool (func_get_automake_snippet): Change sed_combine_lines to
64399         be POSIX compliant.
64400         Reported by Roger Persson <perrog@gmail.com>.
64401
64402 2006-11-01  Eric Blake  <ebb9@byu.net>
64403
64404         * lib/getopt_.h: Fix comments.
64405
64406 2006-10-31  Eric Blake  <ebb9@byu.net>
64407
64408         * modules/tmpdir (Depends-on): Add sys_stat.
64409         * modules/mkdtemp (Depends-on): Add tempname, drop unistd.
64410         * lib/mkdtemp.c (gen_tempname): Remove; tempname covers this.
64411         * lib/tmpdir.c (S_ISDIR): Simplify, thanks to sys_stat.
64412         * m4/mkdtemp.m4 (gl_PREREQ_MKDTEMP): Simplify, thanks to
64413         tempname.
64414
64415 2006-10-31  Paul Eggert  <eggert@cs.ucla.edu>
64416
64417         Avoid some C++ diagnostics reported by Bruno Haible.
64418         * lib/quotearg.c (clone_quoting_options): Use xmemdup rather than
64419         xmalloc.
64420         (quotearg_alloc): Use xcharalloc rather than xmalloc.
64421         (struct slotvec): Move to top level.
64422         (quotearg_n_options): Rewrite to avoid xmalloc.
64423         * lib/xalloc.h (xcharalloc): New function.
64424         * (xrealloc, xnrealloc, x2realloc, x2nrealloc, xmemdup):
64425         [defined __cplusplus]: Add function template that provides result
64426         type propagation.  This part of the change is from Bruno Haible.
64427
64428 2006-10-29  Bruno Haible  <bruno@clisp.org>
64429
64430         Make it compile in C++ mode.
64431         * lib/striconv.c (mem_cd_iconv): Cast malloc/realloc result.
64432         * lib/strnlen1.c (strnlen1): Cast memchr result.
64433         * lib/mbchar.h (mb_copy): Rename arguments to 'new_mbc', 'old_mbc'.
64434         * lib/clean-temp.c (string_equals, string_hash): Add casts.
64435         (create_temp_dir): Rename local variable 'template'.
64436         (compile_csharp_using_sscli): Add cast.
64437         * lib/fatal-signal.c (at_fatal_signal): Cast xmalloc result.
64438         * lib/findprog.c (find_in_path): Likewise.
64439         * lib/linebreak.c (mbs_width_linebreaks): Cast malloc result.
64440         * lib/wait-process.c (register_slave_subprocess): Likewise.
64441
64442 2006-10-22  Bruno Haible  <bruno@clisp.org>
64443
64444         * modules/tsearch: New file.
64445         * lib/tsearch.h: New file.
64446         * lib/tsearch.c: New file, from glibc-2.5 with small modifications.
64447         * m4/tsearch.m4: New file.
64448         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add tsearch.
64449
64450 2006-10-29  Eric Blake  <ebb9@byu.net>
64451
64452         * lib/arcfour.c: Assume config.h.
64453         * lib/arctwo.c: Likewise.
64454         * lib/base64.c: Likewise.
64455         * lib/check-version.c: Likewise.
64456         * lib/crc.c: Likewise.
64457         * lib/des.c: Likewise.
64458         * lib/gc-gnulib.c: Likewise.
64459         * lib/gc-libgcrypt.c: Likewise.
64460         * lib/gc-pbkdf2-sha1.c: Likewise.
64461         * lib/getaddrinfo.c: Likewise.
64462         * lib/getdelim.c: Likewise.
64463         * lib/getline.c: Likewise.
64464         * lib/hmac-md5.c: Likewise.
64465         * lib/hmac-sha1.c: Likewise.
64466         * lib/iconvme.c: Likewise.
64467         * lib/md2.c: Likewise.
64468         * lib/md4.c: Likewise.
64469         * lib/memxor.c: Likewise.
64470         * lib/read-file.c: Likewise.
64471         * lib/readline.c: Likewise.
64472         * lib/rijndael-alg-fst.c: Likewise.
64473         * lib/rijndael-api-fst.c: Likewise.
64474         * lib/xgetdomainname.c: Likewise.
64475
64476 2006-10-28  Eric Blake  <ebb9@byu.net>
64477
64478         * lib/xstrndup.c: Assume config.h.
64479
64480 2006-10-27  Paul Eggert  <eggert@cs.ucla.edu>
64481
64482         Move stat.h-substitute stuff from lib/stat-macros.h to lib/stat_.h.
64483         stat-macros.h is now for our own macros, whereas stat_h is for
64484         macros in the <sys/stat.h> name space.
64485         * lib/stat-macros.h: Remove copyright notice, as this file is now tiny.
64486         (STAT_MACROS_H): Remove.
64487         (S_IFMT, S_ISBLK, S_ISCHR, S_ISDIR, S_ISFIFO, S_ISLNK, S_ISNAM):
64488         (S_ISMPB, S_ISMPC, S_ISNWK, S_ISREG, S_ISSOCK, S_ISDOOR, S_ISPORT):
64489         (S_TYPEISMQ, S_TYPEISTMO, S_TYPEISSEM, S_TYPEISSHM, S_ISCTG, S_ISOFD):
64490         (S_ISOFL, S_ISWHT, S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IRGRP):
64491         (S_IROTH, S_IWUSR, S_IWGRP, S_IWOTH, S_IXUSR, S_IXGRP, S_IXOTH):
64492         (S_IRWXU, S_IRWXG, S_IRWXO, S_IXUGO, S_IRWXUGO):
64493         Move these macros to ...
64494         * lib/stat_.h: here.  Don't include stat-macros.h.
64495         * lib/canonicalize.c: Don't include stat-macros.h.
64496         * lib/chown.c: Likewise.
64497         * lib/euidaccess.c: Likewise.
64498         * lib/file-type.c: Likewise.
64499         * lib/filemode.c: Likewise.
64500         * lib/glob.c: Likewise.
64501         * lib/isapipe.c: Likewise.
64502         * lib/lchown.c: Likewise.
64503         * lib/lstat.c: Likewise.
64504         * lib/mkdir-p.c: Likewise.
64505         * lib/rmdir.c: Likewise.
64506         * m4/lchown.m4 (gl_FUNC_LCHOWN): Don't require gl_STAT_MACROS.
64507         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Don't check for io.h
64508         unless mkdir isn't declared, to speed up 'configure'.
64509         Always create sys/stat.h, since it's unlikely any real sys/stat.h
64510         would define all the S_* symbols.
64511         * modules/canonicalize (Depends-on):
64512         Depend on sys_stat, not stat-macros.
64513         * modules/chown: Likewise.
64514         * modules/euidaccess: Likewise.
64515         * modules/filemode: Likewise.
64516         * modules/file-type: Likewise.
64517         * modules/glob: Likewise.
64518         * modules/isapipe: Likewise.
64519         * modules/lchown: Likewise.
64520         * modules/lstat: Likewise.
64521         * modules/mkancesdirs: Likewise.
64522         * modules/rmdir: Likewise.
64523         * modules/mkdir-p (Depends-on): Also depend on sys_stat.
64524         * modules/modechange: Likewise.
64525         * modules/stat-macros (Files): Remove m4/stat-macros.m4.
64526         (configure.ac): Remove gl_STAT_MACROS.
64527         * modules/sys_stat (Depends-on): Remove stat-macros.
64528
64529 2006-10-27  Bruno Haible  <bruno@clisp.org>
64530
64531         * m4/signed.m4: Remove file.
64532         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS_: Remove bh_C_SIGNED
64533         invocation.
64534         * modules/vasnprintf (Files): Remove m4/signed.m4.
64535
64536 2006-10-27  Bruno Haible  <bruno@clisp.org>
64537
64538         Update to GNU gettext 0.16.
64539         * modules/gettext (Files): Add m4/intl.m4, m4/intldir.m4. Remove
64540         m4/inttypes-h.m4, m4/signed.m4.
64541         * m4/gettext.m4: Update to GNU gettext 0.16.
64542         * m4/intl.m4: New file, from GNU gettext.
64543         * m4/intldir.m4: New file, from GNU gettext.
64544         * config/srclist.txt: Update
64545
64546 2006-10-27  Eric Blake  <ebb9@byu.net>
64547
64548         * MODULES.html.sh: Document tempname.
64549         * modules/mkstemp (Depends-on): Add tempname, and drop transitive
64550         dependencies.
64551         (Files): Move lib/tempname.c...
64552         * modules/tempname: ...to this new module.
64553         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Remove tempname checks.
64554         (gl_PREREQ_TEMPNAME): Move...
64555         * m4/tempname.m4: ...to this new file.
64556         * lib/mkstemp.c (includes) [!_LIBC]: Use tempname.h.
64557         * modules/sys_stat (Depends-on): Add stat-macros.
64558         * lib/stat_.h (includes): Pick up stat macros.
64559         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Replace <sys/stat.h>
64560         if stat macros are broken.
64561         * lib/tempname.c (includes): No need to include "stat-macros.h".
64562         (__gen_tempname) [!_LIBC]: Expose as gen_tempname.
64563         (direxists, __path_search) [!_LIBC]: Don't compile these in
64564         gnulib; the tmpdir module covers that.
64565         * lib/tempname.h: New file.
64566
64567 2006-10-26  Paul Eggert  <eggert@cs.ucla.edu>
64568
64569         * COPYING: Explain how gnulib-tool converts licence headers.
64570         Almost all wording by Eric Blake.
64571
64572 2006-10-25  Paul Eggert  <eggert@cs.ucla.edu>
64573
64574         * lib/mbchar.h (is_basic_table): Make read-only.
64575         * lib/mbchar.c (is_basic_table): Likewise.
64576         Reported by John Darrington.
64577
64578 2006-10-25  Bruno Haible  <bruno@clisp.org>
64579
64580         * lib/progname.h (set_program_name): Undefine before defining.
64581
64582 2006-10-25  Bruno Haible  <bruno@clisp.org>
64583
64584         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Define to
64585         false for non-gcc C++ compilers.
64586         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
64587
64588 2006-10-24  Bruno Haible  <bruno@clisp.org>
64589
64590         * lib/striconv.c (mem_cd_iconv, str_cd_iconv): Treat all non-GNU
64591         iconv implementations like Irix iconv.
64592
64593 2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
64594
64595         * modules/vararrays: New file.
64596         * m4/vararrays.m4: New file, taken from diffutils.
64597         * MODULES.html.sh: New module vararrays.
64598
64599 2006-10-24  Karl Berry  <karl@gnu.org>
64600
64601         * doc/gnulib-intro.texi: --- instead of --; non-naive naive.
64602         Don't call GNU Unix.
64603
64604 2006-10-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
64605
64606         * users.txt: Add Libtool.
64607
64608         Sync from Libtool:
64609
64610         2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
64611
64612         * lib/argz.c: Remove check for HAVE_CONFIG_H, to conform
64613         to gnulib's policy of including config.h unconditionally.
64614
64615 2006-10-24  Bruno Haible  <bruno@clisp.org>
64616
64617         * modules/wcwidth (Files): Add m4/wint_t.m4.
64618         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Require gt_TYPE_WINT_T.
64619         * lib/wcwidth.h (iswprint): Use 'int' if 'wint_t' is not defined.
64620
64621 2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
64622
64623         * lib/getdate.y (yyerror): Make the arguments pointer-to-const,
64624         to pacify GCC with some -W flags enabled.  Problem reported by
64625         Bruno Haible.
64626
64627 2006-10-24  Jim Meyering  <jim@meyering.net>
64628
64629         * MODULES.html.sh: Remove uinttostr.  It's not a module.
64630         Reported by Karl Berry.
64631
64632 2006-10-23  Bruno Haible  <bruno@clisp.org>
64633
64634         * lib/fts.c (fts_build): Move variable declaration, for C89 compliance.
64635
64636 2006-10-24  Bruno Haible  <bruno@clisp.org>
64637
64638         * lib/gl_list.h: Use C comment style, not C++ comment style.
64639
64640 2006-10-23  Eric Blake  <ebb9@byu.net>
64641
64642         * lib/getaddrinfo.c (includes): Add missing include.
64643
64644 2006-10-23  Bruno Haible  <bruno@clisp.org>
64645             Paul Eggert  <eggert@cs.ucla.edu>
64646
64647         Ability to rename obstack_free.
64648         * lib/obstack.h (__obstack_free): New macro. Declare instead of
64649         obstack_free.
64650         (obstack_free): Invoke the __obstack_free macro.
64651         * lib/obstack.c (obstack_free): Use __obstack_free macro.
64652
64653 2006-10-23  Bruno Haible  <bruno@clisp.org>
64654             Paul Eggert  <eggert@cs.ucla.edu>
64655
64656         * lib/argp.h (argp_parse, __argp_parse): Comment out the identifiers
64657         __argc, __argv from the declaration. (They are defined as macros on
64658         mingw.)
64659
64660 2006-10-22  Bruno Haible  <bruno@clisp.org>
64661
64662         * doc/gnulib-intro.texi: New file.
64663         * doc/gnulib.texi: Include it.
64664
64665 2006-10-21  Bruno Haible  <bruno@clisp.org>
64666
64667         * doc/gnulib.texi: Split the chapter "Gnulib" into 3 chapters
64668         "Introduction", "Miscellanous Notes", "Particular Modules".
64669
64670 2006-10-21  Bruno Haible  <bruno@clisp.org>
64671
64672         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
64673         Change mostlyclean-local rule to avoid sh syntax error from bash
64674         versions 2.00..2.05 when $(MOSTLYCLEANDIRS) is empty.
64675
64676 2006-10-23  Jim Meyering  <jim@meyering.net>
64677
64678         * lib/getaddrinfo.c (getnameinfo): Use new lightweight uinttostr,
64679         in place of snprintf.
64680
64681         * modules/inttostr (Files): Add lib/uinttostr.c.
64682         * lib/uinttostr.c (inttostr): New file/function.
64683         * lib/inttostr.h (uinttostr): Declare.
64684         * m4/inttostr.m4: Add AC_LIBOBJ([uinttostr]).
64685         * MODULES.html.sh (Numeric conversion functions <stdlib.h>):
64686         Add uinttostr.
64687         * modules/getaddrinfo (Depends-on): Remove snprintf.  Add inttostr.
64688
64689 2006-10-21  Paul Eggert  <eggert@cs.ucla.edu>
64690
64691         * lib/canonicalize.c (ELOOP): Define if not already defined.
64692         Problem reported by Bruno Haible in
64693         <http://lists.gnu.org/archive/html/bug-gnulib/2006-10/msg00282.html>.
64694
64695 2006-10-21  Paul Eggert  <eggert@cs.ucla.edu>
64696
64697         * lib/stdint_.h [defined _AIX]: Don't include <sys/types.h>.
64698         Problem reported by Perry Smith and Ville Laurikari.
64699
64700         * lib/getndelim2.c (SSIZE_MAX): Use same defn that getdelim.c
64701         uses.
64702
64703 2006-10-19  Bruno Haible  <bruno@clisp.org>
64704
64705         * lib/getndelim2.c (SSIZE_MAX): Provide fallback definition. Needed
64706         for mingw.
64707
64708 2006-10-19  Bruno Haible  <bruno@clisp.org>
64709
64710         * lib/openat-priv.h (EOPNOTSUPP): Provide fallback definition.
64711         Needed for mingw.
64712
64713 2006-10-19  Bruno Haible  <bruno@clisp.org>
64714
64715         * m4/size_max.m4 (gl_SIZE_MAX): Cache the result.
64716
64717 2006-10-19  Bruno Haible  <bruno@clisp.org>
64718
64719         * m4/allocsa.m4 (gl_ALLOCSA): Invoke gl_FUNC_ALLOCA, don't AC_REQUIRE
64720         it.
64721
64722 2006-10-19  Bruno Haible  <bruno@clisp.org>
64723
64724         * m4/alloca.m4 (gl_FUNC_ALLOCA): Cache the result of the AC_EGREP_CPP
64725         invocation.
64726
64727 2006-10-19  Bruno Haible  <bruno@clisp.org>
64728
64729         * gnulib-tool (func_create_testdir): Don't include ftruncate and
64730         mountlist by default.
64731
64732 2006-10-16  Bruno Haible  <bruno@clisp.org>
64733
64734         * lib/c-strstr.c: Include c-strstr.h.
64735
64736 2006-10-18  Charles Wilson  <cygwin@cwilson.fastmail.fm>
64737
64738         * gnulib-tool: Don't clobber $sourcebase when $local_gnulib_dir ends
64739         in a slash.
64740
64741 2006-10-18  Bruno Haible  <bruno@clisp.org>
64742
64743         * lib/lock.h [C++]: Wrap definitions in extern "C".
64744
64745 2006-10-18  Bruno Haible  <bruno@clisp.org>
64746
64747         * gnulib-tool (func_emit_initmacro_end): Remove duplicates from the
64748         gl_LIBOBJS list.
64749
64750 2006-10-18  Bruno Haible  <bruno@clisp.org>
64751
64752         * lib/findprog.c (find_in_path): Avoid "gcc -Wwrite-strings" warning.
64753
64754 2006-10-19  Paul Eggert  <eggert@cs.ucla.edu>
64755
64756         * lib/xstrtol.h: Include gettext.h.
64757         (_STRTOL_ERROR): Wrap English-language formats inside gettext.
64758         Problem reported by Eric Blake.
64759         * modules/xstrtol (Depends-on): Add gettext-h.
64760
64761 2006-10-19  Paul Eggert  <eggert@cs.ucla.edu>  (tiny change)
64762
64763         * lib/strftime.c (advance): New macro.
64764         (add): Use it to avoid adding 0 to a FILE *.  FILE can be an
64765         incomplete type, so you can't add 0 to it.  Problem and patch
64766         reported by Eelco Dolstra for dietlibc.
64767
64768 2006-10-18  Jim Meyering  <jim@meyering.net>
64769
64770         * lib/readutmp.c (desirable_utmp_entry): Use "bool" as the
64771         type for a local, and rename it: s/up/user_proc/.
64772
64773 2006-10-18  Sergey Poznyakoff  <gray@gnu.org.ua>
64774
64775         * lib/readutmp.c (desirable_utmp_entry): Implement new flag:
64776         READ_UTMP_USER_PROCESS.
64777         * lib/readutmp.h (READ_UTMP_USER_PROCESS): New flag
64778
64779 2006-10-17  Paul Eggert  <eggert@cs.ucla.edu>
64780
64781         * lib/localcharset.c: Do not check HAVE_SETLOCALE.
64782         * m4/localcharset.m4 (gl_LOCALCHARSET): Don't check for setlocale.
64783
64784 2006-10-17  Eric Blake  <ebb9@byu.net>
64785
64786         * lib/sigprocmask.c (sigprocmask): Fix typo.
64787
64788         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Fix typo.
64789
64790         * modules/clean-temp (Makefile.am): Don't add to make output...
64791         (configure.ac): ...instead define SIGNAL_SAFE_LIST inside
64792         config.h.
64793
64794 2006-10-17  Bruno Haible  <bruno@clisp.org>
64795
64796         * lib/gettext.h (gettext, ngettext, pgettext, npgettext): Define
64797         differently if DEFAULT_TEXT_DOMAIN is set.
64798
64799 2006-10-16  Bruno Haible  <bruno@clisp.org>
64800
64801         * lib/clean-temp.c: Include fwriteerror.h.
64802
64803 2006-10-16  Bruno Haible  <bruno@clisp.org>
64804
64805         * getndelim2.m4 (gl_GETNDELIM2): Remove 2003-10-23 hack.
64806
64807 2006-10-16  Bruno Haible  <bruno@clisp.org>
64808
64809         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Also test for sigset_t.
64810         * lib/sigprocmask.h: Include <sys/types.h>.
64811         (sigset_t): Use the system's definition if present.
64812
64813 2006-10-17  Eric Blake  <ebb9@byu.net>
64814
64815         * lib/xvasprintf.c (includes): Assume config.h.
64816         * lib/xasprintf.c (includes): Likewise.
64817
64818 2006-10-16  Paul Eggert  <eggert@cs.ucla.edu>
64819
64820         * lib/fsusage.c (PROPAGATE_ALL_ONES): Don't assume uintmax_t is
64821         at least as wide as intmax_t.
64822
64823 2006-10-16  Alexandre Duret-Lutz  <adl@gnu.org>
64824
64825         (Imported from Automake.)
64826         * build-aux/gnupload: Update to version 1.1 of directive file.
64827
64828 2006-10-16  Eric Blake  <ebb9@byu.net>
64829
64830         * modules/configmake (Makefile.am): Add pkglibexecdir support, to
64831         match Automake 1.10a.
64832
64833 2006-10-14  Bruno Haible  <bruno@clisp.org>
64834
64835         * modules/sigprocmask: New file.
64836         * lib/sigprocmask.h: New file.
64837         * lib/sigprocmask.c: New file.
64838         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Renamed from
64839         gt_SIGNALBLOCKING. When not defining HAVE_POSIX_SIGNALBLOCKING,
64840         request sigprocmask.o.
64841         (gl_PREREQ_SIGPROCMASK): New macro.
64842         * modules/fatal-signal (Files): Remove m4/signalblocking.m4.
64843         (Depends-on): Add sigprocmask.
64844         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Don't require
64845         gt_SIGNALBLOCKING. Test for 'raise' only once.
64846         * lib/fatal-signal.c: Include sigprocmask.h.
64847         (fatal_signal_set, init_fatal_signal_set, block_fatal_signals,
64848         unblock_fatal_signals): Define always.
64849         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
64850         sigprocmask.
64851
64852 2006-10-14  Paul Eggert  <eggert@cs.ucla.edu>
64853
64854         Sync from Automake.
64855         * build-aux/install-sh (posix_mkdir): Reject FreeBSD 6.1 mkdir -p -m,
64856         which incorrectly sets the mode of an existing destination
64857         directory.  In some cases the unpatched install-sh could do the
64858         equivalent of "chmod 777 /" or "chmod 0 /" on a buggy FreeBSD
64859         system.  We hope this is rare in practice, but it's clearly worth
64860         fixing.  Problem reported by Alex Unleashed in
64861         <http://lists.gnu.org/archive/html/bug-autoconf/2006-10/msg00012.html>.
64862         Also, don't bother to check for -m bugs unless we're using -m;
64863         suggested by Stepan Kasal.
64864
64865 2006-10-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
64866
64867         Sync from Automake.
64868         * build-aux/depcomp (gcc3): Put dependency extraction flags before the
64869         `-c' flag, so they appear at the same position as in %FASTDEP%
64870         mode in depend2.am.  Fixes build failure for FreeBSD's c89,
64871         which ignores unknown options only after the first non-option.
64872         Bug report against M4 by Nelson H. F. Beebe.
64873
64874 2006-10-13  Jim Meyering  <jim@meyering.net>
64875
64876         Fix a bug in yesterday's change.
64877         * lib/fts.c (fts_open): When using FTS_XDEV|FTS_NOSTAT,
64878         p->fts_statp->st_dev would be used uninitialized.
64879         Ensures that we always call fts_stat on the very first entry.
64880         Miklos Szeredi reported that find -xdev stopped working.
64881
64882 2006-10-12  Bruno Haible  <bruno@clisp.org>
64883
64884         * gnulib-tool (func_get_automake_snippet): Append an automatically
64885         computed EXTRA_DIST augmentation.
64886         * modules/acl (Makefile.am): Remove EXTRA_DIST augmentation.
64887         * modules/alloca-opt (Makefile.am): Likewise.
64888         * modules/allocsa (Makefile.am): Likewise.
64889         * modules/arcfour (Makefile.am): Likewise.
64890         * modules/arctwo (Makefile.am): Likewise.
64891         * modules/argmatch (Makefile.am): Likewise.
64892         * modules/argz (Makefile.am): Likewise.
64893         * modules/atexit (Makefile.am): Likewise.
64894         * modules/backupfile (Makefile.am): Likewise.
64895         * modules/byteswap (Makefile.am): Likewise.
64896         * modules/c-strtod (Makefile.am): Likewise.
64897         * modules/c-strtold (Makefile.am): Likewise.
64898         * modules/calloc (Makefile.am): Likewise.
64899         * modules/canon-host (Makefile.am): Likewise.
64900         * modules/canonicalize (Makefile.am): Likewise.
64901         * modules/chdir-long (Makefile.am): Likewise.
64902         * modules/chdir-safer (Makefile.am): Likewise.
64903         * modules/check-version (Makefile.am): Likewise.
64904         * modules/chown (Makefile.am): Likewise.
64905         * modules/cloexec (Makefile.am): Likewise.
64906         * modules/close-stream (Makefile.am): Likewise.
64907         * modules/closeout (Makefile.am): Likewise.
64908         * modules/crc (Makefile.am): Likewise.
64909         * modules/csharpexec (Makefile.am): Likewise.
64910         * modules/cycle-check (Makefile.am): Likewise.
64911         * modules/des (Makefile.am): Likewise.
64912         * modules/dev-ino (Makefile.am): Likewise.
64913         * modules/dirfd (Makefile.am): Likewise.
64914         * modules/dirname (Makefile.am): Likewise.
64915         * modules/dup2 (Makefile.am): Likewise.
64916         * modules/eealloc (Makefile.am): Likewise.
64917         * modules/error (Makefile.am): Likewise.
64918         * modules/euidaccess (Makefile.am): Likewise.
64919         * modules/exclude (Makefile.am): Likewise.
64920         * modules/exitfail (Makefile.am): Likewise.
64921         * modules/fcntl-safer (Makefile.am): Likewise.
64922         * modules/fcntl (Makefile.am): Likewise.
64923         * modules/file-type (Makefile.am): Likewise.
64924         * modules/fileblocks (Makefile.am): Likewise.
64925         * modules/filemode (Makefile.am): Likewise.
64926         * modules/filenamecat (Makefile.am): Likewise.
64927         * modules/fnmatch (Makefile.am): Likewise.
64928         * modules/fopen-safer (Makefile.am): Likewise.
64929         * modules/fpending (Makefile.am): Likewise.
64930         * modules/fprintftime (Makefile.am): Likewise.
64931         * modules/free (Makefile.am): Likewise.
64932         * modules/fsusage (Makefile.am): Likewise.
64933         * modules/ftruncate (Makefile.am): Likewise.
64934         * modules/fts (Makefile.am): Likewise.
64935         * modules/gc-arcfour (Makefile.am): Likewise.
64936         * modules/gc-des (Makefile.am): Likewise.
64937         * modules/gc-hmac-md5 (Makefile.am): Likewise.
64938         * modules/gc-hmac-sha1 (Makefile.am): Likewise.
64939         * modules/gc-md4 (Makefile.am): Likewise.
64940         * modules/gc-pbkdf2-sha1 (Makefile.am): Likewise.
64941         * modules/gc-sha1 (Makefile.am): Likewise.
64942         * modules/gc (Makefile.am): Likewise.
64943         * modules/getaddrinfo (Makefile.am): Likewise.
64944         * modules/getcwd (Makefile.am): Likewise.
64945         * modules/getdelim (Makefile.am): Likewise.
64946         * modules/getdomainname (Makefile.am): Likewise.
64947         * modules/getgroups (Makefile.am): Likewise.
64948         * modules/gethostname (Makefile.am): Likewise.
64949         * modules/gethrxtime (Makefile.am): Likewise.
64950         * modules/getline (Makefile.am): Likewise.
64951         * modules/getloadavg (Makefile.am): Likewise.
64952         * modules/getlogin_r (Makefile.am): Likewise.
64953         * modules/getndelim2 (Makefile.am): Likewise.
64954         * modules/getopt (Makefile.am): Likewise.
64955         * modules/getpagesize (Makefile.am): Likewise.
64956         * modules/getpass-gnu (Makefile.am): Likewise.
64957         * modules/getpass (Makefile.am): Likewise.
64958         * modules/getsubopt (Makefile.am): Likewise.
64959         * modules/gettime (Makefile.am): Likewise.
64960         * modules/gettimeofday (Makefile.am): Likewise.
64961         * modules/getugroups (Makefile.am): Likewise.
64962         * modules/getusershell (Makefile.am): Likewise.
64963         * modules/glob (Makefile.am): Likewise.
64964         * modules/group-member (Makefile.am): Likewise.
64965         * modules/hard-locale (Makefile.am): Likewise.
64966         * modules/hash (Makefile.am): Likewise.
64967         * modules/hmac-md5 (Makefile.am): Likewise.
64968         * modules/hmac-sha1 (Makefile.am): Likewise.
64969         * modules/human (Makefile.am): Likewise.
64970         * modules/idcache (Makefile.am): Likewise.
64971         * modules/imaxabs (Makefile.am): Likewise.
64972         * modules/imaxdiv (Makefile.am): Likewise.
64973         * modules/inet_ntop (Makefile.am): Likewise.
64974         * modules/inet_pton (Makefile.am): Likewise.
64975         * modules/intprops (Makefile.am): Likewise.
64976         * modules/inttostr (Makefile.am): Likewise.
64977         * modules/inttypes (Makefile.am): Likewise.
64978         * modules/isapipe (Makefile.am): Likewise.
64979         * modules/javaversion (Makefile.am): Likewise.
64980         * modules/lchmod (Makefile.am): Likewise.
64981         * modules/lchown (Makefile.am): Likewise.
64982         * modules/localcharset (Makefile.am): Likewise.
64983         * modules/long-options (Makefile.am): Likewise.
64984         * modules/lstat (Makefile.am): Likewise.
64985         * modules/malloc (Makefile.am): Likewise.
64986         * modules/mathl (Makefile.am): Likewise.
64987         * modules/mbchar (Makefile.am): Likewise.
64988         * modules/md2 (Makefile.am): Likewise.
64989         * modules/md4 (Makefile.am): Likewise.
64990         * modules/md5 (Makefile.am): Likewise.
64991         * modules/memcasecmp (Makefile.am): Likewise.
64992         * modules/memchr (Makefile.am): Likewise.
64993         * modules/memcmp (Makefile.am): Likewise.
64994         * modules/memcoll (Makefile.am): Likewise.
64995         * modules/memcpy (Makefile.am): Likewise.
64996         * modules/memmem (Makefile.am): Likewise.
64997         * modules/memmove (Makefile.am): Likewise.
64998         * modules/mempcpy (Makefile.am): Likewise.
64999         * modules/memrchr (Makefile.am): Likewise.
65000         * modules/memset (Makefile.am): Likewise.
65001         * modules/memxor (Makefile.am): Likewise.
65002         * modules/mkancesdirs (Makefile.am): Likewise.
65003         * modules/mkdir-p (Makefile.am): Likewise.
65004         * modules/mkdir (Makefile.am): Likewise.
65005         * modules/mkdtemp (Makefile.am): Likewise.
65006         * modules/mkstemp (Makefile.am): Likewise.
65007         * modules/mktime (Makefile.am): Likewise.
65008         * modules/modechange (Makefile.am): Likewise.
65009         * modules/mountlist (Makefile.am): Likewise.
65010         * modules/nanosleep (Makefile.am): Likewise.
65011         * modules/obstack (Makefile.am): Likewise.
65012         * modules/openat (Makefile.am): Likewise.
65013         * modules/pagealign_alloc (Makefile.am): Likewise.
65014         * modules/pathmax (Makefile.am): Likewise.
65015         * modules/physmem (Makefile.am): Likewise.
65016         * modules/poll (Makefile.am): Likewise.
65017         * modules/posixtm (Makefile.am): Likewise.
65018         * modules/posixver (Makefile.am): Likewise.
65019         * modules/putenv (Makefile.am): Likewise.
65020         * modules/quote (Makefile.am): Likewise.
65021         * modules/quotearg (Makefile.am): Likewise.
65022         * modules/raise (Makefile.am): Likewise.
65023         * modules/read-file (Makefile.am): Likewise.
65024         * modules/readline (Makefile.am): Likewise.
65025         * modules/readlink (Makefile.am): Likewise.
65026         * modules/readtokens (Makefile.am): Likewise.
65027         * modules/readutmp (Makefile.am): Likewise.
65028         * modules/realloc (Makefile.am): Likewise.
65029         * modules/regex (Makefile.am): Likewise.
65030         * modules/rename-dest-slash (Makefile.am): Likewise.
65031         * modules/rename (Makefile.am): Likewise.
65032         * modules/rijndael (Makefile.am): Likewise.
65033         * modules/rmdir (Makefile.am): Likewise.
65034         * modules/rpmatch (Makefile.am): Likewise.
65035         * modules/safe-read (Makefile.am): Likewise.
65036         * modules/safe-write (Makefile.am): Likewise.
65037         * modules/same-inode (Makefile.am): Likewise.
65038         * modules/same (Makefile.am): Likewise.
65039         * modules/save-cwd (Makefile.am): Likewise.
65040         * modules/savedir (Makefile.am): Likewise.
65041         * modules/setenv (Makefile.am): Likewise.
65042         * modules/settime (Makefile.am): Likewise.
65043         * modules/sha1 (Makefile.am): Likewise.
65044         * modules/sig2str (Makefile.am): Likewise.
65045         * modules/snprintf (Makefile.am): Likewise.
65046         * modules/stat-macros (Makefile.am): Likewise.
65047         * modules/stat-time (Makefile.am): Likewise.
65048         * modules/stdbool (Makefile.am): Likewise.
65049         * modules/stdint (Makefile.am): Likewise.
65050         * modules/stdlib-safer (Makefile.am): Likewise.
65051         * modules/stpcpy (Makefile.am): Likewise.
65052         * modules/stpncpy (Makefile.am): Likewise.
65053         * modules/strcase (Makefile.am): Likewise.
65054         * modules/strcasestr (Makefile.am): Likewise.
65055         * modules/strchrnul (Makefile.am): Likewise.
65056         * modules/strcspn (Makefile.am): Likewise.
65057         * modules/strdup (Makefile.am): Likewise.
65058         * modules/strerror (Makefile.am): Likewise.
65059         * modules/strftime (Makefile.am): Likewise.
65060         * modules/strndup (Makefile.am): Likewise.
65061         * modules/strnlen (Makefile.am): Likewise.
65062         * modules/strpbrk (Makefile.am): Likewise.
65063         * modules/strsep (Makefile.am): Likewise.
65064         * modules/strstr (Makefile.am): Likewise.
65065         * modules/strtod (Makefile.am): Likewise.
65066         * modules/strtoimax (Makefile.am): Likewise.
65067         * modules/strtok_r (Makefile.am): Likewise.
65068         * modules/strtol (Makefile.am): Likewise.
65069         * modules/strtoll (Makefile.am): Likewise.
65070         * modules/strtoul (Makefile.am): Likewise.
65071         * modules/strtoull (Makefile.am): Likewise.
65072         * modules/strtoumax (Makefile.am): Likewise.
65073         * modules/strverscmp (Makefile.am): Likewise.
65074         * modules/sys_socket (Makefile.am): Likewise.
65075         * modules/sys_stat (Makefile.am): Likewise.
65076         * modules/sysexits (Makefile.am): Likewise.
65077         * modules/time_r (Makefile.am): Likewise.
65078         * modules/timegm (Makefile.am): Likewise.
65079         * modules/timespec (Makefile.am): Likewise.
65080         * modules/tmpfile-safer (Makefile.am): Likewise.
65081         * modules/trim (Makefile.am): Likewise.
65082         * modules/unistd-safer (Makefile.am): Likewise.
65083         * modules/unlinkdir (Makefile.am): Likewise.
65084         * modules/unlocked-io (Makefile.am): Likewise.
65085         * modules/userspec (Makefile.am): Likewise.
65086         * modules/utime (Makefile.am): Likewise.
65087         * modules/utimecmp (Makefile.am): Likewise.
65088         * modules/utimens (Makefile.am): Likewise.
65089         * modules/vasnprintf (Makefile.am): Likewise.
65090         * modules/vasprintf (Makefile.am): Likewise.
65091         * modules/vsnprintf (Makefile.am): Likewise.
65092         * modules/xalloc (Makefile.am): Likewise.
65093         * modules/xgetcwd (Makefile.am): Likewise.
65094         * modules/xnanosleep (Makefile.am): Likewise.
65095         * modules/xreadlink (Makefile.am): Likewise.
65096         * modules/xstrtod (Makefile.am): Likewise.
65097         * modules/xstrtol (Makefile.am): Likewise.
65098         * modules/xstrtold (Makefile.am): Likewise.
65099         * modules/yesno (Makefile.am): Likewise.
65100         * modules/getdate (Makefile.am): Don't add getdate.h to EXTRA_DIST.
65101
65102 2006-10-12  Paul Eggert  <eggert@cs.ucla.edu>
65103
65104         * modules/error (Makefile.am): Distribute files through
65105         EXTRA_DIST, not lib_SOURCES.
65106
65107 2006-10-12  Eric Blake  <ebb9@byu.net>
65108
65109         * modules/error (Makefile.am): Distribute files in /lib.
65110         * modules/obstack (Makefile.am): Likewise.
65111
65112 2006-10-12  Bruno Haible  <bruno@clisp.org>
65113
65114         * modules/acl (Makefile.am): Distribute all files in lib/ through
65115         EXTRA_DIST.
65116         * modules/arcfour (Makefile.am): Likewise.
65117         * modules/arctwo (Makefile.am): Likewise.
65118         * modules/argmatch (Makefile.am): Likewise.
65119         * modules/argz (Makefile.am): Likewise.
65120         * modules/atexit (Makefile.am): Likewise.
65121         * modules/backupfile (Makefile.am): Likewise.
65122         * modules/c-strtod (Makefile.am): Likewise.
65123         * modules/c-strtold (Makefile.am): Likewise.
65124         * modules/calloc (Makefile.am): Likewise.
65125         * modules/canon-host (Makefile.am): Likewise.
65126         * modules/canonicalize (Makefile.am): Likewise.
65127         * modules/chdir-long (Makefile.am): Likewise.
65128         * modules/chdir-safer (Makefile.am): Likewise.
65129         * modules/check-version (Makefile.am): Likewise.
65130         * modules/chown (Makefile.am): Likewise.
65131         * modules/cloexec (Makefile.am): Likewise.
65132         * modules/close-stream (Makefile.am): Likewise.
65133         * modules/closeout (Makefile.am): Likewise.
65134         * modules/crc (Makefile.am): Likewise.
65135         * modules/cycle-check (Makefile.am): Likewise.
65136         * modules/des (Makefile.am): Likewise.
65137         * modules/dirfd (Makefile.am): Likewise.
65138         * modules/dirname (Makefile.am): Likewise.
65139         * modules/dup2 (Makefile.am): Likewise.
65140         * modules/euidaccess (Makefile.am): Likewise.
65141         * modules/exclude (Makefile.am): Likewise.
65142         * modules/exitfail (Makefile.am): Likewise.
65143         * modules/fcntl-safer (Makefile.am): Likewise.
65144         * modules/file-type (Makefile.am): Likewise.
65145         * modules/fileblocks (Makefile.am): Likewise.
65146         * modules/filemode (Makefile.am): Likewise.
65147         * modules/filenamecat (Makefile.am): Likewise.
65148         * modules/fnmatch (Makefile.am): Likewise.
65149         * modules/fopen-safer (Makefile.am): Likewise.
65150         * modules/fpending (Makefile.am): Likewise.
65151         * modules/fprintftime (Makefile.am): Likewise.
65152         * modules/free (Makefile.am): Likewise.
65153         * modules/fsusage (Makefile.am): Likewise.
65154         * modules/ftruncate (Makefile.am): Likewise.
65155         * modules/fts (Makefile.am): Likewise.
65156         * modules/gc (Makefile.am): Likewise.
65157         * modules/gc-pbkdf2-sha1 (Makefile.am): Likewise.
65158         * modules/getaddrinfo (Makefile.am): Likewise.
65159         * modules/getcwd (Makefile.am): Likewise.
65160         * modules/getdelim (Makefile.am): Likewise.
65161         * modules/getdomainname (Makefile.am): Likewise.
65162         * modules/getgroups (Makefile.am): Likewise.
65163         * modules/gethostname (Makefile.am): Likewise.
65164         * modules/gethrxtime (Makefile.am): Likewise.
65165         * modules/getline (Makefile.am): Likewise.
65166         * modules/getloadavg (Makefile.am): Likewise.
65167         * modules/getlogin_r (Makefile.am): Likewise.
65168         * modules/getopt (Makefile.am): Likewise.
65169         * modules/getpass (Makefile.am): Likewise.
65170         * modules/getpass-gnu (Makefile.am): Likewise.
65171         * modules/getsubopt (Makefile.am): Likewise.
65172         * modules/gettime (Makefile.am): Likewise.
65173         * modules/gettimeofday (Makefile.am): Likewise.
65174         * modules/getugroups (Makefile.am): Likewise.
65175         * modules/getusershell (Makefile.am): Likewise.
65176         * modules/glob (Makefile.am): Likewise.
65177         * modules/group-member (Makefile.am): Likewise.
65178         * modules/hard-locale (Makefile.am): Likewise.
65179         * modules/hash (Makefile.am): Likewise.
65180         * modules/hmac-md5 (Makefile.am): Likewise.
65181         * modules/hmac-sha1 (Makefile.am): Likewise.
65182         * modules/human (Makefile.am): Likewise.
65183         * modules/idcache (Makefile.am): Likewise.
65184         * modules/imaxabs (Makefile.am): Likewise.
65185         * modules/imaxdiv (Makefile.am): Likewise.
65186         * modules/inet_ntop (Makefile.am): Likewise.
65187         * modules/inet_pton (Makefile.am): Likewise.
65188         * modules/inttostr (Makefile.am): Likewise.
65189         * modules/isapipe (Makefile.am): Likewise.
65190         * modules/lchown (Makefile.am): Likewise.
65191         * modules/long-options (Makefile.am): Likewise.
65192         * modules/lstat (Makefile.am): Likewise.
65193         * modules/malloc (Makefile.am): Likewise.
65194         * modules/mathl (Makefile.am): Likewise.
65195         * modules/mbchar (Makefile.am): Likewise.
65196         * modules/md2 (Makefile.am): Likewise.
65197         * modules/md4 (Makefile.am): Likewise.
65198         * modules/md5 (Makefile.am): Likewise.
65199         * modules/memcasecmp (Makefile.am): Likewise.
65200         * modules/memchr (Makefile.am): Likewise.
65201         * modules/memcmp (Makefile.am): Likewise.
65202         * modules/memcoll (Makefile.am): Likewise.
65203         * modules/memcpy (Makefile.am): Likewise.
65204         * modules/memmem (Makefile.am): Likewise.
65205         * modules/memmove (Makefile.am): Likewise.
65206         * modules/mempcpy (Makefile.am): Likewise.
65207         * modules/memrchr (Makefile.am): Likewise.
65208         * modules/memset (Makefile.am): Likewise.
65209         * modules/memxor (Makefile.am): Likewise.
65210         * modules/mkancesdirs (Makefile.am): Likewise.
65211         * modules/mkdir (Makefile.am): Likewise.
65212         * modules/mkdir-p (Makefile.am): Likewise.
65213         * modules/mkdtemp (Makefile.am): Likewise.
65214         * modules/mkstemp (Makefile.am): Likewise.
65215         * modules/mktime (Makefile.am): Likewise.
65216         * modules/modechange (Makefile.am): Likewise.
65217         * modules/mountlist (Makefile.am): Likewise.
65218         * modules/nanosleep (Makefile.am): Likewise.
65219         * modules/openat (Makefile.am): Likewise.
65220         * modules/pagealign_alloc (Makefile.am): Likewise.
65221         * modules/physmem (Makefile.am): Likewise.
65222         * modules/poll (Makefile.am): Likewise.
65223         * modules/posixtm (Makefile.am): Likewise.
65224         * modules/posixver (Makefile.am): Likewise.
65225         * modules/putenv (Makefile.am): Likewise.
65226         * modules/quote (Makefile.am): Likewise.
65227         * modules/quotearg (Makefile.am): Likewise.
65228         * modules/raise (Makefile.am): Likewise.
65229         * modules/read-file (Makefile.am): Likewise.
65230         * modules/readline (Makefile.am): Likewise.
65231         * modules/readlink (Makefile.am): Likewise.
65232         * modules/readtokens (Makefile.am): Likewise.
65233         * modules/readutmp (Makefile.am): Likewise.
65234         * modules/realloc (Makefile.am): Likewise.
65235         * modules/regex (Makefile.am): Likewise.
65236         * modules/rename (Makefile.am): Likewise.
65237         * modules/rename-dest-slash (Makefile.am): Likewise.
65238         * modules/rijndael (Makefile.am): Likewise.
65239         * modules/rmdir (Makefile.am): Likewise.
65240         * modules/rpmatch (Makefile.am): Likewise.
65241         * modules/safe-read (Makefile.am): Likewise.
65242         * modules/safe-write (Makefile.am): Likewise.
65243         * modules/same (Makefile.am): Likewise.
65244         * modules/save-cwd (Makefile.am): Likewise.
65245         * modules/savedir (Makefile.am): Likewise.
65246         * modules/setenv (Makefile.am): Likewise.
65247         * modules/settime (Makefile.am): Likewise.
65248         * modules/sha1 (Makefile.am): Likewise.
65249         * modules/sig2str (Makefile.am): Likewise.
65250         * modules/snprintf (Makefile.am): Likewise.
65251         * modules/stdlib-safer (Makefile.am): Likewise.
65252         * modules/stpcpy (Makefile.am): Likewise.
65253         * modules/stpncpy (Makefile.am): Likewise.
65254         * modules/strcase (Makefile.am): Likewise.
65255         * modules/strcasestr (Makefile.am): Likewise.
65256         * modules/strchrnul (Makefile.am): Likewise.
65257         * modules/strcspn (Makefile.am): Likewise.
65258         * modules/strdup (Makefile.am): Likewise.
65259         * modules/strerror (Makefile.am): Likewise.
65260         * modules/strftime (Makefile.am): Likewise.
65261         * modules/strndup (Makefile.am): Likewise.
65262         * modules/strnlen (Makefile.am): Likewise.
65263         * modules/strpbrk (Makefile.am): Likewise.
65264         * modules/strsep (Makefile.am): Likewise.
65265         * modules/strstr (Makefile.am): Likewise.
65266         * modules/strtod (Makefile.am): Likewise.
65267         * modules/strtoimax (Makefile.am): Likewise.
65268         * modules/strtok_r (Makefile.am): Likewise.
65269         * modules/strtol (Makefile.am): Likewise.
65270         * modules/strtoll (Makefile.am): Likewise.
65271         * modules/strtoul (Makefile.am): Likewise.
65272         * modules/strtoull (Makefile.am): Likewise.
65273         * modules/strtoumax (Makefile.am): Likewise.
65274         * modules/strverscmp (Makefile.am): Likewise.
65275         * modules/time_r (Makefile.am): Likewise.
65276         * modules/timegm (Makefile.am): Likewise.
65277         * modules/tmpfile-safer (Makefile.am): Likewise.
65278         * modules/unistd-safer (Makefile.am): Likewise.
65279         * modules/unlinkdir (Makefile.am): Likewise.
65280         * modules/userspec (Makefile.am): Likewise.
65281         * modules/utime (Makefile.am): Likewise.
65282         * modules/utimecmp (Makefile.am): Likewise.
65283         * modules/utimens (Makefile.am): Likewise.
65284         * modules/vasnprintf (Makefile.am): Likewise.
65285         * modules/vasprintf (Makefile.am): Likewise.
65286         * modules/vsnprintf (Makefile.am): Likewise.
65287         * modules/xalloc (Makefile.am): Likewise.
65288         * modules/xgetcwd (Makefile.am): Likewise.
65289         * modules/xnanosleep (Makefile.am): Likewise.
65290         * modules/xreadlink (Makefile.am): Likewise.
65291         * modules/xstrtod (Makefile.am): Likewise.
65292         * modules/xstrtol (Makefile.am): Likewise.
65293         * modules/xstrtold (Makefile.am): Likewise.
65294         * modules/yesno (Makefile.am): Likewise.
65295
65296 2006-10-12  Jim Meyering  <jim@meyering.net>
65297
65298         * m4/getloadavg.m4: Revert the change below.
65299
65300         * m4/getloadavg.m4 (gl_GETLOADAVG): Test for the existence of
65301         lib/getloadavg.c using "ls -L", not "test -f".  The latter would
65302         fail with a symlink, which is what coreutils' ./bootstrap now
65303         creates by default.
65304
65305 2006-10-12  Bruno Haible  <bruno@clisp.org>
65306
65307         * lib/inttypes_.h (_LONG_LONG_FORMAT_PREFIX): Don't define for MSVC or
65308         mingw.
65309         (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX, _SCNu64_PREFIX): Handle
65310         MSVC and mingw explicitly.
65311
65312 2006-10-11  Simon Josefsson  <jas@extundo.com>
65313             Bruno Haible  <bruno@clisp.org>
65314
65315         Add support for multiple gnulib-tool invocations in the scope of a
65316         single configure.ac file.
65317         * gnulib-tool (func_emit_lib_Makefile_am): In the _LIBADD variable,
65318         use a private [LT]LIBOBJS variant. Define a _DEPENDENCIES variable
65319         with the same contents as the _LIBADD variable.
65320         (func_emit_initmacro_start, func_emit_initmacro_end,
65321         func_emit_initmacro_done): New functions.
65322         (func_import, func_create_testdir): Invoke them. Allow the identifiers
65323         gl_LIBOBJS and gl_LTLIBOBJS.
65324
65325 2006-10-11  Bruno Haible  <bruno@clisp.org>
65326
65327         * gnulib-tool (GETTEXTPATH, AUTOHEADER, AUTOPOINT): New variables.
65328         (func_create_testdir): Don't create po/Makefile.am, don't invoke
65329         autoreconf. Instead, invoke autopoint explicitly but move back the
65330         *.m4 files from gnulib.
65331
65332 2006-10-11  Bruno Haible  <bruno@clisp.org>
65333
65334         * gnulib-tool (func_usage): Make module names after --create-testdir
65335         optional.
65336         (func_create_testdir): If no module was specified, use nearly all
65337         modules.
65338
65339 2006-10-12  Jim Meyering  <jim@meyering.net>
65340
65341         Big performance improvement for fts-based tools that use FTS_NOSTAT.
65342         Avoid spurious inode-mismatch problems on non-POSIX file systems.
65343         Details: http://article.gmane.org/gmane.comp.lib.gnulib.bugs/7416
65344         * lib/fts_.h (FTS_DEFER_STAT): Define new flag.
65345         (FTS_OPTIONMASK): Extend the mask to reflect this addition.
65346         * lib/fts.c (DT_IS_KNOWN, DT_MUST_BE): Define.
65347         (FTS_NO_STAT_REQUIRED, FTS_STAT_REQUIRED): Define.
65348         (fts_set_stat_required): New function.
65349         (fts_open): Defer the calls to fts_stat, if possible or requested.
65350         Move the code that maps a command-line fts_info value FTS_DOT to FTS_D
65351         into fts_stat itself.
65352         (fts_read): Perform any required (deferred) fts_stat call.
65353         (fts_build): Likewise, for the directory we're about to open and read.
65354         In the readdir loop, carefully decide whether each entry will require
65355         an eventual call to fts_stat, using dirent.d_type info if available.
65356         (fts_stat): Move the test for whether to honor FTS_COMFOLLOW on
65357         a command line argument into this function.  Update all callers.
65358         Map a return value of FTS_DOT to FTS_D for a command line argument.
65359         * modules/fts (Depends-on): Add d-type.  Alphabetize.
65360         Thanks to Miklos Szeredi for his tenacity and for the initial
65361         bug report about "find" failing on a FUSE-based file system.
65362
65363         * lib/fts.c (fts_open): Use consistent indentation.
65364
65365 2006-10-12  Paul Eggert  <eggert@cs.ucla.edu>
65366
65367         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Renamed from
65368         gl_USE_SYSTEM_EXTENSIONS, to fix a coreutils bootstrap failure
65369         reported by Jim Meyering.  All uses of cache variables renamed
65370         to match Autoconf's.
65371         (gl_USE_SYSTEM_EXTENSIONS): New macro, which simply requires
65372         the other one.
65373
65374         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH):
65375         Fix misspelling in diagnostic.
65376
65377 2006-10-11  Paul Eggert  <eggert@cs.ucla.edu>
65378
65379         * lib/mkdir-p.c (HAVE_FCHMOD): Define to false if not already
65380         defined.  Problem reported by Matthew Woehlke.
65381
65382         * lib/inttypes_.h (_LONG_LONG_FORMAT_PREFIX): New macro.
65383         Add support for Tandem NonStop R series.
65384         (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX, _SCNu64_PREFIX):
65385         Use new macro.
65386
65387         * lib/rename-dest-slash.c: Include stdbool.h but not string.h.
65388         (has_trailing_slash): Omit size arg; all callers changed.
65389         Omit 'inline', since it doesn't help performance and we'd
65390         need to configure it.
65391         Don't count //, ///, etc. as having a trailing slash.
65392         As a side effect, this removes a C99ism reported by Matthew Woehlke.
65393         (rpl_rename_dest_slash): On failure, use rename's errno rather
65394         than (in some cases) an incorrect or junk errno.
65395         Simplify code by removing need to compute length; this does
65396         cause it to make two passes instead of one over the file name,
65397         but it's worth it.
65398
65399         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Undo previous
65400         change, since Autoconf's version may no longer be appropriate now
65401         that we are using CVS Autoconf's version.  Add support for Tandem.
65402
65403 2006-10-11  Paul Eggert  <eggert@cs.ucla.edu>
65404             Bruno Haible  <bruno@clisp.org>
65405
65406         * lib/allocsa.h (sa_alignment_longlong, sa_alignment_max): Test
65407         HAVE_LONG_LONG_INT instead of HAVE_LONG_LONG.
65408         * m4/allocsa.m4 (gl_ALLOCSA): Invoke AC_TYPE_LONG_LONG_INT instead of
65409         gl_AC_TYPE_LONG_LONG.
65410
65411         * lib/printf-args.h (arg_type, argument): Test HAVE_LONG_LONG_INT
65412         instead of HAVE_LONG_LONG.
65413         * lib/printf-args.c (printf_fetchargs): Likewise.
65414         * lib/printf-parse.c (PRINTF_PARSE): Likewise.
65415         * lib/vasnprintf.c (VASNPRINTF): Likewise.
65416         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS, gl_PREREQ_PRINTF_PARSE,
65417         gl_PREREQ_VASNPRINTF): Invoke AC_TYPE_LONG_LONG_INT instead of
65418         gl_AC_TYPE_LONG_LONG.
65419
65420 2006-10-11  Bruno Haible  <bruno@clisp.org>
65421
65422         * m4/longlong.m4: Add comments.
65423         * m4/ulonglong.m4: Likewise.
65424
65425 2006-10-10  Bruno Haible  <bruno@clisp.org>
65426
65427         Make it possible to #define stpcpy, strdup to aliases.
65428         * lib/stpcpy.c (stpcpy) [!_LIBC]: Don't undefine.
65429         * lib/strdup.c (strdup) [!_LIBC]: Don't undefine.
65430
65431 2006-10-10  Bruno Haible  <bruno@clisp.org>
65432
65433         Make it possible to #define gcd to an alias.
65434         * lib/gcd.c: Include config.h.
65435
65436 2006-10-10  Bruno Haible  <bruno@clisp.org>
65437
65438         Make it possible to #define c_isascii to an alias.
65439         * lib/c-ctype.h: Don't define the macros if NO_C_CTYPE_MACROS is
65440         defined. Undefine the macros before defining them, to avoid gcc
65441         warnings.
65442         * lib/c-ctype.c: Include config.h. Don't undefine the macros; instead,
65443         define NO_C_CTYPE_MACROS early.
65444
65445 2006-10-10  Bruno Haible  <bruno@clisp.org>
65446
65447         Make it possible to #define set_program_name to an alias.
65448         * lib/progname.c: Don't undefine set_program_name; instead, undefine
65449         ENABLE_RELOCATABLE early.
65450
65451 2006-10-10  Paul Eggert  <eggert@cs.ucla.edu>
65452
65453         Port to Tandem NSK OSS, which has 64-bit signed int but at most
65454         32-bit unsigned int.  Problem reported by Matthew Woehlke in:
65455         http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00062.html
65456         More generally, don't assume that 64-bit signed int is available
65457         if unsigned int is, and vice versa.
65458         * lib/inttypes_.h (_PRIu64_PREFIX, _SCNu64_PREFIX): Depend on
65459         unsigned symbols, not on their signed counterparts.
65460         * lib/stdint_.h (uint64_t, uint_least64_t, uint_fast64_t, uintmax_t):
65461         (UINT64_MAX, UINT_LEAST64_MAX, UINT_FAST64_MAX, UINTMAX_MAX):
65462         (UINT64_C, UINTMAX_C):
65463         Likewise.
65464         * lib/strtoimax.c (strtoll): Depend on signed symbols, not their
65465         unsigned counterparts.
65466         (Have_long_long, Unsigned): New macros.
65467         (Int): Renamed from INT.
65468         (strtoimax): Use the new macros.
65469         * m4/stdint.m4 (gl_STDINT_H): Require AC_TYPE_UNSIGNED_LONG_LONG_INT
65470         and substitute HAVE_UNSIGNED_LONG_LONG_INT.
65471         * modules/inttypes (inttypes.h): Substitute
65472         HAVE_UNSIGNED_LONG_LONG_INT.
65473         * modules/stdint (stdint.h): Likewise.
65474         (Files): Add m4/ulonglong.m4.
65475
65476 2006-10-10  Bruno Haible  <bruno@clisp.org>
65477
65478         Fix a gcc -Wshadow warning.
65479         * lib/gl_anyhash_list2.h (hash_resize): Rename local variable 'index'
65480         to 'bucket'.
65481         * lib/gl_anylinked_list2.h (gl_linked_search_from_to,
65482         gl_linked_indexof_from_to): Likewise.
65483         * lib/gl_linkedhash_list.c (add_to_bucket, remove_from_bucket):
65484         Likewise.
65485         * lib/gl_anytreehash_list1.h (add_to_bucket, remove_from_bucket):
65486         Likewise.
65487         * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Likewise.
65488         Reported by Eric Blake.
65489
65490 2006-10-09  Paul Eggert  <eggert@cs.ucla.edu>
65491
65492         * lib/filemode.h [HAVE_DECL_STRMODE]: Include unistd.h too,
65493         for NetBSD.  Problem reported by Bruno Haible.
65494
65495 2006-10-09  Jim Meyering  <jim@meyering.net>
65496
65497         * lib/lchown.c: Include <sys/stat.h> before "stat-macros.h".
65498         Patch from Bruno Haible.
65499
65500 2006-10-09  Jim Meyering  <jim@meyering.net>
65501
65502         * lib/fts-cycle.c (leave_dir): When "leaving" a top level directory due
65503         to FTS_SKIP, don't copy the parent's uninitialized dev/ino values.
65504         Trigger with e.g., mkdir d && valgrind ./chmod u+rwx d d
65505
65506 2006-10-08  Paul Eggert  <eggert@cs.ucla.edu>
65507
65508         Don't include <config.h> twice; this doesn't work in some cases,
65509         e.g., when config.h has "#define intmax_t long long int" and
65510         we include <config.h>, <inttypes.h>, <config.h> in that order.
65511         Problem reported by Matthew Woehlke in:
65512         http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00073.html
65513         * lib/fprintftime.c: Don't include config.h or fprintftime.h.
65514         * lib/fts-cycle.c: Don't include config.h.
65515         * lib/strftime.c: Include fprintftime.h if FPRINTFTIME is defined.
65516         * lib/xstrtoimax.c: Remove copyright notice since it's short tnow.
65517         Don't include config.h or xstrtol.h.  Define STRTOL_T_MINIMUM
65518         and STRTOL_T_MAXIMUM unconditionally, since we now assume gnulib
65519         inttypes.h.
65520         * lib/xstrtoumax.c: Likewise.
65521         * lib/xstrtol.c: Include config.h and xstrtol.h after defining
65522         __strtol and the like, so that this module is more like its siblings.
65523         (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM) [! defined STRTOL_T_MINIMUM]:
65524         Remove; no longer needed now that we assume gnulib inttypes.h.
65525
65526 2006-10-08  Bruno Haible  <bruno@clisp.org>
65527
65528         * doc/gnulib-tool.texi: Emphasize the drawbacks of the --symlink
65529         option.
65530
65531 2006-10-07  Jim Meyering  <jim@meyering.net>
65532
65533         * modules/inttypes (inttypes.h): Revert what seems to have been
65534         an inadvertent part of today's change: use "|", not "/" in the
65535         substitution for the "/"-containing string, $(ABSOLUTE_INTTYPES_H).
65536
65537 2006-10-07  Bruno Haible  <bruno@clisp.org>
65538
65539         * modules/sublist: New file.
65540
65541 2006-10-07  Bruno Haible  <bruno@clisp.org>
65542
65543         * modules/alloca-opt (alloca.h): Add a "DO NOT EDIT" comment.
65544         * modules/argz (argz.h): Likewise.
65545         * modules/arpa_inet (arpa/inet.h): Likewise.
65546         * modules/byteswap (byteswap.h): Likewise.
65547         * modules/configmake (configmake.h): Likewise.
65548         * modules/fcntl (fcntl.h): Likewise.
65549         * modules/fnmatch (fnmatch.h): Likewise.
65550         * modules/getopt (getopt.h): Likewise.
65551         * modules/glob (glob.h): Likewise.
65552         * modules/inttypes (inttypes.h): Likewise.
65553         * modules/netinet_in (netinet/in.h): Likewise.
65554         * modules/poll (poll.h): Likewise.
65555         * modules/stdbool (stdbool.h): Likewise.
65556         * modules/stdint (stdint.h): Likewise.
65557         * modules/sys_select (sys/select.h): Likewise.
65558         * modules/sys_socket (sys/socket.h): Likewise.
65559         * modules/sys_stat (sys/stat.h): Likewise.
65560         * modules/sysexits (sysexits.h): Likewise.
65561         * modules/unistd (unistd.h): Likewise.
65562         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
65563         Add a "DO NOT EDIT" comment to the generated file.
65564         (func_import): Likewise for gnulib-comp.m4.
65565
65566 2006-10-07  Bruno Haible  <bruno@clisp.org>
65567
65568         * lib/gl_sublist.h: New file.
65569         * lib/gl_sublist.c: New file.
65570
65571 2006-10-06  Paul Eggert  <eggert@cs.ucla.edu>
65572
65573         * lib/mkancesdirs.c (mkancesdirs): Pass to MAKE_DIR both the full file
65574         name (relative to the original working directory) and the file
65575         name component (relative to the temporary working directory).  All
65576         callers changed.
65577         * lib/mkancesdirs.h (mkancesdirs): Adjust prototype to match.
65578         * lib/mkdir-p.c (make_dir_parents): Likewise.
65579         * lib/mkdir-p.h (make_dir_parents): Likewise.
65580
65581 2006-10-06  Eric Blake  <ebb9@byu.net>
65582
65583         Define several macros for use by the clean-temp module.
65584         * m4/close-stream.m4 (gl_CLOSE_STREAM): Define GNULIB_CLOSE_STREAM.
65585         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Define GNULIB_FCNTL_SAFER.
65586         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Define GNULIB_FOPEN_SAFER.
65587
65588         * lib/clean-temp.h (close_stream_temp): New declaration.
65589         * lib/clean-temp.c (includes): Pull in headers according to what
65590         other modules are in use.
65591         (close_stream_temp) [GNULIB_CLOSE_STREAM]: New function.
65592
65593 2006-10-06  Bruno Haible  <bruno@clisp.org>
65594
65595         * lib/javacomp.c (write_temp_file): Use fopen_temp, fwriteerror_temp
65596         instead of fopen, fwriteerror.
65597
65598 2006-10-06  Bruno Haible  <bruno@clisp.org>
65599
65600         * lib/clean-temp.h (cleanup_temp_file, cleanup_temp_subdir,
65601         cleanup_temp_dir_contents, cleanup_temp_dir): Change return type to
65602         int.
65603         * lib/clean-temp.c (do_unlink, do_rmdir, cleanup_temp_file,
65604         cleanup_temp_subdir, cleanup_temp_dir_contents, cleanup_temp_dir):
65605         Return an error indicator.
65606         Suggested by Eric Blake.
65607
65608 2006-10-06  Bruno Haible  <bruno@clisp.org>
65609
65610         * lib/clean-temp.c (PATH_MAX): Provide a fallback for GNU Hurd.
65611         Reported by Eric Blake.
65612
65613 2006-10-06  Bruno Haible  <bruno@clisp.org>
65614
65615         * modules/closeout (Description): Mention stderr too.
65616
65617 2006-10-06  Bruno Haible  <bruno@clisp.org>
65618         and Paul Eggert  <eggert@cs.ucla.edu>
65619
65620         * lib/closeout.c (close_stdout): Also close stderr.
65621         * lib/closeout.h: Update comment.
65622
65623 2006-10-05  Paul Eggert  <eggert@cs.ucla.edu>
65624
65625         Fix some Darwin-7.9.0 porting problems reported by Bruno Haible in
65626         <http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00063.html>.
65627         * lib/dirchownmod.c: Include lchown.h.
65628         * lib/lchown.c: Don't include files that lchown.h now includes.
65629         Don't declare chown, since lchown.h now does that.
65630         * lib/lchown.h: Include errno.h, sys/types.h, unistd.h.
65631         (lchown): Define to rpl_chown if lchown is declared but
65632         does not exist.  Declare using a prototype if lchown is not
65633         declared.  Add a copyright notice.
65634         * lib/mkstemp.h: Include <unistd.h>.
65635         * lib/openat.c: Include lchown.h.
65636
65637         * lib/fcntl_.h (O_NOFOLLOW): Don't depend on O_NOFOLLOW_IS_INEFFECTIVE;
65638         we now test for that separately.
65639         * lib/fts.c (fts_safe_changedir): Inspect HAVE_WORKING_O_NOFOLLOW
65640         rather than O_NOFOLLOW, when testing whether it's possible to
65641         avoid a race condition reliably.
65642         * lib/savewd.c (savewd_chdir): Likewise.
65643
65644         Remove macros that are no longer needed now that stdint.h is
65645         reliable.
65646         * lib/fsusage.c (UINTMAX_MAX): Remove.
65647         * lib/human.c (SIZE_MAX, UINTMAX_MAX): Remove.
65648         * lib/utimecmp.c (SIZE_MAX): Remove.
65649
65650         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check whether lchown is declared.
65651
65652         * m4/fcntl_h.m4 (gl_FCNTL_H): Define HAVE_WORKING_O_NOFOLLOW instead
65653         of O_NOFOLLOW_IS_INEFFECTIVE.  Define HAVE_WORKING_O_NOATIME if
65654         O_NOATIME works.
65655
65656 2006-10-05  Bruno Haible  <bruno@clisp.org>
65657
65658         * lib/gl_list.h (gl_sortedlist_search_from_to,
65659         gl_sortedlist_indexof_from_to): New declarations.
65660         (gl_list_implementation): New fields sortedlist_search_from_to,
65661         sortedlist_indexof_from_to.
65662         (gl_sortedlist_search_from_to, gl_sortedlist_indexof_from_to): New
65663         inline functions.
65664         * lib/gl_list.c (gl_sortedlist_search_from_to,
65665         gl_sortedlist_indexof_from_to): New functions.
65666         * lib/gl_array_list.c (gl_array_sortedlist_indexof_from_to): New
65667         function.
65668         (gl_array_sortedlist_indexof, gl_array_sortedlist_search): Use it.
65669         (gl_array_sortedlist_search_from_to): New function.
65670         (gl_array_list_implementation): Update.
65671         * lib/gl_carray_list.c (gl_carray_sortedlist_indexof_from_to): New
65672         function.
65673         (gl_carray_sortedlist_indexof, gl_carray_sortedlist_search): Use it.
65674         (gl_carray_sortedlist_search_from_to): New function.
65675         (gl_carray_list_implementation): Update.
65676         * lib/gl_anylinked_list2.h (gl_linked_sortedlist_search_from_to,
65677         gl_linked_sortedlist_indexof_from_to): New functions.
65678         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
65679         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
65680         * lib/gl_anytree_list2.h (gl_tree_sortedlist_search_from_to,
65681         gl_tree_sortedlist_indexof_from_to): New functions.
65682         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
65683         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
65684         Update.
65685         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
65686         * lib/gl_rbtreehash_list.c (gl_avltreehash_list_implementation):
65687         Update.
65688
65689 2006-10-05  Bruno Haible  <bruno@clisp.org>
65690
65691         * lib/gl_list.h (gl_list_search_from, gl_list_search_from_to,
65692         gl_list_indexof_from, gl_list_indexof_from_to): New declarations.
65693         (struct gl_list_implementation): Add fields search_from_to,
65694         indexof_from_to. Remove fields search, indexof.
65695         (gl_list_search): Use the search_from_to method.
65696         (gl_list_search_from, gl_list_search_from_to): New functions.
65697         (gl_list_indexof): Use the indexof_from_to method.
65698         (gl_list_indexof_from, gl_list_indexof_from_to): New functions.
65699         * lib/gl_list.c (gl_list_search): Use the search_from_to method.
65700         (gl_list_search_from, gl_list_search_from_to): New functions.
65701         (gl_list_indexof): Use the indexof_from_to method.
65702         (gl_list_indexof_from, gl_list_indexof_from_to): New functions.
65703         * lib/gl_array_list.c (gl_array_indexof_from_to): Renamed from
65704         gl_array_indexof. Add start_index, end_index arguments.
65705         (gl_array_search_from_to): Renamed from gl_array_search. Add
65706         start_index, end_index arguments.
65707         (gl_array_remove, gl_array_list_implementation): Update.
65708         * lib/gl_carray_list.c (gl_carray_indexof_from_to): Renamed from
65709         gl_carray_indexof. Add start_index, end_index arguments.
65710         (gl_carray_search_from_to): Renamed from gl_carray_search. Add
65711         start_index, end_index arguments.
65712         (gl_carray_remove, gl_carray_list_implementation): Update.
65713         * lib/gl_anylinked_list2.h (gl_linked_search_from_to): Renamed from
65714         gl_linked_search. Add start_index, end_index arguments.
65715         (gl_linked_indexof_from_to): Renamed from gl_linked_indexof. Add
65716         start_index, end_index arguments.
65717         (gl_linked_remove): Update.
65718         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
65719         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
65720         * lib/gl_anytree_list1.h (iterstack_item_t): Change type of 'rightp'
65721         field to 'size_t'.
65722         * lib/gl_anytree_list2.h (gl_tree_search_from_to): Renamed from
65723         gl_tree_search. Add start_index, end_index arguments.
65724         (gl_tree_indexof_from_to): Renamed from gl_tree_indexof. Add
65725         start_index, end_index arguments.
65726         (gl_tree_remove): Update.
65727         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
65728         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
65729         * lib/gl_anytreehash_list1.h (compare_position_threshold): New
65730         function.
65731         * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Renamed from
65732         gl_tree_search. Add start_index, end_index arguments.
65733         (gl_tree_indexof_from_to): Renamed from gl_tree_indexof. Add
65734         start_index, end_index arguments.
65735         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
65736         Update.
65737         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Update.
65738
65739 2006-10-05  Bruno Haible  <bruno@clisp.org>
65740
65741         * modules/fwriteerror (configure.ac): Define GNULIB_FWRITEERROR.
65742
65743         * lib/clean-temp.h (open_temp, fopen_temp, close_temp, fclose_temp,
65744         fwriteerror_temp): New declarations.
65745         * lib/clean-temp.c (uintptr_t): Provide fallback definition.
65746         (descriptors): New variable.
65747         (cleanup): First, close the descriptors.
65748         (register_fd, unregister_fd, open_temp, fopen_temp, close_temp,
65749         fclose_temp, fwriteerror_temp): New functions.
65750
65751 2006-10-04  Jim Meyering  <jim@meyering.net>
65752
65753         * lib/fts.c (fts_open): Tiny comment change.
65754
65755 2006-10-04  Bruno Haible  <bruno@clisp.org>
65756
65757         Make it possible to invoke AC_GNU_SOURCE after gl_LOCK_EARLY.
65758         * m4/lock.m4 (gl_LOCK_EARLY_BODY): New macro, extracted code from
65759         gl_LOCK_BODY.
65760         (gl_LOCK_EARLY): Require gl_LOCK_EARLY_BODY, not gl_LOCK_BODY.
65761         (gl_LOCK_BODY): Remove settings of CPPFLAGS, now done in
65762         gl_LOCK_EARLY_BODY.
65763         (gl_LOCK): Require gl_LOCK_BODY.
65764
65765 2006-10-04  Bruno Haible  <bruno@clisp.org>
65766
65767         * lib/gl_oset.h (gl_setelement_threshold_fn): New type.
65768         (gl_oset_search_atleast): New declaration.
65769         (struct gl_oset_implementation): Add field 'search_atleast'.
65770         (gl_oset_search_atleast): New inline function.
65771         * lib/gl_oset.c (gl_oset_search_atleast): New function.
65772         * lib/gl_array_oset.c (gl_array_search_atleast): New function.
65773         (gl_array_oset_implementation): Update.
65774         * lib/gl_anytree_oset.h (gl_tree_search_atleast): New function.
65775         * lib/gl_avltree_oset.c (gl_avltree_oset_implementation): Update.
65776         * lib/gl_rbtree_oset.c (gl_rbtree_oset_implementation): Update.
65777
65778 2006-10-04  Bruno Haible  <bruno@clisp.org>
65779
65780         * lib/fatal-signal.c (fatal_signals) [WOE32]: Add the SIGBREAK signal.
65781
65782 2006-10-03  Bruno Haible  <bruno@clisp.org>
65783
65784         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Renamed
65785         from gl_avltreehash_list_implementation.
65786
65787 2006-10-03  Bruno Haible  <bruno@clisp.org>
65788
65789         * lib/gl_oset.c (gl_oset_add): Fix return type.
65790
65791 2006-10-02  Paolo Bonzini  <bonzini@gnu.org>  (tiny change)
65792
65793         * lib/quotearg.c (mbstate_t) [!HAVE_MBRTOWC]: #define to int.
65794
65795 2006-10-02  Eric Blake  <ebb9@byu.net>
65796
65797         * modules/strnlen (Depends-on): Add extensions.
65798
65799 2006-10-02  Eric Blake  <ebb9@byu.net>
65800
65801         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Use autoconf's
65802         definition in 2.60+.
65803
65804 2006-10-02  Dmitry V. Levin  <ldv@altlinux.org>
65805
65806         * lib/fts.c (fts_close, fts_build, fts_palloc): Remove redundant
65807         checks.
65808
65809 2006-10-02  Bruno Haible  <bruno@clisp.org>
65810
65811         * gnulib-tool (func_emit_lib_Makefile_am): Don't add no-dependencies
65812         to the AUTOMAKE_OPTIONS.
65813         Reported by Jim Meyering.
65814
65815 2006-09-29  Paul Eggert  <eggert@cs.ucla.edu>
65816
65817         Work around bug in Solaris 10 /proc file system:
65818         /proc/self/fd/NNN/.. isn't the parent directory of
65819         the directory whose file descriptor is NNN.  This needs to
65820         be worked around at run time, not compile time, since a
65821         program might be built on Solaris 8, where things work, and
65822         run on Solaris 10.
65823         * lib/openat-priv.h (BUILD_PROC_NAME): Remove.  All callers changed
65824         to use the following interface instead:
65825         (OPENAT_BUFFER_SIZE): New macro.
65826         (openat_proc_name): New function.
65827         * lib/at-func.c (AT_FUNC_NAME): Adjust to above changes.
65828         * lib/openat.c (openat_permissive, openat_needs_fchdir, fdopendir):
65829         Likewise.
65830         * lib/openat-proc.c: New file.
65831         * modules/openat (Files): Add lib/openat-proc.c.
65832         (Depends-on): Add same-inode, stdbool.
65833         * m4/openat.m4 (gl_FUNC_OPENAT): Add AC_LIBOBJ(openat-proc).
65834
65835 2006-09-29  Bruno Haible  <bruno@clisp.org>
65836
65837         * lib/fwriteerror.h (fwriteerror_no_ebadf): New declaration.
65838         * lib/(do_fwriteerror): Renamed from fwriteerror. Add ignore_ebadf
65839         argument. Set stdout_closed before testing for ferror, not after.
65840         (fwriteerror, fwriteerror_no_ebadf): New functions.
65841
65842 2006-09-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
65843
65844         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Avoid unused variables warning.
65845
65846 2006-09-28  Paolo Bonzini  <bonzini@gnu.org>
65847
65848         * lib/poll.c (rpl_poll) [__APPLE__]: Use FIONREAD instead of MSG_PEEK.
65849         * m4/poll.m4: Look for sys/ioctl.h and sys/filio.h.
65850
65851 2006-09-28  Jim Meyering  <jim@meyering.net>
65852
65853         * lib/mkdir-p.c: Include "dirchownmod.h", not "dirchownmod.c".
65854         Include <unistd.h>.
65855
65856 2006-09-28  Bruno Haible  <bruno@clisp.org>
65857
65858         * modules/avltreehash-list (Depends-on): Add stdint, remove size_max.
65859         * modules/linkedhash-list (Depends-on): Likewise.
65860         * modules/rbtreehash-list (Depends-on): Likewise.
65861
65862 2006-09-28  Bruno Haible  <bruno@clisp.org>
65863
65864         * lib/strndup.h: Simplify the redefinition of strndup.
65865         (_GL_CONCAT, _GL_XCONCAT, __STRNDUP_ID): Remove macros.
65866         * m4/strndup.m4 (gl_FUNC_STRNDUP): Don't define __STRNDUP_PREFIX.
65867
65868 2006-09-28  Bruno Haible  <bruno@clisp.org>
65869
65870         * lib/gl_avltreehash_list.c: Include <stdint.h> instead of size_max.h.
65871         * lib/gl_linkedhash_list.c: Likewise.
65872         * lib/gl_rbtreehash_list.c: Likewise.
65873
65874 2006-09-27  Paul Eggert  <eggert@cs.ucla.edu>
65875
65876         * lib/canon-host.c (canon_host_r): Work around bug in Darwin 7.9.0
65877         getaddrinfo.
65878
65879         * lib/__fpending.h: Don't include <stdio_ext.h> unless
65880         HAVE_DECL___FPENDING.  This avoids a bug with lsbcc, where
65881         it causes <stdio_ext.h> to cause a compile-time error.
65882         Problem reported by Nelson H. F. Beebe.
65883         * lib/getpass.c: Likewise, except for HAVE_DECL___FSETLOCKING instead
65884         of HAVE_DECL___PENDING.
65885
65886         * m4/fpending.m4 (gl_FUNC_FPENDING): Check for stdio_ext at most once.
65887         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for __fsetlocking's
65888         declaration.
65889
65890 2006-09-27  Jim Meyering  <jim@meyering.net>
65891
65892         This file could end up with a definition for a function
65893         named __strndup, rather than rpl_strndup on a system with
65894         incomplete weak_alias support.
65895         * lib/strndup.c (strndup): Rename from __strndup.
65896         Remove #defines that used to map __strndup to strndup.
65897         Don't use K&R prototypes.
65898         Remove LIBC-related code, since this file is not sync'd with glibc.
65899         * lib/strndup.h: Revamp, accordingly.
65900         * m4/strndup.m4: Modernize.
65901
65902 2006-09-26  Paul Eggert  <eggert@cs.ucla.edu>
65903
65904         * modules/savewd (Depends-on): Add 'raise'.
65905         * lib/savewd.c: Include <signal.h>, for 'raise'.
65906
65907 2006-09-26  Jim Meyering  <jim@meyering.net>
65908
65909         * m4/acl.m4 (AC_FUNC_ACL): Disable ACL support altogether
65910         when we detect Darwin 8.7.0's acl_get_file bug.
65911         Rearrange to perform the new (below) run-test while $LIBS
65912         contains any acl-related library.  Set USE_ACL at the end.
65913         (gl_ACL_GET_FILE): New function.
65914
65915 2006-09-26  Eric Blake  <ebb9@byu.net>
65916
65917         * lib/verror.c: Include <config.h> unconditionally.
65918
65919 2006-09-25  Paul Eggert  <eggert@cs.ucla.edu>
65920
65921         * modules/clock-time (Maintainer): Add self.
65922         * modules/getlogin_r (Depends-on): Add extensions.
65923
65924 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
65925
65926         * modules/clock-time: New module.
65927         * modules/nanosleep (Depends-on): Add clock-time.
65928         * modules/gethrxtime (Depends-on): Likewise.
65929         * modules/gettime (Depends-on): Likewise.
65930         * modules/settime (Depends-on): Likewise.
65931
65932         * modules/fts-lgpl: Depend on openat.
65933         * modules/mkancesdirs: Depend on savewd.
65934         * modules/mkdir-p: Likewise.
65935
65936 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
65937
65938         * m4/host-os.m4 (gl_HOST_OS): Require AC_CANONICAL_HOST.
65939
65940         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Rename cache variable from
65941         `gl_have_arbitrary_file_name_length_limit' to
65942         `gl_cv_have_arbitrary_file_name_length_limit', so that caching
65943         actually works between configure runs.
65944
65945 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
65946             Bruno Haible  <bruno@clisp.org>
65947
65948         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Include <string.h>.
65949
65950 2006-09-25  Jim Meyering  <jim@meyering.net>
65951
65952         * m4/fcntl_h.m4 (gl_FCNTL_H): Fix typo in test for failed open.
65953         This typo caused coreutils/tests/dd/misc to fail on Darwin 8.7.0.
65954
65955 2006-09-25  Eric Blake  <ebb9@byu.net>
65956
65957         * gnulib-tool (func_import, func_create_testdir): Fix typos in
65958         exec's in 2006-09-18 patch when shuffling fds.
65959
65960 2006-09-25  Bruno Haible  <bruno@clisp.org>
65961
65962         * m4/getloadavg.m4 (gl_GETLOADAVG): Fix directory in error message.
65963         Reported by Jim Meyering.
65964
65965 2006-09-24  Jim Meyering  <jim@meyering.net>
65966
65967         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Don't use '>' to
65968         compare a pointer against a literal "0".  That caused failures with
65969         at least HP-UX's hpcc.
65970
65971 2006-09-22  Simon Josefsson  <jas@extundo.com>
65972
65973         * modules/gc-sha1:
65974         * modules/gc-md4:
65975         * modules/gc-hmac-sha1:
65976         * modules/gc-hmac-md5:
65977         * modules/gc-des:
65978         * modules/gc-arcfour: Distribute more files.
65979
65980 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
65981
65982         * lib/gl_anylinked_list2.h [lint] (gl_linked_iterator)
65983         (gl_linked_iterator_from_to): Initialize struct completely.
65984         * lib/gl_anytree_list2.h [lint] (gl_tree_iterator): Likewise.
65985         (gl_tree_iterator_from_to): Likewise
65986         * lib/gl_anytree_oset.h [lint] (gl_tree_iterator): Likewise.
65987         * lib/gl_array_list.c [lint] (gl_array_iterator)
65988         (gl_array_iterator_from_to): Likewise.
65989         * lib/gl_array_oset.c [lint] (gl_array_iterator): Likewise.
65990         * lib/gl_carray_list.c [lint] (gl_carray_iterator)
65991         (gl_carray_iterator_from_to): Likewise.
65992
65993         * lib/gc-gnulib.c [GC_USE_HMAC_SHA1]: include hmac.h for hmac_sha1.
65994         * lib/md4.c (md4_process_block): Remove unused variable.
65995         * lib/rijndael-api-fst.c (rijndaelBlockDecrypt): GCC suggests
65996         parentheses for clarity.
65997
65998 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
65999
66000         * modules/bison-i18n (Depends-on): Add gettext.
66001
66002 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
66003
66004         * m4/fsusage.m4 (gl_STATFS_TRUNCATES): Avoid unused variable.
66005         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Likewise.
66006         * m4/jm-winsz1.m4 (gl_HEADER_TIOCGWINSZ_IN_TERMIOS_H): Likewise;
66007         also add missing comma that caused broken test.
66008         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Include
66009         stdlib.h, for `abort'.
66010         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Avoid unused
66011         variables.
66012         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Check for and
66013         include unistd.h if present, for `rmdir'.
66014         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): Avoid unused
66015         variables.
66016         * m4/putenv.m4 (gl_FUNC_PUTENV): Rewrite using AC_RUN_IFELSE, and
66017         in the process include standard headers for prototypes.
66018         * m4/readutmp.m4 (gl_READUTMP): Require AC_GNU_SOURCE, so utmpxname
66019         gets declared on GNU/Linux.
66020         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Check for and include
66021         unistd.h, for `rmdir'.
66022         * m4/time_r.m4 (gl_TIME_R): Avoid unused variables.
66023
66024         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Avoid expression that is
66025         always true.
66026         * m4/strndup.m4 (gl_FUNC_STRNDUP): include stdlib.h, for `free'.
66027
66028         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Avoid gcc -Wall warnings.
66029
66030 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
66031
66032         * gnulib-tool (func_version): Create output all at once.  This
66033         may help avoid triggering unnecessary SIGPIPEs, and at any
66034         rate it doesn't hurt.
66035
66036 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
66037             Bruno Haible  <bruno@clisp.org>
66038
66039         * m4/lock.m4 (gl_LOCK_BODY): Avoid unused variables warning.
66040         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
66041         * m4/signed.m4 (bh_C_SIGNED): Likewise.
66042
66043         * m4/vasprintf.m4 (gl_PREREQ_VASPRINTF_H): New macro.
66044         (gl_FUNC_VASPRINTF): Invoke it.
66045
66046 2006-09-22  Bruno Haible  <bruno@clisp.org>
66047
66048         * m4/getloadavg.m4 (gl_GETLOADAVG): Expect the directory of
66049         getloadavg.c as first argument.
66050
66051 2006-09-22  Bruno Haible  <bruno@clisp.org>
66052
66053         * gnulib-tool (func_import, func_create_testdir): Set gl_source_base
66054         at the beginning of the gl_INIT macro.
66055         * modules/getloadavg (configure.ac): Pass $gl_source_base to
66056         gl_GETLOADAVG.
66057
66058 2006-09-22  Bruno Haible  <bruno@clisp.org>
66059
66060         * gnulib-tool (func_create_megatestdir): Don't include the config-h
66061         module.
66062         Suggested by Ralf Wildenhues.
66063
66064 2006-09-20  Paul Eggert  <eggert@cs.ucla.edu>
66065
66066         Import this patch from libc:
66067
66068         2006-09-06  Jakub Jelinek  <jakub@redhat.com>
66069
66070         * lib/regex_internal.c (re_string_reconstruct): Handle
66071         offset < pstr->valid_raw_len && pstr->offsets_needed case.
66072         Ensure no bytes read before raw_mbs array.  Pass a saved copy of
66073         pstr->valid_len - 1 rather than pstr->valid_raw_len - 1 to
66074         re_string_context_at.
66075
66076         * m4/regex.m4 (gl_REGEX): Check for locale.h, since the test
66077         now requires it.
66078         (gl_PREREQ_REGEX): Don't check for locale.h any more, since
66079         gl_REGEX now does it for us.
66080         (gl_REGEX): Add test taken from
66081         http://sourceware.org/ml/libc-hacker/2006-09/msg00008.html.
66082
66083         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require AC_SYS_LARGEFILE.
66084         Check that large offsets work.  Modernize Autoconf usages.
66085         Prefer "yes" to mean a good thing rather than a bad.
66086         Don't put "#define mkstemp" in config.h, as this might interfere
66087         with standard system headers that "#define mkstemp mkstemp64".
66088
66089         * modules/mkstemp (Depends-on): Add extensions, so that
66090         mkstemp is visible on some platforms.
66091         (Makefile.am): Add mkstemp.h to EXTRA_DIST.
66092         (Include): Change to "mkstemp.h" from <stdlib.h>.
66093         (Files): Add mkstemp.h.
66094
66095         * lib/mkstemp.h: New file, since some standard headers
66096         #define mkstemp.
66097         * lib/mkstemp.c: Revamp to put the !_LIBC code together.
66098         Include "mkstemp.h".
66099         Make the _LIBC code resemble glibc original more,
66100         e.g., use K&R style.
66101         * lib/mkstemp-safer.c: Include "mkstemp.h" instead of <stdlib.h>.
66102         (mkstemp): Remove, since mkstemp.h does this for us.
66103         * lib/stdlib--.h: Include mkstemp.h.
66104
66105         Import this patch from libc:
66106
66107         2006-04-07  Ulrich Drepper  <drepper@redhat.com>
66108
66109         * lib/tempname.c (__gen_tempname): Change attempts_min
66110         into a macro.  Use preprocessor to decide how to initialize
66111         attempts [Coverity CID 67].
66112
66113 2006-09-20  Bruno Haible  <bruno@clisp.org>
66114
66115         * lib/mkdtemp.c: Import from libc.
66116         2006-04-07  Ulrich Drepper  <drepper@redhat.com>
66117                 * sysdeps/posix/tempname.c (__gen_tempname): Change
66118                 attempts_min into a macro.  Use preprocessor to decide how to
66119                 initialize attempts [Coverity CID 67].
66120         2001-11-27  Paul Eggert  <eggert@twinsun.com>
66121                 * sysdeps/posix/tempname.c (__gen_tempname): Try at least
66122                 ATTEMPTS_MIN or TMP_MAX times, whichever is greater.
66123
66124 2006-09-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
66125
66126         * gnulib-tool (func_exit): New function, to allow to pass the
66127         exit status portably through the trap.  Use everywhere.
66128         (--help, --version): Signal a write error.
66129         (trap): catch SIGPIPE, for write errors.
66130         Exit at the end of the trap, with the correct exit status.
66131
66132 2006-09-19  Karl Berry  <karl@gnu.org>
66133
66134         * doc/gnulib.texi: note about the license texinfo files.
66135
66136 2006-09-19  Eric Blake  <ebb9@byu.net>
66137
66138         * gnulib-tool: Avoid space-tab.
66139
66140 2006-09-18  Paul Eggert  <eggert@cs.ucla.edu>
66141
66142         * lib/getaddrinfo.c (getaddrinfo) [defined HAVE_IPV6]: Fix typo
66143         that prevented coreutils 6.1 from building.  Problem reported
66144         by Petter Reinholdtsen.
66145
66146 2006-09-18  Paul Eggert  <eggert@cs.ucla.edu>
66147
66148         * gnulib-tool (avoidlist): Fix typo that broke options like
66149         --avoid=lock that are used by coreutils bootstrap.
66150
66151 2006-09-18  Mark D. Baushke  <mdb@gnu.org>
66152
66153         * m4/inttypes.m4 (gl_INTTYPES_H): Quote "test" args
66154         more systematically.
66155
66156 2006-09-18  Jim Meyering  <jim@meyering.net>
66157
66158         * lib/savewd.c (savewd_restore): Don't shadow: s/status/child_status/.
66159
66160 2006-09-18  Bruno Haible  <bruno@clisp.org>
66161
66162         * modules/inttypes (Files): Remove m4/inttypes-h.m4.
66163
66164 2006-09-18  Bruno Haible  <bruno@clisp.org>
66165
66166         * m4/inttypes-h.m4 (gl_HEADER_INTTYPES_H): Remove macro.
66167         * m4/inttypes-pri.m4: Require autoconf >= 2.52.
66168         (gt_INTTYPES_PRI): Invoke AC_CHECK_HEADERS on inttypes.h. Test
66169         ac_cv_header_inttypes_h instead of gl_cv_header_inttypes_h.
66170         * m4/gettext.m4: Require autoconf >= 2.52.
66171         (gt_INTL_SUBDIR_CORE): Invoke AC_CHECK_HEADERS on inttypes.h.
66172         * m4/inttypes.m4 (gl_INTTYPES_H): Test ac_cv_header_inttypes_h instead
66173         of gl_cv_header_inttypes_h.
66174
66175 2006-09-18  Bruno Haible  <bruno@clisp.org>
66176
66177         * lib/javaversion.c: Include configmake.h.
66178
66179 2006-09-18  Bruno Haible  <bruno@clisp.org>
66180
66181         * gnulib-tool (func_import, func_create_testdir): Use exec tricks to
66182         avoid that the while loops be executed in a subshell.
66183
66184 2006-09-18  Bruno Haible  <bruno@clisp.org>
66185
66186         * MODULES.html.sh (func_module): Break long lines.
66187         Suggested by Bruce Korb <bkorb@gnu.org>.
66188
66189 2006-09-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
66190
66191         Speed up by a factor of 1.12.
66192         * gnulib-tool (nl): New variable.
66193         (func_import): Rewrite include directive extraction to only read each
66194         directive once.
66195
66196 2006-09-17  Bruno Haible  <bruno@clisp.org>
66197
66198         * modules/javaversion (Makefile.am): Remove DEFS setting.
66199         (Depends-on): Add configmake, for PKGDATADIR definition.
66200
66201 2006-09-17  Bruno Haible  <bruno@clisp.org>
66202
66203         * gnulib-tool (func_create_testdir): Rewrite all files at once.
66204
66205 2006-09-17  Bruno Haible  <bruno@clisp.org>
66206
66207         * gnulib-tool (func_append): New function, stolen from libtool.m4.
66208         (func_modules_transitive_closure, func_modules_add_dummy,
66209         func_modules_to_filelist, func_import, func_create_testdir,
66210         func_create_megatestdir, ...): Use it wherever possible.
66211         Suggested by Ralf Wildenhues.
66212
66213 2006-09-16  Karl Berry  <karl@gnu.org>
66214
66215         * doc/fdl.texi (ADDENDUM): switch to @heading from @appendixsubsec,
66216         to avoid sectioning errors.
66217         * doc/lgpl.texi, gpl.texi (Copying): downcase @unnumbered title.
66218         [ifinfo]: blank line after @center-ed titles.
66219         * doc/lgpl.texi (Library Copying): Rename main node to GNU LGPL.
66220         Spell FSF address consistently with others.
66221         (These changes approved by rms.)
66222
66223 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
66224
66225         Speed up by a factor of 1.61.
66226         * gnulib-tool (func_modules_transitive_closure): Rewrite to not check
66227         already checked module names again.
66228
66229 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
66230
66231         Speed up by a factor of 1.13.
66232         * gnulib-tool (func_import): Rewrite all old_files at once; likewise
66233         for new_files, and the input to func_add_or_update.
66234
66235 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
66236
66237         * gnulib-tool (func_all_modules, func_modules_to_filelist, func_import,
66238         func_create_testdir, ...): Change 'sort | uniq' to 'sort -u'.
66239
66240 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
66241
66242         * modules/mkancesdirs (Depends-on): Add fcntl.
66243         * modules/savewd: New file.
66244         * MODULES.html.sh (File system functions): Add savewd.
66245
66246         * modules/configmake (Makefile.am): Add support for the
66247         Automake-supplied PKGLIBDIR, PKGINCLUDEDIR, PKGDATADIR.
66248
66249 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
66250
66251         * m4/savewd.m4: New file.
66252
66253 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
66254
66255         * lib/dirchownmod.c: Don't include fcntl.h; no longer needed.
66256         (dirchownmod): New arg FD.  All callers changed.
66257         Use FD rather than opening the directory ourself, as opening is
66258         now the caller's responsibility.
66259         * lib/dirchownmod.h: Likewise.
66260         * lib/mkancesdirs.c: Include <sys/types.h>, for portability to older
66261         hosts that require <sys/types.h> before <sys/stat.h>.  Include
66262         fcntl.h, savewd.h, and unistd.h, not dirname.h and stat-macros.h.
66263         (test_dir): Remove.
66264         (mkancesdirs): Return length of prefix of FILE that has already
66265         been made, or -2 if there is a child doing the work.  Redo
66266         algorithm so that it is O(N) rather than O(N**2).  Optimize away
66267         ".", and treat ".." specially since it might stray back into
66268         already-created areas.  Use a subprocess if necessary.  New arg
66269         WD; all users changed.  MAKE_DIR function should now return 1
66270         if it creates a directory that is not readable.  Return -2 if
66271         a child process is spun off.
66272         * lib/mkancesdirs.h: Include <stddef.h>, for ptrdiff_t.
66273         Adjust signature to match code.
66274         * lib/mkdir-p.c: Include dirname.h, for IS_ABSOLUTE_FILE_NAME.
66275         (make_dir_parents): Use a subprocess if necessary.  New arg WD;
66276         all users changed.
66277         * lib/savewd.c, lib/savewd.h: New files.
66278
66279 2006-09-15  Jim Meyering  <jim@meyering.net>
66280
66281         * modules/rename-dest-slash: New module.
66282         * MODULES.html.sh (posix_compat): Add it here.
66283
66284         * modules/rename: Reflect vb_FUNC_RENAME -> gl_FUNC_RENAME change.
66285
66286 2006-09-15  Jim Meyering  <jim@meyering.net>
66287
66288         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH): New
66289         file.
66290
66291         * m4/rename.m4 (gl_FUNC_RENAME): Rename from vb_FUNC_RENAME.
66292
66293 2006-09-15  Jim Meyering  <jim@meyering.net>
66294
66295         * lib/rename-dest-slash.c (has_trailing_slash): Use
66296         FILE_SYSTEM_PREFIX_LEN, for non-POSIX systems.
66297         (rpl_rename_dest_slash): Perform the cheaper trailing slash
66298         test before testing whether SRC is a directory.
66299         Suggestions from Bruno Haible.
66300
66301         Avoid a warning about an unused variable.
66302         * lib/regex_internal.c (re_dfa_add_node): Move declaration of "type"
66303         into the #ifdef block where it's used.
66304
66305         * lib/rename-dest-slash.c: New file.
66306
66307 2006-09-14  Bruno Haible  <bruno@clisp.org>
66308
66309         * lib/allocsa.c: Include <config.h> unconditionally.
66310         * lib/asnprintf.c: Likewise.
66311         * lib/asprintf.c: Likewise.
66312         * lib/c-strcasecmp.c: Likewise.
66313         * lib/c-strcasestr.c: Likewise.
66314         * lib/c-strncasecmp.c: Likewise.
66315         * lib/c-strstr.c: Likewise.
66316         * lib/classpath.c: Likewise.
66317         * lib/clean-temp.c: Likewise.
66318         * lib/concatpath.c: Likewise.
66319         * lib/copy-file.c: Likewise.
66320         * lib/csharpcomp.c: Likewise.
66321         * lib/csharpexec.c: Likewise.
66322         * lib/execute.c: Likewise.
66323         * lib/fatal-signal.c: Likewise.
66324         * lib/findprog.c: Likewise.
66325         * lib/fwriteerror.c: Likewise.
66326         * lib/gl_array_list.c: Likewise.
66327         * lib/gl_array_oset.c: Likewise.
66328         * lib/gl_avltree_list.c: Likewise.
66329         * lib/gl_avltree_oset.c: Likewise.
66330         * lib/gl_avltreehash_list.c: Likewise.
66331         * lib/gl_carray_list.c: Likewise.
66332         * lib/gl_linked_list.c: Likewise.
66333         * lib/gl_linkedhash_list.c: Likewise.
66334         * lib/gl_list.c: Likewise.
66335         * lib/gl_oset.c: Likewise.
66336         * lib/gl_rbtree_list.c: Likewise.
66337         * lib/gl_rbtree_oset.c: Likewise.
66338         * lib/gl_rbtreehash_list.c: Likewise.
66339         * lib/imaxabs.c: Likewise.
66340         * lib/imaxdiv.c: Likewise.
66341         * lib/javacomp.c: Likewise.
66342         * lib/javaexec.c: Likewise.
66343         * lib/javaversion.c: Likewise.
66344         * lib/linebreak.c: Likewise.
66345         * lib/localcharset.c: Likewise.
66346         * lib/lock.c: Likewise.
66347         * lib/mbchar.c: Likewise.
66348         * lib/mbswidth.c: Likewise.
66349         * lib/mkdtemp.c: Likewise.
66350         * lib/pipe.c: Likewise.
66351         * lib/printf-args.c: Likewise.
66352         * lib/printf-parse.c: Likewise.
66353         * lib/progname.c: Likewise.
66354         * lib/progreloc.c: Likewise.
66355         * lib/readlink.c: Likewise.
66356         * lib/sh-quote.c: Likewise.
66357         * lib/stpcpy.c: Likewise.
66358         * lib/stpncpy.c: Likewise.
66359         * lib/strcasecmp.c: Likewise.
66360         * lib/strcasestr.c: Likewise.
66361         * lib/strcspn.c: Likewise.
66362         * lib/striconv.c: Likewise.
66363         * lib/strncasecmp.c: Likewise.
66364         * lib/strnlen1.c: Likewise.
66365         * lib/strstr.c: Likewise.
66366         * lib/strtok_r.c: Likewise.
66367         * lib/tls.c: Likewise.
66368         * lib/tmpdir.c: Likewise.
66369         * lib/unicodeio.c: Likewise.
66370         * lib/unsetenv.c: Likewise.
66371         * lib/vasnprintf.c: Likewise.
66372         * lib/vasprintf.c: Likewise.
66373         * lib/wait-process.c: Likewise.
66374         * lib/xallocsa.c: Likewise.
66375         * lib/xsetenv.c: Likewise.
66376         * lib/xstriconv.c: Likewise.
66377
66378 2006-09-13  Simon Josefsson  <jas@extundo.com>
66379
66380         * m4/getdate.m4: Don't AC_LIBOBJ([getdate]), automake takes care of
66381         that internally, suggested by Ralf Wildenhues
66382         <Ralf.Wildenhues@gmx.de>.
66383
66384 2006-09-13  Simon Josefsson  <jas@extundo.com>
66385
66386         * gnulib-tool (func_emit_lib_Makefile_am): Use $(LIBOBJS), not
66387         @LIBOBJS@.
66388         Suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
66389
66390 2006-09-13  Paul Eggert  <eggert@cs.ucla.edu>
66391
66392         * lib/_fpending.c: Include <config.h> unconditionally, since we no
66393         longer worry about uses that don't define HAVE_CONFIG_H.
66394         * lib/acl.c, lib/alloca.c, lib/argmatch.c, lib/atexit.c:
66395         * lib/backupfile.c, lib/basename.c, lib/c-stack.c, lib/c-strtod.c:
66396         * lib/calloc.c,lib/ canon-host.c, lib/canonicalize.c, lib/chdir-long.c:
66397         * lib/chdir-safer.c, lib/chown.c, lib/cloexec.c, lib/close-stream.c:
66398         * lib/closeout.c, lib/creat-safer.c, lib/cycle-check.c, lib/diacrit.c:
66399         * lib/dirchownmod.c, lib/dirfd.c, lib/dirname.c, lib/dup-safer.c:
66400         * lib/dup2.c, lib/error.c, lib/euidaccess.c, lib/exclude.c:
66401         * lib/exitfail.c, lib/fchmodat.c, lib/fchown-stub.c, lib/fd-safer.c:
66402         * lib/file-type.c, lib/fileblocks.c, lib/filemode.c, lib/filenamecat.c:
66403         * lib/fnmatch.c, lib/fopen-safer.c, lib/fprintftime.c, lib/free.c:
66404         * lib/fsusage.c, lib/ftruncate.c, lib/fts-cycle.c, lib/fts.c:
66405         * lib/full-write.c, lib/gai_strerror.c, lib/getcwd.c, lib/getdate.y:
66406         * lib/getdomainname.c, lib/getgroups.c, lib/gethostname.c:
66407         * lib/gethrxtime.c, lib/getloadavg.c, lib/getlogin_r.c:
66408         * lib/getndelim2.c, lib/getnline.c, lib/getopt.c, lib/getopt1.c:
66409         * lib/getpass.c, lib/gettime.c, lib/gettimeofday.c, lib/getugroups.c:
66410         * lib/getusershell.c, lib/glob.c, lib/group-member.c:
66411         * lib/hard-locale.c, lib/hash-pjw.c, lib/hash.c, lib/human.c:
66412         * lib/idcache.c, lib/inet_ntop.c, lib/inet_pton.c, lib/inttostr.c:
66413         * lib/isdir.c, lib/lchown.c, lib/linebuffer.c, lib/long-options.c:
66414         * lib/lstat.c, lib/malloc.c, lib/md5.c, lib/memcasecmp.c, lib/memchr.c:
66415         * lib/memcmp.c, lib/memcoll.c, lib/memcpy.c, lib/memmove.c:
66416         * lib/memrchr.c, lib/mkancesdirs.c, lib/mkdir-p.c, lib/mkdir.c:
66417         * lib/mkdirat.c, lib/mkstemp-safer.c, lib/mkstemp.c, lib/modechange.c:
66418         * lib/mountlist.c, lib/nanosleep.c, lib/obstack.c, lib/open-safer.c:
66419         * lib/openat-die.c, lib/openat.c, lib/pagealign_alloc.c, lib/physmem.c:
66420         * lib/pipe-safer.c, lib/posixtm.c, lib/posixver.c, lib/putenv.c:
66421         * lib/quote.c, lib/quotearg.c, lib/raise.c, lib/readtokens.c:
66422         * lib/readtokens0.c, lib/readutmp.c, lib/realloc.c, lib/regex.c:
66423         * lib/rename.c, lib/rmdir.c, lib/rpmatch.c, lib/safe-read.c:
66424         * lib/same.c, lib/save-cwd.c, lib/savedir.c, lib/setenv.c:
66425         * lib/settime.c, lib/sha1.c, lib/sig2str.c, lib/snprintf.c:
66426         * lib/strdup.c, lib/strerror.c, lib/strftime.c, lib/stripslash.c:
66427         * lib/strndup.c, lib/strnlen.c, lib/strpbrk.c, lib/strtod.c:
66428         * lib/strtoimax.c, lib/strtol.c, lib/strverscmp.c, lib/tempname.c:
66429         * lib/time_r.c, lib/timegm.c, lib/tmpfile-safer.c, lib/unlinkdir.c:
66430         * lib/userspec.c, lib/utime.c, lib/utimecmp.c, lib/utimens.c:
66431         * lib/version-etc-fsf.c, lib/version-etc.c, lib/xalloc-die.c:
66432         * lib/xgetcwd.c, lib/xgethostname.c, lib/xmalloc.c, lib/xmemcoll.c:
66433         * lib/xnanosleep.c, lib/xreadlink.c, lib/xstrtod.c, lib/xstrtoimax.c:
66434         * lib/xstrtol.c, lib/xstrtoumax.c, lib/yesno.c:
66435         Likewise.
66436
66437 2006-09-13  Eric Blake  <ebb9@byu.net>
66438
66439         * lib/getopt.c: Fix typo in last commit.
66440
66441 2006-09-12  Sergey Poznyakoff  <gray@gnu.org.ua>
66442
66443         * lib/argp-help.c (argp_doc): Make sure NULL is not passed to
66444         dgettext.
66445
66446 2006-09-12  Jim Meyering  <jim@meyering.net>
66447
66448         * lib/nanosleep.c: Include <sys/types.h> before sys/select.h, to avoid
66449         compilation failure (due to use of pid_t in latter) on NetBSD 1.6.
66450         Reported by Nelson H. F. Beebe.
66451
66452 2006-09-10  Sergey Poznyakoff  <gray@gnu.org.ua>
66453
66454         * lib/argp-parse.c (__argp_parse) [!_LIBC]: Make sure
66455         program_invocation_name and program_invocation_short_name are
66456         initialized.
66457         * lib/argp-namefrob.h: Move declarations of program_invocation_name
66458         and program_invocation_short_name to argp.h, so they are visible
66459         to user programs.
66460         * lib/argp.h: Likewise
66461
66462 2006-09-10  Bruno Haible  <bruno@clisp.org>
66463
66464         * modules/mkdtemp (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
66465         m4/inttypes_h.m4, m4/uintmax_t.m4.
66466
66467 2006-09-10  Bruno Haible  <bruno@clisp.org>
66468
66469         * m4/mkdtemp.m4 (gl_PREREQ_MKDTEMP): Don't require
66470         gl_AC_TYPE_UINTMAX_T.
66471
66472 2006-09-10  Bruno Haible  <bruno@clisp.org>
66473
66474         * lib/mkdtemp.c: Include <stdint.h> always. Don't include <inttypes.h>.
66475
66476 2006-09-09  Sergey Poznyakoff  <gray@gnu.org.ua>
66477
66478         * lib/argp.h (struct argp): Document the N_("..") "\v" N_("..")
66479         convention.  Text proposed by Bruno Haible.
66480         (struct argp_option): Document the use of N_() wrappers.
66481
66482         * lib/argp-help.c (argp_doc): Split the untranslated doc string on
66483         '\v', and translate the two parts separately, instead of feeding
66484         the whole string to gettext.  This allows to exclude
66485         '\v' from the strings visible to the translator by writing doc
66486         strings as N_("..") "\v" N_("..").
66487
66488 2006-09-09  Paul Eggert  <eggert@cs.ucla.edu>
66489
66490         * config/srclist.txt: Undo latest change; the bug was fixed.
66491
66492 2006-09-09  Bruno Haible  <bruno@clisp.org>
66493
66494         * gnulib-tool (func_emit_lib_Makefile_am): Eliminate lib_LDFLAGS
66495         assignments if building a library without libtool.
66496         (func_emit_tests_Makefile_am): Likewise. Handle lib_* variables as
66497         in func_emit_lib_Makefile_am.
66498         (func_import): When building a static library libfoo.a, arrange to
66499         define variables LIBFOO_LIBDEPS and LIBFOO_LTLIBDEPS.
66500         (func_create_testdir): Likewise.
66501         * modules/gc (configure.ac, Makefile.am): If building statically,
66502         augment gl_libdeps and gl_ltlibdeps instead of lib_LDFLAGS.
66503         * modules/iconvme (configure.ac, Makefile.am): Likewise.
66504         * modules/striconv (configure.ac, Makefile.am): Likewise.
66505         Based on a suggestion by Ralf Wildenhues.
66506
66507 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
66508
66509         * m4/mktime.m4 (AC_FUNC_MKTIME): Sync from Autoconf.
66510         Check for unistd.h too, since Autoconf doesn't assume POSIX.
66511         Also:
66512
66513         2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
66514         Add year_2050_test to catch glibc bug 2821
66515         <http://sourceware.org/bugzilla/show_bug.cgi?id=2821>.
66516
66517         2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
66518         Prefer #ifdef to #if.
66519
66520         2006-04-02  Paul Eggert  <eggert@cs.ucla.edu>
66521         Return from 'main' instead of calling 'exit'.
66522
66523 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
66524
66525         * lib/mktime.c (guess_time_tm): Fix bug where mktime
66526         returned the maximum time_t value rather than (time_t) -1.
66527         Problem originally reported by William Bardwell
66528         <http://sourceware.org/bugzilla/show_bug.cgi?id=2821>.
66529
66530         * lib/isapipe.h (HAVE_FIFO_PIPES) [!defined HAVE_FIFO_PIPES]:
66531         Moved to here ...
66532         * lib/isapipe.c (HAVE_FIFO_PIPES) [!defined HAVE_FIFO_PIPES]:
66533         ... from here.
66534
66535 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
66536
66537         * config/srclist.txt: Temporarily comment out mktime.c until glibc bug
66538         2821 is fixed.
66539
66540 2006-09-08  Jim Meyering  <jim@meyering.net>
66541
66542         Don't make generated files read-only.  That would bother too many
66543         people.  However, do retain the ability to work when targets are
66544         read-only: remove the destination and temporary files before writing
66545         them (when generated via sed or echo), or by using the -f option for
66546         both cp and mv commands.  Suggestion to use -f from Paul Eggert.
66547         * modules/alloca-opt, modules/argz, modules/arpa_inet:
66548         * modules/byteswap, modules/configmake, modules/fcntl:
66549         * modules/fnmatch, modules/getopt, modules/glob, modules/inttypes:
66550         * modules/localcharset, modules/netinet_in, modules/poll:
66551         * modules/stdbool, modules/stdint, modules/sys_select:
66552         * modules/sys_socket, modules/sys_stat, modules/sysexits:
66553
66554 2006-09-08  Jim Meyering  <jim@meyering.net>
66555
66556         Avoid new build failure on FreeBSD 6.0.
66557         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Include
66558         <sys/param.h> when testing whether getmntinfo uses statvfs.  Patch by
66559         Pavel Tsekov, in <http://savannah.gnu.org/bugs/?17643>.
66560
66561 2006-09-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
66562
66563         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't use plain echo.
66564
66565 2006-09-07  Jim Meyering  <jim@meyering.net>
66566
66567         Fix global typo in last change: use chmod u-w, not chmod u-x.
66568         Spotted by Paul Eggert and Bruce Korb.
66569         * modules/alloca-opt, modules/argz, modules/arpa_inet:
66570         * modules/byteswap, modules/configmake, modules/fcntl:
66571         * modules/fnmatch, modules/getopt, modules/glob, modules/inttypes:
66572         * modules/localcharset, modules/netinet_in, modules/poll:
66573         * modules/stdbool, modules/stdint, modules/sys_select:
66574         * modules/sys_socket, modules/sys_stat, modules/sysexits:
66575
66576 2006-09-06  Jim Meyering  <jim@meyering.net>
66577
66578         Make generated files be read-only.
66579         * modules/alloca-opt (Makefile.am): Work also when $@ is read-only.
66580         Ensure that each generated file is now read-only.
66581         * modules/argz: Likewise.
66582         * modules/arpa_inet: Likewise.
66583         * modules/byteswap: Likewise.
66584         * modules/configmake: Likewise.
66585         * modules/fcntl: Likewise.
66586         * modules/fnmatch: Likewise.
66587         * modules/getopt: Likewise.
66588         * modules/glob: Likewise.
66589         * modules/inttypes: Likewise.
66590         * modules/netinet_in: Likewise.
66591         * modules/poll: Likewise.
66592         * modules/stdbool: Likewise.
66593         * modules/stdint: Likewise.
66594         * modules/sys_select: Likewise.
66595         * modules/sys_socket: Likewise.
66596         * modules/sys_stat: Likewise.
66597         * modules/sysexits: Likewise.
66598         * modules/localcharset: Same as above, but continue using temporary
66599         file named "t-$@" (why different?) rather than the "$@-t" used
66600         everywhere else.
66601
66602         * modules/sysexits (Makefile.am): Replace literal occurrences
66603         of "sysexit.h" more readable, and more consistent, "$@".
66604
66605 2006-09-06  Bruno Haible  <bruno@clisp.org>
66606
66607         * modules/striconv: New file.
66608         * modules/xstriconv: New file.
66609         * MODULES.html.sh (Internationalization functions): Add striconv,
66610         xstriconv.
66611
66612 2006-09-06  Bruno Haible  <bruno@clisp.org>
66613
66614         * modules/gc (Makefile.am): Augment lib_LDFLAGS, not lib_LIBADD.
66615         * modules/iconvme (Makefile.am): Likewise. Also handle the case of
66616         not using libtool correctly.
66617
66618 2006-09-06  Bruno Haible  <bruno@clisp.org>
66619
66620         * lib/striconv.h: New file.
66621         * lib/striconv.c: New file, merging iconvme.c with GNU gettext's
66622         iconvstring.c.
66623         * lib/xstriconv.h: New file.
66624         * lib/xstriconv.c: New file.
66625
66626 2006-09-06  Bruno Haible  <bruno@clisp.org>
66627
66628         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
66629         lib_..._LDFLAGS.
66630
66631 2006-09-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
66632
66633         * lib/argz_.h: Sync from Libtool.
66634
66635         2006-09-04  George Bosilca <bosilca@cs.utk.edu>
66636                 and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
66637
66638         * lib/libltdl/argz_.h: It's __cplusplus, not _cplusplus.
66639
66640 2006-09-05  Davide Angelocola  <davide.angelocola@tiscali.it>
66641
66642         * modules/trim: New file.
66643
66644 2006-09-05  Davide Angelocola  <davide.angelocola@tiscali.it>
66645
66646         * lib/trim.h: New file.
66647         * lib/trim.c: New file.
66648
66649 2006-09-05  Bruno Haible  <bruno@clisp.org>
66650
66651         * MODULES.html.sh (String handling): Add trim.
66652
66653 2006-09-04  Karl Berry  <karl@gnu.org>
66654
66655         * config/srclist.txt (signed.m4, gettext.m4): changes not propagated
66656         until next release.
66657
66658 2006-09-03  Bruno Haible  <bruno@clisp.org>
66659
66660         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Locate mingw shared libraries
66661         correctly.
66662
66663 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
66664
66665         * m4/getloadavg.m4 (gl_GETLOADAVG): Use CONFIGURING_GETLOADAVG,
66666         not gl_GETLOADAVG.  Omit unneeded semicolons.
66667         Problems reported by Ralf Wildenhues in
66668         <http://lists.gnu.org/archive/html/bug-gnulib/2006-09/msg00000.html>.
66669         (gl_PREREQ_GETLOADAVG): Use AC_DEFUN, not m4_define.  Put
66670         at the end, which is the usual gnulib style.
66671
66672         * m4/fstypename.m4 (gl_FSTYPENAME): Use AC_CHECK_MEMBERS instead
66673         of doing all the work ourselves.
66674         * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Don't check for
66675         sys/statvfs.h since the code doesn't use HAVE_SYS_STATVFS_H.
66676
66677 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
66678
66679         * lib/getloadavg.c: Use CONFIGURING_GETLOADAVG, not gl_GETLOADAVG.
66680         Problem reported by Ralf Wildenhues in
66681         <http://lists.gnu.org/archive/html/bug-gnulib/2006-09/msg00000.html>.
66682
66683         * lib/mountlist.c: All uses of HAVE_F_FSTYPENAME_IN_STATFS replaced by
66684         HAVE_STRUCT_STATFS_F_FSTYPENAME.
66685
66686 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
66687
66688         * gnulib-tool (func_emit_lib_Makefile_am): Fix typos in
66689         yesterday's patch by changing test -n to test -z.
66690
66691 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
66692
66693         * modules/getloadavg (Files): Add m4/getloadavg.m4.
66694         (configure.ac): AC_FUNC_GETLOADAVG -> gl_GETLOADAVG, as
66695         the former is now obsolescent.
66696
66697         * modules/chdir-long (Depends-on): Add fcntl.
66698
66699 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
66700
66701         * m4/fnmatch.m4: Add comment that Autoconf AC_FUNC_FNMATCH is
66702         obsolescent, and programs should use gnulib instead.
66703         * m4/getloadavg.m4: New file, with contents taken from Autoconf
66704         but with prefixes changed.
66705
66706 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
66707
66708         * lib/getloadavg.c [defined gl_GETLOADAVG]: Don't include config.h
66709         or stdbool.h, because they might not exist while configuring.
66710
66711         * lib/chdir-long.c: Include <fcntl.h>, for O_DIRECTORY.
66712         Don't include unistd.h or limits.h; not needed, since chdir-long.h
66713         does that for us.
66714         (O_DIRECTORY): Remove.
66715
66716 2006-08-31  Eric Blake  <ebb9@byu.net>
66717
66718         * gnulib-tool: Don't let emacs change spaces to TAB.
66719
66720 2006-08-31  Bruno Haible  <bruno@clisp.org>
66721
66722         * gnulib-tool: When calling func_import more than once, do it in a
66723         subshell.
66724         Reported by Eric Blake <ebb9@byu.net>.
66725
66726 2006-08-31  Bruno Haible  <bruno@clisp.org>
66727
66728         * gnulib-tool (nl): Remove variable.
66729         (sed_transform_lib_file): Use more robust test for config-h module.
66730         (func_import): Fix typo in 2006-08-25 patch.
66731
66732 2006-08-31  Bruno Haible  <bruno@clisp.org>
66733
66734         * gnulib-tool (func_emit_lib_Makefile_am): When --makefile-name was
66735         specified, augment Makefile.am variables instead of assigning them.
66736
66737 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
66738
66739         Work around a bug in both the Linux and SunOS 64-bit kernels:
66740         nanosleep mishandles sleeps for longer than 2**31 seconds.
66741         Problem reported by Frank v Waveren in
66742         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00298.html>.
66743         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require gl_CLOCK_TIME.
66744         Check for nanosleep bug.
66745         (LIB_NANOSLEEP): Append clock_gettime library if needed.
66746
66747 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
66748
66749         Work around a bug in both the Linux and SunOS 64-bit kernels:
66750         nanosleep mishandles sleeps for longer than 2**31 seconds.
66751         Problem reported by Frank v Waveren in
66752         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00298.html>.
66753         * lib/nanosleep.c (BILLION): New constant.
66754         (getnow) [HAVE_BUG_BIG_NANOSLEEP]: New functions.
66755         (rpl_nanosleep) [HAVE_BUG_BIG_NANOSLEEP]: Completely new
66756         implementation.
66757
66758 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
66759
66760         * modules/nanosleep (Depends-on): Add gettime.
66761
66762 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
66763         and Simon Josefsson  <jas@extundo.com>
66764         and Oskar Liljeblad  <oskar@osk.mine.nu>
66765
66766         * MODULES.html.sh (Support for building documentation): Add gpl, lgpl.
66767         * gnulib-tool (func_import): New license type 'unmodifiable license
66768         text'.
66769         * modules/fdl: Use it.  Longer description.
66770         * module/gpl, module/lgpl: New files.
66771
66772 2006-08-30  Jim Meyering  <jim@meyering.net>
66773
66774         * lib/isapipe.c (isapipe): Rename local s/fd/fd_pair/ to avoid
66775         shadowing the parameter.
66776
66777 2006-08-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
66778
66779         Sync from Libtool:
66780
66781         2006-08-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
66782
66783         * lib/libltdl/argz.c: Use `#ifdef HAVE_CONFIG_H', to facilitate code
66784         sharing with gnulib.  Report by Eric Blake.
66785
66786 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
66787
66788         * modules/isapipe: New file.
66789         * MODULES.html.sh (File descriptor based Input/Output): Add isapipe.
66790
66791 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
66792
66793         * modules/configmake (Makefile.am): Add a comment, and omit
66794         the CONFIGMAKE_ prefix from generated macro names.  Suggested
66795         by Bruno Haible.
66796
66797 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
66798
66799         * m4/isapipe.m4: New file.
66800
66801 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
66802
66803         * lib/isapipe.c, lib/isapipe.h: New files.
66804
66805 2006-08-29  Jim Meyering  <jim@meyering.net>
66806
66807         * modules/configmake (Makefile.am): Make configmake.h depend on
66808         Makefile.  Otherwise, a stale configmake.h could hang around.
66809
66810 2006-08-29  Eric Blake  <ebb9@byu.net>
66811
66812         * lib/error.c (error_at_line, print_errno_message): Match libc, after
66813         resolution of upstream bug 3044.
66814
66815 2006-08-29  Bruno Haible  <bruno@clisp.org>
66816
66817         * modules/localcharset (Depends-on): Add configmake.
66818         (Makefile.am): Remove setting of LIBDIR through DEFS.
66819
66820 2006-08-29  Bruno Haible  <bruno@clisp.org>
66821
66822         * lib/localcharset.c: Include configmake.h in order to get LIBDIR
66823         defined.
66824
66825 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
66826
66827         * modules/fcntl: New file.
66828         * modules/chdir-safer (Depends-on): Add fcntl.
66829         * modules/fts: Likewise.
66830         * modules/mkdir-p: Likewise.
66831
66832         * modules/stdint (Makefile.am): Do not substitute ABSOLUTE_INTTYPES_H.
66833         This undoes the most recent change, since we're now addressing the
66834         problem in a different way.
66835
66836         * gnulib-tool (emit_lib_Makefile_am): Don't put $makefile_name
66837         into output, since the output might be called Makefile.am even
66838         if $makefile_name is something different.
66839         (func_import): Use $makefile_am rather than
66840         ${makefile_name-Makefile.am}, to fix a bug where makefile_name was
66841         empty.
66842
66843         * modules/inttypes (Files): Add m4/inttypes-h.m4.
66844
66845 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
66846
66847         * m4/inttypes.m4 (gl_INTTYPES_H): Move ABSOLUTE_INTTYPES_H code here...
66848         * m4/stdint.m4 (gl_STDINT_H): ... from here.  This undoes the most
66849         recent change to stdint.m4, since we're now addressing the problem in a
66850         different way.
66851
66852 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
66853
66854         * m4/fcntl_h.m4: New file.
66855
66856 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
66857
66858         * lib/fcntl_.h: New file.
66859         * lib/chdir-safer.c (O_DIRECTORY, O_NOFOLLOW): Remove, now that we have
66860         the fcntl module.
66861         * lib/dirchownmod.c: Likewise.
66862         * lib/fts.c: Likewise.
66863
66864         * lib/inttypes_.h [defined _GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H]:
66865         Include @ABSOLUTE_INTTYPES_H@ if available, but do nothing else.
66866         * lib/stdint_.h (_GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H): Define
66867         just before including <inttypes.h>, to avoid circular inclusion.
66868
66869 2006-08-28  Jim Meyering  <jim@meyering.net>
66870
66871         * doc/visibility.texi: Actually read and correct the grammar of the
66872         sentence affected by yesterday's change.
66873
66874 2006-08-28  Eric Blake  <ebb9@byu.net>
66875
66876         * modules/inttypes (Makefile.am): Fix sed error when inttypes.h
66877         needs wrapper.
66878
66879 2006-08-28  Eric Blake  <ebb9@byu.net>
66880
66881         * m4/inttypes.m4 (gl_INTTYPES_H): Fix missing #endif.
66882
66883 2006-08-28  Eric Blake  <ebb9@byu.net>
66884
66885         * m4/codeset.m4 (AM_LANGINFO_CODESET): Avoid compiler warning.
66886
66887 2006-08-28  Bruno Haible  <bruno@clisp.org>
66888
66889         * modules/c-strstr: New file, from GNU gettext.
66890         * MODULES.html.sh (String handling): Add c-strstr.
66891
66892 2006-08-28  Bruno Haible  <bruno@clisp.org>
66893
66894         * m4/inttypes.m4 (gl_INTTYPES_H): Don't test for the existence of SCNX*
66895         macros.
66896         Reported by Eric Blake.
66897
66898 2006-08-28  Bruno Haible  <bruno@clisp.org>
66899
66900         * lib/vasnprintf.c (EOVERFLOW): Remove definition.
66901         (VASNPRINTF): Return a string of length > INT_MAX without failing.
66902         * lib/vasprintf.c: Include errno.h, limits.h.
66903         (EOVERFLOW): New fallback definition.
66904         (vasprintf): Test here whether the string length is > INT_MAX.
66905         * lib/vsnprintf.c: Include errno.h, limits.h.
66906         (EOVERFLOW): New fallback definition.
66907         (vsnprintf): Fix bug when generated string was too long for the buffer.
66908         Test here whether the string length is > INT_MAX.
66909
66910 2006-08-28  Bruno Haible  <bruno@clisp.org>
66911
66912         * lib/inttypes_.h (SCNX*): Remove definitions.
66913         Reported by Eric Blake.
66914
66915 2006-08-28  Bruno Haible  <bruno@clisp.org>
66916
66917         * lib/c-strstr.h: New file, from GNU gettext.
66918         * lib/c-strstr.c: New file, from GNU gettext.
66919
66920 2006-08-28  Bruno Haible  <bruno@clisp.org>
66921
66922         * gnulib-tool: Reorder some statements.
66923
66924 2006-08-28  Bruno Haible  <bruno@clisp.org>
66925
66926         * gnulib-tool: New option --makefile-name.
66927         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Use
66928         $makefile_name.
66929         (func_import): Write $makefile_name to the cache file, and read it from
66930         there unless explicitly specified. Use $makefile_name as file name
66931         instead of Makefile.am. Adjust the recommendations accordingly.
66932
66933 2006-08-28  Bruno Haible  <bruno@clisp.org>
66934
66935         * gnulib-tool (func_verify_module): Check against misapplying patch.
66936
66937 2006-08-28  Bruno Haible  <bruno@clisp.org>
66938
66939         * gnulib-tool (func_relativize, func_relconcat): New functions.
66940         Give an error if --local-dir is given with --update.
66941         Remove trailing slashes from $local_gnulib_dir.
66942         (func_import): Store the relativized $local_gnulib_dir in
66943         gnulib-cache.m4, and read it from there if not specified explicitly.
66944
66945 2006-08-28  Bruno Haible  <bruno@clisp.org>
66946
66947         * gnulib-tool (func_get_tests_module): Don't assume that $gnulib_dir
66948         is the current directory. Respect also $local_gnulib_dir.
66949
66950 2006-08-28  Bruno Haible  <bruno@clisp.org>
66951             Simon Josefsson  <jas@extundo.com>
66952
66953         BeOS portability.
66954         * lib/getaddrinfo.c (PF_INET, PF_UNSPEC): New macros.
66955
66956 2006-08-27  Jim Meyering  <jim@meyering.net>
66957
66958         * doc/visibility.texi: Remove duplicate word: "pointer".
66959
66960 2006-08-26  Bruno Haible  <bruno@clisp.org>
66961
66962         * modules/inttypes (Files): Add lib/inttypes_.h, remove lib/inttypes.h.
66963         Add m4/inttypes.m4, remove m4/_inttypes_h.m4 and m4/include_next.m4.
66964         (Makefile.am): Create inttypes.h from inttypes_.h.
66965         * modules/stdint (Makefile.am): Substitute also ABSOLUTE_INTTYPES_H.
66966
66967         * modules/imaxabs: New file.
66968
66969         * modules/imaxdiv: New file.
66970
66971 2006-08-26  Bruno Haible  <bruno@clisp.org>
66972
66973         * m4/inttypes.m4: New file.
66974         * m4/_inttypes_h.m4: Remove file.
66975         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Also AC_SUBST
66976         PRI_MACROS_BROKEN.
66977         * m4/stdint.m4 (gl_STDINT_H): Define also ABSOLUTE_INTTYPES_H.
66978
66979         * m4/imaxabs.m4: New file.
66980
66981         * m4/imaxdiv.m4: New file.
66982
66983 2006-08-26  Bruno Haible  <bruno@clisp.org>
66984
66985         * lib/inttypes_.h: New file.
66986         * lib/inttypes.h: Remove file.
66987         * lib/stdint_.h: Include <inttypes.h> through its absolute filename.
66988
66989         * lib/imaxabs.c: New file.
66990
66991         * lib/imaxdiv.c: New file.
66992
66993 2006-08-25  Paul Eggert  <eggert@cs.ucla.edu>
66994
66995         New config-h module, so that "make" output needn't be cluttered
66996         by -DHAVE_CONFIG_H.
66997         * MODULES.html.sh (Support for building libraries and executables):
66998         Add config-h.
66999         * modules/config-h: New file.
67000         * gnulib-tool (nl, sed_transform_lib_file): New vars.
67001         (func_import): Turn "#ifdef HAVE_CONFIG_H" to "#if 1" if
67002         the config-h module is used.
67003
67004         New configmake module, so that "make" output needn't be cluttered
67005         by fluff like '-DLIBDIR=\"/usr/local/lib\"'.
67006         * MODULES.html.sh (Support for building libraries and executables):
67007         Add configmake.
67008         * modules/configmake: New file.
67009
67010 2006-08-25  Paul Eggert  <eggert@cs.ucla.edu>
67011
67012         * m4/config-h.m4: New file.
67013
67014 2006-08-24  Paul Eggert  <eggert@cs.ucla.edu>
67015
67016         * config/srclist.txt: Add elisp-comp.
67017
67018 2006-08-24  Paul Eggert  <eggert@cs.ucla.edu>
67019
67020         * MODULES.html.sh (Support for building libraries and executables):
67021         Add elisp-comp.
67022         * build-aux/elisp-comp: New file.
67023         * modules/elisp-comp: New file.
67024
67025 2006-08-24  Bruno Haible  <bruno@clisp.org>
67026
67027         * gnulib-tool (func_create_testdir): Use non-default values of
67028         sourcebase and m4base.
67029
67030 2006-08-24  Bruno Haible  <bruno@clisp.org>
67031
67032         * MODULES.html.sh (Compatibility checks for POSIX:2001 functions: Fix
67033         HTML structure.
67034
67035 2006-08-23  Paul Eggert  <eggert@cs.ucla.edu>
67036
67037         * modules/openat (Depends-on): Add lchown.
67038
67039 2006-08-23  Bruno Haible  <bruno@clisp.org>
67040
67041         * gnulib-tool (func_import, func_create_testdir): Emit an invocation
67042         of gl_LOCK_EARLY instead of gl_LOCK.
67043
67044 2006-08-23  Bruno Haible  <bruno@clisp.org>
67045
67046         * m4/lock.m4 (gl_LOCK_BODY): Change the default value of gl_use_threads
67047         on OSF/1 to no.
67048         Reported by Stephen Cartwright <sgcartwr@ucalgary.ca>.
67049
67050 2006-08-23  Bruno Haible  <bruno@clisp.org>
67051
67052         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't consider BeOS statvfs
67053         as unusable.
67054
67055         * m4/lock.m4 (gl_LOCK_EARLY): Renamed from gl_LOCK.
67056         (gl_LOCK_BODY): Remove gl_PREREQ_LOCK invocation.
67057         (gl_LOCK): New macro.
67058
67059 2006-08-22  Simon Josefsson  <jas@extundo.com>
67060
67061         * modules/gc-md5 (Makefile.am): Need to add md5.h, after changes
67062         to md5 module.
67063
67064 2006-08-22  Simon Josefsson  <jas@extundo.com>
67065
67066         * MODULES.html.sh: Add "Support for maintaining and release
67067         projects".
67068
67069         * build-aux/gnupload: New file, from coreutils.
67070
67071 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
67072
67073         Avoid the need for AC_LIBSOURCES in m4 macros.
67074         * modules/arcfour (EXTRA_DIST): Add arcfour.h.
67075         * modules/arctwo (EXTRA_DIST): Add arctwo.h.
67076         * modules/check-version (EXTRA_DIST): Add check-version.h.
67077         * modules/crc (EXTRA_DIST): Add crc.h.
67078         * modules/des (EXTRA_DIST): Add des.h.
67079         * modules/gc (EXTRA_DIST): Add gc.h.
67080         * modules/getdelim (EXTRA_DIST): Add getdelim.h.
67081         * modules/getline (EXTRA_DIST): Add getline.h.
67082         * modules/getlogin_r (EXTRA_DIST): Add getlogin_r.h.
67083         * modules/hmac-md5 (EXTRA_DIST): Add hmac.h.
67084         * modules/hmac-sha1 (EXTRA_DIST): Add hmac.h.
67085         * modules/md2 (EXTRA_DIST): Add md2.h.
67086         * modules/md4 (EXTRA_DIST): Add md4.h.
67087         * modules/pagealign_alloc (EXTRA_DIST): Add pagealign_alloc.h.
67088         * modules/read-file (EXTRA_DIST): Add read-file.h.
67089         * modules/readline (EXTRA_DIST): Add readline.h.
67090         * modules/rijndael (EXTRA_DIST): Add rijndael-alg-fst.h,
67091         rijndael-api-fst.h.
67092
67093 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
67094
67095         * m4/rijndael.m4 (gl_ARCFOUR):
67096         * m4/arctwo.m4 (gl_ARCTWO):
67097         * m4/check-version.m4 (gl_CHECK_VERSION):
67098         * m4/crc.m4 (gl_CRC):
67099         * m4/des.m4 (gl_DES):
67100         * m4/gc-pbkdf2-sha1.m4 (gl_GC_PBKDF2_SHA1):
67101         * m4/gc.m4 (gl_GC):
67102         * m4/getdelim.m4 (gl_FUNC_GETDELIM):
67103         * m4/getline.m4 (gl_FUNC_GETLINE):
67104         * m4/getlogin_r.m4 (gl_GETLOGIN_R_SUBSTITUTE):
67105         * m4/hmac-md5.m4 (gl_HMAC_MD5):
67106         * m4/hmac-sha1.m4 (gl_HMAC_SHA1):
67107         * m4/md2.m4 (gl_MD2):
67108         * m4/md4.m4 (gl_MD4):
67109         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC):
67110         * m4/read-file.m4 (gl_FUNC_READ_FILE):
67111         * m4/readline.m4 (gl_FUNC_READLINE):
67112         * m4/rijndael.m4 (gl_RIJNDAEL):
67113         Don't use AC_LIBSOURCES; instead, rely on the files in ../modules/
67114         to get the necessary .h files and whatnot.
67115
67116 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
67117
67118         * config/srclist.txt: Remove gnupload, since coreutils now syncs from
67119         gnulib rather than the other way around.
67120         * config/srclistvars.sh (COREUTILS): Remove.
67121
67122 2006-08-22  Jim Meyering  <jim@meyering.net>
67123
67124         * modules/mkdir-p (Makefile.am): Fix typo: s/lib+SOURCES/lib_SOURCES/.
67125
67126         * modules/getpass-gnu (Makefile.am): Add getpass.h to EXTRA_DIST.
67127
67128 2006-08-22  Eric Blake  <ebb9@byu.net>
67129
67130         * modules/regexprops-generic: New file.
67131         * MODULES.html.sh (Support for building documentation): List it.
67132
67133 2006-08-22  Eric Blake  <ebb9@byu.net>
67134
67135         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Avoid compiler warning.
67136         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
67137         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Likewise.
67138         * m4/intmax_t.m4 (gt_AC_TYPE_INTMAX_T): Likewise.
67139
67140 2006-08-22  Bruno Haible  <bruno@clisp.org>
67141
67142         * gnulib-tool (func_emit_lib_Makefile_am): Don't treat lib_LIBRARIES
67143         and lib_LTLIBRARIES like the other lib_* variables.
67144
67145 2006-08-22  Bruno Haible  <bruno@clisp.org>
67146
67147         * build-aux/x-to-1.in: New file, from GNU gettext.
67148
67149 2006-08-22  Bruno Haible  <bruno@clisp.org>
67150
67151         * m4/readutmp.m4 (gl_READUTMP): Compile readutmp.c only if <utmp.h> or
67152         <utmpx.h> exists.
67153
67154 2006-08-22  Bruno Haible  <bruno@clisp.org>
67155
67156         * lib/readutmp.h: Skip most definitions if neither <utmp.h> nor
67157         <utmpx.h> exists.
67158
67159 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
67160
67161         BeOS portability.
67162         * lib/dirchownmod.c (dirchownmod): Don't use fchmod if it doesn't
67163         exist.
67164         Problem reported by Bruno Haible.
67165
67166 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
67167
67168         Avoid the need for AC_LIBSOURCES in m4 macros.
67169         * modules/acl (EXTRA_DIST): Add acl.h.
67170         * modules/argmatch (Files): Add m4/argmatch.m4.
67171         (configure.ac): Add gl_ARGMATCH.
67172         (EXTRA_DIST): Renamed from lib_SOURCES, for
67173         consistency with the other modules.  Remove argmatch.c.
67174         * modules/backupfile (EXTRA_DIST): Add backupfile.h.
67175         * modules/c-strtod (EXTRA_DIST): Add c-strtod.h.
67176         * modules/c-strtold (EXTRA_DIST): Add c-strtod.c, c-strtod.h.
67177         * modules/canonhost (EXTRA_DIST): Add c-canonhost.h.
67178         * modules/canonicalize (EXTRA_DIST): Add canonicalize.h.
67179         * modules/chdir-long (EXTRA_DIST): Add chdir-long.h.
67180         * modules/chdir-safer (EXTRA_DIST): Add chdir-safer.h.
67181         * modules/cloexec (EXTRA_DIST): Add cloexec.h.
67182         * modules/close-stream (EXTRA_DIST): Add close-stream.h.
67183         * modules/closeout (EXTRA_DIST): Add closeout.h.
67184         * modules/cycle-check (EXTRA_DIST): Add cycle-check.h.
67185         * modules/dev-ino (EXTRA_DIST): Add dev-ino.h.
67186         * modules/dirfd (EXTRA_DIST): Add dirfd.h.
67187         * modules/dirname (EXTRA_DIST): Renamed from lib_SOURCES.  Add
67188         dirname.h; remove basename.c and stripslash.c.
67189         * modules/exclude (EXTRA_DIST): Add exclude.h.
67190         * modules/exitfail (EXTRA_DIST): Add exitfail.h.
67191         * modules/fcntl-safer (EXTRA_DIST): Add fcntl-safer.h fcntl--.h.
67192         * modules/file-type (EXTRA_DIST): Add file-type.h.
67193         * modules/filemode (EXTRA_DIST): Add filemode.h.
67194         * modules/filenamecat (EXTRA_DIST): Add filenamecat.h.
67195         * modules/fopen-safer (EXTRA_DIST): Add stdio-safer.h stdio--.h.
67196         * modules/fpending (EXTRA_DIST): Add __fpending.h.
67197         * modules/fprintftime (EXTRA_DIST): Add fprintftime.h.
67198         * modules/fsusage (EXTRA_DIST): Add fsusage.h.
67199         * modules/fts (EXTRA_DIST): Add fts_.h fts-cycle.c.
67200         * modules/getcwd (EXTRA_DIST): Add getcwd.h.
67201         * modules/getdate (EXTRA_DIST): Add getdate.c.
67202         * modules/gethrxtime (EXTRA_DIST): Add gethrxtime.h xtime.h.
67203         * modules/getpagesize (EXTRA_DIST): Add getpagesize.h.
67204         * modules/getpass (EXTRA_DIST): Add getpass.h.
67205         * modules/glob (EXTRA_DIST): Add glob_.h glob-libc.h.
67206         * modules/group-member (EXTRA_DIST): Add group-member.h.
67207         * modules/hard-locale (EXTRA_DIST): Add hard-locale.h.
67208         * modules/hash (EXTRA_DIST): Add hash.h.
67209         * modules/human (EXTRA_DIST): Add human.h.
67210         * modules/inttypes (EXTRA_DIST): Add inttypes.h.
67211         * modules/lchmod (EXTRA_DIST): Add lchmod.h.
67212         * modules/lchown (EXTRA_DIST): Add lchown.h.
67213         * modules/long-options (EXTRA_DIST): Add long-options.h.
67214         * modules/lstat (EXTRA_DIST): Add lstat.h.
67215         * modules/md5 (EXTRA_DIST): Add memcasecmp.h.
67216         * modules/memcoll (EXTRA_DIST): Add memcoll.h.
67217         * modules/mempcpy (EXTRA_DIST): Add mempcpy.h.
67218         * modules/memrchr (EXTRA_DIST): Add memrchr.h.
67219         * modules/memxor (EXTRA_DIST): Add memxor.h.
67220         * modules/mkancesdirs (EXTRA_DIST): Add mkancesdirs.h.
67221         * modules/mkdir-p (EXTRA_DIST): Add modechange.h.
67222         * modules/mountlist (EXTRA_DIST): Add mountlist.h.
67223         * modules/openat (EXTRA_DIST): Add at-func.c openat.h openat-priv.h.
67224         * modules/pathmax (EXTRA_DIST): Add pathmax.h.
67225         * modules/physmem (EXTRA_DIST): Add physmem.h.
67226         * modules/posixtm (EXTRA_DIST): Add posixtm.h.
67227         * modules/posixver (EXTRA_DIST): Add posixver.h.
67228         * modules/quote (EXTRA_DIST): Add quote.h.
67229         * modules/quotearg (EXTRA_DIST): Add quotearg.h.
67230         * modules/readtokens (EXTRA_DIST): Add readtokens.h.
67231         * modules/readutmp (EXTRA_DIST): Add readutmp.h.
67232         * modules/regex (EXTRA_DIST): Add regcomp.c regex.h regex_internal.c
67233         regex_internal.h regexec.c.
67234         * modules/safe-read (EXTRA_DIST): Add safe-read.h.
67235         * modules/safe-write (EXTRA_DIST): Add safe-write.h.
67236         * modules/same (EXTRA_DIST): Add same.h.
67237         * modules/same-inode (EXTRA_DIST): Add same-inode.h.
67238         * modules/save-cwd (EXTRA_DIST): Add save-cwd.h.
67239         * modules/savedir (EXTRA_DIST): Add savedir.h.
67240         * modules/sha1 (EXTRA_DIST): Add sha1.h.
67241         * modules/sig2str (EXTRA_DIST): Add sig2str.h.
67242         * modules/stat-macros (EXTRA_DIST): Add stat-macros.h.
67243         * modules/stat-time (EXTRA_DIST): Add stat-time.h.
67244         * modules/stdlib-safer (EXTRA_DIST): Add stdlib-safer.h stdlib--.h.
67245         * modules/strdup (EXTRA_DIST): Add strdup.h.
67246         * modules/strftime (EXTRA_DIST): Add strftime.h.
67247         * modules/strndup (EXTRA_DIST): Add strndup.h.
67248         * modules/strnlen (EXTRA_DIST): Add strnlen.h.
67249         * modules/strverscmp (EXTRA_DIST): Add strverscmp.h.
67250         * modules/time_r (EXTRA_DIST): Add time_r.h.
67251         * modules/timespec (EXTRA_DIST): Add timespec.h.
67252         * modules/tmpfile-safer (EXTRA_DIST): Add stdio-safer.h stdio--.h.
67253         * modules/unistd-safer (EXTRA_DIST): Add unistd-safer.h unistd--.h.
67254         * modules/unlinkdir (EXTRA_DIST): Add unlinkdir.h.
67255         * modules/unlocked-io (EXTRA_DIST): Add unlocked-io.h.
67256         * modules/userspec (EXTRA_DIST): Add userspec.h.
67257         * modules/utimecmp (EXTRA_DIST): Add utimecmp.h.
67258         * modules/utimens (EXTRA_DIST): Add utimens.h.
67259         * modules/xalloc (EXTRA_DIST): Add xalloc.h.
67260         * modules/xgetcwd (EXTRA_DIST): Add xgetcwd.h.
67261         * modules/xnanosleep (EXTRA_DIST): Add xnanosleep.h.
67262         * modules/xreadlink (EXTRA_DIST): Add xreadlink.h.
67263         * modules/xstrtod (EXTRA_DIST): Add xstrtod.h.
67264         * modules/xstrtol (EXTRA_DIST): Add xstrtol.h.
67265         * modules/xstrtold (EXTRA_DIST): Add xstrtod.c xstrtod.h.
67266         * modules/yesno (EXTRA_DIST): Add yesno.h.
67267
67268 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
67269
67270         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Check for fchmod.
67271
67272         * m4/argmatch.m4: New file, from coreutils with AC_LIBSOURCES removed.
67273         * m4/dev-ino.m4, same-inode.m4: Remove.
67274
67275         * m4/_inttypes_h.m4 (gl_INTTYPES_H):
67276         * m4/acl.m4 (AC_FUNC_ACL):
67277         * m4/backupfile.m4 (gl_BACKUPFILE):
67278         * m4/c-strtod.m4 (gl_C99_STRTOLD):
67279         * m4/canon-host.m4 (gl_CANON_HOST):
67280         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME):
67281         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG):
67282         * m4/chdir-safer.m4 (gl_CHDIR_SAFER):
67283         * m4/cloexec.m4 (gl_CLOEXEC):
67284         * m4/close-stream.m4 (gl_CLOSE_STREAM):
67285         * m4/closeout.m4 (gl_CLOSEOUT):
67286         * m4/dirfd.m4 (gl_FUNC_DIRFD):
67287         * m4/dirname.m4 (gl_DIRNAME):
67288         * m4/exclude.m4 (gl_EXCLUDE):
67289         * m4/exitfail.m4 (gl_EXITFAIL):
67290         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER):
67291         * m4/file-type.m4 (gl_FILE_TYPE):
67292         * m4/filemode.m4 (gl_FILEMODE):
67293         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT):
67294         * m4/fpending.m4 (gl_FUNC_FPENDING):
67295         * m4/fprintftime.m4 (gl_FPRINTFTIME):
67296         * m4/fts.m4 (gl_FUNC_FTS):
67297         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL):
67298         * m4/getdate.m4 (gl_GETDATE):
67299         * m4/gethrxtime.m4 (gl_GETHRXTIME):
67300         * m4/getpagesize.m4 (gl_GETPAGESIZE):
67301         * m4/getpass.m4 (gl_FUNC_GETPASS):
67302         * m4/gettime.m4 (gl_GETTIME):
67303         * m4/getugroups.m4 (gl_GETUGROUPS):
67304         * m4/glob.m4 (gl_GLOB_SUBSTITUTE):
67305         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER):
67306         * m4/hard-locale.m4 (gl_HARD_LOCALE):
67307         * m4/hash.m4 (gl_HASH):
67308         * m4/idcache.m4 (gl_IDCACHE):
67309         * m4/lchmod.m4 (gl_FUNC_LCHMOD):
67310         * m4/lchown.m4 (gl_FUNC_LCHOWN):
67311         * m4/long-options.m4 (gl_LONG_OPTIONS):
67312         * m4/lstat.m4 (gl_FUNC_LSTAT):
67313         * m4/md5.m4 (gl_MD5):
67314         * m4/memcasecmp.m4 (gl_MEMCASECMP):
67315         * m4/memcoll.m4 (gl_MEMCOLL):
67316         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY):
67317         * m4/memrchr.m4 (gl_FUNC_MEMRCHR):
67318         * m4/memxor.m4 (gl_MEMXOR):
67319         * m4/mkancesdirs.m4 (gl_MKANCESDIRS):
67320         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS):
67321         * m4/modechange.m4 (gl_MODECHANGE):
67322         * m4/mountlist.m4 (gl_MOUNTLIST):
67323         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
67324         * m4/openat.m4 (gl_FUNC_OPENAT):
67325         * m4/pathmax.m4 (gl_PATHMAX):
67326         * m4/physmem.m4 (gl_PHYSMEM):
67327         * m4/posixtm.m4 (gl_POSIXTM):
67328         * m4/posixver.m4 (gl_POSIXVER):
67329         * m4/quote.m4 (gl_QUOTE):
67330         * m4/quotearg.m4 (gl_QUOTEARG):
67331         * m4/readtokens.m4 (gl_READTOKENS):
67332         * m4/readutmp.m4 (gl_READUTMP):
67333         * m4/regex.m4 (gl_REGEX):
67334         * m4/safe-read.m4 (gl_SAFE_READ):
67335         * m4/safe-write.m4 (gl_SAFE_WRITE):
67336         * m4/same.m4 (gl_SAME):
67337         * m4/save-cwd.m4 (gl_SAVE_CWD):
67338         * m4/savedir.m4 (gl_SAVEDIR):
67339         * m4/settime.m4 (gl_SETTIME):
67340         * m4/sha1.m4 (gl_SHA1):
67341         * m4/sig2str.m4 (gl_FUNC_SIG2STR):
67342         * m4/stat-macros.m4 (gl_STAT_MACROS):
67343         * m4/stat-time.m4 (gl_STAT_TIME):
67344         * m4/stdio-safer.m4 (gl_FOPEN_SAFER):
67345         * m4/stdlib-safer.m4 (gl_STDLIB_SAFER):
67346         * m4/strdup.m4 (gl_FUNC_STRDUP):
67347         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME):
67348         * m4/strndup.m4 (gl_FUNC_STRNDUP):
67349         * m4/strnlen.m4 (gl_FUNC_STRNLEN):
67350         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP):
67351         * m4/time_r.m4 (gl_TIME_R):
67352         * m4/timespec.m4 (gl_TIMESPEC):
67353         * m4/unistd-safer.m4 (gl_UNISTD_SAFER):
67354         * m4/unlinkdir.m4 (gl_UNLINKDIR):
67355         * m4/unlocked-io.m4 (gl_FUNC_GLIBC_UNLOCKED_IO):
67356         * m4/userspec.m4 (gl_USERSPEC):
67357         * m4/utimecmp.m4 (gl_UTIMECMP):
67358         * m4/utimens.m4 (gl_UTIMENS):
67359         * m4/xalloc.m4 (gl_XALLOC):
67360         * m4/xgetcwd.m4 (gl_XGETCWD):
67361         * m4/xnanosleep.m4 (gl_XNANOSLEEP):
67362         * m4/xreadlink.m4 (gl_XREADLINK):
67363         * m4/xstrtod.m4 (gl_XSTRTOD):
67364         * m4/yesno.m4 (gl_YESNO):
67365         Don't use AC_LIBSOURCES; instead, rely on the files in ../modules/
67366         to get the necessary .h files and whatnot.
67367
67368 2006-08-21  Mark D. Baushke  <mdb@gnu.org>
67369             Bruno Haible  <bruno@clisp.org>
67370
67371         * gnulib-tool (func_verify_module): Work around Sun's non-POSIX 1003.2
67372         /bin/sh understanding of '!' conditional negation.
67373
67374 2006-08-21  Jim Meyering  <jim@meyering.net>
67375
67376         * modules/openat (Depends-on): Really alphabetize.
67377
67378         * modules/acl (Depends-on): Add error and quote.
67379
67380         * check-module (find_included_lib_files): Add at-func.c to the
67381         ok-to-include-more-than-once white list.
67382
67383         * modules/openat (Depends-on): Add lstat.  Alphabetize.
67384
67385 2006-08-21  Bruno Haible  <bruno@clisp.org>
67386
67387         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
67388         Emit a pkgdata_DATA variable only if some snippets add contents to it.
67389         Reported by Martin Lambers <marlam@marlam.de>.
67390
67391 2006-08-21  Bruno Haible  <bruno@clisp.org>
67392
67393         * gnulib-tool (func_emit_lib_Makefile_am): If the snippets already
67394         specify an installation location, don't emit a noinst_LIBRARIES or
67395         noinst_LTLIBRARIES assignment.
67396
67397 2006-08-21  Bruno Haible  <bruno@clisp.org>
67398
67399         BeOS portability.
67400         * modules/mbchar (Include): Don't test HAVE_WCTYPE_H any more, since
67401         BeOS has mbrtowc() but no <wctype.h>.
67402
67403 2006-08-21  Bruno Haible  <bruno@clisp.org>
67404
67405         BeOS portability.
67406         * m4/mbchar.m4 (gl_MBCHAR): Compile mbchar.c also if <wctype.h> doesn't
67407         exist.
67408
67409 2006-08-21  Bruno Haible  <bruno@clisp.org>
67410
67411         BeOS portability.
67412         * lib/mbchar.h: Include <wctype.h> only if it exists.
67413
67414 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
67415
67416         Remove files that are no longer needed by their respective modules.
67417         * m4/obstack.m4: Remove.
67418         * m4/strerror_r.m4: Remove.
67419         * m4/uint32_t.m4: Remove.
67420         * m4/uintptr_t.m4: Remove.
67421         * m4/ullong_max.m4: Remove.
67422         * m4/xstrtoimax.m4: Remove.
67423         * m4/xstrtoumax.m4: Remove.
67424
67425         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Do not require
67426         gl_AC_TYPE_UINTMAX_T, gl_STRUCT_DEV_INO, or gl_SAME_INODE, since gnulib
67427         dependencies now capture this.
67428
67429         * m4/cycle-check.m4 (gl_CYCLE_CHECK):
67430         Do not use AC_LIBSOURCES, since gnulib modules now do this.
67431         * m4/fsusage.m4 (gl_FSUSAGE): Likewise.
67432         * m4/human.m4 (gl_HUMAN): Likewise.
67433         * m4/inttostr.m4 (gl_INTTOSTR): Likewise.
67434         * m4/xstrtol.m4 (gl_XSTRTOL): Likewise.
67435
67436         * m4/filemode.m4 (gl_FILEMODE): Require AC_STRUCT_ST_DM_MODE.
67437
67438         * m4/filemode.m4 (gl_PREREQ_FSUSAGE_EXTRA): Do not require
67439         gl_AC_TYPE_INTMAX_T or gl_AC_TYPE_UINTMAX_T, since we now require
67440         stdint.
67441         * m4/human.m4 (gl_HUMAN): Likewise.
67442         * m4/inttostr.m4 (gl_PREREQ_INTTOSTR): Likewise.
67443         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Likewise.
67444         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Likewise.
67445         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Likewise.
67446         * m4/xstrtol (gl_XSTRTOL): Likewise.
67447
67448         * m4/gethrxtime.m4 (gl_XTIME): gl_AC_TYPE_LONG_LONG ->
67449         AC_TYPE_LONG_LONG_INT.
67450         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Likewise.
67451         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Likewise.
67452         * m4/strtoull.m4 (gl_FUNC_STRTOULL): Likewise, for unsigned long.
67453         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Likewise.
67454
67455         * m4/human.m4 (gl_HUMAN): Do not require AM_STDBOOL_H since we depend
67456         on stdbool.
67457
67458         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL_H, gl_PREREQ_XSTRTOL): Remove.
67459         (gl_PREREQ_XSTRTOUL): Remove.
67460
67461         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Check for hasmntopt.
67462
67463         * m4/posixver.m4: Fix comment since head -1 now works even in POSIX
67464         mode.
67465
67466 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
67467
67468         Add and change modules to make it easier for coreutils to use
67469         gnulib-tool.
67470         * modules/backupfile (Files): Remove m4/d-ino.m4.
67471         (Depends-on): Add d-ino.
67472         * modules/cycle-check (Depends-on): Add stdint.
67473         (lib_SOURCES): Add cycle-check.h.
67474         * modules/d-ino: New module.
67475         * modules/d-type: New module.
67476         * modules/error (Files): Remove m4/strerror_r.m4.
67477         * modules/filemode (Files): Add m4/st_dm_mode.m4.
67478         * modules/fsuage (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
67479         m4/inttypes_h.m4, m4/uintmax_t.m4.
67480         (Depends-on): Add stdint.
67481         (lib_SOURCES): Add fsusage.h.
67482         * modules/getcwd (Files): Remove d-ino.m4.
67483         (Depends-on): Add d-ino.
67484         * modules/getndelim2 (Depends-on): Add stdint.
67485         * modules/glob (Files): Remove m4/d-type.m4.
67486         (Depends-on): Add d-type.
67487         * modules/host-os: New module.
67488         * modules/human (Files):  Remove m4/ulonglong.m4, m4/stdint_h.m4,
67489         m4/inttypes_h.m4, m4/uintmax_t.m4.
67490         * Depends-on: Add stdint.
67491         (lib_SOURCES): Add human.h.
67492         * modules/inttostr (Files): Remove m4/intmax_t.m4,
67493         m4/inttostr.m4, m4/inttypes_h.m4, m4/longlong.m4, m4/stdint_h.m4,
67494         m4/uintmax_t.m4, m4/ulonglong.m4.
67495         (Depends-on): Add stdint.
67496         (EXTRA_DIST): Add inttostr.h.
67497         * modules/lchmod: New module.
67498         * modules/link-follow: New module.
67499         * modules/mkdir-p (Files): Remove lib/lchmod.h, m4/lchmod.m4.
67500         (Depends-on): Add lchmod.
67501         * modules/mkstemp (Files): Remove m4/ulonglong.m4,
67502         m4/stdint_h.m4, m4/inttypes_h.m4, m4/uintmax_t.m4.
67503         (Depends-on): Add stdint.
67504         * modules/obstack (Files): Remove m4/inttypes_h.m4, m4/obstack.m4,
67505         m4/stdint_h.m4, m4/uintmax_t.m4, m4/ulonglong.m4.
67506         (Depends-on): Add stdint.
67507         (configure.ac): Change gl_OBSTACK to AC_FUNC_OBSTACK.
67508         * modules/perl: New module.
67509         * modules/regex (Depends-on): Add stdint.
67510         * modules/rmdir-errno: New module.
67511         * modules/strtoimax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4,
67512         m4/intmax_t.m4.
67513         (Depends-on): Add stdint.
67514         * modules/strtoumax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4,
67515         m4/uintmax_t.m4.
67516         (Depends-on): Add stdint.
67517         * modules/unlink-busy: New module.
67518         * modules/utimecmp (Depends-on): Add stdint.
67519         * modules/uptime: New module.
67520         * modules/winsz-ioctl: New module.
67521         * modules/winsz-termios: New module.
67522         * modules/xnanosleep (Depends-on): Add nanosleep.
67523         * modules/ullong_max: Remove.
67524         * modules/xstrtoimax (Files): Remove m4/xstrtoimax.m4.
67525         (configure.ac): Remove gl_XSTRTOIMAX; no action needed now.
67526         * modules/xstrtol (Files): Remove m4/ulonglong.m4, m4/longlong.m4,
67527         m4/stdint_h.m4, m4/inttypes_h.m4, m4/uintmax_t.m4, m4/intmax_t.m4.
67528         (Depends-on): Add inttypes.
67529         (lib_SOURCES): Add xstrtol.h.
67530         * modules/xstrtoumax (Files): Remove m4/xstrtoumax.m4.
67531         (configure.ac): Remove gl_XSTRTOUMAX; no action needed now.
67532         * MODULES.html.sh: Move 'assert' into the assert section.
67533         Move 'dummy' into the linking section.
67534         Remove ullong_max.
67535         Add section for compatibility checks for POSIX:2001 functions,
67536         and put d-ino, d-type, link-follow, rmdir-errno, unlink-busy,
67537         winsz-ioctl, and winsz-termios into it.
67538         Add lchmod.
67539         Add top-level Misc section and put host-os, perl, and uptime
67540         into it.
67541
67542 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
67543
67544         * lib/cycle-check.h: Include <stdint.h> unconditionally, since we
67545         now assume the stdint module.  Do not include inttypes.h.
67546         * lib/fsusage.h: Likewise.
67547         * lib/getndelim2.c: Likewise.
67548         * lib/human.h: Likewise.
67549         * lib/inttostr.h: Likewise.
67550         * lib/obstack.c: Likewise.
67551         * lib/regex_internal.h: Likewise.
67552         * lib/tempname.c: Likewise.
67553         * lib/utimecmp.c: Likewise.
67554         * lib/xstrtol.h: Likewise.
67555
67556         * lib/stat_.h: Fix typo: HAVE_FUNC_LSTAT -> HAVE_LSTAT.
67557
67558         * lib/strtoimax.c: Adjust to macro name changes in Autoconf,
67559         e.g., HAVE_LONG_LONG -> HAVE_LONG_LONG_INT.
67560         * lib/xtime.h: Likewise.
67561
67562 2006-08-19  Paul Eggert  <eggert@cs.ucla.edu>
67563
67564         * modules/openat (Files): Add lib/fchmodat.c.
67565         Fixes problem reported by Jay Youngman.
67566
67567 2006-08-19  Paul Eggert  <eggert@cs.ucla.edu>
67568
67569         * lib/fchmodat.c: New file, from coreutils.  This was inadvertently
67570         omitted in the 2006-08-17 update.  Problem reported by Jay Youngman.
67571
67572 2006-08-18  Paul Eggert  <eggert@cs.ucla.edu>
67573             Bruno Haible  <bruno@clisp.org>
67574
67575         * m4/bison-i18n.m4 (BISON_I18N): Also handle the case where yacc exists
67576         and is a script that invokes bison. Tighten the code. Add comments.
67577
67578 2006-08-18  Jim Meyering  <jim@meyering.net>
67579
67580         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Also check for
67581         CLOCK_REALTIME, since gethrxtime may revert to using clock_gettime via
67582         gettime.c.  Gabor Z. Papp reported that gethrxtime-using programs
67583         failed to link due to unresolved clock_gettime on a linux-2.4.x system.
67584
67585 2006-08-18  Bruno Haible  <bruno@clisp.org>
67586
67587         * modules/bison-i18n: New file.
67588         * MODULES.html.sh (Internationalization functions): Add it.
67589
67590 2006-08-18  Bruno Haible  <bruno@clisp.org>
67591
67592         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Also check for
67593         sys/statvfs.h. When getmntinfo was found, check its declaration and
67594         set either MOUNTED_GETMNTINFO or MOUNTED_GETMNTINFO2 depending on it.
67595
67596 2006-08-18  Bruno Haible  <bruno@clisp.org>
67597
67598         * m4/bison-i18n.m4: New file, from bison.
67599
67600 2006-08-18  Bruno Haible  <bruno@clisp.org>
67601
67602         * lib/mountlist.c [MOUNTED_GETMNTINFO2]: Include sys/statvfs.h.
67603         (ME_DUMMY): Treat "kernfs" as a dummy.
67604         (read_file_system_list) [MOUNTED_GETMNTINFO2]: Implement.
67605
67606 2006-08-17  Paul Eggert  <eggert@cs.ucla.edu>
67607
67608         Update from coreutils.
67609
67610         2006-08-15  Jim Meyering  <jim@meyering.net>
67611
67612         * m4/openat.m4 (gl_FUNC_OPENAT): Add at-func.c via AC_LIBSOURCES.
67613
67614         2006-01-17  Jim Meyering  <jim@meyering.net>
67615
67616         * m4/fts.m4 (gl_FUNC_FTS_CORE): Depend on gl_FUNC_OPENAT.
67617
67618         2006-01-11  Jim Meyering  <jim@meyering.net>
67619
67620         * m4/openat.m4 (gl_FUNC_OPENAT): Require and compile fchmodat.c.
67621         Check for the lchmod function.
67622
67623 2006-08-17  Paul Eggert  <eggert@cs.ucla.edu>
67624
67625         Update from coreutils.
67626
67627         * lib/__fpending.h: Add copyright notice.
67628         * lib/fprintftime.h: Likewise.
67629         * lib/savedir.c: Use (C) in copyright notice.
67630         * lib/savedir.h: Likewise.
67631
67632         2006-08-15  Jim Meyering  <jim@meyering.net>
67633
67634         * lib/at-func.c: New file, with the logic of all emulated at-functions.
67635         * lib/openat-priv.h: Include <errno.h> and define ENOSYS,
67636         in support of the EXPECTED_ERRNO macro.
67637         * lib/openat.c (fstatat, unlinkat, fchownat): Remove function
67638         definitions.  Instead, define the appropriate symbols and include
67639         "at-func.c".
67640         * lib/mkdirat.c (mkdirat): Likewise.
67641         * lib/fchmodat.c (fchmodat): Likewise.
67642         (ENOSYS): Remove definition.
67643         * lib/openat.c: Don't include <errno.h>, now that "openat-priv.h" does
67644         it.  Don't include "unistd--.h" -- it wasn't ever used.
67645
67646         2006-01-17  Jim Meyering  <jim@meyering.net>
67647
67648         Rewrite fts.c not to change the current working directory,
67649         by using openat, fstatat, fdopendir, etc..
67650
67651         * lib/fts.c [! _LIBC]: Include "openat.h" and "unistd--.h".
67652         (HAVE_OPENAT_SUPPORT): Define.
67653         [_LIBC] (fchdir): Don't undef or define; no longer used.
67654         (FCHDIR): Define in terms of cwd_advance_fd rather than fchdir.
67655         Now, this `function' always succeeds, and consumes its file descriptor
67656         parameter -- so callers must not close such FDs.  Update callers.
67657         (diropen_fd, opendirat, cwd_advance_fd): New functions.
67658         (diropen): Add parameter, SP.  Adjust all callers.
67659         Implement using diropen_fd, rather than open.
67660         (fts_open): Initialize new member, fts_cwd_fd.
67661         Remove fts_rft-setting code.
67662         (fts_close): Close fts_cwd_fd, if necessary.
67663         (__opendir2): Define in terms of opendir or opendirat,
67664         depending on whether the FST_NOCHDIR flag is set.
67665         (fts_build): Since fts_safe_changedir consumes its FD, and since
67666         this code must do `closedir(dirp)', dup the dirfd(dirp) argument,
67667         and close the dup'd file descriptor upon failure.
67668         (fts_stat): Use fstatat(...AT_SYMLINK_NOFOLLOW) in place of lstat.
67669         (fts_safe_changedir): Tweak semantics to reflect that this function
67670         now calls cwd_advance_fd and hence consumes its FD argument.
67671         * lib/fts_.h [struct FTS] (fts_cwd_fd): New member.
67672         [struct FTS] (fts_rft): Remove now-unused member.
67673         [struct FTS] (fts_cycle.state): Improve comment.
67674
67675         * lib/openat.c (openat_needs_fchdir): New function.
67676         * lib/openat.h (openat_needs_fchdir): Declare it.
67677
67678 2006-08-16  Paul Eggert  <eggert@cs.ucla.edu>
67679
67680         * lib/memcoll.c (memcoll): Set errno = 0 in the shortcut case, too.
67681         Problem and fix reported by Pádraig Brady in
67682         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00099.html>.
67683
67684 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
67685
67686         * modules/cycle-check (configure.ac): Add gl_CYCLE_CHECK.
67687
67688 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
67689
67690         * lib/memcoll.c (memcoll): Optimize for the common case where the
67691         arguments are bytewise equal.
67692
67693 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
67694
67695         * doc/regexprops-generic.texi: Add a copyright notice.
67696
67697 2006-08-15  Bruno Haible  <bruno@clisp.org>
67698
67699         * modules/tmpdir (License): Change to LGPL.
67700
67701 2006-08-15  Bruno Haible  <bruno@clisp.org>
67702
67703         * gnulib-tool (func_all_modules, func_verify_module): COPYING is not a
67704         module.
67705
67706 2006-08-14  Simon Josefsson  <jas@extundo.com>
67707
67708         * config/srclist.txt: Add gnupload.
67709
67710 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
67711
67712         Change copyright notice from LGPL 2 to GPL 2, since that's the
67713         standard form used in the gnulib repository.
67714         * tests/test-lock.c: Likewise.
67715         * tests/test-stdint.c: Likewise.
67716         * tests/test-tls.c: Likewise.
67717
67718         * users.txt: Add bison, diffutils, libprelude, prelude-lml,
67719         prelude-manager.  User shorter URLs for GNU projects, without '?'.
67720         Add copyright notice.
67721
67722         * check-module: Add copyright notice.  Output a copyright
67723         notice if "--version" is specified.
67724         * modules/COPYING: New file.
67725         * tests/test-getaddrinfo.c: Add copyright notice.
67726         * tests/test-verify.c: Likewise.
67727
67728 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
67729
67730         Change copyright notice from LGPL 2 to GPL 2, since that's the
67731         standard form used in the gnulib repository.
67732         * lib/lock.c: LGPL -> GPL.
67733         * lib/lock.h: Likewise.
67734         * lib/strnlen1.c: Likewise.
67735         * lib/strnlen1.h: Likewise.
67736         * lib/tls.c: Likewise.
67737         * lib/tls.h: Likewise.
67738         * lib/tmpdir.c: Likewise.
67739
67740         * lib/TODO: Remove; this belongs only in coreutils.
67741
67742 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
67743
67744         Add copyright notices to long-enough files that lack them, since
67745         otherwise the files aren't clearly free.  Use the same notice that
67746         getdate.texi already uses.
67747         * doc/alloca-opt.texi: Add copyright notice.
67748         * doc/alloca.texi: Likewise.
67749         * doc/ctime.texi: Likewise.
67750         * doc/functions.texi: Likewise.
67751         * doc/gcd.texi: Likewise.
67752         * doc/gnulib-tool.texi: Likewise.
67753         * doc/inet_ntoa.texi: Likewise.
67754         * doc/visibility.texi: Likewise.
67755
67756         * doc/getdate.texi: Update FDL version from 1.1 to 1.2.
67757         * doc/quote.texi: Add copyright notice.
67758
67759         * doc/solaris-versions: Add SunOS 5.10, SunOS 1.x, SunOS 4.0, SunOS
67760         4.0.x, SunOS 4.1.1.1, SunOS 4.1.1_U1, SunOS 4.1.3B.  SunOS 4.1.3
67761         was Solaris 1.1A.  Remove space before B in Solaris 1.1.1B.
67762         Mention SunOS 5.11.  Mention that everything before SunOS 5.7
67763         is now obsolete, and give a pointer to the Sun list.
67764         Add copyright notice.
67765
67766 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
67767
67768         * config/srclistvars.sh: Add copyright notice.
67769
67770 2006-08-14  Eric Blake  <ebb9@byu.net>
67771
67772         Import the following change from libc:
67773
67774         2006-08-12  Ulrich Drepper  <drepper@redhat.com>
67775
67776         Upstream bug 2997.
67777         * lib/misc/error.c: Add space between program name and message if file
67778         name is missing.
67779
67780 2006-08-12  Karl Berry  <karl@gnu.org>
67781
67782         * config/srclist.txt (ssize_t.m4, sig_atomic_t.m4, signalblocking.m4):
67783         remove, these originate in gnulib now.
67784
67785 2006-08-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
67786
67787         * doc/Makefile (standards.info standards.html standards.dvi):
67788         Also depend on make-stds.texi.
67789
67790 2006-08-11  Paul Eggert  <eggert@cs.ucla.edu>
67791
67792         * lib/pipe-safer.c (pipe_safer): Fix misspelling: HAVE_FUNC_PIPE ->
67793         HAVE_PIPE.  Fix a file descriptor leak when fd_safer fails.
67794
67795         * lib/regex_internal.c (re_string_skip_chars): Don't assume WEOF fits
67796         in wchar_t.  Problem reported by Eric Blake.
67797
67798         * lib/snprintf.c (snprintf): memcpy LEN bytes, not SIZE - 1, when
67799         LEN is smaller than SIZE.  Suggested by Bruno Haible.
67800         Also, help the compiler to keep LEN in a register.
67801
67802 2006-08-11  Eric Blake  <ebb9@byu.net>
67803
67804         * users.txt: Sort.  Add tar.
67805
67806 2006-08-11  Bruno Haible  <bruno@clisp.org>
67807
67808         * users.txt: New file.
67809
67810 2006-08-11  Bruno Haible  <bruno@clisp.org>
67811
67812         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Include <stdio.h> and <time.h>
67813         before <wchar.h>. Needed for OSF/1 and BSD/OS.
67814
67815 2006-08-10  Paul Eggert  <eggert@cs.ucla.edu>
67816
67817         * modules/snprintf (Depends-on): Remove minmax.
67818         (Maintainer): Add self and Bruno.
67819
67820 2006-08-10  Paul Eggert  <eggert@cs.ucla.edu>
67821
67822         * lib/.cppi-disable: Add snprintf.h, socket_.h.
67823         * lib/snprintf.c: Include <errno.h> and <limits.h>.
67824         (EOVERFLOW): Define if the system does not.
67825         Do not include "minmax.h"; it wasn't used.
67826         (snprintf): Don't assume size_t promotes to an unsigned type.
67827         Fix bug when generated string was too long for the buffer: the
67828         buffer's contents are supposed to be the initial prefix of the
67829         output.  Don't assume vasnprintf returns EOVERFLOW if the size
67830         exceeds INT_MAX; do the check ourselves.
67831
67832         Import the following changes from libc:
67833
67834         2006-06-02  Jakub Jelinek  <jakub@redhat.com>
67835
67836         * lib/posix/regex_internal.c (re_string_skip_chars): If no character
67837         has been converted at all, set *last_wc to WEOF.  If mbrtowc failed,
67838         set wc to the byte which couldn't be converted.
67839         (re_string_reconstruct): Don't clear valid_raw_len before calling
67840         re_string_skip_chars.  If wc is WEOF after re_string_skip_chars, set
67841         tip_context using re_string_context_at.
67842
67843         2006-05-02  Ulrich Drepper  <drepper@redhat.com>
67844
67845         * lib/posix/regex.h: g++ still cannot handled [restrict].
67846
67847         2006-04-21  Ulrich Drepper  <drepper@redhat.com>
67848
67849         * lib/posix/regex.h: Remove special handling for VMS.
67850
67851 2006-08-10  Jim Meyering  <jim@meyering.net>
67852
67853         * modules/same-inode: New module.
67854         * modules/dev-ino: New module.
67855         * modules/cycle-check: Depend on these modules, rather than simply
67856         including their .h files.
67857         (Makefile.am): Don't list cycle-check.[ch] here, now that they're
67858         required via m4/cycle-check.m4.
67859         * modules/same: Depend on new same-inode module, rather than
67860         including same-inode.h.
67861         * modules/chdir-safer: New file.
67862
67863         * modules/chown (Depends-on): Add stat-macros.
67864
67865 2006-08-10  Jim Meyering  <jim@meyering.net>
67866
67867         * m4/cycle-check.m4: New file.
67868         Require gl_STRUCT_DEV_INO and gl_SAME_INODE.
67869         * m4/dev-ino.m4, m4/same-inode.m4: New files.
67870
67871 2006-08-10  Eric Blake  <ebb9@byu.net>
67872
67873         * modules/verror (Depends-on): Remove bogus gl_VERROR that snuck
67874         in from original proposal.
67875
67876 2006-08-10  Eric Blake  <ebb9@byu.net>
67877         and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
67878
67879         * gnulib-tool (func_import): Detect unexpanded macros in gnulib
67880         namespace.
67881
67882 2006-08-10  Bruno Haible  <bruno@clisp.org>
67883
67884         * gnulib-tool (func_create_testdir): Detect unexpanded macros here
67885         as well.
67886
67887 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
67888
67889         Sync from coreutils.
67890
67891         2006-07-19  Mike Frysinger  <vapier@gentoo.org>
67892
67893         * lib/mountlist.c [ME_REMOTE]: Filter out cifs.
67894         Reported by Toralf Förster in <http://bugs.gentoo.org/141012>.
67895
67896 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
67897
67898         * modules/restrict: Remove; no longer needed now that we assume
67899         Autoconf 2.59 or later.
67900         * MODULES.html.sh: Remove 'restrict'.
67901         * modules/argp (Depends-on): Remove 'restrict'.
67902         * modules/base64 (Depends-on): Likewise.
67903         * modules/gc (Depends-on): Likewise.
67904         * modules/getaddrinfo (Depends-on): Likewise.
67905         * modules/glob (Depends-on): Likewise.
67906         * modules/inet_ntop (Depends-on): Likewise.
67907         * modules/inet_pton (Depends-on): Likewise.
67908         * modules/memxor (Depends-on): Likewise.
67909         * modules/regex (Depends-on): Likewise.
67910         * modules/strtok_r (Depends-on): Likewise.
67911         * modules/time_r (Depends-on): Likewise.
67912
67913 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
67914
67915         * m4/argp.m4 (gl_ARGP): Require AC_C_RESTRICT.
67916         * m4/gc.m4 (gl_PREREQ_GC): Likewise.
67917         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
67918         * m4/inet_ntop.m4 (gl_PREREQ_INET_NTOP): Likewise.
67919         * m4/inet_pton.m4 (gl_PREREQ_INET_PTON): Likewise.
67920         * m4/memxor.m4 (gl_MEMXOR): Likewise.
67921         * m4/restrict.m4: Remove; no longer needed.  All remaining uses of
67922         gl_C_RESTRICT replaced by AC_C_RESTRICT.
67923
67924         Merge from coreutils.
67925         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_C_RESTRICT, not
67926         gl_C_RESTRICT, now that we assume Autoconf 2.59 or later.
67927         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
67928         * m4/time_r.m4 (gl_TIME_R): Likewise.
67929
67930 2006-08-09  Karl Berry  <karl@gnu.org>
67931
67932         * config/srclist.txt: no more gettext-tools, per Bruno.
67933
67934 2006-08-08  Eric Blake  <ebb9@byu.net>
67935
67936         * modules/verror: New module.
67937         * MODULES.html.sh: Document it.
67938
67939 2006-08-08  Eric Blake  <ebb9@byu.net>
67940
67941         * lib/verror.h, lib/verror.c: New files.
67942
67943 2006-08-08  Eric Blake  <ebb9@byu.net>
67944
67945         * lib/verror.c (verror_at_line): Work around glibc bug 2997, so that
67946         verror_at_line output complies with GNU Coding Standards even when
67947         file is NULL.
67948
67949 2006-08-07  Bruno Haible  <bruno@clisp.org>
67950
67951         * lib/allocsa.h (sa_alignof) [_AIX]: Also consider 'long long' in newer
67952         versions of AIX.
67953         Reported by Ralf Wildenhues.
67954
67955 2006-08-07  Bruno Haible  <bruno@clisp.org>
67956
67957         * gnulib-tool (func_create_testdir): Wrap the set of autoconf snippets
67958         in an AC_DEFUN. Needed so that the autoconf snippets can use
67959         AC_REQUIRE.
67960
67961 2006-08-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
67962
67963         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
67964         Initialize pkgdata_DATA.
67965         * modules/javaversion (Makefile.am): Add to pkgdata_DATA, rather than
67966         overriding it.
67967
67968 2006-08-06  Eric Blake  <ebb9@byu.net>
67969
67970         * lib/error.h: Fold in some upstream changes from glibc.
67971         * lib/error.c: Likewise.
67972
67973 2006-08-04  Bruno Haible  <bruno@clisp.org>
67974
67975         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
67976         Make the mostlyclean-local rule depend on mostlyclean-generic.
67977         Reported by Jim Meyering. Solution suggested by Ralf Wildenhues.
67978
67979 2006-07-31  Bruno Haible  <bruno@clisp.org>
67980
67981         * m4/localcharset.m4 (gl_LOCALCHARSET): Remove tests for <stddef.h>,
67982         <stdlib.h>, <string.h>.
67983
67984 2006-07-30  Bruno Haible  <bruno@clisp.org>
67985
67986         * modules/readlink (License): Change to LGPL.
67987
67988 2006-07-30  Bruno Haible  <bruno@clisp.org>
67989
67990         * modules/javaversion (Makefile.am): Distribute javaversion.java and
67991         javaversion.class. Also install javaversion.class in $(pkgdatadir) and
67992         set PKGDATADIR to point to it.
67993
67994 2006-07-30  Bruno Haible  <bruno@clisp.org>
67995
67996         * modules/csharpexec (configure.ac): Comment out macro invocation.
67997         * modules/javaexec (configure.ac): Likewise.
67998         * modules/javacomp-script (configure.ac): Likewise.
67999
68000         * modules/csharpcomp-script (configure.ac): Use AC_REQUIRE.
68001
68002 2006-07-30  Bruno Haible  <bruno@clisp.org>
68003
68004         * modules/clean-temp (Depends-on): Add linkedhash-list, remove
68005         linked-list.
68006
68007 2006-07-30  Bruno Haible  <bruno@clisp.org>
68008
68009         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Assume <string.h> exists.
68010
68011 2006-07-30  Bruno Haible  <bruno@clisp.org>
68012
68013         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
68014         Initialize MOSTLYCLEANFILES to core and *.stackdump, so that core dumps
68015         get removed.
68016
68017 2006-07-29  Bruno Haible  <bruno@clisp.org>
68018
68019         Make it possible for gnulib-tool to work with locally modified or
68020         augmented gnulib repositories.
68021         * gnulib-tool (func_usage): Document --local-dir option.
68022         (local_gnulib_dir): New variable.
68023         Handle --local-dir option.
68024         (func_lookup_file): New function.
68025         (func_all_modules, func_verify_module): Look also in $local_gnulib_dir.
68026         (func_get_description, func_get_filelist, func_get_description,
68027         func_get_filelist, func_get_dependencies, func_get_autoconf_snippet,
68028         func_get_automake_snippet, func_get_include_directive,
68029         func_get_license, func_get_maintainer): Use func_lookup_file.
68030         (func_import, func_create_testdir): Use func_lookup_file.
68031
68032 2006-07-29  Bruno Haible  <bruno@clisp.org>
68033
68034         * modules/setenv (Depends-on): Add unistd.
68035
68036 2006-07-29  Bruno Haible  <bruno@clisp.org>
68037
68038         * lib/setenv.c: Undo unintended modification done on 2006-02-27.
68039
68040 2006-07-29  Bruno Haible  <bruno@clisp.org>
68041
68042         * lib/localcharset.c: Assume <stddef.h>, <stdlib.h>, <string.h> exist.
68043
68044 2006-07-29  Bruno Haible  <bruno@clisp.org>
68045
68046         * gnulib-tool (import, update): If there is no Makefile.am, look at
68047         aclocal.m4, instead of bailing out.
68048
68049 2006-07-29  Bruno Haible  <bruno@clisp.org>
68050
68051         * gnulib-tool (func_usage): Revert most of the 2006-07-15 change.
68052         Categorize the options by when they are useful.
68053
68054 2006-07-29  Bruno Haible  <bruno@clisp.org>
68055
68056         * gnulib-tool (func_usage): Document option --no-libtool.
68057         Handle option --no-libtool.
68058         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Update
68059         for changed semantics of $libtool variable.
68060         (func_import): Likewise. If libtool is not used, show this through
68061         an option --no-libtool.
68062         (func_create_testdir): Update.
68063
68064 2006-07-29  Bruno Haible  <bruno@clisp.org>
68065
68066         * gnulib-tool (func_import): Extend error message about missing
68067         --doc-base.
68068
68069 2006-07-29  Bruno Haible  <bruno@clisp.org>
68070
68071         * gnulib-tool (func_import): Don't create the $docbase directory if
68072         there is no file to store there.
68073
68074 2006-07-29  Bruno Haible  <bruno@clisp.org>
68075
68076         * gnulib-tool (autoconf_minversion): If a --dir option is given and
68077         relevant, look for configure.ac there, not in the current directory.
68078         Also use a simple search for AC_PREREQ, not "autoconf --trace".
68079
68080 2006-07-29  Bruno Haible  <bruno@clisp.org>
68081
68082         * gnulib-tool (SORT): New variable.
68083         (func_usage): Undocument --assume-autoconf option.
68084         Remove --assume-autoconf option handling.
68085         (autoconf_minversion): Determine from the contents of configure.ac.
68086         (func_import): Remove autoconf_minversion handling.
68087         Suggested by Eric Blake.
68088
68089 2006-07-29  Bruno Haible  <bruno@clisp.org>
68090
68091         * doc/gnulib-tool.texi (gl_LIBTOOL): Mention --no-libtool option.
68092
68093 2006-07-29  Bruno Haible  <bruno@clisp.org>
68094
68095         * config/srclist.txt (*setenv.[ch]): Remove rules.
68096
68097 2006-07-28  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
68098
68099         * m4/inet_pton.m4, inet_ntop.m4: Check for netinet/in.h too.
68100
68101 2006-07-28  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
68102
68103         * lib/inet_ntop.h, inet_pton.h: Need to include netinet/in.h before
68104         arpa/inet.h.
68105
68106 2006-07-28  Simon Josefsson  <jas@extundo.com>
68107
68108         * modules/inet_ntop (Depends-on): Depend on arpa_inet.
68109         * modules/inet_pton (Depends-on): Likewise.
68110
68111 2006-07-28  Simon Josefsson  <jas@extundo.com>
68112
68113         * m4/netinet_in_h.m4: New file.
68114
68115 2006-07-28  Simon Josefsson  <jas@extundo.com>
68116
68117         * lib/inet_ntop.h, inet_pton.h: No need to guard netinet/in.h
68118         #include's.
68119
68120 2006-07-28  Simon Josefsson  <jas@extundo.com>
68121
68122         * lib/inet_ntop.h, inet_pton.h: No need to guard arpa/inet.h
68123         #include's.
68124
68125 2006-07-28  Paul Eggert  <eggert@cs.ucla.edu>
68126
68127         * lib/modechange.c (mode_compile): Numeric modes now affect setuid and
68128         setgid on directories only if they set these bits.
68129         * lib/modechange.h: Remove obsolete comment about masks.
68130
68131 2006-07-28  Eric Blake  <ebb9@byu.net>
68132
68133         * lib/regex_internal.h (struct re_dfa_t) [!_LIBC]: Avoid invalid C89
68134         macro expansion.
68135
68136 2006-07-28  Bruno Haible  <bruno@clisp.org>
68137
68138         * lib/inet_ntop.h, inet_pton.h: Use #if HAVE* instead of #ifdef HAVE*.
68139
68140 2006-07-28  Bruno Haible  <bruno@clisp.org>
68141
68142         * m4/mbchar.m4 (gl_MBCHAR): Also test for iswcntrl.
68143
68144 2006-07-28  Bruno Haible  <bruno@clisp.org>
68145
68146         * lib/mbchar.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
68147         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit):
68148         Define fallbacks.
68149         Avoids link error on FreeBSD 4.x.
68150         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
68151
68152         * lib/wcwidth.h (iswprint): Assume an ASCII compatible wide character
68153         encoding.
68154         * lib/mbswidth.c (iswcntrl): Likewise.
68155
68156 2006-07-27  Bruno Haible  <bruno@clisp.org>
68157
68158         * m4/stdint.m4 (gl_STDINT_H): Define __STDC_CONSTANT_MACROS during the
68159         test.
68160
68161 2006-07-27  Bruno Haible  <bruno@clisp.org>
68162
68163         * lib/stdint_.h (INT*_C, UINT*_C) [C++]: Define these if
68164         __STDC_CONSTANT_MACROS is defined, not if __STDC_LIMIT_MACROS is
68165         defined.
68166
68167 2006-07-26  Eric Blake  <ebb9@byu.net>
68168
68169         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Check for missing pipe.
68170
68171 2006-07-26  Eric Blake  <ebb9@byu.net>
68172
68173         * lib/mkstemp-safer.c [! HAVE_MKSTEMP]: Add prototype for platforms
68174         like mingw that lack mkstemp.
68175         * lib/pipe-safer.c (pipe_safer) [!HAVE_FUNC_PIPE]: Provide fallback to
68176         avoid compilation warning on mingw.
68177
68178 2006-07-26  Bruno Haible  <bruno@clisp.org>
68179
68180         * m4/stdint.m4 (gl_STDINT_H): Also verify the existence of the macros
68181         INT*_MIN, INT_LEAST*_MAX, INT_LEAST*_MIN, UINT_LEAST*_MAX,
68182         INT_FAST*_MIN, INTPTR_MIN.
68183
68184 2006-07-25  Bruno Haible  <bruno@clisp.org>
68185
68186         * modules/version-etc (Depends-on): Add stdarg.
68187
68188 2006-07-25  Bruno Haible  <bruno@clisp.org>
68189
68190         * m4/stdint.m4 (gl_INTEGER_TYPE_SUFFIX): Avoid 'eval' in front of
68191         complex commands.
68192
68193 2006-07-25  Bruno Haible  <bruno@clisp.org>
68194
68195         * lib/version-etc.c (version_etc_va): Use va_copy, assumed to be
68196         defined in <stdarg.h> or config.h.
68197
68198 2006-07-24  Paul Eggert  <eggert@cs.ucla.edu>
68199
68200         * m4/stdio-safer.m4 (gl_FOPEN_SAFER, gl_TMPFILE_SAFER): New macros.
68201         (gl_STDIO_SAFER): Remove.
68202
68203 2006-07-24  Paul Eggert  <eggert@cs.ucla.edu>
68204
68205         * MODULES.html.sh (File stream based Input/Output):
68206         Add fopen-safer, tmpfile-safer; remove stdio-safer.
68207         * modules/getusershell (Depends-on): Change stdio-safer to fopen-safer.
68208         * modules/fopen-safer, modules/tmpfile-safer: New files.
68209         * modules/stdio-safer: Remove.
68210
68211 2006-07-24  Bruno Haible  <bruno@clisp.org>
68212
68213         * modules/tmpdir: New file.
68214         * MODULES.html.sh (File system functions): Add it.
68215
68216 2006-07-24  Bruno Haible  <bruno@clisp.org>
68217
68218         * modules/javacomp (Depends-on): Add unistd, javaversion, binary-io,
68219         getline, pathname, fwriteerror, clean-temp, xvasprintf, strstr.
68220
68221 2006-07-24  Bruno Haible  <bruno@clisp.org>
68222
68223         * modules/clean-temp: New file.
68224
68225 2006-07-24  Bruno Haible  <bruno@clisp.org>
68226
68227         * m4/tmpdir.m4: New file, from GNU gettext.
68228
68229 2006-07-24  Bruno Haible  <bruno@clisp.org>
68230
68231         * lib/tmpdir.h: New file, from GNU gettext.
68232         * lib/tmpdir.c: New file, from GNU gettext.
68233
68234 2006-07-24  Bruno Haible  <bruno@clisp.org>
68235
68236         * lib/clean-temp.h: New file, from GNU gettext.
68237         * lib/clean-temp.c: New file, from GNU gettext.
68238
68239 2006-07-23  Eric Blake  <ebb9@byu.net>
68240
68241         * modules/stdio-safer (Files): Add tmpfile-safer.c.
68242         (Depends-on): Add binary-io.
68243
68244 2006-07-23  Eric Blake  <ebb9@byu.net>
68245
68246         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Add tmpfile-safer.c.
68247
68248 2006-07-23  Eric Blake  <ebb9@byu.net>
68249
68250         * lib/tmpfile-safer.c: New file.
68251         * lib/stdio-safer.h (fopen_safer): Add prototype.
68252         * lib/stdio--.h (tmpfile): Make safer.
68253
68254 2006-07-23  Bruno Haible  <bruno@clisp.org>
68255
68256         * lib/gl_anylinked_list2.h (ASYNCSAFE): New macro.
68257         (gl_linked_add_first, gl_linked_add_last, gl_linked_add_before,
68258         gl_linked_add_after, gl_linked_add_at, gl_linked_remove_node,
68259         gl_linked_remove_at): Use it.
68260
68261 2006-07-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
68262         and Simon Josefsson <jas@extundo.com>
68263
68264         * lib/getaddrinfo.h (AI_PASSIVE): Make sure it is defined.
68265
68266         * lib/getaddrinfo.c (getaddrinfo): Support AI_PASSIVE.
68267
68268 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
68269
68270         * modules/close-stream: New file.
68271         * modules/closeout (Description): Make it clear that it exits
68272         with a diagnostic on error.
68273         (Depends-on): Add close-stream.  Remove fpending, stdbool.
68274         * MODULES.html.sh (File stream based Input/Output): Add close-stream.
68275
68276 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
68277
68278         * m4/close-stream.m4: New file.
68279
68280 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
68281
68282         * lib/close-stream.c, lib/close-stream.h: New files.
68283
68284 2006-07-22  Bruno Haible  <bruno@clisp.org>
68285
68286         Merge from GNU gettext 0.15.
68287
68288         2006-05-01  Bruno Haible  <bruno@clisp.org>
68289
68290                 * build-aux/javacomp.sh.in: Update for changed javacomp.m4.
68291
68292         2006-07-22  Bruno Haible  <bruno@clisp.org>
68293
68294                 * modules/javaversion: New file.
68295                 * MODULES.html.sh (Java): Add javaversion.
68296
68297         2006-03-12  Bruno Haible  <bruno@clisp.org>
68298
68299                 * build-aux/javaexec.sh.in: Update for changed javaexec.m4.
68300
68301         2005-12-04  Bruno Haible  <bruno@clisp.org>
68302
68303                 * build-aux/csharpexec.sh.in: Add support for 'clix' launcher
68304                 (untested).
68305
68306         2006-06-21  Bruno Haible  <bruno@clisp.org>
68307
68308                 Avoid warnings from recent versions of mcs.
68309                 * build-aux/csharpcomp.sh.in (options_mcs): Don't use options
68310                 -o, -L, -r any more. Use options documented since mcs-1.0
68311                 instead. Similarly for -g.
68312
68313         2005-12-04  Bruno Haible  <bruno@clisp.org>
68314
68315                 * build-aux/csharpcomp.sh.in: Suffix for resources is
68316                 .resources, not .resource.
68317
68318         2005-07-09  Bruno Haible  <bruno@clisp.org>
68319
68320                 * build-aux/csharpcomp.sh.in (options_csc): For -l option,
68321                 add a .dll suffix.
68322                 Reported by Mark Junker <mjscod@gmx.de>.
68323
68324         2006-07-22  Bruno Haible  <bruno@clisp.org>
68325
68326                 * modules/gettext: Upgrade to gettext-0.15.
68327                 (Files): Remove m4/isc-posix.m4. Add m4/lock.m4,
68328                 m4/visibility.m4.
68329                 Replace m4/inttypes.m4 with m4/inttypes-h.m4.
68330
68331 2006-07-22  Bruno Haible  <bruno@clisp.org>
68332
68333         Merge from GNU gettext 0.15.
68334
68335         2006-03-25  Bruno Haible  <bruno@clisp.org>
68336
68337                 * lib-link.m4 (AC_LIB_LINKFLAGS_FROM_LIBS): New macro.
68338
68339         2006-07-21  Bruno Haible  <bruno@clisp.org>
68340
68341                 * javacomp.m4 (gt_JAVACOMP): Convert target_version "null" to
68342                 "1.1".
68343
68344         2006-05-09  Bruno Haible  <bruno@clisp.org>
68345
68346                 * javacomp.m4 (gt_JAVACOMP): On Cygwin, set
68347                 CLASSPATH_SEPARATOR to a semicolon. Use CLASSPATH_SEPARATOR
68348                 for the conftestver execution.
68349
68350         2006-05-01  Bruno Haible  <bruno@clisp.org>
68351
68352                 * javacomp.m4 (gt_JAVACOMP): Accept a source-version and an
68353                 optional target-version argument. Verify that the compiler
68354                 groks source of the specified source-version, or add -source
68355                 option as necessary. Verify that the compiler produces
68356                 bytecode in the specified target-version, or add -target and
68357                 -source options as necessary. Make the result of the test
68358                 available as variable CONF_JAVAC. Also log error output in
68359                 config.log.
68360
68361         2006-03-11  Bruno Haible  <bruno@clisp.org>
68362
68363                 * javacomp.m4 (gt_JAVACOMP): Treat gcj-4.x like gcj-3.x.
68364
68365         2006-05-09  Bruno Haible  <bruno@clisp.org>
68366
68367                 * javaexec.m4 (gt_JAVAEXEC): On Cygwin, set
68368                 CLASSPATH_SEPARATOR to a semicolon.
68369
68370         2006-03-12  Bruno Haible  <bruno@clisp.org>
68371
68372                 * javaexec.m4 (gt_JAVAEXEC): Make the result of the test
68373                 available as variable CONF_JAVA, for subsequent autoconf
68374                 tests. Also log error output in config.log.
68375
68376         2006-07-19  Bruno Haible  <bruno@clisp.org>
68377
68378                 * getline.m4 (AM_FUNC_GETLINE): When cross-compiling, assume
68379                 that getline works on glibc2 systems. Needed to avoid trouble
68380                 in relocatable.c.
68381                 Reported by Nils Magnus Larsgard <nmlarsgaard@atmel.no>.
68382
68383         2005-12-04  Bruno Haible  <bruno@clisp.org>
68384
68385                 * csharpexec.m4 (gt_CSHARPEXEC): Add support for 'clix'
68386                 launcher (untested).
68387
68388         2005-12-04  Bruno Haible  <bruno@clisp.org>
68389
68390                 * csharpcomp.m4 (gt_CSHARPCOMP): Also set CSHARPCOMPFLAGS.
68391
68392         2006-07-22  Bruno Haible  <bruno@clisp.org>
68393
68394                 * gettext.m4: Update from GNU gettext-0.15.
68395                 * nls.m4: Likewise.
68396                 * po.m4: Likewise.
68397                 * inttypes-pri.m4: Likewise.
68398                 * inttypes-h.m4: Renamed from inttypes.m4.
68399                 (gl_HEADER_INTTYPES_H): Renamed from gt_HEADER_INTTYPES_H.
68400
68401 2006-07-22  Bruno Haible  <bruno@clisp.org>
68402
68403         Merge from GNU gettext 0.15.
68404
68405         2005-07-05  Bruno Haible  <bruno@clisp.org>
68406
68407                 * printf-args.c (printf_fetchargs): Work around broken
68408                 definition of wint_t on mingw.
68409
68410         2005-02-12  Bruno Haible  <bruno@clisp.org>
68411
68412                 * xallocsa.h: Add extern "C" for C++.
68413
68414         2006-05-17  Bruno Haible  <bruno@clisp.org>
68415
68416                 Cygwin portability.
68417                 * progreloc.c (WIN32_NATIVE): Renamed from WIN32.
68418
68419         2006-04-30  Bruno Haible  <bruno@clisp.org>
68420
68421                 * progreloc.c: Include <mach-o/dyld.h> if available.
68422                 (find_executable): Use _NSGetExecutablePath when possible.
68423
68424         2006-05-06  Charles Wilson  <cygwin@cwilson.fastmail.fm>
68425
68426                 * progreloc.c (maybe_executable) [CYGWIN]: Use the access()
68427                 function.
68428
68429         2005-12-29  Bruno Haible  <bruno@clisp.org>
68430
68431                 * progreloc.c (set_program_name_and_installdir): Fix
68432                 compilation error.
68433
68434         2005-12-04  Bruno Haible  <bruno@clisp.org>
68435
68436                 Cygwin portability.
68437                 * progreloc.c: Include <windows.h> also on Cygwin.
68438                 (find_executable): Add support for Cygwin.
68439                 (set_program_name_and_installdir): Handle also platforms with
68440                 nonempty EXEEXT.
68441
68442         2006-07-11  Bruno Haible  <bruno@clisp.org>
68443
68444                 * javacomp.c: Fix a comment.
68445                 Reported by Jim Meyering.
68446
68447         2006-04-30  Bruno Haible  <bruno@clisp.org>
68448
68449                 * javacomp.h (compile_java_class): Add source_version,
68450                 target_version arguments.
68451                 * javacomp.c: Rewritten to choose only a compiler that
68452                 respects the specified source_version and target_version.
68453
68454         2006-06-27  Bruno Haible  <bruno@clisp.org>
68455
68456                 Assume correct S_ISDIR macro.
68457                 * mkdtemp.c: Remove test of STAT_MACROS_BROKEN.
68458
68459         2006-07-22  Bruno Haible  <bruno@clisp.org>
68460
68461                 * javaversion.h: New file, from GNU gettext.
68462                 * javaversion.c: New file, from GNU gettext.
68463                 * javaversion.java: New file, from GNU gettext.
68464                 * javaversion.class: New file, from GNU gettext.
68465
68466         2006-05-17  Bruno Haible  <bruno@clisp.org>
68467
68468                 Cygwin portability.
68469                 * javaexec.c (execute_java_class): Test for jview program
68470                 also on Cygwin.
68471
68472         2006-04-09  Bruno Haible  <bruno@clisp.org>
68473
68474                 * fatal-signal.c: Don't include string.h.
68475                 (at_fatal_signal): Use a copying loop instead of memcpy.
68476
68477         2005-12-04  Bruno Haible  <bruno@clisp.org>
68478
68479                 * csharpexec.c: Add support for 'clix' launcher (untested).
68480                 (execute_csharp_using_sscli): New function.
68481                 (execute_csharp_program): Call it.
68482
68483         2006-06-21  Bruno Haible  <bruno@clisp.org>
68484
68485                 Avoid warnings from recent versions of mcs.
68486                 * csharpcomp.c (compile_csharp_using_mono): Don't use options
68487                 -o, -L, -r any more. Use options documented since mcs-1.0
68488                 instead. Similarly for -g.
68489
68490         2005-07-09  Bruno Haible  <bruno@clisp.org>
68491
68492                 * csharpcomp.c (compile_csharp_using_sscli): For -l option,
68493                 add a .dll suffix.
68494                 Reported by Mark Junker <mjscod@gmx.de>.
68495
68496         2006-06-17  Bruno Haible  <bruno@clisp.org>
68497
68498                 * config.charset: Update for NetBSD 3.0.
68499
68500         2006-05-17  Bruno Haible  <bruno@clisp.org>
68501
68502                 Cygwin portability.
68503                 * localcharset.c (WIN32_NATIVE): Renamed from WIN32.
68504
68505         2006-05-16  Bruno Haible  <bruno@clisp.org>
68506
68507                 * localcharset.c [CYGWIN]: Include <windows.h>.
68508                 (get_charset_aliases): For Cygwin, return the same CPxxx
68509                 aliases list as under WIN32.
68510                 (locale_charset) [CYGWIN]: Try to retrieve the encoding from
68511                 the environment variables. Fall back to GetACP().
68512
68513         2006-04-05  Bruno Haible  <bruno@clisp.org>
68514
68515                 * config.charset: Update Juan Manuel Guerrero's address.
68516
68517         2005-02-12  Bruno Haible  <bruno@clisp.org>
68518
68519                 * allocsa.h: Add extern "C" for C++.
68520
68521         2005-02-10  Bruno Haible  <bruno@clisp.org>
68522
68523                 * allocsa.h (sa_alignof): Define differently with AIX xlc, to
68524                 avoid a bug of this compiler on AIX 3.2.5 dealing with enums.
68525
68526         2006-07-22  Bruno Haible  <bruno@clisp.org>
68527
68528                 * gettext.h: Update to GNU gettext-0.15.
68529
68530 2006-07-22  Bruno Haible  <bruno@clisp.org>
68531
68532         * config/srclist.txt: Resync printf-args.c, vasnprintf.c,
68533         localcharset.c, mkdtemp.c, config.rpath, lib-ld.m4, lib-link.m4,
68534         lib-prefix.m4, longdouble.m4, ssize_t.m4.
68535
68536 2006-07-21  Eric Blake  <ebb9@byu.net>
68537
68538         * modules/stdlib-safer: New file.
68539         * MODULES.html.sh (File stream based Input/Output): Add
68540         stdlib-safer.
68541
68542 2006-07-21  Eric Blake  <ebb9@byu.net>
68543
68544         * lib/stdlib-safer.h: New file from coreutils, required by
68545         stdlib--.h.
68546
68547 2006-07-20  Paul Eggert  <eggert@cs.ucla.edu>
68548
68549         * gnulib-tool (func_usage): Document --assume-autoconf='latest-stable'.
68550
68551 2006-07-20  Bruno Haible  <bruno@clisp.org>
68552
68553         * gnulib-tool: Recognize new option --assume-autoconf.
68554         (autoconf_minversion): New variable.
68555         (func_get_filelist): Use it to decide whether to add onceonly_2_57.m4.
68556
68557 2006-07-20  Bruno Haible  <bruno@clisp.org>
68558
68559         * MODULES.html.sh (func_all_modules): Add a missing func_begin_table.
68560
68561 2006-07-19  Derek R. Price  <derek@ximbiot.com>
68562
68563         * lib/getaddrinfo.h: Don't define unimplemented AI_* flags.
68564         Reindent and repaginate.
68565
68566 2006-07-19  Derek Price  <derek@ximbiot.com>
68567
68568         * doc/gnulib.texi (Libtool and Windows):  Eliminate passive voice.
68569         Correct grammar.
68570
68571 2006-07-17  Bruno Haible  <bruno@clisp.org>
68572
68573         * modules/list: New file.
68574         * modules/array-list: New file.
68575         * modules/carray-list, modules/carray-list-tests: New files.
68576         * modules/linked-list, modules/linked-list-tests: New files.
68577         * modules/avltree-list, modules/avltree-list-tests: New files.
68578         * modules/rbtree-list, modules/rbtree-list-tests: New files.
68579         * modules/linkedhash-list, modules/linkedhash-list-tests: New files.
68580         * modules/avltreehash-list, modules/avltreehash-list-tests: New files.
68581         * modules/rbtreehash-list, modules/rbtreehash-list-tests: New files.
68582         * modules/oset: New file.
68583         * modules/array-oset: New file.
68584         * modules/avltree-oset, modules/avltree-oset-tests: New files.
68585         * modules/rbtree-oset, modules/rbtree-oset-tests: New files.
68586         * tests/test-carray_list.c: New file.
68587         * tests/test-linked_list.c: New file.
68588         * tests/test-avltree_list.c: New file.
68589         * tests/test-rbtree_list.c: New file.
68590         * tests/test-linkedhash_list.c: New file.
68591         * tests/test-avltreehash_list.c: New file.
68592         * tests/test-rbtreehash_list.c: New file.
68593         * tests/test-avltree_oset.c: New file.
68594         * tests/test-rbtree_oset.c: New file.
68595         * MODULES.html.sh (Container data structures): New section.
68596
68597 2006-07-17  Bruno Haible  <bruno@clisp.org>
68598
68599         * m4/gl_list.m4: New file.
68600
68601 2006-07-17  Bruno Haible  <bruno@clisp.org>
68602
68603         * lib/gl_list.h: New file.
68604         * lib/gl_list.c: New file.
68605         * lib/gl_array_list.h: New file.
68606         * lib/gl_array_list.c: New file.
68607         * lib/gl_carray_list.h: New file.
68608         * lib/gl_carray_list.c: New file.
68609         * lib/gl_linked_list.h: New file.
68610         * lib/gl_linked_list.c: New file.
68611         * lib/gl_anylinked_list1.h: New file.
68612         * lib/gl_anylinked_list2.h: New file.
68613         * lib/gl_avltree_list.h: New file.
68614         * lib/gl_avltree_list.c: New file.
68615         * lib/gl_anyavltree_list1.h: New file.
68616         * lib/gl_anyavltree_list2.h: New file.
68617         * lib/gl_rbtree_list.h: New file.
68618         * lib/gl_rbtree_list.c: New file.
68619         * lib/gl_anyrbtree_list1.h: New file.
68620         * lib/gl_anyrbtree_list2.h: New file.
68621         * lib/gl_anytree_list1.h: New file.
68622         * lib/gl_anytree_list2.h: New file.
68623         * lib/gl_linkedhash_list.h: New file.
68624         * lib/gl_linkedhash_list.c: New file.
68625         * lib/gl_anyhash_list1.h: New file.
68626         * lib/gl_anyhash_list2.h: New file.
68627         * lib/gl_avltreehash_list.h: New file.
68628         * lib/gl_avltreehash_list.c: New file.
68629         * lib/gl_rbtreehash_list.h: New file.
68630         * lib/gl_rbtreehash_list.c: New file.
68631         * lib/gl_anytreehash_list1.h: New file.
68632         * lib/gl_anytreehash_list2.h: New file.
68633
68634         * lib/gl_oset.h: New file.
68635         * lib/gl_oset.c: New file.
68636         * lib/gl_array_oset.h: New file.
68637         * lib/gl_array_oset.c: New file.
68638         * lib/gl_avltree_oset.h: New file.
68639         * lib/gl_avltree_oset.c: New file.
68640         * lib/gl_rbtree_oset.h: New file.
68641         * lib/gl_rbtree_oset.c: New file.
68642         * lib/gl_anytree_oset.h: New file.
68643
68644 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
68645
68646         * m4/mkancesdirs.m4: New file.
68647         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Mention dirchownmod.c,
68648         dirchownmod.h.  Don't require AC_FUNC_ALLOCA, gl_AFS, gl_CHDIR_SAFER;
68649         no longer needed.  Require gl_FUNC_LCHOWN, since dirchownmod.c needs
68650         it.
68651
68652 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
68653
68654         * lib/dirchownmod.c, lib/dirchownmod.h, lib/mkancesdirs.c:
68655         * lib/mkancesdirs.h: New files.
68656         * lib/mkdir-p.c: Don't include alloca.h, stdio.h, sys/types.h,
68657         unistd.h, string.h, chdir-safer.h, dirname.h, lchmod.h, lchown.h,
68658         save-cwd.h.  Instead, include dirchownmod.h and mkancesdirs.h.
68659         (make_dir_parents): New args MAKE_ANCESTOR, OPTIONS, ANNOUNCE,
68660         MODE_BITS.  Remove options VERBOSE_FMT_STRING, CWD_ERRNO.  All
68661         callers changed.  Revamp internals significantly, by not
68662         attempting to create directories that are temporarily more
68663         permissive than the final results.  Do not attempt to use
68664         save_cwd/restore_cwd; it isn't worth it for mkdir and install.
68665         This removes some race conditions, fixes some bugs, and simplifies
68666         things.  Use new dirchownmod function to do owner and mode changes.
68667         * lib/mkdir-p.h: Likewise.
68668         * lib/modechange.c (octal_to_mode): New function.
68669         (struct mode_change): New member mentioned.
68670         (make_node_op_equals): New arg mentioned.  All callers changed.
68671         (mode_compile): Keep track of which mode bits the user has explicitly
68672         mentioned.
68673         (mode_adjust): New arg DIR, so that we implement the X op correctly.
68674         New arg PMODE_BITS, to keep track of which mode bits the user
68675         mentioned; it treats S_ISUID and S_ISGID speciall.
68676         All callers changed.
68677         * lib/modechange.h: Likewise.
68678
68679 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
68680
68681         * MODULES.html.sh: Add mkancestors.
68682         * modules/mkancesdirs: New module.
68683         * modules/mkdir-p (Files): Remove lib/chdir-safer.c, lib/chdir-safer.h,
68684         lib/same-inode.h, m4/afs.m4, m4/chdir-safer.m4.
68685         The chdir-safer and afs files are now orphans; I'll remove them
68686         unless someone speaks up.
68687         Add lib/dirchownmod.c, lib/dirchownmod.h.
68688         (Depends-on): Remove alloca, chown, save-cwd, dirname.
68689         Add lchown, mkancesdirs.
68690         (Maintainer): Add self.
68691
68692 2006-07-15  Karl Berry  <karl@gnu.org>
68693
68694         * gnulib-tool: help message wording/arrangement.
68695
68696 2006-07-14  Simon Josefsson  <jas@extundo.com>
68697
68698         * doc/gnulib.texi (Libtool and Windows): New section.
68699
68700 2006-07-12  Simon Josefsson  <jas@extundo.com>
68701
68702         * modules/gendocs (License): Fix license, approved by Karl.
68703
68704 2006-07-12  Eric Blake  <ebb9@byu.net>
68705
68706         * MODULES.html.sh: Add gendocs.
68707
68708 2006-07-11  Eric Blake  <ebb9@byu.net>
68709
68710         * modules/fdl: New module, to install doc/fdl.texi.
68711         * MODULES.html.sh: Add new section for documentation modules.
68712         * gnulib-tool: Avoid space-tab.
68713         (--doc-base): New option, to manage files from doc.
68714
68715 2006-07-11  Eric Blake  <ebb9@byu.net>
68716
68717         * m4/absolute-header.m4: Fix comments to match recent change.
68718
68719 2006-07-11  Eric Blake  <ebb9@byu.net>
68720
68721         * gnulib-tool: List --doc-base before --tests-base.
68722
68723 2006-07-11  Derek R. Price  <derek@ximbiot.com>
68724
68725         * lib/glob.c: s/NAMLEN/_D_EXACT_NAMLEN/.
68726
68727 2006-07-11  Bruno Haible  <bruno@clisp.org>
68728
68729         * README: Mention where to put documentation.
68730
68731 2006-07-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
68732
68733         * doc/functions.texi, gnulib-tool.texi, gnulib.texi: Fix some typos.
68734
68735 2006-07-10  Paul Eggert  <eggert@cs.ucla.edu>
68736
68737         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Like today's change
68738         to stdint.m4.
68739
68740 2006-07-10  Paul Eggert  <eggert@cs.ucla.edu>
68741
68742         * m4/stdint.m4 (gl_STDINT_H): Like yesterday's change to
68743         absolute-header.m4.  Also, set ABSOLUTE_STDINT_H to a string
68744         "no/such/file/stdint.h" when there is no such file, so that
68745         the resulting C code can be parsed by dodgy compilers.
68746         Problems reported by Bob Proulx.
68747
68748 2006-07-10  Derek R. Price  <derek@ximbiot.com>
68749
68750         * lib/backupfile.c, dirfd.h, fts.c, getcwd.c, glob.c, glob_.h:
68751         Ignore the obsolescent !HAVE_DIRENT_H case.  Consolidate NAMLEN
68752         macros into the GNU _D_EXACT_NAMLEN.
68753         * lib/savedir.c:  Likewise.
68754         (savedirstream): Use _D_EXACT_NAMLEN in preference to strlen.
68755
68756 2006-07-10  Derek R. Price  <derek@ximbiot.com>
68757         and Paul Eggert  <eggert@cs.ucla.edu>
68758
68759         * m4/backupfile.m4, d-ino.m4, d-type.m4, dirfd.m4, fts.m4, getcwd.m4:
68760         * m4/savedir.m4:
68761         Ignore the obsolescent !HAVE_DIRENT_H case.  Consolidate NAMLEN
68762         macros into the GNU _D_EXACT_NAMLEN.
68763
68764 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
68765
68766         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Use "" rather than <>
68767         around the absolute name, to work around a problem with the HP-UX
68768         11.23 native C compiler, reported by Bob Proulx.
68769
68770 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
68771
68772         * doc/maintain.texi, make-stds.texi: Sync from
68773         <http://savannah.gnu.org/projects/gnustandards>.
68774
68775 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
68776
68777         * build-aux/depcomp, build-aux/install-sh: Sync from Automake.
68778
68779 2006-07-09  Jim Meyering  <jim@meyering.net>
68780
68781         * m4/glob.m4: Remove a doubled word in a comment.
68782
68783 2006-07-09  Jim Meyering  <jim@meyering.net>
68784
68785         * lib/argp-pv.c: Remove a doubled word in a comment.
68786         * lib/check-version.c (check_version): Likewise.
68787         * lib/javacomp.c (compile_java_class): Likewise.
68788
68789 2006-07-08  Paul Eggert  <eggert@cs.ucla.edu>
68790
68791         * gnulib-tool (func_get_filelist): Don't echo m4/onceonly_2_57.m4,
68792         for the benefit of people using Autoconf 2.60.  If you want to
68793         support older Autoconf versions you can copy m4/onceonly_2_57.m4
68794         (or m4/onceonly.m4, if pre-2.57) manually.
68795
68796 2006-07-08  Jim Meyering  <jim@meyering.net>
68797
68798         * m4/link-follow.m4: Remove one of two adjacent "whether"s in a
68799         comment.
68800         * m4/getopt.m4: Remove one of two adjacent "your"s in a comment.
68801         * m4/regex.m4 (gl_REGEX): Remove one of two adjacent "the"s in a
68802         comment.
68803
68804 2006-07-08  Jim Meyering  <jim@meyering.net>
68805
68806         * lib/getndelim2.h (getndelim2): Remove doubled "after" in comment.
68807
68808 2006-07-07  Simon Josefsson  <jas@extundo.com>
68809
68810         * tests/test-crc.c: Change expected crc value, the test vector
68811         were probably computed using the old broken crc.c?
68812
68813 2006-07-06  Simon Josefsson  <jas@extundo.com>
68814
68815         * modules/sys_socket (Files): Add m4/sockpfaf.m4 (this module is
68816         now the canonical place for the M4 file).
68817
68818         * modules/getaddrinfo (Files): Remove m4/sockpfaf.m4, we get it
68819         from the sys_socket dependency now.
68820
68821         * modules/inet_pton (Files): Ditto.
68822
68823         * modules/inet_ntop (Files): Ditto.
68824
68825 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
68826
68827         * modules/getusershell (configure.ac): Use gl_FUNC_GETUSERSHELL,
68828         not gl_PREREQ_GETUSERSHELL.
68829
68830 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
68831
68832         * m4/_inttypes_h.m4 (gl_INTTYPES_H): Use AC_CHECK_DECLS_ONCE
68833         with only one argument, for Autoconf 2.60.
68834         * m4/fileblocks.m4 (gl_PREREQ_FILEBLOCKS): AC_CHECK_DECLS_ONCE may
68835         expand to nothing, so add a shell command to avoid syntax error.
68836         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
68837
68838 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
68839
68840         * lib/strtod.c (strtod): cast the argument of tolower to unsigned char.
68841
68842 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
68843
68844         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Don't check for getenv decl;
68845         no longer needed.  Check for isblank decl.
68846         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Don't check for getenv decl.
68847         * m4/regex.m4 (gl_PREREQ_REGEX): Dheck for isblank decl instead
68848         of existence.
68849
68850 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
68851
68852         * lib/getloadavg.c: Use __VMS, not VMS.
68853         * lib/getopt.c: Likewise.
68854         * lib/getpagesize.h: Likewise.
68855         * lib/glob.c: Remove most VMS cruft; it hasn't been tested for a while
68856         and probably does not work.
68857
68858 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
68859
68860         * lib/.cppi-disable: Add wcwidth.
68861         * lib/fnmatch.c (ISBLANK): Remove.  All uses changed to isblank.
68862         (isblank) [! (defined isblank || HAVE_DECL_ISBLANK)]: New macro.
68863         (ISGRAPH): Remove.  All uses changed to isgraph.
68864         (FOLD) [!defined _LIBC]: Remove special case.
68865         * lib/getdate.y (lookup_word): Remove no-longer-needed call to islower.
68866         * lib/regex_internal.h (isblank): Depend on HAVE_DECL_ISBLANK, not
68867         HAVE_ISBLANK.
68868         * lib/strftime.c (TOLOWER, TOUPPER) [!defined _LIBC]: Remove special
68869         case.
68870
68871 2006-07-06  Jim Hyslop  <jhyslop@dreampossible.ca>  (tiny change)
68872
68873         * lib/getaddrinfo.c: Changes to compile under MSVC6: changed
68874         '#if WIN32_NATIVE' to '#ifdef' & moved WSAAPI macro inside
68875         brackets.  Other minor changes to suppress some compiler
68876         warnings.
68877
68878 2006-07-06  Derek R. Price  <derek@ximbiot.com>
68879         and Paul Eggert  <eggert@cs.ucla.edu>
68880
68881         * m4/backupfile.m4 (gl_BACKUPFILE): Check for dirent.h, instead
68882         of invoking obsolescent AC_HEADER_DIRENT macro.
68883         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Likewise.
68884         * m4/d-type.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Likewise.
68885         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
68886         * m4/fts.m4 (gl_FUNC_FTS_CORE): Likewise.
68887         * m4/getcwd.m4 (gl_PREREQ_GETCWD): Likewise.
68888         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
68889         * m4/savedir.m4 (gl_SAVEDIR): Likewise.
68890         * m4/readdir.m4: Remove; no longer needed.
68891
68892 2006-07-06  Derek R. Price  <derek@ximbiot.com>
68893         and Paul Eggert  <eggert@cs.ucla.edu>
68894
68895         * lib/backupfile.c [HAVE_DIRENT_H && ! HAVE_NDIR_H]:
68896         Don't worry about this obsolete case any more.
68897         (HAVE_DIR): Remove.  All uses removed; we now assume you can read
68898         directories.
68899         * lib/dirfd.h [HAVE_DIRENT_H && ! HAVE_NDIR_H]: Don't
68900         worry about this obsolete case any more.
68901         * lib/fts.c: Likewise.
68902         * lib/getcwd.c: Likewise.
68903         * lib/glob.h: Likewise.
68904         * lib/savedir.c: Likewise.
68905
68906 2006-07-05  Paul Eggert  <eggert@cs.ucla.edu>
68907
68908         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Use AC_CHECK_DECLS_ONCE
68909         rather than AC_CHECK_DECLS for strtoimax and strtoumax.
68910         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Remove; no longer
68911         needed.
68912         All uses removed.
68913         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
68914         * m4/strtoul.m4 (gl_PREREQ_STRTOUL): Likewise.
68915         * m4/exclude.m4 (gl_EXCLUDE): Don't check for isascii; no longer
68916         needed.
68917         * m4/getdate.m4 (gl_GETDATE): Likewise.
68918         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Likewise.
68919         * m4/memcasecmp.m4 (gl_MEMCASECMP): Likewise.
68920         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
68921         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
68922         * m4/strtoul.m4 (gl_PREREQ_STRTOUL): Likewise.
68923         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
68924         * m4/exclude.m4 (gl_EXCLUDE): Don't require AC_C_INLINE; no longer
68925         needed.
68926
68927 2006-07-05  Paul Eggert  <eggert@cs.ucla.edu>
68928
68929         * lib/memcasecmp.c: Include <limits.h>.
68930         (memcasecmp): Don't assume UCHAR_MAX <= INT_MAX.
68931         * lib/strtod.c (strtod): Don't assume isspace works on negative chars.
68932         Don't assume isdigit succeeds only on '0' through '9'.
68933
68934 2006-07-05  Eric Blake  <ebb9@byu.net>
68935
68936         * modules/getaddrinfo (Depends-on): Add snprintf.
68937
68938 2006-07-05  Eric Blake  <ebb9@byu.net>
68939
68940         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Use gl_HEADER_SYS_SOCKET
68941         to avoid 'header present but could not be compiled' on cygwin.
68942
68943 2006-07-05  Eric Blake  <ebb9@byu.net>
68944
68945         * lib/getaddrinfo.h (NI_NUMERICHOST, NI_NUMERICSERV): Define if
68946         missing from netdb.h.
68947         * lib/getaddrinfo.c (includes): Include inet_ntop and snprintf.
68948
68949 2006-07-05  Derek R. Price  <derek@ximbiot.com>
68950
68951         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Don't require AC_HEADER_STDC;
68952         no longer needed.
68953         * m4/exclude.m4 (gl_EXCLUDE): Likewise.
68954         * m4/getdate.m4 (gl_GETDATE): Likewise.
68955         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Likewise.
68956         * m4/memcasecmp.m4 (gl_MEMCASECMP): Likewise.
68957         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
68958         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
68959         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
68960
68961 2006-07-05  Derek R. Price  <derek@ximbiot.com>
68962
68963         * lib/exclude.c (IN_CTYPE_DOMAIN, is_space): Remove; no longer needed.
68964         All uses of is_space replaced by isspace.
68965         * lib/exit.h: Don't talk about STDC_HEADERS.
68966         * lib/fnmatch.c (ISASCII): Remove; no longer needed.  All uses removed.
68967         (ISPRINT, ISDIGIT, ISALNUM, ISALPHA, ISCNTRL, ISLOWER, ISPUNCT):
68968         (ISSPACE, ISUPPER, ISXDIGIT): Remove; no longer needed.  All uses
68969         replaced by isprint etc.
68970         * lib/getdate.y (IN_CTYPE_DOMAIN, ISSPACE, ISALPHA, ISLOWER): Likewise.
68971         * lib/getusershell.c (IN_CTYPE_DOMAIN, ISSPACE): Likewise.
68972         * lib/memcasecmp.c (IN_CTYPE_DOMAIN, ISLOWER, TOUPPER): Likewise.
68973         * lib/strtod.c (IN_CTYPE_DOMAIN, ISSPACE, ISDIGIT, TOLOWER): Likewise.
68974         * lib/strtol.c (IN_CTYPE_DOMAIN): Likewise.
68975         * lib/xstrtol.c (IN_CTYPE_DOMAIN, ISSPACE): Likewise.
68976
68977 2006-07-05  Bruno Haible  <bruno@clisp.org>
68978
68979         * m4/strndup.m4 (gl_FUNC_STRNDUP): When cross-compiling, check whether
68980         the function exists, before testing against AIX.
68981         Reported by Martin Lambers <marlam@marlam.de>.
68982
68983 2006-07-04  Paul Eggert  <eggert@cs.ucla.edu>
68984
68985         * modules/cycle-check (lib_SOURCES): Add same-inode.h.
68986         From Mark D. Baushke.
68987
68988 2006-07-04  Paul Eggert  <eggert@cs.ucla.edu>
68989
68990         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Prepend three slashes
68991         to the absolute name, not just one, to bypass Sun C 5.8's
68992         "warning: #include of /usr/include/... may be non-portable".
68993
68994 2006-07-04  Eric Blake  <ebb9@byu.net>
68995
68996         * modules/dirname-tests: New test module.
68997         * tests/test-dirname.c: New file, replacing dirname.c
68998         TEST_DIRNAME section that was recently deleted.
68999
69000 2006-07-04  Bruno Haible  <bruno@clisp.org>
69001
69002         Assume ANSI C header files and <ctype.h> functions.
69003         * lib/mbswidth.c (IN_CTYPE_DOMAIN, ISPRINT, ISCNTRL): Remove macros.
69004         (mbsnwidth): Use isprint, iscntrl instead.
69005
69006 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
69007
69008         Merge from coreutils.
69009         * MODULES.html.sh: Add xstrtold.
69010         * modules/xstrtold: New file.
69011         * modules/cycle-check (Files): Add lib/same-inode.h.
69012         * modules/dirname (Files): Add m4/double-slash-root.m4.
69013         * modules/getcwd (Files): Add m4/getcwd-abort-bug.m4.
69014         * modules/mkdir-p (Files): Add lib/same-inode.h.
69015         * modules/same (Files): Add lib/same-inode.h.
69016
69017 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
69018
69019         * m4/absolute-header.m4: Renamed from full-header-path.m4.
69020         This is to keep the terminology clean; POSIX talks about
69021         "absolute pathnames", not "full pathnames", but the GNU
69022         Coding Standards say to use "path" for something else;
69023         so use "absolute" to keep both sides happy.
69024         (gl_ABSOLUTE_HEADER): Renamed from gl_FULL_HEADER_PATH.
69025         Set gl_absolute_header, not gl_full_header_path.
69026         Set gl_cv_absolute_<header>, not gl_full_path_<header>.
69027         Define ABSOLUTE_<HEADER>, not FULL_PATH_<HEADER>.
69028         All uses changed.
69029
69030         Merge from coreutils.
69031
69032         2006-06-30  Paul Eggert  <eggert@cs.ucla.edu>
69033
69034         * m4/c-strtod.m4 (gl_C_STRTOLD): Add c-strtod.c to LIBSOURCES.
69035         Require gl_USE_SYSTEM_EXTENSIONS, not gl_C_STRTOD, since we don't
69036         want to require the building of c-strtod.o.
69037         * m4/lib-check.m4 (cu_LIB_CHECK): Remove SEQ_LIBM, since seq no longer
69038         needs -lm directly.
69039         * m4/xstrtod.m4 (gl_XSTRTOLD): New macro.
69040
69041         2006-06-19  Paul Eggert  <eggert@cs.ucla.edu>
69042
69043         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Prefer binutils's
69044         --as-needed option if available.  Problem reported by Albert Chin in
69045         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00114.html>.
69046         However, use -Wl,--as-needed, not bare --as-needed, since HP-UX 11.11
69047         cc merely issues a bunch of annoying warnings for --as-needed
69048         (this problem was reported by Bob Proulx).  Also, try linking with
69049         -lm to detect a bug in binutils 2.16 (this problem was reported
69050         by Ralf Wildenhues).
69051
69052         2006-06-18  Jim Meyering  <jim@meyering.net>
69053
69054         Test for a bug that causes glibc's getcwd to suffer a failed assertion.
69055         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): New file and
69056         macro.
69057         * m4/getcwd.m4 (gl_FUNC_GETCWD): If we detect support for getcwd_null,
69058         also check for glibc-2.4's abort-inducing bug.
69059
69060         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Fix typo.
69061         Low-probability clean-up should be to use rmdir to get rid of
69062         the just-created directory, not unlink.
69063
69064         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): If ftruncate is missing, make
69065         configure fail, and request a bug report to inform us about it.
69066         Add a comment that, barring reports to the contrary, in 2007 we'll
69067         assume ftruncate is universally available.
69068
69069         2006-04-17  Paul Eggert  <eggert@cs.ucla.edu>
69070
69071         * m4/filemode.m4 (gl_FILEMODE): Check for strmode declaration.
69072
69073         2006-03-12  Jim Meyering  <jim@meyering.net>
69074
69075         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Add same-inode.h to the list.
69076         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Likewise.
69077         * m4/same.m4 (gl_SAME): Likewise.
69078         * m4/root-dev-ino.m4 (gl_ROOT_DEV_INO): Likewise.
69079
69080         2006-03-11  Eric Blake  <ebb9@byu.net>
69081
69082         * m4/double-slash-root.m4: New file, provides gl_DOUBLE_SLASH_ROOT.
69083         * m4/dirname.m4 (gl_DIRNAME): Use gl_DOUBLE_SLASH_ROOT.
69084         * m4/dos.m4 (FILE_SYSTEM_PREFIX_LEN): Move from here to dirname.h.
69085         (FILE_SYSTEM_DRIVE_PREFIX_CAN_BE_RELATIVE): New define.
69086
69087 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
69088
69089         * lib/stdint_.h: Include <sys/types.h> after @FULL_PATH_STDINT_H@, for
69090         MacOS X 10.4.6.  Don't mention <sys/int_types.h>.  Problems
69091         reported by Mark D. Baushke, one in
69092         <http://lists.gnu.org/archive/html/bug-gnulib/2006-07/msg00015.html>.
69093
69094         Merge from coreutils.
69095
69096         * lib/.cppi-disable: Add stdint_.h.
69097         * lib/.cvsignore: Add stdint.h.
69098
69099         2006-06-30  Paul Eggert  <eggert@cs.ucla.edu>
69100
69101         * lib/xstrtod.c (XSTRTOD, DOUBLE): New macros, so that we can support
69102         both double and long double versions.
69103         (XSTRTOD): Renamed from xstrtod.  Use DOUBLE internally.
69104         * lib/xstrtold.c: New file.
69105         * lib/xstrtod.h (xstrtold): New decl.
69106
69107         2006-05-22  Paul Eggert  <eggert@cs.ucla.edu>
69108
69109         * lib/filemode.c (setst): Remove.
69110         (strmode): Rewrite to avoid setst.  This makes the code shorter,
69111         (arguably) clearer, and the generated code is a bit smaller on my
69112         Debian GNU/Linux stable x86 host.
69113
69114         2006-04-17  Paul Eggert  <eggert@cs.ucla.edu>
69115
69116         * lib/filemode.c: Include "filemode.h" first, to test the interface.
69117         Assume that filemode.h includes sys/types.h and sys/stat.h.
69118         (HAVE_ST_DM_MODE): New macro, moved here from ls.c.
69119         (ftypelet): Reorder to put common cases first, for efficiency.
69120         Add 'P', 'w'.  Remove 'M', since it's now the caller's responsibility
69121         to do 'M'.
69122         (strmode): Renamed from mode_string, and now stores 12 bytes instead
69123         of 10, for compatibility with FreeBSD.  All callers changed.
69124         (filemodestring): Now stores 12 bytes instead of 10, and sets file
69125         types that can't be deduced solely from st_mode.  First arg is now a
69126         const pointer.
69127         * lib/filemode.h (HAVE_DECL_STRMODE): Include <string.h> for strmode.
69128         (strmode): Renamed from mode_string.
69129         (filemodestring): New decl.
69130         * lib/stat-macros.h: Don't undef S_ISDOOR, since it's never buggy.
69131         (S_ISDOOR): Don't bother with S_IFDOOR, since that code is never
69132         needed.
69133         (S_ISPORT, S_ISWHT): New macros, if not already defined.
69134
69135         2006-04-12  Paul Eggert  <eggert@cs.ucla.edu>
69136
69137         * lib/fsusage.c: Don't include <inttypes.h> or <stdint.h>, since
69138         fsusage.h now does that.  Include fsusage.h first, to test interface.
69139         Prefer statvfs if it works, since it's blessed by POSIX.  Attempt
69140         at most one method (the old code could have generated decls that
69141         didn't conform to C89, not that this was ever exercised).
69142         * lib/fsusage.h: Include <inttypes.h> and <stdint.h> if they exist.
69143
69144         2006-03-19  Jim Meyering  <jim@meyering.net>
69145
69146         Work even in a chroot where d_ino values for entries in "/"
69147         don't match the stat.st_ino values for the same names.
69148         * lib/getcwd.c (__getcwd): When no d_ino value matches the target inode
69149         number, iterate through all entries again, using lstat instead.
69150         Reported by Kenshi Muto in http://bugs.debian.org/355810, and by
69151         Zouhir Hafidi in https://bugzilla.redhat.com/bugzilla/190656.
69152
69153         * lib/getcwd.c (__getcwd): Clarify a comment.
69154         Use memcpy in place of a call to strcpy.
69155
69156         2006-03-12  Jim Meyering  <jim@meyering.net>
69157
69158         * lib/fts-cycle.c (leave_dir): If cycle-check's saved dev-ino pair
69159         matches that of the current directory (which we're about to chdir ".."
69160         out of), then save the dev-ino of the parent, instead.
69161
69162         * lib/same-inode.h (SAME_INODE): New file/macro.
69163         * lib/chdir-safer.c (SAME_INODE): Remove definition.
69164         Include "same-inode.h", instead.
69165         * lib/same.c: Likewise.
69166         * lib/cycle-check.h: Include "same-inode.h".
69167         (CYCLE_CHECK_REFLECT_CHDIR_UP): Define.
69168         * lib/cycle-check.c (SAME_INODE): Remove definition.
69169         * lib/root-dev-ino.h: Include "same-inode.h".
69170
69171         2006-03-11  Eric Blake  <ebb9@byu.net>
69172
69173         * lib/same.c (same_name): s/base_name/last_component/
69174         * lib/backupfile.c (check_extension, numbered_backup): Likewise.
69175         * lib/filenamecat.c (file_name_concat): Likewise.
69176
69177         2006-03-11  Eric Blake  <ebb9@byu.net>,
69178                     Paul Eggert  <eggert@cs.ucla.edu>
69179
69180         * lib/dirname.h (FILE_SYSTEM_PREFIX_LEN): Move here from dos.m4.
69181         [FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX]: Don't treat 1: as a
69182         drive prefix.
69183         (IS_ABSOLUTE_FILE_NAME): Treat all drive letters as absolute on
69184         platforms like cygwin with FILE_SYSTEM_DRIVE_PREFIX_IS_ABSOLUTE.
69185         (last_component): New method.
69186         * lib/dirname.c (dir_len): Determine when drive letters need a
69187         subsequent slash.  Preserve // when it is special.
69188         (dir_name): Don't append dot when drive letter is absolute.
69189         [TEST_DIRNAME]: Move into a full-blown gnulib test.
69190         * lib/basename.c (base_name): New semantics - malloc the result.
69191         Preserve // when it is special.  Preserve relative files that look
69192         like drive letters.
69193         (base_len): Preserve // when it is special.
69194         (last_component): New method, similar to old base_name semantics.
69195         * lib/stripslash.c (strip_trailing_slashes): Use last_component, not
69196         base_name.  Strip redundant slashes from ///.
69197
69198 2006-07-03  Jim Meyering  <jim@meyering.net>
69199
69200         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Abort if this
69201         macro is used before the first cycle_check call.
69202
69203 2006-07-03  Eric Blake  <ebb9@byu.net>
69204
69205         * modules/dirname (Depends-on): Add xstrndup.
69206
69207 2006-07-02  Paul Eggert  <eggert@cs.ucla.edu>
69208
69209         * m4/stdint.m4 (gl_STDINT_H): Use more-mnemonic identifiers for
69210         test cases, so that config.log is a bit easier to follow.
69211
69212 2006-07-02  Paul Eggert  <eggert@cs.ucla.edu>
69213
69214         * lib/stdint_.h (intmax_t, uintmax_t): Prefer long to long long if
69215         both are 64 bits, since this seems to be the tradition, and this
69216         prevents gcc -Wformat from warning about usages with PRIuMAX.  If
69217         we ever run into a host that prefers long long to long in this
69218         case, we'll need another configure-time test.  Problem reported by
69219         Jim Meyering.
69220
69221 2006-07-02  Eric Blake  <ebb9@byu.net>
69222
69223         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Simplify by using AC_CHECK_DECLS.
69224
69225 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
69226
69227         * modules/inttypes (Depends-on): No longer depends on stdint.
69228         * modules/stdint (Description): Say more about assumptions.
69229         Say that the fast types might differ.  Say macros are used.
69230         (Files): Remove m4/size_max.m4, m4/wchar_t.m4.  Add m4/longlong.m4.
69231         (Makefile.am): Revise list of substituted symbols to match
69232         new stdint.m4.
69233         * modules/stdint-tests (Files): Add m4/wchar_t.m4, m4/wint_t.m4.
69234         (configure.ac): Add gt_TYPE_WCHAR_T, gt_TYPE_WINT_T.
69235         * tests/test-stdint.c (verify_same_types)
69236         [! (__GNUC__ >= 2 && DO_PEDANTIC)]: Put in a decl, so that
69237         the code conforms to C99/C89.
69238         Test for WCHAR_MIN and WCHAR_MAX only if HAVE_WCHAR_T.
69239         Test for WINT_MIN and WINT_MAX only if HAVE_WINT_T.
69240
69241 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
69242
69243         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Backport from Autoconf 2.60,
69244         but fix a bug, by requiring at least 64 bits.
69245         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Likewise.
69246         * m4/longlong.m4 (gl_AC_TYPE_LONG_LONG): Now just call
69247         AC_TYPE_LONG_LONG_INT.  This macro is obsolete and will go soon.
69248         * m4/ulonglong.m4 (gl_AC_TYPE_UNSIGNED_LONG_LONG): Likewise.
69249
69250         * m4/stdint.m4 (gl_STDINT_H): Rewrite to accommodate stdint_.h
69251         changes.  Make 2.59 a prerequisite.  Check and substitute for
69252         HAVE_LONG_LONG_INT.  Rely on Autoconf to check for stdint.h and
69253         inttypes.h.  Do not use special include files; just use the
69254         defaults.  Check for sys/inttypes.h and sys/bitypes.h in the usual
69255         way now.  Remove no-longer-needed tests for HAVE_LONG_64BIT,
69256         HAVE_LONG_LONG_64BIT, int8_t, int16_t, int32_t, int64_t, uint8_t,
69257         uint16_t, uint32_t uint64_t, int_least8_t, int_least16_t,
69258         int_least32_t, int_least64_t, uint_least8_t, uint_least16_t,
69259         uint_least32_t, uint_least64_t, int_fast8_t, int_fast16_t,
69260         int_fast32_t, int_fast64_t, uint_fast8_t uint_fast16_t,
69261         uint_fast32_t, uint_fast64_t, intptr_t, uintptr_t, intmax_t,
69262         uintmax_t, INT8_MIN, INT8_MAX, UINT8_MAX, INT16_MIN, INT16_MAX,
69263         UINT16_MAX, INT32_MIN, INT32_MAX, UINT32_MAX, INT64_MIN,
69264         INT64_MAX, UINT64_MAX, INT_LEAST8_MIN, INT_LEAST8_MAX,
69265         UINT_LEAST8_MAX, INT_LEAST16_MIN, INT_LEAST16_MAX,
69266         UINT_LEAST16_MAX, INT_LEAST32_MIN, INT_LEAST32_MAX,
69267         UINT_LEAST32_MAX, INT_LEAST64_MIN, INT_LEAST64_MAX,
69268         UINT_LEAST64_MAX, INT_FAST8_MIN, INT_FAST8_MAX, UINT_FAST8_MAX,
69269         INT_FAST16_MIN, INT_FAST16_MAX, UINT_FAST16_MAX, INT_FAST32_MIN,
69270         INT_FAST32_MAX, UINT_FAST32_MAX, INT_FAST64_MIN, INT_FAST64_MAX,
69271         UINT_FAST64_MAX, INTPTR_MIN, INTPTR_MAX, UINTPTR_MAX, INTMAX_MIN,
69272         INTMAX_MAX, UINTMAX_MAX, PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN,
69273         SIG_ATOMIC_MAX, SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN,
69274         WINT_MAX.  Check for C99 conformance more strictly, by detecting
69275         bugs in glibc 2.4, Solaris 10, and OpenBSD 3.9.  On the other hand do
69276         not check for things that C99 does not require, e.g., int8_t.  If
69277         a test isn't needed unless <stdint.h> isn't working, and is
69278         unlikely to be needed for any other reason, then don't do it
69279         unless <stdint.h> isn't working.  Do not check for ptrdiff_t or
69280         size_t, since we assume C89 freestanding at least.  Do not check
69281         for sig_atomic_t, wchar_t, or wint_t, since the code now does
69282         the right thing even if the types are not defined.  Instead use:
69283         (gl_STDINT_TYPE_PROPERTIES): New macro.
69284         (gl_HEADER_STDINT_H, gl_HEADER_INTTYPES_H): Remove.  Don't bother
69285         testing whether <sys/types.h> clashes, as Autoconf does this for
69286         us now.  All uses removed.
69287         (gl_STDINT_CHECK_TYPES, gl_STDINT_MISSING_BOUND):
69288         (gl_STDINT_MISSING_BOUNDS, gl_STDINT_MISSING_BOUNDS2):
69289         (gl_CHECK_TYPE_SAME):
69290         Remove; no longer needed.
69291         (gl_STDINT_BITSIZEOF): Don't bother to check whether the type
69292         exists, since we'll return 0 anyway in that case.
69293         (gl_INTEGER_TYPE_SUFFIX, gl_STDINT_INCLUDES): New macros.
69294
69295 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
69296
69297         * lib/stdint_.h (_GL_STDINT_H): Renamed from _STDINT_H, to avoid
69298         possible collision with system files.
69299         (<stdio.h>, <time.h>, <wchar.h>) [defined __cplusplus && ! defined
69300         __STDC_CONSTANT_MACROS)]: Do not include, since we don't need
69301         WCHAR_MIN and WCHAR_MAX in this case.
69302         (<stddef.h>): Do not include; no longer needed.
69303         (<sys/types.h>): Include if @HAVE_SYS_TYPES_H@, not if
69304         (defined(__OpenBSD__) || defined(__bsdi__) || defined(__sgi)).
69305         (<sys/inttypes.h>): Include if @HAVE_SYS_INTTYPES_H@ &&
69306         !@HAVE_INTTYPES_H@, not if (defined(__FreeBSD__)
69307         && (__FreeBSD__ >= 3) && (__FreeBSD__ <= 4)).
69308         (__STDINT_H__) [@HAVE_STDINT_H@ && defined __sgi && ! defined
69309         __c99]: Define, to work around IRIX <stdint.h> incompatibility.
69310         (@FULL_PATH_STDINT_H@) [!(defined(__sgi) && @HAVE_INTTYPES_H@ &&
69311         !defined(__c99))]: Include in this case too, since it's harmless
69312         now.
69313         (<inttypes.h>) [@HAVE_INTTYPES_H@]: Include, since it's no longer
69314         dangerous to do so.
69315         (@FULL_PATH_INTTYPES_H@) [(defined(__hpux) || defined(_AIX)) &&
69316         @HAVE_INTTYPES_H@]: Do not include, since we now include <inttypes.h>.
69317         (_STDINT_MIN, _STDINT_MAX): New macros.
69318         (int8_t, uint8_t, int16_t, uint16_t, int32_t, uint32_t, int64_t):
69319         (uint64_t, int_least8_t, uint_least8_t, int_least16_t):
69320         (uint_least16_t, int_least32_t, uint_least32_t, int_least64_t):
69321         (uint_least64_t, int_fast8_t, uint_fast8_t, int_fast16_t):
69322         (uint_fast16_t, int_fast32_t, uint_fast32_t, int_fast64_t):
69323         (uint_fast64_t, intptr_t, uintptr_t, intmax_t, uintmax_t): Now
69324         macros, not typedefs; this simplifies things quite a bit.
69325         Use long int for all types narrower than int64_t.
69326         (intmax_t, uintmax_t, INTMAX_C, UINTMAX_C):
69327         Define in terms of long long int or int64_t or long int,
69328         not int64_t or int32_t.  This saves some compile-time testing.
69329         (INT8_MIN, INT8_MAX, UINT8_MAX, INT16_MIN, INT16_MAX, UINT16_MAX):
69330         (INT32_MIN, INT32_MAX, UINT32_MAX, INT64_MIN, INT64_MAX):
69331         (UINT64_MAX, INT_LEAST8_MIN, INT_LEAST8_MAX, UINT_LEAST8_MAX):
69332         (INT_LEAST16_MIN, INT_LEAST16_MAX, UINT_LEAST16_MAX):
69333         (INT_LEAST32_MIN, INT_LEAST32_MAX, UINT_LEAST32_MAX):
69334         (INT_LEAST64_MIN, INT_LEAST64_MAX, UINT_LEAST64_MAX, INT_FAST8_MIN):
69335         (INT_FAST8_MAX, UINT_FAST8_MAX, INT_FAST16_MIN, INT_FAST16_MAX):
69336         (UINT_FAST16_MAX, INT_FAST32_MIN, INT_FAST32_MAX, UINT_FAST32_MAX):
69337         (INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX, INTPTR_MIN):
69338         (INTPTR_MAX, UINTPTR_MAX, INTMAX_MIN, INTMAX_MAX, UINTMAX_MAX):
69339         (PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX):
69340         (SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN, WINT_MAX):
69341         undef any previous version and define our own version, for
69342         simplicity and consistency with the new macros for types.
69343         (PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX):
69344         (SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN, WINT_MAX):
69345         Simplify definitions by using _STDINT_MIN and _STDINT_MAX
69346         where appropriate.  Rely on new symbols @PTRDIFF_T_SUFFIX@,
69347         @SIG_ATOMIC_T_SUFFIX@, @SIZE_T_SUFFIX@, @WCHAR_T_SUFFIX@,
69348         @WINT_T_SUFFIX@ to keep things simple here.
69349         (UINT8_C, UINT16_C, UINT32_C, INT64_C, UINT64_C):
69350         Simplify by assuming typical 8/16/32/64 host, since we're
69351         already doing that elsewhere anyway.
69352         Use (LONG_MAX >> 31 >> 31 == 1) rather than @HAVE_LONG_64BIT@,
69353         and assume long long int is 64 bits if available.  This
69354         speeds up 'configure'.
69355
69356 2006-07-01  Eric Blake  <ebb9@byu.net>
69357
69358         * m4/stdarg.m4 (gl_STDARG_H): Use proper AH_VERBATIM.
69359         Reported by Andreas Buening.
69360
69361 2006-07-01  Eric Blake  <ebb9@byu.net>
69362
69363         * m4/stdarg.m4 (gl_STDARG_H): Properly parenthesize gl_va_copy.
69364
69365 2006-06-30  Jim Hyslop  <jhyslop@dreampossible.ca>  (tiny change)
69366
69367         * lib/getaddrinfo.c: fixed typo
69368
69369 2006-06-29  Jim Meyering  <jim@meyering.net>
69370
69371         * modules/strftime (Maintainer): Add my name, since with the
69372         FPRINTFTIME changes strftime.c has forked from glibc.
69373
69374 2006-06-29  Eric Blake  <ebb9@byu.net>
69375
69376         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Use AC_C_INLINE.
69377
69378 2006-06-29  Eric Blake  <ebb9@byu.net>
69379
69380         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): New file.
69381
69382 2006-06-29  Eric Blake  <ebb9@byu.net>
69383
69384         * lib/stat_.h: New file.
69385
69386 2006-06-29  Eric Blake  <ebb9@byu.net>
69387
69388         * lib/stat_.h (rpl_mkdir): Declare inline, to avoid warnings about
69389         unused static function.
69390
69391 2006-06-29  Eric Blake  <ebb9@byu.net>
69392
69393         * doc/functions.texi (Function Portability): Document missing lstat
69394         on mingw.
69395
69396 2006-06-29  Eric Blake  <ebb9@byu.net>
69397
69398         * MODULES.html.sh: Add sys_stat.
69399         * modules/sys_stat: New module.
69400         * modules/mkstemp (Depends-on): Add sys_stat.
69401
69402 2006-06-29  Derek R. Price  <derek@ximbiot.com>
69403
69404         * m4/strftime.m4: Don't call AC_FUNC_STRFTIME.
69405
69406 2006-06-29  Derek R. Price  <derek@ximbiot.com>
69407
69408         * m4/c-bs-a.m4: Removed.
69409
69410 2006-06-29  Derek R. Price  <derek@ximbiot.com>
69411
69412         * lib/strftime.c: Assume strftime() exists.
69413
69414 2006-06-29  Derek Price  <derek@ximbiot.com>
69415
69416         * modules/c-bs-a: Removed - \a is C89.
69417         * MODULES.html.sh: Remove c-bs-a.
69418
69419 2006-06-29  Bruno Haible  <bruno@clisp.org>
69420
69421         * modules/wcwidth (License): Change to LGPL.
69422
69423 2006-06-28  Simon Josefsson  <jas@extundo.com>
69424
69425         * tests/test-getaddrinfo.c: Test getnameinfo too.  Call WSAStartup
69426         on _WIN32.
69427
69428         * modules/getaddrinfo (Depends-on): Add inet_ntop, needed by
69429         getnameinfo.
69430
69431 2006-06-28  Simon Josefsson  <jas@extundo.com>
69432
69433         * m4/getaddrinfo.m4: Look for getnameinfo prototypes too.
69434
69435 2006-06-28  Simon Josefsson  <jas@extundo.com>
69436
69437         * lib/getaddrinfo.c: Try to load ws2_32.dll on Windows, to find the
69438         functions there.  It will succeed on Windows XP, but on Windows
69439         2000 and (presumably) earlier, it will fail, and use the internal
69440         re-implementation.
69441         (use_win32_p): New function.
69442         (getaddrinfo): Use strtoul on servname, to support numeric ports.
69443         Support AI_NUMERICSERV to disable getservbyname.
69444         (getnameinfo): New function, only supports
69445         NI_NUMERICHOST|NI_NUMERICSERV for now.
69446
69447         * lib/getaddrinfo.h: Test and check for AI_* flags separately, MinGW
69448         only have some of them.  Add AI_NUMERICSERV.  Add prototype for
69449         getnameinfo.
69450
69451 2006-06-28  Eric Blake  <ebb9@byu.net>
69452
69453         * modules/wcwidth: New file.
69454         * modules/mbchar (Depends-on): Add wcwidth.
69455         * modules/mbswidth (Depends-on): Add wcwidth.
69456         * MODULES.html.sh: Add wcwidth.
69457
69458 2006-06-28  Eric Blake  <ebb9@byu.net>
69459
69460         * m4/mbswidth.m4 (gl_MBSDWIDTH): Move wcwidth from here...
69461         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): ...to this new file.
69462
69463 2006-06-28  Eric Blake  <ebb9@byu.net>
69464
69465         * lib/xvasprintf.h: Fix comments.
69466
69467 2006-06-28  Eric Blake  <ebb9@byu.net>
69468
69469         * lib/mbchar.h (wcwidth): Include wcwidth.h.
69470         * lib/mbswidth.c (wcwidth): Move from here...
69471         * lib/wcwidth.h: ...to this new file.
69472
69473 2006-06-28  Derek R. Price  <derek@ximbiot.com>
69474
69475         * m4/savedir.m4: Remove AC_FUNC_CLOSEDIR_VOID requirement.
69476
69477         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Don't require AC_C_CONST, since
69478         it's obsolete.
69479         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Likewise.
69480
69481 2006-06-28  Derek R. Price  <derek@ximbiot.com>
69482
69483         * lib/savedir.c (CLOSEDIR): Remove.  All uses changed to closedir.
69484         Autoconf 2.60 says this stuff was obsolete.
69485
69486 2006-06-28  Bruno Haible  <bruno@clisp.org>
69487
69488         * modules/wcwidth (Files): Add m4/wchar_t.m4.
69489
69490 2006-06-28  Bruno Haible  <bruno@clisp.org>
69491
69492         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Also require AC_C_INLINE and
69493         gt_TYPE_WCHAR_T.
69494
69495 2006-06-28  Bruno Haible  <bruno@clisp.org>
69496
69497         * lib/wcwidth.h: Declare nothing if !HAVE_WCHAR_T. Provide a fallback
69498         declaration for wcwidth.
69499         * lib/mbswidth.c: Restore the includes of <wchar.h> and <wctypes.h>.
69500
69501 2006-06-28  Bruno Haible  <bruno@clisp.org>
69502
69503         * lib/mkdtemp.c [MINGW]: Include <io.h>.
69504         (mkdir): Define using _mkdir.
69505
69506 2006-06-28  Bruno Haible  <bruno@clisp.org>
69507
69508         * lib/getaddrinfo.h: Fix POSIX URL.
69509         * lib/getaddrinfo.c (WIN32_NATIVE): New macro. Use it instead of
69510         _WIN32.
69511         (use_win32_p): Make static.
69512         (getaddrinfo): Reject service name if it is empty or does not consist
69513         solely of decimal digits, or if its value is > 65535.
69514         (getnameinfo): Remove useless casts.
69515
69516 2006-06-27  Simon Josefsson  <jas@extundo.com>
69517
69518         * modules/sys_select: New file, suggested by Bruno Haible, Paul
69519         Eggert and Martin Lambers.
69520
69521 2006-06-27  Simon Josefsson  <jas@extundo.com>
69522
69523         * m4/sys_select_h.m4: New file, suggested by Bruno Haible, Paul
69524         Eggert and Martin Lambers.
69525
69526 2006-06-27  Bruno Haible  <bruno@clisp.org>
69527
69528         * m4/stdint.m4 (gl_STDINT_BITSIZEOF): For nonexistent types, set the
69529         result to 0, not to empty.
69530         Reported by Martin Neitzel <neitzel@sco.gaertner.de>.
69531
69532 2006-06-27  Bruno Haible  <bruno@clisp.org>
69533
69534         * lib/stdint_.h (intmax_t, uintmax_t): Undefine before typedef.
69535
69536 2006-06-26  Simon Josefsson  <jas@extundo.com>
69537
69538         * m4/inet_ntop.m4: Don't check for sys/types.h, we assume it is
69539         present.
69540
69541 2006-06-26  Paul Eggert  <eggert@cs.ucla.edu>
69542
69543         * lib/base64.c (B64): Use _ as the formal parameter, not x, to avoid
69544         bug in IBM C V6 for AIX.  Problem reported by Larry Jones in
69545         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00181.html>.
69546
69547 2006-06-26  Mark D. Baushke  <mdb@gnu.org>
69548
69549         * m4/stdint.m4 (gl_STDINT_H): Treat BSD/OS like OpenBSD.
69550
69551 2006-06-26  Bruno Haible  <bruno@clisp.org>
69552
69553         * modules/stdint (Makefile.am): Also substitute HAVE_WCHAR_H.
69554
69555 2006-06-26  Bruno Haible  <bruno@clisp.org>
69556
69557         * m4/stdint.m4 (gl_STDINT_H): Test also for <wchar.h>.
69558
69559 2006-06-26  Bruno Haible  <bruno@clisp.org>
69560
69561         * m4/stdint.m4 (gl_STDINT_H): Don't include <stdint.h> when using the
69562         SGI C compiler in pre-C99 mode.
69563         Suggested by Mark D. Baushke and Larry Jones.
69564
69565 2006-06-26  Bruno Haible  <bruno@clisp.org>
69566
69567         * lib/stdint_.h: Include <wchar.h> if necessary for WCHAR_MIN or
69568         WCHAR_MAX.
69569         Reported by Mark D. Baushke and Larry Jones.
69570
69571 2006-06-26  Bruno Haible  <bruno@clisp.org>
69572
69573         * lib/stdint_.h: Don't include <stdint.h> when using the SGI C compiler
69574         in pre-C99 mode.
69575         Suggested by Mark D. Baushke and Larry Jones.
69576
69577 2006-06-23  Simon Josefsson  <jas@extundo.com>
69578             Bruno Haible  <bruno@clisp.org>
69579
69580         * gnulib-tool (func_emit_lib_Makefile_am): Define MOSTLYCLEANDIRS.
69581         Emit mostlyclean-local rule.
69582         (func_emit_tests_Makefile_am): Likewise.
69583         * modules/sys_socket (Makefile.am): Use MOSTLYCLEANDIRS.
69584
69585 2006-06-23  Mark D. Baushke  <mdb@gnu.org>
69586
69587         * lib/stdint_.h: Treat BSD/OS like OpenBSD.
69588
69589 2006-06-23  Bruno Haible  <bruno@clisp.org>
69590
69591         * tests/test-stdint.c: Update to match ISO C 99 Technical
69592         Corrigendum 1.
69593
69594 2006-06-23  Bruno Haible  <bruno@clisp.org>
69595
69596         * m4/stdint.m4 (gl_STDINT_H): Treat IRIX like OpenBSD.
69597
69598 2006-06-23  Bruno Haible  <bruno@clisp.org>
69599
69600         * lib/stdint_.h: Treat IRIX like OpenBSD.
69601
69602 2006-06-23  Bruno Haible  <bruno@clisp.org>
69603
69604         * lib/stdint_.h (UINT8_C, UINT16_C, UINT32_C): Define according to
69605         ISO C 99 Technical Corrigendum 1.
69606
69607 2006-06-22  Simon Josefsson  <jas@extundo.com>
69608
69609         * m4/sockpfaf.m4: Include winsock2.h too, to make it work under
69610         MinGW.
69611
69612 2006-06-22  Paul Eggert  <eggert@cs.ucla.edu>
69613
69614         * lib/glob.c (collated_compare): Remove 'const' uses that weren't
69615         needed.  Some compiler complained about some of them.  Problem reported
69616         by Larry Jones in
69617         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00172.html>.
69618
69619 2006-06-21  Simon Josefsson  <jas@extundo.com>
69620
69621         * tests/test-getaddrinfo.c: New file.
69622
69623         * modules/getaddrinfo-tests: New file.
69624
69625         * MODULES.html.sh: Add inet_pton.
69626
69627         * modules/inet_pton: New file.
69628
69629 2006-06-21  Simon Josefsson  <jas@extundo.com>
69630
69631         * m4/getaddrinfo.m4: Don't define WINVER.  Look for gethostbyname in
69632         -lws2_32 too.  Fixes getaddrinfo on Windows 2000, with the price
69633         of using the (limited) gnulib implementation on Windows XP.
69634
69635         * m4/inet_pton.m4: New file.
69636
69637 2006-06-21  Simon Josefsson  <jas@extundo.com>
69638
69639         * lib/getaddrinfo.c (getaddrinfo): Set ai_family in the return
69640         variable.
69641
69642         * lib/socket_.h: Don't define WINVER.
69643
69644         * lib/inet_pton.h, inet_pton.c: New file, taken from glibc but
69645         slightly modified to work in gnulib.
69646
69647 2006-06-21  Simon Josefsson  <jas@extundo.com>
69648
69649         * doc/gnulib.texi (Windows sockets): Add.
69650
69651 2006-06-21  Paul Eggert  <eggert@cs.ucla.edu>
69652
69653         * lib/read-file.c (fread_file): Start with buffer allocation of
69654         0 bytes rather than 1 byte; this simplifies the code.
69655         Don't invoke feof; it's not needed.  Refactor to avoid duplicate
69656         code to free buffer and save/restore errno.
69657         (internal_read_file): Remove unused local.
69658
69659 2006-06-20  Paul Eggert  <eggert@cs.ucla.edu>
69660
69661         * lib/openat.c (openat): Use ?:, not if, to work around GCC bug 4210
69662         <http://gcc.gnu.org/bugzilla/show_bug.cgi?id=4210>.
69663         Problem reported by Denis Excoffier in
69664         <http://lists.gnu.org/archive/html/bug-tar/2006-06/msg00023.html>.
69665
69666 2006-06-19  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
69667
69668         * modules/sys_socket, modules/socklen: Include sys/types since
69669         FreeBSD 4.x's sys/socket.h needs it.
69670
69671 2006-06-19  Simon Josefsson  <jas@extundo.com>
69672
69673         * lib/inet_ntop.c: Always build inet_ntop4, since inet_ntop6 calls it.
69674
69675 2006-06-19  Paul Eggert  <eggert@cs.ucla.edu>
69676
69677         * lib/alloca_.h (alloca) [defined alloca]: Don't define or declare.
69678
69679 2006-06-19  Bruno Haible  <bruno@clisp.org>
69680
69681         * m4/stdint.m4 (gl_STDINT_H): Enclose the values of FULL_PATH_STDINT_H
69682         and FULL_PATH_INTTYPES_H in angle brackets.
69683         Reported by Mark D. Baushke <mdb@gnu.org>.
69684
69685 2006-06-17  Eric Blake  <ebb9@byu.net>
69686
69687         * m4/rmdir-errno.m4 (gl_FUNC_FMDIR_NOTEMPTY): Assume errno.h declares
69688         errno.
69689
69690 2006-06-17  Bruno Haible  <bruno@clisp.org>
69691
69692         * m4/stdint.m4 (gl_STDINT_H) [FreeBSD >= 5]: Don't include
69693         <sys/inttypes.h>.
69694
69695 2006-06-17  Bruno Haible  <bruno@clisp.org>
69696
69697         * m4/setenv.m4 (gl_PREREQ_SETENV, gl_PREREQ_UNSETENV): Remove test
69698         whether errno is declared. Assume <errno.h> declares errno.
69699
69700 2006-06-17  Bruno Haible  <bruno@clisp.org>
69701
69702         * lib/stdint_.h [FreeBSD >= 5]: Don't include <sys/inttypes.h>.
69703
69704 2006-06-17  Bruno Haible  <bruno@clisp.org>
69705
69706         * lib/stdint_.h (_UINT8_T, _UINT32_T, _UINT64_T): New macros. Fixes a
69707         problem on Solaris 2.5.1.
69708
69709 2006-06-16  Eric Blake  <ebb9@byu.net>
69710
69711         * lib/unsetenv.c [!defined errno]: Assume errno.h declares errno.
69712         * lib/unicodeio.c [!defined errno]: Likewise.
69713         * lib/strtol.c [!defined errno]: Likewise.
69714         * lib/strtod.c [!defined errno]: Likewise.
69715
69716 2006-06-15  Eric Blake  <ebb9@byu.net>
69717
69718         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Work in spite of -Werror.
69719
69720 2006-06-15  Eric Blake  <ebb9@byu.net>
69721
69722         * config/srclist.txt (ssize_t.m4): Lose sync.
69723
69724 2006-06-15  Bruno Haible  <bruno@clisp.org>
69725
69726         * modules/stdint (Files): Include m4/full-header-path.m4,
69727         m4/size_max.m4, m4/wchar_t.m4.
69728         (Makefile.am): Many more substitutions.
69729         * modules/stdint-tests: New file.
69730         * tests/test-stdint.c: New file.
69731
69732 2006-06-15  Bruno Haible  <bruno@clisp.org>
69733
69734         * m4/stdint.m4 (gl_STDINT_H): Rewritten to produce a complete stdint.h.
69735         (gl_HEADER_STDINT_H, gl_HEADER_INTTYPES_H, gl_STDINT_CHECK_TYPES,
69736         gl_STDINT_MISSING_BOUND, gl_STDINT_MISSING_BOUNDS,
69737         gl_STDINT_MISSING_BOUNDS2, gl_STDINT_BITSIZEOF, gl_CHECK_TYPES_SIGNED,
69738         gl_CHECK_TYPE_SAME): New macros.
69739
69740 2006-06-15  Bruno Haible  <bruno@clisp.org>
69741
69742         * m4/size_max.m4 (gl_SIZE_MAX): Make it work also when cross-compiling.
69743
69744 2006-06-15  Bruno Haible  <bruno@clisp.org>
69745
69746         * lib/stdint_.h: Rewritten to be fully auto-configured.
69747         Fixes bug on HP-UX/IA64.
69748
69749 2006-06-11  Paul Eggert  <eggert@cs.ucla.edu>
69750
69751         * lib/getdate.y (__attribute__): Don't define if already defined.
69752         Problem reported by Larry Jones.
69753         * lib/utimens.c (__attribute__): Likewise.
69754
69755 2006-06-04  Paul Eggert  <eggert@cs.ucla.edu>
69756
69757         * lib/regexec.c (group_nodes_into_DFAstates): Fix a buffer overrun
69758         reported by Andreas Schwab.
69759
69760 2006-05-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
69761             Bruno Haible  <bruno@clisp.org>
69762
69763         * m4/strndup.m4 (gl_FUNC_STRNDUP): Replace the AC_REPLACE_FUNCS with a
69764         check for the declaration of strnlen and a run test that exposes the
69765         AIX 5.1 strnlen bug.  In the failure case, #define strndup to
69766         rpl_strndup.
69767
69768 2006-05-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
69769             Bruno Haible  <bruno@clisp.org>
69770
69771         * lib/strndup.c (strndup) [!_LIBC]: Don't undefine macro definition.
69772
69773 2006-05-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
69774
69775         * m4/c-strtod.m4 (gl_C99_STRTOLD): Use a link test rather than a
69776         compile test, for Tru64 4.0D.
69777
69778 2006-05-28  Karl Berry  <karl@gnu.org>
69779
69780         * config/srclist.txt (printf-args.c): lose sync.
69781
69782 2006-05-26  Martin Lambers  <marlam@marlam.de>
69783
69784         * lib/getpass.c: Updates the test for the native W32 API, and adds
69785         missing includes, thus fixing compilation warnings.
69786
69787 2006-05-25  Sergey Poznyakoff  <gray@gnu.org.ua>
69788
69789         * lib/exclude.c (exclude_fnmatch): New function.
69790         (excluded_file_name): Call exclude_fnmatch.
69791         * lib/exclude.h (excluded_file_name): New prototype
69792
69793 2006-05-25  Paul Eggert  <eggert@cs.ucla.edu>
69794
69795         * lib/tempname.c (small_open, large_open): New macros.
69796         (__open, __open64) [!_LIBC]: Remove.
69797         (__gen_tempname): Use small_open and large_open instead of __open
69798         and __open64.  This fixes a portability bug on HP-UX 11.11i
69799         reported by Simon Wing-Tang in
69800         <http://lists.gnu.org/archive/html/bug-coreutils/2006-05/msg00114.html>.
69801
69802 2006-05-24  Bruno Haible  <bruno@clisp.org>
69803
69804         * lib/printf-args.c (printf_fetchargs): Turn NULL pointers for
69805         TYPE_STRING and TYPE_WIDE_STRING into a non-NULL replacement.
69806         Reported by Thorsten Maerz <torte@netztorte.de> via
69807         Aaron Stone <aaron@serendipity.cx>.
69808
69809 2006-05-19  Paul Eggert  <eggert@cs.ucla.edu>
69810
69811         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Rename cache variables to use
69812         gl_ rather than jm_.  Link, don't run, so that cross-compiles are
69813         allowed.  Check that resulting type is arithmetic.  Move AC_REQUIRE
69814         and AC_CHECK_HEADERS_ONCE outside of AC_CACHE_CHECK, since they're
69815         not really conditional on the cache.
69816         (gl_PREREQ_NANOSLEEP): Check for sys/select.h.
69817
69818 2006-05-19  Paul Eggert  <eggert@cs.ucla.edu>
69819
69820         * lib/nanosleep.c [HAVE_SYS_SELECT_H]: Include <sys/select.h>.
69821         Use the usual Autoconf way to include <time.h> and/or sys/time.h.
69822         (my_usleep): Don't mishandle maximum value.
69823
69824 2006-05-19  Jim Meyering  <jim@meyering.net>
69825
69826         * lib/getugroups.c: Correct an outdated comment.  From Bruno Haible.
69827
69828 2006-05-17  Bruno Haible  <bruno@clisp.org>
69829
69830         Cygwin portability.
69831         * lib/classpath.c (PATH_SEPARATOR) [CYGWIN]: Define as ':'.
69832
69833 2006-05-17  Bruno Haible  <bruno@clisp.org>
69834
69835         * lib/stdint_.h: Fix recognition of Cygwin.
69836
69837 2006-05-15  Bruno Haible  <bruno@clisp.org>
69838
69839         * build-aux/config.rpath: Improve support for Sun C 5.9 on Linux, based
69840         on libtool patch by Ralf Wildenhues.
69841
69842 2006-05-14  Paul Eggert  <eggert@cs.ucla.edu>
69843
69844         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Fix overly-picky
69845         test for C99 conformance; (bool) 0.5 is an integer constant
69846         expression, but (bool) -0.5 is not.  Problem reported by Fedor
69847         Sergeev in <http://forum.sun.com/jive/thread.jspa?threadID=96202>.
69848
69849 2006-05-11  Simon Josefsson  <jas@extundo.com>
69850
69851         * m4/xvasprintf.m4: Fix obvious typo.
69852
69853 2006-05-11  Jim Meyering  <jim@meyering.net>
69854
69855         * lib/sha1.c (sha1_buffer): Correct comment: s/MD5/SHA1/.  From
69856         James Lemley.
69857
69858 2006-05-10  Simon Josefsson  <jas@extundo.com>
69859
69860         * lib/md4.c: Typo fix, update copyright years.
69861         (K1, K2): Don't use L because it turn computations into 64-bit on
69862         64-bit platforms.
69863
69864 2006-05-10  Paul Eggert  <eggert@cs.ucla.edu>
69865
69866         * lib/crc.c (crc32_update): Remove unnecessary L suffix.
69867         * lib/md4.c (rol): Cast right-shift arg to uint32_t to prevent
69868         unwanted sign propagation, e.g., on hosts with 64-bit int.
69869         There still are some problems with reeelly weird theoretical hosts
69870         (e.g., 33-bit int) but it's not worth worrying about now.
69871         * lib/sha1.c (rol): Likewise.
69872         (K1, K2, K3, K4): Remove unnecessary L suffix.
69873
69874 2006-05-10  Bruno Haible  <bruno@clisp.org>
69875
69876         * lib/des.c: Cast to avoid warnings.
69877
69878 2006-05-09  Bruno Haible  <bruno@clisp.org>
69879
69880         * modules/xvasprintf (Files): Add m4/xvasprintf.m4.
69881         (Depends-on): Depend also on xsize, stdarg.
69882         (configure.ac): Add gl_XVASPRINTF.
69883
69884 2006-05-09  Bruno Haible  <bruno@clisp.org>
69885
69886         * m4/xvasprintf.m4: New file.
69887
69888 2006-05-09  Bruno Haible  <bruno@clisp.org>
69889
69890         * lib/xvasprintf.c: Include limits.h, string.h, xsize.h.
69891         (EOVERFLOW): Define fallback value.
69892         (xstrcat): New function.
69893         (xvasprintf): Recognize the special case of a string concatenation.
69894
69895 2006-05-08  Eric Blake  <ebb9@byu.net>
69896
69897         * gnulib-tool (func_version): Base copyright year on CVS date.
69898         (func_emit_copyright_notice): New function.
69899         (func_emit_lib_Makefile_am): Use it.
69900         (func_emit_tests_Makefile_am): Likewise.
69901         (func_import): Likewise.
69902
69903 2006-05-08  Bruno Haible  <bruno@clisp.org>
69904
69905         * modules/stdarg: New file.
69906         * MODULES.html.sh (func_all_modules): Add section for <stdarg.h>.
69907
69908 2006-05-08  Bruno Haible  <bruno@clisp.org>
69909
69910         * m4/stdarg.m4: New file, from GNU gettext.
69911
69912 2006-05-08  Bruno Haible  <bruno@clisp.org>
69913
69914         * config/srclist.txt (build-aux/config.rpath): different from latest
69915         release.
69916
69917 2006-05-08  Bruno Haible  <bruno@clisp.org>
69918
69919         * build-aux/config.rpath: Add support for Sun C 5.9 on Linux.
69920
69921 2006-05-05  Jim Meyering  <jim@meyering.net>
69922
69923         * m4/warning.m4: New file, derived from bison's file by the same name.
69924
69925 2006-05-03  Bruno Haible  <bruno@clisp.org>
69926
69927         * lib/stdint_.h: Shorter URL.
69928         * lib/inttypes.h: Likewise.
69929
69930 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
69931
69932         * modules/inttypes (Maintainer): Change from Derek Price to 'all'.
69933
69934 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
69935
69936         * lib/verify.h: Document the internals better.  Most of this change
69937         was written by Bruno Haible.
69938
69939 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
69940
69941         * doc/verify.texi: New file, partly based on a proposal by
69942         Bruno Haible.
69943
69944 2006-05-02  Bruno Haible  <bruno@clisp.org>
69945
69946         * m4/full-header-path.m4 (gl_FULL_HEADER_PATH): Move the include_next
69947         test from here...
69948         * m4/_inttypes_h.m4 (gl_INTTYPES_H): ... to here.
69949
69950 2006-04-29  Bruno Haible  <bruno@clisp.org>
69951
69952         * lib/gcd.c: Use WORD_T and GCD instead of unsigned long and gcd.
69953         Suggested by Oskar Liljeblad <oskar@osk.mine.nu>.
69954
69955 2006-04-29  Bruno Haible  <bruno@clisp.org>
69956
69957         * gnulib-tool: Make --update option actually work.
69958
69959 2006-04-29  Bruno Haible  <bruno@clisp.org>
69960
69961         * doc/gcd.texi: New file.
69962         * doc/gnulib.texi: Include it.
69963
69964 2006-04-25  Paul Eggert  <eggert@cs.ucla.edu>
69965
69966         * lib/getdate.y (get_date): When adding relative date, start with the
69967         initial time, not with the result of the first mktime call.
69968
69969 2006-04-25  Bruno Haible  <bruno@clisp.org>
69970
69971         * gnulib-tool (func_import): Output the include directives in three
69972         blocks, sorted separately.
69973         Reported by Ben Pfaff <blp@cs.stanford.edu>.
69974
69975 2006-04-24  Paul Eggert  <eggert@cs.ucla.edu>
69976
69977         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Use prototype
69978         to define main with arguments, for C++.  Reported by Eric Blake.
69979         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC):
69980         Prefer 'int main ()' to 'int main (void)', for C++.
69981         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
69982         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Specify a return type
69983         for 'main', for C99 and C++.
69984
69985 2006-04-24  Paul Eggert  <eggert@cs.ucla.edu>
69986
69987         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Use return, not exit.
69988         Don't assume that exit status -1 is valid.
69989         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
69990         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
69991         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
69992         * m4/readdir.m4 (GL_FUNC_READDIR): Include <stdlib.h>.
69993         * m4/rename.m4 (vb_FUNC_RENAME): Likewise.
69994         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Use AC_RUN_IFELSE,
69995         not AC_TRY_RUN.  Use return, not exit.  Don't assume that
69996         functions can be used without declaring them, or that you can
69997         exit with status -1.
69998         * m4/utimes-null.m4 (gl_FUNC_UTIMES_NULL): Likewise.
69999
70000 2006-04-24  Karl Berry  <karl@gnu.org>
70001
70002         * config/srclist.txt (longdouble.m4): sync lost.
70003
70004 2006-04-24  Eric Blake  <ebb9@byu.net>
70005
70006         * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): Avoid unused variable warning.
70007
70008 2006-04-24  Bruno Haible  <bruno@clisp.org>
70009
70010         * m4/poll.m4 (gl_FUNC_POLL): When cross-compiling, reject also the
70011         poll() implementation in AIX.
70012         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
70013
70014 2006-04-24  Bruno Haible  <bruno@clisp.org>
70015
70016         * m4/poll.m4 (gl_FUNC_POLL): Rearrange code, so that POLL_H gets
70017         assigned exactly once.
70018
70019 2006-04-23  Claudio Fontana  <claudio@gnu.org>
70020             Bruno Haible  <bruno@clisp.org>
70021
70022         * modules/gettext (Makefile.am): Add a -I flag for <libintl.h>.
70023         * gnulib-tool (func_emit_lib_Makefile_am): Emit empty default value
70024         for AM_CPPFLAGS.
70025
70026 2006-04-23  Bruno Haible  <bruno@clisp.org>
70027
70028         * modules/copy-file: Depend on unistd.
70029         * modules/execute: Likewise.
70030         * modules/fatal-signal: Likewise.
70031         * modules/findprog: Likewise.
70032         * modules/mkdtemp : Likewise.
70033         * modules/pipe: Likewise.
70034         * modules/wait-process: Likewise.
70035
70036 2006-04-23  Bruno Haible  <bruno@clisp.org>
70037
70038         * lib/fwriteerror.c (fwriteerror): Call fclose also when an error
70039         condition was already detected.
70040         Reported by Ben Pfaff <blp@cs.stanford.edu>.
70041
70042 2006-04-23  Bruno Haible  <bruno@clisp.org>
70043
70044         * lib/copy-file.c: Include <unistd.h> unconditionally.
70045         * lib/execute.c: Likewise.
70046         * lib/fatal-signal.c: Likewise.
70047         * lib/findprog.c: Likewise.
70048         * lib/mkdtemp.c: Likewise.
70049         * lib/pipe.h: Likewise.
70050         * lib/pipe.c: Likewise.
70051         * lib/wait-process.h: Likewise.
70052
70053 2006-04-23  Bruno Haible  <bruno@clisp.org>
70054
70055         * gnulib-tool (func_usage): Fix --import description. Document
70056         --update.
70057         (func_import): Create temporary file in a temporary directory, if
70058         --dry-run is specified. Silence errors from 'grep' when there are no
70059         m4 files in $m4dir.
70060         (func_create_testdir): Silence errors from 'grep' when there are no
70061         m4 files in $m4dir.
70062         Reported by Karl Berry <karl@freefriends.org>.
70063
70064 2006-04-20  Bruno Haible  <bruno@clisp.org>
70065
70066         * m4/argp.m4 (gl_ARGP): Don't call AC_CHECK_DECLS_ONCE with more than
70067         one argument, so that the code will be portable to Autoconf 2.60.
70068         * m4/getlogin_r.m4 (gl_PREREQ_GETLOGIN_R): Likewise.
70069         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
70070         * m4/unlocked-io.m4 (gl_FUNC_GLIBC_UNLOCKED_IO): Likewise.
70071
70072 2006-04-19  Derek Price  <derek@ximbiot.com>
70073             Eric Blake  <ebb9@byu.net>
70074
70075         * m4/full-header-path.m4 (gl_FULL_HEADER_PATH): Use </full/path.h>
70076         rather than "/full/path.h".  Update comment to match.  Shorten &
70077         generalize m4_translit call via AS_TR_CPP.
70078
70079 2006-04-19  Derek Price  <derek@ximbiot.com>
70080             Eric Blake  <ebb9@byu.net>
70081
70082         * lib/inttypes.h: Correct grammar in comment.
70083
70084 2006-04-18  Derek Price  <derek@ximbiot.com>
70085             Paul Eggert  <eggert@cs.ucla.edu>
70086
70087         * modules/inttypes: New file.
70088         * modules/strtoimax, modules/strtoumax: Depend on inttypes.
70089
70090 2006-04-18  Derek Price  <derek@ximbiot.com>
70091             Paul Eggert  <eggert@cs.ucla.edu>
70092
70093         * m4/_inttypes_h.m4, m4/full-header-path.m4, m4/include_next.m4:
70094         New files.
70095
70096 2006-04-18  Derek Price  <derek@ximbiot.com>
70097             Paul Eggert  <eggert@cs.ucla.edu>
70098
70099         * lib/inttypes.h: New file.
70100         * lib/strtoimax.c: Assume <inttypes.h>.
70101
70102 2006-04-15  Paul Eggert  <eggert@cs.ucla.edu>
70103
70104         * lib/utimens.c (futimens): glibc futimesat messes up if /proc
70105         isn't mounted.  Problem reported by Kir Kolyshkin.
70106
70107 2006-04-13  Paul Eggert  <eggert@cs.ucla.edu>
70108
70109         * lib/regcomp.c (init_dfa): Don't use wchar_t or wctype_t if
70110         RE_ENABLE_I18N is not defined.  Problem reported by Mark D. Baushke via
70111         Derek R. Price.
70112         * lib/regex.h (RE_DUP_MAX): Update comment to match current
70113         implementation.
70114
70115 2006-04-12  Eric Blake  <ebb9@byu.net>
70116
70117         * modules/time_r (Makefile.am): Remove lib_SOURCES line, as this
70118         is now done automatically by the corresponding Autoconf macro.
70119
70120 2006-04-11  Paul Eggert  <eggert@cs.ucla.edu>
70121
70122         * m4/time_r.m4 (gl_TIME_R): Add AC_LIBSOURCES for time_r.c and
70123         time_r.h.
70124
70125 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
70126
70127         Merge regex changes from libc, removing some of our
70128         POSIX-conformance changes that were rejected and redoing them in a
70129         less-intrusive way.
70130
70131         * lib/regcomp.c (re_compile_internal, init_dfa):
70132         Length arg is now size_t, not Idx.  All uses changed.
70133         (peek_token): Forward decl now says internal_function.
70134         (__re_error_msgid, __re_error_msgid_idx):
70135         Now static rather than extern with attribute_hidden.
70136         (re_compile_pattern) [!defined _LIBC]: Use K&R-style defn.
70137         For some reason libc prefers K&R style defns for external functions.
70138         (regerror) [!defined _LIBC]: Likewise.
70139         (re_set_syntax, re_compile_fastmap, regcomp, regfree, re_comp):
70140         (seek_collating_symbol_entry, lookup_collation_sequence_value):
70141         (build_range_exp, build_collating_symbol):
70142         Use K&R-style defn.
70143         (re_compile_fastmap): Use '\0' to memset, not 0.
70144         (utf8_sb_map): Make the calculations more obvious.
70145         (init_dfa, parse_bracket_exp, build_charclass_op):
70146         Call calloc and cast result, as glibc does.
70147         (init_word_char, fetch_token, peek_token, peek_token_bracket):
70148         (build_range_exp, build_collating_symbol):
70149         Now internal functions.
70150
70151         * lib/regex.c [!defined _LIBC]: Allow compiling with C++ compilers.
70152
70153         * lib/regex.h (__USE_GNU_REGEX): New macro.  Don't depend on
70154         _REGEX_SOURCE any more; depend on _GNU_SOURCE instead.
70155         Don't depend on VMS; depend on __VMS instead, for POSIX
70156         namespace cleanness.
70157         (regoff_t): Define to ssize_t, not long int.
70158
70159         Remove the REG_ macros named below.  Instead, make the old names
70160         (e.g., RE_BACKSLASH_ESCAPE_IN_LISTS) visible only if
70161         __USE_GNU_REGEX.
70162         (REG_BACKSLASH_ESCAPE_IN_LISTS):
70163         (REG_BK_PLUS_QM, REG_CHAR_CLASSES, REG_CONTEXT_INDEP_ANCHORS):
70164         (REG_CONTEXT_INDEP_OPS, REG_CONTEXT_INVALID_OPS):
70165         (REG_DOT_NEWLINE, REG_DOT_NOT_NULL, REG_HAT_LISTS_NOT_NEWLINE):
70166         (REG_INTERVALS, REG_LIMITED_OPS, REG_NEWLINE_ALT):
70167         (REG_NO_BK_BRACES, REG_NO_BK_PARENS, REG_NO_BK_REFS):
70168         (REG_NO_BK_VBAR, REG_NO_EMPTY_RANGES):
70169         (REG_UNMATCHED_RIGHT_PAREN_ORD, REG_NO_POSIX_BACKTRACKING):
70170         (REG_NO_GNU_OPS, REG_DEBUG, REG_INVALID_INTERVAL_ORD):
70171         (REG_IGNORE_CASE, REG_CARET_ANCHORS_HERE):
70172         (REG_CONTEXT_INVALID_DUP, REG_NO_SUB, REG_SYNTAX_EMACS):
70173         (REG_SYNTAX_AWK, REG_SYNTAX_GNU_AWK, REG_SYNTAX_POSIX_AWK):
70174         (REG_SYNTAX_GREP, REG_SYNTAX_EGREP, REG_SYNTAX_POSIX_EGREP):
70175         (REG_SYNTAX_ED, REG_SYNTAX_SED, _REG_SYNTAX_POSIX_COMMON):
70176         (REG_SYNTAX_POSIX_BASIC, REG_SYNTAX_POSIX_MINIMAL_BASIC):
70177         (REG_SYNTAX_POSIX_EXTENDED, REG_SYNTAX_POSIX_MINIMAL_EXTENDED):
70178         (REG_DUP_MAX, REG_UNALLOCATED, REG_REALLOCATE, REG_FIXED):
70179         (REG_NREGS):
70180         Remove.  All uses replaced by the old RE_* names.
70181         (RE_BACKSLASH_ESCAPE_IN_LISTS):
70182         (RE_BK_PLUS_QM, RE_CHAR_CLASSES, RE_CONTEXT_INDEP_ANCHORS):
70183         (RE_CONTEXT_INDEP_OPS, RE_CONTEXT_INVALID_OPS):
70184         (RE_DOT_NEWLINE, RE_DOT_NOT_NULL, RE_HAT_LISTS_NOT_NEWLINE):
70185         (RE_INTERVALS, RE_LIMITED_OPS, RE_NEWLINE_ALT):
70186         (RE_NO_BK_BRACES, RE_NO_BK_PARENS, RE_NO_BK_REFS):
70187         (RE_NO_BK_VBAR, RE_NO_EMPTY_RANGES):
70188         (RE_UNMATCHED_RIGHT_PAREN_ORD, RE_NO_POSIX_BACKTRACKING):
70189         (RE_NO_GNU_OPS, RE_DEBUG, RE_INVALID_INTERVAL_ORD):
70190         (RE_IGNORE_CASE, RE_CARET_ANCHORS_HERE):
70191         (RE_CONTEXT_INVALID_DUP, RE_NO_SUB):
70192         Don't bother having these macros be independent of each others'
70193         values, since they no longer exist in the POSIX name space.
70194
70195         Rename the following member names back to their old names,
70196         unless !__USE_GNU_REGEX.  All uses changed back.
70197         (buffer): Renamed from re_buffer.
70198         (allocated): Renamed from re_allocated.
70199         (used): Renamed from re_used.
70200         (syntax): Renamed from re_syntax.
70201         (fastmap): Renamed from re_fastmap.
70202         (translate): Renamed from re_translate.
70203         (can_be_null): Renamed from re_can_be_null.
70204         (regs_allocated): Renamed from re_regs_allocated.
70205         (fastmap_accurate): Renamed from re_fastmap_accurate.
70206         (no_sub): Renamed from re_no_sub.
70207         (not_bol): Renamed from re_not_bol.
70208         (not_eol): Renamed from re_not_eol.
70209         (newline_anchor): Renamed from re_newline_anchor.
70210         (num_regs): Renamed from rm_num_regs.
70211         (start): Renamed from rm_start.
70212         (end): Renamed from rm_end.
70213
70214         (free_state): Move up a bit.
70215
70216         * lib/regex_internal.h (inline) [__GNUC__ < 3 && defined _LIBC]:
70217         #define to be empty.
70218         (ASCII_CHARS): New macro, replacing all uses of 0x80 and/or SBC_MAX / 2
70219         when that is what is intended.
70220         (SBC_MAX): Define to UCHAR_MAX + 1, not 256.
70221         (__re_error_msgid, __re_error_msgid_idx): Remove decls; not needed.
70222         (MAX): New macro.
70223         (re_xmalloc, re_calloc, re_xrealloc, re_x2realloc): Remove.
70224         All uses changed back to re_malloc, etc.  It's now the caller's
70225         responsibility to check for overflow; all callers changed.
70226         (re_alloc_oversized, re_x2alloc_oversized, re_xnmalloc, re_xnrealloc):
70227         (re_x2nrealloc): Remove.
70228         (free_state): Remove decl.
70229
70230         * lib/regexc.c (regexec, re_match, re_search, re_match_2, re_search_2):
70231         (re_set_registers, re_exec):
70232         Use K&R-style defn.
70233
70234         2006-01-31  Roland McGrath  <roland@redhat.com>
70235
70236         * lib/regcomp.c (calc_eclosure_iter): Remove dead variables.
70237         Reported by Mike Frysinger <vapier@gentoo.org>.
70238
70239         2006-01-15  Andreas Jaeger  <aj@suse.de>
70240
70241         [BZ #1950]
70242         * lib/regex_internal.c (re_string_reconstruct): Adjust for
70243         build_wcs_upper_buffer change.
70244         (build_wcs_upper_buffer): Change return type.
70245
70246         2005-12-10  Ulrich Drepper  <drepper@redhat.com>
70247
70248         * lib/regex_internal.h: Include <stdint.h> if available.
70249
70250         2005-12-06  Paolo Bonzini  <bonzini@gnu.org>
70251
70252         * lib/regex_internal.h (SIZE_MAX): Provide a default definition.
70253
70254         2005-10-14  Ulrich Drepper  <drepper@redhat.com>
70255
70256         * lib/regcomp.c: Adjust for changed secondary hash function.
70257
70258         2005-09-30  Ulrich Drepper  <drepper@redhat.com>
70259
70260         * lib/regex.h: Pretty printing.
70261         Clean up namespace a bit.
70262
70263         2005-09-30  Jakub Jelinek  <jakub@redhat.com>
70264
70265         * lib/regexec.c (update_cur_sifted_state, check_arrival,
70266         check_arrival_add_next_nodes): Avoid using uninitialized variable.
70267
70268         2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
70269                     Ulrich Drepper  <drepper@redhat.com>
70270
70271         [BZ #1302]
70272         * lib/regex_internal.h (bitset_t): Renamed from bitset.  All uses
70273         changed.
70274         (bitset_word_t): Renamed from bitset_word.  All uses changed.
70275
70276         2005-09-22  Ulrich Drepper  <drepper@redhat.com>
70277
70278         [BZ #281]
70279         * lib/regex.h: Define RE_TRANSLATE_TYPE as unsigned char *.
70280         * lib/regcomp.c: Remove unnecessary uses of
70281         unsigned RE_TRANSLATE_TYPE.
70282         * lib/regex_internal.h: Likewise.
70283         * lib/regex_internal.c: Likewise.
70284         * lib/regexec.c: Likewise.
70285         Based on a patch by Stepan Kasal <kasal@ucw.cz>.
70286
70287         2005-09-07  Ulrich Drepper  <drepper@redhat.com>
70288
70289         * lib/regexec.c (find_recover_state): Remove unnecessary
70290         initialization.
70291         (transit_state_bkref): Make DFA a const pointer.
70292         (get_subexp): Likewise.
70293         (check_arrival): Likewise.
70294         (update_cur_sifted_state): Likewise.
70295         (re_search_internal): Likewise.
70296         (prune_impossible_nodes): Likewise.
70297         (acquire_init_state_context): Likewise.
70298         (proceed_next_node): Likewise.
70299         (set_regs): Likewise.
70300         (free_fail_stack_return): Likewise.
70301         (check_arrival_expand_ecl): Mark DFA parameter as const.
70302         (check_arrival_expand_ecl_sub): Likewise.
70303         (check_subexp_limits): Likewise.
70304         (sub_epsilon_src_nodes):  Likewise.
70305         (add_epsilon_src_nodes):  Likewise.
70306         (merge_state_array): Likewise.
70307         (update_regs): Likewise.
70308         (build_trtable): Likewise.
70309         (sift_states_backward): Mark MCTX parameter as const.
70310         (build_sifted_states): Likewise.
70311         (update_cur_sifted_state): Likewise.
70312         (sift_states_mkref): Likewise.
70313         (check_arrival_expand_ecl): Mark eclosure as const.
70314         (check_dst_limits_calc_pos_1): Likewise.
70315         * lib/regex_internal.h (re_match_context_t): Make dfa a const
70316         pointer.
70317
70318         2005-09-06  Ulrich Drepper  <drepper@redhat.com>
70319
70320         * lib/regexec.c (merge_state_with_log): Define dfa as const pointer.
70321         (transit_state_sb): Likewise.
70322         (transit_state_mb): Likewise.
70323         (sift_states_iter_mb): Likewise.
70324         (check_arrival_add_next_nodes): Likewise.
70325         (check_node_accept_bytes): Change first parameter to pointer-to-const.
70326         [_LIBC] (re_search_2_stub): Use mempcpy.
70327
70328         * lib/regex_internal.c (re_string_reconstruct): Avoid calling
70329         mbrtowc for very simple UTF-8 case.
70330
70331         * lib/regex_internal.c (re_acquire_state): Make DFA pointer arg
70332         a pointer-to-const.
70333         (re_acquire_state_context): Likewise.
70334         * lib/regex_internal.h: Adjust prototypes.
70335
70336         * lib/regex.c: Prevent using C++ compilers.
70337
70338         * lib/regex_internal.c (re_acquire_state): Minor code rearrangement.
70339         (re_acquire_state_context): Likewise.
70340
70341 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
70342
70343         * modules/regex (Depends-on): Add ssize_t.
70344
70345 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
70346
70347         * m4/regex.m4 (gl_REGEX): Check for new glibc interface to
70348         translation table.
70349
70350 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
70351
70352         * doc/gnulib-tool.texi (Modified imports): pathname -> file name.
70353
70354 2006-03-29  Mark D. Baushke  <mdb@gnu.org>
70355             Bruno Haible  <bruno@clisp.org>
70356
70357         * lib/stdint_.h: On OpenBSD, don't redefine types already included in
70358         <sys/types.h> and <inttypes.h>.
70359
70360 2006-03-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
70361
70362         * m4/argz.m4 (gl_FUNC_ARGZ): If we define `error_t', also define
70363         `__error_t_defined', so argp.h will not typedef the former.
70364
70365 2006-03-25  Paul Eggert  <eggert@cs.ucla.edu>
70366
70367         * m4/regex.m4 (gl_REGEX): Don't insist on REG_SYNTAX_POSIX_EGREP,
70368         REG_SYNTAX_EMACS, and REG_IGNORE_CASE.  Settle for the traditional
70369         glibc names.  Even if glibc is changed to conform to POSIX, the
70370         traditional names will be available anyway, since regex depends on
70371         the extensions module.  Also, fix a longstanding typo in the
70372         implementation of Spencer ERE test #75 from grep 2.3.  Problems
70373         reported by Emanuele Giaquinta.  Also, change sense of cached
70374         variable, so that the message makes sense.
70375
70376 2006-03-24  Simon Josefsson  <jas@extundo.com>
70377
70378         * lib/base64.c: Fix problems reported by Eric Blake <ebb9@byu.net>,
70379         including some doc fixes.
70380         (base64_encode_alloc): Fix +1 bug on allocation failures.
70381
70382 2006-03-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
70383
70384         * lib/base64.c (base64_encode): Do not read past end of array with
70385         unsanitized input on systems with CHAR_BIT > 8.
70386
70387 2006-03-24  Eric Blake  <ebb9@byu.net>
70388
70389         * lib/time_r.c (copy_string_result): Remove, as it is no longer used.
70390
70391 2006-03-22  Karl Berry  <karl@gnu.org>
70392
70393         * config/srclist.txt (*setenv.[ch]): get from coreutils.
70394         * config/srclistvars.sh (COREUTILS): new var.
70395
70396 2006-03-17  Jim Meyering  <jim@meyering.net>
70397
70398         * m4/regex.m4 (gl_REGEX): Fix typo in last change:
70399         s/_REGEX_WIDE_OFFSETS/_REGEX_LARGE_OFFSETS/.
70400
70401 2006-03-16  Paul Eggert  <eggert@cs.ucla.edu>
70402
70403         * m4/regex.m4 (gl_REGEX): Don't check for off_t, since the code
70404         no longer needs it.  Instead, check that regoff_t is as least
70405         as wide as ptrdiff_t.
70406
70407         Don't define _REGEX_WIDE_OFFSETS unless using the included regex,
70408         so that our regex.h stays compatible with the installed regex.
70409         This is helpful for installers who configure --without-included-regex.
70410         Problem reported by Emanuele Giaquinta.
70411
70412 2006-03-16  Paul Eggert  <eggert@cs.ucla.edu>
70413
70414         * lib/regex.h (regoff_t) [defined _REGEX_LARGE_OFFSETS]:
70415         Typedef to long int, not to off_, as POSIX will likely change
70416         in that direction.
70417
70418 2006-03-15  Eric Blake  <ebb9@byu.net>
70419
70420         * m4/dirfd.m4 (gl_FUNC_DIRFD): Use AC_REQUIRE for AC_HEADER_DIRENT.
70421
70422 2006-03-13  Sergey Poznyakoff  <gray@gnu.org.ua>
70423
70424         * lib/argp-help.c (validate_uparams): Fix typo
70425         * lib/argp-parse.c (argp_default_options): Consistently begin help
70426         messages with a lowercase letter.
70427
70428 2006-03-11  Paul Eggert  <eggert@cs.ucla.edu>
70429
70430         * lib/time_r.h (asctime_r, ctime_r): Remove.  These functions can
70431         overrun buffers and shouldn't be used (much as gets shouldn't be
70432         used).
70433         * lib/time_r.c (asctime_r, ctime_r): Likewise.
70434
70435 2006-03-08  Simon Josefsson  <jas@extundo.com>
70436
70437         * m4/gc-random.m4: Permit 'no' as variable values and fix warnings,
70438         suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
70439
70440 2006-03-08  Simon Josefsson  <jas@extundo.com>
70441
70442         * m4/gc-random.m4: Call AC_CANONICAL_HOST and use $host_os instead of
70443         $target, suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
70444
70445 2006-03-08  Simon Josefsson  <jas@extundo.com>
70446
70447         * lib/gc-gnulib.c (randomize): Don't open files called 'no', they
70448         signal that configure disabled the device.
70449
70450 2006-03-08  Simon Josefsson  <jas@extundo.com>
70451
70452         * build-aux/maint.mk: Fix refresh-po, to handle no translated
70453         languages.
70454
70455 2006-03-07  Simon Josefsson  <jas@extundo.com>
70456
70457         * modules/getopt (Depends-on): Add unistd.
70458
70459         * modules/unistd: New file.
70460
70461 2006-03-07  Simon Josefsson  <jas@extundo.com>
70462
70463         * modules/gc-random: New file.
70464
70465 2006-03-07  Simon Josefsson  <jas@extundo.com>
70466
70467         * m4/unistd_h.m4: New file.
70468
70469 2006-03-07  Simon Josefsson  <jas@extundo.com>
70470
70471         * m4/readline.m4 (gl_FUNC_READLINE): Rewrite the cached part of the
70472         test to be side-effect free by storing the result in the cache
70473         variable gl_cv_lib_readline, and moving the assignment of
70474         LIBREADLINE and LTLIBREADLINE outside the COMMANDS-TO-SET-IT.
70475         From Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
70476
70477 2006-03-07  Simon Josefsson  <jas@extundo.com>
70478
70479         * m4/gc-random.m4: New file, mostly from gc.m4.  Warn instead of
70480         error on missing devices (the functions will return an error).
70481
70482         * m4/gc.m4: Move random stuff to gc-random.m4
70483
70484 2006-03-07  Simon Josefsson  <jas@extundo.com>
70485
70486         * lib/unistd_.h: New file.
70487
70488 2006-03-07  Simon Josefsson  <jas@extundo.com>
70489
70490         * lib/gc-libgcrypt.c, gc-gnulib.c: Use GC_USE_RANDOM.
70491
70492 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
70493
70494         * m4/unistd_h.m4 (gl_HEADER_UNISTD): Rename, to match modules file.
70495         Problem reported by Juan Manuel Guerrero.
70496
70497 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
70498
70499         * lib/c-stack.c: Include unistd.h unconditionally, since we now assume
70500         the unistd module.
70501         * lib/getlogin_r.c: Likewise.
70502         * lib/getlogin_r.h: Likewise.
70503         * lib/glob.c: Likewise.
70504         * lib/pagealign_alloc.c: Likewise.
70505         * lib/unistd_.h: Remove; no longer needed.
70506
70507 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
70508
70509         * MODULES.html.sh (Support for systems lacking POSIX:2001):
70510         Add unistd.
70511         * modules/c-stack (Depends-on): Add unistd.
70512         * modules/getlogin_r: Likewise.
70513         * modules/glob: Likewise.
70514         * modules/pagealign_alloc: Likewise.
70515         * modules/unistd (Files): Remove lib/unistd_.h.
70516         (EXTRA_DIST): Remove.
70517         (unistd.h): Create using 'echo' rather than 'cp', so that we don't
70518         need unistd_.h.
70519         (MOSTLYCLEANFILES): Remove unistd.h-t.
70520
70521 2006-03-03  Simon Josefsson  <jas@extundo.com>
70522
70523         * build-aux/maint.mk: Add several syntax checks from CoreUtils.
70524
70525 2006-03-03  Simon Josefsson  <jas@extundo.com>
70526
70527         * build-aux/maint.mk: Add refresh-po rule, based on ideas from
70528         libidn and bison.
70529
70530 2006-03-03  Simon Josefsson  <jas@extundo.com>
70531
70532         * build-aux/maint.mk: Add indent target.
70533
70534 2006-03-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de> (tiny change)
70535
70536         * m4/poll.m4 (gl_FUNC_POLL): If we deem poll(2) unacceptable, use
70537         our replacement poll.h in any case, to avoid a differing
70538         declaration from a system header.  Seen on AIX.
70539
70540 2006-03-01  Simon Josefsson  <jas@extundo.com>
70541
70542         * lib/readline.c: Fix typo, tiny patch from Stepan Kasal
70543         <kasal@ucw.cz>.
70544
70545 2006-03-01  Paul Eggert  <eggert@cs.ucla.edu>
70546
70547         * modules/gettime (Depends-on): Add extensions module.
70548         * modules/nanosleep (Depends-on): Likewise.
70549         * modules/settime (Depends-on): Likewise.
70550
70551 2006-03-01  Paul Eggert  <eggert@cs.ucla.edu>
70552
70553         * m4/clock_time.m4 (gl_CLOCK_TIME): Require gl_USE_SYSTEM_EXTENSIONS,
70554         not merely AC_GNU_SOURCE, for the benefit of Solaris 10 when compiled
70555         pedantically.
70556         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
70557         * m4/timespec.m4 (gl_TIMESPEC): Likewise.
70558
70559         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Use "=" with "test",
70560         not "==".  Reported by Ralf Wildenhues.
70561
70562 2006-03-01  Karl Berry  <karl@gnu.org>
70563
70564         * doc/Copyright/request-*: new files, synced from gnuorg.
70565
70566 2006-03-01  Karl Berry  <karl@gnu.org>
70567
70568         * config/srclist.txt (Copyright/*): new entries.
70569
70570 2006-02-28  Simon Josefsson  <jas@extundo.com>
70571
70572         * lib/getopt.c: Protect #include of unistd.h, for MSVS.
70573
70574 2006-02-27  Simon Josefsson  <jas@extundo.com>
70575
70576         * lib/base64.h: Indent #define's.  From Jim Meyering
70577         <jim@meyering.net>.
70578
70579 2006-02-27  Jim Meyering  <jim@meyering.net>
70580
70581         Revert the change of 2006-02-24, so these files can continue
70582         to be sync'd from gettext.
70583         * lib/mkdtemp.c, setenv.c, unsetenv.c: *Un*-normalize inclusion
70584         of `config.h'.
70585
70586 2006-02-26  Paul Eggert  <eggert@cs.ucla.edu>
70587
70588         * modules/intprops: New file.
70589         * MODULES.html.sh (Numeric conversion functions <stdlib.h>):
70590         Add intprops.
70591         * modules/getloadavg (Files): Remove lib/intprops.h.
70592         (Depends-on): Add intprops.
70593         * modules/human: Likewise.
70594         * modules/inttostr: Likewise.
70595         * modules/openat: Likewise.
70596         * modules/sig2str: Likewise.
70597         * modules/userspec: Likewise.
70598         * modules/utimecmp: Likewise.
70599         * modules/xnanosleep: Likewise.
70600         * modules/xstrtol: Likewise.
70601
70602 2006-02-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny changes)
70603
70604         * modules/xstrtod: Omit xstrtod.h, xstrtod.c; they're in LIB_SOURCES.
70605         * modules/lock-tests (TESTS): Use $(EXEEXT).
70606         * modules/tls-tests: Likewise.
70607         * modules/argp-tests: Likewise.
70608         (check_PROGRAMS): New var, replacing...
70609         (noinst_PROGRAMS, test_argp_SOURCES): Remove.
70610
70611 2006-02-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
70612
70613         * lib/mkdtemp.c, lib/setenv.c, lib/unsetenv.c: Normalize inclusion of
70614         `config.h'.
70615
70616 2006-02-24  Paul Eggert  <eggert@cs.ucla.edu>
70617
70618         * lib/glob.c: Say "invalid" rather than "illegal" in comments.
70619
70620 2006-02-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
70621
70622         Sync from coreutils.
70623         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Require gl_FUNC_LCHMOD and
70624         gl_CHDIR_SAFER.
70625
70626 2006-02-22  Jim Meyering  <jim@meyering.net>
70627
70628         Sync from coreutils.
70629         * m4/chdir-safer.m4: New file.
70630
70631 2006-02-20  Paul Eggert  <eggert@cs.ucla.edu>
70632
70633         * lib/getcwd.c (AT_FDCWD): Work around a bug in Solaris 9 and 10, where
70634         AT_FDCWD exceeds INT_MAX.
70635         * lib/openat.h (AT_FDCWD): Likewise.
70636
70637 2006-02-17  Eric Blake  <address@hidden>
70638
70639         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix caching error.
70640
70641 2006-02-16  Simon Josefsson  <jas@extundo.com>
70642
70643         * modules/getaddrinfo (Depends-on): Add sys_socket.
70644
70645 2006-02-15  Simon Josefsson  <jas@extundo.com>
70646
70647         * build-aux/maint.mk: Add dsyntax-check rule.
70648
70649 2006-02-15  Eric Blake  <ebb9@byu.net>
70650
70651         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Don't attempt using
70652         winsock2.h or ws2tcpip.h when sys/socket.h is present. Fixes
70653         'present but cannot compile' warnings on cygwin.
70654         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Use gl_HEADER_SYS_SOCKET.  Don't
70655         use ws2tcpip.h if sys/socket.h works.
70656         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Use gl_HEADER_SYS_SOCKET.
70657         (gl_GETADDRINFO): Don't use ws2tcpip.h when sys/socket.h is present.
70658
70659 2006-02-14  Simon Josefsson  <jas@extundo.com>
70660
70661         * modules/maintainer-makefile (Files): Rename.
70662
70663         * build-aux/GNUmakefile: Rename Makefile.maint to maint.mk
70664         and (the local) Makefile.cfg to maint-cfg.mk.
70665
70666         * build-aux/Makefile.maint, build-aux/maint.mk: Renamed the former
70667         to the latter.
70668
70669         * modules/maintainer-makefile: New module.
70670
70671         * build-aux/Makefile.maint: New file, from GNU CoreUtils, although
70672         severaly stripped to make it possible to build it up from scratch
70673         with reliable tests.
70674
70675         * build-aux/GNUmakefile: New file, from GNU CoreUtils with some
70676         fixes to permit overriding the default actions when configure and
70677         makefile are not available.
70678
70679 2006-02-14  Paul Eggert  <eggert@cs.ucla.edu>
70680
70681         Sync from coreutils.
70682         * modules/lstat (Depends-on): Don't depend on xalloc.
70683         (License): Change from GPL to LGPL, since this is now simply a
70684         replacement for a libc function.
70685
70686 2006-02-14  Jim Meyering  <jim@meyering.net>
70687
70688         Sync from coreutils.
70689
70690         Eliminate the unwelcome (albeit unlikely) possibility of xmalloc
70691         failure on deficient systems, and simplify gnulib lgpl dependencies.
70692         * lib/lstat.c (rpl_lstat): Rewrite to use stat() in place of the
70693         xmalloc/lstat combination.  Based on a patch from Bruno Haible.
70694
70695         * lib/xalloc-die.c: Remove unused definition of N_.
70696
70697 2006-02-14  Jim Meyering  <jim@meyering.net>
70698
70699         Sync from coreutils.
70700         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Invoke
70701         AC_CHECK_FUNCS(getmntent) unconditionally so that tests of
70702         $ac_cv_func_getmntent (e.g., in gl_LIST_MOUNTED_FILE_SYSTEMS) need not
70703         double-quote uses of that variable, to accommodate the rare case in
70704         which getmntent is available in none of the libraries checked.  This
70705         happens at least on FreeBSD 5.0.
70706
70707 2006-02-13  Simon Josefsson  <jas@extundo.com>
70708
70709         * gnulib-tool (Usage): Fix --import, from
70710         karl@freefriends.org (Karl Berry).
70711
70712 2006-02-13  Sergey Poznyakoff  <gray@gnu.org.ua>
70713
70714         * lib/argp-fmtstream.c: Restore another bugfix lost on 2005-12-12
70715
70716 2006-02-07  Sergey Poznyakoff  <gray@gnu.org.ua>
70717
70718         * lib/argp-namefrob.h: Restore changes accidentally lost during the
70719         "autoupdate" on 2005-12-12.
70720
70721 2006-02-07  Paul Eggert  <eggert@cs.ucla.edu>
70722
70723         * modules/closeout (Depends-on): Remove atexit.
70724
70725 2006-02-07  Paul Eggert  <eggert@cs.ucla.edu>
70726
70727         * lib/closeout.c (close_stdout): Don't assume 'bool' converts nonzero
70728         ints to 0 or 1, as this isn't true for the stdbool.h substitute.
70729
70730 2006-02-05  Paul Eggert  <eggert@cs.ucla.edu>
70731
70732         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Don't #define
70733         __EXTENSIONS__ if this causes compilation to fail.  Problem
70734         reported by Nelson H. F. Beebe with Solaris 10 and Sun C 5.7
70735         c89 -D_XOPEN_SOURCE -D_XOPEN_SOURCE_EXTENDED.
70736
70737 2006-01-27  Paul Eggert  <eggert@cs.ucla.edu>
70738
70739         * lib/fnmatch.c (L_): Renamed from L, to work around a bug in
70740         Mac OS X 10.3.9 with GCC 3 reported by Claudio Fontana in
70741         <http://lists.gnu.org/archive/html/bug-gnulib/2006-01/msg00074.html>.
70742         All uses changed.
70743
70744 2006-01-26  Simon Josefsson  <jas@extundo.com>
70745
70746         * lib/socket_.h: Set WINVER to 0x0501, to make sure getaddrinfo
70747         prototype is visible on mingw32.
70748
70749         * lib/getaddrinfo.h: Define EAI_ADDRFAMILY and EAI_SYSTEM if not set,
70750         for mingw32.
70751
70752         * lib/gai_strerror.c, getaddrinfo.h: Protect netdb.h #include (for
70753         mingw32).
70754
70755 2006-01-26  Paul Eggert  <eggert@cs.ucla.edu>
70756
70757         * lib/fts.c (diropen): Open with O_NOCTTY | O_NONBLOCK too.  Don't
70758         attempt to open for write; this always fails, at least on POSIX
70759         hosts.  This reinstates the 2006-01-09 change, which was
70760         inadvertently removed.
70761
70762 2006-01-26  Bruno Haible  <bruno@clisp.org>
70763
70764         * gnulib-tool (func_import): Use "trap 'exit $?' instead of "trap :".
70765         Reported by Paul Eggert.
70766
70767 2006-01-26  Bruno Haible  <bruno@clisp.org>
70768             Paul Eggert  <eggert@cs.ucla.edu>
70769
70770         * lib/stdbool_.h (_Bool)
70771         [(! (defined __cplusplus || defined __BEOS__)
70772           && !defined __GNUC__
70773           && !(defined __HP_cc || defined __xlc__
70774                || (defined __SUNPRO_C && (__SUNPRO_C < 0x550 || __STDC__ == 1))
70775                || defined __sgi))]:
70776         #define to signed char in these cases too; this simplifies
70777         the code (so that we don't have to worry about HP-UX, AIX, SunPRO,
70778         etc., separately) and makes it more conservative.
70779
70780 2006-01-25  Simon Josefsson  <jas@extundo.com>
70781
70782         * m4/getaddrinfo.m4: Look for getaddrinfo inside ws2tcip.h and
70783         -lws2_32.  Protect sys/socket.h and netdb.h #include's.  Include
70784         ws2tcpip.h with WINVER=0x0501.  All for mingw32.
70785
70786 2006-01-25  Sergey Poznyakoff  <gray@gnu.org.ua>
70787
70788         * lib/argp-namefrob.h: Bugfix. Remove stray #
70789
70790 2006-01-25  Paul Eggert  <eggert@cs.ucla.edu>
70791
70792         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check for xlc bug if __GCC__ too,
70793         so that we test the test.
70794         Check for yet another HP-UX cc bug involving *bool |= bool.
70795
70796 2006-01-25  Karl Berry  <karl@gnu.org>
70797
70798         * config/srclist.txt (vasnprintf.c): sync lost.
70799
70800 2006-01-25  Jim Meyering  <jim@meyering.net>
70801
70802         Sync from the stable (b5) branch of coreutils:
70803
70804         * lib/fts.c (fts_children): Don't let close() clobber errno from
70805         failed fchdir().
70806
70807         * lib/fts.c (fts_stat): When following a symlink-to-directory,
70808         don't necessarily interpret stat-fails+lstat-succeeds as indicating
70809         a dangling symlink.  That can also happen at least for ELOOP.
70810         The fix: return FTS_SLNONE only when the stat errno is ENOENT.
70811         FYI, this bug predates the inclusion of fts.c in coreutils.
70812
70813         * lib/fts.c (fts_open): Put new maxarglen declaration and uses
70814         in their own block, so pre-c99 compilers don't object.
70815
70816         Avoid the double-free (first in fts_read, second in fts_close) that
70817         would occur when an `active' directory is made inaccessible (e.g.,
70818         via chmod a-x) during a traversal.
70819         * lib/fts.c (fts_read): After a failed fchdir, update sp->fts_cur
70820         before returning.  Reproduce this failure by
70821         mkdir -p a/b; cd a; chmod a-x . b
70822         Reported by Stavros Passas.
70823
70824 2006-01-25  Jim Meyering  <jim@meyering.net>
70825
70826         * lib/fileblocks.c: Remove more useless parentheses.
70827         * lib/readutmp.h: Likewise.
70828
70829 2006-01-25  Bruno Haible  <bruno@clisp.org>
70830
70831         * lib/stdbool_.h (_Bool) [IRIX cc]: Define as 'signed char', to avoid
70832         warnings.
70833         Reported by Paul Eggert.
70834
70835 2006-01-25  Bruno Haible  <bruno@clisp.org>
70836
70837         * gnulib-tool (func_import): Use "trap :" instead of "trap -" to get
70838         rid of a trap command. For Solaris sh.
70839         Reported by Mark D. Baushke <mdb@gnu.org>.
70840
70841 2006-01-24  Simon Josefsson  <jas@extundo.com>
70842
70843         * lib/socket_.h (SHUT_WR, SHUT_RDWR): Don't hardcode, suggested by
70844         Bruno.
70845
70846 2006-01-24  Karl Berry  <karl@gnu.org>
70847
70848         * config/srclist.txt (argp-namefrob.h): sync lost.
70849
70850 2006-01-24  Jim Meyering  <jim@meyering.net>
70851
70852         * modules/openat (Files): Add lib/intprops.h.
70853         From Mark D. Baushke.
70854
70855 2006-01-24  Jim Meyering  <jim@meyering.net>
70856
70857         * m4/openat.m4 (gl_FUNC_OPENAT): Add AC_LIBSOURCES([intprops.h]).
70858         Reported by Mark D. Baushke.
70859
70860 2006-01-24  Jim Meyering  <jim@meyering.net>
70861
70862         * lib/socket_.h: Remove useless parentheses in uses of cpp `defined'.
70863
70864 2006-01-24  Bruno Haible  <bruno@clisp.org>
70865
70866         * modules/strnlen (Maintainer): Change from glibc to all.
70867
70868 2006-01-24  Bruno Haible  <bruno@clisp.org>
70869
70870         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check for IBM and HP-UX bugs.
70871         Patch by Paul Eggert.
70872
70873 2006-01-24  Bruno Haible  <bruno@clisp.org>
70874
70875         * lib/stdbool_.h (_Bool) [__cplusplus]: Don't define if the compiler
70876         already has it.
70877         Report and patch by Albert Chin-A-Young  <china@thewrittenword.com> on
70878         2005-11-26.
70879
70880         * lib/stdbool_.h (_Bool) [HP-UX cc, AIX cc,xlc]: Define as
70881         'signed char' to avoid problems with the built-in _Bool type.
70882         Reported by Paul Eggert on 2005-11-26.
70883
70884 2006-01-24  Bruno Haible  <bruno@clisp.org>
70885
70886         * gnulib-tool (func_import): Avoid constructing complicated sed
70887         expressions inside backquote.
70888         Report and solution by Mark D. Baushke <mdb@gnu.org>.
70889
70890 2006-01-23  Ulrich Drepper  <drepper@redhat.com>
70891
70892         These changes imported from libc.
70893         * lib/getopt.c: Use __fxprintf instead of inline stream orientation
70894         test and two separate function calls.
70895         * lib/strndup.c (__strndup): Add libc_hidden_def.
70896
70897 2006-01-23  Simon Josefsson  <jas@extundo.com>
70898
70899         * modules/lock-tests: Use check_PROGRAMS instead of noinst_PROGRAMS.
70900         Remove the test_*_SOURCES variable: automake infers it by default.
70901         * modules/tls-tests: Likewise.
70902
70903 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
70904
70905         Work around porting bugs reported by Dieter in
70906         <http://lists.gnu.org/archive/html/bug-bison/2006-01/msg00049.html>.
70907         * lib/getopt.c (_NOPROTO): Remove; no longer needed.
70908         Include <stdlib.h> and <unistd.h> in all environments; it's safe now.
70909         Include "getopt.h" first, to check interface.
70910         (getenv): Declare only if defined HAVE_DECL_GETENV &&
70911         !HAVE_DECL_GETENV.
70912         * lib/strndup.c [!_LIBC]: Include "strndup.h" to get prototype.
70913         (__strndup): Revert to K&R-style function dfns, the glibc style.
70914         * lib/strnlen.c: Don't claim it's taken from glibc; it's not.
70915         (strnlen, __strnlen): Remove #defines and #undefs; not needed.
70916         Include strnlen.h first, to get prototype properly.
70917         (strnlen): Renamed from __strnlen.
70918         Remove weak alias.
70919
70920 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
70921
70922         * m4/getopt.m4 (gl_PREREQ_GETOPT): Check for getenv decl.
70923
70924 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
70925
70926         * config/srclist.txt: Adjust to reflect glibc reorganization.
70927         This affects only comments.
70928
70929 2006-01-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
70930
70931          * gnulib-tool, build-aux/csharpcomp.sh.in: Do not pass `-q' to mktemp.
70932          Reported by Bruce Korb <bkorb@gnu.org>.
70933
70934 2006-01-22  Paul Eggert  <eggert@cs.ucla.edu>
70935
70936         * lib/quotearg.c (quotearg_buffer_restyled): Add "default: break;"
70937         to pacify gcc -Wswitch-default.
70938
70939 2006-01-22  Bruno Haible  <bruno@clisp.org>
70940
70941         * lib/vasnprintf.c (VASNPRINTF): In the computation of the size of the
70942         temporary buffer for sprintf, take into account the precision also
70943         for 'd', 'i', 'u', 'o', 'x', 'X'.
70944
70945 2006-01-21  Sergey Poznyakoff  <gray@gnu.org.ua>
70946
70947         * modules/argp-tests: New module
70948         * tests/test-argp.c: New file
70949         * tests/test-argp-2.sh: New file
70950
70951 2006-01-21  Sergey Poznyakoff  <gray@gnu.org.ua>
70952
70953         * lib/argp-help.c (usage_long_opt): Do not print DOC options.
70954         (__argp_base_name): Removed
70955         * lib/argp-namefrob.h (__argp_basename): Removed definition. Was a
70956         typo.
70957         (__argp_base_name): Provide macro definition or extern declaration
70958         depending on the configuration
70959
70960 2006-01-20  Simon Josefsson  <jas@extundo.com>
70961
70962         * modules/inet_ntop (Depends-on): Depend on sys_socket.
70963
70964 2006-01-20  Simon Josefsson  <jas@extundo.com>
70965
70966         * lib/inet_ntop.h: Unconditionally include sys/socket.h.
70967
70968 2006-01-20  Paul Eggert  <eggert@cs.ucla.edu>
70969
70970         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Use -Wl,-z,ignore
70971         rather than -Xlinker -z -Xlinker ignore, as it's more portable.
70972         Suggested by Bruno Haible.
70973
70974 2006-01-20  Karl Berry  <karl@gnu.org>
70975
70976         * config/srclist.txt (argp-fmtstream.h, localcharset.c): comment out
70977         until changes propagate, I guess.
70978
70979 2006-01-19  Simon Josefsson  <jas@extundo.com>
70980
70981         * m4/socklen.m4: Look in ws2tcpip.h too, for mingw32.
70982
70983 2006-01-19  Simon Josefsson  <jas@extundo.com>
70984
70985         * lib/socket_.h: Map SHUT_RD, SHUT_WR, SHUT_RDWR correctly.
70986
70987 2006-01-19  Simon Josefsson  <jas@extundo.com>
70988
70989         * gnulib-tool: Set check_PROGRAMS.
70990
70991         * modules/arcfour-tests, modules/arctwo-tests, modules/crc-tests,
70992         modules/des-tests, modules/gc-arcfour-tests,
70993         modules/gc-arctwo-tests, modules/gc-des-tests,
70994         modules/gc-hmac-md5-tests, modules/gc-hmac-sha1-tests,
70995         modules/gc-md2-tests, modules/gc-md4-tests, modules/gc-md5-tests,
70996         modules/gc-pbkdf2-sha1-tests, modules/gc-rijndael-tests,
70997         modules/gc-sha1-tests, modules/gc-tests, modules/hmac-md5-tests,
70998         modules/hmac-sha1-tests, modules/md2-tests, modules/md4-tests,
70999         modules/md5-tests, modules/readline, modules/rijndael-tests: Use
71000         check_PROGRAMS instead of noinst_PROGRAMS to be able to remove
71001         test_*_SOURCES.
71002
71003 2006-01-18  Simon Josefsson  <jas@extundo.com>
71004
71005         * modules/socklen (Depends-on): Depend on sys_socket.
71006
71007 2006-01-18  Simon Josefsson  <jas@extundo.com>
71008
71009         * modules/arcfour-tests, modules/arctwo-tests, modules/crc-tests,
71010         modules/des-tests, modules/gc-arcfour-tests,
71011         modules/gc-arctwo-tests, modules/gc-des-tests,
71012         modules/gc-hmac-md5-tests, modules/gc-hmac-sha1-tests,
71013         modules/gc-md2-tests, modules/gc-md4-tests, modules/gc-md5-tests,
71014         modules/gc-pbkdf2-sha1-tests, modules/gc-rijndael-tests,
71015         modules/gc-sha1-tests, modules/gc-tests, modules/hmac-md5-tests,
71016         modules/hmac-sha1-tests, modules/md2-tests, modules/md4-tests,
71017         modules/md5-tests, modules/readline, modules/rijndael-tests: Add
71018         $(EXEEXT) to automake TESTS variable, for mingw32.
71019
71020 2006-01-17  Simon Josefsson  <jas@extundo.com>
71021
71022         * modules/socklen (Include): Need sys/socket.h.
71023
71024 2006-01-17  Bruno Haible  <bruno@clisp.org>
71025
71026         * modules/ssize_t (Include): Add <sys/types.h>.
71027
71028 2006-01-16  Paul Eggert  <eggert@cs.ucla.edu>
71029
71030         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Don't use ldd, as
71031         it's not portable and it doesn't work with cross-compiles.
71032         Problem reported by Bruno Haible.  Fix missing-$ typo in
71033         'test "gl_cv_ignore_unused_libraries" ...' that prevented
71034         -zignore from being used with Sun's C compiler.
71035
71036 2006-01-12  Simon Josefsson  <jas@extundo.com>
71037
71038         * lib/base64.c: Fix warning, reported by Bruno Haible
71039         <bruno@clisp.org> and patch by Paul Eggert <eggert@CS.UCLA.EDU>.
71040
71041 2006-01-12  Bruno Haible  <bruno@clisp.org>
71042
71043         * modules/ldd: New file.
71044         * build-aux/ldd.sh.in: New file.
71045         * MODULES.html.sh (Support for building libraries and executables): Add
71046         ldd.
71047
71048 2006-01-12  Bruno Haible  <bruno@clisp.org>
71049
71050         * m4/ldd.m4: New file.
71051
71052 2006-01-12  Bruno Haible  <bruno@clisp.org>
71053
71054         * gnulib-tool (func_import, func_create_testdir): Don't go into an
71055         endless loop while replacing $auxdir with build-aux.
71056
71057 2006-01-11  Simon Josefsson  <jas@extundo.com>
71058
71059         * lib/stdint_.h (SIZE_MAX): Add missing (.
71060
71061 2006-01-11  Paul Eggert  <eggert@cs.ucla.edu>
71062
71063         Sync from coreutils.
71064         * lib/md5.c: Fix commentary typos.
71065         (alignof, UNALIGNED_P): No need for a GCC-specific version.
71066         * lib/md5.h (__attribute__): Remove; unused.
71067         * lib/sha1.c: Fix commentary to match md5 better.
71068         * lib/sha1.h (struct sha1_ctx): Use a word buffer, not a byte buffer,
71069         so that we don't need to worry about alignment.  All uses changed.
71070         This merges the 2005-10-28 md5 change into sha1.
71071
71072 2006-01-11  Jim Meyering  <jim@meyering.net>
71073
71074         Sync from coreutils.
71075         * lib/md5.c (OP): Fix spacing.
71076
71077 2006-01-11  Bruno Haible  <bruno@clisp.org>
71078
71079         Ensure automatic ordering between gl_LOCK and gl_ARGP.
71080         * m4/lock.m4 (gl_LOCK_BODY): Renamed from gl_LOCK.
71081         (gl_LOCK): New macro, requiring gl_LOCK_BODY.
71082
71083 2006-01-11  Bruno Haible  <bruno@clisp.org>
71084
71085         Ensure automatic ordering between gl_LOCK and gl_ARGP.
71086         * gnulib-tool (func_import, func_create_testdir): Put gl_LOCK into
71087         the "early" section as well.
71088
71089 2006-01-11  Bruno Haible  <bruno@clisp.org>
71090
71091         Avoid "ar: no archive members specified" error on MacOS X.
71092         * gnulib-tool (func_modules_add_dummy): New function.
71093         (func_import, func_create_testdir): Invoke it.
71094
71095 2006-01-11  Bruno Haible  <bruno@clisp.org>
71096
71097         * gnulib-tool (func_import, func_create_testdir): Replace build-aux
71098         with $auxdir in AC_CONFIG_FILES statements.
71099
71100 2006-01-11  Bruno Haible  <bruno@clisp.org>
71101
71102         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
71103         Initialize also noinst_HEADERS to empty.
71104
71105 2006-01-11  Bruno Haible  <bruno@clisp.org>
71106
71107         * gnulib-tool (AUTOMAKEPATH, AUTOCONF, ACLOCAL, AUTOMAKE): New
71108         variables.
71109         (func_create_megatestdir): Call aclocal, autoconf, automake here, not
71110         autoreconf.
71111
71112 2006-01-11  Bruno Haible  <bruno@clisp.org>
71113
71114         * gnulib-tool (AUTOCONF, ACLOCAL, AUTOMAKE, AUTORECONF): Make
71115         overridable by the user.
71116         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
71117
71118 2006-01-10  Simon Josefsson  <jas@extundo.com>
71119
71120         * modules/sys_socket: New file.
71121
71122 2006-01-10  Simon Josefsson  <jas@extundo.com>
71123
71124         * m4/sys_socket_h.m4: New file.
71125
71126 2006-01-10  Simon Josefsson  <jas@extundo.com>
71127
71128         * lib/socket_.h: New file.
71129
71130 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
71131
71132         * modules/readutmp (Maintainer): Add myself.
71133
71134 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
71135
71136         * m4/memcoll.m4 (gl_MEMCOLL): Don't require AC_FUNC_MEMCMP, undoing
71137         the 2002-12-31 change.  Problem and fix reported by Bruno Haible.
71138         People who are still concerned with buggy memcmp implementations
71139         can invoke gl_FUNC_MEMCMP themselves.
71140
71141 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
71142
71143         * lib/regex_internal.h (BITSET_WORD_BITS):
71144         Work around a bug in 64-bit PGC (before version 6.1-2), where the
71145         preprocessor mishandles large unsigned values as if they were signed.
71146         Problem reported by Claudio Fontana in
71147         <http://lists.gnu.org/archive/html/bug-gnulib/2005-12/msg00061.html>.
71148
71149 2006-01-10  Jim Meyering  <jim@meyering.net>
71150
71151         Avoid the double-free (first in fts_read, second in fts_close) that
71152         would occur when an `active' directory is made inaccessible (e.g.,
71153         via chmod a-x) during a traversal.
71154         * lib/fts.c (fts_read): After a failed fchdir, update sp->fts_cur
71155         before returning.  Reproduce this failure by
71156         mkdir -p a/b; cd a; chmod a-x . b
71157         Reported by Stavros Passas.
71158
71159         Sync from coreutils.
71160         * lib/sha1.c: Tweak grammar in a comment.
71161
71162 2006-01-10  Jim Meyering  <jim@meyering.net>
71163
71164         * m4/fpending.m4: Also include <stdio.h>, for Dragonfly.
71165         Patch by Joerg Sonnenberger.
71166
71167 2006-01-10  Bruno Haible  <bruno@clisp.org>
71168
71169         * modules/readutmp: Depend on module free.
71170         * modules/strtok_r: Depend on module restrict.
71171
71172 2006-01-10  Bruno Haible  <bruno@clisp.org>
71173
71174         * modules/gettext (configure.ac): Add an invocation of
71175         AM_GNU_GETTEXT_VERSION. Needed since autoreconf is used by gnulib-tool.
71176
71177 2006-01-10  Bruno Haible  <bruno@clisp.org>
71178
71179         * m4/localcharset.m4 (gl_LOCALCHARSET): Also test for getc_unlocked.
71180         Reported by Werner Lemberg <wl@gnu.org>.
71181
71182 2006-01-10  Bruno Haible  <bruno@clisp.org>
71183
71184         * lib/localcharset.c: Update from GNU gettext.
71185
71186 2006-01-10  Bruno Haible  <bruno@clisp.org>
71187
71188         * lib/argp.h (__const): Remove macro. Use const instead.
71189         * lib/argp-fmtstream.h (__const): Likewise.
71190         * lib/glob_.h (__const): Remove macro.
71191         * lib/glob-libc.h: Use const instead of __const.
71192
71193 2006-01-10  Bruno Haible  <bruno@clisp.org>
71194
71195         * gnulib-tool (func_emit_tests_Makefile_am): Emit an empty SUBDIR
71196         variable.
71197         Needed to avoid an automake error regarding the 'gettext' module.
71198
71199 2006-01-09  Simon Josefsson  <jas@extundo.com>
71200
71201         * modules/inet_ntop (Depends-on): Add restrict.
71202
71203 2006-01-09  Simon Josefsson  <jas@extundo.com>
71204
71205         * modules/gc-rijndael-tests (License): Put under LGPL.
71206
71207         * modules/gc-des-tests (License): Likewise.
71208
71209         * modules/gc-arcfour-tests (License): Likewise.
71210
71211         * modules/gc-arctwo-tests (License): Likewise.
71212
71213         * modules/gc-pbkdf2-sha1-tests (License): Likewise.
71214
71215         * modules/gc-hmac-sha1-tests (Files): Likewise.
71216
71217         * modules/gc-hmac-md5-tests (License): Likewise.
71218
71219         * modules/gc-sha1-tests (License): Likewise.
71220
71221         * modules/gc-md5-tests (License): Likewise.
71222
71223         * modules/gc-md4-tests (License): Likewise.
71224
71225         * modules/gc-md2-tests (License): Likewise.
71226
71227         * modules/gc-tests (License): Likewise.
71228
71229         * modules/des-tests (License): Likewise.
71230
71231         * modules/md4-tests (License): Likewise.
71232
71233         * modules/md2-tests (License): Likewise.
71234
71235 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
71236
71237         Sync from coreutils:
71238
71239         * MODULES.html.sh (build_lib): New section, with new lib-ignore module.
71240         * modules/lib-ignore: New file.
71241         * modules/mkdir-p (Files): Add chdir-safer.c, chdir-safer.h, lchmod.h,
71242         chdir-safer.m4, lchmod.m4.
71243         * modules/openat: Add mkdirat.c, openat-priv.h.
71244
71245 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
71246
71247         Sync from coreutils.
71248         * m4/lib-ignore.m4: New file.
71249         * m4/lchmod.m4: New file.
71250
71251 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
71252
71253         Sync from coreutils.
71254         * lib/chdir-long.c (cdb_free): Don't bother trying to open directory
71255         for write access: POSIX says that must fail.
71256         * lib/fts.c (diropen): Likewise.
71257         * lib/save-cwd.c (save_cwd): Likewise.
71258         * lib/chdir-long.c (cdb_free): Open with O_NOCTTY | O_NONBLOCK as
71259         well, for minor improvements on hosts that lack O_DIRECTORY.
71260         * lib/chown.c (rpl_chown) [CHOWN_MODIFIES_SYMLINK]:
71261         Don't try O_WRONLY unless O_RDONLY failed wth EACCES.
71262         Fall back on chown if open failed with EACCES.
71263
71264         * lib/gettime.c (gettime) [!defined OK_TO_USE_1S_CLOCK]:
71265         Report an error at compile-time if only a 1-second nominal clock
71266         resolution is found.
71267
71268         * lib/lchmod.h: New file.
71269         * lib/mkdir-p.c: Include lchmod.h, lchown.h.
71270         (make_dir_parents): Use lchown rather than chown, and
71271         lchmod rather than chmod.
71272
71273         * lib/mountlist.c (ME_DUMMY): "none" and "proc" file systems are
71274         dummies too.  Problem with "none" reported by Bob Proulx.  Problem with
71275         "proc" reported by n0dalus.
71276
71277         * lib/mountlist.c: Include <limits.h>.
71278         (dev_from_mount_options)
71279         [defined MOUNTED_GETMNTENT1 || defined MOUNTED_GETMNTENT2]:
71280         New function.  It no longer assumes "dev=" has the System V meaning
71281         on Linux (since it doesn't).  It also parses "dev=" more carefully.
71282         (read_file_system_list)
71283         [defined MOUNTED_GETMNTENT1 || defined MOUNTED_GETMNTENT2]: Use it.
71284         MOUNTED_GETMNTENT2 is new here; the code didn't used to look for
71285         dev= in that case.
71286
71287         * lib/posixtm.h (PDS_PRE_2000): New macro.
71288         * lib/posixtm.c (year): Arg is now syntax_bits rather than
71289         allow_century.  All usages changed.  Reject dates outside the range
71290         1969-1999 if PDS_PRE_2000 is used.
71291
71292 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
71293
71294         Sync from coreutils.
71295         * doc/getdate.texi (General date syntax): Invalid dates are rejected.
71296         (Time of day items): Mention the possibility of leap seconds.
71297         Problem reported by Dr. David Alan Gilbert.
71298
71299 2006-01-09  Jim Meyering  <jim@meyering.net>
71300
71301         Sync from coreutils.
71302
71303         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2006.
71304
71305         * lib/chdir-safer.h, lib/chdir-safer.c: New files.
71306
71307         * lib/modechange.c (mode_compile): Reject an invalid mode string
71308         that starts with an octal digit.  From Andreas Gruenbacher.
71309
71310         * lib/openat.c: Include "fcntl--.h" and "unistd--.h", to map open
71311         and dup to open_safer and dup_safer, respectively.
71312         (openat_permissive): Fix typo in comment.
71313
71314         * lib/openat.c: Don't include <stdlib.h>, <unistd.h>, <fcntl.h>,
71315         "gettext.h"; either no longer needed or are guaranteed by openat.h.
71316         (_): Remove; no longer needed.
71317         (openat): Renamed from rpl_openat; no need for rpl_openat
71318         since openat.h renames openat for us.
71319         Replace most of the body with a call to openat_permissive,
71320         to avoid duplicate code.
71321         Port to (probably hypothetical) environments were mode_t is
71322         wider than int.
71323         (openat_permissive): Require mode arg, so that we can check
71324         types better.  Put it just after flags.  Change cwd failure
71325         indicator from pointer-to-bool to pointer-to-errno-value.
71326         All callers changed.
71327         Invoke openat_save_fail and/or openat_restore_fail if
71328         cwd_errno is null, so that openat can call us.
71329         (openat_permissive, fdopendir, fstatat, unlinkat):
71330         Simplify errno handling to avoid some duplicate code,
71331         as it's OK to set errno on success.
71332         * lib/openat.h: Revamp code so that function macros depend on
71333         __OPENAT_PREFIX only, not also on AT_FDCWD.
71334         (openat_ro): Remove.  Caller changed to use openat_permissive.
71335         (openat_permissive): Now a macro, if not a function.
71336         (openat_restore_fail, openat_save_fail): Now always functions,
71337         since mkdirat needs them even if __OPENAT_PREFIX is defined.
71338
71339         * lib/openat-priv.h: New file, defining macros used by mkdirat.c
71340         and openat.c.
71341         * lib/mkdirat.c: Include openat-priv.h.
71342         Remove definitions of macros defined therein.
71343         * lib/openat.c: Likewise.
71344
71345         * lib/mkdirat.c (mkdirat): New file and function.
71346         * lib/openat.h (mkdirat): Declare.
71347
71348         * lib/openat.c (fdopendir): Don't change errno when returning non-NULL.
71349
71350         * lib/openat.h (openat_permissive): Declare.
71351         (openat_ro): Define.
71352
71353         * lib/openat.c (EXPECTED_ERRNO): New macro.
71354         (openat_permissive): New function -- used in remove.c rewrite.
71355         (all functions): Set errno just before returning, only if there
71356         was an actual failure.
71357         Use EXPECTED_ERRNO rather than comparing against only ENOTDIR.
71358
71359         Emulate openat-family functions using Linux's procfs, if possible.
71360         Idea and some code based on Ulrich Drepper's glibc changes.
71361
71362         * lib/openat.c: (BUILD_PROC_NAME): New macro.
71363         Include <stdio.h>, <string.h>, "alloca.h" and "intprops.h".
71364         (rpl_openat): Emulate by trying to open /proc/self/fd/%d/%s,
71365         before falling back on save_cwd and restore_cwd.
71366         (fdopendir, fstatat, unlinkat): Likewise.
71367
71368         * lib/openat.c (fstatat, unlinkat): Perform the syscall directly,
71369         skipping the save_cwd...restore_cwd overhead, if FILE is absolute.
71370
71371         * lib/openat.c (rpl_openat): Use the promoted type (int), not mode_t,
71372         as second argument to va_arg.  Otherwise, some versions of gcc
71373         warn that `if this code is reached, the program will abort'.
71374
71375 2006-01-09  Jim Meyering  <jim@meyering.net>
71376
71377         Sync from coreutils.
71378         * m4/openat.m4 (gl_FUNC_OPENAT): Require and compile mkdirat.c.
71379         Require openat-priv.h.
71380
71381 2006-01-09  Bruno Haible  <bruno@clisp.org>
71382
71383         * modules/strnlen (Include): Use strnlen.h.
71384
71385 2006-01-09  Bruno Haible  <bruno@clisp.org>
71386
71387         * m4/stdint.m4 (gl_STDINT_H): Also test for <sys/bitypes.h>.
71388
71389 2006-01-09  Bruno Haible  <bruno@clisp.org>
71390
71391         * lib/sysexit_.h (EX_OK): New macro.
71392         Suggested by Martin Lambers <marlam@marlam.de>.
71393
71394 2006-01-09  Bruno Haible  <bruno@clisp.org>
71395
71396         * lib/stdint_.h: On Linux libc4 and libc5, include <sys/bitypes.h> and
71397         don't define _STDINT_H_NEED_SIGNED_INT_TYPES.
71398
71399 2006-01-09  Bruno Haible  <bruno@clisp.org>
71400
71401         * lib/stdint_.h (SIZE_MAX): Write the value without involving negative
71402         numbers.
71403
71404 2006-01-09  Bruno Haible  <bruno@clisp.org>
71405
71406         * lib/javacomp.sh.in: Move to ../build-aux/javacomp.sh.in.
71407         * lib/javaexec.sh.in: Move to ../build-aux/javaexec.sh.in.
71408         * lib/csharpcomp.sh.in: Move to ../build-aux/csharpcomp.sh.in.
71409         * lib/csharpexec.sh.in: Move to ../build-aux/csharpexec.sh.in.
71410
71411 2006-01-09  Bruno Haible  <bruno@clisp.org>
71412
71413         * build-aux/javacomp.sh.in: New file, moved from lib/.
71414         * modules/javacomp-script (Files): Update.
71415         (configure.ac): Add AC_CONFIG_FILES invocation.
71416         (EXTRA_DIST): Remove variable.
71417
71418         * build-aux/javaexec.sh.in: New file, moved from lib/.
71419         * modules/javaexec (Files): Update.
71420         (configure.ac): Add AC_CONFIG_FILES invocation.
71421         (EXTRA_DIST): Remove javaexec.sh.in.
71422
71423         * build-aux/csharpcomp.sh.in: New file, moved from lib/.
71424         * modules/csharpcomp-script (Files): Update.
71425         (configure.ac): Add AC_CONFIG_FILES invocation.
71426         (EXTRA_DIST): Remove variable.
71427
71428         * build-aux/csharpexec.sh.in: New file, moved from lib/.
71429         * modules/csharpexec (Files): Update.
71430         (configure.ac): Add AC_CONFIG_FILES invocation.
71431         (EXTRA_DIST): Remove csharpexec.sh.in.
71432
71433 2006-01-09  Andreas Gruenbacher  <agruen@suse.de>
71434
71435         Sync from coreutils.
71436
71437         Add POSIX ACL support
71438         * lib/acl.h (copy_acl, set_acl): Add declarations.
71439         * lib/acl.c (acl_entries): Add fallback implementation for POSIX ACL
71440         systems other than Linux.
71441         (chmod_or_fchmod): New function: use fchmod when possible,
71442         and chmod otherwise.
71443         (file_has_acl): Add a POSIX ACL implementation, with a
71444         Linux-specific subcase.
71445         (copy_acl): Add: copy an acl and S_ISUID, S_ISGID, and
71446         S_ISVTX from one file to another.  Fall back to fchmod/chmod when
71447         acls are unsupported.
71448         (set_acl): Add: set a file's acl and S_ISUID, S_ISGID, and
71449         S_ISVTX to a defined value.  Fall back to fchmod/chmod when acls
71450         are unsupported.
71451
71452 2006-01-09  Andreas Gruenbacher  <agruen@suse.de>
71453
71454         Sync from coreutils.
71455         * m4/acl.m4 (AC_FUNC_ACL): Add POSIX ACL and Linux-specific acl tests.
71456
71457 2006-01-07  Bruno Haible  <bruno@clisp.org>
71458
71459         * gnulib-tool (func_import): Add an AC_PROG_RANLIB dependency to
71460         gl_EARLY.
71461
71462 2006-01-04  Paul Eggert  <eggert@cs.ucla.edu>
71463
71464         * lib/strftime.c (tzname): Don't declare if it is already #defined.
71465         Problem reported for Mingw by Mark Junker.
71466
71467 2006-01-04  Paul Eggert  <eggert@cs.ucla.edu>
71468
71469         * README: Gnulib normally doesn't generate a tarball.
71470
71471 2006-01-03  Paul Eggert  <eggert@cs.ucla.edu>
71472
71473         * lib/xtime.h (xtime_make, xtime_nonnegative_nsec, xtime_nsec): Use
71474         long int, not int, for nanosecond counts, so that people who are
71475         used to POSIX struct timespec won't be surprised.  Reported by Jim
71476         Meyering.
71477
71478 2005-12-28  Bruno Haible  <bruno@clisp.org>
71479
71480         * build-aux/config.rpath: Update from GNU gettext.
71481
71482 2005-12-16  Jim Meyering  <jim@meyering.net>
71483
71484         * modules/fprintftime: New module.
71485         * MODULES.html.sh (Date and time <time.h>): Add fprintftime.
71486
71487 2005-12-16  Jim Meyering  <jim@meyering.net>
71488
71489         * m4/fprintftime.m4: New file.
71490
71491 2005-12-16  Jim Meyering  <jim@meyering.net>
71492
71493         * lib/fprintftime.c, lib/fprintftime.h: New files.
71494
71495 2005-12-15  Simon Josefsson  <jas@extundo.com>
71496
71497         * modules/socklen (configure.ac): Fix M4 macro name, to align with
71498         new m4/socklen.m4.
71499
71500 2005-12-10  Sergey Poznyakoff  <gray@gnu.org.ua>
71501
71502         * m4/argp.m4: Define HAVE_DECL_PROGRAM_INVOCATION_NAME and
71503         HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME
71504
71505 2005-12-10  Sergey Poznyakoff  <gray@gnu.org.ua>
71506
71507         * lib/argp-fmtstream.c (__argp_fmtstream_update): Fix coredump
71508         * lib/argp-help.c (fill_in_uparams): Check if the constructed
71509         struct uparams is valid. Fall back to the default values if it is
71510         not.
71511
71512 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
71513
71514         * modules/argp (Files): Add argp-pin.c
71515         (Depends-on): dirname
71516         (lib_SOURCES): Add argp-pin.c
71517
71518 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
71519
71520         * m4/argp.m4:  Check if program_invocation_name and
71521         program_invocation_short_name are declared and define appropriate
71522         macros if they are not.
71523
71524 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
71525
71526         * lib/argp-help.c (__argp_base_name): New function
71527         (__argp_short_program_name): Rewrite using __argp_base_name
71528         * lib/argp-namefrob.h: Define program_invocation_name and
71529         program_invocation_short_name if requested
71530         (__argp_base_name): Add prototype
71531         * lib/argp-parse.c (argp_def): Use gettext wrappers
71532         (argp_default_parser): Use __argp_base_name
71533         * lib/argp-pin.c: New file. Defines program_invocation_name and
71534         program_invocation_short_name on systems that lack them.
71535
71536 2005-12-07  Paul Eggert  <eggert@cs.ucla.edu>
71537
71538         * m4/stat-time.m4 (gl_STAT_TIME): Add check for
71539         TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC, to fix IRIX 5.3
71540         porting problem reported by Georg Schwarz in
71541         <http://lists.gnu.org/archive/html/bug-coreutils/2005-12/msg00083.html>.
71542
71543 2005-12-07  Paul Eggert  <eggert@cs.ucla.edu>
71544
71545         * lib/stat-time.h (STATE_TIMESPEC, STAT_TIMESPEC_NS): Add check for
71546         TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC, to fix IRIX 5.3
71547         porting problem reported by Georg Schwarz in
71548         <http://lists.gnu.org/archive/html/bug-coreutils/2005-12/msg00083.html>.
71549
71550 2005-12-05  Bruno Haible  <bruno@clisp.org>
71551
71552         * lib/csharpcomp.sh.in (options_csc): For -l option, add a .dll suffix.
71553         * lib/csharpcomp.c (compile_csharp_using_sscli): Likewise.
71554         Reported by Mark Junker <mjscod@gmx.de>.
71555
71556 2005-12-02  Paul Eggert  <eggert@cs.ucla.edu>
71557
71558         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Renamed from gl_SOCKLEN_T.
71559         Use implementation from Albert Chin, with some
71560         comments/corrections by Stepan Kasal and myself.
71561
71562 2005-12-02  Bruno Haible  <bruno@clisp.org>
71563
71564         * gnulib-tool (func_import): Accept GPLed build tool modules when
71565         --lgpl is given.
71566         * modules/csharpcomp-script: New file.
71567         * modules/csharpcomp: Depend on it.
71568         * modules/javacomp-script: New file.
71569         * modules/javacomp: Depend on it.
71570         Suggested by Simon Josefsson.
71571
71572 2005-12-01  Paul Eggert  <eggert@cs.ucla.edu>
71573
71574         * m4/regex.m4 (gl_REGEX): Check whether off_t can be used in a switch
71575         statement, to work around an HP-UX 10.20 compiler bug reported by
71576         Peter O'Gorman.
71577
71578 2005-11-29  Paul Eggert  <eggert@cs.ucla.edu>
71579
71580         * modules/savedir (Depends-on): Add openat.
71581
71582 2005-11-29  Paul Eggert  <eggert@cs.ucla.edu>
71583
71584         * lib/stdint_.h (intmax_t) [defined intmax_t]: Do not declare.
71585         (uintmax_t) [defined uintmax_t]: Do not declare.
71586         (SIZE_MAX) [defined SIZE_MAX]: Do not define.
71587         This works around a problem if intmax_t.m4 and/or uintmax_t.m4
71588         and/or size_max.m4 are also used.  Problem reported by Mark D. Baushke.
71589         (SIZE_MAX): Define to ((size_t) -1), not (~(size_t)0), for the
71590         sake of portability to weird hosts that C allows (though we don't
71591         know of any practical examples).
71592
71593         * lib/savedir.h (fdsavedir): New decl.
71594         * lib/savedir.c (fdsavedir, savedirstream): New functions; the latter
71595         contains most of the former guts of savedir.
71596         (savedir): Use savedirstream.
71597         Include "openat.h".
71598
71599 2005-11-25  Paul Eggert  <eggert@cs.ucla.edu>
71600
71601         * modules/obstack (Files): Add m4/ulonglong.m4.
71602         Problem reported by Davide Angelocola.
71603
71604 2005-11-15  Paul Eggert  <eggert@cs.ucla.edu>
71605
71606         * lib/xstrtod.c: Don't bother with #pragma STDC FENV_ACCESS ON, as
71607         coreutils no longer futzes with rounding modes.
71608
71609 2005-11-14  Jim Meyering  <jim@meyering.net>
71610
71611         * lib/mkstemp-safer.c: Include <config.h>, required for possible
71612         replacement of mkstemp.
71613
71614 2005-11-10  Simon Josefsson  <jas@extundo.com>
71615
71616         * lib/readline.c: Remove EOL.
71617
71618 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
71619
71620         * modules/gethrxtime (Depends-on): Add gettime.
71621
71622 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
71623
71624         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Don't require AC_HEADER_TIME
71625         or gettimeofday; no longer needed.
71626
71627 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
71628
71629         * lib/gethrxtime.c: Include "timespec.h" rather than the sys/time /
71630         time business.
71631         (gethrxtime) [! (HAVE_NANOUPTIME
71632         || (defined CLOCK_MONOTONIC && HAVE_CLOCK_GETTIME)
71633         || HAVE_MICROUPTIME)]: Fall back on gettime rather than rolling
71634         our own approximation.
71635
71636 2005-11-08  Eric Blake  <ebb9@byu.net>
71637
71638         * lib/inet_ntop.h: Use #if !, not #ifndef, for AC_CHECK_DECLS.
71639
71640 2005-11-08  Eric Blake  <ebb9@byu.net>
71641
71642         * lib/getaddrinfo.h: Use #if !, not #ifndef, for AC_CHECK_DECLS.
71643
71644 2005-11-04  Bruno Haible  <bruno@clisp.org>
71645
71646         * gnulib-tool: Implement --update mode.
71647
71648 2005-10-30  Paul Eggert  <eggert@cs.ucla.edu>
71649
71650         Fix porting problem reported by Theodoros V. Kalamatianos.
71651         * lib/utimens.c (futimens) [HAVE_WORKING_UTIMES && HAVE_FUTIMES]:
71652         Don't assume that futimes failing means we must fail.
71653
71654 2005-10-30  Paul Eggert  <eggert@cs.ucla.edu>
71655
71656         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Revamp wording and local
71657         variables to suggest the intended function of the PATH_MAX check.
71658
71659 2005-10-30  Kean Johnston  <jkj@sco.com>
71660
71661         Trivial changes to support SCO systems.
71662         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Check for MAXPATHLEN as well
71663         as PATH_MAX.
71664         * m4/fpending.m4 (gl_FUNC_FPENDING): Correct check for SCO systems,
71665         where __ptr is null when no I/O is pending.
71666
71667 2005-10-29  Paul Eggert  <eggert@cs.ucla.edu>
71668
71669         * lib/getcwd.c (__getcwd): Don't assume that system calls after readdir
71670         leave errno alone.  Problem reported by Dmitry V. Levin.
71671
71672 2005-10-28  Simon Josefsson  <jas@extundo.com>
71673
71674         * tests/test-gc-md4.c, tests/test-gc-md5.c, tests/test-gc-sha1.c:
71675         Test more.
71676
71677         * tests/test-gc-md2.c, tests/test-md2.c: New files.
71678
71679         * modules/md2, modules/md2-tests: New files.
71680
71681 2005-10-28  Simon Josefsson  <jas@extundo.com>
71682
71683         * m4/inet_ntop.m4: More tests.
71684
71685         * m4/gc-md2.m4, md2.m4: New file.
71686
71687 2005-10-28  Simon Josefsson  <jas@extundo.com>
71688
71689         * lib/inet_ntop.h, inet_ntop.c: Make it work under mingw32: Add
71690         "restrict" keywords, as per POSIX.  Protect the function
71691         declaration around HAVE_DECL_INET_NTOP rather than HAVE_INET_NTOP.
71692         Don't use K&R prototypes.  Check the sprintf return values.
71693         Re-define EAFNOSUPPORT if not present.  Indent.
71694
71695         * lib/md5.h, md5.c: Simplify buffer handling visavi alignment,
71696         suggested by Bruno Haible <bruno@clisp.org>.
71697
71698         * lib/gc-gnulib.c, gc-libgcrypt.c: Check calloc return value.
71699
71700         * lib/gc.h: Add MD2 and RMD160 length defines.  Add prototypes.
71701
71702         * lib/gc-libgcrypt.c: Add MD2 (which is not available through
71703         libgcrypt).
71704
71705         * lib/gc-gnulib.c: Add MD2.  Implement gc_hash_* API.
71706
71707         * lib/md2.h, lib/md2.c: New files.
71708
71709 2005-10-28  Paul Eggert  <eggert@cs.ucla.edu>
71710
71711         * lib/savedir.c (savedir): Don't assume that xrealloc etc. leave
71712         errno alone.  Problem reported by Frederic Jolliton.
71713
71714 2005-10-27  Paul Eggert  <eggert@cs.ucla.edu>
71715
71716         * modules/verify (License): Change from GPL to LGPL.  This is a
71717         tiny module and there are apparently near-equivalents that are
71718         under the BSD license.
71719
71720 2005-10-24  Simon Josefsson  <jas@extundo.com>
71721
71722         * modules/sha1: Relicense to LGPL.
71723
71724 2005-10-24  Simon Josefsson  <jas@extundo.com>
71725
71726         * lib/md4.h: Shrink buffer size, now that we changed the type.
71727
71728 2005-10-23  Simon Josefsson  <jas@extundo.com>
71729
71730         * gnulib-tool (func_import): Fix --tests-base.
71731
71732 2005-10-22  Simon Josefsson  <jas@extundo.com>
71733
71734         * modules/arcfour (Depends-on): Need stdint.
71735
71736 2005-10-22  Simon Josefsson  <jas@extundo.com>
71737
71738         * m4/gc.m4: Don't be fooled by --disable-*random-device parameters,
71739         suggested by Bruno Haible <bruno@clisp.org>.  Fix error messages.
71740
71741 2005-10-22  Simon Josefsson  <jas@extundo.com>
71742
71743         * lib/md4.h, md4.c: Simplify buffer handling visavi alignment,
71744         suggested by Bruno Haible <bruno@clisp.org>.
71745
71746 2005-10-22  Simon Josefsson  <jas@extundo.com>
71747
71748         * lib/crc.h: Include stddef.h, for size_t.
71749
71750 2005-10-22  Simon Josefsson  <jas@extundo.com>
71751
71752         * lib/arcfour.h, arcfour.c: Use fixed size indices in the
71753         arcfour_context struct (simplify test vector testing in GNU
71754         Shishi).
71755
71756 2005-10-21  Simon Josefsson  <jas@extundo.com>
71757
71758         * modules/des, modules/des-tests: New files.
71759
71760         * modules/gc-des, modules/gc-des-tests: New files.
71761
71762         * tests/test-des.c, tests/test-gc-des.c: New file.
71763
71764 2005-10-21  Simon Josefsson  <jas@extundo.com>
71765
71766         * modules/arctwo, modules/arctwo-tests: New files.
71767
71768         * tests/test-arctwo.c: New file.
71769
71770         * modules/gc-arctwo, modules/gc-arctwo-tests: New files.
71771
71772         * tests/test-gc-arctwo.c: New file.
71773
71774 2005-10-21  Simon Josefsson  <jas@extundo.com>
71775
71776         * m4/gc.m4: Don't use libgcrypt if gcrypt.h isn't found, suggested by
71777         Bruno Haible <bruno@clisp.org>.
71778
71779         * m4/gc-des.m4: New file.
71780
71781 2005-10-21  Simon Josefsson  <jas@extundo.com>
71782
71783         * m4/arctwo.m4: New file.
71784
71785         * m4/gc-arctwo.m4: New file.
71786
71787 2005-10-21  Simon Josefsson  <jas@extundo.com>
71788
71789         * lib/rijndael-api-fst.c: Fix bugs in CBC mode for more than one
71790         block.
71791
71792 2005-10-21  Simon Josefsson  <jas@extundo.com>
71793
71794         * lib/hmac-md5.c (hmac_md5): Add comments, suggested by Bruno Haible
71795         <bruno@clisp.org>.
71796
71797         * lib/hmac-sha1.c (hmac_sha1): Likewise.
71798
71799         * lib/crc.c (crc32_update): Actually use crc parameter, suggested by
71800         Bruno Haible <bruno@clisp.org>.
71801
71802         * lib/crc.h: Include stdint.h directly, suggested by Bruno Haible
71803         <bruno@clisp.org>.
71804
71805 2005-10-21  Simon Josefsson  <jas@extundo.com>
71806
71807         * lib/gc-libgcrypt.c (gc_cipher_open): Handle ECB.
71808
71809 2005-10-21  Simon Josefsson  <jas@extundo.com>
71810
71811         * lib/gc-gnulib.c: Support ARCTWO in CBC mode.
71812
71813 2005-10-21  Simon Josefsson  <jas@extundo.com>
71814
71815         * lib/des.h, lib/des.c: New files.
71816
71817         * lib/gc-gnulib.c: Support DES.c
71818
71819 2005-10-21  Simon Josefsson  <jas@extundo.com>
71820
71821         * lib/arctwo.h, lib/arctwo.c: New files.
71822
71823         * lib/gc-gnulib.c: Support ARCTWO.
71824
71825 2005-10-21  Simon Josefsson  <jas@extundo.com>
71826
71827         * lib/arctwo.h (arctwo_setkey): Protect variable in CPP macro,
71828         suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
71829
71830 2005-10-21  Simon Josefsson  <jas@extundo.com>
71831
71832         * gnulib-tool (func_import, func_create_testdir): Define automake
71833         conditional GL_COND_LIBTOOL if libtool is used (to be used by modules
71834         Makefile.am snippet),
71835         suggested by Bruno Haible <bruno@clisp.org>.
71836
71837         * modules/gc (Makefile.am): Use it.
71838
71839 2005-10-21  Bruno Haible  <bruno@clisp.org>
71840
71841         * gnulib-tool (func_import, func_create_testdir): Add quoting to last
71842         patch.
71843
71844 2005-10-19  Simon Josefsson  <jas@extundo.com>
71845
71846         * tests/test-gc-rijndael.c: New file.
71847
71848         * modules/gc-rijndael, modules/gc-rijndael-test: New files.
71849
71850 2005-10-19  Simon Josefsson  <jas@extundo.com>
71851
71852         * tests/test-gc-md4.c, tests/test-gc-md5.c: Test gc_hash_buffer
71853         interface too.
71854
71855 2005-10-19  Simon Josefsson  <jas@extundo.com>
71856
71857         * tests/test-gc-arcfour.c: New file.
71858
71859         * modules/gc-arcfour, modules/gc-arcfour-tests: New files.
71860
71861 2005-10-19  Simon Josefsson  <jas@extundo.com>
71862
71863         * modules/gc-md4, modules/gc-md4-tests: New file.
71864
71865         * tests/test-gc-md4.c: New file.
71866
71867 2005-10-19  Simon Josefsson  <jas@extundo.com>
71868
71869         * m4/gc-md4.m4: New file.
71870
71871 2005-10-19  Simon Josefsson  <jas@extundo.com>
71872
71873         * m4/gc-hmac-md5.m4, gc-hmac-sha1.m4, gc-md4.m4,
71874         gc-md5.m4, gc-sha1.m4: Fix typo, suggested by Stepan Kasal
71875         <kasal@ucw.cz>.
71876
71877 2005-10-19  Simon Josefsson  <jas@extundo.com>
71878
71879         * m4/gc-arcfour.m4: New file.
71880
71881         * m4/gc-rijndael.m4: New file.
71882
71883 2005-10-19  Simon Josefsson  <jas@extundo.com>
71884
71885         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Support MD4.
71886
71887 2005-10-19  Simon Josefsson  <jas@extundo.com>
71888
71889         * lib/gc-gnulib.c: Support ARCFOUR.
71890
71891 2005-10-19  Simon Josefsson  <jas@extundo.com>
71892
71893         * lib/gc-gnulib.c: Implement gc_cipher_* API, currently only with AES
71894         support.
71895
71896         * lib/gc.h: Add ECB enum type.
71897
71898         * lib/hmac-md5.c, hmac-sha1.c: Include memxor.h.
71899
71900 2005-10-18  Simon Josefsson  <jas@extundo.com>
71901
71902         * tests/test-md5.c: New file.
71903
71904         * modules/md5-tests: New file.
71905
71906 2005-10-18  Simon Josefsson  <jas@extundo.com>
71907
71908         * tests/test-md4.c: New file.
71909
71910         * modules/md4, modules/md4-tests: New files.
71911
71912 2005-10-18  Simon Josefsson  <jas@extundo.com>
71913
71914         * m4/md4.m4: New file.
71915
71916 2005-10-18  Simon Josefsson  <jas@extundo.com>
71917
71918         * lib/md4.h, lib/md4.c: New files, based on md5.?.
71919
71920 2005-10-17  Stepan Kasal  <kasal@ucw.cz>
71921
71922         * gnulib-tool (func_create_testdir): Omit the second check whether
71923         BUILT_SOURCES in nonempty.
71924
71925 2005-10-17  Simon Josefsson  <jas@extundo.com>
71926
71927         * tests/test-rijndael.c: New file.
71928
71929 2005-10-17  Simon Josefsson  <jas@extundo.com>
71930
71931         * modules/sha1: Depend on stdint instead of md5.
71932
71933         * modules/md5: Depend on stdint, remove uint32_t.
71934
71935 2005-10-17  Simon Josefsson  <jas@extundo.com>
71936
71937         * modules/gc-sha1-tests: New file.
71938
71939         * tests/test-gc-sha1.c: New file.
71940
71941 2005-10-17  Simon Josefsson  <jas@extundo.com>
71942
71943         * m4/md5.m4: Remove call to uint32_t.m4.
71944
71945 2005-10-17  Simon Josefsson  <jas@extundo.com>
71946
71947         * lib/sha1.c: Use uint32_t instead of md5_uint32.t
71948
71949         * lib/sha1.h: Use stdint.h and uint32_t instead of md5_uint32 from
71950         md5.h.
71951
71952         * lib/md5.c: Use uin32_t.  Fix non-gcc UNALIGNED_P macro.
71953
71954         * lib/md5.h: Use stdint.h and uint32_t.  Doc fix.
71955
71956 2005-10-17  Simon Josefsson  <jas@extundo.com>
71957
71958         * lib/gc.h, gc-libgcrypt.c: Add more hash types/functions.
71959
71960 2005-10-17  Simon Josefsson  <jas@extundo.com>
71961
71962         * lib/gc.h, gc-libgcrypt.c: Add ciphers.
71963
71964 2005-10-17  Simon Josefsson  <jas@extundo.com>
71965
71966         * lib/gc-libgcrypt.c (gc_hmac_sha1): Fix assert.
71967
71968         * lib/gc.h (gc_nonce, gc_pseudo_random, gc_random): Add prototypes.
71969
71970 2005-10-17  Bruno Haible  <bruno@clisp.org>
71971
71972         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Change the return statement so
71973         that it can also be used in a test.
71974
71975 2005-10-16  Bruno Haible  <bruno@clisp.org>
71976
71977         * gnulib-tool (func_emit_tests_Makefile_am): Also define
71978         TESTS_ENVIRONMENT, so that individual tests can augment it.
71979
71980         * gnulib-tool (func_create_testdir): Use an intermediate target for
71981         building $(BUILT_SOURCES). Needed because BUILT_SOURCES can contain
71982         macros, like $(ALLOCA_H), which cannot be passed through the command
71983         line.
71984
71985 2005-10-15  Simon Josefsson  <jas@extundo.com>
71986
71987         * modules/rijndael-tests: New file.
71988
71989         * modules/rijndael: New file.
71990
71991 2005-10-15  Simon Josefsson  <jas@extundo.com>
71992
71993         * m4/rijndael.m4: New file.
71994
71995 2005-10-15  Simon Josefsson  <jas@extundo.com>
71996
71997         * lib/rijndael-api-fst.h, lib/rijndael-api-fst.c: New files.
71998
71999         * lib/rijndael-alg-fst.h, lib/rijndael-alg-fst.c: New files.
72000
72001 2005-10-14  Simon Josefsson  <jas@extundo.com>
72002
72003         * tests/test-arcfour.c: New file.
72004
72005         * modules/arcfour, modules/arcfour-tests: New files.
72006
72007 2005-10-14  Simon Josefsson  <jas@extundo.com>
72008
72009         * m4/arcfour.m4: New file.
72010
72011 2005-10-14  Simon Josefsson  <jas@extundo.com>
72012
72013         * lib/arcfour.h, lib/arcfour.c: New files.
72014
72015 2005-10-14  Roland McGrath  <roland@redhat.com>
72016
72017         Import from libc.  [BZ #1331]
72018         * lib/obstack.h [!__STDC__] (obstack_int_grow_fast): Fix misnamed
72019         macro argument.
72020         Reported by Matej Vela <vela@debian.org>.
72021
72022 2005-10-14  Paul Eggert  <eggert@cs.ucla.edu>
72023
72024         * lib/obstack.c [defined _LIBC && defined USE_IN_LIBIO]: Don't
72025         include <wchar.h>; no longer needed.
72026
72027 2005-10-14  Paul Eggert  <eggert@cs.ucla.edu>
72028
72029         * config/srclist.txt: Add glibc bug 321 for obstack.c, obstack.h.
72030
72031 2005-10-14  Jakub Jelinek  <jakub@redhat.com>
72032         and  Ulrich Drepper  <drepper@redhat.com>
72033
72034         Import from libc.
72035         * lib/obstack.c (print_and_abort) [defined _LIBC]: Use __fxprintf
72036         instead of inline stream orientation test and two separate
72037         function calls.  Pay no attention to USE_IN_LIBIO.
72038
72039 2005-10-13  Simon Josefsson  <jas@extundo.com>
72040
72041         * modules/gc-hmac-md5-tests: New file.
72042
72043         * tests/test-gc-hmac-sha1.c: New file.
72044
72045         * tests/test-gc.c (main): Remove MD5 and HMAC-MD5 tests.
72046
72047         * modules/gc-hmac-md5-tests: New file.
72048
72049         * tests/test-gc-md5.c: New file.
72050
72051         * modules/gc-md5-tests: New file.
72052
72053 2005-10-13  Simon Josefsson  <jas@extundo.com>
72054
72055         * lib/gc-pbkdf2-sha1.c (gc_pbkdf2_sha1): Optimize CEIL computation.
72056         Move memory allocation outside of loop.
72057
72058 2005-10-13  Paul Eggert  <eggert@cs.ucla.edu>
72059
72060         * lib/mkdir-p.c (make_dir_parents): Don't report an error if an
72061         intermediate directory is in a read-only file system.  Problem
72062         reported by Eric Blake.
72063
72064 2005-10-13  Oskar Liljeblad  <oskar@osk.mine.nu>
72065
72066         * modules/human (Depends-on): Depend on xstrtoumax, not xstrtol.
72067
72068 2005-10-12  Simon Josefsson  <jas@extundo.com>
72069
72070         * tests/test-hmac-sha1.c: New file.
72071
72072         * modules/hmac-sha1-tests: New file.
72073
72074         * modules/hmac-sha1: New file.
72075
72076 2005-10-12  Simon Josefsson  <jas@extundo.com>
72077
72078         * modules/gc-sha1: New file.
72079
72080 2005-10-12  Simon Josefsson  <jas@extundo.com>
72081
72082         * modules/gc-pbkdf2-sha1, modules/gc-pbkdf2-sha1-tests: New files.
72083
72084         * tests/test-gc-pbkdf2-sha1.c: New file.
72085
72086 2005-10-12  Simon Josefsson  <jas@extundo.com>
72087
72088         * modules/gc-md5, modules/gc-hmac-md5: New files.
72089
72090         * modules/gc (Files): Remove md5, memxor and hmac files.
72091
72092 2005-10-12  Simon Josefsson  <jas@extundo.com>
72093
72094         * m4/gc-pbkdf2-sha1.m4: New file.
72095
72096         * m4/gc-hmac-sha1.m4: New file.
72097
72098         * m4/gc-sha1: New file.
72099
72100         * m4/hmac-sha1.m4: New file.
72101
72102 2005-10-12  Simon Josefsson  <jas@extundo.com>
72103
72104         * m4/gc-md5.m4, m4/gc-hmac-md5.m4: New files.
72105
72106         * m4/gc.m4: Don't call gl_MD5, gl_MEMXOR or gl_HMAC_MD5.
72107
72108 2005-10-12  Simon Josefsson  <jas@extundo.com>
72109
72110         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Use Gc_rc for return types,
72111         suggested by Bruno Haible <bruno@clisp.org>.
72112
72113 2005-10-12  Simon Josefsson  <jas@extundo.com>
72114
72115         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Support SHA-1.
72116
72117 2005-10-12  Simon Josefsson  <jas@extundo.com>
72118
72119         * lib/gc-pbkdf2-sha1.c: New file.
72120
72121         * lib/gc.h: Add gc_pbkdf2_sha1 prototype.
72122
72123 2005-10-12  Simon Josefsson  <jas@extundo.com>
72124
72125         * lib/gc-libgcrypt.c (gc_hmac_sha1): New function.
72126
72127         * lib/gc-gnulib.c (gc_hmac_sha1): New function.
72128
72129 2005-10-12  Simon Josefsson  <jas@extundo.com>
72130
72131         * lib/gc-gnulib.c: Condition MD5 and HMAC-MD5 use on GC_USE_MD5 and
72132         GC_USE_HMAC_MD5, respectively.
72133
72134         * lib/gc-libgcrypt.c (gc_md5): Fix assert call.
72135         (gc_md5): Fix typo.
72136
72137         * lib/gc.h (gc_hash_buffer): Use gc_hash in prototype.
72138
72139         * lib/gc-libgcrypt.c (gc_hash_buffer): Ditto.
72140
72141         * lib/gc-gnulib.c (gc_hash_buffer): Ditto.
72142
72143 2005-10-12  Bruno Haible  <bruno@clisp.org>
72144
72145         * m4/stdbool.m4 (gl_STDBOOL_H): Define as an alias of AM_STDBOOL_H.
72146         Reported by Stepan Kasal <kasal@ucw.cz>.
72147
72148 2005-10-11  Simon Josefsson  <jas@extundo.com>
72149
72150         * tests/test-crc.c: New file.
72151
72152         * modules/crc, modules/crc-tests: New files.
72153
72154 2005-10-11  Simon Josefsson  <jas@extundo.com>
72155
72156         * m4/crc.m4: New file.
72157
72158 2005-10-11  Simon Josefsson  <jas@extundo.com>
72159
72160         * lib/gc.h: Add gc_hash and gc_hash_buffer.
72161
72162         * lib/gc-gnulib.c (gc_hash_buffer): Add.  Reorder #include's.
72163
72164         * lib/gc-libgcrypt.c (gc_hash_buffer): Add.
72165
72166 2005-10-11  Simon Josefsson  <jas@extundo.com>
72167
72168         * lib/crc.h, lib/crc.c: New files.
72169
72170         * lib/gc.h (gc_hash_buffer): Add doc.
72171
72172 2005-10-11  Bruno Haible  <bruno@clisp.org>
72173
72174         * modules/c-strcasestr: New file.
72175         * MODULES.html.sh (String handling <string.h>): Add c-strcasestr.
72176
72177 2005-10-11  Bruno Haible  <bruno@clisp.org>
72178
72179         * modules/c-strcase: New file.
72180         * MODULES.html.sh (String handling <string.h>): Add c-strcase.
72181
72182 2005-10-11  Bruno Haible  <bruno@clisp.org>
72183
72184         * lib/strcasecmp.c: Include limits.h.
72185         (strcasecmp): Avoid integer overflow on exotic platforms.
72186         * lib/strncasecmp.c: Include limits.h.
72187         (strncasecmp): Avoid integer overflow on exotic platforms.
72188         Reported by Paul Eggert.
72189
72190 2005-10-11  Bruno Haible  <bruno@clisp.org>
72191
72192         * lib/c-strcasestr.h: New file, from GNU gettext.
72193         * lib/c-strcasestr.c: New file, from GNU gettext.
72194
72195 2005-10-11  Bruno Haible  <bruno@clisp.org>
72196
72197         * lib/c-strcase.h: New file, from GNU gettext.
72198         * lib/c-strcasecmp.c: New file, from GNU gettext.
72199         * lib/c-strncasecmp.c: New file, from GNU gettext.
72200
72201 2005-10-10  Paul Eggert  <eggert@cs.ucla.edu>
72202
72203         * modules/mempcpy (License): GPL -> LGPL.
72204         * modules/strchrnul (License): Likewise.
72205         * modules/sysexits (License): Likewise.
72206
72207 2005-10-08  Simon Josefsson  <jas@extundo.com>
72208
72209         * config/srclist.txt: Bug 1423 is closed, but 1439 remains.
72210
72211 2005-10-07  Simon Josefsson  <jas@extundo.com>
72212
72213         * m4/memxor.m4: Remove gl_C_RESTRICT call.
72214
72215 2005-10-06  Simon Josefsson  <jas@extundo.com>
72216
72217         * tests/test-hmac-md5.c: New file.
72218
72219         * modules/hmac-md5-tests: New file.
72220
72221         * modules/hmac-md5: New file.
72222
72223 2005-10-06  Simon Josefsson  <jas@extundo.com>
72224
72225         * m4/hmac-md5.m4: New file.
72226
72227         * m4/memxor.m4: Require gl_C_RESTRICT.
72228
72229 2005-10-06  Simon Josefsson  <jas@extundo.com>
72230
72231         * lib/memxor.c (memxor): Avoid casts and warnings.
72232
72233 2005-10-06  Simon Josefsson  <jas@extundo.com>
72234
72235         * lib/hmac-md5.c: New file.
72236
72237         * lib/hmac.h: New file.
72238
72239 2005-10-06  Paul Eggert  <eggert@cs.ucla.edu>
72240
72241         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check that bool
72242         promotes to int, not unsigned int, to catch the AIX 5.3
72243         compiler bug.
72244
72245 2005-10-05  Simon Josefsson  <jas@extundo.com>
72246
72247         * modules/memxor: New file.
72248
72249         * modules/iconv (Files): Move config.rpath to havelib, it is used
72250         there.
72251
72252         * modules/havelib (Files): Add config.rpath.
72253
72254 2005-10-05  Simon Josefsson  <jas@extundo.com>
72255
72256         * m4/memxor.m4: New file.
72257
72258 2005-10-05  Simon Josefsson  <jas@extundo.com>
72259
72260         * lib/memxor.c (memxor): Fix compiler error.
72261
72262         * lib/md5.h (MD5_DIGEST_SIZE, MD5_BLOCK_SIZE): Add, see also
72263         <http://sourceware.org/bugzilla/show_bug.cgi?id=1423>.
72264
72265         * lib/memxor.h, lib/memxor.c: New files.
72266
72267         * lib/getaddrinfo.h: Don't protect sys/types.h with HAVE_SYS_TYPES_H,
72268         we assume all systems have it, suggested by Jim Meyering
72269         <jim@meyering.net>.  Remove HAVE_SYS_SOCKET_H test too, to see if
72270         any systems lack sys/socket.h; mingw32 is known to lack it, but we
72271         don't support it yet anyway.  Also remove HAVE_NETDB_H test, for
72272         same reasons.
72273
72274 2005-10-05  Simon Josefsson  <jas@extundo.com>
72275
72276         * config/srclist.txt: Add glibc bug 1423 for md5.h.
72277
72278 2005-10-05  Paul Eggert  <eggert@cs.ucla.edu>
72279
72280         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Don't check for
72281         sys/socket.h, netdb.h, sys/types.h; the checks areno longer
72282         needed, since the source code now assumes these .h files.
72283
72284 2005-10-05  Derek Price  <derek@ximbiot.com>
72285
72286         * lib/getdelim.c (SIZE_MAX): New macro, if not already defined.
72287
72288 2005-10-05  Bruno Haible  <bruno@clisp.org>
72289
72290         * modules/stdint (License): Change to LGPL.
72291
72292 2005-10-04  Simon Josefsson  <jas@extundo.com>
72293
72294         * lib/getaddrinfo.h: Move sys/types.h include first, reported by "Mark
72295         D. Baushke" <mdb@gnu.org>.
72296
72297 2005-10-04  Bruno Haible  <bruno@clisp.org>
72298
72299         * lib/verify.h (verify_true): Provide alternative definition for C++.
72300
72301 2005-10-03  Paul Eggert  <eggert@cs.ucla.edu>
72302
72303         * lib/getdelim.c: Include getdelim.h first.  Include <limits.h>.
72304         (SSIZE_MAX): New macro, if not already defined.
72305         (getdelim): Fix buffer overrun on 64-bit hosts with lines longer
72306         than 2 GiB.
72307
72308 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
72309
72310         Sync from coreutils.
72311         * m4/openat.m4 (gl_FUNC_OPENAT): Check for fdopendir.
72312         * m4/ullong_max.m4 (gl_ULLONG_MAX): Simplify so that it merely
72313         defines ULONG_MAX_LT_ULLONG_MAX.  Thomas M.Ott reports that
72314         ULLONG_MAX doesn't work with 2.7.2.1.
72315
72316 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
72317
72318         * modules/xreadlink (Makefile.am): Remove lib_SOURCES.
72319         From Ben Pfaff.
72320
72321         * modules/exclude (Depends-on): Depend on verify.
72322         * modules/strtoimax (Depends-on): Likewise.
72323         * modules/utimecmp (Depends-on): Likewise.
72324
72325 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
72326
72327         * lib/exclude.c: Include verify.h.
72328         (verify): Remove.  All callers changed to use verify.h's version.
72329         * lib/strtoimax.c: Likewise.
72330         * lib/utimecmp.c: Likewis.e
72331
72332         Sync from coreutils.
72333         * lib/.cppi-disable: Add getaddrinfo.h, getdelim.h, getline.h,
72334         getpass.c, mbchar.h, mbuiter.h, strcase.h, strnlen.h, strnlen1.h.
72335         * lib/.cvsignore: Add fts.h, search.h, t-fpending.
72336         * lib/settime.c (settime): Fix { typo in previous patch.  Also, don't
72337         bother returning ENOSYS if settimeofday or stime fails; just let
72338         them return whatever errno they want to return.
72339         * lib/utimens.c: Include unistd.h, for dup2.
72340         (futimens): Fix typo: HAVE_FUTIMESAT was misspelled in an #if.
72341         (futimens) [! HAVE_FUTIMESAT]: If !file, set errno before returning -1.
72342
72343 2005-10-02  Jim Meyering  <jim@meyering.net>
72344
72345         Sync from coreutils.
72346         * m4/utimes.m4 (gl_FUNC_UTIMES): Detect the version of utimes
72347         from glibc-2.2.5 that fails for read-only files.
72348
72349 2005-10-02  Jim Meyering  <jim@meyering.net>
72350
72351         Sync from coreutils.
72352         * lib/fts-cycle.c [HAVE_CONFIG_H]: Include <config.h>.
72353         * lib/openat-die.c: Use `#ifdef HAVE_CONFIG_H', not
72354         `#if HAVE_CONFIG_H'.
72355         * lib/openat.c (fdopendir): Do not define if HAVE_FDOPENDIR.
72356         Remove AT_FDCWD test.
72357         Do not consume the fd unless successful.
72358         * lib/openat.h (fdopendir): Do not define if HAVE_FDOPENDIR.
72359         * lib/settime.c (settime): Move the HAVE_STIME block `up' into an #elif
72360         block, so that we don't even try to compile it if settimeofday is
72361         available.  This works around a compilation failure on OSF1 V5.1,
72362         due to stime requiring a `long int*' while tv_sec is `int'.
72363
72364 2005-10-02  Alfred M. Szmidt  <ams@gnu.org>
72365
72366         Sync from coreutils.
72367         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Compare $gl_have_path...
72368         against `yes', rather than just testing for nonempty.
72369
72370 2005-10-01  Simon Josefsson  <jas@extundo.com>
72371
72372         * m4/getaddrinfo.m4: Include sys/types.h for sys/socket.h, on FreeBSD
72373         and Darwin.
72374
72375         * m4/getaddrinfo.m4: Use AC_GNU_SOURCE, GNU only declare getaddrinfo
72376         as an (POSIX) extension.  Check for sys/types.h, sys/socket.h, and
72377         netdb.h too, needed by getaddrinfo.h.  Check if getaddrinfo,
72378         freeaddrinfo and gai_strerror are declared by the POSIX headers.
72379         Check if struct addrinfo is declared.
72380
72381 2005-10-01  Simon Josefsson  <jas@extundo.com>
72382
72383         * lib/getaddrinfo.h: Protect #include's of sys/socket.h and netdb.h.
72384         Only define struct addrinfo if !HAVE_STRUCT_ADDRINFO.  Protect
72385         AI_* and EAI_* definitions.  Protect function declarations.
72386
72387 2005-10-01  Jim Meyering  <jim@meyering.net>
72388
72389         Sync from coreutils.
72390
72391         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Look for getservbyname in these
72392         libraries [inet nsl socket xnet].  Nelson Beebe reported that with
72393         native cc on Solaris 7, getaddrinfo.c requires -lsocket.
72394         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Check for gethostbyname
72395         in the inet and nsl libraries.  Required on Solaris 5.7.
72396
72397 2005-10-01  Jim Meyering  <jim@meyering.net>
72398
72399         Sync from coreutils.
72400         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Check for gethostbyname
72401         in the inet and nsl libraries.  Required on Solaris 5.7.
72402
72403 2005-10-01  Eric Blake  <ebb9@byu.net>  (tiny change)
72404
72405         * lib/getdelim.c (getdelim): Remove unused variables.
72406
72407 2005-09-29  Paul Eggert  <eggert@cs.ucla.edu>
72408
72409         * lib/xtime.h (XTIME_PRECISION): Now of type int, not long long int,
72410         so that the code works even with ancient cpp.  Portability problem
72411         with GCC 2.7.2.1 reported by Thomas M.Ott.
72412
72413 2005-09-27  Paul Eggert  <eggert@cs.ucla.edu>
72414
72415         * modules/regex (Depends-on): Add strcase.
72416
72417         * modules/gethostname (Licence): Change from GPL to LGPL, since
72418         gethostname.c is a trivial implementation of a standard library
72419         function.
72420         * modules/poll (License): Change from GPL to LGPL, since it's
72421         derived from LGPL code.
72422
72423 2005-09-27  Jim Meyering  <jim@meyering.net>
72424
72425         * lib/getcwd.c: Change #ifdef<TAB>HAVE_CONFIG_H to #ifdef
72426         HAVE_CONFIG_H.
72427
72428         * lib/intprops.h (signed_type_or_expr__): Define.
72429         (INT_STRLEN_BOUND) [__GNUC__]: Use a slightly tighter bound
72430         for unsigned types.
72431
72432 2005-09-26  Paul Eggert  <eggert@cs.ucla.edu>
72433
72434         * lib/verify.h (verify_expr): Remove, replacing with:
72435         (verify_true): New macro that returns true instead of void.
72436         (verify_type__): Remove.
72437         (verify): Use verify_true rather than verify_type__.
72438
72439 2005-09-26  Bruno Haible  <bruno@clisp.org>
72440
72441         * modules/mbchar (Include): Mention that HAVE_WCHAR_H && HAVE_WCTYPE_H
72442         is necessary.
72443         (lib_SOURCES): Remove mbchar.c.
72444         * modules/mbfile (Include): Mention that HAVE_MBRTOWC is necessary.
72445         (Files): Add m4/mbrtowc.m4.
72446         * modules/mbiter: Likewise.
72447         * modules/mbuiter: Likewise.
72448
72449 2005-09-26  Bruno Haible  <bruno@clisp.org>
72450
72451         * m4/mbchar.m4 (gl_MBCHAR): Check for wchar.h and wctype.h. Don't
72452         compile mbchar.c if they are not both present.
72453         * m4/mbfile.m4 (gl_MBFILE): Require gl_FUNC_MBRTOWC.
72454         * m4/mbiter.m4 (gl_MBITER): Likewise.
72455         * m4/strstr.m4 (gl_PREREQ_STRSTR): Use AC_REQUIRE.
72456         * m4/strcasestr.m4 (gl_PREREQ_STRCASESTR): Likewise.
72457         * m4/strcase.m4 (gl_PREREQ_STRCASECMP): Likewise.
72458
72459 2005-09-25  Jim Meyering  <jim@meyering.net>
72460
72461         * modules/inet_ntop (Depends-on): Add socklen, since inet_ntop.c
72462         also uses socklen_t.
72463
72464 2005-09-24  Paul Eggert  <eggert@cs.ucla.edu>
72465
72466         * lib/utimens.c (ENOSYS): Define if not already defined.
72467         (futimens): Support having a null PATH if the file descriptor
72468         is nonnegative.
72469
72470         * lib/regex_internal.h (__GNUC_PREREQ, always_inline, inline, pure):
72471         Remove.
72472         (__attribute): Define to empty unless GCC 3.1 or later.
72473         This works around a core dump on OpenBSD 3.4, which has GCC
72474         2.95.3, which dumps core when given __attribute__(()).  It also
72475         simplifies other tests, since we really don't want to bother with
72476         worrying about which ancient version of GCC supported what.
72477         Original problem reported by Yoann Vandoorselaere, with part of
72478         the fix suggested by Derek Price.
72479
72480 2005-09-24  Jim Meyering  <jim@meyering.net>
72481
72482         * lib/verify.h (verify_type__): Use `unsigned int' as the bitfield type
72483         so we can once again use a positive bitfield width of 1 -- now we
72484         don't have to explain why we were using a bitfield width of 2.
72485
72486 2005-09-23  Paul Eggert  <eggert@cs.ucla.edu>
72487
72488         * m4/regex.m4 (gl_REGEX): If replacing, define regcomp to rpl_regcomp,
72489         and similarly for the other external symbols.  Problem reported
72490         by James Gallager.
72491
72492         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Catch Sun Studio 10u1 on Linux
72493         bug reported by Jim Meyering.
72494
72495         * m4/utimens.m4 (gl_UTIMENS): Check for futimesat.
72496         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Undo previous change;
72497         not needed, since socklen is a prerequisite module.
72498
72499 2005-09-23  Paul Eggert  <eggert@cs.ucla.edu>
72500
72501         * lib/getaddrinfo.c [HAVE_NETINET_IN_H]: Include <netinet/in.h>.
72502         Problem reported by Eric Blake.
72503         (getaddrinfo): Initialize se so that it's not garbage.
72504         Redo internal storage allocation so that it doesn't make unportable
72505         assumptions about alignment.
72506         Fix a memory leak.
72507
72508         * lib/utimens.c (futimens): Use futimesat if available.
72509         Prefer it to futimes since it doesn't have the futimes bug.
72510
72511         * lib/verify.h (GL_CONCAT0, GL_CONCAT): Remove.
72512         (verify): Don't use the __LINE__ trick, as it doesn't work in general.
72513         Instead, declare a function that returns a pointer to an array,
72514         and use verify_type__ to declare the size of the array.
72515         Problem and germ of a solution reported by Bruno Haible.
72516         (verify_type__): Use 2, not 1, for bitfield size, to avoid
72517         a warning with Irix 6.5 cc.  Problem reported by Bruno Haible.
72518
72519 2005-09-23  Jim Meyering  <jim@meyering.net>
72520
72521         Sync from coreutils.
72522         Correct build failure (socklen_t not defined) on at least
72523         mips-sgi-irix6.5 and alphaev67-dec-osf5.1.
72524         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Require gl_SOCKLEN_T.
72525
72526 2005-09-23  Jim Meyering  <jim@meyering.net>
72527
72528         * modules/getaddrinfo (Depends-on): Add socklen.
72529
72530 2005-09-23  Bruno Haible  <bruno@clisp.org>
72531
72532         * tests/test-verify.c: New file.
72533
72534 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
72535
72536         Sync from coreutils.
72537
72538         * modules/argmatch (Depends-on): Add verify.
72539         * modules/getloadavg (Depends-on): Depend on fcntl-safer, not
72540         unistd-safer.
72541         * modules/save-cwd (Depends-on): Likewise.
72542
72543         * modules/openat (Files): Add lib/openat-die.c.
72544         (Depends-on): Remove error, exitfail.
72545         Add dirname.
72546
72547         * modules/verify: New file.
72548         * MODULES.html.sh (Diagnostics <assert.h>): New section,
72549         with "verify" module.
72550
72551 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
72552
72553         Sync from coreutils.
72554
72555         * m4/backupfile.m4, calloc.m4, chown.m4, cloexec.m4, dup2.m4:
72556         * m4/fileblocks.m4, free.m4, ftruncate.m4, getcwd.m4, getpagesize.m4:
72557         * m4/getugroups.m4, group-member.m4, idcache.m4, link-follow.m4:
72558         * m4/mkstemp.m4, mktime.m4, mountlist.m4, nanosleep.m4, pathmax.m4:
72559         * m4/physmem.m4, posixver.m4, putenv.m4, safe-read.m4, same.m4:
72560         * m4/save-cwd.m4, stdio-safer.m4, unistd-safer.m4, unlinkdir.m4:
72561         * m4/userspec.m4, xgetcwd.m4, xreadlink.m4:
72562         Don't bother checking for string.h, stdlib.h, unistd.h.
72563         * m4/fts.m4 (gl_FUNC_FTS_CORE): Don't require
72564         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK; that's now the lstat
72565         module's job.
72566         * m4/jm-macros.m4 (gl_MACROS): Likewise.
72567         * m4/prereq.m4 (gl_PREREQ): Add gl_FUNC_LSTAT.
72568
72569         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): New macro.
72570         (gl_GETDATE): Use it.
72571
72572         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Don't bother checking for unistd.h.
72573
72574 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
72575
72576         Sync from coreutils.
72577
72578         * lib/.cppi-disable: Add regcomp.c, regex_internal.c, regex_internal.h,
72579         stat-time.h.
72580         * lib/argmatch.h: Include verify.h
72581         (ARGMATCH_VERIFY): Use verify rather than rolling our own.
72582         (ARGMATCH_ASSERT): Remove; unused.
72583         * lib/canonicalize.c: Assume STDC_HEADERS.
72584         * lib/exclude.c: Include "strcase.h".
72585         * lib/regex_internal.h [!defined _LIBC]: Likewise.
72586         * lib/getusershell.c: Include stdio--.h rather than stdio.h
72587         and stdio-safer.h.
72588         (getusershell): Call fopen, not fopen_safer.
72589         * lib/save-cwd.c: Include fcntl--.h rather than fcntl.h.
72590         Do not include unistd-safer.h.
72591         (save_cwd): Don't call fd_safer; no longer needed
72592         now that we include fcntl--.h.
72593
72594         * lib/getdate.y (relative_time): New type.
72595         (RELATIVE_TIME_0): New constant.
72596         (parser_control): Use relative_time instead of doing it ourselves.
72597         (%union): Add new relative_time rel member.
72598         (tYEAR_UNIT, tMONTH_UNIT, tHOUR_UNIT, tMINUTE_UNIT, tSEC_UNIT):
72599         Now typeless.
72600         (relunit, relunit_snumber): Now of type rel.
72601         (zone, rel, relunit, get_date): Adjust to above changes.
72602
72603         * lib/getloadavg.c: Include fcntl--.h rather than fcntl.h.
72604         Do not include unistd-safer.h.
72605         (getloadavg): Don't call fd_safer; no longer needed
72606         now that we include fcntl--.h.
72607
72608         * lib/mkdir-p.c (ENOSYS): Define to EEXIST if not defined.
72609         (make_dir_parents): Treat ENOSYS like EEXIST.
72610
72611         Improve quality of diagnostics on restore_cwd failure.
72612         * lib/mkdir-p.h (make_dir): Remove.  All uses replaced by mkdir.
72613         (make_dir_parents): Last arg is now int * (for errno), not bool *.
72614         * lib/mkdir-p.c (make_dir, make_dir_parents): Likewise.
72615         Rewrite "mkdir -p" algorithm to avoid the need for "stat"
72616         each time through the loop.  Do not diagnose restore_cwd failure;
72617         that is the caller's job (and perhaps the caller does not care).
72618
72619         * lib/mkdir-p.c (CLEANUP_CWD, CLEANUP): Remove.
72620         (make_dir_parents): Revamp to avoid need for CLEANUP_CWD, CLEANUP.
72621         If the file already exists but is not a directory, don't bother
72622         to try to make its parents.
72623         Close potential file descriptor leak if we can't chdir("/") (!).
72624         Don't always return true if chdir($PWD) fails; return true only
72625         if the requested action was done successfully (except for the
72626         chdir($PWD)).
72627         Don't log final directory unless we actually made it.
72628         Refactor to avoid duplicate code to fix up permissions.
72629         Don't attempt to fix up parent permissions if chdir($PWD) fails.
72630
72631         * lib/strftime.c (my_strftime): Rewrite the previous change slightly,
72632         to make it a bit faster and (I hope) clearer.
72633         * lib/strftime.c (my_strftime): Add support for %:z, %::z, %:::z.
72634         Fix bug in formats like %2N.
72635
72636         * lib/verify.h: New file.
72637
72638 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
72639
72640         Sync from coreutils.
72641         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Check for netinet/in.h.
72642
72643 2005-09-22  Jim Meyering  <jim@meyering.net>
72644
72645         Sync from coreutils.
72646
72647         * m4/lstat.m4 (gl_FUNC_LSTAT):
72648         Use AC_LIBSOURCES to require lstat.c and lstat.h.
72649         Remove obsolete comment.
72650         * m4/xreadlink.m4: Use AC_LIBSOURCES and AC_LIBOBJ.
72651         * m4/xstrtod.m4: Likewise.
72652
72653         * m4/openat.m4 (gl_FUNC_OPENAT): Add openat-die.c.
72654
72655 2005-09-22  Jim Meyering  <jim@meyering.net>
72656
72657         Sync from coreutils.
72658
72659         * lib/backupfile.c: Use ARGMATCH_VERIFY, just in case.
72660
72661         * lib/posixtm.c (posixtime) [lint]: Initialize *all* of tm0, not just
72662         the .tm_year member, since otherwise gcc-4.0 would now warn about
72663         tm_zone, tm_gmtoff, tm_isdst, tm_yday, tm_wday.
72664
72665         * lib/quotearg.c (quotearg_n_options): Change code to be suboptimal, in
72666         order to avoid an unsuppressible warning from gcc on 64-bit systems.
72667
72668         * lib/getdate.y (get_date): Undo part of the 2005-04-04 change, so that
72669         the command "date -d'2005-03-27 +1 day'" succeeds once again, even
72670         when run in a time zone for which daylight savings time is in effect
72671         for the starting date.
72672
72673         * lib/mkdir-p.c (make_dir_parents): Don't let a failed chdir($PWD)
72674         stop us from restricting permissions of just-created absolute-named
72675         directories.
72676         * lib/mkdir-p.c (CLEANUP_CWD): Return *true*, not false when failing
72677         to restore initial working directory.
72678         * lib/mkdir-p.c (make_dir_parents): New parameter:
72679         different_working_dir, to tell caller if/when we change the working
72680         directory and are unable to return to the initial one.
72681         * lib/mkdir-p.h (make_dir_parents): Update prototype.
72682         * lib/mkdir-p.c (CLEANUP_CWD): Change one more `return 1' to
72683         `return false'.  This fixes a bug introduced on 2004-07-30.
72684
72685         * lib/openat.c (fdopendir): Be sure to close the supplied
72686         file descriptor before returning.  This makes our replacement
72687         implementation a little closer to Solaris's, where fdopendir
72688         ties the file descriptor to the returned DIR* pointer.
72689         * lib/openat.c (unlinkat): New function.
72690         * lib/openat.h (unlinkat): Add prototype.
72691         * lib/openat-die.c (openat_save_fail): Rename from openat_save_die.
72692         (openat_restore_fail): Rename from openat_restore_die.
72693         * lib/openat.c, openat.h: Reflect s/_die/_fail/ renaming.
72694
72695         Provide an alternative to exiting immediately upon save_cwd or
72696         restore_cwd failure.  Now, an application can arrange e.g.,
72697         to perform a longjump in that case.
72698         * lib/openat.c: Include dirname.h.
72699         Use IS_ABSOLUTE_FILE_NAME rather than testing for leading slash.
72700         (rpl_openat, fdopendir, fstatat): Call openat_save_die
72701         and openat_restore_die rather than calling error directly.
72702         Don't include "error.h" or "exitfail.h"; they're no longer needed.
72703
72704         * lib/openat-die.c (openat_save_die, openat_restore_die): New file.
72705         * lib/openat.h (openat_save_die, openat_restore_die): Declare and
72706         define.
72707
72708         * lib/strftime.c [FPRINTFTIME] (fprintftime): Provide a new interface:
72709         size_t fprintftime (FILE *fp, char const *fmt, struct tm const *tm,
72710                             int utc, int nanoseconds);
72711         Background:
72712         date should not have to allocate a megabyte of virtual memory to
72713         handle a format argument like +%1048575T.  When implemented with
72714         strftime, it must allocate such a buffer, use strftime to fill it
72715         in, print it, then free it.
72716         With fprintftime, it simply prints everything and exits.
72717         With no need for memory allocation, that's one fewer way to fail.
72718         * lib/strftime.c (my_strftime): Parse the colons of %:::z *after* the
72719         optional field width, not before, so we accept %9:z, not %:9z.
72720         (my_strftime): Be sure to use L_('x') for literals.
72721
72722         * lib/backupfile.c, lib/canon-host.c, lib/canonicalize.c, lib/chown.c:
72723         * lib/cloexec.c, lib/dup-safer.c, lib/dup2.c, lib/euidaccess.c:
72724         * lib/fd-safer.c, lib/fileblocks.c, lib/fopen-safer.c, lib/fsusage.c:
72725         * lib/ftruncate.c, lib/getcwd.c, lib/getcwd.h, lib/getloadavg.c:
72726         * lib/getopt_.h, lib/getpagesize.h, lib/getugroups.c:
72727         * lib/group-member.c, lib/human.h, lib/idcache.c, lib/mkdir-p.c:
72728         * lib/mountlist.c, lib/nanosleep.c, lib/pathmax.h, lib/physmem.c:
72729         * lib/posixver.c, lib/putenv.c, lib/raise.c, lib/safe-read.c:
72730         * lib/same.c, lib/save-cwd.c, lib/setenv.c, lib/settime.c:
72731         * lib/tempname.c, lib/unlinkdir.c, lib/unsetenv.c, lib/userspec.c:
72732         * lib/xgethostname.c, lib/xreadlink.c:
72733         Assume HAVE_UNISTD_H, i.e., include <unistd.h> unconditionally.
72734
72735         * lib/chown.c, lib/cloexec.c, lib/dup-safer.c, lib/dup2.c:
72736         * lib/fsusage.c, lib/getcwd.c, lib/getloadavg.c, lib/mountlist.c:
72737         * lib/openat.h, lib/save-cwd.c, lib/tempname.c:
72738         Assume HAVE_FCNTL_H (i.e., include <fcntl.h> unconditionally,
72739         and don't include <sys/file.h>).
72740
72741 2005-09-22  Eric Blake  <ebb9@byu.net>  (tiny change)
72742
72743         Sync from coreutils.
72744
72745         * lib/getloadavg.c (getloadavg) [__CYGWIN__]: Port to cygwin.
72746         [__linux__]: Allocate a big enough buffer for /proc/loadavg.
72747         [!LDAV_DONE]: Avoid unused variable warning.
72748
72749 2005-09-21  Bruno Haible  <bruno@clisp.org>
72750
72751         * lib/unicodeio.h (unicode_to_mb): New declaration.
72752
72753 2005-09-20  Derek Price  <derek@ximbiot.com>
72754
72755         * lib/getaddrinfo.c: Don't include <netdb.h> included from
72756         getaddrinfo.h.
72757
72758 2005-09-20  Bruno Haible  <bruno@clisp.org>
72759
72760         * gnulib-tool: Remove trailing slashes from the values specified for
72761         --source-base, --m4-base, --tests-base, --aux-dir.
72762         Suggested by Simon Josefsson <jas@extundo.com>.
72763
72764 2005-09-20  Bruno Haible  <bruno@clisp.org>
72765
72766         * gnulib-tool (func_all_modules, func_modules_transitive_closure,
72767         func_modules_to_filelist, func_import, func_create_testdir): Make all
72768         sorting results locale-independent, so that gnulib-cache.m4 doesn't
72769         change when gnulib-tool is invoked in a different locale.
72770
72771 2005-09-19  Simon Josefsson  <jas@extundo.com>
72772
72773         * m4/socklen.m4: Fix typo.
72774
72775 2005-09-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
72776
72777         Use a consistent style for including <config.h>.
72778         * lib/__fpending.c, lib/acl.c, lib/argmatch.c, lib/argp-help.c,
72779         lib/argp-parse.c, lib/argp-pvh.c, lib/backupfile.c, lib/basename.c,
72780         lib/c-stack.c, lib/calloc.c, lib/check-version.c, lib/cloexec.c,
72781         lib/closeout.c, lib/copy-file.c, lib/creat-safer.c, lib/cycle-check.c,
72782         lib/dirfd.c, lib/dirname.c, lib/dup-safer.c, lib/dup2.c,
72783         lib/euidaccess.c, lib/exclude.c, lib/exitfail.c, lib/fatal-signal.c,
72784         lib/fd-safer.c, lib/file-type.c, lib/fileblocks.c, lib/filemode.c,
72785         lib/filenamecat.c, lib/findprog.c, lib/fnmatch.c, lib/fopen-safer.c,
72786         lib/free.c, lib/fsusage.c, lib/ftruncate.c, lib/full-write.c,
72787         lib/fwriteerror.c, lib/getaddrinfo.c, lib/getcwd.c, lib/getdelim.c,
72788         lib/getline.c, lib/getlogin_r.c, lib/getndelim2.c, lib/getnline.c,
72789         lib/getopt1.c, lib/getpass.c, lib/group-member.c, lib/hard-locale.c,
72790         lib/hash-pjw.c, lib/hash.c, lib/human.c, lib/idcache.c,
72791         lib/inet_ntop.c, lib/isdir.c, lib/long-options.c, lib/malloc.c,
72792         lib/memcasecmp.c, lib/memcmp.c, lib/memcoll.c, lib/memcpy.c,
72793         lib/memmove.c, lib/mkdir-p.c, lib/modechange.c, lib/mountlist.c,
72794         lib/open-safer.c, lib/physmem.c, lib/pipe-safer.c, lib/pipe.c,
72795         lib/poll.c, lib/posixver.c, lib/progname.c, lib/progreloc.c,
72796         lib/putenv.c, lib/quote.c, lib/quotearg.c, lib/readline.c,
72797         lib/readlink.c, lib/realloc.c, lib/regex.c, lib/rename.c, lib/rmdir.c,
72798         lib/rpmatch.c, lib/safe-read.c, lib/same.c, lib/save-cwd.c,
72799         lib/savedir.c, lib/sig2str.c, lib/strcspn.c, lib/strerror.c,
72800         lib/stripslash.c, lib/strncasecmp.c, lib/strndup.c, lib/strnlen.c,
72801         lib/strnlen1.c, lib/strsep.c, lib/strstr.c, lib/strtod.c,
72802         lib/strtoimax.c, lib/strtol.c, lib/strverscmp.c, lib/tempname.c,
72803         lib/time_r.c, lib/userspec.c, lib/utimecmp.c, lib/version-etc-fsf.c,
72804         lib/version-etc.c, lib/wait-process.c, lib/xalloc-die.c, lib/xgetcwd.c,
72805         lib/xmalloc.c, lib/xmemcoll.c, lib/xnanosleep.c, lib/xreadlink.c,
72806         lib/xsetenv.c, lib/xstrndup.c, lib/xstrtoimax.c, lib/xstrtol.c,
72807         lib/xstrtoumax.c, lib/yesno.c:
72808         Standardize inclusion of config.h.
72809         * lib/__fpending.h, lib/dirfd.h, lib/getdate.h, lib/human.h,
72810         lib/inttostr.h:  Removed inclusion of config.h from header files.
72811         * lib/inttostr.c:  Adjusted in-tree users.
72812         * lib/timespec.h: Remove superfluous warning to include config.h.
72813         * lib/atexit.c, lib/chdir-long.c, lib/chown.c, lib/fchown-stub.c,
72814         lib/getgroups.c, lib/gettimeofday.c, lib/lchown.c, lib/lstat.c,
72815         lib/mkdir.c, lib/mkstemp.c, lib/nanosleep.c, lib/openat.c, lib/raise.c,
72816         lib/readtokens0.c, lib/readutmp.c, lib/unlinkdir.c: Guard inclusion of
72817         config.h with HAVE_CONFIG_H.
72818
72819 2005-09-19  Jim Meyering  <jim@meyering.net>
72820
72821         * modules/pathmax (License): Change to LGPL.
72822
72823 2005-09-19  Derek Price  <derek@ximbiot.com>
72824
72825         * config/srclist.txt: glibc's glob.h is now in lib/glob-libc.h.
72826
72827 2005-09-19  Bruno Haible  <bruno@clisp.org>
72828
72829         * gnulib-tool (import): Provide default for --tests-base.
72830
72831 2005-09-19  Bruno Haible  <bruno@clisp.org>
72832
72833         * doc/quote.texi: New file, extracted from gnulib.texi.
72834         * doc/ctime.texi: New file, extracted from gnulib.texi.
72835         * doc/inet_ntoa.texi: New file, extracted from gnulib.texi.
72836         * doc/gnulib-tool.texi: New file, extracted from gnulib.texi.
72837         * doc/gnulib.texi: Include them.
72838
72839 2005-09-18  Bruno Haible  <bruno@clisp.org>
72840
72841         Portability fix.
72842         * gnulib-tool (func_readlink): New function.
72843         (func_ln_if_changed): Use it.
72844
72845 2005-09-18  Bruno Haible  <bruno@clisp.org>
72846
72847         * gnulib-tool: Support --with-tests also with --import.
72848         (func_emit_tests_Makefile_am): Use variables $m4base and $testsbase.
72849         (func_import): Use variables $testsbase and $inctests. Emit a
72850         gl_TESTS_BASE form into gnulib-cache.m4. Create $testsbase/Makefile.am.
72851         Remind the user to add AC_CONFIG_FILES($testsdir/Makefile) and
72852         SUBDIRS += $testsdir.
72853         (func_create_testdir): Update.
72854
72855 2005-09-18  Bruno Haible  <bruno@clisp.org>
72856
72857         * gnulib-tool: Revise --dry-run implementation. Use variable $doit
72858         instead of $dry_run.
72859         (func_cp_if_changed, func_mv_if_changed): Remove functions.
72860         (func_ln_if_changed): Don't handle dry-run here.
72861         (func_import): In dry-run mode, detect more precisely which actions
72862         would be performed, and don't use "...ing" verbs.
72863
72864 2005-09-18  Bruno Haible  <bruno@clisp.org>
72865
72866         * gnulib-tool (func_tmpdir): New function, taken from GNU gettextize.
72867         (func_import): Use join on two temporary files instead of three nested
72868         loops, in order to determine which files are new or old.
72869
72870 2005-09-18  Bruno Haible  <bruno@clisp.org>
72871
72872         * gnulib-tool (func_import): Comment out code that spits out the
72873         new files with --dry-run.
72874
72875 2005-09-18  Bruno Haible  <bruno@clisp.org>
72876
72877         * doc/gnulib.texi (Invoking gnulib-tool): 50% rewritten.
72878
72879 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
72880
72881         * lib/stat-time.h: New file.
72882         * lib/timespec.h (ST_TIME_CMP_NS, ST_TIME_CMP, ATIME_CMP, CTIME_CMP):
72883         (MTIME_CMP, TIMESPEC_NS): Remove.  Now done by stat-time.h,
72884         in a different way.
72885         (timespec_cmp): New function.
72886         * lib/utimecmp.c: Include stat-time.h.
72887         (SYSCALL_RESOLUTION): Depend on whether various struct stat
72888         members exist, not on the obsolescent ST_MTIM_NSEC.
72889         (utimecmp): Use the new stat-time functions rater than TIMESPEC_NS.
72890
72891 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
72892
72893         * config/srclist.txt: Remove glibc bug 1033 and uncomment mktime.c.
72894
72895 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
72896
72897         * MODULES.html.sh (File system functions): Add stat-time.
72898         * modules/stat-time: New file.
72899         * modules/timespec (Files): Remove m4/st_mtim.m4; this
72900         is now done in a different way, by the stat-time module.
72901         * modules/utimecmp (Depends-on): Add stat-time.
72902
72903 2005-09-15  Paul Eggert  <eggert@cs.ucla.edu>
72904
72905         * m4/st_mtim.m4: Remove.  Superseded by...
72906         * m4/stat-time.m4: New file.
72907         * m4/timespec.m4 (gl_TIMESPEC): Require AC_C_INLINE.
72908         Do not invoke AC_STRUCT_ST_MTIM_NSEC; no longer needed.
72909
72910 2005-09-15  Derek Price  <derek@ximbiot.com>
72911
72912         * m4/strstr.m4 (gl_FUNC_STRSTR): Don't define strstr here.
72913
72914 2005-09-15  Derek Price  <derek@ximbiot.com>
72915
72916         * lib/regex_internal.h: Blank `pure' for GNUC < 3.
72917         * lib/regex_internal.c: Ditto, using this...
72918         (__GNUC_PREREQ): ...new macro.
72919         * lib/regcomp.c, regexec.c: Blank `always_inline' for GNUC < 3.1
72920         using...
72921         (__GNUC_PREREQ): ...this new macro.
72922
72923         * lib/strstr.h: Include string.h. Define strstr as a macro here.
72924
72925 2005-09-15  Derek Price  <derek@ximbiot.com>
72926             Paul Eggert  <eggert@cs.ucla.edu>
72927
72928         * lib/regcomp.c, regexec.c, regex_internal.c: Back out previous
72929         changes, consolidating in...
72930         * lib/regex_internal.h: ...this file.
72931
72932 2005-09-13  Jim Meyering  <jim@meyering.net>
72933
72934         * lib/canon-host.c: Filter through gnu indent and reword comments
72935         slightly.
72936         * lib/canon-host.h (ch_strerror_r): Tweak cpp indentation and spacing.
72937
72938 2005-09-13  Derek Price  <derek@ximbiot.com>
72939
72940         * lib/canon-host.c (canon_host_r): Set *cherror on memory allocation
72941         failure.
72942         Reported by Jim Meyering  <jim@meyering.net>.
72943
72944 2005-09-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
72945
72946         * lib/base64.c: Typo.
72947         (base64_encode): Put b64str in initialized data section.
72948
72949 2005-09-12  Paul Eggert  <eggert@cs.ucla.edu>
72950
72951         Merge glibc and coreutils changes into gnulib, plus a few
72952         extra fixes.
72953         * lib/md5.c: Use #error rather than a string.
72954         (CYCLIC): New macro, from glibc source.  Use it instead of rol.
72955         * lib/md5.h (__GNUC_PREREQ, __THROW): Define if not defined already.
72956         (__attribute__): Define to empty for non recent-GCC.
72957         (__md5_buffer, __md5_finish_ctx, __md5_init_ctx, __md5_process_block):
72958         (__md5_process_bytes, __md5_read_ctx, __md5_stream):
72959         Renamed from their non-__ counterparts, with new macros replacing
72960         them if not _LIBC.  Add __THROW attribute.
72961         (rol): Remove.
72962         (struct md5_ctx): Align buffer if using GCC.
72963         * lib/sha1.h (struct sha1_ctx): Likewise.
72964         * lib/sha1.c (SWAP): Renamed from the NOTSWAP.  All uses changed.
72965         The old name was backwards.
72966         (NOTSWAP): Remove; not used.
72967         (rol): New macro, moved here from md5.h.
72968         (sha1_process_block): Remove a FIXME that doesn't make sense.
72969
72970 2005-09-12  Derek Price  <derek@ximbiot.com>
72971
72972         Return usable errors from canon-host.
72973         * lib/canon-host.h: New file.
72974         * lib/canon-host.c (canon_host): Wrap...
72975         (canon_host_r): ...this new function, which now relies exclusively on
72976         getaddrinfo.
72977         (ch_strerror): New function.
72978         (last_cherror): New global.
72979         * lib/getaddrinfo.c: Move include of getaddrinfo.h first to test
72980         interface.
72981         (getaddrinfo): Add AI_CANONNAME functionality.  Don't do arithmetic on
72982         void *.
72983         (freeaddrinfo): Free ai->ai_canonname when set.
72984
72985 2005-09-12  Derek Price  <derek@ximbiot.com>
72986
72987         Make canon-host require getaddrinfo.
72988         * m4/canon-host.m4 (gl_CANON_HOST): Remove most dependencies.
72989         AC_LIBSOURCE canon-host.h.  Call...
72990         (gl_PREREQ_CANON_HOST): ...this new function, which requires
72991         gl_GETADDRINFO.
72992         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Compile gai_strerror when needed.
72993
72994 2005-09-12  Derek Price  <derek@ximbiot.com>
72995
72996         * modules/canon-host: Add canon-host.h.  Depend on getaddrinfo.  Make
72997         LGPL.
72998         * modules/getaddrinfo: Add link to opengroup spec.  Depend on strdup.
72999
73000 2005-09-12  Derek Price  <derek@ximbiot.com>
73001
73002         * lib/gai_strerror.c: Include config.h when available.  Include
73003         getaddrinfo.h before other headers to test interface.
73004         Reported by Larry Jones <lawrence.jones@ugs.com>.
73005
73006 2005-09-12  Derek Price  <derek@ximbiot.com>
73007             Paul Eggert  <eggert@cs.ucla.edu>
73008
73009         * modules/glob (Files): Add glob-libc.h.
73010
73011 2005-09-12  Derek Price  <derek@ximbiot.com>
73012             Paul Eggert  <eggert@cs.ucla.edu>
73013
73014         * m4/glob.m4 (gl_GLOB_SUBSTITUTE): AC_LIBSOURCES for glob.c,
73015         glob_.h, glob-libc.h.
73016         (gl_PREREQ_GLOB): Remove _SYS_CDEFS_H hack; no longer needed.
73017
73018 2005-09-12  Derek Price  <derek@ximbiot.com>
73019             Paul Eggert  <eggert@cs.ucla.edu>
73020
73021         * lib/glob-libc.h: Renamed from glob_.h.  The new version is
73022         taken from libc's glob.h, except with '#ifdef __GLOB_GNULIB'
73023         protecting things that should be done only in gnulib contexts.
73024         * lib/glob_.h: New file, containing only the glob things needed for
73025         gnulib.
73026         (GLOB_PREFIX): Remove.  All uses changed to look for __GLOB_GNULIB.
73027         (__GLOB_CONCAT, __GLOB_XCONCAT, __GLOB_ID): Remove; no longer needed.
73028         (glob, globfree, glob_pattern_p): Now defined simply in terms of
73029         rpl_glob, rpl_globfree, rpl_glob_pattern_p.
73030         (__GLOB_GNULIB): New macro, to keep the glob.h changes clearer
73031         and to respect the namespace rules better.
73032
73033 2005-09-08  Simon Josefsson  <jas@extundo.com>
73034
73035         * modules/socklen: New file.
73036
73037 2005-09-08  Simon Josefsson  <jas@extundo.com>
73038
73039         * m4/socklen.m4: New file.
73040
73041 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
73042
73043         * modules/utimens (Files): Add m4/utimbuf.m4, since
73044         m4/utimens.m4 requires gl_CHECK_TYPE_STRUCT_UTIMBUF.
73045         Reported by Sergey Poznyakoff.
73046
73047 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
73048
73049         * lib/glob.c (glob, globfree, __glob_pattern_p): Use old-style function
73050         definitions, since that's the preferred style in glibc.
73051         Fix a minor spacing issue, and update copyright notice to match
73052         glibc's.
73053
73054 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
73055
73056         * config/srclist.txt: Remove glibc bug 1061; it's been fixed.
73057
73058 2005-09-06  Simon Josefsson  <jas@extundo.com>
73059
73060         * lib/getpass.c (getpass): Fix typo, test for HAVE_TCSETATTR and not
73061         TCSETATTR.  Reported by Derek Price <derek@ximbiot.com>.
73062
73063 2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
73064
73065         * lib/regex_internal.h (bitset_not): Add parens to avoid gcc -Wall
73066         warning.
73067
73068 2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
73069
73070         * config/srclist.txt: Add glibc bug 1302.
73071
73072 2005-09-05  Paul Eggert  <eggert@cs.ucla.edu>
73073
73074         Change bitset word type from unsigned int to unsigned long int,
73075         as this has better performance on typical 64-bit hosts.
73076         Port bitset code to hosts with unusual word sizes.
73077         * lib/regcomp.c (build_equiv_class, build_charclass, build_range_exp):
73078         (build_collating_symbol):
73079         Prefer bitset to re_bitset_ptr_t in prototypes, when the actual
73080         argument is a bitset.  This is merely a style issue, but it makes
73081         it clearer that an entire array is expected.
73082         (re_compile_fastmap_iter, init_dfa, init_word_char, optimize_subexps):
73083         * lib/regcomp.c (lower_subexp, parse_bracket_exp, built_charclass_op):
73084         Port to the case where bitset_word is not the same as unsigned int.
73085         * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain):
73086         (bitset_not, bitset_merge, bitset_set_all, bitset_mask):
73087         Likewise.
73088         * lib/regexec.c (check_dst_limits_calc_pos_1,
73089         check_subexp_matching_top):
73090         (build_trtable, group_nodes_into_DFAstates):
73091         Likewise.
73092         * lib/regcomp.c (re_compile_fastmap_iter, utf8_sb_map, optimize_utf8):
73093         Don't assume that SBC_MAX is a multiple of BITSET_WORD_BITS.
73094         * lib/regex_internal.h (bitset_set_all, bitset_not): Likewise.
73095         * lib/regexec.c (group_nodes_into_DFAstates): Likewise.
73096         * lib/regcomp.c (utf8_sb_map): Don't assume UINT_MAX == 0xffffffff.
73097         * lib/regcomp.c (optimize_subexps, lower_subexp):
73098         Work even if bitset_word has holes in its bitwise representation.
73099         * lib/regex_internal.h (BITSET_WORD_BITS): Likewise.
73100         * lib/regexec.c (check_dst_limits_calc_pos_1,
73101         check_subexp_matching_top):
73102         Likewise.
73103         * lib/regex_internal.c (re_string_reconstruct):
73104         Don't assume UCHAR_MAX == 255.
73105         * lib/regex_internal.h (bitset_set_all): Likewise.
73106         * lib/regex_internal.h (BITSET_WORD_BITS): Renamed from UINT_BITS.
73107         All uses changed.
73108         (BITSET_WORDS): Renamed from BITSET_UINTS.  All uses changed.
73109         (bitset_word): New type, replacing 'unsigned int' for bitset uses.
73110         All uses changed.
73111         (BITSET_WORD_MAX): New macro.
73112         (bitset_set, bitset_clear, bitset_contain, bitset_empty):
73113         (bitset_set_all, bitset_copy):  Now inline functions, not macros.
73114         (bitset_empty, bitset_copy):
73115         Prefer sizeof (bitset) to multiplying it out ourselves.
73116         (bitset_not_merge): Remove; unused.
73117         (bitset_contain): Return bool, not unsigned int with one bit on.
73118         All callers changed.
73119         * lib/regexec.c (build_trtable): Don't assume bitset has no stricter
73120         alignment than re_node_set; do this by defining a new internal
73121         type struct dests_alloc and using it to allocate memory.
73122
73123 2005-09-05  Bruno Haible  <bruno@clisp.org>
73124
73125         * gnulib-tool (func_import): Fix comparison in handling of symbolic
73126         links.
73127
73128 2005-09-04  Martin Lambers  <marlam@marlam.de>  (tiny change)
73129
73130         * modules/size_max (Makefile.am): Add size_max.h
73131
73132 2005-09-04  Derek Price  <derek@ximbiot.com>
73133
73134         * gnulib-tool (func_import): Fix reversed $symbolic logic.
73135
73136 2005-09-03  Simon Josefsson  <jas@extundo.com>
73137
73138         * gnulib-tool: Fix typo.
73139
73140 2005-09-03  Simon Josefsson  <jas@extundo.com>
73141
73142         * config/srclist.txt: Add glibc bug 1293.
73143
73144 2005-09-03  Derek Price  <derek@ximbiot.com>
73145
73146         * m4/getlogin_r (gl_GETLOGIN_R): Fix cut & paste error.
73147         From Larry Jones <lawrence.jones@ugs.com>.
73148
73149 2005-09-02  Simon Josefsson  <jas@extundo.com>
73150
73151         * modules/socklen: New file.
73152
73153 2005-09-02  Simon Josefsson  <jas@extundo.com>
73154
73155         * modules/havelib: New module.
73156
73157         * modules/gettext, modules/iconv, modules/lock, modules/readline:
73158         Use havelib.
73159
73160 2005-09-02  Paul Eggert  <eggert@cs.ucla.edu>
73161
73162         Check for arithmetic overflow when calculating sizes, to prevent
73163         some buffer-overflow issues.  These patches are conservative, in the
73164         sense that when I couldn't determine whether an overflow was possible,
73165         I inserted a run-time check.
73166         * lib/regex_internal.h (re_xmalloc, re_xrealloc, re_x2realloc): New
73167         macros.
73168         (SIZE_MAX) [!defined SIZE_MAX]: New macro.
73169         (re_alloc_oversized, re_x2alloc_oversized, re_xnmalloc):
73170         (re_xnrealloc, re_x2nrealloc): New inline functions.
73171         * lib/regcomp.c (init_dfa, analyze, build_range_exp,
73172         parse_bracket_exp):
73173         (build_equiv_class, build_charclass): Check for arithmetic overflow
73174         in size expression calculations.
73175         * lib/regex_internal.c (re_string_realloc_buffers):
73176         (build_wcs_upper_buffer, re_node_set_add_intersect):
73177         (re_node_set_init_union, re_node_set_insert, re_node_set_insert_last):
73178         (re_dfa_add_node, register_state): Likewise.
73179         * lib/regexec.c (re_search_stub, re_copy_regs, re_search_internal):
73180         (prune_impossible_nodes, push_fail_stack, set_regs, check_arrival):
73181         (build_trtable, extend_buffers, match_ctx_init, match_ctx_add_entry):
73182         (match_ctx_add_subtop, match_ctx_add_sublast): Likewise.
73183
73184 2005-09-02  Paul Eggert  <eggert@cs.ucla.edu>
73185
73186         * modules/inttostr (Files): Add m4/inttypes_h.m4, m4/stdint_h.m4,
73187         m4/ulonglong.m4.  Problem reported by Martin Lambers.
73188
73189 2005-09-02  Bruno Haible  <bruno@clisp.org>
73190
73191         Support for lib vs. lib64 distinction on biarch platforms.
73192         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): New macro.
73193         (AC_LIB_PREFIX): Require it. Use $acl_libdirstem instead of 'lib'.
73194         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Likewise.
73195
73196 2005-09-02  Bruno Haible  <bruno@clisp.org>
73197
73198         * gnulib-tool (import): In the other first-use case, provide defaults
73199         as well.
73200
73201 2005-09-02  Bruno Haible  <bruno@clisp.org>
73202
73203         * config/srclist.txt: lib-link.m4 and lib-prefix.m4 currently have
73204         patches not yet found in the latest gettext release.
73205
73206 2005-09-01  Paul Eggert  <eggert@cs.ucla.edu>
73207
73208         * lib/glob.c (GET_LOGIN_NAME_MAX): Renamed from LOGIN_NAME_MAX,
73209         to avoid a collision with bits/local_lim.h in glibc.
73210         All uses changed.  Problem reported by Dmitry V. Levin in
73211         <http://sources.redhat.com/bugzilla/show_bug.cgi?id=1060>.
73212
73213         * lib/regex_internal.c (build_wcs_upper_buffer): Fix portability
73214         bugs in int versus size_t comparisons.
73215         (re_string_context_at): Fix bug where the code assumed that
73216         Idx is signed.
73217
73218         Use bool where appropriate.
73219         * lib/regcomp.c (re_set_fastmap): ICASE arg is bool, not int.
73220         All callers changed.
73221         (calc_eclosure_iter): Likewise, for ROOT arg.
73222         (parse_bracket_element): Likewise, for ACCEPT_HYPHEN arg.
73223         (build_charclass_op): Likewise, for NON_MATCH arg.
73224         * lib/regex_internal.c (re_string_allocate, re_string_construct):
73225         (re_string_construct_common): Likewise, for ICASE arg.
73226         * lib/regexec.c (re_search_2_stub, re_search_stub):
73227         Likewise, for RET_LEN arg.
73228         (check_matching): Likewise, for FL_LONGEST_MATCH arg.
73229         (set_regs): Likewise, for FL_BACKTRACK arg.
73230         * lib/regcomp.c (re_compile_fastmap_iter, optimize_utf8):
73231         (duplicate_node_closure, calc_inveclosure, calc_eclosure):
73232         (calc_eclosure_iter, parse_bracket_exp):
73233         Use bool for internal variables that are booleans.
73234         * lib/regexec.c (re_search_internal, check_matching,
73235         proceed_next_node):
73236         (set_regs, build_sifted_states, sift_states_bkref):
73237         (check_arrival_add_next_nodes, check_arrival_expand_ecl_sub):
73238         (expand_bkref_cache, build_trtable, group_nodes_into_DFAstates):
73239         (find_collation_sequence_value):
73240         Likewise.
73241         * lib/regex_internal.c (re_node_set_insert, re_node_set_insert_last):
73242         (re_node_set_compare):
73243         Return bool, not int. All callers changed.
73244         * lib/regexec.c (check_halt_node_context, check_dst_limits):
73245         (build_trtable, check_node_accept): Likewise.
73246         * lib/regex_internal.h: Include stdbool.h.
73247
73248         Fix bugs uncovered when converting to bool.
73249         * lib/regcomp.c (calc_eclosure_iter): Check for storage allocation
73250         failure instead of charging ahead blindly.
73251         * lib/regex_internal.c (register_state): Likewise.
73252         * lib/regexec.c (re_search_2_stub): Use simpler method than boolean
73253         for freeing internal storage.
73254         (group_nodes_into_DFA_states): Use unsigned int, not int, for
73255         bitset pieces used as boolean, to avoid undefined behavior
73256         on hosts that do int overflow checking.
73257
73258 2005-09-01  Paul Eggert  <eggert@cs.ucla.edu>
73259
73260         * config/srclist.txt: Add glibc bugs 1285-1287.
73261
73262 2005-09-01  Jim Meyering  <jim@meyering.net>
73263
73264         * m4/lchown.m4: Require gl_FUNC_CHOWN, for the definition of
73265         CHOWN_MODIFIES_SYMLINK, which is used by lchown.c.
73266         Require gl_STAT_MACROS, too.
73267
73268 2005-09-01  Bruno Haible  <bruno@clisp.org>
73269
73270         * gnulib-tool (import): In the first-use case, provide defaults.
73271
73272 2005-09-01  Bruno Haible  <bruno@clisp.org>
73273
73274         * gnulib-tool (func_import): Remove the .tmp files.
73275
73276 2005-09-01  Bruno Haible  <bruno@clisp.org>
73277
73278         * gnulib-tool (func_import): Fix handling of symbolic links.
73279
73280 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
73281
73282         On 64-bit hosts (where size_t is 64 bits and int is 32 bits), the
73283         old glibc regex code mishandles strings longer than 2**31 bytes.
73284         This patch fixes this when the regex code is used in gnulib
73285         (i.e., outside glibc).
73286
73287         This patch should not affect the use of the regex code inside
73288         glibc.  No doubt this problem also needs to be handled for glibc
73289         as well, but the result will be an incompatible change to the
73290         glibc ABI, and the old ABI will have to be supported too.  That
73291         can be the the subject for another patch.
73292
73293         * lib/regex.h (_REGEX_LARGE_OFFSETS): New feature-test macro,
73294         governing whether the rest of this patch is active.  By default,
73295         the macro is disabled and the patch has no effect.
73296         (regoff_t) [defined _REGEX_LARGE_OFFSETS]: Define to off_t, not int.
73297         (__re_idx_t, __re_size_t, __re_long_size_t): New types.
73298         (struct re_pattern_buffer, re_search, re_search_2, re_match):
73299         (re_match_2, re_set_registers): Use the new types.
73300         * lib/regex_internal.h (Idx, re_hashval_t): New types.
73301         (REG_MISSING, REG_ERROR, REG_VALID_INDEX, REG_VALID_NONZERO_INDEX):
73302         New macros.
73303         (re_node_set, re_charset_t, re_token_t, re_string_realloc_buffers):
73304         (re_string_context_at, bin_tree_t, re_dfastate_t):
73305         (struct re_state_table_entry, state_array_t, re_sub_match_last_t):
73306         (re_sub_match_top_t, re_match_context_t, re_sift_context_t):
73307         (struct re_fail_stack_ent_t, struct re_fail_stack_t, struct re_dfa_t):
73308         (re_string_char_size_at, re_string_wchar_at):
73309         (re_string_elem_size_at):
73310         Use the new types and macros to port to 64-bit hosts.
73311         Use unsigned types for internal values, so that the code
73312         mostly works even for arrays larger than SSIZE_MAX.
73313         * lib/regcomp.c (re_compile_internal, init_dfa, duplicate_node):
73314         (search_duplicated_node, calc_eclosure_iter, fetch_number):
73315         (parse_reg_exp, parse_branch, parse_expression, parse_sub_exp):
73316         (build_equiv_class, build_charclass, re_compile_fastmap_iter):
73317         (free_dfa_content, create_initial_state, optimize_utf8, analyze):
73318         (optimize_subexps, calc_first, link_nfa_nodes, duplicate_node_closure):
73319         (calc_inveclosure, parse_dup_op, build_range_exp):
73320         (build_collating_symbol, parse_bracket_exp, build_charclass_op):
73321         (fetch_number, create_token_tree, mark_opt_subexp):
73322         Likewise.
73323         * lib/regex_internal.c (re_string_construct_common,
73324         create_ci_newstate):
73325         (create_cd_newstate, re_string_allocate, re_string_construct):
73326         (re_string_realloc_buffers, build_wcs_upper_buffer):
73327         (re_string_skip_chars, build_upper_buffer, re_string_translate_buffer):
73328         (re_string_reconstruct, re_string_peek_byte_case):
73329         (re_string_fetch_byte_case, re_string_context_at):
73330         (re_node_set_alloc, re_node_set_init_1, re_node_set_init_2):
73331         (re_node_set_init_copy, re_node_set_add_intersect):
73332         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
73333         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
73334         (re_node_set_remove_at, re_dfa_add_node, calc_state_hash):
73335         (re_acquire_state, re_acquire_state_context, register_state):
73336         Likewise.
73337         * lib/regex.c (match_ctx_init, match_ctx_add_entry,
73338         search_cur_bkref_entry):
73339         (match_ctx_add_subtop, match_ctx_add_sublast, sift_ctx_init):
73340         (re_search_internal, re_search_2_stub, re_search_stub)
73341         (re_copy_regs, check_matching, check_halt_state_context, update_regs):
73342         (push_fail_stack, sift_states_iter_mb, build_sifted_states):
73343         (update_cur_sifted_state, check_dst_limits):
73344         (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos):
73345         (check_subexp_limits, sift_states_bkref, merge_state_array):
73346         (check_subexp_matching_top, get_subexp, get_subexp_sub):
73347         (find_subexp_node, check_arrival, check_arrival_add_next_nodes):
73348         (check_arrival_expand_ecl, check_arrival_expand_ecl_sub):
73349         (expand_bkref_cache, check_node_accept_bytes):
73350         (group_nodes_into_DFAstates, check_node_accept, regexec, re_match):
73351         (re_search, re_match_2, re_search_2, prune_impossible_nodes):
73352         (acquire_init_state_context, check_halt_node_context):
73353         (proceed_next_node, pop_fail_stack, set_regs, free_fail_stack_return):
73354         (sift_states_backward, clean_state_log_if_needed):
73355         (sub_epsilon_src_nodes, add_epsilone_src_nodes, merge_state_with_log):
73356         (find_recover_state, transit_state_sb, transit_state_mb):
73357         (transit_state_bkref, build_trtable, match_ctx_clean):
73358         Likewise.
73359         * lib/regcomp.c (parse_dup_op): Add an extra test if Idx is unsigned,
73360         to work around an assumption that REG_MISSING is negative.
73361
73362         * lib/regcomp.c (re_comp) [defined _REGEX_RE_COMP || defined _LIBC]:
73363         (seek_collating_symbol_entry) [defined _LIBC]:
73364         (lookup_collation_sequence_value) [defined _LIBC]:
73365         (build_range_exp, build_collating_symbol) [defined _LIBC]:
73366         Use prototypes rather than old-style function definitions.
73367         * lib/regexec.c (re_exec) [defined _REGEX_RE_COMP || defined _LIBC]:
73368         (transit_state_sb) [0]:
73369         (find_collation_sequence_value) [defined _LIBC]: Likewise.
73370
73371         * lib/regexec.c (re_search_internal): Simplify update of rm_so and
73372         rm_eo.
73373
73374         * lib/regcomp.c (re_compile_fastmap_iter, init_dfa, init_word_char):
73375         (optimize_subexps, lower_subexp):
73376         Don't assume 1<<31 has defined behavior on hosts with 32-bit int,
73377         since the signed shift might overflow.  Use 1u<<31 instead.
73378         * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain):
73379         Likewise.
73380         * lib/regexec.c (check_dst_limits_calc_pos_1,
73381         check_subexp_matching_top): Likewise.
73382
73383         * lib/regcomp.c (optimize_subexps, lower_subexp):
73384         Use CHAR_BIT rather than 8, for clarity.
73385         * lib/regexec.c (check_dst_limits_calc_pos_1):
73386         (check_subexp_matching_top): Likewise.
73387         * lib/regcomp.c (init_dfa): Make table_size unsigned, so that we don't
73388         have to worry about portability issues when shifting it left.
73389         Remove no-longer-needed test for table_size > 0.
73390         * lib/regcomp.c (parse_sub_exp): Do not shift more bits than there are
73391         in a word, as the resulting behavior is undefined.
73392         * lib/regexec.c (check_dst_limits_calc_pos_1): Likewise;
73393         in one case, a <= should have been an <, and in another case the
73394         whole test was missing.
73395         * lib/regex_internal.h (BYTE_BITS): Remove.  All uses changed to
73396         the standard name CHAR_BIT.
73397         * lib/regexec.c (match_ctx_add_entry): Don't assume that ~0 == -1;
73398         this is not true on one's complement and signed-magnitude hosts.
73399
73400         * lib/regex_internal.h (re_sub_match_top_t): Remove unused member
73401         next_last_offset.
73402         (struct re_dfa_t): Remove unused member states_alloc.
73403         * lib/regcomp.c (init_dfa): Don't initialize unused members.
73404
73405 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
73406
73407         * m4/regex.m4 (gl_REGEX): Require AC_SYS_LARGEFILE, Define
73408         _REGEX_LARGE_OFFSETS).  Test for regoff_t/off_t bug in 64-bit
73409         and large-file glibc and in 32-bit large-file Solaris.
73410
73411 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
73412
73413         * lib/regex_internal.c (re_string_reconstruct): Don't assume buffer
73414         lengths fit in regoff_t; this isn't true if regoff_t is the same
73415         width as size_t.
73416         * lib/regex.c (re_search_internal): 5th arg is LAST_START
73417         (= START + RANGE) instead of RANGE.  This avoids overflow
73418         problems when regoff_t is the same width as size_t.
73419         All callers changed.
73420         (re_search_2_stub): Check for overflow when adding the
73421         sizes of the two strings.
73422         (re_search_stub): Check for overflow when adding START
73423         to RANGE; if it occurs, substitute the extreme value.
73424
73425 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
73426
73427         * config/srclist.txt: Add glibc bugs 1273, 1278-1282, 1284.
73428
73429 2005-08-31  Jim Meyering  <jim@meyering.net>
73430
73431         * lib/regcomp.c (search_duplicated_node): Make first pointer arg
73432         a pointer-to-const.
73433         * lib/regex_internal.c (create_ci_newstate, create_cd_newstate):
73434         (register_state): Likewise.
73435         * lib/regexec.c (search_cur_bkref_entry, check_dst_limits):
73436         (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos):
73437         (group_nodes_into_DFAstates): Likewise.
73438
73439 2005-08-31  Jim Meyering  <jim@meyering.net>
73440
73441         * check-module: Add a FIXME comment.
73442
73443 2005-08-31  Eric Blake  <ebb9@byu.net>
73444
73445         * modules/unistd-safer (Files): Add unistd--.h.
73446         * modules/stdio-safer (Files): Add stdio--.h.
73447
73448 2005-08-31  Derek Price  <derek@ximbiot.com>
73449
73450         * lib/getdelim.c (getdelim): Return EOF on EOF.
73451         Reported by Larry Jones <lawrence.jones@ugs.com>.
73452
73453 2005-08-31  Bruno Haible  <bruno@clisp.org>
73454
73455         Avoid unnecessary diffs in the generated lib/Makefile.am.
73456         * gnulib-tool (func_emit_lib_Makefile_am): Don't write the cmd into
73457         the generated files.
73458         (func_import): Don't set cmd.
73459
73460 2005-08-31  Bruno Haible  <bruno@clisp.org>
73461
73462         * lib/strstr.c: Include <stddef.h>, for NULL.
73463         * lib/strcasestr.c: Likewise.
73464         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
73465
73466 2005-08-31  Bruno Haible  <bruno@clisp.org>
73467
73468         * gnulib-tool: New option --macro-prefix.
73469         (func_import): Use macro_prefix.
73470         (import): Handle option --macro-prefix.
73471
73472 2005-08-31  Bruno Haible  <bruno@clisp.org>
73473
73474         * gnulib-tool (import): Rename most ac_* variables to cached_*.
73475         Also use new variables cached_lgpl, cached_libtool.
73476
73477 2005-08-31  Bruno Haible  <bruno@clisp.org>
73478
73479         * gnulib-tool (func_import): Require AC_GNU_SOURCE etc. instead of
73480         always instantiating them.
73481
73482 2005-08-31  Bruno Haible  <bruno@clisp.org>
73483
73484         * gnulib-tool (func_import): Read the previous cached settings
73485         from gnulib-cache.m4 and gnulib-comp.m4. Remove files that were
73486         earlier added by gnulib but are now dropped. Warn when a gnulib file
73487         overwrites a non-gnulib file.
73488
73489 2005-08-31  Bruno Haible  <bruno@clisp.org>
73490
73491         * gnulib-tool (func_import): Generate two files gnulib-cache.m4 and
73492         gnulib-comp.m4 instead of a single gnulib.m4, to make it easy for
73493         projects that don't keep autogenerated files in CVS. Put into
73494         actioncmd only the specified modules, not the transitive closure.
73495
73496 2005-08-31  Bruno Haible  <bruno@clisp.org>
73497
73498         * gnulib-tool (func_import): Fix defaulting of $libname and $libtool.
73499         Create directories that shall be filled.
73500         (import): Don't look for gl_* macros in configure.ac. Recurse across
73501         all directories containing a gnulib-cache.m4 files, if meaningful.
73502
73503 2005-08-31  Bruno Haible  <bruno@clisp.org>
73504
73505         * gnulib-tool (func_import): Emit also a stub for gl_LIBTOOL.
73506         (import): Set seen_libtool when we see gl_LIBTOOL.
73507
73508 2005-08-31  Bruno Haible  <bruno@clisp.org>
73509
73510         * gnulib-tool (func_import): Also copy m4/gnulib-tool.m4. Omit
73511         declaration macro definitions from generated gnulib.m4.
73512
73513 2005-08-30  Oskar Liljeblad  <oskar@osk.mine.nu>
73514
73515         * lib/iconvme.h: Add prototype for iconv_alloc.
73516
73517 2005-08-29  Simon Josefsson  <jas@extundo.com>
73518
73519         * lib/iconvme.c: Fix errno.
73520
73521 2005-08-29  Bruno Haible  <bruno@clisp.org>
73522
73523         * gnulib-tool: Enclose all occurrences of $destdir in "...", so
73524         that it works when the directory contains spaces.
73525
73526 2005-08-29  Bruno Haible  <bruno@clisp.org>
73527
73528         * gnulib-tool (import): Avoid unnecessary spaces in $avoidlist.
73529
73530 2005-08-29  Bruno Haible  <bruno@clisp.org>
73531
73532         * gnulib-tool (func_import): Emit more comments into gnulib.m4.
73533         Emit more advice.
73534
73535 2005-08-29  Bruno Haible  <bruno@clisp.org>
73536         and Stepan Kasal  <kasal@ucw.cz>
73537
73538         * check-module: If more parameters are given, check each of them
73539         separately; add more exceptions, as noted by Jim Meyering.
73540         (check_module): New procedure.
73541         (%exempt_header): Now contains all exceptions.
73542
73543 2005-08-29  Ben Pfaff  <blp@cs.stanford.edu>
73544
73545         * modules/byteswap (Makefile.am): Fix rule to not assume GNU make.
73546
73547 2005-08-29  Oskar Liljeblad  <oskar@osk.mine.nu>
73548
73549         * lib/iconvme.c: Split iconv_string into iconv_alloc.
73550
73551 2005-08-28  Bruno Haible  <bruno@clisp.org>
73552
73553         * m4/gnulib-tool.m4: New file.
73554
73555 2005-08-27  Jim Meyering  <jim@meyering.net>
73556
73557         * modules/unistd-safer (Files): Add pipe-safer.c.
73558         * modules/fcntl-safer (Files): Add creat-safer.c.
73559
73560 2005-08-27  Jim Meyering  <jim@meyering.net>
73561
73562         * m4/stdlib-safer.m4: New file.  From coreutils.
73563         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Add stdio--.h.
73564         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Add creat-safer.c to the
73565         AC_LIBSOURCES list and arrange to compile it via AC_LIBOBJ.
73566         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Likewise, add pipe-safer.c.
73567         Add pipe-safer.c and unistd--.h to the AC_LIBSOURCES list.
73568
73569 2005-08-27  Jim Meyering  <jim@meyering.net>
73570
73571         * lib/fopen-safer.c: Merge minor changes from coreutils.
73572         * lib/dup-safer.c: Likewise.
73573         * lib/fd-safer.c: Likewise.
73574
73575         Merge from coreutils.
73576         * lib/stdio--.h: New file.
73577         * lib/stdlib--.h: New file.
73578         * lib/mkstemp-safer.c: New file.
73579
73580         GNU tar needs these.
73581         * lib/pipe-safer.c: New file.
73582         * lib/creat-safer.c: New file.
73583         * lib/fcntl--.h (creat): Define to creat_safer.
73584         * lib/fcntl-safer.h: Include <sys/types.h> and declare creat_safer.
73585         * lib/unistd--.h (pipe): Define to pipe_safer.
73586         * lib/unistd-safer.h: Declare pipe_safer.
73587
73588 2005-08-26  Simon Josefsson  <jas@extundo.com>
73589
73590         * lib/getpass.c: Use _WIN32 instead of WIN32, suggested by Bruno
73591         Haible <bruno@clisp.org>.
73592
73593 2005-08-26  Paul Eggert  <eggert@cs.ucla.edu>
73594
73595         * lib/regex_internal.h: Remove all references to
73596         RE_NO_INTERNAL_PROTOTYPES; no longer neeeded now that we assume C89
73597         or better.
73598         (bitset_not, bitset_merge, bitset_not_merge):
73599         (bitset_mask, re_string_allocate, re_string_construct):
73600         (re_string_reconstruct, re_string_destruct, re_string_elem_size_at):
73601         (re_string_char_size_at, re_string_wchar_at, re_string_peek_byte_case):
73602         (re_string_fetch_byte_case, re_node_set_alloc, re_node_set_init_1):
73603         (re_node_set_init_2, re_node_set_init_copy, re_node_set_add_intersect):
73604         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
73605         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
73606         (re_node_set_remove_at, re_dfa_add_node, re_acquire_state):
73607         (re_acquire_state_context):
73608         Remove unnecessary forward decls.
73609         (re_string_char_size_at, re_string_wchar_at, re_string_elem_size_at):
73610         Put __attribute at function definition,
73611         now that the function decl has been removed.
73612         * lib/regex_internal.c (re_string_peek_byte_case):
73613         (re_string_fetch_byte_case, re_node_set_compare, re_node_set_contains):
73614         Likewise.
73615
73616 2005-08-25  Stepan Kasal  <kasal@ucw.cz>
73617
73618         * m4/regex.m4: Add AC_PREREQ(2.50).
73619         (gl_REGEX): If --with-included-regex was given, skip the autodetection.
73620
73621 2005-08-25  Simon Josefsson  <jas@extundo.com>
73622
73623         * m4/getpass.m4: Check for termios.h, tcgetattr, tcsetattr, and
73624         __fsetlocking.
73625
73626 2005-08-25  Simon Josefsson  <jas@extundo.com>
73627
73628         * lib/getpass.c: Add WIN32 implementation.  Conditionalize use of
73629         termios.h, tcgetattr, tcsetattr and __fsetlocking.  Remove some
73630         GLIBC specific code.
73631
73632 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
73633
73634         Make regex safe for g++.  This fixes one real bug (an "err"
73635         that should have been "*err").  g++ problem reported by
73636         Sam Steingold.
73637         * lib/regex_internal.h (re_calloc): New macro, consistent with
73638         re_malloc etc.  All callers of calloc changed to use re_calloc.
73639         * lib/regex_internal.c (build_wcs_upper_buffer): Return reg_errcode_t,
73640         not int.  All callers changed.
73641         * lib/regcomp.c (re_compile_fastmap_iter): Don't use
73642         alloca (mb_cur_max); just use an array of size MB_LEN_MAX.
73643         * lib/regexec.c (push_fail_stack): Use re_realloc, not realloc.
73644         (find_recover_state): Change "err" to "*err"; this fixes what
73645         appears to be a real bug.
73646         (check_arrival_expand_ecl_sub): Be consistent about reg_errcode_t
73647         versus int.
73648
73649 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
73650
73651         * modules/regex (Depends-on): Add malloc, since the code
73652         assumes that !malloc(0) means failure.
73653
73654 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
73655
73656         * lib/regexec.c (set_regs): Don't alloca with an unbounded size.
73657
73658         alloca modernization/simplification for regex.
73659         * lib/regex.c: Remove portability cruft for alloca.  This no longer
73660         needs to be at the start of the file, and can be moved into
73661         regex_internal.h and simplified.
73662         * lib/regex_internal.h: Include <alloca.h>.
73663         (__libc_use_alloca) [!defined _LIBC]: New macro.
73664         * lib/regexec.c (build_trtable): Remove "#ifdef _LIBC", since the code
73665         now works outside glibc.
73666
73667 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
73668
73669         * config/srclist.txt: Add glibc bugs 1241, 1245.
73670
73671 2005-08-25  Jim Meyering  <jim@meyering.net>
73672
73673         * lib/open-safer.c: Include <config.h>.
73674         Otherwise, we'd lose LARGEFILE support in any file using
73675         e.g. "fcntl--.h"
73676
73677 2005-08-25  Bruno Haible  <bruno@clisp.org>
73678
73679         * m4/minmax.m4: Require autoconf 2.52.
73680         (gl_MINMAX_IN_HEADER): Add comments. Use m4_pushdef/m4_popdef instead
73681         of define/undefine. Use AS_TR_SH and AS_TR_CPP as more robust
73682         alternatives of translit over the alphabet.
73683         Based on a patch from Stepan Kasal <kasal@ucw.cz>.
73684
73685 2005-08-24  Simon Josefsson  <jas@extundo.com>
73686
73687         * tests/test-getpass.c: New file.
73688
73689 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
73690
73691         * m4/regex.m4 (gl_REGEX): Use POSIX-compliant spellings when testing
73692         for GNU regex features.
73693
73694 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
73695
73696         * lib/regcomp.c (regerror): 2nd arg is 'restrict', as per POSIX.
73697         * lib/regex.h (regerror): Likewise.
73698
73699         * lib/regex.c: Do not include <sys/types.h>, as POSIX no longer
73700         requires this.  (The code never needed it.)
73701
73702         * lib/regcomp.c, regex_internal.c, regex_internal.h, regexec.c:
73703         All uses of recently-renamed identifiers changed to use the new,
73704         POSIX-compliant names.  The code will build and run just fine
73705         without these changes, but it's better to eat our own dog food
73706         and use the standard-conforming names.
73707
73708         * lib/regex.h: Fix a multitude of POSIX name space violations.
73709         These changes have an effect only for programs that define
73710         _POSIX_C_SOURCE, _POSIX_SOURCE, or _XOPEN_SOURCE; they
73711         do not change anything for programs compiled in the normal way.
73712         Also, there is no effect on the ABI.
73713
73714         (_REGEX_SOURCE): New macro.
73715         Do not include <stddef.h> if _XOPEN_SOURCE and VMS are both
73716         defined and _GNU_SOURCE is not; this fixes a name space violation.
73717
73718         Rename the following macros to obey POSIX requirements.
73719         The old names are still visible as macros if _REGEX_SOURCE is defined.
73720         (REG_BACKSLASH_ESCAPE_IN_LISTS): renamed from
73721         RE_BACKSLASH_ESCAPE_IN_LISTS.
73722         (REG_BK_PLUS_QM): renamed from RE_BK_PLUS_QM.
73723         (REG_CHAR_CLASSES): renamed from RE_CHAR_CLASSES.
73724         (REG_CONTEXT_INDEP_ANCHORS): renamed from RE_CONTEXT_INDEP_ANCHORS.
73725         (REG_CONTEXT_INDEP_OPS): renamed from RE_CONTEXT_INDEP_OPS.
73726         (REG_CONTEXT_INVALID_OPS): renamed from RE_CONTEXT_INVALID_OPS.
73727         (REG_DOT_NEWLINE): renamed from RE_DOT_NEWLINE.
73728         (REG_DOT_NOT_NULL): renamed from RE_DOT_NOT_NULL.
73729         (REG_HAT_LISTS_NOT_NEWLINE): renamed from RE_HAT_LISTS_NOT_NEWLINE.
73730         (REG_INTERVALS): renamed from RE_INTERVALS.
73731         (REG_LIMITED_OPS): renamed from RE_LIMITED_OPS.
73732         (REG_NEWLINE_ALT): renamed from RE_NEWLINE_ALT.
73733         (REG_NO_BK_BRACES): renamed from RE_NO_BK_BRACES.
73734         (REG_NO_BK_PARENS): renamed from RE_NO_BK_PARENS.
73735         (REG_NO_BK_REFS): renamed from RE_NO_BK_REFS.
73736         (REG_NO_BK_VBAR): renamed from RE_NO_BK_VBAR.
73737         (REG_NO_EMPTY_RANGES): renamed from RE_NO_EMPTY_RANGES.
73738         (REG_UNMATCHED_RIGHT_PAREN_ORD): renamed from
73739         RE_UNMATCHED_RIGHT_PAREN_ORD.
73740         (REG_NO_POSIX_BACKTRACKING): renamed from RE_NO_POSIX_BACKTRACKING.
73741         (REG_NO_GNU_OPS): renamed from RE_NO_GNU_OPS.
73742         (REG_DEBUG): renamed from RE_DEBUG.
73743         (REG_INVALID_INTERVAL_ORD): renamed from RE_INVALID_INTERVAL_ORD.
73744         (REG_IGNORE_CASE): renamed from RE_ICASE.  This renaming is a bit
73745         unusual, since we can't clash with the POSIX REG_ICASE.
73746         (REG_CARET_ANCHORS_HERE): renamed from RE_CARET_ANCHORS_HERE.
73747         (REG_CONTEXT_INVALID_DUP): renamed from RE_CONTEXT_INVALID_DUP.
73748         (REG_NO_SUB): renamed from RE_NO_SUB.
73749         (REG_SYNTAX_EMACS): renamed from RE_SYNTAX_EMACS.
73750         (REG_SYNTAX_AWK): renamed from RE_SYNTAX_AWK.
73751         (REG_SYNTAX_GNU_AWK): renamed from RE_SYNTAX_GNU_AWK.
73752         (REG_SYNTAX_POSIX_AWK): renamed from RE_SYNTAX_POSIX_AWK.
73753         (REG_SYNTAX_GREP): renamed from RE_SYNTAX_GREP.
73754         (REG_SYNTAX_EGREP): renamed from RE_SYNTAX_EGREP.
73755         (REG_SYNTAX_POSIX_EGREP): renamed from RE_SYNTAX_POSIX_EGREP.
73756         (REG_SYNTAX_ED): renamed from RE_SYNTAX_ED.
73757         (REG_SYNTAX_SED): renamed from RE_SYNTAX_SED.
73758         (_REG_SYNTAX_POSIX_COMMON): renamed from _RE_SYNTAX_POSIX_COMMON.
73759         (REG_SYNTAX_POSIX_BASIC): renamed from RE_SYNTAX_POSIX_BASIC.
73760         (REG_SYNTAX_POSIX_MINIMAL_BASIC): renamed from
73761         RE_SYNTAX_POSIX_MINIMAL_BASIC.
73762         (REG_SYNTAX_POSIX_EXTENDED): renamed from RE_SYNTAX_POSIX_EXTENDED.
73763         (REG_SYNTAX_POSIX_MINIMAL_EXTENDED): renamed from
73764         RE_SYNTAX_POSIX_MINIMAL_EXTENDED.
73765         (REG_DUP_MAX): renamed from RE_DUP_MAX.  No need to undef it.
73766         (REG_UNALLOCATED): Renamed from REGS_UNALLOCATED.
73767         (REG_REALLOCATE): Renamed from REGS_REALLOCATE.
73768         (REG_FIXED): Renamed from REGS_FIXED.
73769         (REG_NREGS): Renamed from RE_NREGS.
73770
73771         (REG_ICASE, REG_NEWLINE, REG_NOSUB): Do not depend on the values
73772         of other REG_* macros, since POSIX says the user is allowed to
73773         #undef these macros selectively.
73774
73775         (reg_errcode_t): Update comment stating what other tables need
73776         to be consistent.
73777
73778         Rename the following enum values to obey POSIX requirements.
73779         The old names are still visible as macros.
73780         (_REG_ENOSYS): Renamed from REG_ENOSYS.  Define even if _XOPEN_SOURCE
73781         is not defined, since GNU is supposed to be a superset of POSIX as
73782         much as possible, and since we want reg_errcode_t to be a signed
73783         type for implementation consistency.
73784         (_REG_NOERROR): Renamed from REG_NOERROR.
73785         (_REG_NOMATCH): Renamed from REG_NOMATCH.
73786         (_REG_BADPAT): Renamed from REG_BADPAT.
73787         (_REG_ECOLLATE): Renamed from REG_ECOLLATE.
73788         (_REG_ECTYPE): Renamed from REG_ECTYPE.
73789         (_REG_EESCAPE): Renamed from REG_EESCAPE.
73790         (_REG_ESUBREG): Renamed from REG_ESUBREG.
73791         (_REG_EBRACK): Renamed from REG_EBRACK.
73792         (_REG_EPAREN): Renamed from REG_EPAREN.
73793         (_REG_EBRACE): Renamed from REG_EBRACE.
73794         (_REG_BADBR): Renamed from REG_BADBR.
73795         (_REG_ERANGE): Renamed from REG_ERANGE.
73796         (_REG_ESPACE): Renamed from REG_ESPACE.
73797         (_REG_BADRPT): Renamed from REG_BADRPT.
73798         (_REG_EEND): Renamed from REG_EEND.
73799         (_REG_ESIZE): Renamed from REG_ESIZE.
73800         (_REG_ERPAREN): Renamed from REG_ERPAREN.
73801         (REG_ENOSYS, REG_NOERROR, REG_NOMATCH, REG_BADPAT, REG_ECOLLATE):
73802         (REG_ECTYPE, REG_EESCAPE, REG_ESUBREG, REG_EBRACK, REG_EPAREN):
73803         (REG_EBRACE, REG_BADBR, REG_ERANGE, REG_ESPACE, REG_BADRPT, REG_EEND):
73804         (REG_ESIZE, REG_ERPAREN): Now macros, not enum constants.
73805
73806         (_REG_RE_NAME, _REG_RM_NAME): New macros.
73807         (REG_TRANSLATE_TYPE): Renamed from RE_TRANSLATE_TYPE.  All uses
73808         changed.  But support the old name if the new one is not defined
73809         and if _REGEX_SOURCE.
73810
73811         Change the following member names in struct re_pattern_buffer.
73812         The old names are still supported if !_REGEX_SOURCE.
73813         The new names are always supported, regardless of _REGEX_SOURCE.
73814         (re_buffer): Renamed from buffer.
73815         (re_allocated): Renamed from allocated.
73816         (re_used): Renamed from used.
73817         (re_syntax): Renamed from syntax.
73818         (re_fastmap): Renamed from fastmap.
73819         (re_translate): Renamed from translate.
73820         (re_can_be_null): Renamed from can_be_null.
73821         (re_regs_allocated): Renamed from regs_allocated.
73822         (re_fastmap_accurate): Renamed from fastmap_accurate.
73823         (re_no_sub): Renamed from no_sub.
73824         (re_not_bol): Renamed from not_bol.
73825         (re_not_eol): Renamed from not_eol.
73826         (re_newline_anchor): Renamed from newline_anchor.
73827
73828         Change the following member names in struct re_registers.
73829         The old names are still supported if !_REGEX_SOURCE.
73830         The new names are always supported, regardless of _REGEX_SOURCE.
73831         (rm_num_regs): Renamed from num_regs.
73832         (rm_start): Renamed from start.
73833         (rm_end): Renamed from end.
73834
73835         (re_set_syntax, re_compile_pattern, re_compile_fastmap):
73836         (re_search, re_search_2, re_match, re_match_2, re_set_registers):
73837         Prepend __ to parameter names.
73838
73839         Undo yesterday's changes.
73840
73841 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
73842
73843         * config/srclist.txt: Remove glibc bug 1233 and add 1236, which
73844         supersedes it. Add glibc bugs 1237, 1238, 1240.  Comment out
73845         lib/regex.c.
73846
73847 2005-08-24  Jim Meyering  <jim@meyering.net>
73848
73849         Sync from coreutils.
73850         * m4/fcntl-safer.m4: New file.
73851
73852         * m4/xgetcwd.m4: Use AC_LIBSOURCES and AC_LIBOBJ to indicate source
73853         and object files for this module.
73854
73855 2005-08-24  Jim Meyering  <jim@meyering.net>
73856
73857         Sync from coreutils.
73858         * lib/fcntl--.h, lib/fcntl-safer.h, lib/open-safer.c: New files.
73859
73860 2005-08-24  Jim Meyering  <jim@meyering.net>
73861
73862         * modules/xgetcwd (Makefile.am): Remove `lib_SOURCES += ...' line,
73863         now that xgetcwd.m4 requires xgetcwd.c and xgetcwd.h.
73864
73865 2005-08-24  Jim Meyering  <jim@meyering.net>
73866
73867         * modules/fcntl-safer: New module.
73868         * modules/fts (Depends-on): Add fcntl-safer.
73869         * MODULES.html.sh (File descriptor based Input/Output):
73870         Add fcntl-safer.
73871
73872 2005-08-24  Bruno Haible  <bruno@clisp.org>
73873
73874         Support for unit test modules.
73875         * modules/README: Mention tests modules.
73876         * modules/TEMPLATE-TESTS: New file.
73877         * gnulib-tool: New options --extract-tests-module, --with-tests and
73878         --tests-base (unused for the moment).
73879         (testsbase, inctests): New variables.
73880         (func_all_modules): Exclude TEMPLATE-TESTS and *-tests.
73881         (func_verify_module): Exclude TEMPLATE-TESTS.
73882         (func_verify_nontests_module, func_verify_tests_module): New functions.
73883         (func_get_dependencies): Add implicit dependency for tests modules.
73884         (func_get_tests_module): New function.
73885         (func_modules_transitive_closure): When --with-tests was specified,
73886         include the unit tests as well, unless explicitly avoided.
73887         (func_emit_lib_Makefile_am): Ignore the tests modules here.
73888         (func_emit_tests_Makefile_am): New function.
73889         (func_create_testdir): When --with-tests was specified, emit a
73890         tests/ directory.
73891         * MODULES.html.sh (Future developments): Update.
73892
73893 2005-08-24  Bruno Haible  <bruno@clisp.org>
73894
73895         * modules/tls-tests: New file.
73896         * tests/test-tls.c: New file, from GNU gettext.
73897
73898 2005-08-24  Bruno Haible  <bruno@clisp.org>
73899
73900         * modules/lock-tests: New file.
73901         * tests/test-lock.c: New file, from GNU gettext.
73902
73903 2005-08-24  Bruno Haible  <bruno@clisp.org>
73904
73905         * lib/lock.h: Add multiple inclusion guard.
73906         * lib/tls.h: Add multiple inclusion guard.
73907
73908 2005-08-24  Bruno Haible  <bruno@clisp.org>
73909
73910         * gnulib-tool: Add support for the --aux-dir option to
73911         --create-testdir, --create-megatestdir, --test, --megatest.
73912         (func_create_testdir, func_create_megatestdir): Optionally emit a
73913         AC_CONFIG_AUX_DIR directive.
73914         (create-testdir, create-megatestdir, test, megatest): Provide a
73915         default value for $auxdir.
73916
73917 2005-08-24  Bruno Haible  <bruno@clisp.org>
73918
73919         * gnulib-tool (import): Use compound statement instead of subshell
73920         where possible.
73921
73922 2005-08-24  Bruno Haible  <bruno@clisp.org>
73923
73924         * gnulib-tool (import): Change --aux-dir default to "build-aux".
73925
73926 2005-08-24  Bruno Haible  <bruno@clisp.org>
73927
73928         * gnulib-tool (func_version): Update.
73929
73930 2005-08-24  Bruno Haible  <bruno@clisp.org>
73931
73932         * gnulib-tool (func_import, func_create_testdir,
73933         func_create_megatestdir): Quote all autoconf macro arguments.
73934
73935 2005-08-24  Bruno Haible  <bruno@clisp.org>
73936
73937         * gnulib-tool (func_create_megatestdir): Call autoreconf without the
73938         option --force, because --force causes the aclocal.m4 of each
73939         subdirectory to be newer than the corresponding config.h.in.
73940
73941 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
73942
73943         * m4/regex.m4 (gl_INCLUDED_REGEX): Remove; no longer used.
73944         All contents moved to gl_REGEX.
73945         (gl_REGEX): Don't bother checking whether lib/regex.c exists;
73946         assume that it does.
73947
73948 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
73949
73950         * lib/regex.h (REG_NOSYS)
73951         [!defined _XOPEN_SOURCE && 200112L <= _POSIX_C_SOURCE]:
73952         Define, since POSIX requires it as of 2001.
73953         (_REG_ENOSYS)
73954         [! (defined _XOPEN_SOURCE || 200112L <= _POSIX_C_SOURCE)]:
73955         New private symbol, used to keep the enum signed in all cases.
73956         * lib/regex.h (RE_NO_EMPTY_RANGES): Fix doc bug reported by James
73957         Youngman in
73958         <http://lists.gnu.org/archive/html/bug-gnulib/2005-07/msg00132.html>.
73959
73960         * lib/regex_internal.c (re_string_skip_chars, register_state):
73961         (calc_state_hash):
73962         Remove forward decls; no longer needed now that we use prototypes.
73963         * lib/regexec.c (acquire_init_state_context, check_halt_node_context):
73964         (proceed_next_node, pop_fail_stack, sub_epsilon_src_nodes):
73965         (clean_state_log_if_needed): Likewise.
73966
73967 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
73968
73969         * config/srclist.txt: Add glibc bugs 1231-1233.
73970
73971 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
73972
73973         Fix problems reported by Sam Steingold in
73974         <http://lists.gnu.org/archive/html/bug-gnulib/2005-08/msg00007.html>.
73975         * lib/regexec.c (sift_states_bkref): Fix portability bug: the code
73976         assumed that reg_errcode_t is a signed type, which is not
73977         necessarily true if _XOPEN_SOURCE is not defined.
73978         * lib/regex_internal.c (calc_state_hash): Put 'inline' before type,
73979         since some compilers warn about it otherwise.
73980
73981 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
73982
73983         * lib/regcomp.c (create_initial_state): Remove duplicate decl.
73984         (init_word_char, create_initial_state, duplicate_node_closure):
73985         (fetch_token, peek_token_bracket, build_range_exp):
73986         (build_collating_symbol): Remove forward decls; no longer needed
73987         now that we use prototypes.
73988
73989         * lib/regcomp.c:
73990         (re_compile_pattern, re_set_syntax, re_compile_fastmap):
73991         (re_compile_fastmap_iter, regcomp, regerror, regfree):
73992         (re_compile_internal, init_dfa, init_word_char, free_workarea_compile):
73993         (create_initial_state, optimize_utf8, analyze, postorder, preorder):
73994         (optimize_subexps, lower_subexps, lower_subexp, calc_first, calc_next):
73995         (link_nfa_nodes, duplicate_node_closure, search_duplicated_node):
73996         (duplicate_node, calc_inveclosure, calc_eclosure, calc_eclosure_iter):
73997         (fetch_token, peek_token, peek_token_bracket, parse, parse_reg_exp):
73998         (parse_branch, parse_expression, parse_sub_exp, parse_dup_op):
73999         (build_range_exp, build_collating_symbol, parse_bracket_exp):
74000         (parse_bracket_element, parse_bracket_symbol, build_equiv_class):
74001         (build_charclass, build_charclass_op, fetch_number, create_tree):
74002         (create_token_tree, mark_opt_subexp, duplicate_tree):
74003         Use prototypes rather than old-style definitions.
74004
74005         * lib/regex_internal.c:
74006         (re_string_allocate, re_string_construct, re_string_realloc_buffers):
74007         (re_string_construct_common, build_wcs_buffer, build_wcs_upper_buffer):
74008         (re_string_skip_chars, build_upper_buffer, re_string_translate_buffer):
74009         (re_string_reconstruct, re_string_peek_byte_case):
74010         (re_string_fetch_byte_case, re_string_destruct, re_string_context_at):
74011         (re_node_set_alloc, re_node_set_init_1, re_node_set_init_2):
74012         (re_node_set_init_copy, re_node_set_add_intersect):
74013         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
74014         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
74015         (re_node_set_remove_at, re_dfa_add_node, calc_state_hash):
74016         (re_acquire_state, re_acquire_state_context, register_state):
74017         (create_ci_newstate, create_cd_newstate, free_state):
74018         Likewise.
74019         * lib/regexec.c (regexec, re_match, re_search, re_match_2,
74020         re_search_2):
74021         (re_search_2_stub, re_search_stub, re_copy_regs, re_set_registers):
74022         (re_search_internal, prune_impossible_nodes):
74023         (acquire_init_state_context, check_matching, static):
74024         (check_halt_node_context, check_halt_state_context, proceed_next_node):
74025         (push_fail_stack, pop_fail_stack, set_regs, free_fail_stack_return):
74026         (update_regs, sift_states_backward, build_sifted_states):
74027         (clean_state_log_if_needed, merge_state_array):
74028         (update_cur_sifted_state, add_epsilon_src_nodes):
74029         (sub_epsilon_src_nodes, check_dst_limits, check_dst_limits_calc_pos_1):
74030         (check_dst_limits_calc_pos, check_subexp_limits, sift_states_bkref):
74031         (sift_states_iter_mb, transit_state, merge_state_with_log, static):
74032         (find_recover_state, check_subexp_matching_top, transit_state_mb):
74033         (transit_state_bkref, get_subexp, get_subexp_sub, find_subexp_node):
74034         (check_arrival, check_arrival_add_next_nodes):
74035         (check_arrival_expand_ecl, check_arrival_expand_ecl_sub):
74036         (expand_bkref_cache, build_trtable, group_nodes_into_DFAstates):
74037         (check_node_accept_bytes, check_node_accept, extend_buffers):
74038         (match_ctx_init, match_ctx_clean, match_ctx_free, match_ctx_add_entry):
74039         (search_cur_bkref_entry, match_ctx_add_subtop, match_ctx_add_sublast):
74040         (sift_ctx_init):
74041         Likewise.
74042
74043         * lib/regex_internal.h:
74044         (re_string_allocate, re_string_construct, re_string_reconstruct):
74045         (re_string_realloc_buffers, build_wcs_buffer, build_wcs_upper_buffer):
74046         (build_upper_buffer, re_string_translate_buffer, re_string_destruct):
74047         (re_string_elem_size_at, re_string_char_size_at, re_string_wchar_at):
74048         (re_string_context_at, re_string_peek_byte_case):
74049         (re_string_fetch_byte_case): Declare even if RE_NO_INTERNAL_PROTOTYPES
74050         is defined, since we now use prototypes always.
74051
74052         * lib/regex.h (_RE_ARGS): Remove.  No longer needed, since we assume
74053         C89 or better.  All uses removed.
74054
74055 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
74056
74057         * config/srclist.txt: Add glibc bugs 1220-1227.
74058
74059 2005-08-20  Jim Meyering  <jim@meyering.net>
74060
74061         * lib/regexec.c (regexec, re_search_stub) [!_LIBC]: Omit declaration
74062         of unused local, dfa.
74063
74064 2005-08-20  Bruno Haible  <bruno@clisp.org>
74065
74066         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_GNU_SOURCE.
74067
74068 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
74069
74070         * lib/regex_internal.c (re_string_realloc_buffers, re_node_set_insert):
74071         (re_node_set_insert_last, re_dfa_add_node):
74072         Rename local variables to avoid GCC shadowing warnings.
74073
74074 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
74075
74076         * lib/regex_internal.c (re_acquire_state, re_acquire_state_context)
74077         [defined lint]: Suppress bogus uninitialized-variable warnings.
74078
74079         * lib/regcomp.c (duplicate_node): Return new index, not an error code,
74080         and let the caller return REG_ESPACE if out of space.  This
74081         removes an uninitialied-variable warning with GCC 4.0.1, and also
74082         avoids taking the address of a local variable.  All callers
74083         changed.
74084
74085 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
74086
74087         * config/srclist.txt: Comment out $LIBCSRC/posix/regex_internal.c,
74088         $LIBCSRC/posix/regexec.c.
74089         Add glibc bug 1217 for regcomp.c.
74090
74091 2005-08-19  Jim Meyering  <jim@meyering.net>
74092
74093         * lib/regexec.c (proceed_next_node): Redo local variables to
74094         avoid GCC shadowing warnings.
74095
74096 2005-08-18  Bruno Haible  <bruno@clisp.org>
74097
74098         * lib/strstr.c (strstr): Fix return value in multibyte case.
74099         * lib/strcasestr.c (strcasestr): Likewise.
74100
74101 2005-08-17  Paul Eggert  <eggert@cs.ucla.edu>
74102
74103         * lib/regex.h: Remove useless space-before-tab.  From coreutils.
74104
74105 2005-08-17  Jim Meyering  <jim@meyering.net>
74106
74107         Make the %s format (seconds since the epoch) work for a negative
74108         number and when used with a zero-padded field width, e.g. %015s.
74109
74110         * lib/strftime.c (my_strftime): Move the `do_number_sign_and_padding'
74111         label so that it precedes the code to set `digits'.  Otherwise,
74112         %0Ns wouldn't work.  Before this change, `date -d @-22 +%05s' would
74113         print `00-22'.  Now, it prints `-0022', as it should.
74114
74115 2005-08-17  Bruno Haible  <bruno@clisp.org>
74116
74117         * modules/strstr (Files): Add m4/mbrtowc.m4.
74118         (Depends-on): Add mbuiter.
74119
74120 2005-08-17  Bruno Haible  <bruno@clisp.org>
74121
74122         * modules/strcasestr: New file.
74123         * MODULES.html.sh (String handling, based on ANSI C 89): Add
74124         strcasestr.
74125
74126 2005-08-17  Bruno Haible  <bruno@clisp.org>
74127
74128         * modules/strcase (Depends-on): Add mbuiter. Remove strnlen1, mbchar.
74129
74130 2005-08-17  Bruno Haible  <bruno@clisp.org>
74131
74132         * modules/mbuiter: New file.
74133         * MODULES.html.sh (Extended multibyte and wide character utilities):
74134         Add mbuiter.
74135
74136 2005-08-17  Bruno Haible  <bruno@clisp.org>
74137
74138         * m4/strstr.m4 (gl_FUNC_STRSTR): Use the replacement function always.
74139         (gl_PREREQ_STRSTR): Use gl_FUNC_MBRTOWC.
74140
74141 2005-08-17  Bruno Haible  <bruno@clisp.org>
74142
74143         * m4/strcasestr.m4: New file.
74144
74145 2005-08-17  Bruno Haible  <bruno@clisp.org>
74146
74147         * lib/strstr.h: Ignore HAVE_STRSTR, always declare the gnulib function.
74148         * lib/strstr.c: Completely rewritten, with multibyte locale support.
74149
74150 2005-08-17  Bruno Haible  <bruno@clisp.org>
74151
74152         * lib/strcasestr.h: New file.
74153         * lib/strcasestr.c: New file.
74154
74155 2005-08-17  Bruno Haible  <bruno@clisp.org>
74156
74157         * lib/strcasecmp.c: Use mbuiter.h.
74158
74159 2005-08-17  Bruno Haible  <bruno@clisp.org>
74160
74161         * lib/mbuiter.h: New file.
74162
74163 2005-08-16  Paul Eggert  <eggert@cs.ucla.edu>
74164
74165         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Do not override the results
74166         of gl_GETOPT_SUBSTITUTE.  That way, if both gl_GETOPT_SUBSTITUTE
74167         and gl_GETOPT are both invoked via different paths (as happens
74168         with GNU tar CVS because it uses both argp and getopt), the former
74169         wins.
74170
74171 2005-08-16  Bruno Haible  <bruno@clisp.org>
74172
74173         * modules/tls: New file.
74174         * MODULES.html.sh (Multithreading): Add tls.
74175
74176 2005-08-16  Bruno Haible  <bruno@clisp.org>
74177
74178         * modules/strnlen1: New file.
74179         * MODULES.html.sh (String handling): Add strnlen1.
74180
74181 2005-08-16  Bruno Haible  <bruno@clisp.org>
74182
74183         * modules/strcase (Files): Add m4/mbrtowc.m4.
74184         (Depends-on): Add strnlen1, mbchar.
74185
74186 2005-08-16  Bruno Haible  <bruno@clisp.org>
74187
74188         * modules/mbiter: New file.
74189         * MODULES.html.sh (Extended multibyte and wide character utilities):
74190         Add mbiter.
74191
74192 2005-08-16  Bruno Haible  <bruno@clisp.org>
74193
74194         * modules/mbfile: New file.
74195         * MODULES.html.sh (Extended multibyte and wide character utilities):
74196         Add mbfile.
74197
74198 2005-08-16  Bruno Haible  <bruno@clisp.org>
74199
74200         * modules/mbchar: New file.
74201         * MODULES.html.sh (Extended multibyte and wide character utilities):
74202         New section.
74203
74204 2005-08-16  Bruno Haible  <bruno@clisp.org>
74205
74206         * m4/tls.m4: New file, from GNU gettext.
74207
74208 2005-08-16  Bruno Haible  <bruno@clisp.org>
74209
74210         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Use the replacement function
74211         always.
74212         (gl_PREREQ_STRCASECMP): Use gl_FUNC_MBRTOWC.
74213
74214 2005-08-16  Bruno Haible  <bruno@clisp.org>
74215
74216         * m4/mbiter.m4: New file.
74217
74218 2005-08-16  Bruno Haible  <bruno@clisp.org>
74219
74220         * m4/mbfile.m4: New file.
74221
74222 2005-08-16  Bruno Haible  <bruno@clisp.org>
74223
74224         * m4/mbchar.m4: New file.
74225
74226 2005-08-16  Bruno Haible  <bruno@clisp.org>
74227
74228         * lib/tls.h: New file, from GNU gettext.
74229         * lib/tls.c: New file, from GNU gettext.
74230
74231 2005-08-16  Bruno Haible  <bruno@clisp.org>
74232
74233         * lib/strnlen1.h: New file.
74234         * lib/strnlen1.c: New file.
74235
74236 2005-08-16  Bruno Haible  <bruno@clisp.org>
74237
74238         * lib/strcasecmp.c (struct mbiter_multi): Remove at_end field.
74239         (mbi_init): Update.
74240         (mbi_avail, mbi_advance): Let the iteration end before the terminating
74241         NUL byte, not after it.
74242
74243 2005-08-16  Bruno Haible  <bruno@clisp.org>
74244
74245         * lib/strcase.h (strcasecmp): Add note in comments.
74246         * lib/strncasecmp.c: Use code from strcasecmp.c.
74247         * lib/strcasecmp.c: Use mbchar module. Define private mbiter variant.
74248         (strcasecmp): Work correctly in multibyte locales.
74249
74250 2005-08-16  Bruno Haible  <bruno@clisp.org>
74251
74252         * lib/mbiter.h: New file.
74253
74254 2005-08-16  Bruno Haible  <bruno@clisp.org>
74255
74256         * lib/mbfile.h: New file.
74257
74258 2005-08-16  Bruno Haible  <bruno@clisp.org>
74259
74260         * lib/mbchar.h: New file.
74261         * lib/mbchar.c: New file.
74262
74263 2005-08-16  Bruno Haible  <bruno@clisp.org>
74264
74265         * lib/mbchar.h (mb_cmp, mb_casecmp): Order the invalid characters after
74266         the valid ones. Makes the comparison operations transitive:
74267         cmp (a, b) < 0 && cmp (b, c) < 0 ==> cmp (a, c) < 0.
74268         * lib/strcasecmp.c (strcasecmp): Use mb_casecmp.
74269
74270 2005-08-15  Simon Josefsson  <jas@extundo.com>
74271
74272         * modules/ssize_t (License): Change to 'unlimited'.
74273
74274         * gnulib-tool (sed_extract_prog): Recognize 'unlimited' license.
74275
74276 2005-08-15  Paul Eggert  <eggert@cs.ucla.edu>
74277
74278         * config/srclist.txt: Comment out $LIBCSRC/posix/regex.h.
74279         Add comments for each pending glibc patch.
74280
74281 2005-08-15  Bruno Haible  <bruno@clisp.org>
74282
74283         * lib/regex.h (__restrict_arr): Don't define to __restrict if
74284         __cplusplus is defined.
74285
74286 2005-08-14  Jim Meyering  <jim@meyering.net>
74287
74288         Sync from coreutils.
74289
74290         * lib/fts-cycle.c (setup_dir, enter_dir, leave_dir, free_dir):
74291         Use the hash-table-based cycle-detection code not just when
74292         FTS_TIGHT_CYCLE_CHECK if specified, but also with FTS_LOGICAL.
74293         Reported by James Youngman in
74294         <http://lists.gnu.org/archive/html/bug-gnulib/2005-08/msg00011.html>.
74295         * lib/fts_.h: Mention that with FTS_LOGICAL, we use
74296         FTS_TIGHT_CYCLE_CHECK.
74297         * lib/fts.c (fts_cross_check) [FTS_DEBUG]:
74298         s/active_dir_ht/fts_cycle.ht/. This lets us compile with -DFTS_DEBUG,
74299         once again.
74300         * lib/fts.c [! _LIBC]: Include "lstat.h" rather than rolling our own.
74301         * lib/fts.c (fd_safer): Remove decl.
74302         Include fcntl--.h rather than unistd-safer.h
74303         (fts_safe_changedir): Don't call fd_safer; no longer needed
74304         now that we include fcntl--.h.
74305
74306 2005-08-12  Simon Josefsson  <jas@extundo.com>
74307
74308         * modules/getndelim2: Use ssize_t module.
74309         * modules/getnline: Likewise.
74310         * modules/safe-read: Likewise.
74311         * modules/xreadlink: Likewise.
74312
74313         * modules/ssize_t: New file.
74314
74315 2005-08-12  Simon Josefsson  <jas@extundo.com>
74316
74317         * m4/readline.m4: Look for termcap, curses or ncurses if required.
74318
74319 2005-08-12  Simon Josefsson  <jas@extundo.com>
74320
74321         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
74322         ssize_t.
74323
74324 2005-08-12  Simon Josefsson  <jas@extundo.com>
74325
74326         * MODULES.html.sh (Extra functions based on ANSI C 89: Misc): Add
74327         readline, getdelim and check_version.
74328         (Support for systems lacking ISO C 99: Sizes of integer types):
74329         Add size_max.
74330
74331 2005-08-12  Bruno Haible  <bruno@clisp.org>
74332
74333         * m4/readline.m4 (gl_FUNC_READLINE): Look for ncurses first.
74334
74335 2005-08-11  Simon Josefsson  <jas@extundo.com>
74336
74337         * modules/readline: New file.
74338
74339         * modules/strnlen (Files): Add strnlen.h.
74340
74341 2005-08-11  Simon Josefsson  <jas@extundo.com>
74342
74343         * m4/readline.m4: New file.
74344
74345 2005-08-11  Simon Josefsson  <jas@extundo.com>
74346
74347         * lib/readline.h, readline.c: New file.
74348
74349 2005-08-11  Simon Josefsson  <jas@extundo.com>
74350
74351         * doc/gnulib.texi (Initial import, Finishing touches): Mention
74352         gl_AVOID.
74353
74354 2005-08-11  Bruno Haible  <bruno@clisp.org>
74355
74356         * lib/strnlen.h (strnlen): Change parameter name to match comment.
74357
74358 2005-08-10  Stepan Kasal  <kasal@ucw.cz>
74359
74360         * m4/onceonly_2_57.m4: Really require Autoconf 2.57.
74361
74362 2005-08-10  Simon Josefsson  <jas@extundo.com>
74363
74364         * tests/test-iconvme.c: New file.
74365
74366 2005-08-10  Simon Josefsson  <jas@extundo.com>
74367
74368         * m4/strnlen.m4: New file.
74369
74370         * m4/strndup.m4: Don't check for strnlen declaration, done in
74371         strnlen.m4.
74372
74373 2005-08-10  Simon Josefsson  <jas@extundo.com>
74374
74375         * lib/strndup.c: Use strnlen.h.
74376
74377         * lib/strnlen.h: New file.
74378
74379 2005-08-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
74380
74381         * README: Typos.
74382
74383 2005-08-02  Simon Josefsson  <jas@extundo.com>
74384
74385         * modules/readline: New file.
74386
74387 2005-08-02  Simon Josefsson  <jas@extundo.com>
74388
74389         * modules/getdelim: New file.
74390
74391         * modules/getline: Rewrite, don't use getndelim2.
74392
74393 2005-08-02  Simon Josefsson  <jas@extundo.com>
74394
74395         * m4/getline.m4: Separate out getdelim stuff into separate module.
74396
74397         * m4/getdelim.m4: New file.
74398
74399 2005-08-02  Simon Josefsson  <jas@extundo.com>
74400
74401         * lib/getline.h, getline.c: Rewrite.
74402
74403         * lib/getdelim.h, lib/getdelim.c: New files, ported from glibc.
74404
74405 2005-07-31  Bruno Haible  <bruno@clisp.org>
74406
74407         * lib/lock.h (gl_lock_initializer): New macro.
74408         (gl_lock_define_initialized): Use it.
74409         (gl_rwlock_initializer): New macro.
74410         (gl_rwlock_define_initialized): Use it.
74411         (gl_recursive_lock_initializer): New macro.
74412         (gl_recursive_lock_define_initialized): Use it.
74413
74414 2005-07-30  Karl Berry  <karl@gnu.org>
74415
74416         * doc/gnulib.texi (Initial import): mention -I$(top_builddir)/lib.
74417         Report from Ben Pfaff, regarding getopt.
74418
74419 2005-07-26  Paul Eggert  <eggert@cs.ucla.edu>
74420
74421         Add support to getopt for Emacs, which doesn't use LIBOBJS in the
74422         normal way.
74423         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE_HEADER): New macro.
74424         (gl_GETOPT_SUBSTITUTE): Use it.  Invoke gl_PREREQ_GETOPT.
74425         (gl_GETOPT_IFELSE, gl_GETOPT_CHECK_HEADERS): New macros.
74426         (gl_GETOPT): Use the new macros.  Most of the implementation
74427         is moved to the new macros.  This is for programs like Emacs
74428         that don't want all the functionality of gl_GETOPT.
74429
74430 2005-07-26  Bruno Haible  <bruno@clisp.org>
74431
74432         * m4/lock.m4: Update from GNU gettext.
74433
74434 2005-07-26  Bruno Haible  <bruno@clisp.org>
74435
74436         * lib/lock.h: Update from GNU gettext.
74437         * lib/lock.c: Update from GNU gettext.
74438
74439 2005-07-25  Paul Eggert  <eggert@cs.ucla.edu>
74440
74441         * m4/regex.m4 (gl_INCLUDED_REGEX): Use AC_RUN_IFELSE instead of the
74442         obsolescent AC_TRY_RUN.  Include the default includes files, for
74443         'exit'.
74444
74445 2005-07-24  Bruno Haible  <bruno@clisp.org>
74446
74447         * modules/visibility: New file.
74448         * MODULES.html.sh (Misc): Add visibility.
74449
74450 2005-07-24  Bruno Haible  <bruno@clisp.org>
74451
74452         * m4/visibility.m4: New file.
74453
74454 2005-07-24  Bruno Haible  <bruno@clisp.org>
74455
74456         * doc/visibility.texi: New file.
74457
74458 2005-07-22  Bruno Haible  <bruno@clisp.org>
74459
74460         * modules/alloca-opt (Makefile.am): Remove explicit dependency on
74461         $(ALLOCA_H), redundant through BUILT_SOURCES.
74462         * modules/argz (Makefile.am): Remove explicit dependency on $(ARGZ_H),
74463         redundant through BUILT_SOURCES.
74464         * modules/byteswap (Makefile.am): Remove explicit dependency on
74465         $(BYTESWAP_H), redundant through BUILT_SOURCES.
74466         * modules/fnmatch (Makefile.am): Remove explicit dependency on
74467         $(FNMATCH_H), redundant through BUILT_SOURCES.
74468         * modules/getopt (Makefile.am): Remove explicit dependency on
74469         $(GETOPT_H), redundant through BUILT_SOURCES.
74470         * modules/glob (Makefile.am): Remove explicit dependency on $(GLOB_H),
74471         redundant through BUILT_SOURCES.
74472         * modules/poll (Makefile.am): Remove explicit dependency on $(POLL_H),
74473         redundant through BUILT_SOURCES.
74474         * modules/stdbool (Makefile.am): Remove explicit dependency on
74475         $(STDBOOL_H), redundant through BUILT_SOURCES.
74476         * modules/stdint (Makefile.am): Remove explicit dependency on
74477         $(STDINT_H), redundant through BUILT_SOURCES.
74478         * modules/sysexits (Makefile.am): Add $(SYSEXITS_H) to BUILT_SOURCES.
74479         Remove explicit dependency on $(SYSEXITS_H).
74480         Reported by Alexandre Duret-Lutz <adl@src.lip6.fr>.
74481
74482 2005-07-18  Simon Josefsson  <jas@extundo.com>
74483
74484         * lib/check-version.c (check_version): Accept identical versions too.
74485
74486 2005-07-18  Bruno Haible  <bruno@clisp.org>
74487
74488         * modules/lock: New file.
74489         * MODULES.html.sh (Multithreading): New section.
74490
74491 2005-07-18  Bruno Haible  <bruno@clisp.org>
74492
74493         * m4/lock.m4: New file, from GNU gettext.
74494
74495 2005-07-18  Bruno Haible  <bruno@clisp.org>
74496
74497         * lib/lock.h: New file, from GNU gettext.
74498         * lib/lock.c: New file, from GNU gettext.
74499
74500 2005-07-18  Bruno Haible  <bruno@clisp.org>
74501
74502         * lib/lock.h (gl_once_t): New type.
74503         (gl_once_define, gl_once): New macros.
74504         * lib/lock.c (fresh_once): New variable.
74505         (glthread_once, glthread_once_call, glthread_once_singlethreaded): New
74506         functions.
74507
74508 2005-07-16  Simon Josefsson  <jas@extundo.com>
74509
74510         * doc/gnulib.texi (Library version handling): Add ELF symbol collision
74511         workaround, suggested by Bruno.
74512
74513 2005-07-15  Paul Eggert  <eggert@cs.ucla.edu>
74514
74515         * modules/xalloc (Depends-on): Add xalloc-die.
74516         * modules/xvasprintf (Depends-on): Add xalloc-die.
74517
74518 2005-07-15  Paul Eggert  <eggert@cs.ucla.edu>
74519
74520         * lib/quotearg.c: Add translator comment suggested by Bruno Haible,
74521         with a minor change.
74522
74523 2005-07-15  Bruno Haible  <bruno@clisp.org>
74524
74525         * m4/poll.m4 (gl_FUNC_POLL): Check against MacOS X 10.4 poll() bug.
74526         When using lib/poll.c, define poll as rpl_poll.
74527
74528 2005-07-14  Paul Eggert  <eggert@cs.ucla.edu>
74529
74530         * modules/argp (Depends-on): Remove unlocked-io.
74531
74532 2005-07-14  Derek Price  <derek@ximbiot.com>
74533
74534         * m4/glob.m4 (gl_GLOB): Cache glob interface check result.  Add check
74535         for glob symlink bug.
74536
74537 2005-07-14  Bruno Haible  <bruno@clisp.org>
74538
74539         * m4/argp.m4 (gl_ARGP): Remove invocation of gl_FUNC_GLIBC_UNLOCKED_IO.
74540         Instead, test for *_unlocked function declarations directly.
74541
74542 2005-07-11  Simon Josefsson  <jas@extundo.com>
74543
74544         * modules/size_max: New file.
74545
74546         * modules/xsize: Depend on size_max module for size_max.m4.
74547
74548 2005-07-11  Simon Josefsson  <jas@extundo.com>
74549
74550         * lib/size_max.h: New file.
74551
74552 2005-07-11  Paul Eggert  <eggert@cs.ucla.edu>
74553
74554         * lib/version-etc-fsf.c (version_etc_copyright): Parameterize the
74555         copyright symbol and the year.
74556         * lib/version-etc.c (COPYRIGHT_YEAR): New constant.
74557         (version_etc_va): Use parameterized copyright notice.
74558         Reword to conform to the current GNU coding standards.
74559
74560 2005-07-11  Karl Berry  <karl@gnu.org>
74561
74562         * doc/gnulib.texi (Quoting): new node.
74563         (Initial import): more info, from Patrice.
74564
74565 2005-07-11  Bruno Haible  <bruno@clisp.org>
74566
74567         * gnulib-tool (func_usage): Document option --avoid.
74568         (Command line options): Handle --avoid.
74569         (func_acceptable): New function.
74570         (func_modules_transitive_closure): Use it.
74571
74572 2005-07-11  Bruno Haible  <bruno@clisp.org>
74573
74574         * MODULES.html.sh: Use shortcut URLs to the www.opengroup.org site.
74575         Reported by Jim Meyering.
74576
74577 2005-07-10  Bruno Haible  <bruno@clisp.org>
74578
74579         * m4/size_max.m4 (gl_SIZE_MAX): Cast ~(size_t)0 back to size_t.
74580         Needed when size_t is smaller than 'unsigned int'.
74581         Reported by Paul Eggert.
74582
74583 2005-07-09  Sergey Poznyakoff  <gray@gnu.org.ua>
74584
74585         * modules/argp (Depends-on): Add unlocked-io
74586
74587 2005-07-09  Sergey Poznyakoff  <gray@gnu.org.ua>
74588
74589         * lib/argp-namefrob.h: Include unlocked-io.h. Removed unnecessary
74590         block of defines.
74591
74592 2005-07-08  Paul Eggert  <eggert@cs.ucla.edu>
74593
74594         * config/srclist.txt: Comment out regcomp.c, since we have a porting
74595         fix now.
74596
74597 2005-07-08  Eric Blake  <ebb9@byu.net>  (tiny change)
74598         and Paul Eggert  <eggert@cs.ucla.edu>
74599
74600         * lib/regcomp.c (init_dfa, build_range_exp): Store __btowc value
74601         in wint_t, not wchar_t.  Remove now-unnecessary cast.
74602
74603 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
74604
74605         * modules/regex (Files): Add lib/regex_internal.c,
74606         lib/regex_internal.h, lib/regexec.c, lib/regcomp.c, m4/codeset.m4.
74607         (Depends-on): Add extensions.
74608         (Makefile.am): Remove lib_SOURCES; now done by m4 code.
74609
74610 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
74611
74612         * m4/backupfile.m4 (gl_BACKUPFILE): Use AC_CHECK_FUNCS_ONCE on
74613         pathconf.
74614         * m4/same.m4 (gl_SAME): Likewise.
74615         Require AC_SYS_LONG_FILE_NAMES; bug reported by Gerrit P. Haase.
74616
74617         * m4/regex.m4: Adjust to new libc regex implementation.
74618         (gl_INCLUDED_REGEX): Add AC_LIBSOURCES for
74619         all the .c and .h parts of (the new) regex.
74620         Quote the m4 stuff better.
74621         Check for RE_ICASE bug of old gnulib.
74622         Check for REG_STARTEND of recent libc.
74623         Rename local variables from jm_* to gl_*.
74624         Quote operand of "test -f".
74625         Say "recent enough" version of libc, not "version 2".
74626         (gl_PREREQ_REGEX): Remove AC_FUNC_ALLOCA, since alloca is a
74627         prerequisite module.  Remove AC_HEADER_STDC; no longer needed.
74628         Check for locale.h, isblank, mbrtowc, wcrtomb, wcscoll.
74629         Remove check for btowc, isascii.
74630         Require AM_LANGINFO_CODESET.
74631
74632 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
74633
74634         * lib/regex.c, regex.h: Sync from libc.
74635         * lib/regcomp.c, lib/regexec_internal.c, lib/regex_internal.h:
74636         * lib/regexec.c:
74637         New files, synced from libc, except that regex_internal.h
74638         currently has a small porting fix.
74639
74640 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
74641
74642         * config/srclist.txt: Add regcomp.c, regex.c, regex.h,
74643         regex_internal.c, regexec.c.
74644         Add regex_internal.h too, but as a comment, since the libc version
74645         is currently broken in gnulib mode.
74646
74647 2005-07-06  Paul Eggert  <eggert@cs.ucla.edu>
74648
74649         Support programs like Emacs that use gnulib but not gettext.
74650         * MODULES.html.sh (Internationalization functions): Add gettext-h.
74651         * modules/gettext-h: New file.
74652         * modules/gettext (Files): Remove lib/gettext.h.
74653         (Depends-on): Add gettext-h.
74654         (Makefile.am): Remove lib_SOURCES.
74655         * modules/argmatch, modules/c-stack, modules/closeout:
74656         * modules/copy-file, modules/csharpcomp, modules/csharpexec:
74657         * modules/execute, modules/file-type, modules/getaddrinfo:
74658         * modules/getopt, modules/human, modules/javacomp:
74659         * modules/javaexec, modules/mkdir-p, modules/obstack:
74660         * modules/openat, modules/pagealign_alloc, modules/pipe:
74661         * modules/quotearg, modules/regex, modules/rpmatch:
74662         * modules/unicodeio, modules/userspec, modules/version-etc:
74663         * modules/wait-process, modules/xalloc-die, modules/xmemcoll:
74664         * modules/xsetenv:
74665         Depend on gettext-h, not gettext.
74666
74667 2005-07-05  Paul Eggert  <eggert@cs.ucla.edu>
74668
74669         * gnulib-tool (func_import): Add support for 'public domain' license.
74670         * modules/alloca, modules/atexit, modules/memmove:
74671         Now public domain, not GPL.
74672         * modules/dup2, modules/getpagesize, modules/malloc, modules/memset:
74673         * modules/realloc, modules/strerror, modules/strtod:
74674         Now LGPL, not GPL.
74675
74676 2005-07-05  Bruno Haible  <bruno@clisp.org>
74677
74678         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): Upgrade to version from current
74679         autoconf CVS. Needed for mingw.
74680
74681 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
74682
74683         Remove the dependency of the strftime module on the tzset module.
74684         * modules/strftime (Depends-on): Remove dependency on tzset.
74685
74686 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
74687
74688         Remove the dependency of the strftime module on the tzset module.
74689         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't require
74690         gl_FUNC_TZSET_CLOBBER.
74691
74692 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
74693
74694         Remove the dependency of the strftime module on the tzset module.
74695         * lib/strftime.c (my_strftime)
74696         [! defined _LIBC && ! HAVE_RUN_TZSET_TEST]:
74697         Copy the input structure, to work around some of the bug with
74698         Solaris 2.5.1 and Solaris 2.6.  If you still care about these old
74699         Solaris releases, you should also use the tzset module, but we won't
74700         require it as a dependency any more since we don't want LGPLed code
74701         to depend on GPLed code.
74702
74703 2005-07-02  Jim Meyering  <jim@meyering.net>
74704
74705         * m4/chown.m4, cloexec.m4, dup2.m4, fsusage.m4:
74706         * m4/getcwd-path-max.m4, getcwd.m4, mkstemp.m4, mountlist.m4:
74707         * m4/pagealign_alloc.m4, save-cwd.m4, unistd-safer.m4:
74708         Don't check for fcntl.h, and don't test for HAVE_FCNTL_H.
74709
74710 2005-07-02  Jim Meyering  <jim@meyering.net>
74711
74712         * lib/backupfile.c (backup_args): Change a `0' to NULL.
74713
74714 2005-07-01  Paul Eggert  <eggert@cs.ucla.edu>
74715
74716         * lib/xnanosleep.c: Include timespec.h, since OpenBSD 3.4 <time.h>
74717         declares only 'struct timespec;' (!).
74718
74719 2005-07-01  Jim Meyering  <jim@meyering.net>
74720
74721         * lib/chown.c, cloexec.c, dup-safer.c, dup2.c, fsusage.c, getcwd.c:
74722         * lib/getloadavg.c, mountlist.c, openat.h, pagealign_alloc.c:
74723         * lib/save-cwd.c, tempname.c:
74724         Assume HAVE_FCNTL_H (i.e., include <fcntl.h> unconditionally,
74725         and don't include <sys/file.h>).
74726
74727 2005-06-29  Jim Meyering  <jim@meyering.net>
74728
74729         * lib/mkdir-p.c (make_dir_parents): Don't apply sizeof to a hard-coded
74730         type name.  Use the variable name instead.
74731         * lib/idcache.c (getuser, getuidbyname, getgroup, getgidbyname):
74732         Likewise.
74733
74734 2005-06-28  Simon Josefsson  <jas@extundo.com>
74735
74736         * modules/check-version (Files): Add check-version.m4.
74737
74738 2005-06-28  Simon Josefsson  <jas@extundo.com>
74739
74740         * m4/check-version.m4: New file, suggested by Jim Meyering
74741         <jim@meyering.net>.
74742
74743 2005-06-28  Simon Josefsson  <jas@extundo.com>
74744
74745         * lib/check-version.h, lib/check-version.c: New files.
74746
74747 2005-06-28  Simon Josefsson  <jas@extundo.com>
74748
74749         * lib/base64.c (base64_encode): Indent.  Rename 'b64' to avoid
74750         collision with global variable.  Better indentation.  Don't
74751         increment buffer pointer beyond buffer end.  Based on comments
74752         from Paul Eggert <eggert@cs.ucla.edu>.
74753
74754         * lib/base64.h: Indent.
74755
74756 2005-06-28  Simon Josefsson  <jas@extundo.com>
74757
74758         * doc/gnulib.texi (Library version handling): New section.
74759
74760 2005-06-28  Jim Meyering  <jim@meyering.net>
74761
74762         * check-module (find_included_lib_files): Hard-code another
74763         pair of exceptions: fts.c includes fts-cycle.c and unistd-safer.h
74764         but modules/fts-lgpl (correctly) does not list those files.
74765
74766         * modules/canonicalize (Files): Add lib/pathmax.h.
74767
74768 2005-06-25  Simon Josefsson  <jas@extundo.com>
74769
74770         * modules/check-version: New file.
74771
74772 2005-06-24  Paul Eggert  <eggert@cs.ucla.edu>
74773
74774         * lib/canon-host.c (canon-host): Append trailing "," to 0 in
74775         initializer of struct addrinfo, as an indication that we don't
74776         care how many members the structure has.
74777
74778 2005-06-24  Derek Price  <derek@ximbiot.com>
74779         and Bruno Haible  <bruno@clisp.org>
74780
74781         Remove stat module & update lstat.
74782         * m4/lstat.m4 (gl_FUNC_LSTAT): Drop AC_FUNC_LSTAT in favor of
74783         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
74784         * m4/stat.m4: Remove this file.
74785
74786 2005-06-24  Derek Price  <derek@ximbiot.com>
74787         and Bruno Haible  <bruno@clisp.org>
74788
74789         Remove stat module & update lstat.
74790         * lib/stat.c: Remove this file...
74791         (slash_aware_lstat): ...moving this content and its support...
74792         * lib/lstat.c (rpl_lstat): ...into here.
74793         * lib/lstat.h: New file.
74794
74795 2005-06-24  Derek Price  <derek@ximbiot.com>
74796         and Bruno Haible  <bruno@clisp.org>
74797
74798         Remove stat module & update lstat.
74799         * config/srclist.txt (libc sources): Remove stat.
74800
74801 2005-06-24  Derek Price  <derek@ximbiot.com>
74802         and Bruno Haible  <bruno@clisp.org>
74803
74804         Remove stat module & update lstat.
74805         * MODULES.html.sh (stat): Remove.
74806         * MODULES.html: Regenerated.
74807         * modules/lstat (Description): Correct function name.
74808         (Files): Add "lstat.h".
74809         (Depends-on): Remove stat, add xalloc, stat-macros.
74810         * modules/stat: Remove this file.
74811         (Include): Add "lstat.h", remove <sys/stat.h>.
74812
74813 2005-06-23  Paul Eggert  <eggert@cs.ucla.edu>
74814
74815         * lib/mktime.c: Include <string.h> even if !DEBUG.  (From glibc.)
74816         (ranged_convert): Don't save conversion in a temporary struct.
74817         This causes a warning with GCC 4.0.0, and anyway in the typical
74818         case it's not worth the extra 100 bytes or so of code.
74819         (ranged_convert, __mktime_internal): When calling a function via a
74820         pointer P, use P () rather than (*P) (), as we now assume C89 or
74821         better.
74822
74823 2005-06-22  Paul Eggert  <eggert@cs.ucla.edu>
74824
74825         * lib/readutmp.c (desirable_utmp_entry): Fix bug where "who -b" and
74826         "who -r" failed to give output.  Problem reported by Tim Waugh.
74827
74828         * lib/xmalloc.c (HAVE_GNU_CALLOC): New constant.
74829         (xcalloc): Use it to avoid needless tests.
74830         Problem reported by Jim Meyering.
74831
74832 2005-06-20  Derek Price  <derek@ximbiot.com>
74833
74834         * m4/bison.m4: Note that precious decls of YACC & YFLAGS will be
74835         unnecessary for Autoconfs > 2.59c.
74836
74837 2005-06-16  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
74838
74839         * lib/argp.h (__option_is_short): Check upper limit of
74840         __key. Isprint() requires its argument to have the value
74841         of an unsigned char or EOF.
74842
74843 2005-06-16  Jim Meyering  <jim@meyering.net>
74844
74845         * lib/calloc.c (rpl_calloc): Allocate a 1-byte buffer (not 1xS or Nx1)
74846         when either N or S is zero.
74847
74848 2005-06-16  Derek Price  <derek@ximbiot.com>
74849
74850         * m4/bison.m4: Declare YACC & YFLAGS precious.
74851
74852 2005-06-10  Paul Eggert  <eggert@cs.ucla.edu>
74853
74854         * lib/fnmatch.c (fnmatch): If there is an encoding error in a
74855         multibyte string or pattern, fall back on unibyte matching.
74856         Problem reported by James Youngman.
74857
74858 2005-06-08  Bruno Haible  <bruno@clisp.org>
74859
74860         * modules/csharpcomp: New file.
74861         * MODULES.html.sh (C#): Add csharpcomp.
74862
74863 2005-06-08  Bruno Haible  <bruno@clisp.org>
74864
74865         * m4/csharpcomp.m4: New file, from GNU gettext.
74866
74867 2005-06-08  Bruno Haible  <bruno@clisp.org>
74868
74869         * lib/csharpcomp.h: New file, from GNU gettext.
74870         * lib/csharpcomp.c: New file, from GNU gettext.
74871         * lib/csharpcomp.sh.in: New file, from GNU gettext.
74872
74873 2005-06-08  Bruno Haible  <bruno@clisp.org>
74874
74875         * lib/binary-io.h (fileno): Undefine before defining it. Avoids a gcc
74876         warning on mingw.
74877
74878 2005-06-07  Derek Price  <derek@ximbiot.com>
74879
74880         Sync from CVS.
74881         * lib/glob_.h: Indent nested #ifdef.
74882
74883 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
74884
74885         Sync from coreutils.
74886         Use "file name" when talking about file names, instead of "filename"
74887         or "path", as per the GNU coding standards.
74888         * lib/mkdir-p.c: Renamed from makepath.c.
74889         (make_dir_parents): Renamed from make_path.  All callers changed.
74890         * lib/mkdir-p.h: Likewise.  All includers changed.
74891         * lib/filenamecat.c: Renamed from path-concat.c.
74892         (file_name_concat): Renamed from path_concat.  All callers changed.
74893         [TEST_FILE_NAME_CONCAT]: Renamed from TEST_PATH_CONCAT.
74894         * lib/filenamecat.h: Likewise.  All includers changed.
74895         * lib/acl.c: Don't use "path" or "filename" to mean "file name"
74896         in comments or local variable names.
74897         * lib/basename.c: Likewise.
74898         * lib/canonicalize.c, canonicalize.h: Likewise.
74899         * lib/dirname.c, dirname.h: Likewise.
74900         * lib/euidaccess.c: Likewise.
74901         * lib/exclude.c: Likewise
74902         * lib/fnmatch_.h, fnmatch_loop.c: Likewise.
74903         * lib/fsusage.c, fsuage.h: Likewise.
74904         * lib/fts.c, fts_.h: Likewise.
74905         * lib/getcwd.c: Likewise.
74906         * lib/getloadavg.c: Likewise.
74907         * lib/mkstemp.c: Likewise.
74908         * lib/mountlist.c, mountlist.h: Likewise.
74909         * lib/openat.c, openat.h: Likewise.
74910         * lib/readlink-stub.c: Likewise.
74911         * lib/readutmp.c, readutmp.h: Likewise.
74912         * lib/rename.c: Likewise.
74913         * lib/rmdir.c: Likewise.
74914         * lib/same.c: Likewise.
74915         * lib/savedir.c: Likewise.
74916         * lib/stripslash.c: Likewise.
74917         * lib/tempname.c: Likewise.
74918         * lib/xreadlink.c: Likewise.
74919         * lib/exclude.c (excluded_file_name): Renamed from excluded_filename.
74920         All uses changed.
74921         * lib/exclude.h: Likewise.
74922
74923         * lib/euidaccess.c (getuid, getgid, getuid, getegid)
74924         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
74925         * lib/idcache.c (getpwuid, getpwnam, getgrgid, getgrnam)
74926         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
74927         * lib/pathmax.h: Include <limits.h> unconditionally, since other
74928         files have been getting away with it for years (MORE/BSD 4.3
74929         is extinct now).
74930         * lib/userspec.c (getpwnam, getgrnam, getgrgid)
74931         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
74932
74933         * lib/pathmax.h (_POSIX_PATH_MAX) [!defined _POSIX_PATH_MAX]:
74934         Define to 256, not 255, as per modern POSIX.
74935
74936 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
74937
74938         Sync from coreutils.
74939         Use "file name" when talking about file names, instead of "filename"
74940         or "path", as per the GNU coding standards.
74941         * MODULES.html.sh: mkdir-p renamed from makepath.
74942         filenamecat renamed from path-concat.
74943         * modules/filenamecat: Renamed from modules/path-concat.
74944         (Files): filenamecat.h and filenamecat.c renamed from
74945         path-concat.h and path-concat.c.
74946         (configure.ac): gl_FILE_NAME_CONCAT, not gl_PATH_CONCAT.
74947         (Include): filenamecat.h, not path-concat.h.
74948         * modules/mkdir-p: Renamed from modules/makepath.
74949         (Files): mkdir-p.h and mkdir-p.c renamed from makepath.h and
74950         makepath.c.
74951         (configure.ac): gl_MKDIR_PARENTS, not gl_MAKEPATH.
74952         (Include): mkdir-p.h, not makepath.h.
74953
74954 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
74955
74956         Sync from coreutils.
74957         * m4/mkdir-p.m4: Renamed from makepath.m4.
74958         (gl_MKDIR_PARENTS): Renamed from gl_MAKEPATH.  All uses changed.
74959         Rename files from makepath.c to mkdir-p.c, and from
74960         makepath.h to mkdir-p.h.
74961         * m4/filenamecat.m4: Renamed from path-concat.m4.
74962         (gl_FILE_NAME_CONCAT): Renamed from gl_PATH_CONCAT.  All uses changed.
74963         Rename files from path-concat.c to filenamecat.c,
74964         and from path-concat.h to filenamecat.h.
74965         * m4/getcwd-path-max.m4: Don't use "path" or "filename" to mean
74966         "file name" in local variables or comments.
74967         * m4/rename.m4: Likewise.
74968
74969 2005-06-01  Bruno Haible  <bruno@clisp.org>
74970
74971         * modules/csharpexec: New file.
74972         * MODULES.html.sh (C#): New section.
74973
74974 2005-06-01  Bruno Haible  <bruno@clisp.org>
74975
74976         * m4/csharp.m4: New file, from GNU gettext.
74977         * m4/csharpexec.m4: New file, from GNU gettext.
74978
74979 2005-06-01  Bruno Haible  <bruno@clisp.org>
74980
74981         * lib/csharpexec.h: New file, from GNU gettext.
74982         * lib/csharpexec.c: New file, from GNU gettext.
74983         * lib/csharpexec.sh.in: New file, from GNU gettext.
74984
74985 2005-05-31  Derek Price  <derek@ximbiot.com>
74986             Paul Eggert  <eggert@cs.ucla.edu>
74987
74988         Sync from cvs.
74989         * m4/glob.m4: s/MISSING_SYS_CDEFS_H/_SYS_CDEFS_H/ and comment.
74990
74991 2005-05-31  Derek Price  <derek@ximbiot.com>
74992             Paul Eggert  <eggert@cs.ucla.edu>
74993
74994         Sync from cvs.
74995         * lib/glob_.h: s/MISSING_SYS_CDEFS_H/_SYS_CDEFS_H/ and comment.
74996
74997 2005-05-29  Derek Price  <derek@ximbiot.com>
74998
74999         * config/srclist.txt (glob_.h, glob.c): Add these files.
75000
75001 2005-05-29  Derek Price  <derek@ximbiot.com>
75002
75003         * MODULES.html.sh: Add glob to Enhanced POSIX.2001 section.
75004         * modules/glob: New file.
75005         * modules/getlogin_r: Add link to POSIX spec in description.
75006
75007 2005-05-29  Derek Price  <derek@ximbiot.com>
75008             Paul Eggert  <eggert@cs.ucla.edu>
75009
75010         * m4/glob.m4: New file.
75011
75012 2005-05-29  Derek Price  <derek@ximbiot.com>
75013             Paul Eggert  <eggert@cs.ucla.edu>
75014
75015         * lib/glob_.h, lib/glob.c: New files.
75016
75017 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
75018
75019         * modules/fts (Files): Remove m4/inttypes-pri.m4.
75020         * modules/fts-lgpl (Depends-on): Remove gettext.
75021
75022 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
75023
75024         * m4/fts.m4 (gl_FUNC_FTS_CORE): Don't check for inttypes.h or stdint.h,
75025         and don't require gt_INTTYPES_PRI.
75026
75027 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
75028
75029         * lib/getlogin_r.c (getlogin_r): Don't set errno to 0 on return.
75030
75031         * lib/fts.c: Don't worry about debugging on pre-C99-compatible hosts;
75032         the configuration hassle isn't worth it.
75033         Include inttypes.h and stdint.h unconditionally if FTS_DEBUG.
75034         (LONGEST_MODIFIER, PRIuMAX): Remove.
75035
75036 2005-05-27  Bruno Haible  <bruno@clisp.org>
75037
75038         * lib/getlogin_r.h: Remove second include of <stddef.h>.
75039
75040 2005-05-26  Paul Eggert  <eggert@cs.ucla.edu>
75041
75042         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Define
75043         _POSIX_PTHREAD_SEMANTICS for Solaris.
75044
75045 2005-05-25  Derek Price  <derek@ximbiot.com>
75046
75047         * MODULES.html.sh: Add getlogin_r to POSIX.2001 support section.
75048
75049 2005-05-25  Derek Price  <derek@ximbiot.com>
75050             Paul Eggert  <eggert@cs.ucla.edu>
75051
75052         * modules/getlogin_r, m4/getlogin_r.m4: New files.
75053         * lib/getlogin_r.c, getlogin_r.h: New files.
75054
75055 2005-05-25  Bruno Haible  <bruno@clisp.org>
75056             Derek Price  <derek@ximbiot.com>
75057
75058         * lib/getlogin_r.h: Simplify API documentation.
75059
75060 2005-05-23  Derek Price  <derek@ximbiot.com>
75061
75062         * modules/minmax (Files): Add m4/minmax.m4.
75063         (configure.ac): Add gl_MINMAX.
75064
75065 2005-05-22  Paul Eggert  <eggert@cs.ucla.edu>
75066
75067         * lib/fts.c (fd_safer) [_LGPL_PACKAGE]: New static function,
75068         so that unistd-safer.h (GPL'ed code) need not be included.
75069
75070 2005-05-22  Bruno Haible  <bruno@clisp.org>
75071
75072         * m4/minmax.m4: New file.
75073         Based on a patch by Derek Price <derek@ximbiot.com>.
75074
75075 2005-05-22  Bruno Haible  <bruno@clisp.org>
75076
75077         * lib/stdint_.h (_STDINT_H_HAVE_INT64): New macro. Use it in #ifdefs.
75078         (INT64_MIN): Fix definition.
75079         Suggested by Paul Eggert <eggert@cs.ucla.edu>.
75080
75081         * lib/stdint_.h (_STDINT_H_NEED_SIGNED_INT_TYPES): Renamed from
75082         NEED_SIGNED_INT_TYPES.
75083
75084         * lib/stdint_.h (_STDINT_H_HAVE_SYSTEM_INTTYPES): Renamed from
75085         HAVE_SYSTEM_INTTYPES.
75086
75087 2005-05-22  Bruno Haible  <bruno@clisp.org>
75088
75089         * lib/minmax.h: Include <limits.h> only when it defines MIN, MAX.
75090         Also include <sys/param.h> if it defines MIN, MAX.
75091         Based on a patch by Derek Price <derek@ximbiot.com>.
75092
75093 2005-05-21  Jim Meyering  <jim@meyering.net>
75094
75095         * modules/fts (Files): Add m4/inttypes-pri.m4.
75096         (Depends-on): Add lstat and remove gettext.  Alphabetize.
75097
75098 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
75099
75100         New fts module.
75101         * lib/fts.c: Don't include "cycle-check.h" or "hash.h".
75102         (setup_dir, free_dir): New functions.
75103         (enter_dir, leave_dir): Define trivial
75104         alternatives of _LGPL_PACKAGE.  Move to fts-cycle.c if !_LGPL_PACKAGE.
75105         (HT_INITIAL_SIZE, ENTER_DIR): Remove.  All uses removed.
75106         (LEAVE_DIR): Fix typo: pass Fts and Ent to leave_dir.
75107         (struct Active_dir, AD_compare, AD_hash, enter_dir, leave_dir):
75108         Move to fts-cycle.c.
75109         (fts_open): Use setup_dir.
75110         (fts_close): Use free_dir.
75111         (fts_read): Have just one copy of the ENTER_DIR code rather than three.
75112         This adds a label and some gotos, but the alternatives were messier.
75113         Check for memory allocation failure when entering a dir.
75114         (fts_stat) [_LGPL_PACKAGE]: Bring back glibc cycle detection code.
75115         * lib/fts_.h (_LGPL_PACKAGE) [defined _LIBC]: New macro.
75116         (FTS): New member fts_cycle, that is a union that contains the
75117         old active_dir_ht and cycle_state.  All uses changed to mention
75118         fts_cycle.ht and fts_cycle.state.
75119         * lib/fts-cycle.c: New file, containing GPL'ed code migrated out of
75120         fts.c, with the following changes:
75121         (setup_dir, free_dir): New functions.
75122         (enter_dir): Now returns bool.  Return true if successful, false
75123         if memory exhausted.  All callers changed.
75124         Do not bother partly cleaning up on
75125         memory allocation failure; that is free_dir's job.
75126         However, free ad if hash_insert fails, to avoid memory leak.
75127         (enter_dir, leave_dir): Accommodate change to FTS by inspecting
75128         fts->fts_options to see which union member to use.
75129
75130 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
75131
75132         * m4/fts.m4 (gl_FUNC_FTS_CORE): Renamed from gl_FUNC_FTS.
75133         (gl_FUNC_FTS, gl_FUNC_FTS_LGPL): New macros.
75134
75135 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
75136
75137         * MODULES.html.sh (File system functions): Add fts, fts-lgpl.
75138
75139 2005-05-20  Jim Meyering  <jim@meyering.net>
75140
75141         * lib/unlinkdir.h (cannot_unlink_dir) [UNLINK_CANNOT_UNLINK_DIR]:
75142         Now a macro, to pacify GCC.
75143
75144 2005-05-20  Eric Blake  <ebb9@byu.net>  (tiny change)
75145
75146         * m4/chown.m4 (gl_FUNC_CHOWN): Correct sense of test for honoring IDs
75147         of -1.
75148
75149 2005-05-20  Eric Blake  <ebb9@byu.net>  (tiny change)
75150
75151         * lib/chown.c (rpl_chown): Return -1 on failure.
75152
75153 2005-05-18  Paul Eggert  <eggert@cs.ucla.edu>
75154
75155         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME]):
75156         Don't check for stddef.h.
75157         * m4/fts.m4 (gl_FUNC_FTS): Don't require AC_HEADER_STDC, as we
75158         don't use its results.
75159         Don't check for fcntl.h, stddef.h, stdlib.h, string.h, unistd.h,
75160         since we include them unconditionally.  Don't require
75161         AM_STDBOOL_H, since stdbool is a prerequisite.
75162         Don't require AC_C_CONST, AC_TYPE_SIZE_T or check for ptrdiff_t
75163         since we assume C89 or better.
75164         Don't require AC_FUNC_CLOSEDIR_VOID, AC_FUNC_LSTAT, or AC_FUNC_STAT,
75165         as we don't use their results.
75166         Don't check for fchdir, memmove, memset, strrchr, as we use
75167         them unconditionally.
75168         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Don't define
75169         GETTIMEOFDAY_CLOBBERS_LOCALTIME_BUFFER, since nobody uses it.
75170
75171 2005-05-18  Paul Eggert  <eggert@cs.ucla.edu>
75172
75173         * lib/canonicalize.c: Include canonicalize.h first, to test interface.
75174         Include <stddef.h> unconditionally, since we assume C89 now.
75175         All uses of PTR_INT_TYPE replaced by ptrdiff_t.
75176         * lib/fts.c: Include fts_.h first, to check interface.
75177         Do not include intprops.h; no longer needed.
75178         Include cycle-check.h and hash.h, since fts_.h no longer does.
75179         Remove unnecessary casts of closedir to void.
75180         (fts_build): Use a simpler method (not involving TYPE_SIGNED) to
75181         decide whether to decrement nlinks.
75182         * lib/fts_.h: Do not include hash.h or cycle-check.h; no longer needed.
75183         (FTS): Use struct hash_table * instead of Hash_table, so that
75184         we no longer need to include hash.h here.
75185
75186 2005-05-18  Jim Meyering  <jim@meyering.net>
75187
75188         * modules/dirfd (License): Change to LGPL.  Most of the code
75189         is already in the public domain.
75190
75191 2005-05-18  Jim Meyering  <jim@meyering.net>
75192
75193         * m4/fts.m4 (AC_LIBSOURCES): Add intprops.h to the list.
75194         Reported by Yoann Vandoorselaere.
75195
75196 2005-05-17  Jim Meyering  <jim@meyering.net>
75197
75198         * m4/fts.m4: New file, from coreutils.
75199
75200 2005-05-17  Jim Meyering  <jim@meyering.net>
75201
75202         * lib/fts.c, lib/fts_.h: New files, from coreutils.
75203
75204 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
75205
75206         Sync from coreutils.
75207         * m4/unlinkdir.m4: New file.
75208
75209 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
75210
75211         Sync from coreutils.
75212         * lib/unlinkdir.c, lib/unlinkdir.h: New files.
75213         * lib/gethrxtime.c, lib/gethrxtime.h, lib/getpass.h, lib/mountlist.h,
75214         lib/path-concat.c, lib/regex.h, lib/unlocked-io.h, lib/xtime.h:
75215         White space changes only.
75216         * lib/makepath.c (make_path): Port to hosts where leading "//" is
75217         special.
75218         * lib/yesno.c: Include getline.h, not ctype.h.
75219         (yesno): Don't remove leading white space; POSIX doesn't allow it.
75220         Use getline to remove arbitrary restriction on response length.
75221
75222 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
75223
75224         * config/srclist-update: Spell out "Street" in FSF postal
75225         mail address; this is the style the FSF seems to prefer.
75226
75227         * build-aux/depcomp, build-aux/install-sh, build-aux/mdate-sh,
75228         build-aux/missing, build-aux/mkinstalldirs: Sync from Automake;
75229         this updates FSF postal mail address.
75230
75231         Sync from coreutils.
75232         * modules/unlinkdir: New file.
75233         * modules/yesno (Depends-on): Add getline.
75234         * MODULES.html.sh (File system functions): Add unlinkdir.
75235
75236 2005-05-13  Paul Eggert  <eggert@cs.ucla.edu>
75237
75238         * lib/byteswap_.h, lib/getsubopt.h, lib/iconvme.h, lib/strsep.c,
75239         lib/strsep.h:
75240         Change the initial comment to refer to GPL, not LGPL.
75241         gnulib-tool will change it to LGPL as needed.
75242
75243         * lib/__fpending.c, lib/acl.c, lib/acl.h, lib/alloca_.h, lib/allocsa.c,
75244         lib/allocsa.h, lib/argmatch.c, lib/argmatch.h, lib/argp-ba.c,
75245         lib/argp-eexst.c, lib/argp-fmtstream.c, lib/argp-fmtstream.h,
75246         lib/argp-fs-xinl.c, lib/argp-help.c, lib/argp-namefrob.h,
75247         lib/argp-parse.c, lib/argp-pv.c, lib/argp-pvh.c, lib/argp-xinl.c,
75248         lib/argp.h, lib/argz.c, lib/argz_.h, lib/asnprintf.c, lib/asprintf.c,
75249         lib/atanl.c, lib/backupfile.c, lib/backupfile.h, lib/base64.c,
75250         lib/base64.h, lib/basename.c, lib/binary-io.h, lib/byteswap_.h,
75251         lib/c-ctype.c, lib/c-ctype.h, lib/c-stack.c, lib/c-stack.h,
75252         lib/c-strtod.c, lib/calloc.c, lib/canon-host.c, lib/canonicalize.c,
75253         lib/canonicalize.h, lib/ceill.c, lib/chdir-long.c, lib/chdir-long.h,
75254         lib/chown.c, lib/classpath.c, lib/classpath.h, lib/cloexec.c,
75255         lib/closeout.c, lib/closeout.h, lib/concatpath.c, lib/config.charset,
75256         lib/copy-file.c, lib/copy-file.h, lib/cycle-check.c, lib/cycle-check.h,
75257         lib/diacrit.c, lib/diacrit.h, lib/dirfd.c, lib/dirfd.h, lib/dirname.c,
75258         lib/dirname.h, lib/dummy.c, lib/dup-safer.c, lib/dup2.c, lib/eealloc.h,
75259         lib/error.c, lib/error.h, lib/euidaccess.c, lib/exclude.c,
75260         lib/exclude.h, lib/execute.c, lib/execute.h, lib/exit.h,
75261         lib/exitfail.c, lib/exitfail.h, lib/expl.c, lib/fatal-signal.c,
75262         lib/fatal-signal.h, lib/fd-safer.c, lib/file-type.c, lib/file-type.h,
75263         lib/fileblocks.c, lib/filemode.c, lib/filemode.h, lib/findprog.c,
75264         lib/findprog.h, lib/floorl.c, lib/fnmatch.c, lib/fnmatch_.h,
75265         lib/fnmatch_loop.c, lib/fopen-safer.c, lib/free.c, lib/frexpl.c,
75266         lib/fsusage.c, lib/fsusage.h, lib/full-read.c, lib/full-read.h,
75267         lib/full-write.c, lib/full-write.h, lib/fwriteerror.c,
75268         lib/fwriteerror.h, lib/gai_strerror.c, lib/gcd.c, lib/gcd.h,
75269         lib/getaddrinfo.c, lib/getaddrinfo.h, lib/getcwd.c, lib/getcwd.h,
75270         lib/getdate.h, lib/getdate.y, lib/getdomainname.c, lib/getdomainname.h,
75271         lib/getgroups.c, lib/gethostname.c, lib/gethrxtime.c, lib/gethrxtime.h,
75272         lib/getline.c, lib/getline.h, lib/getloadavg.c, lib/getndelim2.c,
75273         lib/getndelim2.h, lib/getnline.c, lib/getnline.h, lib/getopt.c,
75274         lib/getopt1.c, lib/getopt_.h, lib/getopt_int.h, lib/getpagesize.h,
75275         lib/getpass.c, lib/getpass.h, lib/getsubopt.c, lib/getsubopt.h,
75276         lib/gettext.h, lib/gettime.c, lib/gettimeofday.c, lib/getugroups.c,
75277         lib/getusershell.c, lib/group-member.c, lib/group-member.h,
75278         lib/hard-locale.c, lib/hard-locale.h, lib/hash-pjw.c, lib/hash-pjw.h,
75279         lib/hash.c, lib/hash.h, lib/human.c, lib/human.h, lib/iconvme.c,
75280         lib/iconvme.h, lib/idcache.c, lib/inet_ntop.h, lib/intprops.h,
75281         lib/inttostr.c, lib/inttostr.h, lib/isdir.c, lib/javacomp.c,
75282         lib/javacomp.h, lib/javacomp.sh.in, lib/javaexec.c, lib/javaexec.h,
75283         lib/javaexec.sh.in, lib/lbrkprop.h, lib/lchown.c, lib/ldexpl.c,
75284         lib/linebreak.c, lib/linebreak.h, lib/linebuffer.c, lib/linebuffer.h,
75285         lib/localcharset.c, lib/localcharset.h, lib/logl.c, lib/long-options.c,
75286         lib/long-options.h, lib/lstat.c, lib/makepath.c, lib/makepath.h,
75287         lib/malloc.c, lib/mathl.h, lib/mbswidth.c, lib/mbswidth.h, lib/md5.c,
75288         lib/md5.h, lib/memcasecmp.c, lib/memcasecmp.h, lib/memchr.c,
75289         lib/memcmp.c, lib/memcoll.c, lib/memcoll.h, lib/memcpy.c, lib/memmem.c,
75290         lib/memmem.h, lib/mempcpy.c, lib/mempcpy.h, lib/memrchr.c,
75291         lib/memrchr.h, lib/memset.c, lib/minmax.h, lib/mkdir.c, lib/mkdtemp.c,
75292         lib/mkdtemp.h, lib/mkstemp.c, lib/mktime.c, lib/modechange.c,
75293         lib/modechange.h, lib/mountlist.c, lib/mountlist.h, lib/nanosleep.c,
75294         lib/obstack.c, lib/obstack.h, lib/openat.c, lib/openat.h,
75295         lib/pagealign_alloc.c, lib/pagealign_alloc.h, lib/path-concat.c,
75296         lib/path-concat.h, lib/pathmax.h, lib/pathname.h, lib/physmem.c,
75297         lib/physmem.h, lib/pipe.c, lib/pipe.h, lib/poll.c, lib/poll_.h,
75298         lib/posixtm.c, lib/posixtm.h, lib/posixver.c, lib/printf-args.c,
75299         lib/printf-args.h, lib/printf-parse.c, lib/printf-parse.h,
75300         lib/progname.c, lib/progname.h, lib/progreloc.c, lib/putenv.c,
75301         lib/quote.c, lib/quote.h, lib/quotearg.c, lib/quotearg.h, lib/raise.c,
75302         lib/readlink.c, lib/readtokens.c, lib/readtokens.h, lib/readtokens0.c,
75303         lib/readtokens0.h, lib/readutmp.c, lib/readutmp.h, lib/realloc.c,
75304         lib/ref-add.sin, lib/ref-del.sin, lib/regex.c, lib/regex.h,
75305         lib/rename.c, lib/rmdir.c, lib/rpmatch.c, lib/safe-read.c,
75306         lib/safe-read.h, lib/safe-write.c, lib/safe-write.h, lib/same.c,
75307         lib/same.h, lib/save-cwd.c, lib/save-cwd.h, lib/savedir.c,
75308         lib/savedir.h, lib/setenv.c, lib/setenv.h, lib/settime.c,
75309         lib/sh-quote.c, lib/sh-quote.h, lib/sha1.c, lib/sha1.h, lib/sig2str.c,
75310         lib/sig2str.h, lib/sincosl.c, lib/snprintf.c, lib/snprintf.h,
75311         lib/sqrtl.c, lib/stat-macros.h, lib/stat.c, lib/stdbool_.h,
75312         lib/stdint_.h, lib/stdio-safer.h, lib/stpcpy.c, lib/stpcpy.h,
75313         lib/stpncpy.c, lib/stpncpy.h, lib/strcase.h, lib/strcasecmp.c,
75314         lib/strchrnul.c, lib/strchrnul.h, lib/strcspn.c, lib/strdup.c,
75315         lib/strdup.h, lib/strerror.c, lib/strftime.c, lib/strftime.h,
75316         lib/stripslash.c, lib/strndup.c, lib/strndup.h, lib/strnlen.c,
75317         lib/strpbrk.c, lib/strpbrk.h, lib/strsep.c, lib/strsep.h, lib/strstr.c,
75318         lib/strstr.h, lib/strtod.c, lib/strtoimax.c, lib/strtok_r.c,
75319         lib/strtok_r.h, lib/strtol.c, lib/strtoll.c, lib/strtoul.c,
75320         lib/strtoull.c, lib/strverscmp.c, lib/strverscmp.h, lib/sysexit_.h,
75321         lib/tempname.c, lib/time_r.c, lib/time_r.h, lib/timegm.c, lib/timegm.h,
75322         lib/timespec.h, lib/trigl.c, lib/trigl.h, lib/ucs4-utf16.h,
75323         lib/ucs4-utf8.h, lib/unicodeio.c, lib/unicodeio.h, lib/unistd-safer.h,
75324         lib/unlocked-io.h, lib/unsetenv.c, lib/userspec.c, lib/utf16-ucs4.h,
75325         lib/utf8-ucs4.h, lib/utime.c, lib/utimecmp.c, lib/utimecmp.h,
75326         lib/utimens.c, lib/vasnprintf.c, lib/vasnprintf.h, lib/vasprintf.c,
75327         lib/vasprintf.h, lib/version-etc-fsf.c, lib/version-etc.c,
75328         lib/version-etc.h, lib/vsnprintf.c, lib/vsnprintf.h, lib/w32spawn.h,
75329         lib/wait-process.c, lib/wait-process.h, lib/xalloc-die.c, lib/xalloc.h,
75330         lib/xallocsa.c, lib/xallocsa.h, lib/xasprintf.c, lib/xgetcwd.c,
75331         lib/xgetcwd.h, lib/xgetdomainname.c, lib/xgetdomainname.h,
75332         lib/xgethostname.c, lib/xmalloc.c, lib/xmemcoll.c, lib/xnanosleep.c,
75333         lib/xreadlink.c, lib/xreadlink.h, lib/xsetenv.c, lib/xsetenv.h,
75334         lib/xsize.h, lib/xstrndup.c, lib/xstrndup.h, lib/xstrtod.c,
75335         lib/xstrtod.h, lib/xstrtoimax.c, lib/xstrtol.c, lib/xstrtol.h,
75336         lib/xstrtoumax.c, lib/xtime.h, lib/xvasprintf.c, lib/xvasprintf.h,
75337         lib/yesno.c, lib/yesno.h:
75338         Update FSF postal mail address.
75339
75340 2005-05-13  Paul Eggert  <eggert@cs.ucla.edu>
75341
75342         * MODULES.html.sh, README, gnulib-tool, tests/test-base64.c,
75343         tests/test-memmem.c, tests/test-stpncpy.c:
75344         Update FSF postal mail address.
75345
75346 2005-05-13  Bruno Haible  <bruno@clisp.org>
75347
75348         * lib/stdint_.h (int64_t, uint64_t, int_least64_t, uint_least64_t,
75349         int_fast64_t, uint_fast64_t, intmax_t, uintmax_t, INT64_MIN, INT64_MAX,
75350         UINT64_MAX, INT_LEAST64_MIN, INT_LEAST64_MAX, UINT_LEAST64_MAX,
75351         INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX, INTMAX_MIN,
75352         INTMAX_MAX, UINTMAX_MAX, INT64_C, UINT64_C, INTMAX_C, UINTMAX_C):
75353         Add support for 64-bit integers in the MSVC compiler.
75354
75355 2005-05-12  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
75356
75357         * modules/getdate (Makefile.am): Add getdate.c to EXTRA_DIST
75358
75359 2005-05-12  Eric Blake  <ebb9@byu.net>  (tiny change)
75360
75361         * gnulib-tool (func_import): Sort and uniquify recommended includes.
75362
75363 2005-05-11  Paul Eggert  <eggert@cs.ucla.edu>
75364
75365         * doc/getdate.texi (General date syntax): Don't say that date
75366         date --iso-8601=ns generates acceptable dates; it doesn't yet.
75367         Problem reported by Nic Ferrier.
75368
75369 2005-05-10  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
75370
75371         * lib/getaddrinfo.c: Don't fail when SOCK_STREAM or SOCK_DGRAM are
75372         specified in ai_socktype. Fix invalid ai_protocol
75373         check. ai_protocol is usually set to 0 or depending on
75374         ai_family/ai_socktype to IPPROTO_TCP / IPPROTO_UDP.  Checking for
75375         SOCK_STREAM / SOCK_DGRAM in ai_protocol was invalid.  Set
75376         ai_socktype / ai_protocol in the returned addrinfo structure.
75377
75378 2005-05-10  Simon Josefsson  <jas@extundo.com>
75379
75380         * m4/getaddrinfo.m4: Look in libnsl/libsocket for getaddrinfo, from
75381         Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
75382
75383 2005-05-10  Karl Berry  <karl@gnu.org>
75384
75385         * doc/fdl.texi, gpl.texi, lgpl.texi, COPYING: update FSF address
75386         (from http://www.gnu.org/licenses).
75387         * doc/COPYING.LIB: also rename to COPYING.LESSER.
75388         * doc/COPYING.DOC: remove; per rms, only needed in doc files, so
75389         fdl.texi suffices.
75390
75391 2005-05-10  Karl Berry  <karl@gnu.org>
75392
75393         * config/srclist.txt (COPYING.LESSER): rename from COPYING.LIB.
75394         (COPYING.DOC): remove.
75395
75396         * config/srclist-update: new FSF address.
75397
75398 2005-05-10  Derek Price  <derek@ximbiot.com>
75399
75400         * m4/getopt.m4 (gl_GETOPT): Check for Solaris 10 bug, not decl, when
75401         possible.
75402
75403 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
75404             Bruno Haible  <bruno@clisp.org>
75405
75406         * modules/inet_ntop: New file.
75407         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
75408         inet_ntop.
75409
75410 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
75411             Bruno Haible  <bruno@clisp.org>
75412
75413         * m4/inet_ntop.m4: New file.
75414
75415 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
75416             Bruno Haible  <bruno@clisp.org>
75417
75418         * lib/inet_ntop.h: New file.
75419         * lib/inet_ntop.c: New file, from glibc with modifications.
75420
75421 2005-05-09  Paul Eggert  <eggert@cs.ucla.edu>
75422
75423         * modules/time_r (License): Change to LGPL.
75424         * modules/extensions (License): Change to LGPL.  Actually,
75425         the license is more permissive than that, but currently gnulib-tool
75426         doesn't know how to handle more-permissive licenses.
75427
75428         * modules/stat-macros (Depends-on): Don't depend on stat-macros (!).
75429         Problem reported by Dave Love.
75430
75431 2005-05-08  Jim Meyering  <jim@meyering.net>
75432
75433         * lib/classpath.c (PATH_SEPARATOR): Remove insignificant trailing
75434         blank.
75435
75436 2005-05-06  Paul Eggert  <eggert@cs.ucla.edu>
75437
75438         * modules/argmatch (Depends-on): Add stdbool.
75439         * modules/backupfile (Depends-on): Likewise.
75440         * modules/chdir-long (Depends-on): Likewise.
75441         * modules/closeout (Depends-on): Likewise.
75442         * modules/cycle-check (Depends-on): Likewise.
75443         * modules/dirname (Depends-on): Likewise.
75444         * modules/fnmatch (Depends-on): Likewise.
75445         * modules/fsusage (Depends-on): Likewise.
75446         * modules/fwriteerror (Depends-on): Likewise.
75447         * modules/getcwd (Depends-on): Likewise.
75448         * modules/getloadavg (Depends-on): Likewise.
75449         * modules/hard-locale (Depends-on): Likewise.
75450         * modules/makepath (Depends-on): Likewise.
75451         * modules/mountlist (Depends-on): Likewise.
75452         * modules/nanosleep (Depends-on): Likewise.
75453         * modules/posixtm (Depends-on): Likewise.
75454         * modules/quotearg (Depends-on): Likewise.
75455         * modules/readtokens (Depends-on): Likewise.
75456         * modules/readtokens0 (Depends-on): Likewise.
75457         * modules/readutmp (Depends-on): Likewise.
75458         * modules/save-cwd (Depends-on): Likewise.
75459         * modules/strftime (Depends-on): Likewise.
75460         * modules/userspec (Depends-on): Likewise.
75461         * modules/utimecmp (Depends-on): Likewise.
75462         * modules/xgetcwd (Depends-on): Likewise.
75463         * modules/xnanosleep (Depends-on): Likewise.
75464         * modules/xstrtod (Depends-on): Likewise.
75465         * modules/yesno (Depends-on): Likewise.
75466
75467 2005-05-05  Paul Eggert  <eggert@cs.ucla.edu>
75468
75469         * m4/getopt.m4 (gl_GETOPT): Check for Solaris 10 getopt, and avoid
75470         needless checks.
75471
75472 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
75473
75474         Merge from coreutils.  Among other things,
75475         add bulletproofing for cases where stdin, stdout, or stderr are closed.
75476         * lib/fd-safer.c: New file.
75477         * lib/fcntl-safer.h, open-safer.c: Remove.
75478         * lib/chdir-long.c: Fix comment "fetish" -> "coreutils".
75479         * lib/dup-safer.c: Include unistd-safer.h first.
75480         Don't include errno.h.
75481         (dup_safer) [!defined F_DUPFD]: Let fd_safer do the real work.
75482         * lib/file-type.h: Don't assume invoker included sys/stat.h first.
75483         * lib/file-type.c: Rely on file-type.h change.
75484         * lib/getloadavg.c: Include unistd-safer.h.
75485         (getloadavg): Use safer open.
75486         * lib/getusershell.c: Include "stdio-safer.h".
75487         (getusershell): Use safer fopen.
75488         * lib/long-options.c (long_options): Use NULL rather than 0.
75489         * lib/modechange.h (mode_free): Remove; all callers changed to invoke
75490         'free'.
75491         * lib/modechange.c: Likewise.
75492         xstrtol.h, stdbool.h, stddef.h: Don't include; no longer needed.
75493         (MODE_DONE): New constant.
75494         (struct mode_change): Remove 'next' member.
75495         (make_node_op_equals): New function; like the old one of the
75496         same name, except it allocates an array.
75497         (mode_compile, mode_create_from_ref): Use it.
75498         (mode_compile): Allocate result as an array, not a linked list.
75499         Parse octal string ourself, so that we catch mistakes like "+0".
75500         (mode_adjust): Arg is an array, not a linked list.
75501         * lib/modechange.c: Include stat-macros.h, xalloc.h.
75502         (S_ISDIR, S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IWUSR, S_IXUSR):
75503         (S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH, S_IRXWU):
75504         (S_IRWXG, S_IRWXO, CHMOD_MODE_BITS):
75505         Remove.  This is now stat-macros.h's job.
75506         (talloc): Remove.  All callers replaced by xalloc, so that
75507         our invokers don't have to worry about reporting memory failures.
75508         (make_node_op_equals): Remove.
75509         (MODE_ORDINARY_CHAGE, MODE_X_IF_ANY_X, MODE_COPY_EXISTING):
75510         New constants.
75511         (struct mode_change): Moved here from modechange.h.
75512         (mode_append_entry): Remove.
75513         (mode_compile): Remove MASKED_OPS arg, since it encouraged
75514         apps to have incorrect behavior.  Use simpler algorithm for head
75515         and tail.  Don't futz with umask; that's now the job of mode_adjust.
75516         Detect more invalid usages rather than having somewhat-random behavior.
75517         Don't insert an "a=" action, as that leads to incorrect behavior.
75518         (mode_compile, mode_create_from_ref): Return NULL on error instead
75519         of an enum, since now there's only one way to have an error.  All
75520         callers changed.
75521         (mode_adjust): Accept new arg UMASK_VALUE, and interpret it
75522         at the correct time.  Simplify calculation of "+u" and its ilk.
75523         Don't mishandle "+X".
75524         (mode_free): Remove "register" and localize decls.
75525         * lib/modechange.h (MODE_X_IF_ANY_X, MODE_COPY_EXISTING):
75526         (struct mode_change): Move to modechange.c; callers don't
75527         need to see this stuff.
75528         (MODE_MASK_EQUALS, MODE_MASK_PLUS, MODE_MASK_MINUS, MODE_MASK_ALL):
75529         (MODE_INVALID, MODE_MEMORY_EXHAUSTED, MODE_BAD_REFERENCE): Remove.
75530         (mode_change, mode_adjust): Reflect the new signatures noted above.
75531         * lib/nanosleep.c (rpl_nanosleep): Include "timespec.h" before macros
75532         that might redefine system include files.
75533         (siginterrupt) [!HAVE_SIGINTERRUPT]: New macro.
75534         (my_usleep): Use NULL rather than (void *) 0.
75535         (rpl_nanosleep) [!defined SA_NOCLDSTOP]:
75536         Use siginterrupt to specify that system calls should be interrupted.
75537         (rpl_nanosleep): Move initialization of suspended closer to call of
75538         my_usleep.
75539         * lib/readutmp.h (read_utmp): New arg OPTIONS.  All uses changed.
75540         * lib/readutmp.c: Likewise.  Include signal.h, stdbool.h.
75541         (desirable_utmp_entry): New function.
75542         (read_utmp) [defined UTMP_NAME_FUNCTION]: Redo memory allocation
75543         using x2nrealloc, to simplify logic.
75544         (read_utmp) [!defined UTMP_NAME_FUNCTION]: Check for overflow in
75545         size calculation.  Do not assume utmp file is a regular file.
75546         * lib/readutmp.h (UT_PID): Moved here from ../src/who.c.
75547         (READ_UTMP_CHECK_PIDS): New constant.
75548         * lib/save-cwd.c: Include unistd-safer.h.
75549         (save_cwd): Use fd_safer.
75550         * lib/tempname.c (S_ISDIR, S_IRUSR, S_IRUSR, S_IWUSR, S_IXUSR): Remove.
75551         [!_LIBC] Include "stat-macros.h" instead.
75552         * lib/unistd-safer.h (fd_safer): New decl.
75553
75554 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
75555
75556         * modules/getloadavg (Depends-on): Add unistd-safer.
75557         * modules/getusershell (Depends-on): Add stdio-safer.
75558         * modules/lstat (Depends-on): Remove xalloc.
75559         * modules/mkstemp (Depends-on): Add stat-macros.
75560         * modules/modechange (Depends-on): Remove xstrtol.
75561         Add stat-macros, xalloc.
75562         * modules/save-cwd (Depends-on): Add unistd-safer.
75563         * modules/stdio-safer (Makefile.am): Remove lib_SOURCES.
75564         * modules/unistd-safer (Files): Add lib/fd-safer.c
75565         (Makefile.am): Remove lib_SOURCES.
75566
75567         * MODULES.html.sh (Enhancements for POSIX:2001 functions):
75568         Remove fcntl-safer; unistd-safer supersedes it.
75569
75570 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
75571
75572         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Don't require
75573         AC_HEADER_STAT.
75574         * m4/lchown.m4 (gl_FUNC_CHOWN): Likewise.
75575         (gl_PREREQ_CHOWN): Remove.
75576         * m4/lstat.m4 (gl_FUNC_LSTAT): Require AC_FUNC_LSTAT instead of calling
75577         it.  Don't require AC_HEADER_STAT.
75578         (gl_PREREQ_LSTAT): Remove.
75579         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Check stdint.h only once.
75580         Don't require AC_HEADER_STAT.
75581         * m4/rmdir.m4 (gl_FUNC_RMDIR): Don't require AC_HEADER_STAT.
75582         (gl_PREREQ_RMDIR): Remove.
75583         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Don't
75584         mention stat-macros.h or AC_HEADER_STAT, since we'll make
75585         the stat-macros module a prerequisite.
75586         * m4/file-type.m4 (gl_FILE_TYPE): Likewise.
75587         * m4/filemode.m4 (gl_FILEMODE): Likewise.
75588         * m4/makepath.m4 (gl_MAKEPATH): Likewise.
75589         * m4/modechange.m4 (gl_MODECHANGE): Likewise.
75590         * m4/clock_time.m4 (gl_CLOCK_TIME): Use gl_ rather than fetish_ for
75591         variable names.
75592         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Renamed from
75593         fetish_FUNC_RMDIR_NOTEMPTY.  All uses changed.  Use gl_ for
75594         variable prefixes.
75595         * m4/fcntl-safer.m4: Remove.
75596         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Use AC_LIBSOURCES and AC_LIBOBJ.
75597         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Likewise.
75598         Invoke gl_PREREQ_FD_SAFER.
75599         (gl_PREREQ_FD_SAFER): New macro.
75600         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Check for siginterrupt.
75601         * m4/readutmp.m4 (gl_READUTMP): Require AC_C_INLINE.
75602         Use AC_CHECK_HEADERS_ONCE and AC_CHECK_FUNCS_ONCE when possible.
75603         Remove duplicate call to AC_LIBOBJ(readutmp).
75604         (gl_PREREQ_READUTMP): Remove.  All uses inlined.
75605
75606         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Check for message, not for
75607         MAP_ANON.  Problem reported by Moriyoshi Koizumi to bug-cvs.
75608
75609 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
75610
75611         * MODULES.html.sh (Misc): Add byteswap.
75612
75613 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
75614
75615         * modules/getcwd (Depends-on): Add extensions.
75616         * modules/openat (Depends-on): Likewise.
75617
75618 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
75619
75620         * modules/byteswap: New file.
75621
75622 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
75623
75624         * m4/byteswap.m4: New file.
75625
75626 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
75627
75628         * lib/byteswap_.h: New file.
75629
75630 2005-04-25  Karl Berry  <karl@gnu.org>
75631
75632         * m4/gettext.m4: Update from GNU gettext 0.14.4.
75633
75634 2005-04-25  Albert Chin  <china@thewrittenword.com>
75635
75636         * lib/regex.c: Include <stdio.h>, as a workaround to a Compaq Desktop
75637         Toolkit C bug.
75638
75639 2005-04-21  Oskar Liljeblad  <oskar@osk.mine.nu>
75640
75641         * gnulib-tool (Options): Add -s for --symlink/--symbolic.
75642         (func_ln_if_changed): Remove forcibly for no error message
75643         in case file does not exist.
75644
75645 2005-04-19  Simon Josefsson  <jas@extundo.com>
75646
75647         * gnulib-tool (Options): Make --symlink mean --symbolic.
75648
75649 2005-04-18  Oskar Liljeblad  <oskar@osk.mine.nu>
75650
75651         * doc/gnulib.texi (Initial import): Fix.  Mention --aux-dir.
75652
75653 2005-04-16  Simon Josefsson  <jas@extundo.com>
75654
75655         * modules/getpass-gnu (Makefile.am): Don't mention getpass.h.
75656
75657 2005-04-15  Simon Josefsson  <jas@extundo.com>
75658
75659         * m4/getpass.m4 (gl_FUNC_GETPASS): Use AC_LIBSOURCES.
75660
75661 2005-04-15  Simon Josefsson  <jas@extundo.com>
75662
75663         * gnulib-tool: Rename --symlink to --symbolic.
75664
75665 2005-04-15  Oskar Liljeblad  <oskar@osk.mine.nu>
75666
75667         * gnulib-tool: Add -s, --symlink option to gnulib-tool to make
75668         symbolic links to files instead of copying/moving.  Add --aux-dir,
75669         specifying directory relative --dir where auxiliary build tools
75670         are placed.
75671
75672 2005-04-14  Bruno Haible  <bruno@clisp.org>
75673
75674         * modules/allocsa (License): Change to LGPL.
75675         Requested by Yoann Vandoorselaere <yoann@prelude-ids.org>.
75676
75677 2005-04-13  Paul Eggert  <eggert@cs.ucla.edu>
75678
75679         * lib/getdate.y (zone): Allow relunit_snumber after tZONE, so
75680         that "UTC +1 second" continues to work.  Problem reported
75681         by Dmitry V. Levin.
75682         (relunit_snumber): New rule.
75683         (relunit): Use it.
75684
75685 2005-04-12  Paul Eggert  <eggert@cs.ucla.edu>
75686
75687         * lib/getdate.y (universal_time_zone_table): New constant.
75688         (time_zone_table): Remove GMT, UT, UTC entries; they're now in
75689         universal_time_zone_table.
75690         (lookup_zone): Prefer universal_time_zone_table to
75691         local_time_zone_table, so that "GMT" time stamps are allowed in
75692         London during the summer.  Problem reported by Ian Abbott.
75693
75694 2005-04-12  Jim Meyering  <jim@meyering.net>
75695
75696         * lib/human.c (humblock): Set *options even when returning due to
75697         xstrtoumax conversion failure.  Thanks to a used-uninitialized
75698         warning from gcc-4.
75699
75700 2005-04-09  Jim Meyering  <jim@meyering.net>
75701
75702         * lib/posixtm.c (posixtime) [lint]: Avoid spurious warning from gcc-4's
75703         -Wuninitialized: initialize tm0.tm_year.
75704
75705 2005-04-04  Paul Eggert  <eggert@cs.ucla.edu>
75706
75707         * lib/getdate.y (parser_control): rels_seen is now a boolean, not a
75708         count, since there's no maximum.  All uses changed.
75709         Add member dsts_seen.
75710         (local_zone): Accumulate dsts_seen rather than relying on tm_isdst
75711         not being INT_MAX.
75712         (get_date): Initialize dsts_seen, and check that it doesn't go over 1.
75713         Use pc_rels_seen to decide whther a date is absolute.
75714
75715         * lib/getdate.y (number): Don't overwrite year.
75716         (get_date): Initialize pc.year.digits to 0, not 4, to enable above
75717         check.
75718
75719 2005-04-02  Simon Josefsson  <jas@extundo.com>
75720
75721         * lib/getaddrinfo.h: Fix OpenBSD compilation failure, inspired by tiny
75722         patch from Yoann Vandoorselaere <yoann@prelude-ids.org>.
75723
75724 2005-03-28  Eric Blake  <ebb9@byu.net>  (tiny change)
75725
75726         * m4/getcwd-path-max.m4: Return success on systems such as Cygwin
75727         where no absolute path name can be longer than PATH_MAX.
75728
75729 2005-03-27  Jim Meyering  <jim@meyering.net>
75730
75731         * lib/argmatch.c: Clarify comment: null-terminated -> NULL-terminated.
75732
75733 2005-03-26  Paul Eggert  <eggert@cs.ucla.edu>
75734
75735         * lib/intprops.h (INT_STRLEN_BOUND, INT_BUFSIZE_BOUND):
75736         "one's complement" -> "ones' complement" in comment, as per Knuth.
75737         "value of type" -> "type or expression" in comment.
75738         * lib/mktime.c, strftime.c: Propagate intprops.h comment nits.
75739
75740 2005-03-26  Jim Meyering  <jim@meyering.net>
75741
75742         Comment nits.
75743         * lib/intprops.h: Add the apostrophe in `(one|two)'s complement'.
75744         Correct typos: s/or/of/.
75745
75746 2005-03-26  Jim Meyering  <jim@meyering.net>
75747
75748         * modules/check-include-files: Move to ../ and rename to...
75749         * check-module: ...this.
75750
75751 2005-03-25  Jim Meyering  <jim@meyering.net>
75752
75753         * modules/xvasprintf (Files): Add xalloc.h.
75754
75755 2005-03-23  Paul Eggert  <eggert@cs.ucla.edu>
75756
75757         * modules/gettext (Files): config/config.rpath ->
75758         build-aux/config.rpath
75759         * modules/iconv (Files): Likewise.
75760         Problem reported by Oskar Liljeblad.
75761
75762 2005-03-23  Jim Meyering  <jim@meyering.net>
75763
75764         * modules/check-include-files: New script to check for
75765         missing dependencies, multiple includes, etc.
75766
75767         * modules/c-strtold (Depends-on): Add xalloc.
75768         * modules/c-strtod (Depends-on): Add xalloc.
75769         * modules/hash (Depends-on): Add xalloc.
75770         (Files): Remove lib/xalloc.h.
75771
75772         * modules/gethrxtime (Files): Add lib/gethrxtime.h.
75773         * modules/userspec (Files): Add lib/inttostr.h.
75774
75775 2005-03-23  Jim Meyering  <jim@meyering.net>
75776
75777         * lib/canonicalize.c: Remove duplicate `#include "stat-macros.h"'.
75778
75779 2005-03-22  Jim Meyering  <jim@meyering.net>
75780
75781         * modules/stat-macros: New module.
75782         * modules/canonicalize, modules/euidaccess, modules/file-type,
75783         * modules/filemode, modules/lchown, modules/makepath,
75784         * modules/rmdir, modules/stat: Depend on new stat-macros module
75785         rather than listing lib/stat-macros.h manually.
75786         Don't add stat-macros.h to lib_SOURCES or list it in Files: section.
75787
75788 2005-03-22  Jim Meyering  <jim@meyering.net>
75789
75790         * m4/stat-macros.m4 (gl_STAT_MACROS): New file/macro.
75791
75792 2005-03-22  Bruno Haible  <bruno@clisp.org>
75793
75794         * config/srclist.txt: Replace target directory 'config' with
75795         'build-aux'.
75796         * config/config.guess, config.sub, config.rpath, depcomp, install-sh:
75797         * config/mdate-sh, missing, mkinstalldirs, texinfo.tex: Move to
75798         ../build-aux/.
75799
75800 2005-03-21  Paul Eggert  <eggert@cs.ucla.edu>
75801
75802         * modules/chdir-long (Depends-on): Add mempcpy.
75803
75804         * modules/acl, modules/backupfile, modules/c-strtod,
75805         modules/c-strtold, modules/canon-host, modules/canonicalize,
75806         modules/cloexec, modules/closeout, modules/dirfd, modules/dirname,
75807         modules/exclude, modules/exitfail, modules/file-type,
75808         modules/filemode, modules/fpending, modules/fsusage, modules/getcwd,
75809         modules/getdate, modules/getline, modules/getpagesize,
75810         modules/getpass, modules/getugroups, modules/group-member,
75811         modules/hard-locale, modules/hash, modules/human, modules/idcache,
75812         modules/inttostr, modules/long-options, modules/makepath,
75813         modules/md5, modules/memcasecmp, modules/memcoll,
75814         modules/modechange, modules/mountlist, modules/path-concat,
75815         modules/pathmax, modules/physmem, modules/posixtm, modules/posixver,
75816         modules/quote, modules/quotearg, modules/readtokens, modules/readutmp,
75817         modules/safe-read, modules/safe-write, modules/same, modules/savedir,
75818         modules/settime, modules/sha1, modules/sig2str, modules/strdup,
75819         modules/strftime, modules/strndup, modules/strverscmp,
75820         modules/timespec, modules/unlocked-io, modules/userspec,
75821         modules/utimecmp, modules/utimens, modules/xalloc, modules/xstrtol,
75822         modules/yesno:
75823         Remove lib_SOURCES line from Makefile.am section, as this is now
75824         done automatically by the corresponding Autoconf macro.
75825
75826 2005-03-21  Jim Meyering  <jim@meyering.net>
75827
75828         Changes imported from coreutils.
75829
75830         * lib/cycle-check.c: Don't include xalloc.h.
75831
75832         * lib/path-concat.c: Don't include assert.h.
75833         (path_concat): Remove assertion that would have triggered
75834         for ABASE starting with more than one slash.
75835         Reported by Andreas Schwab.
75836
75837         * lib/path-concat.c (path_concat): Set *BASE_IN_RESULT
75838         properly when ABASE is an absolute file name.
75839         Correct the description of this function.
75840         Include <assert.h>.
75841         Add an assertion and a test driver.
75842         This fixes a bug introduced on 2004-07-02.
75843         Andreas Schwab reported the resulting failure of cp --parents:
75844         http://lists.gnu.org/archive/html/bug-coreutils/2005-01/msg00130.html
75845
75846 2005-03-21  Jim Meyering  <jim@meyering.net>
75847
75848         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Invoke gl_FUNC_MEMRCHR.
75849         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Check for memrchr decl.
75850
75851 2005-03-21  Jim Meyering  <jim@meyering.net>
75852         and  Paul Eggert  <eggert@cs.ucla.edu>
75853
75854         * m4/acl.m4, m4/backupfile.m4, m4/c-strtod.m4, m4/canon-host.m4,
75855         m4/canonicalize.m4, m4/cloexec.m4, m4/closeout.m4, m4/dirfd.m4,
75856         m4/dirname.m4, m4/exclude.m4, m4/exitfail.m4, m4/file-type.m4,
75857         m4/filemode.m4, m4/fpending.m4, m4/fsusage.m4, m4/getcwd.m4,
75858         m4/getdate.m4, m4/getline.m4, m4/getpagesize.m4, m4/getpass.m4,
75859         m4/getugroups.m4, m4/group-member.m4, m4/hard-locale.m4, m4/hash.m4,
75860         m4/human.m4, m4/idcache.m4, m4/inttostr.m4, m4/long-options.m4,
75861         m4/makepath.m4, m4/md5.m4, m4/memcasecmp.m4, m4/memcoll.m4,
75862         m4/modechange.m4, m4/mountlist.m4, m4/nanosleep.m4, m4/path-concat.m4,
75863         m4/pathmax.m4, m4/physmem.m4, m4/posixtm.m4, m4/posixver.m4,
75864         m4/quote.m4, m4/quotearg.m4, m4/readtokens.m4, m4/readutmp.m4,
75865         m4/safe-read.m4, m4/safe-write.m4, m4/same.m4, m4/savedir.m4,
75866         m4/settime.m4, m4/sha1.m4, m4/sig2str.m4, m4/strdup.m4, m4/strftime.m4,
75867         m4/strndup.m4, m4/strverscmp.m4, m4/timespec.m4, m4/unlocked-io.m4,
75868         m4/userspec.m4, m4/utimecmp.m4, m4/utimens.m4, m4/xalloc.m4,
75869         m4/xnanosleep.m4, m4/xstrtol.m4, m4/yesno.m4:
75870         Use AC_LIBSOURCES and AC_LIBOBJ to indicate source and object files
75871         for these modules.
75872
75873 2005-03-18  Paul Eggert  <eggert@cs.ucla.edu>
75874
75875         * lib/strftime.c (my_strftime): If the underlying strftime returns 0
75876         (which shouldn't happen), generate nothing instead of returning 0
75877         immediately, so that nstrftime (NULL, ...) doesn't return 0.
75878
75879 2005-03-16  Bruno Haible  <bruno@clisp.org>
75880
75881         * modules/stdint (Makefile.am): Use HAVE_LONG_LONG_64BIT instead of
75882         HAVE_LONGLONG_64BIT.
75883
75884 2005-03-16  Bruno Haible  <bruno@clisp.org>
75885
75886         * m4/stdint.m4 (gl_STDINT_H): Define HAVE_LONG_LONG_64BIT instead of
75887         HAVE_LONGLONG_64BIT.
75888
75889 2005-03-16  Bruno Haible  <bruno@clisp.org>
75890
75891         * lib/stdint_.h: Use HAVE_LONG_LONG_64BIT instead of
75892         HAVE_LONGLONG_64BIT.
75893
75894 2005-03-15  Paul Eggert  <eggert@cs.ucla.edu>
75895
75896         * lib/strftime.c (my_strftime): Prepend space to format so that we can
75897         reliably distinguish strftime failure from empty output on POSIX
75898         hosts.
75899
75900 2005-03-15  Paul Eggert  <eggert@cs.ucla.edu>
75901
75902         * lib/iconvme.c (SIZE_MAX): New macro, if not already defined.
75903         (iconv_string): Don't guess a size-zero buffer, as that might cause
75904         buffer overrun.  Instead, avoid multiplying by MB_LEN_MAX if the
75905         result would be 'too large', where 'too large' is (heuristically)
75906         the square root of SIZE_MAX, divided by MB_LEN_MAX to allay
75907         overflow concerns.  This will prevent some unwanted malloc failures
75908         when the inputs are very large.
75909
75910 2005-03-15  Karl Berry  <karl@gnu.org>
75911
75912         * config/srclist.txt (config.rpath): from gettext.
75913         * config/config.rpath: update.
75914
75915 2005-03-15  Bruno Haible  <bruno@clisp.org>
75916
75917         * lib/regex.c (byte_re_match_2_internal): Rename local variable 'not'
75918         to 'negate'.
75919
75920         * lib/regex.c (byte_re_match_2_internal): Reduce scope of same_str_p
75921         variable.
75922
75923         * lib/regex.c (EXTEND_BUFFER, regcomp): Cast the realloc/malloc
75924         results.
75925
75926 2005-03-14  Simon Josefsson  <jas@extundo.com>
75927
75928         * lib/timegm.h: Use proper prototype CPP guards, reported by Dave Love
75929         <fx@gnu.org>.
75930
75931 2005-03-14  Paul Eggert  <eggert@cs.ucla.edu>
75932
75933         * lib/mktime.c (TYPE_TWOS_COMPLEMENT, TYPE_ONES_COMPLEMENT,
75934         TYPE_SIGNED_MAGNITUDE, TYPE_MINIMUM, TYPE_MAXIMUM): Sync from
75935         intprops.h.
75936         * lib/strtol.c: Likewise.
75937
75938 2005-03-14  Jim Meyering  <jim@meyering.net>
75939
75940         * lib/strftime.c (my_strftime) [HAVE_STRFTIME && ! (_NL_CURRENT
75941         && HAVE_STRUCT_ERA_ENTRY)]: Initialize the first byte of ubuf[]
75942         to be nonzero so that we (and caller) can detect the difference
75943         between a valid zero-length expansion and an error return, even
75944         when the underlying strftime fails before writing anything into
75945         that location.
75946
75947 2005-03-14  Bruno Haible  <bruno@clisp.org>
75948
75949         * m4/lib-link.m4, gettext.m4, nls.m4, po.m4:
75950         Update from GNU gettext 0.14.3.
75951
75952 2005-03-10  Jim Meyering  <jim@meyering.net>
75953
75954         * m4/save-cwd.m4 (gl_SAVE_CWD): Check for fchdir.
75955
75956 2005-03-10  Jim Meyering  <jim@meyering.net>
75957
75958         * lib/save-cwd.c [!HAVE_FCHDIR]: Define open, fchdir, and chdir_long
75959         so that this module works on systems without fchdir.
75960
75961 2005-03-09  Paul Eggert  <eggert@cs.ucla.edu>
75962
75963         Factor int-properties macros into a single file, except for
75964         glibc-related files.
75965         * lib/intprops.h: New file.
75966         * lib/getloadavg.c: Include it instead of limits.h.
75967         (INT_STRLEN_BOUND): Remove.
75968         * lib/human.c: Include intprops.h.
75969         (group_number): Use INT_STRLEN_BOUND instead of rolling it ourself.
75970         * lib/human.h (LONGEST_HUMAN_READABLE): Use 146/485 rather than
75971         302/1000.
75972         * lib/inttostr.h: Include intprops.h instead of limits.h.
75973         (INT_STRLEN_BOUND, INT_BUFSIZE_BOUND): Remove.
75974         * lib/mktime.c (TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT): New macros,
75975         for consistency with intprops.h.
75976         (time_t_is_integer, twos_complement_arithmetic): Use them.
75977         * lib/sig2str.h: Include <signal.h>, intprops.h.
75978         (INT_STRLEN_BOUND): Remove.
75979         * lib/strftime.c (TYPE_SIGNED): Remove.
75980         (INT_STRLEN_BOUND): Switch to same implementation as intprops.h.
75981         * lib/strtol.c: Adjust comments to match intprops.h.
75982         * lib/userspec.c: Include intprops.h.
75983         (TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Remove.
75984         * lib/utimecmp.c, xnanosleep.c, xstrtol.c: Likewise.
75985         * lib/utimecmp.c (utimecmp): Use TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT
75986         instead of rolling our own expressions.
75987         * lib/xstrtol.c: Include xstrtol.h first, to test interface.
75988
75989         * lib/strftime.c: Include <stdbool.h>.  Use bool where appropriate,
75990         instead of int.
75991         (my_strftime): Do not mishandle years close to INT_MAX, by doing
75992         the right thing even if adding 1900 would overflow.  Similarly
75993         for tm_mon + 1 and tm_yday + 1.
75994         Make %Y always equivalent to %C%y, and similarly for %G and %g.
75995         (DO_NUMBER, DO_NUMBER_SPACEPAD): Set digits to d, not a conditional.
75996         (DO_SIGNED_NUMBER): New macro.
75997         (my_strftime) [HAVE_TZNAME]: Don't dump core if tp->tm_dst > 1.
75998
75999 2005-03-07  Bruno Haible  <bruno@clisp.org>
76000
76001         * m4/mmap-anon.m4 (MAP_FILE, MAP_FAILED): Remove definitions.
76002
76003 2005-03-07  Bruno Haible  <bruno@clisp.org>
76004
76005         * lib/pagealign_alloc.c (MAP_FILE, MAP_FAILED): Define fallbacks.
76006
76007 2005-03-04  Derek R. Price  <derek@ximbiot.com>
76008
76009         * gnulib-tool (func_cp_if_changed, func_mv_if_changed): New functions.
76010         (func_import): Only replace files via --import when they have actually
76011         changed.
76012
76013 2005-03-03  Derek R. Price  <derek@ximbiot.com>
76014
76015         * m4/mmap-anon.m4: New file.
76016         * m4/pagealign_alloc.m4: New file.
76017
76018 2005-03-03  Derek R. Price  <derek@ximbiot.com>
76019             Bruno Haible  <bruno@clisp.org>
76020
76021         * modules/pagealign_alloc: New file.
76022         * MODULES.html.sh (Memory management functions): Add pagealign_alloc.
76023
76024 2005-03-03  Derek R. Price  <derek@ximbiot.com>
76025             Bruno Haible  <bruno@clisp.org>
76026
76027         * lib/pagealign_alloc.h: New file.
76028         * lib/pagealign_alloc.c: New file.
76029
76030 2005-03-03  Bruno Haible  <bruno@clisp.org>
76031
76032         * m4/inttypes.m4, isc-posix.m4, once-only.m4:
76033         Use an all-permissive copyright notice, recommended by RMS.
76034
76035 2005-03-02  Bruno Haible  <bruno@clisp.org>
76036
76037         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Undo the replacement here. Because
76038         of AIX, the replacement has to be done only after <string.h> is
76039         included, therefore not in config.h. stpncpy.h does the replacement,
76040         and stpncpy.c uses it.
76041
76042 2005-03-02  Bruno Haible  <bruno@clisp.org>
76043
76044         * lib/stpncpy.h (stpncpy): Define as a macro without arguments, so that
76045         stpncpy.c uses it.
76046
76047 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
76048
76049         Remove workaround for bug in Linux kernel 2.6.8 or thereabouts.
76050         The workaround isn't strictly needed for POSIX conformance, and
76051         it's too much of a pain to configure and maintain.  We'll ask
76052         people to fix their kernels instead.
76053         * lib/xnanosleep.c: Don't include gethrxtime.h or xtime.h.
76054         (NANOSLEEP_BUG_WORKAROUND): Remove.
76055         (xnanosleep): Remove the workaround.
76056
76057 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
76058
76059         * modules/gettime (Makefile.am): Remove lib_SOURCES line.
76060         Reported by Derek Price.
76061         (Include): Add "timespec.h".
76062
76063         * modules/xnanosleep (Depends-on): Remove gethrxtime.
76064
76065 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
76066
76067         * m4/xnanosleep.m4 (gl_XNANOSLEEP): Remove configuration attempting
76068         to detect nanosleep bug.
76069
76070 2005-03-01  Bruno Haible  <bruno@clisp.org>
76071
76072         * lib/vasnprintf.c (EOVERFLOW): Define to a fallback if needed.
76073
76074 2005-02-26  Paul Eggert  <eggert@cs.ucla.edu>
76075
76076         * modules/gethrxtime: New file.
76077         * modules/xnanosleep (Files): Add m4/xnanosleep.m4.
76078         (Depends-on): Add gethrxtime.
76079         (configure.ac): Add gl_XNANOSLEEP.
76080         (Makefile.am): Remove lib_SOURCES line.
76081
76082 2005-02-25  Paul Eggert  <eggert@cs.ucla.edu>
76083
76084         * m4/gethrxtime.m4, m4/xnanosleep.m4: New files.
76085         * m4/gettime.m4 (gl_GETTIME): Check for nanotime.
76086
76087 2005-02-25  Paul Eggert  <eggert@cs.ucla.edu>
76088
76089         * lib/gethrxtime.h, lib/gethrxtime.c, lib/xtime.h: New files.
76090         * lib/timespec.h (gettime): Return void, since it always
76091         succeeds now.  All uses changed.
76092         * lib/gettime.c (gettime): Likewise.
76093         [HAVE_NANOTIME]: Prefer nanotime.
76094         Assume gettimeofday succeeds, as POSIX requires.
76095         Assime time () succeeds, since other code already does.
76096         * lib/xnanosleep.c: Include xtime.h and gethrxtime.h, not xalloc.h.
76097         (timespec_subtract): Remove.
76098         (NANOSLEEP_BUG_WORKAROUND): New constant.
76099         (xnanosleep): Use gethrxtime rather than gettime; this simplifies
76100         things considerably.  Use it only on GNU/Linux hosts, since the
76101         workaround shouldn't be needed elsewhere.
76102
76103 2005-02-24  Bruno Haible  <bruno@clisp.org>
76104
76105         * modules/gettext (Files): Add m4/glibc2.m4.
76106
76107 2005-02-24  Bruno Haible  <bruno@clisp.org>
76108
76109         * m4/gettext.m4, intdiv0.m4, intmax.m4, inttypes-pri.m4, lcmessage.m4:
76110         * m4/lib-link.m4, lib-prefix.m4, nls.m4, po.m4, printf-posix.m4:
76111         * m4/progtest.m4:
76112         Update from GNU gettext 0.14.2.
76113         * m4/glibc2.m4: New file, from GNU gettext 0.14.2.
76114
76115 2005-02-24  Bruno Haible  <bruno@clisp.org>
76116
76117         * lib/localcharset.c: Update from GNU gettext 0.14.2.
76118         * lib/config.charset: Update from GNU gettext 0.14.2.
76119
76120 2005-02-24  Bruno Haible  <bruno@clisp.org>
76121
76122         * lib/gettext.h: Update from GNU gettext 0.14.2.
76123
76124 2005-02-23  Simon Josefsson  <jas@extundo.com>
76125
76126         * m4/iconvme.m4: New file.
76127
76128 2005-02-23  Jim Meyering  <jim@meyering.net>
76129
76130         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Revert yesteday's
76131         change.
76132         Thanks to Bruno Haible for catching it.
76133
76134 2005-02-22  Simon Josefsson  <jas@extundo.com>
76135
76136         * modules/iconvme: New file.
76137
76138         * MODULES.html.sh: Add iconvme.
76139
76140 2005-02-22  Simon Josefsson  <jas@extundo.com>
76141
76142         * lib/iconvme.h, lib/iconvme.c: New files, from libc.
76143
76144 2005-02-22  Simon Josefsson  <jas@extundo.com>
76145
76146         * config/srclist.txt: Sync iconvme.h, iconvme.c from libc.
76147
76148 2005-02-22  Jim Meyering  <jim@meyering.net>
76149
76150         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Fix typo:
76151         s/ifndef/ifdef/.
76152
76153 2005-02-20  Neil Conway  <neilc@samurai.com>
76154
76155         * lib/xgethostname.c (xgethostname): Check for ENOMEM, which is
76156         returned by OSX/Darwin if the specified buffer is not large
76157         enough for the hostname.
76158
76159 2005-02-03  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
76160
76161         * lib/argp-help.c (__argp_help): Create a fake struct argp_state and
76162         pass it to _help, otherwise the latter coredumps trying to
76163         dereference state.root_argp.
76164
76165 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
76166
76167         * modules/chdir-long (Depends-on): Add memrchr.
76168         * modules/memrchr (Files): Add lib/memrchr.h.
76169         (Include): "memrchr.h".
76170
76171 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
76172
76173         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Add AC_LIBSOURCES, for memrchr.h.
76174
76175 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
76176
76177         * lib/memrchr.h: New file.
76178         * lib/chdir-long.c: Include it.
76179         * lib/memrchr.c [!defined _LIBC]: Include it rather than <string.h>
76180         Don't bother including stddef.h.
76181
76182 2005-02-01  Paul Eggert  <eggert@cs.ucla.edu>
76183
76184         * lib/mountlist.h (MOUNTLIST_H_): New macro, to protect against double
76185         inclusion.
76186         Include <sys/types.h>, for dev_t.
76187         (ME_DUMMY, ME_REMOTE): Move from here....
76188         * lib/mountlist.c (ME_DUMMY, ME_REMOTE): To here.
76189         (ME_DUMMY): Count "subfs" as a dummy.  Problem reported by
76190         Dmitry V. Levin.
76191         Include mountlist.h first, to test the interface.
76192
76193 2005-01-29  Bruno Haible  <bruno@clisp.org>
76194
76195         * lib/progname.c (program_name): Initialize.
76196         Needed when linking statically on MacOS X.
76197
76198 2005-01-28  Paul Eggert  <eggert@cs.ucla.edu>
76199
76200         Sync from coreutils.
76201         * modules/getloadavg (Files): Remove m4/getloadavg.m4.
76202         (Depends-on): Add c-strtod.
76203         (configure.ac): Replace gl_FUNC_GETLOADAVG with AC_FUNC_GETLOADAVG.
76204
76205 2005-01-28  Paul Eggert  <eggert@cs.ucla.edu>
76206
76207         Sync from coreutils.
76208         * m4/getloadavg.m4, glibc.m4, search-libs.m4: Remove.
76209
76210         Remove files that are specific to coreutils.
76211         * m4/check-decl.m4, jm-macros.m4, lib-check.m4, prereq.m4: Remove.
76212
76213 2005-01-28  Bruno Haible  <bruno@clisp.org>
76214
76215         * modules/javacomp: New file.
76216         * MODULES.html.sh (Java): Add javacomp.
76217
76218 2005-01-28  Bruno Haible  <bruno@clisp.org>
76219
76220         * m4/javacomp.m4: New file, from GNU gettext.
76221
76222 2005-01-28  Bruno Haible  <bruno@clisp.org>
76223
76224         * lib/javacomp.sh.in: New file, from GNU gettext.
76225         * lib/javacomp.h: New file, from GNU gettext.
76226         * lib/javacomp.c: New file, from GNU gettext.
76227
76228 2005-01-26  Simon Josefsson  <jas@extundo.com>
76229
76230         * lib/gai_strerror.c: Use GPL in header.
76231
76232 2005-01-26  Bruno Haible  <bruno@clisp.org>
76233
76234         * modules/javaexec: New file.
76235         * MODULES.html.sh (Java): Add javaexec.
76236
76237 2005-01-26  Bruno Haible  <bruno@clisp.org>
76238
76239         * m4/javaexec.m4: New file, from GNU gettext.
76240
76241 2005-01-26  Bruno Haible  <bruno@clisp.org>
76242
76243         * lib/javaexec.sh.in: New file, from GNU gettext.
76244         * lib/javaexec.h: New file, from GNU gettext.
76245         * lib/javaexec.c: New file, from GNU gettext.
76246
76247 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
76248
76249         * modules/lchown (Depends-on): Remove lchown.h
76250
76251 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
76252
76253         * m4/sysexits.m4 (gl_SYSEXITS): Reverted logic. SYSEXITS_H
76254         must be defined if the header file was not found, in order
76255         to provide a replacement. Reported by Todd Vierling <tv@duh.org>
76256
76257 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
76258
76259         * lib/argp-help.c (hol_entry_help): Avoid using non-constant
76260         initializers for struct pentry_state.
76261         (__argp_error): Check return value of __asprintf
76262         (__argp_failure): Translate error message
76263
76264         * lib/argp-parse.c: Removed braces around the expansion of N_()
76265
76266 2005-01-23  Paul Eggert  <eggert@cs.ucla.edu>
76267
76268         * m4/acl.m4, afs.m4, alloca.m4, argp.m4, assert.m4, atexit.m4,
76269         backupfile.m4, base64.m4, bison.m4, c-bs-a.m4, c-stack.m4,
76270         c-strtod.m4, calloc.m4, canon-host.m4, canonicalize.m4,
76271         clock_time.m4, cloexec.m4, closeout.m4, d-ino.m4, d-type.m4,
76272         dirfd.m4, dirname.m4, dos.m4, dup2.m4, error.m4, euidaccess.m4,
76273         exclude.m4, exitfail.m4, extensions.m4, fcntl-safer.m4,
76274         file-type.m4, fileblocks.m4, filemode.m4, fnmatch.m4, fpending.m4,
76275         free.m4, fstypename.m4, fsusage.m4, ftruncate.m4, getaddrinfo.m4,
76276         getcwd-path-max.m4, getcwd.m4, getdate.m4, getdomainname.m4,
76277         getgroups.m4, gethostname.m4, getline.m4, getndelim2.m4,
76278         getnline.m4, getopt.m4, getpagesize.m4, getpass.m4, getsubopt.m4,
76279         gettime.m4, gettimeofday.m4, getugroups.m4, getusershell.m4,
76280         group-member.m4, hard-locale.m4, hash.m4, host-os.m4, human.m4,
76281         idcache.m4, inttostr.m4, isdir.m4, jm-winsz1.m4, jm-winsz2.m4,
76282         link-follow.m4, long-options.m4, ls-mntd-fs.m4, lstat.m4,
76283         makepath.m4, mathl.m4, md5.m4, memcasecmp.m4, memchr.m4,
76284         memcmp.m4, memcoll.m4, memcpy.m4, memmem.m4, memmove.m4,
76285         memrchr.m4, memset.m4, mkdir-slash.m4, mkstemp.m4, mktime.m4,
76286         modechange.m4, mountlist.m4, nanosleep.m4, obstack.m4,
76287         path-concat.m4, pathmax.m4, perl.m4, physmem.m4, poll.m4,
76288         posixtm.m4, posixver.m4, putenv.m4, quote.m4, quotearg.m4,
76289         readdir.m4, readtokens.m4, readutmp.m4, regex.m4, rename.m4,
76290         restrict.m4, rmdir-errno.m4, rmdir.m4, rpmatch.m4, same.m4,
76291         savedir.m4, settime.m4, sha1.m4, sig2str.m4, snprintf.m4,
76292         sockpfaf.m4, st_dm_mode.m4, st_mtim.m4, stat.m4, stdint.m4,
76293         stdio-safer.m4, strchrnul.m4, strdup.m4, strerror.m4,
76294         strerror_r.m4, strftime.m4, strndup.m4, strnlen.m4, strsep.m4,
76295         strtod.m4, strtoimax.m4, strtok_r.m4, strtol.m4, strtoll.m4,
76296         strtoul.m4, strtoull.m4, strtoumax.m4, strverscmp.m4, sysexits.m4,
76297         time_r.m4, timegm.m4, timespec.m4, tm_gmtoff.m4, tzset.m4,
76298         uint32_t.m4, uintptr_t.m4, unistd-safer.m4, unlink-busy.m4,
76299         unlocked-io.m4, uptime.m4, userspec.m4, utimbuf.m4, utime.m4,
76300         utimecmp.m4, utimens.m4, utimes-null.m4, vsnprintf.m4, xalloc.m4,
76301         xgetcwd.m4, xreadlink.m4, xstrndup.m4, xstrtod.m4, xstrtoimax.m4,
76302         xstrtol.m4, xstrtoumax.m4, yesno.m4:
76303         Use an all-permissive copyright notice, recommended by RMS.
76304
76305 2005-01-21  Paul Eggert  <eggert@cs.ucla.edu>
76306
76307         * modules/chdir-long (Depends-on): Remove mempcpy.
76308
76309 2005-01-21  Jim Meyering  <jim@meyering.net>
76310
76311         * lib/openat.h (AT_SYMLINK_NOFOLLOW): Define to 4096, so it's the
76312         same value as for Solaris 9.
76313
76314         * lib/chdir-long.c (chdir_long): Rewrite to remove limitation on
76315         component length.  This included changing the parameter to be
76316         of type `char *' rather than `char const *'.
76317         * lib/chdir-long.h (chdir_long): Update prototype.
76318
76319         * lib/openat.c (fdopendir, fstatat): New functions.
76320         * lib/openat.h: Include headers required for use of DIR and struct
76321         stat.
76322         [AT_SYMLINK_NOFOLLOW]: Define.
76323         (fdopendir, fstatat): Add prototypes.
76324
76325 2005-01-21  Bruno Haible  <bruno@clisp.org>
76326
76327         * modules/classpath: New file.
76328         * MODULES.html.sh (Java): Add classpath.
76329
76330 2005-01-21  Bruno Haible  <bruno@clisp.org>
76331
76332         * lib/classpath.h: New file, from GNU gettext.
76333         * lib/classpath.c: New file, from GNU gettext.
76334
76335 2005-01-20  Simon Josefsson  <jas@extundo.com>
76336
76337         * modules/version-etc-fsf: New file.
76338
76339 2005-01-20  Simon Josefsson  <jas@extundo.com>
76340
76341         * lib/version-etc-fsf.c: New file, with version_etc_copyright.
76342         * lib/version-etc.c: Remove version_etc_copyright.
76343         * lib/version-etc.h (version_etc_copyright): Use [] instead of * in
76344         prototype, suggested by Paul Eggert <eggert@CS.UCLA.EDU>.
76345
76346 2005-01-20  Simon Josefsson  <jas@extundo.com>
76347
76348         * lib/base64.h (isbase64): Add.
76349
76350         * lib/base64.c (isb64): Rename to isbase64, use to_uchar instead of
76351         using a unsigned prototype, don't inline.
76352         (base64_decode): Use it.
76353
76354 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
76355
76356         * m4/save-cwd.m4 (gl_SAVE_CWD): Remove check for fcntl; we now assume
76357         it.
76358
76359 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
76360
76361         * lib/save-cwd.c (save_cwd): Remove code to support the case
76362         where fchdir is missing or flaky.
76363
76364 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
76365
76366         * MODULES.html.sh (Command-line arguments): Add version-etc-fsf.
76367
76368 2005-01-19  Paul Eggert  <eggert@cs.ucla.edu>
76369
76370         * modules/mempcpy (Makefile.am): Remove mention of mempcpy.h;
76371         AC_LIBSOURCES now does this.
76372         * MODULES.html.sh (Sizes of integer types <limits.h>): New element,
76373         with new ullong_max module.
76374
76375 2005-01-19  Bruno Haible  <bruno@clisp.org>
76376
76377         * modules/sh-quote: New file.
76378         * MODULES.html.sh (Executing programs): Add sh-quote.
76379
76380 2005-01-19  Bruno Haible  <bruno@clisp.org>
76381
76382         * lib/sh-quote.h: New file, from GNU gettext.
76383         * lib/sh-quote.c: New file, from GNU gettext.
76384
76385 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
76386
76387         Merge from coreutils.
76388         * m4/ullong_max.m4: New file.
76389         * m4/jm-macros.m4 (gl_MACROS): Require gl_ULLONG_MAX.
76390         (gl_MACROS): Assume localeconv exists.
76391
76392 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
76393
76394         Merge changes from coreutils, as described below in several
76395         changelogs dated today.
76396
76397         * lib/save-cwd.c: Include "save-cwd.h" before other include files.
76398         (O_DIRECTORY): Remove; not needed here, since "." must be
76399         a directory.  All uses removed.
76400         (save_cwd): Use __sgi || __sun, not sun || __sun.  __sun is
76401         universal on Suns, and we also need to test for IRIX.
76402         Revamp code to use 'if' rather than '#if'.
76403         Avoid unnecessary comparison of cwd->desc to 0.
76404
76405         * lib/utimens.c (futimens): Robustify the previous patch, by checking
76406         for known valid error numbers rather than observed invalid ones.
76407
76408 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
76409
76410         * modules/ullong_max: New file.
76411
76412         * modules/chdir-long, modules/openat: New files.
76413         * modules/save-cwd (Depends-on): Depend on chdir-long.
76414         (Makefile.am): Remove lib_SOURCES; now handled by AC_LIBSOURCES.
76415
76416 2005-01-18  Jim Meyering  <jim@meyering.net>
76417
76418         Merge from coreutils.
76419         * m4/chdir-long.m4, m4/openat.m4: New files.
76420         * m4/save-cwd.m4 (gl_SAVE_CWD): Add AC_LIBSOURCES for save-cwd.c,
76421         save-cwd.h.  Add AC_LIBOBJ for save-cwd.
76422         * m4/chown.m4 (gl_FUNC_CHOWN): When cross-compiling, assume that chown
76423         is sane and DOES follow symlinks.  Besides, testing 20 different
76424         systems found no broken chown implementations.
76425         Prompted by a change in rsync's copy of this macro.
76426         * m4/jm-macros.m4 (gl_MACROS): Require gl_FUNC_CHDIR_LONG.
76427
76428         * m4/lchown.m4 (gl_FUNC_LCHOWN): Use AC_LIBSOURCES.
76429
76430         * m4/utimes.m4: Work around tests/touch/empty-file failure on a system
76431         (sparc64, Linux-2.4.28, glibc-2.3.3) that didn't honor utimes'
76432         NULL-means-set-to-current-time semantics.
76433         Remove temporary file immediately, rather than waiting
76434         for configure's at-exit trap code to do it.
76435
76436 2005-01-18  Jim Meyering  <jim@meyering.net>
76437
76438         * lib/version-etc.c (version_etc_copyright): Update copyright date.
76439
76440         * lib/utimens.c (futimens): Account for the fact that futimes
76441         can also fail with errno == ENOSYS or errno == ENOENT.
76442         Patch from Dmitry V. Levin.
76443
76444         Change the name of the robust chdir function from chdir to chdir_long.
76445         * lib/save-cwd.c: Include chdir-long.h rather than chdir.h.
76446         (restore_cwd): Use chdir_long, not chdir.
76447         * lib/chdir-long.c: Renamed from chdir.c.
76448         * lib/chdir-long.h: Renamed from chdir.h.
76449         [!defined PATH_MAX]: Define chdir_long to chdir on systems like the
76450         Hurd.
76451
76452 2005-01-18  Bruno Haible  <bruno@clisp.org>
76453
76454         * m4/allocsa.m4, m4/codeset.m4, m4/copy-file.m4, m4/eaccess.m4:
76455         * m4/eealloc.m4, m4/eoverflow.m4, m4/execute.m4, m4/fatal-signal.m4:
76456         * m4/findprog.m4, m4/glibc21.m4, m4/iconv.m4, m4/intmax_t.m4:
76457         * m4/inttypes_h.m4, m4/lib-ld.m4, m4/lib-link.m4, m4/lib-prefix.m4:
76458         * m4/linebreak.m4, m4/localcharset.m4, m4/longdouble.m4:
76459         * m4/longlong.m4, m4/mbrtowc.m4, m4/mbstate_t.m4, m4/mbswidth.m4:
76460         * m4/mkdtemp.m4, m4/pipe.m4, m4/readlink.m4, m4/safe-read.m4:
76461         * m4/safe-write.m4, m4/setenv.m4, m4/sig_atomic_t.m4:
76462         * m4/signalblocking.m4, m4/signed.m4, m4/size_max.m4, m4/ssize_t.m4:
76463         * m4/stdbool.m4, m4/stdint_h.m4, m4/stpcpy.m4, m4/stpncpy.m4:
76464         * m4/strcase.m4, m4/strcspn.m4, m4/strpbrk.m4, m4/strstr.m4:
76465         * m4/ucs4-utf.m4, m4/uintmax_t.m4, m4/ulonglong.m4, m4/unicodeio.m4:
76466         * m4/utf-ucs4.m4, m4/vasnprintf.m4, m4/vasprintf.m4:
76467         * m4/wait-process.m4, m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4:
76468         Use an all-permissive copyright notice, recommended by RMS.
76469
76470 2005-01-18  Bob Proulx  <bob@proulx.com>
76471
76472         * lib/obstack.c [DEFAULT_ALIGNMENT]: Use an intermediate type to
76473         simplify offsetof() macro construct to avoid compile failure with
76474         native HP-UX 11.0 ANSI C compiler.
76475
76476 2005-01-17  Bruno Haible  <bruno@clisp.org>
76477
76478         * lib/stpncpy.c: Remove HAVE_STPNCPY and gnu_stpncpy renaming,
76479         redundant because stpncpy.m4 takes care of it.
76480
76481 2005-01-17  Bruno Haible  <bruno@clisp.org>
76482
76483         * lib/progreloc.c: Include xalloc.h instead of xmalloc.h.
76484
76485 2005-01-17  Bruno Haible  <bruno@clisp.org>
76486
76487         * lib/progreloc.c (xstrdup): Define as strdup if no xmalloc should be
76488         used.
76489
76490 2005-01-17  Bruno Haible  <bruno@clisp.org>
76491
76492         * lib/fwriteerror.h (fwriteerror): Change specification to include
76493         fclose.
76494         * lib/fwriteerror.c: Include <stdbool.h>.
76495         (fwriteerror): At the end, close the file stream. Record whether
76496         stdout was already closed.
76497
76498 2005-01-17  Bruno Haible  <bruno@clisp.org>
76499
76500         * lib/execute.c (environ): Declare if needed.
76501         * lib/pipe.c (environ): Likewise.
76502         Reported by Michael Schloh von Bennewitz <michael.schloh@cw.com>.
76503
76504 2005-01-11  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
76505
76506         * modules/argp: Depend on vsnprintf
76507
76508 2005-01-10  Jim Meyering  <jim@meyering.net>
76509
76510         * modules/closeout (Depends-on): Add atexit.
76511
76512 2005-01-06  Bruno Haible  <bruno@clisp.org>
76513
76514         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Rename stpncpy to gnu_stpncpy here.
76515
76516 2005-01-04  Paul Eggert  <eggert@cs.ucla.edu>
76517
76518         * lib/human.c (SIZE_MAX, UINTMAX_MAX): Move these conditional
76519         definitions to be after all include files, to avoid collisions.
76520         Problem reported by Bob Proulx.
76521
76522 2005-01-04  Jim Meyering  <jim@meyering.net>
76523
76524         Changes imported from coreutils.
76525         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Rather than using "conftestXXXXXX"
76526         as the mkstemp template, use a temporary directory and an
76527         8.3-friendly template to avoid trouble on systems like DJGPP.
76528         Reported by Juan M. Guerrero via Stepan Kasal.
76529         * m4/(gl_FUNC_MKSTEMP): Include <unistd.h> for the declaration of
76530         close. Remove the temporary directory right away, rather than waiting
76531         for configure's at-exit trap code to do it.
76532         Suggestion from Stepan Kasal.
76533
76534 2005-01-01  Simon Josefsson  <jas@extundo.com>
76535
76536         * gnulib-tool: Print #include directives when --import'ing.
76537
76538 2004-12-28  Simon Josefsson  <jas@extundo.com>
76539
76540         * tests/test-base64.c: Include required header files.  Remove
76541         unused variables.
76542
76543 2004-12-28  Paul Eggert  <eggert@cs.ucla.edu>
76544
76545         * modules/error (Depends-on): Remove gettext.
76546
76547 2004-12-28  Paul Eggert  <eggert@cs.ucla.edu>
76548
76549         * lib/error.c [!_LIBC && !ENABLE_NLS]: Do not include "gettext.h";
76550         not needed.  This removes a dependency on the gettext module.
76551         [defined _LIBC]: Do not include <libintl.h>; not needed.
76552
76553 2004-12-24  Paul Eggert  <eggert@cs.ucla.edu>
76554
76555         * m4/c-strtod.m4 (gl_C99_STRTOLD): New macro.
76556         (gl_C_STRTOD): Use it instead of AC_CHECK_DECLS_ONCE(strtold).
76557
76558 2004-12-24  Paul Eggert  <eggert@cs.ucla.edu>
76559
76560         * lib/c-strtod.c (STRTOD): Depend on HAVE_C99_STRTOLD, not
76561         HAVE_DECL_STRTOLD.
76562
76563 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
76564
76565         * modules/getdate (Depends-on): Remove alloca-opt.
76566
76567 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
76568
76569         * m4/getdate.m4 (gl_GETDATE): Remove AC_FUNC_ALLOCA.
76570
76571 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
76572
76573         * lib/argp-parse.c: Include <stddef.h>.
76574         (alignof, alignto): New macros.
76575         (parser_init): Don't assume that void * is aligned sufficiently
76576         for struct option.
76577
76578         * lib/getdate.y (YYSTACK_USE_ALLOCA): Define to 0, since there's no
76579         need to extend the stack.
76580         (YYINITDEPTH): New macro, so that the initial stack isn't overly
76581         large.
76582
76583 2004-12-22  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
76584
76585         * lib/argp-parse.c (parser_init): Avoid arithmetics on void pointers.
76586
76587 2004-12-19  Paul Eggert  <eggert@cs.ucla.edu>
76588
76589         * modules/regex (lib_SOURCES): Remove regex.c, undoing previous
76590         (2004-10-24) change.  Apparently this was a false alarm.
76591
76592         * modules/getdate: Depend on alloca-opt, not alloca.
76593
76594 2004-12-19  Paul Eggert  <eggert@cs.ucla.edu>
76595
76596         * lib/alloca_.h: Conditionalize on _GNULIB_ALLOCA_H, not _ALLOCA_H.
76597         Remove now-obsolete comment about AIX.
76598         * lib/getdate.y: Include <alloca.h> only if HAVE_ALLOCA.
76599         (YYSTACK_USE_ALLOCA): Define to 0 if !HAVE_ALLOCA.
76600         (YYMAXDEPTH): New macro.
76601
76602 2004-12-18  Simon Josefsson  <jas@extundo.com>
76603
76604         * modules/alloca: Depend on alloca-opt, instead of duplicating it.
76605
76606 2004-12-18  Bruno Haible  <bruno@clisp.org>
76607
76608         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Also test for sigaction.
76609
76610 2004-12-18  Bruno Haible  <bruno@clisp.org>
76611
76612         * lib/fatal-signal.c (fatal_signals): Make non-const.
76613         (init_fatal_signals): New function.
76614         (uninstall_handlers, install_handlers): Ignore signals that were set to
76615         SIG_IGN.
76616         (at_fatal_signal): Call init_fatal_signals.
76617         (init_fatal_signal_set): Likewise. Ignore signals that were set to
76618         SIG_IGN.
76619         Reported by Paul Eggert.
76620
76621 2004-12-18  Bruno Haible  <bruno@clisp.org>
76622
76623         * doc/alloca.texi: New file.
76624         * doc/alloca-opt.texi: New file.
76625
76626 2004-12-17  Jim Meyering  <jim@meyering.net>
76627
76628         * config/install-sh: Use `(exit N); exit N', not `(exit N); exit'.
76629         Otherwise, install-sh could exit with improper exit status when
76630         exiting via a trapped interrupt.  Thanks to a report from Bob Proulx.
76631
76632 2004-12-16  Simon Josefsson  <jas@extundo.com>
76633
76634         * tests/test-base64.c: Add license.
76635
76636 2004-12-15  Stepan Kasal  <address@hidden>
76637
76638         * gnulib-tool (func_emit_lib_Makefile_am): Shorten a long sed command.
76639
76640 2004-12-12  Paul Eggert  <eggert@cs.ucla.edu>
76641
76642         * modules/getcwd (Files): Add m4/d-ino.m4.
76643         Suggested by Mark D. Baushke.
76644
76645 2004-12-08  Paul Eggert  <eggert@cs.ucla.edu>
76646
76647         * lib/getdate.y (textint): New member "negative".
76648         (time_zone_hhmm): New function.
76649         Expect 14 shift-reduce conflicts, not 13.
76650         (o_colon_minutes): New rule.
76651         (time, zone): Use it to add support for +HH:MM, UTC+HH:MM.
76652         (yylex): Set the "negative" member of signed numbers.
76653
76654 2004-12-08  Paul Eggert  <eggert@cs.ucla.edu>
76655
76656         * doc/getdate.texi (Time of day items, Time zone items):
76657         Describe new formats +00:00, UTC+00:00.
76658
76659 2004-12-07  Paul Eggert  <eggert@cs.ucla.edu>
76660
76661         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Fix typo in previous change:
76662         spurious "-l"s.  Problem reported by Stepan Kasal.
76663
76664 2004-12-06  Paul Eggert  <eggert@cs.ucla.edu>
76665
76666         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): New macro, to work around bug
76667         in Autoconf 2.59.  Problem reported by Mark D. Baushke.
76668
76669 2004-12-04  Simon Josefsson  <jas@extundo.com>
76670
76671         * modules/getaddrinfo (License): Add LGPL, reported by Yoann
76672         Vandoorselaere <yoann@prelude-ids.org>.
76673
76674 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
76675
76676         Changes imported from coreutils.
76677         * m4/hard-locale.m4 (gl_HARD_LOCALE): Assume locale.h and setlocale
76678         exist.
76679         * m4/human.m4 (gl_HUMAN): Assume locale.h and localeconv exist.
76680
76681 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
76682
76683         Changes imported from coreutils.
76684         * lib/hard-locale.c: Assume <locale.h> exists.
76685         Include "strdup.h".
76686         (GLIBC_VERSION): New macro.
76687         (hard_locale): Assume setlocale exists.
76688         Rewrite to avoid #ifdef.
76689         Use strdup rather than malloc + strcpy.
76690         * lib/human.c: Assume <locale.h> exists.
76691         (human_readable): Assume localeconv exists.
76692
76693 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
76694
76695         * modules/hard-locale (Depends-on): Add strdup.
76696
76697 2004-12-01  Jakub Jelinek  <jakub@redhat.com>
76698
76699         * lib/mktime.c (__mktime_internal): If SEC_REQUESTED != SEC,
76700         convert T2, not T.  (Imported from libc.)
76701
76702 2004-11-30  Simon Josefsson  <jas@extundo.com>
76703
76704         * modules/restrict (License): Change to LGPL.
76705
76706 2004-11-30  Simon Josefsson  <jas@extundo.com>
76707
76708         * m4/restrict.m4: Add copyright and copying conditions.
76709
76710 2004-11-30  Simon Josefsson  <jas@extundo.com>
76711
76712         * m4/base64.m4: New file.
76713
76714 2004-11-30  Simon Josefsson  <jas@extundo.com>
76715
76716         * MODULES.html.sh (Extra functions based on ANSI C 89): Add
76717         base64.
76718
76719         * tests/test-base64.c: New file.
76720
76721         * modules/base64: New file.
76722
76723 2004-11-30  Paul Eggert  <eggert@cs.ucla.edu>
76724
76725         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX):
76726         Define HAVE_PARTLY_WORKING_GETCWD if getcwd is partly working.
76727
76728         * m4/readutmp.m4 (gl_READUTMP): Don't check for sys/param.h.
76729
76730 2004-11-30  Paul Eggert  <eggert@cs.ucla.edu>
76731
76732         * lib/getcwd.c (is_ENAMETOOLONG): New macro.
76733         (__getcwd.c): Don't restore errno; glibc doesn't.
76734         [HAVE_PARTLY_WORKING_GETCWD && !defined AT_FDCWD]: Try system getcwd
76735         first, falling back to our code only if its results look suspicious.
76736         Ensure that the resulting buffer is only as large as necessary.
76737
76738         * lib/readutmp.c: Include readutmp.h first.
76739         Include <errno.h>, since readutmp.h no longer does that.
76740         * lib/readutmp.h: Don't include <errno.h>,
76741         <sys/param.h>, <time.h>; not needed to establish interface.
76742         (errno): Remove decl.
76743         (HAVE_STRUCT_XTMP_UT_TYPE): Remove; no longer needed.
76744         (UT_TYPE_EQ, UT_TYPE_NOT_DEFINED, UT_TYPE_BOOT_TIME,
76745         UT_TYPE_USER_PROCESS, IS_USER_PROCESS): New macros.
76746
76747 2004-11-28  Simon Josefsson  <jas@extundo.com>
76748
76749         * lib/base64.h, base64.c: New file.
76750
76751 2004-11-27  Paul Eggert  <eggert@cs.ucla.edu>
76752
76753         * lib/getcwd.h: New file, which I forgot to check in on 2004-11-25.
76754
76755 2004-11-26  Paul Eggert  <eggert@cs.ucla.edu>
76756
76757         * modules/getcwd (Files): Add lib/getcwd.h, m4/getcwd.m4.
76758         (Depends-on): Remove pathmax, same.  Add mempcpy.
76759         (configure.ac): GL_FUNC_GETCWD_PATH_MAX -> gl_FUNC_GETCWD.
76760         (Makefile.am): Append getcwd.h to lib_SOURCES.
76761         (Include): Add getcwd.h.
76762         (Maintainer): Change from Jim Meyering to "all, glibc",
76763         since getdate now uses intended-for-glibc code.
76764         * modules/xgetcwd (Files): Remove m4/getcwd.m4.
76765         (Depends-on): Depend on getcwd.  Do not depend on pathmax.
76766
76767 2004-11-25  Paul Eggert  <eggert@cs.ucla.edu>
76768
76769         Fix problems reported by Scott S. Tinsley for HP-UX 11.11 using
76770         HP's ANSI C compiler.
76771         * lib/fsusage.c (statvfs) [HAVE_SYS_STATVFS_H]: Remove decl.
76772         Declaring int functions causes warnings on some modern systems and
76773         shouldn't be needed to compile on ancient ones.
76774         * lib/same.c (MIN) [defined MIN]: Don't define, since it's already
76775         defined.
76776
76777         * lib/getcwd.c: Replace by a copy of glibc/sysdeps/posix/getcwd.c, but
76778         with the following changes.
76779         (__set_errno): Parenthesize properly.
76780         Include <stdbool.h>.
76781         (MIN, MAX, MATCHING_INO): New macros.
76782         (__getcwd): Define with prototype, not K&R form.
76783         Use heuristics to allocate default buffer on stack if possible.
76784         If AT_FDCWD is defined, use openat and fstatat to avoid O(N**2)
76785         behavior, and to avoid the PATH_MAX limit when computing
76786         ../../../../...
76787         Use MATCHING_INO to compare inode number to file.
76788         Check for arithmetic overflow in size calculations.
76789         Fix bug in reallocation of dot array that caused getcwd to fail
76790         on directories nested deeper than 75.
76791         Be more careful about saving errno on error.
76792         Do not use realloc; use only free+malloc, as this is a bit
76793         more flexible and avoids a needless copy operation.
76794         Do not inspect st_dev and st_ino for symbolic links; POSIX
76795         doesn't specify the latter.
76796         Check for closedir errors.
76797         Avoid needless casts.
76798         Use "#ifdef weak_alias" around weak_alias, to be like other
76799         glibc code.
76800         The following changes to getcwd.c have effect only when used in
76801         gnulib; they have no effect inside glibc proper.
76802         (#pragma alloca) [defined _AIX && !defined __GNUC__]: Remove,
76803         as alloca isn't used.
76804         (alloca, __alloca): Likewise.
76805         [!_LIBC]: Include "getcwd.h", "mempcpy.h".
76806         Include <stddef.h>, <stdlib.h>, <string.h>, <limits.h>
76807         unconditionally, as gnulib assumes C89 or better.
76808         Do not include <sys/param.h>.
76809         (errno) [!defined __GNU_LIBRARY__ && !defined STDC_HEADERS]: Remove
76810         no-longer-necessary 'extern int errno' decl; gnulib assumes C89 or
76811         better.
76812         (NULL) [!defined NULL]: Remove; we assume C89 or better.
76813         Include <dirent.h> in a way that is compatible with modern Autoconf.
76814         (_D_ALLOC_NAMELEN, _D_EXACT_NAMLEN):
76815         New macros, if not already defined.
76816         Include <unistd.h> if _LIBC, not if __GNU_LIBRARY__.
76817         Use "_LIBC", not "defined _LIBC", for consistency.
76818         (HAVE_MEMPCPY): Remove; no longer needed now that gnulib has
76819         a mempcpy module.
76820         (__lstat, __closedir, __opendir, __readdir) [!_LIBC]: New macros.
76821         (GETCWD_RETURN_TYPE): Remove.  All uses replaced by char *.
76822         * lib/xgetcwd.c: David MacKenzie's old code was removed, so give
76823         credit only to Jim Meyering and adjust the copyright dates.
76824         Do not include <limits.h>, <stdio.h>, <sys/types.h>,
76825         <stdlib.h>, <unistd.h>, "pathmax.h".
76826         Instead, include "xgetcwd.h" (first) and "getcwd.h".
76827         (INITIAL_BUFFER_SIZE): Remove.
76828         (xgetcwd): Rely on getcwd, since we now depend on a reliable one.
76829
76830 2004-11-25  Paul Eggert  <eggert@cs.ucla.edu>
76831
76832         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Renamed from
76833         GL_FUNC_GETCWD_PATH_MAX for consistency.  All uses changed.
76834         Use the _ONCE methods, for efficiency.
76835         Check for fcntl.h.  In test program, include <errno.h>
76836         and <fcntl.h> if available.  Remove old K&R cruft from
76837         test program.  Check for common errors in GNU/Linux,
76838         OpenBSD, and Solaris.  Just set gl_cv_func_getcwd_path_max;
76839         don't do AC_LIBOBJ, as that's getcwd.m4's job.
76840         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Renamed from
76841         AC_FUNC_GETCWD_NULL.  All used changed.  Change cache variable
76842         name accordingly.
76843         (gl_FUNC_GETCWD, gl_PREREQ_GETCWD): New macros.  Revamp to
76844         accommodate new getcwd.c.
76845         * m4/jm-macros.m4 (gl_MACROS): Don't require GL_FUNC_GETCWD_PATH_MAX.
76846         * m4/prereq.m4 (gl_PREREQ): Add gl_FUNC_MEMPCPY.
76847         * m4/xgetcwd.m4 (gl_XGETCWD): Replace with gl_FUNC_GETCWD, since
76848         that's all we need now.
76849
76850 2004-11-23  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
76851
76852         * m4/argp.m4 (gl_ARGP): Require gl_GETOPT_SUBSTITUTE unconditionally:
76853         argp-parse.c depends on getopt internals, that means we should
76854         always use our getopt, to be on the safe side.
76855         * m4/getopt.m4 (gl_GETOPT): Check if GETOPT_H is already set, in
76856         order not to spoil the result of an eventual previous invocation
76857         of gl_GETOPT_SUBSTITUTE.
76858
76859 2004-11-23  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
76860
76861         * lib/getopt_.h: Re-addition of __getopt_argv_const caused
76862         redefinition warnings. To avoid them, include the defines
76863         in `#if !defined __need_getopt ... #endif'. The only place
76864         where __getopt_argv_const is used is in definitions
76865         of getopt_long and getopt_long_only below, which are as well
76866         protected by `#ifndef __need_getopt'.
76867         [defined __GETOPT_PREFIX && !defined __need_getopt]: Undef
76868         __need_getopt after including <stdio.h> and <unistd.h> These
76869         headers might have defined it.
76870
76871 2004-11-23  Paul Eggert  <eggert@cs.ucla.edu>
76872
76873         * m4/utimens.m4 (gl_UTIMENS): Check for futimes function.
76874
76875 2004-11-23  Paul Eggert  <eggert@cs.ucla.edu>
76876
76877         * lib/utimens.c (__attribute__, ATTRIBUTE_UNUSED): New macros.
76878         (futimens): New function, which uses futimes if available.
76879         (futimens, utimens): Support timespec==NULL, with same semantics
76880         as utime and utimens.
76881         * lib/utimens.h (futimens): New decl.
76882
76883 2004-11-23  Jim Meyering  <jim@meyering.net>
76884
76885         * lib/getopt_.h: Remove trailing blanks.
76886
76887 2004-11-23  Jim Meyering  <jim@meyering.net>
76888
76889         * lib/__fpending.c: Add comment.
76890
76891 2004-11-22  Paul Eggert  <eggert@cs.ucla.edu>
76892
76893         * modules/canonicalize (Depends-on): Add xreadlink.
76894         Problem reported by James Youngman.
76895
76896 2004-11-20  Paul Eggert  <eggert@cs.ucla.edu>
76897
76898         * lib/getopt_.h (__GETOPT_CONCAT, __GETOPT_XCONCAT, __GETOPT_ID):
76899         New macros.
76900         (getopt, getopt_long, getopt_long_only, optarg, opterr, optind,
76901         optopt): Use them instead of invoking ## directly; otherwise, the
76902         symbols will be __GETOPT_PREFIXgetopt rather than rpl_getopt.
76903
76904 2004-11-19  Bruno Haible  <bruno@clisp.org>
76905
76906         * lib/strtok_r.c: Move comments from here...
76907         * lib/strtok_r.h: ... to here.
76908
76909 2004-11-17  Paul Eggert  <eggert@cs.ucla.edu>
76910
76911         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Check for buggy calloc
76912         implementations that mishandle size_t overflow.
76913
76914 2004-11-17  Paul Eggert  <eggert@cs.ucla.edu>
76915
76916         * lib/realloc.c (rpl_realloc): Call 'free' if n==0, since realloc
76917         might fail.  Problem reported by Yoann Vandoorselaere.
76918         * lib/calloc.c (rpl_calloc): Defend against buggy calloc
76919         implementations that mishandle size_t overflow.
76920
76921 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
76922
76923         * modules/canon-host (Depends-on): Add strdup.
76924
76925 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
76926
76927         * m4/canon-host.m4 (gl_CANON_HOST): Check for getaddrinfo.
76928
76929 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
76930
76931         * lib/canon-host.c: Include "strdup.h".
76932         (canon_host): Use getaddrinfo if available, so that IPv6 works.
76933         Use strdup instead of malloc/strcpy to duplicate strings.
76934
76935         * lib/human.h (LONGEST_HUMAN_READABLE): Add 1 for space before unit.
76936         (human_space_before_unit): New constant.
76937         * lib/human.c (human_readable): Support it.
76938
76939         * lib/xgetcwd.c: Include <limits.h>, for PATH_MAX.
76940         (xgetcwd): Set errno correctly when failing.
76941         Work around Solaris 9 bug: getcwd sets errno==ERANGE even though
76942         the failure is actually due to a PATH_MAX problem.
76943
76944         Further getopt changes to make it more likely that glibc will
76945         buy the changes back.
76946         * lib/getopt.c (POSIXLY_CORRECT): New constant.
76947         (getopt): Use it, so to preserve glibc semantic
76948         * lib/getopt1.c (getopt_long, getopt_long_only): Arg is char * const *
76949         when compiling for libc.
76950         * lib/getopt_.h (__getopt_argv_const): Bring it back.
76951         (getopt_long, getopt_long_only): Use it.
76952
76953         * lib/getopt.c (_getopt_initialize, _getopt_internal_r,
76954         _getopt_internal): New arg POSIXLY_CORRECT.  All callers changed.
76955         (getopt): Argv is now char * const *, as per standard.
76956         (_getopt_internal_r, _getopt_internal): Argv is now char **,
76957         not char *__getopt_argv_const *.
76958         * lib/getopt1.c (getopt_long, _getopt_long_r, getopt_long_only,
76959         _getopt_long_only_r): Likewise.
76960         * lib/getopt_.h (getopt, getopt_long, geopt_long_only): Likewise.
76961         * lib/getopt_int.h (_getopt_internal, _getopt_internal_r,
76962         _getopt_long_r, _getopt_long_only_r): Likewise.
76963         * lib/getopt_.h (__getopt_argv_const): Remove.
76964         (getopt): Argv is now char * const *, as per standard.
76965
76966         * lib/getdate.y (tORDINAL): New token.
76967         (day, relunit): Allow it for relative times.
76968         (relative_time_table): Use tORDINAL for ordinals.
76969
76970 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
76971
76972         * doc/getdate.texi (General date syntax): "next" is 1, not 2.
76973         Document that "second" isn't allowed as an ordinal number.
76974
76975 2004-11-16  Jim Meyering  <jim@meyering.net>
76976
76977         * modules/closeout (Depends-on): Add fpending.
76978
76979 2004-11-15  Jim Meyering  <jim@meyering.net>
76980
76981         * lib/closeout.c: Include "__fpending.h" once again.
76982         Include <stdbool.h>.
76983         (close_stdout): Don't fail just because stdout was closed initially,
76984         since some programs don't write to stdout in the normal course of
76985         operation (other than --version and --help), and we don't want this
76986         function to make e.g. `touch file >&-' fail.
76987         But do fail if it was closed and someone has tried to write to it.
76988         E.g., `printf foo >&-' must fail.
76989
76990 2004-11-13  Jim Meyering  <jim@meyering.net>
76991
76992         * m4/jm-macros.m4: Do require gl_FUNC_FPENDING.
76993
76994 2004-11-12  Simon Josefsson  <jas@extundo.com>
76995
76996         * config/srclist.txt: Add strtok_r.c, glibc bought our changes, but a
76997         small doc fix is still pending.
76998
76999 2004-11-11  Simon Josefsson  <jas@extundo.com>
77000
77001         * modules/strtok_r: New file.
77002
77003         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
77004         strtok_r.
77005
77006 2004-11-11  Simon Josefsson  <jas@extundo.com>
77007
77008         * m4/strtok_r.m4: New file.
77009
77010         * m4/getopt.m4: Replace opterr.
77011
77012 2004-11-11  Simon Josefsson  <jas@extundo.com>
77013
77014         * lib/strtok_r.h, strtok_r.c: New file.
77015
77016 2004-11-11  Paul Eggert  <eggert@cs.ucla.edu>
77017
77018         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): Define __GETOPT_PREFIX instead
77019         of replacing opterr, getopt, etc.  This should handle the
77020         powerpc-apple-darwin5.5 problem recently noted by Simon Josefsson.
77021
77022 2004-11-11  Paul Eggert  <eggert@cs.ucla.edu>
77023
77024         * lib/getopt_.h (__getopt_argv_const): New macro, to be used so that
77025         we can stop lying to compilers about the constness of argv when we
77026         are compiled outside glibc.
77027         (getopt, getopt_long, getopt_long_only): Use it.
77028         * lib/getopt.c (_getopt_initialize, _getopt_internal_r,
77029         _getopt_internal, getopt): Likewise.
77030         * lib/getopt1.c (getopt_long, _getopt_long_r, getopt_long_only,
77031         _getopt_long_only_r): Likewise.
77032         * lib/getopt_int.h (_getopt_internal, _getopt_internal_r,
77033         _getopt_long_r, _getopt_long_only_r): Likewise.
77034
77035         * lib/getopt_.h [defined __GETOPT_PREFIX && !defined __need_getopt]:
77036         Include <stdlib.h> and <stdio.h>, and <unistd.h> if available.
77037         Then rename getopt to __GETOPT_PREFIX##getopt, and so forth for
77038         the other external symbols.
77039         (getopt) [!defined __GNU_LIBRARY]: Use prototype, not old-style
77040         declaration, since the above renaming now works around collisions.
77041
77042 2004-11-11  Jim Meyering  <jim@meyering.net>
77043
77044         * lib/linebreak.c: Remove trailing blanks.
77045         * lib/alloca_.h: Likewise.
77046         * lib/acosl.c: Likewise.
77047         * lib/euidaccess.c: Likewise.
77048         * lib/allocsa.h: Likewise.
77049
77050 2004-11-10  Simon Josefsson  <jas@extundo.com>
77051
77052         * m4/getaddrinfo.m4: New file.
77053
77054 2004-11-10  Simon Josefsson  <jas@extundo.com>
77055
77056         * lib/getaddrinfo.h, lib/getaddrinfo.c: New files.
77057
77058 2004-11-10  Simon Josefsson  <jas@extundo.com>
77059
77060         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
77061         getaddrinfo.
77062
77063         * modules/getaddrinfo: New file.
77064
77065 2004-11-10  Paul Eggert  <eggert@cs.ucla.edu>
77066
77067         * m4/prereq.m4 (gl_PREREQ): Require gt_FUNC_SETENV.
77068
77069 2004-11-10  Paul Eggert  <eggert@cs.ucla.edu>
77070
77071         * lib/mktime.c (SHR): New macro, which is a portable
77072         substitute for >> that should work even on Crays.
77073         (TIME_T_MIDPOINT, ydhms_diff, __mktime_internal): Use it.
77074         Problem reported by Mark D. Baushke in
77075         <http://lists.gnu.org/archive/html/bug-gnulib/2004-11/msg00071.html>.
77076         * lib/getdate.y (SHR): Likewise.
77077         (tm_diff): Use it.
77078         * lib/strftime.c (SHR): Likewise.
77079         (tm_diff): Use it.
77080         * lib/quotearg.c (struct quoting_options): Use unsigned int for
77081         quote_these_too, so that right shifts are well defined.  All uses
77082         changed.
77083
77084 2004-11-10  Jim Meyering  <jim@meyering.net>
77085
77086         Ensure that no close failure goes unreported.
77087         * lib/closeout.c (close_stdout): Always close stdout.  I.e., don't
77088         return early when it seems there's nothing to flush.
77089         Don't include __fpending.h.
77090
77091 2004-11-10  Jim Meyering  <jim@meyering.net>
77092
77093         * modules/closeout (Depends-on): Remove fpending.
77094
77095 2004-11-10  Jim Meyering  <jim@meyering.net>
77096
77097         * m4/jm-macros.m4 (gl_MACROS): Don't require gl_FUNC_FPENDING.
77098
77099 2004-11-09  Paul Eggert  <eggert@cs.ucla.edu>
77100
77101         * m4/strftime.m4 (_gl_STRFTIME_PREREQS): Remove.  Move its body to
77102         gl_FUNC_STRFTIME.
77103         (gl_FUNC_STRFTIME): Use AC_CHECK_FUNCS_ONCE and AC_CHECK_HEADERS_ONCE
77104         and AC_REQUIRE when possible, to avoid duplicate checks.
77105         Check for <wchar.h>.
77106
77107 2004-11-09  Paul Eggert  <eggert@cs.ucla.edu>
77108
77109         * lib/strftime.c (DO_MULTIBYTE): Check for wchar.h, too.
77110
77111 2004-11-09  Bruno Haible  <bruno@clisp.org>
77112
77113         * m4/sockpfaf.m4: New file.
77114
77115 2004-11-05  Bruno Haible  <bruno@clisp.org>
77116
77117         * lib/readlink.c: Include stddef.h, needed for size_t on Woe32.
77118         Reported by Mark D. Baushke <mdb@cvshome.org>.
77119
77120 2004-11-04  Bruno Haible  <bruno@clisp.org>
77121
77122         2004-09-11  Bruno Haible  <bruno@clisp.org>
77123                 * allocsa.valgrind: New file.
77124         2004-02-06  Bruno Haible  <bruno@clisp.org>
77125                 * allocsa.h (sa_alignof): Define differently with HP-UX cc, to
77126                 avoid a bug of this cc on HP-UX 10.20 dealing with enums.
77127                 Reported by Christopher Seip <chris.seip@hp.com>.
77128
77129 2004-11-04  Bruno Haible  <bruno@clisp.org>
77130
77131         * modules/allocsa (Files): Add lib/allocsa.valgrind.
77132         (Makefile.am): Distribute it.
77133
77134 2004-11-03  Paul Eggert  <eggert@cs.ucla.edu>
77135
77136         * lib/xreadlink.c (xreadlink): AIX and HP-UX readlink return -1
77137         with errno == ERANGE if the buffer is too small.
77138         Problem reported by Mark D. Baushke.
77139
77140 2004-11-03  Albert Chin  <china@thewrittenword.com>
77141             Paul Eggert  <eggert@cs.ucla.edu>
77142
77143         * m4/uint32_t.m4 (gl_AC_TYPE_UINT32_T): When determining uint32_t
77144         equivalent, substitute $ac_type for equivalent type rather than
77145         blindly using uint32_t *always* which won't work if uint32_t is not
77146         available.  Define _UINT32_T to work around typedef of uint32_t if
77147         <sys/sched.h>, <pthread.h>, or <semaphore.h> used on Solaris
77148         2.5.1.
77149
77150 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
77151
77152         * m4/jm-macros.m4: Sync from coreutils.
77153         (gl_MACROS): Check for mbrlen, for pathchk.
77154         (gl_CHECK_ALL_TYPES): Require AC_TYPE_MBSTATE_T, for pathchk.
77155
77156 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
77157
77158         * lib/xreadlink.c (MAXSIZE): New macro.
77159         (xreadlink): Use it instead of SSIZE_MAX.  Ensure initial buffer
77160         size does not exceed MAXSIZE.  Avoid cast.
77161         As suggested by Mark D. Baushke in
77162         <http://lists.gnu.org/archive/html/bug-gnulib/2004-11/msg00009.html>,
77163         if readlink fails with buffer size just under MAXSIZE, try again
77164         with MAXSIZE.
77165
77166 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
77167
77168         * config/srclist.txt: Add mktime.c; glibc bought all our changes.
77169
77170 2004-11-02  Derek R. Price  <derek@ximbiot.com>
77171         and  Paul Eggert  <eggert@cs.ucla.edu>
77172
77173         * lib/getdate.y [!TEST]: Include <stdio.h>, since we use sprintf now.
77174         (get_date): Overparenthesize to avoid GCC warning.
77175
77176 2004-11-02  Bruno Haible  <bruno@clisp.org>
77177
77178         * m4/setenv.m4 (gt_FUNC_SETENV): Define VOID_UNSETENV if unsetenv()
77179         returns void.
77180
77181 2004-11-02  Bruno Haible  <bruno@clisp.org>
77182
77183         * lib/setenv.h (unsetenv): Define as a macro if the system's unsetenv()
77184         function returns void.
77185
77186 2004-11-01  Paul Eggert  <eggert@cs.ucla.edu>
77187
77188         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for declarations of
77189         fflush_unlocked, flockfile, funlockfile, funlockfile,
77190         fputs_unlocked, putc_unlocked.
77191
77192 2004-11-01  Paul Eggert  <eggert@cs.ucla.edu>
77193
77194         * lib/getpass.c (fflush_unlocked, flockfile, funlockfile)
77195         (funlockfile, fputs_unlocked, putc_unlocked): Don't define if
77196         already declared.
77197
77198 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
77199
77200         * modules/getdate (Files): Add doc/getdate.texi.
77201         (Depends-on): Add setenv, xalloc.
77202
77203 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
77204
77205         * lib/getdate.y: Add support for TZ="foo" within a date string.
77206         Fix some bugs near time_t boundaries.  Reject dates with
77207         out-of-range components, e.g., "Sept 31".
77208         Include <stdlib.h>, "setenv.h", "xalloc.h".
77209         (ISDIGIT_LOCALE): Remove; unused.
77210         Note that the TZ and time functions used here are not reentrant.
77211         (mktime_ok, get_tz): New functions.
77212         (TZBUFSIZE): New constant.
77213         (get_date): Parse leading TZ="foo".  Reject out-of-range components;.
77214         This requires that we sometimes generate our own TZ="XXX..." setting.
77215
77216 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
77217
77218         * doc/getdate.texi: New file, from coreutils with modifications for
77219         the new TZ parsing.
77220
77221 2004-10-27  Derek R. Price  <derek@ximbiot.com>
77222
77223         * lib/mktime.c (not_equal_tm): Remove redundant check.
77224
77225 2004-10-24  Paul Eggert  <eggert@cs.ucla.edu>
77226
77227         * modules/regex (lib_SOURCES): Add regex.c.
77228         Reported by James Youngman in
77229         <http://lists.gnu.org/archive/html/bug-gnulib/2004-10/msg00199.html>.
77230
77231 2004-10-24  Paul Eggert  <eggert@cs.ucla.edu>
77232
77233         * lib/getdate.y: Use Bison 1.875 features, and some minor
77234         code cleanups.  This change does not affect semantics.
77235         Don't include <stdlib.h>; no longer needed.
77236         Don't include unlocked-io.h; only the "#if TEST" code uses
77237         stdio, and performance isn't crucial there.
77238         (PC, YYLEX_PARAM, YYPARSE_PARAM): Remove; replaced by
77239         Bison 1.875 features as described below.
77240         All uses of "PC." replaced by "pc->".
77241         (YYSTYPE): Add a forward declaration.
77242         (yylex, yyerror): Use full prototypes in forward decls.
77243         Use "%pure-parser" rather than obsolescent "%pure_parser".
77244         Use %parse-param and %lex-param instead of obsolescent
77245         YYPARSE_PARAM and YYLEX_PARAM.
77246         (meridian_table, month_and_day_table, time_units_table,
77247         relative_time_table, time_zone_table, military_table,
77248         lookup_zone, lookup_word, get_date):
77249         Use NULL instead of 0 where appropriate.
77250         (to_hour): Avoid abort (), to avoid a dependency on
77251         stdlib.h.
77252         (yyerror, yylex): Now accepts parser_control * arg.
77253         (main) [TEST]: Use '\0' rather than 0 for char.
77254
77255 2004-10-22  Paul Eggert  <eggert@cs.ucla.edu>
77256
77257         * m4/getpagesize.m4 (gl_GETPAGESIZE): Check for <sys/param.h>.
77258
77259 2004-10-22  Paul Eggert  <eggert@cs.ucla.edu>
77260
77261         * lib/getpagesize.c (getpagesize): Don't assume <sys/param.h> exists.
77262         It's now the caller's responsibility to handle the case where
77263         !HAVE_GETPAGESIZE && !defined getpagesize.
77264
77265         * lib/mktime.c (leapyear): Arg is long int, not int.
77266
77267 2004-10-18  Paul Eggert  <eggert@cs.ucla.edu>
77268
77269         * lib/argp-fs-xinl.c, argp-xinl.c: Update from glibc.
77270
77271 2004-10-17  Paul Eggert  <eggert@cs.ucla.edu>
77272
77273         * gnulib-tool (func_emit_lib_Makefile_am): Fix typo: a $ was
77274         missing.  Problem reported by James Youngman.
77275
77276 2004-10-16  Simon Josefsson  <jas@extundo.com>
77277
77278         * gnulib-tool: Fix comments.  Fix parse problem.
77279         (func_emit_lib_Makefile_am): Don't hard code a in libgl_a_SOURCES.
77280
77281 2004-10-15  Paul Eggert  <eggert@cs.ucla.edu>
77282
77283         * m4/getopt.m4 (gl_GETOPT): Detect and reject the incompatible BSD
77284         implementation of getopt_long.  Problem reported by Alexander Taler in:
77285         http://lists.gnu.org/archive/html/bug-gnulib/2004-10/msg00103.html
77286
77287 2004-10-15  Bruno Haible  <bruno@clisp.org>
77288
77289         * gnulib-tool: Untabify. Initialize supplied_libname.
77290         (func_usage): More homogenous output.
77291         (func_modules_transitive_closure, func_modules_to_filelist,
77292         func_emit_lib_Makefile_am): New functions.
77293         (func_import): New function, extracted from big case statement. Use
77294         func_get_license, func_modules_transitive_closure,
77295         func_modules_to_filelist, func_emit_lib_Makefile_am. Initialize
77296         opt_lgpl. Don't use test -a, as it's not portable.
77297         (func_create_testdir): Use func_modules_transitive_closure,
77298         func_modules_to_filelist, func_emit_lib_Makefile_am.
77299
77300 2004-10-15  Bruno Haible  <bruno@clisp.org>
77301
77302         * gnulib-tool (func_import): Let gl_INIT define LTALLOCA when needed.
77303
77304 2004-10-15  Bruno Haible  <bruno@clisp.org>
77305
77306         * gnulib-tool (func_emit_lib_Makefile_am): Add markers to separate
77307         the portions belonging to each module.
77308         Suggested by Derek Robert Price <derek@ximbiot.com>.
77309
77310 2004-10-12  Simon Josefsson  <jas@extundo.com>
77311
77312         * lib/getpass.c (fflush_unlocked, flockfile, funlockfile)
77313         (fputs_unlocked, putc_unlocked) [!_LIBCS && !USE_UNLOCKED_IO]: Map
77314         to real functions.
77315
77316 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
77317
77318         * modules/vsnprintf: New file.
77319
77320 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
77321
77322         * m4/vsnprintf.m4: New file.
77323
77324 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
77325
77326         * lib/vsnprintf.h: New file.
77327         * lib/vsnprintf.c: New file.
77328
77329 2004-10-11  Bruno Haible  <bruno@clisp.org>
77330
77331         * MODULES.html.sh (Support for systems lacking ISO C 99): Add
77332         vsnprintf.
77333
77334 2004-10-10  Paul Eggert  <eggert@cs.ucla.edu>
77335
77336         * config/srclistvars.sh: Add GNUSTANDARDS (for eggert only).
77337
77338 2004-10-07  Bruno Haible  <bruno@clisp.org>
77339
77340         * lib/snprintf.c (snprintf): Avoid a memory allocation if the result
77341         fits into the provided buffer.
77342
77343 2004-10-06  Paul Eggert  <eggert@cs.ucla.edu>
77344
77345         * lib/diacrit.c, diacrit.h: Add GPL notice.
77346
77347         * lib/atanl.c, logl.c: Add GPL notice, to match glibc's added LGPL
77348         notice.
77349         * lib/atanl.c (atanl): Keep the code as similar to glibc as possible.
77350         * lib/logl.c (logl): Keep the code as similar to glibc as possible.
77351         This avoids a potential constant-folding bug.
77352
77353 2004-10-05  Bruno Haible  <bruno@clisp.org>
77354
77355         * m4/strsep.m4 (gl_FUNC_STRSEP): Require AC_GNU_SOURCE. Don't check
77356         for the declaration of strsep.
77357
77358 2004-10-05  Bruno Haible  <bruno@clisp.org>
77359
77360         * lib/strsep.h: Don't declare strsep() if HAVE_STRSEP.
77361
77362 2004-10-04  Simon Josefsson  <jas@extundo.com>
77363
77364         * modules/memmem: New file.
77365         * tests/test-memmem.c: New file.
77366         * MODULES.html.sh (Extra functions based on ANSI C 89): Add memmem.
77367
77368 2004-10-04  Simon Josefsson  <jas@extundo.com>
77369
77370         * m4/memmem.m4: New file.
77371
77372 2004-10-04  Simon Josefsson  <jas@extundo.com>
77373
77374         * lib/memmem.h: New file.
77375         * lib/memmem.c: New file, taken from glibc.
77376
77377 2004-10-04  Simon Josefsson  <jas@extundo.com>
77378
77379         * lib/error.c, md5.c, regex.c: Use '#if USE_UNLOCKED_IO' instead of
77380         '#ifdef USE_UNLOCKED_IO'.
77381
77382 2004-10-04  Simon Josefsson  <jas@extundo.com>
77383
77384         * config/srclist.txt: Add memmem from glibc.
77385
77386 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
77387
77388         * modules/xalloc (Files, Makefile.am): Remove xstrdup.c.
77389
77390         * modules/argmatch, modules/argp, modules/closeout, modules/error,
77391         modules/exclude, modules/getdate, modules/getline,
77392         modules/getndelim2, modules/getpass, modules/getpass-gnu,
77393         modules/getusershell, modules/linebuffer, modules/md5,
77394         modules/mountlist, modules/posixtm, modules/readtokens,
77395         modules/readutmp, modules/regex, modules/sha1,
77396         modules/version-etc, modules/yesno:
77397         Remove dependency on unlocked-io.
77398
77399 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
77400
77401         * m4/xalloc.m4 (gl_PREREQ_XSTRDUP): Remove.  All uses removed.
77402
77403         * m4/unlocked-io.m4: Add copyright notice.
77404         (gl_FUNC_GLIBC_UNLOCKED_IO): Define USE_UNLOCKED_IO.
77405
77406 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
77407
77408         * lib/xalloc.h (xmemdup): Renamed from xclone.  All uses changed.
77409         * lib/xmalloc.c (xmemdup): Likewise.
77410         * lib/xalloc.h (CCLONE, CLONE, NEW, XCALLOC, XMALLOC, XREALLOC,
77411         XFREE): Remove these long-obsolescent macros.
77412         * lib/xmalloc.c (xstrdup): Implementation moved here from xstrdup.c
77413         * lib/xstrdup.c: Remove.
77414
77415         * lib/regex.c (re_comp): Cast gettext return value to char *,
77416         Problem reported by Martin Neitzel via Mark D. Baushke.
77417
77418 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
77419
77420         * lib/argmatch.c, closeout.c, error.c, exclude.c, getdate.y,
77421         getndelim2.c, getpass.c, getusershell.c, linebuffer.c,
77422         md5.c, mountlist.c, posixtm.c, readtokens.c, readutmp.c,
77423         regex.c, sha1.c, version-etc.c, yesno.c:
77424         Include "unlocked-io.h" only if USE_UNLOCKED_IO.
77425         * lib/unlocked-io.h: Don't worry about USE_UNLOCKED_IO; that's now
77426         the includer's responsibility.
77427
77428         Sync from coreutils.
77429
77430         * lib/modechange.c (mode_compile): Don't decrement a pointer that
77431         points to the start of a string, as the C Standard says the
77432         resulting behavior is undefined.
77433
77434         * lib/backupfile.h (enum backuptype): Rename none -> no_backups,
77435         simple -> simple_backups, numbered_existing ->
77436         numbered_existing_backups, numbered -> numbered_backups
77437         to avoid shadowing problems.  All uses changed.
77438         * lib/argmatch.c (enum backuptype) [defined TEST]: Likewise.
77439         * lib/backupfile.c (check_extension, numbered_backup):
77440         Rename locals to avoid shadowing 'basename'.
77441         * lib/backupfile.h (VALID_BACKUP_TYPE): Don't evaluate arg more than
77442         once.
77443
77444         * lib/.cppi-disable: Add getopt_.h, getopt_int.h.
77445         * lib/.cvsignore: Add getopt.h.
77446
77447 2004-10-04  Bruno Haible  <bruno@clisp.org>
77448
77449         * modules/README: New file.
77450         * gnulib-tool (func_all_modules, func_verify_module): modules/README is
77451         not a module.
77452
77453 2004-10-02  Jim Meyering  <jim@meyering.net>
77454
77455         * lib/dirfd.h, getpagesize.h: Add copyright notice.
77456
77457 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
77458
77459         * modules/strsep: New file.
77460
77461 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
77462
77463         * m4/strsep.m4: New file.
77464
77465 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
77466
77467         * lib/strsep.h: New file.
77468         * lib/strsep.c: New file.
77469
77470 2004-10-01  Simon Josefsson  <jas@extundo.com>
77471
77472         * lib/snprintf.c (snprintf): Handle size==0.
77473
77474 2004-10-01  Simon Josefsson  <jas@extundo.com>
77475             Bruno Haible  <bruno@clisp.org>
77476
77477         * lib/snprintf.c: Include <stdarg.h>, <stdlib.h>, <string.h>.
77478         (snprintf): Declare 'args'.
77479
77480 2004-10-01  Paul Eggert  <eggert@cs.ucla.edu>
77481
77482         * lib/snprintf.c: Remove comments as to why each header is needed.
77483
77484 2004-10-01  Bruno Haible  <bruno@clisp.org>
77485
77486         * MODULES.html.sh: Add strsep.
77487
77488 2004-09-30  Simon Josefsson  <jas@extundo.com>
77489
77490         * modules/snprintf: New file.
77491
77492 2004-09-30  Simon Josefsson  <jas@extundo.com>
77493
77494         * m4/snprintf.m4: New file.
77495
77496 2004-09-30  Simon Josefsson  <jas@extundo.com>
77497
77498         * lib/snprintf.h, lib/snprintf.c: New files.
77499
77500 2004-09-30  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
77501
77502         * lib/argp-help.c (canon_doc_option): Fixed coredump if *name==NULL
77503         (hol_entry_help): Never translate an empty string.
77504         Do not translate option tag (opt->name) if OPTION_NO_TRANS is set
77505         * lib/argp.h (OPTION_NO_TRANS): New option.
77506
77507 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
77508
77509         * modules/argp (Maintainer): Replace Simon Josefsson
77510         by Sergey Poznyakoff.
77511
77512 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
77513
77514         * config/srclist.txt: Comment-out argp/argp.h, until we get the argp
77515         changes merged back into glibc.
77516
77517 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
77518
77519         * MODULES.html.sh (Support for systems lacking ISO C 99): Add snprintf.
77520
77521 2004-09-29  Oskar Liljeblad  <oskar@osk.mine.nu>
77522
77523         * lib/xvasprintf.c: Include xalloc.h.
77524         (xvasprintf): Use xalloc_die, not xmalloc_die.
77525
77526 2004-09-29  Bruno Haible  <bruno@clisp.org>
77527
77528         * modules/alloca-opt: New file, derived from modules/alloca.
77529         * modules/allocsa: Depend on alloca-opt instead of alloca.
77530         * modules/setenv: Likewise.
77531         * modules/vasnprintf: Likewise.
77532         * MODULES.html.sh: Add alloca-opt.
77533
77534 2004-09-28  Simon Josefsson  <jas@extundo.com>
77535
77536         * gnulib-tool: New parameter --lgpl, to asseert that modules are
77537         LGPL, and to replace license template from GPL to LGPL.
77538
77539 2004-09-28  Paul Eggert  <eggert@cs.ucla.edu>
77540
77541         * modules/dummy: Change license to LGPL.
77542
77543 2004-09-28  Paul Eggert  <eggert@cs.ucla.edu>
77544
77545         * lib/dummy.c: Change copyright notice to FSF, and license to GPL.
77546
77547 2004-09-24  Simon Josefsson  <jas@extundo.com>
77548
77549         * modules/minmax (License): Change from GPL to LGPL.
77550
77551 2004-09-23  Simon Josefsson  <jas@extundo.com>
77552
77553         * gnulib-tool (--import): Typo.
77554
77555 2004-09-23  Simon Josefsson  <jas@extundo.com>
77556
77557         * gnulib-tool (--import): Make sure *.m4 end up in m4/ by default.
77558
77559 2004-09-22  Bruno Haible  <bruno@clisp.org>
77560
77561         * modules/*: Add 'License' field.
77562         * gnulib-tool: Accept --extract-license option.
77563         (func_get_license): New function.
77564
77565 2004-09-21  Bruno Haible  <bruno@clisp.org>
77566
77567         * modules/vasnprintf (Files): Add m4/stdint_h.m4, m4/inttypes_h.m4.
77568         Reported by Simon Josefsson.
77569
77570 2004-09-20  Paul Eggert  <eggert@cs.ucla.edu>
77571
77572         * modules/inttostr (Files): Add m4/longlong.m4, since it uses
77573         gl_AC_TYPE_LONG_LONG.
77574
77575 2004-09-20  Paul Eggert  <eggert@cs.ucla.edu>
77576
77577         * config/srclist.txt: Add getsubopt.c, since libc bought our changes.
77578
77579 2004-09-18  Simon Josefsson  <jas@extundo.com>
77580         and  Paul Eggert  <eggert@cs.ucla.edu>
77581
77582         * gnulib-tool: Replace various ad-hoc automake/autoconf/aclocal
77583         calls with autoreconf.  Define GL_LIB.
77584
77585 2004-09-14  Karl Berry  <karl@gnu.org>
77586
77587         * config/srclist.txt: unsync setenv.c, sigh.
77588
77589 2004-09-13  Paul Eggert  <eggert@cs.ucla.edu>
77590
77591         * lib/argp-pvh.c (argp_program_version_hook): Provide initial value.
77592         Problem reported by Bruno Haible in:
77593         http://lists.gnu.org/archive/html/bug-tar/2004-09/msg00023.html
77594
77595 2004-09-13  Paul Eggert  <eggert@cs.ucla.edu>
77596
77597         * config/srclist.txt: Comment out argp-pvh.c.
77598
77599 2004-09-11  Paul Eggert  <eggert@cs.ucla.edu>
77600
77601         * lib/mempcpy.h: Wrap the entire include file inside #ifndef mempcpy,
77602         in case some system header has #define'd it.  Problem reported by
77603         Soeren D. Schulze in
77604         <http://lists.gnu.org/archive/html/bug-gnulib/2004-09/msg00017.html>.
77605
77606 2004-09-09  Karl Berry  <karl@gnu.org>
77607
77608         * regex.[ch]: delete from the root.  These were supposed to be
77609                 synced with emacs cvs, but this has not happened for about
77610                 a year, and anyway nothing else uses emacs regex.[ch].
77611                 bug-gnulib mail from Jeff Bailey, 9 Sep 2004 15:49:24 -0700.
77612                 lib/regex[.ch] is untouched.
77613
77614 2004-09-09  Bruno Haible  <bruno@clisp.org>
77615
77616         * modules/vasnprintf (Files): Add m4/eoverflow.m4.
77617
77618 2004-09-09  Bruno Haible  <bruno@clisp.org>
77619
77620         * m4/eoverflow.m4: New file, taken from GNU libiconv eilseq.m4 with
77621         modifications.
77622         * m4/vasnprintf.m4 (gl_FUNC_VASNPRINTF): Require gl_EOVERFLOW.
77623
77624 2004-09-08  Oskar Liljeblad  <oskar@osk.mine.nu>
77625
77626         * modules/xvasprintf: New file.
77627         * MODULES.html.sh (Extra functions based on ANSI C 89): Add vasprintf.
77628
77629 2004-09-08  Oskar Liljeblad  <oskar@osk.mine.nu>
77630
77631         * lib/xvasprintf.h: New file.
77632         * lib/xvasprintf.c: New file.
77633         * lib/xasprintf.c: New file.
77634
77635 2004-09-08  Bruno Haible  <bruno@clisp.org>
77636
77637         * m4/stdint.m4: New file, taken from GNU clisp with modifications.
77638
77639 2004-09-08  Bruno Haible  <bruno@clisp.org>
77640
77641         * lib/vasnprintf.c (VASNPRINTF): Signal EOVERFLOW if the resulting
77642         length is > INT_MAX.
77643         * lib/vasprintf.c (vasprintf): Don't test for length > INT_MAX any
77644         more.
77645
77646 2004-09-08  Bruno Haible  <bruno@clisp.org>
77647
77648         * lib/stdint_.h: New file, taken from GNU clisp.
77649
77650 2004-09-08  Bruno Haible  <bruno@clisp.org>
77651             Oskar Liljeblad  <oskar@osk.mine.nu>
77652
77653         * modules/stdint: New file.
77654         * MODULES.html.sh (Support for systems lacking ISO C 99): Add stdint.
77655
77656 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
77657
77658         Import from coreutils.
77659         * lib/userspec.c: Don't use <alloca.h>, so that we don't use alloca on
77660         strings on unbounded length.  alloca's performance benefits aren't
77661         that important here.
77662         (V_STRDUP): Remove.
77663         (parse_with_separator): New function, with most of the internals
77664         of the old parse_user_spec.  Allow user to omit both user and group,
77665         for compatibility with FreeBSD.
77666         Clone only the user name, not the entire spec.
77667         Do not set *uid, *gid unless entirely successful.
77668         Avoid memory leak in some failing cases.
77669         Fix regression for USER.GROUP reported by Dmitry V. Levin in
77670         <http://lists.gnu.org/archive/html/bug-coreutils/2004-08/msg00102.html>
77671         (parse_user_spec): Rewrite to use parse_with_separator.
77672
77673 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
77674
77675         * modules/userspec: Don't depend on alloca.
77676
77677 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
77678
77679         * m4/userspec.m4 (gl_USERSPEC): Don't require AC_FUNC_ALLOCA.
77680
77681 2004-08-17  Paul Eggert  <eggert@cs.ucla.edu>
77682
77683         * MODULES.html.sh: Add xalloc-die, c-strtod, c-strtold, raise,
77684         readtokens0, getcwd, fcntl-safer, canonicalize, cycle-check,
77685         utimecmp, utimens, xnanosleep.  Rename sha to sha1.
77686
77687 2004-08-16  Simon Josefsson  <jas@extundo.com>
77688
77689         * gnulib-tool: Use sed instead of autoconf --trace, inspired by
77690         libtoolize behaviour by "Gary V. Vaughan" <gary@gnu.org>.
77691         Add --dry-run for --import.
77692         Let user provided command line parameters override configure.ac
77693         settings.
77694
77695 2004-08-12  Simon Josefsson  <jas@extundo.com>
77696
77697         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): New macro,
77698         as discussed with Paul Eggert in threads rooted at
77699         <http://lists.gnu.org/archive/html/bug-gnulib/2004-06/msg00039.html>
77700         and
77701         <http://lists.gnu.org/archive/html/bug-gnulib/2004-07/msg00001.html>.
77702         Before, the test was empty, and relied on ELIDE_CODE in source
77703         code.)
77704         (gl_PREREQ_GETOPT): New macro.
77705         (gl_GETOPT): Use them.
77706
77707 2004-08-12  Simon Josefsson  <jas@extundo.com>
77708
77709         * lib/getopt.c, getopt1.c: Remove ELIDE_CODE hack.
77710         * lib/getopt_.h: Renamed from getopt.h.
77711
77712 2004-08-12  Simon Josefsson  <jas@extundo.com>
77713
77714         * gnulib-tool: Add --source-base, --m4-base, --libtool options.
77715         Change default library name from libfoo to libgnu.
77716         Now, if you have a configure.ac that says:
77717                 gl_SOURCE_BASE(gl)
77718                 gl_M4_BASE(gl/m4)
77719                 gl_MODULES(error getopt etcetera)
77720                 gl_INIT
77721         you can import all you need by running:
77722                 ../gnulib/gnulib-tool --import
77723
77724         * modules/getopt (Files): Rename getopt.h to getopt_.h.
77725         (Makefile.am): Rewrite, use logic from argz.
77726         (Include): Use <getopt.h> instead of "getopt.h".
77727
77728 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
77729
77730         * modules/argp (Files): Add m4/unlocked-io.m4.
77731         (Depends-on): Add extensions.
77732
77733 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
77734
77735         * m4/argp.m4 (gl_ARGP): Do not check for argp.h or argp_parse; nobody
77736         uses HAVE_ARGP_H or HAVE_ARGP_PARSE.
77737         Require gl_FUNC_GLIBC_UNLOCKED_IO, gl_USE_SYSTEM_EXTENSIONS.
77738         Check for program_invocation_name, program_invocation_short_name,
77739         flockfile, funlockfile, features.h, _getopt_long_only_r.
77740
77741 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
77742
77743         * lib/argp-help.c, argp-parse.c: Use "gettext.h" instead of
77744         its complicated substitute.
77745         * lib/argp-help.c: Include <errno.h>, for program_invocation_short_name
77746         and program_invocation_name.
77747         (__argp_basename) [!_LIBC]: Remove; the only use was
77748         replaced by its body.
77749         (__argp_short_program_name): Change condition from
77750         !defined __argp_short_program_name to
77751         ! (defined _LIBC || HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME),
77752         to match argp-namefrob.h.
77753         (__argp_failure): Don't assume strerror_r returns char *.
77754         * lib/argp-parse.c (N_): Define unconditionally.
77755         (argp_default_options): Fill out initializers with 0 to avoid
77756         gcc warnings.
77757
77758 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
77759
77760         * config/srclist.txt: Remove getopt.c, getopt.h (renamed to getopt_.h),
77761         getopt1.c.
77762
77763 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
77764
77765         Merge from coreutils.
77766
77767         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for wmemchr and wmemcpy.
77768
77769         * m4/obstack.m4 (gl_PREREQ_OBSTACK): Require
77770         gl_AC_HEADER_INTTYPES_H, gl_AC_HEADER_STDINT_H, gl_AC_TYPE_UINTMAX_T.
77771
77772 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
77773
77774         Merge from coreutils.
77775
77776         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Don't set to 1 if missing
77777         wmemchr or wmemcpy.  Problem reported by Robert Dahlem
77778         for Reliant Unix 5.43.
77779
77780         * lib/obstack.c: Include <inttypes.h> and <stdint.h> if available.
77781         (union fooround): Use uintmax_t, not long int.
77782         The rest is a merge from libc:
77783         [defined _LIBC]: Include <shlib-compat.h>.
77784         (_obstack) [defined _LIBC]: Remove after 2.3.4.
77785
77786         * lib/settime.c (settime): Recode to avoid warning with
77787         Sun Forte C 6U2.
77788
77789         * lib/strverscmp.c: Convert to UTF-8.
77790
77791 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
77792
77793         * modules/obstack (Files): Add m4/inttypes_h.m4, m4/stdint_h.m4,
77794         m4/uintmax_t.m4.
77795
77796 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
77797
77798         * modules/xalloc-die: New file.
77799         * modules/xalloc: Remove dependencies on error, gettext, exitfail.
77800
77801         * modules/md5 (Files): Add m4/uint32_t.m4.
77802         * modules/sha1: Renamed from modules/sha.
77803         (Files):
77804         Rename lib/sha.h to lib/sha1.h.
77805         Rename lib/sha.c to lib/sha1.c.
77806         Rename m4/sha.m4 to m4/sha1.m4.
77807         (lib_SOURCES): Likewise.
77808         (configure.ac): Rename gl_SHA to gl_SHA1.
77809         (Include): sha.h -> sha1.h.
77810
77811 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
77812
77813         * m4/uint32_t.m4, m4/uintptr_t.m4: New files.
77814         * m4/sha1.m4: Renamed from sha.m4.
77815         (gl_SHA1): Renamed from gl_SHA.  All uses changed.
77816
77817 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
77818
77819         * lib/obstack.h (obstack_empty_p):
77820         Don't assume that chunk->contents is suitably aligned.
77821         * lib/obstack.c (_obstack_begin, _obstack_begin_1, _obstack_newchunk):
77822         Likewise. Problem reported by Benno in
77823         <http://sources.redhat.com/ml/libc-alpha/2004-08/msg00055.html>.
77824
77825         * lib/chown.c (rpl_chown): Work even if the file is writeable but not
77826         readable.  This could be improved further but it'd take some work.
77827
77828 2004-08-08  Simon Josefsson  <jas@extundo.com>
77829
77830         * modules/xgethostname (Depends-on): Remove exit and error (not
77831         used).
77832
77833         * modules/getpass-gnu: Add getpass.h.
77834         (Depends-on): Add stdbool.
77835         * modules/getpass: Add getpass.h.
77836
77837 2004-08-08  Simon Josefsson  <jas@extundo.com>
77838
77839         * m4/getpass.m4 (gl_FUNC_GETPASS, gl_FUNC_GETPASS_GNU):
77840         Check getpass declaration.
77841
77842 2004-08-08  Simon Josefsson  <jas@extundo.com>
77843
77844         * lib/xgethostname.c: Don't include error.h (not used).
77845
77846         * lib/getpass.h: Add.
77847         * lib/getpass.c: Include getpass.h first.
77848
77849 2004-08-08  Paul Eggert  <eggert@cs.ucla.edu>
77850
77851         * lib/xalloc-die.c: New file.
77852         * lib/xalloc.h (xalloc_fail_func, xalloc_msg_memory_exhausted): Remove.
77853         All uses removed.
77854         * lib/xmalloc.c (xalloc_fail_func, xalloc_msg_memory_exhausted):
77855         Likewise. Move inclusions of gettext.h, error.h, exitfail.h to
77856         xalloc-die.c.
77857         (_, N_, xalloc_die): Move to xalloc-die.c.
77858         * lib/userspec.c (parse_user_spaec): Use xstrdup rather than strdup,
77859         so that we needn't mess with xalloc_msg_memory_exhausted.
77860
77861         * lib/sha1.h: Renamed from sha.h.
77862         (SHA1_H): Renamed from _SHA_H.
77863         (sha1_ctx): Renamed from sha_ctx.
77864         (sha1_init_ctx): Renamed from sha_init_ctx.
77865         (sha1_process_block): Renamed from sha_process_block.
77866         (sha1_process_bytes): Renamed from sha_process_bytes.
77867         (sha1_finish_ctx): Renamed from sha_finish_ctx.
77868         (sha1_read_ctx): Renamed from sha_read_ctx.
77869         (sha1_stream): Renamed from sha_stream.
77870         (sha1_buffer): Renamed from sha_buffer.
77871         * lib/sha1.c: Likewise; renamed from sha.c.
77872         Do not include <sys/types.h>.
77873         Include <stddef.h> rather than <stdlib.h>.
77874
77875 2004-08-08  Bruno Haible  <bruno@clisp.org>
77876
77877         * lib/pathname.h (FILE_SYSTEM_PREFIX_LEN): Renamed from
77878         FILESYSTEM_PREFIX_LEN.
77879         * lib/progreloc.c: Likewise.
77880         * lib/concatpath.c (concatenated_pathname): Use FILE_SYSTEM_PREFIX_LEN.
77881
77882 2004-08-06  Simon Josefsson  <jas@extundo.com>
77883
77884         * modules/progname (Depends-on): Don't depend on stdbool.
77885
77886 2004-08-06  Simon Josefsson  <jas@extundo.com>
77887
77888         * modules/getsubopt: New file.
77889         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
77890         getsubopt.
77891
77892 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
77893
77894         More merge from coreutils.
77895
77896         * m4/utimens.m4, m4/utimecmp.m4: New files.
77897         * m4/backupfile.m4, euidacces.m4, acl.m4, afs.m4, calloc.m4, dirfd.m4,
77898         fsusage.m4, jm-macros.m4, ls-mntd-fs.m4, md5.m4, mountlist.m4,
77899         prereq.m4, sha.m4: Import changes from coreutils.
77900
77901 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
77902
77903         More merge from coreutils.
77904         * modules/raise, modules/readtokens0, modules/utimens:
77905         * modules/utimecmp, module/xnanosleep: New files.
77906         * modules/strftime: Add lib/strftime.h.
77907         Change include from <time.h> to "strftime.h".
77908         * modules/yesno: Add lib/yesno.h.
77909         * modules/backupfile: Remove lib/addext.c.
77910         * modules/euidaccess: Add stat-macros.h.
77911         * modules/canonicalize, modules/euidaccess,
77912         modules/filemode, modules/lchown, modules/makepath,
77913         modules/rmdir, modules/stat: Likewise.
77914
77915 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
77916
77917         Merge from tar.
77918         * lib/argp-help.c (make_hol, hol_append): Don't assume that
77919         SIZE_MAX is a valid preprocessor constant.
77920         (__argp_basename): Change from "#ifndef _LIBC"
77921         to "#ifndef __argp_short_program_name", so that
77922         we don't compile these functions for tar.
77923
77924         More merges from coreutils.
77925         * lib/raise.c, lib/readtokens0.h, lib/readtokens0.c, lib/strftime.h:
77926         * lib/utimens.h, lib/utimens.c, lib/utimecmp.h, lib/utimecmp.c:
77927         * lib/xnanosleep.h, lib/xnanosleep.c, lib/yesno.h: New files.
77928         * lib/addext.c: Remove; no longer needed.
77929         * lib/yesno.c, lib/argmatch.h, lib/argmatch.c, lib/backupfile.h,
77930         lib/backupfile.c, lib/euidaccess.c, lib/filemode.c, lib/closeout.c,
77931         lib/dup2.c, lib/exclude.c, lib/fileblocks.c, lib/filemode.c,
77932         lib/fnmatch.c, lib/fnmtahc_loop.c, lib/fopen-safer.c, lib/fsusage.c,
77933         lib/fsusage.h, lib/ftruncate.c, lib/full-write.c, lib/getdate.y,
77934         lib/getloadavg.c, lib/getugroups.c, lib/hard-locale.c,
77935         lib/hard-locale.h, lib/hash.c, lib/human.c, lib/human.h, lib/lchown.c,
77936         lib/lchown.h, lib/makepath.c, lib/makepath.h, lib/md5.c, lib/md5.h,
77937         lib/memchr.c, lib/memcoll.c, lib/memrchr.c, lib/modechange.c,
77938         lib/modechange.h, lib/mountlist.c, lib/mountlist.h, lib/nanosleep.c,
77939         lib/posixtm.c, lib/putenv.c, quotearg.c, lib/quotearg.h,
77940         lib/readtokens.c, lib/readutmp.c, lib/readutmp.h, lib/rmdir.c,
77941         lib/safe-read.c, lib/save-cwd.c, lib/savedir.c, lib/setenv.c,
77942         lib/sig2str.c, lib/stat.c, lib/strtoimax.c, lib/strverscmp.c,
77943         lib/userspec.c, lib/utime.c, lib/version-etc.c., lib/xgethostname.c,
77944         lib/xmemcoll.c, lib/xreadlink.c, lib/xstrtod.c, lib/xstrtod.h,
77945         lib/xstrtoimax.c, lib/xstrtol.c, lib/xstrtol.h, lib/xstrtoumax.c:
77946         Import changes from coreutils.
77947
77948 2004-08-05  Simon Josefsson  <jas@extundo.com>
77949
77950         * m4/strdup.m4: Always run gl_PREREQ_STRDUP, since strdup.h need it.
77951
77952 2004-08-05  Simon Josefsson  <jas@extundo.com>
77953
77954         * m4/getsubopt.m4: New file.
77955
77956 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
77957
77958         Merge from coreutils.
77959
77960         * m4/c-strtod.m4, m4/canonicalize.m4, m4/fcntl-safer.m4:
77961         * m4/getcwd-path-max.m4: New files.
77962
77963         * m4/dos.m4 (gl_AC_DOS): filesystem -> file system renaming.
77964         FILESYSTEM_PREFIX_LEN ->
77965         FILE_SYSTEM_PREFIX_LEN.
77966         FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX ->
77967         FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX.
77968         FILESYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR ->
77969         FILE_SYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR.
77970
77971         * m4/path-concat.m4 (gl_PATH_CONCAT): Don't require gl_AC_DOS, the
77972         prerequisite modules now handle the DOS stuff.
77973         Don't check for unistd.h.
77974
77975 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
77976
77977         Merge from coreutils.
77978
77979         * lib/.gdb-history: Remove; this doesn't belong here.
77980
77981         * lib/c-strtod.c, lib/c-strtod.h, lib/c-strtold.c, lib/cycle-check.c:
77982         * lib/cycle-check.h, lib/dev-ino.h, lib/canonicalize.h:
77983         * lib/canonicalize.c, lib/fcntl-safer.h, lib/fcntl-safer.c:
77984         * lib/getcwd.c: New files.
77985
77986         * lib/dirname.h: Include <stdbool.h>.
77987         (FILE_SYSTEM_PREFIX_LEN): Renamed from FILESYSTEM_PREFIX_LEN,
77988         for consistency with POSIX terminology.  All uses changed.
77989         (IS_ABSOLUTE_FILE_NAME, IS_RELATIVE_FILE_NAME): New macros.
77990         (strip_trailing_slashes): Use bool for booleans.
77991         * lib/stripslash.c (strip_trailing_slashes): Likewise.
77992
77993         * lib/error.c: Work around bug in OpenBSD 3.4 sterror_r: it
77994         sometimes returns a positive errno value even when it succeeds.
77995         (print_errno_message) [!LIBC]: Fall back on strerror if
77996         __strerror_r fails.
77997
77998         * lib/path-concat.c (mempcpy): Don't define if a system header defines
77999         it. Don't include stdio.h, stdlib.h, unistd.h, strdup.h.
78000         (longest_relative_suffix): New function.
78001         (path_concat): Use it.  Assume first argument is not NULL.
78002         Port to DOS.  Omit redundant separators.
78003         Report an error instead of returning NULL.
78004         Use mempcpy instead of memcpy.
78005         (xpath_concat): Remove: not declared or used.
78006
78007         * lib/same.h: Include <stdbool.h>
78008         (same_name): Return bool, not int.
78009         * lib/same.c (same_name): Likewise.
78010         (errno): Don't declare; we assume C89 or better now.
78011
78012         * lib/stat-macros (S_ISCTG, S_ISOFD, S_ISOFL): New macros,
78013         if not already defined.
78014
78015         * lib/xgetcwd.c (errno): Don't declare; we assume C89 or better now.
78016         * lib/dup-safer.c (errno): Likewise.
78017
78018 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
78019
78020         Merge from coreutils.
78021         * modules/c-strtod, modules/c-strtold, modules/canonicalize:
78022         * modules/cycle-check, modules/fcntl-safer, modules/getcwd: New files.
78023         * modules/path-concat: Don't depend on strdup.
78024
78025 2004-08-03  Simon Josefsson  <jas@extundo.com>
78026
78027         * lib/strdup.h: Only use HAVE_DECL_STRDUP if defined.
78028         * lib/progname.h: Don't include stdbool.h.
78029
78030 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
78031
78032         * modules/fatal: Remove, as the "fatal" module wasn't used or working.
78033         * MODULES.html.sh (func_all_modules): Remove fatal.
78034
78035 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
78036
78037         * m4/fatal.m4: Remove, as the "fatal" module wasn't used or working.
78038
78039 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
78040
78041         * lib/fatal.c, fatal.h: Remove as the "fatal" module wasn't used or
78042         working.
78043
78044 2004-08-02  Simon Josefsson  <jas@extundo.com>
78045
78046         * lib/getsubopt.h: New file, with comments from Bruno Haible.
78047         * lib/getsubopt.c: New file, from glibc, but slightly modified based on
78048         suggestions from Paul Eggert <eggert@cs.ucla.edu>.
78049
78050 2004-08-01  Simon Josefsson  <jas@extundo.com>
78051
78052         * lib/xgetdomainname.c: Include stdlib.h, for free().
78053
78054 2004-07-19  Bruno Haible  <bruno@clisp.org>
78055
78056         * MODULES.html.sh (func_all_modules): Add dummy.
78057
78058 2004-07-16  Simon Josefsson  <jas@extundo.com>
78059
78060         * modules/dummy: New file.
78061
78062 2004-07-16  Simon Josefsson  <jas@extundo.com>
78063
78064         * lib/dummy.c: New file.
78065
78066 2004-07-16  Bruno Haible  <bruno@clisp.org>
78067
78068         * lib/backupfile.h: Add extern "C" for C++.
78069         * lib/closeout.h: Likewise.
78070         * lib/copy-file.h: Likewise.
78071         * lib/findprog.h: Likewise.
78072         * lib/full-write.h: Likewise.
78073         * lib/pathname.h: Likewise.
78074         * lib/progname.h: Likewise.
78075         * lib/stpcpy.h: Likewise.
78076         * lib/stpncpy.h: Likewise.
78077         * lib/strcase.h: Likewise.
78078         * lib/strstr.h: Likewise.
78079         * lib/xalloc.h: Likewise.
78080
78081         * lib/mbswidth.h: Add extern "C" for C++.
78082         Reported by Albert Chin-A-Young <china@thewrittenword.com>.
78083
78084 2004-07-13  Robert Millan  <robertmh@gnu.org>
78085
78086         * m4/host-os.m4: s/KNetBSD/kNetBSD/g and s/KFreeBSD/kFreeBSD/g.
78087
78088 2004-07-09  Simon Josefsson  <jas@extundo.com>
78089
78090         * lib/getndelim2.c: Include stddef.h, for ptrdiff_t.  (FreeBSD 4.9
78091         failed without this.)
78092
78093 2004-07-09  Paul Eggert  <eggert@cs.ucla.edu>
78094
78095         * modules/chown (Files): Add lib/fchown-stub.c, since
78096         gl_PREREQ_CHOWN invokes AC_LIBOBJ(fchown-stub).
78097
78098 2004-07-09  Paul Eggert  <eggert@cs.ucla.edu>
78099
78100         * lib/fchown-stub.c: New file.
78101
78102 2004-06-24  Jim Meyering  <jim@meyering.net>
78103
78104         * lib/obstack.h (obstack_base): Cast to (void *), per documentation.
78105
78106 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
78107
78108         * modules/argz: Omit "#include".
78109
78110         * MODULES.html.sh (func_all_modules): Add calloc, to match
78111         2004-06-01 addition of calloc module.
78112
78113 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
78114
78115         * m4/argz.m4: New file, which is autoupdated from libtool.
78116
78117 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
78118
78119         * lib/argz.c, lib/argz_.h: New files, which are autoupdated from
78120         libtool.
78121
78122 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
78123
78124         * config/srclist-update: Don't insist on "USA." before the
78125         close-comment, as libtool omits the period and puts the */ on a
78126         separate line.
78127         * config/srclist.txt: Add argz.c, argz_.h, argz.m4.
78128         * config/srclistvars.sh: Add LIBTOOL (for eggert only).
78129
78130 2004-06-22  Gary V. Vaughan  <gary@gnu.org>
78131
78132         * modules/argz: New file.
78133         * MODULES.html.sh (func_all_modules): Add argz.
78134
78135 2004-06-12  Jim Meyering  <jim@meyering.net>
78136         and  Paul Eggert  <eggert@cs.ucla.edu>
78137
78138         * modules/hash (Files): Add lib/xalloc.h.
78139         * modules/pipe (Depends-on): Add wait-process.
78140         * modules/stat (Depends-on): Add xalloc.
78141         * modules/userspec (Files): Add lib/userspec.h.
78142         * modules/xstrto
78143
78144         Upgrade from gettext-0.13.
78145         * modules/gettext (Files): Add m4/intmax.m4, m4/longdouble.m4,
78146         m4/longlong.m4, m4/printf-posix.m4, m4/signed.m4, m4/size_max.m4,
78147         m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4.
78148
78149 2004-06-10  Jim Meyering  <jim@meyering.net>
78150
78151         * lib/calloc.c: New file.
78152
78153 2004-06-06  Paul Eggert  <eggert@cs.ucla.edu>
78154
78155         * lib/getdate.y (yylex): Allow space between sign and number.
78156         Problem reported by Dan Jacobson.
78157
78158 2004-06-01  Paul Eggert  <eggert@cs.ucla.edu>
78159
78160         Merge from coreutils CVS.
78161
78162         * m4/backupfile.m4, dirname.m4, human.m4, inttypes.m4, longlong.m4,
78163         makepath.m4, memchr.m4, memcmp.m4, mountlist.m4, path-concat.m4,
78164         putenv.m4, quotearg.m4, readutmp.m4, strtoimax.m4, strtoll.m4,
78165         strtoull.m4, strtoumax.m4, ulonglong.m4, vasnprintf.m4,
78166         xstrtol.m4: Fix copyright date and/or serial number.
78167
78168         * m4/chown.m4 (gl_PREREQ_CHOWN): Check for fcntl.h.
78169         See if we need an fchown replacement.
78170         (gl_FUNC_CHOWN_FOLLOWS_SYMLINK): New macro.
78171         (gl_FUNC_CHOWN): Require gl_FUNC_CHOWN_FOLLOWS_SYMLINK,
78172         and use the replacement function if we detect either defect.
78173
78174         * m4/prereq.m4 (gl_PREREQ): Add gl_ALLOCSA, gl_CLOEXEC, gl_INTTOSTR,
78175         gl_UTIMECMP.
78176
78177 2004-06-01  Paul Eggert  <eggert@cs.ucla.edu>
78178         and  Jim Meyering  <jim@meyering.net>
78179
78180         Merge from coreutils CVS.
78181
78182         * lib/stat-macros.h: New file, with contents from file-type.h
78183         and coreutils' system.h.
78184         * lib/file-type.c: Include "stat-macros.h".
78185         * lib/file-type.h (file_type): Move all macro definitions to new file,
78186         stat-macros.h.
78187
78188         * lib/chown.c (rpl_chown) [CHOWN_FAILS_TO_HONOR_ID_OF_NEGATIVE_ONE]:
78189         Wrap old code with this conditional.
78190         [CHOWN_MODIFIES_SYMLINK]: Try to work around a chown
78191         function that does not dereference symlinks.
78192         * lib/lchown.c (lchown) [CHOWN_MODIFIES_SYMLINK]: Just call chown.
78193
78194         * lib/xreadlink.c: Include xreadlink.h first, to catch .h file
78195         dependency problems.
78196         (xreadlink): Accept new arg SIZE, for efficiency.
78197         All decls and uses changed.
78198         * lib/xreadlink.h: Include <stddef.h>, for size_t.
78199
78200         * lib/.cppi-disable: Add alloca_.h, allocsa.h, exit.h, getndelim2.h,
78201         gettext.h, localcharset.h, strdup.h, strndup.h, strtoul.c, time_r.h.
78202
78203         * lib/.cvsignore: Add alloca.h, fnmatch.h, poll.h, stdbool.h,
78204         sysexits.h.
78205
78206 2004-06-01  Jim Meyering  <jim@meyering.net>
78207
78208         * m4/calloc.m4: New file.
78209
78210 2004-05-31  Paul Eggert  <eggert@cs.ucla.edu>
78211
78212         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Detect _Bool bug in HP aC++/ANSI
78213         C B3910B A.05.55 [Dec 04 2003].  Problem reported by Jim Meyering.
78214         Also, fix a typo in a diagnostic.
78215
78216 2004-05-30  Paul Eggert  <eggert@cs.ucla.edu>
78217
78218         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Do not require AC_FUNC_MALLOC
78219         or AC_FUNC_REALLOC.
78220
78221 2004-05-30  Paul Eggert  <eggert@cs.ucla.edu>
78222
78223         * lib/xmalloc.c (HAVE_MALLOC, HAVE_REALLOC): Do not require these
78224         macros to be defined.
78225         (xnmalloc_inline, xnrealloc_inline, xcalloc): Do not die if
78226         the allocator returns NULL because the requested size is zero.
78227
78228 2004-05-20  Paul Eggert  <eggert@cs.ucla.edu>
78229
78230         * lib/malloc/obstack.c (_obstack) [defined _LIBC]: Bring back this
78231         var.  Add comment explaining why libc still defines it.  This
78232         merges the following patch from glibc:
78233         http://sources.redhat.com/ml/libc-alpha/2004-05/msg00157.html
78234
78235 2004-05-20  Andreas Schwab  <schwab@suse.de>
78236
78237         * m4/free.m4: Replace free if it not known to work, not the other
78238         way round.
78239
78240 2004-05-19  Paul Eggert  <eggert@cs.ucla.edu>
78241
78242         * lib/obstack.c (_obstack): Remove unused variable.  It hasn't been
78243         present in glibc since revision 1.1 of this file.
78244         * lib/obstack.h (_obstack_free, obstack_1grow, obstack_1grow_fast,
78245         obstack_alignment_mask, obstack_alloc, obstack_base,
78246         obstack_blank, obstack_blank_fast, obstack_chunk_size,
78247         obstack_copy, obstack_copy0, obstack_finish, obstack_grow,
78248         obstack_grow0, obstack_init, obstack_int_grow,
78249         obstack_int_grow_fast, obstack_make_room, obstack_memory_used,
78250         obstack_next_free, obstack_object_size, obstack_ptr_grow,
78251         obstack_ptr_grow_fast, obstack_room): Remove declarations of
78252         nonexistent functions.
78253
78254 2004-05-18  Karl Berry  <karl@gnu.org>
78255
78256         * config/srclist.txt: break link for vasnprintf.c.
78257
78258 2004-05-17  Paul Eggert  <eggert@cs.ucla.edu>
78259
78260         Port obstack to the AS/400, where pointers are 16 bytes wide and
78261         you cannot cast an integer to a valid pointer.  This patch is
78262         currently waiting to be integrated into glibc; see
78263         <http://sources.redhat.com/ml/libc-alpha/2004-05/msg00073.html>.
78264
78265         * lib/obstack.h (__PTR_TO_INT, __INT_TO_PTR): Remove.
78266         All uses of __INT_TO_PTR (PTR_TO_INT ...) replaced by __PTR_ALIGN.
78267         (__BPTR_ALIGN, __PTR_ALIGN): New macros.
78268         (struct obstack): temp member is now a union of a pointer and
78269         an integer, instead of an integer.  All integer uses changed.
78270         This does not affect the physical layout of struct obstack,
78271         except on hosts (like the AS/400) where the size or alignment of
78272         void * is greater than that of ptrdiff_t.
78273         (obstack_finish) [! (defined __GNUC__ && defined __STDC__ &&
78274         __STDC__)]: Store temporary in pointer member of union, not
78275         integer member.
78276         * lib/obstack.c: Include <stddef.h>, for offsetof.
78277         (struct fooalign): Remove; it doesn't need a name.
78278         (union fooround): Change double to long double, and add void *.
78279         (DEFAULT_ALIGNMENT): Use offsetof to compute.
78280         (DEFAULT_ALIGNMENT, DEFAULT_ROUNDING): Now an enum constant,
78281         not a macro.  Hence the values are always int; so remove all
78282         casts-to-int in uses.
78283
78284 2004-05-17  Paul Eggert  <eggert@cs.ucla.edu>
78285
78286         * config/srclist.txt: Break link for argp-help.c and argp-parse.c until
78287         we can get this patch merged into glibc.
78288
78289 2004-05-17  Derek R. Price  <derek@ximbiot.com>
78290             Paul Eggert  <eggert@cs.ucla.edu>
78291
78292         * m4/argp: Depend on alloca.
78293
78294 2004-05-17  Derek R. Price  <derek@ximbiot.com>
78295             Paul Eggert  <eggert@cs.ucla.edu>
78296
78297         * lib/argp-help.c, argp-parse.c: Assume <alloca.h> rather than
78298         freecoding.
78299
78300 2004-05-17  Bruno Haible  <bruno@clisp.org>
78301
78302         * lib/vasnprintf.c (VASNPRINTF): Correctly handle the case of a
78303         precision that consists of a '.' followed by an empty digit string.
78304         Patch by Tor Lillqvist <tml@iki.fi>.
78305
78306 2004-05-16  Paul Eggert  <eggert@cs.ucla.edu>
78307
78308         * m4/alloca.m4 (gl_FUNC_ALLOCA): Define HAVE_ALLOCA_H always,
78309         for backward compatibility with older code.  We need our own
78310         alloca.h if _AIX is defined.  Define HAVE_ALLOCA if we discover
78311         it under some other name, and our alloca.h will define it.
78312
78313 2004-05-16  Paul Eggert  <eggert@cs.ucla.edu>
78314             Derek Price  <derek@ximbiot.com>
78315
78316         * lib/alloca.c: Include <alloca.h>, to get our interface.
78317         * lib/alloca_.h: Use __alloca on AIX, so that we don't have to
78318         include <alloca.h> first.  Use C89 prototype for alloca; this
78319         requires including <stddef.h> for size_t.  Use extern "C" if C++.
78320         Use #elif for simplicity, since we can assume C89 now.
78321         Don't try to source the system alloca.h since it will not be found
78322         and to prevent recursively including its replacement.
78323         * lib/fnmatch.c: Include <alloca.h> instead of opencoding.
78324         * lib/regex.c: Likewise.
78325
78326 2004-05-16  Derek Price  <derek@ximbiot.com>
78327             Paul Eggert  <eggert@cs.ucla.edu>
78328
78329         getline cleanup.  This changes the getndelim2 API: both order of
78330         arguments, and meaning of delim2 (now uses EOF, not 0, to indicate
78331         no delimiter).
78332
78333         * lib/getline.c: Don't include stddef.h or stdio.h, since our
78334         interface does that.
78335         (getline): Always use getdelim, so that we don't have two
78336         copies of this code.
78337         * lib/getndelim2.c: Include <limits.h>, <inttypes.h>, <stdint.h>
78338         if available.
78339         (PTRDIFF_MAX, SIZE_MAX, SSIZE_MAX): Define if not defined.
78340         (GETNDELIM2_MAXIMUM): New macro.
78341         (getndelim2): Reorder arguments.  delim==EOF now means no delimiter,
78342         instead of the old practice of delim2==0.  All callers changed.
78343         Return -1 on overflow, instead of returning junk.
78344         Do not set *linesize unless allocation succeeds.
78345         * lib/getndelim2.h: Do not include stddef.h; no longer needed, now
78346         that we include sys/types.h.
78347         * lib/getnline.h: Likewise.
78348         * lib/getndelim2.h (GETNLINE_NO_LIMIT): New macro.
78349         (getndelim2): Reorder arguments.
78350         * lib/getnline.c (getnline, getndelim):
78351         Don't discard the NMAX argument.
78352         (getnline): Invoke getndelim, to avoid code duplication.
78353         * lib/getnline.h (GETNLINE_NO_LIMIT): New macro, used instead
78354         of (size_t) -1 by callers of the getnline family.
78355
78356 2004-05-13  Paul Eggert  <eggert@cs.ucla.edu>
78357
78358         * m4/gettime.m4 (gl_GETTIME): Require gl_TIMESPEC.
78359         Check for gettimeofday.
78360         * m4/settime.m4 (gl_SETTIME): Require gl_TIMESPEC.
78361         Check for settimeofday, stime.
78362
78363 2004-05-13  Paul Eggert  <eggert@cs.ucla.edu>
78364
78365         * lib/nanosleep.c (suspended): Change its type from int to
78366         sig_atomic_t volatile.
78367         (first_call): Make it private to rpl_nanosleep, and have it
78368         be zero initially as that's a bit faster.
78369         (my_usleep): Round up fractional times instead of truncating them,
78370         as this is the usual meaning for 'sleep'.
78371
78372         * lib/gettime.c (gettime): Fall back on `time' if `gettimeofday'
78373         doesn't work.
78374         * lib/settime.c: Include <unistd.h>, for stime (on Solaris 8, anyway).
78375         (ENOSYS): Define if not defined.
78376         (settime): Fall back on stime if it exists and settimeofday fails.
78377         But don't bother with fallbacks if a method fails with errno == EPERM.
78378
78379 2004-05-11  Jim Meyering  <jim@meyering.net>
78380
78381         Prior to this change, the save_cwd caller required read access to the
78382         current directory on most systems (ones with the fchdir function).
78383
78384         * lib/save-cwd.c (save_cwd) [HAVE_FCHDIR]: If opening `.' read-only
78385         fails, try write-only, and finally, resort to using xgetcwd.
78386
78387 2004-05-06  Paul Eggert  <eggert@cs.ucla.edu>
78388
78389         * lib/obstack.c, obstack.h: Import changes from libc.
78390
78391 2004-04-28  Bruno Haible  <bruno@clisp.org>
78392
78393         * lib/findprog.c (find_in_path): Treat Cygwin like Windows, since it
78394         also implicitly appends .exe to executables.
78395         * lib/localcharset.c (ISSLASH): Treat Cygwin like Windows, since it now
78396         accepts Windows pathnames.
78397         * lib/pathname.h (ISSLASH, IS_PATH_WITH_DIR, FILESYSTEM_PREFIX_LEN):
78398         Treat Cygwin like Windows, since it now accepts Windows pathnames.
78399         * lib/progreloc.c (ISSLASH, IS_PATH_WITH_DIR, FILESYSTEM_PREFIX_LEN):
78400         Treat Cygwin like Windows, since it now accepts Windows pathnames.
78401         Reported by Derek Robert Price <derek@ximbiot.com>.
78402
78403 2004-04-21  Karl Berry  <karl@gnu.org>
78404
78405         * config/srclist.txt (localcharset.c): break sync.
78406
78407 2004-04-20  Paul Eggert  <eggert@twinsun.com>
78408
78409         * m4/host-os.m4: Add a copyright notice.
78410
78411 2004-04-20  Jim Meyering  <jim@meyering.net>
78412
78413         Change UTILS_ to gl_ in AC_DEFINE'd names.
78414         Change utils_- and jm_-prefixed variables, too.
78415         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Renamed from
78416         UTILS_FUNC_MKDIR_TRAILING_SLASH.
78417         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Renamed from UTILS_FUNC_MKSTEP.
78418
78419         * m4/dirfd.m4 (gl_FUNC_DIRFD): Rename from UTILS_FUNC_DIRFD.
78420         Don't emit trailing blanks.
78421         Also rename jm_-prefixed variables to have gl_ prefix.
78422
78423         * m4/host-os.m4 (gl_HOST_OS): Rename from UTILS_HOST_OS.
78424         Also rename jm_-prefixed variables to have gl_ prefix.
78425
78426         * m4/jm-macros.m4: Reflect the renamings.
78427         * m4/prereq.m4: Likewise.
78428
78429 2004-04-20  Jim Meyering  <jim@meyering.net>
78430
78431         * lib/getndelim2.c (getndelim2): Upon realloc failure, don't leak
78432         memory.
78433
78434 2004-04-20  Jim Meyering  <jim@meyering.net>
78435             Bruno Haible  <bruno@clisp.org>
78436
78437         * lib/localcharset.c (get_charset_aliases) [!VMS && !WIN32]: Don't leak
78438         memory when realloc fails.
78439
78440 2004-04-19  Jim Meyering  <jim@meyering.net>
78441
78442         * m4/readutmp.m4 (gl_PREREQ_READUTMP): Require gl_FUNC_FREE,
78443         now that readutmp.c may call `free (0)'.
78444
78445 2004-04-19  Bruno Haible  <bruno@clisp.org>
78446
78447         * m4/mbrtowc.m4: Change jm_ to gl_ in cache variables as well.
78448         * m4/inttypes_h.m4: Likewise.
78449         * m4/stdint_h.m4: Likewise.
78450         * m4/intmax_t.m4: Likewise.
78451         * m4/uintmax_t.m4: Likewise.
78452
78453 2004-04-18  Jim Meyering  <jim@meyering.net>
78454
78455         * m4/prereq.m4: Don't forbid jm_ prefix.
78456
78457         * m4/afs.m4, m4/allocsa.m4, m4/assert.m4, m4/backupfile.m4:
78458         * m4/bison.m4, m4/check-decl.m4, m4/chown.m4, m4/d-ino.m4:
78459         * m4/d-type.m4, m4/dirname.m4, m4/dos.m4, m4/error.m4, m4/fpending.m4:
78460         * m4/fstypename.m4, m4/fsusage.m4, m4/ftruncate.m4, m4/getdate.m4:
78461         * m4/getgroups.m4, m4/gettext.m4, m4/glibc21.m4, m4/group-member.m4:
78462         * m4/human.m4, m4/intmax.m4, m4/intmax_t.m4, m4/inttostr.m4:
78463         * m4/inttypes.m4, m4/inttypes_h.m4, m4/jm-macros.m4, m4/jm-winsz1.m4:
78464         * m4/jm-winsz2.m4, m4/lchown.m4, m4/lib-check.m4, m4/link-follow.m4:
78465         * m4/localcharset.m4, m4/longlong.m4, m4/ls-mntd-fs.m4, m4/lstat.m4:
78466         * m4/makepath.m4, m4/mbrtowc.m4, m4/mbswidth.m4, m4/memchr.m4:
78467         * m4/memcmp.m4, m4/mkdtemp.m4, m4/mkstemp.m4, m4/mountlist.m4:
78468         * m4/nanosleep.m4, m4/path-concat.m4, m4/perl.m4, m4/prereq.m4:
78469         * m4/putenv.m4, m4/quotearg.m4, m4/regex.m4, m4/stat.m4:
78470         * m4/stdint_h.m4, m4/strftime.m4, m4/strtoimax.m4, m4/strtoll.m4:
78471         * m4/strtoull.m4, m4/strtoumax.m4, m4/timespec.m4, m4/uintmax_t.m4:
78472         * m4/ulonglong.m4, m4/unlink-busy.m4, m4/unlocked-io.m4, m4/uptime.m4,
78473         * m4/utimbuf.m4, m4/utime.m4, m4/utimes-null.m4, m4/vasnprintf.m4:
78474         * m4/xstrtoimax.m4, m4/xstrtol.m4, m4/xstrtoumax.m4:
78475         Change jm_ to gl_ in AC_DEFINE'd names. Update all uses.
78476
78477 2004-04-18  Jim Meyering  <jim@meyering.net>
78478
78479         * lib/readutmp.c (read_utmp) [UTMP_NAME_FUNCTION]: Upon realloc
78480         failure, don't leak memory and do call END_UTMP_ENT.
78481
78482 2004-04-16  Jim Meyering  <jim@meyering.net>
78483
78484         * m4/prereq.m4 (jm_PREREQ_STAT): Remove macro.  It is specific to
78485         coreutils' stat program.
78486         (gl_PREREQ): Don't require jm_PREREQ_STAT.
78487
78488 2004-04-11  Paul Eggert  <eggert@twinsun.com>
78489
78490         * lib/inttostr.h: Include <limits.h> unconditionally, since we assume
78491         C89.
78492         (CHAR_BIT): Remove, since we assume C89.
78493         Include <stdint.h> if available, as per current Autoconf CVS advice.
78494
78495 2004-03-31  Jim Meyering  <jim@meyering.net>
78496
78497         * m4/prereq.m4: Require AC_FUNC_MALLOC, not jm_FUNC_MALLOC.
78498         Require AC_FUNC_REALLOC, not jm_FUNC_REALLOC.
78499         * m4/xalloc.m4: Likewise.
78500
78501 2004-03-30  Paul Eggert  <eggert@twinsun.com>
78502
78503         Merge from coreutils.
78504
78505         * m4/inttostr.m4: New file.
78506         * m4/getdate.m4 (gl_GETDATE): Remove time-related stuff.
78507         Require AM_STDBOOL_H and gl_TIMESPEC instead.
78508         Require gl_CLOCK_TIME.
78509         * m4/clock_time.m4 (gl_CLOCK_TIME): Require AC_GNU_SOURCE.
78510
78511 2004-03-30  Paul Eggert  <eggert@twinsun.com>
78512
78513         * lib/cloexec.h, cloexec.c (set_cloexec_flag): Return int
78514         not bool, to be more consistent with Unix conventions.
78515         Suggested by Bruno Haible.
78516
78517         Merge from coreutils.
78518
78519         * lib/imaxtostr.c, lib/inttostr.c, lib/inttostr.h, lib/offtostr.c:
78520         * lib/umaxtostr.c: New files.
78521
78522         * lib/getdate.h: Include stdbool.h, and timespec.h instead of
78523         the usual <time.h> dance.
78524         (get_date): Change signature to support fractional time stamps.
78525         All callers changed.
78526         * lib/getdate.y: Include "getdate.h" first, as we can now
78527         assume C89 and don't need to worry about 'const'.
78528         Similarly, include "unlocked-io.h" near start, not in middle.
78529         Include <limits.h>.
78530         (textint.value): Use long int rather than int.
78531         (textint.digits): Use size_t rather than int.
78532         (BILLION, LOG10_BILLION): New constants.
78533         (parser_control): New member rel_ns.  Members day_ordinal,
78534         time_zone, month, day, hour, minutes, rel_year, rel_month,
78535         rel_day, rel_hour, rel_minutes, rel_seconds
78536         are now long int, not int.  Member seconds is now struct timespec,
78537         not int.  New member timespec_seen.  Members dates_seen, days_seen,
78538         local_zones_seen, rels_seen, times_seen, zones_seen are now size_t,
78539         not int.
78540         (%union.intval): Now long int, not int.
78541         New member timespec.
78542         (tSDECIMAL_NUMBER, tUDECIMAL_NUMBER): New tokens.
78543         (seconds, signed_seconds, unsigned_seconds): New nonterminals.
78544         (spec): Now is a timespec or an item list.
78545         (timespec, items): New nonterminals.
78546         (time, rel, relunit, number, get_date):
78547         Add support for fractional seconds.
78548         (time): Fix bug: seconds weren't cleared in "00:00 +0000" syntax.
78549         (gmtime, localtime, mktime): Remove decls; not needed with C89.
78550         (to_hour): First arg is now long int, not int.
78551         (to_year): Returns long int, not int.
78552         Don't treat year -70 like 70.
78553         (tm_diff): Returns long int, not int.
78554         (lookup_word): Use bool instead of int when appropriate.
78555         (yylex): Use size_t for count, not int.
78556         Detect overflow when parsing large integer constants.
78557         Add support for fractions.
78558         (get_date): Make pointers 'const' if possible.
78559         Use more-portable code to detect integer overflow.
78560         (main) [TEST]: Adjust to above changes.  Test for localtime failure.
78561         Don't use ctime; it's not reliable if the year has >4 digits.
78562
78563         * lib/human.c (humblock): Inspect BLOCKSIZE if BLOCK_SIZE isn't set.
78564         This is for compatibility with BSD.
78565
78566         * lib/timespec.h (ST_TIME_CMP_NS, ST_TIME_CMP): Define.
78567         (ATIME_CMP, CTIME_CMP, MTIME_CMP, TIMESPEC_NS): Likewise.
78568         From coreutils' system.h.
78569
78570         * lib/userspec.c: Don't include "posixver.h".
78571         (parse_user_spec): Fall back on USER.GROUP parsing, regardless
78572         of POSIX version, as POSIX 1003.1-2001 allows that behavior as a
78573         compatible extension.  Simplify code by removing a boolean int
78574         that was always nonzero if a string was nonnull.
78575
78576 2004-03-30  Jim Meyering  <jim@meyering.net>
78577
78578         Merge from coreutils.
78579
78580         Avoid a configure-time warning about sys/ucred.h on OSF V4.0.
78581         * m4/ls-mntd-fs.m4: Test for sys/ucred.h separately, since
78582         on some systems one must include <grp.h> before it.
78583         Reported by Christian Krackowizer.
78584
78585 2004-03-30  Jim Meyering  <jim@meyering.net>
78586
78587         Merge from coreutils.
78588
78589         * lib/mountlist.c [HAVE_SYS_UCRED_H]: Include grp.h before sys/ucred.h.
78590
78591         * lib/readtokens.c (readtoken): Don't leak 64 bytes when reading
78592         an empty input stream.
78593
78594         * lib/readtokens.c: Include <stdbool.h>.
78595         (readtoken): Use `size_t' rather than int/long.
78596         All callers adjusted.
78597         Use `bool' rather than `int' where appropriate.
78598         Use memset rather than an explicit loop.
78599         Use x2nrealloc rather than xrealloc.
78600         Allow the use of `\0' as a delimiter.
78601         (readtokens): Likewise.
78602         * lib/readtokens.h (readtoken, readtokens): Update prototypes.
78603
78604 2004-03-30  Jim Meyering  <jim@meyering.net>
78605
78606         * m4/realloc.m4: Remove file, since now it does no more than
78607         AC_REQUIRE([AC_FUNC_REALLOC]), and that can be done via
78608         the `configure.ac' section of module/realloc.
78609         * m4/malloc.m4: Likewise, but for AC_FUNC_MALLOC.
78610
78611 2004-03-30  Bruno Haible  <bruno@clisp.org>
78612
78613         * lib/getloadavg.c (getloadavg): Don't assume setlocale returns
78614         nonnull.
78615
78616 2004-03-29  Paul Eggert  <eggert@twinsun.com>
78617
78618         Merge changes to getloadavg.c from coreutils and Emacs.
78619
78620         * lib/getloadavg.c [!defined HAVE_SETLOCALE] (setlocale):
78621         Define to an expression, not to the empty string.
78622         Include cloexec.h and xalloc.h.
78623         (getloadavg): Restore LC_NUMERIC locale after setting it temporarily.
78624         Use set_cloexec_flag rather than rolling our own.
78625         * lib/cloexec.c, lib/cloexec.h: New files.
78626
78627 2004-03-29  Paul Eggert  <eggert@twinsun.com>
78628
78629         * m4/cloexec.m4: New file.
78630
78631 2004-03-18  Paul Eggert  <eggert@twinsun.com>
78632
78633         * lib/getopt.h: Sync with libc CVS.
78634
78635 2004-03-18  Paul Eggert  <eggert@twinsun.com>
78636             Bruno Haible  <bruno@clisp.org>
78637
78638         * m4/mbswidth.m4 (gl_MBSWIDTH): Also test whether <wchar.h> declares
78639         mbswidth.
78640
78641 2004-03-18  Paul Eggert  <eggert@twinsun.com>
78642             Bruno Haible  <bruno@clisp.org>
78643
78644         * lib/mbswidth.h: Include <wchar.h> only if
78645         HAVE_DECL_MBSWIDTH_IN_WCHAR_H, not on all platforms that have
78646         <wchar.h>.
78647         * lib/mbswidth.c: Include <stdio.h> and <time.h> before <wchar.h>.
78648
78649 2004-03-09  Paul Eggert  <eggert@twinsun.com>
78650
78651         * lib/argp-parse.c, getopt.c, getopt.h, getopt1.c:
78652         Sync with libc CVS.
78653         * lib/getopt_int.h: New file, also synced from libc.
78654
78655 2004-03-09  Paul Eggert  <eggert@twinsun.com>
78656
78657         * config/srclistvars.sh: Add GNUWWWLICENSES for eggert.
78658         * config/srclist.txt: Sync getopt with libc.  Add getopt_int.h.
78659         Bring back getopt.c, getopt.h, getopt1.c.
78660
78661 2004-03-07  Paul Eggert  <eggert@twinsun.com>
78662
78663         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Renamed from jm_PREREQ_C_STACK.
78664         All uses changed.  Check for sa_sigaction member; this fixes
78665         a bug first reported by Jason Andrade in
78666         <http://mail.gnu.org/archive/html/bug-textutils/2003-03/msg00027.html>.
78667
78668 2004-03-07  Paul Eggert  <eggert@twinsun.com>
78669
78670         * lib/c-stack.c (SIGACTION_WORKS): New macro.  Use it instead of long
78671         '#if' expressions.  Unlike the code it replaces, it does not
78672         depend on (defined _SC_PAGESIZE).  However, it does depend on
78673         HAVE_STRUCT_SIGACTION_SA_SIGACTION; this last change fixes a bug
78674         first reported by Jason Andrade in
78675         <http://mail.gnu.org/archive/html/bug-textutils/2003-03/msg00027.html>.
78676
78677 2004-02-25  Simon Josefsson  <jas@extundo.com>
78678
78679         * m4/strdup.m4 (gl_PREREQ_STRDUP): Check whether strdup is declared.
78680
78681 2004-02-25  Simon Josefsson  <jas@extundo.com>
78682
78683         * lib/strdup.h: New file.
78684         * lib/strdup.c: Include it.
78685         * lib/path-concat.c: Include strdup.h. Drop strdup declaration.
78686         * lib/userspec.c: Include strdup.h. Drop strdup declaration.
78687
78688 2004-02-23  Karl Berry  <karl@gnu.org>
78689
78690         * doc/maintain.texi, doc/standards.texi, doc/make-stds.texi: new files
78691         (from fencepost.gnu.org:/gd/gnuorg).
78692
78693 2004-02-23  Karl Berry  <karl@gnu.org>
78694
78695         * config/srclistvars.sh (GNUORG) [karl]: redefine.
78696         * config/srclist.txt: add maintain/standards documents.
78697
78698 2004-02-18  Bruno Haible  <bruno@clisp.org>
78699
78700         * m4/xsize.m4 (gl_XSIZE): Require AC_C_INLINE.
78701         Reported by Derek Robert Price <derek@ximbiot.com>.
78702
78703 2004-02-16  Karl Berry  <karl@gnu.org>
78704
78705         * config/mkinstalldirs, install-sh: update from automake.
78706
78707 2004-02-06  Karl Berry  <karl@gnu.org>
78708
78709         * m4/po.m4: update from gettext 0.14.1.
78710
78711 2004-02-06  Karl Berry  <karl@gnu.org>
78712
78713         * lib/config.charset: update from gettext 0.14.1.
78714
78715 2004-02-05  Paul Eggert  <eggert@twinsun.com>
78716
78717         Add comments and code, prompted by suggestions from Bruno Haible
78718         for sh-quote.
78719         * lib/quotearg.h (quotearg_alloc): New decl.  Improve the comments
78720         describing the enum quoting_style values.
78721         * lib/quotearg.c (quotearg_alloc): New function.
78722         (quotearg_buffer_restyled): Treat lone { and } as special.
78723         Treat = as special.  Work around bug with older shells
78724         that "see" a '\' that is really the 2nd byte of a multibyte char.
78725         Quote empty string with shell_quoting_style.
78726
78727 2004-02-03  Bruno Haible  <bruno@clisp.org>
78728
78729         * m4/pipe.m4: New file, from GNU gettext.
78730
78731 2004-02-03  Bruno Haible  <bruno@clisp.org>
78732
78733         * lib/pipe.h: New file, from GNU gettext.
78734         * lib/pipe.c: New file, from GNU gettext.
78735
78736 2004-01-27  Bruno Haible  <bruno@clisp.org>
78737
78738         * m4/execute.m4: New file, from GNU gettext.
78739
78740 2004-01-27  Bruno Haible  <bruno@clisp.org>
78741
78742         * lib/execute.h: New file, from GNU gettext.
78743         * lib/execute.c: New file, from GNU gettext.
78744         * lib/w32spawn.h: New file, from GNU gettext.
78745
78746 2004-01-24  Paul Eggert  <eggert@twinsun.com>
78747
78748         Merge from diffutils.
78749
78750         * lib/file-type.c (file_type): Add typed memory objects.
78751         * lib/file-type.h (S_TYPEISTMO): New macro.
78752
78753         * lib/c-stack.h (c_stack_action): Remove argv argument.
78754         * lib/c-stack.c (c_stack_action): Likewise.  All uses changed.
78755         (die): Don't calculate message unless segv_action returns.
78756         (get_stack_location, min_address_from_argv, max_address_from_argv,
78757         volatile stack_base, volatile_stack_size): Remove.
78758         (segv_handler): If ! HAVE_XSI_STACK_OVERFLOW_HEURISTIC, assume
78759         that every segmentation violation is a stack overflow.  (Ouch!)
78760         See Debian bug 136249 (still outstanding) for more info about why
78761         HAVE_XSI_STACK_OVERFLOW_HEURISTIC fails on Linux kernels.
78762
78763 2004-01-24  Paul Eggert  <eggert@twinsun.com>
78764
78765         Exit-status fix from coreutils.
78766
78767         Use exit_failure consistently in place of EXIT_FAILURE,
78768         so that program exit statuses are consistent on failure.
78769
78770         * lib/argmatch.c (ARGMATCH_DIE) [! defined ARGMATCH_DIE]:
78771         Include "exitfail.h", and use exit_failure rather than EXIT_FAILURE.
78772         * lib/argmatch.h: Comment fix to match the above.
78773         * lib/obstack.c (obstack_exit_failure) [!defined _LIBC]:
78774         Now a macro referring to exit_failure, instead of a separate
78775         variable.  Include "exitfail.h" to get it.
78776         * lib/xstrtol.h: Include "exitfail.h".
78777         (STRTOL_FATAL_ERROR): Exit with status exit_failure, not 2.
78778
78779         * lib/long-options.c (parse_long_options): Use prototype
78780         for usage function arg.  Pass it EXIT_SUCCESS rather than 0,
78781         for clarity.
78782
78783 2004-01-21  Jim Meyering  <jim@meyering.net>
78784
78785         * lib/mktime.c (__mktime_internal) [!_LIBC]: Define to mktime_internal
78786         so as not to conflict with a different-sized __mktime_internal
78787         function in GNU libc.
78788         * lib/timegm.c (__mktime_internal) [!_LIBC]: Likewise.
78789         Problem building statically-linked `ls' reported by Michael Brunnbauer.
78790
78791 2004-01-20  Karl Berry  <karl@gnu.org>
78792
78793         * config/config.guess: update from config.
78794
78795         * config/srclistvars.sh: GNUWWWLICENSES for karl.
78796
78797 2004-01-20  Bruno Haible  <bruno@clisp.org>
78798
78799         Safer stack allocation.
78800         * lib/setenv.c: Include allocsa.h.
78801         (alloca): Remove fallback definition.
78802         (freea): Remove macro.
78803         (__add_to_environ) [!_LIBC]: Use allocsa instead of alloca. Use freesa
78804         instead of freea.
78805
78806 2004-01-20  Bruno Haible  <bruno@clisp.org>
78807
78808         * m4/eealloc.m4: New file, from GNU gettext.
78809
78810 2004-01-20  Bruno Haible  <bruno@clisp.org>
78811
78812         * m4/allocsa.m4: New file, from GNU gettext.
78813
78814 2004-01-20  Bruno Haible  <bruno@clisp.org>
78815
78816         * lib/xallocsa.h: New file, from GNU gettext.
78817         * lib/xallocsa.c: New file, from GNU gettext.
78818
78819 2004-01-20  Bruno Haible  <bruno@clisp.org>
78820
78821         * lib/wait-process.c: On Windows, include windows.h. Needed on mingw.
78822
78823 2004-01-20  Bruno Haible  <bruno@clisp.org>
78824
78825         * lib/wait-process.c (wait_subprocess): Add ignore_sigpipe argument.
78826         * lib/wait-process.c (wait_subprocess): Likewise. Handle SIGPIPE
78827         specially.
78828
78829 2004-01-20  Bruno Haible  <bruno@clisp.org>
78830
78831         * lib/wait-process.c (wait_process): Disable the 2003-10-31 waitid()
78832         patch.
78833
78834 2004-01-20  Bruno Haible  <bruno@clisp.org>
78835
78836         * lib/wait-process.c (cleanup_slaves): Use ANSI C declaration.
78837
78838 2004-01-20  Bruno Haible  <bruno@clisp.org>
78839
78840         * lib/eealloc.h: New file.
78841
78842 2004-01-20  Bruno Haible  <bruno@clisp.org>
78843
78844         * lib/binary-io.h: Avoid warnings on Cygwin.
78845
78846 2004-01-20  Bruno Haible  <bruno@clisp.org>
78847
78848         * lib/allocsa.h: New file, from GNU gettext.
78849         * lib/allocsa.c: New file, from GNU gettext.
78850
78851 2004-01-18  Karl Berry  <karl@gnu.org>
78852
78853         * doc/gpl.texi, doc/lgpl.texi: new files.
78854
78855 2004-01-18  Karl Berry  <karl@gnu.org>
78856
78857         * config/srclistvars.sh (GNUWWWLICENSES): new variable.
78858         * config/srclist.txt ({fdl,gpl,lgpl}.text): get from there.
78859
78860 2004-01-15  Paul Eggert  <eggert@twinsun.com>
78861
78862         Merge from coreutils.
78863
78864         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Check for uintptr_t.
78865         * m4/posixver.m4 (gl_POSIXVER): Require gl_DEFAULT_POSIX2_VERSION.
78866         (gl_DEFAULT_POSIX2_VERSION): Move
78867         the documentation from 'configure' into 'config.hin',
78868         so that 'configure --help' isn't burdened by it and
78869         we don't have to worry about its formatting there.
78870         Reword the documentation so that it's more succinct
78871         and can be run together into a single paragraph.
78872         * m4/same.m4 (gl_SAME): Check for pathconf.
78873
78874 2004-01-15  Paul Eggert  <eggert@twinsun.com>
78875
78876         Merge from coreutils.
78877
78878         * lib/posixver.c: Include posixver.h.
78879
78880         * lib/same.c: Include <stdbool.h>, <limits.h>.
78881         (_POSIX_NAME_MAX): Define if not defined.
78882         (MIN): New macro.
78883         (same_name): If file names are silently truncated, report
78884         that the file names are the same if they are the same after
78885         the silent truncation.
78886
78887         * lib/xstrtod.h (xstrtod): Accept an extra arg, specifying the
78888         conversion function.
78889         * lib/xstrtod.c (xstrtod): Likewise.  All callers changed to
78890         include c-strtod.h and use c_strtod.  Don't include stdlib.h; no
78891         longer needed.
78892
78893 2004-01-15  Jim Meyering  <jim@meyering.net>
78894
78895         Merge from coreutils.
78896
78897         * m4/clock_time.m4 (gl_CLOCK_TIME): Don't set LIB_CLOCK_GETTIME
78898         if no library is required.
78899         * m4/jm-macros.m4: Don't require UTILS_SYS_OPEN_MAX.
78900         * m4/jm-macros.m4 (jm_MACROS): Require gl_FUNC_FREE.
78901         * m4/jm-macros.m4 (jm_MACROS): Require autoconf-2.58.
78902         (AC_LANG_SOURCE): Remove definition, now that we require autoconf-2.58.
78903         * m4/jm-macros.m4 (jm_MACROS): Don't require AC_FUNC_FTW.
78904         * m4/lib-check.m4 (jm_LIB_CHECK): Do not set LIB_CRYPT to the
78905         value, $ac_cv_search_crypt, if it's "none required".
78906         * m4/posixver.m4 (gl_DEFAULT_POSIX2_VERSION): New macro.
78907         * m4/prereq.m4 (jm_PREREQ): Require AC_FUNC_GETLOADAVG,
78908         not gl_FUNC_GETLOADAVG.
78909         * m4/prereq.m4 (jm_PREREQ): Require gl_READTOKENS, gl_MD5, gl_MAKEPATH,
78910         gl_LONG_OPTIONS, and gl_IDCACHE, gl_GETUGROUPS.
78911
78912 2004-01-15  Jim Meyering  <jim@meyering.net>
78913
78914         Merge from coreutils.
78915
78916         * lib/md5.h (rol) [__GNUC__ && __i386__]: Don't use `asm' code.  These
78917         days, gcc-3.x does better all by itself.  Patch from Dean Gaudet:
78918         http://mail.gnu.org/archive/html/bug-coreutils/2003-11/msg00144.html
78919
78920         * lib/posixver.c (DEFAULT_POSIX2_VERSION): Use definition of new,
78921         optional configure-time default.
78922
78923         * lib/version-etc.c (version_etc_copyright): Update copyright date.
78924
78925         * lib/xreadlink.c (xreadlink): Correct outdated comment.
78926
78927 2004-01-15  Alexandre Duret-Lutz  <adl@gnu.org>
78928
78929         Merge from coreutils.
78930
78931         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Do not set LIB_NANOSLEEP to the
78932         value, $ac_cv_search_nanosleep, if it's "none required".
78933
78934 2004-01-14  Paul Eggert  <eggert@twinsun.com>
78935
78936         * lib/fnmatch_loop.c (ALLOCA_LIMIT): Remove macro, which collided
78937         with like-named macro in fnmatch.c.
78938         (EXT): Use an internal constant instead.
78939
78940         Merge fnmatch patches from glibc.
78941         * lib/fnmatch.c (mbsinit): Remove define.
78942         Add libc_hidden_ver (__fnmatch, fnmatch).
78943         * lib/fnmatch_loop.c (FCT): Cast to int32_t and UCHAR when appropriate.
78944         Adjust to renaming of collseq_table_lookup to __collseq_table_lookup.
78945
78946 2004-01-14  Karl Berry  <karl@gnu.org>
78947
78948         * config/install-sh: update from automake.
78949
78950 2004-01-13  Karl Berry  <karl@gnu.org>
78951
78952         * config/install-sh: update from automake.
78953
78954 2004-01-09  Karl Berry  <karl@gnu.org>
78955
78956         * config/install-sh: update from automake.
78957
78958 2004-01-05  Karl Berry  <karl@gnu.org>
78959
78960         * config/config.{sub,guess}: update from config.
78961
78962 2003-12-31  Karl Berry  <karl@gnu.org>
78963
78964         * config/depcomp: update from automake.
78965
78966 2003-12-14  Karl Berry  <karl@gnu.org>
78967
78968         * lib/config.charset: update from gettext-runtime.
78969
78970 2003-12-03  Paul Eggert  <eggert@twinsun.com>
78971
78972         * lib/getgroups.c (getgroups): xmalloc takes one argument, not two.
78973         Bug reported by Alfred M. Szmidt.
78974
78975 2003-12-03  Bruno Haible  <bruno@clisp.org>
78976
78977         * m4/gettext.m4: Upgrade from gettext-0.13.
78978         * m4/po.m4: Upgrade from gettext-0.13.
78979         * m4/size_max.m4 (gl_SIZE_MAX): Don't use the _ONCE macros here.
78980         * m4/intmax.m4: New file, from gettext-0.13.
78981         * m4/printf-posix.m4: New file, from gettext-0.13.
78982
78983 2003-11-29  Karl Berry  <karl@gnu.org>
78984
78985         * lib/argp-{help.c,parse.c,namefrob.h}, argp.h: update from libc.
78986
78987 2003-11-25  Paul Eggert  <eggert@twinsun.com>
78988             Bruno Haible  <bruno@clisp.org>
78989
78990         * lib/printf-parse.h: Don't include sys/types.h.
78991         (ARG_NONE): New macro.
78992         (char_directive): Change type of *arg_index fields to size_t.
78993         * lib/printf-parse.c: Don't include sys/types.h.
78994         (SSIZE_MAX): Remove macro.
78995         (PRINTF_PARSE): Change the type of the arg_index variables to size_t.
78996         Remove unnecessary overflow check.
78997         * lib/vasnprintf.c (VASNPRINTF): Update for type change of *arg_index
78998         fields.
78999
79000 2003-11-25  Bruno Haible  <bruno@clisp.org>
79001
79002         * modules/vasnprintf (Files): Remove m4/ssize_t.m4.
79003
79004 2003-11-25  Bruno Haible  <bruno@clisp.org>
79005
79006         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Don't require
79007         gt_TYPE_SSIZE_T.
79008
79009 2003-11-24  Paul Eggert  <eggert@twinsun.com>
79010
79011         * modules/alloca: Remove dependency on xalloc.
79012
79013 2003-11-24  Paul Eggert  <eggert@twinsun.com>
79014
79015         * lib/alloca.c: Remove dependency on xalloc module.
79016         (xalloc_die): Remove.
79017         (memory_full) [!defined emacs]: New macro.
79018         [!defined emacs]: Don't include xalloc.h.
79019         (alloca): Invoke memory_full, not xalloc_die, if malloc fails or
79020         address arithmetic overflows.  Change datatypes a bit to avoid
79021         unnecessary casts.
79022
79023 2003-11-22  Jim Meyering  <jim@meyering.net>
79024
79025         * lib/xmalloc.c (x2nrealloc_inline): Fix typos in comments:
79026         s/size/size_t/.
79027
79028 2003-11-21  Karl Berry  <karl@gnu.org>
79029
79030         * config/config.{sub,guess}: update from config.
79031
79032 2003-11-18  Karl Berry  <karl@gnu.org>
79033
79034         * config/config.{sub,guess}: update from config.
79035
79036         * config/(printf-{parse,args}.[ch]): sync broken, sigh.
79037
79038 2003-11-17  Paul Eggert  <eggert@twinsun.com>
79039
79040         * README: Mention that S+T cannot overflow if S is the size of
79041         an existing object and T is sufficiently small.
79042
79043 2003-11-17  Jim Meyering  <jim@meyering.net>
79044
79045         On systems without utime and without a utimes function capable of
79046         dealing with a NULL struct utimbuf* argument, this utime replacement
79047         could -- in unusual circumstances -- leak a file descriptor.
79048         * lib/utime.c: Include <unistd.h> and <errno.h>.
79049         (utime_null): Be sure to close `fd' and to preserve errno.
79050         Reported by Geoff Collyer via Arnold Robbins.
79051
79052 2003-11-17  Bruno Haible  <bruno@clisp.org>
79053
79054         * modules/vasnprintf (Files): Add m4/ssize_t.m4.
79055         (Depends-on): Add xsize.
79056
79057 2003-11-17  Bruno Haible  <bruno@clisp.org>
79058
79059         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Require gt_TYPE_SSIZE_T.
79060
79061 2003-11-17  Bruno Haible  <bruno@clisp.org>
79062
79063         * lib/vasnprintf.c (alloca): Remove fallback definition.
79064         (freea): Remove definition.
79065         (VASNPRINTF): Use alloca only for small sizes, say <= 4000 bytes.
79066         Reported by Paul Eggert.
79067
79068 2003-11-16  Paul Eggert  <eggert@twinsun.com>
79069             Bruno Haible  <bruno@clisp.org>
79070
79071         Protect against address arithmetic overflow.
79072         * lib/printf-args.h: Include stddef.h.
79073         (arguments): Change type of field 'count' to size_t.
79074         * lib/printf-args.c (printf_fetchargs): Use size_t instead of
79075         'unsigned int' where appropriate.
79076         * lib/printf-parse.h: Include sys/types.h.
79077         (char_directive): Change type of *arg_index fields to ssize_t.
79078         (char_directives): Change type of fields 'count', max_*_length to
79079         size_t.
79080         * lib/printf-parse.c: Include sys/types.h and xsize.h.
79081         (SSIZE_MAX): Define fallback value.
79082         (PRINTF_PARSE): Use size_t instead of 'unsigned int' and ssize_t
79083         instead of 'int' where appropriate. Check a_allocated, d_allocated
79084         against overflow. Reject %m$ argument numbers > SSIZE_MAX + 1.
79085         * lib/vasnprintf.c: Include xsize.h.
79086         (VASNPRINTF): Use size_t instead of 'unsigned int' where appropriate.
79087         Check alloca, malloc, realloc, ENSURE_ALLOCATION arguments against
79088         overflow. Avoid wraparound when converting a width or precision from
79089         decimal to binary.
79090
79091 2003-11-16  Bruno Haible  <bruno@clisp.org>
79092
79093         Update from GNU gettext.
79094         * lib/printf-parse.c: Generalize to it can be compiled for wide
79095         strings.
79096         (PRINTF_PARSE, CHAR_T, DIRECTIVE, DIRECTIVES): New macros.
79097         * lib/vasnprintf.c: Generalize to it can be compiled for wide strings.
79098         (VASNPRINTF, CHAR_T, DIRECTIVE, DIRECTIVES, PRINTF_PARSE, USE_SNPRINTF,
79099         SNPRINTF): New macros.
79100         Don't include <alloca.h> if the file is used inside libintl.
79101         (local_wcslen): New function, for Solaris 2.5.1.
79102         (VASNPRINTF): Use it instead of wcslen.
79103
79104 2003-11-16  Bruno Haible  <bruno@clisp.org>
79105
79106         * lib/xsize.h (xmax): New function.
79107         (xsum, xsum3, xsum4): Declare as "pure" functions.
79108
79109 2003-11-12  Paul Eggert  <eggert@twinsun.com>
79110
79111         * modules/xalloc (Files): Undo latest change, since xalloc.h
79112         no longer needs SIZE_MAX or PTRDIFF_MAX.
79113
79114 2003-11-12  Paul Eggert  <eggert@twinsun.com>
79115
79116         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Do not require gl_SIZE_MAX or
79117         gl_PTRDIFF_MAX.
79118
79119 2003-11-12  Paul Eggert  <eggert@twinsun.com>
79120
79121         * lib/xstrtol.c (__xstrtol): Remove "break" immediately after
79122         "return", to pacify some unknown compiler.  Problem reported
79123         by Joerg Schilling.
79124
79125 2003-11-12  Paul Eggert  <eggert@twinsun.com>
79126
79127         * lib/xalloc.h: Do not include <limits.h> or <stdint.h>.
79128         (xalloc_oversized): Use sizeof (ptrdiff_t) and sizeof (size_t) for
79129         the heuristic, rather than PTRDIFF_MAX and SIZE_MAX.  This
79130         heuristic is just as accurate as far as we know, and it removes a
79131         dependency on size_max.m4 and ptrdiff_max.m4.
79132
79133 2003-11-11  Bruno Haible  <bruno@clisp.org>
79134
79135         * modules/xsize (Files): Add m4/size_max.m4.
79136         * modules/xalloc (Files): Add m4/size_max.m4, m4/ptrdiff_max.m4.
79137
79138 2003-11-11  Bruno Haible  <bruno@clisp.org>
79139
79140         * m4/size_max.m4: New file.
79141         * m4/ptrdiff_max.m4: New file.
79142         * m4/xsize,m4 (gl_XSIZE): Require gl_SIZE_MAX.
79143         * m4/xalloc.m4 (gl_PREREQ_XALLOC): New macro.
79144         (gl_XALLOC): Invoke it.
79145
79146 2003-11-11  Bruno Haible  <bruno@clisp.org>
79147
79148         * lib/xsize.h (SIZE_MAX): Remove fallback definition.
79149         * lib/xalloc.h: Include limits.h. Assume SIZE_MAX and PTRDIFF_MAX are
79150         defined.
79151
79152 2003-11-10  Paul Eggert  <eggert@twinsun.com>
79153
79154         * lib/xalloc.h (xalloc_oversized): [! (defined PTRDIFF_MAX &&
79155         PTRDIFF_MAX < SIZE_MAX)]: Fix off-by-one error that would have
79156         rejected some allocations of exactly SIZE_MAX - 2 bytes.
79157         From Bruno Haible.
79158         [defined PTRDIFF_MAX && PTRDIFF_MAX < SIZE_MAX]: Use SIZE_MAX,
79159         not (size_t) -1, since it's defined here.
79160
79161 2003-11-09  Karl Berry  <karl@gnu.org>
79162
79163         * config/mkinstalldirs, depcomp, mdate-sh: update from automake.
79164
79165 2003-11-06  Paul Eggert  <eggert@twinsun.com>
79166
79167         * lib/xalloc.h [HAVE_STDINT_H]: Include <stdint.h>.
79168         (xalloc_oversized) [! (PTRDIFF_MAX < SIZE_MAX)]:
79169         Reject sizes of exactly SIZE_MAX bytes.
79170         * lib/xreadlink.c: Include "xalloc.h" before checking whether SIZE_MAX
79171         is defined, since "xalloc.h" now defines SIZE_MAX on modern hosts.
79172
79173 2003-11-05  Bruno Haible  <bruno@clisp.org>
79174
79175         * lib/xsize.h: Include limits.h, to avoid a possible collision with
79176         SIZE_MAX defined in <limits.h> on Solaris.
79177
79178 2003-11-04  Jim Meyering  <jim@meyering.net>
79179
79180         * modules/sysexits: Use the `$(VAR)' notation for AC_SUBST'd
79181         variable names, rather than @VAR@.
79182         * modules/poll: Likewise.
79183
79184 2003-11-04  Bruno Haible  <bruno@clisp.org>
79185
79186         * modules/xsize: New file.
79187         * modules/linebreak: Depend on xsize.
79188         * MODULES.html.sh (func_all_modules): Add xsize.
79189
79190 2003-11-04  Bruno Haible  <bruno@clisp.org>
79191
79192         * m4/xsize.m4: New file.
79193
79194 2003-11-04  Bruno Haible  <bruno@clisp.org>
79195
79196         * lib/xsize.h: New file.
79197         * lib/linebreak.c: Include xsize.h.
79198         (mbs_possible_linebreaks, mbs_width_linebreaks): Check malloc()
79199         argument for overflow.
79200         Suggested by Paul Eggert.
79201
79202 2003-11-03  Karl Berry  <karl@gnu.org>
79203
79204         * config/config.{guess,sub}: update from config.
79205
79206 2003-11-03  Jim Meyering  <jim@meyering.net>
79207
79208         * modules/userspec (lib_SOURCES): Add userspec.h.
79209         (Include): Add "userspec.h".
79210         Improve description.
79211
79212 2003-11-03  Jim Meyering  <jim@meyering.net>
79213
79214         * lib/userspec.c: Include "userspec.h".
79215         * lib/userspec.h: New file.
79216
79217 2003-11-03  Bruno Haible  <bruno@clisp.org>
79218
79219         * m4/wait-process.m4 (gl_WAIT_PROCESS): Also check for waitid.
79220
79221 2003-11-03  Bruno Haible  <bruno@clisp.org>
79222
79223         * lib/wait-process.c (wait_process): Use waitid with WNOWAIT if
79224         available, to avoid (extremely rare) race condition.
79225         Suggested by Paul Eggert.
79226
79227 2003-11-02  Karl Berry  <karl@gnu.org>
79228
79229         * config/srclist.txt (vasprintf.c): sync broken, sigh.
79230
79231 2003-10-31  Paul Eggert  <eggert@twinsun.com>
79232
79233         * lib/mountlist.h (struct mount_entry.me_type_malloced): New member.
79234         * lib/mountlist.c (SIZE_MAX): Define if not defined already.
79235         (read_filesystem_list): Set and use me_type_malloced.
79236         Use "sizeof *me" rather than "sizeof (struct mount_entry)" (or
79237         whatever the type happens to be), for brevity and consistency.
79238         Check for size calculation overflow on Alphas running OSF/1.
79239
79240 2003-10-31  Jim Meyering  <jim@meyering.net>
79241
79242         * lib/hash.c: Include "xalloc.h" for use of xalloc_oversized.
79243
79244         * lib/linebuffer.c: Include <string.h> for declaration of memset.
79245
79246 2003-10-30  Paul Eggert  <eggert@twinsun.com>
79247             Bruno Haible  <bruno@clisp.org>
79248
79249         * lib/vasprintf.c: Include <limits.h>, <stdlib.h>.
79250         (vasprintf): Fail if the resulting length doesn't fit in an 'int'.
79251
79252 2003-10-30  Paul Eggert  <eggert@cs.ucla.edu>
79253
79254         * m4/host-os.m4 (UTILS_HOST_OS): Change netbsd*-gnu pattern back to
79255         netbsd*-gnu*.  Suggested by Robert Millan.
79256
79257 2003-10-29  Paul Eggert  <eggert@twinsun.com>
79258
79259         * modules/group-member: Depend on stdbool.
79260
79261 2003-10-29  Paul Eggert  <eggert@twinsun.com>
79262
79263         * m4/xalloc.m4 (gl_XALLOC): Undo previous change.
79264
79265 2003-10-29  Paul Eggert  <eggert@twinsun.com>
79266
79267         * m4/host-os.m4 (UTILS_HOST_OS): Resurrect netbsd*-gnu.  Add comments
79268         to it, and to knetbsd*-gnu and kfreebsd*-gnu.  Remove the '*' from
79269         after the 'gnu' in these cases.  This fixes some bugs in the
79270         previous change, and is based on suggestions by Robert Millan.
79271
79272 2003-10-29  Paul Eggert  <eggert@twinsun.com>
79273
79274         * lib/xalloc.h (xalloc_oversized): Now a macro, not a function,
79275         so that it works even if SIZE_MAX < N.  Do not include <stdbool.h>;
79276         no longer needed.
79277         * lib/quotearg.c (quotearg_n_options): Use it.
79278         * lib/group-member.c: Include <stdbool.h>.
79279         (free_group_info): Arg is now const *; don't free arg.
79280         (get_group_info): Now returns bool and accepts struct group_info *,
79281         rather than returning a malloc'ed struct group_info *.
79282         All uses changed.  Check for overflow in internal size calculation.
79283
79284         * lib/getusershell.c (readname): Simplify the code by using x2nrealloc
79285         rather than xmalloc/xrealloc.
79286         * lib/linebuffer.c (initbuffer, readlinebuffer): Simplify the code by
79287         using x2realloc rather than xmalloc/xrealloc.  Also, fix a C
79288         conformance bug: the old code used a pointer after freeing the
79289         storage that it addressed.
79290         * lib/hash.c (hash_initialize): Simplify the code by using
79291         xalloc_oversized rather than doing it by hand.
79292         * lib/getgroups.c (getgroups): Don't use xrealloc, since we don't need
79293         the buffer preserved.  Use free and xmalloc instead.
79294         * lib/quotearg.c (quotearg_n_options): Likewise.
79295         Use a simpler test for size overflow.  Don't use xalloc_oversized
79296         because unsigned int might be wider than size_t (!); this suggests
79297         that we should switch from unsigned int to size_t for slot numbers.
79298
79299 2003-10-28  Paul Eggert  <eggert@twinsun.com>
79300
79301         * m4/host-os.m4 (UTILS_HOST_OS): Identify GNU/KFreeBSD and
79302         GNU/KNetBSD.  These implementations use glibc atop the FreeBSD and
79303         NetBSD kernels.  Requested by Richard Stallman.
79304
79305 2003-10-27  Paul Eggert  <eggert@twinsun.com>
79306
79307         * lib/exclude.c (new_exclude): Use xzalloc rather than xmalloc
79308         to allocate the returned structure.  Do not allocate a subarray,
79309         as x2nrealloc will do that.
79310         (add_exclude): Use x2nrealloc to reallocate ex->exclude,
79311         instead of xnrealloc.
79312         (add_exclude_file): Use x2realloc instead of malloc + xnrealloc.
79313
79314 2003-10-27  Bruno Haible  <bruno@clisp.org>
79315
79316         * lib/stdbool_.h: Better support for BeOS.
79317
79318 2003-10-26  Paul Eggert  <eggert@twinsun.com>
79319
79320         * m4/xalloc.m4 (gl_XALLOC): Requore AC_C_INLINE, since xalloc.h
79321         now uses inline.
79322
79323 2003-10-26  Paul Eggert  <eggert@twinsun.com>
79324
79325         * lib/xalloc.h (xalloc_oversized): New static inline function, for
79326         callers that want to do their own size-overflow checking.  Include
79327         <stdbool.h>, since xalloc_oversized returns bool.
79328         * lib/xalloc.c (array_size_overflow): Remove.  All callers changed
79329         to use xalloc_oversized.
79330
79331         Add two functions x2realloc, x2nrealloc, for programs that grow
79332         arrays dynamically by doubling their sizes.
79333         * lib/xalloc.h (x2realloc, x2nrealloc): New decls.
79334         * lib/xmalloc.c (x2nrealloc_inline, x2nrealloc, x2realloc):
79335         New functions.
79336
79337         Port to C99 semantics for 'inline' of external functions.
79338         Bug reported by Bruno Haible.
79339         * lib/xmalloc.c (xnmalloc_inline): New static inline function,
79340         with the old contents of xnmalloc.
79341         (xnmalloc, xmalloc): Use it.
79342         (xnrealloc_inline): New static inline function,
79343         with the old contents of xnrealloc.
79344         (xnrealloc, xrealloc): Use it.
79345
79346         * lib/alloc.c (alloca): xmalloc cannot return NULL, so don't test for
79347         that.
79348
79349 2003-10-26  Karl Berry  <karl@gnu.org>
79350
79351         * config/srclist.txt (COPYING.DOC): no longer available from
79352         /gd/gnuorg; don't know where the ultimate source is.
79353
79354 2003-10-25  Paul Eggert  <eggert@twinsun.com>
79355
79356         Fix several address-calculation bugs in the hash modules,
79357         plus some minor code cleanup.
79358
79359         * lib/hash.h: Include <stdbool.h>, for bool.
79360         * lib/hash.c: Don't include <stdbool.h>, since hash.h does it now.
79361         * lib/hash.h (Hash_hasher, hash_get_n_buckets, hash_get_n_buckets_used,
79362         hash_get_n_entries, hash_get_max_bucket_length,
79363         hash_get_entries, hash_do_for_each, hash_string, hash_initialize,
79364         hash_rehash): Use size_t rather than unsigned.
79365         * lib/hash.c (struct hash_table, hash_get_n_buckets,
79366         hash_get_n_buckets_used, hash_get_n_entries,
79367         hash_get_max_bucket_length, hash_table_ok, hash_print_statistics,
79368         hash_get_entries, hash_do_for_each, hash_string, is_prime,
79369         next_prime, hash_initialize, hash_rehash, hash_delete, hash_print):
79370         Likewise.
79371         (SIZE_MAX): Define if not defined.
79372         (hash_get_max_bucket_length, hash_table_ok, hash_lookup,
79373         hash_get_first, hash_get_next, hash_get_entries, hash_do_for_each,
79374         hash_print):
79375         Use const * when possible.
79376         (hash_string): Use (unsigned char) *P rather than *(unsigned char *) P.
79377         (check_tuning): Fix bug: if tuning parameters were very close to
79378         0 or 1, rounding errors could have caused subscript violations.
79379         (hash_initialize, allocate_entry, hash_print): Remove unnecessary cast.
79380         (hash_initialize): Add 'fail:' label
79381         to free table and return NULL, and use it to simplify code.
79382         Use calloc rather than clearing the storage ourself.
79383         (hash_initialize, hash_rehash): Check for arithmetic overflow in
79384         buffer size calculations.
79385         * lib/hash-pjw.h (hash_pjw): Use size_t, not unsigned.
79386         Include <stddef.h>, for size_t.
79387         * lib/hash-pjw.c (hash_pjw): Likewise.
79388         Switch to method described by Bruno Haible.
79389         Include <limits.h>, for CHAR_BIT.
79390         (SIZE_BITS): New macro.
79391
79392 2003-10-23  Paul Eggert  <eggert@twinsun.com>
79393
79394         * m4/getline.m4 (AM_FUNC_GETLINE):
79395         Don't include getndelim2.o twice into LIBOBJS; this breaks on some
79396         hosts.  Problem reported by Derek Robert Price in
79397         <http://mail.gnu.org/archive/html/bug-gnulib/2003-10/msg00092.html>.
79398         This patch can be withdrawn after Autoconf 2.58 is required for gnulib.
79399         * m4/getndelim2.m4 (gl_GETNDELIM2): Likewise.
79400
79401 2003-10-21  Paul Eggert  <eggert@twinsun.com>
79402
79403         * lib/getndelim2.c (getndelim2): When size calculation overflows,
79404         ceiling the allocation at NMAX bytes rather than silently
79405         discarding input bytes before NMAX is reached.  This makes
79406         a difference only if NMAX exceeds SIZE_MAX / 2.
79407
79408         * lib/obstack.c: Merge from glibc.
79409         [defined _LIBC]: Include <obstack.h>, not "obstack.h".
79410         Add libc_hidden_def (_obstack_newchunk).
79411         (_obstack_free) [! defined _LIBC]: Remove.
79412         [defined _LIBC]: Make a strong alias from obstack_free, rather than
79413         a clone of the function body.
79414         (fputs) [defined _LIBC && defined USE_IN_LIBIO]: Remove.
79415         [defined _LIBC && !defined USE_IN_LIBIO]: Include <libio/iolibio.h>.
79416
79417         * lib/obstack.h: Indenting cleanup, to make it easier to merge with
79418         glibc.
79419         (obstack_grow, obstack_grow0): Remove unnecessary parentheses around
79420         arg to memcpy.
79421
79422         * lib/obstack.h (obstack_1grow_fast): Properly parenthesize arg.
79423         (obstack_ptr_grow_fast, obstack_int_grow_fast):
79424         Don't use lvalue casts, as GCC plans to remove support for them
79425         in GCC 3.5.  Reported by Joseph S. Myers.  This bug
79426         was also present in the non-GCC version, indicating that this
79427         code had always been buggy and had never been widely used.
79428         (obstack_1grow, obstack_ptr_grow, obstack_int_grow, obstack_blank):
79429         Use the fast variant of each macro, rather than copying the
79430         definiens of the fast variant; that way, we'll be more likely to
79431         catch future bugs in the fast variants.
79432
79433 2003-10-20  Bruno Haible  <bruno@clisp.org>
79434
79435         * modules/wait-process: New file.
79436         * MODULES.html.sh (func_all_modules): Add wait-process.
79437
79438 2003-10-20  Bruno Haible  <bruno@clisp.org>
79439
79440         * m4/wait-process.m4: New file.
79441
79442 2003-10-20  Bruno Haible  <bruno@clisp.org>
79443
79444         * lib/wait-process.h: New file, from GNU gettext.
79445         * lib/wait-process.c: New file, from GNU gettext.
79446
79447 2003-10-19  Jim Meyering  <jim@meyering.net>
79448
79449         * lib/vasnprintf.c (vasnprintf): Work around losing snprintf on
79450         HPUX 10.20.
79451
79452 2003-10-18  Karl Berry  <karl@gnu.org>
79453
79454         * config/config.guess: update from config.
79455
79456 2003-10-16  Paul Eggert  <eggert@twinsun.com>
79457
79458         * lib/getgroups.c: Include <errno.h>, <stdlib.h>.
79459         (getgroups): First arg is int, not size_t.
79460         Don't let 'free' mangle errno.
79461
79462 2003-10-16  Paul Eggert  <eggert@twinsun.com>
79463
79464         * README: Mention that gnulib assumes that (foo *) NULL + 0 == NULL.
79465
79466 2003-10-16  Karl Berry  <karl@gnu.org>
79467
79468         * config/config.{guess,sub}: update from config.
79469
79470 2003-10-16  Jim Meyering  <jim@meyering.net>
79471
79472         * lib/xmalloc.c: Include <string.h>, for declarations of memset and
79473         memcpy.
79474
79475 2003-10-15  Paul Eggert  <eggert@twinsun.com>
79476
79477         * lib/exclude.c: Do not include <inttypes.h> or <stdint.h>.
79478         (SIZE_MAX): Remove.
79479         (new_exclude, add_exclude_file): Initial size no longer needs to
79480         be a power of 2.
79481         (add_exclude, add_exclude_file): Use xnrealloc instead of rolling
79482         our own address arithmetic overflow checking.
79483
79484         * lib/fnmatch.c (SIZE_MAX): Define if standard headers don't.
79485         (fnmatch): Do not alloca more than 2000 wide characters;
79486         instead, use malloc for large buffers.
79487         Check for address arithmetic overflow, and return -1
79488         with errno set to ENOMEM in that case.
79489         * lib/fnmatch_loop.c (ALLOCA_LIMIT): New macro.
79490         (NEW_PATTERN): Do not alloca more than 8000 bytes;
79491         instead, return -1.  Check for address arithmetic overflow.
79492
79493 2003-10-14  Paul Eggert  <eggert@twinsun.com>
79494
79495         Handle invalid suffixes and overflow independently, so that
79496         callers can treat them independently as needed.  Fix some bugs in
79497         suffix handling, e.g., "100k@" was not diagnosed as an invalid
79498         suffix for a human-readable blocksize.  The major caller-visible
79499         change is the addition of a new
79500         LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW enum value, indicating
79501         that both overflow and suffix chars were found.
79502
79503         * lib/human.c (humblock): Don't check separately for invalid suffix
79504         char; that is xstrtoumax's job (now that its bug is fixed).
79505         * lib/xstrtoimax.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM) [defined
79506         INTMAX_MAX]: New macros.
79507         * lib/xstrtol.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM, TYPE_MINIMUM,
79508         TYPE_MAXIMUM): New macros.
79509         (bkm_scale, bkm_scale_by_power): Return strtol_error, not int.
79510         (bkm_scale, bkm_scale_by_power, __xstrtol): Return maximal values
79511         if overflow occurs, as it's what __strtol does and it's more useful
79512         in practice.
79513         (__xstrtol): If __strtol reports some error other than ERANGE,
79514         reflect it to the caller as LONGINT_INVALID.  If it reports
79515         ERANGE, continue the rest of parsing, and report LONGINT_OVERFLOW
79516         | LONGINT_INVALID_SUFFIX_CHAR if both errors occur.
79517         * lib/xstrtol.h (LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW): New enum
79518         value.
79519         (_STRTOL_ERROR): Handle it.  Abort when given unknown error codes.
79520         * lib/xstrtoul.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM): New macros.
79521         * lib/xstrtoumax.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM)
79522         [defined UINTMAX_MAX]: New macros.
79523
79524 2003-10-14  Bruno Haible  <bruno@clisp.org>
79525
79526         * modules/fatal-signal: Add m4/sig_atomic_t.m4 to file list.
79527
79528 2003-10-14  Bruno Haible  <bruno@clisp.org>
79529
79530         * m4/sig_atomic_t: New file, from GNU gettext.
79531         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Require gt_TYPE_SIG_ATOMIC_T.
79532
79533 2003-10-14  Bruno Haible  <bruno@clisp.org>
79534
79535         * lib/fatal-signal.h: Improved comments. Suggested by Paul Eggert.
79536         * lib/fatal-signal.c: Use sig_atomic_t. Suggested by Paul Eggert.
79537         Also use volatile where needed.
79538
79539 2003-10-12  Paul Eggert  <eggert@twinsun.com>
79540
79541         * modules/xalloc: Do not depend on 'exit'.  Depend on 'stdbool'.
79542         Change maintainer from Bruno Haible to 'all'.
79543
79544 2003-10-12  Paul Eggert  <eggert@twinsun.com>
79545
79546         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Require AC_C_INLINE.
79547
79548 2003-10-12  Paul Eggert  <eggert@twinsun.com>
79549
79550         * lib/xalloc.h (xnmalloc, xzalloc, xnrealloc, xclone): New decls.
79551         (XMALLOC, XCALLOC, XREALLOC, XFREE, CCLONE, CLONE): Deprecate,
79552         and define in terms of the other primitives.
79553         * lib/xmalloc.c: Include stdbool.h; do not include exit.h.
79554         (SIZE_MAX): Define if not already defined.
79555         (array_size_overflow): New function.
79556         (xalloc_die): Abort instead of exiting if 'error' returns.
79557         (xnmalloc, xnrealloc, xzalloc, xclone): New functions.
79558         (xmalloc, xrealloc): Use them.
79559         (xcalloc): Check for address arithmetic overflow.
79560         * lib/xstrdup.c (xstrdup): Use xclone, since memcpy should be
79561         a bit faster than strcpy.
79562
79563 2003-10-10  Simon Josefsson  <jas@extundo.com>
79564
79565         * modules/argp (Depends-on): Add restrict and strcase.
79566
79567 2003-10-10  Simon Josefsson  <jas@extundo.com>
79568
79569         * m4/argp.m4: Add AC_C_INLINE.
79570
79571 2003-10-08  Paul Eggert  <eggert@twinsun.com>
79572
79573         Merge getpass from libc, plus a few fixes.
79574
79575         * lib/getpass.c (HAVE_STDIO_EXT) [_LIBC]: Define to 1.
79576         Include <stdbool.h>.
79577         Include <stdio_ext.h> if HAVE_STDIO_H, otherwise define
79578         __fsetlocking to empty.
79579         [_LIBC]: Do not include "getline.h" or "unlocked-io.h", but
79580         do include <bits/libc-lock.h>.
79581         Do not include <fcntl.h>; not needed.
79582         [_LIBC]: Include <wchar.h>.
79583         (NOTCANCEL_MODE): New macro.
79584         (flockfile, funlockfile) [_LIBC]: New macros.
79585         (__libc_cleanup_push, __libc_cleanup_pop, __getline, __tcgetattr)
79586         [!_LIBC]: New macros.
79587         (call_fclose): New function.
79588         (getpass): Use it.  Save tty stream separately; this simplifies the
79589         code and makes it more reliable if stdin happens to equal stdout.
79590         Invoke __fsetlocking on tty.
79591         Handle thread cancellation if needed.
79592         Namespace cleanup (use __tcgetattr, __getline).
79593         Use bool for Booleans.
79594         [USE_IN_LIBIO]: Handle wide streams.
79595         [!_LIBC]: Unconditionally do the fseek, since we don't know what
79596         stream might go where.
79597
79598         * lib/unlocked-io.h: Include <stdio.h>, so that the caller
79599         doesn't have to include <stdio.h> before us.
79600         (clearerr_unlocked, feof_unlocked, ferror_unlocked,
79601         fflush_unlocked, fgets_unlocked, fputc_unlocked, fputs_unlocked,
79602         fread_unlocked, fwrite_unlocked, getc_unlocked, getchar_unlocked,
79603         putc_unlocked, putchar_unlocked): Define to the unlocked counterpart
79604         if not declared, so that we can use getpass.c code from libc without
79605         rewriting it.
79606         (flockfile, ftrylockfile, funlockfile): New macros.
79607
79608 2003-10-08  Paul Eggert  <eggert@twinsun.com>
79609
79610         * modules/getpass: Depend on stdbool.
79611
79612 2003-10-08  Paul Eggert  <eggert@twinsun.com>
79613
79614         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for stdio_ext.h.
79615
79616 2003-10-07  Karl Berry  <karl@gnu.org>
79617
79618         * config/config.{guess,sub}: update from config.
79619
79620 2003-10-06  Jim Meyering  <jim@meyering.net>
79621             Bruno Haible  <bruno@clisp.org>
79622
79623         This lets translators provide better translations for the
79624         "Written by ..." part of --version output.
79625         * lib/version-etc.h: Include stdarg.h.
79626         (version_etc_copyright): Declare as readonly.
79627         (version_etc): Make this function variadic with a NULL-terminated list
79628         of author name strings.
79629         (version_etc_va): New declaration.
79630         * lib/version-etc.c: Include stdarg.h, stdlib.h.
79631         (version_etc_copyright): Declare as readonly.
79632         (version_etc_va): New function. Provide a different translatable string
79633         for each possible number of authors < 10. Abbreviate when there are 10
79634         authors or more.
79635         (version_etc): Make this function variadic. Call version_etc_va.
79636         Suggestion from Gary V. Vaughan.
79637
79638         * lib/long-options.h (parse_long_options): Change prototype: the
79639         authors string is moved to the end and becomes variadic.
79640         * lib/long-options.c: Include stdarg.h.
79641         (parse_long_options): Make this function variadic, too.
79642         Call version_etc_va, not version_etc.
79643
79644 2003-10-06  Bruno Haible  <bruno@clisp.org>
79645
79646         * modules/version-etc-2: Remove file.
79647         * MODULES.html.sh (func_all_modules): Remove version-etc-2.
79648
79649 2003-10-06  Bruno Haible  <bruno@clisp.org>
79650
79651         * modules/fatal-signal: New file.
79652         * MODULES.html.sh (func_all_modules): Add fatal-signal.
79653
79654 2003-10-06  Bruno Haible  <bruno@clisp.org>
79655
79656         * m4/fatal-signal.m4: New file.
79657         * m4/signalblocking.m4: New file, from GNU gettext.
79658
79659 2003-10-06  Bruno Haible  <bruno@clisp.org>
79660
79661         * lib/version-etc-2.h: Remove file.
79662         * lib/version-etc-2.c: Remove file.
79663
79664 2003-10-06  Bruno Haible  <bruno@clisp.org>
79665
79666         * lib/fatal-signal.h: New file, from GNU gettext.
79667         * lib/fatal-signal.c: New file, from GNU gettext.
79668
79669 2003-10-05  Paul Eggert  <eggert@twinsun.com>
79670
79671         * README: Rework advice for preventing empty .o files.
79672         Don't recommend ELIDE constructs.  Recommend <stddef.h>,
79673         not <sys/types.h>.
79674
79675 2003-10-04  Karl Berry  <karl@gnu.org>
79676
79677         * lib/argp*: update from libc.
79678
79679 2003-10-04  Karl Berry  <karl@gnu.org>
79680
79681         * config/config.{guess,sub}: update from config.
79682
79683 2003-10-02  Bruno Haible  <bruno@clisp.org>
79684
79685         * modules/lchown (Include): Add lchown.h.
79686         * modules/time_r (Include): Use "..." syntax.
79687         * modules/xgetdomainname (Include): Add xgetdomainname.h.
79688
79689 2003-10-01  Simon Josefsson  <jas@extundo.com>
79690
79691         * MODULES.html.sh (func_all_modules): Move gethostname from section
79692         'based on' to section 'lacking' POSIX:2001.
79693
79694 2003-10-01  Larry Jones  <lawrence.jones@eds.com>
79695
79696         * lib/getpass.c (getpass): Use a no-op fseek when switching from input
79697         to output mode on the same stream.
79698
79699 2003-09-29  Paul Eggert  <eggert@twinsun.com>
79700
79701         * lib/strftime.c (tm_diff) [! HAVE_TM_GMTOFF]:
79702         Fix arg typo in previous patch.
79703
79704 2003-09-28  Jim Meyering  <jim@meyering.net>
79705
79706         * lib/error.c: Correct cpp indentation.
79707
79708 2003-09-27  Paul Eggert  <eggert@twinsun.com>
79709
79710         * modules/free: New file.
79711
79712 2003-09-27  Paul Eggert  <eggert@twinsun.com>
79713
79714         * m4/free.m4: New file.
79715
79716 2003-09-27  Paul Eggert  <eggert@twinsun.com>
79717
79718         * lib/minmax.h (MIN, MAX)
79719         [__STDC__ && defined __GNUC__ && __GNUC__ >= 2]:
79720         Omit the special code that used __typeof__, since we worry that
79721         it could be more trouble than it's worth.  See:
79722         http://mail.gnu.org/archive/html/bug-gnulib/2003-01/msg00090.html
79723         http://mail.gnu.org/archive/html/bug-gnulib/2003-01/msg00095.html
79724
79725         * lib/free.c: New file.
79726
79727 2003-09-27  Oskar Liljeblad  <oskar@osk.mine.nu>
79728
79729         Trivial fixes to Makefile.am parts of module listings.
79730         * modules/strstr: Append strstr.h to lib_SOURCES.
79731         * modules/strcase: Likewise, for strcase.h.
79732
79733 2003-09-27  Karl Berry  <karl@gnu.org>
79734
79735         * config/mkinstalldirs: update from automake.
79736
79737 2003-09-26  Paul Eggert  <eggert@twinsun.com>
79738
79739         * lib/error.c (SIZE_MAX) [!defined SIZE_MAX]: Define.
79740         (error_tail): Do not loop, reallocating temporary buffer, since
79741         the output cannot contain more wide characters than the input
79742         contains bytes, the size must be big enough already.  This avoids
79743         one potential size overflow calculation.  Check for size overflow
79744         when calculating temporary buffer size.  Free temporary buffer
79745         when done, if it was allocated with malloc; this plugs a memory
79746         leak.  Remove casts from void * to pointers, that are no longer
79747         needed now that we're assuming C89 or better.
79748
79749         Merge error changes from glibc.
79750
79751         * lib/error.c, error.h: Update copyright notice header to match glibc.
79752         * lib/error.c [defined _LIBC]: Include <errno.h>, <bits/libc-lock.h>.
79753         (error, error_at_line) [defined _LIBC && defined __libc_ptf_call]:
79754         Disable cancellation while printing error.
79755         * lib/error.h: Prepend __ to parameter names.
79756
79757 2003-09-26  Jim Meyering  <jim@meyering.net>
79758
79759         * lib/error.c (error_tail): Move some declarations
79760         into inner scope where the local variables are used.
79761
79762 2003-09-26  Bruno Haible  <bruno@clisp.org>
79763
79764         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Add comments about the AIX
79765         stpncpy().
79766         Don't define stpncpy through config.h; it's now done through stpncpy.h.
79767
79768 2003-09-26  Bruno Haible  <bruno@clisp.org>
79769
79770         * lib/stpncpy.h (gnu_stpncpy): New declaration.
79771         (stpncpy): Define as alias for gnu_stpncpy.
79772         * lib/stpncpy.c [!_LIBC]: Define gnu_stpncpy, not stpncpy.
79773
79774 2003-09-25  Simon Josefsson  <jas@extundo.com>
79775
79776         * lib/xgetdomainname.h: New file.
79777         * lib/xgetdomainname.c: New file.
79778
79779 2003-09-25  Simon Josefsson  <jas@extundo.com>
79780             Bruno Haible  <bruno@clisp.org>
79781
79782         * modules/getdomainname: New file.
79783         * modules/xgetdomainname: New file.
79784         * MODULES.html.sh (func_all_modules): Add getdomainname,
79785         xgetdomainname.
79786
79787 2003-09-25  Simon Josefsson  <jas@extundo.com>
79788             Bruno Haible  <bruno@clisp.org>
79789
79790         * m4/getdomainname.m4: New file.
79791
79792 2003-09-25  Simon Josefsson  <jas@extundo.com>
79793             Bruno Haible  <bruno@clisp.org>
79794
79795         * lib/getdomainname.h: New file.
79796         * lib/getdomainname.c: New file.
79797
79798 2003-09-25  Karl Berry  <karl@gnu.org>
79799
79800         * lib/argp-fmtstream.c, argp-help.c: update from libc.
79801
79802 2003-09-25  Karl Berry  <karl@gnu.org>
79803
79804         * config/install-sh: update from automake.
79805
79806 2003-09-25  Bruno Haible  <bruno@clisp.org>
79807
79808         * modules/version-etc-2: New file, from modules/version-etc with
79809         modifications.
79810         * MODULES.html.sh (func_all_modules): Add version-etc-2.
79811
79812 2003-09-25  Bruno Haible  <bruno@clisp.org>
79813
79814         * lib/version-etc-2.h: New file, from version-etc.h with modifications.
79815         * lib/version-etc-2.c: New file, from version-etc.c with modifications.
79816
79817 2003-09-24  Simon Josefsson  <jas@extundo.com>
79818
79819         * modules/xgethostname: Add xgethostname.h.
79820
79821 2003-09-24  Paul Eggert  <eggert@twinsun.com>
79822
79823         * lib/linebuffer.c (freebuffer): Don't free the argument, just
79824         the buffer associated with the argument.  Bug reported by
79825         Simon Josefsson.
79826
79827 2003-09-24  Paul Eggert  <eggert@twinsun.com>
79828
79829         * README: Document assumptions that 'int' is at least 32 bits
79830         wide, that integer arithmetic is 2's complement without overflow,
79831         that there are no holes in integer values, that adding sizes of
79832         two nonoverlapping objects can't overflow, and that all-bits-zero
79833         yields scalar zero.  Fix spelling and capitalization typos.
79834
79835 2003-09-19  Karl Berry  <karl@gnu.org>
79836
79837         * lib/argp.h: update from libc.
79838
79839 2003-09-17  Paul Eggert  <eggert@twinsun.com>
79840
79841         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Call AC_BEFORE first,
79842         to avoid spurious warnings like "AC_RUN_IFELSE was called before
79843         gl_USE_SYSTEM_EXTENSIONS" from autoreconf.
79844
79845 2003-09-17  Paul Eggert  <eggert@twinsun.com>
79846
79847         * gnulib-tool: Use "test -h", not "test -L", for portability
79848         to Solaris 8 /bin/sh.  (This bug is fixed in Solaris 9.)
79849         (tags_regexp): Remove, since \| doesn't conform to POSIX.
79850         (sed_extract_prog): Issue s commands one-by-one, rather than
79851         using \| in one s command.
79852
79853 2003-09-16  Paul Eggert  <eggert@twinsun.com>
79854
79855         * lib/linebuffer.c (readlinebuffer): Return NULL immediately upon
79856         input error, instead of returning NULL the next time we are called
79857         (and therefore losing track of errno).
79858
79859 2003-09-16  Bruno Haible  <bruno@clisp.org>
79860
79861         * gnulib-tool (func_create_testdir): Warn about duplicated
79862         dependencies.
79863
79864 2003-09-15  Paul Eggert  <eggert@twinsun.com>
79865
79866         * modules/argmatch, modules/fatal, modules/obstack,
79867         modules/xalloc, modules/xgethostname: Sort dependencies by
79868         importance, not alphabetically.
79869
79870 2003-09-15  Paul Eggert  <eggert@twinsun.com>
79871
79872         * lib/getndelim2.c (getndelim2): Don't trash errno when a read
79873         fails, so that the caller gets the proper errno.
79874
79875         * lib/readutmp.c (read_utmp): Likewise.
79876         Check for fstat error.  Close stream and free storage
79877         when failing.
79878
79879 2003-09-14  Karl Berry  <karl@gnu.org>
79880
79881         * config/srclist.txt (strdup.c): disable for c89 changes.
79882
79883 2003-09-14  Jim Meyering  <jim@meyering.net>
79884
79885         * lib/getloadavg.c: Correct cpp indentation.
79886         * lib/strdup.c: Likewise.
79887         * lib/vasnprintf.c: Likewise.
79888
79889 2003-09-14  Bruno Haible  <bruno@clisp.org>
79890
79891         * modules/fwriteerror: New file.
79892         * MODULES.html.sh (func_all_modules): Add fwriteerror.
79893
79894 2003-09-14  Bruno Haible  <bruno@clisp.org>
79895
79896         * lib/fwriteerror.h: New file.
79897         * lib/fwriteerror.c: New file.
79898
79899 2003-09-12  Paul Eggert  <eggert@twinsun.com>
79900
79901         * modules/argmatch, modules/exitfail, modules/fatal, modules/obstack,
79902         modules/xgethostname, modules/xalloc: Depend on exit.
79903
79904 2003-09-12  Paul Eggert  <eggert@twinsun.com>
79905
79906         * m4/error.m4: Require AC_FUNC_STRERROR_R rather than invoking it.
79907
79908         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Require AC_AIX
79909         and AC_MINIX, too, so that their extensions are available.
79910
79911         * m4/prereq.m4 (jm_PREREQ_ADDEXT): Remove.  All uses removed.
79912         This macro has been superseded by gl_BACKUPFILE.
79913
79914         More patches to assume C89 or better.
79915
79916         * m4/error.m4 (gl_ERROR): Don't check for vprintf.
79917
79918         * m4/check-decl.m4 (jm_CHECK_DECLS): Include <string.h>, <stdlib.h>
79919         unconditionally.
79920         * m4/closeout.m4 (gl_CLOSEOUT): Don't check for stdlib.h.
79921         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER):
79922         Include <string.h>, <stdlib.h> unconditionally.
79923         * m4/lstat.m4 (gl_PREREQ_LSTAT): Don't check for stdlib.h, free.
79924         * m4/readdir.m4 (GL_FUNC_READDIR): Don't check for string.h.
79925         * m4/readutmp.m4 (gl_PREREQ_READUTMP): Don't check for standard C
79926         headers or for string.h.
79927         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Don't check for stdlib.h
79928         or strtoul.
79929
79930         * m4/mkstemp.m4 (jm_PREREQ_TEMPNAME): Do not require standard C
79931         headers.
79932         * m4/strdup.m4 (gl_PREREQ_STRDUP): Likewise.
79933         * m4/userspec.m4 (gl_USERSPEC): Likewise.
79934         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Likewise.
79935         * m4/xstrtod.m4 (gl_XSTRTOD): Likewise.
79936         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
79937         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't check for limits.h,
79938         memcpy, memset.
79939         (jm_FUNC_GNU_STRFTIME): Don't require standard C headers.
79940         * m4/strtod.m4 (gl_FUNC_STRTOD): Do not check for float.h.
79941         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Do not check for stdlib.h,
79942         strtol.
79943         * m4/strtol.m4 (gl_FUNC_STRTOL): Do not check for limits.h.
79944         * m4/userspec.m4 (gl_USERSPEC): Do not check for string.h.
79945         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Do not check for string.h, strtol,
79946         strtoul.
79947
79948 2003-09-12  Paul Eggert  <eggert@twinsun.com>
79949
79950         * lib/argmatch.c, fatal.c, xgethostname.c, xmalloc.c: Include exit.h.
79951         * lib/obstack.c [!defined _LIBC]: Likewise.
79952         * lib/argmatch.c (EXIT_FAILURE): Remove; now done by exit.h
79953         * lib/exitfail.c, fatal.c, xgethostname.c, xmalloc.c: Likewise.
79954         * lib/exitfail.c: Don't include stdlib.h; no longer needed.
79955
79956         More changes to assume C89 or better.
79957
79958         * lib/error.c (error_tail): Assume vprintf.
79959
79960         * lib/argmatch.c (getenv): Remove decl.
79961         * lib/progreloc.c (get_full_program_name): Define via prototype.
79962         * lib/setenv.c (clearenv): Likewise.
79963         * lib/stpncpy.c: Do not include <string.h> or <sys/types.h>; not
79964         needed.
79965         * lib/strdup.c: Include <stdlib.h>, <string.h> unconditionally.
79966         (malloc, memcpy): Remove decls.
79967         * lib/strftime.c (HAVE_LIMITS_H, STDC_HEADERS) [defined _LIBC]: Remove.
79968         (HAVE_MEMCPY) [defined emacs && !defined HAVE_BCOPY]: Remove.
79969         Include <limits.h>, <stddef.h>, <stdlib.h>, <string.h> unconditionally.
79970         (memcpy): Remove macro.
79971         (MEMCPY) [!defined COMPILE_WIDE]: Define to memcpy unconditionally.
79972         (__P): Remove.  All uses removed.
79973         (PTR): Remove.  All uses changed to void *.
79974         (CHAR_BIT, NULL): Remove.
79975         (spaces, zeros, memset_space, memset_zero)
79976         [!defined memset && !defined HAVE_MEMSET && !defined _LIBC]:
79977         Remove.
79978         (LOCALE_PARAM, LOCALE_PARAM_DECL): Remove.
79979         (memcpy_lowcase, memcpy_uppcase, tm_diff, iso_week_days):
79980         Define with prototype.
79981         Remove now-unnecessary prototype decl.
79982         (extra_args_spec): Assume ANSI C.  All uses changed.
79983         (extra_args_spec_iso): Remove.
79984         (my_strftime, emacs_strftimeu): Define via prototype.
79985         * lib/strtod.c: Include <float.h>, <stdlib.h>, <string.h>
79986         unconditionally.
79987         (DBL_MAX, DBL_MIN, HUGE_VAL, NULL): Remove decls.
79988         * lib/strtoimax.c: Include <stdlib.h> unconditionally.
79989         (strtoul, strtol): Remove decls.
79990         * lib/strtol.c (STDC_HEADERS, HAVE_LIMITS_H, NULL, ULONG_MAX,
79991         LONG_MAX): Remove.
79992         Include <limits.h>, <stddef.h>, <stdlib.h>, <string.h> unconditionally.
79993         (LOCALE_PARAM_DECL): Remove.  All uses changed to LOCALE_PARAM_PROTO.
79994         (LOCALE_PARAM_PROTO): New macro.
79995         (INTERNAL, INTERNAL1, WEAKNAME): Assume ANSI C, not K&R.
79996         (INTERNAL (strtol), strtol): Define with a prototype.
79997         (PARAMS): Remove.  All uses removed.
79998         * lib/tempname.c: Include <string.h> unconditionally.
79999         * lib/userspec.c: Include <stdlib.h>, <string.h> unconditionally.
80000         * lib/xgethostname.c (main): Define with a prototype.
80001         * lib/xmalloc.c: Include "xalloc.h" first, to check interface.
80002         Include <stdlib.h> unconditionally.
80003         (calloc, malloc, realloc, free): Remove decls.
80004         * lib/xstrtod.c: Include "xstrtod.h" first, to check interface.
80005         Include <stdlib.h> unconditionally.  Sort include file names.
80006         (strtod): Remove.
80007         (xstrtod): Define with a prototype.
80008         * lib/xstrtol.c: Include <stdlib.h>, <string.h> unconditionally.
80009         (strtol, strtoul): Remove decls.
80010
80011 2003-09-11  Paul Eggert  <eggert@twinsun.com>
80012
80013         More patches to assume C89 or better.
80014         * m4/strndup.m4 (gl_PREREQ_STRNDUP): Remove STDC_HEADERS check.
80015         * m4/strnlen.m4 (gl_PREREQ_STRNLEN): Don't check for memory.h,
80016         string.h, memchr, STDC_HEADERS.
80017
80018 2003-09-11  Paul Eggert  <eggert@twinsun.com>
80019
80020         * lib/strndup.c: Don't include <stdio.h>, <sys/types.h>.
80021         Include <stdlib.h>, <string.h> unconditionally.
80022         Remove now-unnecessary cast to char *.
80023         * lib/strnlen.c: Include <string.h> unconditionally.
80024         * lib/yesno.c (yesno): Define with a prototype.
80025
80026 2003-09-11  Bruno Haible  <bruno@clisp.org>
80027
80028         * config/srclist.txt (setenv.c, unsetenv.c): Disable for the moment.
80029
80030 2003-09-10  Jim Meyering  <jim@meyering.net>
80031
80032         * lib/error.c: Correct indentation of cpp directives.
80033
80034 2003-09-10  Bruno Haible  <bruno@clisp.org>
80035
80036         * m4/strcspn.m4 (gl_PREREQ_STRCSPN): Remove <string.h> check.
80037         * m4/strpbrk.m4 (gl_PREREQ_STRPBRK): Remove <string.h> check.
80038         * m4/strstr.m4 (gl_PREREQ_STRSTR): Remove <string.h> check.
80039         * m4/unicodeio.m4 (gl_UNICODEIO): Remove <string.h> check.
80040         * m4/setenv.m4 (gl_PREREQ_SETENV, gl_PREREQ_UNSETENV): Remove
80041         <stdlib.h> and <string.h> checks.
80042         * m4/xreadlink.m4 (gl_XREADLINK): Remove <stdlib.h> check.
80043         * m4/yesno.m4 (gl_YESNO): Remove <stdlib.h> check.
80044
80045 2003-09-10  Bruno Haible  <bruno@clisp.org>
80046
80047         * lib/strcspn.c: Include <string.h> unconditionally.
80048         * lib/strpbrk.c: Include <string.h> unconditionally.
80049         * lib/strstr.c: Include <string.h> unconditionally.
80050         * lib/unicodeio.c: Include <string.h> unconditionally.
80051         * lib/setenv.c: Include <stdlib.h> and <string.h> unconditionally.
80052         * lib/unsetenv.c: Likewise.
80053         * lib/xreadlink.c: Include <stdlib.h> unconditionally.
80054         * lib/yesno.c: Include <stdlib.h> unconditionally.
80055         (rpmatch): Add prototype.
80056
80057 2003-09-09  Paul Eggert  <eggert@twinsun.com>
80058
80059         More patches to assume C89 or better.
80060         * m4/getcwd.m4 (AC_FUNC_GETCWD_NULL): Don't check for stdlib.h.
80061         * m4/getopt.m4 (gl_GETOPT): Don't check for string.h.
80062         * m4/getugroups.m4 (gl_GETUGROUPS): Do not check for standard C headers
80063         or for string.h.
80064         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Do not check for
80065         stdlib.h.
80066         * m4/group-member.m4 (gl_PREREQ_GROUP_MEMBER): Do not require standard
80067         C headers.
80068         * m4/hard-locale.m4 (gl_HARD_LOCALE): Do not check for stdlib.h,
80069         string.h.
80070         * m4/hash.m4 (gl_HASH): Do not check for stdlib.h, malloc, free.
80071         * m4/human.m4 (gl_HUMAN): Do not check for stdlib.h, string.h, getenv.
80072         * m4/idcache.m4 (gl_IDCACHE): Do not check for standard C headers,
80073         or for string.h.
80074         * m4/long-options.m4 (gl_LONG_OPTIONS): Do not check for stdlib.h.
80075         * m4/makepath.m4 (gl_MAKEPATH): Do not check for string.h or standard
80076         C headers.
80077         * m4/md5.m4 (gl_MD5): Don't check for limits.h, standard C headers,
80078         memcpy.
80079         * m4/sha.m4 (gl_SHA): Don't check for standard Cheaders, memcpy.
80080         * m4/memchr.m4 (jm_PREREQ_MEMCHR): Don't check for limits.h, stdlib.h.
80081         * m4/memcmp.m4 (gl_PREREQ_MEMCMP): Don't check for string.h.
80082         * m4/memcoll.m4 (gl_MEMCOLL): Likewise.
80083         * m4/memrchr.c (gl_PREREQ_MEMRCHR): Don't check for limits.h.
80084         * m4/mkdir-slash.m4 (gl_PREREQ_MKDIR): Don't check for stdlib.h,
80085         string.h, free.
80086         * m4/mktime.m4 (gl_PREREQ_MKTIME): Don't check for standard C headers.
80087         * m4/modechange.m4 (gl_MODECHANGE): Don't check for standard C headers.
80088         * m4/mountlist.m4 (gl_PREREQ_MOUNTLIST_EXTRA): Don't check for standard
80089         C headers, or for string.h.
80090         * m4/obstack.m4 (gl_OBSTACK): Don't check for stddefe.h, string.h.
80091         (gl_PREREQ_OBSTACK): Don't check for stdlib.h.
80092         * m4/path-concat.m4 (gl_PATH_CONCAT): Don't check for standard C
80093         headers, memory.h, stdlib.h, string.h, strings.h.
80094         * m4/posixtm.m4 (gl_POSIXTM): Don't check for stdlib.h, string.h.
80095         * m4/posixver.m4 (gl_POSIXVER): Don't check for getenv.
80096         * m4/putenv.m4 (gl_PREREQ_PUTENV): Don't check for string.h, memcpy,
80097         strchr.
80098         * m4/readtokens.m4 (gl_READTOKENS): Don't check for standard C
80099         headers, memory.h, string.h.
80100         * m4/regex.m4 (jm_PREREQ_REGEX): Do not check for limits.h, string.h.
80101         * m4/rename.m4 (gl_PREREQ_RENAME): Do not check for stdlib.h, string.h,
80102         free.
80103         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Don't check for standard C
80104         headers.
80105         * m4/same.m4 (gl_SAME): Don't check for stdlib.h, string.h, free.
80106         * m4/save-cwd.m4 (gl_SAVE_CWD): Don't check for standard C headers.
80107         * m4/savedir.m4 (gl_SAVEDIR): Don't check for standard C headers.
80108         * m4/strchrnul.m4 (gl_PREREQ_STRCHRNUL): Don't check for string.h.
80109         * m4/xgetcwd.m4 (gl_XGETCWD): Don't check for stdlib.h.
80110
80111 2003-09-09  Paul Eggert  <eggert@twinsun.com>
80112
80113         More K&R removal.
80114
80115         * lib/acosl.c (main): Use a prototype.
80116         * lib/asinl.c, cosl.c, expl.c, frexpl.c, ldexpl.c, sinl.c,
80117         tanl.c: Likewise.
80118
80119         * lib/getloadavg.c (getloadavg, main): Define via prototypes.
80120
80121         * lib/getopt.h (struct option.name): Assume C89, and use 'const'.
80122         (getopt, etopt_long, getopt_long_only, _getopt_internal)
80123         [defined __GNU_LIBRARY__]: Assume C89, so we can always declare
80124         with a prototype.
80125         * lib/getopt.c (const): Remove macro.
80126         Include <string.h> unconditionally.
80127         (my_index): Remove; all uses changed to strchr.
80128         (strlen): Remove decl.
80129         (exchange): Remove forward decl; no longer needed.
80130         (exchange, _getopt_initialize, _getopt_internal, getopt, main):
80131         Define with prototype.
80132         * lib/getopt1.c (const): Remove macro.
80133         (getopt_long, getopt_long_only, main): Define with prototype.
80134
80135         * lib/getugroups.c: Include <string.h> unconditionally.
80136
80137         * lib/getusershell.c: Include <stdlib.h> unconditionally.
80138         (getusershell, setusershell, endusershell, readname, main):
80139         Define with prototypes.
80140
80141         * lib/group-member.c: Include group-member.h first.
80142         Include <stdlib.h> unconditionally.
80143
80144         * lib/hard-locale.c: Include hard-locale.h first.
80145         Include <stdlib.h>, <string.h> unconditionally.
80146
80147         * lib/hash.c (free, malloc): Remove decls.
80148         Include <stdlib.h> unconditionally.
80149
80150         * lib/human.c: Include <stdlib.h>, <string.h> unconditionally.
80151         (getenv): Do not declare.
80152
80153         * lib/idcache.c: Include <string.h> unconditionally.
80154
80155         * lib/long-options.c: Include long-options.h first, to test interface.
80156         Include <stdlib.h> unconditionally.
80157
80158         * lib/makepath.c: Include makepath.h first, to test interface.
80159         Include <stdlib.h> and <string.h> unconditionally.
80160
80161         * lib/linebuffer.c: Include <stdlib.h>.
80162         (free): Remove decl.
80163
80164         * lib/malloc.c: Include <stdlib.h>, for malloc; don't bother with
80165         stddef.h. rpl_malloc returns void *, not char *.
80166         * lib/realloc.c (rpl_realloc): Likewise.  Also, define with a
80167         prototype.
80168
80169         * lib/md5.h: Include <limits.h> unconditionally.
80170         (UINT_MAX_32_BITS): Don't worry about non-__STDC__ case.
80171         (__P): Remove; all uses removed.
80172         * lib/md5.c: Include "md5.h" first.
80173         (md5_init_ctx, md5_read_ctx, md5_finish_ctx, md5_stream,
80174         md5_buffer, md5_process_bytes, md5_process_block):
80175         Define with prototypes.
80176         * lib/sha.h (__P): Remove all uses.  (It wasn't defined??)
80177         * lib/sha.c: Include "sha.h" first.
80178         Include <stdlib.h>, <string.h> unconditionally.
80179
80180         * lib/memchr.c (__ptr_t): Remove; all uses changed to void *.
80181         * lib/memcmp.c (__ptr_t): Likewise.
80182         * lib/memrchr.c (__ptr_t): Likewise.
80183         * lib/memchr.c, memcmp.c, memcoll.c, memrchr.c:
80184         Include <string.h> unconditionally.
80185         * lib/memchr.c, memrchr.c: Include <limits.h> unconditionally.
80186         * lib/memchr.c: Include <stdlib.h> unconditionally.
80187         * lib/memchr.c (LONG_MAX): Remove.
80188         * lib/memrchr.c (LONG_MAX): Likewise.
80189         * lib/memchr.c (__memchr): Define via a prototype.
80190         * lib/memrchr.c (__memrchr): Likewise.
80191         * lib/memcmp.c (__P): Remove, and remove all uses.
80192         (memcmp_bytes, memcmp_common_alignment, memcmp_not_common_alignment):
80193         Remove forward decls; no longer needed.
80194         * lib/memcpy.c, memmove.c, memset.c: Include <stddef.h>.
80195         Use types required by C89 in prototype.
80196
80197         * lib/mkdir.c: Include <stdlib.h>, <string.h> unconditionally.
80198         * lib/savedir.c: Likewise.
80199         * lib/mkdir.c (free): Remove decl.
80200         * lib/rmdir.c (rmdir): Define with a prototype.
80201         * lib/savedir.c: Include savedir.h first, to test interface.
80202
80203         * lib/mktime.c (STDC_HEADERS): Remove.
80204         Include <stdlib.h>, <string.h> unconditionally.
80205
80206         * lib/modechange.c: Include <stdlib.h> unconditionally.
80207         (malloc): Remove decl.
80208
80209         * lib/mountlist.c: Include <stdlib.h>, <string.h> unconditionally.
80210         (free): Remove decl.
80211
80212         * lib/obstack.h (PTR_INT_TYPE) [!defined __PTRDIFF_TYPE__]:
80213         Define to ptrdiff_t, without bothering to check HAVE_STDDEF_H.
80214         (This type really should be intptr_t, but that's a C99ism.)
80215         (_obstack_memcpy): Remove: all uses changed to memcpy.
80216         Include <string.h> unconditionally.
80217         (struct obstack): Assume __STDC__ for types of members
80218         chunkfun, freefun, extra_arg.
80219         (_obstack_newchunk, _obstack_free, _obstack_begin, _obstack_begin_1,
80220         _obstack_memory_used, obstack_alloc_failed_handler, obstack_init,
80221         obstack_begin, obstack_specify_allocation,
80222         obstack_specify_allocation_with_arg, obstack_chunkfun,
80223         obstack_freefun, obstack_free) [! (defined __STDC__ && __STDC__)]:
80224         Remove unprototyped decls and the macros that use them.
80225         * lib/obstack.c (POINTER): Remove.  All uses changed to void *.
80226         (obstack_alloc_failed_handler, CALL_CHUNKFUN, CALL_FREEFUN,
80227         _obstack_begin, _obstack_begin_1, _obstack_allocated_p)
80228         (defined __STDC__ && __STDC__)]:
80229         Remove nonprototyped code.
80230         Include <stdlib.h> unconditionally.
80231         (_obstack_begin, _obstack_begin_1, _obstack_newchunk,
80232         _obstack_allocated_p, _obstack_free, obstack_free,
80233         _obstack_memory_used, print_and_abort):
80234         Define using prototypes.
80235         (obstack_1grow, obstack_1grow_fast, obstack_alloc, obstack_base,
80236         obstack_blank, obstack_blank_fast, obstack_copy, obstack_copy0,
80237         obstack_finish, obstack_grow, obstack_grow0, obstack_make_room,
80238         obstack_next_free, obstack_object_size, obstack_room) [0]:
80239         Remove unused, unprototyped code.
80240
80241         * lib/path-concat.c: Include <stdlib.h>, <string.h> unconditionally.
80242
80243         * lib/physmem.c (physmem_total, physmem_available, main): Define
80244         with prototypes.
80245
80246         * lib/posixtm.c: Include <stdlib.h>, <string.h> unconditionally.
80247         (main): Define with a prototype.
80248
80249         * lib/posixver.c (getenv): Remove decl.
80250
80251         * lib/putenv.c (malloc): Returns void *, not char *.
80252         Include <string.h> unconditionally.
80253         (strchr, memcpy, NULL): Do not define.
80254
80255         * lib/readtokens.c: Include readtokens.h first, to test interface.
80256         Include <stdlib.h>, <string.h> unconditionally.
80257         (init_tokenbuffer): Define with a prototype.
80258
80259         * lib/regex.c (PARAMS): Remove.  All uses removed.
80260         All uses of _RE_ARGS removed, too.
80261         Include <stddef.h>, <stdlib.h>, <string.h>, <limits.h>
80262         unconditionally.
80263         (bzero): Assume memset exists.
80264         (memcmp, memcpy, NULL): Remove.
80265         (SIGN_EXTEND_CHAR): Remove; all uses replaced by casts to signed
80266         char, or assignments to local vars of type signed char.
80267         (init_syntax_once, PREFIX(extract_number_and_incr),
80268         PREFIX(print_partial_compiled_pattern),
80269         PREFIX(print_compiled_pattern), PREFIX(print_double_string),
80270         convert_mbs_to_wcs, print_fastmap, re_set_syntax,
80271         PREFIX(regex_grow_registers), PREFIX(regex_compile),
80272         PREFIX(store_op1), PREFIX(store_op2), PREFIX(insert_op1),
80273         PREFIX(insert_op2), PREFIX(at_begline_loc_p),
80274         PREFIX(at_endline_loc_p), group_in_compile_stack, insert_space,
80275         wcs_compile_range, byte_compile_range, truncate_wchar,
80276         PREFIX(re_compile_fastmap), re_compile_fastmap, re_set_registers,
80277         re_search, re_search_2, PREFIX(re_search_2), re_match, re_match_2,
80278         count_mbs_length, wcs_re_match_2_internal,
80279         byte_re_match_2_internal, PREFIX(group_match_null_string_p),
80280         PREFIX(alt_match_null_string_p),
80281         PREFIX(common_op_match_null_string_p), PREFIX(bcmp_translate),
80282         re_compile_pattern, re_comp, re_exec, regcomp, regexec, regerror,
80283         regfree, PREFIX(extract_number)): Define with prototype.  Remove
80284         now-unnecessary declaration, if any.
80285         (byte_compile_range, PREFIX(regex_compile), re_comp, re_exec,
80286         regcomp, regexec):
80287         Remove now-unnecessary casts among pointer types.
80288         * lib/regex.h (_RE_ARGS): Remove.  All uses removed.
80289
80290         * lib/rename.c: Include <stdlib.h>, <string.h> unconditionally.
80291         (free): Remove decl.
80292
80293         * lib/rpmatch.c: Include <stdlib.h> unconditionally.
80294
80295         * lib/same.c: Include <stdlib.h>, <string.h> unconditionally.
80296         (free): Remove decl.
80297
80298         * lib/save-cwd.c: Include <stdlib.h> unconditionally.
80299         * lib/xgetcwd.c: Likewise.
80300
80301         * lib/stat.c: Include <stdlib.h>, <string.h> unconditionally.
80302         (free): Remove decl.
80303
80304         * lib/strchrnul.c (strchrnul): Define with a prototype.
80305         Fix bug: c_in was not converted to char before searching.
80306
80307         The following changes are not K&R related:
80308
80309         * lib/group-member.h: Include <sys/types.h>, so that this file is
80310         self-contained.
80311         * lib/makepath.h: Likewise.
80312
80313         * lib/getusershell.c (readname, default_index, line_size, readname):
80314         Use size_t, not int, for sizes.
80315         (readname): If the size overflows, report an error instead of
80316         looping forever.
80317
80318 2003-09-09  Paul Eggert  <eggert@twinsun.com>
80319
80320         * config/srclist.txt: Do not get getopt.h, getopt1.c, or regex.h from
80321         libc.
80322
80323 2003-09-09  Paul Eggert  <eggert@twinsun.com>
80324
80325         * README: New section: portability guidelines.
80326
80327 2003-09-09  Derek Robert Price  <derek@ximbiot.com>
80328
80329         * m4/getndelim2.m4 (gl_PREREQ_GETNDELIM2): Assume stdlib.h per the
80330         C89 spec.
80331
80332 2003-09-09  Derek Robert Price  <derek@ximbiot.com>
80333
80334         * lib/getndelim2.c: Assume stdlib.h per the C89 spec.
80335
80336 2003-09-08  Paul Eggert  <eggert@twinsun.com>
80337
80338         Assume C89 or better; remove K&R cruft.
80339         A few of these changes were first proposed by Derek Robert Price
80340         in <http://mail.gnu.org/archive/html/bug-gnulib/2003-07/msg00105.html>.
80341
80342         * lib/addext.c: Include <string.h> unconditionally.
80343         * lib/backupfile.c: Include <string.h>, <stdlib.h> unconditionally.
80344         Don't declare getenv or malloc.
80345
80346         * lib/alloca.c: Include <string.h>, <stdlib.h> unconditionally.
80347         (POINTER_TYPE, pointer): Remove; all uses changed to void *.
80348         (NULL): Remove.
80349         (find_stack_direction, alloca): Use prototypes.
80350
80351         * lib/atexit.c (atexit): Define using a prototype.
80352
80353         * lib/basename.c, dirname.c, stripslash.c:
80354         Include <string.h> unconditionally.
80355
80356         * lib/bcopy.c: Include <stddef.h>.
80357         (bcopy): Define with prototype, using 'const' and 'void' and 'size_t'.
80358
80359         * lib/canon-host.c: Include <stdlib.h>, <string.h> unconditionally.
80360
80361         * lib/error.h (error, error_at_line, error_print_progname)
80362         [! (defined (__STDC__) && __STDC__)]: Remove decls.
80363         * lib/error.c: Include error.h first, to check interface.
80364         Include <stdarg.h>, <stdlib.h>, <string.h> unconditionally.
80365         (VA_START): Remove; all uses changeed to va_start.
80366         (exit, strerror): Remove decls.
80367         (error_print_progname): Prototype uncondionally.
80368         Don't include <errno.h>; no longer needed.
80369         (private_strerror): Remove.
80370         (error_tail): Always define.
80371         (error, error_at_line): Assume C89 or better; always use prototypes.
80372         * lib/fatal.c: Include "fatal.h" first, to test interface.
80373         Include <stdarg.h>, <stdlib.h>, <string.h> unconditionally.
80374         (VA_START): Remove; all uses changed to va_start.
80375         [! (HAVE_VPRINTF || HAVE_DOPRNT || _LIBC)]: Remove support for
80376         this case.
80377         (exit): Remove decl.
80378         (fatal): Prototype unconditionally.  Assume va_start works.
80379         Abort at end, to pacify gcc.
80380
80381         * lib/euidaccess.c (main): Define with a prototype.
80382
80383         * lib/exclude.c: Include <stdlib.h>, <string.h> unconditionally.
80384
80385         * lib/exitfail.c: Include <stdlib.h> unconditionally.
80386
80387         * lib/fnmatch_.h (__P): Remove.  All uses changed to assume
80388         prototypes.
80389         * lib/fnmatch.c: Include fnmatch.h first, to test interface.
80390         Include <string.h>, <stddef.h>, <stdlib.h> unconditionally.
80391         (getenv): Remove decl.
80392         (fnmatch): Define using a prototype.
80393         * lib/fnmatch_loop.c (FCT): Remove forward decl; no longer needed.
80394         (FCT): Define using a prototype.
80395
80396         * lib/getdate.y: Include <stdlib.h>, <string.h> unconditionally.
80397
80398         * lib/gethostname.c: Include <stddef.h>.
80399         (gethostname): Define with prototype.  Length is size_t, not int.
80400
80401 2003-09-08  Paul Eggert  <eggert@twinsun.com>
80402
80403         Assume C89 or better; remove K&R cruft.
80404         * m4/alloca.m4 (gl_PREREQ_ALLOCA): Don't check for stdlib.h, string.h.
80405         * m4/backupfile.m4 (gl_BACKUPFILE): Don't check for stdlib.h,
80406         string.h, getenv, malloc.
80407         * m4/dirname.m4 (gl_DIRNAME): Don't check for string.h or C standard
80408         headers.
80409         * m4/canon-host.m4 (gl_CANON_HOST): Don't check for string.h, stdlib.h.
80410         * m4/error.m4 (jm_PREREQ_ERROR): Do not require STDC headers, and
80411         do not check for strerror.
80412         * m4/exclude.m4: Do not check for stdlib.h, string.h, strings.h.
80413         * m4/exitfail.m4 (gl_EXITFAIL): Do not check for stdlib.h.
80414         * m4/fatal.m4 (gl_FATAL): Do not require STDC headers, and
80415         do not check for doprnt or vprintf.
80416         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH_EXTRA): Remove.  All uses removed.
80417         * m4/getdate.m4 (gl_GETDATE): Don't check for stdlib.h or string.h.
80418
80419 2003-09-08  Paul Eggert  <eggert@twinsun.com>
80420
80421         * lib/getversion.c: Remove; was migrated to backupfile.c in 1997.
80422         getversion.c should have been removed then, but was accidentally
80423         preserved.
80424
80425         * lib/utime.c [!HAVE_UTIMES_NULL]: Include <sys/stat.h>, <fcntl.h>.
80426         (utime_null): Fix typo: 'st' was sometimes called 'sb'.
80427
80428 2003-09-08  Karl Berry  <karl@gnu.org>
80429
80430         * config/config.sub, config.guess, srclistvars.sh: update from savannah
80431                 config, forget about prep.
80432
80433         * config/depcomp, missing: update from automake.
80434
80435 2003-09-07  Paul Eggert  <eggert@twinsun.com>
80436
80437         * modules/time_r: Depend on 'restrict'.  Fix from Simon Josefsson in
80438         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00028.html>.
80439
80440 2003-09-07  Paul Eggert  <eggert@twinsun.com>
80441
80442         * lib/time_r.c (gmtime_r, localtime_r): Fix silly typo: missing arg to
80443         copy_tm_result.  Bug reported by Simon Josefsson in
80444         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00028.html>.
80445
80446 2003-09-06  Paul Eggert  <eggert@twinsun.com>
80447
80448         * m4/time_r.m4: New file.
80449         * m4/mktime.m4 (gl_PREREQ_MKTIME): Remove check for limits.h.
80450         * m4/timegm.m4 (gl_FUNC_TIMEGM): Assume that timegm is buggy if mktime
80451         is. Check for timegm declaration.
80452         (gl_PREREQ_TIMEGM): Require gl_FUNC_MKTIME.
80453         Do not check for gmtime_r.
80454         Replace mktime if __mktime_internal does not exist and if mktime
80455         hasn't been replaced already.
80456
80457 2003-09-06  Paul Eggert  <eggert@twinsun.com>
80458
80459         * lib/time_r.c, lib/time_r.h: New files.
80460
80461         * lib/mktime.c (my_mktime_localtime_r): Remove; all uses changed to
80462         __localtime_r.
80463         (__localtime_r) [!defined _LIBC]: New macro.  Include <time_r.h>.
80464         (__mktime_internal) [!defined _LIBC]: Now extern, not static.
80465
80466         * lib/strftime.c (my_strftime_gmtime_r): Remove; all uses changed to
80467         __gmtime_r.
80468         (my_strftime_localtime_r): Remove; all uses changed to __localtime_r.
80469         (__gtime_r, __localtime_r) [!HAVE_TM_GMTOFF]: New macros.
80470         Include <time_r.h>.
80471
80472         * lib/timegm.c: Switch to glibc implementation, with the following
80473         changes:
80474         [defined HAVE_CONFIG_H]: Include <config.h>.
80475         [!defined _LIBC]: Include "timegm.h" rather than <time.h>.
80476         (__mktime_internal) [!defined _LIBC]: New decl.
80477         (__gmtime_r) [!defined _LIBC]: New macro and function.
80478         (timegm): Use a prototype, since gnulib assumes C89.
80479         Do not bother declaring tmp to be const, as it's not really usefu.
80480         * lib/timegm.h: Hoist "#include <time.h>" out of #ifdef.
80481         (timegm): Declare only if HAVE_DECL_TIMEGM.
80482
80483 2003-09-06  Paul Eggert  <eggert@twinsun.com>
80484
80485         * MODULES.html.sh (func_all_modules): Add time_r.
80486         * modules/time_r: New file.
80487         * modules/mktime, modules/strftime, modules/timegm: Depend on time_r.
80488         * modules/timegm: Depend on mktime.  Change maintainer to "all, glibc".
80489
80490 2003-09-03  Paul Eggert  <eggert@twinsun.com>
80491
80492         * lib/human.c (human_readable): Fix bug that rounded 10501 to 10k.
80493         Bug reported by Lute Kamstra in
80494         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00003.html>.
80495
80496         * lib/getdate.y (relative_time_table): Use tDAY_UNIT for "tomorrow",
80497         "yesterday", "today", and "now" rather than tMINUTE_UNIT.  Of
80498         course with correspondingly smaller numbers for tomorrow and
80499         yesterday.  From Tadayoshi Funaba.  Originally installed into
80500         sh-utils on 1999-08-07, but the patch got lost (I guess during the
80501         coreutils merge?).
80502
80503 2003-08-31  Simon Josefsson  <jas@extundo.com>
80504
80505         * modules/timegm: New file.
80506         * MODULES.html.sh (func_all_modules): Add timegm.
80507
80508 2003-08-31  Simon Josefsson  <jas@extundo.com>
80509
80510         * m4/timegm.m4: New file.
80511
80512 2003-08-31  Simon Josefsson  <jas@extundo.com>
80513
80514         * lib/timegm.h: New file.
80515         * lib/timegm.c: New file.  Based on
80516         wget-1.8.2/src/http.c:mktime_from_utc.
80517
80518 2003-08-31  Karl Berry  <karl@gnu.org>
80519
80520         * lib/argp.h: update from libc.
80521
80522 2003-08-28  Bruno Haible  <bruno@clisp.org>
80523
80524         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Remove AC_DEFINE of fnmatch here.
80525         This avoids havoc on compilers for which '#define fnmatch rpl_fnmatch'
80526         followed by '#define fnmatch fnmatch_posix' gives an error.
80527
80528 2003-08-28  Bruno Haible  <bruno@clisp.org>
80529
80530         * lib/binary-io.h: Undefine O_BINARY before defining it. This avoids a
80531         warning on QNX, which defines O_BINARY to 000000.
80532
80533 2003-08-27  Jim Meyering  <jim@meyering.net>
80534
80535         * m4/mkstemp.m4: Require that the system mkstemp be able to create
80536         70 temporary files, not just 30.  Tru64 V4.0F's mkstemp function
80537         would fail after 32.  Reported by Danny Levinson.  Details here:
80538         http://mail.gnu.org/archive/html/bug-coreutils/2003-08/msg00124.html
80539
80540 2003-08-24  Bruno Haible  <bruno@clisp.org>
80541
80542         * lib/binary-io.h: Include <stdio.h>, to avoid a compilation error when
80543         MSVC7 <stdio.h> is included later.
80544
80545 2003-08-22  Simon Josefsson  <jas@extundo.com>
80546
80547         * modules/strndup (Makefile.am): Add strndup.h to lib_SOURCES.
80548
80549 2003-08-20  Karl Berry  <karl@gnu.org>
80550
80551         * m4/lib-ld.m4: serial 1003 from gettext, no changes besides serial.
80552
80553 2003-08-20  Bruno Haible  <bruno@clisp.org>
80554
80555         * modules/progname: New file.
80556         * MODULES.html.sh (func_all_modules): Add progname.
80557
80558 2003-08-20  Bruno Haible  <bruno@clisp.org>
80559
80560         * lib/progname.h: New file, from GNU gettext.
80561         * lib/progname.c: New file, from GNU gettext.
80562         * lib/progreloc.c: New file, from GNU gettext.
80563
80564 2003-08-19  Jim Meyering  <jim@meyering.net>
80565
80566         * m4/lib-ld.m4: Revert yesterday's change, per Bruno's request here:
80567         http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00155.html
80568
80569 2003-08-19  Bruno Haible  <bruno@clisp.org>
80570
80571         * m4/xalloc.m4 (gl_PREREQ_XSTRDUP): Don't check for <string.h> any
80572         more.
80573
80574 2003-08-19  Bruno Haible  <bruno@clisp.org>
80575
80576         * lib/xstrdup.c: Assume <string.h> exists.
80577
80578 2003-08-18  Paul Eggert  <eggert@twinsun.com>
80579
80580         * modules/stdbool: Add BUILT_SOURCES.  Prefer $@ to target name
80581         in makefile rules.
80582
80583 2003-08-18  Jim Meyering  <jim@meyering.net>
80584
80585         * m4/getloadavg.m4: Use [\t ], not [ \t] (where \t is a literal TAB).
80586         * m4/lib-ld.m4: Likewise.
80587
80588 2003-08-18  Jim Meyering  <jim@meyering.net>
80589
80590         * lib/setenv.h: Indent nested cpp directive.
80591         * lib/vasnprintf.c: Remove trailing blanks.
80592
80593 2003-08-17  Simon Josefsson  <jas@extundo.com>
80594
80595         * modules/xstrndup: New file.
80596         * MODULES.html.sh (func_all_modules): Add xstrndup.
80597
80598 2003-08-17  Simon Josefsson  <jas@extundo.com>
80599
80600         * modules/argp: Fix autoconf macro name. Add more dependencies.
80601
80602 2003-08-17  Simon Josefsson  <jas@extundo.com>
80603
80604         * m4/xstrndup.m4: New file.
80605
80606 2003-08-17  Simon Josefsson  <jas@extundo.com>
80607
80608         * m4/argp.m4: New file.
80609
80610 2003-08-17  Simon Josefsson  <jas@extundo.com>
80611             Bruno Haible  <bruno@clisp.org>
80612
80613         * lib/xstrndup.h: New file.
80614         * lib/xstrndup.c: New file.
80615
80616 2003-08-17  Bruno Haible  <bruno@clisp.org>
80617
80618         * modules/strndup (Files, Include): Add lib/strndup.h.
80619
80620 2003-08-17  Bruno Haible  <bruno@clisp.org>
80621
80622         * modules/euidaccess (Files): Add lib/euidaccess.h.
80623
80624 2003-08-17  Bruno Haible  <bruno@clisp.org>
80625
80626         * lib/strndup.h: New file.
80627
80628 2003-08-17  Bruno Haible  <bruno@clisp.org>
80629
80630         * gnulib-tool (func_create_testdir): Handle gl_USE_SYSTEM_EXTENSIONS
80631         like AC_GNU_SOURCE.
80632         * modules/extensions (configure.ac): Comment out the invocation of
80633         gl_USE_SYSTEM_EXTENSIONS.
80634
80635 2003-08-16  Paul Eggert  <eggert@twinsun.com>
80636
80637         Merges from coreutils, etc.
80638         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Insert ':' to prevent a syntax
80639         error in gl_FUNC_MATCH.  This fixes a bug I introduced on 2003-05-28.
80640         * m4/readlink.m4 (gl_PREREQ_READLINK): Renamed from gl_PREREQ_READLINE,
80641         fixing a typo.
80642         * m4/host-os.m4 (UTILS_HOST_OS): Add GNU/NetBSD, GNU/FreeBSD.
80643         * m4/hash.m4 (gl_HASH): Use AM_STDBOOL_H, not AC_HEADER_STDBOOL.
80644
80645 2003-08-16  Paul Eggert  <eggert@twinsun.com>
80646
80647         Document merge from coreutils.
80648         * modules/alloca: Append $(ALLOCA_H) to BUILT_SOURCES.
80649         * modules/fnmatch: Append $(FNMATCH_H) to BUILT_SOURCES.
80650         * modules/utime: Add m4/utimes-null.m4.
80651
80652 2003-08-16  Paul Eggert  <eggert@twinsun.com>
80653
80654         * lib/regex.h, strdup.c, strtoll.c, strtoul.c: Do not normalize white
80655         space, undoing this 2003-08-12 change:
80656         <http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00080.html>
80657
80658 2003-08-16  Paul Eggert  <eggert@twinsun.com>
80659
80660         * config/srclist.txt: Get regex.h, strdup.c, strtoll.c,
80661         strtoul.c from libc, undoing this 2003-08-12 change:
80662         <http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00080.html>
80663
80664 2003-08-16  Jim Meyering  <jim@meyering.net>
80665
80666         Merges from coreutils.
80667         * m4/readdir.m4 (GL_FUNC_READDIR): Change name to have GL_ (not jm_)
80668         prefix.  Adjust cache variables similarly.  Create 500 rather than
80669         just 300 files, to exercise bug on Darwin6.5, too.
80670         * m4/perl.m4 (jm_PERL): Use $am_missing_run, not undefined
80671         $missing_dir.
80672         * m4/jm-winsz1.m4: Require AC_SYS_POSIX_TERMIOS, not
80673         AM_SYS_POSIX_TERMIOS.
80674         Reported by mkc@mathdogs.com.
80675         Also change use of $am_cv_sys_posix_termios
80676         to $ac_cv_sys_posix_termios.  Reported by Andreas Schwab.
80677         * m4/getgroups.m4 (jm_FUNC_GETGROUPS): Rewrite to use AC_FUNC_GETGROUPS
80678         and (if needed) to call AC_LIBOBJ and to set GETGROUPS_LIB.
80679         * m4/fsusage.m4 [__GLIBC__]: GNU libc's statvfs stats each mount point
80680         in /proc/mounts until it finds one with matching device number.  This
80681         is unnecessary when the FILE argument *is* a mount point.  No stat call
80682         is necessary in that case.  So, disable the statvfs-testing code on
80683         systems with GNU libc.  Reported by Andrei Gaponenko via Tim Waugh
80684         as RedHat bug# 84846.
80685         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Limit stack size
80686         to 1MB, so as not to render systems with no stack size limit (e.g.,
80687         linux-2.2.x) unusable.  Suggestion and code from Bruno Haible.
80688         Include <unistd.h>.  On some systems,
80689         it is required for the definition of _SC_PAGESIZE.
80690
80691 2003-08-16  Jim Meyering  <jim@meyering.net>
80692
80693         Merge from coreutils.
80694         * lib/xstrtoimax.c: #else #if -> #elif.
80695         * lib/xstrtoumax.c: Likewise.
80696
80697 2003-08-16  Jim Meyering  <jim@meyering.net>
80698
80699         * m4/utimes.m4 (gl_FUNC_UTIMES): New file.
80700         * m4/utimes.m4: Removed.
80701         * m4/utimes-null.m4: Renamed from utimes.m4.
80702
80703         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Limit stack size
80704         to 1MB, so as not to render systems with no stack size limit (e.g.,
80705         linux-2.2.x) unusable.  Suggestion and code from Bruno Haible.
80706         Include <unistd.h>.  On some systems,
80707         it is required for the definition of _SC_PAGESIZE.
80708
80709 2003-08-16  Jim Meyering  <jim@meyering.net>
80710         and Paul Eggert  <eggert@cs.ucla.edu>
80711
80712         Merges from coreutils, etc.
80713
80714         * m4/jm-macros.m4 (AC_LANG_SOURCE(C)): New macro, undefine, then define
80715         using the latest version from cvs.  This avoids problems with #line
80716         directives using a vendor (Sun) compiler.
80717         (jm_MACROS): Bump prerequisite from 2.52g to 2.57.
80718         Don't set GETGROUPS_LIB here; now it's
80719         done via getgroups.m4's wrapper function.
80720         AC_SUBST OPTIONAL_BIN_PROGS, OPTIONAL_BIN_ZCRIPTS, and MAN here,
80721         rather than just in sh-util/configure.in, so that the
80722         now-shared-by-fileutils-and-textutils lib/Makefile.am are all the
80723         same.
80724         Use AC_CONFIG_LIBOBJ_DIR(lib) to tell the new
80725         AC_FUNC_GETLOADAVG where to find getloadavg.c.
80726         Require AC_FUNC_FTW, gt_INTTYPES_PRI, gl_CLOCK_TIME,
80727         UTILS_SYS_OPEN_MAX, GL_FUNC_GETCWD_PATH_MAX, GL_FUNC_READDIR,
80728         gl_FSUSAGE, gl_MOUNTLIST, AC_FUNC_CANONICALIZE_FILE_NAME.
80729         Remove code that is now done by the newly-required macros.
80730         Append $(EXEEXT) to DF_PROG.
80731         AC_LIBOBJ fchdir-stub if fchdir doesn't exist; similarly for fchown.
80732         Do not invoke or require the following here,
80733         since prereq.m4 or some gnulib .m4 now does this for us:
80734         gl_REGEX, UTILS_FUNC_MKDIR_TRAILING_SLASH, jm_BISON, gl_FUNC_MKTIME,
80735         jm_FUNC_LSTAT, jm_FUNC_STAT, jm_FUNC_REALLOC, jm_FUNC_MALLOC,
80736         jm_FUNC_NANOSLEEP, jm_FUNC_READDIR, jm_FUNC_MEMCMP,
80737         jm_FUNC_GLIBC_UNLOCKED_IO, AC_FUNC_FNMATCH_GNU, jm_FUNC_PUTENV,
80738         jm_AC_PREREQ_XSTRTOUMAX, jm_AC_PREREQ_XSTRTOIMAX,
80739         AC_FUNC_ERROR_AT_LINE, jm_FUNC_GNU_STRFTIME, AC_FUNC_VPRINTF,
80740         vb_FUNC_RENAME, UTILS_FUNC_MKSTEP, jm_FUNC_UTIME, AM_FUNC_GETLINE,
80741         AC_FUNC_OBSTACK.
80742         Do not replace the following functions, as this is now the job
80743         of some gnulib .m4: strcasecmp, strncasecmp, dup2, gethostname,
80744         getusershell, sig2str, strcspn, stpcpy, strstr, strtol, strtoul
80745         strpbrk, euidaccess, memcmp, rmdir, rpmatch, strndup, strverscmp,
80746         atexit getpass, strdup, getpagesize.
80747         Replace 'raise'.
80748         Do not check for the following functions, as this is now the job
80749         of some gnulib .m4: bcopy, canonicalize_file_name, fchdir, ftime,
80750         getcwd, getmntinfo, resolvepath.  But check for sysctl, setreuid,
80751         setregid.
80752         (jm_CHECK_ALL_HEADERS): Do not check for fenv.h.
80753         Check for sys/sysctl.h.
80754         (jm_CHECK_ALL_TYPES): Do not require AC_STRUCT_TM, AC_STRUCT_TIMEZONE,
80755         jm_CHECK_TYPE_STRUCT_TIMESPEC.  Invoke gt_TYPE_SSIZE_T instead
80756         of checking for ssize_t ourselves.
80757
80758         * m4/prereq.m4 (jm_PREREQ): Don't invoke macros; AC_REQUIRE them.
80759         Require every macro that gnulib/modules/* suggests for us.
80760         (jm_PREREQ_ADDEXT): New macro.
80761         (jm_PREREQ_STAT): Check for 'struct statfs' on Ultrix 4.4.
80762         Require jm_AC_TYPE_LONG_LONG instead of invoking it.
80763
80764         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): New macro.
80765         (gl_PHYSMEM): Use it.
80766         Also check for `table' function.
80767         Check for new headers and functions.
80768         Add check for sys/sysmp.h.
80769         With suggestions from Kaveh Ghazi.
80770         Ignore headers that are present but cannot be compiled.  This
80771         avoids spurious warnings on Solaris 9 sparc with Forte Developer 7
80772         C 5.4.
80773
80774 2003-08-15  Paul Eggert  <eggert@twinsun.com>
80775
80776         Document merge from coreutils.
80777         * modules/userspec: Depend on posixver.
80778         * modules/strftime: Depend on tzset.
80779
80780 2003-08-15  Paul Eggert  <eggert@twinsun.com>
80781
80782         * lib/config.charset, ref-add.sin, ref-del.sin: Use three spaces,
80783         rather than tab, after '#' in shell-script copyright notices.
80784         Suggested by Bruno Haible.
80785
80786 2003-08-15  Paul Eggert  <eggert@twinsun.com>
80787
80788         * config/srclist-update: Use three spaces, rather than tab, after '#'
80789         in shell-script copyright notices.  Suggested by Bruno Haible.
80790         Remove unnecessary parenthesization in regular expression.
80791
80792 2003-08-15  Jim Meyering  <jim@meyering.net>
80793
80794         Merge from coreutils.
80795         * lib/xgethostname.c: Include <stdlib.h>.
80796         (xghostname): Don't exit for anything other than memory-related
80797         failure; just return NULL.
80798         * lib/userspec.c: Include "posixver.h".
80799         (parse_user_spec): Accept `.' as a separator only
80800         in pre-POSIX-200112 mode.
80801         * lib/strtoimax.c: Use #elif rather than #else #if.
80802         * lib/strftime.c (my_strftime) [!_LIBC && HAVE_TZNAME && HAVE_TZSET]:
80803         Remove function, now that we can rely on a working tzset function.
80804         [!_LIBC]: Ensure that the required autoconf test has been run.
80805         [!defined _NL_CURRENT && HAVE_STRFTIME]:
80806         Use underlying_strftime for %r.
80807         * lib/sha.c: Merge in some clean-up and optimization changes from
80808         glibc.
80809         * lib/sha.c (sha_stream) [BLOCKSIZE]: Move definition to top of file.
80810         Ensure that it is a multiple of 64.
80811         Rearrange loop exit tests so as to avoid performing an
80812         additional fread after encountering an error or EOF.
80813         * lib/realloc.c: Update copyright date.
80814
80815 2003-08-15  Jim Meyering  <jim@meyering.net>
80816         and Paul Eggert  <eggert@twinsun.com>
80817
80818         Merge from coreutils.
80819         * lib/readutmp.h (HAVE_UTMPX_H): Undef if struct utmp has the ut_exit
80820         member but strut utmpx does not.  Needed for AIX 4.3.3.
80821         (UT_EXIT_E_TERMINATION, UT_EXIT_E_EXIT): Define.
80822
80823 2003-08-15  Jim Meyering  <jim@meyering.net>
80824         and Paul Eggert  <eggert@cs.ucla.edu>
80825
80826         Merges from coreutils, etc.
80827         * m4/strftime.m4 (_jm_STRFTIME_PREREQS):
80828         Require gl_FUNC_TZSET_CLOBBER.
80829         * m4/readutmp.m4 (gl_READUTMP): Check for ut_exit.ut_exit,
80830         ut_exit.e_exit, ut_exit.ut_termination, and ut_exit.e_termination
80831         members.
80832
80833 2003-08-14  Paul Eggert  <eggert@twinsun.com>
80834
80835         Help the merge from coreutils.
80836         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): New macro.
80837         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Use it.
80838         * m4/tzset.m4: Use it too.
80839
80840 2003-08-14  Paul Eggert  <eggert@twinsun.com>
80841
80842         * modules/tzset: New file.
80843
80844 2003-08-14  Jim Meyering  <jim@meyering.net>
80845
80846         Merges from coreutils.
80847         * modules/fnmatch: Use the `$(FNMATCH_H)' notation for AC_REPLACED
80848         variable names, rather than @FNMATCH_H@.
80849         * modules/alloca: Likewise for $(ALLOCA_H).
80850
80851         * modules/fnmatch (fnmatch.h): Use `$@' in the commands, in place of
80852         the three copies of the literal target, `fnmatch.h'.
80853         * modules/alloca (alloca.h): Likewise.
80854
80855 2003-08-14  Jim Meyering  <jim@meyering.net>
80856
80857         Merge from coreutils.
80858         * m4/tzset.m4: New file.
80859         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Move the
80860         MOUNTED_VMOUNT test to precede the MOUNTED_GETMNTENT1 tests, since
80861         otherwise, AIX 5.1 systems would end up using the latter.
80862         MOUNTED_GETMNTENT1 support is inadequate on such systems: 1) detecting
80863         whether a file system is remote doesn't work  2) the MOUNTED_VMOUNT
80864         code reports the HOSTNAME:/MOUNT_POINT, while the MOUNTED_GETMNTENT1
80865         code reports merely /MOUNT_POINT.  Reported by Mike Jetzer.
80866
80867 2003-08-14  Jim Meyering  <jim@meyering.net>
80868
80869         Merge from coreutils.
80870         * lib/obstack.h: Whitespace changes.
80871         * lib/mountlist.c: Remove anachronistic casts of xmalloc, xrealloc,
80872         and xcalloc return values.
80873         (read_filesystem_list) [MOUNTED_GETFSSTAT]:
80874         Use MNT_NOWAIT, rather than MNT_WAIT.  Otherwise, `df DIR' could
80875         hang on OSF/1 5.1 for DIR on both local and remote file systems.
80876         Reported by (and fix confirmed by) Nelson H. F. Beebe.
80877         (read_filesystem_list) [MOUNTED_VMOUNT]: Detect any
80878         error from mntctl.
80879         Use mntctl's return value to drive the entry-processing loop, since
80880         we can't rely on the value of the vmt_length member in the last
80881         entry.  On some systems doing so could result in exhausting
80882         virtual memory.  Based in part on a patch from Mike Jetzer.
80883
80884 2003-08-14  Jim Meyering  <jim@meyering.net>
80885         and Paul Eggert  <eggert@twinsun.com>
80886
80887         Merges from coreutils, plus other fixes.
80888         * lib/physmem.c: Merge in portability changes from gcc/libiberty
80889         to support AIX, IRIX, Tru64, and Windows.  See the ChangeLog there
80890         for credits and details.  Thanks to Kaveh Ghazi for helping
80891         to keep these files in sync.
80892         (ARRAY_SIZE): Define it.
80893         (physmem_total, physmem_available): Add comments. From Kaveh Ghazi.
80894         * lib/memcasecmp.c: Remove unnecessary parentheses after 'defined'.
80895         (memcasecmp): Don't assume size_t fits in unsigned int.
80896         Remove casts and duplicate code.
80897         * lib/md5.c: Include <string.h> and <stdlib.h> unconditionally.
80898         (memcpy): Remove definition.
80899         Merge in some clean-up and optimization changes from glibc.
80900         [BLOCKSIZE]: Move definition to top of file.
80901         Ensure that it is a multiple of 64.
80902         Rearrange loop exit tests so as to avoid performing an
80903         additional fread after encountering an error or EOF.
80904         * lib/md5.h (md5_uintptr): Define.
80905         * lib/makepath.c (CLEANUP_CWD): Report an error if we failed to
80906         return to the initial working directory.  Preserve errno
80907         for caller.
80908         * lib/idcache.c: Include "xalloc.h".
80909         (xmalloc, xrealloc): Remove decls.
80910         (getuser): Remove casts no longer required in C89.
80911         * lib/human.c: Include stdio.h, for sprintf.
80912         * lib/group-member.c: Include "xalloc.h".
80913         (xmalloc, xrealloc): Remove decls.
80914         (get_group_info): Remove casts no longer required in C89.
80915         * lib/getusershell.c (readname): Remove casts no longer required in
80916         C89.
80917         * lib/gettimeofday.c (rpl_gmtime, rpl_tzset): New functions.
80918         * lib/getline.c: Whitespace fix, from coreutils.
80919
80920 2003-08-13  Paul Eggert  <eggert@twinsun.com>
80921
80922         * m4/exclude.m4 (gl_EXCLUDE): Require AC_C_INLINE, AC_HEADER_STDC.
80923         Check for isascii.
80924
80925         * m4/gettext.m4, iconv.m4, intdiv0.m4, inttypes-pri.m4, lib-link.m4,
80926         lib-prefix.m4, longdouble.m4, po.m4, progtest.m4, signed.m4:
80927         Undo previous (whitespace-only) change.
80928
80929 2003-08-13  Paul Eggert  <eggert@twinsun.com>
80930
80931         * lib/exclude.c: Include <ctype.h>
80932         (IN_CTYPE_DOMAIN): New macro.
80933         (is_space): New fn.
80934         (add_exclude_file): If LINE_END is a space, ignore trailing spaces
80935         and empty lines.
80936
80937         * lib/argp-help.c, argp-parse.c, config.charset, getopt.h:
80938         Undo previous (whitespace-only) change.
80939
80940 2003-08-13  Paul Eggert  <eggert@twinsun.com>
80941
80942         * config/srclist-update: Change update back to the old behavior,
80943         leaving whitespace alone.  Use one 'sed' command rather than a
80944         pipeline.
80945         (fixlicense): Now a variable, not a function.
80946         (remove_trailing_blanks): Remove.
80947         (fixfile): Don't invoke unexpand or cat, or remove trailing blanks.
80948         * config/config.guess, config.sub, install-sh, missing, texinfo.tex:
80949         Undo previous (whitespace-only) change.
80950
80951 2003-08-12  Paul Eggert  <eggert@twinsun.com>
80952
80953         Merge from coreutils.
80954         * modules/euidaccess: Add lib_SOURCES, include for new
80955         file euidaccess.h
80956
80957 2003-08-12  Paul Eggert  <eggert@twinsun.com>
80958
80959         * m4/gettext.m4, iconv.m4, intdiv0.m4, inttypes-pri.m4, lib-link.m4,
80960         lib-prefix.m4, longdouble.m4, po.m4, progtest.m4, signed.m4:
80961         Normalize leading white space and remove trailing white space.
80962
80963         Merge from coreutils
80964         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Check for euidaccess decl.
80965
80966         * m4/lib-ld.m4, lib-link.m4, lib-prefix.m4: Regenerate from gettext
80967         0.12.1.  These files are now being upgraded automatically by
80968         ../config/srclist-update.
80969
80970 2003-08-12  Paul Eggert  <eggert@twinsun.com>
80971
80972         * lib/argp-help.c, argp-parse.c, config.charset, getopt.h:
80973         Normalize leading white space and remove trailing white space.
80974         * lib/ref-add.sin, ref-del.sin: Use '#' before empty line in copyright
80975         notice, as per ../config/srclist-update.
80976
80977         Merge from coreutils.
80978         * lib/euidaccess.h: New file.
80979         * lib/euidaccess.c: Include it.
80980         * lib/.cppi-disable: Add printf-args.h, printf-parse.h, stdbool_.h,
80981         vasnprintf.h, vasprintf.h.  Remove strdup.c, gettext.h.
80982         * lib/regex.h, strdup.c, strtoll.c, strtoul.c: Normalize white space.
80983
80984 2003-08-12  Paul Eggert  <eggert@twinsun.com>
80985
80986         * config/srclist-update: Add copyright notice.
80987         (remove_id_lines, remove_trailing_blanks): New constants.
80988         (fixfile): Use them to normalize spacing a bit in copied files.
80989         * config/config.guess, config.sub, install-sh, missing, texinfo.tex:
80990         Normalize leading white space and remove trailing white space.
80991
80992         * config/texinfo.tex: Sync with texinfo.
80993
80994         * config/srclist.txt: Don't get regex.h, strdup.c, strtoll.c,
80995         strtoul.c from libc, to merge coreutils whitespace changes.
80996
80997         * config/srclist.txt: Get the following m4 files from gettext:
80998         codeset.m4, gettext.m4, glibc21.m4, iconv.m4, intdiv0.m4,
80999         inttypes-pri.m4, lcmessage.m4, lib-ld.m4, lib-link.m4, lib-prefix.m4,
81000         longdouble.m4, nls.m4, po.m4, progtest.m4, signed.m4, wchar_t.m4,
81001         wint_t.m4.
81002
81003 2003-08-12  Karl Berry  <karl@gnu.org>
81004
81005         * config/srclist.txt: can't sync vasnprintf.c any more, changes have
81006         been made.
81007
81008 2003-08-11  Paul Eggert  <eggert@twinsun.com>
81009
81010         * modules/gnu-source, m4/gnu-source.m4:
81011         Remove; we're assuming Autoconf 2.54 or later now.
81012         Suggested by Bruno Haible.
81013         * MODULES.html.sh (func_all_modules): Remove gnu-source.
81014
81015 2003-08-11  Bruno Haible  <bruno@clisp.org>
81016
81017         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Also check for wcslen.
81018
81019 2003-08-11  Bruno Haible  <bruno@clisp.org>
81020
81021         * lib/vasnprintf.c (local_wcslen): New function, for Solaris 2.5.1.
81022         (vasnprintf): Use it instead of wcslen.
81023
81024 2003-08-11  Bruno Haible  <bruno@clisp.org>
81025
81026         * lib/stdbool_.h (_Bool): Undo last change; instead use a negative enum
81027         value to ensure that _Bool promotes to int. Use #define for _Bool when
81028         using the Solaris C compiler. Adds comments suggested by Paul Eggert.
81029
81030 2003-08-10  Karl Berry  <karl@gnu.org>
81031
81032         * lib/regex.h: update from libc (whitespace fix).
81033
81034 2003-08-09  Paul Eggert  <eggert@twinsun.com>
81035
81036         Merge some files from coreutils.  These changes were
81037         originally made by Jim Meyering.
81038         * lib/acl.c: Include <sys/types.h> before <sys/stat.h>;
81039         many older Unixes require this.
81040         * lib/alloca.c (alloca): Remove cast to argument of free;
81041         no longer needed in C89.
81042         * lib/alloca_.h, regex.h: Fix white space to match
81043         what GNU indent does.
81044
81045 2003-08-09  Paul Eggert  <eggert@twinsun.com>
81046
81047         * m4/regex.m4 (jm_INCLUDED_REGEX): Change "\201" to "\371";
81048         apparently Emacs's Unicode mode got confused before my 2003-08-05
81049         checkin.
81050
81051 2003-08-08  Paul Eggert  <eggert@twinsun.com>
81052
81053         * m4/extensions.m4: New file.
81054         * m4/timespec.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC):
81055         Require gl_USE_SYSTEM_EXTENSIONS.
81056         * m4/unlocked-io.m4 (jm_FUNC_GLIBC_UNLOCKED_IO):
81057         Require gl_USE_SYSTEM_EXTENSIONS rather than AC_GNU_SOURCE.
81058
81059 2003-08-08  Paul Eggert  <eggert@twinsun.com>
81060
81061         * MODULES.html.sh (func_all_modules): Add extensions, gnu-source.
81062         * modules/extensions, modules/gnu-source: New files.
81063         * modules/timespec, modules/unlocked-io: Depend on extensions.
81064
81065 2003-08-07  Paul Eggert  <eggert@twinsun.com>
81066
81067         * modules/restrict: New file.
81068         * MODULES.html.sh (func_all_modules): Add restrict.
81069         * modules/regex: Depend on restrict.
81070
81071 2003-08-07  Paul Eggert  <eggert@twinsun.com>
81072
81073         * m4/restrict.m4: New file.
81074         * m4/regex.m4 (jm_PREREQ_REGEX): Add gl_C_RESTRICT.
81075
81076 2003-08-07  Bruno Haible  <bruno@clisp.org>
81077
81078         * modules/getndelim2 (Makefile.am): Add the files to EXTRA_DIST, not
81079         lib_SOURCES, because getndelim2.m4 now uses AC_LIBOBJ(getndelim2).
81080
81081 2003-08-07  Bruno Haible  <bruno@clisp.org>
81082
81083         * m4/getndelim2.m4 (gl_GETNDELIM2): Use AC_LIBOBJ(getndelim2). This
81084         makes the module 'getndelim2' compatible with the module 'getline'.
81085
81086 2003-08-05  Paul Eggert  <eggert@twinsun.com>
81087
81088         * m4/regex.m4 (jm_INCLUDED_REGEX): Replace a single non-ASCII
81089         byte with "\201" to avoid glitches when editing that source file
81090         with multi-gnome-terminal.
81091
81092 2003-08-05  Paul Eggert  <eggert@twinsun.com>
81093
81094         * lib/bumpalloc.h: Remove.
81095
81096 2003-08-05  Paul Eggert  <eggert@twinsun.com>
81097
81098         * MODULES.html.sh (func_all_modules): Remove bumpalloc.
81099         * modules/bumpalloc: Remove.
81100
81101 2003-08-04  Paul Eggert  <eggert@twinsun.com>
81102
81103         * lib/getloadavg.c: Change copyright notice and spacing to conform to
81104         GNU coding style.
81105
81106         Merge from coreutils.
81107         * lib/error.c [!USE_IN_LIBIO]: Omit this case; assume USE_IN_LIBIO is
81108         1. From glibc.
81109         * lib/getdate.y (date): Also accept dates like May-23-2003; suggestion
81110         from Karl Berry, implemented by Jim Meyering.
81111         * lib/getgroups.c: Include "xalloc.h" instead of declaring xalloc fns;
81112         from Dmitry V. Levin.
81113         Remove anachronistic cast of xrealloc.
81114         * lib/fnmatch_.h (__const): Remove.  Use 'const'.
81115         * lib/fnmatch_loop.c (NEW_PATTERN): Cast alloca return value to proper
81116         type. Otherwise, it wouldn't compile with at least /bin/cc on
81117         ymp-cray-unicos9.0.2.X.
81118         Combine two mostly-identical uses of alloca into one.
81119         Thanks to the Cray-Cyber project for access to a Cray Y-MP.
81120
81121 2003-08-04  Dave Love  <d.love@dl.ac.uk>
81122
81123         [From Emacs.]
81124
81125         * lib/getloadavg.c: Check `__unix' as well as `unix'.  Use #ifdef, not
81126         #if.  Check HAVE_LIBKSTAT as well as LOAD_AVE_TYPE.  Check
81127         F_SETFD, not FD_SETFD.  Use HAVE_STRUCT_NLIST_N_UN_N_NAME, not
81128         obsolete NLIST_NAME_UNION.
81129         [__GNU__]: Undef BSD and FSCALE.
81130         [!NLIST_STRUCT]: Remove conditional definition of NLIST_STRUCT.
81131
81132 2003-08-03  Paul Eggert  <eggert@twinsun.com>
81133
81134         * lib/stdbool_.h (_Bool): Make it signed char, instead of
81135         an enum type, so that it's guaranteed to promote to int.  See:
81136         <http://mail.gnu.org/archive/html/bug-gnulib/2003-07/msg00124.html>
81137
81138 2003-08-03  Karl Berry  <karl@gnu.org>
81139
81140         * config/depcomp: update from automake.
81141
81142 2003-07-31  Paul Eggert  <eggert@twinsun.com>
81143
81144         * lib/strerror.c: Include config.h, limits.h.  Declare sprintf.
81145         (strerror): Don't assume that a printable int fits in 14 bytes.
81146
81147 2003-07-31  Bruno Haible  <bruno@clisp.org>
81148
81149         * modules/getpass-gnu: New file.
81150         * MODULES.html.sh (func_all_modules): Add getpass-gnu.
81151
81152 2003-07-31  Bruno Haible  <bruno@clisp.org>
81153
81154         * m4/getpass.m4 (gl_FUNC_GETPASS_GNU): New macro.
81155
81156 2003-07-24  Karl Berry  <karl@gnu.org>
81157
81158         * config/missing: update from automake.
81159
81160 2003-07-24  Derek Robert Price  <derek@ximbiot.com>
81161             Bruno Haible  <bruno@clisp.org>
81162
81163         * lib/getline.h (getline, getdelim): Change return type to ssize_t.
81164         * lib/getline.c (getline, getdelim): Likewise.
81165         Remove _GNU_SOURCE define; now it's defined in config.h through
81166         m4/getline.m4.
81167
81168 2003-07-23  Karl Berry  <karl@gnu.org>
81169
81170         * config/config.sub: update from prep.
81171
81172 2003-07-22  Paul Eggert  <eggert@twinsun.com>
81173
81174         * modules/xalloc (Depends-on): Add exitfail.
81175         * modules/xmemcoll: Likewise.
81176
81177 2003-07-22  Paul Eggert  <eggert@twinsun.com>
81178
81179         * lib/xalloc.h (XCALLOC, XREALLOC, CCLONE): Fix under- and
81180         over-parenthesization in macros.
81181
81182         Sync with coreutils.
81183
81184         * lib/xalloc.h (XMALLOC, XCALLOC, XREALLOC): Remove casts not
81185         required by C99.
81186
81187         Use `exit_failure' for xalloc and xmemcoll instead of their own
81188         private exit-failure variables.
81189         * lib/xalloc.h (xalloc_exit_failure): Remove.
81190         * lib/xmalloc.c: Likewise.  Include exitfail.h.
81191         (xalloc_die): Use exit_failure instead of xalloc_exit_failure.
81192         * lib/xmemcoll.h (xmemcoll_exit_failure): Remove.
81193         * lib/xmemcoll.c: Likewise.  Include exitfail.h.
81194         (xmemcoll): Use exit_failure instead of xalloc_exit_failure.
81195
81196 2003-07-20  Jim Meyering  <jim@meyering.net>
81197
81198         * modules/closeout (Depends-on): Add exitfail.
81199         Suggestion from Bruno Haible.
81200
81201 2003-07-19  Karl Berry  <karl@gnu.org>
81202
81203         * config/config.sub: update from prep.
81204
81205 2003-07-18  Paul Eggert  <eggert@twinsun.com>
81206
81207         * lib/closeout.h (close_stdout_set_status, close_stdout_status):
81208         Remove.
81209         * lib/closeout.c: Likewise.  Include "closeout.h" right after config.h,
81210         to test that it can stand by itself.  Include "exitfail.h".
81211         Clients should set exit_failure instead.
81212         (EXIT_FAILURE): Remove; no longer needed.  Do not include <stdlib.h>.
81213
81214 2003-07-18  Bruno Haible  <bruno@clisp.org>
81215
81216         * modules/getndelim2: New file.
81217         * modules/getline: Share files with module getndelim2.
81218         * modules/getnline: Depend on getndelim2 instead of sharing files with
81219         it. Add getnline.c to lib_SOURCES.
81220         * MODULES.html.sh (func_all_modules): Add getndelim2.
81221
81222 2003-07-18  Bruno Haible  <bruno@clisp.org>
81223
81224         * m4/getndelim2.m4: New file.
81225         * m4/getline.m4 (AM_FUNC_GETLINE): Add AC_LIBOBJ of getndelim2.c and
81226         invoke gl_PREREQ_GETNDELIM2.
81227         (gl_PREREQ_GETLINE): Drop AC_HEADER_STDC, now done by
81228         gl_PREREQ_GETNDELIM2.
81229         * m4/getnline.m4 (gl_GETNLINE): Drop AC_HEADER_STDC, now done by
81230         gl_GETNDELIM2.
81231
81232 2003-07-18  Bruno Haible  <bruno@clisp.org>
81233
81234         * lib/getndelim2.h: New file.
81235         * lib/getndelim2.c: Make into a module of its own. Include config.h,
81236         getndelim2.h.
81237         (getndelim2): Make non-static. Change return type to ssize_t.
81238         * lib/getline.h: Change argument names.
81239         * lib/getline.c: Include getndelim2.h instead of getndelim2.c.
81240         * lib/getnline.c: Include getndelim2.h.
81241
81242 2003-07-18  Andreas Schwab  <schwab@suse.de>
81243
81244         * lib/memcoll.c (memcoll) [!HAVE_STRCOLL]: Clear errno.
81245
81246 2003-07-17  Karl Berry  <karl@gnu.org>
81247
81248         * config/config.sub: update from prep.
81249
81250 2003-07-17  Bruno Haible  <bruno@clisp.org>
81251
81252         * modules/getnline: New file.
81253         * modules/getline: Add lib/getndelim2.c to source file list.
81254         * MODULES.html.sh (func_all_modules): Add getnline.
81255
81256 2003-07-17  Bruno Haible  <bruno@clisp.org>
81257
81258         * m4/getnline.m4: New file.
81259
81260 2003-07-17  Bruno Haible  <bruno@clisp.org>
81261
81262         * m4/Makefile.am.in: Remove file.
81263         * m4/Makefile.am: Remove file.
81264         * m4/Makefile.in: Remove file.
81265
81266 2003-07-17  Bruno Haible  <bruno@clisp.org>
81267
81268         * lib/getnline.h: New file.
81269         * lib/getnline.c: New file.
81270         * lib/getndelim2.c: New file, extracted from getline.c.
81271         (getndelim2): Renamed from getdelim2, with added nmax argument.
81272         * lib/getline.c: Include getndelim2.c.
81273         (getdelim2): Moved out to getndelim2.c.
81274         (getline, getdelim): Update.
81275
81276 2003-07-17  Bruno Haible  <bruno@clisp.org>
81277
81278         * lib/Makefile.am: Remove file.
81279         * lib/Makefile.in: Remove file.
81280
81281 2003-07-17  Bruno Haible  <bruno@clisp.org>
81282
81283         * configure.in: Remove file.
81284         * Makefile.in: Remove file.
81285
81286 2003-07-17  Bruno Haible  <bruno@clisp.org>
81287
81288         * MODULES.html.sh: Put the </BODY> right before </HTML>.
81289
81290 2003-07-16  Karl Berry  <karl@gnu.org>
81291
81292         * config/srclist-update: was running fixlicense twice, which caused
81293                 texinfo.tex to be nullified for some reason.  Simplify,
81294                 $gplsrc is no longer needed as far as I can see?
81295
81296 2003-07-16  Jim Meyering  <jim@meyering.net>
81297
81298         * modules/save-cwd: Depend on xgetcwd.  From Derek Price.
81299
81300 2003-07-15  Paul Eggert  <eggert@twinsun.com>
81301
81302         * config/srclist.txt: Get the following files from gettext-runtime/intl
81303         instead: config.charset, localcharset.c, localcharset.h, ref-add.sin,
81304         ref-del.sin.  From Bruno Haible.
81305         * config/srclist-update (fixfile): Change grep pattern again, since the
81306         previous fix didn't work (there was another trailing $).  Use
81307         '[$]' to escape the $s.
81308
81309 2003-07-15  Karl Berry  <karl@gnu.org>
81310
81311         * lib/vasnprintf.c: update from gettext.
81312
81313 2003-07-15  Karl Berry  <karl@gnu.org>
81314
81315         * config/srclist-update (fixfile): Change grep pattern, since 'Id'
81316         gets expanded when surrounded by '$'.
81317
81318 2003-07-15  Jim Meyering  <jim@meyering.net>
81319
81320         * modules/save-cwd: Don't depend on error.  From Derek Price.
81321
81322 2003-07-15  Jim Meyering  <jim@meyering.net>
81323
81324         * lib/makepath.c (make_path): Enclose diagnostic in _(...).
81325
81326 2003-07-14  Simon Josefsson  <jas@extundo.com>
81327
81328         * modules/mempcpy: New file.
81329         * MODULES.html.sh (func_all_modules): Add mempcpy.
81330
81331 2003-07-14  Simon Josefsson  <jas@extundo.com>
81332
81333         * m4/mempcpy.m4: New file.
81334
81335 2003-07-14  Simon Josefsson  <jas@extundo.com>
81336
81337         * lib/mempcpy.h: New file.
81338         * lib/mempcpy.c: New file.
81339
81340 2003-07-14  Paul Eggert  <eggert@twinsun.com>
81341
81342         * modules/getdate, modules/posixtm: Depend on mktime.
81343
81344 2003-07-14  Paul Eggert  <eggert@twinsun.com>
81345
81346         * lib/ceill.c, expl.c, floorl.c, frexpl.c, ldexpl.c, mathl.h,
81347         sincosl.c, sqrtl.c, trigl.c, trigl.h, poll.c, poll_.h, mkstemp.c,
81348         unicodeio.c, unicodeio.h, unlocked-io.h:
81349         Switch from LGPL to GPL.
81350
81351 2003-07-14  Paul Eggert  <eggert@twinsun.com>
81352
81353         * lib/asnprintf.c, asprintf.c, config.charset, gettext.h,
81354         localcharset.c, localcharset.h, mkdtemp.c, printf-args.c,
81355         printf-args.h, printf-parse.c, printf-parse.h, ref-add.sin,
81356         ref-del.sin, setenv.c, unsetenv.c, vasnprintf.c, vasnprintf.h,
81357         vasprintf.c, vasprintf.h: Regenerate.  These files are now being
81358         updated automatically by ../config/srclist-update.  This changes
81359         their license from LPGL to GPL.
81360
81361 2003-07-14  Paul Eggert  <eggert@twinsun.com>
81362
81363         * config/srclist.txt: Add tons more gettext files.  $GETTEXT is now
81364         assumed to refer to the root of the most recent stable gettext version.
81365         * config/srclistvars.sh: Add defaults for eggert.
81366         * config/srclist-update: Convert LGPL to GPL in shell scripts, too.
81367         Match "This program" as well as "The program".  This is needed
81368         for gettext.
81369
81370 2003-07-14  Jim Meyering  <jim@meyering.net>
81371
81372         Don't emit diagnostics.  Let callers do that.
81373         * lib/save-cwd.c: Don't include "error.h".
81374         (save_cwd): Don't call error.  Ensure that errno is valid
81375         when returning nonzero.
81376
81377         * lib/save-cwd.h (restore_cwd): Update prototype.
81378         * lib/save-cwd.c (restore_cwd): Remove two parameters.
81379         Simplify.  Don't call error upon failure.  Let callers do that.
81380         (save_cwd): Mention that Irix 5.3 has the same problem as SunOS 4
81381         when auditing is enabled.  But don't bother updating the #if.
81382
81383 2003-07-11  Alexandre Duret-Lutz  <adl@gnu.org>
81384
81385         * lib/obstack.h (__INT_TO_PTR): Revert change of 2003-03-13;
81386         it breaks C++ compilation.
81387         [!__GNUC__ || !__STDC__] (obstack_finish): Cast result to void*.
81388
81389 2003-07-10  Simon Josefsson  <jas@extundo.com>
81390
81391         * modules/strchrnul (Makefile.am): Add strchrnul.h.
81392
81393 2003-07-10  Jim Meyering  <jim@meyering.net>
81394
81395         * m4/clock_time.m4: Remove trailing blank.
81396         * m4/intmax_t.m4: Likewise.
81397
81398 2003-07-10  Jim Meyering  <jim@meyering.net>
81399
81400         * lib/vasnprintf.c: Remove trailing blanks.
81401         Make cpp indentation consistent.
81402
81403 2003-07-09  Paul Eggert  <eggert@twinsun.com>
81404
81405         * lib/alloca_.h, euidaccess.c, getpass.c, memrchr.c, obstack.h,
81406         posixver.c, strftime.c, strnlen.c, strverscmp.c:
81407         Switch from LGPL to GPL.
81408
81409 2003-07-09  Paul Eggert  <eggert@twinsun.com>
81410
81411         * config/srclist.txt: Sort sublists.  Add
81412         $LIBCSRC/sysdeps/generic/strtoul.c. In comments, add more libc files
81413         that differ from gnulib for one reason or another; we'd like this list
81414         to be smaller but for now let's document what we have.
81415
81416 2003-07-08  Paul Eggert  <eggert@twinsun.com>
81417
81418         * config/srclist-update: Port to POSIX 1003.1-2001 hosts by avoiding
81419         the use of GNU extensions.  Change "x=`eval echo $x`" to the shorter
81420         and sweeter "eval x=$x".
81421         * config/srclist.txt: Get lib/argp* from glibc.
81422
81423 2003-07-07  Paul Eggert  <eggert@twinsun.com>
81424
81425         * lib/mktime.c: Fix some boundary cases and remove need for floating
81426         point.
81427
81428         Issue a compile-time diagnostic if time_t is floating point, or if
81429         two's complement arithmetic is not in effect, or if arithmetic
81430         right shift does not propagate the sign.  These assumptions were
81431         all in the original code but they weren't checked.
81432
81433         (TIME_T_MIDPOINT, verify): New macros.
81434         (__isleap): Remove; it has integer overflow problems.
81435         (leapyear): New function, without those problems.
81436         (ydhms_tm_diff): Remove; splitting into two parts.
81437         (ydhms_diff): New function, containing the arithmetic part of
81438         the old ydhms_tm_diff function.  Issue a compile-time
81439         diagnostic if we are not using C99 integer division.
81440         Avoid casts when possible.
81441         (guess_time_tm): New function, containing the checking part of
81442         the old ydhms_tm_diff function.  Return the new value, rather than
81443         the difference between it and the old.  Accept a new argument T
81444         so that *T specifies the old value.  Check for overflow in the result.
81445
81446         (__mktime_internal): Use a time_t offset, not a long int offset.
81447         This undoes the 2003-06-04 change, which is no longer needed now
81448         that we have better overflow checking.
81449         (localtime_offset): Likewise.
81450
81451         (__mktime_internal): Avoid harmful overflow on hosts where time_t
81452         and long are 64-bit but int is only 32-bit.
81453         (ydhms_diff): Use long int to store year1 and yday1.
81454         Issue a compile-time diagnostic if long int is not wide enough.
81455
81456         (__mktime_internal): Use long int to store adjusted year and yday.
81457         Use plain C rather than preprocessor commands, if that doesn't
81458         affect efficiency.
81459         Check for overflow (and try to repair) after each probe
81460         rather than checking only at the very end.  This avoids some bugs
81461         (e.g., southern hemisphere, behind GMT, and GMT offset at minimum time
81462         does not equal GMT offset at maximum time).
81463         Use integer to check for overflow rather than floating point; this
81464         is more portable to non-IEEE hosts, and is a tad faster.
81465         When we detect that we are oscillating between two values,
81466         don't check whether tm_isdst has the requested value, since
81467         we already know the answer.  When tm_isdst has the wrong value,
81468         use a different heuristic to find the right one, based on the
81469         extreme values actually observed in practice in tz2003a,
81470         rather than the (overly optimistic) "previous 3 calendar quarters".
81471
81472         (not_equal_tm, print_tm, check_result): Use "const T" rather than
81473         "T const" to accommodate glibc style.
81474         (check_result): Use less-confusing report format.  "long" -> "long int.
81475         (main): Likewise.
81476         Don't loop if the iteration overflows time_t.
81477         Allow a negative step in the iteration.
81478
81479 2003-07-06  Karl Berry  <karl@gnu.org>
81480
81481         * config/depcomp: update from automake.
81482         * config/config.sub: update from prep.
81483
81484 2003-07-03  Karl Berry  <karl@gnu.org>
81485
81486         * config/config.guess: update from prep.
81487
81488 2003-07-01  Paul Eggert  <eggert@twinsun.com>
81489
81490         * m4/xreadlink.m4 (gl_XREADLINK): Don't check for sys/types.h, since
81491         xreadlink.c now includes it unconditionally.
81492
81493 2003-07-01  Paul Eggert  <eggert@twinsun.com>
81494
81495         * lib/xreadlink.c: Include <sys/types.h> unconditionally, instead of
81496         having it depend on HAVE_SYS_TYPES_H.
81497
81498 2003-07-01  Bruno Haible  <bruno@clisp.org>
81499
81500         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Don't include <unistd.h>.
81501         <sys/types.h> should be sufficient.
81502         Reported by Paul Eggert.
81503
81504 2003-06-26  Karl Berry  <karl@gnu.org>
81505
81506         * config/depcomp: update from automake.
81507
81508 2003-06-26  Bruno Haible  <bruno@clisp.org>
81509
81510         * modules/human: Depend on module stdbool.
81511
81512 2003-06-25  Bruno Haible  <bruno@clisp.org>
81513
81514         * modules/readlink: New file.
81515         * modules/xreadlink: Depend on it.
81516         * MODULES.html.sh (func_all_modules): Add readlink.
81517
81518 2003-06-25  Bruno Haible  <bruno@clisp.org>
81519
81520         * m4/readlink.m4: New file.
81521
81522 2003-06-25  Bruno Haible  <bruno@clisp.org>
81523
81524         * lib/readlink.c: New file.
81525
81526 2003-06-22  Karl Berry  <karl@gnu.org>
81527
81528         * config/srclist.txt: update mkinstalldirs from automake.
81529         * config/mkinstalldirs: update.
81530
81531 2003-06-22  Bruno Haible  <bruno@clisp.org>
81532
81533         Portability to mingw32.
81534         * m4/ssize_t.m4: New file, from GNU gettext.
81535         * m4/safe-read.m4 (gl_PREREQ_SAFE_READ): Require gt_TYPE_SSIZE_T.
81536         * m4/xreadlink.m4 (gl_XREADLINK): Require gt_TYPE_SSIZE_T.
81537
81538 2003-06-22  Bruno Haible  <bruno@clisp.org>
81539
81540         * modules/safe-read: Add m4/ssize_t.m4.
81541         * modules/xreadlink: Add m4/ssize_t.m4.
81542
81543 2003-06-20  Bruno Haible  <bruno@clisp.org>
81544
81545         Assume C89, so PARAMS isn't needed.
81546         * lib/unicodeio.h (PARAMS): Remove.
81547         * lib/unicodeio.c: Don't use PARAMS.
81548
81549 2003-06-18  Karl Berry  <karl@gnu.org>
81550
81551         * config/config.{guess,sub}: update from prep.
81552
81553 2003-06-18  Jim Meyering  <jim@meyering.net>
81554
81555         Merge changes from coreutils.
81556         * lib/readutmp.c: Include <string.h> and <stdlib.h> unconditionally.
81557         Remove explicit declarations of xmalloc and realloc.
81558         Include xalloc.h.
81559         (read_utmp): Remove anachronistic cast of xmalloc.
81560
81561 2003-06-17  Paul Eggert  <eggert@twinsun.com>
81562
81563         Assume C89, so PARAMS isn't needed.
81564         * lib/backupfile.h (PARAMS): Remove.  All uses removed.
81565         * lib/closeout.h, lib/dirname.h, lib/filemode.h, lib/fsusage.h,
81566         lib/getdate.h, lib/getline.h, lib/group-member.h, lib/hard-locale.h,
81567         lib/hash.h, lib/linebuffer.h, lib/long-options.h, lib/makepath.h,
81568         lib/memcasecmp.h, lib/memcoll.h, lib/modechange.h, lib/mountlist.h,
81569         lib/path-concat.h, lib/physmem.h, lib/posixtm.h, lib/quote.h,
81570         lib/readutmp.h, lib/same.h, lib/save-cwd.h, lib/savedir.h,
81571         lib/stdio-safer.h, lib/strtoimax.c, lib/strverscmp.h,
81572         lib/unistd-safer.h, lib/version-etc.h, lib/xalloc.h, lib/xreadlink.h,
81573         lib/xstrtod.h, lib/xstrtol.h: Likewise.
81574         * lib/filemode.h, lib/hard-locale.h, lib/memcoll.h, lib/modechange.h,
81575         lib/physmem.h, lib/same.h, lib/strverscmp.h: Do not include config.h;
81576         no longer needed. Anyway, config.h should always be included before any
81577         other file.
81578
81579 2003-06-11  Simon Josefsson  <jas@extundo.com>
81580
81581         * modules/sysexits: New file.
81582         * MODULES.html.sh (func_all_modules): Add sysexits.
81583
81584 2003-06-11  Simon Josefsson  <jas@extundo.com>
81585
81586         * lib/sysexit_.h: New file.
81587
81588 2003-06-11  Derek Price  <derek@ximbiot.com>
81589
81590         * lib/stat.c [LSTAT]: Compile/use slash_aware_lstat only if it is
81591         necessary.
81592
81593 2003-06-11  Bruno Haible  <bruno@clisp.org>
81594
81595         * m4/sysexits.m4: New file.
81596
81597 2003-06-10  Simon Josefsson  <jas@extundo.com>
81598
81599         * lib/argp.h: New file, from glibc.
81600         * lib/argp-ba.c: New file, from glibc.
81601         * lib/argp-eexst.c: New file, from glibc.
81602         * lib/argp-fmtstream.c: New file, from glibc.
81603         * lib/argp-fmtstream.h: New file, from glibc.
81604         * lib/argp-fs-xinl.c: New file, from glibc.
81605         * lib/argp-help.c: New file, from glibc.
81606         * lib/argp-namefrob.h: New file, from glibc.
81607         * lib/argp-parse.c: New file, from glibc.
81608         * lib/argp-pv.c: New file, from glibc.
81609         * lib/argp-pvh.c: New file, from glibc.
81610         * lib/argp-xinl.c: New file, from glibc.
81611
81612 2003-06-10  Simon Josefsson  <jas@extundo.com>
81613
81614         * modules/strchrnul: New file.
81615
81616 2003-06-10  Simon Josefsson  <jas@extundo.com>
81617
81618         * modules/argp: New file.
81619
81620 2003-06-10  Simon Josefsson  <jas@extundo.com>
81621
81622         * m4/strchrnul.m4: New file.
81623
81624 2003-06-10  Simon Josefsson  <jas@extundo.com>
81625
81626         * lib/strchrnul.h: New file.
81627         * lib/strchrnul.c: New file.
81628
81629 2003-06-10  Bruno Haible  <bruno@clisp.org>
81630
81631         * MODULES.html.sh (func_all_modules): Add strchrnul and argp.
81632
81633 2003-06-07  Karl Berry  <karl@gnu.org>
81634
81635         * config/config.{guess,sub}: update from prep.
81636
81637 2003-06-07  Jim Meyering  <jim@meyering.net>
81638
81639         * modules/strtod: Use $(...) notation, not @...@ for
81640         AC_REPLACE'd variables.
81641         * modules/localcharset: Likewise.
81642
81643 2003-06-07  Jim Meyering  <jim@meyering.net>
81644
81645         * lib/readtokens.h: Put `Free Software Foundation, Inc.'
81646         in place of my name in the copyright comment.
81647         Remove definition and uses of __P.
81648
81649         From coreutils.
81650         * lib/stat.c: Don't declare xmalloc explicitly.
81651         Instead, include "xalloc.h".
81652         * lib/readtokens.c (readtokens): Remove anachronistic casts of xmalloc,
81653         xrealloc, and xcalloc return values.
81654         * lib/xgetcwd.c (xgetcwd): Include "xgetcwd.h".
81655         Improve comment.
81656         * lib/xgetcwd.h: Remove definition/uses of PARAMS.
81657
81658 2003-06-07  Bruno Haible  <bruno@clisp.org>
81659
81660         * modules/poll (Makefile.am): Use explicit creation rule for poll.h, to
81661         avoid AC_CONFIG_LINKS.
81662         * modules/fnmatch (Makefile.am): Use explicit creation rule for
81663         fnmatch.h, to avoid AC_CONFIG_LINKS.
81664         * modules/alloca (Makefile.am): Make creation of alloca.h Ctrl-C safe.
81665
81666 2003-06-07  Bruno Haible  <bruno@clisp.org>
81667
81668         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH, gl_FUNC_FNMATCH_POSIX,
81669         gl_FUNC_FNMATCH_GNU): Set FNMATCH_H instead of invoking
81670         AC_CONFIG_LINKS. Needed to allow for a different name of the lib
81671         directory.
81672         * m4/poll.m4 (gl_FUNC_POLL): Set POLL_H instead of invoking
81673         AC_CONFIG_LINKS. Needed to allow for a different name of the lib
81674         directory.
81675
81676 2003-06-06  Jim Meyering  <jim@meyering.net>
81677
81678         Merge from coreutils.
81679         * lib/same.c: (same_name): Declare *_basename locals to be `const'.
81680         Consolidate declarations and initializations of *_base* locals.
81681
81682         Merge from coreutils.
81683         This avoids a core dump on systems without GNU putenv,
81684         when running `env -u SOME_ALREADY_UNSET_VARIABLE'.
81685         * lib/putenv.c (__set_errno, LOCK, UNLOCK): Define.
81686         (unsetenv): New static function, from GNU libc.
81687         (rpl_putenv): Use it.
81688
81689         * lib/modechange.c: Remove trailing blanks.
81690
81691         Merge from coreutils.
81692         * lib/fsusage.c: Remove declaration of statfs.
81693         It conflicted with one from OSF/1 5.1 in <sys/mount.h>.
81694
81695         * lib/posixtm.c: Include <stdbool.h> unconditionally.
81696
81697 2003-06-06  Jim Meyering  <jim@meyering.net>
81698
81699         * lib/stdbool_.h: Renamed from stdbool.h.in.
81700
81701 2003-06-06  Jim Meyering  <jim@meyering.net>
81702             Bruno Haible  <bruno@clisp.org>
81703
81704         * modules/stdbool: Reflect renaming: stdbool.h.in -> stdbool_.h.
81705         Adjust Makefile.am snippet not to redirect directly to target.
81706         Use $(STDBOOL_H) notation, not @STDBOOL_H@ for AC_REPLACE'd variables.
81707
81708 2003-06-05  Paul Eggert  <eggert@twinsun.com>
81709
81710         * lib/mktime.c (__mktime_internal): When resolving a tm_isdst
81711         mismatch, look in future quarters as well as past.  This fixes a
81712         bug when processing fall-backwards gaps immediately after a long
81713         period of daylight-saving time.
81714
81715         * lib/mktime.c: Assume freestanding C89 or better.
81716         (HAVE_LIMITS_H): Remove.  Assume it's 1.
81717         (__P): Remove; not used.
81718         (CHAR_BIT, INT_MIN, INT_MAX): Remove; <limits.h> defines them.
81719         (mktime, not_equal_tm, print_tm, check_result,
81720         main): Use prototypes.  Use const * where appropriate.
81721         (main): Fix typo in testing code that uncovered by above changes.
81722         (Local Variables): Remove -DHAVE_LIMITS_H from compile-command.
81723
81724 2003-06-04  Paul Eggert  <eggert@twinsun.com>
81725
81726         * m4/human.m4 (gl_HUMAN): Require AM_STDBOOL_H.  Check for
81727         locale.h, localeconv.  This merges changes from coreutils.
81728
81729         * m4/mktime.m4 (AC_FUNC_MKTIME): New macro, taken from Autoconf CVS.
81730         It can be removed after the next Autoconf is released.
81731         * m4/exclude.m4 (gl_EXCLUDE): Don't check for sys/types.h; no loner
81732         needed.
81733
81734 2003-06-04  Paul Eggert  <eggert@twinsun.com>
81735
81736         * lib/mktime.c: Fix Debian bug 177940
81737         <http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=177940>.
81738         (localtime_offset): Now long int, not time_t, because we want it
81739         to be guaranteed to be signed.  All uses changed.
81740         (__mktime_internal): If overflow would occur when adding offset,
81741         don't add it.
81742
81743         Merge 'human' changes from coreutils.  Rewrite to support
81744         locale-specific notations like thousands separators.
81745         * lib/human.c: Simplify authorship notice.
81746         Include human.h immediately after config.h.
81747         <sys/types.h>, <stdio.h>: Do not include; no longer needed.
81748         <limits.h>: Do not include, since human.h does.
81749         (SIZE_MAX, UINTMAX_MAX): New macros.
81750         <strings.h>: Include if HAVE_STRINGS_H, not if !HAVE_STRING_H.
81751         <locale.h>: Include if HAVE_LOCALE_H and HAVE_LOCALECONV.
81752         (HUMAN_READABLE_SUFFIX_LENGTH_MAX): New macro.
81753         (power_letter): Renamed from suffixes.
81754         (generate_suffix_backwards): Remove.
81755         (adjust_value): Now takes int style (because of human.h changes)
81756         and long double value (for greater precision on some platforms).
81757         (group_number): New function.
81758         (human_readable): Use it.  Use integer options, not enum.
81759         Put the options before the sizes in the arg list.
81760         Support all the new options.
81761         The old human_readable function has been removed;
81762         use inttostr.h instead.
81763         (human_readable, default_block_size, humblock):
81764         Use uintmax_t, not int, for block sizes.
81765         (human_readable_inexact, block_size_types): Remove.
81766         (block_size_opts): New constant.
81767         (human_options): Renamed from human_block_size, with new signature
81768         that allows block sizes up to UINTMAX_MAX.  All callers changed.
81769         * lib/human.h: Add copyright and authorship notice.
81770         Include <limits.h> and <stdbool.h> unconditionally.
81771         (PARAMS): Remove.  All uses removed.
81772         (LONGEST_HUMAN_READABLE): Add support for thousands separator.
81773         (enum human_inexact_style): Remove tag; now a nameless enum.
81774         (human_floor, human_ceiling, human_round_to_even): Now have
81775         values 2, 0, 1 rather than -1, 1, 0.
81776         (human_group_digits, human_suppress_point_zero, human_autoscale,
81777         human_base_1024, human_SI, human_B): New constants.
81778         (human_readable_inexact, human_block_size): Remove.
81779         (human_readable): Size args are now uintmax_t, not int.
81780         (human_options): New decl.
81781
81782         * lib/exclude.c: (new_exclude, add_exclude): Remove casts that are
81783         unnecessary now that we assume C89 or better.  This change
81784         imported from coreutils.
81785
81786         * lib/mktime.c (__mktime_internal): Do not reject negative timestamps
81787         arbitrarily.  This is the same patch as 2003-05-28, but it got lost
81788         in the 2003-05-30 sync from glibc.
81789
81790         .h files should stand alone, but we shouldn't include <sys/types.h>
81791         if we can get away with just <stddef.h>.
81792
81793         * lib/__fpending.h, addext.c, backupfile.c, exclude.c, getline.c,
81794         malloc.c, putenv.c, realloc.c, strcasecmp.c: Include <stddef.h>
81795         rather than <sys/types.h>, as we merely need size_t.
81796         * lib/dirname.h, memcoll.h, xalloc.h, xmemcoll.h: Include <stddef.h>,
81797         to get size_t.
81798         * lib/hash.h, linebuffer.h, readtokens.h, stdio-safer.h, version-etc.h:
81799         Include <stdio.h>, to get FILE.
81800         * lib/memcasecmp.c: Don't include <sys/types.h>, as we can assume
81801         memcasecmp.h has included <stddef.h> and all we need is size_t.
81802         * lib/memcoll.c: Include "memcoll.h", which gets us size_t and checks
81803         our interface, instead of including <sys/types.h>
81804
81805 2003-06-04  Paul Eggert  <eggert@twinsun.com>
81806
81807         * config/srclist.txt ($LIBCSRC/time/mktime.c lib gpl): Comment out for
81808         now, as glibc mktime is buggy on non-glibc systems.
81809
81810 2003-06-03  Karl Berry  <karl@gnu.org>
81811
81812         * config/config.sub: update from prep.
81813
81814 2003-06-02  Paul Eggert  <eggert@twinsun.com>
81815
81816         [from coreutils]
81817         Fix some minor time-related bugs with POSIX time arguments.
81818         Some valid time stamps were being rejected (notably -1, and
81819         time stamps before 1900 on 64-bit hosts).  And some invalid
81820         time stamps were being accepted, e.g. September 31.
81821
81822         * lib/posixtm.h (posixtime): Return bool instead of time_t, so
81823         that we can return (time_t) -1 successfully.
81824         * lib/posixtm.c: Likewise.
81825         [HAVE_STDBOOL_H]: Include <stdbool.h>.
81826         (bool, false, true) [!HAVE_STDBOOL_H]: New type.
81827         (t): Remove static var.
81828         (year, posix_time_parse): Now takes struct tm * arg to modify, instead
81829         of static var.  All uses changed.
81830         (year): Do not reject years before 1900; they can occur with
81831         64-bit time_t.
81832         (posix_time_parse): Do not check for out-of-range components;
81833         that is now the caller's responsibility, since our checks were
81834         only approximations.
81835         (posixtime): Use mktime to check for out-of-range components,
81836         since it knows them exactly.
81837         If mktime returns (time_t) -1, check whether an error actually occurred
81838         by invoking localtime on -1.
81839         (main) [TEST_POSIXTIME]: Check for input data errors, and report
81840         posixtime failures better.
81841         Improve the test data (in comments only).
81842
81843 2003-06-02  Karl Berry  <karl@gnu.org>
81844
81845         * config/mkinstalldirs (version): new variable.
81846         (--version): new option.
81847         (usage): improve message.
81848
81849 2003-05-30  Karl Berry  <karl@gnu.org>
81850
81851         * lib/mktime.c: update from libc.
81852
81853 2003-05-30  Bruno Haible  <bruno@clisp.org>
81854
81855         * modules/gettext: Add files m4/nls.m4 and m4/po.m4.
81856         * config/config.rpath: Upgrade to gettext-0.12.1.
81857
81858 2003-05-30  Bruno Haible  <bruno@clisp.org>
81859
81860         * m4/gettext.m4: Upgrade to gettext-0.12.1.
81861         * m4/nls.m4: New file, from gettext-0.12.1.
81862         * m4/po.m4: New file, from gettext-0.12.1.
81863         * m4/progtest.m4: Upgrade to gettext-0.12.1.
81864
81865 2003-05-30  Bruno Haible  <bruno@clisp.org>
81866
81867         * lib/config.charset: Upgrade to gettext-0.12.1 and libiconv-1.9.1.
81868         * lib/localcharset.h: Likewise.
81869         * lib/localcharset.c: Likewise.
81870
81871 2003-05-29  Karl Berry  <karl@gnu.org>
81872
81873         * config/config.rpath: update from gettext.
81874
81875 2003-05-28  Paul Eggert  <eggert@twinsun.com>
81876
81877         Assume the headers required for C89 freestanding compilers.
81878         * m4/backupfile.m4 (gl_BACKUPFILE): Don't check for limits.h.
81879         * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Likewise.
81880         * m4/human.m4 (gl_HUMAN): Likewise.
81881         * m4/pathmax.m4 (gl_PATHMAX): Likewise.
81882         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Likewise.
81883         * m4/userspec.m4 (gl_USERSPEC): Likewise.
81884         * m4/xreadlink.m4 (gl_XREADLINK): Likewise.
81885         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
81886         * m4/quote.m4 (gl_QUOTE): Don't check for stddef.h.
81887
81888 2003-05-28  Paul Eggert  <eggert@twinsun.com>
81889
81890         Assume the headers required for C89 freestanding compilers.
81891         * lib/addext.c, lib/backupfile.c, lib/fsusage.c, lib/human.c,
81892         lib/pathmax.h, lib/rpmatch.c, lib/userspec.c, lib/xreadlink.c,
81893         lib/xstrtol.c: Include <limits.h> without checking for HAVE_LIMITS_H.
81894         * lib/backupfile.c, lib/fsusage.c, lib/hash.c, lib/human.c,
81895         lib/safe-read.c, lib/userspec.c, lib/xstrtol.c (CHAR_BIT): Don't
81896         define, since <limits.h> is guaranteed to do that.
81897         * lib/fatal.c: Include <stdarg.h> without checking for __STDC__.
81898         * lib/exclude.c: Include <stdbool.h> unconditionally.
81899         * lib/tempname.c: Include <stddef.h> unconditionally.
81900         * lib/hash.c: Include <limits.h>, since we no longer define CHAR_BIT.
81901         * lib/modechange.c, rpmatch.c (NULL): Don't define, since
81902         <stddef.h> does that.
81903         * lib/quote.c: Dont include <stddef.h> or <sys/types.h>; not needed.
81904         * lib/safe-read.c (INT_MAX): Don't define, since <limits.h> does that.
81905         * lib/safe-read.c (TYPE_MINIMUM, TYPE_MAXIMUM): Remove; no longer
81906         needed.
81907         * lib/xstrtol.c: Likewise.
81908         * lib/safe-read.c: Remove TYPE_SIGNED; no longer needed.
81909         * lib/savedir.c: Include <stddef.h> instead of defining NULL.
81910
81911         * lib/addext.c (addext): Use assignment rather than cast, to avoid
81912         warnings on some platforms.
81913
81914         * lib/mktime.c (__mktime_internal): Do not reject negative timestamps
81915         arbitrarily.
81916
81917 2003-05-26  Jim Meyering  <jim@meyering.net>
81918
81919         Merge in a change from coreutils:
81920         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Test the cache variable, not one
81921         that is guaranteed to be `no'.  Use `no_such_member' to indicate
81922         that condition, rather than `-1' which is slightly misleading.
81923         Change the name of the cache variable to have the gl_ prefix.
81924         Prompted by a patch from Richard Dawe for DJGPP.
81925
81926 2003-05-24  Karl Berry  <karl@gnu.org>
81927
81928         * config/config.guess: update from prep.
81929
81930 2003-05-22  Karl Berry  <karl@gnu.org>
81931
81932         * gnulib-tool (func_usage): =LIBRARY not =libRARY in help msg.
81933
81934 2003-05-20  Karl Berry  <karl@gnu.org>
81935
81936         * config/config.guess: update from prep.
81937
81938 2003-05-18  Karl Berry  <karl@gnu.org>
81939
81940         * config/srclistvars.sh (TEXMF): use TEXMFROOT instead, since TEXMF
81941         might actually be set by the user.
81942
81943         * config/depcomp, install-sh, mdate-sh: update from automake.
81944
81945 2003-05-17  Bruno Haible  <bruno@clisp.org>
81946
81947         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Fix a quoting bug leading to an
81948         invalid expansion for AC_EGREP_CPP.
81949         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Likewise.
81950         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
81951         Suggested by Akim Demaille <akim@epita.fr> in
81952         http://mail.gnu.org/archive/html/bug-autoconf/2003-05/threads.html
81953
81954 2003-05-12  Jim Meyering  <jim@meyering.net>
81955
81956         * lib/strftime.c (my_strftime): Let the `-' (no-pad) flag affect
81957         the space-padded-by-default conversion specifiers, %e, %k, %l.
81958
81959 2003-05-12  Bruno Haible  <bruno@clisp.org>
81960
81961         * lib/linebreak.c (iconv_string_length): Don't return -1 just because
81962         the string is longer than 4 KB.
81963
81964 2003-05-11  Karl Berry  <karl@gnu.org>
81965
81966         * config/config.{guess,sub}: update from prep.
81967
81968 2003-05-09  Bruno Haible  <bruno@clisp.org>
81969
81970         * modules/error: Add m4/strerror_r.m4 to file list.
81971
81972 2003-05-03  Bruno Haible  <bruno@clisp.org>
81973
81974         Upgrade to Unicode-4.0.
81975         * lib/linebreak.c (nonspacing_table_data): Change width of U+00AD,
81976         U+0350..U+0357, U+035D..U+035F, U+0600..U+0603, U+0610..U+0615,
81977         U+0656..U+0658, U+0A01, U+0AE2..U+0AE3, U+0CBC, U+17B4..U+17B5,
81978         U+17DD, U+1920..U+1922, U+1927..U+192B, U+1932, U+1939..U+193B
81979         from 1 to 0. Change width of U+0CBF, U+0CC6, U+180E from 0 to 1.
81980         (uc_width): Change width of U+4DC0..U+4DFF from 2 to 1. Change width
81981         of U+2A6D7..U+2F7FF, U+2FA1E..U+2FFFD, U+30000..U+3FFFD from 1 to 2.
81982         Change width of U+E0100..U+E01EF from 1 to 0.
81983
81984 2003-04-25  Jim Meyering  <jim@meyering.net>
81985
81986         * lib/copy-file.c (copy_file_preserving): Declare buf_size to be
81987         of type size_t, not int.
81988
81989 2003-04-25  Bruno Haible  <bruno@clisp.org>
81990
81991         * lib/copy-file.c: Include <stddef.h>, for size_t.
81992
81993 2003-04-21  Paul Eggert  <eggert@twinsun.com>
81994
81995         * m4/error.m4 (gl_ERROR): Do not put under dynamic conditions some
81996         code which expansion is under static control.  Patch imported from
81997         Akim Demaille's patch to Bison; see
81998         <http://mail.gnu.org/archive/html/bison-patches/2003-03/msg00057.html>.
81999
82000 2003-04-14  Bruno Haible  <bruno@clisp.org>
82001
82002         * m4/error.m4 (jm_PREREQ_ERROR): Use AC_FUNC_VPRINTF.
82003
82004 2003-04-11  Jim Meyering  <jim@meyering.net>
82005
82006         Merge changes from Coreutils.
82007
82008         2003-03-22  Jim Meyering  <jim@meyering.net>
82009
82010         * lib/strftime.c (widen): Cast alloca return value to proper type.
82011
82012         2003-01-19  Ulrich Drepper  <drepper@redhat.com>
82013
82014         From GNU libc.
82015         * lib/strftime.c (my_strftime): Handle very large width
82016         specifications for numeric values correctly.  Improve checks for
82017         overflow.
82018
82019         2003-01-19  Jim Meyering  <jim@meyering.net>
82020
82021         * lib/strftime.c (widen) [COMPILE_WIDE]: Merge nearly-identical
82022         definitions.
82023         (nl_get_alt_digit) [! defined my_strftime]: Define.
82024         (my_strftime) [_NL_CURRENT]: Merge nearly-identical uses of
82025         _nl_get_alt_digit and _nl_get_walt_digit.
82026
82027         * lib/strftime.c (my_strftime): Merge in locale-related changes from
82028         libc. These changes have no effect outside of _LIBC.
82029
82030 2003-04-10  Bruno Haible  <bruno@clisp.org>
82031
82032         * modules/findprog: New file.
82033         * MODULES.html.sh (func_all_modules): Add it.
82034
82035 2003-04-10  Bruno Haible  <bruno@clisp.org>
82036
82037         * m4/findprog.m4: New file.
82038         * m4/eaccess.m4: New file.
82039
82040 2003-04-10  Bruno Haible  <bruno@clisp.org>
82041
82042         * lib/findprog.h: New file, from GNU gettext.
82043         * lib/findprog.c: New file, from GNU gettext.
82044
82045 2003-04-05  Jim Meyering  <jim@meyering.net>
82046
82047         Merge changes from Coreutils.
82048
82049         * lib/exclude.h (PARAMS): Remove definition and uses.
82050         * lib/exclude.c: Remove uses of `PARAMS'.
82051
82052         * lib/dirname.c [TEST_DIRNAME]: Update build instructions for test.
82053         Add test-cases for DOS filenames. Declare program_name.
82054         (main): Set up program_name.  Patch by Rich Dawe.
82055
82056         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Detect any
82057         error from mntctl.
82058         Use mntctl's return value to drive the entry-processing loop, since
82059         we can't rely on the value of the vmt_length member in the last
82060         entry.  On some systems doing so could result in exhausting
82061         virtual memory.  Based in part on a patch from Mike Jetzer.
82062
82063 2003-04-04  Bruno Haible  <bruno@clisp.org>
82064
82065         * modules/linebreak: New file.
82066         * MODULES.html.sh (func_all_modules): Add it.
82067
82068 2003-04-04  Bruno Haible  <bruno@clisp.org>
82069
82070         * m4/linebreak.m4: New file.
82071
82072 2003-04-04  Bruno Haible  <bruno@clisp.org>
82073
82074         * lib/linebreak.h: New file, from GNU gettext.
82075         * lib/linebreak.c: New file, from GNU gettext with slight
82076         modifications.
82077         * lib/lbrkprop.h: New file, from GNU gettext.
82078
82079 2003-04-03  Bruno Haible  <bruno@clisp.org>
82080
82081         * modules/utf8-ucs4: New file.
82082         * modules/utf16-ucs4: New file.
82083         * modules/ucs4-utf8: New file.
82084         * modules/ucs4-utf16: New file.
82085         * MODULES.html.sh (func_all_modules): Add them.
82086
82087 2003-04-03  Bruno Haible  <bruno@clisp.org>
82088
82089         * m4/utf-ucs4.m4: New file.
82090         * m4/ucs4-utf.m4: New file.
82091
82092 2003-04-03  Bruno Haible  <bruno@clisp.org>
82093
82094         * lib/utf8-ucs4.h: New file, from GNU gettext.
82095         * lib/utf16-ucs4.h: New file, from GNU gettext.
82096         * lib/ucs4-utf8.h: New file, from GNU gettext.
82097         * lib/ucs4-utf16.h: New file, from GNU gettext.
82098
82099 2003-04-02  Bruno Haible  <bruno@clisp.org>
82100
82101         * modules/binary-io: New file.
82102         * MODULES.html.sh (func_all_modules): Add it.
82103
82104 2003-04-02  Bruno Haible  <bruno@clisp.org>
82105
82106         * lib/binary-io.h: New file, from GNU gettext.
82107
82108 2003-04-01  Bruno Haible  <bruno@clisp.org>
82109
82110         * modules/pathname: New file.
82111         * MODULES.html.sh (func_all_modules): Add it.
82112
82113 2003-04-01  Bruno Haible  <bruno@clisp.org>
82114
82115         * lib/pathname.h: New file, from GNU gettext.
82116         * lib/concatpath.c: New file, from GNU gettext.
82117
82118 2003-03-30  Bruno Haible  <bruno@clisp.org>
82119
82120         * m4/copy-file.m4 (gl_COPY_FILE): Add check for chown().
82121
82122 2003-03-30  Bruno Haible  <bruno@clisp.org>
82123
82124         * lib/copy-file.c (copy_file_preserving): Don't set owner if the
82125         function chown() doesn't exist.
82126
82127 2003-03-28  Bruno Haible  <bruno@clisp.org>
82128
82129         * modules/copy-file: New file.
82130         * MODULES.html.sh (func_all_modules): Add it.
82131
82132 2003-03-28  Bruno Haible  <bruno@clisp.org>
82133
82134         * m4/copy-file.m4: New file.
82135
82136 2003-03-28  Bruno Haible  <bruno@clisp.org>
82137
82138         * lib/copy-file.h: New file, from GNU gettext.
82139         * lib/copy-file.c: New file, from GNU gettext.
82140
82141 2003-03-18  Jim Meyering  <jim@meyering.net>
82142
82143         * lib/quote.c (quote_n): Fix typo in comment.
82144
82145 2003-03-18  Bruno Haible  <bruno@clisp.org>
82146
82147         * m4/onceonly.m4: Use m4_defn instead of defn, for better error
82148         checking.
82149         * m4/onceonly_2_57.m4: Likewise.
82150
82151 2003-03-17  Bruno Haible  <bruno@clisp.org>
82152
82153         * m4/onceonly.m4: Require autoconf 2.54 or newer.
82154         (m4_quote): Remove macro.
82155         * m4/onceonly_2_57.m4: Require autoconf 2.54 or newer.
82156
82157 2003-03-14  Jim Meyering  <jim@meyering.net>
82158
82159         Merge changes from Coreutils.
82160         * lib/obstack.h (obstack_object_size): Declare temporary, __o,
82161         to be const, in order to avoid warnings.
82162         (obstack_room): Likewise.
82163         (obstack_empty_p): Likewise.
82164
82165 2003-03-14  Bruno Haible  <bruno@clisp.org>
82166
82167         * m4/onceonly_2_57.m4 (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE,
82168         AC_CHECK_DECLS_ONCE): Quote AC_FOREACH variable-expansions properly.
82169
82170 2003-03-13  Paul Eggert  <eggert@twinsun.com>
82171
82172         Merge changes from Bison.
82173         * lib/obstack.h: (__INT_TO_PTR) [__STDC__]: Cast result to
82174         (void *) to avoid diagnostic with native c89 on SGI IRIX 6.5
82175         when compiling Bison 1.875's `bitset bset = obstack_alloc
82176         (bobstack, bytes);'.  Problem reported by Nelson H. F. Beebe.
82177         * lib/hash.c: Include <stdbool.h> unconditionally.
82178
82179 2003-03-13  Paul Eggert  <eggert@twinsun.com>
82180
82181         * m4/onceonly.m4 (m4_quote): New macro.
82182         (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE, AC_CHECK_DECLS_ONCE):
82183         Quote AC_FOREACH variable-expansions properly.
82184
82185 2003-03-13  Paul Eggert  <eggert@twinsun.com>
82186
82187         * doc/COPYING.DOC, fdl.texi: Sync with latest FSF version.
82188
82189 2003-03-09  Paul Eggert  <eggert@twinsun.com>
82190
82191         * lib/argmatch.c (EXIT_FAILURE): Define if the system doesn't.
82192         Reported by Bruce Becker; see:
82193         http://mail.gnu.org/archive/html/bug-bison/2003-03/msg00017.html
82194
82195 2003-03-03  Paul Eggert  <eggert@twinsun.com>
82196             Bruno Haible  <bruno@clisp.org>
82197
82198         * lib/mbswidth.h: Include <wchar.h>. Needed for UnixWare 7.1.1.
82199         Reported by John Hughes, see
82200         http://mail.gnu.org/archive/html/bug-bison/2003-02/msg00030.html
82201
82202 2003-02-20  Bruno Haible  <bruno@clisp.org>
82203
82204         * MODULES.html.sh (func_all_modules): Add poll.
82205
82206 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
82207
82208         * modules/poll: New file.
82209
82210 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
82211
82212         * lib/poll_.h: New file.
82213         * lib/poll.c: New file.
82214
82215 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
82216
82217         * m4/poll.m4: New file.
82218
82219 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
82220
82221         * modules/mathl: New file.
82222
82223 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
82224
82225         * lib/mathl.h: New file.
82226         * lib/acosl.c: New file.
82227         * lib/asinl.c: New file.
82228         * lib/atanl.c: New file.
82229         * lib/ceill.c: New file.
82230         * lib/cosl.c: New file.
82231         * lib/expl.c: New file.
82232         * lib/floorl.c: New file.
82233         * lib/frexpl.c: New file.
82234         * lib/ldexpl.c: New file.
82235         * lib/logl.c: New file.
82236         * lib/sincosl.c: New file.
82237         * lib/sinl.c: New file.
82238         * lib/sqrtl.c: New file.
82239         * lib/tanl.c: New file.
82240         * lib/trigl.c: New file.
82241         * lib/trigl.h: New file.
82242
82243 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
82244
82245         * m4/mathl.m4: New file.
82246
82247 2003-02-18  Bruno Haible  <bruno@clisp.org>
82248
82249         * MODULES.html.sh (func_all_modules): Add mathl.
82250
82251 2003-02-17  Bruno Haible  <bruno@clisp.org>
82252
82253         * modules/mkdtemp: New module.
82254         * MODULES.html.sh (func_all_modules): Add it.
82255
82256 2003-02-17  Bruno Haible  <bruno@clisp.org>
82257
82258         * m4/mkdtemp.m4: New file, from GNU gettext with modifications.
82259
82260 2003-02-17  Bruno Haible  <bruno@clisp.org>
82261
82262         * lib/mkdtemp.h: New file, from GNU gettext.
82263         * lib/mkdtemp.c: New file, from GNU gettext.
82264
82265 2003-02-02  Jim Meyering  <jim@meyering.net>
82266
82267         * m4/regex.m4 (jm_INCLUDED_REGEX): Detect broken re_search in
82268         e.g. glibc-2.2.93.
82269
82270 2003-01-31  Bruno Haible  <bruno@clisp.org>
82271
82272         * m4/rename.m4 (vb_FUNC_RENAME): Add a redirection from 'rename' to
82273         'rpl_rename'.
82274         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Add a redirection from 'strnlen' to
82275         'rpl_strnlen'.
82276         * m4/strtod.m4 (gl_FUNC_STRTOD): Add a redirection from 'strtod' to
82277         'rpl_strtod'.
82278         * m4/utime.m4 (jm_FUNC_UTIME): Add a redirection from 'utime' to
82279         'rpl_utime'.
82280
82281 2003-01-31  Bruno Haible  <bruno@clisp.org>
82282
82283         * lib/rename.c: #undef rename before defining rpl_rename.
82284         * lib/strnlen.c: #undef strnlen, define rpl_strnlen instead of strnlen.
82285
82286 2003-01-30  Bruno Haible  <bruno@clisp.org>
82287
82288         * modules/vasnprintf, modules/vasprintf: New modules.
82289         * MODULES.html.sh (func_all_modules): Add them.
82290
82291 2003-01-30  Bruno Haible  <bruno@clisp.org>
82292
82293         * m4/signed.m4: New file, from GNU gettext.
82294         * m4/longdouble.m4: New file, from GNU gettext.
82295         * m4/wchar_t.m4: New file, from GNU gettext.
82296         * m4/wint_t.m4: New file, from GNU gettext.
82297         * m4/vasnprintf.m4: New file.
82298         * m4/vasprintf.m4: New file.
82299
82300 2003-01-30  Bruno Haible  <bruno@clisp.org>
82301
82302         * lib/printf-args.h: New file, from GNU gettext.
82303         * lib/printf-args.c: New file, from GNU gettext.
82304         * lib/printf-parse.h: New file, from GNU gettext.
82305         * lib/printf-parse.c: New file, from GNU gettext.
82306         * lib/vasnprintf.h: New file, from GNU gettext.
82307         * lib/vasnprintf.c: New file, from GNU gettext.
82308         * lib/asnprintf.c: New file, from GNU gettext.
82309         * lib/vasprintf.h: New file, from GNU gettext with modifications.
82310         * lib/vasprintf.c: New file, from GNU gettext.
82311         * lib/asprintf.c: New file, from GNU gettext.
82312
82313 2003-01-29  Bruno Haible  <bruno@clisp.org>
82314
82315         * modules/stpncpy: New module.
82316         * MODULES.html.sh (func_all_modules): Add it.
82317
82318 2003-01-29  Bruno Haible  <bruno@clisp.org>
82319
82320         * m4/stpncpy.m4: New file.
82321
82322 2003-01-29  Bruno Haible  <bruno@clisp.org>
82323
82324         * lib/stpncpy.h: New file, from GNU gettext with modifications.
82325         * lib/stpncpy.c: New file, from GNU gettext with modifications.
82326
82327 2003-01-28  Bruno Haible  <bruno@clisp.org>
82328
82329         * modules/c-ctype: New module.
82330         * MODULES.html.sh (func_all_modules): Add it.
82331
82332 2003-01-28  Bruno Haible  <bruno@clisp.org>
82333
82334         * lib/c-ctype.h: New file, from GNU gettext, with changes suggested by
82335         Paul Eggert.
82336         * lib/c-ctype.c: New file, from GNU gettext, with changes suggested by
82337         Paul Eggert.
82338
82339 2003-01-27  Bruno Haible  <bruno@clisp.org>
82340
82341         * modules/xsetenv: New module.
82342         * MODULES.html.sh (func_all_modules): Add it.
82343
82344 2003-01-27  Bruno Haible  <bruno@clisp.org>
82345
82346         * lib/xsetenv.h: New file, from GNU gettext.
82347         * lib/xsetenv.c: New file, from GNU gettext.
82348
82349 2003-01-23  Jim Meyering  <jim@meyering.net>
82350
82351         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Correct typo: s/-1/no/ that kept this
82352         from working on systems without dirfd (at least Irix and OSF1/Tru64).
82353
82354 2003-01-23  Bruno Haible  <bruno@clisp.org>
82355
82356         * modules/minmax: New module.
82357         * MODULES.html.sh (func_all_modules): Add it.
82358
82359 2003-01-23  Bruno Haible  <bruno@clisp.org>
82360
82361         * lib/minmax.h: New file, from GNU gettext, with comments from Paul
82362         Eggert.
82363
82364 2003-01-22  Bruno Haible  <bruno@clisp.org>
82365
82366         * modules/exit: New module.
82367         * MODULES.html.sh (func_all_modules): Add it.
82368
82369 2003-01-22  Bruno Haible  <bruno@clisp.org>
82370
82371         * lib/exit.h: New file, from GNU gettext.
82372
82373 2003-01-19  Bruno Haible  <bruno@clisp.org>
82374
82375         * gnulib-tool: Recognize option --extract-maintainer.
82376         (func_get_maintainer): New function.
82377         * modules/*: Add Maintainer entry.
82378
82379 2003-01-16  Jim Meyering  <jim@meyering.net>
82380
82381         * m4/regex.m4: The `regex' struct is both input and output.
82382         Initialize it before each use.  Patch by Tim Waugh.
82383
82384 2003-01-16  Bruno Haible  <bruno@clisp.org>
82385
82386         * MODULES.html.sh: Add a table of contents. Add the module name as
82387         leftmost column. Add hyperlinks.
82388
82389 2003-01-15  Bruno Haible  <bruno@clisp.org>
82390
82391         * m4/md5.m4 (gl_MD5): Require AC_C_INLINE.
82392
82393 2003-01-15  Bruno Haible  <bruno@clisp.org>
82394
82395         * m4/longlong.m4 (jm_AC_TYPE_LONG_LONG): Also test the LL suffix.
82396         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Also test the ULL
82397         suffix.
82398
82399 2003-01-15  Bruno Haible  <bruno@clisp.org>
82400
82401         * m4/alloca.m4 (gl_FUNC_ALLOCA): Invoke AC_EGREP_CPP prerequisites.
82402
82403 2003-01-15  Bruno Haible  <bruno@clisp.org>
82404
82405         * lib/stpcpy.h (stpcpy): Use ANSI C function declarations.
82406         * lib/strcase.h (strcasecmp, strncasecmp): Likewise.
82407
82408 2003-01-14  Jim Meyering  <jim@meyering.net>
82409
82410         * lib/same.c (same_name): Tweak a comment.
82411
82412 2003-01-14  Bruno Haible  <bruno@clisp.org>
82413
82414         * lib/same.c (same_name): Reorder tests so as to avoid calling stat()
82415         when a string comparison is sufficient.
82416
82417 2003-01-14  Bruno Haible  <bruno@clisp.org>
82418
82419         * lib/readtokens.c (readtoken): Cast character to 'unsigned char', not
82420         'unsigned int'.
82421
82422 2003-01-14  Bruno Haible  <bruno@clisp.org>
82423
82424         * lib/hash-pjw.c: Add comment about low quality of this function.
82425
82426 2003-01-13  Bruno Haible  <bruno@clisp.org>
82427
82428         * modules/stpcpy: Distribute lib/stpcpy.h.
82429         * modules/setenv: Depend on alloca. Distribute lib/setenv.h.
82430
82431 2003-01-13  Bruno Haible  <bruno@clisp.org>
82432
82433         * modules/*: Add a description.
82434         * modules/strpbrk: Fix Makefile.am snippet.
82435         * modules/strtoimax: Fix dependencies.
82436         * modules/strtoumax: Likewise.
82437
82438 2003-01-13  Bruno Haible  <bruno@clisp.org>
82439
82440         * gnulib-tool (func_create_testdir): Substitute lib_OBJECTS.
82441         * modules/alloca (Makefile.am): All object files depend on alloca.h.
82442         * modules/stdbool (Makefile.am): All object files depend on stdbool.h.
82443
82444 2003-01-13  Bruno Haible  <bruno@clisp.org>
82445
82446         * gnulib-tool (func_create_testdir): Store config/* files in the main
82447         directory.
82448         * config.rpath: Move to ...
82449         * config/config.rpath: ... here.
82450         * modules/gettext: Contains config/config.rpath, not config.rpath.
82451         * modules/iconv: Likewise.
82452
82453 2003-01-12  Paul Eggert  <eggert@twinsun.com>
82454
82455         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
82456         to avoid collisions with libcurses and libreadline.
82457
82458         * m4/getstr.m4: Remove.
82459         * m4/getline.m4 (gl_PREREQ_GETLINE): Require AC_HEADER_STDC.
82460
82461 2003-01-12  Paul Eggert  <eggert@twinsun.com>
82462
82463         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
82464         to avoid collisions with libcurses and libreadline.
82465
82466         * lib/Makefile.am (libfetish_a_SOURCES): Remove getstr.c, getstr.h.
82467         * lib/getstr.h, getstr.c: Remove.
82468         * lib/getline.c: Include "getline.h", to check interface.
82469         Move body of old getstr.c here: this defines MIN_CHUNK and
82470         declares getdelim2, which is renamed from getstr.
82471         (getline, getdelim): Adjust to renaming of getstr -> getdelim2.
82472
82473         * lib/linebuffer.c (readlinebuffer): Renamed from readline.
82474         All uses changed.
82475         * lib/linebuffer.h: Likewise.
82476         (readline): Remove backward-compatibility macro.
82477
82478 2003-01-12  Paul Eggert  <eggert@twinsun.com>
82479
82480         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
82481         to avoid collisions with libcurses and libreadline.
82482         * getstr: Remove.
82483         * MODULES.html.sh: Remove getstr.
82484         * modules/getline: Depend on unlocked-io, not getstr.
82485
82486 2003-01-12  Jim Meyering  <jim@meyering.net>
82487
82488         * lib/makepath.c: Don't test HAVE_ERRNO_H.  It's not necessary.
82489
82490 2003-01-10  Bruno Haible  <bruno@clisp.org>
82491
82492         * modules/alloca: Change Makefile.am requirements. Simplify Include
82493         requirements. Add lib/alloca_.h to file list.
82494
82495 2003-01-10  Bruno Haible  <bruno@clisp.org>
82496
82497         * m4/alloca.m4 (gl_FUNC_ALLOCA): Also define ALLOCA_H.
82498
82499 2003-01-10  Bruno Haible  <bruno@clisp.org>
82500
82501         * lib/alloca_.h: New file.
82502         * lib/getdate.y: Unconditionally include alloca.h.
82503         * lib/makepath.c: Likewise.
82504         * lib/setenv.c: Likewise.
82505         * lib/userspec.c: Likewise.
82506
82507 2003-01-09  Karl Berry  <karl@gnu.org>
82508
82509         * MODULES.html.sh: include `dirname $0` in PATH, to find
82510         gnulib-tool.
82511
82512 2003-01-09  Bruno Haible  <bruno@clisp.org>
82513
82514         * modules/stdbool: Change configure.ac, Makefile.am requirements.
82515         Simplify Include requirements. Add lib/stdbool.h.in to file list.
82516
82517 2003-01-09  Bruno Haible  <bruno@clisp.org>
82518
82519         * m4/stdbool.m4 (AM_STDBOOL_H): New macro.
82520
82521 2003-01-09  Bruno Haible  <bruno@clisp.org>
82522
82523         * lib/stdbool.h.in: New file.
82524
82525 2003-01-09  Bruno Haible  <bruno@clisp.org>
82526
82527         * gnulib-tool (func_all_modules): Ignore files ending in ~.
82528         * MODULES.html.sh: Likewise.
82529
82530 2003-01-08  Jim Meyering  <jim@meyering.net>
82531
82532         * lib/full-write.c: Undefine and define-away `const' after inclusion
82533         of errno.h, not before.  Suggestion from Bruno Haible.
82534
82535 2003-01-08  Bruno Haible  <bruno@clisp.org>
82536
82537         * modules/full-read: Depend on full-write.
82538
82539 2003-01-08  Bruno Haible  <bruno@clisp.org>
82540
82541         * lib/safe-read.c: Include specification header first, to ensure its
82542         selfcontainedness.
82543         * lib/full-write.c: Likewise.
82544
82545 2003-01-07  Jim Meyering  <jim@meyering.net>
82546
82547         * lib/full-write.c: Rework so that it may serve to define full_read,
82548         too.
82549         * lib/full-read.c: Simply #define FULL_READ and include full-write.c.
82550
82551 2003-01-07  Bruno Haible  <bruno@clisp.org>
82552
82553         * lib/strtoimax.c: Include <stdint.h> as an alternative to
82554         <inttypes.h>.
82555         * lib/xstrtol.h: Likewise.
82556         * lib/xstrtoimax.c: Likewise.
82557         * lib/xstrtoumax.c: Likewise.
82558         * lib/human.h: Likewise.
82559
82560         * lib/tempname.c: Include <inttypes.h> too. Avoids a compilation error
82561         on systems that have <inttypes.h> but not <stdint.h>.
82562
82563 2003-01-07  Bruno Haible  <bruno@clisp.org>
82564
82565         * MODULES.html.sh: Add copyright notice.
82566         (missed_files): Omit CVS directory entries.
82567         (func_module): Make it work with sed-3.02.
82568         * MODULES.txt: Remove file.
82569
82570 2003-01-06  Jim Meyering  <jim@meyering.net>
82571
82572         * lib/version-etc.c: Update year in translatable copyright string.
82573
82574 2003-01-03  Karl Berry  <karl@gnu.org>
82575
82576         * config/config.{guess,sub}: update from prep.
82577
82578 2003-01-02  Karl Berry  <karl@gnu.org>
82579
82580         * doc/COPYING.DOC: belatedly updated to 1.2.
82581
82582 2003-01-01  Karl Berry  <karl@gnu.org>
82583
82584         * gnulib-tool (func_verify_module): report module name $module in
82585         error message, not $1.
82586         * gnulib-tool (create-testdir): don't complain if destdir couldn't
82587         be created, only if it doesn't exist.
82588         * gnulib-tool (last_checkin_date): don't expand the $Date here.
82589
82590 2002-12-31  Paul Eggert  <eggert@twinsun.com>
82591
82592         * m4/memcoll.m4 (gl_MEMCOLL): Require AC_FUNC_MEMCMP.
82593
82594 2002-12-31  Paul Eggert  <eggert@twinsun.com>
82595
82596         * lib/memcoll.c (memcoll): Fall back on a simple algorithm using
82597         memcmp if strcoll doesn't work.
82598
82599 2002-12-31  Bruno Haible  <bruno@clisp.org>
82600
82601         * lib/utime.c (utime_null): No need to call ftruncate if the file was
82602         nonempty.
82603
82604 2002-12-31  Bruno Haible  <bruno@clisp.org>
82605
82606         * lib/memcoll.c (STRCOLL): New macro.
82607         (memcoll): Use it.
82608
82609 2002-12-31  Bruno Haible  <bruno@clisp.org>
82610
82611         * lib/localcharset.h: New file.
82612         * lib/localcharset.c: Include it.
82613         * lib/unicodeio.c: Likewise.
82614
82615 2002-12-31  Bruno Haible  <bruno@clisp.org>
82616
82617         * lib/getstr.h (getstr): Define, to avoid clash with libcurses.
82618         * lib/linebuffer.h (readline): Define, to avoid clash with libreadline.
82619
82620 2002-12-31  Bruno Haible  <bruno@clisp.org>
82621
82622         * lib/getline.h: Include <stddef.h>, for size_t.
82623
82624         * lib/unicodeio.h: Include <stddef.h>, for size_t.
82625         * lib/unicodeio.c: Don't include <stddef.h>.
82626
82627 2002-12-31  Bruno Haible  <bruno@clisp.org>
82628
82629         * lib/getdate.y (get_date): Test HAVE_STRUCT_TM_TM_ZONE, not
82630         HAVE_TM_ZONE.
82631
82632 2002-12-24  Karl Berry  <karl@gnu.org>
82633
82634         * config/config.guess: update from prep.
82635
82636 2002-12-24  Bruno Haible  <bruno@clisp.org>
82637
82638         General infrasructure.
82639         * m4/README: Rewritten.
82640         * m4/onceonly.m4: New file.
82641         * m4/onceonly_2_57.m4: New file.
82642
82643         Module atexit.
82644         * m4/atexit.m4: New file.
82645
82646         Module strtod.
82647         * m4/strtod.m4: New file.
82648
82649         Module strtol.
82650         * m4/strtol.m4: New file.
82651
82652         Module strtoul.
82653         * m4/strtoul.m4: New file.
82654
82655         Module memchr.
82656         * m4/memchr.m4: New file.
82657
82658         Module memcmp.
82659         * m4/memcmp.m4 (gl_PREREQ_MEMCMP): New macro.
82660         (jm_FUNC_MEMCMP): Invoke it.
82661
82662         Module memcpy.
82663         * m4/memcpy.m4: New file.
82664
82665         Module memmove.
82666         * m4/memmove.m4: New file.
82667
82668         Module memset.
82669         * m4/memset.m4: New file.
82670
82671         Module strcspn.
82672         * m4/strcspn.m4: New file.
82673
82674         Module strpbrk.
82675         * m4/strpbrk.m4: New file.
82676
82677         Module strstr.
82678         * m4/strstr.m4: New file.
82679
82680         Module strerror.
82681         * m4/strerror.m4: New file.
82682
82683         Module mktime.
82684         * m4/mktime.m4: Renamed from jm-mktime.m4.
82685         (gl_PREREQ_MKTIME): New macro.
82686         (gl_FUNC_MKTIME): Renamed from jm_FUNC_MKTIME. Invoke gl_PREREQ_MKTIME.
82687
82688         Module malloc.
82689         * m4/malloc.m4 (gl_PREREQ_MALLOC): New macro.
82690         (jm_FUNC_MALLOC): Use AC_FUNC_MALLOC. Invoke gl_PREREQ_MALLOC.
82691         Don't define HAVE_DONE_WORKING_MALLOC_CHECK, since nothing uses it.
82692
82693         Module realloc.
82694         * m4/realloc.m4 (gl_PREREQ_REALLOC): New macro.
82695         (jm_FUNC_REALLOC): Use AC_FUNC_REALLOC. Invoke gl_PREREQ_REALLOC.
82696         Don't define HAVE_DONE_WORKING_REALLOC_CHECK, since nothing uses it.
82697
82698         Module strftime.
82699         * m4/tm_gmtoff.m4: New file, extracted from strftime.m4.
82700         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Use AC_FUNC_STRFTIME.
82701         Don't test for bcopy (we are not emacs). Invoke AC_TYPE_MBSTATE_T and
82702         gl_TM_GMTOFF.
82703         (_jm_STRFTIME_PREREQS, jm_FUNC_GNU_STRFTIME): Use onceonly macros.
82704
82705         Module xalloc.
82706         * m4/xalloc.m4: New file.
82707
82708         Module alloca.
82709         * m4/alloca.m4: New file.
82710
82711         Module putenv.
82712         * m4/putenv.m4 (gl_PREREQ_PUTENV): New macro.
82713         (jm_FUNC_PUTENV): Invoke it.
82714
82715         Module setenv.
82716         * m4/setenv.m4 (gt_FUNC_SETENV): New macro.
82717         (gt_CHECK_VAR_DECL): Fix quoting error that led to infinite loop in m4
82718         when invoked twice.
82719         (gt_PREREQ_SETENV, gt_PREREQ_UNSETENV): New macros, replacing old
82720         gt_FUNC_SETENV.
82721
82722         Module memrchr.
82723         * m4/memrchr.m4: New file.
82724
82725         Module stpcpy.
82726         * m4/stpcpy.m4: New file.
82727
82728         Module strcase.
82729         * m4/strcase.m4: New file.
82730
82731         Module strdup.
82732         * m4/strdup.m4: New file.
82733
82734         Module strnlen.
82735         * m4/strnlen.m4: New file.
82736
82737         Module strndup.
82738         * m4/strndup.m4: New file.
82739
82740         Module xstrtod.
82741         * m4/xstrtod.m4: New file.
82742
82743         Module xstrtol.
82744         * m4/xstrtol.m4: New file.
82745
82746         Module getdate.
82747         * m4/getdate.m4: New file.
82748
82749         Module unlocked-io.
82750         * m4/unlocked-io.m4: Renamed from jm-glibc-io.m4.
82751         (jm_FUNC_GLIBC_UNLOCKED_IO): Invoke AC_GNU_SOURCE. Use onceonly macros.
82752         * m4/jm-glibc-io.m4n: Remove file.
82753
82754         Module long-options.
82755         * m4/long-options.m4: New file.
82756
82757         Module md5.
82758         * m4/md5.m4: New file.
82759
82760         Module sha.
82761         * m4/sha.m4: New file.
82762
82763         Module getstr.
82764         * m4/getstr.m4: New file.
82765
82766         Module getline.
82767         * m4/getline.m4 (gl_PREREQ_GETLINE): New macro.
82768         (AM_FUNC_GETLINE): Invoke AC_GNU_SOURCE. Use <stdlib.h>, not
82769         <sys/types.h>, for size_t. Use the function name gnu_getline, not
82770         simply getline. Infoke gl_PREREQ_GETLINE.
82771
82772         Module obstack.
82773         * m4/obstack.m4: New file.
82774
82775         Module hash.
82776         * m4/hash.m4: New file.
82777
82778         Module readtokens.
82779         * m4/readtokens.m4: New file.
82780
82781         Module strverscmp.
82782         * m4/strverscmp.m4: New file.
82783
82784         Module stdbool.
82785         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Add test for _Bool. Needed for
82786         OSF/1.
82787
82788         Module strtoll.
82789         * m4/strtoll.m4: New file.
82790
82791         Module strtoull.
82792         * m4/strtoull.m4: New file.
82793
82794         Module strtoimax.
82795         * m4/strtoimax.m4: New file.
82796
82797         Module strtoumax.
82798         * m4/strtoumax.m4: New file.
82799
82800         Module xstrtoimax.
82801         * m4/xstrtoimax.m4 (jm_XSTRTOIMAX): Renamed from
82802         jm_AC_PREREQ_XSTRTOIMAX.
82803         Moved the strtol prerequisites to strtol.m4.
82804         Moved the strtoll prerequisites to strtoll.m4.
82805         Moved the strtoimax prerequisites to strtoimax.m4.
82806
82807         Module xstrtoumax.
82808         * m4/xstrtoumax.m4 (jm_XSTRTOUMAX): Renamed from
82809         jm_AC_PREREQ_XSTRTOUMAX.
82810         Moved the strtoul prerequisites to strtoul.m4.
82811         Moved the strtoull prerequisites to strtoull.m4.
82812         Moved the strtoumax prerequisites to strtoumax.m4.
82813
82814         Module chown.
82815         * m4/chown.m4 (gl_PREREQ_CHOWN): New macro.
82816         (jm_FUNC_CHOWN): Use AC_FUNC_CHOWN. Invoke gl_PREREQ_CHOWN.
82817
82818         Module dup2.
82819         * m4/dup2.m4: New file.
82820
82821         Module ftruncate.
82822         * m4/ftruncate.m4 (gl_PREREQ_FTRUNCATE): New macro.
82823         (jm_FUNC_FTRUNCATE): Use AC_REPLACE_FUNCS. Invoke gl_PREREQ_FTRUNCATE.
82824
82825         Module getgroups.
82826         * m4/getgroups.m4 (gl_PREREQ_GETGROUPS): New macro.
82827         (jm_FUNC_GETGROUPS): Use AC_FUNC_GETGROUPS. Invoke gl_PREREQ_GETGROUPS.
82828
82829         Module gettimeofday.
82830         * m4/gettimeofday.m4 (gl_PREREQ_GETTIMEOFDAY): New macro.
82831         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Use onceonly macros. Invoke
82832         gl_PREREQ_GETTIMEOFDAY.
82833
82834         Module mkdir.
82835         * m4/mkdir-slash.m4 (gl_PREREQ_MKDIR): New macro.
82836         (UTILS_FUNC_MKDIR_TRAILING_SLASH): Invoke gl_PREREQ_MKDIR.
82837
82838         Module mkstemp.
82839         * m4/mkstemp.m4 (gl_PREREQ_MKSTEMP): New macro.
82840         (jm_PREREQ_TEMPNAME): New macro, from prereq.m4. Also invoke
82841         jm_AC_TYPE_UINTMAX_T.
82842         (UTILS_FUNC_MKSTEMP): Invoke gl_PREREQ_MKSTEMP and jm_PREREQ_TEMPNAME.
82843
82844         Module stat.
82845         * m4/stat.m4 (gl_PREREQ_STAT): New macro.
82846         (jm_FUNC_STAT): Use AC_FUNC_STAT. Invoke gl_PREREQ_STAT.
82847
82848         Module lstat.
82849         * m4/lstat.m4 (gl_PREREQ_LSTAT): New macro.
82850         (jm_FUNC_LSTAT): Use AC_FUNC_LSTAT. Invoke gl_PREREQ_LSTAT.
82851
82852         Module timespec.
82853         * m4/timespec.m4 (gl_TIMESPEC): New macro.
82854         (jm_CHECK_TYPE_STRUCT_TIMESPEC): Add check for <sys/time.h>.
82855         * m4/st_mtim.m4: Indentation.
82856
82857         Module nanosleep.
82858         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): New macro.
82859         (jm_FUNC_NANOSLEEP): Add check for <sys/time.h>. Invoke
82860         gl_PREREQ_NANOSLEEP.
82861
82862         Module regex.
82863         * m4/regex.m4 (jm_PREREQ_REGEX): New macro.
82864         (jm_INCLUDED_REGEX): Invoke jm_PREREQ_REGEX.
82865         (gl_REGEX): New macro.
82866
82867         Module rename.
82868         * m4/rename.m4 (gl_PREREQ_RENAME): New macro.
82869         (vb_FUNC_RENAME): Invoke gl_PREREQ_RENAME.
82870
82871         Module rmdir.
82872         * m4/rmdir.m4: New file.
82873
82874         Module utime.
82875         * m4/utimbuf.m4 (jm_CHECK_TYPE_STRUCT_UTIMBUF): Use onceonly macros.
82876         * m4/utime.m4 (gl_PREREQ_UTIME): New macro.
82877         (jm_FUNC_UTIME): Invoke gl_PREREQ_UTIME.
82878
82879         Module dirname.
82880         * m4/dirname.m4: New file.
82881
82882         Module getopt.
82883         * m4/getopt.m4: New file.
82884
82885         Module unistd-safer.
82886         * m4/unistd-safer.m4: New file.
82887
82888         Module fnmatch.
82889         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Include <stdlib.h>, for exit()
82890         declaration.
82891         (gl_PREREQ_FNMATCH_EXTRA): New macro.
82892         (gl_FUNC_FNMATCH_POSIX): New macro.
82893         (gl_FUNC_FNMATCH_GNU): Renamed from AC_FUNC_FNMATCH_GNU. Invoke
82894         gl_PREREQ_FNMATCH_EXTRA. Use the function name gnu_fnmatch, not
82895         simply fnmatch.
82896
82897         Module exclude.
82898         * m4/exclude.m4: New file.
82899
82900         Module human.
82901         * m4/human.m4: New file.
82902
82903         Module acl.
82904         * m4/acl.m4: Nop.
82905
82906         Module backupfile.
82907         * m4/backupfile.m4: New file.
82908         * m4/d-ino.m4: Indentation.
82909
82910         Module fsusage.
82911         * m4/fsusage.m4 (gl_FSUSAGE): New macro.
82912         (jm_STATFS_TRUNCATES): New macro, from coreutils-4.5.4/configure.ac.
82913         (gl_PREREQ_FSUSAGE_EXTRA): New macro.
82914
82915         Module dirfd.
82916         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Invoke some AC_EGREP_CPP
82917         requirements.
82918
82919         Module euidaccess.
82920         * m4/euidaccess.m4: New file.
82921
82922         Module file-type.
82923         * m4/file-type.m4: New file.
82924
82925         Module fileblocks.
82926         * m4/fileblocks.m4: New file.
82927
82928         Module filemode.
82929         * m4/filemode.m4: New file.
82930
82931         Module isdir.
82932         * m4/isdir.m4: New file.
82933
82934         Module lchown.
82935         * m4/lchown.m4 (gl_PREREQ_LCHOWN): New macro.
82936         (jm_FUNC_LCHOWN): Invoke gl_PREREQ_LCHOWN.
82937
82938         Module makepath.
82939         * m4/makepath.m4: New file.
82940
82941         Module modechange.
82942         * m4/modechange.m4: New file.
82943
82944         Module mountlist.
82945         * m4/mountlist.m4: New file.
82946         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Use onceonly macros.
82947         Indentation.
82948
82949         Module path-concat.
82950         * m4/path-concat.m4: New file.
82951
82952         Module pathmax.
82953         * m4/pathmax.m4: New file.
82954
82955         Module same.
82956         * m4/same.m4: New file.
82957
82958         Module save-cwd.
82959         * m4/save-cwd.m4: New file.
82960
82961         Module savedir.
82962         * m4/savedir.m4: New file.
82963
82964         Module xgetcwd.
82965         * m4/xgetcwd.m4: New file.
82966         * m4/getcwd.m4 (AC_FUNC_GETCWD_NULL): Use onceonly macros.
82967
82968         Module xreadlink.
82969         * m4/xreadlink.m4: New file.
82970
82971         Module safe-read.
82972         * m4/safe-read.m4: New file.
82973
82974         Module safe-write.
82975         * m4/safe-write.m4: New file.
82976
82977         Module closeout.
82978         * m4/closeout.m4: New file.
82979
82980         Module stdio-safer.
82981         * m4/stdio-safer.m4: New file.
82982
82983         Module getpass.
82984         * m4/getpass.m4: New file.
82985
82986         Module getugroups.
82987         * m4/getugroups.m4: New file.
82988
82989         Module group-member.
82990         * m4/group-member.m4 (gl_PREREQ_GROUP_MEMBER): New macro.
82991         (jm_FUNC_GROUP_MEMBER): Invoke AC_GNU_SOURCE, gl_PREREQ_GROUP_MEMBER.
82992
82993         Module idcache.
82994         * m4/idcache.m4: New file.
82995
82996         Module userspec.
82997         * m4/userspec.m4: New file.
82998
82999         Module gettime.
83000         * m4/clock_time.m4: New file.
83001         * m4/gettime.m4: New file.
83002
83003         Module settime.
83004         * m4/settime.m4: New file.
83005
83006         Module posixtm.
83007         * m4/posixtm.m4: New file.
83008
83009         Module gethostname.
83010         * m4/gethostname.m4: New file.
83011
83012         Module canon-host.
83013         * m4/canon-host.m4: New file.
83014
83015         Module gettext.
83016         * m4/codeset.m4: New file, from gettext-0.11.5.
83017         * m4/gettext.m4: New file, from gettext-0.11.5.
83018         * m4/glibc21.m4: New file, from gettext-0.11.5.
83019         * m4/iconv.m4: New file, from gettext-0.11.5.
83020         * m4/intdiv0.m4: New file, from gettext-0.11.5.
83021         * m4/inttypes-pri.m4: New file, from gettext-0.11.5.
83022         * m4/inttypes.m4: New file, from gettext-0.11.5.
83023         * m4/inttypes_h.m4: New file, from gettext-0.11.5 with modifications.
83024         * m4/isc-posix.m4: New file, from gettext-0.11.5.
83025         * m4/lcmessage.m4: New file, from gettext-0.11.5.
83026         * m4/lib-ld.m4: New file, from gettext-0.11.5.
83027         * m4/lib-link.m4: New file, from gettext-0.11.5.
83028         * m4/lib-prefix.m4: New file, from gettext-0.11.5.
83029         * m4/progtest.m4: New file, from gettext-0.11.5.
83030         * m4/stdint_h.m4: New file, from gettext-0.11.5 with modifications.
83031         * m4/uintmax_t.m4: New file, from gettext-0.11.5 with modifications.
83032         * m4/ulonglong.m4: New file, from gettext-0.11.5 with modifications.
83033
83034         Module localcharset.
83035         * m4/localcharset.m4: New file.
83036
83037         Module hard-locale.
83038         * m4/hard-locale.m4: New file.
83039
83040         Module mbswidth.
83041         * m4/mbswidth.m4 (gl_MBSWIDTH): Renamed from jm_PREREQ_MBSWIDTH. Use
83042         onceonly macros.
83043         * m4/mbrtowc.m4: Add comment.
83044
83045         Module memcasecmp.
83046         * m4/memcasecmp.m4: New file.
83047
83048         Module memcoll.
83049         * m4/memcoll.m4: New file.
83050
83051         Module unicodeio.
83052         * m4/unicodeio.m4: New file.
83053
83054         Module rpmatch.
83055         * m4/rpmatch.m4: New file.
83056
83057         Module yesno.
83058         * m4/yesno.m4: New file.
83059
83060         Module exitfail.
83061         * m4/exitfail.m4: New file.
83062
83063         Module c-stack.
83064         * m4/c-stack.m4 (gl_C_STACK): New macro.
83065         (jm_PREREQ_C_STACK): Check for <sys/time.h>. Use onceonly macros.
83066
83067         Module error.
83068         * m4/error.m4 (gl_ERROR): New macro.
83069         (jm_PREREQ_ERROR): Use onceonly macros.
83070
83071         Module fatal.
83072         * m4/fatal.m4: New file.
83073
83074         Module getloadavg.
83075         * m4/getloadavg.m4 (AC_FUNC_GETLOADAVG): Use onceonly macros.
83076         (gl_FUNC_GETLOADAVG, gl_PREREQ_GETLOADAVG): New macros.
83077
83078         Module getpagesize.
83079         * m4/getpagesize.m4: New file.
83080
83081         Module getusershell.
83082         * m4/getusershell.m4: New file.
83083
83084         Module physmem.
83085         * m4/physmem.m4: New file.
83086
83087         Module posixver.
83088         * m4/posixver.m4: New file.
83089
83090         Module quotearg.
83091         * m4/quotearg.m4: New file.
83092
83093         Module quote.
83094         * m4/quote.m4: New file.
83095
83096         Module readutmp.
83097         * m4/readutmp.m4: New file, based on jm_PREREQ_READUTMP from prereq.m4.
83098
83099         Module sig2str.
83100         * m4/sig2str.m4: New file.
83101
83102         Other.
83103         * m4/longlong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Remove, moved to
83104         ulonglong.m4.
83105         * m4/intmax_t.m4: New file.
83106         * m4/d-type.m4: Indentation.
83107         * m4/jm-macros.m4: Update.
83108         * m4/prereq.m4 (jm_PREREQ): Update.
83109         (jm_PREREQ_ADDEXT): Remove, obsoleted by backupfile.m4.
83110         (jm_PREREQ_CANON_HOST): Remove, obsoleted by canon-host.m4.
83111         (jm_PREREQ_DIRNAME): Remove, obsoleted by dirname.m4.
83112         (jm_PREREQ_EXCLUDE): Remove, obsoleted by exclude.m4.
83113         (jm_PREREQ_GETPAGESIZE): Remove, obsoleted by getpagesize.m4.
83114         (jm_PREREQ_HARD_LOCALE): Remove, obsoleted by hard-locale.m4.
83115         (jm_PREREQ_HASH): Remove, obsoleted by hash.m4.
83116         (jm_PREREQ_HUMAN): Remove, obsoleted by human.m4.
83117         (jm_PREREQ_MEMCHR): Remove, obsoleted by memchr.m4.
83118         (jm_PREREQ_PHYSMEM): Remove, obsoleted by physmem.m4.
83119         (jm_PREREQ_POSIXVER): Remove, obsoleted by posixver.m4.
83120         (jm_PREREQ_QUOTEARG): Remove, obsoleted by quotearg.m4.
83121         (jm_PREREQ_READUTMP): Remove, obsoleted by readutmp.m4.
83122         (jm_PREREQ_REGEX): Remove, obsoleted by regex.m4.
83123         (jm_PREREQ_STRNLEN): Remove, obsoleted by strnlen.m4.
83124         (jm_PREREQ_TEMPNAME): Remove, obsoleted by mkstemp.m4.
83125         (jm_PREREQ_XGETCWD): Remove, obsoleted by xgetcwd.m4.
83126         (jm_PREREQ_XREADLINK): Remove, obsoleted by xreadlink.m4.
83127         * m4/readdir.m4 (jm_FUNC_READDIR): Use onceonly macros.
83128
83129 2002-12-24  Bruno Haible  <bruno@clisp.org>
83130
83131         * MODULES.txt: Update according to m4/ changes.
83132
83133         Module gettext.
83134         * config.rpath: New file, from gettext-0.11.5.
83135
83136         * modules/*: New module descriptions.
83137         * gnulib-tool: New file.
83138         * MODULES.html.sh: New file.
83139
83140 2002-12-21  Karl Berry  <karl@gnu.org>
83141
83142         * doc/fdl.texi: update to version 1.2.
83143
83144 2002-12-19  Karl Berry  <karl@gnu.org>
83145
83146         * config/config.guess: update from prep.
83147
83148 2002-12-18  Bruno Haible  <bruno@clisp.org>
83149
83150         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't test for localtime_r.
83151         * m4/jm-mktime.m4 (jm_FUNC_MKTIME): Likewise.
83152
83153 2002-12-17  Bruno Haible  <bruno@clisp.org>
83154
83155         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Remove checks for limits.h,
83156         stdlib.h, string.h.
83157
83158 2002-12-17  Bruno Haible  <bruno@clisp.org>
83159
83160         * lib/canon-host.c (strdup): Remove unused declaration.
83161
83162         * lib/fsusage.c: Include full_read.h.
83163         (get_fs_usage): Use full_read instead of safe_read.
83164
83165         * lib/utime.c (utime_null): Use SAFE_READ_ERROR.
83166
83167 2002-12-12  Karl Berry  <karl@gnu.org>
83168
83169         * config/config.guess: update from prep.
83170
83171 2002-12-11  Bruno Haible  <bruno@clisp.org>
83172
83173         * m4/setenv.m4: New file, from gettext-0.11.5.
83174
83175 2002-12-11  Bruno Haible  <bruno@clisp.org>
83176
83177         * lib/setenv.h: Rewritten to cope with systems that have setenv() but
83178         not unsetenv().
83179         * lib/setenv.c, unsetenv.c: Taken from glibc-2.2.4 with the following
83180         modifications:
83181
83182         2002-12-11  Bruno Haible  <bruno@clisp.org>
83183
83184                 * setenv.c (alloca): Fall back to malloc.
83185                 (freea): New macro.
83186                 (setenv): Use freea() to free memory allocated with alloca().
83187
83188         2002-11-13  Bruno Haible  <bruno@clisp.org>
83189
83190                 * setenv.c (compar_fn_t, __add_to_environ, setenv): Use ANSI C
83191                 function declarations.
83192                 * unsetenv.c (unsetenv): Likewise.
83193
83194         2002-03-04  Bruno Haible  <bruno@clisp.org>
83195
83196                 Portability to AIX 4.3.3.
83197                 * unsetenv.c: New file, extracted from setenv.c.
83198                 * setenv.c: Move the unsetenv() function to unsetenv.c.
83199
83200         2001-12-20  Bruno Haible  <bruno@clisp.org>
83201
83202                 * setenv.c (__add_to_environ): Don't call realloc(NULL,...),
83203                 use malloc instead. For SunOS 4.
83204
83205         2001-12-11  Bruno Haible  <bruno@clisp.org>
83206
83207                 * setenv.c: Declare alloca.
83208                 (compar_fn_t): New typedef.
83209                 (KNOWN_VALUE, STORE_VALUE): Use it.
83210
83211         * lib/Makefile.am (libfetish_a_SOURCES): Add setenv.c, unsetenv.c,
83212         setenv.h.
83213
83214 2002-12-10  Paul Eggert  <eggert@twinsun.com>
83215
83216         Port exclude.c and exclude.h to more non-GNU systems, e.g. Solaris 7.
83217         * lib/exclude.h (EXCLUDE_ANCHORED, EXCLUDE_INCLUDE, EXCLUDE_WILDCARDS):
83218         Choose values that are less likely to collide with system fnmatch
83219         options.
83220         * lib/exclude.c (FNM_CASEFOLD, FNM_LEADING_DIR): Define to 0 if not
83221         defined (e.g., a pure POSIX system).
83222         (EXCLUDE_macros_do_not_collide_with_FNM_macros): Use FNM_PATHNAME
83223         instead of FNM_FILE_NAME, for compatibility with pure POSIX sytems.
83224
83225 2002-12-06  Paul Eggert  <eggert@twinsun.com>
83226
83227         Undo the 2001-07-02 change for jm-glibc-io, as it was too much of
83228         a pain in practice to deal with generated m4 files.  This change
83229         goes together with the 2002-12-04 unlocked-io.h change in ../lib.
83230
83231         * m4/Makefile.am.in (Makefile.am): Don't mention jm-glibc-io.m4n
83232         and jm-glibc-io.m4, as they are no longer a special case.
83233         * m4/jm-glibc-io.m4: Rename from jm-glibc-io.m4n, and remove the
83234         kludge and the auto-generation stuff.  Check only whether the
83235         functions are declared, not whether they exist, since older hosts
83236         that don't declare the functions can't use the optimization anyway.
83237
83238 2002-12-06  Jim Meyering  <jim@meyering.net>
83239
83240         * lib/error.c: Be consistent: change `#ifndef _LIBC' to `#if !_LIBC'.
83241
83242         Merge in changes from libc's misc/error.c, in preparation
83243         for the merge of gnulib's changes back into libc.
83244
83245         * lib/error.c (_): Define only if not already defined.
83246         Move definition to follow all #include directives.
83247         Include unlocked-io.h only if !_LIBC.
83248         [_LIBC]: Include <libio/libioP.h>.
83249         [USE_IN_LIBIO]: Include <libio/iolibio.h>
83250         (fflush): Tweak definition to use INTUSE.
83251         (putc): Define.
83252
83253 2002-12-05  Paul Eggert  <eggert@twinsun.com>
83254
83255         * lib/alloca.c [defined emacs]: Include "lisp.h".
83256         (xalloc_die) [defined emacs]: New macro.
83257         (free) [defined emacs && defined EMACS_FREE]: Define to EMACS_FREE.
83258         [! defined emacs]: Include <xalloc.h>.
83259         (POINTER_TYPE) [!defined POINTER_TYPE]: New macro.
83260         (pointer): Typedef to POINTER_TYPE *.
83261         (malloc): Remove decl; we now always use xmalloc.
83262         (alloca): Use old-style definition, since Emacs needs this.
83263         Check for arithmetic overflow when computing combined size.
83264
83265 2002-12-04  Paul Eggert  <eggert@twinsun.com>
83266
83267         Do not generate unlocked-io.h automatically, since it's easier to
83268         maintain it by hand.
83269
83270         * lib/unlocked-io.h: New file, from GNU diffutils,
83271         but with proper copyright notice and attribution.
83272         * lib/gen-uio: Remove.
83273         * lib/Makefile.am: Add copyright notice.
83274         (libfetish_a_SOURCES): Add unlocked-io.h.
83275         (BUILT_SOURCES, all-local): Remove unlocked-io.h.
83276         (DISTCLEANFILES, io_functions): Remove macros.
83277         (EXTRA_DIST): Remove gen_uio.
83278         (unlocked-io.h): Remove rule.
83279
83280 2002-12-04  Jim Meyering  <jim@meyering.net>
83281
83282         Reflect the fact that stat.c and lstat.c are no longer generated.
83283         * lib/Makefile.am (BUILT_SOURCES): Remove stat.c and lstat.c.
83284         (DISTCLEANFILES): Likewise.
83285         (EXTRA_DIST): Likewise.
83286         (all_local): Don't depend on stat.c or lstat.c.
83287         (stat.c, lstat.c): Remove rules.
83288         (EXTRA_DIST): Remove xstat.in.
83289
83290         * lib/xstat.in: Remove file.  Contents moved into stat.c.
83291         * lib/stat.c: New file.  Contents mostly from xstat.in.
83292         * lib/stat.c: Rework so that it may serve to define rpl_lstat, too.
83293         * lib/lstat.c: New file. Simply #define LSTAT and include stat.c.
83294
83295         * lib/safe-read.c: Rework so that it may serve to define safe_write,
83296         too.
83297         * lib/safe-write.c: Simply #define SAFE_WRITE and include safe-read.c.
83298
83299 2002-12-03  Jim Meyering  <jim@meyering.net>
83300
83301         * lib/safe-read.c, safe-write.c: Change variable names and comments,
83302         but not semantics, to minimize the differences between these two files.
83303         (safe_read): Change comment to mention SAFE_READ_ERROR.
83304
83305         * lib/safe-read.c (IS_EINTR): Define.
83306         (safe_read): Use IS_EINTR in place of in-function cpp directives.
83307
83308 2002-12-02  Jim Meyering  <jim@meyering.net>
83309
83310         * lib/safe-read.c (EINTR): Define.
83311         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Define.
83312         (INT_MAX): Provide fallback.
83313         (safe_read): Rewrite to iterate IFF the read fails with EINTR.
83314
83315         * lib/safe-read.h (SAFE_READ_ERROR): Define.
83316
83317 2002-12-02  Bruno Haible  <bruno@clisp.org>
83318
83319         * lib/safe-write.c (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM):
83320         Define, taken from safe-read.c.
83321         (INT_MAX): Provide fallback.
83322         (safe_write): Rewrite to iterate IFF the write fails with EINTR.
83323         * lib/safe-write.h (SAFE_WRITE_ERROR): Define.
83324
83325         * lib/safe-read.c (EINTR): Remove definition.
83326         (safe_read): Don't use EINTR if it is absent.
83327
83328 2002-12-01  Jim Meyering  <jim@meyering.net>
83329
83330         * lib/safe-read.c: (safe_read): Also exit the loop when read returns
83331         zero.
83332         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM, INT_MAX): Define.
83333
83334 2002-11-27  Paul Eggert  <eggert@twinsun.com>
83335
83336         * lib/hash.c (hash_lookup, hash_get_first, hash_get_next,
83337         hash_find_entry, hash_rehash): Replace `if (limit <= value) abort ();'
83338         with `if (! (value < limit)) abort ();', for readability.
83339
83340 2002-11-26  Karl Berry  <karl@gnu.org>
83341
83342         * lib/strdup.c: copy from libc again, with jim's ok.
83343         * lib/.cppi-disable: re-add strdup.c
83344
83345 2002-11-25  Karl Berry  <karl@gnu.org>
83346
83347         * lib/strtoll.c: copy from libc, meaning we now #include <strtol.c>
83348         instead of "strtol.c".
83349
83350 2002-11-25  Karl Berry  <karl@gnu.org>
83351
83352         * config/install-sh: update from automake for variable quoting, $0 in
83353         error msgs, etc.
83354
83355         * config/srclist.txt ($LIBCSRC/time/mktime.c lib gpl): new entry.
83356         * config/srclist.txt ($LIBCSRC/sysdeps/generic/strtoll.c lib gpl): new
83357         entry.
83358
83359 2002-11-25  Jim Meyering  <jim@meyering.net>
83360
83361         * lib/mktime.c: Sync from libc, now that it has the latest fix.
83362
83363 2002-11-24  Karl Berry  <karl@gnu.org>
83364
83365         * lib/error.c, getopt.c, getopt.h, getopt1.c, obstack.c, regex.c,
83366         regex.h, strdup.c, strtoll.c, tempname.c: change license to gpl.
83367
83368 2002-11-24  Jim Meyering  <jim@meyering.net>
83369
83370         Update from coreutils:
83371
83372         * lib/mktime.c: Merge in changes from libc.
83373
83374         Avoid a link-time failure on some Linux systems.
83375         * lib/mktime.c (STATIC): Define to be empty (_LIBC) or `static'
83376         (otherwise).
83377         (__mon_yday): Declare with the STATIC attribute.
83378         (__mktime_internal): Likewise.
83379         Based on a report from Greg Schafer.
83380
83381 2002-11-23  Jim Meyering  <jim@meyering.net>
83382
83383         * lib/sig2str.c (str2signum, sig2str): Avoid a warning from gcc:
83384         Use `unsigned', not `int', as type of index.
83385
83386         * lib/xstat.in [@BEGIN_LSTAT_ONLY@]: Include <string.h>.
83387
83388         * lib/fsusage.c: Remove unneeded parentheses around operands of
83389         `defined'.
83390
83391 2002-11-22  Paul Eggert  <eggert@twinsun.com>
83392
83393         * lib/quotearg.h: Allow multiple inclusion by surrounding with
83394         "#ifndef QUOTEARG_H_".  Include <stddef.h>, for size_t,
83395         so that we can be included first.
83396         (PARAMS): Remove; we now assume C89 or later.  All uses removed.
83397         * lib/quotearg.c: Include quotearg.h immediately after config.h.
83398         No need to include stddef.h or sys/types.h any more.
83399         Surround local include files with "", not "<>".
83400         Assume HAVE_LIMITS_H unconditionally, as we assume C89.
83401         Similarly, assume HAVE_C_BACKSLASH_A, CHAR_BIT, UCHAR_MAX, UINT_MAX,
83402         HAVE_STDLIB_H, HAVE_STRING_H, STDC_HEADERS.
83403         (HAVE_MBSINIT): Undef if !HAVE_MBRTOWC.
83404         (mbsinit): Define to 1 if !defined mbsinit && !HAVE_MBSINIT.
83405         (ISPRINT): Remove; no longer needed now that we assume C89.
83406
83407         (clone_quoting_options, quotearg_buffer, quotearg_n_options):
83408         Preserve errno.
83409
83410         (quotearg_buffer_restyled, quotearg_n, quotearg_n_style,
83411         quotearg_char): Use SIZE_MAX rather than
83412         (size_t) -1 when we are talking about "infinity".
83413
83414         (quotearg_buffer_restyled): Fix bug when quoting trigraphs.
83415
83416 2002-11-22  Paul Eggert  <eggert@twinsun.com>
83417
83418         * lib/hash.c: Avoid use of <assert.h>, as the GNU Coding Standards
83419         hint that one should use `if (! x) abort ();' rather than `assert
83420         (x);', and anyway it's one less thing to worry about configuring.
83421         (hash_lookup, hash_get_first, hash_get_next, hash_find_entry,
83422         hash_rehash, hash_insert): Use abort rather than assert.
83423
83424 2002-11-22  Bruno Haible  <bruno@clisp.org>
83425
83426         * lib/safe-read.h: Assume C89. Add comments.
83427         (safe_read): Change return type to size_t.
83428         * lib/safe-read.c (safe_read): Change return type to size_t. Handle
83429         byte counts > SSIZE_MAX correctly.
83430         * lib/safe-write.h: New file.
83431         * lib/safe-write.c: New file.
83432         * lib/full-read.h: New file.
83433         * lib/full-read.c: New file.
83434         * lib/full-write.h: Assume C89. Add comments.
83435         * lib/full-write.c: Include safe-write.h.
83436         (full_write): Rewritten to use safe_write.
83437         Suggested by Jim Meyering and Paul Eggert.
83438
83439 2002-11-21  Jim Meyering  <jim@meyering.net>
83440
83441         * lib/strdup.c (strdup): Tweak comment and initial #if/#include.
83442
83443         Merge in changes from the coreutils.
83444
83445         2002-09-25  Paul Eggert  <eggert@twinsun.com>
83446         * lib/fsusage.c [! HAVE_INTTYPES_H && HAVE_STDINT_H] Include
83447         <stdint.h>.
83448         (UINTMAX_MAX) [!defined UINTMAX_MAX]: New macro.
83449         (PROPAGATE_ALL_ONES): Work even if X is unsigned and narrower than
83450         int.  Work more efficiently if X is the same width as uintmax_t.
83451         Do not compare X to -1, to avoid bogus compiler warning.
83452         (get_fs_usage): (uintmax_t) -1 -> UINTMAX_MAX to avoid a cast.
83453         Don't assume that f_frsize and f_bsize are the same type.
83454
83455         * lib/mountlist.c: #undef MNT_IGNORE before defining it, to avoid
83456         warning on FreeBSD.
83457
83458         * lib/makepath.c (make_path): Restore umask *before* creating the final
83459         component.
83460         (make_path): Minor reformatting.
83461
83462         * lib/xmalloc.c: Adjust to work with new autoconf macros,
83463         AC_FUNC_MALLOC and AC_FUNC_REALLOC: test #ifndef
83464         HAVE_MALLOC/HAVE_REALLOC.
83465
83466         * lib/mountlist.h (ME_DUMMY): Don't count entries of type `auto' as
83467         dummy ones.  At least on GNU/Linux systems, `auto' means something
83468         else.
83469         From Michael Stone.
83470
83471 2002-11-21  Bruno Haible  <bruno@clisp.org>
83472
83473         Remove case insensitive option matching.
83474         * lib/argmatch.h (argcasematch): Remove declaration.
83475         (ARGCASEMATCH): Remove macro.
83476         (__xargmatch_internal): Remove case_sensitive argument.
83477         (XARGMATCH): Update.
83478         (XARGCASEMATCH): Remove macro.
83479         * lib/argmatch.c (argmatch): Renamed from __argmatch_internal. Remove
83480         case_sensitive argument.
83481         (argcasematch): Remove function.
83482         (__xargmatch_internal): Remove case_sensitive argument.
83483         (main): Use XARGMATCH instead of XARGCASEMATCH.
83484
83485         * lib/xmalloc.c: Change compile-time error message. Add comment about
83486         required autoconf version.
83487
83488 2002-11-20  Paul Eggert  <eggert@twinsun.com>
83489
83490         Merge argmatch cleanups from Bison.  Assume C89.
83491
83492         * lib/argmatch.c: Include config.h here, not in argmatch.h.
83493         Include stdlib.h, for EXIT_FAILURE.
83494         Always include <string.h>, since we assume C89.
83495         (EXIT_FAILURE): Remove pre-C89 bug workaround.
83496         * lib/argmatch.h: Do not include <config.h> or <sys/types.h>.
83497         Include <stddef.h> instead, since it's all we need for size_t.
83498         (PARAMS): Remove.  All uses removed.
83499         (ARRAY_CARDINALITY): Do not bother to #undef.
83500         (ARRAY_CARDINALITY, ARGMATCH, ARGCASEMATCH, invalid_arg,
83501         ARGMATCH_VALID, XARGMATCH, XARGCASEMATCH):
83502         Remove unnecessary parentheses.
83503         (ARGMATCH_VALID, XARGMATCH, XARGCASEMATCH):
83504         Insert necessary parentheses.
83505         (ARGMATCH_CONSTRAINT, ARGMATCH_VERIFY): New macros.
83506         (ARGMATCH_ASSERT): Use ARGMATCH_CONSTRAINT.
83507
83508 2002-11-19  Bruno Haible  <bruno@clisp.org>
83509
83510         * lib/mbswidth.c: Include mbswidth.h right at the beginning.
83511         * lib/mbswidth.h: Include <stddef.h>, for size_t.
83512
83513         * lib/mbswidth.h (PARAMS): Remove macro.
83514         (mbswidth, mbsnwidth): Use ANSI C function declarations.
83515         * lib/mbswidth.c (mbswidth, mbsnwidth): Likewise.
83516
83517         * lib/gcd.h (PARAMS): Remove macro.
83518         (gcd): Use ANSI C function declarations.
83519         * lib/gcd.c (gcd): Likewise.
83520
83521 2002-11-15  Bruno Haible  <bruno@clisp.org>
83522
83523         * lib/strcspn.c: Include <stddef.h>.
83524         (strcspn): Use ANSI C function declaration. Change return type to
83525         size_t. Use NULL.
83526         * lib/strpbrk.c: Minimize diffs to glibc. Include <stddef.h>.
83527         (strpbrk): Use NULL.
83528         * lib/strpbrk.h (PARAMS): Remove macro.
83529         (strpbrk): Use ANSI C function declaration.
83530         * lib/strstr.c: Don't include <sys/types.h>.
83531         * lib/strstr.h (PARAMS): Remove macro.
83532         (strstr): Use ANSI C function declarations.
83533
83534 2002-11-14  Karl Berry  <karl@gnu.org>
83535
83536         * config/mkinstalldirs: `do' on separate line, instead of
83537         `for var; do'.
83538
83539 2002-11-06  Bruno Haible  <bruno@clisp.org>
83540
83541         * lib/gcd.h (gcd): Change argument type to 'unsigned long'.
83542         * lib/gcd.c (gcd): Likewise.
83543
83544 2002-11-05  Bruno Haible  <bruno@clisp.org>
83545
83546         * lib/gcd.h: New file, from gettext-0.11.5.
83547         * lib/gcd.c: New file, from gettext-0.11.5.
83548
83549 2002-11-05  Bruno Haible  <bruno@clisp.org>
83550
83551         * lib/error.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
83552         * lib/getopt.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
83553         * lib/obstack.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
83554         * lib/regex.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
83555
83556         * lib/argmatch.c: Include gettext.h instead of <locale.h> and
83557         <libintl.h>.
83558         * lib/makepath.c: Include gettext.h instead of <locale.h> and
83559         <libintl.h>.
83560
83561         * lib/closeout.c: Include gettext.h instead of <libintl.h>.
83562         * lib/human.c: Include gettext.h instead of <libintl.h>.
83563         * lib/quotearg.c: Include gettext.h instead of <libintl.h>.
83564         * lib/rpmatch.c: Include gettext.h instead of <libintl.h>.
83565         * lib/unicodeio.c: Include gettext.h instead of <libintl.h>.
83566         * lib/userspec.c: Include gettext.h instead of <libintl.h>.
83567         * lib/version-etc.c: Include gettext.h instead of <libintl.h>.
83568         * lib/xmalloc.c: Include gettext.h instead of <libintl.h>.
83569         (textdomain): Remove definition.
83570         * lib/xmemcoll.c: Include gettext.h instead of <libintl.h>.
83571
83572         * lib/long-options.c: Remove include of <libintl.h> and definition of
83573         _.
83574         * lib/same.c: Remove include of <libintl.h> and definition of _.
83575
83576 2002-11-04  Owen Taylor  <otaylor@redhat.com>
83577
83578         * lib/config.charset: A few additions for Solaris.
83579
83580 2002-11-04  Bruno Haible  <haible@clisp.cons.org>
83581
83582         Make it possible to build libcharset with CC=gcc CFLAGS="-x c++".
83583         * lib/localcharset.c (locale_charset): Declare as extern "C".
83584
83585 2002-11-04  Bruno Haible  <haible@clisp.cons.org>
83586
83587         * lib/config.charset: msdos in uk_UA uses CP1125.
83588
83589 2002-11-04  Bruno Haible  <bruno@clisp.org>
83590
83591         * lib/stpcpy.h: New file, from GNU gettext-0.11.5.
83592         * lib/strcase.h: New file, from GNU gettext-0.11.5.
83593         * lib/strpbrk.h: New file, from GNU gettext-0.11.5.
83594         * lib/strstr.h: New file, from GNU gettext-0.11.5.
83595         * lib/xgetcwd.h: New file, from GNU gettext-0.11.5.
83596
83597 2002-11-04  Bruno Haible  <bruno@clisp.org>
83598
83599         * lib/localcharset.c (locale_charset): Don't return an empty string.
83600
83601 2002-11-04  Bruno Haible  <bruno@clisp.org>
83602
83603         * lib/localcharset.c (get_charset_aliases): Add more Windows specific
83604         aliases.
83605
83606 2002-11-04  Bruno Haible  <bruno@clisp.org>
83607
83608         * lib/config.charset: Update for newest glibc. Add canonical names
83609         ISO-8859-14, KOI8-T, TCVN5712-1, GEORGIAN-PS.
83610
83611 2002-11-04  Bruno Haible  <bruno@clisp.org>
83612
83613         * lib/config.charset: Add support for NetBSD.
83614
83615 2002-11-04  Bruno Haible  <bruno@clisp.org>
83616
83617         * lib/config.charset [msdosdjgpp]: For Russian, use CP866.
83618
83619 2002-11-01  Bruno Haible  <bruno@clisp.org>
83620
83621         * configure.in: Add AC_CONFIG_AUX_DIR call.
83622         (AC_OUTPUT): Add m4/Makefile, lib/Makefile. Remove doc/Makefile,
83623         test/Makefile.
83624         * Makefile.in (subdirs): Add m4, lib. Remove doc, test.
83625
83626 2002-09-28  Karl Berry  <karl@gnu.org>
83627
83628         * config/srclist.txt: can't copy install-sh/mkinstalldirs from
83629         installed automake until the next release, since changes have been
83630         made.
83631
83632 2002-09-25  Karl Berry  <karl@gnu.org>
83633
83634         * lib/strdup.c: copy from libc/string (via ../config/srclist*).
83635         * lib/getopt*: copy from libc/posix.
83636         * lib/gettext.h: copy from gettext.
83637         * lib/.cppi-disable: add strdup.c, gettext.h.
83638
83639 2002-09-25  Karl Berry  <karl@gnu.org>
83640
83641         * config/srclist.txt: enable gettext.h check.
83642         * config/config.{guess,sub}: update from prep.
83643         * config/depcomp, install-sh, mdate-sh, missing, mkinstalldirs: update
83644                 from automake 1.6.3.
83645         See srclist*.
83646
83647 2002-08-23  Stefan Monnier  <monnier@cs.yale.edu>
83648
83649         * regex.c (PATFETCH): Remove the translating fetch.
83650         (PATFETCH_RAW): Rename to PATFETCH.
83651         (set_image_of_range): New fun.
83652         (SET_RANGE_TABLE_WORK_AREA): Use it.
83653         (regex_compile): Don't translate the pattern chars so eagerly.
83654         Only do it when inserting an `exactn' bytecode or when handling
83655         a char-range.
83656         (mutually_exclusive_p): Avoid empty statement.
83657
83658 2002-07-06  Jim Meyering  <meyering@lucent.com>
83659
83660         * m4/README: Don't mention Makefile.am.in.
83661         Outline how I've tested changes to .m4 files.  Yep, it's a pain.
83662
83663 2002-07-01  Jim Meyering  <meyering@lucent.com>
83664
83665         * lib/c-stack.c: Include sys/time.h.
83666         From Volker Borchert.
83667
83668 2002-06-26  Paul Eggert  <eggert@twinsun.com>
83669
83670         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for btowc.
83671
83672 2002-06-26  Paul Eggert  <eggert@twinsun.com>
83673
83674         * lib/fnmatch.c, fnmatch_loop.c (WIDE_CHAR_SUPPORT):
83675         New macro.  Use it uniformly instead of
83676         (defined HAVE_WCTYPE_H && defined HAVE_WCHAR_H).
83677         It also uses HAVE_BTOWC, to fix a porting bug on Solaris 2.5.1
83678         reported by Vin Shelton.
83679
83680 2002-06-22  Paul Eggert  <eggert@twinsun.com>
83681
83682         * lib/c-stack.h (segv_handler, c_stack_action) [! defined SA_SIGINFO]:
83683         Do not assume SA_SIGINFO behavior.
83684         Bug reported by Jim Meyering on NetBSD 1.5.2.
83685
83686 2002-06-22  Jim Meyering  <meyering@lucent.com>
83687
83688         * m4/c-stack.m4: New file, from diffutils-2.8.2.
83689         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_C_STACK.
83690
83691         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Don't require AC__GNU_SOURCE,
83692         now that configure.ac uses AC_GNU_SOURCE.
83693         (jm_MACROS): Rename: jm_FUNC_FNMATCH to AC_FUNC_FNMATCH_GNU.
83694         * m4/prereq.m4 (jm_PREREQ_EXCLUDE): Likewise, wrt jm_FUNC_FNMATCH.
83695
83696         Update to latest tools.  Suggestions from Paul Eggert.
83697         * m4/stdbool.m4: New file, from diffutils-2.8.2.
83698         * m4/gnu-source.m4: Update from diffutils-2.8.2.
83699         * m4/fnmatch.m4: Likewise.
83700         * m4/prereq.m4: Change each use of AC_CHECK_HEADERS(stdbool.h)
83701         to AC_HEADER_STDBOOL
83702
83703 2002-06-22  Jim Meyering  <meyering@lucent.com>
83704
83705         * lib/fnmatch.c (ISASCII, ISPRINT): Undefine, to avoid warning about
83706         redefinition due to Solaris 2.6's definition in /usr/include/sys/euc.h.
83707
83708 2002-06-22  Jim Meyering  <meyering@lucent.com>
83709
83710         * lib/c-stack.c, lib/c-stack.h: New files, from diffutils-2.8.2.
83711
83712         * lib/exitfail.c, exitfail.h: Likewise.
83713         * lib/Makefile.am (libfetish_a_SOURCES): Add exitfail.c and exitfail.h.
83714
83715         * lib/Makefile.am (libfetish_a_SOURCES): Add fnmatch_.h in place
83716         of fnmatch.h.
83717         (EXTRA_DIST): Add fnmatch_loop.c.
83718         (libfetish_a_SOURCES): Add c-stack.c and c-stack.h.
83719
83720         * lib/fnmatch_loop.c: New file, from diffutils-2.8.2.
83721         * lib/fnmatch.c: Update from diffutils-2.8.2.
83722         * lib/fnmatch_.h: New file.  From diffutils-2.8.2.
83723         * lib/fnmatch.h: Remove file.
83724
83725 2002-06-21  Jim Meyering  <meyering@lucent.com>
83726
83727         * m4/c-bs-a.m4: Add comment, from diffutils-2.8.2.
83728         * m4/mbrtowc.m4: Likewise.
83729
83730         * m4/mbstate_t.m4: Update from diffutils-2.8.2.
83731         * m4/mbswidth.m4: Reflect name change:
83732         s/AC_MBSTATE_T/AC_TYPE_MBSTATE_T.
83733         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Likewise.
83734
83735         * m4/lib-link.m4: Update from gettext-0.11.2.
83736         * m4/gettext.m4: Likewise.
83737
83738         * m4/jm-macros.m4 (jm_CHECK_ALL_HEADERS): Check for hurd.h.
83739         From Alfred M. Szmidt.
83740
83741 2002-06-18  Paul Eggert  <eggert@twinsun.com>
83742
83743         * lib/file-type.h: Report an error if neither S_ISREG nor
83744         S_IFREG is defined, instead of using a test specific to glibc
83745         2.2.  This should be safe, since POSIX requires S_ISREG and
83746         Unix Version 7 had S_IFREG.  We don't need to check for
83747         <sys/types.h> since we don't use any symbols that it defines.
83748
83749 2002-06-15  Richard Dawe  <richdawe@bigfoot.com>
83750
83751         * lib/Makefile.am (lstat.c, stat.c, .sin.sed): Use t-$@, rather than
83752         $@-t, so that each temporary file name is unique and valid in the first
83753         8 characters, for operation under DOS.
83754
83755 2002-06-15  Paul Eggert  <eggert@twinsun.com>
83756
83757         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Check for st_author.
83758
83759 2002-06-15  Jim Meyering  <meyering@lucent.com>
83760
83761         Work even with DJGPP 2.03, which lacks support for symlinks.
83762         From Richard Dawe.
83763         * lib/xstat.in (S_ISLNK): Define to 0 if neither S_ISLNK nor S_IFLNK
83764         is defined.
83765         * lib/lchown.c (S_ISLNK): Likewise.
83766
83767 2002-06-15  Jim Meyering  <meyering@lucent.com>
83768
83769         * lib/file-type.h (FILE_TYPE_H): Guard entire contents with #ifndef.
83770         For GNU libc 2.2 and newer, ensure that <sys/types.h> and <sys/stat.h>
83771         have been included before this file.
83772
83773 2002-06-14  Jim Meyering  <meyering@lucent.com>
83774
83775         * lib/file-type.h: Use the version from diffutils-2.8.2.
83776         * lib/file-type.c: Likewise.
83777
83778 2002-06-07  Jim Meyering  <meyering@lucent.com>
83779
83780         * m4/prereq.m4 (jm_PREREQ_STAT): Check for sys/param.h and sys/mount.h.
83781         They're needed at least for NetBSD 1.5.2.
83782         ($statxfs_includes): Include those same headers.
83783         ($statxfs_includes): Include sys/vfs.h if available.
83784         ($statxfs_includes): Likewise for sys/statvfs.h.
83785         Check for the following members in both structs statfs and statvfs:
83786         f_basetype, f_type, f_fsid.__val, f_namemax, f_namelen.
83787
83788 2002-06-01  Jim Meyering  <meyering@lucent.com>
83789
83790         * m4/d-type.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Rename macro:
83791         s/D_TYPE_IN_DIRENT/HAVE_STRUCT_DIRENT_D_TYPE/.
83792
83793 2002-05-28  Jim Meyering  <meyering@lucent.com>
83794
83795         * m4/readdir.m4 (jm_FUNC_READDIR): Undefine `mkdir', not `rmdir'.
83796         Reported by Volker Borchert.
83797
83798 2002-05-27  Jim Meyering  <meyering@lucent.com>
83799
83800         Fix a problem seen only on nonconforming systems whereby ls.c's
83801         use of localtime, and then of gettimeofday would cause trouble:
83802         the localtime call used to initialize rpl_gettimeofday's save
83803         mechanism would clobber ls's current local time information so
83804         that in any long listing the first file would always be listed
83805         with date 1970-01-01.  Analysis by Volker Borchert.
83806
83807         * lib/gettimeofday.c (localtime): Undefine.
83808         (rpl_localtime): New function.
83809
83810 2002-05-27  Jim Meyering  <meyering@lucent.com>
83811
83812         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Also replace
83813         localtime.
83814
83815         * m4/readdir.m4 (jm_FUNC_READDIR): Undefine `rmdir' so we don't try to
83816         use the replacement function; it wouldn't resolve at link time.
83817         Reported by Volker Borchert.
83818
83819 2002-05-22  Jim Meyering  <meyering@lucent.com>
83820
83821         * lib/Makefile.am (libfetish_a_SOURCES): Add file-type.c and
83822         file-type.h.
83823         * lib/file-type.h: New file.
83824         * lib/file-type.c (file_type): New file/function.  Extracted from
83825         diffutils.
83826
83827 2002-04-30  Jim Meyering  <meyering@lucent.com>
83828
83829         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_STAT.
83830
83831 2002-04-29  Paul Eggert  <eggert@twinsun.com>
83832
83833         * m4/prereq.m4 (jm_PREREQ_SIG2STR): Remove; all callers changed.
83834
83835 2002-04-29  Paul Eggert  <eggert@twinsun.com>
83836
83837         * m4/prereq.m4 (jm_PREREQ_HARD_LOCALE): Check for stdlib.h.
83838         Do not check for alloca.h (no longer used) or stdbool.h (was never
83839         used?).  Add AM_C_PROTOTYPES since hard-locale.h uses it.
83840
83841 2002-04-29  Paul Eggert  <eggert@twinsun.com>
83842
83843         * lib/hard-locale.c: Upgrade to version used in GNU Diffutils 2.8.1.
83844
83845 2002-04-29  Jim Meyering  <meyering@lucent.com>
83846
83847         * m4/jm-macros.m4 (jm_MACROS): Remove use of AC_FUNC_STRNLEN.
83848         * m4/prereq.m4: Add jm_PREREQ_STRNLEN.
83849         Use AC_FUNC_STRNLEN here instead.
83850
83851         * m4/jm-macros.m4: Don't AC_REQUIRE([AC_PROG_CC_STDC]).
83852         With autoconf-2.53a, it's part of AC_PROG_CC.
83853
83854 2002-04-28  Paul Eggert  <eggert@twinsun.com>
83855
83856         * m4/jm-macros.m4 (jm_MACROS): Add AC_REPLACE_FUNCS(sig2str).
83857         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_SIG2STR.
83858
83859 2002-04-28  Paul Eggert  <eggert@twinsun.com>
83860
83861         * lib/sig2str.h, lib/sig2str.c: New files.
83862         * lib/Makefile.am (libfetish_a_SOURCES): Add sig2str.h.
83863
83864 2002-04-28  Paul Eggert  <eggert@twinsun.com>
83865
83866         * lib/sig2str.h (SIGNUM_BOUND): Do not use WTERMSIG, to avoid
83867         depending on <sys/wait.h> and WTERMSIG.  Default to 64 instead
83868         of 127, since 64 is the largest conceivable number for ancient
83869         nonstandard hosts.
83870         * lib/sig2str.c: Do not include <sys/wait.h>; no longer needed.
83871
83872 2002-04-28  Jim Meyering  <meyering@lucent.com>
83873
83874         * lib/sig2str.c (WTERMSIG): Remove definition (unused).
83875
83876 2002-04-24  Jim Meyering  <meyering@lucent.com>
83877
83878         * m4/prereq.m4 (jm_PREREQ_HARD_LOCALE): New macro.
83879         (jm_PREREQ): Use it.
83880
83881         * m4/getloadavg.m4: Check for these headers: locale.h unistd.h
83882         mach/mach.h fcntl.h.
83883         Check for this function: setlocale.
83884
83885 2002-04-24  Jim Meyering  <meyering@lucent.com>
83886
83887         * lib/gettext.h: New file, from Gettext.
83888         * lib/Makefile.am (INCLUDES): Remove -I../intl.
83889         (libfetish_a_SOURCES): Add gettext.h.
83890
83891 2002-04-16  Jim Meyering  <meyering@lucent.com>
83892
83893         * m4/prereq.m4 (jm_PREREQ_READUTMP): Also check for these members:
83894         ut_pid, ut_id, ut_exit.
83895
83896 2002-04-16  Jim Meyering  <meyering@lucent.com>
83897
83898         * lib/readutmp.h (UT_TYPE): Remove definition (now in who.c).
83899         (HAVE_STRUCT_XTMP_UT_EXIT, HAVE_STRUCT_XTMP_UT_ID): Define.
83900         (HAVE_STRUCT_XTMP_UT_PID, HAVE_STRUCT_XTMP_UT_TYPE): Define.
83901
83902 2002-04-12  Jim Meyering  <meyering@lucent.com>
83903
83904         * m4/ls-mntd-fs.m4 (checking for getmntinfo function...): Remove
83905         now-bogus check for f_type in sys/mount.h.  Instead, just test for the
83906         existence of the getmntinfo function.  Needed for Darwin 5.3.
83907
83908         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Also detect when dirfd is a macro.
83909         This is necessary at least on Darwin 5.3.
83910
83911         * m4/jm-macros.m4: Don't AC_REPLACE(strnlen), now that we use
83912         AC_FUNC_STRNLEN.  Otherwise, we'd end up putting two copies of
83913         strnlen.o in the library, and that makes some versions of ranlib
83914         object.
83915
83916 2002-04-12  Jim Meyering  <meyering@lucent.com>
83917
83918         * lib/dirfd.h (dirfd): Elide prototype if dirfd is a macro.
83919
83920 2002-04-09  Jim Meyering  <meyering@lucent.com>
83921
83922         * m4/malloc.m4: (jm_FUNC_MALLOC): Change the `checking ...' message
83923         to be more precise.  Rather than saying we're checking whether the
83924         function `works', say what we're testing.
83925         * m4/realloc.m4 (jm_FUNC_REALLOC): Likewise.
83926         Reported by Bruno Haible.
83927
83928 2002-03-10  Jim Meyering  <meyering@lucent.com>
83929
83930         * lib/makepath.c (make_path): Remove a comma from a diagnostic.
83931         Suggestion from Santiago Vila.
83932
83933 2002-03-08  Jim Meyering  <meyering@lucent.com>
83934
83935         * lib/rename.c: Mention that this wrapper is needed also on
83936         mips-dec-ultrix4.4 systems.
83937
83938 2002-03-02  Jim Meyering  <meyering@lucent.com>
83939
83940         * lib/gettime.c (gettime): Test HAVE_CLOCK_GETTIME,
83941         not HAVE_CLOCK_SETTIME.
83942
83943 2002-02-27  Paul Eggert  <eggert@twinsun.com>
83944
83945         * m4/jm-macros.m4 (jm_MACROS): Do not replace stime; no longer used.
83946         Check for clock_settime.
83947
83948 2002-02-27  Paul Eggert  <eggert@twinsun.com>
83949
83950         * lib/nanosleep.h: Rename to....
83951         * lib/timespec.h: New name for nanosleep.h.  All uses changed.
83952
83953         * lib/gettime.c: New file.
83954         * lib/settime.c: New file.
83955         * lib/stime.c: Remove.
83956
83957         * lib/Makefile.am (libfetish_a_SOURCES): Add gettime.c, settime.c,
83958         timespec.h.  Remove nanosleep.h.
83959
83960 2002-02-25  Paul Eggert  <eggert@twinsun.com>
83961
83962         * m4/acl.m4: New file.
83963         * m4/jm-macros.m4 (jm_MACROS): Require AC_FUNC_ACL.
83964         Do not check for acl or sys/acl.h, as AC_FUNC_ACL does that now.
83965
83966 2002-02-25  Paul Eggert  <eggert@twinsun.com>
83967
83968         * lib/acl.c, lib/acl.h: New files.
83969         * lib/Makefile.am (libfetish_a_SOURCES): Add acl.h, acl.c.
83970
83971 2002-02-24  Jim Meyering  <meyering@lucent.com>
83972
83973         * lib/strnlen.c (strnlen): Define-away/undef so that an inconsistent
83974         prototype in string.h (on at least AIX4.3.2.0 w/gcc-2.95.3) doesn't
83975         cause trouble.  Reported by Nelson Beebe.
83976
83977 2002-02-23  Paul Eggert  <eggert@twinsun.com>
83978
83979         * lib/path-concat.c (xpath_concat): Reorder code to pacify
83980         compilers that don't know that xalloc_die never returns.
83981
83982 2002-02-20  Jim Meyering  <meyering@lucent.com>
83983
83984         * lib/getdate.c: Regenerate using bison-1.33.
83985
83986 2002-02-17  Jim Meyering  <meyering@lucent.com>
83987
83988         * config/config.guess (main): Don't use `head -1'; it's no longer
83989         portable. Use `sed 1q' instead.
83990
83991 2002-02-16  gettextize  <bug-gnu-gettext@gnu.org>
83992
83993         * m4/codeset.m4: Upgrade to gettext-0.11.
83994         * m4/gettext.m4: Upgrade to gettext-0.11.
83995         * m4/glibc21.m4: Upgrade to gettext-0.11.
83996         * m4/iconv.m4: Upgrade to gettext-0.11.
83997         * m4/isc-posix.m4: Upgrade to gettext-0.11.
83998         * m4/lcmessage.m4: Upgrade to gettext-0.11.
83999         * m4/lib-ld.m4: New file, from gettext-0.11.
84000         * m4/lib-link.m4: New file, from gettext-0.11.
84001         * m4/lib-prefix.m4: New file, from gettext-0.11.
84002         * m4/progtest.m4: Upgrade to gettext-0.11.
84003
84004 2002-02-15  Paul Eggert  <eggert@twinsun.com>
84005
84006         * m4/prereq.m4 (jm_PREREQ_POSIXVER): New macro.
84007         (jm_PREREQ): Use it.
84008
84009 2002-02-15  Paul Eggert  <eggert@twinsun.com>
84010
84011         * lib/posixver.c, lib/posixver.h: New files.
84012         * lib/Makefile.am (libfetish_a_SOURCES): Add them.
84013
84014 2002-02-02  Paul Eggert  <eggert@twinsun.com>
84015             Bruno Haible  <bruno@clisp.org>
84016
84017         * lib/unicodeio.h (print_unicode_char): Add exit_on_error argument.
84018         (fwrite_success_callback): New declaration.
84019         * lib/unicodeio.c (unicode_to_mb): New function, extracted from
84020         print_unicode_char. Call failure callback instead of error.
84021         (fwrite_success_callback): New function.
84022         (exit_failure_callback): New function.
84023         (fallback_failure_callback): New function.
84024         (print_unicode_char): Call unicode_to_mb.
84025
84026 2002-01-26  Jim Meyering  <meyering@lucent.com>
84027
84028         * m4/jm-macros.m4 (jm_MACROS): Require autoconf-2.52g.
84029         * m4/strnlen.m4: Remove file, now that it's part of autoconf.
84030
84031 2002-01-26  Jim Meyering  <meyering@lucent.com>
84032
84033         * lib/Makefile.am (getdate$U.o): Depend on unlocked-io.h.
84034
84035 2002-01-22  Paul Eggert  <eggert@twinsun.com>
84036
84037         * m4/jm-macros.m4 (jm_MACROS): Require AC_FUNC_FSEEKO.
84038
84039 2002-01-22  Jim Meyering  <meyering@lucent.com>
84040
84041         * lib/Makefile.am (Makefile): Don't depend on $(BUILT_SOURCES).
84042         Otherwise, some versions of automake would omit the rule that makes
84043         Makefile from Makefile.in.
84044
84045 2002-01-21  Paul Eggert  <eggert@twinsun.com>
84046
84047         * lib/xmemcoll.h, lib/xmemcoll.c: New files.
84048         * lib/Makefile.am (libfetish_a_SOURCES): Add them.
84049         * lib/memcoll.c: Include errno.h, and declare errno if not defined.
84050         (memcoll): Set errno to zero if there is no error.
84051
84052         * lib/quotearg.c (quotearg_buffer_restyled):
84053         Fix bug with quoting buffers containing NUL when backslashing escapes.
84054         This bug was exposed by the other changes in this patch.
84055         (quotearg_n_options): New arg ARGSIZE.
84056         All callers changed.
84057         (quoting_options_from_style): New function.
84058         (quotearg_n_style): Use it.
84059         (quotearg_n_style_mem): New function.
84060
84061         * lib/quotearg.h (quotearg_n_style_mem): New function.
84062
84063 2002-01-19  Jim Meyering  <meyering@lucent.com>
84064
84065         * m4/jm-macros.m4 (jm_MACROS): Use AC_FUNC_STRNLEN.
84066         Remove useless quotes: DF_PROG="df".
84067         * m4/strnlen.m4: New file.
84068
84069 2002-01-16  Paul Eggert  <eggert@twinsun.com>
84070
84071         * lib/backupfile.c (ISDIGIT): Comment fix.
84072         * lib/getdate.y (ISDIGIT): Likewise.
84073         * lib/posixtm.c (ISDIGIT, year): Likewise.
84074         * lib/strverscmp.c (ISDIGIT): Likewise.
84075         * lib/userspec.c (ISDIGIT): Likewise.
84076
84077 2002-01-16  Jim Meyering  <meyering@lucent.com>
84078
84079         * lib/getdate.y: Add three semicolons, each just before a closing
84080         brace. Bison (as of version 1.31) no longer papers over that mistake.
84081
84082 2002-01-05  Jim Meyering  <meyering@lucent.com>
84083
84084         * lib/version-etc.c (version_etc_copyright): Update copyright year.
84085
84086 2001-12-19  Paul Eggert  <eggert@twinsun.com>
84087
84088         * lib/closeout.c (close_stdout_status): If ferror (stdout), do
84089         not silently exit merely because the output buffer happens to
84090         have nothing pending.
84091
84092 2001-12-18  Paul Eggert  <eggert@twinsun.com>
84093
84094         See the big note in ../ChangeLog.
84095         * lib/human.c (suffixes): Prefer K to k for 1024.
84096         (generate_suffix_backwards): New function.
84097         (human_readable_inexact): Use it.
84098         * lib/xstrtol.c (__xstrtol): If there is no number but there
84099         is a valid suffix, assume 1.  "MB" now means decimal, "MiB" binary.
84100         Accept 'K' as well as 'k'.
84101
84102 2001-12-15  Jim Meyering  <meyering@lucent.com>
84103
84104         * lib/regex.h (__restrict_arr): Update from libc.
84105
84106         * lib/mountlist.h (ME_REMOTE): Recognize file systems of type smbfs
84107         as `remote' if the name starts with `//'.  Suggested by Michael Stone.
84108         (STREQ): Define.
84109
84110 2001-12-14  Jim Meyering  <meyering@lucent.com>
84111
84112         * m4/jm-macros.m4 (jm_MACROS): Check for iswspace.
84113         Suggestion from Bruno Haible.
84114
84115 2001-12-10  Jim Meyering  <meyering@lucent.com>
84116
84117         * lib/linebuffer.c: Remove explicit declarations of xmalloc and
84118         xrealloc, Instead, include "xalloc.h".
84119         (initbuffer): Don't cast xmalloc return value to char*.
84120         (readline): Reword comment.
84121         Don't cast xrealloc return value to char*
84122         Return NULL, not 0.
84123
84124 2001-12-09  Jim Meyering  <meyering@lucent.com>
84125
84126         * lib/modechange.c (mode_compile): Add cast to avoid pedantic warning
84127         about `signed and unsigned type in conditional expression'.
84128         * lib/posixtm.c (posix_time_parse): Likewise.
84129
84130         * lib/xreadlink.c (xreadlink): Add cast to avoid a pedantic warning.
84131
84132         * lib/readtokens.c (readtoken): Declare an index to be of type unsigned
84133         to avoid a pedantic warning.
84134
84135         * lib/getstr.c: Don't include assert.h.
84136         (getstr): Remove warning-evoking assertions.
84137         Return -1 if offset parameter is out of bounds.
84138         Change the type of a local from int to size_t.
84139
84140         * lib/strftime.c (my_strftime_localtime_r): Include this function
84141         definition in the `#if ! HAVE_TM_GMTOFF' block.
84142
84143         * lib/xgethostname.c: Remove declarations of xmalloc and xrealloc.
84144         Include xalloc.h instead.
84145
84146 2001-12-02  Jim Meyering  <meyering@lucent.com>
84147
84148         * lib/tempname.c: Don't declare getenv, thus reverting the change of
84149         2001-11-18.  It's no longer necessary, now that stdlib.h is always
84150         included.
84151
84152         * lib/regex.c [!__BOUNDED_POINTERS__]: Define away __bounded,
84153         __unbounded, and __ptrvalue.  Reported by Uwe H. Steinfeld.
84154
84155 2001-11-30  Akim Demaille  <akim@epita.fr>
84156
84157         * lib/xstrdup.c: Include xalloc.h, so that xstrdup is declared
84158         before being defined.
84159
84160 2001-11-27  Paul Eggert  <eggert@twinsun.com>
84161
84162         * lib/quotearg.h (quotearg_n, quotearg_n_style):
84163         First arg is int, not unsigned.
84164         * lib/quotearg.c (quotearg_n, quotearg_n_style): Likewise.
84165         (SIZE_MAX, UINT_MAX): New macros.
84166         (quotearg_n_options): Abort if N is negative.
84167         Avoid overflow check on hosts where size_t is 64 bits and int
84168         is 32 bits, as overflow is impossible there.
84169         Fix off-by-one typo that caused unnecessary reallocation.
84170
84171 2001-11-27  Jim Meyering  <meyering@lucent.com>
84172
84173         * lib/tempname.c: Merge with version from libc.
84174         * lib/regex.c: Likewise.
84175
84176         * lib/tempname.c: Include stdlib.h unconditionally.  On some old
84177         systems for which STDC_HEADERS is 0, it was not included, resulting in
84178         a warning about an integer-to-pointer conversion problem with getenv.
84179         Reported by Volker Borchert.
84180
84181 2001-11-26  Jim Meyering  <meyering@lucent.com>
84182
84183         * lib/gtod.h: Remove file.
84184         * lib/Makefile.am (libfetish_a_SOURCES): Remove gtod.h.
84185         * lib/gettimeofday.c: Don't include gtod.h.
84186         (GTOD_init): Remove function.
84187         (rpl_gettimeofday): Do its job here instead, rather than aborting.
84188         Suggestion from Volker Borchert.
84189
84190 2001-11-23  Jim Meyering  <meyering@lucent.com>
84191
84192         * lib/hash.h (struct hash_table): Don't define here.  Merely declare
84193         it.
84194         * lib/hash.c (struct hash_table): Define it here instead.
84195
84196 2001-11-22  Jim Meyering  <meyering@lucent.com>
84197
84198         * lib/hash.h: Bracket contents of file with #ifndef HASH_H_ ... #endif.
84199
84200 2001-11-20  Jim Meyering  <meyering@lucent.com>
84201
84202         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Update comment to reflect that
84203         SunOS 4.1.4 and Solaris 2.5.1 lose, too.
84204
84205 2001-11-19  Jim Meyering  <meyering@lucent.com>
84206
84207         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Don't bother with a temporary
84208         directory.  Use "conftestXXXXXX" as the template.
84209         Suggestion from Paul Eggert.
84210
84211         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Close each descriptor
84212         immediately, so the test doesn't mistakenly hit the max-open-files
84213         limit.
84214
84215 2001-11-18  Paul Eggert  <eggert@twinsun.com>
84216
84217         * lib/tempname.c (TMP_MAX): Remove; no longer needed.
84218         (TEMPORARIES): New macro.
84219         (__gen_tempname): Use TEMPORARIES rather than TMP_MAX.  This
84220         removes an artificial limitation (e.g. HP-UX 10.20, where
84221         TMP_MAX is 17576).
84222
84223 2001-11-18  Jim Meyering  <meyering@lucent.com>
84224
84225         * m4/prereq.m4 (jm_PREREQ_TEMPNAME): Check for declaration of getenv.
84226
84227 2001-11-18  Jim Meyering  <meyering@lucent.com>
84228
84229         * lib/tempname.c [!HAVE_DECL_GETENV]: Declare getenv to avoid warning
84230         on SunOS 4.
84231
84232         * lib/Makefile.am (Makefile): Depend on $(BUILT_SOURCES), so those
84233         files will be created before anything else.
84234
84235 2001-11-17  Paul Eggert  <eggert@twinsun.com>
84236
84237         * m4/jm-winsz1.m4 (jm_WINSIZE_IN_PTEM): Do not define
84238         WINSIZE_IN_PTEM if <termios.h> defines struct winsize.
84239
84240 2001-11-17  Jim Meyering  <meyering@lucent.com>
84241
84242         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): New file and macro.
84243         Prompted by a report from Bob Proulx.
84244
84245         * m4/jm-macros.m4 (jm_MACROS): Don't test for mkstemp here.
84246         Instead, require UTILS_FUNC_MKSTEMP.
84247
84248 2001-11-17  Jim Meyering  <meyering@lucent.com>
84249
84250         * m4/jm-macros.m4 (jm_MACROS): Remove code to set POW_LIBM.
84251         Now, that's done as part of AC_FUNC_STRTOD.
84252
84253 2001-11-17  Jim Meyering  <meyering@lucent.com>
84254
84255         * lib/modechange.c (mode_adjust): Fix error introduced on 1999-04-26
84256         that made e.g., `chmod a=,o=w,g=o F' cause F to be group readable
84257         rather than group writable.  Patch by Juan F. Codagnone.
84258
84259         * lib/readtokens.c: Remove explicit declarations of xmalloc and
84260         xrealloc, Instead, include "xalloc.h".
84261
84262         * lib/mountlist.c: Include unlocked-io.h after all system headers.
84263         Remove explicit declarations of xmalloc, xrealloc,
84264         and xstrdup.  Instead, include "xalloc.h".
84265
84266         * lib/argmatch.c, closeout.c, error.c, exclude.c: Include
84267         unlocked-io.h.
84268         * lib/fatal.c, getdate.y, getpass.c, getstr.c, getusershell.c:
84269         Likewise.
84270         * lib/mountlist.c, posixtm.c, readtokens.c, readutmp.c: Likewise.
84271
84272         * lib/regex.c, sha.c, version-etc.c, yesno.c: Likewise.
84273         Reported by Padraig Brady.
84274
84275         * lib/mkstemp.c: #undef mkstemp.
84276         Include config.h.
84277         (rpl_mkstemp): Rename from mkstemp.
84278         Protoize.
84279
84280 2001-11-16  Jim Meyering  <meyering@lucent.com>
84281
84282         * lib/physmem.c [HAVE_SYS_PSTAT_H]: Include <sys/pstat.h>.
84283         (physmem_total) [HAVE_PSTAT_GETSTATIC]: If sysconf couldn't be used to
84284         determine the amount of total physical memory, use pstat_getstatic.
84285         HPUX-11 doesn't define _SC_PHYS_PAGES.
84286         (physmem_available) [HAVE_PSTAT_GETSTATIC && HAVE_PSTAT_GETDYNAMIC]:
84287         If sysconf couldn't be used to determine the amount of available
84288         physical memory, use both pstat_getstatic and pstat_getdynamic.
84289         Based on a patch from Bob Proulx.
84290
84291 2001-11-10  Jim Meyering  <meyering@lucent.com>
84292
84293         * m4/prereq.m4 (jm_PREREQ_PHYSMEM): New function.
84294         (jm_PREREQ): Use it.
84295
84296 2001-11-09  Jim Meyering  <meyering@lucent.com>
84297
84298         * m4/jm-macros.m4: Require autoconf-2.52f.
84299         (AC_FUNC_ERROR_AT_LINE, AC_FUNC_OBSTACK, AC_FUNC_STRTOD):
84300         Use these AC_-prefixed names, not the AM_-prefixed ones.
84301
84302         * m4/afs.m4 (jm_AFS): Quote the body.  Patch by Akim Demaille.
84303
84304 2001-11-05  Jim Meyering  <meyering@lucent.com>
84305
84306         * lib/xstat.in (slash_aware_lstat): Correct a misleading comment.
84307
84308 2001-11-04  Jim Meyering  <meyering@lucent.com>
84309
84310         * m4/fpending.m4: Remove unused cruft that saved, set, and restored
84311         $DEFS.
84312
84313 2001-11-03  Jim Meyering  <meyering@lucent.com>
84314
84315         * m4/jm-glibc-io.m4n (jm_FUNC_GLIBC_UNLOCKED_IO): Quote first arg
84316         of AC_DEFUN.
84317
84318         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Rework so dirfd.c doesn't have to
84319         know the name of the variable in the macro definition.
84320
84321 2001-11-03  Jim Meyering  <meyering@lucent.com>
84322
84323         * lib/argmatch.h (ARGMATCH_TO_ARGUMENT): Remove casts of first two args
84324         in argmatch_to_argument call.
84325
84326         * lib/dirfd.c (dirfd): Reflect the fact that DIR_TO_FD now takes an
84327         argument.
84328
84329         * lib/hash.c (hash_clear): Fix a bug that could lead to an infloop or
84330         e.g., a fault due to an attempt to free a NULL pointer.
84331
84332 2001-11-01  Jim Meyering  <meyering@lucent.com>
84333
84334         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): New macro.
84335         * m4/jm-macros.m4 (jm_MACROS): Require UTILS_FUNC_DIRFD.
84336
84337 2001-11-01  Jim Meyering  <meyering@lucent.com>
84338
84339         * lib/dirfd.c, lib/dirfd.h: New files.
84340         * lib/Makefile.am (libfetish_a_SOURCES): Add dirfd.h.
84341
84342         * lib/hash.c (hash_print) [TESTING]: Clean up.
84343
84344 2001-10-22  Paul Eggert  <eggert@twinsun.com>
84345
84346         * lib/hard-locale.c (alloca): Define to __builtin_alloca if __GNUC__,
84347         to avoid a warning if -Wall.
84348
84349 2001-10-22  Jeff Bailey  <jbailey@outpost.dnsalias.org>
84350
84351         * README: New file
84352         * doc/*: Add COPYING, COPYING.LIB, COPYING.DOC, fdl.texi
84353         (per RMS's instructions, this is now the canonical source)
84354         * lgpl/, gpl/: New directories.
84355
84356 2001-10-21  Paul Eggert  <eggert@twinsun.com>
84357
84358         * lib/regex.c (uintptr_t): Remove macro and decl; it's config.h's job.
84359
84360 2001-10-21  Jim Meyering  <meyering@lucent.com>
84361
84362         * lib/obstack.c (_): Honor the setting of ENABLE_NLS.  Otherwise,
84363         this code would end up calling gettext even in packages built
84364         with --disable-nls.
84365         * lib/getopt.c (_): Likewise.
84366         * lib/regex.c (_): Likewise.
84367
84368 2001-10-20  Paul Eggert  <eggert@twinsun.com>
84369
84370         * m4/error.m4 (jm_PREREQ_ERROR):
84371         Do not invoke AC_CHECK_FUNCS with strerror_r, as
84372         AC_FUNC_STRERROR_R does that.
84373         Check for strerror declaration.
84374
84375         * m4/strerror_r.m4: Add copyright notice, as nontrivial m4 files
84376         are supposed to have them these days.
84377         (AC_FUNC_STRERROR_R): Always do char* test, so that it gets cached.
84378         Merge changes from latest Autoconf CVS.
84379         Rename ac_cv_func_strerror_r_works to ac_cv_func_strerror_r_char_p,
84380         and rename HAVE_WORKING_STRERROR_R to STRERROR_R_CHAR_P, since
84381         POSIX decided to standardize on the int flavor of strerror_r.
84382
84383 2001-10-20  Paul Eggert  <eggert@twinsun.com>
84384
84385         * lib/error.c (strerror_r): Do not declare unless !_LIBC.
84386         Do not check for HAVE_DECL_STRERROR_R missing unless STRERROR_R_CHAR_P.
84387         Use strerror_r that is only a macro, even if it is not a function.
84388         (strerror): Check for HAVE_DECL_STRERROR before declaring.
84389         (private_strerror): Use prototypes, not old-style function definition.
84390         (print_errno_message): New function.
84391         Support the POSIX 'int'-flavored strerror_r, as well as the traditional
84392         char*-flavored one.
84393         (error_tail, error, error_at_line): Use it.
84394
84395 2001-10-11  Jim Meyering  <meyering@lucent.com>
84396
84397         * lib/argmatch.c (argmatch_invalid): Use quotearg_n_style (0, ...
84398         and quote_n (1, ... to avoid clobbering a buffer.
84399
84400 2001-10-05  Jim Meyering  <meyering@lucent.com>
84401
84402         * lib/Makefile.am: (libfetish_a_SOURCES): Add hash-pjw.c and
84403         hash-pjw.h.
84404         * lib/hash-pjw.c: New file (factored out of fileutils' remove.c).
84405         * lib/hash-pjw.h: New file.
84406
84407 2001-09-30  Jim Meyering  <meyering@lucent.com>
84408
84409         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): See if
84410         `struct fsstat' has the `f_fstypename' member.
84411         Use that to define FS_TYPE, which is now used to make
84412         the getfsstat link test tighter.
84413
84414 2001-09-30  Jim Meyering  <meyering@lucent.com>
84415
84416         * lib/mountlist.c [MOUNTED_GETFSSTAT]:
84417         Include <sys/ucred.h>, for Apple Darwin.
84418         Include sys/mount.h and sys/fs_types.h only if available.
84419         (FS_TYPE): Define.
84420         (read_filesystem_list): Use FS_TYPE.
84421
84422 2001-09-29  Paul Eggert  <eggert@twinsun.com>
84423
84424         * lib/exclude.c (excluded_filename): 0 -> false, since it's
84425         a boolean context.
84426
84427 2001-09-29  Jim Meyering  <meyering@lucent.com>
84428
84429         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS)
84430         [one-argument getmntent function]): Include stdio.h before mntent.h.
84431         SunOS 4.1.x needs it for the declaration of `FILE'.
84432         Patch by Volker Borchert.
84433
84434         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS)
84435         Check for these headers: sys/param.h sys/ucred.h sys/mount.h
84436         sys/fs_types.h, and make the link-test for getfsstat guard #include
84437         directives with appropriate #if HAVE_*_H tests so that we can
84438         detect getfsstat on Apple Darwin1.3.7 systems.
84439         Reported by Nelson Beebe.
84440         Fix harmless typo in cache variable name: s/getsstat/getfsstat/.
84441
84442 2001-09-28  Paul Eggert  <eggert@twinsun.com>
84443
84444         Fix bug reported by Petter Reinholdtsen for HP-UX 10.20, which
84445         #defines strtoimax.  Also treat the other strto* functions
84446         like strtoimax.
84447
84448         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX):
84449         Check for strtoul and strtoumax,
84450         as those declarations are made even in the signed case.
84451         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX):
84452         Likewise, for strtol and strtoimax.
84453
84454 2001-09-28  Paul Eggert  <eggert@twinsun.com>
84455
84456         Fix bug reported by Petter Reinholdtsen for HP-UX 10.20, which
84457         #defines strtoimax.  Also treat the other strto* functions
84458         like strtoimax.
84459
84460         * lib/xstrtol.c (strtol): Do not declare if HAVE_DECL_STRTOL.
84461         (strtoul): Do not declare if HAVE_DECL_STRTOUL.
84462         (strtoimax, strtoumax): Do not declare if already defined as a macro.
84463
84464 2001-09-26  Jim Meyering  <meyering@lucent.com>
84465
84466         Most macros in unlocked-io.h had the wrong number of arguments.
84467         * lib/gen-uio: New script.
84468         (USE_UNLOCKED_IO): Define to 1 if not already defined.
84469         * lib/unlocked-io.hin: Remove file.
84470         * lib/Makefile.am (unlocked-io.h): Rewrite to use a separate script,
84471         rather than trying to embed it here.
84472         (EXTRA_DIST): Add gen-uio.  Remove unlocked-io.hin
84473         Reported by Padraig Brady.
84474
84475 2001-09-25  Volker Borchert  <bt@teknon.de>
84476
84477         * lib/gettimeofday.c (rpl_gettimeofday): Declare local variable
84478         `result'.
84479
84480 2001-09-24  Jim Meyering  <meyering@lucent.com>
84481
84482         * m4/gettext.m4: Use the version from gettext-0.10.40, not CVS.
84483
84484 2001-09-23  Jim Meyering  <meyering@lucent.com>
84485
84486         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Add a compile-test
84487         instead of the mere test for existence of mntent.h.  The latter
84488         would get a false-positive on AIX 3.4 systems.
84489         In the outer getmntent if-block, don't die if neither of the getmntent
84490         tests succeeds.  Instead, just fall through and continue with the
84491         remaining tests.
84492
84493 2001-09-23  Jim Meyering  <meyering@lucent.com>
84494
84495         * lib/mountlist.c: Remove useless parentheses in #if directives.
84496         (MOUNTED) [!defined MOUNTED]: Define to _PATH_MOUNTED, for when
84497         the deprecated MOUNTED symbol is no longer defined in mntent.h.
84498
84499 2001-09-22  Jim Meyering  <meyering@lucent.com>
84500
84501         * m4/gettext.m4: New file.  From gettext.
84502         * m4/lcmessage.m4: Sync with gettext -- this changes only comments.
84503         * m4/progtest.m4: Likewise
84504         * m4/isc-posix.m4: Decrement serial number to sync with gettext.
84505         * m4/glibc21.m4: Likewise.
84506
84507         * m4/libintl.m4: Remove.  No longer used.
84508
84509 2001-09-22  Jim Meyering  <meyering@lucent.com>
84510
84511         * lib/localcharset.c: Update from latest gettext.
84512         * lib/config.charset: Likewise.
84513
84514 2001-09-20  Jim Meyering  <meyering@lucent.com>
84515
84516         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX): Check for declaration of
84517         strtoimax.
84518         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Check for declaration of
84519         strtoumax.
84520
84521 2001-09-20  Jim Meyering  <meyering@lucent.com>
84522
84523         * lib/xstrtol.c (strtoimax): Guard declaration with
84524         `#if !HAVE_DECL_STRTOIMAX', rather than just `#ifndef strtoimax'.
84525         The latter fails because some systems (at least rs6000-ibm-aix4.3.3.0)
84526         have their own, conflicting declaration of strtoimax in sys/inttypes.h.
84527         (strtoumax): Likewise, for completeness (it wasn't necessary).
84528
84529 2001-09-17  Paul Eggert  <eggert@twinsun.com>
84530
84531         * lib/strtoimax.c (HAVE_LONG_LONG):
84532         Redefine to HAVE_UNSIGNED_LONG_LONG if unsigned.
84533         (strtoimax): Use sizeof (long), not sizeof strtol (ptr, endptr, base),
84534         to work around bug in IBM C compiler.
84535
84536 2001-09-17  Jim Meyering  <meyering@lucent.com>
84537
84538         * m4/chown.m4, fstypename.m4, getgroups.m4, gettimeofday.m4,
84539         * m4/jm-mktime.m4, lstat.m4, malloc.m4, memcmp.m4, mkdir-slash.m4,
84540         * m4/nanosleep.m4, putenv.m4, readdir.m4, realloc.m4, rename.m4,
84541         * m4/st_dm_mode.m4, stat.m4, strerror_r.m4, timespec.m4, utimbuf.m4,
84542         * m4/utimes.m4: Use AC_DEFINE rather than AC_DEFINE_UNQUOTED,
84543         whenever the right hand side need not be expanded by the shell.
84544
84545 2001-09-16  Paul Eggert  <eggert@twinsun.com>
84546
84547         * m4/fnmatch.m4 (jm_FUNC_FNMATCH): Remove test for GNU C
84548         library.  It's not correct, as some older glibcs are buggy.
84549         fnmatch wasn't fixed until glibc 2.2.
84550
84551         Use AC_DEFINE, not AC_DEFINE_UNQUOTED, as there's no
84552         special shell magic here.
84553
84554 2001-09-16  Jim Meyering  <meyering@lucent.com>
84555
84556         * m4/mkdir-slash.m4 (UTILS_FUNC_MKDIR_TRAILING_SLASH): New file/macro.
84557         * m4/jm-macros.m4: Require it.
84558
84559 2001-09-16  Jim Meyering  <meyering@lucent.com>
84560
84561         * lib/mkdir.c: New file.
84562
84563 2001-09-15  Jim Meyering  <meyering@lucent.com>
84564
84565         * m4/jm-macros.m4: Check for help2man.
84566
84567 2001-09-11  Jim Meyering  <meyering@lucent.com>
84568
84569         * m4/host-os.m4 (UTILS_HOST_OS): New file/macro.
84570         The body, by Paul Eggert, was moved here from configure.in.
84571         * m4/jm-macros.m4: Require UTILS_HOST_OS.
84572
84573 2001-09-04  Paul Eggert  <eggert@twinsun.com>
84574
84575         * m4/prereq.m4 (jm_PREREQ_XREADLINK): New macro.
84576         (jm_PREREQ): Use it.
84577
84578 2001-09-04  Paul Eggert  <eggert@twinsun.com>
84579
84580         * lib/xreadlink.c (xreadlink): Omit size_t* arg.  All uses changed.
84581         Use ssize_t, not int, to store result of readlink.
84582         Check for ssize_t overflow as well as size_t overflow,
84583         as POSIX says the result of readlink is implementation-defined
84584         when ssize_t overflows.
84585         Remove unnecessary cast to char*.
84586         Use free+malloc instead of realloc, as the storage doesn't need
84587         to be preserved and it's clearer and can be more efficient that way.
84588         (SIZE_MAX, SSIZE_MAX): New macros, if <limits.h> doesn't declare.
84589         * lib/xreadlink.h (xreadlink): Update prototype.
84590
84591 2001-09-04  Paul Eggert  <eggert@twinsun.com>
84592
84593         * lib/xgetcwd.c: Revert some of the previous change; intead,
84594         fix the HAVE_GETCWD_NULL code to behave more like the
84595         !HAVE_GETCWD_NULL code used to.
84596
84597         Include "xalloc.h".
84598         (xgetcwd): Do not return NULL when memory is exhausted; instead,
84599         invoke xalloc_die.
84600
84601 2001-09-03  Paul Eggert  <eggert@twinsun.com>
84602
84603         * m4/prereq.m4 (jm_PREREQ_XGETCWD): Check for limits.h and
84604         sys/param.h, as pathmax.h includes them.
84605
84606 2001-09-03  Paul Eggert  <eggert@twinsun.com>
84607
84608         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_XGETCWD.
84609         (jm_PREREQ_XGETCWD): New macro.
84610
84611         * m4/getcwd.m4: New file.
84612
84613 2001-09-03  Paul Eggert  <eggert@twinsun.com>
84614
84615         * lib/xgetcwd.c: Fix the !HAVE_GETCWD_NULL code to behave more
84616         like the HAVE_GETCWD_NULL code.
84617         Include pathmax.h if not HAVE_GETCWD.
84618         Do not include xalloc.h.
84619         (INITIAL_BUFFER_SIZE): New symbol.
84620         Do not use xmalloc / xrealloc, since the caller is responsible for
84621         handling errors.  Preserve errno around `free' during failure.
84622         Do not overrun buffer when using getwd.
84623
84624 2001-09-03  Paul Eggert  <eggert@twinsun.com>
84625
84626         * lib/xgetcwd.c (xgetcwd): Use HAVE_GETCWD_NULL, not (defined
84627         __GLIBC__ && __GLIBC__ >= 2), to decide whether to use
84628         getcwd (NULL, 0).
84629
84630 2001-09-03  Paul Eggert  <eggert@twinsun.com>
84631
84632         * lib/exclude.c (fnmatch_no_wildcards): Fix confusion between
84633         usage of FNM_CASEFOLD and FNM_LEADING_DIR.  The bug was
84634         spotted by Jim Meyering.
84635
84636 2001-09-03  Jim Meyering  <meyering@lucent.com>
84637
84638         * lib/xreadlink.c (xreadlink): Preserve errno around `free' during
84639         failure.
84640
84641 2001-09-02  Jim Meyering  <meyering@lucent.com>
84642
84643         * lib/error.c: Update from GNU libc.
84644
84645 2001-09-01  Jim Meyering  <meyering@lucent.com>
84646
84647         * m4/jm-macros.m4 (jm_MACROS): Check for canonicalize_file_name.
84648         Used by df.
84649
84650 2001-09-01  Jim Meyering  <meyering@lucent.com>
84651
84652         * lib/xreadlink.c: New file.
84653         * lib/xreadlink.h: New file.
84654         * lib/Makefile.am (libfetish_a_SOURCES): Add xreadlink.c and
84655         xreadlink.h.
84656
84657         * lib/regex.c (uintptr_t) [!_LIBC]: Define to private_uintptr_t, so it
84658         doesn't conflict with sparc Solaris 7's definition in
84659         /usr/include/sys/int_types.h.
84660
84661         * lib/exclude.c: Use `""', not `<>' to #include non-system header
84662         files.
84663         (fnmatch_no_wildcards): Rewrite not to use function names, strcasecmp
84664         and strncasecmp as r-values.  Unixware didn't have declarations.
84665
84666 2001-08-31  Paul Eggert  <eggert@twinsun.com>
84667
84668         * lib/xstrtol.h: Add copyright notice.
84669         (_DECLARE_XSTRTOL): Improve quality of diagnostic for
84670         LONGINT_INVALID_SUFFIX_CHAR.
84671
84672 2001-08-31  Paul Eggert  <eggert@twinsun.com>
84673
84674         * lib/xstrtol.c (strtoimax): New decl.
84675
84676 2001-08-31  Paul Eggert  <eggert@twinsun.com>
84677
84678         * lib/xgetcwd.c: Don't include pathmax.h.
84679         Include stdlib.h and unistd.h if available.
84680         Include xalloc.h.
84681         (xmalloc, xstrdup, free): Remove decls.
84682         (xgetcwd): Don't assume sizes fit in unsigned.
84683         Check for overflow when computing sizes.
84684         Simplify reallocation code.
84685
84686 2001-08-31  Paul Eggert  <eggert@twinsun.com>
84687
84688         * lib/savedir.c (savedir): Remove size parameter, as POSIX says that
84689         a directory's st_size can have an arbitrary value, so the old
84690         usage could waste an arbitrary amount of memory.  All uses
84691         changed.
84692         * lib/savedir.h: Update prototype.
84693
84694 2001-08-31  Paul Eggert  <eggert@twinsun.com>
84695
84696         * lib/Makefile.am (libfetish_a_SOURCES): Remove strtoxmax.c.
84697
84698         * lib/strtoimax.c: Renamed from strtoxmax.c, removing the
84699         old strtoimax.c.
84700
84701         Also, make the following further changes to make this file's
84702         configuration more similar to that of strtol.c:
84703         (UNSIGNED): Renamed from STRTOUXMAX_UNSIGNED.  All uses changed.
84704         (strtoumax, uintmax_t, strtoull, strtol): Remove.
84705         (intmax_t, strtoimax, strtol, strtoll): New macros, if UNSIGNED.
84706         (strtoimax): Renamed from strtoumax.  All uses of unsigned values
84707         changed to signed values.
84708
84709         And make the following changes as well:
84710         Fix copyright notice, as 1999 was missing.
84711         (verify): New macro.
84712         (strtoimax): Check sizes at compile-time, not run-time.
84713         Prefer strtol to strtoll if both work.
84714         (main): Remove; it was not that useful and was a pain to maintain.
84715
84716         * lib/strtoumax.c: Include strtoimax.c, not strtouxmax.c.
84717
84718 2001-08-31  Jim Meyering  <meyering@lucent.com>
84719
84720         * lib/xgetcwd.c (xgetcwd): Reorganize to avoid some duplication.
84721         Use an initial, malloc'd, buffer of length 128 rather than
84722         a statically allocated one of length 1024.
84723
84724 2001-08-30  Paul Eggert  <eggert@twinsun.com>
84725
84726         Simplify code, partly by assuming autoconf 2.52 semantics.
84727
84728         * m4/Makefile.am (EXTRA_DIST): Remove uintmax_t.m4.
84729
84730         * m4/inttypes.m4 (AC_PREREQ): Bump to 2.52.
84731         (jm_AC_HEADER_INTTYPES_H): Remove; now done by autoconf in 2.52.
84732         All uses removed.
84733         (jm_AC_TYPE_INTMAX_T, jm_AC_TYPE_UINTMAX_T):
84734         Move AC_REQUIRE to next-to-top level, to avoid confusion.
84735         Use 2.52's AC_CHECK_TYPE instead of merely looking for the header.
84736         * m4/prereq.m4 (jm_PREREQ_HUMAN): Don't require
84737         jm_AC_HEADER_INTTYPES_H.
84738         * m4/jm-macros.m4 (jm_MACROS): Likewise.
84739
84740         * m4/uintmax_t.m4: Remove, as it duplicates inttypes.m4.
84741
84742         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX):
84743         Quote first arg of AC_DEFUN.
84744         Require jm_AC_TYPE_UINTMAX_T and jm_AC_TYPE_UNSIGNED_LONG_LONG
84745         since they are needed to parse the include file even if we need
84746         only xstrtoimax.  Simplify logic behind the args to AC_REPLACE.
84747         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Likewise,
84748         but with opposite signedness.
84749
84750 2001-08-30  Paul Eggert  <eggert@twinsun.com>
84751
84752         Merge 'exclude' changes from tar 1.13.22.
84753         This fixes one or two unlikely storage allocation overflow bugs,
84754         but doesn't change user-visible behavior otherwise.
84755
84756 2001-08-30  Paul Eggert  <eggert@twinsun.com>
84757
84758         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_EXCLUDE.
84759         (jm_PREREQ_EXCLUDE): New macro.
84760
84761 2001-08-30  Paul Eggert  <eggert@twinsun.com>
84762
84763         * lib/quotearg.c: BSD/OS 4.1 wchar.h requires FILE and struct
84764         tm to be declared.
84765
84766 2001-08-30  Paul Eggert  <eggert@twinsun.com>
84767
84768         * lib/hash.c: Remove '2001' from copyright notice.
84769
84770 2001-08-30  Paul Eggert  <eggert@twinsun.com>
84771
84772         * lib/full-write.h: New file.
84773         * lib/Makefile.am (libfetish_a_SOURCES): Add full-write.h.
84774         * lib/full-write.c: Correct credits, as cccp.c no longer
84775         exists and anyway it was so heavily changed from the old cccp
84776         code as to be unrecognizable.  Include full-write.h.
84777         (full_write): Return size_t, with short writes meaning failure.
84778         All callers changed.  This fixes a bug with large buffers
84779         on 64-bit hosts.
84780         * lib/utime.c: Include full-write.h.
84781
84782 2001-08-30  Paul Eggert  <eggert@twinsun.com>
84783
84784         * lib/exclude.c (bool): Declare, perhaps by including stdbool.h.
84785         (<sys/types.h>): Include only if HAVE_SYS_TYPES_H.
84786         (<stdlib.h>, <string.h>, <strings.h>, <inttypes.h>, <stdint.h>):
84787         Include if available.
84788         (<xalloc.h>): Include
84789         (SIZE_MAX): Define if <stdint.h> or <inttypes.h> doesn't.
84790         (verify): New macro.  Use it to verify that EXCLUDE macros do not
84791         collide with FNM macros.
84792         (struct patopts): New struct.
84793         (struct exclude): Use it, as exclude patterns now come with options.
84794         (new_exclude): Support above changes.
84795         (new_exclude, add_exclude_file):
84796         Initial size must now be a power of two to simplify overflow checking.
84797         (free_exclude, fnmatch_no_wildcards): New function.
84798         (excluded_filename): No longer requires options arg, as the options
84799         are determined by add_exclude.  Now returns bool, not int.
84800         (excluded_filename, add_exclude):
84801         Add support for the fancy new exclusion options.
84802         (add_exclude, add_exclude_file): Now takes int options arg.
84803         Check for arithmetic overflow when computing sizes.
84804         (add_exclude_file): xrealloc might modify errno, so don't
84805         realloc until after errno might be used.
84806
84807         * lib/exclude.h (EXCLUDE_ANCHORED, EXCLUDE_INCLUDE,EXCLUDE_WILDCARDS):
84808         New macros.
84809         (free_exclude): New decl.
84810         (add_exclude, add_exclude_file): Now takes int options arg.
84811         (excluded_filename): No longer requires options arg, as the options
84812         are determined by add_exclude.  Now returns bool, not int.
84813
84814 2001-08-30  Paul Eggert  <eggert@twinsun.com>
84815
84816         * lib/alloca.c (alloca): Arg is of type size_t, not unsigned.
84817
84818 2001-08-27  Jim Meyering  <meyering@lucent.com>
84819
84820         * lib/Makefile.am (libfetish_a_SOURCES): Add strtoxmax.c
84821
84822         * lib/version-etc.c (N_): Remove definition.
84823         Revert most of last change.
84824         Instead, simply don't mark the `Copyright...' string for translation.
84825         Based on advice from Paul Eggert.
84826
84827         * lib/strtoxmax.c: Tweak comment.
84828
84829 2001-08-26  Jim Meyering  <meyering@lucent.com>
84830
84831         * m4/jm-macros.m4: Require jm_AC_PREREQ_XSTRTOIMAX.
84832
84833         * m4/xstrtoimax.m4: New file.
84834         * m4/xstrtoumax.m4: Add comments explaining why we
84835         AC_REPLACE_FUNCS(strtol).
84836
84837 2001-08-26  Jim Meyering  <meyering@lucent.com>
84838
84839         * lib/version-etc.c (version_etc_copyright_fmt): Replace literal year
84840         of copyright with `%s' so translators don't get an untranslated
84841         message in 2002.
84842         (COPYRIGHT_YEAR): Define.
84843         (version_etc): Use fprintf rather than fputs.
84844         Suggestion from Ulrich Drepper.
84845
84846         * lib/Makefile.am (libfetish_a_SOURCES): Add xstrtoimax.c.
84847
84848         * lib/strtoll.c: New file, from GNU libc.
84849         * lib/xstrtoimax.c: New file.
84850
84851         * lib/xstrtol.h: Add xstrtoimax.
84852         * lib/strtoumax.c: New file.  Simply include "strtoumax.c".
84853         * lib/strtoimax.c: New file.  Likewise, but first define
84854         STRTOUXMAX_SIGNED.
84855
84856         * lib/strtoumax.c: Factor to work both for unsigned and signed types,
84857         ...
84858         * lib/strtoxmax.c: ... then renamed to this.
84859
84860 2001-08-18  Paul Eggert  <eggert@twinsun.com>
84861
84862         * m4/inttypes.m4: Add AC_PREREQ(2.13).
84863         (jm_AC_HEADER_INTTYPES_H): Test for intmax_t, too.
84864         (jm_AC_TYPE_INTMAX_T): New macro.
84865         (jm_AC_TYPE_UINTMAX_T): Moved here from uintmax_t.m4.
84866
84867         * m4/longlong.m4 (jm_AC_TYPE_LONG_LONG): New macro.
84868
84869         * m4/longlong.m4: Renamed from ulonglong.m4.
84870         * m4/inttypes.m4: Renamed from inttypes_h.m4.
84871         * m4/uintmax_t.m4: Removed.
84872
84873 2001-08-13  Paul Eggert  <eggert@twinsun.com>
84874
84875         * lib/Makefile.am (unlocked-io.h): Do not append "_unlocked" twice.
84876         Port to Solaris 8, where 'sed' requires a space after the 'r'
84877         command, and where sh dislikes "$/".  Clean up the spacing a bit.
84878         Redirect output to $tmp just once.
84879
84880 2001-08-12  Paul Eggert  <eggert@sic.twinsun.com>
84881
84882         * lib/addext.c (<errno.h>): Include.
84883         (errno): Declare if not defined.
84884         (addext): Work correctly when pathconf returns -1 and leaves
84885         errno alone because there is no limit.  Also, work even if
84886         pathconf returns a value greater than SIZE_MAX.
84887
84888 2001-08-12  Jim Meyering  <meyering@lucent.com>
84889
84890         * m4/afs.m4, assert.m4, bison.m4, check-decl.m4, chown.m4, d-ino.m4,
84891         d-type.m4, dos.m4, error.m4, fnmatch.m4, fpending.m4, fstypename.m4,
84892         fsusage.m4, ftruncate.m4, getgroups.m4, glibc.m4, gnu-source.m4,
84893         group-member.m4, jm-glibc-io.m4, jm-macros.m4, jm-mktime.m4,
84894         jm-winsz1.m4, jm-winsz2.m4, lchown.m4, lib-check.m4, libintl.m4,
84895         link-follow.m4, ls-mntd-fs.m4, lstat.m4, malloc.m4, mbrtowc.m4,
84896         mbstate_t.m4, mbswidth.m4, memcmp.m4, nanosleep.m4, perl.m4,
84897         prereq.m4, putenv.m4, readdir.m4, realloc.m4, regex.m4, rename.m4,
84898         rmdir-errno.m4, search-libs.m4, st_dm_mode.m4, st_mtim.m4, stat.m4,
84899         strftime.m4, timespec.m4, unlink-busy.m4, uptime.m4, utimbuf.m4,
84900         utime.m4, utimes.m4, xstrtoumax.m4:
84901         Quote the first argument in each use of AC_DEFUN.
84902
84903 2001-08-12  Jim Meyering  <meyering@lucent.com>
84904
84905         * lib/xgetcwd.c (xgetcwd) [defined __GLIBC__ && __GLIBC__ >= 2]:
84906         Simply `return getcwd (NULL, 0);'.
84907         [! (defined __GLIBC__ && __GLIBC__ >= 2)]:
84908         Use 1300 as initial value for length, not PATH_MAX.
84909
84910         * lib/pathmax.h: Clean up cpp syntax.
84911
84912 2001-08-12  Jim Meyering  <meyering@lucent.com>
84913
84914         * lib/gettimeofday.c: New file.
84915         * lib/gtod.h: New file.
84916         * lib/Makefile.am (libfetish_a_SOURCES): Add gtod.h.
84917
84918 2001-08-05  Jim Meyering  <meyering@lucent.com>
84919
84920         * m4/jm-macros.m4: Require autoconf-2.52.
84921
84922 2001-08-04  Jim Meyering  <meyering@lucent.com>
84923
84924         * lib/error.h (__attribute__): Remove `|| __STRICT_ANSI__' from #if
84925         stmt, to get in sync with glibc.
84926
84927 2001-08-03  Paul Eggert  <eggert@twinsun.com>
84928
84929         The following changes are from gettext 0.10.39 as maintained by
84930         Bruno Haible.
84931
84932         * lib/mbswidth.h (MBSW_REJECT_UNPRINTABLE, MBSW_REJECT_INVALID):
84933         Renamed from MBSW_ACCEPT_UNPRINTABLE and MBSW_ACCEPT_INVALID
84934         with inverted sense.  All uses changed.
84935
84936         * lib/mbswidth.c: Don't include <limits.h>.
84937         Include <stdlib.h> and <string.h> unconditionally.
84938         (iswcntrl, mbsinit, ISCNTRL): New macros.
84939         (mbsnwidth): Use K&R style function declarations.
84940         Don't bother checking for MB_LEN_MAX == 1, since the compiler
84941         can optimize it when MB_CUR_MAX == 1.
84942         The width of control characters is zero, not 1.
84943
84944 2001-08-03  Paul Eggert  <eggert@twinsun.com>
84945
84946         The following changes are from gettext 0.10.39 as maintained by
84947         Bruno Haible, except that getline.m4 continues to use AC_LIBOBJ.
84948
84949         * m4/codeset.m4: Upgrade to serial AM1.
84950         (AM_LANGINFO_CODESET): Renamed from jm_LANGINFO_CODESET;
84951         all uses changed.  Quote first arg of AC_DEFUN.
84952         (am_cv_langinfo_codeset): Renamed from jm_cv_langinfo_codeset.
84953
84954         * m4/iconv.m4: Upgrade to serial AM2.
84955         (AM_ICONV): Renamed from jm_ICONV; all uses changed.
84956         Add --with-libconv-prefix.
84957         Quote first arg of AC_DEFUN.  Add description for ICONV_CONST.
84958         (am_cv_func_iconv): Renamed from jm_cv_func_iconv.
84959         (am_cv_lib_iconv): Renamed from jm_cv_lib_iconv.
84960         (am_cv_proto_iconv): Renamed from jm_cv_proto_iconv.
84961         * m4/jm-macros.m4 (jm_MACROS): Reflect s/jm_/AM_/ renamings.
84962
84963         * m4/c-bs-a.m4 (AC_C_BACKSLASH_A): Quote first arg of AC_DEFUN.
84964         * m4/getline.m4 (AM_FUNC_GETLINE): Likewise.
84965         * m4/glibc21.m4 (jm_GLIBC21): Likewise.
84966         * m4/inttypes_h.m4 (jm_AC_HEADER_INTTYPES_H): Likewise.
84967         * m4/isc-posix.m4 (AC_ISC_POSIX): Likewise.
84968         * m4/lcmessage.m4 (AM_LC_MESSAGES): Likewise.
84969         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
84970         * m4/uintmax_t.m4 (jm_AC_TYPE_UINTMAX_T): Likewise.
84971         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Likewise.
84972
84973         * m4/getline.m4 (AM_FUNC_GETLINE): Don't bother checking for
84974         string.h any more.
84975
84976         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): If not found, print "no",
84977         not the default value.
84978
84979         2001-06-25  Bruno Haible  <haible@clisp.cons.org>
84980         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Don't require AM_C_PROTOTYPES.
84981         Also check for mbsinit.  Needed for SCO 3.2v5.0.2.
84982         Also include <string.h>; this is where AIX 3.2.5 declares wcwidth.
84983         Also check for iswcntrl, used for wcwidth fallback.
84984         Use AC_TRY_COMPILE to emulate AC_CHECK_DECLS, for portability
84985         to Autoconf 2.13.
84986
84987 2001-08-03  Jim Meyering  <meyering@lucent.com>
84988
84989         * m4/mbrtowc.m4 (jm_FUNC_MBRTOWC): Use `#include', not `@%:@include',
84990         as it was in the original.  Reported by Paul Eggert.
84991
84992 2001-07-16  Jim Meyering  <meyering@lucent.com>
84993
84994         * m4/gettimeofday.m4: New file.
84995         Prompted by a report from Bernhard Baehr.
84996
84997 2001-07-15  Jim Meyering  <meyering@lucent.com>
84998
84999         * m4/Makefile.am.in (Makefile.am): Remove most of the unlocked-io.h
85000         stuff. Now it's in ../Makefile.cfg.
85001
85002 2001-07-15  Jim Meyering  <meyering@lucent.com>
85003
85004         * lib/Makefile.am (EXTRA_DIST): Add unlocked-io.hin.
85005         (BUILT_SOURCES): Add unlocked-io.h.
85006         (io_functions): Define.
85007         (unlocked-io.h): New rule.
85008         (DISTCLEANFILES): Add unlocked-io.h.
85009         (all-local): Depend on unlocked-io.h, to ensure it is created.
85010
85011         * lib/unlocked-io.hin: New file
85012
85013         * lib/regex.c: Update from glibc.
85014
85015 2001-07-05  Jim Meyering  <meyering@lucent.com>
85016
85017         * lib/Makefile.am (noinst_HEADERS): Remove definition, per new automake
85018         recommendation.
85019         (libfetish_a_SOURCES): Put all .h files here instead.
85020         Remove a thus-exposed (better checks in automake) duplicate and
85021         two unnecessary .h files.
85022
85023 2001-07-04  Jim Meyering  <meyering@lucent.com>
85024
85025         * m4/Makefile.am.in (glibc-io.struct): New target.  Rework the code
85026         that generates jm-glibc-io.m4 so that it doesn't trigger any make
85027         distcheck failure.
85028
85029 2001-07-02  Jim Meyering  <meyering@lucent.com>
85030
85031         The following changes were prompted by suggestions from Bruno Haible.
85032
85033         * m4/jm-glibc-io.m4n: New file, the template from which jm-glibc-io.m4
85034         is now generated.
85035         * m4/Makefile.am.in (Makefile.am): Include jm-glibc-io.m4n in emitted
85036         definition of EXTRA_DIST.
85037         (Makefile.am): Emit the dependency, `all-local: jm-glibc-io.m4' to
85038         ensure that the generated file is created/updated whenever the list
85039         of $(unlocked_functions) is changed.
85040         (jm-glibc-io.m4): New rule.
85041         (unlocked-io.h): New rule -- currently unused.
85042
85043 2001-06-24  Jim Meyering  <meyering@lucent.com>
85044
85045         * m4/regex.m4 (jm_INCLUDED_REGEX): Use a quadrigraph to represent an
85046         unmatched right bracket, rather than kludging it with an extra,
85047         falsely-matching quote in a comment.  Patch by Akim Demaille.
85048
85049 2001-06-11  Jim Meyering  <meyering@lucent.com>
85050
85051         * lib/regex.c: Update from GNU libc.
85052
85053 2001-05-27  Jim Meyering  <meyering@lucent.com>
85054
85055         * m4/prereq.m4 (jm_PREREQ_READUTMP): Check for ut_type in struct utmpx.
85056         Check for ut_type in struct utmp.
85057
85058 2001-05-27  Jim Meyering  <meyering@lucent.com>
85059
85060         * lib/readutmp.h (UT_TYPE): Define.
85061
85062 2001-05-24  Jim Meyering  <meyering@lucent.com>
85063
85064         * lib/argmatch.c: Include "quote.h".
85065         (argmatch_invalid): Remove explicit `' quotes.  Instead, use the
85066         quote function.  Reported by Göran Uddeborg.
85067
85068 2001-05-22  Jim Meyering  <meyering@lucent.com>
85069
85070         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't use AC_LIBOBJ(strftime),
85071         now that we use the package-supplied version unconditionally.
85072         (jm_FUNC_STRFTIME): Don't replace strftime, for the same reason.
85073
85074 2001-05-21  Jim Meyering  <meyering@lucent.com>
85075
85076         * m4/regex.m4: Change a couple backticks to single quotes to avoid
85077         shell syntax errors.
85078
85079 2001-05-21  Alexandre Duret-Lutz  <duret_g@epita.fr>
85080
85081         * m4/dos.m4 (jm_AC_DOS): Check for _WIN32, __WIN32__, and __MSDOS__.
85082
85083 2001-05-20  Paul Eggert  <eggert@twinsun.com>
85084
85085         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME):
85086         Don't bother to check library strftime, since
85087         we'll be using our own my_strftime function anyway.
85088         Define my_strftime instead of strftime.
85089
85090 2001-05-20  Alexandre Duret-Lutz  <duret_g@epita.fr>
85091
85092         * lib/dirname.c (dir_name): Compute append_dot using path, not newpath
85093         which is not yet declared.
85094
85095 2001-05-15  Jim Meyering  <meyering@lucent.com>
85096
85097         * m4/regex.m4: Use proper quoting so brackets appear in the test
85098         program.
85099         Reported by, and with help from, Bruno Haible.
85100
85101 2001-05-13  Jim Meyering  <meyering@lucent.com>
85102
85103         * m4/jm-macros.m4 (major_t, minor_t): Define to unsigned int if
85104         undefined.
85105
85106 2001-05-11  Paul Eggert  <eggert@twinsun.com>
85107
85108         dirname code cleanup.  base_name now behaves more compatibly
85109         with POSIX basename when given file names that have trailing
85110         slashes, and similarly for dir_name.  Add new primitives
85111         base_len and dir_len.  Put the directory-name-related decls
85112         into dirname.h.
85113
85114         * lib/addext.c (ISSLASH, base_name): Remove; now in dirname.h.
85115         * lib/backupfile.c (base_name): Likewise.
85116         * lib/basename.c (FILESYSTEM_PREFIX_LEN, PARAMS, ISSLASH): Likewise.
85117         * lib/dirname.c (FILESYSTEM_PREFIX_LEN, ISSLASH): Likewise.
85118         * lib/makepath.c (strip_trailing_slashes): Likewise.
85119         * lib/path-concat.c (DIRECTORY_SEPARATOR, FILESYSTEM_PREFIX_LEN,
85120         ISSLASH): Likewise.
85121         * lib/rename.c (strip_trailing_slashes): Likewise.
85122         * lib/same.c (base_name): Likewise.
85123         * lib/stripslash.c (ISSLASH): Likewise.
85124
85125         * lib/addext.c: Include <dirname.h> after size_t is defined.
85126         * lib/backupfile.c: Likewise.
85127
85128         * lib/addext.c (addext): Use base_len to trim redundant
85129         trailing slashes instead of doing it ourselves.
85130         But do not trim the last slash if it is not redundant.
85131
85132         * lib/backupfile.c (find_backup_file_name,
85133         max_backup_version): Use base_len instead of rolling it ourselves.
85134         Handle the case of "" and (on DOS) "C:" correctly.
85135
85136         * lib/basename.c: Do not include <stdio.h>, <assert.h>; no longer
85137         needed. Include <string.h>, <dirname.h>.
85138         (base_name): Allow file names ending in slashes, other than names
85139         that are all slashes.  In this case, return the basename followed
85140         by the slashes.  This is more general, and can be used in places
85141         where the original base_name purposely had an assertion failure.
85142         (base_len): New function.
85143
85144         * lib/dirname.c: Include <string.h> instead of <stdlib.h>.
85145         Do not include <assert.h>; no longer needed.
85146         Include xalloc.h.
85147         (memrchr): Remove decl.
85148         (dir_name_r): Remove.
85149         (dir_len): Renamed from dirlen.  All callers changed.
85150         Rewrite in terms of base_name, for simplicity and consistency.
85151         (dir_name): Never return NULL.  All callers changed.
85152         Do not include <stdlib.h> in test program; no longer needed.
85153         return 0; is fine for test program.
85154
85155         * lib/dirname.h (DIRECTORY_SEPARATOR, ISSLASH, FILESYSTEM_PREFIX_LEN):
85156         New macros.
85157         (base_name, base_len, dir_len, strip_trailing_slashes): New decls.
85158
85159         * lib/path-concat.c (path_concat): Use base_len to compute
85160         base length, not strlen; this means we cannot rely on memcpy
85161         to null-terminate.
85162
85163         * lib/same.c (STREQ): Remove.
85164         (same_name): Handle the case where the basename ends in trailing '/'.
85165
85166         * lib/stripslash.c (strip_trailing_slashes): Return nonzero if
85167         a slash was stripped.  Do not strip the last slash after a
85168         file system prefix.
85169
85170 2001-05-11  Paul Eggert  <eggert@twinsun.com>
85171
85172         * lib/Makefile.am (libfetish_a_SOURCES):
85173         Add strftime.c, since we now compile it on all hosts.
85174
85175         * lib/strftime.c (my_strftime):
85176         Define to nstrftime if emacs, but only if my_strftime is not defined.
85177         (extra_args, extra_args_spec, extra_args_spec_iso): Rename from
85178         ut_argument, ut_argument_spec, ut_argument_spec_iso, respectively.
85179         Add one more extra argument: a nanoseconds value.
85180         All uses changed.
85181         (ns): New macro.
85182         (my_strftime function): Add %N format.
85183         (emacs_strftimeu): Renamed from emacs_strftime,
85184         with extra ut argument.
85185
85186 2001-05-09  Paul Eggert  <eggert@twinsun.com>
85187
85188         * m4/jm-macros.m4 (jm_MACROS): Do not check for fseeko; no longer used.
85189
85190 2001-04-21  Jim Meyering  <meyering@lucent.com>
85191
85192         * m4/rmdir-errno.m4: Write to a new file, so that a restrictive umask
85193         doesn't interfere.
85194
85195 2001-04-21  Alexandre Duret-Lutz  <duret_g@epita.fr>
85196
85197         * m4/ftruncate.m4: Check for chsize.
85198         Link with ftruncate.o unconditionally if ftruncate is missing.
85199         This was required when cross-compiling to i586-mingw32msvc.
85200
85201 2001-04-08  Jim Meyering  <meyering@lucent.com>
85202
85203         * lib/getdate.y (get_date): Set tm_isdst to -1 to ensure that it is
85204         recomputed; that's necessary when the offset spans a DST transition.
85205         Patch by David J. MacKenzie.  Reported by Hon-Yin Kok.
85206
85207 2001-04-02  Jim Meyering  <meyering@lucent.com>
85208
85209         * lib/regex.h, regex.c: Update from GNU libc.
85210
85211 2001-03-24  Jim Meyering  <meyering@lucent.com>
85212
85213         * m4/jm-macros.m4: Require autoconf-2.49d.
85214
85215 2001-03-20  Bruno Haible  <haible@clisp.cons.org>
85216
85217         * m4/iconv.m4 (jm_ICONV): Recommend GNU libiconv.
85218
85219 2001-03-19  Paul Eggert  <eggert@twinsun.com>
85220
85221         * lib/version-etc.c (version_etc_copyright): Update to 2001.
85222
85223 2001-03-17  Jim Meyering  <meyering@lucent.com>
85224
85225         * m4/memcmp.m4 (jm_AC_FUNC_MEMCMP): Remove my copy of AC_FUNC_MEMCMP,
85226         now that the version in autoconf is equivalent.
85227         (jm_FUNC_MEMCMP): Adjust to use AC_FUNC_MEMCMP.
85228
85229         * m4/error.m4 (jm_PREREQ_ERROR): Invoke AC_FUNC_STRERROR_R.
85230         Suggestion from Akim Demaille.
85231
85232         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_TEMPNAME.
85233         (jm_PREREQ_TEMPNAME): New function.
85234
85235 2001-03-16  Paul Eggert  <eggert@twinsun.com>
85236
85237         * lib/tempname.c (uint64_t): Define to uintmax_t if
85238         not defined, and if UINT64_MAX is not defined.
85239         Required at least for Vax Ultrix4.3, which doesn't define uint64_t.
85240         Reported by John David Anglin.
85241
85242 2001-03-15  Bruno Haible  <haible@clisp.cons.org>
85243
85244         * lib/localcharset.c (locale_charset): Allow wildcard syntax. Also
85245         resolve alias if codeset is empty.
85246         * lib/config.charset (BeOS): Use wildcard syntax.
85247
85248 2001-03-13  Jim Meyering  <meyering@lucent.com>
85249
85250         * lib/path-concat.c (path_concat)
85251         [FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX]: Don't insert a backslash when
85252         concatenating e.g., `C:' and `foo'.
85253         From Bruno Haible.
85254
85255 2001-03-06  Bruno Haible  <haible@clisp.cons.org>
85256
85257         * lib/localcharset.c (locale_charset): Don't use
85258         setlocale(LC_CTYPE,NULL). Don't return NULL.
85259         * lib/unicodeio.c (print_unicode_char): Simplify accordingly.
85260
85261 2001-03-06  Bruno Haible  <haible@clisp.cons.org>
85262
85263         * lib/config.charset: Update for FreeBSD 4.2 and OSF/1 5.1. Add
85264         support for DOS/DJGPP.
85265
85266 2001-03-01  Paul Eggert  <eggert@twinsun.com>
85267
85268         * m4/jm-macros.m4 (jm_MACROS): Use mkstemp replacement if the system
85269         lacks mkstemp.  Compile our own tempname.c if we compile our own
85270         mkstemp.c, as mkstemp relies on tempname.
85271
85272 2001-03-01  Jim Meyering  <meyering@lucent.com>
85273
85274         * m4/dos.m4 (jm_AC_DOS): Remove extra backslashes, now that
85275         AH_VERBATIM really does output its argument verbatim.
85276
85277 2001-02-28  Paul Eggert  <eggert@twinsun.com>
85278
85279         * lib/Makefile.am (libfetish_a_SOURCES):
85280         Add dup-safer.c, fopen-safer.c.
85281         (noinst_HEADERS): Add stdio-safer.h, unistd-safer.h.
85282
85283         * lib/dup-safer.c, lib/fopen-safer.c, lib/stdio-safer.h:
85284         * lib/unistd-safer.h: New files.
85285
85286 2001-02-25  Paul Eggert  <eggert@twinsun.com>
85287
85288         The mkstemp replacement is taken from glibc 2.2.2, with some
85289         portability fixes for use outside glibc, as follows:
85290
85291         * lib/tempname.c (struct_stat64): New macro.
85292         (direxists, __gen_tempname): Use it.
85293         This avoids a portability problem with Solaris 8.
85294
85295         * lib/tempname.c (<config.h>): Include if HAVE_CONFIG_H.
85296         (<stddef.h>, <stdint.h>, <string.h>):
85297         Include only if STDC_HEADERS || _LIBC.
85298         (<fcntl.h>): Include only if HAVE_FCNTL_H || _LIBC.
85299         (<unistd.h>): Include only if HAVE_UNISTD_H || _LIBC.
85300         (<sys/time.h>): Include only if HAVE_SYS_TIME_H || _LIBC.
85301         (__set_errno): Define this macro if <errno.h> doesn't.
85302         (P_tmpdir, TMP_MAX, __GT_FILE, __GT_BIGFILE, __GT_DIR, __GT_NOCREATE):
85303         Define these macros if <stdio.h> doesn't.
85304         (S_ISDIR, S_IRUSR, S_IWUSR, S_IXUSR):
85305         Define these macros if <sys/stat.h>
85306         doesn't.  Ignore <sys/stat.h> S_ISDIR if STAT_MACROS_BROKEN.
85307         (stat64, __getpid, __gettimeofday, __mkdir, __open, __open64, lxstat64,
85308         __xstat64): Define if not _LIBC.
85309         (__secure_getenv): Define if ! (HAVE___SECURE_GETENV || _LIBC).
85310         (__gen_tempname): Invoke gettimeofday only if
85311         HAVE_GETTIMEOFDAY || _LIBC;
85312         otherwise, fall back on plain "time".
85313         Use macros like S_IRUSR | S_IWUSR rather than octal values like 0600.
85314
85315         * lib/mkstemp.c (__GT_FILE): Define to zero if not defined.
85316
85317         * lib/mkstemp.c, lib/tempname.c: New files, taken from glibc 2.2.2.
85318
85319 2001-02-18  Paul Eggert  <eggert@twinsun.com>
85320
85321         * m4/jm-macros.m4 (jm_CHECK_ALL_HEADERS): Check for sys/resource.h.
85322
85323 2001-02-17  Paul Eggert  <eggert@twinsun.com>
85324
85325         * m4/mbrtowc.m4: New file, defining jm_FUNC_MBRTOWC.
85326         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH):
85327         Use jm_FUNC_MBRTOWC, not AC_CHECK_FUNCS(mbrtowc).
85328         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Likewise.
85329
85330 2001-02-17  Paul Eggert  <eggert@twinsun.com>
85331
85332         * lib/mbswidth.c, quotearg.c (mbrtowc, mbsinit):
85333         Remove workaround macros for hosts that have mbrtowc but not
85334         mbstate_t, as we now insist on proper declarations for both
85335         before using mbrtowc.
85336
85337 2001-02-17  Jim Meyering  <meyering@lucent.com>
85338
85339         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Don't check for
85340         getmntent via AC_CHECK_FUNCS, since that would get a `no' and disrupt
85341         further attempts by AC_FUNC_GETMNTENT to check with e.g., -lgen on
85342         UnixWare 7.1.1.
85343
85344         * m4/mbrtowc.m4 (jm_FUNC_MBRTOWC): Adapt to use AC_CACHE_CHECK etc.,
85345         rather than AC_CACHE_VAL.
85346
85347 2001-02-17  Jim Meyering  <meyering@lucent.com>
85348
85349         * lib/strtoul.c: Sync from GNU libc.  Use double quotes, not <...>
85350         around included file name.
85351
85352         * lib/strnlen.c (__strnlen): Merge in a change from GNU libc.
85353
85354         * lib/strftime.c: Update from GNU libc (the only changes were to
85355         comments).
85356
85357 2001-02-17  Jim Meyering  <meyering@lucent.com>
85358
85359         * lib/regex.c: Update from libc.
85360
85361 2001-02-17  Bruno Haible  <haible@clisp.cons.org>
85362
85363         * lib/mbswidth.h (mbswidth): Also define as macro, to avoid prototype
85364         clash.
85365
85366 2001-02-16  Paul Eggert  <eggert@twinsun.com>
85367
85368         * lib/alloca.c (malloc): Undef before defining, since stdlib.h
85369         may have defined it.  Needed for Encore Umax-3.0.9.16b systems.
85370         Reported by Mark Hounschell via Paul Eggert.
85371
85372 2001-02-07  Jim Meyering  <meyering@lucent.com>
85373
85374         * m4/regex.m4 (jm_INCLUDED_REGEX): Add a test for the latest bug.
85375
85376 2001-02-05  Jim Meyering  <meyering@lucent.com>
85377
85378         * m4/jm-macros.m4: Require autoconf-2.14d (not yet released), because
85379         it includes the patch required for `large file' support with at least
85380         HP-UX's 10.20 /bin/cc.
85381
85382 2001-02-03  Jim Meyering  <meyering@lucent.com>
85383
85384         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Restore prior use of
85385         AS_IF, now that it works once again (mysteriously).
85386         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Likewise.
85387
85388 2001-01-30  Jim Meyering  <meyering@lucent.com>
85389
85390         Don't use filenames that are 8.3-equivalent to "conftest" on DOS.
85391         * m4/chown.m4: Rename conftestchown to conftest.chown.
85392         * m4/rename.m4: s/conftestdir/conftest.d1/ and
85393         s/conftestdir2/conftest.d2/.
85394         * m4/utimes.m4: s/conftestdata/conftest.data/
85395         Inspired by Pavel Roskin's change in autoconf.
85396
85397 2001-01-30  Bruno Haible  <haible@clisp.cons.org>
85398
85399         * lib/config.charset: Update for FreeBSD 4.2.
85400
85401 2001-01-27  Jim Meyering  <meyering@lucent.com>
85402
85403         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Open-code what was
85404         a use of AS_IF.
85405         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Likewise.
85406
85407 2001-01-26  Jim Meyering  <meyering@lucent.com>
85408
85409         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Check for stddef.h, now that
85410         quotearg.c includes it.
85411
85412 2001-01-26  Jim Meyering  <meyering@lucent.com>
85413
85414         * lib/quotearg.c: Include stddef.h.
85415         * lib/quote.c: Include stddef.h.
85416         Reported by Axel Kittenberger.
85417
85418         * lib/xmalloc.c [HAVE_DONE_WORKING_MALLOC_CHECK]: Enclose error-evoking
85419         line in double quotes so that it evokes a better diagnostic.
85420         [HAVE_DONE_WORKING_REALLOC_CHECK]: Likewise.
85421         Reported by Axel Kittenberger.
85422
85423 2001-01-24  Stefan Monnier  <monnier@cs.yale.edu>
85424
85425         * regex.c (mutually_exclusive_p): Don't blindly handle `charset_not'
85426         as if it was a `charset'.
85427
85428 2001-01-21  Bruno Haible  <haible@clisp.cons.org>
85429
85430         * m4/iconv.m4 (jm_ICONV): Also check whether the iconv declaration
85431         has const.
85432
85433 2001-01-21  Bruno Haible  <haible@clisp.cons.org>
85434
85435         * lib/unicodeio.c (print_unicode_char): Cast the second iconv() arg,
85436         to avoid a warning.  Add back 'const' to inptr.
85437
85438 2001-01-20  Jim Meyering  <meyering@lucent.com>
85439
85440         Be sure that headers are checked before used in code compiled
85441         for the type checks.
85442         * m4/jm-macros.m4 (jm_MACROS): Remove all header checks.
85443         In place of that, invoke jm_CHECK_ALL_TYPES.
85444         (jm_CHECK_ALL_HEADERS): New functions with the above checks.
85445         (jm_CHECK_ALL_TYPES): Require jm_CHECK_ALL_HEADERS.
85446         Alan Iwi reported a build failure on an f300-fujitsu-uxpv4.1_ES;
85447         The check for ssize_t was mistakenly run before the test for unistd.h.
85448
85449         The configure-time check for stdbool.h was missing.
85450         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_HASH.
85451         (jm_PREREQ_HASH): New function.
85452
85453 2001-01-17  Jim Meyering  <meyering@lucent.com>
85454
85455         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Use AS_IF, not AS_IFELSE,
85456         for autoconf-2.49c.
85457         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Likewise.
85458
85459 2001-01-16  Jim Meyering  <meyering@lucent.com>
85460
85461         * lib/basename.c: Include <stdio.h>, needed by assert on SunOS 4.
85462         From Bruno Haible.
85463
85464 2001-01-14  Jim Meyering  <meyering@lucent.com>
85465
85466         * m4/rename.m4: Use temporary directories named conftestdir{,2}, not
85467         foo and bar.  Create conftestdir/ in the script, not in the C code.
85468         Remove directories in the script, not in the C code.
85469         Remove conftestdir{,2} before trying to create the directory.
85470         Make the entire configure script fail if the mkdir fails.
85471
85472 2001-01-14  Jim Meyering  <meyering@lucent.com>
85473
85474         * lib/rename.c: New file.  From Volker Borchert.
85475         Include stdlib.h, string.h or strings.h, and xalloc.h.
85476         Use strip_trailing_slashes rather than open-coding it.
85477
85478 2001-01-03  Paul Eggert  <eggert@twinsun.com>
85479
85480         * lib/strftime.c: Sync with glibc time/strftime.c 1.81.
85481
85482 2001-01-03  Jim Meyering  <meyering@lucent.com>
85483
85484         * lib/unicodeio.c (print_unicode_char): Remove `const' from declaration
85485         of local `inptr' to avoid warning with some system declarations of
85486         iconv.
85487
85488 2001-01-02  Volker Borchert  <bt@teknon.de>
85489
85490         * m4/rename.m4: New file.
85491         * m4/jm-macros.m4 (jm_MACROS): Require vb_FUNC_RENAME.
85492
85493 2001-01-01  Jim Meyering  <meyering@lucent.com>
85494
85495         * m4/prereq.m4 (jm_PREREQ_READUTMP): Include utmp.h (if available),
85496         even on systems with utmpx.h.  It's necessary for the declaration of
85497         utmp's ut_user member.  Reported by Andreas Jaeger.
85498
85499         * m4/check-decl.m4 (jm_CHECK_DECLS): Include grp.h and pwd.h if
85500         available. They are required for the declarations of getgrgid and
85501         getpwuid resp.
85502         (_jm_DECL_HEADERS): Check for grp.h and pwd.h.
85503         Reported by Andreas Jaeger.
85504
85505 2001-01-01  Alexandre Duret-Lutz  <duret_g@epita.fr>
85506
85507         * m4/libintl.m4 (AM_GNU_GETTEXT): Define MKINSTALLDIRS by
85508         expanding the value of $ac_aux_dir, as in AM_MISSING_HAS_RUN,
85509         so `make install' also works in VPATH builds.
85510
85511 2000-12-31  Alexandre Duret-Lutz  <duret_g@epita.fr>
85512
85513         * m4/libintl.m4 (AM_WITH_NLS): When using AC_CONFIG_AUX_DIR,
85514         prepend $(top_srcdir) to the value of MKINSTALLDIRS so that it
85515         can be used in subdirectories.
85516
85517 2000-12-29  Paul Eggert  <eggert@twinsun.com>
85518
85519         * lib/modechange.c: Do not assume that mode_t uses the
85520         traditional octal encoding.  E.g. "chmod 1 FOO" should set
85521         the other-execute bit of FOO even if S_IXOTH != 1.
85522
85523         (SUID, SGID, SVTX, RUSR, WUSR, XUSR, RGRP, WGRP, XGRP, ROTH,
85524         WOTH, XOTH, ALLM): New macros.
85525         (S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IWUSR, S_IXUSR,
85526          S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH):
85527         Use them.
85528         (S_ISGID): Fix typo; it was defaulting to the same value as S_ISUID.
85529         (S_IRWXU, S_IRWXG, S_IRWXO): Specify defaults in terms of the above.
85530         (mode_compile):
85531         No need to use uintmax_t; unsigned long is long enough.
85532         Don't bother to get suffix since we don't use it.
85533
85534 2000-12-26  Jim Meyering  <meyering@lucent.com>
85535
85536         * m4/dos.m4 (jm_AC_DOS): Rewrite (though it's still a stub) to work
85537         better with autoheader.
85538
85539 2000-12-24  Jim Meyering  <meyering@lucent.com>
85540
85541         * lib/hash.c (is_prime): Return explicit boolean values.
85542         (hash_get_first): Return NULL to appease Irix5.6's 89.
85543         Reported by Nelson Beebe.
85544
85545 2000-12-19  Bruno Haible  <haible@clisp.cons.org>
85546
85547         * lib/localcharset.c (locale_charset): Add support for Win32.
85548
85549 2000-12-18  Paul Eggert  <eggert@twinsun.com>
85550
85551         * lib/physmem.h, lib/physmem.c: New files.
85552
85553         * lib/Makefile.am (libfetish_a_SOURCES): Add physmem.c.
85554         (noinst_HEADERS): Add physmem.h.
85555
85556         * lib/xstrtol.c (__xstrtol): Add undocumented suffixes 'g' and
85557         't' for compatibility with Solaris 8 sort.
85558
85559 2000-12-18  Bruno Haible  <haible@clisp.cons.org>
85560
85561         * lib/config.charset: Add support for BeOS.
85562
85563 2000-12-17  Jim Meyering  <meyering@lucent.com>
85564
85565         * m4/dos.m4 (jm_AC_DOS): New file and macro.
85566         * m4/jm-macros.m4 (jm_MACROS): Require jm_AC_DOS.
85567
85568 2000-12-16  Jim Meyering  <meyering@lucent.com>
85569
85570         This bug had a serious impact on chown: `chown N:M FILE' (for integer
85571         N and M) would have treated it like `chown N:N FILE'.
85572
85573         * lib/userspec.c (parse_user_spec): Fix typo: s/u/g/.
85574
85575 2000-12-16  Jim Meyering  <meyering@lucent.com>
85576
85577         * lib/getusershell.c [!SHELLS_FILE && __DJGPP__]: Define
85578         SHELLS_FILE to a file name that's useful on djgpp systems.
85579         Include stdlib.h.
85580         (ADDITIONAL_DEFAULT_SHELLS): Define.
85581         (default_shells): Prepend ADDITIONAL_DEFAULT_SHELLS.
85582         Based mostly on a patch from Prashant TR.
85583
85584 2000-12-16  Bruno Haible  <haible@clisp.cons.org>
85585
85586         * lib/config.charset: Add ISO-8859-3, BIG5HKSCS, GB18030, JOHAB,
85587         VISCII, CP874, CP949, CP950, CP1250, CP1253, CP1254, CP1255, CP1256,
85588         CP1257 to the list of canonical encodings. Rename EUC-CN to GB2312.
85589
85590 2000-12-08  Andreas Schwab  <schwab@suse.de>
85591
85592         * lib/mbswidth.c (mbsnwidth): Don't loop endlessly when called with an
85593         invalid mulitbyte sequence and with the MBSW_ACCEPT_INVALID flag set.
85594
85595 2000-12-07  Jim Meyering  <meyering@lucent.com>
85596
85597         * lib/stripslash.c (ISSLASH): Define.
85598         (strip_trailing_slashes): Use ISSLASH rather than comparing against
85599         `/'.
85600         From Prashant TR.
85601
85602         * lib/dirname.c (FILESYSTEM_PREFIX_LEN): Define.
85603         (dir_name_r): Declare this function as static.
85604         [BACKSLASH_IS_PATH_SEPARATOR]: Fix a bug that'd
85605         manifest itself on a name containing a mix of slashes and
85606         backslashes.
85607         Make this function work with names starting with a DOS-style
85608         drive letter and colon prefix.
85609         (dir_name): Append `.' if necessary.
85610         Based mostly on patches from Prashant TR and Eli Zaretskii.
85611
85612         * lib/dirname.h (dir_name_r): Remove prototype.
85613
85614 2000-12-06  Paul Eggert  <eggert@twinsun.com>
85615
85616         * m4/off_t-format.m4: Remove this file.
85617         * m4/jm-macros.m4 (jm_MACROS): Remove jm_SYS_OFF_T_PRINTF_FORMAT.
85618
85619 2000-12-06  Jim Meyering  <meyering@lucent.com>
85620
85621         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): If we need the
85622         replacement strtoull, we may well need the replacement strtoul, too.
85623         Check for declarations of strtoul and strtoull.
85624         Check for strtol.  Mainly as a cue to cause automake to include
85625         strtol.c -- that file is included by each of strtoul.c and strtoull.c.
85626         Check for limits.h -- strtol.c needs it.
85627
85628 2000-12-05  Jim Meyering  <meyering@lucent.com>
85629
85630         * lib/dirname.c (dir_name_r): Add `const' in a few local declarations.
85631
85632 2000-12-04  Jim Meyering  <meyering@lucent.com>
85633
85634         * lib/path-concat.c: [!HAVE_DECL_MALLOC]: Declare malloc.
85635         Also include memory.h, stdlib.h, unistd.h if appropriate.
85636         Reported by Andreas Jaeger (conflicting declaration of malloc).
85637
85638 2000-12-02  Jim Meyering  <meyering@lucent.com>
85639
85640         * m4/off_t-format.m4 (OFF_T_PRINTF_FORMAT_STRING): New file/macro.
85641         * m4/jm-macros.m4 (jm_MACROS): require it.
85642
85643 2000-12-02  Jim Meyering  <meyering@lucent.com>
85644
85645         * lib/closeout.h: Make idempotent, to avoid some obscure warnings.
85646
85647 2000-12-01  Paul Eggert  <eggert@twinsun.com>
85648
85649         * lib/memrchr.c: Include <config.h> before any system include file.
85650
85651 2000-11-30  Jim Meyering  <meyering@lucent.com>
85652
85653         * m4/jm-macros.m4 (jm_MACROS): Check for stdint.h.
85654
85655 2000-11-30  Jim Meyering  <meyering@lucent.com>
85656
85657         * m4/getloadavg.m4: s/ifval/m4_ifval/ to accommodate new autoconf.
85658
85659 2000-11-29  Paul Eggert  <eggert@twinsun.com>
85660
85661         * lib/dirname.c (dir_name_r): Fix typo: int -> size_t.
85662
85663 2000-11-26  Jim Meyering  <meyering@lucent.com>
85664
85665         * lib/memcoll.c: Include sys/types.h.  From Werner Almesberger.
85666
85667 2000-11-22  Paul Eggert  <eggert@twinsun.com>
85668
85669         * lib/strftime.c (my_strftime): Do not invoke mbrlen with a
85670         size of (size_t) -1; it's not portable.
85671
85672 2000-11-17  Jim Meyering  <meyering@lucent.com>
85673
85674         * lib/strstr.c: Update from GNU libc.
85675
85676 2000-11-17  Akim Demaille  <akim@epita.fr>
85677
85678         * lib/obstack.h: Formatting changes.
85679         (obstack_grow, obstack_grow0): Don't cast WHERE at all: that would
85680         prevent type checking.
85681         (obstack_ptr_grow, obstack_ptr_grow_fast): When assigning, don't
85682         cast the value to (void *): assigning a `foo *' to a `void *'
85683         variable is valid.
85684         (obstack_int_grow, obstack_int_grow_fast): Don't cast AINT to int.
85685
85686 2000-11-16  Jim Meyering  <meyering@lucent.com>
85687
85688         * lib/strverscmp.c: Incorporate weak-alias-related changes from glibc.
85689
85690 2000-11-11  Jim Meyering  <meyering@lucent.com>
85691
85692         * lib/error.c: Add a couple #includes, merging from GNU libc version.
85693
85694 2000-11-10  Jim Meyering  <meyering@lucent.com>
85695
85696         * lib/obstack.h: Update from GNU libc.
85697         * lib/obstack.c: Likewise.
85698
85699 2000-11-08  Bruno Haible  <haible@clisp.cons.org>
85700
85701         * m4/jm-macros.m4 (jm_MACROS): Add test for wcrtomb.
85702
85703 2000-11-06  Paul Eggert  <eggert@twinsun.com>
85704
85705         * lib/getusershell.c (setusershell): Use rewind rather than
85706         fseek/fseeko, to avoid configuration hassles with fseeko.
85707         Don't bother opening SHELLS_FILE if shellstream is NULL;
85708         it's not necessary.
85709
85710 2000-11-05  Jim Meyering  <meyering@lucent.com>
85711
85712         * lib/makepath.h (make_dir): Declare.
85713         * lib/makepath.c (make_dir): Remove `static' attribute.
85714         Tweak a comment.
85715
85716 2000-11-04  Jim Meyering  <meyering@lucent.com>
85717
85718         * m4/regex.m4: Use the `m4_' prefix on `syscmd' and `m4_sysval'.
85719
85720 2000-11-04  Alexandre Duret-Lutz  <duret_g@epita.fr>
85721
85722         * lib/hash.c (hash_get_next): Fix a thinko:  when ENTRY is the
85723         last one in a bucket, advance to the next bucket.
85724
85725 2000-11-02  Vesselin Atanasov  <vesselin@bgnet.bg>
85726
85727         * lib/fnmatch.c: Do not comment out all the code if we are using
85728         the GNU C library, because in some cases we are replacing buggy
85729         code in the GNU C library itself.
85730
85731 2000-10-30  Stefan Monnier  <monnier@cs.yale.edu>
85732
85733         * regex.c (re_iswctype, re_wctype_to_bit): Fix braino.
85734         (regex_compile): Catch bogus \(\1\).
85735
85736 2000-10-30  Paul Eggert  <eggert@twinsun.com>
85737
85738         * lib/fnmatch.c (FOLD): Do not assume that characters are unsigned.
85739         (fnmatch): Fix some FNM_FILE_NAME and FNM_LEADING_DIR bugs,
85740         e.g. fnmatch("d*/*1", "d/s/1", FNM_FILE_NAME) incorrectly yielded zero.
85741
85742 2000-10-30  Paul Eggert  <eggert@twinsun.com>
85743
85744         * lib/error.h, getline.h, modechange.h:
85745         Remove "2000" from Copyright line, as the file hasn't been
85746         changed this year other than in the copyright notice.
85747
85748         * lib/xalloc.h: Add "2000" to Copyright line, as this file
85749         was changed this year.
85750
85751 2000-10-29  Jim Meyering  <meyering@lucent.com>
85752
85753         * m4/fsusage.m4: s/AC_SHELL_IFELSE/AS_IFELSE/ to match autoconf
85754         renaming.
85755         * m4/ls-mntd-fs.m4: Likewise
85756
85757 2000-10-29  Jim Meyering  <meyering@lucent.com>
85758
85759         * lib/xstat.in: Fix grammar in comment.
85760
85761 2000-10-29  Greg Louis  <glouis@dynamicro.on.ca>
85762
85763         * lib/regex.h (__restrict_arr): Move definition out of #ifndef block.
85764         Required because egcs-2.91.66 (aka 1.1.2) defines __restrict, but
85765         doesn't define __restrict_arr.
85766
85767 2000-10-28  Jim Meyering  <meyering@lucent.com>
85768
85769         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_MEMCHR.
85770         (jm_PREREQ_MEMCHR): New function.
85771
85772 2000-10-28  Jim Meyering  <meyering@lucent.com>
85773
85774         * lib/memchr.c: Update from libc.
85775         Adjust for portability:
85776         [HAVE_STDLIB_H]: Include stdlib.h.
85777         [HAVE_BP_SYM_H || _LIBC]: Guard inclusion of bp-sym.h.
85778         Undef __memchr, too.
85779         [!weak_alias]: Define __memchr to memchr.
85780
85781         * lib/regex.c: Update from libc.
85782         * lib/regex.h: Likewise.
85783         * lib/getopt1.c: Likewise.
85784         * lib/memcmp.c: Likewise.
85785
85786         * lib/getusershell.c (setusershell) [HAVE_FSEEKO]: Use fseeko.
85787         Avoid using fseek, when possible -- it's broken by design.
85788         Patch by Ulrich Drepper.
85789
85790 2000-10-27  Stefan Monnier  <monnier@cs.yale.edu>
85791
85792         * regex.c (POP_FAILURE_REG_OR_COUNT, re_match_2_internal)
85793         (re_match_2_internal, re_match_2_internal, re_match_2_internal):
85794         Giving in to popular pressure to shut up the compiler with casts.
85795
85796 2000-10-26  Jim Meyering  <meyering@lucent.com>
85797
85798         * lib/strftime.c: Update from libc.
85799
85800 2000-10-25  Stefan Monnier  <monnier@cs.yale.edu>
85801
85802         * regex.c: More `unsigned char' -> `re_char' changes.
85803         Also change several `int' into `re_wchar_t'.
85804         (PATTERN_STACK_EMPTY, PUSH_PATTERN_OP, POP_PATTERN_OP): Remove.
85805         (PUSH_FAILURE_POINTER): Don't cast any more.
85806         (POP_FAILURE_REG_OR_COUNT): Remove the cast that strips `const'.
85807         We want GCC to complain, since this piece of code makes
85808         re_match non-reentrant, which *should* be fixed.
85809         (GET_BUFFER_SPACE): Use size_t rather than unsigned long.
85810         (EXTEND_BUFFER): Use RETALLOC.
85811         (SET_LIST_BIT): Don't cast.
85812         (re_wchar_t): New type.
85813         (re_iswctype, re_wctype_to_bit): Make it crystal clear to GCC
85814         that those two functions will always properly return.
85815         (IMMEDIATE_QUIT_CHECK): Cast to void.
85816         (analyse_first): Use recursion rather than an explicit stack.
85817         (re_compile_fastmap): Can't fail anymore.
85818         (re_search_2): Don't check re_compile_fastmap for failure.
85819         (PUSH_NUMBER): Renamed from PUSH_FAILURE_COUNT.
85820         Now also sets the new value (passed in a new argument).
85821         (re_match_2_internal): Use it.
85822         Also, use a new var `reg' of type size_t when looping through regs
85823         rather than reuse the inappropriate `mcnt'.
85824
85825 2000-10-25  Jim Meyering  <meyering@lucent.com>
85826
85827         * lib/obstack.c: Update from libc.
85828
85829 2000-10-24  Kenichi Handa  <handa@etl.go.jp>
85830
85831         * regex.c (regex_compile): Change the way of handling a range from
85832         a char less than 256 to a char not less than 256.
85833
85834 2000-10-24  Andrew Innes  <andrewi@gnu.org>
85835
85836         * regex.c (IMMEDIATE_QUIT_CHECK): New macro, which does QUIT on
85837         NT-Emacs only.
85838         (re_match_2_internal): Use IMMEDIATE_QUIT_CHECK instead of QUIT,
85839         so that re_search functions only quit when callers expect them to.
85840
85841 2000-10-23  Jim Meyering  <meyering@lucent.com>
85842
85843         * lib/hard-locale.c (hard_locale): Revert last change -- it was simply
85844         wrong.  That set_locale call must not have any side effects.
85845         From Paul Eggert.
85846
85847 2000-10-22  Jim Meyering  <meyering@lucent.com>
85848
85849         * lib/md5.c (md5_process_block) [OP]: Use `rol', not CYCLIC.
85850         [CYCLIC]: Remove now-unused definition.
85851
85852         * lib/save-cwd.c (O_DIRECTORY): Define, if needed.
85853         (save_cwd) [HAVE_FCHDIR]: Use O_DIRECTORY when opening ".".
85854         Suggestion from Ulrich Drepper.
85855
85856 2000-10-21  Jim Meyering  <meyering@lucent.com>
85857
85858         * m4/check-decl.m4 (jm_CHECK_DECLS): Also check for memrchr.
85859         * m4/prereq.m4 (jm_PREREQ_DIRNAME): New macro.
85860         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memrchr.
85861
85862 2000-10-21  Jim Meyering  <meyering@lucent.com>
85863
85864         * lib/dirname.c (memrchr): Declare if necessary.
85865         (dir_name): Remove the restriction that there be no
85866         trailing slashes.  Now, this code skips past them, effectively
85867         ignoring them.
85868         [TEST_DIRNAME] (main): New unit tests.
85869
85870         * lib/memrchr.c: New file from GNU libc.
85871         Undef __memrchr, too.
85872         [!weak_alias]: Define __memrchr to memrchr.
85873         Guard weak_alias use with `#ifdef weak_alias'.
85874
85875 2000-10-21  Jim Meyering  <meyering@lucent.com>
85876
85877         * lib/dirname.c (dir_name_r): New function, factored out of dir_name.
85878         (dir_name): Use dir_name_r.
85879         * lib/dirname.h (dir_name_r): Declare it.
85880
85881 2000-10-17  Jim Meyering  <meyering@lucent.com>
85882
85883         * lib/quote.h (PARAMS): Define and use.
85884         Reported by Akim Demaille.
85885
85886         * lib/getopt.c: Update from libc.
85887
85888 2000-10-16  Jim Meyering  <meyering@lucent.com>
85889
85890         * lib/hard-locale.c (hard_locale): Use "", not 0 as 2nd arg to
85891         setlocale.
85892         From Jan Fedak.
85893
85894 2000-10-15  Stefan Monnier  <monnier@cs.yale.edu>
85895
85896         * regex.c (WIDE_CHAR_SUPPORT): Define if _LIBC as well.
85897
85898 2000-09-25  Jim Meyering  <meyering@lucent.com>
85899
85900         * lib/md5.h (rol): Define (from GnuPG).
85901
85902         * lib/sha.c: Give credit (GnuPG) where due.
85903         (M): Use rol rather than open-coding it.
85904         Add a FIXME comment.
85905
85906 2000-09-21  Jim Meyering  <meyering@lucent.com>
85907
85908         * lib/userspec.c (parse_user_spec): Remove debugging printf I'd added.
85909         Reported by Michael Stone.
85910
85911 2000-09-20  Jim Meyering  <meyering@lucent.com>
85912
85913         * lib/Makefile.am (libfetish_a_SOURCES): Add sha.c.
85914         (noinst_HEADERS): Add sha.h.
85915         Based on code from Scott G. Miller and from GnuPG.
85916
85917 2000-09-18  Jim Meyering  <meyering@lucent.com>
85918
85919         * m4/getloadavg.m4 (AC_FUNC_GETLOADAVG): Restore the initial value of
85920         LIBS. Otherwise, everyone ends up linking with -lelf for some
85921         configurations.
85922         Reported by Mike Stone.
85923
85924 2000-09-15  Jim Meyering  <meyering@lucent.com>
85925
85926         * lib/regex.c: Update from libc.
85927
85928 2000-09-10  Jim Meyering  <meyering@lucent.com>
85929
85930         * lib/getopt.c (_getopt_internal): Update from glibc.
85931
85932 2000-09-09  Jim Meyering  <meyering@lucent.com>
85933
85934         * lib/quotearg.c: Rename ISASCII to IN_CTYPE_DOMAIN, so people don't
85935         think it should be used as a general replacement for isascii.
85936         * lib/fnmatch.c: Likewise.
85937         * lib/mbswidth.c: Likewise
85938         * lib/regex.c: Likewise.
85939
85940         Don't use atoi.
85941         * lib/userspec.c: Include sys/param.h and limits.h.
85942         Include xstrtol.h.
85943         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Define.
85944         (UID_T_MAX, GID_T_MAX, MAXUID, MAXGID): Define.
85945         (parse_user_spec): Use xstrtoul, not atoi when converting numeric
85946         UID, GID.  Check range.
85947
85948 2000-09-06  Jim Meyering  <meyering@lucent.com>
85949
85950         * lib/getopt.c (_getopt_internal): Update from glibc.
85951
85952 2000-08-30  Jim Meyering  <meyering@lucent.com>
85953
85954         * lib/strftime.c: Merge in changes from GNU libc.
85955
85956 2000-08-26  Jim Meyering  <meyering@lucent.com>
85957
85958         * m4/jm-macros.m4: Use jm_FUNC_FPENDING.
85959         * m4/fpending.m4: New file.
85960
85961 2000-08-26  Jim Meyering  <meyering@lucent.com>
85962
85963         * lib/closeout.c: Include "__fpending.h".
85964         (close_stdout_status): Return right away if there's nothing to flush.
85965
85966         * lib/Makefile.am (noinst_HEADERS): Add __fpending.h.
85967         * lib/__fpending.c: New file.
85968         * lib/__fpending.h: New file.
85969
85970 2000-08-20  Jim Meyering  <meyering@lucent.com>
85971
85972         * m4/check-decl.m4: Include utmp.h `#if HAVE_UTMP_H', rather than
85973         `#if !HAVE_UTMPX_H'.  The latter would lose on systems with neither
85974         utmp.h nor utmpx.h.  Reported by Eli Zaretskii.
85975
85976 2000-08-11  J. David Anglin  <dave@hiauly1.hia.nrc.ca>
85977
85978         Improve fileutils installation on systems where running
85979         programs (like install) can't be unlinked.
85980         * m4/unlink-busy.m4 (jm_FUNC_UNLINK_BUSY_TEXT): New file/macro.
85981         * m4/jm-macros.m4: Use jm_FUNC_UNLINK_BUSY_TEXT.
85982
85983 2000-08-07  Paul Eggert  <eggert@twinsun.com>
85984
85985         Standardize on "memory exhausted" instead of "Memory exhausted"
85986         or "virtual memory exhausted".
85987         * lib/obstack.c (print_and_abort): Use "memory exhausted", not
85988         "virtual memory exhausted".
85989         * lib/same.c (same_name): Invoke xalloc_die instead of printing
85990         our own message.
85991         * lib/userspec.c (parse_user_spec): Likewise.
85992         * lib/bumpalloc.h: comment fix
85993         * lib/same.c, userspec.c: Include xalloc.h.
85994
85995         * lib/xalloc.h (xalloc_msg_memory_exhausted): Now char const[],
85996         not char *const and pointing to a constant array.
85997         * lib/xmalloc.c (xalloc_msg_memory_exhausted): Likewise.
85998         (xrealloc): Comment fix.
85999
86000         * lib/userspec.c (parse_user_spec):
86001         Don't translate a message until just before returning,
86002         to avoid unnecessary translation.
86003
86004 2000-08-07  Jim Meyering  <meyering@lucent.com>
86005
86006         * lib/addext.c, argmatch.c, argmatch.h, backupfile.h, bumpalloc.h,
86007         chown.c, diacrit.h, dirname.h, dup2.c, exclude.h, fileblocks.c,
86008         fnmatch.c, fnmatch.h, fsusage.c, fsusage.h, getdate.h,
86009         getgroups.c, gethostname.c, getopt.h, group-member.c,
86010         hard-locale.c, hash.h, isdir.c, lchown.c, linebuffer.c,
86011         linebuffer.h, long-options.h, malloc.c, md5.c, md5.h, memchr.c,
86012         memcmp.c, memcoll.c, memset.c, mktime.c, modechange.h, obstack.h,
86013         pathmax.h, realloc.c, rmdir.c, safe-read.c, save-cwd.c, stime.c,
86014         stpcpy.c, strcasecmp.c, strcspn.c, strdup.c, stripslash.c,
86015         strstr.c, strtod.c, strtol.c, strtoul.c, strtoull.c, strtoumax.c,
86016         utime.c, version-etc.h, xalloc.h, xstrdup.c, xstrtoumax.c,
86017         yesno.c: Back out Copyright date changes for each file with no change
86018         this year.  This eases coordination with other programs using the same
86019         source code modules.  From Paul Eggert.
86020
86021 2000-08-06  Paul Eggert  <eggert@twinsun.com>
86022
86023         * m4/mbstate_t.m4 (AC_MBSTATE_T): Define mbstate_t to be int,
86024         not char, for compatibility with glibc 2.1.3 strftime.c.
86025
86026 2000-08-03  Greg McGary  <greg@mcgary.org>
86027
86028         * lib/regex.c (SET_HIGH_BOUND, MOVE_BUFFER_POINTER,
86029         ELSE_EXTEND_BUFFER_HIGH_BOUND): New macros.
86030         (EXTEND_BUFFER): Use them.
86031
86032 2000-08-01  Jim Meyering  <meyering@lucent.com>
86033
86034         * lib/dirname.c (ISSLASH): Define.
86035         (BACKSLASH_IS_PATH_SEPARATOR): Define.
86036         (dir_name) [BACKSLASH_IS_PATH_SEPARATOR]: Handle the case in which
86037         both `\' and `/' may be use as path separators.
86038         Based on a patch from Prashant TR.
86039
86040 2000-07-31  Paul Eggert  <eggert@twinsun.com>
86041
86042         * lib/quotearg.c (quotearg_n_options): Don't make the initial
86043         slot vector a constant, since it might get modified.
86044
86045 2000-07-31  Jim Meyering  <meyering@lucent.com>
86046
86047         * lib/xmalloc.c: Use `virtual memory exhausted', not
86048         `Memory exhausted'.
86049         * lib/obstack.c (print_and_abort): Likewise.
86050
86051 2000-07-30  Paul Eggert  <eggert@twinsun.com>
86052
86053         * lib/quotearg.c (quotearg_n_options): Preallocate a slot 0
86054         buffer, so that the caller can always quote one small
86055         component of a "memory exhausted" message in slot 0.
86056         From a suggestion by Jim Meyering.
86057
86058 2000-07-30  Jim Meyering  <meyering@lucent.com>
86059
86060         * lib/makepath.c (make_path): Quote the other instance, too.
86061
86062         * lib/quotearg.c (N_STATIC_SLOTVECS): Define.
86063         (STATIC_BUF_SIZE): Define.
86064         (quotearg_n_options): Use only statically allocated storage when
86065         N < N_STATIC_SLOTVECS and the length of the quoted result is smaller
86066         than STATIC_BUF_SIZE.
86067
86068 2000-07-29  Jim Meyering  <meyering@lucent.com>
86069
86070         * lib/diacrit.c (diacrit_diac): Use __MSDOS__ in favor of MSDOS.
86071         * lib/dirname.c (dir_name): Likewise.
86072
86073         * lib/basename.c (base_name): Use ISSLASH rather than comparing against
86074         `/'.
86075
86076         * lib/dirname.c (dir_name) [MSDOS]: Declare `lim' to be const.
86077         (dir_name): Assert that there are no trailing slashes.
86078
86079 2000-07-29  Bruno Haible  <haible@clisp.cons.org>
86080
86081         * lib/mbswidth.h (mbswidth): Add a flags argument.
86082         (mbswidth): New declaration.
86083         (MBSW_ACCEPT_INVALID, MBSW_ACCEPT_UNPRINTABLE): New macros.
86084         * lib/mbswidth.c (mbswidth): Add a flags argument.
86085         (mbsnwidth): New function.
86086
86087 2000-07-24  Jim Meyering  <meyering@lucent.com>
86088
86089         * lib/mbswidth.c: Remove useless #else.  From Bruno Haible.
86090
86091 2000-07-23  Paul Eggert  <eggert@twinsun.com>
86092
86093         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Check for wcwidth declaration.
86094
86095 2000-07-23  Paul Eggert  <eggert@twinsun.com>
86096
86097         * lib/quotearg.c: Streamline by invoking multibyte code only if needed.
86098         <wchar.h>: Include only if HAVE_MBRTOWC && 1 < MB_LEN_MAX.
86099         (MB_CUR_MAX): Redefine to 1 if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX).
86100         (quotearg_buffer_restyled): If a unibyte locale, don't bother to
86101         invoke multibyte primitives.
86102
86103 2000-07-23  Paul Eggert  <eggert@twinsun.com>
86104
86105         * lib/quotearg.c:
86106         Include <wchar.h> even if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX),
86107         so that mbstate_t is always defined.
86108
86109         Do not inspect MB_LEN_MAX, since it's incorrectly defined to
86110         be 1 in at least one GCC installation, and this configuration
86111         error is likely to be common.  Ignoring MB_LEN_MAX hurts
86112         performance on hosts that have mbrtowc but have only unibyte
86113         locales, but I assume these hosts are rare.
86114
86115 2000-07-23  Paul Eggert  <eggert@twinsun.com>
86116
86117         * lib/mbswidth.c (_XOPEN_SOURCE):
86118         Don't define; this causes problems on Solaris 7.
86119         (wcwidth) [!HAVE_DECL_WCWIDTH]: Declare.
86120
86121 2000-07-23  Jim Meyering  <meyering@lucent.com>
86122
86123         * m4/check-decl.m4 (jm_CHECK_DECLS): Check for declarations of these,
86124         too: getgrgid, getpwuid, getuid.
86125
86126 2000-07-23  Jim Meyering  <meyering@lucent.com>
86127
86128         * lib/basename.c (base_name): Add an assertion.
86129
86130 2000-07-23  Bruno Haible  <haible@clisp.cons.org>
86131
86132         * lib/quotearg.c: When the system forces us to redefine mbstate_t,
86133         shadow its mbsinit function.
86134
86135 2000-07-17  Bruno Haible  <haible@clisp.cons.org>
86136
86137         * lib/mbswidth.h: New file.
86138         * lib/mbswidth.c: New file.
86139         * lib/Makefile.am (libfetish_a_SOURCES): Add mbswidth.c.
86140         (noinst_HEADERS): Add mbswidth.h.
86141
86142 2000-07-17  Bruno Haible  <haible@clisp.cons.org>
86143
86144         * lib/config.charset: Add support for FreeBSD. Improve support for
86145         HP-UX and IRIX 6.
86146
86147 2000-07-16  Bruno Haible  <haible@clisp.cons.org>
86148
86149         * m4/mbswidth.m4: New file.
86150         * m4/prereq.m4 (jm_PREREQ): Call jm_PREREQ_MBSWIDTH.
86151
86152 2000-07-15  Jim Meyering  <meyering@lucent.com>
86153
86154         * lib/makepath.c: Include quote.h.
86155         (make_path): Convert "`%s'" in format strings to "%s", and wrap each
86156         corresponding argument in a `quote (...)' call.
86157         Give better diagnostics.
86158
86159         * lib/Makefile.am (libfetish_a_SOURCES): Add quote.c.
86160         (noinst_HEADERS): Add quote.h.
86161
86162         * lib/quote.c (quote, quote_n): New file.  Two functions taken verbatim
86163         from tar's src/misc.c.
86164         * lib/quote.h: New file.  Prototypes for same.
86165
86166 2000-07-14  Paul Eggert  <eggert@twinsun.com>
86167
86168         From a suggestion by Bruno Haible.
86169         * lib/quotearg.c (mbrtowc): Do not use HAVE_WCHAR_H in the definition.
86170         Use defined mbstate_t, not HAVE_MBSTATE_T_OBJECT,
86171         to decide whether to define the BeOS workaround macro;
86172         this adjusts to the change to AC_MBSTATE_T.
86173
86174 2000-07-14  Jim Meyering  <meyering@lucent.com>
86175
86176         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Require
86177         jm_AC_TYPE_UINTMAX_T.
86178
86179 2000-07-13  Paul Eggert  <eggert@twinsun.com>
86180
86181         * lib/quotearg.h (enum quoting style): New enum clocale_quoting_style.
86182
86183         * lib/quotearg.c (quoting_style_args, quoting_style_vals,
86184         quotearg_buffer_restyled): Add support for
86185         clocale_quoting_style.  Undo previous change to
86186         locale_quoting_style behavior, and undo the "{LEFT QUOTATION MARK}"
86187         and "{RIGHT QUOTATION MARK}" msgids.
86188
86189 2000-07-10  Paul Eggert  <eggert@twinsun.com>
86190
86191         From a suggestion by Bruno Haible.
86192         * m4/mbstate_t.m4 (AC_MBSTATE_T):
86193         Renamed from AC_MBSTATE_T_OBJECT.  All uses changed.
86194         Change from a two-part test, which defines both HAVE_MBSTATE_T_OBJECT
86195         and mbstate_t, to a single-part test that simply defines mbstate_t.
86196         * m4/prereq.m4 (jm_PREREQ_QUOTEARG):
86197         s/AC_MBSTATE_T_OBJECT/AC_MBSTATE_T/.
86198
86199 2000-07-10  Jim Meyering  <meyering@lucent.com>
86200
86201         * m4/strerror_r.m4: Mirror the correction made in autoconf.
86202
86203         * m4/gnu-source.m4: Output to confdefs.h directly.
86204         Suggestion from Akim Demaille.
86205
86206 2000-07-09  Paul Eggert  <eggert@twinsun.com>
86207
86208         The old behavior of quoting `like this' doesn't look good with
86209         newer, ISO-style fonts.  See:
86210         http://www.cl.cam.ac.uk/~mgk25/ucs/quotes.html
86211
86212         Instead, quote "like this" by default.  Let the translator
86213         tailor the locale-specific quoting behavior by providing
86214         translations for {LEFT QUOTATION MARK} and {RIGHT QUOTATION MARK}.
86215
86216         * lib/quotearg.c (N_): New macro.
86217         (gettext_default): New function.
86218         (quotearg_buffer_restyled): Use
86219         gettext_default ("{LEFT QUOTATION MARK}", "\"") for left quote, and
86220         gettext_default ("{RIGHT QUOTATION MARK}", "\"") for right quote.
86221
86222 2000-07-09  Jim Meyering  <meyering@lucent.com>
86223
86224         * m4/jm-macros.m4 (jm_MACROS): Add a test to see if -lm is required
86225         to link seq.  If so, set SEQ_LIBM to -lm.  From Bruno Haible.
86226
86227         * m4/gnu-source.m4 (AC__GNU_SOURCE): New file/macro.
86228         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require it.
86229
86230 2000-07-09  Jim Meyering  <meyering@lucent.com>
86231
86232         * lib/Most files: Update copyright dates to include 2000.
86233
86234 2000-07-08  Jim Meyering  <meyering@lucent.com>
86235
86236         * lib/xgethostname.c (ENAMETOOLONG): Define to an unlikely value
86237         if not defined.
86238         (xgethostname): Remove now-unnecessary #ifdef.
86239         Move declaration of `err' into loop where it's used.
86240
86241 2000-07-05  Paul Eggert  <eggert@twinsun.com>
86242         and Bruno Haible  <haible@clisp.cons.org>
86243
86244         * m4/mbstate_t.m4 (AC_MBSTATE_T_OBJECT): Test for mbstate_t
86245         only if the test for an object-type mbstate_t fails.  This
86246         prevents us from mistakenly reporting that mbstate_t is a
86247         system object type after we "#define mbstate_t int" to work
86248         around its lack.
86249
86250 2000-07-05  Paul Eggert  <eggert@twinsun.com>
86251         and Bruno Haible  <haible@clisp.cons.org>
86252
86253         * lib/quotearg.c (mbrtowc): Declare returned type, since BeOS doesn't.
86254
86255 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
86256
86257         * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): Pass a reasonably large buffer
86258         to strerror_r.
86259         Include <ctype.h> for use of isalpha.
86260
86261 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
86262
86263         * lib/xgethostname.c (xgethostname): Protect against the SunOS 5.5 bug
86264         by allocating a larger buffer. Test the gethostname return value for
86265         being >= 0, not == 0, for BeOS.  Don't exhaust memory if gethostname
86266         returns an error and ENAMETOOLONG isn't defined.
86267
86268 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
86269
86270         * lib/quotearg.c (struct quoting_options): Simplify quote_these_too
86271         dimension.
86272
86273 2000-07-04  Jim Meyering  <meyering@lucent.com>
86274
86275         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Use plain old `echo' instead
86276         of the deprecated AC_CHECKING.
86277
86278 2000-07-04  Jim Meyering  <meyering@lucent.com>
86279
86280         * lib/strndup.c: [!HAVE_DECL_STRNLEN]: Declare strnlen.
86281         Reported by Bruno Haible.
86282
86283 2000-07-04  Jim Meyering  <meyering@lucent.com>
86284
86285         * lib/quotearg.c: Make inclusion of <wchar.h> independent of whether
86286         HAVE_MBRTOWC is set.  Required at least for irix-5.6, which
86287         lacks mbrtowc.
86288
86289 2000-07-03  Paul Eggert  <eggert@twinsun.com>
86290
86291         * m4/mbstate_t.m4 (AC_MBSTATE_T_OBJECT): Port to autoconf 2.13.
86292         Add AC_CHECK_HEADERS(stdlib.h), since we use HAVE_STDLIB_H.
86293
86294 2000-07-03  Paul Eggert  <eggert@twinsun.com>
86295         and Bruno Haible  <haible@clisp.cons.org>
86296
86297         * lib/quotearg.c (mbrtowc):
86298         Assign to *pwc, and return 1 only if result is nonzero.
86299         (iswprint): Use ISPRINT when substituting our own mbrtowc.
86300
86301 2000-07-03  Jim Meyering  <meyering@lucent.com>
86302
86303         * m4/check-decl.m4 (AC_CHECK_DECLS): Add strnlen.
86304
86305 2000-07-03  Jim Meyering  <meyering@lucent.com>
86306
86307         * lib/readutmp.h: [HAVE_UTMPX_H]: Include <utmp.h> if HAVE_UTMP_H.
86308         This is necessary to get a definition of e.g., UTMP_FILE on
86309         HP-UX 10.20.
86310         From Bob Proulx.
86311
86312 2000-07-02  Jim Meyering  <meyering@lucent.com>
86313
86314         * m4/mbstate_t.m4: Also define mbstate_t, if necessary.
86315
86316         * m4/chown.m4: Replace each use of AC_SUBST(LIBOBJS)/LIBOBJS=... with
86317         AC_LIBOBJ(function_name).
86318         * m4/chown.m4: Likewise.
86319         * m4/fnmatch.m4: Likewise.
86320         * m4/ftruncate.m4: Likewise.
86321         * m4/getgroups.m4: Likewise.
86322         * m4/getline.m4: Likewise.
86323         * m4/group-member.m4: Likewise.
86324         * m4/jm-macros.m4: Likewise.
86325         * m4/lstat.m4: Likewise.
86326         * m4/malloc.m4: Likewise.
86327         * m4/memcmp.m4: Likewise.
86328         * m4/nanosleep.m4: Likewise.
86329         * m4/putenv.m4: Likewise.
86330         * m4/realloc.m4: Likewise.
86331         * m4/regex.m4: Likewise.
86332         * m4/stat.m4: Likewise.
86333         * m4/strftime.m4: Likewise.
86334
86335 2000-07-02  Jim Meyering  <meyering@lucent.com>
86336
86337         * lib/quotearg.c (mbstate_t): Don't define here.
86338
86339 2000-07-02  Jim Meyering  <meyering@lucent.com>
86340
86341         * lib/nanosleep.c (SIGCONT): Define if not already defined.
86342
86343 2000-07-01  Jim Meyering  <meyering@lucent.com>
86344
86345         * m4/uptime.m4: Put double quotes around use of $cross_compiling.
86346
86347 2000-07-01  Jim Meyering  <meyering@lucent.com>
86348
86349         * m4/ls-mntd-fs.m4: Remove a `FIXME' comment and fix the associated
86350         problem.
86351
86352 2000-07-01  Bruno Haible  <haible@clisp.cons.org>
86353
86354         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Rename BeOS specific
86355         macro from MOUNTED_NEXT_DEV to MOUNTED_FS_STAT_DEV.
86356
86357 2000-07-01  Bruno Haible  <haible@clisp.cons.org>
86358
86359         * lib/mountlist.c: Use MOUNTED_FS_STAT_DEV instead of MOUNTED_NEXT_DEV,
86360         per change in ../m4/ls-mntd-fs.m4.
86361         (read_filesystem_list): Ignore symbolic links.
86362
86363 2000-06-29  Jim Meyering  <meyering@lucent.com>
86364
86365         * lib/same.c: Include <string.h> or <strings.h>, as appropriate,
86366         for declaration of strcmp.
86367
86368         * lib/long-options.c: Include <stdlib.h>, for declaration of exit.
86369
86370         * lib/mountlist.c (fsp_to_string) [HAVE_F_FSTYPENAME_IN_STATFS]:
86371         Avoid warning by casting result to `char *' to remove `const'.
86372
86373 2000-06-28  Jim Meyering  <meyering@lucent.com>
86374
86375         * m4/mbstate_t.m4: Use stdlib.h, not stdio.h.  The latter is not
86376         included by quotearg.c, for which we perform this test.  From
86377         Bruno Haible.
86378
86379 2000-06-27  Bruno Haible  <haible@clisp.cons.org>
86380
86381         * m4/check-decl.m4 (_jm_DECL_HEADERS): Check for utmp.h as well.
86382         * m4/prereq.m4 (jm_PREREQ_READUTMP): Likewise. If either <utmp.h> or
86383         <utmpx.h> exists, put readutmp.o into LIBOBJS.
86384
86385 2000-06-27  Bruno Haible  <haible@clisp.cons.org>
86386
86387         * lib/Makefile.am (libfetish_a_SOURCES): Remove readutmp.c.
86388
86389 2000-06-26  Paul Eggert  <eggert@twinsun.com>
86390
86391         savedir now sets errno on failure and invokes xmalloc to get memory.
86392         Fix a couple of other minor bugs while we're at it.
86393
86394         * lib/savedir.c (<unistd.h>): Do not include; there's no need.
86395         (NAMLEN): Remove macro.
86396         (malloc, realloc): Remove decls.
86397         (stpcpy): Likewise.
86398         ("xalloc.h"): Include.
86399         (NAME_SIZE_DEFAULT): New macro.
86400         (savedir): Use xmalloc / xrealloc to allocate memory.
86401         Use NAME_SIZE_DEFAULT if name_size is negative or overflows to zero.
86402         Skip "" directory entries.
86403         Use strlen to calculate directory entry length, since the old method
86404         is rarely used these days and isn't worth supporting.
86405         Don't use a pointer after freeing it.
86406         Check for integer overflow when calculating allocation size.
86407         Use memcpy to copy entries, instead of stpcpy.
86408         Set errno properly when returning NULL.
86409         Check for readdir error.
86410
86411 2000-06-26  Jim Meyering  <meyering@lucent.com>
86412
86413         * lib/posixtm.c [HAVE_STDLIB_H]: Include stdlib.h, for decl of abort.
86414
86415 2000-06-25  Jim Meyering  <meyering@lucent.com>
86416
86417         * m4/mbstate_t.m4: Include stdio.h before wchar.h to work around
86418         Linux header bug when _XOPEN_SOURCE is defined to 500.
86419
86420 2000-06-25  Bruno Haible  <haible@clisp.cons.org>
86421
86422         * lib/unicodeio.c (print_unicode_char): Work around ansi2knr
86423         deficiency.
86424
86425 2000-06-25  Bruno Haible  <haible@clisp.cons.org>
86426
86427         * lib/getusershell.c (xmalloc, xrealloc): Remove functions.
86428         Include xalloc.h.
86429         Don't include <stdlib.h>.  Don't declare malloc, realloc.
86430
86431 2000-06-24  Jim Meyering  <meyering@lucent.com>
86432
86433         * m4/strerror_r.m4: Revive this file -- to try out an experimental
86434         version of AC_FUNC_STRERROR_R that may work even on BeOS, a system
86435         for which strerror does return char*, but which lacks a conveniently
86436         accessible declaration of the function.  If the compile-test says
86437         strerror_r doesn't work, then resort to a `run'-test that works on
86438         BeOS and segfaults on DEC Unix.
86439
86440 2000-06-24  Jim Meyering  <meyering@lucent.com>
86441
86442         * lib/error.c [!HAVE_DECL_STRERROR_R]: Declare strerror_r.
86443
86444 2000-06-23  Paul Eggert  <eggert@twinsun.com>
86445
86446         * m4/mbstate_t.m4: New file, defining AC_MBSTATE_T_OBJECT.
86447         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Use it.  Add check for iswprint.
86448
86449 2000-06-23  Paul Eggert  <eggert@twinsun.com>
86450
86451         * lib/quotearg.c: Include <wctype.h> after <wchar.h>, for Solaris 2.5.
86452         (mbrtowc, mbstate_t): Define substitutes if
86453         HAVE_MBRTOWC && HAVE_WCHAR_H && !HAVE_MBSTATE_T_OBJECT.
86454         (iswprint): Define to 1 if !defined iswprint && !HAVE_ISWPRINT,
86455         not if ! (HAVE_MBRTOWC && HAVE_WCHAR_H).
86456
86457 2000-06-23  Jim Meyering  <meyering@lucent.com>
86458
86459         * m4/afs.m4: Add missing AC_MSG_RESULT.
86460         Reported by Bruno Haible.
86461
86462         * m4/fsusage.m4: s/AC_MSG_CHECKING/AC_CHECKING/.
86463         Suggestion from Bruno Haible.
86464
86465 2000-06-23  Jim Meyering  <meyering@lucent.com>
86466
86467         * lib/getpass.c: New file, from Bruno Haible.  Required for BeOS.
86468
86469 2000-06-21  Jim Meyering  <meyering@lucent.com>
86470
86471         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add getpass.
86472
86473 2000-06-21  Jim Meyering  <meyering@lucent.com>
86474
86475         * lib/Makefile.am (libfetish_a_SOURCES): Add getstr.c.
86476         (noinst_HEADERS): Add getstr.h.
86477
86478         * lib/getline.c (getstr): Move into a separate file.
86479         * lib/getstr.c (getstr): New file, extracted from getline.c, with
86480         the following changes: new parameter, delim2; both delim[12]
86481         parameters have type `int', not `char'.  The latter would lose
86482         with 8-bit delimiters.
86483         * lib/getstr.h: New file.
86484
86485 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
86486
86487         * lib/xgetcwd.c (xgetcwd): If the required pathname length is smaller
86488         than 1024, return a memory chunk of least possible size, instead
86489         of size PATH_MAX + 2. In the loop, increment the size proportionally.
86490         Use free/xmalloc instead of xrealloc to avoid copying for very long
86491         paths.
86492
86493 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
86494
86495         * lib/path-concat.c (path_concat): Don't access dir[-1] if dir is
86496         the empty string.
86497
86498 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
86499
86500         * lib/canon-host.c (canon_host): Use malloc and memcpy to copy an
86501         address, not strdup.  Include <stdlib.h> and don't declare free().
86502
86503 2000-06-19  Jim Meyering  <meyering@lucent.com>
86504
86505         * lib/getloadavg.c [HAVE_NLIST_H] (NLIST_STRUCT): Define.
86506
86507 2000-06-18  Jim Meyering  <meyering@lucent.com>
86508
86509         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Remove mkdir.
86510
86511         * m4/link-follow.m4 (jm_AC_FUNC_LINK_FOLLOWS_SYMLINK): Change the
86512         `checking whether...' message to be consistent with that of the
86513         lstat test.
86514
86515 2000-06-18  Jim Meyering  <meyering@lucent.com>
86516
86517         * lib/mkdir.c: Remove file, due mainly to copyright incompatibility.
86518         Besides, these days every porting target provides a mkdir function.
86519
86520         * lib/strnlen.c: Include memory.h, string.h, and/or strings.h as
86521         needed. (this snippet comes from src/system.h).
86522
86523 2000-06-16  Bruno Haible  <haible@clisp.cons.org>
86524
86525         * m4/glibc21.m4 (jm_GLIBC21): Define GLIBC21 for Makefiles, not for C.
86526
86527 2000-06-15  Paul Eggert  <eggert@twinsun.com>
86528
86529         * lib/human.c (adjust_value): New function.
86530         (human_readable_inexact): Apply rounding style even when
86531         printing approximate values.
86532
86533 2000-06-14  Paul Eggert  <eggert@twinsun.com>
86534
86535         * lib/human.c (human_readable_inexact): Allow an input block
86536         size that is not a multiple of the output block size, and vice versa.
86537         Reported by Piergiorgio Sartor.
86538
86539 2000-06-14  Paul Eggert  <eggert@twinsun.com>
86540
86541         * lib/getdate.y (get_date): Apply relative times after time
86542         zone indicator, not before.  Reported by Todd A. Jacobs.
86543
86544 2000-06-13  Jim Meyering  <meyering@lucent.com>
86545
86546         * lib/Makefile.am (all-local): Depend on lstat.c and stat.c.
86547
86548         * lib/xstat.in [!HAVE_DECL_FREE]: Declare free in lstat.c.
86549
86550 2000-06-12  Paul Eggert  <eggert@twinsun.com>
86551
86552         * lib/xstat.in: Include <stdlib.h> in lstat, to declare "free".
86553
86554 2000-06-12  Jim Meyering  <meyering@lucent.com>
86555
86556         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Replace with
86557         AC_FUNC_GETLOADAVG from autoconf, and tweak the latter to accept an
86558         optional argument.
86559         * m4/jm-macros.m4: s/AM_FUNC_GETLOADAVG/AC_FUNC_GETLOADAVG/, and supply
86560         the optional argument, `lib'.
86561
86562 2000-06-08  Jim Meyering  <meyering@lucent.com>
86563
86564         * m4/largefile.m4: Remove file (now that it's part of autoconf).
86565
86566 2000-06-04  Paul Eggert  <eggert@twinsun.com>
86567
86568         Rewrite largefile configuration so that we don't need to run
86569         getconf and don't need AC_CANONICAL_HOST.  [I'm leaving the use of
86570         AC_CANONICAL_HOST in configure.in -- jmm]
86571
86572         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS,
86573         AC_SYS_LARGEFILE_SPACE_APPEND): Remove.
86574         (AC_SYS_LARGEFILE_TEST_INCLUDES): New macro.
86575         (AC_SYS_LARGEFILE_MACRO_VALUE): Change arguments from
86576         CODE-TO-SET-DEFAULT to VALUE, INCLUDES, FUNCTION-BODY.
86577         All uses changed.
86578         Instead of inspecting the output of getconf, try to compile the
86579         test program without and with the macro definition.
86580         (AC_SYS_LARGEFILE): Do not require AC_CANONICAL_HOST or check
86581         for getconf.  Instead, check for the needed flags by compiling
86582         test programs.
86583
86584 2000-06-04  Paul Eggert  <eggert@twinsun.com>
86585
86586         * lib/strnlen.c: Include <config.h> if HAVE_CONFIG_H.
86587
86588 2000-06-04  Jim Meyering  <meyering@lucent.com>
86589
86590         * lib/getugroups.c (getugroups): Cast -1 to gid_t, for systems like
86591         SunOS 4.1.4 for which gid_t is an unsigned type.
86592
86593 2000-06-03  Jim Meyering  <meyering@lucent.com>
86594
86595         * m4/prereq.m4 (jm_PREREQ_HUMAN): Use []-quoted list in AC_CHECK_DECLS,
86596         now that autoconf requires that.
86597
86598         * m4/jm-glibc-io.m4: Add a kludge to make autoheader emit the required
86599         #undefs.  E.g., #undef HAVE_DECL_FERROR_UNLOCKED.
86600         Use []-quoted list in AC_CHECK_DECLS, now that autoconf requires that.
86601
86602 2000-06-03  Jim Meyering  <meyering@lucent.com>
86603
86604         * lib/strnlen.c [!HAVE_DECL_MEMCHR]: Declare memchr.
86605
86606 2000-06-03  Bruno Haible  <haible@clisp.cons.org>
86607
86608         * m4/glibc21.m4: New file.
86609         * m4/jm-macros.m4 (jm_MACROS): Call jm_GLIBC21.
86610
86611 2000-06-03  Bruno Haible  <haible@clisp.cons.org>
86612
86613         * lib/Makefile.am (install-exec-local): On systems with glibc-2.1 or
86614         newer, don't install charset.alias.
86615         * lib/config.charset: Change the Linux/glibc rules so they become empty
86616         on glibc-2.1 or newer.
86617
86618 2000-06-02  Jim Meyering  <meyering@lucent.com>
86619
86620         * lib/mountlist.c: Back out last change.  Instead, do this...
86621         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Set the
86622         me_dummy member using the same `ignore'-testing code.
86623         * lib/mountlist.h (ME_DUMMY): Add `autofs' to the list of ignored
86624         fs_type strings.
86625         From Mark D. Roth.
86626
86627 2000-05-29  Jim Meyering  <meyering@lucent.com>
86628
86629         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Ignore
86630         mounts with the `ignore' attribute.  Based on a patch from
86631         Mark D. Roth.
86632
86633 2000-05-28  Jim Meyering  <meyering@lucent.com>
86634
86635         * m4/jm-macros.m4 (AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): Rename from
86636         jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
86637         * m4/stat.m4: Likewise.
86638         * m4/lstat.m4: Likewise.
86639         * m4/lstat-slash.m4: Remove file (absorbed into autoconf).
86640
86641         * m4/jm-macros.m4 (AC_FUNC_STRERROR_R): Rename from jm_FUNC_STRERROR_R.
86642         * m4/strerror_r.m4: Remove file (absorbed into autoconf).
86643
86644 2000-05-26  Jim Meyering  <meyering@lucent.com>
86645
86646         * m4/uptime.m4: Use `$cross_compiling', not `$ac_cv_prog_cc_cross'.
86647
86648 2000-05-24  Jim Meyering  <meyering@lucent.com>
86649
86650         * m4/prereq.m4: Use []-quoted list in AC_CHECK_MEMBERS, now that
86651         autoconf requires that.
86652         * m4/lib-check.m4: Likewise.
86653         * m4/jm-macros.m4: Likewise.
86654         * m4/strftime.m4: Likewise.
86655
86656         * m4/check-decl.m4 (jm_CHECK_DECLS): Use []-quoted list in
86657         AC_CHECK_DECLS, now that autoconf requires that.
86658
86659 2000-05-22  Jim Meyering  <meyering@lucent.com>
86660
86661         * m4/stat.m4: Require jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
86662         * m4/lstat.m4: Likewise.
86663
86664 2000-05-22  Jim Meyering  <meyering@lucent.com>
86665
86666         * lib/makepath.c: Remove old, now-unnecessary `#ifdef __MSDOS__' block.
86667
86668 2000-05-20  Jim Meyering  <meyering@lucent.com>
86669
86670         * m4/prereq.m4 (jm_PREREQ_HUMAN): New macro.
86671         (jm_PREREQ): Use it.
86672
86673 2000-05-18  Jim Meyering  <meyering@lucent.com>
86674
86675         * lib/hash.c (hash_rehash): Fix a nasty bug: copy the free entry list
86676         back, too, since it may have been modified by allocate_entry.
86677         (hash_delete): Rewrite to use neither the assignment operator
86678         nor the comma operator in an if-expression.
86679
86680 2000-05-15  Paul Eggert  <eggert@twinsun.com>
86681
86682         * lib/closeout.c:
86683         <sys/stat.h>, <sys/types.h>, <unistd.h>, (STDOUT_FILENO):
86684         Remove; no longer needed.
86685         "quotearg.h": Add include.
86686         (file_name): Do not bother to explicitly initialize to NULL; it's less
86687         efficient on some hosts.
86688         (close_stdout_status): Remove test as to whether stdout was already
86689         closed; it breaks for the case "echo x | sort >&-".
86690         Quote file name colons.
86691         Do not assume that _("write error") lacks format strings.
86692
86693 2000-05-15  Jim Meyering  <meyering@lucent.com>
86694
86695         * lib/version-etc.c (version_etc_copyright): Update the copyright
86696         string used in all --version output.
86697
86698 2000-05-14  Jim Meyering  <meyering@lucent.com>
86699
86700         * lib/closeout.c (close_stdout_set_file_name): New function.
86701         (close_stdout_status): Use new file-scoped global.
86702         Return right away if fstat says the stdout file descriptor is invalid.
86703         * lib/closeout.h (close_stdout_set_file_name): Declare.
86704
86705 2000-05-10  Jim Meyering  <meyering@lucent.com>
86706
86707         * lib/closeout.c [default_exit_status]: New file-scoped variable.
86708         (close_stdout_set_status): New function.
86709         * lib/closeout.h (close_stdout_set_status): Declare.
86710
86711 2000-05-09  Jim Meyering  <meyering@lucent.com>
86712
86713         * m4/gettext.m4: Rename this...
86714         * m4/libintl.m4: ...to this.
86715
86716 2000-05-08  Jim Meyering  <meyering@lucent.com>
86717
86718         * lib/long-options.c: Don't include closeout.h.
86719         (parse_long_options): Don't call close_stdout for --version.
86720
86721 2000-05-06  Paul Eggert  <eggert@twinsun.com>
86722
86723         * m4/largefile.m4 (AC_SYS_LARGEFILE): Define _XOPEN_SOURCE to
86724         be 500, instead of _GNU_SOURCE to be 1, to work around glibc
86725         2.1.3 bug.  This avoids a clash when files like regex.c define
86726         _GNU_SOURCE.
86727
86728 2000-05-06  Jim Meyering  <meyering@lucent.com>
86729
86730         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add atexit.
86731         (AC_REPLACE_FUNCS): Add strnlen.
86732
86733         * m4/rmdir-errno.m4 (fetish_FUNC_RMDIR_NOTEMPTY): New macro and file.
86734         * m4/jm-macros.m4: Require fetish_FUNC_RMDIR_NOTEMPTY.
86735
86736         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Save and restore LIBS around
86737         AC_SEARCH_LIBS call for nanosleep.
86738         (LIB_NANOSLEEP): Set and AC_SUBST.
86739
86740 2000-05-06  Jim Meyering  <meyering@lucent.com>
86741
86742         * lib/strnlen.c: Undefine __strnlen and strnlen.
86743         [!weak_alias]: Define __strnlen to strnlen.
86744
86745         * lib/atexit.c: New file, from libiberty.
86746
86747 2000-05-06  Jim Meyering  <meyering@lucent.com>
86748
86749         * lib/closeout.c (close_stdout_status): Also check for errors on the
86750         stderr stream.
86751
86752 2000-05-05  Jim Meyering  <meyering@lucent.com>
86753
86754         * m4/jm-macros.m4 (jm_MACROS): Save and restore LIBS around
86755         AC_SEARCH_LIBS call for clock_gettime.
86756         (LIB_CLOCK_GETTIME): Set and AC_SUBST.
86757
86758         * m4/search-libs.m4: Update from autoconf.
86759
86760         su doesn't work on Solaris 2.6.
86761         * m4/lib-check.m4: When checking for struct spwd.sp_pwdp, also include
86762         <shadow.h>.  Reported by Dragos Harabor.
86763
86764 2000-05-05  Bruno Haible  <haible@clisp.cons.org>
86765
86766         * lib/localcharset.c (get_charset_aliases): Use malloc, realloc and
86767         memcpy instead of xmalloc, xrealloc, path_concat.
86768         (locale_charset): Treat empty environment variables as absent.
86769         (DIRECTORY_SEPARATOR, ISSLASH): New macros.
86770
86771 2000-05-04  Jim Meyering  <meyering@lucent.com>
86772
86773         * lib/getopt.c: Update from glibc.
86774         * lib/obstack.c: Likewise.
86775         * lib/obstack.h: Likewise.
86776         * lib/regex.c: Likewise.  NB: K&R compiler support is dropped for this
86777         file
86778
86779         * lib/regex.h: Likewise.
86780         * lib/strndup.c: Likewise.
86781         * lib/strnlen.c: New file, from glibc.
86782
86783 2000-05-03  Jim Meyering  <meyering@lucent.com>
86784
86785         * m4/check-decl.m4 (AC_CHECK_DECLS): Add strndup.
86786
86787 2000-05-02  Paul Eggert  <eggert@twinsun.com>
86788
86789         * m4/largefile.m4 (AC_SYS_LARGEFILE): Define _GNU_SOURCE if
86790         this is needed to make ftello visible (e.g. glibc 2.1.3).  Use
86791         compile-time test, rather than inspecting host and OS, to
86792         decide whether to define _LARGEFILE_SOURCE.
86793
86794 2000-05-01  Jim Meyering  <meyering@lucent.com>
86795
86796         * m4/fsusage.m4: Use AC_MSG_CHECKING instead of obsolete AC_CHECKING.
86797
86798         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Add BeOS support.
86799         Based on a patch from Bruno Haible.
86800
86801 2000-05-01  Jim Meyering  <meyering@lucent.com>
86802
86803         * lib/full-write.c (full_write): Remove `FIXME' part of comment.
86804
86805 2000-04-29  Jim Meyering  <meyering@lucent.com>
86806
86807         * lib/path-concat.c: Declare strdup only if it's not defined.
86808         * lib/canon-host.c: Likewise.
86809
86810 2000-04-28  Jim Meyering  <meyering@lucent.com>
86811
86812         * lib/rpmatch.c [HAVE_LIMITS_H]: Include limits.h before regex.h to
86813         avoid redefinition warning on some systems (HPUX).  Otherwise, regex.h
86814         is included first, then limits.h is included by locale.h by libintl.h.
86815         From John David Anglin.
86816
86817 2000-04-25  Jim Meyering  <meyering@lucent.com>
86818
86819         * lib/makepath.c (S_IRWXUGO): Define.
86820         (make_path): Always perform explicit chmod if MODE specifies any
86821         of the `special' permission bits.  Prompted by a bug report against
86822         install from Mate Wierdl and Joost van Baal.
86823
86824 2000-04-18  Jim Meyering  <meyering@lucent.com>
86825
86826         * m4/prereq.m4 (jm_PREREQ_GETPAGESIZE): New macro.
86827         (jm_PREREQ): Use it.
86828
86829 2000-04-18  Jim Meyering  <meyering@lucent.com>
86830
86831         * lib/README: New file.
86832
86833         * lib/getpagesize.h [!getpagesize && HAVE_OS_H && B_PAGE_SIZE]: Define
86834         getpagesize.  For BeOS.  Based on a patch from Bruno Haible.
86835
86836 2000-04-17  Jim Meyering  <meyering@lucent.com>
86837
86838         Get it right :-)
86839         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Emit the
86840         actual #define via AH_VERBATIM.  Don't need separate AC_DEFINE.
86841         Suggestion from Akim Demaille.
86842
86843 2000-04-17  Jim Meyering  <meyering@lucent.com>
86844
86845         * lib/strftime.c (my_strftime) [strftime]: Declare strftime here, since
86846         the definition of it to rpl_strftime also defined-away the system's
86847         declaration.
86848
86849 2000-04-15  Jim Meyering  <meyering@lucent.com>
86850
86851         Use `C' to denote so-called `contiguous' files, the same way
86852         that tar does.
86853         * lib/filemode.c (S_ISCTG) [!S_ISCTG && S_IFCTG]: Define.
86854         (ftypelet): Use S_ISCTG.
86855         From Michael Deutschmann.
86856
86857 2000-04-14  Jim Meyering  <meyering@lucent.com>
86858
86859         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Use the one-arg
86860         form of AC_DEFINE.  Otherwise, the #ifndef in AH_VERBATIM gets
86861         clobbered.
86862
86863 2000-04-14  Jim Meyering  <meyering@lucent.com>
86864
86865         * lib/strftime.c (my_strftime) [#ifdef strftime]: Declare strftime.
86866
86867 2000-04-13  Jim Meyering  <meyering@lucent.com>
86868
86869         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Use new
86870         AH_VERBATIM to insert required #ifndef into config.h.in.
86871         Suggestion from Akim Demaille.
86872
86873 2000-04-12  Jim Meyering  <meyering@lucent.com>
86874
86875         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Use AC_CHECK_HEADERS, not
86876         `AC_CHECK_HEADER' to check for locale.h.  Thanks to a report from
86877         Christian Krackowizer.
86878
86879         More code moved from ../configure.in into (jm_CHECK_ALL_TYPES).
86880         * m4/jm-macros.m4 (_GNU_SOURCE): Define.
86881         (AC_SYS_LARGEFILE): Require.
86882         (AM_C_PROTOTYPES): Require.
86883
86884 2000-04-08  Jim Meyering  <meyering@lucent.com>
86885
86886         * lib/Makefile.am (charset.alias): Use t-$@, not $@-t so the DOS 8.3
86887         names don't conflict.  Reported by Eli Zaretskii.
86888
86889 2000-04-07  Jim Meyering  <meyering@lucent.com>
86890
86891         * lib/putenv.c: Move inclusion of errno.h so it follows that of
86892         sys/types.h, to work around system header problems on AIX 3.2.5.
86893         From Bruno Haible.
86894
86895 2000-04-07  Bruno Haible  <haible@clisp.cons.org>
86896
86897         * lib/unicodeio.c (print_unicode_char): Avoid triggering Solaris iconv
86898         bug.  Deal with the different error behavior of Irix iconv.
86899
86900 2000-04-05  Paul Eggert  <eggert@twinsun.com>
86901
86902         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Don't use -n32 on
86903         IRIX if the installer said otherwise.
86904
86905 2000-04-05  Jim Meyering  <meyering@lucent.com>
86906
86907         Portability tweaks required for ultrix4.3.
86908         * m4/check-decl.m4 [!HAVE_UTMPX_H] (headers): Include <utmp.h>.
86909         (jm_CHECK_DECLS): Add getutent to the list of functions.
86910         (_jm_DECL_HEADERS): Add utmpx.h.
86911         From John David Anglin.
86912
86913         * m4/strftime.m4: Back out the 2000-04-02 change.
86914         Instead of that change, simply undefine putenv in the test program.
86915
86916 2000-04-05  Jim Meyering  <meyering@lucent.com>
86917
86918         Portability tweaks required for ultrix4.3.
86919         * lib/readutmp.h [HAVE_UTMPX_H && !HAVE_DECL_GETUTENT]: Declare
86920         getutent.
86921         * lib/readutmp.c: Include sys/types.h before sys/stat.h.
86922         * lib/canon-host.c: Declare strdup.
86923         * lib/path-concat.c: Likewise.
86924         From John David Anglin.
86925
86926 2000-04-04  Jim Meyering  <meyering@lucent.com>
86927
86928         Be more DOS 8.3-friendly.
86929         * lib/ref-add.sin: Renamed from ref-add.sed.in.
86930         * lib/ref-del.sin: Renamed from ref-del.sed.in.
86931         * lib/Makefile.am: Reflect renaming.
86932         Reported by Eli Zaretskii.
86933
86934         Use a temporary file name that won't clash with `charset.alias'
86935         in the DOS 8.3 name space.
86936         * lib/Makefile.am (charset_tmp): Define.
86937         (install-exec-local): Use $(charset_tmp) instead of $(charset_alias)-t.
86938         (uninstall-local): Likewise.
86939         Reported by Eli Zaretskii.
86940
86941 2000-04-03  Jim Meyering  <meyering@lucent.com>
86942
86943         * m4/gettext.m4: Fix typo in comment.
86944
86945         * m4/codeset.m4 (AC_CHECK_HEADERS): Add langinfo.h (moved here from
86946         textutils/configure.in).  Suggestion from Paul Eggert.
86947         (AC_CHECK_FUNCS): Add nl_langinfo.  (also from textutils/configure.in)
86948
86949 2000-04-02  Paul Eggert  <eggert@twinsun.com>
86950
86951         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME): Set TZ environment
86952         variable in the shell rather than using putenv, which isn't
86953         portable.  This avoids the configure-time inter-test dependency
86954         on the potentially-renamed putenv function.
86955
86956 2000-03-30  Paul Eggert  <eggert@twinsun.com>
86957
86958         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Include <sys/stat.h>
86959         before checking struct stat.st_blksize, so that
86960         HAVE_STRUCT_STAT_ST_BLKSIZE is defined correctly.
86961
86962 2000-03-29  Paul Eggert  <eggert@twinsun.com>
86963
86964         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Check for strftime,
86965         since strftime.c uses HAVE_STRFTIME to decide whether to use
86966         the underlying strftime.
86967
86968 2000-03-29  Paul Eggert  <eggert@twinsun.com>
86969
86970         * lib/time/strftime.c (my_strftime): Make sure we call the system
86971         strftime, not ourselves, when invoking the underlying strftime.
86972
86973 2000-03-24  Jim Meyering  <meyering@lucent.com>
86974
86975         * lib/Makefile.am (EXTRA_DIST): Add ref-add.sed.in and ref-del.sed.in.
86976         (charset_alias): Define.
86977         (install-exec-local): Factor out common code.
86978         (uninstall-local): Split lines longer than 80.
86979         (ref-add.sed, ref-del.sed): Remove rules... (do the following instead)
86980         (SUFFIXES): Define.
86981         (.sed.in.sed): New rule.  Don't redirect directly to $@.
86982         (CLEANFILES): Add ref-add.sed and ref-del.sed.
86983
86984 2000-03-19  Bruno Haible  <haible@clisp.cons.org>
86985
86986         * lib/config.charset: Output a line containing "Packages using this
86987         file".
86988         * lib/ref-add.sed.in, lib/ref-del.sed.in: New files.
86989         * lib/Makefile.am (install-exec-local, uninstall-local, ref-add.sed,
86990         ref-del.sed): New rules.
86991
86992 2000-03-17  Jim Meyering  <meyering@lucent.com>
86993
86994         * lib/unicodeio.c (<string.h>): Include only #if HAVE_STRING_H.
86995         Otherwise, include <strings.h>
86996
86997 2000-03-17  Bruno Haible  <haible@clisp.cons.org>
86998
86999         * lib/unicodeio.c (utf8_wctomb): New function.
87000         (print_unicode_char): Pass the Unicode character to iconv in UTF-8
87001         format instead of in UCS-4 with platform dependent endianness.
87002
87003 2000-03-10  Jim Meyering  <meyering@lucent.com>
87004
87005         * m4/lib-check.m4: Look for getspnam in -lgen, too.
87006         From Marco Franzen.
87007
87008 2000-03-07  Paul Eggert  <eggert@twinsun.com>
87009
87010         * lib/savedir.c (savedir): Work even if directory size is
87011         negative; this can happen with some screwy NFS configurations.
87012
87013 2000-03-06  Jim Meyering  <meyering@lucent.com>
87014
87015         * lib/localcharset.c (get_charset_aliases): Don't try to free file_name
87016         if it's NULL (because we ran out of memory).  From Bruno Haible.
87017
87018 2000-03-05  Jim Meyering  <meyering@lucent.com>
87019
87020         * lib/localcharset.c ("path-concat.h"): Include.
87021         (get_charset_aliases): Use path_concat instead of ANSI string
87022         concatenation.
87023
87024         * lib/unicodeio.h (PARAMS): Define.
87025         Use it to guard prototype.
87026
87027 2000-03-04  Jim Meyering  <meyering@lucent.com>
87028
87029         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require AC_C_VOLATILE,
87030         for lib/localcharset.c.
87031
87032 2000-03-04  Jim Meyering  <meyering@lucent.com>
87033
87034         * lib/Makefile.am (install-exec-local): Create $(libdir) before
87035         installing into it.
87036         (uninstall-local): Uncomment this rule so `make distcheck' works
87037         once again.
87038
87039         * lib/unicodeio.c (<errno.h>): Include it.
87040         (errno): Declare if not defined.
87041
87042         * lib/localcharset.c: Add Bruno's comment justifying use of volatile.
87043
87044         * lib/config.charset: New version, incorporating remarks from a linux
87045         i18n mailing list.  From Bruno Haible.
87046
87047 2000-03-04  Bruno Haible  <haible@clisp.cons.org>
87048
87049         * m4/codeset.m4: New file.
87050         * m4/iconv.m4: New file.
87051         * m4/jm-macros.m4 (jm_MACROS): Call jm_LANGINFO_CODESET and jm_ICONV.
87052
87053 2000-03-03  Jim Meyering  <meyering@lucent.com>
87054
87055         * m4/regex.m4: Make sure re_compile_pattern accepts patterns like `{1'.
87056
87057 2000-03-02  Jim Meyering  <meyering@lucent.com>
87058
87059         * m4/timespec.m4: Require AC_HEADER_TIME before the cache check so
87060         the messages come out on separate lines.
87061
87062         * m4/jm-glibc-io.m4 (jm_FUNC_GLIBC_UNLOCKED_IO): Use AC_CHECK_DECLS,
87063         rather than jm_CHECK_DECLARATIONS.
87064         * m4/decl.m4: Remove now-unused file.
87065
87066         * m4/check-decl.m4 (AC_CHECK_DECLS): Add getlogin, ttyname, and
87067         geteuid.
87068
87069 2000-03-02  Jim Meyering  <meyering@lucent.com>
87070
87071         * lib/Makefile.am (EXTRA_DIST): Add config.charset.
87072
87073 2000-03-01  Jim Meyering  <meyering@lucent.com>
87074
87075         * lib/localcharset.c: Guard some #includes with `#if HAVE_...'.
87076         * lib/unicodeio.c: Likewise.
87077
87078 2000-03-01  Bruno Haible  <haible@clisp.cons.org>
87079
87080         * lib/config.charset: New file.
87081         * lib/localcharset.c: New file.
87082         * lib/unicodeio.h, lib/unicodeio.c: New files.
87083         * lib/Makefile.am (DEFS): Add -DLIBDIR=...
87084         (libfetish_a_SOURCES): Add localcharset.c and unicodeio.c.
87085         (noinst_HEADERS): Add unicodeio.h.
87086         (all-local, install-exec-local, charset.alias): New targets.
87087
87088 2000-02-28  Paul Eggert  <eggert@twinsun.com>
87089
87090         * lib/quotearg.c (ALERT_CHAR): New macro.
87091         (quotearg_buffer_restyled): Use it.
87092
87093 2000-02-27  Jim Meyering  <meyering@lucent.com>
87094
87095         * m4/check-decl.m4: Add getenv to the list.
87096
87097 2000-02-27  Jim Meyering  <meyering@lucent.com>
87098
87099         * lib/strtoumax.c: Fix typo in decl of strtoul: s/long long/long/.
87100         Guard declaration of strtoull also with `&& HAVE_UNSIGNED_LONG_LONG'.
87101
87102         * lib/backupfile.c: Guard inclusion of stdlib.h with
87103         `#if HAVE_STDLIB_H', not `#if STDC_HEADERS'.
87104         Declare malloc if needed.
87105
87106         * lib/backupfile.c: Use `#if !HAVE_DECL...' instead of
87107         `#ifndef HAVE_DECL..'
87108         now that autoconf always defines the HAVE_DECL_ symbols.
87109         * lib/human.c: Likewise.
87110         * lib/same.c: Likewise.
87111         * lib/strtoumax.c: Likewise.
87112
87113         * lib/backupfile.c: Arrange for cpp to fail if the configure-time
87114         declaration check was not run.
87115         * lib/hash.c: Likewise.
87116         * lib/human.c: Likewise.
87117         * lib/same.c: Likewise.
87118         * lib/strtoumax.c: Likewise.
87119
87120         * lib/userspec.c (parse_user_spec): If there is no `:' but there is a
87121         `.', then first look up the entire `.'-containing string as a login
87122         name.
87123
87124 2000-02-23  Jim Meyering  <meyering@lucent.com>
87125
87126         * m4/check-decl.m4: Now that we have the new AC_CHECK_DECLS, use it
87127         in place of my hack.
87128
87129 2000-02-18  Paul Eggert  <eggert@twinsun.com>
87130
87131         * lib/getdate.y: Handle two-digit years with leading zeros correctly.
87132         (textint): New typedef.
87133         (parser_control): Member year changed from int to textint.
87134         All uses changed.
87135         (YYSTYPE): Removed; replaced by %union with int and textint members.
87136         (tDAY, tDAY_UNIT, tDAYZONE, tHOUR_UNIT, tID, tLOCAL_ZONE, tMERIDIAN,
87137         tMINUTE_UNIT, tMONTH, tMONTH_UNIT tSEC_UNIT, tSNUMBER, tUNUMBER,
87138         tYEAR_UNIT, tZONE, o_merid): Now of type <intval>.
87139         (tSNUMBER, tUNUMBER): Now of type <textintval>.
87140         (date, number, to_year): Use width of number in digits, not its value,
87141         to determine whether it's a 2-digit year, or a 2-digit time.
87142         (yylex): Store number of digits of numeric tokens.
87143         Reported by John Kendall.
87144
87145         (parser_control): Changed from struct parser_control to typedef (for
87146         consistency).  All uses changed.
87147
87148         (tID): Removed; not used.
87149         (yylex): Return '?' for unknown identifiers, rather than (unused) tID.
87150
87151 2000-02-14  Paul Eggert  <eggert@twinsun.com>
87152
87153         * lib/getpagesize.h (getpagesize): Port to VMS for Alpha;
87154         adapted from changes to grep getpagesize.h by Martin P.J. Zinser.
87155
87156 2000-02-12  Jim Meyering  <meyering@lucent.com>
87157
87158         * lib/userspec.c (ISDIGIT): Define it.
87159         (isdigit): Remove definition.
87160         (is_number): Use ISDIGIT, not isdigit.
87161         <libintl.h>: Include.
87162         (_ and N_): Define.
87163         (parse_user_spec): Mark translatable strings.
87164
87165 2000-02-10  Jim Meyering  <meyering@lucent.com>
87166
87167         With these changes, nanosleep.[ch] are finally enough like the other
87168         lib/* replacement files to compile on a few more losing systems.
87169
87170         * lib/nanosleep.h: Don't include config.h.
87171         Remove prototype from declaration of nanosleep.
87172         (PARAMS): Remove now-unneeded definition.
87173         * lib/nanosleep.c: #undef nanosleep.
87174         (rpl_nanosleep): Rename from nanosleep.
87175
87176 2000-02-10  Jim Meyering  <meyering@lucent.com>
87177
87178         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Rename replacement function from
87179         gnu_nanosleep to rpl_nanosleep.
87180
87181 2000-02-09  Jim Meyering  <meyering@lucent.com>
87182
87183         * m4/lib-check.m4 (jm_LIB_CHECK): Fix typo: check for sp_pwdp in
87184         struct spwd, rather than in struct passwd.  Reported by Gaël Quéri.
87185
87186 2000-02-08  Akim Demaille  <akim@epita.fr>
87187
87188         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Quote square brackets with
87189         `[' and `]' and remove uses of `changequote'.
87190         (AC_SYS_LARGEFILE_MACRO_VALUE): Likewise.
87191         (AC_SYS_LARGEFILE): Likewise.
87192         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
87193         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME): Remove now-unnecessary use
87194         of changequote.
87195         * m4/regex.m4 (jm_INCLUDED_REGEX): Likewise.
87196         * m4/readdir.m4 (jm_FUNC_READDIR): Likewise
87197         * m4/memcmp.m4 (jm_AC_FUNC_MEMCMP): Likewise, and add `int' for main.
87198         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Likewise.
87199
87200 2000-02-05  Jim Meyering  <meyering@lucent.com>
87201
87202         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require most macros.
87203         Remove explicit use of AC_HEADER_TIME.  It is required by
87204         jm_CHECK_TYPE_STRUCT_TIMESPEC.  Using AC_HEADER_TIME and
87205         `AC_REQUIRE'ing jm_CHECK_TYPE_STRUCT_TIMESPEC provoked a but
87206         in autoconf whereby the expansion of the latter ended up preceding
87207         the expansion of its prerequisite, AC_HEADER_TIME.
87208         Reported by Volker Borchert.
87209
87210 2000-02-03  Jim Meyering  <meyering@lucent.com>
87211
87212         * m4/prereq.m4 (jm_PREREQ_READUTMP): Check for utmpxname.
87213
87214 2000-02-03  Jim Meyering  <meyering@lucent.com>
87215
87216         * lib/readutmp.c (read_utmp): Guard with `#ifdef UTMP_NAME_FUNCTION',
87217         rather than with `#if HAVE_UTMPNAME'.
87218
87219 2000-02-02  Jim Meyering  <meyering@lucent.com>
87220
87221         * m4/prereq.m4 (jm_PREREQ_ADDEXT): Fix typo that resulted in no
87222         definition of HAVE_PATHCONF: s/AC_CHECK_FUNC/AC_CHECK_FUNCS/.
87223         Reported by Eli Zaretskii.
87224
87225 2000-02-01  Jim Meyering  <meyering@lucent.com>
87226
87227         * lib/readutmp.h (UT_USER): Add parens.  From Andreas Schwab.
87228
87229 2000-01-31  Jim Meyering  <meyering@lucent.com>
87230
87231         * m4/check-decl.m4 (jm_CHECK_DECLS): Add nanosleep to the list of
87232         functions.  Add the time.h and sys/time.h headers along with the
87233         AC_REQUIRE'ment of AC_HEADER_TIME.
87234
87235 2000-01-31  Jim Meyering  <meyering@lucent.com>
87236
87237         * lib/nanosleep.h (nanosleep): Guard declaration with
87238         `#if ! HAVE_DECL_NANOSLEEP'.
87239         Without this, OFS gets a redeclaration error for rpl_nanosleep, due to
87240         the declaration in that vendor's sys/timers.h.
87241         Reported by Christian Krackowizer.
87242
87243         * lib/quotearg.c (ISASCII): Add #undef and move definition to follow
87244         inclusion of wctype.h to work around Solaris 2.6 namespace pollution.
87245         (ISPRINT): Likewise.
87246         Reported by Tom Tromey.
87247
87248 2000-01-30  Jim Meyering  <meyering@lucent.com>
87249
87250         * m4/lib-check.m4: Clean up some kludgy old shadow password tests.
87251
87252         * m4/prereq.m4 (utmp_includes): Define.
87253         Check for ut_user and ut_name members in both struct utmpx
87254         and struct utmp.
87255
87256 2000-01-30  Jim Meyering  <meyering@lucent.com>
87257
87258         * lib/readutmp.c (extract_trimmed_name): Use UT_USER instead of
87259         hard-coding uses of ->ut_name.  The latter doesn't work with new Linux
87260         header files where only utmpx.ut_user is declared.
87261
87262         * lib/readutmp.h (UT_USER): Define.
87263
87264 2000-01-29  Jim Meyering  <meyering@lucent.com>
87265
87266         * m4/lib-check.m4: New file containing library-related checks from
87267         fileutils and sh-utils (textutils had none).
87268
87269 2000-01-28  Jim Meyering  <meyering@lucent.com>
87270
87271         * m4/perl.m4: Change format of warning message to look more like that
87272         from the missing script.  Suggestion from François Pinard.
87273
87274 2000-01-25  Jim Meyering  <meyering@lucent.com>
87275
87276         * m4/timespec.m4: Require AC_HEADER_TIME, and include sys/time.h as
87277         well as time.h in the compile check.
87278         * m4/nanosleep.m4: Require AC_HEADER_TIME rather than simply using it.
87279         Fix typo in cross-compiling case: s/yes/no/.
87280
87281 2000-01-23  Jim Meyering  <meyering@lucent.com>
87282
87283         * m4/jm-macros.m4: Move df-related tests here from
87284         fileutils/configure.in
87285
87286         * m4/ls-mntd-fs.m4: s/list_mounted_fs/ac_list_mounted_fs/
87287         (jm_LIST_MOUNTED_FILESYSTEMS): Take two parameters.
87288
87289         * m4/fsusage.m4: New file.  Extracted from fileutils/configure.in.
87290         s/space/ac_fsusage_space/.
87291         (jm_FILE_SYSTEM_USAGE): Take two parameters.
87292
87293         * m4/ftruncate.m4: New file (derived from part of
87294         fileutils/configure.in).
87295         * m4/jm-macros.m4 (jm_FUNC_FTRUNCATE): AC_REQUIRE it.
87296         (jm_CHECK_ALL_TYPES): Require AC_HEADER_MAJOR and AC_HEADER_DIRENT.
87297
87298         * m4/jm-macros.m4 (OPTIONAL_BIN_PROGS, OPTIONAL_BIN_ZCRIPTS, MAN):
87299         AC_SUBST these here, rather than just in sh-util/configure.in, so
87300         that the now-shared-by-fileutils-and-textutils lib/Makefile.am are
87301         all the same.
87302         (AM_FUNC_OBSTACK): Add (from fileutils/configure.in).
87303         (AC_CHECK_FUNCS): Merge all checks from fileutils, textutils, sh-utils.
87304         (AM_FUNC_STRTOD): Added (from textutils', sh-utils' configure.in).
87305         (AC_SUBST(POW_LIBM)): Likewise.
87306         (AC_SUBST(DF_PROG)): Moved from fileutils/configure.in.
87307
87308 2000-01-23  Jim Meyering  <meyering@lucent.com>
87309
87310         * lib/Makefile.am (libfetish_a_SOURCES): Remove explicit mention of
87311         obstack.c.
87312
87313 2000-01-22  Jim Meyering  <meyering@lucent.com>
87314
87315         * m4/jm-macros.m4: Call AC_PROG_CC_STDC just before AC_C_CONST.
87316
87317         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Add wctype.h.
87318
87319         * m4/jm-macros.m4 (AC_CHECK_HEADERS): Add checks from fileutils'
87320         configure.in
87321         (AC_CHECK_HEADERS): Likewise for sh-utils.
87322         (AC_CHECK_HEADERS): Likewise for textutils.
87323         Merge the three lists of headers.
87324
87325         * m4/prereq.m4 (jm_PREREQ_ADDEXT): New macro.  Parts moved here
87326         from fileutils' configure.in.
87327
87328         * m4/decl.m4: Remove kludgy `test -z $ac_...AC_CHECK_HEADERS(...)'
87329         code. Moved tests into their own function (_jm_DECL_HEADERS) in
87330         check-decl.m4.
87331
87332         * m4/check-decl.m4: Use #if rather than #ifdef.
87333         Add HAVE_DECL_STRTOUL and HAVE_DECL_STRTOULL.
87334         (jm_CHECK_DECLARATIONS): Add strtoul strtoull.
87335         (_jm_DECL_HEADERS): Define new function.
87336         (jm_CHECK_DECLARATIONS): Require it.
87337
87338 2000-01-22  Jim Meyering  <meyering@lucent.com>
87339
87340         * lib/strtoumax.c: [! HAVE_DECL_STRTOUL]: Declare strtoul.
87341         [! HAVE_DECL_STRTOULL]: Declare strtoull.
87342         Required for some AIX systems.  Reported by Christian Krackowizer.
87343         [TESTING] (main): New function.
87344
87345         1997-10-17  Eli Zaretskii  <eliz@is.elta.co.il>
87346         * lib/dirname.c (dir_name): Support for DOS-style file names with drive
87347         letters.
87348
87349         * lib/quotearg.c [HAVE_WCTYPE_H]: Include <wctype.h> for decl of
87350         iswprint.
87351
87352         * lib/strverscmp.c (ISDIGIT): Define.
87353         (strverscmp): Use ISDIGIT, not isdigit.
87354
87355 2000-01-19  Jim Meyering  <meyering@lucent.com>
87356
87357         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Include <sys/time.h>, too.
87358         Use AC_HEADER_TIME.  Volker Borchert reported that OpenBSD-2.3/sparc
87359         defines `struct timespec' in <sys/time.h>
87360
87361         * m4/c-bs-a.m4: Remove uses of changequote altogether.
87362         Thanks to Akim for explaining.
87363
87364 2000-01-17  Paul Eggert  <eggert@twinsun.com>
87365
87366         * lib/nanosleep.c (nanosleep):
87367         Don't use SA_INTERRUPT to decide whether to call sigaction, as
87368         POSIX.1 doesn't require SA_INTERRUPT and some systems
87369         (e.g. Solaris 7) don't define it.  Use SA_NOCLDSTOP instead;
87370         it's been part of POSIX.1 since day 1 (in 1988).
87371
87372 2000-01-17  Jim Meyering  <meyering@lucent.com>
87373
87374         * lib/interlock: Remove unused file.  Reported by François Pinard.
87375
87376 2000-01-16  Paul Eggert  <eggert@twinsun.com>
87377
87378         * lib/quotearg.c (quotearg_buffer_restyled): Do not quote
87379         alert, backslash, formfeed, and vertical tab unnecessarily in
87380         shell quoting style.
87381
87382 2000-01-16  Jim Meyering  <meyering@lucent.com>
87383
87384         * m4/jm-macros.m4: Require jm_FUNC_GROUP_MEMBER, jm_FUNC_PUTENV,
87385         AM_FUNC_ERROR_AT_LINE, jm_FUNC_GNU_STRFTIME, jm_FUNC_MKTIME,
87386         jm_FUNC_GETGROUPS AC_FUNC_VPRINTF, AC_FUNC_ALLOCA,
87387         AM_FUNC_GETLOADAVG, and jm_SYS_PROC_UPTIME.
87388
87389 2000-01-16  Jim Meyering  <meyering@lucent.com>
87390
87391         * m4/c-bs-a.m4: Use `changequote(<<,>>)', rather than `changequote(, )'
87392         because the latter didn't work.
87393
87394 2000-01-15  Jim Meyering  <meyering@lucent.com>
87395
87396         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add gethostname and getusershell.
87397         (AC_REPLACE_FUNCS): Add memcpy and memset.
87398         Add these, too: stime strcspn stpcpy strstr strtol strtoul.
87399         Add strpbrk.
87400         Add these: euidaccess memcmp mkdir rmdir rpmatch strndup strverscmp.
87401
87402 2000-01-12  Jim Meyering  <meyering@lucent.com>
87403
87404         * m4/prereq.m4 (jm_PREREQ_CANON_HOST): New macro.
87405         (jm_PREREQ): Use it.
87406         (jm_PREREQ_READUTMP): New macro.
87407         (jm_PREREQ): Use it.
87408
87409 2000-01-11  Paul Eggert  <eggert@twinsun.com>
87410
87411         Quote multibyte characters correctly.
87412         * m4/c-bs-a.m4: New file.
87413         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): New macro.
87414         (jm_PREREQ): Use it.
87415
87416 2000-01-11  Paul Eggert  <eggert@twinsun.com>
87417
87418         * m4/uintmax_t.m4: Port to autoconf 2.13.
87419
87420 2000-01-08  Jim Meyering  <meyering@ascend.com>
87421
87422         * m4/strerror_r.m4 (jm_FUNC_STRERROR_R): New file/macro.
87423         * m4/jm-macros.m4 (jm_FUNC_STRERROR_R): Require it.
87424
87425 2000-01-04  Jim Meyering  <meyering@ascend.com>
87426
87427         * m4/d-type.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Rename from
87428         jm_STRUCT_DIRENT_D_TYPE.
87429         * m4/d-ino.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_INO): Rename from
87430         jm_STRUCT_DIRENT_D_INO.
87431         * m4/utimbuf.m4 (jm_CHECK_TYPE_STRUCT_UTIMBUF): Rename from
87432         jm_STRUCT_UTIMBUF.
87433         * m4/jm-macros.m4: Reflect s/jm_STRUCT_/jm_CHECK_TYPE_STRUCT_/
87434         renamings.
87435         * m4/utime.m4: Likewise.
87436
87437         * m4/timespec.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC): New file, macro.
87438         * m4/jm-macros.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC): Require it.
87439
87440 2000-01-03  Paul Eggert  <eggert@twinsun.com>
87441
87442         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Search for nanosleep in -lrt
87443         (for Solaris 7) and in -lposix4 (for Solaris 2.5.1).
87444
87445 2000-01-02  Jim Meyering  <meyering@ascend.com>
87446
87447         * m4/search-libs.m4: Escape `$' in $3 of dnl comment.  I no longer
87448         remember if this is necessary.
87449
87450 1999-12-26  Jim Meyering  <meyering@ascend.com>
87451
87452         * m4/jm-macros.m4: Use it here.
87453         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): New file/macro.
87454
87455 1999-12-23  Jim Meyering  <meyering@ascend.com>
87456
87457         * m4/jm-macros.m4: Check for clock_gettime (moved from
87458         fileutils/configure.in)
87459         Check for gettimeofday.
87460
87461 1999-12-20  Jim Meyering  <meyering@ascend.com>
87462
87463         * m4/strftime.m4: Remove kludge, now that I'm using the fixed
87464         autoconf-2.14a-1999-12-20.
87465
87466 1999-12-19  Jim Meyering  <meyering@ascend.com>
87467
87468         * m4/lstat-slash.m4: New file.
87469         * m4/jm-macros.m4: Use the new macro:
87470         jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
87471
87472 1999-12-07  Jim Meyering  <meyering@ascend.com>
87473
87474         * m4/perl.m4: Require that File::Compare be available, too.
87475         Too many systems seem to lack it.
87476
87477         * m4/strftime.m4: Add checks for most of the cpp macros tested in
87478         GNU's strftime.c.  Prompted by a patch from Paul Eggert.
87479
87480 1999-11-18  Paul Eggert  <eggert@twinsun.com>
87481
87482         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Work around a
87483         problem with the QNX 4.25 shell, which doesn't propagate exit
87484         status of failed commands inside shell assignments.
87485
87486 1999-11-17  Jim Meyering  <meyering@ascend.com>
87487
87488         * m4/gettext.m4: Use new AC_CONFIG_LINKS in place of AC_LINK_FILES.
87489
87490 1999-11-07  Jim Meyering  <meyering@ascend.com>
87491
87492         * m4/getloadavg.m4: Add `, 1, [FIXME]' to each use of AC_DEFINE.
87493
87494 1999-11-06  Jim Meyering  <meyering@ascend.com>
87495
87496         * m4/link-follow.m4 (jm_AC_FUNC_LINK_FOLLOWS_SYMLINK): New file/macro.
87497         * m4/jm-macros.m4 (jm_MACROS): Use it here.
87498
87499 1999-11-05  Jim Meyering  <meyering@ascend.com>
87500
87501         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Move some tests from
87502         configure.in of textutils, fileutils, and sh-utils into this one
87503         (shared between those packages) file.
87504         Use `AC_CHECK_MEMBERS((struct stat.st_blksize))' instead of deprecated
87505         AC_STRUCT_ST_BLKSIZE.
87506
87507 1999-11-03  Jim Meyering  <meyering@ascend.com>
87508
87509         * m4/ssize_t.m4: Remove file.  No longer needed since the new version
87510         of AC_CHECK_TYPE checks includes unistd.h.
87511         * m4/jm-macros.m4: Use straight `AC_CHECK_TYPE(ssize_t, int)'.
87512         Suggestion from Akim Demaille.
87513
87514 1999-10-30  Jim Meyering  <meyering@ascend.com>
87515
87516         * m4/uintmax_t.m4: Require 2.14a.  Remove backslash before backtick in
87517         m4-quoted string.
87518         * m4/ls-mntd-fs.m4: Likewise.
87519         * m4/jm-macros.m4: Likewise.  Also, use AC_TYPE_SSIZE_T instead
87520         * m4/jm-winsz1.m4: Likewise.
87521
87522         * m4/const.m4: Remove file, since the fix made it into the experimental
87523         version of autoconf.
87524         * m4/mktime.m4: Likewise.
87525
87526         * m4/check-type.m4: Remove file, now that the latest version of
87527         AC_CHECK_TYPE takes a third arg to specify additional #includes.
87528
87529         * m4/ssize_t.m4: New file, requires experimental version of autoconf.
87530         * m4/jm-macros.m4: Use new AC_TYPE_SSIZE_T instead of my hacked
87531         AC_CHECK_TYPE.
87532
87533 1999-10-04  Jim Meyering  <meyering@ascend.com>
87534
87535         * m4/jm-macros.m4: Don't require autoconf-2.14.1.
87536
87537 1999-09-22  Paul Eggert  <eggert@twinsun.com>
87538
87539         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Work around GCC
87540         2.95.1 bug with HP-UX 10.20.
87541
87542 1999-09-17  Jim Meyering  <meyering@ascend.com>
87543
87544         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add strdup.
87545         Paul Nevai reported a link failure on a NeXT CUBE with NeXTSTEP 3.3
87546         due to missing strdup (against sh-utils-2.0).
87547
87548 1999-08-29  Jim Meyering  <meyering@ascend.com>
87549
87550         * m4/jm-macros.m4: Require jm_BISON.
87551         * m4/bison.m4: New file.
87552
87553 1999-08-17  Paul Eggert  <eggert@twinsun.com>
87554
87555         * m4/largefile.m4 (AC_SYS_LARGEFILE): Fix typo: missing comma
87556         in value for _FILE_OFFSET_BITS, which broke ports to HP-UX 10.20.
87557
87558 1999-08-05  Jim Meyering  <meyering@ascend.com>
87559
87560         * m4/getline.m4: Rename test file from conftestdata to conftest.data
87561         to avoid conflicts with `conftest' on 8+3 filesystems.
87562         Suggestion from Eli Zaretskii.
87563
87564 1999-08-04  Jim Meyering  <meyering@ascend.com>
87565
87566         * m4/jm-macros.m4: Move a 4-line block of code from the configure.in of
87567         fileutils and sh-utils (textutils's getline test was inadequate).
87568         (AM_FUNC_GETLINE): Run this test.
87569         (AC_CHECK_FUNCS): Check for getdelim.
87570         Reported by Bob Proulx.
87571
87572 1999-08-02  Jim Meyering  <meyering@ascend.com>
87573
87574         * m4/jm-macros.m4: Add a comment.
87575
87576 1999-08-01  Paul Eggert  <eggert@twinsun.com>
87577
87578         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Check whether
87579         <inttypes.h> defines strtoumax as a macro (and not as a
87580         function).
87581
87582 1999-08-01  Paul Eggert  <eggert@twinsun.com>
87583
87584         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Make sure
87585         that we can shift, multiply and divide unsigned long long
87586         values; Ultrix cc can't do it.
87587
87588 1999-08-01  Paul Eggert  <eggert@twinsun.com>
87589
87590         * m4/mktime.m4: New file, which is a preview of what should appear
87591         in the next public autoconf release.
87592
87593 1999-08-01  Paul Eggert  <eggert@twinsun.com>
87594
87595         * m4/lfs.m4: Remove this file.
87596         * m4/largefile.m4: New file.  It contains the old contents of
87597         lfs.m4, except that all names with prefix AC_LFS have been
87598         changed to use the prefix AC_SYS_LARGEFILE instead, to be
87599         compatible with future autoconf versions.  Also, some minor m4
87600         quoting problems have been fixed.
87601
87602 1999-08-01  Paul Eggert  <eggert@twinsun.com>
87603
87604         * m4/gettext.m4 (AM_WITH_NLS): Remove unnecessary lines.
87605         Fix typo: $nls_cv_header_intl was misspelled as $nsl_cv_header_intl.
87606         (AM_GNU_GETTEXT): Fix problem with brackets and m4 quoting,
87607         and simplify the shell code.
87608
87609 1999-08-01  Jim Meyering  <meyering@ascend.com>
87610
87611         * m4/mktime.m4 (AC_FUNC_MKTIME): Undefine to avoid syntax errors from
87612         m4.
87613
87614 1999-07-20  Jim Meyering  <meyering@ascend.com>
87615
87616         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memmove.
87617
87618 1999-07-15  Jim Meyering  <meyering@ascend.com>
87619
87620         * m4/jm-macros.m4 (AC_CHECK_FUNCS): Check for getpagesize.
87621
87622 1999-05-22  Jim Meyering  <meyering@ascend.com>
87623
87624         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memchr.
87625
87626 1999-05-20  Jim Meyering  <meyering@ascend.com>
87627
87628         * m4/search-libs.m4 [AC_SEARCH_LIBS]: Quote name in undefine.
87629         Add a colon after each `then' in case $4 is empty.
87630
87631 1999-05-16  Jim Meyering  <meyering@ascend.com>
87632
87633         * m4/search-libs.m4: New file to override autoconf's AC_SEARCH_LIBS.
87634
87635 1999-05-10  Jim Meyering  <meyering@ascend.com>
87636
87637         * m4/jm-mktime.m4: Reflect renaming: AM_FUNC_MKTIME -> AC_FUNC_MKTIME.
87638
87639         * m4/jm-macros.m4: Require 2.14.1, since we use newly-renamed
87640         AC_FUNC_MKTIME.
87641
87642 1999-05-10  Andreas Schwab  <schwab@issan.cs.uni-dortmund.de>
87643
87644         * m4/jm-mktime.m4, putenv.m4: Fix typos in config.h comments.
87645
87646 1999-05-04  Paul Eggert  <eggert@twinsun.com>
87647
87648         * m4/lfs.m4 (AC_LFS): -n32, -o32, and -n64 should be in CFLAGS,
87649         not CPPFLAGS, so that linking works correctly in IRIX.
87650
87651 1999-04-30  Paul Eggert  <eggert@twinsun.com>
87652
87653         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add dup2.
87654
87655 1999-04-20  Paul Eggert  <eggert@twinsun.com>
87656
87657         * m4/uintmax_t.m4 (jm_AC_TYPE_UINTMAX_T): Move unsigned long
87658         long check into new jm_AC_TYPE_UNSIGNED_LONG_LONG macro.
87659         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require
87660         jm_AC_TYPE_UNSIGNED_LONG_LONG.
87661         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): New file/macro.
87662
87663         * m4/lfs.m4: Port to AIX and HP-UX.  Support cross-compilation.
87664
87665 1999-04-20  Jim Meyering  <meyering@ascend.com>
87666
87667         * m4/xstrtoumax.m4: Require jm_AC_TYPE_UNSIGNED_LONG_LONG.
87668         AC_REPLACE xstroull if necessary.  From Paul Eggert.
87669         (AC_CHECK_FUNCS): Remove strtoull, strtoumax, strtouq.
87670
87671 1999-04-18  Jim Meyering  <meyering@ascend.com>
87672
87673         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): New file/macro.
87674         * m4/jm-macros.m4: Use it.
87675
87676 1999-04-06  Jim Meyering  <meyering@ascend.com>
87677
87678         * m4/strftime.m4: Remove test for %f.
87679
87680 1999-03-29  Jim Meyering  <meyering@ascend.com>
87681
87682         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): New macro, contains the
87683         superset of the AC_TYPE_* checks in the textutils, fileutils,
87684         and sh-utils, plus AC_TYPE_PID_T.  Paul Eggert suggested adding
87685         AC_TYPE_PID_T.
87686
87687 1999-03-28  Jim Meyering  <meyering@ascend.com>
87688
87689         * m4/jm-macros.m4: Define GNU_PACKAGE here.
87690         Be sure to AC_SUBST it, once again, so that @GNU_PACKAGE@ is
87691         replaced e.g., in the *.sh files of the sh-utils.
87692
87693 1999-03-20  Jim Meyering  <meyering@ascend.com>
87694
87695         * m4/jm-macros.m4: s/jm_WITH_REGEX/jm_INCLUDED_REGEX/.
87696         * m4/regex.m4 (jm_INCLUDED_REGEX): Rename from jm_WITH_REGEX.
87697         Don't depend on AM_GLIBC.  Suggestions from Alain Magloire.
87698
87699 1999-03-19  Jim Meyering  <meyering@ascend.com>
87700
87701         * m4/jm-winsz1.m4 (jm_WINSIZE_IN_PTEM): New macro.
87702
87703 1999-03-12  Jim Meyering  <meyering@ascend.com>
87704
87705         * m4/jm-macros.m4: Use AC_FUNC_SETVBUF_REVERSED.
87706
87707 1999-03-07  Jim Meyering  <meyering@ascend.com>
87708
87709         * m4/jm-glibc-io.m4: Use only those *_unlocked macros that are
87710         declared.
87711
87712 1999-02-17  Jim Meyering  <meyering@ascend.com>
87713
87714         * m4/gettext.m4 (AM_GNU_GETTEXT): Do `changequote' around use of
87715         brackets in macro definition.  From Eli Zaretskii and Alain Magloire.
87716
87717 1999-02-07  Jim Meyering  <meyering@ascend.com>
87718
87719         * m4/group-member.m4: New file -- extracted from sh-utils'
87720         configure.in.
87721
87722         1999-02-05  Eli Zaretskii  <eliz@is.elta.co.il>
87723         * m4/gettext.m4: Support DOS-style d:/foo/bar absolute file names.
87724
87725 1999-02-06  Jim Meyering  <meyering@ascend.com>
87726
87727         * m4/chown.m4: Use `AC_SUBST(LIBOBJS)' since we set LIBOBJS.
87728         * m4/fnmatch.m4: Likewise.
87729         * m4/getgroups.m4: Likewise.
87730         * m4/lstat.m4: Likewise.
87731         * m4/malloc.m4: Likewise.
87732         * m4/putenv.m4: Likewise.
87733         * m4/realloc.m4: Likewise.
87734         * m4/regex.m4: Likewise.
87735         * m4/stat.m4: Likewise.
87736         * m4/strftime.m4: Likewise.
87737         Suggestion from Alain Magloire.
87738
87739         * m4/chown.m4: Use `.$ac_objext', not `.o'.
87740         * m4/fnmatch.m4: Likewise.
87741         * m4/getgroups.m4: Likewise.
87742         * m4/getline.m4: Likewise.
87743         * m4/lstat.m4: Likewise.
87744         * m4/malloc.m4: Likewise.
87745         * m4/memcmp.m4: Likewise.
87746         * m4/putenv.m4: Likewise.
87747         * m4/realloc.m4: Likewise.
87748         * m4/regex.m4: Likewise.
87749         * m4/stat.m4: Likewise.
87750         * m4/strftime.m4: Likewise.
87751         Suggestion from Alain Magloire.
87752
87753         * m4/jm-macros.m4: Actually invoke jm_WITH_REGEX now that it requires
87754         an argument.
87755
87756         * m4/regex.m4: Add a run-time Test for proper operation of
87757         re_compile_pattern.
87758
87759 1999-01-31  Jim Meyering  <meyering@ascend.com>
87760
87761         * m4/getloadavg.m4: Check for locale.h and the function, setlocale.
87762
87763 1999-01-30  Jim Meyering  <meyering@ascend.com>
87764
87765         * m4/check-type.m4: Use 3-arg form of AC_DEFINE.
87766
87767         * m4/jm-mktime.m4: Make this a wrapper around the official
87768         AM_FUNC_MKTIME rather than my private copy, now that the official one
87769         is up to date.
87770         * m4/mktime.m4: Remove file.
87771
87772         * m4/getloadavg.m4: Use 3-arg form of AC_DEFINE.
87773         * m4/uptime.m4: Likewise.
87774         * m4/uintmax_t.m4: Likewise.
87775
87776 1999-01-28  Jim Meyering  <meyering@ascend.com>
87777
87778         * m4/jm-macros.m4: Use jm_AFS.
87779         * m4/afs.m4: New file (from fileutils' configure.in).
87780
87781         * m4/assert.m4: Use the 3-argument forms of AC_DEFINE* macros.
87782         * m4/chown.m4: Likewise.
87783         * m4/d-ino.m4: Likewise.
87784         * m4/d-type.m4: Likewise.
87785         * m4/fnmatch.m4: Likewise.
87786         * m4/getgroups.m4: Likewise.
87787         * m4/gettext.m4: Likewise.
87788         * m4/jm-mktime.m4: Likewise.
87789         * m4/jm-winsz2.m4: Likewise.
87790         * m4/lcmessage.m4: Likewise.
87791         * m4/ls-mntd-fs.m4: Likewise.
87792         * m4/malloc.m4: Likewise.
87793         * m4/memcmp.m4: Likewise.
87794         * m4/putenv.m4: Likewise.
87795         * m4/realloc.m4: Likewise.
87796         * m4/st_mtim.m4: Likewise.
87797         * m4/strftime.m4: Likewise.
87798
87799 1999-01-16  Jim Meyering  <meyering@ascend.com>
87800
87801         * m4/jm-macros.m4 (ARGMATCH_DIE): Define.
87802         (ARGMATCH_DIE_DECL): Define.
87803
87804 1999-01-12  Jim Meyering  <meyering@ascend.com>
87805
87806         * m4/Makefile.am.in: Rewrite to avoid using fmt.
87807         Reported by Lars Hecking.
87808
87809 1999-01-10  Jim Meyering  <meyering@ascend.com>
87810
87811         * m4/fstypename.m4: Use the new 3-arg form of AC_DEFINE instead of my
87812         gross kludge.
87813         * m4/inttypes_h.m4: Likewise.
87814         * m4/lstat.m4: Likewise.
87815         * m4/malloc.m4: Likewise.
87816         * m4/readdir.m4: Likewise.
87817         * m4/realloc.m4: Likewise.
87818         * m4/st_dm_mode.m4: Likewise.
87819         * m4/stat.m4: Likewise.
87820         * m4/utimbuf.m4: Likewise.
87821         * m4/utimes.m4: Likewise.
87822
87823         * m4/check-decl.m4: Use the new 3-arg form of AC_DEFINE instead of the
87824         AC_CHECK_FUNCS hack.  Now, it's still a hack, but at least the
87825         comments in config.h.in are meaningful.
87826
87827         * m4/jm-macros.m4: Require autoconf-2.13 here.
87828
87829         * m4/regex.m4: By default, don't use the included regex.c on systems
87830         with glibc 2.  Suggestion from Uli Drepper.
87831
87832 1999-01-02  Jim Meyering  <meyering@ascend.com>
87833
87834         * m4/jm-macros.m4: Replace strcasecmp and strncasecmp.
87835
87836 1998-12-18  Jim Meyering  <meyering@ascend.com>
87837
87838         * m4/Makefile.am.in (Makefile.am): Simplify rule.
87839         Based on a suggestion from Lars Hecking.
87840
87841 1998-11-16  Paul Eggert  <eggert@twinsun.com>
87842
87843         * m4/lfs.m4 (AC_LFS): Add support for HP-UX 10.20 and HP-UX 11.
87844
87845 1998-11-16  Jim Meyering  <meyering@ascend.com>
87846
87847         * m4/lfs.m4: Double-quote the `uname...` expression.
87848
87849 1998-11-14  Jim Meyering  <meyering@ascend.com>
87850
87851         * m4/lstat.m4: Correct comment.  POSIX does not permit it to succeed.
87852         * m4/stat.m4: Likewise.
87853
87854 1998-11-03  Jim Meyering  <meyering@ascend.com>
87855
87856         * m4/stat.m4: Rewrite to set HAVE_STAT_EMPTY_STRING_BUG.
87857         * m4/lstat.m4: Rewrite to set HAVE_LSTAT_EMPTY_STRING_BUG.
87858
87859 1998-10-18  Jim Meyering  <meyering@ascend.com>
87860
87861         * m4/check-decl.m4 (jm_CHECK_DECL_LOCALTIME_R): Remove macro.
87862
87863 1998-10-17  Jim Meyering  <meyering@ascend.com>
87864
87865         * m4/decl.m4 (jm_CHECK_DECLARATION): Don't hard-code which headers to
87866         include, though we still hard-code the `require'-like AC_CHECK_HEADERS
87867         calls for those previously hard-coded headers.  Instead, take a new
87868         parameter.
87869         (jm_CHECK_DECLARATIONS): Reflect interface change.
87870         * m4/check-decl.m4 (jm_CHECK_DECLS): Likewise.
87871         (jm_CHECK_DECL_LOCALTIME_R): New macro.
87872
87873         * m4/mktime.m4: Test for spring-forward gap before long-running test.
87874
87875 1998-10-14  Jim Meyering  <meyering@ascend.com>
87876
87877         * m4/mktime.m4: Use the more portable "TZ=PST8PDT,M4.1.0,M10.5.0"
87878         instead of "TZ=America/Vancouver".  From Paul Eggert.
87879
87880 1998-10-11  Jim Meyering  <meyering@ascend.com>
87881
87882         * m4/mktime.m4 (jm_AM_FUNC_MKTIME): New file and macro.
87883         This adds a test for a recently added compatibility fix for mktime.c.
87884         * m4/jm-mktime.m4: Require jm_AM_FUNC_MKTIME, not AM_FUNC_MKTIME.
87885
87886 1998-09-27  Jim Meyering  <meyering@ascend.com>
87887
87888         * m4/jm-macros.m4 (jm_MACROS): Require jm_FUNC_FNMATCH.
87889
87890         * m4/fnmatch.m4 (jm_FUNC_FNMATCH): New file/macro.  Extracted from
87891         ../configure.in, including a change from Gordon Matzigkeit to allow
87892         cross-compiling for the Hurd.
87893
87894         * m4/glibc.m4: New file/macro to test for the GNU C Library
87895         versions 1 and 2.  From Gordon Matzigkeit.
87896         Indent.
87897
87898 1998-09-21  Jim Meyering  <meyering@ascend.com>
87899
87900         * m4/chown.m4: Declare locals: before, after.  From Andries Brouwer.
87901
87902 1998-08-18  Paul Eggert  <eggert@twinsun.com>
87903
87904         Port nanosecond-resolution times to UnixWare 2.1.2 and
87905         pedantic Solaris 2.6.
87906
87907         * m4/st_mtim.m4 (AC_STRUCT_ST_MTIM_NSEC): Renamed from
87908         AC_STRUCT_ST_MTIM.
87909         * m4/st_mtim.m4 (AC_STRUCT_ST_MTIM_NSEC):
87910         Generate name of ns member, instead of just 1 or undef.
87911         Allow for UnixWare 2.1.2 and Solaris 2.6 if in pedantic mode.
87912
87913 1998-08-15  Jim Meyering  <meyering@ascend.com>
87914
87915         * m4/ssize_t.m4 (jm_TYPE_SSIZE_T): Remove file.
87916         * m4/check-type.m4: New file.  Replacement for AC_CHECK_TYPE.
87917         * m4/jm-macros.m4: Use the new AC_CHECK_TYPE(ssize_t, int)
87918         instead of jm_TYPE_SSIZE_T.
87919
87920 1998-08-12  Jim Meyering  <meyering@ascend.com>
87921
87922         * m4/st_dm_mode.m4: New file.  From Johan Danielsson.
87923
87924 1998-08-02  Jim Meyering  <meyering@ascend.com>
87925
87926         * m4/st_mtim.m4: Use hack to avoid having to put #undef HAVE_ST_MTIM
87927         in acconfig.h manually.
87928
87929 1998-07-31  Paul Eggert  <eggert@twinsun.com>
87930
87931         * m4/st_mtim.m4: New file.
87932
87933 1998-07-28  Jim Meyering  <meyering@ascend.com>
87934
87935         * m4/utimes.m4: Undef stat.
87936
87937 1998-07-25  Jim Meyering  <meyering@ascend.com>
87938
87939         * m4/utime.m4 (jm_FUNC_UTIME): New file and macro.
87940         * m4/utimes.m4 (jm_FUNC_UTIMES_NULL): New file and macro.
87941
87942 1998-07-09  Manfred Hollstein  <manfred@s-direktnet.de>
87943
87944         * m4/chown.m4 (jm_FUNC_CHOWN): Add a check to verify that the
87945         uid and gid actually remain unchanged.
87946
87947 1998-07-07  Jim Meyering  <meyering@ascend.com>
87948
87949         * m4/jm-glibc-io.m4: Remove fclose_unlocked.
87950
87951 1998-07-04  Jim Meyering  <meyering@ascend.com>
87952
87953         * m4/regex.m4: Use syscmd, ifelse, and sysval.  Mainly as an exercise
87954         to prove that this macro can be used in packages without regex.c.
87955
87956 1998-07-04  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
87957
87958         * m4/gettext.m4 (AM_WITH_NLS): Remove intl/libintl.h if <libintl.h>
87959         is to be used.
87960
87961 1998-07-03  Jim Meyering  <meyering@ascend.com>
87962
87963         * m4/gettext.m4: Add -lintl if it's found to be necessary.
87964
87965         * m4/gettext.m4: New file -- from gettext-0.10.35.
87966         * m4/lcmessage.m4: Likewise.
87967         * m4/progtest.m4: Likewise.
87968
87969         * m4/regex.m4 (jm_WITH_REGEX): New file and macro.
87970         * m4/jm-macros.m4: Require the new macro.
87971
87972 1998-06-29  Jim Meyering  <meyering@ascend.com>
87973
87974         * m4/fstypename.m4: Include sys/param.h.  NetBSD 1.3.1 requires this
87975         for the definition of NGROUPS (used in a system header included
87976         by sys/mount.h).
87977
87978 1998-06-28  Jim Meyering  <meyering@ascend.com>
87979
87980         * m4/ls-mntd-fs.m4: New file.
87981         * m4/fstypename.m4: New file.
87982
87983         * m4/jm-macros.m4: Require the new macro.
87984         * m4/jm-glibc-io.m4: New file.
87985
87986 1998-05-19  Jim Meyering  <meyering@ascend.com>
87987
87988         * m4/jm-macros.m4: Add jm_FUNC_LCHOWN.
87989         * m4/lchown.m4: New file.
87990
87991         * m4/Makefile.am.in: New file.
87992         * m4/Makefile.am (Makefile.am): Depend on Makefile.am.in.
87993
87994 1998-05-14  Jim Meyering  <meyering@ascend.com>
87995
87996         * m4/Makefile.am (EXTRA_DIST): Add them.
87997         * m4/jm-macros.m4: New file.
87998         * m4/utimbuf.m4: New file.
87999
88000 1998-05-12  Jim Meyering  <meyering@ascend.com>
88001
88002         * m4/Makefile.am (EXTRA_DIST): Add isc-posix.m4.
88003
88004 1998-05-11  Jim Meyering  <meyering@ascend.com>
88005
88006         * m4/isc-posix.m4: New file.
88007
88008 1998-05-10  Jim Meyering  <meyering@ascend.com>
88009
88010         * m4/jm-mktime.m4: Use AM_FUNC_MKTIME, now that it's up to date.
88011
88012 1998-05-09  Jim Meyering  <meyering@ascend.com>
88013
88014         * m4/Makefile.am (EXTRA_DIST): Add ssize_t.m4.
88015         (EXTRA_DIST): Remove mktime.m4, now that the new version is included
88016         with automake.
88017
88018         * m4/ssize_t.m4: New file.
88019         * m4/mktime.m4: Remove file -- the new automake has this now.
88020
88021 1998-04-26  Jim Meyering  <meyering@ascend.com>
88022
88023         * m4/assert.m4: New file.
88024         * m4/Makefile.am (EXTRA_DIST): Add assert.m4.
88025
88026 1998-04-05  Jim Meyering  <meyering@ascend.com>
88027
88028         * m4/prereq.m4 (jm_PREREQ_REGEX): New macro.
88029         (jm_PREREQ): Use it here.
88030
88031 1998-03-23  Jim Meyering  <meyering@eng.ascend.com>
88032
88033         * m4/inttypes_h.m4: Kludges so I don't have to add HAVE_INTTYPES_H
88034         in acconfig.h.
88035
88036 1998-03-15  Jim Meyering  <meyering@eng.ascend.com>
88037
88038         * m4/prereq.m4: New file.
88039         * m4/error.m4: New file.
88040         * m4/Makefile.am (EXTRA_DIST): Add error.m4 and prereq.m4.
88041
88042 1998-02-07  Jim Meyering  <meyering@eng.ascend.com>
88043
88044         * m4/getline.m4: Don't set am_cv_func_working_getline before the
88045         cache-check for the same variable -- that defeated the purpose of
88046         the test; the test program was never run.  This was a problem only
88047         on systems with losing getline functions -- HP-UX 10.20 is one.
88048         Reported by Bjorn Helgaas.
88049
88050 1998-02-06  Jim Meyering  <meyering@eng.ascend.com>
88051
88052         * m4/Makefile.am (EXTRA_DIST): Add perl.m4.
88053
88054 1998-01-10  Jim Meyering  <meyering@na-net.ornl.gov>
88055
88056         * m4/Makefile.am (EXTRA_DIST): Add const.m4.
88057
88058         * m4/const.m4: New file.  Use an initializer in this declaration
88059         typedef int charset[2]; const charset x;
88060         Reported by Bob Glickstein.
88061
88062 1997-12-21  Jim Meyering  <meyering@na-net.ornl.gov>
88063
88064         * m4/chown.m4: Fix reversed types on -1 args to chown.
88065         From Kaveh Ghazi.
88066
88067 1997-12-14  Jim Meyering  <meyering@na-net.ornl.gov>
88068
88069         * m4/check-decl.m4: s/DECLARATION_/DECL_/g.
88070         Add lseek and memchr.
88071
88072         * m4/decl.m4: s/HAVE_DECLARATION_/HAVE_DECL_/g.
88073         T.E.Dickey <dickey@clark.net> said that some older preprocessors
88074         have a 20-character limit on names.
88075
88076 1997-11-30  Jim Meyering  <meyering@na-net.ornl.gov>
88077
88078         * m4/inttypes_h.m4: New file.
88079         * m4/uintmax_t.m4: New file.
88080         * m4/Makefile.am (EXTRA_DIST): Add inttypes_h.m4 and uintmax_t.m4.
88081
88082
88083         -----
88084
88085         Local Variables:
88086         coding: utf-8
88087         End:
88088
88089         Copyright (C) 1997-2011 Free Software Foundation, Inc.
88090
88091         Copying and distribution of this file, with or without
88092         modification, are permitted provided the copyright notice
88093         and this notice are preserved.